1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2521,8373,6557,9421],{69563:(tt,$,o)=>{o.r($),o.d($,{default:()=>I});var a=o(27394),K=o(12759),b=o(80444),S=o(38677),R=o(79049),j=o(63171),U=o(97013),F=o(53580),D=o(1319),x=o(59051),L=o(55624),B=o(91591),v=o(51267),M;function O(d){if(!d)return null;const g={};for(const W in d){const C=(0,v.rS)(d[W]);C&&(g[W]=C)}return Object.keys(g).length!==0?g:null}function h(d){if(d==null)return null;const g={};for(const W in d){const C=d[W];C&&(g[W]=C.toJSON())}return Object.keys(g).length!==0?g:null}let E=M=class extends(0,R.O)(j.oY){constructor(...d){super(...d),this.isAggregate=!1,this.layer=null,this.origin=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,U.c)(),configurable:!0})}normalizeCtorArgs(d,g,W,C){return d&&!d.declaredClass?d:{geometry:d,symbol:g,attributes:W,popupTemplate:C}}set aggregateGeometries(d){const g=this._get("aggregateGeometries");JSON.stringify(g)!==JSON.stringify(d)&&this._set("aggregateGeometries",d)}set attributes(d){const g=this._get("attributes");g!==d&&(this._set("attributes",d),this._notifyLayer("attributes",g,d))}set geometry(d){const g=this._get("geometry");g!==d&&(this._set("geometry",d),this._notifyLayer("geometry",g,d))}set symbol(d){const g=this._get("symbol");g!==d&&(this._set("symbol",d),this._notifyLayer("symbol",g,d))}set visible(d){const g=this._get("visible");g!==d&&(this._set("visible",d),this._notifyLayer("visible",g,d))}cloneShallow(){return new M({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(d=!1){if(this.popupTemplate)return this.popupTemplate;const g=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const W of[g,this.sourceLayer,this.layer])if(W){if("popupTemplate"in W&&W.popupTemplate)return W.popupTemplate;if(d&&"defaultPopupTemplate"in W&&W.defaultPopupTemplate!=null)return W.defaultPopupTemplate}return null}getAttribute(d){return this.attributes?.[d]}setAttribute(d,g){if(this.attributes){const W=this.getAttribute(d);this.attributes[d]=g,this._notifyLayer("attributes",W,g,d)}else this.attributes={[d]:g},this._notifyLayer("attributes",void 0,g,d)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:h(this.aggregateGeometries),geometry:this.geometry!=null?this.geometry.toJSON():null,symbol:this.symbol!=null?this.symbol.toJSON():null,attributes:(0,j.Wj)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(d={}){const{geometry:g}=this;if(g?.type==="mesh"){const W={origin:g.origin,transform:g.transform};this._notifyLayer("origin-transform",W,W,d.action)}}_notifyLayer(d,g,W,C){if(!this.layer||!("graphicChanged"in this.layer))return;const G={graphic:this,property:d,oldValue:g,newValue:W};d==="origin-transform"&&(G.action=C),d==="attributes"&&(G.attributeName=C),this.layer.graphicChanged(G)}};(0,a._)([(0,F.MZ)({value:null,json:{read:O}})],E.prototype,"aggregateGeometries",null),(0,a._)([(0,F.MZ)({value:null})],E.prototype,"attributes",null),(0,a._)([(0,F.MZ)({value:null,types:K.yR,json:{read:v.rS}})],E.prototype,"geometry",null),(0,a._)([(0,F.MZ)({type:Boolean})],E.prototype,"isAggregate",void 0),(0,a._)([(0,F.MZ)({clonable:"reference"})],E.prototype,"layer",void 0),(0,a._)([(0,F.MZ)({clonable:"reference"})],E.prototype,"origin",void 0),(0,a._)([(0,F.MZ)({type:b.default})],E.prototype,"popupTemplate",void 0),(0,a._)([(0,F.MZ)({clonable:"reference"})],E.prototype,"sourceLayer",void 0),(0,a._)([(0,F.MZ)({value:null,types:S.Es})],E.prototype,"symbol",null),(0,a._)([(0,F.MZ)({type:Boolean,value:!0})],E.prototype,"visible",null),E=M=(0,a._)([(0,B.$)("esri.Graphic")],E),function(d){d.generateUID=U.c}(E||(E={}));const I=E},14558:(tt,$,o)=>{o.d($,{A:()=>h});var a=o(27394),K=o(63171),b=o(22805),S=o(53580),R=o(1319),j=o(59051),U=o(55624),F=o(80646),D=o(91591),x=o(9430),L=o(71546),B;
1let v=B=class extends K.oY{static get allTime(){return M}static get empty(){return O}constructor(E){super(E),this.end=null,this.start=null}readEnd(E,I){return I.end!=null?new Date(I.end):null}writeEnd(E,I){I.end=E?.getTime()??null}get isAllTime(){return this.equals(B.allTime)}get isEmpty(){return this.equals(B.empty)}readStart(E,I){return I.start!=null?new Date(I.start):null}writeStart(E,I){I.start=E?.getTime()??null}clone(){return new B({end:this.end,start:this.start})}equals(E){if(!E)return!1;const I=this.start?.getTime()??this.start,d=this.end?.getTime()??this.end,g=E.start?.getTime()??E.start,W=E.end?.getTime()??E.end;return I===g&&d===W}expandTo(E,I=L.qU){if(this.isEmpty||this.isAllTime)return this.clone();let d=this.start;d&&(d=(0,b.lL)(d,E,I));let g=this.end;if(g){const W=(0,b.lL)(g,E,I);g=g.getTime()===W.getTime()?W:(0,b.S1)(W,1,E,I)}return new B({start:d,end:g})}intersection(E){if(!E)return this.clone();if(this.isEmpty||E.isEmpty)return B.empty;if(this.isAllTime)return E.clone();if(E.isAllTime)return this.clone();const I=this.start?.getTime()??-1/0,d=this.end?.getTime()??1/0,g=E.start?.getTime()??-1/0,W=E.end?.getTime()??1/0;let C,G;if(g>=I&&g<=d?C=g:I>=g&&I<=W&&(C=I),d>=g&&d<=W?G=d:W>=I&&W<=d&&(G=W),C!=null&&G!=null&&!isNaN(C)&&!isNaN(G)){const V=new B;return V.start=C===-1/0?null:new Date(C),V.end=G===1/0?null:new Date(G),V}return B.empty}offset(E,I,d=L.qU){if(this.isEmpty||this.isAllTime)return this.clone();const g=new B,{start:W,end:C}=this;return W!=null&&(g.start=(0,b.S1)(W,E,I,d)),C!=null&&(g.end=(0,b.S1)(C,E,I,d)),g}union(E){if(!E||E.isEmpty)return this.clone();if(this.isEmpty)return E.clone();if(this.isAllTime||E.isAllTime)return M.clone();const I=this.start!=null&&E.start!=null?new Date(Math.min(this.start.getTime(),E.start.getTime())):null,d=this.end!=null&&E.end!=null?new Date(Math.max(this.end.getTime(),E.end.getTime())):null;return new B({start:I,end:d})}};(0,a._)([(0,S.MZ)({type:Date,json:{write:{allowNull:!0}}})],v.prototype,"end",void 0),(0,a._)([(0,F.w)("end")],v.prototype,"readEnd",null),(0,a._)([(0,x.K)("end")],v.prototype,"writeEnd",null),(0,a._)([(0,S.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"isAllTime",null),(0,a._)([(0,S.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"isEmpty",null),(0,a._)([(0,S.MZ)({type:Date,json:{write:{allowNull:!0}}})],v.prototype,"start",void 0),(0,a._)([(0,F.w)("start")],v.prototype,"readStart",null),(0,a._)([(0,x.K)("start")],v.prototype,"writeStart",null),v=B=(0,a._)([(0,D.$)("esri.TimeExtent")],v);const M=new v,O=new v({start:void 0,end:void 0}),h=v},79049:(tt,$,o)=>{o.d($,{O:()=>x,P:()=>L});var a=o(27394),K=o(15256),b=o(1319),S=o(11075),R=o(59051),j=o(26859),U=o(36575),F=o(41231),D=o(91591);const x=B=>{let v=class extends B{clone(){const M=(0,F.oY)(this);(0,j.Lw)(M,"unable to clone instance of non-accessor class");const O=M.metadata,h=M.store,E={},I=new Map;for(const g in O){const W=O[g],C=h?.originOf(g),G=W.clonable;if(W.readOnly||G===!1||C!==U.Gr.USER&&C!==U.Gr.DEFAULTS&&C!==U.Gr.WEB_MAP&&C!==U.Gr.WEB_SCENE)continue;const V=this[g];let w=null;w=typeof G=="function"?G(V):G==="reference"?V:(0,S.TU)(V),V!=null&&w==null||(C===U.Gr.DEFAULTS?I.set(g,w):E[g]=w)}const d=new(Object.getPrototypeOf(this)).constructor(E);if(I.size){const g=(0,F.oY)(d)?.store;if(g)for(const[W,C]of I)g.set(W,C,U.Gr.DEFAULTS)}return d}};return v=(0,a._)([(0,D.$)("esri.core.Clonable")],v),v};let L=class extends x(K.A){};L=(0,a._)([(0,D.$)("esri.core.Clonable")],L)},73278:(tt,$,o)=>{o.d($,{A:()=>L});var a=o(27394),K=o(91282),b=o(60258),S=o(40945),R=o(59051),j=o(10609),U=o(91740),F=o(53580),D=o(91591);let x=class extends K.A{constructor(B){super(B),this.getCollections=null}initialize(){this.addHandles((0,U.fm)(()=>this._refresh()))}destroy(){this.getCollections=null}_refresh(){const B=this.getCollections!=null?this.getCollections():null;if(B==null)return void this.removeAll();let v=0;for(const M of B)M!=null&&(v=this._processCollection(v,M));this.splice(v,this.length)}_createNewInstance(B){return new K.A(B)}_processCollection(B,v){if(!v)return B;const M=this.itemFilterFunction??(O=>!!O);for(const O of v)if(O){if(M(O)){const h=this.indexOf(O,B);h>=0?h!==B&&this.reorder(O,B):this.add(O,B),++B}if(this.getChildrenFunction){const h=this.getChildrenFunction(O);if(Array.isArray(h))for(const E of h)B=this._processCollection(B,E);else B=this._processCollection(B,h)}}return B}};(0,a._)([(0,F.MZ)()],x.prototype,"getCollections",void 0),(0,a._)([(0,F.MZ)()],x.prototype,"getChildrenFunction",void 0),(0,a._)([(0,F.MZ)()],x.prototype,"itemFilterFunction",void 0),x=(0,a._)([(0,D.$)("esri.core.CollectionFlattener")],x);const L=x},82483:(tt,$,o)=>{o.d($,{PH:()=>R,sA:()=>S});var a=o(27394),K=o(91591);let b=0;const S=U=>{let F=class extends U{constructor(...D){super(...D),Object.defineProperty(this,"uid",{writable:!1,
1configurable:!1,value:Date.now().toString(16)+"-object-"+b++})}};return F=(0,a._)([(0,K.$)("esri.core.Identifiable")],F),F},R=U=>{let F=class extends U{constructor(...D){super(...D),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:b++})}};return F=(0,a._)([(0,K.$)("esri.core.NumericIdentifiable")],F),F};let j=class extends S(class{}){};j=(0,a._)([(0,K.$)("esri.core.Identifiable")],j)},79542:(tt,$,o)=>{o.d($,{e:()=>b});var a=o(99643),K=o(53580);function b(S,R={}){const j=S instanceof a.J?S:new a.J(S,R),U={type:R?.ignoreUnknown??1?j.apiValues:String,json:{type:j.jsonValues,read:!R?.readOnly&&{reader:j.read},write:{writer:j.write}}};return R?.readOnly!==void 0&&(U.readOnly=!!R.readOnly),R?.default!==void 0&&(U.json.default=R.default),R?.name!==void 0&&(U.json.name=R.name),R?.nonNullable!==void 0&&(U.nonNullable=R.nonNullable),(0,K.MZ)(U)}},12850:(tt,$,o)=>{o.d($,{H:()=>b,V:()=>K});var a=o(91282);function K(R,j,U=a.A){return j||(j=new U),j===R||(j.removeAll(),S(R)?j.addMany(R):R&&j.add(R)),j}function b(R){return R}function S(R){return R&&(Array.isArray(R)||"items"in R&&Array.isArray(R.items))}},93233:(tt,$,o)=>{o.d($,{GB:()=>S,Xb:()=>K});var a=o(1319);function K(R){}function b(R){}function S(R){return()=>R}},59283:(tt,$,o)=>{o.d($,{C1:()=>I,C_:()=>M,OH:()=>W,Vh:()=>C,on:()=>B,pc:()=>G,wB:()=>D,z7:()=>x});var a=o(60258),K=o(91282),b=o(23386),S=o(61267),R=o(26859),j=o(18573),U=o(10609),F=o(91740);function D(V,w,T={}){return L(V,w,T,h)}function x(V,w,T={}){return L(V,w,T,E)}function L(V,w,T={},_){let c=null;const P=T.once?(Z,J)=>{_(Z)&&((0,R.xt)(c),w(Z,J))}:(Z,J)=>{_(Z)&&w(Z,J)};if(c=(0,U.Cn)(V,P,T.sync,T.equals),T.initial){const Z=V();P(Z,Z)}return c}function B(V,w,T,_={}){let c=null,P=null,Z=null;function J(){c&&P&&(P.remove(),_.onListenerRemove?.(c),c=null,P=null)}function X(it){_.once&&_.once&&(0,R.xt)(Z),T(it)}const nt=D(V,(it,k)=>{J(),(0,b.wb)(it)&&(c=it,P=(0,b.on)(it,w,X),_.onListenerAdd?.(it))},{sync:_.sync,initial:!0});return Z=(0,S.hA)(()=>{nt.remove(),J()}),Z}function v(V,w){return O(V,null,w)}function M(V,w){return O(V,E,w)}function O(V,w,T){if((0,j.G4)(T))return Promise.reject((0,j.NK)());const _=V();if(w?.(_))return Promise.resolve(_);let c=null;function P(){c=(0,R.xt)(c)}return new Promise((Z,J)=>{c=(0,S.vE)([(0,j.u7)(T,()=>{P(),J((0,j.NK)())}),L(V,X=>{P(),Z(X)},{sync:!1,once:!0},w??h)])})}function h(V){return!0}function E(V){return!!V}function I(V,w,T={}){let _=!1;const c=D(V,(P,Z)=>{_||w(P,Z)},T);return{remove(){c.remove()},pause(){_=!0},resume(){_=!1}}}function d(V,w){const T=new e,_=B(V,"after-splice",({added:c,start:P,deleteCount:Z})=>{const J=T.splice(P,Z);for(const X of J)X.remove();if(c?.length){const X=c.map(w);T.addMany(X,P)}},{sync:!0,onListenerRemove:()=>T.drain(c=>c.remove()),onListenerAdd:c=>T.addMany(c.items.map(w))});return T.addHandles(_),T}function g(V,w){const T=new e,_=d(V,J=>n(async X=>{const nt=await w(J,X);if(u(X))throw nt.remove(),l();return nt})),c=()=>null,P=async J=>{const X=await J.promise,nt=_.indexOf(J);nt<0||T.splice(nt,1,X)};T.addMany(_.items.map(c));for(const J of _)f(P(J));const Z=_.on("after-splice",({added:J,start:X,deleteCount:nt})=>{const it=T.splice(X,nt);for(const k of it)k?.remove();if(J?.length){T.addMany(J.map(c),X);for(const k of J)f(P(k))}});return T.addHandles([s(_),Z]),T}const W={sync:!0},C={initial:!0},G={sync:!0,initial:!0}},98373:(tt,$,o)=>{o.d($,{GB:()=>K,Qo:()=>S,Y4:()=>b});var a=o(56260);class K{}function b(j){return j instanceof a.bo?j===K.instance:j?.toString().toLowerCase()==="unknown"}function S(j){return b(j)?K.instance:j}function R(j,U){return e.fromObject({day:j.day,year:j.year,month:j.month,hour:j.hour,minute:j.minute,second:j.second,millisecond:j.millisecond},{zone:U})}K.instance=new a.oh("Etc/UTC")},22805:(tt,$,o)=>{o.d($,{S1:()=>R,lL:()=>U,t:()=>B,vf:()=>S});var a=o(88603),K=o(71546),b=o(56260);const S={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function R(h,E,I,d=K.qU){const g=new b.oh((0,a.wj)(d)),W=b.c9.fromJSDate(h,{zone:g}),C=I==="decades"||I==="centuries"?"year":O(I);return I==="decades"&&(E*=10),I==="centuries"&&(E*=100),W.plus({[C]:E}).toJSDate()}function j(h,E,I="milliseconds"){const d=h.getTime(),g=B(E,I,"milliseconds");return new Date(d+g)}function U(h,E,I=K.qU){const d=new b.oh((0,a.wj)(I)),g=b.c9.fromJSDate(h,{zone:d});if(E==="decades"||E==="centuries"){const C=g.startOf("year"),{year:G}=C,V=G-G%(E==="decades"?10:100);return C.set({year:V}).toJSDate()}const W=O(E);return g.startOf(W).toJSDate()}function F(h,E,I="milliseconds"){const d=new Date(B(E,I,"milliseconds"));return d.setUTCFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),d}function D(h,E="milliseconds"){const I=B(h.getUTCHours(),"hours","milliseconds"),d=B(h.getUTCMinutes(),"minutes","milliseconds"),g=B(h.getUTCSeconds(),"seconds","milliseconds");return B(I+d+g+h.getUTCMilliseconds(),"milliseconds",E)}function x(h,E){const I=new Date(h.getTime());return I.setUTCFullYear(E.getFullYear(),E.getMonth(),E.getDate()),I}function L(h){const E=new Date(0);return E.setHours(0),E.setMinutes(0),E.setSeconds(0),E.setMilliseconds(0),E.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),E}function B(h,E,I){return h===0?0:h*S[E]/S[I]}function v(h){return h instanceof Date&&!isNaN(h.getTime())}function M(h,E){return h&&E?h.intersection(E):h||E}function O(h){switch(h){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},12759:(tt,$,o)=>{o.d($,{yR:()=>B});var a=o(87286),K=o(86186),b=o(90778),S=o(75203),R=o(53257),j=o(34530),U=o(93294),F=o(11863),D=o(89153),x=o(51267);function L(M){return M instanceof t}const B={base:b.A,key:"type",typeMap:{extent:K.A,multipoint:S.A,point:R.default,polyline:U.A,polygon:j.A}},v=(0,a.aq)(B)},58515:(tt,$,o)=>{o.d($,{BI:()=>Q,Ej:()=>W,Hq:()=>B,Ie:()=>k,Jt:()=>H,Ne:()=>X,RF:()=>D,aI:()=>A,fA:()=>R,hZ:()=>it,iT:()=>L,is:()=>y,qv:()=>et,vI:()=>nt,v_:()=>rt,vt:()=>S,w1:()=>U});var a=o(86186),K=o(68398);function b(i){return i}function S(i=rt){return[i[0],i[1],i[2],i[3],i[4],i[5]]}function R(i,p,z,q,st,lt,ut=S()){return ut[0]=i,ut[1]=p,ut[2]=z,ut[3]=q,ut[4]=st,ut[5]=lt,ut}function j(i,p=S()){return p[0]=i.xmin,p[1]=i.ymin,p[2]=i.hasZ?i.zmin:-1/0,p[3]=i.xmax,p[4]=i.ymax,p[5]=i.hasZ?i.zmax:1/0,p}function U(i,p){const z=isFinite(i[2])||isFinite(i[5]);return new a.A(z?{xmin:i[0],xmax:i[3],ymin:i[1],ymax:i[4],zmin:i[2],zmax:i[5],spatialReference:p}:{xmin:i[0],xmax:i[3],ymin:i[1],ymax:i[4],spatialReference:p})}function F(i,p,z=S()){return z[0]=i[0],z[1]=i[1],z[2]=i[2],z[3]=p[0],z[4]=p[1],z[5]=p[2],z}function D(i,p){i[0]=Math.min(i[0],p[0]),i[1]=Math.min(i[1],p[1]),i[2]=Math.min(i[2],p[2]),i[3]=Math.max(i[3],p[3]),i[4]=Math.max(i[4],p[4]),i[5]=Math.max(i[5],p[5])}function x(i,p){i[0]=Math.min(i[0],p[0]),i[1]=Math.min(i[1],p[1]),i[3]=Math.max(i[3],p[2]),i[4]=Math.max(i[4],p[3])}function L(i,p){i[0]=Math.min(i[0],p[0]),i[1]=Math.min(i[1],p[1]),i[2]=Math.min(i[2],p[2]),i[3]=Math.max(i[3],p[0]),i[4]=Math.max(i[4],p[1]),i[5]=Math.max(i[5],p[2])}function B(i,p,z=0,q=p.length/3){let st=i[0],lt=i[1],ut=i[2],dt=i[3],ht=i[4],_t=i[5];for(let at=0;at<q;at++)st=Math.min(st,p[z+3*at]),lt=Math.min(lt,p[z+3*at+1]),ut=Math.min(ut,p[z+3*at+2]),dt=Math.max(dt,p[z+3*at]),ht=Math.max(ht,p[z+3*at+1]),_t=Math.max(_t,p[z+3*at+2]);i[0]=st,i[1]=lt,i[2]=ut,i[3]=dt,i[4]=ht,i[5]=_t}function v(i,p,z,q){i[0]=Math.min(i[0],i[0]+p),i[3]=Math.max(i[3],i[3]+p),i[1]=Math.min(i[1],i[1]+z),i[4]=Math.max(i[4],i[4]+z),i[2]=Math.min(i[2],i[2]+q),i[5]=Math.max(i[5],i[5]+q)}function M(i,p,z){const q=p.length;let st=i[0],lt=i[1],ut=i[2],dt=i[3],ht=i[4],_t=i[5];if(z)for(let at=0;at<q;at++){const ct=p[at];
1st=Math.min(st,ct[0]),lt=Math.min(lt,ct[1]),ut=Math.min(ut,ct[2]),dt=Math.max(dt,ct[0]),ht=Math.max(ht,ct[1]),_t=Math.max(_t,ct[2])}else for(let at=0;at<q;at++){const ct=p[at];st=Math.min(st,ct[0]),lt=Math.min(lt,ct[1]),dt=Math.max(dt,ct[0]),ht=Math.max(ht,ct[1])}i[0]=st,i[1]=lt,i[2]=ut,i[3]=dt,i[4]=ht,i[5]=_t}function O(i){for(let p=0;p<6;p++)if(!isFinite(i[p]))return!1;return!0}function h(i){return i[0]>=i[3]?0:i[3]-i[0]}function E(i){return i[1]>=i[4]?0:i[4]-i[1]}function I(i){return i[2]>=i[5]?0:i[5]-i[2]}function d(i){const p=h(i),z=I(i),q=E(i);return Math.sqrt(p*p+z*z+q*q)}function g(i,p=[0,0,0]){return p[0]=i[0]+h(i)/2,p[1]=i[1]+E(i)/2,p[2]=i[2]+I(i)/2,p}function W(i,p=[0,0,0]){return p[0]=h(i),p[1]=E(i),p[2]=I(i),p}function C(i){return Math.max(h(i),I(i),E(i))}function G(i,p){return p[0]>=i[0]&&p[1]>=i[1]&&p[2]>=i[2]&&p[0]<=i[3]&&p[1]<=i[4]&&p[2]<=i[5]}function V(i,p,z){return p[0]>=i[0]-z&&p[1]>=i[1]-z&&p[2]>=i[2]-z&&p[0]<=i[3]+z&&p[1]<=i[4]+z&&p[2]<=i[5]+z}function w(i,p){return p[0]>=i[0]&&p[1]>=i[1]&&p[2]>=i[2]&&p[3]<=i[3]&&p[4]<=i[4]&&p[5]<=i[5]}function T(i,p){return Math.max(p[0],i[0])<=Math.min(p[3],i[3])&&Math.max(p[1],i[1])<=Math.min(p[4],i[4])&&Math.max(p[2],i[2])<=Math.min(p[5],i[5])}function _(i,p){return p==null||T(i,p)}function c(i,p,z,q,st=i){return st[0]=i[0]+p,st[1]=i[1]+z,st[2]=i[2]+q,st[3]=i[3]+p,st[4]=i[4]+z,st[5]=i[5]+q,st}function P(i,p,z=i){const q=i[0]+h(i)/2,st=i[1]+E(i)/2,lt=i[2]+I(i)/2;return z[0]=q+(i[0]-q)*p,z[1]=st+(i[1]-st)*p,z[2]=lt+(i[2]-lt)*p,z[3]=q+(i[3]-q)*p,z[4]=st+(i[4]-st)*p,z[5]=lt+(i[5]-lt)*p,z}function Z(i,p){return p[0]=i[0],p[1]=i[1],p[2]=i[2],p}function J(i,p){return p[0]=i[3],p[1]=i[4],p[2]=i[5],p}function X(i,p,z=i){return z[0]=p[0],z[1]=p[1],z[2]=p[2],z!==i&&(z[3]=i[3],z[4]=i[4],z[5]=i[5]),z}function nt(i,p,z=i){return z[3]=p[0],z[4]=p[1],z[5]=p[2],z!==i&&(z[0]=i[0],z[1]=i[1],z[2]=i[2]),i}function it(i,p){return i[0]=p[0],i[1]=p[1],i[2]=p[2],i[3]=p[3],i[4]=p[4],i[5]=p[5],i}function k(i){return i?it(i,et):S(et)}function mt(i,p){return p||(p=t()),p[0]=i[0],p[1]=i[1],p[2]=i[3],p[3]=i[4],p}function H(i,p){return i[0]=p[0],i[1]=p[1],i[2]=Number.NEGATIVE_INFINITY,i[3]=p[2],i[4]=p[3],i[5]=Number.POSITIVE_INFINITY,i}function Q(i,p,z,q,st){return i[0]=p,i[1]=z,i[2]=Number.NEGATIVE_INFINITY,i[3]=q,i[4]=st,i[5]=Number.POSITIVE_INFINITY,i}function y(i){return i.length===6}function m(i){return h(i)===0&&E(i)===0&&I(i)===0}function A(i,p,z){if(i==null||p==null)return i===p;if(!y(i)||!y(p))return!1;if(z){for(let q=0;q<i.length;q++)if(!z(i[q],p[q]))return!1}else for(let q=0;q<i.length;q++)if(i[q]!==p[q])return!1;return!0}function N(i,p,z,q,st,lt){return R(i,p,z,q,st,lt,ot)}const Y=[-1/0,-1/0,-1/0,1/0,1/0,1/0],et=[1/0,1/0,1/0,-1/0,-1/0,-1/0],rt=[
10,0,0,0,0,0],ot=S()},51267:(tt,$,o)=>{o.d($,{$B:()=>v,Bi:()=>L,Rg:()=>x,U9:()=>F,ZC:()=>U,fT:()=>D,rS:()=>B,xD:()=>O});var a=o(86186),K=o(90778),b=o(75203),S=o(53257),R=o(34530),j=o(93294);function U(h){return h.xmin!==void 0&&h.ymin!==void 0&&h.xmax!==void 0&&h.ymax!==void 0}function F(h){return h.points!==void 0}function D(h){return h.x!==void 0&&h.y!==void 0}function x(h){return h.paths!==void 0}function L(h){return h.rings!==void 0}function B(h){return h==null?null:h instanceof K.A?h:D(h)?S.default.fromJSON(h):x(h)?j.A.fromJSON(h):L(h)?R.A.fromJSON(h):F(h)?b.A.fromJSON(h):U(h)?a.A.fromJSON(h):null}function v(h){return h?D(h)?"esriGeometryPoint":x(h)?"esriGeometryPolyline":L(h)?"esriGeometryPolygon":U(h)?"esriGeometryEnvelope":F(h)?"esriGeometryMultipoint":null:null}const M={esriGeometryPoint:S.default,esriGeometryPolyline:j.A,esriGeometryPolygon:R.A,esriGeometryEnvelope:a.A,esriGeometryMultipoint:b.A};function O(h){return h&&M[h]||null}},50570:(tt,$,o)=>{o.d($,{$X:()=>H,Gy:()=>Z,P5:()=>Q,SW:()=>k,Tr:()=>mt,VV:()=>j});var a=o(51267);function K(y){return y&&y.originPosition==="upperLeft"}const b=(y,m,A)=>[m,A],S=(y,m,A)=>[m,A,y[2]],R=(y,m,A)=>[m,A,y[2],y[3]];function j(y){return y?{originPosition:y.originPosition==="upper-left"?"upperLeft":y.originPosition==="lower-left"?"lowerLeft":y.originPosition,scale:y.tolerance?[y.tolerance,y.tolerance]:[1,1],translate:y.extent!=null?[y.extent.xmin,y.extent.ymax]:[0,0]}:null}function U(y,m){if(y===m||y==null&&m==null)return!0;if(y==null||m==null)return!1;let A,N,Y,et,rt,ot;return K(y)?(A=y.translate[0],N=y.translate[1],Y=y.scale[0]):(A=y.extent!=null?y.extent.xmin:0,N=y.extent!=null?y.extent.ymax:0,Y=y.tolerance),K(m)?(et=m.translate[0],rt=m.translate[1],ot=m.scale[0]):(et=m.extent!=null?m.extent.xmin:0,rt=m.extent!=null?m.extent.ymax:0,ot=m.tolerance),A===et&&N===rt&&Y===ot}function F({scale:y,translate:m},A){return Math.round((A-m[0])/y[0])}function D({scale:y,translate:m},A){return Math.round((m[1]-A)/y[1])}function x(y,m,A){const N=[];let Y,et,rt,ot;for(let i=0;i<A.length;i++){const p=A[i];i>0?(rt=F(y,p[0]),ot=D(y,p[1]),rt===Y&&ot===et||(N.push(m(p,rt-Y,ot-et)),Y=rt,et=ot)):(Y=F(y,p[0]),et=D(y,p[1]),N.push(m(p,Y,et)))}return N.length>0?N:null}function L(y,m,A){return m[0]=F(y,A[0]),m[3]=D(y,A[1]),m[2]=F(y,A[2]),m[1]=D(y,A[3]),m}function B(y,m,A,N){return x(y,A?N?R:S:N?S:b,m)}function v(y,m,A,N){const Y=[],et=A?N?R:S:N?S:b;for(let rt=0;rt<m.length;rt++){const ot=x(y,et,m[rt]);ot&&ot.length>=3&&Y.push(ot)}return Y.length?Y:null}function M(y,m,A,N){const Y=[],et=A?N?R:S:N?S:b;for(let rt=0;rt<m.length;rt++){const ot=x(y,et,m[rt]);ot&&ot.length>=2&&Y.push(ot)}return Y.length?Y:null}function O({scale:y,translate:m},A){return A*y[0]+m[0]}function h({scale:y,translate:m},A){return m[1]-A*y[1]}function E(y,m,A){const N=new Array(A.length);if(!A.length)return N;const[Y,et]=y.scale;let rt=O(y,A[0][0]),ot=h(y,A[0][1]);N[0]=m(A[0],rt,ot);for(let i=1;i<A.length;i++){const p=A[i];rt+=p[0]*Y,ot-=p[1]*et,N[i]=m(p,rt,ot)}return N}function I(y,m,A){const N=new Array(A.length);for(let Y=0;Y<A.length;Y++)N[Y]=E(y,m,A[Y]);return N}function d(y,m,A){return A?(m[0]=O(y,A[0]),m[1]=h(y,A[3]),m[2]=O(y,A[2]),m[3]=h(y,A[1]),m):[O(y,m[0]),h(y,m[3]),O(y,m[2]),h(y,m[1])]}function g(y,m,A,N){return E(y,A?N?R:S:N?S:b,m)}function W(y,m,A,N){return I(y,A?N?R:S:N?S:b,m)}function C(y,m,A,N){return I(y,A?N?R:S:N?S:b,m)}function G(y,m,A){let[N,Y]=A[0],et=Math.min(N,m[0]),rt=Math.min(Y,m[1]),ot=Math.max(N,m[2]),i=Math.max(Y,m[3]);for(let p=1;p<A.length;p++){const[z,q]=A[p];N+=z,Y+=q,z<0&&(et=Math.min(et,N)),z>0&&(ot=Math.max(ot,N)),q<0?rt=Math.min(rt,Y):q>0&&(i=Math.max(i,Y))}return y[0]=et,y[1]=rt,y[2]=ot,y[3]=i,y}function V(y,m){if(!m.length)return null;y[0]=y[1]=Number.POSITIVE_INFINITY,y[2]=y[3]=Number.NEGATIVE_INFINITY;for(let A=0;A<m.length;A++)G(y,y,m[A]);return y}function w(y){const m=[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY];return G(m,m,y)}function T(y){return V([0,0,0,0],y)}function _(y){return V([0,0,0,0],y)}function c(y,m,A,N,Y){return m.xmin=F(y,A.xmin),m.ymin=D(y,A.ymin),m.xmax=F(y,A.xmax),m.ymax=D(y,A.ymax),m!==A&&(N&&(m.zmin=A.zmin,m.zmax=A.zmax),Y&&(m.mmin=A.mmin,m.mmax=A.mmax)),m}function P(y,m,A,N,Y){return m.points=B(y,A.points,N,Y)??[],m}function Z(y,m,A,N,Y){return m.x=F(y,A.x),m.y=D(y,A.y),m!==A&&(N&&(m.z=A.z),Y&&(m.m=A.m)),m}function J(y,m,A,N,Y){const et=v(y,A.rings,N,Y);return et?(m.rings=et,m):null}function X(y,m,A,N,Y){const et=M(y,A.paths,N,Y);return et?(m.paths=et,m):null}function nt(y,m){return y&&m?n(m)?Z(y,{},m,!1,!1):t(m)?X(y,{},m,!1,!1):e(m)?J(y,{},m,!1,!1):r(m)?P(y,{},m,!1,!1):u(m)?c(y,{},m,!1,!1):null:null}function it(y,m,A,N,Y){return m.xmin=O(y,A.xmin),m.ymin=h(y,A.ymin),m.xmax=O(y,A.xmax),m.ymax=h(y,A.ymax),m!==A&&(N&&(m.zmin=A.zmin,m.zmax=A.zmax),Y&&(m.mmin=A.mmin,m.mmax=A.mmax)),m}function k(y,m,A,N,Y){return A!=null&&(m.points=g(y,A.points,N,Y)),m}function mt(y,m,A,N,Y){return A==null||(m.x=O(y,A.x),m.y=h(y,A.y),m!==A&&(N&&(m.z=A.z),Y&&(m.m=A.m))),m}function H(y,m,A,N,Y){return A!=null&&(m.rings=C(y,A.rings,N,Y)),m}function Q(y,m,A,N,Y){return A!=null&&(m.paths=W(y,A.paths,N,Y)),m}},89153:(tt,$,o)=>{o.d($,{Y:()=>b,g:()=>K});var a=o(99643);const K=(0,a.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),b=(0,a.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},61522:(tt,$,o)=>{o.d($,{N:()=>S});var a=o(18144),K=o(21040),b=o(38118);function S(x,L,B){if(L==null||B==null||B.vcsWkid||(0,b.aI)(L,B)||(0,K.xP)(L)||(0,K.xP)(B))return null;const v=(0,a.G9)(L)/(0,a.G9)(B);if(v===1)return null;switch(x){case"point":case"esriGeometryPoint":return M=>R(M,v);case"polyline":case"esriGeometryPolyline":return M=>U(M,v);case"polygon":case"esriGeometryPolygon":return M=>j(M,v);case"multipoint":case"esriGeometryMultipoint":return M=>F(M,v);case"extent":case"esriGeometryEnvelope":return M=>D(M,v);default:return null}}function R(x,L){x?.z!=null&&(x.z*=L)}function j(x,L){if(x)for(const B of x.rings)for(const v of B)v.length>2&&(v[2]*=L)}function U(x,L){if(x)for(const B of x.paths)for(const v of B)v.length>2&&(v[2]*=L)}function F(x,L){if(x)for(const B of x.points)B.length>2&&(B[2]*=L)}function D(x,L){x&&x.zmin!=null&&x.zmax!=null&&(x.zmin*=L,x.zmax*=L)}},92948:(tt,$,o)=>{o.r($),o.d($,{default:()=>mt});var a=o(27394),K=o(12759),b=o(91282),S=o(73278),R=o(86796),j=o(18573),U=o(59283),F=o(83549),D=o(53580),x=o(1319),L=o(59051),B=o(55624),v=o(80646),M=o(91591),O=o(9430),h=o(11863),E=o(49421),I=o(7321),d=o(98843),g=o(6290),W=o(48509),C=o(20285),G=o(27511),V=o(87210),w=o(63171),T=o(94667),_=o(43906),c=o(87286),P=o(86153),Z=o(86186),J;let X=J=class extends V.A.EventedMixin((0,w.Te)(T.A)){constructor(...H){super(...H),this.description=null,this.fullExtent=null,this.id=null,this.networkLink=null,this.parent=null,this.sublayers=null,this.title=null,this.sourceJSON=null,this.layer=null,this.addHandles([(0,U.on)(()=>this.sublayers,"after-add",({item:Q})=>{Q.parent=this,Q.layer=this.layer},U.OH),(0,U.on)(()=>this.sublayers,"after-remove",({item:Q})=>{Q.layer=Q.parent=null},U.OH),(0,U.wB)(()=>this.sublayers,(Q,y)=>{if(y)for(const m of y)m.layer=m.parent=null;if(Q)for(const m of Q)m.parent=this,m.layer=this.layer},U.OH),(0,U.wB)(()=>this.layer,Q=>{if(this.sublayers)for(const y of this.sublayers)y.layer=Q},U.OH)])}initialize(){(0,U.C_)(()=>this.networkLink).then(()=>(0,U.C_)(()=>this.visible===!0)).then(()=>this.load())}load(H){if(!this.networkLink||this.networkLink.viewFormat)return;const Q=H!=null?H.signal:null,y=this._fetchService(this._get("networkLink")?.href??"",Q).then(m=>{const A=(0,P.Qm)(m.sublayers);this.fullExtent=Z.A.fromJSON(A),this.sourceJSON=m;const N=(0,c.dp)(b.A.ofType(J),(0,P.Jy)(J,m));this.sublayers?this.sublayers.addMany(N):this.sublayers=N,this.layer?.emit("sublayer-update"),this.layer&&this.layer.notifyChange("visibleSublayers")});return this.addResolvingPromise(y),Promise.resolve(this)}get visible(){return this._get("visible")}set visible(H){this._get("visible")!==H&&(this._set("visible",H),this.layer&&this.layer.notifyChange("visibleSublayers"))}readVisible(H,Q){return!!Q.visibility}_fetchService(H,Q){return(0,P.Ox)(H,this.layer.outSpatialReference,this.layer.refreshInterval,Q).then(y=>(0,P._4)(y.data))}};(0,a._)([(0,D.MZ)()],X.prototype,"description",void 0),(0,a._)([(0,D.MZ)({type:Z.A})],X.prototype,"fullExtent",void 0),(0,a._)([(0,D.MZ)()],X.prototype,"id",void 0),(0,a._)([(0,D.MZ)({readOnly:!0,value:null})],X.prototype,"networkLink",void 0),(0,a._)([(0,D.MZ)({json:{write:{allowNull:!0}}})],X.prototype,"parent",void 0),(0,a._)([(0,D.MZ)({type:b.A.ofType(X),json:{write:{allowNull:!0}}})],X.prototype,"sublayers",void 0),(0,a._)([(0,D.MZ)({value:null,json:{read:{source:"name",reader:H=>(0,_._e)(H)}}})],X.prototype,"title",void 0),(0,a._)([(0,D.MZ)({value:!0})],X.prototype,"visible",null),(0,a._)([(0,v.w)("visible",["visibility"])],X.prototype,"readVisible",null),(0,a._)([(0,D.MZ)()],X.prototype,"sourceJSON",void 0),(0,a._)([(0,D.MZ)()],X.prototype,"layer",void 0),X=J=(0,a._)([(0,M.$)("esri.layers.support.KMLSublayer")],X);const nt=X,it=["kml","xml"];let k=class extends(0,I.d)((0,W.J)((0,C.j)((0,d.q)((0,g.A)((0,R.P)(E.A)))))){constructor(...H){super(...H),this._visibleFolders=[],this.allSublayers=new S.A({getCollections:()=>[this.sublayers],getChildrenFunction:Q=>Q.sublayers}),this.outSpatialReference=h.A.WGS84,this.path=null,this.legendEnabled=!1,this.operationalLayerType="KML",this.sublayers=null,this.type="kml",this.url=null}initialize(){this.addHandles([(0,U.wB)(()=>this.sublayers,(H,Q)=>{Q&&Q.forEach(y=>{y.parent=null,y.layer=null}),H&&H.forEach(y=>{y.parent=this,y.layer=this})},U.OH),this.on("sublayer-update",()=>this.notifyChange("fullExtent"))])}normalizeCtorArgs(H,Q){return typeof H=="string"?{url:H,...Q}:H}readSublayersFromItemOrWebMap(H,Q){this._visibleFolders=Q.visibleFolders}readSublayers(H,Q,y){return(0,P.Jy)(nt,Q,y,this._visibleFolders)}writeSublayers(H,Q){const y=[],m=H.toArray();for(;m.length;){const A=m[0];A.networkLink||(A.visible&&y.push(A.id),A.sublayers&&m.push(...A.sublayers.toArray())),m.shift()}Q.visibleFolders=y}get title(){const H=this._get("title");return H&&this.originOf("title")!=="defaults"?H:this.url?(0,F.e7)(this.url,it)||"KML":H||""}set title(H){this._set("title",H)}get visibleSublayers(){const H=this.sublayers,Q=[],y=m=>
1{m.visible&&(Q.push(m),m.sublayers&&m.sublayers.forEach(y))};return H&&H.forEach(y),Q}get fullExtent(){return this._recomputeFullExtent()}load(H){const Q=H!=null?H.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["KML"],supportsData:!1},H).catch(j.QP).then(()=>this._fetchService(Q))),Promise.resolve(this)}destroy(){super.destroy(),this.allSublayers.destroy()}async _fetchService(H){const Q=await Promise.resolve().then(()=>this.resourceInfo?{ssl:!1,data:this.resourceInfo}:(0,P.Ox)(this.url??"",this.outSpatialReference,this.refreshInterval,H)),y=(0,P._4)(Q.data);y&&this.read(y,{origin:"service"})}_recomputeFullExtent(){let H=null;this.extent!=null&&(H=this.extent.clone());const Q=y=>{if(y.sublayers)for(const m of y.sublayers.items)Q(m),m.visible&&m.fullExtent&&(H!=null?H.union(m.fullExtent):H=m.fullExtent.clone())};return Q(this),H}};(0,a._)([(0,D.MZ)({readOnly:!0})],k.prototype,"allSublayers",void 0),(0,a._)([(0,D.MZ)({type:h.A})],k.prototype,"outSpatialReference",void 0),(0,a._)([(0,D.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],k.prototype,"path",void 0),(0,a._)([(0,D.MZ)({readOnly:!0,json:{read:!1,write:!1}})],k.prototype,"legendEnabled",void 0),(0,a._)([(0,D.MZ)({type:["show","hide","hide-children"]})],k.prototype,"listMode",void 0),(0,a._)([(0,D.MZ)({type:["KML"]})],k.prototype,"operationalLayerType",void 0),(0,a._)([(0,D.MZ)({})],k.prototype,"resourceInfo",void 0),(0,a._)([(0,D.MZ)({type:b.A.ofType(nt),json:{write:{ignoreOrigin:!0}}})],k.prototype,"sublayers",void 0),(0,a._)([(0,v.w)(["web-map","portal-item"],"sublayers",["visibleFolders"])],k.prototype,"readSublayersFromItemOrWebMap",null),(0,a._)([(0,v.w)("service","sublayers",["sublayers"])],k.prototype,"readSublayers",null),(0,a._)([(0,O.K)("sublayers")],k.prototype,"writeSublayers",null),(0,a._)([(0,D.MZ)({readOnly:!0,json:{read:!1}})],k.prototype,"type",void 0),(0,a._)([(0,D.MZ)({json:{origins:{"web-map":{read:{source:"title"}}},write:{ignoreOrigin:!0}}})],k.prototype,"title",null),(0,a._)([(0,D.MZ)(G.OZ)],k.prototype,"url",void 0),(0,a._)([(0,D.MZ)({readOnly:!0})],k.prototype,"visibleSublayers",null),(0,a._)([(0,D.MZ)({type:Z.A})],k.prototype,"extent",void 0),(0,a._)([(0,D.MZ)()],k.prototype,"fullExtent",null),k=(0,a._)([(0,M.$)("esri.layers.KMLLayer")],k);const mt=k},49421:(tt,$,o)=>{o.d($,{A:()=>W});var a=o(27394),K=o(12759),b=o(78634),S=o(40945),R=o(87210),j=o(82483),U=o(94667),F=o(59051),D=o(18573),x=o(83549),L=o(53580),B=o(1319),v=o(55624),M=o(91591),O=o(68977);async function h(C){const G="portalItem"in C?C:{portalItem:C},{fromItem:V}=await Promise.all([o.e(773),o.e(1472),o.e(6557)]).then(o.bind(o,61472));try{return await V(G)}catch(w){const T=G&&G.portalItem,_=T?.id||"unset",c=T&&T.portal&&T.portal.url||O.A.portalUrl;throw F.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+c+"', id: '"+_+"')",w),w}}var E=o(86186),I=o(11863);let d=0,g=class extends R.A.EventedMixin((0,j.sA)(U.A)){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new E.A(-180,-90,180,90,I.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+d++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=I.A.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(C){const G=typeof C=="string"?{url:C}:C;return(await o.e(3663).then(o.bind(o,73663))).fromUrl(G)}static fromPortalItem(C){return h(C)}initialize(){this.when().catch(C=>{(0,D.zf)(C)||F.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:C})})}destroy(){const C=this.parent;if(C){const G=this;"layers"in C&&C.layers.includes(G)?C.layers.remove(G):"tables"in C&&C.tables.includes(G)?C.tables.remove(G):"baseLayers"in C&&C.baseLayers.includes(G)?C.baseLayers.remove(G):"referenceLayers"in C&&C.referenceLayers.includes(G)&&C.referenceLayers.remove(G),this._set("parent",null)}}get hasAttributionData(){return this.attributionDataUrl!=null}get parsedUrl(){return(0,x.An)(this.url)}async fetchAttributionData(){const C=this.attributionDataUrl;if(this.hasAttributionData&&C)return(await(0,b.A)(C,{query:{f:"json"},responseType:"json"})).data;throw new S.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,a._)([(0,L.MZ)({type:String})],g.prototype,"attributionDataUrl",void 0),(0,a._)([(0,L.MZ)({type:E.A})],g.prototype,"fullExtent",void 0),(0,a._)([(0,L.MZ)({readOnly:!0})],g.prototype,"hasAttributionData",null),(0,a._)([(0,L.MZ)({type:String,clonable:!1})],g.prototype,"id",void 0),(0,a._)([(0,L.MZ)({type:Boolean,nonNullable:!0})],g.prototype,"legendEnabled",void 0),(0,a._)([(0,L.MZ)({type:["show","hide","hide-children"]})],g.prototype,"listMode",void 0),(0,a._)([(0,L.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],g.prototype,"opacity",void 0),(0,a._)([(0,L.MZ)({clonable:!1})],g.prototype,"parent",void 0),(0,a._)([(0,L.MZ)({readOnly:!0})],g.prototype,"parsedUrl",null),(0,a._)([(0,L.MZ)({type:Boolean,readOnly:!0})],g.prototype,"persistenceEnabled",void 0),(0,a._)([(0,L.MZ)({type:Boolean})],g.prototype,"popupEnabled",void 0),(0,a._)([(0,L.MZ)({type:Boolean})],g.prototype,"attributionVisible",void 0),(0,a._)([(0,L.MZ)({type:I.A})],g.prototype,"spatialReference",void 0),(0,a._)([(0,L.MZ)({type:String})],g.prototype,"title",void 0),(0,a._)([(0,L.MZ)({readOnly:!0,json:{read:!1}})],g.prototype,"type",void 0),(0,a._)([(0,L.MZ)()],g.prototype,"url",void 0),(0,a._)([(0,L.MZ)({type:Boolean,nonNullable:!0})],g.prototype,"visible",void 0),g=(0,a._)([(0,M.$)("esri.layers.Layer")],g);const W=g},90184:(tt,$,o)=>{o.d($,{bv:()=>E,Fk:()=>I,yG:()=>d,$b:()=>g,Nd:()=>W,jm:()=>C,sK:()=>w});var a=o(14215),K=o(41418);function b(){const T=new Float32Array(16);return T[0]=1,T[5]=1,T[10]=1,T[15]=1,T}function S(T){const _=new Float32Array(16);return _[0]=T[0],_[1]=T[1],_[2]=T[2],_[3]=T[3],_[4]=T[4],_[5]=T[5],_[6]=T[6],_[7]=T[7],_[8]=T[8],_[9]=T[9],_[10]=T[10],_[11]=T[11],_[12]=T[12],_[13]=T[13],_[14]=T[14],_[15]=T[15],_}function R(T,_,c,P,Z,J,X,nt,it,k,mt,H,Q,y,m,A){const N=new Float32Array(16);return N[0]=T,N[1]=_,N[2]=c,N[3]=P,N[4]=Z,N[5]=J,N[6]=X,N[7]=nt,N[8]=it,N[9]=k,N[10]=mt,N[11]=H,N[12]=Q,N[13]=y,N[14]=m,N[15]=A,N}function j(T,_){return new Float32Array(T,_,16)}const U=b(),F=Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:U,clone:S,create:b,createView:j,fromValues:R},Symbol.toStringTag,{value:"Module"}));var D=o(25182);const x=(T,_)=>{const c=(0,D.hZ)(T,_,0,0,0,0,_,0,0,0,0,_,0,0,0,0,1);return(0,D.mg)(c,c)},L=(T,_)=>{const c=(0,D.hZ)(T,_,0,0,.5-.5*_,0,_,0,.5-.5*_,0,0,_,.5-.5*_,0,0,0,1);return(0,D.mg)(c,c)},B=(T,_)=>{const c=1-_,P=(0,D.hZ)(T,.2126+.7874*c,.7152-.7152*c,.0722-.0722*c,0,.2126-.2126*c,.7152+.2848*c,.0722-.0722*c,0,.2126-.2126*c,.7152-.7152*c,.0722+.9278*c,0,0,0,0,1);return(0,D.mg)(P,P)},v=(T,_)=>{const c=Math.sin(_*Math.PI/180),P=Math.cos(_*Math.PI/180),Z=(0,D.hZ)(T,.213+.787*P-.213*c,.715-.715*P-.715*c,.072-.072*P+.928*c,0,.213-.213*P+.143*c,.715+.285*P+.14*c,.072-.072*P-.283*c,0,.213-.213*P-.787*c,.715-.715*P+.715*c,.072+.928*P+.072*c,0,0,0,0,1);return(0,D.mg)(Z,Z)},M=(T,_)=>{const c=1-2*_,P=(0,D.hZ)(T,c,0,0,_,0,c,0,_,0,0,c,_,0,0,0,1);return(0,D.mg)(P,P)},O=(T,_)=>{const c=(0,D.hZ)(T,.213+.787*_,.715-.715*_,.072-.072*_,0,.213-.213*_,.715+.285*_,.072-.072*_,0,.213-.213*_,.715-.715*_,.072+.928*_,0,0,0,0,1);return(0,D.mg)(c,c)},h=(T,_)=>{const c=1-_,P=(0,D.hZ)(T,.393+.607*c,.769-.769*c,.189-.189*c,0,.349-.349*c,.686+.314*c,.168-.168*c,0,.272-.272*c,.534-.534*c,.131+.869*c,0,0,0,0,1);return(0,D.mg)(P,P)};class E{constructor(_,c,P){this.strength=_,this.radius=c,this.threshold=P,this.type="bloom"}interpolate(_,c,P){this.strength=G(_.strength,c.strength,P),this.radius=G(_.radiu
1s,c.radius,P),this.threshold=G(_.threshold,c.threshold,P)}clone(){return new E(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:V(this.radius),strength:this.strength,threshold:this.threshold}}}class I{constructor(_){this.radius=_,this.type="blur"}interpolate(_,c,P){this.radius=Math.round(G(_.radius,c.radius,P))}clone(){return new I(this.radius)}toJSON(){return{type:"blur",radius:V(this.radius)}}}class d{constructor(_,c){this.type=_,this.amount=c,this.type!=="invert"&&this.type!=="grayscale"&&this.type!=="sepia"||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(_,c,P){this.amount=G(_.amount,c.amount,P),this._updateMatrix()}clone(){return new d(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const _=this._colorMatrix||b();switch(this.type){case"brightness":this._colorMatrix=x(_,this.amount);break;case"contrast":this._colorMatrix=L(_,this.amount);break;case"grayscale":this._colorMatrix=B(_,this.amount);break;case"invert":this._colorMatrix=M(_,this.amount);break;case"saturate":this._colorMatrix=O(_,this.amount);break;case"sepia":this._colorMatrix=h(_,this.amount)}}}class g{constructor(_,c,P,Z){this.offsetX=_,this.offsetY=c,this.blurRadius=P,this.color=Z,this.type="drop-shadow"}interpolate(_,c,P){this.offsetX=G(_.offsetX,c.offsetX,P),this.offsetY=G(_.offsetY,c.offsetY,P),this.blurRadius=G(_.blurRadius,c.blurRadius,P),this.color[0]=Math.round(G(_.color[0],c.color[0],P)),this.color[1]=Math.round(G(_.color[1],c.color[1],P)),this.color[2]=Math.round(G(_.color[2],c.color[2],P)),this.color[3]=G(_.color[3],c.color[3],P)}clone(){return new g(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const _=[...this.color];return _[3]*=255,{type:"drop-shadow",xoffset:V(this.offsetX),yoffset:V(this.offsetY),blurRadius:V(this.blurRadius),color:_}}}class W{constructor(_){this.angle=_,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(_,c,P){this.angle=G(_.angle,c.angle,P),this._updateMatrix()}clone(){return new W(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const _=this._colorMatrix||b();this._colorMatrix=v(_,this.angle)}}class C{constructor(_){this.amount=_,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(_,c,P){this.amount=G(_.amount,c.amount,P)}clone(){return new C(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function G(T,_,c){return T+(_-T)*c}function V(T){return Math.round(1e3*(0,K.PN)(T))/1e3}function w(T){switch(T.type){case"grayscale":case"sepia":case"invert":return new d(T.type,0);case"saturate":case"brightness":case"contrast":return new d(T.type,1);case"opacity":return new C(1);case"hue-rotate":return new W(0);case"blur":return new I(0);case"drop-shadow":return new g(0,0,0,[...(0,a.TS)("transparent")]);case"bloom":return new E(0,0,1)}}},41152:(tt,$,o)=>{o.d($,{LF:()=>R,M9:()=>j,zu:()=>x});var a=o(40945),K=o(30455),b=o(77992),S=o(80850);function R(v,M,O){try{return F(v)}catch(h){O?.messages?.push(h)}return null}function j(v,M,O,h){try{const E=U(v);(0,K.sM)(O,E,M)}catch(E){h.messages&&h.messages.push(E)}}function U(v){const M=(0,b.q)(v);return M?(0,S.dw)(M)?M.map(O=>O.toJSON()):M.map(({scale:O,effects:h})=>({scale:O,value:h.map(E=>E.toJSON())})):null}function F(v){if(!v||v.length===0)return null;if(D(v)){const M=[];for(const O of v)M.push({scale:O.scale,value:x(O.value)});return M}return x(v)}function D(v){const M=v[0];return!!M&&"scale"in M}function x(v){if(!v?.length)return"";const M=[];for(const O of v){let h=[];switch(O.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":h=[L(O,"amount")];break;case"blur":h=[L(O,"radius","pt")];break;case"hue-rotate":h=[L(O,"angle","deg")];break;case"drop-shadow":h=[L(O,"xoffset","pt"),L(O,"yoffset","pt"),L(O,"blurRadius","pt"),B(O,"color")];break;case"bloom":h=[L(O,"strength"),L(O,"radius","pt"),L(O,"threshold")]}const E=`${O.type}
1(${h.filter(Boolean).join(" ")})`;(0,b.q)(E),M.push(E)}return M.join(" ")}function L(v,M,O){if(v[M]==null)throw new a.A("effect:missing-parameter",`Missing parameter '${M}' in ${v.type} effect`,{effect:v});return O?v[M]+O:""+v[M]}function B(v,M){if(v[M]==null)throw new a.A("effect:missing-parameter",`Missing parameter '${M}' in ${v.type} effect`,{effect:v});const O=v[M];return`rgba(${O[0]||0}, ${O[1]||0}, ${O[2]||0}, ${O[3]/255||0})`}},80850:(tt,$,o)=>{o.d($,{O9:()=>b,dw:()=>S,mj:()=>K});var a=o(90184);function K(j,U){const F=j.length>U.length?j:U;return(j.length>U.length?U:j).every((D,x)=>D.type===F[x].type)}function b(j,U){const F=j.length>U.length?j:U,D=j.length>U.length?U:j;for(let x=D.length;x<F.length;x++)D.push((0,a.sK)(F[x]))}function S(j){const U=j[0];return!!U&&"type"in U}function R(j,U){return JSON.stringify(j??null)===JSON.stringify(U??null)}},7321:(tt,$,o)=>{o.d($,{d:()=>D});var a=o(27394),K=o(53580),b=o(1319),S=o(59051),R=o(55624),j=o(91591),U=o(41152);const F={read:{reader:U.LF},write:{allowNull:!0,writer:U.M9}},D=x=>{let L=class extends x{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,a._)([(0,K.MZ)({type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:!0},"portal-item":{read:!0,write:!0}}}})],L.prototype,"blendMode",void 0),(0,a._)([(0,K.MZ)({json:{read:!1,write:!1,origins:{"web-map":F,"portal-item":F}}})],L.prototype,"effect",void 0),L=(0,a._)([(0,j.$)("esri.layers.mixins.BlendLayer")],L),L}},6290:(tt,$,o)=>{o.d($,{A:()=>C});var a=o(27394),K=o(68977),b=o(42286),S=o(78634),R=o(60258),j=o(40945),U=o(59051),F=o(26859),D=o(18573),x=o(83549),L=o(53580),B=o(1319),v=o(55624),M=o(80646),O=o(91591),h=o(9430),E=o(22262),I=o(77467),d=o(23990),g=o(74356),W=o(4572);const C=V=>{let w=class extends V{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,F.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(T){T!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",T))}readPortalItem(T,_,c){if(_.itemId)return new d.default({id:_.itemId,portal:c?.portal})}writePortalItem(T,_){T?.id&&(_.itemId=T.id)}async loadFromPortal(T,_){if(this.portalItem?.id)try{const{load:c}=await Promise.all([o.e(1472),o.e(5765)]).then(o.bind(o,35765));return(0,D.Te)(_),await c({instance:this,supportedTypes:T.supportedTypes,validateItem:T.validateItem,supportsData:T.supportsData,layerModuleTypeMap:T.layerModuleTypeMap},_)}catch(c){throw(0,D.zf)(c)||U.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id}) 2 ${c}`),c}}async finishLoadEditablePortalLayer(T){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(T).catch(_=>((0,D.QP)(_),!0)))}async setUserPrivileges(T,_){if(!K.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(_);if(this.url)try{const{features:{edit:c,fullEdit:P},content:{updateItem:Z}}=await this._fetchUserPrivileges(T,_);this._set("userHasEditingPrivileges",c),this._set("userHasFullEditingPrivileges",P),this._set("userHasUpdateItemPrivileges",Z)}catch(c){(0,D.QP)(c)}}async _fetchUserPrivileges(T,_){let c=this.portalItem;if(!T||!c||!c.loaded||c.sourceUrl)return this._fetchFallbackUserPrivileges(_);const P=T===c.id;if(P&&c.portal.user)return(0,W.It)(c);let Z,J;if(P)Z=c.portal.url;else try{Z=await(0,E.wI)(this.url,_)}catch(k){(0,D.QP)(k)}if(!Z||!(0,x.b8)(Z,c.portal.url))return this._fetchFallbackUserPrivileges(_);try{const k=_!=null?_.signal:null;J=await b.id?.getCredential(`${Z}/sharing`,{prompt:!1,signal:k})}catch(k){(0,D.QP)(k)}const X=!0,nt=!1,it=!1;if(!J)return{features:{edit:X,fullEdit:nt},content:{updateItem:it}};try{if(P?await c.reload():(c=new d.default({id:T,portal:{url:Z}}),await c.load(_)),c.portal.user)return(0,W.It)(c)}catch(k){(0,D.QP)(k)}return{features:{edit:X,fullEdit:nt},content:{updateItem:it}}}async _fetchFallbackUserPrivileges(T){let _=!0;try{_=await this._fetchUserHasEditingPrivileges(T)}catch(c){(0,D.QP)(c)}return{features:{edit:_,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(T){const _=this.url?b.id?.findCredential(this.url):null;if(!_)return!0;const c=G.credential===_?G.user:await this._fetchEditingUser(T);return G.credential=_,G.user=c,c?.privileges==null||c.privileges.includes("features:user:edit")}async _fetchEditingUser(T){const _=this.portalItem?.portal?.user;if(_)return _;const c=b.id.findServerInfo(this.url??"");if(!c?.owningSystemUrl)return null;const P=`${c.owningSystemUrl}/sharing/rest`,Z=I.A.getDefault();if(Z&&Z.loaded&&(0,x.S8)(Z.restUrl)===(0,x.S8)(P))return Z.user;const J=`${P}/community/self`,X=T!=null?T.signal:null,nt=await(0,R.Ke)((0,S.A)(J,{authMode:"no-prompt",query:{f:"json"},signal:X}));return nt.ok?g.A.fromJSON(nt.value.data):null}read(T,_){_&&(_.layer=this),super.read(T,_)}write(T,_){const c=_?.portal,P=this.portalItem?.id&&(this.portalItem.portal||I.A.getDefault());return c&&P&&!(0,x.ut)(P.restUrl,c.restUrl)?(_.messages&&_.messages.push(new j.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(T,{..._,layer:this})}};return(0,a._)([(0,L.MZ)({type:d.default})],w.prototype,"portalItem",null),(0,a._)([(0,M.w)("web-document","portalItem",["itemId"])],w.prototype,"readPortalItem",null),(0,a._)([(0,h.K)("web-document","portalItem",{itemId:{type:String}})],w.prototype,"writePortalItem",null),(0,a._)([(0,L.MZ)({clonable:!1})],w.prototype,"resourceReferences",void 0),(0,a._)([(0,L.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasEditingPrivileges",void 0),(0,a._)([(0,L.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasFullEditingPrivileges",void 0),(0,a._)([(0,L.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasUpdateItemPrivileges",void 0),w=(0,a._)([(0,O.$)("esri.layers.mixins.PortalLayer")],w),w},G={credential:null,user:null}},48509:(tt,$,o)=>{o.d($,{J:()=>_});var a=o(27394),K=o(59051),b=o(18573),S=o(53580),R=o(81938),j=o(55624),U=o(1319),F=o(91591),D=o(28476),x=o(91282),L=o(60258),B=o(40945),v=o(10609),M=o(91740);const O=new x.A,h=new WeakMap;function E(c){d(c)&&O.push(new WeakRef(c))}function I(c){const P=O.find(Z=>Z.deref()===c);P&&O.remove(P)}function d(c){return c!=null&&typeof c=="object"&&"refreshInterval"in c&&"refresh"in c}function g(c,P){return Number.isFinite(c)&&Number.isFinite(P)?P<=0?c:g(P,c%P):0}let W=0,C=0;function G(){const c=Date.now();let P=!1;for(const Z of O){const J=Z.deref();J?J.refreshInterval&&c-(h.get(J)??0)+5>=6e4*J.refreshInterval&&(h.set(J,c),J.refresh(c)):P=!0}if(P)for(let Z=O.length-1;Z>=0;Z--)O.at(Z).deref()||O.removeAt(Z)}(0,M.fm)(()=>{const c=Date.now();let P=0;for(const Z of O){const J=Z.deref();J&&(P=g(Math.round(6e4*J.refreshInterval),P),J.refreshInterval?h.get(J)||h.set(J,c):h.delete(J))}if(P!==C){if(C=P,clearInterval(W),C===0)return void(W=0);W=setInterval(G,C)}});const V={get hasRefreshTimer(){return W>0},get tickInterval(){return C},forceRefresh(){G()},hasLayer:c=>d(c)&&O.some(P=>P.deref()===c),clear(){for(const c of O){const P=c.deref();P&&h.delete(P)}O.removeAll()}};function w(c){return c!=null&&typeof c=="object"&&"refreshTimestamp"in c&&"refresh"in c}const T=.1,_=c=>{let P=class extends c{constructor(...Z){super(...Z),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,b.sg)(()=>this.hasDataChanged()),this.when().then(()=>{this.destroyed||E(this)},()=>{})}destroy(){I(this)}
2castRefreshInterval(Z){return Z>=T?Z:Z<=0?0:T}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(Z=Date.now()){(0,b.QZ)(this._debounceHasDataChanged()).then(J=>{J&&this._set("refreshTimestamp",Z),this.emit("refresh",{dataChanged:J})},J=>{K.A.getLogger(this).error(J),this.emit("refresh",{dataChanged:!1,error:J})})}async hasDataChanged(){return!0}get test(){const Z=this;return{set refreshInterval(J){Z._set("refreshInterval",J)}}}};return(0,a._)([(0,S.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:{enabled:!0,layerContainerTypes:D.K}}}}})],P.prototype,"refreshInterval",void 0),(0,a._)([(0,R.w)("refreshInterval")],P.prototype,"castRefreshInterval",null),(0,a._)([(0,S.MZ)({readOnly:!0})],P.prototype,"refreshTimestamp",void 0),(0,a._)([(0,S.MZ)({readOnly:!0})],P.prototype,"refreshParameters",null),P=(0,a._)([(0,F.$)("esri.layers.mixins.RefreshableLayer")],P),P}},20285:(tt,$,o)=>{o.d($,{j:()=>U});var a=o(27394),K=o(53580),b=o(1319),S=o(59051),R=o(55624),j=o(91591);const U=D=>{let x=class extends D{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const L={minScale:this.minScale,maxScale:this.maxScale},B=this.parent;B&&"effectiveScaleRange"in B&&F(L,B.effectiveScaleRange);const v=this._get("effectiveScaleRange");return v&&v.minScale===L.minScale&&v.maxScale===L.maxScale?v:L}};return(0,a._)([(0,K.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],x.prototype,"minScale",void 0),(0,a._)([(0,K.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],x.prototype,"maxScale",void 0),(0,a._)([(0,K.MZ)({readOnly:!0})],x.prototype,"effectiveScaleRange",null),x=(0,a._)([(0,j.$)("esri.layers.mixins.ScaleRangeLayer")],x),x};function F(D,x){return D.minScale=D.minScale>0?x.minScale>0?Math.min(D.minScale,x.minScale):D.minScale:x.minScale,D.maxScale=D.maxScale>0?x.maxScale>0?Math.max(D.maxScale,x.maxScale):D.maxScale:x.maxScale,D}},44914:(tt,$,o)=>{o.r($),o.d($,{default:()=>h});var a=o(27394),K=o(99643),b=o(63171),S=o(53580),R=o(87286),j=o(55624),U=o(1319),F=o(79542),D=o(80646),x=o(91591),L=o(97806),B=o(24730),v;const M=new K.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let O=v=class extends b.oY{constructor(E){super(E),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(E,{description:I}){let d=null;try{d=I?JSON.parse(I):null}catch{}return d?.value??null}readValueType(E,{description:I}){let d=null;try{d=I?JSON.parse(I):null}catch{}return d?M.fromJSON(d.fieldValueType):null}clone(){return new v({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,a._)([(0,S.MZ)({type:String,json:{write:!0}})],O.prototype,"alias",void 0),(0,a._)([(0,S.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],O.prototype,"defaultValue",void 0),(0,a._)([(0,S.MZ)()],O.prototype,"description",void 0),(0,a._)([(0,D.w)("description")],O.prototype,"readDescription",null),(0,a._)([(0,S.MZ)({types:L.gK,json:{read:{reader:L.rS},write:!0}})],O.prototype,"domain",void 0),(0,a._)([(0,S.MZ)({type:Boolean,json:{write:!0}})],O.prototype,"editable",void 0),(0,a._)([(0,S.MZ)({type:R.jz,json:{write:{overridePolicy:E=>({enabled:Number.isFinite(E)})}}})],O.prototype,"length",void 0),(0,a._)([(0,S.MZ)({type:String,json:{write:!0}})],O.prototype,"name",void 0),(0,a._)([(0,S.MZ)({type:Boolean,json:{write:!0}})],O.prototype,"nullable",void 0),(0,a._)([(0,F.e)(B.m)],O.prototype,"type",void 0),(0,a._)([(0,S.MZ)()],O.prototype,"valueType",void 0),(0,a._)([(0,D.w)("valueType",["description"])],O.prototype,"readValueType",null),(0,a._)([(0,S.MZ
2)({type:Boolean,json:{read:!1}})],O.prototype,"visible",void 0),O=v=(0,a._)([(0,x.$)("esri.layers.support.Field")],O);const h=O},20461:(tt,$,o)=>{o.d($,{A:()=>v});var a=o(40945),K=o(63171),b=o(59051),S=o(4096),R=o(98373),j=o(421),U=o(71546),F=o(56260);function D(I){return"timeZone"in I}function x(I){return"timeZone"in I}function L(I){return"dateFieldsTimeZone"in I}const B=new Map;class v{static fromJSON(d){return new v(d.fields,d.timeZoneByFieldName)}static fromLayer(d){return new v(d.fields??[],E(d))}static fromLayerJSON(d){return new v(d.fields??[],E(d))}constructor(d=[],g){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=d||[],this._timeZoneByFieldName=g?new Map(g):null;const W=[];for(const C of this.fields){const G=C?.name,V=O(G);if(G&&V){const w=M(G);this._fieldsMap.set(G,C),this._fieldsMap.set(w,C),this._normalizedFieldsMap.set(V,C),W.push(`${w}:${C.type}:${this._timeZoneByFieldName?.get(G)}`),(0,j.vE)(C)?(this.dateFields.push(C),this._dateFieldsSet.add(C)):(0,j.WA)(C)&&(this._numericFieldsSet.add(C),this.numericFields.push(C)),(0,j.te)(C)||(0,j.Xz)(C)||(C.editable=C.editable==null||!!C.editable,C.nullable=C.nullable==null||!!C.nullable)}}W.sort(),this.uid=W.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const d of this.fields)(0,j.te)(d)||(0,j.Xz)(d)||d.nullable||(0,j.lD)(d)!==void 0||this._requiredFields.push(d)}return this._requiredFields}equals(d){return this.uid===d?.uid}has(d){return this.get(d)!=null}get(d){if(!d)return;let g=this._fieldsMap.get(d);return g||(g=this._fieldsMap.get(M(d))??this._normalizedFieldsMap.get(O(d)),g&&this._fieldsMap.set(d,g),g)}getTimeZone(d){const g=this.get(d&&typeof d!="string"?d.name:d);return g?this._timeZoneByFieldName?this._timeZoneByFieldName.get(g.name):g.type==="date"||g.type==="esriFieldTypeDate"?(b.A.getLogger("esri.layers.support.FieldsIndex").error(new a.A("getTimeZone:no-timezone-information",`no time zone information for field '${g.name}'`)),U.n$):h.has(g.type)?U.L5:null:null}getLuxonTimeZone(d){const g=this.getTimeZone(d);return g?g===U.L5?R.GB.instance:g===U.n$?F.mQ.utcInstance:(0,S.tE)(B,g,()=>F.oh.create(g)):null}isDateField(d){return this._dateFieldsSet.has(this.get(d))}isTimeOnlyField(d){return(0,j.OH)(this.get(d))}isNumericField(d){return this._numericFieldsSet.has(this.get(d))}normalizeFieldName(d){return this.get(d)?.name??void 0}toJSON(){return{fields:this.fields.map(d=>(0,K.Wj)(d)?d.toJSON():d),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function M(I){return I.trim().toLowerCase()}function O(I){return(0,j.rS)(I)?.toLowerCase()??""}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function E(I){const d=new Map;if(!I.fields)return d;const g=I.datesInUnknownTimezone===!0,{timeInfo:W,editFieldsInfo:C}=I,G=(W?"startField"in W?W.startField:W.startTimeField:"")??"",V=(W?"endField"in W?W.endField:W.endTimeField:"")??"",w=L(I)?I.dateFieldsTimeZone??null:I.dateFieldsTimeReference?(0,U.ZS)(I.dateFieldsTimeReference):null,T=C?D(C)?C.timeZone??w:C.dateFieldsTimeReference?(0,U.ZS)(C.dateFieldsTimeReference):w??U.n$:null,_=W?x(W)?W.timeZone??w:W.timeReference?(0,U.ZS)(W.timeReference):w:null,c=new Map([[M(C?.creationDateField??""),T],[M(C?.editDateField??""),T],[M(G),_],[M(V),_]]);for(const{name:P,type:Z}of I.fields)if(h.has(Z))d.set(P,U.L5);else if(Z!=="date"&&Z!=="esriFieldTypeDate")d.set(P,null);else if(g)d.set(P,U.L5);else{const J=c.get(M(P??""))??w;d.set(P,J)}return d}},97806:(tt,$,o)=>{o.d($,{rS:()=>_,gK:()=>T});var a=o(1319),K=o(27394),b=o(11075),S=o(53580),R=o(59051),j=o(79542),U=o(91591),F=o(63171),D=o(55624),x;let L=x=class extends F.oY{constructor(c){super(c),this.name=null,this.co
2de=null}clone(){return new x({name:this.name,code:this.code})}};(0,K._)([(0,S.MZ)({type:String,json:{write:!0}})],L.prototype,"name",void 0),(0,K._)([(0,S.MZ)({type:[String,Number],json:{write:!0}})],L.prototype,"code",void 0),L=x=(0,K._)([(0,U.$)("esri.layers.support.CodedValue")],L);var B=o(99643);const v=new B.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let M=class extends F.oY{constructor(c){super(c),this.name=null,this.type=null}};(0,K._)([(0,S.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,K._)([(0,j.e)(v)],M.prototype,"type",void 0),M=(0,K._)([(0,U.$)("esri.layers.support.Domain")],M);const O=M;var h;let E=h=class extends O{constructor(c){super(c),this.codedValues=null,this.type="coded-value"}getName(c){let P=null;if(this.codedValues){const Z=String(c);this.codedValues.some(J=>(String(J.code)===Z&&(P=J.name),!!P))}return P}clone(){return new h({codedValues:(0,b.o8)(this.codedValues),name:this.name})}};(0,K._)([(0,S.MZ)({type:[L],json:{write:!0}})],E.prototype,"codedValues",void 0),(0,K._)([(0,j.e)({codedValue:"coded-value"})],E.prototype,"type",void 0),E=h=(0,K._)([(0,U.$)("esri.layers.support.CodedValueDomain")],E);const I=E;var d=o(40945),g;let W=g=class extends O{constructor(c){super(c),this.type="inherited"}clone(){return new g}};(0,K._)([(0,j.e)({inherited:"inherited"})],W.prototype,"type",void 0),W=g=(0,K._)([(0,U.$)("esri.layers.support.InheritedDomain")],W);const C=W;var G;let V=G=class extends O{constructor(c){super(c),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new G({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,K._)([(0,S.MZ)({json:{type:[Number],read:{source:"range",reader:(c,P)=>P.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:this.maxValue!=null&&this.minValue==null}},target:"range",writer(c,P,Z){P[Z]=[this.minValue||0,c]}}}})],V.prototype,"maxValue",void 0),(0,K._)([(0,S.MZ)({json:{type:[Number],read:{source:"range",reader:(c,P)=>P.range?.[0]},write:{target:"range",writer(c,P,Z){P[Z]=[c,this.maxValue||0]}}}})],V.prototype,"minValue",void 0),(0,K._)([(0,j.e)({range:"range"})],V.prototype,"type",void 0),V=G=(0,K._)([(0,U.$)("esri.layers.support.RangeDomain")],V);const w=V,T={key:"type",base:O,typeMap:{range:w,"coded-value":I,inherited:C}};function _(c){if(!c?.type)return null;switch(c.type){case"range":return w.fromJSON(c);case"codedValue":return I.fromJSON(c);case"inherited":return C.fromJSON(c)}return null}},24730:(tt,$,o)=>{o.d($,{m:()=>K});var a=o(99643);const K=new a.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},4572:(tt,$,o)=>{o.d($,{It:()=>B,LG:()=>R,OM:()=>F,Y:()=>j,bK:()=>U,mm:()=>L,sQ:()=>x});var a=o(70773),K=o(11863),b=o(13717);async function S(v){const M=v.spatialReference;if(M.isWGS84)return v.clone();if(M.isWebMercator)return(0,b.ci)(v);const O=K.A.WGS84;return await(0,a.initializeProjection)(M,O),(0,a.project)(v,O)}function R(v,M){if(!j(v,M)){const O=v.typeKeywords;O?O.push(M):v.typeKeywords=[M]}}function j(v,M){return!!v.typeKeywords?.includes(M)}function U(v){return j(v,L.HOSTED_SERVICE)}function F(v,M){const O=v.typeKeywords;if(O){const h=O.indexOf(M);h>-1&&O.splice(h,1)}}function D(v,M,O){O?R(v,M):F(v,M)}async function x(v){const M=v.clone().normalize();let O;if(M.length>1)for(const h of M)O?h.width>O.width&&(O=h):O=h;else O=M[0];return S(O)}const L={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table",HOSTED_SERVICE:"Hosted Service",LOCAL_SCENE:"ViewingMode-Local",TILED_IMAGERY:"Tiled Imagery",GROUP_LAYER_MAP:"Map"};function B(v){const{portal:M,isOrgItem:O,itemControl:h}=v,E=M.user?.privileges;let I=!E||E.includes("features:user:edit"),d=!!O&&!!E?.includes("features:user:fullEdit");const g=h==="update"||h==="admin";return g?d=I=!0:d&&(I=!0),{features:{edit:I,fullEdit:d},content:{updateItem:g}}}},26544:(tt,$,o)=>{o.d($,{A:()=>x});var a=o(27394),K=o(53580),b=o(1319),S=o(59051),R=o(55624),j=o(91591),U=o(78581),F=o(64785);let D=class extends F.A{constructor(L){super(L),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline&&this.outline.hash()}`}};(0,a._)([(0,K.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":U.A}},json:{default:null,write:!0}})],D.prototype,"outline",void 0),(0,a._)([(0,K.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],D.prototype,"type",void 0),D=(0,a._)([(0,j.$)("esri.symbols.FillSymbol")],D);const x=D},1764:(tt,$,o)=>{o.d($,{A:()=>B});var a=o(27394),K=o(63171),b=o(41418),S=o(53580),R=o(81938),j=o(55624),U=o(1319),F=o(91591),D=o(54281),x;let L=x=class extends K.oY{constructor(v){super(v),this.decoration="none",this.family="sans-serif",this.size=9,this.style="normal",this.weight="normal"}castSize(v){return(0,b.cr)(v)}clone(){return new x({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};
2(0,a._)([(0,S.MZ)({type:D.h9,json:{default:"none",write:!0}})],L.prototype,"decoration",void 0),(0,a._)([(0,S.MZ)({type:String,json:{write:!0}})],L.prototype,"family",void 0),(0,a._)([(0,S.MZ)({type:Number,json:{write:{overridePolicy:(v,M,O)=>({enabled:!O||!O.textSymbol3D})}}})],L.prototype,"size",void 0),(0,a._)([(0,R.w)("size")],L.prototype,"castSize",null),(0,a._)([(0,S.MZ)({type:D._R,json:{default:"normal",write:!0}})],L.prototype,"style",void 0),(0,a._)([(0,S.MZ)({type:D.NM,json:{default:"normal",write:!0}})],L.prototype,"weight",void 0),L=x=(0,a._)([(0,F.$)("esri.symbols.Font")],L);const B=L},49250:(tt,$,o)=>{o.d($,{A:()=>O});var a=o(27394),K=o(17580),b=o(99643),S=o(11075),R=o(53580),j=o(1319),U=o(59051),F=o(79542),D=o(91591),x=o(26544),L=o(78581),B;const v=new b.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let M=B=class extends x.A{constructor(...h){super(...h),this.color=new K.A([0,0,0,.25]),this.outline=new L.A,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(h,E,I){if(h&&typeof h!="string")return h;const d={};return h&&(d.style=h),E&&(d.outline=E),I&&(d.color=I),d}clone(){return new B({color:(0,S.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,a._)([(0,R.MZ)()],M.prototype,"color",void 0),(0,a._)([(0,R.MZ)()],M.prototype,"outline",void 0),(0,a._)([(0,F.e)({esriSFS:"simple-fill"},{readOnly:!0})],M.prototype,"type",void 0),(0,a._)([(0,R.MZ)({type:v.apiValues,json:{read:v.read,write:v.write}})],M.prototype,"style",void 0),M=B=(0,a._)([(0,D.$)("esri.symbols.SimpleFillSymbol")],M);const O=M},52986:(tt,$,o)=>{o.d($,{A:()=>O});var a=o(27394),K=o(17580),b=o(11075),S=o(41418),R=o(53580),j=o(81938),U=o(79542),F=o(91591),D=o(9430),x=o(1764),L=o(64785),B=o(54281),v;let M=v=class extends L.A{constructor(...h){super(...h),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new x.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.haloSize=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.xoffset=0,this.yoffset=0,this.angle=0,this.width=null,this.lineWidth=192,this.lineHeight=1}normalizeCtorArgs(h,E,I){if(h&&typeof h!="string")return h;const d={};return h&&(d.text=h),E&&(d.font=E),I&&(d.color=I),d}writeLineWidth(h,E,I,d){d&&typeof d!="string"?d.origin:E[I]=h}castLineWidth(h){return(0,S.cr)(h)}writeLineHeight(h,E,I,d){d&&typeof d!="string"?d.origin:E[I]=h}clone(){return new v({angle:this.angle,backgroundColor:(0,b.o8)(this.backgroundColor),borderLineColor:(0,b.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,b.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,b.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,a._)([(0,R.MZ)({type:K.A,json:{write:!0}})],M.prototype,"backgroundColor",void 0),(0,a._)([(0,R.MZ)({type:K.A,json:{write:!0}})],M.prototype,"borderLineColor",void 0),(0,a._)([(0,R.MZ)({type:Number,json:{write:!0},cast:S.cr})],M.prototype,"borderLineSize",void 0),(0,a._)([(0,R.MZ)({type:x.A,json:{write:!0}})],M.prototype,"font",void 0),(0,a._)([(0,R.MZ)({...B.rM,json:{write:!0}})],M.prototype,"horizontalAlignment",void 0),(0,a._)([(0,R.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"kerning",void 0),(0,a._)([(0,R.MZ)({type:K.A,json:{write:!0}})],M.prototype,"haloColor",void 0),(0,a._)([(0,R.MZ)({type:Number,cast:S.cr,json:{write:!0}})],M.prototype,"haloSize",void 0),(0,a._)([(0,R.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"rightToLeft",void 0),(0,a._)([(0,R.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"rotated",void 0),(0,a._)([(0,R.MZ)({type:String,json:{write:!0}})],M.prototype,"text",void 0),(0,a._)([(0,U.e)({esriTS:"text"},{readOnly:!0})],M.prototype,"type",void 0),(0,a._)([(0,R.MZ)({...B.x0,json:{write:!0}})],M.prototype,"verticalAlignment",void 0),(0,a._)([(0,R.MZ)({type:Number,cast:S.cr,json:{write:!0}})],M.prototype,"xoffset",void 0),(0,a._)([(0,R.MZ)({type:Number,cast:S.cr,json:{write:!0}})],M.prototype,"yoffset",void 0),(0,a._)([(0,R.MZ)({type:Number,json:{read:h=>h&&-1*h,write:(h,E)=>E.angle=h&&-1*h}})],M.prototype,"angle",void 0),(0,a._)([(0,R.MZ)({type:Number,json:{write:!0}})],M.prototype,"width",void 0),(0,a._)([(0,R.MZ)({type:Number})],M.prototype,"lineWidth",void 0),(0,a._)([(0,D.K)("lineWidth")],M.prototype,"writeLineWidth",null),(0,a._)([(0,j.w)("lineWidth")],M.prototype,"castLineWidth",null),(0,a._)([(0,R.MZ)(B.Tb)],M.prototype,"lineHeight",void 0),(0,a._)([(0,D.K)("lineHeight")],M.prototype,"writeLineHeight",null),M=v=(0,a._)([(0,F.$)("esri.symbols.TextSymbol")],M);const O=M},54281:(tt,$,o)=>{o.d($,{NM:()=>R,Tb:()=>j,_R:()=>S,h9:()=>b,rM:()=>D,x0:()=>x,y7:()=>L});var a=o(19848),K=o(87286);const b=["none","underline","line-through"],S=["normal","italic","oblique"],R=["normal","lighter","bold","bolder"],j={type:Number,cast:B=>{const v=(0,K.GB)(B);return v===0?1:(0,a.qE)(v,.1,4)},nonNullable:!0},U=["left","right","center"],F=["baseline","top","middle","bottom"],D={type:U,nonNullable:!0},x={type:F,nonNullable:!0},L=8}}]);
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.