1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2977],{31173:(A,M,t)=>{t.d(M,{X_:()=>m,i1:()=>a,zx:()=>O});var s=t(19848),E=t(18144);const _=96;function m(i,r){const c=r||i.extent,o=i.width,u=(0,E.GA)(c?.spatialReference);return c&&o?c.width/o*u*E.dy*_:0}function a(i,r){return i/((0,E.GA)(r)*E.dy*_)}function l(i){return i/(e*_)}function g(i,r){return i*(n(r)*e*_)}function d(i,r){const c=i.extent,o=i.width-(i.padding?i.padding.left+i.padding.right:0),u=a(r,c.spatialReference);return c.clone().expand(u*o/c.width)}function O(i,r,c){return y(i,r)&&P(i,c)}function y(i,r){return r===0||(0,s.Sp)(i,r)||i<r}function P(i,r){return r===0||(0,s.Sp)(i,r)||i>r}},62977:(A,M,t)=>{t.r(M),t.d(M,{default:()=>P});var s=t(27394),E=t(91282),_=t(53580),m=t(1319),a=t(59051),l=t(55624),g=t(91591),d=t(90834),O=t(54377);let y=class extends(0,d.e)(O.A){constructor(){super(...arguments),this.layerViews=new E.A}get dynamicGroupLayerView(){return this.layerViews.find(i=>i.layer===this.layer?.dynamicGroupLayer)}get footprintLayerView(){return this.layerViews.find(i=>i.layer===this.layer?.footprintLayer)}update(i){}moveStart(){}viewChange(){}moveEnd(){}attach(){this.addAttachHandles([this._updatingHandles.addOnCollectionChange(()=>this.layerViews,()=>this._updateStageChildren(),{initial:!0})])}detach(){this.container.removeAllChildren()}isUpdating(){return this.layerViews.some(i=>i.updating)}_updateStageChildren(){this.container.removeAllChildren(),this.layerViews.forEach((i,r)=>this.container.addChildAt(i.container,r))}};(0,s._)([(0,_.MZ)()],y.prototype,"dynamicGroupLayerView",null),(0,s._)([(0,_.MZ)()],y.prototype,"footprintLayerView",null),(0,s._)([(0,_.MZ)()],y.prototype,"layerViews",void 0),y=(0,s._)([(0,g.$)("esri.views.2d.layers.CatalogLayerView2D")],y);const P=y},90834:(A,M,t)=>{t.d(M,{e:()=>B});var s=t(27394),E=t(91282),_=t(12850),m=t(40945),a=t(59283),l=t(53580),g=t(1319),d=t(59051),O=t(55624),y=t(91591),P=t(31173),i=t(75379),r=t(76099),c=t(15194),o;let u=o=class extends c.A{constructor(f){super(f),this.type="rect",this.left=null,this.right=null,this.top=null,this.bottom=null}clone(){return new o({left:this.left,right:this.right,top:this.top,bottom:this.bottom})}commitVersionProperties(){this.commitProperty("left"),this.commitProperty("right"),this.commitProperty("top"),this.commitProperty("bottom")}};(0,s._)([(0,l.MZ)({type:[Number,String],json:{write:!0}})],u.prototype,"left",void 0),(0,s._)([(0,l.MZ)({type:[Number,String],json:{write:!0}})],u.prototype,"right",void 0),(0,s._)([(0,l.MZ)({type:[Number,String],json:{write:!0}})],u.prototype,"top",void 0),(0,s._)([(0,l.MZ)({type:[Number,String],json:{write:!0}})],u.prototype,"bottom",void 0),u=o=(0,s._)([(0,y.$)("esri.views.layers.support.ClipRect")],u);const R=u;var S=t(27589);let L=class extends c.A{constructor(f){super(f),this.type="path",this.path=[]}commitVersionProperties(){this.commitProperty("path")}};(0,s._)([(0,l.MZ)({type:[[[Number]]],json:{write:!0}})],L.prototype,"path",void 0),L=(0,s._)([(0,y.$)("esri.views.layers.support.Path")],L);const I=L,U=E.A.ofType({key:"type",base:null,typeMap:{rect:R,path:I,geometry:S.A}}),B=f=>{let v=class extends f{constructor(){super(...arguments),this.attached=!1,this.clips=new U,this.lastUpdateId=-1,this.moving=!1,this.updateRequested=!1,this.visibleAtCurrentScale=!1,this.highlightOptions=null}initialize(){const h=this.view?.spatialReferenceLocked??!0;this.view?.spatialReference&&h&&!this.spatialReferenceSupported?this.addResolvingPromise(Promise.reject(new m.A("layerview:spatial-reference-incompatible","The spatial reference of this layer does not meet the requirements of the view",{layer:this.layer}))):(this.container||(this.container=new i.m),this.container.fadeTransitionEnabled=!0,this.container.visible=!1,this.container.endTransitions(),this.addHandles([(0,a.wB)(()=>this.suspended,p=>{this.container&&(this.container.visible=!p)},a.pc),(0,a.wB)(()=>this.updateSuspended,p=>{this.view&&!p&&this.updateRequested&&this.view.requestUpdate()},a.pc),(0,a.wB)(()=>this.layer?.opacity??1,p=>{this.container&&(this.container.opacity=p)},a.pc),(0,a.wB)(()=>this.layer&&"blendMode"in this.layer?this.layer.blendMode:"normal",p=>{this.container&&(this.container.blendMode=p)},a.pc),(0,a.wB)(()=>this.layer&&"effect"in this.layer?this.layer.effect:null,p=>{this.container&&(this.container.effect=p)},a.pc),(0,a.wB)(()=>this.highlightOptions,p=>this.container.highlightOptions=p,a.pc),(0,a.on)(()=>this.clips,"change",()=>{this.container&&(this.container.clips=this.clips)},a.pc),(0,a.wB)(()=>({scale:this.view?.scale,scaleRange:this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null}),({scale:p})=>{const C=p!=null&&this.isVisibleAtScale(p);C!==this.visibleAtCurrentScale&&this._set("visibleAtCurrentScale",C)},a.pc)],"constructor"),this.view?.whenLayerView?this.view.whenLayerView(this.layer).then(p=>{p===this&&this.processAttach()},()=>{}):this.when().then(()=>{this.processAttach()},()=>{}))}destroy(){this.processDetach(),this.updateRequested=!1}get spatialReferenceSupported(){const h=this.view?.spatialReference;return h==null||this.supportsSpatialReference(h)}get updateSuspended(){return this.suspended}get updating(){return this.spatialReferenceSupported&&(!this.attached||!this.suspended&&(this.updateRequested||this.isUpdating())||!!this._updatingHandles?.updating)}processAttach(){this.isResolved()&&!this.attached&&!this.destroyed&&this.spatialReferenceSupported&&(this.attach(),this.attached=!0,this.requestUpdate())}processDetach(){this.attached&&(this.attached=!1,this.removeHandles("attach"),this.detach(),this.updateRequested=!1)}isVisibleAtScale(h){const D=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;if(!D)return!0;const{minScale:p,maxScale:C}=D;return(0,P.zx)(h,p,C)}requestUpdate(){this.destroyed||this.updateRequested||(this.updateRequested=!0,this.updateSuspended||this.view.requestUpdate())}processUpdate(h){!this.isFulfilled()||this.isResolved()?(this._set("updateParameters",h),this.updateRequested&&!this.updateSuspended&&(this.updateRequested=!1,this.update(h))):this.updateRequested=!1}
1hitTest(h,D){return Promise.resolve(null)}supportsSpatialReference(h){return!0}canResume(){return!!this.spatialReferenceSupported&&!!super.canResume()&&this.visibleAtCurrentScale}getSuspendInfo(){const h=super.getSuspendInfo(),D=!this.spatialReferenceSupported,p=this.visibleAtCurrentScale;return D&&(h.spatialReferenceNotSupported=D),p&&(h.outsideScaleRange=p),h}addAttachHandles(h){this.addHandles(h,"attach")}};return(0,s._)([(0,l.MZ)()],v.prototype,"attached",void 0),(0,s._)([(0,l.MZ)({type:U,set(h){const D=(0,_.V)(h,this._get("clips"),U);this._set("clips",D)}})],v.prototype,"clips",void 0),(0,s._)([(0,l.MZ)()],v.prototype,"container",void 0),(0,s._)([(0,l.MZ)()],v.prototype,"moving",void 0),(0,s._)([(0,l.MZ)({readOnly:!0})],v.prototype,"spatialReferenceSupported",null),(0,s._)([(0,l.MZ)({readOnly:!0})],v.prototype,"updateParameters",void 0),(0,s._)([(0,l.MZ)()],v.prototype,"updateRequested",void 0),(0,s._)([(0,l.MZ)()],v.prototype,"updateSuspended",null),(0,s._)([(0,l.MZ)()],v.prototype,"updating",null),(0,s._)([(0,l.MZ)()],v.prototype,"view",void 0),(0,s._)([(0,l.MZ)({readOnly:!0})],v.prototype,"visibleAtCurrentScale",void 0),(0,s._)([(0,l.MZ)({type:r.A})],v.prototype,"highlightOptions",void 0),v=(0,s._)([(0,y.$)("esri.views.2d.layers.LayerView2D")],v),v}},54377:(A,M,t)=>{t.d(M,{A:()=>c});var s=t(27394),E=t(15256),_=t(87210),m=t(82483),a=t(59051),l=t(26859),g=t(13002),d=t(53580),O=t(1319),y=t(55624),P=t(91591),i=t(55729);let r=class extends(0,m.sA)((0,g.g)(_.A.EventedMixin(E.A))){constructor(o){super(o),this._updatingHandles=new i.U,this.layer=null,this.parent=null}initialize(){this.when().catch(o=>{if(o.name!=="layerview:create-error"){const u=this.layer&&this.layer.id||"no id",R=this.layer?.title||"no title";a.A.getLogger(this).error("#resolve()",`Failed to resolve layer view (layer title: '${R}', id: '${u}')`,o)}})}destroy(){this._updatingHandles=(0,l.pR)(this._updatingHandles)}get fullOpacity(){return(this.layer?.opacity??1)*(this.parent?.fullOpacity??1)}get suspended(){return!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&this.layer?.legendEnabled===!0}get updating(){return!(!this._updatingHandles?.updating&&!this.isUpdating())}get updatingProgress(){return this.updating?0:1}get visible(){return this.layer?.visible===!0}set visible(o){this._overrideIfSome("visible",o)}canResume(){return this.visible&&this.layer?.loaded&&!this.parent?.suspended&&this.view?.ready||!1}getSuspendInfo(){const o=this.parent?.suspended?this.parent.suspendInfo:{};return this.view?.ready||(o.viewNotReady=!0),this.layer&&this.layer.loaded||(o.layerNotLoaded=!0),this.visible||(o.layerInvisible=!0),o}isUpdating(){return!1}};(0,s._)([(0,d.MZ)()],r.prototype,"fullOpacity",null),(0,s._)([(0,d.MZ)()],r.prototype,"layer",void 0),(0,s._)([(0,d.MZ)()],r.prototype,"parent",void 0),(0,s._)([(0,d.MZ)({readOnly:!0})],r.prototype,"suspended",null),(0,s._)([(0,d.MZ)({readOnly:!0})],r.prototype,"suspendInfo",null),(0,s._)([(0,d.MZ)({readOnly:!0})],r.prototype,"legendEnabled",null),(0,s._)([(0,d.MZ)({type:Boolean,readOnly:!0})],r.prototype,"updating",null),(0,s._)([(0,d.MZ)({readOnly:!0})],r.prototype,"updatingProgress",null),(0,s._)([(0,d.MZ)()],r.prototype,"visible",null),(0,s._)([(0,d.MZ)()],r.prototype,"view",void 0),r=(0,s._)([(0,P.$)("esri.views.layers.LayerView")],r);const c=r},15194:(A,M,t)=>{t.d(M,{A:()=>O});var s=t(27394),E=t(63171),_=t(53580),m=t(1319),a=t(59051),l=t(55624),g=t(91591);let d=class extends E.oY{get version(){return this.commitVersionProperties(),(this._get("version")||0)+1}};(0,s._)([(0,_.MZ)({readOnly:!0})],d.prototype,"version",null),d=(0,s._)([(0,g.$)("esri.views.layers.support.ClipArea")],d);const O=d},27589:(A,M,t)=>{t.d(M,{A:()=>u});var s=t(27394),E=t(12759),_=t(53580),m=t(1319),a=t(59051),l=t(55624),g=t(91591),d=t(90778),O=t(51267),y=t(15194),P=t(86186),i=t(34530),r;const c={base:d.A,key:"type",typeMap:{extent:P.A,polygon:i.A}};let o=r=class extends y.A{constructor(R){super(R),this.type="geometry",this.geometry=null}clone(){return new r({geometry:this.geometry?.clone()??null})}commitVersionProperties(){this.commitProperty("geometry")}};(0,s._)([(0,_.MZ)({types:c,json:{read:O.rS,write:!0}})],o.prototype,"geometry",void 0),o=r=(0,s._)([(0,g.$)("esri.views.layers.support.Geometry")],o);const u=o}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.