n8n-editor-ui 1.117.2 → 1.118.0

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 (247) hide show
  1. package/dist/assets/{AddDataTableModal-D5F3B2r4.js → AddDataTableModal-zxWuqmjd.js} +14 -14
  2. package/dist/assets/{AnnotationTagsDropdown.ee-BC8a01rp.js → AnnotationTagsDropdown.ee-eHW-3UoT.js} +3 -3
  3. package/dist/assets/{AuthView-DrMcu08v.js → AuthView-ChkAJQce.js} +6 -6
  4. package/dist/assets/{Canvas-CNvrcRSO.css → Canvas-Bn6gWZ4a.css} +10 -149
  5. package/dist/assets/{Canvas-Btzn9ZwK.js → Canvas-C6GNMexh.js} +27 -29
  6. package/dist/assets/{ChangePasswordView-CW15NcGH.js → ChangePasswordView-Nm079kBG.js} +12 -12
  7. package/dist/assets/{ChatSidebar-B2Ta5I4Z.js → ChatSidebar-F_DQiqTc.js} +20 -19
  8. package/dist/assets/{ChatView-BBnPeZLY.js → ChatView-Bpfv5CaB.js} +382 -320
  9. package/dist/assets/{ChatView-Bevy5QGn.css → ChatView-tcBlz_g5.css} +176 -159
  10. package/dist/assets/CollectionParameter-bg5wO6z0.js +58 -0
  11. package/dist/assets/{CommunityNodeUpdateInfo-CPJqlJhq.js → CommunityNodeUpdateInfo-vlTmL7RM.js} +9 -9
  12. package/dist/assets/{CopyInput-Cwilt729.js → CopyInput-DC5_nXn2.js} +4 -4
  13. package/dist/assets/{CredentialIcon-3qNhRpjE.js → CredentialIcon-BcBcgIsH.js} +2 -2
  14. package/dist/assets/{CredentialsView-DBfDeQg_.js → CredentialsView-BPSVyrpG.js} +34 -34
  15. package/dist/assets/{DataTableActions-D1r8nYWw.js → DataTableActions-Cx76tjWJ.js} +7 -7
  16. package/dist/assets/{DataTableDetailsView-BAvjG9Sl.js → DataTableDetailsView-BGWJ7DaO.js} +20 -20
  17. package/dist/assets/{DataTableView-CfhtTHTE.js → DataTableView-DAaraaIS.js} +31 -31
  18. package/dist/assets/DemoFooter-Dxf2cm1O.js +71 -0
  19. package/dist/assets/{Draggable-CkbgujMO.js → Draggable-BQvrISN2.js} +1 -1
  20. package/dist/assets/{EmptySharedSectionActionBox-_gLtN8Od.js → EmptySharedSectionActionBox-Chhv6WKy.js} +4 -4
  21. package/dist/assets/{EnterpriseEdition.ee-CzoWraCB.js → EnterpriseEdition.ee-CS9batXq.js} +1 -1
  22. package/dist/assets/{EntityNotFound-DrJ68Lqz.js → EntityNotFound-CKlXW1IL.js} +4 -4
  23. package/dist/assets/{EntityUnAuthorised-D_y6iEn6.js → EntityUnAuthorised-DB0HgLOM.js} +4 -4
  24. package/dist/assets/{ErrorView-sqHG4cvT.js → ErrorView-BcG-b8ZO.js} +6 -6
  25. package/dist/assets/{EvaluationsRootView-BqbUy5rW.js → EvaluationsRootView-p42ZUoIa.js} +23 -23
  26. package/dist/assets/{EvaluationsView-DNdgFkNs.js → EvaluationsView-BEMEtmQ-.js} +17 -17
  27. package/dist/assets/{ExecutionsTime-CJF2y_Mq.js → ExecutionsTime-DnWwIkdL.js} +9 -9
  28. package/dist/assets/{ExecutionsView-BeNf3XRZ.js → ExecutionsView-BvXMj9Vu.js} +35 -35
  29. package/dist/assets/{ExternalSecretsProviderConnectionSwitch.ee-Bf_7nIAD.js → ExternalSecretsProviderConnectionSwitch.ee-DsoWhFxH.js} +4 -4
  30. package/dist/assets/{FixedCollectionParameter-DhxxT9l5.css → FixedCollectionParameter-BkEju_IA.css} +18 -18
  31. package/dist/assets/{FixedCollectionParameter-B-6jN9pB.js → FixedCollectionParameter-CiWWNV7x.js} +50 -49
  32. package/dist/assets/{ForgotMyPasswordView-ct2WJAh5.js → ForgotMyPasswordView-DyxwrSiM.js} +12 -12
  33. package/dist/assets/{InsightsChartAverageRuntime-CXzgnKsT.js → InsightsChartAverageRuntime-B9_qwMgO.js} +11 -9
  34. package/dist/assets/{InsightsChartFailed-BEfI2q3j.js → InsightsChartFailed-D8rDUthj.js} +10 -8
  35. package/dist/assets/{InsightsChartFailureRate-8hM7KF7W.js → InsightsChartFailureRate-D7MEDAWL.js} +11 -9
  36. package/dist/assets/{InsightsChartTimeSaved-CTwHgk_9.js → InsightsChartTimeSaved-BjEX9cpj.js} +11 -9
  37. package/dist/assets/{InsightsChartTotal-Gpt1PbtN.js → InsightsChartTotal-f6iwgPv4.js} +10 -8
  38. package/dist/assets/InsightsDashboard-Bx8KpVtA.js +474 -0
  39. package/dist/assets/{InsightsDashboard-DtYvNa8r.css → InsightsDashboard-CXRybzGm.css} +43 -14
  40. package/dist/assets/{InsightsPaywall-D-vzB-Rj.js → InsightsPaywall-ChwaaAze.js} +13 -13
  41. package/dist/assets/{InsightsSummary-BwL8KTCw.js → InsightsSummary-B_Sl6ewi.js} +12 -11
  42. package/dist/assets/{InsightsTableWorkflows-vK_3zH-v.js → InsightsTableWorkflows-B6X6oYiV.js} +13 -13
  43. package/dist/assets/{ItemsRenderer-BmYB1_dZ.js → ItemsRenderer-CBKvYrWq.js} +8 -8
  44. package/dist/assets/{KeyboardShortcutTooltip-CqWoJrGF.js → KeyboardShortcutTooltip-CXKgjDIT.js} +1 -1
  45. package/dist/assets/{LogsPanel-DFZUsotP.js → LogsPanel-C9ihuzgY.js} +21 -21
  46. package/dist/assets/LogsPanel-CblMd42Q.js +58 -0
  47. package/dist/assets/{MainHeader-CZcwdoT4.js → MainHeader-CmU7j5GG.js} +49 -48
  48. package/dist/assets/{MainSidebar-DozJE7kh.css → MainSidebar-BqoiqeXY.css} +1 -1
  49. package/dist/assets/{MainSidebar-CR7IKmug.js → MainSidebar-BxPyEMiS.js} +39 -41
  50. package/dist/assets/{MainSidebarUserArea-D-l3ZiZx.js → MainSidebarUserArea-ByBQ0UAN.js} +5 -5
  51. package/dist/assets/{Modal-BQle6uj0.js → Modal-3SRv9esg.js} +5 -5
  52. package/dist/assets/{ModalDrawer-DywKbYtl.js → ModalDrawer-D09_H3WU.js} +6 -6
  53. package/dist/assets/{NDVEmptyState-zQlRuQ5F.js → NDVEmptyState-CFiiknri.js} +1 -1
  54. package/dist/assets/{NodeCreation-CeoHrNIZ.js → NodeCreation-u6TbXLrA.js} +45 -44
  55. package/dist/assets/{NodeCreator-BD80LK7t.js → NodeCreator-BXGYbkZf.js} +28 -28
  56. package/dist/assets/{NodeDetailsView-CFhf21vq.js → NodeDetailsView-ZROQTwH7.js} +65 -64
  57. package/dist/assets/{NodeDetailsViewV2-4SzF7sJz.js → NodeDetailsViewV2-FP7sM1NB.js} +66 -65
  58. package/dist/assets/{NodeIcon-BBzZc2Cr.js → NodeIcon-DbpKADJJ.js} +2 -2
  59. package/dist/assets/{NodeSettings-CbSfTD_z.css → NodeSettings-B50suDD9.css} +37 -37
  60. package/dist/assets/{NodeSettings-BMS2GVY9.js → NodeSettings-C7FfbVQv.js} +21 -21
  61. package/dist/assets/{NodeView-BvNi47nz.js → NodeView-DJ75lhF1.js} +73 -69
  62. package/dist/assets/{ParameterInputList-Brizqu8u.css → ParameterInputList-aGPYvt18.css} +23 -23
  63. package/dist/assets/{ParameterInputList-BI-qpLew.js → ParameterInputList-gPv74p0o.js} +51 -1418
  64. package/dist/assets/{PrebuiltAgentTemplatesView-CDWunVmJ.js → PrebuiltAgentTemplatesView-CPHRp9d1.js} +15 -15
  65. package/dist/assets/{ProjectBreadcrumb-Dk0MStHJ.js → ProjectBreadcrumb-HQc8Y6pX.js} +4 -4
  66. package/dist/assets/{ProjectCardBadge-CqzNY93B.js → ProjectCardBadge-DhvyVuW1.js} +5 -5
  67. package/dist/assets/{ProjectHeader-Bn7Z3Y6a.js → ProjectHeader-CVo15mE_.js} +11 -13
  68. package/dist/assets/{ProjectIcon-B42VbGbe.js → ProjectIcon-Doey-RQc.js} +1 -1
  69. package/dist/assets/{ProjectRoleView-C4_5qeMc.js → ProjectRoleView-CcTSQCDB.js} +13 -13
  70. package/dist/assets/{ProjectRolesView-DRcdZSoA.js → ProjectRolesView-B1bJiMcv.js} +16 -16
  71. package/dist/assets/{ProjectSettings-CbZ9CK-d.js → ProjectSettings-CkiVn4IE.js} +24 -24
  72. package/dist/assets/{ProjectSharing-Dl4jUkk_.js → ProjectSharing-BEoNZXWQ.js} +18 -12
  73. package/dist/assets/{ProjectSharing-BbWB7xaB.css → ProjectSharing-DsD3YT5P.css} +9 -6
  74. package/dist/assets/{ProjectVariables-DTz-94bk.js → ProjectVariables-XgLTDYWe.js} +33 -33
  75. package/dist/assets/{PushConnectionTracker-CEfNfKMt.js → PushConnectionTracker-B8U5jb2a.js} +3 -3
  76. package/dist/assets/{ResourcesListLayout-C1oV456u.js → ResourcesListLayout-Dsx1VsiN.js} +10 -10
  77. package/dist/assets/{RunDataHtml-DCZENNJ3.js → RunDataHtml-DCb1Egc3.js} +1 -1
  78. package/dist/assets/{RunDataJson-CdK8UEnE.js → RunDataJson-DE42Mwzq.js} +14 -14
  79. package/dist/assets/{RunDataJsonActions-CjizHipx.js → RunDataJsonActions-BTkggY4p.js} +12 -12
  80. package/dist/assets/{RunDataParsedAiContent-CTB_6dDi.js → RunDataParsedAiContent-KxWt3HUI.js} +8 -8
  81. package/dist/assets/RunDataParsedAiContent-wJyf5Rsy.js +25 -0
  82. package/dist/assets/{RunDataSearch-NFoi_FS4.js → RunDataSearch-CBirDE7f.js} +7 -7
  83. package/dist/assets/{RunDataTable-rS7wZj5-.js → RunDataTable-DYt1Fkzz.js} +14 -14
  84. package/dist/assets/{SamlOnboarding-Av5Lq_UA.js → SamlOnboarding-Cpwf2P16.js} +12 -12
  85. package/dist/assets/{SaveButton-B2VDX1qM.js → SaveButton-C2Gkwcd6.js} +6 -5
  86. package/dist/assets/{SelectedItemsInfo-B-IcUSLK.js → SelectedItemsInfo-BO9w2ntq.js} +2 -2
  87. package/dist/assets/{SettingsApiView-B5gRvI6f.js → SettingsApiView-RqjYRzOu.js} +17 -17
  88. package/dist/assets/{SettingsCommunityNodesView-DOGkHd6e.js → SettingsCommunityNodesView-CrY_Cdll.js} +33 -32
  89. package/dist/assets/{SettingsExternalSecrets-BcRu8zB1.js → SettingsExternalSecrets-D4NwV7eZ.js} +15 -15
  90. package/dist/assets/{SettingsLdapView-n-rft8wb.js → SettingsLdapView-DK1CISMa.js} +18 -18
  91. package/dist/assets/{SettingsLogStreamingView-Dh49Z2VY.js → SettingsLogStreamingView-CKd4kHKk.js} +17 -17
  92. package/dist/assets/{SettingsMCPView-BUGm0cex.js → SettingsMCPView-BBsH7xGg.js} +35 -35
  93. package/dist/assets/{SettingsPersonalView-C_bsCiUL.js → SettingsPersonalView-BuRaIsdm.js} +13 -13
  94. package/dist/assets/{SettingsProvisioningView-Co8ofsgr.js → SettingsProvisioningView-SzLNb4Qo.js} +10 -10
  95. package/dist/assets/{SettingsSourceControl-o6a0QHua.js → SettingsSourceControl-B7hg6-GG.js} +17 -17
  96. package/dist/assets/{SettingsSso-Q5PlMyZy.js → SettingsSso-BxCxR3wV.js} +18 -18
  97. package/dist/assets/{SettingsUsageAndPlan-BFTvxC33.js → SettingsUsageAndPlan-DFJos9P4.js} +16 -16
  98. package/dist/assets/{SettingsUsersView-CAEUA7_x.js → SettingsUsersView-DyEDhF0q.js} +18 -18
  99. package/dist/assets/{SettingsView-BULLUO6z.js → SettingsView-Do6kHuex.js} +8 -8
  100. package/dist/assets/{SetupTemplateFormStep-BxemMdS7.js → SetupTemplateFormStep-BC6Gv9Yn.js} +6 -6
  101. package/dist/assets/{SetupView-CSXxmB9c.js → SetupView-B5VLMQdy.js} +12 -12
  102. package/dist/assets/{SetupWorkflowCredentialsButton-m7C62K5B.js → SetupWorkflowCredentialsButton-Sj0qCAav.js} +9 -9
  103. package/dist/assets/{SetupWorkflowFromTemplateView-D_IyW6Jo.js → SetupWorkflowFromTemplateView-yiqZFDT5.js} +18 -18
  104. package/dist/assets/{SigninView-BBeSCUS2.js → SigninView-B4TcSDoQ.js} +13 -13
  105. package/dist/assets/{SignoutView-C2zIR9h2.js → SignoutView-33NqF1r1.js} +9 -9
  106. package/dist/assets/{SignupView-B1hO3Ltc.js → SignupView-C9yQZPU6.js} +12 -12
  107. package/dist/assets/{TagsDropdown-DSgoFT2G.js → TagsDropdown-CBK5Jbvx.js} +5 -5
  108. package/dist/assets/{TemplateDetails-BSXglTJa.js → TemplateDetails-_9SG9Ptr.js} +7 -7
  109. package/dist/assets/{TemplateList-BwTtpSSb.js → TemplateList-DciGHvZb.js} +5 -5
  110. package/dist/assets/{TemplatesCollectionView-B5HqCB6R.js → TemplatesCollectionView--u6YfGq2.js} +20 -20
  111. package/dist/assets/{TemplatesSearchView-DRGUJiuP.js → TemplatesSearchView-DdLKh1uT.js} +18 -18
  112. package/dist/assets/{TemplatesView-C4pWMD2B.js → TemplatesView-FCDPW2Yq.js} +3 -3
  113. package/dist/assets/{TemplatesWorkflowView-2gzuWjGc.js → TemplatesWorkflowView-CzE7VNEW.js} +22 -22
  114. package/dist/assets/{TestRunDetailView-YgiY5E8a.js → TestRunDetailView-BePevBGV.js} +15 -15
  115. package/dist/assets/{TimeAgo-DEyMdv_4.js → TimeAgo-BbJFpIo5.js} +2 -2
  116. package/dist/assets/{TriggerPanel-Dd523PRl.js → TriggerPanel-Bo5r6zd1.js} +18 -18
  117. package/dist/assets/{TriggerPanel-BRJZvqDX.css → TriggerPanel-D5WejHyJ.css} +4 -4
  118. package/dist/assets/{VariablesUsageBadge-UipGis8s.js → VariablesUsageBadge-egc5OixT.js} +4 -4
  119. package/dist/assets/{VariablesView-CQyvFiYn.js → VariablesView-oHNpwfBn.js} +25 -25
  120. package/dist/assets/{VirtualSchema-CrmlfHey.js → VirtualSchema-7sIAPeE0.js} +74 -49
  121. package/dist/assets/{VirtualSchema-DSZB6gKx.css → VirtualSchema-CSh2c6Ec.css} +42 -46
  122. package/dist/assets/VirtualSchema-_6DLXPlB.js +43 -0
  123. package/dist/assets/{VueMarkdown-DZ67GryI.js → VueMarkdown-70GnkI0W.js} +1 -1
  124. package/dist/assets/{WorkerView-C4AXYF6S.js → WorkerView-D8am2TKI.js} +38 -37
  125. package/dist/assets/{WorkflowActivator-g-fhma_I.js → WorkflowActivator-CbrL5beg.js} +8 -8
  126. package/dist/assets/{WorkflowExecutionsInfoAccordion-NGfYbj4M.js → WorkflowExecutionsInfoAccordion-Cb62PR2q.js} +7 -7
  127. package/dist/assets/{WorkflowExecutionsLandingPage-CE9JbQkV.js → WorkflowExecutionsLandingPage-DbwtOrCN.js} +18 -18
  128. package/dist/assets/{WorkflowExecutionsPreview-CONJH5mF.js → WorkflowExecutionsPreview-BS7_jcuB.js} +22 -22
  129. package/dist/assets/{WorkflowExecutionsView-D66lFs2Z.js → WorkflowExecutionsView-DYDAaUZI.js} +34 -34
  130. package/dist/assets/{WorkflowHistory-C6bp-ZMb.js → WorkflowHistory-BwpkfMMS.js} +16 -16
  131. package/dist/assets/{WorkflowOnboardingView-BmRX_2z1.js → WorkflowOnboardingView-aMUbBMqV.js} +8 -8
  132. package/dist/assets/{WorkflowPreview-Dt_apdcn.js → WorkflowPreview-B48ruNsM.js} +5 -5
  133. package/dist/assets/{WorkflowTagsDropdown-BoWhJUGQ.js → WorkflowTagsDropdown-D2XbYd5V.js} +3 -3
  134. package/dist/assets/{WorkflowsView-C1fgAFEI.js → WorkflowsView-DiNDMl-G.js} +49 -49
  135. package/dist/assets/{_MapCache-CaP4mhI9.js → _MapCache-BGBKpT5S.js} +7 -2
  136. package/dist/assets/{apiKeys.store-B-gq_pnY.js → apiKeys.store-BVgdNKhA.js} +1 -1
  137. package/dist/assets/{assistant.store-CRW9xRe7.js → assistant.store-Bifc8qm3.js} +8 -6
  138. package/dist/assets/{auth.eventBus-C4nOf_EB.js → auth.eventBus-CUpasXbj.js} +1 -1
  139. package/dist/assets/{chartjs.utils-CQGs2abL.js → chartjs.utils-DrHDj0Lr.js} +3 -3
  140. package/dist/assets/{chatPanel.store-kodFX1JM.js → chatPanel.store-CGEgwWy1.js} +4 -4
  141. package/dist/assets/{cloudPlan.store-DVjbdiNL.js → cloudPlan.store-BJqRknNR.js} +2 -2
  142. package/dist/assets/{col-JPNUrDqS.js → col-b1w4xo57.js} +3 -3
  143. package/dist/assets/{constants-yBDcqULv.js → constants-CO7BXe8z.js} +509 -515
  144. package/dist/assets/{constants-BlMVf5I9.js → constants-DlQs6Cav.js} +2 -1
  145. package/dist/assets/{core-QrkR8HgP.js → core-CGHB7oTc.js} +1 -1
  146. package/dist/assets/{dataTable.store-CqCrYCu5.js → dataTable.store-ttcUlJRw.js} +2 -2
  147. package/dist/assets/{date-picker-CSlIkiDj.js → date-picker-YLC0sjSf.js} +3 -3
  148. package/dist/assets/{dateFormatter-DFjVBgCR.js → dateFormatter-jkly8a5N.js} +1 -1
  149. package/dist/assets/{dialog-TBTmQpdI.js → dialog-B1U4ND70.js} +4 -4
  150. package/dist/assets/{dist-DQo7s2CD.js → dist-BCqe3G7U.js} +1 -1
  151. package/dist/assets/{es-C9hyaXz6.js → es-BO7MlKL2.js} +1 -1
  152. package/dist/assets/{evaluation.constants-XN1P-VOH.js → evaluation.constants-Bk1c697W.js} +3 -3
  153. package/dist/assets/{executions.store-CQlrw6PV.js → executions.store-BK5GLhI-.js} +1 -1
  154. package/dist/assets/{externalSecrets.ee.store-BMH2q7Z9.js → externalSecrets.ee.store-DyO5hFK8.js} +2 -2
  155. package/dist/assets/{focusPanel.store-CSnLUdy8.js → focusPanel.store-Cakdvw91.js} +4 -4
  156. package/dist/assets/{folders.store-BcQ6Wp6V.js → folders.store-Cbs7HYLv.js} +2 -2
  157. package/dist/assets/{icon-bktrs2EQ.js → icon-C8yfF1LY.js} +1 -1
  158. package/dist/assets/{index-cdjIRp4v.js → index-BLT1lCJl.js} +126 -106
  159. package/dist/assets/{index-DmWYvsgC.css → index-D9KM9gTZ.css} +24 -0
  160. package/dist/assets/{insights.constants-BkI0n967.js → insights.constants-DK2g3nnD.js} +1 -11
  161. package/dist/assets/{insights.store-RACppv9v.js → insights.store-m7dTgwU4.js} +5 -5
  162. package/dist/assets/{insights.utils-BwI_ySXw.js → insights.utils-7zZgNSKk.js} +12 -3
  163. package/dist/assets/{isEmpty-Bi_tkWnE.css → isEmpty-B-mcFJ04.css} +2 -2
  164. package/dist/assets/{isEmpty-DDq4d3IR.js → isEmpty-Dh4aNe51.js} +186 -83
  165. package/dist/assets/{languageModules-ByRkY5Ff.js → languageModules-B8UNBljm.js} +1 -1
  166. package/dist/assets/{logStreaming.store-B7UWuvIf.js → logStreaming.store-CkZizwRc.js} +1 -1
  167. package/dist/assets/{mcp.store-BysD0rVp.js → mcp.store-C8vagCPq.js} +2 -2
  168. package/dist/assets/{merge-BONzxfgw.js → merge-Db6rb1_m.js} +1 -1
  169. package/dist/assets/{nodeCreator.store-dfEe2Vlw.js → nodeCreator.store-DKWP5T3f.js} +8 -8
  170. package/dist/assets/{nodeIcon-iL6AFnZi.js → nodeIcon-BAM1uNdC.js} +1 -1
  171. package/dist/assets/{nodeTransforms-BvfzWeb1.js → nodeTransforms-smKGxdJz.js} +2 -2
  172. package/dist/assets/{npsSurvey.store-B7_iNEDS.js → npsSurvey.store-D44ME1MU.js} +2 -2
  173. package/dist/assets/{orderBy-DnR31tty.js → orderBy-B8m2WvN5.js} +2 -2
  174. package/dist/assets/{overlay-Dp9PTQlx.js → overlay-DeoWJ8oB.js} +2 -2
  175. package/dist/assets/{personalizedTemplatesV3.store-1DMQ5zuk.js → personalizedTemplatesV3.store-xAoq0hdB.js} +4 -4
  176. package/dist/assets/{pickBy-Du5IQGBK.js → pickBy-CsEPk_gZ.js} +3 -3
  177. package/dist/assets/{radio-CdRx7dMg.js → radio-j4rSUoao.js} +3 -3
  178. package/dist/assets/{readyToRunWorkflows.store-CeAHy3Gw.js → readyToRunWorkflows.store-0tf5VDt7.js} +5 -5
  179. package/dist/assets/{readyToRunWorkflowsV2.store-L-gWAPRw.js → readyToRunWorkflowsV2.store-VvLyAD65.js} +8 -8
  180. package/dist/assets/retry-sDkwzrPY.js +23 -0
  181. package/dist/assets/{roles.store-NBXjdv6j.js → roles.store-ZwchRX8D.js} +2 -2
  182. package/dist/assets/{router-C-pTBpvF.js → router-jJtZZKZh.js} +83 -82
  183. package/dist/assets/{schemaPreview.store-H_WmE5oY.js → schemaPreview.store--hX2TXb-.js} +2 -2
  184. package/dist/assets/{semver-DsJndgBW.js → semver-CqxA3iSr.js} +1 -1
  185. package/dist/assets/sourceControl.eventBus-B10rpVhp.js +3 -0
  186. package/dist/assets/{src-B3UiHJ-Q.css → src-C5a_PFvg.css} +322 -14
  187. package/dist/assets/{src-DEMmv7aL.js → src-Cl0xZtCE.js} +6713 -821
  188. package/dist/assets/{sso.store-DrkAY9s8.js → sso.store-CUl7u_8B.js} +1 -1
  189. package/dist/assets/{table-DwbSg1lE.js → table-B9oFv7WW.js} +3 -3
  190. package/dist/assets/{templateActions-jovoofZV.js → templateActions-0m3shEBq.js} +4 -4
  191. package/dist/assets/{templateTransforms-0i4sTnCn.js → templateTransforms-DAKKzDnq.js} +1 -1
  192. package/dist/assets/{templates.store-CPIqYFhQ.js → templates.store-DTZvTwkj.js} +3 -3
  193. package/dist/assets/{truncate-Zm7rqMgr.js → truncate-Dc79aML5.js} +1 -1
  194. package/dist/assets/{uniqBy-aD1YpiVl.js → uniqBy-BPM3FjgB.js} +1 -1
  195. package/dist/assets/{usage.store-j2Tik6Qj.js → usage.store-D55n_Sb8.js} +1 -1
  196. package/dist/assets/{useActions-BPH1iZ0J.js → useActions-CLFMsePu.js} +5 -5
  197. package/dist/assets/{useBeforeUnload-DF2JzJ4n.js → useBeforeUnload-BpdETqAC.js} +3 -3
  198. package/dist/assets/{useBugReporting-BQ-oFo-Y.js → useBugReporting-CtqZQ5ol.js} +9 -9
  199. package/dist/assets/{useCanvasOperations-CUB22LeC.js → useCanvasOperations-CArZAi8X.js} +14 -13
  200. package/dist/assets/{useChatHubSidebarState-CVPEM_x0.js → useChatHubSidebarState-B3pC_PWc.js} +27 -42
  201. package/dist/assets/{useClipboard-Bo6m_x4c.js → useClipboard-Ds1DthAm.js} +2 -2
  202. package/dist/assets/{useCommandBar-TkjMRXrh.js → useCommandBar-O5fVoTOU.js} +22 -22
  203. package/dist/assets/{useDebounce-BDOVCaxX.js → useDebounce-BRhQZVIC.js} +2 -2
  204. package/dist/assets/{useExecutionData-BIXnhI3s.js → useExecutionData-Dx2GMasN.js} +1 -1
  205. package/dist/assets/{useExecutionDebugging-BOKa05bM.js → useExecutionDebugging-CQ0k4sDj.js} +7 -7
  206. package/dist/assets/{useExecutionHelpers-BGFecxse.js → useExecutionHelpers-Bjt-batF.js} +5 -5
  207. package/dist/assets/{useExternalHooks-zp0_PYje.js → useExternalHooks-DA3PzQce.js} +1 -1
  208. package/dist/assets/{useImportCurlCommand-ysDdbl5s.js → useImportCurlCommand-DlQ_fBtE.js} +20 -11
  209. package/dist/assets/{useKeybindings-Ba9jeoZl.js → useKeybindings-CeZJtKID.js} +4 -4
  210. package/dist/assets/{useLogsTreeExpand-DdiX-s66.js → useLogsTreeExpand-jGcbObcQ.js} +12 -11
  211. package/dist/assets/{useMcp-B8mELqLq.js → useMcp-dgK39Qex.js} +3 -3
  212. package/dist/assets/{useMessage-B0Giqa4b.js → useMessage-BRYWi-M_.js} +5 -5
  213. package/dist/assets/{usePageRedirectionHelper-UBkr_KXQ.js → usePageRedirectionHelper-CHYQYVQk.js} +4 -4
  214. package/dist/assets/{usePinnedData-CyQ835zq.js → usePinnedData-wr8coWIe.js} +5 -5
  215. package/dist/assets/{useProjectPages-C-a7fzXH.js → useProjectPages-4anfp-hs.js} +2 -2
  216. package/dist/assets/{usePushConnection-CpL3EuJf.js → usePushConnection-BZ4Nfuk_.js} +11 -11
  217. package/dist/assets/{useRecentResources-B0Rk_0y2.js → useRecentResources-BONr7qgn.js} +7 -7
  218. package/dist/assets/{useRunWorkflow-mrpYc9Bd.js → useRunWorkflow-B0NRhnNX.js} +10 -31
  219. package/dist/assets/{useTelemetry-DMMCGp2b.js → useTelemetry-C-PPHLYt.js} +53 -22
  220. package/dist/assets/{useTelemetryContext-2dWn5z4h.js → useTelemetryContext-dbQiFzDe.js} +1 -1
  221. package/dist/assets/{useToast-C1ZpPbXg.js → useToast-DT24R-_J.js} +6 -6
  222. package/dist/assets/{useWorkflowActivate-Fy78XZUn.js → useWorkflowActivate-BN-oa5MP.js} +8 -8
  223. package/dist/assets/{useWorkflowSaving-41NACxPy.js → useWorkflowSaving-YMreJCAo.js} +9 -9
  224. package/dist/assets/{useWorkflowsCache-DtVpUl61.js → useWorkflowsCache-5wmMXakz.js} +1 -1
  225. package/dist/assets/{versions.store-BiGAlubj.js → versions.store-DKb-5qaR.js} +3 -3
  226. package/dist/assets/{vue-json-pretty-BlSK1oxV.js → vue-json-pretty-DiH9ZFoW.js} +1 -1
  227. package/dist/index.html +110 -108
  228. package/package.json +1 -1
  229. package/dist/assets/CollectionParameter-CsuKmV_8.js +0 -57
  230. package/dist/assets/DemoFooter-D2Pmx80f.js +0 -70
  231. package/dist/assets/InsightsDashboard-C4pwDFR4.js +0 -348
  232. package/dist/assets/LogsPanel-CaWMzPvt.js +0 -57
  233. package/dist/assets/RunDataParsedAiContent-CkeoDu7L.js +0 -25
  234. package/dist/assets/VirtualSchema-CFvbVzgr.js +0 -42
  235. /package/dist/assets/{AnimatedSpinner-vlvkUC5d.js → AnimatedSpinner-DRB4A7Dx.js} +0 -0
  236. /package/dist/assets/{FileSaver.min-D8bnhVIu.js → FileSaver.min-CR_3Le5x.js} +0 -0
  237. /package/dist/assets/{PageViewLayout-CKhCcgRz.js → PageViewLayout-CCwb27rd.js} +0 -0
  238. /package/dist/assets/{RunDataHtml-BJNWCJaI.js → RunDataHtml-DOQ0pkg3.js} +0 -0
  239. /package/dist/assets/{TextWithHighlights-4Fm26J2a.js → TextWithHighlights-B8mQwCVK.js} +0 -0
  240. /package/dist/assets/{buttons.esm-jQ2As9fr.js → buttons.esm-CnepylvE.js} +0 -0
  241. /package/dist/assets/{chart-C2tFerhP.js → chart-inxSB4fp.js} +0 -0
  242. /package/dist/assets/{core-DfWDGJ3H.js → core-BfCr8skN.js} +0 -0
  243. /package/dist/assets/{exports-9spWG404.js → exports-RJH1xso1.js} +0 -0
  244. /package/dist/assets/{smartDecimal-Bi50OE4b.js → smartDecimal-BitNC0jz.js} +0 -0
  245. /package/dist/assets/{sortByProperty-qz-1s69w.js → sortByProperty-CUhVU03p.js} +0 -0
  246. /package/dist/assets/{vue-GniKVX87.js → vue-B27A1Apg.js} +0 -0
  247. /package/dist/assets/{xml-BZFrCZxf.js → xml-CcxXd9zY.js} +0 -0
