@agrotools1/at-components 0.3.4 → 0.3.5
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-b6e32ab3.js +109 -0
- package/dist/APIKeyMixin-83218bd5.js +19 -0
- package/dist/Analysis-8c5616ab.js +31 -0
- package/dist/ArcGISCachedService-8da73861.js +47 -0
- package/dist/ArcGISService-1e7483eb.js +25 -0
- package/dist/AreaMeasurement2D-ee78c5ab.js +405 -0
- package/dist/AreaMeasurement3D-098fd9ea.js +488 -0
- package/dist/AttachmentInfo-1b2ece0a.js +34 -0
- package/dist/AttachmentQuery-470d5a03.js +18 -0
- package/dist/AttributeStore-f80857be.js +1707 -0
- package/dist/BaseDynamicLayerView2D-a5f201d7.js +63 -0
- package/dist/BingMapsLayer-4c95d39c.js +112 -0
- package/dist/Bitmap-d7c41f66.js +128 -0
- package/dist/BitmapContainer-af419f59.js +23 -0
- package/dist/BlendLayer-ced1717f.js +13 -0
- package/dist/BoundsStore-030e1112.js +63 -0
- package/dist/BufferObject-6f0ccf08.js +100 -0
- package/dist/BufferView-83825b1b.js +683 -0
- package/dist/BuildingSceneLayer-67d67dd9.js +535 -0
- package/dist/Button-b96d4e96.js +36 -0
- package/dist/CSVLayer-0d54cccb.js +208 -0
- package/dist/CSVSourceWorker-00c7e147.js +367 -0
- package/dist/CatalogDynamicGroupLayerView2D-e1b747eb.js +66 -0
- package/dist/CatalogFootprintLayerView2D-4d654b8c.js +76 -0
- package/dist/CatalogLayer-fdcebf46.js +262 -0
- package/dist/CatalogLayerView2D-d872dec4.js +52 -0
- package/dist/ClassBreaksDefinition-0f6902fe.js +18 -0
- package/dist/ColorMaterial.glsl-0f79d1d3.js +64 -0
- package/dist/ColorSet-1f170190.js +45 -0
- package/dist/ColorStop-81b2ebbf.js +29 -0
- package/dist/Container-5cca9103.js +521 -0
- package/dist/CustomParametersMixin-fa9fc8f5.js +12 -0
- package/dist/DefaultMaterial.glsl-ea170d90.js +42 -0
- package/dist/DefaultMaterial_COLOR_GAMMA-e9199fb6.js +653 -0
- package/dist/DefaultTheme-e76e0ce4.js +130 -0
- package/dist/DeleteForwardEditsParameters-114413db.js +18 -0
- package/dist/DimensionLayer-5caa9d6d.js +129 -0
- package/dist/DirectLineMeasurement3D-6d3a316a.js +449 -0
- package/dist/DistanceMeasurement2D-7090d647.js +303 -0
- package/dist/DoubleArray-40bc6f82.js +25 -0
- package/dist/Dropdown/Checklist/Dropdown.Checklist.d.ts +17 -17
- package/dist/Dropdown/Dropdown.core.d.ts +6 -4
- package/dist/Dropdown/Dropdown.types.d.ts +1 -1
- package/dist/EdgeProcessingWorker-94aed8c4.js +63 -0
- package/dist/EditBusLayer-dcf477a3.js +107 -0
- package/dist/ElevationInfo-a456026a.js +56 -0
- package/dist/ElevationLayer-6061b8f4.js +129 -0
- package/dist/ElevationQuery-ec17e2cc.js +598 -0
- package/dist/ElevationSamplerWorker-beaaeaeb.js +62 -0
- package/dist/ExportImageParameters-56040230.js +66 -0
- package/dist/ExportStrategy-7d1b4a0c.js +93 -0
- package/dist/ExportWMSImageParameters-0b3d33ed.js +33 -0
- package/dist/External-9a57bcf0.js +110 -0
- package/dist/FeatureCollectionSnappingSource-b589f9ce.js +130 -0
- package/dist/FeatureCommandQueue-d1572e0d.js +1244 -0
- package/dist/FeatureEffect-20d94762.js +39 -0
- package/dist/FeatureEffectLayer-017997f2.js +13 -0
- package/dist/FeatureFilter-73c8c240.js +27 -0
- package/dist/FeatureLayer-ecf9f4ea.js +693 -0
- package/dist/FeatureLayerBase-1ffc64a0.js +148 -0
- package/dist/FeatureLayerSource-0acdac77.js +444 -0
- package/dist/FeatureLayerView2D-6f0d2580.js +1967 -0
- package/dist/FeaturePipelineWorker-77d06d4f.js +3633 -0
- package/dist/FeatureReductionLayer-203415cc.js +225 -0
- package/dist/FeatureReductionSelection-4ba3cfda.js +22 -0
- package/dist/FeatureServiceSnappingSource-90c5e877.js +481 -0
- package/dist/FeatureServiceSnappingSourceWorker-9f33d320.js +747 -0
- package/dist/FeatureSet-29d82bc9.js +188 -0
- package/dist/FeatureStore-9d48217b.js +131 -0
- package/dist/FeatureTemplate-79cf9cb6.js +12 -0
- package/dist/FeatureType-30eece24.js +25 -0
- package/dist/FieldsIndex-7d8f3589.js +109 -0
- package/dist/Filter/components/Filter.types.d.ts +17 -0
- package/dist/Filter/index.d.ts +4 -0
- package/dist/Filter/tests/mocks.d.ts +6 -0
- package/dist/FormTemplate-18b193a8.js +350 -0
- package/dist/GeoJSONLayer-d2677013.js +236 -0
- package/dist/GeoJSONSourceWorker-4571c9d5.js +247 -0
- package/dist/GeoRSSLayer-320f17b2.js +73 -0
- package/dist/GeoRSSLayerView2D-4683eb47.js +140 -0
- package/dist/GeometryUtils-b855940e.js +403 -0
- package/dist/GraphicContainer-9bd07fb2.js +26 -0
- package/dist/GraphicManipulator-e96e9aa3.js +1499 -0
- package/dist/GraphicsLayer-964ed1f0.js +38 -0
- package/dist/GraphicsLayerView2D-83766b4b.js +114 -0
- package/dist/GraphicsSnappingSource-0bf5350b.js +273 -0
- package/dist/GraphicsView2D-3103ed12.js +620 -0
- package/dist/GroupLayer-2c099630.js +147 -0
- package/dist/GroupLayerView2D-abb8b6d5.js +98 -0
- package/dist/HUDMaterial.glsl-6e206016.js +65 -0
- package/dist/HighlightCounter-1d4774e1.js +41 -0
- package/dist/HighlightGraphicContainer-de26900b.js +18 -0
- package/dist/I3SBinaryReader-63c12e1b.js +310 -0
- package/dist/I3SLayerDefinitions-d0aa8265.js +55 -0
- package/dist/I3SUtil-277467e8.js +59 -0
- package/dist/IdentityManager-a1b54522.js +899 -0
- package/dist/ImageHistogramParameters-47cf0f1b.js +905 -0
- package/dist/ImageryLayer-89c92097.js +1799 -0
- package/dist/ImageryLayerView2D-e0c5549a.js +352 -0
- package/dist/ImageryTileLayer-c38364f3.js +2157 -0
- package/dist/ImageryTileLayerView2D-f659a87c.js +1110 -0
- package/dist/Indices-29975728.js +67 -0
- package/dist/Input/Input.core.d.ts +1 -1
- package/dist/Input/index.d.ts +1 -1
- package/dist/IntegratedMesh3DTilesLayer-8b851e87.js +112 -0
- package/dist/IntegratedMeshLayer-9ed738ba.js +141 -0
- package/dist/InteractiveAnalysisViewModel-c95e13c5.js +7397 -0
- package/dist/InterleavedLayout-f5e6ee23.js +163 -0
- package/dist/KMLLayer-3662a890.js +162 -0
- package/dist/KMLLayerView2D-3d172b6a.js +253 -0
- package/dist/KnowledgeGraphLayerView2D-086160b5.js +43 -0
- package/dist/LRUCache-948c7d75.js +32 -0
- package/dist/LabelClass-c0694878.js +135 -0
- package/dist/LabelMetric-39280634.js +400 -0
- package/dist/LaserlinePath.glsl-205f0e8a.js +64 -0
- package/dist/Laserlines.glsl-6f09c43e.js +65 -0
- package/dist/LayerFloorInfo-308449b6.js +15 -0
- package/dist/LayerView-2b3b1a70.js +206 -0
- package/dist/LercWorker-b007ee29.js +157 -0
- package/dist/LineOfSightLayer-99b48ebf.js +147 -0
- package/dist/LinkChartLayer-d69e2e36.js +1027 -0
- package/dist/List/components/List.d.ts +74 -0
- package/dist/List/components/List.types.d.ts +11 -0
- package/dist/List/index.d.ts +4 -0
- package/dist/List/tests/mocks.d.ts +7 -0
- package/dist/Lyr3DWorker-2fdd578b.js +82 -0
- package/dist/MagnifierPrograms-5042ccad.js +806 -0
- package/dist/MapImageLayer-f3e35db3.js +169 -0
- package/dist/MapImageLayerView2D-98cfaffb.js +146 -0
- package/dist/MapNotesLayer-6942570f.js +283 -0
- package/dist/MapNotesLayerView2D-b641bba4.js +161 -0
- package/dist/MapServiceLayerViewHelper-9111fb4f.js +288 -0
- package/dist/MeasurementWidgetContent-a66f382a.js +2642 -0
- package/dist/MediaLayer-585e1067.js +523 -0
- package/dist/MediaLayerView2D-74d90bf4.js +332 -0
- package/dist/MemCache-1532e921.js +227 -0
- package/dist/MemorySourceWorker-ba059303.js +222 -0
- package/dist/Mesh-43d631db.js +980 -0
- package/dist/MeshLocalVertexSpace-f9cc6881.js +19 -0
- package/dist/MultiOriginJSONSupport-ec8788e6.js +158 -0
- package/dist/OGCFeatureLayer-5e327659.js +211 -0
- package/dist/OGCFeatureLayerView2D-d0104fdc.js +82 -0
- package/dist/ObjectStack-2d389b76.js +21 -0
- package/dist/Octree-1dba17ba.js +495 -0
- package/dist/OpenStreetMapLayer-dc083119.js +30 -0
- package/dist/OperationalLayer-d43d80b1.js +44 -0
- package/dist/OrderByInfo-26301234.js +16 -0
- package/dist/OrderedLayer-36fe0e60.js +26 -0
- package/dist/OrientedImageryLayer-21689d88.js +216 -0
- package/dist/OverlayCompositing.glsl-f80836ca.js +65 -0
- package/dist/OverrideHelper-880a7e09.js +242 -0
- package/dist/PBFDecoderWorker-b5f6d890.js +213 -0
- package/dist/PointCloudLayer-899f6a49.js +197 -0
- package/dist/PointCloudUniqueValueRenderer-8a477087.js +115 -0
- package/dist/PointCloudWorker-4bea79e8.js +212 -0
- package/dist/PooledRBush-df73bc2a.js +272 -0
- package/dist/Popup-e01092b4.js +3990 -0
- package/dist/PortalLayer-daca6a23.js +126 -0
- package/dist/Program-8b1e5f48.js +694 -0
- package/dist/ProgramTemplate-e4360f44.js +35 -0
- package/dist/QueryEngine-ca1511e3.js +896 -0
- package/dist/QueryTask-c9fa71fa.js +119 -0
- package/dist/RasterSymbolizer-1644d7a7.js +3024 -0
- package/dist/RasterVFDisplayObject-7ec19876.js +581 -0
- package/dist/RasterWorker-2d320094.js +78 -0
- package/dist/RawBlockCache-86e6c5d3.js +185 -0
- package/dist/RealisticTree.glsl-65abf4e9.js +42 -0
- package/dist/RefreshableLayer-a0708abb.js +80 -0
- package/dist/RefreshableLayerView-2b6aca24.js +16 -0
- package/dist/Relationship-ef9ae528.js +64 -0
- package/dist/RelationshipQuery-8a39148b.js +22 -0
- package/dist/RenderingContext-e718bfed.js +889 -0
- package/dist/RibbonLine.glsl-e82fb3bb.js +65 -0
- package/dist/RouteLayer-06ecd24a.js +786 -0
- package/dist/RouteLayerView2D-26c96396.js +195 -0
- package/dist/SDFHelper-70cff23b.js +140 -0
- package/dist/SSAO.glsl-54f15911.js +43 -0
- package/dist/SSAOBlur.glsl-cbd829bc.js +42 -0
- package/dist/ScaleRangeLayer-dc6d9c0e.js +21 -0
- package/dist/SceneLayer-255b45af.js +542 -0
- package/dist/SceneLayerSnappingSource-8969a32e.js +218 -0
- package/dist/SceneLayerSnappingSourceWorker-17673240.js +112 -0
- package/dist/SceneLayerWorker-46a764a8.js +164 -0
- package/dist/SceneService-bbc3f4e5.js +215 -0
- package/dist/Scheduler-e3ad50f2.js +373 -0
- package/dist/Search/Search.d.ts +11 -0
- package/dist/Select/Multiple/Select.multiple.d.ts +1 -1
- package/dist/Select/Select.core.d.ts +1 -1
- package/dist/Select/index.d.ts +1 -1
- package/dist/ShadedColorMaterial.glsl-8e194f81.js +64 -0
- package/dist/SnappingOperation-d12c0cd0.js +48 -0
- package/dist/SourceLayerData-054d8bb6.js +116 -0
- package/dist/SpatialFilter-ba146c95.js +1701 -0
- package/dist/Stop-38c9a9d4.js +281 -0
- package/dist/StreamLayer-9d300b87.js +188 -0
- package/dist/StreamLayerView2D-d80b90e9.js +164 -0
- package/dist/StyleRepository-e8c44bab.js +2212 -0
- package/dist/SublayersOwner-469b921a.js +545 -0
- package/dist/SubtypeGroupLayer-e467307a.js +514 -0
- package/dist/SubtypeGroupLayerView2D-41ed7e6f.js +84 -0
- package/dist/TableConfig/TableConfig.d.ts +6 -6
- package/dist/Tabs/Tab/Tab.d.ts +3 -3
- package/dist/TechniqueInstance-9c0d4dcf.js +233 -0
- package/dist/TemporalLayer-011ac13a.js +23 -0
- package/dist/Texture-b28260ca.js +501 -0
- package/dist/TextureOnly.glsl-87d0e898.js +65 -0
- package/dist/Theme-bf54db6d.js +3426 -0
- package/dist/Tick-5be5a637.js +723 -0
- package/dist/TileContainer-09ca940a.js +31 -0
- package/dist/TileInfoTilemapCache-26485a76.js +38 -0
- package/dist/TileLayer-b0580f1d.js +194 -0
- package/dist/TileLayerView2D-e4561937.js +187 -0
- package/dist/TilemapCache-d2163c80.js +189 -0
- package/dist/TimeInfo-68d2df8b.js +42 -0
- package/dist/TimeOnly-bb600899.js +706 -0
- package/dist/Tooltip-927072f3.js +138 -0
- package/dist/TopFeaturesQuery-77f00fe7.js +32 -0
- package/dist/TurboLine-87dd880a.js +565 -0
- package/dist/UniqueValueRenderer-56a91680.js +1039 -0
- package/dist/UnknownLayer-6b7b3c5d.js +30 -0
- package/dist/UnknownTimeZone-e62caf07.js +15 -0
- package/dist/UnsupportedLayer-16a90c0a.js +31 -0
- package/dist/UpdateTracking2D-bf4e8a89.js +8566 -0
- package/dist/Util-6762e3c9.js +57 -0
- package/dist/VectorTileLayer-3c42b01b.js +544 -0
- package/dist/VectorTileLayerView2D-3af619aa.js +2108 -0
- package/dist/Version-9c75ca2b.js +33 -0
- package/dist/VertexArrayObject-e736d4c8.js +73 -0
- package/dist/VertexColor.glsl-69e78e7a.js +2683 -0
- package/dist/VertexSnappingCandidate-10823eb3.js +13 -0
- package/dist/VideoLayerView2D-68e687b0.js +124 -0
- package/dist/VoxelLayer-76005caf.js +631 -0
- package/dist/WFSLayer-398b281f.js +221 -0
- package/dist/WFSSourceWorker-7506acff.js +157 -0
- package/dist/WGLContainer-f2c4f5da.js +5426 -0
- package/dist/WMSLayer-6fbfc745.js +536 -0
- package/dist/WMSLayerView2D-63dda194.js +117 -0
- package/dist/WMTSLayer-6492359f.js +531 -0
- package/dist/WMTSLayerView2D-5daae3fe.js +142 -0
- package/dist/WebTileLayer-5f7595df.js +110 -0
- package/dist/WhereClause-a8fc45da.js +2766 -0
- package/dist/WorkerHandle-11931750.js +47 -0
- package/dist/WorkerTileHandler-b53b5efc.js +1539 -0
- package/dist/action-b5c3b319.js +198 -0
- package/dist/action-group-01e02696.js +145 -0
- package/dist/action-menu-e0ddae4e.js +1759 -0
- package/dist/apng-9d467a98.js +392 -0
- package/dist/arcade-71dc610e.js +229 -0
- package/dist/arcadeAsyncRuntime-146d9fb6.js +943 -0
- package/dist/arcadeUtils-f7ed3399.js +8741 -0
- package/dist/arcgis-knowledge-client-core-b8fef5b0.js +1218 -0
- package/dist/arcgis-knowledge-client-core-simd-d54c7150.js +1218 -0
- package/dist/arcgisLayers-8d42568b.js +152 -0
- package/dist/associatedFeatureServiceUtils-c50f28e9.js +92 -0
- package/dist/axisAngleDegrees-ea89c136.js +49 -0
- package/dist/basis_transcoder-39fbc6ae.js +1248 -0
- package/dist/calcite-action-264e28ab.js +22 -0
- package/dist/calcite-action-bar-6ec66445.js +303 -0
- package/dist/calcite-action-group-85d021dc.js +28 -0
- package/dist/calcite-button-8a5af2ce.js +228 -0
- package/dist/calcite-flow-9b5e43fd.js +128 -0
- package/dist/calcite-flow-item-0089f891.js +499 -0
- package/dist/calcite-icon-c20a8db7.js +16 -0
- package/dist/calcite-input-24e48df5.js +24 -0
- package/dist/calcite-label-9e4dcb66.js +79 -0
- package/dist/calcite-list-711dcec1.js +2135 -0
- package/dist/calcite-list-item-1a29c5f1.js +576 -0
- package/dist/calcite-list-item-group-b69dedb8.js +71 -0
- package/dist/calcite-loader-e8b209f6.js +14 -0
- package/dist/calcite-modal-5e518e4c.js +333 -0
- package/dist/calcite-notice-25463d4d.js +181 -0
- package/dist/calcite-option-113080c1.js +94 -0
- package/dist/calcite-scrim-423337f4.js +18 -0
- package/dist/calcite-select-cd1e7e86.js +231 -0
- package/dist/capabilities-e7ea2422.js +50 -0
- package/dist/chartCommon-beb757c5.js +256 -0
- package/dist/chartUtilsAm5-6eaf385e.js +2954 -0
- package/dist/clientSideDefaults-366deb67.js +39 -0
- package/dist/colorRamps-4ea8b8f7.js +38 -0
- package/dist/colorUtils-611a3fa1.js +164 -0
- package/dist/commonProperties-3f86f534.js +60 -0
- package/dist/computeTranslationToOriginAndRotation-db6fb1b6.js +60 -0
- package/dist/conditionalSlot-4bf2837a.js +27 -0
- package/dist/createConnection-0754c362.js +299 -0
- package/dist/dataUtils-ebb55aab.js +1421 -0
- package/dist/deduplicate-af05e046.js +89 -0
- package/dist/defaults-f025f8a3.js +31 -0
- package/dist/deleteForwardEdits-0b666266.js +13 -0
- package/dist/diffUtils-b887dbbc.js +90 -0
- package/dist/drapedUtils-82fba1a5.js +75 -0
- package/dist/earcut-da8e2a55.js +292 -0
- package/dist/edgeProcessing-d7499657.js +252 -0
- package/dist/editingSupport-4b7813cf.js +203 -0
- package/dist/editsZScale-4a6ee4aa.js +37 -0
- package/dist/elevationInfoUtils-c20557cb.js +126 -0
- package/dist/executeForIds-6a55aa95.js +14 -0
- package/dist/executeForTopCount-7ffc37ac.js +17 -0
- package/dist/executeForTopExtents-191307d3.js +17 -0
- package/dist/executeForTopIds-f644d448.js +17 -0
- package/dist/executeQueryJSON-c5616d7b.js +15 -0
- package/dist/executeQueryPBF-807fb886.js +152 -0
- package/dist/executeRelationshipQuery-d5a1463b.js +53 -0
- package/dist/executeTopFeaturesQuery-6bb737a8.js +18 -0
- package/dist/featureConversionUtils-8fd0a407.js +479 -0
- package/dist/featureLayerUtils-37c96c26.js +250 -0
- package/dist/featureLayerUtils-cd009ccc.js +142 -0
- package/dist/featureSetUtils-f54946cf.js +2530 -0
- package/dist/featuresetbase-5a262736.js +707 -0
- package/dist/featuresetgeom-b772f260.js +99 -0
- package/dist/featuresetstats-fecaae94.js +81 -0
- package/dist/featuresetstring-8d32b66d.js +95 -0
- package/dist/fetchService-41c786e9.js +33 -0
- package/dist/fieldProperties-0a31a020.js +33 -0
- package/dist/floatRGBA-bcce207e.js +20 -0
- package/dist/form-8bc80cb2.js +138 -0
- package/dist/geohashUtils-5b115834.js +85 -0
- package/dist/geojson-33ba4718.js +208 -0
- package/dist/geomasync-9ccbb40e.js +567 -0
- package/dist/geometryEngine-5d1edffb.js +192 -0
- package/dist/geometryEngineAsync-65f20167.js +217 -0
- package/dist/geometryEngineBase-4107554c.js +18463 -0
- package/dist/geometryEngineJSON-96ac95b3.js +46 -0
- package/dist/geometryEngineJSON-fecd2377.js +171 -0
- package/dist/geometryEngineWorker-3cc93f48.js +11 -0
- package/dist/geometryServiceUtils-99ffac76.js +28 -0
- package/dist/georeference-597e7b2a.js +291 -0
- package/dist/gif-24ef6c2c.js +323 -0
- package/dist/gltfexport-f5557b01.js +705 -0
- package/dist/groupLayerUtils-429ce1be.js +39 -0
- package/dist/heatmapUtils-582b52e1.js +45 -0
- package/dist/highlightReasons-6f0f9ef6.js +19 -0
- package/dist/hydrated-31a838fb.js +40 -0
- package/dist/i3s-3437a8f0.js +809 -0
- package/dist/icon-6764e79e.js +127 -0
- package/dist/imageBitmapUtils-d56cd963.js +23 -0
- package/dist/imageUtils-5fc5f2e1.js +69 -0
- package/dist/imageUtils-d0a1bdd3.js +89 -0
- package/dist/imageryUtils-31c938b0.js +43 -0
- package/dist/index-a8d87ec0.js +45604 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +26 -25
- package/dist/input-message-067fbc56.js +92 -0
- package/dist/input2-d25d1697.js +575 -0
- package/dist/interactive-79c8f5d7.js +80 -0
- package/dist/jsonContext-b5489a22.js +15 -0
- package/dist/jsonUtils-34961e68.js +86 -0
- package/dist/jsonUtils-65dc6fdf.js +476 -0
- package/dist/jsonUtils-980c608d.js +59 -0
- package/dist/kmlUtils-b1b9817a.js +112 -0
- package/dist/knowledgeGraphService-53d3ffbb.js +739 -0
- package/dist/knowledgegraph-bd84abd0.js +149 -0
- package/dist/labelUtils-333abe25.js +61 -0
- package/dist/labelingInfo-6d452fa4.js +46 -0
- package/dist/layersCreator-2cc797a3.js +151 -0
- package/dist/layersLoader-028db48b.js +197 -0
- package/dist/lazyLayerLoader-2dd5721b.js +10 -0
- package/dist/lclayout-44591238.js +773 -0
- package/dist/lengthUtils-7339106c.js +5 -0
- package/dist/lerc-wasm-49e10ccb.js +325 -0
- package/dist/libtess-asm-ac16428b.js +3673 -0
- package/dist/libtess-f4e34dcf.js +269 -0
- package/dist/lineSegment-0e4aefd8.js +76 -0
- package/dist/loadGLTFMesh-4afc2514.js +181 -0
- package/dist/loadable-a2fd544f.js +24 -0
- package/dist/loader-fbae5e8f.js +79 -0
- package/dist/lyr3DWorker-1fc30357.js +2108 -0
- package/dist/mapViewDeps-59a6c6c7.js +3052 -0
- package/dist/mediaLayerUtils-642a4077.js +35 -0
- package/dist/meshFeatureSet-91312223.js +126 -0
- package/dist/meshVertexSpaceUtils-48eddc77.js +58 -0
- package/dist/multidimensionalUtils-705f0902.js +290 -0
- package/dist/normalizeUtilsSync-71d587bd.js +181 -0
- package/dist/number-063f85f4.js +128 -0
- package/dist/objectResourceUtils-0e881546.js +1455 -0
- package/dist/observers-745d564e.js +30 -0
- package/dist/ogcFeatureUtils-80329692.js +206 -0
- package/dist/openCloseComponent-1c398ac3.js +37 -0
- package/dist/orientedBoundingBox-a29567df.js +447 -0
- package/dist/parser-65ddb097.js +488 -0
- package/dist/pbf-b0a9807c.js +215 -0
- package/dist/pbfQueryUtils-3cd28b30.js +422 -0
- package/dist/pe-wasm-fe3a1187.js +887 -0
- package/dist/persistable-36a3796e.js +89 -0
- package/dist/perspectiveUtils-b75aeded.js +42 -0
- package/dist/pieChart-bc276742.js +555 -0
- package/dist/plane-79192909.js +160 -0
- package/dist/popupUtils-022834aa.js +22 -0
- package/dist/popupUtils-4b2bd688.js +50 -0
- package/dist/portalItemUtils-052627b4.js +57 -0
- package/dist/portalLayers-3be98e63.js +312 -0
- package/dist/portalUtils-b665fd61.js +7 -0
- package/dist/programUtils-00a4e18d.js +59 -0
- package/dist/project-032d84cf.js +21 -0
- package/dist/projectPointToVector-3a48d9a2.js +14 -0
- package/dist/projectVectorToVector-4c6a3902.js +13 -0
- package/dist/quantityUtils-a39f9287.js +33 -0
- package/dist/quantizationUtils-4616cce9.js +68 -0
- package/dist/quat-5e906b75.js +104 -0
- package/dist/query-2ab99d18.js +89 -0
- package/dist/queryAttachments-15a42419.js +39 -0
- package/dist/queryEngineUtils-ff4789cd.js +21 -0
- package/dist/queryTopFeatures-5eb3ccc9.js +50 -0
- package/dist/queryZScale-62422052.js +12 -0
- package/dist/rasterProjectionHelper-b605f2ee.js +577 -0
- package/dist/rasterUtils-f2036a08.js +122 -0
- package/dist/rasterizingUtils-0c9cf9ce.js +46 -0
- package/dist/request-00229175.js +46 -0
- package/dist/requestImageUtils-90da2619.js +8 -0
- package/dist/resourceExtension-eadbfa3f.js +17 -0
- package/dist/resourceUtils-28b3c1e8.js +42 -0
- package/dist/resourceUtils-4e9ccf63.js +69 -0
- package/dist/resourceUtils-666fad8a.js +62 -0
- package/dist/saveAPIKeyUtils-1a4f92e5.js +8 -0
- package/dist/saveUtils-5b62c0b1.js +24 -0
- package/dist/scaleUtils-6153583e.js +23 -0
- package/dist/scrim-6e0e08c4.js +114 -0
- package/dist/serviceCapabilitiesUtils-96f8d393.js +64 -0
- package/dist/sourceUtils-5aee3b16.js +71 -0
- package/dist/sphere-512478f6.js +199 -0
- package/dist/statsWorker-183f2d29.js +37 -0
- package/dist/streamLayerUtils-a1e8e58a.js +31 -0
- package/dist/style.css +1 -1
- package/dist/styleUtils-49a8dabd.js +14 -0
- package/dist/styleUtils-52e000d6.js +75 -0
- package/dist/sublayerUtils-65a83d58.js +37 -0
- package/dist/substitute-0272cab6.js +52 -0
- package/dist/symbolColorUtils-261cba60.js +8 -0
- package/dist/symbolLayerUtils-e0203fd7.js +31 -0
- package/dist/symbologySnappingCandidates-eeda4ddf.js +221 -0
- package/dist/t9n-147b4f00.js +349 -0
- package/dist/testSVGPremultipliedAlpha-e3c11fd6.js +94 -0
- package/dist/timeSupport-3ddd7e4b.js +410 -0
- package/dist/triangle-28fd7dff.js +98 -0
- package/dist/unitConversionUtils-df3ffd70.js +17 -0
- package/dist/unitFormatUtils-d857519e.js +40 -0
- package/dist/uploadAssetErrors-18a6fad7.js +70 -0
- package/dist/uploadAssets-f2c89175.js +330 -0
- package/dist/utils-214b98cc.js +91 -0
- package/dist/utils-283fbef1.js +34 -0
- package/dist/utils-333b2280.js +2746 -0
- package/dist/utils-7202e24d.js +232 -0
- package/dist/utils-a7d5b733.js +419 -0
- package/dist/utils-cffde1b1.js +433 -0
- package/dist/utils-e4309923.js +79 -0
- package/dist/utils-e582955c.js +73 -0
- package/dist/utils3-d4b9a6af.js +75 -0
- package/dist/vec3-d9885b29.js +81 -0
- package/dist/vec42-d5675dd5.js +125 -0
- package/dist/versionUtils-2a4f90d3.js +161 -0
- package/dist/visualVariableUtils-d45d2e59.js +267 -0
- package/dist/webStyleSymbolUtils-5d8e6604.js +48 -0
- package/dist/webglDeps-c5e1e661.js +23 -0
- package/dist/wfsUtils-a004cee1.js +343 -0
- package/dist/workerHelper-a0956a07.js +11 -0
- package/dist/xyChart-e8a9ed1d.js +3335 -0
- package/package.json +1 -1
- package/dist/AGraphicContainer-0a4e0426.js +0 -109
- package/dist/APIKeyMixin-83e85532.js +0 -19
- package/dist/Analysis-c4011253.js +0 -31
- package/dist/ArcGISCachedService-1c6af1c1.js +0 -47
- package/dist/ArcGISService-1d880889.js +0 -25
- package/dist/AreaMeasurement2D-86006a71.js +0 -405
- package/dist/AreaMeasurement3D-1825243c.js +0 -488
- package/dist/AttachmentInfo-fa04c641.js +0 -34
- package/dist/AttachmentQuery-1450c2f7.js +0 -18
- package/dist/AttributeStore-02f947ea.js +0 -1707
- package/dist/BaseDynamicLayerView2D-eb11c757.js +0 -63
- package/dist/BingMapsLayer-7ad7d511.js +0 -112
- package/dist/Bitmap-14a020d8.js +0 -128
- package/dist/BitmapContainer-cc71fd24.js +0 -23
- package/dist/BlendLayer-e2f97659.js +0 -13
- package/dist/BoundsStore-8612892f.js +0 -63
- package/dist/BufferObject-bd932c2c.js +0 -100
- package/dist/BufferView-97ed14c7.js +0 -683
- package/dist/BuildingSceneLayer-3f5380c8.js +0 -535
- package/dist/Button-15031955.js +0 -36
- package/dist/CSVLayer-a76db6f4.js +0 -208
- package/dist/CSVSourceWorker-afe160ed.js +0 -367
- package/dist/CatalogDynamicGroupLayerView2D-be946494.js +0 -66
- package/dist/CatalogFootprintLayerView2D-14763204.js +0 -76
- package/dist/CatalogLayer-7d6228dd.js +0 -262
- package/dist/CatalogLayerView2D-13e32a42.js +0 -52
- package/dist/ClassBreaksDefinition-7040a7fc.js +0 -18
- package/dist/ColorMaterial.glsl-e56765f1.js +0 -64
- package/dist/ColorSet-4ff0a7b7.js +0 -45
- package/dist/ColorStop-1e154045.js +0 -29
- package/dist/Container-6e3b610b.js +0 -521
- package/dist/CustomParametersMixin-c01280c0.js +0 -12
- package/dist/DefaultMaterial.glsl-e7e23b90.js +0 -42
- package/dist/DefaultMaterial_COLOR_GAMMA-7fd21704.js +0 -653
- package/dist/DefaultTheme-3c5b433f.js +0 -130
- package/dist/DeleteForwardEditsParameters-7073c5e5.js +0 -18
- package/dist/DimensionLayer-f921dd3d.js +0 -129
- package/dist/DirectLineMeasurement3D-61d14af2.js +0 -449
- package/dist/DistanceMeasurement2D-b023b35c.js +0 -303
- package/dist/DoubleArray-1186b8b8.js +0 -25
- package/dist/Dropdown/Filter/Filter.types.d.ts +0 -17
- package/dist/Dropdown/Filter/test.mocks.d.ts +0 -6
- package/dist/Dropdown/List/Dropdown.List.d.ts +0 -73
- package/dist/Dropdown/List/List.types.d.ts +0 -11
- package/dist/Dropdown/List/test.mocks.d.ts +0 -7
- package/dist/EdgeProcessingWorker-cb6277ad.js +0 -63
- package/dist/EditBusLayer-9d740f8f.js +0 -107
- package/dist/ElevationInfo-581ff99d.js +0 -56
- package/dist/ElevationLayer-42b57d9b.js +0 -129
- package/dist/ElevationQuery-f6d0cf9f.js +0 -598
- package/dist/ElevationSamplerWorker-50d805bb.js +0 -62
- package/dist/ExportImageParameters-5b047f92.js +0 -66
- package/dist/ExportStrategy-b6c54d77.js +0 -93
- package/dist/ExportWMSImageParameters-ff5a3ac8.js +0 -33
- package/dist/External-695a389a.js +0 -110
- package/dist/FeatureCollectionSnappingSource-fdaed9e0.js +0 -130
- package/dist/FeatureCommandQueue-c2bd1a39.js +0 -1244
- package/dist/FeatureEffect-9ea1b3da.js +0 -39
- package/dist/FeatureEffectLayer-0fa169c4.js +0 -13
- package/dist/FeatureFilter-638c4cae.js +0 -27
- package/dist/FeatureLayer-2a419d3e.js +0 -693
- package/dist/FeatureLayerBase-7331e738.js +0 -148
- package/dist/FeatureLayerSource-733186fb.js +0 -444
- package/dist/FeatureLayerView2D-bc4994b6.js +0 -1967
- package/dist/FeaturePipelineWorker-5f68488c.js +0 -3633
- package/dist/FeatureReductionLayer-0c152478.js +0 -225
- package/dist/FeatureReductionSelection-f952512d.js +0 -22
- package/dist/FeatureServiceSnappingSource-4c02d5a3.js +0 -481
- package/dist/FeatureServiceSnappingSourceWorker-c2a1dc50.js +0 -747
- package/dist/FeatureSet-2c6b8e00.js +0 -188
- package/dist/FeatureStore-a26846c0.js +0 -131
- package/dist/FeatureTemplate-1b6b7e2d.js +0 -12
- package/dist/FeatureType-9e1f1a7d.js +0 -25
- package/dist/FieldsIndex-91711836.js +0 -109
- package/dist/FormTemplate-ae0cfb6e.js +0 -350
- package/dist/GeoJSONLayer-b2070c34.js +0 -236
- package/dist/GeoJSONSourceWorker-aecb5f9b.js +0 -247
- package/dist/GeoRSSLayer-3743b41f.js +0 -73
- package/dist/GeoRSSLayerView2D-098c24bc.js +0 -140
- package/dist/GeometryUtils-036c7f22.js +0 -403
- package/dist/GraphicContainer-ece3945e.js +0 -26
- package/dist/GraphicManipulator-bc92899f.js +0 -1499
- package/dist/GraphicsLayer-764f0324.js +0 -38
- package/dist/GraphicsLayerView2D-36908d0c.js +0 -114
- package/dist/GraphicsSnappingSource-2bb681c0.js +0 -273
- package/dist/GraphicsView2D-e9cf5cd6.js +0 -620
- package/dist/GroupLayer-5ea5b71b.js +0 -147
- package/dist/GroupLayerView2D-22ec9eaa.js +0 -98
- package/dist/HUDMaterial.glsl-80ab7d22.js +0 -65
- package/dist/HighlightCounter-36842e52.js +0 -41
- package/dist/HighlightGraphicContainer-10cb9671.js +0 -18
- package/dist/I3SBinaryReader-9dbdc661.js +0 -310
- package/dist/I3SLayerDefinitions-b56e2c87.js +0 -55
- package/dist/I3SUtil-5461dc89.js +0 -59
- package/dist/IdentityManager-bb063156.js +0 -899
- package/dist/ImageHistogramParameters-1f8e5179.js +0 -905
- package/dist/ImageryLayer-a807d3b3.js +0 -1799
- package/dist/ImageryLayerView2D-358a3267.js +0 -352
- package/dist/ImageryTileLayer-0f67f262.js +0 -2157
- package/dist/ImageryTileLayerView2D-2bc2bb67.js +0 -1110
- package/dist/Indices-0c5304f2.js +0 -67
- package/dist/IntegratedMesh3DTilesLayer-be69dca8.js +0 -112
- package/dist/IntegratedMeshLayer-3c070523.js +0 -141
- package/dist/InteractiveAnalysisViewModel-3005a4a6.js +0 -7397
- package/dist/InterleavedLayout-d37b99a2.js +0 -163
- package/dist/KMLLayer-2011c3c6.js +0 -162
- package/dist/KMLLayerView2D-5d17145f.js +0 -253
- package/dist/KnowledgeGraphLayerView2D-7172b91b.js +0 -43
- package/dist/LRUCache-39211cf9.js +0 -32
- package/dist/LabelClass-d1080628.js +0 -135
- package/dist/LabelMetric-ab56c6b3.js +0 -400
- package/dist/LaserlinePath.glsl-df8f92cc.js +0 -64
- package/dist/Laserlines.glsl-f7d93e3f.js +0 -65
- package/dist/LayerFloorInfo-3edeb9a2.js +0 -15
- package/dist/LayerView-1c58c8c6.js +0 -206
- package/dist/LercWorker-c7a2aca1.js +0 -157
- package/dist/LineOfSightLayer-3028e21f.js +0 -147
- package/dist/LinkChartLayer-988ae660.js +0 -1027
- package/dist/Lyr3DWorker-4c8c758f.js +0 -82
- package/dist/MagnifierPrograms-123961a3.js +0 -806
- package/dist/MapImageLayer-9241ad63.js +0 -169
- package/dist/MapImageLayerView2D-726e5c66.js +0 -146
- package/dist/MapNotesLayer-2d2db99b.js +0 -283
- package/dist/MapNotesLayerView2D-41f5790c.js +0 -161
- package/dist/MapServiceLayerViewHelper-8f5228ec.js +0 -288
- package/dist/MeasurementWidgetContent-504fd868.js +0 -2642
- package/dist/MediaLayer-e71ce661.js +0 -523
- package/dist/MediaLayerView2D-33c67404.js +0 -332
- package/dist/MemCache-413327b3.js +0 -227
- package/dist/MemorySourceWorker-b0e70dd0.js +0 -222
- package/dist/Mesh-98c4e050.js +0 -980
- package/dist/MeshLocalVertexSpace-7a7e4d4e.js +0 -19
- package/dist/MultiOriginJSONSupport-2fca3cc5.js +0 -158
- package/dist/OGCFeatureLayer-451fbd45.js +0 -211
- package/dist/OGCFeatureLayerView2D-d23b08d2.js +0 -82
- package/dist/ObjectStack-742b2ff3.js +0 -21
- package/dist/Octree-a3c8e90e.js +0 -495
- package/dist/OpenStreetMapLayer-9bb91f97.js +0 -30
- package/dist/OperationalLayer-fbfada66.js +0 -44
- package/dist/OrderByInfo-335eb561.js +0 -16
- package/dist/OrderedLayer-29b4ac64.js +0 -26
- package/dist/OrientedImageryLayer-aa2498e2.js +0 -216
- package/dist/OverlayCompositing.glsl-4b1e83c2.js +0 -65
- package/dist/OverrideHelper-74cc3959.js +0 -242
- package/dist/PBFDecoderWorker-fd40e0f9.js +0 -213
- package/dist/PointCloudLayer-64cdbbb2.js +0 -197
- package/dist/PointCloudUniqueValueRenderer-db9b3a98.js +0 -115
- package/dist/PointCloudWorker-a5eb5224.js +0 -212
- package/dist/PooledRBush-be6fe17a.js +0 -272
- package/dist/Popup-db250fe6.js +0 -3990
- package/dist/PortalLayer-a6ce110e.js +0 -126
- package/dist/Program-ecabc523.js +0 -694
- package/dist/ProgramTemplate-e5ce3b0f.js +0 -35
- package/dist/QueryEngine-87b2546b.js +0 -896
- package/dist/QueryTask-36400ec7.js +0 -119
- package/dist/RasterSymbolizer-cfd47847.js +0 -3024
- package/dist/RasterVFDisplayObject-d4c967ea.js +0 -581
- package/dist/RasterWorker-068ae23a.js +0 -78
- package/dist/RawBlockCache-9e8d4c35.js +0 -185
- package/dist/RealisticTree.glsl-adab8e44.js +0 -42
- package/dist/RefreshableLayer-eec34ca2.js +0 -80
- package/dist/RefreshableLayerView-ee06f08c.js +0 -16
- package/dist/Relationship-a7eb5489.js +0 -64
- package/dist/RelationshipQuery-4551bb04.js +0 -22
- package/dist/RenderingContext-9e8fac0d.js +0 -889
- package/dist/RibbonLine.glsl-5990bf5f.js +0 -65
- package/dist/RouteLayer-858bc482.js +0 -786
- package/dist/RouteLayerView2D-a70d519f.js +0 -195
- package/dist/SDFHelper-efca0a53.js +0 -140
- package/dist/SSAO.glsl-7670c1fc.js +0 -43
- package/dist/SSAOBlur.glsl-3523d6af.js +0 -42
- package/dist/ScaleRangeLayer-7f440b85.js +0 -21
- package/dist/SceneLayer-999bd23f.js +0 -542
- package/dist/SceneLayerSnappingSource-9420aaed.js +0 -218
- package/dist/SceneLayerSnappingSourceWorker-be67e552.js +0 -112
- package/dist/SceneLayerWorker-201939c2.js +0 -164
- package/dist/SceneService-318eff2f.js +0 -215
- package/dist/Scheduler-279ea0c3.js +0 -373
- package/dist/ShadedColorMaterial.glsl-bd2979d8.js +0 -64
- package/dist/SnappingOperation-5100da71.js +0 -48
- package/dist/SourceLayerData-50c2b980.js +0 -116
- package/dist/SpatialFilter-b6c6b2fc.js +0 -1701
- package/dist/Stop-196981da.js +0 -281
- package/dist/StreamLayer-37b818b8.js +0 -188
- package/dist/StreamLayerView2D-7f0f45bc.js +0 -164
- package/dist/StyleRepository-4e8fa398.js +0 -2212
- package/dist/SublayersOwner-90d10612.js +0 -545
- package/dist/SubtypeGroupLayer-959cabf8.js +0 -514
- package/dist/SubtypeGroupLayerView2D-95e63b42.js +0 -84
- package/dist/TechniqueInstance-bd190c26.js +0 -233
- package/dist/TemporalLayer-aacda167.js +0 -23
- package/dist/Texture-3618be49.js +0 -501
- package/dist/TextureOnly.glsl-fcca7034.js +0 -65
- package/dist/Theme-85608a9a.js +0 -3426
- package/dist/Tick-79e96104.js +0 -723
- package/dist/TileContainer-f1e7edd8.js +0 -31
- package/dist/TileInfoTilemapCache-2f882821.js +0 -38
- package/dist/TileLayer-db13a237.js +0 -194
- package/dist/TileLayerView2D-15af6be4.js +0 -187
- package/dist/TilemapCache-fc4b2c6c.js +0 -189
- package/dist/TimeInfo-39a9d4e1.js +0 -42
- package/dist/TimeOnly-b759457a.js +0 -706
- package/dist/Tooltip-0ba72b27.js +0 -138
- package/dist/TopFeaturesQuery-a11ecc39.js +0 -32
- package/dist/TurboLine-5e62d290.js +0 -565
- package/dist/UniqueValueRenderer-bf2f3234.js +0 -1039
- package/dist/UnknownLayer-2cf71578.js +0 -30
- package/dist/UnknownTimeZone-aabdcf56.js +0 -15
- package/dist/UnsupportedLayer-36650e4a.js +0 -31
- package/dist/UpdateTracking2D-b6d16b0c.js +0 -8566
- package/dist/Util-8f54c96b.js +0 -57
- package/dist/VectorTileLayer-ddcca4ec.js +0 -544
- package/dist/VectorTileLayerView2D-8176946a.js +0 -2108
- package/dist/Version-9eb299cd.js +0 -33
- package/dist/VertexArrayObject-d1a4262b.js +0 -73
- package/dist/VertexColor.glsl-fd9f70e0.js +0 -2683
- package/dist/VertexSnappingCandidate-70513010.js +0 -13
- package/dist/VideoLayerView2D-e08e1d57.js +0 -124
- package/dist/VoxelLayer-959702aa.js +0 -631
- package/dist/WFSLayer-4a41b206.js +0 -221
- package/dist/WFSSourceWorker-53d88982.js +0 -157
- package/dist/WGLContainer-e9e8616e.js +0 -5426
- package/dist/WMSLayer-8e44f55c.js +0 -536
- package/dist/WMSLayerView2D-415a1793.js +0 -117
- package/dist/WMTSLayer-804f4bed.js +0 -531
- package/dist/WMTSLayerView2D-96186a90.js +0 -142
- package/dist/WebTileLayer-7391ea01.js +0 -110
- package/dist/WhereClause-1816217e.js +0 -2766
- package/dist/WorkerHandle-25f67c67.js +0 -47
- package/dist/WorkerTileHandler-a7e508bc.js +0 -1539
- package/dist/action-3ce81e45.js +0 -198
- package/dist/action-group-f2d26c2b.js +0 -145
- package/dist/action-menu-015d91ab.js +0 -1759
- package/dist/apng-e5532475.js +0 -392
- package/dist/arcade-dbe2ca4a.js +0 -229
- package/dist/arcadeAsyncRuntime-78b83b41.js +0 -943
- package/dist/arcadeUtils-cb1066a6.js +0 -8741
- package/dist/arcgis-knowledge-client-core-7379d99e.js +0 -1218
- package/dist/arcgis-knowledge-client-core-simd-ea8b4d20.js +0 -1218
- package/dist/arcgisLayers-cd3494fd.js +0 -152
- package/dist/associatedFeatureServiceUtils-da8d377d.js +0 -92
- package/dist/axisAngleDegrees-19922758.js +0 -49
- package/dist/basis_transcoder-bf0490cc.js +0 -1248
- package/dist/calcite-action-0db4f61c.js +0 -22
- package/dist/calcite-action-bar-1b4c89cb.js +0 -303
- package/dist/calcite-action-group-3c8a934c.js +0 -28
- package/dist/calcite-button-1079a10c.js +0 -228
- package/dist/calcite-flow-c1e71a12.js +0 -128
- package/dist/calcite-flow-item-1097b48f.js +0 -499
- package/dist/calcite-icon-c88b4a67.js +0 -16
- package/dist/calcite-input-8c33ee84.js +0 -24
- package/dist/calcite-label-7fbfbe36.js +0 -79
- package/dist/calcite-list-93af4ae2.js +0 -2135
- package/dist/calcite-list-item-f0a6cda3.js +0 -576
- package/dist/calcite-list-item-group-107a313e.js +0 -71
- package/dist/calcite-loader-5194bf83.js +0 -14
- package/dist/calcite-modal-486280cc.js +0 -333
- package/dist/calcite-notice-a81274a8.js +0 -181
- package/dist/calcite-option-0020a955.js +0 -94
- package/dist/calcite-scrim-27d65e7f.js +0 -18
- package/dist/calcite-select-05f25c2a.js +0 -231
- package/dist/capabilities-238bde7d.js +0 -50
- package/dist/chartCommon-7eda170a.js +0 -256
- package/dist/chartUtilsAm5-fd8aeac2.js +0 -2954
- package/dist/clientSideDefaults-b91506af.js +0 -39
- package/dist/colorRamps-6027ea73.js +0 -38
- package/dist/colorUtils-3dd4b884.js +0 -164
- package/dist/commonProperties-bf4d305f.js +0 -60
- package/dist/computeTranslationToOriginAndRotation-ca5a9439.js +0 -60
- package/dist/conditionalSlot-80a4c6ff.js +0 -27
- package/dist/createConnection-70dd787a.js +0 -299
- package/dist/dataUtils-b632d3a2.js +0 -1421
- package/dist/deduplicate-e13aa9e2.js +0 -89
- package/dist/defaults-40a1a995.js +0 -31
- package/dist/deleteForwardEdits-b0182a08.js +0 -13
- package/dist/diffUtils-5f43e52a.js +0 -90
- package/dist/drapedUtils-416e5304.js +0 -75
- package/dist/earcut-235aa57d.js +0 -292
- package/dist/edgeProcessing-43d45a32.js +0 -252
- package/dist/editingSupport-7706f838.js +0 -203
- package/dist/editsZScale-49d8a8cd.js +0 -37
- package/dist/elevationInfoUtils-3fbfcf1f.js +0 -126
- package/dist/executeForIds-419ba6a3.js +0 -14
- package/dist/executeForTopCount-8a8ba5c7.js +0 -17
- package/dist/executeForTopExtents-9f24d5d0.js +0 -17
- package/dist/executeForTopIds-0bfdb55f.js +0 -17
- package/dist/executeQueryJSON-2a2e9e1b.js +0 -15
- package/dist/executeQueryPBF-f10de9ec.js +0 -152
- package/dist/executeRelationshipQuery-0680cb30.js +0 -53
- package/dist/executeTopFeaturesQuery-c553d696.js +0 -18
- package/dist/featureConversionUtils-83783887.js +0 -479
- package/dist/featureLayerUtils-545d260a.js +0 -250
- package/dist/featureLayerUtils-b18e6016.js +0 -142
- package/dist/featureSetUtils-0c7ba073.js +0 -2530
- package/dist/featuresetbase-aadfabb3.js +0 -707
- package/dist/featuresetgeom-a405018e.js +0 -99
- package/dist/featuresetstats-f6602402.js +0 -81
- package/dist/featuresetstring-834ea865.js +0 -95
- package/dist/fetchService-dac740ef.js +0 -33
- package/dist/fieldProperties-b024e721.js +0 -33
- package/dist/floatRGBA-46ee3e38.js +0 -20
- package/dist/form-0b2f0ac9.js +0 -138
- package/dist/geohashUtils-418d1ca6.js +0 -85
- package/dist/geojson-96d3353d.js +0 -208
- package/dist/geomasync-ff5b3734.js +0 -567
- package/dist/geometryEngine-8fcb3d59.js +0 -192
- package/dist/geometryEngineAsync-212f4b0f.js +0 -217
- package/dist/geometryEngineBase-4c2ff8b9.js +0 -18463
- package/dist/geometryEngineJSON-131b461e.js +0 -171
- package/dist/geometryEngineJSON-b43cf67f.js +0 -46
- package/dist/geometryEngineWorker-707ca480.js +0 -11
- package/dist/geometryServiceUtils-af23d0b5.js +0 -28
- package/dist/georeference-02bc532d.js +0 -291
- package/dist/gif-b072aa1c.js +0 -323
- package/dist/gltfexport-3362ea71.js +0 -705
- package/dist/groupLayerUtils-81545911.js +0 -39
- package/dist/heatmapUtils-b25824e4.js +0 -45
- package/dist/highlightReasons-5b8b2665.js +0 -19
- package/dist/hydrated-b0c62926.js +0 -40
- package/dist/i3s-32edc725.js +0 -809
- package/dist/icon-453c7f62.js +0 -127
- package/dist/imageBitmapUtils-51497e26.js +0 -23
- package/dist/imageUtils-1d1da6e6.js +0 -89
- package/dist/imageUtils-8c40eba6.js +0 -69
- package/dist/imageryUtils-0c00fbf3.js +0 -43
- package/dist/index-3b4c2147.js +0 -45568
- package/dist/input-message-32600f49.js +0 -92
- package/dist/input2-1c0831ed.js +0 -575
- package/dist/interactive-5824e097.js +0 -80
- package/dist/jsonContext-ec21ce85.js +0 -15
- package/dist/jsonUtils-012feb40.js +0 -476
- package/dist/jsonUtils-3979baa3.js +0 -59
- package/dist/jsonUtils-3eb7c689.js +0 -86
- package/dist/kmlUtils-4c198ea5.js +0 -112
- package/dist/knowledgeGraphService-a159d815.js +0 -739
- package/dist/knowledgegraph-eb0d44d4.js +0 -149
- package/dist/labelUtils-01b646c7.js +0 -61
- package/dist/labelingInfo-148dcd26.js +0 -46
- package/dist/layersCreator-4e94f616.js +0 -151
- package/dist/layersLoader-f4e3ab33.js +0 -197
- package/dist/lazyLayerLoader-eb51910e.js +0 -10
- package/dist/lclayout-4d303c41.js +0 -773
- package/dist/lengthUtils-6abaf27a.js +0 -5
- package/dist/lerc-wasm-0ae912df.js +0 -325
- package/dist/libtess-asm-91c97dcd.js +0 -3673
- package/dist/libtess-cba14731.js +0 -269
- package/dist/lineSegment-8f04aab4.js +0 -76
- package/dist/loadGLTFMesh-71542570.js +0 -181
- package/dist/loadable-e7c40a8a.js +0 -24
- package/dist/loader-6272e4b3.js +0 -79
- package/dist/lyr3DWorker-9ee4ee8b.js +0 -2108
- package/dist/mapViewDeps-b17a2e04.js +0 -3052
- package/dist/mediaLayerUtils-f0ccfd82.js +0 -35
- package/dist/meshFeatureSet-304dfa08.js +0 -126
- package/dist/meshVertexSpaceUtils-e7f774fa.js +0 -58
- package/dist/multidimensionalUtils-642f26da.js +0 -290
- package/dist/normalizeUtilsSync-b5f617e6.js +0 -181
- package/dist/number-3af512e3.js +0 -128
- package/dist/objectResourceUtils-d45057aa.js +0 -1455
- package/dist/observers-700e505d.js +0 -30
- package/dist/ogcFeatureUtils-440ed0bf.js +0 -206
- package/dist/openCloseComponent-1501c620.js +0 -37
- package/dist/orientedBoundingBox-80988e7f.js +0 -447
- package/dist/parser-6e351b85.js +0 -488
- package/dist/pbf-a85c52b3.js +0 -215
- package/dist/pbfQueryUtils-5f25f81f.js +0 -422
- package/dist/pe-wasm-e588110b.js +0 -887
- package/dist/persistable-ad01d0ca.js +0 -89
- package/dist/perspectiveUtils-ab58ddbb.js +0 -42
- package/dist/pieChart-d3793e8b.js +0 -555
- package/dist/plane-e103e8ed.js +0 -160
- package/dist/popupUtils-5f7c3e79.js +0 -50
- package/dist/popupUtils-b95ab60a.js +0 -22
- package/dist/portalItemUtils-3d59513a.js +0 -57
- package/dist/portalLayers-16b2f807.js +0 -312
- package/dist/portalUtils-3789afb0.js +0 -7
- package/dist/programUtils-c8d96b39.js +0 -59
- package/dist/project-7eaa59a4.js +0 -21
- package/dist/projectPointToVector-19151d97.js +0 -14
- package/dist/projectVectorToVector-d552535c.js +0 -13
- package/dist/quantityUtils-258bfdb4.js +0 -33
- package/dist/quantizationUtils-752e4d24.js +0 -68
- package/dist/quat-6dc51256.js +0 -104
- package/dist/query-da893693.js +0 -89
- package/dist/queryAttachments-df86b71d.js +0 -39
- package/dist/queryEngineUtils-ffc50ce5.js +0 -21
- package/dist/queryTopFeatures-5a58a12d.js +0 -50
- package/dist/queryZScale-39ffaf30.js +0 -12
- package/dist/rasterProjectionHelper-d13bc46d.js +0 -577
- package/dist/rasterUtils-22b15453.js +0 -122
- package/dist/rasterizingUtils-3388ddbf.js +0 -46
- package/dist/request-82a2415a.js +0 -46
- package/dist/requestImageUtils-2fca27f8.js +0 -8
- package/dist/resourceExtension-672d03cc.js +0 -17
- package/dist/resourceUtils-95b9964a.js +0 -42
- package/dist/resourceUtils-b1e50d5e.js +0 -69
- package/dist/resourceUtils-e8831103.js +0 -62
- package/dist/saveAPIKeyUtils-ee9b0447.js +0 -8
- package/dist/saveUtils-1323ad64.js +0 -24
- package/dist/scaleUtils-1a70f716.js +0 -23
- package/dist/scrim-c0a641cd.js +0 -114
- package/dist/serviceCapabilitiesUtils-33d4e1c0.js +0 -64
- package/dist/sourceUtils-e8c5db4e.js +0 -71
- package/dist/sphere-75cef429.js +0 -199
- package/dist/statsWorker-1f1bc582.js +0 -37
- package/dist/streamLayerUtils-c85a0eed.js +0 -31
- package/dist/styleUtils-05bc85a5.js +0 -75
- package/dist/styleUtils-7bd8d0a7.js +0 -14
- package/dist/sublayerUtils-feb77591.js +0 -37
- package/dist/substitute-c31da60c.js +0 -52
- package/dist/symbolColorUtils-3c385668.js +0 -8
- package/dist/symbolLayerUtils-2d2753b7.js +0 -31
- package/dist/symbologySnappingCandidates-00eeca39.js +0 -221
- package/dist/t9n-55800455.js +0 -349
- package/dist/testSVGPremultipliedAlpha-ec1f73c4.js +0 -94
- package/dist/timeSupport-a7623294.js +0 -410
- package/dist/triangle-c799f11b.js +0 -98
- package/dist/unitConversionUtils-05050e6d.js +0 -17
- package/dist/unitFormatUtils-2a84c371.js +0 -40
- package/dist/uploadAssetErrors-601b044e.js +0 -70
- package/dist/uploadAssets-5a835c8a.js +0 -330
- package/dist/utils-2dc379da.js +0 -79
- package/dist/utils-34b1ea70.js +0 -2746
- package/dist/utils-45c14202.js +0 -232
- package/dist/utils-484969fb.js +0 -91
- package/dist/utils-5aaff624.js +0 -433
- package/dist/utils-a94dc35d.js +0 -419
- package/dist/utils-e68cfebf.js +0 -34
- package/dist/utils-fc14cc83.js +0 -73
- package/dist/utils3-5745e839.js +0 -75
- package/dist/vec3-12b9e1d8.js +0 -81
- package/dist/vec42-a1569d60.js +0 -125
- package/dist/versionUtils-c4f3617a.js +0 -161
- package/dist/visualVariableUtils-bcb95edc.js +0 -267
- package/dist/webStyleSymbolUtils-9db5b81c.js +0 -48
- package/dist/webglDeps-05e0410a.js +0 -23
- package/dist/wfsUtils-7caaa2cc.js +0 -343
- package/dist/workerHelper-86e37deb.js +0 -11
- package/dist/xyChart-0673158d.js +0 -3335
package/dist/Theme-85608a9a.js
DELETED
|
@@ -1,3426 +0,0 @@
|
|
|
1
|
-
import { eq as ee } from "./index-3b4c2147.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
|
-
};
|