streamlit-nightly 1.44.1.dev20250327__py3-none-any.whl → 1.44.2.dev20250403__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/commands/execution_control.py +3 -0
- streamlit/commands/page_config.py +1 -1
- streamlit/config.py +0 -26
- streamlit/elements/write.py +8 -0
- streamlit/proto/ClientState_pb2.py +2 -2
- streamlit/proto/ClientState_pb2.pyi +11 -1
- streamlit/proto/ForwardMsg_pb2.pyi +4 -7
- streamlit/runtime/app_session.py +5 -4
- streamlit/runtime/context.py +14 -0
- streamlit/runtime/forward_msg_cache.py +35 -230
- streamlit/runtime/forward_msg_queue.py +41 -23
- streamlit/runtime/runtime.py +2 -60
- streamlit/runtime/runtime_util.py +15 -14
- streamlit/runtime/scriptrunner/script_runner.py +9 -1
- streamlit/runtime/scriptrunner_utils/script_requests.py +3 -0
- streamlit/runtime/scriptrunner_utils/script_run_context.py +25 -3
- streamlit/runtime/session_manager.py +5 -6
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/{FileDownload.esm.jX-9l2Ep.js → FileDownload.esm.B3kD8CdX.js} +1 -1
- streamlit/static/static/js/{FileHelper.aCeQQwv9.js → FileHelper.CZMZF2jC.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.CWUgHOqb.js → FormClearHelper.BjztopwY.js} +1 -1
- streamlit/static/static/js/{Hooks.z6bpnOa4.js → Hooks.B2w-p718.js} +1 -1
- streamlit/static/static/js/{InputInstructions.CxNXqmaa.js → InputInstructions.CuF13wx9.js} +1 -1
- streamlit/static/static/js/{ProgressBar.DeJx_v03.js → ProgressBar.BbIgSlVa.js} +1 -1
- streamlit/static/static/js/{RenderInPortalIfExists.BzVEnQEP.js → RenderInPortalIfExists.yENMDBLa.js} +1 -1
- streamlit/static/static/js/{Toolbar.Buaxb3gQ.js → Toolbar.DJ7G2mIO.js} +1 -1
- streamlit/static/static/js/{base-input.B02pchZb.js → base-input.DIlOlDo4.js} +1 -1
- streamlit/static/static/js/{checkbox.BNevNWhL.js → checkbox.BQjuWiaH.js} +1 -1
- streamlit/static/static/js/{createSuper.HF1JI-bK.js → createSuper.DsCxV-v8.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.DHpEpsQ_.js → data-grid-overlay-editor.D4K6HcP0.js} +1 -1
- streamlit/static/static/js/{downloader.B32k91dq.js → downloader.Lq-fJZlW.js} +1 -1
- streamlit/static/static/js/{es6.j4L3xv_m.js → es6.BE-9QZmp.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.DQOV--zq.js → iframeResizer.contentWindow.CVN6zezL.js} +1 -1
- streamlit/static/static/js/{index.BTG2J5Pk.js → index.0HztFnVa.js} +1 -1
- streamlit/static/static/js/{index.ChvqDLgw.js → index.5819-zgt.js} +1 -1
- streamlit/static/static/js/{index.DaJw5fna.js → index.B-KH-iJ1.js} +1 -1
- streamlit/static/static/js/{index.1tdxODWC.js → index.B0f5Sqj9.js} +1 -1
- streamlit/static/static/js/{index.CKYXxi_d.js → index.B1gZ98Ih.js} +1 -1
- streamlit/static/static/js/{index.DTDyF8nE.js → index.B2XNA40L.js} +1 -1
- streamlit/static/static/js/index.B7RGQCfs.js +1 -0
- streamlit/static/static/js/{index.CTwaWONb.js → index.BB3TfMGO.js} +1 -1
- streamlit/static/static/js/{index.DsRxnb2z.js → index.BDovkxCx.js} +1 -1
- streamlit/static/static/js/{index.CpDe9l-f.js → index.BMWHViZF.js} +1 -1
- streamlit/static/static/js/{index.R8Go3XlF.js → index.BM_qS2Z6.js} +1 -1
- streamlit/static/static/js/{index.BT-PT2u0.js → index.BYWoEwfP.js} +1 -1
- streamlit/static/static/js/{index.BDIF1v3E.js → index.Bs_nrSu4.js} +1 -1
- streamlit/static/static/js/{index.Cq_L2WtW.js → index.BwOqVS7B.js} +1 -1
- streamlit/static/static/js/{index.CExICAHy.js → index.BysxR7v7.js} +1 -1
- streamlit/static/static/js/{index.CTgHTp02.js → index.C6uLzsGN.js} +1 -1
- streamlit/static/static/js/{index.DbqewZ6W.js → index.CDspsVkR.js} +1 -1
- streamlit/static/static/js/{index.C1B9TyzK.js → index.CE-qPTwY.js} +1 -1
- streamlit/static/static/js/{index.BnYJb__c.js → index.CFnDv8Ab.js} +1 -1
- streamlit/static/static/js/{index.CcMFXZBL.js → index.CQYXOt0H.js} +1 -1
- streamlit/static/static/js/{index.B2-yUxP6.js → index.CU_SzKbN.js} +1 -1
- streamlit/static/static/js/{index.C-GJaT09.js → index.CWOluRqa.js} +1 -1
- streamlit/static/static/js/{index.V3D0L00K.js → index.CbDE21BB.js} +1 -1
- streamlit/static/static/js/{index.DNURUtUa.js → index.ChX_XN9v.js} +1 -1
- streamlit/static/static/js/index.Cn3q8ZVn.js +2 -0
- streamlit/static/static/js/{index.DBEif7dq.js → index.CzzEyXiC.js} +3 -3
- streamlit/static/static/js/{index.B28jf8c_.js → index.DIxzN4oM.js} +51 -51
- streamlit/static/static/js/index.DSsFpl6V.js +3 -0
- streamlit/static/static/js/{index.ClfebD_T.js → index.DmZP-_fu.js} +1 -1
- streamlit/static/static/js/{index.Nb8G9oM-.js → index.Dw1CjpSH.js} +1 -1
- streamlit/static/static/js/index.IydYP9PK.js +1 -0
- streamlit/static/static/js/{index.Uid-bSyh.js → index.TnCoD1oP.js} +1 -1
- streamlit/static/static/js/{index.BRDvEQpe.js → index.WW1pXc2g.js} +1 -1
- streamlit/static/static/js/{index.qkhdJyyt.js → index.eNGIEtgK.js} +7 -7
- streamlit/static/static/js/{index.BBHrAwbG.js → index.m_aVBz2b.js} +1 -1
- streamlit/static/static/js/{index.BeuGcxG8.js → index.rPwcP7b8.js} +1 -1
- streamlit/static/static/js/{index.m0rRkw04.js → index.u-RVYMyk.js} +1 -1
- streamlit/static/static/js/{input.DogdK8Cg.js → input.CVw5KI0x.js} +2 -2
- streamlit/static/static/js/{memory.B_1d0kyG.js → memory.CnrS2dOM.js} +1 -1
- streamlit/static/static/js/{mergeWith.9h0p6sC_.js → mergeWith.DUDC520V.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.yRe6Yodu.js → number-overlay-editor.Ccw3Yu2p.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.C73_6grg.js → possibleConstructorReturn.wVJHSwqv.js} +1 -1
- streamlit/static/static/js/{sandbox.2u3nOS5d.js → sandbox.CpAztCDM.js} +1 -1
- streamlit/static/static/js/{textarea.DFCEFjUj.js → textarea.CFjEVTUg.js} +2 -2
- streamlit/static/static/js/{timepicker.GuNna1EN.js → timepicker.DMKQZM-V.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.DARzcvE5.js → toConsumableArray.KVlxKIgo.js} +1 -1
- streamlit/static/static/js/{uniqueId.fceb1ayN.js → uniqueId.kOCufBPt.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.D6255-xX.js → useBasicWidgetState.Bs_D3hOD.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.BjnOKne4.js → useOnInputChange.BH-JyYhR.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.B7h9p1kI.js → withFullScreenWrapper.vQYihw6n.js} +1 -1
- streamlit/web/server/routes.py +1 -59
- streamlit/web/server/server.py +7 -8
- {streamlit_nightly-1.44.1.dev20250327.dist-info → streamlit_nightly-1.44.2.dev20250403.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.44.1.dev20250327.dist-info → streamlit_nightly-1.44.2.dev20250403.dist-info}/RECORD +91 -91
- streamlit/static/static/js/index.BUz0sS-V.js +0 -1
- streamlit/static/static/js/index.CDMGlkYx.js +0 -3
- streamlit/static/static/js/index.CPMy5pwd.js +0 -1
- streamlit/static/static/js/index.DfvKnm4Q.js +0 -2
- {streamlit_nightly-1.44.1.dev20250327.data → streamlit_nightly-1.44.2.dev20250403.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.44.1.dev20250327.dist-info → streamlit_nightly-1.44.2.dev20250403.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.44.1.dev20250327.dist-info → streamlit_nightly-1.44.2.dev20250403.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.44.1.dev20250327.dist-info → streamlit_nightly-1.44.2.dev20250403.dist-info}/top_level.txt +0 -0
@@ -3,7 +3,7 @@ streamlit/__main__.py,sha256=G3Ka6wgeICpC1gI872L7jGQhY4ukAFo3lgnYIqtoBIo,868
|
|
3
3
|
streamlit/auth_util.py,sha256=T_fe3wXFOoAGNyrxhS8r-SeXMqvWGtU3j9EvQvES8Pc,8496
|
4
4
|
streamlit/cli_util.py,sha256=usVophgZtkDBxqYfiGx07W8NA_d4RUJ7P_EFTgSP-jQ,3383
|
5
5
|
streamlit/column_config.py,sha256=Hlub5VfY4T9uRwORkgiaJpAqNdEF_jpjIC16BreZEQ4,1448
|
6
|
-
streamlit/config.py,sha256=
|
6
|
+
streamlit/config.py,sha256=snbujkcDhewzV9hCtnzvY5sUlbhbRLHuvff-szfJTuY,49423
|
7
7
|
streamlit/config_option.py,sha256=E9ZhEsnr3gaU8BM0Pl3Q6xK6nuRCGJOgznuKezAAw_M,11566
|
8
8
|
streamlit/config_util.py,sha256=USgIqEQu061ZIDy9z_wpkMzSImkjKLrlm11SoAQYrsA,6012
|
9
9
|
streamlit/cursor.py,sha256=MgoVLi-bJqDdyWs5WbHYPbjkzAF-cNVk08_bTOAo1wQ,6026
|
@@ -34,11 +34,11 @@ streamlit/util.py,sha256=AW1Dl076JlnO6oSbDhYnoMJ46QWatqns3jffPHY0znU,2349
|
|
34
34
|
streamlit/version.py,sha256=Id-r1xqJGJ5ptTPF-_XZpuCIXLqIq5hb8yKOX4IA1Dg,763
|
35
35
|
streamlit/commands/__init__.py,sha256=M4sIyiinWL04bSC-QUcfYDB8Gr-h0uXGjTmL6o2v8jc,616
|
36
36
|
streamlit/commands/echo.py,sha256=grikqN1C9wBvrs2MJxiaHvDUGYNqZgs0H-9AZ_iWYcc,4142
|
37
|
-
streamlit/commands/execution_control.py,sha256=
|
37
|
+
streamlit/commands/execution_control.py,sha256=IzXw4Tx9EX7CS0DfUX75hGV1TVmabaclvv7QABLuHlg,8803
|
38
38
|
streamlit/commands/experimental_query_params.py,sha256=JzjnO3z8kfgv5tTP4tXY253oSeqAAVs5HqnJMg6OcHg,5729
|
39
39
|
streamlit/commands/logo.py,sha256=KXHSgFzBENuu5yy3XJ8buHakKC1mVEx6M9y9Xpq62t0,7116
|
40
40
|
streamlit/commands/navigation.py,sha256=t1G738AWYP6MS6tFDfSkqmVqwSgNytsOZ6E7aP6dUrY,13958
|
41
|
-
streamlit/commands/page_config.py,sha256
|
41
|
+
streamlit/commands/page_config.py,sha256=-qyHURN9k4mjNQu6PMt6YxOccrwBiN9MYgYQA5VdL-E,13199
|
42
42
|
streamlit/components/__init__.py,sha256=M4sIyiinWL04bSC-QUcfYDB8Gr-h0uXGjTmL6o2v8jc,616
|
43
43
|
streamlit/components/lib/__init__.py,sha256=M4sIyiinWL04bSC-QUcfYDB8Gr-h0uXGjTmL6o2v8jc,616
|
44
44
|
streamlit/components/lib/local_component_registry.py,sha256=dW0qT1vzQ895Atq3R_VdGC1-vTdBBlMnCp5w3G8II5g,3016
|
@@ -87,7 +87,7 @@ streamlit/elements/spinner.py,sha256=YmcSTNWvUzw8ffVGM5Bb_s4n-FCVUNClDl4kAneHQD0
|
|
87
87
|
streamlit/elements/text.py,sha256=Zc7kYznALyW5V_T8xL2QsUMJUi1VudGvqbK7gGfrXtI,2418
|
88
88
|
streamlit/elements/toast.py,sha256=YPrdsKrPrXZ5u_q0SlgkZKneApX-DV7vBylWw04GDwU,3711
|
89
89
|
streamlit/elements/vega_charts.py,sha256=qHZ2ARbFgnh_UvbOknIaQcFLxtt5xT9oOsJ3nN6B48M,79141
|
90
|
-
streamlit/elements/write.py,sha256=
|
90
|
+
streamlit/elements/write.py,sha256=UCZOMyYHKtN0sRkq4zTrBJDEvcLqWy_ZWRpek6Jy4RY,22347
|
91
91
|
streamlit/elements/lib/__init__.py,sha256=M4sIyiinWL04bSC-QUcfYDB8Gr-h0uXGjTmL6o2v8jc,616
|
92
92
|
streamlit/elements/lib/built_in_chart_utils.py,sha256=48uLukpoR3bc6ocsYleBawNGmiYb769QSgLMfdBKQn4,38765
|
93
93
|
streamlit/elements/lib/color_util.py,sha256=mSCsUrXgtVtbd0MoJN9IfLnfi6YSWAGUCUa204GPxWc,8988
|
@@ -174,8 +174,8 @@ streamlit/proto/ChatInput_pb2.py,sha256=MVfRZCfAyjQw9aPGPlA1hLJIQGhVVExETw1sDOUP
|
|
174
174
|
streamlit/proto/ChatInput_pb2.pyi,sha256=r4l-FmiDECsMg1NBM7dgV5Kvt9GdUpQHj83aoiKEKik,4470
|
175
175
|
streamlit/proto/Checkbox_pb2.py,sha256=9vgvZwCm6WrLYK2f_TgkNYlL9mFIva_cr6TzULsIBgQ,1996
|
176
176
|
streamlit/proto/Checkbox_pb2.pyi,sha256=44qJ25N06ml9W5OnjUwwBQGl2Q4ym_L3teg2HT0_B7k,3483
|
177
|
-
streamlit/proto/ClientState_pb2.py,sha256=
|
178
|
-
streamlit/proto/ClientState_pb2.pyi,sha256=
|
177
|
+
streamlit/proto/ClientState_pb2.py,sha256=X48Uv1Bp99dvOLhK22FBi1OG2TPlhsen7tAHpPs_obI,2182
|
178
|
+
streamlit/proto/ClientState_pb2.pyi,sha256=eoJmc2jHrvj4iVDfRmLBeigLN1vbCSlwW0-Lqud9m2s,4820
|
179
179
|
streamlit/proto/Code_pb2.py,sha256=ZuwkusM8Rs8yEBXs3xdYQU10fvQMH9r5gfBVddFueCo,1362
|
180
180
|
streamlit/proto/Code_pb2.pyi,sha256=3OApFNoVHfm7MljX5Q0rgzYAMlGG2jrs7xZOtd3ciIU,1841
|
181
181
|
streamlit/proto/ColorPicker_pb2.py,sha256=mRCJI52B9WnNjrQZ9uVizhXmzjxdWOiPI11i6faGM9k,1766
|
@@ -207,7 +207,7 @@ streamlit/proto/Favicon_pb2.pyi,sha256=O5mOqpEsUfyhNDKxRK5A1fgmc9mUzIUohyRs5WsDW
|
|
207
207
|
streamlit/proto/FileUploader_pb2.py,sha256=LJW3q13Qt-vkmrQdDxWgFQSLWn_sv4YZXbxe9XisyFI,1809
|
208
208
|
streamlit/proto/FileUploader_pb2.pyi,sha256=nx4NPpX1vWWR5qJdqji76N1b6jOjiRgudSwoG7asvFo,3100
|
209
209
|
streamlit/proto/ForwardMsg_pb2.py,sha256=hgeTjC5L0n70tze-9dRYNdim5NDWHcCB1Bnomn_6o8A,5920
|
210
|
-
streamlit/proto/ForwardMsg_pb2.pyi,sha256=
|
210
|
+
streamlit/proto/ForwardMsg_pb2.pyi,sha256=ECkqxOuSkdJ8XLoHuyGIRR5hlHcf3nAOV1gTkCF7u_I,14183
|
211
211
|
streamlit/proto/GitInfo_pb2.py,sha256=OdMZE9PzOVB1K_CsCHi4OyurMH1KDUQl4wR4gH8ze0A,1700
|
212
212
|
streamlit/proto/GitInfo_pb2.pyi,sha256=D1UdBYRt7Upg2-tf3E63V7dQ9fqLe6nUnLSMaaw4a7U,3259
|
213
213
|
streamlit/proto/GraphVizChart_pb2.py,sha256=XJKd5IrVUzX_3mF3FHLFCEOQWm5vQXi7GWhgkx3AHlo,1440
|
@@ -300,12 +300,12 @@ streamlit/proto/__init__.py,sha256=WJu86eq4nAb-pIORVP6xRkKHJwAJQcekPW2dRflPl-c,6
|
|
300
300
|
streamlit/proto/openmetrics_data_model_pb2.py,sha256=dWlhXENjgvIGCMnAumDVQkLA4TQQzP77G5pncI6oP9I,6424
|
301
301
|
streamlit/proto/openmetrics_data_model_pb2.pyi,sha256=dmABrepaNR5S9kA1UPfQGXqY_ARAUuLmQBqG1Xn_HUY,20319
|
302
302
|
streamlit/runtime/__init__.py,sha256=hJe0wzCysHGQwTcq6YxdFqiElH2Y9_8fmhtBFkHiDuc,1523
|
303
|
-
streamlit/runtime/app_session.py,sha256=
|
303
|
+
streamlit/runtime/app_session.py,sha256=YDbgvazpDP69kMosKZu-OBBv-aC6F933AH7c_A5s7xE,39847
|
304
304
|
streamlit/runtime/connection_factory.py,sha256=3Deb5YO0dimhoPPHg1x9aAwHLGOO3RYVXrLVhpQuyN4,15487
|
305
|
-
streamlit/runtime/context.py,sha256=
|
305
|
+
streamlit/runtime/context.py,sha256=wVQTBZtFx0CkG1exvE7UaH8ClRL5brEy7rAFTcAOC1Y,10320
|
306
306
|
streamlit/runtime/credentials.py,sha256=OYc_Z1M9mk3toUb5Dr_YBex9DmM0rVUqcrO4rBVM2DE,11253
|
307
|
-
streamlit/runtime/forward_msg_cache.py,sha256=
|
308
|
-
streamlit/runtime/forward_msg_queue.py,sha256=
|
307
|
+
streamlit/runtime/forward_msg_cache.py,sha256=gbUejY2Ce85QfZL9sCoCz6KurKGrqty1Sq3b_9AhzIU,3684
|
308
|
+
streamlit/runtime/forward_msg_queue.py,sha256=xT6hZzs98mhIRqsy1mIV0tgwrz3RhnOyzOLjG1CFmOE,10522
|
309
309
|
streamlit/runtime/fragment.py,sha256=vn5z-crLpupfeQYrx8_W8zo8v87YmHlspwchvGbSRmE,18860
|
310
310
|
streamlit/runtime/media_file_manager.py,sha256=EsuoLpXuFVSfs81xgsPxAcVWOnPB1386Ilx8dI0pZQU,8550
|
311
311
|
streamlit/runtime/media_file_storage.py,sha256=ME_4J_2UHw-CZULB7z18yg_qCzEdN7QDqdRePEB5CBc,4375
|
@@ -314,11 +314,11 @@ streamlit/runtime/memory_session_storage.py,sha256=snqzNRfvbStkKPsyqBRkvF0XCkww7
|
|
314
314
|
streamlit/runtime/memory_uploaded_file_manager.py,sha256=uSXahvNjmnCVWMUpF4UckApUoP9qOHIB7Vji_eZ-YQQ,4487
|
315
315
|
streamlit/runtime/metrics_util.py,sha256=1Ef9GnsrL29MtWVXKSqpXpLJEJ2XV_k1ZgLYlCd8cjg,15020
|
316
316
|
streamlit/runtime/pages_manager.py,sha256=Q5lN6DIHxOSiDjkbPFYiXMyw1wIFLRM6oZk1FmrTw2E,6214
|
317
|
-
streamlit/runtime/runtime.py,sha256=
|
318
|
-
streamlit/runtime/runtime_util.py,sha256=
|
317
|
+
streamlit/runtime/runtime.py,sha256=Yx4ZLhwrn49oOUY46fqWWXua8o_A5T1SzPOxFXVDq2c,27266
|
318
|
+
streamlit/runtime/runtime_util.py,sha256=xkKRSgo2TAilzgRkx-myX5aCI1fEJBrNcozxb1kr1FU,3954
|
319
319
|
streamlit/runtime/script_data.py,sha256=Suw_A7tgbc-Yu0rffPSvkrY_CHutAx5s-sfldn04URA,1749
|
320
320
|
streamlit/runtime/secrets.py,sha256=5ufRhTtyluBH_F5K14w584VPbgChwWs1z_vT4Iai0rc,19767
|
321
|
-
streamlit/runtime/session_manager.py,sha256=
|
321
|
+
streamlit/runtime/session_manager.py,sha256=JzAWdkbsdfmgKs-ch06BI7VMU1GMaGVBKhdBL388_Yk,13208
|
322
322
|
streamlit/runtime/stats.py,sha256=Rw0qa_eqqddbfEhEjr7V9Fwba1aljyGuGm_cUrwUwS8,3801
|
323
323
|
streamlit/runtime/uploaded_file_manager.py,sha256=Pvu-0sYG4FSd_MP0QGxKVr2G3bch5OE0TxJG-tuMLoo,4861
|
324
324
|
streamlit/runtime/websocket_session_manager.py,sha256=vIMFVyTjMSh-ub-px-1qIwmxE8z6oprCzeZq5010vQo,6361
|
@@ -341,11 +341,11 @@ streamlit/runtime/scriptrunner/exec_code.py,sha256=LlSV5N5WBe9hBOO8UUX0amX3du1Kq
|
|
341
341
|
streamlit/runtime/scriptrunner/magic.py,sha256=ba-U6E6QOLijuXWVJXTxaNd_caj1gs9bFGdFgyyZU34,9126
|
342
342
|
streamlit/runtime/scriptrunner/magic_funcs.py,sha256=nDmNTiiRQlDGHJMw0lQv_qVK8SZsn5_Z1xq7tLhZCBk,1056
|
343
343
|
streamlit/runtime/scriptrunner/script_cache.py,sha256=duLzXBH1_PHe8HrLvNhumIyEPB3IhuHqWu8fqZm4Ba0,2856
|
344
|
-
streamlit/runtime/scriptrunner/script_runner.py,sha256=
|
344
|
+
streamlit/runtime/scriptrunner/script_runner.py,sha256=j7FF9PI3Kxawt5qCsRcUQiSdVvelokAZzbyagXGRdHU,31090
|
345
345
|
streamlit/runtime/scriptrunner_utils/__init__.py,sha256=JPxE7lIKT4SyeaC4Q6pIvhZa6Jvu8TcQqvh-S9w-Vy0,840
|
346
346
|
streamlit/runtime/scriptrunner_utils/exceptions.py,sha256=-jUnZ4VYkL01KHTffe5ACZCw98k5ToMkyP9Tqs959dY,1555
|
347
|
-
streamlit/runtime/scriptrunner_utils/script_requests.py,sha256=
|
348
|
-
streamlit/runtime/scriptrunner_utils/script_run_context.py,sha256=
|
347
|
+
streamlit/runtime/scriptrunner_utils/script_requests.py,sha256=4eq4Q5rHljAdct9jL-768JV8RwzC5pdvuxsBbJwimZE,12625
|
348
|
+
streamlit/runtime/scriptrunner_utils/script_run_context.py,sha256=VIILThsOFRCxbTJeXFsWIBPpGBQg2El8KIoJ1dgjfI8,11526
|
349
349
|
streamlit/runtime/state/__init__.py,sha256=RTi68He0V3JGETMplE464sjqahqVi06RtvU5ckpzcIk,1433
|
350
350
|
streamlit/runtime/state/common.py,sha256=sovyngvVKOD1SAREksjFDiEF4KHy0V1ZFxwof1QjpPM,6411
|
351
351
|
streamlit/runtime/state/query_params.py,sha256=09oiuPGhxL7-D7FUBZo7okGBvspUkeopIl0ehvs2sok,7501
|
@@ -355,83 +355,83 @@ streamlit/runtime/state/session_state.py,sha256=GPKLjSShq4iUOvNcMNV8HfECSR251R1g
|
|
355
355
|
streamlit/runtime/state/session_state_proxy.py,sha256=Z05Q6zmCmJUJSVovW3UzabtU-lSrdXEOXsjne438Lto,5551
|
356
356
|
streamlit/runtime/state/widgets.py,sha256=ofGjJppIwiqFN9DpBtXQakQifNpxZOVYNPCSyvCWo8Y,5319
|
357
357
|
streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
|
358
|
-
streamlit/static/index.html,sha256=
|
358
|
+
streamlit/static/index.html,sha256=_MKZqKuLUPRdxoid2_DcrYyFWzCpHTp1-pinFANy--4,1837
|
359
359
|
streamlit/static/static/css/index.C5t3M85E.css,sha256=PtcvtHSL-nWJWgVsI19C3yv4M-FvjXSxlSvGCUlpVvY,18462
|
360
360
|
streamlit/static/static/css/index.DKr_zoDj.css,sha256=DQJR2Ib9NnO4c_Ld34vuIinhFnXyq4rx7TstHPEn1O4,31692
|
361
361
|
streamlit/static/static/css/index.DzuxGC_t.css,sha256=1D1iN9VtJEU7H_zye_YV2guXskYkxI7PXbq1YXw5JOw,35092
|
362
|
-
streamlit/static/static/js/FileDownload.esm.
|
363
|
-
streamlit/static/static/js/FileHelper.
|
364
|
-
streamlit/static/static/js/FormClearHelper.
|
365
|
-
streamlit/static/static/js/Hooks.
|
366
|
-
streamlit/static/static/js/InputInstructions.
|
367
|
-
streamlit/static/static/js/ProgressBar.
|
368
|
-
streamlit/static/static/js/RenderInPortalIfExists.
|
369
|
-
streamlit/static/static/js/Toolbar.
|
362
|
+
streamlit/static/static/js/FileDownload.esm.B3kD8CdX.js,sha256=bHjfIiMSFU2PcHzuIzr8pLzGOoayN9sZb3znTGxVgko,918
|
363
|
+
streamlit/static/static/js/FileHelper.CZMZF2jC.js,sha256=J4wyS9HkK8PYz6mZ_ssjQvb00FqZp3BN-5UvyA1PfMY,61609
|
364
|
+
streamlit/static/static/js/FormClearHelper.BjztopwY.js,sha256=0KxJwH3xiARpOALf9P1SfY6aqytzp8pcHKVwSfenBQU,631
|
365
|
+
streamlit/static/static/js/Hooks.B2w-p718.js,sha256=YfJl8sdh6dW5tMF006jr5iZdG1cfuc33oJk-rLQCh6w,140
|
366
|
+
streamlit/static/static/js/InputInstructions.CuF13wx9.js,sha256=4g4EOLTR7FTYuhyq_X4hhx37JLHx-X3Iue_UPyjGckc,899
|
367
|
+
streamlit/static/static/js/ProgressBar.BbIgSlVa.js,sha256=0sOWBUPwvy9EOyVVUkjEKsCtZJAm9JJ4gfExxO2e_34,13318
|
368
|
+
streamlit/static/static/js/RenderInPortalIfExists.yENMDBLa.js,sha256=lPM3t-Cz0Ga1ZiCsTiD5HHhMiel1G5pAKNo5KuyBttA,523
|
369
|
+
streamlit/static/static/js/Toolbar.DJ7G2mIO.js,sha256=VLsBllrMajnLdnVjWFSZMMWlJdUMr1cl4Nq9B9SVxcE,2817
|
370
370
|
streamlit/static/static/js/UploadFileInfo.C-jY39rj.js,sha256=Z_hcytEoaAX1saJgsfX1UoComwwlMcjCUZ8ldwuQJI8,151
|
371
|
-
streamlit/static/static/js/base-input.
|
372
|
-
streamlit/static/static/js/checkbox.
|
371
|
+
streamlit/static/static/js/base-input.DIlOlDo4.js,sha256=MtjUqdV7mWDb8kRn-FZev8-8R7_J-trgtUfh2VLqA14,21774
|
372
|
+
streamlit/static/static/js/checkbox.BQjuWiaH.js,sha256=4D6MIfEOOwy8yz1SfUkRb0fg76xUV_-6qW1MJ-fppbg,11243
|
373
373
|
streamlit/static/static/js/createDownloadLinkElement.DZMwyjvU.js,sha256=uB4db2cbWB2KYpRbQKK6xi-mLBiUQXQtsL5I3N6rMcU,242
|
374
|
-
streamlit/static/static/js/createSuper.
|
375
|
-
streamlit/static/static/js/data-grid-overlay-editor.
|
376
|
-
streamlit/static/static/js/downloader.
|
377
|
-
streamlit/static/static/js/es6.
|
378
|
-
streamlit/static/static/js/iframeResizer.contentWindow.
|
379
|
-
streamlit/static/static/js/index.
|
380
|
-
streamlit/static/static/js/index.
|
381
|
-
streamlit/static/static/js/index.
|
382
|
-
streamlit/static/static/js/index.
|
383
|
-
streamlit/static/static/js/index.
|
384
|
-
streamlit/static/static/js/index.
|
385
|
-
streamlit/static/static/js/index.
|
386
|
-
streamlit/static/static/js/index.
|
387
|
-
streamlit/static/static/js/index.
|
388
|
-
streamlit/static/static/js/index.
|
389
|
-
streamlit/static/static/js/index.
|
390
|
-
streamlit/static/static/js/index.
|
391
|
-
streamlit/static/static/js/index.
|
392
|
-
streamlit/static/static/js/index.
|
393
|
-
streamlit/static/static/js/index.
|
394
|
-
streamlit/static/static/js/index.
|
395
|
-
streamlit/static/static/js/index.
|
396
|
-
streamlit/static/static/js/index.
|
397
|
-
streamlit/static/static/js/index.
|
398
|
-
streamlit/static/static/js/index.
|
399
|
-
streamlit/static/static/js/index.
|
400
|
-
streamlit/static/static/js/index.
|
401
|
-
streamlit/static/static/js/index.
|
402
|
-
streamlit/static/static/js/index.
|
403
|
-
streamlit/static/static/js/index.
|
404
|
-
streamlit/static/static/js/index.
|
405
|
-
streamlit/static/static/js/index.
|
406
|
-
streamlit/static/static/js/index.
|
407
|
-
streamlit/static/static/js/index.
|
408
|
-
streamlit/static/static/js/index.
|
409
|
-
streamlit/static/static/js/index.
|
410
|
-
streamlit/static/static/js/index.
|
411
|
-
streamlit/static/static/js/index.
|
412
|
-
streamlit/static/static/js/index.
|
413
|
-
streamlit/static/static/js/index.
|
414
|
-
streamlit/static/static/js/index.
|
415
|
-
streamlit/static/static/js/index.qkhdJyyt.js,sha256=yomtvpX-dzuSaYgUFMsVFdpvR-yUE02DpsUYIcwPZMU,434804
|
374
|
+
streamlit/static/static/js/createSuper.DsCxV-v8.js,sha256=EUfvB6K7aIgh7nz6ESQCShw-EEhOqNCdi2uSIfe8Lgc,394
|
375
|
+
streamlit/static/static/js/data-grid-overlay-editor.D4K6HcP0.js,sha256=IyBkb70GYx-9-V3qQ2QTAylSXVqG07MEF2Gi383xK08,4142
|
376
|
+
streamlit/static/static/js/downloader.Lq-fJZlW.js,sha256=cycnx-UVk_0JGrhPJo1aEAuW-vcft8mh18fFJREPDko,2535
|
377
|
+
streamlit/static/static/js/es6.BE-9QZmp.js,sha256=xWrWwxHBRaLhh5w8rJXci0QOqq1HdU6om63vDha7v70,15321
|
378
|
+
streamlit/static/static/js/iframeResizer.contentWindow.CVN6zezL.js,sha256=yBnyIWTUKr0zdjnIBW5c0kPAjwOsf6JIc3LU1MitRw0,14406
|
379
|
+
streamlit/static/static/js/index.0HztFnVa.js,sha256=UI52Dl844FXYIUIgN8m-9WvX7_-c4mupp6_dqLp2ENc,12045
|
380
|
+
streamlit/static/static/js/index.5819-zgt.js,sha256=oCSIKCDgIXiP4uxV-otM_ZMY5TO-T-ZIpjs0ZlNrflM,2876
|
381
|
+
streamlit/static/static/js/index.B-KH-iJ1.js,sha256=8WLhSgnK81KFvivEnuUu29_gLQZRorXeuxi5KHJf9NI,50242
|
382
|
+
streamlit/static/static/js/index.B0f5Sqj9.js,sha256=admheCacGwehhY0z73jI1hcJKtEBATgRP8OOqxxUXRo,2020
|
383
|
+
streamlit/static/static/js/index.B1gZ98Ih.js,sha256=YozqTNt8qT0OCfOefBZooS7Dzpv8JLQSLm3KTGlHWYY,1277
|
384
|
+
streamlit/static/static/js/index.B2XNA40L.js,sha256=Pd1cHe7wpg0CUKddu6v3I20Tr-_IoTCleraoXrT9PDI,7623
|
385
|
+
streamlit/static/static/js/index.B7RGQCfs.js,sha256=aqT9W5_sJQtjdcQ88QNcqvJ154MVY4uoQLBSLpJxTNE,13204
|
386
|
+
streamlit/static/static/js/index.BB3TfMGO.js,sha256=N3BYi8ETPT2S7dFrq09eX3fGjvJZhwVm_3H7OQ6NiFU,19576
|
387
|
+
streamlit/static/static/js/index.BDovkxCx.js,sha256=SoYG5xndtS_2ScSnqwGaB39SoOCziJYpPHNfXSEG3OY,1333
|
388
|
+
streamlit/static/static/js/index.BMWHViZF.js,sha256=3HD4wdBB78iKenvudqGqftLhVnAsu4sU6SumqCZLLCY,1612
|
389
|
+
streamlit/static/static/js/index.BM_qS2Z6.js,sha256=ELl7arLm3uaC620rroab2_B-hO63HSyJv3APXlTeVss,9077
|
390
|
+
streamlit/static/static/js/index.BYWoEwfP.js,sha256=PTt0lOOOFMl2k6TLkAuaKsmn_7e_xw02A8BL37wIMAc,2396
|
391
|
+
streamlit/static/static/js/index.Bs_nrSu4.js,sha256=PSGzVg-NHfJPrDcbYkuo8m93uVzYGh-U41HBKu3p8CI,617
|
392
|
+
streamlit/static/static/js/index.BwOqVS7B.js,sha256=8WD5tmT8G1M5M7-JZ5vzzA5BGRL7feKqwtlKKxiEYGM,852044
|
393
|
+
streamlit/static/static/js/index.BysxR7v7.js,sha256=3whdJGjGdlfW_Lo8WCBRqUKSFFN43VvBdpznIx8AaCY,2861
|
394
|
+
streamlit/static/static/js/index.C6uLzsGN.js,sha256=xfDN6z_dVDvhntkKa9KMe88K1MNgyv3scaSdT_KnACM,2837
|
395
|
+
streamlit/static/static/js/index.CDspsVkR.js,sha256=f_yGEU-ZCwuL-MDW1u02ZM6uBQKPZBQBgM6JzncVfgQ,443
|
396
|
+
streamlit/static/static/js/index.CE-qPTwY.js,sha256=m6d2owXa1js-Iog0_88FVd9sJOjZ36h1RA6FER6l9hc,1571
|
397
|
+
streamlit/static/static/js/index.CFnDv8Ab.js,sha256=PaQrt6TU43eIbs-3fITv2xqjajxb3EWo7YKcYVZR5jE,954
|
398
|
+
streamlit/static/static/js/index.CQYXOt0H.js,sha256=LVh71NHr03iLaZgZmhEde48N0fHyyhzQr2hmRACMAH0,2432
|
399
|
+
streamlit/static/static/js/index.CU_SzKbN.js,sha256=DD24pc5-CK2x4gI-Opd4kHh7UKE0EodbSL35g2XLv3s,3619
|
400
|
+
streamlit/static/static/js/index.CWOluRqa.js,sha256=Mp9_cbEwi9GwsuC6_AS0NeJsH5goFYlBEl6kNFejo8U,852494
|
401
|
+
streamlit/static/static/js/index.CbDE21BB.js,sha256=L5qnqncAmYlxyCg-OU-XP2OQGopXbR9iYtwUQYpP3aM,2573
|
402
|
+
streamlit/static/static/js/index.ChX_XN9v.js,sha256=gFtBl9Jz0wR3YoGBLXTmgkm0v0BVM8KmuV-Cq4PcG6s,113138
|
403
|
+
streamlit/static/static/js/index.Cn3q8ZVn.js,sha256=2pnYLKuCVRY1IWBekzwnZqEZlxSeq6l8kmTZzYoyj68,22749
|
404
|
+
streamlit/static/static/js/index.CzzEyXiC.js,sha256=effqNdEzpuqEqpRok937k9t4SJ6Pmb6oOxU_fKSevxU,24380
|
405
|
+
streamlit/static/static/js/index.DIxzN4oM.js,sha256=nX9ZAl8DhE8xRn6DFBtGppWbj0aJcLX_kSVdstYYaxc,6823957
|
406
|
+
streamlit/static/static/js/index.DSsFpl6V.js,sha256=TKWlJzPDG5NnIRaS00D7eCBzQ1f77y3YTyedaAXl3rc,19017
|
407
|
+
streamlit/static/static/js/index.DmZP-_fu.js,sha256=CA5rU1yVskUUY7KRzzFmtsMsum6K7Zb4jjXfze4L_L4,583
|
408
|
+
streamlit/static/static/js/index.Dw1CjpSH.js,sha256=WYIW6u0k7e4ypkYRbtekfmTx_B9Pg9KehUlmJKzStHs,890
|
409
|
+
streamlit/static/static/js/index.IydYP9PK.js,sha256=UhUeCjh3JwT4_A3rZ_RScXxIHowZ-z2y3amdBmL0_28,3951
|
410
|
+
streamlit/static/static/js/index.TnCoD1oP.js,sha256=FIyNmxR7qlCpbF_49O12QPIIeRJ4c5gckyoToBgH9cs,4692503
|
411
|
+
streamlit/static/static/js/index.WW1pXc2g.js,sha256=qIP_2EKOjT3x_jPTPZwfHDSpGifH4L7Ck55ivwpum7M,3385535
|
412
|
+
streamlit/static/static/js/index.eNGIEtgK.js,sha256=NzDbOgiUCbZ2mo8tBACwgXJtTdjulnSKzOSPN0JDD6o,434808
|
413
|
+
streamlit/static/static/js/index.m_aVBz2b.js,sha256=O5wE5XAWQ1nkyoS6vesyHcnheligPFSdJUZzQLdmck4,34827
|
414
|
+
streamlit/static/static/js/index.rPwcP7b8.js,sha256=US3MOTlr85ZHztCDGQS5vhG5Xw8WLYnZ2oKthNJY9tI,2598986
|
416
415
|
streamlit/static/static/js/index.t--hEgTQ.js,sha256=x8bkF-D3ssO38DU9Rs19R_4n30Te6uzH9Vq8hVJ2EJ0,34982
|
417
|
-
streamlit/static/static/js/
|
416
|
+
streamlit/static/static/js/index.u-RVYMyk.js,sha256=-PG62eM0bthMpeLP4wusr-5c_bFdeLRjRSrMM3ehjh8,718
|
417
|
+
streamlit/static/static/js/input.CVw5KI0x.js,sha256=aMa_h6KT92C0q_ydRRVhNSV7tXB9Fa7HVt0zGdg3qVU,5244
|
418
418
|
streamlit/static/static/js/inputUtils.CQWz5UKz.js,sha256=-kt6oYYgvhFS0t0EV2qJE6f43GUao6rNeipUmv3RuV8,150
|
419
|
-
streamlit/static/static/js/memory.
|
420
|
-
streamlit/static/static/js/mergeWith.
|
421
|
-
streamlit/static/static/js/number-overlay-editor.
|
422
|
-
streamlit/static/static/js/possibleConstructorReturn.
|
423
|
-
streamlit/static/static/js/sandbox.
|
419
|
+
streamlit/static/static/js/memory.CnrS2dOM.js,sha256=4hbDEXfsGf7InfObwFFCcNp-CloWrV4r0ymUrAOYIOQ,3041
|
420
|
+
streamlit/static/static/js/mergeWith.DUDC520V.js,sha256=dEgdjJ4sCpynt-ddFOrkyM9ipkif40FaW077agdP0KU,198
|
421
|
+
streamlit/static/static/js/number-overlay-editor.Ccw3Yu2p.js,sha256=7aPhgtNxYwdxzKE0N2raFa3C4A0gLYPMhPLcl00Qsx4,16550
|
422
|
+
streamlit/static/static/js/possibleConstructorReturn.wVJHSwqv.js,sha256=lwHuZadmW_fOQYxACuqh_nmGlbOM9zJH8FYBEyzxPdA,1451
|
423
|
+
streamlit/static/static/js/sandbox.CpAztCDM.js,sha256=loH89FPStvdzQpU_F1Gs0dYHk_HdLVOGhU6gzmCqBos,2960
|
424
424
|
streamlit/static/static/js/sprintf.D7DtBTRn.js,sha256=dLZEkTCGwWgkxMOITY-fqjbGVuUO9nFw7MwCANBdisk,3434
|
425
|
-
streamlit/static/static/js/textarea.
|
425
|
+
streamlit/static/static/js/textarea.CFjEVTUg.js,sha256=LUI8plH727X7tyAdEWLfyfHAfoV8lBQ3mRaYqeC6GPY,5761
|
426
426
|
streamlit/static/static/js/threshold.DjX0wlsa.js,sha256=ToJ7upF_PGcC41-Cfe0gGTVgWb0yjhBbHTQrd4GD4gg,5693
|
427
|
-
streamlit/static/static/js/timepicker.
|
427
|
+
streamlit/static/static/js/timepicker.DMKQZM-V.js,sha256=2gQw6BkWLsMP0b-CTUInHeQyui-N-y5m1tG5zbHITG4,89416
|
428
428
|
streamlit/static/static/js/timer.CAwTRJ_g.js,sha256=aNjItH3iW2RuvnLaZ54iUi50rhEiW93-1Rel2EyaRlQ,7408
|
429
|
-
streamlit/static/static/js/toConsumableArray.
|
430
|
-
streamlit/static/static/js/uniqueId.
|
431
|
-
streamlit/static/static/js/useBasicWidgetState.
|
432
|
-
streamlit/static/static/js/useOnInputChange.
|
429
|
+
streamlit/static/static/js/toConsumableArray.KVlxKIgo.js,sha256=cAxDWfoNbJ9y-2fCWWmd6jIWsN1cHF5qF-85S5EzNr0,1587
|
430
|
+
streamlit/static/static/js/uniqueId.kOCufBPt.js,sha256=7pMLDlYSJsOdR8jYyPtI5sf3MVaX-9GVJobuW54uxr8,190
|
431
|
+
streamlit/static/static/js/useBasicWidgetState.Bs_D3hOD.js,sha256=BVJ9shbuvRrl77rCJfGKzDsYf3vTNRhIcLYwkLONB18,960
|
432
|
+
streamlit/static/static/js/useOnInputChange.BH-JyYhR.js,sha256=nEe6WAthdWWjX8KenijuRkOJKXenB5k6HCxRCrnUHzg,587
|
433
433
|
streamlit/static/static/js/value.CgPGBV_l.js,sha256=7g4Owjf_hP16pkcLYPvARUlzIjBgl9APVNw2hnHYtWY,15042
|
434
|
-
streamlit/static/static/js/withFullScreenWrapper.
|
434
|
+
streamlit/static/static/js/withFullScreenWrapper.vQYihw6n.js,sha256=e8H3RZtfJ7M9uN3mj9Ebfq8YmMef3Xgedp04nNy_DGg,1666
|
435
435
|
streamlit/static/static/media/KaTeX_AMS-Regular.BQhdFMY1.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
|
436
436
|
streamlit/static/static/media/KaTeX_AMS-Regular.DMm9YOAa.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
|
437
437
|
streamlit/static/static/media/KaTeX_AMS-Regular.DRggAlZN.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
|
@@ -549,15 +549,15 @@ streamlit/web/server/component_request_handler.py,sha256=mnq7ZycaF3s6kgt1k6xqdcX
|
|
549
549
|
streamlit/web/server/media_file_handler.py,sha256=o7QxUe5TrOrP76W6a9xxCJ3z2q_50Yumrr61x-4UvjM,5270
|
550
550
|
streamlit/web/server/oauth_authlib_routes.py,sha256=Sv_Edh4OpdD6qXkh_dYEiZHr1m3uHzM222jTVBDNMpY,6193
|
551
551
|
streamlit/web/server/oidc_mixin.py,sha256=-6Blhe5_MiNyZ3x3H2B1_LJsH3jFtkyvaCxnyJLnWm0,4235
|
552
|
-
streamlit/web/server/routes.py,sha256=
|
553
|
-
streamlit/web/server/server.py,sha256=
|
552
|
+
streamlit/web/server/routes.py,sha256=WQUlBFBN0PvxaYiMkJ20MrxXGvhl3REEAiN-AvhxHBI,8540
|
553
|
+
streamlit/web/server/server.py,sha256=xrSY8J4p5Bvz9yBmLvSrGXvjRIEWVthKt8B3a3gmw2c,17355
|
554
554
|
streamlit/web/server/server_util.py,sha256=fresY5qk0fIBWBo2DfiJD7PvrZg6dSYQeK_aDK4LZy0,5205
|
555
555
|
streamlit/web/server/stats_request_handler.py,sha256=vMRWGfqItfI6OaqVyo3LIX3HjQ-OB6Y-LHOXPiihlGY,3641
|
556
556
|
streamlit/web/server/upload_file_request_handler.py,sha256=NvjQpUt7HWi5DE08tLig_UWevKcC7nA7PFOJ-aSkxwk,5033
|
557
557
|
streamlit/web/server/websocket_headers.py,sha256=FCzUc-829kNY5hgy2wGNZT0k4XgCw_nlLCdnb7pnNO4,2232
|
558
|
-
streamlit_nightly-1.44.
|
559
|
-
streamlit_nightly-1.44.
|
560
|
-
streamlit_nightly-1.44.
|
561
|
-
streamlit_nightly-1.44.
|
562
|
-
streamlit_nightly-1.44.
|
563
|
-
streamlit_nightly-1.44.
|
558
|
+
streamlit_nightly-1.44.2.dev20250403.data/scripts/streamlit.cmd,sha256=k9768SaQCkiYAPaTp7JtkhAHEHflNQfu6fAM4pri6zo,676
|
559
|
+
streamlit_nightly-1.44.2.dev20250403.dist-info/METADATA,sha256=xf8CDik4q_EDQH30WzSKTxl-DTEr-6ZY8U6V5AgMNMw,8933
|
560
|
+
streamlit_nightly-1.44.2.dev20250403.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
561
|
+
streamlit_nightly-1.44.2.dev20250403.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
|
562
|
+
streamlit_nightly-1.44.2.dev20250403.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
|
563
|
+
streamlit_nightly-1.44.2.dev20250403.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r,E as k,_ as V,n as u,B as ft,z as N,j as n,ba as J,bu as mt,C as F,bp as Q,b5 as Z,bo as U,a$ as yt,bG as Ct,bj as vt,bH as b,bs as It,F as tt,bh as bt,bI as xt,M as R,bl as wt,bk as St}from"./index.B28jf8c_.js";import{g as Ft,F as $,C as zt,I as Et,E as Ut,a as Tt,s as Ht,u as Bt,b as Rt}from"./FileHelper.aCeQQwv9.js";import{I as Dt}from"./InputInstructions.CxNXqmaa.js";import{i as Lt}from"./inputUtils.CQWz5UKz.js";import{a as q}from"./index.t--hEgTQ.js";import{U as et}from"./UploadFileInfo.C-jY39rj.js";import{T as Mt}from"./textarea.DFCEFjUj.js";import"./base-input.B02pchZb.js";var ot=r.forwardRef(function(t,e){var i={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(k,V({iconAttrs:i,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 015 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 005 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}))});ot.displayName="AttachFile";var nt=r.forwardRef(function(t,e){var i={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(k,V({iconAttrs:i,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{d:"M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))});nt.displayName="ErrorOutline";var at=r.forwardRef(function(t,e){var i={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(k,V({iconAttrs:i,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M3 5.51v3.71c0 .46.31.86.76.97L11 12l-7.24 1.81c-.45.11-.76.51-.76.97v3.71c0 .72.73 1.2 1.39.92l15.42-6.49c.82-.34.82-1.5 0-1.84L4.39 4.58C3.73 4.31 3 4.79 3 5.51z"}))});at.displayName="Send";const $t=u("div",{target:"e1togvvn0"})("border:none;position:relative;display:flex;"),kt=u("div",{target:"e1togvvn1"})(({theme:t,extended:e})=>({border:`${t.sizes.borderWidth} solid`,borderColor:t.colors.widgetBorderColor??t.colors.transparent,borderRadius:t.radii.chatInput,backgroundColor:t.colors.secondaryBg,position:"relative",flexGrow:1,display:"flex",alignItems:"center",paddingLeft:t.spacing.lg,maxHeight:e?"none":t.sizes.minElementHeight,gap:t.spacing.sm,overflow:"hidden",":focus-within":{borderColor:t.colors.primary}})),Vt=u("button",{target:"e1togvvn2"})(({theme:t,disabled:e,extended:i})=>{const c=ft(t),[f,p]=c?[t.colors.gray60,t.colors.gray80]:[t.colors.gray80,t.colors.gray40];return{border:"none",backgroundColor:t.colors.transparent,borderTopRightRadius:i?"0":t.radii.chatInput,borderTopLeftRadius:i?t.radii.default:"0",borderBottomRightRadius:t.radii.chatInput,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:t.lineHeights.none,margin:t.spacing.none,padding:t.spacing.sm,color:e?f:p,pointerEvents:"auto","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{backgroundColor:c?t.colors.gray10:t.colors.gray90},"&:hover":{color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.transparent,borderColor:t.colors.transparent,color:t.colors.gray,cursor:"not-allowed"}}}),Nt=u("div",{target:"e1togvvn3"})(({theme:t})=>({display:"flex",alignItems:"flex-end",height:"100%",position:"absolute",right:0,marginBottom:`-${t.sizes.borderWidth}`,pointerEvents:"none"})),Wt=u("div",{target:"e1togvvn4"})(({theme:t})=>({position:"absolute",bottom:"0px",right:`calc(${t.iconSizes.xl} + 2 * ${t.spacing.sm} + ${t.spacing.sm})`})),At=u("div",{target:"e15560op0"})(({theme:t,height:e})=>({backgroundColor:t.colors.transparent,position:"absolute",left:0,bottom:0,minHeight:`max(${t.sizes.emptyDropdownHeight}, ${e})`,width:"100%",zIndex:t.zIndices.priority})),Pt=u("div",{target:"e15560op1"})(({theme:t,height:e})=>({border:`${t.sizes.borderWidth} solid`,borderColor:t.colors.primary,borderRadius:t.radii.chatInput,backgroundColor:t.colors.secondaryBg,color:t.colors.primary,display:"flex",alignItems:"center",justifyContent:"center",height:e,width:"100%",fontWeight:t.fontWeights.bold})),Kt=u("div",{target:"e15560op2"})(({theme:t,disabled:e})=>({display:"flex",alignItems:"top",height:"100%",marginTop:`-${t.sizes.borderWidth}`,cursor:e?"not-allowed":"auto"})),Ot=u("div",{target:"e15560op3"})(({disabled:t})=>({pointerEvents:t?"none":"auto"})),_t=u("div",{target:"e15560op4"})(({theme:t})=>({marginTop:"0.625em",marginLeft:t.spacing.sm,height:t.spacing.xl,width:t.sizes.borderWidth,backgroundColor:t.colors.fadedText20})),Xt=u("div",{target:"e15560op5"})(({theme:t})=>({left:0,right:0,lineHeight:t.lineHeights.tight,paddingLeft:t.spacing.sm,paddingRight:t.spacing.sm,overflowX:"auto"})),Gt=u("div",{target:"e15560op6"})({display:"flex"}),jt=u("div",{target:"e15560op7"})({flex:"0 0 auto"}),Yt=u("div",{target:"e15560op8"})(({theme:t})=>({display:"flex",alignItems:"center",padding:t.spacing.sm,gap:t.spacing.twoXS})),qt=u("div",{target:"e15560op9"})(({theme:t})=>({color:t.colors.fadedText60})),Jt=u("div",{target:"e15560op10"})(({theme:t,fileStatus:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:e.type==="uploaded"?t.colors.bodyText:t.colors.fadedText60})),Qt=u("div",{target:"e15560op11"})(({theme:t})=>({marginRight:t.spacing.md,color:t.colors.fadedText60})),Zt=u("small",{target:"e15560op12"})(({theme:t})=>({display:"flex",alignItems:"center",maxHeight:t.sizes.smallElementHeight,color:t.colors.fadedText60,"& :hover":{color:t.colors.bodyText}}));function te({children:t,content:e}){const i=N();return n(mt,{content:e,placement:J.TOP,overrides:{Body:{style:{top:`-${i.sizes.minElementHeight}`}}},children:t})}const ee=({fileInfo:t})=>{const e=N(),{type:i}=t.status;switch(i){case"uploading":return n(Ct,{usingCustomTheme:!1,"data-testid":"stChatInputFileIconSpinner",size:"lg",margin:"0",padding:"0"});case"error":return n(te,{content:t.status.errorMessage,children:n(U,{color:e.colors.red,content:nt,size:"lg"})});case"uploaded":return n(U,{content:Et,size:"lg"});default:return yt(i),null}},oe=({fileInfo:t,onDelete:e})=>F(Yt,{className:"stChatInputFile","data-testid":"stChatInputFile",children:[n(qt,{children:n(ee,{fileInfo:t})}),n(Jt,{className:"stChatInputFileName","data-testid":"stChatInputFileName",title:t.name,fileStatus:t.status,children:t.name}),n(Qt,{children:Ft(t.size,$.Byte)}),n(Zt,{"data-testid":"stChatInputDeleteBtn",children:n(Q,{onClick:()=>e(t.id),kind:Z.MINIMAL,children:n(U,{content:zt,size:"lg"})})})]}),ne=r.memo(oe),ae=({items:t,onDelete:e})=>n(Xt,{"data-testid":"stChatUploadedFiles",children:n(Gt,{children:t.map(i=>n(jt,{children:n(ne,{fileInfo:i,onDelete:e})},i.id))})}),re=r.memo(ae),ie=({getNextLocalFileId:t,addFiles:e,updateFile:i,uploadClient:c,element:f,onUploadProgress:p,onUploadComplete:m})=>(x,h)=>{const y=q.CancelToken.source(),g=new et(h.name,h.size,t(),{type:"uploading",cancelToken:y,progress:1});e([g]),c.uploadFile({formId:"",...f},x.uploadUrl,h,d=>p(d,g.id),y.token).then(()=>m(g.id,x)).catch(d=>{q.isCancel(d)||i(g.id,g.setStatus({type:"error",errorMessage:d?d.toString():"Unknown error"}))})},se=({acceptMultipleFiles:t,maxFileSize:e,uploadClient:i,uploadFile:c,addFiles:f,getNextLocalFileId:p,deleteExistingFiles:m,onUploadComplete:x})=>(h,y)=>{if(!t&&h.length===0&&y.length>1){const g=y.findIndex(d=>{var C;return((C=d.errors)==null?void 0:C[0].code)===Ut.TooManyFiles});g>=0&&(h.push(y[g].file),y.splice(g,1))}if(!t&&h.length>0&&m(),i.fetchFileURLs(h).then(g=>{vt(g,h).forEach(([d,C])=>{c(d,C)})}).catch(g=>{f(h.map(d=>new et(d.name,d.size,p(),{type:"error",errorMessage:g})))}),y.length>0){const g=y.map(d=>Tt(d,p(),e));f(g)}x()},le=({getRootProps:t,getInputProps:e,acceptFile:i,disabled:c,theme:f})=>F(Kt,{disabled:c,children:[F(Ot,{"data-testid":"stChatInputFileUploadButton",disabled:c,...t(),children:[n("input",{...e()}),n(It,{content:`Upload or drag and drop ${i===b.Multiple?"files":"a file"}`,placement:J.TOP,onMouseEnterDelay:500,children:n(Q,{kind:Z.MINIMAL,disabled:c,children:n(U,{content:ot,size:"lg",color:c?f.colors.fadedText40:f.colors.fadedText60})})})]}),n(_t,{})]}),de=r.memo(le),ce=({getRootProps:t,getInputProps:e,acceptFile:i,inputHeight:c})=>F(tt,{children:[n(At,{height:c,...t(),children:n("input",{...e()})}),n(Pt,{height:c,children:`Drag and drop ${i===b.Multiple?"files":"a file"} here`})]}),pe=r.memo(ce),ue=6.5,D=1,L=(t,e,i)=>i.map(c=>c.id===t?e:c),M=(t,e)=>e.find(i=>i.id===t);function ge({disabled:t,element:e,widgetMgr:i,fragmentId:c,uploadClient:f}){const p=N(),m=r.useRef(null),x=r.useRef(0),h=r.useRef({minHeight:0,maxHeight:0}),[y,g]=bt(),[d,C]=r.useState(e.default),[z,W]=r.useState(0),[T,rt]=r.useState(!1),[w,S]=r.useState([]),[E,H]=r.useState(!1),B=r.useMemo(()=>w.some(o=>o.status.type==="uploading")?!1:d!==""||w.length>0,[w,d]),I=xt(e.acceptFile),A=Ht(e.maxUploadSizeMb,$.Megabyte,$.Byte),P=r.useCallback(o=>S(a=>[...a,...o]),[]),K=r.useCallback(o=>{S(a=>{const l=M(o,a);return R(l)?a:(l.status.type==="uploading"&&l.status.cancelToken.cancel(),l.status.type==="uploaded"&&l.status.fileUrls.deleteUrl&&f.deleteFile(l.status.fileUrls.deleteUrl),a.filter(s=>s.id!==o))})},[f]),it=()=>{const o=w.filter(a=>a.status.type==="uploaded").map(a=>{const{name:l,size:s,status:v}=a,{fileId:gt,fileUrls:ht}=v;return new wt({fileId:gt,fileUrls:ht,name:l,size:s})});return new St({uploadedFileInfo:o})},O=()=>x.current++,st=se({acceptMultipleFiles:I===b.Multiple,maxFileSize:A,uploadClient:f,uploadFile:ie({getNextLocalFileId:O,addFiles:P,updateFile:(o,a)=>{S(l=>L(o,a,l))},uploadClient:f,element:e,onUploadProgress:(o,a)=>{S(l=>{const s=M(a,l);if(R(s)||s.status.type!=="uploading")return l;const v=Math.round(o.loaded*100/o.total);return s.status.progress===v?l:L(a,s.setStatus({type:"uploading",cancelToken:s.status.cancelToken,progress:v}),l)})},onUploadComplete:(o,a)=>{S(l=>{const s=M(o,l);return R(s)||s.status.type!=="uploading"?l:L(s.id,s.setStatus({type:"uploaded",fileId:a.fileId,fileUrls:a}),l)})}}),addFiles:P,getNextLocalFileId:O,deleteExistingFiles:()=>w.forEach(o=>K(o.id)),onUploadComplete:()=>{m.current&&m.current.focus()}}),{getRootProps:_,getInputProps:X}=Bt({onDrop:st,multiple:I===b.Multiple,accept:Rt(e.fileType),maxSize:A}),lt=()=>{let o=0;const{current:a}=m;if(a){const l=a.placeholder;a.placeholder="",a.style.height="auto",o=a.scrollHeight,a.placeholder=l,a.style.height=""}return o},G=()=>{if(m.current&&m.current.focus(),!B||t)return;const o={data:d,fileUploaderState:it()};i.setChatInputValue(e,o,{fromUi:!0},c),S([]),C(""),W(0)},dt=o=>{const{metaKey:a,ctrlKey:l,shiftKey:s}=o;Lt(o)&&!s&&!l&&!a&&(o.preventDefault(),G())},ct=o=>{const{value:a}=o.target,{maxChars:l}=e;l!==0&&a.length>l||(C(a),W(lt()))};r.useEffect(()=>{if(e.setValue){e.setValue=!1;const o=e.value||"";C(o)}},[e]),r.useLayoutEffect(()=>{if(m.current){const{offsetHeight:o}=m.current;h.current.minHeight=o,h.current.maxHeight=o*ue}},[m]),r.useEffect(()=>{const o=s=>{var v;s.preventDefault(),s.stopPropagation(),!E&&((v=s.dataTransfer)!=null&&v.types.includes("Files"))&&H(!0)},a=s=>{s.preventDefault(),s.stopPropagation(),E&&(s.clientX<=0&&s.clientY<=0||s.clientX>=window.innerWidth&&s.clientY>=window.innerHeight)&&H(!1)},l=s=>{s.preventDefault(),s.stopPropagation(),E&&H(!1)};return window.addEventListener("dragover",o),window.addEventListener("drop",l),window.addEventListener("dragleave",a),()=>{window.removeEventListener("dragover",o),window.removeEventListener("drop",l),window.removeEventListener("dragleave",a)}},[E]),r.useLayoutEffect(()=>{const{minHeight:o}=h.current;rt(z>0&&m.current?Math.abs(z-o)>D:!1)},[z]);const{placeholder:j,maxChars:pt}=e,{maxHeight:Y}=h.current,ut=I!==b.None&&E;return F(tt,{children:[I===b.None?null:n(re,{items:[...w],onDelete:K}),n($t,{className:"stChatInput","data-testid":"stChatInput",ref:g,children:ut?n(pe,{getRootProps:_,getInputProps:X,acceptFile:I,inputHeight:T?`${z+D}px`:p.sizes.minElementHeight}):F(kt,{extended:T,children:[I===b.None?null:n(de,{getRootProps:_,getInputProps:X,acceptFile:I,disabled:t,theme:p}),n(Mt,{inputRef:m,value:d,placeholder:j,onChange:ct,onKeyDown:dt,"aria-label":j,disabled:t,rows:1,overrides:{Root:{style:{minHeight:p.sizes.minElementHeight,outline:"none",borderLeftWidth:"0",borderRightWidth:"0",borderTopWidth:"0",borderBottomWidth:"0",borderTopLeftRadius:"0",borderTopRightRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0"}},Input:{props:{"data-testid":"stChatInputTextArea"},style:{lineHeight:p.lineHeights.inputWidget,"::placeholder":{opacity:"0.7"},height:T?`${z+D}px`:"auto",maxHeight:Y?`${Y}px`:"none",paddingLeft:p.spacing.none,paddingBottom:p.spacing.sm,paddingTop:p.spacing.sm,paddingRight:`calc(${p.iconSizes.xl} + 2 * ${p.spacing.sm} + ${p.spacing.sm})`}}}}),y>p.breakpoints.hideWidgetDetails&&n(Wt,{children:n(Dt,{dirty:B,value:d,maxLength:pt,type:"chat",inForm:!1})}),n(Nt,{children:n(Vt,{onClick:G,disabled:!B||t,extended:T,"data-testid":"stChatInputSubmitButton",children:n(U,{content:at,size:"xl",color:"inherit"})})})]})})]})}const xe=r.memo(ge);export{xe as default};
|
@@ -1,3 +0,0 @@
|
|
1
|
-
import{bv as _,bM as ve,bw as $,r as u,z as me,C as te,j as O,bz as ye,bs as $e,ba as Oe,bt as Re,aC as re,br as _e}from"./index.B28jf8c_.js";import{a as Pe}from"./useBasicWidgetState.D6255-xX.js";import"./FormClearHelper.CWUgHOqb.js";var ne={vertical:"vertical",horizontal:"horizontal"};function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oe(Object(r),!0).forEach(function(n){R(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function R(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E=0,I=1,L=2;function x(e){return e.$isActive?L:e.$isHovered?I:E}function we(e){var t=e.$theme.colors,r=e.$disabled,n=e.$checked,o=e.$isFocusVisible,i=e.$error;if(r)return t.tickFillDisabled;if(n)if(i)switch(x(e)){case E:return t.tickFillErrorSelected;case I:return t.tickFillErrorSelectedHover;case L:return t.tickFillErrorSelectedHoverActive}else switch(x(e)){case E:return t.tickFillSelected;case I:return t.tickFillSelectedHover;case L:return t.tickFillSelectedHoverActive}else return o?t.borderSelected:i?t.tickBorderError:t.tickBorder;return null}function Se(e){var t=e.$theme.colors;if(e.$disabled)return t.tickMarkFillDisabled;if(e.$checked)return t.tickMarkFill;if(e.$error)switch(x(e)){case E:return t.tickFillError;case I:return t.tickFillErrorHover;case L:return t.tickFillErrorHoverActive}else switch(x(e)){case E:return t.tickFill;case I:return t.tickFillHover;case L:return t.tickFillActive}}function Me(e){var t=e.$labelPlacement,r=t===void 0?"":t,n=e.$theme,o;switch(r){case"top":o="Bottom";break;case"bottom":o="Top";break;case"left":o=n.direction==="rtl"?"Left":"Right";break;default:case"right":o=n.direction==="rtl"?"Right":"Left";break}var i=n.sizing,l=i.scale300;return R({},"padding".concat(o),l)}function ke(e){var t=e.$disabled,r=e.$theme,n=r.colors;return t?n.contentSecondary:n.contentPrimary}var G=_("div",function(e){var t=e.$disabled,r=e.$align;return{display:"flex",flexWrap:"wrap",flexDirection:r==="horizontal"?"row":"column",alignItems:r==="horizontal"?"center":"flex-start",cursor:t?"not-allowed":"pointer","-webkit-tap-highlight-color":"transparent"}});G.displayName="RadioGroupRoot";G.displayName="RadioGroupRoot";var W=_("label",function(e){var t,r=e.$disabled,n=e.$hasDescription,o=e.$labelPlacement,i=e.$theme,l=e.$align,s=i.sizing,c=l==="horizontal",f=i.direction==="rtl"?"Left":"Right";return t={flexDirection:o==="top"||o==="bottom"?"column":"row",display:"flex",alignItems:"center",cursor:r?"not-allowed":"pointer",marginTop:s.scale200},R(t,"margin".concat(f),c?s.scale200:null),R(t,"marginBottom",n&&!c?null:s.scale200),t});W.displayName="Root";W.displayName="Root";var q=_("div",function(e){var t=e.$theme,r=t.animation,n=t.sizing;return{backgroundColor:Se(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",height:e.$checked?n.scale200:n.scale550,transitionDuration:r.timing200,transitionTimingFunction:r.easeOutCurve,width:e.$checked?n.scale200:n.scale550}});q.displayName="RadioMarkInner";q.displayName="RadioMarkInner";var X=_("div",function(e){var t=e.$theme,r=t.animation,n=t.sizing;return{alignItems:"center",backgroundColor:we(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible&&e.$checked?"0 0 0 3px ".concat(e.$theme.colors.accent):"none",display:"flex",height:n.scale700,justifyContent:"center",marginTop:n.scale0,marginRight:n.scale0,marginBottom:n.scale0,marginLeft:n.scale0,outline:"none",verticalAlign:"middle",width:n.scale700,flexShrink:0,transitionDuration:r.timing200,transitionTimingFunction:r.easeOutCurve}});X.displayName="RadioMarkOuter";X.displayName="RadioMarkOuter";var K=_("div",function(e){var t=e.$theme.typography;return j(j({verticalAlign:"middle"},Me(e)),{},{color:ke(e)},t.LabelMedium)});K.displayName="Label";K.displayName="Label";var J=_("input",{width:0,height:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,clip:"rect(0 0 0 0)",position:"absolute"});J.displayName="Input";J.displayName="Input";var Q=_("div",function(e){var t,r=e.$theme,n=e.$align,o=n==="horizontal",i=r.direction==="rtl"?"Right":"Left",l=r.direction==="rtl"?"Left":"Right";return j(j({},r.typography.ParagraphSmall),{},(t={color:r.colors.contentSecondary,cursor:"auto"},R(t,"margin".concat(i),n==="horizontal"?null:r.sizing.scale900),R(t,"margin".concat(l),o?r.sizing.scale200:null),R(t,"maxWidth","240px"),t))});Q.displayName="Description";Q.displayName="Description";function z(e){"@babel/helpers - typeof";return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(e)}function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},H.apply(this,arguments)}function Fe(e,t){return Te(e)||Le(e,t)||Ie(e,t)||Ee()}function Ee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ie(e,t){if(e){if(typeof e=="string")return ie(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ie(e,t)}}function ie(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Le(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,i=!1,l,s;try{for(r=r.call(e);!(o=(l=r.next()).done)&&(n.push(l.value),!(t&&n.length===t));o=!0);}catch(c){i=!0,s=c}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw s}}return n}}function Te(e){if(Array.isArray(e))return e}function Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xe(e,t,r){return t&&je(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function De(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N(e,t)}function N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},N(e,t)}function Be(e){var t=ze();return function(){var n=D(e),o;if(t){var i=D(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return Ce(this,o)}}function Ce(e,t){if(t&&(z(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}function T(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ze(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},D(e)}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var se=function(e){De(r,e);var t=Be(r);function r(){var n;Ae(this,r);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return n=t.call.apply(t,[this].concat(i)),A(T(n),"state",{isFocusVisible:!1,focusedRadioIndex:-1}),A(T(n),"handleFocus",function(s,c){ve(s)&&n.setState({isFocusVisible:!0}),n.setState({focusedRadioIndex:c}),n.props.onFocus&&n.props.onFocus(s)}),A(T(n),"handleBlur",function(s,c){n.state.isFocusVisible!==!1&&n.setState({isFocusVisible:!1}),n.setState({focusedRadioIndex:-1}),n.props.onBlur&&n.props.onBlur(s)}),n}return xe(r,[{key:"render",value:function(){var o=this,i=this.props.overrides,l=i===void 0?{}:i,s=$(l.RadioGroupRoot,G),c=Fe(s,2),f=c[0],b=c[1];return u.createElement(f,H({id:this.props.id,role:"radiogroup","aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props.error||null,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],$align:this.props.align,$disabled:this.props.disabled,$error:this.props.error,$required:this.props.required},b),u.Children.map(this.props.children,function(p,a){if(!u.isValidElement(p))return null;var d=o.props.value===p.props.value;return u.cloneElement(p,{align:o.props.align,autoFocus:o.props.autoFocus,checked:d,disabled:o.props.disabled||p.props.disabled,error:o.props.error,isFocused:o.state.focusedRadioIndex===a,isFocusVisible:o.state.isFocusVisible,tabIndex:a===0&&!o.props.value||d?"0":"-1",labelPlacement:o.props.labelPlacement,name:o.props.name,onBlur:function(g){return o.handleBlur(g,a)},onFocus:function(g){return o.handleFocus(g,a)},onChange:o.props.onChange,onMouseEnter:o.props.onMouseEnter,onMouseLeave:o.props.onMouseLeave})}))}}]),r}(u.Component);A(se,"defaultProps",{name:"",value:"",disabled:!1,autoFocus:!1,labelPlacement:"right",align:"vertical",error:!1,required:!1,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onFocus:function(){},onBlur:function(){},overrides:{}});function V(e){"@babel/helpers - typeof";return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(e)}function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}function M(e,t){return Ue(e)||Ve(e,t)||Ne(e,t)||He()}function He(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ne(e,t){if(e){if(typeof e=="string")return ae(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ae(e,t)}}function ae(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ve(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,i=!1,l,s;try{for(r=r.call(e);!(o=(l=r.next()).done)&&(n.push(l.value),!(t&&n.length===t));o=!0);}catch(c){i=!0,s=c}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw s}}return n}}function Ue(e){if(Array.isArray(e))return e}function Ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qe(e,t,r){return t&&We(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U(e,t)}function U(e,t){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},U(e,t)}function Ke(e){var t=Qe();return function(){var n=B(e),o;if(t){var i=B(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return Je(this,o)}}function Je(e,t){if(t&&(V(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(e)}function k(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},B(e)}function F(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ye(e){return e==="top"||e==="left"}function Ze(e){return e==="bottom"||e==="right"}var et=function(t){return t.stopPropagation()},le=function(e){Xe(r,e);var t=Ke(r);function r(){var n;Ge(this,r);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return n=t.call.apply(t,[this].concat(i)),F(k(n),"state",{isActive:!1,isHovered:!1}),F(k(n),"onMouseEnter",function(s){n.setState({isHovered:!0}),n.props.onMouseEnter&&n.props.onMouseEnter(s)}),F(k(n),"onMouseLeave",function(s){n.setState({isHovered:!1}),n.props.onMouseLeave&&n.props.onMouseLeave(s)}),F(k(n),"onMouseDown",function(s){n.setState({isActive:!0}),n.props.onMouseDown&&n.props.onMouseDown(s)}),F(k(n),"onMouseUp",function(s){n.setState({isActive:!1}),n.props.onMouseUp&&n.props.onMouseUp(s)}),n}return qe(r,[{key:"componentDidMount",value:function(){var o;this.props.autoFocus&&(o=this.props.inputRef)!==null&&o!==void 0&&o.current&&this.props.inputRef.current.focus()}},{key:"render",value:function(){var o=this.props.overrides,i=o===void 0?{}:o,l=$(i.Root,W),s=M(l,2),c=s[0],f=s[1],b=$(i.Label,K),p=M(b,2),a=p[0],d=p[1],P=$(i.Input,J),g=M(P,2),w=g[0],C=g[1],v=$(i.Description,Q),h=M(v,2),m=h[0],ue=h[1],ce=$(i.RadioMarkInner,q),Y=M(ce,2),pe=Y[0],fe=Y[1],de=$(i.RadioMarkOuter,X),Z=M(de,2),he=Z[0],be=Z[1],S={$align:this.props.align,$checked:this.props.checked,$disabled:this.props.disabled,$hasDescription:!!this.props.description,$isActive:this.state.isActive,$error:this.props.error,$isFocused:this.props.isFocused,$isFocusVisible:this.props.isFocused&&this.props.isFocusVisible,$isHovered:this.state.isHovered,$labelPlacement:this.props.labelPlacement,$required:this.props.required,$value:this.props.value},ee=u.createElement(a,y({},S,d),this.props.containsInteractiveElement?u.createElement("div",{onClick:function(ge){return ge.preventDefault()}},this.props.children):this.props.children);return u.createElement(u.Fragment,null,u.createElement(c,y({"data-baseweb":"radio",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},S,f),Ye(this.props.labelPlacement)&&ee,u.createElement(he,y({},S,be),u.createElement(pe,y({},S,fe))),u.createElement(w,y({"aria-invalid":this.props.error||null,checked:this.props.checked,disabled:this.props.disabled,name:this.props.name,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onClick:et,onChange:this.props.onChange,ref:this.props.inputRef,required:this.props.required,tabIndex:this.props.tabIndex,type:"radio",value:this.props.value},S,C)),Ze(this.props.labelPlacement)&&ee),!!this.props.description&&u.createElement(m,y({},S,ue),this.props.description))}}]),r}(u.Component);F(le,"defaultProps",{overrides:{},containsInteractiveElement:!1,checked:!1,disabled:!1,autoFocus:!1,inputRef:u.createRef(),align:"vertical",error:!1,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseDown:function(){},onMouseUp:function(){},onFocus:function(){},onBlur:function(){}});function tt({disabled:e,horizontal:t,value:r,onChange:n,options:o,captions:i,label:l,labelVisibility:s,help:c}){const[f,b]=u.useState(r??null);u.useEffect(()=>{r!==f&&b(r??null)},[r]);const p=u.useCallback(v=>{const h=parseInt(v.target.value,10);b(h),n(h)},[n]),a=me(),d=i.length>0,P=o.length>0,g=P?o:["No options to select."],w=e||!P,C=v=>v==""&&t&&d?" ":v;return te("div",{className:"stRadio","data-testid":"stRadio",children:[O(Re,{label:l,disabled:w,labelVisibility:s,children:c&&O(ye,{children:O($e,{content:c,placement:Oe.TOP_RIGHT})})}),O(se,{onChange:p,value:f!==null?f.toString():void 0,disabled:w,align:t?ne.horizontal:ne.vertical,"aria-label":l,"data-testid":"stRadioGroup",overrides:{RadioGroupRoot:{style:{gap:d?a.spacing.sm:a.spacing.none,minHeight:a.sizes.minElementHeight}}},children:g.map((v,h)=>te(le,{value:h.toString(),overrides:{Root:{style:({$isFocusVisible:m})=>({marginBottom:a.spacing.none,marginTop:a.spacing.none,marginRight:d?a.spacing.sm:a.spacing.lg,paddingLeft:a.spacing.none,alignItems:"start",paddingRight:a.spacing.threeXS,backgroundColor:m?a.colors.darkenedBgMix25:""})},RadioMarkOuter:{style:({$checked:m})=>({width:a.sizes.checkbox,height:a.sizes.checkbox,marginTop:"0.35rem",marginRight:a.spacing.none,marginLeft:a.spacing.none,backgroundColor:m&&!w?a.colors.primary:a.colors.fadedText40})},RadioMarkInner:{style:({$checked:m})=>({height:m?"37.5%":`calc(${a.sizes.checkbox} - ${a.spacing.threeXS})`,width:m?"37.5%":`calc(${a.sizes.checkbox} - ${a.spacing.threeXS})`})},Label:{style:{color:w?a.colors.fadedText40:a.colors.bodyText,position:"relative",top:a.spacing.px}}},children:[O(re,{source:v,allowHTML:!1,isLabel:!0,largerLabel:!0}),d&&O(re,{source:C(i[h]),allowHTML:!1,isCaption:!0,isLabel:!0})]},h))})]})}const rt=u.memo(tt);function nt({disabled:e,element:t,widgetMgr:r,fragmentId:n}){const[o,i]=Pe({getStateFromWidgetMgr:ot,getDefaultStateFromProto:it,getCurrStateFromProto:at,updateWidgetMgrState:st,element:t,widgetMgr:r,fragmentId:n}),l=u.useCallback(d=>{i({value:d,fromUi:!0})},[i]),{horizontal:s,options:c,captions:f,label:b,labelVisibility:p,help:a}=t;return O(rt,{label:b,onChange:l,options:c,captions:f,disabled:e,horizontal:s,labelVisibility:_e(p==null?void 0:p.value),value:o??null,help:a})}function ot(e,t){return e.getIntValue(t)}function it(e){return e.default??null}function at(e){return e.value??null}function st(e,t,r,n){t.setIntValue(e,r.value??null,{fromUi:r.fromUi},n)}const ft=u.memo(nt);export{ft as default};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{n as T,r,z as M,c1 as W,c2 as C,C as I,j as l,br as V,bF as L,bs as O,ba as P,bt as k,c0 as E,c3 as N,bY as $,c4 as B,bC as F}from"./index.B28jf8c_.js";import{a as A}from"./useBasicWidgetState.D6255-xX.js";import"./FormClearHelper.CWUgHOqb.js";const H=T("div",{target:"euzcfsp0"})(({theme:s})=>({"span[aria-disabled='true']":{background:s.colors.fadedText05}})),D=(s,t)=>s.getStringArrayValue(t),U=s=>s.default.map(t=>s.options[t])??null,j=s=>s.rawValues??null,G=(s,t,n,p)=>{t.setStringArrayValue(s,n.value,{fromUi:n.fromUi},p)},K=s=>{var b;const{element:t,widgetMgr:n,fragmentId:p}=s,e=M(),[i,g]=A({getStateFromWidgetMgr:D,getDefaultStateFromProto:U,getCurrStateFromProto:j,updateWidgetMgrState:G,element:t,widgetMgr:n,fragmentId:p}),m=t.maxSelections>0&&i.length>=t.maxSelections,S=r.useMemo(()=>{if(t.maxSelections===0)return"No results";if(i.length===t.maxSelections){const o=t.maxSelections!==1?"options":"option";return`You can only select up to ${t.maxSelections} ${o}. Remove an option first.`}return"No results"},[t.maxSelections,i.length]),f=r.useMemo(()=>i.map(o=>({value:o,label:o})),[i]),h=r.useCallback(o=>{var c,d;switch(o.type){case"remove":return W(i,(c=o.option)==null?void 0:c.value);case"clear":return[];case"select":return i.concat([(d=o.option)==null?void 0:d.value]);default:throw new Error(`State transition is unknown: ${o.type}`)}},[i]),y=r.useCallback(o=>{t.maxSelections&&o.type==="select"&&i.length>=t.maxSelections||g({value:h(o),fromUi:!0})},[t.maxSelections,h,g,i.length]),v=r.useCallback((o,c)=>{if(m)return[];const d=o.filter(R=>!i.includes(R.value));return C(d,c)},[m,i]),{options:a}=t,u=a.length===0?!0:s.disabled,x=a.length===0?"No options to select.":t.placeholder,z=a.map(o=>({label:o,value:o})),w=a.length>10;return I("div",{className:"stMultiSelect","data-testid":"stMultiSelect",children:[l(k,{label:t.label,disabled:u,labelVisibility:V((b=t.labelVisibility)==null?void 0:b.value),children:t.help&&l(L,{children:l(O,{content:t.help,placement:P.TOP_RIGHT})})}),l(H,{children:l(E,{creatable:t.acceptNewOptions??!1,options:z,labelKey:"label",valueKey:"value","aria-label":t.label,placeholder:x,type:B.select,multi:!0,onChange:y,value:f,disabled:u,size:"compact",noResultsMsg:S,filterOptions:v,closeOnSelect:!1,overrides:{Popover:{props:{overrides:{Body:{style:()=>({marginTop:e.spacing.px})}}}},SelectArrow:{component:$,props:{overrides:{Svg:{style:()=>({width:e.iconSizes.xl,height:e.iconSizes.xl})}}}},IconsContainer:{style:()=>({paddingRight:e.spacing.sm})},ControlContainer:{style:{minHeight:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth}},Placeholder:{style:()=>({flex:"inherit",color:u?e.colors.fadedText40:e.colors.fadedText60})},ValueContainer:{style:()=>({paddingLeft:e.spacing.sm,paddingTop:e.spacing.none,paddingBottom:e.spacing.none,paddingRight:e.spacing.none})},ClearIcon:{props:{overrides:{Svg:{style:{color:e.colors.darkGray,padding:e.spacing.threeXS,height:e.sizes.clearIconSize,width:e.sizes.clearIconSize,cursor:"pointer",":hover":{fill:e.colors.bodyText}}}}}},SearchIcon:{style:{color:e.colors.darkGray}},Tag:{props:{overrides:{Root:{style:{borderTopLeftRadius:e.radii.md,borderTopRightRadius:e.radii.md,borderBottomRightRadius:e.radii.md,borderBottomLeftRadius:e.radii.md,fontSize:e.fontSizes.md,paddingLeft:e.spacing.sm,marginLeft:e.spacing.none,marginRight:e.spacing.sm,height:`calc(${e.sizes.minElementHeight} - 2 * ${e.spacing.xs})`,maxWidth:`calc(100% - ${e.spacing.lg})`,cursor:"default !important"}},Action:{style:{paddingLeft:0}},ActionIcon:{props:{overrides:{Svg:{style:{width:"0.625em",height:"0.625em"}}}}}}}},MultiValue:{props:{overrides:{Root:{style:{fontSize:e.fontSizes.sm}}}}},Input:{props:{readOnly:F.isMobile&&w===!1?"readonly":null}},Dropdown:{component:N}}})})]})},q=r.memo(K);export{q as default};
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import{r as Ce,bh as jt,j as lt,F as Vt}from"./index.B28jf8c_.js";/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:gt,setPrototypeOf:ct,isFrozen:$t,getPrototypeOf:qt,getOwnPropertyDescriptor:Kt}=Object;let{freeze:S,seal:y,create:ht}=Object,{apply:we,construct:xe}=typeof Reflect<"u"&&Reflect;S||(S=function(n){return n});y||(y=function(n){return n});we||(we=function(n,l,r){return n.apply(l,r)});xe||(xe=function(n,l){return new n(...l)});const se=R(Array.prototype.forEach),Zt=R(Array.prototype.lastIndexOf),ft=R(Array.prototype.pop),V=R(Array.prototype.push),Jt=R(Array.prototype.splice),ce=R(String.prototype.toLowerCase),be=R(String.prototype.toString),ut=R(String.prototype.match),$=R(String.prototype.replace),Qt=R(String.prototype.indexOf),en=R(String.prototype.trim),b=R(Object.prototype.hasOwnProperty),A=R(RegExp.prototype.test),q=tn(TypeError);function R(a){return function(n){for(var l=arguments.length,r=new Array(l>1?l-1:0),u=1;u<l;u++)r[u-1]=arguments[u];return we(a,n,r)}}function tn(a){return function(){for(var n=arguments.length,l=new Array(n),r=0;r<n;r++)l[r]=arguments[r];return xe(a,l)}}function s(a,n){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ce;ct&&ct(a,null);let r=n.length;for(;r--;){let u=n[r];if(typeof u=="string"){const L=l(u);L!==u&&($t(n)||(n[r]=L),u=L)}a[u]=!0}return a}function nn(a){for(let n=0;n<a.length;n++)b(a,n)||(a[n]=null);return a}function x(a){const n=ht(null);for(const[l,r]of gt(a))b(a,l)&&(Array.isArray(r)?n[l]=nn(r):r&&typeof r=="object"&&r.constructor===Object?n[l]=x(r):n[l]=r);return n}function K(a,n){for(;a!==null;){const r=Kt(a,n);if(r){if(r.get)return R(r.get);if(typeof r.value=="function")return R(r.value)}a=qt(a)}function l(){return null}return l}const mt=S(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ne=S(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),De=S(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),on=S(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ie=S(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),an=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pt=S(["#text"]),dt=S(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Me=S(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Tt=S(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),le=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rn=y(/\{\{[\w\W]*|[\w\W]*\}\}/gm),sn=y(/<%[\w\W]*|[\w\W]*%>/gm),ln=y(/\$\{[\w\W]*/gm),cn=y(/^data-[\-\w.\u00B7-\uFFFF]+$/),fn=y(/^aria-[\-\w]+$/),At=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),un=y(/^(?:\w+script|data):/i),mn=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),St=y(/^html$/i),pn=y(/^[a-z][.\w]*(-[.\w]+)+$/i);var Et=Object.freeze({__proto__:null,ARIA_ATTR:fn,ATTR_WHITESPACE:mn,CUSTOM_ELEMENT:pn,DATA_ATTR:cn,DOCTYPE_NAME:St,ERB_EXPR:sn,IS_ALLOWED_URI:At,IS_SCRIPT_OR_DATA:un,MUSTACHE_EXPR:rn,TMPLIT_EXPR:ln});const Z={element:1,text:3,progressingInstruction:7,comment:8,document:9},dn=function(){return typeof window>"u"?null:window},Tn=function(n,l){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const u="data-tt-policy-suffix";l&&l.hasAttribute(u)&&(r=l.getAttribute(u));const L="dompurify"+(r?"#"+r:"");try{return n.createPolicy(L,{createHTML(I){return I},createScriptURL(I){return I}})}catch{return console.warn("TrustedTypes policy "+L+" could not be created."),null}},_t=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Rt(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dn();const n=i=>Rt(i);if(n.version="3.2.4",n.removed=[],!a||!a.document||a.document.nodeType!==Z.document||!a.Element)return n.isSupported=!1,n;let{document:l}=a;const r=l,u=r.currentScript,{DocumentFragment:L,HTMLTemplateElement:I,Node:fe,Element:ve,NodeFilter:z,NamedNodeMap:Ot=a.NamedNodeMap||a.MozNamedAttrMap,HTMLFormElement:Lt,DOMParser:yt,trustedTypes:J}=a,G=ve.prototype,bt=K(G,"cloneNode"),Nt=K(G,"remove"),Dt=K(G,"nextSibling"),It=K(G,"childNodes"),Q=K(G,"parentNode");if(typeof I=="function"){const i=l.createElement("template");i.content&&i.content.ownerDocument&&(l=i.content.ownerDocument)}let _,W="";const{implementation:ue,createNodeIterator:Mt,createDocumentFragment:Ct,getElementsByTagName:wt}=l,{importNode:xt}=r;let g=_t();n.isSupported=typeof gt=="function"&&typeof Q=="function"&&ue&&ue.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:me,ERB_EXPR:pe,TMPLIT_EXPR:de,DATA_ATTR:Pt,ARIA_ATTR:kt,IS_SCRIPT_OR_DATA:vt,ATTR_WHITESPACE:Ue,CUSTOM_ELEMENT:Ut}=Et;let{IS_ALLOWED_URI:Fe}=Et,m=null;const He=s({},[...mt,...Ne,...De,...Ie,...pt]);let d=null;const ze=s({},[...dt,...Me,...Tt,...le]);let f=Object.seal(ht(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,Te=null,Ge=!0,Ee=!0,We=!1,Be=!0,P=!1,_e=!0,w=!1,ge=!1,he=!1,k=!1,ee=!1,te=!1,Ye=!0,Xe=!1;const Ft="user-content-";let Ae=!0,Y=!1,v={},U=null;const je=s({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ve=null;const $e=s({},["audio","video","img","source","image","track"]);let Se=null;const qe=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ne="http://www.w3.org/1998/Math/MathML",oe="http://www.w3.org/2000/svg",M="http://www.w3.org/1999/xhtml";let F=M,Re=!1,Oe=null;const Ht=s({},[ne,oe,M],be);let ie=s({},["mi","mo","mn","ms","mtext"]),ae=s({},["annotation-xml"]);const zt=s({},["title","style","font","a","script"]);let X=null;const Gt=["application/xhtml+xml","text/html"],Wt="text/html";let p=null,H=null;const Bt=l.createElement("form"),Ke=function(e){return e instanceof RegExp||e instanceof Function},Le=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(H&&H===e)){if((!e||typeof e!="object")&&(e={}),e=x(e),X=Gt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Wt:e.PARSER_MEDIA_TYPE,p=X==="application/xhtml+xml"?be:ce,m=b(e,"ALLOWED_TAGS")?s({},e.ALLOWED_TAGS,p):He,d=b(e,"ALLOWED_ATTR")?s({},e.ALLOWED_ATTR,p):ze,Oe=b(e,"ALLOWED_NAMESPACES")?s({},e.ALLOWED_NAMESPACES,be):Ht,Se=b(e,"ADD_URI_SAFE_ATTR")?s(x(qe),e.ADD_URI_SAFE_ATTR,p):qe,Ve=b(e,"ADD_DATA_URI_TAGS")?s(x($e),e.ADD_DATA_URI_TAGS,p):$e,U=b(e,"FORBID_CONTENTS")?s({},e.FORBID_CONTENTS,p):je,B=b(e,"FORBID_TAGS")?s({},e.FORBID_TAGS,p):{},Te=b(e,"FORBID_ATTR")?s({},e.FORBID_ATTR,p):{},v=b(e,"USE_PROFILES")?e.USE_PROFILES:!1,Ge=e.ALLOW_ARIA_ATTR!==!1,Ee=e.ALLOW_DATA_ATTR!==!1,We=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Be=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,P=e.SAFE_FOR_TEMPLATES||!1,_e=e.SAFE_FOR_XML!==!1,w=e.WHOLE_DOCUMENT||!1,k=e.RETURN_DOM||!1,ee=e.RETURN_DOM_FRAGMENT||!1,te=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,Ye=e.SANITIZE_DOM!==!1,Xe=e.SANITIZE_NAMED_PROPS||!1,Ae=e.KEEP_CONTENT!==!1,Y=e.IN_PLACE||!1,Fe=e.ALLOWED_URI_REGEXP||At,F=e.NAMESPACE||M,ie=e.MATHML_TEXT_INTEGRATION_POINTS||ie,ae=e.HTML_INTEGRATION_POINTS||ae,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ke(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ke(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),P&&(Ee=!1),ee&&(k=!0),v&&(m=s({},pt),d=[],v.html===!0&&(s(m,mt),s(d,dt)),v.svg===!0&&(s(m,Ne),s(d,Me),s(d,le)),v.svgFilters===!0&&(s(m,De),s(d,Me),s(d,le)),v.mathMl===!0&&(s(m,Ie),s(d,Tt),s(d,le))),e.ADD_TAGS&&(m===He&&(m=x(m)),s(m,e.ADD_TAGS,p)),e.ADD_ATTR&&(d===ze&&(d=x(d)),s(d,e.ADD_ATTR,p)),e.ADD_URI_SAFE_ATTR&&s(Se,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(U===je&&(U=x(U)),s(U,e.FORBID_CONTENTS,p)),Ae&&(m["#text"]=!0),w&&s(m,["html","head","body"]),m.table&&(s(m,["tbody"]),delete B.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,W=_.createHTML("")}else _===void 0&&(_=Tn(J,u)),_!==null&&typeof W=="string"&&(W=_.createHTML(""));S&&S(e),H=e}},Ze=s({},[...Ne,...De,...on]),Je=s({},[...Ie,...an]),Yt=function(e){let t=Q(e);(!t||!t.tagName)&&(t={namespaceURI:F,tagName:"template"});const o=ce(e.tagName),c=ce(t.tagName);return Oe[e.namespaceURI]?e.namespaceURI===oe?t.namespaceURI===M?o==="svg":t.namespaceURI===ne?o==="svg"&&(c==="annotation-xml"||ie[c]):!!Ze[o]:e.namespaceURI===ne?t.namespaceURI===M?o==="math":t.namespaceURI===oe?o==="math"&&ae[c]:!!Je[o]:e.namespaceURI===M?t.namespaceURI===oe&&!ae[c]||t.namespaceURI===ne&&!ie[c]?!1:!Je[o]&&(zt[o]||!Ze[o]):!!(X==="application/xhtml+xml"&&Oe[e.namespaceURI]):!1},N=function(e){V(n.removed,{element:e});try{Q(e).removeChild(e)}catch{Nt(e)}},re=function(e,t){try{V(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{V(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(k||ee)try{N(t)}catch{}else try{t.setAttribute(e,"")}catch{}},Qe=function(e){let t=null,o=null;if(he)e="<remove></remove>"+e;else{const T=ut(e,/^[\r\n\t ]+/);o=T&&T[0]}X==="application/xhtml+xml"&&F===M&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const c=_?_.createHTML(e):e;if(F===M)try{t=new yt().parseFromString(c,X)}catch{}if(!t||!t.documentElement){t=ue.createDocument(F,"template",null);try{t.documentElement.innerHTML=Re?W:c}catch{}}const E=t.body||t.documentElement;return e&&o&&E.insertBefore(l.createTextNode(o),E.childNodes[0]||null),F===M?wt.call(t,w?"html":"body")[0]:w?t.documentElement:E},et=function(e){return Mt.call(e.ownerDocument||e,e,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},ye=function(e){return e instanceof Lt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Ot)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},tt=function(e){return typeof fe=="function"&&e instanceof fe};function C(i,e,t){se(i,o=>{o.call(n,e,t,H)})}const nt=function(e){let t=null;if(C(g.beforeSanitizeElements,e,null),ye(e))return N(e),!0;const o=p(e.nodeName);if(C(g.uponSanitizeElement,e,{tagName:o,allowedTags:m}),e.hasChildNodes()&&!tt(e.firstElementChild)&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent)||e.nodeType===Z.progressingInstruction||_e&&e.nodeType===Z.comment&&A(/<[/\w]/g,e.data))return N(e),!0;if(!m[o]||B[o]){if(!B[o]&&it(o)&&(f.tagNameCheck instanceof RegExp&&A(f.tagNameCheck,o)||f.tagNameCheck instanceof Function&&f.tagNameCheck(o)))return!1;if(Ae&&!U[o]){const c=Q(e)||e.parentNode,E=It(e)||e.childNodes;if(E&&c){const T=E.length;for(let O=T-1;O>=0;--O){const D=bt(E[O],!0);D.__removalCount=(e.__removalCount||0)+1,c.insertBefore(D,Dt(e))}}}return N(e),!0}return e instanceof ve&&!Yt(e)||(o==="noscript"||o==="noembed"||o==="noframes")&&A(/<\/no(script|embed|frames)/i,e.innerHTML)?(N(e),!0):(P&&e.nodeType===Z.text&&(t=e.textContent,se([me,pe,de],c=>{t=$(t,c," ")}),e.textContent!==t&&(V(n.removed,{element:e.cloneNode()}),e.textContent=t)),C(g.afterSanitizeElements,e,null),!1)},ot=function(e,t,o){if(Ye&&(t==="id"||t==="name")&&(o in l||o in Bt))return!1;if(!(Ee&&!Te[t]&&A(Pt,t))){if(!(Ge&&A(kt,t))){if(!d[t]||Te[t]){if(!(it(e)&&(f.tagNameCheck instanceof RegExp&&A(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&A(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t))||t==="is"&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&A(f.tagNameCheck,o)||f.tagNameCheck instanceof Function&&f.tagNameCheck(o))))return!1}else if(!Se[t]){if(!A(Fe,$(o,Ue,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&Qt(o,"data:")===0&&Ve[e])){if(!(We&&!A(vt,$(o,Ue,"")))){if(o)return!1}}}}}}return!0},it=function(e){return e!=="annotation-xml"&&ut(e,Ut)},at=function(e){C(g.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||ye(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0};let c=t.length;for(;c--;){const E=t[c],{name:T,namespaceURI:O,value:D}=E,j=p(T);let h=T==="value"?D:en(D);if(o.attrName=j,o.attrValue=h,o.keepAttr=!0,o.forceKeepAttr=void 0,C(g.uponSanitizeAttribute,e,o),h=o.attrValue,Xe&&(j==="id"||j==="name")&&(re(T,e),h=Ft+h),_e&&A(/((--!?|])>)|<\/(style|title)/i,h)){re(T,e);continue}if(o.forceKeepAttr||(re(T,e),!o.keepAttr))continue;if(!Be&&A(/\/>/i,h)){re(T,e);continue}P&&se([me,pe,de],st=>{h=$(h,st," ")});const rt=p(e.nodeName);if(ot(rt,j,h)){if(_&&typeof J=="object"&&typeof J.getAttributeType=="function"&&!O)switch(J.getAttributeType(rt,j)){case"TrustedHTML":{h=_.createHTML(h);break}case"TrustedScriptURL":{h=_.createScriptURL(h);break}}try{O?e.setAttributeNS(O,T,h):e.setAttribute(T,h),ye(e)?N(e):ft(n.removed)}catch{}}}C(g.afterSanitizeAttributes,e,null)},Xt=function i(e){let t=null;const o=et(e);for(C(g.beforeSanitizeShadowDOM,e,null);t=o.nextNode();)C(g.uponSanitizeShadowNode,t,null),nt(t),at(t),t.content instanceof L&&i(t.content);C(g.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,o=null,c=null,E=null;if(Re=!i,Re&&(i="<!-->"),typeof i!="string"&&!tt(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw q("dirty is not a string, aborting")}else throw q("toString is not a function");if(!n.isSupported)return i;if(ge||Le(e),n.removed=[],typeof i=="string"&&(Y=!1),Y){if(i.nodeName){const D=p(i.nodeName);if(!m[D]||B[D])throw q("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof fe)t=Qe("<!---->"),o=t.ownerDocument.importNode(i,!0),o.nodeType===Z.element&&o.nodeName==="BODY"||o.nodeName==="HTML"?t=o:t.appendChild(o);else{if(!k&&!P&&!w&&i.indexOf("<")===-1)return _&&te?_.createHTML(i):i;if(t=Qe(i),!t)return k?null:te?W:""}t&&he&&N(t.firstChild);const T=et(Y?i:t);for(;c=T.nextNode();)nt(c),at(c),c.content instanceof L&&Xt(c.content);if(Y)return i;if(k){if(ee)for(E=Ct.call(t.ownerDocument);t.firstChild;)E.appendChild(t.firstChild);else E=t;return(d.shadowroot||d.shadowrootmode)&&(E=xt.call(r,E,!0)),E}let O=w?t.outerHTML:t.innerHTML;return w&&m["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&A(St,t.ownerDocument.doctype.name)&&(O="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
2
|
-
`+O),P&&se([me,pe,de],D=>{O=$(O,D," ")}),_&&te?_.createHTML(O):O},n.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Le(i),ge=!0},n.clearConfig=function(){H=null,ge=!1},n.isValidAttribute=function(i,e,t){H||Le({});const o=p(i),c=p(e);return ot(o,c,t)},n.addHook=function(i,e){typeof e=="function"&&V(g[i],e)},n.removeHook=function(i,e){if(e!==void 0){const t=Zt(g[i],e);return t===-1?void 0:Jt(g[i],t,1)[0]}return ft(g[i])},n.removeHooks=function(i){g[i]=[]},n.removeAllHooks=function(){g=_t()},n}var ke=Rt();const Pe="data-temp-href-target";ke.addHook("beforeSanitizeAttributes",function(a){a instanceof HTMLElement&&a.hasAttribute("target")&&a.getAttribute("target")==="_blank"&&a.setAttribute(Pe,"_blank")});ke.addHook("afterSanitizeAttributes",function(a){a instanceof HTMLElement&&a.hasAttribute(Pe)&&(a.setAttribute("target","_blank"),a.setAttribute("rel","noopener noreferrer"),a.removeAttribute(Pe))});const En=a=>{const n={USE_PROFILES:{html:!0},FORCE_BODY:!0};return ke.sanitize(a,n)};function _n({element:a}){const{body:n}=a,[l,r]=jt(),u=Ce.useMemo(()=>En(n),[n]);return Ce.useEffect(()=>{var L,I;((L=r.current)==null?void 0:L.clientHeight)===0&&l>=0&&((I=r.current.parentElement)==null?void 0:I.childElementCount)===1&&r.current.parentElement.classList.add("stHtml-empty")}),lt(Vt,{children:u&<("div",{className:"stHtml","data-testid":"stHtml",ref:r,style:{width:l},dangerouslySetInnerHTML:{__html:u}})})}const hn=Ce.memo(_n);export{hn as default};
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|