1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2328],{813:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(49493),r=i(40496),n=i(9491);i(74552),i(64988),i(32243);var h=i(44708);let a=class extends r.oY{get version(){return this.commitVersionProperties(),(this._get("version")||0)+1}};(0,s._)([(0,n.MZ)({readOnly:!0})],a.prototype,"version",null);let l=a=(0,s._)([(0,h.$)("esri.views.layers.support.ClipArea")],a)},13419:(e,t,i)=>{i.d(t,{e:()=>A});var s,r=i(49493),n=i(52984),h=i(19293),a=i(55114),l=i(64988),o=i(23096),d=i(9491);i(74552),i(32243);var c=i(44708),p=i(17558),u=i(73104),f=i(16128),g=i(68761),_=i(14490),y=i(14701),v=i(813);let m=s=class extends v.A{constructor(e){super(e),this.type="rect",this.left=null,this.right=null,this.top=null,this.bottom=null}clone(){return new s({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,r._)([(0,d.MZ)({type:[Number,String],json:{write:!0}})],m.prototype,"left",void 0),(0,r._)([(0,d.MZ)({type:[Number,String],json:{write:!0}})],m.prototype,"right",void 0),(0,r._)([(0,d.MZ)({type:[Number,String],json:{write:!0}})],m.prototype,"top",void 0),(0,r._)([(0,d.MZ)({type:[Number,String],json:{write:!0}})],m.prototype,"bottom",void 0);let b=m=s=(0,r._)([(0,c.$)("esri.views.layers.support.ClipRect")],m);var R=i(20914);let w=class extends v.A{constructor(e){super(e),this.type="path",this.path=[]}commitVersionProperties(){this.commitProperty("path")}};(0,r._)([(0,d.MZ)({type:[[[Number]]],json:{write:!0}})],w.prototype,"path",void 0);let O=w=(0,r._)([(0,c.$)("esri.views.layers.support.Path")],w);var T=i(8506);let M=n.A.ofType({key:"type",base:null,typeMap:{rect:b,path:O,geometry:R.A}}),S=new(n.A.ofType(g.W)),A=e=>{let t=class extends e{constructor(){super(...arguments),this.attached=!1,this.clips=new M,this.highlights=null,this.lastUpdateId=-1,this.moving=!1,this.updateRequested=!1,this._visibleAtCurrentScale=!0}initialize(){let e=this.view?.spatialReferenceLocked??!0;this.view?.spatialReference&&e&&!this.spatialReferenceSupported?this.addResolvingPromise(Promise.reject(new a.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 u.m),this.container.fadeTransitionEnabled=!0,this.container.visible=!1,this.container.endTransitions(),this.addHandles([(0,o.wB)(()=>this.suspended,e=>{this.container&&(this.container.visible=!e)},o.pc),(0,o.wB)(()=>this.updateSuspended,e=>{this.view&&!e&&this.updateRequested&&this.view.requestUpdate()},o.pc),(0,o.wB)(()=>this.layer?.opacity??1,e=>{this.container&&(this.container.opacity=e)},o.pc),(0,o.wB)(()=>this.layer&&"blendMode"in this.layer?this.layer.blendMode:"normal",e=>{this.container&&(this.container.blendMode=e)},o.pc),(0,o.wB)(()=>this.layer&&"effect"in this.layer?this.layer.effect:null,e=>{this.container&&(this.container.effect=e)},o.pc),(0,o.wB)(()=>this._mergedHighlights.items.map(e=>({name:e.name,options:{fillColor:e.options.color,haloColor:e.options.haloColor,fillOpacity:e.options.fillOpacity,haloOpacity:e.options.haloOpacity,haloWidth:e.options.haloWidth,haloBlur:e.options.haloBlur}})),()=>{this.container.highlightGradient=(0,f.u4)(this.container.highlightGradient,this._mergedHighlights.items)},o.pc),(0,o.wB)(()=>this._mergedHighlights.items.map(e=>e.name),()=>{this._updateHighlights()}),(0,o.on)(()=>this.clips,"change",()=>{this.container&&(this.container.clips=this.clips)},o.pc),(0,o.wB)(()=>({scale:this.view?.scale,scaleRange:this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null}),({scale:e,scaleRange:t})=>{let i=(0,T.E5)(t,e);i!==this._visibleAtCurrentScale&&(this._visibleAtCurrentScale=i)},o.pc)],"constructor"),this.view?.whenLayerView?this.view.whenLayerView(this.layer).then(e=>{e===this&&this.processAttach()},()=>{}):this.when().then(()=>{this.processAttach()},()=>{}))}_updateHighlights(){}destroy(){this.processDetach(),this.updateRequested=!1}get highlightOptions(){return(0,_.ax)(this)}set highlightOptions(e){(0,_.ou)(this,e)}get _mergedHighlights(){if(!this.view)return S;if(!this.highlights)return this.view.highlights;let e=this.view.highlights.clone();for(let t of this.highlights){let i=e.find(e=>e.name===t.name);i&&(i.options=t.options)}return e}get scheduler(){return this.view.scheduler}get spatialReferenceSupported(){let e=this.view?.spatialReference;return null==e||this.supportsSpatialReference(e)}get updating(){return this.spatialReferenceSupported&&(!this.attached||!this.suspended&&(this.updateRequested||this.isUpdating())||!!this._updatingHandles?.updating||this.container.transitioning)}get visibleAtCurrentScale(){return this._visibleAtCurrentScale}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)}requestUpdate(){this.destroyed||this.updateRequested||(this.updateRequested=!0,this.updateSuspended||this.view.requestUpdate())}processUpdate(e){!this.isFulfilled()||this.isResolved()?(this._set("updateParameters",e),this.updateRequested&&!this.updateSuspended&&(this.updateRequested=!1,this.update(e))):this.updateRequested=!1}
1hitTest(e,t){return Promise.resolve(null)}supportsSpatialReference(e){return!0}canResume(){if(!this.spatialReferenceSupported)return!1;switch(this.layer?.type){case"link-chart":case"knowledge-graph-sublayer":break;default:if((0,p.O)(this.view)&&!this.view.inGeographicLayout)return!1}return!!super.canResume()&&this.visibleAtCurrentScale}getSuspendInfo(){let e=super.getSuspendInfo(),t=!this.spatialReferenceSupported;return t&&(e.spatialReferenceNotSupported=t),e}addAttachHandles(e){this.addHandles(e,"attach")}_getHighlightBits(e){e=new Set(e);let t=1,i=0;if(!this.view)return 0;for(let{name:s}of this._mergedHighlights)e.delete(s)&&(i=t),t<<=1;for(let t of e)l.A.getLogger(this).error("#highlights",`${t} was not found. Features in this group will not be highlighted.`);return i}};return(0,r._)([(0,d.MZ)()],t.prototype,"attached",void 0),(0,r._)([(0,d.MZ)({type:M,set(e){let t=(0,h.V)(e,this._get("clips"),M);this._set("clips",t)}})],t.prototype,"clips",void 0),(0,r._)([(0,d.MZ)()],t.prototype,"container",void 0),(0,r._)([(0,d.MZ)({type:y.A})],t.prototype,"highlightOptions",null),(0,r._)([(0,d.MZ)({type:n.A.ofType(g.W)})],t.prototype,"highlights",void 0),(0,r._)([(0,d.MZ)()],t.prototype,"_mergedHighlights",null),(0,r._)([(0,d.MZ)()],t.prototype,"moving",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],t.prototype,"spatialReferenceSupported",null),(0,r._)([(0,d.MZ)({readOnly:!0})],t.prototype,"updateParameters",void 0),(0,r._)([(0,d.MZ)()],t.prototype,"updateRequested",void 0),(0,r._)([(0,d.MZ)()],t.prototype,"updating",null),(0,r._)([(0,d.MZ)()],t.prototype,"view",void 0),(0,r._)([(0,d.MZ)()],t.prototype,"_visibleAtCurrentScale",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],t.prototype,"visibleAtCurrentScale",null),t=(0,r._)([(0,c.$)("esri.views.2d.layers.LayerView2D")],t)}},20914:(e,t,i)=>{i.d(t,{A:()=>f});var s,r=i(49493);i(98952);var n=i(9491);i(74552),i(64988),i(32243);var h=i(44708),a=i(15365),l=i(20996),o=i(813),d=i(3917),c=i(47069);let p={base:a.A,key:"type",typeMap:{extent:d.A,polygon:c.A}},u=s=class extends o.A{constructor(e){super(e),this.type="geometry",this.geometry=null}clone(){return new s({geometry:this.geometry?.clone()??null})}commitVersionProperties(){this.commitProperty("geometry")}};(0,r._)([(0,n.MZ)({types:p,json:{read:l.rS,write:!0}})],u.prototype,"geometry",void 0);let f=u=s=(0,r._)([(0,h.$)("esri.views.layers.support.Geometry")],u)},22018:(e,t,i)=>{i.d(t,{q:()=>h});var s=i(62242),r=i(17933),n=i(50661);class h extends r.A{constructor(){super(...arguments),this._transitionables=null,this._clips=null,this._fadeTransition=null,this._isReady=!1,this._opacity=1,this.parent=null,this._stage=null,this._visible=!0}get computedOpacity(){return this._fadeTransition?.computedOpacity??this.opacity}get clips(){return this._clips}set clips(e){this._clips=e,this.requestRender()}get fadeTransitionEnabled(){return null!==this._fadeTransition}set fadeTransitionEnabled(e){!this._fadeTransition&&e?(this._fadeTransition=new n.A({opacity:this.opacity,visible:this.visible}),this.addTransitionable(this._fadeTransition)):this._fadeTransition&&!e&&(this.removeTransitionable(this._fadeTransition),this._fadeTransition=null)}get inFadeTransition(){return this._fadeTransition?.transitioning??!1}get isReady(){return this._isReady}get opacity(){return this._opacity}set opacity(e){this._opacity!==e&&(this._opacity=Math.min(1,Math.max(e,0)),this._fadeTransition&&(this._fadeTransition.opacity=this._opacity),this.requestRender())}get stage(){return this._stage}set stage(e){if(this._stage===e)return;let t=this._stage;this._stage=e,e?this._stage?.untrashDisplayObject(this)||(this.onAttach(),this.emit("attach")):t?.trashDisplayObject(this)}get transforms(){return null==this._transforms&&(this._transforms=this._createTransforms()),this._transforms}get transitioning(){return this.isTransitioning()}get visible(){return this._visible}set visible(e){this._visible!==e&&(this._visible=e,this._fadeTransition&&(this._fadeTransition.visible=this._visible),this.requestRender())}get hasLabels(){return!1}get hasHighlight(){return!1}get hasBlending(){return!1}addTransitionable(e){this._transitionables??=[],this._transitionables.push(e),this.requestRender()}removeTransitionable(e){e.endTransition(),this._transitionables&&(0,s.TF)(this._transitionables,e),this.requestRender()}fadeIn(){this.fadeTransitionEnabled=!0;let e=this._fadeTransition.fadeIn();return this.opacity=1,this.requestRender(),e}fadeOut(){this.fadeTransitionEnabled=!0;let e=this._fadeTransition.fadeOut();return this.opacity=0,this.requestRender(),e}endTransitions(){if(this._transitionables){for(let e of this._transitionables)e.endTransition();this.requestRender()}}beforeRender(e){this.transitionStep(e.deltaTime,e.state.scale),this.setTransform(e.state)}afterRender(e){this.transitioning&&this.requestRender()}remove(){this.parent?.removeChild(this)}setTransform(e){}processRender(e){this.stage&&(this._fadeTransition?.computedVisible??this.visible)&&this.doRender(e)}requestRender(){this.stage&&this.stage.requestRender()}
1processDetach(){this.endTransitions(),this.onDetach(),this.emit("detach")}isTransitioning(){return this._transitionables?.some(e=>e.transitioning)??!1}transitionStep(e,t){if(this._transitionables)for(let i of this._transitionables)i.transitionStep(e,t)}onAttach(){}onDetach(){}doRender(e){}ready(){this._isReady||(this._isReady=!0,this.emit("isReady"),this.requestRender())}}},50661:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(49493),r=i(29498),n=i(74552),h=i(85314),a=i(9491);i(64988),i(32243);var l=i(44708);let o=class extends r.A{constructor(e){super(e),this.computedOpacity=1,this.computedVisible=!0,this.opacity=1,this.visible=!0,this._fadeOutResolver=null,this._fadeInResolver=null}get transitioning(){return(this._fadeOutResolver||!this.visible?0:this.opacity)!==this.computedOpacity}endTransition(){this._fadeInResolver?.(),this._fadeOutResolver?.(),this._fadeInResolver=this._fadeOutResolver=null,this.computedOpacity=this.visible?this.opacity:0}fadeIn(){return this._fadeInResolver||(this.opacity=1,this.computedOpacity=0,this._fadeOutResolver?.(),this._fadeOutResolver=null,this._fadeInResolver=(0,h.Tw)()),this._fadeInResolver.promise}fadeOut(){return this._fadeOutResolver||(this.opacity=0,this._fadeInResolver?.(),this._fadeInResolver=null,this._fadeOutResolver=(0,h.Tw)()),this._fadeOutResolver.promise}transitionStep(e,t){let i=(0,n.A)("mapview-transitions-duration"),s=i?1/i:0;if(0===s)this.computedOpacity=this.opacity,this.computedVisible=this.visible;else{let t=this._fadeOutResolver||!this.visible?0:this.opacity,i=this.computedOpacity;if(i===t)this.computedVisible=this.visible;else{let r=e*s;this.computedOpacity=i>t?Math.max(t,i-r):Math.min(t,i+r),this.computedVisible=this.computedOpacity>0}}this.transitioning||(this._fadeInResolver?.(),this._fadeOutResolver?.(),this._fadeOutResolver=this._fadeInResolver=null)}};(0,s._)([(0,a.MZ)()],o.prototype,"computedOpacity",void 0),(0,s._)([(0,a.MZ)()],o.prototype,"computedVisible",void 0),(0,s._)([(0,a.MZ)()],o.prototype,"opacity",void 0),(0,s._)([(0,a.MZ)()],o.prototype,"visible",void 0),(0,s._)([(0,a.MZ)()],o.prototype,"transitioning",null),(0,s._)([(0,a.MZ)()],o.prototype,"_fadeOutResolver",void 0),(0,s._)([(0,a.MZ)()],o.prototype,"_fadeInResolver",void 0),o=(0,s._)([(0,l.$)("esri.views.2d.engine.transitions.FadeTransition")],o)},62578:(e,t,i)=>{i.d(t,{A:()=>g});var s=i(49493),r=i(29498),n=i(17933),h=i(30664),a=i(64988),l=i(88284),o=i(25233),d=i(9491);i(74552),i(32243);var c=i(44708),p=i(7705),u=i(8506);let f=class extends(0,h.sA)((0,o.g)(n.A.EventedMixin(r.A))){constructor(e){super(e),this._updatingHandles=new p.U,this.layer=null,this.parent=null}initialize(){this.when().catch(e=>{if("layerview:create-error"!==e.name){let t=this.layer&&this.layer.id||"no id",i=this.layer?.title||"no title";a.A.getLogger(this).error("#resolve()",`Failed to resolve layer view (layer title: '${i}', id: '${t}')`,e)}})}destroy(){this._updatingHandles=(0,l.pR)(this._updatingHandles)}get fullOpacity(){return(this.layer?.opacity??1)*(this.parent?.fullOpacity??1)}get suspended(){return this.destroyed||!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&!0===this.layer?.legendEnabled}get updating(){return!(!this._updatingHandles?.updating&&!this.isUpdating())}get updatingProgress(){return+!this.updating}get updateSuspended(){return this.suspended}get visible(){return!0===this.layer?.visible}set visible(e){this._overrideIfSome("visible",e)}get visibleAtCurrentScale(){return!0}get visibleAtCurrentTimeExtent(){let e=this.view.timeExtent,t=this.layer?.visibilityTimeExtent;return!e||!t||!e.intersection(t).isEmpty}canResume(){let e=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return this.visible&&this.layer?.loaded&&!this.parent?.suspended&&this.view?.ready&&(0,u.g7)(e)&&this.visibleAtCurrentScale&&this.visibleAtCurrentTimeExtent||!1}getSuspendInfo(){let e=this.parent?.suspended?this.parent.suspendInfo:{};this.view?.ready||(e.viewNotReady=!0),this.layer&&this.layer.loaded||(e.layerNotLoaded=!0);let t=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return(0,u.g7)(t)&&this.visibleAtCurrentScale||(e.outsideScaleRange=!0),this.visibleAtCurrentTimeExtent||(e.outsideVisibilityTimeExtent=!0),this.visible||(e.layerInvisible=!0),e}isUpdating(){return!1}};(0,s._)([(0,d.MZ)()],f.prototype,"view",void 0),(0,s._)([(0,d.MZ)()],f.prototype,"fullOpacity",null),(0,s._)([(0,d.MZ)()],f.prototype,"layer",void 0),(0,s._)([(0,d.MZ)()],f.prototype,"parent",void 0),(0,s._)([(0,d.MZ)({readOnly:!0})],f.prototype,"suspended",null),(0,s._)([(0,d.MZ)({readOnly:!0})],f.prototype,"suspendInfo",null),(0,s._)([(0,d.MZ)({readOnly:!0})],f.prototype,"legendEnabled",null),(0,s._)([(0,d.MZ)({type:Boolean,readOnly:!0})],f.prototype,"updating",null),(0,s._)([(0,d.MZ)({readOnly:!0})],f.prototype,"updatingProgress",null),(0,s._)([(0,d.MZ)()],f.prototype,"updateSuspended",null),(0,s._)([(0,d.MZ)()],f.prototype,"visible",null),(0,s._)([(0,d.MZ)({readOnly:!0})],f.prototype,"visibleAtCurrentScale",null),(0,s._)([(0,d.MZ)({readOnly:!0})],f.prototype,"visibleAtCurrentTimeExtent",null);let g=f=(0,s._)([(0,c.$)("esri.views.layers.LayerView")],f)},73104:(e,t,i)=>{i.d(t,{m:()=>l});var s=i(68782),r=i(31048),n=i(99895),h=i(74372),a=i(22018);class l extends a.q{constructor(){super(...arguments),this._childrenSet=new Set,this._needsSort=!1,this._children=[],this._childrenObservable=new r.I,this._effectView=null,this._highlightGradient=null}get blendMode(){return this._blendMode}set blendMode(e){this._blendMode=e,this.requestRender()}get children(){return(0,s.gc)(this._childrenObservable),this._children}get clips(){return this._clips}
1set clips(e){this._clips=e,this.children.forEach(t=>t.clips=e)}get computedEffects(){return this._effectView?.effects??null}get effect(){return this._effectView?.effect??""}set effect(e){(this._effectView||e)&&(this._effectView||(this._effectView=new h.$B,this.addTransitionable(this._effectView)),this._effectView.effect=e,this.requestRender())}get highlightGradient(){return this._highlightGradient}set highlightGradient(e){this._highlightGradient=e,this.requestRender()}get hasBlending(){return!!this.blendMode}get hasHighlight(){return this.children.some(e=>e.hasHighlight)}get hasLabels(){return this.children.some(e=>e.hasLabels)}get requiresDedicatedFBO(){return this.children.some(e=>"blendMode"in e&&e.blendMode&&"normal"!==e.blendMode)}get isReady(){return this.children.every(e=>e.isReady)}get sortFunction(){return this._sortFunction}set sortFunction(e){this._sortFunction=e,e&&(this._needsSort=!0)}doRender(e){let t=this.createRenderParams(e),{painter:i}=t;i.beforeRenderLayer(t,255*!!this._clips?.length,this.computedOpacity),this.renderChildren(t),i.afterRenderLayer(t,this.computedOpacity)}addChild(e){return this.addChildAt(e,this.children.length)}addChildAt(e,t=this.children.length){if(!e||this.contains(e))return e;this._needsSort=!0;let i=e.parent;return i&&i!==this&&i.removeChild(e),t>=this.children.length?this.children.push(e):this.children.splice(t,0,e),this._childrenSet.add(e),e.parent=this,e.stage=this.stage,this!==this.stage&&(e.clips=this.clips),this.requestRender(),this._childrenObservable.notify(),e}contains(e){return(0,s.gc)(this._childrenObservable),this._childrenSet.has(e)}removeAllChildren(){for(let e of(this._childrenSet.clear(),this._needsSort=!0,this.children))this!==this.stage&&(e.clips=null),e.stage=null,e.parent=null;this.children.length=0,this._childrenObservable.notify()}removeChild(e){return this.contains(e)?this.removeChildAt(this.children.indexOf(e)):e}removeChildAt(e){if(e<0||e>=this.children.length)return null;this._needsSort=!0;let t=this.children.splice(e,1)[0];return this._childrenSet.delete(t),this!==this.stage&&(t.clips=null),t.stage=null,t.parent=null,this._childrenObservable.notify(),t}beforeRender(e){for(let t of(super.beforeRender(e),this.sortFunction&&this._needsSort&&(this.children.sort(this.sortFunction),this._needsSort=!1,this._childrenObservable.notify()),this.children))t.beforeRender(e)}afterRender(e){for(let t of(super.afterRender(e),this.children))t.afterRender(e)}_createTransforms(){return{displayViewScreenMat3:(0,n.vt)()}}onAttach(){super.onAttach();let e=this.stage;for(let t of this.children)t.stage=e}onDetach(){for(let e of(super.onDetach(),this.children))e.stage=null}renderChildren(e){for(let t of this.children)t.processRender(e)}createRenderParams(e){return{...e,requireFBO:this.requiresDedicatedFBO,blendMode:this.blendMode,effects:this.computedEffects,globalOpacity:e.globalOpacity*this.computedOpacity,inFadeTransition:this.inFadeTransition,highlightGradient:this._highlightGradient||e.highlightGradient}}isTransitioning(){return super.isTransitioning()||this.children.some(e=>e.transitioning)}}},74372:(e,t,i)=>{i.d(t,{$B:()=>p});var s=i(49493),r=i(29498),n=i(74552),h=i(13356),a=i(64988),l=i(9491),o=i(44708),d=i(38775),c=i(11625);let p=class extends r.A{constructor(e){super(e),this._from=null,this._to=null,this._final=null,this._current=[],this._time=0,this.duration=(0,n.A)("mapview-transitions-duration"),this.effects=[]}set effect(e){if(this._get("effect")!==(e=e||"")){this._set("effect",e);try{this._transitionTo(u(e))}catch(t){this._transitionTo([]),a.A.getLogger(this).warn("Invalid Effect",{effect:e,error:t})}}}get final(){return this._final}get hasEffects(){return this.transitioning||!!this.effects.length}set scale(e){this._updateForScale(e)}get transitioning(){return null!==this._to}canTransitionTo(e){try{return this.scale>0&&f(this._current,u(e),this.scale)}catch{return!1}}transitionStep(e,t){this._applyTimeTransition(e),this._updateForScale(t)}endTransition(){this._applyTimeTransition(this.duration)}_transitionTo(e){this.scale>0&&f(this._current,e,this.scale)?(this._final=e,this._to=(0,h.o8)(e),function(e,t,i){let s=e.length>t.length?e:t,r=e.length>t.length?t:e,n=r[r.length-1],h=n?.scale??i,a=n?.effects??[];for(let e=r.length;e<s.length;e++)r.push({scale:h,effects:[...a]});for(let e=0;e<s.length;e++)r[e].scale=-1===r[e].scale?i:r[e].scale,s[e].scale=-1===s[e].scale?i:s[e].scale,(0,c.O9)(r[e].effects,s[e].effects)}(this._current,this._to,this.scale),this._from=(0,h.o8)(this._current),this._time=0):(this._from=this._to=this._final=null,this._current=e),this._set("effects",this._current[0]?(0,h.o8)(this._current[0].effects):[])}_applyTimeTransition(e){if(!(this._to&&this._from&&this._current&&this._final))return;this._time+=e;let t=Math.min(1,this._time/this.duration);for(let e=0;e<this._current.length;e++){var i,s;let r=this._current[e],n=this._from[e],h=this._to[e];i=n.scale,s=h.scale,r.scale=i+(s-i)*t;for(let e=0;e<r.effects.length;e++){let i=r.effects[e],s=n.effects[e],a=h.effects[e];i.interpolate(s,a,t)}}1===t&&(this._current=this._final,this._set("effects",this._current[0]?(0,h.o8)(this._current[0].effects):[]),this._from=this._to=this._final=null)}_updateForScale(e){if(this._set("scale",e),0===this._current.length)return;let t=this._current,i=this._current.length-1,s,r,n=1;if(1===t.length||e>=t[0].scale)r=s=t[0].effects;else if(e<=t[i].scale)r=s=t[i].effects;else for(let h=0;h<i;h++){let i=t[h],a=t[h+1];if(i.scale>=e&&a.scale<=e){n=(e-i.scale)/(a.scale-i.scale),s=i.effects,r=a.effects;break}}for(let e=0;e<this.effects.length;e++)this.effects[e].interpolate(s[e],r[e],n)}};function u(e){let t=(0,d.q)(e)||[];return!function(e){let t=e[0];return!!t&&"type"in t}(t)?t:[{scale:-1,effects:t}]}function f(e,t,i){return!(e[0]?.effects&&t[0]?.effects)||!((e[0]?.scale===-1||t[0]?.scale===-1)&&(e.length>1||t.length>1)&&i<=0)&&(0,c.mj)(e[0].effects,t[0].effects)}(0,s._)([(0,l.MZ)()],p.prototype,"_to",void 0),(0,s._)([(0,l.MZ)()],p.prototype,"duration",void 0),(0,s._)([(0,l.MZ)({value:""})],p.prototype,"effect",null),(0,s._)([(0,l.MZ)({readOnly:!0})],p.prototype,"effects",void 0),(0,s._)([(0,l.MZ)({readOnly:!0})],p.prototype,"final",null),(0,s._)([(0,l.MZ)({readOnly:!0})],p.prototype,"hasEffects",null),(0,s._)([(0,l.MZ)({value:0})],p.prototype,"scale",null),(0,s._)([(0,l.MZ)({readOnly:!0})],p.prototype,"transitioning",null),p=(0,s._)([(0,o.$)("esri.layers.effects.EffectView")],p)}}]);
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.