@@ -1,34 +1,34 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FixedCollectionParameter-B-6jN9pB.js","assets/_plugin-vue_export-helper-BwBpWJRZ.js","assets/src-DEMmv7aL.js","assets/preload-helper-CR0ecmWK.js","assets/icon-bktrs2EQ.js","assets/vue.runtime.esm-bundler-DDuXT-9r.js","assets/chunk-6z4oVpB-.js","assets/truncate-Zm7rqMgr.js","assets/_MapCache-CaP4mhI9.js","assets/sanitize-html-BuXr7o4T.js","assets/empty-BuGRxzl4.js","assets/path-browserify-DsmB_HMK.js","assets/en-BYTsM8fR.js","assets/src-B3UiHJ-Q.css","assets/nodeCreator.store-dfEe2Vlw.js","assets/constants-yBDcqULv.js","assets/merge-BONzxfgw.js","assets/useTelemetry-DMMCGp2b.js","assets/dateformat-D7TIhVd4.js","assets/useDebounce-BDOVCaxX.js","assets/useExternalHooks-zp0_PYje.js","assets/templates.store-CPIqYFhQ.js","assets/cloudPlan.store-DVjbdiNL.js","assets/nodeIcon-iL6AFnZi.js","assets/isEmpty-DDq4d3IR.js","assets/useToast-C1ZpPbXg.js","assets/FileSaver.min-D8bnhVIu.js","assets/uniqBy-aD1YpiVl.js","assets/NDVEmptyState-zQlRuQ5F.js","assets/NDVEmptyState-Hm1vFJ4i.css","assets/vue-json-pretty-BlSK1oxV.js","assets/vue-GniKVX87.js","assets/schemaPreview.store-H_WmE5oY.js","assets/assistant.store-CRW9xRe7.js","assets/RunDataHtml-BJNWCJaI.js","assets/RunDataHtml-Bu3RZcuV.css","assets/useClipboard-Bo6m_x4c.js","assets/usePinnedData-CyQ835zq.js","assets/chatPanel.store-kodFX1JM.js","assets/useExecutionHelpers-BGFecxse.js","assets/dateFormatter-DFjVBgCR.js","assets/externalSecrets.ee.store-BMH2q7Z9.js","assets/isEmpty-Bi_tkWnE.css","assets/exports-9spWG404.js","assets/useRunWorkflow-mrpYc9Bd.js","assets/useCanvasOperations-CUB22LeC.js","assets/folders.store-BcQ6Wp6V.js","assets/executions.store-CQlrw6PV.js","assets/focusPanel.store-CSnLUdy8.js","assets/useWorkflowSaving-41NACxPy.js","assets/useMessage-B0Giqa4b.js","assets/overlay-Dp9PTQlx.js","assets/npsSurvey.store-B7_iNEDS.js","assets/date-picker-CSlIkiDj.js","assets/dialog-TBTmQpdI.js","assets/VirtualSchema-CrmlfHey.js","assets/Draggable-CkbgujMO.js","assets/Draggable-DfBtatxg.css","assets/useTelemetryContext-2dWn5z4h.js","assets/useTelemetryContext-BpnKRIT7.css","assets/NodeIcon-BBzZc2Cr.js","assets/NodeIcon-C-Ise6x6.css","assets/TextWithHighlights-4Fm26J2a.js","assets/TextWithHighlights-BgbTzzK2.css","assets/nodeTransforms-BvfzWeb1.js","assets/VirtualSchema-DSZB6gKx.css","assets/FixedCollectionParameter-DhxxT9l5.css","assets/CollectionParameter-CsuKmV_8.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FixedCollectionParameter-CiWWNV7x.js","assets/_plugin-vue_export-helper-BwBpWJRZ.js","assets/src-Cl0xZtCE.js","assets/preload-helper-CR0ecmWK.js","assets/icon-C8yfF1LY.js","assets/vue.runtime.esm-bundler-DDuXT-9r.js","assets/chunk-6z4oVpB-.js","assets/truncate-Dc79aML5.js","assets/_MapCache-BGBKpT5S.js","assets/sanitize-html-BuXr7o4T.js","assets/empty-BuGRxzl4.js","assets/path-browserify-DsmB_HMK.js","assets/en-BYTsM8fR.js","assets/src-C5a_PFvg.css","assets/nodeCreator.store-DKWP5T3f.js","assets/constants-CO7BXe8z.js","assets/merge-Db6rb1_m.js","assets/useTelemetry-C-PPHLYt.js","assets/dateformat-D7TIhVd4.js","assets/useDebounce-BRhQZVIC.js","assets/useExternalHooks-DA3PzQce.js","assets/templates.store-DTZvTwkj.js","assets/cloudPlan.store-BJqRknNR.js","assets/nodeIcon-BAM1uNdC.js","assets/isEmpty-Dh4aNe51.js","assets/useRunWorkflow-B0NRhnNX.js","assets/useToast-DT24R-_J.js","assets/useCanvasOperations-CArZAi8X.js","assets/useClipboard-Ds1DthAm.js","assets/usePinnedData-wr8coWIe.js","assets/folders.store-Cbs7HYLv.js","assets/executions.store-BK5GLhI-.js","assets/focusPanel.store-Cakdvw91.js","assets/retry-sDkwzrPY.js","assets/useWorkflowSaving-YMreJCAo.js","assets/useMessage-BRYWi-M_.js","assets/overlay-DeoWJ8oB.js","assets/npsSurvey.store-D44ME1MU.js","assets/FileSaver.min-CR_3Le5x.js","assets/uniqBy-BPM3FjgB.js","assets/NDVEmptyState-CFiiknri.js","assets/NDVEmptyState-Hm1vFJ4i.css","assets/vue-json-pretty-DiH9ZFoW.js","assets/vue-B27A1Apg.js","assets/schemaPreview.store--hX2TXb-.js","assets/assistant.store-Bifc8qm3.js","assets/chatPanel.store-CGEgwWy1.js","assets/useExecutionHelpers-Bjt-batF.js","assets/dateFormatter-jkly8a5N.js","assets/externalSecrets.ee.store-DyO5hFK8.js","assets/RunDataHtml-DOQ0pkg3.js","assets/RunDataHtml-Bu3RZcuV.css","assets/isEmpty-B-mcFJ04.css","assets/exports-RJH1xso1.js","assets/date-picker-YLC0sjSf.js","assets/dialog-B1U4ND70.js","assets/VirtualSchema-7sIAPeE0.js","assets/Draggable-BQvrISN2.js","assets/Draggable-DfBtatxg.css","assets/NodeIcon-DbpKADJJ.js","assets/NodeIcon-C-Ise6x6.css","assets/useTelemetryContext-dbQiFzDe.js","assets/useTelemetryContext-BpnKRIT7.css","assets/TextWithHighlights-B8mQwCVK.js","assets/TextWithHighlights-BgbTzzK2.css","assets/nodeTransforms-smKGxdJz.js","assets/VirtualSchema-CSh2c6Ec.css","assets/FixedCollectionParameter-BkEju_IA.css","assets/CollectionParameter-bg5wO6z0.js"])))=>i.map(i=>d[i]);
2
2
  import { a as __toCommonJS, n as __esmMin, o as __toESM, r as __export, t as __commonJSMin } from "./chunk-6z4oVpB-.js";
