streamlit-nightly 1.27.3.dev20231008__py2.py3-none-any.whl → 1.27.3.dev20231011__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- streamlit/elements/spinner.py +4 -3
- streamlit/proto/Spinner_pb2.py +2 -2
- streamlit/runtime/caching/cache_utils.py +1 -1
- streamlit/runtime/legacy_caching/caching.py +1 -1
- streamlit/runtime/state/session_state.py +0 -1
- streamlit/static/asset-manifest.json +4 -4
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/436.ebaed388.chunk.js +1 -0
- streamlit/static/static/js/853.5c15b6e3.chunk.js +1 -0
- streamlit/static/static/js/main.6095c08b.js +2 -0
- streamlit/testing/v1/app_test.py +20 -0
- streamlit/testing/v1/element_tree.py +143 -11
- {streamlit_nightly-1.27.3.dev20231008.dist-info → streamlit_nightly-1.27.3.dev20231011.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.27.3.dev20231008.dist-info → streamlit_nightly-1.27.3.dev20231011.dist-info}/RECORD +19 -19
- streamlit/static/static/js/436.9469dfd8.chunk.js +0 -1
- streamlit/static/static/js/853.ba1b67aa.chunk.js +0 -1
- streamlit/static/static/js/main.95502c41.js +0 -2
- /streamlit/static/static/js/{main.95502c41.js.LICENSE.txt → main.6095c08b.js.LICENSE.txt} +0 -0
- {streamlit_nightly-1.27.3.dev20231008.data → streamlit_nightly-1.27.3.dev20231011.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.27.3.dev20231008.dist-info → streamlit_nightly-1.27.3.dev20231011.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.27.3.dev20231008.dist-info → streamlit_nightly-1.27.3.dev20231011.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.27.3.dev20231008.dist-info → streamlit_nightly-1.27.3.dev20231011.dist-info}/top_level.txt +0 -0
streamlit/testing/v1/app_test.py
CHANGED
@@ -36,9 +36,12 @@ from streamlit.testing.v1.element_tree import (
|
|
36
36
|
Block,
|
37
37
|
Button,
|
38
38
|
Caption,
|
39
|
+
ChatInput,
|
40
|
+
ChatMessage,
|
39
41
|
Checkbox,
|
40
42
|
Code,
|
41
43
|
ColorPicker,
|
44
|
+
Column,
|
42
45
|
Dataframe,
|
43
46
|
DateInput,
|
44
47
|
Divider,
|
@@ -56,6 +59,7 @@ from streamlit.testing.v1.element_tree import (
|
|
56
59
|
SelectSlider,
|
57
60
|
Slider,
|
58
61
|
Subheader,
|
62
|
+
Tab,
|
59
63
|
Text,
|
60
64
|
TextArea,
|
61
65
|
TextInput,
|
@@ -229,6 +233,14 @@ class AppTest:
|
|
229
233
|
def caption(self) -> ElementList[Caption]:
|
230
234
|
return self._tree.caption
|
231
235
|
|
236
|
+
@property
|
237
|
+
def chat_input(self) -> WidgetList[ChatInput]:
|
238
|
+
return self._tree.chat_input
|
239
|
+
|
240
|
+
@property
|
241
|
+
def chat_message(self) -> Sequence[ChatMessage]:
|
242
|
+
return self._tree.chat_message
|
243
|
+
|
232
244
|
@property
|
233
245
|
def checkbox(self) -> WidgetList[Checkbox]:
|
234
246
|
return self._tree.checkbox
|
@@ -241,6 +253,10 @@ class AppTest:
|
|
241
253
|
def color_picker(self) -> WidgetList[ColorPicker]:
|
242
254
|
return self._tree.color_picker
|
243
255
|
|
256
|
+
@property
|
257
|
+
def columns(self) -> Sequence[Column]:
|
258
|
+
return self._tree.columns
|
259
|
+
|
244
260
|
@property
|
245
261
|
def dataframe(self) -> ElementList[Dataframe]:
|
246
262
|
return self._tree.dataframe
|
@@ -297,6 +313,10 @@ class AppTest:
|
|
297
313
|
def subheader(self) -> ElementList[Subheader]:
|
298
314
|
return self._tree.subheader
|
299
315
|
|
316
|
+
@property
|
317
|
+
def tabs(self) -> Sequence[Tab]:
|
318
|
+
return self._tree.tabs
|
319
|
+
|
300
320
|
@property
|
301
321
|
def text(self) -> ElementList[Text]:
|
302
322
|
return self._tree.text
|
@@ -49,6 +49,7 @@ from streamlit.elements.widgets.time_widgets import (
|
|
49
49
|
from streamlit.proto.Arrow_pb2 import Arrow as ArrowProto
|
50
50
|
from streamlit.proto.Block_pb2 import Block as BlockProto
|
51
51
|
from streamlit.proto.Button_pb2 import Button as ButtonProto
|
52
|
+
from streamlit.proto.ChatInput_pb2 import ChatInput as ChatInputProto
|
52
53
|
from streamlit.proto.Checkbox_pb2 import Checkbox as CheckboxProto
|
53
54
|
from streamlit.proto.Code_pb2 import Code as CodeProto
|
54
55
|
from streamlit.proto.ColorPicker_pb2 import ColorPicker as ColorPickerProto
|
@@ -258,6 +259,38 @@ class Button(Widget):
|
|
258
259
|
return self.set_value(True)
|
259
260
|
|
260
261
|
|
262
|
+
@dataclass(repr=False)
|
263
|
+
class ChatInput(Widget):
|
264
|
+
_value: str | None
|
265
|
+
proto: ChatInputProto = field(repr=False)
|
266
|
+
placeholder: str
|
267
|
+
|
268
|
+
def __init__(self, proto: ChatInputProto, root: ElementTree):
|
269
|
+
super().__init__(proto, root)
|
270
|
+
self.type = "chat_input"
|
271
|
+
|
272
|
+
def set_value(self, v: str | None) -> ChatInput:
|
273
|
+
self._value = v
|
274
|
+
return self
|
275
|
+
|
276
|
+
@property
|
277
|
+
def _widget_state(self) -> WidgetState:
|
278
|
+
ws = WidgetState()
|
279
|
+
ws.id = self.id
|
280
|
+
if self._value is not None:
|
281
|
+
ws.string_trigger_value.data = self._value
|
282
|
+
return ws
|
283
|
+
|
284
|
+
@property
|
285
|
+
def value(self) -> str | None:
|
286
|
+
if self._value:
|
287
|
+
return self._value
|
288
|
+
else:
|
289
|
+
state = self.root.session_state
|
290
|
+
assert state
|
291
|
+
return state[self.id] # type: ignore
|
292
|
+
|
293
|
+
|
261
294
|
@dataclass(repr=False)
|
262
295
|
class Checkbox(Widget):
|
263
296
|
_value: bool | None
|
@@ -998,14 +1031,13 @@ class TimeInput(Widget):
|
|
998
1031
|
class Block:
|
999
1032
|
type: str
|
1000
1033
|
children: dict[int, Node]
|
1001
|
-
proto:
|
1034
|
+
proto: Any = field(repr=False)
|
1002
1035
|
root: ElementTree = field(repr=False)
|
1003
1036
|
|
1004
1037
|
def __init__(
|
1005
1038
|
self,
|
1039
|
+
proto: BlockProto | None,
|
1006
1040
|
root: ElementTree,
|
1007
|
-
proto: BlockProto | None = None,
|
1008
|
-
type: str | None = None,
|
1009
1041
|
):
|
1010
1042
|
self.children = {}
|
1011
1043
|
self.proto = proto
|
@@ -1014,10 +1046,8 @@ class Block:
|
|
1014
1046
|
# TODO does not work for `st.container` which has no block proto
|
1015
1047
|
assert ty is not None
|
1016
1048
|
self.type = ty
|
1017
|
-
elif type is not None:
|
1018
|
-
self.type = type
|
1019
1049
|
else:
|
1020
|
-
self.type = ""
|
1050
|
+
self.type = "unknown"
|
1021
1051
|
self.root = root
|
1022
1052
|
|
1023
1053
|
def __len__(self) -> int:
|
@@ -1046,6 +1076,14 @@ class Block:
|
|
1046
1076
|
def caption(self) -> ElementList[Caption]:
|
1047
1077
|
return ElementList(self.get("caption")) # type: ignore
|
1048
1078
|
|
1079
|
+
@property
|
1080
|
+
def chat_input(self) -> WidgetList[ChatInput]:
|
1081
|
+
return WidgetList(self.get("chat_input")) # type: ignore
|
1082
|
+
|
1083
|
+
@property
|
1084
|
+
def chat_message(self) -> Sequence[ChatMessage]:
|
1085
|
+
return self.get("chat_message") # type: ignore
|
1086
|
+
|
1049
1087
|
@property
|
1050
1088
|
def checkbox(self) -> WidgetList[Checkbox]:
|
1051
1089
|
return WidgetList(self.get("checkbox")) # type: ignore
|
@@ -1058,6 +1096,10 @@ class Block:
|
|
1058
1096
|
def color_picker(self) -> WidgetList[ColorPicker]:
|
1059
1097
|
return WidgetList(self.get("color_picker")) # type: ignore
|
1060
1098
|
|
1099
|
+
@property
|
1100
|
+
def columns(self) -> Sequence[Column]:
|
1101
|
+
return self.get("column") # type: ignore
|
1102
|
+
|
1061
1103
|
@property
|
1062
1104
|
def dataframe(self) -> ElementList[Dataframe]:
|
1063
1105
|
return ElementList(self.get("arrow_data_frame")) # type: ignore
|
@@ -1114,6 +1156,10 @@ class Block:
|
|
1114
1156
|
def subheader(self) -> ElementList[Subheader]:
|
1115
1157
|
return ElementList(self.get("subheader")) # type: ignore
|
1116
1158
|
|
1159
|
+
@property
|
1160
|
+
def tabs(self) -> Sequence[Tab]:
|
1161
|
+
return self.get("tab") # type: ignore
|
1162
|
+
|
1117
1163
|
@property
|
1118
1164
|
def text(self) -> ElementList[Text]:
|
1119
1165
|
return ElementList(self.get("text")) # type: ignore
|
@@ -1152,6 +1198,82 @@ class Block:
|
|
1152
1198
|
return util.repr_(self)
|
1153
1199
|
|
1154
1200
|
|
1201
|
+
@dataclass(repr=False)
|
1202
|
+
class SpecialBlock(Block):
|
1203
|
+
def __init__(
|
1204
|
+
self,
|
1205
|
+
proto: BlockProto | None,
|
1206
|
+
root: ElementTree,
|
1207
|
+
type: str | None = None,
|
1208
|
+
):
|
1209
|
+
self.children = {}
|
1210
|
+
self.proto = proto
|
1211
|
+
if type:
|
1212
|
+
self.type = type
|
1213
|
+
elif proto and proto.WhichOneof("type"):
|
1214
|
+
ty = proto.WhichOneof("type")
|
1215
|
+
assert ty is not None
|
1216
|
+
self.type = ty
|
1217
|
+
else:
|
1218
|
+
self.type = "unknown"
|
1219
|
+
self.root = root
|
1220
|
+
|
1221
|
+
|
1222
|
+
@dataclass(repr=False)
|
1223
|
+
class ChatMessage(Block):
|
1224
|
+
proto: BlockProto.ChatMessage = field(repr=False)
|
1225
|
+
name: str
|
1226
|
+
avatar: str
|
1227
|
+
|
1228
|
+
def __init__(
|
1229
|
+
self,
|
1230
|
+
proto: BlockProto.ChatMessage,
|
1231
|
+
root: ElementTree,
|
1232
|
+
):
|
1233
|
+
self.children = {}
|
1234
|
+
self.proto = proto
|
1235
|
+
self.root = root
|
1236
|
+
self.type = "chat_message"
|
1237
|
+
self.name = proto.name
|
1238
|
+
self.avatar = proto.avatar
|
1239
|
+
|
1240
|
+
|
1241
|
+
@dataclass(repr=False)
|
1242
|
+
class Column(Block):
|
1243
|
+
proto: BlockProto.Column = field(repr=False)
|
1244
|
+
weight: float
|
1245
|
+
gap: str
|
1246
|
+
|
1247
|
+
def __init__(
|
1248
|
+
self,
|
1249
|
+
proto: BlockProto.Column,
|
1250
|
+
root: ElementTree,
|
1251
|
+
):
|
1252
|
+
self.children = {}
|
1253
|
+
self.proto = proto
|
1254
|
+
self.root = root
|
1255
|
+
self.type = "column"
|
1256
|
+
self.weight = proto.weight
|
1257
|
+
self.gap = proto.gap
|
1258
|
+
|
1259
|
+
|
1260
|
+
@dataclass(repr=False)
|
1261
|
+
class Tab(Block):
|
1262
|
+
proto: BlockProto.Tab = field(repr=False)
|
1263
|
+
label: str
|
1264
|
+
|
1265
|
+
def __init__(
|
1266
|
+
self,
|
1267
|
+
proto: BlockProto.Tab,
|
1268
|
+
root: ElementTree,
|
1269
|
+
):
|
1270
|
+
self.children = {}
|
1271
|
+
self.proto = proto
|
1272
|
+
self.root = root
|
1273
|
+
self.type = "tab"
|
1274
|
+
self.label = proto.label
|
1275
|
+
|
1276
|
+
|
1155
1277
|
Node: TypeAlias = Union[Element, Block]
|
1156
1278
|
|
1157
1279
|
|
@@ -1190,7 +1312,6 @@ class ElementTree(Block):
|
|
1190
1312
|
_runner: AppTest | None = field(repr=False, default=None)
|
1191
1313
|
|
1192
1314
|
def __init__(self):
|
1193
|
-
# Expect script_path and session_state to be filled in afterwards
|
1194
1315
|
self.children = {}
|
1195
1316
|
self.root = self
|
1196
1317
|
self.type = "root"
|
@@ -1245,8 +1366,8 @@ def parse_tree_from_messages(messages: list[ForwardMsg]) -> ElementTree:
|
|
1245
1366
|
"""
|
1246
1367
|
root = ElementTree()
|
1247
1368
|
root.children = {
|
1248
|
-
0:
|
1249
|
-
1:
|
1369
|
+
0: SpecialBlock(type="main", root=root, proto=None),
|
1370
|
+
1: SpecialBlock(type="sidebar", root=root, proto=None),
|
1250
1371
|
}
|
1251
1372
|
|
1252
1373
|
for msg in messages:
|
@@ -1262,6 +1383,8 @@ def parse_tree_from_messages(messages: list[ForwardMsg]) -> ElementTree:
|
|
1262
1383
|
new_node = Dataframe(elt.arrow_data_frame, root=root)
|
1263
1384
|
elif ty == "button":
|
1264
1385
|
new_node = Button(elt.button, root=root)
|
1386
|
+
elif ty == "chat_input":
|
1387
|
+
new_node = ChatInput(elt.chat_input, root=root)
|
1265
1388
|
elif ty == "checkbox":
|
1266
1389
|
new_node = Checkbox(elt.checkbox, root=root)
|
1267
1390
|
elif ty == "code":
|
@@ -1320,7 +1443,16 @@ def parse_tree_from_messages(messages: list[ForwardMsg]) -> ElementTree:
|
|
1320
1443
|
else:
|
1321
1444
|
new_node = Element(elt, root=root)
|
1322
1445
|
elif delta.WhichOneof("type") == "add_block":
|
1323
|
-
|
1446
|
+
block = delta.add_block
|
1447
|
+
bty = block.WhichOneof("type")
|
1448
|
+
if bty == "chat_message":
|
1449
|
+
new_node = ChatMessage(block.chat_message, root=root)
|
1450
|
+
elif bty == "column":
|
1451
|
+
new_node = Column(block.column, root=root)
|
1452
|
+
elif bty == "tab":
|
1453
|
+
new_node = Tab(block.tab, root=root)
|
1454
|
+
else:
|
1455
|
+
new_node = Block(proto=block, root=root)
|
1324
1456
|
else:
|
1325
1457
|
# add_rows
|
1326
1458
|
continue
|
@@ -1331,7 +1463,7 @@ def parse_tree_from_messages(messages: list[ForwardMsg]) -> ElementTree:
|
|
1331
1463
|
children = current_node.children
|
1332
1464
|
child = children.get(idx)
|
1333
1465
|
if child is None:
|
1334
|
-
child = Block(root=root)
|
1466
|
+
child = Block(proto=None, root=root)
|
1335
1467
|
children[idx] = child
|
1336
1468
|
assert isinstance(child, Block)
|
1337
1469
|
current_node = child
|
@@ -72,7 +72,7 @@ streamlit/elements/plotly_chart.py,sha256=OxzKdlLpM5URPDy7RMpRvLobwPX9VWhUEyfKF3
|
|
72
72
|
streamlit/elements/progress.py,sha256=xTfe-a-Z-FOVCWyFbGDflxgj_HcTLOcJgbldrbjZzwc,4753
|
73
73
|
streamlit/elements/pyplot.py,sha256=MemqmlKfuzASt7BV7RuvX9rD9Xftosmde42w9M6hjGo,6573
|
74
74
|
streamlit/elements/snow.py,sha256=HM26jOst6tTMVkVhHD_KiED34o_mT6yyj8hBW923hwI,1402
|
75
|
-
streamlit/elements/spinner.py,sha256=
|
75
|
+
streamlit/elements/spinner.py,sha256=cgFaVUn3lZoMvfPXvm7HmFdATqL6rGMjeGjgjqjkY9o,3869
|
76
76
|
streamlit/elements/text.py,sha256=2lKwoOX07RoCxxf6tytLgyowCmyiSy-R1Y1N7aAlqd4,1834
|
77
77
|
streamlit/elements/toast.py,sha256=q4hlsydzScM99YOONNyHMRo4hlu9WC7qTyzl2mi_U_M,3537
|
78
78
|
streamlit/elements/utils.py,sha256=k01Ua7NRZl459sldeiwdBaPyeO3puLHiBF7pLgpKpmk,3583
|
@@ -169,7 +169,7 @@ streamlit/proto/SessionEvent_pb2.py,sha256=j-vjPVjdeA-X0qAO6h6aYkmyM5bgUQKpbzgNm
|
|
169
169
|
streamlit/proto/SessionStatus_pb2.py,sha256=LPFwivw6Q03qqqOry0r2KlJAVOFtPKIYc_Skf2715KM,1065
|
170
170
|
streamlit/proto/Slider_pb2.py,sha256=BWOU4U2_5UzfsDKI2EfgqRM9tnPMcuM6zgEmuY2IJM0,2205
|
171
171
|
streamlit/proto/Snow_pb2.py,sha256=RQVd3O-x0uzoyBtdxH_m8RJG-NEXTZodEcsIA02X6VI,962
|
172
|
-
streamlit/proto/Spinner_pb2.py,sha256=
|
172
|
+
streamlit/proto/Spinner_pb2.py,sha256=z99PJHTmuQdkzPYd4QT2MSHuImIlH9R11uP-twhPl34,1019
|
173
173
|
streamlit/proto/TextArea_pb2.py,sha256=hJKnI7tgOH8xKLpbSh0AG9zpx16FRGld5dsv7oZ_rB8,1671
|
174
174
|
streamlit/proto/TextInput_pb2.py,sha256=nvlL2pa83PNPkNPYUZQqThVhGah7gzxJw58CZmdAKL8,1906
|
175
175
|
streamlit/proto/Text_pb2.py,sha256=fHuN6QxgiDD3nRC8_Za0icnz_ISf03jl9ltkpXvRHq8,992
|
@@ -205,7 +205,7 @@ streamlit/runtime/caching/cache_data_api.py,sha256=5HXURuU2C_N0SMEaBkvV9EwPZZWKj
|
|
205
205
|
streamlit/runtime/caching/cache_errors.py,sha256=eCIV5QzsNc1FGxf2QOXIViuR-P479CY9EcwvocP80Vs,6346
|
206
206
|
streamlit/runtime/caching/cache_resource_api.py,sha256=nbf4YtD4G4WVj9XxC5zxhepCWfv-TP8g6HIMv_o3Vzs,21265
|
207
207
|
streamlit/runtime/caching/cache_type.py,sha256=Kd3dzZqL8W-wttI2Xd5YnnayrFvLHRckNJHliMoRJIo,1090
|
208
|
-
streamlit/runtime/caching/cache_utils.py,sha256=
|
208
|
+
streamlit/runtime/caching/cache_utils.py,sha256=JdOxuIGCLrzTvlh_SH9LoSFoAnf9k-SrE-yAvzlHCTM,17719
|
209
209
|
streamlit/runtime/caching/cached_message_replay.py,sha256=85nlurLfnNkRrabpoKYeWl6Ki4o6qMInv7J-lrtlzmA,18475
|
210
210
|
streamlit/runtime/caching/hashing.py,sha256=RguzgM-ovqWZUlegOcRINKu01wCYSxp_5u2y1HWSLw0,18887
|
211
211
|
streamlit/runtime/caching/storage/__init__.py,sha256=9iCatFQtafC0a3jjQNSY38vA78ipISAcCtmMQtBNrXs,1217
|
@@ -214,7 +214,7 @@ streamlit/runtime/caching/storage/dummy_cache_storage.py,sha256=qTTuZN0bJVeYWHXm
|
|
214
214
|
streamlit/runtime/caching/storage/in_memory_cache_storage_wrapper.py,sha256=N_j0TZhmCmCc3tvHqvc-EG0Xka7j9sIsz1FOeEfuQzg,5384
|
215
215
|
streamlit/runtime/caching/storage/local_disk_cache_storage.py,sha256=Hhlt9ZLe3CjiJFM1xEHGQRMylYmMomVrZzZO1HpPNPI,9269
|
216
216
|
streamlit/runtime/legacy_caching/__init__.py,sha256=g3g_PQF1hDjrZOJ6PLqqL9S2KbkghghUEe9v1vbpIcY,987
|
217
|
-
streamlit/runtime/legacy_caching/caching.py,sha256=
|
217
|
+
streamlit/runtime/legacy_caching/caching.py,sha256=2Sjt-44ld5lZR56uzCWmX9TNXZ6hWwFCrCK4xXVAwKQ,30565
|
218
218
|
streamlit/runtime/legacy_caching/hashing.py,sha256=p_-Y3I3F9M1ndlrryRZwNcVlquj217EKRHLVYGnn-GY,35106
|
219
219
|
streamlit/runtime/scriptrunner/__init__.py,sha256=GwjWoiatGOEfqJuE4KnYwVSa8tRoo2elduznhVyuuo0,1439
|
220
220
|
streamlit/runtime/scriptrunner/magic.py,sha256=vapCpKlQ4oPY0v_DZQ6aZ4LFxZZvpIi8EvaTjlWIGFY,8931
|
@@ -226,12 +226,12 @@ streamlit/runtime/scriptrunner/script_runner.py,sha256=wkjf9zOnTJV2Nk-qvwPGk6oTg
|
|
226
226
|
streamlit/runtime/state/__init__.py,sha256=l0f6Pepna6AzX1nKdqHhASilMF2pTLNKechjJVtSlGg,1733
|
227
227
|
streamlit/runtime/state/common.py,sha256=fgzKWoFKpcUgZ2MiBjRXVHfHUWO0Cj9QsxDuSw-GYu8,7514
|
228
228
|
streamlit/runtime/state/safe_session_state.py,sha256=5zo7m75F4IHCxdjKBBCr5LSx9BPH5W70z8pmaJDZxSw,3865
|
229
|
-
streamlit/runtime/state/session_state.py,sha256=
|
229
|
+
streamlit/runtime/state/session_state.py,sha256=6yktDKlvTT85KZm2sIWMlj7H3F68uF7AQ5_-ctBzvZM,25842
|
230
230
|
streamlit/runtime/state/session_state_proxy.py,sha256=5X9gvPM6pjOiv1QYzey10uDBkg7EWWgSWiDoZQrP56Y,5112
|
231
231
|
streamlit/runtime/state/widgets.py,sha256=TY39mbObWI-mlNPc2Z-7AVcz1rtL5oVRfpPYGuhe6HQ,10993
|
232
|
-
streamlit/static/asset-manifest.json,sha256=
|
232
|
+
streamlit/static/asset-manifest.json,sha256=5RBYrA3xKPpTpUujVpjWThMSdbbX8otDsf4DrbrCQKA,13657
|
233
233
|
streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
|
234
|
-
streamlit/static/index.html,sha256
|
234
|
+
streamlit/static/index.html,sha256=-NUnPsTy3Z19jICkA3Fmo9MAJ4Y7nX-_WS6E4JQBeBw,892
|
235
235
|
streamlit/static/static/css/43.b42f5471.chunk.css,sha256=GPeJpbK2IZNaAlFMHBoOt6JkDymmCg0LqZa6j39bS5c,2995
|
236
236
|
streamlit/static/static/css/436.46c3674e.chunk.css,sha256=YlVhmRqh3Z6a7GDxZAX94apjncEa2AmUMxJF12XCNwc,11503
|
237
237
|
streamlit/static/static/css/898.4bdc00a1.chunk.css,sha256=8rnLcYt97b_l9ZuoKxrVCyNPoB5AWlAcRULKhGIralg,33941
|
@@ -263,7 +263,7 @@ streamlit/static/static/js/387.8fac2e78.chunk.js,sha256=NW-QVJn1n3pQy-cIrsL489dM
|
|
263
263
|
streamlit/static/static/js/387.8fac2e78.chunk.js.LICENSE.txt,sha256=tDhUc1uKAxm9xI1Hmk3VIMtA2vpN16iFFomXeLMKUQc,2087
|
264
264
|
streamlit/static/static/js/427.d245d548.chunk.js,sha256=i9UEaUJhNWAqZ4YPjwFcVRrQFKA1S9x11DwrvI8NZwI,2703
|
265
265
|
streamlit/static/static/js/43.2e2ebbc8.chunk.js,sha256=6mShcYTlvim7pKgj878zlvDF0tbL9vUEleLUH264ijM,9613
|
266
|
-
streamlit/static/static/js/436.
|
266
|
+
streamlit/static/static/js/436.ebaed388.chunk.js,sha256=MYu9o6sP0fw7QQmmIEiSavLDP_dokCFmw6GSivBFDnw,41284
|
267
267
|
streamlit/static/static/js/451.7f675e0a.chunk.js,sha256=soREWw9WnyK8PZiXS3nBOYyXswwQOBM-dRZdjpqMWqI,5584
|
268
268
|
streamlit/static/static/js/469.1b34ceb4.chunk.js,sha256=KWCeq79CqIZDJ1-kUyluXXYgFsoCbpSQwAzqnImaVVk,3461
|
269
269
|
streamlit/static/static/js/473.124e1265.chunk.js,sha256=NYVi5gaavMq1n-jkmNiM6FdvP-2V1es6w85cbiTKzsw,21449
|
@@ -285,15 +285,15 @@ streamlit/static/static/js/74.94ccc32a.chunk.js,sha256=M-sVBDGRwnxfKraCKZT6RaW7E
|
|
285
285
|
streamlit/static/static/js/791.dc2aaf85.chunk.js,sha256=LkSPvV0IhPRvO3NcPXbj5k-ERkWTEOfdIVDc3q9DHsQ,107686
|
286
286
|
streamlit/static/static/js/792.196f379c.chunk.js,sha256=AvVIkEwyy7T8cmR77kdebN0QvGeyooILJyZhFHeKRyQ,761
|
287
287
|
streamlit/static/static/js/805.52f4db9d.chunk.js,sha256=MnEQ8opiXRxzpStwuXmovV5OE9f0hVx5siM-l8zQmfs,1233
|
288
|
-
streamlit/static/static/js/853.
|
288
|
+
streamlit/static/static/js/853.5c15b6e3.chunk.js,sha256=DFBh7_7CebUTkD1sXqDEokGW0hzaTvwCIOLFBMSbMmM,1407
|
289
289
|
streamlit/static/static/js/898.3c278697.chunk.js,sha256=vqJ3vv-Z5VFJq09iwHAr8W-ydw1RU5GlG5vyIWgMoMU,2279201
|
290
290
|
streamlit/static/static/js/898.3c278697.chunk.js.LICENSE.txt,sha256=O22-kkUPTim4cdviDnCxoDTivLeMJRO2dCAwSF-4LTY,648
|
291
291
|
streamlit/static/static/js/956.587af66e.chunk.js,sha256=IColhKBahwLXZ5P15_wGe5L2kQjkNPVwp5-cTUAx8no,9567
|
292
292
|
streamlit/static/static/js/988.e5aeddbe.chunk.js,sha256=p0mCxOY1gjR9fn-nBLSIKkzOdHU4N66khII16pCfbx4,1005932
|
293
293
|
streamlit/static/static/js/988.e5aeddbe.chunk.js.LICENSE.txt,sha256=1QHhzkSjNF6H69M5pw5HrN7wcZQ3zGXwvfwB7fuBNoc,105
|
294
294
|
streamlit/static/static/js/998.bf13b79a.chunk.js,sha256=O5q8AvOcQTLYLnW2M33DUSoYkAsUwTjCP5fzTcN_hdA,13771
|
295
|
-
streamlit/static/static/js/main.
|
296
|
-
streamlit/static/static/js/main.
|
295
|
+
streamlit/static/static/js/main.6095c08b.js,sha256=xp78t00JXG6tVdei8mA4gDrTco4eSVjnXXXCFtmE_Xs,4573920
|
296
|
+
streamlit/static/static/js/main.6095c08b.js.LICENSE.txt,sha256=CP42SaDUrAWOblXH8c4SRoJyLMCneFCRYWTGhb73xx8,3743
|
297
297
|
streamlit/static/static/media/KaTeX_AMS-Regular.73ea273a72f4aca30ca5.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
|
298
298
|
streamlit/static/static/media/KaTeX_AMS-Regular.853be92419a6c3766b9a.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
|
299
299
|
streamlit/static/static/media/KaTeX_AMS-Regular.d562e886c52f12660a41.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
|
@@ -389,8 +389,8 @@ streamlit/testing/element_tree.py,sha256=SfrV9rb_WEbo1F7YHtSZbN4lQ867J4ZnuY-suei
|
|
389
389
|
streamlit/testing/local_script_runner.py,sha256=ypkyUBfk-GtpjozHL4JIbt2vcHpHNhP1QMTu34_3OJ0,5891
|
390
390
|
streamlit/testing/script_interactions.py,sha256=7hcG2C-QQxrubOxIDhyLOUVjuUDRvWQ3DNRzU17VZdY,4408
|
391
391
|
streamlit/testing/v1/__init__.py,sha256=Nf5yKqQNuoaTlYwyjSvxGn0JBi3xdUQCSLhdHGHjkAg,673
|
392
|
-
streamlit/testing/v1/app_test.py,sha256=
|
393
|
-
streamlit/testing/v1/element_tree.py,sha256=
|
392
|
+
streamlit/testing/v1/app_test.py,sha256=Ck9nnjT8GdrD5yypTjwG7HPya_HH8f8axE2v08Nec-o,10531
|
393
|
+
streamlit/testing/v1/element_tree.py,sha256=xUrbEgoDhtA_E2uLQ1D1xdN5TGBBgs0c4e5dLwdRQ8I,43541
|
394
394
|
streamlit/testing/v1/local_script_runner.py,sha256=vQ71XRkkufTMWt7BSUGTzL_lxTtf3qKDF0w_alYgBvo,5249
|
395
395
|
streamlit/testing/v1/util.py,sha256=etJcNAf0p6PAxeXRfWe7r5OH7XH2nxZ16qbWQf_EEyI,1710
|
396
396
|
streamlit/vendor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -419,9 +419,9 @@ streamlit/web/server/server_util.py,sha256=XJ9ngvipySXQqncV30nAn_QVnjYXvvl9j5aMq
|
|
419
419
|
streamlit/web/server/stats_request_handler.py,sha256=rJelIrHJAz4EGctKLnixEbEVetrXcsDVYp7la033tGE,3405
|
420
420
|
streamlit/web/server/upload_file_request_handler.py,sha256=VJObJ8L2rHbHnAov0VhRc2_gKThmE82BJkRsTZdXyiA,5029
|
421
421
|
streamlit/web/server/websocket_headers.py,sha256=oTieGEZ16m1cmZMuus_fwgTIWF9LUFvCtmls2_GivgA,1867
|
422
|
-
streamlit_nightly-1.27.3.
|
423
|
-
streamlit_nightly-1.27.3.
|
424
|
-
streamlit_nightly-1.27.3.
|
425
|
-
streamlit_nightly-1.27.3.
|
426
|
-
streamlit_nightly-1.27.3.
|
427
|
-
streamlit_nightly-1.27.3.
|
422
|
+
streamlit_nightly-1.27.3.dev20231011.data/scripts/streamlit.cmd,sha256=bIvl64RLCLmXTMo-YWqncINDWHlgQx_RgPvL41gYGh4,671
|
423
|
+
streamlit_nightly-1.27.3.dev20231011.dist-info/METADATA,sha256=eCJ33Eg4lvy542fmi8AVxwaLOGxWRxK8Kfw0BtgluhE,8129
|
424
|
+
streamlit_nightly-1.27.3.dev20231011.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
|
425
|
+
streamlit_nightly-1.27.3.dev20231011.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
|
426
|
+
streamlit_nightly-1.27.3.dev20231011.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
|
427
|
+
streamlit_nightly-1.27.3.dev20231011.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[436],{32818:function(e,t,n){n.r(t),n.d(t,{default:function(){return et}});var i=n(50189),r=n(11026),a=n(66845),o=n(35396),l=n(17330),d=n(87814),u=n(82673),s=n(16295),c=n(50641),m=n(22951),f=n(91976),v=n(72706),h=n(29724),g=n.n(h),p=n(52347),b=n(53608),y=n.n(b),w=(n(87717),n(55842),["true","t","yes","y","on","1"]),x=["false","f","no","n","off","0"];function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e="\u26a0\ufe0f ".concat(e),{kind:o.p6.Text,readonly:!0,allowOverlay:!0,data:e+(t?"\n\n".concat(t,"\n"):""),displayData:e,isError:!0}}function M(e){return e.hasOwnProperty("isError")&&e.isError}function Z(e){return e.hasOwnProperty("isMissingValue")&&e.isMissingValue}function E(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?{kind:o.p6.Loading,allowOverlay:!1,isMissingValue:!0}:{kind:o.p6.Loading,allowOverlay:!1}}function T(e){return(0,i.Z)((0,i.Z)({id:e.id,title:e.title,hasMenu:!1,themeOverride:e.themeOverride,icon:e.icon},e.isStretched&&{grow:e.isIndex?1:3}),e.width&&{width:e.width})}function N(e,t){return(0,c.le)(e)?t||{}:(0,c.le)(t)?e||{}:(0,v.merge)(e,t)}function k(e){if((0,c.le)(e))return[];if("number"===typeof e||"boolean"===typeof e)return[e];if("string"===typeof e){if(""===e)return[];if(!e.trim().startsWith("[")||!e.trim().endsWith("]"))return e.split(",");try{return JSON.parse(e)}catch(n){return[e]}}try{var t=JSON.parse(JSON.stringify(e,(function(e,t){return"bigint"===typeof t?Number(t):t})));return(0,v.isArray)(t)?t.map((function(e){return["string","number","boolean","null"].includes(typeof e)?e:R(e)})):[R(t)]}catch(n){return[R(e)]}}function R(e){try{try{return(0,v.toString)(e)}catch(t){return JSON.stringify(e,(function(e,t){return"bigint"===typeof t?Number(t):t}))}}catch(t){return"[".concat(typeof e,"]")}}function _(e){if((0,c.le)(e))return null;if("boolean"===typeof e)return e;var t=R(e).toLowerCase().trim();return""===t?null:!!w.includes(t)||!x.includes(t)&&void 0}function S(e){if((0,c.le)(e))return null;if((0,v.isArray)(e))return NaN;if("string"===typeof e){if(0===e.trim().length)return null;try{var t=g().unformat(e.trim());if((0,c.bb)(t))return t}catch(n){}}else if(e instanceof Int32Array)return Number(e[0]);return Number(e)}function O(e,t,n){return Number.isNaN(e)||!Number.isFinite(e)?"":(0,c.le)(t)||""===t?(0===n&&(e=Math.round(e)),g()(e).format((0,c.bb)(n)?"0,0.".concat("0".repeat(n)):"0,0.[0000]")):"percent"===t?new Intl.NumberFormat(void 0,{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}).format(e):["compact","scientific","engineering"].includes(t)?new Intl.NumberFormat(void 0,{notation:t}).format(e):(0,p.sprintf)(t,e)}function I(e,t){return"locale"===t?new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"medium"}).format(e.toDate()):"distance"===t?e.fromNow():"relative"===t?e.calendar():e.format(t)}function D(e){if((0,c.le)(e))return null;if(e instanceof Date)return isNaN(e.getTime())?void 0:e;if("string"===typeof e&&0===e.trim().length)return null;try{var t=Number(e);if(!isNaN(t)){var n=t;t>=Math.pow(10,18)?n=t/Math.pow(1e3,3):t>=Math.pow(10,15)?n=t/Math.pow(1e3,2):t>=Math.pow(10,12)&&(n=t/1e3);var i=y().unix(n).utc();if(i.isValid())return i.toDate()}if("string"===typeof e){var r=y().utc(e);if(r.isValid())return r.toDate();var a=y().utc(e,[y().HTML5_FMT.TIME_MS,y().HTML5_FMT.TIME_SECONDS,y().HTML5_FMT.TIME]);if(a.isValid())return a.toDate()}}catch(o){return}}function H(e){if(e%1===0)return 0;var t=e.toString();return-1!==t.indexOf("e")&&(t=e.toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20})),-1===t.indexOf(".")?0:t.split(".")[1].length}var A=new RegExp(/(\r\n|\n|\r)/gm);function V(e){return-1!==e.indexOf("\n")?e.replace(A," "):e}var z=n(23849),F=n(5834);function L(e){var t={kind:o.p6.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!0,style:e.isIndex?"faded":"normal"};return(0,i.Z)((0,i.Z)({},e),{},{kind:"object",sortMode:"default",isEditable:!1,getCell:function(e){try{var n=(0,c.bb)(e)?R(e):null,r=(0,c.bb)(n)?V(n):"";return(0,i.Z)((0,i.Z)({},t),{},{data:n,displayData:r,isMissingValue:(0,c.le)(e)})}catch(a){return C(R(e),"The value cannot be interpreted as a string. Error: ".concat(a))}},getCellValue:function(e){return void 0===e.data?null:e.data}})}L.isEditableType=!1;var W=L;function j(e){var t=e.columnTypeOptions||{},n=void 0;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(l){n="Invalid validate regex: ".concat(t.validate,".\nError: ").concat(l)}var r={kind:o.p6.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"},a=function(i){if((0,c.le)(i))return!e.isRequired;var r=R(i),a=!1;return t.max_chars&&r.length>t.max_chars&&(r=r.slice(0,t.max_chars),a=!0),!(n instanceof RegExp&&!1===n.test(r))&&(!a||r)};return(0,i.Z)((0,i.Z)({},e),{},{kind:"text",sortMode:"default",validateInput:a,getCell:function(e,t){if("string"===typeof n)return C(R(e),n);if(t){var o=a(e);if(!1===o)return C(R(e),"Invalid input.");"string"===typeof o&&(e=o)}try{var d=(0,c.bb)(e)?R(e):null,u=(0,c.bb)(d)?V(d):"";return(0,i.Z)((0,i.Z)({},r),{},{isMissingValue:(0,c.le)(d),data:d,displayData:u})}catch(l){return C("Incompatible value","The value cannot be interpreted as string. Error: ".concat(l))}},getCellValue:function(e){return void 0===e.data?null:e.data}})}j.isEditableType=!0;var Y=j;function B(e,t){return e=t.startsWith("+")||t.startsWith("-")?e.utcOffset(t,!1):e.tz(t)}function P(e,t,n,r,a,l,d){var u,s=N({format:n,step:r,timezone:d},t.columnTypeOptions),m=void 0;if((0,c.bb)(s.timezone))try{var f;m=(null===(f=B(y()(),s.timezone))||void 0===f?void 0:f.utcOffset())||void 0}catch(b){}var v=void 0;(0,c.bb)(s.min_value)&&(v=D(s.min_value)||void 0);var h=void 0;(0,c.bb)(s.max_value)&&(h=D(s.max_value)||void 0);var g={kind:o.p6.Custom,allowOverlay:!0,copyData:"",readonly:!t.isEditable,contentAlign:t.contentAlignment,style:t.isIndex?"faded":"normal",data:{kind:"date-picker-cell",date:void 0,displayDate:"",step:(null===(u=s.step)||void 0===u?void 0:u.toString())||"1",format:a,min:v,max:h}},p=function(e){var n=D(e);return null===n?!t.isRequired:void 0!==n&&(!((0,c.bb)(v)&&l(n)<l(v))&&!((0,c.bb)(h)&&l(n)>l(h)))};return(0,i.Z)((0,i.Z)({},t),{},{kind:e,sortMode:"default",validateInput:p,getCell:function(e,t){if(!0===t){var r=p(e);if(!1===r)return C(R(e),"Invalid input.");r instanceof Date&&(e=r)}var a=D(e),o="",l="",d=m;if(void 0===a)return C(R(e),"The value cannot be interpreted as a datetime object.");if(null!==a){var u=y().utc(a);if(!u.isValid())return C(R(a),"This should never happen. Please report this bug. \nError: ".concat(u.toString()));if(s.timezone){try{u=B(u,s.timezone)}catch(b){return C(u.toISOString(),"Failed to adjust to the provided timezone: ".concat(s.timezone,". \nError: ").concat(b))}d=u.utcOffset()}try{l=I(u,s.format||n)}catch(b){return C(u.toISOString(),"Failed to format the date for rendering with: ".concat(s.format,". \nError: ").concat(b))}o=I(u,n)}return(0,i.Z)((0,i.Z)({},g),{},{copyData:o,isMissingValue:(0,c.le)(a),data:(0,i.Z)((0,i.Z)({},g.data),{},{date:a,displayDate:l,timezoneOffset:d})})},getCellValue:function(e){var t;return(0,c.le)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.date)?null:l(e.data.date)}})}function q(e){var t,n,i,r,a,o="YYYY-MM-DD HH:mm:ss";(null===(t=e.columnTypeOptions)||void 0===t?void 0:t.step)>=60?o="YYYY-MM-DD HH:mm":(null===(n=e.columnTypeOptions)||void 0===n?void 0:n.step)<1&&(o="YYYY-MM-DD HH:mm:ss.SSS");var l=null===(i=e.arrowType)||void 0===i||null===(r=i.meta)||void 0===r?void 0:r.timezone,d=(0,c.bb)(l)||(0,c.bb)(null===e||void 0===e||null===(a=e.columnTypeOptions)||void 0===a?void 0:a.timezone);return P("datetime",e,d?o+"Z":o,1,"datetime-local",(function(e){return d?e.toISOString():e.toISOString().replace("Z","")}),l)}function J(e){var t,n,i="HH:mm:ss";return(null===(t=e.columnTypeOptions)||void 0===t?void 0:t.step)>=60?i="HH:mm":(null===(n=e.columnTypeOptions)||void 0===n?void 0:n.step)<1&&(i="HH:mm:ss.SSS"),P("time",e,i,1,"time",(function(e){return e.toISOString().split("T")[1].replace("Z","")}))}function G(e){return P("date",e,"YYYY-MM-DD",1,"date",(function(e){return e.toISOString().split("T")[0]}))}function U(e){var t={kind:o.p6.Boolean,data:!1,allowOverlay:!1,contentAlign:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"};return(0,i.Z)((0,i.Z)({},e),{},{kind:"checkbox",sortMode:"default",getCell:function(e){var n;return void 0===(n=_(e))?C(R(e),"The value cannot be interpreted as boolean."):(0,i.Z)((0,i.Z)({},t),{},{data:n,isMissingValue:(0,c.le)(n)})},getCellValue:function(e){return void 0===e.data?null:e.data}})}q.isEditableType=!0,J.isEditableType=!0,G.isEditableType=!0,U.isEditableType=!0;var K=U;function X(e){return e.startsWith("int")&&!e.startsWith("interval")||"range"===e||e.startsWith("uint")}function Q(e){var t=F.fu.getTypeName(e.arrowType),n=N({step:X(t)?1:void 0,min_value:t.startsWith("uint")?0:void 0},e.columnTypeOptions),r=(0,c.le)(n.min_value)||n.min_value<0,a=(0,c.bb)(n.step)&&!Number.isNaN(n.step)?H(n.step):void 0,l={kind:o.p6.Number,data:void 0,displayData:"",readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment||"right",style:e.isIndex?"faded":"normal",allowNegative:r,fixedDecimals:a},d=function(t){var i=S(t);if((0,c.le)(i))return!e.isRequired;if(Number.isNaN(i))return!1;var r=!1;return(0,c.bb)(n.max_value)&&i>n.max_value&&(i=n.max_value,r=!0),!((0,c.bb)(n.min_value)&&i<n.min_value)&&(!r||i)};return(0,i.Z)((0,i.Z)({},e),{},{kind:"number",sortMode:"smart",validateInput:d,getCell:function(e,t){if(!0===t){var r=d(e);if(!1===r)return C(R(e),"Invalid input.");"number"===typeof r&&(e=r)}var o,u,s=S(e),m="";if((0,c.bb)(s)){if(Number.isNaN(s))return C(R(e),"The value cannot be interpreted as a number.");if((0,c.bb)(a)&&(o=s,s=0===(u=a)?Math.trunc(o):Math.trunc(o*Math.pow(10,u))/Math.pow(10,u)),Number.isInteger(s)&&!Number.isSafeInteger(s))return C(R(e),"The value is larger than the maximum supported integer values in number columns (2^53).");try{m=O(s,n.format,a)}catch(f){return C(R(s),(0,c.bb)(n.format)?"Failed to format the number based on the provided format configuration: (".concat(n.format,"). Error: ").concat(f):"Failed to format the number. Error: ".concat(f))}}return(0,i.Z)((0,i.Z)({},l),{},{data:s,displayData:m,isMissingValue:(0,c.le)(s)})},getCellValue:function(e){return void 0===e.data?null:e.data}})}Q.isEditableType=!0;var $=Q,ee=n(649);function te(e){var t="string",n=N({options:"bool"===F.fu.getTypeName(e.arrowType)?[!0,!1]:[]},e.columnTypeOptions),r=new Set(n.options.map((function(e){return typeof e})));1===r.size&&(r.has("number")||r.has("bigint")?t="number":r.has("boolean")&&(t="boolean"));var a={kind:o.p6.Custom,allowOverlay:!0,copyData:"",contentAlign:e.contentAlignment,readonly:!e.isEditable,data:{kind:"dropdown-cell",allowedValues:[].concat((0,ee.Z)(!0!==e.isRequired?[null]:[]),(0,ee.Z)(n.options.filter((function(e){return null!==e&&""!==e})).map((function(e){return R(e)})))),value:"",readonly:!e.isEditable}};return(0,i.Z)((0,i.Z)({},e),{},{kind:"selectbox",sortMode:"default",getCell:function(e,t){var n=null;return(0,c.bb)(e)&&""!==e&&(n=R(e)),t&&!a.data.allowedValues.includes(n)?C(R(n),"The value is not part of the allowed options."):(0,i.Z)((0,i.Z)({},a),{},{isMissingValue:null===n,copyData:n||"",data:(0,i.Z)((0,i.Z)({},a.data),{},{value:n})})},getCellValue:function(e){var n,i,r,a,o,l,d;return(0,c.le)(null===(n=e.data)||void 0===n?void 0:n.value)||""===(null===(i=e.data)||void 0===i?void 0:i.value)?null:"number"===t?null!==(a=S(null===(o=e.data)||void 0===o?void 0:o.value))&&void 0!==a?a:null:"boolean"===t?null!==(l=_(null===(d=e.data)||void 0===d?void 0:d.value))&&void 0!==l?l:null:null===(r=e.data)||void 0===r?void 0:r.value}})}te.isEditableType=!0;var ne=te;function ie(e){var t={kind:o.p6.Bubble,data:[],allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal"};return(0,i.Z)((0,i.Z)({},e),{},{kind:"list",sortMode:"default",isEditable:!1,getCell:function(e){var n=(0,c.le)(e)?[]:k(e);return(0,i.Z)((0,i.Z)({},t),{},{data:n,isMissingValue:(0,c.le)(e),copyData:(0,c.le)(e)?"":R(n.map((function(e){return(0,v.isString)(e)&&e.includes(",")?e.replace(/,/g," "):e})))})},getCellValue:function(e){return(0,c.le)(e.data)||Z(e)?null:e.data}})}ie.isEditableType=!1;var re=ie;function ae(e,t,n){var i=new RegExp("".concat(e,"[,\\s].*{(?:[^}]*[\\s;]{1})?").concat(t,":\\s*([^;}]+)[;]?.*}"),"gm");n=n.replace(/{/g," {");var r=i.exec(n);if(r)return r[1].trim()}function oe(e,t){var n=e.types.index[t],i=e.indexNames[t],r=!0;return"range"===F.fu.getTypeName(n)&&(r=!1),{id:"index-".concat(t),name:i,title:i,isEditable:r,arrowType:n,isIndex:!0,isHidden:!1}}function le(e,t){var n,i=e.columns[0][t],r=e.types.data[t];if((0,c.le)(r)&&(r={meta:null,numpy_type:"object",pandas_type:"object"}),"categorical"===F.fu.getTypeName(r)){var a=e.getCategoricalOptions(t);(0,c.bb)(a)&&(n={options:a})}return{id:"column-".concat(i,"-").concat(t),name:i,title:i,isEditable:!0,arrowType:r,columnTypeOptions:n,isIndex:!1,isHidden:!1}}function de(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=e.arrowType?F.fu.getTypeName(e.arrowType):null;if("object"===e.kind)n=e.getCell((0,c.bb)(t.content)?V(F.fu.format(t.content,t.contentType,t.field)):null);else if(["time","date","datetime"].includes(e.kind)&&(0,c.bb)(t.content)&&("number"===typeof t.content||"bigint"===typeof t.content)){var l,d,u;u="time"===a&&(0,c.bb)(null===(l=t.field)||void 0===l||null===(d=l.type)||void 0===d?void 0:d.unit)?y().unix(F.fu.adjustTimestamp(t.content,t.field)).utc().toDate():y().utc(Number(t.content)).toDate(),n=e.getCell(u)}else if("decimal"===a){var s=(0,c.le)(t.content)?null:F.fu.format(t.content,t.contentType,t.field);n=e.getCell(s)}else n=e.getCell(t.content);if(M(n))return n;if(!e.isEditable){if((0,c.bb)(t.displayContent)){var m,f=V(t.displayContent);n.kind===o.p6.Text||n.kind===o.p6.Number?n=(0,i.Z)((0,i.Z)({},n),{},{displayData:f}):n.kind===o.p6.Custom&&"date-picker-cell"===(null===(m=n.data)||void 0===m?void 0:m.kind)&&(n=(0,i.Z)((0,i.Z)({},n),{},{data:(0,i.Z)((0,i.Z)({},n.data),{},{displayDate:f})}))}r&&t.cssId&&(n=function(e,t,n){var r={},a=ae(t,"color",n);a&&(r.textDark=a);var o=ae(t,"background-color",n);return o&&(r.bgCell=o),"yellow"===o&&void 0===a&&(r.textDark="#31333F"),r?(0,i.Z)((0,i.Z)({},e),{},{themeOverride:r}):e}(n,t.cssId,r))}return n}function ue(e){var t=e.columnTypeOptions||{},n=void 0;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(l){n="Invalid validate regex: ".concat(t.validate,".\nError: ").concat(l)}var r={kind:o.p6.Uri,data:"",readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal"},a=function(i){if((0,c.le)(i))return!e.isRequired;var r=R(i),a=!1;return t.max_chars&&r.length>t.max_chars&&(r=r.slice(0,t.max_chars),a=!0),!(n instanceof RegExp&&!1===n.test(r))&&(!a||r)};return(0,i.Z)((0,i.Z)({},e),{},{kind:"link",sortMode:"default",validateInput:a,getCell:function(e,t){if("string"===typeof n)return C(R(e),n);if(t){var o=a(e);if(!1===o)return C(R(e),"Invalid input.");"string"===typeof o&&(e=o)}return(0,i.Z)((0,i.Z)({},r),{},{data:(0,c.bb)(e)?R(e):null,isMissingValue:(0,c.le)(e)})},getCellValue:function(e){return void 0===e.data?null:e.data}})}ue.isEditableType=!0;var se=ue;function ce(e){var t={kind:o.p6.Image,data:[],displayData:[],allowAdd:!1,allowOverlay:!0,contentAlign:e.contentAlignment||"center",style:e.isIndex?"faded":"normal"};return(0,i.Z)((0,i.Z)({},e),{},{kind:"image",sortMode:"default",isEditable:!1,getCell:function(e){var n=(0,c.bb)(e)?[R(e)]:[];return(0,i.Z)((0,i.Z)({},t),{},{data:n,isMissingValue:!(0,c.bb)(e),displayData:n})},getCellValue:function(e){return void 0===e.data||0===e.data.length?null:e.data[0]}})}ce.isEditableType=!1;var me=ce;function fe(e){var t,n=X(F.fu.getTypeName(e.arrowType)),r=N({min_value:0,max_value:n?100:1,step:n?1:.01,format:n?"%3d%%":"percent"},e.columnTypeOptions);try{t=O(r.max_value,r.format)}catch(d){t=R(r.max_value)}var a=(0,c.le)(r.step)||Number.isNaN(r.step)?void 0:H(r.step),l={kind:o.p6.Custom,allowOverlay:!1,copyData:"",contentAlign:e.contentAlignment,data:{kind:"range-cell",min:r.min_value,max:r.max_value,step:r.step,value:r.min_value,label:String(r.min_value),measureLabel:t,readonly:!0}};return(0,i.Z)((0,i.Z)({},e),{},{kind:"progress",sortMode:"smart",isEditable:!1,getCell:function(e){if((0,c.le)(e))return E();if((0,c.le)(r.min_value)||(0,c.le)(r.max_value)||Number.isNaN(r.min_value)||Number.isNaN(r.max_value)||r.min_value>=r.max_value)return C("Invalid min/max parameters","The min_value (".concat(r.min_value,") and max_value (").concat(r.max_value,") parameters must be valid numbers."));if((0,c.le)(r.step)||Number.isNaN(r.step))return C("Invalid step parameter","The step parameter (".concat(r.step,") must be a valid number."));var t=S(e);if(Number.isNaN(t)||(0,c.le)(t))return C(R(e),"The value cannot be interpreted as a number.");if(Number.isInteger(t)&&!Number.isSafeInteger(t))return C(R(e),"The value is larger than the maximum supported integer values in number columns (2^53).");var n="";try{n=O(t,r.format,a)}catch(d){return C(R(t),(0,c.bb)(r.format)?"Failed to format the number based on the provided format configuration: (".concat(r.format,"). Error: ").concat(d):"Failed to format the number. Error: ".concat(d))}var o=Math.min(r.max_value,Math.max(r.min_value,t));return(0,i.Z)((0,i.Z)({},l),{},{isMissingValue:(0,c.le)(e),copyData:String(t),data:(0,i.Z)((0,i.Z)({},l.data),{},{value:o,label:n})})},getCellValue:function(e){var t,n;return e.kind===o.p6.Loading||void 0===(null===(t=e.data)||void 0===t?void 0:t.value)?null:null===(n=e.data)||void 0===n?void 0:n.value}})}fe.isEditableType=!1;var ve=fe;function he(e,t,n){var r=N({y_min:0,y_max:1},t.columnTypeOptions),a={kind:o.p6.Custom,allowOverlay:!1,copyData:"",contentAlign:t.contentAlignment,data:{kind:"sparkline-cell",values:[],displayValues:[],graphKind:n,yAxis:[r.y_min,r.y_max]}};return(0,i.Z)((0,i.Z)({},t),{},{kind:e,sortMode:"default",isEditable:!1,getCell:function(e){if((0,c.le)(r.y_min)||(0,c.le)(r.y_max)||Number.isNaN(r.y_min)||Number.isNaN(r.y_max)||r.y_min>=r.y_max)return C("Invalid min/max y-axis configuration","The y_min (".concat(r.y_min,") and y_max (").concat(r.y_max,") configuration options must be valid numbers."));if((0,c.le)(e))return E();var t=k(e),o=[],l=[];if(0===t.length)return E();for(var d=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,s=0;s<t.length;s++){var m=S(t[s]);if(Number.isNaN(m)||(0,c.le)(m))return C(R(t),"The value cannot be interpreted as a numeric array. ".concat(R(m)," is not a number."));m>d&&(d=m),m<u&&(u=m),o.push(m)}return"line"===n&&o.length<=2?E():(l=o.length>0&&(d>r.y_max||u<r.y_min)?o.map((function(e){return d-u===0?d>(r.y_max||1)?r.y_max||1:r.y_min||0:((r.y_max||1)-(r.y_min||0))*((e-u)/(d-u))+(r.y_min||0)})):o,(0,i.Z)((0,i.Z)({},a),{},{copyData:o.join(","),data:(0,i.Z)((0,i.Z)({},a.data),{},{values:l,displayValues:o.map((function(e){return O(e)}))}),isMissingValue:(0,c.le)(e)}))},getCellValue:function(e){var t,n;return e.kind===o.p6.Loading||void 0===(null===(t=e.data)||void 0===t?void 0:t.values)?null:null===(n=e.data)||void 0===n?void 0:n.values}})}function ge(e){return he("line_chart",e,"line")}function pe(e){return he("bar_chart",e,"bar")}ge.isEditableType=!1,pe.isEditableType=!1;var be=new Map(Object.entries({object:W,text:Y,checkbox:K,selectbox:ne,list:re,number:$,link:se,datetime:q,date:G,time:J,line_chart:ge,bar_chart:pe,image:me,progress:ve})),ye=[],we="_index",xe="_pos:",Ce={small:75,medium:200,large:400};function Me(e){if(!(0,c.le)(e))return"number"===typeof e?e:e in Ce?Ce[e]:void 0}function Ze(e){var t,n,i=null===(t=e.columnTypeOptions)||void 0===t?void 0:t.type;return(0,c.bb)(i)&&(be.has(i)?n=be.get(i):(0,z.KE)("Unknown column type configured in column configuration: ".concat(i))),(0,c.le)(n)&&(n=function(e){var t=e?F.fu.getTypeName(e):null;return t?(t=t.toLowerCase().trim(),["unicode","empty"].includes(t)?Y:["datetime","datetimetz"].includes(t)?q:"time"===t?J:"date"===t?G:["object","bytes"].includes(t)?W:["bool"].includes(t)?K:["int8","int16","int32","int64","uint8","uint16","uint32","uint64","float16","float32","float64","float96","float128","range","decimal"].includes(t)?$:"categorical"===t?ne:t.startsWith("list")?re:W):W}(e.arrowType)),n}var Ee=function(e,t,n){var r=function(e){if(!e.columns)return new Map;try{return new Map(Object.entries(JSON.parse(e.columns)))}catch(t){return(0,z.H)(t),new Map}}(e),a=e.useContainerWidth||(0,c.bb)(e.width)&&e.width>0,o=function(e){var t,n,r,a,o,l,d=[],u=null!==(t=null===(n=e.types)||void 0===n||null===(r=n.index)||void 0===r?void 0:r.length)&&void 0!==t?t:0,s=null!==(a=null===(o=e.columns)||void 0===o||null===(l=o[0])||void 0===l?void 0:l.length)&&void 0!==a?a:0;if(0===u&&0===s)return d.push({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0}),d;for(var c=0;c<u;c++){var m=(0,i.Z)((0,i.Z)({},oe(e,c)),{},{indexNumber:c});d.push(m)}for(var f=0;f<s;f++){var v=(0,i.Z)((0,i.Z)({},le(e,f)),{},{indexNumber:f+u});d.push(v)}return d}(t).map((function(t){var o=(0,i.Z)((0,i.Z)((0,i.Z)({},t),function(e,t){return t?(t.has(e.name)&&e.name!==we?n=t.get(e.name):t.has("".concat(xe).concat(e.indexNumber))?n=t.get("".concat(xe).concat(e.indexNumber)):e.isIndex&&t.has(we)&&(n=t.get(we)),n?(0,v.merge)((0,i.Z)({},e),{title:n.label,width:Me(n.width),isEditable:(0,c.bb)(n.disabled)?!n.disabled:void 0,isHidden:n.hidden,isRequired:n.required,columnTypeOptions:n.type_config,contentAlignment:n.alignment,defaultValue:n.default,help:n.help}):e):e;var n}(t,r)),{},{isStretched:a}),l=Ze(o);return(e.editingMode===s.Eh.EditingMode.READ_ONLY||n||!1===l.isEditableType)&&(o=(0,i.Z)((0,i.Z)({},o),{},{isEditable:!1})),e.editingMode!==s.Eh.EditingMode.READ_ONLY&&1==o.isEditable&&(o=(0,i.Z)((0,i.Z)({},o),{},{icon:"editable"})),l(o)})).filter((function(e){return!e.isHidden}));if(e.columnOrder&&e.columnOrder.length>0){var l=[];o.forEach((function(e){e.isIndex&&l.push(e)})),e.columnOrder.forEach((function(e){var t=o.find((function(t){return t.name===e}));t&&!t.isIndex&&l.push(t)})),o=l}return{columns:o.length>0?o:[W({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0})]}};function Te(e){return e.isIndex?we:(0,c.le)(e.name)?"":e.name}var Ne=function(){function e(t){(0,m.Z)(this,e),this.editedCells=new Map,this.addedRows=[],this.deletedRows=[],this.numRows=0,this.numRows=t}return(0,f.Z)(e,[{key:"toJson",value:function(e){var t=new Map;e.forEach((function(e){t.set(e.indexNumber,e)}));var n={edited_rows:{},added_rows:[],deleted_rows:[]};return this.editedCells.forEach((function(e,i,r){var a={};e.forEach((function(e,n,i){var r=t.get(n);r&&(a[Te(r)]=r.getCellValue(e))})),n.edited_rows[i]=a})),this.addedRows.forEach((function(e){var i={},r=!1;e.forEach((function(e,n,a){var o=t.get(n);if(o){var l=o.getCellValue(e);o.isRequired&&o.isEditable&&Z(e)&&(r=!0),(0,c.bb)(l)&&(i[Te(o)]=l)}})),r||n.added_rows.push(i)})),n.deleted_rows=this.deletedRows,JSON.stringify(n,(function(e,t){return void 0===t?null:t}))}},{key:"fromJson",value:function(e,t){var n=this;this.editedCells=new Map,this.addedRows=[],this.deletedRows=[];var i=JSON.parse(e),r=new Map;t.forEach((function(e){r.set(e.indexNumber,e)}));var a=new Map;t.forEach((function(e){a.set(Te(e),e)})),Object.keys(i.edited_rows).forEach((function(e){var t=Number(e),r=i.edited_rows[e];Object.keys(r).forEach((function(e){var i=r[e],o=a.get(e);if(o){var l,d=o.getCell(i);if(d)n.editedCells.has(t)||n.editedCells.set(t,new Map),null===(l=n.editedCells.get(t))||void 0===l||l.set(o.indexNumber,d)}}))})),i.added_rows.forEach((function(e){var t=new Map;Object.keys(e).forEach((function(n){var i=e[n],r=a.get(n);if(r){var o=r.getCell(i);o&&t.set(r.indexNumber,o)}})),n.addedRows.push(t)})),this.deletedRows=i.deleted_rows}},{key:"isAddedRow",value:function(e){return e>=this.numRows}},{key:"getCell",value:function(e,t){if(this.isAddedRow(t))return this.addedRows[t-this.numRows].get(e);var n=this.editedCells.get(t);return void 0!==n?n.get(e):void 0}},{key:"setCell",value:function(e,t,n){if(this.isAddedRow(t)){if(t-this.numRows>=this.addedRows.length)return;this.addedRows[t-this.numRows].set(e,n)}else{void 0===this.editedCells.get(t)&&this.editedCells.set(t,new Map),this.editedCells.get(t).set(e,n)}}},{key:"addRow",value:function(e){this.addedRows.push(e)}},{key:"deleteRows",value:function(e){var t=this;e.sort((function(e,t){return t-e})).forEach((function(e){t.deleteRow(e)}))}},{key:"deleteRow",value:function(e){(0,c.le)(e)||e<0||(this.isAddedRow(e)?this.addedRows.splice(e-this.numRows,1):(this.deletedRows.includes(e)||(this.deletedRows.push(e),this.deletedRows=this.deletedRows.sort((function(e,t){return e-t}))),this.editedCells.delete(e)))}},{key:"getOriginalRowIndex",value:function(e){for(var t=e,n=0;n<this.deletedRows.length&&!(this.deletedRows[n]>t);n++)t+=1;return t}},{key:"getNumRows",value:function(){return this.numRows+this.addedRows.length-this.deletedRows.length}}]),e}(),ke=n(35704),Re=n(25621);var _e=function(){var e=(0,Re.u)(),t=a.useMemo((function(){return{editable:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 96 960 960" width="40" fill="'.concat(e.bgColor,'"><path d="m800.641 679.743-64.384-64.384 29-29q7.156-6.948 17.642-6.948 10.485 0 17.742 6.948l29 29q6.948 7.464 6.948 17.95 0 10.486-6.948 17.434l-29 29Zm-310.64 246.256v-64.383l210.82-210.821 64.384 64.384-210.821 210.82h-64.383Zm-360-204.872v-50.254h289.743v50.254H130.001Zm0-162.564v-50.255h454.615v50.255H130.001Zm0-162.307v-50.255h454.615v50.255H130.001Z"/></svg>')}}}),[]);return{accentColor:e.colors.primary,accentFg:e.colors.white,accentLight:(0,ke.DZ)(e.colors.primary,.9),borderColor:e.colors.fadedText05,horizontalBorderColor:e.colors.fadedText05,fontFamily:e.genericFonts.bodyFont,bgSearchResult:(0,ke.DZ)(e.colors.primary,.9),bgIconHeader:e.colors.fadedText60,fgIconHeader:e.colors.white,bgHeader:e.colors.bgMix,bgHeaderHasFocus:e.colors.secondaryBg,bgHeaderHovered:e.colors.bgMix,textHeader:e.colors.fadedText60,textHeaderSelected:e.colors.white,textGroupHeader:e.colors.fadedText60,headerFontStyle:"".concat(e.fontSizes.sm),baseFontStyle:e.fontSizes.sm,editorFontSize:e.fontSizes.sm,textDark:e.colors.bodyText,textMedium:(0,ke.DZ)(e.colors.bodyText,.2),textLight:e.colors.fadedText40,textBubble:e.colors.fadedText60,bgCell:e.colors.bgColor,bgCellMedium:e.colors.bgColor,cellHorizontalPadding:8,cellVerticalPadding:3,bgBubble:e.colors.secondaryBg,bgBubbleSelected:e.colors.secondaryBg,linkColor:e.colors.linkText,drilldownBorder:e.colors.darkenedBgMix25,tableBorderRadius:e.radii.lg,headerIcons:t}};var Se=function(e,t,n,i){return{getCellContent:a.useCallback((function(a){var o=(0,r.Z)(a,2),l=o[0],d=o[1];if(l>t.length-1)return C("Column index out of bounds.","This should never happen. Please report this bug.");if(d>n-1)return C("Row index out of bounds.","This should never happen. Please report this bug.");var u=t[l],s=u.indexNumber,c=i.current.getOriginalRowIndex(d);if(u.isEditable||i.current.isAddedRow(c)){var m=i.current.getCell(s,c);if(void 0!==m)return m}try{return de(u,e.getCell(c+1,s),e.cssStyles)}catch(f){return(0,z.H)(f),C("Error during cell creation.","This should never happen. Please report this bug. \nError: ".concat(f))}}),[t,n,e,i])}},Oe=n(37753);var Ie=function(e,t,n){var o=a.useState(),l=(0,r.Z)(o,2),d=l[0],u=l[1],s=(0,Oe.fF)({columns:t.map((function(e){return T(e)})),getCellContent:n,rows:e,sort:d}),c=s.getCellContent,m=s.getOriginalIndex,f=function(e,t){return void 0===t?e:e.map((function(e){return e.id===t.column.id?(0,i.Z)((0,i.Z)({},e),{},{title:"asc"===t.direction?"\u2191 ".concat(e.title):"\u2193 ".concat(e.title)}):e}))}(t,d),v=a.useCallback((function(e){var t="asc",n=f[e];if(d&&d.column.id===n.id){if("asc"!==d.direction)return void u(void 0);t="desc"}u({column:T(n),direction:t,mode:n.sortMode})}),[d,f]);return{columns:f,sortColumn:v,getOriginalIndex:m,getCellContent:c}};var De=function(e,t,n,o,l,d,u){var s=a.useCallback((function(t,a){var d=(0,r.Z)(t,2),s=d[0],c=d[1],m=e[s];if(m.isEditable){var f=m.indexNumber,v=n.current.getOriginalRowIndex(l(c)),h=o([s,c]),g=m.getCellValue(h),p=m.getCellValue(a);if(M(h)||p!==g){var b=m.getCell(p,!0);M(b)?(0,z.KE)("Not applying the cell edit since it causes this error:\n ".concat(b.data)):(n.current.setCell(f,v,(0,i.Z)((0,i.Z)({},b),{},{lastUpdated:performance.now()})),u())}}}),[e,n,l,o,u]),m=a.useCallback((function(){if(!t){var i=new Map;e.forEach((function(e){i.set(e.indexNumber,e.getCell(e.defaultValue))})),n.current.addRow(i)}}),[e,n,t]),f=a.useCallback((function(){t||(m(),u())}),[m,u,t]),v=a.useCallback((function(i){var r;if(i.rows.length>0){if(t)return!0;var a=i.rows.toArray().map((function(e){return n.current.getOriginalRowIndex(l(e))}));return n.current.deleteRows(a),u(!0),!1}if(null!==(r=i.current)&&void 0!==r&&r.range){for(var o=[],c=i.current.range,m=c.y;m<c.y+c.height;m++)for(var f=c.x;f<c.x+c.width;f++){var v=e[f];v.isEditable&&!v.isRequired&&(o.push({cell:[f,m]}),s([f,m],v.getCell(null)))}return o.length>0&&(u(),d(o)),!1}return!0}),[e,n,t,d,l,u,s]),h=a.useCallback((function(a,s){for(var f=(0,r.Z)(a,2),v=f[0],h=f[1],g=[],p=0;p<s.length;p++){var b=s[p];if(p+h>=n.current.getNumRows()){if(t)break;m()}for(var y=0;y<b.length;y++){var w=b[y],x=p+h,C=y+v;if(C>=e.length)break;var Z=e[C];if(Z.isEditable){var E=Z.getCell(w,!0);if((0,c.bb)(E)&&!M(E)){var T=Z.indexNumber,N=n.current.getOriginalRowIndex(l(x)),k=Z.getCellValue(o([C,x]));Z.getCellValue(E)!==k&&(n.current.setCell(T,N,(0,i.Z)((0,i.Z)({},E),{},{lastUpdated:performance.now()})),g.push({cell:[C,x]}))}}}g.length>0&&(u(),d(g))}return!1}),[e,n,t,l,o,m,u,d]),g=a.useCallback((function(t,n){var i=t[0];if(i>=e.length)return!0;var r=e[i];if(r.validateInput){var a=r.validateInput(r.getCellValue(n));return!0===a||!1===a?a:r.getCell(a)}return!0}),[e]);return{onCellEdited:s,onPaste:h,onRowAppended:f,onDelete:v,validateCell:g}};var He=function(e,t){var n=a.useState(),i=(0,r.Z)(n,2),o=i[0],l=i[1],d=a.useRef(null),u=a.useCallback((function(n){if(clearTimeout(d.current),d.current=0,l(void 0),("header"===n.kind||"cell"===n.kind)&&n.location){var i,r=n.location[0],a=n.location[1];if(r<0||r>=e.length)return;var o=e[r];if("header"===n.kind&&(0,c.bb)(o))i=o.help;else if("cell"===n.kind){var u=t([r,a]);o.isRequired&&o.isEditable&&Z(u)?i="\u26a0\ufe0f Please fill out this cell.":function(e){return e.hasOwnProperty("tooltip")&&""!==e.tooltip}(u)&&(i=u.tooltip)}i&&(d.current=setTimeout((function(){i&&l({content:i,left:n.bounds.x+n.bounds.width/2,top:n.bounds.y})}),600))}}),[e,t,l,d]);return{tooltip:o,clearTooltip:a.useCallback((function(){l(void 0)}),[l]),onItemHovered:u}},Ae=n(94379);var Ve=function(e,t){var n=a.useCallback((function(n){var r=n.cell,a=n.theme,l=n.ctx,d=n.rect,u=t?n.col-1:n.col;if(Z(r)&&u<e.length){var s=!1,c=e[u];return["checkbox","line_chart","bar_chart","progress"].includes(c.kind)||(!function(e){var t=e.cell,n=e.theme;(0,o.uN)((0,i.Z)((0,i.Z)({},e),{},{theme:(0,i.Z)((0,i.Z)({},n),{},{textDark:n.textLight,textMedium:n.textLight}),spriteManager:{},hyperWrapping:!1}),"None",t.contentAlign)}(n),s=!0),c.isRequired&&c.isEditable&&function(e,t,n){e.save(),e.beginPath(),e.moveTo(t.x+t.width-8,t.y+1),e.lineTo(t.x+t.width,t.y+1),e.lineTo(t.x+t.width,t.y+1+8),e.fillStyle=n.accentColor,e.fill(),e.restore()}(l,d,a),s}return!1}),[e,t]),r=(0,Ae.Bn)();return{drawCell:n,customRenderers:[].concat((0,ee.Z)(r.customRenderers),(0,ee.Z)(ye))}};var ze=function(e){var t=(0,a.useState)((function(){return new Map})),n=(0,r.Z)(t,2),o=n[0],l=n[1],d=a.useCallback((function(e,t,n,i){e.id&&l(new Map(o).set(e.id,i))}),[o]);return{columns:e.map((function(e){return e.id&&o.has(e.id)&&void 0!==o.get(e.id)?(0,i.Z)((0,i.Z)({},e),{},{width:o.get(e.id),grow:0}):e})),onColumnResize:d}},Fe=35,Le=2*Fe+3;var We=function(e,t,n,i,o){var l,d=function(e){return Math.max(e*Fe+1+2,Le)}(t+1+(e.editingMode===s.Eh.EditingMode.DYNAMIC?1:0)),u=Math.min(d,400);e.height&&(u=Math.max(e.height,Le),d=Math.max(e.height,d)),i&&(u=Math.min(u,i),d=Math.min(d,i),e.height||(u=d));var m=n;e.useContainerWidth?l=n:e.width&&(l=Math.min(Math.max(e.width,52),n),m=Math.min(Math.max(e.width,m),n));var f=a.useState({width:l||"100%",height:u}),v=(0,r.Z)(f,2),h=v[0],g=v[1];return a.useLayoutEffect((function(){e.useContainerWidth&&"100%"===h.width&&g({width:n,height:h.height})}),[n]),a.useLayoutEffect((function(){g({width:h.width,height:u})}),[t]),a.useLayoutEffect((function(){g({width:l||"100%",height:h.height})}),[l]),a.useLayoutEffect((function(){g({width:h.width,height:u})}),[u]),a.useLayoutEffect((function(){if(o){var t=e.useContainerWidth||(0,c.bb)(e.width)&&e.width>0;g({width:t?m:"100%",height:d})}else g({width:l||"100%",height:u})}),[o]),{rowHeight:Fe,minHeight:Le,maxHeight:d,minWidth:52,maxWidth:m,resizableSize:h,setResizableSize:g}},je=n(1515),Ye=n(40864),Be=(0,je.Z)("img",{target:"e24uaba0"})((function(){return{maxWidth:"100%",maxHeight:"600px",objectFit:"scale-down"}}),""),Pe=function(e){var t=e.urls,n=t&&t.length>0?t[0]:"";return n.startsWith("http")?(0,Ye.jsx)("a",{href:n,target:"_blank",rel:"noreferrer noopener",children:(0,Ye.jsx)(Be,{src:n})}):(0,Ye.jsx)(Be,{src:n})},qe=n(64649),Je=(0,je.Z)("div",{target:"e1w7nams0"})((function(e){var t;return{position:"relative",display:"inline-block","& .glideDataEditor":{height:"100%",minWidth:"100%",borderRadius:e.theme.radii.lg},"& .dvn-scroller":(t={scrollbarWidth:"thin"},(0,qe.Z)(t,"overflowX","overlay !important"),(0,qe.Z)(t,"overflowY","overlay !important"),t)}}),""),Ge=n(31572),Ue=n(13553),Ke=n(21e3),Xe=n(80152),Qe=n(27466);var $e=function(e){var t=e.top,n=e.left,i=e.content,o=e.clearTooltip,l=a.useState(!0),d=(0,r.Z)(l,2),u=d[0],s=d[1],c=(0,Re.u)(),m=c.colors,f=c.fontSizes,v=c.radii,h=a.useCallback((function(){s(!1),o()}),[o,s]);return(0,Ye.jsx)(Ge.Z,{content:(0,Ye.jsx)(Xe.Uo,{className:"stTooltipContent",children:(0,Ye.jsx)(Ke.ZP,{style:{fontSize:f.sm},source:i,allowHTML:!1})}),placement:Ue.r4.top,accessibilityType:Ue.SI.tooltip,showArrow:!1,popoverMargin:5,onClickOutside:h,onEsc:h,overrides:{Body:{style:{borderTopLeftRadius:v.md,borderTopRightRadius:v.md,borderBottomLeftRadius:v.md,borderBottomRightRadius:v.md,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}},Inner:{style:{backgroundColor:(0,Qe.Iy)(c)?m.bgColor:m.secondaryBg,color:m.bodyText,fontSize:f.sm,fontWeight:"normal",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},isOpen:u,children:(0,Ye.jsx)("div",{className:"stTooltipTarget","data-testid":"stTooltipTarget",style:{position:"fixed",top:t,left:n}})})};n(2739),n(24665);var et=(0,u.Z)((function(e){var t=e.element,n=e.data,u=e.width,m=e.height,f=e.disabled,v=e.widgetMgr,h=e.isFullScreen,g=a.useRef(null),p=a.useRef(null),b=_e(),y=a.useState(!0),w=(0,r.Z)(y,2),x=w[0],C=w[1],M=a.useMemo((function(){return window.matchMedia&&window.matchMedia("(pointer: coarse)").matches}),[]),Z=a.useState({columns:o.EV.empty(),rows:o.EV.empty(),current:void 0}),E=(0,r.Z)(Z,2),N=E[0],k=E[1],R=a.useCallback((function(){k({columns:o.EV.empty(),rows:o.EV.empty(),current:void 0})}),[]),_=a.useCallback((function(e){var t;null===(t=p.current)||void 0===t||t.updateCells(e)}),[]);(0,c.le)(t.editingMode)&&(t.editingMode=s.Eh.EditingMode.READ_ONLY);var S=s.Eh.EditingMode,O=S.READ_ONLY,I=S.DYNAMIC,D=n.dimensions,H=Math.max(0,D.rows-1),A=0===H&&!(t.editingMode===I&&D.dataColumns>0),V=H>15e4,z=a.useRef(new Ne(H)),F=a.useState(z.current.getNumRows()),L=(0,r.Z)(F,2),W=L[0],j=L[1];a.useEffect((function(){z.current=new Ne(H),j(z.current.getNumRows())}),[H]);var Y=a.useCallback((function(){z.current=new Ne(H),j(z.current.getNumRows())}),[H]),B=Ee(t,n,f).columns;a.useEffect((function(){if(t.editingMode!==O){var e=v.getStringValue(t);e&&(z.current.fromJson(e,B),j(z.current.getNumRows()))}}),[]);var P=Se(n,B,W,z).getCellContent,q=Ie(H,B,P),J=q.columns,G=q.sortColumn,U=q.getOriginalIndex,K=q.getCellContent,X=a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];W!==z.current.getNumRows()&&j(z.current.getNumRows()),e&&R(),(0,c.Ds)(100,(function(){var e=z.current.toJson(J),i=v.getStringValue(t);void 0===i&&(i=new Ne(0).toJson([])),e!==i&&v.setStringValue(t,e,{fromUi:n})}))()}),[v,t,W,R,J]),Q=De(J,t.editingMode!==I,z,K,U,_,X),$=Q.onCellEdited,ee=Q.onPaste,te=Q.onRowAppended,ne=Q.onDelete,ie=Q.validateCell,re=He(J,K),ae=re.tooltip,oe=re.clearTooltip,le=re.onItemHovered,de=Ve(J,t.editingMode===I),ue=de.drawCell,se=de.customRenderers,ce=ze(J.map((function(e){return T(e)}))),me=ce.columns,fe=ce.onColumnResize,ve=We(t,W,u,m,h),he=ve.rowHeight,ge=ve.minHeight,pe=ve.maxHeight,be=ve.minWidth,ye=ve.maxWidth,we=ve.resizableSize,xe=ve.setResizableSize,Ce=a.useCallback((function(e){var t=(0,r.Z)(e,2);t[0],t[1];return(0,i.Z)((0,i.Z)({},function(e,t){var n=t?"faded":"normal";return{kind:o.p6.Text,data:"",displayData:"",allowOverlay:!0,readonly:e,style:n}}(!0,!1)),{},{displayData:"empty",contentAlign:"center",allowOverlay:!1,themeOverride:{textDark:b.textLight},span:[0,Math.max(J.length-1,0)]})}),[J,b.textLight]);return a.useEffect((function(){var e=new d.K;return e.manageFormClearListener(v,t.formId,Y),function(){e.disconnect()}}),[t.formId,Y,v]),(0,Ye.jsxs)(Je,{"data-testid":"stDataFrame",className:"stDataFrame",onBlur:function(){x||M||R()},children:[(0,Ye.jsx)(l.e,{"data-testid":"stDataFrameResizable",ref:g,defaultSize:we,style:{border:"1px solid ".concat(b.borderColor),borderRadius:"".concat(b.tableBorderRadius)},minHeight:ge,maxHeight:pe,minWidth:be,maxWidth:ye,size:we,enable:{top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!0,bottomLeft:!1,topLeft:!1},grid:[1,he],snapGap:he/3,onResizeStop:function(e,t,n,i){g.current&&xe({width:g.current.size.width,height:pe-g.current.size.height===3?g.current.size.height+3:g.current.size.height})},children:(0,Ye.jsx)(o.Nd,(0,i.Z)((0,i.Z)({className:"glideDataEditor",ref:p,columns:me,rows:A?1:W,minColumnWidth:50,maxColumnWidth:1e3,maxColumnAutoWidth:500,rowHeight:he,headerHeight:he,getCellContent:A?Ce:K,onColumnResize:fe,freezeColumns:A?0:J.filter((function(e){return e.isIndex})).length,smoothScrollX:!0,smoothScrollY:!0,verticalBorder:function(e){return!(e>=J.length&&(t.useContainerWidth||"100%"===we.width))},getCellsForSelection:!0,rowMarkers:"none",rangeSelect:M?"none":"rect",columnSelect:"none",rowSelect:"none",onItemHovered:le,keybindings:{search:!0,downFill:!0},onHeaderClicked:A||V?void 0:G,gridSelection:N,onGridSelectionChange:function(e){(x||M)&&(k(e),void 0!==ae&&oe())},theme:b,onMouseMove:function(e){"out-of-bounds"===e.kind&&x?C(!1):"out-of-bounds"===e.kind||x||C(!0)},fixedShadowX:!0,fixedShadowY:!0,experimental:{scrollbarWidthOverride:1},drawCell:ue,customRenderers:se,imageEditorOverride:Pe,headerIcons:b.headerIcons,validateCell:ie,onPaste:!1},!A&&t.editingMode!==O&&!f&&{fillHandle:!M,onCellEdited:$,onPaste:ee,onDelete:ne}),!A&&t.editingMode===I&&{trailingRowOptions:{sticky:!1,tint:!0},rowMarkerTheme:{bgCell:b.bgHeader,bgCellMedium:b.bgHeader},rowMarkers:"checkbox",rowSelectionMode:"auto",rowSelect:f?"none":"multi",onRowAppended:f?void 0:te,onHeaderClicked:void 0}))}),ae&&ae.content&&(0,Ye.jsx)($e,{top:ae.top,left:ae.left,content:ae.content,clearTooltip:oe})]})}))},87814:function(e,t,n){n.d(t,{K:function(){return o}});var i=n(22951),r=n(91976),a=n(50641),o=function(){function e(){(0,i.Z)(this,e),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}return(0,r.Z)(e,[{key:"manageFormClearListener",value:function(e,t,n){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,a.bM)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}},{key:"disconnect",value:function(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}]),e}()}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[853],{76853:function(e,n,t){t.r(n),t.d(n,{default:function(){return m}});var r=t(66845),s=t(25621),i=t(27466),o=t(21e3),a=t(66694),l=t(1515),c=t(63637),u=t(60484),p=(0,l.Z)(c.Q,{shouldForwardProp:u.Z,target:"e1se5lgy1"})((function(e){var n=e.theme,t=e.$usingCustomTheme;return{marginTop:n.spacing.none,marginBottom:n.spacing.none,marginRight:n.spacing.none,marginLeft:n.spacing.none,borderColor:n.colors.fadedText10,borderTopColor:t?n.colors.primary:n.colors.blue70,flexGrow:0,flexShrink:0}}),""),g=(0,l.Z)("div",{target:"e1se5lgy0"})((function(e){return{display:"flex",gap:e.theme.spacing.lg,alignItems:"center",width:"100%"}}),""),d=t(40864);var m=function(e){var n=e.width,t=e.element,l=(0,s.u)(),c=r.useContext(a.E).activeTheme,u=!(0,i.MJ)(c),m={width:n};return(0,d.jsx)("div",{className:"stSpinner","data-testid":"stSpinner",style:m,children:(0,d.jsxs)(g,{children:[(0,d.jsx)(p,{$size:l.iconSizes.twoXL,$usingCustomTheme:u}),(0,d.jsx)(o.ZP,{source:t.text,allowHTML:!1})]})})}}}]);
|