n8n-editor-ui 2.44.0 → 2.44.1

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.
Files changed (386) hide show
  1. package/dist/assets/AddDataTableModal-DkZJPjXL.js +1 -0
  2. package/dist/assets/{AgentApprovalSelector-B8SQBYdU.js → AgentApprovalSelector-4x1uYC1S.js} +1 -1
  3. package/dist/assets/{AgentBuilderView-Da6qTdaD.js → AgentBuilderView-B6-PK15o.js} +1 -1
  4. package/dist/assets/AgentBuilderView-DX5NyIbN.js +13 -0
  5. package/dist/assets/AgentChatPanel-CAcdBPjt.js +16 -0
  6. package/dist/assets/AgentConfirmationModal-BEKKI5Wv.js +1 -0
  7. package/dist/assets/{AgentDescriptionModal-CKgZEGuG.js → AgentDescriptionModal-7xEGUdAm.js} +1 -1
  8. package/dist/assets/{AgentDuplicateModal-Bg8-6-El.js → AgentDuplicateModal-DuQVsxR4.js} +1 -1
  9. package/dist/assets/AgentEditorModal-BiqYfHWq.js +1 -0
  10. package/dist/assets/{AgentJsonImportModal-Cm-0tpF3.js → AgentJsonImportModal-CNfsOrPY.js} +1 -1
  11. package/dist/assets/{AgentModal-YufhIMwF.js → AgentModal-DMpTq9im.js} +1 -1
  12. package/dist/assets/{AgentModalMultiStep-ClhgWQd7.js → AgentModalMultiStep-Bios2t6g.js} +1 -1
  13. package/dist/assets/AgentN8nChatView-CuNBP7ea.js +1 -0
  14. package/dist/assets/AgentPreviewButton-DTvTX51W.js +3 -0
  15. package/dist/assets/AgentPreviewDock-D0A_9p2-.js +1 -0
  16. package/dist/assets/AgentSessionTimelineView-auHKxIu0.js +1 -0
  17. package/dist/assets/{AgentSessionsListView-Db2-xqIb.js → AgentSessionsListView-BvXJJRNh.js} +1 -1
  18. package/dist/assets/AgentSessionsListView-Ce3ECZGI.js +1 -0
  19. package/dist/assets/AgentSkillModal-h471-5rD.js +109 -0
  20. package/dist/assets/{AgentSubAgentsModal-BfQB7NKK.js → AgentSubAgentsModal-F8v4Z4P6.js} +1 -1
  21. package/dist/assets/AgentTaskModal-DyWhFUox.js +1 -0
  22. package/dist/assets/{AgentTemplateList-DmIhUTW8.js → AgentTemplateList-Ci1JJQDM.js} +1 -1
  23. package/dist/assets/AgentToolConfigForm-DUJq0XOX.js +1 -0
  24. package/dist/assets/{AgentToolConfigModal-NygECPPD.js → AgentToolConfigModal-CfuN_m6s.js} +1 -1
  25. package/dist/assets/{AgentToolsConnectionModalWrapper-aMA1oXxu.js → AgentToolsConnectionModalWrapper-Bvixk0oc.js} +1 -1
  26. package/dist/assets/AgentVectorStoresModal-D67lLRXe.js +1 -0
  27. package/dist/assets/{AgentView-BzQbz6EM.js → AgentView-Ctul432H.js} +1 -1
  28. package/dist/assets/AgentsListView-rwsriQQB.js +1 -0
  29. package/dist/assets/{AnimatedSpinner-Dw-MNajy.js → AnimatedSpinner-DysiHK1D.js} +1 -1
  30. package/dist/assets/{AnnotationTagsDropdown.ee-DqnLAja8.js → AnnotationTagsDropdown.ee-CkqDofTO.js} +1 -1
  31. package/dist/assets/AppSidebar-t8-qYdBV.js +1 -0
  32. package/dist/assets/AuthLayout-BR-eBgIn.js +1 -0
  33. package/dist/assets/{AuthView-XKcD8dQn.js → AuthView-DhcpoJhE.js} +1 -1
  34. package/dist/assets/{BrowserUseSetupContent-Q2XehS-o.js → BrowserUseSetupContent-Dstz1Wj8.js} +1 -1
  35. package/dist/assets/{BrowserUseSetupModal-C41LoL7V.js → BrowserUseSetupModal-CfN05-Wz.js} +1 -1
  36. package/dist/assets/{ChangePasswordModal-DdQgFpD1.js → ChangePasswordModal-BS6wOYCJ.js} +1 -1
  37. package/dist/assets/{ChangePasswordView-Bc38OL3D.js → ChangePasswordView-BDuDn0Kt.js} +1 -1
  38. package/dist/assets/{ChatAgentAvatar-RbpxKoY_.js → ChatAgentAvatar-DcbjpjP2.js} +1 -1
  39. package/dist/assets/{ChatAgentSearchSort-DyUlbfGj.js → ChatAgentSearchSort-zB5iesWx.js} +1 -1
  40. package/dist/assets/{ChatFile-Dpepv5QX.js → ChatFile-DymVzyKy.js} +1 -1
  41. package/dist/assets/ChatGreetings-DRLZeFZp.js +3 -0
  42. package/dist/assets/ChatHistoryDropdownTrigger-DfBNY3-M.js +1 -0
  43. package/dist/assets/{ChatLayout-Bpak728I.js → ChatLayout-C1s8X4-T.js} +1 -1
  44. package/dist/assets/{ChatLayout-CMU23D1c.js → ChatLayout-ztH6XdiL.js} +1 -1
  45. package/dist/assets/{ChatMarkdownChunk-QaZWORIt.js → ChatMarkdownChunk-DHu2lgnL.js} +2 -2
  46. package/dist/assets/{ChatPersonalAgentsView-qZFenSYR.js → ChatPersonalAgentsView-Dn5NTdHb.js} +1 -1
  47. package/dist/assets/ChatView-D_SzmRoP.js +1 -0
  48. package/dist/assets/{ChatWorkflowAgentsView-KYIaou_-.js → ChatWorkflowAgentsView-BR5q0qVP.js} +1 -1
  49. package/dist/assets/{CollectionParameter-CJM5wPT-.js → CollectionParameter-3cQtfeXK.js} +1 -1
  50. package/dist/assets/CompareCollectionView-CrRwL5Hk.js +1 -0
  51. package/dist/assets/{ComputerUseSetupContent-BJQoXzGd.js → ComputerUseSetupContent-CZh-FqZH.js} +1 -1
  52. package/dist/assets/{ComputerUseSetupModal-DfwZZ1cU.js → ComputerUseSetupModal-ChLPIx5Z.js} +1 -1
  53. package/dist/assets/{ConfirmEmailChangeView-Cx-pmeWN.js → ConfirmEmailChangeView-D36PoYKY.js} +1 -1
  54. package/dist/assets/{ConfirmPasswordModal-DK-J-lFJ.js → ConfirmPasswordModal-B3as49rr.js} +1 -1
  55. package/dist/assets/{ConnectionTracker-C3EC7auW.js → ConnectionTracker-DjRgdYtW.js} +1 -1
  56. package/dist/assets/{CredentialSelectorModal-DkZ2cUxT.js → CredentialSelectorModal-DiB2eh77.js} +1 -1
  57. package/dist/assets/CredentialsView-cXSodUuO.js +1 -0
  58. package/dist/assets/{DataTableActions-DCB9Nk3-.js → DataTableActions-D-p2EDp1.js} +1 -1
  59. package/dist/assets/{DataTableDetailsView-iz9ayc2y.js → DataTableDetailsView-DVMbz60P.js} +1 -1
  60. package/dist/assets/{DataTableTable-C9Yzj3RH.js → DataTableTable-CRBSOkpC.js} +2 -2
  61. package/dist/assets/DataTableView-PP3BsN7V.js +1 -0
  62. package/dist/assets/DefaultLayout-CvA-QUtF.js +1 -0
  63. package/dist/assets/{DeleteInstanceRoleModal-CH49JPpc.js → DeleteInstanceRoleModal-DPE_Vg9T.js} +1 -1
  64. package/dist/assets/{DemoDiffView-9RefK0En.js → DemoDiffView-QoJ-UBqt.js} +1 -1
  65. package/dist/assets/{DemoLayout-C_8rHPeN.js → DemoLayout-CJR2tQ75.js} +1 -1
  66. package/dist/assets/{DependencyPill-BX7M9U-6.js → DependencyPill-CFCz-v9K.js} +1 -1
  67. package/dist/assets/{EmptySharedSectionActionBox-DEmIFqqH.js → EmptySharedSectionActionBox-MRZ4_KTx.js} +1 -1
  68. package/dist/assets/EntityNotFound-BxyK_Q9R.js +1 -0
  69. package/dist/assets/{EntityUnAuthorised-BlnQzD_t.js → EntityUnAuthorised-BGPPqYgW.js} +1 -1
  70. package/dist/assets/ErrorView-pPBNQ1sR.js +1 -0
  71. package/dist/assets/{EvalCollectionsListView-thtjxVEg.js → EvalCollectionsListView-D3F_wUAT.js} +1 -1
  72. package/dist/assets/EvaluationsListSwitcher-Dv1biKid.js +2 -0
  73. package/dist/assets/EvaluationsPaywall-CzGcAdqb.js +1 -0
  74. package/dist/assets/{EvaluationsRootView-BwG7dQDL.js → EvaluationsRootView-Cb2AGXe_.js} +1 -1
  75. package/dist/assets/EventDestinationSettingsModalAdapter-DgcON5yX.js +1 -0
  76. package/dist/assets/ExecutionsTime-ZAYzb5jy.js +2 -0
  77. package/dist/assets/ExecutionsView-BdgJDduF.js +1 -0
  78. package/dist/assets/{ExposeAllWorkflowsToMcpModal-BYIipTfp.js → ExposeAllWorkflowsToMcpModal-DGW0UNXJ.js} +1 -1
  79. package/dist/assets/FixedCollectionParameter-Coy-yUo8.js +1 -0
  80. package/dist/assets/{FolderBreadcrumbs-B4gL13RQ.js → FolderBreadcrumbs-DU2XICPH.js} +1 -1
  81. package/dist/assets/{ForgotMyPasswordView-DoV3PfUt.js → ForgotMyPasswordView-BR25sTMo.js} +1 -1
  82. package/dist/assets/{GroupedMetricChart-DmKS7q4z.js → GroupedMetricChart-C0bTfE70.js} +1 -1
  83. package/dist/assets/{ImpactTag-DmN0vFcQ.js → ImpactTag-BMI7rQVE.js} +1 -1
  84. package/dist/assets/{InsightsChartAverageRuntime-ByCFHhWV.js → InsightsChartAverageRuntime-CC9ax2fy.js} +1 -1
  85. package/dist/assets/{InsightsChartFailed-CY7dCDOM.js → InsightsChartFailed-Dtp0vANi.js} +1 -1
  86. package/dist/assets/{InsightsChartFailureRate-DutOoI7l.js → InsightsChartFailureRate-wg70VlC8.js} +1 -1
  87. package/dist/assets/{InsightsChartTimeSaved-CllsnSRA.js → InsightsChartTimeSaved-C0vvCRo4.js} +1 -1
  88. package/dist/assets/{InsightsChartTotal-BWouaOTU.js → InsightsChartTotal-DKubDl8V.js} +1 -1
  89. package/dist/assets/{InsightsDashboard-EptJjM30.js → InsightsDashboard-DlZeICiu.js} +2 -2
  90. package/dist/assets/InsightsPaywall-EHdXSeUy.js +1 -0
  91. package/dist/assets/{InsightsSummary-BahEFtt0.js → InsightsSummary-A9X8mv3i.js} +1 -1
  92. package/dist/assets/{InsightsTableWorkflows-BEsMkvOk.js → InsightsTableWorkflows-BOjN_hAd.js} +2 -2
  93. package/dist/assets/{InstanceAiEmptyView-Cofqxjd0.js → InstanceAiEmptyView-BnaIzfFb.js} +1 -1
  94. package/dist/assets/{InstanceAiLayout-DH3Knrks.js → InstanceAiLayout-CttIFBjR.js} +1 -1
  95. package/dist/assets/InstanceAiThreadView-BuKssWMO.js +2 -0
  96. package/dist/assets/{InstanceAiThreadsView-DDsAJp0t.js → InstanceAiThreadsView-BW2h9ZUG.js} +1 -1
  97. package/dist/assets/InstanceAiToolsConnectionModalWrapper-DWWMwFE4.js +1 -0
  98. package/dist/assets/{InstanceAiView-CH4-Icll.js → InstanceAiView-CnRYbCj7.js} +1 -1
  99. package/dist/assets/InstanceRoleView-kl83OTyw.js +1 -0
  100. package/dist/assets/LimitedModeNotice-BMXCL_mt.js +1 -0
  101. package/dist/assets/{LogStreamingPaywall-CRzo--bu.js → LogStreamingPaywall-CtCTBN65.js} +1 -1
  102. package/dist/assets/{LogStreamingPlaceholderView-DBnPMxcd.js → LogStreamingPlaceholderView-BJ_tbZoX.js} +1 -1
  103. package/dist/assets/LogsOverviewRow-jVH9JAwy.js +1 -0
  104. package/dist/assets/{MCPOnboardingModal-BlCSL-o2.js → MCPOnboardingModal-7TrHb7UJ.js} +1 -1
  105. package/dist/assets/MainHeader-CAHjD2NZ.js +1 -0
  106. package/dist/assets/{MainSidebarHeader-B2G9nD6W.js → MainSidebarHeader-CzDAJduS.js} +1 -1
  107. package/dist/assets/McpJsonNudgeModal-BtySAWKw.js +1 -0
  108. package/dist/assets/{McpRegistrySuggestionFooter-VXlHkoJD.js → McpRegistrySuggestionFooter-txkSGcUS.js} +1 -1
  109. package/dist/assets/{MfaSetupModal-iF3zHIHS.js → MfaSetupModal-BEjFuXSa.js} +2 -2
  110. package/dist/assets/MigrationRuleDetail-BYHikjiK.js +1 -0
  111. package/dist/assets/MigrationRules-Tv5q8tRZ.js +1 -0
  112. package/dist/assets/{ModelByIdSelectorModal-VoG8BzBG.js → ModelByIdSelectorModal-DmFPPlQ_.js} +1 -1
  113. package/dist/assets/{N8nChatAgentGrid-EXUFglb0.js → N8nChatAgentGrid-DCDWKNtD.js} +1 -1
  114. package/dist/assets/N8nChatAgentLibraryView-BSfnS25d.js +1 -0
  115. package/dist/assets/{N8nChatPageLayout-DIrqhGr_.js → N8nChatPageLayout-Cv5ScR18.js} +1 -1
  116. package/dist/assets/NodeCreation-B1GfJIvd.js +2 -0
  117. package/dist/assets/NodeCreator-DPCgfDX8.js +1 -0
  118. package/dist/assets/NodeDetailsView-v8DvzTHr.js +1 -0
  119. package/dist/assets/{NodeToolSettingsContent-DLmGq-N9.js → NodeToolSettingsContent-lcCnVBPB.js} +1 -1
  120. package/dist/assets/{NodeView-Ctlqbx8C.js → NodeView-B3NhDpz1.js} +1 -1
  121. package/dist/assets/NodeView-DVu1Bnt3.js +2 -0
  122. package/dist/assets/OAuthConsentView-DMPNFYuO.js +1 -0
  123. package/dist/assets/{PageViewLayout-bCi6IKM-.js → PageViewLayout-Bp6RXp4_.js} +1 -1
  124. package/dist/assets/{ProjectBreadcrumb-Cnwzyd2Z.js → ProjectBreadcrumb-BR6Aa_8r.js} +1 -1
  125. package/dist/assets/{ProjectFilter-CaPwwC8g.js → ProjectFilter-DCd8uy8l.js} +1 -1
  126. package/dist/assets/ProjectHeader-QjIM8haZ.js +1 -0
  127. package/dist/assets/ProjectRoleView-Dnk8gsYC.js +1 -0
  128. package/dist/assets/ProjectSettings-D5zQWXAe.js +1 -0
  129. package/dist/assets/ProjectVariables-XKVXNzgl.js +1 -0
  130. package/dist/assets/PromotionBindingsFlow-DQx0wPa9.js +1 -0
  131. package/dist/assets/PromotionSelectModal-DzIBwn2U.js +1 -0
  132. package/dist/assets/PromotionsSettingsView-DuTlSJcw.js +1 -0
  133. package/dist/assets/{PromptMfaCodeModal-vVELtLqC.js → PromptMfaCodeModal-Bn7srjg9.js} +1 -1
  134. package/dist/assets/{ProviderSettingsModal-aLxanc2T.js → ProviderSettingsModal-DutL40PA.js} +1 -1
  135. package/dist/assets/PublicationIndicator-BtJczAR0.js +1 -0
  136. package/dist/assets/{RecentChatIcon-Bz2MNsZl.js → RecentChatIcon-BIyyIODM.js} +1 -1
  137. package/dist/assets/{ResolversView-C_sVCxt2.js → ResolversView-DK0QKKVQ.js} +1 -1
  138. package/dist/assets/{ResourceCenterView-Bby45GC-.js → ResourceCenterView-CUvJGTsi.js} +1 -1
  139. package/dist/assets/{ResourcesListEmptyState-7hzhxSHi.js → ResourcesListEmptyState-Df4hykb-.js} +1 -1
  140. package/dist/assets/ResourcesListLayout-CIWP7UX_.js +1 -0
  141. package/dist/assets/{RoleSelectDropdown-Dzy0ESK_.js → RoleSelectDropdown-CKIJpssE.js} +1 -1
  142. package/dist/assets/{RolesView-Cv3tmUWj.js → RolesView-DWy0o31w.js} +1 -1
  143. package/dist/assets/{RunDataHtml-BkPrOVY7.js → RunDataHtml-nEx5pYjD.js} +1 -1
  144. package/dist/assets/{RunDataJson-wVBBCyW1.js → RunDataJson-_58fhexZ.js} +2 -2
  145. package/dist/assets/{RunDataJsonActions-B1Sp_2yc.js → RunDataJsonActions-CVKMY0Sx.js} +2 -2
  146. package/dist/assets/{RunDataParsedAiContent-BTSL3Ozr.js → RunDataParsedAiContent-6L7RVkKD.js} +1 -1
  147. package/dist/assets/{RunDataParsedAiContent-B-dZkiiK.js → RunDataParsedAiContent-N1LP23et.js} +3 -3
  148. package/dist/assets/{RunDataSearch-CEvFNipB.js → RunDataSearch-B-J5fw5n.js} +1 -1
  149. package/dist/assets/{RunDataTable-Df3fAAj2.js → RunDataTable-rXdlanqj.js} +1 -1
  150. package/dist/assets/{SamlOnboarding-BOu5TOPr.js → SamlOnboarding-DMszMIiL.js} +1 -1
  151. package/dist/assets/{SandboxSettingsRow-nfh8yhXB.js → SandboxSettingsRow-Cl5FZGXu.js} +1 -1
  152. package/dist/assets/SecuritySettings-DNSunEvt.js +1 -0
  153. package/dist/assets/SettingsAIView-Dzqb_gQE.js +1 -0
  154. package/dist/assets/SettingsAgentsView-B8fft1So.js +1 -0
  155. package/dist/assets/SettingsAiGatewayView-KGIIQukP.js +1 -0
  156. package/dist/assets/SettingsApiView-BTuTOYbD.js +1 -0
  157. package/dist/assets/SettingsChatHubView-3DmItZZi.js +1 -0
  158. package/dist/assets/SettingsCommunityNodesView-DF5-gCEu.js +1 -0
  159. package/dist/assets/SettingsContextView-4oHjIijI.js +1 -0
  160. package/dist/assets/SettingsEncryptionKeys-COWApewr.js +1 -0
  161. package/dist/assets/{SettingsExternalSecrets-DGC1iq8F.js → SettingsExternalSecrets-BZDdVBTB.js} +1 -1
  162. package/dist/assets/SettingsInstanceAiView-ByZCoKzh.js +1 -0
  163. package/dist/assets/{SettingsLayout-Dx-L1mgX.js → SettingsLayout-C7LLr6cE.js} +1 -1
  164. package/dist/assets/{SettingsLdapView-DSQhBNgh.js → SettingsLdapView-BVhw22q5.js} +2 -2
  165. package/dist/assets/SettingsLogStreamingView-Dc4XQMSj.js +1 -0
  166. package/dist/assets/{SettingsMCPAgentsView-BtolLK-k.js → SettingsMCPAgentsView-Bivm4IFI.js} +1 -1
  167. package/dist/assets/SettingsMCPClientsView-DF-NxgbJ.js +1 -0
  168. package/dist/assets/SettingsMCPView--prl2G_r.js +49 -0
  169. package/dist/assets/{SettingsMCPWorkflowsView-C9MoDxas.js → SettingsMCPWorkflowsView-BMFU0bs3.js} +1 -1
  170. package/dist/assets/SettingsOpenTelemetryView-DMvPheYJ.js +1 -0
  171. package/dist/assets/{SettingsPersonalView-DYg3oFiW.js → SettingsPersonalView-B1YX77L-.js} +1 -1
  172. package/dist/assets/SettingsPreferencesView-CCbztOqj.js +1 -0
  173. package/dist/assets/SettingsSecretsProviders.ee-F9LMaG1t.js +1 -0
  174. package/dist/assets/SettingsSourceControl-BD8_osbg.js +1 -0
  175. package/dist/assets/SettingsSso-PVkNFLrh.js +3 -0
  176. package/dist/assets/SettingsUsageAndPlan-Kd1oPsii.js +1 -0
  177. package/dist/assets/SettingsUsersView-COsjNIEL.js +1 -0
  178. package/dist/assets/{SetupView-DPWFrJFX.js → SetupView-B14MFSYF.js} +1 -1
  179. package/dist/assets/{SetupWorkflowCredentialsButton-RAdc4KlU.js → SetupWorkflowCredentialsButton-MQLIOwPY.js} +1 -1
  180. package/dist/assets/SetupWorkflowFromTemplateView-Td-Rx5fR.js +1 -0
  181. package/dist/assets/{SigninView-BPOZ_JvM.js → SigninView-75E9B3ep.js} +1 -1
  182. package/dist/assets/{SignoutView-DOoUkBqR.js → SignoutView-Daa15qmo.js} +1 -1
  183. package/dist/assets/{SignupView-UVaiVVnv.js → SignupView-CKO9HRZU.js} +1 -1
  184. package/dist/assets/{SkeletonAgentCard-DonARi7W.js → SkeletonAgentCard-3xTB8UfZ.js} +1 -1
  185. package/dist/assets/{TemplateList-QMN6-8Ff.js → TemplateList-C2TxAN0P.js} +1 -1
  186. package/dist/assets/{TemplatesCollectionView-DCbwUXhL.js → TemplatesCollectionView-CZMR8Q9B.js} +1 -1
  187. package/dist/assets/TemplatesSearchView-CHLMAWTA.js +1 -0
  188. package/dist/assets/{TemplatesView-DAXRVkmt.js → TemplatesView-Dn3jCV05.js} +1 -1
  189. package/dist/assets/{TemplatesWorkflowView-tW-MHyf-.js → TemplatesWorkflowView-C-kvTEqR.js} +1 -1
  190. package/dist/assets/{TestRunDetailView-Bd-3DRWP.js → TestRunDetailView-BuWeSwgd.js} +1 -1
  191. package/dist/assets/{ToolIcon-DXqBHyeb.js → ToolIcon-CgDyqfFz.js} +1 -1
  192. package/dist/assets/{ToolSettingsModal-DCyqfOak.js → ToolSettingsModal-ByJX5X7W.js} +1 -1
  193. package/dist/assets/ToolsConnectionModal-DEoHRiX3.js +1 -0
  194. package/dist/assets/ToolsManagerModal-BbzHGTTB.js +1 -0
  195. package/dist/assets/ToolsManagerModal-CL6mM2CT.css +1 -0
  196. package/dist/assets/{ToolsSelector-lmbosNBE.js → ToolsSelector-CNs07Ph1.js} +1 -1
  197. package/dist/assets/{TrialIntroModal-DgmMUX6D.js → TrialIntroModal-COqIR76q.js} +1 -1
  198. package/dist/assets/{VirtualSchema-2E1N91s4.js → VirtualSchema-qThduCFC.js} +1 -1
  199. package/dist/assets/{WorkerView-CK0vy4GS.js → WorkerView-D1Q_nCLi.js} +1 -1
  200. package/dist/assets/{WorkflowExecutionsInfoAccordion-BMU0TmaE.js → WorkflowExecutionsInfoAccordion-1_sf2LSs.js} +1 -1
  201. package/dist/assets/{WorkflowExecutionsLandingPage-D-dB8HCw.js → WorkflowExecutionsLandingPage-BfMeZfNZ.js} +1 -1
  202. package/dist/assets/WorkflowExecutionsPreview-lJKYJwZI.js +1 -0
  203. package/dist/assets/WorkflowExecutionsView-0CilRvvH.js +1 -0
  204. package/dist/assets/WorkflowHistory-D0IMTfVA.js +1 -0
  205. package/dist/assets/WorkflowLayout-D_Ncy1iE.js +1 -0
  206. package/dist/assets/{WorkflowOnboardingView-TbGXVlVN.js → WorkflowOnboardingView-CwCOvhXZ.js} +1 -1
  207. package/dist/assets/WorkflowPreviewHost-BB11E3CI.js +1 -0
  208. package/dist/assets/WorkflowReviewRequestsView-DL3MFxwP.js +1 -0
  209. package/dist/assets/WorkflowsView-CbPJw_ID.js +1 -0
  210. package/dist/assets/{aiTemplatesStarterCollection.store-Dh9-uikR.js → aiTemplatesStarterCollection.store-z28GmE_Z.js} +2 -2
  211. package/dist/assets/{app-67dzk_qg.css → app-CU_fYePl.css} +1 -1
  212. package/dist/assets/{app-CiawIgN9.js → app-oLfukFT9.js} +106 -106
  213. package/dist/assets/auth.eventBus-nvmfBO6L.js +1 -0
  214. package/dist/assets/{context.store-O85P2gEu.js → context.store-DzS-OJir.js} +1 -1
  215. package/dist/assets/{dist-kJhq_pQM.js → dist-CdpUFTnE.js} +1 -1
  216. package/dist/assets/en-Dn5pxxIz.js +1 -0
  217. package/dist/assets/expression-runtime-stub-UNeuY3iN.js +1 -0
  218. package/dist/assets/{index-BshBxqH2.js → index-CBhcE0k-.js} +1 -1
  219. package/dist/assets/{insights.store-DqK_Hj6J.js → insights.store-CFx-KiBU.js} +1 -1
  220. package/dist/assets/{insights.store-C-NrjF5l.js → insights.store-qL6q61kW.js} +1 -1
  221. package/dist/assets/{insights.utils-Dr5pHfjM.js → insights.utils-B0xOygf8.js} +1 -1
  222. package/dist/assets/{instanceAi.store-BZTklpEt.js → instanceAi.store-HgFtjtSA.js} +1 -1
  223. package/dist/assets/{instanceAiComputerUse.telemetry-cAMQ2WLg.js → instanceAiComputerUse.telemetry-BX3iVsla.js} +1 -1
  224. package/dist/assets/{instanceAiMcp.store-DGiArrfK.js → instanceAiMcp.store-C8SplGQl.js} +1 -1
  225. package/dist/assets/{instanceAiMcp.store-BrrHBunG.js → instanceAiMcp.store-DHgGYKq8.js} +1 -1
  226. package/dist/assets/{instanceAiSetup.telemetry-DKsuz_Ef.js → instanceAiSetup.telemetry-Cu3a1VfE.js} +1 -1
  227. package/dist/assets/{instanceRoleScopes-uFpjBIDb.js → instanceRoleScopes-CeFuPB8X.js} +1 -1
  228. package/dist/assets/{logStreaming.store-BI-D_9Tr.js → logStreaming.store-BDxeuOL4.js} +1 -1
  229. package/dist/assets/{mergeRecentChats-CmVeGVfC.js → mergeRecentChats-CWOdJaOY.js} +1 -1
  230. package/dist/assets/{postMessageUtils-BZnczWr7.js → postMessageUtils-Buqcds2_.js} +1 -1
  231. package/dist/assets/{projectRoleScopes-BsnxskQt.js → projectRoleScopes-Cb09ZyTM.js} +1 -1
  232. package/dist/assets/{promotions.api-fKiTFwcr.js → promotions.api-D6ntl2JV.js} +1 -1
  233. package/dist/assets/promotions.eventBus-1v4t_Hbs.js +1 -0
  234. package/dist/assets/{promotionsSettings.api-PzSCJER7.js → promotionsSettings.api-Cuy9RjVm.js} +1 -1
  235. package/dist/assets/{pushConnection.store-BWqDj6Ak.js → pushConnection.store-b7e8A-im.js} +1 -1
  236. package/dist/assets/{readyToRun.store-B2jIpzaP.js → readyToRun.store-CE87oIgp.js} +3 -3
  237. package/dist/assets/{readyToRunWorkflows.store-BbZiyJYg.js → readyToRunWorkflows.store-BjTR-K95.js} +2 -2
  238. package/dist/assets/{resourceCenter.store-OxozDMtm.js → resourceCenter.store-CJsSX4ZG.js} +1 -1
  239. package/dist/assets/{src-Bnl_5mE4.js → src-BU6D5L7U.js} +1 -1
  240. package/dist/assets/{src-DY7si8_w.js → src-DJVjVPKI.js} +1 -1
  241. package/dist/assets/surfaceMcpToNewCloudUsers.store-BDg60m1l.js +1 -0
  242. package/dist/assets/{templateActions-ChrS5kkv.js → templateActions-CHRqep2i.js} +1 -1
  243. package/dist/assets/{thread-title-C8ilaomA.js → thread-title-DtF3IdnY.js} +1 -1
  244. package/dist/assets/{toolIcons-fKqVfg23.js → toolIcons-DqjDHIwi.js} +1 -1
  245. package/dist/assets/{typescript.worker--e45RZRP.js → typescript.worker-xmrMwPIu.js} +139 -139
  246. package/dist/assets/{useActivityDetection-GlpYNf-Q.js → useActivityDetection-BZTAMwar.js} +1 -1
  247. package/dist/assets/{useAgentConfirmationModal-CoJtHVWS.js → useAgentConfirmationModal--ha2EHAX.js} +1 -1
  248. package/dist/assets/{useBuilderStreamingGuard-B7JeJeif.js → useBuilderStreamingGuard-CF9n24d2.js} +1 -1
  249. package/dist/assets/{useCustomAgent-rzAqlogG.js → useCustomAgent-Yt0Wqf3a.js} +1 -1
  250. package/dist/assets/{useDependencyMenu-DiCGxg9o.js → useDependencyMenu-BSD_Wh7Z.js} +1 -1
  251. package/dist/assets/{useEvalCollectionsFlag-fLp5eLuh.js → useEvalCollectionsFlag-9T27lZ9y.js} +1 -1
  252. package/dist/assets/{useEvaluationsLicense-C7qQIrRw.js → useEvaluationsLicense-478l3uKz.js} +1 -1
  253. package/dist/assets/{useExecutionData-D1_nZgXN.js → useExecutionData-BVav_--7.js} +1 -1
  254. package/dist/assets/useExecutionDebugging-DNEpg7fc.js +2 -0
  255. package/dist/assets/{useExposeAllWorkflowsToMcpOffer-CtR3a8uG.js → useExposeAllWorkflowsToMcpOffer-Dt120Zdw.js} +1 -1
  256. package/dist/assets/{useExtensionDirectConnect-CnINrsSW.js → useExtensionDirectConnect-DWfPpd4w.js} +1 -1
  257. package/dist/assets/{useFileDrop-D6TxtcEG.js → useFileDrop-ja5KXA3q.js} +1 -1
  258. package/dist/assets/{useImportCurlCommand-BJsa3SYX.js → useImportCurlCommand-DBxkPosB.js} +1 -1
  259. package/dist/assets/{useInstanceAiConfiguration-BSjUupr5.js → useInstanceAiConfiguration-Blsd4kOA.js} +1 -1
  260. package/dist/assets/{useInstancePromotionConnection-C79S26jh.js → useInstancePromotionConnection-y1iOgVEj.js} +1 -1
  261. package/dist/assets/useIsAssistantAtMentionsEnabled-Dlq0V3jE.js +1 -0
  262. package/dist/assets/{useLogsTreeExpand-mtDDZp2J.js → useLogsTreeExpand-B38R0D0z.js} +1 -1
  263. package/dist/assets/{useMcpJsonNudgeEligibility-BbEgzCUs.js → useMcpJsonNudgeEligibility-B0--_zHz.js} +1 -1
  264. package/dist/assets/{useMcpJsonNudgeTrigger-D75YeM7w.js → useMcpJsonNudgeTrigger-WYpVEXD7.js} +1 -1
  265. package/dist/assets/{useMergedChatHistory-B5_I32px.js → useMergedChatHistory-CyQKnn96.js} +1 -1
  266. package/dist/assets/{useOAuthClientRevoke-BbXmfHXh.js → useOAuthClientRevoke-CbjEZKaZ.js} +1 -1
  267. package/dist/assets/{usePagedN8nChatThreads-CqbdunfX.js → usePagedN8nChatThreads-Dw6YKttc.js} +1 -1
  268. package/dist/assets/{usePostMessageHandler-CcNgS4W6.js → usePostMessageHandler-yE0okmdk.js} +2 -2
  269. package/dist/assets/usePushConnection-Bvt-qoHW.js +1 -0
  270. package/dist/assets/{usePushConnection-BFhO-1H-.js → usePushConnection-DkCvi8b-.js} +1 -1
  271. package/dist/assets/useRestrictedNodeWarning-CTtdCQks.js +1 -0
  272. package/dist/assets/{useRoleEditorForm-B9E9W0U3.js → useRoleEditorForm-XSnBSOnn.js} +1 -1
  273. package/dist/assets/{useSecretsProvidersList.ee-DtqxpeUp.js → useSecretsProvidersList.ee-CnzrWo1e.js} +1 -1
  274. package/dist/assets/{useSettingsItems-CfCtqenK.js → useSettingsItems-DYcW7pYp.js} +1 -1
  275. package/dist/assets/{useSidebarLayout-C0wiWIC7.js → useSidebarLayout-DmF2i08K.js} +1 -1
  276. package/dist/assets/useWorkflowEvaluationState-D-lddQaQ.js +1 -0
  277. package/dist/assets/useWorkflowInitialization-wUzQZhAb.js +1 -0
  278. package/dist/assets/useWorkflowsEmptyState-BJ-KcLgg.js +1 -0
  279. package/dist/assets/{userRoleProvisioning.store-D2fDxjy7.js → userRoleProvisioning.store-D9r1yJYS.js} +1 -1
  280. package/dist/assets/{vector-stores-CfjeTRPK.js → vector-stores-CGPITg7t.js} +1 -1
  281. package/dist/assets/{worker-BEGdHTX5.js → worker-Qfu_u4s_.js} +33 -33
  282. package/dist/assets/{workers-D9EJ04EA.js → workers-B8bjMWzs.js} +1 -1
  283. package/dist/assets/{workflowReviews.utils-DT99OxLq.js → workflowReviews.utils-B1ktoCSo.js} +1 -1
  284. package/dist/index.html +3 -3
  285. package/package.json +1 -1
  286. package/dist/assets/AddDataTableModal-DLy09xyE.js +0 -1
  287. package/dist/assets/AgentBuilderView-BuiPTWV6.js +0 -13
  288. package/dist/assets/AgentChatPanel-u7NaGpww.js +0 -16
  289. package/dist/assets/AgentConfirmationModal-BgXM3YJu.js +0 -1
  290. package/dist/assets/AgentEditorModal-BgXgYmw7.js +0 -1
  291. package/dist/assets/AgentN8nChatView-DMp5m5kU.js +0 -1
  292. package/dist/assets/AgentPreviewButton-CCbAq7Bg.js +0 -3
  293. package/dist/assets/AgentPreviewDock-p-FnbNFW.js +0 -1
  294. package/dist/assets/AgentSessionTimelineView-CDLFLqgB.js +0 -1
  295. package/dist/assets/AgentSessionsListView-CAhtGxXU.js +0 -1
  296. package/dist/assets/AgentSkillModal-CIwjGkmY.js +0 -109
  297. package/dist/assets/AgentTaskModal-DsjxStha.js +0 -1
  298. package/dist/assets/AgentToolConfigForm-BM_q2x6U.js +0 -1
  299. package/dist/assets/AgentVectorStoresModal-BKi_M-dr.js +0 -1
  300. package/dist/assets/AgentsListView-Dq4pKc5-.js +0 -1
  301. package/dist/assets/AppSidebar-CSCzI4k2.js +0 -1
  302. package/dist/assets/AuthLayout-BSblt7Rt.js +0 -1
  303. package/dist/assets/ChatGreetings-M7OJ33Qi.js +0 -3
  304. package/dist/assets/ChatHistoryDropdownTrigger-CzLECeCK.js +0 -1
  305. package/dist/assets/ChatView-YzLrMNPY.js +0 -1
  306. package/dist/assets/CompareCollectionView-DnfNVX8z.js +0 -1
  307. package/dist/assets/CredentialsView-iWtxJ13m.js +0 -1
  308. package/dist/assets/DataTableView-BoKIUdZr.js +0 -1
  309. package/dist/assets/DefaultLayout-D4UexJTe.js +0 -1
  310. package/dist/assets/EntityNotFound-Bmp2SXGQ.js +0 -1
  311. package/dist/assets/ErrorView-DaxMkfwo.js +0 -1
  312. package/dist/assets/EvaluationsListSwitcher-UpmdaJKp.js +0 -2
  313. package/dist/assets/EvaluationsPaywall-D2EWqnNK.js +0 -1
  314. package/dist/assets/EventDestinationSettingsModalAdapter-C8tw2vX7.js +0 -1
  315. package/dist/assets/ExecutionsTime-t5CrbSOv.js +0 -2
  316. package/dist/assets/ExecutionsView-DEFJEdU3.js +0 -1
  317. package/dist/assets/FixedCollectionParameter-Cbhm0t-C.js +0 -1
  318. package/dist/assets/InsightsPaywall-BvxbU4Xi.js +0 -1
  319. package/dist/assets/InstanceAiThreadView-ClkJh15G.js +0 -2
  320. package/dist/assets/InstanceAiToolsConnectionModalWrapper-SHQosix9.js +0 -1
  321. package/dist/assets/InstanceRoleView-DJ7rfpgb.js +0 -1
  322. package/dist/assets/LimitedModeNotice-zSNNTwaP.js +0 -1
  323. package/dist/assets/LogsOverviewRow-BkNsMGna.js +0 -1
  324. package/dist/assets/MainHeader-CAy60J0Q.js +0 -1
  325. package/dist/assets/McpJsonNudgeModal-BhLbaeOT.js +0 -1
  326. package/dist/assets/MigrationRuleDetail-B3VIoIM_.js +0 -1
  327. package/dist/assets/MigrationRules-BPxbNCE6.js +0 -1
  328. package/dist/assets/N8nChatAgentLibraryView-D2XPS6xn.js +0 -1
  329. package/dist/assets/NodeCreation-CrTwXTCa.js +0 -2
  330. package/dist/assets/NodeCreator-rMZtUGFM.js +0 -1
  331. package/dist/assets/NodeDetailsView-sfDBEAv-.js +0 -1
  332. package/dist/assets/NodeView-CuLkD58L.js +0 -2
  333. package/dist/assets/OAuthConsentView-BC3ajy-n.js +0 -1
  334. package/dist/assets/ProjectHeader-DB9KmIKR.js +0 -1
  335. package/dist/assets/ProjectRoleView-DgJOnUNJ.js +0 -1
  336. package/dist/assets/ProjectSettings-CCjLLKLf.js +0 -1
  337. package/dist/assets/ProjectVariables-CJUWgoqS.js +0 -1
  338. package/dist/assets/PromotionBindingsFlow-BED9j-io.js +0 -1
  339. package/dist/assets/PromotionSelectModal-D2qlwKh2.js +0 -1
  340. package/dist/assets/PromotionsSettingsView-DpBY8xLz.js +0 -1
  341. package/dist/assets/PublicationIndicator-CDWJw4MA.js +0 -1
  342. package/dist/assets/ResourcesListLayout-D0RcHlig.js +0 -1
  343. package/dist/assets/SecuritySettings-CREkypLf.js +0 -1
  344. package/dist/assets/SettingsAIView-t3ugLUq1.js +0 -1
  345. package/dist/assets/SettingsAgentsView-DbwgaD0B.js +0 -1
  346. package/dist/assets/SettingsAiGatewayView-C_VGCg05.js +0 -1
  347. package/dist/assets/SettingsApiView-bGsviSfM.js +0 -1
  348. package/dist/assets/SettingsChatHubView-DWXcRUyZ.js +0 -1
  349. package/dist/assets/SettingsCommunityNodesView-BygQRfp9.js +0 -1
  350. package/dist/assets/SettingsContextView-CSoKM9i7.js +0 -1
  351. package/dist/assets/SettingsEncryptionKeys-Bf2aDd8L.js +0 -1
  352. package/dist/assets/SettingsInstanceAiView-DcH482wW.js +0 -1
  353. package/dist/assets/SettingsLogStreamingView-BGHUz08I.js +0 -1
  354. package/dist/assets/SettingsMCPClientsView-BsGOvwiK.js +0 -1
  355. package/dist/assets/SettingsMCPView-C9RPeF8h.js +0 -49
  356. package/dist/assets/SettingsOpenTelemetryView-BqCrq2L8.js +0 -1
  357. package/dist/assets/SettingsPreferencesView-CfU2XBQM.js +0 -1
  358. package/dist/assets/SettingsSecretsProviders.ee-idl-rSyY.js +0 -1
  359. package/dist/assets/SettingsSourceControl-CsZpvdgn.js +0 -1
  360. package/dist/assets/SettingsSso-CmxREW22.js +0 -3
  361. package/dist/assets/SettingsUsageAndPlan-cZAgoFxH.js +0 -1
  362. package/dist/assets/SettingsUsersView-phRMlJn2.js +0 -1
  363. package/dist/assets/SetupWorkflowFromTemplateView-Cfz0GI8G.js +0 -1
  364. package/dist/assets/TemplatesSearchView-DywPuZ8B.js +0 -1
  365. package/dist/assets/ToolsConnectionModal-GO6CtviA.js +0 -1
  366. package/dist/assets/ToolsManagerModal-7O0PmUky.js +0 -1
  367. package/dist/assets/ToolsManagerModal-BBtxVyqf.css +0 -1
  368. package/dist/assets/WorkflowExecutionsPreview-8CCXuvHm.js +0 -1
  369. package/dist/assets/WorkflowExecutionsView-BNVNsc4l.js +0 -1
  370. package/dist/assets/WorkflowHistory-LSBYE70d.js +0 -1
  371. package/dist/assets/WorkflowLayout-YAsI30Mu.js +0 -1
  372. package/dist/assets/WorkflowPreviewHost-DlcsDVjd.js +0 -1
  373. package/dist/assets/WorkflowReviewRequestsView-CkGP67Nh.js +0 -1
  374. package/dist/assets/WorkflowsView-QHCalPMm.js +0 -1
  375. package/dist/assets/auth.eventBus-BiT21sNh.js +0 -1
  376. package/dist/assets/en-CZa6nWyp.js +0 -1
  377. package/dist/assets/expression-runtime-stub-CZEaiKJ2.js +0 -1
  378. package/dist/assets/promotions.eventBus-BmbL1egL.js +0 -1
  379. package/dist/assets/surfaceMcpToNewCloudUsers.store-hfZ6NG3H.js +0 -1
  380. package/dist/assets/useExecutionDebugging-2gYSGTYf.js +0 -2
  381. package/dist/assets/useIsAssistantAtMentionsEnabled-C3pI9Svj.js +0 -1
  382. package/dist/assets/usePushConnection-BBYO5DZH.js +0 -1
  383. package/dist/assets/useRestrictedNodeWarning--oK4c8Zo.js +0 -1
  384. package/dist/assets/useWorkflowEvaluationState-BEPajZUK.js +0 -1
  385. package/dist/assets/useWorkflowInitialization-oZ6rOoYV.js +0 -1
  386. package/dist/assets/useWorkflowsEmptyState-BBQ-kG2-.js +0 -1