3
3
  import { $ as onUpdated, A as createStaticVNode, Bt as toRaw, C as computed, D as createElementBlock, E as createCommentVNode, F as getCurrentInstance, G as nextTick, Gt as unref, It as ref, J as onBeforeUnmount, M as createVNode, N as defineAsyncComponent, P as defineComponent, Pt as reactive, Q as onUnmounted, Sn as toDisplayString, T as createBlock, U as mergeModels, Ut as toValue, V as isVNode, Vt as toRef, X as onErrorCaptured, Z as onMounted, _ as Fragment, _n as normalizeClass, _t as watch, at as renderSlot, bt as withCtx, c as useCssModule, ct as resolveDynamicComponent, et as openBlock, ft as useModel, h as withModifiers, it as renderList, j as createTextVNode, k as createSlots, m as withKeys, mt as useTemplateRef, n as Transition, nt as provide, p as vShow, pn as isString, pt as useSlots, st as resolveDirective, tn as init_shared_esm_bundler, vt as watchEffect, w as createBaseVNode, xt as withDirectives, y as Suspense, yn as normalizeStyle, z as inject, zt as shallowRef } from "./vue.runtime.esm-bundler-DDuXT-9r.js";
4
- import { D as useEventListener, E as useElementSize, F as useSessionStorage, T as useElementHover, V as computedWithControl, _t as I18nT, at as watchDebounced, c as require_isObject, g as onClickOutside, gt as useI18n, it as useThrottleFn, pt as i18n, v as onKeyStroke } from "./_MapCache-CaP4mhI9.js";
5
- import { $ as N8nActionToggle_default, $t as useDeprecated, C as N8nPopover_default, Fn as N8nIcon_default, G as N8nOption_default, Mn as N8nText_default, N as N8nInputNumber_default, Nn as N8nButton_default, Nt as ElColorPicker, S as N8nPopoverReka_default, T as N8nNotice_default, W as N8nSelect_default, Y as N8nInputLabel_default, _t as N8nInput_default, an as UPDATE_MODEL_EVENT, b as N8nRadioButtons_default, bt as N8nIconButton_default, en as mutable, et as N8nLoading_default, ft as N8nTooltip_default, it as N8nBadge_default, jn as N8nCallout_default, lt as N8nLink_default, nn as flattedChildren, q as N8nCircleLoader_default, rt as useDeviceSupport, v as N8nResizeWrapper_default, w as N8nSelectableList_default, wt as ElSwitch, z as ResizeObserver_default } from "./src-DEMmv7aL.js";
4
+ import { D as useEventListener, E as useElementSize, F as useSessionStorage, T as useElementHover, V as computedWithControl, _t as I18nT, at as watchDebounced, c as require_isObject, g as onClickOutside, gt as useI18n, it as useThrottleFn, pt as i18n, v as onKeyStroke } from "./_MapCache-BGBKpT5S.js";
5
+ import { $ as N8nActionToggle_default, C as N8nPopoverReka_default, Ct as N8nIconButton_default, Dt as ElSwitch, E as N8nNotice_default, Fn as N8nText_default, G as N8nOption_default, In as N8nButton_default, It as ElColorPicker, N as N8nInputNumber_default, Pn as N8nCallout_default, Rn as N8nIcon_default, T as N8nSelectableList_default, W as N8nSelect_default, Y as N8nInputLabel_default, an as flattedChildren, bt as N8nInput_default, cn as UPDATE_MODEL_EVENT, et as N8nLoading_default, ft as N8nLink_default, ht as N8nTooltip_default, it as N8nBadge_default, nn as useDeprecated, q as N8nCircleLoader_default, rn as mutable, rt as useDeviceSupport, w as N8nPopover_default, x as N8nRadioButtons_default, y as N8nResizeWrapper_default, z as ResizeObserver_default } from "./src-Cl0xZtCE.js";
6
6
  import { t as __vitePreload } from "./preload-helper-CR0ecmWK.js";
7
7
  import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
