@prefecthq/prefect-ui-library 1.0.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 (710) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +57 -0
  3. package/dist/circle.svg +34 -0
  4. package/dist/constellations.svg +78 -0
  5. package/dist/index-5e1667e6.mjs +58953 -0
  6. package/dist/index-5e1667e6.mjs.map +1 -0
  7. package/dist/prefect-ui-library.mjs +593 -0
  8. package/dist/prefect-ui-library.mjs.map +1 -0
  9. package/dist/prefect-ui-library.umd.js +1079 -0
  10. package/dist/prefect-ui-library.umd.js.map +1 -0
  11. package/dist/style.css +1 -0
  12. package/dist/types/demo/App.vue.d.ts +2 -0
  13. package/dist/types/demo/components/ComponentPage.vue.d.ts +27 -0
  14. package/dist/types/demo/components/ContextSidebar.vue.d.ts +2 -0
  15. package/dist/types/demo/components/HashLink.vue.d.ts +22 -0
  16. package/dist/types/demo/components/ResizableSection.vue.d.ts +9 -0
  17. package/dist/types/demo/components/contextAccordionChildItem.d.ts +5 -0
  18. package/dist/types/demo/components/router.d.ts +3 -0
  19. package/dist/types/demo/compositions/useBlockDocumentMock.d.ts +3 -0
  20. package/dist/types/demo/compositions/useBlockSchemaCapabilitiesMock.d.ts +2 -0
  21. package/dist/types/demo/compositions/useBlockSchemaMock.d.ts +3 -0
  22. package/dist/types/demo/compositions/useBlockTypeMock.d.ts +3 -0
  23. package/dist/types/demo/compositions/useFlowMock.d.ts +3 -0
  24. package/dist/types/demo/compositions/useFlowRunGraphMock.d.ts +2 -0
  25. package/dist/types/demo/compositions/useFlowRunsMock.d.ts +3 -0
  26. package/dist/types/demo/compositions/useSeeds.d.ts +20 -0
  27. package/dist/types/demo/compositions/useTaskRunsMock.d.ts +3 -0
  28. package/dist/types/demo/compositions/useWorkPoolMock.d.ts +3 -0
  29. package/dist/types/demo/compositions/useWorkPoolQueueMock.d.ts +3 -0
  30. package/dist/types/demo/compositions/useWorkersMock.d.ts +3 -0
  31. package/dist/types/demo/main.d.ts +2 -0
  32. package/dist/types/demo/router/index.d.ts +3 -0
  33. package/dist/types/demo/router/menu.d.ts +4 -0
  34. package/dist/types/demo/router/routeRecords.d.ts +5 -0
  35. package/dist/types/demo/router/routeRecordsFlat.d.ts +4 -0
  36. package/dist/types/demo/sections/TimezoneSupport.vue.d.ts +2 -0
  37. package/dist/types/demo/sections/WelcomePage.vue.d.ts +2 -0
  38. package/dist/types/demo/sections/blocks/BlockCapabilityBlockDocumentInput.vue.d.ts +2 -0
  39. package/dist/types/demo/sections/blocks/BlockDocumentCard.vue.d.ts +2 -0
  40. package/dist/types/demo/sections/blocks/BlockDocumentInput.vue.d.ts +2 -0
  41. package/dist/types/demo/sections/blocks/BlockDocumentKeyValue.vue.d.ts +2 -0
  42. package/dist/types/demo/sections/blocks/BlockDocumentMenu.vue.d.ts +2 -0
  43. package/dist/types/demo/sections/blocks/BlockDocumentsSelect.vue.d.ts +2 -0
  44. package/dist/types/demo/sections/blocks/BlockDocumentsTable.vue.d.ts +2 -0
  45. package/dist/types/demo/sections/blocks/BlockIconText.vue.d.ts +2 -0
  46. package/dist/types/demo/sections/blocks/BlockSchemaCapabilities.vue.d.ts +2 -0
  47. package/dist/types/demo/sections/blocks/BlockSchemaCapabilitiesSelect.vue.d.ts +2 -0
  48. package/dist/types/demo/sections/blocks/BlockSchemaCreateForm.vue.d.ts +2 -0
  49. package/dist/types/demo/sections/blocks/BlockSchemaEditForm.vue.d.ts +2 -0
  50. package/dist/types/demo/sections/blocks/BlockTypeCard.vue.d.ts +2 -0
  51. package/dist/types/demo/sections/blocks/BlockTypeCardLayout.vue.d.ts +2 -0
  52. package/dist/types/demo/sections/blocks/BlockTypeCardPreview.vue.d.ts +2 -0
  53. package/dist/types/demo/sections/blocks/BlockTypeList.vue.d.ts +2 -0
  54. package/dist/types/demo/sections/blocks/BlockTypeSelect.vue.d.ts +2 -0
  55. package/dist/types/demo/sections/blocks/BlockTypeSnippet.vue.d.ts +2 -0
  56. package/dist/types/demo/sections/blocks/BlocksPageEmptyState.vue.d.ts +2 -0
  57. package/dist/types/demo/sections/blocks/index.d.ts +2 -0
  58. package/dist/types/demo/sections/concurrency/ConcurrencyLimitDetails.vue.d.ts +2 -0
  59. package/dist/types/demo/sections/concurrency/ConcurrencyLimitModal.vue.d.ts +2 -0
  60. package/dist/types/demo/sections/concurrency/ConcurrencyLimitsPageEmptyState.vue.d.ts +2 -0
  61. package/dist/types/demo/sections/concurrency/ConcurrencyLimitsTable.vue.d.ts +2 -0
  62. package/dist/types/demo/sections/concurrency/index.d.ts +2 -0
  63. package/dist/types/demo/sections/deployments/CronScheduleForm.vue.d.ts +2 -0
  64. package/dist/types/demo/sections/deployments/index.d.ts +2 -0
  65. package/dist/types/demo/sections/flowRuns/FlowRunDetails.vue.d.ts +2 -0
  66. package/dist/types/demo/sections/flowRuns/FlowRunList.vue.d.ts +2 -0
  67. package/dist/types/demo/sections/flowRuns/FlowRunListItem.vue.d.ts +2 -0
  68. package/dist/types/demo/sections/flowRuns/FlowRunRadar.vue.d.ts +2 -0
  69. package/dist/types/demo/sections/flowRuns/FlowRunsFilterGroup.vue.d.ts +2 -0
  70. package/dist/types/demo/sections/flowRuns/index.d.ts +2 -0
  71. package/dist/types/demo/sections/general/CodeBanner.vue.d.ts +2 -0
  72. package/dist/types/demo/sections/general/CodeSnippet.vue.d.ts +2 -0
  73. package/dist/types/demo/sections/general/ColorModeSelect.vue.d.ts +2 -0
  74. package/dist/types/demo/sections/general/ColorModeSelectOption.vue.d.ts +2 -0
  75. package/dist/types/demo/sections/general/ConfirmDeleteModal.vue.d.ts +2 -0
  76. package/dist/types/demo/sections/general/CopyOverflowMenuItem.vue.d.ts +2 -0
  77. package/dist/types/demo/sections/general/LogoImage.vue.d.ts +2 -0
  78. package/dist/types/demo/sections/general/index.d.ts +2 -0
  79. package/dist/types/demo/sections/index.d.ts +2 -0
  80. package/dist/types/demo/sections/logs/RunLogs.vue.d.ts +2 -0
  81. package/dist/types/demo/sections/logs/index.d.ts +2 -0
  82. package/dist/types/demo/sections/notifications/NotificationForm.vue.d.ts +2 -0
  83. package/dist/types/demo/sections/notifications/index.d.ts +2 -0
  84. package/dist/types/demo/sections/states/StateNameSelect.vue.d.ts +2 -0
  85. package/dist/types/demo/sections/states/index.d.ts +2 -0
  86. package/dist/types/demo/sections/workers/WorkPoolCard.vue.d.ts +2 -0
  87. package/dist/types/demo/sections/workers/WorkPoolTables.vue.d.ts +2 -0
  88. package/dist/types/demo/sections/workers/WorkerHeadings.vue.d.ts +2 -0
  89. package/dist/types/demo/sections/workers/WorkersTable.vue.d.ts +2 -0
  90. package/dist/types/demo/sections/workers/index.d.ts +2 -0
  91. package/dist/types/demo/services/KeyedDataStore.d.ts +35 -0
  92. package/dist/types/demo/services/MockApi.d.ts +16 -0
  93. package/dist/types/demo/services/SimpleDataStore.d.ts +21 -0
  94. package/dist/types/demo/services/mockWorkspaceBlockCapabilitiesApi.d.ts +5 -0
  95. package/dist/types/demo/services/mockWorkspaceBlockDocumentsApi.d.ts +10 -0
  96. package/dist/types/demo/services/mockWorkspaceBlockSchemasApi.d.ts +8 -0
  97. package/dist/types/demo/services/mockWorkspaceBlockTypesApi.d.ts +9 -0
  98. package/dist/types/demo/services/mockWorkspaceConcurrencyLimitsApi.d.ts +13 -0
  99. package/dist/types/demo/services/mockWorkspaceDeploymentsApi.d.ts +14 -0
  100. package/dist/types/demo/services/mockWorkspaceFlowRunsApi.d.ts +16 -0
  101. package/dist/types/demo/services/mockWorkspaceFlowsApi.d.ts +10 -0
  102. package/dist/types/demo/services/mockWorkspaceTaskRunsApi.d.ts +11 -0
  103. package/dist/types/demo/services/mockWorkspaceWorkPoolQueuesApi.d.ts +13 -0
  104. package/dist/types/demo/services/mockWorkspaceWorkPoolWorkerApi.d.ts +6 -0
  105. package/dist/types/demo/services/mockWorkspaceWorkPoolsApi.d.ts +15 -0
  106. package/dist/types/demo/services/mockWorkspaceWorkQueuesApi.d.ts +16 -0
  107. package/dist/types/demo/types/demoSection.d.ts +4 -0
  108. package/dist/types/demo/types/flowRunGraphMock.d.ts +5 -0
  109. package/dist/types/demo/utilities/api.d.ts +21 -0
  110. package/dist/types/demo/utilities/colorMode.d.ts +2 -0
  111. package/dist/types/demo/utilities/data.d.ts +38 -0
  112. package/dist/types/src/components/ActivityChart.vue.d.ts +22 -0
  113. package/dist/types/src/components/BetaBadge.vue.d.ts +2 -0
  114. package/dist/types/src/components/BlockCapabilityBlockDocumentInput.vue.d.ts +21 -0
  115. package/dist/types/src/components/BlockDocument.vue.d.ts +24 -0
  116. package/dist/types/src/components/BlockDocumentCard.vue.d.ts +16 -0
  117. package/dist/types/src/components/BlockDocumentInput.vue.d.ts +21 -0
  118. package/dist/types/src/components/BlockDocumentKeyValue.vue.d.ts +15 -0
  119. package/dist/types/src/components/BlockDocumentMenu.vue.d.ts +20 -0
  120. package/dist/types/src/components/BlockDocumentsSelect.vue.d.ts +29 -0
  121. package/dist/types/src/components/BlockDocumentsTable.vue.d.ts +20 -0
  122. package/dist/types/src/components/BlockIconText.vue.d.ts +15 -0
  123. package/dist/types/src/components/BlockSchemaCapabilities.vue.d.ts +17 -0
  124. package/dist/types/src/components/BlockSchemaCapabilitySelect.vue.d.ts +19 -0
  125. package/dist/types/src/components/BlockSchemaCreateForm.vue.d.ts +24 -0
  126. package/dist/types/src/components/BlockSchemaEditForm.vue.d.ts +29 -0
  127. package/dist/types/src/components/BlockTypeCard.vue.d.ts +23 -0
  128. package/dist/types/src/components/BlockTypeCardLayout.vue.d.ts +23 -0
  129. package/dist/types/src/components/BlockTypeCardPreview.vue.d.ts +23 -0
  130. package/dist/types/src/components/BlockTypeList.vue.d.ts +22 -0
  131. package/dist/types/src/components/BlockTypeSelect.vue.d.ts +19 -0
  132. package/dist/types/src/components/BlockTypeSnippet.vue.d.ts +17 -0
  133. package/dist/types/src/components/BlocksPageEmptyState.vue.d.ts +2 -0
  134. package/dist/types/src/components/CodeBanner.vue.d.ts +27 -0
  135. package/dist/types/src/components/CodeHighlighting.vue.d.ts +19 -0
  136. package/dist/types/src/components/CodeLines.vue.d.ts +17 -0
  137. package/dist/types/src/components/CodeSnippet.vue.d.ts +19 -0
  138. package/dist/types/src/components/ColorModeSelect.vue.d.ts +19 -0
  139. package/dist/types/src/components/ColorModeSelectOption.vue.d.ts +16 -0
  140. package/dist/types/src/components/ConcurrencyLimitActiveRuns.vue.d.ts +15 -0
  141. package/dist/types/src/components/ConcurrencyLimitDetails.vue.d.ts +18 -0
  142. package/dist/types/src/components/ConcurrencyLimitMenu.vue.d.ts +20 -0
  143. package/dist/types/src/components/ConcurrencyLimitsCreateModal.vue.d.ts +26 -0
  144. package/dist/types/src/components/ConcurrencyLimitsPageEmptyState.vue.d.ts +2 -0
  145. package/dist/types/src/components/ConcurrencyLimitsTable.vue.d.ts +2 -0
  146. package/dist/types/src/components/ConcurrencyTableActiveSlots.vue.d.ts +15 -0
  147. package/dist/types/src/components/ConfirmDeleteModal.vue.d.ts +54 -0
  148. package/dist/types/src/components/ConfirmDeleteModalWithSlot.vue.d.ts +8 -0
  149. package/dist/types/src/components/ConfirmStateChangeModal.vue.d.ts +46 -0
  150. package/dist/types/src/components/CopyOverflowMenuItem.vue.d.ts +17 -0
  151. package/dist/types/src/components/CronScheduleForm.vue.d.ts +51 -0
  152. package/dist/types/src/components/DateInput.vue.d.ts +35 -0
  153. package/dist/types/src/components/DateRangeInput.vue.d.ts +34 -0
  154. package/dist/types/src/components/DateRangeInputWithFlowRunHistory.vue.d.ts +2 -0
  155. package/dist/types/src/components/DayOrDescriptionModal.vue.d.ts +2 -0
  156. package/dist/types/src/components/DeploymentCombobox.vue.d.ts +42 -0
  157. package/dist/types/src/components/DeploymentComboboxOption.vue.d.ts +17 -0
  158. package/dist/types/src/components/DeploymentCustomRunOverflowMenuItem.vue.d.ts +22 -0
  159. package/dist/types/src/components/DeploymentDeprecatedMessage.vue.d.ts +2 -0
  160. package/dist/types/src/components/DeploymentDescription.vue.d.ts +15 -0
  161. package/dist/types/src/components/DeploymentDescriptionEmptyState.vue.d.ts +16 -0
  162. package/dist/types/src/components/DeploymentDetails.vue.d.ts +22 -0
  163. package/dist/types/src/components/DeploymentForm.vue.d.ts +23 -0
  164. package/dist/types/src/components/DeploymentIconText.vue.d.ts +15 -0
  165. package/dist/types/src/components/DeploymentMenu.vue.d.ts +22 -0
  166. package/dist/types/src/components/DeploymentQuickRunOverflowMenuItem.vue.d.ts +22 -0
  167. package/dist/types/src/components/DeploymentToggle.vue.d.ts +20 -0
  168. package/dist/types/src/components/DeploymentsCount.vue.d.ts +15 -0
  169. package/dist/types/src/components/DeploymentsDeleteButton.vue.d.ts +19 -0
  170. package/dist/types/src/components/DeploymentsPageEmptyState.vue.d.ts +2 -0
  171. package/dist/types/src/components/DeploymentsTable.vue.d.ts +20 -0
  172. package/dist/types/src/components/DocumentationButton.vue.d.ts +22 -0
  173. package/dist/types/src/components/DurationIconText.vue.d.ts +15 -0
  174. package/dist/types/src/components/ExtraInfoModal.vue.d.ts +19 -0
  175. package/dist/types/src/components/FlowActivityChart.vue.d.ts +16 -0
  176. package/dist/types/src/components/FlowCombobox.vue.d.ts +36 -0
  177. package/dist/types/src/components/FlowDetails.vue.d.ts +18 -0
  178. package/dist/types/src/components/FlowIconText.vue.d.ts +15 -0
  179. package/dist/types/src/components/FlowMenu.vue.d.ts +29 -0
  180. package/dist/types/src/components/FlowRouterLink.vue.d.ts +27 -0
  181. package/dist/types/src/components/FlowRunCancelButton.vue.d.ts +16 -0
  182. package/dist/types/src/components/FlowRunCancelModal.vue.d.ts +24 -0
  183. package/dist/types/src/components/FlowRunCreateForm.vue.d.ts +25 -0
  184. package/dist/types/src/components/FlowRunDetails.vue.d.ts +20 -0
  185. package/dist/types/src/components/FlowRunFilteredList.vue.d.ts +24 -0
  186. package/dist/types/src/components/FlowRunIconText.vue.d.ts +15 -0
  187. package/dist/types/src/components/FlowRunList.vue.d.ts +24 -0
  188. package/dist/types/src/components/FlowRunListItem.vue.d.ts +25 -0
  189. package/dist/types/src/components/FlowRunLogs.vue.d.ts +16 -0
  190. package/dist/types/src/components/FlowRunMenu.vue.d.ts +19 -0
  191. package/dist/types/src/components/FlowRunPauseButton.vue.d.ts +16 -0
  192. package/dist/types/src/components/FlowRunPauseModal.vue.d.ts +21 -0
  193. package/dist/types/src/components/FlowRunPopOver.vue.d.ts +15 -0
  194. package/dist/types/src/components/FlowRunPopOverContent.vue.d.ts +15 -0
  195. package/dist/types/src/components/FlowRunResumeButton.vue.d.ts +16 -0
  196. package/dist/types/src/components/FlowRunResumeModal.vue.d.ts +21 -0
  197. package/dist/types/src/components/FlowRunRetryButton.vue.d.ts +16 -0
  198. package/dist/types/src/components/FlowRunRetryModal.vue.d.ts +27 -0
  199. package/dist/types/src/components/FlowRunStartTime.vue.d.ts +16 -0
  200. package/dist/types/src/components/FlowRunSubFlows.vue.d.ts +15 -0
  201. package/dist/types/src/components/FlowRunTagsInput.vue.d.ts +24 -0
  202. package/dist/types/src/components/FlowRunTaskCount.vue.d.ts +24 -0
  203. package/dist/types/src/components/FlowRunTaskRuns.vue.d.ts +15 -0
  204. package/dist/types/src/components/FlowRunTimeline.vue.d.ts +16 -0
  205. package/dist/types/src/components/FlowRunTimelineOptions.vue.d.ts +25 -0
  206. package/dist/types/src/components/FlowRunsDeleteButton.vue.d.ts +19 -0
  207. package/dist/types/src/components/FlowRunsFilterGroup.vue.d.ts +2 -0
  208. package/dist/types/src/components/FlowRunsPageEmptyState.vue.d.ts +2 -0
  209. package/dist/types/src/components/FlowRunsScatterPlot.vue.d.ts +20 -0
  210. package/dist/types/src/components/FlowRunsSort.vue.d.ts +20 -0
  211. package/dist/types/src/components/FlowsDeleteButton.vue.d.ts +19 -0
  212. package/dist/types/src/components/FlowsPageEmptyState.vue.d.ts +2 -0
  213. package/dist/types/src/components/FlowsTable.vue.d.ts +20 -0
  214. package/dist/types/src/components/FourZeroFour.vue.d.ts +11 -0
  215. package/dist/types/src/components/HelpIconModal.vue.d.ts +25 -0
  216. package/dist/types/src/components/IntervalScheduleForm.vue.d.ts +51 -0
  217. package/dist/types/src/components/JsonInput.vue.d.ts +26 -0
  218. package/dist/types/src/components/LogLevelLabel.vue.d.ts +16 -0
  219. package/dist/types/src/components/LogLevelSelect.vue.d.ts +20 -0
  220. package/dist/types/src/components/LogRow.vue.d.ts +16 -0
  221. package/dist/types/src/components/LogoImage.vue.d.ts +28 -0
  222. package/dist/types/src/components/LogsContainer.vue.d.ts +27 -0
  223. package/dist/types/src/components/LogsSort.vue.d.ts +20 -0
  224. package/dist/types/src/components/MarketingBanner.vue.d.ts +27 -0
  225. package/dist/types/src/components/NotificationDetails.vue.d.ts +21 -0
  226. package/dist/types/src/components/NotificationForm.vue.d.ts +29 -0
  227. package/dist/types/src/components/NotificationMenu.vue.d.ts +20 -0
  228. package/dist/types/src/components/NotificationStatusSelect.vue.d.ts +20 -0
  229. package/dist/types/src/components/NotificationToggle.vue.d.ts +20 -0
  230. package/dist/types/src/components/NotificationsPageEmptyState.vue.d.ts +2 -0
  231. package/dist/types/src/components/NotificationsTable.vue.d.ts +23 -0
  232. package/dist/types/src/components/PageHeading.vue.d.ts +33 -0
  233. package/dist/types/src/components/PageHeadingAccountSettings.vue.d.ts +2 -0
  234. package/dist/types/src/components/PageHeadingApiKeys.vue.d.ts +2 -0
  235. package/dist/types/src/components/PageHeadingBlock.vue.d.ts +20 -0
  236. package/dist/types/src/components/PageHeadingBlockEdit.vue.d.ts +16 -0
  237. package/dist/types/src/components/PageHeadingBlocks.vue.d.ts +2 -0
  238. package/dist/types/src/components/PageHeadingBlocksCatalog.vue.d.ts +2 -0
  239. package/dist/types/src/components/PageHeadingBlocksCatalogCreate.vue.d.ts +16 -0
  240. package/dist/types/src/components/PageHeadingBlocksCatalogView.vue.d.ts +16 -0
  241. package/dist/types/src/components/PageHeadingConcurrencyLimit.vue.d.ts +16 -0
  242. package/dist/types/src/components/PageHeadingConcurrencyLimits.vue.d.ts +2 -0
  243. package/dist/types/src/components/PageHeadingDeployment.vue.d.ts +23 -0
  244. package/dist/types/src/components/PageHeadingDeploymentEdit.vue.d.ts +16 -0
  245. package/dist/types/src/components/PageHeadingDeployments.vue.d.ts +2 -0
  246. package/dist/types/src/components/PageHeadingFlow.vue.d.ts +20 -0
  247. package/dist/types/src/components/PageHeadingFlowRun.vue.d.ts +19 -0
  248. package/dist/types/src/components/PageHeadingFlowRunCreate.vue.d.ts +16 -0
  249. package/dist/types/src/components/PageHeadingFlowRunRadar.vue.d.ts +18 -0
  250. package/dist/types/src/components/PageHeadingFlowRuns.vue.d.ts +15 -0
  251. package/dist/types/src/components/PageHeadingFlows.vue.d.ts +2 -0
  252. package/dist/types/src/components/PageHeadingNotificationCreate.vue.d.ts +2 -0
  253. package/dist/types/src/components/PageHeadingNotificationEdit.vue.d.ts +2 -0
  254. package/dist/types/src/components/PageHeadingNotifications.vue.d.ts +2 -0
  255. package/dist/types/src/components/PageHeadingTaskRun.vue.d.ts +17 -0
  256. package/dist/types/src/components/PageHeadingWorkPool.vue.d.ts +23 -0
  257. package/dist/types/src/components/PageHeadingWorkPoolCreate.vue.d.ts +2 -0
  258. package/dist/types/src/components/PageHeadingWorkPoolEdit.vue.d.ts +16 -0
  259. package/dist/types/src/components/PageHeadingWorkPoolQueue.vue.d.ts +25 -0
  260. package/dist/types/src/components/PageHeadingWorkPoolQueueCreate.vue.d.ts +15 -0
  261. package/dist/types/src/components/PageHeadingWorkPoolQueueEdit.vue.d.ts +17 -0
  262. package/dist/types/src/components/PageHeadingWorkPools.vue.d.ts +2 -0
  263. package/dist/types/src/components/PageHeadingWorkQueue.vue.d.ts +23 -0
  264. package/dist/types/src/components/PageHeadingWorkQueueCreate.vue.d.ts +2 -0
  265. package/dist/types/src/components/PageHeadingWorkQueueEdit.vue.d.ts +16 -0
  266. package/dist/types/src/components/PageHeadingWorkQueues.vue.d.ts +2 -0
  267. package/dist/types/src/components/PageHeadingWorkspaceSettings.vue.d.ts +2 -0
  268. package/dist/types/src/components/ParametersTable.vue.d.ts +16 -0
  269. package/dist/types/src/components/ProcessTypeBadge.vue.d.ts +15 -0
  270. package/dist/types/src/components/PythonInput.vue.d.ts +24 -0
  271. package/dist/types/src/components/RadarApp.vue.d.ts +15 -0
  272. package/dist/types/src/components/RadarNode.vue.d.ts +66 -0
  273. package/dist/types/src/components/RadarNodeFlowRun.vue.d.ts +16 -0
  274. package/dist/types/src/components/RadarNodePlaceholder.vue.d.ts +2 -0
  275. package/dist/types/src/components/RadarNodeSubFlowRun.vue.d.ts +16 -0
  276. package/dist/types/src/components/RadarNodeTaskRun.vue.d.ts +16 -0
  277. package/dist/types/src/components/RadarSmall.vue.d.ts +15 -0
  278. package/dist/types/src/components/ResultsCount.vue.d.ts +28 -0
  279. package/dist/types/src/components/RunMenu.vue.d.ts +16 -0
  280. package/dist/types/src/components/SaveFilterModal.vue.d.ts +30 -0
  281. package/dist/types/src/components/SavedFilters.vue.d.ts +2 -0
  282. package/dist/types/src/components/SavedFiltersDeleteModal.vue.d.ts +25 -0
  283. package/dist/types/src/components/SavedFiltersMenu.vue.d.ts +20 -0
  284. package/dist/types/src/components/ScheduleFieldset.vue.d.ts +22 -0
  285. package/dist/types/src/components/ScheduleFormModal.vue.d.ts +30 -0
  286. package/dist/types/src/components/SchemaForm.vue.d.ts +25 -0
  287. package/dist/types/src/components/SchemaFormFields.vue.d.ts +18 -0
  288. package/dist/types/src/components/SchemaFormInput.vue.d.ts +18 -0
  289. package/dist/types/src/components/SchemaFormProperties.vue.d.ts +18 -0
  290. package/dist/types/src/components/SchemaFormProperty.vue.d.ts +18 -0
  291. package/dist/types/src/components/SchemaFormPropertyAllOf.vue.d.ts +18 -0
  292. package/dist/types/src/components/SchemaFormPropertyAnyOf.vue.d.ts +18 -0
  293. package/dist/types/src/components/SchemaPropertiesKeyValues.vue.d.ts +18 -0
  294. package/dist/types/src/components/SchemaPropertyBlockKeyValue.vue.d.ts +19 -0
  295. package/dist/types/src/components/SchemaPropertyKeyValue.vue.d.ts +18 -0
  296. package/dist/types/src/components/SearchInput.vue.d.ts +37 -0
  297. package/dist/types/src/components/SelectedCount.vue.d.ts +28 -0
  298. package/dist/types/src/components/SeparatedList.vue.d.ts +24 -0
  299. package/dist/types/src/components/StateBadge.vue.d.ts +26 -0
  300. package/dist/types/src/components/StateIcon.vue.d.ts +30 -0
  301. package/dist/types/src/components/StateListItem.vue.d.ts +37 -0
  302. package/dist/types/src/components/StateNameSelect.vue.d.ts +21 -0
  303. package/dist/types/src/components/StateSelect.vue.d.ts +23 -0
  304. package/dist/types/src/components/SubmitButton.vue.d.ts +27 -0
  305. package/dist/types/src/components/TaskRunDetails.vue.d.ts +18 -0
  306. package/dist/types/src/components/TaskRunList.vue.d.ts +24 -0
  307. package/dist/types/src/components/TaskRunListItem.vue.d.ts +25 -0
  308. package/dist/types/src/components/TaskRunLogs.vue.d.ts +16 -0
  309. package/dist/types/src/components/TaskRunPanel.vue.d.ts +19 -0
  310. package/dist/types/src/components/TaskRunsSort.vue.d.ts +20 -0
  311. package/dist/types/src/components/TimezoneSelect.vue.d.ts +28 -0
  312. package/dist/types/src/components/ToastFlowRunCreate.vue.d.ts +26 -0
  313. package/dist/types/src/components/WorkPoolCard.vue.d.ts +20 -0
  314. package/dist/types/src/components/WorkPoolCombobox.vue.d.ts +36 -0
  315. package/dist/types/src/components/WorkPoolCreateForm.vue.d.ts +2 -0
  316. package/dist/types/src/components/WorkPoolDetails.vue.d.ts +18 -0
  317. package/dist/types/src/components/WorkPoolEditForm.vue.d.ts +16 -0
  318. package/dist/types/src/components/WorkPoolIconText.vue.d.ts +15 -0
  319. package/dist/types/src/components/WorkPoolLateIndicator.vue.d.ts +15 -0
  320. package/dist/types/src/components/WorkPoolList.vue.d.ts +23 -0
  321. package/dist/types/src/components/WorkPoolMenu.vue.d.ts +20 -0
  322. package/dist/types/src/components/WorkPoolQueueCombobox.vue.d.ts +38 -0
  323. package/dist/types/src/components/WorkPoolQueueCreateForm.vue.d.ts +15 -0
  324. package/dist/types/src/components/WorkPoolQueueDetails.vue.d.ts +20 -0
  325. package/dist/types/src/components/WorkPoolQueueEditForm.vue.d.ts +18 -0
  326. package/dist/types/src/components/WorkPoolQueueMenu.vue.d.ts +22 -0
  327. package/dist/types/src/components/WorkPoolQueuePriorityLabel.vue.d.ts +2 -0
  328. package/dist/types/src/components/WorkPoolQueueToggle.vue.d.ts +22 -0
  329. package/dist/types/src/components/WorkPoolQueueUpcomingFlowRunsList.vue.d.ts +18 -0
  330. package/dist/types/src/components/WorkPoolQueuesDeleteButton.vue.d.ts +22 -0
  331. package/dist/types/src/components/WorkPoolQueuesTable.vue.d.ts +15 -0
  332. package/dist/types/src/components/WorkPoolToggle.vue.d.ts +20 -0
  333. package/dist/types/src/components/WorkPoolTypeSelect.vue.d.ts +19 -0
  334. package/dist/types/src/components/WorkPools.vue.d.ts +6 -0
  335. package/dist/types/src/components/WorkPoolsPageEmptyState.vue.d.ts +2 -0
  336. package/dist/types/src/components/WorkQueueCombobox.vue.d.ts +36 -0
  337. package/dist/types/src/components/WorkQueueCreateForm.vue.d.ts +10 -0
  338. package/dist/types/src/components/WorkQueueDetails.vue.d.ts +18 -0
  339. package/dist/types/src/components/WorkQueueEditForm.vue.d.ts +31 -0
  340. package/dist/types/src/components/WorkQueueFlowRunsList.vue.d.ts +16 -0
  341. package/dist/types/src/components/WorkQueueIconText.vue.d.ts +19 -0
  342. package/dist/types/src/components/WorkQueueLastPolled.vue.d.ts +15 -0
  343. package/dist/types/src/components/WorkQueueLateIndicator.vue.d.ts +15 -0
  344. package/dist/types/src/components/WorkQueueMenu.vue.d.ts +29 -0
  345. package/dist/types/src/components/WorkQueueStatusBadge.vue.d.ts +16 -0
  346. package/dist/types/src/components/WorkQueueStatusIcon.vue.d.ts +15 -0
  347. package/dist/types/src/components/WorkQueueToggle.vue.d.ts +20 -0
  348. package/dist/types/src/components/WorkQueuesDeleteButton.vue.d.ts +20 -0
  349. package/dist/types/src/components/WorkQueuesPageEmptyState.vue.d.ts +2 -0
  350. package/dist/types/src/components/WorkQueuesTable.vue.d.ts +23 -0
  351. package/dist/types/src/components/WorkersLateIndicator.vue.d.ts +17 -0
  352. package/dist/types/src/components/WorkersTable.vue.d.ts +15 -0
  353. package/dist/types/src/components/index.d.ts +238 -0
  354. package/dist/types/src/compositions/index.d.ts +27 -0
  355. package/dist/types/src/compositions/useBlockDocument.d.ts +3 -0
  356. package/dist/types/src/compositions/useBlockSchema.d.ts +4 -0
  357. package/dist/types/src/compositions/useBlockType.d.ts +4 -0
  358. package/dist/types/src/compositions/useCan.d.ts +2 -0
  359. package/dist/types/src/compositions/useComponent.d.ts +14 -0
  360. package/dist/types/src/compositions/useDeployment.d.ts +3 -0
  361. package/dist/types/src/compositions/useDeploymentFilter.d.ts +15 -0
  362. package/dist/types/src/compositions/useFavicon.d.ts +3 -0
  363. package/dist/types/src/compositions/useFilter.d.ts +22 -0
  364. package/dist/types/src/compositions/useFlow.d.ts +3 -0
  365. package/dist/types/src/compositions/useFlowFilter.d.ts +13 -0
  366. package/dist/types/src/compositions/useFlowRun.d.ts +3 -0
  367. package/dist/types/src/compositions/useFlowRunFilter.d.ts +7 -0
  368. package/dist/types/src/compositions/useFlowRunFilterFromRoute.d.ts +23 -0
  369. package/dist/types/src/compositions/useForm.d.ts +2 -0
  370. package/dist/types/src/compositions/useOptionalRules.d.ts +5 -0
  371. package/dist/types/src/compositions/usePaginatedSubscription.d.ts +10 -0
  372. package/dist/types/src/compositions/useReactiveField.d.ts +3 -0
  373. package/dist/types/src/compositions/useReactiveForm.d.ts +3 -0
  374. package/dist/types/src/compositions/useScrollLinking.d.ts +22 -0
  375. package/dist/types/src/compositions/useShowModal.d.ts +10 -0
  376. package/dist/types/src/compositions/useTabs.d.ts +6 -0
  377. package/dist/types/src/compositions/useTaskRun.d.ts +3 -0
  378. package/dist/types/src/compositions/useTaskRunsCount.d.ts +2 -0
  379. package/dist/types/src/compositions/useWorkQueueStatus.d.ts +3 -0
  380. package/dist/types/src/compositions/useWorkspaceApi.d.ts +2 -0
  381. package/dist/types/src/compositions/useWorkspaceRoutes.d.ts +253 -0
  382. package/dist/types/src/index.d.ts +17 -0
  383. package/dist/types/src/localization/index.d.ts +93 -0
  384. package/dist/types/src/localization/locale/en.d.ts +93 -0
  385. package/dist/types/src/maps/blockDocument.d.ts +6 -0
  386. package/dist/types/src/maps/blockDocumentCreate.d.ts +4 -0
  387. package/dist/types/src/maps/blockDocumentFilter.d.ts +4 -0
  388. package/dist/types/src/maps/blockDocumentReferences.d.ts +3 -0
  389. package/dist/types/src/maps/blockDocumentUpdate.d.ts +4 -0
  390. package/dist/types/src/maps/blockSchema.d.ts +4 -0
  391. package/dist/types/src/maps/blockSchemaFilter.d.ts +4 -0
  392. package/dist/types/src/maps/blockSchemaReferences.d.ts +4 -0
  393. package/dist/types/src/maps/blockType.d.ts +4 -0
  394. package/dist/types/src/maps/blockTypeFilter.d.ts +4 -0
  395. package/dist/types/src/maps/concurrencyLimit.d.ts +4 -0
  396. package/dist/types/src/maps/concurrencyLimitCreate.d.ts +4 -0
  397. package/dist/types/src/maps/createdOrUpdatedBy.d.ts +4 -0
  398. package/dist/types/src/maps/date.d.ts +3 -0
  399. package/dist/types/src/maps/deployment.d.ts +7 -0
  400. package/dist/types/src/maps/divergingBarChartItem.d.ts +4 -0
  401. package/dist/types/src/maps/empiricalPolicy.d.ts +7 -0
  402. package/dist/types/src/maps/flow.d.ts +5 -0
  403. package/dist/types/src/maps/flowRun.d.ts +4 -0
  404. package/dist/types/src/maps/flowRunFilter.d.ts +4 -0
  405. package/dist/types/src/maps/flowRunGraph.d.ts +5 -0
  406. package/dist/types/src/maps/flowRunHistory.d.ts +5 -0
  407. package/dist/types/src/maps/flowRunTimeline.d.ts +4 -0
  408. package/dist/types/src/maps/index.d.ts +347 -0
  409. package/dist/types/src/maps/logs.d.ts +5 -0
  410. package/dist/types/src/maps/notification.d.ts +4 -0
  411. package/dist/types/src/maps/notificationCreate.d.ts +4 -0
  412. package/dist/types/src/maps/notificationUpdate.d.ts +4 -0
  413. package/dist/types/src/maps/number.d.ts +3 -0
  414. package/dist/types/src/maps/savedSearch.d.ts +4 -0
  415. package/dist/types/src/maps/savedSearchCreate.d.ts +4 -0
  416. package/dist/types/src/maps/scatterPlotItem.d.ts +10 -0
  417. package/dist/types/src/maps/schedule.d.ts +5 -0
  418. package/dist/types/src/maps/schema.d.ts +7 -0
  419. package/dist/types/src/maps/schemaValuesRequest.d.ts +8 -0
  420. package/dist/types/src/maps/schemaValuesResponse.d.ts +10 -0
  421. package/dist/types/src/maps/state.d.ts +7 -0
  422. package/dist/types/src/maps/stateDetails.d.ts +9 -0
  423. package/dist/types/src/maps/stateHistory.d.ts +5 -0
  424. package/dist/types/src/maps/stateType.d.ts +4 -0
  425. package/dist/types/src/maps/stateUpdate.d.ts +3 -0
  426. package/dist/types/src/maps/taskInput.d.ts +5 -0
  427. package/dist/types/src/maps/taskRun.d.ts +5 -0
  428. package/dist/types/src/maps/uiFlowRunHistory.d.ts +4 -0
  429. package/dist/types/src/maps/workPool.d.ts +6 -0
  430. package/dist/types/src/maps/workPoolQueue.d.ts +6 -0
  431. package/dist/types/src/maps/workPoolWorker.d.ts +4 -0
  432. package/dist/types/src/maps/workQueue.d.ts +6 -0
  433. package/dist/types/src/maps/workQueueFilter.d.ts +5 -0
  434. package/dist/types/src/maps/workQueueHealthPolicy.d.ts +3 -0
  435. package/dist/types/src/maps/workQueueStatus.d.ts +3 -0
  436. package/dist/types/src/maps/workerScheduledFlowRun.d.ts +4 -0
  437. package/dist/types/src/mocks/UiFlowRunHistory.d.ts +3 -0
  438. package/dist/types/src/mocks/any.d.ts +2 -0
  439. package/dist/types/src/mocks/blockDocument.d.ts +3 -0
  440. package/dist/types/src/mocks/blockDocumentData.d.ts +5 -0
  441. package/dist/types/src/mocks/blockSchema.d.ts +3 -0
  442. package/dist/types/src/mocks/blockSchemaCapabilities.d.ts +2 -0
  443. package/dist/types/src/mocks/blockSchemaCapability.d.ts +2 -0
  444. package/dist/types/src/mocks/blockType.d.ts +3 -0
  445. package/dist/types/src/mocks/blockTypeSnippet.d.ts +2 -0
  446. package/dist/types/src/mocks/boolean.d.ts +2 -0
  447. package/dist/types/src/mocks/concurrencyLimit.d.ts +3 -0
  448. package/dist/types/src/mocks/createdOrUpdatedBy.d.ts +3 -0
  449. package/dist/types/src/mocks/date.d.ts +4 -0
  450. package/dist/types/src/mocks/deployment.d.ts +3 -0
  451. package/dist/types/src/mocks/email.d.ts +2 -0
  452. package/dist/types/src/mocks/flow.d.ts +3 -0
  453. package/dist/types/src/mocks/flowResponse.d.ts +3 -0
  454. package/dist/types/src/mocks/flowRun.d.ts +3 -0
  455. package/dist/types/src/mocks/flowRunGraph.d.ts +15 -0
  456. package/dist/types/src/mocks/flowRunHistory.d.ts +3 -0
  457. package/dist/types/src/mocks/flowRunStateHistory.d.ts +3 -0
  458. package/dist/types/src/mocks/id.d.ts +2 -0
  459. package/dist/types/src/mocks/image.d.ts +7 -0
  460. package/dist/types/src/mocks/index.d.ts +60 -0
  461. package/dist/types/src/mocks/log.d.ts +4 -0
  462. package/dist/types/src/mocks/notification.d.ts +3 -0
  463. package/dist/types/src/mocks/notificationCreate.d.ts +3 -0
  464. package/dist/types/src/mocks/number.d.ts +2 -0
  465. package/dist/types/src/mocks/parameters.d.ts +3 -0
  466. package/dist/types/src/mocks/schedule.d.ts +7 -0
  467. package/dist/types/src/mocks/schemas.d.ts +5 -0
  468. package/dist/types/src/mocks/sentences/generateText.d.ts +4 -0
  469. package/dist/types/src/mocks/sentences/sample.d.ts +13 -0
  470. package/dist/types/src/mocks/sentences/utils.d.ts +7 -0
  471. package/dist/types/src/mocks/starnames/generateStarName.d.ts +2 -0
  472. package/dist/types/src/mocks/starnames/index.d.ts +4 -0
  473. package/dist/types/src/mocks/starnames/names.d.ts +2 -0
  474. package/dist/types/src/mocks/starnames/prefixes.d.ts +2 -0
  475. package/dist/types/src/mocks/starnames/suffixes.d.ts +2 -0
  476. package/dist/types/src/mocks/state.d.ts +3 -0
  477. package/dist/types/src/mocks/stateType.d.ts +3 -0
  478. package/dist/types/src/mocks/string.d.ts +10 -0
  479. package/dist/types/src/mocks/taskRun.d.ts +3 -0
  480. package/dist/types/src/mocks/url.d.ts +2 -0
  481. package/dist/types/src/mocks/workPool.d.ts +3 -0
  482. package/dist/types/src/mocks/workPoolQueue.d.ts +3 -0
  483. package/dist/types/src/mocks/workQueue.d.ts +5 -0
  484. package/dist/types/src/mocks/workQueueCreate.d.ts +3 -0
  485. package/dist/types/src/mocks/workQueueHealthPolicy.d.ts +3 -0
  486. package/dist/types/src/mocks/workQueueStatus.d.ts +3 -0
  487. package/dist/types/src/mocks/worker.d.ts +3 -0
  488. package/dist/types/src/models/ApiRouteParams.d.ts +7 -0
  489. package/dist/types/src/models/BlockDocument.d.ts +37 -0
  490. package/dist/types/src/models/BlockDocumentCreate.d.ts +12 -0
  491. package/dist/types/src/models/BlockDocumentFilter.d.ts +8 -0
  492. package/dist/types/src/models/BlockDocumentUpdate.d.ts +7 -0
  493. package/dist/types/src/models/BlockSchema.d.ts +23 -0
  494. package/dist/types/src/models/BlockSchemaFilter.d.ts +9 -0
  495. package/dist/types/src/models/BlockType.d.ts +23 -0
  496. package/dist/types/src/models/BlockTypeFilter.d.ts +9 -0
  497. package/dist/types/src/models/ConcurrencyLimit.d.ts +8 -0
  498. package/dist/types/src/models/ConcurrencyLimitCreate.d.ts +4 -0
  499. package/dist/types/src/models/ConcurrencyLimitsFilter.d.ts +4 -0
  500. package/dist/types/src/models/CreatedOrUpdatedBy.d.ts +6 -0
  501. package/dist/types/src/models/CronSchedule.d.ts +18 -0
  502. package/dist/types/src/models/CronStringLengthError.d.ts +3 -0
  503. package/dist/types/src/models/Deployment.d.ts +57 -0
  504. package/dist/types/src/models/DeploymentFlowRunCreate.d.ts +23 -0
  505. package/dist/types/src/models/DeploymentUpdate.d.ts +20 -0
  506. package/dist/types/src/models/EmpiricalPolicy.d.ts +13 -0
  507. package/dist/types/src/models/ExistingHandleError.d.ts +6 -0
  508. package/dist/types/src/models/FilterDateError.d.ts +3 -0
  509. package/dist/types/src/models/FilterPrefixError.d.ts +3 -0
  510. package/dist/types/src/models/FilterRelativeDateUnitError.d.ts +3 -0
  511. package/dist/types/src/models/Flow.d.ts +15 -0
  512. package/dist/types/src/models/FlowRun.d.ts +77 -0
  513. package/dist/types/src/models/FlowRunHistoryMap.d.ts +8 -0
  514. package/dist/types/src/models/GraphNode.d.ts +29 -0
  515. package/dist/types/src/models/ISchedule.d.ts +7 -0
  516. package/dist/types/src/models/IntervalSchedule.d.ts +27 -0
  517. package/dist/types/src/models/InvalidSchemaValueError.d.ts +3 -0
  518. package/dist/types/src/models/Log.d.ts +25 -0
  519. package/dist/types/src/models/NoSchemaPropertyDefaultValueError.d.ts +3 -0
  520. package/dist/types/src/models/Notification.d.ts +21 -0
  521. package/dist/types/src/models/NotificationCreate.d.ts +6 -0
  522. package/dist/types/src/models/NotificationUpdate.d.ts +6 -0
  523. package/dist/types/src/models/PublicCron.d.ts +15 -0
  524. package/dist/types/src/models/RRuleSchedule.d.ts +15 -0
  525. package/dist/types/src/models/RunHistory.d.ts +12 -0
  526. package/dist/types/src/models/SavedSearch.d.ts +24 -0
  527. package/dist/types/src/models/Schedule.d.ts +9 -0
  528. package/dist/types/src/models/ServerSettings.d.ts +42 -0
  529. package/dist/types/src/models/State.d.ts +11 -0
  530. package/dist/types/src/models/StateCreate.d.ts +9 -0
  531. package/dist/types/src/models/StateDetails.d.ts +10 -0
  532. package/dist/types/src/models/StateDetailsCreate.d.ts +8 -0
  533. package/dist/types/src/models/StateHistory.d.ts +16 -0
  534. package/dist/types/src/models/StateType.d.ts +13 -0
  535. package/dist/types/src/models/StateUpdate.d.ts +11 -0
  536. package/dist/types/src/models/TaskInput.d.ts +29 -0
  537. package/dist/types/src/models/TaskRun.d.ts +58 -0
  538. package/dist/types/src/models/TimelineNode.d.ts +15 -0
  539. package/dist/types/src/models/UiFlowRunHistory.d.ts +8 -0
  540. package/dist/types/src/models/WorkPool.d.ts +26 -0
  541. package/dist/types/src/models/WorkPoolCreate.d.ts +7 -0
  542. package/dist/types/src/models/WorkPoolEdit.d.ts +5 -0
  543. package/dist/types/src/models/WorkPoolQueue.d.ts +23 -0
  544. package/dist/types/src/models/WorkPoolQueueCreate.d.ts +7 -0
  545. package/dist/types/src/models/WorkPoolQueueEdit.d.ts +7 -0
  546. package/dist/types/src/models/WorkPoolWorker.d.ts +17 -0
  547. package/dist/types/src/models/WorkQueue.d.ts +27 -0
  548. package/dist/types/src/models/WorkQueueCreate.d.ts +6 -0
  549. package/dist/types/src/models/WorkQueueEdit.d.ts +5 -0
  550. package/dist/types/src/models/WorkQueueFilter.d.ts +9 -0
  551. package/dist/types/src/models/WorkQueueHealthPolicy.d.ts +4 -0
  552. package/dist/types/src/models/WorkQueueStatus.d.ts +14 -0
  553. package/dist/types/src/models/WorkerScheduledFlowRun.d.ts +6 -0
  554. package/dist/types/src/models/WorkerScheduledFlowRuns.d.ts +6 -0
  555. package/dist/types/src/models/api/BlockDocumentCreateRequest.d.ts +23 -0
  556. package/dist/types/src/models/api/BlockDocumentFilterRequest.d.ts +12 -0
  557. package/dist/types/src/models/api/BlockDocumentResponse.d.ts +25 -0
  558. package/dist/types/src/models/api/BlockDocumentUpdateRequest.d.ts +4 -0
  559. package/dist/types/src/models/api/BlockSchemaFilterRequest.d.ts +9 -0
  560. package/dist/types/src/models/api/BlockSchemaResponse.d.ts +12 -0
  561. package/dist/types/src/models/api/BlockTypeFilterRequest.d.ts +9 -0
  562. package/dist/types/src/models/api/BlockTypeResponse.d.ts +11 -0
  563. package/dist/types/src/models/api/ConcurrencyLimitCreateRequest.d.ts +4 -0
  564. package/dist/types/src/models/api/ConcurrencyLimitResponse.d.ts +8 -0
  565. package/dist/types/src/models/api/CreatedOrUpdatedByResponse.d.ts +6 -0
  566. package/dist/types/src/models/api/DeploymentFlowRunRequest.d.ts +13 -0
  567. package/dist/types/src/models/api/DeploymentResponse.d.ts +29 -0
  568. package/dist/types/src/models/api/DeploymentUpdateRequest.d.ts +15 -0
  569. package/dist/types/src/models/api/EmpiricalPolicyRequest.d.ts +6 -0
  570. package/dist/types/src/models/api/EmpiricalPolicyResponse.d.ts +6 -0
  571. package/dist/types/src/models/api/FlowResponse.d.ts +7 -0
  572. package/dist/types/src/models/api/FlowRunGraphResponse.d.ts +17 -0
  573. package/dist/types/src/models/api/FlowRunHistoryResponse.d.ts +6 -0
  574. package/dist/types/src/models/api/FlowRunResponse.d.ts +39 -0
  575. package/dist/types/src/models/api/LogResponse.d.ts +12 -0
  576. package/dist/types/src/models/api/LogsRequestFilter.d.ts +23 -0
  577. package/dist/types/src/models/api/NotificationCreateRequest.d.ts +6 -0
  578. package/dist/types/src/models/api/NotificationFilter.d.ts +5 -0
  579. package/dist/types/src/models/api/NotificationResponse.d.ts +9 -0
  580. package/dist/types/src/models/api/NotificationUpdateRequest.d.ts +6 -0
  581. package/dist/types/src/models/api/SavedSearchResponse.d.ts +19 -0
  582. package/dist/types/src/models/api/ScheduleRequest.d.ts +18 -0
  583. package/dist/types/src/models/api/ScheduleResponse.d.ts +18 -0
  584. package/dist/types/src/models/api/SchemaResponse.d.ts +41 -0
  585. package/dist/types/src/models/api/StateDetailsRequest.d.ts +11 -0
  586. package/dist/types/src/models/api/StateDetailsResponse.d.ts +11 -0
  587. package/dist/types/src/models/api/StateHistoryResponse.d.ts +8 -0
  588. package/dist/types/src/models/api/StateRequest.d.ts +9 -0
  589. package/dist/types/src/models/api/StateResponse.d.ts +11 -0
  590. package/dist/types/src/models/api/StateUpdateRequest.d.ts +11 -0
  591. package/dist/types/src/models/api/TaskInputResponse.d.ts +16 -0
  592. package/dist/types/src/models/api/TaskRunResponse.d.ts +31 -0
  593. package/dist/types/src/models/api/UiFlowRunHistoryResponse.d.ts +8 -0
  594. package/dist/types/src/models/api/WorkPoolQueueRequest.d.ts +14 -0
  595. package/dist/types/src/models/api/WorkPoolQueueResponse.d.ts +12 -0
  596. package/dist/types/src/models/api/WorkPoolRequest.d.ts +12 -0
  597. package/dist/types/src/models/api/WorkPoolResponse.d.ts +12 -0
  598. package/dist/types/src/models/api/WorkPoolWorkerFilter.d.ts +13 -0
  599. package/dist/types/src/models/api/WorkPoolWorkerResponse.d.ts +9 -0
  600. package/dist/types/src/models/api/WorkQueueFilterResponse.d.ts +4 -0
  601. package/dist/types/src/models/api/WorkQueueHealthPolicyResponse.d.ts +4 -0
  602. package/dist/types/src/models/api/WorkQueueRequest.d.ts +11 -0
  603. package/dist/types/src/models/api/WorkQueueResponse.d.ts +14 -0
  604. package/dist/types/src/models/api/WorkQueueStatusResponse.d.ts +9 -0
  605. package/dist/types/src/models/api/WorkerScheduledFlowRunResponse.d.ts +6 -0
  606. package/dist/types/src/models/api/WorkerScheduledFlowRunsRequest.d.ts +6 -0
  607. package/dist/types/src/models/api/index.d.ts +51 -0
  608. package/dist/types/src/models/index.d.ts +66 -0
  609. package/dist/types/src/router/index.d.ts +1 -0
  610. package/dist/types/src/router/routes.d.ts +277 -0
  611. package/dist/types/src/services/AdminApi.d.ts +7 -0
  612. package/dist/types/src/services/Api.d.ts +35 -0
  613. package/dist/types/src/services/BatchProcessor/BatchProcessor.d.ts +28 -0
  614. package/dist/types/src/services/BatchProcessor/index.d.ts +1 -0
  615. package/dist/types/src/services/HealthApi.d.ts +5 -0
  616. package/dist/types/src/services/Mapper.d.ts +373 -0
  617. package/dist/types/src/services/Mocker.d.ts +75 -0
  618. package/dist/types/src/services/RouteGuardExecutioner.d.ts +10 -0
  619. package/dist/types/src/services/SimpleIdManager.d.ts +4 -0
  620. package/dist/types/src/services/UiApi.d.ts +9 -0
  621. package/dist/types/src/services/WorkspaceApi.d.ts +27 -0
  622. package/dist/types/src/services/WorkspaceBlockCapabilitiesApi.d.ts +8 -0
  623. package/dist/types/src/services/WorkspaceBlockDocumentsApi.d.ts +20 -0
  624. package/dist/types/src/services/WorkspaceBlockSchemasApi.d.ts +14 -0
  625. package/dist/types/src/services/WorkspaceBlockTypesApi.d.ts +17 -0
  626. package/dist/types/src/services/WorkspaceConcurrencyLimitsApi.d.ts +21 -0
  627. package/dist/types/src/services/WorkspaceDeploymentsApi.d.ts +27 -0
  628. package/dist/types/src/services/WorkspaceFlowRunsApi.d.ts +32 -0
  629. package/dist/types/src/services/WorkspaceFlowsApi.d.ts +16 -0
  630. package/dist/types/src/services/WorkspaceLogsApi.d.ts +7 -0
  631. package/dist/types/src/services/WorkspaceNotificationsApi.d.ts +13 -0
  632. package/dist/types/src/services/WorkspaceSavedSearchesApi.d.ts +9 -0
  633. package/dist/types/src/services/WorkspaceTaskRunsApi.d.ts +19 -0
  634. package/dist/types/src/services/WorkspaceWorkPoolQueuesApi.d.ts +23 -0
  635. package/dist/types/src/services/WorkspaceWorkPoolWorkersApi.d.ts +9 -0
  636. package/dist/types/src/services/WorkspaceWorkPoolsApi.d.ts +26 -0
  637. package/dist/types/src/services/WorkspaceWorkQueuesApi.d.ts +29 -0
  638. package/dist/types/src/services/can.d.ts +14 -0
  639. package/dist/types/src/services/index.d.ts +26 -0
  640. package/dist/types/src/services/schemas/constants.d.ts +1 -0
  641. package/dist/types/src/services/schemas/index.d.ts +4 -0
  642. package/dist/types/src/services/schemas/properties/SchemaPropertyAny.d.ts +13 -0
  643. package/dist/types/src/services/schemas/properties/SchemaPropertyArray.d.ts +9 -0
  644. package/dist/types/src/services/schemas/properties/SchemaPropertyBlock.d.ts +10 -0
  645. package/dist/types/src/services/schemas/properties/SchemaPropertyBoolean.d.ts +9 -0
  646. package/dist/types/src/services/schemas/properties/SchemaPropertyInteger.d.ts +9 -0
  647. package/dist/types/src/services/schemas/properties/SchemaPropertyNull.d.ts +8 -0
  648. package/dist/types/src/services/schemas/properties/SchemaPropertyNumber.d.ts +10 -0
  649. package/dist/types/src/services/schemas/properties/SchemaPropertyObject.d.ts +11 -0
  650. package/dist/types/src/services/schemas/properties/SchemaPropertyService.d.ts +63 -0
  651. package/dist/types/src/services/schemas/properties/SchemaPropertyString.d.ts +15 -0
  652. package/dist/types/src/services/schemas/properties/factory.d.ts +3 -0
  653. package/dist/types/src/services/schemas/properties/index.d.ts +10 -0
  654. package/dist/types/src/services/schemas/resolvers/blockReferences.d.ts +3 -0
  655. package/dist/types/src/services/schemas/resolvers/definitions.d.ts +5 -0
  656. package/dist/types/src/services/schemas/resolvers/index.d.ts +3 -0
  657. package/dist/types/src/services/schemas/resolvers/meta.d.ts +2 -0
  658. package/dist/types/src/services/schemas/resolvers/schemas.d.ts +4 -0
  659. package/dist/types/src/services/schemas/utilities.d.ts +28 -0
  660. package/dist/types/src/types/ColorMode.d.ts +2 -0
  661. package/dist/types/src/types/RouteGuard.d.ts +7 -0
  662. package/dist/types/src/types/SortOptionTypes.d.ts +34 -0
  663. package/dist/types/src/types/UnionFilters.d.ts +131 -0
  664. package/dist/types/src/types/buttons.d.ts +1 -0
  665. package/dist/types/src/types/classes.d.ts +2 -0
  666. package/dist/types/src/types/cron.d.ts +33 -0
  667. package/dist/types/src/types/css.d.ts +1 -0
  668. package/dist/types/src/types/dates.d.ts +3 -0
  669. package/dist/types/src/types/filter.d.ts +30 -0
  670. package/dist/types/src/types/index.d.ts +14 -0
  671. package/dist/types/src/types/reactivity.d.ts +2 -0
  672. package/dist/types/src/types/schemas.d.ts +65 -0
  673. package/dist/types/src/types/states.d.ts +3 -0
  674. package/dist/types/src/types/tabs.d.ts +19 -0
  675. package/dist/types/src/types/tailwind.d.ts +1 -0
  676. package/dist/types/src/types/utilities.d.ts +7 -0
  677. package/dist/types/src/utilities/api.d.ts +38 -0
  678. package/dist/types/src/utilities/arrays.d.ts +19 -0
  679. package/dist/types/src/utilities/cache.d.ts +4 -0
  680. package/dist/types/src/utilities/colorMode.d.ts +4 -0
  681. package/dist/types/src/utilities/components.d.ts +19 -0
  682. package/dist/types/src/utilities/copy.d.ts +1 -0
  683. package/dist/types/src/utilities/dates.d.ts +14 -0
  684. package/dist/types/src/utilities/delete.d.ts +5 -0
  685. package/dist/types/src/utilities/httpStatus.d.ts +74 -0
  686. package/dist/types/src/utilities/index.d.ts +27 -0
  687. package/dist/types/src/utilities/inject.d.ts +2 -0
  688. package/dist/types/src/utilities/json.d.ts +7 -0
  689. package/dist/types/src/utilities/languageDefinitions/json.d.ts +3 -0
  690. package/dist/types/src/utilities/languageDefinitions/python.d.ts +2 -0
  691. package/dist/types/src/utilities/logs.d.ts +2 -0
  692. package/dist/types/src/utilities/math.d.ts +6 -0
  693. package/dist/types/src/utilities/numbers.d.ts +1 -0
  694. package/dist/types/src/utilities/object.d.ts +9 -0
  695. package/dist/types/src/utilities/parameters.d.ts +4 -0
  696. package/dist/types/src/utilities/processTypes.d.ts +1 -0
  697. package/dist/types/src/utilities/routes.d.ts +5 -0
  698. package/dist/types/src/utilities/savedFilters.d.ts +8 -0
  699. package/dist/types/src/utilities/seconds.d.ts +9 -0
  700. package/dist/types/src/utilities/state.d.ts +6 -0
  701. package/dist/types/src/utilities/strings.d.ts +12 -0
  702. package/dist/types/src/utilities/subscriptions.d.ts +11 -0
  703. package/dist/types/src/utilities/timeIntervals.d.ts +4 -0
  704. package/dist/types/src/utilities/timezone.d.ts +434 -0
  705. package/dist/types/src/utilities/validation.d.ts +30 -0
  706. package/dist/types/src/utilities/variables.d.ts +3 -0
  707. package/dist/types/vite.config.d.ts +2 -0
  708. package/dist/viewport.es-a6380c41-3517fd0a.mjs +1537 -0
  709. package/dist/viewport.es-a6380c41-3517fd0a.mjs.map +1 -0
  710. package/package.json +78 -0
