// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.7/esri/copyright.txt for details. //>>built require({cache:{"esri/core/accessorSupport/originUtils":function(){define(["require","exports","../MultiOriginJSONSupport"],function(q,h,l){Object.defineProperty(h,"__esModule",{value:!0});h.updateOrigins=function(a){a&&a.writtenProperties&&a.writtenProperties.forEach(function(a){var c=a.target;a.newOrigin&&a.oldOrigin!==a.newOrigin&&c.isInstanceOf(l)&&c.updateOrigin(a.propName,a.newOrigin)})}})},"esri/support/webSceneUtils":function(){define(["require","exports","../core/Error"],function(q,h,l){Object.defineProperty(h, "__esModule",{value:!0});h.createCopyError=function(){return new l("webscene:failed-to-copy-embedded-resources","Copying of embedded resources is currently not supported")};h.isCopyError=function(a){return a&&"webscene:failed-to-copy-embedded-resources"===a.name};h.createSchemaValidationError=function(a){return new l("webscene:schema-validation","Failed to save webscene due to schema validation errors. See 'details.errors' for more detailed information",{errors:a})};h.isSchemaValidationError=function(a){return a&& "webscene:schema-validation"===a.name}})},"esri/webscene/ApplicationProperties":function(){define("require exports ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper ../core/JSONSupport ../core/accessorSupport/decorators ./applicationProperties/Viewing".split(" "),function(q,h,l,a,k,c,d){return function(b){function f(a){a=b.call(this,a)||this;a.viewing=null;return a}l(f,b);g=f;f.prototype.clone=function(){return new g({viewing:this.viewing?this.viewing.clone():null})};a([c.property({type:d, json:{write:!0}})],f.prototype,"viewing",void 0);return f=g=a([c.subclass("esri.webscene.ApplicationProperties")],f);var g}(c.declared(k))})},"esri/webscene/applicationProperties/Viewing":function(){define("require exports ../../core/tsSupport/declareExtendsHelper ../../core/tsSupport/decorateHelper ../../core/JSONSupport ../../core/accessorSupport/decorators ./Search".split(" "),function(q,h,l,a,k,c,d){return function(b){function f(a){a=b.call(this,a)||this;a.search=null;return a}l(f,b);g=f;f.prototype.clone= function(){return new g({search:this.search?this.search.clone():null})};a([c.property({type:d,json:{write:!0}})],f.prototype,"search",void 0);return f=g=a([c.subclass("esri.webscene.applicationProperties.Viewing")],f);var g}(c.declared(k))})},"esri/webscene/applicationProperties/Search":function(){define("require exports ../../core/tsSupport/declareExtendsHelper ../../core/tsSupport/decorateHelper ../../core/Collection ../../core/JSONSupport ../../core/accessorSupport/decorators ./SearchLayer".split(" "), function(q,h,l,a,k,c,d,b){var f=k.ofType(b);return function(c){function b(a){a=c.call(this,a)||this;a.enabled=!1;a.hintText=null;a.layers=new f;return a}l(b,c);g=b;b.prototype.clone=function(){return new g({enabled:this.enabled,hintText:this.hintText,layers:this.layers?this.layers.clone():null})};a([d.property({type:Boolean,json:{write:!0}})],b.prototype,"enabled",void 0);a([d.property({type:String,json:{write:!0}})],b.prototype,"hintText",void 0);a([d.property({type:f,json:{write:{enabled:!0,isRequired:!0}}})], b.prototype,"layers",void 0);return b=g=a([d.subclass("esri.webscene.applicationProperties.Search")],b);var g}(d.declared(c))})},"esri/webscene/applicationProperties/SearchLayer":function(){define("require exports ../../core/tsSupport/declareExtendsHelper ../../core/tsSupport/decorateHelper ../../core/JSONSupport ../../core/accessorSupport/decorators ../../core/accessorSupport/ensureType ./SearchLayerField".split(" "),function(q,h,l,a,k,c,d,b){return function(f){function g(a){a=f.call(this,a)||this; a.field=null;a.id=null;a.subLayer=null;return a}l(g,f);y=g;g.prototype.clone=function(){return new y({field:this.field?this.field.clone():null,id:this.id,subLayer:this.subLayer})};a([c.property({type:b,json:{write:{enabled:!0,isRequired:!0}}})],g.prototype,"field",void 0);a([c.property({type:String,json:{write:{enabled:!0,isRequired:!0}}})],g.prototype,"id",void 0);a([c.property({type:d.Integer,json:{write:!0}})],g.prototype,"subLayer",void 0);return g=y=a([c.subclass("esri.webscene.applicationProperties.SearchLayer")], g);var y}(c.declared(k))})},"esri/webscene/applicationProperties/SearchLayerField":function(){define("require exports ../../core/tsSupport/declareExtendsHelper ../../core/tsSupport/decorateHelper ../../core/JSONSupport ../../core/accessorSupport/decorators ../../layers/support/fieldType".split(" "),function(q,h,l,a,k,c,d){return function(b){function f(a){a=b.call(this,a)||this;a.exactMatch=!1;a.name=null;a.type=null;return a}l(f,b);g=f;f.prototype.clone=function(){return new g({exactMatch:this.exactMatch, type:this.type,name:this.name})};a([c.property({type:Boolean,json:{write:!0}})],f.prototype,"exactMatch",void 0);a([c.property({type:String,json:{write:!0}})],f.prototype,"name",void 0);a([c.property({type:String,json:{read:d.kebabDict.read,write:d.kebabDict.write}})],f.prototype,"type",void 0);return f=g=a([c.subclass("esri.webscene.applicationProperties.SearchLayerField")],f);var g}(c.declared(k))})},"esri/webscene/Environment":function(){define("require exports ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper ../core/JSONSupport ../core/accessorSupport/decorators ./Lighting".split(" "), function(q,h,l,a,k,c,d){return function(b){function f(a){a=b.call(this,a)||this;a.lighting=new d;return a}l(f,b);g=f;f.prototype.clone=function(){return new g({lighting:d.prototype.clone.call(this.lighting)})};f.sanitizeJSON=function(a){return{lighting:a.lighting?d.sanitizeJSON(a.lighting):(new d).toJSON()}};a([c.property({type:d,json:{write:!0}})],f.prototype,"lighting",void 0);return f=g=a([c.subclass("esri.webscene.Environment")],f);var g}(c.declared(k))})},"esri/webscene/Lighting":function(){define("require exports ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper ../core/JSONSupport ../core/accessorSupport/decorators".split(" "), function(q,h,l,a,k,c){return function(d){function b(a){a=d.call(this,a)||this;a.date=null;a.directShadowsEnabled=!1;a.displayUTCOffset=null;return a}l(b,d);f=b;b.prototype.readDate=function(a,b){return null!=b.datetime&&new Date(b.datetime)||null};b.prototype.writeDate=function(a,b,c){b[c]=a.getTime()};b.prototype.readDirectShadowsEnabled=function(a,b){return!!b.directShadows};b.prototype.writedirectShadowsEnabled=function(a,b,c){a&&(b[c]=a)};b.prototype.writeDisplayUTCOffset=function(a,b){null!= a&&(b.displayUTCOffset=a)};b.prototype.clone=function(){return new f({date:null!=this.date?new Date(this.date.getTime()):null,directShadowsEnabled:this.directShadowsEnabled,displayUTCOffset:null!=this.displayUTCOffset?this.displayUTCOffset:null})};b.sanitizeJSON=function(a){var b={datetime:a.datetime};void 0!==a.directShadows&&(b.directShadows=!!a.directShadows);void 0!==a.displayUTCOffset&&(b.displayUTCOffset=a.displayUTCOffset);return b};a([c.property({type:Date,json:{type:Number,write:{target:"datetime"}}})], b.prototype,"date",void 0);a([c.reader("date",["datetime"])],b.prototype,"readDate",null);a([c.writer("date")],b.prototype,"writeDate",null);a([c.property({type:Boolean,json:{write:{target:"directShadows"}}})],b.prototype,"directShadowsEnabled",void 0);a([c.reader("directShadowsEnabled",["directShadows"])],b.prototype,"readDirectShadowsEnabled",null);a([c.writer("directShadowsEnabled")],b.prototype,"writedirectShadowsEnabled",null);a([c.property({type:Number,json:{write:!0}})],b.prototype,"displayUTCOffset", void 0);a([c.writer("displayUTCOffset")],b.prototype,"writeDisplayUTCOffset",null);return b=f=a([c.subclass("esri.webscene.Lighting")],b);var f}(c.declared(k))})},"esri/webscene/InitialViewProperties":function(){define("require exports ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper ../Viewpoint ../core/Accessor ../core/accessorSupport/decorators ../geometry/SpatialReference ./Environment".split(" "),function(q,h,l,a,k,c,d,b,f){return function(c){function g(a){a=c.call(this, a)||this;a.environment=new f;a.spatialReference=null;a.viewpoint=null;return a}l(g,c);h=g;Object.defineProperty(g.prototype,"viewingMode",{set:function(a){"local"!==a&&"global"!==a||this._set("viewingMode",a)},enumerable:!0,configurable:!0});g.prototype.clone=function(){return new h({environment:this.environment.clone(),spatialReference:this.spatialReference?this.spatialReference.clone():null,viewingMode:this.viewingMode,viewpoint:this.viewpoint?this.viewpoint.clone():null})};a([d.property({type:f, json:{write:{isRequired:!0}}})],g.prototype,"environment",void 0);a([d.property({type:b})],g.prototype,"spatialReference",void 0);a([d.property()],g.prototype,"viewingMode",null);a([d.property({type:k,json:{write:{isRequired:!0}}})],g.prototype,"viewpoint",void 0);return g=h=a([d.subclass("esri.webscene.InitialViewProperties")],g);var h}(d.declared(c))})},"esri/webscene/Presentation":function(){define("require exports ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper ../core/Collection ../core/collectionUtils ../core/JSONSupport ../core/accessorSupport/decorators ./Slide".split(" "), function(q,h,l,a,k,c,d,b,f){var g=k.ofType(f);return function(d){function k(a){a=d.call(this,a)||this;a.slides=new g;return a}l(k,d);Object.defineProperty(k.prototype,"slides",{set:function(a){this._set("slides",c.referenceSetter(a,this._get("slides"),g))},enumerable:!0,configurable:!0});k.prototype.clone=function(){return new this.constructor({slides:this.slides.clone()})};k.sanitizeJSON=function(a){return{slides:void 0!==a.slides&&Array.isArray(a.slides)?a.slides.filter(function(a){return a&&!!a.viewpoint}).map(function(a){return f.sanitizeJSON(a)}): []}};a([b.property({type:g,json:{write:!0}}),b.cast(c.castForReferenceSetter)],k.prototype,"slides",null);return k=a([b.subclass("esri.webscene.Presentation")],k)}(b.declared(d))})},"esri/webscene/Slide":function(){define("require exports ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper dojo/_base/lang dojo/promise/all ../Basemap ../Viewpoint ../core/Collection ../core/collectionUtils ../core/JSONSupport ../core/lang ../core/Logger ../core/promiseUtils ../core/accessorSupport/decorators ../core/accessorSupport/ensureType ../support/basemapUtils ../views/3d/lib/glMatrix ./Environment ./Lighting ./support/Description ./support/Thumbnail ./support/Title".split(" "), function(q,h,l,a,k,c,d,b,f,g,y,u,G,A,t,r,B,p,D,L,E,C,w){var M=0,H=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.id="";return a}l(c,b);x=c;c.prototype.clone=function(){return new x({id:this.id})};a([t.property({type:String,json:{write:!0}})],c.prototype,"id",void 0);return c=x=a([t.subclass()],c);var x}(t.declared(y)),z=f.ofType(H),I=G.getLogger("esri.webscene.Slide");return function(h){function m(a){a=h.call(this,a)||this;a._currentAnimation=null;a.id=Date.now().toString(16)+ "-slide-"+M++;a.title=new w.default;a.description=new E.default;a.thumbnail=new C.default;a.viewpoint=null;a.basemap=null;a.environment=new D;a.visibleLayers=new z;return a}l(m,h);m.prototype.castTitle=function(a){return"string"===typeof a?new w.default({text:a}):r.ensureType(w.default,a)};m.prototype.castDescription=function(a){return"string"===typeof a?new E.default({text:a}):r.ensureType(E.default,a)};m.prototype.castThumbnail=function(a){return"string"===typeof a?new C.default({url:a}):r.ensureType(C.default, a)};m.prototype.castBasemap=function(a){return B.ensureType(a)};Object.defineProperty(m.prototype,"visibleLayers",{set:function(a){this._set("visibleLayers",g.referenceSetter(a,this._get("visibleLayers"),z))},enumerable:!0,configurable:!0});m.prototype.castVisibleLayers=function(a){return a&&"function"===typeof a.map?a.map(function(a){if("string"===typeof a)return{id:a};if(a.id)return{id:a.id};I.warn('Invalid visible layer, expected { id }, Layer or "id"');return a}):a};m.prototype.clone=function(){return new this.constructor({id:this.id, title:this.title.clone(),thumbnail:this.thumbnail.clone(),description:this.description&&this.description.clone()||null,viewpoint:this.viewpoint&&this.viewpoint.clone()||null,basemap:this.basemap&&this.basemap.clone()||null,visibleLayers:this.visibleLayers.clone(),environment:this.environment&&this.environment.clone()||null})};m.prototype._updateVisibleLayersFrom=function(a){var b=this,c=[];return A.eachAlways(this._allLayers(a.map).map(function(b){return a.whenLayerView(b).then(function(a){a.visible&& c.push(new H({id:a.layer.id}))})}).toArray()).then(function(){b.visibleLayers.removeAll();b.visibleLayers.addMany(c)})};m.prototype.updateFrom=function(a,b){var c=this;b=k.mixin({screenshot:k.mixin({format:"jpeg",quality:80,width:120,height:75},b&&b.screenshot)},b);return a.when(function(){c.viewpoint=a.viewpoint.clone();c.environment.lighting=L.prototype.clone.apply(a.environment.lighting);c.basemap=a.map.basemap&&a.map.basemap.clone()||null;return c._updateVisibleLayersFrom(a)}).then(function(){return a.takeScreenshot(b.screenshot)}).then(function(a){c.thumbnail= new C.default({url:a.dataURL});return c})};m.prototype.applyTo=function(a,b){var d=this,x=k.mixin({animate:!0},b);return this._applyBasemap(a).then(function(){return c([d._applyViewpoint(a,x),d._applyLayerVisibility(a,x)])}).then(function(){return d})};m.prototype._applyBasemap=function(a){var b=this;return this.basemap?this.basemap.load().always(function(){a.map.basemap=B.clonePreservingTiledLayers(b.basemap,a.map.basemap)}):A.resolve()};m.prototype._allLayers=function(a){var b=new f;this._collectLayers(a, b);this._collectLayers(a.ground,b);return b};m.prototype._collectLayers=function(a,b){var c=this;a.layers.forEach(function(a){b.add(a);a.layers&&c._collectLayers(a,b)})};m.prototype._applyLayerVisibility=function(a,b){var c=this;if(this.visibleLayers){var d=this._allLayers(a.map);if(b.applyToLayerViews)return A.eachAlways(d.map(function(b){return a.whenLayerView(b).then(function(a){a.visible=c.visibleLayers.some(function(b){return b.id===a.layer.id})})}).toArray());d.forEach(function(a){return a.visible= c.visibleLayers.some(function(b){return b.id===a.id})});return A.resolve()}};m.prototype._applyViewpoint=function(a,b){if(this.viewpoint){this.viewpoint.camera.fov=a.camera.fov;if(b.animate){if(this.get("environment.lighting.date"))return this._animateToLighting(a,b);a.environment.lighting=this.environment.lighting.clone();return a.goTo(this.viewpoint,b)}a.viewpoint=this.viewpoint;a.environment.lighting=this.environment.lighting.clone()}return A.resolve()};m.prototype._animateToLighting=function(a, b){var c=this,d;"global"===a.viewingMode&&(d=this._animateLightingWithCamera(a));this._currentAnimation&&(this._currentAnimation.cancel(),this._currentAnimation=null);a.environment.lighting.cameraTrackingEnabled=!1;a.environment.lighting.directShadowsEnabled=this.environment.lighting.directShadowsEnabled;null!=this.environment.lighting.displayUTCOffset&&(a.environment.lighting.displayUTCOffset=this.environment.lighting.displayUTCOffset);var f=a.goTo(this.viewpoint,b);this._currentAnimation=f;this._currentAnimation.always(function(){d&& d.remove();c._currentAnimation===f&&(a.environment.lighting.cameraTrackingEnabled=!0)});this._currentAnimation.then(function(){a.environment.lighting=c.environment.lighting.clone()});return this._currentAnimation};m.prototype._getTime=function(a){var b=a.getTime();a=3600*a.getUTCHours()+60*a.getUTCMinutes()+a.getUTCSeconds();return[b,a]};m.prototype._setTime=function(a,b,c){a.setTime(b);a.setUTCHours(c/3600);a.setUTCMinutes(c%3600/60);a.setUTCSeconds(c%3600%60);return a};m.prototype._animateLightingWithCamera= function(a){var b=this,c=p.vec3d,d=this._getTime(new Date(a.environment.lighting.date.toString())),f=d[0],g=d[1],d=this._getTime(this.environment.lighting.date),k=d[0],e=d[1],n=a.renderCoordsHelper,v=[0,0,0];n.toRenderCoords(a.camera.position,v);var S=[0,0,0];n.toRenderCoords(this.viewpoint.camera.position,S);var N=[0,0,0],h=new Date;return a.watch("camera",function(d){n.toRenderCoords(d.position,N);d=c.dist2(v,N);var T=c.dist2(S,N),O=0;0!==d+T&&(O=d/(d+T));a.environment.lighting.date=b._setTime(h, f+(k-f)*O,g+(e-g)*O)})};m.createFrom=function(a,b){return(new this).updateFrom(a,b)};m.sanitizeJSON=function(a){var b;b=void 0!==a.visibleLayers&&Array.isArray(a.visibleLayers)?u.clone(a.visibleLayers):[];b={id:a.id||"",title:a.title||{text:""},thumbnail:a.thumbnail||{url:""},viewpoint:a.viewpoint,baseMap:a.baseMap,visibleLayers:b};void 0!==a.description&&(b.description=a.description);void 0!==a.environment&&(b.environment=D.sanitizeJSON(a.environment));return b};a([t.property({type:String,json:{write:{isRequired:!0}}})], m.prototype,"id",void 0);a([t.property({type:w.default,json:{write:{isRequired:!0}}})],m.prototype,"title",void 0);a([t.cast("title")],m.prototype,"castTitle",null);a([t.property({type:E.default,json:{write:{overridePolicy:function(a){return{enabled:!(!a||!a.text)}}}}})],m.prototype,"description",void 0);a([t.cast("description")],m.prototype,"castDescription",null);a([t.property({type:C.default,json:{write:{isRequired:!0}}})],m.prototype,"thumbnail",void 0);a([t.cast("thumbnail")],m.prototype,"castThumbnail", null);a([t.property({type:b,json:{write:{isRequired:!0}}})],m.prototype,"viewpoint",void 0);a([t.property({type:d,json:{read:{source:"baseMap"},write:{target:"baseMap"}}})],m.prototype,"basemap",void 0);a([t.cast("basemap")],m.prototype,"castBasemap",null);a([t.property({type:z,json:{write:{isRequired:!0}}})],m.prototype,"visibleLayers",null);a([t.cast("visibleLayers")],m.prototype,"castVisibleLayers",null);a([t.property({type:D,json:{write:!0}})],m.prototype,"environment",void 0);return m=a([t.subclass("esri.webscene.Slide")], m)}(t.declared(y))})},"esri/webscene/support/Description":function(){define("require exports ../../core/tsSupport/declareExtendsHelper ../../core/tsSupport/decorateHelper ../../core/JSONSupport ../../core/accessorSupport/decorators".split(" "),function(q,h,l,a,k,c){Object.defineProperty(h,"__esModule",{value:!0});q=function(d){function b(){var a=null!==d&&d.apply(this,arguments)||this;a.text="";return a}l(b,d);f=b;b.prototype.clone=function(){return new f({text:this.text})};a([c.property({type:String, json:{write:!0}})],b.prototype,"text",void 0);return b=f=a([c.subclass("esri.webscene.support.Description")],b);var f}(c.declared(k));h.default=q})},"esri/webscene/support/Thumbnail":function(){define("require exports ../../core/tsSupport/declareExtendsHelper ../../core/tsSupport/decorateHelper ../../core/JSONSupport ../../core/accessorSupport/decorators".split(" "),function(q,h,l,a,k,c){Object.defineProperty(h,"__esModule",{value:!0});q=function(d){function b(){var a=null!==d&&d.apply(this,arguments)|| this;a.url="";return a}l(b,d);f=b;b.prototype.clone=function(){return new f({url:this.url})};a([c.property({type:String,json:{write:{isRequired:!0}}})],b.prototype,"url",void 0);return b=f=a([c.subclass("esri.webscene.support.Thumbnail")],b);var f}(c.declared(k));h.default=q})},"esri/webscene/support/Title":function(){define("require exports ../../core/tsSupport/declareExtendsHelper ../../core/tsSupport/decorateHelper ../../core/JSONSupport ../../core/accessorSupport/decorators".split(" "),function(q, h,l,a,k,c){Object.defineProperty(h,"__esModule",{value:!0});q=function(d){function b(){var a=null!==d&&d.apply(this,arguments)||this;a.text="";return a}l(b,d);f=b;b.prototype.clone=function(){return new f({text:this.text})};a([c.property({type:String,json:{write:{isRequired:!0}}})],b.prototype,"text",void 0);return b=f=a([c.subclass("esri.webscene.support.Title")],b);var f}(c.declared(k));h.default=q})},"esri/webscene/Version":function(){define(["require","exports","../core/tsSupport/extendsHelper", "../core/Version"],function(q,h,l,a){Object.defineProperty(h,"__esModule",{value:!0});q=function(a){function c(c,b){return a.call(this,c,b,"webscene")||this}l(c,a);Object.defineProperty(c.prototype,"supportsGround",{get:function(){return this.since(1,8)},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"supportsVisibleElevationLayersInSlides",{get:function(){return this.lessThan(1,8)},enumerable:!0,configurable:!0});return c}(a.Version);h.Version=q;h.default=q})},"esri/core/Version":function(){define(["require", "exports","./Error"],function(q,h,l){Object.defineProperty(h,"__esModule",{value:!0});q=function(){function a(a,c,d){void 0===d&&(d="");this.major=a;this.minor=c;this._context=d}a.prototype.lessThan=function(a,c){return this.major=b.minor&&(a.spatialReference=w.WebMercator.toJSON());return a}; e.prototype._sanitizeJSON=function(a,b){void 0===b&&(b=null);return{version:a.version||"",baseMap:a.baseMap,ground:a.ground,operationalLayers:a.operationalLayers,authoringApp:a.authoringApp||"",authoringAppVersion:a.authoringAppVersion||"",viewingMode:a.viewingMode||"global",presentation:a.presentation&&R.sanitizeJSON(a.presentation)||{},initialState:a.initialState,spatialReference:a.spatialReference||w.WebMercator.toJSON(),heightModelInfo:a.heightModelInfo||null,clippingArea:a.clippingArea,applicationProperties:a.applicationProperties}}; e.prototype._updateTypeKeywords=function(a){"local"===this.initialViewProperties.viewingMode?a.typeKeywords?-1===a.typeKeywords.indexOf("ViewingMode-Local")&&a.typeKeywords.push("ViewingMode-Local"):a.typeKeywords=["ViewingMode-Local"]:"global"===this.initialViewProperties.viewingMode&&a.typeKeywords&&(a.typeKeywords=a.typeKeywords.filter(function(a){return"ViewingMode-Local"!==a}));a.typeKeywords&&(a.typeKeywords=a.typeKeywords.filter(function(a,b,c){return c.indexOf(a)===b}))};Object.defineProperty(e.prototype, "_sceneSpatialReference",{get:function(){return this.initialViewProperties.spatialReference||w.WebMercator},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"_verifyItemRelativeRootPath",{get:function(){return this.portalItem&&this.portalItem.itemUrl?B.urlToObject(this.portalItem.itemUrl).path:null},enumerable:!0,configurable:!0});e.prototype._enableVerifyItemRelativeUrls=function(a){var b=this._verifyItemRelativeRootPath;b&&(a.verifyItemRelativeUrls={rootPath:b,writtenUrls:[]}); return a};e.fromJSON=function(a){if(!a)throw new u("webscene:empty-resource","Expected a JSON resource but got nothing");return new this({resourceInfo:a})};e.VERSION=K;a([p.property({type:m,json:{write:!0}})],e.prototype,"applicationProperties",void 0);a([p.property({json:{read:{source:"baseMap"},write:{target:"baseMap"}}})],e.prototype,"basemap",void 0);a([p.property({type:E,json:{read:{source:"clippingArea.geometry",reader:H.fromJSON},write:{target:"clippingArea.geometry"}}})],e.prototype,"clippingArea", void 0);a([p.writer("clippingArea")],e.prototype,"writeClippingArea",null);a([p.property({type:Boolean,json:{write:{target:"clippingArea.clip"}}})],e.prototype,"clippingEnabled",void 0);a([p.reader("clippingEnabled",["clippingArea"])],e.prototype,"readClippingEnabled",null);a([p.writer("clippingEnabled")],e.prototype,"writeClippingEnabled",null);a([p.property({type:C,json:{write:!0}})],e.prototype,"heightModelInfo",void 0);a([p.property({json:{write:{target:"operationalLayers"}}})],e.prototype,"layers", void 0);a([p.writer("layers")],e.prototype,"writeLayers",null);a([p.property({readOnly:!0,type:J.default,json:{type:String,write:{allowNull:!0,target:"version",isRequired:!0}}})],e.prototype,"sourceVersion",void 0);a([p.reader("sourceVersion",["version"])],e.prototype,"readSourceVersion",null);a([p.writer("sourceVersion")],e.prototype,"writeSourceVersion",null);a([p.property({type:String,json:{write:{allowNull:!0}}})],e.prototype,"authoringApp",null);a([p.writer("authoringApp")],e.prototype,"writeAuthoringApp", null);a([p.property({type:String,json:{write:{allowNull:!0}}})],e.prototype,"authoringAppVersion",null);a([p.writer("authoringAppVersion")],e.prototype,"writeAuthoringAppVersion",null);a([p.property({json:{write:{isRequired:!0,allowNull:!0,enabled:!0}}})],e.prototype,"ground",void 0);a([p.writer("ground")],e.prototype,"writeGround",null);a([p.property({type:R,json:{write:function(a,b,c,d){a.slides&&0