8
- import { At as useWindowFocus, Dt as useDocumentVisibility$1, F as definePropType, H as throwError, P as buildProps, W as capitalize, X as isUndefined, Y as isNumber, a as require__toKey, b as useRouter, i as require__baseGet, jt as computedEager, k as useNamespace, kt as useResizeObserver, o as require__castPath, r as require_get, t as truncate, x as createEventBus } from "./truncate-Zm7rqMgr.js";
9
- import { b as close_default$1, h as arrow_right_default, i as withInstall, k as plus_default, m as arrow_left_default, n as _export_sfc, r as EVENT_CODE, s as withNoopInstall, t as ElIcon } from "./icon-bktrs2EQ.js";
10
- import { t as ElDatePicker } from "./date-picker-CSlIkiDj.js";
11
- import { t as useMessage } from "./useMessage-B0Giqa4b.js";
12
- import { t as ElDialog } from "./dialog-TBTmQpdI.js";
13
- import { $t as escapeMappingString, An as useProjectsStore, Bt as require__createCompounder, Ci as isSelectableEl, Fi as codeNodeEditorEventBus, Gt as generateCodeForPrompt, Ht as useCredentialsStore, Js as useRootStore, Li as useUIStore, Mi as htmlEditorEventBus, Oi as omitKey, On as require__baseSet, Qr as getNodeAuthFields, Si as isPresent, Sn as injectWorkflowState, Ur as executionDataToJson, Wr as fieldCannotBeDeleted, Xr as getAuthTypeForNodeCredential, Yr as getAppNameFromNodeName, Zr as getMainAuthField, Zt as useDataSchema, _c as storeToRefs, a as useNDVStore, ai as isAuthRelatedParameter, an as getResolvableState, bi as isEmpty$1, bn as useEnvironmentsStore, ci as isResourceMapperFieldListStale, cn as removeExpressionPrefix, di as updateNodeAuthType, ei as getNodeCredentialForSelectedAuthType, fc as assert, fn as resolveParameter, fr as isResourceMapperValue, i as usePostHog, ii as hasOnlyListMode, in as getExpressionErrorMessage, li as isValueExpression, ln as shouldConvertToExpression, mn as useWorkflowHelpers, nn as propertyNameFromExpression, nt as waitingNodeTooltip, o as useWorkflowsStore, oi as isMatchingField, pn as resolveRequiredParameters, qr as getAllNodeCredentialForAuthType, ri as hasExpressionMapping, rn as completeExpressionSyntax, rt as useNodeTypesStore, si as isRequiredCredential, t as useTelemetry, tn as getMappedResult, ui as parseResourceMapperFieldName, un as stringifyExpressionResult, ur as isFullExecutionResponse, vi as hasFocusOnInput, vn as isCredentialOnlyNodeType, xi as isFocusableEl, xn as useNodeHelpers, yc as v4_default, yi as isBlurrableEl, yn as environments_store_default, zo as useSettingsStore, zt as require__baseSlice } from "./useTelemetry-DMMCGp2b.js";
14
- import { c as sanitizeHtml, n as useStyles, o as isEventTargetContainedBy, t as useToast } from "./useToast-C1ZpPbXg.js";
15
- import { $o as getNodeParametersIssues, As as parseScript, Bi as SWITCH_NODE_TYPE, Cn as IMPORT_CURL_MODAL_KEY, D as AI_TRANSFORM_NODE_TYPE, Do as createResultError, En as INTERVAL_NODE_TYPE, Eo as Expression, Es as randomInt, F as ASK_AI_LOADING_DURATION_MS, Fo as isExpression, I as ASK_AI_MAX_PROMPT_LENGTH, Is as ADD_FORM_NOTICE, L as ASK_AI_MIN_PROMPT_LENGTH, Li as START_NODE_TYPE, Lr as NODES_USING_CODE_NODE_EDITOR, Ms as DateTime, Ns as NodeConnectionTypes, Oo as createResultOk, Ot as DATA_TYPE_ICON_MAP, P as APP_MODALS_ELEMENT_ID, Pr as NDV_UI_OVERHAUL_EXPERIMENT, Qo as getNodeParameters, Ri as STICKY_NODE_TYPE, St as CanvasKey, U as BINARY_DATA_ACCESS_TOOLTIP, Us as CREDENTIAL_EMPTY_VALUE, Xo as getNodeInputs, Xs as HTTP_REQUEST_NODE_TYPE, Zo as getNodeOutputs, _s as FilterError, as as isDefaultNodeName, at as CODEMIRROR_TOOLTIP_CONTAINER_ELEMENT_ID, bt as CUSTOM_API_CALL_KEY, dn as FORM_TRIGGER_NODE_TYPE, ft as CORE_NODES_CATEGORY, gs as isResourceLocatorValue, gt as CRON_NODE_TYPE, hs as isINodePropertyOptionsList, ht as CREDENTIAL_ONLY_NODE_PREFIX, ic as require_isEqual, is as getUpdatedToolDescription, jn as KEEP_AUTH_IN_NDV_FOR_NODES, ko as EXTENSION_OBJECTS, kr as MODAL_CONFIRM, ks as Syntax, lo as resolveRelativePath, ms as isINodePropertyCollectionList, nn as EXPRESSION_EDITOR_PARSER_TIMEOUT, ns as getParameterValueByPath, oa as VIEWS, oo as getResourcePermissions, or as MANUAL_TRIGGER_NODE_TYPE, ot as CODE_NODE_TYPE, ps as isINodePropertiesList, qo as displayParameter, sa as WAIT_NODE_TYPE, sn as ExpressionLocalResolveContextSymbol, ts as getParameterIssues, un as FORM_NODE_TYPE, us as makeNodeName, vn as HTML_NODE_TYPE, vs as executeFilterCondition, ws as jsonParse, xs as deepCopy, ys as validateFieldType } from "./constants-yBDcqULv.js";
16
- import { n as ndvEventBus } from "./assistant.store-CRW9xRe7.js";
17
- import { n as require_debounce, t as useDebounce } from "./useDebounce-BDOVCaxX.js";
18
- import { t as useExternalHooks } from "./useExternalHooks-zp0_PYje.js";
19
- import { a as updateFromAIOverrideValues, i as makeOverrideValue, n as buildValueFromOverride, r as isFromAIOverrideValue, t as useFocusPanelStore } from "./focusPanel.store-CSnLUdy8.js";
20
- import { a as proxy, o as wrap, t as useRunWorkflow } from "./useRunWorkflow-mrpYc9Bd.js";
21
- import { _ as useCalloutHelpers } from "./nodeCreator.store-dfEe2Vlw.js";
22
- import { i as useExperimentalNdvStore, t as useCanvasOperations } from "./useCanvasOperations-CUB22LeC.js";
23
- import { t as NodeIcon_default } from "./NodeIcon-BBzZc2Cr.js";
24
- import { $ as pickedCompletion$1, A as autocompletableNodeNames, At as highlightActiveLine, B as tsxLanguage, Bt as EditorSelection, C as n8nCompletionSources, Ct as parseMixed, D as FIELDS_SECTION, Dt as WidgetType, E as luxonInstanceDocs, Et as ViewPlugin, F as javascript, Ft as lineNumbers, G as CompletionContext, Gt as RangeSetBuilder, H as ContextTracker, Ht as Facet, I as javascriptLanguage, It as showTooltip, J as closeBracketsKeymap, Jt as StateField, K as autocompletion, Kt as RangeValue, L as jsxLanguage, Lt as tooltips, M as isCompletionSection, Mt as highlightSpecialChars, N as longestCommonPrefix, Nt as hoverTooltip, O as TARGET_NODE_PARAMETER_FACET, Ot as drawSelection, P as prefixMatch$1, Pt as keymap, Q as insertCompletionText, R as localCompletionSource, Rt as Annotation, S as mappingDropCursor, St as tags, T as luxonStaticDocs, Tt as EditorView, U as ExternalTokenizer, Ut as MapMode, V as typescriptLanguage, Vt as EditorState, W as LRParser, Wt as Prec, X as completeFromList$1, Xt as Transaction, Y as closeCompletion, Yt as Text, Z as completionStatus, Zt as combineConfig, _ as highlightSelectionMatches, _t as indentOnInput, at as LRLanguage, b as dropInCodeEditor, bt as syntaxTree, c as json, ct as continuedIndent, d as n8nLang, dt as foldGutter, et as snippetCompletion, f as expressionParser, ft as foldInside, g as linter, gt as indentNodeProp, h as lintGutter, ht as getIndentUnit, it as HighlightStyle, j as isAllowedInDotNotation, jt as highlightActiveLineGutter, k as createInfoBoxRenderer, kt as dropCursor, l as codeEditorTheme, lt as delimitedIndent, m as languageFacet, mt as foldState, n as RunData_default, nt as history, o as JsonEditor_default, ot as LanguageSupport, p as editorKeymap, pt as foldNodeProp, q as closeBrackets, qt as StateEffect, rt as historyField, s as close_default, st as bracketMatching, t as require_isEmpty, tt as startCompletion, u as n8nAutocompletion, ut as ensureSyntaxTree, v as expressionCloseBrackets, vt as indentUnit, w as datatypeCompletions, wt as Decoration, x as dropInExpressionEditor, xt as styleTags, y as expressionCloseBracketsConfig, yt as syntaxHighlighting, z as snippets, zt as Compartment } from "./isEmpty-DDq4d3IR.js";
25
- import { i as Ln, o as gu, r as estree_exports, t as NDVEmptyState_default } from "./NDVEmptyState-zQlRuQ5F.js";
26
- import { n as captureException, r as captureMessage } from "./exports-9spWG404.js";
27
- import { t as useExternalSecretsStore } from "./externalSecrets.ee.store-BMH2q7Z9.js";
28
- import { t as require_uniqBy } from "./uniqBy-aD1YpiVl.js";
29
- import { a as getTextareaCursorPosition, i as getParentNodes, n as NodeExecuteButton_default, o as getUpdatedTextareaValue, r as generateCodeForAiTransform, t as VirtualSchema_default } from "./VirtualSchema-CrmlfHey.js";
30
- import { i as getParameterDisplayableOptions } from "./nodeTransforms-BvfzWeb1.js";
31
- import { t as require_vue } from "./vue-GniKVX87.js";
8
+ import { At as useWindowFocus, Dt as useDocumentVisibility$1, F as definePropType, H as throwError, P as buildProps, W as capitalize, X as isUndefined, Y as isNumber, a as require__toKey, b as useRouter, i as require__baseGet, jt as computedEager, k as useNamespace, kt as useResizeObserver, o as require__castPath, r as require_get, t as truncate, x as createEventBus } from "./truncate-Dc79aML5.js";
9
+ import { b as close_default$1, h as arrow_right_default, i as withInstall, k as plus_default, m as arrow_left_default, n as _export_sfc, r as EVENT_CODE, s as withNoopInstall, t as ElIcon } from "./icon-C8yfF1LY.js";
10
+ import { t as ElDatePicker } from "./date-picker-YLC0sjSf.js";
11
+ import { t as useMessage } from "./useMessage-BRYWi-M_.js";
12
+ import { t as ElDialog } from "./dialog-B1U4ND70.js";
13
+ import { $t as escapeMappingString, An as useProjectsStore, Bt as require__createCompounder, Ci as isSelectableEl, Fi as codeNodeEditorEventBus, Gt as generateCodeForPrompt, Ht as useCredentialsStore, Js as useRootStore, Li as useUIStore, Mi as htmlEditorEventBus, Oi as omitKey, On as require__baseSet, Qr as getNodeAuthFields, Si as isPresent, Sn as injectWorkflowState, Ur as executionDataToJson, Wr as fieldCannotBeDeleted, Xr as getAuthTypeForNodeCredential, Yr as getAppNameFromNodeName, Zr as getMainAuthField, Zt as useDataSchema, _c as storeToRefs, a as useNDVStore, ai as isAuthRelatedParameter, an as getResolvableState, bi as isEmpty$1, bn as useEnvironmentsStore, ci as isResourceMapperFieldListStale, cn as removeExpressionPrefix, di as updateNodeAuthType, ei as getNodeCredentialForSelectedAuthType, fc as assert, fn as resolveParameter, fr as isResourceMapperValue, i as usePostHog, ii as hasOnlyListMode, in as getExpressionErrorMessage, li as isValueExpression, ln as shouldConvertToExpression, mn as useWorkflowHelpers, nn as propertyNameFromExpression, nt as waitingNodeTooltip, o as useWorkflowsStore, oi as isMatchingField, pn as resolveRequiredParameters, qr as getAllNodeCredentialForAuthType, ri as hasExpressionMapping, rn as completeExpressionSyntax, rt as useNodeTypesStore, si as isRequiredCredential, t as useTelemetry, tn as getMappedResult, ui as parseResourceMapperFieldName, un as stringifyExpressionResult, ur as isFullExecutionResponse, vi as hasFocusOnInput, vn as isCredentialOnlyNodeType, xi as isFocusableEl, xn as useNodeHelpers, yc as v4_default, yi as isBlurrableEl, yn as environments_store_default, zo as useSettingsStore, zt as require__baseSlice } from "./useTelemetry-C-PPHLYt.js";
14
+ import { c as sanitizeHtml, n as useStyles, o as isEventTargetContainedBy, t as useToast } from "./useToast-DT24R-_J.js";
15
+ import { Ai as isResourceLocatorValue, Bi as randomInt, Br as Expression, Cn as SWITCH_NODE_TYPE, Cr as resolveRelativePath, D as APP_MODALS_ELEMENT_ID, Di as isINodePropertiesList, Dn as WAIT_NODE_TYPE, Do as MODAL_CONFIRM, Fi as deepCopy, Hr as createResultOk, I as CUSTOM_API_CALL_KEY, J as AI_TRANSFORM_NODE_TYPE, Ka as CORE_NODES_CATEGORY, Ki as DateTime, L as DATA_TYPE_ICON_MAP, Lt as MANUAL_TRIGGER_NODE_TYPE, Mi as executeFilterCondition, Ni as validateFieldType, Nt as KEEP_AUTH_IN_NDV_FOR_NODES, O as CODEMIRROR_TOOLTIP_CONTAINER_ELEMENT_ID, Oi as isINodePropertyCollectionList, Ri as jsonParse, Rs as EXPRESSION_EDITOR_PARSER_TIMEOUT, St as FORM_TRIGGER_NODE_TYPE, Tt as HTML_NODE_TYPE, Ui as Syntax, Ur as EXTENSION_OBJECTS, V as BINARY_DATA_ACCESS_TOOLTIP, Vr as createResultError, Wi as parseScript, Wt as NODES_USING_CODE_NODE_EDITOR, Xi as ADD_FORM_NOTICE, Yr as isExpression, at as CRON_NODE_TYPE, bn as START_NODE_TYPE, co as VIEWS, di as getNodeOutputs, ec as ASK_AI_LOADING_DURATION_MS, et as CODE_NODE_TYPE, fi as getNodeParameters, gi as getParameterValueByPath, gs as CanvasKey, hi as getParameterIssues, hr as getResourcePermissions, it as CREDENTIAL_ONLY_NODE_PREFIX, ji as FilterError, ki as isINodePropertyOptionsList, ks as NDV_UI_OVERHAUL_EXPERIMENT, kt as INTERVAL_NODE_TYPE, nc as ASK_AI_MIN_PROMPT_LENGTH, pi as getNodeParametersIssues, qi as NodeConnectionTypes, ra as CREDENTIAL_EMPTY_VALUE, si as displayParameter, tc as ASK_AI_MAX_PROMPT_LENGTH, ua as HTTP_REQUEST_NODE_TYPE, ui as getNodeInputs, va as require_isEqual, vi as getUpdatedToolDescription, wi as makeNodeName, xn as STICKY_NODE_TYPE, xo as IMPORT_CURL_MODAL_KEY, xt as FORM_NODE_TYPE, yi as isDefaultNodeName, ys as ExpressionLocalResolveContextSymbol } from "./constants-CO7BXe8z.js";
16
+ import { n as ndvEventBus } from "./assistant.store-Bifc8qm3.js";
17
+ import { n as require_debounce, t as useDebounce } from "./useDebounce-BRhQZVIC.js";
18
+ import { t as useExternalHooks } from "./useExternalHooks-DA3PzQce.js";
19
+ import { a as updateFromAIOverrideValues, i as makeOverrideValue, n as buildValueFromOverride, r as isFromAIOverrideValue, t as useFocusPanelStore } from "./focusPanel.store-Cakdvw91.js";
20
+ import { a as proxy, o as wrap, t as useRunWorkflow } from "./useRunWorkflow-B0NRhnNX.js";
21
+ import { _ as useCalloutHelpers } from "./nodeCreator.store-DKWP5T3f.js";
22
+ import { i as useExperimentalNdvStore, t as useCanvasOperations } from "./useCanvasOperations-CArZAi8X.js";
23
+ import { t as NodeIcon_default } from "./NodeIcon-DbpKADJJ.js";
24
+ import { $ as completionStatus, A as TARGET_NODE_PARAMETER_FACET, At as ViewPlugin, B as localCompletionSource, Bt as tooltips, C as dropInExpressionEditor, Ct as styleTags, D as luxonStaticDocs, Dt as parseMixed, E as datatypeCompletions, Et as NodeWeakMap, F as longestCommonPrefix, Ft as highlightSpecialChars, G as ExternalTokenizer, Gt as Facet, H as tsxLanguage, Ht as Compartment, I as prefixMatch, It as hoverTooltip, J as autocompletion, Jt as StateEffect, K as LRParser, Kt as Prec, L as javascript, Lt as keymap, M as autocompletableNodeNames, Mt as dropCursor, N as isAllowedInDotNotation, Nt as highlightActiveLine, O as luxonInstanceDocs, Ot as Decoration, P as isCompletionSection, Pt as highlightActiveLineGutter, Q as completeFromList, R as javascriptLanguage, Rt as lineNumbers, S as dropInCodeEditor, St as syntaxTree, T as n8nCompletionSources, Tt as IterMode, U as typescriptLanguage, Ut as EditorSelection, V as snippets, Vt as Annotation, W as ContextTracker, Wt as EditorState, X as closeBracketsKeymap, Xt as Text, Y as closeBrackets, Yt as StateField, Z as closeCompletion, Zt as combineConfig, _ as lintGutter, _t as foldState, at as history, b as expressionCloseBrackets, bt as indentOnInput, c as JsonEditor_default, ct as LRLanguage, d as codeEditorTheme, dt as continuedIndent, et as ifNotIn, f as n8nAutocompletion, ft as delimitedIndent, g as languageFacet, gt as foldNodeProp, h as editorKeymap, ht as foldInside, it as startCompletion, j as createInfoBoxRenderer, jt as drawSelection, k as FIELDS_SECTION, kt as EditorView, l as close_default, lt as LanguageSupport, m as expressionParser, mt as foldGutter, n as RunData_default, nt as pickedCompletion, o as SAMPLE_SUBWORKFLOW_TRIGGER_ID, ot as historyField, p as n8nLang, pt as ensureSyntaxTree, q as CompletionContext, qt as RangeSetBuilder, rt as snippetCompletion, s as SAMPLE_SUBWORKFLOW_WORKFLOW, st as HighlightStyle, t as require_isEmpty, tt as insertCompletionText, u as json, ut as bracketMatching, v as linter, vt as getIndentUnit, w as mappingDropCursor, wt as tags, x as expressionCloseBracketsConfig, xt as syntaxHighlighting, y as highlightSelectionMatches, yt as indentNodeProp, z as jsxLanguage, zt as showTooltip } from "./isEmpty-Dh4aNe51.js";
25
+ import { i as Ln, o as gu, r as estree_exports, t as NDVEmptyState_default } from "./NDVEmptyState-CFiiknri.js";
26
+ import { n as captureException, r as captureMessage } from "./exports-RJH1xso1.js";
27
+ import { t as useExternalSecretsStore } from "./externalSecrets.ee.store-DyO5hFK8.js";
28
+ import { t as require_uniqBy } from "./uniqBy-BPM3FjgB.js";
29
+ import { a as getTextareaCursorPosition, i as getParentNodes, n as NodeExecuteButton_default, o as getUpdatedTextareaValue, r as generateCodeForAiTransform, t as VirtualSchema_default } from "./VirtualSchema-7sIAPeE0.js";
30
+ import { i as getParameterDisplayableOptions } from "./nodeTransforms-smKGxdJz.js";
31
+ import { t as require_vue } from "./vue-B27A1Apg.js";
32
32
  var getOrderedChildren = (vm, childComponentName, children) => {
33
33
  return flattedChildren(vm.subTree).filter((n) => {
34
34
  var _a$1;
@@ -17048,12 +17048,12 @@ const typescriptCompletionSource = async (context) => {
17048
17048
  getMatch(completion) {
17049
17049
  return [0, longestCommonPrefix(completion.label, word.text).length];
17050
17050
  },
17051
- options: options$1.filter((option$1) => word.text === "" || START_CHARACTERS.includes(word.text) || prefixMatch$1(option$1.label.replace(START_CHARACTERS_REGEX, ""), word.text.replace(START_CHARACTERS_REGEX, ""))).map((completion) => {
17051
+ options: options$1.filter((option$1) => word.text === "" || START_CHARACTERS.includes(word.text) || prefixMatch(option$1.label.replace(START_CHARACTERS_REGEX, ""), word.text.replace(START_CHARACTERS_REGEX, ""))).map((completion) => {
17052
17052
  if (completion.label.endsWith("()")) completion.apply = (view, _$2, from, to) => {
17053
17053
  const cursorPosition = from + completion.label.length - 1;
17054
17054
  view.dispatch({
17055
17055
  ...insertCompletionText(view.state, completion.label, from, to),
17056
- annotations: pickedCompletion$1.of(completion),
17056
+ annotations: pickedCompletion.of(completion),
17057
17057
  selection: {
17058
17058
  anchor: cursorPosition,
17059
17059
  head: cursorPosition
@@ -17505,1346 +17505,6 @@ var parser$1 = LRParser.deserialize({
17505
17505
  }],
17506
17506
  tokenPrec: 7205
17507
17507
  });
17508
- var DefaultBufferLength = 1024;
17509
- var nextPropID = 0;
17510
- var NodeProp = class {
17511
- constructor(config = {}) {
17512
- this.id = nextPropID++;
17513
- this.perNode = !!config.perNode;
17514
- this.deserialize = config.deserialize || (() => {
17515
- throw new Error("This node type doesn't define a deserialize function");
17516
- });
17517
- }
17518
- add(match) {
17519
- if (this.perNode) throw new RangeError("Can't add per-node props to node types");
17520
- if (typeof match != "function") match = NodeType.match(match);
17521
- return (type) => {
17522
- let result = match(type);
17523
- return result === void 0 ? null : [this, result];
17524
- };
17525
- }
17526
- };
17527
- NodeProp.closedBy = new NodeProp({ deserialize: (str) => str.split(" ") });
17528
- NodeProp.openedBy = new NodeProp({ deserialize: (str) => str.split(" ") });
17529
- NodeProp.group = new NodeProp({ deserialize: (str) => str.split(" ") });
17530
- NodeProp.isolate = new NodeProp({ deserialize: (value$1) => {
17531
- if (value$1 && value$1 != "rtl" && value$1 != "ltr" && value$1 != "auto") throw new RangeError("Invalid value for isolate: " + value$1);
17532
- return value$1 || "auto";
17533
- } });
17534
- NodeProp.contextHash = new NodeProp({ perNode: true });
17535
- NodeProp.lookAhead = new NodeProp({ perNode: true });
17536
- NodeProp.mounted = new NodeProp({ perNode: true });
17537
- var MountedTree = class {
17538
- constructor(tree, overlay, parser$4) {
17539
- this.tree = tree;
17540
- this.overlay = overlay;
17541
- this.parser = parser$4;
17542
- }
17543
- static get(tree) {
17544
- return tree && tree.props && tree.props[NodeProp.mounted.id];
17545
- }
17546
- };
17547
- var noProps = Object.create(null);
17548
- var NodeType = class NodeType {
17549
- constructor(name, props, id, flags = 0) {
17550
- this.name = name;
17551
- this.props = props;
17552
- this.id = id;
17553
- this.flags = flags;
17554
- }
17555
- static define(spec) {
17556
- let props = spec.props && spec.props.length ? Object.create(null) : noProps;
17557
- let flags = (spec.top ? 1 : 0) | (spec.skipped ? 2 : 0) | (spec.error ? 4 : 0) | (spec.name == null ? 8 : 0);
17558
- let type = new NodeType(spec.name || "", props, spec.id, flags);
17559
- if (spec.props) for (let src of spec.props) {
17560
- if (!Array.isArray(src)) src = src(type);
17561
- if (src) {
17562
- if (src[0].perNode) throw new RangeError("Can't store a per-node prop on a node type");
17563
- props[src[0].id] = src[1];
17564
- }
17565
- }
17566
- return type;
17567
- }
17568
- prop(prop) {
17569
- return this.props[prop.id];
17570
- }
17571
- get isTop() {
17572
- return (this.flags & 1) > 0;
17573
- }
17574
- get isSkipped() {
17575
- return (this.flags & 2) > 0;
17576
- }
17577
- get isError() {
17578
- return (this.flags & 4) > 0;
17579
- }
17580
- get isAnonymous() {
17581
- return (this.flags & 8) > 0;
17582
- }
17583
- is(name) {
17584
- if (typeof name == "string") {
17585
- if (this.name == name) return true;
17586
- let group$1 = this.prop(NodeProp.group);
17587
- return group$1 ? group$1.indexOf(name) > -1 : false;
17588
- }
17589
- return this.id == name;
17590
- }
17591
- static match(map) {
17592
- let direct = Object.create(null);
17593
- for (let prop in map) for (let name of prop.split(" ")) direct[name] = map[prop];
17594
- return (node$1) => {
17595
- for (let groups$1 = node$1.prop(NodeProp.group), i = -1; i < (groups$1 ? groups$1.length : 0); i++) {
17596
- let found = direct[i < 0 ? node$1.name : groups$1[i]];
17597
- if (found) return found;
17598
- }
17599
- };
17600
- }
17601
- };
17602
- NodeType.none = new NodeType("", Object.create(null), 0, 8);
17603
- var CachedNode = /* @__PURE__ */ new WeakMap(), CachedInnerNode = /* @__PURE__ */ new WeakMap();
17604
- var IterMode;
17605
- (function(IterMode$1) {
17606
- IterMode$1[IterMode$1["ExcludeBuffers"] = 1] = "ExcludeBuffers";
17607
- IterMode$1[IterMode$1["IncludeAnonymous"] = 2] = "IncludeAnonymous";
17608
- IterMode$1[IterMode$1["IgnoreMounts"] = 4] = "IgnoreMounts";
17609
- IterMode$1[IterMode$1["IgnoreOverlays"] = 8] = "IgnoreOverlays";
17610
- })(IterMode || (IterMode = {}));
17611
- var Tree = class Tree {
17612
- constructor(type, children, positions, length, props) {
17613
- this.type = type;
17614
- this.children = children;
17615
- this.positions = positions;
17616
- this.length = length;
17617
- this.props = null;
17618
- if (props && props.length) {
17619
- this.props = Object.create(null);
17620
- for (let [prop, value$1] of props) this.props[typeof prop == "number" ? prop : prop.id] = value$1;
17621
- }
17622
- }
17623
- toString() {
17624
- let mounted = MountedTree.get(this);
17625
- if (mounted && !mounted.overlay) return mounted.tree.toString();
17626
- let children = "";
17627
- for (let ch of this.children) {
17628
- let str = ch.toString();
17629
- if (str) {
17630
- if (children) children += ",";
17631
- children += str;
17632
- }
17633
- }
17634
- return !this.type.name ? children : (/\W/.test(this.type.name) && !this.type.isError ? JSON.stringify(this.type.name) : this.type.name) + (children.length ? "(" + children + ")" : "");
17635
- }
17636
- cursor(mode = 0) {
17637
- return new TreeCursor(this.topNode, mode);
17638
- }
17639
- cursorAt(pos, side = 0, mode = 0) {
17640
- let cursor = new TreeCursor(CachedNode.get(this) || this.topNode);
17641
- cursor.moveTo(pos, side);
17642
- CachedNode.set(this, cursor._tree);
17643
- return cursor;
17644
- }
17645
- get topNode() {
17646
- return new TreeNode(this, 0, 0, null);
17647
- }
17648
- resolve(pos, side = 0) {
17649
- let node$1 = resolveNode(CachedNode.get(this) || this.topNode, pos, side, false);
17650
- CachedNode.set(this, node$1);
17651
- return node$1;
17652
- }
17653
- resolveInner(pos, side = 0) {
17654
- let node$1 = resolveNode(CachedInnerNode.get(this) || this.topNode, pos, side, true);
17655
- CachedInnerNode.set(this, node$1);
17656
- return node$1;
17657
- }
17658
- resolveStack(pos, side = 0) {
17659
- return stackIterator(this, pos, side);
17660
- }
17661
- iterate(spec) {
17662
- let { enter, leave, from = 0, to = this.length } = spec;
17663
- let mode = spec.mode || 0, anon = (mode & IterMode.IncludeAnonymous) > 0;
17664
- for (let c = this.cursor(mode | IterMode.IncludeAnonymous);;) {
17665
- let entered = false;
17666
- if (c.from <= to && c.to >= from && (!anon && c.type.isAnonymous || enter(c) !== false)) {
17667
- if (c.firstChild()) continue;
17668
- entered = true;
17669
- }
17670
- for (;;) {
17671
- if (entered && leave && (anon || !c.type.isAnonymous)) leave(c);
17672
- if (c.nextSibling()) break;
17673
- if (!c.parent()) return;
17674
- entered = true;
17675
- }
17676
- }
17677
- }
17678
- prop(prop) {
17679
- return !prop.perNode ? this.type.prop(prop) : this.props ? this.props[prop.id] : void 0;
17680
- }
17681
- get propValues() {
17682
- let result = [];
17683
- if (this.props) for (let id in this.props) result.push([+id, this.props[id]]);
17684
- return result;
17685
- }
17686
- balance(config = {}) {
17687
- return this.children.length <= 8 ? this : balanceRange(NodeType.none, this.children, this.positions, 0, this.children.length, 0, this.length, (children, positions, length) => new Tree(this.type, children, positions, length, this.propValues), config.makeTree || ((children, positions, length) => new Tree(NodeType.none, children, positions, length)));
17688
- }
17689
- static build(data) {
17690
- return buildTree(data);
17691
- }
17692
- };
17693
- Tree.empty = new Tree(NodeType.none, [], [], 0);
17694
- var FlatBufferCursor = class FlatBufferCursor {
17695
- constructor(buffer, index$1) {
17696
- this.buffer = buffer;
17697
- this.index = index$1;
17698
- }
17699
- get id() {
17700
- return this.buffer[this.index - 4];
17701
- }
17702
- get start() {
17703
- return this.buffer[this.index - 3];
17704
- }
17705
- get end() {
17706
- return this.buffer[this.index - 2];
17707
- }
17708
- get size() {
17709
- return this.buffer[this.index - 1];
17710
- }
17711
- get pos() {
17712
- return this.index;
17713
- }
17714
- next() {
17715
- this.index -= 4;
17716
- }
17717
- fork() {
17718
- return new FlatBufferCursor(this.buffer, this.index);
17719
- }
17720
- };
17721
- var TreeBuffer = class TreeBuffer {
17722
- constructor(buffer, length, set$3) {
17723
- this.buffer = buffer;
17724
- this.length = length;
17725
- this.set = set$3;
17726
- }
17727
- get type() {
17728
- return NodeType.none;
17729
- }
17730
- toString() {
17731
- let result = [];
17732
- for (let index$1 = 0; index$1 < this.buffer.length;) {
17733
- result.push(this.childString(index$1));
17734
- index$1 = this.buffer[index$1 + 3];
17735
- }
17736
- return result.join(",");
17737
- }
17738
- childString(index$1) {
17739
- let id = this.buffer[index$1], endIndex = this.buffer[index$1 + 3];
17740
- let type = this.set.types[id], result = type.name;
17741
- if (/\W/.test(result) && !type.isError) result = JSON.stringify(result);
17742
- index$1 += 4;
17743
- if (endIndex == index$1) return result;
17744
- let children = [];
17745
- while (index$1 < endIndex) {
17746
- children.push(this.childString(index$1));
17747
- index$1 = this.buffer[index$1 + 3];
17748
- }
17749
- return result + "(" + children.join(",") + ")";
17750
- }
17751
- findChild(startIndex, endIndex, dir, pos, side) {
17752
- let { buffer } = this, pick = -1;
17753
- for (let i = startIndex; i != endIndex; i = buffer[i + 3]) if (checkSide(side, pos, buffer[i + 1], buffer[i + 2])) {
17754
- pick = i;
17755
- if (dir > 0) break;
17756
- }
17757
- return pick;
17758
- }
17759
- slice(startI, endI, from) {
17760
- let b$1 = this.buffer;
17761
- let copy = new Uint16Array(endI - startI), len = 0;
17762
- for (let i = startI, j$1 = 0; i < endI;) {
17763
- copy[j$1++] = b$1[i++];
17764
- copy[j$1++] = b$1[i++] - from;
17765
- let to = copy[j$1++] = b$1[i++] - from;
17766
- copy[j$1++] = b$1[i++] - startI;
17767
- len = Math.max(len, to);
17768
- }
17769
- return new TreeBuffer(copy, len, this.set);
17770
- }
17771
- };
17772
- function checkSide(side, pos, from, to) {
17773
- switch (side) {
17774
- case -2: return from < pos;
17775
- case -1: return to >= pos && from < pos;
17776
- case 0: return from < pos && to > pos;
17777
- case 1: return from <= pos && to > pos;
17778
- case 2: return to > pos;
17779
- case 4: return true;
17780
- }
17781
- }
17782
- function resolveNode(node$1, pos, side, overlays) {
17783
- var _a$1;
17784
- while (node$1.from == node$1.to || (side < 1 ? node$1.from >= pos : node$1.from > pos) || (side > -1 ? node$1.to <= pos : node$1.to < pos)) {
17785
- let parent$2 = !overlays && node$1 instanceof TreeNode && node$1.index < 0 ? null : node$1.parent;
17786
- if (!parent$2) return node$1;
17787
- node$1 = parent$2;
17788
- }
17789
- let mode = overlays ? 0 : IterMode.IgnoreOverlays;
17790
- if (overlays) {
17791
- for (let scan = node$1, parent$2 = scan.parent; parent$2; scan = parent$2, parent$2 = scan.parent) if (scan instanceof TreeNode && scan.index < 0 && ((_a$1 = parent$2.enter(pos, side, mode)) === null || _a$1 === void 0 ? void 0 : _a$1.from) != scan.from) node$1 = parent$2;
17792
- }
17793
- for (;;) {
17794
- let inner = node$1.enter(pos, side, mode);
17795
- if (!inner) return node$1;
17796
- node$1 = inner;
17797
- }
17798
- }
17799
- var BaseNode = class {
17800
- cursor(mode = 0) {
17801
- return new TreeCursor(this, mode);
17802
- }
17803
- getChild(type, before = null, after = null) {
17804
- let r = getChildren(this, type, before, after);
17805
- return r.length ? r[0] : null;
17806
- }
17807
- getChildren(type, before = null, after = null) {
17808
- return getChildren(this, type, before, after);
17809
- }
17810
- resolve(pos, side = 0) {
17811
- return resolveNode(this, pos, side, false);
17812
- }
17813
- resolveInner(pos, side = 0) {
17814
- return resolveNode(this, pos, side, true);
17815
- }
17816
- matchContext(context) {
17817
- return matchNodeContext(this, context);
17818
- }
17819
- enterUnfinishedNodesBefore(pos) {
17820
- let scan = this.childBefore(pos), node$1 = this;
17821
- while (scan) {
17822
- let last$2 = scan.lastChild;
17823
- if (!last$2 || last$2.to != scan.to) break;
17824
- if (last$2.type.isError && last$2.from == last$2.to) {
17825
- node$1 = scan;
17826
- scan = last$2.prevSibling;
17827
- } else scan = last$2;
17828
- }
17829
- return node$1;
17830
- }
17831
- get node() {
17832
- return this;
17833
- }
17834
- get next() {
17835
- return this.parent;
17836
- }
17837
- };
17838
- var TreeNode = class TreeNode extends BaseNode {
17839
- constructor(_tree, from, index$1, _parent) {
17840
- super();
17841
- this._tree = _tree;
17842
- this.from = from;
17843
- this.index = index$1;
17844
- this._parent = _parent;
17845
- }
17846
- get type() {
17847
- return this._tree.type;
17848
- }
17849
- get name() {
17850
- return this._tree.type.name;
17851
- }
17852
- get to() {
17853
- return this.from + this._tree.length;
17854
- }
17855
- nextChild(i, dir, pos, side, mode = 0) {
17856
- for (let parent$2 = this;;) {
17857
- for (let { children, positions } = parent$2._tree, e = dir > 0 ? children.length : -1; i != e; i += dir) {
17858
- let next = children[i], start = positions[i] + parent$2.from;
17859
- if (!checkSide(side, pos, start, start + next.length)) continue;
17860
- if (next instanceof TreeBuffer) {
17861
- if (mode & IterMode.ExcludeBuffers) continue;
17862
- let index$1 = next.findChild(0, next.buffer.length, dir, pos - start, side);
17863
- if (index$1 > -1) return new BufferNode(new BufferContext(parent$2, next, i, start), null, index$1);
17864
- } else if (mode & IterMode.IncludeAnonymous || !next.type.isAnonymous || hasChild(next)) {
17865
- let mounted;
17866
- if (!(mode & IterMode.IgnoreMounts) && (mounted = MountedTree.get(next)) && !mounted.overlay) return new TreeNode(mounted.tree, start, i, parent$2);
17867
- let inner = new TreeNode(next, start, i, parent$2);
17868
- return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side);
17869
- }
17870
- }
17871
- if (mode & IterMode.IncludeAnonymous || !parent$2.type.isAnonymous) return null;
17872
- if (parent$2.index >= 0) i = parent$2.index + dir;
17873
- else i = dir < 0 ? -1 : parent$2._parent._tree.children.length;
17874
- parent$2 = parent$2._parent;
17875
- if (!parent$2) return null;
17876
- }
17877
- }
17878
- get firstChild() {
17879
- return this.nextChild(0, 1, 0, 4);
17880
- }
17881
- get lastChild() {
17882
- return this.nextChild(this._tree.children.length - 1, -1, 0, 4);
17883
- }
17884
- childAfter(pos) {
17885
- return this.nextChild(0, 1, pos, 2);
17886
- }
17887
- childBefore(pos) {
17888
- return this.nextChild(this._tree.children.length - 1, -1, pos, -2);
17889
- }
17890
- enter(pos, side, mode = 0) {
17891
- let mounted;
17892
- if (!(mode & IterMode.IgnoreOverlays) && (mounted = MountedTree.get(this._tree)) && mounted.overlay) {
17893
- let rPos = pos - this.from;
17894
- for (let { from, to } of mounted.overlay) if ((side > 0 ? from <= rPos : from < rPos) && (side < 0 ? to >= rPos : to > rPos)) return new TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);
17895
- }
17896
- return this.nextChild(0, 1, pos, side, mode);
17897
- }
17898
- nextSignificantParent() {
17899
- let val = this;
17900
- while (val.type.isAnonymous && val._parent) val = val._parent;
17901
- return val;
17902
- }
17903
- get parent() {
17904
- return this._parent ? this._parent.nextSignificantParent() : null;
17905
- }
17906
- get nextSibling() {
17907
- return this._parent && this.index >= 0 ? this._parent.nextChild(this.index + 1, 1, 0, 4) : null;
17908
- }
17909
- get prevSibling() {
17910
- return this._parent && this.index >= 0 ? this._parent.nextChild(this.index - 1, -1, 0, 4) : null;
17911
- }
17912
- get tree() {
17913
- return this._tree;
17914
- }
17915
- toTree() {
17916
- return this._tree;
17917
- }
17918
- toString() {
17919
- return this._tree.toString();
17920
- }
17921
- };
17922
- function getChildren(node$1, type, before, after) {
17923
- let cur = node$1.cursor(), result = [];
17924
- if (!cur.firstChild()) return result;
17925
- if (before != null) for (let found = false; !found;) {
17926
- found = cur.type.is(before);
17927
- if (!cur.nextSibling()) return result;
17928
- }
17929
- for (;;) {
17930
- if (after != null && cur.type.is(after)) return result;
17931
- if (cur.type.is(type)) result.push(cur.node);
17932
- if (!cur.nextSibling()) return after == null ? result : [];
17933
- }
17934
- }
17935
- function matchNodeContext(node$1, context, i = context.length - 1) {
17936
- for (let p = node$1.parent; i >= 0; p = p.parent) {
17937
- if (!p) return false;
17938
- if (!p.type.isAnonymous) {
17939
- if (context[i] && context[i] != p.name) return false;
17940
- i--;
17941
- }
17942
- }
17943
- return true;
17944
- }
17945
- var BufferContext = class {
17946
- constructor(parent$2, buffer, index$1, start) {
17947
- this.parent = parent$2;
17948
- this.buffer = buffer;
17949
- this.index = index$1;
17950
- this.start = start;
17951
- }
17952
- };
17953
- var BufferNode = class BufferNode extends BaseNode {
17954
- get name() {
17955
- return this.type.name;
17956
- }
17957
- get from() {
17958
- return this.context.start + this.context.buffer.buffer[this.index + 1];
17959
- }
17960
- get to() {
17961
- return this.context.start + this.context.buffer.buffer[this.index + 2];
17962
- }
17963
- constructor(context, _parent, index$1) {
17964
- super();
17965
- this.context = context;
17966
- this._parent = _parent;
17967
- this.index = index$1;
17968
- this.type = context.buffer.set.types[context.buffer.buffer[index$1]];
17969
- }
17970
- child(dir, pos, side) {
17971
- let { buffer } = this.context;
17972
- let index$1 = buffer.findChild(this.index + 4, buffer.buffer[this.index + 3], dir, pos - this.context.start, side);
17973
- return index$1 < 0 ? null : new BufferNode(this.context, this, index$1);
17974
- }
17975
- get firstChild() {
17976
- return this.child(1, 0, 4);
17977
- }
17978
- get lastChild() {
17979
- return this.child(-1, 0, 4);
17980
- }
17981
- childAfter(pos) {
17982
- return this.child(1, pos, 2);
17983
- }
17984
- childBefore(pos) {
17985
- return this.child(-1, pos, -2);
17986
- }
17987
- enter(pos, side, mode = 0) {
17988
- if (mode & IterMode.ExcludeBuffers) return null;
17989
- let { buffer } = this.context;
17990
- let index$1 = buffer.findChild(this.index + 4, buffer.buffer[this.index + 3], side > 0 ? 1 : -1, pos - this.context.start, side);
17991
- return index$1 < 0 ? null : new BufferNode(this.context, this, index$1);
17992
- }
17993
- get parent() {
17994
- return this._parent || this.context.parent.nextSignificantParent();
17995
- }
17996
- externalSibling(dir) {
17997
- return this._parent ? null : this.context.parent.nextChild(this.context.index + dir, dir, 0, 4);
17998
- }
17999
- get nextSibling() {
18000
- let { buffer } = this.context;
18001
- let after = buffer.buffer[this.index + 3];
18002
- if (after < (this._parent ? buffer.buffer[this._parent.index + 3] : buffer.buffer.length)) return new BufferNode(this.context, this._parent, after);
18003
- return this.externalSibling(1);
18004
- }
18005
- get prevSibling() {
18006
- let { buffer } = this.context;
18007
- let parentStart = this._parent ? this._parent.index + 4 : 0;
18008
- if (this.index == parentStart) return this.externalSibling(-1);
18009
- return new BufferNode(this.context, this._parent, buffer.findChild(parentStart, this.index, -1, 0, 4));
18010
- }
18011
- get tree() {
18012
- return null;
18013
- }
18014
- toTree() {
18015
- let children = [], positions = [];
18016
- let { buffer } = this.context;
18017
- let startI = this.index + 4, endI = buffer.buffer[this.index + 3];
18018
- if (endI > startI) {
18019
- let from = buffer.buffer[this.index + 1];
18020
- children.push(buffer.slice(startI, endI, from));
18021
- positions.push(0);
18022
- }
18023
- return new Tree(this.type, children, positions, this.to - this.from);
18024
- }
18025
- toString() {
18026
- return this.context.buffer.childString(this.index);
18027
- }
18028
- };
18029
- function iterStack(heads) {
18030
- if (!heads.length) return null;
18031
- let pick = 0, picked = heads[0];
18032
- for (let i = 1; i < heads.length; i++) {
18033
- let node$1 = heads[i];
18034
- if (node$1.from > picked.from || node$1.to < picked.to) {
18035
- picked = node$1;
18036
- pick = i;
18037
- }
18038
- }
18039
- let next = picked instanceof TreeNode && picked.index < 0 ? null : picked.parent;
18040
- let newHeads = heads.slice();
18041
- if (next) newHeads[pick] = next;
18042
- else newHeads.splice(pick, 1);
18043
- return new StackIterator(newHeads, picked);
18044
- }
18045
- var StackIterator = class {
18046
- constructor(heads, node$1) {
18047
- this.heads = heads;
18048
- this.node = node$1;
18049
- }
18050
- get next() {
18051
- return iterStack(this.heads);
18052
- }
18053
- };
18054
- function stackIterator(tree, pos, side) {
18055
- let inner = tree.resolveInner(pos, side), layers = null;
18056
- for (let scan = inner instanceof TreeNode ? inner : inner.context.parent; scan; scan = scan.parent) if (scan.index < 0) {
18057
- let parent$2 = scan.parent;
18058
- (layers || (layers = [inner])).push(parent$2.resolve(pos, side));
18059
- scan = parent$2;
18060
- } else {
18061
- let mount = MountedTree.get(scan.tree);
18062
- if (mount && mount.overlay && mount.overlay[0].from <= pos && mount.overlay[mount.overlay.length - 1].to >= pos) {
18063
- let root = new TreeNode(mount.tree, mount.overlay[0].from + scan.from, -1, scan);
18064
- (layers || (layers = [inner])).push(resolveNode(root, pos, side, false));
18065
- }
18066
- }
18067
- return layers ? iterStack(layers) : inner;
18068
- }
18069
- var TreeCursor = class {
18070
- get name() {
18071
- return this.type.name;
18072
- }
18073
- constructor(node$1, mode = 0) {
18074
- this.mode = mode;
18075
- this.buffer = null;
18076
- this.stack = [];
18077
- this.index = 0;
18078
- this.bufferNode = null;
18079
- if (node$1 instanceof TreeNode) this.yieldNode(node$1);
18080
- else {
18081
- this._tree = node$1.context.parent;
18082
- this.buffer = node$1.context;
18083
- for (let n = node$1._parent; n; n = n._parent) this.stack.unshift(n.index);
18084
- this.bufferNode = node$1;
18085
- this.yieldBuf(node$1.index);
18086
- }
18087
- }
18088
- yieldNode(node$1) {
18089
- if (!node$1) return false;
18090
- this._tree = node$1;
18091
- this.type = node$1.type;
18092
- this.from = node$1.from;
18093
- this.to = node$1.to;
18094
- return true;
18095
- }
18096
- yieldBuf(index$1, type) {
18097
- this.index = index$1;
18098
- let { start, buffer } = this.buffer;
18099
- this.type = type || buffer.set.types[buffer.buffer[index$1]];
18100
- this.from = start + buffer.buffer[index$1 + 1];
18101
- this.to = start + buffer.buffer[index$1 + 2];
18102
- return true;
18103
- }
18104
- yield(node$1) {
18105
- if (!node$1) return false;
18106
- if (node$1 instanceof TreeNode) {
18107
- this.buffer = null;
18108
- return this.yieldNode(node$1);
18109
- }
18110
- this.buffer = node$1.context;
18111
- return this.yieldBuf(node$1.index, node$1.type);
18112
- }
18113
- toString() {
18114
- return this.buffer ? this.buffer.buffer.childString(this.index) : this._tree.toString();
18115
- }
18116
- enterChild(dir, pos, side) {
18117
- if (!this.buffer) return this.yield(this._tree.nextChild(dir < 0 ? this._tree._tree.children.length - 1 : 0, dir, pos, side, this.mode));
18118
- let { buffer } = this.buffer;
18119
- let index$1 = buffer.findChild(this.index + 4, buffer.buffer[this.index + 3], dir, pos - this.buffer.start, side);
18120
- if (index$1 < 0) return false;
18121
- this.stack.push(this.index);
18122
- return this.yieldBuf(index$1);
18123
- }
18124
- firstChild() {
18125
- return this.enterChild(1, 0, 4);
18126
- }
18127
- lastChild() {
18128
- return this.enterChild(-1, 0, 4);
18129
- }
18130
- childAfter(pos) {
18131
- return this.enterChild(1, pos, 2);
18132
- }
18133
- childBefore(pos) {
18134
- return this.enterChild(-1, pos, -2);
18135
- }
18136
- enter(pos, side, mode = this.mode) {
18137
- if (!this.buffer) return this.yield(this._tree.enter(pos, side, mode));
18138
- return mode & IterMode.ExcludeBuffers ? false : this.enterChild(1, pos, side);
18139
- }
18140
- parent() {
18141
- if (!this.buffer) return this.yieldNode(this.mode & IterMode.IncludeAnonymous ? this._tree._parent : this._tree.parent);
18142
- if (this.stack.length) return this.yieldBuf(this.stack.pop());
18143
- let parent$2 = this.mode & IterMode.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
18144
- this.buffer = null;
18145
- return this.yieldNode(parent$2);
18146
- }
18147
- sibling(dir) {
18148
- if (!this.buffer) return !this._tree._parent ? false : this.yield(this._tree.index < 0 ? null : this._tree._parent.nextChild(this._tree.index + dir, dir, 0, 4, this.mode));
18149
- let { buffer } = this.buffer, d = this.stack.length - 1;
18150
- if (dir < 0) {
18151
- let parentStart = d < 0 ? 0 : this.stack[d] + 4;
18152
- if (this.index != parentStart) return this.yieldBuf(buffer.findChild(parentStart, this.index, -1, 0, 4));
18153
- } else {
18154
- let after = buffer.buffer[this.index + 3];
18155
- if (after < (d < 0 ? buffer.buffer.length : buffer.buffer[this.stack[d] + 3])) return this.yieldBuf(after);
18156
- }
18157
- return d < 0 ? this.yield(this.buffer.parent.nextChild(this.buffer.index + dir, dir, 0, 4, this.mode)) : false;
18158
- }
18159
- nextSibling() {
18160
- return this.sibling(1);
18161
- }
18162
- prevSibling() {
18163
- return this.sibling(-1);
18164
- }
18165
- atLastNode(dir) {
18166
- let index$1, parent$2, { buffer } = this;
18167
- if (buffer) {
18168
- if (dir > 0) {
18169
- if (this.index < buffer.buffer.buffer.length) return false;
18170
- } else for (let i = 0; i < this.index; i++) if (buffer.buffer.buffer[i + 3] < this.index) return false;
18171
- ({index: index$1, parent: parent$2} = buffer);
18172
- } else ({index: index$1, _parent: parent$2} = this._tree);
18173
- for (; parent$2; {index: index$1, _parent: parent$2} = parent$2) if (index$1 > -1) for (let i = index$1 + dir, e = dir < 0 ? -1 : parent$2._tree.children.length; i != e; i += dir) {
18174
- let child = parent$2._tree.children[i];
18175
- if (this.mode & IterMode.IncludeAnonymous || child instanceof TreeBuffer || !child.type.isAnonymous || hasChild(child)) return false;
18176
- }
18177
- return true;
18178
- }
18179
- move(dir, enter) {
18180
- if (enter && this.enterChild(dir, 0, 4)) return true;
18181
- for (;;) {
18182
- if (this.sibling(dir)) return true;
18183
- if (this.atLastNode(dir) || !this.parent()) return false;
18184
- }
18185
- }
18186
- next(enter = true) {
18187
- return this.move(1, enter);
18188
- }
18189
- prev(enter = true) {
18190
- return this.move(-1, enter);
18191
- }
18192
- moveTo(pos, side = 0) {
18193
- while (this.from == this.to || (side < 1 ? this.from >= pos : this.from > pos) || (side > -1 ? this.to <= pos : this.to < pos)) if (!this.parent()) break;
18194
- while (this.enterChild(1, pos, side));
18195
- return this;
18196
- }
18197
- get node() {
18198
- if (!this.buffer) return this._tree;
18199
- let cache$1 = this.bufferNode, result = null, depth = 0;
18200
- if (cache$1 && cache$1.context == this.buffer) scan: for (let index$1 = this.index, d = this.stack.length; d >= 0;) {
18201
- for (let c = cache$1; c; c = c._parent) if (c.index == index$1) {
18202
- if (index$1 == this.index) return c;
18203
- result = c;
18204
- depth = d + 1;
18205
- break scan;
18206
- }
18207
- index$1 = this.stack[--d];
18208
- }
18209
- for (let i = depth; i < this.stack.length; i++) result = new BufferNode(this.buffer, result, this.stack[i]);
18210
- return this.bufferNode = new BufferNode(this.buffer, result, this.index);
18211
- }
18212
- get tree() {
18213
- return this.buffer ? null : this._tree._tree;
18214
- }
18215
- iterate(enter, leave) {
18216
- for (let depth = 0;;) {
18217
- let mustLeave = false;
18218
- if (this.type.isAnonymous || enter(this) !== false) {
18219
- if (this.firstChild()) {
18220
- depth++;
18221
- continue;
18222
- }
18223
- if (!this.type.isAnonymous) mustLeave = true;
18224
- }
18225
- for (;;) {
18226
- if (mustLeave && leave) leave(this);
18227
- mustLeave = this.type.isAnonymous;
18228
- if (this.nextSibling()) break;
18229
- if (!depth) return;
18230
- this.parent();
18231
- depth--;
18232
- mustLeave = true;
18233
- }
18234
- }
18235
- }
18236
- matchContext(context) {
18237
- if (!this.buffer) return matchNodeContext(this.node, context);
18238
- let { buffer } = this.buffer, { types } = buffer.set;
18239
- for (let i = context.length - 1, d = this.stack.length - 1; i >= 0; d--) {
18240
- if (d < 0) return matchNodeContext(this.node, context, i);
18241
- let type = types[buffer.buffer[this.stack[d]]];
18242
- if (!type.isAnonymous) {
18243
- if (context[i] && context[i] != type.name) return false;
18244
- i--;
18245
- }
18246
- }
18247
- return true;
18248
- }
18249
- };
18250
- function hasChild(tree) {
18251
- return tree.children.some((ch) => ch instanceof TreeBuffer || !ch.type.isAnonymous || hasChild(ch));
18252
- }
18253
- function buildTree(data) {
18254
- var _a$1;
18255
- let { buffer, nodeSet, maxBufferLength = DefaultBufferLength, reused = [], minRepeatType = nodeSet.types.length } = data;
18256
- let cursor = Array.isArray(buffer) ? new FlatBufferCursor(buffer, buffer.length) : buffer;
18257
- let types = nodeSet.types;
18258
- let contextHash = 0, lookAhead = 0;
18259
- function takeNode(parentStart, minPos, children$1, positions$1, inRepeat, depth) {
18260
- let { id, start, end, size } = cursor;
18261
- let lookAheadAtStart = lookAhead;
18262
- while (size < 0) {
18263
- cursor.next();
18264
- if (size == -1) {
18265
- let node$2 = reused[id];
18266
- children$1.push(node$2);
18267
- positions$1.push(start - parentStart);
18268
- return;
18269
- } else if (size == -3) {
18270
- contextHash = id;
18271
- return;
18272
- } else if (size == -4) {
18273
- lookAhead = id;
18274
- return;
18275
- } else throw new RangeError(`Unrecognized record size: ${size}`);
18276
- }
18277
- let type = types[id], node$1, buffer$1;
18278
- let startPos = start - parentStart;
18279
- if (end - start <= maxBufferLength && (buffer$1 = findBufferSize(cursor.pos - minPos, inRepeat))) {
18280
- let data$1 = new Uint16Array(buffer$1.size - buffer$1.skip);
18281
- let endPos = cursor.pos - buffer$1.size, index$1 = data$1.length;
18282
- while (cursor.pos > endPos) index$1 = copyToBuffer(buffer$1.start, data$1, index$1);
18283
- node$1 = new TreeBuffer(data$1, end - buffer$1.start, nodeSet);
18284
- startPos = buffer$1.start - parentStart;
18285
- } else {
18286
- let endPos = cursor.pos - size;
18287
- cursor.next();
18288
- let localChildren = [], localPositions = [];
18289
- let localInRepeat = id >= minRepeatType ? id : -1;
18290
- let lastGroup = 0, lastEnd = end;
18291
- while (cursor.pos > endPos) if (localInRepeat >= 0 && cursor.id == localInRepeat && cursor.size >= 0) {
18292
- if (cursor.end <= lastEnd - maxBufferLength) {
18293
- makeRepeatLeaf(localChildren, localPositions, start, lastGroup, cursor.end, lastEnd, localInRepeat, lookAheadAtStart);
18294
- lastGroup = localChildren.length;
18295
- lastEnd = cursor.end;
18296
- }
18297
- cursor.next();
18298
- } else if (depth > 2500) takeFlatNode(start, endPos, localChildren, localPositions);
18299
- else takeNode(start, endPos, localChildren, localPositions, localInRepeat, depth + 1);
18300
- if (localInRepeat >= 0 && lastGroup > 0 && lastGroup < localChildren.length) makeRepeatLeaf(localChildren, localPositions, start, lastGroup, start, lastEnd, localInRepeat, lookAheadAtStart);
18301
- localChildren.reverse();
18302
- localPositions.reverse();
18303
- if (localInRepeat > -1 && lastGroup > 0) {
18304
- let make = makeBalanced(type);
18305
- node$1 = balanceRange(type, localChildren, localPositions, 0, localChildren.length, 0, end - start, make, make);
18306
- } else node$1 = makeTree(type, localChildren, localPositions, end - start, lookAheadAtStart - end);
18307
- }
18308
- children$1.push(node$1);
18309
- positions$1.push(startPos);
18310
- }
18311
- function takeFlatNode(parentStart, minPos, children$1, positions$1) {
18312
- let nodes = [];
18313
- let nodeCount = 0, stopAt = -1;
18314
- while (cursor.pos > minPos) {
18315
- let { id, start, end, size } = cursor;
18316
- if (size > 4) cursor.next();
18317
- else if (stopAt > -1 && start < stopAt) break;
18318
- else {
18319
- if (stopAt < 0) stopAt = end - maxBufferLength;
18320
- nodes.push(id, start, end);
18321
- nodeCount++;
18322
- cursor.next();
18323
- }
18324
- }
18325
- if (nodeCount) {
18326
- let buffer$1 = new Uint16Array(nodeCount * 4);
18327
- let start = nodes[nodes.length - 2];
18328
- for (let i = nodes.length - 3, j$1 = 0; i >= 0; i -= 3) {
18329
- buffer$1[j$1++] = nodes[i];
18330
- buffer$1[j$1++] = nodes[i + 1] - start;
18331
- buffer$1[j$1++] = nodes[i + 2] - start;
18332
- buffer$1[j$1++] = j$1;
18333
- }
18334
- children$1.push(new TreeBuffer(buffer$1, nodes[2] - start, nodeSet));
18335
- positions$1.push(start - parentStart);
18336
- }
18337
- }
18338
- function makeBalanced(type) {
18339
- return (children$1, positions$1, length$1) => {
18340
- let lookAhead$1 = 0, lastI = children$1.length - 1, last$2, lookAheadProp;
18341
- if (lastI >= 0 && (last$2 = children$1[lastI]) instanceof Tree) {
18342
- if (!lastI && last$2.type == type && last$2.length == length$1) return last$2;
18343
- if (lookAheadProp = last$2.prop(NodeProp.lookAhead)) lookAhead$1 = positions$1[lastI] + last$2.length + lookAheadProp;
18344
- }
18345
- return makeTree(type, children$1, positions$1, length$1, lookAhead$1);
18346
- };
18347
- }
18348
- function makeRepeatLeaf(children$1, positions$1, base, i, from, to, type, lookAhead$1) {
18349
- let localChildren = [], localPositions = [];
18350
- while (children$1.length > i) {
18351
- localChildren.push(children$1.pop());
18352
- localPositions.push(positions$1.pop() + base - from);
18353
- }
18354
- children$1.push(makeTree(nodeSet.types[type], localChildren, localPositions, to - from, lookAhead$1 - to));
18355
- positions$1.push(from - base);
18356
- }
18357
- function makeTree(type, children$1, positions$1, length$1, lookAhead$1 = 0, props) {
18358
- if (contextHash) {
18359
- let pair = [NodeProp.contextHash, contextHash];
18360
- props = props ? [pair].concat(props) : [pair];
18361
- }
18362
- if (lookAhead$1 > 25) {
18363
- let pair = [NodeProp.lookAhead, lookAhead$1];
18364
- props = props ? [pair].concat(props) : [pair];
18365
- }
18366
- return new Tree(type, children$1, positions$1, length$1, props);
18367
- }
18368
- function findBufferSize(maxSize, inRepeat) {
18369
- let fork = cursor.fork();
18370
- let size = 0, start = 0, skip = 0, minStart = fork.end - maxBufferLength;
18371
- let result = {
18372
- size: 0,
18373
- start: 0,
18374
- skip: 0
18375
- };
18376
- scan: for (let minPos = fork.pos - maxSize; fork.pos > minPos;) {
18377
- let nodeSize$1 = fork.size;
18378
- if (fork.id == inRepeat && nodeSize$1 >= 0) {
18379
- result.size = size;
18380
- result.start = start;
18381
- result.skip = skip;
18382
- skip += 4;
18383
- size += 4;
18384
- fork.next();
18385
- continue;
18386
- }
18387
- let startPos = fork.pos - nodeSize$1;
18388
- if (nodeSize$1 < 0 || startPos < minPos || fork.start < minStart) break;
18389
- let localSkipped = fork.id >= minRepeatType ? 4 : 0;
18390
- let nodeStart = fork.start;
18391
- fork.next();
18392
- while (fork.pos > startPos) {
18393
- if (fork.size < 0) if (fork.size == -3) localSkipped += 4;
18394
- else break scan;
18395
- else if (fork.id >= minRepeatType) localSkipped += 4;
18396
- fork.next();
18397
- }
18398
- start = nodeStart;
18399
- size += nodeSize$1;
18400
- skip += localSkipped;
18401
- }
18402
- if (inRepeat < 0 || size == maxSize) {
18403
- result.size = size;
18404
- result.start = start;
18405
- result.skip = skip;
18406
- }
18407
- return result.size > 4 ? result : void 0;
18408
- }
18409
- function copyToBuffer(bufferStart, buffer$1, index$1) {
18410
- let { id, start, end, size } = cursor;
18411
- cursor.next();
18412
- if (size >= 0 && id < minRepeatType) {
18413
- let startIndex = index$1;
18414
- if (size > 4) {
18415
- let endPos = cursor.pos - (size - 4);
18416
- while (cursor.pos > endPos) index$1 = copyToBuffer(bufferStart, buffer$1, index$1);
18417
- }
18418
- buffer$1[--index$1] = startIndex;
18419
- buffer$1[--index$1] = end - bufferStart;
18420
- buffer$1[--index$1] = start - bufferStart;
18421
- buffer$1[--index$1] = id;
18422
- } else if (size == -3) contextHash = id;
18423
- else if (size == -4) lookAhead = id;
18424
- return index$1;
18425
- }
18426
- let children = [], positions = [];
18427
- while (cursor.pos > 0) takeNode(data.start || 0, data.bufferStart || 0, children, positions, -1, 0);
18428
- let length = (_a$1 = data.length) !== null && _a$1 !== void 0 ? _a$1 : children.length ? positions[0] + children[0].length : 0;
18429
- return new Tree(types[data.topID], children.reverse(), positions.reverse(), length);
18430
- }
18431
- var nodeSizeCache = /* @__PURE__ */ new WeakMap();
18432
- function nodeSize(balanceType, node$1) {
18433
- if (!balanceType.isAnonymous || node$1 instanceof TreeBuffer || node$1.type != balanceType) return 1;
18434
- let size = nodeSizeCache.get(node$1);
18435
- if (size == null) {
18436
- size = 1;
18437
- for (let child of node$1.children) {
18438
- if (child.type != balanceType || !(child instanceof Tree)) {
18439
- size = 1;
18440
- break;
18441
- }
18442
- size += nodeSize(balanceType, child);
18443
- }
18444
- nodeSizeCache.set(node$1, size);
18445
- }
18446
- return size;
18447
- }
18448
- function balanceRange(balanceType, children, positions, from, to, start, length, mkTop, mkTree) {
18449
- let total = 0;
18450
- for (let i = from; i < to; i++) total += nodeSize(balanceType, children[i]);
18451
- let maxChild = Math.ceil(total * 1.5 / 8);
18452
- let localChildren = [], localPositions = [];
18453
- function divide(children$1, positions$1, from$1, to$1, offset) {
18454
- for (let i = from$1; i < to$1;) {
18455
- let groupFrom = i, groupStart = positions$1[i], groupSize = nodeSize(balanceType, children$1[i]);
18456
- i++;
18457
- for (; i < to$1; i++) {
18458
- let nextSize = nodeSize(balanceType, children$1[i]);
18459
- if (groupSize + nextSize >= maxChild) break;
18460
- groupSize += nextSize;
18461
- }
18462
- if (i == groupFrom + 1) {
18463
- if (groupSize > maxChild) {
18464
- let only = children$1[groupFrom];
18465
- divide(only.children, only.positions, 0, only.children.length, positions$1[groupFrom] + offset);
18466
- continue;
18467
- }
18468
- localChildren.push(children$1[groupFrom]);
18469
- } else {
18470
- let length$1 = positions$1[i - 1] + children$1[i - 1].length - groupStart;
18471
- localChildren.push(balanceRange(balanceType, children$1, positions$1, groupFrom, i, groupStart, length$1, null, mkTree));
18472
- }
18473
- localPositions.push(groupStart + offset - start);
18474
- }
18475
- }
18476
- divide(children, positions, from, to, 0);
18477
- return (mkTop || mkTree)(localChildren, localPositions, length);
18478
- }
18479
- var NodeWeakMap = class {
18480
- constructor() {
18481
- this.map = /* @__PURE__ */ new WeakMap();
18482
- }
18483
- setBuffer(buffer, index$1, value$1) {
18484
- let inner = this.map.get(buffer);
18485
- if (!inner) this.map.set(buffer, inner = /* @__PURE__ */ new Map());
18486
- inner.set(index$1, value$1);
18487
- }
18488
- getBuffer(buffer, index$1) {
18489
- let inner = this.map.get(buffer);
18490
- return inner && inner.get(index$1);
18491
- }
18492
- set(node$1, value$1) {
18493
- if (node$1 instanceof BufferNode) this.setBuffer(node$1.context.buffer, node$1.index, value$1);
18494
- else if (node$1 instanceof TreeNode) this.map.set(node$1.tree, value$1);
18495
- }
18496
- get(node$1) {
18497
- return node$1 instanceof BufferNode ? this.getBuffer(node$1.context.buffer, node$1.index) : node$1 instanceof TreeNode ? this.map.get(node$1.tree) : void 0;
18498
- }
18499
- cursorSet(cursor, value$1) {
18500
- if (cursor.buffer) this.setBuffer(cursor.buffer.buffer, cursor.index, value$1);
18501
- else this.map.set(cursor.tree, value$1);
18502
- }
18503
- cursorGet(cursor) {
18504
- return cursor.buffer ? this.getBuffer(cursor.buffer.buffer, cursor.index) : this.map.get(cursor.tree);
18505
- }
18506
- };
18507
- new NodeProp({ perNode: true });
18508
- function toSet(chars) {
18509
- let flat = Object.keys(chars).join("");
18510
- let words = /\w/.test(flat);
18511
- if (words) flat = flat.replace(/\w/g, "");
18512
- return `[${words ? "\\w" : ""}${flat.replace(/[^\w\s]/g, "\\$&")}]`;
18513
- }
18514
- function prefixMatch(options$1) {
18515
- let first = Object.create(null), rest = Object.create(null);
18516
- for (let { label } of options$1) {
18517
- first[label[0]] = true;
18518
- for (let i = 1; i < label.length; i++) rest[label[i]] = true;
18519
- }
18520
- let source = toSet(first) + toSet(rest) + "*$";
18521
- return [/* @__PURE__ */ new RegExp("^" + source), new RegExp(source)];
18522
- }
18523
- function completeFromList(list) {
18524
- let options$1 = list.map((o) => typeof o == "string" ? { label: o } : o);
18525
- let [validFor, match] = options$1.every((o) => /^\w+$/.test(o.label)) ? [/\w*$/, /\w+$/] : prefixMatch(options$1);
18526
- return (context) => {
18527
- let token = context.matchBefore(match);
18528
- return token || context.explicit ? {
18529
- from: token ? token.from : context.pos,
18530
- options: options$1,
18531
- validFor
18532
- } : null;
18533
- };
18534
- }
18535
- function ifNotIn(nodes, source) {
18536
- return (context) => {
18537
- for (let pos = syntaxTree(context.state).resolveInner(context.pos, -1); pos; pos = pos.parent) {
18538
- if (nodes.indexOf(pos.name) > -1) return null;
18539
- if (pos.type.isTop) break;
18540
- }
18541
- return source(context);
18542
- };
18543
- }
18544
- var pickedCompletion = /* @__PURE__ */ Annotation.define();
18545
- typeof navigator == "object" && navigator.platform;
18546
- var baseTheme = /* @__PURE__ */ EditorView.baseTheme({
18547
- ".cm-tooltip.cm-tooltip-autocomplete": { "& > ul": {
18548
- fontFamily: "monospace",
18549
- whiteSpace: "nowrap",
18550
- overflow: "hidden auto",
18551
- maxWidth_fallback: "700px",
18552
- maxWidth: "min(700px, 95vw)",
18553
- minWidth: "250px",
18554
- maxHeight: "10em",
18555
- height: "100%",
18556
- listStyle: "none",
18557
- margin: 0,
18558
- padding: 0,
18559
- "& > li, & > completion-section": {
18560
- padding: "1px 3px",
18561
- lineHeight: 1.2
18562
- },
18563
- "& > li": {
18564
- overflowX: "hidden",
18565
- textOverflow: "ellipsis",
18566
- cursor: "pointer"
18567
- },
18568
- "& > completion-section": {
18569
- display: "list-item",
18570
- borderBottom: "1px solid silver",
18571
- paddingLeft: "0.5em",
18572
- opacity: .7
18573
- }
18574
- } },
18575
- "&light .cm-tooltip-autocomplete ul li[aria-selected]": {
18576
- background: "#17c",
18577
- color: "white"
18578
- },
18579
- "&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]": { background: "#777" },
18580
- "&dark .cm-tooltip-autocomplete ul li[aria-selected]": {
18581
- background: "#347",
18582
- color: "white"
18583
- },
18584
- "&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]": { background: "#444" },
18585
- ".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after": {
18586
- content: "\"···\"",
18587
- opacity: .5,
18588
- display: "block",
18589
- textAlign: "center"
18590
- },
18591
- ".cm-tooltip.cm-completionInfo": {
18592
- position: "absolute",
18593
- padding: "3px 9px",
18594
- width: "max-content",
18595
- maxWidth: `400px`,
18596
- boxSizing: "border-box"
18597
- },
18598
- ".cm-completionInfo.cm-completionInfo-left": { right: "100%" },
18599
- ".cm-completionInfo.cm-completionInfo-right": { left: "100%" },
18600
- ".cm-completionInfo.cm-completionInfo-left-narrow": { right: `30px` },
18601
- ".cm-completionInfo.cm-completionInfo-right-narrow": { left: `30px` },
18602
- "&light .cm-snippetField": { backgroundColor: "#00000022" },
18603
- "&dark .cm-snippetField": { backgroundColor: "#ffffff22" },
18604
- ".cm-snippetFieldPosition": {
18605
- verticalAlign: "text-top",
18606
- width: 0,
18607
- height: "1.15em",
18608
- display: "inline-block",
18609
- margin: "0 -0.7px -.7em",
18610
- borderLeft: "1.4px dotted #888"
18611
- },
18612
- ".cm-completionMatchedText": { textDecoration: "underline" },
18613
- ".cm-completionDetail": {
18614
- marginLeft: "0.5em",
18615
- fontStyle: "italic"
18616
- },
18617
- ".cm-completionIcon": {
18618
- fontSize: "90%",
18619
- width: ".8em",
18620
- display: "inline-block",
18621
- textAlign: "center",
18622
- paddingRight: ".6em",
18623
- opacity: "0.6",
18624
- boxSizing: "content-box"
18625
- },
18626
- ".cm-completionIcon-function, .cm-completionIcon-method": { "&:after": { content: "'ƒ'" } },
18627
- ".cm-completionIcon-class": { "&:after": { content: "'○'" } },
18628
- ".cm-completionIcon-interface": { "&:after": { content: "'◌'" } },
18629
- ".cm-completionIcon-variable": { "&:after": { content: "'𝑥'" } },
18630
- ".cm-completionIcon-constant": { "&:after": { content: "'𝐶'" } },
18631
- ".cm-completionIcon-type": { "&:after": { content: "'𝑡'" } },
18632
- ".cm-completionIcon-enum": { "&:after": { content: "'∪'" } },
18633
- ".cm-completionIcon-property": { "&:after": { content: "'□'" } },
18634
- ".cm-completionIcon-keyword": { "&:after": { content: "'🔑︎'" } },
18635
- ".cm-completionIcon-namespace": { "&:after": { content: "'▢'" } },
18636
- ".cm-completionIcon-text": { "&:after": {
18637
- content: "'abc'",
18638
- fontSize: "50%",
18639
- verticalAlign: "middle"
18640
- } }
18641
- });
18642
- var FieldPos = class {
18643
- constructor(field, line, from, to) {
18644
- this.field = field;
18645
- this.line = line;
18646
- this.from = from;
18647
- this.to = to;
18648
- }
18649
- };
18650
- var FieldRange = class FieldRange {
18651
- constructor(field, from, to) {
18652
- this.field = field;
18653
- this.from = from;
18654
- this.to = to;
18655
- }
18656
- map(changes) {
18657
- let from = changes.mapPos(this.from, -1, MapMode.TrackDel);
18658
- let to = changes.mapPos(this.to, 1, MapMode.TrackDel);
18659
- return from == null || to == null ? null : new FieldRange(this.field, from, to);
18660
- }
18661
- };
18662
- var Snippet = class Snippet {
18663
- constructor(lines, fieldPositions) {
18664
- this.lines = lines;
18665
- this.fieldPositions = fieldPositions;
18666
- }
18667
- instantiate(state, pos) {
18668
- let text$1 = [], lineStart = [pos];
18669
- let lineObj = state.doc.lineAt(pos), baseIndent = /^\s*/.exec(lineObj.text)[0];
18670
- for (let line of this.lines) {
18671
- if (text$1.length) {
18672
- let indent$1 = baseIndent, tabs$1 = /^\t*/.exec(line)[0].length;
18673
- for (let i = 0; i < tabs$1; i++) indent$1 += state.facet(indentUnit);
18674
- lineStart.push(pos + indent$1.length - tabs$1);
18675
- line = indent$1 + line.slice(tabs$1);
18676
- }
18677
- text$1.push(line);
18678
- pos += line.length + 1;
18679
- }
18680
- return {
18681
- text: text$1,
18682
- ranges: this.fieldPositions.map((pos$1) => new FieldRange(pos$1.field, lineStart[pos$1.line] + pos$1.from, lineStart[pos$1.line] + pos$1.to))
18683
- };
18684
- }
18685
- static parse(template) {
18686
- let fields = [];
18687
- let lines = [], positions = [], m$1;
18688
- for (let line of template.split(/\r\n?|\n/)) {
18689
- while (m$1 = /[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(line)) {
18690
- let seq = m$1[1] ? +m$1[1] : null, name = m$1[2] || m$1[3] || "", found = -1;
18691
- for (let i = 0; i < fields.length; i++) if (seq != null ? fields[i].seq == seq : name ? fields[i].name == name : false) found = i;
18692
- if (found < 0) {
18693
- let i = 0;
18694
- while (i < fields.length && (seq == null || fields[i].seq != null && fields[i].seq < seq)) i++;
18695
- fields.splice(i, 0, {
18696
- seq,
18697
- name
18698
- });
18699
- found = i;
18700
- for (let pos of positions) if (pos.field >= found) pos.field++;
18701
- }
18702
- positions.push(new FieldPos(found, lines.length, m$1.index, m$1.index + name.length));
18703
- line = line.slice(0, m$1.index) + name + line.slice(m$1.index + m$1[0].length);
18704
- }
18705
- for (let esc; esc = /\\([{}])/.exec(line);) {
18706
- line = line.slice(0, esc.index) + esc[1] + line.slice(esc.index + esc[0].length);
18707
- for (let pos of positions) if (pos.line == lines.length && pos.from > esc.index) {
18708
- pos.from--;
18709
- pos.to--;
18710
- }
18711
- }
18712
- lines.push(line);
18713
- }
18714
- return new Snippet(lines, positions);
18715
- }
18716
- };
18717
- var fieldMarker = /* @__PURE__ */ Decoration.widget({ widget: /* @__PURE__ */ new class extends WidgetType {
18718
- toDOM() {
18719
- let span = document.createElement("span");
18720
- span.className = "cm-snippetFieldPosition";
18721
- return span;
18722
- }
18723
- ignoreEvent() {
18724
- return false;
18725
- }
18726
- }() });
18727
- var fieldRange = /* @__PURE__ */ Decoration.mark({ class: "cm-snippetField" });
18728
- var ActiveSnippet = class ActiveSnippet {
18729
- constructor(ranges, active$2) {
18730
- this.ranges = ranges;
18731
- this.active = active$2;
18732
- this.deco = Decoration.set(ranges.map((r) => (r.from == r.to ? fieldMarker : fieldRange).range(r.from, r.to)));
18733
- }
18734
- map(changes) {
18735
- let ranges = [];
18736
- for (let r of this.ranges) {
18737
- let mapped = r.map(changes);
18738
- if (!mapped) return null;
18739
- ranges.push(mapped);
18740
- }
18741
- return new ActiveSnippet(ranges, this.active);
18742
- }
18743
- selectionInsideField(sel) {
18744
- return sel.ranges.every((range) => this.ranges.some((r) => r.field == this.active && r.from <= range.from && r.to >= range.to));
18745
- }
18746
- };
18747
- var setActive = /* @__PURE__ */ StateEffect.define({ map(value$1, changes) {
18748
- return value$1 && value$1.map(changes);
18749
- } });
18750
- var moveToField = /* @__PURE__ */ StateEffect.define();
18751
- var snippetState = /* @__PURE__ */ StateField.define({
18752
- create() {
18753
- return null;
18754
- },
18755
- update(value$1, tr$1) {
18756
- for (let effect of tr$1.effects) {
18757
- if (effect.is(setActive)) return effect.value;
18758
- if (effect.is(moveToField) && value$1) return new ActiveSnippet(value$1.ranges, effect.value);
18759
- }
18760
- if (value$1 && tr$1.docChanged) value$1 = value$1.map(tr$1.changes);
18761
- if (value$1 && tr$1.selection && !value$1.selectionInsideField(tr$1.selection)) value$1 = null;
18762
- return value$1;
18763
- },
18764
- provide: (f) => EditorView.decorations.from(f, (val) => val ? val.deco : Decoration.none)
18765
- });
18766
- function fieldSelection(ranges, field) {
18767
- return EditorSelection.create(ranges.filter((r) => r.field == field).map((r) => EditorSelection.range(r.from, r.to)));
18768
- }
18769
- function snippet(template) {
18770
- let snippet$1 = Snippet.parse(template);
18771
- return (editor$5, completion, from, to) => {
18772
- let { text: text$1, ranges } = snippet$1.instantiate(editor$5.state, from);
18773
- let spec = {
18774
- changes: {
18775
- from,
18776
- to,
18777
- insert: Text.of(text$1)
18778
- },
18779
- scrollIntoView: true,
18780
- annotations: completion ? [pickedCompletion.of(completion), Transaction.userEvent.of("input.complete")] : void 0
18781
- };
18782
- if (ranges.length) spec.selection = fieldSelection(ranges, 0);
18783
- if (ranges.some((r) => r.field > 0)) {
18784
- let active$2 = new ActiveSnippet(ranges, 0);
18785
- let effects = spec.effects = [setActive.of(active$2)];
18786
- if (editor$5.state.field(snippetState, false) === void 0) effects.push(StateEffect.appendConfig.of([
18787
- snippetState,
18788
- addSnippetKeymap,
18789
- snippetPointerHandler,
18790
- baseTheme
18791
- ]));
18792
- }
18793
- editor$5.dispatch(editor$5.state.update(spec));
18794
- };
18795
- }
18796
- function moveField(dir) {
18797
- return ({ state, dispatch }) => {
18798
- let active$2 = state.field(snippetState, false);
18799
- if (!active$2 || dir < 0 && active$2.active == 0) return false;
18800
- let next = active$2.active + dir, last$2 = dir > 0 && !active$2.ranges.some((r) => r.field == next + dir);
18801
- dispatch(state.update({
18802
- selection: fieldSelection(active$2.ranges, next),
18803
- effects: setActive.of(last$2 ? null : new ActiveSnippet(active$2.ranges, next)),
18804
- scrollIntoView: true
18805
- }));
18806
- return true;
18807
- };
18808
- }
18809
- var clearSnippet = ({ state, dispatch }) => {
18810
- if (!state.field(snippetState, false)) return false;
18811
- dispatch(state.update({ effects: setActive.of(null) }));
18812
- return true;
18813
- };
18814
- var defaultSnippetKeymap = [{
18815
- key: "Tab",
18816
- run: /* @__PURE__ */ moveField(1),
18817
- shift: /* @__PURE__ */ moveField(-1)
18818
- }, {
18819
- key: "Escape",
18820
- run: clearSnippet
18821
- }];
18822
- var snippetKeymap = /* @__PURE__ */ Facet.define({ combine(maps) {
18823
- return maps.length ? maps[0] : defaultSnippetKeymap;
18824
- } });
18825
- var addSnippetKeymap = /* @__PURE__ */ Prec.highest(/* @__PURE__ */ keymap.compute([snippetKeymap], (state) => state.facet(snippetKeymap)));
18826
- function snippetCompletion$1(template, completion) {
18827
- return Object.assign(Object.assign({}, completion), { apply: snippet(template) });
18828
- }
18829
- var snippetPointerHandler = /* @__PURE__ */ EditorView.domEventHandlers({ mousedown(event, view) {
18830
- let active$2 = view.state.field(snippetState, false), pos;
18831
- if (!active$2 || (pos = view.posAtCoords({
18832
- x: event.clientX,
18833
- y: event.clientY
18834
- })) == null) return false;
18835
- let match = active$2.ranges.find((r) => r.from <= pos && r.to >= pos);
18836
- if (!match || match.field == active$2.active) return false;
18837
- view.dispatch({
18838
- selection: fieldSelection(active$2.ranges, match.field),
18839
- effects: setActive.of(active$2.ranges.some((r) => r.field > match.field) ? new ActiveSnippet(active$2.ranges, match.field) : null),
18840
- scrollIntoView: true
18841
- });
18842
- return true;
18843
- } });
18844
- var closedBracket = /* @__PURE__ */ new class extends RangeValue {}();
18845
- closedBracket.startSide = 1;
18846
- closedBracket.endSide = -1;
18847
- typeof navigator == "object" && navigator.userAgent;
18848
17508
  var cache = /* @__PURE__ */ new NodeWeakMap();
18849
17509
  var ScopeNodes = /* @__PURE__ */ new Set([
18850
17510
  "Script",
@@ -19108,47 +17768,47 @@ var globals = /* @__PURE__ */ [
19108
17768
  type: "function"
19109
17769
  })));
19110
17770
  var snippets$1 = [
19111
- /* @__PURE__ */ snippetCompletion$1("def ${name}(${params}):\n ${}", {
17771
+ /* @__PURE__ */ snippetCompletion("def ${name}(${params}):\n ${}", {
19112
17772
  label: "def",
19113
17773
  detail: "function",
19114
17774
  type: "keyword"
19115
17775
  }),
19116
- /* @__PURE__ */ snippetCompletion$1("for ${name} in ${collection}:\n ${}", {
17776
+ /* @__PURE__ */ snippetCompletion("for ${name} in ${collection}:\n ${}", {
19117
17777
  label: "for",
19118
17778
  detail: "loop",
19119
17779
  type: "keyword"
19120
17780
  }),
19121
- /* @__PURE__ */ snippetCompletion$1("while ${}:\n ${}", {
17781
+ /* @__PURE__ */ snippetCompletion("while ${}:\n ${}", {
19122
17782
  label: "while",
19123
17783
  detail: "loop",
19124
17784
  type: "keyword"
19125
17785
  }),
19126
- /* @__PURE__ */ snippetCompletion$1("try:\n ${}\nexcept ${error}:\n ${}", {
17786
+ /* @__PURE__ */ snippetCompletion("try:\n ${}\nexcept ${error}:\n ${}", {
19127
17787
  label: "try",
19128
17788
  detail: "/ except block",
19129
17789
  type: "keyword"
19130
17790
  }),
19131
- /* @__PURE__ */ snippetCompletion$1("if ${}:\n \n", {
17791
+ /* @__PURE__ */ snippetCompletion("if ${}:\n \n", {
19132
17792
  label: "if",
19133
17793
  detail: "block",
19134
17794
  type: "keyword"
19135
17795
  }),
19136
- /* @__PURE__ */ snippetCompletion$1("if ${}:\n ${}\nelse:\n ${}", {
17796
+ /* @__PURE__ */ snippetCompletion("if ${}:\n ${}\nelse:\n ${}", {
19137
17797
  label: "if",
19138
17798
  detail: "/ else block",
19139
17799
  type: "keyword"
19140
17800
  }),
19141
- /* @__PURE__ */ snippetCompletion$1("class ${name}:\n def __init__(self, ${params}):\n ${}", {
17801
+ /* @__PURE__ */ snippetCompletion("class ${name}:\n def __init__(self, ${params}):\n ${}", {
19142
17802
  label: "class",
19143
17803
  detail: "definition",
19144
17804
  type: "keyword"
19145
17805
  }),
19146
- /* @__PURE__ */ snippetCompletion$1("import ${module}", {
17806
+ /* @__PURE__ */ snippetCompletion("import ${module}", {
19147
17807
  label: "import",
19148
17808
  detail: "statement",
19149
17809
  type: "keyword"
19150
17810
  }),
19151
- /* @__PURE__ */ snippetCompletion$1("from ${module} import ${names}", {
17811
+ /* @__PURE__ */ snippetCompletion("from ${module} import ${names}", {
19152
17812
  label: "from",
19153
17813
  detail: "import",
19154
17814
  type: "keyword"
@@ -19712,8 +18372,8 @@ function useBaseCompletions(mode, language) {
19712
18372
  nodeSelectorCompletions
19713
18373
  };
19714
18374
  }
19715
- const jsSnippets = completeFromList$1([
19716
- ...snippets.filter((snippet$1) => snippet$1.label !== "class"),
18375
+ const jsSnippets = completeFromList([
18376
+ ...snippets.filter((snippet) => snippet.label !== "class"),
19717
18377
  snippetCompletion("console.log(${arg})", { label: "console.log()" }),
19718
18378
  snippetCompletion("DateTime", { label: "DateTime" }),
19719
18379
  snippetCompletion("Interval", { label: "Interval" }),
@@ -20962,7 +19622,7 @@ var AskAI_vue_vue_type_style_index_1_lang_module_default = {
20962
19622
  counter: "_counter_zopl1_189",
20963
19623
  controls: "_controls_zopl1_193"
20964
19624
  };
20965
- var AskAI_default = /* @__PURE__ */ __plugin_vue_export_helper_default(AskAI_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": AskAI_vue_vue_type_style_index_1_lang_module_default }], ["__scopeId", "data-v-fae93ed8"]]);
19625
+ var AskAI_default = /* @__PURE__ */ __plugin_vue_export_helper_default(AskAI_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": AskAI_vue_vue_type_style_index_1_lang_module_default }], ["__scopeId", "data-v-91cf3e23"]]);
20966
19626
  const useLinter = (mode, language) => {
20967
19627
  const i18n$1 = useI18n();
20968
19628
  const linter$1 = computed(() => {
@@ -25440,32 +24100,6 @@ function useWorkflowResourceLocatorModes(modelValue, router) {
25440
24100
  getModeLabel
25441
24101
  };
25442
24102
  }
25443
- const SAMPLE_SUBWORKFLOW_TRIGGER_ID = "c055762a-8fe7-4141-a639-df2372f30060";
25444
- const SAMPLE_SUBWORKFLOW_WORKFLOW = {
25445
- name: "My Sub-Workflow",
25446
- nodes: [{
25447
- id: SAMPLE_SUBWORKFLOW_TRIGGER_ID,
25448
- typeVersion: 1.1,
25449
- name: "When Executed by Another Workflow",
25450
- type: "n8n-nodes-base.executeWorkflowTrigger",
25451
- position: [260, 340],
25452
- parameters: {}
25453
- }, {
25454
- id: "b5942df6-0160-4ef7-965d-57583acdc8aa",
25455
- name: "Replace me with your logic",
25456
- type: "n8n-nodes-base.noOp",
25457
- position: [520, 340],
25458
- parameters: {}
25459
- }],
25460
- connections: { "When Executed by Another Workflow": { main: [[{
25461
- node: "Replace me with your logic",
25462
- type: NodeConnectionTypes.Main,
25463
- index: 0
25464
- }]] } },
25465
- settings: { executionOrder: "v1" },
25466
- pinData: {}
25467
- };
25468
- NodeConnectionTypes.Main, NodeConnectionTypes.Main;
25469
24103
  function useDocumentVisibility() {
25470
24104
  const isVisible = ref(!document.hidden);
25471
24105
  const visibleHandlers = ref([]);
@@ -28679,7 +27313,7 @@ var ParameterInput_vue_vue_type_style_index_2_lang_module_default = {
28679
27313
  overrideButtonStandalone: "_overrideButtonStandalone_bkqdq_47",
28680
27314
  overrideButtonInline: "_overrideButtonInline_bkqdq_53"
28681
27315
  };
28682
- var ParameterInput_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ParameterInput_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": ParameterInput_vue_vue_type_style_index_2_lang_module_default }], ["__scopeId", "data-v-66171f99"]]);
27316
+ var ParameterInput_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ParameterInput_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": ParameterInput_vue_vue_type_style_index_2_lang_module_default }], ["__scopeId", "data-v-3cd34e34"]]);
28683
27317
  var _hoisted_1$13 = { "data-test-id": "parameter-input-hint" };
28684
27318
  var ParameterInputHint_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
28685
27319
  __name: "ParameterInputHint",
@@ -37419,7 +36053,7 @@ var MultipleParameter_default = /* @__PURE__ */ __plugin_vue_export_helper_defau
37419
36053
  ], 32);
37420
36054
  };
37421
36055
  }
37422
- }), [["__scopeId", "data-v-ed9cd59b"]]);
36056
+ }), [["__scopeId", "data-v-512548fd"]]);
37423
36057
  function useNodeSpecificationValues(typeOptions) {
37424
36058
  const resourceMapperTypeOptions = computed(() => {
37425
36059
  return typeOptions?.resourceMapper;
@@ -37782,11 +36416,6 @@ var MappingFields_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
37782
36416
  ],
37783
36417
  setup(__props, { expose: __expose, emit: __emit }) {
37784
36418
  const props = __props;
37785
- const FORCE_TEXT_INPUT_FOR_TYPES = [
37786
- "time",
37787
- "object",
37788
- "array"
37789
- ];
37790
36419
  const { resourceMapperTypeOptions, singularFieldWord, singularFieldWordCapitalized, pluralFieldWord, pluralFieldWordCapitalized } = useNodeSpecificationValues(props.parameter.typeOptions);
37791
36420
  const i18n$1 = useI18n();
37792
36421
  const emit = __emit;
@@ -37900,8 +36529,12 @@ var MappingFields_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
37900
36529
  return fieldIssues;
37901
36530
  }
37902
36531
  function getParamType(field) {
37903
- if (field.type && !FORCE_TEXT_INPUT_FOR_TYPES.includes(field.type)) return field.type;
37904
- return "string";
36532
+ switch (field.type) {
36533
+ case "object":
36534
+ case "array": return "json";
36535
+ case "time": return "string";
36536
+ default: return field.type ?? "string";
36537
+ }
37905
36538
  }
37906
36539
  function getParsedFieldName(fullName) {
37907
36540
  return parseResourceMapperFieldName(fullName) ?? fullName;
@@ -38627,8 +37260,8 @@ var ParameterInputList_default = /* @__PURE__ */ defineComponent({
38627
37260
  "parameterBlur"
38628
37261
  ],
38629
37262
  setup(__props, { emit: __emit }) {
38630
- const LazyFixedCollectionParameter = defineAsyncComponent(async () => await __vitePreload(() => import("./FixedCollectionParameter-B-6jN9pB.js"), __vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66])));
38631
- const LazyCollectionParameter = defineAsyncComponent(async () => await __vitePreload(() => import("./CollectionParameter-CsuKmV_8.js"), __vite__mapDeps([67,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65])));
37263
+ const LazyFixedCollectionParameter = defineAsyncComponent(async () => await __vitePreload(() => import("./FixedCollectionParameter-CiWWNV7x.js"), __vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67])));
37264
+ const LazyCollectionParameter = defineAsyncComponent(async () => await __vitePreload(() => import("./CollectionParameter-bg5wO6z0.js"), __vite__mapDeps([68,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66])));
38632
37265
  const showIssuesInLabelFor = ["fixedCollection"];
38633
37266
  const props = __props;
38634
37267
  const emit = __emit;