????

Your IP : 18.220.96.228


Current Path : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/
Upload File :
Current File : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/41-es2015.js.map

{"version":3,"sources":["./node_modules/arcgis-js-api/layers/SceneLayer.js","./node_modules/arcgis-js-api/layers/support/RangeInfo.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,wHAAgC,CAAC,wIAAwC,CAAC,4HAAkC,CAAC,8HAAmC,CAAC,0HAAiC,CAAC,4FAAkB,CAAC,oFAAc,CAAC,gFAAY,CAAC,sFAAe,CAAC,wFAAgB,CAAC,sFAAe,CAAC,wHAAgC,CAAC,oGAAsB,CAAC,4FAAkB,CAAC,gGAAoB,CAAC,gIAAoC,CAAC,wIAAwC,CAAC,sHAA+B,CAAC,gGAAgB,CAAC,kFAAS,CAAC,gHAAwB,CAAC,sHAA2B,CAAC,4GAAsB,CAAC,oHAA0B,CAAC,8GAAuB,CAAC,wHAA4B,CAAC,wHAA4B,CAAC,wHAA4B,CAAC,0IAAqC,CAAC,sHAA2B,CAAC,8GAAuB,CAAC,4GAAsB,CAAC,8HAA+B,CAAC,4GAAsB,CAAC,gHAAwB,CAAC,0GAAqB,CAAC,oGAAsB,CAAC,wHAAgC,CAAC,0HAAiC,CAAC,sGAAuB,CAAC,wGAAwB,CAAC,mCAAC,gGAAgG,kBAAkB,2EAA2E,0CAA0C,KAAK,6GAA6G,gBAAgB,2BAA2B,yYAAyY,SAAS,uGAAuG,qCAAqC,0DAA0D,4BAA4B,MAAM,MAAM,kCAAkC,+BAA+B,wCAAwC,uBAAuB,iCAAiC,kDAAkD,eAAe,0BAA0B,+BAA+B,qDAAqD,gBAAgB,wEAAwE,+BAA+B,oDAAoD,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DAA4D,YAAY,+DAA+D,YAAY,6DAA6D,YAAY,uDAAuD,kBAAkB,SAAS,SAAS,kBAAkB,OAAO,8CAA8C,QAAQ,gDAAgD,6DAA6D,kBAAkB,SAAS,aAAa,kBAAkB,UAAU,+GAA+G,kCAAkC,uHAAuH,eAAe,SAAS,SAAS,MAAM,kDAAkD,QAAQ,+CAA+C,OAAO,kEAAkE,QAAQ,oDAAoD,4LAA4L,oCAAoC,SAAS,SAAS,MAAM,yCAAyC,OAAO,uDAAuD,QAAQ,+CAA+C,YAAY,+CAA+C,MAAM,SAAS,kNAAkN,aAAa,MAAM,mBAAmB,QAAQ,qBAAqB,sDAAsD,kBAAkB,QAAQ,uEAAuE,2DAA2D,kBAAkB,SAAS,+JAA+J,MAAM,SAAS,uDAAuD,kBAAkB,SAAS,oIAAoI,8BAA8B,SAAS,SAAS,MAAM,sCAAsC,UAAU,8LAA8L,kIAAkI,oOAAoO,IAAI,2EAA2E,SAAS;AAAA,oGAAC,C;;;;;;;;;;;ACxBvmiB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2IAA2C,CAAC,+HAAqC,CAAC,qGAAwB,CAAC,mIAAuC,CAAC,mCAAC,sBAAsB,sCAAsC,SAAS,EAAE,kBAAkB,aAAa,8CAA8C,sGAAsG,6BAA6B,kBAAkB,kBAAkB,6CAA6C,kBAAkB,kBAAkB,8CAA8C,oBAAoB,kBAAkB,2DAA2D,oBAAoB,kBAAkB,wDAAwD,qCAAqC,kBAAkB,mFAAmF,4BAA4B,0BAA0B;AAAA,oGAAC,C","file":"41-es2015.js","sourcesContent":["// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../core/tsSupport/assignHelper\",\"../core/tsSupport/declareExtendsHelper\",\"../core/tsSupport/decorateHelper\",\"../core/tsSupport/generatorHelper\",\"../core/tsSupport/awaiterHelper\",\"../PopupTemplate\",\"../renderers\",\"../request\",\"../core/Error\",\"../core/Logger\",\"../core/maybe\",\"../core/MultiOriginJSONSupport\",\"../core/promiseUtils\",\"../core/urlUtils\",\"../core/watchUtils\",\"../core/accessorSupport/decorators\",\"../core/accessorSupport/PropertyOrigin\",\"../core/accessorSupport/utils\",\"./FeatureLayer\",\"./Layer\",\"./mixins/ArcGISService\",\"./mixins/OperationalLayer\",\"./mixins/PortalLayer\",\"./mixins/ScaleRangeLayer\",\"./mixins/SceneService\",\"./support/commonProperties\",\"./support/commonProperties\",\"./support/FeatureReduction\",\"./support/FeatureReductionSelection\",\"./support/fieldProperties\",\"./support/FieldsIndex\",\"./support/fieldUtils\",\"./support/I3SLayerDefinitions\",\"./support/LabelClass\",\"./support/labelingInfo\",\"./support/RangeInfo\",\"../portal/PortalItem\",\"../renderers/support/jsonUtils\",\"../renderers/support/styleUtils\",\"../support/popupUtils\",\"../tasks/support/Query\"],function(e,r,t,o,n,i,a,s,p,l,u,d,c,y,f,h,v,g,m,b,I,S,w,F,L,O,j,_,P,x,A,D,E,T,U,R,q,M,Q,C,N,V,k){function G(e,r,t){return e&&((e=C.read(e,r,t)||void 0)||z.error(\"Failed to create renderer\",{rendererDefinition:e,layer:this,context:t})),e}var H=[\"3DObject\",\"Point\"],z=d.getLogger(\"esri.layers.SceneLayer\"),$=D.defineFieldProperties(),J=function(e){function r(r,t){var o=e.call(this,r)||this;return o.featureReduction=null,o.rangeInfos=null,o.operationalLayerType=\"ArcGISSceneServiceLayer\",o.type=\"scene\",o.fields=null,o.outFields=null,o.nodePages=null,o.materialDefinitions=null,o.textureSetDefinitions=null,o.geometryDefinitions=null,o.serviceUpdateTimeStamp=null,o.definitionExpression=null,o.path=null,o.labelsVisible=!0,o.labelingInfo=null,o.legendEnabled=!0,o.cachedDrawingInfo={color:!1},o.popupEnabled=!0,o.popupTemplate=null,o.objectIdField=null,o.objectIdFilter=null,o._fieldUsageInfo={},o.screenSizePerspectiveEnabled=!0,o}return o(r,e),r.prototype.normalizeCtorArgs=function(e,r){return\"string\"==typeof e?t({url:e},r):e},r.prototype.getField=function(e){return this.fieldsIndex.get(e)},r.prototype.getFieldDomain=function(e){var r=this.getField(e);return r&&r.domain?r.domain:null},Object.defineProperty(r.prototype,\"fieldsIndex\",{get:function(){return new E(this.fields)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,\"elevationInfo\",{set:function(e){this._set(\"elevationInfo\",e),this.loaded&&this._validateElevationInfo()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,\"geometryType\",{get:function(){return Z[this.profile]||\"mesh\"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,\"renderer\",{set:function(e){T.fixRendererFields(e,this.fields),this._set(\"renderer\",e)},enumerable:!0,configurable:!0}),r.prototype.readCachedDrawingInfo=function(e){return null!=e&&\"object\"==typeof e||(e={}),null==e.color&&(e.color=!1),e},Object.defineProperty(r.prototype,\"defaultPopupTemplate\",{get:function(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null},enumerable:!0,configurable:!0}),r.prototype.readObjectIdField=function(e,r){return!e&&r.fields&&r.fields.some(function(r){return\"esriFieldTypeOID\"===r.type&&(e=r.name),!!e}),e||void 0},r.prototype.readProfile=function(e,r){var t=r.store.profile;return null!=t&&W[t]?W[t]:(z.error(\"Unknown or missing profile\",{profile:t,layer:this}),\"mesh-pyramids\")},r.prototype.load=function(e){var r=this,t=c.isSome(e)?e.signal:null,o=this.loadFromPortal({supportedTypes:[\"Scene Service\"]},e).then(function(){return r._fetchService(t)},function(){return r._fetchService(t)}).then(function(){return f.all([r._verifyRootNodeAndUpdateExtent(r.nodePages,t),r._setAssociatedFeatureLayer(t)])}).then(function(){return r._validateElevationInfo()}).then(function(){return r._applyAssociatedLayerOverrides()}).then(function(){return r._populateFieldUsageInfo()}).then(function(){return N.loadStyleRenderer(r,{origin:\"service\"},t)}).then(function(){return T.fixRendererFields(r.renderer,r.fields)});return this.addResolvingPromise(o),this.when()},r.prototype.createQuery=function(){var e=new k;return\"mesh\"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||\"1=1\",e.sqlFormat=\"standard\",e},r.prototype.queryExtent=function(e,r){var t=this;return this._getAssociatedLayerForQuery().then(function(o){return o.queryExtent(e||t.createQuery(),r)})},r.prototype.queryFeatureCount=function(e,r){var t=this;return this._getAssociatedLayerForQuery().then(function(o){return o.queryFeatureCount(e||t.createQuery(),r)})},r.prototype.queryFeatures=function(e,r){var t=this;return this._getAssociatedLayerForQuery().then(function(o){return o.queryFeatures(e||t.createQuery(),r)}).then(function(e){if(e&&e.features)for(var r=0,o=e.features;r<o.length;r++){var n=o[r];n.layer=t,n.sourceLayer=t}return e})},r.prototype.queryObjectIds=function(e,r){var t=this;return this._getAssociatedLayerForQuery().then(function(o){return o.queryObjectIds(e||t.createQuery(),r)})},r.prototype.getFieldUsageInfo=function(e){var r={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||r:(z.error(\"#getFieldUsageInfo()\",\"Unavailable until layer is loaded\"),r)},r.prototype.createPopupTemplate=function(e){return V.createPopupTemplate(this,e)},r.prototype._getAssociatedLayerForQuery=function(){var e=this;if(!this.loaded)return this.load().then(function(){return e._getAssociatedLayerForQuery()});var r=this.associatedLayer;return null!=r?f.resolve(r):f.reject(new u(\"scenelayer:query-not-available\",\"SceneLayer queries are not available without associated feature layer\"))},r.prototype.hasCachedStatistics=function(e){return null!=this.statisticsInfo&&this.statisticsInfo.some(function(r){return r.name===e})},r.prototype.queryCachedStatistics=function(e,r){return a(this,void 0,void 0,function(){var t,o,n,a,s;return i(this,function(i){switch(i.label){case 0:return[4,this.load(r)];case 1:if(i.sent(),!this.statisticsInfo)throw new u(\"scenelayer:no-cached-statistics\",\"Cached statistics are not available for this layer\");if(!(t=this.fieldsIndex.get(e)))throw new u(\"scenelayer:field-unexisting\",\"Field '\"+e+\"' does not exist on the layer\");for(o=0,n=this.statisticsInfo;o<n.length;o++)if(a=n[o],a.name===t.name)return s=h.join(this.parsedUrl.path,a.href),[2,l(s,{query:{f:\"json\"},responseType:\"json\",signal:r?r.signal:null}).then(function(e){return e.data})];throw new u(\"scenelayer:no-cached-statistics\",\"Cached statistics for this attribute are not available\")}})})},r.prototype.validateLayer=function(e){if(e.layerType&&-1===H.indexOf(e.layerType))throw new u(\"scenelayer:layer-type-not-supported\",\"SceneLayer does not support this layer type\",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new u(\"layer:service-version-not-supported\",\"Service version is not supported.\",{serviceVersion:this.version.versionString,supportedVersions:\"1.x\"});if(this.version.major>1)throw new u(\"layer:service-version-too-new\",\"Service version is too new.\",{serviceVersion:this.version.versionString,supportedVersions:\"1.x\"});!function(e,r){var t=!1,o=!1;if(null==e)t=!0,o=!0;else{var n=r&&r.isGeographic;switch(e){case\"east-north-up\":case\"earth-centered\":t=!0,o=n;break;case\"vertex-reference-frame\":t=!0,o=!n;break;default:t=!1}}if(!t)throw new u(\"scenelayer:unsupported-normal-reference-frame\",\"Normal reference frame is invalid.\");if(!o)throw new u(\"scenelayer:incompatible-normal-reference-frame\",\"Normal reference frame is incompatible with layer spatial reference.\")}(this.normalReferenceFrame,this.spatialReference)},r.prototype._populateFieldUsageInfo=function(){if(this._fieldUsageInfo={},this.fields)for(var e=this,r=0,t=this.fields;r<t.length;r++){var o=t[r];!function(r){var t=!(!e.attributeStorageInfo||!e.attributeStorageInfo.some(function(e){return e.name===r.name})),o=!!(e.associatedLayer&&e.associatedLayer.fields&&e.associatedLayer.fields.some(function(e){return e&&r.name===e.name})),n={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||o,supportsLayerQuery:o};e._fieldUsageInfo[r.name]=n}(o)}},r.prototype._applyAssociatedLayerOverrides=function(){if(this.associatedLayer){if(this.associatedLayer.fields){for(var e=null,r=0,t=this.associatedLayer.fields;r<t.length;r++){var o=t[r];this.getField(o.name)||(e||(e=this.fields?this.fields.slice():[]),e.push(o.clone()))}e&&this._set(\"fields\",e)}for(var n=[\"popupTemplate\",\"popupEnabled\"],i=b.getProperties(this),a=0;a<n.length;a++){var s=n[a];this._buddyIsMoreImportant(s)&&(i.setDefaultOrigin(this.associatedLayer.originOf(s)),i.set(s,this.associatedLayer[s]),i.setDefaultOrigin(\"user\"))}}},r.prototype._setAssociatedFeatureLayer=function(e){return a(this,void 0,void 0,function(){var r;return i(this,function(t){switch(t.label){case 0:return[4,this._fetchAssociatedFeatureLayer(e)];case 1:return r=t.sent(),this.associatedLayer=r,[2]}})})},r.prototype._fetchAssociatedFeatureLayer=function(e){return a(this,void 0,void 0,function(){var r,t;return i(this,function(o){switch(o.label){case 0:if(-1===[\"mesh-pyramids\",\"points\"].indexOf(this.profile))return[2,null];o.label=1;case 1:return o.trys.push([1,4,,5]),[4,this.portalItem&&this.portalItem.isResolved()?this._fetchAssociatedFeatureLayerFromRelatedItems(this.portalItem,e):this._fetchAssociatedFeatureLayerFromUrl(e)];case 2:return r=o.sent(),[4,r.load({signal:e})];case 3:return[2,o.sent()];case 4:return t=o.sent(),this._logWarningOnPopupEnabled(),[2,null];case 5:return[2]}})})},r.prototype._logWarningOnPopupEnabled=function(){var e=this;v.whenValidOnce(this,[\"popupTemplate\",\"popupEnabled\"],function(){return e.popupEnabled&&null!=e.popupTemplate}).then(function(){return function(){var r=\"this SceneLayer: \"+e.title;null==e.attributeStorageInfo?z.warn(\"Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on \"+r):z.info(\"Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on \"+r)}})},r.prototype._fetchAssociatedFeatureLayerFromRelatedItems=function(e,r){return a(this,void 0,void 0,function(){var t,o,n;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),[4,e.fetchRelatedItems({relationshipType:\"Service2Service\",direction:\"reverse\"},{signal:r})];case 1:return t=i.sent(),o=t.filter(function(e){return\"Feature Service\"===e.type})[0],o?[4,this._fetchAssociatedFeatureLayerFromPortalItem(new Q({id:o.id,portal:o.portal}),r)]:[3,3];case 2:return[2,i.sent()];case 3:throw new Error;case 4:return n=i.sent(),[2,this._fetchAssociatedFeatureLayerFromUrl(r)];case 5:return[2]}})})},r.prototype._fetchAssociatedFeatureLayerFromPortalItem=function(e,r){return a(this,void 0,void 0,function(){var t;return i(this,function(o){switch(o.label){case 0:return[4,e.load({signal:r})];case 1:return o.sent(),[4,this._findMatchingAssociatedSublayerUrl(e.url,r)];case 2:return t=o.sent(),[2,new I({url:t,portalItem:e})]}})})},r.prototype._fetchAssociatedFeatureLayerFromUrl=function(e){return a(this,void 0,void 0,function(){var r;return i(this,function(t){switch(t.label){case 0:return[4,this._findMatchingAssociatedSublayerUrl(null,e)];case 1:return r=t.sent(),[2,new I({url:r})]}})})},r.prototype._findMatchingAssociatedSublayerUrl=function(e,r){return void 0===e&&(e=null),a(this,void 0,void 0,function(){var t,o,n,a,s,p,u,d,c,y,h,v,g,m;return i(this,function(i){switch(i.label){case 0:return(t=this.parsedUrl.path.match(/^(.*)\\/SceneServer\\/layers\\/([\\d]*)\\/?$/i))?(null==e&&(e=t[1]+\"/FeatureServer\"),o=e.replace(/^(.*FeatureServer)(\\/[\\d]*\\/?)?$/i,\"$1\"),n={query:{f:\"json\"},responseType:\"json\",authMode:\"no-prompt\",signal:r},a=t[1]+\"/SceneServer\",s=parseInt(t[2],10),p=l(a,n).catch(function(){return{data:{layers:null}}}),u=l(o,n),[4,f.all([u,p])]):[2,f.reject()];case 1:if(d=i.sent(),c=d[0],y=d[1],h=y.data&&y.data.layers,v=c.data&&c.data.layers,!Array.isArray(v))throw new Error(\"expected layers array\");if(Array.isArray(h)){for(g=0;g<Math.min(h.length,v.length);g++)if(m=h[g],m.id===s)return[2,o+\"/\"+v[g].id]}else if(s<v.length)return[2,o+\"/\"+v[s].id];throw new Error(\"could not find matching associated sublayer\")}})})},r.prototype._buddyIsMoreImportant=function(e){if(!this.associatedLayer)return!1;var r=m.nameToId(this.originOf(e)),t=m.nameToId(this.associatedLayer.originOf(e));return null!=t&&t<=2?null==r||r<2:null!=t&&t<=3&&(null==r||r<3)},r.prototype._validateElevationInfo=function(){var e=this.elevationInfo;e&&(\"mesh-pyramids\"===this.profile&&\"absolute-height\"!==e.mode&&z.warn(\".elevationInfo=\",\"Mesh scene layers only support absolute-height elevation mode\"),e.featureExpressionInfo&&\"0\"!==e.featureExpressionInfo.expression&&z.warn(\".elevationInfo=\",\"Scene layers do not support featureExpressionInfo\"))},n([g.property({types:{key:\"type\",base:x.default,typeMap:{selection:A.default}},json:{origins:{\"web-scene\":{read:{source:\"layerDefinition.featureReduction\"},write:{target:\"layerDefinition.featureReduction\"}}}}})],r.prototype,\"featureReduction\",void 0),n([g.property({type:[M.default],json:{read:!1,origins:{\"web-scene\":{read:{source:\"layerDefinition.rangeInfos\"},write:{target:\"layerDefinition.rangeInfos\"}}}}})],r.prototype,\"rangeInfos\",void 0),n([g.property({json:{read:!1}})],r.prototype,\"associatedLayer\",void 0),n([g.property({type:[\"show\",\"hide\"]})],r.prototype,\"listMode\",void 0),n([g.property({type:[\"ArcGISSceneServiceLayer\"]})],r.prototype,\"operationalLayerType\",void 0),n([g.property({json:{read:!1},readOnly:!0})],r.prototype,\"type\",void 0),n([g.property(t({},$.fields,{readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}}))],r.prototype,\"fields\",void 0),n([g.property({readOnly:!0,dependsOn:[\"fields\"]})],r.prototype,\"fieldsIndex\",null),n([g.property($.outFields)],r.prototype,\"outFields\",void 0),n([g.property({type:U.I3SNodePageDefinition,readOnly:!0})],r.prototype,\"nodePages\",void 0),n([g.property({type:[U.I3SMaterialDefinition],readOnly:!0})],r.prototype,\"materialDefinitions\",void 0),n([g.property({type:[U.I3STextureSetDefinition],readOnly:!0})],r.prototype,\"textureSetDefinitions\",void 0),n([g.property({type:[U.I3SGeometryDefinition],readOnly:!0})],r.prototype,\"geometryDefinitions\",void 0),n([g.property({readOnly:!0})],r.prototype,\"serviceUpdateTimeStamp\",void 0),n([g.property({readOnly:!0})],r.prototype,\"attributeStorageInfo\",void 0),n([g.property({readOnly:!0})],r.prototype,\"statisticsInfo\",void 0),n([g.property({type:String,json:{origins:{service:{read:!1,write:!1}},read:{source:\"layerDefinition.definitionExpression\"},write:{target:\"layerDefinition.definitionExpression\"}}})],r.prototype,\"definitionExpression\",void 0),n([g.property({type:String,json:{origins:{\"web-scene\":{read:!0,write:!0}},read:!1}})],r.prototype,\"path\",void 0),n([g.property(_.elevationInfo)],r.prototype,\"elevationInfo\",null),n([g.property({type:String,dependsOn:[\"profile\"]})],r.prototype,\"geometryType\",null),n([g.property(_.labelsVisible)],r.prototype,\"labelsVisible\",void 0),n([g.property({type:[R],json:{origins:{service:{read:{source:\"drawingInfo.labelingInfo\",reader:q.reader},write:{target:\"drawingInfo.labelingInfo\",enabled:!1}}},read:{source:\"layerDefinition.drawingInfo.labelingInfo\",reader:q.reader},write:{target:\"layerDefinition.drawingInfo.labelingInfo\"}}})],r.prototype,\"labelingInfo\",void 0),n([g.property(_.legendEnabled)],r.prototype,\"legendEnabled\",void 0),n([g.property(_.opacityDrawingInfo)],r.prototype,\"opacity\",void 0),n([g.property({types:p.webSceneRendererTypes,json:{origins:{service:{read:{source:\"drawingInfo.renderer\",reader:G}}},read:{source:\"layerDefinition.drawingInfo.renderer\",reader:G},write:{target:\"layerDefinition.drawingInfo.renderer\"}},value:null})],r.prototype,\"renderer\",null),n([g.property({json:{read:!1}})],r.prototype,\"cachedDrawingInfo\",void 0),n([g.reader(\"service\",\"cachedDrawingInfo\")],r.prototype,\"readCachedDrawingInfo\",null),n([g.property(_.popupEnabled)],r.prototype,\"popupEnabled\",void 0),n([g.property({type:s,json:{read:{source:\"popupInfo\"},write:{target:\"popupInfo\"}}})],r.prototype,\"popupTemplate\",void 0),n([g.property({readOnly:!0,json:{read:!1},dependsOn:[\"fields\",\"title\",\"attributeStorageInfo\",\"associatedLayer\"]})],r.prototype,\"defaultPopupTemplate\",null),n([g.property({type:String,json:{read:!1}})],r.prototype,\"objectIdField\",void 0),n([g.reader(\"service\",\"objectIdField\",[\"objectIdField\",\"fields\"])],r.prototype,\"readObjectIdField\",null),n([g.property({json:{read:!1}})],r.prototype,\"objectIdFilter\",void 0),n([g.property({type:String,json:{read:!1}})],r.prototype,\"profile\",void 0),n([g.reader(\"service\",\"profile\",[\"store.profile\"])],r.prototype,\"readProfile\",null),n([g.property({readOnly:!0,type:String,json:{origins:{service:{read:{source:\"store.normalReferenceFrame\"}}},read:!1}})],r.prototype,\"normalReferenceFrame\",void 0),n([g.property(P.screenSizePerspectiveEnabled)],r.prototype,\"screenSizePerspectiveEnabled\",void 0),r=n([g.subclass(\"esri.layers.SceneLayer\")],r)}(g.declared(O.ScaleRangeLayer(j.SceneService(w.ArcGISService(F.OperationalLayer(L.PortalLayer(y.MultiOriginJSONMixin(S)))))))),W={\"mesh-pyramids\":\"mesh-pyramids\",meshpyramids:\"mesh-pyramids\",\"features-meshes\":\"mesh-pyramids\",points:\"points\",\"features-points\":\"points\",lines:\"lines\",\"features-lines\":\"lines\",polygons:\"polygons\",\"features-polygons\":\"polygons\"},Z={\"mesh-pyramids\":\"mesh\",points:\"point\",lines:\"polyline\",polygons:\"polygon\"};return J});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../core/tsSupport/declareExtendsHelper\",\"../../core/tsSupport/decorateHelper\",\"../../core/JSONSupport\",\"../../core/accessorSupport/decorators\"],function(e,r,t,o,p,n){Object.defineProperty(r,\"__esModule\",{value:!0});var a=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.name=null,r.field=null,r.currentRangeExtent=null,r.fullRangeExtent=null,r.type=\"rangeInfo\",r}return t(r,e),o([n.property({type:String,json:{read:!0,write:!0}})],r.prototype,\"name\",void 0),o([n.property({type:String,json:{read:!0,write:!0}})],r.prototype,\"field\",void 0),o([n.property({type:[Number],json:{read:!0,write:!0}})],r.prototype,\"currentRangeExtent\",void 0),o([n.property({type:[Number],json:{read:!0,write:!0}})],r.prototype,\"fullRangeExtent\",void 0),o([n.property({type:[\"rangeInfo\"],readOnly:!0,json:{read:!1,write:!0}})],r.prototype,\"type\",void 0),r=o([n.subclass(\"esri.layers.support.RangeInfo\")],r)}(n.declared(p.JSONSupport));r.RangeInfo=a,r.default=a});"],"sourceRoot":"webpack:///"}