UNPKG

@mapgis/webclient-common

Version:

An important part of the MapGIS Client for JavaScript product, which provides interfaces and functions unrelated to the map engine.

8 lines 2.41 MB
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=105)}([function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GdalUtil=t.buildModuleUrl=t.getMapGISBaseUrl=t.getMetersPerSpatialReference=t.deleteNullValue=t.toDate=t.getFunctionArguments=t.ExpressionParser=t.allSettled=t.inOrderPromise=t.debouncePromise=t.compareObject=t.throttle=t.getTileLayerNearestCenterAndScale=t.convertImageSourceToBase64=t.isWMTSOriginReverse=t.isWMTSBBoxReverse=t.isWMTSReverse=t.isWMSReverse=t.getProjectionSrs=t.inputCss=t.getBaseUrl=t.toJSON=t.getVideoType=t.isObject=t.notNULL=t.cloneObject=t.returnPoint=t.formatPoints=t.newGuid=t.extendDeep=t.isBoolean=t.deepClone=t.isString=t.Log=t.getOutStatisticsParameter=t.getGeometryParameter=t.isNull=t.limitExtentToSRSMaxExtent=t.getExtendExtentByPixel=t.createGeometry=t.normalize=t.defined=t.defaultValue=t.getGUID=t.bind=t.getParameterString=t.urlAppend=t.transformResult=t.isInTheSameDomain=t.isNumber=t.isArray=t.extend=void 0;var n=r(36),i=r(476),a=r(222),o=r(118),s=d(r(82)),l=r(477),u=r(484),c=r(117),f=r(223),h=d(r(485));function d(e){return e&&e.__esModule?e:{default:e}}t.extend=n.extend,t.isArray=n.isArray,t.isNumber=n.isNumber,t.isInTheSameDomain=n.isInTheSameDomain,t.transformResult=n.transformResult,t.urlAppend=n.urlAppend,t.getParameterString=n.getParameterString,t.bind=n.bind,t.getGUID=n.getGUID,t.defaultValue=n.defaultValue,t.defined=n.defined,t.normalize=i.normalize,t.createGeometry=a.createGeometry,t.getExtendExtentByPixel=a.getExtendExtentByPixel,t.limitExtentToSRSMaxExtent=a.limitExtentToSRSMaxExtent,t.isNull=n.isNull,t.getGeometryParameter=n.getGeometryParameter,t.getOutStatisticsParameter=n.getOutStatisticsParameter,t.Log=s.default,t.isString=n.isString,t.deepClone=n.deepClone,t.isBoolean=n.isBoolean,t.extendDeep=n.extendDeep,t.newGuid=n.newGuid,t.formatPoints=n.formatPoints,t.returnPoint=n.returnPoint,t.cloneObject=n.cloneObject,t.notNULL=n.notNULL,t.isObject=n.isObject,t.getVideoType=n.getVideoType,t.toJSON=n.toJSON,t.getBaseUrl=n.getBaseUrl,t.inputCss=n.inputCss,t.getProjectionSrs=n.getProjectionSrs,t.isWMSReverse=n.isWMSReverse,t.isWMTSReverse=n.isWMTSReverse,t.isWMTSBBoxReverse=n.isWMTSBBoxReverse,t.isWMTSOriginReverse=n.isWMTSOriginReverse,t.convertImageSourceToBase64=n.convertImageSourceToBase64,t.getTileLayerNearestCenterAndScale=n.getTileLayerNearestCenterAndScale,t.throttle=n.throttle,t.compareObject=n.compareObject,t.debouncePromise=o.debouncePromise,t.inOrderPromise=o.inOrderPromise,t.allSettled=o.allSettled,t.ExpressionParser=l.ExpressionParser,t.getFunctionArguments=n.getFunctionArguments,t.toDate=u.toDate,t.deleteNullValue=n.deleteNullValue,t.getMetersPerSpatialReference=c.getMetersPerSpatialReference,t.getMapGISBaseUrl=f.getMapGISBaseUrl,t.buildModuleUrl=f.buildModuleUrl,t.GdalUtil=h.default},function(e,t,r){"use strict";t.__esModule=!0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(179));t.default=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,n.default)(e,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()},function(e,t,r){e.exports={default:r(316),__esModule:!0}},function(e,t,r){"use strict";t.__esModule=!0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(70));t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,n.default)(t))&&"function"!=typeof t?e:t}},function(e,t,r){"use strict";t.__esModule=!0;var n=o(r(333)),i=o(r(186)),a=o(r(70));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,a.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(n.default?(0,n.default)(e,t):e.__proto__=t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OutStatisticType=t.TileDisplayStrategy=t.SwipeMode=t.EngineType=t.RasterInterpolationType=t.NormalizationType=t.TemporalUnit=t.TDTLayerType=t.VisualVariableType=t.CustomWKID=t.SeverVectorTileSubLayerType=t.TileSliceType=t.ColorNameToHexMap=t.IGSSceneOriginLayerType=t.ArcType=t.AreaUnits=t.LinearUnits=t.MaterialType=t.WaveStrength=t.WaterbodySize=t.PatternStyle=t.ProfileType=t.AnchorType=t.LinePatternStyle=t.LineMarkerStyle=t.LineMarkerPlacement=t.LineJoinType=t.LineCapType=t.Symbol3DLayerType=t.Corporation=t.WMTSCorporation=t.RadiusUnit=t.PictureFormat=t.UrlServerType=t.ShadowMode=t.SceneMode=t.VerticalAlignment=t.HorizontalAlignment=t.ElevationMode=t.IGSSymbolType=t.SymbolType=t.SketchEditorToolEventType=t.SketchEditorState=t.SketchEditorEventType=t.SketchEditMode=t.SketchDataType=t.VideoSourceType=t.VectorTileGeometryType=t.RendererType=t.AngleUnit=t.LengthUnit=t.ViewEventType=t.LoadStatus=t.LogType=t.IGSGeometryType=t.TokenAttachType=t.UpdateContentType=t.SubLayerType=t.LayerType=t.GeometryType=t.SpatialRelation=t.StatisticType=t.MapEventType=t.LayerEventType=t.FetchMethod=t.ReturnFormat=void 0;var n=ye(r(353)),i=ye(r(354)),a=ye(r(355)),o=ye(r(356)),s=ye(r(357)),l=ye(r(358)),u=ye(r(113)),c=ye(r(359)),f=ye(r(360)),h=ye(r(361)),d=ye(r(362)),p=ye(r(363)),y=ye(r(364)),g=ye(r(365)),m=ye(r(366)),v=ye(r(367)),_=ye(r(368)),S=ye(r(369)),b=ye(r(370)),w=ye(r(371)),x=ye(r(372)),E=ye(r(373)),T=ye(r(374)),I=ye(r(375)),M=ye(r(376)),k=ye(r(144)),P=ye(r(377)),L=ye(r(378)),O=ye(r(145)),C=ye(r(146)),N=ye(r(379)),R=ye(r(380)),G=ye(r(381)),V=ye(r(382)),A=ye(r(383)),D=ye(r(384)),F=ye(r(385)),j=ye(r(386)),B=ye(r(147)),U=ye(r(148)),q=ye(r(387)),J=ye(r(388)),z=ye(r(389)),W=ye(r(390)),H=ye(r(391)),Y=ye(r(190)),X=ye(r(191)),K=ye(r(192)),Z=ye(r(392)),Q=ye(r(393)),$=ye(r(394)),ee=ye(r(395)),te=ye(r(396)),re=ye(r(193)),ne=ye(r(397)),ie=ye(r(398)),ae=ye(r(149)),oe=ye(r(71)),se=ye(r(399)),le=ye(r(400)),ue=ye(r(194)),ce=ye(r(401)),fe=ye(r(402)),he=ye(r(403)),de=ye(r(404)),pe=ye(r(405));function ye(e){return e&&e.__esModule?e:{default:e}}t.ReturnFormat=n.default,t.FetchMethod=i.default,t.LayerEventType=a.default,t.MapEventType=o.default,t.StatisticType=s.default,t.SpatialRelation=l.default,t.GeometryType=u.default,t.LayerType=c.default,t.SubLayerType=f.default,t.UpdateContentType=d.default,t.TokenAttachType=h.default,t.IGSGeometryType=p.default,t.LogType=y.default,t.LoadStatus=g.default,t.ViewEventType=m.default,t.LengthUnit=v.default,t.AngleUnit=_.default,t.RendererType=S.default,t.VectorTileGeometryType=b.default,t.VideoSourceType=w.default,t.SketchDataType=x.default,t.SketchEditMode=E.default,t.SketchEditorEventType=T.default,t.SketchEditorState=I.default,t.SketchEditorToolEventType=M.default,t.SymbolType=k.default,t.IGSSymbolType=P.default,t.ElevationMode=L.default,t.HorizontalAlignment=O.default,t.VerticalAlignment=C.default,t.SceneMode=N.default,t.ShadowMode=R.default,t.UrlServerType=G.default,t.PictureFormat=V.default,t.RadiusUnit=A.default,t.WMTSCorporation=D.default,t.Corporation=F.default,t.Symbol3DLayerType=j.default,t.LineCapType=B.default,t.LineJoinType=U.default,t.LineMarkerPlacement=q.default,t.LineMarkerStyle=J.default,t.LinePatternStyle=z.default,t.AnchorType=W.default,t.ProfileType=H.default,t.PatternStyle=Y.default,t.WaterbodySize=X.default,t.WaveStrength=K.default,t.MaterialType=Z.default,t.LinearUnits=Q.default,t.AreaUnits=$.default,t.ArcType=ee.default,t.IGSSceneOriginLayerType=te.default,t.ColorNameToHexMap=re.default,t.TileSliceType=ne.default,t.SeverVectorTileSubLayerType=ie.default,t.CustomWKID=ae.default,t.VisualVariableType=oe.default,t.TDTLayerType=se.default,t.TemporalUnit=le.default,t.NormalizationType=ue.default,t.RasterInterpolationType=ce.default,t.EngineType=fe.default,t.SwipeMode=he.default,t.TileDisplayStrategy=de.default,t.OutStatisticType=pe.default},function(e,t,r){"use strict";t.__esModule=!0;var n=a(r(3)),i=a(r(349));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function e(t,r,a){null===t&&(t=Function.prototype);var o=(0,i.default)(t,r);if(void 0===o){var s=(0,n.default)(t);return null===s?void 0:e(s,r,a)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(a):void 0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zondy=t.TileMonitor=t.TimeInterval=t.TimeInfo=t.TimeExtent=t.NormalizationType=t.TemporalUnit=t.FeatureExpressionInfo=t.CustomWKID=t.SeverVectorTileSubLayerType=t.SpatialRelation=t.IGSSceneOriginLayerType=t.ArcType=t.AreaUnits=t.LinearUnits=t.LineMarkerStyle=t.LineMarkerPlacement=t.LineJoinType=t.LineCapType=t.Symbol3DLayerType=t.Corporation=t.WMTSCorporation=t.FeatureRender=t.RadiusUnit=t.EPSG=t.Font=t.UrlServerType=t.CoordnateTransform=t.BaiduProject=t.Projection=t.SwipeMode=t.ShadowMode=t.SceneMode=t.ElevationInfo=t.WMTSStyle=t.TileMatrixSet=t.SketchEditorToolEventType=t.SketchEditorState=t.SketchEditorEventType=t.SketchEditMode=t.SketchDataType=t.VideoSourceType=t.ViewEventType=t.ProjectInfoBySrsID=t.ProjectInfo=t.getFeaturesFromFeatureSet=t.FeatureSet=t.Feature=t.OutStatistic=t.ErrorEvent=t.LayerEvent=t.Color=t.Event=t.Evented=t.CollectionFlattener=t.Collection=void 0;var n=k(r(0)),i=r(40),a=k(r(94)),o=k(r(150)),s=k(r(427)),l=k(r(51)),u=k(r(151)),c=k(r(114)),f=k(r(428)),h=k(r(429)),d=k(r(430)),p=r(6),y=k(r(195)),g=k(r(473)),m=k(r(202)),v=k(r(96)),_=k(r(205)),S=k(r(204)),b=r(152),w=k(r(158)),x=k(r(203)),E=k(r(220)),T=k(r(474)),I=k(r(221)),M=k(r(475));function k(e){return e&&e.__esModule?e:{default:e}}t.Collection=o.default,t.CollectionFlattener=s.default,t.Evented=a.default,t.Event=i.Event,t.Color=l.default,t.LayerEvent=i.LayerEvent,t.ErrorEvent=i.ErrorEvent,t.OutStatistic=f.default,t.Feature=b.Feature,t.FeatureSet=b.FeatureSet,t.getFeaturesFromFeatureSet=b.getFeaturesFromFeatureSet,t.ProjectInfo=h.default,t.ProjectInfoBySrsID=d.default,t.ViewEventType=p.ViewEventType,t.VideoSourceType=p.VideoSourceType,t.SketchDataType=p.SketchDataType,t.SketchEditMode=p.SketchEditMode,t.SketchEditorEventType=p.SketchEditorEventType,t.SketchEditorState=p.SketchEditorState,t.SketchEditorToolEventType=p.SketchEditorToolEventType,t.TileMatrixSet=y.default,t.WMTSStyle=g.default,t.ElevationInfo=m.default,t.SceneMode=p.SceneMode,t.ShadowMode=p.ShadowMode,t.SwipeMode=p.SwipeMode,t.Projection=v.default,t.BaiduProject=_.default,t.CoordnateTransform=S.default,t.UrlServerType=p.UrlServerType,t.Font=u.default,t.EPSG=c.default,t.RadiusUnit=p.RadiusUnit,t.FeatureRender=w.default,t.WMTSCorporation=p.WMTSCorporation,t.Corporation=p.Corporation,t.Symbol3DLayerType=p.Symbol3DLayerType,t.LineCapType=p.LineCapType,t.LineJoinType=p.LineJoinType,t.LineMarkerPlacement=p.LineMarkerPlacement,t.LineMarkerStyle=p.LineMarkerStyle,t.LinearUnits=p.LinearUnits,t.AreaUnits=p.AreaUnits,t.ArcType=p.ArcType,t.IGSSceneOriginLayerType=p.IGSSceneOriginLayerType,t.SpatialRelation=p.SpatialRelation,t.SeverVectorTileSubLayerType=p.SeverVectorTileSubLayerType,t.CustomWKID=p.CustomWKID,t.FeatureExpressionInfo=x.default,t.TemporalUnit=p.TemporalUnit,t.NormalizationType=p.NormalizationType,t.TimeExtent=E.default,t.TimeInfo=T.default,t.TimeInterval=I.default,t.TileMonitor=M.default,t.zondy=function e(){(0,n.default)(this,e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiscretizationOptions=t.ArcInfo=t.ArcDiscretizeOutput=t.editGeometryByArc3=t.editFeatureByArc3=t.GeometryEngine=t.createGeometry=t.SpatialReference=t.MultiLineString=t.MultiPolygon=t.Circle=t.MultiPoint=t.Point=t.LineString=t.Polygon=t.Extent=t.Geometry=void 0;var n=g(r(41)),i=g(r(42)),a=g(r(98)),o=g(r(213)),s=g(r(45)),l=g(r(215)),u=g(r(216)),c=g(r(214)),f=g(r(217)),h=g(r(73)),d=r(52),p=g(r(74)),y=r(218);function g(e){return e&&e.__esModule?e:{default:e}}t.Geometry=n.default,t.Extent=i.default,t.Polygon=a.default,t.LineString=o.default,t.Point=s.default,t.MultiPoint=l.default,t.Circle=u.default,t.MultiPolygon=c.default,t.MultiLineString=f.default,t.SpatialReference=h.default,t.createGeometry=d.createGeometry,t.GeometryEngine=p.default,t.editFeatureByArc3=d.editFeatureByArc3,t.editGeometryByArc3=d.editGeometryByArc3,t.ArcDiscretizeOutput=y.ArcDiscretizeOutput,t.ArcInfo=y.ArcInfo,t.DiscretizationOptions=y.DiscretizationOptions},function(e,t,r){e.exports={default:r(347),__esModule:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTitleByLayerInfo=t.getDefaultSymbolByGeometryType=t.mergeCommonClientCapbilities=t.toSublayerArr=t.getLayersCollection=t.createSublayer=t.createLayer=t.flatServerSublayerInfos=t.fireEvent=t.setSublayer=void 0;var n=h(r(22)),i=h(r(50)),a=h(r(19)),o=r(8),s=r(6),l=r(25),u=r(515),c=r(16),f=r(62);function h(e){return e&&e.__esModule?e:{default:e}}t.setSublayer=function(e,t,r){for(var n=!0,i=0;i<e._sublayers.length;i++)if(String(e._sublayers[i].name)===String(t.name)||String(e._sublayers[i].id)===String(t.id)){(0,a.default)(e._sublayers[i],t),n=!1;break}for(var o=0;o<e.allSublayers.length;o++)if(String(e.allSublayers[o].name)===String(t.name)||String(e.allSublayers[o].id)===String(t.id)){(0,a.default)(e.allSublayers[o],t),n=!1;break}if(n)if(t instanceof r)e._sublayers.push(t);else if(t instanceof Object&&!(t instanceof Array))for(var s=0;s<e.allSublayers.length;s++)if(String(t.id)===String(e.allSublayers[s].id)||String(t.name)===String(e.allSublayers[s].name)){e._sublayers.push(new r((0,a.default)(e.allSublayers[s].toJSON(),t)));break}},t.fireEvent=function(e,t,r){e._map&&e._map.fire(t,new o.LayerEvent({type:r,target:e._map,layer:e,sourceTarget:e._map,extend:{type:r}}))},t.flatServerSublayerInfos=function e(t,r){!t||!Array.isArray(t)||t.length<=0||t.forEach(function(t){r.push(t),t.children&&e(t.children,r)})},t.createLayer=function(e){var t=void 0;switch((e=e||{}).type){case s.LayerType.ArcGISMapImage:t=f.ArcGISMapImageLayer.fromJSON(e);break;case s.LayerType.ArcGISTile:t=f.ArcGISTileLayer.fromJSON(e);break;case s.LayerType.ArcGISVectorTile:t=f.ArcGISVectorTileLayer.fromJSON(e);break;case s.LayerType.cesium3DTiles:case s.LayerType.cesium3DTilesModelCache:t=f.Cesium3DTilesCacheLayer.fromJSON(e);break;case s.LayerType.ECharts:t=f.EchartsLayer.fromJSON(e);break;case s.LayerType.feature:t=f.FeatureLayer.fromJSON(e);break;case s.LayerType.GeoJSON:t=f.GeoJSONLayer.fromJSON(e);break;case s.LayerType.graphics:t=f.GraphicsLayer.fromJSON(e);break;case s.LayerType.group:t=f.GroupLayer.fromJSON(e);break;case s.LayerType.IGSFeature:t=f.IGSFeatureLayer.fromJSON(e);break;case s.LayerType.IGSMapImage:t=f.IGSMapImageLayer.fromJSON(e);break;case s.LayerType.IGSVectorTile:t=f.IGSVectorTileLayer.fromJSON(e);break;case s.LayerType.IGSTile:t=f.IGSTileLayer.fromJSON(e);break;case s.LayerType.m3dCache:case s.LayerType.M3DModelCache:t=f.M3DModelCacheLayer.fromJSON(e);break;case s.LayerType.MapV:t=f.MapVLayer.fromJSON(e);break;case s.LayerType.terrain:t=f.TerrainCacheLayer.fromJSON(e);break;case s.LayerType.webTile:t=f.WebTileLayer.fromJSON(e);break;case s.LayerType.WFS:t=f.WFSLayer.fromJSON(e);break;case s.LayerType.WMS:t=f.WMSLayer.fromJSON(e);break;case s.LayerType.WMTS:t=f.WMTSLayer.fromJSON(e);break;case s.LayerType.s3m:case s.LayerType.S3MModelCache:t=f.S3MTilesCacheLayer.fromJSON(e);break;case s.LayerType.ISScene:t=f.ISSceneLayer.fromJSON(e);break;case s.LayerType.IGSScene:t=f.IGSSceneLayer.fromJSON(e);break;case s.LayerType.IGSImage:t=f.IGSImageryLayer.fromJSON(e);break;case s.LayerType.IGSImageTile:t=f.IGSImageryTileLayer.fromJSON(e);break;case s.LayerType.unknown:default:t=f.UnknownLayer.fromJSON(e)}return t},t.createSublayer=function(e){var t=void 0;switch((e=e||{}).type){case s.SubLayerType.vectorTileSub:t=c.VectorTileSubLayer.fromJSON(e);break;case s.SubLayerType.WMSSub:t=f.WMSSubLayer.fromJSON(e);break;case s.SubLayerType.WMTSSub:t=f.WMTSSubLayer.fromJSON(e);break;case s.SubLayerType.ArcGISMapImageSub:t=f.ArcGISMapImageSubLayer.fromJSON(e);break;case s.SubLayerType.IGSMapImageSub:t=f.IGSMapImageSubLayer.fromJSON(e);break;case s.SubLayerType.ArcGISVectorTileSub:t=f.ArcGISVectorTileSubLayer.fromJSON(e);break;case s.SubLayerType.IGSVectorTileSub:t=f.IGSVectorTileSubLayer.fromJSON(e);break;case s.SubLayerType.IGSSceneSub:t=f.IGSSceneSubLayer.fromJSON(e);break;case s.SubLayerType.IGSSceneSubLabel:t=f.IGSSceneLabelSubLayer.fromJSON(e);break;case s.SubLayerType.IGSSceneSubM3DCache:t=f.IGSSceneModelCacheSubLayer.fromJSON(e);break;case s.SubLayerType.IGSSceneSubMapRef:t=f.IGSSceneMapRefSubLayer.fromJSON(e);break;case s.SubLayerType.IGSSceneSubTerrian:t=f.IGSSceneTerrainSubLayer.fromJSON(e);break;case s.SubLayerType.ISSceneSub:t=f.ISSceneSubLayer.fromJSON(e);break;case s.SubLayerType.ISSceneSubS3MCache:t=f.ISSceneModelCacheSubLayer.fromJSON(e);break;case s.SubLayerType.baseSub:default:t=new c.SubLayer(e)}return t},t.getLayersCollection=function(e){return(e=e||[])instanceof o.Collection?e:(e=e.filter(function(e){return e}).map(function(e){return e instanceof f.Layer?e:f.Layer.fromJSON(e)}),new o.Collection(e))},t.toSublayerArr=function(e){if(e){var t=[];return e instanceof o.Collection?t=e.items:Array.isArray(e)&&(t=e),t.map(function(e){return e instanceof c.SubLayer?e.toJSON():e})}},t.mergeCommonClientCapbilities=function(e,t){var r=e&&e.client?e.client:{},o=e&&e.server?e.server:{},l={},c=!0,f=!1,h=void 0;try{for(var d,p=(0,i.default)((0,n.default)(s.EngineType));!(c=(d=p.next()).done);c=!0){var y=d.value,g=s.EngineType[y],m=r[g]?r[g]:[];l[g]=m.concat(t)}}catch(e){f=!0,h=e}finally{try{!c&&p.return&&p.return()}finally{if(f)throw h}}var v=(0,a.default)({},o);return u.Capabilities.fromJSON({client:l,server:v})},t.getDefaultSymbolByGeometryType=function(e){var t=void 0;switch(e){case s.GeometryType.multiPoint:case s.GeometryType.point:t=l.Symbol.fromJSON({type:s.SymbolType.simpleMarker});break;case s.GeometryType.multiLineString:case s.GeometryType.lineString:t=l.Symbol.fromJSON({type:s.SymbolType.simpleLine});break;case s.GeometryType.polygon:case s.GeometryType.extent:case s.GeometryType.circle:case s.GeometryType.multiPolygon:t=l.Symbol.fromJSON({type:s.SymbolType.simpleFill})}return t},t.getTitleByLayerInfo=function(e,t,r){if(r=r||"",!e)return r;switch(t){case s.LayerType.ArcGISMapImage:case s.LayerType.ArcGISTile:case s.LayerType.IGSMapImage:case s.LayerType.IGSTile:return e.mapName||r;case s.LayerType.ArcGISVectorTile:case s.LayerType.IGSFeature:case s.LayerType.IGSVectorTile:case s.LayerType.cesium3DTilesModelCache:case s.LayerType.terrain:return e.name||r;case s.LayerType.IGSImage:case s.LayerType.IGSImageTile:case s.LayerType.M3DModelCache:return e.dataName||r;case s.LayerType.IGSScene:return e.documentInfo&&e.documentInfo.title||e.docName||r;case s.LayerType.WFS:case s.LayerType.WMS:return e.title||r;case s.LayerType.WMTS:return e.XMLInfo&&e.XMLInfo["ows:ServiceIdentification"].children["ows:Title"].children["#text"]["#text"]||r;default:return r}}},function(e,t,r){e.exports={default:r(425),__esModule:!0}},function(e,t,r){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <http://feross.org> * @license MIT */ var n=r(311),i=r(312),a=r(313);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,r){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,r)}function u(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!l.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,r),i=(e=s(e,n)).write(t,r);return i!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(l.isBuffer(t)){var r=0|d(t.length);return 0===(e=s(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?s(e,0):h(e,t);if("Buffer"===t.type&&a(t.data))return h(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=s(e,t<0?0:0|d(t)),!l.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function h(e,t){var r=t.length<0?0:0|d(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function d(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(e).length;default:if(n)return j(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var a,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){for(var f=!0,h=0;h<l;h++)if(u(e,a+h)!==u(t,h)){f=!1;break}if(f)return a}return-1}function v(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function _(e,t,r,n){return U(j(t,e.length-r),e,r,n)}function S(e,t,r,n){return U(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function b(e,t,r,n){return S(e,t,r,n)}function w(e,t,r,n){return U(B(t),e,r,n)}function x(e,t,r,n){return U(function(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function E(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function T(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,s,l,u=e[i],c=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=r)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=f}return function(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=I));return r}(n)}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,r){return u(null,e,t,r)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,r){return function(e,t,r,n){return c(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=l.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return M(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return E(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,r,n,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,o=r-t,s=Math.min(a,o),u=this.slice(n,i),c=e.slice(t,r),f=0;f<s;++f)if(u[f]!==c[f]){a=u[f],o=c[f];break}return a<o?-1:o<a?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return S(this,e,t,r);case"latin1":case"binary":return b(this,e,t,r);case"base64":return w(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function M(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function k(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function P(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=F(e[a]);return i}function L(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function O(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,r,n,i,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function N(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function R(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function G(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function V(e,t,r,n,a){return a||G(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function A(e,t,r,n,a){return a||G(e,0,r,8),i.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;r=new l(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+e]}return r},l.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},l.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},l.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||C(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},l.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||C(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);C(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);C(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,r){return V(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return V(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return A(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return A(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,a=n-r;if(this===e&&r<t&&t<n)for(i=a-1;i>=0;--i)e[i+t]=this[i+r];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=l.isBuffer(e)?e:j(new l(e,n).toString()),s=o.length;for(a=0;a<r-t;++a)this[a+t]=o[a%s]}return this};var D=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function B(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(131))},function(e,t,r){(function(t){e.exports=function(){var e=e||function(e,n){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==t&&t.crypto&&(i=t.crypto),!i)try{i=r(285)}catch(e){}var a=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},l=s.lib={},u=l.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=l.WordArray=u.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var a=0;a<i;a++){var o=r[a>>>2]>>>24-a%4*8&255;t[n+a>>>2]|=o<<24-(n+a)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(a());return new c.init(t,e)}}),f=s.enc={},h=f.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var a=t[i>>>2]>>>24-i%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},d=f.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var a=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},p=f.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},y=l.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,a=n.sigBytes,o=this.blockSize,s=a/(4*o),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,u=e.min(4*l,a);if(l){for(var f=0;f<l;f+=o)this._doProcessBlock(i,f);r=i.splice(0,l),n.sigBytes-=u}return new c.init(r,u)},clone:function(){var e=u.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(l.Hasher=y.extend({cfg:u.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new g.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math);return e}()}).call(this,r(131))},function(e,t,r){e.exports={default:r(462),__esModule:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModelCacheLayer=t.TileLayer=t.SubLayer=t.SceneLayer=t.MapImageLayer=t.FeatureLayer=t.VectorTileSubLayer=t.VectorTileLayer=t.Layer=void 0;var n=h(r(63)),i=h(r(518)),a=h(r(165)),o=h(r(541)),s=h(r(234)),l=h(r(542)),u=h(r(99)),c=h(r(543)),f=h(r(544));function h(e){return e&&e.__esModule?e:{default:e}}t.Layer=n.default,t.VectorTileLayer=i.default,t.VectorTileSubLayer=a.default,t.FeatureLayer=o.default,t.MapImageLayer=s.default,t.SceneLayer=l.default,t.SubLayer=u.default,t.TileLayer=c.default,t.ModelCacheLayer=f.default},function(e,t,r){(function(){var t;function r(e,t,r){null!=e&&("number"==typeof e?this.fromNumber(e,t,r):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function n(){return new r(null)}var i="undefined"!=typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(r.prototype.am=function(e,t,r,n,i,a){for(var o=32767&t,s=t>>15;--a>=0;){var l=32767&this[e],u=this[e++]>>15,c=s*l+u*o;i=((l=o*l+((32767&c)<<15)+r[n]+(1073741823&i))>>>30)+(c>>>15)+s*u+(i>>>30),r[n++]=1073741823&l}return i},t=30):i&&"Netscape"!=navigator.appName?(r.prototype.am=function(e,t,r,n,i,a){for(;--a>=0;){var o=t*this[e++]+r[n]+i;i=Math.floor(o/67108864),r[n++]=67108863&o}return i},t=26):(r.prototype.am=function(e,t,r,n,i,a){for(var o=16383&t,s=t>>14;--a>=0;){var l=16383&this[e],u=this[e++]>>14,c=s*l+u*o;i=((l=o*l+((16383&c)<<14)+r[n]+i)>>28)+(c>>14)+s*u,r[n++]=268435455&l}return i},t=28),r.prototype.DB=t,r.prototype.DM=(1<<t)-1,r.prototype.DV=1<<t,r.prototype.FV=Math.pow(2,52),r.prototype.F1=52-t,r.prototype.F2=2*t-52;var a,o,s="0123456789abcdefghijklmnopqrstuvwxyz",l=new Array;for(a="0".charCodeAt(0),o=0;o<=9;++o)l[a++]=o;for(a="a".charCodeAt(0),o=10;o<36;++o)l[a++]=o;for(a="A".charCodeAt(0),o=10;o<36;++o)l[a++]=o;function u(e){return s.charAt(e)}function c(e,t){var r=l[e.charCodeAt(t)];return null==r?-1:r}function f(e){var t=n();return t.fromInt(e),t}function h(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function d(e){this.m=e}function p(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function y(e,t){return e&t}function g(e,t){return e|t}function m(e,t){return e^t}function v(e,t){return e&~t}function _(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function S(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function b(){}function w(e){return e}function x(e){this.r2=n(),this.q3=n(),r.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}d.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},d.prototype.revert=function(e){return e},d.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},d.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},d.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},p.prototype.convert=function(e){var t=n();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(r.ZERO)>0&&this.m.subTo(t,t),t},p.prototype.revert=function(e){var t=n();return e.copyTo(t),this.reduce(t),t},p.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],n=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},p.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},p.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},r.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},r.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},r.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var i=e.length,a=!1,o=0;--i>=0;){var s=8==n?255&e[i]:c(e,i);s<0?"-"==e.charAt(i)&&(a=!0):(a=!1,0==o?this[this.t++]=s:o+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=n)>=this.DB&&(o-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),a&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},r.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},r.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},r.prototype.lShiftTo=function(e,t){var r,n=e%this.DB,i=this.DB-n,a=(1<<i)-1,o=Math.floor(e/this.DB),s=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)t[r+o+1]=this[r]>>i|s,s=(this[r]&a)<<n;for(r=o-1;r>=0;--r)t[r]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()},r.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var n=e%this.DB,i=this.DB-n,a=(1<<n)-1;t[0]=this[r]>>n;for(var o=r+1;o<this.t;++o)t[o-r-1]|=(this[o]&a)<<i,t[o-r]=this[o]>>n;n>0&&(t[this.t-r-1]|=(this.s&a)<<i),t.t=this.t-r,t.clamp()}},r.prototype.subTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this[r]-e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n-=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n-=e[r],t[r++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()},r.prototype.multiplyTo=function(e,t){var n=this.abs(),i=e.abs(),a=n.t;for(t.t=a+i.t;--a>=0;)t[a]=0;for(a=0;a<i.t;++a)t[a+n.t]=n.am(0,i[a],t,a,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&r.ZERO.subTo(t,t)},r.prototype.squareTo=function(e){for(var t=th