@agrotools1/at-components 0.3.2 → 0.3.3

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 (889) hide show
  1. package/dist/AGraphicContainer-0a4e0426.js +109 -0
  2. package/dist/APIKeyMixin-83e85532.js +19 -0
  3. package/dist/Analysis-c4011253.js +31 -0
  4. package/dist/ArcGISCachedService-1c6af1c1.js +47 -0
  5. package/dist/ArcGISService-1d880889.js +25 -0
  6. package/dist/AreaMeasurement2D-86006a71.js +405 -0
  7. package/dist/AreaMeasurement3D-1825243c.js +488 -0
  8. package/dist/AttachmentInfo-fa04c641.js +34 -0
  9. package/dist/AttachmentQuery-1450c2f7.js +18 -0
  10. package/dist/AttributeStore-02f947ea.js +1707 -0
  11. package/dist/BaseDynamicLayerView2D-eb11c757.js +63 -0
  12. package/dist/BingMapsLayer-7ad7d511.js +112 -0
  13. package/dist/Bitmap-14a020d8.js +128 -0
  14. package/dist/BitmapContainer-cc71fd24.js +23 -0
  15. package/dist/BlendLayer-e2f97659.js +13 -0
  16. package/dist/BoundsStore-8612892f.js +63 -0
  17. package/dist/BufferObject-bd932c2c.js +100 -0
  18. package/dist/BufferView-97ed14c7.js +683 -0
  19. package/dist/BuildingSceneLayer-3f5380c8.js +535 -0
  20. package/dist/Button-15031955.js +36 -0
  21. package/dist/CSVLayer-a76db6f4.js +208 -0
  22. package/dist/CSVSourceWorker-afe160ed.js +367 -0
  23. package/dist/CatalogDynamicGroupLayerView2D-be946494.js +66 -0
  24. package/dist/CatalogFootprintLayerView2D-14763204.js +76 -0
  25. package/dist/CatalogLayer-7d6228dd.js +262 -0
  26. package/dist/CatalogLayerView2D-13e32a42.js +52 -0
  27. package/dist/ClassBreaksDefinition-7040a7fc.js +18 -0
  28. package/dist/ColorMaterial.glsl-e56765f1.js +64 -0
  29. package/dist/ColorSet-4ff0a7b7.js +45 -0
  30. package/dist/ColorStop-1e154045.js +29 -0
  31. package/dist/Container-6e3b610b.js +521 -0
  32. package/dist/CustomParametersMixin-c01280c0.js +12 -0
  33. package/dist/DefaultMaterial.glsl-e7e23b90.js +42 -0
  34. package/dist/DefaultMaterial_COLOR_GAMMA-7fd21704.js +653 -0
  35. package/dist/DefaultTheme-3c5b433f.js +130 -0
  36. package/dist/DeleteForwardEditsParameters-7073c5e5.js +18 -0
  37. package/dist/DimensionLayer-f921dd3d.js +129 -0
  38. package/dist/DirectLineMeasurement3D-61d14af2.js +449 -0
  39. package/dist/DistanceMeasurement2D-b023b35c.js +303 -0
  40. package/dist/DoubleArray-1186b8b8.js +25 -0
  41. package/dist/Dropdown/Checklist/Dropdown.Checklist.d.ts +59 -10
  42. package/dist/Dropdown/Checklist/draggable.d.ts +5 -4
  43. package/dist/Dropdown/Dropdown.core.d.ts +0 -13
  44. package/dist/Dropdown/Dropdown.types.d.ts +16 -0
  45. package/dist/Dropdown/Filter/Filter.types.d.ts +17 -0
  46. package/dist/Dropdown/Filter/test.mocks.d.ts +2 -2
  47. package/dist/Dropdown/List/Dropdown.List.d.ts +6 -21
  48. package/dist/Dropdown/List/List.types.d.ts +11 -0
  49. package/dist/Dropdown/List/test.mocks.d.ts +1 -1
  50. package/dist/EdgeProcessingWorker-cb6277ad.js +63 -0
  51. package/dist/EditBusLayer-9d740f8f.js +107 -0
  52. package/dist/ElevationInfo-581ff99d.js +56 -0
  53. package/dist/ElevationLayer-42b57d9b.js +129 -0
  54. package/dist/ElevationQuery-f6d0cf9f.js +598 -0
  55. package/dist/ElevationSamplerWorker-50d805bb.js +62 -0
  56. package/dist/ExportImageParameters-5b047f92.js +66 -0
  57. package/dist/ExportStrategy-b6c54d77.js +93 -0
  58. package/dist/ExportWMSImageParameters-ff5a3ac8.js +33 -0
  59. package/dist/External-695a389a.js +110 -0
  60. package/dist/FeatureCollectionSnappingSource-fdaed9e0.js +130 -0
  61. package/dist/FeatureCommandQueue-c2bd1a39.js +1244 -0
  62. package/dist/FeatureEffect-9ea1b3da.js +39 -0
  63. package/dist/FeatureEffectLayer-0fa169c4.js +13 -0
  64. package/dist/FeatureFilter-638c4cae.js +27 -0
  65. package/dist/FeatureLayer-2a419d3e.js +693 -0
  66. package/dist/FeatureLayerBase-7331e738.js +148 -0
  67. package/dist/FeatureLayerSource-733186fb.js +444 -0
  68. package/dist/FeatureLayerView2D-bc4994b6.js +1967 -0
  69. package/dist/FeaturePipelineWorker-5f68488c.js +3633 -0
  70. package/dist/FeatureReductionLayer-0c152478.js +225 -0
  71. package/dist/FeatureReductionSelection-f952512d.js +22 -0
  72. package/dist/FeatureServiceSnappingSource-4c02d5a3.js +481 -0
  73. package/dist/FeatureServiceSnappingSourceWorker-c2a1dc50.js +747 -0
  74. package/dist/FeatureSet-2c6b8e00.js +188 -0
  75. package/dist/FeatureStore-a26846c0.js +131 -0
  76. package/dist/FeatureTemplate-1b6b7e2d.js +12 -0
  77. package/dist/FeatureType-9e1f1a7d.js +25 -0
  78. package/dist/FieldsIndex-91711836.js +109 -0
  79. package/dist/FormTemplate-ae0cfb6e.js +350 -0
  80. package/dist/GeoJSONLayer-b2070c34.js +236 -0
  81. package/dist/GeoJSONSourceWorker-aecb5f9b.js +247 -0
  82. package/dist/GeoRSSLayer-3743b41f.js +73 -0
  83. package/dist/GeoRSSLayerView2D-098c24bc.js +140 -0
  84. package/dist/GeometryUtils-036c7f22.js +403 -0
  85. package/dist/GraphicContainer-ece3945e.js +26 -0
  86. package/dist/GraphicManipulator-bc92899f.js +1499 -0
  87. package/dist/GraphicsLayer-764f0324.js +38 -0
  88. package/dist/GraphicsLayerView2D-36908d0c.js +114 -0
  89. package/dist/GraphicsSnappingSource-2bb681c0.js +273 -0
  90. package/dist/GraphicsView2D-e9cf5cd6.js +620 -0
  91. package/dist/GroupLayer-5ea5b71b.js +147 -0
  92. package/dist/GroupLayerView2D-22ec9eaa.js +98 -0
  93. package/dist/HUDMaterial.glsl-80ab7d22.js +65 -0
  94. package/dist/HighlightCounter-36842e52.js +41 -0
  95. package/dist/HighlightGraphicContainer-10cb9671.js +18 -0
  96. package/dist/I3SBinaryReader-9dbdc661.js +310 -0
  97. package/dist/I3SLayerDefinitions-b56e2c87.js +55 -0
  98. package/dist/I3SUtil-5461dc89.js +59 -0
  99. package/dist/IdentityManager-bb063156.js +899 -0
  100. package/dist/ImageHistogramParameters-1f8e5179.js +905 -0
  101. package/dist/ImageryLayer-a807d3b3.js +1799 -0
  102. package/dist/ImageryLayerView2D-358a3267.js +352 -0
  103. package/dist/ImageryTileLayer-0f67f262.js +2157 -0
  104. package/dist/ImageryTileLayerView2D-2bc2bb67.js +1110 -0
  105. package/dist/Indices-0c5304f2.js +67 -0
  106. package/dist/IntegratedMesh3DTilesLayer-be69dca8.js +112 -0
  107. package/dist/IntegratedMeshLayer-3c070523.js +141 -0
  108. package/dist/InteractiveAnalysisViewModel-3005a4a6.js +7397 -0
  109. package/dist/InterleavedLayout-d37b99a2.js +163 -0
  110. package/dist/KMLLayer-2011c3c6.js +162 -0
  111. package/dist/KMLLayerView2D-5d17145f.js +253 -0
  112. package/dist/KnowledgeGraphLayerView2D-7172b91b.js +43 -0
  113. package/dist/LRUCache-39211cf9.js +32 -0
  114. package/dist/LabelClass-d1080628.js +135 -0
  115. package/dist/LabelMetric-ab56c6b3.js +400 -0
  116. package/dist/LaserlinePath.glsl-df8f92cc.js +64 -0
  117. package/dist/Laserlines.glsl-f7d93e3f.js +65 -0
  118. package/dist/LayerFloorInfo-3edeb9a2.js +15 -0
  119. package/dist/LayerView-1c58c8c6.js +206 -0
  120. package/dist/LercWorker-c7a2aca1.js +157 -0
  121. package/dist/LineOfSightLayer-3028e21f.js +147 -0
  122. package/dist/LinkChartLayer-988ae660.js +1027 -0
  123. package/dist/Lyr3DWorker-4c8c758f.js +82 -0
  124. package/dist/MagnifierPrograms-123961a3.js +806 -0
  125. package/dist/MapImageLayer-9241ad63.js +169 -0
  126. package/dist/MapImageLayerView2D-726e5c66.js +146 -0
  127. package/dist/MapNotesLayer-2d2db99b.js +283 -0
  128. package/dist/MapNotesLayerView2D-41f5790c.js +161 -0
  129. package/dist/MapServiceLayerViewHelper-8f5228ec.js +288 -0
  130. package/dist/MeasurementWidgetContent-504fd868.js +2642 -0
  131. package/dist/MediaLayer-e71ce661.js +523 -0
  132. package/dist/MediaLayerView2D-33c67404.js +332 -0
  133. package/dist/MemCache-413327b3.js +227 -0
  134. package/dist/MemorySourceWorker-b0e70dd0.js +222 -0
  135. package/dist/Mesh-98c4e050.js +980 -0
  136. package/dist/MeshLocalVertexSpace-7a7e4d4e.js +19 -0
  137. package/dist/MultiOriginJSONSupport-2fca3cc5.js +158 -0
  138. package/dist/OGCFeatureLayer-451fbd45.js +211 -0
  139. package/dist/OGCFeatureLayerView2D-d23b08d2.js +82 -0
  140. package/dist/ObjectStack-742b2ff3.js +21 -0
  141. package/dist/Octree-a3c8e90e.js +495 -0
  142. package/dist/OpenStreetMapLayer-9bb91f97.js +30 -0
  143. package/dist/OperationalLayer-fbfada66.js +44 -0
  144. package/dist/OrderByInfo-335eb561.js +16 -0
  145. package/dist/OrderedLayer-29b4ac64.js +26 -0
  146. package/dist/OrientedImageryLayer-aa2498e2.js +216 -0
  147. package/dist/OverlayCompositing.glsl-4b1e83c2.js +65 -0
  148. package/dist/OverrideHelper-74cc3959.js +242 -0
  149. package/dist/PBFDecoderWorker-fd40e0f9.js +213 -0
  150. package/dist/PointCloudLayer-64cdbbb2.js +197 -0
  151. package/dist/PointCloudUniqueValueRenderer-db9b3a98.js +115 -0
  152. package/dist/PointCloudWorker-a5eb5224.js +212 -0
  153. package/dist/PooledRBush-be6fe17a.js +272 -0
  154. package/dist/Popup-db250fe6.js +3990 -0
  155. package/dist/PortalLayer-a6ce110e.js +126 -0
  156. package/dist/Program-ecabc523.js +694 -0
  157. package/dist/ProgramTemplate-e5ce3b0f.js +35 -0
  158. package/dist/QueryEngine-87b2546b.js +896 -0
  159. package/dist/QueryTask-36400ec7.js +119 -0
  160. package/dist/RasterSymbolizer-cfd47847.js +3024 -0
  161. package/dist/RasterVFDisplayObject-d4c967ea.js +581 -0
  162. package/dist/RasterWorker-068ae23a.js +78 -0
  163. package/dist/RawBlockCache-9e8d4c35.js +185 -0
  164. package/dist/RealisticTree.glsl-adab8e44.js +42 -0
  165. package/dist/RefreshableLayer-eec34ca2.js +80 -0
  166. package/dist/RefreshableLayerView-ee06f08c.js +16 -0
  167. package/dist/Relationship-a7eb5489.js +64 -0
  168. package/dist/RelationshipQuery-4551bb04.js +22 -0
  169. package/dist/RenderingContext-9e8fac0d.js +889 -0
  170. package/dist/RibbonLine.glsl-5990bf5f.js +65 -0
  171. package/dist/RouteLayer-858bc482.js +786 -0
  172. package/dist/RouteLayerView2D-a70d519f.js +195 -0
  173. package/dist/SDFHelper-efca0a53.js +140 -0
  174. package/dist/SSAO.glsl-7670c1fc.js +43 -0
  175. package/dist/SSAOBlur.glsl-3523d6af.js +42 -0
  176. package/dist/ScaleRangeLayer-7f440b85.js +21 -0
  177. package/dist/SceneLayer-999bd23f.js +542 -0
  178. package/dist/SceneLayerSnappingSource-9420aaed.js +218 -0
  179. package/dist/SceneLayerSnappingSourceWorker-be67e552.js +112 -0
  180. package/dist/SceneLayerWorker-201939c2.js +164 -0
  181. package/dist/SceneService-318eff2f.js +215 -0
  182. package/dist/Scheduler-279ea0c3.js +373 -0
  183. package/dist/Search/Search.d.ts +1 -1
  184. package/dist/Search/test.mocks.d.ts +1 -1
  185. package/dist/Search/utils.d.ts +1 -1
  186. package/dist/Select/Select.core.d.ts +1 -1
  187. package/dist/Select/Single/Select.single.d.ts +1 -0
  188. package/dist/Select/index.d.ts +1 -0
  189. package/dist/ShadedColorMaterial.glsl-bd2979d8.js +64 -0
  190. package/dist/SnappingOperation-5100da71.js +48 -0
  191. package/dist/SourceLayerData-50c2b980.js +116 -0
  192. package/dist/SpatialFilter-b6c6b2fc.js +1701 -0
  193. package/dist/Stop-196981da.js +281 -0
  194. package/dist/StreamLayer-37b818b8.js +188 -0
  195. package/dist/StreamLayerView2D-7f0f45bc.js +164 -0
  196. package/dist/StyleRepository-4e8fa398.js +2212 -0
  197. package/dist/SublayersOwner-90d10612.js +545 -0
  198. package/dist/SubtypeGroupLayer-959cabf8.js +514 -0
  199. package/dist/SubtypeGroupLayerView2D-95e63b42.js +84 -0
  200. package/dist/TableConfig/TableConfig.d.ts +14 -6
  201. package/dist/TableConfig/test/mocks.d.ts +1 -1
  202. package/dist/TechniqueInstance-bd190c26.js +233 -0
  203. package/dist/TemporalLayer-aacda167.js +23 -0
  204. package/dist/Texture-3618be49.js +501 -0
  205. package/dist/TextureOnly.glsl-fcca7034.js +65 -0
  206. package/dist/Theme-85608a9a.js +3426 -0
  207. package/dist/Tick-79e96104.js +723 -0
  208. package/dist/TileContainer-f1e7edd8.js +31 -0
  209. package/dist/TileInfoTilemapCache-2f882821.js +38 -0
  210. package/dist/TileLayer-db13a237.js +194 -0
  211. package/dist/TileLayerView2D-15af6be4.js +187 -0
  212. package/dist/TilemapCache-fc4b2c6c.js +189 -0
  213. package/dist/TimeInfo-39a9d4e1.js +42 -0
  214. package/dist/TimeOnly-b759457a.js +706 -0
  215. package/dist/Toggle/Toggle.d.ts +9 -0
  216. package/dist/Tooltip-0ba72b27.js +138 -0
  217. package/dist/TopFeaturesQuery-a11ecc39.js +32 -0
  218. package/dist/TurboLine-5e62d290.js +565 -0
  219. package/dist/UniqueValueRenderer-bf2f3234.js +1039 -0
  220. package/dist/UnknownLayer-2cf71578.js +30 -0
  221. package/dist/UnknownTimeZone-aabdcf56.js +15 -0
  222. package/dist/UnsupportedLayer-36650e4a.js +31 -0
  223. package/dist/UpdateTracking2D-b6d16b0c.js +8566 -0
  224. package/dist/Util-8f54c96b.js +57 -0
  225. package/dist/VectorTileLayer-ddcca4ec.js +544 -0
  226. package/dist/VectorTileLayerView2D-8176946a.js +2108 -0
  227. package/dist/Version-9eb299cd.js +33 -0
  228. package/dist/VertexArrayObject-d1a4262b.js +73 -0
  229. package/dist/VertexColor.glsl-fd9f70e0.js +2683 -0
  230. package/dist/VertexSnappingCandidate-70513010.js +13 -0
  231. package/dist/VideoLayerView2D-e08e1d57.js +124 -0
  232. package/dist/VoxelLayer-959702aa.js +631 -0
  233. package/dist/WFSLayer-4a41b206.js +221 -0
  234. package/dist/WFSSourceWorker-53d88982.js +157 -0
  235. package/dist/WGLContainer-e9e8616e.js +5426 -0
  236. package/dist/WMSLayer-8e44f55c.js +536 -0
  237. package/dist/WMSLayerView2D-415a1793.js +117 -0
  238. package/dist/WMTSLayer-804f4bed.js +531 -0
  239. package/dist/WMTSLayerView2D-96186a90.js +142 -0
  240. package/dist/WebTileLayer-7391ea01.js +110 -0
  241. package/dist/WhereClause-1816217e.js +2766 -0
  242. package/dist/WorkerHandle-25f67c67.js +47 -0
  243. package/dist/WorkerTileHandler-a7e508bc.js +1539 -0
  244. package/dist/action-3ce81e45.js +198 -0
  245. package/dist/action-group-f2d26c2b.js +145 -0
  246. package/dist/action-menu-015d91ab.js +1759 -0
  247. package/dist/apng-e5532475.js +392 -0
  248. package/dist/arcade-dbe2ca4a.js +229 -0
  249. package/dist/arcadeAsyncRuntime-78b83b41.js +943 -0
  250. package/dist/arcadeUtils-cb1066a6.js +8741 -0
  251. package/dist/arcgis-knowledge-client-core-7379d99e.js +1218 -0
  252. package/dist/arcgis-knowledge-client-core-simd-ea8b4d20.js +1218 -0
  253. package/dist/arcgisLayers-cd3494fd.js +152 -0
  254. package/dist/associatedFeatureServiceUtils-da8d377d.js +92 -0
  255. package/dist/axisAngleDegrees-19922758.js +49 -0
  256. package/dist/basis_transcoder-bf0490cc.js +1248 -0
  257. package/dist/calcite-action-0db4f61c.js +22 -0
  258. package/dist/calcite-action-bar-1b4c89cb.js +303 -0
  259. package/dist/calcite-action-group-3c8a934c.js +28 -0
  260. package/dist/calcite-button-1079a10c.js +228 -0
  261. package/dist/calcite-flow-c1e71a12.js +128 -0
  262. package/dist/calcite-flow-item-1097b48f.js +499 -0
  263. package/dist/calcite-icon-c88b4a67.js +16 -0
  264. package/dist/calcite-input-8c33ee84.js +24 -0
  265. package/dist/calcite-label-7fbfbe36.js +79 -0
  266. package/dist/calcite-list-93af4ae2.js +2135 -0
  267. package/dist/calcite-list-item-f0a6cda3.js +576 -0
  268. package/dist/calcite-list-item-group-107a313e.js +71 -0
  269. package/dist/calcite-loader-5194bf83.js +14 -0
  270. package/dist/calcite-modal-486280cc.js +333 -0
  271. package/dist/calcite-notice-a81274a8.js +181 -0
  272. package/dist/calcite-option-0020a955.js +94 -0
  273. package/dist/calcite-scrim-27d65e7f.js +18 -0
  274. package/dist/calcite-select-05f25c2a.js +231 -0
  275. package/dist/capabilities-238bde7d.js +50 -0
  276. package/dist/chartCommon-7eda170a.js +256 -0
  277. package/dist/chartUtilsAm5-fd8aeac2.js +2954 -0
  278. package/dist/clientSideDefaults-b91506af.js +39 -0
  279. package/dist/colorRamps-6027ea73.js +38 -0
  280. package/dist/colorUtils-3dd4b884.js +164 -0
  281. package/dist/commonProperties-bf4d305f.js +60 -0
  282. package/dist/computeTranslationToOriginAndRotation-ca5a9439.js +60 -0
  283. package/dist/conditionalSlot-80a4c6ff.js +27 -0
  284. package/dist/createConnection-70dd787a.js +299 -0
  285. package/dist/dataUtils-b632d3a2.js +1421 -0
  286. package/dist/deduplicate-e13aa9e2.js +89 -0
  287. package/dist/defaults-40a1a995.js +31 -0
  288. package/dist/deleteForwardEdits-b0182a08.js +13 -0
  289. package/dist/diffUtils-5f43e52a.js +90 -0
  290. package/dist/drapedUtils-416e5304.js +75 -0
  291. package/dist/earcut-235aa57d.js +292 -0
  292. package/dist/edgeProcessing-43d45a32.js +252 -0
  293. package/dist/editingSupport-7706f838.js +203 -0
  294. package/dist/editsZScale-49d8a8cd.js +37 -0
  295. package/dist/elevationInfoUtils-3fbfcf1f.js +126 -0
  296. package/dist/executeForIds-419ba6a3.js +14 -0
  297. package/dist/executeForTopCount-8a8ba5c7.js +17 -0
  298. package/dist/executeForTopExtents-9f24d5d0.js +17 -0
  299. package/dist/executeForTopIds-0bfdb55f.js +17 -0
  300. package/dist/executeQueryJSON-2a2e9e1b.js +15 -0
  301. package/dist/executeQueryPBF-f10de9ec.js +152 -0
  302. package/dist/executeRelationshipQuery-0680cb30.js +53 -0
  303. package/dist/executeTopFeaturesQuery-c553d696.js +18 -0
  304. package/dist/featureConversionUtils-83783887.js +479 -0
  305. package/dist/featureLayerUtils-545d260a.js +250 -0
  306. package/dist/featureLayerUtils-b18e6016.js +142 -0
  307. package/dist/featureSetUtils-0c7ba073.js +2530 -0
  308. package/dist/featuresetbase-aadfabb3.js +707 -0
  309. package/dist/featuresetgeom-a405018e.js +99 -0
  310. package/dist/featuresetstats-f6602402.js +81 -0
  311. package/dist/featuresetstring-834ea865.js +95 -0
  312. package/dist/fetchService-dac740ef.js +33 -0
  313. package/dist/fieldProperties-b024e721.js +33 -0
  314. package/dist/floatRGBA-46ee3e38.js +20 -0
  315. package/dist/form-0b2f0ac9.js +138 -0
  316. package/dist/geohashUtils-418d1ca6.js +85 -0
  317. package/dist/geojson-96d3353d.js +208 -0
  318. package/dist/geomasync-ff5b3734.js +567 -0
  319. package/dist/geometryEngine-8fcb3d59.js +192 -0
  320. package/dist/geometryEngineAsync-212f4b0f.js +217 -0
  321. package/dist/geometryEngineBase-4c2ff8b9.js +18463 -0
  322. package/dist/geometryEngineJSON-131b461e.js +171 -0
  323. package/dist/geometryEngineJSON-b43cf67f.js +46 -0
  324. package/dist/geometryEngineWorker-707ca480.js +11 -0
  325. package/dist/geometryServiceUtils-af23d0b5.js +28 -0
  326. package/dist/georeference-02bc532d.js +291 -0
  327. package/dist/gif-b072aa1c.js +323 -0
  328. package/dist/gltfexport-3362ea71.js +705 -0
  329. package/dist/groupLayerUtils-81545911.js +39 -0
  330. package/dist/heatmapUtils-b25824e4.js +45 -0
  331. package/dist/highlightReasons-5b8b2665.js +19 -0
  332. package/dist/hydrated-b0c62926.js +40 -0
  333. package/dist/i3s-32edc725.js +809 -0
  334. package/dist/icon-453c7f62.js +127 -0
  335. package/dist/imageBitmapUtils-51497e26.js +23 -0
  336. package/dist/imageUtils-1d1da6e6.js +89 -0
  337. package/dist/imageUtils-8c40eba6.js +69 -0
  338. package/dist/imageryUtils-0c00fbf3.js +43 -0
  339. package/dist/index-3b4c2147.js +45568 -0
  340. package/dist/index.js +1 -1
  341. package/dist/input-message-32600f49.js +92 -0
  342. package/dist/input2-1c0831ed.js +575 -0
  343. package/dist/interactive-5824e097.js +80 -0
  344. package/dist/jsonContext-ec21ce85.js +15 -0
  345. package/dist/jsonUtils-012feb40.js +476 -0
  346. package/dist/jsonUtils-3979baa3.js +59 -0
  347. package/dist/jsonUtils-3eb7c689.js +86 -0
  348. package/dist/kmlUtils-4c198ea5.js +112 -0
  349. package/dist/knowledgeGraphService-a159d815.js +739 -0
  350. package/dist/knowledgegraph-eb0d44d4.js +149 -0
  351. package/dist/labelUtils-01b646c7.js +61 -0
  352. package/dist/labelingInfo-148dcd26.js +46 -0
  353. package/dist/layersCreator-4e94f616.js +151 -0
  354. package/dist/layersLoader-f4e3ab33.js +197 -0
  355. package/dist/lazyLayerLoader-eb51910e.js +10 -0
  356. package/dist/lclayout-4d303c41.js +773 -0
  357. package/dist/lengthUtils-6abaf27a.js +5 -0
  358. package/dist/lerc-wasm-0ae912df.js +325 -0
  359. package/dist/libtess-asm-91c97dcd.js +3673 -0
  360. package/dist/libtess-cba14731.js +269 -0
  361. package/dist/lineSegment-8f04aab4.js +76 -0
  362. package/dist/loadGLTFMesh-71542570.js +181 -0
  363. package/dist/loadable-e7c40a8a.js +24 -0
  364. package/dist/loader-6272e4b3.js +79 -0
  365. package/dist/lyr3DWorker-9ee4ee8b.js +2108 -0
  366. package/dist/mapViewDeps-b17a2e04.js +3052 -0
  367. package/dist/mediaLayerUtils-f0ccfd82.js +35 -0
  368. package/dist/meshFeatureSet-304dfa08.js +126 -0
  369. package/dist/meshVertexSpaceUtils-e7f774fa.js +58 -0
  370. package/dist/multidimensionalUtils-642f26da.js +290 -0
  371. package/dist/normalizeUtilsSync-b5f617e6.js +181 -0
  372. package/dist/number-3af512e3.js +128 -0
  373. package/dist/objectResourceUtils-d45057aa.js +1455 -0
  374. package/dist/observers-700e505d.js +30 -0
  375. package/dist/ogcFeatureUtils-440ed0bf.js +206 -0
  376. package/dist/openCloseComponent-1501c620.js +37 -0
  377. package/dist/orientedBoundingBox-80988e7f.js +447 -0
  378. package/dist/parser-6e351b85.js +488 -0
  379. package/dist/pbf-a85c52b3.js +215 -0
  380. package/dist/pbfQueryUtils-5f25f81f.js +422 -0
  381. package/dist/pe-wasm-e588110b.js +887 -0
  382. package/dist/persistable-ad01d0ca.js +89 -0
  383. package/dist/perspectiveUtils-ab58ddbb.js +42 -0
  384. package/dist/pieChart-d3793e8b.js +555 -0
  385. package/dist/plane-e103e8ed.js +160 -0
  386. package/dist/popupUtils-5f7c3e79.js +50 -0
  387. package/dist/popupUtils-b95ab60a.js +22 -0
  388. package/dist/portalItemUtils-3d59513a.js +57 -0
  389. package/dist/portalLayers-16b2f807.js +312 -0
  390. package/dist/portalUtils-3789afb0.js +7 -0
  391. package/dist/programUtils-c8d96b39.js +59 -0
  392. package/dist/project-7eaa59a4.js +21 -0
  393. package/dist/projectPointToVector-19151d97.js +14 -0
  394. package/dist/projectVectorToVector-d552535c.js +13 -0
  395. package/dist/quantityUtils-258bfdb4.js +33 -0
  396. package/dist/quantizationUtils-752e4d24.js +68 -0
  397. package/dist/quat-6dc51256.js +104 -0
  398. package/dist/query-da893693.js +89 -0
  399. package/dist/queryAttachments-df86b71d.js +39 -0
  400. package/dist/queryEngineUtils-ffc50ce5.js +21 -0
  401. package/dist/queryTopFeatures-5a58a12d.js +50 -0
  402. package/dist/queryZScale-39ffaf30.js +12 -0
  403. package/dist/rasterProjectionHelper-d13bc46d.js +577 -0
  404. package/dist/rasterUtils-22b15453.js +122 -0
  405. package/dist/rasterizingUtils-3388ddbf.js +46 -0
  406. package/dist/request-82a2415a.js +46 -0
  407. package/dist/requestImageUtils-2fca27f8.js +8 -0
  408. package/dist/resourceExtension-672d03cc.js +17 -0
  409. package/dist/resourceUtils-95b9964a.js +42 -0
  410. package/dist/resourceUtils-b1e50d5e.js +69 -0
  411. package/dist/resourceUtils-e8831103.js +62 -0
  412. package/dist/saveAPIKeyUtils-ee9b0447.js +8 -0
  413. package/dist/saveUtils-1323ad64.js +24 -0
  414. package/dist/scaleUtils-1a70f716.js +23 -0
  415. package/dist/scrim-c0a641cd.js +114 -0
  416. package/dist/serviceCapabilitiesUtils-33d4e1c0.js +64 -0
  417. package/dist/sourceUtils-e8c5db4e.js +71 -0
  418. package/dist/sphere-75cef429.js +199 -0
  419. package/dist/statsWorker-1f1bc582.js +37 -0
  420. package/dist/streamLayerUtils-c85a0eed.js +31 -0
  421. package/dist/style.css +1 -1
  422. package/dist/styleUtils-05bc85a5.js +75 -0
  423. package/dist/styleUtils-7bd8d0a7.js +14 -0
  424. package/dist/sublayerUtils-feb77591.js +37 -0
  425. package/dist/substitute-c31da60c.js +52 -0
  426. package/dist/symbolColorUtils-3c385668.js +8 -0
  427. package/dist/symbolLayerUtils-2d2753b7.js +31 -0
  428. package/dist/symbologySnappingCandidates-00eeca39.js +221 -0
  429. package/dist/t9n-55800455.js +349 -0
  430. package/dist/testSVGPremultipliedAlpha-ec1f73c4.js +94 -0
  431. package/dist/timeSupport-a7623294.js +410 -0
  432. package/dist/triangle-c799f11b.js +98 -0
  433. package/dist/unitConversionUtils-05050e6d.js +17 -0
  434. package/dist/unitFormatUtils-2a84c371.js +40 -0
  435. package/dist/uploadAssetErrors-601b044e.js +70 -0
  436. package/dist/uploadAssets-5a835c8a.js +330 -0
  437. package/dist/utils-2dc379da.js +79 -0
  438. package/dist/utils-34b1ea70.js +2746 -0
  439. package/dist/utils-45c14202.js +232 -0
  440. package/dist/utils-484969fb.js +91 -0
  441. package/dist/utils-5aaff624.js +433 -0
  442. package/dist/utils-a94dc35d.js +419 -0
  443. package/dist/utils-e68cfebf.js +34 -0
  444. package/dist/utils-fc14cc83.js +73 -0
  445. package/dist/utils3-5745e839.js +75 -0
  446. package/dist/vec3-12b9e1d8.js +81 -0
  447. package/dist/vec42-a1569d60.js +125 -0
  448. package/dist/versionUtils-c4f3617a.js +161 -0
  449. package/dist/visualVariableUtils-bcb95edc.js +267 -0
  450. package/dist/webStyleSymbolUtils-9db5b81c.js +48 -0
  451. package/dist/webglDeps-05e0410a.js +23 -0
  452. package/dist/wfsUtils-7caaa2cc.js +343 -0
  453. package/dist/workerHelper-86e37deb.js +11 -0
  454. package/dist/xyChart-0673158d.js +3335 -0
  455. package/package.json +1 -1
  456. package/dist/AGraphicContainer-232b465f.js +0 -109
  457. package/dist/APIKeyMixin-6c797b4c.js +0 -19
  458. package/dist/Analysis-fb0fc04a.js +0 -31
  459. package/dist/ArcGISCachedService-e0930844.js +0 -47
  460. package/dist/ArcGISService-81baed4d.js +0 -25
  461. package/dist/AreaMeasurement2D-1dbe17c7.js +0 -405
  462. package/dist/AreaMeasurement3D-3b80654b.js +0 -488
  463. package/dist/AttachmentInfo-e02ca554.js +0 -34
  464. package/dist/AttachmentQuery-1667a134.js +0 -18
  465. package/dist/AttributeStore-2f8bce1a.js +0 -1707
  466. package/dist/BaseDynamicLayerView2D-6ed632c7.js +0 -63
  467. package/dist/BingMapsLayer-1b540400.js +0 -112
  468. package/dist/Bitmap-625c3ae1.js +0 -128
  469. package/dist/BitmapContainer-ac2e261c.js +0 -23
  470. package/dist/BlendLayer-38d68343.js +0 -13
  471. package/dist/BoundsStore-f1942e67.js +0 -63
  472. package/dist/BufferObject-faafd842.js +0 -100
  473. package/dist/BufferView-c2f86567.js +0 -683
  474. package/dist/BuildingSceneLayer-95da2010.js +0 -535
  475. package/dist/Button-312c8286.js +0 -36
  476. package/dist/CSVLayer-68bdf977.js +0 -208
  477. package/dist/CSVSourceWorker-df47e4b9.js +0 -367
  478. package/dist/CatalogDynamicGroupLayerView2D-5ff99579.js +0 -66
  479. package/dist/CatalogFootprintLayerView2D-9f09a894.js +0 -76
  480. package/dist/CatalogLayer-6b5e756d.js +0 -262
  481. package/dist/CatalogLayerView2D-4f9ea89a.js +0 -52
  482. package/dist/ClassBreaksDefinition-d32b0ea5.js +0 -18
  483. package/dist/ColorMaterial.glsl-5fa4dda6.js +0 -64
  484. package/dist/ColorSet-59641c11.js +0 -45
  485. package/dist/ColorStop-d5b563ab.js +0 -29
  486. package/dist/Container-879e59ef.js +0 -521
  487. package/dist/CustomParametersMixin-c281d5e7.js +0 -12
  488. package/dist/DefaultMaterial.glsl-6cc65bf3.js +0 -42
  489. package/dist/DefaultMaterial_COLOR_GAMMA-14d3794c.js +0 -653
  490. package/dist/DefaultTheme-6f3c03ba.js +0 -130
  491. package/dist/DeleteForwardEditsParameters-127d0833.js +0 -18
  492. package/dist/DimensionLayer-031be560.js +0 -129
  493. package/dist/DirectLineMeasurement3D-342dea70.js +0 -449
  494. package/dist/DistanceMeasurement2D-a628b12a.js +0 -303
  495. package/dist/DoubleArray-61325dbc.js +0 -25
  496. package/dist/EdgeProcessingWorker-9baa9f38.js +0 -63
  497. package/dist/EditBusLayer-b7db2f6c.js +0 -107
  498. package/dist/ElevationInfo-016cc1c4.js +0 -56
  499. package/dist/ElevationLayer-ae7cbbb9.js +0 -129
  500. package/dist/ElevationQuery-96db182d.js +0 -598
  501. package/dist/ElevationSamplerWorker-ab27b576.js +0 -62
  502. package/dist/ExportImageParameters-d1792a7e.js +0 -66
  503. package/dist/ExportStrategy-a42be397.js +0 -93
  504. package/dist/ExportWMSImageParameters-853db12a.js +0 -33
  505. package/dist/External-a5c4899d.js +0 -110
  506. package/dist/FeatureCollectionSnappingSource-40da43c0.js +0 -130
  507. package/dist/FeatureCommandQueue-68735fa7.js +0 -1244
  508. package/dist/FeatureEffect-20b68d20.js +0 -39
  509. package/dist/FeatureEffectLayer-65d674f5.js +0 -13
  510. package/dist/FeatureFilter-0babb1a1.js +0 -27
  511. package/dist/FeatureLayer-bb266fef.js +0 -693
  512. package/dist/FeatureLayerBase-583207e8.js +0 -148
  513. package/dist/FeatureLayerSource-daea2938.js +0 -444
  514. package/dist/FeatureLayerView2D-a93360fa.js +0 -1967
  515. package/dist/FeaturePipelineWorker-f8bb9d01.js +0 -3633
  516. package/dist/FeatureReductionLayer-b540e503.js +0 -225
  517. package/dist/FeatureReductionSelection-75ac9c66.js +0 -22
  518. package/dist/FeatureServiceSnappingSource-8d342703.js +0 -481
  519. package/dist/FeatureServiceSnappingSourceWorker-97c5a3e7.js +0 -747
  520. package/dist/FeatureSet-769d2f68.js +0 -188
  521. package/dist/FeatureStore-cfee3322.js +0 -131
  522. package/dist/FeatureTemplate-1be6448a.js +0 -12
  523. package/dist/FeatureType-69365546.js +0 -25
  524. package/dist/FieldsIndex-fd635f39.js +0 -109
  525. package/dist/FormTemplate-8a69784e.js +0 -350
  526. package/dist/GeoJSONLayer-288dc230.js +0 -236
  527. package/dist/GeoJSONSourceWorker-2a406166.js +0 -247
  528. package/dist/GeoRSSLayer-b6cf0b9a.js +0 -73
  529. package/dist/GeoRSSLayerView2D-a2d897cc.js +0 -140
  530. package/dist/GeometryUtils-42ae242b.js +0 -403
  531. package/dist/GraphicContainer-f39e4cce.js +0 -26
  532. package/dist/GraphicManipulator-d94e3db2.js +0 -1499
  533. package/dist/GraphicsLayer-06f54c2b.js +0 -38
  534. package/dist/GraphicsLayerView2D-6b0c439f.js +0 -114
  535. package/dist/GraphicsSnappingSource-cdbd5c58.js +0 -273
  536. package/dist/GraphicsView2D-5c69cd54.js +0 -620
  537. package/dist/GroupLayer-d90d1469.js +0 -147
  538. package/dist/GroupLayerView2D-47ee20d3.js +0 -98
  539. package/dist/HUDMaterial.glsl-1f7c8dc7.js +0 -65
  540. package/dist/HighlightCounter-82aefa16.js +0 -41
  541. package/dist/HighlightGraphicContainer-5887470a.js +0 -18
  542. package/dist/I3SBinaryReader-bc4c80ba.js +0 -310
  543. package/dist/I3SLayerDefinitions-dcda247e.js +0 -55
  544. package/dist/I3SUtil-f0366135.js +0 -59
  545. package/dist/IdentityManager-488a6f1a.js +0 -899
  546. package/dist/ImageHistogramParameters-4dc64f39.js +0 -905
  547. package/dist/ImageryLayer-b486249a.js +0 -1799
  548. package/dist/ImageryLayerView2D-f1c342ad.js +0 -352
  549. package/dist/ImageryTileLayer-12ada40b.js +0 -2157
  550. package/dist/ImageryTileLayerView2D-f35352b1.js +0 -1110
  551. package/dist/Indices-d59209a8.js +0 -67
  552. package/dist/IntegratedMesh3DTilesLayer-be58f806.js +0 -112
  553. package/dist/IntegratedMeshLayer-7b709481.js +0 -141
  554. package/dist/InteractiveAnalysisViewModel-cc8c864a.js +0 -7397
  555. package/dist/InterleavedLayout-31a7340e.js +0 -163
  556. package/dist/KMLLayer-599771d7.js +0 -162
  557. package/dist/KMLLayerView2D-017f9a86.js +0 -253
  558. package/dist/KnowledgeGraphLayerView2D-2578f250.js +0 -43
  559. package/dist/LRUCache-d9e4b57a.js +0 -32
  560. package/dist/LabelClass-909af0e5.js +0 -135
  561. package/dist/LabelMetric-a3f892e4.js +0 -400
  562. package/dist/LaserlinePath.glsl-763a0501.js +0 -64
  563. package/dist/Laserlines.glsl-75db5218.js +0 -65
  564. package/dist/LayerFloorInfo-8abaffaa.js +0 -15
  565. package/dist/LayerView-2a8c8edc.js +0 -206
  566. package/dist/LercWorker-06fcacbd.js +0 -157
  567. package/dist/LineOfSightLayer-019d46c8.js +0 -147
  568. package/dist/LinkChartLayer-332a03e2.js +0 -1027
  569. package/dist/Lyr3DWorker-5d6064e5.js +0 -82
  570. package/dist/MagnifierPrograms-4170fe79.js +0 -806
  571. package/dist/MapImageLayer-d86788de.js +0 -169
  572. package/dist/MapImageLayerView2D-0b2dddf2.js +0 -146
  573. package/dist/MapNotesLayer-07a5011d.js +0 -283
  574. package/dist/MapNotesLayerView2D-37f2c3b3.js +0 -161
  575. package/dist/MapServiceLayerViewHelper-f4014bfb.js +0 -288
  576. package/dist/MeasurementWidgetContent-31e1b266.js +0 -2642
  577. package/dist/MediaLayer-cd8e19fe.js +0 -523
  578. package/dist/MediaLayerView2D-bd3bc699.js +0 -332
  579. package/dist/MemCache-6249a3f0.js +0 -227
  580. package/dist/MemorySourceWorker-074a99da.js +0 -222
  581. package/dist/Mesh-17dfbf3e.js +0 -980
  582. package/dist/MeshLocalVertexSpace-a0c9365a.js +0 -19
  583. package/dist/MultiOriginJSONSupport-677c0e5f.js +0 -158
  584. package/dist/OGCFeatureLayer-1db569c4.js +0 -211
  585. package/dist/OGCFeatureLayerView2D-3dacad79.js +0 -82
  586. package/dist/ObjectStack-5e8cdae7.js +0 -21
  587. package/dist/Octree-0cab1591.js +0 -495
  588. package/dist/OpenStreetMapLayer-4b9e6867.js +0 -30
  589. package/dist/OperationalLayer-96cb1405.js +0 -44
  590. package/dist/OrderByInfo-4cb60db9.js +0 -16
  591. package/dist/OrderedLayer-cbff4a31.js +0 -26
  592. package/dist/OrientedImageryLayer-301c702b.js +0 -216
  593. package/dist/OverlayCompositing.glsl-cdda5153.js +0 -65
  594. package/dist/OverrideHelper-f9ba3c94.js +0 -242
  595. package/dist/PBFDecoderWorker-eac75de9.js +0 -213
  596. package/dist/PointCloudLayer-ce8e5fd6.js +0 -197
  597. package/dist/PointCloudUniqueValueRenderer-ca506fdf.js +0 -115
  598. package/dist/PointCloudWorker-49b24336.js +0 -212
  599. package/dist/PooledRBush-af918d48.js +0 -272
  600. package/dist/Popup-e996c502.js +0 -3990
  601. package/dist/PortalLayer-60c1c36d.js +0 -126
  602. package/dist/Program-5b5c8288.js +0 -694
  603. package/dist/ProgramTemplate-62d54e1b.js +0 -35
  604. package/dist/QueryEngine-1b2a6d7d.js +0 -896
  605. package/dist/QueryTask-07de3621.js +0 -119
  606. package/dist/RasterSymbolizer-c6f76134.js +0 -3024
  607. package/dist/RasterVFDisplayObject-573f0530.js +0 -581
  608. package/dist/RasterWorker-f428c6b4.js +0 -78
  609. package/dist/RawBlockCache-0803fdd7.js +0 -185
  610. package/dist/RealisticTree.glsl-abb5883e.js +0 -42
  611. package/dist/RefreshableLayer-0d1a28eb.js +0 -80
  612. package/dist/RefreshableLayerView-19c8ff47.js +0 -16
  613. package/dist/Relationship-35bb85fc.js +0 -64
  614. package/dist/RelationshipQuery-1cb86efa.js +0 -22
  615. package/dist/RenderingContext-34f41421.js +0 -889
  616. package/dist/RibbonLine.glsl-88da820b.js +0 -65
  617. package/dist/RouteLayer-b6a064d9.js +0 -786
  618. package/dist/RouteLayerView2D-b14b84ae.js +0 -195
  619. package/dist/SDFHelper-49b28369.js +0 -140
  620. package/dist/SSAO.glsl-b5eba45c.js +0 -43
  621. package/dist/SSAOBlur.glsl-7377bef6.js +0 -42
  622. package/dist/ScaleRangeLayer-d06647e5.js +0 -21
  623. package/dist/SceneLayer-34617ffa.js +0 -542
  624. package/dist/SceneLayerSnappingSource-2115fd1b.js +0 -218
  625. package/dist/SceneLayerSnappingSourceWorker-5051ed2a.js +0 -112
  626. package/dist/SceneLayerWorker-416bda11.js +0 -164
  627. package/dist/SceneService-337f7bcd.js +0 -215
  628. package/dist/Scheduler-b0e8df04.js +0 -373
  629. package/dist/ShadedColorMaterial.glsl-8dd39e79.js +0 -64
  630. package/dist/SnappingOperation-726320a3.js +0 -48
  631. package/dist/SourceLayerData-b2da5f90.js +0 -116
  632. package/dist/SpatialFilter-0839066d.js +0 -1701
  633. package/dist/Stop-16e18837.js +0 -281
  634. package/dist/StreamLayer-a2c5ad69.js +0 -188
  635. package/dist/StreamLayerView2D-b1cb419c.js +0 -164
  636. package/dist/StyleRepository-55975dc1.js +0 -2212
  637. package/dist/SublayersOwner-dfd52113.js +0 -545
  638. package/dist/SubtypeGroupLayer-19990fdc.js +0 -514
  639. package/dist/SubtypeGroupLayerView2D-039eecec.js +0 -84
  640. package/dist/TechniqueInstance-f272ce92.js +0 -233
  641. package/dist/TemporalLayer-960c7904.js +0 -23
  642. package/dist/Texture-08e8abdd.js +0 -501
  643. package/dist/TextureOnly.glsl-adbd8e1e.js +0 -65
  644. package/dist/Theme-a0c472c9.js +0 -3426
  645. package/dist/Tick-ad80492f.js +0 -723
  646. package/dist/TileContainer-6b12d8e1.js +0 -31
  647. package/dist/TileInfoTilemapCache-b78dac78.js +0 -38
  648. package/dist/TileLayer-4db1b607.js +0 -194
  649. package/dist/TileLayerView2D-1f2d0b4c.js +0 -187
  650. package/dist/TilemapCache-671945d2.js +0 -189
  651. package/dist/TimeInfo-48493242.js +0 -42
  652. package/dist/TimeOnly-40ea9bb9.js +0 -706
  653. package/dist/Tooltip-9ecc3c9d.js +0 -138
  654. package/dist/TopFeaturesQuery-c0fd4e83.js +0 -32
  655. package/dist/TurboLine-cb0c9eaa.js +0 -565
  656. package/dist/UniqueValueRenderer-e4a27dfc.js +0 -1039
  657. package/dist/UnknownLayer-c3ba50b7.js +0 -30
  658. package/dist/UnknownTimeZone-832b690f.js +0 -15
  659. package/dist/UnsupportedLayer-0a89352f.js +0 -31
  660. package/dist/UpdateTracking2D-881e1d79.js +0 -8566
  661. package/dist/Util-b8d78341.js +0 -57
  662. package/dist/VectorTileLayer-43223ebe.js +0 -544
  663. package/dist/VectorTileLayerView2D-3d5f0721.js +0 -2108
  664. package/dist/Version-014efc62.js +0 -33
  665. package/dist/VertexArrayObject-4c6a6897.js +0 -73
  666. package/dist/VertexColor.glsl-e1468339.js +0 -2683
  667. package/dist/VertexSnappingCandidate-b3a3d14d.js +0 -13
  668. package/dist/VideoLayerView2D-f24c6919.js +0 -124
  669. package/dist/VoxelLayer-5ab46878.js +0 -631
  670. package/dist/WFSLayer-e8a081ca.js +0 -221
  671. package/dist/WFSSourceWorker-55c872f8.js +0 -157
  672. package/dist/WGLContainer-f4c4a8dc.js +0 -5426
  673. package/dist/WMSLayer-e9d5e4a6.js +0 -536
  674. package/dist/WMSLayerView2D-56144a1d.js +0 -117
  675. package/dist/WMTSLayer-c571ae0f.js +0 -531
  676. package/dist/WMTSLayerView2D-81b561e0.js +0 -142
  677. package/dist/WebTileLayer-cd295f56.js +0 -110
  678. package/dist/WhereClause-8bc4aa58.js +0 -2766
  679. package/dist/WorkerHandle-f8e580f2.js +0 -47
  680. package/dist/WorkerTileHandler-0f73a7f2.js +0 -1539
  681. package/dist/action-53058ddb.js +0 -198
  682. package/dist/action-group-ff2ef7e7.js +0 -145
  683. package/dist/action-menu-fefff035.js +0 -1759
  684. package/dist/apng-ac31a3d2.js +0 -392
  685. package/dist/arcade-ce9e8356.js +0 -229
  686. package/dist/arcadeAsyncRuntime-068150f3.js +0 -943
  687. package/dist/arcadeUtils-38c2028a.js +0 -8741
  688. package/dist/arcgis-knowledge-client-core-418d2890.js +0 -1218
  689. package/dist/arcgis-knowledge-client-core-simd-bf207cbd.js +0 -1218
  690. package/dist/arcgisLayers-f9b73e96.js +0 -152
  691. package/dist/associatedFeatureServiceUtils-f1895302.js +0 -92
  692. package/dist/axisAngleDegrees-abd6e971.js +0 -49
  693. package/dist/basis_transcoder-ba9d02db.js +0 -1248
  694. package/dist/calcite-action-07342a33.js +0 -22
  695. package/dist/calcite-action-bar-b8b194bf.js +0 -303
  696. package/dist/calcite-action-group-f93a5b76.js +0 -28
  697. package/dist/calcite-button-13172f9c.js +0 -228
  698. package/dist/calcite-flow-959098df.js +0 -128
  699. package/dist/calcite-flow-item-9141ea0e.js +0 -499
  700. package/dist/calcite-icon-1f1f741d.js +0 -16
  701. package/dist/calcite-input-99b0c89d.js +0 -24
  702. package/dist/calcite-label-5daa57c6.js +0 -79
  703. package/dist/calcite-list-543efc4b.js +0 -2135
  704. package/dist/calcite-list-item-a148ac57.js +0 -576
  705. package/dist/calcite-list-item-group-4da974f3.js +0 -71
  706. package/dist/calcite-loader-8b29a4cd.js +0 -14
  707. package/dist/calcite-modal-b64d2a9b.js +0 -333
  708. package/dist/calcite-notice-1527bc00.js +0 -181
  709. package/dist/calcite-option-5ea94a2a.js +0 -94
  710. package/dist/calcite-scrim-35fd270f.js +0 -18
  711. package/dist/calcite-select-a936a6d4.js +0 -231
  712. package/dist/capabilities-eb05cd14.js +0 -50
  713. package/dist/chartCommon-af447b81.js +0 -256
  714. package/dist/chartUtilsAm5-21243f3e.js +0 -2954
  715. package/dist/clientSideDefaults-0197b13d.js +0 -39
  716. package/dist/colorRamps-100595ab.js +0 -38
  717. package/dist/colorUtils-1a8cc2f8.js +0 -164
  718. package/dist/commonProperties-7d8f6b56.js +0 -60
  719. package/dist/computeTranslationToOriginAndRotation-466bc2c5.js +0 -60
  720. package/dist/conditionalSlot-55a86124.js +0 -27
  721. package/dist/createConnection-37afc89c.js +0 -299
  722. package/dist/dataUtils-efd5edf8.js +0 -1421
  723. package/dist/deduplicate-be0453c1.js +0 -89
  724. package/dist/defaults-3495cefd.js +0 -31
  725. package/dist/deleteForwardEdits-8ffa4b4e.js +0 -13
  726. package/dist/diffUtils-cccaeaa2.js +0 -90
  727. package/dist/drapedUtils-dfe3325a.js +0 -75
  728. package/dist/earcut-1a1bdd2c.js +0 -292
  729. package/dist/edgeProcessing-b0f5f4f0.js +0 -252
  730. package/dist/editingSupport-93603f8d.js +0 -203
  731. package/dist/editsZScale-8a2a7226.js +0 -37
  732. package/dist/elevationInfoUtils-96b1ac38.js +0 -126
  733. package/dist/executeForIds-48f5ccd3.js +0 -14
  734. package/dist/executeForTopCount-6ba38c5f.js +0 -17
  735. package/dist/executeForTopExtents-570aeb4a.js +0 -17
  736. package/dist/executeForTopIds-066c5e05.js +0 -17
  737. package/dist/executeQueryJSON-f5d65f6d.js +0 -15
  738. package/dist/executeQueryPBF-4ff20838.js +0 -152
  739. package/dist/executeRelationshipQuery-60c2686f.js +0 -53
  740. package/dist/executeTopFeaturesQuery-029eb564.js +0 -18
  741. package/dist/featureConversionUtils-8635d4bd.js +0 -479
  742. package/dist/featureLayerUtils-883379f8.js +0 -250
  743. package/dist/featureLayerUtils-89be3008.js +0 -142
  744. package/dist/featureSetUtils-3ba52dc3.js +0 -2530
  745. package/dist/featuresetbase-360521bb.js +0 -707
  746. package/dist/featuresetgeom-1c40fbf0.js +0 -99
  747. package/dist/featuresetstats-8b7ee0fc.js +0 -81
  748. package/dist/featuresetstring-502232ab.js +0 -95
  749. package/dist/fetchService-81224f29.js +0 -33
  750. package/dist/fieldProperties-1d23cc31.js +0 -33
  751. package/dist/floatRGBA-8dd8f77f.js +0 -20
  752. package/dist/form-81637afc.js +0 -138
  753. package/dist/geohashUtils-7a5a8250.js +0 -85
  754. package/dist/geojson-b271f3fc.js +0 -208
  755. package/dist/geomasync-4182a04e.js +0 -567
  756. package/dist/geometryEngine-170fd2fc.js +0 -192
  757. package/dist/geometryEngineAsync-ff5386c8.js +0 -217
  758. package/dist/geometryEngineBase-292b6d6f.js +0 -18463
  759. package/dist/geometryEngineJSON-15d3dac3.js +0 -46
  760. package/dist/geometryEngineJSON-c8044348.js +0 -171
  761. package/dist/geometryEngineWorker-19511bd8.js +0 -11
  762. package/dist/geometryServiceUtils-a348e7af.js +0 -28
  763. package/dist/georeference-72e12165.js +0 -291
  764. package/dist/gif-48b9a7df.js +0 -323
  765. package/dist/gltfexport-45261c80.js +0 -705
  766. package/dist/groupLayerUtils-f400995e.js +0 -39
  767. package/dist/heatmapUtils-81245e4b.js +0 -45
  768. package/dist/highlightReasons-23d6c956.js +0 -19
  769. package/dist/hydrated-e88a116e.js +0 -40
  770. package/dist/i3s-8b6deab9.js +0 -809
  771. package/dist/icon-422742c4.js +0 -127
  772. package/dist/imageBitmapUtils-12016538.js +0 -23
  773. package/dist/imageUtils-b38618d9.js +0 -89
  774. package/dist/imageUtils-c550215a.js +0 -69
  775. package/dist/imageryUtils-ac0e6068.js +0 -43
  776. package/dist/index-a450f76b.js +0 -45553
  777. package/dist/input-message-c606a089.js +0 -92
  778. package/dist/input2-8de5385e.js +0 -575
  779. package/dist/interactive-1bfa32d8.js +0 -80
  780. package/dist/jsonContext-70d89bc5.js +0 -15
  781. package/dist/jsonUtils-599f89fd.js +0 -86
  782. package/dist/jsonUtils-59cbda09.js +0 -476
  783. package/dist/jsonUtils-dbeb4b10.js +0 -59
  784. package/dist/kmlUtils-acfd0be5.js +0 -112
  785. package/dist/knowledgeGraphService-d0de6015.js +0 -739
  786. package/dist/knowledgegraph-1d25377f.js +0 -149
  787. package/dist/labelUtils-17e6e19c.js +0 -61
  788. package/dist/labelingInfo-7583b96a.js +0 -46
  789. package/dist/layersCreator-a7588c85.js +0 -151
  790. package/dist/layersLoader-503fa253.js +0 -197
  791. package/dist/lazyLayerLoader-14780aaf.js +0 -10
  792. package/dist/lclayout-b5aeb13b.js +0 -773
  793. package/dist/lengthUtils-15c44621.js +0 -5
  794. package/dist/lerc-wasm-57456401.js +0 -325
  795. package/dist/libtess-asm-08a80cbf.js +0 -3673
  796. package/dist/libtess-bcb513a0.js +0 -269
  797. package/dist/lineSegment-53f5f3d5.js +0 -76
  798. package/dist/loadGLTFMesh-561cd76a.js +0 -181
  799. package/dist/loadable-11e952cf.js +0 -24
  800. package/dist/loader-aafdf7c3.js +0 -79
  801. package/dist/lyr3DWorker-1876a7b0.js +0 -2108
  802. package/dist/mapViewDeps-c8de4ef9.js +0 -3052
  803. package/dist/mediaLayerUtils-236fdb9c.js +0 -35
  804. package/dist/meshFeatureSet-cf240f51.js +0 -126
  805. package/dist/meshVertexSpaceUtils-3647b869.js +0 -58
  806. package/dist/multidimensionalUtils-611e5cda.js +0 -290
  807. package/dist/normalizeUtilsSync-90304e5d.js +0 -181
  808. package/dist/number-d1e69c5f.js +0 -128
  809. package/dist/objectResourceUtils-237c5dab.js +0 -1455
  810. package/dist/observers-7ebedc04.js +0 -30
  811. package/dist/ogcFeatureUtils-f14754d3.js +0 -206
  812. package/dist/openCloseComponent-f7f72e31.js +0 -37
  813. package/dist/orientedBoundingBox-75e679bc.js +0 -447
  814. package/dist/parser-54b64f9a.js +0 -488
  815. package/dist/pbf-4b5a905e.js +0 -215
  816. package/dist/pbfQueryUtils-780daa49.js +0 -422
  817. package/dist/pe-wasm-7eeff6bc.js +0 -887
  818. package/dist/persistable-2afd8b64.js +0 -89
  819. package/dist/perspectiveUtils-78d50b08.js +0 -42
  820. package/dist/pieChart-f5575f34.js +0 -555
  821. package/dist/plane-ee1849b4.js +0 -160
  822. package/dist/popupUtils-5d826c7a.js +0 -50
  823. package/dist/popupUtils-8f261298.js +0 -22
  824. package/dist/portalItemUtils-07c1c29f.js +0 -57
  825. package/dist/portalLayers-199d1cb1.js +0 -312
  826. package/dist/portalUtils-f3c544f6.js +0 -7
  827. package/dist/programUtils-cd0377dc.js +0 -59
  828. package/dist/project-6d7a2904.js +0 -21
  829. package/dist/projectPointToVector-5800baf2.js +0 -14
  830. package/dist/projectVectorToVector-fdcb00cb.js +0 -13
  831. package/dist/quantityUtils-ab7a657b.js +0 -33
  832. package/dist/quantizationUtils-dde8a0c2.js +0 -68
  833. package/dist/quat-48b188ff.js +0 -104
  834. package/dist/query-581e35c7.js +0 -89
  835. package/dist/queryAttachments-191977a0.js +0 -39
  836. package/dist/queryEngineUtils-15b0748f.js +0 -21
  837. package/dist/queryTopFeatures-e6b8517a.js +0 -50
  838. package/dist/queryZScale-b9c83898.js +0 -12
  839. package/dist/rasterProjectionHelper-9e69c84d.js +0 -577
  840. package/dist/rasterUtils-76d2db45.js +0 -122
  841. package/dist/rasterizingUtils-730137a6.js +0 -46
  842. package/dist/request-3c238dd9.js +0 -46
  843. package/dist/requestImageUtils-6a0b710a.js +0 -8
  844. package/dist/resourceExtension-8e2ef6d4.js +0 -17
  845. package/dist/resourceUtils-49ebeb9f.js +0 -42
  846. package/dist/resourceUtils-b3c85655.js +0 -62
  847. package/dist/resourceUtils-b45c0ef9.js +0 -69
  848. package/dist/saveAPIKeyUtils-1146065e.js +0 -8
  849. package/dist/saveUtils-196e791e.js +0 -24
  850. package/dist/scaleUtils-7e908168.js +0 -23
  851. package/dist/scrim-56f6fa37.js +0 -114
  852. package/dist/serviceCapabilitiesUtils-266d7001.js +0 -64
  853. package/dist/sourceUtils-0d21eace.js +0 -71
  854. package/dist/sphere-8103ac36.js +0 -199
  855. package/dist/statsWorker-04df4d99.js +0 -37
  856. package/dist/streamLayerUtils-6b66a73a.js +0 -31
  857. package/dist/styleUtils-31e64784.js +0 -75
  858. package/dist/styleUtils-3951c967.js +0 -14
  859. package/dist/sublayerUtils-d60d357a.js +0 -37
  860. package/dist/substitute-77b7b80a.js +0 -52
  861. package/dist/symbolColorUtils-d97fe12d.js +0 -8
  862. package/dist/symbolLayerUtils-5f73a9b9.js +0 -31
  863. package/dist/symbologySnappingCandidates-bd284687.js +0 -221
  864. package/dist/t9n-2012740c.js +0 -349
  865. package/dist/testSVGPremultipliedAlpha-bb386a75.js +0 -94
  866. package/dist/timeSupport-2eb266be.js +0 -410
  867. package/dist/triangle-cac8dd7a.js +0 -98
  868. package/dist/unitConversionUtils-ad9151e0.js +0 -17
  869. package/dist/unitFormatUtils-3096fcbf.js +0 -40
  870. package/dist/uploadAssetErrors-b8ec890d.js +0 -70
  871. package/dist/uploadAssets-42d5e368.js +0 -330
  872. package/dist/utils-0ec1deff.js +0 -232
  873. package/dist/utils-25ac5b7c.js +0 -73
  874. package/dist/utils-3fc8cef0.js +0 -79
  875. package/dist/utils-59c058ba.js +0 -2746
  876. package/dist/utils-5a4ac69c.js +0 -419
  877. package/dist/utils-93ae7d8a.js +0 -34
  878. package/dist/utils-bba64d46.js +0 -91
  879. package/dist/utils-ce8900dc.js +0 -433
  880. package/dist/utils3-72b32be5.js +0 -75
  881. package/dist/vec3-0abe1464.js +0 -81
  882. package/dist/vec42-1641eab7.js +0 -125
  883. package/dist/versionUtils-6a805b25.js +0 -161
  884. package/dist/visualVariableUtils-7ae62b11.js +0 -267
  885. package/dist/webStyleSymbolUtils-038dca4c.js +0 -48
  886. package/dist/webglDeps-c2957fe0.js +0 -23
  887. package/dist/wfsUtils-a332128b.js +0 -343
  888. package/dist/workerHelper-2a48e790.js +0 -11
  889. package/dist/xyChart-131284db.js +0 -3335
