@agrotools1/at-components 0.2.3 → 0.2.4
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.
- package/dist/AGraphicContainer-75e55bb8.js +109 -0
- package/dist/APIKeyMixin-688c6ac6.js +19 -0
- package/dist/Analysis-53f71911.js +31 -0
- package/dist/ArcGISCachedService-ea7559f0.js +47 -0
- package/dist/ArcGISService-a447176d.js +25 -0
- package/dist/AreaMeasurement2D-4d0db109.js +405 -0
- package/dist/AreaMeasurement3D-a2a10ea8.js +488 -0
- package/dist/AttachmentInfo-a2849bf0.js +34 -0
- package/dist/AttachmentQuery-e743e06f.js +18 -0
- package/dist/AttributeStore-6a3291d4.js +1707 -0
- package/dist/BaseDynamicLayerView2D-b3ff0eae.js +63 -0
- package/dist/BingMapsLayer-689d8e88.js +112 -0
- package/dist/Bitmap-e2b1f93c.js +128 -0
- package/dist/BitmapContainer-4dcc4a14.js +23 -0
- package/dist/BlendLayer-113fd3b8.js +13 -0
- package/dist/BoundsStore-3598604e.js +63 -0
- package/dist/BufferObject-59880a47.js +100 -0
- package/dist/BufferView-2cfe8c7d.js +683 -0
- package/dist/BuildingSceneLayer-a3e4a869.js +535 -0
- package/dist/Button-5e85250d.js +36 -0
- package/dist/CSVLayer-a68a64b8.js +208 -0
- package/dist/CSVSourceWorker-cf1fee99.js +367 -0
- package/dist/CardWithInsights/CardWithInsights.d.ts +2 -1
- package/dist/CatalogDynamicGroupLayerView2D-a4ae390f.js +66 -0
- package/dist/CatalogFootprintLayerView2D-145014a4.js +76 -0
- package/dist/CatalogLayer-48e7048b.js +262 -0
- package/dist/CatalogLayerView2D-8b4a4d47.js +52 -0
- package/dist/ClassBreaksDefinition-e2d8b3cc.js +18 -0
- package/dist/ColorMaterial.glsl-a7c70d21.js +64 -0
- package/dist/ColorSet-f4b34654.js +45 -0
- package/dist/ColorStop-1111f0fd.js +29 -0
- package/dist/Container-4a2d8bcd.js +521 -0
- package/dist/CustomParametersMixin-601866cc.js +12 -0
- package/dist/DefaultMaterial.glsl-9243ba6c.js +42 -0
- package/dist/DefaultMaterial_COLOR_GAMMA-bf0d97c7.js +653 -0
- package/dist/DefaultTheme-e96ad45b.js +130 -0
- package/dist/DeleteForwardEditsParameters-bd5164e3.js +18 -0
- package/dist/DimensionLayer-d51dcf5e.js +129 -0
- package/dist/DirectLineMeasurement3D-7b426a46.js +449 -0
- package/dist/DistanceMeasurement2D-1f05b105.js +303 -0
- package/dist/DoubleArray-4f276822.js +25 -0
- package/dist/Dropdown/Dropdown.core.d.ts +31 -0
- package/dist/Dropdown/Filter/test.mocks.d.ts +6 -0
- package/dist/Dropdown/List/Dropdown.List.d.ts +84 -0
- package/dist/Dropdown/List/test.mocks.d.ts +6 -0
- package/dist/EdgeProcessingWorker-317b2f9a.js +63 -0
- package/dist/EditBusLayer-55763028.js +107 -0
- package/dist/ElevationInfo-5be88917.js +56 -0
- package/dist/ElevationLayer-754634d4.js +129 -0
- package/dist/ElevationQuery-1e84df59.js +598 -0
- package/dist/ElevationSamplerWorker-1c01b3d8.js +62 -0
- package/dist/ExportImageParameters-e00a1031.js +66 -0
- package/dist/ExportStrategy-ba992e25.js +93 -0
- package/dist/ExportWMSImageParameters-395804ac.js +33 -0
- package/dist/External-77e767f4.js +110 -0
- package/dist/Faq/Faq.d.ts +1 -1
- package/dist/Faq/index.d.ts +1 -1
- package/dist/FeatureCollectionSnappingSource-d1435805.js +130 -0
- package/dist/FeatureCommandQueue-4db7f162.js +1244 -0
- package/dist/FeatureEffect-5b570804.js +39 -0
- package/dist/FeatureEffectLayer-171a9749.js +13 -0
- package/dist/FeatureFilter-db89ec09.js +27 -0
- package/dist/FeatureLayer-881827c7.js +693 -0
- package/dist/FeatureLayerBase-b410d8eb.js +148 -0
- package/dist/FeatureLayerSource-e5eba81e.js +444 -0
- package/dist/FeatureLayerView2D-107b4ed6.js +1967 -0
- package/dist/FeaturePipelineWorker-2b42d98d.js +3633 -0
- package/dist/FeatureReductionLayer-1f3f6a98.js +225 -0
- package/dist/FeatureReductionSelection-b0c4bcaf.js +22 -0
- package/dist/FeatureServiceSnappingSource-fde9a8da.js +481 -0
- package/dist/FeatureServiceSnappingSourceWorker-d4113c50.js +747 -0
- package/dist/FeatureSet-595ae550.js +188 -0
- package/dist/FeatureStore-87fbe804.js +131 -0
- package/dist/FeatureTemplate-c810cba6.js +12 -0
- package/dist/FeatureType-22de76b9.js +25 -0
- package/dist/FieldsIndex-390b005f.js +109 -0
- package/dist/FormTemplate-728de82d.js +350 -0
- package/dist/GeoJSONLayer-fbf5ee27.js +236 -0
- package/dist/GeoJSONSourceWorker-30cd4133.js +247 -0
- package/dist/GeoRSSLayer-2addf639.js +73 -0
- package/dist/GeoRSSLayerView2D-29c15edb.js +140 -0
- package/dist/GeometryUtils-80d3036a.js +403 -0
- package/dist/GraphicContainer-2b112072.js +26 -0
- package/dist/GraphicManipulator-84ac0573.js +1499 -0
- package/dist/GraphicsLayer-ee9f874e.js +38 -0
- package/dist/GraphicsLayerView2D-c5eda7d2.js +114 -0
- package/dist/GraphicsSnappingSource-3dd1e9b3.js +273 -0
- package/dist/GraphicsView2D-40686b59.js +620 -0
- package/dist/GroupLayer-fd168a3e.js +147 -0
- package/dist/GroupLayerView2D-f4078b54.js +98 -0
- package/dist/HUDMaterial.glsl-bea5cb7c.js +65 -0
- package/dist/HighlightCounter-b3b4b206.js +41 -0
- package/dist/HighlightGraphicContainer-c00c331b.js +18 -0
- package/dist/I3SBinaryReader-d3a26893.js +310 -0
- package/dist/I3SLayerDefinitions-2bea64c8.js +55 -0
- package/dist/I3SUtil-ab1a91f5.js +59 -0
- package/dist/IdentityManager-8e14d109.js +899 -0
- package/dist/ImageHistogramParameters-711f313f.js +905 -0
- package/dist/ImageryLayer-fbaf4d8c.js +1799 -0
- package/dist/ImageryLayerView2D-199eb1fd.js +352 -0
- package/dist/ImageryTileLayer-48671dc9.js +2157 -0
- package/dist/ImageryTileLayerView2D-8ac1ee64.js +1110 -0
- package/dist/Indices-2f9cf62d.js +67 -0
- package/dist/Input/Input.core.d.ts +4553 -3
- package/dist/Input/index.d.ts +4547 -3
- package/dist/IntegratedMesh3DTilesLayer-89d862a2.js +112 -0
- package/dist/IntegratedMeshLayer-53f792e4.js +141 -0
- package/dist/InteractiveAnalysisViewModel-d7dd665d.js +7397 -0
- package/dist/InterleavedLayout-ff67e161.js +163 -0
- package/dist/KMLLayer-7a4cfa2a.js +162 -0
- package/dist/KMLLayerView2D-d0874e8d.js +253 -0
- package/dist/KnowledgeGraphLayerView2D-70d956b2.js +43 -0
- package/dist/LRUCache-5bebd9a8.js +32 -0
- package/dist/LabelClass-63459c37.js +135 -0
- package/dist/LabelMetric-09a9cd38.js +400 -0
- package/dist/LaserlinePath.glsl-731dbba1.js +64 -0
- package/dist/Laserlines.glsl-26d42447.js +65 -0
- package/dist/LayerFloorInfo-5c67a822.js +15 -0
- package/dist/LayerView-405cecd2.js +206 -0
- package/dist/LercWorker-a7892aa0.js +157 -0
- package/dist/LineOfSightLayer-abad68f7.js +147 -0
- package/dist/LinkChartLayer-c36d2a81.js +1027 -0
- package/dist/Lyr3DWorker-8f4c6c50.js +82 -0
- package/dist/MagnifierPrograms-ddc85113.js +806 -0
- package/dist/MapImageLayer-04f4cdcb.js +169 -0
- package/dist/MapImageLayerView2D-712dd60f.js +146 -0
- package/dist/MapNotesLayer-83fcba8e.js +283 -0
- package/dist/MapNotesLayerView2D-f0ad0a82.js +161 -0
- package/dist/MapServiceLayerViewHelper-6c746a26.js +288 -0
- package/dist/MeasurementWidgetContent-fc0c1569.js +2642 -0
- package/dist/MediaLayer-05162eaf.js +523 -0
- package/dist/MediaLayerView2D-474c563b.js +332 -0
- package/dist/MemCache-8f96824a.js +227 -0
- package/dist/MemorySourceWorker-08562524.js +222 -0
- package/dist/Mesh-3208420e.js +980 -0
- package/dist/MeshLocalVertexSpace-59268d9e.js +19 -0
- package/dist/MultiOriginJSONSupport-365740bb.js +158 -0
- package/dist/OGCFeatureLayer-7201d1ee.js +211 -0
- package/dist/OGCFeatureLayerView2D-d242f130.js +82 -0
- package/dist/ObjectStack-bad354ab.js +21 -0
- package/dist/Octree-cbaefa65.js +495 -0
- package/dist/OpenStreetMapLayer-b3c8020b.js +30 -0
- package/dist/OperationalLayer-30f48d16.js +44 -0
- package/dist/OrderByInfo-9bd0a8fe.js +16 -0
- package/dist/OrderedLayer-2962d196.js +26 -0
- package/dist/OrientedImageryLayer-5d599e15.js +216 -0
- package/dist/OverlayCompositing.glsl-334c68d5.js +65 -0
- package/dist/OverrideHelper-7981ecc2.js +242 -0
- package/dist/PBFDecoderWorker-48f7e620.js +213 -0
- package/dist/PointCloudLayer-5b804571.js +197 -0
- package/dist/PointCloudUniqueValueRenderer-9ef1db42.js +115 -0
- package/dist/PointCloudWorker-9e88daea.js +212 -0
- package/dist/PooledRBush-afceba5f.js +272 -0
- package/dist/Popup-89e3fd56.js +3990 -0
- package/dist/PortalLayer-21d22eb9.js +126 -0
- package/dist/Program-09ee8c67.js +694 -0
- package/dist/ProgramTemplate-be811b23.js +35 -0
- package/dist/ProgressBar/ProgressBar.d.ts +13 -1
- package/dist/QueryEngine-810a7f24.js +896 -0
- package/dist/QueryTask-013cc810.js +119 -0
- package/dist/RasterSymbolizer-ae063ee7.js +3024 -0
- package/dist/RasterVFDisplayObject-fe2f7ea2.js +581 -0
- package/dist/RasterWorker-7efcbd4d.js +78 -0
- package/dist/RawBlockCache-5a644219.js +185 -0
- package/dist/RealisticTree.glsl-4e33ae57.js +42 -0
- package/dist/RefreshableLayer-e64dd0ee.js +80 -0
- package/dist/RefreshableLayerView-61f7dd9a.js +16 -0
- package/dist/Relationship-adcdce15.js +64 -0
- package/dist/RelationshipQuery-0c20b8ed.js +22 -0
- package/dist/RenderingContext-29b578ca.js +889 -0
- package/dist/RibbonLine.glsl-038f5cac.js +65 -0
- package/dist/RouteLayer-479e0ccc.js +786 -0
- package/dist/RouteLayerView2D-1a646f54.js +195 -0
- package/dist/SDFHelper-9abcbcca.js +140 -0
- package/dist/SSAO.glsl-5d41f99f.js +43 -0
- package/dist/SSAOBlur.glsl-7ebf8f5c.js +42 -0
- package/dist/ScaleRangeLayer-3bbd6ead.js +21 -0
- package/dist/SceneLayer-b19fa11e.js +542 -0
- package/dist/SceneLayerSnappingSource-f53ddd8a.js +218 -0
- package/dist/SceneLayerSnappingSourceWorker-80f48214.js +112 -0
- package/dist/SceneLayerWorker-bab8aeb0.js +164 -0
- package/dist/SceneService-0c4fac79.js +215 -0
- package/dist/Scheduler-9db9a8cf.js +373 -0
- package/dist/Search/Search.d.ts +99 -0
- package/dist/Search/index.d.ts +1 -0
- package/dist/Search/test.mocks.d.ts +3 -0
- package/dist/Search/utils.d.ts +3 -0
- package/dist/Select/Item/Item.d.ts +1 -1
- package/dist/Select/Multiple/Select.multiple.d.ts +3 -3
- package/dist/Select/Select.core.d.ts +1 -1
- package/dist/Select/index.d.ts +3 -3
- package/dist/ShadedColorMaterial.glsl-a2dd0bb3.js +64 -0
- package/dist/SnappingOperation-25ff52da.js +48 -0
- package/dist/SourceLayerData-ec301fa4.js +116 -0
- package/dist/SpatialFilter-351a1d5e.js +1701 -0
- package/dist/Stop-595501a7.js +281 -0
- package/dist/StreamLayer-d5ebd4d3.js +188 -0
- package/dist/StreamLayerView2D-8a39daaa.js +164 -0
- package/dist/StyleRepository-dd283243.js +2212 -0
- package/dist/SublayersOwner-0be88fd0.js +545 -0
- package/dist/SubtypeGroupLayer-8386c037.js +514 -0
- package/dist/SubtypeGroupLayerView2D-97b63aa1.js +84 -0
- package/dist/Tabs/Tab/Tab.d.ts +3 -3
- package/dist/Tag/Tag.d.ts +52 -0
- package/dist/TechniqueInstance-87f77cd3.js +233 -0
- package/dist/TemporalLayer-7c15b8a6.js +23 -0
- package/dist/Texture-c1f5f21b.js +501 -0
- package/dist/TextureOnly.glsl-acae1d94.js +65 -0
- package/dist/Theme-72a69427.js +3426 -0
- package/dist/Tick-d7f9b999.js +723 -0
- package/dist/TileContainer-20f11bc5.js +31 -0
- package/dist/TileInfoTilemapCache-a50aaed0.js +38 -0
- package/dist/TileLayer-ce04649f.js +194 -0
- package/dist/TileLayerView2D-0f45ff75.js +187 -0
- package/dist/TilemapCache-95b53d5a.js +189 -0
- package/dist/TimeInfo-f17e0ff9.js +42 -0
- package/dist/TimeOnly-63922f1a.js +706 -0
- package/dist/Tooltip-a21a6650.js +138 -0
- package/dist/TopFeaturesQuery-9e4228e7.js +32 -0
- package/dist/TurboLine-aeb14d6e.js +565 -0
- package/dist/UniqueValueRenderer-7532473e.js +1039 -0
- package/dist/UnknownLayer-99d4832b.js +30 -0
- package/dist/UnknownTimeZone-4c0a5184.js +15 -0
- package/dist/UnsupportedLayer-f439265c.js +31 -0
- package/dist/UpdateTracking2D-a1164b3d.js +8566 -0
- package/dist/Upload/Upload.d.ts +91 -14
- package/dist/Upload/index.d.ts +1 -1
- package/dist/Util-26f81cc4.js +57 -0
- package/dist/VectorTileLayer-8b5289d2.js +544 -0
- package/dist/VectorTileLayerView2D-00d98337.js +2108 -0
- package/dist/Version-2556ea28.js +33 -0
- package/dist/VertexArrayObject-5595c535.js +73 -0
- package/dist/VertexColor.glsl-01eb58bb.js +2683 -0
- package/dist/VertexSnappingCandidate-c1e2992a.js +13 -0
- package/dist/VideoLayerView2D-e92c8bab.js +124 -0
- package/dist/VoxelLayer-e57c2b7b.js +631 -0
- package/dist/WFSLayer-486fff2e.js +221 -0
- package/dist/WFSSourceWorker-3d8ac573.js +157 -0
- package/dist/WGLContainer-1441483b.js +5426 -0
- package/dist/WMSLayer-07ea95cc.js +536 -0
- package/dist/WMSLayerView2D-8b67d5da.js +117 -0
- package/dist/WMTSLayer-b52fbe0c.js +531 -0
- package/dist/WMTSLayerView2D-8ca1d522.js +142 -0
- package/dist/WebTileLayer-dd24dee2.js +110 -0
- package/dist/WhereClause-2eefa48c.js +2766 -0
- package/dist/WorkerHandle-f6b5ac7b.js +47 -0
- package/dist/WorkerTileHandler-e060fab5.js +1539 -0
- package/dist/action-a2d13907.js +198 -0
- package/dist/action-group-af071314.js +145 -0
- package/dist/action-menu-c759068f.js +1759 -0
- package/dist/apng-b33ce902.js +392 -0
- package/dist/arcade-b05c8c22.js +229 -0
- package/dist/arcadeAsyncRuntime-9b4a7891.js +943 -0
- package/dist/arcadeUtils-41691d12.js +8741 -0
- package/dist/arcgis-knowledge-client-core-2217ce57.js +1218 -0
- package/dist/arcgis-knowledge-client-core-simd-ab44590a.js +1218 -0
- package/dist/arcgisLayers-0ea0be85.js +152 -0
- package/dist/associatedFeatureServiceUtils-09077513.js +92 -0
- package/dist/axisAngleDegrees-1c3d7520.js +49 -0
- package/dist/basis_transcoder-292f1aaf.js +1248 -0
- package/dist/calcite-action-ad0d1e23.js +22 -0
- package/dist/calcite-action-bar-1b2de6d0.js +303 -0
- package/dist/calcite-action-group-aacf8ec4.js +28 -0
- package/dist/calcite-button-125cbd95.js +228 -0
- package/dist/calcite-flow-c9a6e8fa.js +128 -0
- package/dist/calcite-flow-item-eb314bb8.js +499 -0
- package/dist/calcite-icon-07f22bc6.js +16 -0
- package/dist/calcite-input-167be799.js +24 -0
- package/dist/calcite-label-7de34a6b.js +79 -0
- package/dist/calcite-list-2087f9ca.js +2135 -0
- package/dist/calcite-list-item-3419fb5f.js +576 -0
- package/dist/calcite-list-item-group-3a6545e3.js +71 -0
- package/dist/calcite-loader-16bcfb95.js +14 -0
- package/dist/calcite-modal-f608731f.js +333 -0
- package/dist/calcite-notice-88ee1edf.js +181 -0
- package/dist/calcite-option-375585a2.js +94 -0
- package/dist/calcite-scrim-751cf767.js +18 -0
- package/dist/calcite-select-62db97da.js +231 -0
- package/dist/capabilities-359df394.js +50 -0
- package/dist/chartCommon-cceb2530.js +256 -0
- package/dist/chartUtilsAm5-08a29408.js +2954 -0
- package/dist/clientSideDefaults-b5450c9b.js +39 -0
- package/dist/colorRamps-314c4b5a.js +38 -0
- package/dist/colorUtils-6e9b620c.js +164 -0
- package/dist/commonProperties-3399f319.js +60 -0
- package/dist/computeTranslationToOriginAndRotation-0b0f32ad.js +60 -0
- package/dist/conditionalSlot-012fd5da.js +27 -0
- package/dist/createConnection-f1189f51.js +299 -0
- package/dist/dataUtils-950a0ae9.js +1421 -0
- package/dist/deduplicate-eabb5f9e.js +89 -0
- package/dist/defaults-e5c5ee75.js +31 -0
- package/dist/deleteForwardEdits-ea9258ea.js +13 -0
- package/dist/diffUtils-04a71a59.js +90 -0
- package/dist/drapedUtils-2515520d.js +75 -0
- package/dist/earcut-192842ab.js +292 -0
- package/dist/edgeProcessing-da003f69.js +252 -0
- package/dist/editingSupport-9f04ba1b.js +203 -0
- package/dist/editsZScale-97938687.js +37 -0
- package/dist/elevationInfoUtils-e1edd62e.js +126 -0
- package/dist/executeForIds-3b8a1698.js +14 -0
- package/dist/executeForTopCount-6c6cd2f2.js +17 -0
- package/dist/executeForTopExtents-86851593.js +17 -0
- package/dist/executeForTopIds-24bc9dea.js +17 -0
- package/dist/executeQueryJSON-cf7d748b.js +15 -0
- package/dist/executeQueryPBF-ad416846.js +152 -0
- package/dist/executeRelationshipQuery-9b6666bf.js +53 -0
- package/dist/executeTopFeaturesQuery-4ac72bd2.js +18 -0
- package/dist/featureConversionUtils-67a121da.js +479 -0
- package/dist/featureLayerUtils-a4002773.js +142 -0
- package/dist/featureLayerUtils-a7e985d2.js +250 -0
- package/dist/featureSetUtils-11fcb3c4.js +2530 -0
- package/dist/featuresetbase-47894167.js +707 -0
- package/dist/featuresetgeom-bff2aa07.js +99 -0
- package/dist/featuresetstats-14a3fe2b.js +81 -0
- package/dist/featuresetstring-de2b64db.js +95 -0
- package/dist/fetchService-b6d76f5e.js +33 -0
- package/dist/fieldProperties-a9fbe289.js +33 -0
- package/dist/floatRGBA-2bc6800c.js +20 -0
- package/dist/form-e210eee8.js +138 -0
- package/dist/geohashUtils-085312a3.js +85 -0
- package/dist/geojson-f0bc401a.js +208 -0
- package/dist/geomasync-3c3b5e8d.js +567 -0
- package/dist/geometryEngine-2772790a.js +192 -0
- package/dist/geometryEngineAsync-db2e5674.js +217 -0
- package/dist/geometryEngineBase-8b327072.js +18463 -0
- package/dist/geometryEngineJSON-95268e88.js +171 -0
- package/dist/geometryEngineJSON-fc48a48b.js +46 -0
- package/dist/geometryEngineWorker-2fbc65f7.js +11 -0
- package/dist/geometryServiceUtils-ed9cb722.js +28 -0
- package/dist/georeference-f6f67e9b.js +291 -0
- package/dist/gif-a4043534.js +323 -0
- package/dist/gltfexport-d028c5c9.js +705 -0
- package/dist/groupLayerUtils-22dde377.js +39 -0
- package/dist/heatmapUtils-8e578a0a.js +45 -0
- package/dist/highlightReasons-ab23926f.js +19 -0
- package/dist/hydrated-219f2b0c.js +40 -0
- package/dist/i3s-b5ed4851.js +809 -0
- package/dist/icon-8711ff33.js +127 -0
- package/dist/imageBitmapUtils-dc97b3de.js +23 -0
- package/dist/imageUtils-0a71062a.js +69 -0
- package/dist/imageUtils-a4c7c9bf.js +89 -0
- package/dist/imageryUtils-d21fd540.js +43 -0
- package/dist/index-f28919b2.js +43440 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +15 -12
- package/dist/input-message-3df877b9.js +92 -0
- package/dist/input2-32e36924.js +575 -0
- package/dist/interactive-c1e1aeaf.js +80 -0
- package/dist/jsonContext-4622e179.js +15 -0
- package/dist/jsonUtils-9f58b7bb.js +476 -0
- package/dist/jsonUtils-d9bb6102.js +86 -0
- package/dist/jsonUtils-e40213c1.js +59 -0
- package/dist/kmlUtils-5f8f6cf6.js +112 -0
- package/dist/knowledgeGraphService-a34bf3b0.js +739 -0
- package/dist/knowledgegraph-68124c78.js +149 -0
- package/dist/labelUtils-3a1386e4.js +61 -0
- package/dist/labelingInfo-69c9f8f4.js +46 -0
- package/dist/layersCreator-5e6fe7f2.js +151 -0
- package/dist/layersLoader-f96735c7.js +197 -0
- package/dist/lazyLayerLoader-142515c4.js +10 -0
- package/dist/lclayout-639ec791.js +773 -0
- package/dist/lengthUtils-8796ccf3.js +5 -0
- package/dist/lerc-wasm-acb341bd.js +325 -0
- package/dist/libtess-a9e7192e.js +269 -0
- package/dist/libtess-asm-8de2fb72.js +3673 -0
- package/dist/lineSegment-2790f546.js +76 -0
- package/dist/loadGLTFMesh-33064e6d.js +181 -0
- package/dist/loadable-4558719f.js +24 -0
- package/dist/loader-4dbc522d.js +79 -0
- package/dist/lyr3DWorker-3365d66f.js +2108 -0
- package/dist/mapViewDeps-67ec1d27.js +3052 -0
- package/dist/mediaLayerUtils-612838fb.js +35 -0
- package/dist/meshFeatureSet-07b96756.js +126 -0
- package/dist/meshVertexSpaceUtils-673c2055.js +58 -0
- package/dist/multidimensionalUtils-79cc2536.js +290 -0
- package/dist/normalizeUtilsSync-9fd98ab4.js +181 -0
- package/dist/number-110986f5.js +128 -0
- package/dist/objectResourceUtils-1b8d1c03.js +1455 -0
- package/dist/observers-507c19a0.js +30 -0
- package/dist/ogcFeatureUtils-3c65f06a.js +206 -0
- package/dist/openCloseComponent-89dc4d35.js +37 -0
- package/dist/orientedBoundingBox-46d44acf.js +447 -0
- package/dist/parser-8f715684.js +488 -0
- package/dist/pbf-4ce99129.js +215 -0
- package/dist/pbfQueryUtils-23cca540.js +422 -0
- package/dist/pe-wasm-d186391a.js +887 -0
- package/dist/persistable-09062510.js +89 -0
- package/dist/perspectiveUtils-9da629d6.js +42 -0
- package/dist/pieChart-92709a5c.js +555 -0
- package/dist/plane-2b39f8eb.js +160 -0
- package/dist/popupUtils-dc099446.js +22 -0
- package/dist/popupUtils-e53c5c04.js +50 -0
- package/dist/portalItemUtils-39079445.js +57 -0
- package/dist/portalLayers-efcd5403.js +312 -0
- package/dist/portalUtils-44b1ac04.js +7 -0
- package/dist/programUtils-c22a40e2.js +59 -0
- package/dist/project-4759dc23.js +21 -0
- package/dist/projectPointToVector-1d9098bc.js +14 -0
- package/dist/projectVectorToVector-add01592.js +13 -0
- package/dist/quantityUtils-afe6e5b7.js +33 -0
- package/dist/quantizationUtils-51d3a038.js +68 -0
- package/dist/quat-22f56b72.js +104 -0
- package/dist/query-8cf3e12b.js +89 -0
- package/dist/queryAttachments-0a63ea2f.js +39 -0
- package/dist/queryEngineUtils-a1db57f0.js +21 -0
- package/dist/queryTopFeatures-b4fb05ad.js +50 -0
- package/dist/queryZScale-112cd8e3.js +12 -0
- package/dist/rasterProjectionHelper-3ae0fcfd.js +577 -0
- package/dist/rasterUtils-6868b6b6.js +122 -0
- package/dist/rasterizingUtils-922f43e7.js +46 -0
- package/dist/request-fd620c13.js +46 -0
- package/dist/requestImageUtils-f8f50ad7.js +8 -0
- package/dist/resourceExtension-f0327971.js +17 -0
- package/dist/resourceUtils-2e33090d.js +69 -0
- package/dist/resourceUtils-db0d7e83.js +42 -0
- package/dist/resourceUtils-ff5eafc3.js +62 -0
- package/dist/saveAPIKeyUtils-32bb955d.js +8 -0
- package/dist/saveUtils-d4ad8f94.js +24 -0
- package/dist/scaleUtils-a3ce8cc6.js +23 -0
- package/dist/scrim-7ef1cdf5.js +114 -0
- package/dist/serviceCapabilitiesUtils-cafdd4bc.js +64 -0
- package/dist/sourceUtils-1a30f8aa.js +71 -0
- package/dist/sphere-84d1e36b.js +199 -0
- package/dist/statsWorker-efb7a41b.js +37 -0
- package/dist/streamLayerUtils-4c5b417e.js +31 -0
- package/dist/style.css +1 -1
- package/dist/styleUtils-8f0e3848.js +75 -0
- package/dist/styleUtils-a61894cc.js +14 -0
- package/dist/sublayerUtils-aaa67481.js +37 -0
- package/dist/substitute-7b4a925f.js +52 -0
- package/dist/symbolColorUtils-45615b74.js +8 -0
- package/dist/symbolLayerUtils-6ee325f3.js +31 -0
- package/dist/symbologySnappingCandidates-a56c7bbb.js +221 -0
- package/dist/t9n-b5ab99e4.js +349 -0
- package/dist/testSVGPremultipliedAlpha-a89a8569.js +94 -0
- package/dist/timeSupport-76d5ec0e.js +410 -0
- package/dist/triangle-95e355d3.js +98 -0
- package/dist/unitConversionUtils-b0c2c156.js +17 -0
- package/dist/unitFormatUtils-b79fea5c.js +40 -0
- package/dist/uploadAssetErrors-7ef907ce.js +70 -0
- package/dist/uploadAssets-99a2ec95.js +330 -0
- package/dist/utils-0da4a164.js +419 -0
- package/dist/utils-0e163cdb.js +433 -0
- package/dist/utils-421c60f9.js +73 -0
- package/dist/utils-6e4fc34d.js +91 -0
- package/dist/utils-9612bce6.js +34 -0
- package/dist/utils-99bb2971.js +2746 -0
- package/dist/utils-d1f92cf8.js +79 -0
- package/dist/utils-e30b7de3.js +232 -0
- package/dist/utils3-41d8e55d.js +75 -0
- package/dist/vec3-ab2339d6.js +81 -0
- package/dist/vec42-1a7bd7a6.js +125 -0
- package/dist/versionUtils-b6c13869.js +161 -0
- package/dist/visualVariableUtils-1a38c540.js +267 -0
- package/dist/webStyleSymbolUtils-6f89a405.js +48 -0
- package/dist/webglDeps-dcb6738a.js +23 -0
- package/dist/wfsUtils-d679c9b9.js +343 -0
- package/dist/workerHelper-8fb7376f.js +11 -0
- package/dist/xyChart-b3c4e27e.js +3335 -0
- package/package.json +1 -1
- package/dist/AGraphicContainer-98a4c8a4.js +0 -109
- package/dist/APIKeyMixin-9511e0a5.js +0 -19
- package/dist/Analysis-4b1d1fb5.js +0 -31
- package/dist/ArcGISCachedService-93e2cb27.js +0 -47
- package/dist/ArcGISService-3f8d89c1.js +0 -25
- package/dist/AreaMeasurement2D-e0bb230c.js +0 -405
- package/dist/AreaMeasurement3D-a9959ecf.js +0 -488
- package/dist/AttachmentInfo-601c56e2.js +0 -34
- package/dist/AttachmentQuery-3504d550.js +0 -18
- package/dist/AttributeStore-b90878e3.js +0 -1707
- package/dist/BaseDynamicLayerView2D-b2faf028.js +0 -63
- package/dist/BingMapsLayer-5d79fe2b.js +0 -112
- package/dist/Bitmap-f775c851.js +0 -128
- package/dist/BitmapContainer-af5942b8.js +0 -23
- package/dist/BlendLayer-a792edf6.js +0 -13
- package/dist/BoundsStore-789624df.js +0 -63
- package/dist/BufferObject-cbd0168e.js +0 -100
- package/dist/BufferView-004ad517.js +0 -683
- package/dist/BuildingSceneLayer-25bc760b.js +0 -535
- package/dist/Button-70963624.js +0 -36
- package/dist/CSVLayer-fd3b6750.js +0 -208
- package/dist/CSVSourceWorker-eb24cd85.js +0 -367
- package/dist/CatalogDynamicGroupLayerView2D-dfc700a4.js +0 -66
- package/dist/CatalogFootprintLayerView2D-6eb16597.js +0 -76
- package/dist/CatalogLayer-1cc632fe.js +0 -262
- package/dist/CatalogLayerView2D-d143aa34.js +0 -52
- package/dist/ClassBreaksDefinition-07ba0c64.js +0 -18
- package/dist/ColorMaterial.glsl-e7801766.js +0 -64
- package/dist/ColorSet-df5696b5.js +0 -45
- package/dist/ColorStop-7187f368.js +0 -29
- package/dist/Container-ac97765a.js +0 -521
- package/dist/CustomParametersMixin-b3432b3e.js +0 -12
- package/dist/DefaultMaterial.glsl-3cc4efe7.js +0 -42
- package/dist/DefaultMaterial_COLOR_GAMMA-337c63aa.js +0 -653
- package/dist/DefaultTheme-12dffc66.js +0 -130
- package/dist/DeleteForwardEditsParameters-ae76d898.js +0 -18
- package/dist/DimensionLayer-9eb47c76.js +0 -129
- package/dist/DirectLineMeasurement3D-e9903136.js +0 -449
- package/dist/DistanceMeasurement2D-a4853462.js +0 -303
- package/dist/DoubleArray-5076283e.js +0 -25
- package/dist/EdgeProcessingWorker-c1783ddd.js +0 -63
- package/dist/EditBusLayer-e812f4c9.js +0 -107
- package/dist/ElevationInfo-fad03d5e.js +0 -56
- package/dist/ElevationLayer-397792d5.js +0 -129
- package/dist/ElevationQuery-beceb62f.js +0 -598
- package/dist/ElevationSamplerWorker-0048a204.js +0 -62
- package/dist/ExportImageParameters-c6c4bc61.js +0 -66
- package/dist/ExportStrategy-908f5b8d.js +0 -93
- package/dist/ExportWMSImageParameters-34da6b46.js +0 -33
- package/dist/External-14daf0c1.js +0 -110
- package/dist/FeatureCollectionSnappingSource-f97a1829.js +0 -130
- package/dist/FeatureCommandQueue-d4817eac.js +0 -1244
- package/dist/FeatureEffect-08976bbd.js +0 -39
- package/dist/FeatureEffectLayer-05c258f4.js +0 -13
- package/dist/FeatureFilter-8c5e44b1.js +0 -27
- package/dist/FeatureLayer-d3659466.js +0 -693
- package/dist/FeatureLayerBase-9b63f732.js +0 -148
- package/dist/FeatureLayerSource-960f1c01.js +0 -444
- package/dist/FeatureLayerView2D-7503e1ed.js +0 -1967
- package/dist/FeaturePipelineWorker-d4301d2a.js +0 -3633
- package/dist/FeatureReductionLayer-e6cf73ac.js +0 -225
- package/dist/FeatureReductionSelection-d90249a7.js +0 -22
- package/dist/FeatureServiceSnappingSource-9e49ca72.js +0 -481
- package/dist/FeatureServiceSnappingSourceWorker-39b093b3.js +0 -747
- package/dist/FeatureSet-d79f0e48.js +0 -188
- package/dist/FeatureStore-eb4b87c0.js +0 -131
- package/dist/FeatureTemplate-edb1b782.js +0 -12
- package/dist/FeatureType-bba29adb.js +0 -25
- package/dist/FieldsIndex-75cca4d0.js +0 -109
- package/dist/FormTemplate-22911c47.js +0 -350
- package/dist/GeoJSONLayer-b33c96b8.js +0 -236
- package/dist/GeoJSONSourceWorker-b04ff552.js +0 -247
- package/dist/GeoRSSLayer-6e5fcd0e.js +0 -73
- package/dist/GeoRSSLayerView2D-21b6b12e.js +0 -140
- package/dist/GeometryUtils-fa897cbd.js +0 -403
- package/dist/GraphicContainer-1fd6bfce.js +0 -26
- package/dist/GraphicManipulator-f3b7dc9b.js +0 -1499
- package/dist/GraphicsLayer-e0686779.js +0 -38
- package/dist/GraphicsLayerView2D-a7eba2fe.js +0 -114
- package/dist/GraphicsSnappingSource-594f402a.js +0 -273
- package/dist/GraphicsView2D-347562b8.js +0 -620
- package/dist/GroupLayer-7ae0a916.js +0 -147
- package/dist/GroupLayerView2D-ffcde606.js +0 -98
- package/dist/HUDMaterial.glsl-b0a3e0ce.js +0 -65
- package/dist/HighlightCounter-e18f0179.js +0 -41
- package/dist/HighlightGraphicContainer-fd774cea.js +0 -18
- package/dist/I3SBinaryReader-190e99de.js +0 -310
- package/dist/I3SLayerDefinitions-6ddaca60.js +0 -55
- package/dist/I3SUtil-44b83dc0.js +0 -59
- package/dist/IdentityManager-fbe91c13.js +0 -899
- package/dist/ImageHistogramParameters-d64fd9c8.js +0 -905
- package/dist/ImageryLayer-67878a78.js +0 -1799
- package/dist/ImageryLayerView2D-ae45faba.js +0 -352
- package/dist/ImageryTileLayer-9dca8b93.js +0 -2157
- package/dist/ImageryTileLayerView2D-977f66aa.js +0 -1110
- package/dist/Indices-e6dc3b15.js +0 -67
- package/dist/IntegratedMesh3DTilesLayer-8811e7bf.js +0 -112
- package/dist/IntegratedMeshLayer-9162c0b5.js +0 -141
- package/dist/InteractiveAnalysisViewModel-b046fcb9.js +0 -7397
- package/dist/InterleavedLayout-32973c8a.js +0 -163
- package/dist/KMLLayer-80f81df7.js +0 -162
- package/dist/KMLLayerView2D-b6ba3b80.js +0 -253
- package/dist/KnowledgeGraphLayerView2D-ae91bd81.js +0 -43
- package/dist/LRUCache-27e8c401.js +0 -32
- package/dist/LabelClass-d9a476d6.js +0 -135
- package/dist/LabelMetric-e2728bbf.js +0 -400
- package/dist/LaserlinePath.glsl-60d00e61.js +0 -64
- package/dist/Laserlines.glsl-499a6cbf.js +0 -65
- package/dist/LayerFloorInfo-d05cf9dd.js +0 -15
- package/dist/LayerView-036988a9.js +0 -206
- package/dist/LercWorker-b1b4bb47.js +0 -157
- package/dist/LineOfSightLayer-9a9a60b7.js +0 -147
- package/dist/LinkChartLayer-d61803bb.js +0 -1027
- package/dist/Lyr3DWorker-87be14e0.js +0 -82
- package/dist/MagnifierPrograms-da7a27ab.js +0 -806
- package/dist/MapImageLayer-f07adf1a.js +0 -169
- package/dist/MapImageLayerView2D-d1b140c3.js +0 -146
- package/dist/MapNotesLayer-c662d147.js +0 -283
- package/dist/MapNotesLayerView2D-bf9ac698.js +0 -161
- package/dist/MapServiceLayerViewHelper-fb724de9.js +0 -288
- package/dist/MeasurementWidgetContent-e4888ef2.js +0 -2642
- package/dist/MediaLayer-36d873a3.js +0 -523
- package/dist/MediaLayerView2D-e58b8ec0.js +0 -332
- package/dist/MemCache-a9232ec2.js +0 -227
- package/dist/MemorySourceWorker-20ff27d6.js +0 -222
- package/dist/Mesh-3839826a.js +0 -980
- package/dist/MeshLocalVertexSpace-00151564.js +0 -19
- package/dist/MultiOriginJSONSupport-bb258670.js +0 -158
- package/dist/OGCFeatureLayer-2a8b7ecc.js +0 -211
- package/dist/OGCFeatureLayerView2D-185f9649.js +0 -82
- package/dist/ObjectStack-10d91171.js +0 -21
- package/dist/Octree-78797046.js +0 -495
- package/dist/OpenStreetMapLayer-b0a17790.js +0 -30
- package/dist/OperationalLayer-55af27d6.js +0 -44
- package/dist/OrderByInfo-22e3c805.js +0 -16
- package/dist/OrderedLayer-1403a591.js +0 -26
- package/dist/OrientedImageryLayer-8ec8d7d1.js +0 -216
- package/dist/OverlayCompositing.glsl-ba3bd81d.js +0 -65
- package/dist/OverrideHelper-82325a2c.js +0 -242
- package/dist/PBFDecoderWorker-f6517afc.js +0 -213
- package/dist/PointCloudLayer-cff43a10.js +0 -197
- package/dist/PointCloudUniqueValueRenderer-f337a895.js +0 -115
- package/dist/PointCloudWorker-cdb28dc1.js +0 -212
- package/dist/PooledRBush-ee4e60af.js +0 -272
- package/dist/Popup-c7f55588.js +0 -3990
- package/dist/PortalLayer-07b3c53e.js +0 -126
- package/dist/Program-ba2f18b2.js +0 -694
- package/dist/ProgramTemplate-eee4f097.js +0 -35
- package/dist/QueryEngine-10c97624.js +0 -896
- package/dist/QueryTask-115430b6.js +0 -119
- package/dist/RasterSymbolizer-fbf433fe.js +0 -3024
- package/dist/RasterVFDisplayObject-20b0dd86.js +0 -581
- package/dist/RasterWorker-44c37e20.js +0 -78
- package/dist/RawBlockCache-25203dbd.js +0 -185
- package/dist/RealisticTree.glsl-bc07c4dc.js +0 -42
- package/dist/RefreshableLayer-9550b85a.js +0 -80
- package/dist/RefreshableLayerView-601f7038.js +0 -16
- package/dist/Relationship-c662830e.js +0 -64
- package/dist/RelationshipQuery-765f068e.js +0 -22
- package/dist/RenderingContext-3db74548.js +0 -889
- package/dist/RibbonLine.glsl-c6a715b7.js +0 -65
- package/dist/RouteLayer-3f5411f3.js +0 -786
- package/dist/RouteLayerView2D-a5fd4cbf.js +0 -195
- package/dist/SDFHelper-a34e90ee.js +0 -140
- package/dist/SSAO.glsl-5491a708.js +0 -43
- package/dist/SSAOBlur.glsl-f3068b8e.js +0 -42
- package/dist/ScaleRangeLayer-7ddf00b4.js +0 -21
- package/dist/SceneLayer-c594bfc3.js +0 -542
- package/dist/SceneLayerSnappingSource-a0504ac7.js +0 -218
- package/dist/SceneLayerSnappingSourceWorker-a04d6692.js +0 -112
- package/dist/SceneLayerWorker-1865768e.js +0 -164
- package/dist/SceneService-fb9f0142.js +0 -215
- package/dist/Scheduler-eacc84bb.js +0 -373
- package/dist/ShadedColorMaterial.glsl-db97956b.js +0 -64
- package/dist/SnappingOperation-9622a00d.js +0 -48
- package/dist/SourceLayerData-7016f1a5.js +0 -116
- package/dist/SpatialFilter-d20d4f50.js +0 -1701
- package/dist/Stop-68022e32.js +0 -281
- package/dist/StreamLayer-7c837e3d.js +0 -188
- package/dist/StreamLayerView2D-586f5a6a.js +0 -164
- package/dist/StyleRepository-fba75e70.js +0 -2212
- package/dist/SublayersOwner-3dc574cd.js +0 -545
- package/dist/SubtypeGroupLayer-1f9c5398.js +0 -514
- package/dist/SubtypeGroupLayerView2D-0f108d9d.js +0 -84
- package/dist/TechniqueInstance-0481dbff.js +0 -233
- package/dist/TemporalLayer-8116b4a4.js +0 -23
- package/dist/Texture-22a8cca5.js +0 -501
- package/dist/TextureOnly.glsl-458f8148.js +0 -65
- package/dist/Theme-f05b8eb0.js +0 -3426
- package/dist/Tick-aef93b48.js +0 -723
- package/dist/TileContainer-0bf0ea1b.js +0 -31
- package/dist/TileInfoTilemapCache-d78858c0.js +0 -38
- package/dist/TileLayer-0edee064.js +0 -194
- package/dist/TileLayerView2D-78d5801b.js +0 -187
- package/dist/TilemapCache-79699d61.js +0 -189
- package/dist/TimeInfo-40c96ade.js +0 -42
- package/dist/TimeOnly-9ee66ca6.js +0 -706
- package/dist/Tooltip-e7498dc9.js +0 -138
- package/dist/TopFeaturesQuery-ad224e01.js +0 -32
- package/dist/TurboLine-6ab04aef.js +0 -565
- package/dist/UniqueValueRenderer-eaa5f8a6.js +0 -1039
- package/dist/UnknownLayer-e280ddd4.js +0 -30
- package/dist/UnknownTimeZone-220952b5.js +0 -15
- package/dist/UnsupportedLayer-447f7676.js +0 -31
- package/dist/UpdateTracking2D-e9adad8f.js +0 -8566
- package/dist/Util-002f5109.js +0 -57
- package/dist/VectorTileLayer-3210be81.js +0 -544
- package/dist/VectorTileLayerView2D-6a51e3b8.js +0 -2108
- package/dist/Version-3de8cbca.js +0 -33
- package/dist/VertexArrayObject-07998745.js +0 -73
- package/dist/VertexColor.glsl-e415cf02.js +0 -2683
- package/dist/VertexSnappingCandidate-b676241f.js +0 -13
- package/dist/VideoLayerView2D-f659dd0d.js +0 -124
- package/dist/VoxelLayer-003f82ff.js +0 -631
- package/dist/WFSLayer-3da6c5f7.js +0 -221
- package/dist/WFSSourceWorker-9a11693a.js +0 -157
- package/dist/WGLContainer-3d159b63.js +0 -5426
- package/dist/WMSLayer-fc0632f8.js +0 -536
- package/dist/WMSLayerView2D-54e80e1b.js +0 -117
- package/dist/WMTSLayer-9324b12b.js +0 -531
- package/dist/WMTSLayerView2D-3ef936db.js +0 -142
- package/dist/WebTileLayer-45c563ff.js +0 -110
- package/dist/WhereClause-7a28b740.js +0 -2766
- package/dist/WorkerHandle-0d54a6c7.js +0 -47
- package/dist/WorkerTileHandler-786c2b24.js +0 -1539
- package/dist/action-163397e3.js +0 -198
- package/dist/action-group-4859fb97.js +0 -145
- package/dist/action-menu-2d70b2fc.js +0 -1759
- package/dist/apng-9b71d52c.js +0 -392
- package/dist/arcade-fa309282.js +0 -229
- package/dist/arcadeAsyncRuntime-738498fd.js +0 -943
- package/dist/arcadeUtils-f71d80fa.js +0 -8741
- package/dist/arcgis-knowledge-client-core-6056bcea.js +0 -1218
- package/dist/arcgis-knowledge-client-core-simd-9bc1f83e.js +0 -1218
- package/dist/arcgisLayers-b2b878bd.js +0 -152
- package/dist/associatedFeatureServiceUtils-df5b5187.js +0 -92
- package/dist/axisAngleDegrees-32643b7c.js +0 -49
- package/dist/basis_transcoder-3187cc92.js +0 -1248
- package/dist/calcite-action-bar-5a87c23c.js +0 -303
- package/dist/calcite-action-ee2ca847.js +0 -22
- package/dist/calcite-action-group-19aa86ee.js +0 -28
- package/dist/calcite-button-8e9175c0.js +0 -228
- package/dist/calcite-flow-57d26d2d.js +0 -128
- package/dist/calcite-flow-item-4a3e3fc0.js +0 -499
- package/dist/calcite-icon-d99e280a.js +0 -16
- package/dist/calcite-input-28b20785.js +0 -24
- package/dist/calcite-label-4f30e08d.js +0 -79
- package/dist/calcite-list-0cee7628.js +0 -2135
- package/dist/calcite-list-item-0a19efa8.js +0 -576
- package/dist/calcite-list-item-group-0706662f.js +0 -71
- package/dist/calcite-loader-865045b1.js +0 -14
- package/dist/calcite-modal-3e4da6fd.js +0 -333
- package/dist/calcite-notice-50b74ab7.js +0 -181
- package/dist/calcite-option-713c1d40.js +0 -94
- package/dist/calcite-scrim-809fbd0b.js +0 -18
- package/dist/calcite-select-28d8edfc.js +0 -231
- package/dist/capabilities-c8f838be.js +0 -50
- package/dist/chartCommon-13718cda.js +0 -256
- package/dist/chartUtilsAm5-6be145fb.js +0 -2954
- package/dist/clientSideDefaults-5c1f97c9.js +0 -39
- package/dist/colorRamps-8792655e.js +0 -38
- package/dist/colorUtils-54f4b662.js +0 -164
- package/dist/commonProperties-f9559903.js +0 -60
- package/dist/computeTranslationToOriginAndRotation-4876cb93.js +0 -60
- package/dist/conditionalSlot-87175989.js +0 -27
- package/dist/createConnection-f974a00a.js +0 -299
- package/dist/dataUtils-7c276b73.js +0 -1421
- package/dist/deduplicate-59fb9cac.js +0 -89
- package/dist/defaults-2bfa4a36.js +0 -31
- package/dist/deleteForwardEdits-f653b513.js +0 -13
- package/dist/diffUtils-e71a6152.js +0 -90
- package/dist/drapedUtils-b42fcbc6.js +0 -75
- package/dist/earcut-6fa1a128.js +0 -292
- package/dist/edgeProcessing-2ff1f201.js +0 -252
- package/dist/editingSupport-68545668.js +0 -203
- package/dist/editsZScale-c7cdd215.js +0 -37
- package/dist/elevationInfoUtils-5456a079.js +0 -126
- package/dist/executeForIds-4ab75c0d.js +0 -14
- package/dist/executeForTopCount-7e095ec1.js +0 -17
- package/dist/executeForTopExtents-19daf9d0.js +0 -17
- package/dist/executeForTopIds-1ba3a4af.js +0 -17
- package/dist/executeQueryJSON-46168866.js +0 -15
- package/dist/executeQueryPBF-d8623daf.js +0 -152
- package/dist/executeRelationshipQuery-011dfb45.js +0 -53
- package/dist/executeTopFeaturesQuery-02166801.js +0 -18
- package/dist/featureConversionUtils-650d7601.js +0 -479
- package/dist/featureLayerUtils-64e09283.js +0 -142
- package/dist/featureLayerUtils-b07f9c11.js +0 -250
- package/dist/featureSetUtils-9d37d6f8.js +0 -2530
- package/dist/featuresetbase-62aeb079.js +0 -707
- package/dist/featuresetgeom-51f9fc4e.js +0 -99
- package/dist/featuresetstats-4db32894.js +0 -81
- package/dist/featuresetstring-990c3287.js +0 -95
- package/dist/fetchService-5198dd4a.js +0 -33
- package/dist/fieldProperties-edfa24cb.js +0 -33
- package/dist/floatRGBA-516d7961.js +0 -20
- package/dist/form-99719d52.js +0 -138
- package/dist/geohashUtils-2bc76440.js +0 -85
- package/dist/geojson-603231df.js +0 -208
- package/dist/geomasync-e9063b4c.js +0 -567
- package/dist/geometryEngine-d3bb2fd6.js +0 -192
- package/dist/geometryEngineAsync-55aa6170.js +0 -217
- package/dist/geometryEngineBase-527e8b63.js +0 -18463
- package/dist/geometryEngineJSON-28087174.js +0 -46
- package/dist/geometryEngineJSON-d54949f9.js +0 -171
- package/dist/geometryEngineWorker-dc2c7127.js +0 -11
- package/dist/geometryServiceUtils-6a3e1e93.js +0 -28
- package/dist/georeference-ed8b2c30.js +0 -291
- package/dist/gif-204e82dd.js +0 -323
- package/dist/gltfexport-b2566542.js +0 -705
- package/dist/groupLayerUtils-ea9e6359.js +0 -39
- package/dist/heatmapUtils-56758920.js +0 -45
- package/dist/highlightReasons-de432106.js +0 -19
- package/dist/hydrated-0e1c7565.js +0 -40
- package/dist/i3s-bb0b5b67.js +0 -809
- package/dist/icon-c6e3bd23.js +0 -127
- package/dist/imageBitmapUtils-881d8c64.js +0 -23
- package/dist/imageUtils-57eeedc5.js +0 -69
- package/dist/imageUtils-ef69c578.js +0 -89
- package/dist/imageryUtils-23f51cb1.js +0 -43
- package/dist/index-01c737ed.js +0 -42563
- package/dist/input-message-673a9baa.js +0 -92
- package/dist/input2-bbf6454e.js +0 -575
- package/dist/interactive-aeb2cb9f.js +0 -80
- package/dist/jsonContext-2dc288b1.js +0 -15
- package/dist/jsonUtils-1abd4bfc.js +0 -59
- package/dist/jsonUtils-913fa1bd.js +0 -86
- package/dist/jsonUtils-f6a5e63b.js +0 -476
- package/dist/kmlUtils-7c2744fe.js +0 -112
- package/dist/knowledgeGraphService-6a349e04.js +0 -739
- package/dist/knowledgegraph-c91b0bb2.js +0 -149
- package/dist/labelUtils-a3634e8f.js +0 -61
- package/dist/labelingInfo-568c9210.js +0 -46
- package/dist/layersCreator-4a5366ea.js +0 -151
- package/dist/layersLoader-b87d4857.js +0 -197
- package/dist/lazyLayerLoader-8817000c.js +0 -10
- package/dist/lclayout-64c67b4e.js +0 -773
- package/dist/lengthUtils-695e744c.js +0 -5
- package/dist/lerc-wasm-13192bf3.js +0 -325
- package/dist/libtess-asm-4883179d.js +0 -3673
- package/dist/libtess-fc70d1ce.js +0 -269
- package/dist/lineSegment-3aa941f5.js +0 -76
- package/dist/loadGLTFMesh-db6645f5.js +0 -181
- package/dist/loadable-266f324b.js +0 -24
- package/dist/loader-d1ce1bc1.js +0 -79
- package/dist/lyr3DWorker-dd48e619.js +0 -2108
- package/dist/mapViewDeps-226d9da3.js +0 -3052
- package/dist/mediaLayerUtils-ae485c27.js +0 -35
- package/dist/meshFeatureSet-8a2ad011.js +0 -126
- package/dist/meshVertexSpaceUtils-6efe3dcc.js +0 -58
- package/dist/multidimensionalUtils-508a3f3f.js +0 -290
- package/dist/normalizeUtilsSync-1dae280b.js +0 -181
- package/dist/number-5aa3a81b.js +0 -128
- package/dist/objectResourceUtils-642ab03e.js +0 -1455
- package/dist/observers-f646a6a4.js +0 -30
- package/dist/ogcFeatureUtils-46ac1c44.js +0 -206
- package/dist/openCloseComponent-47eb52c6.js +0 -37
- package/dist/orientedBoundingBox-554ccdc6.js +0 -447
- package/dist/parser-0701286c.js +0 -488
- package/dist/pbf-5dd791f5.js +0 -215
- package/dist/pbfQueryUtils-a6ca7e23.js +0 -422
- package/dist/pe-wasm-6c16b121.js +0 -887
- package/dist/persistable-9eb0e8df.js +0 -89
- package/dist/perspectiveUtils-b194621d.js +0 -42
- package/dist/pieChart-b97433d0.js +0 -555
- package/dist/plane-3398eec1.js +0 -160
- package/dist/popupUtils-c444b896.js +0 -22
- package/dist/popupUtils-d871563b.js +0 -50
- package/dist/portalItemUtils-4c4caad0.js +0 -57
- package/dist/portalLayers-cb07742f.js +0 -312
- package/dist/portalUtils-effd590f.js +0 -7
- package/dist/programUtils-65af7b7c.js +0 -59
- package/dist/project-ee9c2947.js +0 -21
- package/dist/projectPointToVector-7dc831a9.js +0 -14
- package/dist/projectVectorToVector-5163db7a.js +0 -13
- package/dist/quantityUtils-5cd4cf90.js +0 -33
- package/dist/quantizationUtils-0a8f74c6.js +0 -68
- package/dist/quat-a508aed3.js +0 -104
- package/dist/query-b6e1fd14.js +0 -89
- package/dist/queryAttachments-7b39ebdc.js +0 -39
- package/dist/queryEngineUtils-cb8e309e.js +0 -21
- package/dist/queryTopFeatures-2e0e3941.js +0 -50
- package/dist/queryZScale-c5733d0a.js +0 -12
- package/dist/rasterProjectionHelper-213afa27.js +0 -577
- package/dist/rasterUtils-f2e44e8b.js +0 -122
- package/dist/rasterizingUtils-25cc0190.js +0 -46
- package/dist/request-e0c679b3.js +0 -46
- package/dist/requestImageUtils-37d79281.js +0 -8
- package/dist/resourceExtension-5f3f1c80.js +0 -17
- package/dist/resourceUtils-0d68cbc2.js +0 -69
- package/dist/resourceUtils-374db840.js +0 -62
- package/dist/resourceUtils-43ce192b.js +0 -42
- package/dist/saveAPIKeyUtils-1a3d4a8a.js +0 -8
- package/dist/saveUtils-43fdc547.js +0 -24
- package/dist/scaleUtils-bdf8b6cb.js +0 -23
- package/dist/scrim-44eb4dc0.js +0 -114
- package/dist/serviceCapabilitiesUtils-823612b8.js +0 -64
- package/dist/sourceUtils-01d115c6.js +0 -71
- package/dist/sphere-908cd9aa.js +0 -199
- package/dist/statsWorker-49f9befe.js +0 -37
- package/dist/streamLayerUtils-29324e05.js +0 -31
- package/dist/styleUtils-82e8da52.js +0 -75
- package/dist/styleUtils-8541d60d.js +0 -14
- package/dist/sublayerUtils-eaac2486.js +0 -37
- package/dist/substitute-1f578d70.js +0 -52
- package/dist/symbolColorUtils-18fd6b3d.js +0 -8
- package/dist/symbolLayerUtils-4c58b291.js +0 -31
- package/dist/symbologySnappingCandidates-14d94b6b.js +0 -221
- package/dist/t9n-c1c2b6c8.js +0 -349
- package/dist/testSVGPremultipliedAlpha-159dac90.js +0 -94
- package/dist/timeSupport-3f529cdb.js +0 -410
- package/dist/triangle-8a3a2ba8.js +0 -98
- package/dist/unitConversionUtils-f0ebaf75.js +0 -17
- package/dist/unitFormatUtils-555e2d94.js +0 -40
- package/dist/uploadAssetErrors-d1389781.js +0 -70
- package/dist/uploadAssets-5e85f09d.js +0 -330
- package/dist/utils-3a10b10c.js +0 -34
- package/dist/utils-505c54e9.js +0 -91
- package/dist/utils-5432e258.js +0 -433
- package/dist/utils-7a88ec6a.js +0 -419
- package/dist/utils-7fa9cdf9.js +0 -2746
- package/dist/utils-d252c575.js +0 -73
- package/dist/utils-f07e00b3.js +0 -232
- package/dist/utils-fda10b4b.js +0 -79
- package/dist/utils3-c34ab97c.js +0 -75
- package/dist/vec3-f79c600d.js +0 -81
- package/dist/vec42-36edeb73.js +0 -125
- package/dist/versionUtils-6935648b.js +0 -161
- package/dist/visualVariableUtils-c425461a.js +0 -267
- package/dist/webStyleSymbolUtils-4f42a29f.js +0 -48
- package/dist/webglDeps-5f18210d.js +0 -23
- package/dist/wfsUtils-6f7f1e3e.js +0 -343
- package/dist/workerHelper-9dc9a790.js +0 -11
- package/dist/xyChart-e5648fee.js +0 -3335
|
@@ -0,0 +1,3426 @@
|
|
|
1
|
+
import { eq as ee } from "./index-f28919b2.js";
|
|
2
|
+
class f {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
Object.defineProperty(this, "_value", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._value = e;
|
|
5
|
+
}
|
|
6
|
+
get value() {
|
|
7
|
+
return this._value / 100;
|
|
8
|
+
}
|
|
9
|
+
get percent() {
|
|
10
|
+
return this._value;
|
|
11
|
+
}
|
|
12
|
+
toString() {
|
|
13
|
+
return this._value + "%";
|
|
14
|
+
}
|
|
15
|
+
interpolate(e, t) {
|
|
16
|
+
return e + this.value * (t - e);
|
|
17
|
+
}
|
|
18
|
+
static normalize(e, t, i) {
|
|
19
|
+
return e instanceof f ? e : new f(t === i ? 0 : 100 * Math.min(Math.max(1 / (i - t) * (e - t), 0), 1));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function ke(s) {
|
|
23
|
+
return new f(s);
|
|
24
|
+
}
|
|
25
|
+
ke(0);
|
|
26
|
+
const qe = ke(100), Je = ke(50);
|
|
27
|
+
function Oe(s) {
|
|
28
|
+
return Number(s) !== s;
|
|
29
|
+
}
|
|
30
|
+
function Qe(s) {
|
|
31
|
+
return {}.toString.call(s);
|
|
32
|
+
}
|
|
33
|
+
function _e(s) {
|
|
34
|
+
if (s != null && !g(s)) {
|
|
35
|
+
let e = Number(s);
|
|
36
|
+
return Oe(e) && Ne(s) && s != "" ? _e(s.replace(/[^0-9.\-]+/g, "")) : e;
|
|
37
|
+
}
|
|
38
|
+
return s;
|
|
39
|
+
}
|
|
40
|
+
function et(s) {
|
|
41
|
+
if (me(s))
|
|
42
|
+
return new Date(s);
|
|
43
|
+
if (g(s))
|
|
44
|
+
return new Date(s);
|
|
45
|
+
{
|
|
46
|
+
let e = Number(s);
|
|
47
|
+
return g(e) ? new Date(e) : new Date(s);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function Wt(s) {
|
|
51
|
+
if (Oe(s))
|
|
52
|
+
return "NaN";
|
|
53
|
+
if (s === 1 / 0)
|
|
54
|
+
return "Infinity";
|
|
55
|
+
if (s === -1 / 0)
|
|
56
|
+
return "-Infinity";
|
|
57
|
+
if (s === 0 && 1 / s == -1 / 0)
|
|
58
|
+
return "-0";
|
|
59
|
+
let e = s < 0;
|
|
60
|
+
s = Math.abs(s);
|
|
61
|
+
let t, i = /^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec("" + s), r = i[1], a = i[2] || "";
|
|
62
|
+
if (i[3] === void 0)
|
|
63
|
+
t = a === "" ? r : r + "." + a;
|
|
64
|
+
else {
|
|
65
|
+
let n = +i[3];
|
|
66
|
+
if (s < 1)
|
|
67
|
+
t = "0." + je("0", n - 1) + r + a;
|
|
68
|
+
else {
|
|
69
|
+
let o = n - a.length;
|
|
70
|
+
t = o === 0 ? r + a : o < 0 ? r + a.slice(0, o) + "." + a.slice(o) : r + a + je("0", o);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return e ? "-" + t : t;
|
|
74
|
+
}
|
|
75
|
+
function je(s, e) {
|
|
76
|
+
return new Array(e + 1).join(s);
|
|
77
|
+
}
|
|
78
|
+
function me(s) {
|
|
79
|
+
return Qe(s) === "[object Date]";
|
|
80
|
+
}
|
|
81
|
+
function Ne(s) {
|
|
82
|
+
return typeof s == "string";
|
|
83
|
+
}
|
|
84
|
+
function g(s) {
|
|
85
|
+
return typeof s == "number" && Number(s) == s;
|
|
86
|
+
}
|
|
87
|
+
function Re(s) {
|
|
88
|
+
return typeof s == "object" && s !== null;
|
|
89
|
+
}
|
|
90
|
+
const Ee = "__§§§__", Vt = "__§§§§__";
|
|
91
|
+
function re(s, e) {
|
|
92
|
+
const t = s.length;
|
|
93
|
+
for (let i = 0; i < t; ++i)
|
|
94
|
+
if (s[i] === e)
|
|
95
|
+
return i;
|
|
96
|
+
return -1;
|
|
97
|
+
}
|
|
98
|
+
function tt(s, e) {
|
|
99
|
+
const t = s.length;
|
|
100
|
+
for (let i = 0; i < t; ++i)
|
|
101
|
+
if (e(s[i]))
|
|
102
|
+
return !0;
|
|
103
|
+
return !1;
|
|
104
|
+
}
|
|
105
|
+
function Ut(s, e) {
|
|
106
|
+
const t = s.length, i = new Array(t);
|
|
107
|
+
for (let r = 0; r < t; ++r)
|
|
108
|
+
i[r] = e(s[r], r);
|
|
109
|
+
return i;
|
|
110
|
+
}
|
|
111
|
+
function _(s, e) {
|
|
112
|
+
const t = s.length;
|
|
113
|
+
for (let i = 0; i < t; ++i)
|
|
114
|
+
e(s[i], i);
|
|
115
|
+
}
|
|
116
|
+
function V(s, e) {
|
|
117
|
+
let t = s.length;
|
|
118
|
+
for (; t > 0; )
|
|
119
|
+
--t, e(s[t], t);
|
|
120
|
+
}
|
|
121
|
+
function Kt(s, e) {
|
|
122
|
+
const t = s.length;
|
|
123
|
+
for (let i = 0; i < t && e(s[i], i); ++i)
|
|
124
|
+
;
|
|
125
|
+
}
|
|
126
|
+
function Fe(s, e) {
|
|
127
|
+
let t = !1, i = 0;
|
|
128
|
+
for (; ; ) {
|
|
129
|
+
if (i = s.indexOf(e, i), i === -1)
|
|
130
|
+
return t;
|
|
131
|
+
t = !0, s.splice(i, 1);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
function O(s, e) {
|
|
135
|
+
let t = s.indexOf(e);
|
|
136
|
+
return t !== -1 && (s.splice(t, 1), !0);
|
|
137
|
+
}
|
|
138
|
+
function Gt(s, e, t) {
|
|
139
|
+
let i = re(s, e);
|
|
140
|
+
i !== -1 && fe(s, i), t == null ? s.push(e) : te(s, t, e);
|
|
141
|
+
}
|
|
142
|
+
function Ce(s, e) {
|
|
143
|
+
s.indexOf(e) === -1 && s.push(e);
|
|
144
|
+
}
|
|
145
|
+
function zt(s) {
|
|
146
|
+
const e = s.length, t = new Array(e);
|
|
147
|
+
for (let i = 0; i < e; ++i)
|
|
148
|
+
t[i] = s[i];
|
|
149
|
+
return t;
|
|
150
|
+
}
|
|
151
|
+
function te(s, e, t) {
|
|
152
|
+
s.splice(e, 0, t);
|
|
153
|
+
}
|
|
154
|
+
function fe(s, e) {
|
|
155
|
+
s.splice(e, 1);
|
|
156
|
+
}
|
|
157
|
+
function We(s, e) {
|
|
158
|
+
const t = s.length;
|
|
159
|
+
for (let i = 0; i < t; ++i)
|
|
160
|
+
if (e(s[i], i))
|
|
161
|
+
return i;
|
|
162
|
+
return -1;
|
|
163
|
+
}
|
|
164
|
+
function it(s, e) {
|
|
165
|
+
let t = s.length;
|
|
166
|
+
for (; t > 0; )
|
|
167
|
+
if (--t, e(s[t], t))
|
|
168
|
+
return t;
|
|
169
|
+
return -1;
|
|
170
|
+
}
|
|
171
|
+
function st(s, e) {
|
|
172
|
+
const t = We(s, e);
|
|
173
|
+
if (t !== -1)
|
|
174
|
+
return s[t];
|
|
175
|
+
}
|
|
176
|
+
function rt(s, e) {
|
|
177
|
+
const t = it(s, e);
|
|
178
|
+
if (t !== -1)
|
|
179
|
+
return s[t];
|
|
180
|
+
}
|
|
181
|
+
function at(s, e) {
|
|
182
|
+
let t = 0, i = s.length, r = !1;
|
|
183
|
+
for (; t < i; ) {
|
|
184
|
+
const a = t + i >> 1, n = e(s[a]);
|
|
185
|
+
n < 0 ? t = a + 1 : n === 0 ? (r = !0, t = a + 1) : i = a;
|
|
186
|
+
}
|
|
187
|
+
return { found: r, index: r ? t - 1 : t };
|
|
188
|
+
}
|
|
189
|
+
function nt(s, e) {
|
|
190
|
+
let t = 0, i = s.length, r = !1;
|
|
191
|
+
for (; t < i; ) {
|
|
192
|
+
const a = t + i >> 1, n = e(s[a]);
|
|
193
|
+
n < 0 ? t = a + 1 : (n === 0 && (r = !0), i = a);
|
|
194
|
+
}
|
|
195
|
+
return { found: r, index: t };
|
|
196
|
+
}
|
|
197
|
+
function Yt(s, e) {
|
|
198
|
+
let t = s.length;
|
|
199
|
+
for (; t > 0; )
|
|
200
|
+
--t, e(s[t]) || s.splice(t, 1);
|
|
201
|
+
}
|
|
202
|
+
function T(s) {
|
|
203
|
+
return Object.keys(s);
|
|
204
|
+
}
|
|
205
|
+
function ot(s, e) {
|
|
206
|
+
return T(s).sort(e);
|
|
207
|
+
}
|
|
208
|
+
function Xt(s) {
|
|
209
|
+
return Object.assign({}, s);
|
|
210
|
+
}
|
|
211
|
+
function y(s, e) {
|
|
212
|
+
T(s).forEach((t) => {
|
|
213
|
+
e(t, s[t]);
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
function $t(s, e) {
|
|
217
|
+
for (let t in s)
|
|
218
|
+
if (ht(s, t) && !e(t, s[t]))
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
function ht(s, e) {
|
|
222
|
+
return {}.hasOwnProperty.call(s, e);
|
|
223
|
+
}
|
|
224
|
+
class Ve {
|
|
225
|
+
constructor() {
|
|
226
|
+
Object.defineProperty(this, "_disposed", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._disposed = !1;
|
|
227
|
+
}
|
|
228
|
+
isDisposed() {
|
|
229
|
+
return this._disposed;
|
|
230
|
+
}
|
|
231
|
+
dispose() {
|
|
232
|
+
this._disposed || (this._disposed = !0, this._dispose());
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
class P {
|
|
236
|
+
constructor(e) {
|
|
237
|
+
Object.defineProperty(this, "_disposed", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_dispose", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._disposed = !1, this._dispose = e;
|
|
238
|
+
}
|
|
239
|
+
isDisposed() {
|
|
240
|
+
return this._disposed;
|
|
241
|
+
}
|
|
242
|
+
dispose() {
|
|
243
|
+
this._disposed || (this._disposed = !0, this._dispose());
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
class Zt extends Ve {
|
|
247
|
+
constructor() {
|
|
248
|
+
super(...arguments), Object.defineProperty(this, "_disposers", { enumerable: !0, configurable: !0, writable: !0, value: [] });
|
|
249
|
+
}
|
|
250
|
+
_dispose() {
|
|
251
|
+
_(this._disposers, (e) => {
|
|
252
|
+
e.dispose();
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
class k extends Ve {
|
|
257
|
+
constructor(e) {
|
|
258
|
+
super(), Object.defineProperty(this, "_disposers", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._disposers = e;
|
|
259
|
+
}
|
|
260
|
+
_dispose() {
|
|
261
|
+
_(this._disposers, (e) => {
|
|
262
|
+
e.dispose();
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
get disposers() {
|
|
266
|
+
return this._disposers;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
class lt extends P {
|
|
270
|
+
constructor() {
|
|
271
|
+
super(...arguments), Object.defineProperty(this, "_counter", { enumerable: !0, configurable: !0, writable: !0, value: 0 });
|
|
272
|
+
}
|
|
273
|
+
increment() {
|
|
274
|
+
return ++this._counter, new P(() => {
|
|
275
|
+
--this._counter, this._counter === 0 && this.dispose();
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
function qt(s) {
|
|
280
|
+
s.parentNode && s.parentNode.removeChild(s);
|
|
281
|
+
}
|
|
282
|
+
function Ue(s, e, t, i) {
|
|
283
|
+
return s.addEventListener(e, t, i || !1), new P(() => {
|
|
284
|
+
s.removeEventListener(e, t, i || !1);
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
function Jt(s) {
|
|
288
|
+
return Ue(window, "resize", (e) => {
|
|
289
|
+
s();
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
function de(s) {
|
|
293
|
+
switch (s) {
|
|
294
|
+
case "touchevents":
|
|
295
|
+
return window.hasOwnProperty("TouchEvent");
|
|
296
|
+
case "pointerevents":
|
|
297
|
+
return window.hasOwnProperty("PointerEvent");
|
|
298
|
+
case "mouseevents":
|
|
299
|
+
return window.hasOwnProperty("MouseEvent");
|
|
300
|
+
case "wheelevents":
|
|
301
|
+
return window.hasOwnProperty("WheelEvent");
|
|
302
|
+
case "keyboardevents":
|
|
303
|
+
return window.hasOwnProperty("KeyboardEvent");
|
|
304
|
+
}
|
|
305
|
+
return !1;
|
|
306
|
+
}
|
|
307
|
+
function ue(s) {
|
|
308
|
+
return s.pointerId || 0;
|
|
309
|
+
}
|
|
310
|
+
function Qt() {
|
|
311
|
+
if (document.activeElement && document.activeElement != document.body)
|
|
312
|
+
if (document.activeElement.blur)
|
|
313
|
+
document.activeElement.blur();
|
|
314
|
+
else {
|
|
315
|
+
let s = document.createElement("button");
|
|
316
|
+
s.style.position = "fixed", s.style.top = "0px", s.style.left = "-10000px", document.body.appendChild(s), s.focus(), s.blur(), document.body.removeChild(s);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
function ei(s) {
|
|
320
|
+
s && s.focus();
|
|
321
|
+
}
|
|
322
|
+
function ti(s) {
|
|
323
|
+
if (de("pointerevents"))
|
|
324
|
+
return s;
|
|
325
|
+
if (de("touchevents"))
|
|
326
|
+
switch (s) {
|
|
327
|
+
case "pointerover":
|
|
328
|
+
case "pointerdown":
|
|
329
|
+
return "touchstart";
|
|
330
|
+
case "pointerout":
|
|
331
|
+
case "pointerleave":
|
|
332
|
+
case "pointerup":
|
|
333
|
+
return "touchend";
|
|
334
|
+
case "pointermove":
|
|
335
|
+
return "touchmove";
|
|
336
|
+
case "click":
|
|
337
|
+
return "click";
|
|
338
|
+
case "dblclick":
|
|
339
|
+
return "dblclick";
|
|
340
|
+
}
|
|
341
|
+
else if (de("mouseevents"))
|
|
342
|
+
switch (s) {
|
|
343
|
+
case "pointerover":
|
|
344
|
+
return "mouseover";
|
|
345
|
+
case "pointerout":
|
|
346
|
+
return "mouseout";
|
|
347
|
+
case "pointerleave":
|
|
348
|
+
return "mouseleave";
|
|
349
|
+
case "pointerdown":
|
|
350
|
+
return "mousedown";
|
|
351
|
+
case "pointermove":
|
|
352
|
+
return "mousemove";
|
|
353
|
+
case "pointerup":
|
|
354
|
+
return "mouseup";
|
|
355
|
+
case "click":
|
|
356
|
+
return "click";
|
|
357
|
+
case "dblclick":
|
|
358
|
+
return "dblclick";
|
|
359
|
+
}
|
|
360
|
+
return s;
|
|
361
|
+
}
|
|
362
|
+
function Me(s) {
|
|
363
|
+
if (typeof Touch < "u" && s instanceof Touch)
|
|
364
|
+
return !0;
|
|
365
|
+
if (typeof PointerEvent < "u" && s instanceof PointerEvent && s.pointerType != null)
|
|
366
|
+
switch (s.pointerType) {
|
|
367
|
+
case "touch":
|
|
368
|
+
case "pen":
|
|
369
|
+
case 2:
|
|
370
|
+
return !0;
|
|
371
|
+
case "mouse":
|
|
372
|
+
case 4:
|
|
373
|
+
return !1;
|
|
374
|
+
default:
|
|
375
|
+
return !(s instanceof MouseEvent);
|
|
376
|
+
}
|
|
377
|
+
else if (s.type != null && s.type.match(/^mouse/))
|
|
378
|
+
return !1;
|
|
379
|
+
return !0;
|
|
380
|
+
}
|
|
381
|
+
function ii(s, e, t) {
|
|
382
|
+
s.style[e] = t;
|
|
383
|
+
}
|
|
384
|
+
function si(s, e) {
|
|
385
|
+
return s.style[e];
|
|
386
|
+
}
|
|
387
|
+
function ri(s) {
|
|
388
|
+
if (s.composedPath) {
|
|
389
|
+
const e = s.composedPath();
|
|
390
|
+
return e.length === 0 ? null : e[0];
|
|
391
|
+
}
|
|
392
|
+
return s.target;
|
|
393
|
+
}
|
|
394
|
+
function dt(s, e) {
|
|
395
|
+
let t = e;
|
|
396
|
+
for (; ; ) {
|
|
397
|
+
if (s === t)
|
|
398
|
+
return !0;
|
|
399
|
+
if (t.parentNode === null) {
|
|
400
|
+
if (t.host == null)
|
|
401
|
+
return !1;
|
|
402
|
+
t = t.host;
|
|
403
|
+
} else
|
|
404
|
+
t = t.parentNode;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
function ut(s, e) {
|
|
408
|
+
return s.target && dt(e.root.dom, s.target);
|
|
409
|
+
}
|
|
410
|
+
function ai(s, e) {
|
|
411
|
+
s.style.pointerEvents = e ? "auto" : "none";
|
|
412
|
+
}
|
|
413
|
+
function pt() {
|
|
414
|
+
return /apple/i.test(navigator.vendor) && "ontouchend" in document;
|
|
415
|
+
}
|
|
416
|
+
function ni() {
|
|
417
|
+
return pt() ? 1 : void 0;
|
|
418
|
+
}
|
|
419
|
+
function M(s, e) {
|
|
420
|
+
return g(s) ? s : s != null && g(s.value) && g(e) ? e * s.value : 0;
|
|
421
|
+
}
|
|
422
|
+
function oi(s) {
|
|
423
|
+
let e = ("" + s).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
|
|
424
|
+
return e ? Math.max(0, (e[1] ? e[1].length : 0) - (e[2] ? +e[2] : 0)) : 0;
|
|
425
|
+
}
|
|
426
|
+
function pe(s, e = 0, t = "0") {
|
|
427
|
+
return typeof s != "string" && (s = s.toString()), e > s.length ? Array(e - s.length + 1).join(t) + s : s;
|
|
428
|
+
}
|
|
429
|
+
function ct(s) {
|
|
430
|
+
return s.replace(/^[\s]*/, "");
|
|
431
|
+
}
|
|
432
|
+
function gt(s) {
|
|
433
|
+
return s.replace(/[\s]*$/, "");
|
|
434
|
+
}
|
|
435
|
+
function be(s) {
|
|
436
|
+
return ct(gt(s));
|
|
437
|
+
}
|
|
438
|
+
function _t(s, e, t = !1, i = "...") {
|
|
439
|
+
if (s.length > e) {
|
|
440
|
+
let r = e - 1;
|
|
441
|
+
for (; r >= 0 && s.charAt(r).match(/\w/); )
|
|
442
|
+
r--;
|
|
443
|
+
return r >= 0 && t == 0 ? s.substring(0, r + 1) + "..." : s.substring(0, e) + i;
|
|
444
|
+
}
|
|
445
|
+
return s;
|
|
446
|
+
}
|
|
447
|
+
function mt(s) {
|
|
448
|
+
if (s === void 0)
|
|
449
|
+
return "string";
|
|
450
|
+
let e = (s = (s = (s = s.toLowerCase().replace(/^\[[^\]]*\]/, "")).replace(/\[[^\]]+\]/, "")).trim()).match(/\/(date|number|duration)$/);
|
|
451
|
+
return e ? e[1] : s === "number" ? "number" : s === "date" ? "date" : s === "duration" ? "duration" : s.match(/[#0]/) ? "number" : s.match(/[ymwdhnsqaxkzgtei]/) ? "date" : "string";
|
|
452
|
+
}
|
|
453
|
+
function hi(s) {
|
|
454
|
+
return s.replace(/\/(date|number|duration)$/i, "");
|
|
455
|
+
}
|
|
456
|
+
function li(s) {
|
|
457
|
+
return s && s.replace(/<[^>]*>/g, "");
|
|
458
|
+
}
|
|
459
|
+
function di(s) {
|
|
460
|
+
return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
461
|
+
}
|
|
462
|
+
function ui(s, e = !1) {
|
|
463
|
+
const t = new Date(s.getFullYear(), 0, 0), i = s.getTime() - t.getTime() + 60 * (t.getTimezoneOffset() - s.getTimezoneOffset()) * 1e3;
|
|
464
|
+
return Math.floor(i / 864e5);
|
|
465
|
+
}
|
|
466
|
+
function Be(s, e = !1) {
|
|
467
|
+
const t = new Date(Date.UTC(s.getFullYear(), s.getMonth(), s.getDate())), i = t.getUTCDay() || 7;
|
|
468
|
+
t.setUTCDate(t.getUTCDate() + 4 - i);
|
|
469
|
+
const r = new Date(Date.UTC(t.getUTCFullYear(), 0, 1));
|
|
470
|
+
return Math.ceil(((t.getTime() - r.getTime()) / 864e5 + 1) / 7);
|
|
471
|
+
}
|
|
472
|
+
function pi(s, e = !1) {
|
|
473
|
+
const t = new Date(Date.UTC(s.getFullYear(), s.getMonth(), s.getDate())), i = t.getUTCDay() || 7;
|
|
474
|
+
return t.setUTCDate(t.getUTCDate() + 4 - i), new Date(Date.UTC(t.getUTCFullYear(), 0, 1)).getFullYear();
|
|
475
|
+
}
|
|
476
|
+
function ci(s, e = !1) {
|
|
477
|
+
const t = Be(new Date(s.getFullYear(), s.getMonth(), 1), e);
|
|
478
|
+
let i = Be(s, e);
|
|
479
|
+
return i == 1 && (i = 53), i - t + 1;
|
|
480
|
+
}
|
|
481
|
+
function gi(s, e, t = 1, i = !1) {
|
|
482
|
+
let r = new Date(e, 0, 4, 0, 0, 0, 0);
|
|
483
|
+
return i && r.setUTCFullYear(e), 7 * s + t - ((r.getDay() || 7) + 3);
|
|
484
|
+
}
|
|
485
|
+
function _i(s, e) {
|
|
486
|
+
return s > 12 ? s -= 12 : s === 0 && (s = 12), e != null ? s + (e - 1) : s;
|
|
487
|
+
}
|
|
488
|
+
function mi(s, e = !1, t = !1, i = !1, r) {
|
|
489
|
+
if (i)
|
|
490
|
+
return e ? "Coordinated Universal Time" : "UTC";
|
|
491
|
+
if (r) {
|
|
492
|
+
const o = s.toLocaleString("en-US", { timeZone: r });
|
|
493
|
+
return be(s.toLocaleString("en-US", { timeZone: r, timeZoneName: e ? "long" : "short" }).substr(o.length));
|
|
494
|
+
}
|
|
495
|
+
let a = s.toLocaleString("UTC"), n = s.toLocaleString("UTC", { timeZoneName: e ? "long" : "short" }).substr(a.length);
|
|
496
|
+
return t === !1 && (n = n.replace(/ (standard|daylight|summer|winter) /i, " ")), be(n);
|
|
497
|
+
}
|
|
498
|
+
function fi(s) {
|
|
499
|
+
const e = new Date(Date.UTC(2012, 0, 1, 0, 0, 0, 0)), t = new Date(e.toLocaleString("en-US", { timeZone: "UTC" }));
|
|
500
|
+
return (new Date(e.toLocaleString("en-US", { timeZone: s })).getTime() - t.getTime()) / 6e4 * -1;
|
|
501
|
+
}
|
|
502
|
+
function bi(s) {
|
|
503
|
+
return s.charAt(0).toUpperCase() + s.slice(1);
|
|
504
|
+
}
|
|
505
|
+
function Ke(s) {
|
|
506
|
+
let e, t, i, r = s.h, a = s.s, n = s.l;
|
|
507
|
+
if (a == 0)
|
|
508
|
+
e = t = i = n;
|
|
509
|
+
else {
|
|
510
|
+
let o = function(d, p, u) {
|
|
511
|
+
return u < 0 && (u += 1), u > 1 && (u -= 1), u < 0.16666666666666666 ? d + 6 * (p - d) * u : u < 0.5 ? p : u < 0.6666666666666666 ? d + (p - d) * (0.6666666666666666 - u) * 6 : d;
|
|
512
|
+
}, h = n < 0.5 ? n * (1 + a) : n + a - n * a, l = 2 * n - h;
|
|
513
|
+
e = o(l, h, r + 1 / 3), t = o(l, h, r), i = o(l, h, r - 1 / 3);
|
|
514
|
+
}
|
|
515
|
+
return { r: Math.round(255 * e), g: Math.round(255 * t), b: Math.round(255 * i) };
|
|
516
|
+
}
|
|
517
|
+
function Ge(s) {
|
|
518
|
+
let e = s.r / 255, t = s.g / 255, i = s.b / 255, r = Math.max(e, t, i), a = Math.min(e, t, i), n = 0, o = 0, h = (r + a) / 2;
|
|
519
|
+
if (r === a)
|
|
520
|
+
n = o = 0;
|
|
521
|
+
else {
|
|
522
|
+
let l = r - a;
|
|
523
|
+
switch (o = h > 0.5 ? l / (2 - r - a) : l / (r + a), r) {
|
|
524
|
+
case e:
|
|
525
|
+
n = (t - i) / l + (t < i ? 6 : 0);
|
|
526
|
+
break;
|
|
527
|
+
case t:
|
|
528
|
+
n = (i - e) / l + 2;
|
|
529
|
+
break;
|
|
530
|
+
case i:
|
|
531
|
+
n = (e - t) / l + 4;
|
|
532
|
+
}
|
|
533
|
+
n /= 6;
|
|
534
|
+
}
|
|
535
|
+
return { h: n, s: o, l: h };
|
|
536
|
+
}
|
|
537
|
+
function ft(s, e) {
|
|
538
|
+
return s && { r: Math.max(0, Math.min(255, s.r + ie(s.r, e))), g: Math.max(0, Math.min(255, s.g + ie(s.g, e))), b: Math.max(0, Math.min(255, s.b + ie(s.b, e))), a: s.a };
|
|
539
|
+
}
|
|
540
|
+
function ie(s, e) {
|
|
541
|
+
let t = e > 0 ? 255 - s : s;
|
|
542
|
+
return Math.round(t * e);
|
|
543
|
+
}
|
|
544
|
+
function bt(s, e) {
|
|
545
|
+
if (s) {
|
|
546
|
+
let t = ie(Math.min(Math.max(s.r, s.g, s.b), 230), e);
|
|
547
|
+
return { r: Math.max(0, Math.min(255, Math.round(s.r + t))), g: Math.max(0, Math.min(255, Math.round(s.g + t))), b: Math.max(0, Math.min(255, Math.round(s.b + t))), a: s.a };
|
|
548
|
+
}
|
|
549
|
+
return s;
|
|
550
|
+
}
|
|
551
|
+
function Ae(s) {
|
|
552
|
+
return (299 * s.r + 587 * s.g + 114 * s.b) / 1e3 >= 128;
|
|
553
|
+
}
|
|
554
|
+
function vt(s, e) {
|
|
555
|
+
if (s === void 0 || e == 1)
|
|
556
|
+
return s;
|
|
557
|
+
let t = Ge(s);
|
|
558
|
+
return t.s = e, Ke(t);
|
|
559
|
+
}
|
|
560
|
+
function yt(s, e = { r: 255, g: 255, b: 255 }, t = { r: 255, g: 255, b: 255 }) {
|
|
561
|
+
let i = e, r = t;
|
|
562
|
+
return Ae(t) && (i = t, r = e), Ae(s) ? r : i;
|
|
563
|
+
}
|
|
564
|
+
function vi(s, e) {
|
|
565
|
+
return s || (s = []), [...s, ...e].filter((t, i, r) => r.indexOf(t) === i);
|
|
566
|
+
}
|
|
567
|
+
function yi(s, e) {
|
|
568
|
+
return !!e && s.left == e.left && s.right == e.right && s.top == e.top && s.bottom == e.bottom;
|
|
569
|
+
}
|
|
570
|
+
function ze(s) {
|
|
571
|
+
return s[0] === "#" && (s = s.substr(1)), s.length == 3 && (s = s[0].repeat(2) + s[1].repeat(2) + s[2].repeat(2)), parseInt(s, 16);
|
|
572
|
+
}
|
|
573
|
+
function wt(s) {
|
|
574
|
+
let e = (s = s.replace(/[ ]/g, "")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);
|
|
575
|
+
if (e)
|
|
576
|
+
e.push("1");
|
|
577
|
+
else if (e = s.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i), !e)
|
|
578
|
+
return 0;
|
|
579
|
+
let t = "";
|
|
580
|
+
for (let i = 1; i <= 3; i++) {
|
|
581
|
+
let r = parseInt(e[i]).toString(16);
|
|
582
|
+
r.length == 1 && (r = "0" + r), t += r;
|
|
583
|
+
}
|
|
584
|
+
return ze(t);
|
|
585
|
+
}
|
|
586
|
+
function wi(s) {
|
|
587
|
+
return v.fromAny(s);
|
|
588
|
+
}
|
|
589
|
+
class v {
|
|
590
|
+
constructor(e) {
|
|
591
|
+
Object.defineProperty(this, "_hex", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._hex = 0 | e;
|
|
592
|
+
}
|
|
593
|
+
get hex() {
|
|
594
|
+
return this._hex;
|
|
595
|
+
}
|
|
596
|
+
get r() {
|
|
597
|
+
return this._hex >>> 16;
|
|
598
|
+
}
|
|
599
|
+
get g() {
|
|
600
|
+
return this._hex >> 8 & 255;
|
|
601
|
+
}
|
|
602
|
+
get b() {
|
|
603
|
+
return 255 & this._hex;
|
|
604
|
+
}
|
|
605
|
+
toCSS(e = 1) {
|
|
606
|
+
return "rgba(" + this.r + ", " + this.g + ", " + this.b + ", " + e + ")";
|
|
607
|
+
}
|
|
608
|
+
toCSSHex() {
|
|
609
|
+
return "#" + pe(this.r.toString(16), 2) + pe(this.g.toString(16), 2) + pe(this.b.toString(16), 2);
|
|
610
|
+
}
|
|
611
|
+
toHSL(e = 1) {
|
|
612
|
+
return Ge({ r: this.r, g: this.g, b: this.b, a: e });
|
|
613
|
+
}
|
|
614
|
+
static fromHSL(e, t, i) {
|
|
615
|
+
const r = Ke({ h: e, s: t, l: i });
|
|
616
|
+
return this.fromRGB(r.r, r.g, r.b);
|
|
617
|
+
}
|
|
618
|
+
toString() {
|
|
619
|
+
return this.toCSSHex();
|
|
620
|
+
}
|
|
621
|
+
static fromHex(e) {
|
|
622
|
+
return new v(e);
|
|
623
|
+
}
|
|
624
|
+
static fromRGB(e, t, i) {
|
|
625
|
+
return new v((0 | i) + (t << 8) + (e << 16));
|
|
626
|
+
}
|
|
627
|
+
static fromString(e) {
|
|
628
|
+
return new v(ze(e));
|
|
629
|
+
}
|
|
630
|
+
static fromCSS(e) {
|
|
631
|
+
return new v(wt(e));
|
|
632
|
+
}
|
|
633
|
+
static fromAny(e) {
|
|
634
|
+
if (Ne(e)) {
|
|
635
|
+
if (e[0] == "#")
|
|
636
|
+
return v.fromString(e);
|
|
637
|
+
if (e.substr(0, 3) == "rgb")
|
|
638
|
+
return v.fromCSS(e);
|
|
639
|
+
} else {
|
|
640
|
+
if (g(e))
|
|
641
|
+
return v.fromHex(e);
|
|
642
|
+
if (e instanceof v)
|
|
643
|
+
return v.fromHex(e.hex);
|
|
644
|
+
}
|
|
645
|
+
throw new Error("Unknown color syntax: " + e);
|
|
646
|
+
}
|
|
647
|
+
static alternative(e, t, i) {
|
|
648
|
+
const r = yt({ r: e.r, g: e.g, b: e.b }, t ? { r: t.r, g: t.g, b: t.b } : void 0, i ? { r: i.r, g: i.g, b: i.b } : void 0);
|
|
649
|
+
return this.fromRGB(r.r, r.g, r.b);
|
|
650
|
+
}
|
|
651
|
+
static interpolate(e, t, i, r = "rgb") {
|
|
652
|
+
if (r == "hsl") {
|
|
653
|
+
const a = t.toHSL(), n = i.toHSL();
|
|
654
|
+
return v.fromHSL(B(e, a.h, n.h), B(e, a.s, n.s), B(e, a.l, n.l));
|
|
655
|
+
}
|
|
656
|
+
return v.fromRGB(B(e, t.r, i.r), B(e, t.g, i.g), B(e, t.b, i.b));
|
|
657
|
+
}
|
|
658
|
+
static lighten(e, t) {
|
|
659
|
+
const i = ft({ r: e.r, g: e.g, b: e.b }, t);
|
|
660
|
+
return v.fromRGB(i.r, i.g, i.b);
|
|
661
|
+
}
|
|
662
|
+
static brighten(e, t) {
|
|
663
|
+
const i = bt({ r: e.r, g: e.g, b: e.b }, t);
|
|
664
|
+
return v.fromRGB(i.r, i.g, i.b);
|
|
665
|
+
}
|
|
666
|
+
static saturate(e, t) {
|
|
667
|
+
const i = vt({ r: e.r, g: e.g, b: e.b }, t);
|
|
668
|
+
return v.fromRGB(i.r, i.g, i.b);
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
class J {
|
|
672
|
+
constructor() {
|
|
673
|
+
Object.defineProperty(this, "_listeners", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_killed", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_disabled", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_iterating", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_enabled", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_disposed", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._listeners = [], this._killed = [], this._disabled = {}, this._iterating = 0, this._enabled = !0, this._disposed = !1;
|
|
674
|
+
}
|
|
675
|
+
isDisposed() {
|
|
676
|
+
return this._disposed;
|
|
677
|
+
}
|
|
678
|
+
dispose() {
|
|
679
|
+
if (!this._disposed) {
|
|
680
|
+
this._disposed = !0;
|
|
681
|
+
const e = this._listeners;
|
|
682
|
+
this._iterating = 1, this._listeners = null, this._disabled = null;
|
|
683
|
+
try {
|
|
684
|
+
_(e, (t) => {
|
|
685
|
+
t.disposer.dispose();
|
|
686
|
+
});
|
|
687
|
+
} finally {
|
|
688
|
+
this._killed = null, this._iterating = null;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
hasListeners() {
|
|
693
|
+
return this._listeners.length !== 0;
|
|
694
|
+
}
|
|
695
|
+
hasListenersByType(e) {
|
|
696
|
+
return tt(this._listeners, (t) => (t.type === null || t.type === e) && !t.killed);
|
|
697
|
+
}
|
|
698
|
+
enable() {
|
|
699
|
+
this._enabled = !0;
|
|
700
|
+
}
|
|
701
|
+
disable() {
|
|
702
|
+
this._enabled = !1;
|
|
703
|
+
}
|
|
704
|
+
enableType(e) {
|
|
705
|
+
delete this._disabled[e];
|
|
706
|
+
}
|
|
707
|
+
disableType(e, t = 1 / 0) {
|
|
708
|
+
this._disabled[e] = t;
|
|
709
|
+
}
|
|
710
|
+
_removeListener(e) {
|
|
711
|
+
if (this._iterating === 0) {
|
|
712
|
+
const t = this._listeners.indexOf(e);
|
|
713
|
+
if (t === -1)
|
|
714
|
+
throw new Error("Invalid state: could not remove listener");
|
|
715
|
+
this._listeners.splice(t, 1);
|
|
716
|
+
} else
|
|
717
|
+
this._killed.push(e);
|
|
718
|
+
}
|
|
719
|
+
_removeExistingListener(e, t, i, r) {
|
|
720
|
+
if (this._disposed)
|
|
721
|
+
throw new Error("EventDispatcher is disposed");
|
|
722
|
+
this._eachListener((a) => {
|
|
723
|
+
a.once !== e || a.type !== t || i !== void 0 && a.callback !== i || a.context !== r || a.disposer.dispose();
|
|
724
|
+
});
|
|
725
|
+
}
|
|
726
|
+
isEnabled(e) {
|
|
727
|
+
if (this._disposed)
|
|
728
|
+
throw new Error("EventDispatcher is disposed");
|
|
729
|
+
return this._enabled && this._listeners.length > 0 && this.hasListenersByType(e) && this._disabled[e] === void 0;
|
|
730
|
+
}
|
|
731
|
+
removeType(e) {
|
|
732
|
+
if (this._disposed)
|
|
733
|
+
throw new Error("EventDispatcher is disposed");
|
|
734
|
+
this._eachListener((t) => {
|
|
735
|
+
t.type === e && t.disposer.dispose();
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
has(e, t, i) {
|
|
739
|
+
return We(this._listeners, (r) => r.once !== !0 && r.type === e && (t === void 0 || r.callback === t) && r.context === i) !== -1;
|
|
740
|
+
}
|
|
741
|
+
_shouldDispatch(e) {
|
|
742
|
+
if (this._disposed)
|
|
743
|
+
throw new Error("EventDispatcher is disposed");
|
|
744
|
+
const t = this._disabled[e];
|
|
745
|
+
return g(t) ? (t <= 1 ? delete this._disabled[e] : --this._disabled[e], !1) : this._enabled;
|
|
746
|
+
}
|
|
747
|
+
_eachListener(e) {
|
|
748
|
+
++this._iterating;
|
|
749
|
+
try {
|
|
750
|
+
_(this._listeners, e);
|
|
751
|
+
} finally {
|
|
752
|
+
--this._iterating, this._iterating === 0 && this._killed.length !== 0 && (_(this._killed, (t) => {
|
|
753
|
+
this._removeListener(t);
|
|
754
|
+
}), this._killed.length = 0);
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
dispatch(e, t) {
|
|
758
|
+
this._shouldDispatch(e) && this._eachListener((i) => {
|
|
759
|
+
i.killed || i.type !== null && i.type !== e || i.dispatch(e, t);
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
_on(e, t, i, r, a, n) {
|
|
763
|
+
if (this._disposed)
|
|
764
|
+
throw new Error("EventDispatcher is disposed");
|
|
765
|
+
this._removeExistingListener(e, t, i, r);
|
|
766
|
+
const o = { type: t, callback: i, context: r, shouldClone: a, dispatch: n, killed: !1, once: e, disposer: new P(() => {
|
|
767
|
+
o.killed = !0, this._removeListener(o);
|
|
768
|
+
}) };
|
|
769
|
+
return this._listeners.push(o), o;
|
|
770
|
+
}
|
|
771
|
+
onAll(e, t, i = !0) {
|
|
772
|
+
return this._on(!1, null, e, t, i, (r, a) => e.call(t, a)).disposer;
|
|
773
|
+
}
|
|
774
|
+
on(e, t, i, r = !0) {
|
|
775
|
+
return this._on(!1, e, t, i, r, (a, n) => t.call(i, n)).disposer;
|
|
776
|
+
}
|
|
777
|
+
once(e, t, i, r = !0) {
|
|
778
|
+
const a = this._on(!0, e, t, i, r, (n, o) => {
|
|
779
|
+
a.disposer.dispose(), t.call(i, o);
|
|
780
|
+
});
|
|
781
|
+
return a.disposer;
|
|
782
|
+
}
|
|
783
|
+
off(e, t, i) {
|
|
784
|
+
this._removeExistingListener(!1, e, t, i);
|
|
785
|
+
}
|
|
786
|
+
copyFrom(e) {
|
|
787
|
+
if (this._disposed)
|
|
788
|
+
throw new Error("EventDispatcher is disposed");
|
|
789
|
+
if (e === this)
|
|
790
|
+
throw new Error("Cannot copyFrom the same TargetedEventDispatcher");
|
|
791
|
+
const t = [];
|
|
792
|
+
return _(e._listeners, (i) => {
|
|
793
|
+
!i.killed && i.shouldClone && (i.type === null ? t.push(this.onAll(i.callback, i.context)) : i.once ? t.push(this.once(i.type, i.callback, i.context)) : t.push(this.on(i.type, i.callback, i.context)));
|
|
794
|
+
}), new k(t);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
function He(s) {
|
|
798
|
+
return ee(this, void 0, void 0, function* () {
|
|
799
|
+
if (s !== void 0) {
|
|
800
|
+
const e = [];
|
|
801
|
+
y(s, (t, i) => {
|
|
802
|
+
e.push(i.waitForStop());
|
|
803
|
+
}), yield Promise.all(e);
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
function B(s, e, t) {
|
|
808
|
+
return e + s * (t - e);
|
|
809
|
+
}
|
|
810
|
+
function Pt(s, e, t) {
|
|
811
|
+
return s >= 1 ? t : e;
|
|
812
|
+
}
|
|
813
|
+
function Dt(s, e, t) {
|
|
814
|
+
return new f(B(s, e.percent, t.percent));
|
|
815
|
+
}
|
|
816
|
+
function xt(s, e, t) {
|
|
817
|
+
return v.interpolate(s, e, t);
|
|
818
|
+
}
|
|
819
|
+
function kt(s, e) {
|
|
820
|
+
return typeof s == "number" && typeof e == "number" ? B : s instanceof f && e instanceof f ? Dt : s instanceof v && e instanceof v ? xt : Pt;
|
|
821
|
+
}
|
|
822
|
+
var U;
|
|
823
|
+
function W(s, e) {
|
|
824
|
+
if (!(s >= 0 && s < e))
|
|
825
|
+
throw new Error("Index out of bounds: " + s);
|
|
826
|
+
}
|
|
827
|
+
(function(s) {
|
|
828
|
+
s[s.Stopped = 0] = "Stopped", s[s.Playing = 1] = "Playing", s[s.Paused = 2] = "Paused";
|
|
829
|
+
})(U || (U = {}));
|
|
830
|
+
class Ye {
|
|
831
|
+
constructor(e = []) {
|
|
832
|
+
Object.defineProperty(this, "_values", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "events", { enumerable: !0, configurable: !0, writable: !0, value: new J() }), this._values = e;
|
|
833
|
+
}
|
|
834
|
+
get values() {
|
|
835
|
+
return this._values;
|
|
836
|
+
}
|
|
837
|
+
contains(e) {
|
|
838
|
+
return this._values.indexOf(e) !== -1;
|
|
839
|
+
}
|
|
840
|
+
removeValue(e) {
|
|
841
|
+
let t = 0, i = this._values.length;
|
|
842
|
+
for (; t < i; )
|
|
843
|
+
this._values[t] === e ? (this.removeIndex(t), --i) : ++t;
|
|
844
|
+
}
|
|
845
|
+
indexOf(e) {
|
|
846
|
+
return re(this._values, e);
|
|
847
|
+
}
|
|
848
|
+
get length() {
|
|
849
|
+
return this._values.length;
|
|
850
|
+
}
|
|
851
|
+
hasIndex(e) {
|
|
852
|
+
return e >= 0 && e < this._values.length;
|
|
853
|
+
}
|
|
854
|
+
getIndex(e) {
|
|
855
|
+
return this._values[e];
|
|
856
|
+
}
|
|
857
|
+
_onPush(e) {
|
|
858
|
+
this.events.isEnabled("push") && this.events.dispatch("push", { type: "push", target: this, newValue: e });
|
|
859
|
+
}
|
|
860
|
+
_onInsertIndex(e, t) {
|
|
861
|
+
this.events.isEnabled("insertIndex") && this.events.dispatch("insertIndex", { type: "insertIndex", target: this, index: e, newValue: t });
|
|
862
|
+
}
|
|
863
|
+
_onSetIndex(e, t, i) {
|
|
864
|
+
this.events.isEnabled("setIndex") && this.events.dispatch("setIndex", { type: "setIndex", target: this, index: e, oldValue: t, newValue: i });
|
|
865
|
+
}
|
|
866
|
+
_onRemoveIndex(e, t) {
|
|
867
|
+
this.events.isEnabled("removeIndex") && this.events.dispatch("removeIndex", { type: "removeIndex", target: this, index: e, oldValue: t });
|
|
868
|
+
}
|
|
869
|
+
_onMoveIndex(e, t, i) {
|
|
870
|
+
this.events.isEnabled("moveIndex") && this.events.dispatch("moveIndex", { type: "moveIndex", target: this, oldIndex: e, newIndex: t, value: i });
|
|
871
|
+
}
|
|
872
|
+
_onClear(e) {
|
|
873
|
+
this.events.isEnabled("clear") && this.events.dispatch("clear", { type: "clear", target: this, oldValues: e });
|
|
874
|
+
}
|
|
875
|
+
setIndex(e, t) {
|
|
876
|
+
W(e, this._values.length);
|
|
877
|
+
const i = this._values[e];
|
|
878
|
+
return i !== t && (this._values[e] = t, this._onSetIndex(e, i, t)), i;
|
|
879
|
+
}
|
|
880
|
+
insertIndex(e, t) {
|
|
881
|
+
return W(e, this._values.length + 1), te(this._values, e, t), this._onInsertIndex(e, t), t;
|
|
882
|
+
}
|
|
883
|
+
swap(e, t) {
|
|
884
|
+
const i = this._values.length;
|
|
885
|
+
if (W(e, i), W(t, i), e !== t) {
|
|
886
|
+
const r = this._values[e], a = this._values[t];
|
|
887
|
+
this._values[e] = a, this._onSetIndex(e, r, a), this._values[t] = r, this._onSetIndex(t, a, r);
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
removeIndex(e) {
|
|
891
|
+
W(e, this._values.length);
|
|
892
|
+
const t = this._values[e];
|
|
893
|
+
return fe(this._values, e), this._onRemoveIndex(e, t), t;
|
|
894
|
+
}
|
|
895
|
+
moveValue(e, t) {
|
|
896
|
+
let i = this.indexOf(e);
|
|
897
|
+
if (i !== -1)
|
|
898
|
+
if (fe(this._values, i), t == null) {
|
|
899
|
+
const r = this._values.length;
|
|
900
|
+
this._values.push(e), this._onMoveIndex(i, r, e);
|
|
901
|
+
} else
|
|
902
|
+
te(this._values, t, e), this._onMoveIndex(i, t, e);
|
|
903
|
+
else
|
|
904
|
+
t == null ? (this._values.push(e), this._onPush(e)) : (te(this._values, t, e), this._onInsertIndex(t, e));
|
|
905
|
+
return e;
|
|
906
|
+
}
|
|
907
|
+
push(e) {
|
|
908
|
+
return this._values.push(e), this._onPush(e), e;
|
|
909
|
+
}
|
|
910
|
+
unshift(e) {
|
|
911
|
+
return this.insertIndex(0, e), e;
|
|
912
|
+
}
|
|
913
|
+
pushAll(e) {
|
|
914
|
+
_(e, (t) => {
|
|
915
|
+
this.push(t);
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
copyFrom(e) {
|
|
919
|
+
this.pushAll(e._values);
|
|
920
|
+
}
|
|
921
|
+
pop() {
|
|
922
|
+
return this._values.length - 1 < 0 ? void 0 : this.removeIndex(this._values.length - 1);
|
|
923
|
+
}
|
|
924
|
+
shift() {
|
|
925
|
+
return this._values.length ? this.removeIndex(0) : void 0;
|
|
926
|
+
}
|
|
927
|
+
setAll(e) {
|
|
928
|
+
const t = this._values;
|
|
929
|
+
this._values = [], this._onClear(t), _(e, (i) => {
|
|
930
|
+
this._values.push(i), this._onPush(i);
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
clear() {
|
|
934
|
+
this.setAll([]);
|
|
935
|
+
}
|
|
936
|
+
*[Symbol.iterator]() {
|
|
937
|
+
const e = this._values.length;
|
|
938
|
+
for (let t = 0; t < e; ++t)
|
|
939
|
+
yield this._values[t];
|
|
940
|
+
}
|
|
941
|
+
each(e) {
|
|
942
|
+
_(this._values, e);
|
|
943
|
+
}
|
|
944
|
+
eachReverse(e) {
|
|
945
|
+
V(this._values, e);
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
class Ot extends Ye {
|
|
949
|
+
constructor() {
|
|
950
|
+
super(...arguments), Object.defineProperty(this, "autoDispose", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "_disposed", { enumerable: !0, configurable: !0, writable: !0, value: !1 });
|
|
951
|
+
}
|
|
952
|
+
_onSetIndex(e, t, i) {
|
|
953
|
+
this.autoDispose && t.dispose(), super._onSetIndex(e, t, i);
|
|
954
|
+
}
|
|
955
|
+
_onRemoveIndex(e, t) {
|
|
956
|
+
this.autoDispose && t.dispose(), super._onRemoveIndex(e, t);
|
|
957
|
+
}
|
|
958
|
+
_onClear(e) {
|
|
959
|
+
this.autoDispose && _(e, (t) => {
|
|
960
|
+
t.dispose();
|
|
961
|
+
}), super._onClear(e);
|
|
962
|
+
}
|
|
963
|
+
isDisposed() {
|
|
964
|
+
return this._disposed;
|
|
965
|
+
}
|
|
966
|
+
dispose() {
|
|
967
|
+
this._disposed || (this._disposed = !0, this.autoDispose && _(this._values, (e) => {
|
|
968
|
+
e.dispose();
|
|
969
|
+
}));
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
class Pi extends Ot {
|
|
973
|
+
constructor(e, t) {
|
|
974
|
+
super(), Object.defineProperty(this, "template", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "make", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.template = e, this.make = t;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
class Tt extends Ye {
|
|
978
|
+
constructor(e) {
|
|
979
|
+
super(), Object.defineProperty(this, "_disposed", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_container", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_events", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._container = e, this._events = this.events.onAll((t) => {
|
|
980
|
+
if (t.type === "clear")
|
|
981
|
+
_(t.oldValues, (i) => {
|
|
982
|
+
this._onRemoved(i);
|
|
983
|
+
});
|
|
984
|
+
else if (t.type === "push")
|
|
985
|
+
this._onInserted(t.newValue);
|
|
986
|
+
else if (t.type === "setIndex")
|
|
987
|
+
this._onRemoved(t.oldValue), this._onInserted(t.newValue, t.index);
|
|
988
|
+
else if (t.type === "insertIndex")
|
|
989
|
+
this._onInserted(t.newValue, t.index);
|
|
990
|
+
else if (t.type === "removeIndex")
|
|
991
|
+
this._onRemoved(t.oldValue);
|
|
992
|
+
else {
|
|
993
|
+
if (t.type !== "moveIndex")
|
|
994
|
+
throw new Error("Unknown IListEvent type");
|
|
995
|
+
this._onRemoved(t.value), this._onInserted(t.value, t.newIndex);
|
|
996
|
+
}
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
_onInserted(e, t) {
|
|
1000
|
+
e._setParent(this._container, !0);
|
|
1001
|
+
const i = this._container._childrenDisplay;
|
|
1002
|
+
t === void 0 ? i.addChild(e._display) : i.addChildAt(e._display, t);
|
|
1003
|
+
}
|
|
1004
|
+
_onRemoved(e) {
|
|
1005
|
+
this._container._childrenDisplay.removeChild(e._display), this._container.markDirtyBounds(), this._container.markDirty();
|
|
1006
|
+
}
|
|
1007
|
+
isDisposed() {
|
|
1008
|
+
return this._disposed;
|
|
1009
|
+
}
|
|
1010
|
+
dispose() {
|
|
1011
|
+
this._disposed || (this._disposed = !0, this._events.dispose(), _(this.values, (e) => {
|
|
1012
|
+
e.dispose();
|
|
1013
|
+
}));
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
const Xe = Math.PI, $e = Xe / 180, Di = 180 / Xe;
|
|
1017
|
+
function xi(s, e, t) {
|
|
1018
|
+
if (!g(e) || e <= 0) {
|
|
1019
|
+
let i = Math.round(s);
|
|
1020
|
+
return t && i - s == 0.5 && i--, i;
|
|
1021
|
+
}
|
|
1022
|
+
{
|
|
1023
|
+
let i = Math.pow(10, e);
|
|
1024
|
+
return Math.round(s * i) / i;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
function ki(s, e) {
|
|
1028
|
+
if (!g(e) || e <= 0)
|
|
1029
|
+
return Math.ceil(s);
|
|
1030
|
+
{
|
|
1031
|
+
let t = Math.pow(10, e);
|
|
1032
|
+
return Math.ceil(s * t) / t;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
function Ie(s, e, t) {
|
|
1036
|
+
return Math.min(Math.max(s, e), t);
|
|
1037
|
+
}
|
|
1038
|
+
function ve(s) {
|
|
1039
|
+
return Math.sin($e * s);
|
|
1040
|
+
}
|
|
1041
|
+
function ye(s) {
|
|
1042
|
+
return Math.cos($e * s);
|
|
1043
|
+
}
|
|
1044
|
+
function Oi(s) {
|
|
1045
|
+
return (s %= 360) < 0 && (s += 360), s;
|
|
1046
|
+
}
|
|
1047
|
+
function Ti(s, e, t, i, r) {
|
|
1048
|
+
let a = Number.MAX_VALUE, n = Number.MAX_VALUE, o = -Number.MAX_VALUE, h = -Number.MAX_VALUE, l = [];
|
|
1049
|
+
l.push(ce(r, t)), l.push(ce(r, i));
|
|
1050
|
+
let d = Math.min(90 * Math.floor(t / 90), 90 * Math.floor(i / 90)), p = Math.max(90 * Math.ceil(t / 90), 90 * Math.ceil(i / 90));
|
|
1051
|
+
for (let u = d; u <= p; u += 90)
|
|
1052
|
+
u >= t && u <= i && l.push(ce(r, u));
|
|
1053
|
+
for (let u = 0; u < l.length; u++) {
|
|
1054
|
+
let c = l[u];
|
|
1055
|
+
c.x < a && (a = c.x), c.y < n && (n = c.y), c.x > o && (o = c.x), c.y > h && (h = c.y);
|
|
1056
|
+
}
|
|
1057
|
+
return { left: s + a, top: e + n, right: s + o, bottom: e + h };
|
|
1058
|
+
}
|
|
1059
|
+
function ce(s, e) {
|
|
1060
|
+
return { x: s * ye(e), y: s * ve(e) };
|
|
1061
|
+
}
|
|
1062
|
+
function Si(s) {
|
|
1063
|
+
const e = s.length;
|
|
1064
|
+
if (e > 0) {
|
|
1065
|
+
let t = s[0], i = t.left, r = t.top, a = t.right, n = t.bottom;
|
|
1066
|
+
if (e > 1)
|
|
1067
|
+
for (let o = 1; o < e; o++)
|
|
1068
|
+
t = s[o], i = Math.min(t.left, i), a = Math.max(t.right, a), r = Math.min(t.top, r), n = Math.max(t.bottom, n);
|
|
1069
|
+
return { left: i, right: a, top: r, bottom: n };
|
|
1070
|
+
}
|
|
1071
|
+
return { left: 0, right: 0, top: 0, bottom: 0 };
|
|
1072
|
+
}
|
|
1073
|
+
function St(s, e) {
|
|
1074
|
+
return s.x >= e.left && s.y >= e.top && s.x <= e.right && s.y <= e.bottom;
|
|
1075
|
+
}
|
|
1076
|
+
function Le(s) {
|
|
1077
|
+
return s;
|
|
1078
|
+
}
|
|
1079
|
+
function jt(s) {
|
|
1080
|
+
return s * s * s;
|
|
1081
|
+
}
|
|
1082
|
+
function ji(s) {
|
|
1083
|
+
return function(e) {
|
|
1084
|
+
return 1 - s(1 - e);
|
|
1085
|
+
};
|
|
1086
|
+
}
|
|
1087
|
+
class Et {
|
|
1088
|
+
constructor(e, t) {
|
|
1089
|
+
Object.defineProperty(this, "_entity", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_settings", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_userSettings", { enumerable: !0, configurable: !0, writable: !0, value: {} }), this._entity = e, this._settings = t, y(t, (i) => {
|
|
1090
|
+
this._userSettings[i] = !0;
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
get(e, t) {
|
|
1094
|
+
const i = this._settings[e];
|
|
1095
|
+
return i !== void 0 ? i : t;
|
|
1096
|
+
}
|
|
1097
|
+
setRaw(e, t) {
|
|
1098
|
+
this._settings[e] = t;
|
|
1099
|
+
}
|
|
1100
|
+
set(e, t) {
|
|
1101
|
+
this._userSettings[e] = !0, this.setRaw(e, t);
|
|
1102
|
+
}
|
|
1103
|
+
remove(e) {
|
|
1104
|
+
delete this._userSettings[e], delete this._settings[e];
|
|
1105
|
+
}
|
|
1106
|
+
setAll(e) {
|
|
1107
|
+
T(e).forEach((t) => {
|
|
1108
|
+
this.set(t, e[t]);
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
_eachSetting(e) {
|
|
1112
|
+
y(this._settings, e);
|
|
1113
|
+
}
|
|
1114
|
+
apply() {
|
|
1115
|
+
const e = { stateAnimationEasing: !0, stateAnimationDuration: !0 }, t = this._entity.states.lookup("default");
|
|
1116
|
+
this._eachSetting((i, r) => {
|
|
1117
|
+
e[i] || (e[i] = !0, this !== t && (i in t._settings || (t._settings[i] = this._entity.get(i))), this._entity.set(i, r));
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
applyAnimate(e) {
|
|
1121
|
+
e == null && (e = this._settings.stateAnimationDuration), e == null && (e = this.get("stateAnimationDuration", this._entity.get("stateAnimationDuration", 0)));
|
|
1122
|
+
let t = this._settings.stateAnimationEasing;
|
|
1123
|
+
t == null && (t = this.get("stateAnimationEasing", this._entity.get("stateAnimationEasing", jt)));
|
|
1124
|
+
const i = this._entity.states.lookup("default"), r = { stateAnimationEasing: !0, stateAnimationDuration: !0 }, a = {};
|
|
1125
|
+
return this._eachSetting((n, o) => {
|
|
1126
|
+
if (!r[n]) {
|
|
1127
|
+
r[n] = !0, this != i && (n in i._settings || (i._settings[n] = this._entity.get(n)));
|
|
1128
|
+
const h = this._entity.animate({ key: n, to: o, duration: e, easing: t });
|
|
1129
|
+
h && (a[n] = h);
|
|
1130
|
+
}
|
|
1131
|
+
}), a;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
class Ct {
|
|
1135
|
+
constructor(e) {
|
|
1136
|
+
Object.defineProperty(this, "_states", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_entity", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._entity = e;
|
|
1137
|
+
}
|
|
1138
|
+
lookup(e) {
|
|
1139
|
+
return this._states[e];
|
|
1140
|
+
}
|
|
1141
|
+
create(e, t) {
|
|
1142
|
+
const i = this._states[e];
|
|
1143
|
+
if (i)
|
|
1144
|
+
return i.setAll(t), i;
|
|
1145
|
+
{
|
|
1146
|
+
const r = new Et(this._entity, t);
|
|
1147
|
+
return this._states[e] = r, r;
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
remove(e) {
|
|
1151
|
+
delete this._states[e];
|
|
1152
|
+
}
|
|
1153
|
+
apply(e) {
|
|
1154
|
+
const t = this._states[e];
|
|
1155
|
+
t && t.apply(), this._entity._applyState(e);
|
|
1156
|
+
}
|
|
1157
|
+
applyAnimate(e, t) {
|
|
1158
|
+
let i;
|
|
1159
|
+
const r = this._states[e];
|
|
1160
|
+
return r && (i = r.applyAnimate(t)), this._entity._applyStateAnimated(e, t), i;
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
class Mt {
|
|
1164
|
+
constructor() {
|
|
1165
|
+
Object.defineProperty(this, "version", { enumerable: !0, configurable: !0, writable: !0, value: "5.8.0" }), Object.defineProperty(this, "licenses", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "entitiesById", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "rootElements", { enumerable: !0, configurable: !0, writable: !0, value: [] });
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
const R = new Mt();
|
|
1169
|
+
function Ei(s) {
|
|
1170
|
+
R.licenses.push(s);
|
|
1171
|
+
}
|
|
1172
|
+
function F(s, e) {
|
|
1173
|
+
return s === e ? 0 : s < e ? -1 : 1;
|
|
1174
|
+
}
|
|
1175
|
+
function Ze(s, e, t) {
|
|
1176
|
+
const i = s.length, r = e.length, a = Math.min(i, r);
|
|
1177
|
+
for (let n = 0; n < a; ++n) {
|
|
1178
|
+
const o = t(s[n], e[n]);
|
|
1179
|
+
if (o !== 0)
|
|
1180
|
+
return o;
|
|
1181
|
+
}
|
|
1182
|
+
return F(i, r);
|
|
1183
|
+
}
|
|
1184
|
+
function Ci(s, e) {
|
|
1185
|
+
return s === e ? 0 : s < e ? -1 : 1;
|
|
1186
|
+
}
|
|
1187
|
+
class Bt {
|
|
1188
|
+
constructor(e) {
|
|
1189
|
+
Object.defineProperty(this, "_entity", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_callbacks", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_disabled", { enumerable: !0, configurable: !0, writable: !0, value: {} }), this._entity = e;
|
|
1190
|
+
}
|
|
1191
|
+
add(e, t) {
|
|
1192
|
+
let i = this._callbacks[e];
|
|
1193
|
+
return i === void 0 && (i = this._callbacks[e] = []), i.push(t), this._entity._markDirtyKey(e), new P(() => {
|
|
1194
|
+
O(i, t) && this._entity._markDirtyKey(e);
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
remove(e) {
|
|
1198
|
+
const t = this._callbacks[e];
|
|
1199
|
+
t !== void 0 && (delete this._callbacks[e], t.length !== 0 && this._entity._markDirtyKey(e));
|
|
1200
|
+
}
|
|
1201
|
+
enable(e) {
|
|
1202
|
+
this._disabled[e] && (delete this._disabled[e], this._entity._markDirtyKey(e));
|
|
1203
|
+
}
|
|
1204
|
+
disable(e) {
|
|
1205
|
+
this._disabled[e] || (this._disabled[e] = !0, this._entity._markDirtyKey(e));
|
|
1206
|
+
}
|
|
1207
|
+
fold(e, t) {
|
|
1208
|
+
if (!this._disabled[e]) {
|
|
1209
|
+
const i = this._callbacks[e];
|
|
1210
|
+
if (i !== void 0)
|
|
1211
|
+
for (let r = 0, a = i.length; r < a; ++r)
|
|
1212
|
+
t = i[r](t, this._entity, e);
|
|
1213
|
+
}
|
|
1214
|
+
return t;
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
class Q {
|
|
1218
|
+
constructor(e, t, i, r, a, n, o) {
|
|
1219
|
+
Object.defineProperty(this, "_animation", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_from", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_to", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_duration", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_easing", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_loops", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_interpolate", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_oldTime", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_time", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_stopped", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_playing", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "events", { enumerable: !0, configurable: !0, writable: !0, value: new J() }), this._animation = e, this._from = t, this._to = i, this._duration = r, this._easing = a, this._loops = n, this._interpolate = kt(t, i), this._oldTime = o;
|
|
1220
|
+
}
|
|
1221
|
+
get to() {
|
|
1222
|
+
return this._to;
|
|
1223
|
+
}
|
|
1224
|
+
get from() {
|
|
1225
|
+
return this._from;
|
|
1226
|
+
}
|
|
1227
|
+
get playing() {
|
|
1228
|
+
return this._playing;
|
|
1229
|
+
}
|
|
1230
|
+
get stopped() {
|
|
1231
|
+
return this._stopped;
|
|
1232
|
+
}
|
|
1233
|
+
stop() {
|
|
1234
|
+
this._stopped || (this._stopped = !0, this._playing = !1, this.events.isEnabled("stopped") && this.events.dispatch("stopped", { type: "stopped", target: this }));
|
|
1235
|
+
}
|
|
1236
|
+
pause() {
|
|
1237
|
+
this._playing = !1, this._oldTime = null;
|
|
1238
|
+
}
|
|
1239
|
+
play() {
|
|
1240
|
+
this._stopped || this._playing || (this._playing = !0, this._animation._startAnimation());
|
|
1241
|
+
}
|
|
1242
|
+
get percentage() {
|
|
1243
|
+
return this._time / this._duration;
|
|
1244
|
+
}
|
|
1245
|
+
waitForStop() {
|
|
1246
|
+
return new Promise((e, t) => {
|
|
1247
|
+
if (this._stopped)
|
|
1248
|
+
e();
|
|
1249
|
+
else {
|
|
1250
|
+
const i = () => {
|
|
1251
|
+
r.dispose(), e();
|
|
1252
|
+
}, r = this.events.on("stopped", i);
|
|
1253
|
+
}
|
|
1254
|
+
});
|
|
1255
|
+
}
|
|
1256
|
+
_checkEnded() {
|
|
1257
|
+
return !(this._loops > 1) || (--this._loops, !1);
|
|
1258
|
+
}
|
|
1259
|
+
_run(e) {
|
|
1260
|
+
this._oldTime !== null && (this._time += e - this._oldTime, this._time > this._duration && (this._time = this._duration)), this._oldTime = e;
|
|
1261
|
+
}
|
|
1262
|
+
_reset(e) {
|
|
1263
|
+
this._oldTime = e, this._time = 0;
|
|
1264
|
+
}
|
|
1265
|
+
_value(e) {
|
|
1266
|
+
return this._interpolate(this._easing(e), this._from, this._to);
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
let At = 0;
|
|
1270
|
+
class Ht {
|
|
1271
|
+
constructor(e) {
|
|
1272
|
+
Object.defineProperty(this, "uid", { enumerable: !0, configurable: !0, writable: !0, value: ++At }), Object.defineProperty(this, "_settings", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_privateSettings", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_settingEvents", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_privateSettingEvents", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_prevSettings", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_prevPrivateSettings", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_animatingSettings", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_animatingPrivateSettings", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_disposed", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_userProperties", { enumerable: !0, configurable: !0, writable: !0, value: {} }), this._settings = e;
|
|
1273
|
+
}
|
|
1274
|
+
_checkDirty() {
|
|
1275
|
+
T(this._settings).forEach((e) => {
|
|
1276
|
+
this._userProperties[e] = !0, this._markDirtyKey(e);
|
|
1277
|
+
});
|
|
1278
|
+
}
|
|
1279
|
+
resetUserSettings() {
|
|
1280
|
+
this._userProperties = {};
|
|
1281
|
+
}
|
|
1282
|
+
_runAnimation(e) {
|
|
1283
|
+
let t = U.Stopped;
|
|
1284
|
+
if (!this.isDisposed()) {
|
|
1285
|
+
let i = !1, r = !1;
|
|
1286
|
+
y(this._animatingSettings, (a, n) => {
|
|
1287
|
+
if (n.stopped)
|
|
1288
|
+
this._stopAnimation(a);
|
|
1289
|
+
else if (n.playing) {
|
|
1290
|
+
n._run(e);
|
|
1291
|
+
const o = n.percentage;
|
|
1292
|
+
o >= 1 ? n._checkEnded() ? this.set(a, n._value(1)) : (i = !0, n._reset(e), this._set(a, n._value(1))) : (i = !0, this._set(a, n._value(o)));
|
|
1293
|
+
} else
|
|
1294
|
+
r = !0;
|
|
1295
|
+
}), y(this._animatingPrivateSettings, (a, n) => {
|
|
1296
|
+
if (n.stopped)
|
|
1297
|
+
this._stopAnimationPrivate(a);
|
|
1298
|
+
else if (n.playing) {
|
|
1299
|
+
n._run(e);
|
|
1300
|
+
const o = n.percentage;
|
|
1301
|
+
o >= 1 ? n._checkEnded() ? this.setPrivate(a, n._value(1)) : (i = !0, n._reset(e), this._setPrivate(a, n._value(1))) : (i = !0, this._setPrivate(a, n._value(o)));
|
|
1302
|
+
} else
|
|
1303
|
+
r = !0;
|
|
1304
|
+
}), i ? t = U.Playing : r && (t = U.Paused);
|
|
1305
|
+
}
|
|
1306
|
+
return t;
|
|
1307
|
+
}
|
|
1308
|
+
_markDirtyKey(e) {
|
|
1309
|
+
this.markDirty();
|
|
1310
|
+
}
|
|
1311
|
+
_markDirtyPrivateKey(e) {
|
|
1312
|
+
this.markDirty();
|
|
1313
|
+
}
|
|
1314
|
+
on(e, t) {
|
|
1315
|
+
let i = this._settingEvents[e];
|
|
1316
|
+
return i === void 0 && (i = this._settingEvents[e] = []), i.push(t), new P(() => {
|
|
1317
|
+
O(i, t), i.length === 0 && delete this._settingEvents[e];
|
|
1318
|
+
});
|
|
1319
|
+
}
|
|
1320
|
+
onPrivate(e, t) {
|
|
1321
|
+
let i = this._privateSettingEvents[e];
|
|
1322
|
+
return i === void 0 && (i = this._privateSettingEvents[e] = []), i.push(t), new P(() => {
|
|
1323
|
+
O(i, t), i.length === 0 && delete this._privateSettingEvents[e];
|
|
1324
|
+
});
|
|
1325
|
+
}
|
|
1326
|
+
getRaw(e, t) {
|
|
1327
|
+
const i = this._settings[e];
|
|
1328
|
+
return i !== void 0 ? i : t;
|
|
1329
|
+
}
|
|
1330
|
+
get(e, t) {
|
|
1331
|
+
return this.getRaw(e, t);
|
|
1332
|
+
}
|
|
1333
|
+
_sendKeyEvent(e, t) {
|
|
1334
|
+
const i = this._settingEvents[e];
|
|
1335
|
+
i !== void 0 && _(i, (r) => {
|
|
1336
|
+
r(t, this, e);
|
|
1337
|
+
});
|
|
1338
|
+
}
|
|
1339
|
+
_sendPrivateKeyEvent(e, t) {
|
|
1340
|
+
const i = this._privateSettingEvents[e];
|
|
1341
|
+
i !== void 0 && _(i, (r) => {
|
|
1342
|
+
r(t, this, e);
|
|
1343
|
+
});
|
|
1344
|
+
}
|
|
1345
|
+
_setRaw(e, t, i) {
|
|
1346
|
+
this._prevSettings[e] = t, this._sendKeyEvent(e, i);
|
|
1347
|
+
}
|
|
1348
|
+
setRaw(e, t) {
|
|
1349
|
+
const i = this._settings[e];
|
|
1350
|
+
this._settings[e] = t, i !== t && this._setRaw(e, i, t);
|
|
1351
|
+
}
|
|
1352
|
+
_set(e, t) {
|
|
1353
|
+
const i = this._settings[e];
|
|
1354
|
+
this._settings[e] = t, i !== t && (this._setRaw(e, i, t), this._markDirtyKey(e));
|
|
1355
|
+
}
|
|
1356
|
+
_stopAnimation(e) {
|
|
1357
|
+
const t = this._animatingSettings[e];
|
|
1358
|
+
t && (delete this._animatingSettings[e], t.stop());
|
|
1359
|
+
}
|
|
1360
|
+
set(e, t) {
|
|
1361
|
+
return this._set(e, t), this._stopAnimation(e), t;
|
|
1362
|
+
}
|
|
1363
|
+
remove(e) {
|
|
1364
|
+
e in this._settings && (this._prevSettings[e] = this._settings[e], delete this._settings[e], this._sendKeyEvent(e, void 0), this._markDirtyKey(e)), this._stopAnimation(e);
|
|
1365
|
+
}
|
|
1366
|
+
removeAll() {
|
|
1367
|
+
_(T(this._settings), (e) => {
|
|
1368
|
+
this.remove(e);
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
getPrivate(e, t) {
|
|
1372
|
+
const i = this._privateSettings[e];
|
|
1373
|
+
return i !== void 0 ? i : t;
|
|
1374
|
+
}
|
|
1375
|
+
_setPrivateRaw(e, t, i) {
|
|
1376
|
+
this._prevPrivateSettings[e] = t, this._sendPrivateKeyEvent(e, i);
|
|
1377
|
+
}
|
|
1378
|
+
setPrivateRaw(e, t) {
|
|
1379
|
+
const i = this._privateSettings[e];
|
|
1380
|
+
this._privateSettings[e] = t, i !== t && this._setPrivateRaw(e, i, t);
|
|
1381
|
+
}
|
|
1382
|
+
_setPrivate(e, t) {
|
|
1383
|
+
const i = this._privateSettings[e];
|
|
1384
|
+
this._privateSettings[e] = t, i !== t && (this._setPrivateRaw(e, i, t), this._markDirtyPrivateKey(e));
|
|
1385
|
+
}
|
|
1386
|
+
_stopAnimationPrivate(e) {
|
|
1387
|
+
const t = this._animatingPrivateSettings[e];
|
|
1388
|
+
t && (t.stop(), delete this._animatingPrivateSettings[e]);
|
|
1389
|
+
}
|
|
1390
|
+
setPrivate(e, t) {
|
|
1391
|
+
return this._setPrivate(e, t), this._stopAnimationPrivate(e), t;
|
|
1392
|
+
}
|
|
1393
|
+
removePrivate(e) {
|
|
1394
|
+
e in this._privateSettings && (this._prevPrivateSettings[e] = this._privateSettings[e], delete this._privateSettings[e], this._markDirtyPrivateKey(e)), this._stopAnimationPrivate(e);
|
|
1395
|
+
}
|
|
1396
|
+
setAll(e) {
|
|
1397
|
+
y(e, (t, i) => {
|
|
1398
|
+
this.set(t, i);
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1401
|
+
animate(e) {
|
|
1402
|
+
const t = e.key, i = e.to, r = e.duration || 0, a = e.loops || 1, n = e.from === void 0 ? this.get(t) : e.from, o = e.easing === void 0 ? Le : e.easing;
|
|
1403
|
+
if (r === 0)
|
|
1404
|
+
this.set(t, i);
|
|
1405
|
+
else {
|
|
1406
|
+
if (n !== void 0 && n !== i) {
|
|
1407
|
+
this.set(t, n);
|
|
1408
|
+
const l = this._animatingSettings[t] = new Q(this, n, i, r, o, a, this._animationTime());
|
|
1409
|
+
return this._startAnimation(), l;
|
|
1410
|
+
}
|
|
1411
|
+
this.set(t, i);
|
|
1412
|
+
}
|
|
1413
|
+
const h = new Q(this, n, i, r, o, a, null);
|
|
1414
|
+
return h.stop(), h;
|
|
1415
|
+
}
|
|
1416
|
+
animatePrivate(e) {
|
|
1417
|
+
const t = e.key, i = e.to, r = e.duration || 0, a = e.loops || 1, n = e.from === void 0 ? this.getPrivate(t) : e.from, o = e.easing === void 0 ? Le : e.easing;
|
|
1418
|
+
if (r === 0)
|
|
1419
|
+
this.setPrivate(t, i);
|
|
1420
|
+
else {
|
|
1421
|
+
if (n !== void 0 && n !== i) {
|
|
1422
|
+
this.setPrivate(t, n);
|
|
1423
|
+
const l = this._animatingPrivateSettings[t] = new Q(this, n, i, r, o, a, this._animationTime());
|
|
1424
|
+
return this._startAnimation(), l;
|
|
1425
|
+
}
|
|
1426
|
+
this.setPrivate(t, i);
|
|
1427
|
+
}
|
|
1428
|
+
const h = new Q(this, n, i, r, o, a, null);
|
|
1429
|
+
return h.stop(), h;
|
|
1430
|
+
}
|
|
1431
|
+
_dispose() {
|
|
1432
|
+
}
|
|
1433
|
+
isDisposed() {
|
|
1434
|
+
return this._disposed;
|
|
1435
|
+
}
|
|
1436
|
+
dispose() {
|
|
1437
|
+
this._disposed || (this._disposed = !0, this._dispose());
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
class A extends Ht {
|
|
1441
|
+
constructor(e, t, i, r = []) {
|
|
1442
|
+
if (super(t), Object.defineProperty(this, "_root", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_user_id", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "states", { enumerable: !0, configurable: !0, writable: !0, value: new Ct(this) }), Object.defineProperty(this, "adapters", { enumerable: !0, configurable: !0, writable: !0, value: new Bt(this) }), Object.defineProperty(this, "events", { enumerable: !0, configurable: !0, writable: !0, value: this._createEvents() }), Object.defineProperty(this, "_userPrivateProperties", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_dirty", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_dirtyPrivate", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_template", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_templates", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_internalTemplates", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_defaultThemes", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_templateDisposers", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_disposers", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_runSetup", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "_disposerProperties", { enumerable: !0, configurable: !0, writable: !0, value: {} }), !i)
|
|
1443
|
+
throw new Error("You cannot use `new Class()`, instead use `Class.new()`");
|
|
1444
|
+
this._root = e, this._internalTemplates = r, t.id && this._registerId(t.id);
|
|
1445
|
+
}
|
|
1446
|
+
static new(e, t, i) {
|
|
1447
|
+
const r = new this(e, t, !0);
|
|
1448
|
+
return r._template = i, r._afterNew(), r;
|
|
1449
|
+
}
|
|
1450
|
+
static _new(e, t, i = []) {
|
|
1451
|
+
const r = new this(e, t, !0, i);
|
|
1452
|
+
return r._afterNew(), r;
|
|
1453
|
+
}
|
|
1454
|
+
_afterNew() {
|
|
1455
|
+
this._checkDirty();
|
|
1456
|
+
let e = !1;
|
|
1457
|
+
const t = this._template;
|
|
1458
|
+
t && (e = !0, t._setObjectTemplate(this)), _(this._internalTemplates, (i) => {
|
|
1459
|
+
e = !0, i._setObjectTemplate(this);
|
|
1460
|
+
}), e && this._applyTemplates(!1), this.states.create("default", {}), this._setDefaults();
|
|
1461
|
+
}
|
|
1462
|
+
_afterNewApplyThemes() {
|
|
1463
|
+
this._checkDirty();
|
|
1464
|
+
const e = this._template;
|
|
1465
|
+
e && e._setObjectTemplate(this), _(this._internalTemplates, (t) => {
|
|
1466
|
+
t._setObjectTemplate(this);
|
|
1467
|
+
}), this.states.create("default", {}), this._setDefaults(), this._applyThemes();
|
|
1468
|
+
}
|
|
1469
|
+
_createEvents() {
|
|
1470
|
+
return new J();
|
|
1471
|
+
}
|
|
1472
|
+
get classNames() {
|
|
1473
|
+
return this.constructor.classNames;
|
|
1474
|
+
}
|
|
1475
|
+
get className() {
|
|
1476
|
+
return this.constructor.className;
|
|
1477
|
+
}
|
|
1478
|
+
_setDefaults() {
|
|
1479
|
+
}
|
|
1480
|
+
_setDefault(e, t) {
|
|
1481
|
+
e in this._settings || super.set(e, t);
|
|
1482
|
+
}
|
|
1483
|
+
_setRawDefault(e, t) {
|
|
1484
|
+
e in this._settings || super.setRaw(e, t);
|
|
1485
|
+
}
|
|
1486
|
+
_clearDirty() {
|
|
1487
|
+
T(this._dirty).forEach((e) => {
|
|
1488
|
+
this._dirty[e] = !1;
|
|
1489
|
+
}), T(this._dirtyPrivate).forEach((e) => {
|
|
1490
|
+
this._dirtyPrivate[e] = !1;
|
|
1491
|
+
});
|
|
1492
|
+
}
|
|
1493
|
+
isDirty(e) {
|
|
1494
|
+
return !!this._dirty[e];
|
|
1495
|
+
}
|
|
1496
|
+
isPrivateDirty(e) {
|
|
1497
|
+
return !!this._dirtyPrivate[e];
|
|
1498
|
+
}
|
|
1499
|
+
_markDirtyKey(e) {
|
|
1500
|
+
this._dirty[e] = !0, super._markDirtyKey(e);
|
|
1501
|
+
}
|
|
1502
|
+
_markDirtyPrivateKey(e) {
|
|
1503
|
+
this._dirtyPrivate[e] = !0, super._markDirtyKey(e);
|
|
1504
|
+
}
|
|
1505
|
+
isType(e) {
|
|
1506
|
+
return this.classNames.indexOf(e) !== -1;
|
|
1507
|
+
}
|
|
1508
|
+
_pushPropertyDisposer(e, t) {
|
|
1509
|
+
let i = this._disposerProperties[e];
|
|
1510
|
+
return i === void 0 && (i = this._disposerProperties[e] = []), i.push(t), t;
|
|
1511
|
+
}
|
|
1512
|
+
_disposeProperty(e) {
|
|
1513
|
+
const t = this._disposerProperties[e];
|
|
1514
|
+
t !== void 0 && (_(t, (i) => {
|
|
1515
|
+
i.dispose();
|
|
1516
|
+
}), delete this._disposerProperties[e]);
|
|
1517
|
+
}
|
|
1518
|
+
set template(e) {
|
|
1519
|
+
const t = this._template;
|
|
1520
|
+
t !== e && (this._template = e, t && t._removeObjectTemplate(this), e && e._setObjectTemplate(this), this._applyTemplates());
|
|
1521
|
+
}
|
|
1522
|
+
get template() {
|
|
1523
|
+
return this._template;
|
|
1524
|
+
}
|
|
1525
|
+
markDirty() {
|
|
1526
|
+
this._root._addDirtyEntity(this);
|
|
1527
|
+
}
|
|
1528
|
+
_startAnimation() {
|
|
1529
|
+
this._root._addAnimation(this);
|
|
1530
|
+
}
|
|
1531
|
+
_animationTime() {
|
|
1532
|
+
return this._root.animationTime;
|
|
1533
|
+
}
|
|
1534
|
+
_applyState(e) {
|
|
1535
|
+
}
|
|
1536
|
+
_applyStateAnimated(e, t) {
|
|
1537
|
+
}
|
|
1538
|
+
get(e, t) {
|
|
1539
|
+
const i = this.adapters.fold(e, this._settings[e]);
|
|
1540
|
+
return i !== void 0 ? i : t;
|
|
1541
|
+
}
|
|
1542
|
+
isUserSetting(e) {
|
|
1543
|
+
return this._userProperties[e] || !1;
|
|
1544
|
+
}
|
|
1545
|
+
set(e, t) {
|
|
1546
|
+
return this._userProperties[e] = !0, super.set(e, t);
|
|
1547
|
+
}
|
|
1548
|
+
setRaw(e, t) {
|
|
1549
|
+
this._userProperties[e] = !0, super.setRaw(e, t);
|
|
1550
|
+
}
|
|
1551
|
+
_setSoft(e, t) {
|
|
1552
|
+
return this._userProperties[e] ? t : super.set(e, t);
|
|
1553
|
+
}
|
|
1554
|
+
remove(e) {
|
|
1555
|
+
delete this._userProperties[e], this._removeTemplateProperty(e);
|
|
1556
|
+
}
|
|
1557
|
+
setPrivate(e, t) {
|
|
1558
|
+
return this._userPrivateProperties[e] = !0, super.setPrivate(e, t);
|
|
1559
|
+
}
|
|
1560
|
+
setPrivateRaw(e, t) {
|
|
1561
|
+
this._userPrivateProperties[e] = !0, super.setPrivateRaw(e, t);
|
|
1562
|
+
}
|
|
1563
|
+
removePrivate(e) {
|
|
1564
|
+
delete this._userPrivateProperties[e], this._removeTemplatePrivateProperty(e);
|
|
1565
|
+
}
|
|
1566
|
+
_setTemplateProperty(e, t, i) {
|
|
1567
|
+
this._userProperties[t] || e === this._findTemplateByKey(t) && super.set(t, i);
|
|
1568
|
+
}
|
|
1569
|
+
_setTemplatePrivateProperty(e, t, i) {
|
|
1570
|
+
this._userPrivateProperties[t] || e === this._findTemplateByPrivateKey(t) && super.setPrivate(t, i);
|
|
1571
|
+
}
|
|
1572
|
+
_removeTemplateProperty(e) {
|
|
1573
|
+
if (!this._userProperties[e]) {
|
|
1574
|
+
const t = this._findTemplateByKey(e);
|
|
1575
|
+
t ? super.set(e, t._settings[e]) : super.remove(e);
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
_removeTemplatePrivateProperty(e) {
|
|
1579
|
+
if (!this._userPrivateProperties[e]) {
|
|
1580
|
+
const t = this._findTemplateByPrivateKey(e);
|
|
1581
|
+
t ? super.setPrivate(e, t._privateSettings[e]) : super.removePrivate(e);
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
_walkParents(e) {
|
|
1585
|
+
e(this._root._rootContainer), e(this);
|
|
1586
|
+
}
|
|
1587
|
+
_applyStateByKey(e) {
|
|
1588
|
+
const t = this.states.create(e, {}), i = {};
|
|
1589
|
+
this._eachTemplate((r) => {
|
|
1590
|
+
const a = r.states.lookup(e);
|
|
1591
|
+
a && a._apply(t, i);
|
|
1592
|
+
}), y(t._settings, (r) => {
|
|
1593
|
+
i[r] || t._userSettings[r] || t.remove(r);
|
|
1594
|
+
});
|
|
1595
|
+
}
|
|
1596
|
+
_applyTemplate(e, t) {
|
|
1597
|
+
this._templateDisposers.push(e._apply(this, t)), y(e._settings, (i, r) => {
|
|
1598
|
+
t.settings[i] || this._userProperties[i] || (t.settings[i] = !0, super.set(i, r));
|
|
1599
|
+
}), y(e._privateSettings, (i, r) => {
|
|
1600
|
+
t.privateSettings[i] || this._userPrivateProperties[i] || (t.privateSettings[i] = !0, super.setPrivate(i, r));
|
|
1601
|
+
}), this._runSetup && e.setup && (this._runSetup = !1, e.setup(this));
|
|
1602
|
+
}
|
|
1603
|
+
_findStaticTemplate(e) {
|
|
1604
|
+
if (this._template && e(this._template))
|
|
1605
|
+
return this._template;
|
|
1606
|
+
}
|
|
1607
|
+
_eachTemplate(e) {
|
|
1608
|
+
this._findStaticTemplate((t) => (e(t), !1)), V(this._internalTemplates, e), _(this._templates, e);
|
|
1609
|
+
}
|
|
1610
|
+
_applyTemplates(e = !0) {
|
|
1611
|
+
e && this._disposeTemplates();
|
|
1612
|
+
const t = { settings: {}, privateSettings: {}, states: {} };
|
|
1613
|
+
this._eachTemplate((i) => {
|
|
1614
|
+
this._applyTemplate(i, t);
|
|
1615
|
+
}), e && (y(this._settings, (i) => {
|
|
1616
|
+
this._userProperties[i] || t.settings[i] || super.remove(i);
|
|
1617
|
+
}), y(this._privateSettings, (i) => {
|
|
1618
|
+
this._userPrivateProperties[i] || t.privateSettings[i] || super.removePrivate(i);
|
|
1619
|
+
}));
|
|
1620
|
+
}
|
|
1621
|
+
_findTemplate(e) {
|
|
1622
|
+
const t = this._findStaticTemplate(e);
|
|
1623
|
+
if (t === void 0) {
|
|
1624
|
+
const i = rt(this._internalTemplates, e);
|
|
1625
|
+
return i === void 0 ? st(this._templates, e) : i;
|
|
1626
|
+
}
|
|
1627
|
+
return t;
|
|
1628
|
+
}
|
|
1629
|
+
_findTemplateByKey(e) {
|
|
1630
|
+
return this._findTemplate((t) => e in t._settings);
|
|
1631
|
+
}
|
|
1632
|
+
_findTemplateByPrivateKey(e) {
|
|
1633
|
+
return this._findTemplate((t) => e in t._privateSettings);
|
|
1634
|
+
}
|
|
1635
|
+
_disposeTemplates() {
|
|
1636
|
+
_(this._templateDisposers, (e) => {
|
|
1637
|
+
e.dispose();
|
|
1638
|
+
}), this._templateDisposers.length = 0;
|
|
1639
|
+
}
|
|
1640
|
+
_removeTemplates() {
|
|
1641
|
+
_(this._templates, (e) => {
|
|
1642
|
+
e._removeObjectTemplate(this);
|
|
1643
|
+
}), this._templates.length = 0;
|
|
1644
|
+
}
|
|
1645
|
+
_applyThemes(e = !1) {
|
|
1646
|
+
let t = !1;
|
|
1647
|
+
const i = [];
|
|
1648
|
+
let r = [];
|
|
1649
|
+
const a = /* @__PURE__ */ new Set(), n = this.get("themeTagsSelf");
|
|
1650
|
+
return n && _(n, (o) => {
|
|
1651
|
+
a.add(o);
|
|
1652
|
+
}), this._walkParents((o) => {
|
|
1653
|
+
o === this._root._rootContainer && (t = !0), o._defaultThemes.length > 0 && i.push(o._defaultThemes);
|
|
1654
|
+
const h = o.get("themes");
|
|
1655
|
+
h && r.push(h);
|
|
1656
|
+
const l = o.get("themeTags");
|
|
1657
|
+
l && _(l, (d) => {
|
|
1658
|
+
a.add(d);
|
|
1659
|
+
});
|
|
1660
|
+
}), r = i.concat(r), this._removeTemplates(), (t || e) && V(this.classNames, (o) => {
|
|
1661
|
+
const h = [];
|
|
1662
|
+
_(r, (l) => {
|
|
1663
|
+
_(l, (d) => {
|
|
1664
|
+
const p = d._lookupRules(o);
|
|
1665
|
+
p && V(p, (u) => {
|
|
1666
|
+
if (u.tags.every((c) => a.has(c))) {
|
|
1667
|
+
const c = nt(h, (m) => {
|
|
1668
|
+
const b = F(u.tags.length, m.tags.length);
|
|
1669
|
+
return b === 0 ? Ze(u.tags, m.tags, F) : b;
|
|
1670
|
+
});
|
|
1671
|
+
h.splice(c.index, 0, u);
|
|
1672
|
+
}
|
|
1673
|
+
});
|
|
1674
|
+
});
|
|
1675
|
+
}), _(h, (l) => {
|
|
1676
|
+
this._templates.push(l.template), l.template._setObjectTemplate(this);
|
|
1677
|
+
});
|
|
1678
|
+
}), this._applyTemplates(), (t || e) && (this._runSetup = !1), t || e;
|
|
1679
|
+
}
|
|
1680
|
+
_changed() {
|
|
1681
|
+
}
|
|
1682
|
+
_beforeChanged() {
|
|
1683
|
+
if (this.isDirty("id")) {
|
|
1684
|
+
const e = this.get("id");
|
|
1685
|
+
e && this._registerId(e);
|
|
1686
|
+
const t = this._prevSettings.id;
|
|
1687
|
+
t && delete R.entitiesById[t];
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
_registerId(e) {
|
|
1691
|
+
if (R.entitiesById[e] && R.entitiesById[e] !== this)
|
|
1692
|
+
throw new Error('An entity with id "' + e + '" already exists.');
|
|
1693
|
+
R.entitiesById[e] = this;
|
|
1694
|
+
}
|
|
1695
|
+
_afterChanged() {
|
|
1696
|
+
}
|
|
1697
|
+
addDisposer(e) {
|
|
1698
|
+
return this._disposers.push(e), e;
|
|
1699
|
+
}
|
|
1700
|
+
_dispose() {
|
|
1701
|
+
super._dispose();
|
|
1702
|
+
const e = this._template;
|
|
1703
|
+
e && e._removeObjectTemplate(this), _(this._internalTemplates, (i) => {
|
|
1704
|
+
i._removeObjectTemplate(this);
|
|
1705
|
+
}), this._removeTemplates(), this._disposeTemplates(), this.events.dispose(), this._disposers.forEach((i) => {
|
|
1706
|
+
i.dispose();
|
|
1707
|
+
}), y(this._disposerProperties, (i, r) => {
|
|
1708
|
+
_(r, (a) => {
|
|
1709
|
+
a.dispose();
|
|
1710
|
+
});
|
|
1711
|
+
});
|
|
1712
|
+
const t = this.get("id");
|
|
1713
|
+
t && delete R.entitiesById[t];
|
|
1714
|
+
}
|
|
1715
|
+
setTimeout(e, t) {
|
|
1716
|
+
const i = setTimeout(() => {
|
|
1717
|
+
this.removeDispose(r), e();
|
|
1718
|
+
}, t), r = new P(() => {
|
|
1719
|
+
clearTimeout(i);
|
|
1720
|
+
});
|
|
1721
|
+
return this._disposers.push(r), r;
|
|
1722
|
+
}
|
|
1723
|
+
removeDispose(e) {
|
|
1724
|
+
if (!this.isDisposed()) {
|
|
1725
|
+
let t = re(this._disposers, e);
|
|
1726
|
+
t > -1 && this._disposers.splice(t, 1);
|
|
1727
|
+
}
|
|
1728
|
+
e.dispose();
|
|
1729
|
+
}
|
|
1730
|
+
hasTag(e) {
|
|
1731
|
+
return re(this.get("themeTags", []), e) !== -1;
|
|
1732
|
+
}
|
|
1733
|
+
addTag(e) {
|
|
1734
|
+
if (!this.hasTag(e)) {
|
|
1735
|
+
const t = this.get("themeTags", []);
|
|
1736
|
+
t.push(e), this.set("themeTags", t);
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
removeTag(e) {
|
|
1740
|
+
if (this.hasTag(e)) {
|
|
1741
|
+
const t = this.get("themeTags", []);
|
|
1742
|
+
Fe(t, e), this.set("themeTags", t);
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
_t(e, t, ...i) {
|
|
1746
|
+
return this._root.language.translate(e, t, ...i);
|
|
1747
|
+
}
|
|
1748
|
+
get root() {
|
|
1749
|
+
return this._root;
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
Object.defineProperty(A, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Entity" }), Object.defineProperty(A, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: ["Entity"] });
|
|
1753
|
+
class It {
|
|
1754
|
+
constructor(e, t, i) {
|
|
1755
|
+
Object.defineProperty(this, "_settings", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_name", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_template", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this._name = e, this._template = t, this._settings = i;
|
|
1756
|
+
}
|
|
1757
|
+
get(e, t) {
|
|
1758
|
+
const i = this._settings[e];
|
|
1759
|
+
return i !== void 0 ? i : t;
|
|
1760
|
+
}
|
|
1761
|
+
set(e, t) {
|
|
1762
|
+
this._settings[e] = t, this._template._stateChanged(this._name);
|
|
1763
|
+
}
|
|
1764
|
+
remove(e) {
|
|
1765
|
+
delete this._settings[e], this._template._stateChanged(this._name);
|
|
1766
|
+
}
|
|
1767
|
+
setAll(e) {
|
|
1768
|
+
T(e).forEach((t) => {
|
|
1769
|
+
this._settings[t] = e[t];
|
|
1770
|
+
}), this._template._stateChanged(this._name);
|
|
1771
|
+
}
|
|
1772
|
+
_apply(e, t) {
|
|
1773
|
+
y(this._settings, (i, r) => {
|
|
1774
|
+
t[i] || e._userSettings[i] || (t[i] = !0, e.setRaw(i, r));
|
|
1775
|
+
});
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
class Lt {
|
|
1779
|
+
constructor(e) {
|
|
1780
|
+
Object.defineProperty(this, "_template", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_states", { enumerable: !0, configurable: !0, writable: !0, value: {} }), this._template = e;
|
|
1781
|
+
}
|
|
1782
|
+
lookup(e) {
|
|
1783
|
+
return this._states[e];
|
|
1784
|
+
}
|
|
1785
|
+
create(e, t) {
|
|
1786
|
+
const i = this._states[e];
|
|
1787
|
+
if (i)
|
|
1788
|
+
return i.setAll(t), i;
|
|
1789
|
+
{
|
|
1790
|
+
const r = new It(e, this._template, t);
|
|
1791
|
+
return this._states[e] = r, this._template._stateChanged(e), r;
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
remove(e) {
|
|
1795
|
+
delete this._states[e], this._template._stateChanged(e);
|
|
1796
|
+
}
|
|
1797
|
+
_apply(e, t) {
|
|
1798
|
+
y(this._states, (i, r) => {
|
|
1799
|
+
let a = t.states[i];
|
|
1800
|
+
a == null && (a = t.states[i] = {});
|
|
1801
|
+
const n = e.states.create(i, {});
|
|
1802
|
+
r._apply(n, a);
|
|
1803
|
+
});
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
class Nt {
|
|
1807
|
+
constructor() {
|
|
1808
|
+
Object.defineProperty(this, "_callbacks", { enumerable: !0, configurable: !0, writable: !0, value: {} });
|
|
1809
|
+
}
|
|
1810
|
+
add(e, t) {
|
|
1811
|
+
let i = this._callbacks[e];
|
|
1812
|
+
return i === void 0 && (i = this._callbacks[e] = []), i.push(t), new P(() => {
|
|
1813
|
+
O(i, t), i.length === 0 && delete this._callbacks[e];
|
|
1814
|
+
});
|
|
1815
|
+
}
|
|
1816
|
+
remove(e) {
|
|
1817
|
+
this._callbacks[e] !== void 0 && delete this._callbacks[e];
|
|
1818
|
+
}
|
|
1819
|
+
_apply(e) {
|
|
1820
|
+
const t = [];
|
|
1821
|
+
return y(this._callbacks, (i, r) => {
|
|
1822
|
+
_(r, (a) => {
|
|
1823
|
+
t.push(e.adapters.add(i, a));
|
|
1824
|
+
});
|
|
1825
|
+
}), new k(t);
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
class q {
|
|
1829
|
+
constructor(e, t) {
|
|
1830
|
+
if (Object.defineProperty(this, "_settings", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_privateSettings", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_settingEvents", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_privateSettingEvents", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_entities", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "states", { enumerable: !0, configurable: !0, writable: !0, value: new Lt(this) }), Object.defineProperty(this, "adapters", { enumerable: !0, configurable: !0, writable: !0, value: new Nt() }), Object.defineProperty(this, "events", { enumerable: !0, configurable: !0, writable: !0, value: new J() }), Object.defineProperty(this, "setup", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), !t)
|
|
1831
|
+
throw new Error("You cannot use `new Class()`, instead use `Class.new()`");
|
|
1832
|
+
this._settings = e;
|
|
1833
|
+
}
|
|
1834
|
+
static new(e) {
|
|
1835
|
+
return new q(e, !0);
|
|
1836
|
+
}
|
|
1837
|
+
get entities() {
|
|
1838
|
+
return this._entities;
|
|
1839
|
+
}
|
|
1840
|
+
get(e, t) {
|
|
1841
|
+
const i = this._settings[e];
|
|
1842
|
+
return i !== void 0 ? i : t;
|
|
1843
|
+
}
|
|
1844
|
+
setRaw(e, t) {
|
|
1845
|
+
this._settings[e] = t;
|
|
1846
|
+
}
|
|
1847
|
+
set(e, t) {
|
|
1848
|
+
this._settings[e] !== t && (this.setRaw(e, t), this._entities.forEach((i) => {
|
|
1849
|
+
i._setTemplateProperty(this, e, t);
|
|
1850
|
+
}));
|
|
1851
|
+
}
|
|
1852
|
+
remove(e) {
|
|
1853
|
+
e in this._settings && (delete this._settings[e], this._entities.forEach((t) => {
|
|
1854
|
+
t._removeTemplateProperty(e);
|
|
1855
|
+
}));
|
|
1856
|
+
}
|
|
1857
|
+
removeAll() {
|
|
1858
|
+
y(this._settings, (e, t) => {
|
|
1859
|
+
this.remove(e);
|
|
1860
|
+
});
|
|
1861
|
+
}
|
|
1862
|
+
getPrivate(e, t) {
|
|
1863
|
+
const i = this._privateSettings[e];
|
|
1864
|
+
return i !== void 0 ? i : t;
|
|
1865
|
+
}
|
|
1866
|
+
setPrivateRaw(e, t) {
|
|
1867
|
+
return this._privateSettings[e] = t, t;
|
|
1868
|
+
}
|
|
1869
|
+
setPrivate(e, t) {
|
|
1870
|
+
return this._privateSettings[e] !== t && (this.setPrivateRaw(e, t), this._entities.forEach((i) => {
|
|
1871
|
+
i._setTemplatePrivateProperty(this, e, t);
|
|
1872
|
+
})), t;
|
|
1873
|
+
}
|
|
1874
|
+
removePrivate(e) {
|
|
1875
|
+
e in this._privateSettings && (delete this._privateSettings[e], this._entities.forEach((t) => {
|
|
1876
|
+
t._removeTemplatePrivateProperty(e);
|
|
1877
|
+
}));
|
|
1878
|
+
}
|
|
1879
|
+
setAll(e) {
|
|
1880
|
+
y(e, (t, i) => {
|
|
1881
|
+
this.set(t, i);
|
|
1882
|
+
});
|
|
1883
|
+
}
|
|
1884
|
+
on(e, t) {
|
|
1885
|
+
let i = this._settingEvents[e];
|
|
1886
|
+
return i === void 0 && (i = this._settingEvents[e] = []), i.push(t), new P(() => {
|
|
1887
|
+
O(i, t), i.length === 0 && delete this._settingEvents[e];
|
|
1888
|
+
});
|
|
1889
|
+
}
|
|
1890
|
+
onPrivate(e, t) {
|
|
1891
|
+
let i = this._privateSettingEvents[e];
|
|
1892
|
+
return i === void 0 && (i = this._privateSettingEvents[e] = []), i.push(t), new P(() => {
|
|
1893
|
+
O(i, t), i.length === 0 && delete this._privateSettingEvents[e];
|
|
1894
|
+
});
|
|
1895
|
+
}
|
|
1896
|
+
_apply(e, t) {
|
|
1897
|
+
const i = [];
|
|
1898
|
+
return y(this._settingEvents, (r, a) => {
|
|
1899
|
+
_(a, (n) => {
|
|
1900
|
+
i.push(e.on(r, n));
|
|
1901
|
+
});
|
|
1902
|
+
}), y(this._privateSettingEvents, (r, a) => {
|
|
1903
|
+
_(a, (n) => {
|
|
1904
|
+
i.push(e.onPrivate(r, n));
|
|
1905
|
+
});
|
|
1906
|
+
}), this.states._apply(e, t), i.push(this.adapters._apply(e)), i.push(e.events.copyFrom(this.events)), new k(i);
|
|
1907
|
+
}
|
|
1908
|
+
_setObjectTemplate(e) {
|
|
1909
|
+
this._entities.push(e);
|
|
1910
|
+
}
|
|
1911
|
+
_removeObjectTemplate(e) {
|
|
1912
|
+
Fe(this._entities, e);
|
|
1913
|
+
}
|
|
1914
|
+
_stateChanged(e) {
|
|
1915
|
+
this._entities.forEach((t) => {
|
|
1916
|
+
t._applyStateByKey(e);
|
|
1917
|
+
});
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
class ae extends J {
|
|
1921
|
+
constructor(e) {
|
|
1922
|
+
super(), Object.defineProperty(this, "_sprite", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_rendererDisposers", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_dispatchParents", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), this._sprite = e;
|
|
1923
|
+
}
|
|
1924
|
+
_makePointerEvent(e, t) {
|
|
1925
|
+
return { type: e, originalEvent: t.event, point: t.point, simulated: t.simulated, native: t.native, target: this._sprite };
|
|
1926
|
+
}
|
|
1927
|
+
_onRenderer(e, t) {
|
|
1928
|
+
this._sprite.set("interactive", !0), this._sprite._display.interactive = !0;
|
|
1929
|
+
let i = this._rendererDisposers[e];
|
|
1930
|
+
if (i === void 0) {
|
|
1931
|
+
const r = this._sprite._display.on(e, (a) => {
|
|
1932
|
+
t.call(this, a);
|
|
1933
|
+
});
|
|
1934
|
+
i = this._rendererDisposers[e] = new lt(() => {
|
|
1935
|
+
delete this._rendererDisposers[e], r.dispose();
|
|
1936
|
+
});
|
|
1937
|
+
}
|
|
1938
|
+
return i.increment();
|
|
1939
|
+
}
|
|
1940
|
+
_on(e, t, i, r, a, n) {
|
|
1941
|
+
const o = super._on(e, t, i, r, a, n), h = ae.RENDERER_EVENTS[t];
|
|
1942
|
+
return h !== void 0 && (o.disposer = new k([o.disposer, this._onRenderer(t, h)])), o;
|
|
1943
|
+
}
|
|
1944
|
+
stopParentDispatch() {
|
|
1945
|
+
this._dispatchParents = !1;
|
|
1946
|
+
}
|
|
1947
|
+
dispatchParents(e, t) {
|
|
1948
|
+
const i = this._dispatchParents;
|
|
1949
|
+
this._dispatchParents = !0;
|
|
1950
|
+
try {
|
|
1951
|
+
this.dispatch(e, t), this._dispatchParents && this._sprite.parent && this._sprite.parent.events.dispatchParents(e, t);
|
|
1952
|
+
} finally {
|
|
1953
|
+
this._dispatchParents = i;
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
Object.defineProperty(ae, "RENDERER_EVENTS", { enumerable: !0, configurable: !0, writable: !0, value: { click: function(s) {
|
|
1958
|
+
this.isEnabled("click") && !this._sprite.isDragging() && this._sprite._hasDown() && !this._sprite._hasMoved(this._makePointerEvent("click", s)) && this.dispatch("click", this._makePointerEvent("click", s));
|
|
1959
|
+
}, rightclick: function(s) {
|
|
1960
|
+
this.isEnabled("rightclick") && this.dispatch("rightclick", this._makePointerEvent("rightclick", s));
|
|
1961
|
+
}, middleclick: function(s) {
|
|
1962
|
+
this.isEnabled("middleclick") && this.dispatch("middleclick", this._makePointerEvent("middleclick", s));
|
|
1963
|
+
}, dblclick: function(s) {
|
|
1964
|
+
this.dispatchParents("dblclick", this._makePointerEvent("dblclick", s));
|
|
1965
|
+
}, pointerover: function(s) {
|
|
1966
|
+
const e = this._sprite;
|
|
1967
|
+
let t = !0;
|
|
1968
|
+
if (e.getPrivate("trustBounds")) {
|
|
1969
|
+
e._getBounds();
|
|
1970
|
+
const i = e.globalBounds();
|
|
1971
|
+
St(s.point, i) || (t = !1, e._root._renderer.removeHovering(e._display));
|
|
1972
|
+
}
|
|
1973
|
+
t && this.isEnabled("pointerover") && this.dispatch("pointerover", this._makePointerEvent("pointerover", s));
|
|
1974
|
+
}, pointerout: function(s) {
|
|
1975
|
+
this.isEnabled("pointerout") && this.dispatch("pointerout", this._makePointerEvent("pointerout", s));
|
|
1976
|
+
}, pointerdown: function(s) {
|
|
1977
|
+
this.dispatchParents("pointerdown", this._makePointerEvent("pointerdown", s));
|
|
1978
|
+
}, pointerup: function(s) {
|
|
1979
|
+
this.isEnabled("pointerup") && this.dispatch("pointerup", this._makePointerEvent("pointerup", s));
|
|
1980
|
+
}, globalpointerup: function(s) {
|
|
1981
|
+
this.isEnabled("globalpointerup") && this.dispatch("globalpointerup", this._makePointerEvent("globalpointerup", s));
|
|
1982
|
+
}, globalpointermove: function(s) {
|
|
1983
|
+
this.isEnabled("globalpointermove") && this.dispatch("globalpointermove", this._makePointerEvent("globalpointermove", s));
|
|
1984
|
+
}, wheel: function(s) {
|
|
1985
|
+
this.dispatchParents("wheel", { type: "wheel", target: this._sprite, originalEvent: s.event, point: s.point });
|
|
1986
|
+
} } });
|
|
1987
|
+
class x extends A {
|
|
1988
|
+
constructor() {
|
|
1989
|
+
super(...arguments), Object.defineProperty(this, "_adjustedLocalBounds", { enumerable: !0, configurable: !0, writable: !0, value: { left: 0, right: 0, top: 0, bottom: 0 } }), Object.defineProperty(this, "_localBounds", { enumerable: !0, configurable: !0, writable: !0, value: { left: 0, right: 0, top: 0, bottom: 0 } }), Object.defineProperty(this, "_parent", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_dataItem", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_templateField", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_sizeDirty", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_isDragging", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_dragEvent", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_dragPoint", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_isHidden", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_isShowing", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_isHiding", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_isDown", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_downPoint", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_downPoints", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_toggleDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_dragDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltipDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_hoverDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_focusDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltipMoveDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltipPointerDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_statesHandled", { enumerable: !0, configurable: !0, writable: !0, value: !1 });
|
|
1990
|
+
}
|
|
1991
|
+
_afterNew() {
|
|
1992
|
+
this.setPrivateRaw("visible", !0), super._afterNew();
|
|
1993
|
+
}
|
|
1994
|
+
_markDirtyKey(e) {
|
|
1995
|
+
super._markDirtyKey(e), e != "x" && e != "y" && e != "dx" && e != "dy" || (this.markDirtyBounds(), this._addPercentagePositionChildren(), this.markDirtyPosition());
|
|
1996
|
+
}
|
|
1997
|
+
_markDirtyPrivateKey(e) {
|
|
1998
|
+
super._markDirtyPrivateKey(e), e != "x" && e != "y" || this.markDirtyPosition();
|
|
1999
|
+
}
|
|
2000
|
+
_removeTemplateField() {
|
|
2001
|
+
this._templateField && this._templateField._removeObjectTemplate(this);
|
|
2002
|
+
}
|
|
2003
|
+
_createEvents() {
|
|
2004
|
+
return new ae(this);
|
|
2005
|
+
}
|
|
2006
|
+
_processTemplateField() {
|
|
2007
|
+
let e;
|
|
2008
|
+
const t = this.get("templateField");
|
|
2009
|
+
if (t) {
|
|
2010
|
+
const i = this.dataItem;
|
|
2011
|
+
if (i) {
|
|
2012
|
+
const r = i.dataContext;
|
|
2013
|
+
r && (e = r[t], e instanceof q || !e || (e = q.new(e)));
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
this._templateField !== e && (this._removeTemplateField(), this._templateField = e, e && e._setObjectTemplate(this), this._applyTemplates());
|
|
2017
|
+
}
|
|
2018
|
+
_setDataItem(e) {
|
|
2019
|
+
const t = this._dataItem;
|
|
2020
|
+
this._dataItem = e, this._processTemplateField();
|
|
2021
|
+
const i = "dataitemchanged";
|
|
2022
|
+
e != t && this.events.isEnabled(i) && this.events.dispatch(i, { type: i, target: this, oldDataItem: t, newDataItem: e });
|
|
2023
|
+
}
|
|
2024
|
+
set dataItem(e) {
|
|
2025
|
+
this._setDataItem(e);
|
|
2026
|
+
}
|
|
2027
|
+
get dataItem() {
|
|
2028
|
+
if (this._dataItem)
|
|
2029
|
+
return this._dataItem;
|
|
2030
|
+
{
|
|
2031
|
+
let e = this._parent;
|
|
2032
|
+
for (; e; ) {
|
|
2033
|
+
if (e._dataItem)
|
|
2034
|
+
return e._dataItem;
|
|
2035
|
+
e = e._parent;
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
_addPercentageSizeChildren() {
|
|
2040
|
+
let e = this.parent;
|
|
2041
|
+
e && (this.get("width") instanceof f || this.get("height") instanceof f ? Ce(e._percentageSizeChildren, this) : O(e._percentageSizeChildren, this));
|
|
2042
|
+
}
|
|
2043
|
+
_addPercentagePositionChildren() {
|
|
2044
|
+
let e = this.parent;
|
|
2045
|
+
e && (this.get("x") instanceof f || this.get("y") instanceof f ? Ce(e._percentagePositionChildren, this) : O(e._percentagePositionChildren, this));
|
|
2046
|
+
}
|
|
2047
|
+
markDirtyPosition() {
|
|
2048
|
+
this._root._addDirtyPosition(this);
|
|
2049
|
+
}
|
|
2050
|
+
updatePivotPoint() {
|
|
2051
|
+
const e = this._localBounds;
|
|
2052
|
+
if (e) {
|
|
2053
|
+
const t = this.get("centerX");
|
|
2054
|
+
t != null && (this._display.pivot.x = e.left + M(t, e.right - e.left));
|
|
2055
|
+
const i = this.get("centerY");
|
|
2056
|
+
i != null && (this._display.pivot.y = e.top + M(i, e.bottom - e.top));
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
_beforeChanged() {
|
|
2060
|
+
if (super._beforeChanged(), this._handleStates(), this.isDirty("tooltip")) {
|
|
2061
|
+
const e = this._prevSettings.tooltip;
|
|
2062
|
+
e && e.dispose();
|
|
2063
|
+
}
|
|
2064
|
+
if ((this.isDirty("layer") || this.isDirty("layerMargin")) && (this._display.setLayer(this.get("layer"), this.get("layerMargin")), this.markDirtyLayer()), this.isDirty("tooltipPosition")) {
|
|
2065
|
+
const e = this._tooltipMoveDp;
|
|
2066
|
+
e && (e.dispose(), this._tooltipMoveDp = void 0);
|
|
2067
|
+
const t = this._tooltipPointerDp;
|
|
2068
|
+
t && (t.dispose(), this._tooltipPointerDp = void 0), this.get("tooltipPosition") == "pointer" && (this.isHover() && (this._tooltipMoveDp = this.events.on("globalpointermove", (i) => {
|
|
2069
|
+
this.showTooltip(i.point);
|
|
2070
|
+
})), this._tooltipPointerDp = new k([this.events.on("pointerover", () => {
|
|
2071
|
+
this._tooltipMoveDp = this.events.on("globalpointermove", (i) => {
|
|
2072
|
+
this.showTooltip(i.point);
|
|
2073
|
+
});
|
|
2074
|
+
}), this.events.on("pointerout", () => {
|
|
2075
|
+
const i = this._tooltipMoveDp;
|
|
2076
|
+
i && (i.dispose(), this._tooltipMoveDp = void 0);
|
|
2077
|
+
})]));
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
_handleStates() {
|
|
2081
|
+
this._statesHandled || (this.isDirty("active") && (this.get("active") ? (this.states.applyAnimate("active"), this.set("ariaChecked", !0)) : (this.isHidden() || this.states.applyAnimate("default"), this.set("ariaChecked", !1)), this.markDirtyAccessibility()), this.isDirty("disabled") && (this.get("disabled") ? (this.states.applyAnimate("disabled"), this.set("ariaChecked", !1)) : (this.isHidden() || this.states.applyAnimate("default"), this.set("ariaChecked", !0)), this.markDirtyAccessibility()), this._statesHandled = !0);
|
|
2082
|
+
}
|
|
2083
|
+
_changed() {
|
|
2084
|
+
super._changed();
|
|
2085
|
+
const e = this._display, t = this.events;
|
|
2086
|
+
if (this.isDirty("draggable")) {
|
|
2087
|
+
const r = this.get("draggable");
|
|
2088
|
+
r ? (this.set("interactive", !0), this._dragDp = new k([t.on("pointerdown", (a) => {
|
|
2089
|
+
this.dragStart(a);
|
|
2090
|
+
}), t.on("globalpointermove", (a) => {
|
|
2091
|
+
this.dragMove(a);
|
|
2092
|
+
}), t.on("globalpointerup", (a) => {
|
|
2093
|
+
this.dragStop(a);
|
|
2094
|
+
})])) : this._dragDp && (this._dragDp.dispose(), this._dragDp = void 0), e.cancelTouch = !!r;
|
|
2095
|
+
}
|
|
2096
|
+
if (this.isDirty("tooltipText") || this.isDirty("tooltipHTML") || this.isDirty("showTooltipOn")) {
|
|
2097
|
+
const r = this.get("tooltipText"), a = this.get("tooltipHTML"), n = this.get("showTooltipOn", "hover");
|
|
2098
|
+
this._tooltipDp && (this._tooltipDp.dispose(), this._tooltipDp = void 0), (r || a) && (n == "click" ? (this._tooltipDp = new k([t.on("click", () => {
|
|
2099
|
+
this.setTimeout(() => this.showTooltip(), 10);
|
|
2100
|
+
}), Ue(document, "click", (o) => {
|
|
2101
|
+
this.hideTooltip();
|
|
2102
|
+
})]), this._disposers.push(this._tooltipDp)) : n == "always" || (this._tooltipDp = new k([t.on("pointerover", () => {
|
|
2103
|
+
this.showTooltip();
|
|
2104
|
+
}), t.on("pointerout", () => {
|
|
2105
|
+
this.hideTooltip();
|
|
2106
|
+
})]), this._disposers.push(this._tooltipDp)));
|
|
2107
|
+
}
|
|
2108
|
+
if (this.isDirty("toggleKey")) {
|
|
2109
|
+
let r = this.get("toggleKey");
|
|
2110
|
+
r && r != "none" ? this._toggleDp = t.on("click", () => {
|
|
2111
|
+
this._isDragging || this.set(r, !this.get(r));
|
|
2112
|
+
}) : this._toggleDp && (this._toggleDp.dispose(), this._toggleDp = void 0);
|
|
2113
|
+
}
|
|
2114
|
+
if (this.isDirty("opacity") && (e.alpha = Math.max(0, this.get("opacity", 1)), this.get("focusable") && this.markDirtyAccessibility()), this.isDirty("rotation") && (this.markDirtyBounds(), e.angle = this.get("rotation", 0)), this.isDirty("scale") && (this.markDirtyBounds(), e.scale = this.get("scale", 0)), (this.isDirty("centerX") || this.isDirty("centerY")) && (this.markDirtyBounds(), this.updatePivotPoint()), (this.isDirty("visible") || this.isPrivateDirty("visible") || this.isDirty("forceHidden")) && (this.get("visible") && this.getPrivate("visible") && !this.get("forceHidden") ? e.visible = !0 : (e.visible = !1, this.hideTooltip()), this.markDirtyBounds(), this.get("focusable") && this.markDirtyAccessibility()), this.isDirty("width") || this.isDirty("height")) {
|
|
2115
|
+
this.markDirtyBounds(), this._addPercentageSizeChildren();
|
|
2116
|
+
const r = this.parent;
|
|
2117
|
+
r && (this.isDirty("width") && this.get("width") instanceof f || this.isDirty("height") && this.get("height") instanceof f) && (r.markDirty(), r._prevWidth = 0), this._sizeDirty = !0;
|
|
2118
|
+
}
|
|
2119
|
+
if ((this.isDirty("maxWidth") || this.isDirty("maxHeight") || this.isPrivateDirty("width") || this.isPrivateDirty("height") || this.isDirty("minWidth") || this.isDirty("minHeight") || this.isPrivateDirty("maxWidth") || this.isPrivateDirty("maxHeight") || this.isPrivateDirty("minWidth") || this.isPrivateDirty("minHeight")) && (this.markDirtyBounds(), this._sizeDirty = !0), this._sizeDirty && this._updateSize(), this.isDirty("wheelable")) {
|
|
2120
|
+
const r = this.get("wheelable");
|
|
2121
|
+
r && this.set("interactive", !0), e.wheelable = !!r;
|
|
2122
|
+
}
|
|
2123
|
+
(this.isDirty("tabindexOrder") || this.isDirty("focusableGroup")) && (this.get("focusable") ? this._root._registerTabindexOrder(this) : this._root._unregisterTabindexOrder(this)), this.isDirty("filter") && (e.filter = this.get("filter"));
|
|
2124
|
+
let i = this.get("filter", "");
|
|
2125
|
+
if (this.isDirty("blur")) {
|
|
2126
|
+
const r = this.get("blur", 0);
|
|
2127
|
+
r != 0 && (i += " blur(" + r + "px)");
|
|
2128
|
+
}
|
|
2129
|
+
if (this.isDirty("saturate")) {
|
|
2130
|
+
const r = this.get("saturate", 1);
|
|
2131
|
+
r != 1 && (i += " saturate(" + r + ")");
|
|
2132
|
+
}
|
|
2133
|
+
if (this.isDirty("brightness")) {
|
|
2134
|
+
const r = this.get("brightness", 1);
|
|
2135
|
+
r != 1 && (i += " brightness(" + r + ")");
|
|
2136
|
+
}
|
|
2137
|
+
if (this.isDirty("contrast")) {
|
|
2138
|
+
const r = this.get("contrast", 1);
|
|
2139
|
+
r != 1 && (i += " contrast(" + r + ")");
|
|
2140
|
+
}
|
|
2141
|
+
if (this.isDirty("sepia")) {
|
|
2142
|
+
const r = this.get("sepia", 0);
|
|
2143
|
+
r != 0 && (i += " sepia(" + r + ")");
|
|
2144
|
+
}
|
|
2145
|
+
if (this.isDirty("hue")) {
|
|
2146
|
+
const r = this.get("hue", 0);
|
|
2147
|
+
r != 0 && (i += " hue-rotate(" + r + "deg)");
|
|
2148
|
+
}
|
|
2149
|
+
if (this.isDirty("invert")) {
|
|
2150
|
+
const r = this.get("invert", 0);
|
|
2151
|
+
r != 0 && (i += " invert(" + r + ")");
|
|
2152
|
+
}
|
|
2153
|
+
if (i && (e.filter = i), this.isDirty("cursorOverStyle") && (e.cursorOverStyle = this.get("cursorOverStyle")), this.isDirty("hoverOnFocus") && (this.get("hoverOnFocus") ? this._focusDp = new k([t.on("focus", () => {
|
|
2154
|
+
this.showTooltip();
|
|
2155
|
+
}), t.on("blur", () => {
|
|
2156
|
+
this.hideTooltip();
|
|
2157
|
+
})]) : this._focusDp && (this._focusDp.dispose(), this._focusDp = void 0)), this.isDirty("focusable") && (this.get("focusable") ? this._root._registerTabindexOrder(this) : this._root._unregisterTabindexOrder(this), this.markDirtyAccessibility()), this.isPrivateDirty("focusable") && this.markDirtyAccessibility(), (this.isDirty("role") || this.isDirty("ariaLive") || this.isDirty("ariaChecked") || this.isDirty("ariaHidden") || this.isDirty("ariaOrientation") || this.isDirty("ariaValueNow") || this.isDirty("ariaValueMin") || this.isDirty("ariaValueMax") || this.isDirty("ariaValueText") || this.isDirty("ariaLabel") || this.isDirty("ariaControls")) && this.markDirtyAccessibility(), this.isDirty("exportable") && (e.exportable = this.get("exportable")), this.isDirty("interactive")) {
|
|
2158
|
+
const r = this.events;
|
|
2159
|
+
this.get("interactive") ? this._hoverDp = new k([r.on("click", (a) => {
|
|
2160
|
+
Me(a.originalEvent) && (this.getPrivate("touchHovering") || this.setTimeout(() => {
|
|
2161
|
+
this._handleOver(), (this.get("tooltipText") || this.get("tooltipHTML")) && this.showTooltip(), this.setPrivateRaw("touchHovering", !0), this.events.dispatch("pointerover", { type: "pointerover", target: a.target, originalEvent: a.originalEvent, point: a.point, simulated: a.simulated });
|
|
2162
|
+
}, 10));
|
|
2163
|
+
}), r.on("globalpointerup", (a) => {
|
|
2164
|
+
Me(a.originalEvent) && this.getPrivate("touchHovering") && (this._handleOut(), (this.get("tooltipText") || this.get("tooltipHTML")) && this.hideTooltip(), this.setPrivateRaw("touchHovering", !1), this.events.dispatch("pointerout", { type: "pointerout", target: a.target, originalEvent: a.originalEvent, point: a.point, simulated: a.simulated })), this._isDown && this._handleUp(a);
|
|
2165
|
+
}), r.on("pointerover", () => {
|
|
2166
|
+
this._handleOver();
|
|
2167
|
+
}), r.on("pointerout", () => {
|
|
2168
|
+
this._handleOut();
|
|
2169
|
+
}), r.on("pointerdown", (a) => {
|
|
2170
|
+
this._handleDown(a);
|
|
2171
|
+
})]) : (this._display.interactive = !1, this._hoverDp && (this._hoverDp.dispose(), this._hoverDp = void 0));
|
|
2172
|
+
}
|
|
2173
|
+
this.isDirty("forceInactive") && (this._display.inactive = this.get("forceInactive", null)), this.get("showTooltipOn") == "always" && this._display.visible && this.showTooltip();
|
|
2174
|
+
}
|
|
2175
|
+
dragStart(e) {
|
|
2176
|
+
this._dragEvent = e, this.events.stopParentDispatch();
|
|
2177
|
+
}
|
|
2178
|
+
dragStop(e) {
|
|
2179
|
+
if (this._dragEvent = void 0, this._dragPoint = void 0, this.events.stopParentDispatch(), this._isDragging) {
|
|
2180
|
+
this._isDragging = !1;
|
|
2181
|
+
const t = "dragstop";
|
|
2182
|
+
this.events.isEnabled(t) && this.events.dispatch(t, { type: t, target: this, originalEvent: e.originalEvent, point: e.point, simulated: e.simulated });
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
_handleOver() {
|
|
2186
|
+
this.isHidden() || (this.get("active") && this.states.lookup("hoverActive") ? this.states.applyAnimate("hoverActive") : this.get("disabled") && this.states.lookup("hoverDisabled") ? this.states.applyAnimate("hoverDisabled") : this.states.applyAnimate("hover"), this.get("draggable") && this._isDown && this.states.lookup("down") && this.states.applyAnimate("down"));
|
|
2187
|
+
}
|
|
2188
|
+
_handleOut() {
|
|
2189
|
+
this.isHidden() || (this.get("active") && this.states.lookup("active") ? this.states.applyAnimate("active") : this.get("disabled") && this.states.lookup("disabled") ? this.states.applyAnimate("disabled") : (this.states.lookup("hover") || this.states.lookup("hoverActive")) && this.states.applyAnimate("default"), this.get("draggable") && this._isDown && this.states.lookup("down") && this.states.applyAnimate("down"));
|
|
2190
|
+
}
|
|
2191
|
+
_handleUp(e) {
|
|
2192
|
+
if (!this.isHidden()) {
|
|
2193
|
+
this.get("active") && this.states.lookup("active") ? this.states.applyAnimate("active") : this.get("disabled") && this.states.lookup("disabled") ? this.states.applyAnimate("disabled") : this.states.lookup("down") && (this.isHover() ? this.states.applyAnimate("hover") : this.states.applyAnimate("default")), this._downPoint = void 0;
|
|
2194
|
+
const t = ue(e.originalEvent);
|
|
2195
|
+
delete this._downPoints[t], T(this._downPoints).length == 0 && (this._isDown = !1);
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
_hasMoved(e) {
|
|
2199
|
+
const t = ue(e.originalEvent), i = this._downPoints[t];
|
|
2200
|
+
if (i) {
|
|
2201
|
+
const r = Math.abs(i.x - e.point.x), a = Math.abs(i.y - e.point.y);
|
|
2202
|
+
return r > 5 || a > 5;
|
|
2203
|
+
}
|
|
2204
|
+
return !1;
|
|
2205
|
+
}
|
|
2206
|
+
_hasDown() {
|
|
2207
|
+
return T(this._downPoints).length > 0;
|
|
2208
|
+
}
|
|
2209
|
+
_handleDown(e) {
|
|
2210
|
+
const t = this.parent;
|
|
2211
|
+
if (t && !this.get("draggable") && t._handleDown(e), this.get("interactive") && !this.isHidden()) {
|
|
2212
|
+
this.states.lookup("down") && this.states.applyAnimate("down"), this._downPoint = { x: e.point.x, y: e.point.y }, this._isDown = !0;
|
|
2213
|
+
const i = ue(e.originalEvent);
|
|
2214
|
+
this._downPoints[i] = { x: e.point.x, y: e.point.y };
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
dragMove(e) {
|
|
2218
|
+
let t = this._dragEvent;
|
|
2219
|
+
if (t) {
|
|
2220
|
+
if (t.simulated && !e.simulated)
|
|
2221
|
+
return !0;
|
|
2222
|
+
let i = 0, r = this.parent, a = 1;
|
|
2223
|
+
for (; r != null; )
|
|
2224
|
+
i += r.get("rotation", 0), r = r.parent, r && (a *= r.get("scale", 1));
|
|
2225
|
+
let n = (e.point.x - t.point.x) / a, o = (e.point.y - t.point.y) / a;
|
|
2226
|
+
const h = this.events;
|
|
2227
|
+
if (t.simulated && !this._isDragging) {
|
|
2228
|
+
this._isDragging = !0, this._dragEvent = e, this._dragPoint = { x: this.x(), y: this.y() };
|
|
2229
|
+
const l = "dragstart";
|
|
2230
|
+
h.isEnabled(l) && h.dispatch(l, { type: l, target: this, originalEvent: e.originalEvent, point: e.point, simulated: e.simulated });
|
|
2231
|
+
}
|
|
2232
|
+
if (this._isDragging) {
|
|
2233
|
+
let l = this._dragPoint;
|
|
2234
|
+
this.set("x", l.x + n * ye(i) + o * ve(i)), this.set("y", l.y + o * ye(i) - n * ve(i));
|
|
2235
|
+
const d = "dragged";
|
|
2236
|
+
h.isEnabled(d) && h.dispatch(d, { type: d, target: this, originalEvent: e.originalEvent, point: e.point, simulated: e.simulated });
|
|
2237
|
+
} else if (Math.hypot(n, o) > 5) {
|
|
2238
|
+
this._isDragging = !0, this._dragEvent = e, this._dragPoint = { x: this.x(), y: this.y() };
|
|
2239
|
+
const l = "dragstart";
|
|
2240
|
+
h.isEnabled(l) && h.dispatch(l, { type: l, target: this, originalEvent: e.originalEvent, point: e.point, simulated: e.simulated });
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
_updateSize() {
|
|
2245
|
+
}
|
|
2246
|
+
_getBounds() {
|
|
2247
|
+
this._localBounds = this._display.getLocalBounds();
|
|
2248
|
+
}
|
|
2249
|
+
depth() {
|
|
2250
|
+
let e = this.parent, t = 0;
|
|
2251
|
+
for (; ; ) {
|
|
2252
|
+
if (!e)
|
|
2253
|
+
return t;
|
|
2254
|
+
++t, e = e.parent;
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
markDirtySize() {
|
|
2258
|
+
this._sizeDirty = !0, this.markDirty();
|
|
2259
|
+
}
|
|
2260
|
+
markDirtyBounds() {
|
|
2261
|
+
const e = this._display;
|
|
2262
|
+
if (this.get("isMeasured")) {
|
|
2263
|
+
this._root._addDirtyBounds(this), e.isMeasured = !0, e.invalidateBounds();
|
|
2264
|
+
const t = this.parent;
|
|
2265
|
+
t && this.get("position") != "absolute" && (t.get("width") == null || t.get("height") == null || t.get("layout")) && t.markDirtyBounds(), this.get("focusable") && this.isFocus() && this.markDirtyAccessibility();
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
markDirtyAccessibility() {
|
|
2269
|
+
this._root._invalidateAccessibility(this);
|
|
2270
|
+
}
|
|
2271
|
+
markDirtyLayer() {
|
|
2272
|
+
this._display.markDirtyLayer(!0);
|
|
2273
|
+
}
|
|
2274
|
+
markDirty() {
|
|
2275
|
+
super.markDirty(), this.markDirtyLayer();
|
|
2276
|
+
}
|
|
2277
|
+
_updateBounds() {
|
|
2278
|
+
const e = this._adjustedLocalBounds;
|
|
2279
|
+
let t;
|
|
2280
|
+
if (this.get("visible") && this.getPrivate("visible") && !this.get("forceHidden") ? (this._getBounds(), this._fixMinBounds(this._localBounds), this.updatePivotPoint(), this._adjustedLocalBounds = this._display.getAdjustedBounds(this._localBounds), t = this._adjustedLocalBounds) : (t = { left: 0, right: 0, top: 0, bottom: 0 }, this._localBounds = t, this._adjustedLocalBounds = t), !e || e.left !== t.left || e.top !== t.top || e.right !== t.right || e.bottom !== t.bottom) {
|
|
2281
|
+
const i = "boundschanged";
|
|
2282
|
+
this.events.isEnabled(i) && this.events.dispatch(i, { type: i, target: this }), this.parent && (this.parent.markDirty(), this.parent.markDirtyBounds());
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
_fixMinBounds(e) {
|
|
2286
|
+
let t = this.get("minWidth", this.getPrivate("minWidth")), i = this.get("minHeight", this.getPrivate("minHeight"));
|
|
2287
|
+
g(t) && e.right - e.left < t && (e.right = e.left + t), g(i) && e.bottom - e.top < i && (e.bottom = e.top + i);
|
|
2288
|
+
let r = this.getPrivate("width"), a = this.getPrivate("height");
|
|
2289
|
+
g(r) && (r > 0 ? e.right = e.left + r : e.left = e.right + r), g(a) && (a > 0 ? e.bottom = e.top + a : e.top = e.bottom + a);
|
|
2290
|
+
}
|
|
2291
|
+
_removeParent(e) {
|
|
2292
|
+
e && (e.children.removeValue(this), O(e._percentageSizeChildren, this), O(e._percentagePositionChildren, this));
|
|
2293
|
+
}
|
|
2294
|
+
_clearDirty() {
|
|
2295
|
+
super._clearDirty(), this._sizeDirty = !1, this._statesHandled = !1;
|
|
2296
|
+
}
|
|
2297
|
+
hover() {
|
|
2298
|
+
this.showTooltip(), this._handleOver();
|
|
2299
|
+
}
|
|
2300
|
+
unhover() {
|
|
2301
|
+
this.hideTooltip(), this._handleOut();
|
|
2302
|
+
}
|
|
2303
|
+
showTooltip(e) {
|
|
2304
|
+
const t = this.getTooltip(), i = this.get("tooltipText"), r = this.get("tooltipHTML");
|
|
2305
|
+
if ((i || r) && t) {
|
|
2306
|
+
const a = this.get("tooltipPosition"), n = this.getPrivate("tooltipTarget", this);
|
|
2307
|
+
a != "fixed" && e || (this._display._setMatrix(), e = this.toGlobal(n._getTooltipPoint())), t.set("pointTo", e), t.set("tooltipTarget", n), t.get("x") || t.set("x", e.x), t.get("y") || t.set("y", e.y), i && t.label.set("text", i), r && t.label.set("html", r);
|
|
2308
|
+
const o = this.dataItem;
|
|
2309
|
+
if (o && t.label._setDataItem(o), this.get("showTooltipOn") == "always" && (e.x < 0 || e.x > this._root.width() || e.y < 0 || e.y > this._root.height()))
|
|
2310
|
+
return void this.hideTooltip();
|
|
2311
|
+
t.label.text.markDirtyText();
|
|
2312
|
+
const h = t.show();
|
|
2313
|
+
return this.setPrivateRaw("showingTooltip", !0), h;
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
hideTooltip() {
|
|
2317
|
+
const e = this.getTooltip();
|
|
2318
|
+
if (e && (e.get("tooltipTarget") == this.getPrivate("tooltipTarget", this) || this.get("tooltip") == e)) {
|
|
2319
|
+
let t = e.get("keepTargetHover") && e.get("stateAnimationDuration", 0) == 0 ? 400 : void 0;
|
|
2320
|
+
const i = e.hide(t);
|
|
2321
|
+
return this.setPrivateRaw("showingTooltip", !1), i;
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
_getTooltipPoint() {
|
|
2325
|
+
const e = this._localBounds;
|
|
2326
|
+
if (e) {
|
|
2327
|
+
let t = 0, i = 0;
|
|
2328
|
+
return this.get("isMeasured") ? (t = e.left + M(this.get("tooltipX", 0), e.right - e.left), i = e.top + M(this.get("tooltipY", 0), e.bottom - e.top)) : (t = M(this.get("tooltipX", 0), this.width()), i = M(this.get("tooltipY", 0), this.height())), { x: t, y: i };
|
|
2329
|
+
}
|
|
2330
|
+
return { x: 0, y: 0 };
|
|
2331
|
+
}
|
|
2332
|
+
getTooltip() {
|
|
2333
|
+
let e = this.get("tooltip");
|
|
2334
|
+
if (e)
|
|
2335
|
+
return e;
|
|
2336
|
+
{
|
|
2337
|
+
let t = this.parent;
|
|
2338
|
+
if (t)
|
|
2339
|
+
return t.getTooltip();
|
|
2340
|
+
}
|
|
2341
|
+
}
|
|
2342
|
+
_updatePosition() {
|
|
2343
|
+
const e = this.parent;
|
|
2344
|
+
let t = this.get("dx", 0), i = this.get("dy", 0), r = this.get("x"), a = this.getPrivate("x"), n = 0, o = 0;
|
|
2345
|
+
const h = this.get("position");
|
|
2346
|
+
r instanceof f && (r = e ? e.innerWidth() * r.value + e.get("paddingLeft", 0) : 0), g(r) ? n = r + t : a != null ? n = a : e && h == "relative" && (n = e.get("paddingLeft", 0) + t);
|
|
2347
|
+
let l = this.get("y"), d = this.getPrivate("y");
|
|
2348
|
+
l instanceof f && (l = e ? e.innerHeight() * l.value + e.get("paddingTop", 0) : 0), g(l) ? o = l + i : d != null ? o = d : e && h == "relative" && (o = e.get("paddingTop", 0) + i);
|
|
2349
|
+
const p = this._display;
|
|
2350
|
+
if (p.x != n || p.y != o) {
|
|
2351
|
+
p.invalidateBounds(), p.x = n, p.y = o;
|
|
2352
|
+
const u = "positionchanged";
|
|
2353
|
+
this.events.isEnabled(u) && this.events.dispatch(u, { type: u, target: this });
|
|
2354
|
+
}
|
|
2355
|
+
this.getPrivate("showingTooltip") && this.showTooltip();
|
|
2356
|
+
}
|
|
2357
|
+
x() {
|
|
2358
|
+
let e = this.get("x"), t = this.getPrivate("x");
|
|
2359
|
+
const i = this.parent;
|
|
2360
|
+
return i ? e instanceof f ? M(e, i.innerWidth()) + i.get("paddingLeft", 0) : g(e) ? e : t ?? i.get("paddingLeft", this._display.x) : this._display.x;
|
|
2361
|
+
}
|
|
2362
|
+
y() {
|
|
2363
|
+
let e = this.getPrivate("y");
|
|
2364
|
+
if (e != null)
|
|
2365
|
+
return e;
|
|
2366
|
+
let t = this.get("y");
|
|
2367
|
+
const i = this.parent;
|
|
2368
|
+
return i ? t instanceof f ? M(t, i.innerHeight()) + i.get("paddingTop", 0) : g(t) ? t : e ?? i.get("paddingTop", this._display.y) : this._display.y;
|
|
2369
|
+
}
|
|
2370
|
+
_dispose() {
|
|
2371
|
+
super._dispose(), this._display.dispose(), this._removeTemplateField(), this._removeParent(this.parent), this._root._removeFocusElement(this);
|
|
2372
|
+
const e = this.get("tooltip");
|
|
2373
|
+
e && e.dispose(), this.markDirty();
|
|
2374
|
+
}
|
|
2375
|
+
adjustedLocalBounds() {
|
|
2376
|
+
return this._fixMinBounds(this._adjustedLocalBounds), this._adjustedLocalBounds;
|
|
2377
|
+
}
|
|
2378
|
+
localBounds() {
|
|
2379
|
+
return this._localBounds;
|
|
2380
|
+
}
|
|
2381
|
+
bounds() {
|
|
2382
|
+
const e = this._adjustedLocalBounds, t = this.x(), i = this.y();
|
|
2383
|
+
return { left: e.left + t, right: e.right + t, top: e.top + i, bottom: e.bottom + i };
|
|
2384
|
+
}
|
|
2385
|
+
globalBounds() {
|
|
2386
|
+
const e = this.localBounds(), t = this.toGlobal({ x: e.left, y: e.top }), i = this.toGlobal({ x: e.right, y: e.top }), r = this.toGlobal({ x: e.right, y: e.bottom }), a = this.toGlobal({ x: e.left, y: e.bottom });
|
|
2387
|
+
return { left: Math.min(t.x, i.x, r.x, a.x), top: Math.min(t.y, i.y, r.y, a.y), right: Math.max(t.x, i.x, r.x, a.x), bottom: Math.max(t.y, i.y, r.y, a.y) };
|
|
2388
|
+
}
|
|
2389
|
+
_onShow(e) {
|
|
2390
|
+
}
|
|
2391
|
+
_onHide(e) {
|
|
2392
|
+
}
|
|
2393
|
+
appear(e, t) {
|
|
2394
|
+
return ee(this, void 0, void 0, function* () {
|
|
2395
|
+
return yield this.hide(0), t ? new Promise((i, r) => {
|
|
2396
|
+
this.setTimeout(() => {
|
|
2397
|
+
i(this.show(e));
|
|
2398
|
+
}, t);
|
|
2399
|
+
}) : this.show(e);
|
|
2400
|
+
});
|
|
2401
|
+
}
|
|
2402
|
+
show(e) {
|
|
2403
|
+
return ee(this, void 0, void 0, function* () {
|
|
2404
|
+
if (!this._isShowing) {
|
|
2405
|
+
this._isHidden = !1, this._isShowing = !0, this._isHiding = !1, this.states.lookup("default").get("visible") && this.set("visible", !0), this._onShow(e);
|
|
2406
|
+
const t = this.states.applyAnimate("default", e);
|
|
2407
|
+
yield He(t), this._isShowing = !1;
|
|
2408
|
+
}
|
|
2409
|
+
});
|
|
2410
|
+
}
|
|
2411
|
+
hide(e) {
|
|
2412
|
+
return ee(this, void 0, void 0, function* () {
|
|
2413
|
+
if (!this._isHiding && !this._isHidden) {
|
|
2414
|
+
this._isHiding = !0, this._isShowing = !1;
|
|
2415
|
+
let t = this.states.lookup("hidden");
|
|
2416
|
+
t || (t = this.states.create("hidden", { opacity: 0, visible: !1 })), this._isHidden = !0, this._onHide(e);
|
|
2417
|
+
const i = this.states.applyAnimate("hidden", e);
|
|
2418
|
+
yield He(i), this._isHiding = !1;
|
|
2419
|
+
}
|
|
2420
|
+
});
|
|
2421
|
+
}
|
|
2422
|
+
isHidden() {
|
|
2423
|
+
return this._isHidden;
|
|
2424
|
+
}
|
|
2425
|
+
isShowing() {
|
|
2426
|
+
return this._isShowing;
|
|
2427
|
+
}
|
|
2428
|
+
isHiding() {
|
|
2429
|
+
return this._isHiding;
|
|
2430
|
+
}
|
|
2431
|
+
isHover() {
|
|
2432
|
+
return this._display.hovering();
|
|
2433
|
+
}
|
|
2434
|
+
isFocus() {
|
|
2435
|
+
return this._root.focused(this);
|
|
2436
|
+
}
|
|
2437
|
+
isDragging() {
|
|
2438
|
+
return this._isDragging;
|
|
2439
|
+
}
|
|
2440
|
+
isVisible() {
|
|
2441
|
+
return !(!this.get("visible") || !this.getPrivate("visible") || this.get("forceHidden"));
|
|
2442
|
+
}
|
|
2443
|
+
isVisibleDeep() {
|
|
2444
|
+
return this._parent ? this._parent.isVisibleDeep() && this.isVisible() : this.isVisible();
|
|
2445
|
+
}
|
|
2446
|
+
compositeOpacity() {
|
|
2447
|
+
const e = this.get("opacity", 1);
|
|
2448
|
+
return this._parent ? this._parent.compositeOpacity() * e : e;
|
|
2449
|
+
}
|
|
2450
|
+
width() {
|
|
2451
|
+
let e = this.get("width"), t = this.get("maxWidth", this.getPrivate("maxWidth")), i = this.get("minWidth", this.getPrivate("minWidth")), r = this.getPrivate("width"), a = 0;
|
|
2452
|
+
if (g(r))
|
|
2453
|
+
a = r;
|
|
2454
|
+
else if (e == null)
|
|
2455
|
+
this._adjustedLocalBounds && (a = this._adjustedLocalBounds.right - this._adjustedLocalBounds.left);
|
|
2456
|
+
else if (e instanceof f) {
|
|
2457
|
+
const n = this.parent;
|
|
2458
|
+
a = n ? n.innerWidth() * e.value : this._root.width() * e.value;
|
|
2459
|
+
} else
|
|
2460
|
+
g(e) && (a = e);
|
|
2461
|
+
return g(i) && (a = Math.max(i, a)), g(t) && (a = Math.min(t, a)), a;
|
|
2462
|
+
}
|
|
2463
|
+
maxWidth() {
|
|
2464
|
+
let e = this.get("maxWidth", this.getPrivate("maxWidth"));
|
|
2465
|
+
if (g(e))
|
|
2466
|
+
return e;
|
|
2467
|
+
{
|
|
2468
|
+
let i = this.get("width");
|
|
2469
|
+
if (g(i))
|
|
2470
|
+
return i;
|
|
2471
|
+
}
|
|
2472
|
+
const t = this.parent;
|
|
2473
|
+
return t ? t.innerWidth() : this._root.width();
|
|
2474
|
+
}
|
|
2475
|
+
maxHeight() {
|
|
2476
|
+
let e = this.get("maxHeight", this.getPrivate("maxHeight"));
|
|
2477
|
+
if (g(e))
|
|
2478
|
+
return e;
|
|
2479
|
+
{
|
|
2480
|
+
let i = this.get("height");
|
|
2481
|
+
if (g(i))
|
|
2482
|
+
return i;
|
|
2483
|
+
}
|
|
2484
|
+
const t = this.parent;
|
|
2485
|
+
return t ? t.innerHeight() : this._root.height();
|
|
2486
|
+
}
|
|
2487
|
+
height() {
|
|
2488
|
+
let e = this.get("height"), t = this.get("maxHeight", this.getPrivate("maxHeight")), i = this.get("minHeight", this.getPrivate("minHeight")), r = this.getPrivate("height"), a = 0;
|
|
2489
|
+
if (g(r))
|
|
2490
|
+
a = r;
|
|
2491
|
+
else if (e == null)
|
|
2492
|
+
this._adjustedLocalBounds && (a = this._adjustedLocalBounds.bottom - this._adjustedLocalBounds.top);
|
|
2493
|
+
else if (e instanceof f) {
|
|
2494
|
+
const n = this.parent;
|
|
2495
|
+
a = n ? n.innerHeight() * e.value : this._root.height() * e.value;
|
|
2496
|
+
} else
|
|
2497
|
+
g(e) && (a = e);
|
|
2498
|
+
return g(i) && (a = Math.max(i, a)), g(t) && (a = Math.min(t, a)), a;
|
|
2499
|
+
}
|
|
2500
|
+
_findStaticTemplate(e) {
|
|
2501
|
+
return this._templateField && e(this._templateField) ? this._templateField : super._findStaticTemplate(e);
|
|
2502
|
+
}
|
|
2503
|
+
_walkParents(e) {
|
|
2504
|
+
this._parent && this._walkParent(e);
|
|
2505
|
+
}
|
|
2506
|
+
_walkParent(e) {
|
|
2507
|
+
this._parent && this._parent._walkParent(e), e(this);
|
|
2508
|
+
}
|
|
2509
|
+
get parent() {
|
|
2510
|
+
return this._parent;
|
|
2511
|
+
}
|
|
2512
|
+
_setParent(e, t = !1) {
|
|
2513
|
+
const i = this._parent;
|
|
2514
|
+
e !== i && (this.markDirtyBounds(), e.markDirty(), this._parent = e, t && (this._removeParent(i), e && (this._addPercentageSizeChildren(), this._addPercentagePositionChildren())), this.markDirtyPosition(), this._applyThemes());
|
|
2515
|
+
}
|
|
2516
|
+
getNumberFormatter() {
|
|
2517
|
+
return this.get("numberFormatter", this._root.numberFormatter);
|
|
2518
|
+
}
|
|
2519
|
+
getDateFormatter() {
|
|
2520
|
+
return this.get("dateFormatter", this._root.dateFormatter);
|
|
2521
|
+
}
|
|
2522
|
+
getDurationFormatter() {
|
|
2523
|
+
return this.get("durationFormatter", this._root.durationFormatter);
|
|
2524
|
+
}
|
|
2525
|
+
toGlobal(e) {
|
|
2526
|
+
return this._display.toGlobal(e);
|
|
2527
|
+
}
|
|
2528
|
+
toLocal(e) {
|
|
2529
|
+
return this._display.toLocal(e);
|
|
2530
|
+
}
|
|
2531
|
+
_getDownPoint() {
|
|
2532
|
+
const e = this._getDownPointId();
|
|
2533
|
+
if (e)
|
|
2534
|
+
return this._downPoints[e];
|
|
2535
|
+
}
|
|
2536
|
+
_getDownPointId() {
|
|
2537
|
+
if (this._downPoints)
|
|
2538
|
+
return ot(this._downPoints, (e, t) => e > t ? 1 : e < t ? -1 : 0)[0];
|
|
2539
|
+
}
|
|
2540
|
+
toFront() {
|
|
2541
|
+
const e = this.parent;
|
|
2542
|
+
e && e.children.moveValue(this, e.children.length - 1);
|
|
2543
|
+
}
|
|
2544
|
+
toBack() {
|
|
2545
|
+
const e = this.parent;
|
|
2546
|
+
e && e.children.moveValue(this, 0);
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
Object.defineProperty(x, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Sprite" }), Object.defineProperty(x, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: A.classNames.concat([x.className]) });
|
|
2550
|
+
class K extends A {
|
|
2551
|
+
constructor() {
|
|
2552
|
+
super(...arguments), Object.defineProperty(this, "_display", { enumerable: !0, configurable: !0, writable: !0, value: this._root._renderer.makeGraphics() }), Object.defineProperty(this, "_backgroundDisplay", { enumerable: !0, configurable: !0, writable: !0, value: this._root._renderer.makeGraphics() }), Object.defineProperty(this, "_clear", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_pattern", { enumerable: !0, configurable: !0, writable: !0, value: void 0 });
|
|
2553
|
+
}
|
|
2554
|
+
_afterNew() {
|
|
2555
|
+
super._afterNewApplyThemes();
|
|
2556
|
+
}
|
|
2557
|
+
get pattern() {
|
|
2558
|
+
return this._pattern;
|
|
2559
|
+
}
|
|
2560
|
+
_draw() {
|
|
2561
|
+
}
|
|
2562
|
+
_beforeChanged() {
|
|
2563
|
+
super._beforeChanged(), (this.isDirty("repetition") || this.isDirty("width") || this.isDirty("height") || this.isDirty("rotation") || this.isDirty("strokeWidth") || this.isDirty("strokeDasharray") || this.isDirty("strokeDashoffset") || this.isDirty("colorOpacity") || this.isDirty("fillOpacity")) && (this._clear = !0), this._checkDirtyFill();
|
|
2564
|
+
}
|
|
2565
|
+
_checkDirtyFill() {
|
|
2566
|
+
(this.isDirty("color") || this.isDirty("fill")) && (this._clear = !0);
|
|
2567
|
+
}
|
|
2568
|
+
_changed() {
|
|
2569
|
+
if (super._changed(), this._clear) {
|
|
2570
|
+
const e = this.get("repetition", ""), t = this.get("width", 100), i = this.get("height", 100), r = this.get("fill"), a = this.get("fillOpacity", 1), n = this._backgroundDisplay, o = this._display;
|
|
2571
|
+
o.clear(), n.clear(), r && a > 0 && (n.beginFill(r, a), n.drawRect(0, 0, t, i), n.endFill()), o.angle = this.get("rotation", 0), this._draw(), this._pattern = this._root._renderer.createPattern(o, n, e, t, i);
|
|
2572
|
+
}
|
|
2573
|
+
this._clear = !1;
|
|
2574
|
+
}
|
|
2575
|
+
}
|
|
2576
|
+
Object.defineProperty(K, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Pattern" }), Object.defineProperty(K, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: A.classNames.concat([K.className]) });
|
|
2577
|
+
class G extends K {
|
|
2578
|
+
constructor() {
|
|
2579
|
+
super(...arguments), Object.defineProperty(this, "_image", { enumerable: !0, configurable: !0, writable: !0, value: void 0 });
|
|
2580
|
+
}
|
|
2581
|
+
_beforeChanged() {
|
|
2582
|
+
super._beforeChanged(), this._clear = !0, this.isDirty("src") && this._load();
|
|
2583
|
+
const e = this.get("canvas");
|
|
2584
|
+
e && (this.set("width", e.width), this.set("height", e.height));
|
|
2585
|
+
}
|
|
2586
|
+
_draw() {
|
|
2587
|
+
super._draw();
|
|
2588
|
+
const e = this._image;
|
|
2589
|
+
if (e) {
|
|
2590
|
+
const i = this.get("width", 100), r = this.get("height", 100), a = this.get("fit", "image");
|
|
2591
|
+
let n = 0, o = 0;
|
|
2592
|
+
a == "pattern" ? (n = i, o = r) : (n = e.width, o = e.height, a == "image" && (this.set("width", n), this.set("height", o)));
|
|
2593
|
+
let h = 0, l = 0;
|
|
2594
|
+
this.get("centered", !0) && (h = i / 2 - n / 2, l = r / 2 - o / 2), this._display.image(e, n, o, h, l);
|
|
2595
|
+
}
|
|
2596
|
+
const t = this.get("canvas");
|
|
2597
|
+
t && this._display.image(t, t.width, t.height, 0, 0);
|
|
2598
|
+
}
|
|
2599
|
+
_load() {
|
|
2600
|
+
const e = this.get("src");
|
|
2601
|
+
if (e) {
|
|
2602
|
+
const t = new Image();
|
|
2603
|
+
t.src = e, t.decode().then(() => {
|
|
2604
|
+
this._image = t, this._draw(), this.events.isEnabled("loaded") && this.events.dispatch("loaded", { type: "loaded", target: this });
|
|
2605
|
+
}).catch((i) => {
|
|
2606
|
+
});
|
|
2607
|
+
}
|
|
2608
|
+
}
|
|
2609
|
+
}
|
|
2610
|
+
var we;
|
|
2611
|
+
Object.defineProperty(G, "className", { enumerable: !0, configurable: !0, writable: !0, value: "PicturePattern" }), Object.defineProperty(G, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: K.classNames.concat([G.className]) }), function(s) {
|
|
2612
|
+
s.ADD = "lighter", s.COLOR = "color", s.COLOR_BURN = "color-burn", s.COLOR_DODGE = "color-dodge", s.DARKEN = "darken", s.DIFFERENCE = "difference", s.DST_OVER = "destination-over", s.EXCLUSION = "exclusion", s.HARD_LIGHT = "hard-light", s.HUE = "hue", s.LIGHTEN = "lighten", s.LUMINOSITY = "luminosity", s.MULTIPLY = "multiply", s.NORMAL = "source-over", s.OVERLAY = "overlay", s.SATURATION = "saturation", s.SCREEN = "screen", s.SOFT_LIGHT = "soft-light", s.SRC_ATOP = "source-atop", s.XOR = "xor";
|
|
2613
|
+
}(we || (we = {}));
|
|
2614
|
+
const Mi = ["fill", "fillOpacity", "stroke", "strokeWidth", "strokeOpacity", "fillPattern", "strokePattern", "fillGradient", "strokeGradient", "strokeDasharray", "strokeDashoffset", "shadowBlur", "shadowColor", "shadowOpacity", "shadowOffsetX", "shadowOffsetY", "blur", "sepia", "invert", "brightness", "hue", "contrast", "saturate"];
|
|
2615
|
+
class z extends x {
|
|
2616
|
+
constructor() {
|
|
2617
|
+
super(...arguments), Object.defineProperty(this, "_display", { enumerable: !0, configurable: !0, writable: !0, value: this._root._renderer.makeGraphics() }), Object.defineProperty(this, "_clear", { enumerable: !0, configurable: !0, writable: !0, value: !1 });
|
|
2618
|
+
}
|
|
2619
|
+
_beforeChanged() {
|
|
2620
|
+
if (super._beforeChanged(), (this.isDirty("draw") || this.isDirty("svgPath")) && this.markDirtyBounds(), (this.isDirty("fill") || this.isDirty("stroke") || this.isDirty("visible") || this.isDirty("forceHidden") || this.isDirty("scale") || this.isDirty("fillGradient") || this.isDirty("strokeGradient") || this.isDirty("fillPattern") || this.isDirty("strokePattern") || this.isDirty("fillOpacity") || this.isDirty("strokeOpacity") || this.isDirty("strokeWidth") || this.isDirty("draw") || this.isDirty("blendMode") || this.isDirty("strokeDasharray") || this.isDirty("strokeDashoffset") || this.isDirty("svgPath") || this.isDirty("lineJoin") || this.isDirty("shadowColor") || this.isDirty("shadowBlur") || this.isDirty("shadowOffsetX") || this.isDirty("shadowOffsetY")) && (this._clear = !0), this._display.crisp = this.get("crisp", !1), this.isDirty("fillGradient")) {
|
|
2621
|
+
const e = this.get("fillGradient");
|
|
2622
|
+
if (e) {
|
|
2623
|
+
this._display.isMeasured = !0;
|
|
2624
|
+
const t = e.get("target");
|
|
2625
|
+
t && (this._disposers.push(t.events.on("boundschanged", () => {
|
|
2626
|
+
this._markDirtyKey("fill");
|
|
2627
|
+
})), this._disposers.push(t.events.on("positionchanged", () => {
|
|
2628
|
+
this._markDirtyKey("fill");
|
|
2629
|
+
})));
|
|
2630
|
+
}
|
|
2631
|
+
}
|
|
2632
|
+
if (this.isDirty("strokeGradient")) {
|
|
2633
|
+
const e = this.get("strokeGradient");
|
|
2634
|
+
if (e) {
|
|
2635
|
+
this._display.isMeasured = !0;
|
|
2636
|
+
const t = e.get("target");
|
|
2637
|
+
t && (this._disposers.push(t.events.on("boundschanged", () => {
|
|
2638
|
+
this._markDirtyKey("stroke");
|
|
2639
|
+
})), this._disposers.push(t.events.on("positionchanged", () => {
|
|
2640
|
+
this._markDirtyKey("stroke");
|
|
2641
|
+
})));
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
_changed() {
|
|
2646
|
+
if (super._changed(), this._clear) {
|
|
2647
|
+
this.markDirtyBounds(), this.markDirtyLayer(), this._display.clear();
|
|
2648
|
+
let e = this.get("strokeDasharray");
|
|
2649
|
+
g(e) && (e = e < 0.5 ? [0] : [e]), this._display.setLineDash(e);
|
|
2650
|
+
const t = this.get("strokeDashoffset");
|
|
2651
|
+
t && this._display.setLineDashOffset(t);
|
|
2652
|
+
const i = this.get("blendMode", we.NORMAL);
|
|
2653
|
+
this._display.blendMode = i;
|
|
2654
|
+
const r = this.get("draw");
|
|
2655
|
+
r && r(this._display, this);
|
|
2656
|
+
const a = this.get("svgPath");
|
|
2657
|
+
a != null && this._display.svgPath(a);
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
_afterChanged() {
|
|
2661
|
+
if (super._afterChanged(), this._clear) {
|
|
2662
|
+
const e = this.get("fill"), t = this.get("fillGradient"), i = this.get("fillPattern"), r = this.get("fillOpacity"), a = this.get("stroke"), n = this.get("strokeGradient"), o = this.get("strokePattern"), h = this.get("shadowColor"), l = this.get("shadowBlur"), d = this.get("shadowOffsetX"), p = this.get("shadowOffsetY"), u = this.get("shadowOpacity");
|
|
2663
|
+
if (h && (l || d || p) && this._display.shadow(h, l, d, p, u), e && !t && (this._display.beginFill(e, r), this._display.endFill()), t) {
|
|
2664
|
+
if (e) {
|
|
2665
|
+
const m = t.get("stops", []);
|
|
2666
|
+
m.length && _(m, (b) => {
|
|
2667
|
+
b.color && !b.colorInherited || !e || (b.color = e, b.colorInherited = !0), (b.opacity == null || b.opacityInherited) && (b.opacity = r, b.opacityInherited = !0);
|
|
2668
|
+
});
|
|
2669
|
+
}
|
|
2670
|
+
const c = t.getFill(this);
|
|
2671
|
+
c && (this._display.beginFill(c, r), this._display.endFill());
|
|
2672
|
+
}
|
|
2673
|
+
if (i) {
|
|
2674
|
+
const c = i.pattern;
|
|
2675
|
+
c && (this._display.beginFill(c, r), this._display.endFill(), i instanceof G && i.events.once("loaded", () => {
|
|
2676
|
+
this._clear = !0, this.markDirty();
|
|
2677
|
+
}));
|
|
2678
|
+
}
|
|
2679
|
+
if (a || n || o) {
|
|
2680
|
+
const c = this.get("strokeOpacity");
|
|
2681
|
+
let m = this.get("strokeWidth", 1);
|
|
2682
|
+
this.get("nonScalingStroke") && (m /= this.get("scale", 1)), this.get("crisp") && (m /= this._root._renderer.resolution);
|
|
2683
|
+
const b = this.get("lineJoin");
|
|
2684
|
+
if (a && !n && (this._display.lineStyle(m, a, c, b), this._display.endStroke()), n) {
|
|
2685
|
+
const S = n.get("stops", []);
|
|
2686
|
+
S.length && _(S, (w) => {
|
|
2687
|
+
w.color && !w.colorInherited || !a || (w.color = a, w.colorInherited = !0), (w.opacity == null || w.opacityInherited) && (w.opacity = c, w.opacityInherited = !0);
|
|
2688
|
+
});
|
|
2689
|
+
const H = n.getFill(this);
|
|
2690
|
+
H && (this._display.lineStyle(m, H, c, b), this._display.endStroke());
|
|
2691
|
+
}
|
|
2692
|
+
if (o) {
|
|
2693
|
+
let S = o.pattern;
|
|
2694
|
+
S && (this._display.lineStyle(m, S, c, b), this._display.endStroke(), o instanceof G && o.events.once("loaded", () => {
|
|
2695
|
+
this._clear = !0, this.markDirty();
|
|
2696
|
+
}));
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
this.getPrivate("showingTooltip") && this.showTooltip();
|
|
2700
|
+
}
|
|
2701
|
+
this._clear = !1;
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
Object.defineProperty(z, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Graphics" }), Object.defineProperty(z, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: x.classNames.concat([z.className]) });
|
|
2705
|
+
class Y extends z {
|
|
2706
|
+
_afterNew() {
|
|
2707
|
+
super._afterNew(), this._display.isMeasured = !0, this.setPrivateRaw("trustBounds", !0);
|
|
2708
|
+
}
|
|
2709
|
+
_beforeChanged() {
|
|
2710
|
+
super._beforeChanged(), (this.isDirty("width") || this.isDirty("height") || this.isPrivateDirty("width") || this.isPrivateDirty("height")) && (this._clear = !0);
|
|
2711
|
+
}
|
|
2712
|
+
_changed() {
|
|
2713
|
+
super._changed(), this._clear && !this.get("draw") && this._draw();
|
|
2714
|
+
}
|
|
2715
|
+
_draw() {
|
|
2716
|
+
this._display.drawRect(0, 0, this.width(), this.height());
|
|
2717
|
+
}
|
|
2718
|
+
_updateSize() {
|
|
2719
|
+
this.markDirty(), this._clear = !0;
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2722
|
+
function j(s, e) {
|
|
2723
|
+
s.get("reverseChildren", !1) ? s.children.eachReverse(e) : s.children.each(e);
|
|
2724
|
+
}
|
|
2725
|
+
Object.defineProperty(Y, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Rectangle" }), Object.defineProperty(Y, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: z.classNames.concat([Y.className]) });
|
|
2726
|
+
class E extends A {
|
|
2727
|
+
}
|
|
2728
|
+
Object.defineProperty(E, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Layout" }), Object.defineProperty(E, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: A.classNames.concat([E.className]) });
|
|
2729
|
+
class X extends E {
|
|
2730
|
+
updateContainer(e) {
|
|
2731
|
+
let t = e.get("paddingLeft", 0), i = e.innerWidth(), r = 0;
|
|
2732
|
+
j(e, (n) => {
|
|
2733
|
+
if (n.isVisible() && n.get("position") == "relative") {
|
|
2734
|
+
let o = n.get("width");
|
|
2735
|
+
if (o instanceof f) {
|
|
2736
|
+
r += o.value;
|
|
2737
|
+
let h = i * o.value, l = n.get("minWidth", n.getPrivate("minWidth", -1 / 0));
|
|
2738
|
+
l > h && (i -= l, r -= o.value);
|
|
2739
|
+
let d = n.get("maxWidth", n.getPrivate("maxWidth", 1 / 0));
|
|
2740
|
+
h > d && (i -= d, r -= o.value);
|
|
2741
|
+
} else
|
|
2742
|
+
g(o) || (o = n.width()), i -= o + n.get("marginLeft", 0) + n.get("marginRight", 0);
|
|
2743
|
+
}
|
|
2744
|
+
}), (i <= 0 || i == 1 / 0) && (i = 0.1), j(e, (n) => {
|
|
2745
|
+
if (n.isVisible() && n.get("position") == "relative") {
|
|
2746
|
+
let o = n.get("width");
|
|
2747
|
+
if (o instanceof f) {
|
|
2748
|
+
let h = i * o.value / r - n.get("marginLeft", 0) - n.get("marginRight", 0), l = n.get("minWidth", n.getPrivate("minWidth", -1 / 0)), d = n.get("maxWidth", n.getPrivate("maxWidth", 1 / 0));
|
|
2749
|
+
h = Math.min(Math.max(l, h), d), n.setPrivate("width", h);
|
|
2750
|
+
} else
|
|
2751
|
+
n._prevSettings.width instanceof f && n.setPrivate("width", void 0);
|
|
2752
|
+
}
|
|
2753
|
+
});
|
|
2754
|
+
let a = t;
|
|
2755
|
+
j(e, (n) => {
|
|
2756
|
+
if (n.get("position") == "relative")
|
|
2757
|
+
if (n.isVisible()) {
|
|
2758
|
+
let o = n.adjustedLocalBounds(), h = n.get("marginLeft", 0), l = n.get("marginRight", 0), d = n.get("maxWidth"), p = o.left, u = o.right;
|
|
2759
|
+
d && u - p > d && (u = p + d);
|
|
2760
|
+
let c = a + h - p;
|
|
2761
|
+
n.setPrivate("x", c), a = c + u + l;
|
|
2762
|
+
} else
|
|
2763
|
+
n.setPrivate("x", void 0);
|
|
2764
|
+
});
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
Object.defineProperty(X, "className", { enumerable: !0, configurable: !0, writable: !0, value: "HorizontalLayout" }), Object.defineProperty(X, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: E.classNames.concat([X.className]) });
|
|
2768
|
+
class $ extends E {
|
|
2769
|
+
updateContainer(e) {
|
|
2770
|
+
let t = e.get("paddingTop", 0), i = e.innerHeight(), r = 0;
|
|
2771
|
+
j(e, (n) => {
|
|
2772
|
+
if (n.isVisible() && n.get("position") == "relative") {
|
|
2773
|
+
let o = n.get("height");
|
|
2774
|
+
if (o instanceof f) {
|
|
2775
|
+
r += o.value;
|
|
2776
|
+
let h = i * o.value, l = n.get("minHeight", n.getPrivate("minHeight", -1 / 0));
|
|
2777
|
+
l > h && (i -= l, r -= o.value);
|
|
2778
|
+
let d = n.get("maxHeight", n.getPrivate("maxHeight", 1 / 0));
|
|
2779
|
+
h > d && (i -= d, r -= o.value);
|
|
2780
|
+
} else
|
|
2781
|
+
g(o) || (o = n.height()), i -= o + n.get("marginTop", 0) + n.get("marginBottom", 0);
|
|
2782
|
+
}
|
|
2783
|
+
}), (i <= 0 || i == 1 / 0) && (i = 0.1), j(e, (n) => {
|
|
2784
|
+
if (n.isVisible() && n.get("position") == "relative") {
|
|
2785
|
+
let o = n.get("height");
|
|
2786
|
+
if (o instanceof f) {
|
|
2787
|
+
let h = i * o.value / r - n.get("marginTop", 0) - n.get("marginBottom", 0), l = n.get("minHeight", n.getPrivate("minHeight", -1 / 0)), d = n.get("maxHeight", n.getPrivate("maxHeight", 1 / 0));
|
|
2788
|
+
h = Math.min(Math.max(l, h), d), n.setPrivate("height", h);
|
|
2789
|
+
} else
|
|
2790
|
+
n._prevSettings.height instanceof f && n.setPrivate("height", void 0);
|
|
2791
|
+
}
|
|
2792
|
+
});
|
|
2793
|
+
let a = t;
|
|
2794
|
+
j(e, (n) => {
|
|
2795
|
+
if (n.get("position") == "relative")
|
|
2796
|
+
if (n.isVisible()) {
|
|
2797
|
+
let o = n.adjustedLocalBounds(), h = n.get("marginTop", 0), l = o.top, d = o.bottom, p = n.get("maxHeight");
|
|
2798
|
+
p && d - l > p && (d = l + p);
|
|
2799
|
+
let u = n.get("marginBottom", 0), c = a + h - l;
|
|
2800
|
+
n.setPrivate("y", c), a = c + d + u;
|
|
2801
|
+
} else
|
|
2802
|
+
n.setPrivate("y", void 0);
|
|
2803
|
+
});
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
Object.defineProperty($, "className", { enumerable: !0, configurable: !0, writable: !0, value: "VerticalLayout" }), Object.defineProperty($, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: E.classNames.concat([$.className]) });
|
|
2807
|
+
class Z extends E {
|
|
2808
|
+
_afterNew() {
|
|
2809
|
+
this._setRawDefault("maxColumns", Number.MAX_VALUE), super._afterNew();
|
|
2810
|
+
}
|
|
2811
|
+
updateContainer(e) {
|
|
2812
|
+
let t = e.get("paddingLeft", 0), i = e.get("paddingRight", 0), r = e.get("paddingTop", 0), a = e.maxWidth() - t - i, n = a, o = 1;
|
|
2813
|
+
j(e, (m) => {
|
|
2814
|
+
if (m.get("visible") && m.getPrivate("visible") && !m.get("forceHidden") && m.get("position") != "absolute") {
|
|
2815
|
+
let b = m.width();
|
|
2816
|
+
b < n && (n = b), b > o && (o = b);
|
|
2817
|
+
}
|
|
2818
|
+
}), n = Ie(n, 1, a), o = Ie(o, 1, a);
|
|
2819
|
+
let h = 1;
|
|
2820
|
+
h = this.get("fixedWidthGrid") ? a / o : a / n, h = Math.max(1, Math.floor(h)), h = Math.min(this.get("maxColumns", Number.MAX_VALUE), h);
|
|
2821
|
+
let l = this.getColumnWidths(e, h, o, a), d = r, p = 0, u = 0;
|
|
2822
|
+
h = l.length;
|
|
2823
|
+
let c = t;
|
|
2824
|
+
j(e, (m) => {
|
|
2825
|
+
if (m.get("position") == "relative" && m.isVisible()) {
|
|
2826
|
+
const b = m.get("marginTop", 0), S = m.get("marginBottom", 0);
|
|
2827
|
+
let H = m.adjustedLocalBounds(), w = m.get("marginLeft", 0), C = m.get("marginRight", 0), D = c + w - H.left, N = d + b - H.top;
|
|
2828
|
+
m.setPrivate("x", D), m.setPrivate("y", N), c += l[p] + C, u = Math.max(u, m.height() + b + S), p++, p >= h && (p = 0, c = t, d += u);
|
|
2829
|
+
}
|
|
2830
|
+
});
|
|
2831
|
+
}
|
|
2832
|
+
getColumnWidths(e, t, i, r) {
|
|
2833
|
+
let a = 0, n = [], o = 0;
|
|
2834
|
+
return j(e, (h) => {
|
|
2835
|
+
let l = h.adjustedLocalBounds();
|
|
2836
|
+
h.get("position") != "absolute" && h.isVisible() && (this.get("fixedWidthGrid") ? n[o] = i : n[o] = Math.max(0 | n[o], l.right - l.left + h.get("marginLeft", 0) + h.get("marginRight", 0)), o < e.children.length - 1 && (o++, o == t && (o = 0)));
|
|
2837
|
+
}), _(n, (h) => {
|
|
2838
|
+
a += h;
|
|
2839
|
+
}), a > r ? t > 2 ? (t -= 1, this.getColumnWidths(e, t, i, r)) : [r] : n;
|
|
2840
|
+
}
|
|
2841
|
+
}
|
|
2842
|
+
Object.defineProperty(Z, "className", { enumerable: !0, configurable: !0, writable: !0, value: "GridLayout" }), Object.defineProperty(Z, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: E.classNames.concat([Z.className]) });
|
|
2843
|
+
class Pe {
|
|
2844
|
+
static escape(e) {
|
|
2845
|
+
return e.replace(/\[\[/g, this.prefix + "1").replace(/([^\/\]]{1})\]\]/g, "$1" + this.prefix + "2").replace(/\]\]/g, this.prefix + "2").replace(/\{\{/g, this.prefix + "3").replace(/\}\}/g, this.prefix + "4").replace(/\'\'/g, this.prefix + "5");
|
|
2846
|
+
}
|
|
2847
|
+
static unescape(e) {
|
|
2848
|
+
return e.replace(new RegExp(this.prefix + "1", "g"), "[[").replace(new RegExp(this.prefix + "2", "g"), "]]").replace(new RegExp(this.prefix + "3", "g"), "{{").replace(new RegExp(this.prefix + "4", "g"), "}}").replace(new RegExp(this.prefix + "5", "g"), "''");
|
|
2849
|
+
}
|
|
2850
|
+
static cleanUp(e) {
|
|
2851
|
+
return e.replace(/\[\[/g, "[").replace(/\]\]/g, "]").replace(/\{\{/g, "{").replace(/\}\}/g, "}").replace(/\'\'/g, "'");
|
|
2852
|
+
}
|
|
2853
|
+
static chunk(e, t = !1, i = !1) {
|
|
2854
|
+
let r = [];
|
|
2855
|
+
e = this.escape(e);
|
|
2856
|
+
let a = t ? e.split("'") : [e];
|
|
2857
|
+
for (let n = 0; n < a.length; n++) {
|
|
2858
|
+
let o = a[n];
|
|
2859
|
+
if (o !== "")
|
|
2860
|
+
if (n % 2 == 0) {
|
|
2861
|
+
o = o.replace(/\]\[/g, "]" + Ee + "["), o = o.replace(/\[\]/g, "[ ]");
|
|
2862
|
+
let h = o.split(/[\[\]]+/);
|
|
2863
|
+
for (let l = 0; l < h.length; l++) {
|
|
2864
|
+
let d = this.cleanUp(this.unescape(h[l]));
|
|
2865
|
+
d !== Ee && d !== "" && (l % 2 == 0 ? r.push({ type: "value", text: d }) : r.push({ type: i ? "value" : "format", text: "[" + d + "]" }));
|
|
2866
|
+
}
|
|
2867
|
+
} else {
|
|
2868
|
+
let h = o.split(/[\[\]]+/);
|
|
2869
|
+
for (let l = 0; l < h.length; l++) {
|
|
2870
|
+
let d = this.cleanUp(this.unescape(h[l]));
|
|
2871
|
+
d !== "" && (l % 2 == 0 ? r.push({ type: "text", text: d }) : this.isImage(d) ? r.push({ type: "image", text: "[" + d + "]" }) : r.push({ type: "format", text: "[" + d + "]" }));
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
return r;
|
|
2876
|
+
}
|
|
2877
|
+
static isImage(e) {
|
|
2878
|
+
return !!e.match(/img[ ]?:/);
|
|
2879
|
+
}
|
|
2880
|
+
static getTextStyle(e) {
|
|
2881
|
+
let t = {};
|
|
2882
|
+
if (e == "" || e == "[ ]")
|
|
2883
|
+
return {};
|
|
2884
|
+
const i = e.match(/('[^']*')|("[^"]*")/gi);
|
|
2885
|
+
if (i)
|
|
2886
|
+
for (let a = 0; a < i.length; a++)
|
|
2887
|
+
e = e.replace(i[a], i[a].replace(/['"]*/g, "").replace(/[ ]+/g, "+"));
|
|
2888
|
+
let r = e.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w\-]+)|(\/)/gi);
|
|
2889
|
+
if (!r)
|
|
2890
|
+
return {};
|
|
2891
|
+
for (let a = 0; a < r.length; a++)
|
|
2892
|
+
if (r[a].match(/^(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)$/i))
|
|
2893
|
+
t.fontWeight = r[a];
|
|
2894
|
+
else if (r[a].match(/^(underline|line-through)$/i))
|
|
2895
|
+
t.textDecoration = r[a];
|
|
2896
|
+
else if (r[a] != "/")
|
|
2897
|
+
if (r[a].match(/:/)) {
|
|
2898
|
+
const n = r[a].replace("+", " ").split(/:[ ]*/);
|
|
2899
|
+
t[n[0]] = n[1];
|
|
2900
|
+
} else
|
|
2901
|
+
t.fill = v.fromString(r[a]);
|
|
2902
|
+
return t;
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
function De(s, e) {
|
|
2906
|
+
if (e != null) {
|
|
2907
|
+
e = "" + e;
|
|
2908
|
+
let t, i = (e = Pe.escape(e)).match(/\{([^}]+)\}/g);
|
|
2909
|
+
if (i)
|
|
2910
|
+
for (t = 0; t < i.length; t++) {
|
|
2911
|
+
let r = xe(s, i[t].replace(/\{([^}]+)\}/, "$1"));
|
|
2912
|
+
r == null && (r = ""), e = e.split(i[t]).join(r);
|
|
2913
|
+
}
|
|
2914
|
+
e = Pe.unescape(e);
|
|
2915
|
+
} else
|
|
2916
|
+
e = "";
|
|
2917
|
+
return e;
|
|
2918
|
+
}
|
|
2919
|
+
function xe(s, e, t) {
|
|
2920
|
+
let i;
|
|
2921
|
+
const r = s.dataItem;
|
|
2922
|
+
let a, n = [], o = /(format[a-zA-Z]*)\((.*)\)|([^.]+)/g;
|
|
2923
|
+
for (; a = o.exec(e), a !== null; )
|
|
2924
|
+
if (a[3]) {
|
|
2925
|
+
n.push({ prop: a[3] });
|
|
2926
|
+
const h = s.getDateFormatter().get("dateFields", []), l = s.getNumberFormatter().get("numericFields", []), d = s.getDurationFormatter().get("durationFields", []);
|
|
2927
|
+
h.indexOf(a[3]) !== -1 ? n.push({ method: "formatDate", params: [] }) : l.indexOf(a[3]) !== -1 ? n.push({ method: "formatNumber", params: [] }) : d.indexOf(a[3]) !== -1 && n.push({ method: "formatDuration", params: [] });
|
|
2928
|
+
} else {
|
|
2929
|
+
let h = [];
|
|
2930
|
+
if (be(a[2]) != "") {
|
|
2931
|
+
let l, d = /'([^']*)'|"([^"]*)"|([0-9\-]+)/g;
|
|
2932
|
+
for (; l = d.exec(a[2]), l !== null; )
|
|
2933
|
+
h.push(l[1] || l[2] || l[3]);
|
|
2934
|
+
}
|
|
2935
|
+
n.push({ method: a[1], params: h });
|
|
2936
|
+
}
|
|
2937
|
+
if (r) {
|
|
2938
|
+
i = I(s, n, r._settings), (i == null || Re(i)) && (i = I(s, n, r));
|
|
2939
|
+
let h = r.dataContext;
|
|
2940
|
+
i == null && h && (i = I(s, n, h), i == null && (i = I(s, [{ prop: e }], h)), i == null && h.dataContext && (i = I(s, n, h.dataContext))), i == null && r.component && r.component.dataItem !== r && (i = xe(r.component, e));
|
|
2941
|
+
}
|
|
2942
|
+
return i == null && (i = I(s, n, s)), i == null && s.parent && (i = xe(s.parent, e)), i;
|
|
2943
|
+
}
|
|
2944
|
+
function Rt(s, e) {
|
|
2945
|
+
const t = s.getPrivate("customData");
|
|
2946
|
+
if (Re(t))
|
|
2947
|
+
return t[e];
|
|
2948
|
+
}
|
|
2949
|
+
function I(s, e, t, i) {
|
|
2950
|
+
let r = t, a = !1;
|
|
2951
|
+
for (let n = 0, o = e.length; n < o; n++) {
|
|
2952
|
+
let h = e[n];
|
|
2953
|
+
if (h.prop) {
|
|
2954
|
+
if (r instanceof x) {
|
|
2955
|
+
let l = r.get(h.prop);
|
|
2956
|
+
l == null && (l = r.getPrivate(h.prop)), l == null && (l = Rt(r, h.prop)), l == null && (l = r[h.prop]), r = l;
|
|
2957
|
+
} else if (r.get) {
|
|
2958
|
+
let l = r.get(h.prop);
|
|
2959
|
+
l == null && (l = r[h.prop]), r = l;
|
|
2960
|
+
} else
|
|
2961
|
+
r = r[h.prop];
|
|
2962
|
+
if (r == null)
|
|
2963
|
+
return;
|
|
2964
|
+
} else
|
|
2965
|
+
switch (h.method) {
|
|
2966
|
+
case "formatNumber":
|
|
2967
|
+
let l = _e(r);
|
|
2968
|
+
l != null && (r = s.getNumberFormatter().format(l, i || h.params[0] || void 0), a = !0);
|
|
2969
|
+
break;
|
|
2970
|
+
case "formatDate":
|
|
2971
|
+
let d = et(r);
|
|
2972
|
+
if (!me(d) || Oe(d.getTime()))
|
|
2973
|
+
return;
|
|
2974
|
+
d != null && (r = s.getDateFormatter().format(d, i || h.params[0] || void 0), a = !0);
|
|
2975
|
+
break;
|
|
2976
|
+
case "formatDuration":
|
|
2977
|
+
let p = _e(r);
|
|
2978
|
+
p != null && (r = s.getDurationFormatter().format(p, i || h.params[0] || void 0, h.params[1] || void 0), a = !0);
|
|
2979
|
+
break;
|
|
2980
|
+
case "urlEncode":
|
|
2981
|
+
case "encodeURIComponent":
|
|
2982
|
+
r = encodeURIComponent(r);
|
|
2983
|
+
break;
|
|
2984
|
+
default:
|
|
2985
|
+
r[h.method] && r[h.method].apply(t, h.params);
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
if (!a) {
|
|
2989
|
+
let n = [{ method: "", params: i }];
|
|
2990
|
+
if (i == null)
|
|
2991
|
+
g(r) ? (n[0].method = "formatNumber", n[0].params = "") : me(r) && (n[0].method = "formatDate", n[0].params = "");
|
|
2992
|
+
else {
|
|
2993
|
+
let o = mt(i);
|
|
2994
|
+
o === "number" ? n[0].method = "formatNumber" : o === "date" ? n[0].method = "formatDate" : o === "duration" && (n[0].method = "formatDuration");
|
|
2995
|
+
}
|
|
2996
|
+
n[0].method && (r = I(s, n, r));
|
|
2997
|
+
}
|
|
2998
|
+
return r;
|
|
2999
|
+
}
|
|
3000
|
+
Object.defineProperty(Pe, "prefix", { enumerable: !0, configurable: !0, writable: !0, value: "__amcharts__" });
|
|
3001
|
+
class L extends x {
|
|
3002
|
+
constructor() {
|
|
3003
|
+
super(...arguments), Object.defineProperty(this, "_display", { enumerable: !0, configurable: !0, writable: !0, value: this._root._renderer.makeContainer() }), Object.defineProperty(this, "_childrenDisplay", { enumerable: !0, configurable: !0, writable: !0, value: this._root._renderer.makeContainer() }), Object.defineProperty(this, "children", { enumerable: !0, configurable: !0, writable: !0, value: new Tt(this) }), Object.defineProperty(this, "_percentageSizeChildren", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_percentagePositionChildren", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_prevWidth", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_prevHeight", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_contentWidth", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_contentHeight", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_contentMask", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_vsbd0", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_vsbd1", { enumerable: !0, configurable: !0, writable: !0, value: void 0 });
|
|
3004
|
+
}
|
|
3005
|
+
_afterNew() {
|
|
3006
|
+
super._afterNew(), this._display.addChild(this._childrenDisplay);
|
|
3007
|
+
}
|
|
3008
|
+
_dispose() {
|
|
3009
|
+
V(this.allChildren(), (e) => {
|
|
3010
|
+
e.dispose();
|
|
3011
|
+
}), this.getPrivate("htmlElement") && this._root._removeHTMLContent(this), super._dispose();
|
|
3012
|
+
}
|
|
3013
|
+
_changed() {
|
|
3014
|
+
if (super._changed(), this.isDirty("interactiveChildren") && (this._display.interactiveChildren = this.get("interactiveChildren", !1)), this.isDirty("layout") && (this._prevWidth = 0, this._prevHeight = 0, this.markDirtyBounds(), this._prevSettings.layout && this.children.each((e) => {
|
|
3015
|
+
e.removePrivate("x"), e.removePrivate("y");
|
|
3016
|
+
})), (this.isDirty("paddingTop") || this.isDirty("paddingBottom") || this.isDirty("paddingLeft") || this.isDirty("paddingRight")) && this.children.each((e) => {
|
|
3017
|
+
e.markDirtyPosition();
|
|
3018
|
+
}), this.isDirty("maskContent")) {
|
|
3019
|
+
const e = this._childrenDisplay;
|
|
3020
|
+
let t = this._contentMask;
|
|
3021
|
+
this.get("maskContent") ? t || (t = Y.new(this._root, { x: -0.5, y: -0.5, width: this.width() + 1, height: this.height() + 1 }), this._contentMask = t, e.addChildAt(t._display, 0), e.mask = t._display) : t && (e.removeChild(t._display), e.mask = null, t.dispose(), this._contentMask = void 0);
|
|
3022
|
+
}
|
|
3023
|
+
}
|
|
3024
|
+
_updateSize() {
|
|
3025
|
+
super._updateSize(), _(this._percentageSizeChildren, (e) => {
|
|
3026
|
+
e._updateSize();
|
|
3027
|
+
}), _(this._percentagePositionChildren, (e) => {
|
|
3028
|
+
e.markDirtyPosition(), e._updateSize();
|
|
3029
|
+
}), this.updateBackground();
|
|
3030
|
+
}
|
|
3031
|
+
updateBackground() {
|
|
3032
|
+
const e = this.get("background");
|
|
3033
|
+
let t = this._localBounds;
|
|
3034
|
+
if (t && !this.isHidden()) {
|
|
3035
|
+
let i = t.left, r = t.top, a = t.right - i, n = t.bottom - r, o = this.get("maxWidth"), h = this.get("maxHeight");
|
|
3036
|
+
h && n > h && (n = h), o && a > o && (a = o);
|
|
3037
|
+
let l = this.width(), d = this.height();
|
|
3038
|
+
e && (e.setAll({ width: a, height: n, x: i, y: r }), this._display.interactive && (e._display.interactive = !0));
|
|
3039
|
+
const p = this._contentMask;
|
|
3040
|
+
p && p.setAll({ width: l + 1, height: d + 1 });
|
|
3041
|
+
const u = this.get("verticalScrollbar");
|
|
3042
|
+
if (u) {
|
|
3043
|
+
u.set("height", d), u.set("x", l - u.width() - u.get("marginRight", 0)), u.set("end", u.get("start", 0) + d / this._contentHeight);
|
|
3044
|
+
const c = u.get("background");
|
|
3045
|
+
c && c.setAll({ width: u.width(), height: d });
|
|
3046
|
+
let m = !0;
|
|
3047
|
+
this._contentHeight <= d && (m = !1), u.setPrivate("visible", m);
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
}
|
|
3051
|
+
_applyThemes(e = !1) {
|
|
3052
|
+
return !!super._applyThemes(e) && (this.eachChildren((t) => {
|
|
3053
|
+
t._applyThemes(e);
|
|
3054
|
+
}), !0);
|
|
3055
|
+
}
|
|
3056
|
+
_applyState(e) {
|
|
3057
|
+
super._applyState(e), this.get("setStateOnChildren") && this.eachChildren((t) => {
|
|
3058
|
+
t.states.apply(e);
|
|
3059
|
+
});
|
|
3060
|
+
}
|
|
3061
|
+
_applyStateAnimated(e, t) {
|
|
3062
|
+
super._applyStateAnimated(e, t), this.get("setStateOnChildren") && this.eachChildren((i) => {
|
|
3063
|
+
i.states.applyAnimate(e, t);
|
|
3064
|
+
});
|
|
3065
|
+
}
|
|
3066
|
+
innerWidth() {
|
|
3067
|
+
return this.width() - this.get("paddingRight", 0) - this.get("paddingLeft", 0);
|
|
3068
|
+
}
|
|
3069
|
+
innerHeight() {
|
|
3070
|
+
return this.height() - this.get("paddingTop", 0) - this.get("paddingBottom", 0);
|
|
3071
|
+
}
|
|
3072
|
+
_getBounds() {
|
|
3073
|
+
let e = this.get("width"), t = this.get("height"), i = this.getPrivate("width"), r = this.getPrivate("height"), a = { left: 0, top: 0, right: this.width(), bottom: this.height() }, n = this.get("layout"), o = !1, h = !1;
|
|
3074
|
+
if ((n instanceof X || n instanceof Z) && (o = !0), n instanceof $ && (h = !0), e == null && i == null || t == null && r == null || this.get("verticalScrollbar")) {
|
|
3075
|
+
let l = Number.MAX_VALUE, d = l, p = -l, u = l, c = -l;
|
|
3076
|
+
const m = this.get("paddingLeft", 0), b = this.get("paddingTop", 0), S = this.get("paddingRight", 0), H = this.get("paddingBottom", 0);
|
|
3077
|
+
this.children.each((D) => {
|
|
3078
|
+
if (D.get("position") != "absolute" && D.get("isMeasured")) {
|
|
3079
|
+
let N = D.adjustedLocalBounds(), Te = D.x(), Se = D.y(), ne = Te + N.left, oe = Te + N.right, he = Se + N.top, le = Se + N.bottom;
|
|
3080
|
+
o && (ne -= D.get("marginLeft", 0), oe += D.get("marginRight", 0)), h && (he -= D.get("marginTop", 0), le += D.get("marginBottom", 0)), ne < d && (d = ne), oe > p && (p = oe), he < u && (u = he), le > c && (c = le);
|
|
3081
|
+
}
|
|
3082
|
+
}), d == l && (d = 0), p == -l && (p = 0), u == l && (u = 0), c == -l && (c = 0), a.left = d - m, a.top = u - b, a.right = p + S, a.bottom = c + H;
|
|
3083
|
+
const w = this.get("minWidth");
|
|
3084
|
+
g(w) && w > 0 && a.right - a.left < w && (a.right >= w ? a.left = a.right - w : a.right = a.left + w);
|
|
3085
|
+
const C = this.get("minHeight");
|
|
3086
|
+
g(C) && C > 0 && a.bottom - a.top < C && (a.bottom >= C ? a.top = a.bottom - C : a.bottom = a.top + C);
|
|
3087
|
+
}
|
|
3088
|
+
this._contentWidth = a.right - a.left, this._contentHeight = a.bottom - a.top, g(e) && (a.left = 0, a.right = e), g(i) && (a.left = 0, a.right = i), g(t) && (a.top = 0, a.bottom = t), g(r) && (a.top = 0, a.bottom = r), this._localBounds = a;
|
|
3089
|
+
}
|
|
3090
|
+
_updateBounds() {
|
|
3091
|
+
const e = this.get("layout");
|
|
3092
|
+
e && e.updateContainer(this), super._updateBounds(), this.updateBackground();
|
|
3093
|
+
}
|
|
3094
|
+
markDirty() {
|
|
3095
|
+
super.markDirty(), this._root._addDirtyParent(this);
|
|
3096
|
+
}
|
|
3097
|
+
_prepareChildren() {
|
|
3098
|
+
const e = this.innerWidth(), t = this.innerHeight();
|
|
3099
|
+
if (e != this._prevWidth || t != this._prevHeight) {
|
|
3100
|
+
let i = this.get("layout"), r = !1, a = !1;
|
|
3101
|
+
i && ((i instanceof X || i instanceof Z) && (r = !0), i instanceof $ && (a = !0)), _(this._percentageSizeChildren, (n) => {
|
|
3102
|
+
if (!r) {
|
|
3103
|
+
let o = n.get("width");
|
|
3104
|
+
o instanceof f && n.setPrivate("width", o.value * e);
|
|
3105
|
+
}
|
|
3106
|
+
if (!a) {
|
|
3107
|
+
let o = n.get("height");
|
|
3108
|
+
o instanceof f && n.setPrivate("height", o.value * t);
|
|
3109
|
+
}
|
|
3110
|
+
}), _(this._percentagePositionChildren, (n) => {
|
|
3111
|
+
n.markDirtyPosition(), n.markDirtyBounds();
|
|
3112
|
+
}), this._prevWidth = e, this._prevHeight = t, this._sizeDirty = !0, this.updateBackground();
|
|
3113
|
+
}
|
|
3114
|
+
this._handleStates();
|
|
3115
|
+
}
|
|
3116
|
+
_updateChildren() {
|
|
3117
|
+
if (this.isDirty("html")) {
|
|
3118
|
+
const e = this.get("html");
|
|
3119
|
+
e && e !== "" ? this._root._setHTMLContent(this, De(this, this.get("html", ""))) : this._root._removeHTMLContent(this), this._root._positionHTMLElement(this);
|
|
3120
|
+
}
|
|
3121
|
+
if (this.isDirty("verticalScrollbar")) {
|
|
3122
|
+
const e = this.get("verticalScrollbar");
|
|
3123
|
+
if (e) {
|
|
3124
|
+
e._setParent(this), e.startGrip.setPrivate("visible", !1), e.endGrip.setPrivate("visible", !1), this.set("maskContent", !0), this.set("paddingRight", e.width() + e.get("marginRight", 0) + e.get("marginLeft", 0));
|
|
3125
|
+
let t = this.get("background");
|
|
3126
|
+
t || (t = this.set("background", Y.new(this._root, { themeTags: ["background"], fillOpacity: 0, fill: this._root.interfaceColors.get("alternativeBackground") }))), this._vsbd0 = this.events.on("wheel", (i) => {
|
|
3127
|
+
const r = i.originalEvent;
|
|
3128
|
+
if (!ut(r, this))
|
|
3129
|
+
return;
|
|
3130
|
+
r.preventDefault();
|
|
3131
|
+
let a = r.deltaY / 5e3;
|
|
3132
|
+
const n = e.get("start", 0), o = e.get("end", 1);
|
|
3133
|
+
n + a <= 0 && (a = -n), o + a >= 1 && (a = 1 - o), n + a >= 0 && o + a <= 1 && (e.set("start", n + a), e.set("end", o + a));
|
|
3134
|
+
}), this._disposers.push(this._vsbd0), this._vsbd1 = e.events.on("rangechanged", () => {
|
|
3135
|
+
let i = this._contentHeight;
|
|
3136
|
+
const r = this._childrenDisplay, a = this._contentMask;
|
|
3137
|
+
r.y = -e.get("start", 0) * i, r.markDirtyLayer(), a && (a._display.y = -r.y, r.mask = a._display);
|
|
3138
|
+
}), this._disposers.push(this._vsbd1), this._display.addChild(e._display);
|
|
3139
|
+
} else {
|
|
3140
|
+
const t = this._prevSettings.verticalScrollbar;
|
|
3141
|
+
t && (this._display.removeChild(t._display), this._vsbd0 && this._vsbd0.dispose(), this._vsbd1 && this._vsbd1.dispose(), this._childrenDisplay.y = 0, this.setPrivate("height", void 0), this.set("maskContent", !1), this.set("paddingRight", void 0));
|
|
3142
|
+
}
|
|
3143
|
+
}
|
|
3144
|
+
if (this.isDirty("background")) {
|
|
3145
|
+
const e = this._prevSettings.background;
|
|
3146
|
+
e && this._display.removeChild(e._display);
|
|
3147
|
+
const t = this.get("background");
|
|
3148
|
+
t instanceof x && (t.set("isMeasured", !1), t._setParent(this), this._display.addChildAt(t._display, 0));
|
|
3149
|
+
}
|
|
3150
|
+
if (this.isDirty("mask")) {
|
|
3151
|
+
const e = this.get("mask"), t = this._prevSettings.mask;
|
|
3152
|
+
if (t && (this._display.removeChild(t._display), t != e && t.dispose()), e) {
|
|
3153
|
+
const i = e.parent;
|
|
3154
|
+
i && i.children.removeValue(e), e._setParent(this), this._display.addChildAt(e._display, 0), this._childrenDisplay.mask = e._display;
|
|
3155
|
+
}
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
_processTemplateField() {
|
|
3159
|
+
super._processTemplateField(), this.children.each((e) => {
|
|
3160
|
+
e._processTemplateField();
|
|
3161
|
+
});
|
|
3162
|
+
}
|
|
3163
|
+
walkChildren(e) {
|
|
3164
|
+
this.children.each((t) => {
|
|
3165
|
+
t instanceof L && t.walkChildren(e), e(t);
|
|
3166
|
+
});
|
|
3167
|
+
}
|
|
3168
|
+
eachChildren(e) {
|
|
3169
|
+
const t = this.get("background");
|
|
3170
|
+
t && e(t);
|
|
3171
|
+
const i = this.get("verticalScrollbar");
|
|
3172
|
+
i && e(i);
|
|
3173
|
+
const r = this.get("mask");
|
|
3174
|
+
r && e(r), this.children.values.forEach((a) => {
|
|
3175
|
+
e(a);
|
|
3176
|
+
});
|
|
3177
|
+
}
|
|
3178
|
+
allChildren() {
|
|
3179
|
+
const e = [];
|
|
3180
|
+
return this.eachChildren((t) => {
|
|
3181
|
+
e.push(t);
|
|
3182
|
+
}), e;
|
|
3183
|
+
}
|
|
3184
|
+
_setDataItem(e) {
|
|
3185
|
+
const t = e !== this._dataItem;
|
|
3186
|
+
super._setDataItem(e);
|
|
3187
|
+
const i = this.get("html", "");
|
|
3188
|
+
i && i !== "" && t && this._root._setHTMLContent(this, De(this, i));
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
Object.defineProperty(L, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Container" }), Object.defineProperty(L, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: x.classNames.concat([L.className]) });
|
|
3192
|
+
class se extends x {
|
|
3193
|
+
constructor() {
|
|
3194
|
+
super(...arguments), Object.defineProperty(this, "textStyle", { enumerable: !0, configurable: !0, writable: !0, value: this._root._renderer.makeTextStyle() }), Object.defineProperty(this, "_display", { enumerable: !0, configurable: !0, writable: !0, value: this._root._renderer.makeText("", this.textStyle) }), Object.defineProperty(this, "_textStyles", { enumerable: !0, configurable: !0, writable: !0, value: ["textAlign", "fontFamily", "fontSize", "fontStyle", "fontWeight", "fontStyle", "fontVariant", "textDecoration", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY", "shadowOpacity", "lineHeight", "baselineRatio", "direction", "textBaseline", "oversizedBehavior", "breakWords", "ellipsis", "minScale", "maxChars"] }), Object.defineProperty(this, "_originalScale", { enumerable: !0, configurable: !0, writable: !0, value: void 0 });
|
|
3195
|
+
}
|
|
3196
|
+
_updateBounds() {
|
|
3197
|
+
if (this.get("text"))
|
|
3198
|
+
super._updateBounds();
|
|
3199
|
+
else {
|
|
3200
|
+
let e = { left: 0, right: 0, top: 0, bottom: 0 };
|
|
3201
|
+
this._adjustedLocalBounds = e;
|
|
3202
|
+
}
|
|
3203
|
+
}
|
|
3204
|
+
_changed() {
|
|
3205
|
+
super._changed(), this._display.clear();
|
|
3206
|
+
let e = this.textStyle;
|
|
3207
|
+
if (this.isDirty("opacity")) {
|
|
3208
|
+
let t = this.get("opacity", 1);
|
|
3209
|
+
this._display.alpha = t;
|
|
3210
|
+
}
|
|
3211
|
+
if ((this.isDirty("text") || this.isDirty("populateText")) && (this._display.text = this._getText(), this.markDirtyBounds(), this.get("role") == "tooltip" && this._root.updateTooltip(this)), this.isPrivateDirty("tooltipElement") && this.getPrivate("tooltipElement") && this._disposers.push(new P(() => {
|
|
3212
|
+
this._root._removeTooltipElement(this);
|
|
3213
|
+
})), this.isDirty("width") && (e.wordWrapWidth = this.width(), this.markDirtyBounds()), this.isDirty("oversizedBehavior") && (e.oversizedBehavior = this.get("oversizedBehavior", "none"), this.markDirtyBounds()), this.isDirty("breakWords") && (e.breakWords = this.get("breakWords", !1), this.markDirtyBounds()), this.isDirty("ellipsis") && (e.ellipsis = this.get("ellipsis"), this.markDirtyBounds()), this.isDirty("ignoreFormatting") && (e.ignoreFormatting = this.get("ignoreFormatting", !1), this.markDirtyBounds()), this.isDirty("minScale") && (e.minScale = this.get("minScale", 0), this.markDirtyBounds()), this.isDirty("fill")) {
|
|
3214
|
+
let t = this.get("fill");
|
|
3215
|
+
t && (e.fill = t);
|
|
3216
|
+
}
|
|
3217
|
+
if (this.isDirty("fillOpacity")) {
|
|
3218
|
+
let t = this.get("fillOpacity", 1);
|
|
3219
|
+
t && (e.fillOpacity = t);
|
|
3220
|
+
}
|
|
3221
|
+
(this.isDirty("maxWidth") || this.isPrivateDirty("maxWidth")) && (e.maxWidth = this.get("maxWidth", this.getPrivate("maxWidth")), this.markDirtyBounds()), (this.isDirty("maxHeight") || this.isPrivateDirty("maxHeight")) && (e.maxHeight = this.get("maxHeight", this.getPrivate("maxHeight")), this.markDirtyBounds()), _(this._textStyles, (t) => {
|
|
3222
|
+
this._dirty[t] && (e[t] = this.get(t), this.markDirtyBounds());
|
|
3223
|
+
}), e.fontSize = this.get("fontSize"), e.fontFamily = this.get("fontFamily"), this._display.style = e, this.isDirty("role") && this.get("role") == "tooltip" && this._root.updateTooltip(this);
|
|
3224
|
+
}
|
|
3225
|
+
_getText() {
|
|
3226
|
+
let e = this.get("text", "");
|
|
3227
|
+
return this.get("maxChars") && (e = _t(e, this.get("maxChars", 1e8), this.get("breakWords"), this.get("ellipsis"))), this.get("populateText") ? De(this, e) : e;
|
|
3228
|
+
}
|
|
3229
|
+
markDirtyText() {
|
|
3230
|
+
this._display.text = this._getText(), this.get("role") == "tooltip" && this._root.updateTooltip(this), this.markDirtyBounds(), this.markDirty();
|
|
3231
|
+
}
|
|
3232
|
+
_setDataItem(e) {
|
|
3233
|
+
super._setDataItem(e), this.get("populateText") && this.markDirtyText();
|
|
3234
|
+
}
|
|
3235
|
+
getNumberFormatter() {
|
|
3236
|
+
return this.parent ? this.parent.getNumberFormatter() : super.getNumberFormatter();
|
|
3237
|
+
}
|
|
3238
|
+
getDateFormatter() {
|
|
3239
|
+
return this.parent ? this.parent.getDateFormatter() : super.getDateFormatter();
|
|
3240
|
+
}
|
|
3241
|
+
getDurationFormatter() {
|
|
3242
|
+
return this.parent ? this.parent.getDurationFormatter() : super.getDurationFormatter();
|
|
3243
|
+
}
|
|
3244
|
+
}
|
|
3245
|
+
Object.defineProperty(se, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Text" }), Object.defineProperty(se, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: x.classNames.concat([se.className]) });
|
|
3246
|
+
class ge extends L {
|
|
3247
|
+
constructor() {
|
|
3248
|
+
super(...arguments), Object.defineProperty(this, "_text", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_textKeys", { enumerable: !0, configurable: !0, writable: !0, value: ["text", "fill", "fillOpacity", "textAlign", "fontFamily", "fontSize", "fontStyle", "fontWeight", "fontStyle", "fontVariant", "textDecoration", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY", "shadowOpacity", "lineHeight", "baselineRatio", "direction", "textBaseline", "oversizedBehavior", "breakWords", "ellipsis", "minScale", "populateText", "role", "ignoreFormatting", "maxChars"] });
|
|
3249
|
+
}
|
|
3250
|
+
get text() {
|
|
3251
|
+
return this._text;
|
|
3252
|
+
}
|
|
3253
|
+
_afterNew() {
|
|
3254
|
+
super._afterNew(), this._makeText(), _(this._textKeys, (e) => {
|
|
3255
|
+
const t = this.get(e);
|
|
3256
|
+
t != null && this._text.set(e, t);
|
|
3257
|
+
}), this.get("html", "") !== "" && this._text.set("text", ""), this.onPrivate("maxWidth", () => {
|
|
3258
|
+
this._setMaxDimentions();
|
|
3259
|
+
}), this.onPrivate("maxHeight", () => {
|
|
3260
|
+
this._setMaxDimentions();
|
|
3261
|
+
});
|
|
3262
|
+
}
|
|
3263
|
+
_makeText() {
|
|
3264
|
+
this._text = this.children.push(se.new(this._root, {}));
|
|
3265
|
+
}
|
|
3266
|
+
_updateChildren() {
|
|
3267
|
+
if (super._updateChildren(), _(this._textKeys, (e) => {
|
|
3268
|
+
this._text.set(e, this.get(e));
|
|
3269
|
+
}), this.isDirty("maxWidth") && this._setMaxDimentions(), this.isDirty("maxHeight") && this._setMaxDimentions(), this.isDirty("rotation") && this._setMaxDimentions(), this.get("html", "") !== "" ? this._text.set("text", "") : this._text.set("text", this.get("text")), this.isDirty("textAlign") || this.isDirty("width")) {
|
|
3270
|
+
const e = this.get("textAlign");
|
|
3271
|
+
let t;
|
|
3272
|
+
this.get("width") != null ? t = e == "right" ? qe : e == "center" ? Je : 0 : e == "left" || e == "start" ? t = this.get("paddingLeft") : e != "right" && e != "end" || (t = -this.get("paddingRight")), this.text.set("x", t);
|
|
3273
|
+
}
|
|
3274
|
+
}
|
|
3275
|
+
_setMaxDimentions() {
|
|
3276
|
+
const e = this.get("rotation"), t = e == 90 || e == 270 || e == -90, i = this.get("maxWidth", this.getPrivate("maxWidth", 1 / 0));
|
|
3277
|
+
g(i) ? this.text.set(t ? "maxHeight" : "maxWidth", i - this.get("paddingLeft", 0) - this.get("paddingRight", 0)) : this.text.set(t ? "maxHeight" : "maxWidth", void 0);
|
|
3278
|
+
const r = this.get("maxHeight", this.getPrivate("maxHeight", 1 / 0));
|
|
3279
|
+
g(r) ? this.text.set(t ? "maxWidth" : "maxHeight", r - this.get("paddingTop", 0) - this.get("paddingBottom", 0)) : this.text.set(t ? "maxWidth" : "maxHeight", void 0);
|
|
3280
|
+
}
|
|
3281
|
+
_setDataItem(e) {
|
|
3282
|
+
super._setDataItem(e), this._markDirtyKey("text"), this.text.get("populateText") && this.text.markDirtyText();
|
|
3283
|
+
}
|
|
3284
|
+
getText() {
|
|
3285
|
+
return this._text._getText();
|
|
3286
|
+
}
|
|
3287
|
+
}
|
|
3288
|
+
Object.defineProperty(ge, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Label" }), Object.defineProperty(ge, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: L.classNames.concat([ge.className]) });
|
|
3289
|
+
class Bi {
|
|
3290
|
+
constructor(e, t) {
|
|
3291
|
+
if (Object.defineProperty(this, "_root", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_rules", { enumerable: !0, configurable: !0, writable: !0, value: {} }), this._root = e, !t)
|
|
3292
|
+
throw new Error("You cannot use `new Class()`, instead use `Class.new()`");
|
|
3293
|
+
}
|
|
3294
|
+
static new(e) {
|
|
3295
|
+
const t = new this(e, !0);
|
|
3296
|
+
return t.setupDefaultRules(), t;
|
|
3297
|
+
}
|
|
3298
|
+
setupDefaultRules() {
|
|
3299
|
+
}
|
|
3300
|
+
_lookupRules(e) {
|
|
3301
|
+
return this._rules[e];
|
|
3302
|
+
}
|
|
3303
|
+
ruleRaw(e, t = []) {
|
|
3304
|
+
let i = this._rules[e];
|
|
3305
|
+
i || (i = this._rules[e] = []), t.sort(F);
|
|
3306
|
+
const { index: r, found: a } = at(i, (n) => {
|
|
3307
|
+
const o = F(n.tags.length, t.length);
|
|
3308
|
+
return o === 0 ? Ze(n.tags, t, F) : o;
|
|
3309
|
+
});
|
|
3310
|
+
if (a)
|
|
3311
|
+
return i[r].template;
|
|
3312
|
+
{
|
|
3313
|
+
const n = q.new({});
|
|
3314
|
+
return i.splice(r, 0, { tags: t, template: n }), n;
|
|
3315
|
+
}
|
|
3316
|
+
}
|
|
3317
|
+
rule(e, t = []) {
|
|
3318
|
+
return this.ruleRaw(e, t);
|
|
3319
|
+
}
|
|
3320
|
+
}
|
|
3321
|
+
export {
|
|
3322
|
+
$,
|
|
3323
|
+
Wt as A,
|
|
3324
|
+
A as B,
|
|
3325
|
+
g as C,
|
|
3326
|
+
pe as D,
|
|
3327
|
+
fi as E,
|
|
3328
|
+
Xt as F,
|
|
3329
|
+
J as G,
|
|
3330
|
+
mi as H,
|
|
3331
|
+
ui as I,
|
|
3332
|
+
Jt as J,
|
|
3333
|
+
wi as K,
|
|
3334
|
+
Yt as L,
|
|
3335
|
+
ci as M,
|
|
3336
|
+
T as N,
|
|
3337
|
+
F as O,
|
|
3338
|
+
Be as P,
|
|
3339
|
+
pi as Q,
|
|
3340
|
+
gi as R,
|
|
3341
|
+
_i as S,
|
|
3342
|
+
Ce as T,
|
|
3343
|
+
_e as U,
|
|
3344
|
+
di as V,
|
|
3345
|
+
y as W,
|
|
3346
|
+
X,
|
|
3347
|
+
$t as Y,
|
|
3348
|
+
Z,
|
|
3349
|
+
Re as _,
|
|
3350
|
+
ke as a,
|
|
3351
|
+
Ut as a0,
|
|
3352
|
+
Zt as a1,
|
|
3353
|
+
re as a2,
|
|
3354
|
+
v as a3,
|
|
3355
|
+
ii as a4,
|
|
3356
|
+
lt as a5,
|
|
3357
|
+
k as a6,
|
|
3358
|
+
ti as a7,
|
|
3359
|
+
ri as a8,
|
|
3360
|
+
U as a9,
|
|
3361
|
+
Ye as aA,
|
|
3362
|
+
st as aB,
|
|
3363
|
+
Dt as aC,
|
|
3364
|
+
Ot as aD,
|
|
3365
|
+
ut as aE,
|
|
3366
|
+
Gt as aF,
|
|
3367
|
+
Ci as aG,
|
|
3368
|
+
xi as aH,
|
|
3369
|
+
Me as aI,
|
|
3370
|
+
oi as aJ,
|
|
3371
|
+
yi as aK,
|
|
3372
|
+
Oe as aL,
|
|
3373
|
+
bi as aM,
|
|
3374
|
+
ki as aN,
|
|
3375
|
+
zt as aa,
|
|
3376
|
+
we as ab,
|
|
3377
|
+
Kt as ac,
|
|
3378
|
+
f as ad,
|
|
3379
|
+
Oi as ae,
|
|
3380
|
+
si as af,
|
|
3381
|
+
Ve as ag,
|
|
3382
|
+
Ti as ah,
|
|
3383
|
+
Di as ai,
|
|
3384
|
+
be as aj,
|
|
3385
|
+
vi as ak,
|
|
3386
|
+
ge as al,
|
|
3387
|
+
Ie as am,
|
|
3388
|
+
Bi as an,
|
|
3389
|
+
ji as ao,
|
|
3390
|
+
Je as ap,
|
|
3391
|
+
jt as aq,
|
|
3392
|
+
M as ar,
|
|
3393
|
+
Si as as,
|
|
3394
|
+
Pi as at,
|
|
3395
|
+
q as au,
|
|
3396
|
+
ye as av,
|
|
3397
|
+
ve as aw,
|
|
3398
|
+
$e as ax,
|
|
3399
|
+
Mi as ay,
|
|
3400
|
+
Ht as az,
|
|
3401
|
+
z as b,
|
|
3402
|
+
Ue as c,
|
|
3403
|
+
P as d,
|
|
3404
|
+
ei as e,
|
|
3405
|
+
O as f,
|
|
3406
|
+
qt as g,
|
|
3407
|
+
Fe as h,
|
|
3408
|
+
L as i,
|
|
3409
|
+
li as j,
|
|
3410
|
+
Ei as k,
|
|
3411
|
+
ai as l,
|
|
3412
|
+
De as m,
|
|
3413
|
+
Ne as n,
|
|
3414
|
+
Ee as o,
|
|
3415
|
+
Vt as p,
|
|
3416
|
+
de as q,
|
|
3417
|
+
qe as r,
|
|
3418
|
+
se as s,
|
|
3419
|
+
Qt as t,
|
|
3420
|
+
ni as u,
|
|
3421
|
+
Pe as v,
|
|
3422
|
+
_ as w,
|
|
3423
|
+
R as x,
|
|
3424
|
+
hi as y,
|
|
3425
|
+
Y as z
|
|
3426
|
+
};
|