@@ -0,0 +1,3 @@
1
+ try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`db769e36-d296-4e36-940e-98f20b5f71ff`,e._sentryDebugIdIdentifier=`sentry-dbid-db769e36-d296-4e36-940e-98f20b5f71ff`)})()}catch{}import{o as e,t}from"./rolldown-runtime-BobR2NKB.js";import{Fd as n,Gs as r,Id as i,Ld as a,Pd as o,Rd as s,Vf as c,Wd as l,cf as u,cp as d,jd as f,lf as p,of as m,pp as h,xf as g}from"./vendor-DS7UZyZ6.js";import{AC as _,AT as v,ET as y,FT as b,Gr as x,Kr as ee,Pr as te,bT as S}from"./app-oLfukFT9.js";var ne=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=class extends Error{},n=class extends t{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},r=class extends t{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},i=class extends t{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},a=class extends t{},o=class extends t{constructor(e){super(`Invalid unit ${e}`)}},s=class extends t{},c=class extends t{constructor(){super(`Zone is an abstract class`)}},l=`numeric`,u=`short`,d=`long`,f={year:l,month:l,day:l},p={year:l,month:u,day:l},m={year:l,month:u,day:l,weekday:u},h={year:l,month:d,day:l},g={year:l,month:d,day:l,weekday:d},_={hour:l,minute:l},v={hour:l,minute:l,second:l},y={hour:l,minute:l,second:l,timeZoneName:u},b={hour:l,minute:l,second:l,timeZoneName:d},x={hour:l,minute:l,hourCycle:`h23`},ee={hour:l,minute:l,second:l,hourCycle:`h23`},te={hour:l,minute:l,second:l,hourCycle:`h23`,timeZoneName:u},S={hour:l,minute:l,second:l,hourCycle:`h23`,timeZoneName:d},ne={year:l,month:l,day:l,hour:l,minute:l},re={year:l,month:l,day:l,hour:l,minute:l,second:l},ie={year:l,month:u,day:l,hour:l,minute:l},ae={year:l,month:u,day:l,hour:l,minute:l,second:l},oe={year:l,month:u,day:l,weekday:u,hour:l,minute:l},se={year:l,month:d,day:l,hour:l,minute:l,timeZoneName:u},ce={year:l,month:d,day:l,hour:l,minute:l,second:l,timeZoneName:u},le={year:l,month:d,day:l,weekday:d,hour:l,minute:l,timeZoneName:d},ue={year:l,month:d,day:l,weekday:d,hour:l,minute:l,second:l,timeZoneName:d},C=class{get type(){throw new c}get name(){throw new c}get ianaName(){return this.name}get isUniversal(){throw new c}offsetName(e,t){throw new c}formatOffset(e,t){throw new c}offset(e){throw new c}equals(e){throw new c}get isValid(){throw new c}},de=null,w=class e extends C{static get instance(){return de===null&&(de=new e),de}get type(){return`system`}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return It(e,t,n)}formatOffset(e,t){return Bt(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type===`system`}get isValid(){return!0}},T=new Map;function fe(e){let t=T.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:e,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,era:`short`}),T.set(e,t)),t}var pe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function me(e,t){let n=e.format(t).replace(/\u200E/g,``),[,r,i,a,o,s,c,l]=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n);return[a,r,i,o,s,c,l]}function he(e,t){let n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){let{type:t,value:i}=n[e],a=pe[t];t===`era`?r[a]=i:P(a)||(r[a]=parseInt(i,10))}return r}var ge=new Map,E=class e extends C{static create(t){let n=ge.get(t);return n===void 0&&ge.set(t,n=new e(t)),n}static resetCache(){ge.clear(),T.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:e}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return`iana`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return It(e,t,n,this.name)}formatOffset(e,t){return Bt(this.offset(e),t)}offset(e){if(!this.valid)return NaN;let t=new Date(e);if(isNaN(t))return NaN;let n=fe(this.name),[r,i,a,o,s,c,l]=n.formatToParts?he(n,t):me(n,t);o===`BC`&&(r=-Math.abs(r)+1);let u=Mt({year:r,month:i,day:a,hour:s===24?0:s,minute:c,second:l,millisecond:0}),d=+t,f=d%1e3;return d-=f>=0?f:1e3+f,(u-d)/(60*1e3)}equals(e){return e.type===`iana`&&e.name===this.name}get isValid(){return this.valid}},_e={};function ve(e,t={}){let n=JSON.stringify([e,t]),r=_e[n];return r||(r=new Intl.ListFormat(e,t),_e[n]=r),r}var ye=new Map;function be(e,t={}){let n=JSON.stringify([e,t]),r=ye.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),ye.set(n,r)),r}var xe=new Map;function Se(e,t={}){let n=JSON.stringify([e,t]),r=xe.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),xe.set(n,r)),r}var Ce=new Map;function we(e,t={}){let{base:n,...r}=t,i=JSON.stringify([e,r]),a=Ce.get(i);return a===void 0&&(a=new Intl.RelativeTimeFormat(e,t),Ce.set(i,a)),a}var Te=null;function Ee(){return Te||(Te=new Intl.DateTimeFormat().resolvedOptions().locale,Te)}var De=new Map;function Oe(e){let t=De.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),De.set(e,t)),t}var ke=new Map;function Ae(e){let t=ke.get(e);if(!t){let n=new Intl.Locale(e);t=`getWeekInfo`in n?n.getWeekInfo():n.weekInfo,`minimalDays`in t||(t={...Be,...t}),ke.set(e,t)}return t}function je(e){let t=e.indexOf(`-x-`);t!==-1&&(e=e.substring(0,t));let n=e.indexOf(`-u-`);if(n===-1)return[e];{let t,r;try{t=be(e).resolvedOptions(),r=e}catch{let i=e.substring(0,n);t=be(i).resolvedOptions(),r=i}let{numberingSystem:i,calendar:a}=t;return[r,i,a]}}function Me(e,t,n){return n||t?(e.includes(`-u-`)||(e+=`-u`),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}function Ne(e){let t=[];for(let n=1;n<=12;n++){let r=$.utc(2009,n,1);t.push(e(r))}return t}function Pe(e){let t=[];for(let n=1;n<=7;n++){let r=$.utc(2016,11,13+n);t.push(e(r))}return t}function Fe(e,t,n,r){let i=e.listingMode();return i===`error`?null:i===`en`?n(t):r(t)}function Ie(e){return e.numberingSystem&&e.numberingSystem!==`latn`?!1:e.numberingSystem===`latn`||!e.locale||e.locale.startsWith(`en`)||Oe(e.locale).numberingSystem===`latn`}var Le=class{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:r,floor:i,...a}=n;if(!t||Object.keys(a).length>0){let t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=Se(e,t)}}format(e){if(this.inf){let t=this.floor?Math.floor(e):e;return this.inf.format(t)}else return R(this.floor?Math.floor(e):kt(e,3),this.padTo)}},Re=class{constructor(e,t,n){this.opts=n,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type===`fixed`){let t=-1*(e.offset/60),n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;e.offset!==0&&E.create(n).valid?(r=n,this.dt=e):(r=`UTC`,this.dt=e.offset===0?e:e.setZone(`UTC`).plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type===`system`?this.dt=e:e.zone.type===`iana`?(this.dt=e,r=e.zone.name):(r=`UTC`,this.dt=e.setZone(`UTC`).plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=be(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(``):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if(e.type===`timeZoneName`){let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},ze=class{constructor(e,t,n){this.opts={style:`long`,...n},!t&&xt()&&(this.rtf=we(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):on(t,e,this.opts.numeric,this.opts.style!==`long`)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}},Be={firstDay:1,minimalDays:4,weekend:[6,7]},D=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,i,a=!1){let o=t||j.defaultLocale;return new e(o||(a?`en-US`:Ee()),n||j.defaultNumberingSystem,r||j.defaultOutputCalendar,Et(i)||j.defaultWeekSettings,o)}static resetCache(){Te=null,ye.clear(),xe.clear(),Ce.clear(),De.clear(),ke.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return e.create(t,n,r,i)}constructor(e,t,n,r,i){let[a,o,s]=je(e);this.locale=a,this.numberingSystem=t||o||null,this.outputCalendar=n||s||null,this.weekSettings=r,this.intl=Me(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached??=Ie(this),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem===`latn`)&&(this.outputCalendar===null||this.outputCalendar===`gregory`);return e&&t?`en`:`intl`}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,Et(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Fe(this,e,Gt,()=>{let n=this.intl===`ja`||this.intl.startsWith(`ja-`);t&=!n;let r=t?{month:e,day:`numeric`}:{month:e},i=t?`format`:`standalone`;if(!this.monthsCache[i][e]){let t=n?e=>this.dtFormatter(e,r).format():e=>this.extract(e,r,`month`);this.monthsCache[i][e]=Ne(t)}return this.monthsCache[i][e]})}weekdays(e,t=!1){return Fe(this,e,Yt,()=>{let n=t?{weekday:e,year:`numeric`,month:`long`,day:`numeric`}:{weekday:e},r=t?`format`:`standalone`;return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=Pe(e=>this.extract(e,n,`weekday`))),this.weekdaysCache[r][e]})}meridiems(){return Fe(this,void 0,()=>Xt,()=>{if(!this.meridiemCache){let e={hour:`numeric`,hourCycle:`h12`};this.meridiemCache=[$.utc(2016,11,13,9),$.utc(2016,11,13,19)].map(t=>this.extract(t,e,`dayperiod`))}return this.meridiemCache})}eras(e){return Fe(this,e,en,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[$.utc(-40,1,1),$.utc(2017,1,1)].map(e=>this.extract(e,t,`era`))),this.eraCache[e]})}extract(e,t,n){let r=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return r?r.value:null}numberFormatter(e={}){return new Le(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Re(e,this.intl,t)}relFormatter(e={}){return new ze(this.intl,this.isEnglish(),e)}listFormatter(e={}){return ve(this.intl,e)}isEnglish(){return this.locale===`en`||this.locale.toLowerCase()===`en-us`||Oe(this.intl).locale.startsWith(`en-us`)}getWeekSettings(){return this.weekSettings?this.weekSettings:St()?Ae(this.locale):Be}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},Ve=null,O=class e extends C{static get utcInstance(){return Ve===null&&(Ve=new e(0)),Ve}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(Lt(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return`fixed`}get name(){return this.fixed===0?`UTC`:`UTC${Bt(this.fixed,`narrow`)}`}get ianaName(){return this.fixed===0?`Etc/UTC`:`Etc/GMT${Bt(-this.fixed,`narrow`)}`}offsetName(){return this.name}formatOffset(e,t){return Bt(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type===`fixed`&&e.fixed===this.fixed}get isValid(){return!0}},He=class extends C{constructor(e){super(),this.zoneName=e}get type(){return`invalid`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return``}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function k(e,t){if(P(e)||e===null)return t;if(e instanceof C)return e;if(yt(e)){let n=e.toLowerCase();return n===`default`?t:n===`local`||n===`system`?w.instance:n===`utc`||n===`gmt`?O.utcInstance:O.parseSpecifier(n)||E.create(e)}else if(F(e))return O.instance(e);else if(typeof e==`object`&&`offset`in e&&typeof e.offset==`function`)return e;else return new He(e)}var Ue={arab:`[٠-٩]`,arabext:`[۰-۹]`,bali:`[᭐-᭙]`,beng:`[০-৯]`,deva:`[०-९]`,fullwide:`[0-9]`,gujr:`[૦-૯]`,hanidec:`[〇|一|二|三|四|五|六|七|八|九]`,khmr:`[០-៩]`,knda:`[೦-೯]`,laoo:`[໐-໙]`,limb:`[᥆-᥏]`,mlym:`[൦-൯]`,mong:`[᠐-᠙]`,mymr:`[၀-၉]`,orya:`[୦-୯]`,tamldec:`[௦-௯]`,telu:`[౦-౯]`,thai:`[๐-๙]`,tibt:`[༠-༩]`,latn:`\\d`},We={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Ge=Ue.hanidec.replace(/[\[|\]]/g,``).split(``);function Ke(e){let t=parseInt(e,10);if(isNaN(t)){t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(e[n].search(Ue.hanidec)!==-1)t+=Ge.indexOf(e[n]);else for(let e in We){let[n,i]=We[e];r>=n&&r<=i&&(t+=r-n)}}return parseInt(t,10)}else return t}var qe=new Map;function Je(){qe.clear()}function A({numberingSystem:e},t=``){let n=e||`latn`,r=qe.get(n);r===void 0&&(r=new Map,qe.set(n,r));let i=r.get(t);return i===void 0&&(i=RegExp(`${Ue[n]}${t}`),r.set(t,i)),i}var Ye=()=>Date.now(),Xe=`system`,Ze=null,Qe=null,$e=null,et=60,tt,nt=null,j=class{static get now(){return Ye}static set now(e){Ye=e}static set defaultZone(e){Xe=e}static get defaultZone(){return k(Xe,w.instance)}static get defaultLocale(){return Ze}static set defaultLocale(e){Ze=e}static get defaultNumberingSystem(){return Qe}static set defaultNumberingSystem(e){Qe=e}static get defaultOutputCalendar(){return $e}static set defaultOutputCalendar(e){$e=e}static get defaultWeekSettings(){return nt}static set defaultWeekSettings(e){nt=Et(e)}static get twoDigitCutoffYear(){return et}static set twoDigitCutoffYear(e){et=e%100}static get throwOnInvalid(){return tt}static set throwOnInvalid(e){tt=e}static resetCaches(){D.resetCache(),E.resetCache(),$.resetCache(),Je()}},M=class{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},rt=[0,31,59,90,120,151,181,212,243,273,304,334],it=[0,31,60,91,121,152,182,213,244,274,305,335];function N(e,t){return new M(`unit out of range`,`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function at(e,t,n){let r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);let i=r.getUTCDay();return i===0?7:i}function ot(e,t,n){return n+(At(e)?it:rt)[t-1]}function st(e,t){let n=At(e)?it:rt,r=n.findIndex(e=>e<t),i=t-n[r];return{month:r+1,day:i}}function ct(e,t){return(e-t+7)%7+1}function lt(e,t=4,n=1){let{year:r,month:i,day:a}=e,o=ot(r,i,a),s=ct(at(r,i,a),n),c=Math.floor((o-s+14-t)/7),l;return c<1?(l=r-1,c=Pt(l,t,n)):c>Pt(r,t,n)?(l=r+1,c=1):l=r,{weekYear:l,weekNumber:c,weekday:s,...Vt(e)}}function ut(e,t=4,n=1){let{weekYear:r,weekNumber:i,weekday:a}=e,o=ct(at(r,1,t),n),s=V(r),c=i*7+a-o-7+t,l;c<1?(l=r-1,c+=V(l)):c>s?(l=r+1,c-=V(r)):l=r;let{month:u,day:d}=st(l,c);return{year:l,month:u,day:d,...Vt(e)}}function dt(e){let{year:t,month:n,day:r}=e;return{year:t,ordinal:ot(t,n,r),...Vt(e)}}function ft(e){let{year:t,ordinal:n}=e,{month:r,day:i}=st(t,n);return{year:t,month:r,day:i,...Vt(e)}}function pt(e,t){if(!P(e.localWeekday)||!P(e.localWeekNumber)||!P(e.localWeekYear)){if(!P(e.weekday)||!P(e.weekNumber)||!P(e.weekYear))throw new a(`Cannot mix locale-based week fields with ISO-based week fields`);return P(e.localWeekday)||(e.weekday=e.localWeekday),P(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),P(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function mt(e,t=4,n=1){let r=vt(e.weekYear),i=L(e.weekNumber,1,Pt(e.weekYear,t,n)),a=L(e.weekday,1,7);return r?i?a?!1:N(`weekday`,e.weekday):N(`week`,e.weekNumber):N(`weekYear`,e.weekYear)}function ht(e){let t=vt(e.year),n=L(e.ordinal,1,V(e.year));return t?n?!1:N(`ordinal`,e.ordinal):N(`year`,e.year)}function gt(e){let t=vt(e.year),n=L(e.month,1,12),r=L(e.day,1,jt(e.year,e.month));return t?n?r?!1:N(`day`,e.day):N(`month`,e.month):N(`year`,e.year)}function _t(e){let{hour:t,minute:n,second:r,millisecond:i}=e,a=L(t,0,23)||t===24&&n===0&&r===0&&i===0,o=L(n,0,59),s=L(r,0,59),c=L(i,0,999);return a?o?s?c?!1:N(`millisecond`,i):N(`second`,r):N(`minute`,n):N(`hour`,t)}function P(e){return e===void 0}function F(e){return typeof e==`number`}function vt(e){return typeof e==`number`&&e%1==0}function yt(e){return typeof e==`string`}function bt(e){return Object.prototype.toString.call(e)===`[object Date]`}function xt(){try{return typeof Intl<`u`&&!!Intl.RelativeTimeFormat}catch{return!1}}function St(){try{return typeof Intl<`u`&&!!Intl.Locale&&(`weekInfo`in Intl.Locale.prototype||`getWeekInfo`in Intl.Locale.prototype)}catch{return!1}}function Ct(e){return Array.isArray(e)?e:[e]}function wt(e,t,n){if(e.length!==0)return e.reduce((e,r)=>{let i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function Tt(e,t){return t.reduce((t,n)=>(t[n]=e[n],t),{})}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Et(e){if(e==null)return null;if(typeof e!=`object`)throw new s(`Week settings must be an object`);if(!L(e.firstDay,1,7)||!L(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!L(e,1,7)))throw new s(`Invalid week settings`);return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function L(e,t,n){return vt(e)&&e>=t&&e<=n}function Dt(e,t){return e-t*Math.floor(e/t)}function R(e,t=2){let n=e<0,r;return r=n?`-`+(``+-e).padStart(t,`0`):(``+e).padStart(t,`0`),r}function z(e){if(!(P(e)||e===null||e===``))return parseInt(e,10)}function B(e){if(!(P(e)||e===null||e===``))return parseFloat(e)}function Ot(e){if(!(P(e)||e===null||e===``)){let t=parseFloat(`0.`+e)*1e3;return Math.floor(t)}}function kt(e,t,n=`round`){let r=10**t;switch(n){case`expand`:return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case`trunc`:return Math.trunc(e*r)/r;case`round`:return Math.round(e*r)/r;case`floor`:return Math.floor(e*r)/r;case`ceil`:return Math.ceil(e*r)/r;default:throw RangeError(`Value rounding ${n} is out of range`)}}function At(e){return e%4==0&&(e%100!=0||e%400==0)}function V(e){return At(e)?366:365}function jt(e,t){let n=Dt(t-1,12)+1,r=e+(t-n)/12;return n===2?At(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Mt(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Nt(e,t,n){return-ct(at(e,1,t),n)+t-1}function Pt(e,t=4,n=1){let r=Nt(e,t,n),i=Nt(e+1,t,n);return(V(e)-r+i)/7}function Ft(e){return e>99?e:e>j.twoDigitCutoffYear?1900+e:2e3+e}function It(e,t,n,r=null){let i=new Date(e),a={hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`};r&&(a.timeZone=r);let o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(n,o).formatToParts(i).find(e=>e.type.toLowerCase()===`timezonename`);return s?s.value:null}function Lt(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);let r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function Rt(e){let t=Number(e);if(typeof e==`boolean`||e===``||!Number.isFinite(t))throw new s(`Invalid unit value ${e}`);return t}function zt(e,t){let n={};for(let r in e)if(I(e,r)){let i=e[r];if(i==null)continue;n[t(r)]=Rt(i)}return n}function Bt(e,t){let n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?`+`:`-`;switch(t){case`short`:return`${i}${R(n,2)}:${R(r,2)}`;case`narrow`:return`${i}${n}${r>0?`:${r}`:``}`;case`techie`:return`${i}${R(n,2)}${R(r,2)}`;default:throw RangeError(`Value format ${t} is out of range for property format`)}}function Vt(e){return Tt(e,[`hour`,`minute`,`second`,`millisecond`])}var Ht=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Ut=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],Wt=[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`];function Gt(e){switch(e){case`narrow`:return[...Wt];case`short`:return[...Ut];case`long`:return[...Ht];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`];case`2-digit`:return[`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`,`12`];default:return null}}var Kt=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],qt=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],Jt=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function Yt(e){switch(e){case`narrow`:return[...Jt];case`short`:return[...qt];case`long`:return[...Kt];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`];default:return null}}var Xt=[`AM`,`PM`],Zt=[`Before Christ`,`Anno Domini`],Qt=[`BC`,`AD`],$t=[`B`,`A`];function en(e){switch(e){case`narrow`:return[...$t];case`short`:return[...Qt];case`long`:return[...Zt];default:return null}}function tn(e){return Xt[e.hour<12?0:1]}function nn(e,t){return Yt(t)[e.weekday-1]}function rn(e,t){return Gt(t)[e.month-1]}function an(e,t){return en(t)[e.year<0?0:1]}function on(e,t,n=`always`,r=!1){let i={years:[`year`,`yr.`],quarters:[`quarter`,`qtr.`],months:[`month`,`mo.`],weeks:[`week`,`wk.`],days:[`day`,`day`,`days`],hours:[`hour`,`hr.`],minutes:[`minute`,`min.`],seconds:[`second`,`sec.`]},a=[`hours`,`minutes`,`seconds`].indexOf(e)===-1;if(n===`auto`&&a){let n=e===`days`;switch(t){case 1:return n?`tomorrow`:`next ${i[e][0]}`;case-1:return n?`yesterday`:`last ${i[e][0]}`;case 0:return n?`today`:`this ${i[e][0]}`}}let o=Object.is(t,-0)||t<0,s=Math.abs(t),c=s===1,l=i[e],u=r?c?l[1]:l[2]||l[1]:c?i[e][0]:e;return o?`${s} ${u} ago`:`in ${s} ${u}`}function sn(e,t){let n=``;for(let r of e)r.literal?n+=r.val:n+=t(r.val);return n}var cn={D:f,DD:p,DDD:h,DDDD:g,t:_,tt:v,ttt:y,tttt:b,T:x,TT:ee,TTT:te,TTTT:S,f:ne,ff:ie,fff:se,ffff:le,F:re,FF:ae,FFF:ce,FFFF:ue},H=class e{static create(t,n={}){return new e(t,n)}static parseFormat(e){let t=null,n=``,r=!1,i=[];for(let a=0;a<e.length;a++){let o=e.charAt(a);o===`'`?((n.length>0||r)&&i.push({literal:r||/^\s+$/.test(n),val:n===``?`'`:n}),t=null,n=``,r=!r):r||o===t?n+=o:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=o,t=o)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return cn[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return R(e,t);let r={...this.opts};return t>0&&(r.padTo=t),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(t,n){let r=this.loc.listingMode()===`en`,i=this.loc.outputCalendar&&this.loc.outputCalendar!==`gregory`,a=(e,n)=>this.loc.extract(t,e,n),o=e=>t.isOffsetFixed&&t.offset===0&&e.allowZ?`Z`:t.isValid?t.zone.formatOffset(t.ts,e.format):``,s=()=>r?tn(t):a({hour:`numeric`,hourCycle:`h12`},`dayperiod`),c=(e,n)=>r?rn(t,e):a(n?{month:e}:{month:e,day:`numeric`},`month`),l=(e,n)=>r?nn(t,e):a(n?{weekday:e}:{weekday:e,month:`long`,day:`numeric`},`weekday`),u=n=>{let r=e.macroTokenToFormatOpts(n);return r?this.formatWithSystemDefault(t,r):n},d=e=>r?an(t,e):a({era:e},`era`);return sn(e.parseFormat(n),e=>{switch(e){case`S`:return this.num(t.millisecond);case`u`:case`SSS`:return this.num(t.millisecond,3);case`s`:return this.num(t.second);case`ss`:return this.num(t.second,2);case`uu`:return this.num(Math.floor(t.millisecond/10),2);case`uuu`:return this.num(Math.floor(t.millisecond/100));case`m`:return this.num(t.minute);case`mm`:return this.num(t.minute,2);case`h`:return this.num(t.hour%12==0?12:t.hour%12);case`hh`:return this.num(t.hour%12==0?12:t.hour%12,2);case`H`:return this.num(t.hour);case`HH`:return this.num(t.hour,2);case`Z`:return o({format:`narrow`,allowZ:this.opts.allowZ});case`ZZ`:return o({format:`short`,allowZ:this.opts.allowZ});case`ZZZ`:return o({format:`techie`,allowZ:this.opts.allowZ});case`ZZZZ`:return t.zone.offsetName(t.ts,{format:`short`,locale:this.loc.locale});case`ZZZZZ`:return t.zone.offsetName(t.ts,{format:`long`,locale:this.loc.locale});case`z`:return t.zoneName;case`a`:return s();case`d`:return i?a({day:`numeric`},`day`):this.num(t.day);case`dd`:return i?a({day:`2-digit`},`day`):this.num(t.day,2);case`c`:return this.num(t.weekday);case`ccc`:return l(`short`,!0);case`cccc`:return l(`long`,!0);case`ccccc`:return l(`narrow`,!0);case`E`:return this.num(t.weekday);case`EEE`:return l(`short`,!1);case`EEEE`:return l(`long`,!1);case`EEEEE`:return l(`narrow`,!1);case`L`:return i?a({month:`numeric`,day:`numeric`},`month`):this.num(t.month);case`LL`:return i?a({month:`2-digit`,day:`numeric`},`month`):this.num(t.month,2);case`LLL`:return c(`short`,!0);case`LLLL`:return c(`long`,!0);case`LLLLL`:return c(`narrow`,!0);case`M`:return i?a({month:`numeric`},`month`):this.num(t.month);case`MM`:return i?a({month:`2-digit`},`month`):this.num(t.month,2);case`MMM`:return c(`short`,!1);case`MMMM`:return c(`long`,!1);case`MMMMM`:return c(`narrow`,!1);case`y`:return i?a({year:`numeric`},`year`):this.num(t.year);case`yy`:return i?a({year:`2-digit`},`year`):this.num(t.year.toString().slice(-2),2);case`yyyy`:return i?a({year:`numeric`},`year`):this.num(t.year,4);case`yyyyyy`:return i?a({year:`numeric`},`year`):this.num(t.year,6);case`G`:return d(`short`);case`GG`:return d(`long`);case`GGGGG`:return d(`narrow`);case`kk`:return this.num(t.weekYear.toString().slice(-2),2);case`kkkk`:return this.num(t.weekYear,4);case`W`:return this.num(t.weekNumber);case`WW`:return this.num(t.weekNumber,2);case`n`:return this.num(t.localWeekNumber);case`nn`:return this.num(t.localWeekNumber,2);case`ii`:return this.num(t.localWeekYear.toString().slice(-2),2);case`iiii`:return this.num(t.localWeekYear,4);case`o`:return this.num(t.ordinal);case`ooo`:return this.num(t.ordinal,3);case`q`:return this.num(t.quarter);case`qq`:return this.num(t.quarter,2);case`X`:return this.num(Math.floor(t.ts/1e3));case`x`:return this.num(t.ts);default:return u(e)}})}formatDurationFromString(t,n){let r=this.opts.signMode===`negativeLargestOnly`?-1:1,i=e=>{switch(e[0]){case`S`:return`milliseconds`;case`s`:return`seconds`;case`m`:return`minutes`;case`h`:return`hours`;case`d`:return`days`;case`w`:return`weeks`;case`M`:return`months`;case`y`:return`years`;default:return null}},a=(e,t)=>n=>{let a=i(n);if(a){let i=t.isNegativeDuration&&a!==t.largestUnit?r:1,o;return o=this.opts.signMode===`negativeLargestOnly`&&a!==t.largestUnit?`never`:this.opts.signMode===`all`?`always`:`auto`,this.num(e.get(a)*i,n.length,o)}else return n},o=e.parseFormat(n),s=o.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]),c=t.shiftTo(...s.map(i).filter(e=>e));return sn(o,a(c,{isNegativeDuration:c<0,largestUnit:Object.keys(c.values)[0]}))}},ln=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function U(...e){let t=e.reduce((e,t)=>e+t.source,``);return RegExp(`^${t}$`)}function W(...e){return t=>e.reduce(([e,n,r],i)=>{let[a,o,s]=i(t,r);return[{...e,...a},o||n,s]},[{},null,1]).slice(0,2)}function G(e,...t){if(e==null)return[null,null];for(let[n,r]of t){let t=n.exec(e);if(t)return r(t)}return[null,null]}function un(...e){return(t,n)=>{let r={},i;for(i=0;i<e.length;i++)r[e[i]]=z(t[n+i]);return[r,null,n+i]}}var dn=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,fn=`(?:${dn.source}?(?:\\[(${ln.source})\\])?)?`,pn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,mn=RegExp(`${pn.source}${fn}`),hn=RegExp(`(?:[Tt]${mn.source})?`),gn=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,_n=/(\d{4})-?W(\d\d)(?:-?(\d))?/,vn=/(\d{4})-?(\d{3})/,yn=un(`weekYear`,`weekNumber`,`weekDay`),bn=un(`year`,`ordinal`),xn=/(\d{4})-(\d\d)-(\d\d)/,Sn=RegExp(`${pn.source} ?(?:${dn.source}|(${ln.source}))?`),Cn=RegExp(`(?: ${Sn.source})?`);function wn(e,t,n){let r=e[t];return P(r)?n:z(r)}function Tn(e,t){return[{year:wn(e,t),month:wn(e,t+1,1),day:wn(e,t+2,1)},null,t+3]}function En(e,t){return[{hours:wn(e,t,0),minutes:wn(e,t+1,0),seconds:wn(e,t+2,0),milliseconds:Ot(e[t+3])},null,t+4]}function Dn(e,t){let n=!e[t]&&!e[t+1],r=Lt(e[t+1],e[t+2]);return[{},n?null:O.instance(r),t+3]}function On(e,t){return[{},e[t]?E.create(e[t]):null,t+1]}var kn=RegExp(`^T?${pn.source}$`),An=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function jn(e){let[t,n,r,i,a,o,s,c,l]=e,u=t[0]===`-`,d=c&&c[0]===`-`,f=(e,t=!1)=>e!==void 0&&(t||e&&u)?-e:e;return[{years:f(B(n)),months:f(B(r)),weeks:f(B(i)),days:f(B(a)),hours:f(B(o)),minutes:f(B(s)),seconds:f(B(c),c===`-0`),milliseconds:f(Ot(l),d)}]}var Mn={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Nn(e,t,n,r,i,a,o){let s={year:t.length===2?Ft(z(t)):z(t),month:Ut.indexOf(n)+1,day:z(r),hour:z(i),minute:z(a)};return o&&(s.second=z(o)),e&&(s.weekday=e.length>3?Kt.indexOf(e)+1:qt.indexOf(e)+1),s}var Pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Fn(e){let[,t,n,r,i,a,o,s,c,l,u,d]=e,f=Nn(t,i,r,n,a,o,s),p;return p=c?Mn[c]:l?0:Lt(u,d),[f,new O(p)]}function In(e){return e.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).trim()}var Ln=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Rn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,zn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Bn(e){let[,t,n,r,i,a,o,s]=e;return[Nn(t,i,r,n,a,o,s),O.utcInstance]}function Vn(e){let[,t,n,r,i,a,o,s]=e;return[Nn(t,s,n,r,i,a,o),O.utcInstance]}var Hn=U(gn,hn),Un=U(_n,hn),Wn=U(vn,hn),Gn=U(mn),Kn=W(Tn,En,Dn,On),qn=W(yn,En,Dn,On),Jn=W(bn,En,Dn,On),Yn=W(En,Dn,On);function Xn(e){return G(e,[Hn,Kn],[Un,qn],[Wn,Jn],[Gn,Yn])}function Zn(e){return G(In(e),[Pn,Fn])}function Qn(e){return G(e,[Ln,Bn],[Rn,Bn],[zn,Vn])}function $n(e){return G(e,[An,jn])}var er=W(En);function tr(e){return G(e,[kn,er])}var nr=U(xn,Cn),rr=U(Sn),ir=W(En,Dn,On);function ar(e){return G(e,[nr,Kn],[rr,ir])}var or=`Invalid Duration`,sr={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},cr={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...sr},K=146097/400,lr=146097/4800,ur={years:{quarters:4,months:12,weeks:K/7,days:K,hours:K*24,minutes:K*24*60,seconds:K*24*60*60,milliseconds:K*24*60*60*1e3},quarters:{months:3,weeks:K/28,days:K/4,hours:K*24/4,minutes:K*24*60/4,seconds:K*24*60*60/4,milliseconds:K*24*60*60*1e3/4},months:{weeks:lr/7,days:lr,hours:lr*24,minutes:lr*24*60,seconds:lr*24*60*60,milliseconds:lr*24*60*60*1e3},...sr},q=[`years`,`quarters`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`],dr=q.slice(0).reverse();function J(e,t,n=!1){return new Y({values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix})}function fr(e,t){let n=t.milliseconds??0;for(let r of dr.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function pr(e,t){let n=fr(e,t)<0?-1:1;q.reduceRight((r,i)=>{if(P(t[i]))return r;if(r){let a=t[r]*n,o=e[i][r],s=Math.floor(a/o);t[i]+=s*n,t[r]-=s*o*n}return i},null),q.reduce((n,r)=>{if(P(t[r]))return n;if(n){let i=t[n]%1;t[n]-=i,t[r]+=i*e[n][r]}return r},null)}function mr(e){let t={};for(let[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}var Y=class e{constructor(e){let t=e.conversionAccuracy===`longterm`||!1,n=t?ur:cr;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||D.create(),this.conversionAccuracy=t?`longterm`:`casual`,this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,n){return e.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(typeof t!=`object`||!t)throw new s(`Duration.fromObject: argument expected to be an object, got ${t===null?`null`:typeof t}`);return new e({values:zt(t,e.normalizeUnit),loc:D.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(F(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t==`object`)return e.fromObject(t);throw new s(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){let[r]=$n(t);return r?e.fromObject(r,n):e.invalid(`unparsable`,`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){let[r]=tr(t);return r?e.fromObject(r,n):e.invalid(`unparsable`,`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new s(`need to specify a reason the Duration is invalid`);let r=t instanceof M?t:new M(t,n);if(j.throwOnInvalid)throw new i(r);return new e({invalid:r})}static normalizeUnit(e){let t={year:`years`,years:`years`,quarter:`quarters`,quarters:`quarters`,month:`months`,months:`months`,week:`weeks`,weeks:`weeks`,day:`days`,days:`days`,hour:`hours`,hours:`hours`,minute:`minutes`,minutes:`minutes`,second:`seconds`,seconds:`seconds`,millisecond:`milliseconds`,milliseconds:`milliseconds`}[e&&e.toLowerCase()];if(!t)throw new o(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){let n={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?H.create(this.loc,n).formatDurationFromString(this,e):or}toHuman(e={}){if(!this.isValid)return or;let t=e.showZeros!==!1,n=q.map(n=>{let r=this.values[n];return P(r)||r===0&&!t?null:this.loc.numberFormatter({style:`unit`,unitDisplay:`long`,...e,unit:n.slice(0,-1)}).format(r)}).filter(e=>e);return this.loc.listFormatter({type:`conjunction`,style:e.listStyle||`narrow`,...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e=`P`;return this.years!==0&&(e+=this.years+`Y`),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+`M`),this.weeks!==0&&(e+=this.weeks+`W`),this.days!==0&&(e+=this.days+`D`),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+=`T`),this.hours!==0&&(e+=this.hours+`H`),this.minutes!==0&&(e+=this.minutes+`M`),(this.seconds!==0||this.milliseconds!==0)&&(e+=kt(this.seconds+this.milliseconds/1e3,3)+`S`),e===`P`&&(e+=`T0S`),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:`extended`,...e,includeOffset:!1},$.fromMillis(t,{zone:`UTC`}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?fr(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t),r={};for(let e of q)(I(n.values,e)||I(this.values,e))&&(r[e]=n.get(e)+this.get(e));return J(this,{values:r},!0)}minus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=Rt(e(this.values[n],n));return J(this,{values:t},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let n={...this.values,...zt(t,e.normalizeUnit)};return J(this,{values:n})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){let i={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n};return J(this,i)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return pr(this.matrix,e),J(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=mr(this.normalize().shiftToAll().toObject());return J(this,{values:e},!0)}shiftTo(...t){if(!this.isValid||t.length===0)return this;t=t.map(t=>e.normalizeUnit(t));let n={},r={},i=this.toObject(),a;for(let e of q)if(t.indexOf(e)>=0){a=e;let t=0;for(let n in r)t+=this.matrix[n][e]*r[n],r[n]=0;F(i[e])&&(t+=i[e]);let o=Math.trunc(t);n[e]=o,r[e]=(t*1e3-o*1e3)/1e3}else F(i[e])&&(r[e]=i[e]);for(let e in r)r[e]!==0&&(n[a]+=e===a?r[e]:r[e]/this.matrix[a][e]);return pr(this.matrix,n),J(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo(`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return J(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=mr(this.values);return J(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(e,t){return e===void 0||e===0?t===void 0||t===0:e===t}for(let n of q)if(!t(this.values[n],e.values[n]))return!1;return!0}},hr=`Invalid Interval`;function gr(e,t){return!e||!e.isValid?_r.invalid(`missing or invalid start`):!t||!t.isValid?_r.invalid(`missing or invalid end`):t<e?_r.invalid(`end before start`,`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var _r=class e{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new s(`need to specify a reason the Interval is invalid`);let i=t instanceof M?t:new M(t,n);if(j.throwOnInvalid)throw new r(i);return new e({invalid:i})}static fromDateTimes(t,n){let r=_i(t),i=_i(n);return gr(r,i)??new e({start:r,end:i})}static after(t,n){let r=Y.fromDurationLike(n),i=_i(t);return e.fromDateTimes(i,i.plus(r))}static before(t,n){let r=Y.fromDurationLike(n),i=_i(t);return e.fromDateTimes(i.minus(r),i)}static fromISO(t,n){let[r,i]=(t||``).split(`/`,2);if(r&&i){let t,a;try{t=$.fromISO(r,n),a=t.isValid}catch{a=!1}let o,s;try{o=$.fromISO(i,n),s=o.isValid}catch{s=!1}if(a&&s)return e.fromDateTimes(t,o);if(a){let r=Y.fromISO(i,n);if(r.isValid)return e.after(t,r)}else if(s){let t=Y.fromISO(r,n);if(t.isValid)return e.before(o,t)}}return e.invalid(`unparsable`,`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e=`milliseconds`){return this.isValid?this.toDuration(e).get(e):NaN}count(e=`milliseconds`,t){if(!this.isValid)return NaN;let n=this.start.startOf(e,t),r;return r=t!=null&&t.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:t,end:n}={}){return this.isValid?e.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];let n=t.map(_i).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),r=[],{s:i}=this,a=0;for(;i<this.e;){let t=n[a]||this.e,o=+t>+this.e?this.e:t;r.push(e.fromDateTimes(i,o)),i=o,a+=1}return r}splitBy(t){let n=Y.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as(`milliseconds`)===0)return[];let{s:r}=this,i=1,a,o=[];for(;r<this.e;){let t=this.start.plus(n.mapUnits(e=>e*i));a=+t>+this.e?this.e:t,o.push(e.fromDateTimes(r,a)),r=a,i+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(t){if(!this.isValid)return this;let n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:e.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;let n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,r)}static merge(e){let[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(t){let n=null,r=0,i=[],a=t.map(e=>[{time:e.s,type:`s`},{time:e.e,type:`e`}]),o=Array.prototype.concat(...a).sort((e,t)=>e.time-t.time);for(let t of o)r+=t.type===`s`?1:-1,r===1?n=t.time:(n&&+n!=+t.time&&i.push(e.fromDateTimes(n,t.time)),n=null);return e.merge(i)}difference(...t){return e.xor([this].concat(t)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:hr}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=f,t={}){return this.isValid?H.create(this.s.loc.clone(t),e).formatInterval(this):hr}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:hr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:hr}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:hr}toFormat(e,{separator:t=` – `}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:hr}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Y.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}},vr=class{static hasDST(e=j.defaultZone){let t=$.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return E.isValidZone(e)}static normalizeZone(e){return k(e,j.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||D.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||D.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||D.create(e)).getWeekendDays().slice()}static months(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i=`gregory`}={}){return(r||D.create(t,n,i)).months(e)}static monthsFormat(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i=`gregory`}={}){return(r||D.create(t,n,i)).months(e,!0)}static weekdays(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||D.create(t,n,null)).weekdays(e)}static weekdaysFormat(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||D.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return D.create(e).meridiems()}static eras(e=`short`,{locale:t=null}={}){return D.create(t,null,`gregory`).eras(e)}static features(){return{relative:xt(),localeWeek:St()}}};function yr(e,t){let n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf(`day`).valueOf(),r=n(t)-n(e);return Math.floor(Y.fromMillis(r).as(`days`))}function br(e,t,n){let r=[[`years`,(e,t)=>t.year-e.year],[`quarters`,(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],[`months`,(e,t)=>t.month-e.month+(t.year-e.year)*12],[`weeks`,(e,t)=>{let n=yr(e,t);return(n-n%7)/7}],[`days`,yr]],i={},a=e,o,s;for(let[c,l]of r)n.indexOf(c)>=0&&(o=c,i[c]=l(e,t),s=a.plus(i),s>t?(i[c]--,e=a.plus(i),e>t&&(s=e,i[c]--,e=a.plus(i))):e=s);return[e,i,s,o]}function xr(e,t,n,r){let[i,a,o,s]=br(e,t,n),c=t-i,l=n.filter(e=>[`hours`,`minutes`,`seconds`,`milliseconds`].indexOf(e)>=0);l.length===0&&(o<t&&(o=i.plus({[s]:1})),o!==i&&(a[s]=(a[s]||0)+c/(o-i)));let u=Y.fromObject(a,r);return l.length>0?Y.fromMillis(c,r).shiftTo(...l).plus(u):u}var Sr=`missing Intl.DateTimeFormat.formatToParts support`;function X(e,t=e=>e){return{regex:e,deser:([e])=>t(Ke(e))}}var Cr=`[ \xA0]`,wr=new RegExp(Cr,`g`);function Tr(e){return e.replace(/\./g,`\\.?`).replace(wr,Cr)}function Er(e){return e.replace(/\./g,``).replace(wr,` `).toLowerCase()}function Z(e,t){return e===null?null:{regex:RegExp(e.map(Tr).join(`|`)),deser:([n])=>e.findIndex(e=>Er(n)===Er(e))+t}}function Dr(e,t){return{regex:e,deser:([,e,t])=>Lt(e,t),groups:t}}function Or(e){return{regex:e,deser:([e])=>e}}function kr(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,`\\$&`)}function Ar(e,t){let n=A(t),r=A(t,`{2}`),i=A(t,`{3}`),a=A(t,`{4}`),o=A(t,`{6}`),s=A(t,`{1,2}`),c=A(t,`{1,3}`),l=A(t,`{1,6}`),u=A(t,`{1,9}`),d=A(t,`{2,4}`),f=A(t,`{4,6}`),p=e=>({regex:RegExp(kr(e.val)),deser:([e])=>e,literal:!0}),m=(m=>{if(e.literal)return p(m);switch(m.val){case`G`:return Z(t.eras(`short`),0);case`GG`:return Z(t.eras(`long`),0);case`y`:return X(l);case`yy`:return X(d,Ft);case`yyyy`:return X(a);case`yyyyy`:return X(f);case`yyyyyy`:return X(o);case`M`:return X(s);case`MM`:return X(r);case`MMM`:return Z(t.months(`short`,!0),1);case`MMMM`:return Z(t.months(`long`,!0),1);case`L`:return X(s);case`LL`:return X(r);case`LLL`:return Z(t.months(`short`,!1),1);case`LLLL`:return Z(t.months(`long`,!1),1);case`d`:return X(s);case`dd`:return X(r);case`o`:return X(c);case`ooo`:return X(i);case`HH`:return X(r);case`H`:return X(s);case`hh`:return X(r);case`h`:return X(s);case`mm`:return X(r);case`m`:return X(s);case`q`:return X(s);case`qq`:return X(r);case`s`:return X(s);case`ss`:return X(r);case`S`:return X(c);case`SSS`:return X(i);case`u`:return Or(u);case`uu`:return Or(s);case`uuu`:return X(n);case`a`:return Z(t.meridiems(),0);case`kkkk`:return X(a);case`kk`:return X(d,Ft);case`W`:return X(s);case`WW`:return X(r);case`E`:case`c`:return X(n);case`EEE`:return Z(t.weekdays(`short`,!1),1);case`EEEE`:return Z(t.weekdays(`long`,!1),1);case`ccc`:return Z(t.weekdays(`short`,!0),1);case`cccc`:return Z(t.weekdays(`long`,!0),1);case`Z`:case`ZZ`:return Dr(RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case`ZZZ`:return Dr(RegExp(`([+-]${s.source})(${r.source})?`),2);case`z`:return Or(/[a-z_+-/]{1,256}?/i);case` `:return Or(/[^\S\n\r]/);default:return p(m)}})(e)||{invalidReason:Sr};return m.token=e,m}var jr={year:{"2-digit":`yy`,numeric:`yyyyy`},month:{numeric:`M`,"2-digit":`MM`,short:`MMM`,long:`MMMM`},day:{numeric:`d`,"2-digit":`dd`},weekday:{short:`EEE`,long:`EEEE`},dayperiod:`a`,dayPeriod:`a`,hour12:{numeric:`h`,"2-digit":`hh`},hour24:{numeric:`H`,"2-digit":`HH`},minute:{numeric:`m`,"2-digit":`mm`},second:{numeric:`s`,"2-digit":`ss`},timeZoneName:{long:`ZZZZZ`,short:`ZZZ`}};function Mr(e,t,n){let{type:r,value:i}=e;if(r===`literal`){let e=/^\s+$/.test(i);return{literal:!e,val:e?` `:i}}let a=t[r],o=r;r===`hour`&&(o=t.hour12==null?t.hourCycle==null?n.hour12?`hour12`:`hour24`:t.hourCycle===`h11`||t.hourCycle===`h12`?`hour12`:`hour24`:t.hour12?`hour12`:`hour24`);let s=jr[o];if(typeof s==`object`&&(s=s[a]),s)return{literal:!1,val:s}}function Nr(e){return[`^${e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,``)}$`,e]}function Pr(e,t,n){let r=e.match(t);if(r){let e={},t=1;for(let i in n)if(I(n,i)){let a=n[i],o=a.groups?a.groups+1:1;!a.literal&&a.token&&(e[a.token.val[0]]=a.deser(r.slice(t,t+o))),t+=o}return[r,e]}else return[r,{}]}function Fr(e){let t=e=>{switch(e){case`S`:return`millisecond`;case`s`:return`second`;case`m`:return`minute`;case`h`:case`H`:return`hour`;case`d`:return`day`;case`o`:return`ordinal`;case`L`:case`M`:return`month`;case`y`:return`year`;case`E`:case`c`:return`weekday`;case`W`:return`weekNumber`;case`k`:return`weekYear`;case`q`:return`quarter`;default:return null}},n=null,r;return P(e.z)||(n=E.create(e.z)),P(e.Z)||(n||=new O(e.Z),r=e.Z),P(e.q)||(e.M=(e.q-1)*3+1),P(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),P(e.u)||(e.S=Ot(e.u)),[Object.keys(e).reduce((n,r)=>{let i=t(r);return i&&(n[i]=e[r]),n},{}),n,r]}var Ir=null;function Lr(){return Ir||=$.fromMillis(1555555555555),Ir}function Rr(e,t){if(e.literal)return e;let n=Ur(H.macroTokenToFormatOpts(e.val),t);return n==null||n.includes(void 0)?e:n}function zr(e,t){return Array.prototype.concat(...e.map(e=>Rr(e,t)))}var Br=class{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=zr(H.parseFormat(t),e),this.units=this.tokens.map(t=>Ar(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){let[e,t]=Nr(this.units);this.regex=RegExp(e,`i`),this.handlers=t}}explainFromTokens(e){if(this.isValid){let[t,n]=Pr(e,this.regex,this.handlers),[r,i,o]=n?Fr(n):[null,null,void 0];if(I(n,`a`)&&I(n,`H`))throw new a(`Can't include meridiem when specifying 24-hour format`);return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:i,specificOffset:o}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function Vr(e,t,n){return new Br(e,n).explainFromTokens(t)}function Hr(e,t,n){let{result:r,zone:i,specificOffset:a,invalidReason:o}=Vr(e,t,n);return[r,i,a,o]}function Ur(e,t){if(!e)return null;let n=H.create(t,e).dtFormatter(Lr()),r=n.formatToParts(),i=n.resolvedOptions();return r.map(t=>Mr(t,e,i))}var Wr=`Invalid DateTime`,Gr=864e13;function Kr(e){return new M(`unsupported zone`,`the zone "${e.name}" is not supported`)}function qr(e){return e.weekData===null&&(e.weekData=lt(e.c)),e.weekData}function Jr(e){return e.localWeekData===null&&(e.localWeekData=lt(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Q(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new $({...n,...t,old:n})}function Yr(e,t,n){let r=e-t*60*1e3,i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;let a=n.offset(r);return i===a?[r,i]:[e-Math.min(i,a)*60*1e3,Math.max(i,a)]}function Xr(e,t){e+=t*60*1e3;let n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Zr(e,t,n){return Yr(Mt(e),t,n)}function Qr(e,t){let n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:r,month:i,day:Math.min(e.c.day,jt(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=Y.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as(`milliseconds`),[s,c]=Yr(Mt(a),n,e.zone);return o!==0&&(s+=o,c=e.zone.offset(s)),{ts:s,o:c}}function $r(e,t,n,r,i,a){let{setZone:o,zone:s}=n;if(e&&Object.keys(e).length!==0||t){let r=t||s,i=$.fromObject(e,{...n,zone:r,specificOffset:a});return o?i:i.setZone(s)}else return $.invalid(new M(`unparsable`,`the input "${i}" can't be parsed as ${r}`))}function ei(e,t,n=!0){return e.isValid?H.create(D.create(`en-US`),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function ti(e,t,n){let r=e.c.year>9999||e.c.year<0,i=``;if(r&&e.c.year>=0&&(i+=`+`),i+=R(e.c.year,r?6:4),n===`year`)return i;if(t){if(i+=`-`,i+=R(e.c.month),n===`month`)return i;i+=`-`}else if(i+=R(e.c.month),n===`month`)return i;return i+=R(e.c.day),i}function ni(e,t,n,r,i,a,o){let s=!n||e.c.millisecond!==0||e.c.second!==0,c=``;switch(o){case`day`:case`month`:case`year`:break;default:if(c+=R(e.c.hour),o===`hour`)break;if(t){if(c+=`:`,c+=R(e.c.minute),o===`minute`)break;s&&(c+=`:`,c+=R(e.c.second))}else{if(c+=R(e.c.minute),o===`minute`)break;s&&(c+=R(e.c.second))}if(o===`second`)break;s&&(!r||e.c.millisecond!==0)&&(c+=`.`,c+=R(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!a?c+=`Z`:e.o<0?(c+=`-`,c+=R(Math.trunc(-e.o/60)),c+=`:`,c+=R(Math.trunc(-e.o%60))):(c+=`+`,c+=R(Math.trunc(e.o/60)),c+=`:`,c+=R(Math.trunc(e.o%60)))),a&&(c+=`[`+e.zone.ianaName+`]`),c}var ri={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ii={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ai={ordinal:1,hour:0,minute:0,second:0,millisecond:0},oi=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],si=[`weekYear`,`weekNumber`,`weekday`,`hour`,`minute`,`second`,`millisecond`],ci=[`year`,`ordinal`,`hour`,`minute`,`second`,`millisecond`];function li(e){let t={year:`year`,years:`year`,month:`month`,months:`month`,day:`day`,days:`day`,hour:`hour`,hours:`hour`,minute:`minute`,minutes:`minute`,quarter:`quarter`,quarters:`quarter`,second:`second`,seconds:`second`,millisecond:`millisecond`,milliseconds:`millisecond`,weekday:`weekday`,weekdays:`weekday`,weeknumber:`weekNumber`,weeksnumber:`weekNumber`,weeknumbers:`weekNumber`,weekyear:`weekYear`,weekyears:`weekYear`,ordinal:`ordinal`}[e.toLowerCase()];if(!t)throw new o(e);return t}function ui(e){switch(e.toLowerCase()){case`localweekday`:case`localweekdays`:return`localWeekday`;case`localweeknumber`:case`localweeknumbers`:return`localWeekNumber`;case`localweekyear`:case`localweekyears`:return`localWeekYear`;default:return li(e)}}function di(e){if(hi===void 0&&(hi=j.now()),e.type!==`iana`)return e.offset(hi);let t=e.name,n=gi.get(t);return n===void 0&&(n=e.offset(hi),gi.set(t,n)),n}function fi(e,t){let n=k(t.zone,j.defaultZone);if(!n.isValid)return $.invalid(Kr(n));let r=D.fromObject(t),i,a;if(P(e.year))i=j.now();else{for(let t of oi)P(e[t])&&(e[t]=ri[t]);let t=gt(e)||_t(e);if(t)return $.invalid(t);let r=di(n);[i,a]=Zr(e,r,n)}return new $({ts:i,zone:n,loc:r,o:a})}function pi(e,t,n){let r=P(n.round)?!0:n.round,i=P(n.rounding)?`trunc`:n.rounding,a=(e,a)=>(e=kt(e,r||n.calendary?0:2,n.calendary?`round`:i),t.loc.clone(n).relFormatter(n).format(e,a)),o=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return a(o(n.unit),n.unit);for(let e of n.units){let t=o(e);if(Math.abs(t)>=1)return a(t,e)}return a(e>t?-0:0,n.units[n.units.length-1])}function mi(e){let t={},n;return e.length>0&&typeof e[e.length-1]==`object`?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}var hi,gi=new Map,$=class e{constructor(e){let t=e.zone||j.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new M(`invalid input`):null)||(t.isValid?null:Kr(t));this.ts=P(e.ts)?j.now():e.ts;let r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,i]=[e.old.c,e.old.o];else{let a=F(e.o)&&!e.old?e.o:t.offset(this.ts);r=Xr(this.ts,a),n=Number.isNaN(r.year)?new M(`invalid input`):null,r=n?null:r,i=n?null:a}this._zone=t,this.loc=e.loc||D.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[e,t]=mi(arguments),[n,r,i,a,o,s,c]=t;return fi({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:c},e)}static utc(){let[e,t]=mi(arguments),[n,r,i,a,o,s,c]=t;return e.zone=O.utcInstance,fi({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:c},e)}static fromJSDate(t,n={}){let r=bt(t)?t.valueOf():NaN;if(Number.isNaN(r))return e.invalid(`invalid input`);let i=k(n.zone,j.defaultZone);return i.isValid?new e({ts:r,zone:i,loc:D.fromObject(n)}):e.invalid(Kr(i))}static fromMillis(t,n={}){if(!F(t))throw new s(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`);return t<-Gr||t>Gr?e.invalid(`Timestamp out of range`):new e({ts:t,zone:k(n.zone,j.defaultZone),loc:D.fromObject(n)})}static fromSeconds(t,n={}){if(F(t))return new e({ts:t*1e3,zone:k(n.zone,j.defaultZone),loc:D.fromObject(n)});throw new s(`fromSeconds requires a numerical input`)}static fromObject(t,n={}){t||={};let r=k(n.zone,j.defaultZone);if(!r.isValid)return e.invalid(Kr(r));let i=D.fromObject(n),o=zt(t,ui),{minDaysInFirstWeek:s,startOfWeek:c}=pt(o,i),l=j.now(),u=P(n.specificOffset)?r.offset(l):n.specificOffset,d=!P(o.ordinal),f=!P(o.year),p=!P(o.month)||!P(o.day),m=f||p,h=o.weekYear||o.weekNumber;if((m||d)&&h)throw new a(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(p&&d)throw new a(`Can't mix ordinal dates with month/day`);let g=h||o.weekday&&!m,_,v,y=Xr(l,u);g?(_=si,v=ii,y=lt(y,s,c)):d?(_=ci,v=ai,y=dt(y)):(_=oi,v=ri);let b=!1;for(let e of _){let t=o[e];P(t)?b?o[e]=v[e]:o[e]=y[e]:b=!0}let x=(g?mt(o,s,c):d?ht(o):gt(o))||_t(o);if(x)return e.invalid(x);let[ee,te]=Zr(g?ut(o,s,c):d?ft(o):o,u,r),S=new e({ts:ee,zone:r,o:te,loc:i});return o.weekday&&m&&t.weekday!==S.weekday?e.invalid(`mismatched weekday`,`you can't specify both a weekday of ${o.weekday} and a date of ${S.toISO()}`):S.isValid?S:e.invalid(S.invalid)}static fromISO(e,t={}){let[n,r]=Xn(e);return $r(n,r,t,`ISO 8601`,e)}static fromRFC2822(e,t={}){let[n,r]=Zn(e);return $r(n,r,t,`RFC 2822`,e)}static fromHTTP(e,t={}){let[n,r]=Qn(e);return $r(n,r,t,`HTTP`,t)}static fromFormat(t,n,r={}){if(P(t)||P(n))throw new s(`fromFormat requires an input string and a format`);let{locale:i=null,numberingSystem:a=null}=r,[o,c,l,u]=Hr(D.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),t,n);return u?e.invalid(u):$r(o,c,r,`format ${n}`,t,l)}static fromString(t,n,r={}){return e.fromFormat(t,n,r)}static fromSQL(e,t={}){let[n,r]=ar(e);return $r(n,r,t,`SQL`,e)}static invalid(t,r=null){if(!t)throw new s(`need to specify a reason the DateTime is invalid`);let i=t instanceof M?t:new M(t,r);if(j.throwOnInvalid)throw new n(i);return new e({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let n=Ur(e,D.fromObject(t));return n?n.map(e=>e?e.val:null).join(``):null}static expandFormat(e,t={}){return zr(H.parseFormat(e),D.fromObject(t)).map(e=>e.val).join(``)}static resetCache(){hi=void 0,gi.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?qr(this).weekYear:NaN}get weekNumber(){return this.isValid?qr(this).weekNumber:NaN}get weekday(){return this.isValid?qr(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Jr(this).weekday:NaN}get localWeekNumber(){return this.isValid?Jr(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Jr(this).weekYear:NaN}get ordinal(){return this.isValid?dt(this.c).ordinal:NaN}get monthShort(){return this.isValid?vr.months(`short`,{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?vr.months(`long`,{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?vr.weekdays(`short`,{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?vr.weekdays(`long`,{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:`short`,locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:`long`,locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,t=6e4,n=Mt(this.c),r=this.zone.offset(n-e),i=this.zone.offset(n+e),a=this.zone.offset(n-r*t),o=this.zone.offset(n-i*t);if(a===o)return[this];let s=n-a*t,c=n-o*t,l=Xr(s,a),u=Xr(c,o);return l.hour===u.hour&&l.minute===u.minute&&l.second===u.second&&l.millisecond===u.millisecond?[Q(this,{ts:s}),Q(this,{ts:c})]:[this]}get isInLeapYear(){return At(this.year)}get daysInMonth(){return jt(this.year,this.month)}get daysInYear(){return this.isValid?V(this.year):NaN}get weeksInWeekYear(){return this.isValid?Pt(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Pt(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:n,calendar:r}=H.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(O.instance(e),t)}toLocal(){return this.setZone(j.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=k(t,j.defaultZone),t.equals(this.zone))return this;if(t.isValid){let e=this.ts;if(n||r){let n=t.offset(this.ts),r=this.toObject();[e]=Zr(r,n,t)}return Q(this,{ts:e,zone:t})}else return e.invalid(Kr(t))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){let r=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return Q(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let t=zt(e,ui),{minDaysInFirstWeek:n,startOfWeek:r}=pt(t,this.loc),i=!P(t.weekYear)||!P(t.weekNumber)||!P(t.weekday),o=!P(t.ordinal),s=!P(t.year),c=!P(t.month)||!P(t.day),l=s||c,u=t.weekYear||t.weekNumber;if((l||o)&&u)throw new a(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(c&&o)throw new a(`Can't mix ordinal dates with month/day`);let d;i?d=ut({...lt(this.c,n,r),...t},n,r):P(t.ordinal)?(d={...this.toObject(),...t},P(t.day)&&(d.day=Math.min(jt(d.year,d.month),d.day))):d=ft({...dt(this.c),...t});let[f,p]=Zr(d,this.o,this.zone);return Q(this,{ts:f,o:p})}plus(e){if(!this.isValid)return this;let t=Y.fromDurationLike(e);return Q(this,Qr(this,t))}minus(e){if(!this.isValid)return this;let t=Y.fromDurationLike(e).negate();return Q(this,Qr(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let n={},r=Y.normalizeUnit(e);switch(r){case`years`:n.month=1;case`quarters`:case`months`:n.day=1;case`weeks`:case`days`:n.hour=0;case`hours`:n.minute=0;case`minutes`:n.second=0;case`seconds`:n.millisecond=0;break}if(r===`weeks`)if(t){let e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;return r===`quarters`&&(n.month=(Math.ceil(this.month/3)-1)*3+1),this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?H.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Wr}toLocaleString(e=f,t={}){return this.isValid?H.create(this.loc.clone(t),e).formatDateTime(this):Wr}toLocaleParts(e={}){return this.isValid?H.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e=`extended`,suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:i=!1,precision:a=`milliseconds`}={}){if(!this.isValid)return null;a=li(a);let o=e===`extended`,s=ti(this,o,a);return oi.indexOf(a)>=3&&(s+=`T`),s+=ni(this,o,t,n,r,i,a),s}toISODate({format:e=`extended`,precision:t=`day`}={}){return this.isValid?ti(this,e===`extended`,li(t)):null}toISOWeekDate(){return ei(this,`kkkk-'W'WW-c`)}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:i=!1,format:a=`extended`,precision:o=`milliseconds`}={}){return this.isValid?(o=li(o),(r&&oi.indexOf(o)>=3?`T`:``)+ni(this,a===`extended`,t,e,n,i,o)):null}toRFC2822(){return ei(this,`EEE, dd LLL yyyy HH:mm:ss ZZZ`,!1)}toHTTP(){return ei(this.toUTC(),`EEE, dd LLL yyyy HH:mm:ss 'GMT'`)}toSQLDate(){return this.isValid?ti(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r=`HH:mm:ss.SSS`;return(t||e)&&(n&&(r+=` `),t?r+=`z`:e&&(r+=`ZZ`)),ei(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Wr}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t=`milliseconds`,n={}){if(!this.isValid||!e.isValid)return Y.invalid(`created by diffing an invalid DateTime`);let r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=Ct(t).map(Y.normalizeUnit),a=e.valueOf()>this.valueOf(),o=xr(a?this:e,a?e:this,i,r);return a?o.negate():o}diffNow(t=`milliseconds`,n={}){return this.diff(e.now(),t,n)}until(e){return this.isValid?_r.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;let r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,n)<=r&&r<=i.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(t={}){if(!this.isValid)return null;let n=t.base||e.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0,i=[`years`,`months`,`days`,`hours`,`minutes`,`seconds`],a=t.unit;return Array.isArray(t.unit)&&(i=t.unit,a=void 0),pi(n,this.plus(r),{...t,numeric:`always`,units:i,unit:a})}toRelativeCalendar(t={}){return this.isValid?pi(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:`auto`,units:[`years`,`months`,`days`],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new s(`min requires all arguments be DateTimes`);return wt(t,e=>e.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new s(`max requires all arguments be DateTimes`);return wt(t,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){let{locale:r=null,numberingSystem:i=null}=n;return Vr(D.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),e,t)}static fromStringExplain(t,n,r={}){return e.fromFormatExplain(t,n,r)}static buildFormatParser(e,t={}){let{locale:n=null,numberingSystem:r=null}=t;return new Br(D.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0}),e)}static fromFormatParser(t,n,r={}){if(P(t)||P(n))throw new s(`fromFormatParser requires an input string and a format parser`);let{locale:i=null,numberingSystem:a=null}=r,o=D.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});if(!o.equals(n.locale))throw new s(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);let{result:c,zone:l,specificOffset:u,invalidReason:d}=n.explainFromTokens(t);return d?e.invalid(d):$r(c,l,r,`format ${n.format}`,t,u)}static get DATE_SHORT(){return f}static get DATE_MED(){return p}static get DATE_MED_WITH_WEEKDAY(){return m}static get DATE_FULL(){return h}static get DATE_HUGE(){return g}static get TIME_SIMPLE(){return _}static get TIME_WITH_SECONDS(){return v}static get TIME_WITH_SHORT_OFFSET(){return y}static get TIME_WITH_LONG_OFFSET(){return b}static get TIME_24_SIMPLE(){return x}static get TIME_24_WITH_SECONDS(){return ee}static get TIME_24_WITH_SHORT_OFFSET(){return te}static get TIME_24_WITH_LONG_OFFSET(){return S}static get DATETIME_SHORT(){return ne}static get DATETIME_SHORT_WITH_SECONDS(){return re}static get DATETIME_MED(){return ie}static get DATETIME_MED_WITH_SECONDS(){return ae}static get DATETIME_MED_WITH_WEEKDAY(){return oe}static get DATETIME_FULL(){return se}static get DATETIME_FULL_WITH_SECONDS(){return ce}static get DATETIME_HUGE(){return le}static get DATETIME_HUGE_WITH_SECONDS(){return ue}};function _i(e){if($.isDateTime(e))return e;if(e&&e.valueOf&&F(e.valueOf()))return $.fromJSDate(e);if(e&&typeof e==`object`)return $.fromObject(e);throw new s(`Unknown datetime argument: ${e}, of type ${typeof e}`)}e.DateTime=$,e.Duration=Y,e.FixedOffsetZone=O,e.IANAZone=E,e.Info=vr,e.Interval=_r,e.InvalidZone=He,e.Settings=j,e.SystemZone=w,e.VERSION=`3.7.2`,e.Zone=C})),re=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RE_RANGE=e.RE_WILDCARDS=e.PRESETS=e.TIME_UNITS_LEN=e.TIME_UNITS=e.TIME_UNITS_MAP=e.ALIASES=e.PARSE_DEFAULTS=e.CONSTRAINTS=void 0,e.CONSTRAINTS=Object.freeze({second:[0,59],minute:[0,59],hour:[0,23],dayOfMonth:[1,31],month:[1,12],dayOfWeek:[0,7]}),e.PARSE_DEFAULTS=Object.freeze({second:`0`,minute:`*`,hour:`*`,dayOfMonth:`*`,month:`*`,dayOfWeek:`*`}),e.ALIASES=Object.freeze({jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12,sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}),e.TIME_UNITS_MAP=Object.freeze({SECOND:`second`,MINUTE:`minute`,HOUR:`hour`,DAY_OF_MONTH:`dayOfMonth`,MONTH:`month`,DAY_OF_WEEK:`dayOfWeek`}),e.TIME_UNITS=Object.freeze(Object.values(e.TIME_UNITS_MAP)),e.TIME_UNITS_LEN=e.TIME_UNITS.length,e.PRESETS=Object.freeze({"@yearly":`0 0 0 1 1 *`,"@monthly":`0 0 0 1 * *`,"@weekly":`0 0 0 * * 0`,"@daily":`0 0 0 * * *`,"@hourly":`0 0 * * * *`,"@minutely":`0 * * * * *`,"@secondly":`* * * * * *`,"@weekdays":`0 0 0 * * 1-5`,"@weekends":`0 0 0 * * 0,6`}),e.RE_WILDCARDS=/\*/g,e.RE_RANGE=/^(\d+)(?:-(\d+))?(?:\/(\d+))?$/g})),ie=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExclusiveParametersError=e.CronError=void 0;var t=class extends Error{};e.CronError=t,e.ExclusiveParametersError=class extends t{constructor(e,t){super(`You can't specify both ${e} and ${t}`)}}})),ae=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CronTime=void 0;var t=ne(),n=re(),r=ie();e.CronTime=class e{constructor(e,n,i){if(this.realDate=!1,this.second={},this.minute={},this.hour={},this.dayOfMonth={},this.month={},this.dayOfWeek={},n!=null&&i!=null)throw new r.ExclusiveParametersError(`timeZone`,`utcOffset`);if(n){if(!t.DateTime.fromObject({},{zone:n}).isValid)throw new r.CronError(`Invalid timezone.`);this.timeZone=n}i!=null&&(this.utcOffset=i),n==null&&i==null&&(this.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone),e instanceof Date||e instanceof t.DateTime?(this.source=e instanceof Date?t.DateTime.fromJSDate(e):e,this.realDate=!0):(this.source=e,this._parse(this.source))}static validateCronExpression(t){try{return new e(t),{valid:!0}}catch(e){return{valid:!1,error:e}}}_getWeekDay(e){return e.weekday===7?0:e.weekday}sendAt(e){let n=this.realDate&&this.source instanceof t.DateTime?this.source:t.DateTime.utc();if(this.timeZone&&(n=n.setZone(this.timeZone)),this.utcOffset!==void 0){let e=this.utcOffset<0?`-`:`+`,t=Math.trunc(this.utcOffset/60),i=String(Math.abs(t)).padStart(2,`0`),a=Math.abs(this.utcOffset-t*60),o=`UTC${e}${i}:${String(a).padStart(2,`0`)}`;if(n=n.setZone(o),!n.isValid)throw new r.CronError(`ERROR: You specified an invalid UTC offset.`)}if(this.realDate){if(t.DateTime.local()>n)throw new r.CronError(`WARNING: Date in past. Will never be fired.`);return n}if(e===void 0||isNaN(e)||e<0)return this.getNextDateFrom(n);{let t=[];for(;e>0;e--)n=this.getNextDateFrom(n),t.push(n);return t}}getTimeout(){return this.sendAt().toMillis()-t.DateTime.local().toMillis()}toString(){return this.toJSON().join(` `)}toJSON(){return n.TIME_UNITS.map(e=>this._wcOrAll(e))}getNextDateFrom(e,n){e instanceof Date&&(e=t.DateTime.fromJSDate(e)),n?e=e.setZone(n):n=e.zone.zoneName??e.zone.fixed;let i=t.DateTime.fromFormat(`${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`,`yyyy-M-d H:m:s`,{zone:`UTC`}),a=i.toMillis();if(this.realDate||i.millisecond>0&&(i=i.set({millisecond:0,second:i.second+1})),!i.isValid)throw new r.CronError(`ERROR: You specified an invalid date.`);let o=t.DateTime.now().plus({years:8});for(;;){if(i>o)throw new r.CronError(`Something went wrong. No execution date was found in the next 8 years.
2
+ Please provide the following string if you would like to help debug:
3
+ Time Zone: ${n?.toString()??`""`} - Cron String: ${this.source.toString()} - UTC offset: ${i.offset} - current Date: ${t.DateTime.local().toString()}`);if(!(i.month in this.month)&&Object.keys(this.month).length!==12){i=i.plus({month:1}),i=i.set({day:1,hour:0,minute:0,second:0});continue}if(!(i.day in this.dayOfMonth)&&Object.keys(this.dayOfMonth).length!==31&&!(this._getWeekDay(i)in this.dayOfWeek&&Object.keys(this.dayOfWeek).length!==7)||!(this._getWeekDay(i)in this.dayOfWeek)&&Object.keys(this.dayOfWeek).length!==7&&!(i.day in this.dayOfMonth&&Object.keys(this.dayOfMonth).length!==31)){i=i.plus({days:1}),i=i.set({hour:0,minute:0,second:0});continue}if(!(i.hour in this.hour)&&Object.keys(this.hour).length!==24){i=i.plus({hour:1}),i=i.set({minute:0,second:0});continue}if(!(i.minute in this.minute)&&Object.keys(this.minute).length!==60){i=i.plus({minute:1}),i=i.set({second:0});continue}if(i.toMillis()===a||!(i.second in this.second)&&Object.keys(this.second).length!==60){i=i.plus({second:1});continue}break}let s=i.hour,c=i.minute;i=t.DateTime.fromFormat(`${i.year}-${i.month}-${i.day} ${i.hour}:${i.minute}:${i.second}`,`yyyy-M-d H:m:s`,{zone:n});let l=t.DateTime.fromFormat(`${i.year}-1-1 0:0:0`,`yyyy-M-d H:m:s`,{zone:n});if((s!==i.hour||c!==i.minute)&&l.offset!==i.offset){for(;i.minus({minute:1}).offset!==l.offset;)i=i.minus({minute:1});return i}let u=i.minus({hour:1}),d=i.minus({hour:2});(u.hour===i.hour||d.hour===u.hour)&&u>e&&(i=u);let f=i.minus({minute:30});return(f.minute===i.minute||u.minute===f.minute)&&f>e&&(i=f),i}_wcOrAll(e){if(this._hasAll(e))return`*`;let t=[];for(let n in this[e])t.push(n);return t.join(`,`)}_hasAll(e){let t=n.CONSTRAINTS[e],r=t[0],i=e===n.TIME_UNITS_MAP.DAY_OF_WEEK?t[1]-1:t[1];for(let t=r,n=i;t<n;t++)if(!(t in this[e]))return!1;return!0}_parse(e){e=e.toLowerCase(),Object.keys(n.PRESETS).includes(e)&&(e=n.PRESETS[e]),e=e.replace(/[a-z]{1,3}/gi,e=>{if(Object.keys(n.ALIASES).includes(e))return n.ALIASES[e].toString();throw new r.CronError(`Unknown alias: ${e}`)});let t=e.trim().split(/\s+/);if(t.length<n.TIME_UNITS_LEN-1)throw new r.CronError(`Too few fields`);if(t.length>n.TIME_UNITS_LEN)throw new r.CronError(`Too many fields`);let i=t.length;for(let e of n.TIME_UNITS){let r=t[n.TIME_UNITS.indexOf(e)-(n.TIME_UNITS_LEN-i)]??n.PARSE_DEFAULTS[e];this._parseField(r,e)}}_parseField(e,t){let i=this[t],a,o=n.CONSTRAINTS[t],s=o[0],c=o[1];e.split(`,`).forEach(e=>{let t=e.indexOf(`*`);if(t!==-1&&t!==0)throw new r.CronError(`Field (${e}) has an invalid wildcard expression`)}),e=e.replace(n.RE_WILDCARDS,`${s}-${c}`);let l=e.split(`,`);for(let o of l){let l=[...o.matchAll(n.RE_RANGE)][0];if(l?.[1]!==void 0){let[,n,o,u]=l,d=parseInt(n,10),f=o===void 0?void 0:parseInt(o,10),p=u!==void 0,m=parseInt(u??`1`,10);if(m===0)throw new r.CronError(`Field (${t}) has a step of zero`);if(f!==void 0&&d>f)throw new r.CronError(`Field (${t}) has an invalid range`);if(d<s||f!==void 0&&f>c||f===void 0&&d>c)throw new r.CronError(`Field value (${e}) is out of range`);d=Math.min(Math.max(s,~~Math.abs(d)),c),f=f===void 0?p?c:d:Math.min(c,~~Math.abs(f)),a=d;do i[a]=!0,a+=m;while(a<=f);t===`dayOfWeek`&&(!i[0]&&i[7]&&(i[0]=i[7]),delete i[7])}else throw new r.CronError(`Field (${t}) cannot be parsed`)}}}})),oe=t((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.CronJob=void 0;var n=r(),i=ie(),a=ae();e.CronJob=class e{get isActive(){return this._isActive}get isCallbackRunning(){return this._isCallbackRunning}constructor(e,t,n,r,o,s,c,l,u,d,f,p,m){if(this.unrefTimeout=!1,this.lastExecution=null,this.runOnce=!1,this.waitForCompletion=!1,this.threshold=250,this._isActive=!1,this._isCallbackRunning=!1,this._callbacks=[],this.context=s??this,this.waitForCompletion=!!d,this.errorHandler=f,o!=null&&l!=null)throw new i.ExclusiveParametersError(`timeZone`,`utcOffset`);o==null?l==null?this.cronTime=new a.CronTime(e,o,l):this.cronTime=new a.CronTime(e,null,l):this.cronTime=new a.CronTime(e,o,null),u!=null&&(this.unrefTimeout=u),n!=null&&(this.onComplete=this._fnWrap(n)),m!=null&&(this.threshold=Math.abs(m)),p!=null&&(this.name=p),this.cronTime.realDate&&(this.runOnce=!0),this.addCallback(this._fnWrap(t)),c&&(this.lastExecution=new Date,this.fireOnTick()),r&&this.start()}static from(t){if(t.timeZone!=null&&t.utcOffset!=null)throw new i.ExclusiveParametersError(`timeZone`,`utcOffset`);return t.timeZone==null?t.utcOffset==null?new e(t.cronTime,t.onTick,t.onComplete,t.start,t.timeZone,t.context,t.runOnInit,t.utcOffset,t.unrefTimeout,t.waitForCompletion,t.errorHandler,t.name,t.threshold):new e(t.cronTime,t.onTick,t.onComplete,t.start,null,t.context,t.runOnInit,t.utcOffset,t.unrefTimeout,t.waitForCompletion,t.errorHandler,t.name,t.threshold):new e(t.cronTime,t.onTick,t.onComplete,t.start,t.timeZone,t.context,t.runOnInit,t.utcOffset,t.unrefTimeout,t.waitForCompletion,t.errorHandler,t.name,t.threshold)}_fnWrap(e){switch(typeof e){case`function`:return e;case`string`:{let[t,...r]=e.split(` `);return n.spawn.bind(void 0,t??e,r,{})}case`object`:return n.spawn.bind(void 0,e.command,e.args??[],e.options??{})}}addCallback(e){typeof e==`function`&&this._callbacks.push(e)}setTime(e){if(!(e instanceof a.CronTime))throw new i.CronError(`time must be an instance of CronTime.`);let t=this._isActive;this.stop(),this.cronTime=e,e.realDate&&(this.runOnce=!0),t&&this.start()}nextDate(){return this.cronTime.sendAt()}fireOnTick(){return t(this,void 0,void 0,function*(){if(!(this.waitForCompletion&&this._isCallbackRunning)){this._isCallbackRunning=!0;try{for(let e of this._callbacks){let t=e.call(this.context,this.onComplete);t&&typeof t==`object`&&typeof t.then==`function`&&(this.waitForCompletion?yield t:t.catch(e=>{this.errorHandler==null?console.error(`[Cron] error in callback`,e):this.errorHandler(e)}))}}catch(e){this.errorHandler==null?console.error(`[Cron] error in callback`,e):this.errorHandler(e)}finally{this._isCallbackRunning=!1}}})}nextDates(e){return this.cronTime.sendAt(e??0)}start(){if(this._isActive)return;this._isActive=!0;let e=2147483647,t=this.cronTime.getTimeout(),n=0,r,i=e=>{r=Date.now(),this._timeout=setTimeout(a,Math.max(e,1)),this.unrefTimeout&&typeof this._timeout.unref==`function`&&this._timeout.unref()},a=()=>{let a=r+t-Date.now();if(a>0){let e=this.cronTime.getTimeout();e>a&&(e=a),n+=e}n?(n>e?(n-=e,t=e):(t=n,n=0),i(t)):(this.lastExecution=new Date,this._isActive=!1,this.runOnce||this.start(),this.fireOnTick())};if(t>=0)t>e&&(n=t-e,t=e),i(t);else{let e=Math.abs(t),n=`[Cron] Missed execution deadline by ${e}ms for job${this.name?` "${this.name}"`:``} with cron expression '${String(this.cronTime.source)}'`;e<=this.threshold?(console.warn(`${n}. Executing immediately.`),this.lastExecution=new Date,this.fireOnTick()):console.warn(`${n}. Skipping execution as it exceeds threshold (${this.threshold}ms).`),t=this.cronTime.getTimeout(),i(t)}}lastDate(){return this.lastExecution}_executeOnComplete(){return t(this,void 0,void 0,function*(){if(typeof this.onComplete==`function`)try{yield this.onComplete.call(this.context)}catch(e){console.error(`[Cron] error in onComplete callback:`,e)}})}_waitForJobCompletion(){return t(this,void 0,void 0,function*(){for(;this._isCallbackRunning;)yield new Promise(e=>setTimeout(e,100))})}stop(){if(this._timeout&&clearTimeout(this._timeout),this._isActive=!1,!this.waitForCompletion){this._executeOnComplete();return}return Promise.resolve().then(()=>t(this,void 0,void 0,function*(){yield this._waitForJobCompletion(),yield this._executeOnComplete()}))}}})),se=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateCronExpression=e.timeout=e.sendAt=e.CronTime=e.CronJob=void 0;var t=ae(),n=oe();Object.defineProperty(e,`CronJob`,{enumerable:!0,get:function(){return n.CronJob}});var r=ae();Object.defineProperty(e,`CronTime`,{enumerable:!0,get:function(){return r.CronTime}}),e.sendAt=e=>new t.CronTime(e).sendAt(),e.timeout=e=>new t.CronTime(e).getTimeout(),e.validateCronExpression=t.CronTime.validateCronExpression})),ce=t(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define(`cronstrue`,[],r):typeof e==`object`?e.cronstrue=r():n.cronstrue=r()})(globalThis,()=>(()=>{var e={6949(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0}),t.CronParser=void 0;var r=n(9515);t.CronParser=function(){function e(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=!1),this.expression=e,this.dayOfWeekStartIndexZero=t,this.monthStartIndexZero=n}return e.prototype.parse=function(){var e,t=this.expression??``;if(t===`@reboot`)return e=[`@reboot`,``,``,``,``,``,``],e;if(t.startsWith(`@`)){var n=this.parseSpecial(this.expression);e=this.extractParts(n)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},e.prototype.parseSpecial=function(e){var t={"@yearly":`0 0 1 1 *`,"@annually":`0 0 1 1 *`,"@monthly":`0 0 1 * *`,"@weekly":`0 0 * * 0`,"@daily":`0 0 * * *`,"@midnight":`0 0 * * *`,"@hourly":`0 * * * *`,"@reboot":`@reboot`}[e];if(!t)throw Error(`Unknown special expression.`);return t},e.prototype.extractParts=function(e){if(!this.expression)throw Error(`cron expression is empty`);for(var t=e.trim().split(/[ ]+/),n=0;n<t.length;n++)if(t[n].includes(`,`)){var r=t[n].split(`,`).map(function(e){return e.trim()}).filter(function(e){return e!==``}).map(function(e){return isNaN(Number(e))?e:Number(e)}).filter(function(e){return e!==null&&e!==``});r.length===0&&r.push(`*`),r.sort(function(e,t){return e!==null&&t!==null?e-t:0}),t[n]=r.map(function(e){return e===null?``:e.toString()}).join(`,`)}if(t.length<5)throw Error(`Expression has only ${t.length} part${t.length==1?``:`s`}. At least 5 parts are required.`);if(t.length==5)t.unshift(``),t.push(``);else if(t.length==6)/\d{4}$/.test(t[5])||t[4]==`?`||t[2]==`?`?t.unshift(``):t.push(``);else if(t.length>7)throw Error(`Expression has ${t.length} parts; too many!`);return t},e.prototype.normalize=function(e){var t=this;if(e[3]=e[3].replace(`?`,`*`),e[5]=e[5].replace(`?`,`*`),e[2]=e[2].replace(`?`,`*`),e[0].indexOf(`0/`)==0&&(e[0]=e[0].replace(`0/`,`*/`)),e[1].indexOf(`0/`)==0&&(e[1]=e[1].replace(`0/`,`*/`)),e[2].indexOf(`0/`)==0&&(e[2]=e[2].replace(`0/`,`*/`)),e[3].indexOf(`1/`)==0&&(e[3]=e[3].replace(`1/`,`*/`)),e[4].indexOf(`1/`)==0&&(e[4]=e[4].replace(`1/`,`*/`)),e[6].indexOf(`1/`)==0&&(e[6]=e[6].replace(`1/`,`*/`)),e[5]=e[5].replace(/(^\d)|([^#/\s]\d)/g,function(e){var n=e.replace(/\D/,``),r=n;return t.dayOfWeekStartIndexZero?n==`7`&&(r=`0`):r=(parseInt(n)-1).toString(),e.replace(n,r)}),e[5]==`L`&&(e[5]=`6`),e[3]==`?`&&(e[3]=`*`),e[3].indexOf(`W`)>-1&&(e[3].indexOf(`,`)>-1||e[3].indexOf(`-`)>-1))throw Error(`The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.`);var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)e[5]=e[5].replace(new RegExp(r,`gi`),n[r].toString());e[4]=e[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(e){var n=e.replace(/\D/,``),r=n;return t.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),e.replace(n,r)});var i={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var a in i)e[4]=e[4].replace(new RegExp(a,`gi`),i[a].toString());e[0]==`0`&&(e[0]=``),!/\*|\-|\,|\//.test(e[2])&&(/\*|\//.test(e[1])||/\*|\//.test(e[0]))&&(e[2]+=`-${e[2]}`);for(var o=0;o<e.length;o++)if(e[o].indexOf(`,`)!=-1&&(e[o]=e[o].split(`,`).filter(function(e){return e!==``}).join(`,`)||`*`),e[o]==`*/1`&&(e[o]=`*`),e[o].indexOf(`/`)>-1&&!/^\*|\-|\,/.test(e[o])){var s=null;switch(o){case 4:s=`12`;break;case 5:s=`6`;break;case 6:s=`9999`;break;default:s=null;break}if(s!==null){var c=e[o].split(`/`);e[o]=`${c[0]}-${s}/${c[1]}`}}},e.prototype.validate=function(e){var t=`0-9,\\-*/`;this.validateOnlyExpectedCharactersFound(e[0],t),this.validateOnlyExpectedCharactersFound(e[1],t),this.validateOnlyExpectedCharactersFound(e[2],t),this.validateOnlyExpectedCharactersFound(e[3],`0-9,\\-*/LW`),this.validateOnlyExpectedCharactersFound(e[4],t),this.validateOnlyExpectedCharactersFound(e[5],`0-9,\\-*/L#`),this.validateOnlyExpectedCharactersFound(e[6],t),this.validateAnyRanges(e)},e.prototype.validateAnyRanges=function(e){r.default.secondRange(e[0]),r.default.minuteRange(e[1]),r.default.hourRange(e[2]),r.default.dayOfMonthRange(e[3]),r.default.monthRange(e[4],this.monthStartIndexZero),r.default.dayOfWeekRange(e[5],this.dayOfWeekStartIndexZero)},e.prototype.validateOnlyExpectedCharactersFound=function(e,t){var n=e.match(RegExp(`[^${t}]+`,`gi`));if(n&&n.length)throw Error(`Expression contains invalid values: '${n.toString()}'`)},e}()},8333(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0}),t.ExpressionDescriptor=void 0;var r=n(1823),i=n(6949);t.ExpressionDescriptor=function(){function e(t,n){if(this.expression=t,this.options=n,this.expressionParts=[,,,,,],!this.options.locale&&e.defaultLocale&&(this.options.locale=e.defaultLocale),!e.locales[this.options.locale]){var r=Object.keys(e.locales)[0];console.warn(`Locale '${this.options.locale}' could not be found; falling back to '${r}'.`),this.options.locale=r}this.i18n=e.locales[this.options.locale],n.use24HourTimeFormat===void 0&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return e.toString=function(t,n){var r=n===void 0?{}:n,i=r.throwExceptionOnParseError,a=i===void 0?!0:i,o=r.verbose,s=o===void 0?!1:o,c=r.dayOfWeekStartIndexZero,l=c===void 0?!0:c,u=r.monthStartIndexZero,d=u===void 0?!1:u,f=r.use24HourTimeFormat,p=r.trimHoursLeadingZero,m=p===void 0?!1:p,h=r.locale,g=h===void 0?null:h,_=r.logicalAndDayFields,v={throwExceptionOnParseError:a,verbose:s,dayOfWeekStartIndexZero:l,monthStartIndexZero:d,use24HourTimeFormat:f,trimHoursLeadingZero:m,locale:g,logicalAndDayFields:_===void 0?!1:_};return v.tzOffset&&console.warn(`'tzOffset' option has been deprecated and is no longer supported.`),new e(t,v).getFullDescription()},e.initialize=function(t,n){n===void 0&&(n=`en`),e.specialCharacters=[`/`,`-`,`,`,`*`],e.defaultLocale=n,t.load(e.locales)},e.prototype.getFullDescription=function(){var e,t=``;try{if(this.expressionParts=new i.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero).parse(),this.expressionParts[0]===`@reboot`)return(e=this.i18n).atReboot?.call(e)||`Run once, at startup`;var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),a=this.getMonthDescription(),o=this.getDayOfWeekDescription(),s=this.getYearDescription();t+=n+r+o+a+s,t=this.transformVerbosity(t,!!this.options.verbose),t=t.charAt(0).toLocaleUpperCase()+t.substr(1)}catch(e){if(!this.options.throwExceptionOnParseError)t=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw`${e}`}return t},e.prototype.getTimeOfDayDescription=function(){var t=this.expressionParts[0],n=this.expressionParts[1],i=this.expressionParts[2],a=``;if(!r.StringUtilities.containsAny(n,e.specialCharacters)&&!r.StringUtilities.containsAny(i,e.specialCharacters)&&!r.StringUtilities.containsAny(t,e.specialCharacters))a+=this.i18n.atSpace()+this.formatTime(i,n,t);else if(!t&&n.indexOf(`-`)>-1&&!(n.indexOf(`,`)>-1)&&!(n.indexOf(`/`)>-1)&&!r.StringUtilities.containsAny(i,e.specialCharacters)){var o=n.split(`-`);a+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(i,o[0],``),this.formatTime(i,o[1],``))}else if(!t&&i.indexOf(`,`)>-1&&i.indexOf(`-`)==-1&&i.indexOf(`/`)==-1&&!r.StringUtilities.containsAny(n,e.specialCharacters)){var s=i.split(`,`);a+=this.i18n.at();for(var c=0;c<s.length;c++)a&&(a+=` `),a+=this.formatTime(s[c],n,``),c<s.length-2&&(a+=`,`),c==s.length-2&&(a+=this.i18n.spaceAnd())}else{var l=this.getSecondsDescription(),u=this.getMinutesDescription(),d=this.getHoursDescription();if(a+=l,a&&u&&(a+=`, `),a+=u,u===d)return a;a&&d&&(a+=`, `),a+=d}return a},e.prototype.getSecondsDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Seconds(t),t)},function(t){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(t){return t==`0`?``:parseInt(t)<20?e.i18n.atX0SecondsPastTheMinute(t):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(t)},{min:0,max:59})},e.prototype.getMinutesDescription=function(){var e=this,t=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Minutes(t),t)},function(t){return e.i18n.minutesX0ThroughX1PastTheHour()},function(r){var i;try{return r==`0`&&n.indexOf(`/`)==-1&&t==``?e.i18n.everyHour():r==`0`?(i=e.i18n).onTheHour?.call(i)||e.i18n.atX0MinutesPastTheHour(r):parseInt(r)<20?e.i18n.atX0MinutesPastTheHour(r):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(r)}catch{return e.i18n.atX0MinutesPastTheHour(r)}},{min:0,max:59})},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2],n=0,i=[];t.split(`/`)[0].split(`,`).forEach(function(e){var t=e.split(`-`);t.length===2&&i.push({value:t[1],index:n+1}),n+=t.length});var a=0;return this.getSegmentDescription(t,this.i18n.everyHour(),function(t){var n=i.find(function(e){return e.value===t&&e.index===a})&&e.expressionParts[1]!==`0`;return a++,n?e.formatTime(t,`59`,``):e.formatTime(t,`0`,``)},function(t){return r.StringUtilities.format(e.i18n.everyX0Hours(t),t)},function(t){return e.i18n.betweenX0AndX1()},function(t){return e.i18n.atX0()},{min:0,max:23})},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek(),n=null;return n=this.expressionParts[5]==`*`?``:this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(n,r){var i=n;n.indexOf(`#`)>-1?i=n.substring(0,n.indexOf(`#`)):n.indexOf(`L`)>-1&&(i=i.replace(`L`,``));var a=parseInt(i),o=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(r)[a]:t[a];if(n.indexOf(`#`)>-1){var s=null,c=n.substring(n.indexOf(`#`)+1),l=n.substring(0,n.indexOf(`#`));switch(c){case`1`:s=e.i18n.first(l);break;case`2`:s=e.i18n.second(l);break;case`3`:s=e.i18n.third(l);break;case`4`:s=e.i18n.fourth(l);break;case`5`:s=e.i18n.fifth(l);break}o=s+` `+o}return o},function(t){return parseInt(t)==1?``:r.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(t),t)},function(t){var n=t.substring(0,t.indexOf(`-`));return e.expressionParts[3]==`*`?e.i18n.commaX0ThroughX1(n):e.i18n.commaAndX0ThroughX1(n)},function(t){var n=null;if(t.indexOf(`#`)>-1){var r=t.substring(t.indexOf(`#`)+1),i=t.substring(0,t.indexOf(`#`));n=e.i18n.commaOnThe(r,i).trim()+e.i18n.spaceX0OfTheMonth()}else n=t.indexOf(`L`)>-1?e.i18n.commaOnTheLastX0OfTheMonth(t.replace(`L`,``)):e.expressionParts[3]==`*`||e.options.logicalAndDayFields?e.i18n.commaOnlyOnX0(t):e.i18n.commaAndOnX0();return n}),n},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],``,function(n,r){return r&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:t[parseInt(n)-1]},function(t){return parseInt(t)==1?``:r.StringUtilities.format(e.i18n.commaEveryX0Months(t),t)},function(t){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()})},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,n=this.expressionParts[3];switch(n){case`L`:t=this.i18n.commaOnTheLastDayOfTheMonth();break;case`WL`:case`LW`:t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var i=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(i){var a=parseInt(i[0].replace(`W`,``)),o=a==1?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),a.toString());t=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),o);break}else{var s=n.match(/L-(\d{1,2})/);if(s){var c=s[1];t=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(c),c);break}else if(n==`*`&&this.expressionParts[5]!=`*`)return``;else t=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(t){return t==`L`?e.i18n.lastDay():e.i18n.dayX0?r.StringUtilities.format(e.i18n.dayX0(),t):t},function(t){return t==`1`?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(t)},function(t){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(t)},function(t){return e.i18n.commaOnDayX0OfTheMonth(t)});break}}return t},e.prototype.getYearDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[6],``,function(e){return/^\d+$/.test(e)?new Date(parseInt(e),1).getFullYear().toString():e},function(t){return r.StringUtilities.format(e.i18n.commaEveryX0Years(t),t)},function(t){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()})},e.prototype.getSegmentDescription=function(e,t,n,i,a,o,s){var c=null,l=e.indexOf(`/`)>-1,u=e.indexOf(`-`)>-1,d=e.indexOf(`,`)>-1;if(!e)c=``;else if(e===`*`)c=t;else if(!l&&!u&&!d)c=r.StringUtilities.format(o(e),n(e));else if(d){for(var f=e.split(`,`),p=``,m=this.i18n.spaceAnd(),h=0;h<f.length;h++)if(h>0&&f.length>2&&(p+=`,`,h<f.length-1&&(p+=` `)),h>0&&f.length>1&&(h==f.length-1||f.length==2)&&(p+=m==`,`&&f.length>2?` `:`${m} `),f[h].indexOf(`/`)>-1||f[h].indexOf(`-`)>-1){var g=f[h].indexOf(`-`)>-1&&f[h].indexOf(`/`)==-1,_=this.getSegmentDescription(f[h],t,n,i,g?this.i18n.commaX0ThroughX1:a,o);g&&(_=_.replace(`, `,``)),p+=_}else if(!l)p+=n(f[h]);else{var v=this.getSegmentDescription(f[h],t,n,i,a,o);v&&v.startsWith(`, `)&&(v=v.substring(2)),p+=v}c=l?p:r.StringUtilities.format(o(e),p)}else if(l){var f=e.split(`/`);if(c=r.StringUtilities.format(i(f[1]),f[1]),f[0].indexOf(`-`)>-1){var y=this.generateRangeSegmentDescription(f[0],a,n);y.indexOf(`, `)!=0&&(c+=`, `),c+=y}else if(f[0].indexOf(`*`)==-1){var b=r.StringUtilities.format(o(f[0]),n(f[0]));b=b.replace(`, `,``),c+=r.StringUtilities.format(this.i18n.commaStartingX0(),b)}c+=this.getWrappingIncrementDescription(e,s,t,n,i,a,o)}else u&&(c=this.generateRangeSegmentDescription(e,a,n));return c},e.prototype.getWrappingIncrementDescription=function(e,t,n,r,i,a,o){if(!this.options.verbose||!t)return``;var s=e.split(`/`),c=s[0],l=s[1],u=parseInt(l),d=t.max-t.min+1,f=c===`*`,p=Number.isInteger(u)&&u>1,m=p&&d%u===0;if(!f||!p||m)return``;for(var h=[],g=t.min;g<=t.max;g+=u)h.push(g);if(h.length<2)return``;var _=this.getSegmentDescription(h.join(`,`),n,r,i,a,o);return _?`, ${_}`:``},e.prototype.generateRangeSegmentDescription=function(e,t,n){var i=``,a=e.split(`-`),o=n(a[0],1),s=n(a[1],2),c=t(e);return i+=r.StringUtilities.format(c,o,s),i},e.prototype.formatTime=function(e,t,n){var r=0,i=0,a=parseInt(e)+r,o=parseInt(t)+i;o>=60?(o-=60,a+=1):o<0&&(o+=60,--a),a>=24?a-=24:a<0&&(a=24+a);var s=``,c=!1;this.options.use24HourTimeFormat||(c=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),s=c?`${this.getPeriod(a)} `:` ${this.getPeriod(a)}`,a>12&&(a-=12),a===0&&(a=12));var l=``;n&&(l=`:${(`00`+n).substring(n.length)}`);var u=a.toString(),d=(`00`+u).substring(u.length),f=o.toString(),p=(`00`+f).substring(f.length),m=this.options.trimHoursLeadingZero?u:d;return`${c?s:``}${m}:${p}${l}${c?``:s}`},e.prototype.transformVerbosity=function(e,t){if(!t&&(e=e.replace(RegExp(`, ${this.i18n.everyMinute()}`,`g`),``),e=e.replace(RegExp(`, ${this.i18n.everyHour()}`,`g`),``),e=e.replace(new RegExp(this.i18n.commaEveryDay(),`g`),``),e=e.replace(/\, ?$/,``),this.i18n.conciseVerbosityReplacements))for(var n=0,r=Object.entries(this.i18n.conciseVerbosityReplacements());n<r.length;n++){var i=r[n],a=i[0],o=i[1];e=e.replace(new RegExp(a,`g`),o)}return e},e.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||`PM`:this.i18n.am&&this.i18n.am()||`AM`},e.locales={},e}()},3747(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0}),t.enLocaleLoader=void 0;var r=n(9486);t.enLocaleLoader=function(){function e(){}return e.prototype.load=function(e){e.en=new r.en},e}()},9486(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.en=void 0,t.en=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return`An error occurred when generating the expression description. Check the cron expression syntax.`},e.prototype.everyMinute=function(){return`every minute`},e.prototype.everyHour=function(){return`every hour`},e.prototype.atSpace=function(){return`At `},e.prototype.everyMinuteBetweenX0AndX1=function(){return`Every minute between %s and %s`},e.prototype.at=function(){return`At`},e.prototype.spaceAnd=function(){return` and`},e.prototype.everySecond=function(){return`every second`},e.prototype.everyX0Seconds=function(){return`every %s seconds`},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return`seconds %s through %s past the minute`},e.prototype.atX0SecondsPastTheMinute=function(){return`at %s seconds past the minute`},e.prototype.everyX0Minutes=function(){return`every %s minutes`},e.prototype.minutesX0ThroughX1PastTheHour=function(){return`minutes %s through %s past the hour`},e.prototype.atX0MinutesPastTheHour=function(){return`at %s minutes past the hour`},e.prototype.everyX0Hours=function(){return`every %s hours`},e.prototype.betweenX0AndX1=function(){return`between %s and %s`},e.prototype.atX0=function(){return`at %s`},e.prototype.commaEveryDay=function(){return`, every day`},e.prototype.commaEveryX0DaysOfTheWeek=function(){return`, every %s days of the week`},e.prototype.commaX0ThroughX1=function(){return`, %s through %s`},e.prototype.commaAndX0ThroughX1=function(){return`, %s through %s`},e.prototype.first=function(){return`first`},e.prototype.second=function(){return`second`},e.prototype.third=function(){return`third`},e.prototype.fourth=function(){return`fourth`},e.prototype.fifth=function(){return`fifth`},e.prototype.commaOnThe=function(){return`, on the `},e.prototype.spaceX0OfTheMonth=function(){return` %s of the month`},e.prototype.lastDay=function(){return`the last day`},e.prototype.commaOnTheLastX0OfTheMonth=function(){return`, on the last %s of the month`},e.prototype.commaOnlyOnX0=function(){return`, only on %s`},e.prototype.commaAndOnX0=function(){return`, and on %s`},e.prototype.commaEveryX0Months=function(){return`, every %s months`},e.prototype.commaOnlyInX0=function(){return`, only in %s`},e.prototype.commaOnTheLastDayOfTheMonth=function(){return`, on the last day of the month`},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return`, on the last weekday of the month`},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return`, %s days before the last day of the month`},e.prototype.firstWeekday=function(){return`first weekday`},e.prototype.weekdayNearestDayX0=function(){return`weekday nearest day %s`},e.prototype.commaOnTheX0OfTheMonth=function(){return`, on the %s of the month`},e.prototype.commaEveryX0Days=function(){return`, every %s days in a month`},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return`, between day %s and %s of the month`},e.prototype.commaOnDayX0OfTheMonth=function(){return`, on day %s of the month`},e.prototype.commaEveryHour=function(){return`, every hour`},e.prototype.commaEveryX0Years=function(){return`, every %s years`},e.prototype.commaStartingX0=function(){return`, starting %s`},e.prototype.daysOfTheWeek=function(){return[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},e.prototype.monthsOfTheYear=function(){return[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},e.prototype.atReboot=function(){return`Run once, at startup`},e.prototype.onTheHour=function(){return`on the hour`},e}()},9515(e,t){Object.defineProperty(t,`__esModule`,{value:!0});function n(e,t){if(!e)throw Error(t)}t.default=function(){function e(){}return e.secondRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,`seconds part must be >= 0 and <= 59`)}},e.minuteRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,`minutes part must be >= 0 and <= 59`)}},e.hourRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=23,`hours part must be >= 0 and <= 23`)}},e.dayOfMonthRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=1&&i<=31,`DOM part must be >= 1 and <= 31`)}},e.monthRange=function(e,t){for(var r=e.split(`,`),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=1&&a<=12,t?`month part must be >= 0 and <= 11`:`month part must be >= 1 and <= 12`)}},e.dayOfWeekRange=function(e,t){for(var r=e.split(`,`),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=0&&a<=6,t?`DOW part must be >= 0 and <= 6`:`DOW part must be >= 1 and <= 7`)}},e}()},1823(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.StringUtilities=void 0,t.StringUtilities=function(){function e(){}return e.format=function(e){var t=[...arguments].slice(1);return e.replace(/%s/g,function(e){return t.shift()})},e.containsAny=function(e,t){return t.some(function(t){return e.indexOf(t)>-1})},e}()}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}var r={};return(()=>{var e=r;Object.defineProperty(e,`__esModule`,{value:!0}),e.toString=void 0;var t=n(8333),i=n(3747);t.ExpressionDescriptor.initialize(new i.enLocaleLoader),e.default=t.ExpressionDescriptor,e.toString=t.ExpressionDescriptor.toString})(),r})())})),le=se(),ue=e(ce(),1),C={frequency:`daily`,minute:0,hour:9,dayOfWeek:1,dayOfMonth:1};function de(e){let{minute:t,hour:n,dayOfWeek:r,dayOfMonth:i,frequency:a}=e;switch(a){case`hourly`:return`${t} * * * *`;case`daily`:return`${t} ${n} * * *`;case`weekly`:return`${t} ${n} * * ${r}`;case`monthly`:return`${t} ${n} ${i} * *`}}function w(e,t,n){if(!/^\d+$/.test(e))return null;let r=Number(e);return r>=t&&r<=n?r:null}function T(e){let t=e.trim().split(/\s+/);if(t.length!==5)return null;let[n,r,i,a,o]=t;if(a!==`*`)return null;let s=w(n,0,59);if(s===null)return null;if(r===`*`&&i===`*`&&o===`*`)return{...C,frequency:`hourly`,minute:s};let c=w(r,0,23);if(c===null)return null;if(i===`*`&&o===`*`)return{...C,frequency:`daily`,minute:s,hour:c};if(i===`*`){let e=w(o,0,7);return e===null?null:{...C,frequency:`weekly`,minute:s,hour:c,dayOfWeek:e===7?0:e}}if(o===`*`){let e=w(i,1,31);return e===null?null:{...C,frequency:`monthly`,minute:s,hour:c,dayOfMonth:e}}return null}function fe(e,t){if(!e.trim())return null;try{return new le.CronTime(e,t).sendAt().toJSDate()}catch{return null}}function pe(e){try{return ue.default.toString(e,{throwExceptionOnParseError:!0,use24HourTimeFormat:!0})}catch{return null}}function me(e,t=`long`){return new Intl.DateTimeFormat(void 0,{weekday:t,timeZone:`UTC`}).format(new Date(Date.UTC(2024,0,7+e)))}function he(e,t){return new Intl.DateTimeFormat(void 0,{hour:`numeric`,minute:`2-digit`}).format(new Date(2024,0,1,e,t))}function ge(e,t){return new Intl.DateTimeFormat(void 0,{timeZone:t,weekday:`short`,day:`numeric`,month:`short`,hour:`numeric`,minute:`2-digit`,timeZoneName:`short`}).format(e)}var E={key:0},_e={key:1},ve=5,ye=v(l({__name:`AgentValidationTooltip`,props:{disabled:{type:Boolean},fallback:{},action:{},issues:{default:()=>[]}},setup(e){let t=e,r=b(),l={incompatible_nodes:`agents.builder.preview.issue.tool.workflow.incompatibleNodes`,no_supported_trigger:`agents.builder.preview.issue.tool.workflow.noSupportedTrigger`},_={incompatible_nodes:`agents.publish.issue.tool.workflow.incompatibleNodes`,no_supported_trigger:`agents.publish.issue.tool.workflow.noSupportedTrigger`,not_published:`agents.publish.issue.tool.workflow.notPublished`},v={instructions:`agents.chat.misconfigured.missing.instructions`,model:`agents.chat.misconfigured.missing.model`,credential:`agents.chat.misconfigured.missing.credential`},y={"agent.instructions.missing_required":`agents.builder.preview.issue.agent.instructions.missingRequired`,"agent.model.missing_required":`agents.builder.preview.issue.agent.model.missingRequired`,"agent.model.invalid_value":`agents.builder.preview.issue.agent.model.invalidValue`,"agent.credential.missing_credential":`agents.builder.preview.issue.agent.credential.missingCredential`,"agent.credential.invalid_credential":`agents.builder.preview.issue.agent.credential.invalidCredential`,"agent.credential.incompatible_credential":`agents.builder.preview.issue.agent.credential.incompatibleCredential`,"agent.modelDeploymentName.missing_required":`agents.builder.preview.issue.agent.modelDeploymentName.missingRequired`,"mcpServer.url.missing_required":`agents.builder.preview.issue.mcpServer.missingRequired`},ne={"agent.instructions.missing_required":`agents.publish.issue.agent.instructions.missingRequired`,"agent.model.missing_required":`agents.publish.issue.agent.model.missingRequired`,"agent.model.invalid_value":`agents.publish.issue.agent.model.invalidValue`,"agent.credential.missing_credential":`agents.publish.issue.agent.credential.missingCredential`,"agent.credential.invalid_credential":`agents.publish.issue.agent.credential.invalidCredential`,"agent.credential.incompatible_credential":`agents.publish.issue.agent.credential.incompatibleCredential`,"agent.modelDeploymentName.missing_required":`agents.publish.issue.agent.modelDeploymentName.missingRequired`,"mcpServer.url.missing_required":`agents.publish.issue.mcpServer.missingRequired`,"tool.node.url.invalid_value":`agents.publish.issue.tool.node.url.invalidValue`},re={"subAgent.missing_reference":`agents.builder.preview.issue.subAgent.missingReference`,"subAgent.incompatible_reference":`agents.builder.preview.issue.subAgent.incompatibleReference`,"skill.missing_reference":`agents.builder.preview.issue.skill.missingReference`,"tool.workflow.missing_reference":`agents.builder.preview.issue.tool.workflow.missingReference`,"tool.workflow.incompatible_reference":`agents.builder.preview.issue.tool.workflow.incompatibleReference`,"tool.custom.missing_reference":`agents.builder.preview.issue.tool.custom.missingReference`,"tool.node.missing_reference":`agents.builder.preview.issue.tool.node.missingReference`,"tool.node.missing_credential":`agents.builder.preview.issue.tool.node.missingCredential`,"tool.node.invalid_credential":`agents.builder.preview.issue.tool.node.invalidCredential`,"mcpServer.missing_credential":`agents.builder.preview.issue.mcpServer.missingCredential`,"mcpServer.invalid_credential":`agents.builder.preview.issue.mcpServer.invalidCredential`,"mcpServer.incompatible_credential":`agents.builder.preview.issue.mcpServer.incompatibleCredential`,"vectorStore.invalid_value":`agents.builder.preview.issue.vectorStore.invalidValue`},ie={"channel.missing_credential":`agents.publish.issue.channel.missingCredential`,"channel.invalid_credential":`agents.publish.issue.channel.invalidCredential`,"channel.incompatible_credential":`agents.publish.issue.channel.incompatibleCredential`,"subAgent.missing_reference":`agents.publish.issue.subAgent.missingReference`,"subAgent.incompatible_reference":`agents.publish.issue.subAgent.incompatibleReference`,"skill.missing_reference":`agents.publish.issue.skill.missingReference`,"task.missing_reference":`agents.publish.issue.task.missingReference`,"task.invalid_value":`agents.publish.issue.task.invalidValue`,"tool.workflow.missing_reference":`agents.publish.issue.tool.workflow.missingReference`,"tool.workflow.incompatible_reference":`agents.publish.issue.tool.workflow.incompatibleReference`,"tool.custom.missing_reference":`agents.publish.issue.tool.custom.missingReference`,"tool.node.missing_reference":`agents.publish.issue.tool.node.missingReference`,"tool.node.missing_credential":`agents.publish.issue.tool.node.missingCredential`,"tool.node.invalid_credential":`agents.publish.issue.tool.node.invalidCredential`,"mcpServer.missing_credential":`agents.publish.issue.mcpServer.missingCredential`,"mcpServer.invalid_credential":`agents.publish.issue.mcpServer.invalidCredential`,"mcpServer.incompatible_credential":`agents.publish.issue.mcpServer.incompatibleCredential`,"vectorStore.invalid_value":`agents.publish.issue.vectorStore.invalidValue`},ae={agent:`agents.chat.misconfigured.missing.agent`,channel:`agents.builder.triggers.title`,tool:`agents.chat.misconfigured.missing.tools`,mcpServer:`agents.chat.misconfigured.missing.mcpServers`,skill:`agents.builder.sections.skills`,task:`agents.builder.tasks.title`,subAgent:`agents.chat.misconfigured.missing.subAgents.agents`,vectorStore:`agents.builder.vectorStores.panel.title`};function oe(e){return e.capability.kind===`channel`||e.capability.kind===`task`||te(e)?!1:!(e.code===`invalid_value`&&e.path.endsWith(`.node.nodeParameters.url`))}function se(e){let t=e.capability.kind===`agent`?v[e.path]:void 0;return r.baseText(t??ae[e.capability.kind])}function ce(e){if(e.capability.kind===`agent`)return`agent.${e.path}.${e.code}`;if(e.capability.kind===`mcpServer`&&e.path.endsWith(`.url`))return`mcpServer.url.${e.code}`;if(e.capability.kind===`tool`&&e.capability.toolType===`node`&&e.path.endsWith(`.node.nodeParameters.url`))return`tool.node.url.${e.code}`}function le(e){let t=r.baseText(ee(e),{interpolate:x(e)});return`${se(e)}: ${t}`}function ue(e){return de(e,l,y,re)}function C(e){return de(e,_,ne,ie)}function de(e,t,n,i){let{kind:a,toolType:o}=e.capability,s=ce(e),c=(e.reason?t[e.reason]:void 0)??(s?n[s]:void 0)??(a===`tool`&&o?i[`tool.${o}.${e.code}`]:void 0)??i[`${a}.${e.code}`];return c?r.baseText(c,{interpolate:x(e)}):le(e)}let w=o(()=>t.action===`preview`),T=o(()=>{let e=w.value?t.issues.filter(oe):t.issues;return[...new Set(e.map(e=>w.value?ue(e):C(e)))]}),fe=o(()=>T.value.slice(0,ve)),pe=o(()=>Math.max(T.value.length-ve,0)),me=o(()=>pe.value>0?r.baseText(`agents.validationTooltip.more`,{interpolate:{count:pe.value}}):``);return(e,r)=>(m(),i(c(S),{disabled:t.disabled,content:t.fallback,"content-class":e.$style.tooltip},{content:g(()=>[T.value.length>0?(m(),s(`div`,{key:0,class:d(e.$style.content)},[n(`div`,{class:d(e.$style.heading)},h(t.fallback),3),n(`div`,{class:d(e.$style.previewDetails)},[(m(!0),s(f,null,u(fe.value,e=>(m(),s(`div`,{key:e},h(e),1))),128)),pe.value>0?(m(),s(`div`,E,h(me.value),1)):a(``,!0)],2)],2)):(m(),s(`span`,_e,h(t.fallback),1))]),default:g(()=>[p(e.$slots,`default`)]),_:3},8,[`disabled`,`content`,`content-class`]))}}),[[`__cssModules`,{$style:{tooltip:`_tooltip_1n0ef_1`,content:`_content_1n0ef_7`,heading:`_heading_1n0ef_13`,previewDetails:`_previewDetails_1n0ef_17`}}]]),be=l({__name:`AgentPreviewButton`,props:{isRunnable:{type:Boolean},isPreviewOpen:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1},variant:{default:`subtle`},validationIssues:{default:()=>[]},testId:{default:void 0}},emits:[`open-preview`,`close-preview`],setup(e,{emit:t}){let n=e,r=t,a=b(),s=o(()=>!n.isPreviewOpen&&!n.isRunnable),l=o(()=>n.isPreviewOpen?a.baseText(`agents.builder.preview.close.ariaLabel`):a.baseText(`agents.builder.preview.button`)),u=o(()=>a.baseText(`agents.builder.preview.disabledTooltip`));function d(){if(n.isPreviewOpen){r(`close-preview`);return}s.value||r(`open-preview`)}return(e,t)=>(m(),i(ye,{disabled:!s.value,fallback:u.value,action:`preview`,issues:n.validationIssues},{default:g(()=>[n.iconOnly?(m(),i(c(_),{key:0,"model-value":n.isPreviewOpen,variant:`subtle`,size:`medium`,icon:`flask-conical`,label:l.value,disabled:s.value,"data-testid":n.testId,onClick:d},null,8,[`model-value`,`label`,`disabled`,`data-testid`])):(m(),i(c(y),{key:1,variant:n.variant,size:`medium`,icon:`flask-conical`,label:l.value,disabled:s.value,"data-testid":n.testId,onClick:d},null,8,[`variant`,`label`,`disabled`,`data-testid`]))]),_:1},8,[`disabled`,`fallback`,`issues`]))}});export{pe as a,fe as c,de as i,T as l,ye as n,ge as o,C as r,he as s,be as t,me as u};
@@ -0,0 +1 @@
1
+ try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`3aa3df53-57f5-4c8d-a042-dd436fcd5f34`,e._sentryDebugIdIdentifier=`sentry-dbid-3aa3df53-57f5-4c8d-a042-dd436fcd5f34`)})()}catch{}import{$d as e,Af as t,Fd as n,Hd as r,Id as i,Ld as a,Nf as o,Pd as s,Rd as c,Tf as l,Vd as u,Vf as d,Wd as f,Xu as p,_f as m,cp as h,cs as g,ff as _,lf as v,of as y,pp as b,ss as x,xf as S,yf as C}from"./vendor-DS7UZyZ6.js";import{AT as w,DT as T,FT as E,Kv as D,TT as O,Tm as k,VC as A,_m as j,aC as M,aT as N,as as P,bT as ee,hm as F,td as I,uT as L,vm as R,wi as z,wm as te,ws as ne,xT as B,zv as V}from"./app-oLfukFT9.js";import{i as H,t as U}from"./AgentChatPanel-CAcdBPjt.js";import{n as W,t as G}from"./ChatHistoryDropdownTrigger-DfBNY3-M.js";import{t as K}from"./useAgentConfirmationModal--ha2EHAX.js";import{n as q,t as J}from"./thread-title-DtF3IdnY.js";var Y=64;function re(e){let t=ie(e.routeBacked);return{...t,...oe(e,t.effectiveSessionId),...se(e,t)}}function ie(e){let t=x(),n=g(),r=o(null),i=o(null),a=o(null),{continueSessionId:c,pendingRouteSessionId:l}=ae(e,r,i,a),u=s(()=>(e.value?l.value??c.value:void 0)??r.value??void 0),d=s(()=>i.value!==null&&i.value===u.value),f=s(()=>a.value!==null&&a.value===u.value);function p(o,s=o===i.value){if(r.value=o,i.value=s?o:null,a.value=s?o:null,!e.value)return;l.value=o;let c={...t.query,[F]:o};s&&delete c[j],n.replace({query:c})}function m(e){p(e)}function h(){if(!e.value)return;let{[F]:r,...i}=t.query;n.replace({query:i})}function _(e){e!==`__empty__`&&p(e)}function v(){p(crypto.randomUUID(),!0)}function y(e){i.value===e&&(i.value=null)}return{activeChatSessionId:r,continueSessionId:c,effectiveSessionId:u,currentSessionIsEphemeral:d,currentSessionIsLocallyMinted:f,setSessionInUrl:m,clearContinueSessionParam:h,onSessionPick:_,onNewChat:v,markSessionCreated:y}}function ae(e,t,n,r){let i=x(),a=o(null),c=s(()=>{let e=i.query[F],t=Array.isArray(e)?e[0]:e;return typeof t==`string`&&t.length>0?t:void 0});return C([e,c],([e,i])=>{if(!e){a.value=null;return}i&&i!==r.value&&(n.value=null,r.value=null),a.value!==null&&(a.value=null),i&&(t.value=i)},{immediate:!0}),C(t,t=>{t===null?(a.value=null,n.value=null,r.value=null):(r.value!==null&&t!==r.value&&(n.value=null,r.value=null),e.value&&t!==c.value&&(a.value=t))}),{continueSessionId:c,pendingRouteSessionId:a}}function oe({projectId:e,agentId:t},n){let r=q(),i=E(),a=J(),o=s(()=>r.previewThreads.filter(n=>n.canContinueInPreview&&n.projectId===e.value&&n.agentId===t.value)),c=r=>r?.id===n.value&&r?.projectId===e.value&&r?.agentId===t.value,l=s(e=>o.value.find(c)??r.threads.find(c)??(c(e)?e:void 0));return{previewThreads:o,currentSession:l,currentSessionHasMessages:s(()=>!!l.value),currentSessionTitle:s(()=>n.value?l.value?B(a(l.value),Y):i.baseText(`agents.builder.chat.newChat.label`):``),sessionMenu:s(()=>o.value.map(e=>({id:e.id,title:a(e),label:B(a(e),Y),updatedAt:e.updatedAt})))}}function se({projectId:e,agentId:n},{effectiveSessionId:r,onNewChat:i}){let a=q(),s=E(),c=M(),u=V(),d=o(!1),f=!1;l()&&t(()=>f=!0);async function p(t){if(f||d.value||!t)return!1;let o=e.value,l=n.value;if(!o||!l)return!1;let p=()=>!f&&e.value===o&&n.value===l;d.value=!0;try{return await c.confirm(s.baseText(`agentSessions.deleteConfirm.message`),s.baseText(`agentSessions.deleteConfirm.headline`),{type:`warning`,confirmButtonText:s.baseText(`agentSessions.deleteConfirm.confirmButtonText`),cancelButtonText:``})!==`confirm`||!p()||(await a.deleteThread(o,l,t),!p())?!1:(u.showMessage({title:s.baseText(`agentSessions.showMessage.deleted`),type:`success`}),r.value===t&&i(),!0)}catch(e){return p()&&u.showError(e,s.baseText(`agentSessions.showError.delete`)),!1}finally{d.value=!1}}return{isDeletingSession:d,deleteSession:p}}var X=f({__name:`AgentSessionHistoryDropdown`,props:{sessionOptions:{},canDeleteSession:{type:Boolean,default:!1},isDeletingSession:{type:Boolean,default:!1}},emits:[`select`,`delete`],setup(e,{emit:t}){let n=e,r=t,a=E(),o=q(),c=[{id:`delete`,label:a.baseText(`agentSessions.delete`),icon:`trash-2`,variant:`destructive`}],{search:l,filteredItems:u,handleSearch:f}=N(s(()=>n.sessionOptions.map(e=>({id:e.id,label:e.label??e.title,disabled:e.disabled,data:{fullTitle:e.title,updatedAt:e.updatedAt,actions:!e.disabled&&n.canDeleteSession?c:void 0}}))),{isSearchable:e=>!e.disabled,searchFields:e=>[e.label,e.data?.fullTitle]}),p=s(()=>a.baseText(l.value.trim()?`agents.builder.chat.sessionPicker.noMatch`:`agents.builder.chat.sessionPicker.empty`));function m(e,t){e!==`delete`||!n.canDeleteSession||n.isDeletingSession||r(`delete`,t)}return(e,t)=>(y(),i(W,{items:d(u),"search-placeholder":d(a).baseText(`agents.builder.chat.sessionPicker.searchPlaceholder`),"empty-text":p.value,loading:d(o).loading,"action-button-label":d(a).baseText(`agentSessions.actions`),"actions-disabled":n.isDeletingSession,"content-test-id":`agent-preview-session-list`,"data-test-id":`agent-preview-session-switcher`,onSearch:d(f),onSelect:t[0]||=e=>r(`select`,e),onAction:m},{trigger:S(()=>[v(e.$slots,`trigger`)]),_:3},8,[`items`,`search-placeholder`,`empty-text`,`loading`,`action-button-label`,`actions-disabled`,`onSearch`]))}}),Z=w(f({__name:`AgentPreviewChatPage`,props:{visible:{type:Boolean,default:!0},initialized:{type:Boolean},projectId:{},agentId:{},agent:{},localConfig:{},connectedTriggers:{},effectiveSessionId:{},newSession:{type:Boolean,default:!1},initialPrompt:{},canSendToAssistant:{type:Boolean},dismissedFixToolCallIds:{default:()=>[]},beforeSend:{},layout:{default:`dock`},budgetCards:{type:Boolean,default:!1},increaseBudget:{type:Function,default:void 0}},emits:[`continue-loaded`,`session-created`,`open-build`,`send-to-assistant`,`initial-consumed`],setup(e,{expose:t,emit:r}){let s=e,c=r,l=o(``),u=m(`chatPanel`);function f(e){u.value?.focusInput(e)}function p(){return u.value?.getConversationMarkdown()??``}function g(e){u.value?.clearBudgetStops(e)}return C([()=>s.initialPrompt,u],([e,t])=>{!e||!t||t.sendMessageFromOutside(e)},{immediate:!0,flush:`post`}),t({focusInput:f,getConversationMarkdown:p,clearBudgetStops:g}),(t,r)=>(y(),i(_(e.layout===`page`?`main`:`div`),{class:h([t.$style.previewPage,{[t.$style.pageLayout]:e.layout===`page`}]),"data-testid":`agent-preview-chat-page`},{default:S(()=>[n(`div`,{class:h(t.$style.chatFrame)},[e.initialized&&e.effectiveSessionId?(y(),i(U,{key:`preview-${e.effectiveSessionId}`,ref_key:`chatPanel`,ref:u,"input-draft":l.value,"onUpdate:inputDraft":r[0]||=e=>l.value=e,"project-id":e.projectId,"agent-id":e.agentId,visible:e.visible,"background-jobs-active":e.visible,mode:`inline`,"continue-session-id":e.effectiveSessionId,"new-session":e.newSession,"agent-config":e.localConfig,"agent-status":d(H)(e.agent),"connected-triggers":e.connectedTriggers,"can-send-to-assistant":e.canSendToAssistant,"dismissed-fix-tool-call-ids":e.dismissedFixToolCallIds,"before-send":e.beforeSend,"budget-cards":e.budgetCards,"increase-budget":e.increaseBudget,onContinueLoaded:r[1]||=e=>c(`continue-loaded`,e),onSessionCreated:r[2]||=e=>c(`session-created`,e),onInitialConsumed:r[3]||=e=>c(`initial-consumed`),onOpenBuild:r[4]||=e=>c(`open-build`),onSendToAssistant:r[5]||=e=>c(`send-to-assistant`,e)},null,8,[`input-draft`,`project-id`,`agent-id`,`visible`,`background-jobs-active`,`continue-session-id`,`new-session`,`agent-config`,`agent-status`,`connected-triggers`,`can-send-to-assistant`,`dismissed-fix-tool-call-ids`,`before-send`,`budget-cards`,`increase-budget`])):a(``,!0)],2)]),_:1},8,[`class`]))}}),[[`__cssModules`,{$style:{previewPage:`_previewPage_dda05_1`,pageLayout:`_pageLayout_dda05_10`,chatFrame:`_chatFrame_dda05_14`}}]]);function ce(){let e=E(),t=D(),n=q(),r=I(),{showError:i,showMessage:a}=V(),{openAgentConfirmationModal:c}=K(),l=o(!1),u=s(()=>localStorage.getItem(`instanceAi.debugMode`)===`true`&&t.moduleSettings.agents?.proxyEnabled===!0);async function d({projectId:t,agentId:o,threadId:s}){if(!(!u.value||l.value)){l.value=!0;try{if(await c({title:e.baseText(`agentSessions.langsmithExport.confirm.title`),description:e.baseText(`agentSessions.langsmithExport.confirm.body`),confirmButtonText:e.baseText(`agentSessions.langsmithExport.confirm.button`),cancelButtonText:e.baseText(`generic.cancel`)})!==`confirm`)return;let{traceId:i}=await n.exportThreadToLangSmith(t,o,s);await r.copy(i).catch(()=>{}),a({title:e.baseText(`agentSessions.langsmithExport.success`),message:e.baseText(`agentSessions.langsmithExport.successMessage`,{interpolate:{traceId:i}}),type:`success`})}catch(t){i(t,e.baseText(`agentSessions.langsmithExport.error`))}finally{l.value=!1}}}return{isEnabled:u,isExporting:l,sendSession:d}}var le={key:0},ue={key:1},de={key:2},fe=`copy-link`,pe=`copy-conversation`,me=`open-in-new-tab`,Q=`toggle-full-width`,he=`export-session`,ge=`delete-session`,_e=w(f({__name:`AgentPreviewMoreMenu`,props:{projectId:{},agentId:{},effectiveSessionId:{},hasSession:{type:Boolean},canDeleteSession:{type:Boolean,default:!1},isDeletingSession:{type:Boolean,default:!1},isFullWidth:{type:Boolean},isLangSmithExportEnabled:{type:Boolean},isExporting:{type:Boolean},getConversationMarkdown:{}},emits:[`toggle-full-width`,`export-session`,`delete-session`],setup(e,{emit:t}){let l=e,f=t,p=E(),m=g(),_=I(),v=V(),x=q(),w=o(null),D=s(function(){return l.hasSession&&!!l.effectiveSessionId}),j=s(()=>[{id:fe,label:p.baseText(`agents.builder.preview.more.copyLink`),icon:{type:`icon`,value:`link`},disabled:!D.value},{id:pe,label:p.baseText(`agents.builder.preview.more.copyConversation`),icon:{type:`icon`,value:`copy`},disabled:!l.hasSession},{id:me,label:p.baseText(`agents.builder.preview.layout.openInNewTab`),icon:{type:`icon`,value:`external-link`},disabled:!D.value},{id:Q,label:p.baseText(`agents.builder.preview.more.fullWidth`),icon:l.isFullWidth?{type:`icon`,value:`minimize-2`}:{type:`icon`,value:`maximize-2`},keepOpen:!0,checkbox:!0,checked:l.isFullWidth},...l.isLangSmithExportEnabled&&l.hasSession&&l.effectiveSessionId?[{id:he,label:p.baseText(`agentSessions.langsmithExport.button`),icon:{type:`icon`,value:`bug`},disabled:l.isExporting}]:[],...l.canDeleteSession?[{id:ge,label:p.baseText(`agentSessions.delete`),icon:{type:`icon`,value:`trash`},divided:!0,destructive:!0,disabled:!l.hasSession||!l.effectiveSessionId||l.isDeletingSession}]:[]]),M=s(()=>{let e=w.value?.source;return!e||e===`chat`||e===`n8n_chat`?p.baseText(`agentSessions.origin.preview`):e===`instance-ai`?p.baseText(`agentSessions.origin.instanceAi`):e===`n8n_chat_production`?p.baseText(`agentSessions.origin.n8nChat`):e.charAt(0).toUpperCase()+e.slice(1)}),N=s(()=>{switch(w.value?.source){case`slack`:case`telegram`:case`linear`:case`discord`:case`whatsapp`:case`teams`:case`mcp`:case`workflow`:case`webhook`:return w.value.source;case`instance-ai`:return`sparkles`;case`n8n_chat_production`:return`message-square`;default:return`bolt-filled`}}),P=s(()=>{let e=w.value;return e?`${(e.totalPromptTokens+e.totalCompletionTokens).toLocaleString()}t ($${e.totalCost.toFixed(4)})`:`—`}),z=s(()=>{let e=w.value?.totalDuration??0;return e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}),B=s(()=>{let e=w.value?.updatedAt;if(!e)return`—`;let{date:t,time:n}=ne(e);return`${t} ${n}`});function H(){return m.resolve({name:te,params:{projectId:l.projectId,agentId:l.agentId},query:{[F]:l.effectiveSessionId,[R]:`true`}})}async function U(){try{let e=new URL(H().href,window.location.origin).href;await _.copy(e),v.showMessage({title:p.baseText(`agents.builder.preview.more.linkCopied`),type:`success`})}catch(e){v.showError(e,p.baseText(`agents.builder.preview.more.copyLinkError`))}}async function W(){try{let e=l.getConversationMarkdown();if(!e)return;await _.copy(e),v.showMessage({title:p.baseText(`agents.builder.preview.more.conversationCopied`),type:`success`})}catch(e){v.showError(e,p.baseText(`agents.builder.preview.more.copyConversationError`))}}function G(e){switch(e){case fe:if(!D.value)return;U();break;case pe:W();break;case me:{if(!D.value)return;let e=m.resolve({name:k,params:{projectId:l.projectId,agentId:l.agentId},query:{[F]:l.effectiveSessionId}});window.open(e.href,`_blank`,`noopener`);break}case Q:f(`toggle-full-width`);break;case he:l.hasSession&&l.effectiveSessionId&&!l.isExporting&&f(`export-session`);break;case ge:l.canDeleteSession&&l.hasSession&&l.effectiveSessionId&&!l.isDeletingSession&&f(`delete-session`);break}}let K=0;async function J(){let e=++K,t=l.effectiveSessionId;if(!t){w.value=null;return}try{let n=await x.getThreadDetail(l.projectId,l.agentId,t);e===K&&(w.value={...n.thread,source:n.executions.find(function(e){return e.source!==null})?.source})}catch{e===K&&(w.value=null)}}function Y(e){e&&J()}return C([()=>l.projectId,()=>l.agentId,()=>l.effectiveSessionId],function(){w.value=null,J()},{immediate:!0}),(e,t)=>(y(),i(d(ee),{placement:`bottom`,content:d(p).baseText(`agents.builder.preview.more.label`)},{default:S(()=>[r(d(L),{items:j.value,placement:`bottom-end`,"extra-popper-class":e.$style.moreMenu,onSelect:G,"onUpdate:modelValue":Y},{trigger:S(()=>[r(d(O),{icon:`ellipsis`,variant:`ghost`,size:`small`,"icon-size":`large`,"aria-label":d(p).baseText(`agents.builder.preview.more.label`),"data-testid":`agent-preview-more-btn`},null,8,[`aria-label`])]),"item-trailing":S(({item:t})=>[t.id===Q?(y(),i(d(A),{key:0,"model-value":l.isFullWidth,size:`small`,tabindex:`-1`,"aria-hidden":`true`,class:h(e.$style.layoutSwitch)},null,8,[`model-value`,`class`])):a(``,!0)]),footer:S(()=>[n(`ul`,{class:h(e.$style.sessionMetadata)},[M.value?(y(),c(`li`,le,[r(d(T),{icon:N.value,size:12},null,8,[`icon`]),u(b(M.value),1)])):a(``,!0),w.value?(y(),c(`li`,ue,b(P.value)+` • `+b(z.value),1)):a(``,!0),w.value?.updatedAt?(y(),c(`li`,de,b(d(p).baseText(`agents.builder.preview.more.lastMessageSent`,{interpolate:{date:B.value}})),1)):a(``,!0)],2)]),_:1},8,[`items`,`extra-popper-class`])]),_:1},8,[`content`]))}}),[[`__cssModules`,{$style:{moreMenu:`_moreMenu_11fp0_1`,layoutSwitch:`_layoutSwitch_11fp0_5`,sessionMetadata:`_sessionMetadata_11fp0_9`}}]]),ve=[`aria-label`,`aria-hidden`,`inert`,`data-preview-layout`],$=function(e){return e.Docked=`docked`,e.Fullpage=`fullpage`,e}($||{}),ye=w(f({__name:`AgentPreviewDock`,props:{sessionTitle:{},sessionOptions:{},hasSession:{type:Boolean},initialized:{type:Boolean},projectId:{},agentId:{},agent:{},localConfig:{},connectedTriggers:{},isOpen:{type:Boolean},effectiveSessionId:{},newSession:{type:Boolean,default:!1},initialPrompt:{},canSendToAssistant:{type:Boolean},dismissedFixToolCallIds:{default:()=>[]},canDeleteSession:{type:Boolean,default:!1},beforeSend:{},isDeletingSession:{type:Boolean,default:!1},budgetCards:{type:Boolean,default:!1},increaseBudget:{type:Function,default:void 0}},emits:[`view-trace`,`new-session`,`delete-session`,`session-select`,`close`,`continue-loaded`,`session-created`,`open-build`,`send-to-assistant`,`initial-consumed`],setup(t,{expose:o,emit:l}){let u=t,f=l,g=E(),_=m(`dock`),{isEnabled:v,isExporting:b,sendSession:x}=ce(),w=m(`previewChatPage`),T=p(`N8N_AGENT_PREVIEW_LAYOUT`,$.Docked),D=s(()=>T.value===$.Fullpage?$.Fullpage:$.Docked);function k(){!u.canDeleteSession||!u.hasSession||!u.effectiveSessionId||u.isDeletingSession||f(`delete-session`,u.effectiveSessionId)}function A(){!u.hasSession||!u.effectiveSessionId||(T.value=$.Docked,f(`view-trace`))}function j(){!u.hasSession||!u.effectiveSessionId||x({projectId:u.projectId,agentId:u.agentId,threadId:u.effectiveSessionId})}function M(){f(`new-session`)}function N(){f(`close`)}function F(){return w.value?.getConversationMarkdown()??``}function I(e){w.value?.clearBudgetStops(e)}function L(){T.value=D.value===$.Fullpage?$.Docked:$.Fullpage}C([()=>u.isOpen,()=>u.initialized,()=>u.effectiveSessionId],async function([t,n,r]){!t||!n||!r||(await e(),w.value?.focusInput({preventScroll:!0}))},{flush:`post`});function R(e){e.defaultPrevented||e.isComposing||e.key!==`Escape`||e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||!u.isOpen||_.value?.contains(e.target)!==!0||e.target instanceof Element&&e.target.closest(`[role="dialog"]`)!==null||(e.preventDefault(),e.stopPropagation(),N())}return z({"ctrl+shift+;":M}),o({clearBudgetStops:I}),(e,t)=>(y(),c(`aside`,{ref_key:`dock`,ref:_,class:h([e.$style.dock,{[e.$style.open]:u.isOpen}]),"aria-label":d(g).baseText(`agents.builder.preview.button`),"aria-hidden":!u.isOpen,inert:!u.isOpen,onKeydown:R,"data-preview-layout":D.value,"data-testid":`agent-preview-dock`},[n(`div`,{class:h([e.$style.dockInner,{[e.$style.fullpage]:D.value===$.Fullpage}])},[n(`header`,{class:h(e.$style.header),"data-testid":`agent-preview-dock-header`},[n(`div`,{class:h(e.$style.sessionHistory)},[r(X,{"session-options":u.sessionOptions,"can-delete-session":u.canDeleteSession,"is-deleting-session":u.isDeletingSession,onSelect:t[0]||=e=>f(`session-select`,e),onDelete:t[1]||=e=>f(`delete-session`,e)},{trigger:S(()=>[r(G,{title:u.hasSession?u.sessionTitle:void 0,"data-testid":`agent-preview-history-trigger`},null,8,[`title`])]),_:1},8,[`session-options`,`can-delete-session`,`is-deleting-session`])],2),n(`div`,{class:h(e.$style.actions)},[u.hasSession&&u.effectiveSessionId?(y(),i(d(ee),{key:0,content:d(g).baseText(`agents.builder.preview.viewSession`),placement:`bottom`,"show-after":d(500),"data-testid":`agent-preview-view-session-tooltip`},{default:S(()=>[r(d(O),{icon:`list-tree`,variant:`ghost`,size:`small`,"icon-size":`large`,"aria-label":d(g).baseText(`agents.builder.preview.viewSession`),"data-testid":`agent-preview-view-session-btn`,onClick:A},null,8,[`aria-label`])]),_:1},8,[`content`,`show-after`])):a(``,!0),r(P,{placement:`bottom`,label:d(g).baseText(`agents.builder.chat.newChat.label`),shortcut:{metaKey:!0,shiftKey:!0,keys:[`;`]}},{default:S(()=>[r(d(O),{icon:`message-circle-plus`,variant:`ghost`,size:`small`,"icon-size":`large`,"aria-label":d(g).baseText(`agents.builder.chat.newChat.label`),"data-testid":`agent-preview-new-chat-btn`,onClick:M},null,8,[`aria-label`])]),_:1},8,[`label`]),r(_e,{"project-id":u.projectId,"agent-id":u.agentId,"effective-session-id":u.effectiveSessionId,"has-session":u.hasSession,"can-delete-session":u.canDeleteSession,"is-deleting-session":u.isDeletingSession,"is-full-width":D.value===$.Fullpage,"is-lang-smith-export-enabled":d(v),"is-exporting":d(b),"get-conversation-markdown":F,onToggleFullWidth:L,onExportSession:j,onDeleteSession:k},null,8,[`project-id`,`agent-id`,`effective-session-id`,`has-session`,`can-delete-session`,`is-deleting-session`,`is-full-width`,`is-lang-smith-export-enabled`,`is-exporting`]),r(P,{placement:`bottom`,label:d(g).baseText(`agents.builder.preview.close.ariaLabel`),shortcut:{metaKey:!1,shiftKey:!1,keys:[`esc`]}},{default:S(()=>[r(d(O),{icon:`x`,variant:`ghost`,size:`small`,"icon-size":`large`,"aria-label":d(g).baseText(`agents.builder.preview.close.ariaLabel`),"data-testid":`agent-preview-close-btn`,onClick:N},null,8,[`aria-label`])]),_:1},8,[`label`])],2)],2),r(Z,{ref_key:`previewChatPage`,ref:w,visible:u.isOpen,initialized:u.initialized,"project-id":u.projectId,"agent-id":u.agentId,agent:u.agent,"local-config":u.localConfig,"connected-triggers":u.connectedTriggers,"effective-session-id":u.effectiveSessionId,"new-session":u.newSession,"initial-prompt":u.initialPrompt,"can-send-to-assistant":u.canSendToAssistant,"dismissed-fix-tool-call-ids":u.dismissedFixToolCallIds,"before-send":u.beforeSend,"budget-cards":u.budgetCards,"increase-budget":u.increaseBudget,onContinueLoaded:t[2]||=e=>f(`continue-loaded`,e),onSessionCreated:t[3]||=e=>f(`session-created`,e),onOpenBuild:t[4]||=e=>f(`open-build`),onSendToAssistant:t[5]||=e=>f(`send-to-assistant`,e),onInitialConsumed:t[6]||=e=>f(`initial-consumed`)},null,8,[`visible`,`initialized`,`project-id`,`agent-id`,`agent`,`local-config`,`connected-triggers`,`effective-session-id`,`new-session`,`initial-prompt`,`can-send-to-assistant`,`dismissed-fix-tool-call-ids`,`before-send`,`budget-cards`,`increase-budget`])],2)],42,ve))}}),[[`__cssModules`,{$style:{dock:`_dock_1pag9_1`,fullpage:`_fullpage_1pag9_13`,dockInner:`_dockInner_1pag9_17`,open:`_open_1pag9_30`,header:`_header_1pag9_46`,sessionHistory:`_sessionHistory_1pag9_54`,actions:`_actions_1pag9_58`}}]]);export{re as a,X as i,ce as n,Z as r,ye as t};
@@ -0,0 +1 @@
1
+ try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`44737b2d-280d-43bb-b9e9-6656a4ddffc7`,e._sentryDebugIdIdentifier=`sentry-dbid-44737b2d-280d-43bb-b9e9-6656a4ddffc7`)})()}catch{}import{$d as e,Ad as t,Fd as n,Ff as r,Hd as i,Id as a,Ld as o,Lu as s,Mu as c,Nf as l,Ou as u,Pd as d,Rd as f,Vd as p,Vf as m,W as h,Wd as g,Yd as _,_f as v,cf as y,cp as b,cs as x,if as S,jd as C,kd as w,lf as T,mf as E,of as D,pp as O,rf as k,sf as A,ss as j,tf as M,up as N,xf as P,yd as F,yf as I,zf as L}from"./vendor-DS7UZyZ6.js";import{$s as R,AC as z,AT as B,Bm as V,Bv as ee,CC as te,DT as H,Dp as U,ET as W,Em as ne,FT as G,Ff as re,Fr as K,Hm as ie,Ir as q,Of as ae,Pu as oe,Pw as se,Qr as J,Rr as Y,Sf as ce,Sw as le,TT as ue,XC as de,Zw as X,_S as fe,bT as Z,br as pe,bs as me,eC as Q,ed as he,fS as ge,gf as _e,gm as ve,jm as ye,js as be,lx as $,mf as xe,nv as Se,ol as Ce,pT as we,qv as Te,qw as Ee,rv as De,sx as Oe,uT as ke,vT as Ae,vl as je,vu as Me,wT as Ne,wf as Pe,wm as Fe,wp as Ie,ws as Le,xT as Re,yp as ze,zl as Be,zm as Ve,zv as He}from"./app-oLfukFT9.js";import{d as Ue,g as We,o as Ge,t as Ke,w as qe}from"./LogsOverviewRow-jVH9JAwy.js";import{A as Je,D as Ye,M as Xe,O as Ze,P as Qe,_ as $e,f as et,g as tt,h as nt,j as rt,k as it,p as at,v as ot,y as st}from"./AgentChatPanel-CAcdBPjt.js";import{n as ct,r as lt,t as ut}from"./thread-title-DtF3IdnY.js";import{a as dt,n as ft,t as pt}from"./AgentPreviewDock-D0A_9p2-.js";var mt=B(g({__name:`AgentSessionTimelineHeader`,props:{breadcrumbItems:{},projectIcon:{},sessionTitle:{},sessionOptions:{},showMetrics:{type:Boolean},triggerSource:{},triggerIcon:{},triggerLabel:{},totalTokens:{},totalCost:{},durationLabel:{},showLangsmithExport:{type:Boolean},langsmithExportLoading:{type:Boolean},isPreviewOpen:{type:Boolean,default:!1},showPreview:{type:Boolean,default:!1}},emits:[`breadcrumb-select`,`session-select`,`langsmith-export`,`toggle-preview`,`close`],setup(e,{emit:t}){let r=e,s=t,c=G();return(t,l)=>(D(),f(`div`,{class:b(t.$style.topBar)},[n(`div`,{class:b(t.$style.topBarLeft)},[i(m(te),{items:r.breadcrumbItems,theme:`medium`,onItemSelected:l[1]||=e=>s(`breadcrumb-select`,e)},{prepend:P(()=>[i(Be,{icon:e.projectIcon,"border-less":``,size:`mini`,"aria-hidden":`true`},null,8,[`icon`])]),append:P(()=>[n(`span`,{class:b(t.$style.crumbSeparator),"aria-hidden":`true`},`/`,2),i(m(ke),{items:r.sessionOptions,placement:`bottom-start`,"extra-popper-class":t.$style.sessionDropdownMenu,"data-testid":`session-header-switcher`,onSelect:l[0]||=e=>s(`session-select`,e)},{trigger:P(()=>[i(m(W),{variant:`ghost`,size:`small`,class:b(t.$style.switcherButton),"aria-label":m(c).baseText(`agentSessions.sessionName`)},{default:P(()=>[n(`span`,{class:b(t.$style.switcherLabel)},O(r.sessionTitle),3),i(m(H),{icon:`chevron-down`,size:12})]),_:1},8,[`class`,`aria-label`])]),"item-label":P(({item:e})=>[n(`span`,{class:b(t.$style.sessionDropdownName)},O(e.label),3)]),"item-trailing":P(({item:e})=>[e.data?.date?(D(),f(`span`,{key:0,class:b(t.$style.sessionDropdownDate)},O(e.data.date),3)):o(``,!0)]),_:1},8,[`items`,`extra-popper-class`])]),_:1},8,[`items`])],2),r.showMetrics||r.showPreview?(D(),f(`div`,{key:0,class:b(t.$style.topBarRight)},[r.showMetrics&&r.showLangsmithExport?(D(),a(m(Z),{key:0,content:m(c).baseText(`agentSessions.langsmithExport.button`),placement:`bottom`,"show-after":m(500)},{default:P(()=>[i(m(ue),{icon:`bug`,variant:`ghost`,size:`small`,"icon-size":`large`,loading:r.langsmithExportLoading,"aria-label":m(c).baseText(`agentSessions.langsmithExport.button`),"data-testid":`agent-session-langsmith-export`,onClick:l[2]||=e=>s(`langsmith-export`)},null,8,[`loading`,`aria-label`])]),_:1},8,[`content`,`show-after`])):o(``,!0),r.showMetrics&&r.triggerSource?(D(),f(`span`,{key:1,class:b(t.$style.metricItem)},[i(m(H),{icon:r.triggerIcon,size:12},null,8,[`icon`]),n(`span`,null,O(r.triggerLabel),1)],2)):o(``,!0),r.showMetrics?(D(),f(`span`,{key:2,class:b(t.$style.sep)},`·`,2)):o(``,!0),r.showMetrics?(D(),f(`span`,{key:3,class:b(t.$style.metricItem)},[i(m(H),{icon:`circle-dollar-sign`,size:12}),n(`span`,null,O(r.totalTokens.toLocaleString())+`t ($`+O(r.totalCost.toFixed(4))+`)`,1)],2)):o(``,!0),r.showMetrics?(D(),f(`span`,{key:4,class:b(t.$style.sep)},`·`,2)):o(``,!0),r.showMetrics?(D(),f(`span`,{key:5,class:b(t.$style.metricItem)},[i(m(H),{icon:`clock`,size:12}),n(`span`,null,O(r.durationLabel),1)],2)):o(``,!0),r.showPreview?(D(),a(m(z),{key:6,"model-value":r.isPreviewOpen,variant:`ghost`,size:`medium`,icon:`play`,label:m(c).baseText(`agents.builder.preview.button`),"data-testid":`agent-session-timeline-preview-btn`,onClick:l[3]||=e=>s(`toggle-preview`)},null,8,[`model-value`,`label`])):o(``,!0),i(m(Z),{content:m(c).baseText(`generic.close`)},{default:P(()=>[i(m(W),{variant:`ghost`,"icon-only":``,icon:`x`,size:`medium`,"aria-label":m(c).baseText(`generic.close`),"data-testid":`agent-session-timeline-close`,"data-test-id":`agent-session-timeline-close`,onClick:l[4]||=e=>s(`close`)},null,8,[`aria-label`])]),_:1},8,[`content`])],2)):o(``,!0)],2))}}),[[`__cssModules`,{$style:{topBar:`_topBar_24u6u_1`,topBarLeft:`_topBarLeft_24u6u_12`,topBarRight:`_topBarRight_24u6u_34`,sep:`_sep_24u6u_45`,metricItem:`_metricItem_24u6u_49`,crumbSeparator:`_crumbSeparator_24u6u_56`,switcherButton:`_switcherButton_24u6u_63`,switcherLabel:`_switcherLabel_24u6u_68`,sessionDropdownMenu:`_sessionDropdownMenu_24u6u_76`,sessionDropdownName:`_sessionDropdownName_24u6u_87`,sessionDropdownDate:`_sessionDropdownDate_24u6u_95`}}]]),ht=`load_skill`;function gt(e){return e.endTimestamp??e.timestamp}function _t(e){return e.kind===`tool`&&Je(e.toolName)}function vt(e){return typeof e==`string`&&e.length>0?e:$(e)&&typeof e.message==`string`&&e.message.length>0?e.message:``}function yt(e){if($(e.structuredContent)){let t=vt(e.structuredContent.error);if(t)return t}if(!Array.isArray(e.content))return``;for(let t of e.content){if(!$(t)||t.type!==`text`||typeof t.text!=`string`)continue;let e=t.text.trim();if(e)try{let t=JSON.parse(e);if(typeof t==`string`&&t.length>0)return t;if($(t)){let e=vt(t.error);if(e)return e}}catch{return e}}return``}function bt(e){if(e.kind!==`tool`&&e.kind!==`skill`&&e.kind!==`workflow`&&e.kind!==`node`)return!1;if(e.toolOutcome===`error`||e.toolOutcome===void 0&&e.toolSuccess===!1)return!0;if(!$(e.toolOutput))return!1;let{error:t,status:n,success:r,ok:i,isError:a}=e.toolOutput;return typeof t==`string`&&t.length>0||$(t)&&typeof t.message==`string`&&t.message.length>0||n===`error`||n===`failed`||r===!1||i===!1||a===!0}function xt(e){return e.kind===`execution-error`||bt(e)}function St(e){if(!bt(e))return``;let t=e.toolOutput;return $(t)?vt(t.error)||yt(t):``}var Ct={approval:`agentSessions.timeline.approvalRequested`,interaction:`agentSessions.timeline.hitlRequested`,wait:`agentSessions.timeline.waitRequested`},wt={approval:`approval-requested`,interaction:`hitl-requested`,wait:`wait-requested`};function Tt(e){return Ct[e??`interaction`]}function Et(e){if(e.hitlRequestType===`approval`){if(e.kind===`suspension`)return`agentSessions.timeline.approvalRequestForTool`;if(e.kind===`hitl-response`)return`agentSessions.timeline.approvalResponseForTool`}}function Dt(e,t){let n=(e.backgroundJobSignal?.tasks??[]).map(e=>nt(e,t));return new Intl.ListFormat(t.locale,{style:`long`,type:`conjunction`}).format(n)}function Ot(e,t){return t.baseText(e.executionStatus===`interrupted`?`agentSessions.timeline.executionInterrupted`:`agentSessions.timeline.executionFailed`)}function kt(e,t){return e.content?e.content:t.baseText(e.executionStatus===`interrupted`?`agentSessions.timeline.executionInterruptedFallback`:`agentSessions.timeline.executionFailedFallback`)}function At(e,t){return e.hitlToolDisplayName??e.workflowName??e.nodeDisplayName??Y(e.toolName,t,e.toolOutput)}function jt(e,t){let n=At(e,t),r=Et(e);return r?t.baseText(r,{interpolate:{toolName:n}}):n}function Mt(e){if(e.kind===`hitl-response`)return e.hitlResponseStatus===`approved`?{kind:`hitl-response`,labelKey:`agentSessions.timeline.approved`,theme:`success`}:{kind:`hitl-response`,labelKey:e.hitlResponseStatus===`declined`?`agentSessions.timeline.declined`:`agentSessions.timeline.responseReceived`,theme:`outline`};if(xt(e))return{kind:`tool-error`,labelKey:`agentSessions.timeline.error`,theme:`danger`}}function Nt(e){let t=[];for(let n=0;n<e.length-1;n++){let r=e[n],i=e[n+1];if(r.kind===`suspension`||i.kind===`suspension`)continue;let a=gt(r);i.timestamp-a>6e5&&t.push({start:a,end:i.timestamp})}return t}function Pt(e){return e.kind}function Ft(e){if(xt(e))return`error`;if(e.kind===`hitl-response`&&(e.hitlResponseStatus===`approved`||e.hitlResponseStatus===`declined`))return e.hitlResponseStatus}function It(e,t){if(t.size===0||t.has(Pt(e)))return!0;let n=Ft(e);return n!==void 0&&t.has(n)}function Lt(e){if(e!==void 0){if(e===null)return`null`;if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`)return String(e);try{return JSON.stringify(e)??String(e)}catch{return String(e)}}}function Rt(e,t){let n=[];n.push(t(Pt(e))),e.kind===`execution-error`&&e.executionStatus===`interrupted`&&n.push(t(`execution-interrupted`)),e.kind===`suspension`&&n.push(t(wt[e.hitlRequestType??`interaction`])),e.kind===`hitl-response`&&n.push(t(`hitl-response`)),e.hitlResponseStatus&&n.push(t(e.hitlResponseStatus)),xt(e)&&n.push(t(`error`));for(let r of e.backgroundJobSignal?.tasks??[])n.push(r.title,t(`background-task-${r.status}`));n.push(e.content,e.toolName,e.workflowName,e.nodeDisplayName,e.skillName,e.subAgentName,Lt(e.toolInput),Lt(e.toolOutput),Lt(e.hitlRequest),Lt(e.hitlResponse)),e.toolName&&n.push(K(e.toolName));let r=Wt(e.toolName,e.toolOutput);return r&&n.push(t(r)),n.filter(e=>typeof e==`string`).join(` `).toLowerCase()}function zt(e,t,n){return t?Rt(e,n).includes(t.toLowerCase()):!0}function Bt(e,t,n,r){return e.map((e,t)=>({item:e,index:t})).filter(({item:e})=>It(e,t)&&zt(e,n.trim(),r)).map(({index:e})=>e)}function Vt(e){if(e.length===0)return{start:0,end:1};let t=1/0,n=-1/0;for(let r of e){r.timestamp<t&&(t=r.timestamp);let e=gt(r);e>n&&(n=e)}return n<=t&&(n=t+1),{start:t,end:n}}var Ht={user:`var(--color--blue-600)`,agent:`var(--color--purple-600)`,skill:`var(--color--orange-600)`,tool:`var(--color--green-600)`,node:`var(--color--neutral-600)`,workflow:`var(--color--pink-600)`,"execution-error":`var(--color--red-600)`,suspension:`var(--color--yellow-600)`,"hitl-response":`var(--color--blue-600)`,"background-task-signal":`var(--color--mint-600)`};function Ut(e){return Ht[e]}function Wt(e,t){return q(e,t)??null}function Gt(e){if(!e||e<=0)return``;if(e<1e3)return`${e}ms`;if(e<6e4)return`${(e/1e3).toFixed(1)}s`;let t=Math.floor(e/6e4),n=Math.floor(e%6e4/1e3);if(t<60)return n>0?`${t}m ${n}s`:`${t}m`;let r=Math.floor(t/60),i=t%60;return i>0?`${r}h ${i}m`:`${r}h`}function Kt(e){return e.timeline??[]}function qt(e){return $(e)&&e.declined===!0}function Jt(e){return $(e)&&e.type===`approval`}function Yt(e){return $(e)&&e.type===`integration_action`}function Xt(e){return $(e)&&e.type===`workflow_wait`}function Zt(e){if(e.endTime!==0)return e.success?`success`:`error`}function Qt(e){return e.kind===`skill`||e.name===ht}function $t(e){let t=/^\[Skill: ([^\]]+)\]/m.exec(e)?.[1];if(t){if(!t.startsWith(`"`))return t;if(!t.endsWith(`"`))return t.slice(1);try{let e=JSON.parse(t);return typeof e==`string`?e:t}catch{return t.slice(1,-1)}}}function en(e){if($(e)){if(typeof e.name==`string`&&e.name.length>0)return e.name;if(Array.isArray(e.value))for(let t of e.value){if(!$(t)||typeof t.text!=`string`)continue;let e=$t(t.text);if(e)return e}}}function tn(e){let t=en(e.output);if(t)return t;if($(e.input))return typeof e.input.name==`string`&&e.input.name.length>0?e.input.name:typeof e.input.skillId==`string`&&e.input.skillId.length>0?e.input.skillId:void 0}function nn(e,t,n){return Jt(e.suspendPayload)||n.has(e.toolCallId)?`approval`:Xt(e.suspendPayload)?`wait`:e.suspendPayload===void 0&&(t?.kind===`node`||t?.kind===`workflow`)?`approval`:`interaction`}function rn(e){let t=new Set;for(let n of e)for(let e of Kt(n))e.type===`tool-call`&&qt(e.output)&&t.add(e.toolCallId);return t}function an(e,t,n){return n===`approval`?e.suspendPayload??{type:`approval`,toolName:e.toolName,args:e.input??t?.input}:e.suspendPayload!==void 0&&!Yt(e.suspendPayload)?e.suspendPayload:e.input??t?.input??e.suspendPayload}function on(e){if(!(!$(e)||typeof e.displayName!=`string`))return e.displayName}function sn(e,t,n=!1){return e===`approval`&&$(t)&&typeof t.approved==`boolean`?t.approved?`approved`:`declined`:qt(t)?`declined`:n&&e===`approval`?`approved`:`responded`}function cn(e,t){!e||qt(t.output)||(e.toolOutput=t.output,e.toolOutcome=Zt(t),e.toolSuccess=t.endTime===0?void 0:t.success,e.kind===`workflow`&&(e.workflowExecutionId=t.workflowExecutionId))}function ln(e,t,n,r,i=!1){return{kind:`hitl-response`,executionId:t,toolName:e.toolName,toolCallId:e.toolCallId,hitlRequestType:e.requestType,hitlResponse:n,hitlResponseStatus:sn(e.requestType,n,i),hitlToolDisplayName:e.toolDisplayName,timestamp:r,endTimestamp:r,workflowName:e.toolCall?.workflowName,nodeDisplayName:e.toolCall?.nodeDisplayName}}function un(e,t,n){let[r]=Ze([e]);if(r)return{kind:`user`,executionId:t,content:r.content,timestamp:n,...e.author&&{authorName:e.author.name},attachments:r.attachments?.flatMap(({fileId:e,fileName:t,mimeType:n,sizeBytes:r})=>e?[{id:e,fileName:t,mimeType:n,sizeBytes:r??0}]:[])}}function dn(e){let t=[],n=new Map,r=new Map,i=new Map,a=rn(e);for(let o of e){let e=o.hitlStatus===`resumed`,s=!1,c=Kt(o),l=o.startedAt?new Date(o.startedAt).getTime():0,u=[],d=t.length,f=(n,r=t.length)=>{let i=e&&!s;i&&(s=!0);let a=n.timestamp??0;t.splice(r,0,{kind:`agent`,executionId:o.id,content:n.content,timestamp:a,endTimestamp:n.endTime&&n.endTime>a?n.endTime:void 0,resumed:i,...u.length>0&&{thinkingSegments:u}}),u=[]},p=()=>{u.length&&f({type:`text`,content:``,timestamp:u[0].startTime??l,endTime:u.at(-1)?.endTime},d)};if(o.inputMessages!==void 0){let e=new Set(c.filter(e=>e.type===`input`).map(e=>e.messageId));for(let n of o.inputMessages){if(e.has(n.id))continue;let r=un(n,o.id,l);r&&t.push(r)}}else (o.userMessage||o.attachments?.length)&&t.push({kind:`user`,executionId:o.id,content:o.userMessage??``,timestamp:l,...o.author&&{authorName:o.author.name},...o.attachments?.length&&{attachments:o.attachments}});for(let[e,s]of c.entries())if(s.type===`background-task-signal`)t.push({kind:`background-task-signal`,executionId:o.id,timestamp:s.timestamp,backgroundJobSignal:s.signal});else if(s.type===`input`){p();let e=o.inputMessages?.find(({id:e})=>e===s.messageId);if(!e)continue;let n=un(e,o.id,s.timestamp);n&&t.push(n)}else if(s.type===`reasoning`){if(!s.content.trim())continue;u.length||(d=t.length),u.push({id:`${o.id}:reasoning:${e}`,content:s.content,startTime:s.timestamp,endTime:s.endTime})}else if(s.type===`text`)f(s);else if(s.type===`tool-call`){let e=i.get(s.toolCallId);if(e){cn(e.toolItem,s),e.hasExplicitResponse||t.push(ln(e,o.id,s.output,s.startTime,!0)),i.delete(s.toolCallId);continue}let a=s.kind===`workflow`,c=s.kind===`node`,l=Qt(s);s.toolCallId&&n.set(s.toolCallId,s);let u={kind:a?`workflow`:c?`node`:l?`skill`:`tool`,executionId:o.id,toolName:s.name,skillName:l?tn(s):void 0,toolCallId:s.toolCallId,toolInput:s.input,toolOutput:s.output,toolOutcome:Zt(s),toolSuccess:s.endTime===0?void 0:s.success,timestamp:s.startTime,endTimestamp:s.endTime||s.startTime,workflowId:a?s.workflowId:void 0,workflowName:a?s.workflowName:void 0,workflowExecutionId:a?s.workflowExecutionId:void 0,workflowTriggerType:a?s.triggerType:void 0,nodeType:c?s.nodeType:void 0,nodeTypeVersion:c?s.nodeTypeVersion:void 0,nodeDisplayName:c?s.nodeDisplayName:void 0,nodeParameters:c?s.nodeParameters:void 0};t.push(u),s.toolCallId&&r.set(s.toolCallId,u)}else if(s.type===`suspension`){let e=n.get(s.toolCallId),c=nn(s,e,a),l=an(s,e,c),u=on(l);s.toolCallId&&i.set(s.toolCallId,{requestType:c,toolName:s.toolName||e?.name||``,toolCallId:s.toolCallId,toolCall:e,toolItem:r.get(s.toolCallId),toolDisplayName:u,hasExplicitResponse:!1}),t.push({kind:`suspension`,executionId:o.id,toolName:s.toolName,toolCallId:s.toolCallId,timestamp:s.timestamp??0,hitlRequestType:c,hitlRequest:l,hitlToolDisplayName:u,workflowName:e?.workflowName,nodeDisplayName:e?.nodeDisplayName})}else if(s.type===`hitl-response`){let e=i.get(s.toolCallId);if(!e)continue;e.hasExplicitResponse=!0,t.push(ln(e,o.id,s.response,s.timestamp??0))}if(p(),o.status===`error`||o.status===`interrupted`){let e=o.stoppedAt??o.startedAt??o.createdAt;t.push({kind:`execution-error`,executionId:o.id,executionStatus:o.status,content:o.error??void 0,timestamp:e?new Date(e).getTime():0})}}return t}function fn(e){switch(e){case`user`:return{backgroundColor:`var(--color--blue-200)`,color:`var(--color--blue-950)`};case`agent`:return{backgroundColor:`var(--color--purple-200)`,color:`var(--color--purple-950)`};case`skill`:return{backgroundColor:`var(--color--orange-200)`,color:`var(--color--orange-950)`};case`background-task-signal`:case`subagent`:return{backgroundColor:`var(--color--mint-200)`,color:`var(--color--mint-950)`};case`tool`:return{backgroundColor:`var(--color--green-200)`,color:`var(--color--green-950)`};case`workflow`:return{backgroundColor:`var(--color--pink-200)`,color:`var(--color--pink-950)`};case`node`:return{backgroundColor:`var(--color--neutral-200)`,color:`var(--color--neutral-950)`};case`execution-error`:return{backgroundColor:`var(--color--red-150)`,color:`var(--text-color--danger)`};case`suspension`:case`idle`:return{backgroundColor:`var(--color--yellow-200)`,color:`var(--color--yellow-950)`};case`hitl-response`:return{backgroundColor:`var(--color--blue-200)`,color:`var(--color--blue-950)`};default:return{backgroundColor:`var(--color--neutral-200)`,color:`var(--color--neutral-950)`}}}function pn(e){return{"--session-timeline-chart-block-color":_t(e)?`var(--color--mint-600)`:Ut(e.kind)}}function mn(e){return`color-mix(in srgb, ${e} var(--color--session-timeline-block-bg-alpha), transparent)`}var hn=B(g({__name:`SessionTimelinePill`,props:{kind:{},label:{default:``},showLabel:{type:Boolean,default:!1}},setup(e){let t=e,n=d(()=>{switch(t.kind){case`background-task-signal`:return`list-checks`;case`user`:return`user`;case`agent`:case`subagent`:return`bot`;case`skill`:return`book-open`;case`tool`:return`wrench`;case`workflow`:return`workflow`;case`node`:return`box`;case`execution-error`:return`circle-x`;case`suspension`:case`idle`:return`clock`;case`hitl-response`:return`message-square`;default:return`info`}}),r=d(()=>fn(t.kind));return(t,a)=>(D(),f(`span`,{class:b([t.$style.pill,e.showLabel&&t.$style.withLabel]),style:N(r.value)},[i(m(H),{icon:n.value,size:`medium`},null,8,[`icon`]),e.showLabel&&e.label?(D(),f(`span`,{key:0,class:b(t.$style.label)},O(e.label),3)):o(``,!0)],6))}}),[[`__cssModules`,{$style:{pill:`_pill_abwa4_1`,withLabel:`_withLabel_abwa4_11`,label:`_label_abwa4_17`}}]]),gn=[`data-error`],_n=[`onMouseenter`],vn=[`data-timeline-index`,`data-error`,`aria-label`,`data-selected`,`onMouseenter`,`onFocus`,`onClick`],yn=48,bn=100,xn=300,Sn=B(g({__name:`SessionTimelineChart`,props:{items:{},idleRanges:{},sessionStart:{},sessionEnd:{},visibleKinds:{},selectedIndex:{}},emits:[`select`],setup(t,{emit:r}){let s=t,c=r,u=G(),h=l(null),g=l(null),_=l(!1),v=l(!1),x=l(!1),S=l(null),w=l(!1),T=d(()=>{let e=S.value?.segment;return e?.kind===`event`?Mt(e.item):void 0}),E=null,A=null,j=null,F=null,L=d(()=>{let e=[],t=[...s.idleRanges].sort((e,t)=>e.start-t.start),n=0;for(let r=0;r<s.items.length;r++){let i=s.items[r];for(;n<t.length&&t[n].start<=i.timestamp;)e.push({kind:`idle`,range:t[n]}),n++;let a=i.endTimestamp?i.endTimestamp-i.timestamp:bn;e.push({kind:`event`,item:i,index:r,duration:a})}for(;n<t.length;)e.push({kind:`idle`,range:t[n]}),n++;return e});function R(e){return!It(e,s.visibleKinds)}function z(e){return e.kind===`idle`?{flex:`0 0 56px`}:{flex:`${Math.max(e.duration,1)} 1 0`}}function B(e){let t=pn(e);return R(e)&&(t.opacity=`0.15`,t.pointerEvents=`none`),t}function V(e){return _t(e)?`subagent`:e.kind}function ee(e){if(_t(e))return u.baseText(`agentSessions.timeline.subAgent`);switch(e.kind){case`background-task-signal`:return u.baseText(`agents.chat.backgroundTasks.resultsReceived`);case`user`:return u.baseText(`agentSessions.timeline.user`);case`agent`:return u.baseText(`agentSessions.timeline.agent`);case`skill`:return u.baseText(`agentSessions.timeline.skill`);case`tool`:return u.baseText(`agentSessions.timeline.tool`);case`workflow`:return u.baseText(`agentSessions.timeline.workflow`);case`node`:return u.baseText(`agentSessions.timeline.node`);case`execution-error`:return Ot(e,u);case`suspension`:return u.baseText(Tt(e.hitlRequestType));case`hitl-response`:return u.baseText(`agentSessions.timeline.hitlResponse`);default:return``}}function te(e){if(_t(e))return e.subAgentName??K(e.toolName);switch(e.kind){case`background-task-signal`:return Dt(e,u);case`user`:case`agent`:return Re(e.content??``,80);case`skill`:return e.skillName??Y(e.toolName,u,e.toolOutput);case`tool`:return Y(e.toolName,u,e.toolOutput);case`workflow`:return e.workflowName??K(e.toolName);case`node`:return e.nodeDisplayName??K(e.toolName);case`execution-error`:return kt(e,u);case`suspension`:case`hitl-response`:return jt(e,u);default:return``}}function H(e){let t=Mt(e);return t?u.baseText(t.labelKey):void 0}function U(e){return!e.endTimestamp||e.endTimestamp<=e.timestamp?``:Gt(e.endTimestamp-e.timestamp)}function W(e){return Gt(e.end-e.start)}function ne(e){return e.timestamp?Le(new Date(e.timestamp).toISOString()).time:``}function re(e){return[ee(e),te(e),H(e)].filter(e=>!!e).join(`, `)}function ie(e,t){R(t)||c(`select`,e)}function q(e,t){if(!(t.currentTarget instanceof HTMLElement))return;let n={segment:e,reference:t.currentTarget};t.type===`focus`?F=n:j=n,ae(),E=setTimeout(()=>{S.value=n,w.value=!0},xn)}function ae(){E&&=(clearTimeout(E),null)}function oe(){let e=s.selectedIndex,t=g.value;if(e===null||!t)return;let n=t.querySelector(`[data-timeline-index="${e}"]`);if(!n)return;let r=n.offsetLeft,i=r+n.offsetWidth,a=t.scrollLeft,o=a+t.clientWidth;r-yn<a?t.scrollLeft=Math.max(0,r-yn):i+yn>o&&(t.scrollLeft=i+yn-t.clientWidth)}function se(){let e=g.value;if(!e){_.value=!1,v.value=!1,x.value=!1;return}let t=h.value?.clientWidth??e.clientWidth,n=Math.max(0,e.scrollWidth-e.clientWidth);_.value=e.scrollWidth-t>1,v.value=_.value&&e.scrollLeft>1,x.value=_.value&&e.scrollLeft<n-1}function J(e){let t=g.value;if(!t)return;let n=Math.max(t.clientWidth-yn,yn),r=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches?`auto`:`smooth`;t.scrollBy({left:e*n,top:0,behavior:r})}function ce(e){e.type===`blur`?F=null:j=null,ae();let t=F??j;if(t){S.value=t,w.value=!0;return}w.value=!1,S.value=null}return I(()=>s.selectedIndex,()=>{e(oe)}),I(L,()=>{e(se)}),k(()=>{let e=g.value;e&&(e.addEventListener(`scroll`,se,{passive:!0}),A=new ResizeObserver(se),A.observe(e),h.value&&A.observe(h.value),se())}),M(()=>{ae(),g.value?.removeEventListener(`scroll`,se),A?.disconnect()}),(e,t)=>(D(),f(`div`,{ref_key:`carouselRef`,ref:h,class:b(e.$style.carousel)},[_.value?(D(),a(m(ue),{key:0,icon:`chevron-left`,variant:`ghost`,size:`small`,"aria-label":m(u).baseText(`agentSessions.timeline.scrollBackward`),disabled:!v.value,onClick:t[0]||=e=>J(-1)},null,8,[`aria-label`,`disabled`])):o(``,!0),n(`div`,{ref_key:`chartRef`,ref:g,class:b(e.$style.chart)},[i(m(le),{open:w.value,"hide-trigger":``,reference:S.value?.reference,side:`top`,align:`center`,"side-offset":8,"close-delay":0,"max-width":`none`,"content-class":e.$style.hoverCardContent},{content:P(()=>[S.value?.segment.kind===`idle`?(D(),f(`div`,{key:0,class:b(e.$style.popoverInner)},[i(hn,{kind:`idle`,label:m(u).baseText(`agentSessions.timeline.idle`),"show-label":``},null,8,[`label`]),n(`span`,{class:b(e.$style.popoverMeta)},O(W(S.value.segment.range)),3)],2)):S.value?(D(),f(`div`,{key:1,class:b(e.$style.popoverInner)},[i(hn,{kind:V(S.value.segment.item),label:ee(S.value.segment.item),"show-label":``},null,8,[`kind`,`label`]),n(`span`,{class:b(e.$style.popoverName)},O(te(S.value.segment.item)),3),T.value?(D(),a(m(we),{key:0,variant:T.value.theme,size:`xsmall`,"data-test-id":T.value.kind===`hitl-response`?`timeline-popover-hitl-response-badge`:S.value.segment.item.kind===`execution-error`?`timeline-popover-execution-error-badge`:`timeline-popover-tool-error-badge`},{default:P(()=>[p(O(m(u).baseText(T.value.labelKey)),1)]),_:1},8,[`variant`,`data-test-id`])):o(``,!0),U(S.value.segment.item)?(D(),f(`span`,{key:1,class:b(e.$style.popoverMeta)},O(U(S.value.segment.item)),3)):o(``,!0),n(`span`,{class:b(e.$style.popoverMeta)},O(ne(S.value.segment.item)),3)],2)):o(``,!0)]),_:1},8,[`open`,`reference`,`content-class`]),(D(!0),f(C,null,y(L.value,(r,i)=>(D(),f(`div`,{key:i,"data-test-id":`timeline-cell`,"data-error":r.kind===`event`&&m(xt)(r.item)?`true`:void 0,class:b(e.$style.cell),style:N(z(r))},[r.kind===`idle`?(D(),f(`div`,{key:0,"data-test-id":`timeline-idle`,class:b(e.$style.idle),onMouseenter:e=>q(r,e),onMouseleave:t[1]||=e=>ce(e)},[n(`span`,{class:b(e.$style.idleFill)},O(m(u).baseText(`agentSessions.timeline.idle`)),3)],42,_n)):(D(),f(`button`,{key:1,type:`button`,"data-test-id":`timeline-block`,"data-timeline-index":r.index,"data-error":m(xt)(r.item)?`true`:void 0,"aria-label":re(r.item),class:b([e.$style.block,s.selectedIndex===r.index&&e.$style.selected]),"data-selected":s.selectedIndex===r.index?`true`:void 0,style:N(B(r.item)),onMouseenter:e=>q(r,e),onMouseleave:t[2]||=e=>ce(e),onFocus:e=>q(r,e),onBlur:t[3]||=e=>ce(e),onClick:e=>ie(r.index,r.item)},null,46,vn))],14,gn))),128))],2),_.value?(D(),a(m(ue),{key:1,icon:`chevron-right`,variant:`ghost`,size:`small`,"aria-label":m(u).baseText(`agentSessions.timeline.scrollForward`),disabled:!x.value,onClick:t[4]||=e=>J(1)},null,8,[`aria-label`,`disabled`])):o(``,!0)],2))}}),[[`__cssModules`,{$style:{carousel:`_carousel_1nayv_2`,chart:`_chart_1nayv_10`,cell:`_cell_1nayv_27`,block:`_block_1nayv_53`,selected:`_selected_1nayv_53`,idle:`_idle_1nayv_57`,idleFill:`_idleFill_1nayv_68`,hoverCardContent:`_hoverCardContent_1nayv_97`,popoverInner:`_popoverInner_1nayv_110`,popoverName:`_popoverName_1nayv_118`,popoverMeta:`_popoverMeta_1nayv_124`}}]]),Cn=`__reset__`,wn=`__events__`,Tn=`__status__`,En=B(g({__name:`SessionEventFilter`,props:{available:{},selected:{}},emits:[`update`],setup(e,{emit:t}){let r=e,s=t,c=G(),l=d(()=>{let e=r.available.filter(e=>e.presentation===`swatch`),t=r.available.filter(e=>e.presentation===`badge`),n=[];return e.length>0&&(n.push({id:wn,label:c.baseText(`agentSessions.timeline.events`),header:!0}),n.push(...e.map(u))),t.length>0&&(n.push({id:Tn,label:c.baseText(`agentSessions.timeline.status`),header:!0}),n.push(...t.map(u))),n.push({id:Cn,label:c.baseText(`generic.reset`),divided:!0,disabled:r.selected.size===0,testId:`filter-clear`}),n});function u(e){return{id:e.key,label:e.label,checked:r.selected.has(e.key),keepOpen:!0,testId:`filter-option-${e.key}`,data:{option:e}}}function h(e){if(e.presentation===`swatch`)return e.color;switch(e.key){case`approved`:return`var(--color--green-600)`;case`error`:return`var(--color--red-600)`;default:return`var(--color--neutral-600)`}}function g(e){if(e===Cn){s(`update`,new Set);return}let t=new Set(r.selected);t.has(e)?t.delete(e):t.add(e),s(`update`,t)}return(e,t)=>(D(),a(m(ke),{items:l.value,placement:`bottom-end`,onSelect:g},{trigger:P(()=>[i(m(Z),{"as-child":``,content:m(c).baseText(`agentSessions.timeline.events`),placement:`top`},{default:P(()=>[i(m(W),{variant:`outline`,icon:`funnel`,"icon-only":``,"aria-label":m(c).baseText(`agentSessions.timeline.events`),class:b(e.$style.trigger),"data-test-id":`filter-trigger`},{default:P(()=>[r.selected.size>0?(D(),f(`span`,{key:0,class:b(e.$style.activeIndicator),"aria-hidden":`true`},null,2)):o(``,!0)]),_:1},8,[`aria-label`,`class`])]),_:1},8,[`content`])]),"item-leading":P(({item:t,ui:n})=>[t.data?.option?(D(),f(`span`,{key:0,class:b([e.$style.swatch,n.class]),style:N({backgroundColor:m(mn)(h(t.data.option))})},null,6)):o(``,!0)]),"item-label":P(({item:t,ui:r})=>[n(`span`,{class:b(r.class)},[p(O(t.label)+` `,1),t.data?.option?(D(),f(`span`,{key:0,class:b(e.$style.count)},O(t.data.option.count),3)):o(``,!0)],2)]),_:1},8,[`items`]))}}),[[`__cssModules`,{$style:{trigger:`_trigger_ek02j_1`,activeIndicator:`_activeIndicator_ek02j_6`,swatch:`_swatch_ek02j_18`,count:`_count_ek02j_24`}}]]),Dn=[`href`],On={key:1},kn=B(g({__name:`SessionTimelineRow`,props:{item:{},selected:{type:Boolean}},emits:[`select`],setup(e,{emit:r}){let s=e,c=r,l=x(),u=G(),h=re(),g=d(()=>s.item.kind!==`node`||!s.item.nodeType?null:h.getNodeType(s.item.nodeType,s.item.nodeTypeVersion)??null),_=d(()=>_t(s.item)),v=d(()=>_.value?`subagent`:s.item.kind),y=d(()=>s.item.timestamp?Le(new Date(s.item.timestamp).toISOString()).time:``),S=d(()=>s.item.kind!==`workflow`||!s.item.workflowId?``:l.resolve({name:ee.WORKFLOW,params:{workflowId:s.item.workflowId}}).href),C=d(()=>{let e=s.item;switch(e.kind){case`background-task-signal`:return Dt(e,u);case`user`:case`agent`:return Re(e.content??``,500);case`skill`:return e.skillName??Y(e.toolName,u,e.toolOutput);case`tool`:return _.value?it(u,e.subAgentName??``):Y(e.toolName,u,e.toolOutput);case`workflow`:return e.workflowName??K(e.toolName);case`node`:return e.nodeDisplayName??K(e.toolName);case`execution-error`:return kt(e,u);case`suspension`:case`hitl-response`:return jt(e,u);default:return``}}),w=d(()=>Mt(s.item)),T=d(()=>{let e=s.item.attachments;if(!e?.length)return null;let t=e.length-1;return{label:t>0?`${e[0].fileName} +${t}`:e[0].fileName,tooltip:e.map(e=>e.fileName).join(`, `)}}),E=d(()=>{if(_.value)return u.baseText(`agentSessions.timeline.subAgent`);switch(s.item.kind){case`background-task-signal`:return u.baseText(`agents.chat.backgroundTasks.resultsReceived`);case`user`:return u.baseText(`agentSessions.timeline.user`);case`agent`:return u.baseText(`agentSessions.timeline.agent`);case`skill`:return u.baseText(`agentSessions.timeline.skill`);case`tool`:return u.baseText(`agentSessions.timeline.tool`);case`workflow`:return u.baseText(`agentSessions.timeline.workflow`);case`node`:return u.baseText(`agentSessions.timeline.node`);case`execution-error`:return Ot(s.item,u);case`suspension`:return u.baseText(Tt(s.item.hitlRequestType));case`hitl-response`:return u.baseText(`agentSessions.timeline.hitlResponse`);default:return``}});return(r,s)=>(D(),f(`div`,{class:b([r.$style.row,e.selected&&r.$style.selected]),role:`gridcell`,onClick:s[1]||=e=>c(`select`)},[i(m(Z),{content:E.value,placement:`top`},{default:P(()=>[g.value?(D(),f(`span`,{key:0,class:b(r.$style.nodeIcon)},[i(je,{"node-type":g.value,size:20},null,8,[`node-type`])],2)):(D(),a(hn,{key:1,kind:v.value},null,8,[`kind`]))]),_:1},8,[`content`]),n(`div`,{class:b(r.$style.info)},[e.item.kind===`workflow`&&S.value?(D(),f(`a`,{key:0,href:S.value,target:`_blank`,rel:`noopener`,class:b(r.$style.workflowLink),onClick:s[0]||=t(()=>{},[`stop`])},O(C.value),11,Dn)):(D(),f(`span`,On,O(C.value),1)),w.value?(D(),a(m(we),{key:2,class:b(r.$style.statusBadge),variant:w.value.theme,size:`xsmall`,"data-test-id":w.value.kind===`hitl-response`?`timeline-hitl-response-badge`:e.item.kind===`execution-error`?`timeline-execution-error-badge`:`timeline-tool-error-badge`},{default:P(()=>[p(O(m(u).baseText(w.value.labelKey)),1)]),_:1},8,[`class`,`variant`,`data-test-id`])):o(``,!0),T.value?(D(),a(m(Z),{key:3,content:T.value.tooltip,placement:`top`},{default:P(()=>[n(`span`,{class:b(r.$style.attachmentChip),"data-testid":`timeline-attachment-chip`},[i(m(H),{icon:`paperclip`,size:`xsmall`}),p(` `+O(T.value.label),1)],2)]),_:1},8,[`content`])):o(``,!0)],2),n(`span`,{class:b(r.$style.time)},O(y.value),3)],2))}}),[[`__cssModules`,{$style:{row:`_row_bvo87_2`,selected:`_selected_bvo87_17`,nodeIcon:`_nodeIcon_bvo87_21`,info:`_info_bvo87_31`,statusBadge:`_statusBadge_bvo87_42`,workflowLink:`_workflowLink_bvo87_52`,attachmentChip:`_attachmentChip_bvo87_57`,time:`_time_bvo87_74`}}]]),An=[`aria-label`],jn=[`data-timeline-row-id`,`tabindex`,`aria-selected`,`onClick`,`onKeydown`],Mn=[`data-timeline-row-id`],Nn=[`data-timeline-row-id`,`tabindex`,`aria-selected`,`onClick`,`onKeydown`],Pn=[`data-timeline-row-id`],Fn=40,In=24,Ln=100,Rn=B(g({__name:`SessionTimelineTable`,props:{items:{},selectedIndex:{},visibleKinds:{},searchQuery:{},idleRanges:{}},emits:[`select`],setup(r,{emit:o}){let s=r,c=o,u=G(),p=l(null),h=l(!1),g=l(!1),_=null;function v(e){let t=tt(e);if(t)return u.baseText(t);switch(e){case`user`:return u.baseText(`agentSessions.timeline.user`);case`agent`:return u.baseText(`agentSessions.timeline.agent`);case`skill`:return u.baseText(`agentSessions.timeline.skill`);case`tool`:return u.baseText(`agentSessions.timeline.tool`);case`workflow`:return u.baseText(`agentSessions.timeline.workflow`);case`node`:return u.baseText(`agentSessions.timeline.node`);case`execution-error`:return u.baseText(`agentSessions.timeline.executionFailed`);case`execution-interrupted`:return u.baseText(`agentSessions.timeline.executionInterrupted`);case`suspension`:return u.baseText(`agentSessions.timeline.hitlRequest`);case`hitl-response`:return u.baseText(`agentSessions.timeline.hitlResponse`);case`approval-requested`:return u.baseText(`agentSessions.timeline.approvalRequested`);case`hitl-requested`:return u.baseText(`agentSessions.timeline.hitlRequested`);case`wait-requested`:return u.baseText(`agentSessions.timeline.waitRequested`);case`approved`:return u.baseText(`agentSessions.timeline.approved`);case`responded`:return u.baseText(`agentSessions.timeline.responseReceived`);case`declined`:return u.baseText(`agentSessions.timeline.declined`);case`error`:return u.baseText(`agentSessions.timeline.error`);default:return e}}let x=d(()=>{let e=Bt(s.items,s.visibleKinds,s.searchQuery??``,v).map(e=>({id:`event-${e}`,kind:`event`,item:s.items[e],index:e,sortKey:s.items[e].timestamp})),t=(s.idleRanges??[]).map((e,t)=>({id:`idle-${e.start}-${e.end}-${t}`,kind:`idle`,range:e,sortKey:e.start}));return[...e,...t].sort((e,t)=>e.sortKey-t.sortKey)}),S=d(()=>x.value.length>Ln),T=d(()=>{let e=x.value.find(e=>e.kind===`event`&&e.index===s.selectedIndex);if(e?.kind===`event`)return e.index;let t=x.value.find(e=>e.kind===`event`);return t?.kind===`event`?t.index:null});function E(){if(!_){h.value=!1,g.value=!1;return}h.value=_.scrollTop>0,g.value=_.scrollTop+_.clientHeight<_.scrollHeight-1}function A(){let e=p.value?.querySelector(`[data-timeline-scroll-container]`)??p.value?.querySelector(`.recycle-scroller-wrapper`);e!==_&&(_?.removeEventListener(`scroll`,E),_=e??null,_?.addEventListener(`scroll`,E,{passive:!0}),E())}function j(e){let t=p.value?.querySelectorAll(`[data-timeline-row-id]`);return Array.from(t??[]).find(t=>t.dataset.timelineRowId===e)}function N(e){let t=j(e);return t?(t.focus(),!0):!1}function F(e){if(!_)return!1;let t=j(e);if(!t)return!1;let n=_.getBoundingClientRect(),r=t.getBoundingClientRect();return r.top-In<n.top?_.scrollTop-=n.top-r.top+In:r.bottom+In>n.bottom&&(_.scrollTop+=r.bottom-n.bottom+In),!0}function L(t){if(!_||F(t))return;let n=x.value.findIndex(e=>e.id===t);if(n===-1)return;let r=n*Fn,i=r+Fn,a=_.scrollTop,o=a+_.clientHeight;r-In<a?_.scrollTop=Math.max(0,r-In):i+In>o&&(_.scrollTop=i+In-_.clientHeight),e(()=>{F(t),E()})}return I(()=>x.value.length,()=>{e(()=>{A(),E()})}),k(()=>{e(A)}),M(()=>{_?.removeEventListener(`scroll`,E)}),I(()=>s.selectedIndex,t=>{if(t===null)return;let n=document.activeElement,r=n instanceof HTMLElement&&p.value?.contains(n)===!0&&n.closest(`[data-timeline-row-id]`)!==null,i=`event-${t}`;e(()=>{L(i),E(),r&&!N(i)&&e(()=>N(i))})}),(e,r)=>(D(),f(`div`,{ref_key:`tableRef`,ref:p,class:b([e.$style.table,h.value&&e.$style.canScrollUp,g.value&&e.$style.canScrollDown]),role:`grid`,"aria-label":m(u).baseText(`agentSessions.timeline.events`)},[x.value.length>0&&!S.value?(D(),f(`div`,{key:0,class:b(e.$style.directRows),"data-timeline-scroll-container":``,role:`rowgroup`},[(D(!0),f(C,null,y(x.value,r=>(D(),f(C,{key:r.id},[r.kind===`event`?(D(),f(`div`,{key:0,"data-test-id":`timeline-row`,"data-timeline-row-id":r.id,class:b(e.$style.rowWrapper),role:`row`,tabindex:T.value===r.index?0:-1,"aria-selected":s.selectedIndex===r.index,onClick:e=>c(`select`,r.index),onKeydown:[w(t(e=>c(`select`,r.index),[`self`,`prevent`]),[`enter`]),w(t(e=>c(`select`,r.index),[`self`,`prevent`]),[`space`])]},[i(kn,{item:r.item,selected:s.selectedIndex===r.index},null,8,[`item`,`selected`])],42,jn)):(D(),f(`div`,{key:1,"data-test-id":`timeline-idle-row`,"data-timeline-row-id":r.id,class:b(e.$style.idleRow),role:`row`},[n(`span`,{class:b(e.$style.idlePill),role:`gridcell`},O(m(u).baseText(`agentSessions.timeline.idle`))+` · `+O(m(Gt)(r.range.end-r.range.start)),3)],10,Mn))],64))),128))],2)):x.value.length>0?(D(),a(m(de),{key:1,items:x.value,"item-size":Fn,"item-key":`id`,role:`rowgroup`},{default:P(({item:r})=>[r.kind===`event`?(D(),f(`div`,{key:0,"data-test-id":`timeline-row`,"data-timeline-row-id":r.id,class:b(e.$style.rowWrapper),role:`row`,tabindex:T.value===r.index?0:-1,"aria-selected":s.selectedIndex===r.index,onClick:e=>c(`select`,r.index),onKeydown:[w(t(e=>c(`select`,r.index),[`self`,`prevent`]),[`enter`]),w(t(e=>c(`select`,r.index),[`self`,`prevent`]),[`space`])]},[i(kn,{item:r.item,selected:s.selectedIndex===r.index},null,8,[`item`,`selected`])],42,Nn)):(D(),f(`div`,{key:1,"data-test-id":`timeline-idle-row`,"data-timeline-row-id":r.id,class:b(e.$style.idleRow),role:`row`},[n(`span`,{class:b(e.$style.idlePill),role:`gridcell`},O(m(u).baseText(`agentSessions.timeline.idle`))+` · `+O(m(Gt)(r.range.end-r.range.start)),3)],10,Pn))]),_:1},8,[`items`])):(D(),f(`div`,{key:2,"data-test-id":`timeline-empty`,class:b(e.$style.empty)},O(m(u).baseText(`executionsLandingPage.noResults`)),3))],10,An))}}),[[`__cssModules`,{$style:{table:`_table_15dec_2`,rowWrapper:`_rowWrapper_15dec_8`,empty:`_empty_15dec_12`,directRows:`_directRows_15dec_29`,canScrollDown:`_canScrollDown_15dec_39`,canScrollUp:`_canScrollUp_15dec_43`,idleRow:`_idleRow_15dec_63`,idlePill:`_idlePill_15dec_77`}}]]),zn=[`src`,`alt`],Bn=B(g({__name:`RichInteractionCard`,props:{input:{},output:{}},setup(e){let t=e,r=d(()=>({input:t.input??{},output:t.output??{}}));return(e,t)=>(D(),f(`div`,{class:b(e.$style.card)},[r.value.input.title?(D(),f(`div`,{key:0,class:b(e.$style.title)},O(r.value.input.title),3)):o(``,!0),r.value.input.message?(D(),f(`div`,{key:1,class:b(e.$style.message)},O(r.value.input.message),3)):o(``,!0),r.value.input.components?(D(!0),f(C,{key:2},y(r.value.input.components,(t,i)=>(D(),f(C,{key:i},[t.type===`section`&&t.text?(D(),f(`div`,{key:0,class:b(e.$style.section)},O(t.text),3)):t.type===`divider`?(D(),f(`hr`,{key:1,class:b(e.$style.divider)},null,2)):t.type===`button`?(D(),f(`div`,{key:2,class:b(e.$style.button)},[n(`span`,{class:b([e.$style.buttonPill,r.value.output.type===`button`&&r.value.output.value===t.value&&e.$style.buttonSelected])},O(t.label??t.value),3)],2)):t.type===`select`||t.type===`radio_select`?(D(),f(`div`,{key:3,class:b(e.$style.selectGroup)},[n(`div`,{class:b(e.$style.selectLabel)},O(t.label),3),(D(!0),f(C,null,y(t.options,t=>(D(),f(`div`,{key:t.value,class:b(e.$style.selectOption)},[n(`span`,{class:b([e.$style.optionDot,r.value.output.type===`select`&&r.value.output.value===t.value&&e.$style.optionSelected])},null,2),n(`span`,null,O(t.label),1),t.description?(D(),f(`span`,{key:0,class:b(e.$style.optionDesc)},O(t.description),3)):o(``,!0)],2))),128))],2)):t.type===`fields`?(D(),f(`div`,{key:4,class:b(e.$style.fieldsGroup)},[(D(!0),f(C,null,y(t.fields??t.items,t=>(D(),f(`div`,{key:t.label,class:b(e.$style.fieldRow)},[n(`span`,{class:b(e.$style.fieldLabel)},O(t.label),3),n(`span`,null,O(t.value),1)],2))),128))],2)):t.type===`image`&&t.url?(D(),f(`img`,{key:5,src:t.url,alt:t.alt??t.altText??``,class:b(e.$style.image)},null,10,zn)):o(``,!0)],64))),128)):o(``,!0),r.value.output.value&&!r.value.output.displayOnly?(D(),f(`div`,{key:3,class:b(e.$style.response)},[t[0]||=p(` User selected: `,-1),n(`strong`,null,O(r.value.output.value),1)],2)):o(``,!0)],2))}}),[[`__cssModules`,{$style:{card:`_card_1qqv6_1`,title:`_title_1qqv6_6`,message:`_message_1qqv6_11`,section:`_section_1qqv6_16`,divider:`_divider_1qqv6_20`,button:`_button_1qqv6_26`,buttonPill:`_buttonPill_1qqv6_32`,buttonSelected:`_buttonSelected_1qqv6_41`,selectGroup:`_selectGroup_1qqv6_47`,selectLabel:`_selectLabel_1qqv6_51`,selectOption:`_selectOption_1qqv6_56`,optionDot:`_optionDot_1qqv6_63`,optionSelected:`_optionSelected_1qqv6_71`,optionDesc:`_optionDesc_1qqv6_76`,fieldsGroup:`_fieldsGroup_1qqv6_81`,fieldRow:`_fieldRow_1qqv6_85`,fieldLabel:`_fieldLabel_1qqv6_91`,image:`_image_1qqv6_96`,response:`_response_1qqv6_102`}}]]),Vn=Symbol(`StandaloneRunDataHost`),Hn=g({__name:`StandaloneRunData`,props:{workflowObject:{},workflowExecution:{default:void 0},runIndex:{},paneType:{},node:{default:null},overrideOutputs:{default:void 0}},setup(e){if(!_(Vn,!1))throw new fe(`StandaloneRunData must be rendered inside StandaloneRunDataHost`);return(t,n)=>(D(),a(me,{node:e.node,"run-index":e.runIndex,"override-outputs":e.overrideOutputs,"workflow-object":e.workflowObject,"workflow-execution":e.workflowExecution,"pane-type":e.paneType,"display-mode":`schema`,"disable-display-mode-selection":!0,"disable-run-index-selection":!0,compact:!0,"show-actions-on-hover":!0,"disable-pin":!0,"disable-edit":!0,"disable-hover-highlight":!0,"disable-settings-hint":!0,"collapsing-table-column-name":null,"table-header-bg-color":`light`,"executing-message":``,"no-data-in-branch-message":``},null,8,[`node`,`run-index`,`override-outputs`,`workflow-object`,`workflow-execution`,`pane-type`]))}}),Un=B(g({__name:`StandaloneRunDataHost`,props:{execution:{}},emits:[`setupError`],setup(t,{emit:n}){let i=t,a=n,s=re(),{normalizeWorkflowData:c}=oe(),l=encodeURIComponent(E()),u=r(null),p=r(null),m=r(),h=d(()=>u.value!==null&&p.value!==null);A(De,d(()=>u.value?.workflowId??i.execution?.workflowData.id??``)),A(Se,u),A(Me,null),A(Vn,!0);let g=null,_=0,v=0,y=!1;function x(){g&&(Ie(g.ndvStore),xe(g.executionStateStore),V(g.executionDataStore),Pe(g.documentStore),g=null,u.value=null,p.value=null,m.value=void 0)}function C(e){let t=`standalone-run-data/${l}/${++_}`,n=ce(e.workflowData.id,t),r=ae(n),i=_e(n),a=ie(Ve(`${n}/execution`));g={documentStore:r,executionStateStore:i,executionDataStore:a,ndvStore:U(n)};let{nodes:o,connections:s}=c(e.workflowData);r.hydrate({...e.workflowData,nodes:o,connections:s,versionId:t});let d=ge(e);a.setExecution(d),i.setDisplayedExecutionId(a.executionId),u.value=r,p.value=r.getWorkflowObjectAccessorSnapshot(),m.value=d.data}async function w(t){let n=++v;if(u.value=null,p.value=null,m.value=void 0,await e(),x(),!(!t||y||n!==v))try{if(await s.loadNodeTypesIfNotLoaded(),y||n!==v)return;C(t)}catch(e){if(y||n!==v)return;x(),a(`setupError`,e)}}return I(()=>i.execution,e=>w(e),{immediate:!0}),M(()=>{y=!0,v+=1,u.value=null,p.value=null,m.value=void 0}),S(()=>{x()}),(e,t)=>h.value&&p.value?(D(),f(`div`,{key:0,class:b(e.$style.root)},[T(e.$slots,`default`,{workflowObject:p.value,workflowExecution:m.value})],2)):o(``,!0)}}),[[`__cssModules`,{$style:{root:`_root_1dd6a_2`}}]]),Wn=B(g({__name:`WorkflowExecutionLogViewer`,props:{workflowId:{},workflowExecutionId:{}},setup(e){let t=e,r=G(),s=he(),c=ze(),u=re(),p=l(!0),h=l(null),g=l(null),_=l({}),v=l(null),x=d(()=>{if(!g.value?.workflowData)return null;try{return new Oe({...g.value.workflowData,nodeTypes:c.getNodeTypes()})}catch{return null}}),S=d(()=>!x.value||!g.value?[]:Ge(x.value,g.value)),w=d(()=>Ue(S.value,_.value)),T=d(()=>{let e={};if(!x.value)return e;for(let t of Object.values(x.value.nodes??{}))e[t.id]={deleted:!1,disabled:!!t.disabled,name:t.name};return e}),E=d(()=>S.value.some(e=>We(e,!0).totalTokens>0)),A=d(()=>{let e=g.value?.status;return e===`running`||e===`new`?r.baseText(`agentSessions.workflowLog.stillRunning`):e===`waiting`?r.baseText(`agentSessions.workflowLog.waiting`):``});function j(e){_.value={..._.value,[e.id]:!_.value[e.id]}}function N(e){v.value=v.value?.id===e.id?null:e}function F(){h.value=r.baseText(`agentSessions.workflowLog.unavailable`)}let I=d(()=>v.value?.type===`node`?v.value:null);function L(e){return qe(e)?T.value[e.node.id]:void 0}let R=d(()=>{let e=I.value?.node;return e?u.getNodeType(e.type,e.typeVersion)?.group?.includes(`trigger`)??!1:!1}),z=d(()=>{let e=I.value;if(!e)return null;let t=e.runData?.source?.[0];if(!t)return null;let n=e.workflow.getNode(t.previousNode);return n?{node:{...n,disabled:!1},runIndex:t.previousNodeRun??0,overrideOutputs:[t.previousNodeOutput??0]}:null}),B=d(()=>{let e=I.value?.runData?.error;return!e||typeof e!=`object`?null:e}),V=!1;return k(async()=>{try{let e=await s.fetchExecution(t.workflowExecutionId);if(V)return;if(!e)h.value=r.baseText(`agentSessions.workflowLog.unavailable`);else{g.value=e;let t=w.value[0];t&&(v.value=t)}}catch{if(V)return;h.value=r.baseText(`agentSessions.workflowLog.unavailable`)}finally{V||(p.value=!1)}}),M(()=>{V=!0}),(e,t)=>(D(),f(`div`,{class:b(e.$style.root)},[p.value?(D(),f(`div`,{key:0,class:b(e.$style.loading)},O(m(r).baseText(`agentSessions.workflowLog.loading`)),3)):h.value?(D(),f(`div`,{key:1,class:b(e.$style.errorBanner)},O(h.value),3)):(D(),f(C,{key:2},[A.value?(D(),f(`div`,{key:0,class:b(e.$style.banner)},O(A.value),3)):o(``,!0),n(`div`,{class:b(e.$style.rows)},[(D(!0),f(C,null,y(w.value,e=>(D(),a(Ke,{key:e.id,"data-test-id":`log-node-row`,data:e,"is-selected":v.value?.id===e.id,"is-read-only":!0,"should-show-token-count-column":E.value,"is-compact":!0,"latest-info":L(e),expanded:!!_.value[e.id],"can-open-ndv":!1,onToggleExpanded:t=>j(e),onToggleSelected:t=>N(e)},null,8,[`data`,`is-selected`,`should-show-token-count-column`,`latest-info`,`expanded`,`onToggleExpanded`,`onToggleSelected`]))),128))],2),I.value&&g.value?(D(),a(Un,{key:1,execution:g.value,onSetupError:F},{default:P(({workflowObject:t,workflowExecution:s})=>[n(`div`,{class:b(e.$style.detail)},[n(`div`,{class:b(e.$style.detailHeader)},O(I.value.node.name),3),!R.value&&z.value?(D(),f(`div`,{key:0,class:b(e.$style.pane),"data-test-id":`agent-session-run-data-input`},[n(`div`,{class:b(e.$style.paneTitle)},O(m(r).baseText(`agentSessions.timeline.input`)),3),(D(),a(Hn,{key:`input-${I.value.id}`,node:z.value.node,"run-index":z.value.runIndex,"override-outputs":z.value.overrideOutputs,"workflow-object":t,"workflow-execution":s,"pane-type":`input`},null,8,[`node`,`run-index`,`override-outputs`,`workflow-object`,`workflow-execution`]))],2)):o(``,!0),n(`div`,{class:b(e.$style.pane),"data-test-id":`agent-session-run-data-output`},[n(`div`,{class:b(e.$style.paneTitle)},O(m(r).baseText(`agentSessions.timeline.output`)),3),B.value?(D(),f(`div`,{key:0,class:b(e.$style.errorPaneBody),"data-test-id":`node-error-card`},[i(be,{error:B.value,compact:!0,"show-details":``},null,8,[`error`])],2)):(D(),a(Hn,{key:`output-${I.value.id}`,node:I.value.node,"run-index":I.value.runIndex,"workflow-object":t,"workflow-execution":s,"pane-type":`output`},null,8,[`node`,`run-index`,`workflow-object`,`workflow-execution`]))],2)],2)]),_:1},8,[`execution`])):o(``,!0)],64))],2))}}),[[`__cssModules`,{$style:{root:`_root_d14qw_2`,loading:`_loading_d14qw_8`,banner:`_banner_d14qw_13`,errorBanner:`_errorBanner_d14qw_21`,rows:`_rows_d14qw_29`,detail:`_detail_d14qw_34`,detailHeader:`_detailHeader_d14qw_42`,pane:`_pane_d14qw_47`,paneTitle:`_paneTitle_d14qw_57`,errorPaneBody:`_errorPaneBody_d14qw_74`,openButton:`_openButton_d14qw_92`}}]]),Gn=`__tool_io__`,Kn=`__tool_io_input__`,qn=B(g({__name:`ToolIoView`,props:{name:{},input:{},output:{},nodeParameters:{},success:{type:Boolean,default:!0}},setup(e){let t=e,r=G();function i(e){return e==null?[{json:{}}]:Array.isArray(e)?e.map(e=>typeof e==`object`&&e?{json:e}:{json:{value:e}}):typeof e==`object`?[{json:e}]:[{json:{value:e}}]}let o=d(()=>{let e=i(t.nodeParameters&&Object.keys(t.nodeParameters).length>0?t.nodeParameters:t.input),n=i(t.output),r={id:Gn,name:Gn,active:!1,isArchived:!1,nodes:[{id:Kn,name:Kn,type:`n8n-nodes-base.set`,typeVersion:1,position:[0,0],parameters:{}},{id:t.name,name:t.name,type:`n8n-nodes-base.set`,typeVersion:1,position:[220,0],parameters:t.nodeParameters??{}}],connections:{[Kn]:{main:[[{node:t.name,type:`main`,index:0}]]}},settings:{},pinData:{},versionId:``,usedCredentials:[],sharedWithProjects:[],homeProject:void 0,scopes:[],tags:[],createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},a={[Kn]:[{startTime:0,executionIndex:0,executionTime:0,executionStatus:`success`,source:[],data:{main:[e]}}],[t.name]:[{startTime:0,executionIndex:0,executionTime:0,executionStatus:t.success?`success`:`error`,source:[{previousNode:Kn,previousNodeOutput:0,previousNodeRun:0}],data:{main:[n]},inputOverride:{main:[e]}}]},o=new Date;return{id:Gn,finished:!0,mode:`manual`,status:`success`,startedAt:o,createdAt:o,stoppedAt:o,workflowId:Gn,workflowData:r,data:{startData:{},resultData:{runData:a},executionData:{contextData:{},nodeExecutionStack:[],metadata:{},waitingExecution:{},waitingExecutionSource:{}}}}}),s=d(()=>o.value.workflowData.nodes.find(e=>e.name===t.name)??null);return(t,i)=>(D(),a(Un,{execution:o.value},{default:P(({workflowObject:i,workflowExecution:o})=>[n(`div`,{class:b(t.$style.root)},[n(`div`,{class:b(t.$style.pane),"data-test-id":`agent-session-run-data-input`},[n(`div`,{class:b(t.$style.paneTitle)},O(m(r).baseText(`agentSessions.timeline.input`)),3),(D(),a(Hn,{key:`tool-input-${e.name}`,node:s.value,"run-index":0,"workflow-object":i,"workflow-execution":o,"pane-type":`input`},null,8,[`node`,`workflow-object`,`workflow-execution`]))],2),n(`div`,{class:b(t.$style.pane),"data-test-id":`agent-session-run-data-output`},[n(`div`,{class:b(t.$style.paneTitle)},O(m(r).baseText(`agentSessions.timeline.output`)),3),(D(),a(Hn,{key:`tool-output-${e.name}`,node:s.value,"run-index":0,"workflow-object":i,"workflow-execution":o,"pane-type":`output`},null,8,[`node`,`workflow-object`,`workflow-execution`]))],2)],2)]),_:1},8,[`execution`]))}}),[[`__cssModules`,{$style:{root:`_root_tptsw_1`,pane:`_pane_tptsw_7`,paneTitle:`_paneTitle_tptsw_17`}}]]),Jn={key:2,"data-test-id":`hitl-request-details`},Yn={key:3,"data-test-id":`hitl-response-details`},Xn=[`href`],Zn={key:3,"data-test-id":`workflow-input`},Qn={key:0},$n=B(g({__name:`SessionDetailPanel`,props:{item:{},projectId:{},agentId:{}},emits:[`close`],setup(e,{emit:t}){let r=G(),s=x(),c=e,l=d(()=>c.item?.kind!==`user`||!c.item.attachments?[]:c.item.attachments.map(e=>({fileId:e.id,fileName:e.fileName,mimeType:e.mimeType,sizeBytes:e.sizeBytes}))),u=d(()=>c.item?.kind!==`workflow`||!c.item.workflowId||!c.item.workflowExecutionId?``:s.resolve({name:ee.EXECUTION_PREVIEW,params:{workflowId:c.item.workflowId,executionId:c.item.workflowExecutionId}}).href);function g(){u.value&&window.open(u.value,`_blank`,`noopener`)}let _=t;function v(e){if(!e)return``;let{date:t,time:n}=Le(new Date(e).toISOString());return`${t} ${n}`}let S=d(()=>c.item?.kind===`tool`?Xe(w(c.item.toolInput))?.card:void 0);function w(e){if(typeof e==`string`)try{return JSON.parse(e)}catch{return e}return e}function T(e){let t=w(e);return typeof t==`string`?t:JSON.stringify(t,null,2)??String(t)}function E(e,t){let n=w(e);if(!$(n))return``;let r=n[t];return typeof r==`string`?r:``}let k=d(()=>!c.item||c.item.kind!==`tool`&&c.item.kind!==`skill`&&c.item.kind!==`suspension`&&c.item.kind!==`hitl-response`?``:Y(c.item.toolName,r,c.item.toolOutput)),A=d(()=>{let e=c.item;return e?At(e,r):``}),j=d(()=>{let e=c.item;if(!e||e.kind!==`suspension`)return;let t=w(e.hitlRequest);return e.hitlRequestType===`approval`&&typeof t==`object`&&t&&`args`in t?t.args:t}),M=d(()=>c.item?_t(c.item):!1),N=d(()=>{if(!M.value||!c.projectId||!c.agentId||!c.item)return``;let e=E(c.item.toolOutput,`threadId`),t=E(c.item.toolInput,`subAgentId`);return!e||!t?``:s.resolve({name:ne,params:{projectId:c.projectId,agentId:t===`inline`?c.agentId:t,threadId:e}}).href}),F=d(()=>c.item?Mt(c.item):void 0),I=d(()=>{let e=c.item;if(!e||e.kind!==`agent`)return;let t=e.content?.trim();if(!(!t||!t.startsWith(`{`)&&!t.startsWith(`[`)))try{let e=JSON.parse(t);return typeof e==`object`&&e?e:void 0}catch{return}}),L=d(()=>{let e=c.item;return e?M.value?it(r,e.subAgentName??``):e.kind===`background-task-signal`?r.baseText(`agents.chat.backgroundTasks.resultsReceived`):e.kind===`workflow`?e.workflowName??K(e.toolName):e.kind===`skill`?e.skillName??k.value:e.kind===`tool`?k.value:e.kind===`node`?e.nodeDisplayName??K(e.toolName):e.kind===`user`?e.authorName??r.baseText(`agentSessions.timeline.user`):e.kind===`agent`?r.baseText(`agentSessions.timeline.agent`):e.kind===`execution-error`?Ot(e,r):e.kind===`suspension`?e.hitlRequestType===`approval`?jt(e,r):r.baseText(Tt(e.hitlRequestType)):e.hitlRequestType===`approval`?jt(e,r):r.baseText(`agentSessions.timeline.hitlResponse`):``}),R=d(()=>{let e=c.item;return e?M.value?`bot`:e.kind===`background-task-signal`?`list-checks`:e.kind===`workflow`?`workflow`:e.kind===`skill`?`book-open`:e.kind===`tool`?`wrench`:e.kind===`node`?`box`:e.kind===`user`?`user`:e.kind===`agent`?`bot`:e.kind===`execution-error`?`circle-x`:e.kind===`hitl-response`?`message-square`:`clock`:`info`}),z=d(()=>c.item?bt(c.item):!1),B=d(()=>{let e=c.item;if(!e||!z.value)return``;let t=r.baseText(`agentSessions.timeline.toolError`),n=St(e);return n?`${t}: ${n}`:t}),V=d(()=>{let e=c.item?.toolOutput;if(typeof e!=`object`||!e)return null;let t=e;return typeof t.formUrl==`string`?{formUrl:t.formUrl,message:typeof t.message==`string`?t.message:``}:null});return(t,s)=>(D(),f(`div`,{class:b(t.$style.panel)},[e.item?(D(),f(C,{key:0},[n(`div`,{class:b(t.$style.header)},[n(`div`,{class:b(t.$style.headerTitle)},[i(m(H),{icon:R.value,size:16},null,8,[`icon`]),i(m(Ae),{bold:``,class:b(t.$style.headerTitleText)},{default:P(()=>[p(O(L.value),1)]),_:1},8,[`class`]),N.value?(D(),a(m(Z),{key:0,content:m(r).baseText(`agentSessions.subAgent.openSession`),placement:`top`},{default:P(()=>[i(m(ue),{icon:`external-link`,variant:`ghost`,size:`small`,href:N.value,target:`_blank`,rel:`noopener noreferrer`,"aria-label":m(r).baseText(`agentSessions.subAgent.openSession`),"data-test-id":`open-sub-agent-session`},null,8,[`href`,`aria-label`])]),_:1},8,[`content`])):o(``,!0),F.value?(D(),a(m(we),{key:1,variant:F.value.theme,size:`xsmall`,"data-test-id":F.value.kind===`hitl-response`?`detail-hitl-response-badge`:e.item.kind===`execution-error`?`detail-execution-error-badge`:`detail-tool-error-badge`},{default:P(()=>[p(O(m(r).baseText(F.value.labelKey)),1)]),_:1},8,[`variant`,`data-test-id`])):o(``,!0)],2),i(m(ue),{icon:`x`,variant:`ghost`,"data-test-id":`detail-close`,onClick:s[0]||=e=>_(`close`)})],2),n(`div`,{class:b(t.$style.container)},[i(m(Ee),null,{default:P(()=>[e.item.timestamp?(D(),f(`dl`,{key:0,class:b(t.$style.infoRow)},[n(`dt`,{class:b(t.$style.label)},O(m(r).baseText(`agentSessions.timeline.created`)),3),n(`dd`,{class:b(t.$style.value)},O(v(e.item.timestamp)),3)],2)):o(``,!0),e.item.kind===`suspension`||e.item.kind===`hitl-response`?(D(),f(`dl`,{key:1,class:b(t.$style.infoRow)},[n(`dt`,{class:b(t.$style.label)},O(m(r).baseText(`agentSessions.timeline.tool`)),3),n(`dd`,{class:b(t.$style.value)},O(A.value),3)],2)):o(``,!0),u.value?(D(),f(`div`,{key:2,class:b(t.$style.executionButton)},[i(m(W),{variant:`outline`,size:`small`,label:m(r).baseText(`agentSessions.workflowLog.openFull`),"data-test-id":`open-full-execution`,onClick:g},null,8,[`label`])],2)):o(``,!0)]),_:1}),n(`div`,{class:b(t.$style.output)},[e.item.kind===`background-task-signal`?(D(),f(`ul`,{key:0,class:b(t.$style.backgroundJobs),"data-test-id":`background-job-signal-details`},[(D(!0),f(C,null,y(e.item.backgroundJobSignal?.tasks,e=>(D(),f(`li`,{key:e.id},O(m(nt)(e,m(r))),1))),128))],2)):e.item.kind===`execution-error`?(D(),a(m(X),{key:1,theme:`danger`,"data-test-id":`execution-error-callout`},{default:P(()=>[p(O(m(kt)(e.item,m(r))),1)]),_:1})):e.item.kind===`suspension`?(D(),f(`div`,Jn,[n(`div`,{class:b(t.$style.label)},O(m(r).baseText(`agentSessions.timeline.requestDetails`)),3),i(m(Q),{code:T(j.value),language:`json`},null,8,[`code`])])):e.item.kind===`hitl-response`?(D(),f(`div`,Yn,[n(`div`,{class:b(t.$style.label)},O(m(r).baseText(`agentSessions.timeline.response`)),3),i(m(Q),{code:T(e.item.hitlResponse),language:`json`},null,8,[`code`])])):e.item.kind===`workflow`?(D(),f(C,{key:4},[z.value?(D(),a(m(X),{key:0,theme:`danger`,"data-test-id":`workflow-error-callout`,class:b(t.$style.errorCallout)},{default:P(()=>[p(O(B.value),1)]),_:1},8,[`class`])):o(``,!0),e.item.workflowExecutionId&&e.item.workflowId?(D(),a(Wn,{key:`${e.item.workflowId}:${e.item.workflowExecutionId}`,"workflow-id":e.item.workflowId,"workflow-execution-id":e.item.workflowExecutionId},null,8,[`workflow-id`,`workflow-execution-id`])):e.item.workflowTriggerType===`form`&&V.value?(D(),f(`div`,{key:2,"data-test-id":`wf-form-card`,class:b(t.$style.formCard)},[n(`p`,null,O(V.value.message),1),n(`a`,{href:V.value.formUrl,target:`_blank`,rel:`noopener`,class:b(t.$style.formLink)},O(m(r).baseText(`agentSessions.timeline.openForm`)),11,Xn)],2)):e.item.toolSuccess===void 0?(D(),f(`div`,Zn,[n(`div`,{class:b(t.$style.label)},O(m(r).baseText(`agentSessions.timeline.input`)),3),i(m(Q),{code:T(e.item.toolInput),language:`json`,copyable:!1},null,8,[`code`])])):(D(),f(`div`,{key:4,"data-test-id":`wf-error-fallback`,class:b(t.$style.errorFallback)},[n(`div`,{class:b(t.$style.errorBanner)},O(m(r).baseText(`agentSessions.timeline.workflowError`)),3),i(m(Q),{code:T(e.item.toolOutput),language:`json`},null,8,[`code`])],2))],64)):e.item.kind===`tool`||e.item.kind===`skill`?(D(),f(C,{key:5},[z.value?(D(),a(m(X),{key:0,theme:`danger`,"data-test-id":`tool-error-callout`,class:b(t.$style.errorCallout)},{default:P(()=>[p(O(B.value),1)]),_:1},8,[`class`])):o(``,!0),S.value?(D(),a(Bn,{key:1,input:S.value,output:w(e.item.toolOutput)},null,8,[`input`,`output`])):(D(),f(C,{key:2},[n(`div`,null,[n(`div`,{class:b(t.$style.label)},O(m(r).baseText(`agentSessions.timeline.input`)),3),i(m(Q),{code:T(e.item.toolInput),language:`json`},null,8,[`code`])]),e.item.toolOutput===void 0?o(``,!0):(D(),f(`div`,Qn,[n(`div`,{class:b(t.$style.label)},O(m(r).baseText(`agentSessions.timeline.output`)),3),i(m(Q),{code:T(e.item.toolOutput),language:`json`},null,8,[`code`])]))],64))],64)):e.item.kind===`node`?(D(),f(C,{key:6},[B.value?(D(),a(m(X),{key:0,theme:`danger`,"data-test-id":`node-error-callout`},{default:P(()=>[p(O(B.value),1)]),_:1})):o(``,!0),i(qn,{name:(e.item.nodeDisplayName??m(K)(e.item.toolName))||`node`,input:e.item.toolInput,output:e.item.toolOutput,"node-parameters":e.item.nodeParameters,success:e.item.toolOutcome?e.item.toolOutcome!==`error`:e.item.toolSuccess},null,8,[`name`,`input`,`output`,`node-parameters`,`success`])],64)):e.item.kind===`agent`&&I.value!==void 0?(D(),a(m(Q),{key:7,code:T(I.value),language:`json`},null,8,[`code`])):e.item.kind===`user`||e.item.kind===`agent`?(D(),f(C,{key:8},[l.value.length>0&&e.projectId&&e.agentId?(D(),a(at,{key:0,attachments:l.value,"project-id":e.projectId,"agent-id":e.agentId},null,8,[`attachments`,`project-id`,`agent-id`])):o(``,!0),i(m(h),{source:e.item.content??``,class:b(t.$style.markdown)},null,8,[`source`,`class`])],64)):o(``,!0),e.item.kind===`agent`&&e.item.thinkingSegments?.length?(D(),a($e,{key:`${e.item.executionId}:${e.item.timestamp}`,segments:e.item.thinkingSegments,active:!1,"duration-sec":m(Ye)(e.item.thinkingSegments),"test-id":`session-agent-thinking`},{default:P(()=>[(D(!0),f(C,null,y(e.item.thinkingSegments,e=>(D(),a(ot,{key:e.id,entry:e},null,8,[`entry`]))),128))]),_:1},8,[`segments`,`duration-sec`])):o(``,!0)],2)],2)],64)):(D(),f(`div`,{key:1,class:b(t.$style.empty)},O(m(r).baseText(`agentSessions.timeline.selectItem`)),3))],2))}}),[[`__cssModules`,{$style:{backgroundJobs:`_backgroundJobs_4azbq_1`,panel:`_panel_4azbq_6`,header:`_header_4azbq_13`,headerTitle:`_headerTitle_4azbq_25`,headerTitleText:`_headerTitleText_4azbq_33`,errorCallout:`_errorCallout_4azbq_40`,container:`_container_4azbq_44`,output:`_output_4azbq_56`,info:`_info_4azbq_62`,infoRow:`_infoRow_4azbq_70`,label:`_label_4azbq_77`,value:`_value_4azbq_82`,executionButton:`_executionButton_4azbq_88`,formCard:`_formCard_4azbq_94`,formLink:`_formLink_4azbq_100`,errorFallback:`_errorFallback_4azbq_105`,errorBanner:`_errorBanner_4azbq_111`,empty:`_empty_4azbq_119`,markdown:`_markdown_4azbq_125`}}]]),er=B(g({__name:`AgentSessionTimelinePanel`,props:{projectId:{},agentId:{},threadId:{}},emits:[`loaded`],setup(e,{emit:t}){let r=e,p=t,h=G(),g=He(),_=ct(),y=Ce(),x=u(),S=v(`panel`),C=c(),w=d(()=>r.projectId),T=l([]),E=l(!0),A=l(null),j=l(null),N=l(new Set),L=l(``),R=0,z=!1,B,V,ee=d(()=>dn(T.value)),{subAgentNameById:te}=et(w,()=>ee.value.some(_t)),U=d(()=>ee.value.map(e=>{if(!_t(e))return e;let t=rt(e.toolInput,te.value);return t?{...e,subAgentName:t}:e})),W=d(()=>Nt(U.value)),ne=d(()=>Vt(U.value));function re(e){let t=tt(e);if(t)return h.baseText(t);switch(e){case`user`:return h.baseText(`agentSessions.timeline.user`);case`agent`:return h.baseText(`agentSessions.timeline.agent`);case`skill`:return h.baseText(`agentSessions.timeline.skill`);case`tool`:return h.baseText(`agentSessions.timeline.tool`);case`workflow`:return h.baseText(`agentSessions.timeline.workflow`);case`node`:return h.baseText(`agentSessions.timeline.node`);case`execution-error`:return h.baseText(`agentSessions.timeline.executionFailed`);case`execution-interrupted`:return h.baseText(`agentSessions.timeline.executionInterrupted`);case`suspension`:return h.baseText(`agentSessions.timeline.hitlRequest`);case`hitl-response`:return h.baseText(`agentSessions.timeline.hitlResponse`);case`approval-requested`:return h.baseText(`agentSessions.timeline.approvalRequested`);case`hitl-requested`:return h.baseText(`agentSessions.timeline.hitlRequested`);case`wait-requested`:return h.baseText(`agentSessions.timeline.waitRequested`);case`approved`:return h.baseText(`agentSessions.timeline.approved`);case`responded`:return h.baseText(`agentSessions.timeline.responseReceived`);case`declined`:return h.baseText(`agentSessions.timeline.declined`);case`error`:return h.baseText(`agentSessions.timeline.error`);default:return e}}let K=[{key:`approved`,badgeTheme:`success`},{key:`declined`,badgeTheme:`outline`},{key:`error`,badgeTheme:`danger`}],ie=d(()=>{let e=new Map,t=new Map;for(let n of U.value){n.kind!==`execution-error`&&e.set(n.kind,(e.get(n.kind)??0)+1);let r=Ft(n);r&&t.set(r,(t.get(r)??0)+1)}return[...Array.from(e.entries()).map(([e,t])=>({key:e,label:re(e),presentation:`swatch`,color:Ut(e),count:t})),...K.flatMap(({key:e,badgeTheme:n})=>{let r=t.get(e);return r?[{key:e,label:re(e),presentation:`badge`,badgeTheme:n,count:r}]:[]})]}),q=d(()=>A.value===null?null:U.value[A.value]??null),ae=d(()=>Bt(U.value,N.value,L.value,re));function oe(e){let t=ae.value;if(t.length===0)return;if(j.value===null||!t.includes(j.value)){j.value=e===1?t[0]:t[t.length-1];return}let n=t.indexOf(j.value)+e;n<0||n>=t.length||(j.value=t[n])}function se(e){let t=ae.value;t.length!==0&&(j.value=e===1?t[t.length-1]:t[0])}function J(e){A.value=e,j.value=e}function Y(){let e=x.value;return e instanceof Element?S.value?.contains(e)===!0&&!ye(e):!1}function ce(e){return`${e.executionId}:${e.kind}:${e.toolCallId??e.timestamp}`}function le(e){if(Y()){if(e.key===`Escape`){(A.value!==null||j.value!==null)&&(e.preventDefault(),J(null));return}e.key===`ArrowDown`?(e.preventDefault(),e.metaKey?se(1):oe(1)):e.key===`ArrowUp`&&(e.preventDefault(),e.metaKey?se(-1):oe(-1))}}s(document,`keydown`,le);function ue(e){Y()&&(e.key!==`ArrowDown`&&e.key!==`ArrowUp`||j.value!==A.value&&(e.preventDefault(),J(j.value)))}s(document,`keyup`,ue);function de(){T.value=[],N.value=new Set,L.value=``,J(null),E.value=!0,p(`loaded`,null),z=!1,Z(!0)}function X(){return`${r.projectId}:${r.agentId}:${r.threadId}`}async function fe(e){let t=r.projectId,n=r.agentId,i=r.threadId,a=X(),o=++R;try{let r=await _.getThreadDetail(t,n,i);if(o!==R||a!==X())return;let s=!e&&q.value?ce(q.value):null;if(T.value=r.executions,s){let e=U.value.findIndex(e=>ce(e)===s);J(e>=0?e:null)}p(`loaded`,r)}catch(t){if(o!==R)return;e&&g.showError(t,h.baseText(`agentSessions.showError.load`))}finally{e&&o===R&&(E.value=!1)}}function Z(e){let t=X(),n={identity:t,promise:fe(e)};V=n,n.promise.finally(()=>{V===n&&(V=void 0,z&&t===X()&&(z=!1,pe()))})}function pe(){if(V?.identity===X()){z=!0;return}Z(!1)}function me(e){e.type===`agentExecutionUpdated`&&e.data.projectId===r.projectId&&e.data.agentId===r.agentId&&e.data.threadId===r.threadId&&pe()}return I(C,e=>{e===`visible`&&pe()}),I(()=>y.isConnected,(e,t)=>{e&&!t&&pe()}),k(()=>{y.pushConnect(),B=y.addEventListener(me)}),M(()=>{R++,z=!1,B?.(),y.pushDisconnect()}),I([()=>r.projectId,()=>r.agentId,()=>r.threadId],de,{immediate:!0}),(e,t)=>(D(),f(`div`,{ref_key:`panel`,ref:S,class:b(e.$style.panel)},[E.value?o(``,!0):(D(),f(`div`,{key:0,class:b(e.$style.subHeader)},[n(`div`,{class:b(e.$style.search)},[i(m(Ne),{modelValue:L.value,"onUpdate:modelValue":t[0]||=e=>L.value=e,size:`medium`,placeholder:m(h).baseText(`agentSessions.timeline.searchPlaceholder`),clearable:``},{prefix:P(()=>[i(m(H),{icon:`search`,size:12})]),_:1},8,[`modelValue`,`placeholder`])],2),i(En,{available:ie.value,selected:N.value,onUpdate:t[1]||=e=>N.value=e},null,8,[`available`,`selected`])],2)),!E.value&&U.value.length>0?(D(),f(`div`,{key:1,class:b(e.$style.chartRow)},[i(Sn,{items:U.value,"idle-ranges":W.value,"session-start":ne.value.start,"session-end":ne.value.end,"visible-kinds":N.value,"selected-index":j.value,onSelect:J},null,8,[`items`,`idle-ranges`,`session-start`,`session-end`,`visible-kinds`,`selected-index`])],2)):o(``,!0),n(`div`,{class:b(e.$style.panels)},[n(`div`,{class:b(e.$style.tablePanel)},[E.value?(D(),f(`div`,{key:0,class:b(e.$style.loading)},O(m(h).baseText(`generic.loadingEllipsis`)),3)):(D(),a(Rn,{key:1,items:U.value,"idle-ranges":W.value,"selected-index":j.value,"visible-kinds":N.value,"search-query":L.value,onSelect:J},null,8,[`items`,`idle-ranges`,`selected-index`,`visible-kinds`,`search-query`]))],2),i(F,{name:`session-detail-panel`},{default:P(()=>[q.value?(D(),f(`div`,{key:0,class:b(e.$style.detailPanel)},[i($n,{item:q.value,"project-id":r.projectId,"agent-id":r.agentId,onClose:t[2]||=e=>J(null)},null,8,[`item`,`project-id`,`agent-id`])],2)):o(``,!0)]),_:1})],2)],2))}}),[[`__cssModules`,{$style:{panel:`_panel_xybfu_14`,subHeader:`_subHeader_xybfu_27`,search:`_search_xybfu_37`,chartRow:`_chartRow_xybfu_42`,panels:`_panels_xybfu_49`,tablePanel:`_tablePanel_xybfu_55`,detailPanel:`_detailPanel_xybfu_63`,loading:`_loading_xybfu_100`}}]]);function tr(e){let t=x();return function(){let n=t.options.history.state.back;if((typeof n==`string`?t.resolve(n):null)?.matched.length){t.back();return}t.push(L(e))}}var nr=B(g({__name:`AgentSessionTimelineView`,setup(e){let t=G(),r=ut(),s=j(),c=x(),u=ct(),{isEnabled:p,isExporting:h,sendSession:g}=ft(),_=Te(),{config:v,fetchConfig:y}=pe(),S=d(()=>s.params.projectId),C=d(()=>s.params.agentId),w=d(()=>s.params.threadId),T=l(null),E=l([]),O=l(null),k=l(!1),A=l(!1),{canUpdate:M}=J(S),N=d(()=>M.value),{activeChatSessionId:P,effectiveSessionId:F,currentSessionHasMessages:L,currentSessionIsEphemeral:z,currentSessionIsLocallyMinted:B,currentSessionTitle:V,sessionMenu:te,isDeletingSession:H,onSessionPick:U,onNewChat:W,markSessionCreated:re,deleteSession:K}=dt({routeBacked:d(()=>!1),projectId:S,agentId:C}),ie=d(()=>B.value&&F.value!==void 0&&F.value!==w.value),q=d(()=>E.value.length===0?null:E.value[0].source??`chat`),ae=d(()=>{let e=q.value;if(!e)return`bolt-filled`;switch(e){case`slack`:return`slack`;case`instance-ai`:return`sparkles`;case`n8n_chat_production`:return`message-square`;default:return`bolt-filled`}}),oe=d(()=>{let e=q.value;return e?e===`chat`||e===`n8n_chat`?t.baseText(`agentSessions.origin.preview`):e===`instance-ai`?t.baseText(`agentSessions.origin.instanceAi`):e===`n8n_chat_production`?t.baseText(`agentSessions.origin.n8nChat`):e.charAt(0).toUpperCase()+e.slice(1):``}),Y=d(()=>T.value?Re(r(T.value),64):``),{projectName:ce,projectIcon:le}=Qe(S),ue=d(()=>({name:ee.PROJECTS_WORKFLOWS,params:{projectId:S.value}})),de=d(()=>({name:Fe,params:{projectId:S.value,agentId:C.value}})),X=d(()=>({...typeof de.value==`object`?de.value:{},query:{section:ve}})),fe=d(()=>[{id:S.value,label:ce.value??t.baseText(`agents.builder.header.projectFallback`),href:c.resolve(ue.value).href},{id:C.value,label:T.value?.agentName??`…`,href:c.resolve(de.value).href}]),Z=d(()=>{let e=u.threads;return e.length===0?[{id:`__empty__`,label:t.baseText(`agentSessions.empty`),disabled:!0}]:e.map(e=>({id:e.id,label:Re(r(e),64),class:e.id===w.value?`session-dropdown-item-active`:void 0,data:{date:De(e.updatedAt),active:e.id===w.value}}))}),me=d(()=>T.value?T.value.totalPromptTokens+T.value.totalCompletionTokens:0),Q=d(()=>T.value?.id===w.value),he=d(()=>B.value||Q.value&&T.value?.canContinueInPreview===!0),ge=d(()=>he.value&&k.value),_e=d(()=>T.value?.totalCost??0),ye=d(()=>Ee(T.value?.totalDuration??0)),be=d(()=>T.value!==null&&T.value.id===F.value),$=d(()=>be.value?Y.value:V.value),xe=d(()=>be.value||L.value);function Se(e){T.value=e?.thread??null,E.value=e?.executions??[],Ce(S.value,C.value)}function Ce(e,t){let n=T.value;n?.canContinueInPreview&&n.projectId===e&&n.agentId===t&&u.upsertThread(n)}let we=0;I([S,C],async([e,t])=>{let n=++we;A.value=!1,O.value=null;try{let[r]=await Promise.all([R(_.restApiContext,e,t),y(e,t),u.fetchThreads(e,t,{filters:lt()})]);n===we&&(O.value=r,Ce(e,t))}finally{n===we&&(A.value=!0)}},{immediate:!0}),I(w,e=>{P.value=e},{immediate:!0}),I(ie,e=>{e&&(T.value=null,E.value=[])}),st({projectId:S,agentId:C,threadId:F},()=>{!ie.value||!F.value||c.replace({name:ne,params:{projectId:S.value,agentId:C.value,threadId:F.value}})});function Ee(e){return!e||e<=0?`0ms`:e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}function De(e){if(!e)return``;let{date:t,time:n}=Le(e);return`${t} ${n}`}let Oe=tr(X);function ke(e){e.id===S.value?c.push(ue.value):e.id===C.value&&c.push(de.value)}function Ae(e){e===`__empty__`||e===w.value||c.push({name:ne,params:{projectId:S.value,agentId:C.value,threadId:e}})}async function je(e){N.value&&(!await K(e)||e!==w.value||c.replace(X.value))}function Me(){he.value&&(k.value=!k.value)}function Ne(){F.value&&Ae(F.value)}return(e,r)=>(D(),f(`div`,{class:b(e.$style.view)},[i(mt,{"breadcrumb-items":fe.value,"project-icon":m(le),"session-title":Y.value,"session-options":Z.value,"show-metrics":!!T.value,"trigger-source":q.value,"trigger-icon":ae.value,"trigger-label":oe.value,"total-tokens":me.value,"total-cost":_e.value,"duration-label":ye.value,"show-langsmith-export":m(p)&&Q.value,"langsmith-export-loading":m(h),"show-preview":he.value,"is-preview-open":ge.value,onBreadcrumbSelect:ke,onSessionSelect:Ae,onLangsmithExport:r[0]||=e=>m(g)({projectId:S.value,agentId:C.value,threadId:w.value}),onTogglePreview:Me,onClose:m(Oe)},null,8,[`breadcrumb-items`,`project-icon`,`session-title`,`session-options`,`show-metrics`,`trigger-source`,`trigger-icon`,`trigger-label`,`total-tokens`,`total-cost`,`duration-label`,`show-langsmith-export`,`langsmith-export-loading`,`show-preview`,`is-preview-open`,`onClose`]),n(`div`,{class:b([e.$style.content,{[e.$style.previewOpen]:ge.value}])},[ie.value?(D(),f(`div`,{key:1,class:b(e.$style.newSessionEmpty)},[i(m(se),{icon:{type:`icon`,value:`message-square`},heading:m(t).baseText(`agentSessions.timeline.emptyState.heading`),description:m(t).baseText(`agentSessions.timeline.emptyState.description`)},null,8,[`heading`,`description`])],2)):(D(),a(er,{key:0,"project-id":S.value,"agent-id":C.value,"thread-id":w.value,onLoaded:Se},null,8,[`project-id`,`agent-id`,`thread-id`])),he.value?(D(),a(pt,{key:2,"is-open":ge.value,"session-title":$.value,"session-options":m(te),"has-session":xe.value,initialized:A.value,"project-id":S.value,"agent-id":C.value,agent:O.value,"local-config":m(v),"connected-triggers":[],"effective-session-id":m(F),"new-session":m(z),"can-delete-session":N.value,"is-deleting-session":m(H),onViewTrace:Ne,onNewSession:m(W),onDeleteSession:je,onSessionSelect:m(U),onSessionCreated:m(re),onClose:Me},null,8,[`is-open`,`session-title`,`session-options`,`has-session`,`initialized`,`project-id`,`agent-id`,`agent`,`local-config`,`effective-session-id`,`new-session`,`can-delete-session`,`is-deleting-session`,`onNewSession`,`onSessionSelect`,`onSessionCreated`])):o(``,!0)],2)],2))}}),[[`__cssModules`,{$style:{view:`_view_1lkg6_1`,content:`_content_1lkg6_8`,previewOpen:`_previewOpen_1lkg6_17`,newSessionEmpty:`_newSessionEmpty_1lkg6_26`}}]]);export{nr as default};
@@ -1 +1 @@
1
- try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`3c5d0844-92e5-470a-85ab-b17212e3cb4e`,e._sentryDebugIdIdentifier=`sentry-dbid-3c5d0844-92e5-470a-85ab-b17212e3cb4e`)})()}catch{}import{t as e}from"./AgentSessionsListView-CAhtGxXU.js";export{e as default};
1
+ try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`3c5d0844-92e5-470a-85ab-b17212e3cb4e`,e._sentryDebugIdIdentifier=`sentry-dbid-3c5d0844-92e5-470a-85ab-b17212e3cb4e`)})()}catch{}import{t as e}from"./AgentSessionsListView-Ce3ECZGI.js";export{e as default};
@@ -0,0 +1 @@
1
+ try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d25b2feb-bdf1-43cf-a496-bb84531c8a1e`,e._sentryDebugIdIdentifier=`sentry-dbid-d25b2feb-bdf1-43cf-a496-bb84531c8a1e`)})()}catch{}import"./rolldown-runtime-BobR2NKB.js";import{Ad as e,Fd as t,Hd as n,Id as r,Ld as i,Ms as a,Pd as o,Rd as s,Vd as c,Vf as l,Wd as u,bs as d,cf as f,cp as p,cs as m,jd as h,of as g,pp as _,rf as v,ss as y,tf as b,xf as x,zd as S}from"./vendor-DS7UZyZ6.js";import{AT as C,Aw as w,ET as T,Em as E,FT as D,Lw as O,Rw as k,Vw as A,aC as j,ew as M,pT as N,sT as P,vT as F,ws as I,zv as L}from"./app-oLfukFT9.js";import{n as R,r as z,t as B}from"./thread-title-DtF3IdnY.js";var V={"data-test-id":`agent-sessions-filter-form`},H={for:`agent-sessions-filter-status`},U={for:`agent-sessions-filter-origin`},W={for:`agent-sessions-filter-start-date`},G=`YYYY-MM-DD HH:mm`,K=C(u({__name:`AgentSessionsFilter`,props:{modelValue:{}},emits:[`filterChanged`],setup(e,{emit:u}){let d=e,m=u,v=D(),y=[{id:`all`,name:v.baseText(`agentSessions.filters.anyStatus`)},{id:`running`,name:v.baseText(`agentSessions.status.running`)},{id:`succeeded`,name:v.baseText(`agentSessions.status.succeeded`)},{id:`error`,name:v.baseText(`agentSessions.status.error`)},{id:`cancelled`,name:v.baseText(`agentSessions.status.cancelled`)},{id:`interrupted`,name:v.baseText(`agentSessions.status.interrupted`)}],b=[{id:`all`,name:v.baseText(`agentSessions.filters.anyOrigin`)},{id:`preview`,name:v.baseText(`agentSessions.origin.preview`)},{id:`instance-ai`,name:v.baseText(`agentSessions.origin.instanceAi`)},{id:`mcp`,name:v.baseText(`agentSessions.origin.mcp`)},{id:`sub-agent`,name:v.baseText(`agentSessions.origin.subAgent`)},{id:`schedule`,name:v.baseText(`agentSessions.origin.schedule`)},{id:`workflow`,name:v.baseText(`agentSessions.origin.workflow`)},{id:`n8n_chat_production`,name:v.baseText(`agentSessions.origin.n8nChat`)},{id:`slack`,name:v.baseText(`agentSessions.origin.slack`)},{id:`telegram`,name:v.baseText(`agentSessions.origin.telegram`)},{id:`linear`,name:v.baseText(`agentSessions.origin.linear`)},{id:`discord`,name:v.baseText(`agentSessions.origin.discord`)},{id:`whatsapp`,name:v.baseText(`agentSessions.origin.whatsapp`)}],C=o(()=>[d.modelValue.status!==`all`,d.modelValue.origin!==`all`,!!d.modelValue.startDate,!!d.modelValue.endDate].filter(Boolean).length);function w(e){m(`filterChanged`,{...d.modelValue,...e})}function E(){m(`filterChanged`,z())}return(e,o)=>(g(),r(l(M),{side:`bottom`,align:`end`,"position-strategy":`absolute`,width:`calc(var(--spacing--5xl) + var(--spacing--4xl))`,"content-class":e.$style.popoverContent,"show-arrow":``},{trigger:x(()=>[n(l(T),{variant:`subtle`,"icon-only":``,icon:`funnel`,size:`medium`,"aria-label":l(v).baseText(`forms.resourceFiltersDropdown.filters`),active:C.value>0,"data-test-id":`agent-sessions-filter-button`,class:p(e.$style.filterButton)},S({_:2},[C.value>0?{name:`default`,fn:x(()=>[n(l(N),{variant:`primary`,class:p(e.$style.filterBadge),"data-test-id":`agent-sessions-filter-badge`},{default:x(()=>[c(_(C.value),1)]),_:1},8,[`class`])]),key:`0`}:void 0]),1032,[`aria-label`,`active`,`class`])]),content:x(()=>[t(`div`,V,[t(`div`,{class:p(e.$style.group)},[t(`label`,H,_(l(v).baseText(`agentSessions.filters.status`)),1),n(l(k),{id:`agent-sessions-filter-status`,"model-value":d.modelValue.status,"data-test-id":`agent-sessions-filter-status`,"onUpdate:modelValue":o[0]||=e=>w({status:e})},{default:x(()=>[(g(),s(h,null,f(y,e=>n(l(A),{key:e.id,label:e.name,value:e.id},null,8,[`label`,`value`])),64))]),_:1},8,[`model-value`])],2),t(`div`,{class:p(e.$style.group)},[t(`label`,U,_(l(v).baseText(`agentSessions.filters.origin`)),1),n(l(k),{id:`agent-sessions-filter-origin`,"model-value":d.modelValue.origin,"data-test-id":`agent-sessions-filter-origin`,"onUpdate:modelValue":o[1]||=e=>w({origin:e})},{default:x(()=>[(g(),s(h,null,f(b,e=>n(l(A),{key:e.id,label:e.name,value:e.id},null,8,[`label`,`value`])),64))]),_:1},8,[`model-value`])],2),t(`div`,{class:p(e.$style.group)},[t(`label`,W,_(l(v).baseText(`agentSessions.filters.lastActivity`)),1),t(`div`,{class:p(e.$style.dates)},[n(l(a),{id:`agent-sessions-filter-start-date`,"model-value":d.modelValue.startDate,type:`datetime`,format:G,placeholder:l(v).baseText(`agentSessions.filters.earliest`),"data-test-id":`agent-sessions-filter-start-date`,onChange:o[2]||=e=>w({startDate:e??``})},null,8,[`model-value`,`placeholder`]),t(`span`,{class:p(e.$style.divider)},_(l(v).baseText(`agentSessions.filters.to`)),3),n(l(a),{id:`agent-sessions-filter-end-date`,"model-value":d.modelValue.endDate,type:`datetime`,format:G,placeholder:l(v).baseText(`agentSessions.filters.latest`),"data-test-id":`agent-sessions-filter-end-date`,onChange:o[3]||=e=>w({endDate:e??``})},null,8,[`model-value`,`placeholder`])],2)],2),C.value>0?(g(),r(l(T),{key:0,variant:`ghost`,size:`large`,class:p(e.$style.resetButton),"data-test-id":`agent-sessions-filter-reset`,onClick:E},{default:x(()=>[c(_(l(v).baseText(`agentSessions.filters.reset`)),1)]),_:1},8,[`class`])):i(``,!0)])]),_:1},8,[`content-class`]))}}),[[`__cssModules`,{$style:{group:`_group_1a7ln_1`,dates:`_dates_1a7ln_8`,divider:`_divider_1a7ln_16`,resetButton:`_resetButton_1a7ln_21`,filterButton:`_filterButton_1a7ln_26`,filterBadge:`_filterBadge_1a7ln_30`,popoverContent:`_popoverContent_1a7ln_37`}}],[`__scopeId`,`data-v-4ec4786d`]]),q=[`data-status`,`onClick`],J={colspan:5,style:{"text-align":`center`,padding:`var(--spacing--lg)`}},Y={"data-test-id":`agent-sessions-empty`},ee={colspan:5},X=C(u({__name:`AgentSessionsListView`,props:{embedded:{type:Boolean,default:!1},projectId:{default:void 0},agentId:{default:void 0},manageStoreLifecycle:{type:Boolean,default:!0}},setup(a){let u=a,S=D(),C=B(),k=y(),A=m(),M=L(),z=j(),V=R(),H=!1,U=!1,W=o(()=>u.projectId??k.params.projectId),G=o(()=>u.agentId??k.params.agentId),X=o(()=>{let{status:e,origin:t,startDate:n,endDate:r}=V.filters;return e!==`all`||t!==`all`||!!n||!!r});function Z(){document.visibilityState!==`visible`||!V.autoRefresh||!W.value||!G.value||V.refreshThreads(W.value,G.value)}v(async()=>{if(u.manageStoreLifecycle&&(U=!0,document.addEventListener(`visibilitychange`,Z),W.value&&G.value))try{if(await V.fetchThreads(W.value,G.value),H)return;V.startAutoRefresh()}catch(e){if(H)return;M.showError(e,S.baseText(`agentSessions.showError.load`))}}),b(()=>{H=!0,U&&(document.removeEventListener(`visibilitychange`,Z),V.stopAutoRefresh())});function te(e){let{date:t,time:n}=I(e);return`${t} ${n}`}function ne(e){if(e<1e3)return`${e}ms`;let t=e/1e3;return Number.isInteger(t)?`${t}s`:`${t.toFixed(1)}s`}function re(e){return e===`succeeded`?`success`:e===`error`?`danger`:e===`running`?`text-base`:`warning`}function ie(e){switch(e){case`running`:return S.baseText(`agentSessions.status.running`);case`succeeded`:return S.baseText(`agentSessions.status.succeeded`);case`error`:return S.baseText(`agentSessions.status.error`);case`cancelled`:return S.baseText(`agentSessions.status.cancelled`);case`interrupted`:return S.baseText(`agentSessions.status.interrupted`)}}function Q(e){let t=e.source?.trim(),n=t?t.toLowerCase():void 0;if(e.parentThreadId||n===`subagent`||n===`sub-agent`)return{icon:`bot`,label:S.baseText(`agentSessions.origin.subAgent`)};if(e.taskId||n===`task`)return{icon:`clock`,label:S.baseText(`agentSessions.origin.schedule`)};switch(n){case`instance-ai`:return{icon:`flask-conical`,label:S.baseText(`agentSessions.origin.instanceAi`)};case`mcp`:return{icon:`flask-conical`,label:S.baseText(`agentSessions.origin.mcp`)};case`workflow`:return{icon:`workflow`,label:S.baseText(`agentSessions.origin.workflow`)};case`n8n_chat_production`:return{icon:`message-square`,label:S.baseText(`agentSessions.origin.n8nChat`)};case`slack`:case`telegram`:case`linear`:case`discord`:case`teams`:return{icon:n,label:n.charAt(0).toUpperCase()+n.slice(1)};case`whatsapp`:return{icon:n,label:`WhatsApp`};case`chat`:case`n8n_chat`:case void 0:return{icon:`flask-conical`,label:S.baseText(`agentSessions.origin.preview`)};default:return{icon:`plug`,label:t?t.charAt(0).toUpperCase()+t.slice(1):``}}}function ae(e){let t=[];return e.parentThreadId&&e.parentAgentId&&t.push({id:`goToParentRun`,label:S.baseText(`agentSessions.goToParentRun`),icon:`arrow-up-right`}),t.push({id:`delete`,label:S.baseText(`generic.delete`),icon:`trash-2`,divided:t.length>0}),t}function $(e){let t={name:E,params:{projectId:W.value,agentId:e.agentId,threadId:e.threadId}};A.push(t)}async function oe(e,t){if(e===`goToParentRun`){if(!t.parentAgentId||!t.parentThreadId)return;$({agentId:t.parentAgentId,threadId:t.parentThreadId});return}if(e===`delete`&&await z.confirm(S.baseText(`agentSessions.deleteConfirm.message`),S.baseText(`agentSessions.deleteConfirm.headline`),{type:`warning`,confirmButtonText:S.baseText(`agentSessions.deleteConfirm.confirmButtonText`),cancelButtonText:``})===`confirm`)try{await V.deleteThread(W.value,G.value,t.id),M.showMessage({title:S.baseText(`agentSessions.showMessage.deleted`),type:`success`})}catch(e){M.showError(e,S.baseText(`agentSessions.showError.delete`))}}async function se(){try{await V.loadMore(W.value,G.value)}catch(e){M.showError(e,S.baseText(`agentSessions.showError.load`))}}function ce(e){e?V.startAutoRefresh():V.stopAutoRefresh()}async function le(e){try{await V.setFilters(W.value,G.value,e)}catch(e){M.showError(e,S.baseText(`agentSessions.showError.load`))}}return(a,o)=>(g(),s(`div`,{class:p([a.$style.wrapper,{[a.$style.embedded]:u.embedded}])},[t(`div`,{class:p(a.$style.filters)},[n(l(w),{modelValue:l(V).autoRefresh,"onUpdate:modelValue":[o[0]||=e=>l(V).autoRefresh=e,ce],"data-test-id":`agent-sessions-auto-refresh-checkbox`,label:l(S).baseText(`executionsList.autoRefresh`)},null,8,[`modelValue`,`label`]),n(K,{"model-value":l(V).filters,onFilterChanged:le},null,8,[`model-value`])],2),t(`div`,{class:p(a.$style.tableContainer)},[n(l(O),{class:p(a.$style.sessionsTable)},{default:x(()=>[t(`tbody`,null,[(g(!0),s(h,null,f(l(V).threads,u=>(g(),s(`tr`,{key:u.id,class:p(a.$style.clickableRow),"data-status":u.status,"data-test-id":`agent-session-list-item`,onClick:e=>$({agentId:G.value,threadId:u.id})},[t(`td`,{class:p(a.$style.titleCell)},[t(`button`,{type:`button`,class:p(a.$style.sessionOpen),"data-test-id":`agent-session-open`},[t(`span`,{class:p(a.$style.sessionTitleRow)},[t(`span`,{class:p(a.$style.sessionTitle),"data-test-id":`agent-session-title`},_(l(C)(u)),3),u.status?(g(),s(`span`,{key:0,class:p(a.$style.statusRow)},[n(l(F),{color:re(u.status),size:`small`,"data-testid":`agent-session-status-indicator`},{default:x(()=>[c(_(ie(u.status)),1)]),_:2},1032,[`color`]),u.status===`running`?i(``,!0):(g(),r(l(F),{key:0,color:`text-base`,size:`small`,"data-testid":`agent-session-status-duration`},{default:x(()=>[c(_(l(S).baseText(`executionDetails.runningTimeFinished`,{interpolate:{time:ne(u.totalDuration)}})),1)]),_:2},1024))],2)):i(``,!0)],2)],2)],2),t(`td`,{class:p(a.$style.originCell),"data-test-id":`agent-session-origin`},[n(l(N),{"leading-icon":Q(u).icon,"data-test-id":`agent-session-origin-pill`},{default:x(()=>[c(_(Q(u).label),1)]),_:2},1032,[`leading-icon`])],2),t(`td`,{class:p(a.$style.dateCell),"data-test-id":`agent-session-updated-at`},_(te(u.updatedAt)),3),t(`td`,{class:p(a.$style.tokenCell),"data-test-id":`agent-session-token-usage`},_((u.totalPromptTokens+u.totalCompletionTokens).toLocaleString())+`t `,3),t(`td`,{class:p(a.$style.actionCell),onClick:o[1]||=e(()=>{},[`stop`])},[t(`div`,{class:p(a.$style.actionGroup)},[n(l(P),{items:ae(u),"activator-icon":`ellipsis`,"data-test-id":`agent-session-actions`,onSelect:e=>oe(e,u)},null,8,[`items`,`onSelect`])],2)],2)],10,q))),128)),l(V).loading&&!l(V).threads.length?(g(),s(h,{key:0},f(5,e=>t(`tr`,{key:e,class:p(a.$style.skeletonRow)},[(g(),s(h,null,f(5,e=>t(`td`,{key:e},[n(l(d))])),64))],2)),64)):i(``,!0),!l(V).loading&&!l(V).threads.length?(g(),s(`tr`,{key:1,class:p(a.$style.lastRow)},[t(`td`,J,[!l(V).threads.length&&!l(V).loading?(g(),s(`div`,{key:0,class:p(a.$style.emptyState)},[t(`span`,Y,_(l(S).baseText(X.value?`agentSessions.emptyWithFilters`:`agentSessions.empty`)),1),X.value?i(``,!0):(g(),s(`span`,{key:0,class:p(a.$style.emptyStateDescription),"data-test-id":`agent-sessions-empty-description`},_(l(S).baseText(`agentSessions.emptyDescription`)),3))],2)):i(``,!0)])],2)):i(``,!0),l(V).nextCursor?(g(),s(`tr`,{key:2,class:p(a.$style.lastRow)},[t(`td`,ee,[n(l(T),{icon:`refresh-cw`,variant:`ghost`,title:l(S).baseText(`agentSessions.loadMore`),label:l(S).baseText(`agentSessions.loadMore`),loading:l(V).loading,"data-test-id":`agent-sessions-load-more`,onClick:o[2]||=e=>se()},null,8,[`title`,`label`,`loading`])])],2)):i(``,!0)])]),_:1},8,[`class`])],2)],2))}}),[[`__cssModules`,{$style:{wrapper:`_wrapper_1g07f_3`,embedded:`_embedded_1g07f_16`,tableContainer:`_tableContainer_1g07f_22`,sessionsTable:`_sessionsTable_1g07f_31`,filters:`_filters_1g07f_52`,titleCell:`_titleCell_1g07f_58`,sessionTitle:`_sessionTitle_1g07f_64`,sessionTitleRow:`_sessionTitleRow_1g07f_75`,statusRow:`_statusRow_1g07f_83`,sessionOpen:`_sessionOpen_1g07f_90`,originCell:`_originCell_1g07f_107`,dateCell:`_dateCell_1g07f_108`,tokenCell:`_tokenCell_1g07f_109`,originPill:`_originPill_1g07f_114`,actionCell:`_actionCell_1g07f_135`,actionGroup:`_actionGroup_1g07f_142`,clickableRow:`_clickableRow_1g07f_149`,skeletonRow:`_skeletonRow_1g07f_175`,lastRow:`_lastRow_1g07f_179`,emptyState:`_emptyState_1g07f_193`,emptyStateDescription:`_emptyStateDescription_1g07f_201`}}]]);export{X as t};