rasa-pro 3.12.0.dev2__py3-none-any.whl → 3.12.0.dev3__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.

Potentially problematic release.


This version of rasa-pro might be problematic. Click here for more details.

Files changed (502) hide show
  1. rasa/__main__.py +7 -7
  2. rasa/anonymization/anonymisation_rule_yaml_reader.py +1 -1
  3. rasa/anonymization/anonymization_pipeline.py +3 -3
  4. rasa/anonymization/anonymization_rule_executor.py +1 -1
  5. rasa/anonymization/anonymization_rule_orchestrator.py +2 -3
  6. rasa/cli/arguments/data.py +2 -2
  7. rasa/cli/arguments/evaluate.py +2 -1
  8. rasa/cli/arguments/interactive.py +1 -1
  9. rasa/cli/arguments/run.py +1 -1
  10. rasa/cli/arguments/test.py +7 -5
  11. rasa/cli/arguments/train.py +3 -3
  12. rasa/cli/arguments/visualize.py +2 -2
  13. rasa/cli/arguments/x.py +1 -0
  14. rasa/cli/data.py +4 -3
  15. rasa/cli/dialogue_understanding_test.py +116 -18
  16. rasa/cli/evaluate.py +1 -1
  17. rasa/cli/export.py +6 -6
  18. rasa/cli/interactive.py +4 -5
  19. rasa/cli/llm_fine_tuning.py +5 -5
  20. rasa/cli/markers.py +1 -2
  21. rasa/cli/project_templates/calm/actions/add_contact.py +1 -1
  22. rasa/cli/project_templates/tutorial/actions/actions.py +3 -2
  23. rasa/cli/shell.py +2 -3
  24. rasa/cli/studio/download.py +1 -2
  25. rasa/cli/studio/studio.py +2 -3
  26. rasa/cli/studio/train.py +0 -1
  27. rasa/cli/telemetry.py +2 -2
  28. rasa/cli/test.py +11 -11
  29. rasa/cli/utils.py +7 -5
  30. rasa/core/__init__.py +0 -1
  31. rasa/core/actions/action.py +42 -21
  32. rasa/core/actions/action_hangup.py +1 -1
  33. rasa/core/actions/action_repeat_bot_messages.py +2 -2
  34. rasa/core/actions/action_run_slot_rejections.py +2 -2
  35. rasa/core/actions/action_trigger_chitchat.py +1 -1
  36. rasa/core/actions/action_trigger_flow.py +5 -5
  37. rasa/core/actions/action_trigger_search.py +1 -1
  38. rasa/core/actions/forms.py +14 -12
  39. rasa/core/actions/http_custom_action_executor.py +8 -1
  40. rasa/core/actions/loops.py +3 -3
  41. rasa/core/actions/two_stage_fallback.py +13 -13
  42. rasa/core/auth_retry_tracker_store.py +1 -2
  43. rasa/core/brokers/broker.py +2 -1
  44. rasa/core/brokers/file.py +1 -1
  45. rasa/core/brokers/kafka.py +8 -8
  46. rasa/core/brokers/pika.py +8 -9
  47. rasa/core/brokers/sql.py +4 -3
  48. rasa/core/channels/__init__.py +3 -0
  49. rasa/core/channels/botframework.py +2 -2
  50. rasa/core/channels/callback.py +4 -4
  51. rasa/core/channels/channel.py +11 -11
  52. rasa/core/channels/console.py +0 -1
  53. rasa/core/channels/development_inspector.py +6 -6
  54. rasa/core/channels/facebook.py +5 -5
  55. rasa/core/channels/hangouts.py +7 -8
  56. rasa/core/channels/inspector/dist/assets/{arc-861ddd57.js → arc-632a63ec.js} +1 -1
  57. rasa/core/channels/inspector/dist/assets/{c4Diagram-d0fbc5ce-921f02db.js → c4Diagram-d0fbc5ce-081e0df4.js} +1 -1
  58. rasa/core/channels/inspector/dist/assets/{classDiagram-936ed81e-b436c4f8.js → classDiagram-936ed81e-3df0afc2.js} +1 -1
  59. rasa/core/channels/inspector/dist/assets/{classDiagram-v2-c3cb15f1-511a23cb.js → classDiagram-v2-c3cb15f1-8c5ed31e.js} +1 -1
  60. rasa/core/channels/inspector/dist/assets/{createText-62fc7601-ef476ecd.js → createText-62fc7601-89c73b31.js} +1 -1
  61. rasa/core/channels/inspector/dist/assets/{edges-f2ad444c-f1878e0a.js → edges-f2ad444c-4fc48c3e.js} +1 -1
  62. rasa/core/channels/inspector/dist/assets/{erDiagram-9d236eb7-fac75185.js → erDiagram-9d236eb7-907e0440.js} +1 -1
  63. rasa/core/channels/inspector/dist/assets/{flowDb-1972c806-201c5bbc.js → flowDb-1972c806-9ec53a3c.js} +1 -1
  64. rasa/core/channels/inspector/dist/assets/{flowDiagram-7ea5b25a-f904ae41.js → flowDiagram-7ea5b25a-41da787a.js} +1 -1
  65. rasa/core/channels/inspector/dist/assets/flowDiagram-v2-855bc5b3-8bea338b.js +1 -0
  66. rasa/core/channels/inspector/dist/assets/{flowchart-elk-definition-abe16c3d-1813da66.js → flowchart-elk-definition-abe16c3d-ce370633.js} +1 -1
  67. rasa/core/channels/inspector/dist/assets/{ganttDiagram-9b5ea136-872af172.js → ganttDiagram-9b5ea136-90a36523.js} +1 -1
  68. rasa/core/channels/inspector/dist/assets/{gitGraphDiagram-99d0ae7c-34a0af5a.js → gitGraphDiagram-99d0ae7c-41e1aa3f.js} +1 -1
  69. rasa/core/channels/inspector/dist/assets/{index-2c4b9a3b-42ba3e3d.js → index-2c4b9a3b-e6f2af62.js} +1 -1
  70. rasa/core/channels/inspector/dist/assets/{index-37817b51.js → index-e793d777.js} +3 -3
  71. rasa/core/channels/inspector/dist/assets/{infoDiagram-736b4530-6b731386.js → infoDiagram-736b4530-8ceba4db.js} +1 -1
  72. rasa/core/channels/inspector/dist/assets/{journeyDiagram-df861f2b-e8579ac6.js → journeyDiagram-df861f2b-960d3809.js} +1 -1
  73. rasa/core/channels/inspector/dist/assets/{layout-89e6403a.js → layout-498807d8.js} +1 -1
  74. rasa/core/channels/inspector/dist/assets/{line-dc73d3fc.js → line-eeccc4e2.js} +1 -1
  75. rasa/core/channels/inspector/dist/assets/{linear-f5b1d2bc.js → linear-8a078617.js} +1 -1
  76. rasa/core/channels/inspector/dist/assets/{mindmap-definition-beec6740-82cb74fa.js → mindmap-definition-beec6740-396d17dd.js} +1 -1
  77. rasa/core/channels/inspector/dist/assets/{pieDiagram-dbbf0591-bdf5f29b.js → pieDiagram-dbbf0591-dc9b5e1b.js} +1 -1
  78. rasa/core/channels/inspector/dist/assets/{quadrantDiagram-4d7f4fd6-c7a0cbe4.js → quadrantDiagram-4d7f4fd6-a08cba6d.js} +1 -1
  79. rasa/core/channels/inspector/dist/assets/{requirementDiagram-6fc4c22a-7ec5410f.js → requirementDiagram-6fc4c22a-87242b9e.js} +1 -1
  80. rasa/core/channels/inspector/dist/assets/{sankeyDiagram-8f13d901-caee5554.js → sankeyDiagram-8f13d901-53f6f391.js} +1 -1
  81. rasa/core/channels/inspector/dist/assets/{sequenceDiagram-b655622a-2935f8db.js → sequenceDiagram-b655622a-715c9c20.js} +1 -1
  82. rasa/core/channels/inspector/dist/assets/{stateDiagram-59f0c015-8f5d9693.js → stateDiagram-59f0c015-2e8fb31f.js} +1 -1
  83. rasa/core/channels/inspector/dist/assets/{stateDiagram-v2-2b26beab-d565d1de.js → stateDiagram-v2-2b26beab-7e2d2aa0.js} +1 -1
  84. rasa/core/channels/inspector/dist/assets/{styles-080da4f6-75ad421d.js → styles-080da4f6-4420cea6.js} +1 -1
  85. rasa/core/channels/inspector/dist/assets/{styles-3dcbcfbf-7e764226.js → styles-3dcbcfbf-28676cf4.js} +1 -1
  86. rasa/core/channels/inspector/dist/assets/{styles-9c745c82-7a4e0e61.js → styles-9c745c82-cef936a6.js} +1 -1
  87. rasa/core/channels/inspector/dist/assets/{svgDrawCommon-4835440b-4019d1bf.js → svgDrawCommon-4835440b-151251e9.js} +1 -1
  88. rasa/core/channels/inspector/dist/assets/{timeline-definition-5b62e21b-01ea12df.js → timeline-definition-5b62e21b-0d39bdb2.js} +1 -1
  89. rasa/core/channels/inspector/dist/assets/{xychartDiagram-2b33534f-89407137.js → xychartDiagram-2b33534f-a03fa445.js} +1 -1
  90. rasa/core/channels/inspector/dist/index.html +3 -1
  91. rasa/core/channels/inspector/index.html +2 -0
  92. rasa/core/channels/inspector/src/App.tsx +1 -4
  93. rasa/core/channels/mattermost.py +4 -4
  94. rasa/core/channels/rasa_chat.py +4 -4
  95. rasa/core/channels/rest.py +11 -12
  96. rasa/core/channels/rocketchat.py +4 -3
  97. rasa/core/channels/slack.py +6 -5
  98. rasa/core/channels/socketio.py +7 -28
  99. rasa/core/channels/studio_chat.py +193 -0
  100. rasa/core/channels/telegram.py +73 -41
  101. rasa/core/channels/twilio.py +3 -3
  102. rasa/core/channels/vier_cvg.py +2 -2
  103. rasa/core/channels/voice_ready/audiocodes.py +8 -8
  104. rasa/core/channels/voice_ready/jambonz.py +5 -5
  105. rasa/core/channels/voice_ready/jambonz_protocol.py +3 -4
  106. rasa/core/channels/voice_ready/twilio_voice.py +9 -8
  107. rasa/core/channels/voice_ready/utils.py +1 -1
  108. rasa/core/channels/voice_stream/asr/asr_engine.py +2 -2
  109. rasa/core/channels/voice_stream/asr/azure.py +2 -2
  110. rasa/core/channels/voice_stream/asr/deepgram.py +57 -16
  111. rasa/core/channels/voice_stream/browser_audio.py +9 -6
  112. rasa/core/channels/voice_stream/call_state.py +2 -1
  113. rasa/core/channels/voice_stream/tts/azure.py +1 -2
  114. rasa/core/channels/voice_stream/tts/cartesia.py +5 -4
  115. rasa/core/channels/voice_stream/tts/tts_cache.py +3 -2
  116. rasa/core/channels/voice_stream/tts/tts_engine.py +1 -1
  117. rasa/core/channels/voice_stream/twilio_media_streams.py +10 -7
  118. rasa/core/channels/voice_stream/util.py +1 -1
  119. rasa/core/channels/voice_stream/voice_channel.py +15 -15
  120. rasa/core/channels/webexteams.py +3 -4
  121. rasa/core/evaluation/marker.py +7 -6
  122. rasa/core/evaluation/marker_base.py +15 -16
  123. rasa/core/evaluation/marker_stats.py +3 -4
  124. rasa/core/evaluation/marker_tracker_loader.py +5 -4
  125. rasa/core/exporter.py +4 -4
  126. rasa/core/featurizers/precomputation.py +8 -8
  127. rasa/core/featurizers/single_state_featurizer.py +7 -7
  128. rasa/core/featurizers/tracker_featurizers.py +13 -13
  129. rasa/core/http_interpreter.py +3 -4
  130. rasa/core/information_retrieval/__init__.py +1 -1
  131. rasa/core/information_retrieval/faiss.py +4 -4
  132. rasa/core/information_retrieval/information_retrieval.py +2 -2
  133. rasa/core/information_retrieval/milvus.py +3 -3
  134. rasa/core/information_retrieval/qdrant.py +3 -3
  135. rasa/core/jobs.py +1 -0
  136. rasa/core/lock.py +2 -3
  137. rasa/core/lock_store.py +3 -3
  138. rasa/core/migrate.py +11 -8
  139. rasa/core/nlg/__init__.py +1 -1
  140. rasa/core/nlg/callback.py +2 -3
  141. rasa/core/nlg/contextual_response_rephraser.py +63 -13
  142. rasa/core/nlg/generator.py +2 -2
  143. rasa/core/nlg/interpolator.py +4 -3
  144. rasa/core/nlg/response.py +3 -4
  145. rasa/core/nlg/summarize.py +1 -0
  146. rasa/core/persistor.py +3 -3
  147. rasa/core/policies/ensemble.py +10 -9
  148. rasa/core/policies/enterprise_search_policy.py +86 -21
  149. rasa/core/policies/flow_policy.py +13 -14
  150. rasa/core/policies/flows/flow_executor.py +35 -11
  151. rasa/core/policies/intentless_policy.py +6 -7
  152. rasa/core/policies/memoization.py +22 -20
  153. rasa/core/policies/policy.py +24 -22
  154. rasa/core/policies/rule_policy.py +37 -36
  155. rasa/core/policies/ted_policy.py +87 -85
  156. rasa/core/policies/unexpected_intent_policy.py +77 -75
  157. rasa/core/processor.py +96 -65
  158. rasa/core/run.py +1 -1
  159. rasa/core/secrets_manager/endpoints.py +2 -3
  160. rasa/core/secrets_manager/factory.py +2 -3
  161. rasa/core/secrets_manager/secret_manager.py +2 -3
  162. rasa/core/secrets_manager/vault.py +2 -2
  163. rasa/core/test.py +30 -30
  164. rasa/core/tracker_store.py +15 -15
  165. rasa/core/train.py +1 -1
  166. rasa/core/training/__init__.py +2 -2
  167. rasa/core/training/converters/responses_prefix_converter.py +1 -2
  168. rasa/core/training/interactive.py +13 -13
  169. rasa/core/training/story_conflict.py +4 -5
  170. rasa/core/training/training.py +3 -5
  171. rasa/core/utils.py +5 -5
  172. rasa/core/visualize.py +1 -1
  173. rasa/dialogue_understanding/coexistence/intent_based_router.py +2 -2
  174. rasa/dialogue_understanding/coexistence/llm_based_router.py +5 -5
  175. rasa/dialogue_understanding/commands/__init__.py +22 -22
  176. rasa/dialogue_understanding/commands/can_not_handle_command.py +20 -1
  177. rasa/dialogue_understanding/commands/cancel_flow_command.py +18 -7
  178. rasa/dialogue_understanding/commands/change_flow_command.py +18 -2
  179. rasa/dialogue_understanding/commands/chit_chat_answer_command.py +18 -4
  180. rasa/dialogue_understanding/commands/clarify_command.py +19 -3
  181. rasa/dialogue_understanding/commands/command.py +19 -3
  182. rasa/dialogue_understanding/commands/correct_slots_command.py +3 -3
  183. rasa/dialogue_understanding/commands/error_command.py +1 -1
  184. rasa/dialogue_understanding/commands/free_form_answer_command.py +2 -1
  185. rasa/dialogue_understanding/commands/handle_code_change_command.py +2 -2
  186. rasa/dialogue_understanding/commands/human_handoff_command.py +16 -4
  187. rasa/dialogue_understanding/commands/knowledge_answer_command.py +18 -4
  188. rasa/dialogue_understanding/commands/noop_command.py +2 -1
  189. rasa/dialogue_understanding/commands/repeat_bot_messages_command.py +16 -4
  190. rasa/dialogue_understanding/commands/restart_command.py +2 -5
  191. rasa/dialogue_understanding/commands/session_end_command.py +3 -5
  192. rasa/dialogue_understanding/commands/session_start_command.py +3 -5
  193. rasa/dialogue_understanding/commands/set_slot_command.py +27 -3
  194. rasa/dialogue_understanding/commands/skip_question_command.py +16 -4
  195. rasa/dialogue_understanding/commands/start_flow_command.py +17 -2
  196. rasa/dialogue_understanding/commands/user_silence_command.py +3 -5
  197. rasa/dialogue_understanding/commands/utils.py +64 -45
  198. rasa/dialogue_understanding/constants.py +1 -0
  199. rasa/dialogue_understanding/generator/command_generator.py +2 -119
  200. rasa/dialogue_understanding/generator/command_parser.py +201 -0
  201. rasa/dialogue_understanding/generator/constants.py +2 -2
  202. rasa/dialogue_understanding/generator/flow_retrieval.py +7 -7
  203. rasa/dialogue_understanding/generator/llm_based_command_generator.py +11 -57
  204. rasa/dialogue_understanding/generator/llm_command_generator.py +2 -1
  205. rasa/dialogue_understanding/generator/multi_step/multi_step_llm_command_generator.py +67 -120
  206. rasa/dialogue_understanding/generator/nlu_command_adapter.py +8 -10
  207. rasa/dialogue_understanding/generator/single_step/single_step_llm_command_generator.py +32 -93
  208. rasa/dialogue_understanding/generator/utils.py +45 -0
  209. rasa/dialogue_understanding/patterns/cancel.py +2 -1
  210. rasa/dialogue_understanding/patterns/cannot_handle.py +1 -0
  211. rasa/dialogue_understanding/patterns/chitchat.py +1 -1
  212. rasa/dialogue_understanding/patterns/clarify.py +2 -1
  213. rasa/dialogue_understanding/patterns/code_change.py +2 -0
  214. rasa/dialogue_understanding/patterns/collect_information.py +6 -3
  215. rasa/dialogue_understanding/patterns/completed.py +1 -1
  216. rasa/dialogue_understanding/patterns/continue_interrupted.py +10 -1
  217. rasa/dialogue_understanding/patterns/correction.py +4 -2
  218. rasa/dialogue_understanding/patterns/human_handoff.py +1 -1
  219. rasa/dialogue_understanding/patterns/internal_error.py +1 -0
  220. rasa/dialogue_understanding/patterns/search.py +1 -1
  221. rasa/dialogue_understanding/patterns/session_start.py +1 -1
  222. rasa/dialogue_understanding/patterns/skip_question.py +1 -0
  223. rasa/dialogue_understanding/patterns/user_silence.py +1 -1
  224. rasa/dialogue_understanding/processor/command_processor.py +13 -9
  225. rasa/dialogue_understanding/processor/command_processor_component.py +1 -1
  226. rasa/dialogue_understanding/stack/dialogue_stack.py +4 -3
  227. rasa/dialogue_understanding/stack/frames/__init__.py +2 -2
  228. rasa/dialogue_understanding/stack/frames/chit_chat_frame.py +4 -1
  229. rasa/dialogue_understanding/stack/frames/dialogue_stack_frame.py +2 -3
  230. rasa/dialogue_understanding/stack/frames/flow_stack_frame.py +5 -2
  231. rasa/dialogue_understanding/stack/frames/search_frame.py +4 -1
  232. rasa/dialogue_understanding/stack/utils.py +8 -4
  233. rasa/dialogue_understanding/utils.py +121 -2
  234. rasa/dialogue_understanding_test/README.md +379 -0
  235. rasa/dialogue_understanding_test/command_comparison.py +60 -0
  236. rasa/dialogue_understanding_test/command_metric_calculation.py +110 -4
  237. rasa/dialogue_understanding_test/constants.py +6 -1
  238. rasa/dialogue_understanding_test/du_test_case.py +252 -38
  239. rasa/dialogue_understanding_test/du_test_result.py +281 -2
  240. rasa/dialogue_understanding_test/du_test_runner.py +239 -10
  241. rasa/dialogue_understanding_test/du_test_schema.yml +161 -0
  242. rasa/dialogue_understanding_test/io.py +338 -20
  243. rasa/dialogue_understanding_test/test_case_simulation/__init__.py +0 -0
  244. rasa/dialogue_understanding_test/test_case_simulation/exception.py +28 -0
  245. rasa/dialogue_understanding_test/test_case_simulation/test_case_tracker_simulator.py +336 -0
  246. rasa/dialogue_understanding_test/utils.py +70 -0
  247. rasa/dialogue_understanding_test/validation.py +59 -4
  248. rasa/e2e_test/aggregate_test_stats_calculator.py +1 -1
  249. rasa/e2e_test/assertions.py +1 -1
  250. rasa/e2e_test/e2e_config.py +1 -1
  251. rasa/e2e_test/e2e_test_case.py +3 -4
  252. rasa/e2e_test/e2e_test_converter.py +2 -3
  253. rasa/e2e_test/e2e_test_coverage_report.py +6 -6
  254. rasa/e2e_test/e2e_test_result.py +1 -1
  255. rasa/e2e_test/e2e_test_runner.py +134 -31
  256. rasa/e2e_test/stub_custom_action.py +1 -1
  257. rasa/e2e_test/utils/e2e_yaml_utils.py +1 -1
  258. rasa/e2e_test/utils/io.py +132 -65
  259. rasa/e2e_test/utils/validation.py +1 -1
  260. rasa/engine/caching.py +5 -7
  261. rasa/engine/constants.py +1 -1
  262. rasa/engine/graph.py +2 -2
  263. rasa/engine/recipes/default_components.py +13 -15
  264. rasa/engine/recipes/recipe.py +2 -2
  265. rasa/engine/runner/dask.py +2 -2
  266. rasa/engine/runner/interface.py +1 -0
  267. rasa/engine/storage/local_model_storage.py +5 -4
  268. rasa/engine/storage/resource.py +2 -1
  269. rasa/engine/storage/storage.py +5 -3
  270. rasa/engine/training/components.py +2 -1
  271. rasa/engine/training/fingerprinting.py +4 -2
  272. rasa/engine/training/graph_trainer.py +4 -4
  273. rasa/engine/training/hooks.py +2 -2
  274. rasa/engine/validation.py +34 -33
  275. rasa/exceptions.py +3 -2
  276. rasa/graph_components/converters/nlu_message_converter.py +3 -3
  277. rasa/graph_components/providers/domain_for_core_training_provider.py +3 -3
  278. rasa/graph_components/providers/domain_provider.py +3 -2
  279. rasa/graph_components/providers/flows_provider.py +2 -3
  280. rasa/graph_components/providers/forms_provider.py +4 -4
  281. rasa/graph_components/providers/nlu_training_data_provider.py +5 -3
  282. rasa/graph_components/providers/responses_provider.py +4 -4
  283. rasa/graph_components/providers/rule_only_provider.py +3 -2
  284. rasa/graph_components/providers/story_graph_provider.py +8 -8
  285. rasa/graph_components/providers/training_tracker_provider.py +3 -2
  286. rasa/graph_components/validators/default_recipe_validator.py +16 -16
  287. rasa/graph_components/validators/finetuning_validator.py +10 -8
  288. rasa/hooks.py +18 -12
  289. rasa/jupyter.py +2 -2
  290. rasa/llm_fine_tuning/annotation_module.py +4 -4
  291. rasa/llm_fine_tuning/conversations.py +6 -6
  292. rasa/llm_fine_tuning/llm_data_preparation_module.py +1 -1
  293. rasa/llm_fine_tuning/paraphrasing/conversation_rephraser.py +4 -4
  294. rasa/llm_fine_tuning/paraphrasing/rephrase_validator.py +1 -1
  295. rasa/llm_fine_tuning/paraphrasing_module.py +1 -1
  296. rasa/llm_fine_tuning/storage.py +3 -3
  297. rasa/markers/marker.py +2 -3
  298. rasa/markers/marker_base.py +1 -2
  299. rasa/markers/upload.py +2 -2
  300. rasa/markers/validate.py +2 -3
  301. rasa/model.py +3 -5
  302. rasa/model_manager/config.py +1 -1
  303. rasa/model_manager/model_api.py +5 -4
  304. rasa/model_manager/runner_service.py +6 -6
  305. rasa/model_manager/socket_bridge.py +8 -3
  306. rasa/model_manager/studio_jwt_auth.py +1 -0
  307. rasa/model_manager/trainer_service.py +9 -7
  308. rasa/model_manager/utils.py +1 -1
  309. rasa/model_manager/warm_rasa_process.py +14 -8
  310. rasa/model_service.py +5 -6
  311. rasa/model_testing.py +13 -15
  312. rasa/nlu/classifiers/diet_classifier.py +72 -73
  313. rasa/nlu/classifiers/fallback_classifier.py +9 -8
  314. rasa/nlu/classifiers/keyword_intent_classifier.py +7 -6
  315. rasa/nlu/classifiers/logistic_regression_classifier.py +3 -3
  316. rasa/nlu/classifiers/mitie_intent_classifier.py +5 -4
  317. rasa/nlu/classifiers/regex_message_handler.py +3 -2
  318. rasa/nlu/classifiers/sklearn_intent_classifier.py +2 -2
  319. rasa/nlu/convert.py +2 -2
  320. rasa/nlu/emulators/dialogflow.py +3 -3
  321. rasa/nlu/emulators/luis.py +5 -5
  322. rasa/nlu/emulators/no_emulator.py +1 -0
  323. rasa/nlu/emulators/wit.py +4 -4
  324. rasa/nlu/extractors/crf_entity_extractor.py +11 -11
  325. rasa/nlu/extractors/duckling_entity_extractor.py +7 -6
  326. rasa/nlu/extractors/entity_synonyms.py +10 -9
  327. rasa/nlu/extractors/extractor.py +16 -16
  328. rasa/nlu/extractors/mitie_entity_extractor.py +10 -9
  329. rasa/nlu/extractors/regex_entity_extractor.py +11 -10
  330. rasa/nlu/extractors/spacy_entity_extractor.py +2 -2
  331. rasa/nlu/featurizers/dense_featurizer/convert_featurizer.py +15 -14
  332. rasa/nlu/featurizers/dense_featurizer/dense_featurizer.py +2 -1
  333. rasa/nlu/featurizers/dense_featurizer/lm_featurizer.py +10 -9
  334. rasa/nlu/featurizers/dense_featurizer/mitie_featurizer.py +9 -7
  335. rasa/nlu/featurizers/dense_featurizer/spacy_featurizer.py +13 -12
  336. rasa/nlu/featurizers/featurizer.py +5 -4
  337. rasa/nlu/featurizers/sparse_featurizer/count_vectors_featurizer.py +6 -6
  338. rasa/nlu/featurizers/sparse_featurizer/lexical_syntactic_featurizer.py +4 -4
  339. rasa/nlu/featurizers/sparse_featurizer/regex_featurizer.py +4 -4
  340. rasa/nlu/featurizers/sparse_featurizer/sparse_featurizer.py +2 -0
  341. rasa/nlu/model.py +0 -1
  342. rasa/nlu/selectors/response_selector.py +67 -68
  343. rasa/nlu/test.py +38 -38
  344. rasa/nlu/tokenizers/jieba_tokenizer.py +1 -2
  345. rasa/nlu/tokenizers/mitie_tokenizer.py +2 -2
  346. rasa/nlu/tokenizers/spacy_tokenizer.py +3 -3
  347. rasa/nlu/tokenizers/tokenizer.py +6 -7
  348. rasa/nlu/tokenizers/whitespace_tokenizer.py +1 -1
  349. rasa/nlu/utils/bilou_utils.py +7 -7
  350. rasa/nlu/utils/hugging_face/registry.py +22 -22
  351. rasa/nlu/utils/hugging_face/transformers_pre_post_processors.py +2 -1
  352. rasa/nlu/utils/mitie_utils.py +2 -1
  353. rasa/nlu/utils/pattern_utils.py +1 -1
  354. rasa/nlu/utils/spacy_utils.py +3 -3
  355. rasa/plugin.py +12 -1
  356. rasa/server.py +37 -1
  357. rasa/shared/constants.py +22 -2
  358. rasa/shared/core/command_payload_reader.py +15 -7
  359. rasa/shared/core/constants.py +4 -1
  360. rasa/shared/core/conversation.py +1 -2
  361. rasa/shared/core/events.py +47 -37
  362. rasa/shared/core/flows/__init__.py +0 -1
  363. rasa/shared/core/flows/flow.py +11 -11
  364. rasa/shared/core/flows/flow_step.py +19 -13
  365. rasa/shared/core/flows/flow_step_links.py +21 -14
  366. rasa/shared/core/flows/flow_step_sequence.py +6 -4
  367. rasa/shared/core/flows/flows_list.py +3 -3
  368. rasa/shared/core/flows/nlu_trigger.py +1 -1
  369. rasa/shared/core/flows/steps/__init__.py +2 -2
  370. rasa/shared/core/flows/steps/action.py +4 -3
  371. rasa/shared/core/flows/steps/call.py +4 -4
  372. rasa/shared/core/flows/steps/collect.py +7 -4
  373. rasa/shared/core/flows/steps/continuation.py +3 -1
  374. rasa/shared/core/flows/steps/end.py +3 -1
  375. rasa/shared/core/flows/steps/internal.py +3 -2
  376. rasa/shared/core/flows/steps/link.py +6 -4
  377. rasa/shared/core/flows/steps/no_operation.py +7 -5
  378. rasa/shared/core/flows/steps/set_slots.py +4 -3
  379. rasa/shared/core/flows/steps/start.py +3 -1
  380. rasa/shared/core/flows/utils.py +1 -0
  381. rasa/shared/core/flows/validation.py +3 -5
  382. rasa/shared/core/generator.py +20 -21
  383. rasa/shared/core/slot_mappings.py +15 -15
  384. rasa/shared/core/slots.py +3 -3
  385. rasa/shared/core/trackers.py +31 -31
  386. rasa/shared/core/training_data/loading.py +1 -1
  387. rasa/shared/core/training_data/story_reader/story_reader.py +3 -3
  388. rasa/shared/core/training_data/story_reader/story_step_builder.py +4 -4
  389. rasa/shared/core/training_data/story_reader/yaml_story_reader.py +29 -31
  390. rasa/shared/core/training_data/story_writer/yaml_story_writer.py +22 -24
  391. rasa/shared/core/training_data/structures.py +11 -12
  392. rasa/shared/core/training_data/visualization.py +10 -10
  393. rasa/shared/data.py +6 -6
  394. rasa/shared/engine/caching.py +0 -1
  395. rasa/shared/exceptions.py +2 -2
  396. rasa/shared/importers/rasa.py +5 -6
  397. rasa/shared/importers/utils.py +1 -1
  398. rasa/shared/nlu/constants.py +3 -0
  399. rasa/shared/nlu/training_data/entities_parser.py +6 -6
  400. rasa/shared/nlu/training_data/features.py +3 -3
  401. rasa/shared/nlu/training_data/formats/__init__.py +1 -1
  402. rasa/shared/nlu/training_data/formats/dialogflow.py +4 -5
  403. rasa/shared/nlu/training_data/formats/luis.py +7 -8
  404. rasa/shared/nlu/training_data/formats/rasa.py +4 -5
  405. rasa/shared/nlu/training_data/formats/rasa_yaml.py +17 -16
  406. rasa/shared/nlu/training_data/formats/readerwriter.py +8 -11
  407. rasa/shared/nlu/training_data/formats/wit.py +3 -4
  408. rasa/shared/nlu/training_data/loading.py +4 -4
  409. rasa/shared/nlu/training_data/lookup_tables_parser.py +1 -1
  410. rasa/shared/nlu/training_data/message.py +13 -14
  411. rasa/shared/nlu/training_data/schemas/data_schema.py +1 -1
  412. rasa/shared/nlu/training_data/schemas/responses.yml +1 -0
  413. rasa/shared/nlu/training_data/synonyms_parser.py +3 -3
  414. rasa/shared/nlu/training_data/training_data.py +12 -13
  415. rasa/shared/nlu/training_data/util.py +11 -10
  416. rasa/shared/providers/_configs/azure_openai_client_config.py +3 -119
  417. rasa/shared/providers/_configs/client_config.py +1 -3
  418. rasa/shared/providers/_configs/default_litellm_client_config.py +1 -3
  419. rasa/shared/providers/_configs/huggingface_local_embedding_client_config.py +1 -3
  420. rasa/shared/providers/_configs/litellm_router_client_config.py +1 -3
  421. rasa/shared/providers/_configs/model_group_config.py +2 -7
  422. rasa/shared/providers/_configs/openai_client_config.py +1 -3
  423. rasa/shared/providers/_configs/rasa_llm_client_config.py +1 -3
  424. rasa/shared/providers/_configs/self_hosted_llm_client_config.py +1 -3
  425. rasa/shared/providers/_configs/utils.py +1 -0
  426. rasa/shared/providers/_ssl_verification_utils.py +5 -6
  427. rasa/shared/providers/_utils.py +5 -5
  428. rasa/shared/providers/embedding/_base_litellm_embedding_client.py +1 -1
  429. rasa/shared/providers/embedding/azure_openai_embedding_client.py +3 -26
  430. rasa/shared/providers/embedding/embedding_client.py +1 -1
  431. rasa/shared/providers/embedding/litellm_router_embedding_client.py +1 -3
  432. rasa/shared/providers/llm/_base_litellm_client.py +1 -3
  433. rasa/shared/providers/llm/azure_openai_llm_client.py +25 -79
  434. rasa/shared/providers/llm/default_litellm_llm_client.py +1 -3
  435. rasa/shared/providers/llm/litellm_router_llm_client.py +2 -21
  436. rasa/shared/providers/llm/llm_client.py +1 -3
  437. rasa/shared/providers/llm/llm_response.py +41 -2
  438. rasa/shared/providers/llm/openai_llm_client.py +3 -9
  439. rasa/shared/providers/llm/rasa_llm_client.py +6 -20
  440. rasa/shared/providers/llm/self_hosted_llm_client.py +3 -9
  441. rasa/shared/providers/mappings.py +18 -19
  442. rasa/shared/providers/router/_base_litellm_router_client.py +1 -3
  443. rasa/shared/providers/router/router_client.py +1 -3
  444. rasa/shared/utils/cli.py +1 -1
  445. rasa/shared/utils/common.py +1 -1
  446. rasa/shared/utils/health_check/embeddings_health_check_mixin.py +1 -1
  447. rasa/shared/utils/health_check/health_check.py +3 -3
  448. rasa/shared/utils/health_check/llm_health_check_mixin.py +1 -1
  449. rasa/shared/utils/io.py +1 -1
  450. rasa/shared/utils/llm.py +5 -9
  451. rasa/shared/utils/pykwalify_extensions.py +1 -1
  452. rasa/shared/utils/schemas/events.py +1 -1
  453. rasa/shared/utils/yaml.py +29 -26
  454. rasa/studio/auth.py +3 -3
  455. rasa/studio/config.py +1 -2
  456. rasa/studio/data_handler.py +3 -3
  457. rasa/studio/download.py +1 -1
  458. rasa/studio/results_logger.py +3 -3
  459. rasa/studio/upload.py +2 -0
  460. rasa/telemetry.py +31 -0
  461. rasa/tracing/config.py +3 -3
  462. rasa/tracing/instrumentation/attribute_extractors.py +2 -0
  463. rasa/tracing/instrumentation/instrumentation.py +4 -4
  464. rasa/tracing/instrumentation/intentless_policy_instrumentation.py +1 -1
  465. rasa/tracing/instrumentation/metrics.py +11 -11
  466. rasa/tracing/metric_instrument_provider.py +14 -14
  467. rasa/utils/common.py +12 -9
  468. rasa/utils/endpoints.py +1 -1
  469. rasa/utils/io.py +7 -7
  470. rasa/utils/licensing.py +3 -4
  471. rasa/utils/log_utils.py +7 -6
  472. rasa/utils/ml_utils.py +1 -0
  473. rasa/utils/plotting.py +3 -3
  474. rasa/utils/sanic_error_handler.py +1 -1
  475. rasa/utils/tensorflow/callback.py +2 -2
  476. rasa/utils/tensorflow/crf.py +2 -2
  477. rasa/utils/tensorflow/data_generator.py +5 -5
  478. rasa/utils/tensorflow/environment.py +3 -3
  479. rasa/utils/tensorflow/feature_array.py +2 -3
  480. rasa/utils/tensorflow/layers.py +18 -12
  481. rasa/utils/tensorflow/layers_utils.py +2 -1
  482. rasa/utils/tensorflow/metrics.py +2 -2
  483. rasa/utils/tensorflow/model_data.py +7 -7
  484. rasa/utils/tensorflow/model_data_utils.py +10 -9
  485. rasa/utils/tensorflow/models.py +31 -32
  486. rasa/utils/tensorflow/rasa_layers.py +20 -19
  487. rasa/utils/tensorflow/types.py +2 -1
  488. rasa/utils/train_utils.py +23 -21
  489. rasa/utils/url_tools.py +1 -1
  490. rasa/validator.py +17 -1
  491. rasa/version.py +1 -1
  492. {rasa_pro-3.12.0.dev2.dist-info → rasa_pro-3.12.0.dev3.dist-info}/METADATA +8 -9
  493. rasa_pro-3.12.0.dev3.dist-info/RECORD +800 -0
  494. rasa/core/channels/inspector/dist/assets/flowDiagram-v2-855bc5b3-b080d6f2.js +0 -1
  495. rasa/shared/providers/_configs/azure_entra_id_client_creds.py +0 -40
  496. rasa/shared/providers/_configs/azure_entra_id_config.py +0 -533
  497. rasa/shared/providers/_configs/oauth_config.py +0 -33
  498. rasa/shared/providers/constants.py +0 -6
  499. rasa_pro-3.12.0.dev2.dist-info/RECORD +0 -793
  500. {rasa_pro-3.12.0.dev2.dist-info → rasa_pro-3.12.0.dev3.dist-info}/NOTICE +0 -0
  501. {rasa_pro-3.12.0.dev2.dist-info → rasa_pro-3.12.0.dev3.dist-info}/WHEEL +0 -0
  502. {rasa_pro-3.12.0.dev2.dist-info → rasa_pro-3.12.0.dev3.dist-info}/entry_points.txt +0 -0
@@ -435,7 +435,7 @@ ${f}"]:::collect
435
435
  `)),a+=f+n[l+1]}),a}var lX={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Nn,function(){var r=1e3,n=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",u="day",c="week",f="month",A="quarter",h="year",m="date",v="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var K=["th","st","nd","rd"],Y=U%100;return"["+U+(K[(Y-20)%10]||K[Y]||K[0])+"]"}},k=function(U,K,Y){var j=String(U);return!j||j.length>=K?U:""+Array(K+1-j.length).join(Y)+U},P={s:k,z:function(U){var K=-U.utcOffset(),Y=Math.abs(K),j=Math.floor(Y/60),H=Y%60;return(K<=0?"+":"-")+k(j,2,"0")+":"+k(H,2,"0")},m:function U(K,Y){if(K.date()<Y.date())return-U(Y,K);var j=12*(Y.year()-K.year())+(Y.month()-K.month()),H=K.clone().add(j,f),$=Y-H<0,q=K.clone().add(j+($?-1:1),f);return+(-(j+(Y-H)/($?H-q:q-H))||0)},a:function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},p:function(U){return{M:f,y:h,w:c,d:u,D:m,h:l,m:s,s:a,ms:i,Q:A}[U]||String(U||"").toLowerCase().replace(/s$/,"")},u:function(U){return U===void 0}},O="en",L={};L[O]=C;var B="$isDayjsObject",M=function(U){return U instanceof R||!(!U||!U[B])},F=function U(K,Y,j){var H;if(!K)return O;if(typeof K=="string"){var $=K.toLowerCase();L[$]&&(H=$),Y&&(L[$]=Y,H=$);var q=K.split("-");if(!H&&q.length>1)return U(q[0])}else{var Z=K.name;L[Z]=K,H=Z}return!j&&H&&(O=H),H||!j&&O},N=function(U,K){if(M(U))return U.clone();var Y=typeof K=="object"?K:{};return Y.date=U,Y.args=arguments,new R(Y)},z=P;z.l=F,z.i=M,z.w=function(U,K){return N(U,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var R=function(){function U(Y){this.$L=F(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[B]=!0}var K=U.prototype;return K.parse=function(Y){this.$d=function(j){var H=j.date,$=j.utc;if(H===null)return new Date(NaN);if(z.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var q=H.match(w);if(q){var Z=q[2]-1||0,ue=(q[7]||"0").substring(0,3);return $?new Date(Date.UTC(q[1],Z,q[3]||1,q[4]||0,q[5]||0,q[6]||0,ue)):new Date(q[1],Z,q[3]||1,q[4]||0,q[5]||0,q[6]||0,ue)}}return new Date(H)}(Y),this.init()},K.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},K.$utils=function(){return z},K.isValid=function(){return this.$d.toString()!==v},K.isSame=function(Y,j){var H=N(Y);return this.startOf(j)<=H&&H<=this.endOf(j)},K.isAfter=function(Y,j){return N(Y)<this.startOf(j)},K.isBefore=function(Y,j){return this.endOf(j)<N(Y)},K.$g=function(Y,j,H){return z.u(Y)?this[j]:this.set(H,Y)},K.unix=function(){return Math.floor(this.valueOf()/1e3)},K.valueOf=function(){return this.$d.getTime()},K.startOf=function(Y,j){var H=this,$=!!z.u(j)||j,q=z.p(Y),Z=function(Oe,Fe){var $e=z.w(H.$u?Date.UTC(H.$y,Fe,Oe):new Date(H.$y,Fe,Oe),H);return $?$e:$e.endOf(u)},ue=function(Oe,Fe){return z.w(H.toDate()[Oe].apply(H.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(Fe)),H)},Q=this.$W,fe=this.$M,ye=this.$D,le="set"+(this.$u?"UTC":"");switch(q){case h:return $?Z(1,0):Z(31,11);case f:return $?Z(1,fe):Z(0,fe+1);case c:var Le=this.$locale().weekStart||0,ge=(Q<Le?Q+7:Q)-Le;return Z($?ye-ge:ye+(6-ge),fe);case u:case m:return ue(le+"Hours",0);case l:return ue(le+"Minutes",1);case s:return ue(le+"Seconds",2);case a:return ue(le+"Milliseconds",3);default:return this.clone()}},K.endOf=function(Y){return this.startOf(Y,!1)},K.$set=function(Y,j){var H,$=z.p(Y),q="set"+(this.$u?"UTC":""),Z=(H={},H[u]=q+"Date",H[m]=q+"Date",H[f]=q+"Month",H[h]=q+"FullYear",H[l]=q+"Hours",H[s]=q+"Minutes",H[a]=q+"Seconds",H[i]=q+"Milliseconds",H)[$],ue=$===u?this.$D+(j-this.$W):j;if($===f||$===h){var Q=this.clone().set(m,1);Q.$d[Z](ue),Q.init(),this.$d=Q.set(m,Math.min(this.$D,Q.daysInMonth())).$d}else Z&&this.$d[Z](ue);return this.init(),this},K.set=function(Y,j){return this.clone().$set(Y,j)},K.get=function(Y){return this[z.p(Y)]()},K.add=function(Y,j){var H,$=this;Y=Number(Y);var q=z.p(j),Z=function(fe){var ye=N($);return z.w(ye.date(ye.date()+Math.round(fe*Y)),$)};if(q===f)return this.set(f,this.$M+Y);if(q===h)return this.set(h,this.$y+Y);if(q===u)return Z(1);if(q===c)return Z(7);var ue=(H={},H[s]=n,H[l]=o,H[a]=r,H)[q]||1,Q=this.$d.getTime()+Y*ue;return z.w(Q,this)},K.subtract=function(Y,j){return this.add(-1*Y,j)},K.format=function(Y){var j=this,H=this.$locale();if(!this.isValid())return H.invalidDate||v;var $=Y||"YYYY-MM-DDTHH:mm:ssZ",q=z.z(this),Z=this.$H,ue=this.$m,Q=this.$M,fe=H.weekdays,ye=H.months,le=H.meridiem,Le=function(Fe,$e,He,ae){return Fe&&(Fe[$e]||Fe(j,$))||He[$e].slice(0,ae)},ge=function(Fe){return z.s(Z%12||12,Fe,"0")},Oe=le||function(Fe,$e,He){var ae=Fe<12?"AM":"PM";return He?ae.toLowerCase():ae};return $.replace(x,function(Fe,$e){return $e||function(He){switch(He){case"YY":return String(j.$y).slice(-2);case"YYYY":return z.s(j.$y,4,"0");case"M":return Q+1;case"MM":return z.s(Q+1,2,"0");case"MMM":return Le(H.monthsShort,Q,ye,3);case"MMMM":return Le(ye,Q);case"D":return j.$D;case"DD":return z.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Le(H.weekdaysMin,j.$W,fe,2);case"ddd":return Le(H.weekdaysShort,j.$W,fe,3);case"dddd":return fe[j.$W];case"H":return String(Z);case"HH":return z.s(Z,2,"0");case"h":return ge(1);case"hh":return ge(2);case"a":return Oe(Z,ue,!0);case"A":return Oe(Z,ue,!1);case"m":return String(ue);case"mm":return z.s(ue,2,"0");case"s":return String(j.$s);case"ss":return z.s(j.$s,2,"0");case"SSS":return z.s(j.$ms,3,"0");case"Z":return q}return null}(Fe)||q.replace(":","")})},K.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},K.diff=function(Y,j,H){var $,q=this,Z=z.p(j),ue=N(Y),Q=(ue.utcOffset()-this.utcOffset())*n,fe=this-ue,ye=function(){return z.m(q,ue)};switch(Z){case h:$=ye()/12;break;case f:$=ye();break;case A:$=ye()/3;break;case c:$=(fe-Q)/6048e5;break;case u:$=(fe-Q)/864e5;break;case l:$=fe/o;break;case s:$=fe/n;break;case a:$=fe/r;break;default:$=fe}return H?$:z.a($)},K.daysInMonth=function(){return this.endOf(f).$D},K.$locale=function(){return L[this.$L]},K.locale=function(Y,j){if(!Y)return this.$L;var H=this.clone(),$=F(Y,j,!0);return $&&(H.$L=$),H},K.clone=function(){return z.w(this.$d,this)},K.toDate=function(){return new Date(this.valueOf())},K.toJSON=function(){return this.isValid()?this.toISOString():null},K.toISOString=function(){return this.$d.toISOString()},K.toString=function(){return this.$d.toUTCString()},U}(),W=R.prototype;return N.prototype=W,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",u],["$M",f],["$y",h],["$D",m]].forEach(function(U){W[U[1]]=function(K){return this.$g(K,U[0],U[1])}}),N.extend=function(U,K){return U.$i||(U(K,R,N),U.$i=!0),N},N.locale=F,N.isDayjs=M,N.unix=function(U){return N(1e3*U)},N.en=L[O],N.Ls=L,N.p={},N})})(lX);var s0e=lX.exports;const l0e=f1(s0e);var uX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=e.BLANK_URL=void 0;var t=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,n=/&(newline|tab);/gi,o=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,i=/^.+(:|&colon;)/gim,a=[".","/"];e.BLANK_URL="about:blank";function s(c){return a.indexOf(c[0])>-1}function l(c){var f=c.replace(o,"");return f.replace(r,function(A,h){return String.fromCharCode(h)})}function u(c){if(!c)return e.BLANK_URL;var f=l(c).replace(n,"").replace(o,"").trim();if(!f)return e.BLANK_URL;if(s(f))return f;var A=f.match(i);if(!A)return f;var h=A[0];return t.test(h)?e.BLANK_URL:f}e.sanitizeUrl=u})(uX);var u0e={value:()=>{}};function cX(){for(var e=0,t=arguments.length,r={},n;e<t;++e){if(!(n=arguments[e]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new q2(r)}function q2(e){this._=e}function c0e(e,t){return e.trim().split(/^|\s+/).map(function(r){var n="",o=r.indexOf(".");if(o>=0&&(n=r.slice(o+1),r=r.slice(0,o)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}q2.prototype=cX.prototype={constructor:q2,on:function(e,t){var r=this._,n=c0e(e+"",r),o,i=-1,a=n.length;if(arguments.length<2){for(;++i<a;)if((o=(e=n[i]).type)&&(o=f0e(r[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<a;)if(o=(e=n[i]).type)r[o]=QM(r[o],e.name,t);else if(t==null)for(o in r)r[o]=QM(r[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new q2(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var r=new Array(o),n=0,o,i;n<o;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],n=0,o=i.length;n<o;++n)i[n].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],o=0,i=n.length;o<i;++o)n[o].value.apply(t,r)}};function f0e(e,t){for(var r=0,n=e.length,o;r<n;++r)if((o=e[r]).name===t)return o.value}function QM(e,t,r){for(var n=0,o=e.length;n<o;++n)if(e[n].name===t){e[n]=u0e,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var e5="http://www.w3.org/1999/xhtml";const GM={svg:"http://www.w3.org/2000/svg",xhtml:e5,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function jC(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),GM.hasOwnProperty(t)?{space:GM[t],local:e}:e}function d0e(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===e5&&t.documentElement.namespaceURI===e5?t.createElement(e):t.createElementNS(r,e)}}function A0e(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function fX(e){var t=jC(e);return(t.local?A0e:d0e)(t)}function h0e(){}function iT(e){return e==null?h0e:function(){return this.querySelector(e)}}function p0e(e){typeof e!="function"&&(e=iT(e));for(var t=this._groups,r=t.length,n=new Array(r),o=0;o<r;++o)for(var i=t[o],a=i.length,s=n[o]=new Array(a),l,u,c=0;c<a;++c)(l=i[c])&&(u=e.call(l,l.__data__,c,i))&&("__data__"in l&&(u.__data__=l.__data__),s[c]=u);return new us(n,this._parents)}function m0e(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function g0e(){return[]}function dX(e){return e==null?g0e:function(){return this.querySelectorAll(e)}}function v0e(e){return function(){return m0e(e.apply(this,arguments))}}function y0e(e){typeof e=="function"?e=v0e(e):e=dX(e);for(var t=this._groups,r=t.length,n=[],o=[],i=0;i<r;++i)for(var a=t[i],s=a.length,l,u=0;u<s;++u)(l=a[u])&&(n.push(e.call(l,l.__data__,u,a)),o.push(l));return new us(n,o)}function AX(e){return function(){return this.matches(e)}}function hX(e){return function(t){return t.matches(e)}}var b0e=Array.prototype.find;function w0e(e){return function(){return b0e.call(this.children,e)}}function x0e(){return this.firstElementChild}function C0e(e){return this.select(e==null?x0e:w0e(typeof e=="function"?e:hX(e)))}var S0e=Array.prototype.filter;function k0e(){return Array.from(this.children)}function E0e(e){return function(){return S0e.call(this.children,e)}}function T0e(e){return this.selectAll(e==null?k0e:E0e(typeof e=="function"?e:hX(e)))}function P0e(e){typeof e!="function"&&(e=AX(e));for(var t=this._groups,r=t.length,n=new Array(r),o=0;o<r;++o)for(var i=t[o],a=i.length,s=n[o]=[],l,u=0;u<a;++u)(l=i[u])&&e.call(l,l.__data__,u,i)&&s.push(l);return new us(n,this._parents)}function pX(e){return new Array(e.length)}function O0e(){return new us(this._enter||this._groups.map(pX),this._parents)}function nx(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}nx.prototype={constructor:nx,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function B0e(e){return function(){return e}}function L0e(e,t,r,n,o,i){for(var a=0,s,l=t.length,u=i.length;a<u;++a)(s=t[a])?(s.__data__=i[a],n[a]=s):r[a]=new nx(e,i[a]);for(;a<l;++a)(s=t[a])&&(o[a]=s)}function M0e(e,t,r,n,o,i,a){var s,l,u=new Map,c=t.length,f=i.length,A=new Array(c),h;for(s=0;s<c;++s)(l=t[s])&&(A[s]=h=a.call(l,l.__data__,s,t)+"",u.has(h)?o[s]=l:u.set(h,l));for(s=0;s<f;++s)h=a.call(e,i[s],s,i)+"",(l=u.get(h))?(n[s]=l,l.__data__=i[s],u.delete(h)):r[s]=new nx(e,i[s]);for(s=0;s<c;++s)(l=t[s])&&u.get(A[s])===l&&(o[s]=l)}function D0e(e){return e.__data__}function I0e(e,t){if(!arguments.length)return Array.from(this,D0e);var r=t?M0e:L0e,n=this._parents,o=this._groups;typeof e!="function"&&(e=B0e(e));for(var i=o.length,a=new Array(i),s=new Array(i),l=new Array(i),u=0;u<i;++u){var c=n[u],f=o[u],A=f.length,h=N0e(e.call(c,c&&c.__data__,u,n)),m=h.length,v=s[u]=new Array(m),w=a[u]=new Array(m),x=l[u]=new Array(A);r(c,f,v,w,x,h,t);for(var C=0,k=0,P,O;C<m;++C)if(P=v[C]){for(C>=k&&(k=C+1);!(O=w[k])&&++k<m;);P._next=O||null}}return a=new us(a,n),a._enter=s,a._exit=l,a}function N0e(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function R0e(){return new us(this._exit||this._groups.map(pX),this._parents)}function F0e(e,t,r){var n=this.enter(),o=this,i=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),r==null?i.remove():r(i),n&&o?n.merge(o).order():o}function z0e(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,o=r.length,i=n.length,a=Math.min(o,i),s=new Array(o),l=0;l<a;++l)for(var u=r[l],c=n[l],f=u.length,A=s[l]=new Array(f),h,m=0;m<f;++m)(h=u[m]||c[m])&&(A[m]=h);for(;l<o;++l)s[l]=r[l];return new us(s,this._parents)}function j0e(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n=e[t],o=n.length-1,i=n[o],a;--o>=0;)(a=n[o])&&(i&&a.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(a,i),i=a);return this}function H0e(e){e||(e=_0e);function t(f,A){return f&&A?e(f.__data__,A.__data__):!f-!A}for(var r=this._groups,n=r.length,o=new Array(n),i=0;i<n;++i){for(var a=r[i],s=a.length,l=o[i]=new Array(s),u,c=0;c<s;++c)(u=a[c])&&(l[c]=u);l.sort(t)}return new us(o,this._parents).order()}function _0e(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function X0e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function V0e(){return Array.from(this)}function q0e(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],o=0,i=n.length;o<i;++o){var a=n[o];if(a)return a}return null}function W0e(){let e=0;for(const t of this)++e;return e}function U0e(){return!this.node()}function Q0e(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var o=t[r],i=0,a=o.length,s;i<a;++i)(s=o[i])&&e.call(s,s.__data__,i,o);return this}function G0e(e){return function(){this.removeAttribute(e)}}function Y0e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Z0e(e,t){return function(){this.setAttribute(e,t)}}function J0e(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function K0e(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function $0e(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function eye(e,t){var r=jC(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?Y0e:G0e:typeof t=="function"?r.local?$0e:K0e:r.local?J0e:Z0e)(r,t))}function mX(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function tye(e){return function(){this.style.removeProperty(e)}}function rye(e,t,r){return function(){this.style.setProperty(e,t,r)}}function nye(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function iye(e,t,r){return arguments.length>1?this.each((t==null?tye:typeof t=="function"?nye:rye)(e,t,r??"")):mg(this.node(),e)}function mg(e,t){return e.style.getPropertyValue(t)||mX(e).getComputedStyle(e,null).getPropertyValue(t)}function oye(e){return function(){delete this[e]}}function aye(e,t){return function(){this[e]=t}}function sye(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function lye(e,t){return arguments.length>1?this.each((t==null?oye:typeof t=="function"?sye:aye)(e,t)):this.node()[e]}function gX(e){return e.trim().split(/^|\s+/)}function oT(e){return e.classList||new vX(e)}function vX(e){this._node=e,this._names=gX(e.getAttribute("class")||"")}vX.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function yX(e,t){for(var r=oT(e),n=-1,o=t.length;++n<o;)r.add(t[n])}function bX(e,t){for(var r=oT(e),n=-1,o=t.length;++n<o;)r.remove(t[n])}function uye(e){return function(){yX(this,e)}}function cye(e){return function(){bX(this,e)}}function fye(e,t){return function(){(t.apply(this,arguments)?yX:bX)(this,e)}}function dye(e,t){var r=gX(e+"");if(arguments.length<2){for(var n=oT(this.node()),o=-1,i=r.length;++o<i;)if(!n.contains(r[o]))return!1;return!0}return this.each((typeof t=="function"?fye:t?uye:cye)(r,t))}function Aye(){this.textContent=""}function hye(e){return function(){this.textContent=e}}function pye(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function mye(e){return arguments.length?this.each(e==null?Aye:(typeof e=="function"?pye:hye)(e)):this.node().textContent}function gye(){this.innerHTML=""}function vye(e){return function(){this.innerHTML=e}}function yye(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function bye(e){return arguments.length?this.each(e==null?gye:(typeof e=="function"?yye:vye)(e)):this.node().innerHTML}function wye(){this.nextSibling&&this.parentNode.appendChild(this)}function xye(){return this.each(wye)}function Cye(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Sye(){return this.each(Cye)}function kye(e){var t=typeof e=="function"?e:fX(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Eye(){return null}function Tye(e,t){var r=typeof e=="function"?e:fX(e),n=t==null?Eye:typeof t=="function"?t:iT(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function Pye(){var e=this.parentNode;e&&e.removeChild(this)}function Oye(){return this.each(Pye)}function Bye(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Lye(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mye(e){return this.select(e?Lye:Bye)}function Dye(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Iye(e){return function(t){e.call(this,t,this.__data__)}}function Nye(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function Rye(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,o=t.length,i;r<o;++r)i=t[r],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++n]=i;++n?t.length=n:delete this.__on}}}function Fye(e,t,r){return function(){var n=this.__on,o,i=Iye(t);if(n){for(var a=0,s=n.length;a<s;++a)if((o=n[a]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=r),o.value=t;return}}this.addEventListener(e.type,i,r),o={type:e.type,name:e.name,value:t,listener:i,options:r},n?n.push(o):this.__on=[o]}}function zye(e,t,r){var n=Nye(e+""),o,i=n.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,c;l<u;++l)for(o=0,c=s[l];o<i;++o)if((a=n[o]).type===c.type&&a.name===c.name)return c.value}return}for(s=t?Fye:Rye,o=0;o<i;++o)this.each(s(n[o],t,r));return this}function wX(e,t,r){var n=mX(e),o=n.CustomEvent;typeof o=="function"?o=new o(t,r):(o=n.document.createEvent("Event"),r?(o.initEvent(t,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function jye(e,t){return function(){return wX(this,e,t)}}function Hye(e,t){return function(){return wX(this,e,t.apply(this,arguments))}}function _ye(e,t){return this.each((typeof t=="function"?Hye:jye)(e,t))}function*Xye(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],o=0,i=n.length,a;o<i;++o)(a=n[o])&&(yield a)}var xX=[null];function us(e,t){this._groups=e,this._parents=t}function D1(){return new us([[document.documentElement]],xX)}function Vye(){return this}us.prototype=D1.prototype={constructor:us,select:p0e,selectAll:y0e,selectChild:C0e,selectChildren:T0e,filter:P0e,data:I0e,enter:O0e,exit:R0e,join:F0e,merge:z0e,selection:Vye,order:j0e,sort:H0e,call:X0e,nodes:V0e,node:q0e,size:W0e,empty:U0e,each:Q0e,attr:eye,style:iye,property:lye,classed:dye,text:mye,html:bye,raise:xye,lower:Sye,append:kye,insert:Tye,remove:Oye,clone:Mye,datum:Dye,on:zye,dispatch:_ye,[Symbol.iterator]:Xye};function Ds(e){return typeof e=="string"?new us([[document.querySelector(e)]],[document.documentElement]):new us([[e]],xX)}function aT(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function CX(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function I1(){}var Qy=.7,ix=1/Qy,Zm="\\s*([+-]?\\d+)\\s*",Gy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qye=/^#([0-9a-f]{3,8})$/,Wye=new RegExp(`^rgb\\(${Zm},${Zm},${Zm}\\)$`),Uye=new RegExp(`^rgb\\(${wu},${wu},${wu}\\)$`),Qye=new RegExp(`^rgba\\(${Zm},${Zm},${Zm},${Gy}\\)$`),Gye=new RegExp(`^rgba\\(${wu},${wu},${wu},${Gy}\\)$`),Yye=new RegExp(`^hsl\\(${Gy},${wu},${wu}\\)$`),Zye=new RegExp(`^hsla\\(${Gy},${wu},${wu},${Gy}\\)$`),YM={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};aT(I1,Yy,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ZM,formatHex:ZM,formatHex8:Jye,formatHsl:Kye,formatRgb:JM,toString:JM});function ZM(){return this.rgb().formatHex()}function Jye(){return this.rgb().formatHex8()}function Kye(){return SX(this).formatHsl()}function JM(){return this.rgb().formatRgb()}function Yy(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=qye.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?KM(t):r===3?new Ta(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Vw(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Vw(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Wye.exec(e))?new Ta(t[1],t[2],t[3],1):(t=Uye.exec(e))?new Ta(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Qye.exec(e))?Vw(t[1],t[2],t[3],t[4]):(t=Gye.exec(e))?Vw(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Yye.exec(e))?tD(t[1],t[2]/100,t[3]/100,1):(t=Zye.exec(e))?tD(t[1],t[2]/100,t[3]/100,t[4]):YM.hasOwnProperty(e)?KM(YM[e]):e==="transparent"?new Ta(NaN,NaN,NaN,0):null}function KM(e){return new Ta(e>>16&255,e>>8&255,e&255,1)}function Vw(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ta(e,t,r,n)}function $ye(e){return e instanceof I1||(e=Yy(e)),e?(e=e.rgb(),new Ta(e.r,e.g,e.b,e.opacity)):new Ta}function t5(e,t,r,n){return arguments.length===1?$ye(e):new Ta(e,t,r,n??1)}function Ta(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}aT(Ta,t5,CX(I1,{brighter(e){return e=e==null?ix:Math.pow(ix,e),new Ta(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Qy:Math.pow(Qy,e),new Ta(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ta(KA(this.r),KA(this.g),KA(this.b),ox(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$M,formatHex:$M,formatHex8:e1e,formatRgb:eD,toString:eD}));function $M(){return`#${XA(this.r)}${XA(this.g)}${XA(this.b)}`}function e1e(){return`#${XA(this.r)}${XA(this.g)}${XA(this.b)}${XA((isNaN(this.opacity)?1:this.opacity)*255)}`}function eD(){const e=ox(this.opacity);return`${e===1?"rgb(":"rgba("}${KA(this.r)}, ${KA(this.g)}, ${KA(this.b)}${e===1?")":`, ${e})`}`}function ox(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function KA(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function XA(e){return e=KA(e),(e<16?"0":"")+e.toString(16)}function tD(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new pl(e,t,r,n)}function SX(e){if(e instanceof pl)return new pl(e.h,e.s,e.l,e.opacity);if(e instanceof I1||(e=Yy(e)),!e)return new pl;if(e instanceof pl)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(r-n)/s+(r<n)*6:r===i?a=(n-t)/s+2:a=(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new pl(a,s,l,e.opacity)}function t1e(e,t,r,n){return arguments.length===1?SX(e):new pl(e,t,r,n??1)}function pl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}aT(pl,t1e,CX(I1,{brighter(e){return e=e==null?ix:Math.pow(ix,e),new pl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Qy:Math.pow(Qy,e),new pl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Ta(Rk(e>=240?e-240:e+120,o,n),Rk(e,o,n),Rk(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new pl(rD(this.h),qw(this.s),qw(this.l),ox(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ox(this.opacity);return`${e===1?"hsl(":"hsla("}${rD(this.h)}, ${qw(this.s)*100}%, ${qw(this.l)*100}%${e===1?")":`, ${e})`}`}}));function rD(e){return e=(e||0)%360,e<0?e+360:e}function qw(e){return Math.max(0,Math.min(1,e||0))}function Rk(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const sT=e=>()=>e;function kX(e,t){return function(r){return e+r*t}}function r1e(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function $Pe(e,t){var r=t-e;return r?kX(e,r>180||r<-180?r-360*Math.round(r/360):r):sT(isNaN(e)?t:e)}function n1e(e){return(e=+e)==1?EX:function(t,r){return r-t?r1e(t,r,e):sT(isNaN(t)?r:t)}}function EX(e,t){var r=t-e;return r?kX(e,r):sT(isNaN(e)?t:e)}const nD=function e(t){var r=n1e(t);function n(o,i){var a=r((o=t5(o)).r,(i=t5(i)).r),s=r(o.g,i.g),l=r(o.b,i.b),u=EX(o.opacity,i.opacity);return function(c){return o.r=a(c),o.g=s(c),o.b=l(c),o.opacity=u(c),o+""}}return n.gamma=e,n}(1);function zf(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var r5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fk=new RegExp(r5.source,"g");function i1e(e){return function(){return e}}function o1e(e){return function(t){return e(t)+""}}function a1e(e,t){var r=r5.lastIndex=Fk.lastIndex=0,n,o,i,a=-1,s=[],l=[];for(e=e+"",t=t+"";(n=r5.exec(e))&&(o=Fk.exec(t));)(i=o.index)>r&&(i=t.slice(r,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:zf(n,o)})),r=Fk.lastIndex;return r<t.length&&(i=t.slice(r),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?o1e(l[0].x):i1e(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)s[(f=l[c]).i]=f.x(u);return s.join("")})}var iD=180/Math.PI,n5={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function TX(e,t,r,n,o,i){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n<t*r&&(e=-e,t=-t,l=-l,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*iD,skewX:Math.atan(l)*iD,scaleX:a,scaleY:s}}var Ww;function s1e(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?n5:TX(t.a,t.b,t.c,t.d,t.e,t.f)}function l1e(e){return e==null||(Ww||(Ww=document.createElementNS("http://www.w3.org/2000/svg","g")),Ww.setAttribute("transform",e),!(e=Ww.transform.baseVal.consolidate()))?n5:(e=e.matrix,TX(e.a,e.b,e.c,e.d,e.e,e.f))}function PX(e,t,r,n){function o(u){return u.length?u.pop()+" ":""}function i(u,c,f,A,h,m){if(u!==f||c!==A){var v=h.push("translate(",null,t,null,r);m.push({i:v-4,x:zf(u,f)},{i:v-2,x:zf(c,A)})}else(f||A)&&h.push("translate("+f+t+A+r)}function a(u,c,f,A){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),A.push({i:f.push(o(f)+"rotate(",null,n)-2,x:zf(u,c)})):c&&f.push(o(f)+"rotate("+c+n)}function s(u,c,f,A){u!==c?A.push({i:f.push(o(f)+"skewX(",null,n)-2,x:zf(u,c)}):c&&f.push(o(f)+"skewX("+c+n)}function l(u,c,f,A,h,m){if(u!==f||c!==A){var v=h.push(o(h)+"scale(",null,",",null,")");m.push({i:v-4,x:zf(u,f)},{i:v-2,x:zf(c,A)})}else(f!==1||A!==1)&&h.push(o(h)+"scale("+f+","+A+")")}return function(u,c){var f=[],A=[];return u=e(u),c=e(c),i(u.translateX,u.translateY,c.translateX,c.translateY,f,A),a(u.rotate,c.rotate,f,A),s(u.skewX,c.skewX,f,A),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,A),u=c=null,function(h){for(var m=-1,v=A.length,w;++m<v;)f[(w=A[m]).i]=w.x(h);return f.join("")}}}var u1e=PX(s1e,"px, ","px)","deg)"),c1e=PX(l1e,", ",")",")"),gg=0,T0=0,l0=0,OX=1e3,ax,P0,sx=0,fh=0,HC=0,Zy=typeof performance=="object"&&performance.now?performance:Date,BX=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function lT(){return fh||(BX(f1e),fh=Zy.now()+HC)}function f1e(){fh=0}function lx(){this._call=this._time=this._next=null}lx.prototype=LX.prototype={constructor:lx,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?lT():+r)+(t==null?0:+t),!this._next&&P0!==this&&(P0?P0._next=this:ax=this,P0=this),this._call=e,this._time=r,i5()},stop:function(){this._call&&(this._call=null,this._time=1/0,i5())}};function LX(e,t,r){var n=new lx;return n.restart(e,t,r),n}function d1e(){lT(),++gg;for(var e=ax,t;e;)(t=fh-e._time)>=0&&e._call.call(void 0,t),e=e._next;--gg}function oD(){fh=(sx=Zy.now())+HC,gg=T0=0;try{d1e()}finally{gg=0,h1e(),fh=0}}function A1e(){var e=Zy.now(),t=e-sx;t>OX&&(HC-=t,sx=e)}function h1e(){for(var e,t=ax,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:ax=r);P0=e,i5(n)}function i5(e){if(!gg){T0&&(T0=clearTimeout(T0));var t=e-fh;t>24?(e<1/0&&(T0=setTimeout(oD,e-Zy.now()-HC)),l0&&(l0=clearInterval(l0))):(l0||(sx=Zy.now(),l0=setInterval(A1e,OX)),gg=1,BX(oD))}}function aD(e,t,r){var n=new lx;return t=t==null?0:+t,n.restart(o=>{n.stop(),e(o+t)},t,r),n}var p1e=cX("start","end","cancel","interrupt"),m1e=[],MX=0,sD=1,o5=2,W2=3,lD=4,a5=5,U2=6;function _C(e,t,r,n,o,i){var a=e.__transition;if(!a)e.__transition={};else if(r in a)return;g1e(e,r,{name:t,index:n,group:o,on:p1e,tween:m1e,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:MX})}function uT(e,t){var r=wl(e,t);if(r.state>MX)throw new Error("too late; already scheduled");return r}function Lu(e,t){var r=wl(e,t);if(r.state>W2)throw new Error("too late; already running");return r}function wl(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function g1e(e,t,r){var n=e.__transition,o;n[t]=r,r.timer=LX(i,0,r.time);function i(u){r.state=sD,r.timer.restart(a,r.delay,r.time),r.delay<=u&&a(u-r.delay)}function a(u){var c,f,A,h;if(r.state!==sD)return l();for(c in n)if(h=n[c],h.name===r.name){if(h.state===W2)return aD(a);h.state===lD?(h.state=U2,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete n[c]):+c<t&&(h.state=U2,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete n[c])}if(aD(function(){r.state===W2&&(r.state=lD,r.timer.restart(s,r.delay,r.time),s(u))}),r.state=o5,r.on.call("start",e,e.__data__,r.index,r.group),r.state===o5){for(r.state=W2,o=new Array(A=r.tween.length),c=0,f=-1;c<A;++c)(h=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(o[++f]=h);o.length=f+1}}function s(u){for(var c=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(l),r.state=a5,1),f=-1,A=o.length;++f<A;)o[f].call(e,c);r.state===a5&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=U2,r.timer.stop(),delete n[t];for(var u in n)return;delete e.__transition}}function v1e(e,t){var r=e.__transition,n,o,i=!0,a;if(r){t=t==null?null:t+"";for(a in r){if((n=r[a]).name!==t){i=!1;continue}o=n.state>o5&&n.state<a5,n.state=U2,n.timer.stop(),n.on.call(o?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[a]}i&&delete e.__transition}}function y1e(e){return this.each(function(){v1e(this,e)})}function b1e(e,t){var r,n;return function(){var o=Lu(this,e),i=o.tween;if(i!==r){n=r=i;for(var a=0,s=n.length;a<s;++a)if(n[a].name===t){n=n.slice(),n.splice(a,1);break}}o.tween=n}}function w1e(e,t,r){var n,o;if(typeof r!="function")throw new Error;return function(){var i=Lu(this,e),a=i.tween;if(a!==n){o=(n=a).slice();for(var s={name:t,value:r},l=0,u=o.length;l<u;++l)if(o[l].name===t){o[l]=s;break}l===u&&o.push(s)}i.tween=o}}function x1e(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=wl(this.node(),r).tween,o=0,i=n.length,a;o<i;++o)if((a=n[o]).name===e)return a.value;return null}return this.each((t==null?b1e:w1e)(r,e,t))}function cT(e,t,r){var n=e._id;return e.each(function(){var o=Lu(this,n);(o.value||(o.value={}))[t]=r.apply(this,arguments)}),function(o){return wl(o,n).value[t]}}function DX(e,t){var r;return(typeof t=="number"?zf:t instanceof Yy?nD:(r=Yy(t))?(t=r,nD):a1e)(e,t)}function C1e(e){return function(){this.removeAttribute(e)}}function S1e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function k1e(e,t,r){var n,o=r+"",i;return function(){var a=this.getAttribute(e);return a===o?null:a===n?i:i=t(n=a,r)}}function E1e(e,t,r){var n,o=r+"",i;return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===n?i:i=t(n=a,r)}}function T1e(e,t,r){var n,o,i;return function(){var a,s=r(this),l;return s==null?void this.removeAttribute(e):(a=this.getAttribute(e),l=s+"",a===l?null:a===n&&l===o?i:(o=l,i=t(n=a,s)))}}function P1e(e,t,r){var n,o,i;return function(){var a,s=r(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),l=s+"",a===l?null:a===n&&l===o?i:(o=l,i=t(n=a,s)))}}function O1e(e,t){var r=jC(e),n=r==="transform"?c1e:DX;return this.attrTween(e,typeof t=="function"?(r.local?P1e:T1e)(r,n,cT(this,"attr."+e,t)):t==null?(r.local?S1e:C1e)(r):(r.local?E1e:k1e)(r,n,t))}function B1e(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function L1e(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function M1e(e,t){var r,n;function o(){var i=t.apply(this,arguments);return i!==n&&(r=(n=i)&&L1e(e,i)),r}return o._value=t,o}function D1e(e,t){var r,n;function o(){var i=t.apply(this,arguments);return i!==n&&(r=(n=i)&&B1e(e,i)),r}return o._value=t,o}function I1e(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=jC(e);return this.tween(r,(n.local?M1e:D1e)(n,t))}function N1e(e,t){return function(){uT(this,e).delay=+t.apply(this,arguments)}}function R1e(e,t){return t=+t,function(){uT(this,e).delay=t}}function F1e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?N1e:R1e)(t,e)):wl(this.node(),t).delay}function z1e(e,t){return function(){Lu(this,e).duration=+t.apply(this,arguments)}}function j1e(e,t){return t=+t,function(){Lu(this,e).duration=t}}function H1e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?z1e:j1e)(t,e)):wl(this.node(),t).duration}function _1e(e,t){if(typeof t!="function")throw new Error;return function(){Lu(this,e).ease=t}}function X1e(e){var t=this._id;return arguments.length?this.each(_1e(t,e)):wl(this.node(),t).ease}function V1e(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Lu(this,e).ease=r}}function q1e(e){if(typeof e!="function")throw new Error;return this.each(V1e(this._id,e))}function W1e(e){typeof e!="function"&&(e=AX(e));for(var t=this._groups,r=t.length,n=new Array(r),o=0;o<r;++o)for(var i=t[o],a=i.length,s=n[o]=[],l,u=0;u<a;++u)(l=i[u])&&e.call(l,l.__data__,u,i)&&s.push(l);return new Rc(n,this._parents,this._name,this._id)}function U1e(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,o=r.length,i=Math.min(n,o),a=new Array(n),s=0;s<i;++s)for(var l=t[s],u=r[s],c=l.length,f=a[s]=new Array(c),A,h=0;h<c;++h)(A=l[h]||u[h])&&(f[h]=A);for(;s<n;++s)a[s]=t[s];return new Rc(a,this._parents,this._name,this._id)}function Q1e(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function G1e(e,t,r){var n,o,i=Q1e(t)?uT:Lu;return function(){var a=i(this,e),s=a.on;s!==n&&(o=(n=s).copy()).on(t,r),a.on=o}}function Y1e(e,t){var r=this._id;return arguments.length<2?wl(this.node(),r).on.on(e):this.each(G1e(r,e,t))}function Z1e(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function J1e(){return this.on("end.remove",Z1e(this._id))}function K1e(e){var t=this._name,r=this._id;typeof e!="function"&&(e=iT(e));for(var n=this._groups,o=n.length,i=new Array(o),a=0;a<o;++a)for(var s=n[a],l=s.length,u=i[a]=new Array(l),c,f,A=0;A<l;++A)(c=s[A])&&(f=e.call(c,c.__data__,A,s))&&("__data__"in c&&(f.__data__=c.__data__),u[A]=f,_C(u[A],t,r,A,u,wl(c,r)));return new Rc(i,this._parents,t,r)}function $1e(e){var t=this._name,r=this._id;typeof e!="function"&&(e=dX(e));for(var n=this._groups,o=n.length,i=[],a=[],s=0;s<o;++s)for(var l=n[s],u=l.length,c,f=0;f<u;++f)if(c=l[f]){for(var A=e.call(c,c.__data__,f,l),h,m=wl(c,r),v=0,w=A.length;v<w;++v)(h=A[v])&&_C(h,t,r,v,A,m);i.push(A),a.push(c)}return new Rc(i,a,t,r)}var ebe=D1.prototype.constructor;function tbe(){return new ebe(this._groups,this._parents)}function rbe(e,t){var r,n,o;return function(){var i=mg(this,e),a=(this.style.removeProperty(e),mg(this,e));return i===a?null:i===r&&a===n?o:o=t(r=i,n=a)}}function IX(e){return function(){this.style.removeProperty(e)}}function nbe(e,t,r){var n,o=r+"",i;return function(){var a=mg(this,e);return a===o?null:a===n?i:i=t(n=a,r)}}function ibe(e,t,r){var n,o,i;return function(){var a=mg(this,e),s=r(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),mg(this,e))),a===l?null:a===n&&l===o?i:(o=l,i=t(n=a,s))}}function obe(e,t){var r,n,o,i="style."+t,a="end."+i,s;return function(){var l=Lu(this,e),u=l.on,c=l.value[i]==null?s||(s=IX(t)):void 0;(u!==r||o!==c)&&(n=(r=u).copy()).on(a,o=c),l.on=n}}function abe(e,t,r){var n=(e+="")=="transform"?u1e:DX;return t==null?this.styleTween(e,rbe(e,n)).on("end.style."+e,IX(e)):typeof t=="function"?this.styleTween(e,ibe(e,n,cT(this,"style."+e,t))).each(obe(this._id,e)):this.styleTween(e,nbe(e,n,t),r).on("end.style."+e,null)}function sbe(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function lbe(e,t,r){var n,o;function i(){var a=t.apply(this,arguments);return a!==o&&(n=(o=a)&&sbe(e,a,r)),n}return i._value=t,i}function ube(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,lbe(e,t,r??""))}function cbe(e){return function(){this.textContent=e}}function fbe(e){return function(){var t=e(this);this.textContent=t??""}}function dbe(e){return this.tween("text",typeof e=="function"?fbe(cT(this,"text",e)):cbe(e==null?"":e+""))}function Abe(e){return function(t){this.textContent=e.call(this,t)}}function hbe(e){var t,r;function n(){var o=e.apply(this,arguments);return o!==r&&(t=(r=o)&&Abe(o)),t}return n._value=e,n}function pbe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,hbe(e))}function mbe(){for(var e=this._name,t=this._id,r=NX(),n=this._groups,o=n.length,i=0;i<o;++i)for(var a=n[i],s=a.length,l,u=0;u<s;++u)if(l=a[u]){var c=wl(l,t);_C(l,e,r,u,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Rc(n,this._parents,e,r)}function gbe(){var e,t,r=this,n=r._id,o=r.size();return new Promise(function(i,a){var s={value:a},l={value:function(){--o===0&&i()}};r.each(function(){var u=Lu(this,n),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),u.on=t}),o===0&&i()})}var vbe=0;function Rc(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function NX(){return++vbe}var lc=D1.prototype;Rc.prototype={constructor:Rc,select:K1e,selectAll:$1e,selectChild:lc.selectChild,selectChildren:lc.selectChildren,filter:W1e,merge:U1e,selection:tbe,transition:mbe,call:lc.call,nodes:lc.nodes,node:lc.node,size:lc.size,empty:lc.empty,each:lc.each,on:Y1e,attr:O1e,attrTween:I1e,style:abe,styleTween:ube,text:dbe,textTween:pbe,remove:J1e,tween:x1e,delay:F1e,duration:H1e,ease:X1e,easeVarying:q1e,end:gbe,[Symbol.iterator]:lc[Symbol.iterator]};function ybe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var bbe={time:null,delay:0,duration:250,ease:ybe};function wbe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function xbe(e){var t,r;e instanceof Rc?(t=e._id,e=e._name):(t=NX(),(r=bbe).time=lT(),e=e==null?null:e+"");for(var n=this._groups,o=n.length,i=0;i<o;++i)for(var a=n[i],s=a.length,l,u=0;u<s;++u)(l=a[u])&&_C(l,e,t,u,a,r||wbe(l,t));return new Rc(n,this._parents,e,t)}D1.prototype.interrupt=y1e;D1.prototype.transition=xbe;const e8e=Math.abs,t8e=Math.atan2,r8e=Math.cos,n8e=Math.max,i8e=Math.min,o8e=Math.sin,a8e=Math.sqrt,uD=1e-12,fT=Math.PI,cD=fT/2,s8e=2*fT;function l8e(e){return e>1?0:e<-1?fT:Math.acos(e)}function u8e(e){return e>=1?cD:e<=-1?-cD:Math.asin(e)}function RX(e){this._context=e}RX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Cbe(e){return new RX(e)}class FX{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Sbe(e){return new FX(e,!0)}function kbe(e){return new FX(e,!1)}function fd(){}function ux(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function XC(e){this._context=e}XC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ux(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ux(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ebe(e){return new XC(e)}function zX(e){this._context=e}zX.prototype={areaStart:fd,areaEnd:fd,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ux(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Tbe(e){return new zX(e)}function jX(e){this._context=e}jX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ux(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Pbe(e){return new jX(e)}function HX(e,t){this._basis=new XC(e),this._beta=t}HX.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n=e[0],o=t[0],i=e[r]-n,a=t[r]-o,s=-1,l;++s<=r;)l=s/r,this._basis.point(this._beta*e[s]+(1-this._beta)*(n+l*i),this._beta*t[s]+(1-this._beta)*(o+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Obe=function e(t){function r(n){return t===1?new XC(n):new HX(n,t)}return r.beta=function(n){return e(+n)},r}(.85);function cx(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function dT(e,t){this._context=e,this._k=(1-t)/6}dT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:cx(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:cx(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Bbe=function e(t){function r(n){return new dT(n,t)}return r.tension=function(n){return e(+n)},r}(0);function AT(e,t){this._context=e,this._k=(1-t)/6}AT.prototype={areaStart:fd,areaEnd:fd,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:cx(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Lbe=function e(t){function r(n){return new AT(n,t)}return r.tension=function(n){return e(+n)},r}(0);function hT(e,t){this._context=e,this._k=(1-t)/6}hT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:cx(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Mbe=function e(t){function r(n){return new hT(n,t)}return r.tension=function(n){return e(+n)},r}(0);function pT(e,t,r){var n=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>uD){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>uD){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-r*e._l12_2a)/c}e._context.bezierCurveTo(n,o,i,a,e._x2,e._y2)}function _X(e,t){this._context=e,this._alpha=t}_X.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:pT(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Dbe=function e(t){function r(n){return t?new _X(n,t):new dT(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function XX(e,t){this._context=e,this._alpha=t}XX.prototype={areaStart:fd,areaEnd:fd,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:pT(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ibe=function e(t){function r(n){return t?new XX(n,t):new AT(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function VX(e,t){this._context=e,this._alpha=t}VX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:pT(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Nbe=function e(t){function r(n){return t?new VX(n,t):new hT(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function qX(e){this._context=e}qX.prototype={areaStart:fd,areaEnd:fd,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Rbe(e){return new qX(e)}function fD(e){return e<0?-1:1}function dD(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),a=(r-e._y1)/(o||n<0&&-0),s=(i*o+a*n)/(n+o);return(fD(i)+fD(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function AD(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function zk(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,o+s*t,i-s,a-s*r,i,a)}function fx(e){this._context=e}fx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zk(this,this._t0,AD(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,zk(this,AD(this,r=dD(this,e,t)),r);break;default:zk(this,this._t0,r=dD(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function WX(e){this._context=new UX(e)}(WX.prototype=Object.create(fx.prototype)).point=function(e,t){fx.prototype.point.call(this,t,e)};function UX(e){this._context=e}UX.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}};function Fbe(e){return new fx(e)}function zbe(e){return new WX(e)}function QX(e){this._context=e}QX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=hD(e),o=hD(t),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],e[a],t[a]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function hD(e){var t,r=e.length-1,n,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function jbe(e){return new QX(e)}function VC(e,t){this._context=e,this._t=t}VC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Hbe(e){return new VC(e,.5)}function _be(e){return new VC(e,0)}function Xbe(e){return new VC(e,1)}function O0(e,t,r){this.k=e,this.x=t,this.y=r}O0.prototype={constructor:O0,scale:function(e){return e===1?this:new O0(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new O0(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};O0.prototype;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:GX,setPrototypeOf:pD,isFrozen:Vbe,getPrototypeOf:qbe,getOwnPropertyDescriptor:YX}=Object;let{freeze:ra,seal:bl,create:ZX}=Object,{apply:s5,construct:l5}=typeof Reflect<"u"&&Reflect;ra||(ra=function(t){return t});bl||(bl=function(t){return t});s5||(s5=function(t,r,n){return t.apply(r,n)});l5||(l5=function(t,r){return new t(...r)});const Uw=Us(Array.prototype.forEach),mD=Us(Array.prototype.pop),u0=Us(Array.prototype.push),Q2=Us(String.prototype.toLowerCase),jk=Us(String.prototype.toString),Wbe=Us(String.prototype.match),c0=Us(String.prototype.replace),Ube=Us(String.prototype.indexOf),Qbe=Us(String.prototype.trim),Ya=Us(RegExp.prototype.test),f0=Gbe(TypeError);function Us(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return s5(e,t,n)}}function Gbe(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return l5(e,r)}}function Wr(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Q2;pD&&pD(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const i=r(o);i!==o&&(Vbe(t)||(t[n]=i),o=i)}e[o]=!0}return e}function nm(e){const t=ZX(null);for(const[r,n]of GX(e))YX(e,r)!==void 0&&(t[r]=n);return t}function Qw(e,t){for(;e!==null;){const n=YX(e,t);if(n){if(n.get)return Us(n.get);if(typeof n.value=="function")return Us(n.value)}e=qbe(e)}function r(n){return console.warn("fallback value for",n),null}return r}const gD=ra(["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"]),Hk=ra(["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"]),_k=ra(["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"]),Ybe=ra(["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"]),Xk=ra(["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"]),Zbe=ra(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),vD=ra(["#text"]),yD=ra(["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","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","xmlns","slot"]),Vk=ra(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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"]),bD=ra(["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"]),Gw=ra(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Jbe=bl(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Kbe=bl(/<%[\w\W]*|[\w\W]*%>/gm),$be=bl(/\${[\w\W]*}/gm),ewe=bl(/^data-[\-\w.\u00B7-\uFFFF]/),twe=bl(/^aria-[\-\w]+$/),JX=bl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rwe=bl(/^(?:\w+script|data):/i),nwe=bl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),KX=bl(/^html$/i);var wD=Object.freeze({__proto__:null,MUSTACHE_EXPR:Jbe,ERB_EXPR:Kbe,TMPLIT_EXPR:$be,DATA_ATTR:ewe,ARIA_ATTR:twe,IS_ALLOWED_URI:JX,IS_SCRIPT_OR_DATA:rwe,ATTR_WHITESPACE:nwe,DOCTYPE_NAME:KX});const iwe=function(){return typeof window>"u"?null:window},owe=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function $X(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iwe();const t=jt=>$X(jt);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:A,trustedTypes:h}=e,m=l.prototype,v=Qw(m,"cloneNode"),w=Qw(m,"nextSibling"),x=Qw(m,"childNodes"),C=Qw(m,"parentNode");if(typeof a=="function"){const jt=r.createElement("template");jt.content&&jt.content.ownerDocument&&(r=jt.content.ownerDocument)}let k,P="";const{implementation:O,createNodeIterator:L,createDocumentFragment:B,getElementsByTagName:M}=r,{importNode:F}=n;let N={};t.isSupported=typeof GX=="function"&&typeof C=="function"&&O&&O.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:z,ERB_EXPR:R,TMPLIT_EXPR:W,DATA_ATTR:U,ARIA_ATTR:K,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:j}=wD;let{IS_ALLOWED_URI:H}=wD,$=null;const q=Wr({},[...gD,...Hk,..._k,...Xk,...vD]);let Z=null;const ue=Wr({},[...yD,...Vk,...bD,...Gw]);let Q=Object.seal(ZX(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}})),fe=null,ye=null,le=!0,Le=!0,ge=!1,Oe=!0,Fe=!1,$e=!1,He=!1,ae=!1,lt=!1,et=!1,Ve=!1,he=!0,Dt=!1;const wt="user-content-";let Lt=!0,_t=!1,at={},ct=null;const pt=Wr({},["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 St=null;const Re=Wr({},["audio","video","img","source","image","track"]);let We=null;const Ue=Wr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",st="http://www.w3.org/1999/xhtml";let xt=st,Ct=!1,ot=null;const gt=Wr({},[bt,nt,st],jk);let kt=null;const Jt=["application/xhtml+xml","text/html"],Gt="text/html";let Nt=null,wr=null;const tn=r.createElement("form"),Kr=function(ee){return ee instanceof RegExp||ee instanceof Function},Ln=function(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(wr&&wr===ee)){if((!ee||typeof ee!="object")&&(ee={}),ee=nm(ee),kt=Jt.indexOf(ee.PARSER_MEDIA_TYPE)===-1?kt=Gt:kt=ee.PARSER_MEDIA_TYPE,Nt=kt==="application/xhtml+xml"?jk:Q2,$="ALLOWED_TAGS"in ee?Wr({},ee.ALLOWED_TAGS,Nt):q,Z="ALLOWED_ATTR"in ee?Wr({},ee.ALLOWED_ATTR,Nt):ue,ot="ALLOWED_NAMESPACES"in ee?Wr({},ee.ALLOWED_NAMESPACES,jk):gt,We="ADD_URI_SAFE_ATTR"in ee?Wr(nm(Ue),ee.ADD_URI_SAFE_ATTR,Nt):Ue,St="ADD_DATA_URI_TAGS"in ee?Wr(nm(Re),ee.ADD_DATA_URI_TAGS,Nt):Re,ct="FORBID_CONTENTS"in ee?Wr({},ee.FORBID_CONTENTS,Nt):pt,fe="FORBID_TAGS"in ee?Wr({},ee.FORBID_TAGS,Nt):{},ye="FORBID_ATTR"in ee?Wr({},ee.FORBID_ATTR,Nt):{},at="USE_PROFILES"in ee?ee.USE_PROFILES:!1,le=ee.ALLOW_ARIA_ATTR!==!1,Le=ee.ALLOW_DATA_ATTR!==!1,ge=ee.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=ee.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Fe=ee.SAFE_FOR_TEMPLATES||!1,$e=ee.WHOLE_DOCUMENT||!1,lt=ee.RETURN_DOM||!1,et=ee.RETURN_DOM_FRAGMENT||!1,Ve=ee.RETURN_TRUSTED_TYPE||!1,ae=ee.FORCE_BODY||!1,he=ee.SANITIZE_DOM!==!1,Dt=ee.SANITIZE_NAMED_PROPS||!1,Lt=ee.KEEP_CONTENT!==!1,_t=ee.IN_PLACE||!1,H=ee.ALLOWED_URI_REGEXP||JX,xt=ee.NAMESPACE||st,Q=ee.CUSTOM_ELEMENT_HANDLING||{},ee.CUSTOM_ELEMENT_HANDLING&&Kr(ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Q.tagNameCheck=ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ee.CUSTOM_ELEMENT_HANDLING&&Kr(ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Q.attributeNameCheck=ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ee.CUSTOM_ELEMENT_HANDLING&&typeof ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Q.allowCustomizedBuiltInElements=ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Fe&&(Le=!1),et&&(lt=!0),at&&($=Wr({},[...vD]),Z=[],at.html===!0&&(Wr($,gD),Wr(Z,yD)),at.svg===!0&&(Wr($,Hk),Wr(Z,Vk),Wr(Z,Gw)),at.svgFilters===!0&&(Wr($,_k),Wr(Z,Vk),Wr(Z,Gw)),at.mathMl===!0&&(Wr($,Xk),Wr(Z,bD),Wr(Z,Gw))),ee.ADD_TAGS&&($===q&&($=nm($)),Wr($,ee.ADD_TAGS,Nt)),ee.ADD_ATTR&&(Z===ue&&(Z=nm(Z)),Wr(Z,ee.ADD_ATTR,Nt)),ee.ADD_URI_SAFE_ATTR&&Wr(We,ee.ADD_URI_SAFE_ATTR,Nt),ee.FORBID_CONTENTS&&(ct===pt&&(ct=nm(ct)),Wr(ct,ee.FORBID_CONTENTS,Nt)),Lt&&($["#text"]=!0),$e&&Wr($,["html","head","body"]),$.table&&(Wr($,["tbody"]),delete fe.tbody),ee.TRUSTED_TYPES_POLICY){if(typeof ee.TRUSTED_TYPES_POLICY.createHTML!="function")throw f0('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ee.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw f0('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=ee.TRUSTED_TYPES_POLICY,P=k.createHTML("")}else k===void 0&&(k=owe(h,o)),k!==null&&typeof P=="string"&&(P=k.createHTML(""));ra&&ra(ee),wr=ee}},Yr=Wr({},["mi","mo","mn","ms","mtext"]),Wt=Wr({},["foreignobject","desc","title","annotation-xml"]),Xr=Wr({},["title","style","font","a","script"]),Rn=Wr({},Hk);Wr(Rn,_k),Wr(Rn,Ybe);const Sn=Wr({},Xk);Wr(Sn,Zbe);const Yn=function(ee){let Pe=C(ee);(!Pe||!Pe.tagName)&&(Pe={namespaceURI:xt,tagName:"template"});const Ye=Q2(ee.tagName),Ge=Q2(Pe.tagName);return ot[ee.namespaceURI]?ee.namespaceURI===nt?Pe.namespaceURI===st?Ye==="svg":Pe.namespaceURI===bt?Ye==="svg"&&(Ge==="annotation-xml"||Yr[Ge]):!!Rn[Ye]:ee.namespaceURI===bt?Pe.namespaceURI===st?Ye==="math":Pe.namespaceURI===nt?Ye==="math"&&Wt[Ge]:!!Sn[Ye]:ee.namespaceURI===st?Pe.namespaceURI===nt&&!Wt[Ge]||Pe.namespaceURI===bt&&!Yr[Ge]?!1:!Sn[Ye]&&(Xr[Ye]||!Rn[Ye]):!!(kt==="application/xhtml+xml"&&ot[ee.namespaceURI]):!1},fn=function(ee){u0(t.removed,{element:ee});try{ee.parentNode.removeChild(ee)}catch{ee.remove()}},ir=function(ee,Pe){try{u0(t.removed,{attribute:Pe.getAttributeNode(ee),from:Pe})}catch{u0(t.removed,{attribute:null,from:Pe})}if(Pe.removeAttribute(ee),ee==="is"&&!Z[ee])if(lt||et)try{fn(Pe)}catch{}else try{Pe.setAttribute(ee,"")}catch{}},aa=function(ee){let Pe=null,Ye=null;if(ae)ee="<remove></remove>"+ee;else{const it=Wbe(ee,/^[\r\n\t ]+/);Ye=it&&it[0]}kt==="application/xhtml+xml"&&xt===st&&(ee='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ee+"</body></html>");const Ge=k?k.createHTML(ee):ee;if(xt===st)try{Pe=new A().parseFromString(Ge,kt)}catch{}if(!Pe||!Pe.documentElement){Pe=O.createDocument(xt,"template",null);try{Pe.documentElement.innerHTML=Ct?P:Ge}catch{}}const qt=Pe.body||Pe.documentElement;return ee&&Ye&&qt.insertBefore(r.createTextNode(Ye),qt.childNodes[0]||null),xt===st?M.call(Pe,$e?"html":"body")[0]:$e?Pe.documentElement:qt},Do=function(ee){return L.call(ee.ownerDocument||ee,ee,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},sa=function(ee){return ee instanceof f&&(typeof ee.nodeName!="string"||typeof ee.textContent!="string"||typeof ee.removeChild!="function"||!(ee.attributes instanceof c)||typeof ee.removeAttribute!="function"||typeof ee.setAttribute!="function"||typeof ee.namespaceURI!="string"||typeof ee.insertBefore!="function"||typeof ee.hasChildNodes!="function")},Ai=function(ee){return typeof s=="function"&&ee instanceof s},wn=function(ee,Pe,Ye){N[ee]&&Uw(N[ee],Ge=>{Ge.call(t,Pe,Ye,wr)})},ai=function(ee){let Pe=null;if(wn("beforeSanitizeElements",ee,null),sa(ee))return fn(ee),!0;const Ye=Nt(ee.nodeName);if(wn("uponSanitizeElement",ee,{tagName:Ye,allowedTags:$}),ee.hasChildNodes()&&!Ai(ee.firstElementChild)&&Ya(/<[/\w]/g,ee.innerHTML)&&Ya(/<[/\w]/g,ee.textContent))return fn(ee),!0;if(!$[Ye]||fe[Ye]){if(!fe[Ye]&&vo(Ye)&&(Q.tagNameCheck instanceof RegExp&&Ya(Q.tagNameCheck,Ye)||Q.tagNameCheck instanceof Function&&Q.tagNameCheck(Ye)))return!1;if(Lt&&!ct[Ye]){const Ge=C(ee)||ee.parentNode,qt=x(ee)||ee.childNodes;if(qt&&Ge){const it=qt.length;for(let fr=it-1;fr>=0;--fr)Ge.insertBefore(v(qt[fr],!0),w(ee))}}return fn(ee),!0}return ee instanceof l&&!Yn(ee)||(Ye==="noscript"||Ye==="noembed"||Ye==="noframes")&&Ya(/<\/no(script|embed|frames)/i,ee.innerHTML)?(fn(ee),!0):(Fe&&ee.nodeType===3&&(Pe=ee.textContent,Uw([z,R,W],Ge=>{Pe=c0(Pe,Ge," ")}),ee.textContent!==Pe&&(u0(t.removed,{element:ee.cloneNode()}),ee.textContent=Pe)),wn("afterSanitizeElements",ee,null),!1)},go=function(ee,Pe,Ye){if(he&&(Pe==="id"||Pe==="name")&&(Ye in r||Ye in tn))return!1;if(!(Le&&!ye[Pe]&&Ya(U,Pe))){if(!(le&&Ya(K,Pe))){if(!Z[Pe]||ye[Pe]){if(!(vo(ee)&&(Q.tagNameCheck instanceof RegExp&&Ya(Q.tagNameCheck,ee)||Q.tagNameCheck instanceof Function&&Q.tagNameCheck(ee))&&(Q.attributeNameCheck instanceof RegExp&&Ya(Q.attributeNameCheck,Pe)||Q.attributeNameCheck instanceof Function&&Q.attributeNameCheck(Pe))||Pe==="is"&&Q.allowCustomizedBuiltInElements&&(Q.tagNameCheck instanceof RegExp&&Ya(Q.tagNameCheck,Ye)||Q.tagNameCheck instanceof Function&&Q.tagNameCheck(Ye))))return!1}else if(!We[Pe]){if(!Ya(H,c0(Ye,j,""))){if(!((Pe==="src"||Pe==="xlink:href"||Pe==="href")&&ee!=="script"&&Ube(Ye,"data:")===0&&St[ee])){if(!(ge&&!Ya(Y,c0(Ye,j,"")))){if(Ye)return!1}}}}}}return!0},vo=function(ee){return ee.indexOf("-")>0},kn=function(ee){wn("beforeSanitizeAttributes",ee,null);const{attributes:Pe}=ee;if(!Pe)return;const Ye={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Z};let Ge=Pe.length;for(;Ge--;){const qt=Pe[Ge],{name:it,namespaceURI:fr,value:Dr}=qt,dr=Nt(it);let mt=it==="value"?Dr:Qbe(Dr);if(Ye.attrName=dr,Ye.attrValue=mt,Ye.keepAttr=!0,Ye.forceKeepAttr=void 0,wn("uponSanitizeAttribute",ee,Ye),mt=Ye.attrValue,Ye.forceKeepAttr||(ir(it,ee),!Ye.keepAttr))continue;if(!Oe&&Ya(/\/>/i,mt)){ir(it,ee);continue}Fe&&Uw([z,R,W],Kt=>{mt=c0(mt,Kt," ")});const Zr=Nt(ee.nodeName);if(go(Zr,dr,mt)){if(Dt&&(dr==="id"||dr==="name")&&(ir(it,ee),mt=wt+mt),k&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!fr)switch(h.getAttributeType(Zr,dr)){case"TrustedHTML":{mt=k.createHTML(mt);break}case"TrustedScriptURL":{mt=k.createScriptURL(mt);break}}try{fr?ee.setAttributeNS(fr,it,mt):ee.setAttribute(it,mt),mD(t.removed)}catch{}}}wn("afterSanitizeAttributes",ee,null)},Io=function jt(ee){let Pe=null;const Ye=Do(ee);for(wn("beforeSanitizeShadowDOM",ee,null);Pe=Ye.nextNode();)wn("uponSanitizeShadowNode",Pe,null),!ai(Pe)&&(Pe.content instanceof i&&jt(Pe.content),kn(Pe));wn("afterSanitizeShadowDOM",ee,null)};return t.sanitize=function(jt){let ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=null,Ye=null,Ge=null,qt=null;if(Ct=!jt,Ct&&(jt="<!-->"),typeof jt!="string"&&!Ai(jt))if(typeof jt.toString=="function"){if(jt=jt.toString(),typeof jt!="string")throw f0("dirty is not a string, aborting")}else throw f0("toString is not a function");if(!t.isSupported)return jt;if(He||Ln(ee),t.removed=[],typeof jt=="string"&&(_t=!1),_t){if(jt.nodeName){const Dr=Nt(jt.nodeName);if(!$[Dr]||fe[Dr])throw f0("root node is forbidden and cannot be sanitized in-place")}}else if(jt instanceof s)Pe=aa("<!---->"),Ye=Pe.ownerDocument.importNode(jt,!0),Ye.nodeType===1&&Ye.nodeName==="BODY"||Ye.nodeName==="HTML"?Pe=Ye:Pe.appendChild(Ye);else{if(!lt&&!Fe&&!$e&&jt.indexOf("<")===-1)return k&&Ve?k.createHTML(jt):jt;if(Pe=aa(jt),!Pe)return lt?null:Ve?P:""}Pe&&ae&&fn(Pe.firstChild);const it=Do(_t?jt:Pe);for(;Ge=it.nextNode();)ai(Ge)||(Ge.content instanceof i&&Io(Ge.content),kn(Ge));if(_t)return jt;if(lt){if(et)for(qt=B.call(Pe.ownerDocument);Pe.firstChild;)qt.appendChild(Pe.firstChild);else qt=Pe;return(Z.shadowroot||Z.shadowrootmode)&&(qt=F.call(n,qt,!0)),qt}let fr=$e?Pe.outerHTML:Pe.innerHTML;return $e&&$["!doctype"]&&Pe.ownerDocument&&Pe.ownerDocument.doctype&&Pe.ownerDocument.doctype.name&&Ya(KX,Pe.ownerDocument.doctype.name)&&(fr="<!DOCTYPE "+Pe.ownerDocument.doctype.name+`>
436
436
  `+fr),Fe&&Uw([z,R,W],Dr=>{fr=c0(fr,Dr," ")}),k&&Ve?k.createHTML(fr):fr},t.setConfig=function(){let jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ln(jt),He=!0},t.clearConfig=function(){wr=null,He=!1},t.isValidAttribute=function(jt,ee,Pe){wr||Ln({});const Ye=Nt(jt),Ge=Nt(ee);return go(Ye,Ge,Pe)},t.addHook=function(jt,ee){typeof ee=="function"&&(N[jt]=N[jt]||[],u0(N[jt],ee))},t.removeHook=function(jt){if(N[jt])return mD(N[jt])},t.removeHooks=function(jt){N[jt]&&(N[jt]=[])},t.removeAllHooks=function(){N={}},t}var dx=$X();const G2={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},n)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const o=r<.5?r*(1+t):r+t-r*t,i=2*r-o;switch(n){case"r":return G2.hue2rgb(i,o,e+1/3)*255;case"g":return G2.hue2rgb(i,o,e)*255;case"b":return G2.hue2rgb(i,o,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},n)=>{e/=255,t/=255,r/=255;const o=Math.max(e,t,r),i=Math.min(e,t,r),a=(o+i)/2;if(n==="l")return a*100;if(o===i)return 0;const s=o-i,l=a>.5?s/(2-o-i):s/(o+i);if(n==="s")return l*100;switch(o){case e:return((t-r)/s+(t<r?6:0))*60;case t:return((r-e)/s+2)*60;case r:return((e-t)/s+4)*60;default:return-1}}},awe=G2,swe={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},lwe=swe,uwe={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},cwe=uwe,fwe={channel:awe,lang:lwe,unit:cwe},Lr=fwe,If={};for(let e=0;e<=255;e++)If[e]=Lr.unit.dec2hex(e);const To={ALL:0,RGB:1,HSL:2};class dwe{constructor(){this.type=To.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=To.ALL}is(t){return this.type===t}}const Awe=dwe;class hwe{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new Awe}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=To.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:n,l:o}=t;r===void 0&&(t.h=Lr.channel.rgb2hsl(t,"h")),n===void 0&&(t.s=Lr.channel.rgb2hsl(t,"s")),o===void 0&&(t.l=Lr.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:n,b:o}=t;r===void 0&&(t.r=Lr.channel.hsl2rgb(t,"r")),n===void 0&&(t.g=Lr.channel.hsl2rgb(t,"g")),o===void 0&&(t.b=Lr.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(To.HSL)&&r!==void 0?r:(this._ensureHSL(),Lr.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(To.HSL)&&r!==void 0?r:(this._ensureHSL(),Lr.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(To.HSL)&&r!==void 0?r:(this._ensureHSL(),Lr.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(To.RGB)&&r!==void 0?r:(this._ensureRGB(),Lr.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(To.RGB)&&r!==void 0?r:(this._ensureRGB(),Lr.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(To.RGB)&&r!==void 0?r:(this._ensureRGB(),Lr.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(To.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(To.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(To.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(To.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(To.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(To.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const pwe=hwe,mwe=new pwe({r:0,g:0,b:0,a:0},"transparent"),qC=mwe,eV={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(eV.re);if(!t)return;const r=t[1],n=parseInt(r,16),o=r.length,i=o%4===0,a=o>4,s=a?1:17,l=a?8:4,u=i?0:-1,c=a?255:15;return qC.set({r:(n>>l*(u+3)&c)*s,g:(n>>l*(u+2)&c)*s,b:(n>>l*(u+1)&c)*s,a:i?(n&c)*s/255:1},e)},stringify:e=>{const{r:t,g:r,b:n,a:o}=e;return o<1?`#${If[Math.round(t)]}${If[Math.round(r)]}${If[Math.round(n)]}${If[Math.round(o*255)]}`:`#${If[Math.round(t)]}${If[Math.round(r)]}${If[Math.round(n)]}`}},ny=eV,Y2={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(Y2.hueRe);if(t){const[,r,n]=t;switch(n){case"grad":return Lr.channel.clamp.h(parseFloat(r)*.9);case"rad":return Lr.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Lr.channel.clamp.h(parseFloat(r)*360)}}return Lr.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(Y2.re);if(!r)return;const[,n,o,i,a,s]=r;return qC.set({h:Y2._hue2deg(n),s:Lr.channel.clamp.s(parseFloat(o)),l:Lr.channel.clamp.l(parseFloat(i)),a:a?Lr.channel.clamp.a(s?parseFloat(a)/100:parseFloat(a)):1},e)},stringify:e=>{const{h:t,s:r,l:n,a:o}=e;return o<1?`hsla(${Lr.lang.round(t)}, ${Lr.lang.round(r)}%, ${Lr.lang.round(n)}%, ${o})`:`hsl(${Lr.lang.round(t)}, ${Lr.lang.round(r)}%, ${Lr.lang.round(n)}%)`}},Yw=Y2,Z2={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=Z2.colors[e];if(t)return ny.parse(t)},stringify:e=>{const t=ny.stringify(e);for(const r in Z2.colors)if(Z2.colors[r]===t)return r}},xD=Z2,tV={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(tV.re);if(!r)return;const[,n,o,i,a,s,l,u,c]=r;return qC.set({r:Lr.channel.clamp.r(o?parseFloat(n)*2.55:parseFloat(n)),g:Lr.channel.clamp.g(a?parseFloat(i)*2.55:parseFloat(i)),b:Lr.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:u?Lr.channel.clamp.a(c?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{const{r:t,g:r,b:n,a:o}=e;return o<1?`rgba(${Lr.lang.round(t)}, ${Lr.lang.round(r)}, ${Lr.lang.round(n)}, ${Lr.lang.round(o)})`:`rgb(${Lr.lang.round(t)}, ${Lr.lang.round(r)}, ${Lr.lang.round(n)})`}},Zw=tV,gwe={format:{keyword:xD,hex:ny,rgb:Zw,rgba:Zw,hsl:Yw,hsla:Yw},parse:e=>{if(typeof e!="string")return e;const t=ny.parse(e)||Zw.parse(e)||Yw.parse(e)||xD.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(To.HSL)||e.data.r===void 0?Yw.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Zw.stringify(e):ny.stringify(e)},ku=gwe,vwe=(e,t)=>{const r=ku.parse(e);for(const n in t)r[n]=Lr.channel.clamp[n](t[n]);return ku.stringify(r)},rV=vwe,ywe=(e,t,r=0,n=1)=>{if(typeof e!="number")return rV(e,{a:t});const o=qC.set({r:Lr.channel.clamp.r(e),g:Lr.channel.clamp.g(t),b:Lr.channel.clamp.b(r),a:Lr.channel.clamp.a(n)});return ku.stringify(o)},iy=ywe,bwe=e=>{const{r:t,g:r,b:n}=ku.parse(e),o=.2126*Lr.channel.toLinear(t)+.7152*Lr.channel.toLinear(r)+.0722*Lr.channel.toLinear(n);return Lr.lang.round(o)},wwe=bwe,xwe=e=>wwe(e)>=.5,Cwe=xwe,Swe=e=>!Cwe(e),N1=Swe,kwe=(e,t,r)=>{const n=ku.parse(e),o=n[t],i=Lr.channel.clamp[t](o+r);return o!==i&&(n[t]=i),ku.stringify(n)},nV=kwe,Ewe=(e,t)=>nV(e,"l",t),lr=Ewe,Twe=(e,t)=>nV(e,"l",-t),pr=Twe,Pwe=(e,t)=>{const r=ku.parse(e),n={};for(const o in t)t[o]&&(n[o]=r[o]+t[o]);return rV(e,n)},Xe=Pwe,Owe=(e,t,r=50)=>{const{r:n,g:o,b:i,a}=ku.parse(e),{r:s,g:l,b:u,a:c}=ku.parse(t),f=r/100,A=f*2-1,h=a-c,v=((A*h===-1?A:(A+h)/(1+A*h))+1)/2,w=1-v,x=n*v+s*w,C=o*v+l*w,k=i*v+u*w,P=a*f+c*(1-f);return iy(x,C,k,P)},Bwe=Owe,Lwe=(e,t=100)=>{const r=ku.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Bwe(r,e,t)},Ft=Lwe;var Mwe=typeof global=="object"&&global&&global.Object===Object&&global;const iV=Mwe;var Dwe=typeof self=="object"&&self&&self.Object===Object&&self,Iwe=iV||Dwe||Function("return this")();const Mu=Iwe;var Nwe=Mu.Symbol;const Ax=Nwe;var oV=Object.prototype,Rwe=oV.hasOwnProperty,Fwe=oV.toString,d0=Ax?Ax.toStringTag:void 0;function zwe(e){var t=Rwe.call(e,d0),r=e[d0];try{e[d0]=void 0;var n=!0}catch{}var o=Fwe.call(e);return n&&(t?e[d0]=r:delete e[d0]),o}var jwe=Object.prototype,Hwe=jwe.toString;function _we(e){return Hwe.call(e)}var Xwe="[object Null]",Vwe="[object Undefined]",CD=Ax?Ax.toStringTag:void 0;function Lg(e){return e==null?e===void 0?Vwe:Xwe:CD&&CD in Object(e)?zwe(e):_we(e)}function xh(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qwe="[object AsyncFunction]",Wwe="[object Function]",Uwe="[object GeneratorFunction]",Qwe="[object Proxy]";function mT(e){if(!xh(e))return!1;var t=Lg(e);return t==Wwe||t==Uwe||t==qwe||t==Qwe}var Gwe=Mu["__core-js_shared__"];const qk=Gwe;var SD=function(){var e=/[^.]+$/.exec(qk&&qk.keys&&qk.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ywe(e){return!!SD&&SD in e}var Zwe=Function.prototype,Jwe=Zwe.toString;function Ch(e){if(e!=null){try{return Jwe.call(e)}catch{}try{return e+""}catch{}}return""}var Kwe=/[\\^$.*+?()[\]{}|]/g,$we=/^\[object .+?Constructor\]$/,e2e=Function.prototype,t2e=Object.prototype,r2e=e2e.toString,n2e=t2e.hasOwnProperty,i2e=RegExp("^"+r2e.call(n2e).replace(Kwe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function o2e(e){if(!xh(e)||Ywe(e))return!1;var t=mT(e)?i2e:$we;return t.test(Ch(e))}function a2e(e,t){return e==null?void 0:e[t]}function Sh(e,t){var r=a2e(e,t);return o2e(r)?r:void 0}var s2e=Sh(Object,"create");const Jy=s2e;function l2e(){this.__data__=Jy?Jy(null):{},this.size=0}function u2e(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var c2e="__lodash_hash_undefined__",f2e=Object.prototype,d2e=f2e.hasOwnProperty;function A2e(e){var t=this.__data__;if(Jy){var r=t[e];return r===c2e?void 0:r}return d2e.call(t,e)?t[e]:void 0}var h2e=Object.prototype,p2e=h2e.hasOwnProperty;function m2e(e){var t=this.__data__;return Jy?t[e]!==void 0:p2e.call(t,e)}var g2e="__lodash_hash_undefined__";function v2e(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Jy&&t===void 0?g2e:t,this}function dh(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}dh.prototype.clear=l2e;dh.prototype.delete=u2e;dh.prototype.get=A2e;dh.prototype.has=m2e;dh.prototype.set=v2e;function y2e(){this.__data__=[],this.size=0}function WC(e,t){return e===t||e!==e&&t!==t}function UC(e,t){for(var r=e.length;r--;)if(WC(e[r][0],t))return r;return-1}var b2e=Array.prototype,w2e=b2e.splice;function x2e(e){var t=this.__data__,r=UC(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():w2e.call(t,r,1),--this.size,!0}function C2e(e){var t=this.__data__,r=UC(t,e);return r<0?void 0:t[r][1]}function S2e(e){return UC(this.__data__,e)>-1}function k2e(e,t){var r=this.__data__,n=UC(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Hc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Hc.prototype.clear=y2e;Hc.prototype.delete=x2e;Hc.prototype.get=C2e;Hc.prototype.has=S2e;Hc.prototype.set=k2e;var E2e=Sh(Mu,"Map");const Ky=E2e;function T2e(){this.size=0,this.__data__={hash:new dh,map:new(Ky||Hc),string:new dh}}function P2e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function QC(e,t){var r=e.__data__;return P2e(t)?r[typeof t=="string"?"string":"hash"]:r.map}function O2e(e){var t=QC(this,e).delete(e);return this.size-=t?1:0,t}function B2e(e){return QC(this,e).get(e)}function L2e(e){return QC(this,e).has(e)}function M2e(e,t){var r=QC(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Cd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Cd.prototype.clear=T2e;Cd.prototype.delete=O2e;Cd.prototype.get=B2e;Cd.prototype.has=L2e;Cd.prototype.set=M2e;var D2e="Expected a function";function R1(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(D2e);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(R1.Cache||Cd),r}R1.Cache=Cd;function I2e(){this.__data__=new Hc,this.size=0}function N2e(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function R2e(e){return this.__data__.get(e)}function F2e(e){return this.__data__.has(e)}var z2e=200;function j2e(e,t){var r=this.__data__;if(r instanceof Hc){var n=r.__data__;if(!Ky||n.length<z2e-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Cd(n)}return r.set(e,t),this.size=r.size,this}function Mg(e){var t=this.__data__=new Hc(e);this.size=t.size}Mg.prototype.clear=I2e;Mg.prototype.delete=N2e;Mg.prototype.get=R2e;Mg.prototype.has=F2e;Mg.prototype.set=j2e;var H2e=function(){try{var e=Sh(Object,"defineProperty");return e({},"",{}),e}catch{}}();const hx=H2e;function gT(e,t,r){t=="__proto__"&&hx?hx(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function u5(e,t,r){(r!==void 0&&!WC(e[t],r)||r===void 0&&!(t in e))&&gT(e,t,r)}function _2e(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++o];if(r(i[l],l,i)===!1)break}return t}}var X2e=_2e();const V2e=X2e;var aV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,kD=aV&&typeof module=="object"&&module&&!module.nodeType&&module,q2e=kD&&kD.exports===aV,ED=q2e?Mu.Buffer:void 0,TD=ED?ED.allocUnsafe:void 0;function W2e(e,t){if(t)return e.slice();var r=e.length,n=TD?TD(r):new e.constructor(r);return e.copy(n),n}var U2e=Mu.Uint8Array;const PD=U2e;function Q2e(e){var t=new e.constructor(e.byteLength);return new PD(t).set(new PD(e)),t}function G2e(e,t){var r=t?Q2e(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Y2e(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var OD=Object.create,Z2e=function(){function e(){}return function(t){if(!xh(t))return{};if(OD)return OD(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const J2e=Z2e;function sV(e,t){return function(r){return e(t(r))}}var K2e=sV(Object.getPrototypeOf,Object);const lV=K2e;var $2e=Object.prototype;function GC(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||$2e;return e===r}function e3e(e){return typeof e.constructor=="function"&&!GC(e)?J2e(lV(e)):{}}function F1(e){return e!=null&&typeof e=="object"}var t3e="[object Arguments]";function BD(e){return F1(e)&&Lg(e)==t3e}var uV=Object.prototype,r3e=uV.hasOwnProperty,n3e=uV.propertyIsEnumerable,i3e=BD(function(){return arguments}())?BD:function(e){return F1(e)&&r3e.call(e,"callee")&&!n3e.call(e,"callee")};const px=i3e;var o3e=Array.isArray;const mx=o3e;var a3e=9007199254740991;function cV(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=a3e}function YC(e){return e!=null&&cV(e.length)&&!mT(e)}function s3e(e){return F1(e)&&YC(e)}function l3e(){return!1}var fV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,LD=fV&&typeof module=="object"&&module&&!module.nodeType&&module,u3e=LD&&LD.exports===fV,MD=u3e?Mu.Buffer:void 0,c3e=MD?MD.isBuffer:void 0,f3e=c3e||l3e;const vT=f3e;var d3e="[object Object]",A3e=Function.prototype,h3e=Object.prototype,dV=A3e.toString,p3e=h3e.hasOwnProperty,m3e=dV.call(Object);function g3e(e){if(!F1(e)||Lg(e)!=d3e)return!1;var t=lV(e);if(t===null)return!0;var r=p3e.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&dV.call(r)==m3e}var v3e="[object Arguments]",y3e="[object Array]",b3e="[object Boolean]",w3e="[object Date]",x3e="[object Error]",C3e="[object Function]",S3e="[object Map]",k3e="[object Number]",E3e="[object Object]",T3e="[object RegExp]",P3e="[object Set]",O3e="[object String]",B3e="[object WeakMap]",L3e="[object ArrayBuffer]",M3e="[object DataView]",D3e="[object Float32Array]",I3e="[object Float64Array]",N3e="[object Int8Array]",R3e="[object Int16Array]",F3e="[object Int32Array]",z3e="[object Uint8Array]",j3e="[object Uint8ClampedArray]",H3e="[object Uint16Array]",_3e="[object Uint32Array]",Qn={};Qn[D3e]=Qn[I3e]=Qn[N3e]=Qn[R3e]=Qn[F3e]=Qn[z3e]=Qn[j3e]=Qn[H3e]=Qn[_3e]=!0;Qn[v3e]=Qn[y3e]=Qn[L3e]=Qn[b3e]=Qn[M3e]=Qn[w3e]=Qn[x3e]=Qn[C3e]=Qn[S3e]=Qn[k3e]=Qn[E3e]=Qn[T3e]=Qn[P3e]=Qn[O3e]=Qn[B3e]=!1;function X3e(e){return F1(e)&&cV(e.length)&&!!Qn[Lg(e)]}function V3e(e){return function(t){return e(t)}}var AV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,oy=AV&&typeof module=="object"&&module&&!module.nodeType&&module,q3e=oy&&oy.exports===AV,Wk=q3e&&iV.process,W3e=function(){try{var e=oy&&oy.require&&oy.require("util").types;return e||Wk&&Wk.binding&&Wk.binding("util")}catch{}}();const DD=W3e;var ID=DD&&DD.isTypedArray,U3e=ID?V3e(ID):X3e;const yT=U3e;function c5(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Q3e=Object.prototype,G3e=Q3e.hasOwnProperty;function Y3e(e,t,r){var n=e[t];(!(G3e.call(e,t)&&WC(n,r))||r===void 0&&!(t in e))&&gT(e,t,r)}function Z3e(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),o?gT(r,s,l):Y3e(r,s,l)}return r}function J3e(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var K3e=9007199254740991,$3e=/^(?:0|[1-9]\d*)$/;function hV(e,t){var r=typeof e;return t=t??K3e,!!t&&(r=="number"||r!="symbol"&&$3e.test(e))&&e>-1&&e%1==0&&e<t}var exe=Object.prototype,txe=exe.hasOwnProperty;function rxe(e,t){var r=mx(e),n=!r&&px(e),o=!r&&!n&&vT(e),i=!r&&!n&&!o&&yT(e),a=r||n||o||i,s=a?J3e(e.length,String):[],l=s.length;for(var u in e)(t||txe.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||hV(u,l)))&&s.push(u);return s}function nxe(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ixe=Object.prototype,oxe=ixe.hasOwnProperty;function axe(e){if(!xh(e))return nxe(e);var t=GC(e),r=[];for(var n in e)n=="constructor"&&(t||!oxe.call(e,n))||r.push(n);return r}function pV(e){return YC(e)?rxe(e,!0):axe(e)}function sxe(e){return Z3e(e,pV(e))}function lxe(e,t,r,n,o,i,a){var s=c5(e,r),l=c5(t,r),u=a.get(l);if(u){u5(e,r,u);return}var c=i?i(s,l,r+"",e,t,a):void 0,f=c===void 0;if(f){var A=mx(l),h=!A&&vT(l),m=!A&&!h&&yT(l);c=l,A||h||m?mx(s)?c=s:s3e(s)?c=Y2e(s):h?(f=!1,c=W2e(l,!0)):m?(f=!1,c=G2e(l,!0)):c=[]:g3e(l)||px(l)?(c=s,px(s)?c=sxe(s):(!xh(s)||mT(s))&&(c=e3e(l))):f=!1}f&&(a.set(l,c),o(c,l,n,i,a),a.delete(l)),u5(e,r,c)}function mV(e,t,r,n,o){e!==t&&V2e(t,function(i,a){if(o||(o=new Mg),xh(i))lxe(e,t,a,r,mV,n,o);else{var s=n?n(c5(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),u5(e,a,s)}},pV)}function gV(e){return e}function uxe(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var ND=Math.max;function cxe(e,t,r){return t=ND(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=ND(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),uxe(e,this,s)}}function fxe(e){return function(){return e}}var dxe=hx?function(e,t){return hx(e,"toString",{configurable:!0,enumerable:!1,value:fxe(t),writable:!0})}:gV;const Axe=dxe;var hxe=800,pxe=16,mxe=Date.now;function gxe(e){var t=0,r=0;return function(){var n=mxe(),o=pxe-(n-r);if(r=n,o>0){if(++t>=hxe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var vxe=gxe(Axe);const yxe=vxe;function bxe(e,t){return yxe(cxe(e,t,gV),e+"")}function wxe(e,t,r){if(!xh(r))return!1;var n=typeof t;return(n=="number"?YC(r)&&hV(t,r.length):n=="string"&&t in r)?WC(r[t],e):!1}function xxe(e){return bxe(function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&wxe(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,i)}return t})}var Cxe=xxe(function(e,t,r){mV(e,t,r)});const Sxe=Cxe;var vV="comm",yV="rule",bV="decl",kxe="@import",Exe="@keyframes",Txe="@layer",Pxe=Math.abs,bT=String.fromCharCode;function wV(e){return e.trim()}function J2(e,t,r){return e.replace(t,r)}function Oxe(e,t){return e.indexOf(t)}function $y(e,t){return e.charCodeAt(t)|0}function e1(e,t,r){return e.slice(t,r)}function Ac(e){return e.length}function Bxe(e){return e.length}function Jw(e,t){return t.push(e),e}var ZC=1,vg=1,xV=0,Qs=0,Bi=0,Dg="";function wT(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ZC,column:vg,length:a,return:"",siblings:s}}function Lxe(){return Bi}function Mxe(){return Bi=Qs>0?$y(Dg,--Qs):0,vg--,Bi===10&&(vg=1,ZC--),Bi}function vl(){return Bi=Qs<xV?$y(Dg,Qs++):0,vg++,Bi===10&&(vg=1,ZC++),Bi}function $A(){return $y(Dg,Qs)}function K2(){return Qs}function JC(e,t){return e1(Dg,e,t)}function f5(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Dxe(e){return ZC=vg=1,xV=Ac(Dg=e),Qs=0,[]}function Ixe(e){return Dg="",e}function Uk(e){return wV(JC(Qs-1,d5(e===91?e+2:e===40?e+1:e)))}function Nxe(e){for(;(Bi=$A())&&Bi<33;)vl();return f5(e)>2||f5(Bi)>3?"":" "}function Rxe(e,t){for(;--t&&vl()&&!(Bi<48||Bi>102||Bi>57&&Bi<65||Bi>70&&Bi<97););return JC(e,K2()+(t<6&&$A()==32&&vl()==32))}function d5(e){for(;vl();)switch(Bi){case e:return Qs;case 34:case 39:e!==34&&e!==39&&d5(Bi);break;case 40:e===41&&d5(e);break;case 92:vl();break}return Qs}function Fxe(e,t){for(;vl()&&e+Bi!==47+10;)if(e+Bi===42+42&&$A()===47)break;return"/*"+JC(t,Qs-1)+"*"+bT(e===47?e:vl())}function zxe(e){for(;!f5($A());)vl();return JC(e,Qs)}function jxe(e){return Ixe($2("",null,null,null,[""],e=Dxe(e),0,[0],e))}function $2(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,f=a,A=0,h=0,m=0,v=1,w=1,x=1,C=0,k="",P=o,O=i,L=n,B=k;w;)switch(m=C,C=vl()){case 40:if(m!=108&&$y(B,f-1)==58){Oxe(B+=J2(Uk(C),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:B+=Uk(C);break;case 9:case 10:case 13:case 32:B+=Nxe(m);break;case 92:B+=Rxe(K2()-1,7);continue;case 47:switch($A()){case 42:case 47:Jw(Hxe(Fxe(vl(),K2()),t,r,l),l);break;default:B+="/"}break;case 123*v:s[u++]=Ac(B)*x;case 125*v:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+c:x==-1&&(B=J2(B,/\f/g,"")),h>0&&Ac(B)-f&&Jw(h>32?FD(B+";",n,r,f-1,l):FD(J2(B," ","")+";",n,r,f-2,l),l);break;case 59:B+=";";default:if(Jw(L=RD(B,t,r,u,c,o,s,k,P=[],O=[],f,i),i),C===123)if(c===0)$2(B,t,L,L,P,i,f,s,O);else switch(A===99&&$y(B,3)===110?100:A){case 100:case 108:case 109:case 115:$2(e,L,L,n&&Jw(RD(e,L,L,0,0,o,s,k,o,P=[],f,O),O),o,O,f,s,n?P:O);break;default:$2(B,L,L,L,[""],O,0,s,O)}}u=c=h=0,v=x=1,k=B="",f=a;break;case 58:f=1+Ac(B),h=m;default:if(v<1){if(C==123)--v;else if(C==125&&v++==0&&Mxe()==125)continue}switch(B+=bT(C),C*v){case 38:x=c>0?1:(B+="\f",-1);break;case 44:s[u++]=(Ac(B)-1)*x,x=1;break;case 64:$A()===45&&(B+=Uk(vl())),A=$A(),c=f=Ac(k=B+=zxe(K2())),C++;break;case 45:m===45&&Ac(B)==2&&(v=0)}}return i}function RD(e,t,r,n,o,i,a,s,l,u,c,f){for(var A=o-1,h=o===0?i:[""],m=Bxe(h),v=0,w=0,x=0;v<n;++v)for(var C=0,k=e1(e,A+1,A=Pxe(w=a[v])),P=e;C<m;++C)(P=wV(w>0?h[C]+" "+k:J2(k,/&\f/g,h[C])))&&(l[x++]=P);return wT(e,t,r,o===0?yV:s,l,u,c,f)}function Hxe(e,t,r,n){return wT(e,t,r,vV,bT(Lxe()),e1(e,2,-2),0,n)}function FD(e,t,r,n,o){return wT(e,t,r,bV,e1(e,0,n),e1(e,n+1,-1),n,o)}function A5(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function _xe(e,t,r,n){switch(e.type){case Txe:if(e.children.length)break;case kxe:case bV:return e.return=e.return||e.value;case vV:return"";case Exe:return e.return=e.value+"{"+A5(e.children,n)+"}";case yV:if(!Ac(e.value=e.props.join(",")))return""}return Ac(r=A5(e.children,n))?e.return=e.value+"{"+r+"}":""}var Xxe=sV(Object.keys,Object);const Vxe=Xxe;var qxe=Object.prototype,Wxe=qxe.hasOwnProperty;function Uxe(e){if(!GC(e))return Vxe(e);var t=[];for(var r in Object(e))Wxe.call(e,r)&&r!="constructor"&&t.push(r);return t}var Qxe=Sh(Mu,"DataView");const h5=Qxe;var Gxe=Sh(Mu,"Promise");const p5=Gxe;var Yxe=Sh(Mu,"Set");const m5=Yxe;var Zxe=Sh(Mu,"WeakMap");const g5=Zxe;var zD="[object Map]",Jxe="[object Object]",jD="[object Promise]",HD="[object Set]",_D="[object WeakMap]",XD="[object DataView]",Kxe=Ch(h5),$xe=Ch(Ky),eCe=Ch(p5),tCe=Ch(m5),rCe=Ch(g5),IA=Lg;(h5&&IA(new h5(new ArrayBuffer(1)))!=XD||Ky&&IA(new Ky)!=zD||p5&&IA(p5.resolve())!=jD||m5&&IA(new m5)!=HD||g5&&IA(new g5)!=_D)&&(IA=function(e){var t=Lg(e),r=t==Jxe?e.constructor:void 0,n=r?Ch(r):"";if(n)switch(n){case Kxe:return XD;case $xe:return zD;case eCe:return jD;case tCe:return HD;case rCe:return _D}return t});const nCe=IA;var iCe="[object Map]",oCe="[object Set]",aCe=Object.prototype,sCe=aCe.hasOwnProperty;function Qk(e){if(e==null)return!0;if(YC(e)&&(mx(e)||typeof e=="string"||typeof e.splice=="function"||vT(e)||yT(e)||px(e)))return!e.length;var t=nCe(e);if(t==iCe||t==oCe)return!e.size;if(GC(e))return!Uxe(e).length;for(var r in e)if(sCe.call(e,r))return!1;return!0}const uc={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Ar={trace:(...e)=>{},debug:(...e)=>{},info:(...e)=>{},warn:(...e)=>{},error:(...e)=>{},fatal:(...e)=>{}},xT=function(e="fatal"){let t=uc.fatal;typeof e=="string"?(e=e.toLowerCase(),e in uc&&(t=uc[e])):typeof e=="number"&&(t=e),Ar.trace=()=>{},Ar.debug=()=>{},Ar.info=()=>{},Ar.warn=()=>{},Ar.error=()=>{},Ar.fatal=()=>{},t<=uc.fatal&&(Ar.fatal=console.error?console.error.bind(console,Ls("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ls("FATAL"))),t<=uc.error&&(Ar.error=console.error?console.error.bind(console,Ls("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ls("ERROR"))),t<=uc.warn&&(Ar.warn=console.warn?console.warn.bind(console,Ls("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ls("WARN"))),t<=uc.info&&(Ar.info=console.info?console.info.bind(console,Ls("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ls("INFO"))),t<=uc.debug&&(Ar.debug=console.debug?console.debug.bind(console,Ls("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ls("DEBUG"))),t<=uc.trace&&(Ar.trace=console.debug?console.debug.bind(console,Ls("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ls("TRACE")))},Ls=e=>`%c${l0e().format("ss.SSS")} : ${e} : `,KC=/<br\s*\/?>/gi,lCe=e=>e?SV(e).replace(/\\n/g,"#br#").split("#br#"):[""],CV=e=>dx.sanitize(e),VD=(e,t)=>{var r;if(((r=t.flowchart)==null?void 0:r.htmlLabels)!==!1){const n=t.securityLevel;n==="antiscript"||n==="strict"?e=CV(e):n!=="loose"&&(e=SV(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=dCe(e))}return e},t1=(e,t)=>e&&(t.dompurifyConfig?e=dx.sanitize(VD(e,t),t.dompurifyConfig).toString():e=dx.sanitize(VD(e,t),{FORBID_TAGS:["style"]}).toString(),e),uCe=(e,t)=>typeof e=="string"?t1(e,t):e.flat().map(r=>t1(r,t)),cCe=e=>KC.test(e),fCe=e=>e.split(KC),dCe=e=>e.replace(/#br#/g,"<br/>"),SV=e=>e.replace(KC,"#br#"),ACe=e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},kV=e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),hCe=function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},pCe=function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},c8e=function(e){const t=e.split(/(,)/),r=[];for(let n=0;n<t.length;n++){let o=t[n];if(o===","&&n>0&&n+1<t.length){const i=t[n-1],a=t[n+1];mCe(i,a)&&(o=i+","+a,n++,r.pop())}r.push(gCe(o))}return r.join("")},v5=(e,t)=>Math.max(0,e.split(t).length-1),mCe=(e,t)=>{const r=v5(e,"~"),n=v5(t,"~");return r===1&&n===1},gCe=e=>{const t=v5(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const n=[...e];let o=n.indexOf("~"),i=n.lastIndexOf("~");for(;o!==-1&&i!==-1&&o!==i;)n[o]="<",n[i]=">",o=n.indexOf("~"),i=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},CT={getRows:lCe,sanitizeText:t1,sanitizeTextOrArray:uCe,hasBreaks:cCe,splitBreaks:fCe,lineBreakRegex:KC,removeScript:CV,getUrl:ACe,evaluate:kV,getMax:hCe,getMin:pCe},Jo=(e,t)=>t?Xe(e,{s:-40,l:10}):Xe(e,{s:-40,l:-10}),$C="#ffffff",e7="#f2f2f2";let vCe=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var t,r,n,o,i,a,s,l,u,c,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Xe(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Xe(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Jo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Jo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Jo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Jo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ft(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ft(this.tertiaryColor),this.lineColor=this.lineColor||Ft(this.background),this.arrowheadColor=this.arrowheadColor||Ft(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?pr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||pr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ft(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||lr(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Xe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Xe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Xe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Xe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Xe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Xe(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Xe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Xe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Xe(this.primaryColor,{h:330}),this.darkMode)for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=pr(this["cScale"+h],75);else for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=pr(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||Ft(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this.darkMode?this["cScalePeer"+h]=this["cScalePeer"+h]||lr(this["cScale"+h],10):this["cScalePeer"+h]=this["cScalePeer"+h]||pr(this["cScale"+h],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;const A=this.darkMode?-4:-1;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||Xe(this.mainBkg,{h:180,s:-15,l:A*(5+h*3)}),this["surfacePeer"+h]=this["surfacePeer"+h]||Xe(this.mainBkg,{h:180,s:-15,l:A*(8+h*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Xe(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Xe(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Xe(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Xe(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Xe(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Xe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Xe(this.primaryColor,{l:-10}),this.pie5=this.pie5||Xe(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Xe(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Xe(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Xe(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Xe(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Xe(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Xe(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Xe(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Xe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Xe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Xe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Xe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Xe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Xe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||N1(this.quadrant1Fill)?lr(this.quadrant1Fill):pr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?pr(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Xe(this.primaryColor,{h:-30}),this.git4=this.git4||Xe(this.primaryColor,{h:-60}),this.git5=this.git5||Xe(this.primaryColor,{h:-90}),this.git6=this.git6||Xe(this.primaryColor,{h:60}),this.git7=this.git7||Xe(this.primaryColor,{h:120}),this.darkMode?(this.git0=lr(this.git0,25),this.git1=lr(this.git1,25),this.git2=lr(this.git2,25),this.git3=lr(this.git3,25),this.git4=lr(this.git4,25),this.git5=lr(this.git5,25),this.git6=lr(this.git6,25),this.git7=lr(this.git7,25)):(this.git0=pr(this.git0,25),this.git1=pr(this.git1,25),this.git2=pr(this.git2,25),this.git3=pr(this.git3,25),this.git4=pr(this.git4,25),this.git5=pr(this.git5,25),this.git6=pr(this.git6,25),this.git7=pr(this.git7,25)),this.gitInv0=this.gitInv0||Ft(this.git0),this.gitInv1=this.gitInv1||Ft(this.git1),this.gitInv2=this.gitInv2||Ft(this.git2),this.gitInv3=this.gitInv3||Ft(this.git3),this.gitInv4=this.gitInv4||Ft(this.git4),this.gitInv5=this.gitInv5||Ft(this.git5),this.gitInv6=this.gitInv6||Ft(this.git6),this.gitInv7=this.gitInv7||Ft(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||$C,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||e7}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}};const yCe=e=>{const t=new vCe;return t.calculate(e),t};let bCe=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=lr(this.primaryColor,16),this.tertiaryColor=Xe(this.primaryColor,{h:-160}),this.primaryBorderColor=Ft(this.background),this.secondaryBorderColor=Jo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jo(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ft(this.primaryColor),this.secondaryTextColor=Ft(this.secondaryColor),this.tertiaryTextColor=Ft(this.tertiaryColor),this.lineColor=Ft(this.background),this.textColor=Ft(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=lr(Ft("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=iy(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=pr("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=pr(this.sectionBkgColor,10),this.taskBorderColor=iy(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=iy(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,r,n,o,i,a,s,l,u,c,f;this.secondBkg=lr(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=lr(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=lr(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Xe(this.primaryColor,{h:64}),this.fillType3=Xe(this.secondaryColor,{h:64}),this.fillType4=Xe(this.primaryColor,{h:-64}),this.fillType5=Xe(this.secondaryColor,{h:-64}),this.fillType6=Xe(this.primaryColor,{h:128}),this.fillType7=Xe(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Xe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Xe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Xe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Xe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Xe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Xe(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Xe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Xe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Xe(this.primaryColor,{h:330});for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||Ft(this["cScale"+A]);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScalePeer"+A]=this["cScalePeer"+A]||lr(this["cScale"+A],10);for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||Xe(this.mainBkg,{h:30,s:-30,l:-(-10+A*4)}),this["surfacePeer"+A]=this["surfacePeer"+A]||Xe(this.mainBkg,{h:30,s:-30,l:-(-7+A*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.scaleLabelColor;for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["pie"+A]=this["cScale"+A];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Xe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Xe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Xe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Xe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Xe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Xe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||N1(this.quadrant1Fill)?lr(this.quadrant1Fill):pr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?pr(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=lr(this.secondaryColor,20),this.git1=lr(this.pie2||this.secondaryColor,20),this.git2=lr(this.pie3||this.tertiaryColor,20),this.git3=lr(this.pie4||Xe(this.primaryColor,{h:-30}),20),this.git4=lr(this.pie5||Xe(this.primaryColor,{h:-60}),20),this.git5=lr(this.pie6||Xe(this.primaryColor,{h:-90}),10),this.git6=lr(this.pie7||Xe(this.primaryColor,{h:60}),10),this.git7=lr(this.pie8||Xe(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Ft(this.git0),this.gitInv1=this.gitInv1||Ft(this.git1),this.gitInv2=this.gitInv2||Ft(this.git2),this.gitInv3=this.gitInv3||Ft(this.git3),this.gitInv4=this.gitInv4||Ft(this.git4),this.gitInv5=this.gitInv5||Ft(this.git5),this.gitInv6=this.gitInv6||Ft(this.git6),this.gitInv7=this.gitInv7||Ft(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ft(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ft(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||lr(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||lr(this.background,2)}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}};const wCe=e=>{const t=new bCe;return t.calculate(e),t};let xCe=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Xe(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Xe(this.primaryColor,{h:-160}),this.primaryBorderColor=Jo(this.primaryColor,this.darkMode),this.secondaryBorderColor=Jo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jo(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ft(this.primaryColor),this.secondaryTextColor=Ft(this.secondaryColor),this.tertiaryTextColor=Ft(this.tertiaryColor),this.lineColor=Ft(this.background),this.textColor=Ft(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=iy(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,r,n,o,i,a,s,l,u,c,f;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Xe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Xe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Xe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Xe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Xe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Xe(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Xe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Xe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Xe(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||pr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||pr(this.tertiaryColor,40);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScale"+A]=pr(this["cScale"+A],10),this["cScalePeer"+A]=this["cScalePeer"+A]||pr(this["cScale"+A],25);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||Xe(this["cScale"+A],{h:180});for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||Xe(this.mainBkg,{h:30,l:-(5+A*5)}),this["surfacePeer"+A]=this["surfacePeer"+A]||Xe(this.mainBkg,{h:30,l:-(7+A*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||Ft(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Ft(this.labelTextColor);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=lr(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Xe(this.primaryColor,{h:64}),this.fillType3=Xe(this.secondaryColor,{h:64}),this.fillType4=Xe(this.primaryColor,{h:-64}),this.fillType5=Xe(this.secondaryColor,{h:-64}),this.fillType6=Xe(this.primaryColor,{h:128}),this.fillType7=Xe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||Xe(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||Xe(this.primaryColor,{l:-10}),this.pie5=this.pie5||Xe(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Xe(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||Xe(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||Xe(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||Xe(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||Xe(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||Xe(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||Xe(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Xe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Xe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Xe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Xe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Xe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Xe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||N1(this.quadrant1Fill)?lr(this.quadrant1Fill):pr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Xe(this.primaryColor,{h:-30}),this.git4=this.git4||Xe(this.primaryColor,{h:-60}),this.git5=this.git5||Xe(this.primaryColor,{h:-90}),this.git6=this.git6||Xe(this.primaryColor,{h:60}),this.git7=this.git7||Xe(this.primaryColor,{h:120}),this.darkMode?(this.git0=lr(this.git0,25),this.git1=lr(this.git1,25),this.git2=lr(this.git2,25),this.git3=lr(this.git3,25),this.git4=lr(this.git4,25),this.git5=lr(this.git5,25),this.git6=lr(this.git6,25),this.git7=lr(this.git7,25)):(this.git0=pr(this.git0,25),this.git1=pr(this.git1,25),this.git2=pr(this.git2,25),this.git3=pr(this.git3,25),this.git4=pr(this.git4,25),this.git5=pr(this.git5,25),this.git6=pr(this.git6,25),this.git7=pr(this.git7,25)),this.gitInv0=this.gitInv0||pr(Ft(this.git0),25),this.gitInv1=this.gitInv1||Ft(this.git1),this.gitInv2=this.gitInv2||Ft(this.git2),this.gitInv3=this.gitInv3||Ft(this.git3),this.gitInv4=this.gitInv4||Ft(this.git4),this.gitInv5=this.gitInv5||Ft(this.git5),this.gitInv6=this.gitInv6||Ft(this.git6),this.gitInv7=this.gitInv7||Ft(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ft(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ft(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||$C,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||e7}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}};const CCe=e=>{const t=new xCe;return t.calculate(e),t};let SCe=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=lr("#cde498",10),this.primaryBorderColor=Jo(this.primaryColor,this.darkMode),this.secondaryBorderColor=Jo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jo(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ft(this.primaryColor),this.secondaryTextColor=Ft(this.secondaryColor),this.tertiaryTextColor=Ft(this.primaryColor),this.lineColor=Ft(this.background),this.textColor=Ft(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,n,o,i,a,s,l,u,c,f;this.actorBorder=pr(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Xe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Xe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Xe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Xe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Xe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Xe(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Xe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Xe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Xe(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||pr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||pr(this.tertiaryColor,40);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScale"+A]=pr(this["cScale"+A],10),this["cScalePeer"+A]=this["cScalePeer"+A]||pr(this["cScale"+A],25);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||Xe(this["cScale"+A],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.scaleLabelColor;for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||Xe(this.mainBkg,{h:30,s:-30,l:-(5+A*5)}),this["surfacePeer"+A]=this["surfacePeer"+A]||Xe(this.mainBkg,{h:30,s:-30,l:-(8+A*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Xe(this.primaryColor,{h:64}),this.fillType3=Xe(this.secondaryColor,{h:64}),this.fillType4=Xe(this.primaryColor,{h:-64}),this.fillType5=Xe(this.secondaryColor,{h:-64}),this.fillType6=Xe(this.primaryColor,{h:128}),this.fillType7=Xe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Xe(this.primaryColor,{l:-30}),this.pie5=this.pie5||Xe(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Xe(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||Xe(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Xe(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Xe(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Xe(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||Xe(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||Xe(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Xe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Xe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Xe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Xe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Xe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Xe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||N1(this.quadrant1Fill)?lr(this.quadrant1Fill):pr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Xe(this.primaryColor,{h:-30}),this.git4=this.git4||Xe(this.primaryColor,{h:-60}),this.git5=this.git5||Xe(this.primaryColor,{h:-90}),this.git6=this.git6||Xe(this.primaryColor,{h:60}),this.git7=this.git7||Xe(this.primaryColor,{h:120}),this.darkMode?(this.git0=lr(this.git0,25),this.git1=lr(this.git1,25),this.git2=lr(this.git2,25),this.git3=lr(this.git3,25),this.git4=lr(this.git4,25),this.git5=lr(this.git5,25),this.git6=lr(this.git6,25),this.git7=lr(this.git7,25)):(this.git0=pr(this.git0,25),this.git1=pr(this.git1,25),this.git2=pr(this.git2,25),this.git3=pr(this.git3,25),this.git4=pr(this.git4,25),this.git5=pr(this.git5,25),this.git6=pr(this.git6,25),this.git7=pr(this.git7,25)),this.gitInv0=this.gitInv0||Ft(this.git0),this.gitInv1=this.gitInv1||Ft(this.git1),this.gitInv2=this.gitInv2||Ft(this.git2),this.gitInv3=this.gitInv3||Ft(this.git3),this.gitInv4=this.gitInv4||Ft(this.git4),this.gitInv5=this.gitInv5||Ft(this.git5),this.gitInv6=this.gitInv6||Ft(this.git6),this.gitInv7=this.gitInv7||Ft(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ft(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ft(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||$C,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||e7}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}};const kCe=e=>{const t=new SCe;return t.calculate(e),t};class ECe{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=lr(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Xe(this.primaryColor,{h:-160}),this.primaryBorderColor=Jo(this.primaryColor,this.darkMode),this.secondaryBorderColor=Jo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jo(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ft(this.primaryColor),this.secondaryTextColor=Ft(this.secondaryColor),this.tertiaryTextColor=Ft(this.tertiaryColor),this.lineColor=Ft(this.background),this.textColor=Ft(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,n,o,i,a,s,l,u,c,f;this.secondBkg=lr(this.contrast,55),this.border2=this.contrast,this.actorBorder=lr(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||Ft(this["cScale"+A]);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this.darkMode?this["cScalePeer"+A]=this["cScalePeer"+A]||lr(this["cScale"+A],10):this["cScalePeer"+A]=this["cScalePeer"+A]||pr(this["cScale"+A],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.scaleLabelColor;for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||Xe(this.mainBkg,{l:-(5+A*5)}),this["surfacePeer"+A]=this["surfacePeer"+A]||Xe(this.mainBkg,{l:-(8+A*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=lr(this.contrast,30),this.sectionBkgColor2=lr(this.contrast,30),this.taskBorderColor=pr(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=lr(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=pr(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Xe(this.primaryColor,{h:64}),this.fillType3=Xe(this.secondaryColor,{h:64}),this.fillType4=Xe(this.primaryColor,{h:-64}),this.fillType5=Xe(this.secondaryColor,{h:-64}),this.fillType6=Xe(this.primaryColor,{h:128}),this.fillType7=Xe(this.secondaryColor,{h:128});for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["pie"+A]=this["cScale"+A];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Xe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Xe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Xe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Xe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Xe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Xe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||N1(this.quadrant1Fill)?lr(this.quadrant1Fill):pr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=pr(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||Xe(this.primaryColor,{h:-30}),this.git4=this.pie5||Xe(this.primaryColor,{h:-60}),this.git5=this.pie6||Xe(this.primaryColor,{h:-90}),this.git6=this.pie7||Xe(this.primaryColor,{h:60}),this.git7=this.pie8||Xe(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Ft(this.git0),this.gitInv1=this.gitInv1||Ft(this.git1),this.gitInv2=this.gitInv2||Ft(this.git2),this.gitInv3=this.gitInv3||Ft(this.git3),this.gitInv4=this.gitInv4||Ft(this.git4),this.gitInv5=this.gitInv5||Ft(this.git5),this.gitInv6=this.gitInv6||Ft(this.git6),this.gitInv7=this.gitInv7||Ft(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||$C,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||e7}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}}const TCe=e=>{const t=new ECe;return t.calculate(e),t},Tc={base:{getThemeVariables:yCe},dark:{getThemeVariables:wCe},default:{getThemeVariables:CCe},forest:{getThemeVariables:kCe},neutral:{getThemeVariables:TCe}},cc={flowchart:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},theme:"default",maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,fontSize:16},EV={...cc,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Tc.default.getThemeVariables(),sequence:{...cc.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...cc.gantt,tickInterval:void 0,useWidth:void 0},c4:{...cc.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...cc.pie,useWidth:984},xyChart:{...cc.xyChart,useWidth:void 0},requirement:{...cc.requirement,useWidth:void 0},gitGraph:{...cc.gitGraph,useMaxWidth:!1},sankey:{...cc.sankey,useMaxWidth:!1}},TV=(e,t="")=>Object.keys(e).reduce((r,n)=>Array.isArray(e[n])?r:typeof e[n]=="object"&&e[n]!==null?[...r,t+n,...TV(e[n],"")]:[...r,t+n],[]),PCe=new Set(TV(EV,"")),OCe=EV,gx=e=>{if(Ar.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>gx(t));return}for(const t of Object.keys(e)){if(Ar.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!PCe.has(t)||e[t]==null){Ar.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){Ar.debug("sanitizing object",t),gx(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)t.includes(n)&&(Ar.debug("sanitizing css option",t),e[t]=BCe(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}Ar.debug("After sanitization",e)}},BCe=e=>{let t=0,r=0;for(const n of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";n==="{"?t++:n==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},PV=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,ay=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,LCe=/\s*%%.*\n/gm;class OV extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}}const yg={},t7=function(e,t){e=e.replace(PV,"").replace(ay,"").replace(LCe,`
437
437
  `);for(const[r,{detector:n}]of Object.entries(yg))if(n(e,t))return r;throw new OV(`No diagram type detected matching given configuration for text: ${e}`)},BV=(...e)=>{for(const{id:t,detector:r,loader:n}of e)LV(t,r,n)},LV=(e,t,r)=>{yg[e]?Ar.error(`Detector with key ${e} already exists`):yg[e]={detector:t,loader:r},Ar.debug(`Detector with key ${e} added${r?" with loader":""}`)},MCe=e=>yg[e].loader,y5=(e,t,{depth:r=2,clobber:n=!1}={})=>{const o={depth:r,clobber:n};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(i=>y5(e,i,o)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(i=>{e.includes(i)||e.push(i)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(i=>{typeof t[i]=="object"&&(e[i]===void 0||typeof e[i]=="object")?(e[i]===void 0&&(e[i]=Array.isArray(t[i])?[]:{}),e[i]=y5(e[i],t[i],{depth:r-1,clobber:n})):(n||typeof e[i]!="object"&&typeof t[i]!="object")&&(e[i]=t[i])}),e)},Bo=y5,DCe="​",ICe={curveBasis:Ebe,curveBasisClosed:Tbe,curveBasisOpen:Pbe,curveBumpX:Sbe,curveBumpY:kbe,curveBundle:Obe,curveCardinalClosed:Lbe,curveCardinalOpen:Mbe,curveCardinal:Bbe,curveCatmullRomClosed:Ibe,curveCatmullRomOpen:Nbe,curveCatmullRom:Dbe,curveLinear:Cbe,curveLinearClosed:Rbe,curveMonotoneX:Fbe,curveMonotoneY:zbe,curveNatural:jbe,curveStep:Hbe,curveStepAfter:Xbe,curveStepBefore:_be},NCe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,RCe=function(e,t){const r=MV(e,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const a=r.map(s=>s.args);gx(a),n=Bo(n,[...a])}else n=r.args;if(!n)return;let o=t7(e,t);const i="config";return n[i]!==void 0&&(o==="flowchart-v2"&&(o="flowchart"),n[o]=n[i],delete n[i]),n},MV=function(e,t=null){try{const r=new RegExp(`[%]{2}(?![{]${NCe.source})(?=[}][%]{2}).*
438
- `,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),Ar.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let n;const o=[];for(;(n=ay.exec(e))!==null;)if(n.index===ay.lastIndex&&ay.lastIndex++,n&&!t||t&&n[1]&&n[1].match(t)||t&&n[2]&&n[2].match(t)){const i=n[1]?n[1]:n[2],a=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;o.push({type:i,args:a})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(r){return Ar.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},FCe=function(e){return e.replace(ay,"")},zCe=function(e,t){for(const[r,n]of t.entries())if(n.match(e))return r;return-1};function jCe(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return ICe[r]??t}function HCe(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?uX.sanitizeUrl(r):r}const _Ce=(e,...t)=>{const r=e.split("."),n=r.length-1,o=r[n];let i=window;for(let a=0;a<n;a++)if(i=i[r[a]],!i){Ar.error(`Function name: ${e} not found in window`);return}i[o](...t)};function DV(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function XCe(e){let t,r=0;e.forEach(o=>{r+=DV(o,t),t=o});const n=r/2;return ST(e,n)}function VCe(e){return e.length===1?e[0]:XCe(e)}const qD=(e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},ST=(e,t)=>{let r,n=t;for(const o of e){if(r){const i=DV(o,r);if(i<n)n-=i;else{const a=n/i;if(a<=0)return r;if(a>=1)return{x:o.x,y:o.y};if(a>0&&a<1)return{x:qD((1-a)*r.x+a*o.x,5),y:qD((1-a)*r.y+a*o.y,5)}}}r=o}throw new Error("Could not find a suitable point for the given distance")},qCe=(e,t,r)=>{Ar.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const o=ST(t,25),i=e?10:5,a=Math.atan2(t[0].y-o.y,t[0].x-o.x),s={x:0,y:0};return s.x=Math.sin(a)*i+(t[0].x+o.x)/2,s.y=-Math.cos(a)*i+(t[0].y+o.y)/2,s};function WCe(e,t,r){const n=structuredClone(r);Ar.info("our points",n),t!=="start_left"&&t!=="start_right"&&n.reverse();const o=25+e,i=ST(n,o),a=10+e*.5,s=Math.atan2(n[0].y-i.y,n[0].x-i.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(s+Math.PI)*a+(n[0].x+i.x)/2,l.y=-Math.cos(s+Math.PI)*a+(n[0].y+i.y)/2):t==="end_right"?(l.x=Math.sin(s-Math.PI)*a+(n[0].x+i.x)/2-5,l.y=-Math.cos(s-Math.PI)*a+(n[0].y+i.y)/2-5):t==="end_left"?(l.x=Math.sin(s)*a+(n[0].x+i.x)/2-5,l.y=-Math.cos(s)*a+(n[0].y+i.y)/2-5):(l.x=Math.sin(s)*a+(n[0].x+i.x)/2,l.y=-Math.cos(s)*a+(n[0].y+i.y)/2),l}function UCe(e){let t="",r="";for(const n of e)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":t=t+n+";");return{style:t,labelStyle:r}}let WD=0;const QCe=()=>(WD++,"id-"+Math.random().toString(36).substr(2,12)+"-"+WD);function GCe(e){let t="";const r="0123456789abcdef",n=r.length;for(let o=0;o<e;o++)t+=r.charAt(Math.floor(Math.random()*n));return t}const YCe=e=>GCe(e.length),ZCe=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},JCe=function(e,t){const r=t.text.replace(CT.lineBreakRegex," "),[,n]=ET(t.fontSize),o=e.append("text");o.attr("x",t.x),o.attr("y",t.y),o.style("text-anchor",t.anchor),o.style("font-family",t.fontFamily),o.style("font-size",n),o.style("font-weight",t.fontWeight),o.attr("fill",t.fill),t.class!==void 0&&o.attr("class",t.class);const i=o.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.attr("fill",t.fill),i.text(r),o},KCe=R1((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),CT.lineBreakRegex.test(e)))return e;const n=e.split(" "),o=[];let i="";return n.forEach((a,s)=>{const l=vx(`${a} `,r),u=vx(i,r);if(l>t){const{hyphenatedStrings:A,remainingWord:h}=$Ce(a,t,"-",r);o.push(i,...A),i=h}else u+l>=t?(o.push(i),i=a):i=[i,a].filter(Boolean).join(" ");s+1===n.length&&o.push(i)}),o.filter(a=>a!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),$Ce=R1((e,t,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const o=[...e],i=[];let a="";return o.forEach((s,l)=>{const u=`${a}${s}`;if(vx(u,n)>=t){const f=l+1,A=o.length===f,h=`${u}${r}`;i.push(A?u:h),a=""}else a=u}),{hyphenatedStrings:i,remainingWord:a}},(e,t,r="-",n)=>`${e}${t}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function e7e(e,t){return kT(e,t).height}function vx(e,t){return kT(e,t).width}const kT=R1((e,t)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:o=400}=t;if(!e)return{width:0,height:0};const[,i]=ET(r),a=["sans-serif",n],s=e.split(CT.lineBreakRegex),l=[],u=Ds("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const c=u.append("svg");for(const A of a){let h=0;const m={width:0,height:0,lineHeight:0};for(const v of s){const w=ZCe();w.text=v||DCe;const x=JCe(c,w).style("font-size",i).style("font-weight",o).style("font-family",A),C=(x._groups||x)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,C.width)),h=Math.round(C.height),m.height+=h,m.lineHeight=Math.round(Math.max(m.lineHeight,h))}l.push(m)}c.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`);class t7e{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}}let Kw;const r7e=function(e){return Kw=Kw||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Kw.innerHTML=e,unescape(Kw.textContent)};function IV(e){return"str"in e}const n7e=(e,t,r,n)=>{var o;if(!n)return;const i=(o=e.node())==null?void 0:o.getBBox();i&&e.append("text").text(n).attr("x",i.x+i.width/2).attr("y",-r).attr("class",t)},ET=e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]};function NV(e,t){return Sxe({},e,t)}const sy={assignWithDepth:Bo,wrapLabel:KCe,calculateTextHeight:e7e,calculateTextWidth:vx,calculateTextDimensions:kT,cleanAndMerge:NV,detectInit:RCe,detectDirective:MV,isSubstringInArray:zCe,interpolateToCurve:jCe,calcLabelPosition:VCe,calcCardinalityPosition:qCe,calcTerminalLabelPosition:WCe,formatUrl:HCe,getStylesFromArray:UCe,generateId:QCe,random:YCe,runFunc:_Ce,entityDecode:r7e,insertTitle:n7e,parseFontSize:ET,InitIDGenerator:t7e},UD="10.6.0",bg=Object.freeze(OCe);let Sa=Bo({},bg),RV,wg=[],ly=Bo({},bg);const r7=(e,t)=>{let r=Bo({},e),n={};for(const o of t)jV(o),n=Bo(n,o);if(r=Bo(r,n),n.theme&&n.theme in Tc){const o=Bo({},RV),i=Bo(o.themeVariables||{},n.themeVariables);r.theme&&r.theme in Tc&&(r.themeVariables=Tc[r.theme].getThemeVariables(i))}return ly=r,HV(ly),ly},i7e=e=>(Sa=Bo({},bg),Sa=Bo(Sa,e),e.theme&&Tc[e.theme]&&(Sa.themeVariables=Tc[e.theme].getThemeVariables(e.themeVariables)),r7(Sa,wg),Sa),o7e=e=>{RV=Bo({},e)},a7e=e=>(Sa=Bo(Sa,e),r7(Sa,wg),Sa),FV=()=>Bo({},Sa),zV=e=>(HV(e),Bo(ly,e),Eu()),Eu=()=>Bo({},ly),jV=e=>{e&&(["secure",...Sa.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(Ar.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&jV(e[t])}))},s7e=e=>{gx(e),e.fontFamily&&(!e.themeVariables||!e.themeVariables.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),wg.push(e),r7(Sa,wg)},yx=(e=Sa)=>{wg=[],r7(e,wg)},l7e={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},QD={},u7e=e=>{QD[e]||(Ar.warn(l7e[e]),QD[e]=!0)},HV=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&u7e("LAZY_LOAD_DEPRECATED")},_V="c4",c7e=e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),f7e=async()=>{const{diagram:e}=await vi(()=>import("./c4Diagram-d0fbc5ce-921f02db.js"),["./c4Diagram-d0fbc5ce-921f02db.js","./svgDrawCommon-4835440b-4019d1bf.js"],import.meta.url);return{id:_V,diagram:e}},d7e={id:_V,detector:c7e,loader:f7e},A7e=d7e,XV="flowchart",h7e=(e,t)=>{var r,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},p7e=async()=>{const{diagram:e}=await vi(()=>import("./flowDiagram-7ea5b25a-f904ae41.js"),["./flowDiagram-7ea5b25a-f904ae41.js","./flowDb-1972c806-201c5bbc.js","./layout-89e6403a.js","./styles-080da4f6-75ad421d.js","./index-2c4b9a3b-42ba3e3d.js","./edges-f2ad444c-f1878e0a.js","./createText-62fc7601-ef476ecd.js","./line-dc73d3fc.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:XV,diagram:e}},m7e={id:XV,detector:h7e,loader:p7e},g7e=m7e,VV="flowchart-v2",v7e=(e,t)=>{var r,n,o;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)&&((o=t==null?void 0:t.flowchart)==null?void 0:o.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)},y7e=async()=>{const{diagram:e}=await vi(()=>import("./flowDiagram-v2-855bc5b3-b080d6f2.js"),["./flowDiagram-v2-855bc5b3-b080d6f2.js","./flowDb-1972c806-201c5bbc.js","./styles-080da4f6-75ad421d.js","./layout-89e6403a.js","./index-2c4b9a3b-42ba3e3d.js","./edges-f2ad444c-f1878e0a.js","./createText-62fc7601-ef476ecd.js","./line-dc73d3fc.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:VV,diagram:e}},b7e={id:VV,detector:v7e,loader:y7e},w7e=b7e,qV="er",x7e=e=>/^\s*erDiagram/.test(e),C7e=async()=>{const{diagram:e}=await vi(()=>import("./erDiagram-9d236eb7-fac75185.js"),["./erDiagram-9d236eb7-fac75185.js","./layout-89e6403a.js","./line-dc73d3fc.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:qV,diagram:e}},S7e={id:qV,detector:x7e,loader:C7e},k7e=S7e,WV="gitGraph",E7e=e=>/^\s*gitGraph/.test(e),T7e=async()=>{const{diagram:e}=await vi(()=>import("./gitGraphDiagram-99d0ae7c-34a0af5a.js"),[],import.meta.url);return{id:WV,diagram:e}},P7e={id:WV,detector:E7e,loader:T7e},O7e=P7e,UV="gantt",B7e=e=>/^\s*gantt/.test(e),L7e=async()=>{const{diagram:e}=await vi(()=>import("./ganttDiagram-9b5ea136-872af172.js"),["./ganttDiagram-9b5ea136-872af172.js","./linear-f5b1d2bc.js","./init-77b53fdd.js"],import.meta.url);return{id:UV,diagram:e}},M7e={id:UV,detector:B7e,loader:L7e},D7e=M7e,QV="info",I7e=e=>/^\s*info/.test(e),N7e=async()=>{const{diagram:e}=await vi(()=>import("./infoDiagram-736b4530-6b731386.js"),[],import.meta.url);return{id:QV,diagram:e}},R7e={id:QV,detector:I7e,loader:N7e},GV="pie",F7e=e=>/^\s*pie/.test(e),z7e=async()=>{const{diagram:e}=await vi(()=>import("./pieDiagram-dbbf0591-bdf5f29b.js"),["./pieDiagram-dbbf0591-bdf5f29b.js","./arc-861ddd57.js","./path-53f90ab3.js","./ordinal-ba9b4969.js","./init-77b53fdd.js","./array-9f3ba611.js"],import.meta.url);return{id:GV,diagram:e}},j7e={id:GV,detector:F7e,loader:z7e},YV="quadrantChart",H7e=e=>/^\s*quadrantChart/.test(e),_7e=async()=>{const{diagram:e}=await vi(()=>import("./quadrantDiagram-4d7f4fd6-c7a0cbe4.js"),["./quadrantDiagram-4d7f4fd6-c7a0cbe4.js","./linear-f5b1d2bc.js","./init-77b53fdd.js"],import.meta.url);return{id:YV,diagram:e}},X7e={id:YV,detector:H7e,loader:_7e},V7e=X7e,ZV="xychart",q7e=e=>/^\s*xychart-beta/.test(e),W7e=async()=>{const{diagram:e}=await vi(()=>import("./xychartDiagram-2b33534f-89407137.js"),["./xychartDiagram-2b33534f-89407137.js","./createText-62fc7601-ef476ecd.js","./init-77b53fdd.js","./ordinal-ba9b4969.js","./linear-f5b1d2bc.js","./line-dc73d3fc.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:ZV,diagram:e}},U7e={id:ZV,detector:q7e,loader:W7e},Q7e=U7e,JV="requirement",G7e=e=>/^\s*requirement(Diagram)?/.test(e),Y7e=async()=>{const{diagram:e}=await vi(()=>import("./requirementDiagram-6fc4c22a-7ec5410f.js"),["./requirementDiagram-6fc4c22a-7ec5410f.js","./layout-89e6403a.js","./line-dc73d3fc.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:JV,diagram:e}},Z7e={id:JV,detector:G7e,loader:Y7e},J7e=Z7e,KV="sequence",K7e=e=>/^\s*sequenceDiagram/.test(e),$7e=async()=>{const{diagram:e}=await vi(()=>import("./sequenceDiagram-b655622a-2935f8db.js"),["./sequenceDiagram-b655622a-2935f8db.js","./svgDrawCommon-4835440b-4019d1bf.js"],import.meta.url);return{id:KV,diagram:e}},eSe={id:KV,detector:K7e,loader:$7e},tSe=eSe,$V="class",rSe=(e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},nSe=async()=>{const{diagram:e}=await vi(()=>import("./classDiagram-936ed81e-b436c4f8.js"),["./classDiagram-936ed81e-b436c4f8.js","./styles-3dcbcfbf-7e764226.js","./layout-89e6403a.js","./line-dc73d3fc.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:$V,diagram:e}},iSe={id:$V,detector:rSe,loader:nSe},oSe=iSe,eq="classDiagram",aSe=(e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},sSe=async()=>{const{diagram:e}=await vi(()=>import("./classDiagram-v2-c3cb15f1-511a23cb.js"),["./classDiagram-v2-c3cb15f1-511a23cb.js","./styles-3dcbcfbf-7e764226.js","./layout-89e6403a.js","./index-2c4b9a3b-42ba3e3d.js","./edges-f2ad444c-f1878e0a.js","./createText-62fc7601-ef476ecd.js","./line-dc73d3fc.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:eq,diagram:e}},lSe={id:eq,detector:aSe,loader:sSe},uSe=lSe,tq="state",cSe=(e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},fSe=async()=>{const{diagram:e}=await vi(()=>import("./stateDiagram-59f0c015-8f5d9693.js"),["./stateDiagram-59f0c015-8f5d9693.js","./styles-9c745c82-7a4e0e61.js","./layout-89e6403a.js","./line-dc73d3fc.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:tq,diagram:e}},dSe={id:tq,detector:cSe,loader:fSe},ASe=dSe,rq="stateDiagram",hSe=(e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},pSe=async()=>{const{diagram:e}=await vi(()=>import("./stateDiagram-v2-2b26beab-d565d1de.js"),["./stateDiagram-v2-2b26beab-d565d1de.js","./styles-9c745c82-7a4e0e61.js","./layout-89e6403a.js","./index-2c4b9a3b-42ba3e3d.js","./edges-f2ad444c-f1878e0a.js","./createText-62fc7601-ef476ecd.js","./line-dc73d3fc.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:rq,diagram:e}},mSe={id:rq,detector:hSe,loader:pSe},gSe=mSe,nq="journey",vSe=e=>/^\s*journey/.test(e),ySe=async()=>{const{diagram:e}=await vi(()=>import("./journeyDiagram-df861f2b-e8579ac6.js"),["./journeyDiagram-df861f2b-e8579ac6.js","./svgDrawCommon-4835440b-4019d1bf.js","./arc-861ddd57.js","./path-53f90ab3.js"],import.meta.url);return{id:nq,diagram:e}},bSe={id:nq,detector:vSe,loader:ySe},wSe=bSe,xSe=function(e,t){for(let r of t)e.attr(r[0],r[1])},CSe=function(e,t,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${t}px;`)):(n.set("height",e),n.set("width",t)),n},iq=function(e,t,r,n){const o=CSe(t,r,n);xSe(e,o)},SSe=function(e,t,r,n){const o=t.node().getBBox(),i=o.width,a=o.height;Ar.info(`SVG bounds: ${i}x${a}`,o);let s=0,l=0;Ar.info(`Graph bounds: ${s}x${l}`,e),s=i+r*2,l=a+r*2,Ar.info(`Calculated bounds: ${s}x${l}`),iq(t,l,s,n);const u=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;t.attr("viewBox",u)},e3={},kSe=(e,t,r)=>{let n="";return e in e3&&e3[e]?n=e3[e](r):Ar.warn(`No theme found for ${e}`),` & {
438
+ `,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),Ar.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let n;const o=[];for(;(n=ay.exec(e))!==null;)if(n.index===ay.lastIndex&&ay.lastIndex++,n&&!t||t&&n[1]&&n[1].match(t)||t&&n[2]&&n[2].match(t)){const i=n[1]?n[1]:n[2],a=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;o.push({type:i,args:a})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(r){return Ar.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},FCe=function(e){return e.replace(ay,"")},zCe=function(e,t){for(const[r,n]of t.entries())if(n.match(e))return r;return-1};function jCe(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return ICe[r]??t}function HCe(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?uX.sanitizeUrl(r):r}const _Ce=(e,...t)=>{const r=e.split("."),n=r.length-1,o=r[n];let i=window;for(let a=0;a<n;a++)if(i=i[r[a]],!i){Ar.error(`Function name: ${e} not found in window`);return}i[o](...t)};function DV(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function XCe(e){let t,r=0;e.forEach(o=>{r+=DV(o,t),t=o});const n=r/2;return ST(e,n)}function VCe(e){return e.length===1?e[0]:XCe(e)}const qD=(e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},ST=(e,t)=>{let r,n=t;for(const o of e){if(r){const i=DV(o,r);if(i<n)n-=i;else{const a=n/i;if(a<=0)return r;if(a>=1)return{x:o.x,y:o.y};if(a>0&&a<1)return{x:qD((1-a)*r.x+a*o.x,5),y:qD((1-a)*r.y+a*o.y,5)}}}r=o}throw new Error("Could not find a suitable point for the given distance")},qCe=(e,t,r)=>{Ar.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const o=ST(t,25),i=e?10:5,a=Math.atan2(t[0].y-o.y,t[0].x-o.x),s={x:0,y:0};return s.x=Math.sin(a)*i+(t[0].x+o.x)/2,s.y=-Math.cos(a)*i+(t[0].y+o.y)/2,s};function WCe(e,t,r){const n=structuredClone(r);Ar.info("our points",n),t!=="start_left"&&t!=="start_right"&&n.reverse();const o=25+e,i=ST(n,o),a=10+e*.5,s=Math.atan2(n[0].y-i.y,n[0].x-i.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(s+Math.PI)*a+(n[0].x+i.x)/2,l.y=-Math.cos(s+Math.PI)*a+(n[0].y+i.y)/2):t==="end_right"?(l.x=Math.sin(s-Math.PI)*a+(n[0].x+i.x)/2-5,l.y=-Math.cos(s-Math.PI)*a+(n[0].y+i.y)/2-5):t==="end_left"?(l.x=Math.sin(s)*a+(n[0].x+i.x)/2-5,l.y=-Math.cos(s)*a+(n[0].y+i.y)/2-5):(l.x=Math.sin(s)*a+(n[0].x+i.x)/2,l.y=-Math.cos(s)*a+(n[0].y+i.y)/2),l}function UCe(e){let t="",r="";for(const n of e)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":t=t+n+";");return{style:t,labelStyle:r}}let WD=0;const QCe=()=>(WD++,"id-"+Math.random().toString(36).substr(2,12)+"-"+WD);function GCe(e){let t="";const r="0123456789abcdef",n=r.length;for(let o=0;o<e;o++)t+=r.charAt(Math.floor(Math.random()*n));return t}const YCe=e=>GCe(e.length),ZCe=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},JCe=function(e,t){const r=t.text.replace(CT.lineBreakRegex," "),[,n]=ET(t.fontSize),o=e.append("text");o.attr("x",t.x),o.attr("y",t.y),o.style("text-anchor",t.anchor),o.style("font-family",t.fontFamily),o.style("font-size",n),o.style("font-weight",t.fontWeight),o.attr("fill",t.fill),t.class!==void 0&&o.attr("class",t.class);const i=o.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.attr("fill",t.fill),i.text(r),o},KCe=R1((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),CT.lineBreakRegex.test(e)))return e;const n=e.split(" "),o=[];let i="";return n.forEach((a,s)=>{const l=vx(`${a} `,r),u=vx(i,r);if(l>t){const{hyphenatedStrings:A,remainingWord:h}=$Ce(a,t,"-",r);o.push(i,...A),i=h}else u+l>=t?(o.push(i),i=a):i=[i,a].filter(Boolean).join(" ");s+1===n.length&&o.push(i)}),o.filter(a=>a!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),$Ce=R1((e,t,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const o=[...e],i=[];let a="";return o.forEach((s,l)=>{const u=`${a}${s}`;if(vx(u,n)>=t){const f=l+1,A=o.length===f,h=`${u}${r}`;i.push(A?u:h),a=""}else a=u}),{hyphenatedStrings:i,remainingWord:a}},(e,t,r="-",n)=>`${e}${t}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function e7e(e,t){return kT(e,t).height}function vx(e,t){return kT(e,t).width}const kT=R1((e,t)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:o=400}=t;if(!e)return{width:0,height:0};const[,i]=ET(r),a=["sans-serif",n],s=e.split(CT.lineBreakRegex),l=[],u=Ds("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const c=u.append("svg");for(const A of a){let h=0;const m={width:0,height:0,lineHeight:0};for(const v of s){const w=ZCe();w.text=v||DCe;const x=JCe(c,w).style("font-size",i).style("font-weight",o).style("font-family",A),C=(x._groups||x)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,C.width)),h=Math.round(C.height),m.height+=h,m.lineHeight=Math.round(Math.max(m.lineHeight,h))}l.push(m)}c.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`);class t7e{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}}let Kw;const r7e=function(e){return Kw=Kw||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Kw.innerHTML=e,unescape(Kw.textContent)};function IV(e){return"str"in e}const n7e=(e,t,r,n)=>{var o;if(!n)return;const i=(o=e.node())==null?void 0:o.getBBox();i&&e.append("text").text(n).attr("x",i.x+i.width/2).attr("y",-r).attr("class",t)},ET=e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]};function NV(e,t){return Sxe({},e,t)}const sy={assignWithDepth:Bo,wrapLabel:KCe,calculateTextHeight:e7e,calculateTextWidth:vx,calculateTextDimensions:kT,cleanAndMerge:NV,detectInit:RCe,detectDirective:MV,isSubstringInArray:zCe,interpolateToCurve:jCe,calcLabelPosition:VCe,calcCardinalityPosition:qCe,calcTerminalLabelPosition:WCe,formatUrl:HCe,getStylesFromArray:UCe,generateId:QCe,random:YCe,runFunc:_Ce,entityDecode:r7e,insertTitle:n7e,parseFontSize:ET,InitIDGenerator:t7e},UD="10.6.0",bg=Object.freeze(OCe);let Sa=Bo({},bg),RV,wg=[],ly=Bo({},bg);const r7=(e,t)=>{let r=Bo({},e),n={};for(const o of t)jV(o),n=Bo(n,o);if(r=Bo(r,n),n.theme&&n.theme in Tc){const o=Bo({},RV),i=Bo(o.themeVariables||{},n.themeVariables);r.theme&&r.theme in Tc&&(r.themeVariables=Tc[r.theme].getThemeVariables(i))}return ly=r,HV(ly),ly},i7e=e=>(Sa=Bo({},bg),Sa=Bo(Sa,e),e.theme&&Tc[e.theme]&&(Sa.themeVariables=Tc[e.theme].getThemeVariables(e.themeVariables)),r7(Sa,wg),Sa),o7e=e=>{RV=Bo({},e)},a7e=e=>(Sa=Bo(Sa,e),r7(Sa,wg),Sa),FV=()=>Bo({},Sa),zV=e=>(HV(e),Bo(ly,e),Eu()),Eu=()=>Bo({},ly),jV=e=>{e&&(["secure",...Sa.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(Ar.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&jV(e[t])}))},s7e=e=>{gx(e),e.fontFamily&&(!e.themeVariables||!e.themeVariables.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),wg.push(e),r7(Sa,wg)},yx=(e=Sa)=>{wg=[],r7(e,wg)},l7e={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},QD={},u7e=e=>{QD[e]||(Ar.warn(l7e[e]),QD[e]=!0)},HV=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&u7e("LAZY_LOAD_DEPRECATED")},_V="c4",c7e=e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),f7e=async()=>{const{diagram:e}=await vi(()=>import("./c4Diagram-d0fbc5ce-081e0df4.js"),["./c4Diagram-d0fbc5ce-081e0df4.js","./svgDrawCommon-4835440b-151251e9.js"],import.meta.url);return{id:_V,diagram:e}},d7e={id:_V,detector:c7e,loader:f7e},A7e=d7e,XV="flowchart",h7e=(e,t)=>{var r,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},p7e=async()=>{const{diagram:e}=await vi(()=>import("./flowDiagram-7ea5b25a-41da787a.js"),["./flowDiagram-7ea5b25a-41da787a.js","./flowDb-1972c806-9ec53a3c.js","./layout-498807d8.js","./styles-080da4f6-4420cea6.js","./index-2c4b9a3b-e6f2af62.js","./edges-f2ad444c-4fc48c3e.js","./createText-62fc7601-89c73b31.js","./line-eeccc4e2.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:XV,diagram:e}},m7e={id:XV,detector:h7e,loader:p7e},g7e=m7e,VV="flowchart-v2",v7e=(e,t)=>{var r,n,o;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)&&((o=t==null?void 0:t.flowchart)==null?void 0:o.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)},y7e=async()=>{const{diagram:e}=await vi(()=>import("./flowDiagram-v2-855bc5b3-8bea338b.js"),["./flowDiagram-v2-855bc5b3-8bea338b.js","./flowDb-1972c806-9ec53a3c.js","./styles-080da4f6-4420cea6.js","./layout-498807d8.js","./index-2c4b9a3b-e6f2af62.js","./edges-f2ad444c-4fc48c3e.js","./createText-62fc7601-89c73b31.js","./line-eeccc4e2.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:VV,diagram:e}},b7e={id:VV,detector:v7e,loader:y7e},w7e=b7e,qV="er",x7e=e=>/^\s*erDiagram/.test(e),C7e=async()=>{const{diagram:e}=await vi(()=>import("./erDiagram-9d236eb7-907e0440.js"),["./erDiagram-9d236eb7-907e0440.js","./layout-498807d8.js","./line-eeccc4e2.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:qV,diagram:e}},S7e={id:qV,detector:x7e,loader:C7e},k7e=S7e,WV="gitGraph",E7e=e=>/^\s*gitGraph/.test(e),T7e=async()=>{const{diagram:e}=await vi(()=>import("./gitGraphDiagram-99d0ae7c-41e1aa3f.js"),[],import.meta.url);return{id:WV,diagram:e}},P7e={id:WV,detector:E7e,loader:T7e},O7e=P7e,UV="gantt",B7e=e=>/^\s*gantt/.test(e),L7e=async()=>{const{diagram:e}=await vi(()=>import("./ganttDiagram-9b5ea136-90a36523.js"),["./ganttDiagram-9b5ea136-90a36523.js","./linear-8a078617.js","./init-77b53fdd.js"],import.meta.url);return{id:UV,diagram:e}},M7e={id:UV,detector:B7e,loader:L7e},D7e=M7e,QV="info",I7e=e=>/^\s*info/.test(e),N7e=async()=>{const{diagram:e}=await vi(()=>import("./infoDiagram-736b4530-8ceba4db.js"),[],import.meta.url);return{id:QV,diagram:e}},R7e={id:QV,detector:I7e,loader:N7e},GV="pie",F7e=e=>/^\s*pie/.test(e),z7e=async()=>{const{diagram:e}=await vi(()=>import("./pieDiagram-dbbf0591-dc9b5e1b.js"),["./pieDiagram-dbbf0591-dc9b5e1b.js","./arc-632a63ec.js","./path-53f90ab3.js","./ordinal-ba9b4969.js","./init-77b53fdd.js","./array-9f3ba611.js"],import.meta.url);return{id:GV,diagram:e}},j7e={id:GV,detector:F7e,loader:z7e},YV="quadrantChart",H7e=e=>/^\s*quadrantChart/.test(e),_7e=async()=>{const{diagram:e}=await vi(()=>import("./quadrantDiagram-4d7f4fd6-a08cba6d.js"),["./quadrantDiagram-4d7f4fd6-a08cba6d.js","./linear-8a078617.js","./init-77b53fdd.js"],import.meta.url);return{id:YV,diagram:e}},X7e={id:YV,detector:H7e,loader:_7e},V7e=X7e,ZV="xychart",q7e=e=>/^\s*xychart-beta/.test(e),W7e=async()=>{const{diagram:e}=await vi(()=>import("./xychartDiagram-2b33534f-a03fa445.js"),["./xychartDiagram-2b33534f-a03fa445.js","./createText-62fc7601-89c73b31.js","./init-77b53fdd.js","./ordinal-ba9b4969.js","./linear-8a078617.js","./line-eeccc4e2.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:ZV,diagram:e}},U7e={id:ZV,detector:q7e,loader:W7e},Q7e=U7e,JV="requirement",G7e=e=>/^\s*requirement(Diagram)?/.test(e),Y7e=async()=>{const{diagram:e}=await vi(()=>import("./requirementDiagram-6fc4c22a-87242b9e.js"),["./requirementDiagram-6fc4c22a-87242b9e.js","./layout-498807d8.js","./line-eeccc4e2.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:JV,diagram:e}},Z7e={id:JV,detector:G7e,loader:Y7e},J7e=Z7e,KV="sequence",K7e=e=>/^\s*sequenceDiagram/.test(e),$7e=async()=>{const{diagram:e}=await vi(()=>import("./sequenceDiagram-b655622a-715c9c20.js"),["./sequenceDiagram-b655622a-715c9c20.js","./svgDrawCommon-4835440b-151251e9.js"],import.meta.url);return{id:KV,diagram:e}},eSe={id:KV,detector:K7e,loader:$7e},tSe=eSe,$V="class",rSe=(e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},nSe=async()=>{const{diagram:e}=await vi(()=>import("./classDiagram-936ed81e-3df0afc2.js"),["./classDiagram-936ed81e-3df0afc2.js","./styles-3dcbcfbf-28676cf4.js","./layout-498807d8.js","./line-eeccc4e2.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:$V,diagram:e}},iSe={id:$V,detector:rSe,loader:nSe},oSe=iSe,eq="classDiagram",aSe=(e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},sSe=async()=>{const{diagram:e}=await vi(()=>import("./classDiagram-v2-c3cb15f1-8c5ed31e.js"),["./classDiagram-v2-c3cb15f1-8c5ed31e.js","./styles-3dcbcfbf-28676cf4.js","./layout-498807d8.js","./index-2c4b9a3b-e6f2af62.js","./edges-f2ad444c-4fc48c3e.js","./createText-62fc7601-89c73b31.js","./line-eeccc4e2.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:eq,diagram:e}},lSe={id:eq,detector:aSe,loader:sSe},uSe=lSe,tq="state",cSe=(e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},fSe=async()=>{const{diagram:e}=await vi(()=>import("./stateDiagram-59f0c015-2e8fb31f.js"),["./stateDiagram-59f0c015-2e8fb31f.js","./styles-9c745c82-cef936a6.js","./layout-498807d8.js","./line-eeccc4e2.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:tq,diagram:e}},dSe={id:tq,detector:cSe,loader:fSe},ASe=dSe,rq="stateDiagram",hSe=(e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},pSe=async()=>{const{diagram:e}=await vi(()=>import("./stateDiagram-v2-2b26beab-7e2d2aa0.js"),["./stateDiagram-v2-2b26beab-7e2d2aa0.js","./styles-9c745c82-cef936a6.js","./layout-498807d8.js","./index-2c4b9a3b-e6f2af62.js","./edges-f2ad444c-4fc48c3e.js","./createText-62fc7601-89c73b31.js","./line-eeccc4e2.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:rq,diagram:e}},mSe={id:rq,detector:hSe,loader:pSe},gSe=mSe,nq="journey",vSe=e=>/^\s*journey/.test(e),ySe=async()=>{const{diagram:e}=await vi(()=>import("./journeyDiagram-df861f2b-960d3809.js"),["./journeyDiagram-df861f2b-960d3809.js","./svgDrawCommon-4835440b-151251e9.js","./arc-632a63ec.js","./path-53f90ab3.js"],import.meta.url);return{id:nq,diagram:e}},bSe={id:nq,detector:vSe,loader:ySe},wSe=bSe,xSe=function(e,t){for(let r of t)e.attr(r[0],r[1])},CSe=function(e,t,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${t}px;`)):(n.set("height",e),n.set("width",t)),n},iq=function(e,t,r,n){const o=CSe(t,r,n);xSe(e,o)},SSe=function(e,t,r,n){const o=t.node().getBBox(),i=o.width,a=o.height;Ar.info(`SVG bounds: ${i}x${a}`,o);let s=0,l=0;Ar.info(`Graph bounds: ${s}x${l}`,e),s=i+r*2,l=a+r*2,Ar.info(`Calculated bounds: ${s}x${l}`),iq(t,l,s,n);const u=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;t.attr("viewBox",u)},e3={},kSe=(e,t,r)=>{let n="";return e in e3&&e3[e]?n=e3[e](r):Ar.warn(`No theme found for ${e}`),` & {
439
439
  font-family: ${r.fontFamily};
440
440
  font-size: ${r.fontSize};
441
441
  fill: ${r.textColor}
@@ -486,7 +486,7 @@ ${f}"]:::collect
486
486
  ${t}
487
487
  `},ESe=(e,t)=>{t!==void 0&&(e3[e]=t)},TSe=kSe;let TT="",PT="",OT="";const BT=e=>t1(e,Eu()),PSe=()=>{TT="",OT="",PT=""},OSe=e=>{TT=BT(e).replace(/^\s+/g,"")},BSe=()=>TT,LSe=e=>{OT=BT(e).replace(/\n\s+/g,`
488
488
  `)},MSe=()=>OT,DSe=e=>{PT=BT(e)},ISe=()=>PT,NSe=Object.freeze(Object.defineProperty({__proto__:null,clear:PSe,getAccDescription:MSe,getAccTitle:BSe,getDiagramTitle:ISe,setAccDescription:LSe,setAccTitle:OSe,setDiagramTitle:DSe},Symbol.toStringTag,{value:"Module"})),RSe=Ar,FSe=xT,LT=Eu,p8e=zV,m8e=bg,zSe=e=>t1(e,LT()),jSe=SSe,HSe=()=>NSe,bx={},wx=(e,t,r)=>{var n;if(bx[e])throw new Error(`Diagram ${e} already registered.`);bx[e]=t,r&&LV(e,r),ESe(e,t.styles),(n=t.injectUtils)==null||n.call(t,RSe,FSe,LT,zSe,jSe,HSe(),()=>{})},MT=e=>{if(e in bx)return bx[e];throw new _Se(e)};class _Se extends Error{constructor(t){super(`Diagram ${t} not found.`)}}const XSe=e=>{var t;const{securityLevel:r}=LT();let n=Ds("body");if(r==="sandbox"){const a=((t=Ds(`#i${e}`).node())==null?void 0:t.contentDocument)??document;n=Ds(a.body)}return n.select(`#${e}`)},VSe=(e,t,r)=>{Ar.debug(`renering svg for syntax error
489
- `);const n=XSe(t);n.attr("viewBox","0 0 2412 512"),iq(n,100,512,!0);const o=n.append("g");o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},oq={draw:VSe},qSe=oq,WSe={db:{},renderer:oq,parser:{parser:{yy:{}},parse:()=>{}}},USe=WSe,aq="flowchart-elk",QSe=(e,t)=>{var r;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk")},GSe=async()=>{const{diagram:e}=await vi(()=>import("./flowchart-elk-definition-abe16c3d-1813da66.js"),["./flowchart-elk-definition-abe16c3d-1813da66.js","./flowDb-1972c806-201c5bbc.js","./edges-f2ad444c-f1878e0a.js","./createText-62fc7601-ef476ecd.js","./line-dc73d3fc.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:aq,diagram:e}},YSe={id:aq,detector:QSe,loader:GSe},ZSe=YSe,sq="timeline",JSe=e=>/^\s*timeline/.test(e),KSe=async()=>{const{diagram:e}=await vi(()=>import("./timeline-definition-5b62e21b-01ea12df.js"),["./timeline-definition-5b62e21b-01ea12df.js","./arc-861ddd57.js","./path-53f90ab3.js"],import.meta.url);return{id:sq,diagram:e}},$Se={id:sq,detector:JSe,loader:KSe},eke=$Se,lq="mindmap",tke=e=>/^\s*mindmap/.test(e),rke=async()=>{const{diagram:e}=await vi(()=>import("./mindmap-definition-beec6740-82cb74fa.js"),["./mindmap-definition-beec6740-82cb74fa.js","./createText-62fc7601-ef476ecd.js"],import.meta.url);return{id:lq,diagram:e}},nke={id:lq,detector:tke,loader:rke},ike=nke,uq="sankey",oke=e=>/^\s*sankey-beta/.test(e),ake=async()=>{const{diagram:e}=await vi(()=>import("./sankeyDiagram-8f13d901-caee5554.js"),["./sankeyDiagram-8f13d901-caee5554.js","./ordinal-ba9b4969.js","./init-77b53fdd.js"],import.meta.url);return{id:uq,diagram:e}},ske={id:uq,detector:oke,loader:ake},lke=ske;let GD=!1;const DT=()=>{GD||(GD=!0,wx("error",USe,e=>e.toLowerCase().trim()==="error"),wx("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},e=>e.toLowerCase().trimStart().startsWith("---")),BV(A7e,uSe,oSe,k7e,D7e,R7e,j7e,J7e,tSe,ZSe,w7e,g7e,ike,eke,O7e,gSe,ASe,wSe,V7e,lke,Q7e))};class cq{constructor(t,r={}){this.text=t,this.metadata=r,this.type="graph",this.text+=`
489
+ `);const n=XSe(t);n.attr("viewBox","0 0 2412 512"),iq(n,100,512,!0);const o=n.append("g");o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},oq={draw:VSe},qSe=oq,WSe={db:{},renderer:oq,parser:{parser:{yy:{}},parse:()=>{}}},USe=WSe,aq="flowchart-elk",QSe=(e,t)=>{var r;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk")},GSe=async()=>{const{diagram:e}=await vi(()=>import("./flowchart-elk-definition-abe16c3d-ce370633.js"),["./flowchart-elk-definition-abe16c3d-ce370633.js","./flowDb-1972c806-9ec53a3c.js","./edges-f2ad444c-4fc48c3e.js","./createText-62fc7601-89c73b31.js","./line-eeccc4e2.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:aq,diagram:e}},YSe={id:aq,detector:QSe,loader:GSe},ZSe=YSe,sq="timeline",JSe=e=>/^\s*timeline/.test(e),KSe=async()=>{const{diagram:e}=await vi(()=>import("./timeline-definition-5b62e21b-0d39bdb2.js"),["./timeline-definition-5b62e21b-0d39bdb2.js","./arc-632a63ec.js","./path-53f90ab3.js"],import.meta.url);return{id:sq,diagram:e}},$Se={id:sq,detector:JSe,loader:KSe},eke=$Se,lq="mindmap",tke=e=>/^\s*mindmap/.test(e),rke=async()=>{const{diagram:e}=await vi(()=>import("./mindmap-definition-beec6740-396d17dd.js"),["./mindmap-definition-beec6740-396d17dd.js","./createText-62fc7601-89c73b31.js"],import.meta.url);return{id:lq,diagram:e}},nke={id:lq,detector:tke,loader:rke},ike=nke,uq="sankey",oke=e=>/^\s*sankey-beta/.test(e),ake=async()=>{const{diagram:e}=await vi(()=>import("./sankeyDiagram-8f13d901-53f6f391.js"),["./sankeyDiagram-8f13d901-53f6f391.js","./ordinal-ba9b4969.js","./init-77b53fdd.js"],import.meta.url);return{id:uq,diagram:e}},ske={id:uq,detector:oke,loader:ake},lke=ske;let GD=!1;const DT=()=>{GD||(GD=!0,wx("error",USe,e=>e.toLowerCase().trim()==="error"),wx("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},e=>e.toLowerCase().trimStart().startsWith("---")),BV(A7e,uSe,oSe,k7e,D7e,R7e,j7e,J7e,tSe,ZSe,w7e,g7e,ike,eke,O7e,gSe,ASe,wSe,V7e,lke,Q7e))};class cq{constructor(t,r={}){this.text=t,this.metadata=r,this.type="graph",this.text+=`
490
490
  `;const n=Eu();try{this.type=t7(t,n)}catch(i){this.type="error",this.detectError=i}const o=MT(this.type);Ar.debug("Type "+this.type),this.db=o.db,this.renderer=o.renderer,this.parser=o.parser,this.parser.parser.yy=this.db,this.init=o.init,this.parse()}parse(){var t,r,n,o,i;if(this.detectError)throw this.detectError;(r=(t=this.db).clear)==null||r.call(t);const a=Eu();(n=this.init)==null||n.call(this,a),this.metadata.title&&((i=(o=this.db).setDiagramTitle)==null||i.call(o,this.metadata.title)),this.parser.parse(this.text)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}}const IT=async(e,t={})=>{const r=t7(e,Eu());try{MT(r)}catch{const o=MCe(r);if(!o)throw new OV(`Diagram ${r} not found.`);const{id:i,diagram:a}=await o();wx(i,a)}return new cq(e,t)};let b5=[];const g8e=e=>{b5.push(e)},uke=()=>{b5.forEach(e=>{e()}),b5=[]},cke="graphics-document document";function fke(e,t){e.attr("role",cke),t!==""&&e.attr("aria-roledescription",t)}function dke(e,t,r,n){if(e.insert!==void 0){if(r){const o=`chart-desc-${n}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(r)}if(t){const o=`chart-title-${n}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}const Ake=e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function fq(e){return typeof e>"u"||e===null}function hke(e){return typeof e=="object"&&e!==null}function pke(e){return Array.isArray(e)?e:fq(e)?[]:[e]}function mke(e,t){var r,n,o,i;if(t)for(i=Object.keys(t),r=0,n=i.length;r<n;r+=1)o=i[r],e[o]=t[o];return e}function gke(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function vke(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var yke=fq,bke=hke,wke=pke,xke=gke,Cke=vke,Ske=mke,Yo={isNothing:yke,isObject:bke,toArray:wke,repeat:xke,isNegativeZero:Cke,extend:Ske};function dq(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
491
491
 
492
492
  `+e.mark.snippet),n+" "+r):n}function r1(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=dq(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}r1.prototype=Object.create(Error.prototype);r1.prototype.constructor=r1;r1.prototype.toString=function(t){return this.name+": "+dq(this,t)};var gc=r1;function Gk(e,t,r,n,o){var i="",a="",s=Math.floor(o/2)-1;return n-t>s&&(i=" ... ",t=n-s+i.length),r-n>s&&(a=" ...",r=n+s-a.length),{str:i+e.slice(t,r).replace(/\t/g,"→")+a,pos:n-t+i.length}}function Yk(e,t){return Yo.repeat(" ",t-e.length)+e}function kke(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],o=[],i,a=-1;i=r.exec(e.buffer);)o.push(i.index),n.push(i.index+i[0].length),e.position<=i.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",l,u,c=Math.min(e.line+t.linesAfter,o.length).toString().length,f=t.maxLength-(t.indent+c+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)u=Gk(e.buffer,n[a-l],o[a-l],e.position-(n[a]-n[a-l]),f),s=Yo.repeat(" ",t.indent)+Yk((e.line-l+1).toString(),c)+" | "+u.str+`
@@ -784,7 +784,7 @@ new Remarkable().use(linkify)
784
784
  * @license
785
785
  * Copyright 2018 Google LLC
786
786
  * SPDX-License-Identifier: BSD-3-Clause
787
- */const nPe=new Set(["children","localName","ref","style","className"]),$I=new WeakMap,eN=(e,t,r,n,o)=>{const i=o==null?void 0:o[t];i===void 0?(e[t]=r,r==null&&t in HTMLElement.prototype&&e.removeAttribute(t)):r!==n&&((a,s,l)=>{let u=$I.get(a);u===void 0&&$I.set(a,u=new Map);let c=u.get(s);l!==void 0?c===void 0?(u.set(s,c={handleEvent:l}),a.addEventListener(s,c)):c.handleEvent=l:c!==void 0&&(u.delete(s),a.removeEventListener(s,c))})(e,i,r)},iPe=({react:e,tagName:t,elementClass:r,events:n,displayName:o})=>{const i=new Set(Object.keys(n??{})),a=e.forwardRef((s,l)=>{const u=e.useRef(new Map),c=e.useRef(null),f={},A={};for(const[h,m]of Object.entries(s))nPe.has(h)?f[h==="className"?"class":h]=m:i.has(h)||h in r.prototype?A[h]=m:f[h]=m;return e.useLayoutEffect(()=>{if(c.current===null)return;const h=new Map;for(const m in A)eN(c.current,m,s[m],u.current.get(m),n),u.current.delete(m),h.set(m,s[m]);for(const[m,v]of u.current)eN(c.current,m,void 0,v,n);u.current=h}),e.useLayoutEffect(()=>{var h;(h=c.current)==null||h.removeAttribute("defer-hydration")},[]),f.suppressHydrationWarning=!0,e.createElement(t,{...f,ref:e.useCallback(h=>{c.current=h,typeof l=="function"?l(h):l!==null&&(l.current=h)},[l])})});return a.displayName=o??r.name,a},oPe=iPe({tagName:"deep-chat",elementClass:qr,react:d9,events:{onactivate:"activate",onchange:"change"}}),aPe=({sx:e,events:t,...r})=>{const n={...e,p:0,flexDirection:"column"},o=document.documentElement.scrollHeight-64;let i=21.75;document.documentElement.clientWidth>1631&&(i=25.75);const a=i*parseFloat(getComputedStyle(document.documentElement).fontSize),s=u=>{let c=u.command;return c==="start flow"?`Start (${u.flow})`:c==="set slot"?`Set (${u.name} = ${u.value})`:c},l=t.filter(u=>u.event==="user"||u.event==="bot").flatMap(u=>{var c,f;if(u.event==="user"){let A=((f=(c=u.parse_data)==null?void 0:c.commands)==null?void 0:f.map(h=>`<div>${s(h)}</div>`))||[];return[{role:u.event,text:u.text||""},{role:"system",html:`<div>${A.join("")}</div>`}]}else return[{role:u.event,text:u.text||""}]});return be.jsx(yu,{sx:n,...r,children:be.jsx(oPe,{avatars:!0,textInput:{disabled:!0},inputAreaStyle:{display:"none"},messageStyles:{html:{shared:{bubble:{backgroundColor:"unset",padding:"0px"}}}},style:{borderRadius:"10px",border:"none",width:a,height:o},history:l,demo:!0})})};var eP={},Ng={},xl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEventSourceSupported=e.isReactNative=e.ReadyState=e.DEFAULT_HEARTBEAT=e.UNPARSABLE_JSON_OBJECT=e.DEFAULT_RECONNECT_INTERVAL_MS=e.DEFAULT_RECONNECT_LIMIT=e.SOCKET_IO_PING_CODE=e.SOCKET_IO_PATH=e.SOCKET_IO_PING_INTERVAL=e.DEFAULT_EVENT_SOURCE_OPTIONS=e.EMPTY_EVENT_HANDLERS=e.DEFAULT_OPTIONS=void 0;var t=1,r=1e3*t;e.DEFAULT_OPTIONS={},e.EMPTY_EVENT_HANDLERS={},e.DEFAULT_EVENT_SOURCE_OPTIONS={withCredentials:!1,events:e.EMPTY_EVENT_HANDLERS},e.SOCKET_IO_PING_INTERVAL=25*r,e.SOCKET_IO_PATH="/socket.io/?EIO=3&transport=websocket",e.SOCKET_IO_PING_CODE="2",e.DEFAULT_RECONNECT_LIMIT=20,e.DEFAULT_RECONNECT_INTERVAL_MS=5e3,e.UNPARSABLE_JSON_OBJECT={},e.DEFAULT_HEARTBEAT={message:"ping",timeout:6e4,interval:25e3},function(o){o[o.UNINSTANTIATED=-1]="UNINSTANTIATED",o[o.CONNECTING=0]="CONNECTING",o[o.OPEN=1]="OPEN",o[o.CLOSING=2]="CLOSING",o[o.CLOSED=3]="CLOSED"}(e.ReadyState||(e.ReadyState={}));var n=function(){try{return"EventSource"in globalThis}catch{return!1}};e.isReactNative=typeof navigator<"u"&&navigator.product==="ReactNative",e.isEventSourceSupported=!e.isReactNative&&n()})(xl);var w7={},x7={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.resetWebSockets=e.sharedWebSockets=void 0,e.sharedWebSockets={};var t=function(r){if(r&&e.sharedWebSockets.hasOwnProperty(r))delete e.sharedWebSockets[r];else for(var n in e.sharedWebSockets)e.sharedWebSockets.hasOwnProperty(n)&&delete e.sharedWebSockets[n]};e.resetWebSockets=t})(x7);var C7={},Cu={};Object.defineProperty(Cu,"__esModule",{value:!0});Cu.setUpSocketIOPing=Cu.appendQueryParams=Cu.parseSocketIOUrl=void 0;var Bx=xl,sPe=function(e){if(e){var t=/^https|wss/.test(e),r=e.replace(/^(https?|wss?)(:\/\/)?/,""),n=r.replace(/\/$/,""),o=t?"wss":"ws";return"".concat(o,"://").concat(n).concat(Bx.SOCKET_IO_PATH)}else if(e===""){var t=/^https/.test(window.location.protocol),o=t?"wss":"ws",i=window.location.port?":".concat(window.location.port):"";return"".concat(o,"://").concat(window.location.hostname).concat(i).concat(Bx.SOCKET_IO_PATH)}return e};Cu.parseSocketIOUrl=sPe;var lPe=function(e,t){t===void 0&&(t={});var r=/\?([\w]+=[\w]+)/,n=r.test(e),o="".concat(Object.entries(t).reduce(function(i,a){var s=a[0],l=a[1];return i+"".concat(s,"=").concat(l,"&")},"").slice(0,-1));return"".concat(e).concat(n?"&":"?").concat(o)};Cu.appendQueryParams=lPe;var uPe=function(e,t){t===void 0&&(t=Bx.SOCKET_IO_PING_INTERVAL);var r=function(){return e(Bx.SOCKET_IO_PING_CODE)};return window.setInterval(r,t)};Cu.setUpSocketIOPing=uPe;var q1={};Object.defineProperty(q1,"__esModule",{value:!0});q1.heartbeat=void 0;var u9=xl;function cPe(e,t){var r=t||{},n=r.interval,o=n===void 0?u9.DEFAULT_HEARTBEAT.interval:n,i=r.timeout,a=i===void 0?u9.DEFAULT_HEARTBEAT.timeout:i,s=r.message,l=s===void 0?u9.DEFAULT_HEARTBEAT.message:s,u=!1,c=setInterval(function(){try{typeof l=="function"?e.send(l()):e.send(l)}catch{}},o),f=setInterval(function(){u?u=!1:e.close()},a);return e.addEventListener("close",function(){clearInterval(c),clearInterval(f)}),function(){u=!0}}q1.heartbeat=cPe;var hd={},S7={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.resetSubscribers=e.removeSubscriber=e.addSubscriber=e.hasSubscribers=e.getSubscribers=void 0;var t={},r=[],n=function(l){return(0,e.hasSubscribers)(l)?Array.from(t[l]):r};e.getSubscribers=n;var o=function(l){var u;return((u=t[l])===null||u===void 0?void 0:u.size)>0};e.hasSubscribers=o;var i=function(l,u){t[l]=t[l]||new Set,t[l].add(u)};e.addSubscriber=i;var a=function(l,u){t[l].delete(u)};e.removeSubscriber=a;var s=function(l){if(l&&t.hasOwnProperty(l))delete t[l];else for(var u in t)t.hasOwnProperty(u)&&delete t[u]};e.resetSubscribers=s})(S7);Object.defineProperty(hd,"__esModule",{value:!0});hd.resetGlobalState=hd.assertIsWebSocket=void 0;var fPe=x7,dPe=S7;function APe(e,t){if(!t&&!(e instanceof WebSocket))throw new Error("")}hd.assertIsWebSocket=APe;function hPe(e){(0,dPe.resetSubscribers)(e),(0,fPe.resetWebSockets)(e)}hd.resetGlobalState=hPe;var Lx=Nn&&Nn.__assign||function(){return Lx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Lx.apply(this,arguments)};Object.defineProperty(C7,"__esModule",{value:!0});C7.attachListeners=void 0;var pPe=Cu,mPe=q1,Au=xl,gPe=hd,vPe=function(e,t,r){var n;if(t.current.heartbeat&&e instanceof WebSocket){var o=typeof t.current.heartbeat=="boolean"?void 0:t.current.heartbeat;n=(0,mPe.heartbeat)(e,o)}e.onmessage=function(i){var a;n==null||n(),t.current.onMessage&&t.current.onMessage(i),!(typeof t.current.filter=="function"&&t.current.filter(i)!==!0)&&(t.current.heartbeat&&typeof t.current.heartbeat!="boolean"&&((a=t.current.heartbeat)===null||a===void 0?void 0:a.returnMessage)===i.data||r(i))}},yPe=function(e,t,r,n){e.onopen=function(o){t.current.onOpen&&t.current.onOpen(o),n.current=0,r(Au.ReadyState.OPEN)}},bPe=function(e,t,r,n,o){if(Au.isEventSourceSupported&&e instanceof EventSource)return function(){};(0,gPe.assertIsWebSocket)(e,t.current.skipAssert);var i;return e.onclose=function(a){var s;if(t.current.onClose&&t.current.onClose(a),r(Au.ReadyState.CLOSED),t.current.shouldReconnect&&t.current.shouldReconnect(a)){var l=(s=t.current.reconnectAttempts)!==null&&s!==void 0?s:Au.DEFAULT_RECONNECT_LIMIT;if(o.current<l){var u=typeof t.current.reconnectInterval=="function"?t.current.reconnectInterval(o.current):t.current.reconnectInterval;i=window.setTimeout(function(){o.current++,n()},u??Au.DEFAULT_RECONNECT_INTERVAL_MS)}else t.current.onReconnectStop&&t.current.onReconnectStop(l),console.warn("Max reconnect attempts of ".concat(l," exceeded"))}},function(){return i&&window.clearTimeout(i)}},wPe=function(e,t,r,n,o){var i;return e.onerror=function(a){var s;if(t.current.onError&&t.current.onError(a),Au.isEventSourceSupported&&e instanceof EventSource&&(t.current.onClose&&t.current.onClose(Lx(Lx({},a),{code:1006,reason:"An error occurred with the EventSource: ".concat(a),wasClean:!1})),r(Au.ReadyState.CLOSED),e.close()),t.current.retryOnError)if(o.current<((s=t.current.reconnectAttempts)!==null&&s!==void 0?s:Au.DEFAULT_RECONNECT_LIMIT)){var l=typeof t.current.reconnectInterval=="function"?t.current.reconnectInterval(o.current):t.current.reconnectInterval;i=window.setTimeout(function(){o.current++,n()},l??Au.DEFAULT_RECONNECT_INTERVAL_MS)}else t.current.onReconnectStop&&t.current.onReconnectStop(t.current.reconnectAttempts),console.warn("Max reconnect attempts of ".concat(t.current.reconnectAttempts," exceeded"))},function(){return i&&window.clearTimeout(i)}},xPe=function(e,t,r,n,o,i){var a=t.setLastMessage,s=t.setReadyState,l,u,c;return r.current.fromSocketIO&&(l=(0,pPe.setUpSocketIOPing)(i)),vPe(e,r,a),yPe(e,r,s,o),u=bPe(e,r,s,n,o),c=wPe(e,r,s,n,o),function(){s(Au.ReadyState.CLOSING),u(),c(),e.close(),l&&clearInterval(l)}};C7.attachListeners=xPe;var k7={},Mx=Nn&&Nn.__assign||function(){return Mx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Mx.apply(this,arguments)};Object.defineProperty(k7,"__esModule",{value:!0});k7.attachSharedListeners=void 0;var CPe=x7,rh=xl,c1=S7,SPe=Cu,kPe=q1,EPe=function(e,t,r){var n;r&&e instanceof WebSocket&&(n=(0,kPe.heartbeat)(e,typeof r=="boolean"?void 0:r)),e.onmessage=function(o){n==null||n(),(0,c1.getSubscribers)(t).forEach(function(i){i.optionsRef.current.onMessage&&i.optionsRef.current.onMessage(o),!(typeof i.optionsRef.current.filter=="function"&&i.optionsRef.current.filter(o)!==!0)&&(r&&typeof r!="boolean"&&(r==null?void 0:r.returnMessage)===o.data||i.setLastMessage(o))})}},TPe=function(e,t){e.onopen=function(r){(0,c1.getSubscribers)(t).forEach(function(n){n.reconnectCount.current=0,n.optionsRef.current.onOpen&&n.optionsRef.current.onOpen(r),n.setReadyState(rh.ReadyState.OPEN)})}},PPe=function(e,t){e instanceof WebSocket&&(e.onclose=function(r){(0,c1.getSubscribers)(t).forEach(function(n){n.optionsRef.current.onClose&&n.optionsRef.current.onClose(r),n.setReadyState(rh.ReadyState.CLOSED)}),delete CPe.sharedWebSockets[t],(0,c1.getSubscribers)(t).forEach(function(n){var o;if(n.optionsRef.current.shouldReconnect&&n.optionsRef.current.shouldReconnect(r)){var i=(o=n.optionsRef.current.reconnectAttempts)!==null&&o!==void 0?o:rh.DEFAULT_RECONNECT_LIMIT;if(n.reconnectCount.current<i){var a=typeof n.optionsRef.current.reconnectInterval=="function"?n.optionsRef.current.reconnectInterval(n.reconnectCount.current):n.optionsRef.current.reconnectInterval;setTimeout(function(){n.reconnectCount.current++,n.reconnect.current()},a??rh.DEFAULT_RECONNECT_INTERVAL_MS)}else n.optionsRef.current.onReconnectStop&&n.optionsRef.current.onReconnectStop(n.optionsRef.current.reconnectAttempts),console.warn("Max reconnect attempts of ".concat(i," exceeded"))}})})},OPe=function(e,t){e.onerror=function(r){(0,c1.getSubscribers)(t).forEach(function(n){n.optionsRef.current.onError&&n.optionsRef.current.onError(r),rh.isEventSourceSupported&&e instanceof EventSource&&(n.optionsRef.current.onClose&&n.optionsRef.current.onClose(Mx(Mx({},r),{code:1006,reason:"An error occurred with the EventSource: ".concat(r),wasClean:!1})),n.setReadyState(rh.ReadyState.CLOSED))}),rh.isEventSourceSupported&&e instanceof EventSource&&e.close()}},BPe=function(e,t,r,n){var o;return r.current.fromSocketIO&&(o=(0,SPe.setUpSocketIOPing)(n)),EPe(e,t,r.current.heartbeat),PPe(e,t),TPe(e,t),OPe(e,t),function(){o&&clearInterval(o)}};k7.attachSharedListeners=BPe;Object.defineProperty(w7,"__esModule",{value:!0});w7.createOrJoinSocket=void 0;var jf=x7,I0=xl,LPe=C7,MPe=k7,H5=S7,DPe=function(e,t,r,n,o){return function(){if((0,H5.removeSubscriber)(e,t),!(0,H5.hasSubscribers)(e)){try{var i=jf.sharedWebSockets[e];i instanceof WebSocket&&(i.onclose=function(a){r.current.onClose&&r.current.onClose(a),n(I0.ReadyState.CLOSED)}),i.close()}catch{}o&&o(),delete jf.sharedWebSockets[e]}}},IPe=function(e,t,r,n,o,i,a,s){if(!I0.isEventSourceSupported&&n.current.eventSourceOptions)throw I0.isReactNative?new Error("EventSource is not supported in ReactNative"):new Error("EventSource is not supported");if(n.current.share){var l=null;jf.sharedWebSockets[t]===void 0?(jf.sharedWebSockets[t]=n.current.eventSourceOptions?new EventSource(t,n.current.eventSourceOptions):new WebSocket(t,n.current.protocols),e.current=jf.sharedWebSockets[t],r(I0.ReadyState.CONNECTING),l=(0,MPe.attachSharedListeners)(jf.sharedWebSockets[t],t,n,s)):(e.current=jf.sharedWebSockets[t],r(jf.sharedWebSockets[t].readyState));var u={setLastMessage:o,setReadyState:r,optionsRef:n,reconnectCount:a,reconnect:i};return(0,H5.addSubscriber)(t,u),DPe(t,u,n,r,l)}else{if(e.current=n.current.eventSourceOptions?new EventSource(t,n.current.eventSourceOptions):new WebSocket(t,n.current.protocols),r(I0.ReadyState.CONNECTING),!e.current)throw new Error("WebSocket failed to be created");return(0,LPe.attachListeners)(e.current,{setLastMessage:o,setReadyState:r},n,i.current,a,s)}};w7.createOrJoinSocket=IPe;var EW={};(function(e){var t=Nn&&Nn.__awaiter||function(s,l,u,c){function f(A){return A instanceof u?A:new u(function(h){h(A)})}return new(u||(u=Promise))(function(A,h){function m(x){try{w(c.next(x))}catch(C){h(C)}}function v(x){try{w(c.throw(x))}catch(C){h(C)}}function w(x){x.done?A(x.value):f(x.value).then(m,v)}w((c=c.apply(s,l||[])).next())})},r=Nn&&Nn.__generator||function(s,l){var u={label:0,sent:function(){if(A[0]&1)throw A[1];return A[1]},trys:[],ops:[]},c,f,A,h;return h={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function m(w){return function(x){return v([w,x])}}function v(w){if(c)throw new TypeError("Generator is already executing.");for(;u;)try{if(c=1,f&&(A=w[0]&2?f.return:w[0]?f.throw||((A=f.return)&&A.call(f),0):f.next)&&!(A=A.call(f,w[1])).done)return A;switch(f=0,A&&(w=[w[0]&2,A.value]),w[0]){case 0:case 1:A=w;break;case 4:return u.label++,{value:w[1],done:!1};case 5:u.label++,f=w[1],w=[0];continue;case 7:w=u.ops.pop(),u.trys.pop();continue;default:if(A=u.trys,!(A=A.length>0&&A[A.length-1])&&(w[0]===6||w[0]===2)){u=0;continue}if(w[0]===3&&(!A||w[1]>A[0]&&w[1]<A[3])){u.label=w[1];break}if(w[0]===6&&u.label<A[1]){u.label=A[1],A=w;break}if(A&&u.label<A[2]){u.label=A[2],u.ops.push(w);break}A[2]&&u.ops.pop(),u.trys.pop();continue}w=l.call(s,u)}catch(x){w=[6,x],f=0}finally{c=A=0}if(w[0]&5)throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0}),e.getUrl=void 0;var n=Cu,o=xl,i=function(s){return new Promise(function(l){return window.setTimeout(l,s)})},a=function(s,l,u){return u===void 0&&(u=0),t(void 0,void 0,void 0,function(){var c,f,A,h,m,v,w,x;return r(this,function(C){switch(C.label){case 0:if(typeof s!="function")return[3,10];C.label=1;case 1:return C.trys.push([1,3,,9]),[4,s()];case 2:return c=C.sent(),[3,9];case 3:return C.sent(),l.current.retryOnError?(f=(v=l.current.reconnectAttempts)!==null&&v!==void 0?v:o.DEFAULT_RECONNECT_LIMIT,u<f?(A=typeof l.current.reconnectInterval=="function"?l.current.reconnectInterval(u):l.current.reconnectInterval,[4,i(A??o.DEFAULT_RECONNECT_INTERVAL_MS)]):[3,5]):[3,7];case 4:return C.sent(),[2,(0,e.getUrl)(s,l,u+1)];case 5:return(x=(w=l.current).onReconnectStop)===null||x===void 0||x.call(w,u),[2,null];case 6:return[3,8];case 7:return[2,null];case 8:return[3,9];case 9:return[3,11];case 10:c=s,C.label=11;case 11:return h=l.current.fromSocketIO?(0,n.parseSocketIOUrl)(c):c,m=l.current.queryParams?(0,n.appendQueryParams)(h,l.current.queryParams):h,[2,m]}})})};e.getUrl=a})(EW);var TW={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.websocketWrapper=void 0;var t=function(r,n){return new Proxy(r,{get:function(o,i){var a=o[i];return i==="reconnect"?n:typeof a=="function"?(console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."),function(){}):a},set:function(o,i,a){return/^on/.test(i)?(console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."),!1):(o[i]=a,!0)}})};e.websocketWrapper=t,e.default=e.websocketWrapper})(TW);var Hf=Nn&&Nn.__assign||function(){return Hf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Hf.apply(this,arguments)},NPe=Nn&&Nn.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(c){try{u(n.next(c))}catch(f){a(f)}}function l(c){try{u(n.throw(c))}catch(f){a(f)}}function u(c){c.done?i(c.value):o(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})},RPe=Nn&&Nn.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},FPe=Nn&&Nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ng,"__esModule",{value:!0});Ng.useWebSocket=void 0;var Wo=ce,c9=Jx,eu=xl,zPe=w7,jPe=EW,HPe=FPe(TW),tN=hd,_Pe=function(e,t,r){t===void 0&&(t=eu.DEFAULT_OPTIONS),r===void 0&&(r=!0);var n=(0,Wo.useState)(null),o=n[0],i=n[1],a=(0,Wo.useState)({}),s=a[0],l=a[1],u=(0,Wo.useMemo)(function(){if(o)try{return JSON.parse(o.data)}catch{return eu.UNPARSABLE_JSON_OBJECT}return null},[o]),c=(0,Wo.useRef)(null),f=(0,Wo.useRef)(null),A=(0,Wo.useRef)(function(){}),h=(0,Wo.useRef)(0),m=(0,Wo.useRef)([]),v=(0,Wo.useRef)(null),w=(0,Wo.useRef)(t);w.current=t;var x=c.current&&s[c.current]!==void 0?s[c.current]:e!==null&&r===!0?eu.ReadyState.CONNECTING:eu.ReadyState.UNINSTANTIATED,C=t.queryParams?JSON.stringify(t.queryParams):null,k=(0,Wo.useCallback)(function(L,B){var M;if(B===void 0&&(B=!0),eu.isEventSourceSupported&&f.current instanceof EventSource){console.warn("Unable to send a message from an eventSource");return}((M=f.current)===null||M===void 0?void 0:M.readyState)===eu.ReadyState.OPEN?((0,tN.assertIsWebSocket)(f.current,w.current.skipAssert),f.current.send(L)):B&&m.current.push(L)},[]),P=(0,Wo.useCallback)(function(L,B){B===void 0&&(B=!0),k(JSON.stringify(L),B)},[k]),O=(0,Wo.useCallback)(function(){return w.current.share!==!0||eu.isEventSourceSupported&&f.current instanceof EventSource?f.current:(v.current===null&&f.current&&((0,tN.assertIsWebSocket)(f.current,w.current.skipAssert),v.current=(0,HPe.default)(f.current,A)),v.current)},[]);return(0,Wo.useEffect)(function(){if(e!==null&&r===!0){var L,B=!1,M=!0,F=function(){return NPe(void 0,void 0,void 0,function(){var N,z,R;return RPe(this,function(W){switch(W.label){case 0:return N=c,[4,(0,jPe.getUrl)(e,w)];case 1:return N.current=W.sent(),c.current===null?(console.error("Failed to get a valid URL. WebSocket connection aborted."),c.current="ABORTED",(0,c9.flushSync)(function(){return l(function(U){return Hf(Hf({},U),{ABORTED:eu.ReadyState.CLOSED})})}),[2]):(z=function(U){B||(0,c9.flushSync)(function(){return i(U)})},R=function(U){B||(0,c9.flushSync)(function(){return l(function(K){var Y;return Hf(Hf({},K),c.current&&(Y={},Y[c.current]=U,Y))})})},M&&(L=(0,zPe.createOrJoinSocket)(f,c.current,R,w,z,A,h,k)),[2])}})})};return A.current=function(){B||(v.current&&(v.current=null),L==null||L(),F())},F(),function(){B=!0,M=!1,v.current&&(v.current=null),L==null||L(),i(null)}}else(e===null||r===!1)&&(h.current=0,l(function(N){var z;return Hf(Hf({},N),c.current&&(z={},z[c.current]=eu.ReadyState.CLOSED,z))}))},[e,r,C,k]),(0,Wo.useEffect)(function(){x===eu.ReadyState.OPEN&&m.current.splice(0).forEach(function(L){k(L)})},[x]),{sendMessage:k,sendJsonMessage:P,lastMessage:o,lastJsonMessage:u,readyState:x,getWebSocket:O}};Ng.useWebSocket=_Pe;var E7={},Dx=Nn&&Nn.__assign||function(){return Dx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Dx.apply(this,arguments)};Object.defineProperty(E7,"__esModule",{value:!0});E7.useSocketIO=void 0;var rN=ce,XPe=Ng,VPe=xl,f9={type:"empty",payload:null},qPe=function(e){if(!e||!e.data)return f9;var t=e.data.match(/\[.*]/);if(!t)return f9;var r=JSON.parse(t);return!Array.isArray(r)||!r[1]?f9:{type:r[0],payload:r[1]}},WPe=function(e,t,r){t===void 0&&(t=VPe.DEFAULT_OPTIONS),r===void 0&&(r=!0);var n=(0,rN.useMemo)(function(){return Dx(Dx({},t),{fromSocketIO:!0})},[]),o=(0,XPe.useWebSocket)(e,n,r),i=o.sendMessage,a=o.sendJsonMessage,s=o.lastMessage,l=o.readyState,u=o.getWebSocket,c=(0,rN.useMemo)(function(){return qPe(s)},[s]);return{sendMessage:i,sendJsonMessage:a,lastMessage:c,lastJsonMessage:c,readyState:l,getWebSocket:u}};E7.useSocketIO=WPe;var T7={},Ix=Nn&&Nn.__assign||function(){return Ix=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ix.apply(this,arguments)},UPe=Nn&&Nn.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};Object.defineProperty(T7,"__esModule",{value:!0});T7.useEventSource=void 0;var nN=ce,QPe=Ng,iN=xl,GPe=function(e,t,r){t===void 0&&(t=iN.DEFAULT_EVENT_SOURCE_OPTIONS);var n=t.withCredentials,o=t.events,i=UPe(t,["withCredentials","events"]);r===void 0&&(r=!0);var a=Ix(Ix({},i),{eventSourceOptions:{withCredentials:n}}),s=(0,nN.useRef)(iN.EMPTY_EVENT_HANDLERS);o&&(s.current=o);var l=(0,QPe.useWebSocket)(e,a,r),u=l.lastMessage,c=l.readyState,f=l.getWebSocket;return(0,nN.useEffect)(function(){u!=null&&u.type&&Object.entries(s.current).forEach(function(A){var h=A[0],m=A[1];h===u.type&&m(u)})},[u]),{lastEvent:u,readyState:c,getEventSource:f}};T7.useEventSource=GPe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.resetGlobalState=e.useEventSource=e.ReadyState=e.useSocketIO=e.default=void 0;var t=Ng;Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useWebSocket}});var r=E7;Object.defineProperty(e,"useSocketIO",{enumerable:!0,get:function(){return r.useSocketIO}});var n=xl;Object.defineProperty(e,"ReadyState",{enumerable:!0,get:function(){return n.ReadyState}});var o=T7;Object.defineProperty(e,"useEventSource",{enumerable:!0,get:function(){return o.useEventSource}});var i=hd;Object.defineProperty(e,"resetGlobalState",{enumerable:!0,get:function(){return i.resetGlobalState}})})(eP);const YPe=f1(eP);function ZPe(){const e=Gj(),{rasaSpace:t,rasaRadii:r}=Bu(),[n,o]=ce.useState(""),[i,a]=ce.useState([]),[s,l]=ce.useState([]),[u,c]=ce.useState([]),[f,A]=ce.useState(""),[h,m]=ce.useState([]),[v,w]=ce.useState(void 0),x=!window.location.href.includes("socketio"),C=window.location.href.replace("inspect.html","tracker_stream").replace("http","ws"),{sendJsonMessage:k,lastJsonMessage:P,readyState:O}=YPe(C,{share:!1,shouldReconnect:()=>!0});ce.useEffect(()=>{O===eP.ReadyState.OPEN&&n&&k({action:"retrieve",sender_id:n})},[O,k,n]),ce.useEffect(()=>{if(!x)return;const U=e5e.parse(window.location.search).sender;if(U&&U!==n)o(U);else if(!U&&n){const K=new URL(window.location.href);K.searchParams.set("sender",n),window.history.pushState(null,"",K.toString())}},[n,x]),ce.useEffect(()=>{DM.get("/flows").then(W=>a(W.data)).catch(W=>{e.isActive("flows")||e({id:"flows",title:"Flows could not be retrieved",description:(W==null?void 0:W.message)||"An unknown error happened.",status:"error",duration:4e3,isClosable:!0})})},[e]);function L(){DM.get(`/conversations/${n}/story`).then(W=>A(W.data)).catch(W=>{e.isActive("story-error")||e({id:"story-error",title:"Stories could not be retrieved",description:(W==null?void 0:W.message)||"An unknown error happened.",status:"error",duration:4e3,isClosable:!0})})}ce.useEffect(()=>{if(P)if(!n||(P==null?void 0:P.sender_id)===n){l(zve(P.slots)),c(P.events);const W=oge(P.stack,P.events);m(W),w(age(v,W,P.events)),o(P.sender_id)}else n&&P.sender_id},[P,n]),ce.useEffect(()=>{L()},[n]);const B={borderRadius:r.normal},F={gridTemplateColumns:Ede({base:"21rem minmax(20rem, auto) 21rem","2xl":"25rem auto 25rem"}),gridTemplateRows:"1fr",gridColumnGap:t[1],height:"100vh",padding:t[2]},N={...B,padding:t[1],bg:$o("neutral.50","neutral.50"),overflow:"hidden"},z={height:"100%",overflow:"hidden",gridTemplateColumns:"1fr",gridTemplateRows:"max-content minmax(10rem, 17.5rem) minmax(10rem, auto)",gridRowGap:t[1]},R=W=>{w({stack:W,activatedSteps:Z4(u)[W.flow_id],isUserSelected:!0})};return!n&&!window.location.href.includes("socketio")?be.jsx(o0e,{}):be.jsxs(j4,{sx:F,children:[be.jsx(M2,{overflow:"hidden",children:be.jsxs(j4,{sx:z,children:[be.jsx(Wme,{sx:N}),be.jsx(sge,{sx:N,stack:h,active:v==null?void 0:v.stack,onItemClick:R}),be.jsx(Qve,{sx:N,rasaChatSessionId:n,slots:s,events:u,story:f})]})}),be.jsx(M2,{sx:N,children:be.jsx(V4e,{stackFrame:v==null?void 0:v.stack,stepTrail:(v==null?void 0:v.activatedSteps)||[],flows:i,slots:s})}),x&&be.jsx(M2,{children:be.jsx(aPe,{events:u||[]})})]})}A9.createRoot(document.getElementById("root")).render(be.jsx(Go.StrictMode,{children:be.jsx(Mce,{theme:Vme,children:be.jsx(ZPe,{})})}));/*! For license information please see widget.js.LICENSE.txt */(()=>{var e={67640:(n,o,i)=>{i.d(o,{Ni:()=>v,F4:()=>k,Xn:()=>w});var a=i(64343),s=function(){function L(M){this.isSpeedy=M.speedy===void 0||M.speedy,this.tags=[],this.ctr=0,this.nonce=M.nonce,this.key=M.key,this.container=M.container,this.before=null}var B=L.prototype;return B.insert=function(M){if(this.ctr%(this.isSpeedy?65e3:1)==0){var F,N=function(U){var K=document.createElement("style");return K.setAttribute("data-emotion",U.key),U.nonce!==void 0&&K.setAttribute("nonce",U.nonce),K.appendChild(document.createTextNode("")),K}(this);F=this.tags.length===0?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(N,F),this.tags.push(N)}var z=this.tags[this.tags.length-1];if(this.isSpeedy){var R=function(U){if(U.sheet)return U.sheet;for(var K=0;K<document.styleSheets.length;K++)if(document.styleSheets[K].ownerNode===U)return document.styleSheets[K]}(z);try{var W=M.charCodeAt(1)===105&&M.charCodeAt(0)===64;R.insertRule(M,W?0:R.cssRules.length)}catch{}}else z.appendChild(document.createTextNode(M));this.ctr++},B.flush=function(){this.tags.forEach(function(M){return M.parentNode.removeChild(M)}),this.tags=[],this.ctr=0},L}();const l=function(L){function B(at,ct,pt,St,Re){for(var We,Ue,bt,nt,st,xt=0,Ct=0,ot=0,gt=0,kt=0,Jt=0,Gt=bt=We=0,Nt=0,wr=0,tn=0,Kr=0,Ln=pt.length,Yr=Ln-1,Wt="",Xr="",Rn="",Sn="";Nt<Ln;){if(Ue=pt.charCodeAt(Nt),Nt===Yr&&Ct+gt+ot+xt!==0&&(Ct!==0&&(Ue=Ct===47?10:47),gt=ot=xt=0,Ln++,Yr++),Ct+gt+ot+xt===0){if(Nt===Yr&&(0<wr&&(Wt=Wt.replace(j,"")),0<Wt.trim().length)){switch(Ue){case 32:case 9:case 59:case 13:case 10:break;default:Wt+=pt.charAt(Nt)}Ue=59}switch(Ue){case 123:for(We=(Wt=Wt.trim()).charCodeAt(0),bt=1,Kr=++Nt;Nt<Ln;){switch(Ue=pt.charCodeAt(Nt)){case 123:bt++;break;case 125:bt--;break;case 47:switch(Ue=pt.charCodeAt(Nt+1)){case 42:case 47:e:{for(Gt=Nt+1;Gt<Yr;++Gt)switch(pt.charCodeAt(Gt)){case 47:if(Ue===42&&pt.charCodeAt(Gt-1)===42&&Nt+2!==Gt){Nt=Gt+1;break e}break;case 10:if(Ue===47){Nt=Gt+1;break e}}Nt=Gt}}break;case 91:Ue++;case 40:Ue++;case 34:case 39:for(;Nt++<Yr&&pt.charCodeAt(Nt)!==Ue;);}if(bt===0)break;Nt++}switch(bt=pt.substring(Kr,Nt),We===0&&(We=(Wt=Wt.replace(Y,"").trim()).charCodeAt(0)),We){case 64:switch(0<wr&&(Wt=Wt.replace(j,"")),Ue=Wt.charCodeAt(1)){case 100:case 109:case 115:case 45:wr=ct;break;default:wr=he}if(Kr=(bt=B(ct,wr,bt,Ue,Re+1)).length,0<wt&&(st=W(3,bt,wr=M(he,Wt,tn),ct,lt,ae,Kr,Ue,Re,St),Wt=wr.join(""),st!==void 0&&(Kr=(bt=st.trim()).length)===0&&(Ue=0,bt="")),0<Kr)switch(Ue){case 115:Wt=Wt.replace(Le,R);case 100:case 109:case 45:bt=Wt+"{"+bt+"}";break;case 107:bt=(Wt=Wt.replace(Q,"$1 $2"))+"{"+bt+"}",bt=Ve===1||Ve===2&&z("@"+bt,3)?"@-webkit-"+bt+"@"+bt:"@"+bt;break;default:bt=Wt+bt,St===112&&(Xr+=bt,bt="")}else bt="";break;default:bt=B(ct,M(ct,Wt,tn),bt,St,Re+1)}Rn+=bt,bt=tn=wr=Gt=We=0,Wt="",Ue=pt.charCodeAt(++Nt);break;case 125:case 59:if(1<(Kr=(Wt=(0<wr?Wt.replace(j,""):Wt).trim()).length))switch(Gt===0&&(We=Wt.charCodeAt(0),We===45||96<We&&123>We)&&(Kr=(Wt=Wt.replace(" ",":")).length),0<wt&&(st=W(1,Wt,ct,at,lt,ae,Xr.length,St,Re,St))!==void 0&&(Kr=(Wt=st.trim()).length)===0&&(Wt="\0\0"),We=Wt.charCodeAt(0),Ue=Wt.charCodeAt(1),We){case 0:break;case 64:if(Ue===105||Ue===99){Sn+=Wt+pt.charAt(Nt);break}default:Wt.charCodeAt(Kr-1)!==58&&(Xr+=N(Wt,We,Ue,Wt.charCodeAt(2)))}tn=wr=Gt=We=0,Wt="",Ue=pt.charCodeAt(++Nt)}}switch(Ue){case 13:case 10:Ct===47?Ct=0:1+We===0&&St!==107&&0<Wt.length&&(wr=1,Wt+="\0"),0<wt*_t&&W(0,Wt,ct,at,lt,ae,Xr.length,St,Re,St),ae=1,lt++;break;case 59:case 125:if(Ct+gt+ot+xt===0){ae++;break}default:switch(ae++,nt=pt.charAt(Nt),Ue){case 9:case 32:if(gt+xt+Ct===0)switch(kt){case 44:case 58:case 9:case 32:nt="";break;default:Ue!==32&&(nt=" ")}break;case 0:nt="\\0";break;case 12:nt="\\f";break;case 11:nt="\\v";break;case 38:gt+Ct+xt===0&&(wr=tn=1,nt="\f"+nt);break;case 108:if(gt+Ct+xt+et===0&&0<Gt)switch(Nt-Gt){case 2:kt===112&&pt.charCodeAt(Nt-3)===58&&(et=kt);case 8:Jt===111&&(et=Jt)}break;case 58:gt+Ct+xt===0&&(Gt=Nt);break;case 44:Ct+ot+gt+xt===0&&(wr=1,nt+="\r");break;case 34:case 39:Ct===0&&(gt=gt===Ue?0:gt===0?Ue:gt);break;case 91:gt+Ct+ot===0&&xt++;break;case 93:gt+Ct+ot===0&&xt--;break;case 41:gt+Ct+xt===0&&ot--;break;case 40:if(gt+Ct+xt===0){if(We===0)switch(2*kt+3*Jt){case 533:break;default:We=1}ot++}break;case 64:Ct+ot+gt+xt+Gt+bt===0&&(bt=1);break;case 42:case 47:if(!(0<gt+xt+ot))switch(Ct){case 0:switch(2*Ue+3*pt.charCodeAt(Nt+1)){case 235:Ct=47;break;case 220:Kr=Nt,Ct=42}break;case 42:Ue===47&&kt===42&&Kr+2!==Nt&&(pt.charCodeAt(Kr+2)===33&&(Xr+=pt.substring(Kr,Nt+1)),nt="",Ct=0)}}Ct===0&&(Wt+=nt)}Jt=kt,kt=Ue,Nt++}if(0<(Kr=Xr.length)){if(wr=ct,0<wt&&(st=W(2,Xr,wr,at,lt,ae,Kr,St,Re,St))!==void 0&&(Xr=st).length===0)return Sn+Xr+Rn;if(Xr=wr.join(",")+"{"+Xr+"}",Ve*et!=0){switch(Ve!==2||z(Xr,2)||(et=0),et){case 111:Xr=Xr.replace(ye,":-moz-$1")+Xr;break;case 112:Xr=Xr.replace(fe,"::-webkit-input-$1")+Xr.replace(fe,"::-moz-$1")+Xr.replace(fe,":-ms-input-$1")+Xr}et=0}}return Sn+Xr+Rn}function M(at,ct,pt){var St=ct.trim().split(Z);ct=St;var Re=St.length,We=at.length;switch(We){case 0:case 1:var Ue=0;for(at=We===0?"":at[0]+" ";Ue<Re;++Ue)ct[Ue]=F(at,ct[Ue],pt).trim();break;default:var bt=Ue=0;for(ct=[];Ue<Re;++Ue)for(var nt=0;nt<We;++nt)ct[bt++]=F(at[nt]+" ",St[Ue],pt).trim()}return ct}function F(at,ct,pt){var St=ct.charCodeAt(0);switch(33>St&&(St=(ct=ct.trim()).charCodeAt(0)),St){case 38:return ct.replace(ue,"$1"+at.trim());case 58:return at.trim()+ct.replace(ue,"$1"+at.trim());default:if(0<1*pt&&0<ct.indexOf("\f"))return ct.replace(ue,(at.charCodeAt(0)===58?"":"$1")+at.trim())}return at+ct}function N(at,ct,pt,St){var Re=at+";",We=2*ct+3*pt+4*St;if(We===944){at=Re.indexOf(":",9)+1;var Ue=Re.substring(at,Re.length-1).trim();return Ue=Re.substring(0,at).trim()+Ue+";",Ve===1||Ve===2&&z(Ue,1)?"-webkit-"+Ue+Ue:Ue}if(Ve===0||Ve===2&&!z(Re,1))return Re;switch(We){case 1015:return Re.charCodeAt(10)===97?"-webkit-"+Re+Re:Re;case 951:return Re.charCodeAt(3)===116?"-webkit-"+Re+Re:Re;case 963:return Re.charCodeAt(5)===110?"-webkit-"+Re+Re:Re;case 1009:if(Re.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+Re+Re;case 978:return"-webkit-"+Re+"-moz-"+Re+Re;case 1019:case 983:return"-webkit-"+Re+"-moz-"+Re+"-ms-"+Re+Re;case 883:if(Re.charCodeAt(8)===45)return"-webkit-"+Re+Re;if(0<Re.indexOf("image-set(",11))return Re.replace(He,"$1-webkit-$2")+Re;break;case 932:if(Re.charCodeAt(4)===45)switch(Re.charCodeAt(5)){case 103:return"-webkit-box-"+Re.replace("-grow","")+"-webkit-"+Re+"-ms-"+Re.replace("grow","positive")+Re;case 115:return"-webkit-"+Re+"-ms-"+Re.replace("shrink","negative")+Re;case 98:return"-webkit-"+Re+"-ms-"+Re.replace("basis","preferred-size")+Re}return"-webkit-"+Re+"-ms-"+Re+Re;case 964:return"-webkit-"+Re+"-ms-flex-"+Re+Re;case 1023:if(Re.charCodeAt(8)!==99)break;return"-webkit-box-pack"+(Ue=Re.substring(Re.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+Re+"-ms-flex-pack"+Ue+Re;case 1005:return $.test(Re)?Re.replace(H,":-webkit-")+Re.replace(H,":-moz-")+Re:Re;case 1e3:switch(ct=(Ue=Re.substring(13).trim()).indexOf("-")+1,Ue.charCodeAt(0)+Ue.charCodeAt(ct)){case 226:Ue=Re.replace(le,"tb");break;case 232:Ue=Re.replace(le,"tb-rl");break;case 220:Ue=Re.replace(le,"lr");break;default:return Re}return"-webkit-"+Re+"-ms-"+Ue+Re;case 1017:if(Re.indexOf("sticky",9)===-1)break;case 975:switch(ct=(Re=at).length-10,We=(Ue=(Re.charCodeAt(ct)===33?Re.substring(0,ct):Re).substring(at.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|Ue.charCodeAt(7))){case 203:if(111>Ue.charCodeAt(8))break;case 115:Re=Re.replace(Ue,"-webkit-"+Ue)+";"+Re;break;case 207:case 102:Re=Re.replace(Ue,"-webkit-"+(102<We?"inline-":"")+"box")+";"+Re.replace(Ue,"-webkit-"+Ue)+";"+Re.replace(Ue,"-ms-"+Ue+"box")+";"+Re}return Re+";";case 938:if(Re.charCodeAt(5)===45)switch(Re.charCodeAt(6)){case 105:return Ue=Re.replace("-items",""),"-webkit-"+Re+"-webkit-box-"+Ue+"-ms-flex-"+Ue+Re;case 115:return"-webkit-"+Re+"-ms-flex-item-"+Re.replace(Oe,"")+Re;default:return"-webkit-"+Re+"-ms-flex-line-pack"+Re.replace("align-content","").replace(Oe,"")+Re}break;case 973:case 989:if(Re.charCodeAt(3)!==45||Re.charCodeAt(4)===122)break;case 931:case 953:if($e.test(at)===!0)return(Ue=at.substring(at.indexOf(":")+1)).charCodeAt(0)===115?N(at.replace("stretch","fill-available"),ct,pt,St).replace(":fill-available",":stretch"):Re.replace(Ue,"-webkit-"+Ue)+Re.replace(Ue,"-moz-"+Ue.replace("fill-",""))+Re;break;case 962:if(Re="-webkit-"+Re+(Re.charCodeAt(5)===102?"-ms-"+Re:"")+Re,pt+St===211&&Re.charCodeAt(13)===105&&0<Re.indexOf("transform",10))return Re.substring(0,Re.indexOf(";",27)+1).replace(q,"$1-webkit-$2")+Re}return Re}function z(at,ct){var pt=at.indexOf(ct===1?":":"{"),St=at.substring(0,ct!==3?pt:10);return pt=at.substring(pt+1,at.length-1),Lt(ct!==2?St:St.replace(Fe,"$1"),pt,ct)}function R(at,ct){var pt=N(ct,ct.charCodeAt(0),ct.charCodeAt(1),ct.charCodeAt(2));return pt!==ct+";"?pt.replace(ge," or ($1)").substring(4):"("+ct+")"}function W(at,ct,pt,St,Re,We,Ue,bt,nt,st){for(var xt,Ct=0,ot=ct;Ct<wt;++Ct)switch(xt=Dt[Ct].call(K,at,ot,pt,St,Re,We,Ue,bt,nt,st)){case void 0:case!1:case!0:case null:break;default:ot=xt}if(ot!==ct)return ot}function U(at){return(at=at.prefix)!==void 0&&(Lt=null,at?typeof at!="function"?Ve=1:(Ve=2,Lt=at):Ve=0),U}function K(at,ct){var pt=at;if(33>pt.charCodeAt(0)&&(pt=pt.trim()),pt=[pt],0<wt){var St=W(-1,ct,pt,pt,lt,ae,0,0,0,0);St!==void 0&&typeof St=="string"&&(ct=St)}var Re=B(he,pt,ct,0,0);return 0<wt&&(St=W(-2,Re,pt,pt,lt,ae,Re.length,0,0,0))!==void 0&&(Re=St),et=0,ae=lt=1,Re}var Y=/^\0+/g,j=/[\0\r\f]/g,H=/: */g,$=/zoo|gra/,q=/([,: ])(transform)/g,Z=/,\r+?/g,ue=/([\t\r\n ])*\f?&/g,Q=/@(k\w+)\s*(\S*)\s*/,fe=/::(place)/g,ye=/:(read-only)/g,le=/[svh]\w+-[tblr]{2}/,Le=/\(\s*(.*)\s*\)/g,ge=/([\s\S]*?);/g,Oe=/-self|flex-/g,Fe=/[^]*?(:[rp][el]a[\w-]+)[^]*/,$e=/stretch|:\s*\w+\-(?:conte|avail)/,He=/([^-])(image-set\()/,ae=1,lt=1,et=0,Ve=1,he=[],Dt=[],wt=0,Lt=null,_t=0;return K.use=function at(ct){switch(ct){case void 0:case null:wt=Dt.length=0;break;default:if(typeof ct=="function")Dt[wt++]=ct;else if(typeof ct=="object")for(var pt=0,St=ct.length;pt<St;++pt)at(ct[pt]);else _t=0|!!ct}return at},K.set=U,L!==void 0&&U(L),K};var u="/*|*/";function c(L){L&&f.current.insert(L+"}")}var f={current:null},A=function(L,B,M,F,N,z,R,W,U,K){switch(L){case 1:switch(B.charCodeAt(0)){case 64:return f.current.insert(B+";"),"";case 108:if(B.charCodeAt(2)===98)return""}break;case 2:if(W===0)return B+u;break;case 3:switch(W){case 102:case 112:return f.current.insert(M[0]+B),"";default:return B+(K===0?u:"")}case-2:B.split("/*|*/}").forEach(c)}};i(43988);var h=i(5601),m=(0,a.createContext)(typeof HTMLElement<"u"?function(L){L===void 0&&(L={});var B,M=L.key||"css";L.prefix!==void 0&&(B={prefix:L.prefix});var F,N=new l(B),z={};F=L.container||document.head;var R,W=document.querySelectorAll("style[data-emotion-"+M+"]");Array.prototype.forEach.call(W,function(K){K.getAttribute("data-emotion-"+M).split(" ").forEach(function(Y){z[Y]=!0}),K.parentNode!==F&&F.appendChild(K)}),N.use(L.stylisPlugins)(A),R=function(K,Y,j,H){var $=Y.name;f.current=j,N(K,Y.styles),H&&(U.inserted[$]=!0)};var U={key:M,sheet:new s({key:M,container:F,nonce:L.nonce,speedy:L.speedy}),nonce:L.nonce,inserted:z,registered:{},insert:R};return U}():null),v=(0,a.createContext)({}),w=(m.Provider,function(L){var B=function(M,F){return(0,a.createElement)(m.Consumer,null,function(N){return L(M,N,F)})};return(0,a.forwardRef)(B)}),x=i(46546);const C=function(){for(var L=arguments.length,B=new Array(L),M=0;M<L;M++)B[M]=arguments[M];return(0,h.O)(B)};a.Component;var k=function(){var L=C.apply(void 0,arguments),B="animation-"+L.name;return{name:B,styles:"@keyframes "+B+"{"+L.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},P=function L(B){for(var M=B.length,F=0,N="";F<M;F++){var z=B[F];if(z!=null){var R=void 0;switch(typeof z){case"boolean":break;case"object":if(Array.isArray(z))R=L(z);else for(var W in R="",z)z[W]&&W&&(R&&(R+=" "),R+=W);break;default:R=z}R&&(N&&(N+=" "),N+=R)}}return N};function O(L,B,M){var F=[],N=(0,x.f)(L,F,M);return F.length<2?M:N+B(F)}w(function(L,B){return(0,a.createElement)(v.Consumer,null,function(M){var F=function(){for(var z=arguments.length,R=new Array(z),W=0;W<z;W++)R[W]=arguments[W];var U=(0,h.O)(R,B.registered);return(0,x.M)(B,U,!1),B.key+"-"+U.name},N={css:F,cx:function(){for(var z=arguments.length,R=new Array(z),W=0;W<z;W++)R[W]=arguments[W];return O(B.registered,F,P(R))},theme:M};return L.children(N)})})},55287:(n,o,i)=>{i.r(o),i.d(o,{default:()=>k});var a=i(1258),s=i.n(a),l=i(64343),u=i(90240),c=i(67640),f=i(46546),A=i(5601),h=u.Z,m=function(P){return P!=="theme"&&P!=="innerRef"},v=function(P){return typeof P=="string"&&P.charCodeAt(0)>96?h:m};function w(P,O){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(P);O&&(B=B.filter(function(M){return Object.getOwnPropertyDescriptor(P,M).enumerable})),L.push.apply(L,B)}return L}function x(P){for(var O=1;O<arguments.length;O++){var L=arguments[O]!=null?arguments[O]:{};O%2?w(L,!0).forEach(function(B){s()(P,B,L[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):w(L).forEach(function(B){Object.defineProperty(P,B,Object.getOwnPropertyDescriptor(L,B))})}return P}var C=(function P(O,L){var B,M,F;L!==void 0&&(B=L.label,F=L.target,M=O.__emotion_forwardProp&&L.shouldForwardProp?function(U){return O.__emotion_forwardProp(U)&&L.shouldForwardProp(U)}:L.shouldForwardProp);var N=O.__emotion_real===O,z=N&&O.__emotion_base||O;typeof M!="function"&&N&&(M=O.__emotion_forwardProp);var R=M||v(z),W=!R("as");return function(){var U=arguments,K=N&&O.__emotion_styles!==void 0?O.__emotion_styles.slice(0):[];if(B!==void 0&&K.push("label:"+B+";"),U[0]==null||U[0].raw===void 0)K.push.apply(K,U);else{K.push(U[0][0]);for(var Y=U.length,j=1;j<Y;j++)K.push(U[j],U[0][j])}var H=(0,c.Xn)(function($,q,Z){return(0,l.createElement)(c.Ni.Consumer,null,function(ue){var Q=W&&$.as||z,fe="",ye=[],le=$;if($.theme==null){for(var Le in le={},$)le[Le]=$[Le];le.theme=ue}typeof $.className=="string"?fe=(0,f.f)(q.registered,ye,$.className):$.className!=null&&(fe=$.className+" ");var ge=(0,A.O)(K.concat(ye),q.registered,le);(0,f.M)(q,ge,typeof Q=="string"),fe+=q.key+"-"+ge.name,F!==void 0&&(fe+=" "+F);var Oe=W&&M===void 0?v(Q):R,Fe={};for(var $e in $)W&&$e==="as"||Oe($e)&&(Fe[$e]=$[$e]);return Fe.className=fe,Fe.ref=Z||$.innerRef,(0,l.createElement)(Q,Fe)})});return H.displayName=B!==void 0?B:"Styled("+(typeof z=="string"?z:z.displayName||z.name||"Component")+")",H.defaultProps=O.defaultProps,H.__emotion_real=H,H.__emotion_base=z,H.__emotion_styles=K,H.__emotion_forwardProp=M,Object.defineProperty(H,"toString",{value:function(){return"."+F}}),H.withComponent=function($,q){return P($,q!==void 0?x({},L||{},{},q):L).apply(void 0,K)},H}}).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(P){C[P]=C(P)});const k=C},9106:(n,o,i)=>{o.formatArgs=function(s){if(s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;s.splice(1,0,l,"color: inherit");let u=0,c=0;s[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(c=u))}),s.splice(c,0,l)},o.save=function(s){try{s?o.storage.setItem("debug",s):o.storage.removeItem("debug")}catch{}},o.load=function(){let s;try{s=o.storage.getItem("debug")}catch{}return!s&&typeof process<"u"&&"env"in process&&(s={}.DEBUG),s},o.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer"&&!window.process.__nwjs)||(typeof navigator>"u"||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},o.storage=function(){try{return localStorage}catch{}}(),o.destroy=(()=>{let s=!1;return()=>{s||(s=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),o.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],o.log=console.debug||console.log||(()=>{}),n.exports=i(42415)(o);const{formatters:a}=n.exports;a.j=function(s){try{return JSON.stringify(s)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}},42415:(n,o,i)=>{n.exports=function(a){function s(c){let f,A,h,m=null;function v(...w){if(!v.enabled)return;const x=v,C=Number(new Date),k=C-(f||C);x.diff=k,x.prev=f,x.curr=C,f=C,w[0]=s.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");let P=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,(O,L)=>{if(O==="%%")return"%";P++;const B=s.formatters[L];if(typeof B=="function"){const M=w[P];O=B.call(x,M),w.splice(P,1),P--}return O}),s.formatArgs.call(x,w),(x.log||s.log).apply(x,w)}return v.namespace=c,v.useColors=s.useColors(),v.color=s.selectColor(c),v.extend=l,v.destroy=s.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(A!==s.namespaces&&(A=s.namespaces,h=s.enabled(c)),h),set:w=>{m=w}}),typeof s.init=="function"&&s.init(v),v}function l(c,f){const A=s(this.namespace+(f===void 0?":":f)+c);return A.log=this.log,A}function u(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}return s.debug=s,s.default=s,s.coerce=function(c){return c instanceof Error?c.stack||c.message:c},s.disable=function(){const c=[...s.names.map(u),...s.skips.map(u).map(f=>"-"+f)].join(",");return s.enable(""),c},s.enable=function(c){let f;s.save(c),s.namespaces=c,s.names=[],s.skips=[];const A=(typeof c=="string"?c:"").split(/[\s,]+/),h=A.length;for(f=0;f<h;f++)A[f]&&((c=A[f].replace(/\*/g,".*?"))[0]==="-"?s.skips.push(new RegExp("^"+c.substr(1)+"$")):s.names.push(new RegExp("^"+c+"$")))},s.enabled=function(c){if(c[c.length-1]==="*")return!0;let f,A;for(f=0,A=s.skips.length;f<A;f++)if(s.skips[f].test(c))return!1;for(f=0,A=s.names.length;f<A;f++)if(s.names[f].test(c))return!0;return!1},s.humanize=i(199),s.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(a).forEach(c=>{s[c]=a[c]}),s.names=[],s.skips=[],s.formatters={},s.selectColor=function(c){let f=0;for(let A=0;A<c.length;A++)f=(f<<5)-f+c.charCodeAt(A),f|=0;return s.colors[Math.abs(f)%s.colors.length]},s.enable(s.load()),s}},48076:(n,o,i)=>{var a=i(64343),s=i(90518),l=i(2778);function u(p){for(var y="https://reactjs.org/docs/error-decoder.html?invariant="+p,E=1;E<arguments.length;E++)y+="&args[]="+encodeURIComponent(arguments[E]);return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!a)throw Error(u(227));var c=new Set,f={};function A(p,y){h(p,y),h(p+"Capture",y)}function h(p,y){for(f[p]=y,p=0;p<y.length;p++)c.add(y[p])}var m=!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0),v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w=Object.prototype.hasOwnProperty,x={},C={};function k(p,y,E,D,X,te,ie){this.acceptsBooleans=y===2||y===3||y===4,this.attributeName=D,this.attributeNamespace=X,this.mustUseProperty=E,this.propertyName=p,this.type=y,this.sanitizeURL=te,this.removeEmptyString=ie}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){P[p]=new k(p,0,!1,p,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var y=p[0];P[y]=new k(y,1,!1,p[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){P[p]=new k(p,2,!1,p.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){P[p]=new k(p,2,!1,p,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(p){P[p]=new k(p,3,!1,p.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(p){P[p]=new k(p,3,!0,p,null,!1,!1)}),["capture","download"].forEach(function(p){P[p]=new k(p,4,!1,p,null,!1,!1)}),["cols","rows","size","span"].forEach(function(p){P[p]=new k(p,6,!1,p,null,!1,!1)}),["rowSpan","start"].forEach(function(p){P[p]=new k(p,5,!1,p.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function L(p){return p[1].toUpperCase()}function B(p,y,E,D){var X=P.hasOwnProperty(y)?P[y]:null;(X!==null?X.type===0:!D&&2<y.length&&(y[0]==="o"||y[0]==="O")&&(y[1]==="n"||y[1]==="N"))||(function(te,ie,me,ke){if(ie==null||function(Ie,At,Xt,yt){if(Xt!==null&&Xt.type===0)return!1;switch(typeof At){case"function":case"symbol":return!0;case"boolean":return!yt&&(Xt!==null?!Xt.acceptsBooleans:(Ie=Ie.toLowerCase().slice(0,5))!=="data-"&&Ie!=="aria-");default:return!1}}(te,ie,me,ke))return!0;if(ke)return!1;if(me!==null)switch(me.type){case 3:return!ie;case 4:return ie===!1;case 5:return isNaN(ie);case 6:return isNaN(ie)||1>ie}return!1}(y,E,X,D)&&(E=null),D||X===null?function(te){return!!w.call(C,te)||!w.call(x,te)&&(v.test(te)?C[te]=!0:(x[te]=!0,!1))}(y)&&(E===null?p.removeAttribute(y):p.setAttribute(y,""+E)):X.mustUseProperty?p[X.propertyName]=E===null?X.type!==3&&"":E:(y=X.attributeName,D=X.attributeNamespace,E===null?p.removeAttribute(y):(E=(X=X.type)===3||X===4&&E===!0?"":""+E,D?p.setAttributeNS(D,y,E):p.setAttribute(y,E))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(p){var y=p.replace(O,L);P[y]=new k(y,1,!1,p,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var y=p.replace(O,L);P[y]=new k(y,1,!1,p,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var y=p.replace(O,L);P[y]=new k(y,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(p){P[p]=new k(p,1,!1,p.toLowerCase(),null,!1,!1)}),P.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(p){P[p]=new k(p,1,!1,p.toLowerCase(),null,!0,!0)});var M=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=60103,N=60106,z=60107,R=60108,W=60114,U=60109,K=60110,Y=60112,j=60113,H=60120,$=60115,q=60116,Z=60121,ue=60128,Q=60129,fe=60130,ye=60131;if(typeof Symbol=="function"&&Symbol.for){var le=Symbol.for;F=le("react.element"),N=le("react.portal"),z=le("react.fragment"),R=le("react.strict_mode"),W=le("react.profiler"),U=le("react.provider"),K=le("react.context"),Y=le("react.forward_ref"),j=le("react.suspense"),H=le("react.suspense_list"),$=le("react.memo"),q=le("react.lazy"),Z=le("react.block"),le("react.scope"),ue=le("react.opaque.id"),Q=le("react.debug_trace_mode"),fe=le("react.offscreen"),ye=le("react.legacy_hidden")}var Le,ge=typeof Symbol=="function"&&Symbol.iterator;function Oe(p){return p===null||typeof p!="object"?null:typeof(p=ge&&p[ge]||p["@@iterator"])=="function"?p:null}function Fe(p){if(Le===void 0)try{throw Error()}catch(E){var y=E.stack.trim().match(/\n( *(at )?)/);Le=y&&y[1]||""}return`
787
+ */const nPe=new Set(["children","localName","ref","style","className"]),$I=new WeakMap,eN=(e,t,r,n,o)=>{const i=o==null?void 0:o[t];i===void 0?(e[t]=r,r==null&&t in HTMLElement.prototype&&e.removeAttribute(t)):r!==n&&((a,s,l)=>{let u=$I.get(a);u===void 0&&$I.set(a,u=new Map);let c=u.get(s);l!==void 0?c===void 0?(u.set(s,c={handleEvent:l}),a.addEventListener(s,c)):c.handleEvent=l:c!==void 0&&(u.delete(s),a.removeEventListener(s,c))})(e,i,r)},iPe=({react:e,tagName:t,elementClass:r,events:n,displayName:o})=>{const i=new Set(Object.keys(n??{})),a=e.forwardRef((s,l)=>{const u=e.useRef(new Map),c=e.useRef(null),f={},A={};for(const[h,m]of Object.entries(s))nPe.has(h)?f[h==="className"?"class":h]=m:i.has(h)||h in r.prototype?A[h]=m:f[h]=m;return e.useLayoutEffect(()=>{if(c.current===null)return;const h=new Map;for(const m in A)eN(c.current,m,s[m],u.current.get(m),n),u.current.delete(m),h.set(m,s[m]);for(const[m,v]of u.current)eN(c.current,m,void 0,v,n);u.current=h}),e.useLayoutEffect(()=>{var h;(h=c.current)==null||h.removeAttribute("defer-hydration")},[]),f.suppressHydrationWarning=!0,e.createElement(t,{...f,ref:e.useCallback(h=>{c.current=h,typeof l=="function"?l(h):l!==null&&(l.current=h)},[l])})});return a.displayName=o??r.name,a},oPe=iPe({tagName:"deep-chat",elementClass:qr,react:d9,events:{onactivate:"activate",onchange:"change"}}),aPe=({sx:e,events:t,...r})=>{const n={...e,p:0,flexDirection:"column"},o=document.documentElement.scrollHeight-64;let i=21.75;document.documentElement.clientWidth>1631&&(i=25.75);const a=i*parseFloat(getComputedStyle(document.documentElement).fontSize),s=u=>{let c=u.command;return c==="start flow"?`Start (${u.flow})`:c==="set slot"?`Set (${u.name} = ${u.value})`:c},l=t.filter(u=>u.event==="user"||u.event==="bot").flatMap(u=>{var c,f;if(u.event==="user"){let A=((f=(c=u.parse_data)==null?void 0:c.commands)==null?void 0:f.map(h=>`<div>${s(h)}</div>`))||[];return[{role:u.event,text:u.text||""},{role:"system",html:`<div>${A.join("")}</div>`}]}else return[{role:u.event,text:u.text||""}]});return be.jsx(yu,{sx:n,...r,children:be.jsx(oPe,{avatars:!0,textInput:{disabled:!0},inputAreaStyle:{display:"none"},messageStyles:{html:{shared:{bubble:{backgroundColor:"unset",padding:"0px"}}}},style:{borderRadius:"10px",border:"none",width:a,height:o},history:l,demo:!0})})};var eP={},Ng={},xl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEventSourceSupported=e.isReactNative=e.ReadyState=e.DEFAULT_HEARTBEAT=e.UNPARSABLE_JSON_OBJECT=e.DEFAULT_RECONNECT_INTERVAL_MS=e.DEFAULT_RECONNECT_LIMIT=e.SOCKET_IO_PING_CODE=e.SOCKET_IO_PATH=e.SOCKET_IO_PING_INTERVAL=e.DEFAULT_EVENT_SOURCE_OPTIONS=e.EMPTY_EVENT_HANDLERS=e.DEFAULT_OPTIONS=void 0;var t=1,r=1e3*t;e.DEFAULT_OPTIONS={},e.EMPTY_EVENT_HANDLERS={},e.DEFAULT_EVENT_SOURCE_OPTIONS={withCredentials:!1,events:e.EMPTY_EVENT_HANDLERS},e.SOCKET_IO_PING_INTERVAL=25*r,e.SOCKET_IO_PATH="/socket.io/?EIO=3&transport=websocket",e.SOCKET_IO_PING_CODE="2",e.DEFAULT_RECONNECT_LIMIT=20,e.DEFAULT_RECONNECT_INTERVAL_MS=5e3,e.UNPARSABLE_JSON_OBJECT={},e.DEFAULT_HEARTBEAT={message:"ping",timeout:6e4,interval:25e3},function(o){o[o.UNINSTANTIATED=-1]="UNINSTANTIATED",o[o.CONNECTING=0]="CONNECTING",o[o.OPEN=1]="OPEN",o[o.CLOSING=2]="CLOSING",o[o.CLOSED=3]="CLOSED"}(e.ReadyState||(e.ReadyState={}));var n=function(){try{return"EventSource"in globalThis}catch{return!1}};e.isReactNative=typeof navigator<"u"&&navigator.product==="ReactNative",e.isEventSourceSupported=!e.isReactNative&&n()})(xl);var w7={},x7={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.resetWebSockets=e.sharedWebSockets=void 0,e.sharedWebSockets={};var t=function(r){if(r&&e.sharedWebSockets.hasOwnProperty(r))delete e.sharedWebSockets[r];else for(var n in e.sharedWebSockets)e.sharedWebSockets.hasOwnProperty(n)&&delete e.sharedWebSockets[n]};e.resetWebSockets=t})(x7);var C7={},Cu={};Object.defineProperty(Cu,"__esModule",{value:!0});Cu.setUpSocketIOPing=Cu.appendQueryParams=Cu.parseSocketIOUrl=void 0;var Bx=xl,sPe=function(e){if(e){var t=/^https|wss/.test(e),r=e.replace(/^(https?|wss?)(:\/\/)?/,""),n=r.replace(/\/$/,""),o=t?"wss":"ws";return"".concat(o,"://").concat(n).concat(Bx.SOCKET_IO_PATH)}else if(e===""){var t=/^https/.test(window.location.protocol),o=t?"wss":"ws",i=window.location.port?":".concat(window.location.port):"";return"".concat(o,"://").concat(window.location.hostname).concat(i).concat(Bx.SOCKET_IO_PATH)}return e};Cu.parseSocketIOUrl=sPe;var lPe=function(e,t){t===void 0&&(t={});var r=/\?([\w]+=[\w]+)/,n=r.test(e),o="".concat(Object.entries(t).reduce(function(i,a){var s=a[0],l=a[1];return i+"".concat(s,"=").concat(l,"&")},"").slice(0,-1));return"".concat(e).concat(n?"&":"?").concat(o)};Cu.appendQueryParams=lPe;var uPe=function(e,t){t===void 0&&(t=Bx.SOCKET_IO_PING_INTERVAL);var r=function(){return e(Bx.SOCKET_IO_PING_CODE)};return window.setInterval(r,t)};Cu.setUpSocketIOPing=uPe;var q1={};Object.defineProperty(q1,"__esModule",{value:!0});q1.heartbeat=void 0;var u9=xl;function cPe(e,t){var r=t||{},n=r.interval,o=n===void 0?u9.DEFAULT_HEARTBEAT.interval:n,i=r.timeout,a=i===void 0?u9.DEFAULT_HEARTBEAT.timeout:i,s=r.message,l=s===void 0?u9.DEFAULT_HEARTBEAT.message:s,u=!1,c=setInterval(function(){try{typeof l=="function"?e.send(l()):e.send(l)}catch{}},o),f=setInterval(function(){u?u=!1:e.close()},a);return e.addEventListener("close",function(){clearInterval(c),clearInterval(f)}),function(){u=!0}}q1.heartbeat=cPe;var hd={},S7={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.resetSubscribers=e.removeSubscriber=e.addSubscriber=e.hasSubscribers=e.getSubscribers=void 0;var t={},r=[],n=function(l){return(0,e.hasSubscribers)(l)?Array.from(t[l]):r};e.getSubscribers=n;var o=function(l){var u;return((u=t[l])===null||u===void 0?void 0:u.size)>0};e.hasSubscribers=o;var i=function(l,u){t[l]=t[l]||new Set,t[l].add(u)};e.addSubscriber=i;var a=function(l,u){t[l].delete(u)};e.removeSubscriber=a;var s=function(l){if(l&&t.hasOwnProperty(l))delete t[l];else for(var u in t)t.hasOwnProperty(u)&&delete t[u]};e.resetSubscribers=s})(S7);Object.defineProperty(hd,"__esModule",{value:!0});hd.resetGlobalState=hd.assertIsWebSocket=void 0;var fPe=x7,dPe=S7;function APe(e,t){if(!t&&!(e instanceof WebSocket))throw new Error("")}hd.assertIsWebSocket=APe;function hPe(e){(0,dPe.resetSubscribers)(e),(0,fPe.resetWebSockets)(e)}hd.resetGlobalState=hPe;var Lx=Nn&&Nn.__assign||function(){return Lx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Lx.apply(this,arguments)};Object.defineProperty(C7,"__esModule",{value:!0});C7.attachListeners=void 0;var pPe=Cu,mPe=q1,Au=xl,gPe=hd,vPe=function(e,t,r){var n;if(t.current.heartbeat&&e instanceof WebSocket){var o=typeof t.current.heartbeat=="boolean"?void 0:t.current.heartbeat;n=(0,mPe.heartbeat)(e,o)}e.onmessage=function(i){var a;n==null||n(),t.current.onMessage&&t.current.onMessage(i),!(typeof t.current.filter=="function"&&t.current.filter(i)!==!0)&&(t.current.heartbeat&&typeof t.current.heartbeat!="boolean"&&((a=t.current.heartbeat)===null||a===void 0?void 0:a.returnMessage)===i.data||r(i))}},yPe=function(e,t,r,n){e.onopen=function(o){t.current.onOpen&&t.current.onOpen(o),n.current=0,r(Au.ReadyState.OPEN)}},bPe=function(e,t,r,n,o){if(Au.isEventSourceSupported&&e instanceof EventSource)return function(){};(0,gPe.assertIsWebSocket)(e,t.current.skipAssert);var i;return e.onclose=function(a){var s;if(t.current.onClose&&t.current.onClose(a),r(Au.ReadyState.CLOSED),t.current.shouldReconnect&&t.current.shouldReconnect(a)){var l=(s=t.current.reconnectAttempts)!==null&&s!==void 0?s:Au.DEFAULT_RECONNECT_LIMIT;if(o.current<l){var u=typeof t.current.reconnectInterval=="function"?t.current.reconnectInterval(o.current):t.current.reconnectInterval;i=window.setTimeout(function(){o.current++,n()},u??Au.DEFAULT_RECONNECT_INTERVAL_MS)}else t.current.onReconnectStop&&t.current.onReconnectStop(l),console.warn("Max reconnect attempts of ".concat(l," exceeded"))}},function(){return i&&window.clearTimeout(i)}},wPe=function(e,t,r,n,o){var i;return e.onerror=function(a){var s;if(t.current.onError&&t.current.onError(a),Au.isEventSourceSupported&&e instanceof EventSource&&(t.current.onClose&&t.current.onClose(Lx(Lx({},a),{code:1006,reason:"An error occurred with the EventSource: ".concat(a),wasClean:!1})),r(Au.ReadyState.CLOSED),e.close()),t.current.retryOnError)if(o.current<((s=t.current.reconnectAttempts)!==null&&s!==void 0?s:Au.DEFAULT_RECONNECT_LIMIT)){var l=typeof t.current.reconnectInterval=="function"?t.current.reconnectInterval(o.current):t.current.reconnectInterval;i=window.setTimeout(function(){o.current++,n()},l??Au.DEFAULT_RECONNECT_INTERVAL_MS)}else t.current.onReconnectStop&&t.current.onReconnectStop(t.current.reconnectAttempts),console.warn("Max reconnect attempts of ".concat(t.current.reconnectAttempts," exceeded"))},function(){return i&&window.clearTimeout(i)}},xPe=function(e,t,r,n,o,i){var a=t.setLastMessage,s=t.setReadyState,l,u,c;return r.current.fromSocketIO&&(l=(0,pPe.setUpSocketIOPing)(i)),vPe(e,r,a),yPe(e,r,s,o),u=bPe(e,r,s,n,o),c=wPe(e,r,s,n,o),function(){s(Au.ReadyState.CLOSING),u(),c(),e.close(),l&&clearInterval(l)}};C7.attachListeners=xPe;var k7={},Mx=Nn&&Nn.__assign||function(){return Mx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Mx.apply(this,arguments)};Object.defineProperty(k7,"__esModule",{value:!0});k7.attachSharedListeners=void 0;var CPe=x7,rh=xl,c1=S7,SPe=Cu,kPe=q1,EPe=function(e,t,r){var n;r&&e instanceof WebSocket&&(n=(0,kPe.heartbeat)(e,typeof r=="boolean"?void 0:r)),e.onmessage=function(o){n==null||n(),(0,c1.getSubscribers)(t).forEach(function(i){i.optionsRef.current.onMessage&&i.optionsRef.current.onMessage(o),!(typeof i.optionsRef.current.filter=="function"&&i.optionsRef.current.filter(o)!==!0)&&(r&&typeof r!="boolean"&&(r==null?void 0:r.returnMessage)===o.data||i.setLastMessage(o))})}},TPe=function(e,t){e.onopen=function(r){(0,c1.getSubscribers)(t).forEach(function(n){n.reconnectCount.current=0,n.optionsRef.current.onOpen&&n.optionsRef.current.onOpen(r),n.setReadyState(rh.ReadyState.OPEN)})}},PPe=function(e,t){e instanceof WebSocket&&(e.onclose=function(r){(0,c1.getSubscribers)(t).forEach(function(n){n.optionsRef.current.onClose&&n.optionsRef.current.onClose(r),n.setReadyState(rh.ReadyState.CLOSED)}),delete CPe.sharedWebSockets[t],(0,c1.getSubscribers)(t).forEach(function(n){var o;if(n.optionsRef.current.shouldReconnect&&n.optionsRef.current.shouldReconnect(r)){var i=(o=n.optionsRef.current.reconnectAttempts)!==null&&o!==void 0?o:rh.DEFAULT_RECONNECT_LIMIT;if(n.reconnectCount.current<i){var a=typeof n.optionsRef.current.reconnectInterval=="function"?n.optionsRef.current.reconnectInterval(n.reconnectCount.current):n.optionsRef.current.reconnectInterval;setTimeout(function(){n.reconnectCount.current++,n.reconnect.current()},a??rh.DEFAULT_RECONNECT_INTERVAL_MS)}else n.optionsRef.current.onReconnectStop&&n.optionsRef.current.onReconnectStop(n.optionsRef.current.reconnectAttempts),console.warn("Max reconnect attempts of ".concat(i," exceeded"))}})})},OPe=function(e,t){e.onerror=function(r){(0,c1.getSubscribers)(t).forEach(function(n){n.optionsRef.current.onError&&n.optionsRef.current.onError(r),rh.isEventSourceSupported&&e instanceof EventSource&&(n.optionsRef.current.onClose&&n.optionsRef.current.onClose(Mx(Mx({},r),{code:1006,reason:"An error occurred with the EventSource: ".concat(r),wasClean:!1})),n.setReadyState(rh.ReadyState.CLOSED))}),rh.isEventSourceSupported&&e instanceof EventSource&&e.close()}},BPe=function(e,t,r,n){var o;return r.current.fromSocketIO&&(o=(0,SPe.setUpSocketIOPing)(n)),EPe(e,t,r.current.heartbeat),PPe(e,t),TPe(e,t),OPe(e,t),function(){o&&clearInterval(o)}};k7.attachSharedListeners=BPe;Object.defineProperty(w7,"__esModule",{value:!0});w7.createOrJoinSocket=void 0;var jf=x7,I0=xl,LPe=C7,MPe=k7,H5=S7,DPe=function(e,t,r,n,o){return function(){if((0,H5.removeSubscriber)(e,t),!(0,H5.hasSubscribers)(e)){try{var i=jf.sharedWebSockets[e];i instanceof WebSocket&&(i.onclose=function(a){r.current.onClose&&r.current.onClose(a),n(I0.ReadyState.CLOSED)}),i.close()}catch{}o&&o(),delete jf.sharedWebSockets[e]}}},IPe=function(e,t,r,n,o,i,a,s){if(!I0.isEventSourceSupported&&n.current.eventSourceOptions)throw I0.isReactNative?new Error("EventSource is not supported in ReactNative"):new Error("EventSource is not supported");if(n.current.share){var l=null;jf.sharedWebSockets[t]===void 0?(jf.sharedWebSockets[t]=n.current.eventSourceOptions?new EventSource(t,n.current.eventSourceOptions):new WebSocket(t,n.current.protocols),e.current=jf.sharedWebSockets[t],r(I0.ReadyState.CONNECTING),l=(0,MPe.attachSharedListeners)(jf.sharedWebSockets[t],t,n,s)):(e.current=jf.sharedWebSockets[t],r(jf.sharedWebSockets[t].readyState));var u={setLastMessage:o,setReadyState:r,optionsRef:n,reconnectCount:a,reconnect:i};return(0,H5.addSubscriber)(t,u),DPe(t,u,n,r,l)}else{if(e.current=n.current.eventSourceOptions?new EventSource(t,n.current.eventSourceOptions):new WebSocket(t,n.current.protocols),r(I0.ReadyState.CONNECTING),!e.current)throw new Error("WebSocket failed to be created");return(0,LPe.attachListeners)(e.current,{setLastMessage:o,setReadyState:r},n,i.current,a,s)}};w7.createOrJoinSocket=IPe;var EW={};(function(e){var t=Nn&&Nn.__awaiter||function(s,l,u,c){function f(A){return A instanceof u?A:new u(function(h){h(A)})}return new(u||(u=Promise))(function(A,h){function m(x){try{w(c.next(x))}catch(C){h(C)}}function v(x){try{w(c.throw(x))}catch(C){h(C)}}function w(x){x.done?A(x.value):f(x.value).then(m,v)}w((c=c.apply(s,l||[])).next())})},r=Nn&&Nn.__generator||function(s,l){var u={label:0,sent:function(){if(A[0]&1)throw A[1];return A[1]},trys:[],ops:[]},c,f,A,h;return h={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function m(w){return function(x){return v([w,x])}}function v(w){if(c)throw new TypeError("Generator is already executing.");for(;u;)try{if(c=1,f&&(A=w[0]&2?f.return:w[0]?f.throw||((A=f.return)&&A.call(f),0):f.next)&&!(A=A.call(f,w[1])).done)return A;switch(f=0,A&&(w=[w[0]&2,A.value]),w[0]){case 0:case 1:A=w;break;case 4:return u.label++,{value:w[1],done:!1};case 5:u.label++,f=w[1],w=[0];continue;case 7:w=u.ops.pop(),u.trys.pop();continue;default:if(A=u.trys,!(A=A.length>0&&A[A.length-1])&&(w[0]===6||w[0]===2)){u=0;continue}if(w[0]===3&&(!A||w[1]>A[0]&&w[1]<A[3])){u.label=w[1];break}if(w[0]===6&&u.label<A[1]){u.label=A[1],A=w;break}if(A&&u.label<A[2]){u.label=A[2],u.ops.push(w);break}A[2]&&u.ops.pop(),u.trys.pop();continue}w=l.call(s,u)}catch(x){w=[6,x],f=0}finally{c=A=0}if(w[0]&5)throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0}),e.getUrl=void 0;var n=Cu,o=xl,i=function(s){return new Promise(function(l){return window.setTimeout(l,s)})},a=function(s,l,u){return u===void 0&&(u=0),t(void 0,void 0,void 0,function(){var c,f,A,h,m,v,w,x;return r(this,function(C){switch(C.label){case 0:if(typeof s!="function")return[3,10];C.label=1;case 1:return C.trys.push([1,3,,9]),[4,s()];case 2:return c=C.sent(),[3,9];case 3:return C.sent(),l.current.retryOnError?(f=(v=l.current.reconnectAttempts)!==null&&v!==void 0?v:o.DEFAULT_RECONNECT_LIMIT,u<f?(A=typeof l.current.reconnectInterval=="function"?l.current.reconnectInterval(u):l.current.reconnectInterval,[4,i(A??o.DEFAULT_RECONNECT_INTERVAL_MS)]):[3,5]):[3,7];case 4:return C.sent(),[2,(0,e.getUrl)(s,l,u+1)];case 5:return(x=(w=l.current).onReconnectStop)===null||x===void 0||x.call(w,u),[2,null];case 6:return[3,8];case 7:return[2,null];case 8:return[3,9];case 9:return[3,11];case 10:c=s,C.label=11;case 11:return h=l.current.fromSocketIO?(0,n.parseSocketIOUrl)(c):c,m=l.current.queryParams?(0,n.appendQueryParams)(h,l.current.queryParams):h,[2,m]}})})};e.getUrl=a})(EW);var TW={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.websocketWrapper=void 0;var t=function(r,n){return new Proxy(r,{get:function(o,i){var a=o[i];return i==="reconnect"?n:typeof a=="function"?(console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."),function(){}):a},set:function(o,i,a){return/^on/.test(i)?(console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."),!1):(o[i]=a,!0)}})};e.websocketWrapper=t,e.default=e.websocketWrapper})(TW);var Hf=Nn&&Nn.__assign||function(){return Hf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Hf.apply(this,arguments)},NPe=Nn&&Nn.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(c){try{u(n.next(c))}catch(f){a(f)}}function l(c){try{u(n.throw(c))}catch(f){a(f)}}function u(c){c.done?i(c.value):o(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})},RPe=Nn&&Nn.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},FPe=Nn&&Nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ng,"__esModule",{value:!0});Ng.useWebSocket=void 0;var Wo=ce,c9=Jx,eu=xl,zPe=w7,jPe=EW,HPe=FPe(TW),tN=hd,_Pe=function(e,t,r){t===void 0&&(t=eu.DEFAULT_OPTIONS),r===void 0&&(r=!0);var n=(0,Wo.useState)(null),o=n[0],i=n[1],a=(0,Wo.useState)({}),s=a[0],l=a[1],u=(0,Wo.useMemo)(function(){if(o)try{return JSON.parse(o.data)}catch{return eu.UNPARSABLE_JSON_OBJECT}return null},[o]),c=(0,Wo.useRef)(null),f=(0,Wo.useRef)(null),A=(0,Wo.useRef)(function(){}),h=(0,Wo.useRef)(0),m=(0,Wo.useRef)([]),v=(0,Wo.useRef)(null),w=(0,Wo.useRef)(t);w.current=t;var x=c.current&&s[c.current]!==void 0?s[c.current]:e!==null&&r===!0?eu.ReadyState.CONNECTING:eu.ReadyState.UNINSTANTIATED,C=t.queryParams?JSON.stringify(t.queryParams):null,k=(0,Wo.useCallback)(function(L,B){var M;if(B===void 0&&(B=!0),eu.isEventSourceSupported&&f.current instanceof EventSource){console.warn("Unable to send a message from an eventSource");return}((M=f.current)===null||M===void 0?void 0:M.readyState)===eu.ReadyState.OPEN?((0,tN.assertIsWebSocket)(f.current,w.current.skipAssert),f.current.send(L)):B&&m.current.push(L)},[]),P=(0,Wo.useCallback)(function(L,B){B===void 0&&(B=!0),k(JSON.stringify(L),B)},[k]),O=(0,Wo.useCallback)(function(){return w.current.share!==!0||eu.isEventSourceSupported&&f.current instanceof EventSource?f.current:(v.current===null&&f.current&&((0,tN.assertIsWebSocket)(f.current,w.current.skipAssert),v.current=(0,HPe.default)(f.current,A)),v.current)},[]);return(0,Wo.useEffect)(function(){if(e!==null&&r===!0){var L,B=!1,M=!0,F=function(){return NPe(void 0,void 0,void 0,function(){var N,z,R;return RPe(this,function(W){switch(W.label){case 0:return N=c,[4,(0,jPe.getUrl)(e,w)];case 1:return N.current=W.sent(),c.current===null?(console.error("Failed to get a valid URL. WebSocket connection aborted."),c.current="ABORTED",(0,c9.flushSync)(function(){return l(function(U){return Hf(Hf({},U),{ABORTED:eu.ReadyState.CLOSED})})}),[2]):(z=function(U){B||(0,c9.flushSync)(function(){return i(U)})},R=function(U){B||(0,c9.flushSync)(function(){return l(function(K){var Y;return Hf(Hf({},K),c.current&&(Y={},Y[c.current]=U,Y))})})},M&&(L=(0,zPe.createOrJoinSocket)(f,c.current,R,w,z,A,h,k)),[2])}})})};return A.current=function(){B||(v.current&&(v.current=null),L==null||L(),F())},F(),function(){B=!0,M=!1,v.current&&(v.current=null),L==null||L(),i(null)}}else(e===null||r===!1)&&(h.current=0,l(function(N){var z;return Hf(Hf({},N),c.current&&(z={},z[c.current]=eu.ReadyState.CLOSED,z))}))},[e,r,C,k]),(0,Wo.useEffect)(function(){x===eu.ReadyState.OPEN&&m.current.splice(0).forEach(function(L){k(L)})},[x]),{sendMessage:k,sendJsonMessage:P,lastMessage:o,lastJsonMessage:u,readyState:x,getWebSocket:O}};Ng.useWebSocket=_Pe;var E7={},Dx=Nn&&Nn.__assign||function(){return Dx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Dx.apply(this,arguments)};Object.defineProperty(E7,"__esModule",{value:!0});E7.useSocketIO=void 0;var rN=ce,XPe=Ng,VPe=xl,f9={type:"empty",payload:null},qPe=function(e){if(!e||!e.data)return f9;var t=e.data.match(/\[.*]/);if(!t)return f9;var r=JSON.parse(t);return!Array.isArray(r)||!r[1]?f9:{type:r[0],payload:r[1]}},WPe=function(e,t,r){t===void 0&&(t=VPe.DEFAULT_OPTIONS),r===void 0&&(r=!0);var n=(0,rN.useMemo)(function(){return Dx(Dx({},t),{fromSocketIO:!0})},[]),o=(0,XPe.useWebSocket)(e,n,r),i=o.sendMessage,a=o.sendJsonMessage,s=o.lastMessage,l=o.readyState,u=o.getWebSocket,c=(0,rN.useMemo)(function(){return qPe(s)},[s]);return{sendMessage:i,sendJsonMessage:a,lastMessage:c,lastJsonMessage:c,readyState:l,getWebSocket:u}};E7.useSocketIO=WPe;var T7={},Ix=Nn&&Nn.__assign||function(){return Ix=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ix.apply(this,arguments)},UPe=Nn&&Nn.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};Object.defineProperty(T7,"__esModule",{value:!0});T7.useEventSource=void 0;var nN=ce,QPe=Ng,iN=xl,GPe=function(e,t,r){t===void 0&&(t=iN.DEFAULT_EVENT_SOURCE_OPTIONS);var n=t.withCredentials,o=t.events,i=UPe(t,["withCredentials","events"]);r===void 0&&(r=!0);var a=Ix(Ix({},i),{eventSourceOptions:{withCredentials:n}}),s=(0,nN.useRef)(iN.EMPTY_EVENT_HANDLERS);o&&(s.current=o);var l=(0,QPe.useWebSocket)(e,a,r),u=l.lastMessage,c=l.readyState,f=l.getWebSocket;return(0,nN.useEffect)(function(){u!=null&&u.type&&Object.entries(s.current).forEach(function(A){var h=A[0],m=A[1];h===u.type&&m(u)})},[u]),{lastEvent:u,readyState:c,getEventSource:f}};T7.useEventSource=GPe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.resetGlobalState=e.useEventSource=e.ReadyState=e.useSocketIO=e.default=void 0;var t=Ng;Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useWebSocket}});var r=E7;Object.defineProperty(e,"useSocketIO",{enumerable:!0,get:function(){return r.useSocketIO}});var n=xl;Object.defineProperty(e,"ReadyState",{enumerable:!0,get:function(){return n.ReadyState}});var o=T7;Object.defineProperty(e,"useEventSource",{enumerable:!0,get:function(){return o.useEventSource}});var i=hd;Object.defineProperty(e,"resetGlobalState",{enumerable:!0,get:function(){return i.resetGlobalState}})})(eP);const YPe=f1(eP);function ZPe(){const e=Gj(),{rasaSpace:t,rasaRadii:r}=Bu(),[n,o]=ce.useState(""),[i,a]=ce.useState([]),[s,l]=ce.useState([]),[u,c]=ce.useState([]),[f,A]=ce.useState(""),[h,m]=ce.useState([]),[v,w]=ce.useState(void 0),x=!window.location.href.includes("socketio"),C=window.location.href.replace("inspect.html","tracker_stream").replace("http","ws"),{sendJsonMessage:k,lastJsonMessage:P,readyState:O}=YPe(C,{share:!1,shouldReconnect:()=>!0});ce.useEffect(()=>{O===eP.ReadyState.OPEN&&n&&k({action:"retrieve",sender_id:n})},[O,k,n]),ce.useEffect(()=>{if(!x)return;const U=e5e.parse(window.location.search).sender;if(U&&U!==n)o(U);else if(!U&&n){const K=new URL(window.location.href);K.searchParams.set("sender",n),window.history.pushState(null,"",K.toString())}},[n,x]),ce.useEffect(()=>{DM.get("/flows").then(W=>a(W.data)).catch(W=>{e.isActive("flows")||e({id:"flows",title:"Flows could not be retrieved",description:(W==null?void 0:W.message)||"An unknown error happened.",status:"error",duration:4e3,isClosable:!0})})},[e]);function L(){DM.get(`/conversations/${n}/story`).then(W=>A(W.data)).catch(W=>{e.isActive("story-error")||e({id:"story-error",title:"Stories could not be retrieved",description:(W==null?void 0:W.message)||"An unknown error happened.",status:"error",duration:4e3,isClosable:!0})})}ce.useEffect(()=>{if(P)if(!n||(P==null?void 0:P.sender_id)===n){l(zve(P.slots)),c(P.events);const W=oge(P.stack,P.events);m(W),w(age(v,W,P.events)),o(P.sender_id),L()}else n&&P.sender_id},[P,n]);const B={borderRadius:r.normal},F={gridTemplateColumns:Ede({base:"21rem minmax(20rem, auto) 21rem","2xl":"25rem auto 25rem"}),gridTemplateRows:"1fr",gridColumnGap:t[1],height:"100vh",padding:t[2]},N={...B,padding:t[1],bg:$o("neutral.50","neutral.50"),overflow:"hidden"},z={height:"100%",overflow:"hidden",gridTemplateColumns:"1fr",gridTemplateRows:"max-content minmax(10rem, 17.5rem) minmax(10rem, auto)",gridRowGap:t[1]},R=W=>{w({stack:W,activatedSteps:Z4(u)[W.flow_id],isUserSelected:!0})};return!n&&!window.location.href.includes("socketio")?be.jsx(o0e,{}):be.jsxs(j4,{sx:F,children:[be.jsx(M2,{overflow:"hidden",children:be.jsxs(j4,{sx:z,children:[be.jsx(Wme,{sx:N}),be.jsx(sge,{sx:N,stack:h,active:v==null?void 0:v.stack,onItemClick:R}),be.jsx(Qve,{sx:N,rasaChatSessionId:n,slots:s,events:u,story:f})]})}),be.jsx(M2,{sx:N,children:be.jsx(V4e,{stackFrame:v==null?void 0:v.stack,stepTrail:(v==null?void 0:v.activatedSteps)||[],flows:i,slots:s})}),x&&be.jsx(M2,{children:be.jsx(aPe,{events:u||[]})})]})}A9.createRoot(document.getElementById("root")).render(be.jsx(Go.StrictMode,{children:be.jsx(Mce,{theme:Vme,children:be.jsx(ZPe,{})})}));/*! For license information please see widget.js.LICENSE.txt */(()=>{var e={67640:(n,o,i)=>{i.d(o,{Ni:()=>v,F4:()=>k,Xn:()=>w});var a=i(64343),s=function(){function L(M){this.isSpeedy=M.speedy===void 0||M.speedy,this.tags=[],this.ctr=0,this.nonce=M.nonce,this.key=M.key,this.container=M.container,this.before=null}var B=L.prototype;return B.insert=function(M){if(this.ctr%(this.isSpeedy?65e3:1)==0){var F,N=function(U){var K=document.createElement("style");return K.setAttribute("data-emotion",U.key),U.nonce!==void 0&&K.setAttribute("nonce",U.nonce),K.appendChild(document.createTextNode("")),K}(this);F=this.tags.length===0?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(N,F),this.tags.push(N)}var z=this.tags[this.tags.length-1];if(this.isSpeedy){var R=function(U){if(U.sheet)return U.sheet;for(var K=0;K<document.styleSheets.length;K++)if(document.styleSheets[K].ownerNode===U)return document.styleSheets[K]}(z);try{var W=M.charCodeAt(1)===105&&M.charCodeAt(0)===64;R.insertRule(M,W?0:R.cssRules.length)}catch{}}else z.appendChild(document.createTextNode(M));this.ctr++},B.flush=function(){this.tags.forEach(function(M){return M.parentNode.removeChild(M)}),this.tags=[],this.ctr=0},L}();const l=function(L){function B(at,ct,pt,St,Re){for(var We,Ue,bt,nt,st,xt=0,Ct=0,ot=0,gt=0,kt=0,Jt=0,Gt=bt=We=0,Nt=0,wr=0,tn=0,Kr=0,Ln=pt.length,Yr=Ln-1,Wt="",Xr="",Rn="",Sn="";Nt<Ln;){if(Ue=pt.charCodeAt(Nt),Nt===Yr&&Ct+gt+ot+xt!==0&&(Ct!==0&&(Ue=Ct===47?10:47),gt=ot=xt=0,Ln++,Yr++),Ct+gt+ot+xt===0){if(Nt===Yr&&(0<wr&&(Wt=Wt.replace(j,"")),0<Wt.trim().length)){switch(Ue){case 32:case 9:case 59:case 13:case 10:break;default:Wt+=pt.charAt(Nt)}Ue=59}switch(Ue){case 123:for(We=(Wt=Wt.trim()).charCodeAt(0),bt=1,Kr=++Nt;Nt<Ln;){switch(Ue=pt.charCodeAt(Nt)){case 123:bt++;break;case 125:bt--;break;case 47:switch(Ue=pt.charCodeAt(Nt+1)){case 42:case 47:e:{for(Gt=Nt+1;Gt<Yr;++Gt)switch(pt.charCodeAt(Gt)){case 47:if(Ue===42&&pt.charCodeAt(Gt-1)===42&&Nt+2!==Gt){Nt=Gt+1;break e}break;case 10:if(Ue===47){Nt=Gt+1;break e}}Nt=Gt}}break;case 91:Ue++;case 40:Ue++;case 34:case 39:for(;Nt++<Yr&&pt.charCodeAt(Nt)!==Ue;);}if(bt===0)break;Nt++}switch(bt=pt.substring(Kr,Nt),We===0&&(We=(Wt=Wt.replace(Y,"").trim()).charCodeAt(0)),We){case 64:switch(0<wr&&(Wt=Wt.replace(j,"")),Ue=Wt.charCodeAt(1)){case 100:case 109:case 115:case 45:wr=ct;break;default:wr=he}if(Kr=(bt=B(ct,wr,bt,Ue,Re+1)).length,0<wt&&(st=W(3,bt,wr=M(he,Wt,tn),ct,lt,ae,Kr,Ue,Re,St),Wt=wr.join(""),st!==void 0&&(Kr=(bt=st.trim()).length)===0&&(Ue=0,bt="")),0<Kr)switch(Ue){case 115:Wt=Wt.replace(Le,R);case 100:case 109:case 45:bt=Wt+"{"+bt+"}";break;case 107:bt=(Wt=Wt.replace(Q,"$1 $2"))+"{"+bt+"}",bt=Ve===1||Ve===2&&z("@"+bt,3)?"@-webkit-"+bt+"@"+bt:"@"+bt;break;default:bt=Wt+bt,St===112&&(Xr+=bt,bt="")}else bt="";break;default:bt=B(ct,M(ct,Wt,tn),bt,St,Re+1)}Rn+=bt,bt=tn=wr=Gt=We=0,Wt="",Ue=pt.charCodeAt(++Nt);break;case 125:case 59:if(1<(Kr=(Wt=(0<wr?Wt.replace(j,""):Wt).trim()).length))switch(Gt===0&&(We=Wt.charCodeAt(0),We===45||96<We&&123>We)&&(Kr=(Wt=Wt.replace(" ",":")).length),0<wt&&(st=W(1,Wt,ct,at,lt,ae,Xr.length,St,Re,St))!==void 0&&(Kr=(Wt=st.trim()).length)===0&&(Wt="\0\0"),We=Wt.charCodeAt(0),Ue=Wt.charCodeAt(1),We){case 0:break;case 64:if(Ue===105||Ue===99){Sn+=Wt+pt.charAt(Nt);break}default:Wt.charCodeAt(Kr-1)!==58&&(Xr+=N(Wt,We,Ue,Wt.charCodeAt(2)))}tn=wr=Gt=We=0,Wt="",Ue=pt.charCodeAt(++Nt)}}switch(Ue){case 13:case 10:Ct===47?Ct=0:1+We===0&&St!==107&&0<Wt.length&&(wr=1,Wt+="\0"),0<wt*_t&&W(0,Wt,ct,at,lt,ae,Xr.length,St,Re,St),ae=1,lt++;break;case 59:case 125:if(Ct+gt+ot+xt===0){ae++;break}default:switch(ae++,nt=pt.charAt(Nt),Ue){case 9:case 32:if(gt+xt+Ct===0)switch(kt){case 44:case 58:case 9:case 32:nt="";break;default:Ue!==32&&(nt=" ")}break;case 0:nt="\\0";break;case 12:nt="\\f";break;case 11:nt="\\v";break;case 38:gt+Ct+xt===0&&(wr=tn=1,nt="\f"+nt);break;case 108:if(gt+Ct+xt+et===0&&0<Gt)switch(Nt-Gt){case 2:kt===112&&pt.charCodeAt(Nt-3)===58&&(et=kt);case 8:Jt===111&&(et=Jt)}break;case 58:gt+Ct+xt===0&&(Gt=Nt);break;case 44:Ct+ot+gt+xt===0&&(wr=1,nt+="\r");break;case 34:case 39:Ct===0&&(gt=gt===Ue?0:gt===0?Ue:gt);break;case 91:gt+Ct+ot===0&&xt++;break;case 93:gt+Ct+ot===0&&xt--;break;case 41:gt+Ct+xt===0&&ot--;break;case 40:if(gt+Ct+xt===0){if(We===0)switch(2*kt+3*Jt){case 533:break;default:We=1}ot++}break;case 64:Ct+ot+gt+xt+Gt+bt===0&&(bt=1);break;case 42:case 47:if(!(0<gt+xt+ot))switch(Ct){case 0:switch(2*Ue+3*pt.charCodeAt(Nt+1)){case 235:Ct=47;break;case 220:Kr=Nt,Ct=42}break;case 42:Ue===47&&kt===42&&Kr+2!==Nt&&(pt.charCodeAt(Kr+2)===33&&(Xr+=pt.substring(Kr,Nt+1)),nt="",Ct=0)}}Ct===0&&(Wt+=nt)}Jt=kt,kt=Ue,Nt++}if(0<(Kr=Xr.length)){if(wr=ct,0<wt&&(st=W(2,Xr,wr,at,lt,ae,Kr,St,Re,St))!==void 0&&(Xr=st).length===0)return Sn+Xr+Rn;if(Xr=wr.join(",")+"{"+Xr+"}",Ve*et!=0){switch(Ve!==2||z(Xr,2)||(et=0),et){case 111:Xr=Xr.replace(ye,":-moz-$1")+Xr;break;case 112:Xr=Xr.replace(fe,"::-webkit-input-$1")+Xr.replace(fe,"::-moz-$1")+Xr.replace(fe,":-ms-input-$1")+Xr}et=0}}return Sn+Xr+Rn}function M(at,ct,pt){var St=ct.trim().split(Z);ct=St;var Re=St.length,We=at.length;switch(We){case 0:case 1:var Ue=0;for(at=We===0?"":at[0]+" ";Ue<Re;++Ue)ct[Ue]=F(at,ct[Ue],pt).trim();break;default:var bt=Ue=0;for(ct=[];Ue<Re;++Ue)for(var nt=0;nt<We;++nt)ct[bt++]=F(at[nt]+" ",St[Ue],pt).trim()}return ct}function F(at,ct,pt){var St=ct.charCodeAt(0);switch(33>St&&(St=(ct=ct.trim()).charCodeAt(0)),St){case 38:return ct.replace(ue,"$1"+at.trim());case 58:return at.trim()+ct.replace(ue,"$1"+at.trim());default:if(0<1*pt&&0<ct.indexOf("\f"))return ct.replace(ue,(at.charCodeAt(0)===58?"":"$1")+at.trim())}return at+ct}function N(at,ct,pt,St){var Re=at+";",We=2*ct+3*pt+4*St;if(We===944){at=Re.indexOf(":",9)+1;var Ue=Re.substring(at,Re.length-1).trim();return Ue=Re.substring(0,at).trim()+Ue+";",Ve===1||Ve===2&&z(Ue,1)?"-webkit-"+Ue+Ue:Ue}if(Ve===0||Ve===2&&!z(Re,1))return Re;switch(We){case 1015:return Re.charCodeAt(10)===97?"-webkit-"+Re+Re:Re;case 951:return Re.charCodeAt(3)===116?"-webkit-"+Re+Re:Re;case 963:return Re.charCodeAt(5)===110?"-webkit-"+Re+Re:Re;case 1009:if(Re.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+Re+Re;case 978:return"-webkit-"+Re+"-moz-"+Re+Re;case 1019:case 983:return"-webkit-"+Re+"-moz-"+Re+"-ms-"+Re+Re;case 883:if(Re.charCodeAt(8)===45)return"-webkit-"+Re+Re;if(0<Re.indexOf("image-set(",11))return Re.replace(He,"$1-webkit-$2")+Re;break;case 932:if(Re.charCodeAt(4)===45)switch(Re.charCodeAt(5)){case 103:return"-webkit-box-"+Re.replace("-grow","")+"-webkit-"+Re+"-ms-"+Re.replace("grow","positive")+Re;case 115:return"-webkit-"+Re+"-ms-"+Re.replace("shrink","negative")+Re;case 98:return"-webkit-"+Re+"-ms-"+Re.replace("basis","preferred-size")+Re}return"-webkit-"+Re+"-ms-"+Re+Re;case 964:return"-webkit-"+Re+"-ms-flex-"+Re+Re;case 1023:if(Re.charCodeAt(8)!==99)break;return"-webkit-box-pack"+(Ue=Re.substring(Re.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+Re+"-ms-flex-pack"+Ue+Re;case 1005:return $.test(Re)?Re.replace(H,":-webkit-")+Re.replace(H,":-moz-")+Re:Re;case 1e3:switch(ct=(Ue=Re.substring(13).trim()).indexOf("-")+1,Ue.charCodeAt(0)+Ue.charCodeAt(ct)){case 226:Ue=Re.replace(le,"tb");break;case 232:Ue=Re.replace(le,"tb-rl");break;case 220:Ue=Re.replace(le,"lr");break;default:return Re}return"-webkit-"+Re+"-ms-"+Ue+Re;case 1017:if(Re.indexOf("sticky",9)===-1)break;case 975:switch(ct=(Re=at).length-10,We=(Ue=(Re.charCodeAt(ct)===33?Re.substring(0,ct):Re).substring(at.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|Ue.charCodeAt(7))){case 203:if(111>Ue.charCodeAt(8))break;case 115:Re=Re.replace(Ue,"-webkit-"+Ue)+";"+Re;break;case 207:case 102:Re=Re.replace(Ue,"-webkit-"+(102<We?"inline-":"")+"box")+";"+Re.replace(Ue,"-webkit-"+Ue)+";"+Re.replace(Ue,"-ms-"+Ue+"box")+";"+Re}return Re+";";case 938:if(Re.charCodeAt(5)===45)switch(Re.charCodeAt(6)){case 105:return Ue=Re.replace("-items",""),"-webkit-"+Re+"-webkit-box-"+Ue+"-ms-flex-"+Ue+Re;case 115:return"-webkit-"+Re+"-ms-flex-item-"+Re.replace(Oe,"")+Re;default:return"-webkit-"+Re+"-ms-flex-line-pack"+Re.replace("align-content","").replace(Oe,"")+Re}break;case 973:case 989:if(Re.charCodeAt(3)!==45||Re.charCodeAt(4)===122)break;case 931:case 953:if($e.test(at)===!0)return(Ue=at.substring(at.indexOf(":")+1)).charCodeAt(0)===115?N(at.replace("stretch","fill-available"),ct,pt,St).replace(":fill-available",":stretch"):Re.replace(Ue,"-webkit-"+Ue)+Re.replace(Ue,"-moz-"+Ue.replace("fill-",""))+Re;break;case 962:if(Re="-webkit-"+Re+(Re.charCodeAt(5)===102?"-ms-"+Re:"")+Re,pt+St===211&&Re.charCodeAt(13)===105&&0<Re.indexOf("transform",10))return Re.substring(0,Re.indexOf(";",27)+1).replace(q,"$1-webkit-$2")+Re}return Re}function z(at,ct){var pt=at.indexOf(ct===1?":":"{"),St=at.substring(0,ct!==3?pt:10);return pt=at.substring(pt+1,at.length-1),Lt(ct!==2?St:St.replace(Fe,"$1"),pt,ct)}function R(at,ct){var pt=N(ct,ct.charCodeAt(0),ct.charCodeAt(1),ct.charCodeAt(2));return pt!==ct+";"?pt.replace(ge," or ($1)").substring(4):"("+ct+")"}function W(at,ct,pt,St,Re,We,Ue,bt,nt,st){for(var xt,Ct=0,ot=ct;Ct<wt;++Ct)switch(xt=Dt[Ct].call(K,at,ot,pt,St,Re,We,Ue,bt,nt,st)){case void 0:case!1:case!0:case null:break;default:ot=xt}if(ot!==ct)return ot}function U(at){return(at=at.prefix)!==void 0&&(Lt=null,at?typeof at!="function"?Ve=1:(Ve=2,Lt=at):Ve=0),U}function K(at,ct){var pt=at;if(33>pt.charCodeAt(0)&&(pt=pt.trim()),pt=[pt],0<wt){var St=W(-1,ct,pt,pt,lt,ae,0,0,0,0);St!==void 0&&typeof St=="string"&&(ct=St)}var Re=B(he,pt,ct,0,0);return 0<wt&&(St=W(-2,Re,pt,pt,lt,ae,Re.length,0,0,0))!==void 0&&(Re=St),et=0,ae=lt=1,Re}var Y=/^\0+/g,j=/[\0\r\f]/g,H=/: */g,$=/zoo|gra/,q=/([,: ])(transform)/g,Z=/,\r+?/g,ue=/([\t\r\n ])*\f?&/g,Q=/@(k\w+)\s*(\S*)\s*/,fe=/::(place)/g,ye=/:(read-only)/g,le=/[svh]\w+-[tblr]{2}/,Le=/\(\s*(.*)\s*\)/g,ge=/([\s\S]*?);/g,Oe=/-self|flex-/g,Fe=/[^]*?(:[rp][el]a[\w-]+)[^]*/,$e=/stretch|:\s*\w+\-(?:conte|avail)/,He=/([^-])(image-set\()/,ae=1,lt=1,et=0,Ve=1,he=[],Dt=[],wt=0,Lt=null,_t=0;return K.use=function at(ct){switch(ct){case void 0:case null:wt=Dt.length=0;break;default:if(typeof ct=="function")Dt[wt++]=ct;else if(typeof ct=="object")for(var pt=0,St=ct.length;pt<St;++pt)at(ct[pt]);else _t=0|!!ct}return at},K.set=U,L!==void 0&&U(L),K};var u="/*|*/";function c(L){L&&f.current.insert(L+"}")}var f={current:null},A=function(L,B,M,F,N,z,R,W,U,K){switch(L){case 1:switch(B.charCodeAt(0)){case 64:return f.current.insert(B+";"),"";case 108:if(B.charCodeAt(2)===98)return""}break;case 2:if(W===0)return B+u;break;case 3:switch(W){case 102:case 112:return f.current.insert(M[0]+B),"";default:return B+(K===0?u:"")}case-2:B.split("/*|*/}").forEach(c)}};i(43988);var h=i(5601),m=(0,a.createContext)(typeof HTMLElement<"u"?function(L){L===void 0&&(L={});var B,M=L.key||"css";L.prefix!==void 0&&(B={prefix:L.prefix});var F,N=new l(B),z={};F=L.container||document.head;var R,W=document.querySelectorAll("style[data-emotion-"+M+"]");Array.prototype.forEach.call(W,function(K){K.getAttribute("data-emotion-"+M).split(" ").forEach(function(Y){z[Y]=!0}),K.parentNode!==F&&F.appendChild(K)}),N.use(L.stylisPlugins)(A),R=function(K,Y,j,H){var $=Y.name;f.current=j,N(K,Y.styles),H&&(U.inserted[$]=!0)};var U={key:M,sheet:new s({key:M,container:F,nonce:L.nonce,speedy:L.speedy}),nonce:L.nonce,inserted:z,registered:{},insert:R};return U}():null),v=(0,a.createContext)({}),w=(m.Provider,function(L){var B=function(M,F){return(0,a.createElement)(m.Consumer,null,function(N){return L(M,N,F)})};return(0,a.forwardRef)(B)}),x=i(46546);const C=function(){for(var L=arguments.length,B=new Array(L),M=0;M<L;M++)B[M]=arguments[M];return(0,h.O)(B)};a.Component;var k=function(){var L=C.apply(void 0,arguments),B="animation-"+L.name;return{name:B,styles:"@keyframes "+B+"{"+L.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},P=function L(B){for(var M=B.length,F=0,N="";F<M;F++){var z=B[F];if(z!=null){var R=void 0;switch(typeof z){case"boolean":break;case"object":if(Array.isArray(z))R=L(z);else for(var W in R="",z)z[W]&&W&&(R&&(R+=" "),R+=W);break;default:R=z}R&&(N&&(N+=" "),N+=R)}}return N};function O(L,B,M){var F=[],N=(0,x.f)(L,F,M);return F.length<2?M:N+B(F)}w(function(L,B){return(0,a.createElement)(v.Consumer,null,function(M){var F=function(){for(var z=arguments.length,R=new Array(z),W=0;W<z;W++)R[W]=arguments[W];var U=(0,h.O)(R,B.registered);return(0,x.M)(B,U,!1),B.key+"-"+U.name},N={css:F,cx:function(){for(var z=arguments.length,R=new Array(z),W=0;W<z;W++)R[W]=arguments[W];return O(B.registered,F,P(R))},theme:M};return L.children(N)})})},55287:(n,o,i)=>{i.r(o),i.d(o,{default:()=>k});var a=i(1258),s=i.n(a),l=i(64343),u=i(90240),c=i(67640),f=i(46546),A=i(5601),h=u.Z,m=function(P){return P!=="theme"&&P!=="innerRef"},v=function(P){return typeof P=="string"&&P.charCodeAt(0)>96?h:m};function w(P,O){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(P);O&&(B=B.filter(function(M){return Object.getOwnPropertyDescriptor(P,M).enumerable})),L.push.apply(L,B)}return L}function x(P){for(var O=1;O<arguments.length;O++){var L=arguments[O]!=null?arguments[O]:{};O%2?w(L,!0).forEach(function(B){s()(P,B,L[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):w(L).forEach(function(B){Object.defineProperty(P,B,Object.getOwnPropertyDescriptor(L,B))})}return P}var C=(function P(O,L){var B,M,F;L!==void 0&&(B=L.label,F=L.target,M=O.__emotion_forwardProp&&L.shouldForwardProp?function(U){return O.__emotion_forwardProp(U)&&L.shouldForwardProp(U)}:L.shouldForwardProp);var N=O.__emotion_real===O,z=N&&O.__emotion_base||O;typeof M!="function"&&N&&(M=O.__emotion_forwardProp);var R=M||v(z),W=!R("as");return function(){var U=arguments,K=N&&O.__emotion_styles!==void 0?O.__emotion_styles.slice(0):[];if(B!==void 0&&K.push("label:"+B+";"),U[0]==null||U[0].raw===void 0)K.push.apply(K,U);else{K.push(U[0][0]);for(var Y=U.length,j=1;j<Y;j++)K.push(U[j],U[0][j])}var H=(0,c.Xn)(function($,q,Z){return(0,l.createElement)(c.Ni.Consumer,null,function(ue){var Q=W&&$.as||z,fe="",ye=[],le=$;if($.theme==null){for(var Le in le={},$)le[Le]=$[Le];le.theme=ue}typeof $.className=="string"?fe=(0,f.f)(q.registered,ye,$.className):$.className!=null&&(fe=$.className+" ");var ge=(0,A.O)(K.concat(ye),q.registered,le);(0,f.M)(q,ge,typeof Q=="string"),fe+=q.key+"-"+ge.name,F!==void 0&&(fe+=" "+F);var Oe=W&&M===void 0?v(Q):R,Fe={};for(var $e in $)W&&$e==="as"||Oe($e)&&(Fe[$e]=$[$e]);return Fe.className=fe,Fe.ref=Z||$.innerRef,(0,l.createElement)(Q,Fe)})});return H.displayName=B!==void 0?B:"Styled("+(typeof z=="string"?z:z.displayName||z.name||"Component")+")",H.defaultProps=O.defaultProps,H.__emotion_real=H,H.__emotion_base=z,H.__emotion_styles=K,H.__emotion_forwardProp=M,Object.defineProperty(H,"toString",{value:function(){return"."+F}}),H.withComponent=function($,q){return P($,q!==void 0?x({},L||{},{},q):L).apply(void 0,K)},H}}).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(P){C[P]=C(P)});const k=C},9106:(n,o,i)=>{o.formatArgs=function(s){if(s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;s.splice(1,0,l,"color: inherit");let u=0,c=0;s[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(c=u))}),s.splice(c,0,l)},o.save=function(s){try{s?o.storage.setItem("debug",s):o.storage.removeItem("debug")}catch{}},o.load=function(){let s;try{s=o.storage.getItem("debug")}catch{}return!s&&typeof process<"u"&&"env"in process&&(s={}.DEBUG),s},o.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer"&&!window.process.__nwjs)||(typeof navigator>"u"||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},o.storage=function(){try{return localStorage}catch{}}(),o.destroy=(()=>{let s=!1;return()=>{s||(s=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),o.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],o.log=console.debug||console.log||(()=>{}),n.exports=i(42415)(o);const{formatters:a}=n.exports;a.j=function(s){try{return JSON.stringify(s)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}},42415:(n,o,i)=>{n.exports=function(a){function s(c){let f,A,h,m=null;function v(...w){if(!v.enabled)return;const x=v,C=Number(new Date),k=C-(f||C);x.diff=k,x.prev=f,x.curr=C,f=C,w[0]=s.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");let P=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,(O,L)=>{if(O==="%%")return"%";P++;const B=s.formatters[L];if(typeof B=="function"){const M=w[P];O=B.call(x,M),w.splice(P,1),P--}return O}),s.formatArgs.call(x,w),(x.log||s.log).apply(x,w)}return v.namespace=c,v.useColors=s.useColors(),v.color=s.selectColor(c),v.extend=l,v.destroy=s.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(A!==s.namespaces&&(A=s.namespaces,h=s.enabled(c)),h),set:w=>{m=w}}),typeof s.init=="function"&&s.init(v),v}function l(c,f){const A=s(this.namespace+(f===void 0?":":f)+c);return A.log=this.log,A}function u(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}return s.debug=s,s.default=s,s.coerce=function(c){return c instanceof Error?c.stack||c.message:c},s.disable=function(){const c=[...s.names.map(u),...s.skips.map(u).map(f=>"-"+f)].join(",");return s.enable(""),c},s.enable=function(c){let f;s.save(c),s.namespaces=c,s.names=[],s.skips=[];const A=(typeof c=="string"?c:"").split(/[\s,]+/),h=A.length;for(f=0;f<h;f++)A[f]&&((c=A[f].replace(/\*/g,".*?"))[0]==="-"?s.skips.push(new RegExp("^"+c.substr(1)+"$")):s.names.push(new RegExp("^"+c+"$")))},s.enabled=function(c){if(c[c.length-1]==="*")return!0;let f,A;for(f=0,A=s.skips.length;f<A;f++)if(s.skips[f].test(c))return!1;for(f=0,A=s.names.length;f<A;f++)if(s.names[f].test(c))return!0;return!1},s.humanize=i(199),s.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(a).forEach(c=>{s[c]=a[c]}),s.names=[],s.skips=[],s.formatters={},s.selectColor=function(c){let f=0;for(let A=0;A<c.length;A++)f=(f<<5)-f+c.charCodeAt(A),f|=0;return s.colors[Math.abs(f)%s.colors.length]},s.enable(s.load()),s}},48076:(n,o,i)=>{var a=i(64343),s=i(90518),l=i(2778);function u(p){for(var y="https://reactjs.org/docs/error-decoder.html?invariant="+p,E=1;E<arguments.length;E++)y+="&args[]="+encodeURIComponent(arguments[E]);return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!a)throw Error(u(227));var c=new Set,f={};function A(p,y){h(p,y),h(p+"Capture",y)}function h(p,y){for(f[p]=y,p=0;p<y.length;p++)c.add(y[p])}var m=!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0),v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w=Object.prototype.hasOwnProperty,x={},C={};function k(p,y,E,D,X,te,ie){this.acceptsBooleans=y===2||y===3||y===4,this.attributeName=D,this.attributeNamespace=X,this.mustUseProperty=E,this.propertyName=p,this.type=y,this.sanitizeURL=te,this.removeEmptyString=ie}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){P[p]=new k(p,0,!1,p,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var y=p[0];P[y]=new k(y,1,!1,p[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){P[p]=new k(p,2,!1,p.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){P[p]=new k(p,2,!1,p,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(p){P[p]=new k(p,3,!1,p.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(p){P[p]=new k(p,3,!0,p,null,!1,!1)}),["capture","download"].forEach(function(p){P[p]=new k(p,4,!1,p,null,!1,!1)}),["cols","rows","size","span"].forEach(function(p){P[p]=new k(p,6,!1,p,null,!1,!1)}),["rowSpan","start"].forEach(function(p){P[p]=new k(p,5,!1,p.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function L(p){return p[1].toUpperCase()}function B(p,y,E,D){var X=P.hasOwnProperty(y)?P[y]:null;(X!==null?X.type===0:!D&&2<y.length&&(y[0]==="o"||y[0]==="O")&&(y[1]==="n"||y[1]==="N"))||(function(te,ie,me,ke){if(ie==null||function(Ie,At,Xt,yt){if(Xt!==null&&Xt.type===0)return!1;switch(typeof At){case"function":case"symbol":return!0;case"boolean":return!yt&&(Xt!==null?!Xt.acceptsBooleans:(Ie=Ie.toLowerCase().slice(0,5))!=="data-"&&Ie!=="aria-");default:return!1}}(te,ie,me,ke))return!0;if(ke)return!1;if(me!==null)switch(me.type){case 3:return!ie;case 4:return ie===!1;case 5:return isNaN(ie);case 6:return isNaN(ie)||1>ie}return!1}(y,E,X,D)&&(E=null),D||X===null?function(te){return!!w.call(C,te)||!w.call(x,te)&&(v.test(te)?C[te]=!0:(x[te]=!0,!1))}(y)&&(E===null?p.removeAttribute(y):p.setAttribute(y,""+E)):X.mustUseProperty?p[X.propertyName]=E===null?X.type!==3&&"":E:(y=X.attributeName,D=X.attributeNamespace,E===null?p.removeAttribute(y):(E=(X=X.type)===3||X===4&&E===!0?"":""+E,D?p.setAttributeNS(D,y,E):p.setAttribute(y,E))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(p){var y=p.replace(O,L);P[y]=new k(y,1,!1,p,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var y=p.replace(O,L);P[y]=new k(y,1,!1,p,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var y=p.replace(O,L);P[y]=new k(y,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(p){P[p]=new k(p,1,!1,p.toLowerCase(),null,!1,!1)}),P.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(p){P[p]=new k(p,1,!1,p.toLowerCase(),null,!0,!0)});var M=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=60103,N=60106,z=60107,R=60108,W=60114,U=60109,K=60110,Y=60112,j=60113,H=60120,$=60115,q=60116,Z=60121,ue=60128,Q=60129,fe=60130,ye=60131;if(typeof Symbol=="function"&&Symbol.for){var le=Symbol.for;F=le("react.element"),N=le("react.portal"),z=le("react.fragment"),R=le("react.strict_mode"),W=le("react.profiler"),U=le("react.provider"),K=le("react.context"),Y=le("react.forward_ref"),j=le("react.suspense"),H=le("react.suspense_list"),$=le("react.memo"),q=le("react.lazy"),Z=le("react.block"),le("react.scope"),ue=le("react.opaque.id"),Q=le("react.debug_trace_mode"),fe=le("react.offscreen"),ye=le("react.legacy_hidden")}var Le,ge=typeof Symbol=="function"&&Symbol.iterator;function Oe(p){return p===null||typeof p!="object"?null:typeof(p=ge&&p[ge]||p["@@iterator"])=="function"?p:null}function Fe(p){if(Le===void 0)try{throw Error()}catch(E){var y=E.stack.trim().match(/\n( *(at )?)/);Le=y&&y[1]||""}return`
788
788
  `+Le+p}var $e=!1;function He(p,y){if(!p||$e)return"";$e=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(y)if(y=function(){throw Error()},Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(ke){var D=ke}Reflect.construct(p,[],y)}else{try{y.call()}catch(ke){D=ke}p.call(y.prototype)}else{try{throw Error()}catch(ke){D=ke}p()}}catch(ke){if(ke&&D&&typeof ke.stack=="string"){for(var X=ke.stack.split(`
789
789
  `),te=D.stack.split(`
790
790
  `),ie=X.length-1,me=te.length-1;1<=ie&&0<=me&&X[ie]!==te[me];)me--;for(;1<=ie&&0<=me;ie--,me--)if(X[ie]!==te[me]){if(ie!==1||me!==1)do if(ie--,0>--me||X[ie]!==te[me])return`