@@ -1,2954 +0,0 @@
1
- import { d6 as ot } from "./index-a450f76b.js";
2
- import { B as ee, k as lt, G as ht, $ as ut, X as ct, Z as dt, u as bt, w as y, x as te, i as q, a as Ze, r as Z, z as ft, K as ie, b as Le, l as K, q as me, c as C, t as gt, e as mt, L as _e, N as re, O as pt, d as $, f as Te, g as _t, h as se, j as ze, T as je, m as yt, W as he, n as pe, s as vt, J as Ke, _ as Je, y as Ce, F as wt, o as Q, p as J, v as U, A as xt, C as H, E as Pt, D as E, H as ce, S as de, I as Fe, M as Ot, P as Ye, Q as kt, R as Mt, U as R, V as Ie, Y as St, a0 as jt, a1 as Et, a2 as Tt, a3 as X, a4 as be, a5 as Ct, a6 as He, a7 as Ee, a8 as Qe, a9 as Re, aa as Bt, ab as Dt, ac as et, ad as tt, ae as At, af as Lt, ag as zt, ah as Ft, ai as oe, aj as xe } from "./Theme-a0c472c9.js";
3
- import { u as We } from "./Tooltip-9ecc3c9d.js";
4
- import { s as Yt } from "./DefaultTheme-6f3c03ba.js";
5
- import "vue";
6
- class It {
7
- constructor() {
8
- Object.defineProperty(this, "_observer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_targets", { enumerable: !0, configurable: !0, writable: !0, value: [] }), this._observer = new ResizeObserver((e) => {
9
- y(e, (t) => {
10
- y(this._targets, (i) => {
11
- i.target === t.target && i.callback();
12
- });
13
- });
14
- });
15
- }
16
- addTarget(e, t) {
17
- this._observer.observe(e, { box: "border-box" }), this._targets.push({ target: e, callback: t });
18
- }
19
- removeTarget(e) {
20
- this._observer.unobserve(e), _e(this._targets, (t) => t.target !== e);
21
- }
22
- }
23
- class ye {
24
- constructor() {
25
- Object.defineProperty(this, "_timer", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "_targets", { enumerable: !0, configurable: !0, writable: !0, value: [] });
26
- }
27
- addTarget(e, t) {
28
- if (this._timer === null) {
29
- let r = null;
30
- const a = () => {
31
- const s = Date.now();
32
- (r === null || s > r + ye.delay) && (r = s, y(this._targets, (n) => {
33
- let h = n.target.getBoundingClientRect();
34
- h.width === n.size.width && h.height === n.size.height || (n.size = h, n.callback());
35
- })), this._targets.length === 0 ? this._timer = null : this._timer = requestAnimationFrame(a);
36
- };
37
- this._timer = requestAnimationFrame(a);
38
- }
39
- let i = { width: 0, height: 0, left: 0, right: 0, top: 0, bottom: 0, x: 0, y: 0 };
40
- this._targets.push({ target: e, callback: t, size: i });
41
- }
42
- removeTarget(e) {
43
- _e(this._targets, (t) => t.target !== e), this._targets.length === 0 && this._timer !== null && (cancelAnimationFrame(this._timer), this._timer = null);
44
- }
45
- }
46
- Object.defineProperty(ye, "delay", { enumerable: !0, configurable: !0, writable: !0, value: 200 });
47
- let Pe = null;
48
- function Ht() {
49
- return Pe === null && (Pe = typeof ResizeObserver < "u" ? new It() : new ye()), Pe;
50
- }
51
- class Rt {
52
- constructor(e, t) {
53
- Object.defineProperty(this, "_sensor", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_element", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_listener", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_disposed", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), this._sensor = Ht(), this._element = e, this._listener = Ke(t), this._sensor.addTarget(e, t);
54
- }
55
- isDisposed() {
56
- return this._disposed;
57
- }
58
- dispose() {
59
- this._disposed || (this._disposed = !0, this._sensor.removeTarget(this._element), this._listener.dispose());
60
- }
61
- get sensor() {
62
- return this._sensor;
63
- }
64
- }
65
- class ge extends ee {
66
- }
67
- Object.defineProperty(ge, "className", { enumerable: !0, configurable: !0, writable: !0, value: "InterfaceColors" }), Object.defineProperty(ge, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: ee.classNames.concat([ge.className]) });
68
- class Wt extends ee {
69
- _setDefaults() {
70
- this._setDefault("negativeBase", 0), this._setDefault("numberFormat", "#,###.#####"), this._setDefault("smallNumberThreshold", 1);
71
- const e = "_big_number_suffix_", t = "_small_number_suffix_", i = "_byte_suffix_";
72
- this._setDefault("bigNumberPrefixes", [{ number: 1e3, suffix: this._t(e + "3") }, { number: 1e6, suffix: this._t(e + "6") }, { number: 1e9, suffix: this._t(e + "9") }, { number: 1e12, suffix: this._t(e + "12") }, { number: 1e15, suffix: this._t(e + "15") }, { number: 1e18, suffix: this._t(e + "18") }, { number: 1e21, suffix: this._t(e + "21") }, { number: 1e24, suffix: this._t(e + "24") }]), this._setDefault("smallNumberPrefixes", [{ number: 1e-24, suffix: this._t(t + "24") }, { number: 1e-21, suffix: this._t(t + "21") }, { number: 1e-18, suffix: this._t(t + "18") }, { number: 1e-15, suffix: this._t(t + "15") }, { number: 1e-12, suffix: this._t(t + "12") }, { number: 1e-9, suffix: this._t(t + "9") }, { number: 1e-6, suffix: this._t(t + "6") }, { number: 1e-3, suffix: this._t(t + "3") }]), this._setDefault("bytePrefixes", [{ number: 1, suffix: this._t(i + "B") }, { number: 1024, suffix: this._t(i + "KB") }, { number: 1048576, suffix: this._t(i + "MB") }, { number: 1073741824, suffix: this._t(i + "GB") }, { number: 1099511627776, suffix: this._t(i + "TB") }, { number: 1125899906842624, suffix: this._t(i + "PB") }]), super._setDefaults();
73
- }
74
- _beforeChanged() {
75
- super._beforeChanged();
76
- }
77
- format(e, t, i) {
78
- let r;
79
- (t == null || pe(t) && t.toLowerCase() === "number") && (t = this.get("numberFormat", ""));
80
- let a = Number(e);
81
- if (Je(t))
82
- try {
83
- return this.get("intlLocales") ? new Intl.NumberFormat(this.get("intlLocales"), t).format(a) : new Intl.NumberFormat(void 0, t).format(a);
84
- } catch {
85
- return "Invalid";
86
- }
87
- else {
88
- t = Ce(t);
89
- let s, n = this.parseFormat(t, this._root.language);
90
- s = a > this.get("negativeBase") ? n.positive : a < this.get("negativeBase") ? n.negative : n.zero, i == null || s.mod || (s = wt(s), s.decimals.active = a == 0 ? 0 : i), r = s.template.split(Q).join(this.applyFormat(a, s));
91
- }
92
- return this.get("forceLTR") === !0 && (r = "‎" + r), r;
93
- }
94
- parseFormat(e, t) {
95
- const i = t.translateEmpty("_thousandSeparator"), r = t.translateEmpty("_decimalSeparator");
96
- let a = { positive: { thousands: { active: -1, passive: -1, interval: -1, separator: i }, decimals: { active: -1, passive: -1, separator: r }, template: "", source: "", parsed: !1 }, negative: { thousands: { active: -1, passive: -1, interval: -1, separator: i }, decimals: { active: -1, passive: -1, separator: r }, template: "", source: "", parsed: !1 }, zero: { thousands: { active: -1, passive: -1, interval: -1, separator: i }, decimals: { active: -1, passive: -1, separator: r }, template: "", source: "", parsed: !1 } }, s = (e = e.replace("||", J)).split("|");
97
- return a.positive.source = s[0], s[2] === void 0 ? a.zero = a.positive : a.zero.source = s[2], s[1] === void 0 ? a.negative = a.positive : a.negative.source = s[1], he(a, (n, h) => {
98
- if (h.parsed)
99
- return;
100
- let c = h.source;
101
- c.toLowerCase() === "number" && (c = this.get("numberFormat", "#,###.#####"));
102
- let g = U.chunk(c, !0);
103
- for (let u = 0; u < g.length; u++) {
104
- let b = g[u];
105
- if (b.text = b.text.replace(J, "|"), b.type === "value") {
106
- let o = b.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/);
107
- if (o)
108
- if (o === null || o[0] === "")
109
- h.template += b.text;
110
- else {
111
- let p = o[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/);
112
- p && (h.mod = p[0].toLowerCase(), h.modSpacing = !!o[0].match(/[ ]{1}[abespABESP%‰!]{1}$/));
113
- let l = o[0].split(".");
114
- if (l[0] !== "") {
115
- h.thousands.active = (l[0].match(/0/g) || []).length, h.thousands.passive = (l[0].match(/\#/g) || []).length + h.thousands.active;
116
- let m = l[0].split(",");
117
- m.length === 1 || (h.thousands.interval = (m.pop() || "").length, h.thousands.interval === 0 && (h.thousands.interval = -1));
118
- }
119
- l[1] === void 0 || (h.decimals.active = (l[1].match(/0/g) || []).length, h.decimals.passive = (l[1].match(/\#/g) || []).length + h.decimals.active), h.template += b.text.split(o[0]).join(Q);
120
- }
121
- } else
122
- h.template += b.text;
123
- }
124
- h.parsed = !0;
125
- }), a;
126
- }
127
- applyFormat(e, t) {
128
- let i = e < 0;
129
- e = Math.abs(e);
130
- let r = "", a = "", s = t.mod ? t.mod.split("") : [];
131
- if (s.indexOf("b") !== -1) {
132
- let u = this.applyPrefix(e, this.get("bytePrefixes"), s.indexOf("!") !== -1);
133
- e = u[0], r = u[1], a = u[2], t.modSpacing && (a = " " + a);
134
- } else if (s.indexOf("a") !== -1) {
135
- let u = this.applyPrefix(e, e < this.get("smallNumberThreshold") ? this.get("smallNumberPrefixes") : this.get("bigNumberPrefixes"), s.indexOf("!") !== -1);
136
- e = u[0], r = u[1], a = u[2], t.modSpacing && (a = " " + a);
137
- } else if (s.indexOf("p") !== -1) {
138
- let u = Math.min(e.toString().length + 2, 21);
139
- e = parseFloat(e.toPrecision(u)), r = this._root.language.translate("_percentPrefix"), a = this._root.language.translate("_percentSuffix"), r == "" && a == "" && (a = "%");
140
- } else if (s.indexOf("%") !== -1) {
141
- let u = Math.min(e.toString().length + 2, 21);
142
- e *= 100, e = parseFloat(e.toPrecision(u)), a = "%";
143
- } else if (s.indexOf("‰") !== -1) {
144
- let u = Math.min(e.toString().length + 3, 21);
145
- e *= 1e3, e = parseFloat(e.toPrecision(u)), a = "‰";
146
- }
147
- if (s.indexOf("e") !== -1) {
148
- let u;
149
- u = t.decimals.passive >= 0 ? e.toExponential(t.decimals.passive).split("e") : e.toExponential().split("e"), e = Number(u[0]), a = "e" + u[1], t.modSpacing && (a = " " + a);
150
- } else if (t.decimals.passive === 0)
151
- e = Math.round(e);
152
- else if (t.decimals.passive > 0) {
153
- let u = Math.pow(10, t.decimals.passive);
154
- e = Math.round(e * u) / u;
155
- }
156
- let n = "", h = xt(e).split("."), c = h[0];
157
- if (c.length < t.thousands.active && (c = Array(t.thousands.active - c.length + 1).join("0") + c), t.thousands.interval > 0) {
158
- let u = [], b = c.split("").reverse().join("");
159
- for (let o = 0, p = c.length; o <= p; o += t.thousands.interval) {
160
- let l = b.substr(o, t.thousands.interval).split("").reverse().join("");
161
- l !== "" && u.unshift(l);
162
- }
163
- c = u.join(t.thousands.separator);
164
- }
165
- n += c, h.length === 1 && h.push("");
166
- let g = h[1];
167
- return g.length < t.decimals.active && (g += Array(t.decimals.active - g.length + 1).join("0")), g !== "" && (n += t.decimals.separator + g), n === "" && (n = "0"), e !== 0 && i && s.indexOf("s") === -1 && (n = "-" + n), r && (n = r + n), a && (n += a), n;
168
- }
169
- applyPrefix(e, t, i = !1) {
170
- let r = e, a = "", s = "", n = !1, h = 1;
171
- for (let c = 0, g = t.length; c < g; c++)
172
- t[c].number <= e && (t[c].number === 0 ? r = 0 : (r = e / t[c].number, h = t[c].number), a = t[c].prefix, s = t[c].suffix, n = !0);
173
- return !n && i && t.length && e != 0 && (r = e / t[0].number, a = t[0].prefix, s = t[0].suffix, n = !0), n && (r = parseFloat(r.toPrecision(Math.min(h.toString().length + Math.floor(r).toString().replace(/[^0-9]*/g, "").length, 21)))), [r, a, s];
174
- }
175
- escape(e) {
176
- return e.replace("||", J);
177
- }
178
- unescape(e) {
179
- return e.replace(J, "|");
180
- }
181
- }
182
- function it(d, e) {
183
- let t = 0, i = 0, r = 1, a = 0, s = 0, n = 0, h = 0, c = 0;
184
- return d.formatToParts(e).forEach((g) => {
185
- switch (g.type) {
186
- case "year":
187
- t = +g.value;
188
- break;
189
- case "month":
190
- i = +g.value - 1;
191
- break;
192
- case "day":
193
- r = +g.value;
194
- break;
195
- case "hour":
196
- a = +g.value;
197
- break;
198
- case "minute":
199
- s = +g.value;
200
- break;
201
- case "second":
202
- n = +g.value;
203
- break;
204
- case "fractionalSecond":
205
- h = +g.value;
206
- break;
207
- case "weekday":
208
- switch (g.value) {
209
- case "Sun":
210
- c = 0;
211
- break;
212
- case "Mon":
213
- c = 1;
214
- break;
215
- case "Tue":
216
- c = 2;
217
- break;
218
- case "Wed":
219
- c = 3;
220
- break;
221
- case "Thu":
222
- c = 4;
223
- break;
224
- case "Fri":
225
- c = 5;
226
- break;
227
- case "Sat":
228
- c = 6;
229
- }
230
- }
231
- }), a === 24 && (a = 0), { year: t, month: i, day: r, hour: a, minute: s, second: n, millisecond: h, weekday: c };
232
- }
233
- function Ue(d, e) {
234
- const { year: t, month: i, day: r, hour: a, minute: s, second: n, millisecond: h } = it(d, e);
235
- return Date.UTC(t, i, r, a, s, n, h);
236
- }
237
- class Ut {
238
- constructor(e, t) {
239
- if (Object.defineProperty(this, "_utc", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_dtf", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "name", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), !t)
240
- throw new Error("You cannot use `new Class()`, instead use `Class.new()`");
241
- this.name = e, this._utc = new Intl.DateTimeFormat("UTC", { hour12: !1, timeZone: "UTC", year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", weekday: "short", fractionalSecondDigits: 3 }), this._dtf = new Intl.DateTimeFormat("UTC", { hour12: !1, timeZone: e, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", weekday: "short", fractionalSecondDigits: 3 });
242
- }
243
- static new(e) {
244
- return new this(e, !0);
245
- }
246
- convertLocal(e) {
247
- const t = this.offsetUTC(e), i = e.getTimezoneOffset(), r = new Date(e);
248
- r.setUTCMinutes(r.getUTCMinutes() - (t - i));
249
- const a = r.getTimezoneOffset();
250
- return i != a && r.setUTCMinutes(r.getUTCMinutes() + a - i), r;
251
- }
252
- offsetUTC(e) {
253
- return (Ue(this._utc, e) - Ue(this._dtf, e)) / 6e4;
254
- }
255
- parseDate(e) {
256
- return it(this._dtf, e);
257
- }
258
- }
259
- class Vt extends ee {
260
- _setDefaults() {
261
- this._setDefault("capitalize", !0), this._setDefault("dateFormat", "yyyy-MM-dd"), super._setDefaults();
262
- }
263
- _beforeChanged() {
264
- super._beforeChanged();
265
- }
266
- format(e, t) {
267
- let i;
268
- t !== void 0 && t !== "" || (t = this.get("dateFormat", "yyyy-MM-dd"));
269
- let r = e;
270
- if (Je(t))
271
- try {
272
- const n = this.get("intlLocales");
273
- return n ? new Intl.DateTimeFormat(n, t).format(r) : new Intl.DateTimeFormat(void 0, t).format(r);
274
- } catch {
275
- return "Invalid";
276
- }
277
- let a = this.parseFormat(t);
278
- const s = this._root.timezone;
279
- return s && !this._root.utc && (r = s.convertLocal(r)), H(r.getTime()) ? (i = this.applyFormat(r, a), this.get("capitalize") && (i = i.replace(/^.{1}/, i.substr(0, 1).toUpperCase())), i) : "Invalid date";
280
- }
281
- applyFormat(e, t) {
282
- let i, r, a, s, n, h, c, g, u = t.template, b = e.getTime();
283
- this._root.utc ? (i = e.getUTCFullYear(), r = e.getUTCMonth(), a = e.getUTCDay(), s = e.getUTCDate(), n = e.getUTCHours(), h = e.getUTCMinutes(), c = e.getUTCSeconds(), g = e.getUTCMilliseconds()) : (i = e.getFullYear(), r = e.getMonth(), a = e.getDay(), s = e.getDate(), n = e.getHours(), h = e.getMinutes(), c = e.getSeconds(), g = e.getMilliseconds());
284
- for (let o = 0, p = t.parts.length; o < p; o++) {
285
- let l = "";
286
- switch (t.parts[o]) {
287
- case "G":
288
- l = this._t(i < 0 ? "_era_bc" : "_era_ad");
289
- break;
290
- case "yyyy":
291
- l = Math.abs(i).toString(), i < 0 && (l += this._t("_era_bc"));
292
- break;
293
- case "yyy":
294
- case "yy":
295
- case "y":
296
- l = Math.abs(i).toString().substr(-t.parts[o].length), i < 0 && (l += this._t("_era_bc"));
297
- break;
298
- case "YYYY":
299
- case "YYY":
300
- case "YY":
301
- case "Y":
302
- let m = kt(e, this._root.utc);
303
- l = t.parts[o] == "YYYY" ? Math.abs(m).toString() : Math.abs(m).toString().substr(-t.parts[o].length), m < 0 && (l += this._t("_era_bc"));
304
- break;
305
- case "u":
306
- case "F":
307
- case "g":
308
- break;
309
- case "q":
310
- l = "" + Math.ceil((e.getMonth() + 1) / 3);
311
- break;
312
- case "MMMMM":
313
- l = this._t(this._getMonth(r)).substr(0, 1);
314
- break;
315
- case "MMMM":
316
- l = this._t(this._getMonth(r));
317
- break;
318
- case "MMM":
319
- l = this._t(this._getShortMonth(r));
320
- break;
321
- case "MM":
322
- l = E(r + 1, 2, "0");
323
- break;
324
- case "M":
325
- l = (r + 1).toString();
326
- break;
327
- case "ww":
328
- l = E(Ye(e, this._root.utc), 2, "0");
329
- break;
330
- case "w":
331
- l = Ye(e, this._root.utc).toString();
332
- break;
333
- case "W":
334
- l = Ot(e, this._root.utc).toString();
335
- break;
336
- case "dd":
337
- l = E(s, 2, "0");
338
- break;
339
- case "d":
340
- l = s.toString();
341
- break;
342
- case "DD":
343
- case "DDD":
344
- l = E(Fe(e, this._root.utc).toString(), t.parts[o].length, "0");
345
- break;
346
- case "D":
347
- l = Fe(e, this._root.utc).toString();
348
- break;
349
- case "t":
350
- l = this._root.language.translateFunc("_dateOrd").call(this, s);
351
- break;
352
- case "E":
353
- l = (a || 7).toString();
354
- break;
355
- case "EE":
356
- l = E((a || 7).toString(), 2, "0");
357
- break;
358
- case "EEE":
359
- case "eee":
360
- l = this._t(this._getShortWeekday(a));
361
- break;
362
- case "EEEE":
363
- case "eeee":
364
- l = this._t(this._getWeekday(a));
365
- break;
366
- case "EEEEE":
367
- case "eeeee":
368
- l = this._t(this._getShortWeekday(a)).substr(0, 1);
369
- break;
370
- case "e":
371
- case "ee":
372
- l = (a - (this._root.locale.firstDayOfWeek || 1) + 1).toString(), t.parts[o] == "ee" && (l = E(l, 2, "0"));
373
- break;
374
- case "a":
375
- l = n >= 12 ? this._t("PM") : this._t("AM");
376
- break;
377
- case "aa":
378
- l = n >= 12 ? this._t("P.M.") : this._t("A.M.");
379
- break;
380
- case "aaa":
381
- l = n >= 12 ? this._t("P") : this._t("A");
382
- break;
383
- case "h":
384
- l = de(n).toString();
385
- break;
386
- case "hh":
387
- l = E(de(n), 2, "0");
388
- break;
389
- case "H":
390
- l = n.toString();
391
- break;
392
- case "HH":
393
- l = E(n, 2, "0");
394
- break;
395
- case "K":
396
- l = de(n, 0).toString();
397
- break;
398
- case "KK":
399
- l = E(de(n, 0), 2, "0");
400
- break;
401
- case "k":
402
- l = (n + 1).toString();
403
- break;
404
- case "kk":
405
- l = E(n + 1, 2, "0");
406
- break;
407
- case "m":
408
- l = h.toString();
409
- break;
410
- case "mm":
411
- l = E(h, 2, "0");
412
- break;
413
- case "s":
414
- l = c.toString();
415
- break;
416
- case "ss":
417
- l = E(c, 2, "0");
418
- break;
419
- case "S":
420
- case "SS":
421
- case "SSS":
422
- l = Math.round(g / 1e3 * Math.pow(10, t.parts[o].length)).toString();
423
- break;
424
- case "x":
425
- l = b.toString();
426
- break;
427
- case "n":
428
- case "nn":
429
- case "nnn":
430
- l = E(g, t.parts[o].length, "0");
431
- break;
432
- case "z":
433
- l = ce(e, !1, !1, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0).replace(/[+-]+[0-9]+$/, "");
434
- break;
435
- case "zz":
436
- l = ce(e, !0, !1, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0);
437
- break;
438
- case "zzz":
439
- l = ce(e, !1, !0, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0).replace(/[+-]+[0-9]+$/, "");
440
- break;
441
- case "zzzz":
442
- l = ce(e, !0, !0, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0);
443
- break;
444
- case "Z":
445
- case "ZZ":
446
- let _ = this._root.utc ? "UTC" : this._root.timezone;
447
- _ instanceof Ut && (_ = _.name);
448
- const w = _ ? Pt(_) : e.getTimezoneOffset();
449
- let v = Math.abs(w) / 60, f = Math.floor(v), x = 60 * v - 60 * f;
450
- this._root.utc && (f = 0, x = 0), t.parts[o] == "Z" ? (l = "GMT", l += w > 0 ? "-" : "+", l += E(f, 2) + ":" + E(x, 2)) : (l = w > 0 ? "-" : "+", l += E(f, 2) + E(x, 2));
451
- break;
452
- case "i":
453
- l = e.toISOString();
454
- break;
455
- case "I":
456
- l = e.toUTCString();
457
- }
458
- u = u.replace(Q, l);
459
- }
460
- return u;
461
- }
462
- parseFormat(e) {
463
- let t = { template: "", parts: [] }, i = U.chunk(e, !0);
464
- for (let r = 0; r < i.length; r++) {
465
- let a = i[r];
466
- if (a.type === "value") {
467
- if (a.text.match(/^date$/i)) {
468
- let n = this.get("dateFormat", "yyyy-MM-dd");
469
- pe(n) || (n = "yyyy-MM-dd"), a.text = n;
470
- }
471
- let s = a.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);
472
- if (s)
473
- for (let n = 0; n < s.length; n++)
474
- t.parts.push(s[n]), a.text = a.text.replace(s[n], Q);
475
- }
476
- t.template += a.text;
477
- }
478
- return t;
479
- }
480
- _months() {
481
- return ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
482
- }
483
- _getMonth(e) {
484
- return this._months()[e];
485
- }
486
- _shortMonths() {
487
- return ["Jan", "Feb", "Mar", "Apr", "May(short)", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
488
- }
489
- _getShortMonth(e) {
490
- return this._shortMonths()[e];
491
- }
492
- _weekdays() {
493
- return ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
494
- }
495
- _getWeekday(e) {
496
- return this._weekdays()[e];
497
- }
498
- _shortWeekdays() {
499
- return ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
500
- }
501
- _getShortWeekday(e) {
502
- return this._shortWeekdays()[e];
503
- }
504
- parse(e, t) {
505
- if (e instanceof Date)
506
- return e;
507
- if (H(e))
508
- return new Date(e);
509
- if (t == "x")
510
- return new Date(parseInt(e));
511
- let i;
512
- pe(e) || (e = e.toString());
513
- let r = "";
514
- t = (t = Ce(t)).substr(0, e.length);
515
- let a = this.parseFormat(t), s = { year: -1, year3: -1, year2: -1, year1: -1, month: -1, monthShort: -1, monthLong: -1, weekdayShort: -1, weekdayLong: -1, day: -1, yearDay: -1, week: -1, hourBase0: -1, hour12Base0: -1, hourBase1: -1, hour12Base1: -1, minute: -1, second: -1, millisecond: -1, millisecondDigits: -1, am: -1, zone: -1, timestamp: -1, iso: -1 }, n = { year: 1970, month: 0, day: 1, hour: 0, minute: 0, second: 0, millisecond: 0, timestamp: null, offset: 0, utc: this._root.utc }, h = 0, c = 0;
516
- for (let b = 0; b < a.parts.length; b++) {
517
- switch (c = b + h + 1, a.parts[b]) {
518
- case "yyyy":
519
- case "YYYY":
520
- r += "([0-9]{4})", s.year = c;
521
- break;
522
- case "yyy":
523
- case "YYY":
524
- r += "([0-9]{3})", s.year3 = c;
525
- break;
526
- case "yy":
527
- case "YY":
528
- r += "([0-9]{2})", s.year2 = c;
529
- break;
530
- case "y":
531
- case "Y":
532
- r += "([0-9]{1})", s.year1 = c;
533
- break;
534
- case "MMMM":
535
- r += "(" + this.getStringList(this._months()).join("|") + ")", s.monthLong = c;
536
- break;
537
- case "MMM":
538
- r += "(" + this.getStringList(this._shortMonths()).join("|") + ")", s.monthShort = c;
539
- break;
540
- case "MM":
541
- case "M":
542
- r += "([0-9]{2}|[0-9]{1})", s.month = c;
543
- break;
544
- case "ww":
545
- case "w":
546
- r += "([0-9]{2}|[0-9]{1})", s.week = c;
547
- break;
548
- case "dd":
549
- case "d":
550
- r += "([0-9]{2}|[0-9]{1})", s.day = c;
551
- break;
552
- case "DDD":
553
- case "DD":
554
- case "D":
555
- r += "([0-9]{3}|[0-9]{2}|[0-9]{1})", s.yearDay = c;
556
- break;
557
- case "dddd":
558
- r += "(" + this.getStringList(this._weekdays()).join("|") + ")", s.weekdayLong = c;
559
- break;
560
- case "ddd":
561
- r += "(" + this.getStringList(this._shortWeekdays()).join("|") + ")", s.weekdayShort = c;
562
- break;
563
- case "aaa":
564
- case "aa":
565
- case "a":
566
- r += "(" + this.getStringList(["AM", "PM", "A.M.", "P.M.", "A", "P"]).join("|") + ")", s.am = c;
567
- break;
568
- case "hh":
569
- case "h":
570
- r += "([0-9]{2}|[0-9]{1})", s.hour12Base1 = c;
571
- break;
572
- case "HH":
573
- case "H":
574
- r += "([0-9]{2}|[0-9]{1})", s.hourBase0 = c;
575
- break;
576
- case "KK":
577
- case "K":
578
- r += "([0-9]{2}|[0-9]{1})", s.hour12Base0 = c;
579
- break;
580
- case "kk":
581
- case "k":
582
- r += "([0-9]{2}|[0-9]{1})", s.hourBase1 = c;
583
- break;
584
- case "mm":
585
- case "m":
586
- r += "([0-9]{2}|[0-9]{1})", s.minute = c;
587
- break;
588
- case "ss":
589
- case "s":
590
- r += "([0-9]{2}|[0-9]{1})", s.second = c;
591
- break;
592
- case "SSS":
593
- case "SS":
594
- case "S":
595
- r += "([0-9]{3}|[0-9]{2}|[0-9]{1})", s.millisecond = c, s.millisecondDigits = a.parts[b].length;
596
- break;
597
- case "nnn":
598
- case "nn":
599
- case "n":
600
- r += "([0-9]{3}|[0-9]{2}|[0-9]{1})", s.millisecond = c;
601
- break;
602
- case "x":
603
- r += "([0-9]{1,})", s.timestamp = c;
604
- break;
605
- case "Z":
606
- r += "GMT([-+]+[0-9]{2}:[0-9]{2})", s.zone = c;
607
- break;
608
- case "ZZ":
609
- r += "([\\-+]+[0-9]{2}[0-9]{2})", s.zone = c;
610
- break;
611
- case "i":
612
- r += "([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2})\\.?([0-9]{0,3})([zZ]|[+\\-][0-9]{2}:?[0-9]{2}|$)", s.iso = c, h += 7;
613
- break;
614
- case "G":
615
- case "YYYY":
616
- case "YYY":
617
- case "YY":
618
- case "Y":
619
- case "MMMMM":
620
- case "W":
621
- case "EEEEE":
622
- case "EEEE":
623
- case "EEE":
624
- case "EE":
625
- case "E":
626
- case "eeeee":
627
- case "eeee":
628
- case "eee":
629
- case "ee":
630
- case "e":
631
- case "zzzz":
632
- case "zzz":
633
- case "zz":
634
- case "z":
635
- case "t":
636
- h--;
637
- }
638
- r += "[^0-9]*";
639
- }
640
- let g = new RegExp(r), u = e.match(g);
641
- if (u) {
642
- if (s.year > -1 && (n.year = parseInt(u[s.year])), s.year3 > -1) {
643
- let b = parseInt(u[s.year3]);
644
- b += 1e3, n.year = b;
645
- }
646
- if (s.year2 > -1) {
647
- let b = parseInt(u[s.year2]);
648
- b += b > 50 ? 1e3 : 2e3, n.year = b;
649
- }
650
- if (s.year1 > -1) {
651
- let b = parseInt(u[s.year1]);
652
- b = 10 * Math.floor((/* @__PURE__ */ new Date()).getFullYear() / 10) + b, n.year = b;
653
- }
654
- if (s.monthLong > -1 && (n.month = this.resolveMonth(u[s.monthLong])), s.monthShort > -1 && (n.month = this.resolveShortMonth(u[s.monthShort])), s.month > -1 && (n.month = parseInt(u[s.month]) - 1), s.week > -1 && s.day === -1 && (n.month = 0, n.day = Mt(parseInt(u[s.week]), n.year, 1, this._root.utc)), s.day > -1 && (n.day = parseInt(u[s.day])), s.yearDay > -1 && (n.month = 0, n.day = parseInt(u[s.yearDay])), s.hourBase0 > -1 && (n.hour = parseInt(u[s.hourBase0])), s.hourBase1 > -1 && (n.hour = parseInt(u[s.hourBase1]) - 1), s.hour12Base0 > -1) {
655
- let b = parseInt(u[s.hour12Base0]);
656
- b == 11 && (b = 0), s.am > -1 && !this.isAm(u[s.am]) && (b += 12), n.hour = b;
657
- }
658
- if (s.hour12Base1 > -1) {
659
- let b = parseInt(u[s.hour12Base1]);
660
- b == 12 && (b = 0), s.am > -1 && !this.isAm(u[s.am]) && (b += 12), n.hour = b;
661
- }
662
- if (s.minute > -1 && (n.minute = parseInt(u[s.minute])), s.second > -1 && (n.second = parseInt(u[s.second])), s.millisecond > -1) {
663
- let b = parseInt(u[s.millisecond]);
664
- s.millisecondDigits == 2 ? b *= 10 : s.millisecondDigits == 1 && (b *= 100), n.millisecond = b;
665
- }
666
- if (s.timestamp > -1) {
667
- n.timestamp = parseInt(u[s.timestamp]);
668
- const b = new Date(n.timestamp);
669
- n.year = b.getUTCFullYear(), n.month = b.getUTCMonth(), n.day = b.getUTCDate(), n.hour = b.getUTCHours(), n.minute = b.getUTCMinutes(), n.second = b.getUTCSeconds(), n.millisecond = b.getUTCMilliseconds();
670
- }
671
- s.zone > -1 && (n.offset = this.resolveTimezoneOffset(new Date(n.year, n.month, n.day), u[s.zone])), s.iso > -1 && (n.year = R(u[s.iso + 0]), n.month = R(u[s.iso + 1]) - 1, n.day = R(u[s.iso + 2]), n.hour = R(u[s.iso + 3]), n.minute = R(u[s.iso + 4]), n.second = R(u[s.iso + 5]), n.millisecond = R(u[s.iso + 6]), u[s.iso + 7] == "Z" || u[s.iso + 7] == "z" ? n.utc = !0 : u[s.iso + 7] != "" && (n.offset = this.resolveTimezoneOffset(new Date(n.year, n.month, n.day), u[s.iso + 7]))), i = n.utc ? new Date(Date.UTC(n.year, n.month, n.day, n.hour, n.minute, n.second, n.millisecond)) : new Date(n.year, n.month, n.day, n.hour, n.minute + n.offset, n.second, n.millisecond);
672
- } else
673
- i = new Date(e);
674
- return i;
675
- }
676
- resolveTimezoneOffset(e, t) {
677
- if (t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)) {
678
- let i = t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/), r = i[1], a = i[2], s = i[3], n = 60 * parseInt(a) + parseInt(s);
679
- return r == "+" && (n *= -1), n - (e || /* @__PURE__ */ new Date()).getTimezoneOffset();
680
- }
681
- return 0;
682
- }
683
- resolveMonth(e) {
684
- let t = this._months().indexOf(e);
685
- return t > -1 || !this._root.language.isDefault() && (t = this._root.language.translateAll(this._months()).indexOf(e), t > -1) ? t : 0;
686
- }
687
- resolveShortMonth(e) {
688
- let t = this._shortMonths().indexOf(e);
689
- return t > -1 ? t : (t = this._months().indexOf(e), t > -1 || this._root.language && !this._root.language.isDefault() && (t = this._root.language.translateAll(this._shortMonths()).indexOf(e), t > -1) ? t : 0);
690
- }
691
- isAm(e) {
692
- return this.getStringList(["AM", "A.M.", "A"]).indexOf(e.toUpperCase()) > -1;
693
- }
694
- getStringList(e) {
695
- let t = [];
696
- for (let i = 0; i < e.length; i++)
697
- this._root.language ? t.push(Ie(this._t(e[i]))) : t.push(Ie(e[i]));
698
- return t;
699
- }
700
- }
701
- class $t extends ee {
702
- constructor() {
703
- super(...arguments), Object.defineProperty(this, "_unitAliases", { enumerable: !0, configurable: !0, writable: !0, value: { Y: "y", D: "d", H: "h", K: "h", k: "h", n: "S" } });
704
- }
705
- _setDefaults() {
706
- const e = "_duration_millisecond", t = "_duration_second", i = "_duration_minute", r = "_duration_hour", a = "_duration_day", s = "_duration_week", n = "_duration_month", h = "_duration_year", c = "_second", g = "_minute", u = "_hour", b = "_day", o = "_week", p = "_week", l = "_year";
707
- this._setDefault("negativeBase", 0), this._setDefault("baseUnit", "second"), this._setDefault("durationFormats", { millisecond: { millisecond: this._t(e), second: this._t(e + c), minute: this._t(e + g), hour: this._t(e + u), day: this._t(e + b), week: this._t(e + o), month: this._t(e + p), year: this._t(e + l) }, second: { second: this._t(t), minute: this._t(t + g), hour: this._t(t + u), day: this._t(t + b), week: this._t(t + o), month: this._t(t + p), year: this._t(t + l) }, minute: { minute: this._t(i), hour: this._t(i + u), day: this._t(i + b), week: this._t(i + o), month: this._t(i + p), year: this._t(i + l) }, hour: { hour: this._t(r), day: this._t(r + b), week: this._t(r + o), month: this._t(r + p), year: this._t(r + l) }, day: { day: this._t(a), week: this._t(a + o), month: this._t(a + p), year: this._t(a + l) }, week: { week: this._t(s), month: this._t(s + p), year: this._t(s + l) }, month: { month: this._t(n), year: this._t(n + l) }, year: { year: this._t(h) } }), super._setDefaults();
708
- }
709
- _beforeChanged() {
710
- super._beforeChanged();
711
- }
712
- format(e, t, i) {
713
- let r = i || this.get("baseUnit");
714
- t !== void 0 && t !== "" || (t = this.get("durationFormat") != null ? this.get("durationFormat") : this.getFormat(R(e), void 0, r)), t = Ce(t);
715
- let a, s = this.parseFormat(t, r), n = Number(e);
716
- a = n > this.get("negativeBase") ? s.positive : n < this.get("negativeBase") ? s.negative : s.zero;
717
- let h = this.applyFormat(n, a);
718
- return a.color !== "" && (h = "[" + a.color + "]" + h + "[/]"), h;
719
- }
720
- parseFormat(e, t) {
721
- let i = t || this.get("baseUnit"), r = { positive: { color: "", template: "", parts: [], source: "", baseUnit: i, parsed: !1, absolute: !1 }, negative: { color: "", template: "", parts: [], source: "", baseUnit: i, parsed: !1, absolute: !1 }, zero: { color: "", template: "", parts: [], source: "", baseUnit: i, parsed: !1, absolute: !1 } }, a = (e = e.replace("||", J)).split("|");
722
- return r.positive.source = a[0], a[2] === void 0 ? r.zero = r.positive : r.zero.source = a[2], a[1] === void 0 ? r.negative = r.positive : r.negative.source = a[1], he(r, (s, n) => {
723
- if (n.parsed)
724
- return;
725
- let h = n.source, c = [];
726
- c = n.source.match(/^\[([^\]]*)\]/), c && c.length && c[0] !== "" && (h = n.source.substr(c[0].length), n.color = c[1]);
727
- let g = U.chunk(h, !0);
728
- for (let u = 0; u < g.length; u++) {
729
- let b = g[u];
730
- if (b.text = b.text.replace(J, "|"), b.type === "value") {
731
- b.text.match(/[yYMdDwhHKkmsSn]+a/) && (n.absolute = !0, b.text = b.text.replace(/([yYMdDwhHKkmsSn]+)a/, "$1"));
732
- let o = b.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);
733
- if (o)
734
- for (let p = 0; p < o.length; p++)
735
- o[p] == null && (o[p] = this._unitAliases[o[p]]), n.parts.push(o[p]), b.text = b.text.replace(o[p], Q);
736
- }
737
- n.template += b.text;
738
- }
739
- n.parsed = !0;
740
- }), r;
741
- }
742
- applyFormat(e, t) {
743
- let i = !t.absolute && e < this.get("negativeBase");
744
- e = Math.abs(e);
745
- let r = this.toTimeStamp(e, t.baseUnit), a = t.template;
746
- for (let s = 0, n = t.parts.length; s < n; s++) {
747
- let h = t.parts[s], c = this._toTimeUnit(h.substr(0, 1)), g = h.length, u = Math.floor(r / this._getUnitValue(c));
748
- a = a.replace(Q, E(u, g, "0")), r -= u * this._getUnitValue(c);
749
- }
750
- return i && (a = "-" + a), a;
751
- }
752
- toTimeStamp(e, t) {
753
- return e * this._getUnitValue(t);
754
- }
755
- _toTimeUnit(e) {
756
- switch (e) {
757
- case "S":
758
- return "millisecond";
759
- case "s":
760
- return "second";
761
- case "m":
762
- return "minute";
763
- case "h":
764
- return "hour";
765
- case "d":
766
- return "day";
767
- case "w":
768
- return "week";
769
- case "M":
770
- return "month";
771
- case "y":
772
- return "year";
773
- }
774
- }
775
- getFormat(e, t, i) {
776
- if (this.get("durationFormat") != null)
777
- return this.get("durationFormat");
778
- if (i || (i = this.get("baseUnit")), t != null && e != t) {
779
- e = Math.abs(e), t = Math.abs(t);
780
- let r = this.getValueUnit(Math.max(e, t), i);
781
- return this.get("durationFormats")[i][r];
782
- }
783
- {
784
- let r = this.getValueUnit(e, i);
785
- return this.get("durationFormats")[i][r];
786
- }
787
- }
788
- getValueUnit(e, t) {
789
- let i;
790
- t || (t = this.get("baseUnit"));
791
- let r = this.getMilliseconds(e, t);
792
- return St(this._getUnitValues(), (a, s) => {
793
- if (a == t || i) {
794
- if (r / s <= 1)
795
- return i || (i = a), !1;
796
- i = a;
797
- }
798
- return !0;
799
- }), i;
800
- }
801
- getMilliseconds(e, t) {
802
- return t || (t = this.get("baseUnit")), e * this._getUnitValue(t);
803
- }
804
- _getUnitValue(e) {
805
- return this._getUnitValues()[e];
806
- }
807
- _getUnitValues() {
808
- return { millisecond: 1, second: 1e3, minute: 6e4, hour: 36e5, day: 864e5, week: 6048e5, month: 2592e6, year: 31536e6 };
809
- }
810
- }
811
- const rt = { firstDayOfWeek: 1, _decimalSeparator: ".", _thousandSeparator: ",", _percentPrefix: null, _percentSuffix: "%", _big_number_suffix_3: "k", _big_number_suffix_6: "M", _big_number_suffix_9: "G", _big_number_suffix_12: "T", _big_number_suffix_15: "P", _big_number_suffix_18: "E", _big_number_suffix_21: "Z", _big_number_suffix_24: "Y", _small_number_suffix_3: "m", _small_number_suffix_6: "μ", _small_number_suffix_9: "n", _small_number_suffix_12: "p", _small_number_suffix_15: "f", _small_number_suffix_18: "a", _small_number_suffix_21: "z", _small_number_suffix_24: "y", _byte_suffix_B: "B", _byte_suffix_KB: "KB", _byte_suffix_MB: "MB", _byte_suffix_GB: "GB", _byte_suffix_TB: "TB", _byte_suffix_PB: "PB", _date: "yyyy-MM-dd", _date_millisecond: "mm:ss SSS", _date_millisecond_full: "HH:mm:ss SSS", _date_second: "HH:mm:ss", _date_second_full: "HH:mm:ss", _date_minute: "HH:mm", _date_minute_full: "HH:mm - MMM dd, yyyy", _date_hour: "HH:mm", _date_hour_full: "HH:mm - MMM dd, yyyy", _date_day: "MMM dd", _date_day_full: "MMM dd, yyyy", _date_week: "ww", _date_week_full: "MMM dd, yyyy", _date_month: "MMM", _date_month_full: "MMM, yyyy", _date_year: "yyyy", _duration_millisecond: "SSS", _duration_millisecond_second: "ss.SSS", _duration_millisecond_minute: "mm:ss SSS", _duration_millisecond_hour: "hh:mm:ss SSS", _duration_millisecond_day: "d'd' mm:ss SSS", _duration_millisecond_week: "d'd' mm:ss SSS", _duration_millisecond_month: "M'm' dd'd' mm:ss SSS", _duration_millisecond_year: "y'y' MM'm' dd'd' mm:ss SSS", _duration_second: "ss", _duration_second_minute: "mm:ss", _duration_second_hour: "hh:mm:ss", _duration_second_day: "d'd' hh:mm:ss", _duration_second_week: "d'd' hh:mm:ss", _duration_second_month: "M'm' dd'd' hh:mm:ss", _duration_second_year: "y'y' MM'm' dd'd' hh:mm:ss", _duration_minute: "mm", _duration_minute_hour: "hh:mm", _duration_minute_day: "d'd' hh:mm", _duration_minute_week: "d'd' hh:mm", _duration_minute_month: "M'm' dd'd' hh:mm", _duration_minute_year: "y'y' MM'm' dd'd' hh:mm", _duration_hour: "hh'h'", _duration_hour_day: "d'd' hh'h'", _duration_hour_week: "d'd' hh'h'", _duration_hour_month: "M'm' dd'd' hh'h'", _duration_hour_year: "y'y' MM'm' dd'd' hh'h'", _duration_day: "d'd'", _duration_day_week: "d'd'", _duration_day_month: "M'm' dd'd'", _duration_day_year: "y'y' MM'm' dd'd'", _duration_week: "w'w'", _duration_week_month: "w'w'", _duration_week_year: "w'w'", _duration_month: "M'm'", _duration_month_year: "y'y' MM'm'", _duration_year: "y'y'", _era_ad: "AD", _era_bc: "BC", A: "", P: "", AM: "", PM: "", "A.M.": "", "P.M.": "", January: "", February: "", March: "", April: "", May: "", June: "", July: "", August: "", September: "", October: "", November: "", December: "", Jan: "", Feb: "", Mar: "", Apr: "", "May(short)": "May", Jun: "", Jul: "", Aug: "", Sep: "", Oct: "", Nov: "", Dec: "", Sunday: "", Monday: "", Tuesday: "", Wednesday: "", Thursday: "", Friday: "", Saturday: "", Sun: "", Mon: "", Tue: "", Wed: "", Thu: "", Fri: "", Sat: "", _dateOrd: function(d) {
812
- let e = "th";
813
- if (d < 11 || d > 13)
814
- switch (d % 10) {
815
- case 1:
816
- e = "st";
817
- break;
818
- case 2:
819
- e = "nd";
820
- break;
821
- case 3:
822
- e = "rd";
823
- }
824
- return e;
825
- }, "Zoom Out": "", Play: "", Stop: "", Legend: "", "Press ENTER to toggle": "", Loading: "", Home: "", Chart: "", "Serial chart": "", "X/Y chart": "", "Pie chart": "", "Gauge chart": "", "Radar chart": "", "Sankey diagram": "", "Flow diagram": "", "Chord diagram": "", "TreeMap chart": "", "Force directed tree": "", "Sliced chart": "", Series: "", "Candlestick Series": "", "OHLC Series": "", "Column Series": "", "Line Series": "", "Pie Slice Series": "", "Funnel Series": "", "Pyramid Series": "", "X/Y Series": "", Map: "", "Press ENTER to zoom in": "", "Press ENTER to zoom out": "", "Use arrow keys to zoom in and out": "", "Use plus and minus keys on your keyboard to zoom in and out": "", Export: "", Image: "", Data: "", Print: "", "Press ENTER or use arrow keys to navigate": "", "Press ENTER to open": "", "Press ENTER to print.": "", "Press ENTER to export as %1.": "", "(Press ESC to close this message)": "", "Image Export Complete": "", "Export operation took longer than expected. Something might have gone wrong.": "", "Saved from": "", PNG: "", JPG: "", GIF: "", SVG: "", PDF: "", JSON: "", CSV: "", XLSX: "", HTML: "", "Use TAB to select grip buttons or left and right arrows to change selection": "", "Use left and right arrows to move selection": "", "Use left and right arrows to move left selection": "", "Use left and right arrows to move right selection": "", "Use TAB select grip buttons or up and down arrows to change selection": "", "Use up and down arrows to move selection": "", "Use up and down arrows to move lower selection": "", "Use up and down arrows to move upper selection": "", "From %1 to %2": "", "From %1": "", "To %1": "", "No parser available for file: %1": "", "Error parsing file: %1": "", "Unable to load file: %1": "", "Invalid date": "", Close: "", Minimize: "" };
826
- class Xt extends ee {
827
- _setDefaults() {
828
- this.setPrivate("defaultLocale", rt), super._setDefaults();
829
- }
830
- translate(e, t, ...i) {
831
- t || (t = this._root.locale || this.getPrivate("defaultLocale"));
832
- let r = e, a = t[e];
833
- if (a === null)
834
- r = "";
835
- else if (a != null)
836
- a && (r = a);
837
- else if (t !== this.getPrivate("defaultLocale"))
838
- return this.translate(e, this.getPrivate("defaultLocale"), ...i);
839
- if (i.length)
840
- for (let s = i.length, n = 0; n < s; ++n)
841
- r = r.split("%" + (n + 1)).join(i[n]);
842
- return r;
843
- }
844
- translateAny(e, t, ...i) {
845
- return this.translate(e, t, ...i);
846
- }
847
- setTranslationAny(e, t, i) {
848
- (i || this._root.locale)[e] = t;
849
- }
850
- setTranslationsAny(e, t) {
851
- he(e, (i, r) => {
852
- this.setTranslationAny(i, r, t);
853
- });
854
- }
855
- translateEmpty(e, t, ...i) {
856
- let r = this.translate(e, t, ...i);
857
- return r == e ? "" : r;
858
- }
859
- translateFunc(e, t) {
860
- return this._root.locale[e] ? this._root.locale[e] : t !== this.getPrivate("defaultLocale") ? this.translateFunc(e, this.getPrivate("defaultLocale")) : () => "";
861
- }
862
- translateAll(e, t) {
863
- return this.isDefault() ? e : jt(e, (i) => this.translate(i, t));
864
- }
865
- isDefault() {
866
- return this.getPrivate("defaultLocale") === this._root.locale;
867
- }
868
- }
869
- class Oe {
870
- constructor(e = 1, t = 0, i = 0, r = 1, a = 0, s = 0) {
871
- Object.defineProperty(this, "a", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "b", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "c", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "d", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "tx", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "ty", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.a = e, this.b = t, this.c = i, this.d = r, this.tx = a, this.ty = s;
872
- }
873
- setTransform(e, t, i, r, a, s = 1) {
874
- this.a = Math.cos(a) * s, this.b = Math.sin(a) * s, this.c = -Math.sin(a) * s, this.d = Math.cos(a) * s, this.tx = e - (i * this.a + r * this.c), this.ty = t - (i * this.b + r * this.d);
875
- }
876
- apply(e) {
877
- return { x: this.a * e.x + this.c * e.y + this.tx, y: this.b * e.x + this.d * e.y + this.ty };
878
- }
879
- applyInverse(e) {
880
- const t = 1 / (this.a * this.d + this.c * -this.b);
881
- return { x: this.d * t * e.x + -this.c * t * e.y + (this.ty * this.c - this.tx * this.d) * t, y: this.a * t * e.y + -this.b * t * e.x + (-this.ty * this.a + this.tx * this.b) * t };
882
- }
883
- append(e) {
884
- const t = this.a, i = this.b, r = this.c, a = this.d;
885
- this.a = e.a * t + e.b * r, this.b = e.a * i + e.b * a, this.c = e.c * t + e.d * r, this.d = e.c * i + e.d * a, this.tx = e.tx * t + e.ty * r + this.tx, this.ty = e.tx * i + e.ty * a + this.ty;
886
- }
887
- prepend(e) {
888
- const t = this.tx;
889
- if (e.a !== 1 || e.b !== 0 || e.c !== 0 || e.d !== 1) {
890
- const i = this.a, r = this.c;
891
- this.a = i * e.a + this.b * e.c, this.b = i * e.b + this.b * e.d, this.c = r * e.a + this.d * e.c, this.d = r * e.b + this.d * e.d;
892
- }
893
- this.tx = t * e.a + this.ty * e.c + e.tx, this.ty = t * e.b + this.ty * e.d + e.ty;
894
- }
895
- copyFrom(e) {
896
- this.a = e.a, this.b = e.b, this.c = e.c, this.d = e.d, this.tx = e.tx, this.ty = e.ty;
897
- }
898
- }
899
- var Gt = function() {
900
- function d(e, t) {
901
- var i = [], r = !0, a = !1, s = void 0;
902
- try {
903
- for (var n, h = e[Symbol.iterator](); !(r = (n = h.next()).done) && (i.push(n.value), !t || i.length !== t); r = !0)
904
- ;
905
- } catch (c) {
906
- a = !0, s = c;
907
- } finally {
908
- try {
909
- !r && h.return && h.return();
910
- } finally {
911
- if (a)
912
- throw s;
913
- }
914
- }
915
- return i;
916
- }
917
- return function(e, t) {
918
- if (Array.isArray(e))
919
- return e;
920
- if (Symbol.iterator in Object(e))
921
- return d(e, t);
922
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
923
- };
924
- }(), le = 2 * Math.PI, ke = function(d, e, t, i, r, a, s) {
925
- var n = d.x, h = d.y;
926
- return { x: i * (n *= e) - r * (h *= t) + a, y: r * n + i * h + s };
927
- }, Nt = function(d, e) {
928
- var t = e === 1.5707963267948966 ? 0.551915024494 : e === -1.5707963267948966 ? -0.551915024494 : 1.3333333333333333 * Math.tan(e / 4), i = Math.cos(d), r = Math.sin(d), a = Math.cos(d + e), s = Math.sin(d + e);
929
- return [{ x: i - r * t, y: r + i * t }, { x: a + s * t, y: s - a * t }, { x: a, y: s }];
930
- }, Ve = function(d, e, t, i) {
931
- var r = d * t + e * i;
932
- return r > 1 && (r = 1), r < -1 && (r = -1), (d * i - e * t < 0 ? -1 : 1) * Math.acos(r);
933
- }, qt = function(d, e, t, i, r, a, s, n, h, c, g, u) {
934
- var b = Math.pow(r, 2), o = Math.pow(a, 2), p = Math.pow(g, 2), l = Math.pow(u, 2), m = b * o - b * l - o * p;
935
- m < 0 && (m = 0), m /= b * l + o * p;
936
- var _ = (m = Math.sqrt(m) * (s === n ? -1 : 1)) * r / a * u, w = m * -a / r * g, v = c * _ - h * w + (d + t) / 2, f = h * _ + c * w + (e + i) / 2, x = (g - _) / r, A = (u - w) / a, k = (-g - _) / r, S = (-u - w) / a, B = Ve(1, 0, x, A), P = Ve(x, A, k, S);
937
- return n === 0 && P > 0 && (P -= le), n === 1 && P < 0 && (P += le), [v, f, B, P];
938
- }, Zt = function(d) {
939
- var e = d.px, t = d.py, i = d.cx, r = d.cy, a = d.rx, s = d.ry, n = d.xAxisRotation, h = n === void 0 ? 0 : n, c = d.largeArcFlag, g = c === void 0 ? 0 : c, u = d.sweepFlag, b = u === void 0 ? 0 : u, o = [];
940
- if (a === 0 || s === 0)
941
- return [];
942
- var p = Math.sin(h * le / 360), l = Math.cos(h * le / 360), m = l * (e - i) / 2 + p * (t - r) / 2, _ = -p * (e - i) / 2 + l * (t - r) / 2;
943
- if (m === 0 && _ === 0)
944
- return [];
945
- a = Math.abs(a), s = Math.abs(s);
946
- var w = Math.pow(m, 2) / Math.pow(a, 2) + Math.pow(_, 2) / Math.pow(s, 2);
947
- w > 1 && (a *= Math.sqrt(w), s *= Math.sqrt(w));
948
- var v = qt(e, t, i, r, a, s, g, b, p, l, m, _), f = Gt(v, 4), x = f[0], A = f[1], k = f[2], S = f[3], B = Math.abs(S) / (le / 4);
949
- Math.abs(1 - B) < 1e-7 && (B = 1);
950
- var P = Math.max(Math.ceil(B), 1);
951
- S /= P;
952
- for (var z = 0; z < P; z++)
953
- o.push(Nt(k, S)), k += S;
954
- return o.map(function(D) {
955
- var I = ke(D[0], a, s, l, p, x, A), G = I.x, T = I.y, ue = ke(D[1], a, s, l, p, x, A), O = ue.x, F = ue.y, Y = ke(D[2], a, s, l, p, x, A);
956
- return { x1: G, y1: T, x2: O, y2: F, x: Y.x, y: Y.y };
957
- });
958
- };
959
- function Kt(d, e, t) {
960
- if (e !== t)
961
- throw new Error("Required " + t + " arguments for " + d + " but got " + e);
962
- }
963
- function ae(d, e, t) {
964
- if (e < t)
965
- throw new Error("Required at least " + t + " arguments for " + d + " but got " + e);
966
- }
967
- function L(d, e, t) {
968
- if (ae(d, e, t), e % t != 0)
969
- throw new Error("Arguments for " + d + " must be in pairs of " + t);
970
- }
971
- function Jt(d) {
972
- for (let e = 0; e < d.length; e += 7) {
973
- let t = e + 3, i = d[t];
974
- if (i.length > 1) {
975
- const r = /^([01])([01])(.*)$/.exec(i);
976
- r !== null && (d.splice(t, 0, r[1]), ++t, d.splice(t, 0, r[2]), ++t, r[3].length > 0 ? d[t] = r[3] : d.splice(t, 1));
977
- }
978
- if (++t, i = d[t], i.length > 1) {
979
- const r = /^([01])(.+)$/.exec(i);
980
- r !== null && (d.splice(t, 0, r[1]), ++t, d[t] = r[2]);
981
- }
982
- }
983
- }
984
- function $e(d) {
985
- if (d === 0 || d === 1)
986
- return d;
987
- throw new Error("Flag must be 0 or 1");
988
- }
989
- function Qt(d) {
990
- const e = [0, 0, 0];
991
- for (let t = 0; t < 24; t++)
992
- e[t % 3] <<= 1, e[t % 3] |= 1 & d, d >>= 1;
993
- return (0 | e[0]) + (e[1] << 8) + (e[2] << 16);
994
- }
995
- function fe(d, e) {
996
- for (; (!d.interactive || e(d)) && d._parent; )
997
- d = d._parent;
998
- }
999
- function ei(d, e, t) {
1000
- return C(d, Ee(e), (i) => {
1001
- const r = Qe(i);
1002
- let a = i.touches;
1003
- a ? (a.length == 0 && (a = i.changedTouches), t(Bt(a), r)) : t([i], r);
1004
- });
1005
- }
1006
- function Xe(d) {
1007
- const e = document.createElement("canvas");
1008
- e.width = 1, e.height = 1;
1009
- const t = e.getContext("2d", { willReadFrequently: !0 });
1010
- t.drawImage(d, 0, 0, 1, 1);
1011
- try {
1012
- return t.getImageData(0, 0, 1, 1), !1;
1013
- } catch {
1014
- return console.warn('Image "' + d.src + '" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'), !0;
1015
- }
1016
- }
1017
- function ne(d) {
1018
- d.width = 0, d.height = 0, d.style.width = "0px", d.style.height = "0px";
1019
- }
1020
- function Ge(d) {
1021
- return Math.floor(d) + 0.5;
1022
- }
1023
- class ti {
1024
- constructor() {
1025
- Object.defineProperty(this, "_x", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_y", { enumerable: !0, configurable: !0, writable: !0, value: 0 });
1026
- }
1027
- get x() {
1028
- return this._x;
1029
- }
1030
- get y() {
1031
- return this._y;
1032
- }
1033
- set x(e) {
1034
- this._x = e;
1035
- }
1036
- set y(e) {
1037
- this._y = e;
1038
- }
1039
- }
1040
- class ve extends zt {
1041
- constructor(e) {
1042
- super(), Object.defineProperty(this, "_layer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "mask", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "visible", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "exportable", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "interactive", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "inactive", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "wheelable", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "cancelTouch", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "isMeasured", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "buttonMode", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "alpha", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "compoundAlpha", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "angle", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "scale", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "x", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "y", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "crisp", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "pivot", { enumerable: !0, configurable: !0, writable: !0, value: new ti() }), Object.defineProperty(this, "filter", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "cursorOverStyle", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_replacedCursorStyle", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_localMatrix", { enumerable: !0, configurable: !0, writable: !0, value: new Oe() }), Object.defineProperty(this, "_matrix", { enumerable: !0, configurable: !0, writable: !0, value: new Oe() }), Object.defineProperty(this, "_uMatrix", { enumerable: !0, configurable: !0, writable: !0, value: new Oe() }), Object.defineProperty(this, "_renderer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_parent", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_localBounds", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_bounds", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_colorId", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._renderer = e;
1043
- }
1044
- subStatus(e) {
1045
- return { inactive: this.inactive == null ? e.inactive : this.inactive, layer: this._layer || e.layer };
1046
- }
1047
- _dispose() {
1048
- this._renderer._removeObject(this), this.getLayer().dirty = !0;
1049
- }
1050
- getCanvas() {
1051
- return this.getLayer().view;
1052
- }
1053
- getLayer() {
1054
- let e = this;
1055
- for (; ; ) {
1056
- if (e._layer)
1057
- return e._layer;
1058
- if (!e._parent)
1059
- return this._renderer.defaultLayer;
1060
- e = e._parent;
1061
- }
1062
- }
1063
- setLayer(e, t) {
1064
- e == null ? this._layer = void 0 : (this._layer = this._renderer.getLayer(e, !0), this._layer.visible = !0, this._layer.margin = t, t && K(this._layer.view, !1), this._renderer._ghostLayer.setMargin(this._renderer.layers), this._parent && this._parent.registerChildLayer(this._layer), this._layer.dirty = !0, this._renderer.resizeLayer(this._layer), this._renderer.resizeGhost());
1065
- }
1066
- markDirtyLayer() {
1067
- this.getLayer().dirty = !0;
1068
- }
1069
- clear() {
1070
- this.invalidateBounds();
1071
- }
1072
- invalidateBounds() {
1073
- this._localBounds = void 0;
1074
- }
1075
- _addBounds(e) {
1076
- }
1077
- _getColorId() {
1078
- return this._colorId === void 0 && (this._colorId = this._renderer.paintId(this)), this._colorId;
1079
- }
1080
- _isInteractive(e) {
1081
- return !e.inactive && (this.interactive || this._renderer._forceInteractive > 0);
1082
- }
1083
- _isInteractiveMask(e) {
1084
- return this._isInteractive(e);
1085
- }
1086
- contains(e) {
1087
- for (; ; ) {
1088
- if (e === this)
1089
- return !0;
1090
- if (!e._parent)
1091
- return !1;
1092
- e = e._parent;
1093
- }
1094
- }
1095
- toGlobal(e) {
1096
- return this._matrix.apply(e);
1097
- }
1098
- toLocal(e) {
1099
- return this._matrix.applyInverse(e);
1100
- }
1101
- getLocalMatrix() {
1102
- return this._uMatrix.setTransform(0, 0, this.pivot.x, this.pivot.y, this.angle * Math.PI / 180, this.scale), this._uMatrix;
1103
- }
1104
- getLocalBounds() {
1105
- return this._localBounds || (this._localBounds = { left: 1e7, top: 1e7, right: -1e7, bottom: -1e7 }, this._addBounds(this._localBounds)), this._localBounds;
1106
- }
1107
- getAdjustedBounds(e) {
1108
- this._setMatrix();
1109
- const t = this.getLocalMatrix(), i = t.apply({ x: e.left, y: e.top }), r = t.apply({ x: e.right, y: e.top }), a = t.apply({ x: e.right, y: e.bottom }), s = t.apply({ x: e.left, y: e.bottom });
1110
- return { left: Math.min(i.x, r.x, a.x, s.x), top: Math.min(i.y, r.y, a.y, s.y), right: Math.max(i.x, r.x, a.x, s.x), bottom: Math.max(i.y, r.y, a.y, s.y) };
1111
- }
1112
- on(e, t, i) {
1113
- return this.interactive ? this._renderer._addEvent(this, e, t, i) : new $(() => {
1114
- });
1115
- }
1116
- _setMatrix() {
1117
- this._localMatrix.setTransform(this.x, this.y, this.pivot.x, this.pivot.y, this.angle * Math.PI / 180, this.scale), this._matrix.copyFrom(this._localMatrix), this._parent && this._matrix.prepend(this._parent._matrix);
1118
- }
1119
- _transform(e, t) {
1120
- const i = this._matrix;
1121
- let r = i.tx * t, a = i.ty * t;
1122
- this.crisp && (r = Ge(r), a = Ge(a)), e.setTransform(i.a * t, i.b * t, i.c * t, i.d * t, r, a);
1123
- }
1124
- _transformMargin(e, t, i) {
1125
- const r = this._matrix;
1126
- e.setTransform(r.a * t, r.b * t, r.c * t, r.d * t, (r.tx + i.left) * t, (r.ty + i.top) * t);
1127
- }
1128
- _transformLayer(e, t, i) {
1129
- i.margin ? this._transformMargin(e, i.scale || t, i.margin) : this._transform(e, i.scale || t);
1130
- }
1131
- render(e) {
1132
- if (this.visible && (this.exportable !== !1 || !this._renderer._omitTainted)) {
1133
- this._setMatrix();
1134
- const t = this.subStatus(e), i = this._renderer.resolution, r = this._renderer.layers, a = this._renderer._ghostLayer, s = a.context, n = this.mask;
1135
- n && n._setMatrix(), y(r, (h) => {
1136
- if (h) {
1137
- const c = h.context;
1138
- c.save(), n && (n._transformLayer(c, i, h), n._runPath(c), c.clip()), c.globalAlpha = this.compoundAlpha * this.alpha, this._transformLayer(c, i, h), this.filter && (c.filter = this.filter);
1139
- }
1140
- }), s.save(), n && this._isInteractiveMask(t) && (n._transformMargin(s, i, a.margin), n._runPath(s), s.clip()), this._transformMargin(s, i, a.margin), this._render(t), s.restore(), y(r, (h) => {
1141
- h && h.context.restore();
1142
- });
1143
- }
1144
- }
1145
- _render(e) {
1146
- this.exportable === !1 && (e.layer.tainted = !0);
1147
- }
1148
- hovering() {
1149
- return this._renderer._hovering.has(this);
1150
- }
1151
- dragging() {
1152
- return this._renderer._dragging.some((e) => e.value === this);
1153
- }
1154
- shouldCancelTouch() {
1155
- const e = this._renderer;
1156
- return !(e.tapToActivate && !e._touchActive) && (!!this.cancelTouch || !!this._parent && this._parent.shouldCancelTouch());
1157
- }
1158
- }
1159
- class ii extends ve {
1160
- constructor() {
1161
- super(...arguments), Object.defineProperty(this, "interactiveChildren", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "_childLayers", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_children", { enumerable: !0, configurable: !0, writable: !0, value: [] });
1162
- }
1163
- _isInteractiveMask(e) {
1164
- return this.interactiveChildren || super._isInteractiveMask(e);
1165
- }
1166
- addChild(e) {
1167
- e._parent = this, this._children.push(e), e._layer && this.registerChildLayer(e._layer);
1168
- }
1169
- addChildAt(e, t) {
1170
- e._parent = this, this._children.splice(t, 0, e), e._layer && this.registerChildLayer(e._layer);
1171
- }
1172
- removeChild(e) {
1173
- e._parent = void 0, Te(this._children, e);
1174
- }
1175
- _render(e) {
1176
- super._render(e);
1177
- const t = this._renderer;
1178
- this.interactive && this.interactiveChildren && ++t._forceInteractive, y(this._children, (i) => {
1179
- i.compoundAlpha = this.compoundAlpha * this.alpha, i.render(e);
1180
- }), this.interactive && this.interactiveChildren && --t._forceInteractive;
1181
- }
1182
- registerChildLayer(e) {
1183
- this._childLayers || (this._childLayers = []), je(this._childLayers, e), this._parent && this._parent.registerChildLayer(e);
1184
- }
1185
- markDirtyLayer(e = !1) {
1186
- super.markDirtyLayer(), e && this._childLayers && y(this._childLayers, (t) => t.dirty = !0);
1187
- }
1188
- _dispose() {
1189
- super._dispose(), this._childLayers && y(this._childLayers, (e) => {
1190
- e.dirty = !0;
1191
- });
1192
- }
1193
- }
1194
- function M(d, e) {
1195
- d.left = Math.min(d.left, e.x), d.top = Math.min(d.top, e.y), d.right = Math.max(d.right, e.x), d.bottom = Math.max(d.bottom, e.y);
1196
- }
1197
- class j {
1198
- colorize(e, t) {
1199
- }
1200
- path(e) {
1201
- }
1202
- addBounds(e) {
1203
- }
1204
- }
1205
- class ri extends j {
1206
- colorize(e, t) {
1207
- e.beginPath();
1208
- }
1209
- }
1210
- class Me extends j {
1211
- constructor(e) {
1212
- super(), Object.defineProperty(this, "color", { enumerable: !0, configurable: !0, writable: !0, value: e });
1213
- }
1214
- colorize(e, t) {
1215
- e.fillStyle = t !== void 0 ? t : this.color;
1216
- }
1217
- }
1218
- class si extends j {
1219
- constructor(e) {
1220
- super(), Object.defineProperty(this, "clearShadow", { enumerable: !0, configurable: !0, writable: !0, value: e });
1221
- }
1222
- colorize(e, t) {
1223
- e.fill(), this.clearShadow && (e.shadowColor = "", e.shadowBlur = 0, e.shadowOffsetX = 0, e.shadowOffsetY = 0);
1224
- }
1225
- }
1226
- class ai extends j {
1227
- colorize(e, t) {
1228
- e.stroke();
1229
- }
1230
- }
1231
- class Se extends j {
1232
- constructor(e, t, i) {
1233
- super(), Object.defineProperty(this, "width", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "color", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "lineJoin", { enumerable: !0, configurable: !0, writable: !0, value: i });
1234
- }
1235
- colorize(e, t) {
1236
- e.strokeStyle = t !== void 0 ? t : this.color, e.lineWidth = this.width, this.lineJoin && (e.lineJoin = this.lineJoin);
1237
- }
1238
- }
1239
- class ni extends j {
1240
- constructor(e) {
1241
- super(), Object.defineProperty(this, "dash", { enumerable: !0, configurable: !0, writable: !0, value: e });
1242
- }
1243
- colorize(e, t) {
1244
- e.setLineDash(this.dash);
1245
- }
1246
- }
1247
- class oi extends j {
1248
- constructor(e) {
1249
- super(), Object.defineProperty(this, "dashOffset", { enumerable: !0, configurable: !0, writable: !0, value: e });
1250
- }
1251
- colorize(e, t) {
1252
- e.lineDashOffset = this.dashOffset;
1253
- }
1254
- }
1255
- class li extends j {
1256
- constructor(e, t, i, r) {
1257
- super(), Object.defineProperty(this, "x", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "y", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "width", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "height", { enumerable: !0, configurable: !0, writable: !0, value: r });
1258
- }
1259
- path(e) {
1260
- e.rect(this.x, this.y, this.width, this.height);
1261
- }
1262
- addBounds(e) {
1263
- const t = this.x, i = this.y, r = t + this.width, a = i + this.height;
1264
- M(e, { x: t, y: i }), M(e, { x: r, y: i }), M(e, { x: t, y: a }), M(e, { x: r, y: a });
1265
- }
1266
- }
1267
- class hi extends j {
1268
- constructor(e, t, i) {
1269
- super(), Object.defineProperty(this, "x", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "y", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "radius", { enumerable: !0, configurable: !0, writable: !0, value: i });
1270
- }
1271
- path(e) {
1272
- e.moveTo(this.x + this.radius, this.y), e.arc(this.x, this.y, this.radius, 0, 2 * Math.PI);
1273
- }
1274
- addBounds(e) {
1275
- M(e, { x: this.x - this.radius, y: this.y - this.radius }), M(e, { x: this.x + this.radius, y: this.y + this.radius });
1276
- }
1277
- }
1278
- class ui extends j {
1279
- constructor(e, t, i, r) {
1280
- super(), Object.defineProperty(this, "x", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "y", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "radiusX", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "radiusY", { enumerable: !0, configurable: !0, writable: !0, value: r });
1281
- }
1282
- path(e) {
1283
- e.ellipse(0, 0, this.radiusX, this.radiusY, 0, 0, 2 * Math.PI);
1284
- }
1285
- addBounds(e) {
1286
- M(e, { x: this.x - this.radiusX, y: this.y - this.radiusY }), M(e, { x: this.x + this.radiusX, y: this.y + this.radiusY });
1287
- }
1288
- }
1289
- class ci extends j {
1290
- constructor(e, t, i, r, a, s) {
1291
- super(), Object.defineProperty(this, "cx", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "cy", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "radius", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "startAngle", { enumerable: !0, configurable: !0, writable: !0, value: r }), Object.defineProperty(this, "endAngle", { enumerable: !0, configurable: !0, writable: !0, value: a }), Object.defineProperty(this, "anticlockwise", { enumerable: !0, configurable: !0, writable: !0, value: s });
1292
- }
1293
- path(e) {
1294
- this.radius > 0 && e.arc(this.cx, this.cy, this.radius, this.startAngle, this.endAngle, this.anticlockwise);
1295
- }
1296
- addBounds(e) {
1297
- let t = Ft(this.cx, this.cy, this.startAngle * oe, this.endAngle * oe, this.radius);
1298
- M(e, { x: t.left, y: t.top }), M(e, { x: t.right, y: t.bottom });
1299
- }
1300
- }
1301
- class di extends j {
1302
- constructor(e, t, i, r, a) {
1303
- super(), Object.defineProperty(this, "x1", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "y1", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "x2", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "y2", { enumerable: !0, configurable: !0, writable: !0, value: r }), Object.defineProperty(this, "radius", { enumerable: !0, configurable: !0, writable: !0, value: a });
1304
- }
1305
- path(e) {
1306
- this.radius > 0 && e.arcTo(this.x1, this.y1, this.x2, this.y2, this.radius);
1307
- }
1308
- addBounds(e) {
1309
- }
1310
- }
1311
- class bi extends j {
1312
- constructor(e, t) {
1313
- super(), Object.defineProperty(this, "x", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "y", { enumerable: !0, configurable: !0, writable: !0, value: t });
1314
- }
1315
- path(e) {
1316
- e.lineTo(this.x, this.y);
1317
- }
1318
- addBounds(e) {
1319
- M(e, { x: this.x, y: this.y });
1320
- }
1321
- }
1322
- class fi extends j {
1323
- constructor(e, t) {
1324
- super(), Object.defineProperty(this, "x", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "y", { enumerable: !0, configurable: !0, writable: !0, value: t });
1325
- }
1326
- path(e) {
1327
- e.moveTo(this.x, this.y);
1328
- }
1329
- addBounds(e) {
1330
- M(e, { x: this.x, y: this.y });
1331
- }
1332
- }
1333
- class gi extends j {
1334
- path(e) {
1335
- e.closePath();
1336
- }
1337
- }
1338
- class mi extends j {
1339
- constructor(e, t, i, r, a, s) {
1340
- super(), Object.defineProperty(this, "cpX", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "cpY", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "cpX2", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "cpY2", { enumerable: !0, configurable: !0, writable: !0, value: r }), Object.defineProperty(this, "toX", { enumerable: !0, configurable: !0, writable: !0, value: a }), Object.defineProperty(this, "toY", { enumerable: !0, configurable: !0, writable: !0, value: s });
1341
- }
1342
- path(e) {
1343
- e.bezierCurveTo(this.cpX, this.cpY, this.cpX2, this.cpY2, this.toX, this.toY);
1344
- }
1345
- addBounds(e) {
1346
- M(e, { x: this.cpX, y: this.cpY }), M(e, { x: this.cpX2, y: this.cpY2 }), M(e, { x: this.toX, y: this.toY });
1347
- }
1348
- }
1349
- class pi extends j {
1350
- constructor(e, t, i, r) {
1351
- super(), Object.defineProperty(this, "cpX", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "cpY", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "toX", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "toY", { enumerable: !0, configurable: !0, writable: !0, value: r });
1352
- }
1353
- path(e) {
1354
- e.quadraticCurveTo(this.cpX, this.cpY, this.toX, this.toY);
1355
- }
1356
- addBounds(e) {
1357
- M(e, { x: this.cpX, y: this.cpY }), M(e, { x: this.toX, y: this.toY });
1358
- }
1359
- }
1360
- class _i extends j {
1361
- constructor(e, t, i, r, a) {
1362
- super(), Object.defineProperty(this, "color", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "blur", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "offsetX", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "offsetY", { enumerable: !0, configurable: !0, writable: !0, value: r }), Object.defineProperty(this, "opacity", { enumerable: !0, configurable: !0, writable: !0, value: a });
1363
- }
1364
- colorize(e, t) {
1365
- this.opacity && (e.fillStyle = this.color), e.shadowColor = this.color, e.shadowBlur = this.blur, e.shadowOffsetX = this.offsetX, e.shadowOffsetY = this.offsetY;
1366
- }
1367
- }
1368
- class yi extends j {
1369
- constructor(e, t, i, r, a) {
1370
- super(), Object.defineProperty(this, "image", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "width", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "height", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "x", { enumerable: !0, configurable: !0, writable: !0, value: r }), Object.defineProperty(this, "y", { enumerable: !0, configurable: !0, writable: !0, value: a });
1371
- }
1372
- path(e) {
1373
- e.drawImage(this.image, this.x, this.y, this.width, this.height);
1374
- }
1375
- addBounds(e) {
1376
- M(e, { x: this.x, y: this.y }), M(e, { x: this.width, y: this.height });
1377
- }
1378
- }
1379
- class vi extends ve {
1380
- constructor() {
1381
- super(...arguments), Object.defineProperty(this, "_operations", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "blendMode", { enumerable: !0, configurable: !0, writable: !0, value: Dt.NORMAL }), Object.defineProperty(this, "_hasShadows", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_fillAlpha", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_strokeAlpha", { enumerable: !0, configurable: !0, writable: !0, value: void 0 });
1382
- }
1383
- clear() {
1384
- super.clear(), this._operations.length = 0;
1385
- }
1386
- _pushOp(e) {
1387
- this._operations.push(e);
1388
- }
1389
- beginFill(e, t = 1) {
1390
- this._fillAlpha = t, e ? e instanceof X ? this._pushOp(new Me(e.toCSS(t))) : (this.isMeasured = !0, this._pushOp(new Me(e))) : this._pushOp(new Me("rgba(0, 0, 0, " + t + ")"));
1391
- }
1392
- endFill() {
1393
- this._pushOp(new si(this._hasShadows));
1394
- }
1395
- endStroke() {
1396
- this._pushOp(new ai());
1397
- }
1398
- beginPath() {
1399
- this._pushOp(new ri());
1400
- }
1401
- lineStyle(e = 0, t, i = 1, r) {
1402
- this._strokeAlpha = i, t ? t instanceof X ? this._pushOp(new Se(e, t.toCSS(i), r)) : this._pushOp(new Se(e, t, r)) : this._pushOp(new Se(e, "rgba(0, 0, 0, " + i + ")", r));
1403
- }
1404
- setLineDash(e) {
1405
- this._pushOp(new ni(e || []));
1406
- }
1407
- setLineDashOffset(e = 0) {
1408
- this._pushOp(new oi(e));
1409
- }
1410
- drawRect(e, t, i, r) {
1411
- this._pushOp(new li(e, t, i, r));
1412
- }
1413
- drawCircle(e, t, i) {
1414
- this._pushOp(new hi(e, t, i));
1415
- }
1416
- drawEllipse(e, t, i, r) {
1417
- this._pushOp(new ui(e, t, i, r));
1418
- }
1419
- arc(e, t, i, r, a, s = !1) {
1420
- this._pushOp(new ci(e, t, i, r, a, s));
1421
- }
1422
- arcTo(e, t, i, r, a) {
1423
- this._pushOp(new di(e, t, i, r, a));
1424
- }
1425
- lineTo(e, t) {
1426
- this._pushOp(new bi(e, t));
1427
- }
1428
- moveTo(e, t) {
1429
- this._pushOp(new fi(e, t));
1430
- }
1431
- bezierCurveTo(e, t, i, r, a, s) {
1432
- this._pushOp(new mi(e, t, i, r, a, s));
1433
- }
1434
- quadraticCurveTo(e, t, i, r) {
1435
- this._pushOp(new pi(e, t, i, r));
1436
- }
1437
- closePath() {
1438
- this._pushOp(new gi());
1439
- }
1440
- shadow(e, t = 0, i = 0, r = 0, a) {
1441
- this._hasShadows = !0, this._pushOp(new _i(a ? e.toCSS(a) : e.toCSS(this._fillAlpha || this._strokeAlpha), t, i, r));
1442
- }
1443
- image(e, t, i, r, a) {
1444
- this._pushOp(new yi(e, t, i, r, a));
1445
- }
1446
- svgPath(e) {
1447
- let t = 0, i = 0, r = null, a = null, s = null, n = null;
1448
- const h = /([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g, c = /[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g;
1449
- let g;
1450
- for (; (g = h.exec(e)) !== null; ) {
1451
- const u = g[1], b = g[2], o = [];
1452
- for (; (g = c.exec(b)) !== null; )
1453
- o.push(g[1]);
1454
- switch (u !== "S" && u !== "s" && u !== "C" && u !== "c" && (r = null, a = null), u !== "Q" && u !== "q" && u !== "T" && u !== "t" && (s = null, n = null), u) {
1455
- case "M":
1456
- L(u, o.length, 2), t = +o[0], i = +o[1], this.moveTo(t, i);
1457
- for (let l = 2; l < o.length; l += 2)
1458
- t = +o[l], i = +o[l + 1], this.lineTo(t, i);
1459
- break;
1460
- case "m":
1461
- L(u, o.length, 2), t += +o[0], i += +o[1], this.moveTo(t, i);
1462
- for (let l = 2; l < o.length; l += 2)
1463
- t += +o[l], i += +o[l + 1], this.lineTo(t, i);
1464
- break;
1465
- case "L":
1466
- L(u, o.length, 2);
1467
- for (let l = 0; l < o.length; l += 2)
1468
- t = +o[l], i = +o[l + 1], this.lineTo(t, i);
1469
- break;
1470
- case "l":
1471
- L(u, o.length, 2);
1472
- for (let l = 0; l < o.length; l += 2)
1473
- t += +o[l], i += +o[l + 1], this.lineTo(t, i);
1474
- break;
1475
- case "H":
1476
- ae(u, o.length, 1);
1477
- for (let l = 0; l < o.length; ++l)
1478
- t = +o[l], this.lineTo(t, i);
1479
- break;
1480
- case "h":
1481
- ae(u, o.length, 1);
1482
- for (let l = 0; l < o.length; ++l)
1483
- t += +o[l], this.lineTo(t, i);
1484
- break;
1485
- case "V":
1486
- ae(u, o.length, 1);
1487
- for (let l = 0; l < o.length; ++l)
1488
- i = +o[l], this.lineTo(t, i);
1489
- break;
1490
- case "v":
1491
- ae(u, o.length, 1);
1492
- for (let l = 0; l < o.length; ++l)
1493
- i += +o[l], this.lineTo(t, i);
1494
- break;
1495
- case "C":
1496
- L(u, o.length, 6);
1497
- for (let l = 0; l < o.length; l += 6) {
1498
- const m = +o[l], _ = +o[l + 1];
1499
- r = +o[l + 2], a = +o[l + 3], t = +o[l + 4], i = +o[l + 5], this.bezierCurveTo(m, _, r, a, t, i);
1500
- }
1501
- break;
1502
- case "c":
1503
- L(u, o.length, 6);
1504
- for (let l = 0; l < o.length; l += 6) {
1505
- const m = +o[l] + t, _ = +o[l + 1] + i;
1506
- r = +o[l + 2] + t, a = +o[l + 3] + i, t += +o[l + 4], i += +o[l + 5], this.bezierCurveTo(m, _, r, a, t, i);
1507
- }
1508
- break;
1509
- case "S":
1510
- L(u, o.length, 4), r !== null && a !== null || (r = t, a = i);
1511
- for (let l = 0; l < o.length; l += 4) {
1512
- const m = 2 * t - r, _ = 2 * i - a;
1513
- r = +o[l], a = +o[l + 1], t = +o[l + 2], i = +o[l + 3], this.bezierCurveTo(m, _, r, a, t, i);
1514
- }
1515
- break;
1516
- case "s":
1517
- L(u, o.length, 4), r !== null && a !== null || (r = t, a = i);
1518
- for (let l = 0; l < o.length; l += 4) {
1519
- const m = 2 * t - r, _ = 2 * i - a;
1520
- r = +o[l] + t, a = +o[l + 1] + i, t += +o[l + 2], i += +o[l + 3], this.bezierCurveTo(m, _, r, a, t, i);
1521
- }
1522
- break;
1523
- case "Q":
1524
- L(u, o.length, 4);
1525
- for (let l = 0; l < o.length; l += 4)
1526
- s = +o[l], n = +o[l + 1], t = +o[l + 2], i = +o[l + 3], this.quadraticCurveTo(s, n, t, i);
1527
- break;
1528
- case "q":
1529
- L(u, o.length, 4);
1530
- for (let l = 0; l < o.length; l += 4)
1531
- s = +o[l] + t, n = +o[l + 1] + i, t += +o[l + 2], i += +o[l + 3], this.quadraticCurveTo(s, n, t, i);
1532
- break;
1533
- case "T":
1534
- L(u, o.length, 2), s !== null && n !== null || (s = t, n = i);
1535
- for (let l = 0; l < o.length; l += 2)
1536
- s = 2 * t - s, n = 2 * i - n, t = +o[l], i = +o[l + 1], this.quadraticCurveTo(s, n, t, i);
1537
- break;
1538
- case "t":
1539
- L(u, o.length, 2), s !== null && n !== null || (s = t, n = i);
1540
- for (let l = 0; l < o.length; l += 2)
1541
- s = 2 * t - s, n = 2 * i - n, t += +o[l], i += +o[l + 1], this.quadraticCurveTo(s, n, t, i);
1542
- break;
1543
- case "A":
1544
- case "a":
1545
- const p = u === "a";
1546
- Jt(o), L(u, o.length, 7);
1547
- for (let l = 0; l < o.length; l += 7) {
1548
- let m = +o[l + 5], _ = +o[l + 6];
1549
- p && (m += t, _ += i);
1550
- const w = Zt({ px: t, py: i, rx: +o[l], ry: +o[l + 1], xAxisRotation: +o[l + 2], largeArcFlag: $e(+o[l + 3]), sweepFlag: $e(+o[l + 4]), cx: m, cy: _ });
1551
- y(w, (v) => {
1552
- this.bezierCurveTo(v.x1, v.y1, v.x2, v.y2, v.x, v.y), t = v.x, i = v.y;
1553
- });
1554
- }
1555
- break;
1556
- case "Z":
1557
- case "z":
1558
- Kt(u, o.length, 0), this.closePath();
1559
- }
1560
- }
1561
- }
1562
- _runPath(e) {
1563
- e.beginPath(), y(this._operations, (t) => {
1564
- t.path(e);
1565
- });
1566
- }
1567
- _render(e) {
1568
- super._render(e);
1569
- const t = e.layer.dirty, i = this._isInteractive(e);
1570
- if (t || i) {
1571
- const r = e.layer.context, a = this._renderer._ghostLayer.context;
1572
- let s;
1573
- t && (r.globalCompositeOperation = this.blendMode, r.beginPath()), i && (a.beginPath(), s = this._getColorId()), y(this._operations, (n) => {
1574
- t && (n.path(r), n.colorize(r, void 0)), i && (n.path(a), n.colorize(a, s));
1575
- });
1576
- }
1577
- }
1578
- renderDetached(e) {
1579
- if (this.visible) {
1580
- this._setMatrix(), e.save();
1581
- const t = this.mask;
1582
- t && (t._setMatrix(), t._transform(e, 1), t._runPath(e), e.clip()), e.globalAlpha = this.compoundAlpha * this.alpha, this._transform(e, 1), this.filter && (e.filter = this.filter), e.globalCompositeOperation = this.blendMode, e.beginPath(), y(this._operations, (i) => {
1583
- i.path(e), i.colorize(e, void 0);
1584
- }), e.restore();
1585
- }
1586
- }
1587
- _addBounds(e) {
1588
- this.visible && this.isMeasured && y(this._operations, (t) => {
1589
- t.addBounds(e);
1590
- });
1591
- }
1592
- }
1593
- class st extends ve {
1594
- constructor(e, t, i) {
1595
- super(e), Object.defineProperty(this, "text", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "style", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "resolution", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "textVisible", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "_textInfo", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_originalScale", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), this.text = t, this.style = i;
1596
- }
1597
- invalidateBounds() {
1598
- super.invalidateBounds(), this._textInfo = void 0;
1599
- }
1600
- _shared(e) {
1601
- this.style.textAlign && (e.textAlign = this.style.textAlign), this.style.direction && (e.direction = this.style.direction), this.style.textBaseline && (e.textBaseline = this.style.textBaseline);
1602
- }
1603
- _prerender(e, t = !1, i = !1) {
1604
- super._render(e);
1605
- const r = e.layer.context, a = this._renderer._ghostLayer.context, s = this.style;
1606
- let n = this._getFontStyle(void 0, i);
1607
- r.font = n, this._isInteractive(e) && !t && (a.font = n), s.fill && (s.fill instanceof X ? r.fillStyle = s.fill.toCSS(s.fillOpacity != null ? s.fillOpacity : 1) : r.fillStyle = s.fill), s.shadowColor && (e.layer.context.shadowColor = s.shadowColor.toCSS(s.shadowOpacity || 1)), s.shadowBlur && (e.layer.context.shadowBlur = s.shadowBlur), s.shadowOffsetX && (e.layer.context.shadowOffsetX = s.shadowOffsetX), s.shadowOffsetY && (e.layer.context.shadowOffsetY = s.shadowOffsetY), this._shared(r), this._isInteractive(e) && !t && (a.fillStyle = this._getColorId(), this._shared(a));
1608
- }
1609
- _getFontStyle(e, t = !1) {
1610
- const i = this.style;
1611
- let r = [];
1612
- return e && e.fontVariant ? r.push(e.fontVariant) : i.fontVariant && r.push(i.fontVariant), t || (e && e.fontWeight ? r.push(e.fontWeight) : i.fontWeight && r.push(i.fontWeight)), e && e.fontStyle ? r.push(e.fontStyle) : i.fontStyle && r.push(i.fontStyle), e && e.fontSize ? (H(e.fontSize) && (e.fontSize = e.fontSize + "px"), r.push(e.fontSize)) : i.fontSize && (H(i.fontSize) && (i.fontSize = i.fontSize + "px"), r.push(i.fontSize)), e && e.fontFamily ? r.push(e.fontFamily) : i.fontFamily ? r.push(i.fontFamily) : r.length && r.push("Arial"), r.join(" ");
1613
- }
1614
- _render(e) {
1615
- if (this._textInfo || this._measure(e), this.textVisible) {
1616
- const t = this._isInteractive(e), i = e.layer.context, r = e.layer.dirty, a = this._renderer._ghostLayer.context;
1617
- i.save(), a.save(), this._prerender(e), y(this._textInfo, (s, n) => {
1618
- y(s.textChunks, (h, c) => {
1619
- if (h.style && (i.save(), a.save(), i.font = h.style, this._isInteractive(e) && (a.font = h.style)), h.fill && (i.save(), i.fillStyle = h.fill.toCSS()), r && i.fillText(h.text, h.offsetX, s.offsetY + h.offsetY), h.textDecoration == "underline" || h.textDecoration == "line-through") {
1620
- let g, u = 1, b = 1, o = h.height, p = h.offsetX;
1621
- switch (this.style.textAlign) {
1622
- case "right":
1623
- case "end":
1624
- p -= h.width;
1625
- break;
1626
- case "center":
1627
- p -= h.width / 2;
1628
- }
1629
- if (h.style)
1630
- switch (U.getTextStyle(h.style).fontWeight) {
1631
- case "bolder":
1632
- case "bold":
1633
- case "700":
1634
- case "800":
1635
- case "900":
1636
- u = 2;
1637
- }
1638
- o && (b = o / 20), g = h.textDecoration == "line-through" ? u + s.offsetY + h.offsetY - h.height / 2 : u + 1.5 * b + s.offsetY + h.offsetY, i.save(), i.beginPath(), h.fill ? i.strokeStyle = h.fill.toCSS() : this.style.fill && this.style.fill instanceof X && (i.strokeStyle = this.style.fill.toCSS()), i.lineWidth = u * b, i.moveTo(p, g), i.lineTo(p + h.width, g), i.stroke(), i.restore();
1639
- }
1640
- t && this.interactive && a.fillText(h.text, h.offsetX, s.offsetY + h.offsetY), h.fill && i.restore(), h.style && (i.restore(), a.restore());
1641
- });
1642
- }), i.restore(), a.restore();
1643
- }
1644
- }
1645
- _addBounds(e) {
1646
- if (this.visible && this.isMeasured) {
1647
- const t = this._measure({ inactive: this.inactive, layer: this.getLayer() });
1648
- M(e, { x: t.left, y: t.top }), M(e, { x: t.right, y: t.bottom });
1649
- }
1650
- }
1651
- _ignoreFontWeight() {
1652
- return /apple/i.test(navigator.vendor);
1653
- }
1654
- _measure(e) {
1655
- const t = e.layer.context, i = this._renderer._ghostLayer.context, r = this.style.direction == "rtl";
1656
- this._textInfo = [];
1657
- const a = this.style.oversizedBehavior, s = this.style.maxWidth, n = H(s) && a == "truncate", h = H(s) && (a == "wrap" || a == "wrap-no-break");
1658
- t.save(), i.save(), this._prerender(e, !0, this._ignoreFontWeight());
1659
- const c = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ", g = this.text.toString().replace(/\r/g, "").split(/\n/);
1660
- let u, b = !0, o = 0, p = 0, l = 0;
1661
- y(g, (_, w) => {
1662
- let v;
1663
- for (v = _ == "" ? [{ type: "value", text: "" }] : U.chunk(_, !1, this.style.ignoreFormatting); v.length > 0; ) {
1664
- let f = { offsetY: l, ascent: 0, width: 0, height: 0, left: 0, right: 0, textChunks: [] };
1665
- const x = this._measureText(c, t), A = x.actualBoundingBoxAscent + x.actualBoundingBoxDescent;
1666
- let k;
1667
- f.height = A, f.ascent = x.actualBoundingBoxAscent;
1668
- let S, B, P, z = this.style.textDecoration, D = !1, I = !0, G = [];
1669
- et(v, (T, ue) => {
1670
- if (T.type == "format")
1671
- if (T.text == "[/]")
1672
- b || (t.restore(), i.restore(), b = !0), S = void 0, u = void 0, B = void 0, z = this.style.textDecoration, P = void 0, k = T.text;
1673
- else {
1674
- b || (t.restore(), i.restore());
1675
- let O = U.getTextStyle(T.text);
1676
- const F = this._getFontStyle(O);
1677
- t.save(), i.save(), t.font = F, u = F, k = T.text, O.textDecoration && (z = O.textDecoration), O.fill && (S = O.fill), O.width && (B = R(O.width)), O.verticalAlign && (P = O.verticalAlign), b = !1;
1678
- const Y = this._measureText(c, t), N = Y.actualBoundingBoxAscent + Y.actualBoundingBoxDescent;
1679
- N > f.height && (f.height = N), Y.actualBoundingBoxAscent > f.ascent && (f.ascent = Y.actualBoundingBoxAscent);
1680
- }
1681
- else if (T.type == "value" && !D) {
1682
- const O = this._measureText(T.text, t);
1683
- let F = O.actualBoundingBoxLeft + O.actualBoundingBoxRight;
1684
- if (n) {
1685
- let W = I || this.style.breakWords || !1;
1686
- const V = this.style.ellipsis || "", Ae = this._measureText(V, t), at = Ae.actualBoundingBoxLeft + Ae.actualBoundingBoxRight;
1687
- if (f.width + F > s) {
1688
- const nt = s - f.width - at;
1689
- T.text = this._truncateText(t, T.text, nt, W), T.text += V, D = !0;
1690
- }
1691
- } else if (h && f.width + F > s) {
1692
- const W = s - f.width, V = this._truncateText(t, T.text, W, !1, I && this.style.oversizedBehavior != "wrap-no-break");
1693
- if (V == "")
1694
- return this.textVisible = !0, !1;
1695
- G = v.slice(ue + 1), xe(V) != xe(T.text) && (G.unshift({ type: "value", text: T.text.substr(V.length) }), k && G.unshift({ type: "format", text: k })), T.text = xe(V), v = [], D = !0;
1696
- }
1697
- let Y = 1, N = 1;
1698
- if (u && B && B > F) {
1699
- const W = F / B;
1700
- switch (this.style.textAlign) {
1701
- case "right":
1702
- case "end":
1703
- Y = W;
1704
- break;
1705
- case "center":
1706
- Y = W, N = W;
1707
- break;
1708
- default:
1709
- N = W;
1710
- }
1711
- F = B;
1712
- }
1713
- const we = O.actualBoundingBoxAscent + O.actualBoundingBoxDescent;
1714
- we > f.height && (f.height = we), O.actualBoundingBoxAscent > f.ascent && (f.ascent = O.actualBoundingBoxAscent), f.width += F, f.left += O.actualBoundingBoxLeft / Y, f.right += O.actualBoundingBoxRight / N, f.textChunks.push({ style: u, fill: S, text: T.text, width: F, height: we, left: O.actualBoundingBoxLeft, right: O.actualBoundingBoxRight, ascent: O.actualBoundingBoxAscent, offsetX: 0, offsetY: 0, textDecoration: z, verticalAlign: P }), I = !1;
1715
- }
1716
- return !0;
1717
- }), this.style.lineHeight instanceof tt ? (f.height *= this.style.lineHeight.value, f.ascent *= this.style.lineHeight.value) : (f.height *= this.style.lineHeight || 1.2, f.ascent *= this.style.lineHeight || 1.2), o < f.left && (o = f.left), p < f.right && (p = f.right), this._textInfo.push(f), l += f.height, v = G || [];
1718
- }
1719
- }), b || (t.restore(), i.restore()), y(this._textInfo, (_, w) => {
1720
- let v = 0;
1721
- y(_.textChunks, (f) => {
1722
- if (f.offsetX = v + f.left - _.left, f.offsetY += _.height - _.height * (this.style.baselineRatio || 0.19), v += f.width, f.verticalAlign)
1723
- switch (f.verticalAlign) {
1724
- case "super":
1725
- f.offsetY -= _.height / 2 - f.height / 2;
1726
- break;
1727
- case "sub":
1728
- f.offsetY += f.height / 2;
1729
- }
1730
- });
1731
- });
1732
- const m = { left: r ? -p : -o, top: 0, right: r ? o : p, bottom: l };
1733
- if (a !== "none") {
1734
- const _ = this._fitRatio(m);
1735
- if (_ < 1)
1736
- if (a == "fit")
1737
- H(this.style.minScale) && _ < this.style.minScale ? (this.textVisible = !1, m.left = 0, m.top = 0, m.right = 0, m.bottom = 0) : (this._originalScale && this._originalScale != 1 || (this._originalScale = this.scale), this.scale = _, this.textVisible = !0);
1738
- else if (a == "hide")
1739
- this.textVisible = !1, m.left = 0, m.top = 0, m.right = 0, m.bottom = 0;
1740
- else {
1741
- switch (this.style.textAlign) {
1742
- case "right":
1743
- case "end":
1744
- m.left = -s, m.right = 0;
1745
- break;
1746
- case "center":
1747
- m.left = -s / 2, m.right = s / 2;
1748
- break;
1749
- default:
1750
- m.left = 0, m.right = s;
1751
- }
1752
- this.scale = this._originalScale || 1, this._originalScale = void 0, this.textVisible = !0;
1753
- }
1754
- else
1755
- this.scale = this._originalScale || 1, this._originalScale = void 0, this.textVisible = !0;
1756
- }
1757
- return t.restore(), i.restore(), m;
1758
- }
1759
- _fitRatio(e) {
1760
- const t = this.style.maxWidth, i = this.style.maxHeight;
1761
- if (!H(t) && !H(i))
1762
- return 1;
1763
- const r = e.right - e.left, a = e.bottom - e.top;
1764
- return Math.min(t / r || 1, i / a || 1);
1765
- }
1766
- _truncateText(e, t, i, r = !1, a = !0) {
1767
- let s;
1768
- do {
1769
- if (r)
1770
- t = t.slice(0, -1);
1771
- else {
1772
- let h = t.replace(/[^,;:!?\\\/\s​]+[,;:!?\\\/\s​]*$/g, "");
1773
- if (h != "" && h !== t || !a) {
1774
- if (h == "")
1775
- return t;
1776
- t = h;
1777
- } else
1778
- r = !0;
1779
- }
1780
- const n = this._measureText(t, e);
1781
- s = n.actualBoundingBoxLeft + n.actualBoundingBoxRight;
1782
- } while (s > i && t != "");
1783
- return t;
1784
- }
1785
- _measureText(e, t) {
1786
- let i = t.measureText(e), r = {};
1787
- if (i.actualBoundingBoxAscent == null) {
1788
- const s = document.createElement("div");
1789
- s.innerText = e, s.style.visibility = "hidden", s.style.position = "absolute", s.style.top = "-1000000px;", s.style.fontFamily = this.style.fontFamily || "", s.style.fontSize = this.style.fontSize + "", document.body.appendChild(s);
1790
- const n = s.getBoundingClientRect();
1791
- document.body.removeChild(s);
1792
- const h = n.height, c = i.width;
1793
- r = { actualBoundingBoxAscent: h, actualBoundingBoxDescent: 0, actualBoundingBoxLeft: 0, actualBoundingBoxRight: c, fontBoundingBoxAscent: h, fontBoundingBoxDescent: 0, width: c };
1794
- } else
1795
- r = { actualBoundingBoxAscent: i.actualBoundingBoxAscent, actualBoundingBoxDescent: i.actualBoundingBoxDescent, actualBoundingBoxLeft: i.actualBoundingBoxLeft, actualBoundingBoxRight: i.actualBoundingBoxRight, fontBoundingBoxAscent: i.actualBoundingBoxAscent, fontBoundingBoxDescent: i.actualBoundingBoxDescent, width: i.width };
1796
- const a = i.width;
1797
- switch (this.style.textAlign) {
1798
- case "right":
1799
- case "end":
1800
- r.actualBoundingBoxLeft = a, r.actualBoundingBoxRight = 0;
1801
- break;
1802
- case "center":
1803
- r.actualBoundingBoxLeft = a / 2, r.actualBoundingBoxRight = a / 2;
1804
- break;
1805
- default:
1806
- r.actualBoundingBoxLeft = 0, r.actualBoundingBoxRight = a;
1807
- }
1808
- return r;
1809
- }
1810
- }
1811
- class wi {
1812
- constructor() {
1813
- Object.defineProperty(this, "fill", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "fillOpacity", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "textAlign", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "fontFamily", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "fontSize", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "fontWeight", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "fontStyle", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "fontVariant", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "textDecoration", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowColor", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowBlur", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowOffsetX", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowOffsetY", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowOpacity", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "lineHeight", { enumerable: !0, configurable: !0, writable: !0, value: Ze(120) }), Object.defineProperty(this, "baselineRatio", { enumerable: !0, configurable: !0, writable: !0, value: 0.19 }), Object.defineProperty(this, "direction", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "textBaseline", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "oversizedBehavior", { enumerable: !0, configurable: !0, writable: !0, value: "none" }), Object.defineProperty(this, "breakWords", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "ellipsis", { enumerable: !0, configurable: !0, writable: !0, value: "…" }), Object.defineProperty(this, "maxWidth", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "maxHeight", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "minScale", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "ignoreFormatting", { enumerable: !0, configurable: !0, writable: !0, value: !1 });
1814
- }
1815
- }
1816
- class xi extends st {
1817
- constructor() {
1818
- super(...arguments), Object.defineProperty(this, "textType", { enumerable: !0, configurable: !0, writable: !0, value: "circular" }), Object.defineProperty(this, "radius", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "startAngle", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "inside", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "orientation", { enumerable: !0, configurable: !0, writable: !0, value: "auto" }), Object.defineProperty(this, "kerning", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_textReversed", { enumerable: !0, configurable: !0, writable: !0, value: !1 });
1819
- }
1820
- _render(e) {
1821
- this.textType === "circular" ? this._renderCircular(e) : super._render(e);
1822
- }
1823
- _renderCircular(e) {
1824
- if (this.textVisible) {
1825
- this._prerender(e);
1826
- const t = this._isInteractive(e), i = e.layer.context, r = e.layer.dirty, a = this._renderer._ghostLayer.context;
1827
- i.save(), t && a.save(), this._textInfo || this._measure(e);
1828
- let s = this.radius || 0, n = this.startAngle || 0, h = 0, c = this.orientation, g = c == "auto" ? "auto" : c == "inward";
1829
- const u = this.inside, b = this.style.textAlign || "left", o = this.kerning || 0;
1830
- let p = b == "left" ? 1 : -1;
1831
- const l = !this._textReversed;
1832
- if (g == "auto") {
1833
- let m = 0, _ = 0;
1834
- y(this._textInfo, (w, v) => {
1835
- const f = n + w.width / (s - w.height) / 2 * -p;
1836
- f > m && (m = f);
1837
- }), _ = b == "left" ? (m + h / 2) * oe : b == "right" ? (m - h / 2) * oe : n * oe, _ = At(_), g = _ >= 270 || _ <= 90;
1838
- }
1839
- g == 1 && l && (this._textInfo.reverse(), this._textReversed = !0), y(this._textInfo, (m, _) => {
1840
- const w = m.height;
1841
- u || (s += w), (p == -1 && g || p == 1 && !g) && l && m.textChunks.reverse();
1842
- let v = n;
1843
- h = 0, b == "center" && (v += m.width / (s - w) / 2 * -p, h = v - n), v += Math.PI * (g ? 0 : 1), i.save(), t && a.save(), i.rotate(v), t && a.rotate(v);
1844
- let f = 0;
1845
- y(m.textChunks, (x, A) => {
1846
- const k = x.text, S = x.width;
1847
- f = S / 2 / (s - w) * p, i.rotate(f), t && a.rotate(f), x.style && (i.save(), a.save(), i.font = x.style, t && (a.font = x.style)), x.fill && (i.save(), i.fillStyle = x.fill.toCSS()), i.textBaseline = "middle", i.textAlign = "center", t && (a.textBaseline = "middle", a.textAlign = "center"), r && i.fillText(k, 0, (g ? 1 : -1) * (0 - s + w / 2)), t && a.fillText(k, 0, (g ? 1 : -1) * (0 - s + w / 2)), x.fill && i.restore(), x.style && (i.restore(), a.restore()), f = (S / 2 + o) / (s - w) * p, i.rotate(f), t && a.rotate(f);
1848
- }), i.restore(), t && a.restore(), u && (s -= w);
1849
- }), i.restore(), t && a.restore();
1850
- }
1851
- }
1852
- _measure(e) {
1853
- return this.textType === "circular" ? this._measureCircular(e) : super._measure(e);
1854
- }
1855
- _measureCircular(e) {
1856
- const t = e.layer.context, i = this._renderer._ghostLayer.context, r = this.style.direction == "rtl", a = this.style.oversizedBehavior, s = this.style.maxWidth, n = H(s) && a == "truncate", h = this.style.ellipsis || "";
1857
- let c;
1858
- this.textVisible = !0, this._textInfo = [], this._textReversed = !1, t.save(), i.save(), this._prerender(e, !0);
1859
- const g = this.text.toString().replace(/\r/g, "").split(/\n/);
1860
- let u = !0, b = 0, o = 0;
1861
- return y(g, (p, l) => {
1862
- let m, _, w, v = U.chunk(p, !1, this.style.ignoreFormatting), f = { offsetY: o, ascent: 0, width: 0, height: 0, left: 0, right: 0, textChunks: [] };
1863
- y(v, (x, A) => {
1864
- if (x.type == "format") {
1865
- if (x.text == "[/]")
1866
- u || (t.restore(), i.restore(), u = !0), _ = void 0, m = void 0, w = void 0;
1867
- else {
1868
- let k = U.getTextStyle(x.text);
1869
- const S = this._getFontStyle(k);
1870
- t.save(), i.save(), t.font = S, m = S, k.fill && (_ = k.fill), k.width && (w = R(k.width)), u = !1;
1871
- }
1872
- n && (c = this._measureText(h, t));
1873
- } else if (x.type == "value") {
1874
- const k = x.text.match(/./gu) || [];
1875
- r && k.reverse();
1876
- for (let S = 0; S < k.length; S++) {
1877
- const B = k[S], P = this._measureText(B, t);
1878
- let z = P.width;
1879
- m && w && w > z && (z = w);
1880
- const D = P.actualBoundingBoxAscent + P.actualBoundingBoxDescent;
1881
- if (D > f.height && (f.height = D), P.actualBoundingBoxAscent > f.ascent && (f.ascent = P.actualBoundingBoxAscent), b += z, n) {
1882
- c || (c = this._measureText(h, t));
1883
- const I = c.actualBoundingBoxLeft + c.actualBoundingBoxRight;
1884
- if (b + I > s) {
1885
- f.textChunks.length == 1 ? this.textVisible = !1 : (f.width += I, f.left += c.actualBoundingBoxLeft, f.right += c.actualBoundingBoxRight, f.textChunks.push({ style: m, fill: _, text: h, width: I, height: D + c.actualBoundingBoxDescent, left: c.actualBoundingBoxLeft, right: c.actualBoundingBoxRight, ascent: c.actualBoundingBoxAscent, offsetX: 0, offsetY: D, textDecoration: void 0 }));
1886
- break;
1887
- }
1888
- }
1889
- if (f.width += z, f.left += P.actualBoundingBoxLeft, f.right += P.actualBoundingBoxRight, f.textChunks.push({ style: m, fill: _, text: B, width: z, height: D + P.actualBoundingBoxDescent, left: P.actualBoundingBoxLeft, right: P.actualBoundingBoxRight, ascent: P.actualBoundingBoxAscent, offsetX: 0, offsetY: D, textDecoration: void 0 }), r)
1890
- break;
1891
- }
1892
- }
1893
- }), this.style.lineHeight instanceof tt ? f.height *= this.style.lineHeight.value : f.height *= this.style.lineHeight || 1.2, this._textInfo.push(f), o += f.height;
1894
- }), u || (t.restore(), i.restore()), a == "hide" && b > s && (this.textVisible = !1), y(this._textInfo, (p) => {
1895
- y(p.textChunks, (l) => {
1896
- l.offsetY += Math.round((p.height - l.height + (p.ascent - l.ascent)) / 2);
1897
- });
1898
- }), t.restore(), i.restore(), { left: 0, top: 0, right: 0, bottom: 0 };
1899
- }
1900
- }
1901
- class Pi extends ve {
1902
- constructor(e, t) {
1903
- super(e), Object.defineProperty(this, "width", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "height", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "image", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "tainted", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowColor", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowBlur", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowOffsetX", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowOffsetY", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "shadowOpacity", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_imageMask", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.image = t;
1904
- }
1905
- _dispose() {
1906
- super._dispose(), this._imageMask && ne(this._imageMask);
1907
- }
1908
- getLocalBounds() {
1909
- if (!this._localBounds) {
1910
- let e = 0, t = 0;
1911
- this.width && (e = this.width), this.height && (t = this.height), this._localBounds = { left: 0, top: 0, right: e, bottom: t }, this._addBounds(this._localBounds);
1912
- }
1913
- return this._localBounds;
1914
- }
1915
- _render(e) {
1916
- if (super._render(e), this.image) {
1917
- if (this.tainted === void 0 && (this.tainted = Xe(this.image), e.layer.tainted = !0), this.tainted && this._renderer._omitTainted)
1918
- return;
1919
- if (e.layer.dirty) {
1920
- this.shadowColor && (e.layer.context.shadowColor = this.shadowColor.toCSS(this.shadowOpacity || 1)), this.shadowBlur && (e.layer.context.shadowBlur = this.shadowBlur), this.shadowOffsetX && (e.layer.context.shadowOffsetX = this.shadowOffsetX), this.shadowOffsetY && (e.layer.context.shadowOffsetY = this.shadowOffsetY);
1921
- const t = this.width || this.image.naturalWidth, i = this.height || this.image.naturalHeight;
1922
- e.layer.context.drawImage(this.image, 0, 0, t, i);
1923
- }
1924
- if (this.interactive && this._isInteractive(e)) {
1925
- const t = this._getMask(this.image);
1926
- this._renderer._ghostLayer.context.drawImage(t, 0, 0);
1927
- }
1928
- }
1929
- }
1930
- clear() {
1931
- super.clear(), this.image = void 0, this._imageMask = void 0;
1932
- }
1933
- _getMask(e) {
1934
- if (this._imageMask === void 0) {
1935
- const t = this.width || e.naturalWidth, i = this.height || e.naturalHeight, r = document.createElement("canvas");
1936
- r.width = t, r.height = i;
1937
- const a = r.getContext("2d");
1938
- a.imageSmoothingEnabled = !1, a.fillStyle = this._getColorId(), a.fillRect(0, 0, t, i), Xe(e) || (a.globalCompositeOperation = "destination-in", a.drawImage(e, 0, 0, t, i)), this._imageMask = r;
1939
- }
1940
- return this._imageMask;
1941
- }
1942
- }
1943
- class Oi {
1944
- constructor(e, t, i, r) {
1945
- Object.defineProperty(this, "event", { enumerable: !0, configurable: !0, writable: !0, value: e }), Object.defineProperty(this, "originalPoint", { enumerable: !0, configurable: !0, writable: !0, value: t }), Object.defineProperty(this, "point", { enumerable: !0, configurable: !0, writable: !0, value: i }), Object.defineProperty(this, "bbox", { enumerable: !0, configurable: !0, writable: !0, value: r }), Object.defineProperty(this, "id", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "simulated", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "native", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), me("touchevents") && e instanceof Touch ? this.id = e.identifier : this.id = null;
1946
- }
1947
- }
1948
- class ki extends Et {
1949
- constructor(e) {
1950
- if (super(), Object.defineProperty(this, "view", { enumerable: !0, configurable: !0, writable: !0, value: document.createElement("div") }), Object.defineProperty(this, "_layerDom", { enumerable: !0, configurable: !0, writable: !0, value: document.createElement("div") }), Object.defineProperty(this, "layers", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_dirtyLayers", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "defaultLayer", { enumerable: !0, configurable: !0, writable: !0, value: this.getLayer(0) }), Object.defineProperty(this, "_ghostLayer", { enumerable: !0, configurable: !0, writable: !0, value: new Mi() }), Object.defineProperty(this, "_patternCanvas", { enumerable: !0, configurable: !0, writable: !0, value: document.createElement("canvas") }), Object.defineProperty(this, "_patternContext", { enumerable: !0, configurable: !0, writable: !0, value: this._patternCanvas.getContext("2d") }), Object.defineProperty(this, "_realWidth", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_realHeight", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_calculatedWidth", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_calculatedHeight", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "resolution", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "interactionsEnabled", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "_listeners", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_events", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_colorId", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_colorMap", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_forceInteractive", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_omitTainted", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_hovering", { enumerable: !0, configurable: !0, writable: !0, value: /* @__PURE__ */ new Set() }), Object.defineProperty(this, "_dragging", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_mousedown", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_lastPointerMoveEvent", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "tapToActivate", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "tapToActivateTimeout", { enumerable: !0, configurable: !0, writable: !0, value: 3e3 }), Object.defineProperty(this, "_touchActive", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_touchActiveTimeout", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.resolution = e ?? window.devicePixelRatio, this.view.style.position = "absolute", this.view.setAttribute("aria-hidden", "true"), this.view.appendChild(this._layerDom), this._disposers.push(new $(() => {
1951
- he(this._events, (t, i) => {
1952
- i.disposer.dispose();
1953
- }), y(this.layers, (t) => {
1954
- ne(t.view), t.exportableView && ne(t.exportableView);
1955
- }), ne(this._ghostLayer.view), ne(this._patternCanvas);
1956
- })), this._disposers.push(Ke(() => {
1957
- e == null && (this.resolution = window.devicePixelRatio);
1958
- })), me("touchevents")) {
1959
- const t = (i) => {
1960
- this._dragging.length !== 0 && et(this._dragging, (r) => !r.value.shouldCancelTouch() || (i.preventDefault(), !1)), this._touchActiveTimeout && this._delayTouchDeactivate();
1961
- };
1962
- this._disposers.push(C(window, "touchstart", t, { passive: !1 })), this._disposers.push(C(this.view, "touchstart", t, { passive: !1 })), this._disposers.push(C(this.view, "touchmove", () => {
1963
- this._touchActiveTimeout && this._delayTouchDeactivate();
1964
- }, { passive: !0 })), this._disposers.push(C(window, "click", (i) => {
1965
- this._touchActive = !1;
1966
- }, { passive: !0 })), this._disposers.push(C(this.view, "click", (i) => {
1967
- window.setTimeout(() => {
1968
- this._touchActive = !0, this._delayTouchDeactivate();
1969
- }, 100);
1970
- }, { passive: !0 }));
1971
- }
1972
- me("wheelevents") && this._disposers.push(C(this.view, "wheel", (t) => {
1973
- let i = !1;
1974
- this._hovering.forEach((r) => {
1975
- if (r.wheelable)
1976
- return i = !0, !1;
1977
- }), i && t.preventDefault();
1978
- }, { passive: !1 }));
1979
- }
1980
- resetImageArray() {
1981
- this._ghostLayer.imageArray = void 0;
1982
- }
1983
- _delayTouchDeactivate() {
1984
- this._touchActiveTimeout && clearTimeout(this._touchActiveTimeout), this.tapToActivateTimeout > 0 && (this._touchActiveTimeout = window.setTimeout(() => {
1985
- this._touchActive = !1;
1986
- }, this.tapToActivateTimeout));
1987
- }
1988
- get debugGhostView() {
1989
- return !!this._ghostLayer.view.parentNode;
1990
- }
1991
- set debugGhostView(e) {
1992
- e ? this._ghostLayer.view.parentNode || this.view.appendChild(this._ghostLayer.view) : this._ghostLayer.view.parentNode && this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view);
1993
- }
1994
- createLinearGradient(e, t, i, r) {
1995
- return this.defaultLayer.context.createLinearGradient(e, t, i, r);
1996
- }
1997
- createRadialGradient(e, t, i, r, a, s) {
1998
- return this.defaultLayer.context.createRadialGradient(e, t, i, r, a, s);
1999
- }
2000
- createPattern(e, t, i, r, a) {
2001
- return this._patternCanvas.width = r, this._patternCanvas.height = a, this._patternContext.clearRect(0, 0, r, a), t.renderDetached(this._patternContext), e.renderDetached(this._patternContext), this._patternContext.createPattern(this._patternCanvas, i);
2002
- }
2003
- makeContainer() {
2004
- return new ii(this);
2005
- }
2006
- makeGraphics() {
2007
- return new vi(this);
2008
- }
2009
- makeText(e, t) {
2010
- return new st(this, e, t);
2011
- }
2012
- makeTextStyle() {
2013
- return new wi();
2014
- }
2015
- makeRadialText(e, t) {
2016
- return new xi(this, e, t);
2017
- }
2018
- makePicture(e) {
2019
- return new Pi(this, e);
2020
- }
2021
- resizeLayer(e) {
2022
- e.resize(this._calculatedWidth, this._calculatedHeight, this._calculatedWidth, this._calculatedHeight, this.resolution);
2023
- }
2024
- resizeGhost() {
2025
- this._ghostLayer.resize(this._calculatedWidth, this._calculatedHeight, this._calculatedWidth, this._calculatedHeight, this.resolution);
2026
- }
2027
- resize(e, t, i, r) {
2028
- this._realWidth = e, this._realHeight = t, this._calculatedWidth = i, this._calculatedHeight = r, y(this.layers, (a) => {
2029
- a && (a.dirty = !0, this.resizeLayer(a));
2030
- }), this.resizeGhost(), this.view.style.width = i + "px", this.view.style.height = r + "px";
2031
- }
2032
- createDetachedLayer(e = !1) {
2033
- const t = document.createElement("canvas"), i = t.getContext("2d", { willReadFrequently: e }), r = new Si(t, i);
2034
- return t.style.position = "absolute", t.style.top = "0px", t.style.left = "0px", r;
2035
- }
2036
- getLayerByOrder(e) {
2037
- const t = this.layers, i = t.length;
2038
- for (let r = 0; r < i; r++) {
2039
- const a = t[r];
2040
- if (a.order == e)
2041
- return a;
2042
- }
2043
- }
2044
- getLayer(e, t = !0) {
2045
- let i = this.getLayerByOrder(e);
2046
- if (i)
2047
- return i;
2048
- const r = this.createDetachedLayer(e == 99);
2049
- r.order = e, r.visible = t, r.view.className = "am5-layer-" + e, r.visible && this.resizeLayer(r);
2050
- const a = this.layers;
2051
- a.push(r), a.sort((h, c) => h.order > c.order ? 1 : h.order < c.order ? -1 : 0);
2052
- const s = a.length;
2053
- let n;
2054
- for (let h = Tt(a, r) + 1; h < s; h++)
2055
- if (a[h].visible) {
2056
- n = a[h];
2057
- break;
2058
- }
2059
- return r.visible && (n === void 0 ? this._layerDom.appendChild(r.view) : this._layerDom.insertBefore(r.view, n.view)), r;
2060
- }
2061
- render(e) {
2062
- if (this._dirtyLayers.length = 0, y(this.layers, (t) => {
2063
- t && t.dirty && t.visible && (this._dirtyLayers.push(t), t.clear());
2064
- }), this._ghostLayer.clear(), e.render({ inactive: null, layer: this.defaultLayer }), this._ghostLayer.context.restore(), y(this.layers, (t) => {
2065
- if (t) {
2066
- const i = t.context;
2067
- i.beginPath(), i.moveTo(0, 0), i.stroke();
2068
- }
2069
- }), y(this._dirtyLayers, (t) => {
2070
- t.context.restore(), t.dirty = !1;
2071
- }), this._hovering.size && this._lastPointerMoveEvent) {
2072
- const { events: t, target: i, native: r } = this._lastPointerMoveEvent;
2073
- y(t, (a) => {
2074
- this._dispatchGlobalMousemove(a, i, r);
2075
- });
2076
- }
2077
- }
2078
- paintId(e) {
2079
- const t = Qt(++this._colorId), i = X.fromHex(t).toCSS();
2080
- return this._colorMap[i] = e, i;
2081
- }
2082
- _removeObject(e) {
2083
- e._colorId !== void 0 && delete this._colorMap[e._colorId];
2084
- }
2085
- _adjustBoundingBox(e) {
2086
- const t = this._ghostLayer.margin;
2087
- return new DOMRect(-t.left, -t.top, e.width + t.left + t.right, e.height + t.top + t.bottom);
2088
- }
2089
- getEvent(e, t = !0) {
2090
- const i = this.view.getBoundingClientRect(), r = e.clientX || 0, a = e.clientY || 0, s = this._calculatedWidth / this._realWidth, n = this._calculatedHeight / this._realHeight, h = { x: r - i.left, y: a - i.top }, c = { x: (r - (t ? i.left : 0)) * s, y: (a - (t ? i.top : 0)) * n };
2091
- return new Oi(e, h, c, this._adjustBoundingBox(i));
2092
- }
2093
- _getHitTarget(e, t, i) {
2094
- if (t.width === 0 || t.height === 0 || e.x < t.left || e.x > t.right || e.y < t.top || e.y > t.bottom || !i || !this._layerDom.contains(i))
2095
- return;
2096
- const r = this._ghostLayer.getImageData(e, t);
2097
- if (r.data[0] === 0 && r.data[1] === 0 && r.data[2] === 0)
2098
- return !1;
2099
- const a = X.fromRGB(r.data[0], r.data[1], r.data[2]).toCSS();
2100
- return this._colorMap[a];
2101
- }
2102
- getObjectAtPoint(e) {
2103
- const t = this._ghostLayer.getImageArray(e);
2104
- if (t[0] === 0 && t[1] === 0 && t[2] === 0)
2105
- return;
2106
- const i = X.fromRGB(t[0], t[1], t[2]).toCSS();
2107
- return this._colorMap[i];
2108
- }
2109
- _withEvents(e, t) {
2110
- const i = this._events[e];
2111
- if (i !== void 0) {
2112
- i.dispatching = !0;
2113
- try {
2114
- t(i);
2115
- } finally {
2116
- i.dispatching = !1, i.cleanup && (i.cleanup = !1, _e(i.callbacks, (r) => !r.disposed), i.callbacks.length === 0 && (i.disposer.dispose(), delete this._events[e]));
2117
- }
2118
- }
2119
- }
2120
- _dispatchEventAll(e, t) {
2121
- this.interactionsEnabled && this._withEvents(e, (i) => {
2122
- y(i.callbacks, (r) => {
2123
- r.disposed || r.callback.call(r.context, t);
2124
- });
2125
- });
2126
- }
2127
- _dispatchEvent(e, t, i) {
2128
- if (!this.interactionsEnabled)
2129
- return !1;
2130
- let r = !1;
2131
- return this._withEvents(e, (a) => {
2132
- y(a.callbacks, (s) => {
2133
- s.disposed || s.object !== t || (s.callback.call(s.context, i), r = !0);
2134
- });
2135
- }), r;
2136
- }
2137
- _dispatchMousedown(e, t) {
2138
- const i = e.button;
2139
- if (i != 0 && i != 2 && i != 1 && i !== void 0)
2140
- return;
2141
- const r = this.getEvent(e), a = this._getHitTarget(r.originalPoint, r.bbox, t);
2142
- if (a) {
2143
- const s = r.id;
2144
- let n = !1;
2145
- fe(a, (h) => {
2146
- const c = { id: s, value: h };
2147
- return this._mousedown.push(c), !n && this._dispatchEvent("pointerdown", h, r) && (n = !0, this._dragging.some((g) => g.value === h && g.id === s) || this._dragging.push(c)), !0;
2148
- });
2149
- }
2150
- }
2151
- _dispatchGlobalMousemove(e, t, i) {
2152
- const r = this.getEvent(e), a = this._getHitTarget(r.originalPoint, r.bbox, t);
2153
- r.native = i, a ? (this._hovering.forEach((s) => {
2154
- s.contains(a) || (this._hovering.delete(s), s.cursorOverStyle && be(document.body, "cursor", s._replacedCursorStyle), this._dispatchEvent("pointerout", s, r));
2155
- }), r.native && fe(a, (s) => (this._hovering.has(s) || (this._hovering.add(s), s.cursorOverStyle && (s._replacedCursorStyle = Lt(document.body, "cursor"), be(document.body, "cursor", s.cursorOverStyle)), this._dispatchEvent("pointerover", s, r)), !0))) : (this._hovering.forEach((s) => {
2156
- s.cursorOverStyle && be(document.body, "cursor", s._replacedCursorStyle), this._dispatchEvent("pointerout", s, r);
2157
- }), this._hovering.clear()), this._dispatchEventAll("globalpointermove", r);
2158
- }
2159
- removeHovering(e) {
2160
- this._hovering.delete(e), e.cursorOverStyle && be(document.body, "cursor", e._replacedCursorStyle);
2161
- }
2162
- _dispatchGlobalMouseup(e, t) {
2163
- const i = this.getEvent(e);
2164
- i.native = t, this._dispatchEventAll("globalpointerup", i);
2165
- }
2166
- _dispatchDragMove(e) {
2167
- if (this._dragging.length !== 0) {
2168
- const t = this.getEvent(e), i = t.id;
2169
- this._dragging.forEach((r) => {
2170
- r.id === i && this._dispatchEvent("pointermove", r.value, t);
2171
- });
2172
- }
2173
- }
2174
- _dispatchDragEnd(e, t) {
2175
- const i = e.button;
2176
- let r;
2177
- if (i == 0 || i === void 0)
2178
- r = "click";
2179
- else if (i == 2)
2180
- r = "rightclick";
2181
- else {
2182
- if (i != 1)
2183
- return;
2184
- r = "middleclick";
2185
- }
2186
- const a = this.getEvent(e), s = a.id;
2187
- if (this._mousedown.length !== 0) {
2188
- const n = this._getHitTarget(a.originalPoint, a.bbox, t);
2189
- n && this._mousedown.forEach((h) => {
2190
- h.id === s && h.value.contains(n) && this._dispatchEvent(r, h.value, a);
2191
- }), this._mousedown.length = 0;
2192
- }
2193
- this._dragging.length !== 0 && (this._dragging.forEach((n) => {
2194
- n.id === s && this._dispatchEvent("pointerup", n.value, a);
2195
- }), this._dragging.length = 0);
2196
- }
2197
- _dispatchDoubleClick(e, t) {
2198
- const i = this.getEvent(e), r = this._getHitTarget(i.originalPoint, i.bbox, t);
2199
- r && fe(r, (a) => !this._dispatchEvent("dblclick", a, i));
2200
- }
2201
- _dispatchWheel(e, t) {
2202
- const i = this.getEvent(e), r = this._getHitTarget(i.originalPoint, i.bbox, t);
2203
- r && fe(r, (a) => !this._dispatchEvent("wheel", a, i));
2204
- }
2205
- _makeSharedEvent(e, t) {
2206
- if (this._listeners[e] === void 0) {
2207
- const i = t();
2208
- this._listeners[e] = new Ct(() => {
2209
- delete this._listeners[e], i.dispose();
2210
- });
2211
- }
2212
- return this._listeners[e].increment();
2213
- }
2214
- _onPointerEvent(e, t) {
2215
- let i = !1, r = null;
2216
- function a() {
2217
- r = null, i = !1;
2218
- }
2219
- return new He([new $(() => {
2220
- r !== null && clearTimeout(r), a();
2221
- }), C(this.view, Ee(e), (s) => {
2222
- i = !0, r !== null && clearTimeout(r), r = window.setTimeout(a, 0);
2223
- }), ei(window, e, (s, n) => {
2224
- r !== null && (clearTimeout(r), r = null), t(s, n, i), i = !1;
2225
- })]);
2226
- }
2227
- _initEvent(e) {
2228
- switch (e) {
2229
- case "globalpointermove":
2230
- case "pointerover":
2231
- case "pointerout":
2232
- return this._makeSharedEvent("pointermove", () => {
2233
- const t = (i, r, a) => {
2234
- this._lastPointerMoveEvent = { events: i, target: r, native: a }, y(i, (s) => {
2235
- this._dispatchGlobalMousemove(s, r, a);
2236
- });
2237
- };
2238
- return new He([this._onPointerEvent("pointerdown", t), this._onPointerEvent("pointermove", t)]);
2239
- });
2240
- case "globalpointerup":
2241
- return this._makeSharedEvent("pointerup", () => {
2242
- const t = this._onPointerEvent("pointerup", (r, a, s) => {
2243
- y(r, (n) => {
2244
- this._dispatchGlobalMouseup(n, s);
2245
- }), this._lastPointerMoveEvent = { events: r, target: a, native: s };
2246
- }), i = this._onPointerEvent("pointercancel", (r, a, s) => {
2247
- y(r, (n) => {
2248
- this._dispatchGlobalMouseup(n, s);
2249
- }), this._lastPointerMoveEvent = { events: r, target: a, native: s };
2250
- });
2251
- return new $(() => {
2252
- t.dispose(), i.dispose();
2253
- });
2254
- });
2255
- case "click":
2256
- case "rightclick":
2257
- case "middleclick":
2258
- case "pointerdown":
2259
- case "pointermove":
2260
- case "pointerup":
2261
- return this._makeSharedEvent("pointerdown", () => {
2262
- const t = this._onPointerEvent("pointerdown", (s, n) => {
2263
- y(s, (h) => {
2264
- this._dispatchMousedown(h, n);
2265
- });
2266
- }), i = this._onPointerEvent("pointermove", (s) => {
2267
- y(s, (n) => {
2268
- this._dispatchDragMove(n);
2269
- });
2270
- }), r = this._onPointerEvent("pointerup", (s, n) => {
2271
- y(s, (h) => {
2272
- this._dispatchDragEnd(h, n);
2273
- });
2274
- }), a = this._onPointerEvent("pointercancel", (s, n) => {
2275
- y(s, (h) => {
2276
- this._dispatchDragEnd(h, n);
2277
- });
2278
- });
2279
- return new $(() => {
2280
- t.dispose(), i.dispose(), r.dispose(), a.dispose();
2281
- });
2282
- });
2283
- case "dblclick":
2284
- return this._makeSharedEvent("dblclick", () => this._onPointerEvent("dblclick", (t, i) => {
2285
- y(t, (r) => {
2286
- this._dispatchDoubleClick(r, i);
2287
- });
2288
- }));
2289
- case "wheel":
2290
- return this._makeSharedEvent("wheel", () => C(this.view, Ee("wheel"), (t) => {
2291
- this._dispatchWheel(t, Qe(t));
2292
- }, { passive: !1 }));
2293
- }
2294
- }
2295
- _addEvent(e, t, i, r) {
2296
- let a = this._events[t];
2297
- a === void 0 && (a = this._events[t] = { disposer: this._initEvent(t), callbacks: [], dispatching: !1, cleanup: !1 });
2298
- const s = { object: e, context: r, callback: i, disposed: !1 };
2299
- return a.callbacks.push(s), new $(() => {
2300
- s.disposed = !0, a.dispatching ? a.cleanup = !0 : (Te(a.callbacks, s), a.callbacks.length === 0 && (a.disposer.dispose(), delete this._events[t]));
2301
- });
2302
- }
2303
- getCanvas(e, t) {
2304
- this.render(e), t || (t = {});
2305
- let i = this.resolution, r = Math.floor(this._calculatedWidth * this.resolution), a = Math.floor(this._calculatedHeight * this.resolution);
2306
- if (t.minWidth && t.minWidth > r) {
2307
- let o = t.minWidth / r;
2308
- o > i && (i = o * this.resolution);
2309
- }
2310
- if (t.minHeight && t.minHeight > a) {
2311
- let o = t.minHeight / a;
2312
- o > i && (i = o * this.resolution);
2313
- }
2314
- if (t.maxWidth && t.maxWidth < r) {
2315
- let o = t.maxWidth / r;
2316
- o < i && (i = o * this.resolution);
2317
- }
2318
- if (t.maxHeight && t.maxHeight > a) {
2319
- let o = t.maxHeight / a;
2320
- o < i && (i = o * this.resolution);
2321
- }
2322
- t.maintainPixelRatio && (i /= this.resolution);
2323
- const s = [];
2324
- let n = !1;
2325
- const h = document.createElement("canvas");
2326
- i != this.resolution && (n = !0, r = r * i / this.resolution, a = a * i / this.resolution), h.width = r, h.height = a, h.style.position = "fixed", h.style.top = "-10000px", this.view.appendChild(h), s.push(h);
2327
- const c = h.getContext("2d");
2328
- let g = 0, u = 0, b = !1;
2329
- return y(this.layers, (o) => {
2330
- if (o && o.visible && (o.tainted || n)) {
2331
- b = !0, o.exportableView = o.view, o.exportableContext = o.context, o.view = document.createElement("canvas"), o.view.style.position = "fixed", o.view.style.top = "-10000px", this.view.appendChild(o.view), s.push(o.view);
2332
- let p = 0, l = 0;
2333
- o.margin && (p += o.margin.left || 0 + o.margin.right || 0, l += o.margin.top || 0 + o.margin.bottom || 0), o.view.width = r + p, o.view.height = a + l, o.context = o.view.getContext("2d"), o.dirty = !0, o.scale = i;
2334
- }
2335
- }), b && (this._omitTainted = !0, this.render(e), this._omitTainted = !1), y(this.layers, (o) => {
2336
- if (o && o.visible) {
2337
- let p = 0, l = 0;
2338
- o.margin && (p = -(o.margin.left || 0) * this.resolution, l = -(o.margin.top || 0) * this.resolution), c.drawImage(o.view, p, l), o.exportableView && (o.view = o.exportableView, o.exportableView = void 0), o.exportableContext && (o.context = o.exportableContext, o.exportableContext = void 0), g < o.view.clientWidth && (g = o.view.clientWidth), u < o.view.clientHeight && (u = o.view.clientHeight), o.scale = void 0;
2339
- }
2340
- }), h.style.width = g + "px", h.style.height = u + "px", y(s, (o) => {
2341
- o.style.position = "", o.style.top = "", this.view.removeChild(o);
2342
- }), h;
2343
- }
2344
- }
2345
- class Mi {
2346
- constructor() {
2347
- Object.defineProperty(this, "view", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "context", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "margin", { enumerable: !0, configurable: !0, writable: !0, value: { left: 0, right: 0, top: 0, bottom: 0 } }), Object.defineProperty(this, "_resolution", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "_width", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_height", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "imageArray", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.view = document.createElement("canvas"), this.context = this.view.getContext("2d", { alpha: !1, willReadFrequently: !0 }), this.context.imageSmoothingEnabled = !1, this.view.style.position = "absolute", this.view.style.top = "0px", this.view.style.left = "0px";
2348
- }
2349
- resize(e, t, i, r, a) {
2350
- this._resolution = a, e += this.margin.left + this.margin.right, t += this.margin.top + this.margin.bottom, i += this.margin.left + this.margin.right, r += this.margin.top + this.margin.bottom, this.view.style.left = -this.margin.left + "px", this.view.style.top = -this.margin.top + "px", this._width = Math.floor(e * a), this._height = Math.floor(t * a), this.view.width = this._width, this.view.style.width = i + "px", this.view.height = this._height, this.view.style.height = r + "px";
2351
- }
2352
- getImageData(e, t) {
2353
- return this.context.getImageData(Math.round((e.x - t.left) / t.width * this._width), Math.round((e.y - t.top) / t.height * this._height), 1, 1);
2354
- }
2355
- getImageArray(e) {
2356
- this.imageArray || (this.imageArray = this.context.getImageData(0, 0, this._width, this._height).data);
2357
- const t = this.imageArray, i = Math.round(e.x * this._resolution), r = 4 * (Math.round(e.y * this._resolution) * this._width + i);
2358
- return [t[r], t[r + 1], t[r + 2], t[r + 3]];
2359
- }
2360
- setMargin(e) {
2361
- this.margin.left = 0, this.margin.right = 0, this.margin.top = 0, this.margin.bottom = 0, y(e, (t) => {
2362
- t.margin && (this.margin.left = Math.max(this.margin.left, t.margin.left), this.margin.right = Math.max(this.margin.right, t.margin.right), this.margin.top = Math.max(this.margin.top, t.margin.top), this.margin.bottom = Math.max(this.margin.bottom, t.margin.bottom));
2363
- });
2364
- }
2365
- clear() {
2366
- this.context.save(), this.context.fillStyle = "#000", this.context.fillRect(0, 0, this._width, this._height);
2367
- }
2368
- }
2369
- class Si {
2370
- constructor(e, t) {
2371
- Object.defineProperty(this, "view", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "context", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "tainted", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "margin", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "order", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "visible", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "width", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "height", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "scale", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "dirty", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "exportableView", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "exportableContext", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_width", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_height", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), this.view = e, this.context = t;
2372
- }
2373
- resize(e, t, i, r, a) {
2374
- this.width != null && (e = this.width, i = this.width), this.height != null && (t = this.height, r = this.height), this.margin ? (e += this.margin.left + this.margin.right, t += this.margin.top + this.margin.bottom, i += this.margin.left + this.margin.right, r += this.margin.top + this.margin.bottom, this.view.style.left = -this.margin.left + "px", this.view.style.top = -this.margin.top + "px") : (this.view.style.left = "0px", this.view.style.top = "0px"), this._width = Math.floor(e * a), this._height = Math.floor(t * a), this.view.width = this._width, this.view.style.width = i + "px", this.view.height = this._height, this.view.style.height = r + "px";
2375
- }
2376
- clear() {
2377
- this.context.save(), this.context.clearRect(0, 0, this._width, this._height);
2378
- }
2379
- }
2380
- function Ne(d, e) {
2381
- d == null ? requestAnimationFrame(e) : setTimeout(() => {
2382
- requestAnimationFrame(e);
2383
- }, 1e3 / d);
2384
- }
2385
- class Be {
2386
- constructor(e, t = {}, i) {
2387
- if (Object.defineProperty(this, "dom", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_inner", { 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, "_isDirty", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_isDirtyParents", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_dirty", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_dirtyParents", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_dirtyBounds", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_dirtyPositions", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_ticker", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "_tickers", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_updateTick", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "events", { enumerable: !0, configurable: !0, writable: !0, value: new ht() }), Object.defineProperty(this, "animationTime", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "_animations", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_renderer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_rootContainer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "container", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "tooltipContainer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltipContainerSettings", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltip", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "language", { enumerable: !0, configurable: !0, writable: !0, value: Xt.new(this, {}) }), Object.defineProperty(this, "locale", { enumerable: !0, configurable: !0, writable: !0, value: rt }), Object.defineProperty(this, "utc", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "timezone", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "fps", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "numberFormatter", { enumerable: !0, configurable: !0, writable: !0, value: Wt.new(this, {}) }), Object.defineProperty(this, "dateFormatter", { enumerable: !0, configurable: !0, writable: !0, value: Vt.new(this, {}) }), Object.defineProperty(this, "durationFormatter", { enumerable: !0, configurable: !0, writable: !0, value: $t.new(this, {}) }), Object.defineProperty(this, "tabindex", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_tabindexes", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_a11yD", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_focusElementDirty", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_focusElementContainer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_focusedSprite", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_isShift", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_keyboardDragPoint", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltipElementContainer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_readerAlertElement", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_logo", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltipDiv", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "nonce", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "interfaceColors", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "verticalLayout", { enumerable: !0, configurable: !0, writable: !0, value: ut.new(this, {}) }), Object.defineProperty(this, "horizontalLayout", { enumerable: !0, configurable: !0, writable: !0, value: ct.new(this, {}) }), Object.defineProperty(this, "gridLayout", { enumerable: !0, configurable: !0, writable: !0, value: dt.new(this, {}) }), Object.defineProperty(this, "_paused", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "autoResize", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "_fontHash", { enumerable: !0, configurable: !0, writable: !0, value: "" }), Object.defineProperty(this, "_isDisposed", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_disposers", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_resizeSensorDisposer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltips", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_htmlElementContainer", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_htmlEnabledContainers", { enumerable: !0, configurable: !0, writable: !0, value: [] }), !i)
2388
- throw new Error("You cannot use `new Class()`, instead use `Class.new()`");
2389
- let r, a;
2390
- if (this._settings = t, t.accessible == 0 && (this._a11yD = !0), t.useSafeResolution == null && (t.useSafeResolution = !0), t.useSafeResolution && (r = bt()), this._renderer = new ki(r), a = e instanceof HTMLElement ? e : document.getElementById(e), y(te.rootElements, (h) => {
2391
- if (h.dom === a)
2392
- throw new Error("You cannot have multiple Roots on the same DOM node");
2393
- }), this.interfaceColors = ge.new(this, {}), a === null)
2394
- throw new Error("Could not find HTML element with id `" + e + "`");
2395
- this.dom = a;
2396
- let s = document.createElement("div");
2397
- s.style.position = "relative", s.style.width = "100%", s.style.height = "100%", a.appendChild(s);
2398
- const n = t.tooltipContainerBounds;
2399
- n && (this._tooltipContainerSettings = n), this._inner = s, this._updateComputedStyles(), te.rootElements.push(this);
2400
- }
2401
- static new(e, t) {
2402
- const i = new Be(e, t, !0);
2403
- return i._init(), i;
2404
- }
2405
- moveDOM(e) {
2406
- let t;
2407
- if (t = e instanceof HTMLElement ? e : document.getElementById(e), t) {
2408
- for (; this.dom.childNodes.length > 0; )
2409
- t.appendChild(this.dom.childNodes[0]);
2410
- this.dom = t, this._initResizeSensor(), this.resize();
2411
- }
2412
- }
2413
- _handleLogo() {
2414
- if (this._logo) {
2415
- const e = this.dom.offsetWidth, t = this.dom.offsetHeight;
2416
- e <= 150 || t <= 60 ? this._logo.hide() : this._logo.show();
2417
- }
2418
- }
2419
- _showBranding() {
2420
- if (!this._logo) {
2421
- const e = this.tooltipContainer.children.push(q.new(this, { interactive: !0, interactiveChildren: !1, position: "absolute", setStateOnChildren: !0, paddingTop: 9, paddingRight: 9, paddingBottom: 9, paddingLeft: 9, scale: 0.6, y: Ze(100), centerY: Z, tooltipText: "Created using amCharts 5", tooltipX: Z, cursorOverStyle: "pointer", background: ft.new(this, { fill: ie(4671320), fillOpacity: 0, tooltipY: 5 }) })), t = We.new(this, { pointerOrientation: "horizontal", paddingTop: 4, paddingRight: 7, paddingBottom: 4, paddingLeft: 7 });
2422
- t.label.setAll({ fontSize: 12 }), t.get("background").setAll({ fill: this.interfaceColors.get("background"), stroke: this.interfaceColors.get("grid"), strokeOpacity: 0.3 }), e.set("tooltip", t), e.events.on("click", () => {
2423
- window.open("https://www.amcharts.com/", "_blank");
2424
- }), e.states.create("hover", {}), e.children.push(Le.new(this, { stroke: ie(13421772), strokeWidth: 3, svgPath: "M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6" })).states.create("hover", { stroke: ie(3976191) }), e.children.push(Le.new(this, { stroke: ie(8947848), strokeWidth: 3, svgPath: "M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0" })).states.create("hover", { stroke: ie(4671320) }), this._logo = e, this._handleLogo();
2425
- }
2426
- }
2427
- _getRealSize() {
2428
- return this.dom.getBoundingClientRect();
2429
- }
2430
- _getCalculatedSize(e) {
2431
- return this._settings.calculateSize ? this._settings.calculateSize(e) : { width: e.width, height: e.height };
2432
- }
2433
- _init() {
2434
- const e = this._settings;
2435
- e.accessible !== !1 && (e.focusable && (this._inner.setAttribute("focusable", "true"), this._inner.setAttribute("tabindex", this.tabindex + "")), e.ariaLabel && this._inner.setAttribute("aria-label", e.ariaLabel), e.role && this._inner.setAttribute("role", e.role));
2436
- const t = this._renderer, i = this._getRealSize(), r = this._getCalculatedSize(i), a = Math.floor(r.width), s = Math.floor(r.height), n = Math.floor(i.width), h = Math.floor(i.height), c = q.new(this, { visible: !0, width: a, height: s });
2437
- this._rootContainer = c, this._rootContainer._defaultThemes.push(Yt.new(this));
2438
- const g = c.children.push(q.new(this, { visible: !0, width: Z, height: Z }));
2439
- this.container = g, t.resize(n, h, a, s), this._inner.appendChild(t.view), this._initResizeSensor();
2440
- const u = document.createElement("div");
2441
- if (this._htmlElementContainer = u, u.className = "am5-html-container", u.style.position = "absolute", u.style.pointerEvents = "none", this._tooltipContainerSettings || (u.style.overflow = "hidden"), this._inner.appendChild(u), this._a11yD !== !0) {
2442
- const b = document.createElement("div");
2443
- b.className = "am5-reader-container", b.setAttribute("role", "alert"), b.style.position = "absolute", b.style.width = "1px", b.style.height = "1px", b.style.overflow = "hidden", b.style.clip = "rect(1px, 1px, 1px, 1px)", this._readerAlertElement = b, this._inner.appendChild(this._readerAlertElement);
2444
- const o = document.createElement("div");
2445
- o.className = "am5-focus-container", o.style.position = "absolute", o.style.pointerEvents = "none", o.style.top = "0px", o.style.left = "0px", o.style.overflow = "hidden", o.style.width = a + "px", o.style.height = s + "px", o.setAttribute("role", "graphics-document"), K(o, !1), this._focusElementContainer = o, this._inner.appendChild(this._focusElementContainer);
2446
- const p = document.createElement("div");
2447
- this._tooltipElementContainer = p, p.className = "am5-tooltip-container", this._inner.appendChild(p), me("keyboardevents") && (this._disposers.push(C(window, "keydown", (l) => {
2448
- l.keyCode == 16 ? this._isShift = !0 : l.keyCode == 9 && (this._isShift = l.shiftKey);
2449
- })), this._disposers.push(C(window, "keyup", (l) => {
2450
- l.keyCode == 16 && (this._isShift = !1);
2451
- })), this._disposers.push(C(o, "click", () => {
2452
- const l = this._focusedSprite;
2453
- if (l) {
2454
- const m = t.getEvent(new MouseEvent("click"));
2455
- l.events.dispatch("click", { type: "click", originalEvent: m.event, point: m.point, simulated: !0, target: l });
2456
- }
2457
- })), this._disposers.push(C(o, "keydown", (l) => {
2458
- const m = this._focusedSprite;
2459
- if (m) {
2460
- l.keyCode == 27 && (gt(), this._focusedSprite = void 0);
2461
- let _ = 0, w = 0;
2462
- switch (l.keyCode) {
2463
- case 13:
2464
- l.preventDefault();
2465
- const v = t.getEvent(new MouseEvent("click"));
2466
- return void m.events.dispatch("click", { type: "click", originalEvent: v.event, point: v.point, simulated: !0, target: m });
2467
- case 37:
2468
- _ = -6;
2469
- break;
2470
- case 39:
2471
- _ = 6;
2472
- break;
2473
- case 38:
2474
- w = -6;
2475
- break;
2476
- case 40:
2477
- w = 6;
2478
- break;
2479
- default:
2480
- return;
2481
- }
2482
- if (_ != 0 || w != 0) {
2483
- if (l.preventDefault(), !m.isDragging()) {
2484
- this._keyboardDragPoint = { x: 0, y: 0 };
2485
- const x = t.getEvent(new MouseEvent("mousedown", { clientX: 0, clientY: 0 }));
2486
- m.events.isEnabled("pointerdown") && m.events.dispatch("pointerdown", { type: "pointerdown", originalEvent: x.event, point: x.point, simulated: !0, target: m });
2487
- }
2488
- const v = this._keyboardDragPoint;
2489
- v.x += _, v.y += w;
2490
- const f = t.getEvent(new MouseEvent("mousemove", { clientX: v.x, clientY: v.y }), !1);
2491
- m.events.isEnabled("globalpointermove") && m.events.dispatch("globalpointermove", { type: "globalpointermove", originalEvent: f.event, point: f.point, simulated: !0, target: m });
2492
- }
2493
- }
2494
- })), this._disposers.push(C(o, "keyup", (l) => {
2495
- if (this._focusedSprite) {
2496
- const m = this._focusedSprite, _ = l.keyCode;
2497
- switch (_) {
2498
- case 37:
2499
- case 39:
2500
- case 38:
2501
- case 40:
2502
- if (m.isDragging()) {
2503
- const w = this._keyboardDragPoint, v = t.getEvent(new MouseEvent("mouseup", { clientX: w.x, clientY: w.y }));
2504
- return m.events.isEnabled("globalpointerup") && m.events.dispatch("globalpointerup", { type: "globalpointerup", originalEvent: v.event, point: v.point, simulated: !0, target: m }), void (this._keyboardDragPoint = void 0);
2505
- }
2506
- if (m.get("focusableGroup")) {
2507
- const w = m.get("focusableGroup"), v = this._tabindexes.filter((A) => A.get("focusableGroup") == w && A.getPrivate("focusable") !== !1);
2508
- let f = v.indexOf(m);
2509
- const x = v.length - 1;
2510
- f += _ == 39 || _ == 40 ? 1 : -1, f < 0 ? f = x : f > x && (f = 0), mt(v[f].getPrivate("focusElement").dom);
2511
- }
2512
- }
2513
- }
2514
- })));
2515
- }
2516
- this._startTicker(), this.setThemes([]), this._addTooltip(), this._hasLicense() || this._showBranding();
2517
- }
2518
- _initResizeSensor() {
2519
- this._resizeSensorDisposer && this._resizeSensorDisposer.dispose(), this._resizeSensorDisposer = new Rt(this.dom, () => {
2520
- this.autoResize && this.resize();
2521
- }), this._disposers.push(this._resizeSensorDisposer);
2522
- }
2523
- resize() {
2524
- const e = this._getRealSize(), t = this._getCalculatedSize(e), i = Math.floor(t.width), r = Math.floor(t.height);
2525
- if (i > 0 && r > 0) {
2526
- const a = Math.floor(e.width), s = Math.floor(e.height), n = this._htmlElementContainer;
2527
- if (n.style.width = i + "px", n.style.height = r + "px", this._a11yD !== !0) {
2528
- const c = this._focusElementContainer;
2529
- c.style.width = i + "px", c.style.height = r + "px";
2530
- }
2531
- this._renderer.resize(a, s, i, r);
2532
- const h = this._rootContainer;
2533
- h.setPrivate("width", i), h.setPrivate("height", r), this._render(), this._handleLogo();
2534
- }
2535
- }
2536
- _render() {
2537
- this._renderer.render(this._rootContainer._display), this._focusElementDirty && (this._updateCurrentFocus(), this._focusElementDirty = !1);
2538
- }
2539
- _runTickers(e) {
2540
- y(this._tickers, (t) => {
2541
- t(e);
2542
- });
2543
- }
2544
- _runAnimations(e) {
2545
- let t = 0;
2546
- return _e(this._animations, (i) => {
2547
- const r = i._runAnimation(e);
2548
- return r !== Re.Stopped && (r !== Re.Playing || (++t, !0));
2549
- }), t === 0;
2550
- }
2551
- _runDirties() {
2552
- let e = {};
2553
- for (; this._isDirtyParents; )
2554
- this._isDirtyParents = !1, re(this._dirtyParents).forEach((s) => {
2555
- const n = this._dirtyParents[s];
2556
- delete this._dirtyParents[s], n.isDisposed() || (e[n.uid] = n, n._prepareChildren());
2557
- });
2558
- re(e).forEach((s) => {
2559
- e[s]._updateChildren();
2560
- });
2561
- const t = [];
2562
- re(this._dirty).forEach((s) => {
2563
- const n = this._dirty[s];
2564
- n.isDisposed() ? delete this._dirty[n.uid] : (t.push(n), n._beforeChanged());
2565
- }), t.forEach((s) => {
2566
- s._changed(), delete this._dirty[s.uid], s._clearDirty();
2567
- }), this._isDirty = !1;
2568
- const i = {}, r = [];
2569
- re(this._dirtyBounds).forEach((s) => {
2570
- const n = this._dirtyBounds[s];
2571
- delete this._dirtyBounds[s], n.isDisposed() || (i[n.uid] = n.depth(), r.push(n));
2572
- }), this._positionHTMLElements(), r.sort((s, n) => pt(i[n.uid], i[s.uid])), r.forEach((s) => {
2573
- s._updateBounds();
2574
- });
2575
- const a = this._dirtyPositions;
2576
- re(a).forEach((s) => {
2577
- const n = a[s];
2578
- delete a[s], n.isDisposed() || n._updatePosition();
2579
- }), t.forEach((s) => {
2580
- s._afterChanged();
2581
- });
2582
- }
2583
- _renderFrame(e) {
2584
- if (this._updateTick) {
2585
- this.events.isEnabled("framestarted") && this.events.dispatch("framestarted", { type: "framestarted", target: this, timestamp: e }), this._checkComputedStyles(), this._runTickers(e);
2586
- const t = this._runAnimations(e);
2587
- return this._runDirties(), this._render(), this._renderer.resetImageArray(), this._positionHTMLElements(), this.events.isEnabled("frameended") && this.events.dispatch("frameended", { type: "frameended", target: this, timestamp: e }), this._tickers.length === 0 && t && !this._isDirty;
2588
- }
2589
- return !0;
2590
- }
2591
- _runTicker(e, t) {
2592
- this.isDisposed() || (this.animationTime = e, this._renderFrame(e) ? (this._ticker = null, this.animationTime = null) : this._paused || (t ? this._ticker : Ne(this.fps, this._ticker)));
2593
- }
2594
- _runTickerNow(e = 1e4) {
2595
- if (!this.isDisposed()) {
2596
- const t = performance.now() + e;
2597
- for (; ; ) {
2598
- const i = performance.now();
2599
- if (i >= t) {
2600
- this.animationTime = null;
2601
- break;
2602
- }
2603
- if (this.animationTime = i, this._renderFrame(i)) {
2604
- this.animationTime = null;
2605
- break;
2606
- }
2607
- }
2608
- }
2609
- }
2610
- _startTicker() {
2611
- this._ticker === null && (this.animationTime = null, this._ticker = (e) => {
2612
- this._runTicker(e);
2613
- }, Ne(this.fps, this._ticker));
2614
- }
2615
- get updateTick() {
2616
- return this._updateTick;
2617
- }
2618
- set updateTick(e) {
2619
- this._updateTick = e, e && this._startTicker();
2620
- }
2621
- _addDirtyEntity(e) {
2622
- this._dirty[e.uid] === void 0 && (this._isDirty = !0, this._dirty[e.uid] = e, this._startTicker());
2623
- }
2624
- _addDirtyParent(e) {
2625
- this._dirtyParents[e.uid] === void 0 && (this._isDirty = !0, this._isDirtyParents = !0, this._dirtyParents[e.uid] = e, this._startTicker());
2626
- }
2627
- _addDirtyBounds(e) {
2628
- this._dirtyBounds[e.uid] === void 0 && (this._isDirty = !0, this._dirtyBounds[e.uid] = e, this._startTicker());
2629
- }
2630
- _addDirtyPosition(e) {
2631
- this._dirtyPositions[e.uid] === void 0 && (this._isDirty = !0, this._dirtyPositions[e.uid] = e, this._startTicker());
2632
- }
2633
- _addAnimation(e) {
2634
- this._animations.indexOf(e) === -1 && this._animations.push(e), this._startTicker();
2635
- }
2636
- _markDirty() {
2637
- this._isDirty = !0;
2638
- }
2639
- _markDirtyRedraw() {
2640
- this.events.once("frameended", () => {
2641
- this._isDirty = !0, this._startTicker();
2642
- });
2643
- }
2644
- eachFrame(e) {
2645
- return this._tickers.push(e), this._startTicker(), new $(() => {
2646
- Te(this._tickers, e);
2647
- });
2648
- }
2649
- markDirtyGlobal(e) {
2650
- e || (e = this.container), e.walkChildren((t) => {
2651
- t instanceof q && this.markDirtyGlobal(t), t.markDirty(), t.markDirtyBounds();
2652
- });
2653
- }
2654
- width() {
2655
- return Math.floor(this._getCalculatedSize(this._getRealSize()).width);
2656
- }
2657
- height() {
2658
- return Math.floor(this._getCalculatedSize(this._getRealSize()).height);
2659
- }
2660
- dispose() {
2661
- this._isDisposed || (this._isDisposed = !0, this._rootContainer.dispose(), this._renderer.dispose(), this.horizontalLayout.dispose(), this.verticalLayout.dispose(), this.interfaceColors.dispose(), y(this._disposers, (e) => {
2662
- e.dispose();
2663
- }), this._inner && _t(this._inner), se(te.rootElements, this));
2664
- }
2665
- isDisposed() {
2666
- return this._isDisposed;
2667
- }
2668
- readerAlert(e) {
2669
- this._a11yD !== !0 && (this._readerAlertElement.innerHTML = ze(e));
2670
- }
2671
- setThemes(e) {
2672
- this._rootContainer.set("themes", e);
2673
- const t = this.tooltipContainer;
2674
- t && t._applyThemes();
2675
- const i = this.interfaceColors;
2676
- i && i._applyThemes();
2677
- }
2678
- _addTooltip() {
2679
- if (!this.tooltipContainer) {
2680
- const e = this._tooltipContainerSettings, t = this._rootContainer.children.push(q.new(this, { position: "absolute", isMeasured: !1, width: Z, height: Z, layer: e ? 35 : 30, layerMargin: e || void 0 }));
2681
- this.tooltipContainer = t;
2682
- const i = We.new(this, {});
2683
- this.container.set("tooltip", i), i.hide(0), this._tooltip = i;
2684
- }
2685
- }
2686
- _registerTabindexOrder(e) {
2687
- this._a11yD != 1 && (e.get("focusable") ? je(this._tabindexes, e) : se(this._tabindexes, e), this._invalidateTabindexes());
2688
- }
2689
- _unregisterTabindexOrder(e) {
2690
- this._a11yD != 1 && (se(this._tabindexes, e), this._invalidateTabindexes());
2691
- }
2692
- _invalidateTabindexes() {
2693
- if (this._a11yD == 1)
2694
- return;
2695
- this._tabindexes.sort((t, i) => {
2696
- const r = t.get("tabindexOrder", 0), a = i.get("tabindexOrder", 0);
2697
- return r == a ? 0 : r > a ? 1 : -1;
2698
- });
2699
- const e = [];
2700
- y(this._tabindexes, (t, i) => {
2701
- t.getPrivate("focusElement") ? this._moveFocusElement(i, t) : this._makeFocusElement(i, t);
2702
- const r = t.get("focusableGroup");
2703
- r && t.getPrivate("focusable") !== !1 && (e.indexOf(r) !== -1 ? t.getPrivate("focusElement").dom.setAttribute("tabindex", "-1") : e.push(r));
2704
- });
2705
- }
2706
- _updateCurrentFocus() {
2707
- this._a11yD != 1 && this._focusedSprite && (this._decorateFocusElement(this._focusedSprite), this._positionFocusElement(this._focusedSprite));
2708
- }
2709
- _decorateFocusElement(e, t) {
2710
- if (this._a11yD == 1 || (t || (t = e.getPrivate("focusElement").dom), !t))
2711
- return;
2712
- const i = e.get("role");
2713
- i ? t.setAttribute("role", i) : t.removeAttribute("role");
2714
- const r = e.get("ariaLabel");
2715
- if (r) {
2716
- const o = yt(e, r);
2717
- t.setAttribute("aria-label", o);
2718
- } else
2719
- t.removeAttribute("aria-label");
2720
- const a = e.get("ariaLive");
2721
- a ? t.setAttribute("aria-live", a) : t.removeAttribute("aria-live");
2722
- const s = e.get("ariaChecked");
2723
- s != null && i && ["checkbox", "option", "radio", "menuitemcheckbox", "menuitemradio", "treeitem"].indexOf(i) !== -1 ? t.setAttribute("aria-checked", s ? "true" : "false") : t.removeAttribute("aria-checked"), e.get("ariaHidden") ? t.setAttribute("aria-hidden", "true") : t.removeAttribute("aria-hidden");
2724
- const n = e.get("ariaOrientation");
2725
- n ? t.setAttribute("aria-orientation", n) : t.removeAttribute("aria-orientation");
2726
- const h = e.get("ariaValueNow");
2727
- h ? t.setAttribute("aria-valuenow", h) : t.removeAttribute("aria-valuenow");
2728
- const c = e.get("ariaValueMin");
2729
- c ? t.setAttribute("aria-valuemin", c) : t.removeAttribute("aria-valuemin");
2730
- const g = e.get("ariaValueMax");
2731
- g ? t.setAttribute("aria-valuemax", g) : t.removeAttribute("aria-valuemax");
2732
- const u = e.get("ariaValueText");
2733
- u ? t.setAttribute("aria-valuetext", u) : t.removeAttribute("aria-valuetext");
2734
- const b = e.get("ariaControls");
2735
- b ? t.setAttribute("aria-controls", b) : t.removeAttribute("aria-controls"), e.get("visible") && e.get("opacity") !== 0 && e.get("role") != "tooltip" && !e.isHidden() && e.getPrivate("focusable") !== !1 ? (t.getAttribute("tabindex") != "-1" && t.setAttribute("tabindex", "" + this.tabindex), t.removeAttribute("aria-hidden")) : (t.removeAttribute("tabindex"), t.setAttribute("aria-hidden", "true"));
2736
- }
2737
- _makeFocusElement(e, t) {
2738
- if (t.getPrivate("focusElement") || this._a11yD == 1)
2739
- return;
2740
- const i = document.createElement("div");
2741
- t.get("role") != "tooltip" && (i.tabIndex = this.tabindex), i.style.position = "absolute", K(i, !1);
2742
- const r = [];
2743
- t.setPrivate("focusElement", { dom: i, disposers: r }), this._decorateFocusElement(t), r.push(C(i, "focus", (a) => {
2744
- this._handleFocus(a, e);
2745
- })), r.push(C(i, "blur", (a) => {
2746
- this._handleBlur(a, e);
2747
- })), this._moveFocusElement(e, t);
2748
- }
2749
- _removeFocusElement(e) {
2750
- if (this._a11yD == 1)
2751
- return;
2752
- se(this._tabindexes, e);
2753
- const t = e.getPrivate("focusElement");
2754
- t && (this._focusElementContainer.removeChild(t.dom), y(t.disposers, (i) => {
2755
- i.dispose();
2756
- }));
2757
- }
2758
- _hideFocusElement(e) {
2759
- this._a11yD != 1 && (e.getPrivate("focusElement").dom.style.display = "none");
2760
- }
2761
- _moveFocusElement(e, t) {
2762
- if (this._a11yD == 1)
2763
- return;
2764
- const i = this._focusElementContainer, r = t.getPrivate("focusElement").dom;
2765
- if (r === this._focusElementContainer.children[e])
2766
- return;
2767
- const a = this._focusElementContainer.children[e + 1];
2768
- a ? i.insertBefore(r, a) : i.append(r);
2769
- }
2770
- _positionFocusElement(e) {
2771
- if (this._a11yD == 1 || e == null)
2772
- return;
2773
- const t = e.globalBounds();
2774
- let i = t.right == t.left ? e.width() : t.right - t.left, r = t.top == t.bottom ? e.height() : t.bottom - t.top;
2775
- const a = this._settings.focusPadding !== void 0 ? this._settings.focusPadding : 2;
2776
- let s = t.left - a, n = t.top - a;
2777
- i < 0 && (s += i, i = Math.abs(i)), r < 0 && (n += r, r = Math.abs(r));
2778
- const h = e.getPrivate("focusElement").dom;
2779
- h.style.top = n + "px", h.style.left = s + "px", h.style.width = i + 2 * a + "px", h.style.height = r + 2 * a + "px";
2780
- }
2781
- _handleFocus(e, t) {
2782
- if (this._a11yD == 1)
2783
- return;
2784
- const i = this._tabindexes[t];
2785
- i.isVisibleDeep() ? (this._positionFocusElement(i), this._focusedSprite = i, i.events.isEnabled("focus") && i.events.dispatch("focus", { type: "focus", originalEvent: e, target: i })) : this._focusNext(e.target, this._isShift ? -1 : 1);
2786
- }
2787
- _focusNext(e, t) {
2788
- if (this._a11yD == 1)
2789
- return;
2790
- const i = Array.from(document.querySelectorAll(["a[href]", "area[href]", "button:not([disabled])", "details", "input:not([disabled])", "iframe:not([disabled])", "select:not([disabled])", "textarea:not([disabled])", '[contentEditable=""]', '[contentEditable="true"]', '[contentEditable="TRUE"]', '[tabindex]:not([tabindex^="-"])'].join(",")));
2791
- let r = i.indexOf(e) + t;
2792
- r < 0 ? r = i.length - 1 : r >= i.length && (r = 0), i[r].focus();
2793
- }
2794
- _handleBlur(e, t) {
2795
- if (this._a11yD == 1)
2796
- return;
2797
- const i = this._focusedSprite;
2798
- i && !i.isDisposed() && i.events.isEnabled("blur") && i.events.dispatch("blur", { type: "blur", originalEvent: e, target: i }), this._focusedSprite = void 0;
2799
- }
2800
- updateTooltip(e) {
2801
- if (this._a11yD == 1)
2802
- return;
2803
- const t = ze(e._getText());
2804
- let i = e.getPrivate("tooltipElement");
2805
- e.get("role") == "tooltip" && t != "" ? (i || (i = this._makeTooltipElement(e)), i.innerHTML != t && (i.innerHTML = t)) : i && (i.remove(), e.removePrivate("tooltipElement"));
2806
- }
2807
- _makeTooltipElement(e) {
2808
- const t = this._tooltipElementContainer, i = document.createElement("div");
2809
- return i.style.position = "absolute", i.style.width = "1px", i.style.height = "1px", i.style.overflow = "hidden", i.style.clip = "rect(1px, 1px, 1px, 1px)", K(i, !1), this._decorateFocusElement(e, i), t.append(i), e.setPrivate("tooltipElement", i), i;
2810
- }
2811
- _removeTooltipElement(e) {
2812
- if (this._a11yD == 1)
2813
- return;
2814
- const t = e.getPrivate("tooltipElement");
2815
- if (t) {
2816
- const i = t.parentElement;
2817
- i && i.removeChild(t);
2818
- }
2819
- }
2820
- _invalidateAccessibility(e) {
2821
- if (this._a11yD == 1)
2822
- return;
2823
- this._focusElementDirty = !0;
2824
- const t = e.getPrivate("focusElement");
2825
- e.get("focusable") ? t && (this._decorateFocusElement(e), this._positionFocusElement(e)) : t && this._removeFocusElement(e);
2826
- }
2827
- focused(e) {
2828
- return this._focusedSprite === e;
2829
- }
2830
- documentPointToRoot(e) {
2831
- const t = this._getRealSize(), i = this._getCalculatedSize(t), r = i.width / t.width, a = i.height / t.height;
2832
- return { x: (e.x - t.left) * r, y: (e.y - t.top) * a };
2833
- }
2834
- rootPointToDocument(e) {
2835
- const t = this._getRealSize(), i = this._getCalculatedSize(t), r = i.width / t.width, a = i.height / t.height;
2836
- return { x: e.x / r + t.left, y: e.y / a + t.top };
2837
- }
2838
- addDisposer(e) {
2839
- return this._disposers.push(e), e;
2840
- }
2841
- _updateComputedStyles() {
2842
- const e = window.getComputedStyle(this.dom);
2843
- let t = "";
2844
- he(e, (r, a) => {
2845
- pe(r) && r.match(/^font/) && (t += a);
2846
- });
2847
- const i = t != this._fontHash;
2848
- return i && (this._fontHash = t), i;
2849
- }
2850
- _checkComputedStyles() {
2851
- this._updateComputedStyles() && this._invalidateLabelBounds(this.container);
2852
- }
2853
- _invalidateLabelBounds(e) {
2854
- e instanceof q ? e.children.each((t) => {
2855
- this._invalidateLabelBounds(t);
2856
- }) : e instanceof vt && e.markDirtyBounds();
2857
- }
2858
- _hasLicense() {
2859
- for (let e = 0; e < te.licenses.length; e++)
2860
- if (te.licenses[e].match(/^AM5C.{5,}/i))
2861
- return !0;
2862
- return !1;
2863
- }
2864
- _licenseApplied() {
2865
- this._logo && this._logo.set("forceHidden", !0);
2866
- }
2867
- get debugGhostView() {
2868
- return this._renderer.debugGhostView;
2869
- }
2870
- set debugGhostView(e) {
2871
- this._renderer.debugGhostView = e;
2872
- }
2873
- set tapToActivate(e) {
2874
- this._renderer.tapToActivate = e;
2875
- }
2876
- get tapToActivate() {
2877
- return this._renderer.tapToActivate;
2878
- }
2879
- set tapToActivateTimeout(e) {
2880
- this._renderer.tapToActivateTimeout = e;
2881
- }
2882
- get tapToActivateTimeout() {
2883
- return this._renderer.tapToActivateTimeout;
2884
- }
2885
- _makeHTMLElement(e) {
2886
- const t = this._htmlElementContainer, i = document.createElement("div");
2887
- return e.setPrivate("htmlElement", i), i.style.position = "absolute", i.style.overflow = "auto", i.style.boxSizing = "border-box", K(i, e.get("interactive", !1)), e.events.isEnabled("click") && (K(i, !0), this._disposers.push(C(i, "click", (r) => {
2888
- const a = this._renderer.getEvent(r);
2889
- e.events.dispatch("click", { type: "click", originalEvent: a.event, point: a.point, simulated: !1, target: e });
2890
- }))), this._positionHTMLElement(e), t.append(i), je(this._htmlEnabledContainers, e), i;
2891
- }
2892
- _positionHTMLElements() {
2893
- y(this._htmlEnabledContainers, (e) => {
2894
- this._positionHTMLElement(e);
2895
- });
2896
- }
2897
- _positionHTMLElement(e) {
2898
- const t = e.getPrivate("htmlElement");
2899
- if (t) {
2900
- y(["paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "minWidth", "minHeight", "maxWidth", "maxHeight"], (g) => {
2901
- const u = e.get(g);
2902
- t.style[g] = u ? u + "px" : "";
2903
- });
2904
- const i = e.compositeOpacity();
2905
- setTimeout(() => {
2906
- t.style.opacity = i + "";
2907
- }, 10);
2908
- const r = e.isVisibleDeep();
2909
- r && (t.style.display = "block");
2910
- const a = e.globalBounds();
2911
- t.style.top = a.top + "px", t.style.left = a.left + "px";
2912
- const s = e.get("width"), n = e.get("height");
2913
- let h = 0, c = 0;
2914
- if (s && (h = e.width()), n && (c = e.height()), s && n)
2915
- e.removePrivate("minWidth"), e.removePrivate("minHeight");
2916
- else {
2917
- t.style.position = "fixed", t.style.width = "", t.style.height = "";
2918
- const g = t.getBoundingClientRect();
2919
- t.style.position = "absolute", h = g.width, c = g.height, e._adjustedLocalBounds = { left: 0, right: 0, top: 0, bottom: 0 }, e.setPrivate("minWidth", h), e.setPrivate("minHeight", c);
2920
- }
2921
- h > 0 && (t.style.minWidth = h + "px"), c > 0 && (t.style.minHeight = c + "px"), r && i != 0 || (t.style.display = "none");
2922
- }
2923
- }
2924
- _setHTMLContent(e, t) {
2925
- let i = e.getPrivate("htmlElement");
2926
- i || (i = this._makeHTMLElement(e)), i.innerHTML != t && (i.innerHTML = t);
2927
- }
2928
- _removeHTMLContent(e) {
2929
- let t = e.getPrivate("htmlElement");
2930
- t && (this._htmlElementContainer.removeChild(t), e.removePrivate("htmlElement")), se(this._htmlEnabledContainers, e);
2931
- }
2932
- }
2933
- lt("AM5C241025748");
2934
- const qe = "en-us", De = /* @__PURE__ */ new Map([["ar", () => import("./ar-a17f8064.js")], ["bg-bg", () => import("./bg_BG-9950a70b.js")], ["bs-ba", () => import("./bs_BA-60482871.js")], ["ca-es", () => import("./ca_ES-a121088e.js")], ["cs-cz", () => import("./cs_CZ-1b968650.js")], ["da-dk", () => import("./da_DK-e0fe1642.js")], ["de-de", () => import("./de_DE-8609ef65.js")], ["de-ch", () => import("./de_CH-b0dbd4c8.js")], ["el-gr", () => import("./el_GR-5cfd1e7e.js")], ["en-us", () => import("./en_US-47f2633b.js")], ["en-ca", () => import("./en_CA-47f2633b.js")], ["es-es", () => import("./es_ES-489878a2.js")], ["et-ee", () => import("./et_EE-6472669a.js")], ["fi-fi", () => import("./fi_FI-d7a3a525.js")], ["fr-fr", () => import("./fr_FR-a88f2596.js")], ["he-il", () => import("./he_IL-e34cf273.js")], ["hr-hr", () => import("./hr_HR-6a124f87.js")], ["hu-hu", () => import("./hu_HU-58f3feb6.js")], ["id-id", () => import("./id_ID-18d97715.js")], ["it-it", () => import("./it_IT-49e70bbf.js")], ["ja-jp", () => import("./ja_JP-eaef2cc3.js")], ["ko-kr", () => import("./ko_KR-5c972fd8.js")], ["lt-lt", () => import("./lt_LT-26f13fd1.js")], ["lv-lv", () => import("./lv_LV-4feafa92.js")], ["nb-no", () => import("./nb_NO-21543153.js")], ["nl-nl", () => import("./nl_NL-7876d97f.js")], ["pl-pl", () => import("./pl_PL-276c6dae.js")], ["pt-br", () => import("./pt_BR-4fae3055.js")], ["pt-pt", () => import("./pt_PT-14d9efb1.js")], ["ro-ro", () => import("./ro_RO-8e733cf5.js")], ["ru-ru", () => import("./ru_RU-f7bafc90.js")], ["sk-sk", () => import("./sk_SK-c279eea3.js")], ["sl-sl", () => import("./sl_SL-e40950dd.js")], ["sr-rs", () => import("./sr_RS-b1835dfa.js")], ["sv-se", () => import("./sv_SE-15ca9e36.js")], ["th-th", () => import("./th_TH-bf624a56.js")], ["tr-tr", () => import("./tr_TR-ca5c315f.js")], ["uk-ua", () => import("./uk_UA-4b3cb86d.js")], ["vi-vn", () => import("./vi_VN-ad09e708.js")], ["zh-cn", () => import("./zh_Hans-61faef57.js")], ["zh-hk", () => import("./zh_Hant-87a9767b.js")], ["zh-tw", () => import("./zh_Hant-87a9767b.js")]]);
2935
- function ji(d) {
2936
- const e = d.split("-")[0].toLowerCase();
2937
- let t = null;
2938
- for (const i of De.keys())
2939
- if (i.startsWith(e)) {
2940
- t = i;
2941
- break;
2942
- }
2943
- return t;
2944
- }
2945
- function Ei(d) {
2946
- return d ? De.has(d.toLowerCase()) ? d.toLowerCase() : ji(d) || qe : qe;
2947
- }
2948
- async function Li(d, e = ot()) {
2949
- const t = Be.new(d);
2950
- return t.locale = (await De.get(Ei(e))()).default, t;
2951
- }
2952
- export {
2953
- Li as createRoot
2954
- };