@@ -0,0 +1,1537 @@
1
+ import { h as c, q as b, L as O, E as k } from "./index-5e1667e6.mjs";
2
+ import "vue";
3
+ import "@prefecthq/vue-compositions";
4
+ import "@prefecthq/prefect-design";
5
+ import "vue-router";
6
+ import "vee-validate";
7
+ class d {
8
+ constructor(t) {
9
+ this.parent = t, this.paused = !1;
10
+ }
11
+ destroy() {
12
+ }
13
+ down(t) {
14
+ return !1;
15
+ }
16
+ move(t) {
17
+ return !1;
18
+ }
19
+ up(t) {
20
+ return !1;
21
+ }
22
+ wheel(t) {
23
+ return !1;
24
+ }
25
+ update(t) {
26
+ }
27
+ resize() {
28
+ }
29
+ reset() {
30
+ }
31
+ pause() {
32
+ this.paused = !0;
33
+ }
34
+ resume() {
35
+ this.paused = !1;
36
+ }
37
+ }
38
+ var z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
39
+ function I(p, t, e) {
40
+ return e = {
41
+ path: t,
42
+ exports: {},
43
+ require: function(n, i) {
44
+ return P(n, i ?? e.path);
45
+ }
46
+ }, p(e, e.exports), e.exports;
47
+ }
48
+ function P() {
49
+ throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
50
+ }
51
+ var S = I(function(p, t) {
52
+ (function() {
53
+ var e, n;
54
+ n = function(i) {
55
+ return p.exports = i;
56
+ }, e = {
57
+ linear: function(i, s, h, o) {
58
+ return h * i / o + s;
59
+ },
60
+ easeInQuad: function(i, s, h, o) {
61
+ return h * (i /= o) * i + s;
62
+ },
63
+ easeOutQuad: function(i, s, h, o) {
64
+ return -h * (i /= o) * (i - 2) + s;
65
+ },
66
+ easeInOutQuad: function(i, s, h, o) {
67
+ return (i /= o / 2) < 1 ? h / 2 * i * i + s : -h / 2 * (--i * (i - 2) - 1) + s;
68
+ },
69
+ easeInCubic: function(i, s, h, o) {
70
+ return h * (i /= o) * i * i + s;
71
+ },
72
+ easeOutCubic: function(i, s, h, o) {
73
+ return h * ((i = i / o - 1) * i * i + 1) + s;
74
+ },
75
+ easeInOutCubic: function(i, s, h, o) {
76
+ return (i /= o / 2) < 1 ? h / 2 * i * i * i + s : h / 2 * ((i -= 2) * i * i + 2) + s;
77
+ },
78
+ easeInQuart: function(i, s, h, o) {
79
+ return h * (i /= o) * i * i * i + s;
80
+ },
81
+ easeOutQuart: function(i, s, h, o) {
82
+ return -h * ((i = i / o - 1) * i * i * i - 1) + s;
83
+ },
84
+ easeInOutQuart: function(i, s, h, o) {
85
+ return (i /= o / 2) < 1 ? h / 2 * i * i * i * i + s : -h / 2 * ((i -= 2) * i * i * i - 2) + s;
86
+ },
87
+ easeInQuint: function(i, s, h, o) {
88
+ return h * (i /= o) * i * i * i * i + s;
89
+ },
90
+ easeOutQuint: function(i, s, h, o) {
91
+ return h * ((i = i / o - 1) * i * i * i * i + 1) + s;
92
+ },
93
+ easeInOutQuint: function(i, s, h, o) {
94
+ return (i /= o / 2) < 1 ? h / 2 * i * i * i * i * i + s : h / 2 * ((i -= 2) * i * i * i * i + 2) + s;
95
+ },
96
+ easeInSine: function(i, s, h, o) {
97
+ return -h * Math.cos(i / o * (Math.PI / 2)) + h + s;
98
+ },
99
+ easeOutSine: function(i, s, h, o) {
100
+ return h * Math.sin(i / o * (Math.PI / 2)) + s;
101
+ },
102
+ easeInOutSine: function(i, s, h, o) {
103
+ return -h / 2 * (Math.cos(Math.PI * i / o) - 1) + s;
104
+ },
105
+ easeInExpo: function(i, s, h, o) {
106
+ return i === 0 ? s : h * Math.pow(2, 10 * (i / o - 1)) + s;
107
+ },
108
+ easeOutExpo: function(i, s, h, o) {
109
+ return i === o ? s + h : h * (-Math.pow(2, -10 * i / o) + 1) + s;
110
+ },
111
+ easeInOutExpo: function(i, s, h, o) {
112
+ return (i /= o / 2) < 1 ? h / 2 * Math.pow(2, 10 * (i - 1)) + s : h / 2 * (-Math.pow(2, -10 * --i) + 2) + s;
113
+ },
114
+ easeInCirc: function(i, s, h, o) {
115
+ return -h * (Math.sqrt(1 - (i /= o) * i) - 1) + s;
116
+ },
117
+ easeOutCirc: function(i, s, h, o) {
118
+ return h * Math.sqrt(1 - (i = i / o - 1) * i) + s;
119
+ },
120
+ easeInOutCirc: function(i, s, h, o) {
121
+ return (i /= o / 2) < 1 ? -h / 2 * (Math.sqrt(1 - i * i) - 1) + s : h / 2 * (Math.sqrt(1 - (i -= 2) * i) + 1) + s;
122
+ },
123
+ easeInElastic: function(i, s, h, o) {
124
+ var r, a, l;
125
+ return l = 1.70158, a = 0, r = h, i === 0 || (i /= o), a || (a = o * 0.3), r < Math.abs(h) ? (r = h, l = a / 4) : l = a / (2 * Math.PI) * Math.asin(h / r), -(r * Math.pow(2, 10 * (i -= 1)) * Math.sin((i * o - l) * (2 * Math.PI) / a)) + s;
126
+ },
127
+ easeOutElastic: function(i, s, h, o) {
128
+ var r, a, l;
129
+ return l = 1.70158, a = 0, r = h, i === 0 || (i /= o), a || (a = o * 0.3), r < Math.abs(h) ? (r = h, l = a / 4) : l = a / (2 * Math.PI) * Math.asin(h / r), r * Math.pow(2, -10 * i) * Math.sin((i * o - l) * (2 * Math.PI) / a) + h + s;
130
+ },
131
+ easeInOutElastic: function(i, s, h, o) {
132
+ var r, a, l;
133
+ return l = 1.70158, a = 0, r = h, i === 0 || (i /= o / 2), a || (a = o * (0.3 * 1.5)), r < Math.abs(h) ? (r = h, l = a / 4) : l = a / (2 * Math.PI) * Math.asin(h / r), i < 1 ? -0.5 * (r * Math.pow(2, 10 * (i -= 1)) * Math.sin((i * o - l) * (2 * Math.PI) / a)) + s : r * Math.pow(2, -10 * (i -= 1)) * Math.sin((i * o - l) * (2 * Math.PI) / a) * 0.5 + h + s;
134
+ },
135
+ easeInBack: function(i, s, h, o, r) {
136
+ return r === void 0 && (r = 1.70158), h * (i /= o) * i * ((r + 1) * i - r) + s;
137
+ },
138
+ easeOutBack: function(i, s, h, o, r) {
139
+ return r === void 0 && (r = 1.70158), h * ((i = i / o - 1) * i * ((r + 1) * i + r) + 1) + s;
140
+ },
141
+ easeInOutBack: function(i, s, h, o, r) {
142
+ return r === void 0 && (r = 1.70158), (i /= o / 2) < 1 ? h / 2 * (i * i * (((r *= 1.525) + 1) * i - r)) + s : h / 2 * ((i -= 2) * i * (((r *= 1.525) + 1) * i + r) + 2) + s;
143
+ },
144
+ easeInBounce: function(i, s, h, o) {
145
+ var r;
146
+ return r = e.easeOutBounce(o - i, 0, h, o), h - r + s;
147
+ },
148
+ easeOutBounce: function(i, s, h, o) {
149
+ return (i /= o) < 1 / 2.75 ? h * (7.5625 * i * i) + s : i < 2 / 2.75 ? h * (7.5625 * (i -= 1.5 / 2.75) * i + 0.75) + s : i < 2.5 / 2.75 ? h * (7.5625 * (i -= 2.25 / 2.75) * i + 0.9375) + s : h * (7.5625 * (i -= 2.625 / 2.75) * i + 0.984375) + s;
150
+ },
151
+ easeInOutBounce: function(i, s, h, o) {
152
+ var r;
153
+ return i < o / 2 ? (r = e.easeInBounce(i * 2, 0, h, o), r * 0.5 + s) : (r = e.easeOutBounce(i * 2 - o, 0, h, o), r * 0.5 + h * 0.5 + s);
154
+ }
155
+ }, n(e);
156
+ }).call(z);
157
+ });
158
+ function H(p, t) {
159
+ if (p) {
160
+ if (typeof p == "function")
161
+ return p;
162
+ if (typeof p == "string")
163
+ return S[p];
164
+ } else
165
+ return S[t];
166
+ }
167
+ const Y = {
168
+ removeOnInterrupt: !1,
169
+ ease: "linear",
170
+ time: 1e3
171
+ };
172
+ class u extends d {
173
+ __init() {
174
+ this.startWidth = null;
175
+ }
176
+ __init2() {
177
+ this.startHeight = null;
178
+ }
179
+ __init3() {
180
+ this.deltaWidth = null;
181
+ }
182
+ __init4() {
183
+ this.deltaHeight = null;
184
+ }
185
+ __init5() {
186
+ this.width = null;
187
+ }
188
+ __init6() {
189
+ this.height = null;
190
+ }
191
+ __init7() {
192
+ this.time = 0;
193
+ }
194
+ constructor(t, e = {}) {
195
+ super(t), u.prototype.__init.call(this), u.prototype.__init2.call(this), u.prototype.__init3.call(this), u.prototype.__init4.call(this), u.prototype.__init5.call(this), u.prototype.__init6.call(this), u.prototype.__init7.call(this), this.options = Object.assign({}, Y, e), this.options.ease = H(this.options.ease), this.setupPosition(), this.setupZoom(), this.time = 0;
196
+ }
197
+ setupPosition() {
198
+ typeof this.options.position < "u" ? (this.startX = this.parent.center.x, this.startY = this.parent.center.y, this.deltaX = this.options.position.x - this.parent.center.x, this.deltaY = this.options.position.y - this.parent.center.y, this.keepCenter = !1) : this.keepCenter = !0;
199
+ }
200
+ setupZoom() {
201
+ this.width = null, this.height = null, typeof this.options.scale < "u" ? this.width = this.parent.screenWidth / this.options.scale : typeof this.options.scaleX < "u" || typeof this.options.scaleY < "u" ? (typeof this.options.scaleX < "u" && (this.width = this.parent.screenWidth / this.options.scaleX), typeof this.options.scaleY < "u" && (this.height = this.parent.screenHeight / this.options.scaleY)) : (typeof this.options.width < "u" && (this.width = this.options.width), typeof this.options.height < "u" && (this.height = this.options.height)), this.width !== null && (this.startWidth = this.parent.screenWidthInWorldPixels, this.deltaWidth = this.width - this.startWidth), this.height !== null && (this.startHeight = this.parent.screenHeightInWorldPixels, this.deltaHeight = this.height - this.startHeight);
202
+ }
203
+ down() {
204
+ return this.options.removeOnInterrupt && this.parent.plugins.remove("animate"), !1;
205
+ }
206
+ complete() {
207
+ this.parent.plugins.remove("animate"), this.width !== null && this.parent.fitWidth(this.width, this.keepCenter, this.height === null), this.height !== null && this.parent.fitHeight(this.height, this.keepCenter, this.width === null), !this.keepCenter && this.options.position && this.parent.moveCenter(this.options.position), this.parent.emit("animate-end", this.parent), this.options.callbackOnComplete && this.options.callbackOnComplete(this.parent);
208
+ }
209
+ update(t) {
210
+ if (this.paused)
211
+ return;
212
+ this.time += t;
213
+ const e = new c(this.parent.scale.x, this.parent.scale.y);
214
+ if (this.time >= this.options.time) {
215
+ const n = this.parent.width, i = this.parent.height;
216
+ this.complete(), (n !== this.parent.width || i !== this.parent.height) && this.parent.emit("zoomed", { viewport: this.parent, original: e, type: "animate" });
217
+ } else {
218
+ const n = this.options.ease(this.time, 0, 1, this.options.time);
219
+ if (this.width !== null) {
220
+ const i = this.startWidth, s = this.deltaWidth;
221
+ this.parent.fitWidth(
222
+ i + s * n,
223
+ this.keepCenter,
224
+ this.height === null
225
+ );
226
+ }
227
+ if (this.height !== null) {
228
+ const i = this.startHeight, s = this.deltaHeight;
229
+ this.parent.fitHeight(
230
+ i + s * n,
231
+ this.keepCenter,
232
+ this.width === null
233
+ );
234
+ }
235
+ if (this.width === null ? this.parent.scale.x = this.parent.scale.y : this.height === null && (this.parent.scale.y = this.parent.scale.x), !this.keepCenter) {
236
+ const i = this.startX, s = this.startY, h = this.deltaX, o = this.deltaY, r = new c(this.parent.x, this.parent.y);
237
+ this.parent.moveCenter(i + h * n, s + o * n), this.parent.emit("moved", { viewport: this.parent, original: r, type: "animate" });
238
+ }
239
+ (this.width || this.height) && this.parent.emit("zoomed", { viewport: this.parent, original: e, type: "animate" });
240
+ }
241
+ }
242
+ }
243
+ function v(p) {
244
+ let t, e = p[0], n = 1;
245
+ for (; n < p.length; ) {
246
+ const i = p[n], s = p[n + 1];
247
+ if (n += 2, (i === "optionalAccess" || i === "optionalCall") && e == null)
248
+ return;
249
+ i === "access" || i === "optionalAccess" ? (t = e, e = s(e)) : (i === "call" || i === "optionalCall") && (e = s((...h) => e.call(t, ...h)), t = void 0);
250
+ }
251
+ return e;
252
+ }
253
+ const X = {
254
+ sides: "all",
255
+ friction: 0.5,
256
+ time: 150,
257
+ ease: "easeInOutSine",
258
+ underflow: "center",
259
+ bounceBox: null
260
+ };
261
+ class _ extends d {
262
+ constructor(t, e = {}) {
263
+ super(t), this.options = Object.assign({}, X, e), this.ease = H(this.options.ease, "easeInOutSine"), this.options.sides ? this.options.sides === "all" ? this.top = this.bottom = this.left = this.right = !0 : this.options.sides === "horizontal" ? (this.right = this.left = !0, this.top = this.bottom = !1) : this.options.sides === "vertical" ? (this.left = this.right = !1, this.top = this.bottom = !0) : (this.top = this.options.sides.indexOf("top") !== -1, this.bottom = this.options.sides.indexOf("bottom") !== -1, this.left = this.options.sides.indexOf("left") !== -1, this.right = this.options.sides.indexOf("right") !== -1) : this.left = this.top = this.right = this.bottom = !1;
264
+ const n = this.options.underflow.toLowerCase();
265
+ n === "center" ? (this.underflowX = 0, this.underflowY = 0) : (this.underflowX = n.indexOf("left") !== -1 ? -1 : n.indexOf("right") !== -1 ? 1 : 0, this.underflowY = n.indexOf("top") !== -1 ? -1 : n.indexOf("bottom") !== -1 ? 1 : 0), this.reset();
266
+ }
267
+ isActive() {
268
+ return this.toX !== null || this.toY !== null;
269
+ }
270
+ down() {
271
+ return this.toX = this.toY = null, !1;
272
+ }
273
+ up() {
274
+ return this.bounce(), !1;
275
+ }
276
+ update(t) {
277
+ if (!this.paused) {
278
+ if (this.bounce(), this.toX) {
279
+ const e = this.toX;
280
+ e.time += t, this.parent.emit("moved", { viewport: this.parent, type: "bounce-x" }), e.time >= this.options.time ? (this.parent.x = e.end, this.toX = null, this.parent.emit("bounce-x-end", this.parent)) : this.parent.x = this.ease(e.time, e.start, e.delta, this.options.time);
281
+ }
282
+ if (this.toY) {
283
+ const e = this.toY;
284
+ e.time += t, this.parent.emit("moved", { viewport: this.parent, type: "bounce-y" }), e.time >= this.options.time ? (this.parent.y = e.end, this.toY = null, this.parent.emit("bounce-y-end", this.parent)) : this.parent.y = this.ease(e.time, e.start, e.delta, this.options.time);
285
+ }
286
+ }
287
+ }
288
+ calcUnderflowX() {
289
+ let t;
290
+ switch (this.underflowX) {
291
+ case -1:
292
+ t = 0;
293
+ break;
294
+ case 1:
295
+ t = this.parent.screenWidth - this.parent.screenWorldWidth;
296
+ break;
297
+ default:
298
+ t = (this.parent.screenWidth - this.parent.screenWorldWidth) / 2;
299
+ }
300
+ return t;
301
+ }
302
+ calcUnderflowY() {
303
+ let t;
304
+ switch (this.underflowY) {
305
+ case -1:
306
+ t = 0;
307
+ break;
308
+ case 1:
309
+ t = this.parent.screenHeight - this.parent.screenWorldHeight;
310
+ break;
311
+ default:
312
+ t = (this.parent.screenHeight - this.parent.screenWorldHeight) / 2;
313
+ }
314
+ return t;
315
+ }
316
+ oob() {
317
+ const t = this.options.bounceBox;
318
+ if (t) {
319
+ const e = typeof t.x > "u" ? 0 : t.x, n = typeof t.y > "u" ? 0 : t.y, i = typeof t.width > "u" ? this.parent.worldWidth : t.width, s = typeof t.height > "u" ? this.parent.worldHeight : t.height;
320
+ return {
321
+ left: this.parent.left < e,
322
+ right: this.parent.right > i,
323
+ top: this.parent.top < n,
324
+ bottom: this.parent.bottom > s,
325
+ topLeft: new c(
326
+ e * this.parent.scale.x,
327
+ n * this.parent.scale.y
328
+ ),
329
+ bottomRight: new c(
330
+ i * this.parent.scale.x - this.parent.screenWidth,
331
+ s * this.parent.scale.y - this.parent.screenHeight
332
+ )
333
+ };
334
+ }
335
+ return {
336
+ left: this.parent.left < 0,
337
+ right: this.parent.right > this.parent.worldWidth,
338
+ top: this.parent.top < 0,
339
+ bottom: this.parent.bottom > this.parent.worldHeight,
340
+ topLeft: new c(0, 0),
341
+ bottomRight: new c(
342
+ this.parent.worldWidth * this.parent.scale.x - this.parent.screenWidth,
343
+ this.parent.worldHeight * this.parent.scale.y - this.parent.screenHeight
344
+ )
345
+ };
346
+ }
347
+ bounce() {
348
+ if (this.paused)
349
+ return;
350
+ let t, e = this.parent.plugins.get("decelerate", !0);
351
+ e && (e.x || e.y) && (e.x && e.percentChangeX === v([e, "access", (s) => s.options, "optionalAccess", (s) => s.friction]) || e.y && e.percentChangeY === v([e, "access", (s) => s.options, "optionalAccess", (s) => s.friction])) && (t = this.oob(), (t.left && this.left || t.right && this.right) && (e.percentChangeX = this.options.friction), (t.top && this.top || t.bottom && this.bottom) && (e.percentChangeY = this.options.friction));
352
+ const n = this.parent.plugins.get("drag", !0) || {}, i = this.parent.plugins.get("pinch", !0) || {};
353
+ if (e = e || {}, !v([n, "optionalAccess", (s) => s.active]) && !v([i, "optionalAccess", (s) => s.active]) && (!this.toX || !this.toY) && (!e.x || !e.y)) {
354
+ t = t || this.oob();
355
+ const s = t.topLeft, h = t.bottomRight;
356
+ if (!this.toX && !e.x) {
357
+ let o = null;
358
+ t.left && this.left ? o = this.parent.screenWorldWidth < this.parent.screenWidth ? this.calcUnderflowX() : -s.x : t.right && this.right && (o = this.parent.screenWorldWidth < this.parent.screenWidth ? this.calcUnderflowX() : -h.x), o !== null && this.parent.x !== o && (this.toX = { time: 0, start: this.parent.x, delta: o - this.parent.x, end: o }, this.parent.emit("bounce-x-start", this.parent));
359
+ }
360
+ if (!this.toY && !e.y) {
361
+ let o = null;
362
+ t.top && this.top ? o = this.parent.screenWorldHeight < this.parent.screenHeight ? this.calcUnderflowY() : -s.y : t.bottom && this.bottom && (o = this.parent.screenWorldHeight < this.parent.screenHeight ? this.calcUnderflowY() : -h.y), o !== null && this.parent.y !== o && (this.toY = { time: 0, start: this.parent.y, delta: o - this.parent.y, end: o }, this.parent.emit("bounce-y-start", this.parent));
363
+ }
364
+ }
365
+ }
366
+ reset() {
367
+ this.toX = this.toY = null, this.bounce();
368
+ }
369
+ }
370
+ const A = {
371
+ left: !1,
372
+ right: !1,
373
+ top: !1,
374
+ bottom: !1,
375
+ direction: null,
376
+ underflow: "center"
377
+ };
378
+ class D extends d {
379
+ constructor(t, e = {}) {
380
+ super(t), this.options = Object.assign({}, A, e), this.options.direction && (this.options.left = this.options.direction === "x" || this.options.direction === "all" ? !0 : null, this.options.right = this.options.direction === "x" || this.options.direction === "all" ? !0 : null, this.options.top = this.options.direction === "y" || this.options.direction === "all" ? !0 : null, this.options.bottom = this.options.direction === "y" || this.options.direction === "all" ? !0 : null), this.parseUnderflow(), this.last = { x: null, y: null, scaleX: null, scaleY: null }, this.update();
381
+ }
382
+ parseUnderflow() {
383
+ const t = this.options.underflow.toLowerCase();
384
+ t === "none" ? this.noUnderflow = !0 : t === "center" ? (this.underflowX = this.underflowY = 0, this.noUnderflow = !1) : (this.underflowX = t.indexOf("left") !== -1 ? -1 : t.indexOf("right") !== -1 ? 1 : 0, this.underflowY = t.indexOf("top") !== -1 ? -1 : t.indexOf("bottom") !== -1 ? 1 : 0, this.noUnderflow = !1);
385
+ }
386
+ move() {
387
+ return this.update(), !1;
388
+ }
389
+ update() {
390
+ if (this.paused || this.parent.x === this.last.x && this.parent.y === this.last.y && this.parent.scale.x === this.last.scaleX && this.parent.scale.y === this.last.scaleY)
391
+ return;
392
+ const t = { x: this.parent.x, y: this.parent.y }, e = this.parent.plugins.decelerate || {};
393
+ if (this.options.left !== null || this.options.right !== null) {
394
+ let n = !1;
395
+ if (!this.noUnderflow && this.parent.screenWorldWidth < this.parent.screenWidth)
396
+ switch (this.underflowX) {
397
+ case -1:
398
+ this.parent.x !== 0 && (this.parent.x = 0, n = !0);
399
+ break;
400
+ case 1:
401
+ this.parent.x !== this.parent.screenWidth - this.parent.screenWorldWidth && (this.parent.x = this.parent.screenWidth - this.parent.screenWorldWidth, n = !0);
402
+ break;
403
+ default:
404
+ this.parent.x !== (this.parent.screenWidth - this.parent.screenWorldWidth) / 2 && (this.parent.x = (this.parent.screenWidth - this.parent.screenWorldWidth) / 2, n = !0);
405
+ }
406
+ else
407
+ this.options.left !== null && this.parent.left < (this.options.left === !0 ? 0 : this.options.left) && (this.parent.x = -(this.options.left === !0 ? 0 : this.options.left) * this.parent.scale.x, e.x = 0, n = !0), this.options.right !== null && this.parent.right > (this.options.right === !0 ? this.parent.worldWidth : this.options.right) && (this.parent.x = -(this.options.right === !0 ? this.parent.worldWidth : this.options.right) * this.parent.scale.x + this.parent.screenWidth, e.x = 0, n = !0);
408
+ n && this.parent.emit("moved", { viewport: this.parent, original: t, type: "clamp-x" });
409
+ }
410
+ if (this.options.top !== null || this.options.bottom !== null) {
411
+ let n = !1;
412
+ if (!this.noUnderflow && this.parent.screenWorldHeight < this.parent.screenHeight)
413
+ switch (this.underflowY) {
414
+ case -1:
415
+ this.parent.y !== 0 && (this.parent.y = 0, n = !0);
416
+ break;
417
+ case 1:
418
+ this.parent.y !== this.parent.screenHeight - this.parent.screenWorldHeight && (this.parent.y = this.parent.screenHeight - this.parent.screenWorldHeight, n = !0);
419
+ break;
420
+ default:
421
+ this.parent.y !== (this.parent.screenHeight - this.parent.screenWorldHeight) / 2 && (this.parent.y = (this.parent.screenHeight - this.parent.screenWorldHeight) / 2, n = !0);
422
+ }
423
+ else
424
+ this.options.top !== null && this.parent.top < (this.options.top === !0 ? 0 : this.options.top) && (this.parent.y = -(this.options.top === !0 ? 0 : this.options.top) * this.parent.scale.y, e.y = 0, n = !0), this.options.bottom !== null && this.parent.bottom > (this.options.bottom === !0 ? this.parent.worldHeight : this.options.bottom) && (this.parent.y = -(this.options.bottom === !0 ? this.parent.worldHeight : this.options.bottom) * this.parent.scale.y + this.parent.screenHeight, e.y = 0, n = !0);
425
+ n && this.parent.emit("moved", { viewport: this.parent, original: t, type: "clamp-y" });
426
+ }
427
+ this.last.x = this.parent.x, this.last.y = this.parent.y, this.last.scaleX = this.parent.scale.x, this.last.scaleY = this.parent.scale.y;
428
+ }
429
+ reset() {
430
+ this.update();
431
+ }
432
+ }
433
+ const L = {
434
+ minWidth: null,
435
+ minHeight: null,
436
+ maxWidth: null,
437
+ maxHeight: null,
438
+ minScale: null,
439
+ maxScale: null
440
+ };
441
+ class T extends d {
442
+ constructor(t, e = {}) {
443
+ super(t), this.options = Object.assign({}, L, e), this.clamp();
444
+ }
445
+ resize() {
446
+ this.clamp();
447
+ }
448
+ clamp() {
449
+ if (!this.paused) {
450
+ if (this.options.minWidth || this.options.minHeight || this.options.maxWidth || this.options.maxHeight) {
451
+ let t = this.parent.worldScreenWidth, e = this.parent.worldScreenHeight;
452
+ if (this.options.minWidth !== null && t < this.options.minWidth) {
453
+ const n = this.parent.scale.x;
454
+ this.parent.fitWidth(this.options.minWidth, !1, !1, !0), this.parent.scale.y *= this.parent.scale.x / n, t = this.parent.worldScreenWidth, e = this.parent.worldScreenHeight, this.parent.emit("zoomed", { viewport: this.parent, type: "clamp-zoom" });
455
+ }
456
+ if (this.options.maxWidth !== null && t > this.options.maxWidth) {
457
+ const n = this.parent.scale.x;
458
+ this.parent.fitWidth(this.options.maxWidth, !1, !1, !0), this.parent.scale.y *= this.parent.scale.x / n, t = this.parent.worldScreenWidth, e = this.parent.worldScreenHeight, this.parent.emit("zoomed", { viewport: this.parent, type: "clamp-zoom" });
459
+ }
460
+ if (this.options.minHeight !== null && e < this.options.minHeight) {
461
+ const n = this.parent.scale.y;
462
+ this.parent.fitHeight(this.options.minHeight, !1, !1, !0), this.parent.scale.x *= this.parent.scale.y / n, t = this.parent.worldScreenWidth, e = this.parent.worldScreenHeight, this.parent.emit("zoomed", { viewport: this.parent, type: "clamp-zoom" });
463
+ }
464
+ if (this.options.maxHeight !== null && e > this.options.maxHeight) {
465
+ const n = this.parent.scale.y;
466
+ this.parent.fitHeight(this.options.maxHeight, !1, !1, !0), this.parent.scale.x *= this.parent.scale.y / n, this.parent.emit("zoomed", { viewport: this.parent, type: "clamp-zoom" });
467
+ }
468
+ } else if (this.options.minScale || this.options.maxScale) {
469
+ const t = { x: null, y: null }, e = { x: null, y: null };
470
+ if (typeof this.options.minScale == "number")
471
+ t.x = this.options.minScale, t.y = this.options.minScale;
472
+ else if (this.options.minScale !== null) {
473
+ const s = this.options.minScale;
474
+ t.x = typeof s.x > "u" ? null : s.x, t.y = typeof s.y > "u" ? null : s.y;
475
+ }
476
+ if (typeof this.options.maxScale == "number")
477
+ e.x = this.options.maxScale, e.y = this.options.maxScale;
478
+ else if (this.options.maxScale !== null) {
479
+ const s = this.options.maxScale;
480
+ e.x = typeof s.x > "u" ? null : s.x, e.y = typeof s.y > "u" ? null : s.y;
481
+ }
482
+ let n = this.parent.scale.x, i = this.parent.scale.y;
483
+ t.x !== null && n < t.x && (n = t.x), e.x !== null && n > e.x && (n = e.x), t.y !== null && i < t.y && (i = t.y), e.y !== null && i > e.y && (i = e.y), (n !== this.parent.scale.x || i !== this.parent.scale.y) && (this.parent.scale.set(n, i), this.parent.emit("zoomed", { viewport: this.parent, type: "clamp-zoom" }));
484
+ }
485
+ }
486
+ }
487
+ reset() {
488
+ this.clamp();
489
+ }
490
+ }
491
+ const E = {
492
+ friction: 0.98,
493
+ bounce: 0.8,
494
+ minSpeed: 0.01
495
+ }, m = 16;
496
+ class V extends d {
497
+ constructor(t, e = {}) {
498
+ super(t), this.options = Object.assign({}, E, e), this.saved = [], this.timeSinceRelease = 0, this.reset(), this.parent.on("moved", (n) => this.moved(n));
499
+ }
500
+ down() {
501
+ return this.saved = [], this.x = this.y = null, !1;
502
+ }
503
+ isActive() {
504
+ return !!(this.x || this.y);
505
+ }
506
+ move() {
507
+ if (this.paused)
508
+ return !1;
509
+ const t = this.parent.input.count();
510
+ return (t === 1 || t > 1 && !this.parent.plugins.get("pinch", !0)) && (this.saved.push({ x: this.parent.x, y: this.parent.y, time: performance.now() }), this.saved.length > 60 && this.saved.splice(0, 30)), !1;
511
+ }
512
+ moved(t) {
513
+ if (this.saved.length) {
514
+ const e = this.saved[this.saved.length - 1];
515
+ t.type === "clamp-x" ? e.x === t.original.x && (e.x = this.parent.x) : t.type === "clamp-y" && e.y === t.original.y && (e.y = this.parent.y);
516
+ }
517
+ }
518
+ up() {
519
+ if (this.parent.input.count() === 0 && this.saved.length) {
520
+ const t = performance.now();
521
+ for (const e of this.saved)
522
+ if (e.time >= t - 100) {
523
+ const n = t - e.time;
524
+ this.x = (this.parent.x - e.x) / n, this.y = (this.parent.y - e.y) / n, this.percentChangeX = this.percentChangeY = this.options.friction, this.timeSinceRelease = 0;
525
+ break;
526
+ }
527
+ }
528
+ return !1;
529
+ }
530
+ activate(t) {
531
+ t = t || {}, typeof t.x < "u" && (this.x = t.x, this.percentChangeX = this.options.friction), typeof t.y < "u" && (this.y = t.y, this.percentChangeY = this.options.friction);
532
+ }
533
+ update(t) {
534
+ if (this.paused)
535
+ return;
536
+ const e = this.x || this.y, n = this.timeSinceRelease, i = this.timeSinceRelease + t;
537
+ if (this.x) {
538
+ const s = this.percentChangeX, h = Math.log(s);
539
+ this.parent.x += this.x * m / h * (Math.pow(s, i / m) - Math.pow(s, n / m)), this.x *= Math.pow(this.percentChangeX, t / m);
540
+ }
541
+ if (this.y) {
542
+ const s = this.percentChangeY, h = Math.log(s);
543
+ this.parent.y += this.y * m / h * (Math.pow(s, i / m) - Math.pow(s, n / m)), this.y *= Math.pow(this.percentChangeY, t / m);
544
+ }
545
+ this.timeSinceRelease += t, this.x && this.y ? Math.abs(this.x) < this.options.minSpeed && Math.abs(this.y) < this.options.minSpeed && (this.x = 0, this.y = 0) : (Math.abs(this.x || 0) < this.options.minSpeed && (this.x = 0), Math.abs(this.y || 0) < this.options.minSpeed && (this.y = 0)), e && this.parent.emit("moved", { viewport: this.parent, type: "decelerate" });
546
+ }
547
+ reset() {
548
+ this.x = this.y = null;
549
+ }
550
+ }
551
+ const B = {
552
+ direction: "all",
553
+ pressDrag: !0,
554
+ wheel: !0,
555
+ wheelScroll: 1,
556
+ reverse: !1,
557
+ clampWheel: !1,
558
+ underflow: "center",
559
+ factor: 1,
560
+ mouseButtons: "all",
561
+ keyToPress: null,
562
+ ignoreKeyToPressOnTouch: !1,
563
+ lineHeight: 20,
564
+ wheelSwapAxes: !1
565
+ };
566
+ class M extends d {
567
+ __init() {
568
+ this.windowEventHandlers = new Array();
569
+ }
570
+ constructor(t, e = {}) {
571
+ super(t), M.prototype.__init.call(this), this.options = Object.assign({}, B, e), this.moved = !1, this.reverse = this.options.reverse ? 1 : -1, this.xDirection = !this.options.direction || this.options.direction === "all" || this.options.direction === "x", this.yDirection = !this.options.direction || this.options.direction === "all" || this.options.direction === "y", this.keyIsPressed = !1, this.parseUnderflow(), this.mouseButtons(this.options.mouseButtons), this.options.keyToPress && this.handleKeyPresses(this.options.keyToPress);
572
+ }
573
+ handleKeyPresses(t) {
574
+ const e = (i) => {
575
+ t.includes(i.code) && (this.keyIsPressed = !0);
576
+ }, n = (i) => {
577
+ t.includes(i.code) && (this.keyIsPressed = !1);
578
+ };
579
+ this.addWindowEventHandler("keyup", n), this.addWindowEventHandler("keydown", e);
580
+ }
581
+ addWindowEventHandler(t, e) {
582
+ window.addEventListener(t, e), this.windowEventHandlers.push({ event: t, handler: e });
583
+ }
584
+ destroy() {
585
+ this.windowEventHandlers.forEach(({ event: t, handler: e }) => {
586
+ window.removeEventListener(t, e);
587
+ });
588
+ }
589
+ mouseButtons(t) {
590
+ !t || t === "all" ? this.mouse = [!0, !0, !0] : this.mouse = [
591
+ t.indexOf("left") !== -1,
592
+ t.indexOf("middle") !== -1,
593
+ t.indexOf("right") !== -1
594
+ ];
595
+ }
596
+ parseUnderflow() {
597
+ const t = this.options.underflow.toLowerCase();
598
+ t === "center" ? (this.underflowX = 0, this.underflowY = 0) : (t.includes("left") ? this.underflowX = -1 : t.includes("right") ? this.underflowX = 1 : this.underflowX = 0, t.includes("top") ? this.underflowY = -1 : t.includes("bottom") ? this.underflowY = 1 : this.underflowY = 0);
599
+ }
600
+ checkButtons(t) {
601
+ const e = t.data.pointerType === "mouse", n = this.parent.input.count();
602
+ return !!((n === 1 || n > 1 && !this.parent.plugins.get("pinch", !0)) && (!e || this.mouse[t.data.button]));
603
+ }
604
+ checkKeyPress(t) {
605
+ return !this.options.keyToPress || this.keyIsPressed || this.options.ignoreKeyToPressOnTouch && t.data.pointerType === "touch";
606
+ }
607
+ down(t) {
608
+ return this.paused || !this.options.pressDrag ? !1 : this.checkButtons(t) && this.checkKeyPress(t) ? (this.last = { x: t.data.global.x, y: t.data.global.y }, this.current = t.data.pointerId, !0) : (this.last = null, !1);
609
+ }
610
+ get active() {
611
+ return this.moved;
612
+ }
613
+ move(t) {
614
+ if (this.paused || !this.options.pressDrag)
615
+ return !1;
616
+ if (this.last && this.current === t.data.pointerId) {
617
+ const e = t.data.global.x, n = t.data.global.y, i = this.parent.input.count();
618
+ if (i === 1 || i > 1 && !this.parent.plugins.get("pinch", !0)) {
619
+ const s = e - this.last.x, h = n - this.last.y;
620
+ if (this.moved || this.xDirection && this.parent.input.checkThreshold(s) || this.yDirection && this.parent.input.checkThreshold(h)) {
621
+ const o = { x: e, y: n };
622
+ return this.xDirection && (this.parent.x += (o.x - this.last.x) * this.options.factor), this.yDirection && (this.parent.y += (o.y - this.last.y) * this.options.factor), this.last = o, this.moved || this.parent.emit("drag-start", {
623
+ event: t,
624
+ screen: new c(this.last.x, this.last.y),
625
+ world: this.parent.toWorld(new c(this.last.x, this.last.y)),
626
+ viewport: this.parent
627
+ }), this.moved = !0, this.parent.emit("moved", { viewport: this.parent, type: "drag" }), !0;
628
+ }
629
+ } else
630
+ this.moved = !1;
631
+ }
632
+ return !1;
633
+ }
634
+ up(t) {
635
+ if (this.paused)
636
+ return !1;
637
+ const e = this.parent.input.touches;
638
+ if (e.length === 1) {
639
+ const n = e[0];
640
+ return n.last && (this.last = { x: n.last.x, y: n.last.y }, this.current = n.id), this.moved = !1, !0;
641
+ } else if (this.last && this.moved) {
642
+ const n = new c(this.last.x, this.last.y);
643
+ return this.parent.emit("drag-end", {
644
+ event: t,
645
+ screen: n,
646
+ world: this.parent.toWorld(n),
647
+ viewport: this.parent
648
+ }), this.last = null, this.moved = !1, !0;
649
+ }
650
+ return !1;
651
+ }
652
+ wheel(t) {
653
+ if (this.paused)
654
+ return !1;
655
+ if (this.options.wheel) {
656
+ const e = this.parent.plugins.get("wheel", !0);
657
+ if (!e || !e.options.wheelZoom && !t.ctrlKey) {
658
+ const n = t.deltaMode ? this.options.lineHeight : 1, i = [t.deltaX, t.deltaY], [s, h] = this.options.wheelSwapAxes ? i.reverse() : i;
659
+ return this.xDirection && (this.parent.x += s * n * this.options.wheelScroll * this.reverse), this.yDirection && (this.parent.y += h * n * this.options.wheelScroll * this.reverse), this.options.clampWheel && this.clamp(), this.parent.emit("wheel-scroll", this.parent), this.parent.emit("moved", { viewport: this.parent, type: "wheel" }), this.parent.options.passiveWheel || t.preventDefault(), this.parent.options.stopPropagation && t.stopPropagation(), !0;
660
+ }
661
+ }
662
+ return !1;
663
+ }
664
+ resume() {
665
+ this.last = null, this.paused = !1;
666
+ }
667
+ clamp() {
668
+ const t = this.parent.plugins.get("decelerate", !0) || {};
669
+ if (this.options.clampWheel !== "y")
670
+ if (this.parent.screenWorldWidth < this.parent.screenWidth)
671
+ switch (this.underflowX) {
672
+ case -1:
673
+ this.parent.x = 0;
674
+ break;
675
+ case 1:
676
+ this.parent.x = this.parent.screenWidth - this.parent.screenWorldWidth;
677
+ break;
678
+ default:
679
+ this.parent.x = (this.parent.screenWidth - this.parent.screenWorldWidth) / 2;
680
+ }
681
+ else
682
+ this.parent.left < 0 ? (this.parent.x = 0, t.x = 0) : this.parent.right > this.parent.worldWidth && (this.parent.x = -this.parent.worldWidth * this.parent.scale.x + this.parent.screenWidth, t.x = 0);
683
+ if (this.options.clampWheel !== "x")
684
+ if (this.parent.screenWorldHeight < this.parent.screenHeight)
685
+ switch (this.underflowY) {
686
+ case -1:
687
+ this.parent.y = 0;
688
+ break;
689
+ case 1:
690
+ this.parent.y = this.parent.screenHeight - this.parent.screenWorldHeight;
691
+ break;
692
+ default:
693
+ this.parent.y = (this.parent.screenHeight - this.parent.screenWorldHeight) / 2;
694
+ }
695
+ else
696
+ this.parent.top < 0 && (this.parent.y = 0, t.y = 0), this.parent.bottom > this.parent.worldHeight && (this.parent.y = -this.parent.worldHeight * this.parent.scale.y + this.parent.screenHeight, t.y = 0);
697
+ }
698
+ }
699
+ const q = {
700
+ speed: 0,
701
+ acceleration: null,
702
+ radius: null
703
+ };
704
+ class U extends d {
705
+ constructor(t, e, n = {}) {
706
+ super(t), this.target = e, this.options = Object.assign({}, q, n), this.velocity = { x: 0, y: 0 };
707
+ }
708
+ update(t) {
709
+ if (this.paused)
710
+ return;
711
+ const e = this.parent.center;
712
+ let n = this.target.x, i = this.target.y;
713
+ if (this.options.radius)
714
+ if (Math.sqrt(Math.pow(this.target.y - e.y, 2) + Math.pow(this.target.x - e.x, 2)) > this.options.radius) {
715
+ const o = Math.atan2(this.target.y - e.y, this.target.x - e.x);
716
+ n = this.target.x - Math.cos(o) * this.options.radius, i = this.target.y - Math.sin(o) * this.options.radius;
717
+ } else
718
+ return;
719
+ const s = n - e.x, h = i - e.y;
720
+ if (s || h)
721
+ if (this.options.speed)
722
+ if (this.options.acceleration) {
723
+ const o = Math.atan2(i - e.y, n - e.x), r = Math.sqrt(Math.pow(s, 2) + Math.pow(h, 2));
724
+ if (r) {
725
+ const a = (Math.pow(this.velocity.x, 2) + Math.pow(this.velocity.y, 2)) / (2 * this.options.acceleration);
726
+ r > a ? this.velocity = {
727
+ x: Math.min(this.velocity.x + (this.options.acceleration * t, this.options.speed)),
728
+ y: Math.min(this.velocity.y + (this.options.acceleration * t, this.options.speed))
729
+ } : this.velocity = {
730
+ x: Math.max(this.velocity.x - this.options.acceleration * this.options.speed, 0),
731
+ y: Math.max(this.velocity.y - this.options.acceleration * this.options.speed, 0)
732
+ };
733
+ const l = Math.cos(o) * this.velocity.x, g = Math.sin(o) * this.velocity.y, f = Math.abs(l) > Math.abs(s) ? n : e.x + l, x = Math.abs(g) > Math.abs(h) ? i : e.y + g;
734
+ this.parent.moveCenter(f, x), this.parent.emit("moved", { viewport: this.parent, type: "follow" });
735
+ }
736
+ } else {
737
+ const o = Math.atan2(i - e.y, n - e.x), r = Math.cos(o) * this.options.speed, a = Math.sin(o) * this.options.speed, l = Math.abs(r) > Math.abs(s) ? n : e.x + r, g = Math.abs(a) > Math.abs(h) ? i : e.y + a;
738
+ this.parent.moveCenter(l, g), this.parent.emit("moved", { viewport: this.parent, type: "follow" });
739
+ }
740
+ else
741
+ this.parent.moveCenter(n, i), this.parent.emit("moved", { viewport: this.parent, type: "follow" });
742
+ }
743
+ }
744
+ const j = {
745
+ radius: null,
746
+ distance: null,
747
+ top: null,
748
+ bottom: null,
749
+ left: null,
750
+ right: null,
751
+ speed: 8,
752
+ reverse: !1,
753
+ noDecelerate: !1,
754
+ linear: !1,
755
+ allowButtons: !1
756
+ };
757
+ class Z extends d {
758
+ constructor(t, e = {}) {
759
+ super(t), this.options = Object.assign({}, j, e), this.reverse = this.options.reverse ? 1 : -1, this.radiusSquared = typeof this.options.radius == "number" ? Math.pow(this.options.radius, 2) : null, this.resize();
760
+ }
761
+ resize() {
762
+ const t = this.options.distance;
763
+ t !== null ? (this.left = t, this.top = t, this.right = this.parent.screenWidth - t, this.bottom = this.parent.screenHeight - t) : this.options.radius || (this.left = this.options.left, this.top = this.options.top, this.right = this.options.right === null ? null : this.parent.screenWidth - this.options.right, this.bottom = this.options.bottom === null ? null : this.parent.screenHeight - this.options.bottom);
764
+ }
765
+ down() {
766
+ return this.paused || this.options.allowButtons || (this.horizontal = this.vertical = null), !1;
767
+ }
768
+ move(t) {
769
+ if (this.paused || t.data.pointerType !== "mouse" && t.data.identifier !== 1 || !this.options.allowButtons && t.data.buttons !== 0)
770
+ return !1;
771
+ const e = t.data.global.x, n = t.data.global.y;
772
+ if (this.radiusSquared) {
773
+ const i = this.parent.toScreen(this.parent.center);
774
+ if (Math.pow(i.x - e, 2) + Math.pow(i.y - n, 2) >= this.radiusSquared) {
775
+ const s = Math.atan2(i.y - n, i.x - e);
776
+ this.options.linear ? (this.horizontal = Math.round(Math.cos(s)) * this.options.speed * this.reverse * (60 / 1e3), this.vertical = Math.round(Math.sin(s)) * this.options.speed * this.reverse * (60 / 1e3)) : (this.horizontal = Math.cos(s) * this.options.speed * this.reverse * (60 / 1e3), this.vertical = Math.sin(s) * this.options.speed * this.reverse * (60 / 1e3));
777
+ } else
778
+ this.horizontal && this.decelerateHorizontal(), this.vertical && this.decelerateVertical(), this.horizontal = this.vertical = 0;
779
+ } else
780
+ this.left !== null && e < this.left ? this.horizontal = Number(this.reverse) * this.options.speed * (60 / 1e3) : this.right !== null && e > this.right ? this.horizontal = -1 * this.reverse * this.options.speed * (60 / 1e3) : (this.decelerateHorizontal(), this.horizontal = 0), this.top !== null && n < this.top ? this.vertical = Number(this.reverse) * this.options.speed * (60 / 1e3) : this.bottom !== null && n > this.bottom ? this.vertical = -1 * this.reverse * this.options.speed * (60 / 1e3) : (this.decelerateVertical(), this.vertical = 0);
781
+ return !1;
782
+ }
783
+ decelerateHorizontal() {
784
+ const t = this.parent.plugins.get("decelerate", !0);
785
+ this.horizontal && t && !this.options.noDecelerate && t.activate({ x: this.horizontal * this.options.speed * this.reverse / (1e3 / 60) });
786
+ }
787
+ decelerateVertical() {
788
+ const t = this.parent.plugins.get("decelerate", !0);
789
+ this.vertical && t && !this.options.noDecelerate && t.activate({ y: this.vertical * this.options.speed * this.reverse / (1e3 / 60) });
790
+ }
791
+ up() {
792
+ return this.paused || (this.horizontal && this.decelerateHorizontal(), this.vertical && this.decelerateVertical(), this.horizontal = this.vertical = null), !1;
793
+ }
794
+ update() {
795
+ if (!this.paused && (this.horizontal || this.vertical)) {
796
+ const t = this.parent.center;
797
+ this.horizontal && (t.x += this.horizontal * this.options.speed), this.vertical && (t.y += this.vertical * this.options.speed), this.parent.moveCenter(t), this.parent.emit("moved", { viewport: this.parent, type: "mouse-edges" });
798
+ }
799
+ }
800
+ }
801
+ const F = {
802
+ noDrag: !1,
803
+ percent: 1,
804
+ center: null,
805
+ factor: 1,
806
+ axis: "all"
807
+ };
808
+ class y extends d {
809
+ __init() {
810
+ this.active = !1;
811
+ }
812
+ __init2() {
813
+ this.pinching = !1;
814
+ }
815
+ __init3() {
816
+ this.moved = !1;
817
+ }
818
+ constructor(t, e = {}) {
819
+ super(t), y.prototype.__init.call(this), y.prototype.__init2.call(this), y.prototype.__init3.call(this), this.options = Object.assign({}, F, e);
820
+ }
821
+ down() {
822
+ return this.parent.input.count() >= 2 ? (this.active = !0, !0) : !1;
823
+ }
824
+ isAxisX() {
825
+ return ["all", "x"].includes(this.options.axis);
826
+ }
827
+ isAxisY() {
828
+ return ["all", "y"].includes(this.options.axis);
829
+ }
830
+ move(t) {
831
+ if (this.paused || !this.active)
832
+ return !1;
833
+ const e = t.data.global.x, n = t.data.global.y, i = this.parent.input.touches;
834
+ if (i.length >= 2) {
835
+ const s = i[0], h = i[1], o = s.last && h.last ? Math.sqrt(Math.pow(h.last.x - s.last.x, 2) + Math.pow(h.last.y - s.last.y, 2)) : null;
836
+ if (s.id === t.data.pointerId ? s.last = { x: e, y: n, data: t.data } : h.id === t.data.pointerId && (h.last = { x: e, y: n, data: t.data }), o) {
837
+ let r;
838
+ const a = {
839
+ x: s.last.x + (h.last.x - s.last.x) / 2,
840
+ y: s.last.y + (h.last.y - s.last.y) / 2
841
+ };
842
+ this.options.center || (r = this.parent.toLocal(a));
843
+ let l = Math.sqrt(Math.pow(
844
+ h.last.x - s.last.x,
845
+ 2
846
+ ) + Math.pow(h.last.y - s.last.y, 2));
847
+ l = l === 0 ? l = 1e-10 : l;
848
+ const g = (1 - o / l) * this.options.percent * (this.isAxisX() ? this.parent.scale.x : this.parent.scale.y);
849
+ this.isAxisX() && (this.parent.scale.x += g), this.isAxisY() && (this.parent.scale.y += g), this.parent.emit("zoomed", { viewport: this.parent, type: "pinch", center: a });
850
+ const f = this.parent.plugins.get("clamp-zoom", !0);
851
+ if (f && f.clamp(), this.options.center)
852
+ this.parent.moveCenter(this.options.center);
853
+ else {
854
+ const x = this.parent.toGlobal(r);
855
+ this.parent.x += (a.x - x.x) * this.options.factor, this.parent.y += (a.y - x.y) * this.options.factor, this.parent.emit("moved", { viewport: this.parent, type: "pinch" });
856
+ }
857
+ !this.options.noDrag && this.lastCenter && (this.parent.x += (a.x - this.lastCenter.x) * this.options.factor, this.parent.y += (a.y - this.lastCenter.y) * this.options.factor, this.parent.emit("moved", { viewport: this.parent, type: "pinch" })), this.lastCenter = a, this.moved = !0;
858
+ } else
859
+ this.pinching || (this.parent.emit("pinch-start", this.parent), this.pinching = !0);
860
+ return !0;
861
+ }
862
+ return !1;
863
+ }
864
+ up() {
865
+ return this.pinching && this.parent.input.touches.length <= 1 ? (this.active = !1, this.lastCenter = null, this.pinching = !1, this.moved = !1, this.parent.emit("pinch-end", this.parent), !0) : !1;
866
+ }
867
+ }
868
+ const K = {
869
+ topLeft: !1,
870
+ friction: 0.8,
871
+ time: 1e3,
872
+ ease: "easeInOutSine",
873
+ interrupt: !0,
874
+ removeOnComplete: !1,
875
+ removeOnInterrupt: !1,
876
+ forceStart: !1
877
+ };
878
+ class Q extends d {
879
+ constructor(t, e, n, i = {}) {
880
+ super(t), this.options = Object.assign({}, K, i), this.ease = H(i.ease, "easeInOutSine"), this.x = e, this.y = n, this.options.forceStart && this.snapStart();
881
+ }
882
+ snapStart() {
883
+ this.percent = 0, this.snapping = { time: 0 };
884
+ const t = this.options.topLeft ? this.parent.corner : this.parent.center;
885
+ this.deltaX = this.x - t.x, this.deltaY = this.y - t.y, this.startX = t.x, this.startY = t.y, this.parent.emit("snap-start", this.parent);
886
+ }
887
+ wheel() {
888
+ return this.options.removeOnInterrupt && this.parent.plugins.remove("snap"), !1;
889
+ }
890
+ down() {
891
+ return this.options.removeOnInterrupt ? this.parent.plugins.remove("snap") : this.options.interrupt && (this.snapping = null), !1;
892
+ }
893
+ up() {
894
+ if (this.parent.input.count() === 0) {
895
+ const t = this.parent.plugins.get("decelerate", !0);
896
+ t && (t.x || t.y) && (t.percentChangeX = t.percentChangeY = this.options.friction);
897
+ }
898
+ return !1;
899
+ }
900
+ update(t) {
901
+ if (!this.paused && !(this.options.interrupt && this.parent.input.count() !== 0))
902
+ if (this.snapping) {
903
+ const e = this.snapping;
904
+ e.time += t;
905
+ let n, i, s;
906
+ const h = this.startX, o = this.startY, r = this.deltaX, a = this.deltaY;
907
+ if (e.time > this.options.time)
908
+ n = !0, i = h + r, s = o + a;
909
+ else {
910
+ const l = this.ease(e.time, 0, 1, this.options.time);
911
+ i = h + r * l, s = o + a * l;
912
+ }
913
+ this.options.topLeft ? this.parent.moveCorner(i, s) : this.parent.moveCenter(i, s), this.parent.emit("moved", { viewport: this.parent, type: "snap" }), n && (this.options.removeOnComplete && this.parent.plugins.remove("snap"), this.parent.emit("snap-end", this.parent), this.snapping = null);
914
+ } else {
915
+ const e = this.options.topLeft ? this.parent.corner : this.parent.center;
916
+ (e.x !== this.x || e.y !== this.y) && this.snapStart();
917
+ }
918
+ }
919
+ }
920
+ const R = {
921
+ width: 0,
922
+ height: 0,
923
+ time: 1e3,
924
+ ease: "easeInOutSine",
925
+ center: null,
926
+ interrupt: !0,
927
+ removeOnComplete: !1,
928
+ removeOnInterrupt: !1,
929
+ forceStart: !1,
930
+ noMove: !1
931
+ };
932
+ class G extends d {
933
+ constructor(t, e = {}) {
934
+ super(t), this.options = Object.assign({}, R, e), this.ease = H(this.options.ease), this.xIndependent = !1, this.yIndependent = !1, this.xScale = 0, this.yScale = 0, this.options.width > 0 && (this.xScale = t.screenWidth / this.options.width, this.xIndependent = !0), this.options.height > 0 && (this.yScale = t.screenHeight / this.options.height, this.yIndependent = !0), this.xScale = this.xIndependent ? this.xScale : this.yScale, this.yScale = this.yIndependent ? this.yScale : this.xScale, this.options.time === 0 ? (t.container.scale.x = this.xScale, t.container.scale.y = this.yScale, this.options.removeOnComplete && this.parent.plugins.remove("snap-zoom")) : e.forceStart && this.createSnapping();
935
+ }
936
+ createSnapping() {
937
+ const t = this.parent.worldScreenWidth, e = this.parent.worldScreenHeight, n = this.parent.screenWidth / this.xScale, i = this.parent.screenHeight / this.yScale;
938
+ this.snapping = {
939
+ time: 0,
940
+ startX: t,
941
+ startY: e,
942
+ deltaX: n - t,
943
+ deltaY: i - e
944
+ }, this.parent.emit("snap-zoom-start", this.parent);
945
+ }
946
+ resize() {
947
+ this.snapping = null, this.options.width > 0 && (this.xScale = this.parent.screenWidth / this.options.width), this.options.height > 0 && (this.yScale = this.parent.screenHeight / this.options.height), this.xScale = this.xIndependent ? this.xScale : this.yScale, this.yScale = this.yIndependent ? this.yScale : this.xScale;
948
+ }
949
+ wheel() {
950
+ return this.options.removeOnInterrupt && this.parent.plugins.remove("snap-zoom"), !1;
951
+ }
952
+ down() {
953
+ return this.options.removeOnInterrupt ? this.parent.plugins.remove("snap-zoom") : this.options.interrupt && (this.snapping = null), !1;
954
+ }
955
+ update(t) {
956
+ if (this.paused || this.options.interrupt && this.parent.input.count() !== 0)
957
+ return;
958
+ let e;
959
+ if (!this.options.center && !this.options.noMove && (e = this.parent.center), !this.snapping)
960
+ (this.parent.scale.x !== this.xScale || this.parent.scale.y !== this.yScale) && this.createSnapping();
961
+ else if (this.snapping) {
962
+ const n = this.snapping;
963
+ if (n.time += t, n.time >= this.options.time)
964
+ this.parent.scale.set(this.xScale, this.yScale), this.options.removeOnComplete && this.parent.plugins.remove("snap-zoom"), this.parent.emit("snap-zoom-end", this.parent), this.snapping = null;
965
+ else {
966
+ const s = this.snapping, h = this.ease(s.time, s.startX, s.deltaX, this.options.time), o = this.ease(s.time, s.startY, s.deltaY, this.options.time);
967
+ this.parent.scale.x = this.parent.screenWidth / h, this.parent.scale.y = this.parent.screenHeight / o;
968
+ }
969
+ const i = this.parent.plugins.get("clamp-zoom", !0);
970
+ i && i.clamp(), this.options.noMove || (this.options.center ? this.parent.moveCenter(this.options.center) : this.parent.moveCenter(e));
971
+ }
972
+ }
973
+ resume() {
974
+ this.snapping = null, super.resume();
975
+ }
976
+ }
977
+ const N = {
978
+ percent: 0.1,
979
+ smooth: !1,
980
+ interrupt: !0,
981
+ reverse: !1,
982
+ center: null,
983
+ lineHeight: 20,
984
+ axis: "all",
985
+ keyToPress: null,
986
+ trackpadPinch: !1,
987
+ wheelZoom: !0
988
+ };
989
+ class $ extends d {
990
+ constructor(t, e = {}) {
991
+ super(t), this.options = Object.assign({}, N, e), this.keyIsPressed = !1, this.options.keyToPress && this.handleKeyPresses(this.options.keyToPress);
992
+ }
993
+ handleKeyPresses(t) {
994
+ window.addEventListener("keydown", (e) => {
995
+ t.includes(e.code) && (this.keyIsPressed = !0);
996
+ }), window.addEventListener("keyup", (e) => {
997
+ t.includes(e.code) && (this.keyIsPressed = !1);
998
+ });
999
+ }
1000
+ checkKeyPress() {
1001
+ return !this.options.keyToPress || this.keyIsPressed;
1002
+ }
1003
+ down() {
1004
+ return this.options.interrupt && (this.smoothing = null), !1;
1005
+ }
1006
+ isAxisX() {
1007
+ return ["all", "x"].includes(this.options.axis);
1008
+ }
1009
+ isAxisY() {
1010
+ return ["all", "y"].includes(this.options.axis);
1011
+ }
1012
+ update() {
1013
+ if (this.smoothing) {
1014
+ const t = this.smoothingCenter, e = this.smoothing;
1015
+ let n;
1016
+ this.options.center || (n = this.parent.toLocal(t)), this.isAxisX() && (this.parent.scale.x += e.x), this.isAxisY() && (this.parent.scale.y += e.y), this.parent.emit("zoomed", { viewport: this.parent, type: "wheel" });
1017
+ const i = this.parent.plugins.get("clamp-zoom", !0);
1018
+ if (i && i.clamp(), this.options.center)
1019
+ this.parent.moveCenter(this.options.center);
1020
+ else {
1021
+ const s = this.parent.toGlobal(n);
1022
+ this.parent.x += t.x - s.x, this.parent.y += t.y - s.y;
1023
+ }
1024
+ this.parent.emit("moved", { viewport: this.parent, type: "wheel" }), this.smoothingCount++, this.smoothingCount >= this.options.smooth && (this.smoothing = null);
1025
+ }
1026
+ }
1027
+ pinch(t) {
1028
+ if (this.paused)
1029
+ return;
1030
+ const e = this.parent.input.getPointerPosition(t), n = -t.deltaY * (t.deltaMode ? this.options.lineHeight : 1) / 200, i = Math.pow(2, (1 + this.options.percent) * n);
1031
+ let s;
1032
+ this.options.center || (s = this.parent.toLocal(e)), this.isAxisX() && (this.parent.scale.x *= i), this.isAxisY() && (this.parent.scale.y *= i), this.parent.emit("zoomed", { viewport: this.parent, type: "wheel" });
1033
+ const h = this.parent.plugins.get("clamp-zoom", !0);
1034
+ if (h && h.clamp(), this.options.center)
1035
+ this.parent.moveCenter(this.options.center);
1036
+ else {
1037
+ const o = this.parent.toGlobal(s);
1038
+ this.parent.x += e.x - o.x, this.parent.y += e.y - o.y;
1039
+ }
1040
+ this.parent.emit("moved", { viewport: this.parent, type: "wheel" }), this.parent.emit(
1041
+ "wheel",
1042
+ { wheel: { dx: t.deltaX, dy: t.deltaY, dz: t.deltaZ }, event: t, viewport: this.parent }
1043
+ );
1044
+ }
1045
+ wheel(t) {
1046
+ if (this.paused || !this.checkKeyPress())
1047
+ return !1;
1048
+ if (t.ctrlKey && this.options.trackpadPinch)
1049
+ this.pinch(t);
1050
+ else if (this.options.wheelZoom) {
1051
+ const e = this.parent.input.getPointerPosition(t), n = (this.options.reverse ? -1 : 1) * -t.deltaY * (t.deltaMode ? this.options.lineHeight : 1) / 500, i = Math.pow(2, (1 + this.options.percent) * n);
1052
+ if (this.options.smooth) {
1053
+ const s = {
1054
+ x: this.smoothing ? this.smoothing.x * (this.options.smooth - this.smoothingCount) : 0,
1055
+ y: this.smoothing ? this.smoothing.y * (this.options.smooth - this.smoothingCount) : 0
1056
+ };
1057
+ this.smoothing = {
1058
+ x: ((this.parent.scale.x + s.x) * i - this.parent.scale.x) / this.options.smooth,
1059
+ y: ((this.parent.scale.y + s.y) * i - this.parent.scale.y) / this.options.smooth
1060
+ }, this.smoothingCount = 0, this.smoothingCenter = e;
1061
+ } else {
1062
+ let s;
1063
+ this.options.center || (s = this.parent.toLocal(e)), this.isAxisX() && (this.parent.scale.x *= i), this.isAxisY() && (this.parent.scale.y *= i), this.parent.emit("zoomed", { viewport: this.parent, type: "wheel" });
1064
+ const h = this.parent.plugins.get("clamp-zoom", !0);
1065
+ if (h && h.clamp(), this.options.center)
1066
+ this.parent.moveCenter(this.options.center);
1067
+ else {
1068
+ const o = this.parent.toGlobal(s);
1069
+ this.parent.x += e.x - o.x, this.parent.y += e.y - o.y;
1070
+ }
1071
+ }
1072
+ this.parent.emit("moved", { viewport: this.parent, type: "wheel" }), this.parent.emit(
1073
+ "wheel",
1074
+ { wheel: { dx: t.deltaX, dy: t.deltaY, dz: t.deltaZ }, event: t, viewport: this.parent }
1075
+ );
1076
+ }
1077
+ return !this.parent.options.passiveWheel;
1078
+ }
1079
+ }
1080
+ class J {
1081
+ constructor(t) {
1082
+ this.viewport = t, this.touches = [], this.addListeners();
1083
+ }
1084
+ addListeners() {
1085
+ this.viewport.interactive = !0, this.viewport.forceHitArea || (this.viewport.hitArea = new b(0, 0, this.viewport.worldWidth, this.viewport.worldHeight)), this.viewport.on("pointerdown", this.down, this), this.viewport.on("pointermove", this.move, this), this.viewport.on("pointerup", this.up, this), this.viewport.on("pointerupoutside", this.up, this), this.viewport.on("pointercancel", this.up, this), this.viewport.on("pointerout", this.up, this), this.wheelFunction = (t) => this.handleWheel(t), this.viewport.options.divWheel.addEventListener(
1086
+ "wheel",
1087
+ this.wheelFunction,
1088
+ { passive: this.viewport.options.passiveWheel }
1089
+ ), this.isMouseDown = !1;
1090
+ }
1091
+ destroy() {
1092
+ this.viewport.options.divWheel.removeEventListener("wheel", this.wheelFunction);
1093
+ }
1094
+ down(t) {
1095
+ if (!(this.viewport.pause || !this.viewport.worldVisible)) {
1096
+ if (t.data.pointerType === "mouse" ? this.isMouseDown = !0 : this.get(t.data.pointerId) || this.touches.push({ id: t.data.pointerId, last: null }), this.count() === 1) {
1097
+ this.last = t.data.global.clone();
1098
+ const e = this.viewport.plugins.get("decelerate", !0), n = this.viewport.plugins.get("bounce", !0);
1099
+ (!e || !e.isActive()) && (!n || !n.isActive()) ? this.clickedAvailable = !0 : this.clickedAvailable = !1;
1100
+ } else
1101
+ this.clickedAvailable = !1;
1102
+ this.viewport.plugins.down(t) && this.viewport.options.stopPropagation && t.stopPropagation();
1103
+ }
1104
+ }
1105
+ clear() {
1106
+ this.isMouseDown = !1, this.touches = [], this.last = null;
1107
+ }
1108
+ checkThreshold(t) {
1109
+ return Math.abs(t) >= this.viewport.threshold;
1110
+ }
1111
+ move(t) {
1112
+ if (this.viewport.pause || !this.viewport.worldVisible)
1113
+ return;
1114
+ const e = this.viewport.plugins.move(t);
1115
+ if (this.clickedAvailable && this.last) {
1116
+ const n = t.data.global.x - this.last.x, i = t.data.global.y - this.last.y;
1117
+ (this.checkThreshold(n) || this.checkThreshold(i)) && (this.clickedAvailable = !1);
1118
+ }
1119
+ e && this.viewport.options.stopPropagation && t.stopPropagation();
1120
+ }
1121
+ up(t) {
1122
+ if (this.viewport.pause || !this.viewport.worldVisible)
1123
+ return;
1124
+ t.data.pointerType === "mouse" && (this.isMouseDown = !1), t.data.pointerType !== "mouse" && this.remove(t.data.pointerId);
1125
+ const e = this.viewport.plugins.up(t);
1126
+ this.clickedAvailable && this.count() === 0 && this.last && (this.viewport.emit("clicked", {
1127
+ event: t,
1128
+ screen: this.last,
1129
+ world: this.viewport.toWorld(this.last),
1130
+ viewport: this
1131
+ }), this.clickedAvailable = !1), e && this.viewport.options.stopPropagation && t.stopPropagation();
1132
+ }
1133
+ getPointerPosition(t) {
1134
+ const e = new c();
1135
+ if (this.viewport.options.interaction)
1136
+ this.viewport.options.interaction.mapPositionToPoint(e, t.clientX, t.clientY);
1137
+ else if (this.viewport.options.useDivWheelForInputManager && this.viewport.options.divWheel) {
1138
+ const n = this.viewport.options.divWheel.getBoundingClientRect();
1139
+ e.x = t.clientX - n.left, e.y = t.clientY - n.top;
1140
+ } else
1141
+ e.x = t.clientX, e.y = t.clientY;
1142
+ return e;
1143
+ }
1144
+ handleWheel(t) {
1145
+ if (this.viewport.pause || !this.viewport.worldVisible || this.viewport.options.interaction && this.viewport.options.interaction.interactionDOMElement !== t.target)
1146
+ return;
1147
+ const e = this.viewport.toLocal(this.getPointerPosition(t));
1148
+ this.viewport.left <= e.x && e.x <= this.viewport.right && this.viewport.top <= e.y && e.y <= this.viewport.bottom && this.viewport.plugins.wheel(t) && !this.viewport.options.passiveWheel && t.preventDefault();
1149
+ }
1150
+ pause() {
1151
+ this.touches = [], this.isMouseDown = !1;
1152
+ }
1153
+ get(t) {
1154
+ for (const e of this.touches)
1155
+ if (e.id === t)
1156
+ return e;
1157
+ return null;
1158
+ }
1159
+ remove(t) {
1160
+ for (let e = 0; e < this.touches.length; e++)
1161
+ if (this.touches[e].id === t) {
1162
+ this.touches.splice(e, 1);
1163
+ return;
1164
+ }
1165
+ }
1166
+ count() {
1167
+ return (this.isMouseDown ? 1 : 0) + this.touches.length;
1168
+ }
1169
+ }
1170
+ function W(p) {
1171
+ let t, e = p[0], n = 1;
1172
+ for (; n < p.length; ) {
1173
+ const i = p[n], s = p[n + 1];
1174
+ if (n += 2, (i === "optionalAccess" || i === "optionalCall") && e == null)
1175
+ return;
1176
+ i === "access" || i === "optionalAccess" ? (t = e, e = s(e)) : (i === "call" || i === "optionalCall") && (e = s((...h) => e.call(t, ...h)), t = void 0);
1177
+ }
1178
+ return e;
1179
+ }
1180
+ const w = [
1181
+ "drag",
1182
+ "pinch",
1183
+ "wheel",
1184
+ "follow",
1185
+ "mouse-edges",
1186
+ "decelerate",
1187
+ "animate",
1188
+ "bounce",
1189
+ "snap-zoom",
1190
+ "clamp-zoom",
1191
+ "snap",
1192
+ "clamp"
1193
+ ];
1194
+ class tt {
1195
+ constructor(t) {
1196
+ this.viewport = t, this.list = [], this.plugins = {};
1197
+ }
1198
+ add(t, e, n = w.length) {
1199
+ const i = this.plugins[t];
1200
+ i && i.destroy(), this.plugins[t] = e;
1201
+ const s = w.indexOf(t);
1202
+ s !== -1 && w.splice(s, 1), w.splice(n, 0, t), this.sort();
1203
+ }
1204
+ get(t, e) {
1205
+ return e && W([this, "access", (n) => n.plugins, "access", (n) => n[t], "optionalAccess", (n) => n.paused]) ? null : this.plugins[t];
1206
+ }
1207
+ update(t) {
1208
+ for (const e of this.list)
1209
+ e.update(t);
1210
+ }
1211
+ resize() {
1212
+ for (const t of this.list)
1213
+ t.resize();
1214
+ }
1215
+ reset() {
1216
+ for (const t of this.list)
1217
+ t.reset();
1218
+ }
1219
+ removeAll() {
1220
+ this.list.forEach((t) => {
1221
+ t.destroy();
1222
+ }), this.plugins = {}, this.sort();
1223
+ }
1224
+ remove(t) {
1225
+ this.plugins[t] && (W([this, "access", (e) => e.plugins, "access", (e) => e[t], "optionalAccess", (e) => e.destroy, "call", (e) => e()]), delete this.plugins[t], this.viewport.emit(`${t}-remove`), this.sort());
1226
+ }
1227
+ pause(t) {
1228
+ W([this, "access", (e) => e.plugins, "access", (e) => e[t], "optionalAccess", (e) => e.pause, "call", (e) => e()]);
1229
+ }
1230
+ resume(t) {
1231
+ W([this, "access", (e) => e.plugins, "access", (e) => e[t], "optionalAccess", (e) => e.resume, "call", (e) => e()]);
1232
+ }
1233
+ sort() {
1234
+ this.list = [];
1235
+ for (const t of w)
1236
+ this.plugins[t] && this.list.push(this.plugins[t]);
1237
+ }
1238
+ down(t) {
1239
+ let e = !1;
1240
+ for (const n of this.list)
1241
+ n.down(t) && (e = !0);
1242
+ return e;
1243
+ }
1244
+ move(t) {
1245
+ let e = !1;
1246
+ for (const n of this.viewport.plugins.list)
1247
+ n.move(t) && (e = !0);
1248
+ return e;
1249
+ }
1250
+ up(t) {
1251
+ let e = !1;
1252
+ for (const n of this.list)
1253
+ n.up(t) && (e = !0);
1254
+ return e;
1255
+ }
1256
+ wheel(t) {
1257
+ let e = !1;
1258
+ for (const n of this.list)
1259
+ n.wheel(t) && (e = !0);
1260
+ return e;
1261
+ }
1262
+ }
1263
+ const et = {
1264
+ screenWidth: window.innerWidth,
1265
+ screenHeight: window.innerHeight,
1266
+ worldWidth: null,
1267
+ worldHeight: null,
1268
+ threshold: 5,
1269
+ passiveWheel: !0,
1270
+ stopPropagation: !1,
1271
+ forceHitArea: null,
1272
+ noTicker: !1,
1273
+ interaction: null,
1274
+ disableOnContextMenu: !1,
1275
+ ticker: O.shared
1276
+ };
1277
+ class C extends k {
1278
+ __init() {
1279
+ this._disableOnContextMenu = (t) => t.preventDefault();
1280
+ }
1281
+ constructor(t = {}) {
1282
+ super(), C.prototype.__init.call(this), this.options = Object.assign(
1283
+ {},
1284
+ { divWheel: document.body },
1285
+ et,
1286
+ t
1287
+ ), this.screenWidth = this.options.screenWidth, this.screenHeight = this.options.screenHeight, this._worldWidth = this.options.worldWidth, this._worldHeight = this.options.worldHeight, this.forceHitArea = this.options.forceHitArea, this.threshold = this.options.threshold, this.options.divWheel = this.options.divWheel || document.body, this.options.disableOnContextMenu && this.options.divWheel.addEventListener("contextmenu", this._disableOnContextMenu), this.options.noTicker || (this.tickerFunction = () => this.update(this.options.ticker.elapsedMS), this.options.ticker.add(this.tickerFunction)), this.input = new J(this), this.plugins = new tt(this);
1288
+ }
1289
+ destroy(t) {
1290
+ !this.options.noTicker && this.tickerFunction && this.options.ticker.remove(this.tickerFunction), this.options.disableOnContextMenu && this.options.divWheel.removeEventListener("contextmenu", this._disableOnContextMenu), this.input.destroy(), super.destroy(t);
1291
+ }
1292
+ update(t) {
1293
+ this.pause || (this.plugins.update(t), this.lastViewport && (this.lastViewport.x !== this.x || this.lastViewport.y !== this.y ? this.moving = !0 : this.moving && (this.emit("moved-end", this), this.moving = !1), this.lastViewport.scaleX !== this.scale.x || this.lastViewport.scaleY !== this.scale.y ? this.zooming = !0 : this.zooming && (this.emit("zoomed-end", this), this.zooming = !1)), this.forceHitArea || (this._hitAreaDefault = new b(this.left, this.top, this.worldScreenWidth, this.worldScreenHeight), this.hitArea = this._hitAreaDefault), this._dirty = this._dirty || !this.lastViewport || this.lastViewport.x !== this.x || this.lastViewport.y !== this.y || this.lastViewport.scaleX !== this.scale.x || this.lastViewport.scaleY !== this.scale.y, this.lastViewport = {
1294
+ x: this.x,
1295
+ y: this.y,
1296
+ scaleX: this.scale.x,
1297
+ scaleY: this.scale.y
1298
+ }, this.emit("frame-end", this));
1299
+ }
1300
+ resize(t = window.innerWidth, e = window.innerHeight, n, i) {
1301
+ this.screenWidth = t, this.screenHeight = e, typeof n < "u" && (this._worldWidth = n), typeof i < "u" && (this._worldHeight = i), this.plugins.resize(), this.dirty = !0;
1302
+ }
1303
+ get worldWidth() {
1304
+ return this._worldWidth ? this._worldWidth : this.width / this.scale.x;
1305
+ }
1306
+ set worldWidth(t) {
1307
+ this._worldWidth = t, this.plugins.resize();
1308
+ }
1309
+ get worldHeight() {
1310
+ return this._worldHeight ? this._worldHeight : this.height / this.scale.y;
1311
+ }
1312
+ set worldHeight(t) {
1313
+ this._worldHeight = t, this.plugins.resize();
1314
+ }
1315
+ getVisibleBounds() {
1316
+ return new b(this.left, this.top, this.worldScreenWidth, this.worldScreenHeight);
1317
+ }
1318
+ toWorld(t, e) {
1319
+ return arguments.length === 2 ? this.toLocal(new c(t, e)) : this.toLocal(t);
1320
+ }
1321
+ toScreen(t, e) {
1322
+ return arguments.length === 2 ? this.toGlobal(new c(t, e)) : this.toGlobal(t);
1323
+ }
1324
+ get worldScreenWidth() {
1325
+ return this.screenWidth / this.scale.x;
1326
+ }
1327
+ get worldScreenHeight() {
1328
+ return this.screenHeight / this.scale.y;
1329
+ }
1330
+ get screenWorldWidth() {
1331
+ return this.worldWidth * this.scale.x;
1332
+ }
1333
+ get screenWorldHeight() {
1334
+ return this.worldHeight * this.scale.y;
1335
+ }
1336
+ get center() {
1337
+ return new c(
1338
+ this.worldScreenWidth / 2 - this.x / this.scale.x,
1339
+ this.worldScreenHeight / 2 - this.y / this.scale.y
1340
+ );
1341
+ }
1342
+ set center(t) {
1343
+ this.moveCenter(t);
1344
+ }
1345
+ moveCenter(...t) {
1346
+ let e, n;
1347
+ typeof t[0] == "number" ? (e = t[0], n = t[1]) : (e = t[0].x, n = t[0].y);
1348
+ const i = (this.worldScreenWidth / 2 - e) * this.scale.x, s = (this.worldScreenHeight / 2 - n) * this.scale.y;
1349
+ return (this.x !== i || this.y !== s) && (this.position.set(i, s), this.plugins.reset(), this.dirty = !0), this;
1350
+ }
1351
+ get corner() {
1352
+ return new c(-this.x / this.scale.x, -this.y / this.scale.y);
1353
+ }
1354
+ set corner(t) {
1355
+ this.moveCorner(t);
1356
+ }
1357
+ moveCorner(...t) {
1358
+ let e, n;
1359
+ return t.length === 1 ? (e = -t[0].x * this.scale.x, n = -t[0].y * this.scale.y) : (e = -t[0] * this.scale.x, n = -t[1] * this.scale.y), (e !== this.x || n !== this.y) && (this.position.set(e, n), this.plugins.reset(), this.dirty = !0), this;
1360
+ }
1361
+ get screenWidthInWorldPixels() {
1362
+ return this.screenWidth / this.scale.x;
1363
+ }
1364
+ get screenHeightInWorldPixels() {
1365
+ return this.screenHeight / this.scale.y;
1366
+ }
1367
+ findFitWidth(t) {
1368
+ return this.screenWidth / t;
1369
+ }
1370
+ findFitHeight(t) {
1371
+ return this.screenHeight / t;
1372
+ }
1373
+ findFit(t, e) {
1374
+ const n = this.screenWidth / t, i = this.screenHeight / e;
1375
+ return Math.min(n, i);
1376
+ }
1377
+ findCover(t, e) {
1378
+ const n = this.screenWidth / t, i = this.screenHeight / e;
1379
+ return Math.max(n, i);
1380
+ }
1381
+ fitWidth(t = this.worldWidth, e, n = !0, i) {
1382
+ let s;
1383
+ e && (s = this.center), this.scale.x = this.screenWidth / t, n && (this.scale.y = this.scale.x);
1384
+ const h = this.plugins.get("clamp-zoom", !0);
1385
+ return !i && h && h.clamp(), e && s && this.moveCenter(s), this;
1386
+ }
1387
+ fitHeight(t = this.worldHeight, e, n = !0, i) {
1388
+ let s;
1389
+ e && (s = this.center), this.scale.y = this.screenHeight / t, n && (this.scale.x = this.scale.y);
1390
+ const h = this.plugins.get("clamp-zoom", !0);
1391
+ return !i && h && h.clamp(), e && s && this.moveCenter(s), this;
1392
+ }
1393
+ fitWorld(t) {
1394
+ let e;
1395
+ t && (e = this.center), this.scale.x = this.screenWidth / this.worldWidth, this.scale.y = this.screenHeight / this.worldHeight, this.scale.x < this.scale.y ? this.scale.y = this.scale.x : this.scale.x = this.scale.y;
1396
+ const n = this.plugins.get("clamp-zoom", !0);
1397
+ return n && n.clamp(), t && e && this.moveCenter(e), this;
1398
+ }
1399
+ fit(t, e = this.worldWidth, n = this.worldHeight) {
1400
+ let i;
1401
+ t && (i = this.center), this.scale.x = this.screenWidth / e, this.scale.y = this.screenHeight / n, this.scale.x < this.scale.y ? this.scale.y = this.scale.x : this.scale.x = this.scale.y;
1402
+ const s = this.plugins.get("clamp-zoom", !0);
1403
+ return s && s.clamp(), t && i && this.moveCenter(i), this;
1404
+ }
1405
+ setZoom(t, e) {
1406
+ let n;
1407
+ e && (n = this.center), this.scale.set(t);
1408
+ const i = this.plugins.get("clamp-zoom", !0);
1409
+ return i && i.clamp(), e && n && this.moveCenter(n), this;
1410
+ }
1411
+ zoomPercent(t, e) {
1412
+ return this.setZoom(this.scale.x + this.scale.x * t, e);
1413
+ }
1414
+ zoom(t, e) {
1415
+ return this.fitWidth(t + this.worldScreenWidth, e), this;
1416
+ }
1417
+ get scaled() {
1418
+ return this.scale.x;
1419
+ }
1420
+ set scaled(t) {
1421
+ this.setZoom(t, !0);
1422
+ }
1423
+ snapZoom(t) {
1424
+ return this.plugins.add("snap-zoom", new G(this, t)), this;
1425
+ }
1426
+ OOB() {
1427
+ return {
1428
+ left: this.left < 0,
1429
+ right: this.right > this.worldWidth,
1430
+ top: this.top < 0,
1431
+ bottom: this.bottom > this.worldHeight,
1432
+ cornerPoint: new c(
1433
+ this.worldWidth * this.scale.x - this.screenWidth,
1434
+ this.worldHeight * this.scale.y - this.screenHeight
1435
+ )
1436
+ };
1437
+ }
1438
+ get right() {
1439
+ return -this.x / this.scale.x + this.worldScreenWidth;
1440
+ }
1441
+ set right(t) {
1442
+ this.x = -t * this.scale.x + this.screenWidth, this.plugins.reset();
1443
+ }
1444
+ get left() {
1445
+ return -this.x / this.scale.x;
1446
+ }
1447
+ set left(t) {
1448
+ this.x = -t * this.scale.x, this.plugins.reset();
1449
+ }
1450
+ get top() {
1451
+ return -this.y / this.scale.y;
1452
+ }
1453
+ set top(t) {
1454
+ this.y = -t * this.scale.y, this.plugins.reset();
1455
+ }
1456
+ get bottom() {
1457
+ return -this.y / this.scale.y + this.worldScreenHeight;
1458
+ }
1459
+ set bottom(t) {
1460
+ this.y = -t * this.scale.y + this.screenHeight, this.plugins.reset();
1461
+ }
1462
+ get dirty() {
1463
+ return !!this._dirty;
1464
+ }
1465
+ set dirty(t) {
1466
+ this._dirty = t;
1467
+ }
1468
+ get forceHitArea() {
1469
+ return this._forceHitArea;
1470
+ }
1471
+ set forceHitArea(t) {
1472
+ t ? (this._forceHitArea = t, this.hitArea = t) : (this._forceHitArea = null, this.hitArea = new b(0, 0, this.worldWidth, this.worldHeight));
1473
+ }
1474
+ drag(t) {
1475
+ return this.plugins.add("drag", new M(this, t)), this;
1476
+ }
1477
+ clamp(t) {
1478
+ return this.plugins.add("clamp", new D(this, t)), this;
1479
+ }
1480
+ decelerate(t) {
1481
+ return this.plugins.add("decelerate", new V(this, t)), this;
1482
+ }
1483
+ bounce(t) {
1484
+ return this.plugins.add("bounce", new _(this, t)), this;
1485
+ }
1486
+ pinch(t) {
1487
+ return this.plugins.add("pinch", new y(this, t)), this;
1488
+ }
1489
+ snap(t, e, n) {
1490
+ return this.plugins.add("snap", new Q(this, t, e, n)), this;
1491
+ }
1492
+ follow(t, e) {
1493
+ return this.plugins.add("follow", new U(this, t, e)), this;
1494
+ }
1495
+ wheel(t) {
1496
+ return this.plugins.add("wheel", new $(this, t)), this;
1497
+ }
1498
+ animate(t) {
1499
+ return this.plugins.add("animate", new u(this, t)), this;
1500
+ }
1501
+ clampZoom(t) {
1502
+ return this.plugins.add("clamp-zoom", new T(this, t)), this;
1503
+ }
1504
+ mouseEdges(t) {
1505
+ return this.plugins.add("mouse-edges", new Z(this, t)), this;
1506
+ }
1507
+ get pause() {
1508
+ return !!this._pause;
1509
+ }
1510
+ set pause(t) {
1511
+ this._pause = t, this.lastViewport = null, this.moving = !1, this.zooming = !1, t && this.input.pause();
1512
+ }
1513
+ ensureVisible(t, e, n, i, s) {
1514
+ s && (n > this.worldScreenWidth || i > this.worldScreenHeight) && (this.fit(!0, n, i), this.emit("zoomed", { viewport: this, type: "ensureVisible" }));
1515
+ let h = !1;
1516
+ t < this.left ? (this.left = t, h = !0) : t + n > this.right && (this.right = t + n, h = !0), e < this.top ? (this.top = e, h = !0) : e + i > this.bottom && (this.bottom = e + i, h = !0), h && this.emit("moved", { viewport: this, type: "ensureVisible" });
1517
+ }
1518
+ }
1519
+ export {
1520
+ u as Animate,
1521
+ _ as Bounce,
1522
+ D as Clamp,
1523
+ T as ClampZoom,
1524
+ V as Decelerate,
1525
+ M as Drag,
1526
+ U as Follow,
1527
+ J as InputManager,
1528
+ Z as MouseEdges,
1529
+ y as Pinch,
1530
+ d as Plugin,
1531
+ tt as PluginManager,
1532
+ Q as Snap,
1533
+ G as SnapZoom,
1534
+ C as Viewport,
1535
+ $ as Wheel
1536
+ };
1537
+ //# sourceMappingURL=viewport.es-a6380c41-3517fd0a.mjs.map