@agrotools1/at-components 0.3.5 → 0.3.6

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 (874) hide show
  1. package/dist/AGraphicContainer-b156cbdc.js +109 -0
  2. package/dist/APIKeyMixin-ee07543b.js +19 -0
  3. package/dist/Analysis-ffcdf49e.js +31 -0
  4. package/dist/ArcGISCachedService-a878c30c.js +47 -0
  5. package/dist/ArcGISService-16ef592c.js +25 -0
  6. package/dist/AreaMeasurement2D-b47a8818.js +405 -0
  7. package/dist/AreaMeasurement3D-fdbc23e0.js +488 -0
  8. package/dist/AttachmentInfo-3b5fda52.js +34 -0
  9. package/dist/AttachmentQuery-14f4ec29.js +18 -0
  10. package/dist/AttributeStore-47a878e7.js +1707 -0
  11. package/dist/BaseDynamicLayerView2D-4bd57982.js +63 -0
  12. package/dist/BingMapsLayer-ec619dfa.js +112 -0
  13. package/dist/Bitmap-45982a38.js +128 -0
  14. package/dist/BitmapContainer-ae676ce9.js +23 -0
  15. package/dist/BlendLayer-f24275a8.js +13 -0
  16. package/dist/BoundsStore-da6873f3.js +63 -0
  17. package/dist/BufferObject-0c76346f.js +100 -0
  18. package/dist/BufferView-96849449.js +683 -0
  19. package/dist/BuildingSceneLayer-67b40855.js +535 -0
  20. package/dist/Button-348f9ac0.js +36 -0
  21. package/dist/CSVLayer-dae4e00d.js +208 -0
  22. package/dist/CSVSourceWorker-6de8b609.js +367 -0
  23. package/dist/CatalogDynamicGroupLayerView2D-7622a0af.js +66 -0
  24. package/dist/CatalogFootprintLayerView2D-eff667d9.js +76 -0
  25. package/dist/CatalogLayer-b0e4980c.js +262 -0
  26. package/dist/CatalogLayerView2D-fa22e5e2.js +52 -0
  27. package/dist/ClassBreaksDefinition-a4abcf50.js +18 -0
  28. package/dist/ColorMaterial.glsl-570e4f94.js +64 -0
  29. package/dist/ColorSet-7f5c7694.js +45 -0
  30. package/dist/ColorStop-6fd09765.js +29 -0
  31. package/dist/Container-d699fcb8.js +521 -0
  32. package/dist/CustomParametersMixin-949de3be.js +12 -0
  33. package/dist/DataTable/Column/Column.d.ts +1 -1
  34. package/dist/DataTable/DataTable.d.ts +3 -0
  35. package/dist/DataTable/index.d.ts +4 -1
  36. package/dist/DefaultMaterial.glsl-7c844647.js +42 -0
  37. package/dist/DefaultMaterial_COLOR_GAMMA-f7a6e76d.js +653 -0
  38. package/dist/DefaultTheme-dc710295.js +130 -0
  39. package/dist/DeleteForwardEditsParameters-06390e9e.js +18 -0
  40. package/dist/DimensionLayer-be08b167.js +129 -0
  41. package/dist/DirectLineMeasurement3D-78fa3435.js +449 -0
  42. package/dist/DistanceMeasurement2D-0716339a.js +303 -0
  43. package/dist/DoubleArray-2f0f416a.js +25 -0
  44. package/dist/EdgeProcessingWorker-ed705ff7.js +63 -0
  45. package/dist/EditBusLayer-b3dc1330.js +107 -0
  46. package/dist/ElevationInfo-c194d5f5.js +56 -0
  47. package/dist/ElevationLayer-36b1e319.js +129 -0
  48. package/dist/ElevationQuery-39727e18.js +598 -0
  49. package/dist/ElevationSamplerWorker-04b18fdf.js +62 -0
  50. package/dist/ExportImageParameters-5167798e.js +66 -0
  51. package/dist/ExportStrategy-2d347cef.js +93 -0
  52. package/dist/ExportWMSImageParameters-a26d34ed.js +33 -0
  53. package/dist/External-b021ff2c.js +110 -0
  54. package/dist/FeatureCollectionSnappingSource-66979cda.js +130 -0
  55. package/dist/FeatureCommandQueue-d3930db2.js +1244 -0
  56. package/dist/FeatureEffect-c51c2425.js +39 -0
  57. package/dist/FeatureEffectLayer-bdca70b7.js +13 -0
  58. package/dist/FeatureFilter-9a11227d.js +27 -0
  59. package/dist/FeatureLayer-f1a17cbb.js +693 -0
  60. package/dist/FeatureLayerBase-85c25451.js +148 -0
  61. package/dist/FeatureLayerSource-8d9419ca.js +444 -0
  62. package/dist/FeatureLayerView2D-523f4651.js +1967 -0
  63. package/dist/FeaturePipelineWorker-bd8ec8e1.js +3633 -0
  64. package/dist/FeatureReductionLayer-949cfff9.js +225 -0
  65. package/dist/FeatureReductionSelection-2b7de4bb.js +22 -0
  66. package/dist/FeatureServiceSnappingSource-29f6326c.js +481 -0
  67. package/dist/FeatureServiceSnappingSourceWorker-3071cc93.js +747 -0
  68. package/dist/FeatureSet-a2d35655.js +188 -0
  69. package/dist/FeatureStore-29d58f30.js +131 -0
  70. package/dist/FeatureTemplate-33f1511c.js +12 -0
  71. package/dist/FeatureType-03d8bfc6.js +25 -0
  72. package/dist/FieldsIndex-cddb2b35.js +109 -0
  73. package/dist/FormTemplate-8281e66a.js +350 -0
  74. package/dist/GeoJSONLayer-d1cf041d.js +236 -0
  75. package/dist/GeoJSONSourceWorker-b3fb8a97.js +247 -0
  76. package/dist/GeoRSSLayer-1bd11f40.js +73 -0
  77. package/dist/GeoRSSLayerView2D-8f661d18.js +140 -0
  78. package/dist/GeometryUtils-5c77f1b0.js +403 -0
  79. package/dist/GraphicContainer-8f518c24.js +26 -0
  80. package/dist/GraphicManipulator-48fa5ffd.js +1499 -0
  81. package/dist/GraphicsLayer-5e14eb47.js +38 -0
  82. package/dist/GraphicsLayerView2D-187a02e9.js +114 -0
  83. package/dist/GraphicsSnappingSource-779de954.js +273 -0
  84. package/dist/GraphicsView2D-4786cec0.js +620 -0
  85. package/dist/GroupLayer-f742bd3e.js +147 -0
  86. package/dist/GroupLayerView2D-46afecb6.js +98 -0
  87. package/dist/HUDMaterial.glsl-aed28bd1.js +65 -0
  88. package/dist/HighlightCounter-3ed84eb2.js +41 -0
  89. package/dist/HighlightGraphicContainer-24fff1f1.js +18 -0
  90. package/dist/I3SBinaryReader-dc3251f3.js +310 -0
  91. package/dist/I3SLayerDefinitions-75469971.js +55 -0
  92. package/dist/I3SUtil-b4dac74e.js +59 -0
  93. package/dist/IdentityManager-ece2841b.js +899 -0
  94. package/dist/ImageHistogramParameters-f0a6a74c.js +905 -0
  95. package/dist/ImageryLayer-c5d0331a.js +1799 -0
  96. package/dist/ImageryLayerView2D-2439ac05.js +352 -0
  97. package/dist/ImageryTileLayer-7c19b5c4.js +2157 -0
  98. package/dist/ImageryTileLayerView2D-b6bab66e.js +1110 -0
  99. package/dist/Indices-868b778f.js +67 -0
  100. package/dist/IntegratedMesh3DTilesLayer-8353bdaf.js +112 -0
  101. package/dist/IntegratedMeshLayer-e761aa10.js +141 -0
  102. package/dist/InteractiveAnalysisViewModel-d0e82ea6.js +7397 -0
  103. package/dist/InterleavedLayout-c4731d7d.js +163 -0
  104. package/dist/KMLLayer-bc47cd3d.js +162 -0
  105. package/dist/KMLLayerView2D-f2b1d389.js +253 -0
  106. package/dist/KnowledgeGraphLayerView2D-372e6484.js +43 -0
  107. package/dist/LRUCache-7a6c25d0.js +32 -0
  108. package/dist/LabelClass-fd78b96b.js +135 -0
  109. package/dist/LabelMetric-a5c60841.js +400 -0
  110. package/dist/LaserlinePath.glsl-6d8ad607.js +64 -0
  111. package/dist/Laserlines.glsl-1084f18e.js +65 -0
  112. package/dist/LayerFloorInfo-43dec126.js +15 -0
  113. package/dist/LayerView-3582efbb.js +206 -0
  114. package/dist/LercWorker-e30ab7c8.js +157 -0
  115. package/dist/LineOfSightLayer-9701cc6b.js +147 -0
  116. package/dist/LinkChartLayer-8762fd4a.js +1027 -0
  117. package/dist/Lyr3DWorker-4c128301.js +82 -0
  118. package/dist/MagnifierPrograms-4026fcfa.js +806 -0
  119. package/dist/MapImageLayer-da0d3310.js +169 -0
  120. package/dist/MapImageLayerView2D-071c4157.js +146 -0
  121. package/dist/MapNotesLayer-56a40838.js +283 -0
  122. package/dist/MapNotesLayerView2D-8899725c.js +161 -0
  123. package/dist/MapServiceLayerViewHelper-75da68f4.js +288 -0
  124. package/dist/MeasurementWidgetContent-8176953b.js +2642 -0
  125. package/dist/MediaLayer-c9bb6f41.js +523 -0
  126. package/dist/MediaLayerView2D-46029604.js +332 -0
  127. package/dist/MemCache-cfd09d4d.js +227 -0
  128. package/dist/MemorySourceWorker-b097af39.js +222 -0
  129. package/dist/Mesh-e5a3753f.js +980 -0
  130. package/dist/MeshLocalVertexSpace-46569676.js +19 -0
  131. package/dist/MultiOriginJSONSupport-66a73b5d.js +158 -0
  132. package/dist/OGCFeatureLayer-3a40db83.js +211 -0
  133. package/dist/OGCFeatureLayerView2D-b8b32964.js +82 -0
  134. package/dist/ObjectStack-ba8b9286.js +21 -0
  135. package/dist/Octree-ec06f6ac.js +495 -0
  136. package/dist/OpenStreetMapLayer-37428a2a.js +30 -0
  137. package/dist/OperationalLayer-2e935984.js +44 -0
  138. package/dist/OrderByInfo-b7d114ac.js +16 -0
  139. package/dist/OrderedLayer-63abe7dc.js +26 -0
  140. package/dist/OrientedImageryLayer-66424cd5.js +216 -0
  141. package/dist/OverlayCompositing.glsl-7358bee6.js +65 -0
  142. package/dist/OverrideHelper-212a5126.js +242 -0
  143. package/dist/PBFDecoderWorker-f2ab98a5.js +213 -0
  144. package/dist/PointCloudLayer-fed28318.js +197 -0
  145. package/dist/PointCloudUniqueValueRenderer-8fd8d64d.js +115 -0
  146. package/dist/PointCloudWorker-a23b7173.js +212 -0
  147. package/dist/PooledRBush-20fefa83.js +272 -0
  148. package/dist/Popup-8f89a4b0.js +3990 -0
  149. package/dist/PortalLayer-15420854.js +126 -0
  150. package/dist/Program-b10e4f81.js +694 -0
  151. package/dist/ProgramTemplate-e7665148.js +35 -0
  152. package/dist/QueryEngine-238072cd.js +896 -0
  153. package/dist/QueryTask-edf87068.js +119 -0
  154. package/dist/RasterSymbolizer-f981d3ba.js +3024 -0
  155. package/dist/RasterVFDisplayObject-e88aa01c.js +581 -0
  156. package/dist/RasterWorker-fc9be81c.js +78 -0
  157. package/dist/RawBlockCache-f74df003.js +185 -0
  158. package/dist/RealisticTree.glsl-3c15f4f4.js +42 -0
  159. package/dist/RefreshableLayer-f99ea584.js +80 -0
  160. package/dist/RefreshableLayerView-a78847ef.js +16 -0
  161. package/dist/Relationship-1b08c6d9.js +64 -0
  162. package/dist/RelationshipQuery-292ab835.js +22 -0
  163. package/dist/RenderingContext-010afb99.js +889 -0
  164. package/dist/RibbonLine.glsl-96dd8904.js +65 -0
  165. package/dist/RouteLayer-93ccdc64.js +786 -0
  166. package/dist/RouteLayerView2D-036ca001.js +195 -0
  167. package/dist/SDFHelper-474b4359.js +140 -0
  168. package/dist/SSAO.glsl-597bfb5a.js +43 -0
  169. package/dist/SSAOBlur.glsl-ee744d7c.js +42 -0
  170. package/dist/ScaleRangeLayer-6b36cfd2.js +21 -0
  171. package/dist/SceneLayer-a142d8c1.js +542 -0
  172. package/dist/SceneLayerSnappingSource-203b8842.js +218 -0
  173. package/dist/SceneLayerSnappingSourceWorker-67162926.js +112 -0
  174. package/dist/SceneLayerWorker-e925341d.js +164 -0
  175. package/dist/SceneService-3215551f.js +215 -0
  176. package/dist/Scheduler-202e661b.js +373 -0
  177. package/dist/ShadedColorMaterial.glsl-4c7b1e1c.js +64 -0
  178. package/dist/SnappingOperation-cb1044d4.js +48 -0
  179. package/dist/SourceLayerData-cd5f50cf.js +116 -0
  180. package/dist/SpatialFilter-aa7af35b.js +1701 -0
  181. package/dist/Stop-afd9fe95.js +281 -0
  182. package/dist/StreamLayer-1db3fd83.js +188 -0
  183. package/dist/StreamLayerView2D-2a13f0ad.js +164 -0
  184. package/dist/StyleRepository-2c73077a.js +2212 -0
  185. package/dist/SublayersOwner-dc253313.js +545 -0
  186. package/dist/SubtypeGroupLayer-19d730fa.js +514 -0
  187. package/dist/SubtypeGroupLayerView2D-104bd70d.js +84 -0
  188. package/dist/TechniqueInstance-34decb51.js +233 -0
  189. package/dist/TemporalLayer-52d34fa2.js +23 -0
  190. package/dist/Texture-cb75240c.js +501 -0
  191. package/dist/TextureOnly.glsl-a2ddac26.js +65 -0
  192. package/dist/Theme-b6e00d80.js +3426 -0
  193. package/dist/Tick-01633bcc.js +723 -0
  194. package/dist/TileContainer-456a6c78.js +31 -0
  195. package/dist/TileInfoTilemapCache-42af3194.js +38 -0
  196. package/dist/TileLayer-3185a118.js +194 -0
  197. package/dist/TileLayerView2D-c1a9ab1f.js +187 -0
  198. package/dist/TilemapCache-ae840560.js +189 -0
  199. package/dist/TimeInfo-8ce5e779.js +42 -0
  200. package/dist/TimeOnly-e45c6726.js +706 -0
  201. package/dist/Tooltip-900796b3.js +138 -0
  202. package/dist/TopFeaturesQuery-92ff83cb.js +32 -0
  203. package/dist/TurboLine-b4edfa68.js +565 -0
  204. package/dist/UniqueValueRenderer-cc2c9298.js +1039 -0
  205. package/dist/UnknownLayer-b54c2634.js +30 -0
  206. package/dist/UnknownTimeZone-6d259a58.js +15 -0
  207. package/dist/UnsupportedLayer-13022461.js +31 -0
  208. package/dist/UpdateTracking2D-f77879d5.js +8566 -0
  209. package/dist/Util-04115b51.js +57 -0
  210. package/dist/VectorTileLayer-f381cd0e.js +544 -0
  211. package/dist/VectorTileLayerView2D-39783058.js +2108 -0
  212. package/dist/Version-df01af53.js +33 -0
  213. package/dist/VertexArrayObject-4a28edd2.js +73 -0
  214. package/dist/VertexColor.glsl-bf92e50b.js +2683 -0
  215. package/dist/VertexSnappingCandidate-bb220191.js +13 -0
  216. package/dist/VideoLayerView2D-be563c2e.js +124 -0
  217. package/dist/VoxelLayer-9ef1de09.js +631 -0
  218. package/dist/WFSLayer-43b50b88.js +221 -0
  219. package/dist/WFSSourceWorker-3861ffe8.js +157 -0
  220. package/dist/WGLContainer-ba3d390b.js +5426 -0
  221. package/dist/WMSLayer-2c3e8bbb.js +536 -0
  222. package/dist/WMSLayerView2D-872ec260.js +117 -0
  223. package/dist/WMTSLayer-21f9aa9e.js +531 -0
  224. package/dist/WMTSLayerView2D-8c8c9c3d.js +142 -0
  225. package/dist/WebTileLayer-1bda1985.js +110 -0
  226. package/dist/WhereClause-51a4f26b.js +2766 -0
  227. package/dist/WorkerHandle-0d66bca5.js +47 -0
  228. package/dist/WorkerTileHandler-91c9d75f.js +1539 -0
  229. package/dist/action-6ef64f0d.js +198 -0
  230. package/dist/action-group-f7db2cb8.js +145 -0
  231. package/dist/action-menu-1c23d797.js +1759 -0
  232. package/dist/apng-505b988a.js +392 -0
  233. package/dist/arcade-4936d297.js +229 -0
  234. package/dist/arcadeAsyncRuntime-c1474281.js +943 -0
  235. package/dist/arcadeUtils-8a31964e.js +8741 -0
  236. package/dist/arcgis-knowledge-client-core-f86c91f8.js +1218 -0
  237. package/dist/arcgis-knowledge-client-core-simd-e02ddd33.js +1218 -0
  238. package/dist/arcgisLayers-5d572cf0.js +152 -0
  239. package/dist/associatedFeatureServiceUtils-20128e0c.js +92 -0
  240. package/dist/axisAngleDegrees-d983c0e6.js +49 -0
  241. package/dist/basis_transcoder-f72923c9.js +1248 -0
  242. package/dist/calcite-action-6b65bde9.js +22 -0
  243. package/dist/calcite-action-bar-602b20a2.js +303 -0
  244. package/dist/calcite-action-group-f80af24c.js +28 -0
  245. package/dist/calcite-button-38c49d10.js +228 -0
  246. package/dist/calcite-flow-043c21dc.js +128 -0
  247. package/dist/calcite-flow-item-2ea7fbc3.js +499 -0
  248. package/dist/calcite-icon-51a0aaf4.js +16 -0
  249. package/dist/calcite-input-d890b898.js +24 -0
  250. package/dist/calcite-label-e7ddaa7b.js +79 -0
  251. package/dist/calcite-list-32132747.js +2135 -0
  252. package/dist/calcite-list-item-1a0ebafe.js +576 -0
  253. package/dist/calcite-list-item-group-2a10423e.js +71 -0
  254. package/dist/calcite-loader-805f803d.js +14 -0
  255. package/dist/calcite-modal-c3c4c180.js +333 -0
  256. package/dist/calcite-notice-3c41230b.js +181 -0
  257. package/dist/calcite-option-771f300b.js +94 -0
  258. package/dist/calcite-scrim-69d80539.js +18 -0
  259. package/dist/calcite-select-0b7bcde9.js +231 -0
  260. package/dist/capabilities-db596b9a.js +50 -0
  261. package/dist/chartCommon-12c51a22.js +256 -0
  262. package/dist/chartUtilsAm5-bc078bfd.js +2954 -0
  263. package/dist/clientSideDefaults-d761554e.js +39 -0
  264. package/dist/colorRamps-fedcdeb0.js +38 -0
  265. package/dist/colorUtils-b3dcdea1.js +164 -0
  266. package/dist/commonProperties-c36fc1b2.js +60 -0
  267. package/dist/computeTranslationToOriginAndRotation-204021f3.js +60 -0
  268. package/dist/conditionalSlot-a3e31520.js +27 -0
  269. package/dist/createConnection-3faeec81.js +299 -0
  270. package/dist/dataUtils-cb1ddea6.js +1421 -0
  271. package/dist/deduplicate-8f04f299.js +89 -0
  272. package/dist/defaults-9d551b4c.js +31 -0
  273. package/dist/deleteForwardEdits-8ee7ac83.js +13 -0
  274. package/dist/diffUtils-f967bb01.js +90 -0
  275. package/dist/drapedUtils-228e1846.js +75 -0
  276. package/dist/earcut-ae826f5c.js +292 -0
  277. package/dist/edgeProcessing-34e7c554.js +252 -0
  278. package/dist/editingSupport-b2834350.js +203 -0
  279. package/dist/editsZScale-adebaa6e.js +37 -0
  280. package/dist/elevationInfoUtils-f7fb37da.js +126 -0
  281. package/dist/executeForIds-56bf8e1c.js +14 -0
  282. package/dist/executeForTopCount-b8ad20e2.js +17 -0
  283. package/dist/executeForTopExtents-976e5375.js +17 -0
  284. package/dist/executeForTopIds-42baedc4.js +17 -0
  285. package/dist/executeQueryJSON-61328699.js +15 -0
  286. package/dist/executeQueryPBF-98500b0b.js +152 -0
  287. package/dist/executeRelationshipQuery-61aff913.js +53 -0
  288. package/dist/executeTopFeaturesQuery-9a82f5f3.js +18 -0
  289. package/dist/featureConversionUtils-90914512.js +479 -0
  290. package/dist/featureLayerUtils-6fd62a19.js +142 -0
  291. package/dist/featureLayerUtils-f9a404fc.js +250 -0
  292. package/dist/featureSetUtils-41c6b2f3.js +2530 -0
  293. package/dist/featuresetbase-abf82e92.js +707 -0
  294. package/dist/featuresetgeom-640a61c3.js +99 -0
  295. package/dist/featuresetstats-8bc29826.js +81 -0
  296. package/dist/featuresetstring-cf27255d.js +95 -0
  297. package/dist/fetchService-bc7cad88.js +33 -0
  298. package/dist/fieldProperties-917b162f.js +33 -0
  299. package/dist/floatRGBA-d8908329.js +20 -0
  300. package/dist/form-607b9626.js +138 -0
  301. package/dist/geohashUtils-ae9fb003.js +85 -0
  302. package/dist/geojson-e6282c6a.js +208 -0
  303. package/dist/geomasync-c0ea0aa7.js +567 -0
  304. package/dist/geometryEngine-7390e3b3.js +192 -0
  305. package/dist/geometryEngineAsync-b05170d5.js +217 -0
  306. package/dist/geometryEngineBase-9072c29a.js +18463 -0
  307. package/dist/geometryEngineJSON-046aae14.js +171 -0
  308. package/dist/geometryEngineJSON-7d93793c.js +46 -0
  309. package/dist/geometryEngineWorker-df16b723.js +11 -0
  310. package/dist/geometryServiceUtils-1bad18fc.js +28 -0
  311. package/dist/georeference-eeac5784.js +291 -0
  312. package/dist/gif-7db917ae.js +323 -0
  313. package/dist/gltfexport-e3ee23db.js +705 -0
  314. package/dist/groupLayerUtils-67593437.js +39 -0
  315. package/dist/heatmapUtils-ae60011e.js +45 -0
  316. package/dist/highlightReasons-79f118f3.js +19 -0
  317. package/dist/hydrated-22569b31.js +40 -0
  318. package/dist/i3s-b4dc6f5b.js +809 -0
  319. package/dist/icon-fdee8ce8.js +127 -0
  320. package/dist/imageBitmapUtils-0795b2e3.js +23 -0
  321. package/dist/imageUtils-7c670dc9.js +69 -0
  322. package/dist/imageUtils-d22dd4e3.js +89 -0
  323. package/dist/imageryUtils-04032523.js +43 -0
  324. package/dist/index-4ead5b97.js +45620 -0
  325. package/dist/index.js +1 -1
  326. package/dist/input-message-fbaeb21b.js +92 -0
  327. package/dist/input2-2ec70595.js +575 -0
  328. package/dist/interactive-c1bc656f.js +80 -0
  329. package/dist/jsonContext-4c9c02ed.js +15 -0
  330. package/dist/jsonUtils-0c0893e4.js +59 -0
  331. package/dist/jsonUtils-2a454e30.js +86 -0
  332. package/dist/jsonUtils-fbd6d2d1.js +476 -0
  333. package/dist/kmlUtils-a32aa47a.js +112 -0
  334. package/dist/knowledgeGraphService-101bc4f6.js +739 -0
  335. package/dist/knowledgegraph-ce7c5d70.js +149 -0
  336. package/dist/labelUtils-31fc2428.js +61 -0
  337. package/dist/labelingInfo-419c11be.js +46 -0
  338. package/dist/layersCreator-cebbca3b.js +151 -0
  339. package/dist/layersLoader-5716d75b.js +197 -0
  340. package/dist/lazyLayerLoader-5ff9f8c9.js +10 -0
  341. package/dist/lclayout-d0707534.js +773 -0
  342. package/dist/lengthUtils-21f99608.js +5 -0
  343. package/dist/lerc-wasm-18fff7e7.js +325 -0
  344. package/dist/libtess-asm-474d4b9b.js +3673 -0
  345. package/dist/libtess-f1671ade.js +269 -0
  346. package/dist/lineSegment-d41123bf.js +76 -0
  347. package/dist/loadGLTFMesh-6d8a092c.js +181 -0
  348. package/dist/loadable-553a7b4e.js +24 -0
  349. package/dist/loader-99571a46.js +79 -0
  350. package/dist/lyr3DWorker-416274fd.js +2108 -0
  351. package/dist/mapViewDeps-b8386f18.js +3052 -0
  352. package/dist/mediaLayerUtils-1a221c09.js +35 -0
  353. package/dist/meshFeatureSet-224c37f2.js +126 -0
  354. package/dist/meshVertexSpaceUtils-e2d0f6c0.js +58 -0
  355. package/dist/multidimensionalUtils-8762b51c.js +290 -0
  356. package/dist/normalizeUtilsSync-ceab37a3.js +181 -0
  357. package/dist/number-5cf3efeb.js +128 -0
  358. package/dist/objectResourceUtils-2731784f.js +1455 -0
  359. package/dist/observers-260de394.js +30 -0
  360. package/dist/ogcFeatureUtils-ae65de93.js +206 -0
  361. package/dist/openCloseComponent-7bc5e135.js +37 -0
  362. package/dist/orientedBoundingBox-57ea94d0.js +447 -0
  363. package/dist/parser-bab9c2ce.js +488 -0
  364. package/dist/pbf-e5c31775.js +215 -0
  365. package/dist/pbfQueryUtils-0b522562.js +422 -0
  366. package/dist/pe-wasm-c515cbab.js +887 -0
  367. package/dist/persistable-9c618c27.js +89 -0
  368. package/dist/perspectiveUtils-e44e8d7d.js +42 -0
  369. package/dist/pieChart-a7decaf1.js +555 -0
  370. package/dist/plane-e6309fb6.js +160 -0
  371. package/dist/popupUtils-3e3652c3.js +50 -0
  372. package/dist/popupUtils-91a6593a.js +22 -0
  373. package/dist/portalItemUtils-9fe0753b.js +57 -0
  374. package/dist/portalLayers-c4780447.js +312 -0
  375. package/dist/portalUtils-dc516580.js +7 -0
  376. package/dist/programUtils-af41c65f.js +59 -0
  377. package/dist/project-5431a252.js +21 -0
  378. package/dist/projectPointToVector-0079622b.js +14 -0
  379. package/dist/projectVectorToVector-f0efb06b.js +13 -0
  380. package/dist/quantityUtils-de778fce.js +33 -0
  381. package/dist/quantizationUtils-2be4bff3.js +68 -0
  382. package/dist/quat-c6160033.js +104 -0
  383. package/dist/query-fcb1a91d.js +89 -0
  384. package/dist/queryAttachments-97b9756a.js +39 -0
  385. package/dist/queryEngineUtils-95bf7d7c.js +21 -0
  386. package/dist/queryTopFeatures-ce8d1ecc.js +50 -0
  387. package/dist/queryZScale-201978da.js +12 -0
  388. package/dist/rasterProjectionHelper-29c41430.js +577 -0
  389. package/dist/rasterUtils-9175fa83.js +122 -0
  390. package/dist/rasterizingUtils-83fc560b.js +46 -0
  391. package/dist/request-a1e40067.js +46 -0
  392. package/dist/requestImageUtils-176ebc00.js +8 -0
  393. package/dist/resourceExtension-7fe8f270.js +17 -0
  394. package/dist/resourceUtils-318f1fd0.js +62 -0
  395. package/dist/resourceUtils-bf624bf9.js +69 -0
  396. package/dist/resourceUtils-cba1effe.js +42 -0
  397. package/dist/saveAPIKeyUtils-c407e113.js +8 -0
  398. package/dist/saveUtils-9d95f409.js +24 -0
  399. package/dist/scaleUtils-0293f229.js +23 -0
  400. package/dist/scrim-c147b918.js +114 -0
  401. package/dist/serviceCapabilitiesUtils-98603a14.js +64 -0
  402. package/dist/sourceUtils-eec26b0e.js +71 -0
  403. package/dist/sphere-5e0ae541.js +199 -0
  404. package/dist/statsWorker-7a85b336.js +37 -0
  405. package/dist/streamLayerUtils-1b89041d.js +31 -0
  406. package/dist/style.css +1 -1
  407. package/dist/styleUtils-a42848e6.js +14 -0
  408. package/dist/styleUtils-b62393b9.js +75 -0
  409. package/dist/sublayerUtils-398c21ad.js +37 -0
  410. package/dist/substitute-011c53db.js +52 -0
  411. package/dist/symbolColorUtils-37d56009.js +8 -0
  412. package/dist/symbolLayerUtils-864ff340.js +31 -0
  413. package/dist/symbologySnappingCandidates-8de8e353.js +221 -0
  414. package/dist/t9n-d9b9c6cb.js +349 -0
  415. package/dist/testSVGPremultipliedAlpha-10b2acab.js +94 -0
  416. package/dist/timeSupport-97c324f3.js +410 -0
  417. package/dist/triangle-558b5e1a.js +98 -0
  418. package/dist/unitConversionUtils-c6c847c9.js +17 -0
  419. package/dist/unitFormatUtils-b34af073.js +40 -0
  420. package/dist/uploadAssetErrors-f4548e09.js +70 -0
  421. package/dist/uploadAssets-2cf4f3df.js +330 -0
  422. package/dist/utils-2aa1ef8c.js +34 -0
  423. package/dist/utils-4e8b0dcd.js +91 -0
  424. package/dist/utils-514bee8e.js +73 -0
  425. package/dist/utils-7d755f59.js +433 -0
  426. package/dist/utils-8b01c610.js +232 -0
  427. package/dist/utils-9210b64d.js +79 -0
  428. package/dist/utils-b1ab6c91.js +419 -0
  429. package/dist/utils-f5731fc4.js +2746 -0
  430. package/dist/utils3-f341d95b.js +75 -0
  431. package/dist/vec3-7da55ff1.js +81 -0
  432. package/dist/vec42-689e76ac.js +125 -0
  433. package/dist/versionUtils-d824fad7.js +161 -0
  434. package/dist/visualVariableUtils-88773652.js +267 -0
  435. package/dist/webStyleSymbolUtils-c596a4f1.js +48 -0
  436. package/dist/webglDeps-f821d060.js +23 -0
  437. package/dist/wfsUtils-bfa5d7fa.js +343 -0
  438. package/dist/workerHelper-b0f47acf.js +11 -0
  439. package/dist/xyChart-a2e4acb8.js +3335 -0
  440. package/package.json +1 -1
  441. package/dist/AGraphicContainer-b6e32ab3.js +0 -109
  442. package/dist/APIKeyMixin-83218bd5.js +0 -19
  443. package/dist/Analysis-8c5616ab.js +0 -31
  444. package/dist/ArcGISCachedService-8da73861.js +0 -47
  445. package/dist/ArcGISService-1e7483eb.js +0 -25
  446. package/dist/AreaMeasurement2D-ee78c5ab.js +0 -405
  447. package/dist/AreaMeasurement3D-098fd9ea.js +0 -488
  448. package/dist/AttachmentInfo-1b2ece0a.js +0 -34
  449. package/dist/AttachmentQuery-470d5a03.js +0 -18
  450. package/dist/AttributeStore-f80857be.js +0 -1707
  451. package/dist/BaseDynamicLayerView2D-a5f201d7.js +0 -63
  452. package/dist/BingMapsLayer-4c95d39c.js +0 -112
  453. package/dist/Bitmap-d7c41f66.js +0 -128
  454. package/dist/BitmapContainer-af419f59.js +0 -23
  455. package/dist/BlendLayer-ced1717f.js +0 -13
  456. package/dist/BoundsStore-030e1112.js +0 -63
  457. package/dist/BufferObject-6f0ccf08.js +0 -100
  458. package/dist/BufferView-83825b1b.js +0 -683
  459. package/dist/BuildingSceneLayer-67d67dd9.js +0 -535
  460. package/dist/Button-b96d4e96.js +0 -36
  461. package/dist/CSVLayer-0d54cccb.js +0 -208
  462. package/dist/CSVSourceWorker-00c7e147.js +0 -367
  463. package/dist/CatalogDynamicGroupLayerView2D-e1b747eb.js +0 -66
  464. package/dist/CatalogFootprintLayerView2D-4d654b8c.js +0 -76
  465. package/dist/CatalogLayer-fdcebf46.js +0 -262
  466. package/dist/CatalogLayerView2D-d872dec4.js +0 -52
  467. package/dist/ClassBreaksDefinition-0f6902fe.js +0 -18
  468. package/dist/ColorMaterial.glsl-0f79d1d3.js +0 -64
  469. package/dist/ColorSet-1f170190.js +0 -45
  470. package/dist/ColorStop-81b2ebbf.js +0 -29
  471. package/dist/Container-5cca9103.js +0 -521
  472. package/dist/CustomParametersMixin-fa9fc8f5.js +0 -12
  473. package/dist/DefaultMaterial.glsl-ea170d90.js +0 -42
  474. package/dist/DefaultMaterial_COLOR_GAMMA-e9199fb6.js +0 -653
  475. package/dist/DefaultTheme-e76e0ce4.js +0 -130
  476. package/dist/DeleteForwardEditsParameters-114413db.js +0 -18
  477. package/dist/DimensionLayer-5caa9d6d.js +0 -129
  478. package/dist/DirectLineMeasurement3D-6d3a316a.js +0 -449
  479. package/dist/DistanceMeasurement2D-7090d647.js +0 -303
  480. package/dist/DoubleArray-40bc6f82.js +0 -25
  481. package/dist/EdgeProcessingWorker-94aed8c4.js +0 -63
  482. package/dist/EditBusLayer-dcf477a3.js +0 -107
  483. package/dist/ElevationInfo-a456026a.js +0 -56
  484. package/dist/ElevationLayer-6061b8f4.js +0 -129
  485. package/dist/ElevationQuery-ec17e2cc.js +0 -598
  486. package/dist/ElevationSamplerWorker-beaaeaeb.js +0 -62
  487. package/dist/ExportImageParameters-56040230.js +0 -66
  488. package/dist/ExportStrategy-7d1b4a0c.js +0 -93
  489. package/dist/ExportWMSImageParameters-0b3d33ed.js +0 -33
  490. package/dist/External-9a57bcf0.js +0 -110
  491. package/dist/FeatureCollectionSnappingSource-b589f9ce.js +0 -130
  492. package/dist/FeatureCommandQueue-d1572e0d.js +0 -1244
  493. package/dist/FeatureEffect-20d94762.js +0 -39
  494. package/dist/FeatureEffectLayer-017997f2.js +0 -13
  495. package/dist/FeatureFilter-73c8c240.js +0 -27
  496. package/dist/FeatureLayer-ecf9f4ea.js +0 -693
  497. package/dist/FeatureLayerBase-1ffc64a0.js +0 -148
  498. package/dist/FeatureLayerSource-0acdac77.js +0 -444
  499. package/dist/FeatureLayerView2D-6f0d2580.js +0 -1967
  500. package/dist/FeaturePipelineWorker-77d06d4f.js +0 -3633
  501. package/dist/FeatureReductionLayer-203415cc.js +0 -225
  502. package/dist/FeatureReductionSelection-4ba3cfda.js +0 -22
  503. package/dist/FeatureServiceSnappingSource-90c5e877.js +0 -481
  504. package/dist/FeatureServiceSnappingSourceWorker-9f33d320.js +0 -747
  505. package/dist/FeatureSet-29d82bc9.js +0 -188
  506. package/dist/FeatureStore-9d48217b.js +0 -131
  507. package/dist/FeatureTemplate-79cf9cb6.js +0 -12
  508. package/dist/FeatureType-30eece24.js +0 -25
  509. package/dist/FieldsIndex-7d8f3589.js +0 -109
  510. package/dist/FormTemplate-18b193a8.js +0 -350
  511. package/dist/GeoJSONLayer-d2677013.js +0 -236
  512. package/dist/GeoJSONSourceWorker-4571c9d5.js +0 -247
  513. package/dist/GeoRSSLayer-320f17b2.js +0 -73
  514. package/dist/GeoRSSLayerView2D-4683eb47.js +0 -140
  515. package/dist/GeometryUtils-b855940e.js +0 -403
  516. package/dist/GraphicContainer-9bd07fb2.js +0 -26
  517. package/dist/GraphicManipulator-e96e9aa3.js +0 -1499
  518. package/dist/GraphicsLayer-964ed1f0.js +0 -38
  519. package/dist/GraphicsLayerView2D-83766b4b.js +0 -114
  520. package/dist/GraphicsSnappingSource-0bf5350b.js +0 -273
  521. package/dist/GraphicsView2D-3103ed12.js +0 -620
  522. package/dist/GroupLayer-2c099630.js +0 -147
  523. package/dist/GroupLayerView2D-abb8b6d5.js +0 -98
  524. package/dist/HUDMaterial.glsl-6e206016.js +0 -65
  525. package/dist/HighlightCounter-1d4774e1.js +0 -41
  526. package/dist/HighlightGraphicContainer-de26900b.js +0 -18
  527. package/dist/I3SBinaryReader-63c12e1b.js +0 -310
  528. package/dist/I3SLayerDefinitions-d0aa8265.js +0 -55
  529. package/dist/I3SUtil-277467e8.js +0 -59
  530. package/dist/IdentityManager-a1b54522.js +0 -899
  531. package/dist/ImageHistogramParameters-47cf0f1b.js +0 -905
  532. package/dist/ImageryLayer-89c92097.js +0 -1799
  533. package/dist/ImageryLayerView2D-e0c5549a.js +0 -352
  534. package/dist/ImageryTileLayer-c38364f3.js +0 -2157
  535. package/dist/ImageryTileLayerView2D-f659a87c.js +0 -1110
  536. package/dist/Indices-29975728.js +0 -67
  537. package/dist/IntegratedMesh3DTilesLayer-8b851e87.js +0 -112
  538. package/dist/IntegratedMeshLayer-9ed738ba.js +0 -141
  539. package/dist/InteractiveAnalysisViewModel-c95e13c5.js +0 -7397
  540. package/dist/InterleavedLayout-f5e6ee23.js +0 -163
  541. package/dist/KMLLayer-3662a890.js +0 -162
  542. package/dist/KMLLayerView2D-3d172b6a.js +0 -253
  543. package/dist/KnowledgeGraphLayerView2D-086160b5.js +0 -43
  544. package/dist/LRUCache-948c7d75.js +0 -32
  545. package/dist/LabelClass-c0694878.js +0 -135
  546. package/dist/LabelMetric-39280634.js +0 -400
  547. package/dist/LaserlinePath.glsl-205f0e8a.js +0 -64
  548. package/dist/Laserlines.glsl-6f09c43e.js +0 -65
  549. package/dist/LayerFloorInfo-308449b6.js +0 -15
  550. package/dist/LayerView-2b3b1a70.js +0 -206
  551. package/dist/LercWorker-b007ee29.js +0 -157
  552. package/dist/LineOfSightLayer-99b48ebf.js +0 -147
  553. package/dist/LinkChartLayer-d69e2e36.js +0 -1027
  554. package/dist/Lyr3DWorker-2fdd578b.js +0 -82
  555. package/dist/MagnifierPrograms-5042ccad.js +0 -806
  556. package/dist/MapImageLayer-f3e35db3.js +0 -169
  557. package/dist/MapImageLayerView2D-98cfaffb.js +0 -146
  558. package/dist/MapNotesLayer-6942570f.js +0 -283
  559. package/dist/MapNotesLayerView2D-b641bba4.js +0 -161
  560. package/dist/MapServiceLayerViewHelper-9111fb4f.js +0 -288
  561. package/dist/MeasurementWidgetContent-a66f382a.js +0 -2642
  562. package/dist/MediaLayer-585e1067.js +0 -523
  563. package/dist/MediaLayerView2D-74d90bf4.js +0 -332
  564. package/dist/MemCache-1532e921.js +0 -227
  565. package/dist/MemorySourceWorker-ba059303.js +0 -222
  566. package/dist/Mesh-43d631db.js +0 -980
  567. package/dist/MeshLocalVertexSpace-f9cc6881.js +0 -19
  568. package/dist/MultiOriginJSONSupport-ec8788e6.js +0 -158
  569. package/dist/OGCFeatureLayer-5e327659.js +0 -211
  570. package/dist/OGCFeatureLayerView2D-d0104fdc.js +0 -82
  571. package/dist/ObjectStack-2d389b76.js +0 -21
  572. package/dist/Octree-1dba17ba.js +0 -495
  573. package/dist/OpenStreetMapLayer-dc083119.js +0 -30
  574. package/dist/OperationalLayer-d43d80b1.js +0 -44
  575. package/dist/OrderByInfo-26301234.js +0 -16
  576. package/dist/OrderedLayer-36fe0e60.js +0 -26
  577. package/dist/OrientedImageryLayer-21689d88.js +0 -216
  578. package/dist/OverlayCompositing.glsl-f80836ca.js +0 -65
  579. package/dist/OverrideHelper-880a7e09.js +0 -242
  580. package/dist/PBFDecoderWorker-b5f6d890.js +0 -213
  581. package/dist/PointCloudLayer-899f6a49.js +0 -197
  582. package/dist/PointCloudUniqueValueRenderer-8a477087.js +0 -115
  583. package/dist/PointCloudWorker-4bea79e8.js +0 -212
  584. package/dist/PooledRBush-df73bc2a.js +0 -272
  585. package/dist/Popup-e01092b4.js +0 -3990
  586. package/dist/PortalLayer-daca6a23.js +0 -126
  587. package/dist/Program-8b1e5f48.js +0 -694
  588. package/dist/ProgramTemplate-e4360f44.js +0 -35
  589. package/dist/QueryEngine-ca1511e3.js +0 -896
  590. package/dist/QueryTask-c9fa71fa.js +0 -119
  591. package/dist/RasterSymbolizer-1644d7a7.js +0 -3024
  592. package/dist/RasterVFDisplayObject-7ec19876.js +0 -581
  593. package/dist/RasterWorker-2d320094.js +0 -78
  594. package/dist/RawBlockCache-86e6c5d3.js +0 -185
  595. package/dist/RealisticTree.glsl-65abf4e9.js +0 -42
  596. package/dist/RefreshableLayer-a0708abb.js +0 -80
  597. package/dist/RefreshableLayerView-2b6aca24.js +0 -16
  598. package/dist/Relationship-ef9ae528.js +0 -64
  599. package/dist/RelationshipQuery-8a39148b.js +0 -22
  600. package/dist/RenderingContext-e718bfed.js +0 -889
  601. package/dist/RibbonLine.glsl-e82fb3bb.js +0 -65
  602. package/dist/RouteLayer-06ecd24a.js +0 -786
  603. package/dist/RouteLayerView2D-26c96396.js +0 -195
  604. package/dist/SDFHelper-70cff23b.js +0 -140
  605. package/dist/SSAO.glsl-54f15911.js +0 -43
  606. package/dist/SSAOBlur.glsl-cbd829bc.js +0 -42
  607. package/dist/ScaleRangeLayer-dc6d9c0e.js +0 -21
  608. package/dist/SceneLayer-255b45af.js +0 -542
  609. package/dist/SceneLayerSnappingSource-8969a32e.js +0 -218
  610. package/dist/SceneLayerSnappingSourceWorker-17673240.js +0 -112
  611. package/dist/SceneLayerWorker-46a764a8.js +0 -164
  612. package/dist/SceneService-bbc3f4e5.js +0 -215
  613. package/dist/Scheduler-e3ad50f2.js +0 -373
  614. package/dist/ShadedColorMaterial.glsl-8e194f81.js +0 -64
  615. package/dist/SnappingOperation-d12c0cd0.js +0 -48
  616. package/dist/SourceLayerData-054d8bb6.js +0 -116
  617. package/dist/SpatialFilter-ba146c95.js +0 -1701
  618. package/dist/Stop-38c9a9d4.js +0 -281
  619. package/dist/StreamLayer-9d300b87.js +0 -188
  620. package/dist/StreamLayerView2D-d80b90e9.js +0 -164
  621. package/dist/StyleRepository-e8c44bab.js +0 -2212
  622. package/dist/SublayersOwner-469b921a.js +0 -545
  623. package/dist/SubtypeGroupLayer-e467307a.js +0 -514
  624. package/dist/SubtypeGroupLayerView2D-41ed7e6f.js +0 -84
  625. package/dist/TechniqueInstance-9c0d4dcf.js +0 -233
  626. package/dist/TemporalLayer-011ac13a.js +0 -23
  627. package/dist/Texture-b28260ca.js +0 -501
  628. package/dist/TextureOnly.glsl-87d0e898.js +0 -65
  629. package/dist/Theme-bf54db6d.js +0 -3426
  630. package/dist/Tick-5be5a637.js +0 -723
  631. package/dist/TileContainer-09ca940a.js +0 -31
  632. package/dist/TileInfoTilemapCache-26485a76.js +0 -38
  633. package/dist/TileLayer-b0580f1d.js +0 -194
  634. package/dist/TileLayerView2D-e4561937.js +0 -187
  635. package/dist/TilemapCache-d2163c80.js +0 -189
  636. package/dist/TimeInfo-68d2df8b.js +0 -42
  637. package/dist/TimeOnly-bb600899.js +0 -706
  638. package/dist/Tooltip-927072f3.js +0 -138
  639. package/dist/TopFeaturesQuery-77f00fe7.js +0 -32
  640. package/dist/TurboLine-87dd880a.js +0 -565
  641. package/dist/UniqueValueRenderer-56a91680.js +0 -1039
  642. package/dist/UnknownLayer-6b7b3c5d.js +0 -30
  643. package/dist/UnknownTimeZone-e62caf07.js +0 -15
  644. package/dist/UnsupportedLayer-16a90c0a.js +0 -31
  645. package/dist/UpdateTracking2D-bf4e8a89.js +0 -8566
  646. package/dist/Util-6762e3c9.js +0 -57
  647. package/dist/VectorTileLayer-3c42b01b.js +0 -544
  648. package/dist/VectorTileLayerView2D-3af619aa.js +0 -2108
  649. package/dist/Version-9c75ca2b.js +0 -33
  650. package/dist/VertexArrayObject-e736d4c8.js +0 -73
  651. package/dist/VertexColor.glsl-69e78e7a.js +0 -2683
  652. package/dist/VertexSnappingCandidate-10823eb3.js +0 -13
  653. package/dist/VideoLayerView2D-68e687b0.js +0 -124
  654. package/dist/VoxelLayer-76005caf.js +0 -631
  655. package/dist/WFSLayer-398b281f.js +0 -221
  656. package/dist/WFSSourceWorker-7506acff.js +0 -157
  657. package/dist/WGLContainer-f2c4f5da.js +0 -5426
  658. package/dist/WMSLayer-6fbfc745.js +0 -536
  659. package/dist/WMSLayerView2D-63dda194.js +0 -117
  660. package/dist/WMTSLayer-6492359f.js +0 -531
  661. package/dist/WMTSLayerView2D-5daae3fe.js +0 -142
  662. package/dist/WebTileLayer-5f7595df.js +0 -110
  663. package/dist/WhereClause-a8fc45da.js +0 -2766
  664. package/dist/WorkerHandle-11931750.js +0 -47
  665. package/dist/WorkerTileHandler-b53b5efc.js +0 -1539
  666. package/dist/action-b5c3b319.js +0 -198
  667. package/dist/action-group-01e02696.js +0 -145
  668. package/dist/action-menu-e0ddae4e.js +0 -1759
  669. package/dist/apng-9d467a98.js +0 -392
  670. package/dist/arcade-71dc610e.js +0 -229
  671. package/dist/arcadeAsyncRuntime-146d9fb6.js +0 -943
  672. package/dist/arcadeUtils-f7ed3399.js +0 -8741
  673. package/dist/arcgis-knowledge-client-core-b8fef5b0.js +0 -1218
  674. package/dist/arcgis-knowledge-client-core-simd-d54c7150.js +0 -1218
  675. package/dist/arcgisLayers-8d42568b.js +0 -152
  676. package/dist/associatedFeatureServiceUtils-c50f28e9.js +0 -92
  677. package/dist/axisAngleDegrees-ea89c136.js +0 -49
  678. package/dist/basis_transcoder-39fbc6ae.js +0 -1248
  679. package/dist/calcite-action-264e28ab.js +0 -22
  680. package/dist/calcite-action-bar-6ec66445.js +0 -303
  681. package/dist/calcite-action-group-85d021dc.js +0 -28
  682. package/dist/calcite-button-8a5af2ce.js +0 -228
  683. package/dist/calcite-flow-9b5e43fd.js +0 -128
  684. package/dist/calcite-flow-item-0089f891.js +0 -499
  685. package/dist/calcite-icon-c20a8db7.js +0 -16
  686. package/dist/calcite-input-24e48df5.js +0 -24
  687. package/dist/calcite-label-9e4dcb66.js +0 -79
  688. package/dist/calcite-list-711dcec1.js +0 -2135
  689. package/dist/calcite-list-item-1a29c5f1.js +0 -576
  690. package/dist/calcite-list-item-group-b69dedb8.js +0 -71
  691. package/dist/calcite-loader-e8b209f6.js +0 -14
  692. package/dist/calcite-modal-5e518e4c.js +0 -333
  693. package/dist/calcite-notice-25463d4d.js +0 -181
  694. package/dist/calcite-option-113080c1.js +0 -94
  695. package/dist/calcite-scrim-423337f4.js +0 -18
  696. package/dist/calcite-select-cd1e7e86.js +0 -231
  697. package/dist/capabilities-e7ea2422.js +0 -50
  698. package/dist/chartCommon-beb757c5.js +0 -256
  699. package/dist/chartUtilsAm5-6eaf385e.js +0 -2954
  700. package/dist/clientSideDefaults-366deb67.js +0 -39
  701. package/dist/colorRamps-4ea8b8f7.js +0 -38
  702. package/dist/colorUtils-611a3fa1.js +0 -164
  703. package/dist/commonProperties-3f86f534.js +0 -60
  704. package/dist/computeTranslationToOriginAndRotation-db6fb1b6.js +0 -60
  705. package/dist/conditionalSlot-4bf2837a.js +0 -27
  706. package/dist/createConnection-0754c362.js +0 -299
  707. package/dist/dataUtils-ebb55aab.js +0 -1421
  708. package/dist/deduplicate-af05e046.js +0 -89
  709. package/dist/defaults-f025f8a3.js +0 -31
  710. package/dist/deleteForwardEdits-0b666266.js +0 -13
  711. package/dist/diffUtils-b887dbbc.js +0 -90
  712. package/dist/drapedUtils-82fba1a5.js +0 -75
  713. package/dist/earcut-da8e2a55.js +0 -292
  714. package/dist/edgeProcessing-d7499657.js +0 -252
  715. package/dist/editingSupport-4b7813cf.js +0 -203
  716. package/dist/editsZScale-4a6ee4aa.js +0 -37
  717. package/dist/elevationInfoUtils-c20557cb.js +0 -126
  718. package/dist/executeForIds-6a55aa95.js +0 -14
  719. package/dist/executeForTopCount-7ffc37ac.js +0 -17
  720. package/dist/executeForTopExtents-191307d3.js +0 -17
  721. package/dist/executeForTopIds-f644d448.js +0 -17
  722. package/dist/executeQueryJSON-c5616d7b.js +0 -15
  723. package/dist/executeQueryPBF-807fb886.js +0 -152
  724. package/dist/executeRelationshipQuery-d5a1463b.js +0 -53
  725. package/dist/executeTopFeaturesQuery-6bb737a8.js +0 -18
  726. package/dist/featureConversionUtils-8fd0a407.js +0 -479
  727. package/dist/featureLayerUtils-37c96c26.js +0 -250
  728. package/dist/featureLayerUtils-cd009ccc.js +0 -142
  729. package/dist/featureSetUtils-f54946cf.js +0 -2530
  730. package/dist/featuresetbase-5a262736.js +0 -707
  731. package/dist/featuresetgeom-b772f260.js +0 -99
  732. package/dist/featuresetstats-fecaae94.js +0 -81
  733. package/dist/featuresetstring-8d32b66d.js +0 -95
  734. package/dist/fetchService-41c786e9.js +0 -33
  735. package/dist/fieldProperties-0a31a020.js +0 -33
  736. package/dist/floatRGBA-bcce207e.js +0 -20
  737. package/dist/form-8bc80cb2.js +0 -138
  738. package/dist/geohashUtils-5b115834.js +0 -85
  739. package/dist/geojson-33ba4718.js +0 -208
  740. package/dist/geomasync-9ccbb40e.js +0 -567
  741. package/dist/geometryEngine-5d1edffb.js +0 -192
  742. package/dist/geometryEngineAsync-65f20167.js +0 -217
  743. package/dist/geometryEngineBase-4107554c.js +0 -18463
  744. package/dist/geometryEngineJSON-96ac95b3.js +0 -46
  745. package/dist/geometryEngineJSON-fecd2377.js +0 -171
  746. package/dist/geometryEngineWorker-3cc93f48.js +0 -11
  747. package/dist/geometryServiceUtils-99ffac76.js +0 -28
  748. package/dist/georeference-597e7b2a.js +0 -291
  749. package/dist/gif-24ef6c2c.js +0 -323
  750. package/dist/gltfexport-f5557b01.js +0 -705
  751. package/dist/groupLayerUtils-429ce1be.js +0 -39
  752. package/dist/heatmapUtils-582b52e1.js +0 -45
  753. package/dist/highlightReasons-6f0f9ef6.js +0 -19
  754. package/dist/hydrated-31a838fb.js +0 -40
  755. package/dist/i3s-3437a8f0.js +0 -809
  756. package/dist/icon-6764e79e.js +0 -127
  757. package/dist/imageBitmapUtils-d56cd963.js +0 -23
  758. package/dist/imageUtils-5fc5f2e1.js +0 -69
  759. package/dist/imageUtils-d0a1bdd3.js +0 -89
  760. package/dist/imageryUtils-31c938b0.js +0 -43
  761. package/dist/index-a8d87ec0.js +0 -45604
  762. package/dist/input-message-067fbc56.js +0 -92
  763. package/dist/input2-d25d1697.js +0 -575
  764. package/dist/interactive-79c8f5d7.js +0 -80
  765. package/dist/jsonContext-b5489a22.js +0 -15
  766. package/dist/jsonUtils-34961e68.js +0 -86
  767. package/dist/jsonUtils-65dc6fdf.js +0 -476
  768. package/dist/jsonUtils-980c608d.js +0 -59
  769. package/dist/kmlUtils-b1b9817a.js +0 -112
  770. package/dist/knowledgeGraphService-53d3ffbb.js +0 -739
  771. package/dist/knowledgegraph-bd84abd0.js +0 -149
  772. package/dist/labelUtils-333abe25.js +0 -61
  773. package/dist/labelingInfo-6d452fa4.js +0 -46
  774. package/dist/layersCreator-2cc797a3.js +0 -151
  775. package/dist/layersLoader-028db48b.js +0 -197
  776. package/dist/lazyLayerLoader-2dd5721b.js +0 -10
  777. package/dist/lclayout-44591238.js +0 -773
  778. package/dist/lengthUtils-7339106c.js +0 -5
  779. package/dist/lerc-wasm-49e10ccb.js +0 -325
  780. package/dist/libtess-asm-ac16428b.js +0 -3673
  781. package/dist/libtess-f4e34dcf.js +0 -269
  782. package/dist/lineSegment-0e4aefd8.js +0 -76
  783. package/dist/loadGLTFMesh-4afc2514.js +0 -181
  784. package/dist/loadable-a2fd544f.js +0 -24
  785. package/dist/loader-fbae5e8f.js +0 -79
  786. package/dist/lyr3DWorker-1fc30357.js +0 -2108
  787. package/dist/mapViewDeps-59a6c6c7.js +0 -3052
  788. package/dist/mediaLayerUtils-642a4077.js +0 -35
  789. package/dist/meshFeatureSet-91312223.js +0 -126
  790. package/dist/meshVertexSpaceUtils-48eddc77.js +0 -58
  791. package/dist/multidimensionalUtils-705f0902.js +0 -290
  792. package/dist/normalizeUtilsSync-71d587bd.js +0 -181
  793. package/dist/number-063f85f4.js +0 -128
  794. package/dist/objectResourceUtils-0e881546.js +0 -1455
  795. package/dist/observers-745d564e.js +0 -30
  796. package/dist/ogcFeatureUtils-80329692.js +0 -206
  797. package/dist/openCloseComponent-1c398ac3.js +0 -37
  798. package/dist/orientedBoundingBox-a29567df.js +0 -447
  799. package/dist/parser-65ddb097.js +0 -488
  800. package/dist/pbf-b0a9807c.js +0 -215
  801. package/dist/pbfQueryUtils-3cd28b30.js +0 -422
  802. package/dist/pe-wasm-fe3a1187.js +0 -887
  803. package/dist/persistable-36a3796e.js +0 -89
  804. package/dist/perspectiveUtils-b75aeded.js +0 -42
  805. package/dist/pieChart-bc276742.js +0 -555
  806. package/dist/plane-79192909.js +0 -160
  807. package/dist/popupUtils-022834aa.js +0 -22
  808. package/dist/popupUtils-4b2bd688.js +0 -50
  809. package/dist/portalItemUtils-052627b4.js +0 -57
  810. package/dist/portalLayers-3be98e63.js +0 -312
  811. package/dist/portalUtils-b665fd61.js +0 -7
  812. package/dist/programUtils-00a4e18d.js +0 -59
  813. package/dist/project-032d84cf.js +0 -21
  814. package/dist/projectPointToVector-3a48d9a2.js +0 -14
  815. package/dist/projectVectorToVector-4c6a3902.js +0 -13
  816. package/dist/quantityUtils-a39f9287.js +0 -33
  817. package/dist/quantizationUtils-4616cce9.js +0 -68
  818. package/dist/quat-5e906b75.js +0 -104
  819. package/dist/query-2ab99d18.js +0 -89
  820. package/dist/queryAttachments-15a42419.js +0 -39
  821. package/dist/queryEngineUtils-ff4789cd.js +0 -21
  822. package/dist/queryTopFeatures-5eb3ccc9.js +0 -50
  823. package/dist/queryZScale-62422052.js +0 -12
  824. package/dist/rasterProjectionHelper-b605f2ee.js +0 -577
  825. package/dist/rasterUtils-f2036a08.js +0 -122
  826. package/dist/rasterizingUtils-0c9cf9ce.js +0 -46
  827. package/dist/request-00229175.js +0 -46
  828. package/dist/requestImageUtils-90da2619.js +0 -8
  829. package/dist/resourceExtension-eadbfa3f.js +0 -17
  830. package/dist/resourceUtils-28b3c1e8.js +0 -42
  831. package/dist/resourceUtils-4e9ccf63.js +0 -69
  832. package/dist/resourceUtils-666fad8a.js +0 -62
  833. package/dist/saveAPIKeyUtils-1a4f92e5.js +0 -8
  834. package/dist/saveUtils-5b62c0b1.js +0 -24
  835. package/dist/scaleUtils-6153583e.js +0 -23
  836. package/dist/scrim-6e0e08c4.js +0 -114
  837. package/dist/serviceCapabilitiesUtils-96f8d393.js +0 -64
  838. package/dist/sourceUtils-5aee3b16.js +0 -71
  839. package/dist/sphere-512478f6.js +0 -199
  840. package/dist/statsWorker-183f2d29.js +0 -37
  841. package/dist/streamLayerUtils-a1e8e58a.js +0 -31
  842. package/dist/styleUtils-49a8dabd.js +0 -14
  843. package/dist/styleUtils-52e000d6.js +0 -75
  844. package/dist/sublayerUtils-65a83d58.js +0 -37
  845. package/dist/substitute-0272cab6.js +0 -52
  846. package/dist/symbolColorUtils-261cba60.js +0 -8
  847. package/dist/symbolLayerUtils-e0203fd7.js +0 -31
  848. package/dist/symbologySnappingCandidates-eeda4ddf.js +0 -221
  849. package/dist/t9n-147b4f00.js +0 -349
  850. package/dist/testSVGPremultipliedAlpha-e3c11fd6.js +0 -94
  851. package/dist/timeSupport-3ddd7e4b.js +0 -410
  852. package/dist/triangle-28fd7dff.js +0 -98
  853. package/dist/unitConversionUtils-df3ffd70.js +0 -17
  854. package/dist/unitFormatUtils-d857519e.js +0 -40
  855. package/dist/uploadAssetErrors-18a6fad7.js +0 -70
  856. package/dist/uploadAssets-f2c89175.js +0 -330
  857. package/dist/utils-214b98cc.js +0 -91
  858. package/dist/utils-283fbef1.js +0 -34
  859. package/dist/utils-333b2280.js +0 -2746
  860. package/dist/utils-7202e24d.js +0 -232
  861. package/dist/utils-a7d5b733.js +0 -419
  862. package/dist/utils-cffde1b1.js +0 -433
  863. package/dist/utils-e4309923.js +0 -79
  864. package/dist/utils-e582955c.js +0 -73
  865. package/dist/utils3-d4b9a6af.js +0 -75
  866. package/dist/vec3-d9885b29.js +0 -81
  867. package/dist/vec42-d5675dd5.js +0 -125
  868. package/dist/versionUtils-2a4f90d3.js +0 -161
  869. package/dist/visualVariableUtils-d45d2e59.js +0 -267
  870. package/dist/webStyleSymbolUtils-5d8e6604.js +0 -48
  871. package/dist/webglDeps-c5e1e661.js +0 -23
  872. package/dist/wfsUtils-a004cee1.js +0 -343
  873. package/dist/workerHelper-a0956a07.js +0 -11
  874. package/dist/xyChart-e8a9ed1d.js +0 -3335
