streamlit-nightly 1.43.2.dev20250310__py3-none-any.whl → 1.43.3.dev20250311__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/config.py +9 -0
- streamlit/material_icon_names.py +1 -1
- streamlit/proto/NewSession_pb2.py +16 -16
- streamlit/proto/NewSession_pb2.pyi +4 -1
- streamlit/static/index.html +2 -2
- streamlit/static/static/css/{index.DpJG_94W.css → index.DQZt7VFg.css} +1 -1
- streamlit/static/static/js/{FileDownload.esm.ImqzQhZO.js → FileDownload.esm.B-R2xJ_2.js} +1 -1
- streamlit/static/static/js/{FileHelper.rj4_ZPRJ.js → FileHelper.Dpame4Yy.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.D4sU81IJ.js → FormClearHelper.CJtgEcyv.js} +1 -1
- streamlit/static/static/js/{Hooks.DFrYYSEo.js → Hooks.eMU4yP9C.js} +1 -1
- streamlit/static/static/js/{InputInstructions.DrB4DkBs.js → InputInstructions.Bt5nMAh-.js} +1 -1
- streamlit/static/static/js/{ProgressBar.BGAzeSxa.js → ProgressBar.CRfY498S.js} +1 -1
- streamlit/static/static/js/{RenderInPortalIfExists.CHKLYdVa.js → RenderInPortalIfExists.CjsBZs42.js} +1 -1
- streamlit/static/static/js/{Toolbar.BKtx2beJ.js → Toolbar.CBmSHKas.js} +1 -1
- streamlit/static/static/js/{base-input.aWYv_T3A.js → base-input.pwi2uHY4.js} +1 -1
- streamlit/static/static/js/{checkbox.BwU9xDqy.js → checkbox.BRMCIUrT.js} +1 -1
- streamlit/static/static/js/{createSuper.T98hP8lB.js → createSuper.BT2FfU2u.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.BUhzwZ10.js → data-grid-overlay-editor.DR231PaH.js} +1 -1
- streamlit/static/static/js/{downloader.UHMJklqr.js → downloader.Cwh9Q8n3.js} +1 -1
- streamlit/static/static/js/{es6.D7RXNPxf.js → es6.DXFo1lzk.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.BNi8dGHB.js → iframeResizer.contentWindow.BqHH3gN-.js} +1 -1
- streamlit/static/static/js/{index._mmzo3HM.js → index.-J5N3GRT.js} +1 -1
- streamlit/static/static/js/{index.9BQEZqbt.js → index.7mbSZESp.js} +1 -1
- streamlit/static/static/js/{index.Beb9exCG.js → index.B71BDPil.js} +1 -1
- streamlit/static/static/js/index.B9ftDzXT.js +1 -0
- streamlit/static/static/js/{index.CNhtDtLa.js → index.BAQ_1jSz.js} +1 -1
- streamlit/static/static/js/{index.jv2SuPfs.js → index.BMcgy3Eb.js} +1 -1
- streamlit/static/static/js/{index._vK60a8u.js → index.BN2fMHzp.js} +1 -1
- streamlit/static/static/js/{index.D9hw0QoD.js → index.BhhnIkTX.js} +1 -1
- streamlit/static/static/js/{index.JTJJx0oP.js → index.BiPCWEUM.js} +77 -77
- streamlit/static/static/js/{index.BQ2ayi8Y.js → index.Bt4_I4Hr.js} +1 -1
- streamlit/static/static/js/{index.Cojuevm_.js → index.BtaSeLy3.js} +1 -1
- streamlit/static/static/js/{index.CG3GMqFW.js → index.C8ZQWk_P.js} +1 -1
- streamlit/static/static/js/{index.EnNuubQT.js → index.CKLHvpe_.js} +1 -1
- streamlit/static/static/js/{index.fu_9grXc.js → index.COJ2HeaK.js} +1 -1
- streamlit/static/static/js/{index.BjSSnVYr.js → index.ClCou1d2.js} +1 -1
- streamlit/static/static/js/index.Cqy-AKUq.js +2 -0
- streamlit/static/static/js/{index.D_WVKhzB.js → index.CtDd3Kvg.js} +1 -1
- streamlit/static/static/js/{index.d_01YSRR.js → index.D6iEZATu.js} +1 -1
- streamlit/static/static/js/{index.DDV4_OwR.js → index.DAIPHdqL.js} +1 -1
- streamlit/static/static/js/{index.Bmx8iP3n.js → index.DBAW0l2y.js} +1 -1
- streamlit/static/static/js/index.DC7tm9ca.js +1 -0
- streamlit/static/static/js/{index.RW0WBvU0.js → index.DGe1v1i2.js} +1 -1
- streamlit/static/static/js/{index.C3qGK5uD.js → index.DIxz2WrU.js} +1 -1
- streamlit/static/static/js/{index.B8zj_6Gl.js → index.DJZrR-yh.js} +1 -1
- streamlit/static/static/js/{index.huSsicgb.js → index.DTC2KQEB.js} +1 -1
- streamlit/static/static/js/{index.BWImpdJl.js → index.DbtNEUBr.js} +1 -1
- streamlit/static/static/js/{index.BGU5att3.js → index.DklFRDjI.js} +1 -1
- streamlit/static/static/js/{index.BGskt5lK.js → index.DuXQiNfC.js} +1 -1
- streamlit/static/static/js/{index.C7CIfK5x.js → index.DzJ-K9FH.js} +1 -1
- streamlit/static/static/js/{index.BulZmEHg.js → index.E4BOW70b.js} +1 -1
- streamlit/static/static/js/{index.CR21S11A.js → index.Fi_0UKZA.js} +1 -1
- streamlit/static/static/js/{index.DMx15udc.js → index.SGdFItlP.js} +1 -1
- streamlit/static/static/js/{index.x7KxH0wZ.js → index.Y1Qnwm4b.js} +1 -1
- streamlit/static/static/js/{index.DiApz_4C.js → index._HJ2bgYb.js} +5 -5
- streamlit/static/static/js/{index.DrVJtFAu.js → index.eHde7unb.js} +1 -1
- streamlit/static/static/js/{index.DWy7AE10.js → index.oH2t20_d.js} +1 -1
- streamlit/static/static/js/{index.DcMqY8Rt.js → index.pfdwKIIK.js} +1 -1
- streamlit/static/static/js/{input.CRcp3Fnf.js → input.Rf6xGN5X.js} +1 -1
- streamlit/static/static/js/{memory.C5iL6e9f.js → memory.D5NLCYdA.js} +1 -1
- streamlit/static/static/js/{mergeWith.D636WLv0.js → mergeWith.Bcdwg8Ac.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.Dadneluu.js → number-overlay-editor.CCjfRIEO.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.LzqmZCNB.js → possibleConstructorReturn.B8bXiVQj.js} +1 -1
- streamlit/static/static/js/{sandbox.D3tUJo--.js → sandbox.lrrkbqxh.js} +1 -1
- streamlit/static/static/js/{textarea.BSbs9R6k.js → textarea.DCEYRe9D.js} +1 -1
- streamlit/static/static/js/{timepicker.4bpv4ADz.js → timepicker.DpQ3WAC_.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.BnZG_fhu.js → toConsumableArray.EduObuzm.js} +1 -1
- streamlit/static/static/js/{uniqueId.Ck5sBKql.js → uniqueId.qyd-2U_A.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.BXs1ExMv.js → useBasicWidgetState.B0zc_tpZ.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.CTyvPTRS.js → useOnInputChange.tzktvOeD.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.X3X2mchO.js → withFullScreenWrapper.TezXOJ_z.js} +1 -1
- streamlit/static/static/media/MaterialSymbols-Rounded.CRt5Q-14.woff2 +0 -0
- {streamlit_nightly-1.43.2.dev20250310.dist-info → streamlit_nightly-1.43.3.dev20250311.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.43.2.dev20250310.dist-info → streamlit_nightly-1.43.3.dev20250311.dist-info}/RECORD +78 -78
- streamlit/static/static/js/index.BBex1k5g.js +0 -1
- streamlit/static/static/js/index.Bs7kgLMz.js +0 -1
- streamlit/static/static/js/index.CAGVaxpR.js +0 -2
- streamlit/static/static/media/MaterialSymbols-Rounded.DcZbplWk.woff2 +0 -0
- {streamlit_nightly-1.43.2.dev20250310.data → streamlit_nightly-1.43.3.dev20250311.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.43.2.dev20250310.dist-info → streamlit_nightly-1.43.3.dev20250311.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.43.2.dev20250310.dist-info → streamlit_nightly-1.43.3.dev20250311.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.43.2.dev20250310.dist-info → streamlit_nightly-1.43.3.dev20250311.dist-info}/top_level.txt +0 -0
Binary file
|
@@ -3,7 +3,7 @@ streamlit/__main__.py,sha256=G3Ka6wgeICpC1gI872L7jGQhY4ukAFo3lgnYIqtoBIo,868
|
|
3
3
|
streamlit/auth_util.py,sha256=fqfpfz7mD4YnqvYUeK0FwD26n7-hOxT2HJo9o0-lrO8,8489
|
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=ij3IYNCE8hEtOneRDW0kSVaLHu0gw_95lKg8_KKr_Lc,45478
|
7
7
|
streamlit/config_option.py,sha256=20vjS3ude7aIoSrILo6y1885KEzPbGqC_pFlAhjA02A,11388
|
8
8
|
streamlit/config_util.py,sha256=Bm26ZEOgepuPmkvlVRYoLDpeWke6pP8gsE3K0t9w6mA,6011
|
9
9
|
streamlit/cursor.py,sha256=MgoVLi-bJqDdyWs5WbHYPbjkzAF-cNVk08_bTOAo1wQ,6026
|
@@ -19,7 +19,7 @@ streamlit/errors.py,sha256=ky25xwS8og0nCvsljeqog-0VwGlOkBsoinHALcdm9TY,15447
|
|
19
19
|
streamlit/file_util.py,sha256=9bey9mRJmvuMAT9dad-RRuUoUhEySLLf4eyE45ZT0vQ,7146
|
20
20
|
streamlit/git_util.py,sha256=74knuzTLt1XvlZXfvCOmIvw66pCseUUtIGEvnJD_E2g,5261
|
21
21
|
streamlit/logger.py,sha256=ipnxnFTCmg6ijfFo9FRZYFSytoAoj20SVycFCluqz1E,3987
|
22
|
-
streamlit/material_icon_names.py,sha256=
|
22
|
+
streamlit/material_icon_names.py,sha256=vIf_gOEjUDtm-iJ7iOuXS40qMIwcI4Sheg4yE-5ZA_k,63449
|
23
23
|
streamlit/net_util.py,sha256=O0JqAcgRWDbol0nsWKM-eDd4Li4yTo1DKvvJM4KOW4A,3271
|
24
24
|
streamlit/platform.py,sha256=i7RhcsIJrV0ngtxCKxvCAkAia81JpZWIzqFEse1SL7g,1129
|
25
25
|
streamlit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -240,8 +240,8 @@ streamlit/proto/NamedDataSet_pb2.py,sha256=cWRrGJRex35yZSApkPUWtfX31CHh2puULXQuR
|
|
240
240
|
streamlit/proto/NamedDataSet_pb2.pyi,sha256=grlQwakjdOU2COd9SkGBNckr8aFgbwjh9d_MeUWmJLc,2014
|
241
241
|
streamlit/proto/Navigation_pb2.py,sha256=eE74-8jcZ7vE6faM4YZY3joDvsDA03iqFuKuilXsucU,1727
|
242
242
|
streamlit/proto/Navigation_pb2.pyi,sha256=tCtrov8MwVn4TsbZNsb9JfZc--7UhUWjUsItubgAXKY,3328
|
243
|
-
streamlit/proto/NewSession_pb2.py,sha256=
|
244
|
-
streamlit/proto/NewSession_pb2.pyi,sha256=
|
243
|
+
streamlit/proto/NewSession_pb2.py,sha256=0Eg5IRPWChjDbGF-I4WTYgrk6cqCBHTsZ3YB5u9NGcU,6213
|
244
|
+
streamlit/proto/NewSession_pb2.pyi,sha256=DrI9qdUOkC8sRKl1igyYq_SSTIVTw_I74Gn37mW50_4,22191
|
245
245
|
streamlit/proto/NumberInput_pb2.py,sha256=Oh6jOOGbRR2eETyld_Cw2s1jf0E_HyMpckZ40uIfITY,2485
|
246
246
|
streamlit/proto/NumberInput_pb2.pyi,sha256=xNabaxPIrdntip1h7vnhgGEaG4snycpOKkanoRmNgp0,5117
|
247
247
|
streamlit/proto/PageConfig_pb2.py,sha256=_5or911zwhhoscapOlhdI7sCGUtjLfXKRGoqRbp62mA,2291
|
@@ -355,83 +355,83 @@ streamlit/runtime/state/session_state.py,sha256=laltVPDkyAQ_F3SYLGj0LcusRwZBn1Y5
|
|
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=VzliN91OSbbAGvU9ceT9oWhao4NF56iaOSVmpgELiCo,1837
|
359
359
|
streamlit/static/static/css/index.Bmkmz40k.css,sha256=ABplygqcSw44Q8TlJ00LcbaqtTbc_NvMMYwMblGax1M,18462
|
360
|
-
streamlit/static/static/css/index.
|
360
|
+
streamlit/static/static/css/index.DQZt7VFg.css,sha256=vYr5nryHDfGN2xWp44Or18LwRi1Xj2MyqzZgTeWodmY,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.B-R2xJ_2.js,sha256=6WQ9VWDavZn_5f2TfpqJ3lS6anGXsjeO7oBfTqclH8w,918
|
363
|
+
streamlit/static/static/js/FileHelper.Dpame4Yy.js,sha256=OHcIDAvXXwZw6St3--k1Y9TLJt3vobb0uuLTUwrx2bA,61609
|
364
|
+
streamlit/static/static/js/FormClearHelper.CJtgEcyv.js,sha256=YCXqxKVXUpMmPywy7wkgGtoNUUvZduZefLT2G6Sq1do,631
|
365
|
+
streamlit/static/static/js/Hooks.eMU4yP9C.js,sha256=G8aAOv2svoisyQxMa_bfQEiol4w-sZ2xPQwd1zqa6UE,140
|
366
|
+
streamlit/static/static/js/InputInstructions.Bt5nMAh-.js,sha256=M26IZ-5AapoNSdY9L_FmQE0rRm4etWyzgnBO3jo2VJU,899
|
367
|
+
streamlit/static/static/js/ProgressBar.CRfY498S.js,sha256=u-ACxhAoebQwt-Btg1nvFfbLaruarqOyDSPWtMAD9r4,13318
|
368
|
+
streamlit/static/static/js/RenderInPortalIfExists.CjsBZs42.js,sha256=GrXw5phV2_8ip2gjKNIIUINL4LJvC-8qOx7ABlz2K1k,523
|
369
|
+
streamlit/static/static/js/Toolbar.CBmSHKas.js,sha256=EA6yckbVMoiakjXaLh6qsHrhA6kovCJija5BuAd2T9k,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.pwi2uHY4.js,sha256=UWnqaKZLzZipXKUPzsSvoeCjiEp4NmoPQWTeMujH_iA,21774
|
372
|
+
streamlit/static/static/js/checkbox.BRMCIUrT.js,sha256=NuAJZ9EQiRy1a9vJLpffGgsRcdDMxz4LvWiQ7JbZ_zs,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.
|
374
|
+
streamlit/static/static/js/createSuper.BT2FfU2u.js,sha256=JrNeGDCuWv0YtMZ8ZovqKMcQ4JSf7G6R7xkSzV275TE,394
|
375
|
+
streamlit/static/static/js/data-grid-overlay-editor.DR231PaH.js,sha256=-4cj7xK1-RhlwpYj88wH5s2NRThK6l7oimwU8fP1dcI,4100
|
376
|
+
streamlit/static/static/js/downloader.Cwh9Q8n3.js,sha256=QwE5htyPQcSkNO2Y6U5wu53T0bTcQun3E6jGYgL76NQ,2535
|
377
|
+
streamlit/static/static/js/es6.DXFo1lzk.js,sha256=YRjPzbuI2L8RpGD2K5mBVFvMWaIkdemqLMreT4_3L2U,15321
|
378
|
+
streamlit/static/static/js/iframeResizer.contentWindow.BqHH3gN-.js,sha256=j-ocaRiyKMHVkvGSWlImdPAKYgIPncMzSRocW30Fwtc,14406
|
379
|
+
streamlit/static/static/js/index.-J5N3GRT.js,sha256=FzLfy6pVveDNBH2ye07afnbNbDpPsHsSGGvA8qFieMA,1799
|
380
|
+
streamlit/static/static/js/index.7mbSZESp.js,sha256=1OBfuY7G9jBFwswIW9XxYuC0SsOmLGOYWy0aGywyTAw,18889
|
381
|
+
streamlit/static/static/js/index.B71BDPil.js,sha256=Cc84sPAR7aTIXPUr3ZXUML3HAJI1LsBVO6PbFGO81O0,2861
|
382
|
+
streamlit/static/static/js/index.B9ftDzXT.js,sha256=91NruaYvRhw2zN0r3DjPu0jHHIOgeIylQ0pgTxVUQmo,13070
|
383
|
+
streamlit/static/static/js/index.BAQ_1jSz.js,sha256=LZQ22kbFwdT8N1_sGycj98q1gVS_DBBDS4UKdWfG6JA,24380
|
384
|
+
streamlit/static/static/js/index.BMcgy3Eb.js,sha256=uyXKqTxDlwwMwOKRBt8m6mEEk7bp7SchcYpyl9FAScM,2428
|
385
|
+
streamlit/static/static/js/index.BN2fMHzp.js,sha256=Rjj6i5M2qm_UXIrs-MJKhOtVfoXeHLddj3RvuYz_Ddk,3594
|
386
|
+
streamlit/static/static/js/index.BhhnIkTX.js,sha256=ON6N82qgWzPCTB8zVn968bpi-MQmEucaZ20vLG1W9Ng,113134
|
387
|
+
streamlit/static/static/js/index.BiPCWEUM.js,sha256=rwgFv_7yIWGVbxApM29pnadhn1iCSlyNMh6JT9a8E68,6776181
|
388
|
+
streamlit/static/static/js/index.Bt4_I4Hr.js,sha256=F-kEzko_B6NyeNpqXJYcKhpFsXdyXHEs_a51u9-y6O4,1612
|
389
|
+
streamlit/static/static/js/index.BtaSeLy3.js,sha256=BRdlsDZR6BslFqzHFDsYfoZjqts4H6SLzoQHelj0puo,583
|
390
390
|
streamlit/static/static/js/index.BtuGy7By.js,sha256=-Gsj2Zol9DIzhVSfITfCTlJw0Uw9yNUqTTWeXnsw9iY,34960
|
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.
|
416
|
-
streamlit/static/static/js/index.
|
417
|
-
streamlit/static/static/js/input.
|
391
|
+
streamlit/static/static/js/index.C8ZQWk_P.js,sha256=7_dC2mzCNzthDrsIDCSmKHg4zJHt8jSEM92oCvLfYUM,798
|
392
|
+
streamlit/static/static/js/index.CKLHvpe_.js,sha256=dPXpuNN0ZpFEZSWSmyWgc3IBx_3JdgSy9NbtoSpNq5U,34827
|
393
|
+
streamlit/static/static/js/index.COJ2HeaK.js,sha256=eqCAK2jZuH7vmPWRQDrdbrRkg2Ef5MIS1rm_XyTWyys,19525
|
394
|
+
streamlit/static/static/js/index.ClCou1d2.js,sha256=YPuisxbA-FxSfHmCG45YZVv2MuhQ2k4RpOWgZiqpHlM,2837
|
395
|
+
streamlit/static/static/js/index.Cqy-AKUq.js,sha256=mRj9ud51sT_8GUQQn1L0HCVYI013u96jDbuh-7wiPvo,22687
|
396
|
+
streamlit/static/static/js/index.CtDd3Kvg.js,sha256=8eKm5e7fFxrrdtOk1ojj_3HIGxTTNM1dUku4FyawShA,880
|
397
|
+
streamlit/static/static/js/index.D6iEZATu.js,sha256=tikXWyREcgt0jVPbNDHMUJUztLO0uAm9B9obHh_HjQc,2592
|
398
|
+
streamlit/static/static/js/index.DAIPHdqL.js,sha256=6LuvhOihZ1jZ3tuvRhcGF09kBteFY8DPDW1cxRluSMQ,1333
|
399
|
+
streamlit/static/static/js/index.DBAW0l2y.js,sha256=p4e5dLCyWx5MUtHyeZiXoUI8RyK5tDAEU-niFNIfnMc,2565793
|
400
|
+
streamlit/static/static/js/index.DC7tm9ca.js,sha256=5r_oxvcLTP9aR-okTuANftMztMcl5-qAFcs5RlDoIO0,2396
|
401
|
+
streamlit/static/static/js/index.DGe1v1i2.js,sha256=fydCIJCK7wg4N9XRmC3NoLUKjJt2ZsKUBJqOQkvcijA,2110
|
402
|
+
streamlit/static/static/js/index.DIxz2WrU.js,sha256=5K7fEvwZHvsrJOPa_mGrfnnfeFmxKpell0HO5OWzvqw,852045
|
403
|
+
streamlit/static/static/js/index.DJZrR-yh.js,sha256=gxW1viMVpPKYgabhuaoO7Yi9UVnuGraYuHkK90l_Ilc,443
|
404
|
+
streamlit/static/static/js/index.DTC2KQEB.js,sha256=qGFzPMxKLiVOnIWrSBywwEwDTOplorARjAYbxixTeqw,4692504
|
405
|
+
streamlit/static/static/js/index.DbtNEUBr.js,sha256=sMd-KiqSSHbKbGmEJnPMaJlImtqHv_KskLMm0JPGcl0,1359
|
406
|
+
streamlit/static/static/js/index.DklFRDjI.js,sha256=VZixgPsmv2SYJ-DXWw_SifWnqRAEN0SZpFZGH55j11s,9077
|
407
|
+
streamlit/static/static/js/index.DuXQiNfC.js,sha256=NAOXNfNjza_z9W3T2FhEQbmlSBJVLkvlURp31LADSVk,11971
|
408
|
+
streamlit/static/static/js/index.DzJ-K9FH.js,sha256=3Gw_UBZANc7_2aXTKxUkIojBT88VAdFyJaKu-qPTa6Q,3385535
|
409
|
+
streamlit/static/static/js/index.E4BOW70b.js,sha256=yJcjpwpRP1vL-R3zxC1RgwIBFiOcwxGVl-mYKKFyrKQ,3898
|
410
|
+
streamlit/static/static/js/index.Fi_0UKZA.js,sha256=0exTIXE8PFRgz7eShX3zD3zg7ipyb68EAeXLWNjSs1A,7207
|
411
|
+
streamlit/static/static/js/index.SGdFItlP.js,sha256=tbSwXrNVaxmtv-6R7kWNi4HXeYH3ywdHX-YUombFZLI,50214
|
412
|
+
streamlit/static/static/js/index.Y1Qnwm4b.js,sha256=1q4BtMur4wfAIob1SohjNmq2sfJDtXobFu28lQSfTOg,852461
|
413
|
+
streamlit/static/static/js/index._HJ2bgYb.js,sha256=_9uny7pxpC2wctSmqYPxjGAdetiGHvsf16QOqCm8EL4,434554
|
414
|
+
streamlit/static/static/js/index.eHde7unb.js,sha256=m6OVt7YIea8pMmAo-JQKPa2VFAba4AqiUAroG1vrXzc,617
|
415
|
+
streamlit/static/static/js/index.oH2t20_d.js,sha256=iAl_pNw1Q3m8Go7q5Aa5GpL0Ssybwc8QuhgOSAju7c0,1277
|
416
|
+
streamlit/static/static/js/index.pfdwKIIK.js,sha256=41ReVTozrwRrUk8wJII4DyIb739FNyPU0paFEWYCNQg,718
|
417
|
+
streamlit/static/static/js/input.Rf6xGN5X.js,sha256=vsl842qThUcthQtZQSvNn94qylEM94V9zBHYzOLJoHM,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.D5NLCYdA.js,sha256=kjaO4ud2zMp5hgcumzIkRJWnZKgTJ5zlrLGNBMyHyQw,3041
|
420
|
+
streamlit/static/static/js/mergeWith.Bcdwg8Ac.js,sha256=sosMUjyPijcWv4FHTzbrGuNWiNy5QvD9rveZH87iDPQ,198
|
421
|
+
streamlit/static/static/js/number-overlay-editor.CCjfRIEO.js,sha256=oS-DCcrhykzP54B4YPdf8wfpexhlRCJF3JIaL25khsw,16550
|
422
|
+
streamlit/static/static/js/possibleConstructorReturn.B8bXiVQj.js,sha256=x3MseIWajwqRviYYYbrPFA-XiE7u0UgJv4EJv_Aq454,1451
|
423
|
+
streamlit/static/static/js/sandbox.lrrkbqxh.js,sha256=RGTWv_wztcbznsC6oCnA2J-FSC1Z9PSkFZmW5nOZjTs,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.DCEYRe9D.js,sha256=V7NBShmEBlik_VwUiOljiJG6-Mz6mej53Mj_-nRM1Fc,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.DpQ3WAC_.js,sha256=0W2muLENBq6LE4LAEoZEJwtK15DoRuibdUgE_1171-w,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.EduObuzm.js,sha256=Q9uta_wTBWlYDcT7aqcMKkjZz2w8hjtfjsKcnByFwdo,1587
|
430
|
+
streamlit/static/static/js/uniqueId.qyd-2U_A.js,sha256=THNcaBs-Jedc8QjTLvpKr6Lvt6q-KxjpgxXPn6U50I0,190
|
431
|
+
streamlit/static/static/js/useBasicWidgetState.B0zc_tpZ.js,sha256=Jpe_nhlRnK4wHwyWcJ9XGWLo-E6UYt25hR_3bz_i3G0,960
|
432
|
+
streamlit/static/static/js/useOnInputChange.tzktvOeD.js,sha256=ncVuZKfwuoq3NYzk4NMUld7nZI9LRyrWWRhOBazCwus,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.TezXOJ_z.js,sha256=pLy-FlTkYrb1RyoQwb6lfswHuTH8uv41sXUuuRWK6N8,1661
|
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
|
@@ -491,7 +491,7 @@ streamlit/static/static/media/KaTeX_Size4-Regular.Dl5lxZxV.woff2,sha256=pK99QURA
|
|
491
491
|
streamlit/static/static/media/KaTeX_Typewriter-Regular.C0xS9mPB.woff,sha256=4U_tArGrp86fWv1YRLXQMhsiNR_rxyDg3ouHI1J2Cfc,16028
|
492
492
|
streamlit/static/static/media/KaTeX_Typewriter-Regular.CO6r4hn1.woff2,sha256=cdUX1ngneHz6vfGGkUzDNY7aU543kxlB8rL9SiH2jAs,13568
|
493
493
|
streamlit/static/static/media/KaTeX_Typewriter-Regular.D3Ib7_Hf.ttf,sha256=8B8-h9nGphwMCBzrV3q9hk6wCmEvesFiDdaRX60u9ao,27556
|
494
|
-
streamlit/static/static/media/MaterialSymbols-Rounded.
|
494
|
+
streamlit/static/static/media/MaterialSymbols-Rounded.CRt5Q-14.woff2,sha256=9cLog_v9c93pR5MLd7HzBrdVsOwlByDTr9Uj8aFy9m0,409316
|
495
495
|
streamlit/static/static/media/SourceCodePro-Bold.CFEfr7-q.woff2,sha256=GRaJCgp-IjxFMIQh3H8g4xvKBiiIY0_wmiTLK0wLQ8Y,74492
|
496
496
|
streamlit/static/static/media/SourceCodePro-BoldItalic.C-LkFXxa.woff2,sha256=jVJHL9nm8MafxoRdi7Bu6A_Ei4VHJ7_Rh44qY1mqc2k,63060
|
497
497
|
streamlit/static/static/media/SourceCodePro-Italic.CxFOx7N-.woff2,sha256=9l14W6OSkW1dJiiKKavLd1_QdTHtv_Sl67HNQoWSu8g,62096
|
@@ -555,9 +555,9 @@ streamlit/web/server/server_util.py,sha256=qL-z1JI1sTWvahhfzckWiKlsJhYqLiKCGsZEz
|
|
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.43.
|
559
|
-
streamlit_nightly-1.43.
|
560
|
-
streamlit_nightly-1.43.
|
561
|
-
streamlit_nightly-1.43.
|
562
|
-
streamlit_nightly-1.43.
|
563
|
-
streamlit_nightly-1.43.
|
558
|
+
streamlit_nightly-1.43.3.dev20250311.data/scripts/streamlit.cmd,sha256=k9768SaQCkiYAPaTp7JtkhAHEHflNQfu6fAM4pri6zo,676
|
559
|
+
streamlit_nightly-1.43.3.dev20250311.dist-info/METADATA,sha256=Xz7hUl0kdSdaqbqmA-Ufy5IEyEU8ysQ8K4WTnn66HFw,8933
|
560
|
+
streamlit_nightly-1.43.3.dev20250311.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
561
|
+
streamlit_nightly-1.43.3.dev20250311.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
|
562
|
+
streamlit_nightly-1.43.3.dev20250311.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
|
563
|
+
streamlit_nightly-1.43.3.dev20250311.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as l,E as $,_ as N,n as u,A as mt,y as A,j as n,ba as Q,bu as vt,B as z,bp as Z,b5 as tt,bo as H,a$ as yt,bG as wt,bj as Ct,bH as I,bs as It,F as et,bh as xt,bI as bt,L,bl as St,bk as zt}from"./index.JTJJx0oP.js";import{g as Ft,F as V,C as Et,I as Ut,E as Ht,a as Tt,s as Bt,u as Dt,b as Lt}from"./FileHelper.rj4_ZPRJ.js";import{I as Rt}from"./InputInstructions.DrB4DkBs.js";import{i as kt}from"./inputUtils.CQWz5UKz.js";import{a as J}from"./index.BtuGy7By.js";import{U as ot}from"./UploadFileInfo.C-jY39rj.js";import{T as Mt}from"./textarea.BSbs9R6k.js";import"./base-input.aWYv_T3A.js";var nt=l.forwardRef(function(t,e){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return l.createElement($,N({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),l.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),l.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"}))});nt.displayName="AttachFile";var at=l.forwardRef(function(t,e){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return l.createElement($,N({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),l.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"}))});at.displayName="ErrorOutline";var rt=l.forwardRef(function(t,e){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return l.createElement($,N({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),l.createElement("rect",{width:24,height:24,fill:"none"}),l.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"}))});rt.displayName="Send";const Vt=u("div",{target:"e1togvvn0"})("border:none;position:relative;display:flex;"),$t=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}})),Nt=u("button",{target:"e1togvvn2"})(({theme:t,disabled:e,extended:r})=>{const d=mt(t),[f,c]=d?[t.colors.gray60,t.colors.gray80]:[t.colors.gray80,t.colors.gray40];return{border:"none",backgroundColor:t.colors.transparent,borderTopRightRadius:r?"0":t.radii.chatInput,borderTopLeftRadius:r?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:c,pointerEvents:"auto","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{backgroundColor:d?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"}}}),At=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})`})),qt=u("div",{target:"ewqvugz0"})(({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:"ewqvugz1"})(({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:"ewqvugz2"})(({theme:t,disabled:e})=>({display:"flex",alignItems:"top",height:"100%",marginTop:`-${t.sizes.borderWidth}`,cursor:e?"not-allowed":"auto"})),Ot=u("div",{target:"ewqvugz3"})(({disabled:t})=>({pointerEvents:t?"none":"auto"})),_t=u("div",{target:"ewqvugz4"})(({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:"ewqvugz5"})(({theme:t})=>({left:0,right:0,lineHeight:t.lineHeights.tight,paddingLeft:t.spacing.sm,paddingRight:t.spacing.sm,overflowX:"auto"})),Gt=u("div",{target:"ewqvugz6"})(({})=>({display:"flex"})),jt=u("div",{target:"ewqvugz7"})(({})=>({flex:"0 0 auto"})),Yt=u("div",{target:"ewqvugz8"})(({theme:t})=>({display:"flex",alignItems:"center",padding:t.spacing.sm,gap:t.spacing.twoXS})),Jt=u("div",{target:"ewqvugz9"})(({theme:t})=>({color:t.colors.fadedText60})),Qt=u("div",{target:"ewqvugz10"})(({theme:t,fileStatus:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:e.type==="uploaded"?t.colors.bodyText:t.colors.fadedText60})),Zt=u("div",{target:"ewqvugz11"})(({theme:t})=>({marginRight:t.spacing.md,color:t.colors.fadedText60})),te=u("small",{target:"ewqvugz12"})(({theme:t})=>({display:"flex",alignItems:"center",maxHeight:t.sizes.smallElementHeight,color:t.colors.fadedText60,"& :hover":{color:t.colors.bodyText}}));function ee({children:t,content:e}){const r=A();return n(vt,{content:e,placement:Q.TOP,overrides:{Body:{style:{top:`-${r.sizes.minElementHeight}`}}},children:t})}const oe=({fileInfo:t})=>{const e=A(),{type:r}=t.status;switch(r){case"uploading":return n(wt,{usingCustomTheme:!1,"data-testid":"stChatInputFileIconSpinner",size:"lg",margin:"0",padding:"0"});case"error":return n(ee,{content:t.status.errorMessage,children:n(H,{color:e.colors.red,content:at,size:"lg"})});case"uploaded":return n(H,{content:Ut,size:"lg"});default:return yt(r),null}},ne=({fileInfo:t,onDelete:e})=>z(Yt,{className:"stChatInputFile","data-testid":"stChatInputFile",children:[n(Jt,{children:n(oe,{fileInfo:t})}),n(Qt,{className:"stChatInputFileName","data-testid":"stChatInputFileName",title:t.name,fileStatus:t.status,children:t.name}),n(Zt,{children:Ft(t.size,V.Byte)}),n(te,{"data-testid":"stChatInputDeleteBtn",children:n(Z,{onClick:()=>e(t.id),kind:tt.MINIMAL,children:n(H,{content:Et,size:"lg"})})})]}),ae=({items:t,onDelete:e})=>n(Xt,{"data-testid":"stChatUploadedFiles",children:n(Gt,{children:t.map(r=>n(jt,{children:n(ne,{fileInfo:r,onDelete:e})},r.id))})}),re=({getNextLocalFileId:t,addFiles:e,updateFile:r,uploadClient:d,element:f,onUploadProgress:c,onUploadComplete:m})=>(x,h)=>{const v=J.CancelToken.source(),g=new ot(h.name,h.size,t(),{type:"uploading",cancelToken:v,progress:1});e([g]),d.uploadFile({formId:"",...f},x.uploadUrl,h,p=>c(p,g.id),v.token).then(()=>m(g.id,x)).catch(p=>{J.isCancel(p)||r(g.id,g.setStatus({type:"error",errorMessage:p?p.toString():"Unknown error"}))})},ie=({acceptMultipleFiles:t,maxFileSize:e,uploadClient:r,uploadFile:d,addFiles:f,getNextLocalFileId:c,deleteExistingFiles:m,onUploadComplete:x})=>(h,v)=>{if(!t&&h.length===0&&v.length>1){const g=v.findIndex(p=>{var y;return((y=p.errors)==null?void 0:y[0].code)===Ht.TooManyFiles});g>=0&&(h.push(v[g].file),v.splice(g,1))}if(!t&&h.length>0&&m(),r.fetchFileURLs(h).then(g=>{Ct(g,h).forEach(([p,y])=>{d(p,y)})}).catch(g=>{f(h.map(p=>new ot(p.name,p.size,c(),{type:"error",errorMessage:g})))}),v.length>0){const g=v.map(p=>Tt(p,c(),e));f(g)}x()},se=({getRootProps:t,getInputProps:e,acceptFile:r,disabled:d,theme:f})=>z(Kt,{disabled:d,children:[z(Ot,{"data-testid":"stChatInputFileUploadButton",disabled:d,...t(),children:[n("input",{...e()}),n(It,{content:`Upload or drag and drop ${r===I.Multiple?"files":"a file"}`,placement:Q.TOP,onMouseEnterDelay:500,children:n(Z,{kind:tt.MINIMAL,disabled:d,children:n(H,{content:nt,size:"lg",color:d?f.colors.fadedText40:f.colors.fadedText60})})})]}),n(_t,{})]}),le=({getRootProps:t,getInputProps:e,acceptFile:r,inputHeight:d})=>z(et,{children:[n(qt,{height:d,...t(),children:n("input",{...e()})}),n(Pt,{height:d,children:`Drag and drop ${r===I.Multiple?"files":"a file"} here`})]}),de=6.5,R=1,k=(t,e,r)=>r.map(d=>d.id===t?e:d),M=(t,e)=>e.find(r=>r.id===t);function ce({disabled:t,element:e,widgetMgr:r,fragmentId:d,uploadClient:f}){const c=A(),m=l.useRef(null),x=l.useRef(0),h=l.useRef({minHeight:0,maxHeight:0}),[v,g]=xt(),[p,y]=l.useState(!1),[F,B]=l.useState(e.default),[E,W]=l.useState(0),[T,it]=l.useState(!1),[b,S]=l.useState([]),[U,D]=l.useState(!1),C=bt(e.acceptFile),q=Bt(e.maxUploadSizeMb,V.Megabyte,V.Byte),P=l.useCallback(o=>S(a=>[...a,...o]),[]),K=l.useCallback(o=>{S(a=>{const s=M(o,a);return L(s)?a:(s.status.type==="uploading"&&s.status.cancelToken.cancel(),s.status.type==="uploaded"&&s.status.fileUrls.deleteUrl&&f.deleteFile(s.status.fileUrls.deleteUrl),a.filter(i=>i.id!==o))})},[f]),st=()=>{const o=b.filter(a=>a.status.type==="uploaded").map(a=>{const{name:s,size:i,status:w}=a,{fileId:ht,fileUrls:ft}=w;return new St({fileId:ht,fileUrls:ft,name:s,size:i})});return new zt({uploadedFileInfo:o})},O=()=>x.current++,lt=ie({acceptMultipleFiles:C===I.Multiple,maxFileSize:q,uploadClient:f,uploadFile:re({getNextLocalFileId:O,addFiles:P,updateFile:(o,a)=>{S(s=>k(o,a,s))},uploadClient:f,element:e,onUploadProgress:(o,a)=>{S(s=>{const i=M(a,s);if(L(i)||i.status.type!=="uploading")return s;const w=Math.round(o.loaded*100/o.total);return i.status.progress===w?s:k(a,i.setStatus({type:"uploading",cancelToken:i.status.cancelToken,progress:w}),s)})},onUploadComplete:(o,a)=>{S(s=>{const i=M(o,s);return L(i)||i.status.type!=="uploading"?s:k(i.id,i.setStatus({type:"uploaded",fileId:a.fileId,fileUrls:a}),s)})}}),addFiles:P,getNextLocalFileId:O,deleteExistingFiles:()=>b.forEach(o=>K(o.id)),onUploadComplete:()=>{m.current&&m.current.focus()}}),{getRootProps:_,getInputProps:X}=Dt({onDrop:lt,multiple:C===I.Multiple,accept:Lt(e.fileType),maxSize:q}),dt=()=>{let o=0;const{current:a}=m;if(a){const s=a.placeholder;a.placeholder="",a.style.height="auto",o=a.scrollHeight,a.placeholder=s,a.style.height=""}return o},G=()=>{if(m.current&&m.current.focus(),!p||t)return;const o={data:F,fileUploaderState:st()};r.setChatInputValue(e,o,{fromUi:!0},d),y(!1),S([]),B(""),W(0)},ct=o=>{const{metaKey:a,ctrlKey:s,shiftKey:i}=o;kt(o)&&!i&&!s&&!a&&(o.preventDefault(),G())},pt=o=>{const{value:a}=o.target,{maxChars:s}=e;s!==0&&a.length>s||(B(a),W(dt()))};l.useEffect(()=>b.some(o=>o.status.type==="uploading")?y(!1):y(F!==""||b.length>0),[b,F]),l.useEffect(()=>{if(e.setValue){e.setValue=!1;const o=e.value||"";B(o)}},[e]),l.useLayoutEffect(()=>{if(m.current){const{offsetHeight:o}=m.current;h.current.minHeight=o,h.current.maxHeight=o*de}},[m]),l.useEffect(()=>{const o=i=>{var w;i.preventDefault(),i.stopPropagation(),!U&&((w=i.dataTransfer)!=null&&w.types.includes("Files"))&&D(!0)},a=i=>{i.preventDefault(),i.stopPropagation(),U&&(i.clientX<=0&&i.clientY<=0||i.clientX>=window.innerWidth&&i.clientY>=window.innerHeight)&&D(!1)},s=i=>{i.preventDefault(),i.stopPropagation(),U&&D(!1)};return window.addEventListener("dragover",o),window.addEventListener("drop",s),window.addEventListener("dragleave",a),()=>{window.removeEventListener("dragover",o),window.removeEventListener("drop",s),window.removeEventListener("dragleave",a)}},[U]),l.useLayoutEffect(()=>{const{minHeight:o}=h.current;it(E>0&&m.current?Math.abs(E-o)>R:!1)},[E]);const{placeholder:j,maxChars:ut}=e,{maxHeight:Y}=h.current,gt=C!==I.None&&U;return z(et,{children:[C===I.None?null:n(ae,{items:[...b],onDelete:K}),n(Vt,{className:"stChatInput","data-testid":"stChatInput",ref:g,children:gt?n(le,{getRootProps:_,getInputProps:X,acceptFile:C,inputHeight:T?`${E+R}px`:c.sizes.minElementHeight}):z($t,{extended:T,children:[C===I.None?null:n(se,{getRootProps:_,getInputProps:X,acceptFile:C,disabled:t,theme:c}),n(Mt,{inputRef:m,value:F,placeholder:j,onChange:pt,onKeyDown:ct,"aria-label":j,disabled:t,rows:1,overrides:{Root:{style:{minHeight:c.sizes.minElementHeight,outline:"none",borderLeftWidth:"0",borderRightWidth:"0",borderTopWidth:"0",borderBottomWidth:"0"}},Input:{props:{"data-testid":"stChatInputTextArea"},style:{lineHeight:c.lineHeights.inputWidget,"::placeholder":{opacity:"0.7"},height:T?`${E+R}px`:"auto",maxHeight:Y?`${Y}px`:"none",paddingLeft:c.spacing.none,paddingBottom:c.spacing.sm,paddingTop:c.spacing.sm,paddingRight:`calc(${c.iconSizes.xl} + 2 * ${c.spacing.sm} + ${c.spacing.sm})`}}}}),v>c.breakpoints.hideWidgetDetails&&n(Wt,{children:n(Rt,{dirty:p,value:F,maxLength:ut,type:"chat",inForm:!1})}),n(At,{children:n(Nt,{onClick:G,disabled:!p||t,extended:T,"data-testid":"stChatInputSubmitButton",children:n(H,{content:rt,size:"xl",color:"inherit"})})})]})})]})}const we=l.memo(ce);export{we as default};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{n as s,r as f,R as g,aD as x,b9 as b,y as k,j as n,b6 as C,ba as L,B as v,D as w,aC as h}from"./index.JTJJx0oP.js";const T=s("div",{target:"e1mwh7ju0"})({display:"flex",flexDirection:"column"}),y=s("a",{target:"e1mwh7ju1"})(({disabled:a,isCurrentPage:o,containerWidth:l,theme:e})=>({textDecoration:"none",width:l?"100%":"fit-content",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:e.spacing.sm,borderRadius:e.radii.default,paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm,marginTop:e.spacing.threeXS,marginBottom:e.spacing.threeXS,lineHeight:e.lineHeights.menuItem,backgroundColor:o?e.colors.darkenedBgMix15:"transparent","&:hover":{backgroundColor:o?e.colors.darkenedBgMix25:e.colors.darkenedBgMix15},"&:active,&:visited,&:hover":{textDecoration:"none"},"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:e.colors.darkenedBgMix15},"@media print":{paddingLeft:e.spacing.none},...a?{borderColor:e.colors.borderColor,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:"not-allowed","&:hover":{color:e.colors.fadedText40,backgroundColor:e.colors.transparent}}:{}})),S=s("span",{target:"e1mwh7ju2"})(({disabled:a,theme:o})=>({color:o.colors.bodyText,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell",...a?{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}:{}}));function D(a,o){return a===null&&o?!0:a===null&&!o?!1:a===!0}function P(a){const{onPageChange:o,currentPageScriptHash:l}=g.useContext(x),e=g.useContext(b),{colors:i}=k(),{disabled:t,element:r}=a,c=D(r.useContainerWidth,e),d=l===r.pageScriptHash,p=u=>{r.external?t&&u.preventDefault():(u.preventDefault(),t||o(r.pageScriptHash))};return n("div",{className:"stPageLink","data-testid":"stPageLink",children:n(C,{help:r.help,placement:L.TOP_RIGHT,containerWidth:c,children:n(T,{children:v(y,{"data-testid":"stPageLink-NavLink",disabled:t,isCurrentPage:d,containerWidth:c,href:r.page,target:r.external?"_blank":"",rel:"noreferrer",onClick:p,children:[r.icon&&n(w,{size:"lg",color:t?i.fadedText40:i.bodyText,iconValue:r.icon}),n(S,{disabled:t,children:n(h,{source:r.label,allowHTML:!1,isLabel:!0,boldLabel:d,largerLabel:!0,disableLinks:!0})})]})})})})}const j=f.memo(P);export{j as default};
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import{r as J,j as ct,F as Vt}from"./index.JTJJx0oP.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:At,setPrototypeOf:ft,isFrozen:$t,getPrototypeOf:qt,getOwnPropertyDescriptor:Kt}=Object;let{freeze:S,seal:y,create:ht}=Object,{apply:xe,construct:Pe}=typeof Reflect<"u"&&Reflect;S||(S=function(n){return n});y||(y=function(n){return n});xe||(xe=function(n,l,r){return n.apply(l,r)});Pe||(Pe=function(n,l){return new n(...l)});const le=R(Array.prototype.forEach),Zt=R(Array.prototype.lastIndexOf),ut=R(Array.prototype.pop),V=R(Array.prototype.push),Jt=R(Array.prototype.splice),fe=R(String.prototype.toLowerCase),Ne=R(String.prototype.toString),mt=R(String.prototype.match),$=R(String.prototype.replace),Qt=R(String.prototype.indexOf),en=R(String.prototype.trim),b=R(Object.prototype.hasOwnProperty),h=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),f=1;f<l;f++)r[f-1]=arguments[f];return xe(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 Pe(a,l)}}function s(a,n){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fe;ft&&ft(a,null);let r=n.length;for(;r--;){let f=n[r];if(typeof f=="string"){const L=l(f);L!==f&&($t(n)||(n[r]=L),f=L)}a[f]=!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 At(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 pt=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"]),De=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"]),Ie=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"]),Me=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"]),dt=S(["#text"]),Tt=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"]),Ce=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"]),Et=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"]),ce=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]+$/),St=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),Rt=y(/^html$/i),pn=y(/^[a-z][.\w]*(-[.\w]+)+$/i);var _t=Object.freeze({__proto__:null,ARIA_ATTR:fn,ATTR_WHITESPACE:mn,CUSTOM_ELEMENT:pn,DATA_ATTR:cn,DOCTYPE_NAME:Rt,ERB_EXPR:sn,IS_ALLOWED_URI:St,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 f="data-tt-policy-suffix";l&&l.hasAttribute(f)&&(r=l.getAttribute(f));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}},gt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ot(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dn();const n=i=>Ot(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,f=r.currentScript,{DocumentFragment:L,HTMLTemplateElement:I,Node:ue,Element:Ue,NodeFilter:z,NamedNodeMap:Lt=a.NamedNodeMap||a.MozNamedAttrMap,HTMLFormElement:yt,DOMParser:bt,trustedTypes:Q}=a,G=Ue.prototype,Nt=K(G,"cloneNode"),Dt=K(G,"remove"),It=K(G,"nextSibling"),Mt=K(G,"childNodes"),ee=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:me,createNodeIterator:Ct,createDocumentFragment:wt,getElementsByTagName:xt}=l,{importNode:Pt}=r;let g=gt();n.isSupported=typeof At=="function"&&typeof ee=="function"&&me&&me.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:pe,ERB_EXPR:de,TMPLIT_EXPR:Te,DATA_ATTR:kt,ARIA_ATTR:vt,IS_SCRIPT_OR_DATA:Ut,ATTR_WHITESPACE:Fe,CUSTOM_ELEMENT:Ft}=_t;let{IS_ALLOWED_URI:He}=_t,m=null;const ze=s({},[...pt,...De,...Ie,...Me,...dt]);let d=null;const Ge=s({},[...Tt,...Ce,...Et,...ce]);let u=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,Ee=null,We=!0,_e=!0,Be=!1,Ye=!0,P=!1,ge=!0,w=!1,Ae=!1,he=!1,k=!1,te=!1,ne=!1,Xe=!0,je=!1;const Ht="user-content-";let Se=!0,Y=!1,v={},U=null;const Ve=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 $e=null;const qe=s({},["audio","video","img","source","image","track"]);let Re=null;const Ke=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),oe="http://www.w3.org/1998/Math/MathML",ie="http://www.w3.org/2000/svg",M="http://www.w3.org/1999/xhtml";let F=M,Oe=!1,Le=null;const zt=s({},[oe,ie,M],Ne);let ae=s({},["mi","mo","mn","ms","mtext"]),re=s({},["annotation-xml"]);const Gt=s({},["title","style","font","a","script"]);let X=null;const Wt=["application/xhtml+xml","text/html"],Bt="text/html";let p=null,H=null;const Yt=l.createElement("form"),Ze=function(e){return e instanceof RegExp||e instanceof Function},ye=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=Wt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Bt:e.PARSER_MEDIA_TYPE,p=X==="application/xhtml+xml"?Ne:fe,m=b(e,"ALLOWED_TAGS")?s({},e.ALLOWED_TAGS,p):ze,d=b(e,"ALLOWED_ATTR")?s({},e.ALLOWED_ATTR,p):Ge,Le=b(e,"ALLOWED_NAMESPACES")?s({},e.ALLOWED_NAMESPACES,Ne):zt,Re=b(e,"ADD_URI_SAFE_ATTR")?s(x(Ke),e.ADD_URI_SAFE_ATTR,p):Ke,$e=b(e,"ADD_DATA_URI_TAGS")?s(x(qe),e.ADD_DATA_URI_TAGS,p):qe,U=b(e,"FORBID_CONTENTS")?s({},e.FORBID_CONTENTS,p):Ve,B=b(e,"FORBID_TAGS")?s({},e.FORBID_TAGS,p):{},Ee=b(e,"FORBID_ATTR")?s({},e.FORBID_ATTR,p):{},v=b(e,"USE_PROFILES")?e.USE_PROFILES:!1,We=e.ALLOW_ARIA_ATTR!==!1,_e=e.ALLOW_DATA_ATTR!==!1,Be=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ye=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,P=e.SAFE_FOR_TEMPLATES||!1,ge=e.SAFE_FOR_XML!==!1,w=e.WHOLE_DOCUMENT||!1,k=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,Xe=e.SANITIZE_DOM!==!1,je=e.SANITIZE_NAMED_PROPS||!1,Se=e.KEEP_CONTENT!==!1,Y=e.IN_PLACE||!1,He=e.ALLOWED_URI_REGEXP||St,F=e.NAMESPACE||M,ae=e.MATHML_TEXT_INTEGRATION_POINTS||ae,re=e.HTML_INTEGRATION_POINTS||re,u=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ze(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ze(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),P&&(_e=!1),te&&(k=!0),v&&(m=s({},dt),d=[],v.html===!0&&(s(m,pt),s(d,Tt)),v.svg===!0&&(s(m,De),s(d,Ce),s(d,ce)),v.svgFilters===!0&&(s(m,Ie),s(d,Ce),s(d,ce)),v.mathMl===!0&&(s(m,Me),s(d,Et),s(d,ce))),e.ADD_TAGS&&(m===ze&&(m=x(m)),s(m,e.ADD_TAGS,p)),e.ADD_ATTR&&(d===Ge&&(d=x(d)),s(d,e.ADD_ATTR,p)),e.ADD_URI_SAFE_ATTR&&s(Re,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(U===Ve&&(U=x(U)),s(U,e.FORBID_CONTENTS,p)),Se&&(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(Q,f)),_!==null&&typeof W=="string"&&(W=_.createHTML(""));S&&S(e),H=e}},Je=s({},[...De,...Ie,...on]),Qe=s({},[...Me,...an]),Xt=function(e){let t=ee(e);(!t||!t.tagName)&&(t={namespaceURI:F,tagName:"template"});const o=fe(e.tagName),c=fe(t.tagName);return Le[e.namespaceURI]?e.namespaceURI===ie?t.namespaceURI===M?o==="svg":t.namespaceURI===oe?o==="svg"&&(c==="annotation-xml"||ae[c]):!!Je[o]:e.namespaceURI===oe?t.namespaceURI===M?o==="math":t.namespaceURI===ie?o==="math"&&re[c]:!!Qe[o]:e.namespaceURI===M?t.namespaceURI===ie&&!re[c]||t.namespaceURI===oe&&!ae[c]?!1:!Qe[o]&&(Gt[o]||!Je[o]):!!(X==="application/xhtml+xml"&&Le[e.namespaceURI]):!1},N=function(e){V(n.removed,{element:e});try{ee(e).removeChild(e)}catch{Dt(e)}},se=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||te)try{N(t)}catch{}else try{t.setAttribute(e,"")}catch{}},et=function(e){let t=null,o=null;if(he)e="<remove></remove>"+e;else{const T=mt(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 bt().parseFromString(c,X)}catch{}if(!t||!t.documentElement){t=me.createDocument(F,"template",null);try{t.documentElement.innerHTML=Oe?W:c}catch{}}const E=t.body||t.documentElement;return e&&o&&E.insertBefore(l.createTextNode(o),E.childNodes[0]||null),F===M?xt.call(t,w?"html":"body")[0]:w?t.documentElement:E},tt=function(e){return Ct.call(e.ownerDocument||e,e,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},be=function(e){return e instanceof yt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Lt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},nt=function(e){return typeof ue=="function"&&e instanceof ue};function C(i,e,t){le(i,o=>{o.call(n,e,t,H)})}const ot=function(e){let t=null;if(C(g.beforeSanitizeElements,e,null),be(e))return N(e),!0;const o=p(e.nodeName);if(C(g.uponSanitizeElement,e,{tagName:o,allowedTags:m}),e.hasChildNodes()&&!nt(e.firstElementChild)&&h(/<[/\w]/g,e.innerHTML)&&h(/<[/\w]/g,e.textContent)||e.nodeType===Z.progressingInstruction||ge&&e.nodeType===Z.comment&&h(/<[/\w]/g,e.data))return N(e),!0;if(!m[o]||B[o]){if(!B[o]&&at(o)&&(u.tagNameCheck instanceof RegExp&&h(u.tagNameCheck,o)||u.tagNameCheck instanceof Function&&u.tagNameCheck(o)))return!1;if(Se&&!U[o]){const c=ee(e)||e.parentNode,E=Mt(e)||e.childNodes;if(E&&c){const T=E.length;for(let O=T-1;O>=0;--O){const D=Nt(E[O],!0);D.__removalCount=(e.__removalCount||0)+1,c.insertBefore(D,It(e))}}}return N(e),!0}return e instanceof Ue&&!Xt(e)||(o==="noscript"||o==="noembed"||o==="noframes")&&h(/<\/no(script|embed|frames)/i,e.innerHTML)?(N(e),!0):(P&&e.nodeType===Z.text&&(t=e.textContent,le([pe,de,Te],c=>{t=$(t,c," ")}),e.textContent!==t&&(V(n.removed,{element:e.cloneNode()}),e.textContent=t)),C(g.afterSanitizeElements,e,null),!1)},it=function(e,t,o){if(Xe&&(t==="id"||t==="name")&&(o in l||o in Yt))return!1;if(!(_e&&!Ee[t]&&h(kt,t))){if(!(We&&h(vt,t))){if(!d[t]||Ee[t]){if(!(at(e)&&(u.tagNameCheck instanceof RegExp&&h(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))&&(u.attributeNameCheck instanceof RegExp&&h(u.attributeNameCheck,t)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(t))||t==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&h(u.tagNameCheck,o)||u.tagNameCheck instanceof Function&&u.tagNameCheck(o))))return!1}else if(!Re[t]){if(!h(He,$(o,Fe,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&Qt(o,"data:")===0&&$e[e])){if(!(Be&&!h(Ut,$(o,Fe,"")))){if(o)return!1}}}}}}return!0},at=function(e){return e!=="annotation-xml"&&mt(e,Ft)},rt=function(e){C(g.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||be(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 A=T==="value"?D:en(D);if(o.attrName=j,o.attrValue=A,o.keepAttr=!0,o.forceKeepAttr=void 0,C(g.uponSanitizeAttribute,e,o),A=o.attrValue,je&&(j==="id"||j==="name")&&(se(T,e),A=Ht+A),ge&&h(/((--!?|])>)|<\/(style|title)/i,A)){se(T,e);continue}if(o.forceKeepAttr||(se(T,e),!o.keepAttr))continue;if(!Ye&&h(/\/>/i,A)){se(T,e);continue}P&&le([pe,de,Te],lt=>{A=$(A,lt," ")});const st=p(e.nodeName);if(it(st,j,A)){if(_&&typeof Q=="object"&&typeof Q.getAttributeType=="function"&&!O)switch(Q.getAttributeType(st,j)){case"TrustedHTML":{A=_.createHTML(A);break}case"TrustedScriptURL":{A=_.createScriptURL(A);break}}try{O?e.setAttributeNS(O,T,A):e.setAttribute(T,A),be(e)?N(e):ut(n.removed)}catch{}}}C(g.afterSanitizeAttributes,e,null)},jt=function i(e){let t=null;const o=tt(e);for(C(g.beforeSanitizeShadowDOM,e,null);t=o.nextNode();)C(g.uponSanitizeShadowNode,t,null),ot(t),rt(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(Oe=!i,Oe&&(i="<!-->"),typeof i!="string"&&!nt(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(Ae||ye(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 ue)t=et("<!---->"),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 _&&ne?_.createHTML(i):i;if(t=et(i),!t)return k?null:ne?W:""}t&&he&&N(t.firstChild);const T=tt(Y?i:t);for(;c=T.nextNode();)ot(c),rt(c),c.content instanceof L&&jt(c.content);if(Y)return i;if(k){if(te)for(E=wt.call(t.ownerDocument);t.firstChild;)E.appendChild(t.firstChild);else E=t;return(d.shadowroot||d.shadowrootmode)&&(E=Pt.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&&h(Rt,t.ownerDocument.doctype.name)&&(O="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
2
|
-
`+O),P&&le([pe,de,Te],D=>{O=$(O,D," ")}),_&&ne?_.createHTML(O):O},n.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ye(i),Ae=!0},n.clearConfig=function(){H=null,Ae=!1},n.isValidAttribute=function(i,e,t){H||ye({});const o=p(i),c=p(e);return it(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 ut(g[i])},n.removeHooks=function(i){g[i]=[]},n.removeAllHooks=function(){g=gt()},n}var ve=Ot();const ke="data-temp-href-target";ve.addHook("beforeSanitizeAttributes",function(a){a instanceof HTMLElement&&a.hasAttribute("target")&&a.getAttribute("target")==="_blank"&&a.setAttribute(ke,"_blank")});ve.addHook("afterSanitizeAttributes",function(a){a instanceof HTMLElement&&a.hasAttribute(ke)&&(a.setAttribute("target","_blank"),a.setAttribute("rel","noopener noreferrer"),a.removeAttribute(ke))});const we=a=>{const n={USE_PROFILES:{html:!0},FORCE_BODY:!0};return ve.sanitize(a,n)};function En({element:a}){const{body:n}=a,[l,r]=J.useState(we(n)),f=J.useRef(null);return J.useEffect(()=>{we(n)!==l&&r(we(n))},[n]),J.useEffect(()=>{var L,I;((L=f.current)==null?void 0:L.clientHeight)===0&&((I=f.current.parentElement)==null?void 0:I.childElementCount)===1&&f.current.parentElement.classList.add("stHtml-empty")}),ct(Vt,{children:l&&ct("div",{className:"stHtml","data-testid":"stHtml",ref:f,dangerouslySetInnerHTML:{__html:l}})})}const gn=J.memo(En);export{gn as default};
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|