@@ -1,3426 +0,0 @@
1
- import { eq as ee } from "./index-a8d87ec0.js";
2
- class f {
3
- constructor(e) {
4
- Object.defineProperty(this, "_value", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._value = e;
5
- }
6
- get value() {
7
- return this._value / 100;
8
- }
9
- get percent() {
10
- return this._value;
11
- }
12
- toString() {
13
- return this._value + "%";
14
- }
15
- interpolate(e, t) {
16
- return e + this.value * (t - e);
17
- }
18
- static normalize(e, t, i) {
19
- return e instanceof f ? e : new f(t === i ? 0 : 100 * Math.min(Math.max(1 / (i - t) * (e - t), 0), 1));
20
- }
21
- }
22
- function ke(s) {
23
- return new f(s);
24
- }
25
- ke(0);
26
- const qe = ke(100), Je = ke(50);
27
- function Oe(s) {
28
- return Number(s) !== s;
29
- }
30
- function Qe(s) {
31
- return {}.toString.call(s);
32
- }
33
- function _e(s) {
34
- if (s != null && !g(s)) {
35
- let e = Number(s);
36
- return Oe(e) && Ne(s) && s != "" ? _e(s.replace(/[^0-9.\-]+/g, "")) : e;
37
- }
38
- return s;
39
- }
40
- function et(s) {
41
- if (me(s))
42
- return new Date(s);
43
- if (g(s))
44
- return new Date(s);
45
- {
46
- let e = Number(s);
47
- return g(e) ? new Date(e) : new Date(s);
48
- }
49
- }
50
- function Wt(s) {
51
- if (Oe(s))
52
- return "NaN";
53
- if (s === 1 / 0)
54
- return "Infinity";
55
- if (s === -1 / 0)
56
- return "-Infinity";
57
- if (s === 0 && 1 / s == -1 / 0)
58
- return "-0";
59
- let e = s < 0;
60
- s = Math.abs(s);
61
- let t, i = /^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec("" + s), r = i[1], a = i[2] || "";
62
- if (i[3] === void 0)
63
- t = a === "" ? r : r + "." + a;
64
- else {
65
- let n = +i[3];
66
- if (s < 1)
67
- t = "0." + je("0", n - 1) + r + a;
68
- else {
69
- let o = n - a.length;
70
- t = o === 0 ? r + a : o < 0 ? r + a.slice(0, o) + "." + a.slice(o) : r + a + je("0", o);
71
- }
72
- }
73
- return e ? "-" + t : t;
74
- }
75
- function je(s, e) {
76
- return new Array(e + 1).join(s);
77
- }
78
- function me(s) {
79
- return Qe(s) === "[object Date]";
80
- }
81
- function Ne(s) {
82
- return typeof s == "string";
83
- }
84
- function g(s) {
85
- return typeof s == "number" && Number(s) == s;
86
- }
87
- function Re(s) {
88
- return typeof s == "object" && s !== null;
89
- }
90
- const Ee = "__§§§__", Vt = "__§§§§__";
91
- function re(s, e) {
92
- const t = s.length;
93
- for (let i = 0; i < t; ++i)
94
- if (s[i] === e)
95
- return i;
96
- return -1;
97
- }
98
- function tt(s, e) {
99
- const t = s.length;
100
- for (let i = 0; i < t; ++i)
101
- if (e(s[i]))
102
- return !0;
103
- return !1;
104
- }
105
- function Ut(s, e) {
106
- const t = s.length, i = new Array(t);
107
- for (let r = 0; r < t; ++r)
108
- i[r] = e(s[r], r);
109
- return i;
110
- }
111
- function _(s, e) {
112
- const t = s.length;
113
- for (let i = 0; i < t; ++i)
114
- e(s[i], i);
115
- }
116
- function V(s, e) {
117
- let t = s.length;
118
- for (; t > 0; )
119
- --t, e(s[t], t);
120
- }
121
- function Kt(s, e) {
122
- const t = s.length;
123
- for (let i = 0; i < t && e(s[i], i); ++i)
124
- ;
125
- }
126
- function Fe(s, e) {
127
- let t = !1, i = 0;
128
- for (; ; ) {
129
- if (i = s.indexOf(e, i), i === -1)
130
- return t;
131
- t = !0, s.splice(i, 1);
132
- }
133
- }
134
- function O(s, e) {
135
- let t = s.indexOf(e);
136
- return t !== -1 && (s.splice(t, 1), !0);
137
- }
138
- function Gt(s, e, t) {
139
- let i = re(s, e);
140
- i !== -1 && fe(s, i), t == null ? s.push(e) : te(s, t, e);
141
- }
142
- function Ce(s, e) {
143
- s.indexOf(e) === -1 && s.push(e);
144
- }
145
- function zt(s) {
146
- const e = s.length, t = new Array(e);
147
- for (let i = 0; i < e; ++i)
148
- t[i] = s[i];
149
- return t;
150
- }
151
- function te(s, e, t) {
152
- s.splice(e, 0, t);
153
- }
154
- function fe(s, e) {
155
- s.splice(e, 1);
156
- }
157
- function We(s, e) {
158
- const t = s.length;
159
- for (let i = 0; i < t; ++i)
160
- if (e(s[i], i))
161
- return i;
162
- return -1;
163
- }
164
- function it(s, e) {
165
- let t = s.length;
166
- for (; t > 0; )
167
- if (--t, e(s[t], t))
168
- return t;
169
- return -1;
170
- }
171
- function st(s, e) {
172
- const t = We(s, e);
173
- if (t !== -1)
174
- return s[t];
175
- }
176
- function rt(s, e) {
177
- const t = it(s, e);
178
- if (t !== -1)
179
- return s[t];
180
- }
181
- function at(s, e) {
182
- let t = 0, i = s.length, r = !1;
183
- for (; t < i; ) {
184
- const a = t + i >> 1, n = e(s[a]);
185
- n < 0 ? t = a + 1 : n === 0 ? (r = !0, t = a + 1) : i = a;
186
- }
187
- return { found: r, index: r ? t - 1 : t };
188
- }
189
- function nt(s, e) {
190
- let t = 0, i = s.length, r = !1;
191
- for (; t < i; ) {
192
- const a = t + i >> 1, n = e(s[a]);
193
- n < 0 ? t = a + 1 : (n === 0 && (r = !0), i = a);
194
- }
195
- return { found: r, index: t };
196
- }
197
- function Yt(s, e) {
198
- let t = s.length;
199
- for (; t > 0; )
200
- --t, e(s[t]) || s.splice(t, 1);
201
- }
202
- function T(s) {
203
- return Object.keys(s);
204
- }
205
- function ot(s, e) {
206
- return T(s).sort(e);
207
- }
208
- function Xt(s) {
209
- return Object.assign({}, s);
210
- }
211
- function y(s, e) {
212
- T(s).forEach((t) => {
213
- e(t, s[t]);
214
- });
215
- }
216
- function $t(s, e) {
217
- for (let t in s)
218
- if (ht(s, t) && !e(t, s[t]))
219
- break;
220
- }
221
- function ht(s, e) {
222
- return {}.hasOwnProperty.call(s, e);
223
- }
224
- class Ve {
225
- constructor() {
226
- Object.defineProperty(this, "_disposed", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._disposed = !1;
227
- }
228
- isDisposed() {
229
- return this._disposed;
230
- }
231
- dispose() {
232
- this._disposed || (this._disposed = !0, this._dispose());
233
- }
234
- }
235
- class P {
236
- constructor(e) {
237
- Object.defineProperty(this, "_disposed", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_dispose", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._disposed = !1, this._dispose = e;
238
- }
239
- isDisposed() {
240
- return this._disposed;
241
- }
242
- dispose() {
243
- this._disposed || (this._disposed = !0, this._dispose());
244
- }
245
- }
246
- class Zt extends Ve {
247
- constructor() {
248
- super(...arguments), Object.defineProperty(this, "_disposers", { enumerable: !0, configurable: !0, writable: !0, value: [] });
249
- }
250
- _dispose() {
251
- _(this._disposers, (e) => {
252
- e.dispose();
253
- });
254
- }
255
- }
256
- class k extends Ve {
257
- constructor(e) {
258
- super(), Object.defineProperty(this, "_disposers", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._disposers = e;
259
- }
260
- _dispose() {
261
- _(this._disposers, (e) => {
262
- e.dispose();
263
- });
264
- }
265
- get disposers() {
266
- return this._disposers;
267
- }
268
- }
269
- class lt extends P {
270
- constructor() {
271
- super(...arguments), Object.defineProperty(this, "_counter", { enumerable: !0, configurable: !0, writable: !0, value: 0 });
272
- }
273
- increment() {
274
- return ++this._counter, new P(() => {
275
- --this._counter, this._counter === 0 && this.dispose();
276
- });
277
- }
278
- }
279
- function qt(s) {
280
- s.parentNode && s.parentNode.removeChild(s);
281
- }
282
- function Ue(s, e, t, i) {
283
- return s.addEventListener(e, t, i || !1), new P(() => {
284
- s.removeEventListener(e, t, i || !1);
285
- });
286
- }
287
- function Jt(s) {
288
- return Ue(window, "resize", (e) => {
289
- s();
290
- });
291
- }
292
- function de(s) {
293
- switch (s) {
294
- case "touchevents":
295
- return window.hasOwnProperty("TouchEvent");
296
- case "pointerevents":
297
- return window.hasOwnProperty("PointerEvent");
298
- case "mouseevents":
299
- return window.hasOwnProperty("MouseEvent");
300
- case "wheelevents":
301
- return window.hasOwnProperty("WheelEvent");
302
- case "keyboardevents":
303
- return window.hasOwnProperty("KeyboardEvent");
304
- }
305
- return !1;
306
- }
307
- function ue(s) {
308
- return s.pointerId || 0;
309
- }
310
- function Qt() {
311
- if (document.activeElement && document.activeElement != document.body)
312
- if (document.activeElement.blur)
313
- document.activeElement.blur();
314
- else {
315
- let s = document.createElement("button");
316
- s.style.position = "fixed", s.style.top = "0px", s.style.left = "-10000px", document.body.appendChild(s), s.focus(), s.blur(), document.body.removeChild(s);
317
- }
318
- }
319
- function ei(s) {
320
- s && s.focus();
321
- }
322
- function ti(s) {
323
- if (de("pointerevents"))
324
- return s;
325
- if (de("touchevents"))
326
- switch (s) {
327
- case "pointerover":
328
- case "pointerdown":
329
- return "touchstart";
330
- case "pointerout":
331
- case "pointerleave":
332
- case "pointerup":
333
- return "touchend";
334
- case "pointermove":
335
- return "touchmove";
336
- case "click":
337
- return "click";
338
- case "dblclick":
339
- return "dblclick";
340
- }
341
- else if (de("mouseevents"))
342
- switch (s) {
343
- case "pointerover":
344
- return "mouseover";
345
- case "pointerout":
346
- return "mouseout";
347
- case "pointerleave":
348
- return "mouseleave";
349
- case "pointerdown":
350
- return "mousedown";
351
- case "pointermove":
352
- return "mousemove";
353
- case "pointerup":
354
- return "mouseup";
355
- case "click":
356
- return "click";
357
- case "dblclick":
358
- return "dblclick";
359
- }
360
- return s;
361
- }
362
- function Me(s) {
363
- if (typeof Touch < "u" && s instanceof Touch)
364
- return !0;
365
- if (typeof PointerEvent < "u" && s instanceof PointerEvent && s.pointerType != null)
366
- switch (s.pointerType) {
367
- case "touch":
368
- case "pen":
369
- case 2:
370
- return !0;
371
- case "mouse":
372
- case 4:
373
- return !1;
374
- default:
375
- return !(s instanceof MouseEvent);
376
- }
377
- else if (s.type != null && s.type.match(/^mouse/))
378
- return !1;
379
- return !0;
380
- }
381
- function ii(s, e, t) {
382
- s.style[e] = t;
383
- }
384
- function si(s, e) {
385
- return s.style[e];
386
- }
387
- function ri(s) {
388
- if (s.composedPath) {
389
- const e = s.composedPath();
390
- return e.length === 0 ? null : e[0];
391
- }
392
- return s.target;
393
- }
394
- function dt(s, e) {
395
- let t = e;
396
- for (; ; ) {
397
- if (s === t)
398
- return !0;
399
- if (t.parentNode === null) {
400
- if (t.host == null)
401
- return !1;
402
- t = t.host;
403
- } else
404
- t = t.parentNode;
405
- }
406
- }
407
- function ut(s, e) {
408
- return s.target && dt(e.root.dom, s.target);
409
- }
410
- function ai(s, e) {
411
- s.style.pointerEvents = e ? "auto" : "none";
412
- }
413
- function pt() {
414
- return /apple/i.test(navigator.vendor) && "ontouchend" in document;
415
- }
416
- function ni() {
417
- return pt() ? 1 : void 0;
418
- }
419
- function M(s, e) {
420
- return g(s) ? s : s != null && g(s.value) && g(e) ? e * s.value : 0;
421
- }
422
- function oi(s) {
423
- let e = ("" + s).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
424
- return e ? Math.max(0, (e[1] ? e[1].length : 0) - (e[2] ? +e[2] : 0)) : 0;
425
- }
426
- function pe(s, e = 0, t = "0") {
427
- return typeof s != "string" && (s = s.toString()), e > s.length ? Array(e - s.length + 1).join(t) + s : s;
428
- }
429
- function ct(s) {
430
- return s.replace(/^[\s]*/, "");
431
- }
432
- function gt(s) {
433
- return s.replace(/[\s]*$/, "");
434
- }
435
- function be(s) {
436
- return ct(gt(s));
437
- }
438
- function _t(s, e, t = !1, i = "...") {
439
- if (s.length > e) {
440
- let r = e - 1;
441
- for (; r >= 0 && s.charAt(r).match(/\w/); )
442
- r--;
443
- return r >= 0 && t == 0 ? s.substring(0, r + 1) + "..." : s.substring(0, e) + i;
444
- }
445
- return s;
446
- }
447
- function mt(s) {
448
- if (s === void 0)
449
- return "string";
450
- let e = (s = (s = (s = s.toLowerCase().replace(/^\[[^\]]*\]/, "")).replace(/\[[^\]]+\]/, "")).trim()).match(/\/(date|number|duration)$/);
451
- return e ? e[1] : s === "number" ? "number" : s === "date" ? "date" : s === "duration" ? "duration" : s.match(/[#0]/) ? "number" : s.match(/[ymwdhnsqaxkzgtei]/) ? "date" : "string";
452
- }
453
- function hi(s) {
454
- return s.replace(/\/(date|number|duration)$/i, "");
455
- }
456
- function li(s) {
457
- return s && s.replace(/<[^>]*>/g, "");
458
- }
459
- function di(s) {
460
- return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
461
- }
462
- function ui(s, e = !1) {
463
- const t = new Date(s.getFullYear(), 0, 0), i = s.getTime() - t.getTime() + 60 * (t.getTimezoneOffset() - s.getTimezoneOffset()) * 1e3;
464
- return Math.floor(i / 864e5);
465
- }
466
- function Be(s, e = !1) {
467
- const t = new Date(Date.UTC(s.getFullYear(), s.getMonth(), s.getDate())), i = t.getUTCDay() || 7;
468
- t.setUTCDate(t.getUTCDate() + 4 - i);
469
- const r = new Date(Date.UTC(t.getUTCFullYear(), 0, 1));
470
- return Math.ceil(((t.getTime() - r.getTime()) / 864e5 + 1) / 7);
471
- }
472
- function pi(s, e = !1) {
473
- const t = new Date(Date.UTC(s.getFullYear(), s.getMonth(), s.getDate())), i = t.getUTCDay() || 7;
474
- return t.setUTCDate(t.getUTCDate() + 4 - i), new Date(Date.UTC(t.getUTCFullYear(), 0, 1)).getFullYear();
475
- }
476
- function ci(s, e = !1) {
477
- const t = Be(new Date(s.getFullYear(), s.getMonth(), 1), e);
478
- let i = Be(s, e);
479
- return i == 1 && (i = 53), i - t + 1;
480
- }
481
- function gi(s, e, t = 1, i = !1) {
482
- let r = new Date(e, 0, 4, 0, 0, 0, 0);
483
- return i && r.setUTCFullYear(e), 7 * s + t - ((r.getDay() || 7) + 3);
484
- }
485
- function _i(s, e) {
486
- return s > 12 ? s -= 12 : s === 0 && (s = 12), e != null ? s + (e - 1) : s;
487
- }
488
- function mi(s, e = !1, t = !1, i = !1, r) {
489
- if (i)
490
- return e ? "Coordinated Universal Time" : "UTC";
491
- if (r) {
492
- const o = s.toLocaleString("en-US", { timeZone: r });
493
- return be(s.toLocaleString("en-US", { timeZone: r, timeZoneName: e ? "long" : "short" }).substr(o.length));
494
- }
495
- let a = s.toLocaleString("UTC"), n = s.toLocaleString("UTC", { timeZoneName: e ? "long" : "short" }).substr(a.length);
496
- return t === !1 && (n = n.replace(/ (standard|daylight|summer|winter) /i, " ")), be(n);
497
- }
498
- function fi(s) {
499
- const e = new Date(Date.UTC(2012, 0, 1, 0, 0, 0, 0)), t = new Date(e.toLocaleString("en-US", { timeZone: "UTC" }));
500
- return (new Date(e.toLocaleString("en-US", { timeZone: s })).getTime() - t.getTime()) / 6e4 * -1;
501
- }
502
- function bi(s) {
503
- return s.charAt(0).toUpperCase() + s.slice(1);
504
- }
505
- function Ke(s) {
506
- let e, t, i, r = s.h, a = s.s, n = s.l;
507
- if (a == 0)
508
- e = t = i = n;
509
- else {
510
- let o = function(d, p, u) {
511
- return u < 0 && (u += 1), u > 1 && (u -= 1), u < 0.16666666666666666 ? d + 6 * (p - d) * u : u < 0.5 ? p : u < 0.6666666666666666 ? d + (p - d) * (0.6666666666666666 - u) * 6 : d;
512
- }, h = n < 0.5 ? n * (1 + a) : n + a - n * a, l = 2 * n - h;
513
- e = o(l, h, r + 1 / 3), t = o(l, h, r), i = o(l, h, r - 1 / 3);
514
- }
515
- return { r: Math.round(255 * e), g: Math.round(255 * t), b: Math.round(255 * i) };
516
- }
517
- function Ge(s) {
518
- let e = s.r / 255, t = s.g / 255, i = s.b / 255, r = Math.max(e, t, i), a = Math.min(e, t, i), n = 0, o = 0, h = (r + a) / 2;
519
- if (r === a)
520
- n = o = 0;
521
- else {
522
- let l = r - a;
523
- switch (o = h > 0.5 ? l / (2 - r - a) : l / (r + a), r) {
524
- case e:
525
- n = (t - i) / l + (t < i ? 6 : 0);
526
- break;
527
- case t:
528
- n = (i - e) / l + 2;
529
- break;
530
- case i:
531
- n = (e - t) / l + 4;
532
- }
533
- n /= 6;
534
- }
535
- return { h: n, s: o, l: h };
536
- }
537
- function ft(s, e) {
538
- return s && { r: Math.max(0, Math.min(255, s.r + ie(s.r, e))), g: Math.max(0, Math.min(255, s.g + ie(s.g, e))), b: Math.max(0, Math.min(255, s.b + ie(s.b, e))), a: s.a };
539
- }
540
- function ie(s, e) {
541
- let t = e > 0 ? 255 - s : s;
542
- return Math.round(t * e);
543
- }
544
- function bt(s, e) {
545
- if (s) {
546
- let t = ie(Math.min(Math.max(s.r, s.g, s.b), 230), e);
547
- return { r: Math.max(0, Math.min(255, Math.round(s.r + t))), g: Math.max(0, Math.min(255, Math.round(s.g + t))), b: Math.max(0, Math.min(255, Math.round(s.b + t))), a: s.a };
548
- }
549
- return s;
550
- }
551
- function Ae(s) {
552
- return (299 * s.r + 587 * s.g + 114 * s.b) / 1e3 >= 128;
553
- }
554
- function vt(s, e) {
555
- if (s === void 0 || e == 1)
556
- return s;
557
- let t = Ge(s);
558
- return t.s = e, Ke(t);
559
- }
560
- function yt(s, e = { r: 255, g: 255, b: 255 }, t = { r: 255, g: 255, b: 255 }) {
561
- let i = e, r = t;
562
- return Ae(t) && (i = t, r = e), Ae(s) ? r : i;
563
- }
564
- function vi(s, e) {
565
- return s || (s = []), [...s, ...e].filter((t, i, r) => r.indexOf(t) === i);
566
- }
567
- function yi(s, e) {
568
- return !!e && s.left == e.left && s.right == e.right && s.top == e.top && s.bottom == e.bottom;
569
- }
570
- function ze(s) {
571
- return s[0] === "#" && (s = s.substr(1)), s.length == 3 && (s = s[0].repeat(2) + s[1].repeat(2) + s[2].repeat(2)), parseInt(s, 16);
572
- }
573
- function wt(s) {
574
- let e = (s = s.replace(/[ ]/g, "")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);
575
- if (e)
576
- e.push("1");
577
- else if (e = s.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i), !e)
578
- return 0;
579
- let t = "";
580
- for (let i = 1; i <= 3; i++) {
581
- let r = parseInt(e[i]).toString(16);
582
- r.length == 1 && (r = "0" + r), t += r;
583
- }
584
- return ze(t);
585
- }
586
- function wi(s) {
587
- return v.fromAny(s);
588
- }
589
- class v {
590
- constructor(e) {
591
- Object.defineProperty(this, "_hex", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._hex = 0 | e;
592
- }
593
- get hex() {
594
- return this._hex;
595
- }
596
- get r() {
597
- return this._hex >>> 16;
598
- }
599
- get g() {
600
- return this._hex >> 8 & 255;
601
- }
602
- get b() {
603
- return 255 & this._hex;
604
- }
605
- toCSS(e = 1) {
606
- return "rgba(" + this.r + ", " + this.g + ", " + this.b + ", " + e + ")";
607
- }
608
- toCSSHex() {
609
- return "#" + pe(this.r.toString(16), 2) + pe(this.g.toString(16), 2) + pe(this.b.toString(16), 2);
610
- }
611
- toHSL(e = 1) {
612
- return Ge({ r: this.r, g: this.g, b: this.b, a: e });
613
- }
614
- static fromHSL(e, t, i) {
615
- const r = Ke({ h: e, s: t, l: i });
616
- return this.fromRGB(r.r, r.g, r.b);
617
- }
618
- toString() {
619
- return this.toCSSHex();
620
- }
621
- static fromHex(e) {
622
- return new v(e);
623
- }
624
- static fromRGB(e, t, i) {
625
- return new v((0 | i) + (t << 8) + (e << 16));
626
- }
627
- static fromString(e) {
628
- return new v(ze(e));
629
- }
630
- static fromCSS(e) {
631
- return new v(wt(e));
632
- }
633
- static fromAny(e) {
634
- if (Ne(e)) {
635
- if (e[0] == "#")
636
- return v.fromString(e);
637
- if (e.substr(0, 3) == "rgb")
638
- return v.fromCSS(e);
639
- } else {
640
- if (g(e))
641
- return v.fromHex(e);
642
- if (e instanceof v)
643
- return v.fromHex(e.hex);
644
- }
645
- throw new Error("Unknown color syntax: " + e);
646
- }
647
- static alternative(e, t, i) {
648
- const r = yt({ r: e.r, g: e.g, b: e.b }, t ? { r: t.r, g: t.g, b: t.b } : void 0, i ? { r: i.r, g: i.g, b: i.b } : void 0);
649
- return this.fromRGB(r.r, r.g, r.b);
650
- }
651
- static interpolate(e, t, i, r = "rgb") {
652
- if (r == "hsl") {
653
- const a = t.toHSL(), n = i.toHSL();
654
- return v.fromHSL(B(e, a.h, n.h), B(e, a.s, n.s), B(e, a.l, n.l));
655
- }
656
- return v.fromRGB(B(e, t.r, i.r), B(e, t.g, i.g), B(e, t.b, i.b));
657
- }
658
- static lighten(e, t) {
659
- const i = ft({ r: e.r, g: e.g, b: e.b }, t);
660
- return v.fromRGB(i.r, i.g, i.b);
661
- }
662
- static brighten(e, t) {
663
- const i = bt({ r: e.r, g: e.g, b: e.b }, t);
664
- return v.fromRGB(i.r, i.g, i.b);
665
- }
666
- static saturate(e, t) {
667
- const i = vt({ r: e.r, g: e.g, b: e.b }, t);
668
- return v.fromRGB(i.r, i.g, i.b);
669
- }
670
- }
671
- class J {
672
- constructor() {
673
- Object.defineProperty(this, "_listeners", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_killed", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_disabled", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_iterating", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_enabled", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_disposed", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._listeners = [], this._killed = [], this._disabled = {}, this._iterating = 0, this._enabled = !0, this._disposed = !1;
674
- }
675
- isDisposed() {
676
- return this._disposed;
677
- }
678
- dispose() {
679
- if (!this._disposed) {
680
- this._disposed = !0;
681
- const e = this._listeners;
682
- this._iterating = 1, this._listeners = null, this._disabled = null;
683
- try {
684
- _(e, (t) => {
685
- t.disposer.dispose();
686
- });
687
- } finally {
688
- this._killed = null, this._iterating = null;
689
- }
690
- }
691
- }
692
- hasListeners() {
693
- return this._listeners.length !== 0;
694
- }
695
- hasListenersByType(e) {
696
- return tt(this._listeners, (t) => (t.type === null || t.type === e) && !t.killed);
697
- }
698
- enable() {
699
- this._enabled = !0;
700
- }
701
- disable() {
702
- this._enabled = !1;
703
- }
704
- enableType(e) {
705
- delete this._disabled[e];
706
- }
707
- disableType(e, t = 1 / 0) {
708
- this._disabled[e] = t;
709
- }
710
- _removeListener(e) {
711
- if (this._iterating === 0) {
712
- const t = this._listeners.indexOf(e);
713
- if (t === -1)
714
- throw new Error("Invalid state: could not remove listener");
715
- this._listeners.splice(t, 1);
716
- } else
717
- this._killed.push(e);
718
- }
719
- _removeExistingListener(e, t, i, r) {
720
- if (this._disposed)
721
- throw new Error("EventDispatcher is disposed");
722
- this._eachListener((a) => {
723
- a.once !== e || a.type !== t || i !== void 0 && a.callback !== i || a.context !== r || a.disposer.dispose();
724
- });
725
- }
726
- isEnabled(e) {
727
- if (this._disposed)
728
- throw new Error("EventDispatcher is disposed");
729
- return this._enabled && this._listeners.length > 0 && this.hasListenersByType(e) && this._disabled[e] === void 0;
730
- }
731
- removeType(e) {
732
- if (this._disposed)
733
- throw new Error("EventDispatcher is disposed");
734
- this._eachListener((t) => {
735
- t.type === e && t.disposer.dispose();
736
- });
737
- }
738
- has(e, t, i) {
739
- return We(this._listeners, (r) => r.once !== !0 && r.type === e && (t === void 0 || r.callback === t) && r.context === i) !== -1;
740
- }
741
- _shouldDispatch(e) {
742
- if (this._disposed)
743
- throw new Error("EventDispatcher is disposed");
744
- const t = this._disabled[e];
745
- return g(t) ? (t <= 1 ? delete this._disabled[e] : --this._disabled[e], !1) : this._enabled;
746
- }
747
- _eachListener(e) {
748
- ++this._iterating;
749
- try {
750
- _(this._listeners, e);
751
- } finally {
752
- --this._iterating, this._iterating === 0 && this._killed.length !== 0 && (_(this._killed, (t) => {
753
- this._removeListener(t);
754
- }), this._killed.length = 0);
755
- }
756
- }
757
- dispatch(e, t) {
758
- this._shouldDispatch(e) && this._eachListener((i) => {
759
- i.killed || i.type !== null && i.type !== e || i.dispatch(e, t);
760
- });
761
- }
762
- _on(e, t, i, r, a, n) {
763
- if (this._disposed)
764
- throw new Error("EventDispatcher is disposed");
765
- this._removeExistingListener(e, t, i, r);
766
- const o = { type: t, callback: i, context: r, shouldClone: a, dispatch: n, killed: !1, once: e, disposer: new P(() => {
767
- o.killed = !0, this._removeListener(o);
768
- }) };
769
- return this._listeners.push(o), o;
770
- }
771
- onAll(e, t, i = !0) {
772
- return this._on(!1, null, e, t, i, (r, a) => e.call(t, a)).disposer;
773
- }
774
- on(e, t, i, r = !0) {
775
- return this._on(!1, e, t, i, r, (a, n) => t.call(i, n)).disposer;
776
- }
777
- once(e, t, i, r = !0) {
778
- const a = this._on(!0, e, t, i, r, (n, o) => {
779
- a.disposer.dispose(), t.call(i, o);
780
- });
781
- return a.disposer;
782
- }
783
- off(e, t, i) {
784
- this._removeExistingListener(!1, e, t, i);
785
- }
786
- copyFrom(e) {
787
- if (this._disposed)
788
- throw new Error("EventDispatcher is disposed");
789
- if (e === this)
790
- throw new Error("Cannot copyFrom the same TargetedEventDispatcher");
791
- const t = [];
792
- return _(e._listeners, (i) => {
793
- !i.killed && i.shouldClone && (i.type === null ? t.push(this.onAll(i.callback, i.context)) : i.once ? t.push(this.once(i.type, i.callback, i.context)) : t.push(this.on(i.type, i.callback, i.context)));
794
- }), new k(t);
795
- }
796
- }
797
- function He(s) {
798
- return ee(this, void 0, void 0, function* () {
799
- if (s !== void 0) {
800
- const e = [];
801
- y(s, (t, i) => {
802
- e.push(i.waitForStop());
803
- }), yield Promise.all(e);
804
- }
805
- });
806
- }
807
- function B(s, e, t) {
808
- return e + s * (t - e);
809
- }
810
- function Pt(s, e, t) {
811
- return s >= 1 ? t : e;
812
- }
813
- function Dt(s, e, t) {
814
- return new f(B(s, e.percent, t.percent));
815
- }
816
- function xt(s, e, t) {
817
- return v.interpolate(s, e, t);
818
- }
819
- function kt(s, e) {
820
- return typeof s == "number" && typeof e == "number" ? B : s instanceof f && e instanceof f ? Dt : s instanceof v && e instanceof v ? xt : Pt;
821
- }
822
- var U;
823
- function W(s, e) {
824
- if (!(s >= 0 && s < e))
825
- throw new Error("Index out of bounds: " + s);
826
- }
827
- (function(s) {
828
- s[s.Stopped = 0] = "Stopped", s[s.Playing = 1] = "Playing", s[s.Paused = 2] = "Paused";
829
- })(U || (U = {}));
830
- class Ye {
831
- constructor(e = []) {
832
- Object.defineProperty(this, "_values", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "events", { enumerable: !0, configurable: !0, writable: !0, value: new J() }), this._values = e;
833
- }
834
- get values() {
835
- return this._values;
836
- }
837
- contains(e) {
838
- return this._values.indexOf(e) !== -1;
839
- }
840
- removeValue(e) {
841
- let t = 0, i = this._values.length;
842
- for (; t < i; )
843
- this._values[t] === e ? (this.removeIndex(t), --i) : ++t;
844
- }
845
- indexOf(e) {
846
- return re(this._values, e);
847
- }
848
- get length() {
849
- return this._values.length;
850
- }
851
- hasIndex(e) {
852
- return e >= 0 && e < this._values.length;
853
- }
854
- getIndex(e) {
855
- return this._values[e];
856
- }
857
- _onPush(e) {
858
- this.events.isEnabled("push") && this.events.dispatch("push", { type: "push", target: this, newValue: e });
859
- }
860
- _onInsertIndex(e, t) {
861
- this.events.isEnabled("insertIndex") && this.events.dispatch("insertIndex", { type: "insertIndex", target: this, index: e, newValue: t });
862
- }
863
- _onSetIndex(e, t, i) {
864
- this.events.isEnabled("setIndex") && this.events.dispatch("setIndex", { type: "setIndex", target: this, index: e, oldValue: t, newValue: i });
865
- }
866
- _onRemoveIndex(e, t) {
867
- this.events.isEnabled("removeIndex") && this.events.dispatch("removeIndex", { type: "removeIndex", target: this, index: e, oldValue: t });
868
- }
869
- _onMoveIndex(e, t, i) {
870
- this.events.isEnabled("moveIndex") && this.events.dispatch("moveIndex", { type: "moveIndex", target: this, oldIndex: e, newIndex: t, value: i });
871
- }
872
- _onClear(e) {
873
- this.events.isEnabled("clear") && this.events.dispatch("clear", { type: "clear", target: this, oldValues: e });
874
- }
875
- setIndex(e, t) {
876
- W(e, this._values.length);
877
- const i = this._values[e];
878
- return i !== t && (this._values[e] = t, this._onSetIndex(e, i, t)), i;
879
- }
880
- insertIndex(e, t) {
881
- return W(e, this._values.length + 1), te(this._values, e, t), this._onInsertIndex(e, t), t;
882
- }
883
- swap(e, t) {
884
- const i = this._values.length;
885
- if (W(e, i), W(t, i), e !== t) {
886
- const r = this._values[e], a = this._values[t];
887
- this._values[e] = a, this._onSetIndex(e, r, a), this._values[t] = r, this._onSetIndex(t, a, r);
888
- }
889
- }
890
- removeIndex(e) {
891
- W(e, this._values.length);
892
- const t = this._values[e];
893
- return fe(this._values, e), this._onRemoveIndex(e, t), t;
894
- }
895
- moveValue(e, t) {
896
- let i = this.indexOf(e);
897
- if (i !== -1)
898
- if (fe(this._values, i), t == null) {
899
- const r = this._values.length;
900
- this._values.push(e), this._onMoveIndex(i, r, e);
901
- } else
902
- te(this._values, t, e), this._onMoveIndex(i, t, e);
903
- else
904
- t == null ? (this._values.push(e), this._onPush(e)) : (te(this._values, t, e), this._onInsertIndex(t, e));
905
- return e;
906
- }
907
- push(e) {
908
- return this._values.push(e), this._onPush(e), e;
909
- }
910
- unshift(e) {
911
- return this.insertIndex(0, e), e;
912
- }
913
- pushAll(e) {
914
- _(e, (t) => {
915
- this.push(t);
916
- });
917
- }
918
- copyFrom(e) {
919
- this.pushAll(e._values);
920
- }
921
- pop() {
922
- return this._values.length - 1 < 0 ? void 0 : this.removeIndex(this._values.length - 1);
923
- }
924
- shift() {
925
- return this._values.length ? this.removeIndex(0) : void 0;
926
- }
927
- setAll(e) {
928
- const t = this._values;
929
- this._values = [], this._onClear(t), _(e, (i) => {
930
- this._values.push(i), this._onPush(i);
931
- });
932
- }
933
- clear() {
934
- this.setAll([]);
935
- }
936
- *[Symbol.iterator]() {
937
- const e = this._values.length;
938
- for (let t = 0; t < e; ++t)
939
- yield this._values[t];
940
- }
941
- each(e) {
942
- _(this._values, e);
943
- }
944
- eachReverse(e) {
945
- V(this._values, e);
946
- }
947
- }
948
- class Ot extends Ye {
949
- constructor() {
950
- super(...arguments), Object.defineProperty(this, "autoDispose", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "_disposed", { enumerable: !0, configurable: !0, writable: !0, value: !1 });
951
- }
952
- _onSetIndex(e, t, i) {
953
- this.autoDispose && t.dispose(), super._onSetIndex(e, t, i);
954
- }
955
- _onRemoveIndex(e, t) {
956
- this.autoDispose && t.dispose(), super._onRemoveIndex(e, t);
957
- }
958
- _onClear(e) {
959
- this.autoDispose && _(e, (t) => {
960
- t.dispose();
961
- }), super._onClear(e);
962
- }
963
- isDisposed() {
964
- return this._disposed;
965
- }
966
- dispose() {
967
- this._disposed || (this._disposed = !0, this.autoDispose && _(this._values, (e) => {
968
- e.dispose();
969
- }));
970
- }
971
- }
972
- class Pi extends Ot {
973
- constructor(e, t) {
974
- super(), Object.defineProperty(this, "template", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "make", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.template = e, this.make = t;
975
- }
976
- }
977
- class Tt extends Ye {
978
- constructor(e) {
979
- super(), Object.defineProperty(this, "_disposed", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_container", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_events", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._container = e, this._events = this.events.onAll((t) => {
980
- if (t.type === "clear")
981
- _(t.oldValues, (i) => {
982
- this._onRemoved(i);
983
- });
984
- else if (t.type === "push")
985
- this._onInserted(t.newValue);
986
- else if (t.type === "setIndex")
987
- this._onRemoved(t.oldValue), this._onInserted(t.newValue, t.index);
988
- else if (t.type === "insertIndex")
989
- this._onInserted(t.newValue, t.index);
990
- else if (t.type === "removeIndex")
991
- this._onRemoved(t.oldValue);
992
- else {
993
- if (t.type !== "moveIndex")
994
- throw new Error("Unknown IListEvent type");
995
- this._onRemoved(t.value), this._onInserted(t.value, t.newIndex);
996
- }
997
- });
998
- }
999
- _onInserted(e, t) {
1000
- e._setParent(this._container, !0);
1001
- const i = this._container._childrenDisplay;
1002
- t === void 0 ? i.addChild(e._display) : i.addChildAt(e._display, t);
1003
- }
1004
- _onRemoved(e) {
1005
- this._container._childrenDisplay.removeChild(e._display), this._container.markDirtyBounds(), this._container.markDirty();
1006
- }
1007
- isDisposed() {
1008
- return this._disposed;
1009
- }
1010
- dispose() {
1011
- this._disposed || (this._disposed = !0, this._events.dispose(), _(this.values, (e) => {
1012
- e.dispose();
1013
- }));
1014
- }
1015
- }
1016
- const Xe = Math.PI, $e = Xe / 180, Di = 180 / Xe;
1017
- function xi(s, e, t) {
1018
- if (!g(e) || e <= 0) {
1019
- let i = Math.round(s);
1020
- return t && i - s == 0.5 && i--, i;
1021
- }
1022
- {
1023
- let i = Math.pow(10, e);
1024
- return Math.round(s * i) / i;
1025
- }
1026
- }
1027
- function ki(s, e) {
1028
- if (!g(e) || e <= 0)
1029
- return Math.ceil(s);
1030
- {
1031
- let t = Math.pow(10, e);
1032
- return Math.ceil(s * t) / t;
1033
- }
1034
- }
1035
- function Ie(s, e, t) {
1036
- return Math.min(Math.max(s, e), t);
1037
- }
1038
- function ve(s) {
1039
- return Math.sin($e * s);
1040
- }
1041
- function ye(s) {
1042
- return Math.cos($e * s);
1043
- }
1044
- function Oi(s) {
1045
- return (s %= 360) < 0 && (s += 360), s;
1046
- }
1047
- function Ti(s, e, t, i, r) {
1048
- let a = Number.MAX_VALUE, n = Number.MAX_VALUE, o = -Number.MAX_VALUE, h = -Number.MAX_VALUE, l = [];
1049
- l.push(ce(r, t)), l.push(ce(r, i));
1050
- let d = Math.min(90 * Math.floor(t / 90), 90 * Math.floor(i / 90)), p = Math.max(90 * Math.ceil(t / 90), 90 * Math.ceil(i / 90));
1051
- for (let u = d; u <= p; u += 90)
1052
- u >= t && u <= i && l.push(ce(r, u));
1053
- for (let u = 0; u < l.length; u++) {
1054
- let c = l[u];
1055
- c.x < a && (a = c.x), c.y < n && (n = c.y), c.x > o && (o = c.x), c.y > h && (h = c.y);
1056
- }
1057
- return { left: s + a, top: e + n, right: s + o, bottom: e + h };
1058
- }
1059
- function ce(s, e) {
1060
- return { x: s * ye(e), y: s * ve(e) };
1061
- }
1062
- function Si(s) {
1063
- const e = s.length;
1064
- if (e > 0) {
1065
- let t = s[0], i = t.left, r = t.top, a = t.right, n = t.bottom;
1066
- if (e > 1)
1067
- for (let o = 1; o < e; o++)
1068
- t = s[o], i = Math.min(t.left, i), a = Math.max(t.right, a), r = Math.min(t.top, r), n = Math.max(t.bottom, n);
1069
- return { left: i, right: a, top: r, bottom: n };
1070
- }
1071
- return { left: 0, right: 0, top: 0, bottom: 0 };
1072
- }
1073
- function St(s, e) {
1074
- return s.x >= e.left && s.y >= e.top && s.x <= e.right && s.y <= e.bottom;
1075
- }
1076
- function Le(s) {
1077
- return s;
1078
- }
1079
- function jt(s) {
1080
- return s * s * s;
1081
- }
1082
- function ji(s) {
1083
- return function(e) {
1084
- return 1 - s(1 - e);
1085
- };
1086
- }
1087
- class Et {
1088
- constructor(e, t) {
1089
- Object.defineProperty(this, "_entity", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_settings", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_userSettings", { enumerable: !0, configurable: !0, writable: !0, value: {} }), this._entity = e, this._settings = t, y(t, (i) => {
1090
- this._userSettings[i] = !0;
1091
- });
1092
- }
1093
- get(e, t) {
1094
- const i = this._settings[e];
1095
- return i !== void 0 ? i : t;
1096
- }
1097
- setRaw(e, t) {
1098
- this._settings[e] = t;
1099
- }
1100
- set(e, t) {
1101
- this._userSettings[e] = !0, this.setRaw(e, t);
1102
- }
1103
- remove(e) {
1104
- delete this._userSettings[e], delete this._settings[e];
1105
- }
1106
- setAll(e) {
1107
- T(e).forEach((t) => {
1108
- this.set(t, e[t]);
1109
- });
1110
- }
1111
- _eachSetting(e) {
1112
- y(this._settings, e);
1113
- }
1114
- apply() {
1115
- const e = { stateAnimationEasing: !0, stateAnimationDuration: !0 }, t = this._entity.states.lookup("default");
1116
- this._eachSetting((i, r) => {
1117
- e[i] || (e[i] = !0, this !== t && (i in t._settings || (t._settings[i] = this._entity.get(i))), this._entity.set(i, r));
1118
- });
1119
- }
1120
- applyAnimate(e) {
1121
- e == null && (e = this._settings.stateAnimationDuration), e == null && (e = this.get("stateAnimationDuration", this._entity.get("stateAnimationDuration", 0)));
1122
- let t = this._settings.stateAnimationEasing;
1123
- t == null && (t = this.get("stateAnimationEasing", this._entity.get("stateAnimationEasing", jt)));
1124
- const i = this._entity.states.lookup("default"), r = { stateAnimationEasing: !0, stateAnimationDuration: !0 }, a = {};
1125
- return this._eachSetting((n, o) => {
1126
- if (!r[n]) {
1127
- r[n] = !0, this != i && (n in i._settings || (i._settings[n] = this._entity.get(n)));
1128
- const h = this._entity.animate({ key: n, to: o, duration: e, easing: t });
1129
- h && (a[n] = h);
1130
- }
1131
- }), a;
1132
- }
1133
- }
1134
- class Ct {
1135
- constructor(e) {
1136
- Object.defineProperty(this, "_states", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_entity", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._entity = e;
1137
- }
1138
- lookup(e) {
1139
- return this._states[e];
1140
- }
1141
- create(e, t) {
1142
- const i = this._states[e];
1143
- if (i)
1144
- return i.setAll(t), i;
1145
- {
1146
- const r = new Et(this._entity, t);
1147
- return this._states[e] = r, r;
1148
- }
1149
- }
1150
- remove(e) {
1151
- delete this._states[e];
1152
- }
1153
- apply(e) {
1154
- const t = this._states[e];
1155
- t && t.apply(), this._entity._applyState(e);
1156
- }
1157
- applyAnimate(e, t) {
1158
- let i;
1159
- const r = this._states[e];
1160
- return r && (i = r.applyAnimate(t)), this._entity._applyStateAnimated(e, t), i;
1161
- }
1162
- }
1163
- class Mt {
1164
- constructor() {
1165
- Object.defineProperty(this, "version", { enumerable: !0, configurable: !0, writable: !0, value: "5.8.0" }), Object.defineProperty(this, "licenses", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "entitiesById", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "rootElements", { enumerable: !0, configurable: !0, writable: !0, value: [] });
1166
- }
1167
- }
1168
- const R = new Mt();
1169
- function Ei(s) {
1170
- R.licenses.push(s);
1171
- }
1172
- function F(s, e) {
1173
- return s === e ? 0 : s < e ? -1 : 1;
1174
- }
1175
- function Ze(s, e, t) {
1176
- const i = s.length, r = e.length, a = Math.min(i, r);
1177
- for (let n = 0; n < a; ++n) {
1178
- const o = t(s[n], e[n]);
1179
- if (o !== 0)
1180
- return o;
1181
- }
1182
- return F(i, r);
1183
- }
1184
- function Ci(s, e) {
1185
- return s === e ? 0 : s < e ? -1 : 1;
1186
- }
1187
- class Bt {
1188
- constructor(e) {
1189
- Object.defineProperty(this, "_entity", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_callbacks", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_disabled", { enumerable: !0, configurable: !0, writable: !0, value: {} }), this._entity = e;
1190
- }
1191
- add(e, t) {
1192
- let i = this._callbacks[e];
1193
- return i === void 0 && (i = this._callbacks[e] = []), i.push(t), this._entity._markDirtyKey(e), new P(() => {
1194
- O(i, t) && this._entity._markDirtyKey(e);
1195
- });
1196
- }
1197
- remove(e) {
1198
- const t = this._callbacks[e];
1199
- t !== void 0 && (delete this._callbacks[e], t.length !== 0 && this._entity._markDirtyKey(e));
1200
- }
1201
- enable(e) {
1202
- this._disabled[e] && (delete this._disabled[e], this._entity._markDirtyKey(e));
1203
- }
1204
- disable(e) {
1205
- this._disabled[e] || (this._disabled[e] = !0, this._entity._markDirtyKey(e));
1206
- }
1207
- fold(e, t) {
1208
- if (!this._disabled[e]) {
1209
- const i = this._callbacks[e];
1210
- if (i !== void 0)
1211
- for (let r = 0, a = i.length; r < a; ++r)
1212
- t = i[r](t, this._entity, e);
1213
- }
1214
- return t;
1215
- }
1216
- }
1217
- class Q {
1218
- constructor(e, t, i, r, a, n, o) {
1219
- Object.defineProperty(this, "_animation", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_from", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_to", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_duration", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_easing", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_loops", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_interpolate", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_oldTime", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_time", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_stopped", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_playing", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "events", { enumerable: !0, configurable: !0, writable: !0, value: new J() }), this._animation = e, this._from = t, this._to = i, this._duration = r, this._easing = a, this._loops = n, this._interpolate = kt(t, i), this._oldTime = o;
1220
- }
1221
- get to() {
1222
- return this._to;
1223
- }
1224
- get from() {
1225
- return this._from;
1226
- }
1227
- get playing() {
1228
- return this._playing;
1229
- }
1230
- get stopped() {
1231
- return this._stopped;
1232
- }
1233
- stop() {
1234
- this._stopped || (this._stopped = !0, this._playing = !1, this.events.isEnabled("stopped") && this.events.dispatch("stopped", { type: "stopped", target: this }));
1235
- }
1236
- pause() {
1237
- this._playing = !1, this._oldTime = null;
1238
- }
1239
- play() {
1240
- this._stopped || this._playing || (this._playing = !0, this._animation._startAnimation());
1241
- }
1242
- get percentage() {
1243
- return this._time / this._duration;
1244
- }
1245
- waitForStop() {
1246
- return new Promise((e, t) => {
1247
- if (this._stopped)
1248
- e();
1249
- else {
1250
- const i = () => {
1251
- r.dispose(), e();
1252
- }, r = this.events.on("stopped", i);
1253
- }
1254
- });
1255
- }
1256
- _checkEnded() {
1257
- return !(this._loops > 1) || (--this._loops, !1);
1258
- }
1259
- _run(e) {
1260
- this._oldTime !== null && (this._time += e - this._oldTime, this._time > this._duration && (this._time = this._duration)), this._oldTime = e;
1261
- }
1262
- _reset(e) {
1263
- this._oldTime = e, this._time = 0;
1264
- }
1265
- _value(e) {
1266
- return this._interpolate(this._easing(e), this._from, this._to);
1267
- }
1268
- }
1269
- let At = 0;
1270
- class Ht {
1271
- constructor(e) {
1272
- Object.defineProperty(this, "uid", { enumerable: !0, configurable: !0, writable: !0, value: ++At }), Object.defineProperty(this, "_settings", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_privateSettings", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_settingEvents", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_privateSettingEvents", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_prevSettings", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_prevPrivateSettings", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_animatingSettings", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_animatingPrivateSettings", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_disposed", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_userProperties", { enumerable: !0, configurable: !0, writable: !0, value: {} }), this._settings = e;
1273
- }
1274
- _checkDirty() {
1275
- T(this._settings).forEach((e) => {
1276
- this._userProperties[e] = !0, this._markDirtyKey(e);
1277
- });
1278
- }
1279
- resetUserSettings() {
1280
- this._userProperties = {};
1281
- }
1282
- _runAnimation(e) {
1283
- let t = U.Stopped;
1284
- if (!this.isDisposed()) {
1285
- let i = !1, r = !1;
1286
- y(this._animatingSettings, (a, n) => {
1287
- if (n.stopped)
1288
- this._stopAnimation(a);
1289
- else if (n.playing) {
1290
- n._run(e);
1291
- const o = n.percentage;
1292
- o >= 1 ? n._checkEnded() ? this.set(a, n._value(1)) : (i = !0, n._reset(e), this._set(a, n._value(1))) : (i = !0, this._set(a, n._value(o)));
1293
- } else
1294
- r = !0;
1295
- }), y(this._animatingPrivateSettings, (a, n) => {
1296
- if (n.stopped)
1297
- this._stopAnimationPrivate(a);
1298
- else if (n.playing) {
1299
- n._run(e);
1300
- const o = n.percentage;
1301
- o >= 1 ? n._checkEnded() ? this.setPrivate(a, n._value(1)) : (i = !0, n._reset(e), this._setPrivate(a, n._value(1))) : (i = !0, this._setPrivate(a, n._value(o)));
1302
- } else
1303
- r = !0;
1304
- }), i ? t = U.Playing : r && (t = U.Paused);
1305
- }
1306
- return t;
1307
- }
1308
- _markDirtyKey(e) {
1309
- this.markDirty();
1310
- }
1311
- _markDirtyPrivateKey(e) {
1312
- this.markDirty();
1313
- }
1314
- on(e, t) {
1315
- let i = this._settingEvents[e];
1316
- return i === void 0 && (i = this._settingEvents[e] = []), i.push(t), new P(() => {
1317
- O(i, t), i.length === 0 && delete this._settingEvents[e];
1318
- });
1319
- }
1320
- onPrivate(e, t) {
1321
- let i = this._privateSettingEvents[e];
1322
- return i === void 0 && (i = this._privateSettingEvents[e] = []), i.push(t), new P(() => {
1323
- O(i, t), i.length === 0 && delete this._privateSettingEvents[e];
1324
- });
1325
- }
1326
- getRaw(e, t) {
1327
- const i = this._settings[e];
1328
- return i !== void 0 ? i : t;
1329
- }
1330
- get(e, t) {
1331
- return this.getRaw(e, t);
1332
- }
1333
- _sendKeyEvent(e, t) {
1334
- const i = this._settingEvents[e];
1335
- i !== void 0 && _(i, (r) => {
1336
- r(t, this, e);
1337
- });
1338
- }
1339
- _sendPrivateKeyEvent(e, t) {
1340
- const i = this._privateSettingEvents[e];
1341
- i !== void 0 && _(i, (r) => {
1342
- r(t, this, e);
1343
- });
1344
- }
1345
- _setRaw(e, t, i) {
1346
- this._prevSettings[e] = t, this._sendKeyEvent(e, i);
1347
- }
1348
- setRaw(e, t) {
1349
- const i = this._settings[e];
1350
- this._settings[e] = t, i !== t && this._setRaw(e, i, t);
1351
- }
1352
- _set(e, t) {
1353
- const i = this._settings[e];
1354
- this._settings[e] = t, i !== t && (this._setRaw(e, i, t), this._markDirtyKey(e));
1355
- }
1356
- _stopAnimation(e) {
1357
- const t = this._animatingSettings[e];
1358
- t && (delete this._animatingSettings[e], t.stop());
1359
- }
1360
- set(e, t) {
1361
- return this._set(e, t), this._stopAnimation(e), t;
1362
- }
1363
- remove(e) {
1364
- e in this._settings && (this._prevSettings[e] = this._settings[e], delete this._settings[e], this._sendKeyEvent(e, void 0), this._markDirtyKey(e)), this._stopAnimation(e);
1365
- }
1366
- removeAll() {
1367
- _(T(this._settings), (e) => {
1368
- this.remove(e);
1369
- });
1370
- }
1371
- getPrivate(e, t) {
1372
- const i = this._privateSettings[e];
1373
- return i !== void 0 ? i : t;
1374
- }
1375
- _setPrivateRaw(e, t, i) {
1376
- this._prevPrivateSettings[e] = t, this._sendPrivateKeyEvent(e, i);
1377
- }
1378
- setPrivateRaw(e, t) {
1379
- const i = this._privateSettings[e];
1380
- this._privateSettings[e] = t, i !== t && this._setPrivateRaw(e, i, t);
1381
- }
1382
- _setPrivate(e, t) {
1383
- const i = this._privateSettings[e];
1384
- this._privateSettings[e] = t, i !== t && (this._setPrivateRaw(e, i, t), this._markDirtyPrivateKey(e));
1385
- }
1386
- _stopAnimationPrivate(e) {
1387
- const t = this._animatingPrivateSettings[e];
1388
- t && (t.stop(), delete this._animatingPrivateSettings[e]);
1389
- }
1390
- setPrivate(e, t) {
1391
- return this._setPrivate(e, t), this._stopAnimationPrivate(e), t;
1392
- }
1393
- removePrivate(e) {
1394
- e in this._privateSettings && (this._prevPrivateSettings[e] = this._privateSettings[e], delete this._privateSettings[e], this._markDirtyPrivateKey(e)), this._stopAnimationPrivate(e);
1395
- }
1396
- setAll(e) {
1397
- y(e, (t, i) => {
1398
- this.set(t, i);
1399
- });
1400
- }
1401
- animate(e) {
1402
- const t = e.key, i = e.to, r = e.duration || 0, a = e.loops || 1, n = e.from === void 0 ? this.get(t) : e.from, o = e.easing === void 0 ? Le : e.easing;
1403
- if (r === 0)
1404
- this.set(t, i);
1405
- else {
1406
- if (n !== void 0 && n !== i) {
1407
- this.set(t, n);
1408
- const l = this._animatingSettings[t] = new Q(this, n, i, r, o, a, this._animationTime());
1409
- return this._startAnimation(), l;
1410
- }
1411
- this.set(t, i);
1412
- }
1413
- const h = new Q(this, n, i, r, o, a, null);
1414
- return h.stop(), h;
1415
- }
1416
- animatePrivate(e) {
1417
- const t = e.key, i = e.to, r = e.duration || 0, a = e.loops || 1, n = e.from === void 0 ? this.getPrivate(t) : e.from, o = e.easing === void 0 ? Le : e.easing;
1418
- if (r === 0)
1419
- this.setPrivate(t, i);
1420
- else {
1421
- if (n !== void 0 && n !== i) {
1422
- this.setPrivate(t, n);
1423
- const l = this._animatingPrivateSettings[t] = new Q(this, n, i, r, o, a, this._animationTime());
1424
- return this._startAnimation(), l;
1425
- }
1426
- this.setPrivate(t, i);
1427
- }
1428
- const h = new Q(this, n, i, r, o, a, null);
1429
- return h.stop(), h;
1430
- }
1431
- _dispose() {
1432
- }
1433
- isDisposed() {
1434
- return this._disposed;
1435
- }
1436
- dispose() {
1437
- this._disposed || (this._disposed = !0, this._dispose());
1438
- }
1439
- }
1440
- class A extends Ht {
1441
- constructor(e, t, i, r = []) {
1442
- if (super(t), Object.defineProperty(this, "_root", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_user_id", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "states", { enumerable: !0, configurable: !0, writable: !0, value: new Ct(this) }), Object.defineProperty(this, "adapters", { enumerable: !0, configurable: !0, writable: !0, value: new Bt(this) }), Object.defineProperty(this, "events", { enumerable: !0, configurable: !0, writable: !0, value: this._createEvents() }), Object.defineProperty(this, "_userPrivateProperties", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_dirty", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_dirtyPrivate", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_template", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_templates", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_internalTemplates", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_defaultThemes", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_templateDisposers", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_disposers", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_runSetup", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "_disposerProperties", { enumerable: !0, configurable: !0, writable: !0, value: {} }), !i)
1443
- throw new Error("You cannot use `new Class()`, instead use `Class.new()`");
1444
- this._root = e, this._internalTemplates = r, t.id && this._registerId(t.id);
1445
- }
1446
- static new(e, t, i) {
1447
- const r = new this(e, t, !0);
1448
- return r._template = i, r._afterNew(), r;
1449
- }
1450
- static _new(e, t, i = []) {
1451
- const r = new this(e, t, !0, i);
1452
- return r._afterNew(), r;
1453
- }
1454
- _afterNew() {
1455
- this._checkDirty();
1456
- let e = !1;
1457
- const t = this._template;
1458
- t && (e = !0, t._setObjectTemplate(this)), _(this._internalTemplates, (i) => {
1459
- e = !0, i._setObjectTemplate(this);
1460
- }), e && this._applyTemplates(!1), this.states.create("default", {}), this._setDefaults();
1461
- }
1462
- _afterNewApplyThemes() {
1463
- this._checkDirty();
1464
- const e = this._template;
1465
- e && e._setObjectTemplate(this), _(this._internalTemplates, (t) => {
1466
- t._setObjectTemplate(this);
1467
- }), this.states.create("default", {}), this._setDefaults(), this._applyThemes();
1468
- }
1469
- _createEvents() {
1470
- return new J();
1471
- }
1472
- get classNames() {
1473
- return this.constructor.classNames;
1474
- }
1475
- get className() {
1476
- return this.constructor.className;
1477
- }
1478
- _setDefaults() {
1479
- }
1480
- _setDefault(e, t) {
1481
- e in this._settings || super.set(e, t);
1482
- }
1483
- _setRawDefault(e, t) {
1484
- e in this._settings || super.setRaw(e, t);
1485
- }
1486
- _clearDirty() {
1487
- T(this._dirty).forEach((e) => {
1488
- this._dirty[e] = !1;
1489
- }), T(this._dirtyPrivate).forEach((e) => {
1490
- this._dirtyPrivate[e] = !1;
1491
- });
1492
- }
1493
- isDirty(e) {
1494
- return !!this._dirty[e];
1495
- }
1496
- isPrivateDirty(e) {
1497
- return !!this._dirtyPrivate[e];
1498
- }
1499
- _markDirtyKey(e) {
1500
- this._dirty[e] = !0, super._markDirtyKey(e);
1501
- }
1502
- _markDirtyPrivateKey(e) {
1503
- this._dirtyPrivate[e] = !0, super._markDirtyKey(e);
1504
- }
1505
- isType(e) {
1506
- return this.classNames.indexOf(e) !== -1;
1507
- }
1508
- _pushPropertyDisposer(e, t) {
1509
- let i = this._disposerProperties[e];
1510
- return i === void 0 && (i = this._disposerProperties[e] = []), i.push(t), t;
1511
- }
1512
- _disposeProperty(e) {
1513
- const t = this._disposerProperties[e];
1514
- t !== void 0 && (_(t, (i) => {
1515
- i.dispose();
1516
- }), delete this._disposerProperties[e]);
1517
- }
1518
- set template(e) {
1519
- const t = this._template;
1520
- t !== e && (this._template = e, t && t._removeObjectTemplate(this), e && e._setObjectTemplate(this), this._applyTemplates());
1521
- }
1522
- get template() {
1523
- return this._template;
1524
- }
1525
- markDirty() {
1526
- this._root._addDirtyEntity(this);
1527
- }
1528
- _startAnimation() {
1529
- this._root._addAnimation(this);
1530
- }
1531
- _animationTime() {
1532
- return this._root.animationTime;
1533
- }
1534
- _applyState(e) {
1535
- }
1536
- _applyStateAnimated(e, t) {
1537
- }
1538
- get(e, t) {
1539
- const i = this.adapters.fold(e, this._settings[e]);
1540
- return i !== void 0 ? i : t;
1541
- }
1542
- isUserSetting(e) {
1543
- return this._userProperties[e] || !1;
1544
- }
1545
- set(e, t) {
1546
- return this._userProperties[e] = !0, super.set(e, t);
1547
- }
1548
- setRaw(e, t) {
1549
- this._userProperties[e] = !0, super.setRaw(e, t);
1550
- }
1551
- _setSoft(e, t) {
1552
- return this._userProperties[e] ? t : super.set(e, t);
1553
- }
1554
- remove(e) {
1555
- delete this._userProperties[e], this._removeTemplateProperty(e);
1556
- }
1557
- setPrivate(e, t) {
1558
- return this._userPrivateProperties[e] = !0, super.setPrivate(e, t);
1559
- }
1560
- setPrivateRaw(e, t) {
1561
- this._userPrivateProperties[e] = !0, super.setPrivateRaw(e, t);
1562
- }
1563
- removePrivate(e) {
1564
- delete this._userPrivateProperties[e], this._removeTemplatePrivateProperty(e);
1565
- }
1566
- _setTemplateProperty(e, t, i) {
1567
- this._userProperties[t] || e === this._findTemplateByKey(t) && super.set(t, i);
1568
- }
1569
- _setTemplatePrivateProperty(e, t, i) {
1570
- this._userPrivateProperties[t] || e === this._findTemplateByPrivateKey(t) && super.setPrivate(t, i);
1571
- }
1572
- _removeTemplateProperty(e) {
1573
- if (!this._userProperties[e]) {
1574
- const t = this._findTemplateByKey(e);
1575
- t ? super.set(e, t._settings[e]) : super.remove(e);
1576
- }
1577
- }
1578
- _removeTemplatePrivateProperty(e) {
1579
- if (!this._userPrivateProperties[e]) {
1580
- const t = this._findTemplateByPrivateKey(e);
1581
- t ? super.setPrivate(e, t._privateSettings[e]) : super.removePrivate(e);
1582
- }
1583
- }
1584
- _walkParents(e) {
1585
- e(this._root._rootContainer), e(this);
1586
- }
1587
- _applyStateByKey(e) {
1588
- const t = this.states.create(e, {}), i = {};
1589
- this._eachTemplate((r) => {
1590
- const a = r.states.lookup(e);
1591
- a && a._apply(t, i);
1592
- }), y(t._settings, (r) => {
1593
- i[r] || t._userSettings[r] || t.remove(r);
1594
- });
1595
- }
1596
- _applyTemplate(e, t) {
1597
- this._templateDisposers.push(e._apply(this, t)), y(e._settings, (i, r) => {
1598
- t.settings[i] || this._userProperties[i] || (t.settings[i] = !0, super.set(i, r));
1599
- }), y(e._privateSettings, (i, r) => {
1600
- t.privateSettings[i] || this._userPrivateProperties[i] || (t.privateSettings[i] = !0, super.setPrivate(i, r));
1601
- }), this._runSetup && e.setup && (this._runSetup = !1, e.setup(this));
1602
- }
1603
- _findStaticTemplate(e) {
1604
- if (this._template && e(this._template))
1605
- return this._template;
1606
- }
1607
- _eachTemplate(e) {
1608
- this._findStaticTemplate((t) => (e(t), !1)), V(this._internalTemplates, e), _(this._templates, e);
1609
- }
1610
- _applyTemplates(e = !0) {
1611
- e && this._disposeTemplates();
1612
- const t = { settings: {}, privateSettings: {}, states: {} };
1613
- this._eachTemplate((i) => {
1614
- this._applyTemplate(i, t);
1615
- }), e && (y(this._settings, (i) => {
1616
- this._userProperties[i] || t.settings[i] || super.remove(i);
1617
- }), y(this._privateSettings, (i) => {
1618
- this._userPrivateProperties[i] || t.privateSettings[i] || super.removePrivate(i);
1619
- }));
1620
- }
1621
- _findTemplate(e) {
1622
- const t = this._findStaticTemplate(e);
1623
- if (t === void 0) {
1624
- const i = rt(this._internalTemplates, e);
1625
- return i === void 0 ? st(this._templates, e) : i;
1626
- }
1627
- return t;
1628
- }
1629
- _findTemplateByKey(e) {
1630
- return this._findTemplate((t) => e in t._settings);
1631
- }
1632
- _findTemplateByPrivateKey(e) {
1633
- return this._findTemplate((t) => e in t._privateSettings);
1634
- }
1635
- _disposeTemplates() {
1636
- _(this._templateDisposers, (e) => {
1637
- e.dispose();
1638
- }), this._templateDisposers.length = 0;
1639
- }
1640
- _removeTemplates() {
1641
- _(this._templates, (e) => {
1642
- e._removeObjectTemplate(this);
1643
- }), this._templates.length = 0;
1644
- }
1645
- _applyThemes(e = !1) {
1646
- let t = !1;
1647
- const i = [];
1648
- let r = [];
1649
- const a = /* @__PURE__ */ new Set(), n = this.get("themeTagsSelf");
1650
- return n && _(n, (o) => {
1651
- a.add(o);
1652
- }), this._walkParents((o) => {
1653
- o === this._root._rootContainer && (t = !0), o._defaultThemes.length > 0 && i.push(o._defaultThemes);
1654
- const h = o.get("themes");
1655
- h && r.push(h);
1656
- const l = o.get("themeTags");
1657
- l && _(l, (d) => {
1658
- a.add(d);
1659
- });
1660
- }), r = i.concat(r), this._removeTemplates(), (t || e) && V(this.classNames, (o) => {
1661
- const h = [];
1662
- _(r, (l) => {
1663
- _(l, (d) => {
1664
- const p = d._lookupRules(o);
1665
- p && V(p, (u) => {
1666
- if (u.tags.every((c) => a.has(c))) {
1667
- const c = nt(h, (m) => {
1668
- const b = F(u.tags.length, m.tags.length);
1669
- return b === 0 ? Ze(u.tags, m.tags, F) : b;
1670
- });
1671
- h.splice(c.index, 0, u);
1672
- }
1673
- });
1674
- });
1675
- }), _(h, (l) => {
1676
- this._templates.push(l.template), l.template._setObjectTemplate(this);
1677
- });
1678
- }), this._applyTemplates(), (t || e) && (this._runSetup = !1), t || e;
1679
- }
1680
- _changed() {
1681
- }
1682
- _beforeChanged() {
1683
- if (this.isDirty("id")) {
1684
- const e = this.get("id");
1685
- e && this._registerId(e);
1686
- const t = this._prevSettings.id;
1687
- t && delete R.entitiesById[t];
1688
- }
1689
- }
1690
- _registerId(e) {
1691
- if (R.entitiesById[e] && R.entitiesById[e] !== this)
1692
- throw new Error('An entity with id "' + e + '" already exists.');
1693
- R.entitiesById[e] = this;
1694
- }
1695
- _afterChanged() {
1696
- }
1697
- addDisposer(e) {
1698
- return this._disposers.push(e), e;
1699
- }
1700
- _dispose() {
1701
- super._dispose();
1702
- const e = this._template;
1703
- e && e._removeObjectTemplate(this), _(this._internalTemplates, (i) => {
1704
- i._removeObjectTemplate(this);
1705
- }), this._removeTemplates(), this._disposeTemplates(), this.events.dispose(), this._disposers.forEach((i) => {
1706
- i.dispose();
1707
- }), y(this._disposerProperties, (i, r) => {
1708
- _(r, (a) => {
1709
- a.dispose();
1710
- });
1711
- });
1712
- const t = this.get("id");
1713
- t && delete R.entitiesById[t];
1714
- }
1715
- setTimeout(e, t) {
1716
- const i = setTimeout(() => {
1717
- this.removeDispose(r), e();
1718
- }, t), r = new P(() => {
1719
- clearTimeout(i);
1720
- });
1721
- return this._disposers.push(r), r;
1722
- }
1723
- removeDispose(e) {
1724
- if (!this.isDisposed()) {
1725
- let t = re(this._disposers, e);
1726
- t > -1 && this._disposers.splice(t, 1);
1727
- }
1728
- e.dispose();
1729
- }
1730
- hasTag(e) {
1731
- return re(this.get("themeTags", []), e) !== -1;
1732
- }
1733
- addTag(e) {
1734
- if (!this.hasTag(e)) {
1735
- const t = this.get("themeTags", []);
1736
- t.push(e), this.set("themeTags", t);
1737
- }
1738
- }
1739
- removeTag(e) {
1740
- if (this.hasTag(e)) {
1741
- const t = this.get("themeTags", []);
1742
- Fe(t, e), this.set("themeTags", t);
1743
- }
1744
- }
1745
- _t(e, t, ...i) {
1746
- return this._root.language.translate(e, t, ...i);
1747
- }
1748
- get root() {
1749
- return this._root;
1750
- }
1751
- }
1752
- Object.defineProperty(A, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Entity" }), Object.defineProperty(A, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: ["Entity"] });
1753
- class It {
1754
- constructor(e, t, i) {
1755
- Object.defineProperty(this, "_settings", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_name", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_template", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._name = e, this._template = t, this._settings = i;
1756
- }
1757
- get(e, t) {
1758
- const i = this._settings[e];
1759
- return i !== void 0 ? i : t;
1760
- }
1761
- set(e, t) {
1762
- this._settings[e] = t, this._template._stateChanged(this._name);
1763
- }
1764
- remove(e) {
1765
- delete this._settings[e], this._template._stateChanged(this._name);
1766
- }
1767
- setAll(e) {
1768
- T(e).forEach((t) => {
1769
- this._settings[t] = e[t];
1770
- }), this._template._stateChanged(this._name);
1771
- }
1772
- _apply(e, t) {
1773
- y(this._settings, (i, r) => {
1774
- t[i] || e._userSettings[i] || (t[i] = !0, e.setRaw(i, r));
1775
- });
1776
- }
1777
- }
1778
- class Lt {
1779
- constructor(e) {
1780
- Object.defineProperty(this, "_template", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_states", { enumerable: !0, configurable: !0, writable: !0, value: {} }), this._template = e;
1781
- }
1782
- lookup(e) {
1783
- return this._states[e];
1784
- }
1785
- create(e, t) {
1786
- const i = this._states[e];
1787
- if (i)
1788
- return i.setAll(t), i;
1789
- {
1790
- const r = new It(e, this._template, t);
1791
- return this._states[e] = r, this._template._stateChanged(e), r;
1792
- }
1793
- }
1794
- remove(e) {
1795
- delete this._states[e], this._template._stateChanged(e);
1796
- }
1797
- _apply(e, t) {
1798
- y(this._states, (i, r) => {
1799
- let a = t.states[i];
1800
- a == null && (a = t.states[i] = {});
1801
- const n = e.states.create(i, {});
1802
- r._apply(n, a);
1803
- });
1804
- }
1805
- }
1806
- class Nt {
1807
- constructor() {
1808
- Object.defineProperty(this, "_callbacks", { enumerable: !0, configurable: !0, writable: !0, value: {} });
1809
- }
1810
- add(e, t) {
1811
- let i = this._callbacks[e];
1812
- return i === void 0 && (i = this._callbacks[e] = []), i.push(t), new P(() => {
1813
- O(i, t), i.length === 0 && delete this._callbacks[e];
1814
- });
1815
- }
1816
- remove(e) {
1817
- this._callbacks[e] !== void 0 && delete this._callbacks[e];
1818
- }
1819
- _apply(e) {
1820
- const t = [];
1821
- return y(this._callbacks, (i, r) => {
1822
- _(r, (a) => {
1823
- t.push(e.adapters.add(i, a));
1824
- });
1825
- }), new k(t);
1826
- }
1827
- }
1828
- class q {
1829
- constructor(e, t) {
1830
- if (Object.defineProperty(this, "_settings", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_privateSettings", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_settingEvents", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_privateSettingEvents", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_entities", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "states", { enumerable: !0, configurable: !0, writable: !0, value: new Lt(this) }), Object.defineProperty(this, "adapters", { enumerable: !0, configurable: !0, writable: !0, value: new Nt() }), Object.defineProperty(this, "events", { enumerable: !0, configurable: !0, writable: !0, value: new J() }), Object.defineProperty(this, "setup", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), !t)
1831
- throw new Error("You cannot use `new Class()`, instead use `Class.new()`");
1832
- this._settings = e;
1833
- }
1834
- static new(e) {
1835
- return new q(e, !0);
1836
- }
1837
- get entities() {
1838
- return this._entities;
1839
- }
1840
- get(e, t) {
1841
- const i = this._settings[e];
1842
- return i !== void 0 ? i : t;
1843
- }
1844
- setRaw(e, t) {
1845
- this._settings[e] = t;
1846
- }
1847
- set(e, t) {
1848
- this._settings[e] !== t && (this.setRaw(e, t), this._entities.forEach((i) => {
1849
- i._setTemplateProperty(this, e, t);
1850
- }));
1851
- }
1852
- remove(e) {
1853
- e in this._settings && (delete this._settings[e], this._entities.forEach((t) => {
1854
- t._removeTemplateProperty(e);
1855
- }));
1856
- }
1857
- removeAll() {
1858
- y(this._settings, (e, t) => {
1859
- this.remove(e);
1860
- });
1861
- }
1862
- getPrivate(e, t) {
1863
- const i = this._privateSettings[e];
1864
- return i !== void 0 ? i : t;
1865
- }
1866
- setPrivateRaw(e, t) {
1867
- return this._privateSettings[e] = t, t;
1868
- }
1869
- setPrivate(e, t) {
1870
- return this._privateSettings[e] !== t && (this.setPrivateRaw(e, t), this._entities.forEach((i) => {
1871
- i._setTemplatePrivateProperty(this, e, t);
1872
- })), t;
1873
- }
1874
- removePrivate(e) {
1875
- e in this._privateSettings && (delete this._privateSettings[e], this._entities.forEach((t) => {
1876
- t._removeTemplatePrivateProperty(e);
1877
- }));
1878
- }
1879
- setAll(e) {
1880
- y(e, (t, i) => {
1881
- this.set(t, i);
1882
- });
1883
- }
1884
- on(e, t) {
1885
- let i = this._settingEvents[e];
1886
- return i === void 0 && (i = this._settingEvents[e] = []), i.push(t), new P(() => {
1887
- O(i, t), i.length === 0 && delete this._settingEvents[e];
1888
- });
1889
- }
1890
- onPrivate(e, t) {
1891
- let i = this._privateSettingEvents[e];
1892
- return i === void 0 && (i = this._privateSettingEvents[e] = []), i.push(t), new P(() => {
1893
- O(i, t), i.length === 0 && delete this._privateSettingEvents[e];
1894
- });
1895
- }
1896
- _apply(e, t) {
1897
- const i = [];
1898
- return y(this._settingEvents, (r, a) => {
1899
- _(a, (n) => {
1900
- i.push(e.on(r, n));
1901
- });
1902
- }), y(this._privateSettingEvents, (r, a) => {
1903
- _(a, (n) => {
1904
- i.push(e.onPrivate(r, n));
1905
- });
1906
- }), this.states._apply(e, t), i.push(this.adapters._apply(e)), i.push(e.events.copyFrom(this.events)), new k(i);
1907
- }
1908
- _setObjectTemplate(e) {
1909
- this._entities.push(e);
1910
- }
1911
- _removeObjectTemplate(e) {
1912
- Fe(this._entities, e);
1913
- }
1914
- _stateChanged(e) {
1915
- this._entities.forEach((t) => {
1916
- t._applyStateByKey(e);
1917
- });
1918
- }
1919
- }
1920
- class ae extends J {
1921
- constructor(e) {
1922
- super(), Object.defineProperty(this, "_sprite", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_rendererDisposers", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_dispatchParents", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), this._sprite = e;
1923
- }
1924
- _makePointerEvent(e, t) {
1925
- return { type: e, originalEvent: t.event, point: t.point, simulated: t.simulated, native: t.native, target: this._sprite };
1926
- }
1927
- _onRenderer(e, t) {
1928
- this._sprite.set("interactive", !0), this._sprite._display.interactive = !0;
1929
- let i = this._rendererDisposers[e];
1930
- if (i === void 0) {
1931
- const r = this._sprite._display.on(e, (a) => {
1932
- t.call(this, a);
1933
- });
1934
- i = this._rendererDisposers[e] = new lt(() => {
1935
- delete this._rendererDisposers[e], r.dispose();
1936
- });
1937
- }
1938
- return i.increment();
1939
- }
1940
- _on(e, t, i, r, a, n) {
1941
- const o = super._on(e, t, i, r, a, n), h = ae.RENDERER_EVENTS[t];
1942
- return h !== void 0 && (o.disposer = new k([o.disposer, this._onRenderer(t, h)])), o;
1943
- }
1944
- stopParentDispatch() {
1945
- this._dispatchParents = !1;
1946
- }
1947
- dispatchParents(e, t) {
1948
- const i = this._dispatchParents;
1949
- this._dispatchParents = !0;
1950
- try {
1951
- this.dispatch(e, t), this._dispatchParents && this._sprite.parent && this._sprite.parent.events.dispatchParents(e, t);
1952
- } finally {
1953
- this._dispatchParents = i;
1954
- }
1955
- }
1956
- }
1957
- Object.defineProperty(ae, "RENDERER_EVENTS", { enumerable: !0, configurable: !0, writable: !0, value: { click: function(s) {
1958
- this.isEnabled("click") && !this._sprite.isDragging() && this._sprite._hasDown() && !this._sprite._hasMoved(this._makePointerEvent("click", s)) && this.dispatch("click", this._makePointerEvent("click", s));
1959
- }, rightclick: function(s) {
1960
- this.isEnabled("rightclick") && this.dispatch("rightclick", this._makePointerEvent("rightclick", s));
1961
- }, middleclick: function(s) {
1962
- this.isEnabled("middleclick") && this.dispatch("middleclick", this._makePointerEvent("middleclick", s));
1963
- }, dblclick: function(s) {
1964
- this.dispatchParents("dblclick", this._makePointerEvent("dblclick", s));
1965
- }, pointerover: function(s) {
1966
- const e = this._sprite;
1967
- let t = !0;
1968
- if (e.getPrivate("trustBounds")) {
1969
- e._getBounds();
1970
- const i = e.globalBounds();
1971
- St(s.point, i) || (t = !1, e._root._renderer.removeHovering(e._display));
1972
- }
1973
- t && this.isEnabled("pointerover") && this.dispatch("pointerover", this._makePointerEvent("pointerover", s));
1974
- }, pointerout: function(s) {
1975
- this.isEnabled("pointerout") && this.dispatch("pointerout", this._makePointerEvent("pointerout", s));
1976
- }, pointerdown: function(s) {
1977
- this.dispatchParents("pointerdown", this._makePointerEvent("pointerdown", s));
1978
- }, pointerup: function(s) {
1979
- this.isEnabled("pointerup") && this.dispatch("pointerup", this._makePointerEvent("pointerup", s));
1980
- }, globalpointerup: function(s) {
1981
- this.isEnabled("globalpointerup") && this.dispatch("globalpointerup", this._makePointerEvent("globalpointerup", s));
1982
- }, globalpointermove: function(s) {
1983
- this.isEnabled("globalpointermove") && this.dispatch("globalpointermove", this._makePointerEvent("globalpointermove", s));
1984
- }, wheel: function(s) {
1985
- this.dispatchParents("wheel", { type: "wheel", target: this._sprite, originalEvent: s.event, point: s.point });
1986
- } } });
1987
- class x extends A {
1988
- constructor() {
1989
- super(...arguments), Object.defineProperty(this, "_adjustedLocalBounds", { enumerable: !0, configurable: !0, writable: !0, value: { left: 0, right: 0, top: 0, bottom: 0 } }), Object.defineProperty(this, "_localBounds", { enumerable: !0, configurable: !0, writable: !0, value: { left: 0, right: 0, top: 0, bottom: 0 } }), Object.defineProperty(this, "_parent", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_dataItem", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_templateField", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_sizeDirty", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_isDragging", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_dragEvent", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_dragPoint", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_isHidden", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_isShowing", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_isHiding", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_isDown", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_downPoint", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_downPoints", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_toggleDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_dragDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltipDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_hoverDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_focusDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltipMoveDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltipPointerDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_statesHandled", { enumerable: !0, configurable: !0, writable: !0, value: !1 });
1990
- }
1991
- _afterNew() {
1992
- this.setPrivateRaw("visible", !0), super._afterNew();
1993
- }
1994
- _markDirtyKey(e) {
1995
- super._markDirtyKey(e), e != "x" && e != "y" && e != "dx" && e != "dy" || (this.markDirtyBounds(), this._addPercentagePositionChildren(), this.markDirtyPosition());
1996
- }
1997
- _markDirtyPrivateKey(e) {
1998
- super._markDirtyPrivateKey(e), e != "x" && e != "y" || this.markDirtyPosition();
1999
- }
2000
- _removeTemplateField() {
2001
- this._templateField && this._templateField._removeObjectTemplate(this);
2002
- }
2003
- _createEvents() {
2004
- return new ae(this);
2005
- }
2006
- _processTemplateField() {
2007
- let e;
2008
- const t = this.get("templateField");
2009
- if (t) {
2010
- const i = this.dataItem;
2011
- if (i) {
2012
- const r = i.dataContext;
2013
- r && (e = r[t], e instanceof q || !e || (e = q.new(e)));
2014
- }
2015
- }
2016
- this._templateField !== e && (this._removeTemplateField(), this._templateField = e, e && e._setObjectTemplate(this), this._applyTemplates());
2017
- }
2018
- _setDataItem(e) {
2019
- const t = this._dataItem;
2020
- this._dataItem = e, this._processTemplateField();
2021
- const i = "dataitemchanged";
2022
- e != t && this.events.isEnabled(i) && this.events.dispatch(i, { type: i, target: this, oldDataItem: t, newDataItem: e });
2023
- }
2024
- set dataItem(e) {
2025
- this._setDataItem(e);
2026
- }
2027
- get dataItem() {
2028
- if (this._dataItem)
2029
- return this._dataItem;
2030
- {
2031
- let e = this._parent;
2032
- for (; e; ) {
2033
- if (e._dataItem)
2034
- return e._dataItem;
2035
- e = e._parent;
2036
- }
2037
- }
2038
- }
2039
- _addPercentageSizeChildren() {
2040
- let e = this.parent;
2041
- e && (this.get("width") instanceof f || this.get("height") instanceof f ? Ce(e._percentageSizeChildren, this) : O(e._percentageSizeChildren, this));
2042
- }
2043
- _addPercentagePositionChildren() {
2044
- let e = this.parent;
2045
- e && (this.get("x") instanceof f || this.get("y") instanceof f ? Ce(e._percentagePositionChildren, this) : O(e._percentagePositionChildren, this));
2046
- }
2047
- markDirtyPosition() {
2048
- this._root._addDirtyPosition(this);
2049
- }
2050
- updatePivotPoint() {
2051
- const e = this._localBounds;
2052
- if (e) {
2053
- const t = this.get("centerX");
2054
- t != null && (this._display.pivot.x = e.left + M(t, e.right - e.left));
2055
- const i = this.get("centerY");
2056
- i != null && (this._display.pivot.y = e.top + M(i, e.bottom - e.top));
2057
- }
2058
- }
2059
- _beforeChanged() {
2060
- if (super._beforeChanged(), this._handleStates(), this.isDirty("tooltip")) {
2061
- const e = this._prevSettings.tooltip;
2062
- e && e.dispose();
2063
- }
2064
- if ((this.isDirty("layer") || this.isDirty("layerMargin")) && (this._display.setLayer(this.get("layer"), this.get("layerMargin")), this.markDirtyLayer()), this.isDirty("tooltipPosition")) {
2065
- const e = this._tooltipMoveDp;
2066
- e && (e.dispose(), this._tooltipMoveDp = void 0);
2067
- const t = this._tooltipPointerDp;
2068
- t && (t.dispose(), this._tooltipPointerDp = void 0), this.get("tooltipPosition") == "pointer" && (this.isHover() && (this._tooltipMoveDp = this.events.on("globalpointermove", (i) => {
2069
- this.showTooltip(i.point);
2070
- })), this._tooltipPointerDp = new k([this.events.on("pointerover", () => {
2071
- this._tooltipMoveDp = this.events.on("globalpointermove", (i) => {
2072
- this.showTooltip(i.point);
2073
- });
2074
- }), this.events.on("pointerout", () => {
2075
- const i = this._tooltipMoveDp;
2076
- i && (i.dispose(), this._tooltipMoveDp = void 0);
2077
- })]));
2078
- }
2079
- }
2080
- _handleStates() {
2081
- this._statesHandled || (this.isDirty("active") && (this.get("active") ? (this.states.applyAnimate("active"), this.set("ariaChecked", !0)) : (this.isHidden() || this.states.applyAnimate("default"), this.set("ariaChecked", !1)), this.markDirtyAccessibility()), this.isDirty("disabled") && (this.get("disabled") ? (this.states.applyAnimate("disabled"), this.set("ariaChecked", !1)) : (this.isHidden() || this.states.applyAnimate("default"), this.set("ariaChecked", !0)), this.markDirtyAccessibility()), this._statesHandled = !0);
2082
- }
2083
- _changed() {
2084
- super._changed();
2085
- const e = this._display, t = this.events;
2086
- if (this.isDirty("draggable")) {
2087
- const r = this.get("draggable");
2088
- r ? (this.set("interactive", !0), this._dragDp = new k([t.on("pointerdown", (a) => {
2089
- this.dragStart(a);
2090
- }), t.on("globalpointermove", (a) => {
2091
- this.dragMove(a);
2092
- }), t.on("globalpointerup", (a) => {
2093
- this.dragStop(a);
2094
- })])) : this._dragDp && (this._dragDp.dispose(), this._dragDp = void 0), e.cancelTouch = !!r;
2095
- }
2096
- if (this.isDirty("tooltipText") || this.isDirty("tooltipHTML") || this.isDirty("showTooltipOn")) {
2097
- const r = this.get("tooltipText"), a = this.get("tooltipHTML"), n = this.get("showTooltipOn", "hover");
2098
- this._tooltipDp && (this._tooltipDp.dispose(), this._tooltipDp = void 0), (r || a) && (n == "click" ? (this._tooltipDp = new k([t.on("click", () => {
2099
- this.setTimeout(() => this.showTooltip(), 10);
2100
- }), Ue(document, "click", (o) => {
2101
- this.hideTooltip();
2102
- })]), this._disposers.push(this._tooltipDp)) : n == "always" || (this._tooltipDp = new k([t.on("pointerover", () => {
2103
- this.showTooltip();
2104
- }), t.on("pointerout", () => {
2105
- this.hideTooltip();
2106
- })]), this._disposers.push(this._tooltipDp)));
2107
- }
2108
- if (this.isDirty("toggleKey")) {
2109
- let r = this.get("toggleKey");
2110
- r && r != "none" ? this._toggleDp = t.on("click", () => {
2111
- this._isDragging || this.set(r, !this.get(r));
2112
- }) : this._toggleDp && (this._toggleDp.dispose(), this._toggleDp = void 0);
2113
- }
2114
- if (this.isDirty("opacity") && (e.alpha = Math.max(0, this.get("opacity", 1)), this.get("focusable") && this.markDirtyAccessibility()), this.isDirty("rotation") && (this.markDirtyBounds(), e.angle = this.get("rotation", 0)), this.isDirty("scale") && (this.markDirtyBounds(), e.scale = this.get("scale", 0)), (this.isDirty("centerX") || this.isDirty("centerY")) && (this.markDirtyBounds(), this.updatePivotPoint()), (this.isDirty("visible") || this.isPrivateDirty("visible") || this.isDirty("forceHidden")) && (this.get("visible") && this.getPrivate("visible") && !this.get("forceHidden") ? e.visible = !0 : (e.visible = !1, this.hideTooltip()), this.markDirtyBounds(), this.get("focusable") && this.markDirtyAccessibility()), this.isDirty("width") || this.isDirty("height")) {
2115
- this.markDirtyBounds(), this._addPercentageSizeChildren();
2116
- const r = this.parent;
2117
- r && (this.isDirty("width") && this.get("width") instanceof f || this.isDirty("height") && this.get("height") instanceof f) && (r.markDirty(), r._prevWidth = 0), this._sizeDirty = !0;
2118
- }
2119
- if ((this.isDirty("maxWidth") || this.isDirty("maxHeight") || this.isPrivateDirty("width") || this.isPrivateDirty("height") || this.isDirty("minWidth") || this.isDirty("minHeight") || this.isPrivateDirty("maxWidth") || this.isPrivateDirty("maxHeight") || this.isPrivateDirty("minWidth") || this.isPrivateDirty("minHeight")) && (this.markDirtyBounds(), this._sizeDirty = !0), this._sizeDirty && this._updateSize(), this.isDirty("wheelable")) {
2120
- const r = this.get("wheelable");
2121
- r && this.set("interactive", !0), e.wheelable = !!r;
2122
- }
2123
- (this.isDirty("tabindexOrder") || this.isDirty("focusableGroup")) && (this.get("focusable") ? this._root._registerTabindexOrder(this) : this._root._unregisterTabindexOrder(this)), this.isDirty("filter") && (e.filter = this.get("filter"));
2124
- let i = this.get("filter", "");
2125
- if (this.isDirty("blur")) {
2126
- const r = this.get("blur", 0);
2127
- r != 0 && (i += " blur(" + r + "px)");
2128
- }
2129
- if (this.isDirty("saturate")) {
2130
- const r = this.get("saturate", 1);
2131
- r != 1 && (i += " saturate(" + r + ")");
2132
- }
2133
- if (this.isDirty("brightness")) {
2134
- const r = this.get("brightness", 1);
2135
- r != 1 && (i += " brightness(" + r + ")");
2136
- }
2137
- if (this.isDirty("contrast")) {
2138
- const r = this.get("contrast", 1);
2139
- r != 1 && (i += " contrast(" + r + ")");
2140
- }
2141
- if (this.isDirty("sepia")) {
2142
- const r = this.get("sepia", 0);
2143
- r != 0 && (i += " sepia(" + r + ")");
2144
- }
2145
- if (this.isDirty("hue")) {
2146
- const r = this.get("hue", 0);
2147
- r != 0 && (i += " hue-rotate(" + r + "deg)");
2148
- }
2149
- if (this.isDirty("invert")) {
2150
- const r = this.get("invert", 0);
2151
- r != 0 && (i += " invert(" + r + ")");
2152
- }
2153
- if (i && (e.filter = i), this.isDirty("cursorOverStyle") && (e.cursorOverStyle = this.get("cursorOverStyle")), this.isDirty("hoverOnFocus") && (this.get("hoverOnFocus") ? this._focusDp = new k([t.on("focus", () => {
2154
- this.showTooltip();
2155
- }), t.on("blur", () => {
2156
- this.hideTooltip();
2157
- })]) : this._focusDp && (this._focusDp.dispose(), this._focusDp = void 0)), this.isDirty("focusable") && (this.get("focusable") ? this._root._registerTabindexOrder(this) : this._root._unregisterTabindexOrder(this), this.markDirtyAccessibility()), this.isPrivateDirty("focusable") && this.markDirtyAccessibility(), (this.isDirty("role") || this.isDirty("ariaLive") || this.isDirty("ariaChecked") || this.isDirty("ariaHidden") || this.isDirty("ariaOrientation") || this.isDirty("ariaValueNow") || this.isDirty("ariaValueMin") || this.isDirty("ariaValueMax") || this.isDirty("ariaValueText") || this.isDirty("ariaLabel") || this.isDirty("ariaControls")) && this.markDirtyAccessibility(), this.isDirty("exportable") && (e.exportable = this.get("exportable")), this.isDirty("interactive")) {
2158
- const r = this.events;
2159
- this.get("interactive") ? this._hoverDp = new k([r.on("click", (a) => {
2160
- Me(a.originalEvent) && (this.getPrivate("touchHovering") || this.setTimeout(() => {
2161
- this._handleOver(), (this.get("tooltipText") || this.get("tooltipHTML")) && this.showTooltip(), this.setPrivateRaw("touchHovering", !0), this.events.dispatch("pointerover", { type: "pointerover", target: a.target, originalEvent: a.originalEvent, point: a.point, simulated: a.simulated });
2162
- }, 10));
2163
- }), r.on("globalpointerup", (a) => {
2164
- Me(a.originalEvent) && this.getPrivate("touchHovering") && (this._handleOut(), (this.get("tooltipText") || this.get("tooltipHTML")) && this.hideTooltip(), this.setPrivateRaw("touchHovering", !1), this.events.dispatch("pointerout", { type: "pointerout", target: a.target, originalEvent: a.originalEvent, point: a.point, simulated: a.simulated })), this._isDown && this._handleUp(a);
2165
- }), r.on("pointerover", () => {
2166
- this._handleOver();
2167
- }), r.on("pointerout", () => {
2168
- this._handleOut();
2169
- }), r.on("pointerdown", (a) => {
2170
- this._handleDown(a);
2171
- })]) : (this._display.interactive = !1, this._hoverDp && (this._hoverDp.dispose(), this._hoverDp = void 0));
2172
- }
2173
- this.isDirty("forceInactive") && (this._display.inactive = this.get("forceInactive", null)), this.get("showTooltipOn") == "always" && this._display.visible && this.showTooltip();
2174
- }
2175
- dragStart(e) {
2176
- this._dragEvent = e, this.events.stopParentDispatch();
2177
- }
2178
- dragStop(e) {
2179
- if (this._dragEvent = void 0, this._dragPoint = void 0, this.events.stopParentDispatch(), this._isDragging) {
2180
- this._isDragging = !1;
2181
- const t = "dragstop";
2182
- this.events.isEnabled(t) && this.events.dispatch(t, { type: t, target: this, originalEvent: e.originalEvent, point: e.point, simulated: e.simulated });
2183
- }
2184
- }
2185
- _handleOver() {
2186
- this.isHidden() || (this.get("active") && this.states.lookup("hoverActive") ? this.states.applyAnimate("hoverActive") : this.get("disabled") && this.states.lookup("hoverDisabled") ? this.states.applyAnimate("hoverDisabled") : this.states.applyAnimate("hover"), this.get("draggable") && this._isDown && this.states.lookup("down") && this.states.applyAnimate("down"));
2187
- }
2188
- _handleOut() {
2189
- this.isHidden() || (this.get("active") && this.states.lookup("active") ? this.states.applyAnimate("active") : this.get("disabled") && this.states.lookup("disabled") ? this.states.applyAnimate("disabled") : (this.states.lookup("hover") || this.states.lookup("hoverActive")) && this.states.applyAnimate("default"), this.get("draggable") && this._isDown && this.states.lookup("down") && this.states.applyAnimate("down"));
2190
- }
2191
- _handleUp(e) {
2192
- if (!this.isHidden()) {
2193
- this.get("active") && this.states.lookup("active") ? this.states.applyAnimate("active") : this.get("disabled") && this.states.lookup("disabled") ? this.states.applyAnimate("disabled") : this.states.lookup("down") && (this.isHover() ? this.states.applyAnimate("hover") : this.states.applyAnimate("default")), this._downPoint = void 0;
2194
- const t = ue(e.originalEvent);
2195
- delete this._downPoints[t], T(this._downPoints).length == 0 && (this._isDown = !1);
2196
- }
2197
- }
2198
- _hasMoved(e) {
2199
- const t = ue(e.originalEvent), i = this._downPoints[t];
2200
- if (i) {
2201
- const r = Math.abs(i.x - e.point.x), a = Math.abs(i.y - e.point.y);
2202
- return r > 5 || a > 5;
2203
- }
2204
- return !1;
2205
- }
2206
- _hasDown() {
2207
- return T(this._downPoints).length > 0;
2208
- }
2209
- _handleDown(e) {
2210
- const t = this.parent;
2211
- if (t && !this.get("draggable") && t._handleDown(e), this.get("interactive") && !this.isHidden()) {
2212
- this.states.lookup("down") && this.states.applyAnimate("down"), this._downPoint = { x: e.point.x, y: e.point.y }, this._isDown = !0;
2213
- const i = ue(e.originalEvent);
2214
- this._downPoints[i] = { x: e.point.x, y: e.point.y };
2215
- }
2216
- }
2217
- dragMove(e) {
2218
- let t = this._dragEvent;
2219
- if (t) {
2220
- if (t.simulated && !e.simulated)
2221
- return !0;
2222
- let i = 0, r = this.parent, a = 1;
2223
- for (; r != null; )
2224
- i += r.get("rotation", 0), r = r.parent, r && (a *= r.get("scale", 1));
2225
- let n = (e.point.x - t.point.x) / a, o = (e.point.y - t.point.y) / a;
2226
- const h = this.events;
2227
- if (t.simulated && !this._isDragging) {
2228
- this._isDragging = !0, this._dragEvent = e, this._dragPoint = { x: this.x(), y: this.y() };
2229
- const l = "dragstart";
2230
- h.isEnabled(l) && h.dispatch(l, { type: l, target: this, originalEvent: e.originalEvent, point: e.point, simulated: e.simulated });
2231
- }
2232
- if (this._isDragging) {
2233
- let l = this._dragPoint;
2234
- this.set("x", l.x + n * ye(i) + o * ve(i)), this.set("y", l.y + o * ye(i) - n * ve(i));
2235
- const d = "dragged";
2236
- h.isEnabled(d) && h.dispatch(d, { type: d, target: this, originalEvent: e.originalEvent, point: e.point, simulated: e.simulated });
2237
- } else if (Math.hypot(n, o) > 5) {
2238
- this._isDragging = !0, this._dragEvent = e, this._dragPoint = { x: this.x(), y: this.y() };
2239
- const l = "dragstart";
2240
- h.isEnabled(l) && h.dispatch(l, { type: l, target: this, originalEvent: e.originalEvent, point: e.point, simulated: e.simulated });
2241
- }
2242
- }
2243
- }
2244
- _updateSize() {
2245
- }
2246
- _getBounds() {
2247
- this._localBounds = this._display.getLocalBounds();
2248
- }
2249
- depth() {
2250
- let e = this.parent, t = 0;
2251
- for (; ; ) {
2252
- if (!e)
2253
- return t;
2254
- ++t, e = e.parent;
2255
- }
2256
- }
2257
- markDirtySize() {
2258
- this._sizeDirty = !0, this.markDirty();
2259
- }
2260
- markDirtyBounds() {
2261
- const e = this._display;
2262
- if (this.get("isMeasured")) {
2263
- this._root._addDirtyBounds(this), e.isMeasured = !0, e.invalidateBounds();
2264
- const t = this.parent;
2265
- t && this.get("position") != "absolute" && (t.get("width") == null || t.get("height") == null || t.get("layout")) && t.markDirtyBounds(), this.get("focusable") && this.isFocus() && this.markDirtyAccessibility();
2266
- }
2267
- }
2268
- markDirtyAccessibility() {
2269
- this._root._invalidateAccessibility(this);
2270
- }
2271
- markDirtyLayer() {
2272
- this._display.markDirtyLayer(!0);
2273
- }
2274
- markDirty() {
2275
- super.markDirty(), this.markDirtyLayer();
2276
- }
2277
- _updateBounds() {
2278
- const e = this._adjustedLocalBounds;
2279
- let t;
2280
- if (this.get("visible") && this.getPrivate("visible") && !this.get("forceHidden") ? (this._getBounds(), this._fixMinBounds(this._localBounds), this.updatePivotPoint(), this._adjustedLocalBounds = this._display.getAdjustedBounds(this._localBounds), t = this._adjustedLocalBounds) : (t = { left: 0, right: 0, top: 0, bottom: 0 }, this._localBounds = t, this._adjustedLocalBounds = t), !e || e.left !== t.left || e.top !== t.top || e.right !== t.right || e.bottom !== t.bottom) {
2281
- const i = "boundschanged";
2282
- this.events.isEnabled(i) && this.events.dispatch(i, { type: i, target: this }), this.parent && (this.parent.markDirty(), this.parent.markDirtyBounds());
2283
- }
2284
- }
2285
- _fixMinBounds(e) {
2286
- let t = this.get("minWidth", this.getPrivate("minWidth")), i = this.get("minHeight", this.getPrivate("minHeight"));
2287
- g(t) && e.right - e.left < t && (e.right = e.left + t), g(i) && e.bottom - e.top < i && (e.bottom = e.top + i);
2288
- let r = this.getPrivate("width"), a = this.getPrivate("height");
2289
- g(r) && (r > 0 ? e.right = e.left + r : e.left = e.right + r), g(a) && (a > 0 ? e.bottom = e.top + a : e.top = e.bottom + a);
2290
- }
2291
- _removeParent(e) {
2292
- e && (e.children.removeValue(this), O(e._percentageSizeChildren, this), O(e._percentagePositionChildren, this));
2293
- }
2294
- _clearDirty() {
2295
- super._clearDirty(), this._sizeDirty = !1, this._statesHandled = !1;
2296
- }
2297
- hover() {
2298
- this.showTooltip(), this._handleOver();
2299
- }
2300
- unhover() {
2301
- this.hideTooltip(), this._handleOut();
2302
- }
2303
- showTooltip(e) {
2304
- const t = this.getTooltip(), i = this.get("tooltipText"), r = this.get("tooltipHTML");
2305
- if ((i || r) && t) {
2306
- const a = this.get("tooltipPosition"), n = this.getPrivate("tooltipTarget", this);
2307
- a != "fixed" && e || (this._display._setMatrix(), e = this.toGlobal(n._getTooltipPoint())), t.set("pointTo", e), t.set("tooltipTarget", n), t.get("x") || t.set("x", e.x), t.get("y") || t.set("y", e.y), i && t.label.set("text", i), r && t.label.set("html", r);
2308
- const o = this.dataItem;
2309
- if (o && t.label._setDataItem(o), this.get("showTooltipOn") == "always" && (e.x < 0 || e.x > this._root.width() || e.y < 0 || e.y > this._root.height()))
2310
- return void this.hideTooltip();
2311
- t.label.text.markDirtyText();
2312
- const h = t.show();
2313
- return this.setPrivateRaw("showingTooltip", !0), h;
2314
- }
2315
- }
2316
- hideTooltip() {
2317
- const e = this.getTooltip();
2318
- if (e && (e.get("tooltipTarget") == this.getPrivate("tooltipTarget", this) || this.get("tooltip") == e)) {
2319
- let t = e.get("keepTargetHover") && e.get("stateAnimationDuration", 0) == 0 ? 400 : void 0;
2320
- const i = e.hide(t);
2321
- return this.setPrivateRaw("showingTooltip", !1), i;
2322
- }
2323
- }
2324
- _getTooltipPoint() {
2325
- const e = this._localBounds;
2326
- if (e) {
2327
- let t = 0, i = 0;
2328
- return this.get("isMeasured") ? (t = e.left + M(this.get("tooltipX", 0), e.right - e.left), i = e.top + M(this.get("tooltipY", 0), e.bottom - e.top)) : (t = M(this.get("tooltipX", 0), this.width()), i = M(this.get("tooltipY", 0), this.height())), { x: t, y: i };
2329
- }
2330
- return { x: 0, y: 0 };
2331
- }
2332
- getTooltip() {
2333
- let e = this.get("tooltip");
2334
- if (e)
2335
- return e;
2336
- {
2337
- let t = this.parent;
2338
- if (t)
2339
- return t.getTooltip();
2340
- }
2341
- }
2342
- _updatePosition() {
2343
- const e = this.parent;
2344
- let t = this.get("dx", 0), i = this.get("dy", 0), r = this.get("x"), a = this.getPrivate("x"), n = 0, o = 0;
2345
- const h = this.get("position");
2346
- r instanceof f && (r = e ? e.innerWidth() * r.value + e.get("paddingLeft", 0) : 0), g(r) ? n = r + t : a != null ? n = a : e && h == "relative" && (n = e.get("paddingLeft", 0) + t);
2347
- let l = this.get("y"), d = this.getPrivate("y");
2348
- l instanceof f && (l = e ? e.innerHeight() * l.value + e.get("paddingTop", 0) : 0), g(l) ? o = l + i : d != null ? o = d : e && h == "relative" && (o = e.get("paddingTop", 0) + i);
2349
- const p = this._display;
2350
- if (p.x != n || p.y != o) {
2351
- p.invalidateBounds(), p.x = n, p.y = o;
2352
- const u = "positionchanged";
2353
- this.events.isEnabled(u) && this.events.dispatch(u, { type: u, target: this });
2354
- }
2355
- this.getPrivate("showingTooltip") && this.showTooltip();
2356
- }
2357
- x() {
2358
- let e = this.get("x"), t = this.getPrivate("x");
2359
- const i = this.parent;
2360
- return i ? e instanceof f ? M(e, i.innerWidth()) + i.get("paddingLeft", 0) : g(e) ? e : t ?? i.get("paddingLeft", this._display.x) : this._display.x;
2361
- }
2362
- y() {
2363
- let e = this.getPrivate("y");
2364
- if (e != null)
2365
- return e;
2366
- let t = this.get("y");
2367
- const i = this.parent;
2368
- return i ? t instanceof f ? M(t, i.innerHeight()) + i.get("paddingTop", 0) : g(t) ? t : e ?? i.get("paddingTop", this._display.y) : this._display.y;
2369
- }
2370
- _dispose() {
2371
- super._dispose(), this._display.dispose(), this._removeTemplateField(), this._removeParent(this.parent), this._root._removeFocusElement(this);
2372
- const e = this.get("tooltip");
2373
- e && e.dispose(), this.markDirty();
2374
- }
2375
- adjustedLocalBounds() {
2376
- return this._fixMinBounds(this._adjustedLocalBounds), this._adjustedLocalBounds;
2377
- }
2378
- localBounds() {
2379
- return this._localBounds;
2380
- }
2381
- bounds() {
2382
- const e = this._adjustedLocalBounds, t = this.x(), i = this.y();
2383
- return { left: e.left + t, right: e.right + t, top: e.top + i, bottom: e.bottom + i };
2384
- }
2385
- globalBounds() {
2386
- const e = this.localBounds(), t = this.toGlobal({ x: e.left, y: e.top }), i = this.toGlobal({ x: e.right, y: e.top }), r = this.toGlobal({ x: e.right, y: e.bottom }), a = this.toGlobal({ x: e.left, y: e.bottom });
2387
- return { left: Math.min(t.x, i.x, r.x, a.x), top: Math.min(t.y, i.y, r.y, a.y), right: Math.max(t.x, i.x, r.x, a.x), bottom: Math.max(t.y, i.y, r.y, a.y) };
2388
- }
2389
- _onShow(e) {
2390
- }
2391
- _onHide(e) {
2392
- }
2393
- appear(e, t) {
2394
- return ee(this, void 0, void 0, function* () {
2395
- return yield this.hide(0), t ? new Promise((i, r) => {
2396
- this.setTimeout(() => {
2397
- i(this.show(e));
2398
- }, t);
2399
- }) : this.show(e);
2400
- });
2401
- }
2402
- show(e) {
2403
- return ee(this, void 0, void 0, function* () {
2404
- if (!this._isShowing) {
2405
- this._isHidden = !1, this._isShowing = !0, this._isHiding = !1, this.states.lookup("default").get("visible") && this.set("visible", !0), this._onShow(e);
2406
- const t = this.states.applyAnimate("default", e);
2407
- yield He(t), this._isShowing = !1;
2408
- }
2409
- });
2410
- }
2411
- hide(e) {
2412
- return ee(this, void 0, void 0, function* () {
2413
- if (!this._isHiding && !this._isHidden) {
2414
- this._isHiding = !0, this._isShowing = !1;
2415
- let t = this.states.lookup("hidden");
2416
- t || (t = this.states.create("hidden", { opacity: 0, visible: !1 })), this._isHidden = !0, this._onHide(e);
2417
- const i = this.states.applyAnimate("hidden", e);
2418
- yield He(i), this._isHiding = !1;
2419
- }
2420
- });
2421
- }
2422
- isHidden() {
2423
- return this._isHidden;
2424
- }
2425
- isShowing() {
2426
- return this._isShowing;
2427
- }
2428
- isHiding() {
2429
- return this._isHiding;
2430
- }
2431
- isHover() {
2432
- return this._display.hovering();
2433
- }
2434
- isFocus() {
2435
- return this._root.focused(this);
2436
- }
2437
- isDragging() {
2438
- return this._isDragging;
2439
- }
2440
- isVisible() {
2441
- return !(!this.get("visible") || !this.getPrivate("visible") || this.get("forceHidden"));
2442
- }
2443
- isVisibleDeep() {
2444
- return this._parent ? this._parent.isVisibleDeep() && this.isVisible() : this.isVisible();
2445
- }
2446
- compositeOpacity() {
2447
- const e = this.get("opacity", 1);
2448
- return this._parent ? this._parent.compositeOpacity() * e : e;
2449
- }
2450
- width() {
2451
- let e = this.get("width"), t = this.get("maxWidth", this.getPrivate("maxWidth")), i = this.get("minWidth", this.getPrivate("minWidth")), r = this.getPrivate("width"), a = 0;
2452
- if (g(r))
2453
- a = r;
2454
- else if (e == null)
2455
- this._adjustedLocalBounds && (a = this._adjustedLocalBounds.right - this._adjustedLocalBounds.left);
2456
- else if (e instanceof f) {
2457
- const n = this.parent;
2458
- a = n ? n.innerWidth() * e.value : this._root.width() * e.value;
2459
- } else
2460
- g(e) && (a = e);
2461
- return g(i) && (a = Math.max(i, a)), g(t) && (a = Math.min(t, a)), a;
2462
- }
2463
- maxWidth() {
2464
- let e = this.get("maxWidth", this.getPrivate("maxWidth"));
2465
- if (g(e))
2466
- return e;
2467
- {
2468
- let i = this.get("width");
2469
- if (g(i))
2470
- return i;
2471
- }
2472
- const t = this.parent;
2473
- return t ? t.innerWidth() : this._root.width();
2474
- }
2475
- maxHeight() {
2476
- let e = this.get("maxHeight", this.getPrivate("maxHeight"));
2477
- if (g(e))
2478
- return e;
2479
- {
2480
- let i = this.get("height");
2481
- if (g(i))
2482
- return i;
2483
- }
2484
- const t = this.parent;
2485
- return t ? t.innerHeight() : this._root.height();
2486
- }
2487
- height() {
2488
- let e = this.get("height"), t = this.get("maxHeight", this.getPrivate("maxHeight")), i = this.get("minHeight", this.getPrivate("minHeight")), r = this.getPrivate("height"), a = 0;
2489
- if (g(r))
2490
- a = r;
2491
- else if (e == null)
2492
- this._adjustedLocalBounds && (a = this._adjustedLocalBounds.bottom - this._adjustedLocalBounds.top);
2493
- else if (e instanceof f) {
2494
- const n = this.parent;
2495
- a = n ? n.innerHeight() * e.value : this._root.height() * e.value;
2496
- } else
2497
- g(e) && (a = e);
2498
- return g(i) && (a = Math.max(i, a)), g(t) && (a = Math.min(t, a)), a;
2499
- }
2500
- _findStaticTemplate(e) {
2501
- return this._templateField && e(this._templateField) ? this._templateField : super._findStaticTemplate(e);
2502
- }
2503
- _walkParents(e) {
2504
- this._parent && this._walkParent(e);
2505
- }
2506
- _walkParent(e) {
2507
- this._parent && this._parent._walkParent(e), e(this);
2508
- }
2509
- get parent() {
2510
- return this._parent;
2511
- }
2512
- _setParent(e, t = !1) {
2513
- const i = this._parent;
2514
- e !== i && (this.markDirtyBounds(), e.markDirty(), this._parent = e, t && (this._removeParent(i), e && (this._addPercentageSizeChildren(), this._addPercentagePositionChildren())), this.markDirtyPosition(), this._applyThemes());
2515
- }
2516
- getNumberFormatter() {
2517
- return this.get("numberFormatter", this._root.numberFormatter);
2518
- }
2519
- getDateFormatter() {
2520
- return this.get("dateFormatter", this._root.dateFormatter);
2521
- }
2522
- getDurationFormatter() {
2523
- return this.get("durationFormatter", this._root.durationFormatter);
2524
- }
2525
- toGlobal(e) {
2526
- return this._display.toGlobal(e);
2527
- }
2528
- toLocal(e) {
2529
- return this._display.toLocal(e);
2530
- }
2531
- _getDownPoint() {
2532
- const e = this._getDownPointId();
2533
- if (e)
2534
- return this._downPoints[e];
2535
- }
2536
- _getDownPointId() {
2537
- if (this._downPoints)
2538
- return ot(this._downPoints, (e, t) => e > t ? 1 : e < t ? -1 : 0)[0];
2539
- }
2540
- toFront() {
2541
- const e = this.parent;
2542
- e && e.children.moveValue(this, e.children.length - 1);
2543
- }
2544
- toBack() {
2545
- const e = this.parent;
2546
- e && e.children.moveValue(this, 0);
2547
- }
2548
- }
2549
- Object.defineProperty(x, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Sprite" }), Object.defineProperty(x, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: A.classNames.concat([x.className]) });
2550
- class K extends A {
2551
- constructor() {
2552
- super(...arguments), Object.defineProperty(this, "_display", { enumerable: !0, configurable: !0, writable: !0, value: this._root._renderer.makeGraphics() }), Object.defineProperty(this, "_backgroundDisplay", { enumerable: !0, configurable: !0, writable: !0, value: this._root._renderer.makeGraphics() }), Object.defineProperty(this, "_clear", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_pattern", { enumerable: !0, configurable: !0, writable: !0, value: void 0 });
2553
- }
2554
- _afterNew() {
2555
- super._afterNewApplyThemes();
2556
- }
2557
- get pattern() {
2558
- return this._pattern;
2559
- }
2560
- _draw() {
2561
- }
2562
- _beforeChanged() {
2563
- super._beforeChanged(), (this.isDirty("repetition") || this.isDirty("width") || this.isDirty("height") || this.isDirty("rotation") || this.isDirty("strokeWidth") || this.isDirty("strokeDasharray") || this.isDirty("strokeDashoffset") || this.isDirty("colorOpacity") || this.isDirty("fillOpacity")) && (this._clear = !0), this._checkDirtyFill();
2564
- }
2565
- _checkDirtyFill() {
2566
- (this.isDirty("color") || this.isDirty("fill")) && (this._clear = !0);
2567
- }
2568
- _changed() {
2569
- if (super._changed(), this._clear) {
2570
- const e = this.get("repetition", ""), t = this.get("width", 100), i = this.get("height", 100), r = this.get("fill"), a = this.get("fillOpacity", 1), n = this._backgroundDisplay, o = this._display;
2571
- o.clear(), n.clear(), r && a > 0 && (n.beginFill(r, a), n.drawRect(0, 0, t, i), n.endFill()), o.angle = this.get("rotation", 0), this._draw(), this._pattern = this._root._renderer.createPattern(o, n, e, t, i);
2572
- }
2573
- this._clear = !1;
2574
- }
2575
- }
2576
- Object.defineProperty(K, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Pattern" }), Object.defineProperty(K, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: A.classNames.concat([K.className]) });
2577
- class G extends K {
2578
- constructor() {
2579
- super(...arguments), Object.defineProperty(this, "_image", { enumerable: !0, configurable: !0, writable: !0, value: void 0 });
2580
- }
2581
- _beforeChanged() {
2582
- super._beforeChanged(), this._clear = !0, this.isDirty("src") && this._load();
2583
- const e = this.get("canvas");
2584
- e && (this.set("width", e.width), this.set("height", e.height));
2585
- }
2586
- _draw() {
2587
- super._draw();
2588
- const e = this._image;
2589
- if (e) {
2590
- const i = this.get("width", 100), r = this.get("height", 100), a = this.get("fit", "image");
2591
- let n = 0, o = 0;
2592
- a == "pattern" ? (n = i, o = r) : (n = e.width, o = e.height, a == "image" && (this.set("width", n), this.set("height", o)));
2593
- let h = 0, l = 0;
2594
- this.get("centered", !0) && (h = i / 2 - n / 2, l = r / 2 - o / 2), this._display.image(e, n, o, h, l);
2595
- }
2596
- const t = this.get("canvas");
2597
- t && this._display.image(t, t.width, t.height, 0, 0);
2598
- }
2599
- _load() {
2600
- const e = this.get("src");
2601
- if (e) {
2602
- const t = new Image();
2603
- t.src = e, t.decode().then(() => {
2604
- this._image = t, this._draw(), this.events.isEnabled("loaded") && this.events.dispatch("loaded", { type: "loaded", target: this });
2605
- }).catch((i) => {
2606
- });
2607
- }
2608
- }
2609
- }
2610
- var we;
2611
- Object.defineProperty(G, "className", { enumerable: !0, configurable: !0, writable: !0, value: "PicturePattern" }), Object.defineProperty(G, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: K.classNames.concat([G.className]) }), function(s) {
2612
- s.ADD = "lighter", s.COLOR = "color", s.COLOR_BURN = "color-burn", s.COLOR_DODGE = "color-dodge", s.DARKEN = "darken", s.DIFFERENCE = "difference", s.DST_OVER = "destination-over", s.EXCLUSION = "exclusion", s.HARD_LIGHT = "hard-light", s.HUE = "hue", s.LIGHTEN = "lighten", s.LUMINOSITY = "luminosity", s.MULTIPLY = "multiply", s.NORMAL = "source-over", s.OVERLAY = "overlay", s.SATURATION = "saturation", s.SCREEN = "screen", s.SOFT_LIGHT = "soft-light", s.SRC_ATOP = "source-atop", s.XOR = "xor";
2613
- }(we || (we = {}));
2614
- const Mi = ["fill", "fillOpacity", "stroke", "strokeWidth", "strokeOpacity", "fillPattern", "strokePattern", "fillGradient", "strokeGradient", "strokeDasharray", "strokeDashoffset", "shadowBlur", "shadowColor", "shadowOpacity", "shadowOffsetX", "shadowOffsetY", "blur", "sepia", "invert", "brightness", "hue", "contrast", "saturate"];
2615
- class z extends x {
2616
- constructor() {
2617
- super(...arguments), Object.defineProperty(this, "_display", { enumerable: !0, configurable: !0, writable: !0, value: this._root._renderer.makeGraphics() }), Object.defineProperty(this, "_clear", { enumerable: !0, configurable: !0, writable: !0, value: !1 });
2618
- }
2619
- _beforeChanged() {
2620
- if (super._beforeChanged(), (this.isDirty("draw") || this.isDirty("svgPath")) && this.markDirtyBounds(), (this.isDirty("fill") || this.isDirty("stroke") || this.isDirty("visible") || this.isDirty("forceHidden") || this.isDirty("scale") || this.isDirty("fillGradient") || this.isDirty("strokeGradient") || this.isDirty("fillPattern") || this.isDirty("strokePattern") || this.isDirty("fillOpacity") || this.isDirty("strokeOpacity") || this.isDirty("strokeWidth") || this.isDirty("draw") || this.isDirty("blendMode") || this.isDirty("strokeDasharray") || this.isDirty("strokeDashoffset") || this.isDirty("svgPath") || this.isDirty("lineJoin") || this.isDirty("shadowColor") || this.isDirty("shadowBlur") || this.isDirty("shadowOffsetX") || this.isDirty("shadowOffsetY")) && (this._clear = !0), this._display.crisp = this.get("crisp", !1), this.isDirty("fillGradient")) {
2621
- const e = this.get("fillGradient");
2622
- if (e) {
2623
- this._display.isMeasured = !0;
2624
- const t = e.get("target");
2625
- t && (this._disposers.push(t.events.on("boundschanged", () => {
2626
- this._markDirtyKey("fill");
2627
- })), this._disposers.push(t.events.on("positionchanged", () => {
2628
- this._markDirtyKey("fill");
2629
- })));
2630
- }
2631
- }
2632
- if (this.isDirty("strokeGradient")) {
2633
- const e = this.get("strokeGradient");
2634
- if (e) {
2635
- this._display.isMeasured = !0;
2636
- const t = e.get("target");
2637
- t && (this._disposers.push(t.events.on("boundschanged", () => {
2638
- this._markDirtyKey("stroke");
2639
- })), this._disposers.push(t.events.on("positionchanged", () => {
2640
- this._markDirtyKey("stroke");
2641
- })));
2642
- }
2643
- }
2644
- }
2645
- _changed() {
2646
- if (super._changed(), this._clear) {
2647
- this.markDirtyBounds(), this.markDirtyLayer(), this._display.clear();
2648
- let e = this.get("strokeDasharray");
2649
- g(e) && (e = e < 0.5 ? [0] : [e]), this._display.setLineDash(e);
2650
- const t = this.get("strokeDashoffset");
2651
- t && this._display.setLineDashOffset(t);
2652
- const i = this.get("blendMode", we.NORMAL);
2653
- this._display.blendMode = i;
2654
- const r = this.get("draw");
2655
- r && r(this._display, this);
2656
- const a = this.get("svgPath");
2657
- a != null && this._display.svgPath(a);
2658
- }
2659
- }
2660
- _afterChanged() {
2661
- if (super._afterChanged(), this._clear) {
2662
- const e = this.get("fill"), t = this.get("fillGradient"), i = this.get("fillPattern"), r = this.get("fillOpacity"), a = this.get("stroke"), n = this.get("strokeGradient"), o = this.get("strokePattern"), h = this.get("shadowColor"), l = this.get("shadowBlur"), d = this.get("shadowOffsetX"), p = this.get("shadowOffsetY"), u = this.get("shadowOpacity");
2663
- if (h && (l || d || p) && this._display.shadow(h, l, d, p, u), e && !t && (this._display.beginFill(e, r), this._display.endFill()), t) {
2664
- if (e) {
2665
- const m = t.get("stops", []);
2666
- m.length && _(m, (b) => {
2667
- b.color && !b.colorInherited || !e || (b.color = e, b.colorInherited = !0), (b.opacity == null || b.opacityInherited) && (b.opacity = r, b.opacityInherited = !0);
2668
- });
2669
- }
2670
- const c = t.getFill(this);
2671
- c && (this._display.beginFill(c, r), this._display.endFill());
2672
- }
2673
- if (i) {
2674
- const c = i.pattern;
2675
- c && (this._display.beginFill(c, r), this._display.endFill(), i instanceof G && i.events.once("loaded", () => {
2676
- this._clear = !0, this.markDirty();
2677
- }));
2678
- }
2679
- if (a || n || o) {
2680
- const c = this.get("strokeOpacity");
2681
- let m = this.get("strokeWidth", 1);
2682
- this.get("nonScalingStroke") && (m /= this.get("scale", 1)), this.get("crisp") && (m /= this._root._renderer.resolution);
2683
- const b = this.get("lineJoin");
2684
- if (a && !n && (this._display.lineStyle(m, a, c, b), this._display.endStroke()), n) {
2685
- const S = n.get("stops", []);
2686
- S.length && _(S, (w) => {
2687
- w.color && !w.colorInherited || !a || (w.color = a, w.colorInherited = !0), (w.opacity == null || w.opacityInherited) && (w.opacity = c, w.opacityInherited = !0);
2688
- });
2689
- const H = n.getFill(this);
2690
- H && (this._display.lineStyle(m, H, c, b), this._display.endStroke());
2691
- }
2692
- if (o) {
2693
- let S = o.pattern;
2694
- S && (this._display.lineStyle(m, S, c, b), this._display.endStroke(), o instanceof G && o.events.once("loaded", () => {
2695
- this._clear = !0, this.markDirty();
2696
- }));
2697
- }
2698
- }
2699
- this.getPrivate("showingTooltip") && this.showTooltip();
2700
- }
2701
- this._clear = !1;
2702
- }
2703
- }
2704
- Object.defineProperty(z, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Graphics" }), Object.defineProperty(z, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: x.classNames.concat([z.className]) });
2705
- class Y extends z {
2706
- _afterNew() {
2707
- super._afterNew(), this._display.isMeasured = !0, this.setPrivateRaw("trustBounds", !0);
2708
- }
2709
- _beforeChanged() {
2710
- super._beforeChanged(), (this.isDirty("width") || this.isDirty("height") || this.isPrivateDirty("width") || this.isPrivateDirty("height")) && (this._clear = !0);
2711
- }
2712
- _changed() {
2713
- super._changed(), this._clear && !this.get("draw") && this._draw();
2714
- }
2715
- _draw() {
2716
- this._display.drawRect(0, 0, this.width(), this.height());
2717
- }
2718
- _updateSize() {
2719
- this.markDirty(), this._clear = !0;
2720
- }
2721
- }
2722
- function j(s, e) {
2723
- s.get("reverseChildren", !1) ? s.children.eachReverse(e) : s.children.each(e);
2724
- }
2725
- Object.defineProperty(Y, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Rectangle" }), Object.defineProperty(Y, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: z.classNames.concat([Y.className]) });
2726
- class E extends A {
2727
- }
2728
- Object.defineProperty(E, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Layout" }), Object.defineProperty(E, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: A.classNames.concat([E.className]) });
2729
- class X extends E {
2730
- updateContainer(e) {
2731
- let t = e.get("paddingLeft", 0), i = e.innerWidth(), r = 0;
2732
- j(e, (n) => {
2733
- if (n.isVisible() && n.get("position") == "relative") {
2734
- let o = n.get("width");
2735
- if (o instanceof f) {
2736
- r += o.value;
2737
- let h = i * o.value, l = n.get("minWidth", n.getPrivate("minWidth", -1 / 0));
2738
- l > h && (i -= l, r -= o.value);
2739
- let d = n.get("maxWidth", n.getPrivate("maxWidth", 1 / 0));
2740
- h > d && (i -= d, r -= o.value);
2741
- } else
2742
- g(o) || (o = n.width()), i -= o + n.get("marginLeft", 0) + n.get("marginRight", 0);
2743
- }
2744
- }), (i <= 0 || i == 1 / 0) && (i = 0.1), j(e, (n) => {
2745
- if (n.isVisible() && n.get("position") == "relative") {
2746
- let o = n.get("width");
2747
- if (o instanceof f) {
2748
- let h = i * o.value / r - n.get("marginLeft", 0) - n.get("marginRight", 0), l = n.get("minWidth", n.getPrivate("minWidth", -1 / 0)), d = n.get("maxWidth", n.getPrivate("maxWidth", 1 / 0));
2749
- h = Math.min(Math.max(l, h), d), n.setPrivate("width", h);
2750
- } else
2751
- n._prevSettings.width instanceof f && n.setPrivate("width", void 0);
2752
- }
2753
- });
2754
- let a = t;
2755
- j(e, (n) => {
2756
- if (n.get("position") == "relative")
2757
- if (n.isVisible()) {
2758
- let o = n.adjustedLocalBounds(), h = n.get("marginLeft", 0), l = n.get("marginRight", 0), d = n.get("maxWidth"), p = o.left, u = o.right;
2759
- d && u - p > d && (u = p + d);
2760
- let c = a + h - p;
2761
- n.setPrivate("x", c), a = c + u + l;
2762
- } else
2763
- n.setPrivate("x", void 0);
2764
- });
2765
- }
2766
- }
2767
- Object.defineProperty(X, "className", { enumerable: !0, configurable: !0, writable: !0, value: "HorizontalLayout" }), Object.defineProperty(X, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: E.classNames.concat([X.className]) });
2768
- class $ extends E {
2769
- updateContainer(e) {
2770
- let t = e.get("paddingTop", 0), i = e.innerHeight(), r = 0;
2771
- j(e, (n) => {
2772
- if (n.isVisible() && n.get("position") == "relative") {
2773
- let o = n.get("height");
2774
- if (o instanceof f) {
2775
- r += o.value;
2776
- let h = i * o.value, l = n.get("minHeight", n.getPrivate("minHeight", -1 / 0));
2777
- l > h && (i -= l, r -= o.value);
2778
- let d = n.get("maxHeight", n.getPrivate("maxHeight", 1 / 0));
2779
- h > d && (i -= d, r -= o.value);
2780
- } else
2781
- g(o) || (o = n.height()), i -= o + n.get("marginTop", 0) + n.get("marginBottom", 0);
2782
- }
2783
- }), (i <= 0 || i == 1 / 0) && (i = 0.1), j(e, (n) => {
2784
- if (n.isVisible() && n.get("position") == "relative") {
2785
- let o = n.get("height");
2786
- if (o instanceof f) {
2787
- let h = i * o.value / r - n.get("marginTop", 0) - n.get("marginBottom", 0), l = n.get("minHeight", n.getPrivate("minHeight", -1 / 0)), d = n.get("maxHeight", n.getPrivate("maxHeight", 1 / 0));
2788
- h = Math.min(Math.max(l, h), d), n.setPrivate("height", h);
2789
- } else
2790
- n._prevSettings.height instanceof f && n.setPrivate("height", void 0);
2791
- }
2792
- });
2793
- let a = t;
2794
- j(e, (n) => {
2795
- if (n.get("position") == "relative")
2796
- if (n.isVisible()) {
2797
- let o = n.adjustedLocalBounds(), h = n.get("marginTop", 0), l = o.top, d = o.bottom, p = n.get("maxHeight");
2798
- p && d - l > p && (d = l + p);
2799
- let u = n.get("marginBottom", 0), c = a + h - l;
2800
- n.setPrivate("y", c), a = c + d + u;
2801
- } else
2802
- n.setPrivate("y", void 0);
2803
- });
2804
- }
2805
- }
2806
- Object.defineProperty($, "className", { enumerable: !0, configurable: !0, writable: !0, value: "VerticalLayout" }), Object.defineProperty($, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: E.classNames.concat([$.className]) });
2807
- class Z extends E {
2808
- _afterNew() {
2809
- this._setRawDefault("maxColumns", Number.MAX_VALUE), super._afterNew();
2810
- }
2811
- updateContainer(e) {
2812
- let t = e.get("paddingLeft", 0), i = e.get("paddingRight", 0), r = e.get("paddingTop", 0), a = e.maxWidth() - t - i, n = a, o = 1;
2813
- j(e, (m) => {
2814
- if (m.get("visible") && m.getPrivate("visible") && !m.get("forceHidden") && m.get("position") != "absolute") {
2815
- let b = m.width();
2816
- b < n && (n = b), b > o && (o = b);
2817
- }
2818
- }), n = Ie(n, 1, a), o = Ie(o, 1, a);
2819
- let h = 1;
2820
- h = this.get("fixedWidthGrid") ? a / o : a / n, h = Math.max(1, Math.floor(h)), h = Math.min(this.get("maxColumns", Number.MAX_VALUE), h);
2821
- let l = this.getColumnWidths(e, h, o, a), d = r, p = 0, u = 0;
2822
- h = l.length;
2823
- let c = t;
2824
- j(e, (m) => {
2825
- if (m.get("position") == "relative" && m.isVisible()) {
2826
- const b = m.get("marginTop", 0), S = m.get("marginBottom", 0);
2827
- let H = m.adjustedLocalBounds(), w = m.get("marginLeft", 0), C = m.get("marginRight", 0), D = c + w - H.left, N = d + b - H.top;
2828
- m.setPrivate("x", D), m.setPrivate("y", N), c += l[p] + C, u = Math.max(u, m.height() + b + S), p++, p >= h && (p = 0, c = t, d += u);
2829
- }
2830
- });
2831
- }
2832
- getColumnWidths(e, t, i, r) {
2833
- let a = 0, n = [], o = 0;
2834
- return j(e, (h) => {
2835
- let l = h.adjustedLocalBounds();
2836
- h.get("position") != "absolute" && h.isVisible() && (this.get("fixedWidthGrid") ? n[o] = i : n[o] = Math.max(0 | n[o], l.right - l.left + h.get("marginLeft", 0) + h.get("marginRight", 0)), o < e.children.length - 1 && (o++, o == t && (o = 0)));
2837
- }), _(n, (h) => {
2838
- a += h;
2839
- }), a > r ? t > 2 ? (t -= 1, this.getColumnWidths(e, t, i, r)) : [r] : n;
2840
- }
2841
- }
2842
- Object.defineProperty(Z, "className", { enumerable: !0, configurable: !0, writable: !0, value: "GridLayout" }), Object.defineProperty(Z, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: E.classNames.concat([Z.className]) });
2843
- class Pe {
2844
- static escape(e) {
2845
- return e.replace(/\[\[/g, this.prefix + "1").replace(/([^\/\]]{1})\]\]/g, "$1" + this.prefix + "2").replace(/\]\]/g, this.prefix + "2").replace(/\{\{/g, this.prefix + "3").replace(/\}\}/g, this.prefix + "4").replace(/\'\'/g, this.prefix + "5");
2846
- }
2847
- static unescape(e) {
2848
- return e.replace(new RegExp(this.prefix + "1", "g"), "[[").replace(new RegExp(this.prefix + "2", "g"), "]]").replace(new RegExp(this.prefix + "3", "g"), "{{").replace(new RegExp(this.prefix + "4", "g"), "}}").replace(new RegExp(this.prefix + "5", "g"), "''");
2849
- }
2850
- static cleanUp(e) {
2851
- return e.replace(/\[\[/g, "[").replace(/\]\]/g, "]").replace(/\{\{/g, "{").replace(/\}\}/g, "}").replace(/\'\'/g, "'");
2852
- }
2853
- static chunk(e, t = !1, i = !1) {
2854
- let r = [];
2855
- e = this.escape(e);
2856
- let a = t ? e.split("'") : [e];
2857
- for (let n = 0; n < a.length; n++) {
2858
- let o = a[n];
2859
- if (o !== "")
2860
- if (n % 2 == 0) {
2861
- o = o.replace(/\]\[/g, "]" + Ee + "["), o = o.replace(/\[\]/g, "[ ]");
2862
- let h = o.split(/[\[\]]+/);
2863
- for (let l = 0; l < h.length; l++) {
2864
- let d = this.cleanUp(this.unescape(h[l]));
2865
- d !== Ee && d !== "" && (l % 2 == 0 ? r.push({ type: "value", text: d }) : r.push({ type: i ? "value" : "format", text: "[" + d + "]" }));
2866
- }
2867
- } else {
2868
- let h = o.split(/[\[\]]+/);
2869
- for (let l = 0; l < h.length; l++) {
2870
- let d = this.cleanUp(this.unescape(h[l]));
2871
- d !== "" && (l % 2 == 0 ? r.push({ type: "text", text: d }) : this.isImage(d) ? r.push({ type: "image", text: "[" + d + "]" }) : r.push({ type: "format", text: "[" + d + "]" }));
2872
- }
2873
- }
2874
- }
2875
- return r;
2876
- }
2877
- static isImage(e) {
2878
- return !!e.match(/img[ ]?:/);
2879
- }
2880
- static getTextStyle(e) {
2881
- let t = {};
2882
- if (e == "" || e == "[ ]")
2883
- return {};
2884
- const i = e.match(/('[^']*')|("[^"]*")/gi);
2885
- if (i)
2886
- for (let a = 0; a < i.length; a++)
2887
- e = e.replace(i[a], i[a].replace(/['"]*/g, "").replace(/[ ]+/g, "+"));
2888
- let r = e.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w\-]+)|(\/)/gi);
2889
- if (!r)
2890
- return {};
2891
- for (let a = 0; a < r.length; a++)
2892
- if (r[a].match(/^(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)$/i))
2893
- t.fontWeight = r[a];
2894
- else if (r[a].match(/^(underline|line-through)$/i))
2895
- t.textDecoration = r[a];
2896
- else if (r[a] != "/")
2897
- if (r[a].match(/:/)) {
2898
- const n = r[a].replace("+", " ").split(/:[ ]*/);
2899
- t[n[0]] = n[1];
2900
- } else
2901
- t.fill = v.fromString(r[a]);
2902
- return t;
2903
- }
2904
- }
2905
- function De(s, e) {
2906
- if (e != null) {
2907
- e = "" + e;
2908
- let t, i = (e = Pe.escape(e)).match(/\{([^}]+)\}/g);
2909
- if (i)
2910
- for (t = 0; t < i.length; t++) {
2911
- let r = xe(s, i[t].replace(/\{([^}]+)\}/, "$1"));
2912
- r == null && (r = ""), e = e.split(i[t]).join(r);
2913
- }
2914
- e = Pe.unescape(e);
2915
- } else
2916
- e = "";
2917
- return e;
2918
- }
2919
- function xe(s, e, t) {
2920
- let i;
2921
- const r = s.dataItem;
2922
- let a, n = [], o = /(format[a-zA-Z]*)\((.*)\)|([^.]+)/g;
2923
- for (; a = o.exec(e), a !== null; )
2924
- if (a[3]) {
2925
- n.push({ prop: a[3] });
2926
- const h = s.getDateFormatter().get("dateFields", []), l = s.getNumberFormatter().get("numericFields", []), d = s.getDurationFormatter().get("durationFields", []);
2927
- h.indexOf(a[3]) !== -1 ? n.push({ method: "formatDate", params: [] }) : l.indexOf(a[3]) !== -1 ? n.push({ method: "formatNumber", params: [] }) : d.indexOf(a[3]) !== -1 && n.push({ method: "formatDuration", params: [] });
2928
- } else {
2929
- let h = [];
2930
- if (be(a[2]) != "") {
2931
- let l, d = /'([^']*)'|"([^"]*)"|([0-9\-]+)/g;
2932
- for (; l = d.exec(a[2]), l !== null; )
2933
- h.push(l[1] || l[2] || l[3]);
2934
- }
2935
- n.push({ method: a[1], params: h });
2936
- }
2937
- if (r) {
2938
- i = I(s, n, r._settings), (i == null || Re(i)) && (i = I(s, n, r));
2939
- let h = r.dataContext;
2940
- i == null && h && (i = I(s, n, h), i == null && (i = I(s, [{ prop: e }], h)), i == null && h.dataContext && (i = I(s, n, h.dataContext))), i == null && r.component && r.component.dataItem !== r && (i = xe(r.component, e));
2941
- }
2942
- return i == null && (i = I(s, n, s)), i == null && s.parent && (i = xe(s.parent, e)), i;
2943
- }
2944
- function Rt(s, e) {
2945
- const t = s.getPrivate("customData");
2946
- if (Re(t))
2947
- return t[e];
2948
- }
2949
- function I(s, e, t, i) {
2950
- let r = t, a = !1;
2951
- for (let n = 0, o = e.length; n < o; n++) {
2952
- let h = e[n];
2953
- if (h.prop) {
2954
- if (r instanceof x) {
2955
- let l = r.get(h.prop);
2956
- l == null && (l = r.getPrivate(h.prop)), l == null && (l = Rt(r, h.prop)), l == null && (l = r[h.prop]), r = l;
2957
- } else if (r.get) {
2958
- let l = r.get(h.prop);
2959
- l == null && (l = r[h.prop]), r = l;
2960
- } else
2961
- r = r[h.prop];
2962
- if (r == null)
2963
- return;
2964
- } else
2965
- switch (h.method) {
2966
- case "formatNumber":
2967
- let l = _e(r);
2968
- l != null && (r = s.getNumberFormatter().format(l, i || h.params[0] || void 0), a = !0);
2969
- break;
2970
- case "formatDate":
2971
- let d = et(r);
2972
- if (!me(d) || Oe(d.getTime()))
2973
- return;
2974
- d != null && (r = s.getDateFormatter().format(d, i || h.params[0] || void 0), a = !0);
2975
- break;
2976
- case "formatDuration":
2977
- let p = _e(r);
2978
- p != null && (r = s.getDurationFormatter().format(p, i || h.params[0] || void 0, h.params[1] || void 0), a = !0);
2979
- break;
2980
- case "urlEncode":
2981
- case "encodeURIComponent":
2982
- r = encodeURIComponent(r);
2983
- break;
2984
- default:
2985
- r[h.method] && r[h.method].apply(t, h.params);
2986
- }
2987
- }
2988
- if (!a) {
2989
- let n = [{ method: "", params: i }];
2990
- if (i == null)
2991
- g(r) ? (n[0].method = "formatNumber", n[0].params = "") : me(r) && (n[0].method = "formatDate", n[0].params = "");
2992
- else {
2993
- let o = mt(i);
2994
- o === "number" ? n[0].method = "formatNumber" : o === "date" ? n[0].method = "formatDate" : o === "duration" && (n[0].method = "formatDuration");
2995
- }
2996
- n[0].method && (r = I(s, n, r));
2997
- }
2998
- return r;
2999
- }
3000
- Object.defineProperty(Pe, "prefix", { enumerable: !0, configurable: !0, writable: !0, value: "__amcharts__" });
3001
- class L extends x {
3002
- constructor() {
3003
- super(...arguments), Object.defineProperty(this, "_display", { enumerable: !0, configurable: !0, writable: !0, value: this._root._renderer.makeContainer() }), Object.defineProperty(this, "_childrenDisplay", { enumerable: !0, configurable: !0, writable: !0, value: this._root._renderer.makeContainer() }), Object.defineProperty(this, "children", { enumerable: !0, configurable: !0, writable: !0, value: new Tt(this) }), Object.defineProperty(this, "_percentageSizeChildren", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_percentagePositionChildren", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_prevWidth", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_prevHeight", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_contentWidth", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_contentHeight", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_contentMask", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_vsbd0", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_vsbd1", { enumerable: !0, configurable: !0, writable: !0, value: void 0 });
3004
- }
3005
- _afterNew() {
3006
- super._afterNew(), this._display.addChild(this._childrenDisplay);
3007
- }
3008
- _dispose() {
3009
- V(this.allChildren(), (e) => {
3010
- e.dispose();
3011
- }), this.getPrivate("htmlElement") && this._root._removeHTMLContent(this), super._dispose();
3012
- }
3013
- _changed() {
3014
- if (super._changed(), this.isDirty("interactiveChildren") && (this._display.interactiveChildren = this.get("interactiveChildren", !1)), this.isDirty("layout") && (this._prevWidth = 0, this._prevHeight = 0, this.markDirtyBounds(), this._prevSettings.layout && this.children.each((e) => {
3015
- e.removePrivate("x"), e.removePrivate("y");
3016
- })), (this.isDirty("paddingTop") || this.isDirty("paddingBottom") || this.isDirty("paddingLeft") || this.isDirty("paddingRight")) && this.children.each((e) => {
3017
- e.markDirtyPosition();
3018
- }), this.isDirty("maskContent")) {
3019
- const e = this._childrenDisplay;
3020
- let t = this._contentMask;
3021
- this.get("maskContent") ? t || (t = Y.new(this._root, { x: -0.5, y: -0.5, width: this.width() + 1, height: this.height() + 1 }), this._contentMask = t, e.addChildAt(t._display, 0), e.mask = t._display) : t && (e.removeChild(t._display), e.mask = null, t.dispose(), this._contentMask = void 0);
3022
- }
3023
- }
3024
- _updateSize() {
3025
- super._updateSize(), _(this._percentageSizeChildren, (e) => {
3026
- e._updateSize();
3027
- }), _(this._percentagePositionChildren, (e) => {
3028
- e.markDirtyPosition(), e._updateSize();
3029
- }), this.updateBackground();
3030
- }
3031
- updateBackground() {
3032
- const e = this.get("background");
3033
- let t = this._localBounds;
3034
- if (t && !this.isHidden()) {
3035
- let i = t.left, r = t.top, a = t.right - i, n = t.bottom - r, o = this.get("maxWidth"), h = this.get("maxHeight");
3036
- h && n > h && (n = h), o && a > o && (a = o);
3037
- let l = this.width(), d = this.height();
3038
- e && (e.setAll({ width: a, height: n, x: i, y: r }), this._display.interactive && (e._display.interactive = !0));
3039
- const p = this._contentMask;
3040
- p && p.setAll({ width: l + 1, height: d + 1 });
3041
- const u = this.get("verticalScrollbar");
3042
- if (u) {
3043
- u.set("height", d), u.set("x", l - u.width() - u.get("marginRight", 0)), u.set("end", u.get("start", 0) + d / this._contentHeight);
3044
- const c = u.get("background");
3045
- c && c.setAll({ width: u.width(), height: d });
3046
- let m = !0;
3047
- this._contentHeight <= d && (m = !1), u.setPrivate("visible", m);
3048
- }
3049
- }
3050
- }
3051
- _applyThemes(e = !1) {
3052
- return !!super._applyThemes(e) && (this.eachChildren((t) => {
3053
- t._applyThemes(e);
3054
- }), !0);
3055
- }
3056
- _applyState(e) {
3057
- super._applyState(e), this.get("setStateOnChildren") && this.eachChildren((t) => {
3058
- t.states.apply(e);
3059
- });
3060
- }
3061
- _applyStateAnimated(e, t) {
3062
- super._applyStateAnimated(e, t), this.get("setStateOnChildren") && this.eachChildren((i) => {
3063
- i.states.applyAnimate(e, t);
3064
- });
3065
- }
3066
- innerWidth() {
3067
- return this.width() - this.get("paddingRight", 0) - this.get("paddingLeft", 0);
3068
- }
3069
- innerHeight() {
3070
- return this.height() - this.get("paddingTop", 0) - this.get("paddingBottom", 0);
3071
- }
3072
- _getBounds() {
3073
- let e = this.get("width"), t = this.get("height"), i = this.getPrivate("width"), r = this.getPrivate("height"), a = { left: 0, top: 0, right: this.width(), bottom: this.height() }, n = this.get("layout"), o = !1, h = !1;
3074
- if ((n instanceof X || n instanceof Z) && (o = !0), n instanceof $ && (h = !0), e == null && i == null || t == null && r == null || this.get("verticalScrollbar")) {
3075
- let l = Number.MAX_VALUE, d = l, p = -l, u = l, c = -l;
3076
- const m = this.get("paddingLeft", 0), b = this.get("paddingTop", 0), S = this.get("paddingRight", 0), H = this.get("paddingBottom", 0);
3077
- this.children.each((D) => {
3078
- if (D.get("position") != "absolute" && D.get("isMeasured")) {
3079
- let N = D.adjustedLocalBounds(), Te = D.x(), Se = D.y(), ne = Te + N.left, oe = Te + N.right, he = Se + N.top, le = Se + N.bottom;
3080
- o && (ne -= D.get("marginLeft", 0), oe += D.get("marginRight", 0)), h && (he -= D.get("marginTop", 0), le += D.get("marginBottom", 0)), ne < d && (d = ne), oe > p && (p = oe), he < u && (u = he), le > c && (c = le);
3081
- }
3082
- }), d == l && (d = 0), p == -l && (p = 0), u == l && (u = 0), c == -l && (c = 0), a.left = d - m, a.top = u - b, a.right = p + S, a.bottom = c + H;
3083
- const w = this.get("minWidth");
3084
- g(w) && w > 0 && a.right - a.left < w && (a.right >= w ? a.left = a.right - w : a.right = a.left + w);
3085
- const C = this.get("minHeight");
3086
- g(C) && C > 0 && a.bottom - a.top < C && (a.bottom >= C ? a.top = a.bottom - C : a.bottom = a.top + C);
3087
- }
3088
- this._contentWidth = a.right - a.left, this._contentHeight = a.bottom - a.top, g(e) && (a.left = 0, a.right = e), g(i) && (a.left = 0, a.right = i), g(t) && (a.top = 0, a.bottom = t), g(r) && (a.top = 0, a.bottom = r), this._localBounds = a;
3089
- }
3090
- _updateBounds() {
3091
- const e = this.get("layout");
3092
- e && e.updateContainer(this), super._updateBounds(), this.updateBackground();
3093
- }
3094
- markDirty() {
3095
- super.markDirty(), this._root._addDirtyParent(this);
3096
- }
3097
- _prepareChildren() {
3098
- const e = this.innerWidth(), t = this.innerHeight();
3099
- if (e != this._prevWidth || t != this._prevHeight) {
3100
- let i = this.get("layout"), r = !1, a = !1;
3101
- i && ((i instanceof X || i instanceof Z) && (r = !0), i instanceof $ && (a = !0)), _(this._percentageSizeChildren, (n) => {
3102
- if (!r) {
3103
- let o = n.get("width");
3104
- o instanceof f && n.setPrivate("width", o.value * e);
3105
- }
3106
- if (!a) {
3107
- let o = n.get("height");
3108
- o instanceof f && n.setPrivate("height", o.value * t);
3109
- }
3110
- }), _(this._percentagePositionChildren, (n) => {
3111
- n.markDirtyPosition(), n.markDirtyBounds();
3112
- }), this._prevWidth = e, this._prevHeight = t, this._sizeDirty = !0, this.updateBackground();
3113
- }
3114
- this._handleStates();
3115
- }
3116
- _updateChildren() {
3117
- if (this.isDirty("html")) {
3118
- const e = this.get("html");
3119
- e && e !== "" ? this._root._setHTMLContent(this, De(this, this.get("html", ""))) : this._root._removeHTMLContent(this), this._root._positionHTMLElement(this);
3120
- }
3121
- if (this.isDirty("verticalScrollbar")) {
3122
- const e = this.get("verticalScrollbar");
3123
- if (e) {
3124
- e._setParent(this), e.startGrip.setPrivate("visible", !1), e.endGrip.setPrivate("visible", !1), this.set("maskContent", !0), this.set("paddingRight", e.width() + e.get("marginRight", 0) + e.get("marginLeft", 0));
3125
- let t = this.get("background");
3126
- t || (t = this.set("background", Y.new(this._root, { themeTags: ["background"], fillOpacity: 0, fill: this._root.interfaceColors.get("alternativeBackground") }))), this._vsbd0 = this.events.on("wheel", (i) => {
3127
- const r = i.originalEvent;
3128
- if (!ut(r, this))
3129
- return;
3130
- r.preventDefault();
3131
- let a = r.deltaY / 5e3;
3132
- const n = e.get("start", 0), o = e.get("end", 1);
3133
- n + a <= 0 && (a = -n), o + a >= 1 && (a = 1 - o), n + a >= 0 && o + a <= 1 && (e.set("start", n + a), e.set("end", o + a));
3134
- }), this._disposers.push(this._vsbd0), this._vsbd1 = e.events.on("rangechanged", () => {
3135
- let i = this._contentHeight;
3136
- const r = this._childrenDisplay, a = this._contentMask;
3137
- r.y = -e.get("start", 0) * i, r.markDirtyLayer(), a && (a._display.y = -r.y, r.mask = a._display);
3138
- }), this._disposers.push(this._vsbd1), this._display.addChild(e._display);
3139
- } else {
3140
- const t = this._prevSettings.verticalScrollbar;
3141
- t && (this._display.removeChild(t._display), this._vsbd0 && this._vsbd0.dispose(), this._vsbd1 && this._vsbd1.dispose(), this._childrenDisplay.y = 0, this.setPrivate("height", void 0), this.set("maskContent", !1), this.set("paddingRight", void 0));
3142
- }
3143
- }
3144
- if (this.isDirty("background")) {
3145
- const e = this._prevSettings.background;
3146
- e && this._display.removeChild(e._display);
3147
- const t = this.get("background");
3148
- t instanceof x && (t.set("isMeasured", !1), t._setParent(this), this._display.addChildAt(t._display, 0));
3149
- }
3150
- if (this.isDirty("mask")) {
3151
- const e = this.get("mask"), t = this._prevSettings.mask;
3152
- if (t && (this._display.removeChild(t._display), t != e && t.dispose()), e) {
3153
- const i = e.parent;
3154
- i && i.children.removeValue(e), e._setParent(this), this._display.addChildAt(e._display, 0), this._childrenDisplay.mask = e._display;
3155
- }
3156
- }
3157
- }
3158
- _processTemplateField() {
3159
- super._processTemplateField(), this.children.each((e) => {
3160
- e._processTemplateField();
3161
- });
3162
- }
3163
- walkChildren(e) {
3164
- this.children.each((t) => {
3165
- t instanceof L && t.walkChildren(e), e(t);
3166
- });
3167
- }
3168
- eachChildren(e) {
3169
- const t = this.get("background");
3170
- t && e(t);
3171
- const i = this.get("verticalScrollbar");
3172
- i && e(i);
3173
- const r = this.get("mask");
3174
- r && e(r), this.children.values.forEach((a) => {
3175
- e(a);
3176
- });
3177
- }
3178
- allChildren() {
3179
- const e = [];
3180
- return this.eachChildren((t) => {
3181
- e.push(t);
3182
- }), e;
3183
- }
3184
- _setDataItem(e) {
3185
- const t = e !== this._dataItem;
3186
- super._setDataItem(e);
3187
- const i = this.get("html", "");
3188
- i && i !== "" && t && this._root._setHTMLContent(this, De(this, i));
3189
- }
3190
- }
3191
- Object.defineProperty(L, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Container" }), Object.defineProperty(L, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: x.classNames.concat([L.className]) });
3192
- class se extends x {
3193
- constructor() {
3194
- super(...arguments), Object.defineProperty(this, "textStyle", { enumerable: !0, configurable: !0, writable: !0, value: this._root._renderer.makeTextStyle() }), Object.defineProperty(this, "_display", { enumerable: !0, configurable: !0, writable: !0, value: this._root._renderer.makeText("", this.textStyle) }), Object.defineProperty(this, "_textStyles", { enumerable: !0, configurable: !0, writable: !0, value: ["textAlign", "fontFamily", "fontSize", "fontStyle", "fontWeight", "fontStyle", "fontVariant", "textDecoration", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY", "shadowOpacity", "lineHeight", "baselineRatio", "direction", "textBaseline", "oversizedBehavior", "breakWords", "ellipsis", "minScale", "maxChars"] }), Object.defineProperty(this, "_originalScale", { enumerable: !0, configurable: !0, writable: !0, value: void 0 });
3195
- }
3196
- _updateBounds() {
3197
- if (this.get("text"))
3198
- super._updateBounds();
3199
- else {
3200
- let e = { left: 0, right: 0, top: 0, bottom: 0 };
3201
- this._adjustedLocalBounds = e;
3202
- }
3203
- }
3204
- _changed() {
3205
- super._changed(), this._display.clear();
3206
- let e = this.textStyle;
3207
- if (this.isDirty("opacity")) {
3208
- let t = this.get("opacity", 1);
3209
- this._display.alpha = t;
3210
- }
3211
- if ((this.isDirty("text") || this.isDirty("populateText")) && (this._display.text = this._getText(), this.markDirtyBounds(), this.get("role") == "tooltip" && this._root.updateTooltip(this)), this.isPrivateDirty("tooltipElement") && this.getPrivate("tooltipElement") && this._disposers.push(new P(() => {
3212
- this._root._removeTooltipElement(this);
3213
- })), this.isDirty("width") && (e.wordWrapWidth = this.width(), this.markDirtyBounds()), this.isDirty("oversizedBehavior") && (e.oversizedBehavior = this.get("oversizedBehavior", "none"), this.markDirtyBounds()), this.isDirty("breakWords") && (e.breakWords = this.get("breakWords", !1), this.markDirtyBounds()), this.isDirty("ellipsis") && (e.ellipsis = this.get("ellipsis"), this.markDirtyBounds()), this.isDirty("ignoreFormatting") && (e.ignoreFormatting = this.get("ignoreFormatting", !1), this.markDirtyBounds()), this.isDirty("minScale") && (e.minScale = this.get("minScale", 0), this.markDirtyBounds()), this.isDirty("fill")) {
3214
- let t = this.get("fill");
3215
- t && (e.fill = t);
3216
- }
3217
- if (this.isDirty("fillOpacity")) {
3218
- let t = this.get("fillOpacity", 1);
3219
- t && (e.fillOpacity = t);
3220
- }
3221
- (this.isDirty("maxWidth") || this.isPrivateDirty("maxWidth")) && (e.maxWidth = this.get("maxWidth", this.getPrivate("maxWidth")), this.markDirtyBounds()), (this.isDirty("maxHeight") || this.isPrivateDirty("maxHeight")) && (e.maxHeight = this.get("maxHeight", this.getPrivate("maxHeight")), this.markDirtyBounds()), _(this._textStyles, (t) => {
3222
- this._dirty[t] && (e[t] = this.get(t), this.markDirtyBounds());
3223
- }), e.fontSize = this.get("fontSize"), e.fontFamily = this.get("fontFamily"), this._display.style = e, this.isDirty("role") && this.get("role") == "tooltip" && this._root.updateTooltip(this);
3224
- }
3225
- _getText() {
3226
- let e = this.get("text", "");
3227
- return this.get("maxChars") && (e = _t(e, this.get("maxChars", 1e8), this.get("breakWords"), this.get("ellipsis"))), this.get("populateText") ? De(this, e) : e;
3228
- }
3229
- markDirtyText() {
3230
- this._display.text = this._getText(), this.get("role") == "tooltip" && this._root.updateTooltip(this), this.markDirtyBounds(), this.markDirty();
3231
- }
3232
- _setDataItem(e) {
3233
- super._setDataItem(e), this.get("populateText") && this.markDirtyText();
3234
- }
3235
- getNumberFormatter() {
3236
- return this.parent ? this.parent.getNumberFormatter() : super.getNumberFormatter();
3237
- }
3238
- getDateFormatter() {
3239
- return this.parent ? this.parent.getDateFormatter() : super.getDateFormatter();
3240
- }
3241
- getDurationFormatter() {
3242
- return this.parent ? this.parent.getDurationFormatter() : super.getDurationFormatter();
3243
- }
3244
- }
3245
- Object.defineProperty(se, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Text" }), Object.defineProperty(se, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: x.classNames.concat([se.className]) });
3246
- class ge extends L {
3247
- constructor() {
3248
- super(...arguments), Object.defineProperty(this, "_text", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_textKeys", { enumerable: !0, configurable: !0, writable: !0, value: ["text", "fill", "fillOpacity", "textAlign", "fontFamily", "fontSize", "fontStyle", "fontWeight", "fontStyle", "fontVariant", "textDecoration", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY", "shadowOpacity", "lineHeight", "baselineRatio", "direction", "textBaseline", "oversizedBehavior", "breakWords", "ellipsis", "minScale", "populateText", "role", "ignoreFormatting", "maxChars"] });
3249
- }
3250
- get text() {
3251
- return this._text;
3252
- }
3253
- _afterNew() {
3254
- super._afterNew(), this._makeText(), _(this._textKeys, (e) => {
3255
- const t = this.get(e);
3256
- t != null && this._text.set(e, t);
3257
- }), this.get("html", "") !== "" && this._text.set("text", ""), this.onPrivate("maxWidth", () => {
3258
- this._setMaxDimentions();
3259
- }), this.onPrivate("maxHeight", () => {
3260
- this._setMaxDimentions();
3261
- });
3262
- }
3263
- _makeText() {
3264
- this._text = this.children.push(se.new(this._root, {}));
3265
- }
3266
- _updateChildren() {
3267
- if (super._updateChildren(), _(this._textKeys, (e) => {
3268
- this._text.set(e, this.get(e));
3269
- }), this.isDirty("maxWidth") && this._setMaxDimentions(), this.isDirty("maxHeight") && this._setMaxDimentions(), this.isDirty("rotation") && this._setMaxDimentions(), this.get("html", "") !== "" ? this._text.set("text", "") : this._text.set("text", this.get("text")), this.isDirty("textAlign") || this.isDirty("width")) {
3270
- const e = this.get("textAlign");
3271
- let t;
3272
- this.get("width") != null ? t = e == "right" ? qe : e == "center" ? Je : 0 : e == "left" || e == "start" ? t = this.get("paddingLeft") : e != "right" && e != "end" || (t = -this.get("paddingRight")), this.text.set("x", t);
3273
- }
3274
- }
3275
- _setMaxDimentions() {
3276
- const e = this.get("rotation"), t = e == 90 || e == 270 || e == -90, i = this.get("maxWidth", this.getPrivate("maxWidth", 1 / 0));
3277
- g(i) ? this.text.set(t ? "maxHeight" : "maxWidth", i - this.get("paddingLeft", 0) - this.get("paddingRight", 0)) : this.text.set(t ? "maxHeight" : "maxWidth", void 0);
3278
- const r = this.get("maxHeight", this.getPrivate("maxHeight", 1 / 0));
3279
- g(r) ? this.text.set(t ? "maxWidth" : "maxHeight", r - this.get("paddingTop", 0) - this.get("paddingBottom", 0)) : this.text.set(t ? "maxWidth" : "maxHeight", void 0);
3280
- }
3281
- _setDataItem(e) {
3282
- super._setDataItem(e), this._markDirtyKey("text"), this.text.get("populateText") && this.text.markDirtyText();
3283
- }
3284
- getText() {
3285
- return this._text._getText();
3286
- }
3287
- }
3288
- Object.defineProperty(ge, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Label" }), Object.defineProperty(ge, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: L.classNames.concat([ge.className]) });
3289
- class Bi {
3290
- constructor(e, t) {
3291
- if (Object.defineProperty(this, "_root", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_rules", { enumerable: !0, configurable: !0, writable: !0, value: {} }), this._root = e, !t)
3292
- throw new Error("You cannot use `new Class()`, instead use `Class.new()`");
3293
- }
3294
- static new(e) {
3295
- const t = new this(e, !0);
3296
- return t.setupDefaultRules(), t;
3297
- }
3298
- setupDefaultRules() {
3299
- }
3300
- _lookupRules(e) {
3301
- return this._rules[e];
3302
- }
3303
- ruleRaw(e, t = []) {
3304
- let i = this._rules[e];
3305
- i || (i = this._rules[e] = []), t.sort(F);
3306
- const { index: r, found: a } = at(i, (n) => {
3307
- const o = F(n.tags.length, t.length);
3308
- return o === 0 ? Ze(n.tags, t, F) : o;
3309
- });
3310
- if (a)
3311
- return i[r].template;
3312
- {
3313
- const n = q.new({});
3314
- return i.splice(r, 0, { tags: t, template: n }), n;
3315
- }
3316
- }
3317
- rule(e, t = []) {
3318
- return this.ruleRaw(e, t);
3319
- }
3320
- }
3321
- export {
3322
- $,
3323
- Wt as A,
3324
- A as B,
3325
- g as C,
3326
- pe as D,
3327
- fi as E,
3328
- Xt as F,
3329
- J as G,
3330
- mi as H,
3331
- ui as I,
3332
- Jt as J,
3333
- wi as K,
3334
- Yt as L,
3335
- ci as M,
3336
- T as N,
3337
- F as O,
3338
- Be as P,
3339
- pi as Q,
3340
- gi as R,
3341
- _i as S,
3342
- Ce as T,
3343
- _e as U,
3344
- di as V,
3345
- y as W,
3346
- X,
3347
- $t as Y,
3348
- Z,
3349
- Re as _,
3350
- ke as a,
3351
- Ut as a0,
3352
- Zt as a1,
3353
- re as a2,
3354
- v as a3,
3355
- ii as a4,
3356
- lt as a5,
3357
- k as a6,
3358
- ti as a7,
3359
- ri as a8,
3360
- U as a9,
3361
- Ye as aA,
3362
- st as aB,
3363
- Dt as aC,
3364
- Ot as aD,
3365
- ut as aE,
3366
- Gt as aF,
3367
- Ci as aG,
3368
- xi as aH,
3369
- Me as aI,
3370
- oi as aJ,
3371
- yi as aK,
3372
- Oe as aL,
3373
- bi as aM,
3374
- ki as aN,
3375
- zt as aa,
3376
- we as ab,
3377
- Kt as ac,
3378
- f as ad,
3379
- Oi as ae,
3380
- si as af,
3381
- Ve as ag,
3382
- Ti as ah,
3383
- Di as ai,
3384
- be as aj,
3385
- vi as ak,
3386
- ge as al,
3387
- Ie as am,
3388
- Bi as an,
3389
- ji as ao,
3390
- Je as ap,
3391
- jt as aq,
3392
- M as ar,
3393
- Si as as,
3394
- Pi as at,
3395
- q as au,
3396
- ye as av,
3397
- ve as aw,
3398
- $e as ax,
3399
- Mi as ay,
3400
- Ht as az,
3401
- z as b,
3402
- Ue as c,
3403
- P as d,
3404
- ei as e,
3405
- O as f,
3406
- qt as g,
3407
- Fe as h,
3408
- L as i,
3409
- li as j,
3410
- Ei as k,
3411
- ai as l,
3412
- De as m,
3413
- Ne as n,
3414
- Ee as o,
3415
- Vt as p,
3416
- de as q,
3417
- qe as r,
3418
- se as s,
3419
- Qt as t,
3420
- ni as u,
3421
- Pe as v,
3422
- _ as w,
3423
- R as x,
3424
- hi as y,
3425
- Y as z
3426
- };