// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.20/esri/copyright.txt for details.
//>>built
/*
 MIT
*/
(function(a,b){var c=function(){return"undefined"!==typeof n&&"function"!==typeof n?n:"undefined"!==typeof window?window:"undefined"!==typeof self?self:this}(),g=function(){},f=function(na){for(var Da in na)return 0;return 1},k={}.toString,q=function(na){return"[object Function]"==k.call(na)},v=function(na){return"[object String]"==k.call(na)},t=function(na){return"[object Array]"==k.call(na)},u=function(na,Da){if(na)for(var Ia=0;Ia<na.length;)Da(na[Ia++])},m=function(na,Da){for(var Ia in Da)na[Ia]=
Da[Ia];return na},p=function(na,Da){return m(Error(na),{src:"dojoLoader",info:Da})},e=1,l=function(){return"_"+e++},h=function(na,Da,Ia){return aa(na,Da,Ia,0,h)},n=c,w=n.document,x=w&&w.createElement("DiV"),C=h.has=function(na){return q(D[na])?D[na]=D[na](n,w,x):D[na]},D=C.cache=b.hasCache;q(a)&&(a=a(c));C.add=function(na,Da,Ia,Ma){(void 0===D[na]||Ma)&&(D[na]=Da);return Ia&&C(na)};C.add("host-webworker","undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);C("host-webworker")&&
(m(b.hasCache,{"host-browser":0,dom:0,"dojo-dom-ready-api":0,"dojo-sniff":0,"dojo-inject-api":1,"host-webworker":1,"dojo-guarantee-console":0}),b.loaderPatch={injectUrl:function(na,Da){try{importScripts(na),Da()}catch(Ia){console.info("failed to load resource ("+na+")"),console.error(Ia)}}});for(var A in a.has)C.add(A,a.has[A],0,1);h.async=1;var B=C("csp-restrictions")?function(){}:new Function("return eval(arguments[0]);");h.eval=function(na,Da){return B(na+"\r\n//# sourceURL\x3d"+Da)};var r={},
z=h.signal=function(na,Da){na=r[na];u(na&&na.slice(0),function(Ia){Ia.apply(null,t(Da)?Da:[Da])})};A=h.on=function(na,Da){var Ia=r[na]||(r[na]=[]);Ia.push(Da);return{remove:function(){for(var Ma=0;Ma<Ia.length;Ma++)if(Ia[Ma]===Da){Ia.splice(Ma,1);break}}}};var E=[],F={},G=[],N={},K=h.map={},I=[],J={},L="",Q={},W={};c={};var V=0;if(!C("foreign-loader"))var P=function(na,Da){Da=!1!==Da;var Ia,Ma;for(Ia in W){var Ya=W[Ia];if(Ma=Ia.match(/^url:(.+)/))Q["url:"+Ha(Ma[1],na)]=Ya;else if("*now"==Ia)var Va=
Ya;else"*noref"!=Ia&&(Ma=jb(Ia,na,!0),Q[Ma.mid]=Q["url:"+Ma.url]=Ya)}Va&&Va(ja(na));Da&&(W={})};var X=function(na){return na.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(Da){return"\\"+Da})},U=function(na,Da){Da.splice(0,Da.length);for(var Ia in na)Da.push([Ia,na[Ia],new RegExp("^"+X(Ia)+"(/|$)"),Ia.length]);Da.sort(function(Ma,Ya){return Ya[3]-Ma[3]});return Da},Z=function(na,Da){u(na,function(Ia){Da.push([v(Ia[0])?new RegExp("^"+X(Ia[0])+"$"):Ia[0],Ia[1]])})},oa=function(na){var Da=na.name;Da||
(Da=na,na={name:Da});na=m({main:"main"},na);na.location=na.location?na.location:Da;na.packageMap&&(K[Da]=na.packageMap);na.main.indexOf("./")||(na.main=na.main.substring(2));N[Da]=na},xa=[],Ea=function(na,Da,Ia){for(var Ma in na){"waitSeconds"==Ma&&(h.waitms=1E3*(na[Ma]||0));"cacheBust"==Ma&&(L=na[Ma]?v(na[Ma])?na[Ma]:(new Date).getTime()+"":"");if("baseUrl"==Ma||"combo"==Ma)h[Ma]=na[Ma];na[Ma]!==D&&(h.rawConfig[Ma]=na[Ma],"has"!=Ma&&C.add("config-"+Ma,na[Ma],0,Da))}h.baseUrl||(h.baseUrl="./");/\/$/.test(h.baseUrl)||
(h.baseUrl+="/");for(Ma in na.has)C.add(Ma,na.has[Ma],0,Da);u(na.packages,oa);for(var Ya in na.packagePaths)u(na.packagePaths[Ya],function(Va){var vb=Ya+"/"+Va;v(Va)&&(Va={name:Va});Va.location=vb;oa(Va)});U(m(K,na.map),I);u(I,function(Va){Va[1]=U(Va[1],[]);"*"==Va[0]&&(I.star=Va)});U(m(F,na.paths),G);Z(na.aliases,E);if(!C("foreign-loader")){if(Da)xa.push({config:na.config});else for(Ma in na.config)Da=ya(Ma,Ia),Da.config=m(Da.config||{},na.config[Ma]);na.cache&&(P(),W=na.cache,P(0,!!na.cache["*noref"]))}z("config",
[na,h.rawConfig])};if(C("dojo-cdn")){var fa=w.getElementsByTagName("script");var ia=0;for(var da,ea,la,va;ia<fa.length;)if(da=fa[ia++],(la=da.getAttribute("src"))&&(va=la.match(/(((.*)\/)|^)dojo\.js(\W|$)/i))&&(ea=va[3]||"",b.baseUrl=b.baseUrl||ea,V=da),la=da.getAttribute("data-dojo-config")||da.getAttribute("djConfig"))c=h.eval("({ "+la+" })","data-dojo-config"),V=da}h.rawConfig={};Ea(b,1);C("dojo-cdn")&&((N.dojo.location=ea)&&(ea+="/"),N.dijit.location=ea+"../dijit/",N.dojox.location=ea+"../dojox/");
Ea(a,1);Ea(c,1);if(!C("foreign-loader"))var Ba=function(na){pb(function(){u(na.deps,Ta)})},aa=function(na,Da,Ia,Ma,Ya){var Va;if(v(na)){if((Va=ya(na,Ma,!0))&&Va.executed)return Va.result;throw p("undefinedModule",na);}t(na)||(Ea(na,0,Ma),na=Da,Da=Ia);if(t(na))if(na.length){Ia="require*"+l();for(var vb,uc=[],vc=0;vc<na.length;)vb=na[vc++],uc.push(ya(vb,Ma));Va=m(Ra("",Ia,0,""),{injected:2,deps:uc,def:Da||g,require:Ma?Ma.require:h,gc:1});J[Va.mid]=Va;Ba(Va);var Uc=Sb&&!0;pb(function(){Ab(Va,Uc)});Va.executed||
ua.push(Va);ub()}else Da&&Da();return Ya},ja=function(na){if(!na)return h;var Da=na.require;Da||(Da=function(Ia,Ma,Ya){return aa(Ia,Ma,Ya,na,Da)},na.require=m(Da,h),Da.module=na,Da.toUrl=function(Ia){return Ha(Ia,na)},Da.toAbsMid=function(Ia){return Ca(Ia,na)});return Da},ua=[],ta=[],T={},ba=function(na){na.injected=1;T[na.mid]=1;na.url&&(T[na.url]=na.pack||1);$b()},ha=function(na){na.injected=2;delete T[na.mid];na.url&&delete T[na.url];f(T)&&Mb()},sa=h.idle=function(){return!ta.length&&f(T)&&!ua.length&&
!Sb};var Aa=function(na,Da){if(Da)for(var Ia=0;Ia<Da.length;Ia++)if(Da[Ia][2].test(na))return Da[Ia];return 0},La=function(na){var Da=[];for(na=na.replace(/\\/g,"/").split("/");na.length;){var Ia=na.shift();if(".."==Ia&&Da.length&&".."!=Ma){Da.pop();var Ma=Da[Da.length-1]}else"."!=Ia&&Da.push(Ma=Ia)}return Da.join("/")},Ra=function(na,Da,Ia,Ma){return{pid:na,mid:Da,pack:Ia,url:Ma,executed:0,def:0}},Za=function(na,Da,Ia,Ma,Ya,Va,vb,uc,vc,Uc){var mc,qd,Ib;var Vc=/^\./.test(na);if(/(^\/)|(:)|(\.js$)/.test(na)||
Vc&&!Da)return Ra(0,na,0,na);na=La(Vc?Da.mid+"/../"+na:na);if(/^\./.test(na))throw p("irrationalPath",na);Uc||Vc||!Va.star||(Ib=Aa(na,Va.star[1]));!Ib&&Da&&(Ib=(Ib=Aa(Da.mid,Va))&&Aa(na,Ib[1]));Ib&&(na=Ib[1]+na.substring(Ib[3]));Da=(va=na.match(/^([^\/]+)(\/(.+))?$/))?va[1]:"";(mc=Ia[Da])?na=Da+"/"+(qd=va[3]||mc.main):Da="";var Wc=0;u(uc,function(wc){var rd=na.match(wc[0]);rd&&0<rd.length&&(Wc=q(wc[1])?na.replace(wc[0],wc[1]):wc[1])});if(Wc)return Za(Wc,0,Ia,Ma,Ya,Va,vb,uc,vc);if(Ia=Ma[na])return vc?
Ra(Ia.pid,Ia.mid,Ia.pack,Ia.url):Ma[na];Ma=(Ib=Aa(na,vb))?Ib[1]+na.substring(Ib[3]):Da?("/"===mc.location.slice(-1)?mc.location.slice(0,-1):mc.location)+"/"+qd:na;/(^\/)|(:)/.test(Ma)||(Ma=Ya+Ma);return Ra(Da,na,mc,La(Ma+".js"))},jb=function(na,Da,Ia){return Za(na,Da,N,J,h.baseUrl,I,G,E,void 0,Ia)};if(!C("foreign-loader"))var kb=function(na,Da,Ia){return na.normalize?na.normalize(Da,function(Ma){return Ca(Ma,Ia)}):Ca(Da,Ia)},ra=0,ya=function(na,Da,Ia){var Ma;if(Ma=na.match(/^(.+?)!(.*)$/)){var Ya=
ya(Ma[1],Da,Ia);5!==Ya.executed||Ya.load||lb(Ya);Ya.load?(Ma=kb(Ya,Ma[2],Da),na=Ya.mid+"!"+(Ya.dynamic?++ra+"!":"")+Ma):(Ma=Ma[2],na=Ya.mid+"!"+ ++ra+"!waitingForPlugin");na={plugin:Ya,mid:na,req:ja(Da),prid:Ma}}else na=jb(na,Da);return J[na.mid]||!Ia&&(J[na.mid]=na)};var Ca=h.toAbsMid=function(na,Da){return jb(na,Da).mid},Ha=h.toUrl=function(na,Da){Da=jb(na+"/x",Da);var Ia=Da.url;return Na(0===Da.pid?na:Ia.substring(0,Ia.length-5))};if(!C("foreign-loader")){var Ka={injected:2,executed:5,def:3,result:3};
ea=function(na){return J[na]=m({mid:na},Ka)};var Ua=ea("require"),ab=ea("exports"),Xa=ea("module"),$a={},Pa=0,lb=function(na){var Da=na.result;na.dynamic=Da.dynamic;na.normalize=Da.normalize;na.load=Da.load;return na},rb=function(na){var Da={};u(na.loadQ,function(Ya){var Va=kb(na,Ya.prid,Ya.req.module),vb=na.dynamic?Ya.mid.replace(/waitingForPlugin$/,Va):na.mid+"!"+Va;Va=m(m({},Ya),{mid:vb,prid:Va,injected:0});J[vb]&&J[vb].injected||ka(J[vb]=Va);Da[Ya.mid]=J[vb];ha(Ya);delete J[Ya.mid]});na.loadQ=
0;var Ia=function(Ya){for(var Va=Ya.deps||[],vb=0;vb<Va.length;vb++)(Ya=Da[Va[vb].mid])&&(Va[vb]=Ya)},Ma;for(Ma in J)Ia(J[Ma]);u(ua,Ia)},mb=function(na){h.trace("loader-finish-exec",[na.mid]);na.executed=5;na.defOrder=Pa++;na.loadQ&&(lb(na),rb(na));for(ia=0;ia<ua.length;)ua[ia]===na?ua.splice(ia,1):ia++;/^require\*/.test(na.mid)&&delete J[na.mid]},Jb=[],Ab=function(na,Da){if(4===na.executed)return h.trace("loader-circular-dependency",[Jb.concat(na.mid).join("-\x3e")]),!na.def||Da?$a:na.cjs&&na.cjs.exports;
if(!na.executed){if(!na.def)return $a;var Ia=na.mid,Ma=na.deps||[],Ya,Va=[],vb=0;for(na.executed=4;Ya=Ma[vb++];){Ya=Ya===Ua?ja(na):Ya===ab?na.cjs.exports:Ya===Xa?na.cjs:Ab(Ya,Da);if(Ya===$a)return na.executed=0,h.trace("loader-exec-module",["abort",Ia]),$a;Va.push(Ya)}h.trace("loader-run-factory",[na.mid]);Da=na.def;Va=q(Da)?Da.apply(null,Va):Da;na.result=void 0===Va&&na.cjs?na.cjs.exports:Va;mb(na)}return na.result},Sb=0,pb=function(na){try{Sb++,na()}catch(Da){throw Da;}finally{Sb--}sa()&&z("idle",
[])},ub=function(){Sb||pb(function(){for(var na,Da,Ia=0;Ia<ua.length;)na=Pa,Da=ua[Ia],Ab(Da),na!=Pa?Ia=0:Ia++})}}var Na="function"==typeof a.fixupUrl?a.fixupUrl:function(na){na+="";return na+(L?(/\?/.test(na)?"\x26":"?")+L:"")};void 0===C("dojo-loader-eval-hint-url")&&C.add("dojo-loader-eval-hint-url",1);var ka=function(na){var Da=na.plugin;5!==Da.executed||Da.load||lb(Da);var Ia=function(Ma){na.result=Ma;ha(na);mb(na);ub()};Da.load?Da.load(na.prid,na.req,Ia):Da.loadQ?Da.loadQ.push(na):(Da.loadQ=
[na],ua.unshift(Da),Ta(Da))},qa=0,Ga=function(na,Da){C("config-stripStrict")&&(na=na.replace(/(["'])use strict\1/g,""));na===qa?qa.call(null):h.eval(na,C("dojo-loader-eval-hint-url")?Da.url:Da.mid)},Ta=function(na){var Da=na.mid,Ia=na.url;if(!(na.executed||na.injected||T[Da]||na.url&&(na.pack&&T[na.url]===na.pack||1==T[na.url])))if(ba(na),na.plugin)ka(na);else{var Ma=function(){xb(na);if(2!==na.injected){if(C("dojo-enforceDefine")){z("error",p("noDefine",na));return}ha(na);m(na,Ka);h.trace("loader-define-nonmodule",
[na.url])}ub()};(qa=Q[Da]||Q["url:"+na.url])?(h.trace("loader-inject",["cache",na.mid,Ia]),Ga(qa,na),Ma()):(h.trace("loader-inject",["script",na.mid,Ia]),h.injectUrl(Na(Ia),Ma,na))}},bb=function(na,Da,Ia){h.trace("loader-define-module",[na.mid,Da]);if(2===na.injected)return z("error",p("multipleDefine",na)),na;m(na,{deps:Da,def:Ia,cjs:{id:na.mid,uri:na.url,exports:na.result={},setExports:function(Ya){na.cjs.exports=Ya},config:function(){return na.config}}});for(var Ma=0;Da[Ma];Ma++)Da[Ma]=ya(Da[Ma],
na);ha(na);q(Ia)||Da.length||(na.result=Ia,mb(na));return na},xb=function(na,Da){for(var Ia=[],Ma,Ya;ta.length;)Ya=ta.shift(),Da&&(Ya[0]=Da.shift()),Ma=Ya[0]&&ya(Ya[0])||na,Ia.push([Ma,Ya[1],Ya[2]]);P(na);u(Ia,function(Va){Ba(bb.apply(null,Va))})},Mb=g,$b=g;C("dom");if(C("dom")){var nc=function(na,Da,Ia,Ma){na.addEventListener(Da,Ma,!1);return function(){na.removeEventListener(Da,Ma,!1)}},xc=nc(window,"load","onload",function(){h.pageLoaded=1;try{"complete"!=w.readyState&&(w.readyState="complete")}catch(na){}xc()});
fa=w.getElementsByTagName("script");for(ia=0;!V;)/^dojo/.test((da=fa[ia++])&&da.type)||(V=da);h.injectUrl=function(na,Da,Ia){Ia=Ia.node=w.createElement("script");var Ma=nc(Ia,"load","onreadystatechange",function(Va){Va=Va||window.event;var vb=Va.target||Va.srcElement;if("load"===Va.type||/complete|loaded/.test(vb.readyState))Ma(),Ya(),Da&&Da()}),Ya=nc(Ia,"error","onerror",function(Va){Ma();Ya();z("error",p("scriptError: "+na,[na,Va]))});Ia.type="text/javascript";Ia.charset="utf-8";Ia.src=na;V.parentNode.insertBefore(Ia,
V);return Ia}}h.log=g;h.trace=g;C("foreign-loader")?da=g:(da=function(na,Da,Ia){var Ma=arguments.length,Ya=["require","exports","module"],Va=[0,na,Da];1==Ma?Va=[0,q(na)?Ya:[],na]:2==Ma&&v(na)?Va=[na,q(Da)?Ya:[],Da]:3==Ma&&(Va=[na,Da,Ia]);h.trace("loader-define",Va.slice(0,2));(Ma=Va[0]&&ya(Va[0]))&&!T[Ma.mid]?Ba(bb(Ma,Va[1],Va[2])):ta.push(Va)},da.amd={vendor:"dojotoolkit.org"});m(m(h,b.loaderPatch),a.loaderPatch);A("error",function(na){try{if(console.error(na),na instanceof Error){for(var Da in na)console.log(Da+
":",na[Da]);console.log(".")}}catch(Ia){}});m(h,{uid:l,cache:Q,packs:N});n.define||(n.define=da,n.require=h,C("foreign-loader")||(u(xa,function(na){Ea(na)}),da=c.deps||a.deps||b.deps,a=c.callback||a.callback||b.callback,h.boot=da||a?[da||[],a]:0))})(function(a){return a.dojoConfig||a.djConfig||a.require||{}},{async:1,baseUrl:"https://js.arcgis.com/4.20/dojo",hasCache:{"config-selectorEngine":"lite","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-loader":1,dom:1,"host-browser":1},packages:[{location:".",
name:"dojo"},{location:"../dijit",name:"dijit"},{location:"../dojox",name:"dojox"},{location:"../dgrid",main:"OnDemandGrid",name:"dgrid"},{location:"../dstore",main:"Store",name:"dstore"},{location:"../esri",name:"esri"},{location:"../moment",main:"moment",name:"moment"},{location:"../tslib",main:"tslib",name:"tslib"}]});
require({cache:{"esri/Map":function(){define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./Basemap ./Ground ./core/Accessor ./core/CollectionFlattener ./core/Evented ./core/Logger ./core/accessorSupport/decorators/property ./core/has ./core/accessorSupport/decorators/cast ./core/jsonMap ./core/accessorSupport/decorators/subclass ./layers/support/editableLayers ./support/basemapUtils ./support/groundUtils ./support/LayersMixin ./support/TablesMixin".split(" "),function(a,b,c,g,f,k,q,v,t,
u,m,p,e,l,h,n,w,x){const C=v.getLogger("esri.Map");f=function(D){function A(r){var z=D.call(this,r)||this;z.allLayers=new k({getCollections:()=>{var E,F,G;return[null==(E=z.basemap)?void 0:E.baseLayers,null==(F=z.ground)?void 0:F.layers,z.layers,null==(G=z.basemap)?void 0:G.referenceLayers]},getChildrenFunction:E=>"layers"in E?E.layers:null});z.allTables=new k({getCollections:()=>[z.tables,z.layers],getChildrenFunction:E=>{const F=[];"tables"in E&&F.push(E.tables);"layers"in E&&F.push(E.layers);return F},
itemFilterFunction:E=>{const F=E.parent;return F&&"tables"in F&&F.tables.includes(E)}});z.basemap=null;z.editableLayers=new k({getCollections:()=>[z.allLayers],itemFilterFunction:l.isEditableLayer});z.ground=new g;z._basemapCache=h.createCache();return z}a._inheritsLoose(A,D);var B=A.prototype;B.destroy=function(){var r,z;this.allLayers.destroy();this.allTables.destroy();this.editableLayers.destroy();null==(r=this.ground)?void 0:r.destroy();null==(z=this.basemap)?void 0:z.destroy();h.destroyCache(this._basemapCache);
this._basemapCache=null};B.castBasemap=function(r){return h.ensureType(r,this._basemapCache)};B.castGround=function(r){r=n.ensureType(r);return r?r:(C.error("Map.ground may not be set to null or undefined"),this._get("ground"))};B.findLayerById=function(r){return this.allLayers.find(z=>z.id===r)};B.findTableById=function(r){return this.allTables.find(z=>z.id===r)};return A}(x.TablesMixin(w.LayersMixin(q.EventedMixin(f))));b.__decorate([t.property({readOnly:!0,dependsOn:[]})],f.prototype,"allLayers",
void 0);b.__decorate([t.property({readOnly:!0})],f.prototype,"allTables",void 0);b.__decorate([t.property({type:c})],f.prototype,"basemap",void 0);b.__decorate([m.cast("basemap")],f.prototype,"castBasemap",null);b.__decorate([t.property({readOnly:!0})],f.prototype,"editableLayers",void 0);b.__decorate([t.property({type:g,nonNullable:!0})],f.prototype,"ground",void 0);b.__decorate([m.cast("ground")],f.prototype,"castGround",null);return f=b.__decorate([e.subclass("esri.Map")],f)})},"esri/chunks/_rollupPluginBabelHelpers":function(){define(["exports"],
function(a){function b(){function e(w,x,C){x=new RegExp(w,x);n.set(x,C||n.get(w));return t(x,e.prototype)}function l(w,x){var C=n.get(x);return Object.keys(C).reduce(function(D,A){D[A]=w[C[A]];return D},Object.create(null))}b=function(w,x){return new e(w,void 0,x)};var h=RegExp.prototype,n=new WeakMap;q(e,RegExp);e.prototype.exec=function(w){if(w=h.exec.call(this,w))w.groups=l(w,this);return w};e.prototype[Symbol.replace]=function(w,x){if("string"===typeof x){var C=n.get(this);return h[Symbol.replace].call(this,
w,x.replace(/\$<([^>]+)>/g,function(A,B){return"$"+C[B]}))}if("function"===typeof x){var D=this;return h[Symbol.replace].call(this,w,function(){var A=arguments;"object"!==typeof A[A.length-1]&&(A=[].slice.call(A),A.push(l(A,D)));return x.apply(this,A)})}return h[Symbol.replace].call(this,w,x)};return b.apply(this,arguments)}function c(e){this.wrapped=e}function g(e){function l(x,C){try{var D=e[x](C),A=D.value,B=A instanceof c;Promise.resolve(B?A.wrapped:A).then(function(r){B?l("return"===x?"return":
"next",r):h(D.done?"return":"normal",r)},function(r){l("throw",r)})}catch(r){h("throw",r)}}function h(x,C){switch(x){case "return":n.resolve({value:C,done:!0});break;case "throw":n.reject(C);break;default:n.resolve({value:C,done:!1})}(n=n.next)?l(n.key,n.arg):w=null}var n,w;this._invoke=function(x,C){return new Promise(function(D,A){D={key:x,arg:C,resolve:D,reject:A,next:null};w?w=w.next=D:(n=w=D,l(x,C))})};"function"!==typeof e.return&&(this.return=void 0)}function f(e,l,h,n,w,x,C){try{var D=e[x](C),
A=D.value}catch(B){h(B);return}D.done?l(A):Promise.resolve(A).then(n,w)}function k(e,l){for(var h=0;h<l.length;h++){var n=l[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}function q(e,l){if("function"!==typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(l&&l.prototype,{constructor:{value:e,writable:!0,configurable:!0}});l&&t(e,l)}function v(e){v=Object.setPrototypeOf?
Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)};return v(e)}function t(e,l){t=Object.setPrototypeOf||function(h,n){h.__proto__=n;return h};return t(e,l)}function u(){if("undefined"===typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function m(e,l,h){m=u()?Reflect.construct:function(n,w,x){var C=[null];C.push.apply(C,
w);n=new (Function.bind.apply(n,C));x&&t(n,x.prototype);return n};return m.apply(null,arguments)}function p(e){var l="function"===typeof Map?new Map:void 0;p=function(h){function n(){return m(h,arguments,v(this).constructor)}if(null===h||-1===Function.toString.call(h).indexOf("[native code]"))return h;if("function"!==typeof h)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof l){if(l.has(h))return l.get(h);l.set(h,n)}n.prototype=Object.create(h.prototype,
{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});return t(n,h)};return p(e)}g.prototype["function"===typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this};g.prototype.next=function(e){return this._invoke("next",e)};g.prototype.throw=function(e){return this._invoke("throw",e)};g.prototype.return=function(e){return this._invoke("return",e)};a._assertThisInitialized=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e};a._asyncIterator=function(e){var l;"undefined"!==typeof Symbol&&(Symbol.asyncIterator&&(l=e[Symbol.asyncIterator]),null==l&&Symbol.iterator&&(l=e[Symbol.iterator]));null==l&&(l=e["@@asyncIterator"]);null==l&&(l=e["@@iterator"]);if(null==l)throw new TypeError("Object is not async iterable");return l.call(e)};a._asyncToGenerator=function(e){return function(){var l=this,h=arguments;return new Promise(function(n,w){function x(A){f(D,n,w,x,C,"next",A)}function C(A){f(D,n,w,x,C,"throw",A)}var D=
e.apply(l,h);x(void 0)})}};a._awaitAsyncGenerator=function(e){return new c(e)};a._createClass=function(e,l,h){l&&k(e.prototype,l);h&&k(e,h);return e};a._inheritsLoose=function(e,l){e.prototype=Object.create(l.prototype);e.prototype.constructor=e;t(e,l)};a._wrapAsyncGenerator=function(e){return function(){return new g(e.apply(this,arguments))}};a._wrapNativeSuper=p;a._wrapRegExp=b})},"esri/chunks/tslib.es6":function(){define(["exports"],function(a){a.__decorate=function(b,c,g,f){var k=arguments.length,
q=3>k?c:null===f?f=Object.getOwnPropertyDescriptor(c,g):f,v;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)q=Reflect.decorate(b,c,g,f);else for(var t=b.length-1;0<=t;t--)if(v=b[t])q=(3>k?v(q):3<k?v(c,g,q):v(c,g))||q;return 3<k&&q&&Object.defineProperty(c,g,q),q}})},"esri/Basemap":function(){define("require ./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./core/Collection ./core/collectionUtils ./core/JSONSupport ./core/lang ./core/Loadable ./core/loadAll ./core/Logger ./core/maybe ./core/promiseUtils ./core/urlUtils ./core/accessorSupport/decorators/property ./core/accessorSupport/ensureType ./core/has ./core/jsonMap ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer ./geometry/SpatialReference ./portal/Portal ./portal/PortalItem ./support/basemapDefinitions ./webdoc/support/writeUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r,z){var E;let F=0;const G=u.getLogger("esri.Basemap");k=E=function(N){function K(J){var L=N.call(this,J)||this;L.id=null;L.portalItem=null;L.spatialReference=null;L.thumbnailUrl=null;L.title="Basemap";L.id=Date.now().toString(16)+"-basemap-"+F++;L.baseLayers=new g;L.referenceLayers=new g;const Q=W=>{W.parent&&W.parent!==b._assertThisInitialized(L)&&"remove"in W.parent&&W.parent.remove(W);W.parent=b._assertThisInitialized(L);"elevation"===W.type&&
G.error(`Layer '${W.title}, id:${W.id}' of type '${W.type}' is not supported as a basemap layer and will therefore be ignored.`)};L.baseLayers.on("after-add",W=>Q(W.item));L.referenceLayers.on("after-add",W=>Q(W.item));L.baseLayers.on("after-remove",W=>{W.item.parent=null});L.referenceLayers.on("after-remove",W=>{W.item.parent=null});return L}b._inheritsLoose(K,N);var I=K.prototype;I.initialize=function(){this.when().catch(J=>{G.error("#load()",`Failed to load basemap (title: '${this.title}', id: '${this.id}')`,
J)});this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)};I.destroy=function(){var J,L=this.baseLayers.removeAll();for(const Q of L)Q.destroy();L=this.referenceLayers.removeAll();for(const Q of L)Q.destroy();this.baseLayers.destroy();this.referenceLayers.destroy();null==(J=this.portalItem)?void 0:J.destroy();this.portalItem=null};I.normalizeCtorArgs=function(J){J&&"resourceInfo"in J&&(this._set("resourceInfo",J.resourceInfo),J={...J},delete J.resourceInfo);return J};I._writeBaseLayers=
function(J,L,Q){const W=[];J&&(Q={...Q,layerContainerType:"basemap"},this.baseLayers.forEach(V=>{V=z.getLayerJSON(V,Q.webmap?Q.webmap.getLayerJSONFromResourceInfo(V):null,Q);m.isSome(V)&&W.push(V)}),this.referenceLayers.forEach(V=>{V=z.getLayerJSON(V,Q.webmap?Q.webmap.getLayerJSONFromResourceInfo(V):null,Q);m.isSome(V)&&(V.isReference=!0,W.push(V))}));L.baseMapLayers=W};I.writeTitle=function(J,L){L.title=J||"Basemap"};I.load=function(J){this.addResolvingPromise(this._loadFromSource(J));return Promise.resolve(this)};
I.loadAll=function(){return t.loadAll(this,J=>{J(this.baseLayers,this.referenceLayers)})};I.clone=function(){const J={id:this.id,title:this.title,portalItem:this.portalItem,baseLayers:this.baseLayers.slice(),referenceLayers:this.referenceLayers.slice()};this.loaded&&(J.loadStatus="loaded");return(new E({resourceInfo:this.resourceInfo})).set(J)};I.read=function(J,L){this.resourceInfo||this._set("resourceInfo",{data:J,context:L});N.prototype.read.call(this,J,L)};I.write=function(J,L){J=J||{};L&&L.origin||
(L={origin:"web-map",...L});N.prototype.write.call(this,J,L);!this.loaded&&this.resourceInfo&&this.resourceInfo.data.baseMapLayers&&(J.baseMapLayers=this.resourceInfo.data.baseMapLayers.map(Q=>{Q=q.clone(Q);Q.url&&e.isProtocolRelative(Q.url)&&(Q.url=`https:${Q.url}`);Q.templateUrl&&e.isProtocolRelative(Q.templateUrl)&&(Q.templateUrl=`https:${Q.templateUrl}`);return Q}));return J};I._loadFromSource=function(){var J=b._asyncToGenerator(function*(L){const {resourceInfo:Q,portalItem:W}=this;p.throwIfAborted(L);
const V=[];Q?(V.push(this._loadLayersFromJSON(Q.data,Q.context?Q.context.url:null,L)),Q.data.id&&!Q.data.title&&V.push(r.getBasemapTitle(Q.data.id).then(P=>{P&&this.read({title:P},Q.context)}))):W&&V.push(this._loadFromItem(W,L));yield Promise.all(V)});return function(L){return J.apply(this,arguments)}}();I._loadLayersFromJSON=function(){var J=b._asyncToGenerator(function*(L,Q,W){var V=this.resourceInfo&&this.resourceInfo.context;const P=this.portalItem&&this.portalItem.portal||V&&V.portal||null,
X=V&&"web-scene"===V.origin?"web-scene":"web-map",{populateOperationalLayers:U}=yield new Promise(function(Z,oa){a(["./layers/support/layersCreator"],Z,oa)});V=[];p.throwIfAborted(W);L.baseMapLayers&&Array.isArray(L.baseMapLayers)&&(Q={context:{origin:X,url:Q,portal:P,layerContainerType:"basemap"},defaultLayerType:"DefaultTileLayer"},W=U(this.baseLayers,L.baseMapLayers.filter(Z=>!Z.isReference),Q),V.push(W),L=U(this.referenceLayers,L.baseMapLayers.filter(Z=>Z.isReference),Q),V.push(L));yield p.eachAlways(V)});
return function(L,Q,W){return J.apply(this,arguments)}}();I._loadFromItem=function(){var J=b._asyncToGenerator(function*(L,Q){const W=yield(yield L.load(Q)).fetchData("json",Q),V=e.urlToObject(L.itemUrl);this._set("resourceInfo",{data:W.baseMap,context:{origin:"web-map",portal:L.portal||A.getDefault(),url:V}});this.read(this.resourceInfo.data,this.resourceInfo.context);this.read({spatialReference:W.spatialReference},this.resourceInfo.context);this.read({title:L.title,thumbnailUrl:L.thumbnailUrl},
{origin:"portal-item",portal:L.portal||A.getDefault(),url:V});return this._loadLayersFromJSON(this.resourceInfo.data,V,Q)});return function(L,Q){return J.apply(this,arguments)}}();K.fromId=function(J){return(J=r.esriBasemapDefinitions[J])?E.fromJSON(J):null};b._createClass(K,[{key:"baseLayers",set:function(J){this._set("baseLayers",f.referenceSetter(J,this._get("baseLayers")))}},{key:"referenceLayers",set:function(J){this._set("referenceLayers",f.referenceSetter(J,this._get("referenceLayers")))}}]);
return K}(k.JSONSupportMixin(v));c.__decorate([l.property({json:{write:{ignoreOrigin:!0,target:"baseMapLayers",writer(N,K,I,J){this._writeBaseLayers(N,K,J)}},origins:{"web-scene":{write:{ignoreOrigin:!0,target:{baseMapLayers:{type:g}},writer(N,K,I,J){this._writeBaseLayers(N,K,J)}}}}}})],k.prototype,"baseLayers",null);c.__decorate([l.property({type:String,json:{origins:{"web-scene":{write:!0}}}})],k.prototype,"id",void 0);c.__decorate([l.property({type:B})],k.prototype,"portalItem",void 0);c.__decorate([l.property()],
k.prototype,"referenceLayers",null);c.__decorate([l.property({readOnly:!0})],k.prototype,"resourceInfo",void 0);c.__decorate([l.property({type:D})],k.prototype,"spatialReference",void 0);c.__decorate([l.property()],k.prototype,"thumbnailUrl",void 0);c.__decorate([l.property({type:String,json:{origins:{"web-scene":{write:{isRequired:!0}}}}})],k.prototype,"title",void 0);c.__decorate([C.writer("title")],k.prototype,"writeTitle",null);return k=E=c.__decorate([x.subclass("esri.Basemap")],k)})},"esri/core/Collection":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./ArrayPool ./Evented ./lang ./maybe ./ObjectPool ./scheduling ./accessorSupport/ensureType ./accessorSupport/tracking ./accessorSupport/decorators/property ./accessorSupport/decorators/subclass ./accessorSupport/tracking/SimpleObservable".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){function l(G){return G?G instanceof F?G.toArray():G.length?Array.prototype.slice.apply(G):[]:[]}function h(G){if(G&&G.length)return G[0]}function n(G,N,K,I){N&&N.forEach((J,L,Q)=>{G.push(J);n(G,K.call(I,J,L,Q),K,I)})}var w;let x=function(){function G(){this.target=null;this.defaultPrevented=this.cancellable=!1;this.type=this.item=void 0}var N=G.prototype;N.preventDefault=function(){this.cancellable&&(this.defaultPrevented=!0)};N.reset=function(K){this.defaultPrevented=
!1;this.item=K};return G}();const C=new q(x,void 0,G=>{G.item=null;G.target=null;G.defaultPrevented=!1;G.cancellable=!1}),D=()=>{},A=new Set,B=new Set,r=new Set,z=new Map;let E=0,F=w=function(G){function N(I){I=G.call(this,I)||this;I._chgListeners=[];I._notifications=null;I._timer=null;I._observable=new e.SimpleObservable;I.length=0;I._items=[];Object.defineProperty(a._assertThisInitialized(I),"uid",{value:E++});return I}a._inheritsLoose(N,G);N.isCollection=function(I){return null!=I&&I instanceof
w};var K=N.prototype;K.normalizeCtorArgs=function(I){return I?Array.isArray(I)||I instanceof w?{items:I}:I:{}};K[Symbol.iterator]=function*(){yield*this.items};K.hasEventListener=function(I){return"change"===I?0<this._chgListeners.length:this._emitter.hasEventListener(I)};K.on=function(I,J){if("change"===I){const L=this._chgListeners,Q={removed:!1,callback:J};L.push(Q);this._notifications&&this._notifications.push({listeners:L.slice(),items:this._items.slice(),changes:[]});return{remove(){this.remove=
D;Q.removed=!0;L.splice(L.indexOf(Q),1)}}}return this._emitter.on(I,J)};K.once=function(I,J){const L=this.on(I,J);return{remove(){L.remove()}}};K.add=function(I,J){u.trackAccess(this._observable);if(this._emitBeforeChanges(1))return this;J=this.getNextIndex(null!=J?J:null);this._splice(J,0,I);this._emitAfterChanges(1);return this};K.addMany=function(I,J=this._items.length){u.trackAccess(this._observable);if(!I||!I.length||this._emitBeforeChanges(1))return this;J=this.getNextIndex(J);this._splice(J,
0,...l(I));this._emitAfterChanges(1);return this};K.removeAll=function(){u.trackAccess(this._observable);if(!this.length||this._emitBeforeChanges(2))return[];const I=this._splice(0,this.length)||[];this._emitAfterChanges(2);return I};K.clone=function(){u.trackAccess(this._observable);return this._createNewInstance({items:this._items.map(f.clone)})};K.concat=function(...I){u.trackAccess(this._observable);I=I.map(l);return this._createNewInstance({items:this._items.concat(...I)})};K.drain=function(I,
J){u.trackAccess(this._observable);if(this.length&&!this._emitBeforeChanges(2)){var L=k.assumeNonNull(this._splice(0,this.length)),Q=L.length;for(let W=0;W<Q;W++)I.call(J,L[W],W,L);this._emitAfterChanges(2)}};K.every=function(I,J){u.trackAccess(this._observable);return this._items.every(I,J)};K.filter=function(I,J){u.trackAccess(this._observable);let L;L=2===arguments.length?this._items.filter(I,J):this._items.filter(I);return this._createNewInstance({items:L})};K.find=function(I,J){u.trackAccess(this._observable);
return this._items.find(I,J)};K.findIndex=function(I,J){u.trackAccess(this._observable);return this._items.findIndex(I,J)};K.flatten=function(I,J){u.trackAccess(this._observable);const L=[];n(L,this,I,J);return new w(L)};K.forEach=function(I,J){u.trackAccess(this._observable);return this._items.forEach(I,J)};K.getItemAt=function(I){u.trackAccess(this._observable);return this._items[I]};K.getNextIndex=function(I){u.trackAccess(this._observable);const J=this.length;I=null==I?J:I;0>I?I=0:I>J&&(I=J);
return I};K.includes=function(I,J=0){u.trackAccess(this._observable);return this._items.includes(I,J)};K.indexOf=function(I,J=0){u.trackAccess(this._observable);return this._items.indexOf(I,J)};K.join=function(I=","){u.trackAccess(this._observable);return this._items.join(I)};K.lastIndexOf=function(I,J=this.length-1){u.trackAccess(this._observable);return this._items.lastIndexOf(I,J)};K.map=function(I,J){u.trackAccess(this._observable);I=this._items.map(I,J);return new w({items:I})};K.reorder=function(I,
J=this.length-1){u.trackAccess(this._observable);const L=this.indexOf(I);if(-1!==L){0>J?J=0:J>=this.length&&(J=this.length-1);if(L!==J){if(this._emitBeforeChanges(4))return I;this._splice(L,1);this._splice(J,0,I);this._emitAfterChanges(4)}return I}};K.pop=function(){u.trackAccess(this._observable);if(this.length&&!this._emitBeforeChanges(2)){var I=h(this._splice(this.length-1,1));this._emitAfterChanges(2);return I}};K.push=function(...I){u.trackAccess(this._observable);if(this._emitBeforeChanges(1))return this.length;
this._splice(this.length,0,...I);this._emitAfterChanges(1);return this.length};K.reduce=function(I,J){u.trackAccess(this._observable);const L=this._items;return 2===arguments.length?L.reduce(I,J):L.reduce(I)};K.reduceRight=function(I,J){u.trackAccess(this._observable);const L=this._items;return 2===arguments.length?L.reduceRight(I,J):L.reduceRight(I)};K.remove=function(I){u.trackAccess(this._observable);return this.removeAt(this.indexOf(I))};K.removeAt=function(I){u.trackAccess(this._observable);
if(!(0>I||I>=this.length||this._emitBeforeChanges(2)))return I=h(this._splice(I,1)),this._emitAfterChanges(2),I};K.removeMany=function(I){u.trackAccess(this._observable);if(!I||!I.length||this._emitBeforeChanges(2))return[];I=I instanceof w?I.toArray():I;const J=this._items,L=[],Q=I.length;for(let X=0;X<Q;X++){var W=J.indexOf(I[X]);if(-1<W){{var V=X+1;var P=W+1;const U=Math.min(I.length-V,J.length-P);let Z=0;for(;Z<U&&I[V+Z]===J[P+Z];)Z++;V=Z}V=1+V;(W=this._splice(W,V))&&0<W.length&&L.push.apply(L,
W);X+=V-1}}this._emitAfterChanges(2);return L};K.reverse=function(){u.trackAccess(this._observable);if(this._emitBeforeChanges(4))return this;const I=this._splice(0,this.length);I&&(I.reverse(),this._splice(0,0,...I));this._emitAfterChanges(4);return this};K.shift=function(){u.trackAccess(this._observable);if(this.length&&!this._emitBeforeChanges(2)){var I=h(this._splice(0,1));this._emitAfterChanges(2);return I}};K.slice=function(I=0,J=this.length){u.trackAccess(this._observable);return this._createNewInstance({items:this._items.slice(I,
J)})};K.some=function(I,J){u.trackAccess(this._observable);return this._items.some(I,J)};K.sort=function(I){u.trackAccess(this._observable);if(!this.length||this._emitBeforeChanges(4))return this;const J=k.assumeNonNull(this._splice(0,this.length));arguments.length?J.sort(I):J.sort();this._splice(0,0,...J);this._emitAfterChanges(4);return this};K.splice=function(I,J,...L){u.trackAccess(this._observable);const Q=(J?2:0)|(L.length?1:0);if(this._emitBeforeChanges(Q))return[];I=this._splice(I,J,...L)||
[];this._emitAfterChanges(Q);return I};K.toArray=function(){u.trackAccess(this._observable);return this._items.slice()};K.toJSON=function(){u.trackAccess(this._observable);return this.toArray()};K.toLocaleString=function(){u.trackAccess(this._observable);return this._items.toLocaleString()};K.toString=function(){u.trackAccess(this._observable);return this._items.toString()};K.unshift=function(...I){u.trackAccess(this._observable);if(!I.length||this._emitBeforeChanges(1))return this.length;this._splice(0,
0,...I);this._emitAfterChanges(1);return this.length};K._createNewInstance=function(I){return new this.constructor(I)};K._splice=function(I,J,...L){const Q=this._items;var W=this.constructor.prototype.itemType;let V=void 0;!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=v.schedule(()=>this._dispatchChange()));if(J){V=Q.splice(I,J);if(this.hasEventListener("before-remove")){var P=
C.acquire();P.target=this;P.cancellable=!0;for(let Z=0,oa=V.length;Z<oa;Z++)J=V[Z],P.reset(J),this.emit("before-remove",P),P.defaultPrevented&&(V.splice(Z,1),Q.splice(I,0,J),I+=1,--Z,--oa);C.release(P)}this.length=this._items.length;if(this.hasEventListener("after-remove")){J=C.acquire();J.target=this;J.cancellable=!1;P=V.length;for(let Z=0;Z<P;Z++)J.reset(V[Z]),this.emit("after-remove",J);C.release(J)}}if(L&&L.length){if(W){J=[];for(var X of L)L=W.ensureType(X),null==L&&null!=X||J.push(L);L=J}W=
this.hasEventListener("before-add");X=this.hasEventListener("after-add");J=I===this.length;if(W||X){var U=C.acquire();U.target=this;U.cancellable=!0;P=C.acquire();P.target=this;P.cancellable=!1;for(const Z of L)W?(U.reset(Z),this.emit("before-add",U),U.defaultPrevented||(J?Q.push(Z):Q.splice(I++,0,Z),this._set("length",Q.length),X&&(P.reset(Z),this.emit("after-add",P)))):(J?Q.push(Z):Q.splice(I++,0,Z),this._set("length",Q.length),P.reset(Z),this.emit("after-add",P));C.release(P);C.release(U)}else{if(J)for(U of L)Q.push(U);
else Q.splice(I,0,...L);this._set("length",Q.length)}}(L&&L.length||V&&V.length)&&this._notifyChangeEvent(L,V);return V};K._emitBeforeChanges=function(I){let J=!1;if(this.hasEventListener("before-changes")){const L=C.acquire();L.target=this;L.cancellable=!0;L.type=I;this.emit("before-changes",L);J=L.defaultPrevented;C.release(L)}return J};K._emitAfterChanges=function(I){if(this.hasEventListener("after-changes")){const J=C.acquire();J.target=this;J.cancellable=!1;J.type=I;this.emit("after-changes",
J);C.release(J)}this._observable.notify()};K._notifyChangeEvent=function(I,J){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:I,removed:J})};K._dispatchChange=function(){this._timer&&(this._timer.remove(),this._timer=null);if(this._notifications){var I=this._notifications;this._notifications=null;for(const J of I){I=J.changes;A.clear();B.clear();r.clear();for(const {added:X,removed:U}of I){if(X)if(0===r.size&&0===B.size)for(const Z of X)A.add(Z);
else for(const Z of X)B.has(Z)?(r.add(Z),B.delete(Z)):r.has(Z)||A.add(Z);if(U)if(0===r.size&&0===A.size)for(const Z of U)B.add(Z);else for(const Z of U)A.has(Z)?A.delete(Z):(r.delete(Z),B.add(Z))}const L=c.acquire();A.forEach(X=>{L.push(X)});const Q=c.acquire();B.forEach(X=>{Q.push(X)});const W=this._items,V=J.items,P=c.acquire();r.forEach(X=>{V.indexOf(X)!==W.indexOf(X)&&P.push(X)});if(J.listeners&&(L.length||Q.length||P.length)){I={target:this,added:L,removed:Q,moved:P};const X=J.listeners.length;
for(let U=0;U<X;U++){const Z=J.listeners[U];Z.removed||Z.callback.call(this,I)}}c.release(L);c.release(Q);c.release(P)}A.clear();B.clear();r.clear()}};a._createClass(N,[{key:"items",get:function(){u.trackAccess(this._observable);return this._items},set:function(I){this._emitBeforeChanges(1)||(this._splice(0,this.length,...l(I)),this._emitAfterChanges(1))}}]);return N}(g.EventedAccessor);F.ofType=G=>{if(!G)return w;if(z.has(G))return z.get(G);var N=null;if("function"===typeof G)N=G.prototype.declaredClass;
else if(G.base)N=G.base.prototype.declaredClass;else for(var K in G.typeMap){const I=G.typeMap[K].prototype.declaredClass;N=N?N+` | ${I}`:I}K=function(I){function J(){return I.apply(this,arguments)||this}a._inheritsLoose(J,I);return J}(w);K=b.__decorate([p.subclass(`esri.core.Collection<${N}>`)],K);N={Type:G,ensureType:"function"===typeof G?t.ensureType(G):t.ensureOneOfType(G)};Object.defineProperty(K.prototype,"itemType",{value:N});z.set(G,K);return K};b.__decorate([m.property()],F.prototype,"length",
void 0);b.__decorate([m.property()],F.prototype,"items",null);return F=w=b.__decorate([p.subclass("esri.core.Collection")],F)})},"esri/core/ArrayPool":function(){define(["./ObjectPool"],function(a){function b(f){f.length=0}let c=function(){function f(q=50,v=50){this._pool=new a(Array,void 0,b,v,q)}var k=f.prototype;k.acquire=function(){return this._pool.acquire()};k.release=function(q){this._pool.release(q)};k.prune=function(){this._pool.prune(0)};f.acquire=function(){return g.acquire()};f.release=
function(q){return g.release(q)};f.prune=function(){g.prune()};return f}();const g=new c(100);return c})},"esri/core/ObjectPool":function(){define(function(){let a=function(){function b(g,f,k,q=1,v=0){this.ctor=g;this.acquireFunction=f;this.releaseFunction=k;this.allocationSize=q;this._pool=Array(v);this._initialSize=v;if(this.ctor)for(g=0;g<v;g++)this._pool[g]=new this.ctor;this.allocationSize=Math.max(q,1)}var c=b.prototype;c.destroy=function(){this.prune(0)};c.acquire=function(...g){if(b.test.disabled)var f=
new this.ctor;else{if(0===this._pool.length){f=this.allocationSize;for(let k=0;k<f;k++)this._pool[k]=new this.ctor}f=this._pool.pop()}this.acquireFunction?this.acquireFunction(f,...g):f&&f.acquire&&"function"===typeof f.acquire&&f.acquire(...g);return f};c.release=function(g){g&&!b.test.disabled&&(this.releaseFunction?this.releaseFunction(g):g&&g.release&&"function"===typeof g.release&&g.release(),this._pool.push(g))};c.prune=function(g=this._initialSize){if(!(g>=this._pool.length)){for(let f=g;f<
this._pool.length;++f)this._dispose(this._pool[f]);this._pool.length=g}};c._dispose=function(g){g.dispose&&"function"===typeof g.dispose&&g.dispose()};return b}();a.test={disabled:!1};return a})},"esri/core/Evented":function(){define(["../chunks/_rollupPluginBabelHelpers","../chunks/tslib.es6","./Accessor","./handleUtils","./accessorSupport/decorators/subclass"],function(a,b,c,g,f){let k=function(){function q(){this._emitter=new q.EventEmitter(this)}var v=q.prototype;v.emit=function(t,u){return this._emitter.emit(t,
u)};v.on=function(t,u){return this._emitter.on(t,u)};v.once=function(t,u){return this._emitter.once(t,u)};v.hasEventListener=function(t){return this._emitter.hasEventListener(t)};return q}();(function(q){let v=function(){function u(p=null){this.target=p;this._listenersMap=null}var m=u.prototype;m.clear=function(){this._listenersMap&&this._listenersMap.clear()};m.emit=function(p,e){p=this._listenersMap&&this._listenersMap.get(p);if(!p)return!1;const l=this.target||this;[...p].forEach(h=>{h.call(l,
e)});return 0<p.length};m.on=function(p,e){if(Array.isArray(p)){var l=p.map(h=>this.on(h,e));return g.handlesGroup(l)}if(-1<p.indexOf(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);l=this._listenersMap.get(p)||[];l.push(e);this._listenersMap.set(p,l);return{remove:()=>{const h=this._listenersMap&&this._listenersMap.get(p)||[],n=h.indexOf(e);0<=n&&h.splice(n,1)}}};m.once=function(p,e){const l=this.on(p,
h=>{l.remove();e.call(null,h)});return l};m.hasEventListener=function(p){p=this._listenersMap&&this._listenersMap.get(p);return null!=p&&0<p.length};return u}();q.EventEmitter=v;q.EventedMixin=u=>{u=function(m){function p(){var l=m.apply(this,arguments)||this;l._emitter=new v;return l}a._inheritsLoose(p,m);var e=p.prototype;e.destroy=function(){this._emitter.clear()};e.emit=function(l,h){return this._emitter.emit(l,h)};e.on=function(l,h){return this._emitter.on(l,h)};e.once=function(l,h){return this._emitter.once(l,
h)};e.hasEventListener=function(l){return this._emitter.hasEventListener(l)};return p}(u);return u=b.__decorate([f.subclass("esri.core.Evented")],u)};let t=function(u){function m(){var e=u.apply(this,arguments)||this;e._emitter=new k.EventEmitter(a._assertThisInitialized(e));return e}a._inheritsLoose(m,u);var p=m.prototype;p.emit=function(e,l){return this._emitter.emit(e,l)};p.on=function(e,l){return this._emitter.on(e,l)};p.once=function(e,l){return this._emitter.once(e,l)};p.hasEventListener=function(e){return this._emitter.hasEventListener(e)};
return m}(c);t=b.__decorate([f.subclass("esri.core.Evented")],t);q.EventedAccessor=t})(k||(k={}));return k})},"esri/core/Accessor":function(){define("../chunks/_rollupPluginBabelHelpers ./deprecate ./Logger ./accessorSupport/get ./accessorSupport/metadata ./accessorSupport/Properties ./accessorSupport/set ./accessorSupport/watch ./accessorSupport/decorators/property ./accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t,u){function m(p){if(null==p)return{value:p};if(Array.isArray(p))return{type:[p[0]],
value:null};switch(typeof p){case "object":return p.constructor&&p.constructor.__accessorMetadata__||p instanceof Date?{type:p.constructor,value:p}:p;case "boolean":return{type:Boolean,value:p};case "string":return{type:String,value:p};case "number":return{type:Number,value:p};case "function":return{type:p,value:null}}}return function(){function p(...l){if(this.constructor===p)throw Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");Object.defineProperty(this,
"__accessor__",{enumerable:!1,value:new k(this)});0<l.length&&this.normalizeCtorArgs&&(this.__accessor__.ctorArgs=this.normalizeCtorArgs.apply(this,l))}p.createSubclass=function(l={}){if(Array.isArray(l))throw Error("Multi-inheritance unsupported since 4.16");const {properties:h,declaredClass:n,constructor:w}=l;delete l.declaredClass;delete l.properties;delete l.constructor;const x=this;let C=function(D){function A(...B){var r=D.call(this,...B)||this;r.inherited=null;w&&w.apply(a._assertThisInitialized(r),
B);return r}a._inheritsLoose(A,D);return A}(x);f.getOwnClassMetadata(C.prototype);for(const D in l){const A=l[D];C.prototype[D]="function"===typeof A?function(...B){const r=this.inherited;this.inherited=function(...E){if(x.prototype[D])return x.prototype[D].apply(this,E)};let z=void 0;try{z=A.apply(this,B)}catch(E){throw this.inherited=r,E;}this.inherited=r;return z}:l[D]}for(const D in h)l=m(h[D]),t.property(l)(C.prototype,D);return u.subclass(n)(C)};var e=p.prototype;e.postscript=function(l){const h=
this.__accessor__;l=h.ctorArgs||l;h.initialize();l&&(this.set(l),h.ctorArgs=null);h.constructed();this.initialize()};e.initialize=function(){};e.destroy=function(){this.destroyed||(v.removeTarget(this),this.__accessor__.destroy())};e.commitProperty=function(l){this.get(l)};e.get=function(l){return g.get(this,l)};e.hasOwnProperty=function(l){return this.__accessor__?this.__accessor__.has(l):Object.prototype.hasOwnProperty.call(this,l)};e.isInstanceOf=function(l){b.deprecatedFunction(c.getLogger(this.declaredClass),
"isInstanceOf",{replacement:"Use instanceof directly",version:"4.16"});return this instanceof l};e.keys=function(){return this.__accessor__?this.__accessor__.keys():[]};e.set=function(l,h){q.set(this,l,h);return this};e.watch=function(l,h,n){return v.watch(this,l,h,n)};e._clearOverride=function(l){return this.__accessor__.clearOverride(l)};e._override=function(l,h){return this.__accessor__.override(l,h)};e._isOverridden=function(l){return this.__accessor__.isOverridden(l)};e.notifyChange=function(l){this.__accessor__.notifyChange(l)};
e._get=function(l){return this.__accessor__.internalGet(l)};e._set=function(l,h){this.__accessor__.internalSet(l,h);return this};a._createClass(p,[{key:"initialized",get:function(){return this.__accessor__&&this.__accessor__.initialized||!1}},{key:"constructed",get:function(){return this.__accessor__&&2===this.__accessor__.lifecycle||!1}},{key:"destroyed",get:function(){return this.__accessor__&&this.__accessor__.destroyed||!1}}]);return p}()})},"esri/core/deprecate":function(){define(["exports",
"./has"],function(a,b){function c(k,q,v=!1){v&&f.has(q)||(v&&f.add(q),k.warn(`\ud83d\uded1 DEPRECATED - ${q}`))}function g(k,q,v={}){if(b("esri-deprecation-warnings")){const {replacement:t,version:u,see:m,warnOnce:p}=v;t&&(q+=`\n\t\ud83d\udee0\ufe0f Replacement: ${t}`);u&&(q+=`\n\t\u2699\ufe0f Version: ${u}`);m&&(q+=`\n\t\ud83d\udd17 See ${m} for more details.`);c(k,q,p)}}const f=new Set;a.deprecated=g;a.deprecatedFunction=function(k,q,v={}){if(b("esri-deprecation-warnings")){const {moduleName:t}=
v;g(k,`Function: ${(t?t+"::":"")+q+"()"}`,v)}};a.deprecatedModule=function(k,q,v={}){b("esri-deprecation-warnings")&&g(k,`Module: ${q}`,v)};a.deprecatedProperty=function(k,q,v={}){if(b("esri-deprecation-warnings")){const {moduleName:t}=v;g(k,`Property: ${(t?t+"::":"")+q}`,v)}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/has":function(){define(["./global"],function(a){function b(v){return"function"===typeof f[v]?f[v]=f[v](a):f[v]}var c,g;let f;if(null!=(c=a.dojoConfig)&&c.has||null!=
(g=a.esriConfig)&&g.has){var k,q;f={...null==(k=a.dojoConfig)?void 0:k.has,...null==(q=a.esriConfig)?void 0:q.has}}else f={};b.add=(v,t,u,m)=>{if(m||"undefined"===typeof f[v])f[v]=t;return u&&b(v)};b.cache=f;b.add("esri-deprecation-warnings",!0);(()=>{b.add("host-webworker","undefined"!==typeof a.WorkerGlobalScope&&self instanceof a.WorkerGlobalScope);var v="undefined"!==typeof window&&"undefined"!==typeof location&&"undefined"!==typeof document&&window.location===location&&window.document===document;
b.add("host-browser",v);b.add("dom",v);if(b("host-browser")){var t=navigator;v=t.userAgent;t=t.appVersion;const m=parseFloat(t);b.add("edge",parseFloat(v.split("Edge/")[1])||void 0);b.add("webkit",!b("edge")&&parseFloat(v.split("WebKit/")[1])||void 0);b.add("chrome",!b("edge")&&parseFloat(v.split("Chrome/")[1])||void 0);b.add("safari",!t.includes("Safari")||b("chrome")||b("edge")?void 0:parseFloat(t.split("Version/")[1]));b.add("mac",t.includes("Macintosh"));if(v.match(/(iPhone|iPod|iPad)/)){const p=
RegExp.$1.replace(/P/,"p");var u=v.match(/OS ([\d_]+)/)?RegExp.$1:"1";u=parseFloat(u.replace(/_/,".").replace(/_/g,""));b.add(p,u);b.add("ios",u)}b.add("trident",parseFloat(t.split("Trident/")[1])||void 0);b("webkit")||(!v.includes("Gecko")||b("trident")||b("edge")||b.add("mozilla",m),b("mozilla")&&b.add("ff",parseFloat(v.split("Firefox/")[1]||v.split("Minefield/")[1])||void 0))}})();(()=>{if(a.navigator){var v=navigator.userAgent;const t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(v);
v=/iPhone/i.test(v);t&&b.add("esri-mobile",t);v&&b.add("esri-iPhone",v);b.add("esri-geolocation",!!navigator.geolocation)}b.add("esri-canvas-svg-support",!b("trident"));b.add("esri-wasm","WebAssembly"in a);b.add("esri-shared-array-buffer",()=>{const t=!1===a.crossOriginIsolated;return"SharedArrayBuffer"in a&&!t});b.add("esri-atomics","Atomics"in a);b.add("esri-workers","Worker"in a);b.add("esri-text-decoder","TextDecoder"in a);b.add("esri-text-encoder","TextEncoder"in a);b.add("web-feat:cache","caches"in
a);b.add("esri-workers-arraybuffer-transfer",!b("safari")||12<=Number(b("safari")));b.add("featurelayer-snapshot-enabled",!0);b.add("featurelayer-snapshot-point-min-threshold",8E4);b.add("featurelayer-snapshot-point-max-threshold",4E5);b.add("featurelayer-snapshot-point-coverage",.1);b.add("featurelayer-advanced-symbols",!1);b.add("featurelayer-pbf",!0);b.add("featurelayer-pbf-statistics",!1);b.add("feature-layers-workers",!0);b.add("mapview-transitions-duration",200);b.add("mapserver-pbf-enabled",
!1);!b("host-webworker")&&b("host-browser")&&(b.add("csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),b.add("esri-image-decode",()=>{if("decode"in new Image){const t=new Image;t.src='data:image/svg+xml;charset\x3dUTF-8,\x3csvg version\x3d"1.1" xmlns\x3d"http://www.w3.org/2000/svg"\x3e\x3c/svg\x3e';t.decode().then(()=>{b.add("esri-image-decode",!0,!0,!0)}).catch(()=>{b.add("esri-image-decode",!1,!0,!0)})}else return!1}),b.add("esri-url-encodes-apostrophe",()=>{const t=a.document.createElement("a");
t.href="?'";return t.href.includes("?%27")}),b.add("vectortilelayer-max-buffers",b("ff")?160:Number.POSITIVE_INFINITY))})();return b})},"esri/core/global":function(){define(function(){return function(){if("undefined"!==typeof globalThis)return globalThis;if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof global)return global}()})},"esri/core/Logger":function(){define(["../chunks/_rollupPluginBabelHelpers","../config","./has","./maybe","./string"],
function(a,b,c,g,f){const k={info:0,warn:1,error:2,none:3};c=function(){function q(t){this.level=null;this._module="";this.writer=this._parent=null;this._loggedMessages={error:new Map,warn:new Map,info:new Map};null!=t.level&&(this.level=t.level);null!=t.writer&&(this.writer=t.writer);this._module=t.module;q._loggers[this.module]=this;t=this.module.lastIndexOf(".");-1!==t&&(this._parent=q.getLogger(this.module.slice(0,t)))}var v=q.prototype;v.error=function(...t){this._log("error","always",...t)};
v.warn=function(...t){this._log("warn","always",...t)};v.info=function(...t){this._log("info","always",...t)};v.errorOnce=function(...t){this._log("error","once",...t)};v.warnOnce=function(...t){this._log("warn","once",...t)};v.infoOnce=function(...t){this._log("info","once",...t)};v.errorOncePerTick=function(...t){this._log("error","oncePerTick",...t)};v.warnOncePerTick=function(...t){this._log("warn","oncePerTick",...t)};v.infoOncePerTick=function(...t){this._log("info","oncePerTick",...t)};q.getLogger=
function(t){let u=q._loggers[t];u||(u=new q({module:t}));return u};v._log=function(t,u,...m){if(this._matchLevel(t)){if("always"!==u&&!q._throttlingDisabled){const p=this._argsToKey(m),e=this._loggedMessages[t].get(p);if("once"===u&&null!=e||"oncePerTick"===u&&e&&e>=q._tickCounter)return;this._loggedMessages[t].set(p,q._tickCounter);q._scheduleTickCounterIncrement()}for(const p of b.log.interceptors)if(p(t,this.module,...m))return;this._inheritedWriter()(t,this.module,...m)}};v._parentWithMember=
function(t,u){let m=this;for(;g.isSome(m);){const p=m[t];if(g.isSome(p))return p;m=m.parent}return u};v._inheritedWriter=function(){return this._parentWithMember("writer",this._consoleWriter)};v._consoleWriter=function(t,u,...m){console[t](`[${u}]`,...m)};v._matchLevel=function(t){return k[this._parentWithMember("level",b.log.level?b.log.level:"warn")]<=k[t]};v._argsToKey=function(...t){return f.numericHash(JSON.stringify(t,(u,m)=>"object"!==typeof m||Array.isArray(m)?m:"[Object]"))};q._scheduleTickCounterIncrement=
function(){q._tickCounterScheduled||(q._tickCounterScheduled=!0,Promise.resolve().then(()=>{q._tickCounter++;q._tickCounterScheduled=!1}))};a._createClass(q,[{key:"module",get:function(){return this._module}},{key:"parent",get:function(){return this._parent}},{key:"test",get:function(){const t=this;return{loggedMessages:t._loggedMessages,clearLoggedWarnings(){return t._loggedMessages.warn.clear()}}}}],[{key:"testSingleton",get:function(){return{resetLoggers(t={}){const u=q._loggers;q._loggers=t;return u},
set throttlingDisabled(t){q._throttlingDisabled=t}}}}]);return q}();c._loggers={};c._tickCounter=0;c._tickCounterScheduled=!1;c._throttlingDisabled=!1;return c})},"esri/config":function(){define(["module","./core/global","./core/has","./core/object"],function(a,b,c,g){c={apiKey:void 0,applicationUrl:b.location&&b.location.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryService:null,geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",
geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{httpsDomains:"arcgis.com arcgisonline.com esrikr.com premiumservices.blackbridge.com esripremium.accuweather.com gbm.digitalglobe.com firstlook.digitalglobe.com msi.digitalglobe.com".split(" "),interceptors:[],maxUrlLength:2E3,proxyRules:[],proxyUrl:null,timeout:6E4,trustedServers:[],
useIdentity:!0},log:{interceptors:[],level:null}};b.esriConfig&&(g.deepMerge(c,b.esriConfig,!0),delete c.has);c.assetsPath||(a=(new URL(a.uri,document.baseURI)).href,c.assetsPath=a.slice(0,a.indexOf("esri/")));c.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath");Object.defineProperty(c,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}});c.request.corsEnabledServers=[];c.request.corsEnabledServers.push=function(){console.warn("[esri.config]",
"request.corsEnabledServers is not supported and will be removed in a future release. See http://esriurl.com/cors8664");return 0};return c})},"esri/core/object":function(){define(["exports","./lang"],function(a,b){function c(f,k,q){for(const v of f){if(null==q)return;if(!(v in q))if(k)q[v]={};else return;q=q[v]}return q}function g(f,k,q){return k?Object.keys(k).reduce(function(v,t){let u=v[t],m=k[t];if(u===m)return v;if(void 0===u)return v[t]=b.clone(m),v;if(Array.isArray(m)||Array.isArray(v))u=u?
Array.isArray(u)?v[t]=u.concat():v[t]=[u]:v[t]=[],m&&(Array.isArray(m)||(m=[m]),q?m.forEach(p=>{-1===u.indexOf(p)&&u.push(p)}):v[t]=m.concat());else if(m&&"object"===typeof m)v[t]=g(u,m,q);else if(!v.hasOwnProperty(t)||k.hasOwnProperty(t))v[t]=m;return v},f||{}):f}a.deepMerge=function(f,k,q=!1){return g(f,k,q)};a.getDeepValue=function(f,k){if(null!=k)return k[f]||c(f.split("."),!1,k)};a.setDeepValue=function(f,k,q){const v=f.split(".");f=v.pop();(q=c(v,!0,q))&&f&&(q[f]=k)};Object.defineProperty(a,
"__esModule",{value:!0})})},"esri/core/lang":function(){define(["exports","./has","./typedArrayUtil"],function(a,b,c){function g(k,q){let v;if(q)for(v in k)k.hasOwnProperty(v)&&(void 0===k[v]?delete k[v]:k[v]instanceof Object&&g(k[v],!0));else for(v in k)k.hasOwnProperty(v)&&void 0===k[v]&&delete k[v];return k}function f(k){if(!k||"object"!==typeof k||"function"===typeof k)return k;if(c.isInt8Array(k)||c.isUint8Array(k)||c.isUint8ClampedArray(k)||c.isInt16Array(k)||c.isUint16Array(k)||c.isInt32Array(k)||
c.isUint32Array(k)||c.isFloat32Array(k)||c.isFloat64Array(k))return c.slice(k);if(k instanceof Date)return new Date(k.getTime());if(k instanceof ArrayBuffer)return k.slice(0,k.byteLength);if(k instanceof Map){const v=new Map;k.forEach((t,u)=>{v.set(u,f(t))});return v}if(k instanceof Set){const v=new Set;k.forEach(t=>{v.add(f(t))});return v}let q;if("function"===typeof k.clone)q=k.clone();else if("function"===typeof k.map&&"function"===typeof k.forEach)q=k.map(f);else if("function"===typeof k.notifyChange&&
"function"===typeof k.watch)q=k.clone();else{q={};for(const v of Object.getOwnPropertyNames(k))q[v]=f(k[v])}return q}a.clone=f;a.equals=function(k,q){return k===q||"number"===typeof k&&isNaN(k)&&"number"===typeof q&&isNaN(q)||"function"===typeof(k||{}).getTime&&"function"===typeof(q||{}).getTime&&k.getTime()===q.getTime()||!1};a.fixJson=g;a.mixin=function(k={},...q){b("esri-deprecation-warnings")&&console.warn("[esri.core.lang] \ud83d\uded1 DEPRECATED - Function: mixin()\n\t\ud83d\udee0\ufe0f Replacement: Use Object.assign() directly\n\t\u2699\ufe0f Version: 4.19");
return Object.assign(k,...q)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/typedArrayUtil":function(){define(["exports","./maybe"],function(a,b){a.estimateSize=function(c){return b.isNone(c)?0:128+c.buffer.byteLength+64};a.forEach=function(c,g){if(c.forEach)c.forEach(g);else for(let f=0;f<c.length;f++)g(c[f],f,c)};a.isArrayBuffer=function(c){return c instanceof ArrayBuffer||c&&c.constructor&&"ArrayBuffer"===c.constructor.name};a.isFloat32Array=function(c){return c instanceof Float32Array||
c&&c.constructor&&"Float32Array"===c.constructor.name};a.isFloat64Array=function(c){return c instanceof Float64Array||c&&c.constructor&&"Float64Array"===c.constructor.name};a.isInt16Array=function(c){return c instanceof Int16Array||c&&c.constructor&&"Int16Array"===c.constructor.name};a.isInt32Array=function(c){return c instanceof Int32Array||c&&c.constructor&&"Int32Array"===c.constructor.name};a.isInt8Array=function(c){return c instanceof Int8Array||c&&c.constructor&&"Int8Array"===c.constructor.name};
a.isUint16Array=function(c){return c instanceof Uint16Array||c&&c.constructor&&"Uint16Array"===c.constructor.name};a.isUint32Array=function(c){return c instanceof Uint32Array||c&&c.constructor&&"Uint32Array"===c.constructor.name};a.isUint8Array=function(c){return c instanceof Uint8Array||c&&c.constructor&&"Uint8Array"===c.constructor.name};a.isUint8ClampedArray=function(c){return c instanceof Uint8ClampedArray||c&&c.constructor&&"Uint8ClampedArray"===c.constructor.name};a.slice=function(c,g,f){if(c.slice)return c.slice(g,
f);void 0===g?g=0:(0>g&&(g+=c.length),g=Math.min(c.length,Math.max(0,g)));void 0===f?f=c.length:(0>f&&(f+=c.length),f=Math.min(c.length,Math.max(0,f)));f=Math.max(0,f-g);const k=new c.constructor(f);for(let q=0;q<f;q++)k[q]=c[g+q];return k};a.toArray=function(c){const g=Array(c.length);for(let f=0;f<c.length;f++)g[f]=c[f];return g};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/maybe":function(){define(["exports"],function(a){function b(c,g,f){return null!=c?f(c):g}a.abortMaybe=function(c){null!=
c&&c.abort();return null};a.andThen=function(c,g){return null!=c?g(c):null};a.applySome=function(c,g){return null!=c?g(c):null};a.assumeNonNull=function(c){return c};a.destroyMaybe=function(c){null!=c&&c.destroy();return null};a.disposeMaybe=function(c){null!=c&&c.dispose();return null};a.filterNones=function(c){return c.filter(g=>null!=g)};a.forEachSome=function(c,g){for(const f of c)b(f,null,g)};a.get=function(c,...g){for(let f=0;f<g.length&&c;++f)c=c[g[f]];return c};a.isNone=function(c){return null==
c};a.isSome=function(c){return null!=c};a.isUndefined=function(c){return void 0===c};a.mapMany=function(c,g){const f=[];for(const k of c)f.push(b(k,null,g));return f};a.mapOr=b;a.mapSome=function(c,g){const f=[];c.forEach(k=>{k=g(k);null!=k&&f.push(k)});return f};a.mapSomeFirst=function(c,g){for(const f of c)if(c=g(f),null!=c)return c;return null};a.none=null;a.nullifyNonnullableForDispose=function(c){return null};a.releaseMaybe=function(c){null!=c&&c.release();return null};a.removeMaybe=function(c){null!=
c&&c.remove();return null};a.unwrap=function(c){return c};a.unwrapOr=function(c,g){return null!=c?c:"function"===typeof g?g():g};a.unwrapOrThrow=function(c,g){if(null==c)throw Error(g);return c};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/string":function(){define(["exports","./object"],function(a,b){function c(f){return null==f?"":f}const g=/\{([^\}]+)\}/g;a.escapeRegExpString=function(f,k){return f.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,q=>k&&-1!==k.indexOf(q)?q:`\\${q}`)};
a.numericHash=function(f){let k=0;for(let q=0;q<f.length;q++)k=(k<<5)-k+f.charCodeAt(q),k|=0;return k};a.replace=function(f,k){return f.replace(g,"object"===typeof k?(q,v)=>c(b.getDeepValue(v,k)):(q,v)=>c(k(v)))};a.stripHTML=function(f){return(new DOMParser).parseFromString(f||"","text/html").body.innerText||""};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/get":function(){define(["exports","./utils"],function(a,b){function c(q,v){q="?"===q[q.length-1]?q.slice(0,-1):
q;if(null!=v.getItemAt||Array.isArray(v)){var t=parseInt(q,10);if(!isNaN(t))return Array.isArray(v)?v[t]:v.getItemAt(t)}t=b.getProperties(v);return b.isPropertyDeclared(t,q)?t.get(q):v[q]}function g(q,v,t){if(null==q)return q;if((q=c(v[t],q))||!(t<v.length-1))return t===v.length-1?q:g(q,v,t+1)}function f(q,v,t=0){return"string"===typeof v&&-1===v.indexOf(".")?c(v,q):g(q,b.pathToArray(v),t)}function k(q,v){return f(q,v)}a.default=k;a.exists=function(q,v){return void 0!==f(v,q)};a.get=k;a.valueOf=f;
Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/utils":function(){define(["exports","../handleUtils","../lang","../maybe"],function(a,b,c,g){function f(u){return u?u.__accessor__?u.__accessor__:u.propertyInvalidated?u:null:null}function k(u,m,p){return m?Object.keys(m).reduce(function(e,l){let h=null;var n="merge";p&&(h=p.path?`${p.path}.${l}`:l,n=p.policy(h));if("replace"===n)return e[l]=m[l],e;if(void 0===e[l])return e[l]=c.clone(m[l]),e;let w=e[l];n=m[l];if(w===n)return e;
if(Array.isArray(n)||Array.isArray(e))w=w?Array.isArray(w)?e[l]=w.concat():e[l]=[w]:e[l]=[],n&&(Array.isArray(n)||(n=[n]),n.forEach(x=>{-1===w.indexOf(x)&&w.push(x)}));else if(n&&"object"===typeof n)if(p){const x=p.path;p.path=g.assumeNonNull(h);e[l]=k(w,n,p);p.path=x}else e[l]=k(w,n,null);else if(!e.hasOwnProperty(l)||m.hasOwnProperty(l))e[l]=n;return e},u||{}):u}function q(u){return Array.isArray(u)?u:u.split(".")}function v(u){return-1<u.indexOf(",")?u.split(",").map(m=>m.trim()):[u.trim()]}function t(u){if(Array.isArray(u)){const m=
[];for(const p of u)m.push(...v(p));return m}return v(u)}a.getDependsInfo=function(u,m){const p=f(u);return p?p.getDependsInfo(u,m,""):""};a.getProperties=f;a.isPropertyDeclared=function(u,m){return null!=u&&u.metadatas&&null!=u.metadatas[m]};a.merge=function(u,m,p){return p?k(u,m,{policy:p,path:""}):k(u,m,null)};a.once=function(u){let m=!1;return()=>{m||(m=!0,u())}};a.parse=function(u,m,p,e){m=t(m);return 1!==m.length?(m=m.map(l=>e(u,l,p)),b.handlesGroup(m)):e(u,m[0],p)};a.parseConditionalPath=function(u){if(-1===
u.indexOf("?"))return null;u=q(u);const m=Array(u.length);for(let p=0;p<u.length;p++){const e=u[p];m[p]="?"===e[e.length-1];m[p]&&(u[p]=e.slice(0,-1))}return{fullPath:u.join("."),conditional:m}};a.pathToArray=q;a.pathToStringOrArray=function(u){return!u||"string"===typeof u&&-1===u.indexOf(".")?u:q(u)};a.splitPath=t;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/handleUtils":function(){define(["exports","./maybe"],function(a,b){function c(g){return{remove:()=>{g&&(g(),g=void 0)}}}
a.asyncHandle=function(g,f){let k=!1,q=null;g.then(v=>{k?v.remove():q=v});return c(()=>{k=!0;b.isSome(q)?q.remove():b.isSome(f)&&(f.abort(),f=null)})};a.destroyHandle=function(g){return c(b.isSome(g)?()=>g.destroy():void 0)};a.handlesGroup=function(g){return c(()=>g.forEach(f=>b.isSome(f)&&f.remove()))};a.makeHandle=c;a.refHandle=function(g){return c(()=>{const f=g();b.isSome(f)&&f.remove()})};a.timeoutHandle=function(g,f){const k=setTimeout(g,f);return c(()=>clearTimeout(k))};Object.defineProperty(a,
"__esModule",{value:!0})})},"esri/core/accessorSupport/metadata":function(){define(["exports","../lang","../maybe","./utils"],function(a,b,c,g){function f(p){let e=p.constructor.__accessorMetadata__;var l=Object.prototype.hasOwnProperty.call(p.constructor,"__accessorMetadata__");if(!e)e=new t({}),Object.defineProperty(p.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0});else if(!l){l=Object.create(e.properties);const h=e.autoDestroy;for(const n in l)l[n]=b.clone(l[n]);
e=new t(l);e.autoDestroy=h;Object.defineProperty(p.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0})}return c.assumeNonNull(p.constructor.__accessorMetadata__)}function k(p){return f(p).properties}function q(p){return u.test(p)?"replace":"merge"}function v(p){return m.test(p)?q(p.slice(11)):"merge"}let t=function(p){this.autoDestroy=!1;this.properties=p};const u=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/,m=/^properties\./;a.ClassMetadata=
t;a.getOwnClassMetadata=f;a.getOwnPropertiesMetadata=k;a.getOwnPropertyMetadata=function(p,e){p=k(p);let l=p[e];l||(l=p[e]={});return l};a.merge=function(p,e){return g.merge(p,e,v)};a.mergeProperty=function(p,e){return g.merge(p,e,q)};a.setPropertyMetadata=function(p,e,l){k(p)[e]=l};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/Properties":function(){define("../../chunks/_rollupPluginBabelHelpers ../has ../lang ../Logger ../ObjectPool ./Property ./PropertyOrigin ./Store ./tracking ./utils".split(" "),
function(a,b,c,g,f,k,q,v,t,u){g.getLogger("esri.core.accessorSupport.Properties");b=function(){function p(l){this.host=l;this.properties=new Map;this.ctorArgs=null;this.destroyed=!1;this.lifecycle=0;this.store=new v.Store;this._origin=6;l=this.host.constructor.__accessorMetadata__;const h=l.properties;for(const n in h){const w=new k.Property(this,n,h[n]);this.properties.set(n,w)}this.metadatas=h;this._autoDestroy=l.autoDestroy}var e=p.prototype;e.initialize=function(){this.lifecycle=1};e.constructed=
function(){this.lifecycle=2};e.destroy=function(){this.destroyed=!0;if(this._autoDestroy)for(const [h,n]of this.properties){var l=this.internalGet(h);l&&l&&"function"===typeof l.destroy&&(l.destroy(),~n.flags&8&&this._internalSet(n,null));n.destroy()}else for([,l]of this.properties)l.destroy()};e.get=function(l){const h=this.properties.get(l);if(h.metadata.get)return h.getComputed();t.trackAccess(h);const n=this.store;return n.has(l)?n.get(l):h.metadata.value};e.originOf=function(l){const h=this.store.originOf(l);
return void 0===h&&(l=this.properties.get(l),void 0!==l&&l.flags&16)?"defaults":q.idToName(h)};e.has=function(l){return this.properties.has(l)?this.store.has(l):!1};e.keys=function(){return[...this.properties.keys()]};e.internalGet=function(l){const h=this.properties.get(l);if(void 0!==h)return this.store.has(l)?this.store.get(l):h.metadata.value};e.internalSet=function(l,h){l=this.properties.get(l);void 0!==l&&this._internalSet(l,h)};e.getDependsInfo=function(l,h,n){const w=this.properties.get(h);
if(void 0===w)return"";const x=new Set;var C=t.runTracked({onObservableAccessed:A=>x.add(A),onTrackingEnd:()=>{}},()=>{var A;return null==(A=w.metadata.get)?void 0:A.call(l)}),D=l.declaredClass.split(".").pop();h=`${n}${D}.${h}: ${C}\n`;if(0===x.size)return h;n+="  ";for(const A of x){if(!(A instanceof k.Property))continue;C=A.properties.host;D=A.propertyName;const B=u.getProperties(C);h=B?h+B.getDependsInfo(C,D,n):h+`${n}${D}: undefined\n`}return h};e.setAtOrigin=function(l,h,n){l=this.properties.get(l);
if(void 0!==l)return this._setAtOrigin(l,h,n)};e.isOverridden=function(l){l=this.properties.get(l);return void 0!==l&&!!(l.flags&2)};e.clearOverride=function(l){l=this.properties.get(l);void 0!==l&&l.flags&2&&(l.flags&=-3,l.notifyChange())};e.override=function(l,h){l=this.properties.get(l);if(!(void 0===l||null==h&&l.flags&8)){var n=l.metadata.cast;if(n){h=this._cast(n,h);const {valid:w,value:x}=h;m.release(h);if(!w)return;h=x}l.flags|=2;this._internalSet(l,h)}};e.set=function(l,h){l=this.properties.get(l);
if(!(void 0===l||null==h&&l.flags&8)){var n=l.metadata.cast;if(n){h=this._cast(n,h);const {valid:w,value:x}=h;m.release(h);if(!w)return;h=x}(n=l.metadata.set)?n.call(this.host,h):this._internalSet(l,h)}};e.setDefaultOrigin=function(l){this._origin=q.nameToId(l)};e.getDefaultOrigin=function(){return q.idToName(this._origin)};e.notifyChange=function(l){l=this.properties.get(l);void 0!==l&&l.notifyChange()};e.invalidate=function(l){l=this.properties.get(l);void 0!==l&&l.invalidate()};e.commit=function(l){l=
this.properties.get(l);void 0!==l&&l.commit()};e._internalSet=function(l,h){this._setAtOrigin(l,h,0!==this.lifecycle?this._origin:0)};e._setAtOrigin=function(l,h,n){const w=this.store,x=l.propertyName;w.has(x,n)&&c.equals(h,w.get(x))&&~l.flags&2&&n===w.originOf(x)||(l.invalidate(),w.set(x,h,n),l.commit(),t.initializeDependencyTracking(this.host,l))};e._cast=function(l,h){const n=m.acquire();n.valid=!0;n.value=h;l&&(n.value=l.call(this.host,h,n));return n};a._createClass(p,[{key:"initialized",get:function(){return 0!==
this.lifecycle}}]);return p}();g=function(){function p(){this.value=null;this.valid=!0}var e=p.prototype;e.acquire=function(){this.valid=!0};e.release=function(){this.value=null};return p}();const m=new f(g);return b})},"esri/core/accessorSupport/Property":function(){define(["exports","./tracking","./tracking/ObservationHandle"],function(a,b,c){let g=function(){function f(q,v,t){this.properties=q;this.propertyName=v;this.metadata=t;this._handles=this._accessed=this._observers=null;this.flags=1|(t.nonNullable?
8:0)|(t.hasOwnProperty("value")?16:0)|(void 0===t.get?32:0)|(void 0===t.dependsOn?64:0)}var k=f.prototype;k.destroy=function(){this._observers=this._accessed=null;this._clearObservationHandles()};k.getComputed=function(){b.trackAccess(this);var q=this.properties.store;const v=this.propertyName;var t=this.flags;const u=q.get(v);if(t&4||~t&1&&q.has(v))return u;this.flags|=4;const m=this.properties.host;t&64?t=b.runTracked(this,this.metadata.get,m):(b.trackExplicitDependencies(m,this),t=this.metadata.get.call(m));
q.set(v,t,1);q=q.get(v);q===u?this.flags&=-2:this.commit();this.flags&=-5;return q};k.onObservableAccessed=function(q){q!==this&&(null===this._accessed&&(this._accessed=[]),this._accessed.includes(q)||this._accessed.push(q))};k.onTrackingEnd=function(){this._clearObservationHandles();this.flags|=32;const q=this._accessed;if(null!==q){var v=this._handles;null===v&&(v=this._handles=[]);for(let t=0;t<q.length;++t)v.push(q[t].observe(this));q.length=0}};k.observe=function(q){null===this._observers&&(this._observers=
[]);this._observers.includes(q)||this._observers.push(q);return new c.ObservationHandle(this._observers,q)};k.notifyChange=function(){this.onInvalidated();this.onCommitted()};k.invalidate=function(){this.onInvalidated()};k.onInvalidated=function(){~this.flags&2&&(this.flags|=1);const q=this._observers;if(null!==q)for(let v=0;v<q.length;++v)q[v].onInvalidated()};k.commit=function(){this.flags&=-2;this.onCommitted()};k.onCommitted=function(){if(null!==this._observers){var q=this._observers.slice();
for(let v=0;v<q.length;++v)q[v].onCommitted()}};k._clearObservationHandles=function(){const q=this._handles;if(null!==q){for(let v=0;v<q.length;++v)q[v].remove();q.length=0}};return f}();a.Property=g;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/tracking":function(){define(["exports","../has","../Logger","./utils"],function(a,b,c,g){function f(w){if(void 0!==p)p.onObservableAccessed(w)}function k(w,x,C){const D=l;l=!0;p=w;m.push(w);w=null;try{w=x.call(C)}catch(A){h&&
e.error(A)}q();l=D;return w}function q(){const w=m.pop();p=0<m.length?m[m.length-1]:void 0;if(void 0!==w)w.onTrackingEnd()}function v(w,x){if(!(x.flags&32)){var C=h;h=!1;x.flags&64?k(x,x.metadata.get,w):t(w,x);h=C}}function t(w,x){x.flags&128||(x.flags|=128,k(x,()=>{var C=x.metadata.dependsOn||n;for(const D of C)if("string"===typeof D&&-1===D.indexOf("."))u(w,D,!1);else{C=g.pathToArray(D);for(let A=0,B=w;A<C.length&&null!=B&&"object"===typeof B;++A)B=u(B,C[A],A!==C.length-1)}}),x.flags&=-129)}function u(w,
x,C){x="?"===x[x.length-1]?x.slice(0,-1):x;if(null!=w.getItemAt||Array.isArray(w)){var D=parseInt(x,10);if(!isNaN(D))return Array.isArray(w)?w[D]:w.getItemAt(D)}D=g.getProperties(w);if(D=null==D?void 0:D.properties.get(x))f(D),v(w,D);return C?w[x]:void 0}let m=[],p=void 0;const e=c.getLogger("esri.core.Accessor");let l=!1,h=!1;const n=[];a.initializeDependencyTracking=v;a.resetGlobalTarget=function(){m=[]};a.runTracked=function(w,x,C){if(l)return k(w,x,C);p=w;m.push(w);w=x.call(C);q();return w};a.runTrackedNoThrow=
k;a.trackAccess=f;a.trackExplicitDependencies=t;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/tracking/ObservationHandle":function(){define(["exports","../../arrayUtils"],function(a,b){let c=function(){function g(f,k){this._observers=f;this._observer=k}g.prototype.remove=function(){b.remove(this._observers,this._observer)};return g}();a.ObservationHandle=c;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/arrayUtils":function(){define(["exports","./maybe",
"./RandomLCG"],function(a,b,c){function g(e){return e}function f(e,l=g){if(e&&0!==e.length){var h=e[0],n=l(h);for(let w=1;w<e.length;++w){const x=e[w],C=Number(l(x));C>n&&(n=C,h=x)}return h}}function k(e,l,h,n){n=n||u;var w=Math.max(0,n.last-10);for(let x=w;x<h;++x)if(e[x]===l)return n.last=x;h=Math.min(w,h);for(w=0;w<h;++w)if(e[w]===l)return n.last=w;return-1}function q(e){return e?(p.seed=e,()=>p.getFloat()):Math.random}const v=!!Array.prototype.fill;let t=function(){this.last=0};const u=new t,
m=new Set,p=new c;a.PositionHint=t;a.binaryFindClosest=function(e,l,h){if(e&&0!==e.length){var n=e.length-1,w=e[0];if(l<=h(w))return w;w=e[n];if(l>=h(w))return w;var x=0;w=0;for(var C=n;x<C;){w=x+Math.floor((C-x)/2);const A=e[w],B=h(A);if(B===l)return A;if(l<B){if(0<w){C=e[w-1];var D=h(C);if(l>D)return l-D>=B-l?A:C}C=w}else{if(w<n&&(x=e[w+1],D=h(x),l<D))return l-B>=D-l?x:A;x=w+1}}return e[w]}};a.binaryIndexOf=function(e,l,h){const n=e.length;let w=0;for(var x=n-1;w<x;){const C=w+Math.floor((x-w)/
2);l>e[C]?w=C+1:x=C}x=e[w];return h?l>=e[n-1]?-1:x===l?w:w-1:x===l?w:-1};a.constant=function(e,l){if(v)return Array(e).fill(l);const h=Array(e);for(let n=0;n<e;n++)h[n]=l;return h};a.difference=function(e,l,h){let n,w;h?(n=l.filter(x=>!e.some(C=>h(C,x))),w=e.filter(x=>!l.some(C=>h(C,x)))):(n=l.filter(x=>!e.includes(x)),w=e.filter(x=>!l.includes(x)));return{added:n,removed:w}};a.equals=function(e,l,h){if(b.isNone(e)&&b.isNone(l))return!0;if(b.isNone(e)||b.isNone(l)||e.length!==l.length)return!1;if(h)for(let n=
0;n<e.length;n++){if(!h(e[n],l[n]))return!1}else for(h=0;h<e.length;h++)if(e[h]!==l[h])return!1;return!0};a.first=function(e){if(e)return 0<e.length?e[0]:void 0};a.flatten=function(e){return e.reduce((l,h)=>l.concat(h||[]),[])};a.indexOf=k;a.intersect=function(e,l,h){return e&&l?h?e.filter(function(n){return-1<l.findIndex(function(w){return h(n,w)})}):e.filter(function(n){return-1<l.indexOf(n)}):[]};a.isArrayLike=function(e){return e&&"number"===typeof e.length};a.last=function(e){if(e){var l=e.length;
return 0<l?e[l-1]:void 0}};a.max=f;a.min=function(e,l=g){return f(e,h=>-l(h))};a.pickRandom=function(e,l,h){const n=e.length;if(l>=n)return e.slice(0);h=q(h);const w=new Set,x=[];for(;x.length<l;){const C=Math.floor(h()*n);w.has(C)||(w.add(C),x.push(e[C]))}return x};a.range=function(e,l){void 0===l&&(l=e,e=0);const h=Array(l-e);for(let n=e;n<l;n++)h[n-e]=n;return h};a.remove=function(e,l){const h=e.indexOf(l);return-1!==h?(e.splice(h,1),l):null};a.removeUnordered=function(e,l,h,n){const w=null==h?
e.length:h;n=k(e,l,w,n);if(-1!==n)return e[n]=e[w-1],null==h&&e.pop(),l};a.removeUnorderedMany=function(e,l,h=e.length,n=l.length,w,x){if(0===n||0===h)return h;m.clear();for(let C=0;C<n;++C)m.add(l[C]);w=w||u;l=Math.max(0,w.last-10);for(n=l;n<h;++n)if(m.has(e[n])&&(x&&x.push(e[n]),m.delete(e[n]),e[n]=e[h-1],--h,--n,0===m.size||0===h))return m.clear(),h;for(n=0;n<l;++n)if(m.has(e[n])&&(x&&x.push(e[n]),m.delete(e[n]),e[n]=e[h-1],--h,--n,0===m.size||0===h))return m.clear(),h;m.clear();return h};a.shuffle=
function(e,l){l=q(l);for(let h=e.length-1;0<h;h--){const n=Math.floor(l()*(h+1)),w=e[h];e[h]=e[n];e[n]=w}return e};a.splitIntoChunks=function(e,l){const h=e.length;if(0===h)return[];const n=[];for(let w=0;w<h;w+=l)n.push(e.slice(w,w+l));return n};a.unique=function(e,l){return l?e.filter((h,n,w)=>w.findIndex(l.bind(null,h))===n):e.filter((h,n,w)=>w.indexOf(h)===n)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/RandomLCG":function(){define(["../chunks/_rollupPluginBabelHelpers"],function(a){let b=
function(){function c(f=1){this._seed=f}var g=c.prototype;g.getInt=function(){return this._seed=(c._a*this._seed+c._c)%c._m};g.getFloat=function(){return this.getInt()/(c._m-1)};g.getIntRange=function(f,k){return Math.round(this.getFloatRange(f,k))};g.getFloatRange=function(f,k){k-=f;const q=this.getInt()/c._m;return f+q*k};a._createClass(c,[{key:"seed",set:function(f){this._seed=null==f?Math.random()*c._m:f}}]);return c}();b._m=2147483647;b._a=48271;b._c=0;return b})},"esri/core/accessorSupport/PropertyOrigin":function(){define(["exports",
"../maybe"],function(a,b){function c(f){switch(f){case "defaults":return 0;case "service":return 2;case "portal-item":return 3;case "web-scene":return 4;case "web-map":return 5;case "user":return 6}}function g(f){switch(f){case 0:return"defaults";case 2:return"service";case 3:return"portal-item";case 4:return"web-scene";case 5:return"web-map";case 6:return"user"}return b.assumeNonNull(void 0)}a.OriginIdNum=7;a.idToName=g;a.idToReadableName=function(f){return g(f)};a.idToWritableName=function(f){return g(f)};
a.nameToId=c;a.readableNameToId=function(f){return c(f)};a.writableNameToId=function(f){return c(f)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/Store":function(){define(["exports","../lang"],function(a,b){let c=function(){function g(){this._values=new Map}var f=g.prototype;f.clone=function(k){const q=new g;this._values.forEach((v,t)=>{k&&k.has(t)||q.set(t,b.clone(v))});return q};f.get=function(k){return this._values.get(k)};f.originOf=function(){return 6};f.keys=
function(){return[...this._values.keys()]};f.set=function(k,q){this._values.set(k,q)};f.delete=function(k){this._values.delete(k)};f.has=function(k){return this._values.has(k)};f.forEach=function(k){this._values.forEach(k)};return g}();a.Store=c;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/set":function(){define(["exports","../has","../Logger","./get"],function(a,b,c,g){function f(k,q,v){if(k&&q)if("object"===typeof q)for(var t of Object.getOwnPropertyNames(q))f(k,
t,q[t]);else-1!==q.indexOf(".")?(q=q.split("."),t=q.splice(q.length-1,1)[0],f(g.get(k,q),t,v)):k[q]=v}c.getLogger("esri.core.accessorSupport.set");a.default=f;a.set=f;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/watch":function(){define("exports ../ArrayPool ../lang ../ReentrantObjectPool ../scheduling ../SetUtils ./get ./trackingUtils ./utils".split(" "),function(a,b,c,g,f,k,q,v,t){function u(B){C.delete(B);C.add(B);D||(D=f.schedule(p))}function m(B){if(!B.removed){var {callback:r,
path:z,oldValue:E,target:F}=B,G=B.getValue();c.equals(E,G)||(B.oldValue=G,r.call(F,G,E,z,F))}}function p(){let B=10;for(;D&&B--;){D=null;const z=e(),E=x.acquire();for(const F of z){var r=F.uid;m(F);r===F.uid&&F.removed&&E.push(F)}for(const F of C)F.removed&&(E.push(F),C.delete(F));for(r=0;r<E.length;r++)w.pool.release(E[r]);x.release(E);x.release(z);A.forEach(F=>F())}}function e(){const B=x.acquire();B.length=C.size;let r=0;for(const z of C)B[r]=z,++r;C.clear();return B}function l(B,r,z){let E=t.parse(B,
r,z,(F,G,N)=>{let K,I,J=v.reactionAsync(()=>q.valueOf(F,G),(L,Q)=>{F.__accessor__.destroyed||K&&K.uid!==I?E.remove():(K||(K=w.pool.acquire(F,G,L,N,Q),I=K.uid),u(K))});return{remove:t.once(function(){J.remove();K&&(K.uid!==I||K.removed||(K.removed=!0,u(K)),K=null);E=J=null})}});return E}function h(B,r,z){const E=t.parse(B,r,z,(F,G,N)=>{let K=!1;return v.reaction(()=>q.valueOf(F,G),(I,J)=>{F.__accessor__.destroyed?E.remove():K||(K=!0,c.equals(J,I)||N.call(F,I,J,G,F),K=!1)})});return E}function n(B,
r,z,E=!1){return!B.__accessor__||B.__accessor__.destroyed?{remove(){}}:E?h(B,r,z):l(B,r,z)}let w=function(){function B(){this.uid=0;this.getValue=this.callback=this.oldValue=this.path=this.target=null;this.removed=!1;this.propertyPath=null}var r=B.prototype;r.acquire=function(z,E,F,G,N){this.target=z;this.path=E;this.oldValue=F;this.callback=G;this.getValue=N;this.propertyPath=t.pathToStringOrArray(E);this.uid=++B.uid;this.removed=!1};r.release=function(){this.target=this.path=this.propertyPath=this.callback=
this.oldValue=null;this.uid=++B.uid;this.removed=!0};return B}();w.pool=new g.ReentrantObjectPool(w);w.uid=0;const x=new b,C=new Set;let D;const A=new Set;a.afterDispatch=function(B){A.add(B);return{remove(){A.delete(B)}}};a.default=n;a.dispatch=p;a.dispatchTarget=function(B){const r=Array.from(C);for(let z=0;z<r.length;z++){const E=r[z];E.target===B&&(m(E),C.delete(E))}};a.isValueInUse=function(B){return k.someSet(C,r=>r.oldValue===B)};a.removeTarget=function(B){for(const r of C.values())r.target===
B&&(r.removed=!0)};a.watch=n;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/ReentrantObjectPool":function(){define(["exports","../chunks/_rollupPluginBabelHelpers","./maybe","./ObjectPool"],function(a,b,c,g){g=function(f){function k(){var v=f.apply(this,arguments)||this;v._set=new Set;return v}b._inheritsLoose(k,f);var q=k.prototype;q.destroy=function(){f.prototype.destroy.call(this);this._set=c.nullifyNonnullableForDispose(this._set)};q.acquire=function(...v){v=f.prototype.acquire.call(this,
...v);this._set.delete(v);return v};q.release=function(v){v&&!this._set.has(v)&&(f.prototype.release.call(this,v),this._set.add(v))};q._dispose=function(v){this._set.delete(v);f.prototype._dispose.call(this,v)};return k}(g);a.ReentrantObjectPool=g;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/scheduling":function(){define("exports ./maybe ./nextTick ./PerformanceSampler ./PooledArray ./promiseUtils ./time".split(" "),function(a,b,c,g,f,k,q){function v(){const E=performance.now();
A=null;A=0<x.length?requestAnimationFrame(v):null;D.executeFrameTasks(E)}function t(){x.forAll(E=>{E.removed&&B.push(E)});x.removeUnorderedMany(B.data,B.length);B.clear()}function u(){for(;w.length;){const E=b.assumeNonNull(w.shift());E.isActive&&E.callback()}D.willDispatch=!1}let m=function(E){this.phases=E;this.paused=!1;this.ticks=-1;this.removed=!1},p=function(){function E(F){this.callback=F;this.isActive=!0}E.prototype.remove=function(){this.isActive=!1};return E}(),e=0,l=0;const h={time:q.Milliseconds(0),
deltaTime:q.Milliseconds(0),elapsedFrameTime:q.Milliseconds(0),frameDuration:q.Milliseconds(0)},n=["prepare","preRender","render","postRender","update"],w=[],x=new f;let C=function(){function E(G){this._task=G}var F=E.prototype;F.remove=function(){this._task.removed=!0};F.pause=function(){this._task.paused=!0};F.resume=function(){this._task.paused=!1};return E}();const D={frameTasks:x,willDispatch:!1,clearFrameTasks:function(E=!1){x.forAll(F=>{F.removed=!0});E&&t()},dispatch:u,executeFrameTasks:function(E){const F=
q.Milliseconds(E-e);e=E;const G=0<l?l:1E3/60,N=Math.max(0,F-G);for(let K=0;K<n.length;K++){const I=performance.now(),J=n[K];x.forAll(L=>{var Q;L.paused||L.removed||(0===K&&L.ticks++,L.phases[J]&&(h.time=E,h.deltaTime=0===L.ticks?q.Milliseconds(0):F,h.elapsedFrameTime=q.Milliseconds(performance.now()-E),h.frameDuration=q.Milliseconds(G-N),null==(Q=L.phases[J])?void 0:Q.call(L,h)))});r[K].record(performance.now()-I)}t();z.record(performance.now()-E)}};let A=null;const B=new f,r=n.map(E=>new g(E)),z=
new g("total");a.FrameTaskHandle=C;a.addFrameTask=function(E){E=new m(E);x.push(E);null==A&&(e=performance.now(),A=requestAnimationFrame(v));return new C(E)};a.debug=D;a.performanceInfo=r;a.performanceTotal=z;a.schedule=function(E){E=new p(E);w.push(E);D.willDispatch||(D.willDispatch=!0,c(u));return E};a.setFrameDuration=function(E){l=Math.max(0,E)};a.waitTicks=function(E=1,F){const G=k.createResolver(),N=()=>{k.isAborted(F)?G.reject(k.createAbortError()):0===E?G():(--E,c(()=>N()))};N();return G.promise};
Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/nextTick":function(){define(["./global"],function(a){function b(k){g.push(k);1===g.length&&c(()=>{for(var q of f)q();q=g.slice();g.length=0;for(const v of q)v()})}const c=function(){return a.queueMicrotask?a.queueMicrotask:k=>{a.Promise.resolve().then(k)}}(),g=[];let f=[];(function(k){k.before=function(q){f.push(q);return{remove(){f=f.filter(v=>v!==q)}}}})(b||(b={}));return b})},"esri/core/PerformanceSampler":function(){define(["../chunks/_rollupPluginBabelHelpers"],
function(a){return function(){function b(c,g=29){this.name=c;this._counter=0;this._items=Array(g)}b.prototype.record=function(c){this._items[++this._counter%this._items.length]=c};a._createClass(b,[{key:"median",get:function(){return this._items.slice().sort()[Math.floor(this._items.length/2)]}},{key:"average",get:function(){return this._items.reduce((c,g)=>c+g,0)/this._items.length}},{key:"last",get:function(){return this._items[this._counter%this._items.length]}}]);return b}()})},"esri/core/PooledArray":function(){define(["../chunks/_rollupPluginBabelHelpers",
"./arrayUtils","./HeapSort"],function(a,b,c){function g(f){f.data.length>1.5*f.length&&(f.data.length=Math.floor(1.1*f.length))}return function(){function f(q){this.data=[];this._length=0;this._allocator=void 0;this._deallocator=()=>null;this._shrink=()=>{};this._hint=new b.PositionHint;q&&(q.initialSize&&(this.data=Array(q.initialSize)),q.allocator&&(this._allocator=q.allocator),void 0!==q.deallocator&&(this._deallocator=q.deallocator),q.shrink&&(this._shrink=()=>g(this)))}var k=f.prototype;k.toArray=
function(){return this.data.slice(0,this.length)};k.getItemAt=function(q){if(!(0>q||q>=this._length))return this.data[q]};k.clear=function(){this.length=0};k.prune=function(){this.clear();this.data=[]};k.push=function(q){this.data[this._length++]=q};k.pushArray=function(q,v=q.length){for(let t=0;t<v;t++)this.data[this._length++]=q[t]};k.fill=function(q,v){for(let t=0;t<v;t++)this.data[this._length++]=q};k.pushNew=function(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));
const q=this.data[this._length];++this._length;return q};k.unshift=function(q){this.data.unshift(q);this._length++;g(this)};k.pop=function(){if(0!==this.length){var q=this.data[this.length-1];--this.length;this._shrink();return q}};k.remove=function(q){const v=b.indexOf(this.data,q,this.length,this._hint);if(-1!==v)return this.data.splice(v,1),--this.length,q};k.removeUnordered=function(q){q=b.removeUnordered(this.data,q,this.length,this._hint);void 0!==q&&--this.length;this._shrink();return q};k.removeUnorderedIndex=
function(q){if(!(q>=this.length||0>q))return this.swapElements(q,this.length-1),this.pop()};k.removeUnorderedMany=function(q,v=q.length,t){this.length=b.removeUnorderedMany(this.data,q,this.length,v,this._hint,t);this._shrink()};k.front=function(){if(0!==this.length)return this.data[0]};k.back=function(){if(0!==this.length)return this.data[this.length-1]};k.swapElements=function(q,v){q>=this.length||v>=this.length||q===v||([this.data[q],this.data[v]]=[this.data[v],this.data[q]])};k.sort=function(q){c.sort(this.data,
0,this.length,q)};k.iterableSort=function(q){return c.iterableSort(this.data,0,this.length,q)};k.some=function(q,v){for(let t=0;t<this.length;++t)if(q.call(v,this.data[t],t,this.data))return!0;return!1};k.filterInPlace=function(q,v){let t=0;for(let u=0;u<this._length;++u){const m=this.data[u];q.call(v,m,u,this.data)&&(this.data[u]=this.data[t],this.data[t]=m,t++)}if(this._deallocator)for(q=t;q<this._length;q++)this.data[q]=this._deallocator(this.data[q]);this._length=t;this._shrink();return this};
k.forAll=function(q,v){const t=this.length,u=this.data;for(let m=0;m<t;++m)q.call(v,u[m],m,u)};k.map=function(q,v){const t=Array(this.length);for(let u=0;u<this.length;++u)t[u]=q.call(v,this.data[u],u,this.data);return t};k.reduce=function(q,v){for(let t=0;t<this.length;++t)v=q(v,this.data[t],t,this.data);return v};k.has=function(q){const v=this.length,t=this.data;for(let u=0;u<v;++u)if(t[u]===q)return!0;return!1};a._createClass(f,[{key:"length",get:function(){return this._length},set:function(q){if(q>
this._length)if(this._allocator)for(;this._length<q;)this.data[this._length++]=this._allocator(this.data[this._length]);else this._length=q;else{if(this._deallocator)for(let v=q;v<this._length;++v)this.data[v]=this._deallocator(this.data[v]);this._length=q;this._shrink()}}}]);return f}()})},"esri/core/HeapSort":function(){define(function(){var a;(function(b){const c=(f,k,q,v)=>{let t=k;const u=q>>>1,m=f[t-1];for(;k<=u;){k=t<<1;k<q&&0>v(f[k-1],f[k])&&++k;const p=f[k-1];if(0>=v(p,m))break;f[t-1]=p;
t=k}f[t-1]=m},g=(f,k)=>f<k?-1:f>k?1:0;b.sort=function(f,k,q,v){void 0===k&&(k=0);void 0===q&&(q=f.length);void 0===v&&(v=g);for(var t=q>>>1;t>k;t--)c(f,t,q,v);t=k+1;for(--q;q>k;q--){const u=f[k];f[k]=f[q];f[q]=u;c(f,t,q,v)}};b.iterableSort=function*(f,k,q,v){void 0===k&&(k=0);void 0===q&&(q=f.length);void 0===v&&(v=g);for(var t=q>>>1;t>k;t--)c(f,t,q,v),yield;t=k+1;for(--q;q>k;q--){const u=f[k];f[k]=f[q];f[q]=u;c(f,t,q,v);yield}}})(a||(a={}));return a})},"esri/core/promiseUtils":function(){define("exports ./clock ./Error ./events ./Logger ./maybe".split(" "),
function(a,b,c,g,f,k){function q(D){return new Promise((A,B)=>{try{D(A,B)}catch(r){Promise.resolve().then(()=>B(r))}})}function v(D="Aborted"){return new c("AbortError",D)}function t(){return new AbortController}function u(D,A="Aborted"){if(p(D))throw v(A);}function m(D){return k.isSome(D)?"aborted"in D?D:D.signal:D}function p(D){D=m(D);return k.isSome(D)&&D.aborted}function e(D,A){D=m(D);if(!k.isNone(D))if(D.aborted)A();else return g.once(D,"abort",()=>A())}function l(D){return D&&"AbortError"===
D.name}function h(){let D=null;const A=new Promise((B,r)=>{D={promise:void 0,resolve:B,reject:r}});D.promise=A;return D}function n(D){if(D){if("function"!==typeof D.forEach){const A=Object.keys(D),B=A.map(r=>D[r]);return n(B).then(r=>{const z={};A.forEach((E,F)=>z[E]=r[F]);return z})}return q(A=>{const B=[];let r=D.length;0===r&&A(B);D.forEach(z=>{const E={promise:z||Promise.resolve(z)};B.push(E);E.promise.then(F=>{E.value=F}).catch(F=>{E.error=F}).then(()=>{--r;0===r&&A(B)})})})}}function w(D,A,
B){const r=t();e(B,()=>r.abort());return new Promise((z,E)=>{let F=setTimeout(()=>{F=0;z(A)},D);e(r,()=>{F&&(clearTimeout(F),E(v()))})})}function x(D){return C(D)?D:Promise.resolve(D)}function C(D){return D&&"object"===typeof D&&"then"in D&&"function"===typeof D.then}a.after=w;a.all=function(D){return Promise.all(D)};a.always=function(D,A){return D.then(A,A)};a.create=q;a.createAbortController=t;a.createAbortError=v;a.createDeferred=h;a.createResolver=function(){let D,A;const B=new Promise((z,E)=>
{D=z;A=E}),r=z=>{D(z)};r.resolve=z=>D(z);r.reject=z=>A(z);r.timeout=(z,E)=>b["default"].setTimeout(()=>r.reject(E),z);r.promise=B;return r};a.createTask=function(D){let A=t();D=D(A.signal);let B={promise:D,finished:!1,abort:()=>{A&&(A.abort(),A=null)}};const r=()=>{B&&(B.finished=!0,B=null);A=null};D.then(r,r);return B};a.debounce=function(D,A=-1){let B,r,z,E,F=null;const G=(...N)=>{if(B){r=N;E&&E.reject(v());E=h();N=k.assumeNonNull(E.promise);if(F){var K=F;F=null;K.abort()}return N}z=E||h();E=null;
if(0<A){const J=t(),L=B=x(D(...N,J.signal));w(A).then(()=>{B===L&&(E?J.abort():F=J)})}else B=1,B=x(D(...N));N=()=>{const J=r;r=z=B=F=null;null!=J&&G(...J)};K=B;const I=z;K.then(N,N);K.then(I.resolve,I.reject);return k.assumeNonNull(I.promise)};return G};a.eachAlways=n;a.eachAlwaysValues=function(D){return n(D).then(A=>A.filter(B=>!!B.value).map(B=>B.value))};a.filter=function(D,A){const B=D.slice();return Promise.all(D.map((r,z)=>A(r,z))).then(r=>B.filter((z,E)=>r[E]))};a.ignoreAbortErrors=function(D){return D.catch(A=>
{if(!l(A))throw A;})};a.isAbortError=l;a.isAborted=p;a.isPromise=C;a.isPromiseLike=function(D){return D&&"function"===typeof D.then};a.logOnError=function(D,A=f.getLogger("esri")){return D.catch(B=>{l(B)||A.error(B)})};a.onAbort=e;a.onAbortOrThrow=function(D,A){D=m(D);if(!k.isNone(D))return u(D),g.once(D,"abort",()=>A(v()))};a.reject=function(D){return Promise.reject(D)};a.resolve=function(D){return Promise.resolve(D)};a.throwIfAbortError=function(D){if(l(D))throw D;};a.throwIfAborted=u;a.throwIfNotAbortError=
function(D){if(!l(D))throw D;};a.timeout=function(D,A,B,r){const z=B&&"abort"in B?B:null;null!=r||z||(r=B);let E=setTimeout(()=>{E=0;z&&z.abort()},A);const F=()=>{throw r||new c("promiseUtils:timeout","The wrapped promise did not resolve within "+A+" ms");};return D.then(G=>{if(0===E)throw F();clearTimeout(E);return G},G=>{clearTimeout(E);throw 0===E?F():G;})};a.when=x;a.whenOrAbort=function(D,A){const B=m(A);return k.isNone(B)?D:new Promise((r,z)=>{let E=e(A,()=>z(v()));const F=()=>E=k.removeMaybe(E);
D.then(F,F);D.then(r,z)})};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/clock":function(){define(["exports","./global"],function(a,b){function c(g){return{setTimeout:(f,k)=>{const q=g.setTimeout(f,k);return{remove:()=>g.clearTimeout(q)}}}}b=c(b);a.default=b;a.wrap=c;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/Error":function(){define(["../chunks/_rollupPluginBabelHelpers","./lang","./Logger","./Message"],function(a,b,c,g){g=function(f){function k(q,v,t){var u=
f.call(this,q,v,t)||this;return a._assertThisInitialized(u)instanceof k?u:new k(q,v,t)}a._inheritsLoose(k,f);k.prototype.toJSON=function(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(q,v)=>{if(v&&"object"===typeof v&&"function"===typeof v.toJSON)return v;try{return b.clone(v)}catch(t){return"[object]"}}))}}catch(q){throw c.getLogger("esri.core.Error").error(q),q;}return{name:this.name,message:this.message,details:this.details}};
k.fromJSON=function(q){return new k(q.name,q.message,q.details)};return k}(g);g.prototype.type="error";return g})},"esri/core/Message":function(){define(["./object"],function(a){function b(c,g){return c.replace(/\$\{([^\s:\}]*)(?::([^\s:\}]+))?\}/g,function(f,k){if(""===k)return"$";f=a.getDeepValue(k,g);f=null==f?"":f;if("undefined"===typeof f)throw Error(`could not find key "${k}" in template`);return f.toString()})}return function(){function c(g,f,k){this.name=g;this.details=k;this.message=void 0;
this instanceof c&&(this.message=f&&b(f,k)||"")}c.prototype.toString=function(){return"["+this.name+"]: "+this.message};return c}()})},"esri/core/events":function(){define(["exports"],function(a){function b(f){return f&&("function"===typeof f.on||"function"===typeof f.addEventListener)}function c(f,k,q){if(!b(f))throw new TypeError("target is not a Evented or EventTarget object");if("on"in f)return f.on(k,q);if(Array.isArray(k)){const v=k.slice();for(const t of v)f.addEventListener(t,q);return{remove(){for(const t of v)f.removeEventListener(t,
q)}}}f.addEventListener(k,q);return{remove(){f.removeEventListener(k,q)}}}const g={Win:"Meta",Scroll:"ScrollLock",Spacebar:" ",Down:"ArrowDown",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Del:"Delete",Apps:"ContextMenu",Esc:"Escape",Multiply:"*",Add:"+",Subtract:"-",Decimal:".",Divide:"/"};a.eventKey=function({key:f}){return g[f]||f};a.ieKeyNormalizationMap=g;a.isEventTarget=b;a.on=c;a.once=function(f,k,q){if(!b(f))throw new TypeError("target is not a Evented or EventTarget object");if("once"in
f)return f.once(k,q);const v=c(f,k,t=>{v.remove();q.call(f,t)});return{remove(){v.remove()}}};a.pausable=function(f,k,q){let v=!1;const t=c(f,k,u=>{v||q.call(f,u)});return{resume(){v=!1},pause(){v=!0},remove(){t.remove()}}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/time":function(){define(["exports"],function(a){a.Milliseconds=function(b){return b};a.MillisecondsFromSeconds=function(b){return 1E3*b};a.Seconds=function(b){return b};a.SecondsFromMilliseconds=function(b){return.001*
b};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/SetUtils":function(){define(["exports","./maybe"],function(a,b){a.someSet=function(c,g){for(const f of c.entries())if(g(f[0]))return!0;return!1};a.union=function(c,g){const f=new Set;b.isSome(c)&&c.forEach(k=>f.add(k));b.isSome(g)&&g.forEach(k=>f.add(k));return f};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/trackingUtils":function(){define(["exports","./tracking","./tracking/SimpleTrackingTarget"],
function(a,b,c){function g(q,v,t={runImmediately:!1}){function u(){if(m&&!e)if(f)k.includes(u)||k.unshift(u);else{var l=p;m.clear();e=f=!0;p=b.runTracked(m,q);f=e=!1;for(v(p,l);k.length;)k.pop()()}}let m=new c.SimpleTrackingTarget(u),p=null,e=!1;e=!0;p=b.runTracked(m,q);e=!1;t.runImmediately&&v(p,p);return{remove:function(){m&&(m.destroy(),p=m=null)}}}let f=!1;const k=[];a.autorun=function(q){function v(){if(t&&!u)if(f)k.includes(v)||k.unshift(v);else for(t.clear(),u=f=!0,b.runTracked(t,q),f=u=!1;k.length;)k.pop()()}
let t=new c.SimpleTrackingTarget(v),u=!1;u=!0;b.runTracked(t,q);u=!1;return{remove:function(){t&&(t.destroy(),t=null)}}};a.reaction=g;a.reactionAsync=function(q,v){function t(){if(!u)return null;u.clear();return m=b.runTracked(u,q)}let u=new c.SimpleTrackingTarget(function(){v(m,t)}),m=null;t();return{remove:function(){u&&(u.destroy(),u=null);m=null}}};a.reactionInit=function(q,v){return g(q,v,{runImmediately:!0})};a.when=function(q,v){return g(()=>q(),t=>{t&&v()},{runImmediately:!0})};Object.defineProperty(a,
"__esModule",{value:!0})})},"esri/core/accessorSupport/tracking/SimpleTrackingTarget":function(){define(["exports"],function(a){let b=function(){function c(f){this._notify=f;this._accessed=[];this._handles=[];this._invalidCount=0}var g=c.prototype;g.destroy=function(){this._accessed.length=0;this.clear()};g.onInvalidated=function(){this._invalidCount++};g.onCommitted=function(){const f=this._invalidCount;1===f?(this._invalidCount=0,this._notify()):this._invalidCount=0<f?f-1:0};g.onObservableAccessed=
function(f){this._accessed.includes(f)||this._accessed.push(f)};g.onTrackingEnd=function(){const f=this._handles,k=this._accessed;for(let q=0;q<k.length;++q)f.push(k[q].observe(this));k.length=0};g.clear=function(){const f=this._handles;for(let k=0;k<f.length;++k)f[k].remove();f.length=0};return c}();a.SimpleTrackingTarget=b;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/decorators/property":function(){define("exports ../../Logger ../ensureType ../get ../metadata ../set".split(" "),
function(a,b,c,g,f,k){function q(u){let m=0;var p=u;if(c.isLongFormType(u))return c.ensureLongFormType(u);for(;Array.isArray(p)&&1===p.length&&"string"!==typeof p[0]&&"number"!==typeof p[0];)p=p[0],m++;return c.isOneOf(p)?0===m?c.ensureOneOf(p):c.ensureNArrayTyped(c.ensureOneOf(p),m):1===m?c.ensureArray(p):1<m?c.ensureNArray(p,m):u.from?u.from:c.ensureType(u)}function v(u,m){return p=>{p=+u(p);null!=m.step&&(p=Math.round(p/m.step)*m.step);null!=m.min&&(p=Math.max(m.min,p));null!=m.max&&(p=Math.min(m.max,
p));return p}}const t=b.getLogger("esri.core.accessorSupport.decorators.property");a.ensureRange=v;a.property=function(u={}){return(m,p,e)=>{if(m===Function.prototype)throw Error(`Inappropriate use of @property() on a static field: ${m.name}.${p}. Accessor does not support static properties.`);const l=f.getOwnPropertyMetadata(m,p);e&&(e.get||e.set?(l.get=e.get||l.get,l.set=e.set||l.set):"value"in e&&("value"in u&&t.warn(`@property() will redefine the value of "${p}" on "${m.constructor.name}" already defined in the metadata`,
u),l.value=u.value=e.value));null!=u.readOnly&&(l.readOnly=u.readOnly);if(m=u.aliasOf){const h="string"===typeof m?m:m.source;m="string"===typeof m?null:!0===m.overridable;let n;l.dependsOn=[h];l.get=function(){let w=g.get(this,h);if("function"===typeof w){n||(n=h.split(".").slice(0,-1).join("."));const x=g.get(this,n);x&&(w=w.bind(x))}return w};l.readOnly||(l.set=m?function(w){void 0!==w?this._override(p,w):this._clearOverride(p)}:function(w){k.set(this,h,w)})}m=u.type;e=u.types;l.cast||(m?l.cast=
q(m):e&&(Array.isArray(e)?l.cast=c.ensureArrayTyped(c.ensureOneOfType(e[0])):l.cast=c.ensureOneOfType(e)));u.range&&(l.cast=v(l.cast,u.range));f.mergeProperty(l,u)}};a.propertyJSONMeta=function(u,m,p){u=f.getOwnPropertyMetadata(u,p);u.json||(u.json={});u=u.json;void 0!==m&&(u.origins||(u.origins={}),u.origins[m]||(u.origins[m]={}),u=u.origins[m]);return u};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/ensureType":function(){define(["exports","../has","../Logger"],
function(a,b,c){function g(K){return null==K?K:new Date(K)}function f(K){return null==K?K:!!K}function k(K){return null==K?K:K.toString()}function q(K){if(null==K)return K;K=parseFloat(K);return isNaN(K)?0:K}function v(K){return null==K?K:Math.round(parseFloat(K))}function t(K){return K&&K.constructor&&void 0!==K.constructor.__accessorMetadata__}function u(K,I){return null!=I&&K&&!(I instanceof K)}function m(K){return K&&K.Type?"function"===typeof K.Type?K.Type:K.Type.base:null}function p(K,I){var J;
(J=!I||!I.constructor)||(J=I.constructor,J=!(J&&"isCollection"in J));if(J)return e(K,I)?I:new K(I);J=m(K.prototype.itemType);const L=m(I.constructor.prototype.itemType);if(!J)return I;if(!L)return new K(I);if(J===L)return I;if(J.prototype.isPrototypeOf(L.prototype))return new K(I);e(K,I);return I}function e(K,I){return t(I)?(G.error("Accessor#set","Assigning an instance of '"+(I.declaredClass||"unknown")+"' which is not a subclass of '"+h(K)+"'"),!0):!1}function l(K,I){return null==I?I:K&&"isCollection"in
K?p(K,I):u(K,I)?e(K,I)?I:new K(I):I}function h(K){return K&&K.prototype&&K.prototype.declaredClass||"unknown"}function n(K){switch(K){case Number:return q;case N:return v;case Boolean:return f;case String:return k;case Date:return g;default:return l.bind(null,K)}}function w(K,I){const J=n(K);return 1===arguments.length?J:J(I)}function x(K,I,J){return 1===arguments.length?x.bind(null,K):I?Array.isArray(I)?I.map(L=>K(L,J)):[K(I,J)]:I}function C(K,I,J){return 0!==I&&Array.isArray(J)?J.map(L=>C(K,I-1,
L)):K(J)}function D(K,I,J){if(2===arguments.length)return D.bind(null,K,I);if(!J)return J;J=C(K,I,J);let L=I;for(var Q=J;0<L&&Array.isArray(Q);)L--,Q=Q[0];if(void 0!==Q)for(Q=0;Q<L;Q++)J=[J];return J}function A(K,I){if(2===arguments.length)return A(K).call(null,I);const J=new Set,L=K.filter(P=>"function"!==typeof P),Q=K.filter(P=>"function"===typeof P);for(const P of K)"string"!==typeof P&&"number"!==typeof P||J.add(P);let W=null,V=null;return(P,X)=>{if(null==P)return P;const U=typeof P,Z="string"===
U||"number"===U;if(Z&&(J.has(P)||Q.some(oa=>"string"===U&&oa===String||"number"===U&&oa===Number))||"object"===U&&Q.some(oa=>!u(P,oa)))return P;Z&&L.length?(W||(W=L.map(oa=>"string"===typeof oa?`'${oa}'`:`${oa}`).join(", ")),G.error("Accessor#set",`'${P}' is not a valid value for this property, only the following values are valid: ${W}`)):"object"===typeof P&&Q.length?(V||(V=Q.map(oa=>h(oa)).join(", ")),G.error("Accessor#set",`'${P}' is not a valid value for this property, value must be one of ${V}`)):
G.error("Accessor#set",`'${P}' is not a valid value for this property`);X&&(X.valid=!1);return null}}function B(K,I){if(2===arguments.length)return B(K).call(null,I);const J={},L=[],Q=[];for(const V in K.typeMap){const P=K.typeMap[V];J[V]=w(P);L.push(h(P));Q.push(V)}const W="string"===typeof K.key?V=>V[K.key]:K.key;return V=>{if(K.base&&!u(K.base,V)||null==V)return V;var P=W(V)||K.defaultKeyValue;const X=J[P];if(!X)return G.error("Accessor#set",`Invalid property value, value needs to be one of ${`'${L.join("', '")}'`}, or a plain object that can autocast (having .type = ${`'${Q.join("', '")}'`})`),
null;if(!u(K.typeMap[P],V))return V;if("string"===typeof K.key&&!t(V)){P={};for(const U in V)U!==K.key&&(P[U]=V[U]);return X(P)}return X(V)}}function r(K){switch(K.type){case "native":return w(K.value);case "array":return x(r(K.value));case "one-of":return z(K);default:return null}}function z(K){let I=null;return(J,L)=>{if(F(J,K))return J;null==I&&(I=E(K));G.error("Accessor#set",`Invalid property value, value needs to be of type ${I}`);L&&(L.valid=!1);return null}}function E(K){switch(K.type){case "native":switch(K.value){case Number:return"number";
case String:return"string";case Boolean:return"boolean";case N:return"integer";case Date:return"date";default:return h(K.value)}case "array":return`array of ${E(K.value)}`;case "one-of":return K=K.values.map(I=>E(I)),`one of ${K.slice(0,K.length-1)} or ${K[K.length-1]}`}return"unknown"}function F(K,I){if(null==K)return!0;switch(I.type){case "native":switch(I.value){case Number:case N:return"number"===typeof K;case Boolean:return"boolean"===typeof K;case String:return"string"===typeof K}return K instanceof
I.value;case "array":return Array.isArray(K)?!K.some(J=>!F(J,I.value)):!1;case "one-of":return I.values.some(J=>F(K,J))}}const G=c.getLogger("esri.core.Accessor");let N=function(){};a.Integer=N;a.default=w;a.ensureArray=function(K,I){return 1===arguments.length?x(w.bind(null,K)):x(w.bind(null,K),I)};a.ensureArrayTyped=x;a.ensureBoolean=f;a.ensureClass=l;a.ensureDate=g;a.ensureInteger=v;a.ensureLongFormType=r;a.ensureNArray=function(K,I,J){return 2===arguments.length?D(w.bind(null,K),I):D(w.bind(null,
K),I,J)};a.ensureNArrayTyped=D;a.ensureNumber=q;a.ensureOneOf=A;a.ensureOneOfType=B;a.ensureString=k;a.ensureType=w;a.isClassedType=t;a.isLongFormType=function(K){if(!(K&&"type"in K))return!1;switch(K.type){case "native":case "array":case "one-of":return!0}return!1};a.isOneOf=function(K){return Array.isArray(K)?!K.some(I=>{I=typeof I;return!("string"===I||"number"===I||"function"===I&&1<K.length)}):!1};a.requiresType=u;a.types={native(K){return{type:"native",value:K}},array(K){return{type:"array",
value:K}},oneOf(K){return{type:"one-of",values:K}}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/decorators/subclass":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../has ../extensions ../metadata ../tracking".split(" "),function(a,b,c,g,f,k){function q(m,p){return null==p.get?function(){const e=this.__accessor__.properties.get(m);if(void 0!==e){k.trackAccess(e);var l=this.__accessor__.store;return l.has(m)?l.get(m):e.metadata.value}}:function(){const e=
this.__accessor__.properties.get(m);if(void 0!==e)return e.getComputed()}}function v(m){var p=m.prototype,e=p.declaredClass;p=f.getOwnClassMetadata(p).properties;g.processClassMetadatas(p,e);e={};for(const l of Object.getOwnPropertyNames(p)){const h=p[l];e[l]={enumerable:!0,configurable:!0,get:q(l,h),set(n){const w=this.__accessor__;if(void 0===w)Object.defineProperty(this,l,{enumerable:!0,configurable:!0,writable:!0,value:n});else if(!Object.isFrozen(this)){if(w.initialized&&h.readOnly)throw new TypeError(`[accessor] cannot assign to read-only property '${l}' of ${this.declaredClass}`);
if(2===w.lifecycle&&h.constructOnly)throw new TypeError(`[accessor] cannot assign to construct-only property '${l}' of ${this.declaredClass}`);w.set(l,n)}}}}Object.defineProperties(m.prototype,e)}const t=new Set,u=new Set;a.processClass=v;a.subclass=function(m){return p=>{p.prototype.declaredClass=m;g.processPrototypeMetadatas(f.getOwnClassMetadata(p.prototype).properties,m);v(p);const e=[],l=[];for(var h=p.prototype;h;)h.hasOwnProperty("initialize")&&!t.has(h.initialize)&&(t.add(h.initialize),e.push(h.initialize)),
h.hasOwnProperty("destroy")&&!u.has(h.destroy)&&(u.add(h.destroy),l.push(h.destroy)),h=Object.getPrototypeOf(h);t.clear();u.clear();h=function(n){function w(...x){var C=n.call(this,...x)||this;if(C.constructor===w&&"function"===typeof C.postscript){e.length&&Object.defineProperty(b._assertThisInitialized(C),"initialize",{enumerable:!1,configurable:!0,value(){for(let D=e.length-1;0<=D;D--)e[D].call(this)}});if(l.length){let D=!1;Object.defineProperty(b._assertThisInitialized(C),"destroy",{enumerable:!1,
configurable:!0,value(){if(!D){D=!0;for(let A=0;A<l.length;A++)l[A].call(this)}}})}C.postscript(...x)}return C}b._inheritsLoose(w,n);return w}(p);h.__accessorMetadata__=f.getOwnClassMetadata(p.prototype);h.prototype.declaredClass=m;return h}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/extensions":function(){define(["exports","./extensions/serializableProperty"],function(a,b){const c=[b.SerializablePropertyExtension];a.instanceCreated=function(g,f){const k=Object.getOwnPropertyNames(f);
for(const q of c)q.instanceCreated&&q.instanceCreated(g,f,k)};a.processClassMetadatas=function(g,f){for(const k of c)if(k.processClassPropertyMetadata)for(const q in g)k.processClassPropertyMetadata(q,g[q],g,f)};a.processPrototypeMetadatas=function(g,f){for(const k of c)if(k.processPrototypePropertyMetadata)for(const q in g)k.processPrototypePropertyMetadata(q,g[q],g,f)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/extensions/serializableProperty":function(){define("exports ../ensureType ./serializableProperty/originAliases ./serializableProperty/reader ./serializableProperty/shorthands ./serializableProperty/writer".split(" "),
function(a,b,c,g,f,k){function q(t,u,m){let p=t&&t.json;t&&t.json&&t.json.origins&&m&&(t=t.json.origins[m.origin])&&("any"===u||u in t)&&(p=t);return p}const v={processPrototypePropertyMetadata(t,u){if(f.process(u)){c.process(u);if(u.type)if(u.type){t=0;for(var m=u.type;Array.isArray(m)&&!b.isOneOf(m);)m=m[0],t++;t={type:m,ndimArray:t}}else t=void 0;else if(u.types){t=0;for(m=u.types;Array.isArray(m);)m=m[0],t++;t={types:m,ndimArray:t}}else t=void 0;if(u.json.origins)for(const p in u.json.origins)m=
u.json.origins[p],g.create(t,m,!1),k.create(t,m);g.create(t,u.json,!0);k.create(t,u.json)}}};a.SerializablePropertyExtension=v;a.default=v;a.originSpecificPropertyDefinition=q;a.originSpecificReadPropertyDefinition=function(t,u){return q(t,"read",u)};a.originSpecificWritePropertyDefinition=function(t,u){return q(t,"write",u)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/extensions/serializableProperty/originAliases":function(){define(["exports"],function(a){a.process=
function(b){if(b.json&&b.json.origins){const c=b.json.origins;b={"web-document":["web-scene","web-map"]};for(const g in b)if(c[g]){const f=c[g];b[g].forEach(k=>{c[k]=f});delete c[g]}}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/extensions/serializableProperty/reader":function(){define("exports ../../../Logger ../../../object ../../../Warning ../../metadata ./type".split(" "),function(a,b,c,g,f,k){function q(x){var C;const D=null!=(C=x.ndimArray)?C:0;if(1<D)return m(x);
if(1===D)return p(x);if("type"in x&&e(x.type)){var A,B;C=null==(A=x.type.prototype)?void 0:null==(B=A.itemType)?void 0:B.Type;const r=p("function"===typeof C?{type:C}:{types:C});return(z,E,F)=>(z=r(z,E,F))?new x.type(z):z}return v(x)}function v(x){return"type"in x?t(x.type):n(x.types)}function t(x){return x.prototype.read?(C,D,A)=>{if(null==C)return C;D=typeof C;if("object"!==D)w.error(`Expected JSON value of type 'object' to deserialize type '${x.prototype.declaredClass}', but got '${D}'`);else return D=
new x,D.read(C,A),D}:x.fromJSON}function u(x,C,D,A){return 0!==A&&Array.isArray(C)?C.map(B=>u(x,B,D,A-1)):x(C,void 0,D)}function m(x){var C;const D=v(x),A=u.bind(null,D),B=null!=(C=x.ndimArray)?C:0;return(r,z,E)=>{if(null==r)return r;r=A(r,E,B);z=B;for(E=r;0<z&&Array.isArray(E);)z--,E=E[0];if(void 0!==E)for(E=0;E<z;E++)r=[r];return r}}function p(x){const C=v(x);return(D,A,B)=>{if(null==D)return D;if(Array.isArray(D)){A=[];for(const r of D)D=C(r,void 0,B),void 0!==D&&A.push(D);return A}B=C(D,void 0,
B);return void 0!==B?[B]:void 0}}function e(x){return k.isCollection(x)?(x=x.prototype.itemType)&&x.Type?"function"===typeof x.Type?l(x.Type):h(x.Type):!1:!1}function l(x){return Array.isArray(x)?!1:!!x&&x.prototype&&("read"in x.prototype||"fromJSON"in x||e(x))}function h(x){for(const C in x.typeMap)if(!l(x.typeMap[C]))return!1;return!0}function n(x){var C;let D=null;const A=null!=(C=x.errorContext)?C:"type";return(B,r,z)=>{if(null==B)return B;r=typeof B;if("object"!==r)w.error(`Expected JSON value of type 'object' to deserialize, but got '${r}'`);
else{if(!D){r={};for(const K in x.typeMap){var E,F;const I=x.typeMap[K];var G=f.getOwnClassMetadata(I.prototype);if("function"===typeof x.key)continue;G=G.properties[x.key];if(!G)continue;null!=(E=G.json)&&E.type&&Array.isArray(G.json.type)&&1===G.json.type.length&&"string"===typeof G.json.type[0]&&(r[G.json.type[0]]=I);G=null==(F=G.json)?void 0:F.write;if(!G||!G.writer){r[K]=I;continue}var N=G.target;N="string"===typeof N?N:x.key;const J={};G.writer(K,J,N);J[N]&&(r[J[N]]=I)}D=r}E=x.key;if("string"===
typeof E){if(F=(E=B[E])?D[E]:x.defaultKeyValue?x.typeMap[x.defaultKeyValue]:void 0)return E=new F,E.read(B,z),E;E=`Type '${E||"unknown"}' is not supported`;z&&z.messages&&B&&z.messages.push(new g(`${A}:unsupported`,E,{definition:B,context:z}));w.error(E)}}}}const w=b.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");a.create=function(x,C,D){var A,B;!x||!D&&!C.read||null!=(A=C.read)&&A.reader||!1===(null==(B=C.read)?void 0:B.enabled)||(D="types"in x?h(x.types):l(x.type),
D&&c.setDeepValue("read.reader",q(x),C))};a.createTypeReader=q;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/Warning":function(){define(["../chunks/_rollupPluginBabelHelpers","./Message"],function(a,b){b=function(c){function g(f,k,q){var v=c.call(this,f,k,q)||this;return a._assertThisInitialized(v)instanceof g?v:new g(f,k,q)}a._inheritsLoose(g,c);return g}(b);b.prototype.type="warning";return b})},"esri/core/accessorSupport/extensions/serializableProperty/type":function(){define(["exports"],
function(a){a.isCollection=function(b){return!!b&&b.prototype&&b.prototype.declaredClass&&0===b.prototype.declaredClass.indexOf("esri.core.Collection")};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/extensions/serializableProperty/shorthands":function(){define(["exports"],function(a){function b(f){f.name&&(f.read?"object"===typeof f.read?void 0===f.read.source&&(f.read.source=f.name):f.read={source:f.name}:f.read={source:f.name},f.write?"object"===typeof f.write?void 0===
f.write.target&&(f.write.target=f.name):f.write={target:f.name}:f.write={target:f.name})}function c(f){"boolean"===typeof f.read?f.read={enabled:f.read}:"function"===typeof f.read?f.read={enabled:!0,reader:f.read}:f.read&&"object"===typeof f.read&&void 0===f.read.enabled&&(f.read.enabled=!0)}function g(f){"boolean"===typeof f.write?f.write={enabled:f.write}:"function"===typeof f.write?f.write={enabled:!0,writer:f.write}:f.write&&"object"===typeof f.write&&void 0===f.write.enabled&&(f.write.enabled=
!0)}a.process=function(f){f.json||(f.json={});c(f.json);g(f.json);b(f.json);if(f.json.origins)for(const k in f.json.origins)c(f.json.origins[k]),g(f.json.origins[k]),b(f.json.origins[k]);return!0};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/extensions/serializableProperty/writer":function(){define(["exports","../../../object","./type"],function(a,b,c){function g(u,m,p,e){b.setDeepValue(p,f(u,e),m)}function f(u,m){return u&&"function"===typeof u.write?u.write({},
m):u&&"function"===typeof u.toJSON?u.toJSON():"number"===typeof u?k(u):u}function k(u){return-Infinity===u?-Number.MAX_VALUE:Infinity===u?Number.MAX_VALUE:isNaN(u)?null:u}function q(u,m,p,e){null===u?u=null:u&&"function"===typeof u.map?(u=u.map(l=>f(l,e)),"function"===typeof u.toArray&&(u=u.toArray())):u=[f(u,e)];b.setDeepValue(p,u,m)}function v(u,m,p){return 0!==p&&Array.isArray(u)?u.map(e=>v(e,m,p-1)):f(u,m)}function t(u){return function(m,p,e,l){if(null===m)m=null;else{m=v(m,l,u);l=u;for(var h=
m;0<l&&Array.isArray(h);)l--,h=h[0];if(void 0!==h)for(h=0;h<l;h++)m=[m]}b.setDeepValue(e,m,p)}}a.create=function(u,m){var p;if(m.write&&!m.write.writer&&(!1!==m.write.enabled||m.write.overridePolicy)){var e=null!=(p=null==u?void 0:u.ndimArray)?p:0;u&&(1===e||"type"in u&&c.isCollection(u.type))?m.write.writer=q:m.write.writer=1<e?t(e):g}};a.numberToJSON=k;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/tracking/SimpleObservable":function(){define(["exports","./ObservationHandle"],
function(a,b){let c=function(){function g(){this._observers=[]}var f=g.prototype;f.observe=function(k){this._observers.includes(k)||this._observers.push(k);return new b.ObservationHandle(this._observers,k)};f.notify=function(){const k=this._observers.slice();for(let q=0;q<k.length;++q){const v=k[q];v.onInvalidated();v.onCommitted()}};return g}();a.SimpleObservable=c;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/collectionUtils":function(){define(["exports","./Collection"],function(a,
b){a.castForReferenceSetter=function(c){return c};a.referenceSetter=function(c,g,f=b){g||(g=new f);if(g===c)return g;g.removeAll();c&&(Array.isArray(c)||"items"in c&&Array.isArray(c.items))?g.addMany(c):c&&g.add(c);return g};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/JSONSupport":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./accessorSupport/read ./accessorSupport/write ./accessorSupport/decorators/subclass".split(" "),function(a,
b,c,g,f,k,q){const v=t=>{t=function(u){function m(...e){return u.call(this,...e)||this}b._inheritsLoose(m,u);var p=m.prototype;p.read=function(e,l){f.read(this,e,l)};p.write=function(e={},l){return k.write(this,e,l)};p.toJSON=function(e){return this.write({},e)};m.fromJSON=function(e,l){if(e){if(e.declaredClass)throw Error("JSON object is already hydrated");var h=new this;h.read(e,l);e=h}else e=null;return e};return m}(t);t=c.__decorate([q.subclass("esri.core.JSONSupport")],t);t.prototype.toJSON.isDefaultToJSON=
!0;return t};a.JSONSupport=function(t){function u(){return t.apply(this,arguments)||this}b._inheritsLoose(u,t);return u}(v(g));a.JSONSupport=c.__decorate([q.subclass("esri.core.JSONSupport")],a.JSONSupport);a.JSONSupportMixin=v;a.isJSONSupport=function(t){return t&&"read"in t&&"write"in t&&"toJSON"in t};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/read":function(){define(["exports","./get","./utils","./extensions/serializableProperty"],function(a,b,c,g){function f(q,
v,t=k){if(v&&"object"===typeof v){var u=c.getProperties(q),m=u.metadatas,p={};for(const B of Object.getOwnPropertyNames(v)){var e=p,l=m,h=B,n=v,w=t,x=g.originSpecificReadPropertyDefinition(l[h],w);x&&(!x.read||!1!==x.read.enabled&&!x.read.source)&&(e[h]=!0);for(const r of Object.getOwnPropertyNames(l)){x=g.originSpecificReadPropertyDefinition(l[r],w);a:{var C=h;var D=n;if(x&&x.read&&!1!==x.read.enabled&&x.read.source){x=x.read.source;if("string"===typeof x){if(x===C||-1<x.indexOf(".")&&0===x.indexOf(C)&&
b.exists(x,D)){C=!0;break a}}else for(const z of x)if(z===C||-1<z.indexOf(".")&&0===z.indexOf(C)&&b.exists(z,D)){C=!0;break a}C=!1}else C=!1}C&&(e[r]=!0)}}u.setDefaultOrigin(t.origin);for(var A of Object.getOwnPropertyNames(p))l=(l=(e=g.originSpecificReadPropertyDefinition(m[A],t).read)&&e.source)&&"string"===typeof l?b.valueOf(v,l):v[A],e&&e.reader&&(l=e.reader.call(q,l,v,t)),void 0!==l&&u.set(A,l);if(!t||!t.ignoreDefaults)for(const B of Object.getOwnPropertyNames(m))p[B]||(A=q,v=B,m=u,e=t,l=(l=
g.originSpecificPropertyDefinition(m.metadatas[v],"any",e))&&l.default,void 0!==l&&(A="function"===typeof l?l.call(A,v,e):l,void 0!==A&&m.set(v,A)));u.setDefaultOrigin("user")}}const k={origin:"service"};a.default=f;a.read=f;a.readLoadable=function(q,v,t,u=k){var m;v={...u,messages:[]};t(v);null==(m=v.messages)?void 0:m.forEach(p=>{"warning"!==p.type||q.loaded?u&&u.messages&&u.messages.push(p):q.loadWarnings.push(p)})};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/write":function(){define("exports ../arrayUtils ../Error ../Logger ./PropertyOrigin ./utils ./extensions/serializableProperty".split(" "),
function(a,b,c,g,f,k,q){function v(p,e,l,h,n){var w,x;const C={};null==(w=e.write)?void 0:null==(x=w.writer)?void 0:x.call(p,h,C,l,n);return C}function t(p,e,l,h,n,w){if(!h||!h.write)return!1;var x=p.get(l);if(!n&&h.write.overridePolicy){var C=h.write.overridePolicy.call(p,x,l,w);void 0!==C&&(n=C)}n||(n=h.write);if(!n||!1===n.enabled)return!1;if((null===x&&!n.allowNull||void 0===x)&&n.isRequired)return(e=new c("web-document-write:property-required",`Missing value for required property '${l}' on '${p.declaredClass}'`,
{propertyName:l,target:p}),w)&&w.messages?w.messages.push(e):e&&!w&&m.error(e.name,e.message),!1;if(void 0===x||null===x&&!n.allowNull)return!1;C=h.default;void 0===C?x=!1:null!=h.defaultEquals?x=h.defaultEquals(x):"function"===typeof C?Array.isArray(x)?(p=C.call(p,l,w),x=b.equals(p,x)):x=!1:x=C===x;return x?!1:void 0!==h.default?!0:!n.ignoreOrigin&&w&&w.origin&&e.store.originOf(l)<f.nameToId(w.origin)?!1:!0}function u(p,e,l){if(p&&"function"===typeof p.toJSON&&(!p.toJSON.isDefaultToJSON||!p.write))return k.merge(e,
p.toJSON());const h=k.getProperties(p),n=h.metadatas;for(const C in n){const D=q.originSpecificWritePropertyDefinition(n[C],l);if(!t(p,h,C,D,void 0,l))continue;const A=p.get(C),B=v(p,D,D.write&&"string"===typeof D.write.target?D.write.target:C,A,l);if(0<Object.keys(B).length){var w,x;e=k.merge(e,B);null!=l&&null!=(w=l.resources)&&null!=(x=w.pendingOperations)&&x.length&&Promise.all(l.resources.pendingOperations).then(()=>k.merge(e,B));l&&l.writtenProperties&&l.writtenProperties.push({target:p,propName:C,
oldOrigin:f.idToReadableName(h.store.originOf(C)),newOrigin:l.origin})}}return e}const m=g.getLogger("esri.core.accessorSupport.write");a.default=u;a.willPropertyWrite=function(p,e,l,h){const n=k.getProperties(p),w=q.originSpecificWritePropertyDefinition(n.metadatas[e],h);return w?t(p,n,e,w,l,h):!1};a.write=u;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/Loadable":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Error ./Promise ./promiseUtils ./Warning ./accessorSupport/decorators/property ./accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v){const t=u=>{u=function(m){function p(...l){var h=m.call(this,...l)||this;h._loadController=null;h.loadError=null;h.loadStatus="not-loaded";h._set("loadWarnings",[]);h.addResolvingPromise(new Promise(n=>{const w=h.load.bind(a._assertThisInitialized(h));h.load=x=>{const C=new Promise((D,A)=>{const B=f.onAbortOrThrow(x,A);h.destroyed&&A(new c("load:instance-destroyed",`Instance of '${h.declaredClass||h.constructor.name}' is already destroyed`,{instance:a._assertThisInitialized(h)}));
h._promiseProps.when(D,A).finally(()=>{B&&B.remove()})});if("not-loaded"===h.loadStatus){h._set("loadStatus","loading");const D=h._loadController=f.createAbortController();w({signal:D.signal});f.onAbort(D.signal,()=>{h._promiseProps.abort()})}n();return C}}));h.when(()=>{h._set("loadStatus","loaded");h._loadController=null},n=>{h._set("loadStatus","failed");h._set("loadError",n);h._loadController=null});return h}a._inheritsLoose(p,m);var e=p.prototype;e.load=function(){return null};e.cancelLoad=function(){var l;
if(this.isFulfilled())return this;this._set("loadError",new c("load:cancelled","Cancelled"));null==(l=this._loadController)?void 0:l.abort();return this};a._createClass(p,[{key:"loaded",get:function(){return"loaded"===this.loadStatus}},{key:"loadWarnings",get:function(){return this._get("loadWarnings")}}]);return p}(u);b.__decorate([q.property({readOnly:!0})],u.prototype,"loaded",null);b.__decorate([q.property({readOnly:!0})],u.prototype,"loadError",void 0);b.__decorate([q.property()],u.prototype,
"loadStatus",void 0);b.__decorate([q.property({type:[k],readOnly:!0})],u.prototype,"loadWarnings",null);return u=b.__decorate([v.subclass("esri.core.Loadable")],u)};g=function(u){function m(){return u.apply(this,arguments)||this}a._inheritsLoose(m,u);return m}(t(g.EsriPromise));g=b.__decorate([v.subclass("esri.core.Loadable")],g);(function(u){u.LoadableMixin=t;u.isLoadable=function(m){return!(!m||!m.load)}})(g||(g={}));return g})},"esri/core/Promise":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./maybe ./promiseUtils ./accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q){let v=function(){function u(p){this.instance=p;this._resolver=k.createDeferred();this._status=0;this._resolvingPromises=[];this._resolver.promise.then(()=>{this._status=1;this._cleanUp()},()=>{this._status=2;this._cleanUp()})}var m=u.prototype;m.addResolvingPromise=function(p){this._resolvingPromises.push(p);this._tryResolve()};m.isResolved=function(){return 1===this._status};m.isRejected=function(){return 2===this._status};m.isFulfilled=function(){return 0!==this._status};
m.abort=function(){this._resolver.reject(k.createAbortError())};m.when=function(p,e){return this._resolver.promise.then(p,e)};m._cleanUp=function(){this._allPromise=this._resolvingPromises=this._allPromise=null};m._tryResolve=function(){if(!this.isFulfilled()){var p=k.createDeferred(),e=[...this._resolvingPromises,f.assumeNonNull(p.promise)],l=this._allPromise=Promise.all(e);l.then(()=>{this.isFulfilled()||this._allPromise!==l||this._resolver.resolve(this.instance)},h=>{this.isFulfilled()||this._allPromise!==
l||k.isAbortError(h)||this._resolver.reject(h)});p.resolve()}};return u}();const t=u=>{u=function(m){function p(...l){l=m.call(this,...l)||this;l._promiseProps=new v(b._assertThisInitialized(l));l.addResolvingPromise(Promise.resolve());return l}b._inheritsLoose(p,m);var e=p.prototype;e.isResolved=function(){return this._promiseProps.isResolved()};e.isRejected=function(){return this._promiseProps.isRejected()};e.isFulfilled=function(){return this._promiseProps.isFulfilled()};e.when=function(l,h){return(new Promise((n,
w)=>{this._promiseProps.when(n,w)})).then(l,h)};e.catch=function(l){return this.when(null,l)};e.addResolvingPromise=function(l){l&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in l?l.when():l)};return p}(u);return u=c.__decorate([q.subclass("esri.core.Promise")],u)};a.EsriPromise=function(u){function m(){return u.apply(this,arguments)||this}b._inheritsLoose(m,u);return m}(t(g));a.EsriPromise=c.__decorate([q.subclass("esri.core.Promise")],a.EsriPromise);
a.EsriPromiseMixin=t;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/loadAll":function(){define("exports ../chunks/_rollupPluginBabelHelpers ./asyncUtils ./Collection ./Loadable ./maybe".split(" "),function(a,b,c,g,f,k){function q(m,p){return v.apply(this,arguments)}function v(){v=b._asyncToGenerator(function*(m,p){yield m.load();return t(m,p)});return v.apply(this,arguments)}function t(m,p){return u.apply(this,arguments)}function u(){u=b._asyncToGenerator(function*(m,p){const e=[],
l=(...n)=>{for(const w of n)k.isNone(w)||(Array.isArray(w)?l(...w):g.isCollection(w)?w.forEach(x=>l(x)):f.isLoadable(w)&&e.push(w))};p(l);let h=null;yield c.map(e,function(){var n=b._asyncToGenerator(function*(w){!1!==(yield c.result("loadAll"in w&&"function"===typeof w.loadAll?w.loadAll():w.load())).ok||h||(h=w)});return function(w){return n.apply(this,arguments)}}());if(h)throw h.loadError;return m});return u.apply(this,arguments)}a.default=q;a.loadAll=q;a.loadAllChildren=t;Object.defineProperty(a,
"__esModule",{value:!0})})},"esri/core/asyncUtils":function(){define(["exports","./maybe","./promiseUtils"],function(a,b,c){a.assertResult=function(g){if(!0===g.ok)return g.value;throw g.error;};a.forEach=function(g,f,k){return c.eachAlways(g.map((q,v)=>f.apply(k,[q,v])))};a.map=function(g,f,k){return c.eachAlways(g.map((q,v)=>f.apply(k,[q,v]))).then(q=>q.map(v=>v.value))};a.result=function(g){return b.isNone(g)?c.resolve():g.then(f=>({ok:!0,value:f})).catch(f=>({ok:!1,error:f}))};a.resultOrAbort=
function(g){return g.then(f=>({ok:!0,value:f})).catch(f=>{c.throwIfAbortError(f);return{ok:!1,error:f}})};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/urlUtils":function(){define("exports ../config ./Error ./global ./Logger ./maybe".split(" "),function(a,b,c,g,f,k){function q(T){const ba={path:null,query:null},ha=new ea(T),sa=T.indexOf("?");null===ha.query?ba.path=T:(ba.path=T.substring(0,sa),ba.query=v(ha.query));ha.fragment&&(ba.hash=ha.fragment,null===ha.query&&(ba.path=ba.path.substring(0,
ba.path.length-(ha.fragment.length+1))));return ba}function v(T){var ba=T.split("\x26");T={};for(const sa of ba){if(!sa)continue;var ha=sa.indexOf("\x3d");0>ha?(ba=decodeURIComponent(sa),ha=""):(ba=decodeURIComponent(sa.slice(0,ha)),ha=decodeURIComponent(sa.slice(ha+1)));let Aa=T[ba];"string"===typeof Aa&&(Aa=T[ba]=[Aa]);Array.isArray(Aa)?Aa.push(ha):T[ba]=ha}return T}function t(T){return T&&"object"===typeof T&&"toJSON"in T&&"function"===typeof T.toJSON}function u(T,ba){return T?ba&&"function"===
typeof ba?Object.keys(T).map(ha=>encodeURIComponent(ha)+"\x3d"+encodeURIComponent(ba(ha,T[ha]))).join("\x26"):Object.keys(T).map(ha=>{const sa=T[ha];if(null==sa)return"";const Aa=encodeURIComponent(ha)+"\x3d";return(ha=ba&&ba[ha])?Aa+encodeURIComponent(ha(sa)):Array.isArray(sa)?sa.map(La=>t(La)?Aa+encodeURIComponent(JSON.stringify(La)):Aa+encodeURIComponent(La)).join("\x26"):t(sa)?Aa+encodeURIComponent(JSON.stringify(sa)):Aa+encodeURIComponent(sa)}).filter(ha=>ha).join("\x26"):""}function m(T){const ba=
T.indexOf("?");-1!==ba?(aa.path=T.slice(0,ba),aa.query=T.slice(ba+1)):(aa.path=T,aa.query=null);return aa}function p(T){T=m(T).path;T&&"/"===T[T.length-1]||(T=`${T}/`);T=L(T,!0);return T=T.toLowerCase()}function e(T){const ba=X.proxyRules;T=p(T);for(let ha=0;ha<ba.length;ha++)if(0===T.indexOf(ba[ha].urlPrefix))return ba[ha]}function l(T){T=w(T);const ba=T.indexOf("/sharing");return 0<ba?T.substring(0,ba):T.replace(/\/+$/,"")}function h(T,ba,ha=!1){T=V(T);ba=V(ba);return!ha&&T.scheme!==ba.scheme||
null==T.host||null==ba.host?!1:T.host.toLowerCase()===ba.host.toLowerCase()&&T.port===ba.port}function n(T,ba=Ba,ha){return F(T)?ha&&ha.preserveProtocolRelative?T:"http"===la.scheme&&la.authority===C(T).slice(2)?`http:${T}`:`https:${T}`:G(T)?T:k.assumeNonNull(x("/"===T[0]?Q(ba):ba,T))}function w(T){T=T.trim();T=n(T);if(/^https?:\/\//i.test(T)){const ba=m(T);T=ba.path.replace(/\/{2,}/g,"/");T=T.replace("/","//");ba.query&&(T+=`?${ba.query}`)}T=T.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2");return T=
W(T)}function x(...T){var ba=T.filter(k.isSome);if(ba&&ba.length){T=[];if(D(ba[0])){var ha=ba[0],sa=ha.indexOf("//");-1!==sa&&(T.push(ha.slice(0,sa+1)),xa.test(ba[0])&&(T[0]+="/"),ba[0]=ha.slice(sa+2))}else"/"===ba[0][0]&&T.push("");ba=ba.reduce((Aa,La)=>La?Aa.concat(La.split("/")):Aa,[]);for(ha=0;ha<ba.length;ha++)sa=ba[ha],".."===sa&&0<T.length&&".."!==T[T.length-1]?T.pop():(!sa&&ha===ba.length-1||sa&&("."!==sa||0===T.length))&&T.push(sa);return T.join("/")}}function C(T,ba=!1){if(A(T)||B(T))return null;
var ha=T.indexOf("://");if(-1===ha&&F(T))ha=2;else if(-1!==ha)ha+=3;else return null;ha=T.indexOf("/",ha);-1!==ha&&(T=T.slice(0,ha));ba&&(T=L(T,!0));return T}function D(T){return F(T)||G(T)}function A(T){return null!=T&&"blob:"===T.slice(0,5)}function B(T){return"data:"===T.slice(0,5)}function r(T){T=z(T);if(!T||!T.isBase64)return null;T=atob(T.data);const ba=new Uint8Array(T.length);for(let ha=0;ha<T.length;ha++)ba[ha]=T.charCodeAt(ha);return ba.buffer}function z(T){T=T.match(ja);if(!T)return null;
const [,ba,ha,sa]=T;return{mediaType:ba,isBase64:!!ha,data:sa}}function E(T){const ba=r(T);if(!ba)return null;T=z(T);return new Blob([ba],{type:T.mediaType})}function F(T){return null!=T&&void 0!==T&&"/"===T[0]&&"/"===T[1]}function G(T){return U.test(T)}function N(T){return oa.test(T)||"https"===la.scheme&&F(T)}function K(T){return Z.test(T)||"http"===la.scheme&&F(T)}function I(T){return F(T)?`https:${T}`:T.replace(Z,"https:")}function J(){return"https"===la.scheme}function L(T,ba=!1){if(F(T))return T.slice(2);
T=T.replace(U,"");ba&&1<T.length&&"/"===T[0]&&"/"===T[1]&&(T=T.slice(2));return T}function Q(T){var ba=T.indexOf("//");ba=T.indexOf("/",ba+2);return-1===ba?T:T.slice(0,ba)}function W(T){const ba=X.httpsDomains;if(!K(T))return T;const ha=T.indexOf("/",7);let sa;sa=-1===ha?T:T.slice(0,ha);sa=sa.toLowerCase().slice(7);if(Ea.test(sa))if(sa.endsWith(":80"))sa=sa.slice(0,-3),T=T.replace(":80","");else return T;if("http"===la.scheme&&sa===la.authority&&!fa.test(T))return T;if(J()&&sa===la.authority||ba&&
ba.some(Aa=>sa===Aa||sa.endsWith(`.${Aa}`))||J()&&!e(T))T=I(T);return T}function V(T){if("string"===typeof T)return new ea(n(T));T.scheme||(T.scheme=la.scheme);return T}const P=f.getLogger("esri.core.urlUtils"),X=b.request,U=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,Z=/^\s*http:/i,oa=/^\s*https:/i,xa=/^\s*file:/i,Ea=/:\d+$/,fa=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,ia=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,da=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/;
let ea=function(){function T(ba=""){this.uri=ba;this.port=this.host=this.password=this.user=this.fragment=this.query=this.path=this.authority=this.scheme=null;ba=k.assumeNonNull(this.uri.match(ia));this.scheme=ba[2]||(ba[1]?"":null);this.authority=ba[4]||(ba[3]?"":null);this.path=ba[5];this.query=ba[7]||(ba[6]?"":null);this.fragment=ba[9]||(ba[8]?"":null);null!=this.authority&&(ba=k.assumeNonNull(this.authority.match(da)),this.user=ba[3]||null,this.password=ba[4]||null,this.host=ba[6]||ba[7],this.port=
ba[9]||null)}T.prototype.toString=function(){return this.uri};return T}();const la=new ea(b.applicationUrl),va={},Ba=(()=>{var T=k.assumeNonNull(la.path);T=T.substring(0,T.lastIndexOf(T.split("/")[T.split("/").length-1]));return`${`${la.scheme}://${la.host}${null!=la.port?`:${la.port}`:""}`}${T}`})(),aa={path:"",query:""},ja=/^data:(.*?)(;base64)?,(.*)$/,ua=/.*?\.([^\/]*)$/,ta=/(^data:image\/svg|\.svg$)/i;a.Url=ea;a.addProxy=function(T){var ba=e(T),ha=void 0;if(ba){var sa=m(ba.proxyUrl);ha=sa.path;
sa=sa.query?v(sa.query):null}ha&&(ba=q(T),T=ha+"?"+ba.path,(ha=u({...sa,...ba.query}))&&(T=`${T}?${ha}`));return T};a.addProxyRule=function(T){T={proxyUrl:T.proxyUrl,urlPrefix:p(T.urlPrefix)};const ba=X.proxyRules,ha=T.urlPrefix;let sa=ba.length;for(let Aa=0;Aa<ba.length;Aa++){const La=ba[Aa].urlPrefix;if(0===ha.indexOf(La)){if(ha.length===La.length)return-1;sa=Aa;break}0===La.indexOf(ha)&&(sa=Aa+1)}ba.splice(sa,0,T);return sa};a.addQueryParameter=function(T,ba,ha){T=q(T);const sa=T.query||{};sa[ba]=
String(ha);return`${T.path}?${u(sa)}`};a.addQueryParameters=function(T,ba){T=q(T);const ha=T.query||{};for(const sa in ba)ha[sa]=ba[sa];return(ba=u(ha))?`${T.path}?${ba}`:T.path};a.appBaseUrl=Ba;a.appUrl=la;a.changeDomain=function(T,ba,ha){if(!(ba&&ha&&T&&D(T)))return T;const sa=T.indexOf("//");var Aa=T.indexOf("/",sa+2);const La=T.indexOf(":",sa+2);Aa=Math.min(0>Aa?T.length:Aa,0>La?T.length:La);if(T.slice(sa+2,Aa).toLowerCase()!==ba.toLowerCase())return T;ba=T.slice(0,sa+2);T=T.slice(Aa);return`${ba}${ha}${T}`};
a.dataComponents=z;a.dataToArrayBuffer=r;a.dataToBlob=E;a.downloadDataAsFile=function(T,ba){a:{var ha=document.createElement("a");if("download"in ha){var sa=null;if(g.URL&&g.URL.createObjectURL){sa=E(T);if(!sa){ha=!1;break a}sa=g.URL.createObjectURL(sa)}ha.download=ba;ha.href=sa||T;ha.style.display="none";document.body.appendChild(ha);ha.click();document.body.removeChild(ha);sa&&g.URL.revokeObjectURL(sa);ha=void 0}else ha=!1}ha||window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(E(T),
ba)};a.getFilename=function(T,ba){if(!T)return"";T=q(T).path.replace(/\/+$/,"");T=T.substring(T.lastIndexOf("/")+1);if(null==ba||!ba.length)return T;ba=new RegExp(`\.(${ba.join("|")})$`,"ig");return T.replace(ba,"")};a.getInterceptor=function(T){const ba=sa=>null==sa||sa instanceof RegExp&&sa.test(T)||"string"===typeof sa&&T.startsWith(sa),ha=X.interceptors;if(ha)for(const sa of ha)if(Array.isArray(sa.urls)){if(sa.urls.some(ba))return sa}else if(ba(sa.urls))return sa;return null};a.getOrigin=C;a.getPathExtension=
function(T){return k.isNone(T)?null:(T=T.match(ua))?T[1]:null};a.getProxyRule=e;a.getProxyUrl=function(T=!1){let ba,ha=X.proxyUrl;if("string"===typeof T){if(ba=N(T),T=e(T))ha=T.proxyUrl}else ba=!!T;if(!ha)throw P.warn("esri/config: esriConfig.request.proxyUrl is not set."),new c("urlutils:proxy-not-set","esri/config: esriConfig.request.proxyUrl is not set.");ba&&J()&&(ha=I(ha));return q(ha)};a.hasProtocol=G;a.hasSameOrigin=h;a.hasSamePortal=function(T,ba){T=l(T);ba=l(ba);return L(T)===L(ba)};a.isAbsolute=
D;a.isAppHTTPS=J;a.isBlobProtocol=A;a.isDataProtocol=B;a.isHTTPSProtocol=N;a.isProtocolRelative=F;a.isSVG=function(T){return ta.test(T)};a.isTrustedServer=function(T){if("string"===typeof T)if(D(T))T=V(T);else return!0;if(h(T,la))return!0;const ba=X.trustedServers||[];for(let sa=0;sa<ba.length;sa++){var ha=ba[sa];va[ha]||(G(ha)||F(ha)?va[ha]=[new ea(n(ha))]:va[ha]=[new ea(`http://${ha}`),new ea(`https://${ha}`)]);ha=va[ha];for(let Aa=0;Aa<ha.length;Aa++)if(h(T,ha[Aa]))return!0}return!1};a.join=x;
a.makeAbsolute=n;a.makeData=function(T){return T.isBase64?`data:${T.mediaType};base64,${T.data}`:`data:${T.mediaType},${T.data}`};a.makeRelative=function(T,ba=Ba,ha){if(!D(T))return T;var sa=w(T),Aa=sa.toLowerCase();ba=w(ba).toLowerCase().replace(/\/+$/,"");if((ha=ha?w(ha).toLowerCase().replace(/\/+$/,""):null)&&0!==ba.indexOf(ha))return T;var La=Aa.indexOf("//")+2;La=Aa.indexOf("/",La);var Ra=-1===La?Aa.length:La;for(La=-1;Aa.slice(0,Ra+1)===ba.slice(0,Ra)+"/";){La=Ra+1;if(Ra===Aa.length)break;var Za=
Aa;Ra+=1;Ra=Za.indexOf("/",Ra);Ra=-1===Ra?Za.length:Ra}if(-1===La||ha&&La<ha.length)return T;T=sa.slice(La);sa=ba.slice(La-1).replace(/[^/]+/g,"").length;if(0<sa)for(Aa=0;Aa<sa;Aa++)T=`../${T}`;else T=`./${T}`;return T};a.normalize=w;a.objectToQuery=u;a.queryToObject=v;a.removeFile=function(T){let ba=0;if(D(T)){var ha=T.indexOf("//");-1!==ha&&(ba=ha+2)}ha=T.lastIndexOf("/");return ha<ba?T:T.slice(0,ha+1)};a.removeQueryParameter=function(T,ba){const {path:ha,query:sa}=q(T);if(!sa)return T;delete sa[ba];
return(T=u(sa))?`${ha}?${T}`:ha};a.removeQueryParameters=function(T,ba){T=q(T);const ha=Object.keys(T.query||{});0<ha.length&&ba&&ba.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${ha.join(", ")}.`);return T.path};a.removeTrailingSlash=function(T){return T.replace(/\/+$/,"")};a.toHTTP=function(T){return F(T)?`http:${T}`:T.replace(oa,"http:")};a.toHTTPS=I;a.trustedServersUrlCache=va;a.urlToObject=q;Object.defineProperty(a,"__esModule",
{value:!0})})},"esri/core/jsonMap":function(){define(["exports","./object"],function(a,b){let c=function(){function g(k,q={ignoreUnknown:!1}){this.jsonToAPI=k;this.options=q;this.apiValues=[];this.jsonValues=[];this.apiToJSON=this.invertMap(k);this.apiValues=this.getKeysSorted(this.apiToJSON);this.jsonValues=this.getKeysSorted(this.jsonToAPI);this.read=v=>this.fromJSON(v);this.write=(v,t,u)=>{v=this.toJSON(v);void 0!==v&&b.setDeepValue(u,v,t)};this.write.isJSONMapWriter=!0}var f=g.prototype;f.toJSON=
function(k){return this.apiToJSON.hasOwnProperty(k)?this.apiToJSON[k]:this.options.ignoreUnknown?void 0:k};f.fromJSON=function(k){return this.jsonToAPI.hasOwnProperty(k)?this.jsonToAPI[k]:this.options.ignoreUnknown?void 0:k};f.invertMap=function(k){const q={};for(const v in k)q[k[v]]=v;return q};f.getKeysSorted=function(k){const q=[];for(const v in k)q.push(v);q.sort();return q};return g}();a.JSONMap=c;a.default=c;a.strict=function(){return function(g){return new c(g,{ignoreUnknown:!0})}};Object.defineProperty(a,
"__esModule",{value:!0})})},"esri/core/accessorSupport/decorators/writer":function(){define(["exports","../../object","./property"],function(a,b,c){a.writer=function(g,f,k){let q,v;void 0===f?(v=g,q=[void 0]):"string"!==typeof f?(v=g,q=[void 0],k=f):(v=f,q=Array.isArray(g)?g:[g]);return(t,u)=>{const m=t.constructor.prototype;q.forEach(p=>{p=c.propertyJSONMeta(t,p,v);p.write&&"object"!==typeof p.write&&(p.write={});k&&b.setDeepValue("write.target",k,p);b.setDeepValue("write.writer",m[u],p)})}};Object.defineProperty(a,
"__esModule",{value:!0})})},"esri/geometry/SpatialReference":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/lang ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./support/spatialReferenceUtils".split(" "),function(a,b,c,g,f,k,q,v,t){var u;c=u=function(m){function p(l){l=m.call(this,l)||this;l.latestWkid=null;l.wkid=null;l.wkt=
null;l.vcsWkid=null;l.latestVcsWkid=null;l.imageCoordinateSystem=null;return l}a._inheritsLoose(p,m);p.fromJSON=function(l){if(!l)return null;if(l.wkid){if(102100===l.wkid)return u.WebMercator;if(4326===l.wkid)return u.WGS84}const h=new u;h.read(l);return h};var e=p.prototype;e.normalizeCtorArgs=function(l){return l&&"object"===typeof l?l:{["string"===typeof l?"wkt":"wkid"]:l}};e.writeWkt=function(l,h){this.wkid||(h.wkt=l)};e.clone=function(){if(this===u.WGS84)return u.WGS84;if(this===u.WebMercator)return u.WebMercator;
const l=new u;null!=this.wkid?(l.wkid=this.wkid,null!=this.latestWkid&&(l.latestWkid=this.latestWkid),null!=this.vcsWkid&&(l.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(l.latestVcsWkid=this.latestVcsWkid)):null!=this.wkt&&(l.wkt=this.wkt);this.imageCoordinateSystem&&(l.imageCoordinateSystem=g.clone(this.imageCoordinateSystem));return l};e.equals=function(l){if(null==l)return!1;if(this.imageCoordinateSystem||l.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==l.imageCoordinateSystem)return!1;
const {id:h,referenceServiceName:n}=l.imageCoordinateSystem,{geodataXform:w}=l.imageCoordinateSystem,x=this.imageCoordinateSystem;return null==h||w?JSON.stringify(x)===JSON.stringify(l.imageCoordinateSystem):n?x.id===h&&x.referenceServiceName===n:x.id===h}return t.equals(this,l)};e.toJSON=function(l){return this.write(void 0,l)};a._createClass(p,[{key:"isWGS84",get:function(){return t.isWGS84(this)}},{key:"isWebMercator",get:function(){return t.isWebMercator(this)}},{key:"isGeographic",get:function(){return t.isGeographic(this)}},
{key:"isWrappable",get:function(){return t.isWrappable(this)}}]);return p}(c.JSONSupport);c.GCS_NAD_1927=null;c.WGS84=null;c.WebMercator=null;b.__decorate([k.property({readOnly:!0})],c.prototype,"isWGS84",null);b.__decorate([k.property({readOnly:!0})],c.prototype,"isWebMercator",null);b.__decorate([k.property({readOnly:!0})],c.prototype,"isGeographic",null);b.__decorate([k.property({readOnly:!0})],c.prototype,"isWrappable",null);b.__decorate([k.property({type:f.Integer,json:{write:!0}})],c.prototype,
"latestWkid",void 0);b.__decorate([k.property({type:f.Integer,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null===this.wkt?!0:!1}}}}}}})],c.prototype,"wkid",void 0);b.__decorate([k.property({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null===this.wkid?!0:!1}}}}}}})],c.prototype,"wkt",void 0);b.__decorate([v.writer("wkt"),v.writer("web-scene","wkt")],c.prototype,"writeWkt",null);b.__decorate([k.property({type:f.Integer,json:{write:!0}})],
c.prototype,"vcsWkid",void 0);b.__decorate([k.property({type:f.Integer,json:{write:!0}})],c.prototype,"latestVcsWkid",void 0);b.__decorate([k.property()],c.prototype,"imageCoordinateSystem",void 0);c=u=b.__decorate([q.subclass("esri.geometry.SpatialReference")],c);c.prototype.toJSON.isDefaultToJSON=!0;c.GCS_NAD_1927=new c({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'});
c.WGS84=new c(t.WGS84);c.WebMercator=new c(t.WebMercator);Object.freeze&&(Object.freeze(c.GCS_NAD_1927),Object.freeze(c.WGS84),Object.freeze(c.WebMercator));return c})},"esri/geometry/support/spatialReferenceUtils":function(){define(["exports","../../core/maybe","../../core/string","./WKIDUnitConversion"],function(a,b,c,g){function f(h){return t(h)&&null!=h.wkid&&!0===u[h.wkid]}function k(h){return 104971===h||104905===h}function q(h){return t(h)&&null!=h.wkid&&k(h.wkid)}function v(h){return t(h)&&
null!=h.wkid&&104903===h.wkid}function t(h){return b.isSome(h)&&(null!=h.wkid&&2E3<=h.wkid||null!=h.wkt)}const u={102113:!0,102100:!0,3857:!0,3785:!0},m={102113:!0,102100:!0,3857:!0,3785:!0,4326:!0},p=[-2.0037508342788905E7,2.0037508342788905E7],e=[-2.0037508342787E7,2.0037508342787E7],l={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',
valid:p,origin:e,dx:1E-5},102100:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:p,origin:e,
dx:1E-5},3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:p,origin:e,dx:1E-5},3857:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',
valid:p,origin:e,dx:1E-5},4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',
valid:[-180,180],origin:[-180,90],dx:1E-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1E-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],
dx:1E-5}};c={wkid:4326,wkt:c.replace(l[4326].wkTemplate,{Central_Meridian:"0.0"})};a.WGS84=c;a.WebMercator={wkid:102100,latestWkid:3857};a.equals=function(h,n){return b.isNone(h)||b.isNone(n)?!1:h===n?!0:null!=h.wkid||null!=n.wkid?h.wkid===n.wkid||f(h)&&f(n)||null!=n.latestWkid&&h.wkid===n.latestWkid||null!=h.latestWkid&&n.wkid===h.latestWkid:h.wkt&&n.wkt?h.wkt.toUpperCase()===n.wkt.toUpperCase():!1};a.getInfo=function(h){return t(h)&&h.wkid?l[h.wkid]:null};a.isCGCS2000=function(h){return t(h)&&4490===
h.wkid};a.isEarth=function(h){return!(q(h)||v(h))};a.isGeographic=function(h){return t(h)?h.wkid?null==g[h.wkid]:h.wkt?!!/^\s*GEOGCS/i.test(h.wkt):!1:!1};a.isMars=q;a.isMoon=v;a.isValid=t;a.isWGS84=function(h){return t(h)&&4326===h.wkid};a.isWKIDFromMars=k;a.isWKIDFromMoon=function(h){return 104903===h};a.isWebMercator=f;a.isWrappable=function(h){return t(h)&&null!=h.wkid&&!0===m[h.wkid]};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/support/WKIDUnitConversion":function(){define(function(){let a;
const b={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.116756,5E4,15E4],units:"Meter Foot Foot_US Foot_Clarke Yard_Clarke Link_Clarke Yard_Sears Foot_Sears Chain_Sears Chain_Benoit_1895_B Yard_Indian Yard_Indian_1937 Foot_Gold_Coast Chain_Sears_1922_Truncated 50_Kilometers 150_Kilometers".split(" "),2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,
2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:13,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,
3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,
3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,
3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5048:0,5167:0,5168:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,
5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,
6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,
6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,
6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,
6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,
7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,
7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,
8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,
8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,
8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22332:0,22391:0,22392:0,22700:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,
24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25E3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,27700:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,
31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:14,102069:15,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102962:0,102963:0,
102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,
103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,
103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,
103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2};for(a=2E3;2045>=a;a++)b[a]=0;for(a=2056;2065>=a;a++)b[a]=0;for(a=2067;2135>=a;a++)b[a]=
0;for(a=2137;2154>=a;a++)b[a]=0;for(a=2161;2170>=a;a++)b[a]=0;for(a=2172;2193>=a;a++)b[a]=0;for(a=2195;2198>=a;a++)b[a]=0;for(a=2200;2203>=a;a++)b[a]=0;for(a=2205;2217>=a;a++)b[a]=0;for(a=2222;2224>=a;a++)b[a]=1;for(a=2225;2250>=a;a++)b[a]=2;for(a=2251;2253>=a;a++)b[a]=1;for(a=2257;2264>=a;a++)b[a]=2;for(a=2274;2279>=a;a++)b[a]=2;for(a=2280;2282>=a;a++)b[a]=1;for(a=2283;2289>=a;a++)b[a]=2;for(a=2290;2292>=a;a++)b[a]=0;for(a=2308;2313>=a;a++)b[a]=0;for(a=2315;2491>=a;a++)b[a]=0;for(a=2494;2866>=a;a++)b[a]=
0;for(a=2867;2869>=a;a++)b[a]=1;for(a=2870;2888>=a;a++)b[a]=2;for(a=2891;2895>=a;a++)b[a]=2;for(a=2896;2898>=a;a++)b[a]=1;for(a=2902;2908>=a;a++)b[a]=2;for(a=2915;2920>=a;a++)b[a]=2;for(a=2921;2923>=a;a++)b[a]=1;for(a=2924;2930>=a;a++)b[a]=2;for(a=2931;2962>=a;a++)b[a]=0;for(a=2964;2968>=a;a++)b[a]=2;for(a=2969;2973>=a;a++)b[a]=0;for(a=2975;2991>=a;a++)b[a]=0;for(a=2995;3051>=a;a++)b[a]=0;for(a=3054;3079>=a;a++)b[a]=0;for(a=3081;3088>=a;a++)b[a]=0;for(a=3092;3101>=a;a++)b[a]=0;for(a=3106;3138>=a;a++)b[a]=
0;for(a=3146;3151>=a;a++)b[a]=0;for(a=3153;3166>=a;a++)b[a]=0;for(a=3168;3172>=a;a++)b[a]=0;for(a=3174;3203>=a;a++)b[a]=0;for(a=3294;3358>=a;a++)b[a]=0;for(a=3367;3403>=a;a++)b[a]=0;for(a=3408;3416>=a;a++)b[a]=0;for(a=3417;3438>=a;a++)b[a]=2;for(a=3441;3446>=a;a++)b[a]=2;for(a=3447;3450>=a;a++)b[a]=0;for(a=3451;3459>=a;a++)b[a]=2;for(a=3460;3478>=a;a++)b[a]=0;for(a=3554;3559>=a;a++)b[a]=0;for(a=3560;3570>=a;a++)b[a]=2;for(a=3571;3581>=a;a++)b[a]=0;for(a=3594;3597>=a;a++)b[a]=0;for(a=3601;3604>=a;a++)b[a]=
0;for(a=3637;3639>=a;a++)b[a]=0;for(a=3665;3667>=a;a++)b[a]=0;for(a=3693;3695>=a;a++)b[a]=0;for(a=3701;3727>=a;a++)b[a]=0;for(a=3728;3739>=a;a++)b[a]=2;for(a=3740;3751>=a;a++)b[a]=0;for(a=3753;3760>=a;a++)b[a]=2;for(a=3761;3773>=a;a++)b[a]=0;for(a=3775;3777>=a;a++)b[a]=0;for(a=3779;3781>=a;a++)b[a]=0;for(a=3783;3785>=a;a++)b[a]=0;for(a=3788;3791>=a;a++)b[a]=0;for(a=3797;3802>=a;a++)b[a]=0;for(a=3814;3816>=a;a++)b[a]=0;for(a=3825;3829>=a;a++)b[a]=0;for(a=3832;3841>=a;a++)b[a]=0;for(a=3844;3852>=a;a++)b[a]=
0;for(a=3873;3885>=a;a++)b[a]=0;for(a=3890;3893>=a;a++)b[a]=0;for(a=3907;3912>=a;a++)b[a]=0;for(a=3942;3950>=a;a++)b[a]=0;for(a=3968;3970>=a;a++)b[a]=0;for(a=3973;3976>=a;a++)b[a]=0;for(a=3986;3989>=a;a++)b[a]=0;for(a=3994;3997>=a;a++)b[a]=0;for(a=4048;4051>=a;a++)b[a]=0;for(a=4056;4063>=a;a++)b[a]=0;for(a=4093;4096>=a;a++)b[a]=0;for(a=4390;4398>=a;a++)b[a]=0;for(a=4399;4413>=a;a++)b[a]=2;for(a=4418;4433>=a;a++)b[a]=2;for(a=4455;4457>=a;a++)b[a]=2;for(a=4484;4489>=a;a++)b[a]=0;for(a=4491;4554>=a;a++)b[a]=
0;for(a=4568;4589>=a;a++)b[a]=0;for(a=4652;4656>=a;a++)b[a]=0;for(a=4766;4800>=a;a++)b[a]=0;for(a=5014;5016>=a;a++)b[a]=0;for(a=5069;5072>=a;a++)b[a]=0;for(a=5105;5130>=a;a++)b[a]=0;for(a=5173;5188>=a;a++)b[a]=0;for(a=5253;5259>=a;a++)b[a]=0;for(a=5269;5275>=a;a++)b[a]=0;for(a=5292;5311>=a;a++)b[a]=0;for(a=5329;5331>=a;a++)b[a]=0;for(a=5343;5349>=a;a++)b[a]=0;for(a=5355;5357>=a;a++)b[a]=0;for(a=5387;5389>=a;a++)b[a]=0;for(a=5459;5463>=a;a++)b[a]=0;for(a=5479;5482>=a;a++)b[a]=0;for(a=5518;5520>=a;a++)b[a]=
0;for(a=5530;5539>=a;a++)b[a]=0;for(a=5550;5552>=a;a++)b[a]=0;for(a=5562;5583>=a;a++)b[a]=0;for(a=5623;5625>=a;a++)b[a]=2;for(a=5631;5639>=a;a++)b[a]=0;for(a=5649;5653>=a;a++)b[a]=0;for(a=5663;5680>=a;a++)b[a]=0;for(a=5682;5685>=a;a++)b[a]=0;for(a=5875;5877>=a;a++)b[a]=0;for(a=5896;5899>=a;a++)b[a]=0;for(a=5921;5940>=a;a++)b[a]=0;for(a=6050;6125>=a;a++)b[a]=0;for(a=6244;6275>=a;a++)b[a]=0;for(a=6328;6348>=a;a++)b[a]=0;for(a=6350;6356>=a;a++)b[a]=0;for(a=6366;6372>=a;a++)b[a]=0;for(a=6381;6387>=a;a++)b[a]=
0;for(a=6393;6404>=a;a++)b[a]=0;for(a=6480;6483>=a;a++)b[a]=0;for(a=6511;6514>=a;a++)b[a]=0;for(a=6579;6581>=a;a++)b[a]=0;for(a=6619;6624>=a;a++)b[a]=0;for(a=6625;6627>=a;a++)b[a]=2;for(a=6628;6632>=a;a++)b[a]=0;for(a=6634;6637>=a;a++)b[a]=0;for(a=6669;6692>=a;a++)b[a]=0;for(a=6707;6709>=a;a++)b[a]=0;for(a=6720;6723>=a;a++)b[a]=0;for(a=6732;6738>=a;a++)b[a]=0;for(a=6931;6933>=a;a++)b[a]=0;for(a=6956;6959>=a;a++)b[a]=0;for(a=7005;7007>=a;a++)b[a]=0;for(a=7057;7070>=a;a++)b[a]=2;for(a=7074;7082>=a;a++)b[a]=
0;for(a=7109;7118>=a;a++)b[a]=0;for(a=7119;7127>=a;a++)b[a]=1;for(a=7374;7376>=a;a++)b[a]=0;for(a=7528;7586>=a;a++)b[a]=0;for(a=7587;7645>=a;a++)b[a]=2;for(a=7692;7696>=a;a++)b[a]=0;for(a=7755;7787>=a;a++)b[a]=0;for(a=7791;7795>=a;a++)b[a]=0;for(a=7799;7801>=a;a++)b[a]=0;for(a=7803;7805>=a;a++)b[a]=0;for(a=7825;7831>=a;a++)b[a]=0;for(a=7845;7859>=a;a++)b[a]=0;for(a=8013;8032>=a;a++)b[a]=0;for(a=8065;8068>=a;a++)b[a]=1;for(a=8518;8529>=a;a++)b[a]=2;for(a=8533;8536>=a;a++)b[a]=2;for(a=8538;8540>=a;a++)b[a]=
2;for(a=8677;8679>=a;a++)b[a]=0;for(a=8836;8840>=a;a++)b[a]=0;for(a=8857;8859>=a;a++)b[a]=0;for(a=8908;8910>=a;a++)b[a]=0;for(a=9154;9159>=a;a++)b[a]=0;for(a=9205;9218>=a;a++)b[a]=0;for(a=9271;9273>=a;a++)b[a]=0;for(a=9295;9297>=a;a++)b[a]=0;for(a=9356;9360>=a;a++)b[a]=0;for(a=9404;9407>=a;a++)b[a]=0;for(a=9476;9482>=a;a++)b[a]=0;for(a=9487;9494>=a;a++)b[a]=0;for(a=9697;9699>=a;a++)b[a]=0;for(a=20002;20032>=a;a++)b[a]=0;for(a=20062;20092>=a;a++)b[a]=0;for(a=20135;20138>=a;a++)b[a]=0;for(a=20248;20258>=
a;a++)b[a]=0;for(a=20348;20358>=a;a++)b[a]=0;for(a=20436;20440>=a;a++)b[a]=0;for(a=20822;20824>=a;a++)b[a]=0;for(a=20934;20936>=a;a++)b[a]=0;for(a=21035;21037>=a;a++)b[a]=0;for(a=21095;21097>=a;a++)b[a]=0;for(a=21148;21150>=a;a++)b[a]=0;for(a=21413;21423>=a;a++)b[a]=0;for(a=21453;21463>=a;a++)b[a]=0;for(a=21473;21483>=a;a++)b[a]=0;for(a=21780;21782>=a;a++)b[a]=0;for(a=21891;21894>=a;a++)b[a]=0;for(a=21896;21899>=a;a++)b[a]=0;for(a=22171;22177>=a;a++)b[a]=0;for(a=22181;22187>=a;a++)b[a]=0;for(a=22191;22197>=
a;a++)b[a]=0;for(a=22234;22236>=a;a++)b[a]=0;for(a=22521;22525>=a;a++)b[a]=0;for(a=22991;22994>=a;a++)b[a]=0;for(a=23028;23038>=a;a++)b[a]=0;for(a=23830;23853>=a;a++)b[a]=0;for(a=23866;23872>=a;a++)b[a]=0;for(a=23877;23884>=a;a++)b[a]=0;for(a=23886;23894>=a;a++)b[a]=0;for(a=23946;23948>=a;a++)b[a]=0;for(a=24311;24313>=a;a++)b[a]=0;for(a=24342;24347>=a;a++)b[a]=0;for(a=24370;24374>=a;a++)b[a]=10;for(a=24375;24381>=a;a++)b[a]=0;for(a=24718;24721>=a;a++)b[a]=0;for(a=24817;24821>=a;a++)b[a]=0;for(a=24877;24882>=
a;a++)b[a]=0;for(a=24891;24893>=a;a++)b[a]=0;for(a=25391;25395>=a;a++)b[a]=0;for(a=25828;25838>=a;a++)b[a]=0;for(a=26191;26195>=a;a++)b[a]=0;for(a=26391;26393>=a;a++)b[a]=0;for(a=26701;26722>=a;a++)b[a]=0;for(a=26729;26799>=a;a++)b[a]=2;for(a=26801;26803>=a;a++)b[a]=2;for(a=26811;26813>=a;a++)b[a]=2;for(a=26847;26870>=a;a++)b[a]=2;for(a=26891;26899>=a;a++)b[a]=0;for(a=26901;26923>=a;a++)b[a]=0;for(a=26929;26946>=a;a++)b[a]=0;for(a=26948;26998>=a;a++)b[a]=0;for(a=27037;27040>=a;a++)b[a]=0;for(a=27205;27232>=
a;a++)b[a]=0;for(a=27258;27260>=a;a++)b[a]=0;for(a=27391;27398>=a;a++)b[a]=0;for(a=27561;27564>=a;a++)b[a]=0;for(a=27571;27574>=a;a++)b[a]=0;for(a=27581;27584>=a;a++)b[a]=0;for(a=27591;27594>=a;a++)b[a]=0;for(a=28191;28193>=a;a++)b[a]=0;for(a=28348;28358>=a;a++)b[a]=0;for(a=28402;28432>=a;a++)b[a]=0;for(a=28462;28492>=a;a++)b[a]=0;for(a=29118;29122>=a;a++)b[a]=0;for(a=29168;29172>=a;a++)b[a]=0;for(a=29177;29185>=a;a++)b[a]=0;for(a=29187;29195>=a;a++)b[a]=0;for(a=29900;29903>=a;a++)b[a]=0;for(a=30161;30179>=
a;a++)b[a]=0;for(a=30491;30494>=a;a++)b[a]=0;for(a=30729;30732>=a;a++)b[a]=0;for(a=31251;31259>=a;a++)b[a]=0;for(a=31265;31268>=a;a++)b[a]=0;for(a=31275;31279>=a;a++)b[a]=0;for(a=31281;31297>=a;a++)b[a]=0;for(a=31461;31469>=a;a++)b[a]=0;for(a=31491;31495>=a;a++)b[a]=0;for(a=31917;31922>=a;a++)b[a]=0;for(a=31965;32E3>=a;a++)b[a]=0;for(a=32001;32003>=a;a++)b[a]=2;for(a=32005;32031>=a;a++)b[a]=2;for(a=32033;32060>=a;a++)b[a]=2;for(a=32064;32067>=a;a++)b[a]=2;for(a=32074;32077>=a;a++)b[a]=2;for(a=32081;32086>=
a;a++)b[a]=0;for(a=32107;32130>=a;a++)b[a]=0;for(a=32133;32158>=a;a++)b[a]=0;for(a=32164;32167>=a;a++)b[a]=2;for(a=32180;32199>=a;a++)b[a]=0;for(a=32201;32260>=a;a++)b[a]=0;for(a=32301;32360>=a;a++)b[a]=0;for(a=32601;32662>=a;a++)b[a]=0;for(a=32664;32667>=a;a++)b[a]=2;for(a=32701;32761>=a;a++)b[a]=0;for(a=53001;53004>=a;a++)b[a]=0;for(a=53008;53019>=a;a++)b[a]=0;for(a=53021;53032>=a;a++)b[a]=0;for(a=53034;53037>=a;a++)b[a]=0;for(a=53042;53046>=a;a++)b[a]=0;for(a=53074;53080>=a;a++)b[a]=0;for(a=54001;54004>=
a;a++)b[a]=0;for(a=54008;54019>=a;a++)b[a]=0;for(a=54021;54032>=a;a++)b[a]=0;for(a=54034;54037>=a;a++)b[a]=0;for(a=54042;54046>=a;a++)b[a]=0;for(a=54048;54053>=a;a++)b[a]=0;for(a=54074;54080>=a;a++)b[a]=0;for(a=54098;54101>=a;a++)b[a]=0;for(a=102001;102040>=a;a++)b[a]=0;for(a=102042;102063>=a;a++)b[a]=0;for(a=102065;102067>=a;a++)b[a]=0;for(a=102070;102117>=a;a++)b[a]=0;for(a=102122;102216>=a;a++)b[a]=0;for(a=102221;102377>=a;a++)b[a]=0;for(a=102382;102388>=a;a++)b[a]=0;for(a=102389;102398>=a;a++)b[a]=
2;for(a=102399;102444>=a;a++)b[a]=0;for(a=102445;102447>=a;a++)b[a]=2;for(a=102448;102458>=a;a++)b[a]=0;for(a=102459;102468>=a;a++)b[a]=2;for(a=102469;102499>=a;a++)b[a]=0;for(a=102500;102519>=a;a++)b[a]=1;for(a=102520;102524>=a;a++)b[a]=0;for(a=102525;102529>=a;a++)b[a]=2;for(a=102530;102588>=a;a++)b[a]=0;for(a=102590;102598>=a;a++)b[a]=0;for(a=102601;102603>=a;a++)b[a]=0;for(a=102605;102628>=a;a++)b[a]=0;for(a=102629;102646>=a;a++)b[a]=2;for(a=102648;102700>=a;a++)b[a]=2;for(a=102701;102703>=a;a++)b[a]=
0;for(a=102707;102730>=a;a++)b[a]=2;for(a=102733;102758>=a;a++)b[a]=2;for(a=102767;102900>=a;a++)b[a]=0;for(a=102965;102969>=a;a++)b[a]=0;for(a=102971;102973>=a;a++)b[a]=0;for(a=102975;102989>=a;a++)b[a]=0;for(a=102990;102992>=a;a++)b[a]=1;for(a=102997;103002>=a;a++)b[a]=0;for(a=103003;103008>=a;a++)b[a]=2;for(a=103009;103011>=a;a++)b[a]=0;for(a=103012;103014>=a;a++)b[a]=2;for(a=103019;103021>=a;a++)b[a]=0;for(a=103022;103024>=a;a++)b[a]=2;for(a=103029;103031>=a;a++)b[a]=0;for(a=103032;103034>=a;a++)b[a]=
2;for(a=103065;103068>=a;a++)b[a]=0;for(a=103074;103076>=a;a++)b[a]=0;for(a=103077;103079>=a;a++)b[a]=1;for(a=103080;103082>=a;a++)b[a]=0;for(a=103083;103085>=a;a++)b[a]=2;for(a=103090;103093>=a;a++)b[a]=0;for(a=103097;103099>=a;a++)b[a]=0;for(a=103100;103102>=a;a++)b[a]=2;for(a=103107;103109>=a;a++)b[a]=0;for(a=103110;103112>=a;a++)b[a]=2;for(a=103113;103116>=a;a++)b[a]=0;for(a=103117;103120>=a;a++)b[a]=2;for(a=103153;103157>=a;a++)b[a]=0;for(a=103158;103162>=a;a++)b[a]=2;for(a=103163;103165>=a;a++)b[a]=
0;for(a=103166;103168>=a;a++)b[a]=1;for(a=103169;103171>=a;a++)b[a]=2;for(a=103186;103188>=a;a++)b[a]=0;for(a=103189;103191>=a;a++)b[a]=2;for(a=103192;103195>=a;a++)b[a]=0;for(a=103196;103199>=a;a++)b[a]=2;for(a=103200;103224>=a;a++)b[a]=0;for(a=103225;103227>=a;a++)b[a]=1;for(a=103232;103237>=a;a++)b[a]=0;for(a=103238;103243>=a;a++)b[a]=2;for(a=103244;103246>=a;a++)b[a]=0;for(a=103247;103249>=a;a++)b[a]=2;for(a=103254;103256>=a;a++)b[a]=0;for(a=103257;103259>=a;a++)b[a]=2;for(a=103264;103266>=a;a++)b[a]=
0;for(a=103267;103269>=a;a++)b[a]=2;for(a=103300;103375>=a;a++)b[a]=0;for(a=103381;103383>=a;a++)b[a]=0;for(a=103384;103386>=a;a++)b[a]=1;for(a=103387;103389>=a;a++)b[a]=0;for(a=103390;103392>=a;a++)b[a]=2;for(a=103397;103399>=a;a++)b[a]=0;for(a=103400;103471>=a;a++)b[a]=2;for(a=103476;103478>=a;a++)b[a]=0;for(a=103479;103481>=a;a++)b[a]=2;for(a=103486;103488>=a;a++)b[a]=0;for(a=103489;103491>=a;a++)b[a]=2;for(a=103492;103495>=a;a++)b[a]=0;for(a=103496;103499>=a;a++)b[a]=2;for(a=103528;103543>=a;a++)b[a]=
0;for(a=103544;103548>=a;a++)b[a]=2;for(a=103549;103551>=a;a++)b[a]=0;for(a=103552;103554>=a;a++)b[a]=1;for(a=103555;103557>=a;a++)b[a]=2;for(a=103558;103560>=a;a++)b[a]=0;for(a=103571;103573>=a;a++)b[a]=0;for(a=103574;103576>=a;a++)b[a]=2;for(a=103577;103580>=a;a++)b[a]=0;for(a=103581;103583>=a;a++)b[a]=2;for(a=103595;103694>=a;a++)b[a]=0;for(a=103696;103699>=a;a++)b[a]=0;for(a=103700;103793>=a;a++)b[a]=2;for(a=103794;103872>=a;a++)b[a]=0;for(a=103900;103971>=a;a++)b[a]=2;return b})},"esri/portal/Portal":function(){define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../config ../intl ../kernel ../request ../core/Error ../core/JSONSupport ../core/Loadable ../core/maybe ../core/promiseUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../geometry/Extent ./PortalQueryParams ./PortalQueryResult ./PortalUser ../intl/locale".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r,z){function E(K){return Object.freeze({__proto__:null,"default":K})}var F;let G;const N={PortalGroup:()=>new Promise(function(K,I){a(["./PortalGroup"],function(J){K(E(J))},I)}),PortalItem:()=>new Promise(function(K,I){a(["./PortalItem"],function(J){K(E(J))},I)}),PortalUser:()=>new Promise(function(K,I){a(["./PortalUser"],function(J){K(E(J))},I)})};f=F=function(K){function I(L){L=K.call(this,L)||this;L.access=null;L.allSSL=!1;L.authMode="auto";
L.authorizedCrossOriginDomains=null;L.basemapGalleryGroupQuery=null;L.bingKey=null;L.canListApps=!1;L.canListData=!1;L.canListPreProvisionedItems=!1;L.canProvisionDirectPurchase=!1;L.canSearchPublic=!0;L.canShareBingPublic=!1;L.canSharePublic=!1;L.canSignInArcGIS=!1;L.canSignInIDP=!1;L.colorSetsGroupQuery=null;L.commentsEnabled=!1;L.created=null;L.culture=null;L.customBaseUrl=null;L.defaultBasemap=null;L.defaultExtent=null;L.defaultVectorBasemap=null;L.description=null;L.eueiEnabled=null;L.featuredGroups=
null;L.featuredItemsGroupQuery=null;L.galleryTemplatesGroupQuery=null;L.livingAtlasGroupQuery=null;L.hasCategorySchema=!1;L.helperServices=null;L.homePageFeaturedContent=null;L.homePageFeaturedContentCount=null;L.httpPort=null;L.httpsPort=null;L.id=null;L.ipCntryCode=null;L.isPortal=!1;L.isReadOnly=!1;L.layerTemplatesGroupQuery=null;L.maxTokenExpirationMinutes=null;L.modified=null;L.name=null;L.portalHostname=null;L.portalMode=null;L.portalProperties=null;L.region=null;L.rotatorPanels=null;L.showHomePageDescription=
!1;L.sourceJSON=null;L.supportsHostedServices=!1;L.symbolSetsGroupQuery=null;L.templatesGroupQuery=null;L.units=null;L.url=g.portalUrl;L.urlKey=null;L.user=null;L.useStandardizedQuery=!1;L.useVectorBasemaps=!1;L.vectorBasemapGalleryGroupQuery=null;return L}b._inheritsLoose(I,K);var J=I.prototype;J.normalizeCtorArgs=function(L){return"string"===typeof L?{url:L}:L};J.destroy=function(){this._esriId_credentialCreateHandle&&(this._esriId_credentialCreateHandle.remove(),this._esriId_credentialCreateHandle=
null)};J.readAuthorizedCrossOriginDomains=function(L){if(L)for(const Q of L)-1===g.request.trustedServers.indexOf(Q)&&g.request.trustedServers.push(Q);return L};J.readDefaultBasemap=function(L){return L?(L=G.fromJSON(L),L.portalItem={portal:this},L):null};J.readDefaultVectorBasemap=function(L){return L?(L=G.fromJSON(L),L.portalItem={portal:this},L):null};J.readUrlKey=function(L){return L?L.toLowerCase():L};J.readUser=function(L){let Q=null;L&&(Q=r.fromJSON(L),Q.portal=this);return Q};J.load=function(L){const Q=
(new Promise(function(W,V){a(["../Basemap"],function(P){W(E(P))},V)})).then(({default:W})=>{p.throwIfAborted(L);G=W}).then(()=>this.sourceJSON?this.sourceJSON:this._fetchSelf(this.authMode,!1,L)).then(W=>{if(k.id){const V=k.id;this.credential=V.findCredential(this.restUrl);this.credential||this.authMode!==F.AUTH_MODE_AUTO||(this._esriId_credentialCreateHandle=V.on("credential-create",()=>{V.findCredential(this.restUrl)&&this._signIn()}))}this.sourceJSON=W;this.read(W)});this.addResolvingPromise(Q);
return Promise.resolve(this)};J.createClosestFacilityTask=function(){var L=b._asyncToGenerator(function*(){yield this.load();const Q=this._getHelperServiceUrl("closestFacility");return new (yield new Promise(function(W,V){a(["../tasks/ClosestFacilityTask"],function(P){W(E(P))},V)})).default(Q)});return function(){return L.apply(this,arguments)}}();J.createElevationLayers=function(){var L=b._asyncToGenerator(function*(){yield this.load();const Q=this._getHelperService("defaultElevationLayers"),W=(yield new Promise(function(V,
P){a(["../layers/ElevationLayer"],function(X){V(E(X))},P)})).default;return Q?Q.map(V=>new W({id:V.id,url:V.url})):[]});return function(){return L.apply(this,arguments)}}();J.createGeometryService=function(){var L=b._asyncToGenerator(function*(){yield this.load();const Q=this._getHelperServiceUrl("geometry");return new (yield new Promise(function(W,V){a(["../tasks/GeometryService"],function(P){W(E(P))},V)})).default({url:Q})});return function(){return L.apply(this,arguments)}}();J.createPrintTask=
function(){var L=b._asyncToGenerator(function*(){yield this.load();const Q=this._getHelperServiceUrl("printTask");return new (yield new Promise(function(W,V){a(["../tasks/PrintTask"],function(P){W(E(P))},V)})).default(Q)});return function(){return L.apply(this,arguments)}}();J.createRouteTask=function(){var L=b._asyncToGenerator(function*(){yield this.load();const Q=this._getHelperServiceUrl("route");return new (yield new Promise(function(W,V){a(["../tasks/RouteTask"],function(P){W(E(P))},V)})).default(Q)});
return function(){return L.apply(this,arguments)}}();J.createServiceAreaTask=function(){var L=b._asyncToGenerator(function*(){yield this.load();const Q=this._getHelperServiceUrl("serviceArea");return new (yield new Promise(function(W,V){a(["../tasks/ServiceAreaTask"],function(P){W(E(P))},V)})).default(Q)});return function(){return L.apply(this,arguments)}}();J.fetchBasemaps=function(L,Q){const W=new A;W.query=L||(this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery);
W.disableExtraQuery=!0;return this.queryGroups(W,Q).then(V=>{W.num=100;W.query='type:"Web Map" -type:"Web Application"';return V.total?(V=V.results[0],W.sortField=V.sortField||"name",W.sortOrder=V.sortOrder||"desc",V.queryItems(W,Q)):null}).then(V=>V&&V.total?V.results.filter(P=>"Web Map"===P.type).map(P=>new G({portalItem:P})):[])};J.fetchCategorySchema=function(L){return this.hasCategorySchema?this._request(this.restUrl+"/portals/self/categorySchema",L).then(Q=>Q.categorySchema):p.isAborted(L)?
Promise.reject(p.createAbortError()):Promise.resolve([])};J.fetchFeaturedGroups=function(L){const Q=this.featuredGroups,W=new A;W.num=100;W.sortField="title";if(Q&&Q.length){const V=[];for(const P of Q)V.push(`(title:"${P.title}" AND owner:${P.owner})`);W.query=V.join(" OR ");return this.queryGroups(W,L).then(P=>P.results)}return p.isAborted(L)?Promise.reject(p.createAbortError()):Promise.resolve([])};J.fetchRegions=function(L){const Q=this.user&&this.user.culture||this.culture||z.getLocale();return this._request(this.restUrl+
"/portals/regions",{...L,query:{culture:Q}})};I.getDefault=function(){if(!F._default||F._default.destroyed)F._default=new F;return F._default};J.queryGroups=function(L,Q){return this._queryPortal("/community/groups",L,"PortalGroup",Q)};J.queryItems=function(L,Q){return this._queryPortal("/search",L,"PortalItem",Q)};J.queryUsers=function(L,Q){L.sortField||(L.sortField="username");return this._queryPortal("/community/users",L,"PortalUser",Q)};J.toJSON=function(){throw new v("internal:not-yet-implemented",
"Portal.toJSON is not yet implemented");};I.fromJSON=function(L){if(!L)return null;if(L.declaredClass)throw Error("JSON object is already hydrated");return new F({sourceJSON:L})};J._getHelperService=function(L){const Q=this.helperServices&&this.helperServices[L];if(!Q)throw new v("portal:service-not-found",`The \`helperServices\` do not include an entry named "${L}"`);return Q};J._getHelperServiceUrl=function(L){const Q=this._getHelperService(L);if(!Q.url)throw new v("portal:service-url-not-found",
`The \`helperServices\` entry "${L}" does not include a \`url\` value`);return Q.url};J._fetchSelf=function(L=this.authMode,Q=!1,W){const V=this.restUrl+"/portals/self";L={authMode:L,query:{culture:z.getLocale().toLowerCase()},...W};"auto"===L.authMode&&(L.authMode="no-prompt");Q&&(L.query.default=!0);return this._request(V,L)};J._queryPortal=function(L,Q,W,V){const P=h.ensureType(A,Q),X=U=>this._request(this.restUrl+L,{...P.toRequestOptions(this),...V}).then(Z=>{const oa=P.clone();oa.start=Z.nextStart;
return new B({nextQueryParams:oa,queryParams:P,total:Z.total,results:F._resultsToTypedArray(U,{portal:this},Z,V)})}).then(Z=>Promise.all(Z.results.map(oa=>"function"===typeof oa.when?oa.when():Z)).then(()=>Z,oa=>{p.throwIfAbortError(oa);return Z}));return W&&N[W]?N[W]().then(({default:U})=>{p.throwIfAborted(V);return X(U)}):X()};J._signIn=function(){if(this.authMode===F.AUTH_MODE_ANONYMOUS)return Promise.reject(new v("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===
this.loadStatus)return Promise.reject(this.loadError);const L=Q=>Promise.resolve().then(()=>{if("not-loaded"===this.loadStatus)return Q||(this.authMode="immediate"),this.load().then(()=>null);if("loading"===this.loadStatus)return this.load().then(()=>{if(this.credential)return null;this.credential=Q;return this._fetchSelf("immediate")});if(this.user&&this.credential===Q)return null;this.credential=Q;return this._fetchSelf("immediate")}).then(W=>{W&&(this.sourceJSON=W,this.read(W))});return k.id?k.id.getCredential(this.restUrl).then(Q=>
L(Q)):L(this.credential)};J._normalizeSSL=function(L){return L.replace(/^http:/i,"https:").replace(":7080",":7443")};J._normalizeUrl=function(L){const Q=this.credential&&this.credential.token;return this._normalizeSSL(Q?L+(-1<L.indexOf("?")?"\x26":"?")+"token\x3d"+Q:L)};J._requestToTypedArray=function(L,Q,W){return this._request(L,Q).then(V=>{const P=F._resultsToTypedArray(W,{portal:this},V);return Promise.all(P.map(X=>"function"===typeof X.when?X.when():V)).then(()=>P,()=>P)})};J._request=function(L,
Q={}){const W={f:"json",...Q.query},{authMode:V=this.authMode===F.AUTH_MODE_ANONYMOUS?"anonymous":"auto",body:P=null,cacheBust:X=!1,method:U="auto",responseType:Z="json",signal:oa}=Q;Q={authMode:V,body:P,cacheBust:X,method:U,query:W,responseType:Z,timeout:0,signal:oa};return q(this._normalizeSSL(L),Q).then(xa=>xa.data)};I._resultsToTypedArray=function(L,Q,W,V){if(W){const P=m.isSome(V)?V.signal:null;W=W.listings||W.notifications||W.userInvitations||W.tags||W.items||W.groups||W.comments||W.provisions||
W.results||W.relatedItems||W;if(L||Q)W=W.map(X=>{X=Object.assign(L?L.fromJSON(X):X,Q);"function"===typeof X.load&&X.load(P);return X})}else W=[];return W};b._createClass(I,[{key:"extraQuery",get:function(){const L=!(this.user&&this.user.orgId)||this.canSearchPublic;return this.id&&!L?` AND orgid:${this.id}`:null}},{key:"isOrganization",get:function(){return!!this.access}},{key:"restUrl",get:function(){let L=this.url;if(L){const Q=L.indexOf("/sharing");L=0<Q?L.substring(0,Q):this.url.replace(/\/+$/,
"");L+="/sharing/rest"}return L}},{key:"thumbnailUrl",get:function(){const L=this.restUrl,Q=this.thumbnail;return L&&Q?this._normalizeSSL(L+"/portals/self/resources/"+Q):null}}]);return I}(t.JSONSupportMixin(u));f.AUTH_MODE_ANONYMOUS="anonymous";f.AUTH_MODE_AUTO="auto";f.AUTH_MODE_IMMEDIATE="immediate";c.__decorate([e.property()],f.prototype,"access",void 0);c.__decorate([e.property()],f.prototype,"allSSL",void 0);c.__decorate([e.property()],f.prototype,"authMode",void 0);c.__decorate([e.property()],
f.prototype,"authorizedCrossOriginDomains",void 0);c.__decorate([x.reader("authorizedCrossOriginDomains")],f.prototype,"readAuthorizedCrossOriginDomains",null);c.__decorate([e.property()],f.prototype,"basemapGalleryGroupQuery",void 0);c.__decorate([e.property()],f.prototype,"bingKey",void 0);c.__decorate([e.property()],f.prototype,"canListApps",void 0);c.__decorate([e.property()],f.prototype,"canListData",void 0);c.__decorate([e.property()],f.prototype,"canListPreProvisionedItems",void 0);c.__decorate([e.property()],
f.prototype,"canProvisionDirectPurchase",void 0);c.__decorate([e.property()],f.prototype,"canSearchPublic",void 0);c.__decorate([e.property()],f.prototype,"canShareBingPublic",void 0);c.__decorate([e.property()],f.prototype,"canSharePublic",void 0);c.__decorate([e.property()],f.prototype,"canSignInArcGIS",void 0);c.__decorate([e.property()],f.prototype,"canSignInIDP",void 0);c.__decorate([e.property()],f.prototype,"colorSetsGroupQuery",void 0);c.__decorate([e.property()],f.prototype,"commentsEnabled",
void 0);c.__decorate([e.property({type:Date})],f.prototype,"created",void 0);c.__decorate([e.property()],f.prototype,"credential",void 0);c.__decorate([e.property()],f.prototype,"culture",void 0);c.__decorate([e.property()],f.prototype,"currentVersion",void 0);c.__decorate([e.property()],f.prototype,"customBaseUrl",void 0);c.__decorate([e.property()],f.prototype,"defaultBasemap",void 0);c.__decorate([x.reader("defaultBasemap")],f.prototype,"readDefaultBasemap",null);c.__decorate([e.property({type:D})],
f.prototype,"defaultExtent",void 0);c.__decorate([e.property()],f.prototype,"defaultVectorBasemap",void 0);c.__decorate([x.reader("defaultVectorBasemap")],f.prototype,"readDefaultVectorBasemap",null);c.__decorate([e.property()],f.prototype,"description",void 0);c.__decorate([e.property()],f.prototype,"eueiEnabled",void 0);c.__decorate([e.property({readOnly:!0})],f.prototype,"extraQuery",null);c.__decorate([e.property()],f.prototype,"featuredGroups",void 0);c.__decorate([e.property()],f.prototype,
"featuredItemsGroupQuery",void 0);c.__decorate([e.property()],f.prototype,"galleryTemplatesGroupQuery",void 0);c.__decorate([e.property()],f.prototype,"livingAtlasGroupQuery",void 0);c.__decorate([e.property()],f.prototype,"hasCategorySchema",void 0);c.__decorate([e.property()],f.prototype,"helpBase",void 0);c.__decorate([e.property()],f.prototype,"helperServices",void 0);c.__decorate([e.property()],f.prototype,"helpMap",void 0);c.__decorate([e.property()],f.prototype,"homePageFeaturedContent",void 0);
c.__decorate([e.property()],f.prototype,"homePageFeaturedContentCount",void 0);c.__decorate([e.property()],f.prototype,"httpPort",void 0);c.__decorate([e.property()],f.prototype,"httpsPort",void 0);c.__decorate([e.property()],f.prototype,"id",void 0);c.__decorate([e.property()],f.prototype,"ipCntryCode",void 0);c.__decorate([e.property({readOnly:!0})],f.prototype,"isOrganization",null);c.__decorate([e.property()],f.prototype,"isPortal",void 0);c.__decorate([e.property()],f.prototype,"isReadOnly",
void 0);c.__decorate([e.property()],f.prototype,"layerTemplatesGroupQuery",void 0);c.__decorate([e.property()],f.prototype,"maxTokenExpirationMinutes",void 0);c.__decorate([e.property({type:Date})],f.prototype,"modified",void 0);c.__decorate([e.property()],f.prototype,"name",void 0);c.__decorate([e.property()],f.prototype,"portalHostname",void 0);c.__decorate([e.property()],f.prototype,"portalMode",void 0);c.__decorate([e.property()],f.prototype,"portalProperties",void 0);c.__decorate([e.property()],
f.prototype,"region",void 0);c.__decorate([e.property({readOnly:!0})],f.prototype,"restUrl",null);c.__decorate([e.property()],f.prototype,"rotatorPanels",void 0);c.__decorate([e.property()],f.prototype,"showHomePageDescription",void 0);c.__decorate([e.property()],f.prototype,"sourceJSON",void 0);c.__decorate([e.property()],f.prototype,"staticImagesUrl",void 0);c.__decorate([e.property()],f.prototype,"stylesGroupQuery",void 0);c.__decorate([e.property()],f.prototype,"supportsHostedServices",void 0);
c.__decorate([e.property()],f.prototype,"symbolSetsGroupQuery",void 0);c.__decorate([e.property()],f.prototype,"templatesGroupQuery",void 0);c.__decorate([e.property()],f.prototype,"thumbnail",void 0);c.__decorate([e.property({readOnly:!0})],f.prototype,"thumbnailUrl",null);c.__decorate([e.property()],f.prototype,"units",void 0);c.__decorate([e.property()],f.prototype,"url",void 0);c.__decorate([e.property()],f.prototype,"urlKey",void 0);c.__decorate([x.reader("urlKey")],f.prototype,"readUrlKey",
null);c.__decorate([e.property()],f.prototype,"user",void 0);c.__decorate([x.reader("user")],f.prototype,"readUser",null);c.__decorate([e.property()],f.prototype,"useStandardizedQuery",void 0);c.__decorate([e.property()],f.prototype,"useVectorBasemaps",void 0);c.__decorate([e.property()],f.prototype,"vectorBasemapGalleryGroupQuery",void 0);return f=F=c.__decorate([C.subclass("esri.portal.Portal")],f)})},"esri/intl":function(){define("exports ./intl/date ./intl/number ./intl/substitute ./intl/locale ./intl/messages ./intl/t9n ./assets".split(" "),
function(a,b,c,g,f,k,q,v){k.registerMessageBundleLoader(q.createJSONLoader({pattern:"esri/",location:v.getAssetUrl}));a.convertDateFormatToIntlOptions=b.convertDateFormatToIntlOptions;a.formatDate=b.formatDate;a.convertNumberFormatToIntlOptions=c.convertNumberFormatToIntlOptions;a.formatNumber=c.formatNumber;a.substitute=g.substitute;a.getLocale=f.getLocale;a.onLocaleChange=f.onLocaleChange;a.prefersRTL=f.prefersRTL;a.setLocale=f.setLocale;a.fetchMessageBundle=k.fetchMessageBundle;a.normalizeMessageBundleLocale=
k.normalizeMessageBundleLocale;a.registerMessageBundleLoader=k.registerMessageBundleLoader;a.createJSONLoader=q.createJSONLoader;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/intl/date":function(){define(["exports","../core/jsonMap","./locale"],function(a,b,c){function g(h){h=h||l;if(!e.has(h)){var n=c.getLocale();n=p[c.getLocale()]||n;e.set(h,new Intl.DateTimeFormat(n,h))}return e.get(h)}var f={year:"numeric",month:"numeric",day:"numeric"},k={year:"numeric",month:"long",day:"numeric"},
q={year:"numeric",month:"short",day:"numeric"};const v={year:"numeric",month:"long",weekday:"long",day:"numeric"},t={hour:"numeric",minute:"numeric"},u={...t,second:"numeric"},m={"short-date":f,"short-date-short-time":{...f,...t},"short-date-short-time-24":{...f,...t,hour12:!1},"short-date-long-time":{...f,...u},"short-date-long-time-24":{...f,...u,hour12:!1},"short-date-le":f,"short-date-le-short-time":{...f,...t},"short-date-le-short-time-24":{...f,...t,hour12:!1},"short-date-le-long-time":{...f,
...u},"short-date-le-long-time-24":{...f,...u,hour12:!1},"long-month-day-year":k,"long-month-day-year-short-time":{...k,...t},"long-month-day-year-short-time-24":{...k,...t,hour12:!1},"long-month-day-year-long-time":{...k,...u},"long-month-day-year-long-time-24":{...k,...u,hour12:!1},"day-short-month-year":q,"day-short-month-year-short-time":{...q,...t},"day-short-month-year-short-time-24":{...q,...t,hour12:!1},"day-short-month-year-long-time":{...q,...u},"day-short-month-year-long-time-24":{...q,
...u,hour12:!1},"long-date":v,"long-date-short-time":{...v,...t},"long-date-short-time-24":{...v,...t,hour12:!1},"long-date-long-time":{...v,...u},"long-date-long-time-24":{...v,...u,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":t,"long-time":u};b=b.strict()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",
shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",
dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",
shortMonthYear:"short-month-year",year:"year"});f=b.apiValues;k=b.toJSON.bind(b);q=b.fromJSON.bind(b);const p={ar:"ar-u-nu-latn-ca-gregory"};let e=new WeakMap,l=m["short-date-short-time"];c.beforeLocaleChange(()=>{e=new WeakMap;l=m["short-date-short-time"]});a.convertDateFormatToIntlOptions=function(h){return m[h]||null};a.dateFormats=f;a.dictionary=b;a.formatDate=function(h,n){return g(n).format(h)};a.fromJSON=q;a.getDateTimeFormatter=g;a.toJSON=k;Object.defineProperty(a,"__esModule",{value:!0})})},
"esri/intl/locale":function(){define(["exports","../core/global"],function(a,b){function c(){var n,w;return null!=(n=null!=p?p:null==(w=b.navigator)?void 0:w.language)?n:"en"}function g(){void 0===m&&(m=c());return m}function f(n=g()){n=/^([a-zA-Z]{2,3})(?:[_\-]\w+)*$/.exec(n);return null==n?void 0:n[1].toLowerCase()}function k(){var n;const w=null!=(n=u)?n:c();m!==w&&(m=w,[...h].forEach(x=>{x.call(null,w)}),[...l].forEach(x=>{x.call(null,w)}))}var q,v,t;let u=void 0,m=void 0;const p=null!=(q=null==
(v=b.esriConfig)?void 0:v.locale)?q:null==(t=b.dojoConfig)?void 0:t.locale,e={he:!0,ar:!0},l=[],h=[];null==b.addEventListener?void 0:b.addEventListener("languagechange",k);a.beforeLocaleChange=function(n){h.push(n);return{remove(){l.splice(h.indexOf(n),1)}}};a.getDefaultLocale=c;a.getLanguage=f;a.getLocale=g;a.onLocaleChange=function(n){l.push(n);return{remove(){l.splice(l.indexOf(n),1)}}};a.prefersRTL=function(n=g()){n=f(n);return void 0!==n&&(e[n]||!1)};a.setLocale=function(n){u=n?n:void 0;k()};
Object.defineProperty(a,"__esModule",{value:!0})})},"esri/intl/number":function(){define(["exports","../core/maybe","./locale"],function(a,b,c){function g(v){const t=v||q;if(!k.has(t)){var u=c.getLocale();u=f[c.getLocale()]||u;k.set(t,new Intl.NumberFormat(u,v))}return b.assumeNonNull(k.get(t))}const f={ar:"ar-u-nu-latn"};let k=new WeakMap,q={};c.beforeLocaleChange(()=>{k=new WeakMap;q={}});a.convertNumberFormatToIntlOptions=function(v={}){const t={};null!=v.digitSeparator&&(t.useGrouping=v.digitSeparator);
null!=v.places&&(t.minimumFractionDigits=t.maximumFractionDigits=v.places);return t};a.formatNumber=function(v,t){return g(t).format(v)};a.getFormatter=g;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/intl/substitute":function(){define("exports ../core/Logger ../core/object ../core/string ./date ./number".split(" "),function(a,b,c,g,f,k){function q(t){switch(typeof t){case "string":return t;case "number":return k.formatNumber(t);case "boolean":return""+t;default:return t instanceof Date?
f.formatDate(t):""}}const v=b.getLogger("esri.intl");a.substitute=function(t,u,m={}){const {format:p={}}=m;return g.replace(t,e=>{{const n=e.indexOf(":");if(-1===n)var l=e.trim();else{l=e.slice(0,n).trim();var h=e.slice(n+1).trim()}if(l)if(e=c.getDeepValue(l,u),null==e)h="";else if(l=p[h]||p[l])b:switch(l.type){case "date":h=f.formatDate(e,l.intlOptions);break b;case "number":h=k.formatNumber(e,l.intlOptions);break b;default:v.warn("missing format descriptor for key {key}"),h=q(e)}else if(h)b:switch(h.toLowerCase()){case "dateformat":h=
f.formatDate(e);break b;case "numberformat":h=k.formatNumber(e);break b;default:v.warn(`inline format is unsupported since 4.12: ${h}`),h=/^(dateformat|datestring)/i.test(h)?f.formatDate(e):/^numberformat/i.test(h)?k.formatNumber(e):q(e)}else h=q(e);else h=""}return h})};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/intl/messages":function(){define(["exports","../chunks/_rollupPluginBabelHelpers","../core/Error","../core/promiseUtils","./locale"],function(a,b,c,g,f){function k(x){var C;
return null!=(C=e[x])?C:!1}function q(x){for(const C of h.keys())m(x.pattern,C)&&h.delete(C)}function v(){v=b._asyncToGenerator(function*(x){const C=f.getLocale();h.has(x)||h.set(x,t(x,C));x=h.get(x);yield n.add(x);return x});return v.apply(this,arguments)}function t(x,C){return u.apply(this,arguments)}function u(){u=b._asyncToGenerator(function*(x,C){const D=[];for(const A of l)if(m(A.pattern,x))try{return yield A.fetchMessageBundle(x,C)}catch(B){D.push(B)}if(D.length)throw new c("intl:message-bundle-error",
`Errors occurred while loading "${x}"`,{errors:D});throw new c("intl:no-message-bundle-loader",`No loader found for message bundle "${x}"`);});return u.apply(this,arguments)}function m(x,C){return"string"===typeof x?C.startsWith(x):x.test(C)}const p=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,e={ar:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,
uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0},l=[],h=new Map;f.beforeLocaleChange(()=>{h.clear()});const n=new (function(){function x(){this._numLoading=0}var C=x.prototype;C.waitForAll=function(){var D=b._asyncToGenerator(function*(){this._dfd&&(yield this._dfd.promise)});return function(){return D.apply(this,arguments)}}();C.add=function(D){this._increase();D.then(()=>this._decrease(),()=>this._decrease());return this.waitForAll()};C._increase=function(){this._numLoading++;this._dfd||(this._dfd=
g.createDeferred())};C._decrease=function(){this._numLoading=Math.max(this._numLoading-1,0);this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)};return x}()),w={cache:h,loaders:l};a.fetchMessageBundle=function(x){return v.apply(this,arguments)};a.normalizeMessageBundleLocale=function(x){if(!p.test(x))return null;const [,C,D]=p.exec(x);x=C+(D?"-"+D.toUpperCase():"");return k(x)?x:k(C)?C:null};a.registerMessageBundleLoader=function(x){l.includes(x)||(q(x),l.unshift(x));return{remove(){const C=
l.indexOf(x);-1<C&&(l.splice(C,1),q(x))}}};a.test=w;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/intl/t9n":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../request ../core/Error ../core/global ../core/maybe ./messages".split(" "),function(a,b,c,g,f,k,q){function v(l,h,n,w){return t.apply(this,arguments)}function t(){t=b._asyncToGenerator(function*(l,h,n,w){var x=h.exec(n);if(!x)throw new g("esri-intl:invalid-bundle",`Bundle id "${n}" is not compatible with the pattern "${h}"`);
h=x[1]?`${x[1]}/`:"";x=x[2];const C=q.normalizeMessageBundleLocale(w);w=`${h}${x}.json`;h=C?`${h}${x}_${C}.json`:w;let D;try{D=yield u(l(h))}catch(A){if(h===w)throw new g("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:A});try{D=yield u(l(w))}catch(B){throw new g("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:B});}}return D});return t.apply(this,arguments)}function u(l){return m.apply(this,arguments)}function m(){m=b._asyncToGenerator(function*(l){if(k.isSome(e.fetchBundleAsset))return e.fetchBundleAsset(l);
l=yield c(l,{responseType:"text"});return JSON.parse(l.data)});return m.apply(this,arguments)}let p=function(){function l({base:h="",pattern:n,location:w=new URL(window.location.href)}){let x;x="string"===typeof w?C=>(new URL(C,new URL(w,f.location))).href:w instanceof URL?C=>(new URL(C,w)).href:w;this.pattern="string"===typeof n?new RegExp(`^${n}`):n;this.getAssetUrl=x;h=h?h.endsWith("/")?h:h+"/":"";this.matcher=new RegExp(`^${h}(?:(.*)\/)?(.*)$`)}l.prototype.fetchMessageBundle=function(h,n){return v(this.getAssetUrl,
this.matcher,h,n)};return l}();const e={};a.JSONLoader=p;a.createJSONLoader=function(l){return new p(l)};a.test=e;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/request":function(){define("require ./chunks/_rollupPluginBabelHelpers ./config ./kernel ./core/Error ./core/global ./core/has ./core/lang ./core/maybe ./core/promiseUtils ./core/urlUtils ./support/apiKeyUtils ./support/requestUtils".split(" "),function(a,b,c,g,f,k,q,v,t,u,m,p,e){function l(da,ea){return h.apply(this,arguments)}
function h(){h=b._asyncToGenerator(function*(da,ea){var la=m.isDataProtocol(da);const va=m.isBlobProtocol(da);va||la||(da=m.normalize(da));const Ba={url:da,requestOptions:{...t.unwrap(ea)}};let aa=m.getInterceptor(da);if(aa){da=yield N(aa,Ba);if(null!=da)return{data:da,getHeader:fa,requestOptions:Ba.requestOptions,url:Ba.url};aa.after||aa.error||(aa=null)}da=Ba.url;ea=Ba.requestOptions;if("image"===ea.responseType){if(q("host-webworker")||q("host-node"))throw x("request:invalid-parameters",Error("responseType 'image' is not supported in Web Workers or Node environment"),
Ba);}else if(la)throw x("request:invalid-parameters",Error("Data URLs are not supported for responseType \x3d "+ea.responseType),Ba);if("head"===ea.method){if(ea.body)throw x("request:invalid-parameters",Error("body parameter cannot be set when method is 'head'"),Ba);if(la||va)throw x("request:invalid-parameters",Error("data and blob URLs are not supported for method 'head'"),Ba);}yield C();if(X)return X.execute(da,ea);const ja=u.createAbortController();u.onAbort(ea,()=>ja.abort());la=yield L({controller:ja,
credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:aa,params:Ba,redoRequest:!1,useIdentity:U.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1});aa&&aa.after&&aa.after(la);return la});return h.apply(this,arguments)}function n(da){(da=m.getOrigin(da))&&!l._corsServers.includes(da)&&l._corsServers.push(da)}function w(da){da=m.getOrigin(da);return!da||da.endsWith(".arcgis.com")||l._corsServers.includes(da)||m.isTrustedServer(da)}function x(da,ea,la,va){let Ba="Error";const aa=
{url:la.url,requestOptions:la.requestOptions,getHeader:fa,ssl:!1};if(ea instanceof f)return ea.details?(ea.details=v.clone(ea.details),ea.details.url=la.url,ea.details.requestOptions=la.requestOptions):ea.details=aa,ea;if(ea){la=va&&(ta=>va.headers.get(ta));const ja=va&&va.status,ua=ea.message;ua&&(Ba=ua);la&&(aa.getHeader=la);aa.httpStatus=(null!=ea.httpCode?ea.httpCode:ea.code)||ja||0;aa.subCode=ea.subcode;aa.messageCode=ea.messageCode;aa.messages="string"===typeof ea.details?[ea.details]:ea.details;
aa.raw=ia in ea?ea[ia]:ea}return u.isAbortError(ea)?u.createAbortError():new f(da,Ba,aa)}function C(){return D.apply(this,arguments)}function D(){D=b._asyncToGenerator(function*(){q("host-webworker")?X||(X=yield new Promise(function(da,ea){a(["./core/workers/request"],da,ea)})):l._abortableFetch||(l._abortableFetch=k.fetch.bind(k))});return D.apply(this,arguments)}function A(){return B.apply(this,arguments)}function B(){B=b._asyncToGenerator(function*(){g.id||(yield new Promise(function(da,ea){a(["./identity/IdentityManager"],
function(la){da(Object.freeze({__proto__:null,"default":la}))},ea)}))});return B.apply(this,arguments)}function r(da){return z.apply(this,arguments)}function z(){z=b._asyncToGenerator(function*(da){const ea=da.params.url,la=da.params.requestOptions,va=da.controller.signal,Ba=la.body;let aa=null,ja=null,ua=null;Z&&"HTMLFormElement"in k&&(Ba instanceof FormData?aa=Ba:Ba instanceof HTMLFormElement&&(ja=Ba,aa=new FormData(ja)));"string"===typeof Ba&&(ua=Ba);da.fetchOptions={cache:la.cacheBust&&!l._abortableFetch.polyfill?
"no-cache":"default",credentials:"same-origin",headers:la.headers||{},method:"head"===la.method?"HEAD":"GET",mode:"cors",redirect:"follow",signal:va};if(aa||ua)da.fetchOptions.body=aa||ua;"anonymous"===la.authMode&&(da.useIdentity=!1);da.hasToken=!!(/token=/i.test(ea)||la.query&&la.query.token||aa&&aa.get&&aa.get("token")||ja&&ja.elements.token);!da.hasToken&&c.apiKey&&p.supportsApiKey(ea)&&(la.query||(la.query={}),la.query.token=c.apiKey,da.hasToken=!0);if(da.useIdentity&&!da.hasToken&&!da.credentialToken&&
!E(ea)&&!u.isAborted(va)){let ta;"immediate"===la.authMode?(yield A(),ta=yield g.id.getCredential(ea,{signal:va}),da.credential=ta):"no-prompt"===la.authMode?(yield A(),ta=yield g.id.getCredential(ea,{prompt:!1,signal:va}).catch(()=>{}),da.credential=ta):g.id&&(ta=g.id.findCredential(ea));ta&&(da.credentialToken=ta.token,da.useSSL=!!ta.ssl)}});return z.apply(this,arguments)}function E(da){return Ea.some(ea=>ea.test(da))}function F(da){return G.apply(this,arguments)}function G(){G=b._asyncToGenerator(function*(da){let ea=
da.params.url;const la=da.params.requestOptions,va=da.fetchOptions,Ba=m.isBlobProtocol(ea)||m.isDataProtocol(ea),aa=la.responseType||"json",ja=Ba?0:null!=la.timeout?la.timeout:U.timeout;var ua=!1;if(!Ba){da.useSSL&&(ea=m.toHTTPS(ea));la.cacheBust&&"default"===va.cache&&(ea=m.addQueryParameter(ea,"request.preventCache",Date.now()));var ta={...la.query};da.credentialToken&&(ta.token=da.credentialToken);ua=m.objectToQuery(ta);q("esri-url-encodes-apostrophe")&&(ua=ua.replace(/'/g,"%27"));const Aa=ea.length+
1+ua.length;ua="delete"===la.method||"post"===la.method||"put"===la.method||!!la.body||Aa>U.maxUrlLength;const La=la.useProxy||!!m.getProxyRule(ea);if(La){const Ra=m.getProxyUrl(ea);var T=Ra.path;!ua&&T.length+1+Aa>U.maxUrlLength&&(ua=!0);Ra.query&&(ta={...Ra.query,...ta})}if("HEAD"===va.method&&(ua||La)){if(ua){if(Aa>U.maxUrlLength)throw x("request:invalid-parameters",Error("URL exceeds maximum length"),da.params);throw x("request:invalid-parameters",Error("cannot use POST request when method is 'head'"),
da.params);}if(La)throw x("request:invalid-parameters",Error("cannot use proxy when method is 'head'"),da.params);}ua?(va.method="delete"===la.method?"DELETE":"put"===la.method?"PUT":"POST",la.body?ea=m.addQueryParameters(ea,ta):(va.body=m.objectToQuery(ta),va.headers["Content-Type"]="application/x-www-form-urlencoded")):ea=m.addQueryParameters(ea,ta);La&&(da.useProxy=!0,ea=`${T}?${ea}`);ta.token&&Z&&va.body instanceof FormData&&(T=va.body,T.set?T.set("token",ta.token):T.append("token",ta.token));
la.hasOwnProperty("withCredentials")?da.withCredentials=la.withCredentials:m.hasSameOrigin(ea,m.appUrl)||(m.isTrustedServer(ea)?da.withCredentials=!0:g.id&&(ta=g.id.findServerInfo(ea))&&ta.webTierAuth&&(da.withCredentials=!0));da.withCredentials&&(va.credentials="include")}ta=0;let ba=!1;0<ja&&(ta=setTimeout(()=>{ba=!0;da.controller.abort()},ja));let ha,sa;try{if("native-request-init"===la.responseType)sa=va,sa.url=ea;else if("image"!==la.responseType||"default"!==va.cache||"GET"!==va.method||ua||
I(la.headers)||!Ba&&!da.useProxy&&U.proxyUrl&&!w(ea))if(ha=yield l._abortableFetch(ea,va),da.useProxy||n(ea),"native"===la.responseType)sa=ha;else{if("HEAD"!==va.method)if(ha.ok){switch(aa){case "array-buffer":sa=yield ha.arrayBuffer();break;case "blob":case "image":sa=yield ha.blob();break;default:sa=yield ha.text()}ta&&(clearTimeout(ta),ta=0);if("json"===aa||"xml"===aa||"document"===aa)if(sa)switch(aa){case "json":sa=JSON.parse(sa);break;case "xml":sa=J(sa,"application/xml");break;case "document":sa=
J(sa,"text/html")}else sa=null;if(sa){if("array-buffer"===aa||"blob"===aa){const Aa=ha.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(Aa)&&750>=sa["blob"===aa?"size":"byteLength"])try{const La=yield(new Response(sa)).json();La.error&&(sa=La)}catch{}}"image"===aa&&sa instanceof Blob&&(sa=yield P(URL.createObjectURL(sa),da,!0))}}else sa=yield ha.text()}else sa=yield P(ea,da)}catch(Aa){if("AbortError"===Aa.name){if(ba)throw Error("Timeout exceeded");throw u.createAbortError("Request canceled");
}if(!ha&&Aa instanceof TypeError&&U.proxyUrl&&!la.body&&"delete"!==la.method&&"head"!==la.method&&"post"!==la.method&&"put"!==la.method&&!da.useProxy&&!w(ea))da.redoRequest=!0,m.addProxyRule({proxyUrl:U.proxyUrl,urlPrefix:m.getOrigin(ea)});else throw Aa;}finally{ta&&clearTimeout(ta)}return[ha,sa]});return G.apply(this,arguments)}function N(da,ea){return K.apply(this,arguments)}function K(){K=b._asyncToGenerator(function*(da,ea){if(null!=da.responseData)return da.responseData;da.headers&&(ea.requestOptions.headers=
{...ea.requestOptions.headers,...da.headers});da.query&&(ea.requestOptions.query={...ea.requestOptions.query,...da.query});if(da.before){let la,va;try{va=yield da.before(ea)}catch(Ba){la=x("request:interceptor",Ba,ea)}if(va instanceof Error||va instanceof f)la=x("request:interceptor",va,ea);if(la)throw da.error&&da.error(la),la;return va}});return K.apply(this,arguments)}function I(da){if(da)for(const ea of Object.getOwnPropertyNames(da))if(da[ea])return!0;return!1}function J(da,ea){let la;try{la=
(new DOMParser).parseFromString(da,ea)}catch{}if(!la||la.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return la}function L(da){return Q.apply(this,arguments)}function Q(){Q=b._asyncToGenerator(function*(da){var ea,la;yield r(da);let va;try{do[va,Ba]=yield F(da);while(!(yield W(da,va,Ba)))}catch(ja){var Ba=x("request:server",ja,da.params,va);Ba.details.ssl=da.useSSL;da.interceptor&&da.interceptor.error&&da.interceptor.error(Ba);throw Ba;}const aa=da.params.url;
!/\/sharing\/rest\/(accounts|portals)\/self/i.test(aa)||da.hasToken||da.credentialToken||null==(ea=Ba)||null==(la=ea.user)||!la.username||m.isTrustedServer(aa)||(ea=m.getOrigin(aa,!0))&&U.trustedServers.push(ea);(ea=da.credential)&&g.id&&(la=(la=g.id.findServerInfo(ea.server))&&la.owningSystemUrl)&&(la=la.replace(/\/?$/,"/sharing"),(ea=g.id.findCredential(la,ea.userId))&&-1===g.id._getIdenticalSvcIdx(la,ea)&&ea.resources.unshift(la));return{data:Ba,getHeader:va?ja=>va.headers.get(ja):fa,requestOptions:da.params.requestOptions,
ssl:da.useSSL,url:da.params.url}});return Q.apply(this,arguments)}function W(da,ea,la){return V.apply(this,arguments)}function V(){V=b._asyncToGenerator(function*(da,ea,la){if(da.redoRequest)return da.redoRequest=!1;const va=da.params.requestOptions;if(!ea||"native"===va.responseType||"native-request-init"===va.responseType)return!0;let Ba;if(!ea.ok)throw Ba=Error(`Unable to load ${ea.url} status: ${ea.status}`),Ba[ia]=la,Ba;null!=la&&la.error&&(Ba=la.error);let aa,ja,ua;Ba&&(aa=Number(Ba.code),ja=
Ba.hasOwnProperty("subcode")?Number(Ba.subcode):null,ua=(ua=Ba.messageCode)&&ua.toUpperCase());ea=va.authMode;if(403===aa&&(4===ja||Ba.message&&-1<Ba.message.toLowerCase().indexOf("ssl")&&-1===Ba.message.toLowerCase().indexOf("permission"))){if(!da.useSSL)return da.useSSL=!0,!1}else if(!da.hasToken&&da.useIdentity&&("no-prompt"!==ea||498===aa)&&-1!==oa.indexOf(aa)&&!E(da.params.url)&&(403!==aa||-1===xa.indexOf(ua)&&(null==ja||2===ja&&da.credentialToken))){yield A();try{const ta=yield g.id.getCredential(da.params.url,
{error:x("request:server",Ba,da.params),prompt:"no-prompt"!==ea,signal:da.controller.signal,token:da.credentialToken});da.credential=ta;da.credentialToken=ta.token;da.useSSL=da.useSSL||ta.ssl;return!1}catch(ta){if("no-prompt"===ea)return da.credential=null,da.credentialToken=null,!1;Ba=ta}}if(Ba)throw Ba;return!0});return V.apply(this,arguments)}function P(da,ea,la=!1){const va=ea.controller.signal,Ba=new Image;Ba.crossOrigin=ea.withCredentials?"use-credentials":"anonymous";Ba.alt="";Ba.src=da;return e.loadImageAsync(Ba,
da,la,va)}let X;const U=c.request,Z="FormData"in k,oa=[499,498,403,401],xa=["COM_0056","COM_0057","SB_0008"],Ea=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],fa=()=>null,ia=Symbol();l._abortableFetch=null;l._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"];return l})},"esri/kernel":function(){define(["require","exports","./core/has","./core/urlUtils","./support/revision"],function(a,b,c,g,f){b.id=void 0;c("host-webworker")||(console.debug(`Using ArcGIS API for JavaScript ${"4.20"} [Date: ${f.buildDate}, Revision: ${f.commitHash.slice(0,
8)}]`),(c("edge")||c("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser"));b.buildDate=f.buildDate;b.revision=f.commitHash;b.addTokenParameter=function(k){const q=b.id&&b.id.findCredential(k);return q&&q.token?g.addQueryParameter(k,"token",q.token):k};b.setId=function(k){b.id=k};b.version="4.20";b.workerMessages={request(k,q){var v;const t=null==(v=k.options)?void 0:v.responseType;return(new Promise(function(u,m){a(["./request"],function(p){u(Object.freeze({__proto__:null,
"default":p}))},m)})).then(({default:u})=>{const m=k.options||{};m.responseType="native"===t||"native-request-init"===t?"native-request-init":"array-buffer";m.signal=null==q?void 0:q.signal;return u(k.url,m)}).then(u=>{const m={data:u.data,ssl:u.ssl};return"native-request-init"===u.requestOptions.responseType?(delete m.data.signal,m):{result:m,transferList:[m.data]}})}};Object.defineProperty(b,"__esModule",{value:!0})})},"esri/support/revision":function(){define(["exports"],function(a){a.buildDate=
"20210707";a.commitHash="17f9314e751fd1e720022ff5819d4e40def1f79a";Object.defineProperty(a,"__esModule",{value:!0})})},"esri/support/apiKeyUtils":function(){define(["exports","../core/urlUtils"],function(a,b){const c=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];a.isApiKey=function(g){return g&&4<g.length&&g.startsWith("AAPK")};a.supportsApiKey=function(g){const f=b.getOrigin(g,!0);return f&&f.endsWith(".arcgis.com")&&!c.includes(f)&&!g.endsWith("/sharing/rest/generateToken")};
Object.defineProperty(a,"__esModule",{value:!0})})},"esri/support/requestUtils":function(){define(["exports","../core/has","../core/maybe","../core/promiseUtils"],function(a,b,c,g){function f(){try{return new DOMException("Aborted","AbortError")}catch{const k=Error();k.name="AbortError";return k}}a.loadImageAsync=function(k,q,v=!1,t){return new Promise((u,m)=>{if(g.isAborted(t))m(f());else{var p=()=>{h();m(Error(`Unable to load ${q}`))},e=()=>{const n=k;h();u(n)},l=()=>{if(k){var n=k;h();n.src="";
m(f())}},h=()=>{b("esri-image-decode")||(k.removeEventListener("error",p),k.removeEventListener("load",e));k=e=p=null;c.isSome(t)&&t.removeEventListener("abort",l);l=null;v&&URL.revokeObjectURL(q)};c.isSome(t)&&t.addEventListener("abort",l);b("esri-image-decode")?k.decode().then(e,p):(k.addEventListener("error",p),k.addEventListener("load",e))}})};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/assets":function(){define("exports ./config ./request ./core/Error ./core/Logger ./core/urlUtils".split(" "),
function(a,b,c,g,f,k){function q(t){if(!b.assetsPath)throw v.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new g("assets:path-not-set","config.assetsPath is not set");return k.join(b.assetsPath,t)}const v=f.getLogger("esri.assets");a.fetchAsset=function(t,u){return c(q(t),u)};a.getAssetUrl=q;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/decorators/reader":function(){define(["exports","../../object",
"./property"],function(a,b,c){a.reader=function(g,f,k){let q,v;void 0===f||Array.isArray(f)?(v=g,k=f,q=[void 0]):(v=f,q=Array.isArray(g)?g:[g]);return(t,u)=>{const m=t.constructor.prototype;q.forEach(p=>{p=c.propertyJSONMeta(t,p,v);p.read&&"object"!==typeof p.read&&(p.read={});b.setDeepValue("read.reader",m[u],p);k&&(p.read.source=(p.read.source||[]).concat(k))})}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/Extent":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/string ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass ./Geometry ./Point ./SpatialReference ./support/contains ./support/intersectsBase ./support/spatialReferenceUtils ./support/webMercatorUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w){function x(D,A,B){return null==A?B:null==B?A:D(A,B)}var C;k=C=function(D){function A(...r){r=D.call(this,...r)||this;r.type="extent";r.xmin=0;r.ymin=0;r.mmin=void 0;r.zmin=void 0;r.xmax=0;r.ymax=0;r.mmax=void 0;r.zmax=void 0;return r}a._inheritsLoose(A,D);var B=A.prototype;B.normalizeCtorArgs=function(r,z,E,F,G){return!r||"esri.geometry.SpatialReference"!==r.declaredClass&&null==r.wkid?"object"===typeof r?(r.spatialReference=null==r.spatialReference?e.WGS84:
r.spatialReference,r):{xmin:r,ymin:z,xmax:E,ymax:F,spatialReference:null==G?e.WGS84:G}:{spatialReference:r,xmin:0,ymin:0,xmax:0,ymax:0}};A.fromBounds=function(r,z){return new C({xmin:r[0],ymin:r[1],xmax:r[2],ymax:r[3],spatialReference:z})};B.centerAt=function(r){const z=this.center;return null!=r.z&&this.hasZ?this.offset(r.x-z.x,r.y-z.y,r.z-z.z):this.offset(r.x-z.x,r.y-z.y)};B.clone=function(){const r=new C;r.xmin=this.xmin;r.ymin=this.ymin;r.xmax=this.xmax;r.ymax=this.ymax;r.spatialReference=this.spatialReference;
null!=this.zmin&&(r.zmin=this.zmin,r.zmax=this.zmax);null!=this.mmin&&(r.mmin=this.mmin,r.mmax=this.mmax);return r};B.contains=function(r){if(!r)return!1;const z=this.spatialReference,E=r.spatialReference;z&&E&&!z.equals(E)&&w.canProject(z,E)&&(r=z.isWebMercator?w.geographicToWebMercator(r):w.webMercatorToGeographic(r,!0));return"point"===r.type?l.extentContainsPoint(this,r):"extent"===r.type?l.extentContainsExtent(this,r):!1};B.equals=function(r){if(!r)return!1;const z=this.spatialReference,E=r.spatialReference;
z&&E&&!z.equals(E)&&w.canProject(z,E)&&(r=z.isWebMercator?w.geographicToWebMercator(r):w.webMercatorToGeographic(r,!0));return this.xmin===r.xmin&&this.ymin===r.ymin&&this.zmin===r.zmin&&this.mmin===r.mmin&&this.xmax===r.xmax&&this.ymax===r.ymax&&this.zmax===r.zmax&&this.mmax===r.mmax};B.expand=function(r){r=.5*(1-r);var z=this.width*r;const E=this.height*r;this.xmin+=z;this.ymin+=E;this.xmax-=z;this.ymax-=E;this.hasZ&&(z=(this.zmax-this.zmin)*r,this.zmin+=z,this.zmax-=z);this.hasM&&(r*=this.mmax-
this.mmin,this.mmin+=r,this.mmax-=r);return this};B.intersects=function(r){if(c.isNone(r))return!1;"mesh"===r.type&&(r=r.extent);const z=this.spatialReference,E=r.spatialReference;z&&E&&!z.equals(E)&&w.canProject(z,E)&&(r=z.isWebMercator?w.geographicToWebMercator(r):w.webMercatorToGeographic(r,!0));return h.getFeatureExtentIntersector(r.type)(this,r)};B.normalize=function(){const r=this._normalize(!1,!0);return Array.isArray(r)?r:[r]};B.offset=function(r,z,E){this.xmin+=r;this.ymin+=z;this.xmax+=
r;this.ymax+=z;null!=E&&(this.zmin+=E,this.zmax+=E);return this};B.shiftCentralMeridian=function(){return this._normalize(!0)};B.union=function(r){this.xmin=Math.min(this.xmin,r.xmin);this.ymin=Math.min(this.ymin,r.ymin);this.xmax=Math.max(this.xmax,r.xmax);this.ymax=Math.max(this.ymax,r.ymax);if(this.hasZ||r.hasZ)this.zmin=x(Math.min,this.zmin,r.zmin),this.zmax=x(Math.max,this.zmax,r.zmax);if(this.hasM||r.hasM)this.mmin=x(Math.min,this.mmin,r.mmin),this.mmax=x(Math.max,this.mmax,r.mmax);return this};
B.intersection=function(r){if(!this.intersects(r))return null;this.xmin=Math.max(this.xmin,r.xmin);this.ymin=Math.max(this.ymin,r.ymin);this.xmax=Math.min(this.xmax,r.xmax);this.ymax=Math.min(this.ymax,r.ymax);if(this.hasZ||r.hasZ)this.zmin=x(Math.max,this.zmin,r.zmin),this.zmax=x(Math.min,this.zmax,r.zmax);if(this.hasM||r.hasM)this.mmin=x(Math.max,this.mmin,r.mmin),this.mmax=x(Math.min,this.mmax,r.mmax);return this};B.toJSON=function(r){return this.write(null,r)};B._shiftCM=function(r=n.getInfo(this.spatialReference)){if(!r||
!this.spatialReference)return this;const z=this.spatialReference,E=this._getCM(r);if(E){const F=z.isWebMercator?w.webMercatorToGeographic(E):E;this.xmin-=E.x;this.xmax-=E.x;z.isWebMercator||(F.x=this._normalizeX(F.x,r).x);this.spatialReference=new e(g.replace(z.isWGS84?r.altTemplate:r.wkTemplate,{Central_Meridian:F.x}))}return this};B._getCM=function(r){let z=null;const [E,F]=r.valid;r=this.xmin;const G=this.xmax;r>=E&&r<=F&&G>=E&&G<=F||(z=this.center);return z};B._normalize=function(r,z,E){const F=
this.spatialReference;if(!F)return this;E=E||n.getInfo(F);if(!E)return this;const G=this._getParts(E).map(I=>I.extent);if(2>G.length)return G[0]||this;if(2<G.length)return r?this._shiftCM(E):this.set({xmin:E.valid[0],xmax:E.valid[1]});if(r)return this._shiftCM(E);if(z)return G;let N=!0,K=!0;G.forEach(I=>{I.hasZ||(N=!1);I.hasM||(K=!1)});return{rings:G.map(I=>{const J=[[I.xmin,I.ymin],[I.xmin,I.ymax],[I.xmax,I.ymax],[I.xmax,I.ymin],[I.xmin,I.ymin]];if(N){var L=(I.zmax-I.zmin)/2;for(let Q=0;Q<J.length;Q++)J[Q].push(L)}if(K)for(I=
(I.mmax-I.mmin)/2,L=0;L<J.length;L++)J[L].push(I);return J}),hasZ:N,hasM:K,spatialReference:F}};B._getParts=function(r){let z=this.cache._parts;if(!z){z=[];const {ymin:L,ymax:Q,spatialReference:W}=this;var E=this.width,F=this.xmin,G=this.xmax;r=r||n.getInfo(W);const [V,P]=r.valid;var N=this._normalizeX(this.xmin,r);var K=N.x,I=N.frameId;N=this._normalizeX(this.xmax,r);r=N.x;N=N.frameId;var J=K===r&&0<E;if(E>2*P){E=new C(F<G?K:r,L,P,Q,W);F=new C(V,L,F<G?r:K,Q,W);G=new C(0,L,P,Q,W);K=new C(V,L,0,Q,
W);r=[];J=[];E.contains(G)&&r.push(I);E.contains(K)&&J.push(I);F.contains(G)&&r.push(N);F.contains(K)&&J.push(N);for(let X=I+1;X<N;X++)r.push(X),J.push(X);z.push({extent:E,frameIds:[I]},{extent:F,frameIds:[N]},{extent:G,frameIds:r},{extent:K,frameIds:J})}else K>r||J?z.push({extent:new C(K,L,P,Q,W),frameIds:[I]},{extent:new C(V,L,r,Q,W),frameIds:[N]}):z.push({extent:new C(K,L,r,Q,W),frameIds:[I]});this.cache._parts=z}N=this.hasZ;E=this.hasM;if(N||E)for(I={},N&&(I.zmin=this.zmin,I.zmax=this.zmax),E&&
(I.mmin=this.mmin,I.mmax=this.mmax),N=0;N<z.length;N++)z[N].extent.set(I);return z};B._normalizeX=function(r,z){const [E,F]=z.valid;z=2*F;var G=0;r>F?(G=Math.ceil(Math.abs(r-F)/z),r-=G*z):r<E&&(G=Math.ceil(Math.abs(r-E)/z),r+=G*z,G=-G);return{x:r,frameId:G}};a._createClass(A,[{key:"cache",get:function(){this.commitProperty("xmin");this.commitProperty("ymin");this.commitProperty("zmin");this.commitProperty("mmin");this.commitProperty("xmax");this.commitProperty("ymax");this.commitProperty("zmax");
this.commitProperty("mmax");this.commitProperty("spatialReference");return{}}},{key:"center",get:function(){const r=new p({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});this.hasZ&&(r.z=.5*(this.zmin+this.zmax));this.hasM&&(r.m=.5*(this.mmin+this.mmax));return r}},{key:"extent",get:function(){return this.clone()}},{key:"hasM",get:function(){return null!=this.mmin&&null!=this.mmax}},{key:"hasZ",get:function(){return null!=this.zmin&&null!=this.zmax}},
{key:"height",get:function(){return Math.abs(this.ymax-this.ymin)}},{key:"width",get:function(){return Math.abs(this.xmax-this.xmin)}}]);return A}(m);b.__decorate([f.property({readOnly:!0})],k.prototype,"cache",null);b.__decorate([f.property({readOnly:!0})],k.prototype,"center",null);b.__decorate([f.property({readOnly:!0})],k.prototype,"extent",null);b.__decorate([f.property({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],k.prototype,"hasM",null);b.__decorate([f.property({readOnly:!0,
json:{write:{enabled:!1,overridePolicy:null}}})],k.prototype,"hasZ",null);b.__decorate([f.property({readOnly:!0})],k.prototype,"height",null);b.__decorate([f.property({readOnly:!0})],k.prototype,"width",null);b.__decorate([f.property({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],k.prototype,"xmin",void 0);b.__decorate([f.property({type:Number,json:{write:!0}})],k.prototype,"ymin",void 0);b.__decorate([f.property({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],
k.prototype,"mmin",void 0);b.__decorate([f.property({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],k.prototype,"zmin",void 0);b.__decorate([f.property({type:Number,json:{write:!0}})],k.prototype,"xmax",void 0);b.__decorate([f.property({type:Number,json:{write:!0}})],k.prototype,"ymax",void 0);b.__decorate([f.property({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],k.prototype,"mmax",
void 0);b.__decorate([f.property({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],k.prototype,"zmax",void 0);k=C=b.__decorate([u.subclass("esri.geometry.Extent")],k);k.prototype.toJSON.isDefaultToJSON=!0;return k})},"esri/geometry/Geometry":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ./SpatialReference".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){c=function(p){function e(...h){h=p.call(this,...h)||this;h.type=null;h.hasM=!1;h.hasZ=!1;h.spatialReference=m.WGS84;return h}a._inheritsLoose(e,p);var l=e.prototype;l.readSpatialReference=function(h,n){if(h instanceof m)return h;if(null!=h){const w=new m;w.read(h,n);return w}return h};l.clone=function(){console.warn(".clone() is not implemented for "+this.declaredClass);return null};l.clearCache=function(){this.notifyChange("cache")};l.getCacheValue=function(h){return this.cache[h]};
l.setCacheValue=function(h,n){this.cache[h]=n};a._createClass(e,[{key:"cache",get:function(){this.commitProperty("spatialReference");return{}}},{key:"extent",get:function(){return null}}]);return e}(c.JSONSupport);b.__decorate([g.property()],c.prototype,"type",void 0);b.__decorate([g.property({readOnly:!0})],c.prototype,"cache",null);b.__decorate([g.property({readOnly:!0})],c.prototype,"extent",null);b.__decorate([g.property({type:Boolean,json:{write:{overridePolicy(p){return{enabled:p}}}}})],c.prototype,
"hasM",void 0);b.__decorate([g.property({type:Boolean,json:{write:{overridePolicy(p){return{enabled:p}}}}})],c.prototype,"hasZ",void 0);b.__decorate([g.property({type:m,json:{write:!0}})],c.prototype,"spatialReference",void 0);b.__decorate([t.reader("spatialReference")],c.prototype,"readSpatialReference",null);return c=b.__decorate([u.subclass("esri.geometry.Geometry")],c)})},"esri/geometry/Point":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Logger ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/decorators/cast ../core/jsonMap ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../core/accessorSupport/ensureType ./Geometry ./SpatialReference ./support/offset ./support/pointUtils ./support/spatialReferenceUtils ./support/webMercatorUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w){function x(B){return B&&("esri.geometry.SpatialReference"===B.declaredClass||null!=B.wkid)}var C;const D=[0,0],A=c.getLogger("esri.geometry.Point");c=C=function(B){function r(...E){E=B.call(this,...E)||this;E.x=0;E.y=0;E.z=void 0;E.m=void 0;E.type="point";return E}a._inheritsLoose(r,B);r.copy=function(E,F){F._set("x",E._get("x"));F._set("y",E._get("y"));F._set("z",E._get("z"));F._set("m",E._get("m"));E=E._get("spatialReference");F._set("spatialReference",
Object.isFrozen(E)?E:E.clone())};var z=r.prototype;z.normalizeCtorArgs=function(E,F,G,N,K){let I;if(Array.isArray(E))I=E,K=F,E=I[0],F=I[1],G=I[2],N=I[3];else if(E&&"object"===typeof E){if(I=E,E=null!=I.x?I.x:I.longitude,F=null!=I.y?I.y:I.latitude,G=I.z,N=I.m,(K=I.spatialReference)&&"esri.geometry.SpatialReference"!==K.declaredClass&&(K=new e(K)),null!=I.longitude||null!=I.latitude)null==I.longitude?A.warn(".longitude\x3d","Latitude was defined without longitude"):null==I.latitude?A.warn(".latitude\x3d",
"Longitude was defined without latitude"):!I.declaredClass&&K&&K.isWebMercator&&(F=w.lngLatToXY(I.longitude,I.latitude,D),E=F[0],F=F[1])}else x(G)?(K=G,G=null):x(N)&&(K=N,N=null);E={x:E,y:F};null==E.x&&null!=E.y?A.warn(".y\x3d","Y coordinate was defined without an X coordinate"):null==E.y&&null!=E.x&&A.warn(".x\x3d","X coordinate was defined without a Y coordinate");null!=K&&(E.spatialReference=K);null!=G&&(E.z=G);null!=N&&(E.m=N);return E};z.writeX=function(E,F,G){F[G]=isNaN(E)?"NaN":E};z.readX=
function(E){return"string"===typeof E?NaN:E};z.clone=function(){const E=new C;E.x=this.x;E.y=this.y;E.z=this.z;E.m=this.m;E.spatialReference=this.spatialReference;return E};z.copy=function(E){C.copy(E,this);return this};z.equals=function(E){if(!E)return!1;const {x:F,y:G,z:N,m:K,spatialReference:I}=this,{z:J,m:L}=E;let {x:Q,y:W,spatialReference:V}=E;if(!I.equals(V))if(I.isWebMercator&&V.isWGS84)[Q,W]=w.lngLatToXY(Q,W),V=I;else if(I.isWGS84&&V.isWebMercator)[Q,W]=w.xyToLngLat(Q,W),V=I;else return!1;
return F===Q&&G===W&&N===J&&K===L&&I.wkid===V.wkid};z.offset=function(E,F,G){return l.offsetPoint(this,E,F,G)};z.normalize=function(){if(!this.spatialReference)return this;var E=n.getInfo(this.spatialReference);if(!E)return this;let F=this.x;const [G,N]=E.valid;E=2*N;let K;F>N?(K=Math.ceil(Math.abs(F-N)/E),F-=K*E):F<G&&(K=Math.ceil(Math.abs(F-G)/E),F+=K*E);this._set("x",F);return this};z.distance=function(E){return h.distance(this,E)};z.toArray=function(){const E=this.hasZ,F=this.hasM;return E&&F?
[this.x,this.y,this.z,this.m]:E?[this.x,this.y,this.z]:F?[this.x,this.y,this.m]:[this.x,this.y]};z.toJSON=function(E){return this.write(null,E)};a._createClass(r,[{key:"cache",get:function(){this.commitProperty("x");this.commitProperty("y");this.commitProperty("z");this.commitProperty("m");this.commitProperty("spatialReference");return{}}},{key:"hasM",get:function(){return void 0!==this.m},set:function(E){const F=void 0!==this._get("m");E!==F&&(this._set("m",E?0:void 0),this._set("hasM",E))}},{key:"hasZ",
get:function(){return void 0!==this.z},set:function(E){const F=void 0!==this._get("z");E!==F&&(this._set("z",E?0:void 0),this._set("hasZ",E))}},{key:"latitude",get:function(){const {spatialReference:E,x:F,y:G}=this;if(E){if(E.isWebMercator)return w.xyToLngLat(F,G,D)[1];if(E.isGeographic)return G}return null},set:function(E){const {spatialReference:F,x:G}=this;F&&(F.isWebMercator?this._set("y",w.lngLatToXY(G,E,D)[1]):F.isGeographic&&this._set("y",E),this._set("latitude",E))}},{key:"longitude",get:function(){const {x:E,
y:F,spatialReference:G}=this;if(G){if(G.isWebMercator)return w.xyToLngLat(E,F,D)[0];if(G.isGeographic)return E}return NaN},set:function(E){const {y:F,spatialReference:G}=this;G&&(G.isWebMercator?this._set("x",w.lngLatToXY(E,F,D)[0]):G.isGeographic&&this._set("x",E),this._set("longitude",E))}}]);return r}(p);b.__decorate([g.property({readOnly:!0})],c.prototype,"cache",null);b.__decorate([g.property({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],c.prototype,"hasM",null);b.__decorate([g.property({type:Boolean,
json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],c.prototype,"hasZ",null);b.__decorate([g.property({type:Number})],c.prototype,"latitude",null);b.__decorate([g.property({type:Number})],c.prototype,"longitude",null);b.__decorate([g.property({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),k.cast(B=>isNaN(B)?B:m.ensureNumber(B))],c.prototype,"x",void 0);b.__decorate([u.writer("x")],c.prototype,"writeX",null);b.__decorate([v.reader("x")],c.prototype,"readX",null);
b.__decorate([g.property({type:Number,json:{write:!0}})],c.prototype,"y",void 0);b.__decorate([g.property({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],c.prototype,"z",void 0);b.__decorate([g.property({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],c.prototype,"m",void 0);c=C=b.__decorate([t.subclass("esri.geometry.Point")],c);c.prototype.toJSON.isDefaultToJSON=!0;return c})},"esri/core/accessorSupport/decorators/cast":function(){define(["exports",
"../ensureType","../metadata"],function(a,b,c){function g(v){const t="__accessorMetadata__"in v?b.ensureType(v):v;return function(...u){u.push(t);if("number"===typeof u[2])throw Error("Using @cast has parameter decorator is not supported since 4.16");return f.apply(this,u)}}function f(v,t,u,m){c.getOwnPropertyMetadata(v,t).cast=m}function k(v){return function(t,u){c.getOwnPropertyMetadata(t,v).cast=t[u]}}const q=Object.prototype.toString;a.cast=function(...v){if(3!==v.length||"string"!==typeof v[1]){if(1===
v.length&&"[object Function]"===q.call(v[0]))return g(v[0]);if(1===v.length&&"string"===typeof v[0])return k(v[0])}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/support/offset":function(){define(["exports"],function(a){a.offsetCoordsX=function(b,c){b[0]+=c;return b};a.offsetPoint=function(b,c,g,f){b.x+=c;b.y+=g;if(null!=f){var k;b.z=(null!=(k=b.z)?k:0)+f}return b};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/support/pointUtils":function(){define(["exports"],
function(a){a.distance=function(b,c){const g=b.x-c.x,f=b.y-c.y;b=b.hasZ&&c.hasZ?b.z-c.z:0;return Math.sqrt(g*g+f*f+b*b)};a.squareDistance=function(b,c){const g=b.x-c.x,f=b.y-c.y;b=b.hasZ&&c.hasZ?b.z-c.z:0;return g*g+f*f+b*b};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/support/webMercatorUtils":function(){define(["exports","../../core/lang","../SpatialReference","./Ellipsoid","./spatialReferenceUtils"],function(a,b,c,g,f){function k(m,p,e,l,h){h.spatialReference=e;if("x"in m&&
"x"in h)[h.x,h.y]=p(m.x,m.y,u,l);else if("xmin"in m&&"xmin"in h)[h.xmin,h.ymin]=p(m.xmin,m.ymin,u,l),[h.xmax,h.ymax]=p(m.xmax,m.ymax,u,l);else if("paths"in m&&"paths"in h||"rings"in m&&"rings"in h){m="paths"in m?m.paths:m.rings;e=[];for(let w=0;w<m.length;w++){const x=m[w];var n=[];e.push(n);for(let C=0;C<x.length;C++)n.push(p(x[C][0],x[C][1],[0,0],l)),2<x[C].length&&n[C].push(x[C][2]),3<x[C].length&&n[C].push(x[C][3])}"paths"in h?h.paths=e:h.rings=e}else if("points"in m&&"points"in h){m=m.points;
e=[];for(n=0;n<m.length;n++)e[n]=p(m[n][0],m[n][1],[0,0],l),2<m[n].length&&e[n].push(m[n][2]),3<m[n].length&&e[n].push(m[n][3]);h.points=e}return h}function q(m,p){const e=m&&(null!=m.wkid||null!=m.wkt?m:m.spatialReference),l=p&&(null!=p.wkid||null!=p.wkt?p:p.spatialReference);return m&&"type"in m&&"mesh"===m.type||p&&"type"in p&&"mesh"===p.type||!e||!l?!1:f.equals(l,e)?!0:f.isWebMercator(l)&&f.isWGS84(e)||f.isWebMercator(e)&&f.isWGS84(l)}function v(m,p,e=[0,0]){89.99999<p?p=89.99999:-89.99999>p&&
(p=-89.99999);p*=.017453292519943;e[0]=.017453292519943*m*g.earth.radius;e[1]=g.earth.halfSemiMajorAxis*Math.log((1+Math.sin(p))/(1-Math.sin(p)));return e}function t(m,p,e=[0,0],l=!1){m=m/g.earth.radius*57.29577951308232;e[0]=l?m:m-360*Math.floor((m+180)/360);e[1]=57.29577951308232*(Math.PI/2-2*Math.atan(Math.exp(-1*p/g.earth.radius)));return e}const u=[0,0];a.canProject=q;a.geographicToWebMercator=function(m,p=!1,e=b.clone(m)){return k(m,v,c.WebMercator,p,e)};a.lngLatToXY=v;a.project=function(m,
p){const e=m&&m.spatialReference;p=p&&(null!=p.wkid||null!=p.wkt?p:p.spatialReference);return q(e,p)?f.equals(e,p)?b.clone(m):f.isWebMercator(p)?k(m,v,c.WebMercator,!1,b.clone(m)):f.isWGS84(p)?k(m,t,c.WGS84,!1,b.clone(m)):null:null};a.webMercatorToGeographic=function(m,p=!1,e=b.clone(m)){return k(m,t,c.WGS84,p,e)};a.x2lon=function(m){return m/g.earth.radius};a.xyToLngLat=t;a.y2lat=function(m){return Math.PI/2-2*Math.atan(Math.exp(-1*m/g.earth.radius))};Object.defineProperty(a,"__esModule",{value:!0})})},
"esri/geometry/support/Ellipsoid":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers"],function(a,b){let c=function(){function q(v,t,u,m){this.semiMajorAxis=v;this.flattening=t;this.outerAtmosphereRimWidth=u;this.semiMinorAxis=this.semiMajorAxis*(1-this.flattening);this.halfSemiMajorAxis=this.semiMajorAxis/2;this.halfCircumference=Math.PI*this.semiMajorAxis;this.metersPerDegree=this.halfCircumference/180;this.inverseFlattening=1/(1-this.flattening)-1;this.eccentricitySquared=m?m:
2*this.flattening-this.flattening*this.flattening;this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}b._createClass(q,[{key:"radius",get:function(){return this.semiMajorAxis}}]);return q}();const g=new c(6378137,1/298.257223563,3E5,.006694379990137799),f=new c(3396190,.005886007555525457,23E4),k=new c(1737400,0,0);a.Ellipsoid=c;a.earth=g;a.mars=f;a.moon=k;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/support/contains":function(){define(["exports"],function(a){function b(q,
v){return c(q,v[0],v[1])}function c(q,v,t,u){return v>=q.xmin&&v<=q.xmax&&t>=q.ymin&&t<=q.ymax?null!=u&&q.hasZ?u>=q.zmin&&u<=q.zmax:!0:!1}function g(q,v){if(q=q.rings)if(Array.isArray(q[0][0])){var t=!1;for(let u=0,m=q.length;u<m;u++)t=f(t,q[u],v);v=t}else v=f(!1,q,v);else v=!1;return v}function f(q,v,t){const [u,m]=t;t=0;for(let p=0,e=v.length;p<e;p++){t++;t===e&&(t=0);const [l,h]=v[p],[n,w]=v[t];(h<m&&w>=m||w<m&&h>=m)&&l+(m-h)/(w-h)*(n-l)<u&&(q=!q)}return q}const k=[0,0];a.extentContainsCoords2D=
b;a.extentContainsCoords3D=function(q,v){return c(q,v[0],v[1],v[2])};a.extentContainsExtent=function(q,v){const {xmin:t,ymin:u,zmin:m,xmax:p,ymax:e,zmax:l}=v;return q.hasZ&&v.hasZ?c(q,t,u,m)&&c(q,t,e,m)&&c(q,p,e,m)&&c(q,p,u,m)&&c(q,t,u,l)&&c(q,t,e,l)&&c(q,p,e,l)&&c(q,p,u,l):c(q,t,u)&&c(q,t,e)&&c(q,p,e)&&c(q,p,u)};a.extentContainsMultipoint=function(q,v){if(!v.points||v.points.length)return!1;for(const t of v.points)if(!b(q,t))return!1;return!0};a.extentContainsPoint=function(q,v){return c(q,v.x,v.y,
v.z)};a.polygonContainsCoords=g;a.polygonContainsPoint=function(q,v){k[1]=v.y;k[0]=v.x;return g(q,k)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/support/intersectsBase":function(){define(["exports","./contains"],function(a,b){function c(w,x){return b.extentContainsPoint(w,x)}function g(w,x){var C=w.hasZ&&x.hasZ;if(w.xmin<=x.xmin){var D=x.xmin;if(w.xmax<D)return!1}else if(D=w.xmin,x.xmax<D)return!1;if(w.ymin<=x.ymin){if(D=x.ymin,w.ymax<D)return!1}else if(D=w.ymin,x.ymax<D)return!1;
if(C&&x.hasZ)if(w.zmin<=x.zmin){if(C=x.zmin,w.zmax<C)return!1}else if(C=w.zmin,x.zmax<C)return!1;return!0}function f(w,x){const {points:C,hasZ:D}=x;x=D?b.extentContainsCoords3D:b.extentContainsCoords2D;for(const A of C)if(x(w,A))return!0;return!1}function k(w,x){u[0]=w.xmin;u[1]=w.ymax;m[0]=w.xmax;m[1]=w.ymax;p[0]=w.xmin;p[1]=w.ymin;e[0]=w.xmax;e[1]=w.ymin;for(var C of l)if(b.polygonContainsCoords(x,C))return!0;for(const D of x.rings)if(D.length){x=D[0];if(b.extentContainsCoords2D(w,x))return!0;for(C=
1;C<D.length;C++){const A=D[C];if(b.extentContainsCoords2D(w,A)||v(x,A,h))return!0;x=A}}return!1}function q(w,x){u[0]=w.xmin;u[1]=w.ymax;m[0]=w.xmax;m[1]=w.ymax;p[0]=w.xmin;p[1]=w.ymin;e[0]=w.xmax;e[1]=w.ymin;x=x.paths;for(const C of x){if(!x.length)continue;let D=C[0];if(b.extentContainsCoords2D(w,D))return!0;for(let A=1;A<C.length;A++){const B=C[A];if(b.extentContainsCoords2D(w,B)||v(D,B,h))return!0;D=B}}return!1}function v(w,x,C){for(let D=0;D<C.length;D++)if(t(w,x,C[D][0],C[D][1]))return!0;return!1}
function t(w,x,C,D,A){const [B,r]=w,[z,E]=x,[F,G]=C,[N,K]=D;var I=N-F;w=B-F;x=z-B;const J=K-G;C=r-G;D=E-r;const L=J*x-I*D;if(0===L)return!1;I=(I*C-J*w)/L;w=(x*C-D*w)/L;return 0<=I&&1>=I&&0<=w&&1>=w?(A&&(A[0]=B+I*(z-B),A[1]=r+I*(E-r)),!0):!1}const u=[0,0],m=[0,0],p=[0,0],e=[0,0],l=[u,m,p,e],h=[[p,u],[u,m],[m,e],[e,p]],n=[0,0];a.extentIntersectsExtent=g;a.extentIntersectsMultipoint=f;a.extentIntersectsPoint=c;a.extentIntersectsPolygon=k;a.extentIntersectsPolyline=q;a.getFeatureExtentIntersector=function(w){switch(w){case "esriGeometryEnvelope":case "extent":return g;
case "esriGeometryMultipoint":case "multipoint":return f;case "esriGeometryPoint":case "point":return c;case "esriGeometryPolygon":case "polygon":return k;case "esriGeometryPolyline":case "polyline":return q}};a.isSelfIntersecting=function(w){for(let E=0;E<w.length;E++){const F=w[E];for(var x=0;x<F.length-1;x++){var C=F[x],D=F[x+1];for(var A=E+1;A<w.length;A++)for(var B=0;B<w[A].length-1;B++){var r=w[A][B],z=w[A][B+1];if(t(C,D,r,z,n)&&!(n[0]===C[0]&&n[1]===C[1]||n[0]===r[0]&&n[1]===r[1]||n[0]===D[0]&&
n[1]===D[1]||n[0]===z[0]&&n[1]===z[1]))return!0}}x=F.length;if(!(4>=x))for(C=0;C<x-3;C++)for(D=x-1,0===C&&(D=x-2),A=F[C],B=F[C+1],r=C+2;r<D;r++){z=F[r];const G=F[r+1];if(t(A,B,z,G,n)&&!(n[0]===A[0]&&n[1]===A[1]||n[0]===z[0]&&n[1]===z[1]||n[0]===B[0]&&n[1]===B[1]||n[0]===G[0]&&n[1]===G[1]))return!0}}return!1};a.segmentIntersects=t;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/portal/PortalQueryParams":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/jsonMap ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/subclass ../geometry/Extent ../geometry/SpatialReference ../geometry/support/webMercatorUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){var l;const h=new g.JSONMap({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});c=l=function(n){function w(C){C=n.call(this,C)||this;C.categories=null;C.disableExtraQuery=!1;C.extent=null;C.num=10;C.query=null;C.sortField=null;C.start=1;return C}a._inheritsLoose(w,n);var x=w.prototype;x.clone=function(){return new l({categories:this.categories?f.clone(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?
this.extent.clone():null,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})};x.toRequestOptions=function(C,D){let A;this.categories&&(A=this.categories.map(z=>Array.isArray(z)?JSON.stringify(z):z));let B;if(this.extent){var r=e.project(this.extent,p.WGS84);r&&(B=`${r.xmin},${r.ymin},${r.xmax},${r.ymax}`)}r=this.query;!this.disableExtraQuery&&C.extraQuery&&(r="("+r+")"+C.extraQuery);C={categories:A,bbox:B,q:r,num:this.num,sortField:null,sortOrder:null,
start:this.start};this.sortField&&(C.sortField=this.sortField.split(",").map(z=>h.toJSON(z.trim())).join(","),C.sortOrder=this.sortOrder);return{query:{...D,...C}}};a._createClass(w,[{key:"sortOrder",get:function(){return this._get("sortOrder")||"asc"},set:function(C){"asc"!==C&&"desc"!==C||this._set("sortOrder",C)}}]);return w}(c);b.__decorate([k.property()],c.prototype,"categories",void 0);b.__decorate([k.property()],c.prototype,"disableExtraQuery",void 0);b.__decorate([k.property({type:m})],c.prototype,
"extent",void 0);b.__decorate([k.property()],c.prototype,"num",void 0);b.__decorate([k.property()],c.prototype,"query",void 0);b.__decorate([k.property()],c.prototype,"sortField",void 0);b.__decorate([k.property()],c.prototype,"sortOrder",null);b.__decorate([k.property()],c.prototype,"start",void 0);return c=l=b.__decorate([u.subclass("esri.portal.PortalQueryParams")],c)})},"esri/portal/PortalQueryResult":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){c=function(u){function m(p){p=u.call(this,p)||this;p.nextQueryParams=null;p.queryParams=null;p.results=null;p.total=null;return p}a._inheritsLoose(m,u);return m}(c);b.__decorate([g.property()],c.prototype,"nextQueryParams",void 0);b.__decorate([g.property()],c.prototype,"queryParams",void 0);b.__decorate([g.property()],c.prototype,"results",void 0);b.__decorate([g.property()],c.prototype,"total",void 0);return c=b.__decorate([t.subclass("esri.portal.PortalQueryResult")],
c)})},"esri/portal/PortalUser":function(){define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Error ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass ./PortalFolder ./PortalGroup".split(" "),function(a,b,c,g,f,k,q,v,t,u,m,p,e){var l;f=l=function(h){function n(...x){x=h.call(this,...x)||this;x.access=null;x.created=null;x.culture=null;x.description=
null;x.email=null;x.fullName=null;x.modified=null;x.orgId=null;x.portal=null;x.preferredView=null;x.privileges=null;x.region=null;x.role=null;x.roleId=null;x.sourceJSON=null;x.units=null;x.username=null;x.userType=null;return x}b._inheritsLoose(n,h);var w=n.prototype;w.addItem=function(x){const C=x&&x.item;var D=x&&x.data;x=x&&x.folder;const A={method:"post"};C&&(A.query=C.createPostQuery(),null!=D&&("string"===typeof D?A.query.text=D:"object"===typeof D&&(A.query.text=JSON.stringify(D))));D=this.userContentUrl;
x&&(D+="/"+("string"===typeof x?x:x.id));return this.portal._request(D+"/addItem",A).then(B=>{C.id=B.id;C.portal=this.portal;return C.loaded?C.reload():C.load()})};w.deleteItem=function(x){let C=this.userContentUrl;x.ownerFolder&&(C+="/"+x.ownerFolder);return this.portal._request(C+`/items/${x.id}/delete`,{method:"post"}).then(()=>{x.id=null;x.portal=null})};w.deleteItems=function(x){const C=this.userContentUrl+"/deleteItems";var D=x.map(A=>A.id);return D.length?(D={method:"post",query:{items:D.join(",")}},
this.portal._request(C,D).then(()=>{x.forEach(A=>{A.id=null;A.portal=null})})):Promise.resolve(void 0)};w.fetchFolders=function(){return this.portal._request(this.userContentUrl,{query:{num:1}}).then(x=>x&&x.folders?x.folders.map(C=>{C=p.fromJSON(C);C.portal=this.portal;return C}):[])};w.fetchGroups=function(){return this.portal._request(this.url).then(x=>x&&x.groups?x.groups.map(C=>{C=e.fromJSON(C);C.portal=this.portal;return C}):[])};w.fetchItems=function(x){x||(x={});let C=this.userContentUrl;
x.folder&&(C+="/"+x.folder.id);let D;return(new Promise(function(A,B){a(["./PortalItem"],function(r){A(Object.freeze({__proto__:null,"default":r}))},B)})).then(({default:A})=>{D=A;return this.portal._request(C,{query:{folders:!1,num:x.num||10,start:x.start||1,sortField:x.sortField||"created",sortOrder:x.sortOrder||"asc"}})}).then(A=>{let B;return A&&A.items?(B=A.items.map(r=>{r=D.fromJSON(r);r.portal=this.portal;return r}),Promise.all(B.map(r=>r.load())).catch(r=>r).then(()=>({items:B,nextStart:A.nextStart,
total:A.total}))):{items:[],nextStart:-1,total:0}})};w.fetchTags=function(){return this.portal._request(this.url+"/tags").then(x=>x.tags)};w.getThumbnailUrl=function(x){let C=this.thumbnailUrl;C&&x&&(C+=`&w=${x}`);return C};w.queryFavorites=function(x){return this.favGroupId?(this._favGroup||(this._favGroup=new e({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(x)):Promise.reject(new g("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))};w.toJSON=
function(){throw new g("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented");};n.fromJSON=function(x){if(!x)return null;if(x.declaredClass)throw Error("JSON object is already hydrated");const C=new l;C.sourceJSON=x;C.read(x);return C};b._createClass(n,[{key:"thumbnailUrl",get:function(){const x=this.url,C=this.thumbnail;return x&&C?this.portal._normalizeUrl(`${x}/info/${C}?f=json`):null}},{key:"userContentUrl",get:function(){const x=this.get("portal.restUrl");return x?`${x}/content/users/${this.username}`:
null}},{key:"url",get:function(){const x=this.get("portal.restUrl");return x?`${x}/community/users/${this.username}`:null}}]);return n}(f.JSONSupport);c.__decorate([k.property()],f.prototype,"access",void 0);c.__decorate([k.property({type:Date})],f.prototype,"created",void 0);c.__decorate([k.property()],f.prototype,"culture",void 0);c.__decorate([k.property()],f.prototype,"description",void 0);c.__decorate([k.property()],f.prototype,"email",void 0);c.__decorate([k.property()],f.prototype,"favGroupId",
void 0);c.__decorate([k.property()],f.prototype,"fullName",void 0);c.__decorate([k.property({type:Date})],f.prototype,"modified",void 0);c.__decorate([k.property()],f.prototype,"orgId",void 0);c.__decorate([k.property()],f.prototype,"portal",void 0);c.__decorate([k.property()],f.prototype,"preferredView",void 0);c.__decorate([k.property()],f.prototype,"privileges",void 0);c.__decorate([k.property()],f.prototype,"region",void 0);c.__decorate([k.property()],f.prototype,"role",void 0);c.__decorate([k.property()],
f.prototype,"roleId",void 0);c.__decorate([k.property()],f.prototype,"sourceJSON",void 0);c.__decorate([k.property()],f.prototype,"thumbnail",void 0);c.__decorate([k.property({readOnly:!0})],f.prototype,"thumbnailUrl",null);c.__decorate([k.property()],f.prototype,"units",void 0);c.__decorate([k.property({readOnly:!0})],f.prototype,"userContentUrl",null);c.__decorate([k.property({readOnly:!0})],f.prototype,"url",null);c.__decorate([k.property()],f.prototype,"username",void 0);c.__decorate([k.property()],
f.prototype,"userType",void 0);return f=l=c.__decorate([m.subclass("esri.portal.PortalUser")],f)})},"esri/portal/PortalFolder":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Error ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t,u){g=function(m){function p(e){e=m.call(this,e)||this;e.created=
null;e.id=null;e.portal=null;e.title=null;e.username=null;return e}a._inheritsLoose(p,m);p.prototype.toJSON=function(){throw new c("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented");};a._createClass(p,[{key:"url",get:function(){const e=this.get("portal.restUrl");return e?`${e}/content/users/${this.username}/${this.id}`:null}}]);return p}(g.JSONSupport);b.__decorate([f.property({type:Date})],g.prototype,"created",void 0);b.__decorate([f.property()],g.prototype,"id",void 0);
b.__decorate([f.property()],g.prototype,"portal",void 0);b.__decorate([f.property()],g.prototype,"title",void 0);b.__decorate([f.property({readOnly:!0})],g.prototype,"url",null);b.__decorate([f.property()],g.prototype,"username",void 0);return g=b.__decorate([u.subclass("esri.portal.PortalFolder")],g)})},"esri/portal/PortalGroup":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Error ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass ./PortalQueryParams".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){g=function(p){function e(h){h=p.call(this,h)||this;h.access=null;h.created=null;h.description=null;h.id=null;h.isInvitationOnly=!1;h.modified=null;h.owner=null;h.portal=null;h.snippet=null;h.sortField=null;h.sortOrder=null;h.tags=null;h.title=null;return h}a._inheritsLoose(e,p);var l=e.prototype;l.fetchCategorySchema=function(h){return this.portal._request(this.url+"/categorySchema",h).then(n=>{n=n.categorySchema||[];return n.some(w=>"contentCategorySetsGroupQuery.LivingAtlas"===
w.source)?this._fetchCategorySchemaSet("LivingAtlas",h):n})};l.fetchMembers=function(h){return this.portal._request(this.url+"/users",h)};l.getThumbnailUrl=function(h){let n=this.thumbnailUrl;n&&h&&(n+=`&w=${h}`);return n};l.toJSON=function(){throw new c("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented");};l.queryItems=function(h,n){h=q.ensureType(m,h);if(5<parseFloat(this.portal.currentVersion))return h=h||new m,this.portal._queryPortal(`/content/groups/${this.id}/search`,
h,"PortalItem",n);h=h?h.clone():new m;h.query="group:"+this.id+(h.query?" "+h.query:"");return this.portal.queryItems(h,n)};l._fetchCategorySchemaSet=function(h,n){return this.portal._fetchSelf(this.portal.authMode,!0,n).then(w=>{if(w=w.contentCategorySetsGroupQuery){const x=new m;x.disableExtraQuery=!0;x.num=1;x.query=w;return this.portal.queryGroups(x,n)}throw new c("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found");}).then(w=>{if(w.total){w=w.results[0];const x=
new m;x.num=1;x.query=`typekeywords:"${h}"`;return w.queryItems(x,n)}throw new c("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found");}).then(w=>w.total?w.results[0].fetchData("json",n).then(x=>(x=x&&x.categorySchema)&&x.length?x:[]):[])};a._createClass(e,[{key:"thumbnailUrl",get:function(){const h=this.url,n=this.thumbnail;return h&&n?this.portal._normalizeUrl(`${h}/info/${n}?f=json`):null}},{key:"url",get:function(){const h=this.get("portal.restUrl");return h?h+"/community/groups/"+
this.id:null}}]);return e}(g.JSONSupport);b.__decorate([f.property()],g.prototype,"access",void 0);b.__decorate([f.property({type:Date})],g.prototype,"created",void 0);b.__decorate([f.property()],g.prototype,"description",void 0);b.__decorate([f.property()],g.prototype,"id",void 0);b.__decorate([f.property()],g.prototype,"isInvitationOnly",void 0);b.__decorate([f.property({type:Date})],g.prototype,"modified",void 0);b.__decorate([f.property()],g.prototype,"owner",void 0);b.__decorate([f.property()],
g.prototype,"portal",void 0);b.__decorate([f.property()],g.prototype,"snippet",void 0);b.__decorate([f.property()],g.prototype,"sortField",void 0);b.__decorate([f.property()],g.prototype,"sortOrder",void 0);b.__decorate([f.property()],g.prototype,"tags",void 0);b.__decorate([f.property()],g.prototype,"thumbnail",void 0);b.__decorate([f.property({readOnly:!0})],g.prototype,"thumbnailUrl",null);b.__decorate([f.property()],g.prototype,"title",void 0);b.__decorate([f.property({readOnly:!0})],g.prototype,
"url",null);return g=b.__decorate([u.subclass("esri.portal.PortalGroup")],g)})},"esri/portal/PortalItem":function(){define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../assets ../core/Error ../core/JSONSupport ../core/lang ../core/Loadable ../core/maybe ../core/urlUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../geometry/Extent ./Portal ./PortalItemResource ./PortalRating".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A){var B;k=B=function(r){function z(F){F=r.call(this,F)||this;F.access=null;F.accessInformation=null;F.apiKey=null;F.applicationProxies=null;F.avgRating=null;F.categories=null;F.created=null;F.culture=null;F.description=null;F.extent=null;F.groupCategories=null;F.id=null;F.itemControl=null;F.licenseInfo=null;F.modified=null;F.name=null;F.numComments=null;F.numRatings=null;F.numViews=null;F.owner=null;F.ownerFolder=null;F.portal=null;F.screenshots=null;
F.size=null;F.snippet=null;F.sourceJSON=null;F.tags=null;F.title=null;F.type=null;F.typeKeywords=null;F.url=null;return F}b._inheritsLoose(z,r);z.from=function(F){return p.ensureClass(B,F)};var E=z.prototype;E.destroy=function(){this.portal=null};E.readExtent=function(F){return F&&F.length?new x(F[0][0],F[0][1],F[1][0],F[1][1]):null};E.load=function(F){this.portal||(this.portal=C.getDefault());const G=this.portal.load(F).then(()=>this.sourceJSON?this.sourceJSON:this.id&&this.itemUrl?this.portal._request(this.itemUrl,
{signal:t.isSome(F)?F.signal:null,query:{token:this.apiKey}}):{}).then(N=>{this.sourceJSON=N;this.read(N)});this.addResolvingPromise(G);return Promise.resolve(this)};E.addRating=function(F){const G={method:"post",query:{}};F instanceof A&&(F=F.rating);isNaN(F)||"number"!==typeof F||(G.query.rating=F);return this.portal._request(this.itemUrl+"/addRating",G).then(()=>new A({rating:F,created:new Date}))};E.clone=function(){const F={access:this.access,accessInformation:this.accessInformation,applicationProxies:q.clone(this.applicationProxies),
avgRating:this.avgRating,categories:q.clone(this.categories),created:q.clone(this.created),culture:this.culture,description:this.description,extent:q.clone(this.extent),groupCategories:q.clone(this.groupCategories),id:this.id,itemControl:this.itemControl,licenseInfo:this.licenseInfo,modified:q.clone(this.modified),name:this.name,numComments:this.numComments,numRatings:this.numRatings,numViews:this.numViews,owner:this.owner,ownerFolder:this.ownerFolder,portal:this.portal,screenshots:q.clone(this.screenshots),
size:this.size,snippet:this.snippet,tags:q.clone(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:q.clone(this.typeKeywords),url:this.url};this.loaded&&(F.loadStatus="loaded");return(new B({sourceJSON:this.sourceJSON})).set(F)};E.createPostQuery=function(){const F=this.toJSON();for(const G in F)"tags"===G&&null!==F[G]&&(F[G]=F[G].join(", ")),"typeKeywords"===G&&null!==F[G]&&(F[G]=F[G].join(", ")),"extent"===G&&F[G]&&(F[G]=JSON.stringify(F[G]));return F};E.deleteRating=
function(){return this.portal._request(this.itemUrl+"/deleteRating",{method:"post"}).then(()=>{})};E.fetchData=function(F="json",G){return this.portal._request(this.itemUrl+"/data",{responseType:F,...G,query:{token:this.apiKey}})};E.fetchRating=function(F){return this.portal._request(this.itemUrl+"/rating",{query:{token:this.apiKey},...F}).then(G=>null!=G.rating?(G.created=new Date(G.created),new A(G)):null)};E.fetchRelatedItems=function(F,G){return this.portal._requestToTypedArray(this.itemUrl+"/relatedItems",
{query:{...F,token:this.apiKey},...G},B)};E.getThumbnailUrl=function(F){let G=this.thumbnailUrl;G&&F&&(G+=`&w=${F}`);return G};E.reload=function(){return this.portal._request(this.itemUrl,{cacheBust:!0,query:{token:this.apiKey}}).then(F=>{this.sourceJSON=F;this.read(F);return this})};E.update=function(F){return this.id?this.load().then(()=>this.portal._signIn()).then(()=>{const G=F&&F.data,N={method:"post"};N.query=this.createPostQuery();for(const K in N.query)null===N.query[K]&&(N.query[K]="");N.query.clearEmptyFields=
!0;null!=G&&("string"===typeof G?N.query.text=G:"object"===typeof G&&(N.query.text=JSON.stringify(G)));return this.portal._request(`${this.userItemUrl}/update`,N).then(()=>this.reload())}):Promise.reject(new f("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))};E.updateThumbnail=function(F){return this.id?this.load().then(()=>this.portal._signIn()).then(()=>{const G=F.thumbnail,N=F.filename,K={method:"post"};if("string"===typeof G)u.isDataProtocol(G)?K.query={data:G}:
K.query={url:u.makeAbsolute(G)},t.isSome(N)&&(K.query.filename=N);else{const I=new FormData;t.isSome(N)?I.append("file",G,N):I.append("file",G);K.body=I}return this.portal._request(`${this.userItemUrl}/updateThumbnail`,K).then(()=>this.reload())}):Promise.reject(new f("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))};E.fetchResources=function(){var F=b._asyncToGenerator(function*(G={},N){return(yield new Promise(function(K,I){a(["./support/resourceUtils"],K,I)})).fetchResources(this,
G,N)});return function(){return F.apply(this,arguments)}}();E.addResource=function(){var F=b._asyncToGenerator(function*(G,N,K){const I=yield new Promise(function(J,L){a(["./support/resourceUtils"],J,L)});G.portalItem=this;return I.addOrUpdateResource(G,"add",N,K)});return function(G,N,K){return F.apply(this,arguments)}}();E.removeResource=function(){var F=b._asyncToGenerator(function*(G,N){const K=yield new Promise(function(I,J){a(["./support/resourceUtils"],I,J)});if(G.portalItem&&G.portalItem.itemUrl!==
this.itemUrl)throw new f("removeresource:portal-item-mismatch","The portal item associated with the provided resource does not match the item");return K.removeResource(this,G,N)});return function(G,N){return F.apply(this,arguments)}}();E.removeAllResources=function(){var F=b._asyncToGenerator(function*(G){return(yield new Promise(function(N,K){a(["./support/resourceUtils"],N,K)})).removeAllResources(this,G)});return function(G){return F.apply(this,arguments)}}();E.resourceFromPath=function(F){return new D({portalItem:this,
path:F})};E.toJSON=function(){var F=this.extent;F={created:this.created&&this.created.getTime(),description:this.description,extent:F&&[[F.xmin,F.ymin],[F.xmax,F.ymax]],id:this.id,modified:this.modified&&this.modified.getTime(),name:this.name,owner:this.owner,ownerFolder:this.ownerFolder,snippet:this.snippet,tags:this.tags,thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:this.typeKeywords,url:this.url};return q.fixJson(F)};z.fromJSON=function(F){if(!F)return null;if(F.declaredClass)throw Error("JSON object is already hydrated");
return new B({sourceJSON:F})};E._getPostQuery=function(){const F=this.toJSON();for(const G in F)"tags"===G&&null!==F[G]&&(F[G]=F[G].join(", ")),"typeKeywords"===G&&null!==F[G]&&(F[G]=F[G].join(", ")),"extent"===G&&F[G]&&(F[G]=JSON.stringify(F[G]));return F};b._createClass(z,[{key:"displayName",get:function(){const F=this.type,G=this.typeKeywords||[];let N=F;"Feature Service"===F||"Feature Collection"===F?N=-1<G.indexOf("Table")?"Table":-1<G.indexOf("Route Layer")?"Route Layer":-1<G.indexOf("Markup")?
"Markup":"Feature Layer":"Image Service"===F?N=-1<G.indexOf("Elevation 3D Layer")?"Elevation Layer":-1<G.indexOf("Tiled Imagery")?"Tiled Imagery Layer":"Imagery Layer":"Scene Service"===F?N="Scene Layer":"Scene Package"===F?N="Scene Layer Package":"Stream Service"===F?N="Feature Layer":"Geoprocessing Service"===F&&this.portal&&this.portal.isPortal?N=-1<G.indexOf("Web Tool")?"Tool":"Geoprocessing Service":"Geocoding Service"===F?N="Locator":"Geoenrichment Service"===F?N="GeoEnrichment Service":"Microsoft Powerpoint"===
F?N="Microsoft PowerPoint":"GeoJson"===F?N="GeoJSON":"Globe Service"===F?N="Globe Layer":"Vector Tile Service"===F?N="Tile Layer":"netCDF"===F?N="NetCDF":"Map Service"===F?N=-1===G.indexOf("Spatiotemporal")&&(-1<G.indexOf("Hosted Service")||-1<G.indexOf("Tiled"))&&-1===G.indexOf("Relational")?"Tile Layer":"Map Image Layer":F&&-1<F.toLowerCase().indexOf("add in")?N=F.replace(/(add in)/gi,"Add-In"):"datastore catalog service"===F?N="Big Data File Share":"Compact Tile Package"===F?N="Tile Package (tpkx)":
"OGCFeatureServer"===F&&(N="OGC Feature Layer");return N}},{key:"iconUrl",get:function(){var F=this.type&&this.type.toLowerCase()||"";const G=this.typeKeywords||[];let N=!1,K=!1,I=!1,J=!1,L=!1,Q=!1;0<F.indexOf("service")||"feature collection"===F||"kml"===F||"wms"===F||"wmts"===F||"wfs"===F?(N=-1<G.indexOf("Hosted Service"),"feature service"===F||"feature collection"===F||"kml"===F||"wfs"===F?(K=-1<G.indexOf("Table"),I=-1<G.indexOf("Route Layer"),J=-1<G.indexOf("Markup"),L=-1!==G.indexOf("Spatiotemporal"),
Q=-1!==G.indexOf("UtilityNetwork"),F=L&&K?"spatiotemporaltable":K?"table":I?"routelayer":J?"markup":L?"spatiotemporal":N?"featureshosted":Q?"utilitynetwork":"features"):F="map service"===F||"wms"===F||"wmts"===F?N||-1<G.indexOf("Tiled")||"wmts"===F?"maptiles":"mapimages":"scene service"===F?-1<G.indexOf("Line")?"sceneweblayerline":-1<G.indexOf("3DObject")?"sceneweblayermultipatch":-1<G.indexOf("Point")?"sceneweblayerpoint":-1<G.indexOf("IntegratedMesh")?"sceneweblayermesh":-1<G.indexOf("PointCloud")?
"sceneweblayerpointcloud":-1<G.indexOf("Polygon")?"sceneweblayerpolygon":-1<G.indexOf("Building")?"sceneweblayerbuilding":-1<G.indexOf("Voxel")?"sceneweblayervoxel":"sceneweblayer":"image service"===F?-1<G.indexOf("Elevation 3D Layer")?"elevationlayer":-1<G.indexOf("Tiled Imagery")?"tiledimagerylayer":"imagery":"stream service"===F?"streamlayer":"vector tile service"===F?"vectortile":"datastore catalog service"===F?"datastorecollection":"geocoding service"===F?"geocodeservice":"geoprocessing service"===
F?-1<G.indexOf("Web Tool")&&this.portal&&this.portal.isPortal?"tool":"layers":"layers"):F="web map"===F||"cityengine web scene"===F?"maps":"web scene"===F?-1<G.indexOf("ViewingMode-Local")?"webscenelocal":"websceneglobal":"web mapping application"===F||"mobile application"===F||"application"===F||"operation view"===F||"desktop application"===F?"apps":"map document"===F||"map package"===F||"published map"===F||"scene document"===F||"globe document"===F||"basemap package"===F||"mobile basemap package"===
F||"mobile map package"===F||"project package"===F||"project template"===F||"pro map"===F||"layout"===F||"layer"===F&&-1<G.indexOf("ArcGIS Pro")||"explorer map"===F&&G.indexOf("Explorer Document")?"mapsgray":"service definition"===F||"csv"===F||"shapefile"===F||"cad drawing"===F||"geojson"===F||"360 vr experience"===F||"netcdf"===F||"administrative report"===F?"datafiles":"explorer add in"===F||"desktop add in"===F||"windows viewer add in"===F||"windows viewer configuration"===F?"appsgray":"arcgis pro add in"===
F||"arcgis pro configuration"===F?"addindesktop":"rule package"===F||"file geodatabase"===F||"sqlite geodatabase"===F||"csv collection"===F||"kml collection"===F||"windows mobile package"===F||"map template"===F||"desktop application template"===F||"gml"===F||"arcpad package"===F||"code sample"===F||"form"===F||"document link"===F||"earth configuration"===F||"operations dashboard add in"===F||"rules package"===F||"image"===F||"workflow manager package"===F||"explorer map"===F&&-1<G.indexOf("Explorer Mapping Application")||
-1<G.indexOf("Document")?"datafilesgray":"network analysis service"===F||"geoprocessing service"===F||"geodata service"===F||"geometry service"===F||"geoprocessing package"===F||"locator package"===F||"geoprocessing sample"===F||"workflow manager service"===F?"toolsgray":"layer"===F||"layer package"===F||"explorer layer"===F?"layersgray":"scene package"===F?"scenepackage":"mobile scene package"===F?"mobilescenepackage":"tile package"===F||"compact tile package"===F?"tilepackage":"task file"===F?"taskfile":
"report template"===F?"report-template":"statistical data collection"===F?"statisticaldatacollection":"insights workbook"===F?"workbook":"insights model"===F?"insightsmodel":"insights page"===F?"insightspage":"insights theme"===F?"insightstheme":"hub initiative"===F?"hubinitiative":"hubpage"===F?"hubpage":"hub event"===F?"hubevent":"hub site application"===F?"hubsite":"relational database connection"===F?"relationaldatabaseconnection":"big data file share"===F?"datastorecollection":"image collection"===
F?"imagecollection":"style"===F?"style":"desktop style"===F?"desktopstyle":"dashboard"===F?"dashboard":"raster function template"===F?"rasterprocessingtemplate":"vector tile package"===F?"vectortilepackage":"ortho mapping project"===F?"orthomappingproject":"ortho mapping template"===F?"orthomappingtemplate":"solution"===F?"solutions":"geopackage"===F?"geopackage":"deep learning package"===F?"deeplearningpackage":"real time analytic"===F?"realtimeanalytics":"big data analytic"===F?"bigdataanalytics":
"feed"===F?"feed":"excalibur imagery project"===F?"excaliburimageryproject":"notebook"===F?"notebook":"storymap"===F?"storymap":"survey123 add in"===F?"survey123addin":"mission"===F?"mission":"mission report"===F?"missionreport":"quickcapture project"===F?"quickcaptureproject":"pro report"===F?"proreport":"urban model"===F?"urbanmodel":"web experience"===F?"experiencebuilder":"web experience template"===F?"webexperiencetemplate":"workflow"===F?"workflow":"insights script"===F?"insightsscript":"kernel gateway connection"===
F?"kernelgatewayconnection":"hub initiative template"===F?"hubinitiativetemplate":"storymap theme"===F?"storymaptheme":"knowledge graph"===F?"knowledgegraph":"native application"===F?"nativeapp":"native application installer"===F?"nativeappinstaller":"link chart"===F?"linkchart":"investigation"===F?"investigation":"ogcfeatureserver"===F?"features":"pro project"===F?"proproject":"insights workbook package"===F?"insightsworkbookpackage":"maps";return F?g.getAssetUrl("esri/images/portal/"+F+"16.png"):
null}},{key:"isLayer",get:function(){return-1<"Map Service;Feature Service;Feature Collection;Scene Service;Image Service;Stream Service;Vector Tile Service;WMTS;WMS".split(";").indexOf(this.type)}},{key:"itemUrl",get:function(){const F=this.get("portal.restUrl");return F?F+"/content/items/"+this.id:null}},{key:"thumbnailUrl",get:function(){const F=this.itemUrl,G=this.thumbnail;return F&&G?this.portal._normalizeUrl(`${F}/info/${G}?f=json`):null}},{key:"userItemUrl",get:function(){const F=this.get("portal.restUrl");
if(!F)return null;const G=this.owner||this.get("portal.user.username");return G?`${F}/content/users/${this.ownerFolder?`${G}/${this.ownerFolder}`:G}/items/${this.id}`:null}}]);return z}(k.JSONSupportMixin(v));c.__decorate([m.property({type:["private","shared","org","public"]})],k.prototype,"access",void 0);c.__decorate([m.property()],k.prototype,"accessInformation",void 0);c.__decorate([m.property({type:String})],k.prototype,"apiKey",void 0);c.__decorate([m.property({json:{read:{source:"appProxies"}}})],
k.prototype,"applicationProxies",void 0);c.__decorate([m.property()],k.prototype,"avgRating",void 0);c.__decorate([m.property()],k.prototype,"categories",void 0);c.__decorate([m.property({type:Date})],k.prototype,"created",void 0);c.__decorate([m.property()],k.prototype,"culture",void 0);c.__decorate([m.property()],k.prototype,"description",void 0);c.__decorate([m.property({readOnly:!0})],k.prototype,"displayName",null);c.__decorate([m.property({type:x})],k.prototype,"extent",void 0);c.__decorate([n.reader("extent")],
k.prototype,"readExtent",null);c.__decorate([m.property()],k.prototype,"groupCategories",void 0);c.__decorate([m.property({readOnly:!0})],k.prototype,"iconUrl",null);c.__decorate([m.property()],k.prototype,"id",void 0);c.__decorate([m.property({readOnly:!0})],k.prototype,"isLayer",null);c.__decorate([m.property()],k.prototype,"itemControl",void 0);c.__decorate([m.property({readOnly:!0})],k.prototype,"itemUrl",null);c.__decorate([m.property()],k.prototype,"licenseInfo",void 0);c.__decorate([m.property({type:Date})],
k.prototype,"modified",void 0);c.__decorate([m.property()],k.prototype,"name",void 0);c.__decorate([m.property()],k.prototype,"numComments",void 0);c.__decorate([m.property()],k.prototype,"numRatings",void 0);c.__decorate([m.property()],k.prototype,"numViews",void 0);c.__decorate([m.property()],k.prototype,"owner",void 0);c.__decorate([m.property()],k.prototype,"ownerFolder",void 0);c.__decorate([m.property({type:C})],k.prototype,"portal",void 0);c.__decorate([m.property()],k.prototype,"screenshots",
void 0);c.__decorate([m.property()],k.prototype,"size",void 0);c.__decorate([m.property()],k.prototype,"snippet",void 0);c.__decorate([m.property()],k.prototype,"sourceJSON",void 0);c.__decorate([m.property()],k.prototype,"tags",void 0);c.__decorate([m.property()],k.prototype,"thumbnail",void 0);c.__decorate([m.property({readOnly:!0})],k.prototype,"thumbnailUrl",null);c.__decorate([m.property()],k.prototype,"title",void 0);c.__decorate([m.property()],k.prototype,"type",void 0);c.__decorate([m.property()],
k.prototype,"typeKeywords",void 0);c.__decorate([m.property()],k.prototype,"url",void 0);c.__decorate([m.property({readOnly:!0})],k.prototype,"userItemUrl",null);return k=B=c.__decorate([w.subclass("esri.portal.PortalItem")],k)})},"esri/portal/PortalItemResource":function(){define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/Error ../core/Logger ../core/maybe ../core/urlUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/decorators/cast ../core/jsonMap ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){const l=k.getLogger("esri.portal.PortalItemResource");g=function(h){function n(x){x=h.call(this,x)||this;x.portalItem=null;return x}b._inheritsLoose(n,h);var w=n.prototype;w.normalizeCtorArgs=function(x){return x&&x.portalItem&&x.path?{...x,path:this.normalizePath(x.path,x.portalItem)}:x};w._castPath=function(x){return this.normalizePath(x,this.portalItem)};w.fetch=function(x="json",C){const D=this.url;if(q.isNone(D))throw new f("portal-item-resource:fetch","Portal item resource does not refer to a valid item or path");
return this.portalItem.portal._request(D,{responseType:x,query:{token:this.portalItem.apiKey},signal:q.get(C,"signal")})};w.update=function(){var x=b._asyncToGenerator(function*(C,D){return(yield new Promise(function(A,B){a(["./support/resourceUtils"],A,B)})).addOrUpdateResource(this,"update",C,D)});return function(C,D){return x.apply(this,arguments)}}();w.hasPath=function(){return q.isSome(this.path)};w.normalizePath=function(x,C){if(q.isNone(x))return x;x=x.replace(/^\/+/,"");q.isSome(C)&&v.isAbsolute(x)&&
(x=v.makeRelative(x,C.itemUrl));return x.replace(/^\/+/,"").replace(/^(\.\/)?resources\//,"")};b._createClass(n,[{key:"path",set:function(x){q.isSome(x)&&v.isAbsolute(x)?l.error("portalitemresource:invalid-path","A portal item resource path must be relative"):this._set("path",x)}},{key:"url",get:function(){return this.portalItem&&this.path?`${this.portalItem.itemUrl}/resources/${this.path}`:null}},{key:"itemRelativeUrl",get:function(){return this.portalItem&&this.path?`./resources/${this.path}`:null}}]);
return n}(g);c.__decorate([t.property()],g.prototype,"portalItem",void 0);c.__decorate([t.property({type:String,value:null})],g.prototype,"path",null);c.__decorate([m.cast("path")],g.prototype,"_castPath",null);c.__decorate([t.property({type:String,readOnly:!0})],g.prototype,"url",null);c.__decorate([t.property({type:String,readOnly:!0})],g.prototype,"itemRelativeUrl",null);return g=c.__decorate([e.subclass("esri.portal.PortalItemResource")],g)})},"esri/portal/PortalRating":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){c=function(u){function m(p){p=u.call(this,p)||this;p.created=null;p.rating=null;return p}a._inheritsLoose(m,u);return m}(c);b.__decorate([g.property()],c.prototype,"created",void 0);b.__decorate([g.property()],c.prototype,"rating",void 0);return c=b.__decorate([t.subclass("esri.portal.PortalRating")],c)})},"esri/support/basemapDefinitions":function(){define(["exports","../chunks/_rollupPluginBabelHelpers","../assets","../intl/messages"],function(a,b,c,g){function f(){f=
b._asyncToGenerator(function*(k){if(k){var q=-1<k.indexOf("-vector")?k.slice(0,k.indexOf("-vector")):k,v=yield g.fetchMessageBundle("esri/t9n/basemaps");return v[k]||v[q]}});return f.apply(this,arguments)}a.esriBasemapDefinitions={streets:{id:"streets",get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets.jpg")},baseMapLayers:[{id:"streets-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Street Map",
showLegend:!1,visibility:!0,opacity:1}]},satellite:{id:"satellite",get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/satellite.jpg")},baseMapLayers:[{id:"satellite-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1}]},hybrid:{id:"hybrid",get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/hybrid.jpg")},baseMapLayers:[{id:"hybrid-base-layer",
url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1},{id:"hybrid-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Boundaries and Places",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},terrain:{id:"terrain",get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/terrain.jpg")},
baseMapLayers:[{id:"terrain-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Terrain Base",showLegend:!1,visibility:!0,opacity:1},{id:"terrain-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Reference Overlay",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},topo:{id:"topo",
get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/topo.jpg")},baseMapLayers:[{id:"topo-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Topo Map",showLegend:!1,visibility:!0,opacity:1}]},gray:{id:"gray",get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/gray.jpg")},baseMapLayers:[{id:"gray-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer",
layerType:"ArcGISTiledMapServiceLayer",title:"World Light Gray Base",showLegend:!1,visibility:!0,opacity:1},{id:"gray-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Light Gray Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},"dark-gray":{id:"dark-gray",get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/dark-gray.jpg")},baseMapLayers:[{id:"dark-gray-base-layer",
url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Dark Gray Base",showLegend:!1,visibility:!0,opacity:1},{id:"dark-gray-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Dark Gray Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},oceans:{id:"oceans",get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/oceans.jpg")},
baseMapLayers:[{id:"oceans-base-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Base",showLegend:!1,visibility:!0,opacity:1},{id:"oceans-reference-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},"national-geographic":{id:"national-geographic",
get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/national-geographic.jpg")},baseMapLayers:[{id:"national-geographic-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer",title:"NatGeo World Map",showLegend:!1,layerType:"ArcGISTiledMapServiceLayer",visibility:!0,opacity:1}]},osm:{id:"osm",get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/osm.jpg")},baseMapLayers:[{id:"osm-base-layer",layerType:"OpenStreetMap",title:"Open Street Map",showLegend:!1,
visibility:!0,opacity:1}]},"dark-gray-vector":{id:"dark-gray-vector",get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/dark-gray-vector.jpg")},baseMapLayers:[{id:"dark-gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/5e9b3685f4c24d8781073dd928ebda50/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Base",visibility:!0,opacity:1},{id:"dark-gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/747cb7a5329c478cbe6981076cc879c5/resources/styles/root.json",
layerType:"VectorTileLayer",title:"Dark Gray Reference",isReference:!0,visibility:!0,opacity:1}]},"gray-vector":{id:"gray-vector",get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/gray-vector.jpg")},baseMapLayers:[{id:"gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/291da5eab3a0412593b66d384379f89f/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Base",visibility:!0,opacity:1},{id:"gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/1768e8369a214dfab4e2167d5c5f2454/resources/styles/root.json",
layerType:"VectorTileLayer",title:"Light Gray Reference",isReference:!0,visibility:!0,opacity:1}]},"streets-vector":{id:"streets-vector",get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-vector.jpg")},baseMapLayers:[{id:"streets-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/de26a3cf4cc9451298ea173c4b324736/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets",visibility:!0,opacity:1}]},"topo-vector":{id:"topo-vector",get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/topo-vector.jpg")},
baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"topo-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Topo",visibility:!0,opacity:1}]},"streets-night-vector":{id:"streets-night-vector",
get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-night.jpg")},baseMapLayers:[{id:"streets-night-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/86f556a2d1fd468181855a35e344567f/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Night",visibility:!0,opacity:1}]},"streets-relief-vector":{id:"streets-relief-vector",get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-relief.jpg")},baseMapLayers:[{id:"world-hillshade-layer",
url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"streets-relief-vector-base-layer",styleUrl:"//www.arcgis.com/sharing/rest/content/items/b266e6d17fc345b498345613930fbd76/resources/styles/root.json",title:"World Streets Relief",layerType:"VectorTileLayer",visibility:!0,opacity:1}]},"streets-navigation-vector":{id:"streets-navigation-vector",get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-navigation.jpg")},
baseMapLayers:[{id:"streets-navigation-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Navigation",visibility:!0,opacity:1}]},"arcgis-imagery":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/hybrid.jpg")},title:"Imagery Hybrid",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Imagery",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"},
{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-imagery-standard":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/satellite.jpg")},title:"Imagery",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Imagery",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"}]},"arcgis-imagery-labels":{title:"Hybrid [Reference]",
baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-light-gray":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/gray-vector.jpg")},title:"Light Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Base",title:"Light Gray Canvas Base"},{layerType:"VectorTileLayer",
styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Labels",title:"Light Gray Canvas Labels",isReference:!0}]},"arcgis-dark-gray":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/dark-gray.jpg")},title:"Dark Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Base",title:"Dark Gray Canvas Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Labels",
title:"Dark Gray Canvas Labels",isReference:!0}]},"arcgis-navigation":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-navigation.jpg")},title:"Navigation",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Navigation",title:"World Navigation Map"}]},"arcgis-navigation-night":{title:"Navigation (Dark Mode)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:NavigationNight",
title:"World Navigation Map (Dark Mode)"}]},"arcgis-streets":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-vector.jpg")},title:"Streets",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Streets",title:"World Street Map"}]},"arcgis-streets-night":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-night.jpg")},title:"Streets (Night)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsNight",
title:"World Street Map (Night)"}]},"arcgis-streets-relief":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-relief.jpg")},title:"Streets (with Relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsRelief:Base",title:"World Street Map (with Relief)"}]},
"arcgis-topographic":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/topo.jpg")},title:"Topographic",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Topographic:Base",title:"World Topographic Map"}]},"arcgis-oceans":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/oceans.jpg")},
title:"Oceans",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Ocean Base",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Oceans:Labels",title:"World Ocean Reference",isReference:!0}]},"osm-standard":{title:"OpenStreetMap",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Standard",
title:"OpenStreetMap"}]},"osm-standard-relief":{title:"OpenStreetMap (with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StandardRelief:Base",layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},"osm-streets":{title:"OpenStreetMap (Streets)",baseMapLayers:[{layerType:"VectorTileLayer",
styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Streets",title:"OpenStreetMap (Streets)"}]},"osm-streets-relief":{title:"OpenStreetMap (Streets with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StreetsRelief:Base",layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},
"osm-light-gray":{title:"OpenStreetMap (Light Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Base",title:"OSM (Light Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Labels",title:"OSM (Light Gray Reference)",isReference:!0}]},"osm-dark-gray":{title:"OpenStreetMap (Dark Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",
styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Base",title:"OSM (Dark Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Labels",title:"OSM (Dark Gray Reference)",isReference:!0}]},"arcgis-terrain":{title:"Terrain with Labels",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},
{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Base",title:"World Terrain Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Detail",title:"World Terrain Reference",isReference:!0}]},"arcgis-community":{title:"Community",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community",title:"Community"}]},
"arcgis-charted-territory":{title:"Charted Territory",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ChartedTerritory:Base",title:"Charted Territory"}]},"arcgis-colored-pencil":{title:"Colored Pencil",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ColoredPencil",
title:"Colored Pencil"}]},"arcgis-nova":{title:"Nova",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Nova",title:"Nova"}]},"arcgis-modern-antique":{title:"Modern Antique",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ModernAntique:Base",
title:"Modern Antique"}]},"arcgis-midcentury":{title:"Mid-Century",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Midcentury",title:"Mid-Century"}]},"arcgis-newspaper":{title:"Newspaper",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Newspaper",title:"Newspaper"}]},"arcgis-hillshade-light":{title:"Hillshade",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",
showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"}]},"arcgis-hillshade-dark":{title:"Hillshade (Dark)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade (Dark)",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade_Dark/MapServer"}]}};a.getBasemapTitle=function(k){return f.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0})})},
"esri/webdoc/support/writeUtils":function(){define("exports ../../core/Error ../../core/lang ../../core/maybe ../../core/object ../../core/accessorSupport/extensions/serializableProperty/writer".split(" "),function(a,b,c,g,f,k){function q(m){return!("feature"!==m.type||m.url||!m.source||"memory"!==m.source.type)}function v(m,p){"maxScale"in m&&(p.maxScale=k.numberToJSON(m.maxScale));"minScale"in m&&(p.minScale=k.numberToJSON(m.minScale))}const t=new Set("bing-maps imagery imagery-tile map-image open-street-map tile unknown unsupported vector-tile web-tile".split(" ")),
u=new Set("csv feature geo-rss group imagery imagery-tile kml map-image map-notes ogc-feature tile unknown unsupported vector-tile web-tile wfs".split(" "));a.disableRestrictedWriting=function(m){t.add(m);u.add(m)};a.enableRestrictedWriting=function(m){t.delete(m);u.delete(m)};a.getLayerJSON=function(m,p,e){if(!("write"in m&&m.write))return e&&e.messages&&e.messages.push(new b("layer:unsupported",`Layers (${m.title}, ${m.id}) of type '${m.declaredClass}' cannot be persisted`,{layer:m})),null;if(e.restrictedWebMapWriting){var l=
"basemap"===e.layerContainerType?t:"operational-layers"===e.layerContainerType?u:null;l=g.isSome(l)?l.has(m.type)&&!q(m):!0}else l=!0;if(l)return p={},m.write(p,e)?p:null;if(g.isSome(p)&&(e=p=c.clone(p),q(m)?(l=(l=f.getDeepValue("featureCollection.layers",e))&&l[0]&&l[0].layerDefinition)&&v(m,l):"stream"===m.type?(l=e.layerDefinition=e.layerDefinition||{},v(m,l)):"group"!==m.type&&v(m,e),"blendMode"in m&&(e.blendMode=m.blendMode,"normal"===e.blendMode&&delete e.blendMode),e.opacity=k.numberToJSON(m.opacity),
e.title=m.title||"Layer",e.visibility=m.visible,"legendEnabled"in m&&"wmts"!==m.type))if(q(m)){if(e=e.featureCollection)e.showLegend=m.legendEnabled}else e.showLegend=m.legendEnabled;return p};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/Ground":function(){define("require ./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./Color ./core/Collection ./core/collectionUtils ./core/compilerUtils ./core/Error ./core/JSONSupport ./core/lang ./core/Loadable ./core/loadAll ./core/Logger ./core/promiseUtils ./core/accessorSupport/decorators/property ./core/accessorSupport/ensureType ./core/has ./core/jsonMap ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer ./ground/NavigationConstraint ./webdoc/support/opacityUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B){function r(F){return"elevation"===F.type||F&&"createElevationSampler"in F}var z;const E=e.getLogger("esri.Ground");t=z=function(F){function G(K){var I=F.call(this,K)||this;I.opacity=1;I.surfaceColor=null;I.navigationConstraint=null;I.layers=new f;I.layers.on("after-add",J=>{J=J.item;J.parent&&J.parent!==b._assertThisInitialized(I)&&"remove"in J.parent&&J.parent.remove(J);J.parent=b._assertThisInitialized(I);"elevation"!==J.type&&"base-elevation"!==
J.type&&E.error(`Layer '${J.title}, id:${J.id}' of type '${J.type}' is not supported as a ground layer and will therefore be ignored. Only layers of type 'elevation' are supported.`)});I.layers.on("after-remove",J=>{J.item.parent=null});return I}b._inheritsLoose(G,F);var N=G.prototype;N.initialize=function(){this.when().catch(K=>{E.error("#load()","Failed to load ground",K)});this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)};N.destroy=function(){const K=this.layers.removeAll();
for(const I of K)I.destroy();this.layers.destroy()};N.normalizeCtorArgs=function(K){K&&"resourceInfo"in K&&(this._set("resourceInfo",K.resourceInfo),K={...K},delete K.resourceInfo);return K};N.writeLayers=function(K,I,J,L){const Q=[];K&&(L={...L,layerContainerType:"ground"},K.forEach(W=>{if("write"in W){const V={};q.typeCast(W)().write(V,L)&&Q.push(V)}else L&&L.messages&&L.messages.push(new v("layer:unsupported",`Layers (${W.title}, ${W.id}) of type '${W.declaredClass}' cannot be persisted in the ground`,
{layer:W}))}));I.layers=Q};N.load=function(K){this.addResolvingPromise(this._loadFromSource(K));return Promise.resolve(this)};N.loadAll=function(){return p.loadAll(this,K=>{K(this.layers)})};N.queryElevation=function(){var K=b._asyncToGenerator(function*(I,J){yield this.load({signal:null==J?void 0:J.signal});var {ElevationQuery:L}=yield new Promise(function(W,V){a(["./layers/support/ElevationQuery"],W,V)});l.throwIfAborted(J);L=new L;const Q=this.layers.filter(r).toArray();return L.queryAll(Q,I,J)});
return function(I,J){return K.apply(this,arguments)}}();N.createElevationSampler=function(){var K=b._asyncToGenerator(function*(I,J){yield this.load({signal:null==J?void 0:J.signal});var {ElevationQuery:L}=yield new Promise(function(W,V){a(["./layers/support/ElevationQuery"],W,V)});l.throwIfAborted(J);L=new L;const Q=this.layers.filter(r).toArray();return L.createSamplerAll(Q,I,J)});return function(I,J){return K.apply(this,arguments)}}();N.clone=function(){const K={opacity:this.opacity,surfaceColor:u.clone(this.surfaceColor),
navigationConstraint:u.clone(this.navigationConstraint),layers:this.layers.slice()};this.loaded&&(K.loadStatus="loaded");return(new z({resourceInfo:this.resourceInfo})).set(K)};N.read=function(K,I){this.resourceInfo||this._set("resourceInfo",{data:K,context:I});F.prototype.read.call(this,K,I)};N._loadFromSource=function(K){const I=this.resourceInfo;return I?this._loadLayersFromJSON(I.data,I.context,K):Promise.resolve(null)};N._loadLayersFromJSON=function(K,I,J){const L=I&&I.origin||"web-scene",Q=
I&&I.portal||null,W=I&&I.url||null;return(new Promise(function(V,P){a(["./layers/support/layersCreator"],V,P)})).then(({populateOperationalLayers:V})=>{l.throwIfAborted(J);const P=[];K.layers&&Array.isArray(K.layers)&&P.push(V(this.layers,K.layers,{context:{origin:L,url:W,portal:Q,layerContainerType:"ground"},defaultLayerType:"ArcGISTiledElevationServiceLayer"}));return l.eachAlways(P)}).then(()=>{})};b._createClass(G,[{key:"layers",set:function(K){this._set("layers",k.referenceSetter(K,this._get("layers")))}}]);
return G}(t.JSONSupportMixin(m));c.__decorate([h.property({json:{read:!1}})],t.prototype,"layers",null);c.__decorate([D.writer("layers")],t.prototype,"writeLayers",null);c.__decorate([h.property({readOnly:!0})],t.prototype,"resourceInfo",void 0);c.__decorate([h.property({type:Number,nonNullable:!0,range:{min:0,max:1},json:{type:n.Integer,read:{reader:B.transparencyToOpacity,source:"transparency"},write:{writer:(F,G)=>{G.transparency=B.opacityToTransparency(F)},target:"transparency"}}})],t.prototype,
"opacity",void 0);c.__decorate([h.property({type:g,json:{type:[n.Integer],write:(F,G)=>{G.surfaceColor=F.toJSON().slice(0,3)}}})],t.prototype,"surfaceColor",void 0);c.__decorate([h.property({type:A.NavigationConstraint,json:{write:!0}})],t.prototype,"navigationConstraint",void 0);return t=z=c.__decorate([C.subclass("esri.Ground")],t)})},"esri/Color":function(){define(["./chunks/_rollupPluginBabelHelpers","./colorUtils","./core/mathUtils","./core/maybe","./core/accessorSupport/ensureType"],function(a,
b,c,g,f){function k(t){return c.clamp(f.ensureInteger(t),0,255)}function q(t,u,m){t=Number(t);return isNaN(t)?m:t<u?u:t>m?m:t}let v=function(){function t(m){this.b=this.g=this.r=255;this.a=1;m&&this.setColor(m)}t.blendColors=function(m,p,e,l=new t){l.r=Math.round(m.r+(p.r-m.r)*e);l.g=Math.round(m.g+(p.g-m.g)*e);l.b=Math.round(m.b+(p.b-m.b)*e);l.a=m.a+(p.a-m.a)*e;return l._sanitize()};t.fromRgb=function(m,p){var e=m.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(e){m=e[2].split(/\s*,\s*/);
e=e[1];if("rgb"===e&&3===m.length||"rgba"===e&&4===m.length)return e=m[0],"%"===e.charAt(e.length-1)?(e=m.map(l=>2.56*parseFloat(l)),4===m.length&&(e[3]=parseFloat(m[3])),t.fromArray(e,p)):t.fromArray(m.map(l=>parseFloat(l)),p);if("hsl"===e&&3===m.length||"hsla"===e&&4===m.length)return t.fromArray(b.hsla2rgba(parseFloat(m[0]),parseFloat(m[1])/100,parseFloat(m[2])/100,parseFloat(m[3])),p)}return null};t.fromHex=function(m,p=new t){if(4!==m.length&&7!==m.length||"#"!==m[0])return null;const e=4===
m.length?4:8,l=(1<<e)-1;let h=Number("0x"+m.substr(1));if(isNaN(h))return null;["b","g","r"].forEach(n=>{const w=h&l;h>>=e;p[n]=4===e?17*w:w});p.a=1;return p};t.fromArray=function(m,p=new t){p._set(Number(m[0]),Number(m[1]),Number(m[2]),Number(m[3]));isNaN(p.a)&&(p.a=1);return p._sanitize()};t.fromString=function(m,p){const e=b.getNamedColor(m);return e&&t.fromArray(e,p)||t.fromRgb(m,p)||t.fromHex(m,p)};t.fromJSON=function(m){return m&&new t([m[0],m[1],m[2],m[3]/255])};t.toUnitRGB=function(m){return g.isSome(m)?
[m.r/255,m.g/255,m.b/255]:null};t.toUnitRGBA=function(m){return g.isSome(m)?[m.r/255,m.g/255,m.b/255,null!=m.a?m.a:1]:null};var u=t.prototype;u.setColor=function(m){if("string"===typeof m)t.fromString(m,this);else if(Array.isArray(m))t.fromArray(m,this);else{var p,e,l,h;this._set(null!=(p=m.r)?p:0,null!=(e=m.g)?e:0,null!=(l=m.b)?l:0,null!=(h=m.a)?h:1);m instanceof t||this._sanitize()}return this};u.toRgb=function(){return[this.r,this.g,this.b]};u.toRgba=function(){return[this.r,this.g,this.b,this.a]};
u.toHex=function(){const m=this.r.toString(16),p=this.g.toString(16),e=this.b.toString(16);return`#${2>m.length?"0"+m:m}${2>p.length?"0"+p:p}${2>e.length?"0"+e:e}`};u.toCss=function(m=!1){const p=this.r+", "+this.g+", "+this.b;return m?`rgba(${p}, ${this.a})`:`rgb(${p})`};u.toString=function(){return this.toCss(!0)};u.toJSON=function(){return this.toArray()};u.toArray=function(m=0){const p=k(this.r),e=k(this.g),l=k(this.b);return 0===m||1!==this.a?[p,e,l,k(255*this.a)]:[p,e,l]};u.clone=function(){return new t(this.toRgba())};
u.hash=function(){return this.r<<24|this.g<<16|this.b<<8|255*this.a};u._sanitize=function(){this.r=Math.round(q(this.r,0,255));this.g=Math.round(q(this.g,0,255));this.b=Math.round(q(this.b,0,255));this.a=q(this.a,0,1);return this};u._set=function(m,p,e,l){this.r=m;this.g=p;this.b=e;this.a=l};a._createClass(t,[{key:"isBright",get:function(){return 127<=.299*this.r+.587*this.g+.114*this.b}}]);return t}();v.prototype.declaredClass="esri.Color";return v})},"esri/colorUtils":function(){define(["exports"],
function(a){function b(f){var k;return null!=(k=g[f.toLowerCase()])?k:null}function c(f,k,q){0>q&&++q;1<q&&--q;const v=6*q;return 1>v?f+(k-f)*v:1>2*q?k:2>3*q?f+(k-f)*(2/3-q)*6:f}const g={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,
255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,
134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,
105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,
1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,
205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,
232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,
90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,5,10]};a.getNamedColor=b;a.getNamedColorCopy=function(f){return(f=b(f))?[...f]:f};a.hex2rgba=function(f){var k=5<f.length;const q=k?8:4,v=(1<<q)-1,t=k?1:17;k=k?9===f.length:5===f.length;
f=Number("0x"+f.substr(1));if(isNaN(f))return null;const u=[0,0,0,1];k&&(k=f&v,f>>=q,u[3]=t*k/255);k=f&v;f>>=q;u[2]=t*k;k=f&v;f>>=q;u[1]=t*k;k=f&v;f>>=q;u[0]=t*k;return u};a.hsla2rgba=function(f,k,q,v=1){f=(f%360+360)%360/360;k=.5>=q?q*(k+1):q+k-q*k;q=2*q-k;return[Math.round(256*c(q,k,f+1/3)),Math.round(256*c(q,k,f)),Math.round(256*c(q,k,f-1/3)),v]};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/mathUtils":function(){define(["exports","../chunks/vec3"],function(a,b){function c(e,l,
h){return Math.min(Math.max(e,l),h)}function g(e,l,h){return e+(l-e)*h}function f(e){return Math.asin(c(e,-1,1))}function k(e){q[0]=e;return q[0]}const q=new Float32Array(1),v=Number.isFinite||function(e){return"number"===typeof e&&window.isFinite(e)},t=Number.isNaN||function(e){return e!==e},u=Math.sign||function(e){return+(0<e)-+(0>e)||+e},m=Math.log2||function(e){return Math.log(e)/Math.LN2},p=k(3.4028234663852886E38);a.NUMBER_MAX_FLOAT32=p;a.acosClamped=function(e){return Math.acos(c(e,-1,1))};
a.asinClamped=f;a.cartesianToSpherical=function(e,l){const h=b.length(e),n=f(e[2]/h);b.set(l,h,n,Math.atan2(e[1]/h,e[0]/h));return l};a.clamp=c;a.clampFloat32=function(e){return k(Math.max(-p,Math.min(e,p)))};a.deg2rad=function(e){return e*Math.PI/180};a.floatEqualAbsolute=function(e,l,h=1E-6){return t(e)||t(l)?!1:(e>l?e-l:l-e)<=h};a.floatEqualRelative=function(e,l,h=1E-6){if(t(e)||t(l))return!1;if(e===l)return!0;const n=Math.abs(e-l),w=Math.abs(e),x=Math.abs(l);if(0===e||0===l||1E-12>w&&1E-12>x){if(n>
.01*h)return!1}else if(n/(w+x)>h)return!1;return!0};a.isFinite=v;a.isNaN=t;a.isPowerOfTwo=function(e){return 0===(e&e-1)};a.lerp=g;a.log2=m;a.nextHighestPowerOfTen=function(e){return 10**Math.ceil(Math.LOG10E*Math.log(e))};a.nextHighestPowerOfTwo=function(e){--e;for(let l=1;32>l;l<<=1)e|=e>>l;return e+1};a.nextPowerOfTwo=function(e){e--;e|=e>>1;e|=e>>2;e|=e>>4;e|=e>>8;e|=e>>16;e++;return e};a.rad2deg=function(e){return 180*e/Math.PI};a.reciprocalClamped=function(e,l=1E-6){return(0>e?-1:1)/Math.max(Math.abs(e),
l)};a.roundToNearest=function(e,l){return 0===l?0:Math.round(e/l)*l};a.scale=function(e,l,h,n,w){return g(n,w,(e-l)/(h-l))};a.sign=u;a.smoothstep=function(e,l,h){e=c((h-e)/(l-e),0,1);return e*e*(3-2*e)};a.sphericalToCartesian=function(e,l){const h=e[0],n=e[1];e=e[2];const w=Math.cos(n);b.set(l,h*w*Math.cos(e),h*w*Math.sin(e),h*Math.sin(n))};a.step=function(e,l){return l<e?0:1};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/chunks/vec3":function(){define(["exports","./vec3f64","./common"],
function(a,b,c){function g(fa){const ia=fa[0],da=fa[1];fa=fa[2];return Math.sqrt(ia*ia+da*da+fa*fa)}function f(fa,ia){fa[0]=ia[0];fa[1]=ia[1];fa[2]=ia[2];return fa}function k(fa,ia,da,ea){fa[0]=ia;fa[1]=da;fa[2]=ea;return fa}function q(fa,ia,da){fa[0]=ia[0]+da[0];fa[1]=ia[1]+da[1];fa[2]=ia[2]+da[2];return fa}function v(fa,ia,da){fa[0]=ia[0]-da[0];fa[1]=ia[1]-da[1];fa[2]=ia[2]-da[2];return fa}function t(fa,ia,da){fa[0]=ia[0]*da[0];fa[1]=ia[1]*da[1];fa[2]=ia[2]*da[2];return fa}function u(fa,ia,da){fa[0]=
ia[0]/da[0];fa[1]=ia[1]/da[1];fa[2]=ia[2]/da[2];return fa}function m(fa,ia){fa[0]=Math.ceil(ia[0]);fa[1]=Math.ceil(ia[1]);fa[2]=Math.ceil(ia[2]);return fa}function p(fa,ia){fa[0]=Math.floor(ia[0]);fa[1]=Math.floor(ia[1]);fa[2]=Math.floor(ia[2]);return fa}function e(fa,ia,da){fa[0]=Math.min(ia[0],da[0]);fa[1]=Math.min(ia[1],da[1]);fa[2]=Math.min(ia[2],da[2]);return fa}function l(fa,ia,da){fa[0]=Math.max(ia[0],da[0]);fa[1]=Math.max(ia[1],da[1]);fa[2]=Math.max(ia[2],da[2]);return fa}function h(fa,ia){fa[0]=
Math.round(ia[0]);fa[1]=Math.round(ia[1]);fa[2]=Math.round(ia[2]);return fa}function n(fa,ia,da){fa[0]=ia[0]*da;fa[1]=ia[1]*da;fa[2]=ia[2]*da;return fa}function w(fa,ia,da,ea){fa[0]=ia[0]+da[0]*ea;fa[1]=ia[1]+da[1]*ea;fa[2]=ia[2]+da[2]*ea;return fa}function x(fa,ia){const da=ia[0]-fa[0],ea=ia[1]-fa[1];fa=ia[2]-fa[2];return Math.sqrt(da*da+ea*ea+fa*fa)}function C(fa,ia){const da=ia[0]-fa[0],ea=ia[1]-fa[1];fa=ia[2]-fa[2];return da*da+ea*ea+fa*fa}function D(fa){const ia=fa[0],da=fa[1];fa=fa[2];return ia*
ia+da*da+fa*fa}function A(fa,ia){fa[0]=-ia[0];fa[1]=-ia[1];fa[2]=-ia[2];return fa}function B(fa,ia){fa[0]=1/ia[0];fa[1]=1/ia[1];fa[2]=1/ia[2];return fa}function r(fa,ia){var da=ia[0];const ea=ia[1],la=ia[2];da=da*da+ea*ea+la*la;0<da&&(da=1/Math.sqrt(da),fa[0]=ia[0]*da,fa[1]=ia[1]*da,fa[2]=ia[2]*da);return fa}function z(fa,ia){return fa[0]*ia[0]+fa[1]*ia[1]+fa[2]*ia[2]}function E(fa,ia,da){const ea=ia[0],la=ia[1];ia=ia[2];const va=da[0],Ba=da[1];da=da[2];fa[0]=la*da-ia*Ba;fa[1]=ia*va-ea*da;fa[2]=ea*
Ba-la*va;return fa}function F(fa,ia,da,ea){const la=ia[0],va=ia[1];ia=ia[2];fa[0]=la+ea*(da[0]-la);fa[1]=va+ea*(da[1]-va);fa[2]=ia+ea*(da[2]-ia);return fa}function G(fa,ia,da,ea,la,va){const Ba=va*va,aa=Ba*(2*va-3)+1,ja=Ba*(va-2)+va,ua=Ba*(va-1);va=Ba*(3-2*va);fa[0]=ia[0]*aa+da[0]*ja+ea[0]*ua+la[0]*va;fa[1]=ia[1]*aa+da[1]*ja+ea[1]*ua+la[1]*va;fa[2]=ia[2]*aa+da[2]*ja+ea[2]*ua+la[2]*va;return fa}function N(fa,ia,da,ea,la,va){var Ba=1-va,aa=Ba*Ba;const ja=va*va,ua=aa*Ba;aa*=3*va;Ba*=3*ja;va*=ja;fa[0]=
ia[0]*ua+da[0]*aa+ea[0]*Ba+la[0]*va;fa[1]=ia[1]*ua+da[1]*aa+ea[1]*Ba+la[1]*va;fa[2]=ia[2]*ua+da[2]*aa+ea[2]*Ba+la[2]*va;return fa}function K(fa,ia){ia=ia||1;const da=2*c.RANDOM()*Math.PI,ea=2*c.RANDOM()-1,la=Math.sqrt(1-ea*ea)*ia;fa[0]=Math.cos(da)*la;fa[1]=Math.sin(da)*la;fa[2]=ea*ia;return fa}function I(fa,ia,da){const ea=ia[0],la=ia[1];ia=ia[2];fa[0]=da[0]*ea+da[4]*la+da[8]*ia+da[12];fa[1]=da[1]*ea+da[5]*la+da[9]*ia+da[13];fa[2]=da[2]*ea+da[6]*la+da[10]*ia+da[14];return fa}function J(fa,ia,da){const ea=
ia[0],la=ia[1];ia=ia[2];fa[0]=ea*da[0]+la*da[3]+ia*da[6];fa[1]=ea*da[1]+la*da[4]+ia*da[7];fa[2]=ea*da[2]+la*da[5]+ia*da[8];return fa}function L(fa,ia,da){const ea=da[0],la=da[1],va=da[2],Ba=ia[0],aa=ia[1];ia=ia[2];let ja=la*ia-va*aa,ua=va*Ba-ea*ia,ta=ea*aa-la*Ba;da=2*da[3];fa[0]=Ba+ja*da+2*(la*ta-va*ua);fa[1]=aa+ua*da+2*(va*ja-ea*ta);fa[2]=ia+ta*da+2*(ea*ua-la*ja);return fa}function Q(fa,ia,da,ea){const la=[],va=[];la[0]=ia[0]-da[0];la[1]=ia[1]-da[1];la[2]=ia[2]-da[2];va[0]=la[0];va[1]=la[1]*Math.cos(ea)-
la[2]*Math.sin(ea);va[2]=la[1]*Math.sin(ea)+la[2]*Math.cos(ea);fa[0]=va[0]+da[0];fa[1]=va[1]+da[1];fa[2]=va[2]+da[2];return fa}function W(fa,ia,da,ea){const la=[],va=[];la[0]=ia[0]-da[0];la[1]=ia[1]-da[1];la[2]=ia[2]-da[2];va[0]=la[2]*Math.sin(ea)+la[0]*Math.cos(ea);va[1]=la[1];va[2]=la[2]*Math.cos(ea)-la[0]*Math.sin(ea);fa[0]=va[0]+da[0];fa[1]=va[1]+da[1];fa[2]=va[2]+da[2];return fa}function V(fa,ia,da,ea){const la=[],va=[];la[0]=ia[0]-da[0];la[1]=ia[1]-da[1];la[2]=ia[2]-da[2];va[0]=la[0]*Math.cos(ea)-
la[1]*Math.sin(ea);va[1]=la[0]*Math.sin(ea)+la[1]*Math.cos(ea);va[2]=la[2];fa[0]=va[0]+da[0];fa[1]=va[1]+da[1];fa[2]=va[2]+da[2];return fa}function P(fa,ia){f(xa,fa);f(Ea,ia);r(xa,xa);r(Ea,Ea);fa=z(xa,Ea);return 1<fa?0:-1>fa?Math.PI:Math.acos(fa)}function X(fa){return"vec3("+fa[0]+", "+fa[1]+", "+fa[2]+")"}function U(fa,ia){return fa[0]===ia[0]&&fa[1]===ia[1]&&fa[2]===ia[2]}function Z(fa,ia){const da=fa[0],ea=fa[1];fa=fa[2];const la=ia[0],va=ia[1];ia=ia[2];return Math.abs(da-la)<=c.EPSILON*Math.max(1,
Math.abs(da),Math.abs(la))&&Math.abs(ea-va)<=c.EPSILON*Math.max(1,Math.abs(ea),Math.abs(va))&&Math.abs(fa-ia)<=c.EPSILON*Math.max(1,Math.abs(fa),Math.abs(ia))}function oa(fa,ia,da){const ea=da[0]-ia[0],la=da[1]-ia[1];ia=da[2]-ia[2];da=ea*ea+la*la+ia*ia;if(0<da)return da=1/Math.sqrt(da),fa[0]=ea*da,fa[1]=la*da,fa[2]=ia*da,fa;fa[0]=0;fa[1]=0;fa[2]=0;return fa}const xa=b.create(),Ea=b.create();b=Object.freeze({__proto__:null,length:g,copy:f,set:k,add:q,subtract:v,multiply:t,divide:u,ceil:m,floor:p,min:e,
max:l,round:h,scale:n,scaleAndAdd:w,distance:x,squaredDistance:C,squaredLength:D,negate:A,inverse:B,normalize:r,dot:z,cross:E,lerp:F,hermite:G,bezier:N,random:K,transformMat4:I,transformMat3:J,transformQuat:L,rotateX:Q,rotateY:W,rotateZ:V,angle:P,str:X,exactEquals:U,equals:Z,direction:oa,sub:v,mul:t,div:u,dist:x,sqrDist:C,len:g,sqrLen:D});a.add=q;a.angle=P;a.bezier=N;a.ceil=m;a.copy=f;a.cross=E;a.direction=oa;a.dist=x;a.distance=x;a.div=u;a.divide=u;a.dot=z;a.equals=Z;a.exactEquals=U;a.floor=p;a.hermite=
G;a.inverse=B;a.len=g;a.length=g;a.lerp=F;a.max=l;a.min=e;a.mul=t;a.multiply=t;a.negate=A;a.normalize=r;a.random=K;a.rotateX=Q;a.rotateY=W;a.rotateZ=V;a.round=h;a.scale=n;a.scaleAndAdd=w;a.set=k;a.sqrDist=C;a.sqrLen=D;a.squaredDistance=C;a.squaredLength=D;a.str=X;a.sub=v;a.subtract=v;a.transformMat3=J;a.transformMat4=I;a.transformQuat=L;a.vec3=b})},"esri/chunks/vec3f64":function(){define(["exports"],function(a){function b(){return[0,0,0]}function c(x){return[x[0],x[1],x[2]]}function g(x,C,D){return[x,
C,D]}function f(x){const C=b(),D=Math.min(3,x.length);for(let A=0;A<D;++A)C[A]=x[A];return C}function k(x,C){return new Float64Array(x,C,3)}function q(){return b()}function v(){return[1,1,1]}function t(){return[1,0,0]}function u(){return[0,1,0]}function m(){return[0,0,1]}const p=b(),e=v(),l=t(),h=u(),n=m();var w=Object.freeze({__proto__:null,create:b,clone:c,fromValues:g,fromArray:f,createView:k,zeros:q,ones:v,unitX:t,unitY:u,unitZ:m,ZEROS:p,ONES:e,UNIT_X:l,UNIT_Y:h,UNIT_Z:n});a.ONES=e;a.UNIT_X=l;
a.UNIT_Y=h;a.UNIT_Z=n;a.ZEROS=p;a.clone=c;a.create=b;a.createView=k;a.fromArray=f;a.fromValues=g;a.ones=v;a.unitX=t;a.unitY=u;a.unitZ=m;a.vec3f64=w;a.zeros=q})},"esri/chunks/common":function(){define(["exports"],function(a){function b(t){return t*k}function c(t){return t*q}function g(t,u){return Math.abs(t-u)<=1E-6*Math.max(1,Math.abs(t),Math.abs(u))}const f=Math.random,k=Math.PI/180,q=180/Math.PI;var v=Object.freeze({__proto__:null,EPSILON:1E-6,RANDOM:f,toRadian:b,toDegree:c,equals:g});a.EPSILON=
1E-6;a.RANDOM=f;a.common=v;a.equals=g;a.toDegree=c;a.toRadian=b})},"esri/core/compilerUtils":function(){define(["exports","./has"],function(a,b){a.neverReached=function(c){};a.neverReachedSilent=function(c){};a.tuple=(...c)=>c;a.typeCast=function(c){return()=>c};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/ground/NavigationConstraint":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;a.NavigationConstraint=m=function(p){function e(l){l=p.call(this,l)||this;l.type="none";return l}b._inheritsLoose(e,p);e.prototype.clone=function(){return new m({type:this.type})};return e}(g.JSONSupport);c.__decorate([t.enumeration({none:"none",stayAbove:"stay-above"})],a.NavigationConstraint.prototype,"type",void 0);a.NavigationConstraint=m=c.__decorate([u.subclass("esri.ground.NavigationConstraint")],a.NavigationConstraint);Object.defineProperty(a,"__esModule",
{value:!0})})},"esri/core/accessorSupport/decorators/enumeration":function(){define(["exports","../../jsonMap","./property"],function(a,b,c){a.enumeration=function(g,f={}){var k;g=g instanceof b.JSONMap?g:new b.JSONMap(g,f);g={type:(null!=(k=null==f?void 0:f.ignoreUnknown)?k:1)?g.apiValues:String,readOnly:null==f?void 0:f.readOnly,json:{type:g.jsonValues,read:null!=f&&f.readOnly?!1:{reader:g.read},write:{writer:g.write}}};void 0!==(null==f?void 0:f.default)&&(g.json.default=f.default);void 0!==(null==
f?void 0:f.name)&&(g.json.name=f.name);return c.property(g)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/webdoc/support/opacityUtils":function(){define(["exports","../../core/accessorSupport/ensureType"],function(a,b){a.opacityToTransparency=function(c){c=b.ensureInteger(100*(1-c));return Math.max(0,Math.min(c,100))};a.transparencyToOpacity=function(c){return Math.max(0,Math.min(1-c/100,1))};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/CollectionFlattener":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Collection ./HandleOwner ./maybe ./accessorSupport/decorators/property ./has ./accessorSupport/ensureType ./Logger ./jsonMap ./accessorSupport/decorators/subclass ./accessorSupport/trackingUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){g=function(e){function l(n){n=e.call(this,n)||this;n.getCollections=null;return n}a._inheritsLoose(l,e);var h=l.prototype;h.initialize=function(){this.handles.add(p.autorun(()=>this.refresh()))};h.destroy=function(){this.getCollections=null};h.refresh=function(){const n=f.isSome(this.getCollections)?this.getCollections():null;if(f.isNone(n))this.removeAll();else{var w=0;for(const x of n)f.isSome(x)&&(w=this._processCollection(w,x));this.splice(w,this.length)}};h._createNewInstance=
function(n){return new c(n)};h._processCollection=function(n,w){if(!w)return n;const x=this.itemFilterFunction?this.itemFilterFunction:C=>!!C;for(const C of w)if(C&&(x(C)&&(w=this.indexOf(C,n),0<=w?w!==n&&this.reorder(C,n):this.add(C,n),++n),this.getChildrenFunction))if(w=this.getChildrenFunction(C),Array.isArray(w))for(const D of w)n=this._processCollection(n,D);else n=this._processCollection(n,w);return n};return l}(g.HandleOwnerMixin(c));b.__decorate([k.property()],g.prototype,"getCollections",
void 0);b.__decorate([k.property()],g.prototype,"getChildrenFunction",void 0);b.__decorate([k.property()],g.prototype,"itemFilterFunction",void 0);return g=b.__decorate([m.subclass("esri.core.CollectionFlattener")],g)})},"esri/core/HandleOwner":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./Handles ./accessorSupport/decorators/property ./accessorSupport/decorators/subclass ../views/support/WatchUpdatingTracking".split(" "),function(a,b,c,g,f,k,q,v){const t=
u=>{u=function(m){function p(){return m.apply(this,arguments)||this}b._inheritsLoose(p,m);p.prototype.destroy=function(){this.destroyed||(this.handles.destroy(),this.updatingHandles.destroy())};b._createClass(p,[{key:"handles",get:function(){return this._get("handles")||new f}},{key:"updatingHandles",get:function(){return this._get("updatingHandles")||new v.WatchUpdatingTracking}}]);return p}(u);c.__decorate([k.property({readOnly:!0})],u.prototype,"handles",null);c.__decorate([k.property({readOnly:!0})],
u.prototype,"updatingHandles",null);return u=c.__decorate([q.subclass("esri.core.HandleOwner")],u)};a.HandleOwner=function(u){function m(){return u.apply(this,arguments)||this}b._inheritsLoose(m,u);return m}(t(g));a.HandleOwner=c.__decorate([q.subclass("esri.core.HandleOwner")],a.HandleOwner);a.HandleOwnerMixin=t;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/Handles":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./Collection ./maybe ./accessorSupport/decorators/property ./accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q){c=function(v){function t(m){m=v.call(this,m)||this;m._groups=new Map;return m}a._inheritsLoose(t,v);var u=t.prototype;u.destroy=function(){this.removeAll()};u.add=function(m,p){if(!this._isHandle(m)&&!Array.isArray(m)&&!g.isCollection(m))return this;const e=this._getOrCreateGroup(p);Array.isArray(m)||g.isCollection(m)?m.forEach(l=>this._isHandle(l)&&e.push(l)):e.push(m);this.notifyChange("size");return this};u.forEach=function(m,p){if("function"===typeof m)this._groups.forEach(e=>
e.forEach(m));else{const e=this._getGroup(m);e&&p&&e.forEach(p)}};u.has=function(m){return this._groups.has(this._ensureGroupKey(m))};u.remove=function(m){if(Array.isArray(m)||g.isCollection(m))return m.forEach(this.remove,this),this;if(!this.has(m))return this;const p=this._getGroup(m);for(let e=0;e<p.length;e++)p[e].remove();this._deleteGroup(m);this.notifyChange("size");return this};u.removeAll=function(){this._groups.forEach(m=>{for(let p=0;p<m.length;p++)m[p].remove()});this._groups.clear();
this.notifyChange("size");return this};u._isHandle=function(m){return m&&!!m.remove};u._getOrCreateGroup=function(m){if(this.has(m))return this._getGroup(m);const p=[];this._groups.set(this._ensureGroupKey(m),p);return p};u._getGroup=function(m){return f.assumeNonNull(this._groups.get(this._ensureGroupKey(m)))};u._deleteGroup=function(m){return this._groups.delete(this._ensureGroupKey(m))};u._ensureGroupKey=function(m){return m||"_default_"};a._createClass(t,[{key:"size",get:function(){let m=0;this._groups.forEach(p=>
{m+=p.length});return m}}]);return t}(c);b.__decorate([k.property({readOnly:!0})],c.prototype,"size",null);return c=b.__decorate([q.subclass("esri.core.Handles")],c)})},"esri/views/support/WatchUpdatingTracking":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/Handles ../../core/maybe ../../core/scheduling ../../core/watchUtils ../../core/accessorSupport/get ../../core/accessorSupport/trackingUtils ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){a.WatchUpdatingTracking=function(e){function l(){var n=e.apply(this,arguments)||this;n.updating=!1;n.handleId=0;n.handles=new f;n.scheduleHandleId=0;n.pendingPromises=new Set;return n}b._inheritsLoose(l,e);var h=l.prototype;h.destroy=function(){this.removeAll();this.handles.destroy()};h.add=function(n,w,x,C=0){const D=0!==(C&1),A=++this.handleId;D||this.installSyncUpdatingWatch(n,w,A);n=0!==(C&2)?v.init(n,w,x,D):n.watch(w,x,D);this.handles.add(n,A);return{remove:()=>
this.handles.remove(A)}};h.addOnCollectionPropertyChange=function(n,w,x,C=0){C=0!==(C&2);const D=++this.handleId;this.handles.add([v.on(n,w,"after-changes",this.createSyncUpdatingCallback()),v.on(n,w,"change",x,C?A=>{x({added:A.items,removed:[],moved:[],target:A})}:void 0)],D);return{remove:()=>{this.handles.remove(D)}}};h.addOnCollectionChange=function(n,w,x=0){x=0!==(x&2);const C=++this.handleId;this.handles.add([n.on("after-changes",this.createSyncUpdatingCallback()),n.on("change",w)],C);x&&w({added:n.items,
removed:[],moved:[],target:n});return{remove:()=>{this.handles.remove(C)}}};h.addPromise=function(n){if(k.isNone(n))return n;const w=++this.handleId;this.handles.add({remove:()=>{this.pendingPromises.delete(n)&&(0!==this.pendingPromises.size||this.handles.has(-42)||this._set("updating",!1))}},w);this.pendingPromises.add(n);this._set("updating",!0);const x=()=>this.handles.remove(w);n.then(x,x);return n};h.removeAll=function(){this.pendingPromises.clear();this.handles.removeAll();this._set("updating",
!1)};h.installSyncUpdatingWatch=function(n,w,x){var C=this.createSyncUpdatingCallback();C=u.reaction(()=>t.valueOf(n,w),C);this.handles.add(C,x);return C};h.createSyncUpdatingCallback=function(){return()=>{this.handles.remove(-42);++this.scheduleHandleId;const n=this.scheduleHandleId;this._get("updating")||this._set("updating",!0);this.handles.add(q.schedule(()=>{n===this.scheduleHandleId&&(this._set("updating",0<this.pendingPromises.size),this.handles.remove(-42))}),-42)}};return l}(g);c.__decorate([m.property({readOnly:!0})],
a.WatchUpdatingTracking.prototype,"updating",void 0);a.WatchUpdatingTracking=c.__decorate([p.subclass("esri.views.support.WatchUpdatingTracking")],a.WatchUpdatingTracking);Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/watchUtils":function(){define(["exports","./events","./lang","./promiseUtils"],function(a,b,c,g){function f(h,n,w,x,C){C=h.watch(n,(A,B,r,z)=>{if(!w||w(A))null==x?void 0:x.call(h,A,B,r,z)},C);if(Array.isArray(n))for(var D of n){const A=h.get(D);w&&w(A)&&(null==x?void 0:
x.call(h,A,A,n,h))}else D=h.get(n),w&&w(D)&&(null==x?void 0:x.call(h,D,D,n,h));return C}function k(h,n,w,x,C){function D(){z&&(z.remove(),z=null)}const A="function"===typeof x?x:null,B="object"===typeof x?x:null;"boolean"===typeof x&&(C=x);let r=!1,z;const E=g.createDeferred();g.onAbort(B,()=>{D();E.reject(g.createAbortError())});x={then:E.promise.then.bind(E.promise),catch:E.promise.catch.bind(E.promise),remove:D};Object.freeze(x);z=f(h,n,w,(F,G,N,K)=>{r=!0;D();A&&A.call(h,F,G,N,K);E.resolve({value:F,
oldValue:G,propertyName:N,target:K})},C);r&&D();return x}function q(h){return!!h}function v(h){return!h}function t(h){return!0===h}function u(h){return!1===h}function m(h){return void 0!==h}function p(h){return void 0===h}function e(h,n,w,x){var C=Array.isArray(n)?n:-1<n.indexOf(",")?n.split(","):[n];n=h.watch(n,w,x);for(const D of C)C=D.trim().replace(l,"$1"),x=h.get(C),w.call(h,x,x,C,h);return n}const l=/\?(\.|$)/g;a.init=e;a.on=function(h,n,w,x,C,D,A){function B(E){const F=r[E];F&&(D&&D(F.target,
E,h,w),F.handle.remove(),delete r[E])}const r={},z=e(h,n,(E,F,G)=>{B(G);b.isEventTarget(E)&&(r[G]={handle:b.on(E,w,x),target:E},C&&C(E,G,h,w))},A);return{remove(){z.remove();for(const E in r)B(E)}}};a.once=function(h,n,w,x){return k(h,n,null,w,x)};a.pausable=function(h,n,w,x){let C=!1;const D=h.watch(n,(A,B,r,z)=>{C||w.call(h,A,B,r,z)},x);return{remove(){D.remove()},pause(){C=!0},resume(){C=!1}}};a.watch=function(h,n,w,x){return h.watch(n,w,x)};a.when=function(h,n,w,x){return f(h,n,q,w,x)};a.whenDefined=
function(h,n,w,x){return f(h,n,m,w,x)};a.whenDefinedOnce=function(h,n,w,x){return k(h,n,m,w,x)};a.whenEqual=function(h,n,w,x,C){return f(h,n,D=>c.equals(w,D),x,C)};a.whenEqualOnce=function(h,n,w,x,C){return k(h,n,D=>c.equals(w,D),x,C)};a.whenFalse=function(h,n,w,x){return f(h,n,u,w,x)};a.whenFalseOnce=function(h,n,w,x){return k(h,n,u,w,x)};a.whenNot=function(h,n,w,x){return f(h,n,v,w,x)};a.whenNotOnce=function(h,n,w,x){return k(h,n,v,w,x)};a.whenOnce=function(h,n,w,x){return k(h,n,q,w,x)};a.whenTrue=
function(h,n,w,x){return f(h,n,t,w,x)};a.whenTrueOnce=function(h,n,w,x){return k(h,n,t,w,x)};a.whenUndefined=function(h,n,w,x){return f(h,n,p,w,x)};a.whenUndefinedOnce=function(h,n,w,x){return k(h,n,p,w,x)};a.whenValidOnce=k;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/editableLayers":function(){define(["exports"],function(a){a.isEditableLayer=function(b){var c;return!(b&&b.loaded&&"capabilities"in b&&null!=b&&null!=(c=b.capabilities)&&c.operations&&"supportsEditing"in
b.capabilities.operations)||!0!==b.capabilities.operations.supportsEditing||"editingEnabled"in b&&!b.editingEnabled?!1:!0};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/support/basemapUtils":function(){define("exports ../Basemap ../core/Collection ../core/Logger ../core/urlUtils ../core/accessorSupport/ensureType ./basemapDefinitions".split(" "),function(a,b,c,g,f,k,q){function v(r,z){var E;let F;if("string"===typeof r){if(!(r in q.esriBasemapDefinitions))return z=Object.keys(q.esriBasemapDefinitions).map(G=>
`"${G}"`).join(", "),A.warn(`Unable to find basemap definition for: ${r}. Try one of these: ${z}`),null;z&&(F=z[r]);F||(F=b.fromId(r),z&&(z[r]=F))}else F=k.ensureType(b,r);null!=(E=F)&&E.destroyed&&(A.warn("The provided basemap is already destroyed",{basemap:F}),F=null);return F}function t(r,z){const E=new c;r.forEach(F=>{const G=z.find(N=>C(l(F),l(N)))||F;E.some(N=>N===G)?E.push(F):E.push(G)});return E}function u(r){if(m(r.url))return!0;if("vector-tile"===r.type)for(const z in r.sourceNameToSource){const E=
r.sourceNameToSource[z];if(m(null==E?void 0:E.sourceUrl))return!0}return!1}function m(r){if(!r)return!1;r=new f.Url(f.makeAbsolute(r));return B.test(r.authority)}function p(r){return r?!r.loaded&&r.resourceInfo?h(r.resourceInfo.data):{baseLayers:e(r.baseLayers),referenceLayers:e(r.referenceLayers)}:null}function e(r){return(c.isCollection(r)?r.toArray():r).map(l)}function l(r){return{type:r.type,url:D("urlTemplate"in r&&r.urlTemplate||r.url||"styleUrl"in r&&r.styleUrl),minScale:"minScale"in r&&null!=
r.minScale?r.minScale:0,maxScale:"maxScale"in r&&null!=r.maxScale?r.maxScale:0,opacity:null!=r.opacity?r.opacity:1,visible:null!=r.visible?!!r.visible:!0}}function h(r){return r?{baseLayers:n(r.baseMapLayers.filter(z=>!z.isReference)),referenceLayers:n(r.baseMapLayers.filter(z=>z.isReference))}:null}function n(r){return r.map(z=>{{let E;switch(z.layerType){case "VectorTileLayer":E="vector-tile";break;case "ArcGISTiledMapServiceLayer":E="tile";break;default:E="unknown"}z={type:E,url:D(z.templateUrl||
z.urlTemplate||z.styleUrl||z.url),minScale:null!=z.minScale?z.minScale:0,maxScale:null!=z.maxScale?z.maxScale:0,opacity:null!=z.opacity?z.opacity:1,visible:null!=z.visibility?!!z.visibility:!0}}return z})}function w(r,z,E){return null!=r!==(null!=z)?"not-equal":r?x(r.baseLayers,z.baseLayers)?x(r.referenceLayers,z.referenceLayers)?"equal":E.mustMatchReferences?"not-equal":"base-layers-equal":"not-equal":"equal"}function x(r,z){if(r.length!==z.length)return!1;for(let E=0;E<r.length;E++)if(!C(r[E],z[E]))return!1;
return!0}function C(r,z){return r.type===z.type&&r.url===z.url&&r.minScale===z.minScale&&r.maxScale===z.maxScale&&r.visible===z.visible&&r.opacity===z.opacity}function D(r){return r?f.normalize(r).replace(/^\s*https?:/i,"").toLowerCase():""}const A=g.getLogger("esri.support.basemapUtils"),B=/^(basemaps|ibasemaps).*-api\.arcgis\.com$/i;a.clonePreservingTiledLayers=function(r,z=null){r=v(r);if(!r)return null;const E=new b({id:r.id,title:r.title,baseLayers:r.baseLayers.slice(),referenceLayers:r.referenceLayers.slice()});
z&&(E.baseLayers=t(E.baseLayers,z.baseLayers),E.referenceLayers=t(E.referenceLayers,z.referenceLayers));E.load().catch(()=>{});E.portalItem=r.portalItem;return E};a.contentEquals=function(r,z){if(r===z)return!0;r=p(r);z=p(z);return"equal"===w(r,z,{mustMatchReferences:!0})};a.createCache=function(){return{}};a.destroyCache=function(r){for(const z in r){const E=r[z];!1===(null==E?void 0:E.destroyed)&&E.destroy();delete r[z]}};a.ensureType=v;a.getWellKnownBasemapId=function(r){let z=null;r=p(r);const E=
!r.baseLayers.length;for(const G in q.esriBasemapDefinitions){var F=h(q.esriBasemapDefinitions[G]);F=w(r,F,{mustMatchReferences:E});if("equal"===F){z=G;break}"base-layers-equal"===F&&(z=G)}return z};a.hasDeveloperBasemapLayer=function(r){return!(null==r||!r.baseLayers.concat(r.referenceLayers).some(u))};a.isDeveloperBasemapLayer=u;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/support/groundUtils":function(){define(["exports","../Ground","../core/Logger","../core/accessorSupport/ensureType"],
function(a,b,c,g){const f=c.getLogger("esri.support.groundUtils"),k={"world-elevation":{id:"worldElevation",url:"//elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer",layerType:"ArcGISTiledElevationServiceLayer"},"world-topobathymetry":{id:"worldTopoBathymetry",url:"//elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/TopoBathy3D/ImageServer",layerType:"ArcGISTiledElevationServiceLayer"}};a.ensureType=function(q){let v;"string"===typeof q?q in k?v=new b({resourceInfo:{data:{layers:[k[q]]}}}):
f.warn(`Unable to find ground definition for: ${q}. Try "world-elevation"`):v=g.ensureType(b,q);return v};a.groundElevationLayers=k;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/support/LayersMixin":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/collectionUtils ../core/Logger ../core/promiseUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/jsonMap ../core/accessorSupport/decorators/subclass ../layers/Layer".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){function l(n,w,x){if(n)for(let D=0,A=n.length;D<A;D++){var C=n.getItemAt(D);if(C[w]===x||C&&"group"===C.type&&(C=l(C.layers,w,x)))return C}}const h=k.getLogger("esri.support.LayersMixin");a.LayersMixin=n=>{n=function(w){function x(...D){var A=w.call(this,...D)||this;A.layers=new g;A.layers.on("before-add",B=>{B=B.item;B.parent&&"remove"in B.parent&&B.parent.remove(B)});A.layers.on("after-add",B=>{B=B.item;B.parent=b._assertThisInitialized(A);A.layerAdded(B);"elevation"!==
B.type&&"base-elevation"!==B.type||h.error(`Layer 'title:${B.title}, id:${B.id}' of type '${B.type}' is not supported as an operational layer and will therefore be ignored.`)});A.layers.on("after-remove",B=>{B=B.item;B.parent=null;A.layerRemoved(B)});return A}b._inheritsLoose(x,w);var C=x.prototype;C.destroy=function(){const D=this.layers.removeAll();for(const A of D)this.layerRemoved(A),A.destroy();this.layers.destroy()};C.add=function(D,A){const B=this.layers;A=B.getNextIndex(A);D instanceof e?
D.parent===this?this.reorder(D,A):B.add(D,A):q.isPromiseLike(D)?D.then(r=>{this.destroyed||this.add(r,A)}):h.error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")};C.addMany=function(D,A){const B=this.layers;A=B.getNextIndex(A);D.slice().forEach(r=>{r.parent===this?this.reorder(r,A):(B.add(r,A),A+=1)})};C.findLayerById=function(D){return l(this.layers,"id",D)};C.findLayerByUid=function(D){return l(this.layers,"uid",D)};C.remove=function(D){return this.layers.remove(D)};
C.removeMany=function(D){return this.layers.removeMany(D)};C.removeAll=function(){return this.layers.removeAll()};C.reorder=function(D,A){return this.layers.reorder(D,A)};C.layerAdded=function(D){};C.layerRemoved=function(D){};b._createClass(x,[{key:"layers",set:function(D){this._set("layers",f.referenceSetter(D,this._get("layers")))}}]);return x}(n);c.__decorate([v.property()],n.prototype,"layers",null);return n=c.__decorate([p.subclass("esri.support.LayersMixin")],n)};Object.defineProperty(a,"__esModule",
{value:!0})})},"esri/layers/Layer":function(){define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../config ../geometry ../request ../core/Error ../core/Evented ../core/Identifiable ../core/Loadable ../core/Logger ../core/promiseUtils ../core/urlUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/jsonMap ../core/accessorSupport/decorators/subclass ../geometry/Extent ../geometry/SpatialReference".split(" "),function(a,b,c,g,f,
k,q,v,t,u,m,p,e,l,h,n,w,x,C,D){let A=0;const B=m.getLogger("esri.layers.Layer");f=function(r){function z(){var F=r.apply(this,arguments)||this;F.attributionDataUrl=null;F.fullExtent=new C(-180,-90,180,90,D.WGS84);F.id=Date.now().toString(16)+"-layer-"+A++;F.legendEnabled=!0;F.listMode="show";F.opacity=1;F.parent=null;F.popupEnabled=!0;F.attributionVisible=!0;F.spatialReference=D.WGS84;F.title=null;F.type=null;F.url=null;F.visible=!0;return F}b._inheritsLoose(z,r);z.fromArcGISServerUrl=function(){var F=
b._asyncToGenerator(function*(G){G="string"===typeof G?{url:G}:G;const N=yield new Promise(function(K,I){a(["./support/arcgisLayers"],K,I)});try{return yield N.fromUrl(G)}catch(K){throw B.error("#fromArcGISServerUrl({ url: '"+G.url+"'})","Failed to create layer from arcgis server url",K),K;}});return function(G){return F.apply(this,arguments)}}();z.fromPortalItem=function(){var F=b._asyncToGenerator(function*(G){G="portalItem"in G?G:{portalItem:G};const N=yield new Promise(function(K,I){a(["../portal/support/portalLayers"],
K,I)});try{return yield N.fromItem(G)}catch(K){throw G=G&&G.portalItem,B.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+(G&&G.portal&&G.portal.url||g.portalUrl)+"', id: '"+(G&&G.id||"unset")+"')",K),K;}});return function(G){return F.apply(this,arguments)}}();var E=z.prototype;E.initialize=function(){this.when().catch(F=>{if(!p.isAbortError(F)){var G,N;m.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(G=this.title)?G:"no title"}', id: '${null!=
(N=this.id)?N:"no id"}')`,{error:F})}})};E.destroy=function(){if(this.parent){const F=this.parent;"layers"in F&&F.layers.includes(this)?F.layers.remove(this):"tables"in F&&F.tables.includes(this)?F.tables.remove(this):"baseLayers"in F&&F.baseLayers.includes(this)?F.baseLayers.remove(this):"baseLayers"in F&&F.referenceLayers.includes(this)&&F.referenceLayers.remove(this)}};E.fetchAttributionData=function(){var F=b._asyncToGenerator(function*(){const G=this.attributionDataUrl;if(this.hasAttributionData&&
G)return(yield k(G,{query:{f:"json"},responseType:"json"})).data;throw new q("layer:no-attribution-data","Layer does not have attribution data");});return function(){return F.apply(this,arguments)}}();b._createClass(z,[{key:"hasAttributionData",get:function(){return null!=this.attributionDataUrl}},{key:"parsedUrl",get:function(){const F=this.url;return F?e.urlToObject(F):null}}]);return z}(v.EventedMixin(t.IdentifiableMixin(u)));c.__decorate([l.property({type:String})],f.prototype,"attributionDataUrl",
void 0);c.__decorate([l.property({type:C})],f.prototype,"fullExtent",void 0);c.__decorate([l.property({readOnly:!0})],f.prototype,"hasAttributionData",null);c.__decorate([l.property({type:String})],f.prototype,"id",void 0);c.__decorate([l.property({type:Boolean,nonNullable:!0})],f.prototype,"legendEnabled",void 0);c.__decorate([l.property({type:["show","hide","hide-children"]})],f.prototype,"listMode",void 0);c.__decorate([l.property({type:Number,range:{min:0,max:1},nonNullable:!0})],f.prototype,
"opacity",void 0);c.__decorate([l.property()],f.prototype,"parent",void 0);c.__decorate([l.property({readOnly:!0})],f.prototype,"parsedUrl",null);c.__decorate([l.property({type:Boolean})],f.prototype,"popupEnabled",void 0);c.__decorate([l.property({type:Boolean})],f.prototype,"attributionVisible",void 0);c.__decorate([l.property({type:D})],f.prototype,"spatialReference",void 0);c.__decorate([l.property({type:String})],f.prototype,"title",void 0);c.__decorate([l.property({type:String,readOnly:!0,json:{read:!1}})],
f.prototype,"type",void 0);c.__decorate([l.property()],f.prototype,"url",void 0);c.__decorate([l.property({type:Boolean,nonNullable:!0})],f.prototype,"visible",void 0);return f=c.__decorate([x.subclass("esri.layers.Layer")],f)})},"esri/geometry":function(){define("exports ./core/accessorSupport/ensureType ./geometry/Extent ./geometry/Geometry ./geometry/Multipoint ./geometry/Point ./geometry/Polygon ./geometry/Polyline ./geometry/SpatialReference ./geometry/support/typeUtils ./geometry/support/jsonUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){const p={base:g,key:"type",typeMap:{extent:c,multipoint:f,point:k,polyline:v,polygon:q}};b=b.ensureOneOfType(p);a.Extent=c;a.BaseGeometry=g;a.Multipoint=f;a.Point=k;a.Polygon=q;a.Polyline=v;a.SpatialReference=t;a.featureGeometryTypeKebabDictionary=u.featureGeometryTypeKebabDictionary;a.isFeatureGeometryType=u.isFeatureGeometryType;a.typeKebabDictionary=u.typeKebabDictionary;a.fromJSON=m.fromJSON;a.ensureType=b;a.geometryTypes=p;a.isGeometry=function(e){return e instanceof
g};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/Multipoint":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Extent ./Geometry ./Point ./support/zmUtils".split(" "),function(a,b,c,g,f,k,q,v,t,u,m,p,e,l){function h(w){return(x,C)=>
null==x?C:null==C?x:w(x,C)}var n;f=n=function(w){function x(...D){D=w.call(this,...D)||this;D.points=[];D.type="multipoint";return D}a._inheritsLoose(x,w);var C=x.prototype;C.normalizeCtorArgs=function(D,A){if(!D&&!A)return null;const B={};Array.isArray(D)?(B.points=D,B.spatialReference=A):!D||"esri.geometry.SpatialReference"!==D.declaredClass&&null==D.wkid?(D.points&&(B.points=D.points),D.spatialReference&&(B.spatialReference=D.spatialReference),D.hasZ&&(B.hasZ=D.hasZ),D.hasM&&(B.hasM=D.hasM)):B.spatialReference=
D;if(D=B.points&&B.points[0])void 0===B.hasZ&&void 0===B.hasM?(B.hasZ=2<D.length,B.hasM=!1):void 0===B.hasZ?B.hasZ=3<D.length:void 0===B.hasM&&(B.hasM=3<D.length);return B};C.writePoints=function(D,A){A.points=c.clone(this.points)};C.addPoint=function(D){l.updateSupportFromPoint(this,D);Array.isArray(D)?this.points.push(D):this.points.push(D.toArray());this.notifyChange("points");return this};C.clone=function(){const D={points:c.clone(this.points),spatialReference:this.spatialReference};this.hasZ&&
(D.hasZ=!0);this.hasM&&(D.hasM=!0);return new n(D)};C.getPoint=function(D){if(!this._validateInputs(D))return null;D=this.points[D];const A={x:D[0],y:D[1],spatialReference:this.spatialReference};let B=2;this.hasZ&&(A.z=D[2],B=3);this.hasM&&(A.m=D[B]);return new e(A)};C.removePoint=function(D){if(!this._validateInputs(D))return null;D=new e(this.points.splice(D,1)[0],this.spatialReference);this.notifyChange("points");return D};C.setPoint=function(D,A){if(!this._validateInputs(D))return this;l.updateSupportFromPoint(this,
A);Array.isArray(A)||(A=A.toArray());this.points[D]=A;this.notifyChange("points");return this};C.toJSON=function(D){return this.write(null,D)};C._validateInputs=function(D){return null!=D&&0<=D&&D<this.points.length};a._createClass(x,[{key:"cache",get:function(){this.commitProperty("points");this.commitProperty("hasZ");this.commitProperty("hasM");this.commitProperty("spatialReference");return{}}},{key:"extent",get:function(){const D=this.points;if(!D.length)return null;const A=new m,B=this.hasZ,r=
this.hasM,z=B?3:2;var E=D[0];const F=h(Math.min),G=h(Math.max);let [N,K]=E,[I,J]=E,L,Q,W,V;for(let P=0,X=D.length;P<X;P++){E=D[P];const [U,Z]=E;N=F(N,U);K=F(K,Z);I=G(I,U);J=G(J,Z);if(B&&2<E.length){const oa=E[2];L=F(L,oa);W=G(W,oa)}r&&E.length>z&&(E=E[z],Q=F(Q,E),V=G(V,E))}A.xmin=N;A.ymin=K;A.xmax=I;A.ymax=J;A.spatialReference=this.spatialReference;B?(A.zmin=L,A.zmax=W):(A.zmin=null,A.zmax=null);r?(A.mmin=Q,A.mmax=V):(A.mmin=null,A.mmax=null);return A}}]);return x}(p);b.__decorate([g.property({readOnly:!0})],
f.prototype,"cache",null);b.__decorate([g.property()],f.prototype,"extent",null);b.__decorate([g.property({type:[[Number]],json:{write:{isRequired:!0}}})],f.prototype,"points",void 0);b.__decorate([u.writer("points")],f.prototype,"writePoints",null);f=n=b.__decorate([t.subclass("esri.geometry.Multipoint")],f);f.prototype.toJSON.isDefaultToJSON=!0;return f})},"esri/geometry/support/zmUtils":function(){define(["exports"],function(a){a.updateSupportFromPoint=function(b,c,g=!1){let {hasM:f,hasZ:k}=b;
Array.isArray(c)?4!==c.length||f||k?3===c.length&&g&&!f?(k=!0,f=!1):3===c.length&&f&&k&&(k=f=!1):k=f=!0:(k=!k&&c.hasZ&&(!f||c.hasM),f=!f&&c.hasM&&(!k||c.hasZ));b.hasZ=k;b.hasM=f};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/Polygon":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Extent ./Geometry ./Point ./SpatialReference ./support/centroid ./support/contains ./support/coordsUtils ./support/extentUtils ./support/intersectsBase ./support/webMercatorUtils ./support/zmUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A){var B;f=B=function(r){function z(...F){F=r.call(this,...F)||this;F.rings=[];F.type="polygon";return F}a._inheritsLoose(z,r);z.fromExtent=function(F){var G=F.clone().normalize();F=F.spatialReference;let N=!1,K=!1;G.map(I=>{I.hasZ&&(N=!0);I.hasM&&(K=!0)});G={rings:G.map(function(I){const J=[[I.xmin,I.ymin],[I.xmin,I.ymax],[I.xmax,I.ymax],[I.xmax,I.ymin],[I.xmin,I.ymin]];if(N&&I.hasZ){var L=I.zmin+.5*(I.zmax-I.zmin);for(let Q=0;Q<J.length;Q++)J[Q].push(L)}if(K&&
I.hasM)for(I=I.mmin+.5*(I.mmax-I.mmin),L=0;L<J.length;L++)J[L].push(I);return J}),spatialReference:F};N&&(G.hasZ=!0);K&&(G.hasM=!0);return new B(G)};var E=z.prototype;E.normalizeCtorArgs=function(F,G){let N=null,K,I,J=null;F&&!Array.isArray(F)?(N=F.rings?F.rings:null,G||(F.spatialReference?G=F.spatialReference:F.rings||(G=F)),K=F.hasZ,I=F.hasM):N=F;N=N||[];G=G||l.WGS84;N.length&&N[0]&&null!=N[0][0]&&"number"===typeof N[0][0]&&(N=[N]);if(J=N[0]&&N[0][0])void 0===K&&void 0===I?(K=2<J.length,I=3<J.length):
void 0===K?K=I?3<J.length:2<J.length:void 0===I&&(I=K?3<J.length:2<J.length);return{rings:N,spatialReference:G,hasZ:K,hasM:I}};E.writeRings=function(F,G){G.rings=c.clone(this.rings)};E.addRing=function(F){if(F){var G=this.rings,N=G.length;if(Array.isArray(F[0]))G[N]=F.concat();else{const K=[];for(let I=0,J=F.length;I<J;I++)K[I]=F[I].toArray();G[N]=K}this.notifyChange("rings");return this}};E.clone=function(){const F=new B;F.spatialReference=this.spatialReference;F.rings=c.clone(this.rings);F.hasZ=
this.hasZ;F.hasM=this.hasM;return F};E.contains=function(F){if(!F)return!1;D.canProject(F,this.spatialReference)&&(F=D.project(F,this.spatialReference));return n.polygonContainsPoint(this,F)};E.isClockwise=function(F){F=Array.isArray(F[0])?F:F.map(G=>this.hasZ?this.hasM?[G.x,G.y,G.z,G.m]:[G.x,G.y,G.z]:[G.x,G.y]);return w.isClockwise(F,this.hasM,this.hasZ)};E.getPoint=function(F,G){if(!this._validateInputs(F,G))return null;F=this.rings[F][G];G=this.hasZ;const N=this.hasM;return G&&!N?new e(F[0],F[1],
F[2],void 0,this.spatialReference):N&&!G?new e(F[0],F[1],void 0,F[2],this.spatialReference):G&&N?new e(F[0],F[1],F[2],F[3],this.spatialReference):new e(F[0],F[1],this.spatialReference)};E.insertPoint=function(F,G,N){if(!this._validateInputs(F,G,!0))return this;A.updateSupportFromPoint(this,N);Array.isArray(N)||(N=N.toArray());this.rings[F].splice(G,0,N);this.notifyChange("rings");return this};E.removePoint=function(F,G){if(!this._validateInputs(F,G))return null;F=new e(this.rings[F].splice(G,1)[0],
this.spatialReference);this.notifyChange("rings");return F};E.removeRing=function(F){if(!this._validateInputs(F,null))return null;F=this.rings.splice(F,1)[0];const G=this.spatialReference;F=F.map(N=>new e(N,G));this.notifyChange("rings");return F};E.setPoint=function(F,G,N){if(!this._validateInputs(F,G))return this;A.updateSupportFromPoint(this,N);Array.isArray(N)||(N=N.toArray());this.rings[F][G]=N;this.notifyChange("rings");return this};E._validateInputs=function(F,G,N=!1){return null==F||0>F||
F>=this.rings.length||null!=G&&(F=this.rings[F],N&&(0>G||G>F.length)||!N&&(0>G||G>=F.length))?!1:!0};E.toJSON=function(F){return this.write(null,F)};a._createClass(z,[{key:"cache",get:function(){this.commitProperty("rings");this.commitProperty("hasZ");this.commitProperty("hasM");this.commitProperty("spatialReference");return{}}},{key:"centroid",get:function(){const F=h.polygonCentroid(this);if(!F||isNaN(F[0])||isNaN(F[1])||this.hasZ&&isNaN(F[2]))return null;const G=new e;G.x=F[0];G.y=F[1];G.spatialReference=
this.spatialReference;this.hasZ&&(G.z=F[2]);return G}},{key:"extent",get:function(){const {spatialReference:F}=this;var G=x.getPolygonExtent(this);if(!G)return null;G=new m(G);G.spatialReference=F;return G}},{key:"isSelfIntersecting",get:function(){return C.isSelfIntersecting(this.rings)}}]);return z}(p);b.__decorate([g.property({readOnly:!0})],f.prototype,"cache",null);b.__decorate([g.property({readOnly:!0})],f.prototype,"centroid",null);b.__decorate([g.property({readOnly:!0})],f.prototype,"extent",
null);b.__decorate([g.property({readOnly:!0})],f.prototype,"isSelfIntersecting",null);b.__decorate([g.property({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"rings",void 0);b.__decorate([u.writer("rings")],f.prototype,"writeRings",null);f=B=b.__decorate([t.subclass("esri.geometry.Polygon")],f);f.prototype.toJSON.isDefaultToJSON=!0;return f})},"esri/geometry/support/centroid":function(){define(["exports","./coordsUtils"],function(a,b){function c(k,q){if(!k||!k.length)return null;const v=
[],t=[],u=q?[Infinity,-Infinity,Infinity,-Infinity,Infinity,-Infinity]:[Infinity,-Infinity,Infinity,-Infinity];for(let m=0,p=k.length;m<p;m++){const e=g(k[m],q,u);e&&t.push(e)}t.sort((m,p)=>{let e=m[2]-p[2];0===e&&q&&(e=m[4]-p[4]);return e});t.length&&(v[0]=t[0][0],v[1]=t[0][1],q&&(v[2]=t[0][3]),v[0]<u[0]||v[0]>u[1]||v[1]<u[2]||v[1]>u[3]||q&&(v[2]<u[4]||v[2]>u[5]))&&(v.length=0);if(!v.length)if(k=k[0]&&k[0].length?f(k[0],q):null)v[0]=k[0],v[1]=k[1],q&&2<k.length&&(v[2]=k[2]);else return null;return v}
function g(k,q,v){let t=0,u=0,m=0,p=0,e=0;const l=k.length?k[0][0]:0,h=k.length?k[0][1]:0,n=k.length&&q?k[0][2]:0;for(let x=0;x<k.length;x++){var w=k[x];const C=k[(x+1)%k.length],[D,A,B]=w,r=D-l,z=A-h,E=q?B-n:void 0,[F,G,N]=C,K=F-l,I=G-h,J=q?N-n:void 0,L=r*I-K*z;p+=L;t+=(r+K)*L;u+=(z+I)*L;q&&2<w.length&&2<C.length&&(w=r*J-K*E,m+=(E+J)*w,e+=w);D<v[0]&&(v[0]=D);D>v[1]&&(v[1]=D);A<v[2]&&(v[2]=A);A>v[3]&&(v[3]=A);q&&(B<v[4]&&(v[4]=B),B>v[5]&&(v[5]=B))}0<p&&(p*=-1);0<e&&(e*=-1);if(!p)return null;p*=.5;
e*=.5;k=[t/(6*p)+l,u/(6*p)+h,p];q&&(v[4]===v[5]||0===e?(k[3]=(v[4]+v[5])/2,k[4]=0):(k[3]=m/(6*e)+n,k[4]=e));return k}function f(k,q){const v=q?[0,0,0]:[0,0],t=q?[0,0,0]:[0,0];let u=0,m=0,p=0,e=0;for(let h=0,n=k.length;h<n-1;h++){var l=k[h];const w=k[h+1];if(l&&w){v[0]=l[0];v[1]=l[1];t[0]=w[0];t[1]=w[1];q&&2<l.length&&2<w.length&&(v[2]=l[2],t[2]=w[2]);const x=b.getLength(v,t);x&&(u+=x,l=b.getMidpoint(l,w),m+=x*l[0],p+=x*l[1],q&&2<l.length&&(e+=x*l[2]))}}return 0<u?q?[m/u,p/u,e/u]:[m/u,p/u]:k.length?
k[0]:null}a.extentCentroid=function(k){return k?k.hasZ?[k.xmax-k.xmin/2,k.ymax-k.ymin/2,k.zmax-k.zmin/2]:[k.xmax-k.xmin/2,k.ymax-k.ymin/2]:null};a.lineCentroid=f;a.polygonCentroid=function(k){return k?c(k.rings,k.hasZ):null};a.ringsCentroid=c;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/support/coordsUtils":function(){define(["exports","./spatialReferenceUtils"],function(a,b){function c(q,v){const t=v[0]-q[0],u=v[1]-q[1];return 2<q.length&&2<v.length?(q=q[2]-v[2],Math.sqrt(t*
t+u*u+q*q)):Math.sqrt(t*t+u*u)}function g(q,v,t){const u=q[0]+t*(v[0]-q[0]),m=q[1]+t*(v[1]-q[1]);return 2<q.length&&2<v.length?[u,m,q[2]+t*(v[2]-q[2])]:[u,m]}function f(q,v,t){const u=q.length;let m=0,p=0,e=0;for(let l=0;l<u;l++){const h=q[l],n=q[(l+1)%u];let w=2;m+=h[0]*n[1]-n[0]*h[1];2<h.length&&2<n.length&&t&&(p+=h[0]*n[2]-n[0]*h[2],w=3);h.length>w&&n.length>w&&v&&(e+=h[0]*n[w]-n[0]*h[w])}return 0>=m&&0>=p&&0>=e}function k(q,v){if(v=b.getInfo(v)){var t=v.valid[0],u=v.valid[1],m=u-t;for(const p of q){let e=
Infinity,l=-Infinity;p.forEach(h=>{let n=h[0];for(;n<t;)n+=m;for(;n>u;)n-=m;e=Math.min(e,n);l=Math.max(l,n);h[0]=n});q=l-e;m-q<q&&p.forEach(h=>{0>h[0]&&(h[0]+=m)})}}}a.closeRings=function(q){if("rings"in q)for(const v of q.rings)3>v.length||v[0][0]===v[v.length-1][0]&&v[0][1]===v[v.length-1][1]||v.push([v[0][0],v[0][1]])};a.closeRingsAndFixWinding=function(q){if("rings"in q){for(var v of q.rings)3>v.length||v[0][0]===v[v.length-1][0]&&v[0][1]===v[v.length-1][1]||v.push([v[0][0],v[0][1]]);if(0<q.rings.length&&
!f(q.rings[0],q.hasM,q.hasZ))for(v=0;v<q.rings.length;++v)q.rings[v]=q.rings[v].reverse()}};a.computeUnnormalizedVertexPositionsOnDateLineCrossing=function(q,v,t,u){let m=Infinity,p=-Infinity;q.forEach(l=>{let h=l.pos[0];for(;h<v;)h+=u;for(;h>t;)h-=u;m=Math.min(m,h);p=Math.max(p,h);l.unnormalizedPos[0]=h;l.unnormalizedPos[1]=l.pos[1];2<l.pos.length&&(l.unnormalizedPos[2]=l.pos[2]);3<l.pos.length&&(l.unnormalizedPos[3]=l.pos[3])});const e=p-m;u-e<e&&q.forEach(l=>{0>l.unnormalizedPos[0]&&(l.unnormalizedPos[0]+=
u)})};a.geometryToCoordinates=function(q){if(!q)return null;if(Array.isArray(q))return q;const v=q.hasZ,t=q.hasM;if("point"===q.type)return t&&v?[q.x,q.y,q.z,q.m]:v?[q.x,q.y,q.z]:t?[q.x,q.y,q.m]:[q.x,q.y];if("polygon"===q.type)return q.rings.slice(0);if("polyline"===q.type)return q.paths.slice(0);if("multipoint"===q.type)return q.points.slice(0);if("extent"===q.type){q=q.clone().normalize();if(!q)return null;let u=!1,m=!1;q.forEach(p=>{p.hasZ&&(u=!0);p.hasM&&(m=!0)});return q.map(p=>{const e=[[p.xmin,
p.ymin],[p.xmin,p.ymax],[p.xmax,p.ymax],[p.xmax,p.ymin],[p.xmin,p.ymin]];if(u&&p.hasZ){var l=.5*(p.zmax-p.zmin);for(let h=0;h<e.length;h++)e[h].push(l)}if(m&&p.hasM)for(p=.5*(p.mmax-p.mmin),l=0;l<e.length;l++)e[l].push(p);return e})}return null};a.getLength=c;a.getMidpoint=function(q,v){return g(q,v,.5)};a.getPathLength=function(q){const v=q.length;let t=0;for(let u=0;u<v-1;++u)t+=c(q[u],q[u+1]);return t};a.getPointOnPath=function(q,v){if(0>=v)return q[0];const t=q.length;let u=0;for(let m=0;m<t-
1;++m){const p=c(q[m],q[m+1]);if(v-u<p)return g(q[m],q[m+1],(v-u)/p);u+=p}return q[t-1]};a.getRingArea=function(q){const v=q.length;let t=0;for(let u=0;u<v;u++){const m=q[u],p=q[(u+1)%v];t+=m[0]*p[1]-p[0]*m[1]}return t};a.isClockwise=f;a.projectPointOnLine=function(q,v,t,u){const [m,p]=v,[e,l]=t[u],[h,n]=t[u+1];v=h-e;t=n-l;u=Math.min(1,Math.max(0,((m-e)*v+(p-l)*t)/(v*v+t*t)));q[0]=e+v*u;q[1]=l+t*u;return q};a.unnormalizeGeometryOnDatelineCrossing=function(q){if("polygon"!==q.type&&"polyline"!==q.type)return q;
k("polygon"===q.type?q.rings:q.paths,q.spatialReference);return q};a.unnormalizeVerticesOnDatelineCrossing=k;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/support/extentUtils":function(){define(["exports","./boundsUtils"],function(a,b){function c(t,u=!1,m=!1){return u?m?{xmin:t[0],ymin:t[1],zmin:t[2],mmin:t[3],xmax:t[4],ymax:t[5],zmax:t[6],mmax:t[7]}:{xmin:t[0],ymin:t[1],zmin:t[2],xmax:t[3],ymax:t[4],zmax:t[5]}:m?{xmin:t[0],ymin:t[1],mmin:t[2],xmax:t[3],ymax:t[4],mmax:t[5]}:{xmin:t[0],
ymin:t[1],xmax:t[2],ymax:t[3]}}function g(t){const {hasZ:u,hasM:m,points:p}=t;return c(b.getPointsBounds(v,p,u,m),u,m)}function f(t){const {x:u,y:m,z:p,m:e}=t;t=null!=e;return null!=p?t?{xmin:u,ymin:m,zmin:p,mmin:e,xmax:u,ymax:m,zmax:p,mmax:e}:{xmin:u,ymin:m,zmin:p,xmax:u,ymax:m,zmax:p}:t?{xmin:u,ymin:m,mmin:e,xmax:u,ymax:m,mmax:e}:{xmin:u,ymin:m,xmax:u,ymax:m}}function k(t){const {hasZ:u,hasM:m,rings:p}=t;return(t=b.getRingsOrPathsBounds(v,p,u,m))?c(t,u,m):null}function q(t){const {hasZ:u,hasM:m,
paths:p}=t;return(t=b.getRingsOrPathsBounds(v,p,u,m))?c(t,u,m):null}const v=[];a.getGeometryExtent=function(t){return t?void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax?t:void 0!==t.x&&void 0!==t.y?f(t):void 0!==t.rings?k(t):void 0!==t.paths?q(t):void 0!==t.points?g(t):null:null};a.getMultipointExtent=g;a.getPointExtent=f;a.getPolygonExtent=k;a.getPolylineExtent=q;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/support/boundsUtils":function(){define(["exports"],
function(a){function b(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function c(t){return(u,m)=>null==u?m:null==m?u:t(u,m)}function g(t,u,m,p){const e=m?3:2;if(!u.length||!u[0].length)return null;let [l,h]=u[0][0],[n,w]=u[0][0],x=void 0,C=void 0,D=void 0;var A=void 0;for(let B=0;B<u.length;B++){const r=u[B];for(let z=0;z<r.length;z++){const E=r[z],[F,G]=E;l=q(l,F);h=q(h,G);n=v(n,F);w=v(w,G);if(m&&2<E.length){const N=E[2];x=q(x,N);C=v(C,N)}p&&E.length>e&&(A=E[e],D=q(x,
A),A=v(C,A))}}if(m){if(p)return t[0]=l,t[1]=h,t[2]=x,t[3]=D,t[4]=n,t[5]=w,t[6]=C,t[7]=A,t.length=8,t;t[0]=l;t[1]=h;t[2]=x;t[3]=n;t[4]=w;t[5]=C;t.length=6;return t}if(p)return t[0]=l,t[1]=h,t[2]=D,t[3]=n,t[4]=w,t[5]=A,t.length=6,t;t[0]=l;t[1]=h;t[2]=n;t[3]=w;t.length=4;return t}function f(t,u,m,p,e,l){m=u.xmin;p=u.xmax;const h=u.ymin,n=u.ymax;let w=u.zmin,x=u.zmax,C=u.mmin;u=u.mmax;if(e){w=w||0;x=x||0;if(l)return t[0]=m,t[1]=h,t[2]=w,t[3]=C||0,t[4]=p,t[5]=n,t[6]=x,t[7]=u||0,t;t[0]=m;t[1]=h;t[2]=w;
t[3]=p;t[4]=n;t[5]=x;return t}if(l)return t[0]=m,t[1]=h,t[2]=C||0,t[3]=p,t[4]=n,t[5]=u||0,t;t[0]=m;t[1]=h;t[2]=p;t[3]=n;return t}function k(t,u,m,p,e,l){const h=m?3:2;p=p&&l;m=m&&e;if(!u.length||!u[0].length)return null;let [n,w]=u[0],[x,C]=u[0],D=void 0,A=void 0,B=void 0;var r=void 0;for(let z=0;z<u.length;z++){const E=u[z],[F,G]=E;n=q(n,F);w=q(w,G);x=v(x,F);C=v(C,G);if(m&&2<E.length){const N=E[2];D=q(D,N);A=v(A,N)}p&&E.length>h&&(r=E[h],B=q(D,r),r=v(A,r))}if(e){D=D||0;A=A||0;if(l)return t[0]=n,
t[1]=w,t[2]=D,t[3]=B||0,t[4]=x,t[5]=C,t[6]=A,t[7]=r||0,t;t[0]=n;t[1]=w;t[2]=D;t[3]=x;t[4]=C;t[5]=A;return t}if(l)return t[0]=n,t[1]=w,t[2]=B||0,t[3]=x,t[4]=C,t[5]=r||0,t;t[0]=n;t[1]=w;t[2]=x;t[3]=C;return t}const q=c(Math.min),v=c(Math.max);a.getBoundsXY=function(t,u){if(void 0!==u.paths)return g(t,u.paths,!1,!1);if(void 0!==u.rings)return g(t,u.rings,!1,!1);if(void 0!==u.points)return k(t,u.points,!1,!1,!1,!1);if(b(u))return f(t,u);void 0!==u.x&&void 0!==u.y&&(t[0]=u.x,t[1]=u.y,t[2]=u.x,t[3]=u.y);
return t};a.getBoundsXYZ=function(t,u){if(void 0!==u.paths)return g(t,u.paths,!0,!1);if(void 0!==u.rings)return g(t,u.rings,!0,!1);if(void 0!==u.points)return k(t,u.points,!0,!1,!0,!1);if(b(u))return f(t,u,!0,!1,!0,!1);void 0!==u.x&&void 0!==u.y&&(t[0]=u.x,t[1]=u.y,t[2]=u.z,t[3]=u.x,t[4]=u.y,t[5]=u.z);return t};a.getExtentBounds=f;a.getPointsBounds=k;a.getPointsBoundsCenterX=function(t){if(!t.length||!t[0].length)return null;let [u]=t[0],[m]=t[0];for(let p=0;p<t.length;p++){const [e]=t[p];u=q(u,e);
m=v(m,e)}return u+.5*(m-u)};a.getPointsBoundsWidth=function(t){if(!t.length||!t[0].length)return null;let [u]=t[0],[m]=t[0];for(let p=0;p<t.length;p++){const [e]=t[p];u=q(u,e);m=v(m,e)}return m-u};a.getRingsOrPathsBounds=g;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/Polyline":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Extent ./Geometry ./Point ./SpatialReference ./support/extentUtils ./support/zmUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n){var w;f=w=function(x){function C(...A){A=x.call(this,...A)||this;A.paths=[];A.type="polyline";return A}a._inheritsLoose(C,x);var D=C.prototype;D.normalizeCtorArgs=function(A,B){let r=null,z,E,F=null;A&&!Array.isArray(A)?(r=A.paths?A.paths:null,B||(A.spatialReference?B=A.spatialReference:A.paths||(B=A)),z=A.hasZ,E=A.hasM):r=A;r=r||[];B=B||l.WGS84;r.length&&r[0]&&null!=r[0][0]&&"number"===typeof r[0][0]&&(r=[r]);if(F=r[0]&&r[0][0])void 0===z&&void 0===E?(z=
2<F.length,E=!1):void 0===z?z=!E&&3<F.length:void 0===E&&(E=!z&&3<F.length);return{paths:r,spatialReference:B,hasZ:z,hasM:E}};D.writePaths=function(A,B){B.paths=c.clone(this.paths)};D.addPath=function(A){if(A){var B=this.paths,r=B.length;if(Array.isArray(A[0]))B[r]=A.concat();else{const z=[];for(let E=0,F=A.length;E<F;E++)z[E]=A[E].toArray();B[r]=z}this.notifyChange("paths");return this}};D.clone=function(){const A=new w;A.spatialReference=this.spatialReference;A.paths=c.clone(this.paths);A.hasZ=
this.hasZ;A.hasM=this.hasM;return A};D.getPoint=function(A,B){if(!this._validateInputs(A,B))return null;A=this.paths[A][B];B=this.hasZ;const r=this.hasM;return B&&!r?new e(A[0],A[1],A[2],void 0,this.spatialReference):r&&!B?new e(A[0],A[1],void 0,A[2],this.spatialReference):B&&r?new e(A[0],A[1],A[2],A[3],this.spatialReference):new e(A[0],A[1],this.spatialReference)};D.insertPoint=function(A,B,r){if(!this._validateInputs(A,B,!0))return this;n.updateSupportFromPoint(this,r);Array.isArray(r)||(r=r.toArray());
this.paths[A].splice(B,0,r);this.notifyChange("paths");return this};D.removePath=function(A){if(!this._validateInputs(A,null))return null;A=this.paths.splice(A,1)[0];const B=this.spatialReference;A=A.map(r=>new e(r,B));this.notifyChange("paths");return A};D.removePoint=function(A,B){if(!this._validateInputs(A,B))return null;A=new e(this.paths[A].splice(B,1)[0],this.spatialReference);this.notifyChange("paths");return A};D.setPoint=function(A,B,r){if(!this._validateInputs(A,B))return this;n.updateSupportFromPoint(this,
r);Array.isArray(r)||(r=r.toArray());this.paths[A][B]=r;this.notifyChange("paths");return this};D._validateInputs=function(A,B,r=!1){return null==A||0>A||A>=this.paths.length||null!=B&&(A=this.paths[A],r&&(0>B||B>A.length)||!r&&(0>B||B>=A.length))?!1:!0};D.toJSON=function(A){return this.write(null,A)};a._createClass(C,[{key:"cache",get:function(){this.commitProperty("paths");this.commitProperty("hasZ");this.commitProperty("hasM");this.commitProperty("spatialReference");return{}}},{key:"extent",get:function(){const {spatialReference:A}=
this;var B=h.getPolylineExtent(this);if(!B)return null;B=new m(B);B.spatialReference=A;return B}}]);return C}(p);b.__decorate([g.property({readOnly:!0})],f.prototype,"cache",null);b.__decorate([g.property({readOnly:!0})],f.prototype,"extent",null);b.__decorate([g.property({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0);b.__decorate([u.writer("paths")],f.prototype,"writePaths",null);f=w=b.__decorate([t.subclass("esri.geometry.Polyline")],f);f.prototype.toJSON.isDefaultToJSON=
!0;return f})},"esri/geometry/support/typeUtils":function(){define(["exports","../../core/jsonMap"],function(a,b){const c=b.strict()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"});b=b.strict()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"});a.featureGeometryTypeKebabDictionary=c;a.isFeatureGeometryType=
function(g){return"point"===g||"multipoint"===g||"polyline"===g||"polygon"===g};a.typeKebabDictionary=b;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/support/jsonUtils":function(){define("exports ../Extent ../Geometry ../Multipoint ../Point ../Polygon ../Polyline".split(" "),function(a,b,c,g,f,k,q){function v(h){return void 0!==h.xmin&&void 0!==h.ymin&&void 0!==h.xmax&&void 0!==h.ymax}function t(h){return void 0!==h.points}function u(h){return void 0!==h.x&&void 0!==h.y}function m(h){return void 0!==
h.paths}function p(h){return void 0!==h.rings}function e(h){return h?h instanceof c?h:u(h)?f.fromJSON(h):m(h)?q.fromJSON(h):p(h)?k.fromJSON(h):t(h)?g.fromJSON(h):v(h)?b.fromJSON(h):null:null}const l={esriGeometryPoint:f,esriGeometryPolyline:q,esriGeometryPolygon:k,esriGeometryEnvelope:b,esriGeometryMultipoint:g};a.fromJSON=e;a.fromJson=function(h){try{throw Error("fromJson is deprecated, use fromJSON instead");}catch(n){console.warn(n.stack)}return e(h)};a.getGeometryType=function(h){return h&&l[h]||
null};a.getJsonType=function(h){return h?u(h)?"esriGeometryPoint":m(h)?"esriGeometryPolyline":p(h)?"esriGeometryPolygon":v(h)?"esriGeometryEnvelope":t(h)?"esriGeometryMultipoint":null:null};a.isExtent=v;a.isMesh=function(h){return void 0!==h.vertexAttributes};a.isMultipoint=t;a.isPoint=u;a.isPolygon=p;a.isPolyline=m;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/Identifiable":function(){define(["exports","../chunks/_rollupPluginBabelHelpers","../chunks/tslib.es6","./accessorSupport/decorators/subclass"],
function(a,b,c,g){let f=0;const k=q=>{q=function(v){function t(...u){u=v.call(this,...u)||this;Object.defineProperty(b._assertThisInitialized(u),"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+f++});return u}b._inheritsLoose(t,v);return t}(q);return q=c.__decorate([g.subclass("esri.core.Identifiable")],q)};a.Identifiable=function(q){function v(){return q.apply(this,arguments)||this}b._inheritsLoose(v,q);return v}(k(function(){return function(){}}()));a.Identifiable=c.__decorate([g.subclass("esri.core.Identifiable")],
a.Identifiable);a.IdentifiableMixin=k;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/support/TablesMixin":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/collectionUtils ../core/Logger ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/jsonMap ../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t,u,m){function p(l,h,n){if(l)for(let x=0,C=l.length;x<
C;x++){var w=l.getItemAt(x);if(w[h]===n||w&&"group"===w.type&&(w=p(w.tables,h,n)))return w}}const e=k.getLogger("esri.support.TablesMixin");a.TablesMixin=l=>{l=function(h){function n(...x){var C=h.call(this,...x)||this;C.tables=new g;C.tables.on("after-add",D=>{D=D.item;D.parent&&D.parent!==b._assertThisInitialized(C)&&"tables"in D.parent&&D.parent.tables.remove(D);D.parent=b._assertThisInitialized(C);"feature"!==D.type&&e.error(`Layer 'title:${D.title}, id:${D.id}' of type '${D.type}' is not supported as a table and will therefore be ignored.`)});
C.tables.on("after-remove",D=>{D.item.parent=null});return C}b._inheritsLoose(n,h);var w=n.prototype;w.destroy=function(){const x=this.tables.removeAll();for(const C of x)C.destroy();this.tables.destroy()};w.findTableById=function(x){return p(this.tables,"id",x)};w.findTableByUid=function(x){return p(this.tables,"uid",x)};b._createClass(n,[{key:"tables",set:function(x){this._set("tables",f.referenceSetter(x,this._get("tables")))}}]);return n}(l);c.__decorate([q.property()],l.prototype,"tables",null);
return l=c.__decorate([m.subclass("esri.support.TablesMixin")],l)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/Viewpoint":function(){define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./Camera ./geometry ./core/JSONSupport ./core/maybe ./core/accessorSupport/decorators/property ./core/has ./core/accessorSupport/decorators/cast ./core/Logger ./core/jsonMap ./core/accessorSupport/decorators/subclass ./geometry/support/jsonUtils".split(" "),function(a,b,c,g,f,k,q,v,t,u,m,p,e){function l(){return{enabled:!this.camera}}
var h;f=h=function(n){function w(C){C=n.call(this,C)||this;C.rotation=0;C.scale=0;C.targetGeometry=null;C.camera=null;return C}a._inheritsLoose(w,n);var x=w.prototype;x.castRotation=function(C){C%=360;0>C&&(C+=360);return C};x.clone=function(){return new h({rotation:this.rotation,scale:this.scale,targetGeometry:k.isSome(this.targetGeometry)?this.targetGeometry.clone():null,camera:k.isSome(this.camera)?this.camera.clone():null})};return w}(f.JSONSupport);b.__decorate([q.property({type:Number,json:{write:!0,
origins:{"web-map":{default:0,write:!0},"web-scene":{write:{overridePolicy:l}}}}})],f.prototype,"rotation",void 0);b.__decorate([t.cast("rotation")],f.prototype,"castRotation",null);b.__decorate([q.property({type:Number,json:{write:!0,origins:{"web-map":{default:0,write:!0},"web-scene":{write:{overridePolicy:l}}}}})],f.prototype,"scale",void 0);b.__decorate([q.property({types:g.geometryTypes,json:{read:e.fromJSON,write:!0,origins:{"web-scene":{read:e.fromJSON,write:{overridePolicy:l}}}}})],f.prototype,
"targetGeometry",void 0);b.__decorate([q.property({type:c,json:{write:!0}})],f.prototype,"camera",void 0);return f=h=b.__decorate([p.subclass("esri.Viewpoint")],f)})},"esri/Camera":function(){define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./core/JSONSupport ./core/mathUtils ./core/accessorSupport/decorators/property ./core/has ./core/accessorSupport/decorators/cast ./core/Logger ./core/jsonMap ./core/accessorSupport/decorators/reader ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer ./core/accessorSupport/ensureType ./geometry/Point ./views/3d/support/mathUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h){var n;c=n=function(w){function x(...D){D=w.call(this,...D)||this;D.position=new l([0,0,0]);D.heading=0;D.tilt=0;D.fov=55;return D}a._inheritsLoose(x,w);var C=x.prototype;C.normalizeCtorArgs=function(D,A,B,r){return D&&"object"===typeof D&&("x"in D||Array.isArray(D))?(D={position:D},null!=A&&(D.heading=A),null!=B&&(D.tilt=B),null!=r&&(D.fov=r),D):D};C.writePosition=function(D,A,B,r){const z=D.clone();z.x=e.ensureNumber(D.x||0);z.y=e.ensureNumber(D.y||0);z.z=
D.hasZ?e.ensureNumber(D.z||0):D.z;A[B]=z.write(null,r)};C.readPosition=function(D,A){const B=new l;B.read(D,A);B.x=e.ensureNumber(B.x||0);B.y=e.ensureNumber(B.y||0);B.z=B.hasZ?e.ensureNumber(B.z||0):B.z;return B};C.equals=function(D){return D?this.tilt===D.tilt&&this.heading===D.heading&&this.fov===D.fov&&this.position.equals(D.position):!1};C.clone=function(){return new n({position:this.position.clone(),heading:this.heading,tilt:this.tilt,fov:this.fov})};return x}(c.JSONSupport);b.__decorate([f.property({type:l,
json:{write:{isRequired:!0}}})],c.prototype,"position",void 0);b.__decorate([p.writer("position")],c.prototype,"writePosition",null);b.__decorate([u.reader("position")],c.prototype,"readPosition",null);b.__decorate([f.property({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),q.cast(w=>h.cyclicalDeg.normalize(e.ensureNumber(w)))],c.prototype,"heading",void 0);b.__decorate([f.property({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),q.cast(w=>g.clamp(e.ensureNumber(w),-180,180))],
c.prototype,"tilt",void 0);b.__decorate([f.property({type:Number,nonNullable:!0,json:{read:!1,write:!1}})],c.prototype,"fov",void 0);return c=n=b.__decorate([m.subclass("esri.Camera")],c)})},"esri/views/3d/support/mathUtils":function(){define(["exports","../../../core/mathUtils","../../../chunks/vec3","../../../chunks/vec3f64"],function(a,b,c,g){function f(h){for(const n in h){const w=h[n];w instanceof Function&&(h[n]=w.bind(h))}return h}let k=function(){function h(w,x){this.min=w;this.max=x;this.range=
x-w}var n=h.prototype;n.ndiff=function(w,x=0){return Math.ceil((w-x)/this.range)*this.range+x};n._normalize=function(w,x,C,D=0,A=!1){C-=D;C<w?C+=this.ndiff(w-C):C>x&&(C-=this.ndiff(C-x));A&&C===x&&(C=w);return C+D};n.normalize=function(w,x=0,C=!1){return this._normalize(this.min,this.max,w,x,C)};n.clamp=function(w,x=0){return b.clamp(w-x,this.min,this.max)+x};n.monotonic=function(w,x,C){return w<x?x:x+this.ndiff(w-x,C)};n.minimalMonotonic=function(w,x,C){return this._normalize(w,w+this.range,x,C)};
n.center=function(w,x,C){x=this.monotonic(w,x,C);return this.normalize((w+x)/2,C)};n.diff=function(w,x,C){return this.monotonic(w,x,C)-w};n.shortestSignedDiff=function(w,x){w=this.normalize(w);x=this.normalize(x);const C=x-w;w=x<w?this.minimalMonotonic(w,x)-w:x-this.minimalMonotonic(x,w);return Math.abs(C)<Math.abs(w)?C:w};n.contains=function(w,x,C){x=this.minimalMonotonic(w,x);C=this.minimalMonotonic(w,C);return C>w&&C<x};return h}();const q=g.create(),v=g.create(),t=f(new k(0,2*Math.PI)),u=f(new k(-Math.PI,
Math.PI)),m=f(new k(0,360)),p=g.create(),e=g.create(),l=g.create();a.Cyclical=k;a.angle=function(h,n,w){h=c.normalize(e,h);n=c.normalize(l,n);const x=b.acosClamped(c.dot(h,n));return w&&(h=c.cross(p,h,n),0>c.dot(h,w))?-x:x};a.bilerp=function(h,n,w,x,C,D){h+=(n-h)*C;return h+(w+(x-w)*C-h)*D};a.cosCapped=function(h,n){return h>n?Math.cos(n):Math.cos(h)};a.cyclical2PI=t;a.cyclicalDeg=m;a.cyclicalPI=u;a.fovx2fovy=function(h,n,w){return 2*Math.atan(w*Math.tan(.5*h)/n)};a.fovy2fovx=function(h,n,w){return 2*
Math.atan(n*Math.tan(.5*h)/w)};a.makeOrthonormal=function(h,n,w){w=w||h;const x=c.dot(h,n);c.set(w,h[0]-x*n[0],h[1]-x*n[1],h[2]-x*n[2]);c.normalize(w,w)};a.makePiecewiseLinearFunction=function(h){const n=h.length;return function(w){if(w<=h[0][0])return h[0][1];if(w>=h[n-1][0])return h[n-1][1];let x=1;for(;w>h[x][0];)x++;const C=h[x][0];w=(C-w)/(C-h[x-1][0]);return w*h[x-1][1]+(1-w)*h[x][1]}};a.maxScale=function(h){return Math.sqrt(Math.max(h[0]*h[0]+h[4]*h[4]+h[8]*h[8],h[1]*h[1]+h[5]*h[5]+h[9]*h[9],
h[2]*h[2]+h[6]*h[6]+h[10]*h[10]))};a.moduloPositive=function(h,n){return(h%n+n)%n};a.planeFromPoints=function(h,n,w,x){c.subtract(q,n,h);c.subtract(v,w,h);c.cross(x,q,v);c.normalize(x,x);x[3]=-c.dot(h,x)};a.scaleFromMatrix=function(h,n){c.set(h,Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]));return h};a.slerp=function(h,n,w,x=g.create()){const C=c.length(h);var D=c.length(n),A=c.dot(h,n)/(C*D);if(.9999999999999999>A){A=
Math.acos(A);const B=((1-w)*C+w*D)/Math.sin(A);D=B/D*Math.sin(w*A);c.scale(e,h,B/C*Math.sin((1-w)*A));c.scale(l,n,D);return c.add(x,e,l)}return c.lerp(x,h,n,w)};a.slerpTangent=function(h,n,w,x=g.create(),C=g.create()){const D=c.length(h),A=c.length(n);var B=c.dot(h,n)/(D*A);if(.9999999999999999>B){B=Math.acos(B);const r=Math.sin(B),z=Math.sin(w*B),E=Math.sin((1-w)*B),F=(1-w)*D+w*A;{const G=F/r,N=G/A*z;c.scale(e,h,G/D*E);c.scale(l,n,N);c.add(x,e,l)}c.scale(e,h,1/D*(-Math.cos((1-w)*B)*B*F+E*(-D+A)));
c.scale(l,n,1/A*(Math.cos(w*B)*B*F+z*(-D+A)));c.add(C,e,l);c.scale(C,C,1/r);return C}c.lerp(x,h,n,w);c.subtract(C,n,h);c.normalize(C,C);return C};a.tangentFrame=function(h,n,w){Math.abs(h[0])>Math.abs(h[1])?c.set(n,0,1,0):c.set(n,1,0,0);c.cross(w,h,n);c.normalize(n,n);c.cross(n,w,h);c.normalize(w,w)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/mixins/OperationalLayer":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Error ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../core/accessorSupport/read ../../core/accessorSupport/write ./operationalLayers ../support/commonProperties".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h){a.OperationalLayer=n=>{n=function(w){function x(){var D=w.apply(this,arguments)||this;D.title=null;return D}b._inheritsLoose(x,w);var C=x.prototype;C.writeListMode=function(D,A,B,r){r&&"ground"===r.layerContainerType?A[B]=D:D&&e.willPropertyWrite(this,B,{},r)&&(A[B]=D)};C.writeOperationalLayerType=function(D,A,B,r){!D||r&&"tables"===r.layerContainerType||(A.layerType=D)};C.writeTitle=function(D,A){A.title=D||"Layer"};C.read=function(D,A){A&&(A.layer=this);p.readLoadable(this,
D,B=>w.prototype.read.call(this,D,B),A)};C.write=function(D,A){if(A&&A.origin){const r=`${A.origin}/${A.layerContainerType||"operational-layers"}`;var B=l.supportedTypes[r];B=B&&B[this.operationalLayerType];"ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===r&&(B=!1);if(!B)return A.messages&&A.messages.push(new g("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${r}'`,{layer:this})),
null}D=w.prototype.write.call(this,D,{...A,layer:this});A=!!A&&!!A.messages&&!!A.messages.filter(r=>r instanceof g&&"web-document-write:property-required"===r.name).length;return!this.url&&A?null:D};C.beforeSave=function(){};return x}(n);c.__decorate([f.property({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],n.prototype,"id",void 0);c.__decorate([f.property({json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,
write:!1}}}})],n.prototype,"listMode",void 0);c.__decorate([m.writer("listMode")],n.prototype,"writeListMode",null);c.__decorate([f.property({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],n.prototype,"operationalLayerType",void 0);c.__decorate([m.writer("operationalLayerType")],n.prototype,"writeOperationalLayerType",null);c.__decorate([f.property(h.opacity)],n.prototype,"opacity",void 0);c.__decorate([f.property({type:String,
json:{write:{ignoreOrigin:!0,allowNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,allowNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],n.prototype,"title",void 0);c.__decorate([m.writer("title")],n.prototype,"writeTitle",null);c.__decorate([f.property({type:Boolean,json:{name:"visibility",origins:{"web-document":{name:"visibility",default:!0},"portal-item":{name:"visibility",read:{source:["visible","visibility"]}}}}})],n.prototype,"visible",void 0);return n=c.__decorate([u.subclass("esri.layers.mixins.OperationalLayer")],
n)};a.isOperationalLayer=function(n){return"operationalLayerType"in n};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/mixins/operationalLayers":function(){define(["exports"],function(a){a.supportedTypes={"web-scene/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,
PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,VectorTileLayer:!0,WMS:!0,KML:!0,RasterDataLayer:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,
ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,
BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/commonProperties":function(){define("exports ../../TimeExtent ../../geometry/Extent ../../geometry/SpatialReference ../../chunks/persistableUrlUtils ../../symbols/support/ElevationInfo ../../webdoc/support/opacityUtils".split(" "),
function(a,b,c,g,f,k,q){const v={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:!0}},t={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader(x,C){return!C.disablePopup}},write:{enabled:!0,writer(x,C,D){C[D]=!x}}}},u={type:Boolean,value:!0,json:{name:"showLabels",write:!0}};f={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:f.write}}};const m={type:Boolean,value:!0,
json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}};k={value:null,type:k,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};const p={type:Number,json:{origins:{"web-document":{default:1,write:!0,read:!0},"portal-item":{write:!0}}}},e={...p,json:{...p.json,origins:{"web-document":{...p.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency",
"drawingInfo.transparency"],reader(x,C,D){if((!D||"service"===D.origin)&&C.drawingInfo&&void 0!==C.drawingInfo.transparency)return q.transparencyToOpacity(C.drawingInfo.transparency);if(C.layerDefinition&&C.layerDefinition.drawingInfo&&void 0!==C.layerDefinition.drawingInfo.transparency)return q.transparencyToOpacity(C.layerDefinition.drawingInfo.transparency)}}}},l={type:c,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(x,C)=>{x=c.fromJSON(x);null!=C.spatialReference&&
"object"===typeof C.spatialReference&&(x.spatialReference=g.fromJSON(C.spatialReference));return x}}}},read:!1}},h={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},n={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},w={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}};a.combinedViewLayerTimeExtentProperty=
{type:b,readOnly:!0,get(){var x,C;if(null==(x=this.layer)||!x.timeInfo)return null;x=null==(C=this.view)?void 0:C.timeExtent;C=this.layer.timeExtent;C=this.layer.useViewTime?x&&C?x.intersection(C):x||C:C;if(!C||C.isEmpty)return C;C=(x=this.layer.timeOffset)?C.offset(-x.value,x.unit):C;x=this._get("timeExtent");return C.equals(x)?x:C}};a.elevationInfo=k;a.id=h;a.labelsVisible=u;a.legendEnabled=m;a.maxScale=w;a.minScale=n;a.opacity=p;a.opacityDrawingInfo=e;a.popupEnabled=t;a.readOnlyService=function(x){return{type:x,
readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}};a.sceneLayerFullExtent=l;a.screenSizePerspectiveEnabled=v;a.url=f;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/TimeExtent":function(){define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./core/JSONSupport ./core/maybe ./core/timeUtils ./core/accessorSupport/decorators/property ./core/has ./core/accessorSupport/ensureType ./core/Logger ./core/jsonMap ./core/accessorSupport/decorators/reader ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){var l;c=l=function(w){function x(D){D=w.call(this,D)||this;D.end=null;D.start=null;return D}a._inheritsLoose(x,w);var C=x.prototype;C.readEnd=function(D,A){return null!=A.end?new Date(A.end):null};C.writeEnd=function(D,A){A.end=D?D.getTime():null};C.readStart=function(D,A){return null!=A.start?new Date(A.start):null};C.writeStart=function(D,A){A.start=D?D.getTime():null};C.clone=function(){return new l({end:this.end,start:this.start})};C.expandTo=function(D){if(this.isEmpty||
this.isAllTime)return this.clone();const A=g.andThen(this.start,r=>f.truncateDate(r,D)),B=g.andThen(this.end,r=>f.offsetDate(f.truncateDate(r,D),1,D));return new l({start:A,end:B})};C.intersection=function(D){if(!D)return this.clone();if(this.isEmpty||D.isEmpty)return l.empty;if(this.isAllTime)return D.clone();if(D.isAllTime)return this.clone();var A=g.mapOr(this.start,-Infinity,F=>F.getTime());const B=g.mapOr(this.end,Infinity,F=>F.getTime()),r=g.mapOr(D.start,-Infinity,F=>F.getTime());D=g.mapOr(D.end,
Infinity,F=>F.getTime());let z,E;r>=A&&r<=B?z=r:A>=r&&A<=D&&(z=A);B>=r&&B<=D?E=B:D>=A&&D<=B&&(E=D);return isNaN(z)||isNaN(E)?l.empty:(A=new l,A.start=-Infinity===z?null:new Date(z),A.end=Infinity===E?null:new Date(E),A)};C.offset=function(D,A){if(this.isEmpty||this.isAllTime)return this.clone();const B=new l,{start:r,end:z}=this;g.isSome(r)&&(B.start=f.offsetDate(r,D,A));g.isSome(z)&&(B.end=f.offsetDate(z,D,A));return B};C.equals=function(D){if(!D)return!1;const A=g.isSome(this.start)?this.start.getTime():
this.start,B=g.isSome(this.end)?this.end.getTime():this.end,r=g.isSome(D.start)?D.start.getTime():D.start;D=g.isSome(D.end)?D.end.getTime():D.end;return A===r&&B===D};C.union=function(D){if(!D||D.isEmpty)return this.clone();if(this.isEmpty)return D.clone();if(this.isAllTime||D.isAllTime)return h.clone();const A=g.isSome(this.start)&&g.isSome(D.start)?new Date(Math.min(this.start.getTime(),D.start.getTime())):null;D=g.isSome(this.end)&&g.isSome(D.end)?new Date(Math.max(this.end.getTime(),D.end.getTime())):
null;return new l({start:A,end:D})};a._createClass(x,[{key:"isAllTime",get:function(){return this.equals(l.allTime)}},{key:"isEmpty",get:function(){return this.equals(l.empty)}}],[{key:"allTime",get:function(){return h}},{key:"empty",get:function(){return n}}]);return x}(c.JSONSupport);b.__decorate([k.property({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0);b.__decorate([m.reader("end")],c.prototype,"readEnd",null);b.__decorate([e.writer("end")],c.prototype,"writeEnd",null);b.__decorate([k.property({readOnly:!0,
json:{read:!1}})],c.prototype,"isAllTime",null);b.__decorate([k.property({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null);b.__decorate([k.property({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0);b.__decorate([m.reader("start")],c.prototype,"readStart",null);b.__decorate([e.writer("start")],c.prototype,"writeStart",null);c=l=b.__decorate([p.subclass("esri.TimeExtent")],c);const h=new c,n=new c({start:void 0,end:void 0});return c})},"esri/core/timeUtils":function(){define(["exports",
"./has"],function(a,b){function c(k,q,v){return 0===k?0:k*g[q]/g[v]}const g={milliseconds:1,seconds:1E3,minutes:6E4,hours:36E5,days:864E5,weeks:6048E5,months:26784E5,years:31536E6,decades:31536E7,centuries:31536E8},f={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",
setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};a.convertTime=c;a.makeUTCTime=function(k,q,v="milliseconds"){q=new Date(c(q,v,"milliseconds"));q.setUTCFullYear(k.getUTCFullYear(),k.getUTCMonth(),k.getUTCDate());
return q};a.offsetDate=function(k,q,v){k=new Date(k.getTime());if(q&&v){const {getter:t,setter:u,multiplier:m}=f[v];k[u](k[t]()+q*m)}return k};a.offsetDateUTC=function(k,q,v="milliseconds"){k=k.getTime();q=c(q,v,"milliseconds");return new Date(k+q)};a.resetUTCDate=function(k,q){k=new Date(k.getTime());k.setUTCFullYear(q.getFullYear(),q.getMonth(),q.getDate());return k};a.timeSinceUTCMidnight=function(k,q="milliseconds"){const v=c(k.getUTCHours(),"hours","milliseconds"),t=c(k.getUTCMinutes(),"minutes",
"milliseconds"),u=c(k.getUTCSeconds(),"seconds","milliseconds");k=k.getUTCMilliseconds();return c(v+t+u+k,"milliseconds",q)};a.truncateDate=function(k,q){switch(q){case "milliseconds":return new Date(k.getTime());case "seconds":return new Date(k.getFullYear(),k.getMonth(),k.getDate(),k.getHours(),k.getMinutes(),k.getSeconds());case "minutes":return new Date(k.getFullYear(),k.getMonth(),k.getDate(),k.getHours(),k.getMinutes());case "hours":return new Date(k.getFullYear(),k.getMonth(),k.getDate(),k.getHours());
case "days":return new Date(k.getFullYear(),k.getMonth(),k.getDate());case "weeks":return new Date(k.getFullYear(),k.getMonth(),k.getDate()-k.getDay());case "months":return new Date(k.getFullYear(),k.getMonth(),1);case "years":return new Date(k.getFullYear(),0,1);case "decades":return new Date(k.getFullYear()-k.getFullYear()%10,0,1);case "centuries":return new Date(k.getFullYear()-k.getFullYear()%100,0,1);default:return new Date}};a.truncateLocalTime=function(k){const q=new Date(0);q.setHours(0);
q.setMinutes(0);q.setSeconds(0);q.setMilliseconds(0);q.setFullYear(k.getUTCFullYear(),k.getUTCMonth(),k.getUTCDate());return q};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/chunks/persistableUrlUtils":function(){define(["exports","../core/maybe","../core/urlUtils"],function(a,b,c){function g(e,l){var h=l&&l.url&&l.url.path;e&&h&&(e=c.makeAbsolute(e,h,{preserveProtocolRelative:!0}),l.portalItem&&l.readResourcePaths&&(h=c.makeRelative(e,l.portalItem.itemUrl),m.test(h)&&l.readResourcePaths.push(l.portalItem.resourceFromPath(h).path)));
return t(e,l&&l.portal)}function f(e,l,h=0){if(!e)return e;!c.isAbsolute(e)&&l&&l.blockedRelativeUrls&&l.blockedRelativeUrls.push(e);var n=c.makeAbsolute(e);if(l){var w=l.verifyItemRelativeUrls&&l.verifyItemRelativeUrls.rootPath||l.url&&l.url.path;w&&(w=t(w,l.portal),n=c.makeRelative(t(n,l.portal),w,w),n!==e&&l.verifyItemRelativeUrls&&l.verifyItemRelativeUrls.writtenUrls.push(n))}e=n;n=(n=l&&l.portal)&&!n.isPortal&&n.urlKey&&n.customBaseUrl?c.changeDomain(e,`${n.urlKey}.${n.customBaseUrl}`,n.portalHostname):
e;c.isAbsolute(n)&&(n=c.normalize(n));null!=l&&l.resources&&null!=l&&l.portalItem&&!c.isAbsolute(n)&&!c.isDataProtocol(n)&&0===h&&l.resources.toKeep.push({resource:l.portalItem.resourceFromPath(n)});return n}function k(e,l,h){return g(e,h)}function q(e,l,h,n){e=f(e,n);void 0!==e&&(l[h]=e)}function v(e){e=b.isSome(e)?e.match(u):null;return b.isSome(e)?e[1]:null}function t(e,l){if(!l||l.isPortal||!l.urlKey||!l.customBaseUrl)return e;const h=`${l.urlKey}.${l.customBaseUrl}`;return c.hasSameOrigin(c.appUrl,
`${c.appUrl.scheme}://${h}`)?c.changeDomain(e,l.portalHostname,h):c.changeDomain(e,h,l.portalHostname)}const u=/\/items\/([^\/]+)\/resources\//,m=/^\.\/resources\//;var p=Object.freeze({__proto__:null,fromJSON:g,toJSON:f,read:k,write:q,itemIdFromResourceUrl:v});a.fromJSON=g;a.itemIdFromResourceUrl=v;a.persistableUrlUtils=p;a.read=k;a.toJSON=f;a.write=q})},"esri/symbols/support/ElevationInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./FeatureExpressionInfo ./unitConversionUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l){var h;q=c.strict()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"});c=new c.JSONMap({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});g=h=function(n){function w(){var C=n.apply(this,arguments)||this;C.offset=null;return C}a._inheritsLoose(w,n);var x=w.prototype;x.readFeatureExpressionInfo=function(C,D){if(null!=C)return C;if(D.featureExpression&&
0===D.featureExpression.value)return{expression:"0"}};x.writeFeatureExpressionInfo=function(C,D,A,B){D[A]=C.write(null,B);"0"===C.expression&&(D.featureExpression={value:0})};x.write=function(C,D){return this.offset||this.mode||this.featureExpressionInfo||this.unit?n.prototype.write.call(this,C,D):null};x.clone=function(){return new h({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})};a._createClass(w,[{key:"mode",
get:function(){const {offset:C,featureExpressionInfo:D}=this;return this._isOverridden("mode")?this._get("mode"):f.isSome(C)||D?"relative-to-ground":"on-the-ground"},set:function(C){this._override("mode",C)}},{key:"unit",set:function(C){this._set("unit",C)}}]);return w}(g.JSONSupport);b.__decorate([k.property({type:e,json:{write:!0}})],g.prototype,"featureExpressionInfo",void 0);b.__decorate([u.reader("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],g.prototype,"readFeatureExpressionInfo",
null);b.__decorate([p.writer("featureExpressionInfo",{featureExpressionInfo:{type:e},"featureExpression.value":{type:[0]}})],g.prototype,"writeFeatureExpressionInfo",null);b.__decorate([k.property({type:q.apiValues,nonNullable:!0,json:{type:q.jsonValues,read:q.read,write:{writer:q.write,isRequired:!0}}})],g.prototype,"mode",null);b.__decorate([k.property({type:Number,json:{write:!0}})],g.prototype,"offset",void 0);b.__decorate([k.property({type:l.supportedUnits,json:{type:String,read:c.read,write:c.write}})],
g.prototype,"unit",null);return g=h=b.__decorate([m.subclass("esri.layers.support.ElevationInfo")],g)})},"esri/symbols/support/FeatureExpressionInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../../layers/support/fieldUtils".split(" "),function(a,b,c,g,f,
k,q,v,t,u){var m;c=m=function(p){function e(){return p.apply(this,arguments)||this}a._inheritsLoose(e,p);var l=e.prototype;l.collectRequiredFields=function(){var h=a._asyncToGenerator(function*(n,w){return u.collectArcadeFieldNames(n,w,this.expression)});return function(n,w){return h.apply(this,arguments)}}();l.clone=function(){return new m({expression:this.expression,title:this.title})};return e}(c.JSONSupport);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"expression",void 0);
b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"title",void 0);return c=m=b.__decorate([t.subclass("esri.layers.support.FeatureExpressionInfo")],c)})},"esri/layers/support/fieldUtils":function(){define("require exports ../../chunks/_rollupPluginBabelHelpers ../../core/Error ../../core/maybe ../../core/object ./domains ../../support/arcadeOnDemand".split(" "),function(a,b,c,g,f,k,q,v){function t(T,ba,ha){if(T)for(const sa of T)(T=(T=k.getDeepValue(sa,ba))&&"function"!==typeof T&&
ha.get(T))&&k.setDeepValue(sa,T.name,ba)}function u(T,ba){if(!T||!ba)return[];ea.clear();m(ea,T,ba);return Array.from(ea).sort()}function m(T,ba,ha){var sa;if(ha)if(null!=ba&&null!=(sa=ba.fields)&&sa.length)if(ha.includes("*"))for(const {name:Aa}of ba.fields)T.add(Aa);else for(const Aa of ha)p(T,ba,Aa);else if(ha.includes("*"))T.clear(),T.add("*");else for(const Aa of ha)T.add(Aa)}function p(T,ba,ha){"string"===typeof ha&&(ba?(ba=ba.get(ha))&&T.add(ba.name):T.add(ha))}function e(T,ba,ha){return l.apply(this,
arguments)}function l(){l=c._asyncToGenerator(function*(T,ba,ha){if(ha){var {arcadeUtils:sa}=yield v.loadArcade();ha=sa.extractFieldNames(ha);for(const Aa of ha)p(T,ba,Aa)}});return l.apply(this,arguments)}function h(T,ba,ha){return n.apply(this,arguments)}function n(){n=c._asyncToGenerator(function*(T,ba,ha){if(ha&&"1\x3d1"!==ha){ha=(yield new Promise(function(sa,Aa){a(["../../core/sql/WhereClause"],sa,Aa)})).WhereClause.create(ha,ba);if(!ha.isStandardized)throw new g("fieldUtils:collectFilterFields",
"Where clause is not standardized");m(T,ba,ha.fieldNames)}});return n.apply(this,arguments)}function w(T,ba){for(const ha of T)if(ha&&ha.valueType&&ha.valueType===ba)return ha.name;return null}function x(){x=c._asyncToGenerator(function*(T){if(!T)return[];const ba=new Set;yield C(ba,T);return Array.from(ba).sort()});return x.apply(this,arguments)}function C(T,ba){return D.apply(this,arguments)}function D(){D=c._asyncToGenerator(function*(T,ba){if(ba){var ha=k.getDeepValue("elevationInfo.featureExpressionInfo",
ba);if(ha)return ha.collectRequiredFields(T,ba.fieldsIndex)}});return D.apply(this,arguments)}function A(T,ba,ha){return B.apply(this,arguments)}function B(){B=c._asyncToGenerator(function*(T,ba,ha){ha.outStatistic.onStatisticValueExpression?e(T,ba,ha.outStatistic.onStatisticValueExpression):T.add(ha.outStatistic.onStatisticField)});return B.apply(this,arguments)}function r(){r=c._asyncToGenerator(function*(T,ba,ha){ba&&ha&&"cluster"===ha.type&&ha.fields&&(yield Promise.all(ha.fields.map(sa=>A(T,
ba.fieldsIndex,sa))))});return r.apply(this,arguments)}function z(){z=c._asyncToGenerator(function*(T,ba,ha){ba&&(ba.timeInfo&&f.isSome(ha)&&ha.timeExtent&&m(T,ba.fieldsIndex,[ba.timeInfo.startField,ba.timeInfo.endField]),ba.floorInfo&&m(T,ba.fieldsIndex,[ba.floorInfo.floorField]),f.isSome(ha)&&f.isSome(ha.where)&&(yield h(T,ba.fieldsIndex,ha.where)))});return z.apply(this,arguments)}function E(){E=c._asyncToGenerator(function*(T){if(!T)return[];const ba="timeInfo"in T&&T.timeInfo;return ba?u(T.fieldsIndex,
[T.trackIdField,ba.startField,ba.endField]):[]});return E.apply(this,arguments)}function F(){F=c._asyncToGenerator(function*(T){if(!T)return[];const ba=new Set;yield G(ba,T);return Array.from(ba).sort()});return F.apply(this,arguments)}function G(T,ba){return N.apply(this,arguments)}function N(){N=c._asyncToGenerator(function*(T,ba){const {labelingInfo:ha,fieldsIndex:sa}=ba;ha&&ha.length&&(yield Promise.all(ha.map(Aa=>K(T,sa,Aa))))});return N.apply(this,arguments)}function K(T,ba,ha){return I.apply(this,
arguments)}function I(){I=c._asyncToGenerator(function*(T,ba,ha){if(ha){var sa=ha.getLabelExpression();ha=ha.where;"arcade"===sa.type?yield e(T,ba,sa.expression):(sa=sa.expression.match(/{[^}]*}/g))&&sa.forEach(Aa=>{p(T,ba,Aa.slice(1,-1))});yield h(T,ba,ha)}});return I.apply(this,arguments)}function J(T){return"number"===typeof T&&!isNaN(T)&&isFinite(T)}function L(T){return null===T||J(T)}function Q(T){return null===T||la(T)}function W(T){return null!=T&&"string"===typeof T}function V(T){return null===
T||W(T)}function P(){return!0}function X(T,ba){let ha;switch(T.type){case "date":case "integer":case "long":case "small-integer":case "esriFieldTypeDate":case "esriFieldTypeInteger":case "esriFieldTypeLong":case "esriFieldTypeSmallInteger":ha=T.nullable?Q:la;break;case "double":case "single":case "esriFieldTypeSingle":case "esriFieldTypeDouble":ha=T.nullable?L:J;break;case "string":case "esriFieldTypeString":ha=T.nullable?V:W;break;default:ha=P}return 1===arguments.length?ha:ha(ba)}function U(T){return null!=
T&&Ba.has(T.type)}function Z(T,ba){return T.nullable&&null===ba?null:U(T)&&!oa(T.type,Number(ba))?b.NumericRangeValidationError.OUT_OF_RANGE:X(T,ba)?T.domain?q.validateDomainValue(T.domain,ba):null:b.TypeValidationError.INVALID_TYPE}function oa(T,ba){return(T="string"===typeof T?xa(T):T)?T.isInteger?la(ba)&&ba>=T.min&&ba<=T.max:ba>=T.min&&ba<=T.max:!1}function xa(T){switch(T){case "esriFieldTypeSmallInteger":case "small-integer":return aa;case "esriFieldTypeInteger":case "integer":return ja;case "esriFieldTypeSingle":case "single":return ua;
case "esriFieldTypeDouble":case "double":return ta}}function Ea(T,ba,ha){if(!ba||!ba.attributes||!T){if(f.isSome(ha))for(var sa of T)ha.add(sa);return!0}ba=ba.attributes;sa=!1;for(const Aa of T)if(!(Aa in ba))if(sa=!0,f.isSome(ha))ha.add(Aa);else break;return sa}function fa(){fa=c._asyncToGenerator(function*(T,ba){const ha=new Set;for(const sa of ba)yield e(ha,T.fieldsIndex,sa);return Array.from(ha).sort()});return fa.apply(this,arguments)}const ia="field field2 field3 normalizationField rotationInfo.field proportionalSymbolInfo.field proportionalSymbolInfo.normalizationField colorInfo.field colorInfo.normalizationField".split(" "),
da=["field","normalizationField"],ea=new Set,la=(()=>"isInteger"in Number?Number.isInteger:T=>"number"===typeof T&&isFinite(T)&&Math.floor(T)===T)(),va=["integer","small-integer","single","double"],Ba=new Set([...va,"esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);b.NumericRangeValidationError=void 0;(b.NumericRangeValidationError||(b.NumericRangeValidationError={})).OUT_OF_RANGE="numeric-range-validation-error::out-of-range";b.TypeValidationError=void 0;
(b.TypeValidationError||(b.TypeValidationError={})).INVALID_TYPE="type-validation-error::invalid-type";const aa={min:-32768,max:32767,isInteger:!0},ja={min:-2147483648,max:2147483647,isInteger:!0},ua={min:-3.4E38,max:1.2E38,isInteger:!1},ta={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};b.collectArcadeFieldNames=e;b.collectElevationFields=C;b.collectFeatureReductionFields=function(T,ba,ha){return r.apply(this,arguments)};b.collectField=p;b.collectFields=m;b.collectFilterFields=function(T,
ba,ha){return z.apply(this,arguments)};b.collectLabelingFields=G;b.doubleRange=ta;b.featureHasFields=function(T,ba){return!Ea(T,ba,null)};b.fixFields=u;b.fixRendererFields=function(T,ba){if(null!=T&&null!=ba)for(const ha of Array.isArray(T)?T:[T])if(t(ia,ha,ba),"visualVariables"in ha&&ha.visualVariables)for(const sa of ha.visualVariables)t(da,sa,ba)};b.fixTimeInfoFields=function(T,ba){if(null!=T&&null!=ba&&ba.fields.length)if("startField"in T){var ha=ba.get(T.startField);ba=ba.get(T.endField);T.startField=
ha&&ha.name||null;T.endField=ba&&ba.name||null}else ha=ba.get(T.startTimeField),ba=ba.get(T.endTimeField),T.startTimeField=ha&&ha.name||null,T.endTimeField=ba&&ba.name||null};b.getDisplayFieldName=function({displayField:T,fields:ba}){if(T)return T;if(!ba||!ba.length)return null;if(!(T=w(ba,"name-or-title")||w(ba,"unique-identifier")||w(ba,"type-or-category")))a:{for(const ha of ba)if(ha&&ha.name&&(ba=ha.name.toLowerCase(),-1<ba.indexOf("name")||-1<ba.indexOf("title"))){T=ha.name;break a}T=null}return T};
b.getElevationFields=function(T){return x.apply(this,arguments)};b.getExpressionFields=function(T,ba){return fa.apply(this,arguments)};b.getFeatureEditFields=function(T){if(!T)return[];const ba="editFieldsInfo"in T&&T.editFieldsInfo;return ba?u(T.fieldsIndex,[ba&&ba.creatorField,ba&&ba.creationDateField,ba&&ba.editorField,ba&&ba.editDateField]):[]};b.getFeatureGeometryFields=function(T){if(!T)return[];const ba=T.geometryFieldsInfo;return ba?u(T.fieldsIndex,[ba.shapeAreaField,ba.shapeLengthField]):
[]};b.getFieldDefaultValue=function(T){const ba=T.defaultValue;if(void 0!==ba&&X(T,ba))return ba;if(T.nullable)return null};b.getFieldRange=function(T){const ba=q.getDomainRange(T.domain);if(ba)return ba;if(U(T))return xa(T.type)};b.getLabelingFields=function(T){return F.apply(this,arguments)};b.getNumericTypeForValue=function(T){if(!J(T))return null;if(la(T)){if(T>=aa.min&&T<=aa.max)return"esriFieldTypeSmallInteger";if(T>=ja.min&&T<=ja.max)return"esriFieldTypeInteger"}return T>=ua.min&&T<=ua.max?
"esriFieldTypeSingle":"esriFieldTypeDouble"};b.getTimeFields=function(T){return E.apply(this,arguments)};b.integerRange=ja;b.isDateField=function(T){return null!=T&&("date"===T.type||"esriFieldTypeDate"===T.type)};b.isNumberInRange=oa;b.isNumericField=U;b.isStringField=function(T){return null!=T&&("string"===T.type||"esriFieldTypeString"===T.type)};b.isValidFieldValue=function(T,ba){return null===Z(T,ba)};b.isValueMatchingFieldType=X;b.numericTypes=va;b.packFields=function(T,ba,ha=1){if(!ba||!T)return[];
if(ba.includes("*"))return["*"];ba=u(T,ba);return ba.length/T.fields.length>=ha?["*"]:ba};b.populateMissingFields=Ea;b.rendererFields=ia;b.sanitizeNullFieldValue=function(T){return null==T||"number"===typeof T&&isNaN(T)?null:T};b.singleRange=ua;b.smallIntegerRange=aa;b.unpackFieldNames=function(T,ba){return f.isNone(ba)||f.isNone(T)?[]:ba.includes("*")?T.fields.map(ha=>ha.name):ba};b.validateFieldValue=Z;b.validationErrorToString=function(T,ba,ha){switch(T){case q.DomainValidationError.INVALID_CODED_VALUE:return`Value ${ha} is not in the coded domain - field: ${ba.name}, domain: ${JSON.stringify(ba.domain)}`;
case q.DomainValidationError.VALUE_OUT_OF_RANGE:return`Value ${ha} is out of the range of valid values - field: ${ba.name}, domain: ${JSON.stringify(ba.domain)}`;case b.TypeValidationError.INVALID_TYPE:return`Value ${ha} is not a valid value for the field type - field: ${ba.name}, type: ${ba.type}, nullable: ${ba.nullable}`;case b.NumericRangeValidationError.OUT_OF_RANGE:{const {min:sa,max:Aa}=xa(ba.type);return`Value ${ha} is out of range for the number type - field: ${ba.name}, type: ${ba.type}, value range is ${sa} to ${Aa}`}}};
b.visualVariableFields=da;Object.defineProperty(b,"__esModule",{value:!0})})},"esri/layers/support/domains":function(){define("exports ../../core/has ./CodedValueDomain ./Domain ./InheritedDomain ./RangeDomain".split(" "),function(a,b,c,g,f,k){function q(v,t){switch(v.type){case "range":{const u="range"in v?v.range[1]:v.maxValue;if(+t<("range"in v?v.range[0]:v.minValue)||+t>u)return a.DomainValidationError.VALUE_OUT_OF_RANGE;break}case "coded-value":case "codedValue":if(null==v.codedValues||v.codedValues.every(u=>
null==u||u.code!==t))return a.DomainValidationError.INVALID_CODED_VALUE}return null}a.DomainValidationError=void 0;(function(v){v.VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range";v.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value"})(a.DomainValidationError||(a.DomainValidationError={}));b={key:"type",base:g,typeMap:{range:k,"coded-value":c,inherited:f}};a.CodedValueDomain=c;a.DomainBase=g;a.InheritedDomain=f;a.RangeDomain=k;a.fromJSON=function(v){if(!v||!v.type)return null;
switch(v.type){case "range":return k.fromJSON(v);case "codedValue":return c.fromJSON(v);case "inherited":return f.fromJSON(v)}return null};a.getDomainRange=function(v){if(v&&"range"===v.type)return{min:"range"in v?v.range[0]:v.minValue,max:"range"in v?v.range[1]:v.maxValue}};a.isValidDomainValue=function(v,t){return null===q(v,t)};a.types=b;a.validateDomainValue=q;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/CodedValueDomain":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./CodedValue ./Domain".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){var p;f=p=function(e){function l(n){n=e.call(this,n)||this;n.codedValues=null;n.type="coded-value";return n}a._inheritsLoose(l,e);var h=l.prototype;h.getName=function(n){let w=null;if(this.codedValues){const x=String(n);this.codedValues.some(C=>{String(C.code)===x&&(w=C.name);return!!w})}return w};h.clone=function(){return new p({codedValues:c.clone(this.codedValues),name:this.name})};return l}(m);b.__decorate([g.property({type:[u["default"]],json:{write:!0}})],f.prototype,
"codedValues",void 0);b.__decorate([v.enumeration({codedValue:"coded-value"})],f.prototype,"type",void 0);return f=p=b.__decorate([t.subclass("esri.layers.support.CodedValueDomain")],f)})},"esri/layers/support/CodedValue":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;a.CodedValue=m=function(p){function e(l){l=p.call(this,l)||this;l.name=null;l.code=null;return l}b._inheritsLoose(e,p);e.prototype.clone=function(){return new m({name:this.name,code:this.code})};return e}(g.JSONSupport);c.__decorate([f.property({type:String,json:{write:!0}})],a.CodedValue.prototype,"name",void 0);c.__decorate([f.property({type:[String,Number],json:{write:!0}})],a.CodedValue.prototype,"code",void 0);a.CodedValue=m=c.__decorate([u.subclass("esri.layers.support.CodedValue")],
a.CodedValue);a.default=a.CodedValue;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/Domain":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t,u){c=new c.JSONMap({inherited:"inherited",
codedValue:"coded-value",range:"range"});g=function(m){function p(e){e=m.call(this,e)||this;e.name=null;e.type=null;return e}a._inheritsLoose(p,m);return p}(g.JSONSupport);b.__decorate([f.property({type:String,json:{write:!0}})],g.prototype,"name",void 0);b.__decorate([t.enumeration(c)],g.prototype,"type",void 0);return g=b.__decorate([u.subclass("esri.layers.support.Domain")],g)})},"esri/layers/support/InheritedDomain":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Domain".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;c=u=function(m){function p(e){e=m.call(this,e)||this;e.type="inherited";return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u};return p}(t);b.__decorate([q.enumeration({inherited:"inherited"})],c.prototype,"type",void 0);return c=u=b.__decorate([v.subclass("esri.layers.support.InheritedDomain")],c)})},"esri/layers/support/RangeDomain":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Domain".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;g=u=function(m){function p(e){e=m.call(this,e)||this;e.maxValue=null;e.minValue=null;e.type="range";return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({maxValue:this.maxValue,minValue:this.minValue,name:this.name})};return p}(t);b.__decorate([c.property({type:Number,json:{type:[Number],read:{source:"range",reader(m,p){return p.range&&p.range[1]}},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",
writer(m,p,e){p[e]=[this.minValue||0,m]}}}})],g.prototype,"maxValue",void 0);b.__decorate([c.property({type:Number,json:{type:[Number],read:{source:"range",reader(m,p){return p.range&&p.range[0]}},write:{target:"range",writer(m,p,e){p[e]=[m,this.maxValue||0]}}}})],g.prototype,"minValue",void 0);b.__decorate([q.enumeration({range:"range"})],g.prototype,"type",void 0);return g=u=b.__decorate([v.subclass("esri.layers.support.RangeDomain")],g)})},"esri/support/arcadeOnDemand":function(){define("require exports ../chunks/_rollupPluginBabelHelpers ../geometry ../core/maybe ../geometry/SpatialReference".split(" "),
function(a,b,c,g,f,k){function q(){return v.apply(this,arguments)}function v(){v=c._asyncToGenerator(function*(){t||(t=c._asyncToGenerator(function*(){const m=yield new Promise(function(p,e){a(["./arcadeUtils"],p,e)});yield m.arcade.load();return{arcade:m.arcade,arcadeUtils:m,Dictionary:m.Dictionary,Feature:m.arcadeFeature}})());return t});return v.apply(this,arguments)}let t;g=(m,p,e)=>u.create(m,p,e,null,["$feature","$view"]);let u=function(){function m(e,l,h,n,w,x,C,D){this.script=e;this.evaluate=
w;this.fields=Array.isArray(C)?C:C.fields;this._syntaxTree=n;this._arcade=l;this._arcadeDictionary=h;this._arcadeFeature=x;this._spatialReference=D;this._referencesGeometry=l.scriptTouchesGeometry(this._syntaxTree);this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}m.create=function(){var e=c._asyncToGenerator(function*(l,h,n,w,x,C){const {arcade:D,Feature:A,Dictionary:B}=yield q(),r=k.fromJSON(h);h=D.parseScript(l,C);x=x.reduce((N,K)=>({...N,[K]:null}),{});let z=null;f.isSome(w)&&
(z=new B(w),z.immutable=!0,x.$config=null);w=D.scriptUsesGeometryEngine(h)&&D.enableGeometrySupport();C=D.scriptUsesFeatureSet(h)&&D.enableFeatureSetSupport();const E=D.scriptIsAsync(h)&&D.enableAsyncSupport();x={vars:x,spatialReference:r,useAsync:!!E};const F=new B;F.immutable=!1;F.setField("scale",0);const G=D.compileScript(h,x);yield Promise.all([w,C,E]);return new m(l,D,B,h,N=>{"$view"in N&&N.$view&&(F.setField("scale",N.$view.scale),N.$view=F);z&&(N.$config=z);return G({vars:N,spatialReference:r})},
new A,n,r)});return function(l,h,n,w,x,C){return e.apply(this,arguments)}}();var p=m.prototype;p.repurposeFeature=function(e){e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference);this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields});return this._arcadeFeature};p.repurposeAdapter=function(e){this._arcadeFeature.repurposeFromAdapter(e,{fields:this.fields});return this._arcadeFeature};p.createDictionary=function(){return new this._arcadeDictionary};
p.referencesMember=function(e){return this._arcade.referencesMember(this._syntaxTree,e)};p.referencesFunction=function(e){return this._arcade.referencesFunction(this._syntaxTree,e)};p.referencesGeometry=function(){return this._referencesGeometry};p.referencesScale=function(){return this._referencesScale};p.extractFieldLiterals=function(e){return this._arcade.extractFieldLiterals(this._syntaxTree,e)};return m}();b.ArcadeExpression=u;b.createDictionaryExpression=(m,p,e,l)=>u.create(m,p,e,l,["$feature",
"$view"]);b.createLabelExpression=(m,p,e)=>u.create(m,p,e,null,["$feature"]);b.createRendererExpression=g;b.createVVExpression=g;b.default=u;b.loadArcade=q;Object.defineProperty(b,"__esModule",{value:!0})})},"esri/symbols/support/unitConversionUtils":function(){define(["exports","../../renderers/support/lengthUtils"],function(a,b){const c=function(){const g=Object.keys(b.meterIn);g.sort();return g}();a.getMetersPerUnit=function(g){return 1/(b.meterIn[g]||1)};a.supportedUnits=c;a.supportsUnit=function(g){return null!=
b.meterIn[g]};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/renderers/support/lengthUtils":function(){define(["exports","../../core/unitUtils","../../geometry/support/Ellipsoid"],function(a,b,c){b={inches:b.convertUnit(1,"meters","inches"),feet:b.convertUnit(1,"meters","feet"),"us-feet":b.convertUnit(1,"meters","us-feet"),yards:b.convertUnit(1,"meters","yards"),miles:b.convertUnit(1,"meters","miles"),"nautical-miles":b.convertUnit(1,"meters","nautical-miles"),millimeters:b.convertUnit(1,
"meters","millimeters"),centimeters:b.convertUnit(1,"meters","centimeters"),decimeters:b.convertUnit(1,"meters","decimeters"),meters:b.convertUnit(1,"meters","meters"),kilometers:b.convertUnit(1,"meters","kilometers"),"decimal-degrees":1/b.lengthToDegrees(1,"meters",c.earth.radius)};a.meterIn=b;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/unitUtils":function(){define("exports ./has ./jsonMap ../geometry/projectionEllipsoid ../geometry/SpatialReference ../geometry/support/Ellipsoid ../geometry/support/spatialReferenceUtils ../geometry/support/WKIDUnitConversion".split(" "),
function(a,b,c,g,f,k,q,v){function t(J){if(J=N[J])return J;throw Error("unknown measure");}function u(J){return G[J].baseUnit}function m(J,L=null){L=L||t(J);return G[L].baseUnit===J}function p(J,L,Q){if(L===Q)return J;const W=t(L);if(W!==t(Q))throw Error("incompatible units");J=m(L,W)?J:J*G[W].units[L].inBaseUnits;return m(Q,W)?J:J/G[W].units[Q].inBaseUnits}function e(J,L){return 3E3>p(J,L,"meters")?"meters":"kilometers"}function l(J,L){return 1E5>p(J,L,"meters")?"meters":"kilometers"}function h(J,
L){return 1E3>p(J,L,"feet")?"feet":"miles"}function n(J,L){return 1E5>p(J,L,"feet")?"feet":"miles"}function w(J){return F.fromJSON(J.toLowerCase())||null}function x(J,L=k.earth.metersPerDegree){return C(J,!0)||L}function C(J,L=!1){let Q,W,V=null;null!=J&&("object"===typeof J?(Q=J.wkid,W=J.wkt):"number"===typeof J?Q=J:"string"===typeof J&&(W=J));if(Q){if(q.isWKIDFromMars(Q))return k.mars.metersPerDegree;if(q.isWKIDFromMoon(Q))return k.moon.metersPerDegree;V=r.values[r[Q]];!V&&L&&E.has(Q)&&(V=A)}else W&&
(-1!==W.search(/^PROJCS/i)?(J=B.exec(W))&&J[1]&&(V=parseFloat(J[1].split(",")[1])):-1!==W.search(/^GEOCCS/i)&&(J=z.exec(W))&&J[1]&&(V=parseFloat(J[1].split(",")[1])));return V}function D(J){let L,Q,W=null;null!=J&&("object"===typeof J?(L=J.wkid,Q=J.wkt):"number"===typeof J?L=J:"string"===typeof J&&(Q=J));L?W=r.units[r[L]]:Q&&-1!==Q.search(/^PROJCS/i)&&(J=B.exec(Q))&&J[1]&&(W=(J=/[\\"\\']{1}([^\\"\\']+)/.exec(J[1]))&&J[1]);return W?w(W):null}const A=k.earth.radius*Math.PI/200,B=/UNIT\[([^\]]+)\]\]$/i,
r=v,z=/UNIT\[([^\]]+)\]/i,E=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),F=c.strict()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains",
"50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"});b={millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1E3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}};v={"square-millimeters":{inBaseUnits:1E-6},"square-centimeters":{inBaseUnits:1E-4},"square-decimeters":{inBaseUnits:.1*
.1},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:1E6},"square-inches":{inBaseUnits:6.4516E-4},"square-feet":{inBaseUnits:.09290304},"square-yards":{inBaseUnits:.83612736},"square-miles":{inBaseUnits:2589988.110336},"square-us-feet":{inBaseUnits:(J=>J*J)(1200/3937)},acres:{inBaseUnits:4046.8564224},ares:{inBaseUnits:100},hectares:{inBaseUnits:1E4}};const G={length:{baseUnit:"meters",units:b},area:{baseUnit:"square-meters",units:v},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},
"cubic-millimeters":{inBaseUnits:1E3*1E-9},"cubic-centimeters":{inBaseUnits:.001},"cubic-decimeters":{inBaseUnits:1},"cubic-meters":{inBaseUnits:1E3},"cubic-kilometers":{inBaseUnits:1E12},"cubic-inches":{inBaseUnits:.016387064},"cubic-feet":{inBaseUnits:.09290304*304.8},"cubic-yards":{inBaseUnits:764.554857984},"cubic-miles":{inBaseUnits:4.16818182544058E12}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},N=function(){const J={};for(const L in G)for(const Q in G[L].units)J[Q]=
L;return J}(),K={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},I={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",
esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"};b=c.strict()(K);v=c.strict()(I);c=c.strict()({...K,...I});a.areaUnitsJSONMap=b;a.baseUnitForMeasure=u;a.baseUnitForUnit=function(J){return u(t(J))};a.convertUnit=p;a.getDefaultUnitSystem=function(J){if(!J)return null;switch(D(J)){case "feet":case "us-feet":case "clarke-feet":case "clarke-yards":case "clarke-links":case "sears-yards":case "sears-feet":case "sears-chains":case "benoit-1895-b-chains":case "indian-yards":case "indian-1937-yards":case "gold-coast-feet":case "sears-1922-truncated-chains":return"imperial";
case "50-kilometers":case "150-kilometers":case "meters":return"metric"}return null};a.getMetersPerUnit=C;a.getMetersPerUnitForSR=x;a.getMetersPerVerticalUnitForSR=function(J){if(J&&"object"===typeof J&&!q.isEarth(J))return 1;J=x(J);return 1E5<J?1:J};a.getUnitString=D;a.getVerticalUnitStringForSR=function(J){const L=x(J),Q=J instanceof f?g.getReferenceEllipsoid(J).metersPerDegree:1E5;return L>=Q?"meters":D(J)};a.inchesPerMeter=39.37;a.isBaseUnit=m;a.isMeasurementSystem=function(J){return"imperial"===
J||"metric"===J};a.lengthToDegrees=function(J,L,Q){return p(J,L,"meters")/(Q*Math.PI/180)};a.lengthUnitsJSONMap=v;a.measureForUnit=t;a.measurementAreaUnits="metric imperial square-inches square-feet square-yards square-miles square-us-feet square-meters square-kilometers acres ares hectares".split(" ");a.measurementLengthUnits="metric imperial inches feet yards miles nautical-miles us-feet meters kilometers".split(" ");a.preferredImperialAreaUnit=function(J,L){return 1E6>p(J,L,"square-feet")?"square-feet":
"square-miles"};a.preferredImperialLengthUnit=h;a.preferredImperialVerticalLengthUnit=n;a.preferredLengthUnit=function(J,L,Q){switch(Q){case "metric":return e(J,L);case "imperial":return h(J,L);default:return Q}};a.preferredMetricAreaUnit=function(J,L){return 3E6>p(J,L,"square-meters")?"square-meters":"square-kilometers"};a.preferredMetricLengthUnit=e;a.preferredMetricVerticalLengthUnit=l;a.preferredVerticalLengthUnit=function(J,L,Q){switch(Q){case "metric":return l(J,L);case "imperial":return n(J,
L);default:return Q}};a.unitFromRESTJSON=w;a.unitToRESTJSON=function(J){return F.toJSON(J)||null};a.unitsJSONMap=c;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/projectionEllipsoid":function(){define(["exports","./SpatialReference","./support/Ellipsoid","./support/spatialReferenceUtils"],function(a,b,c,g){function f(u){return new b({wkt:`GEOCCS["Spherical geocentric",
    DATUM["Not specified",
      SPHEROID["Sphere",${u.radius},0]],
    PRIMEM["Greenwich",0.0,
      AUTHORITY["EPSG","8901"]],
    UNIT["m",1.0],
    AXIS["Geocentric X",OTHER],
    AXIS["Geocentric Y",EAST],
    AXIS["Geocentric Z",NORTH]
  ]`})}const k=f(c.earth),q=f(c.mars),v=f(c.moon),t=new b({wkt:`GEOCCS["WGS 84",
  DATUM["WGS_1984",
    SPHEROID["WGS 84",${c.earth.radius},298.257223563,
      AUTHORITY["EPSG","7030"]],
    AUTHORITY["EPSG","6326"]],
  PRIMEM["Greenwich",0,
    AUTHORITY["EPSG","8901"]],
  UNIT["m",1.0,
    AUTHORITY["EPSG","9001"]],
  AXIS["Geocentric X",OTHER],
  AXIS["Geocentric Y",OTHER],
  AXIS["Geocentric Z",NORTH],
  AUTHORITY["EPSG","4978"]
]`});a.SphericalECEFSpatialReference=k;a.SphericalPCPFMars=q;a.SphericalPCPFMoon=v;a.WGS84ECEFSpatialReference=t;a.createSphericalPCPF=f;a.getReferenceEllipsoid=function(u){return u&&(g.isMars(u)||u===q)?c.mars:u&&(g.isMoon(u)||u===v)?c.moon:c.earth};a.getReferenceEllipsoidFromWKID=function(u){return g.isWKIDFromMars(u)?c.mars:g.isWKIDFromMoon(u)?c.moon:c.earth};a.getSphericalPCPF=function(u){return u&&(g.isMars(u)||u===q)?q:u&&(g.isMoon(u)||u===v)?v:k};a.getSphericalPCPFForEllipsoid=function(u){return u&&
u===c.mars?q:u&&u===c.moon?v:k};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/mixins/PortalLayer":function(){define("require exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../kernel ../../request ../../core/asyncUtils ../../core/Error ../../core/Logger ../../core/maybe ../../core/promiseUtils ../../core/urlUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/jsonMap ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../portal/Portal ../../portal/PortalItem ../../portal/PortalUser".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B){const r=t.getLogger("esri.layers.mixins.PortalLayer");var z=null,E=null;b.PortalLayer=F=>{F=function(G){function N(){var I=G.apply(this,arguments)||this;I.resourceReferences={portalItem:null,paths:[]};I.userHasEditingPrivileges=!0;return I}c._inheritsLoose(N,G);var K=N.prototype;K.destroy=function(){var I;null==(I=this.portalItem)?void 0:I.destroy();this.portalItem=null};K.readPortalItem=function(I,J,L){if(J.itemId)return new A({id:J.itemId,portal:L&&
L.portal})};K.writePortalItem=function(I,J){I&&I.id&&(J.itemId=I.id)};K.loadFromPortal=function(){var I=c._asyncToGenerator(function*(J,L){if(this.portalItem&&this.portalItem.id)try{const Q=yield new Promise(function(W,V){a(["../../portal/support/layersLoader"],W,V)});m.throwIfAborted(L);return yield Q.load({instance:this,supportedTypes:J.supportedTypes,validateItem:J.validateItem,supportsData:J.supportsData},L)}catch(Q){throw m.isAbortError(Q)||r.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n  ${Q}`),
Q;}});return function(J,L){return I.apply(this,arguments)}}();K.finishLoadEditablePortalLayer=function(){var I=c._asyncToGenerator(function*(J){this._set("userHasEditingPrivileges",yield this.fetchUserHasEditingPrivileges(J).catch(L=>{m.throwIfAbortError(L);return!0}))});return function(J){return I.apply(this,arguments)}}();K.fetchUserHasEditingPrivileges=function(){var I=c._asyncToGenerator(function*(J){const L=this.url?null==f.id?void 0:f.id.findCredential(this.url):null;if(!L)return!0;J=z===L?
E:yield this.fetchEditingUser(J);z=L;E=J;return u.isNone(J)||null==J.privileges||J.privileges.includes("features:user:edit")});return function(J){return I.apply(this,arguments)}}();K.fetchEditingUser=function(){var I=c._asyncToGenerator(function*(J){var L,Q;const W=null==(L=this.portalItem)?void 0:null==(Q=L.portal)?void 0:Q.user;if(W)return W;L=f.id.findServerInfo(this.url);if(null==L||!L.owningSystemUrl)return null;L=`${L.owningSystemUrl}/sharing/rest`;if((Q=D.getDefault())&&Q.loaded&&p.normalize(Q.restUrl)===
p.normalize(L))return Q.user;L=`${L}/community/self`;J=u.isSome(J)?J.signal:null;J=yield q.result(k(L,{authMode:"no-prompt",query:{f:"json"},signal:J}));return J.ok?B.fromJSON(J.value.data):null});return function(J){return I.apply(this,arguments)}}();K.read=function(I,J){J&&(J.layer=this);G.prototype.read.call(this,I,J)};K.write=function(I,J){const L=J&&J.portal,Q=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||D.getDefault());return L&&Q&&!p.hasSamePortal(Q.restUrl,L.restUrl)?(J.messages&&
J.messages.push(new v("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 the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):G.prototype.write.call(this,I,{...J,layer:this})};c._createClass(N,[{key:"portalItem",set:function(I){I!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",
I))}}]);return N}(F);g.__decorate([e.property({type:A})],F.prototype,"portalItem",null);g.__decorate([w.reader("web-document","portalItem",["itemId"])],F.prototype,"readPortalItem",null);g.__decorate([C.writer("web-document","portalItem",{itemId:{type:String}})],F.prototype,"writePortalItem",null);g.__decorate([e.property()],F.prototype,"resourceReferences",void 0);g.__decorate([e.property({readOnly:!0})],F.prototype,"userHasEditingPrivileges",void 0);return F=g.__decorate([x.subclass("esri.layers.mixins.PortalLayer")],
F)};Object.defineProperty(b,"__esModule",{value:!0})})},"esri/layers/mixins/ScaleRangeLayer":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t){a.ScaleRangeLayer=u=>{u=function(m){function p(){var e=m.apply(this,arguments)||this;e.minScale=
0;e.maxScale=0;return e}b._inheritsLoose(p,m);b._createClass(p,[{key:"scaleRangeId",get:function(){return`${this.minScale},${this.maxScale}`}}]);return p}(u);c.__decorate([g.property({type:Number,nonNullable:!0,json:{write:!0}})],u.prototype,"minScale",void 0);c.__decorate([g.property({type:Number,nonNullable:!0,json:{write:!0}})],u.prototype,"maxScale",void 0);c.__decorate([g.property({readOnly:!0})],u.prototype,"scaleRangeId",null);return u=c.__decorate([t.subclass("esri.layers.mixins.ScaleRangeLayer")],
u)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/mixins/RefreshableLayer":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t){a.RefreshableLayer=u=>{u=function(m){function p(){var e=m.apply(this,arguments)||this;e.refreshInterval=
0;return e}b._inheritsLoose(p,m);p.prototype.refresh=function(){this.emit("refresh")};return p}(u);c.__decorate([g.property({type:Number,cast:m=>.1<=m?m:0>=m?0:.1,json:{write:!0,origins:{"web-document":{write:!0}}}})],u.prototype,"refreshInterval",void 0);return u=c.__decorate([t.subclass("esri.layers.mixins.RefreshableLayer")],u)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/layersCreator":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../core/Collection ../../core/has ../../core/promiseUtils ./lazyLayerLoader ../../portal/PortalItem ../../portal/support/featureCollectionUtils ../../portal/support/portalLayers ../../renderers/support/styleUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u){function m(I,J,L){return p.apply(this,arguments)}function p(){p=b._asyncToGenerator(function*(I,J,L){if(J){var Q=[];for(const W of J)J=e(W,L),"GroupLayer"===W.layerType?Q.push(D(J,W,L)):Q.push(J);Q=yield f.eachAlways(Q);for(const W of Q)!W.value||L.filter&&!L.filter(W.value)||I.add(W.value)}});return p.apply(this,arguments)}function e(I,J){return l.apply(this,arguments)}function l(){l=b._asyncToGenerator(function*(I,J){const L=yield w(I,J);return h(L,I,J)});return l.apply(this,
arguments)}function h(I,J,L){return n.apply(this,arguments)}function n(){n=b._asyncToGenerator(function*(I,J,L){I=new I;I.read(J,L.context);"group"===I.type&&C(J)&&(yield B(I,J,L.context));yield u.loadStyleRenderer(I,L.context);return I});return n.apply(this,arguments)}function w(I,J){return x.apply(this,arguments)}function x(){x=b._asyncToGenerator(function*(I,J){var L=J.context;switch(L.origin){case "web-scene":switch(L.layerContainerType){case "basemap":var Q=F;break;case "ground":Q=E;break;default:Q=
z}break;default:switch(L.layerContainerType){case "basemap":Q=K;break;case "tables":Q=N;break;default:Q=G}}var W=Q;Q=I.layerType||I.type;!Q&&J&&J.defaultLayerType&&(Q=J.defaultLayerType);J=(J=W[Q])?k.layerLookupMap[J]:k.layerLookupMap.UnknownLayer;L=L&&L.portal;"Feature Collection"===I.type?I.itemId&&(I=new q({id:I.itemId,portal:L}),yield I.load(),I=(yield t.selectLayerClassPath(I)).className||"UnknownLayer",J=k.layerLookupMap[I]):"ArcGISFeatureLayer"===Q?(yield v.isMapNotesLayer(I,L))?J=k.layerLookupMap.MapNotesLayer:
(yield v.isRouteLayer(I,L))?J=k.layerLookupMap.RouteLayer:C(I)&&(J=k.layerLookupMap.GroupLayer):I.wmtsInfo&&I.wmtsInfo.url&&I.wmtsInfo.layerIdentifier?J=k.layerLookupMap.WMTSLayer:"WFS"===Q&&"2.0.0"!==I.wfsInfo.version&&(J=k.layerLookupMap.UnsupportedLayer);return J()});return x.apply(this,arguments)}function C(I){if("ArcGISFeatureLayer"!==I.layerType||"Feature Collection"===I.type)return!1;I=I.featureCollection;return!!(I&&I.layers&&1<I.layers.length)}function D(I,J,L){return A.apply(this,arguments)}
function A(){A=b._asyncToGenerator(function*(I,J,L){const Q=new c;J=m(Q,Array.isArray(J.layers)?J.layers:[],L);I=yield I;yield J;if("group"===I.type)return I.layers.addMany(Q),I});return A.apply(this,arguments)}function B(I,J,L){return r.apply(this,arguments)}function r(){r=b._asyncToGenerator(function*(I,J,L){const Q=yield(0,k.layerLookupMap.FeatureLayer)();J=J.featureCollection;const W=J.showLegend;J=J.layers.map(V=>{const P=new Q;P.read(V,L);null!=W&&P.read({showLegend:W},L);return P});I.layers.addMany(J)});
return r.apply(this,arguments)}const z={ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",PointCloudLayer:"PointCloudLayer",ArcGISSceneServiceLayer:"SceneLayer",IntegratedMeshLayer:"IntegratedMeshLayer",BuildingSceneLayer:"BuildingSceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",GroupLayer:"GroupLayer",WebTiledLayer:"WebTileLayer",CSV:"CSVLayer",
VectorTileLayer:"VectorTileLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer",KML:"KMLLayer",RasterDataLayer:"UnsupportedLayer"},E={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},F={ArcGISTiledMapServiceLayer:"TileLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",OpenStreetMap:"OpenStreetMapLayer",WebTiledLayer:"WebTileLayer",VectorTileLayer:"VectorTileLayer",ArcGISImageServiceLayer:"UnsupportedLayer",WMS:"UnsupportedLayer",
ArcGISMapServiceLayer:"UnsupportedLayer",DefaultTileLayer:"TileLayer"},G={ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoRSS:"GeoRSSLayer",
GroupLayer:"GroupLayer",KML:"KMLLayer",OGCFeatureLayer:"OGCFeatureLayer",SubtypeGroupLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},N={ArcGISFeatureLayer:"FeatureLayer"},K={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",
WebTiledLayer:"WebTileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer"};a.populateOperationalLayers=m;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/lazyLayerLoader":function(){define(["require","exports","../../chunks/_rollupPluginBabelHelpers"],function(a,b,c){function g(k){return Object.freeze({__proto__:null,"default":k})}const f={BingMapsLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,
v){a(["../BingMapsLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),BuildingSceneLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../BuildingSceneLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),CSVLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../CSVLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,
arguments)}}(),ElevationLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../ElevationLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),FeatureLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../FeatureLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),GroupLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,
v){a(["../GroupLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),GeoRSSLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../GeoRSSLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),ImageryLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../ImageryLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,
arguments)}}(),ImageryTileLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../ImageryTileLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),IntegratedMeshLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../IntegratedMeshLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),KMLLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,
v){a(["../KMLLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),MapImageLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../MapImageLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),MapNotesLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../MapNotesLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,
arguments)}}(),OGCFeatureLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../OGCFeatureLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),OpenStreetMapLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../OpenStreetMapLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),PointCloudLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,
v){a(["../PointCloudLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),RouteLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../RouteLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),SceneLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../SceneLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,
arguments)}}(),StreamLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../StreamLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),TileLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../TileLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),UnknownLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,
v){a(["../UnknownLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),UnsupportedLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../UnsupportedLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),VectorTileLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../VectorTileLayer"],function(t){q(g(t))},v)})).default});
return function(){return k.apply(this,arguments)}}(),WebTileLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../WebTileLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),WFSLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../WFSLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),WMSLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,
v){a(["../WMSLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}(),WMTSLayer:function(){var k=c._asyncToGenerator(function*(){return(yield new Promise(function(q,v){a(["../WMTSLayer"],function(t){q(g(t))},v)})).default});return function(){return k.apply(this,arguments)}}()};b.layerLookupMap=f;Object.defineProperty(b,"__esModule",{value:!0})})},"esri/portal/support/featureCollectionUtils":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers",
"../PortalItem","./portalItemUtils"],function(a,b,c,g){function f(q,v,t,u){return k.apply(this,arguments)}function k(){k=b._asyncToGenerator(function*(q,v,t,u){return!q.layerType||"ArcGISFeatureLayer"!==q.layerType||q.url?!1:q.featureCollectionType&&q.featureCollectionType===t?!0:q.itemId?(q=new c({id:q.itemId,portal:v}),yield q.load(),"Feature Collection"===q.type&&g.hasTypeKeyword(q,u)):!1});return k.apply(this,arguments)}a.isMapNotesLayer=function(q,v){return f(q,v,"notes","Map Notes")};a.isRouteLayer=
function(q,v){return f(q,v,"route","Route Layer")};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/portal/support/portalItemUtils":function(){define(["exports"],function(a){function b(c,g){return c.typeKeywords?-1<c.typeKeywords.indexOf(g):!1}a.addTypeKeyword=function(c,g){if(!b(c,g)){const f=c.typeKeywords;f?f.push(g):c.typeKeywords=[g]}};a.hasTypeKeyword=b;a.removeTypeKeyword=function(c,g){if(c=c.typeKeywords)g=c.indexOf(g),-1<g&&c.splice(g,1)};Object.defineProperty(a,"__esModule",{value:!0})})},
"esri/portal/support/portalLayers":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../core/Error ../../layers/support/lazyLayerLoader ../PortalItem ./layersLoader ./portalItemUtils ../../support/requestPresets".split(" "),function(a,b,c,g,f,k,q,v){function t(A){switch(A.type){case "Map Service":return m(A);case "Feature Service":return p(A);case "Feature Collection":return l(A);case "Scene Service":return e(A);case "Image Service":return n(A);case "Stream Service":return{className:"StreamLayer"};
case "Vector Tile Service":return{className:"VectorTileLayer"};case "KML":return{className:"KMLLayer"};case "WFS":return{className:"WFSLayer"};case "WMTS":return{className:"WMTSLayer"};case "WMS":return{className:"WMSLayer"};case "Feed":return{className:"StreamLayer"};default:return Promise.reject(new c("portal:unknown-item-type","Unknown item type '${type}'",{type:A.type}))}}function u(A){return(0,g.layerLookupMap[A.className])().then(B=>({constructor:B,properties:A.properties}))}function m(A){return x(A).then(B=>
B?{className:"TileLayer"}:{className:"MapImageLayer"})}function p(A){return C(A).then(B=>{if("object"===typeof B){const r={};null!=B.id&&(r.layerId=B.id);return{className:"FeatureLayer",properties:r}}return{className:"GroupLayer"}})}function e(A){return C(A).then(B=>{if("object"===typeof B){const r={};null!=B.id?(r.layerId=B.id,B=`${A.url}/layers/${B.id}`):B=A.url;if(Array.isArray(A.typeKeywords)&&0<A.typeKeywords.length){const z={IntegratedMesh:"IntegratedMeshLayer","3DObject":"SceneLayer",Point:"SceneLayer",
PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};for(const E of Object.keys(z))if(-1!==A.typeKeywords.indexOf(E))return{className:z[E]}}return v.requestArcGISServiceJSON(B).then(z=>{let E="SceneLayer";const F={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};z&&z.layerType&&F[z.layerType]&&(E=F[z.layerType]);return{className:E,properties:r}})}return{className:"GroupLayer"}})}function l(A){return h.apply(this,
arguments)}function h(){h=b._asyncToGenerator(function*(A){yield A.load();if(q.hasTypeKeyword(A,"Map Notes"))return{className:"MapNotesLayer"};if(q.hasTypeKeyword(A,"Route Layer"))return{className:"RouteLayer"};A=yield A.fetchData();return 1===k.getNumLayersAndTables(A)?{className:"FeatureLayer"}:{className:"GroupLayer"}});return h.apply(this,arguments)}function n(A){return w.apply(this,arguments)}function w(){w=b._asyncToGenerator(function*(A){var B,r,z;yield A.load();const E=null!=(B=null==(r=A.typeKeywords)?
void 0:r.map(F=>F.toLowerCase()))?B:[];if(-1<E.indexOf("elevation 3d layer"))return{className:"ElevationLayer"};if(-1<E.indexOf("tiled imagery"))return{className:"ImageryTileLayer"};B=yield A.fetchData();B=null==B?void 0:B.layerType;return"ArcGISTiledImageServiceLayer"===B?{className:"ImageryTileLayer"}:"ArcGISImageServiceLayer"===B?{className:"ImageryLayer"}:"map"===(null==(z=(yield v.requestArcGISServiceJSON(A.url)).cacheType)?void 0:z.toLowerCase())?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}});
return w.apply(this,arguments)}function x(A){return v.requestArcGISServiceJSON(A.url).then(B=>B.tileInfo)}function C(A){return!A.url||A.url.match(/\/\d+$/)?Promise.resolve({}):A.load().then(()=>A.fetchData()).then(function(){var B=b._asyncToGenerator(function*(r){return"Feature Service"===A.type?(r=yield k.preprocessFSItemData(r,A.url),D(r)):0<k.getNumLayersAndTables(r)?D(r):v.requestArcGISServiceJSON(A.url).then(D)});return function(r){return B.apply(this,arguments)}}())}function D(A){return 1===
k.getNumLayersAndTables(A)?{id:k.getFirstLayerOrTableId(A)}:!1}a.fromItem=function(A){!A.portalItem||A.portalItem instanceof f||(A={...A,portalItem:new f(A.portalItem)});return A.portalItem.load().then(t).then(u).then(B=>Promise.resolve(new B.constructor({portalItem:A.portalItem,...B.properties})))};a.selectLayerClassPath=t;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/portal/support/layersLoader":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../core/Error ../../layers/support/lazyLayerLoader ../Portal ./jsonContext ../../renderers/support/styleUtils ../../support/requestPresets".split(" "),
function(a,b,c,g,f,k,q,v){function t(){t=b._asyncToGenerator(function*(A,B){var r=A.instance.portalItem;if(!r||!r.id)return Promise.resolve();yield r.load(B);r=A.instance.portalItem;if(-1===A.supportedTypes.indexOf(r.type))throw new c("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:r.type,expectedType:A.supportedTypes.join(", ")});return u(A,B)});return t.apply(this,arguments)}function u(A,B){return m.apply(this,arguments)}function m(){m=b._asyncToGenerator(function*(A,
B){const r=A.instance,z=r.portalItem,{url:E,title:F}=z,G=k.createForItem(z);if("group"===r.type)return r.read({title:F},G),p(r,A);E&&r.read({url:E},G);(A=yield n(A,B))&&r.read(A,G);r.resourceReferences={portalItem:z,paths:G.readResourcePaths};r.read({title:F},G);return q.loadStyleRenderer(r,G)});return m.apply(this,arguments)}function p(A,B){let r;const z=A.portalItem.type;switch(z){case "Feature Service":r=g.layerLookupMap.FeatureLayer;break;case "Stream Service":r=g.layerLookupMap.StreamLayer;break;
case "Scene Service":r=g.layerLookupMap.SceneLayer;break;case "Feature Collection":r=g.layerLookupMap.FeatureLayer;break;default:throw new c("portal:unsupported-item-type-as-group",`The item type '${z}' is not supported as a 'IGroupLayer'`);}let E;return r().then(F=>{E=F;return n(B)}).then(function(){var F=b._asyncToGenerator(function*(G){return"Feature Service"===z?(G=yield w(G,A.portalItem.url),l(A,E,G)):0<D(G)?l(A,E,G):e(A,E)});return function(G){return F.apply(this,arguments)}}())}function e(A,
B){return A.portalItem.url?v.requestArcGISServiceJSON(A.portalItem.url).then(r=>{function z(G){return{id:G.id,name:G.name}}var E,F;r&&l(A,B,{layers:null==(E=r.layers)?void 0:E.map(z),tables:null==(F=r.tables)?void 0:F.map(z)})}):Promise.resolve()}function l(A,B,r){let z=r.layers||[];const E=r.tables||[];"Feature Collection"===A.portalItem.type&&(z.forEach(F=>{var G;"Table"===(null==F?void 0:null==(G=F.layerDefinition)?void 0:G.type)&&E.push(F)}),z=z.filter(F=>{var G;return"Table"!==(null==F?void 0:
null==(G=F.layerDefinition)?void 0:G.type)}));z.reverse().forEach(F=>{F=h(A,B,r,F);A.add(F)});E.reverse().forEach(F=>{F=h(A,B,r,F);A.tables.add(F)})}function h(A,B,r,z){B=new B({portalItem:A.portalItem.clone(),layerId:z.id,sublayerTitleMode:"service-name"});"Feature Collection"===A.portalItem.type&&(A={origin:"portal-item",portal:A.portalItem.portal||f.getDefault()},B.read(z,A),r=r.showLegend,null!=r&&B.read({showLegend:r},A));return B}function n(A,B){if(!1===A.supportsData)return Promise.resolve(void 0);
const r=A.instance;return r.portalItem.fetchData("json",B).catch(()=>null).then(function(){var z=b._asyncToGenerator(function*(E){var F="stream"===r.type?!1:"layerId"in r;if(F){F=!0;if(E&&0<D(E)){null==r.layerId&&(r.layerId=C(E));a:{var G=r.layerId;var N=E.layers;if(N)for(var K=0;K<N.length;K++)if(N[K].id===G){G=N[K];break a}if(N=E.tables)for(K=0;K<N.length;K++)if(N[K].id===G){G=N[K];break a}G=null}G&&(1===D(E)&&(F=!1),null!=E.showLegend&&(G.showLegend=E.showLegend))}F&&"service-name"!==r.sublayerTitleMode&&
(r.sublayerTitleMode="item-title-and-service-name");return G}return E});return function(E){return z.apply(this,arguments)}}())}function w(A,B){return x.apply(this,arguments)}function x(){x=b._asyncToGenerator(function*(A,B){var r,z;if(null==(null==(r=A)?void 0:r.layers)||null==(null==(z=A)?void 0:z.tables))B=yield v.requestArcGISServiceJSON(B),A=A||{},A.layers=A.layers||(null==B?void 0:B.layers),A.tables=A.tables||(null==B?void 0:B.tables);return A});return x.apply(this,arguments)}function C(A){const B=
A.layers;return B&&B.length?B[0].id:(A=A.tables)&&A.length?A[0].id:null}function D(A){var B,r,z,E;const F=null!=(B=null==A?void 0:null==(r=A.layers)?void 0:r.length)?B:0;A=null!=(z=null==A?void 0:null==(E=A.tables)?void 0:E.length)?z:0;return F+A}a.getFirstLayerOrTableId=C;a.getNumLayersAndTables=D;a.load=function(A,B){return t.apply(this,arguments)};a.preprocessFSItemData=w;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/portal/support/jsonContext":function(){define(["exports","../../core/urlUtils",
"../Portal"],function(a,b,c){a.createForItem=function(g){return{origin:"portal-item",url:b.urlToObject(g.itemUrl),portal:g.portal||c.getDefault(),portalItem:g,readResourcePaths:[]}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/renderers/support/styleUtils":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers","../../core/asyncUtils","../../core/promiseUtils","../../core/Warning"],function(a,b,c,g,f){function k(){k=b._asyncToGenerator(function*(q,v,t){var u=q&&q.getAtOrigin&&
q.getAtOrigin("renderer",v.origin);u&&"unique-value"===u.type&&u.styleOrigin&&(u=yield c.result(u.populateFromStyle()),g.throwIfAborted(t),!1===u.ok&&(t=u.error,v&&v.messages&&v.messages.push(new f("renderer:style-reference",`Failed to create unique value renderer from style reference: ${t.message}`,{error:t,context:v})),q.clear("renderer",v.origin)))});return k.apply(this,arguments)}a.loadStyleRenderer=function(q,v,t){return k.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0})})},
"esri/support/requestPresets":function(){define(["exports","../chunks/_rollupPluginBabelHelpers","../request"],function(a,b,c){function g(){g=b._asyncToGenerator(function*(f){({data:f}=yield c(f,{responseType:"json",query:{f:"json"}}));return f});return g.apply(this,arguments)}a.requestArcGISServiceJSON=function(f){return g.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/FeatureLayer":function(){define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../PopupTemplate ../renderers/ClassBreaksRenderer ../renderers/DictionaryRenderer ../renderers/DotDensityRenderer ../renderers/HeatmapRenderer ../renderers/Renderer ../renderers/SimpleRenderer ../renderers/UniqueValueRenderer ../renderers/support/jsonUtils ../renderers/support/types ../request ../symbols ../core/Collection ../core/Error ../core/Handles ../core/has ../core/jsonMap ../core/Logger ../core/maybe ../core/MultiOriginJSONSupport ../core/object ../core/promiseUtils ../core/urlUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../core/accessorSupport/extensions/serializableProperty/reader ../form/FormTemplate ../geometry/Extent ../geometry/HeightModelInfo ../geometry/SpatialReference ./Layer ./graphics/sources/MemorySource ./mixins/APIKeyMixin ./mixins/ArcGISService ./mixins/BlendLayer ./mixins/CustomParametersMixin ./mixins/OperationalLayer ./mixins/PortalLayer ./mixins/RefreshableLayer ./mixins/ScaleRangeLayer ./mixins/TemporalLayer ./support/arcgisLayerUrl ./support/commonProperties ./support/FeatureIndex ./support/FeatureReduction ./support/FeatureReductionCluster ./support/FeatureReductionSelection ./support/featureReductionUtils ./support/FeatureTemplate ./support/FeatureType ./support/fieldProperties ./support/fieldUtils ./support/GeometryFieldsInfo ./support/LabelClass ./support/labelingInfo ./support/LayerFloorInfo ./support/Relationship ./support/TimeInfo ./support/source/DataLayerSource ../renderers/support/styleUtils ../rest/support/AttachmentQuery ../rest/support/FeatureSet ../rest/support/Query ../rest/support/RelationshipQuery ../rest/support/TopFeaturesQuery ../support/popupUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r,z,E,F,G,N,K,I,J,L,Q,W,V,P,X,U,Z,oa,xa,Ea,fa,ia,da,ea,la,va,Ba,aa,ja,ua,ta,T,ba,ha,sa,Aa,La,Ra,Za,jb,kb,ra,ya,Ca,Ha,Ka,Ua,ab,Xa,$a){function Pa(pb,ub,Na){return!(pb&&pb.hasOwnProperty(ub)?!pb[ub]:!Na)}function lb(pb,ub,Na){return pb&&pb.hasOwnProperty(ub)?pb[ub]:Na}function rb(pb,ub,Na){pb=!(null==Na||!Na.writeLayerSchema);return{enabled:pb,ignoreOrigin:pb}}const mb=new D.JSONMap({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",
esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"}),Jb={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"},Ab=A.getLogger("esri.layers.FeatureLayer");f=sa.defineFieldProperties();r=function(pb){function ub(...ka){ka=pb.call(this,...ka)||this;ka._handles=new x;ka.capabilities=null;ka.charts=null;ka.copyright=null;ka.displayField=null;ka.definitionExpression=null;ka.dynamicDataSource=null;ka.editFieldsInfo=
null;ka.editingInfo=null;ka.elevationInfo=null;ka.featureReduction=null;ka.fields=null;ka.fieldsIndex=null;ka.floorInfo=null;ka.formTemplate=null;ka.fullExtent=null;ka.gdbVersion=null;ka.geometryFieldsInfo=null;ka.geometryType=null;ka.hasM=void 0;ka.hasZ=void 0;ka.heightModelInfo=null;ka.historicMoment=null;ka.infoFor3D=null;ka.isTable=!1;ka.labelsVisible=!0;ka.labelingInfo=null;ka.layerId=void 0;ka.legendEnabled=!0;ka.minScale=0;ka.maxScale=0;ka.globalIdField=null;ka.objectIdField=null;ka.outFields=
null;ka.path=null;ka.popupEnabled=!0;ka.popupTemplate=null;ka.relationships=null;ka.sourceJSON=null;ka.returnM=void 0;ka.returnZ=void 0;ka.screenSizePerspectiveEnabled=!0;ka.serviceDefinitionExpression=null;ka.spatialReference=P.WGS84;ka.subtypeCode=null;ka.templates=null;ka.timeInfo=null;ka.title=null;ka.sublayerTitleMode="item-title";ka.trackIdField=null;ka.type="feature";ka.typeIdField=null;ka.types=null;ka.indexes=new (n.ofType(aa.FeatureIndex));ka.userIsAdmin=!1;ka.version=void 0;ka.visible=
!0;return ka}b._inheritsLoose(ub,pb);var Na=ub.prototype;Na.destroy=function(){var ka;null==(ka=this.source)?void 0:ka.destroy();this._handles=B.destroyMaybe(this._handles)};Na.normalizeCtorArgs=function(ka,qa){return"string"===typeof ka?{url:ka,...qa}:ka};Na.load=function(ka){var qa=this;const Ga=B.isSome(ka)?ka.signal:null;if(this.portalItem&&this.portalItem.loaded&&this.source)this.addResolvingPromise(this.createGraphicsSource(Ga).then(bb=>this._initLayerProperties(bb)));else{var Ta=this.loadFromPortal({supportedTypes:["Feature Service",
"Feature Collection"]},ka).catch(E.throwIfAbortError).then(b._asyncToGenerator(function*(){if(qa.url&&null==qa.layerId&&/FeatureServer|MapServer\/*$/i.test(qa.url)){const bb=yield qa._fetchFirstLayerId(Ga);null!=bb&&(qa.layerId=bb)}if(!qa.url&&!qa._hasMemorySource())throw new w("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return qa._initLayerProperties(yield qa.createGraphicsSource(Ga))})).then(()=>this.finishLoadEditablePortalLayer(ka));this.addResolvingPromise(Ta);
return Promise.resolve(this)}};Na.readCapabilities=function(ka,qa){qa=qa.layerDefinition||qa;return{attachment:this._readAttachmentCapabilities(qa.attachmentProperties),data:this._readDataCapabilities(qa),metadata:this._readMetadataCapabilities(qa),operations:this._readOperationsCapabilities(qa.capabilities||ka,qa),query:this._readQueryCapabilities(qa),queryRelated:this._readQueryRelatedCapabilities(qa),editing:this._readEditingCapabilities(qa)}};Na.readEditingEnabled=function(ka,qa){return this._readEditingEnabled(qa,
!1)};Na.readEditingEnabledFromWebMap=function(ka,qa,Ga){return this._readEditingEnabled(qa,!0,Ga)};Na.writeEditingEnabled=function(ka,qa){this._writeEditingEnabled(ka,qa,!1)};Na.writeEditingEnabledToWebMap=function(ka,qa,Ga,Ta){this._writeEditingEnabled(ka,qa,!0,Ta)};Na.readEditingInfo=function(ka,qa){({editingInfo:ka}=qa);return ka?{lastEditDate:null!=ka.lastEditDate?new Date(ka.lastEditDate):null}:null};Na.readFeatureReduction=function(ka,qa){return T.read(ka,qa)};Na.writeWebSceneFeatureReduction=
function(ka,qa,Ga,Ta){T.writeTarget(ka,qa,"layerDefinition.featureReduction",Ta)};Na.readIsTable=function(ka,qa){qa=qa&&qa.layerDefinition||qa;return"Table"===qa.type||!qa.geometryType};Na.writeIsTable=function(ka,qa,Ga,Ta){null!=Ta&&Ta.writeLayerSchema&&z.setDeepValue(Ga,ka?"Table":"Feature Layer",qa)};Na.readMinScale=function(ka,qa){return qa.effectiveMinScale||ka||0};Na.readMaxScale=function(ka,qa){return qa.effectiveMaxScale||ka||0};Na.readGlobalIdFieldFromService=function(ka,qa){qa=qa.layerDefinition||
qa;if(qa.globalIdField)return qa.globalIdField;if(qa.fields)for(const Ga of qa.fields)if("esriFieldTypeGlobalID"===Ga.type)return Ga.name};Na.readObjectIdFieldFromService=function(ka,qa){qa=qa.layerDefinition||qa;if(qa.objectIdField)return qa.objectIdField;if(qa.fields)for(const Ga of qa.fields)if("esriFieldTypeOID"===Ga.type)return Ga.name};Na.readRenderer=function(ka,qa,Ga){qa=qa.layerDefinition||qa;if(ka=qa.drawingInfo&&qa.drawingInfo.renderer||void 0)return(ka=p.read(ka,qa,Ga)||void 0)||Ab.error("Failed to create renderer",
{rendererDefinition:qa.drawingInfo.renderer,layer:this,context:Ga}),ka;if(qa.defaultSymbol)return qa.types&&qa.types.length?new m({defaultSymbol:Sb(qa.defaultSymbol,qa,Ga),field:qa.typeIdField,uniqueValueInfos:qa.types.map(Ta=>({id:Ta.id,symbol:Sb(Ta.symbol,Ta,Ga)}))}):new u({symbol:Sb(qa.defaultSymbol,qa,Ga)})};Na.castSource=function(ka){return ka?Array.isArray(ka)||ka instanceof n?new U["default"]({layer:this,items:ka}):ka:null};Na.readSource=function(ka,qa){ka=Ka.fromJSON(qa.featureSet);return new U["default"]({layer:this,
items:ka&&ka.features||[]})};Na.readServiceDefinitionExpression=function(ka,qa){return qa.definitionQuery||qa.definitionExpression};Na.readTemplates=function(ka,qa){var Ga=qa.editFieldsInfo;qa=Ga&&Ga.creatorField;Ga=Ga&&Ga.editorField;ka=ka&&ka.map(Ta=>ba.fromJSON(Ta));this._fixTemplates(ka,qa);this._fixTemplates(ka,Ga);return ka};Na.readTitle=function(ka,qa){ka=qa.layerDefinition&&qa.layerDefinition.name||qa.name;qa=qa.title||qa.layerDefinition&&qa.layerDefinition.title;if(ka){qa=this.portalItem&&
this.portalItem.title;if("item-title"===this.sublayerTitleMode)return this.url?va.titleFromUrlAndName(this.url,ka):ka;if(!ka&&this.url){const Ga=va.parse(this.url);B.isSome(Ga)&&(ka=Ga.title)}if(!ka)return;"item-title-and-service-name"===this.sublayerTitleMode&&qa&&qa!==ka&&(ka=qa+" - "+ka);return va.cleanTitle(ka)}if("item-title"===this.sublayerTitleMode&&qa)return qa};Na.readTitleFromWebMap=function(ka,qa){return qa.title||qa.layerDefinition&&qa.layerDefinition.name};Na.readTypeIdField=function(ka,
qa){qa=qa.layerDefinition||qa;let Ga=qa.typeIdField;Ga&&qa.fields&&(Ga=Ga.toLowerCase(),ka=qa.fields.find(Ta=>Ta.name.toLowerCase()===Ga))&&(Ga=ka.name);return Ga};Na.readTypes=function(ka,qa){qa=qa.layerDefinition||qa;ka=qa.types;const Ga=(qa=qa.editFieldsInfo)&&qa.creatorField,Ta=qa&&qa.editorField;return ka&&ka.map(bb=>{bb=ha.fromJSON(bb);this._fixTemplates(bb.templates,Ga);this._fixTemplates(bb.templates,Ta);return bb})};Na.writeUrl=function(ka,qa,Ga,Ta){va.writeUrlWithLayerId(this,ka,null,qa,
Ta)};Na.readVersion=function(ka,qa){return qa.currentVersion?qa.currentVersion:qa.hasOwnProperty("capabilities")||qa.hasOwnProperty("drawingInfo")||qa.hasOwnProperty("hasAttachments")||qa.hasOwnProperty("htmlPopupType")||qa.hasOwnProperty("relationships")||qa.hasOwnProperty("timeInfo")||qa.hasOwnProperty("typeIdField")||qa.hasOwnProperty("types")?10:9.3};Na.readVisible=function(ka,qa){if(qa.layerDefinition&&null!=qa.layerDefinition.defaultVisibility)return!!qa.layerDefinition.defaultVisibility;if(null!=
qa.visibility)return!!qa.visibility};Na.addAttachment=function(ka,qa){return this.load().then(()=>this._checkAttachmentSupport(ka)).then(()=>{if(!("addAttachment"in this.source))throw new w("FeatureLayer","Layer source does not support addAttachment capability");return this.source.addAttachment(ka,qa)})};Na.updateAttachment=function(ka,qa,Ga){return this.load().then(()=>this._checkAttachmentSupport(ka)).then(()=>{if(!("updateAttachment"in this.source))throw new w("FeatureLayer","Layer source does not support updateAttachment capability");
return this.source.updateAttachment(ka,qa,Ga)})};Na.applyEdits=function(){var ka=b._asyncToGenerator(function*(qa,Ga){const Ta=yield new Promise(function(bb,xb){a(["./graphics/editingSupport"],bb,xb)});yield this.load();return Ta.applyEdits(this,this.source,qa,Ga)});return function(qa,Ga){return ka.apply(this,arguments)}}();Na.on=function(ka,qa){return pb.prototype.on.call(this,ka,qa)};Na.createPopupTemplate=function(ka){return $a.createPopupTemplate(this,ka)};Na.createGraphicsSource=function(){var ka=
b._asyncToGenerator(function*(qa){if(this._hasMemorySource())return this.source.load({signal:qa});const {default:Ga}=yield E.whenOrAbort(new Promise(function(Ta,bb){a(["./graphics/sources/FeatureLayerSource"],function(xb){Ta(Object.freeze({__proto__:null,"default":xb}))},bb)}),qa);return(new Ga({layer:this})).load({signal:qa})});return function(qa){return ka.apply(this,arguments)}}();Na.createQuery=function(){const ka=new Ua,qa=this.get("capabilities.data");ka.dynamicDataSource=this.dynamicDataSource;
ka.gdbVersion=this.gdbVersion;ka.historicMoment=this.historicMoment;ka.returnGeometry=!0;qa&&(qa.supportsZ&&null!=this.returnZ&&(ka.returnZ=this.returnZ),qa.supportsM&&null!=this.returnM&&(ka.returnM=this.returnM));ka.outFields=["*"];ka.where=this.definitionExpression||"1\x3d1";const {timeOffset:Ga,timeExtent:Ta}=this;ka.timeExtent=null!=Ga&&null!=Ta?Ta.offset(-Ga.value,Ga.unit):Ta||null;ka.multipatchOption="multipatch"===this.geometryType?"xyFootprint":null;return ka};Na.deleteAttachments=function(ka,
qa){return this.load().then(()=>this._checkAttachmentSupport(ka)).then(()=>{if(!("deleteAttachments"in this.source))throw new w("FeatureLayer","Layer source does not support deleteAttachments capability");return this.source.deleteAttachments(ka,qa)})};Na.fetchRecomputedExtents=function(ka){return this.load({signal:null==ka?void 0:ka.signal}).then(()=>{if(this.source.fetchRecomputedExtents)return this.source.fetchRecomputedExtents(ka);throw new w("FeatureLayer","Layer source does not support fetchUpdates capability");
})};Na.getFeatureType=function(ka){const {typeIdField:qa,types:Ga}=this;if(!qa||!ka)return null;const Ta=ka.attributes?ka.attributes[qa]:void 0;if(null==Ta)return null;let bb=null;Ga.some(xb=>{const {id:Mb}=xb;if(null==Mb)return!1;Mb.toString()===Ta.toString()&&(bb=xb);return!!bb});return bb};Na.getFieldDomain=function(ka,qa){return(qa=this.getFeatureType(qa&&qa.feature))&&(qa=qa.domains&&qa.domains[ka])&&"inherited"!==qa.type?qa:this._getLayerDomain(ka)};Na.getField=function(ka){return this.fieldsIndex.get(ka)};
Na.queryAttachments=function(ka,qa){ka=Ha.from(ka);return this.load().then(()=>{if(!this.get("capabilities.data.supportsAttachment"))throw new w("FeatureLayer","this layer doesn't support attachments");const {attachmentTypes:Ga,objectIds:Ta,globalIds:bb,num:xb,size:Mb,start:$b,where:nc}=ka;if(!this.get("capabilities.operations.supportsQueryAttachments")){const xc=Ga&&Ga.length,na=bb&&bb.length,Da=Mb&&Mb.length;if(Ta&&1<Ta.length||xc||na||Da||xb||$b||nc)throw new w("FeatureLayer","when 'supportsQueryAttachments' is false, only objectIds of length 1 are supported",
ka);}if(!(Ta&&Ta.length||nc))throw new w("FeatureLayer","'objectIds' or 'where' are required to perform attachment query",ka);if(!("queryAttachments"in this.source))throw new w("FeatureLayer","Layer source does not support queryAttachments capability",ka);return this.source.queryAttachments(ka)})};Na.queryFeatures=function(ka,qa){return this.load().then(()=>this.source.queryFeatures(Ua.from(ka)||this.createQuery(),qa)).then(Ga=>{if(null!=Ga&&Ga.features)for(const Ta of Ga.features)Ta.layer=Ta.sourceLayer=
this;return Ga})};Na.queryObjectIds=function(ka,qa){return this.load().then(()=>{if(this.source.queryObjectIds)return this.source.queryObjectIds(Ua.from(ka)||this.createQuery(),qa);throw new w("FeatureLayer","Layer source does not support queryObjectIds capability");})};Na.queryFeatureCount=function(ka,qa){return this.load().then(()=>{if(this.source.queryFeatureCount)return this.source.queryFeatureCount(Ua.from(ka)||this.createQuery(),qa);throw new w("FeatureLayer","Layer source does not support queryFeatureCount capability");
})};Na.queryExtent=function(ka,qa){return this.load().then(()=>{if(this.source.queryExtent)return this.source.queryExtent(Ua.from(ka)||this.createQuery(),qa);throw new w("FeatureLayer","Layer source does not support queryExtent capability");})};Na.queryRelatedFeatures=function(ka,qa){return this.load().then(()=>{if("queryRelatedFeatures"in this.source)return this.source.queryRelatedFeatures(ab.from(ka),qa);throw new w("FeatureLayer","Layer source does not support queryRelatedFeatures capability");
})};Na.queryRelatedFeaturesCount=function(ka,qa){return this.load().then(()=>{if("queryRelatedFeaturesCount"in this.source)return this.source.queryRelatedFeaturesCount(ab.from(ka),qa);throw new w("FeatureLayer","Layer source does not support queryRelatedFeaturesCount capability");})};Na.queryTopFeatures=function(ka,qa){return this.load().then(()=>{if("queryTopFeatures"in this.source&&this.get("capabilities.query.supportsTopFeaturesQuery"))return this.source.queryTopFeatures(Xa.from(ka),qa).then(Ga=>
{if(null!=Ga&&Ga.features)for(const Ta of Ga.features)Ta.layer=Ta.sourceLayer=this;return Ga});throw new w("FeatureLayer","Layer source does not support queryTopFeatures capability");})};Na.queryTopObjectIds=function(ka,qa){return this.load().then(()=>{if("queryTopObjectIds"in this.source&&this.get("capabilities.query.supportsTopFeaturesQuery"))return this.source.queryTopObjectIds(Xa.from(ka),qa);throw new w("FeatureLayer","Layer source does not support queryTopObjectIds capability");})};Na.queryTopFeaturesExtent=
function(ka,qa){return this.load().then(()=>{if("queryTopExtents"in this.source&&this.get("capabilities.query.supportsTopFeaturesQuery"))return this.source.queryTopExtents(Xa.from(ka),qa);throw new w("FeatureLayer","Layer source does not support queryTopExtents capability");})};Na.queryTopFeatureCount=function(ka,qa){return this.load().then(()=>{if("queryTopCount"in this.source&&this.get("capabilities.query.supportsTopFeaturesQuery"))return this.source.queryTopCount(Xa.from(ka),qa);throw new w("FeatureLayer",
"Layer source does not support queryFeatureCount capability");})};Na.read=function(ka,qa){const Ga=ka.featureCollection;if(Ga){const Ta=Ga.layers;Ta&&1===Ta.length&&(pb.prototype.read.call(this,Ta[0],qa),null!=Ga.showLegend&&pb.prototype.read.call(this,{showLegend:Ga.showLegend},qa))}pb.prototype.read.call(this,ka,qa);qa&&"service"===qa.origin&&this.revert(["objectIdField","fields","timeInfo","spatialReference"],"service")};Na.write=function(ka,qa){var Ga,Ta;qa={...qa,writeLayerSchema:null!=(Ga=null==
(Ta=qa)?void 0:Ta.writeLayerSchema)?Ga:this._hasMemorySource()};Ga=qa.origin;Ta=qa.layerContainerType;const bb=qa.messages;if(this.isTable){if("web-scene"===Ga||"web-map"===Ga&&"tables"!==Ta)return bb&&bb.push(new w("layer:unsupported",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Table source cannot be written to web scenes and web maps`,{layer:this})),null;if(this._hasMemorySource())return bb&&bb.push(new w("layer:unsupported",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using an in-memory Table source cannot be written to web scenes and web maps`,
{layer:this})),null}else if(this.loaded&&"web-map"===Ga&&"tables"===Ta)return bb&&bb.push(new w("layer:unsupported",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a non-table source cannot be written to tables in web maps`,{layer:this})),null;return pb.prototype.write.call(this,ka,qa)};Na._readEditingEnabled=function(ka,qa,Ga){var Ta;let bb=null==(Ta=ka.layerDefinition)?void 0:Ta.capabilities;if(bb)return this._hasEditingCapability(bb);bb=ka.capabilities;if(qa&&"web-map"===
(null==Ga?void 0:Ga.origin)&&!this._hasMemorySource()&&bb)return this._hasEditingCapability(bb)};Na._hasEditingCapability=function(ka){return ka.toLowerCase().split(",").map(qa=>qa.trim()).includes("editing")};Na._writeEditingEnabled=function(ka,qa,Ga,Ta){if(!ka){var bb,xb;ka=null!=(bb=this.capabilities)&&null!=(xb=bb.operations)&&xb.supportsSync?"Query,Sync":"Query";z.setDeepValue("layerDefinition.capabilities",ka,qa);!Ga||null!=Ta&&Ta.writeLayerSchema||(qa.capabilities=ka)}};Na._checkAttachmentSupport=
function(ka){const {attributes:qa}=ka,{objectIdField:Ga}=this;if(!this.get("capabilities.data.supportsAttachment"))return Promise.reject(new w("FeatureLayer","this layer doesn't support attachments"));if(!ka)return Promise.reject(new w("FeatureLayer","A feature is required to add/delete/update attachments"));if(!qa)return Promise.reject(new w("FeatureLayer","'attributes' are required on a feature to query attachments"));if(!qa[Ga])return Promise.reject(new w("FeatureLayer",`feature is missing the identifying attribute ${Ga}`))};
Na._getLayerDomain=function(ka){return(ka=this.fieldsIndex.get(ka))?ka.domain:null};Na._fetchFirstLayerId=function(ka){return l(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:ka}).then(qa=>{if(qa=qa.data){if(Array.isArray(qa.layers)&&0<qa.layers.length)return qa.layers[0].id;if(Array.isArray(qa.tables)&&0<qa.tables.length)return qa.tables[0].id}})};Na._initLayerProperties=function(){var ka=b._asyncToGenerator(function*(qa){this._set("source",qa);qa.sourceJSON&&
(this.sourceJSON=qa.sourceJSON,this.read(qa.sourceJSON,{origin:"service",url:this.parsedUrl}));this._verifySource();this._verifyFields();Aa.fixRendererFields(this.renderer,this.fieldsIndex);Aa.fixTimeInfoFields(this.timeInfo,this.fieldsIndex);return Ca.loadStyleRenderer(this,{origin:"service"})});return function(qa){return ka.apply(this,arguments)}}();Na._verifyFields=function(){const ka=this.parsedUrl&&this.parsedUrl.path||"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+
ka+")");this.isTable||this._hasMemorySource()||-1!==ka.search(/\/FeatureServer\//i)||this.fields&&this.fields.some(function(qa){return"geometry"===qa.type})||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+ka+")")};Na._fixTemplates=function(ka,qa){ka&&ka.forEach(Ga=>{(Ga=Ga.prototype&&Ga.prototype.attributes)&&qa&&delete Ga[qa]})};Na._verifySource=function(){if(this._hasMemorySource()){if(this.url)throw new w("feature-layer:mixed-source-and-url",
"FeatureLayer cannot be created with both an in-memory source and a url");}else if(!this.url)throw new w("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source");};Na._initMemorySource=function(ka){ka.forEach(qa=>{qa.layer=this;qa.sourceLayer=this});this._handles.add([ka.on("after-add",qa=>{qa.item.layer=this;qa.item.sourceLayer=this}),ka.on("after-remove",qa=>{qa.item.layer=null;qa.item.sourceLayer=null})],"fl-source")};Na._resetMemorySource=function(ka){ka.forEach(qa=>
{qa.layer=null;qa.sourceLayer=null});this._handles.remove("fl-source")};Na._hasMemorySource=function(){return!(this.url||!this.source)};Na._readAttachmentCapabilities=function(ka){const qa={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1};ka&&Array.isArray(ka)&&ka.forEach(Ga=>{const Ta=Jb[Ga.name];Ta&&(qa[Ta]=!!Ga.isEnabled)});return qa};Na._readDataCapabilities=function(ka){return{isVersioned:Pa(ka,"isDataVersioned",!1),supportsAttachment:Pa(ka,"hasAttachments",
!1),supportsM:Pa(ka,"hasM",!1),supportsZ:Pa(ka,"hasZ",!1)}};Na._readMetadataCapabilities=function(ka){return{supportsAdvancedFieldProperties:Pa(ka,"supportsFieldDescriptionProperty",!1)}};Na._readOperationsCapabilities=function(ka,qa){ka=ka?ka.toLowerCase().split(",").map($b=>$b.trim()):[];const Ga=-1!==ka.indexOf("editing");let Ta=Ga&&-1!==ka.indexOf("create"),bb=Ga&&-1!==ka.indexOf("delete"),xb=Ga&&-1!==ka.indexOf("update");const Mb=-1!==ka.indexOf("changetracking");!Ga||Ta||bb||xb||(Ta=bb=xb=!0);
return{supportsCalculate:Pa(qa,"supportsCalculate",!1),supportsTruncate:Pa(qa,"supportsTruncate",!1),supportsValidateSql:Pa(qa,"supportsValidateSql",!1),supportsAdd:Ta,supportsDelete:bb,supportsEditing:Ga,supportsChangeTracking:Mb,supportsQuery:-1!==ka.indexOf("query"),supportsQueryAttachments:Pa(qa.advancedQueryCapabilities,"supportsQueryAttachments",!1),supportsResizeAttachments:Pa(qa,"supportsAttachmentsResizing",!1),supportsSync:-1!==ka.indexOf("sync"),supportsUpdate:xb,supportsExceedsLimitStatistics:Pa(qa,
"supportsExceedsLimitStatistics",!1)}};Na._readQueryCapabilities=function(ka){var qa;const Ga=ka.advancedQueryCapabilities,Ta=ka.ownershipBasedAccessControlForFeatures,bb=ka.archivingInfo;var xb=null==(qa=this.url)?void 0:qa.includes("MapServer");qa=!C("mapserver-pbf-enabled")&&xb&&10.81>this.version;xb=(ka.supportedQueryFormats||"").split(",").reduce((Mb,$b)=>{($b=$b.toLowerCase().trim())&&Mb.add($b);return Mb},new Set);return{supportsStatistics:Pa(Ga,"supportsStatistics",ka.supportsStatistics),
supportsPercentileStatistics:Pa(Ga,"supportsPercentileStatistics",!1),supportsCentroid:Pa(Ga,"supportsReturningGeometryCentroid",!1),supportsDistance:Pa(Ga,"supportsQueryWithDistance",!1),supportsDistinct:Pa(Ga,"supportsDistinct",ka.supportsAdvancedQueries),supportsExtent:Pa(Ga,"supportsReturningQueryExtent",!1),supportsGeometryProperties:Pa(Ga,"supportsReturningGeometryProperties",!1),supportsHavingClause:Pa(Ga,"supportsHavingClause",!1),supportsOrderBy:Pa(Ga,"supportsOrderBy",ka.supportsAdvancedQueries),
supportsPagination:Pa(Ga,"supportsPagination",!1),supportsQuantization:Pa(ka,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:Pa(ka,"supportsQuantizationEditMode",!1),supportsQueryGeometry:Pa(ka,"supportsReturningQueryGeometry",!1),supportsResultType:Pa(Ga,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:Pa(Ga,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:Pa(Ga,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:Pa(ka,"useStandardizedQueries",!1),
supportsTopFeaturesQuery:Pa(Ga,"supportsTopFeaturesQuery",!1),supportsQueryByOthers:Pa(Ta,"allowOthersToQuery",!0),supportsHistoricMoment:Pa(bb,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:!qa&&xb.has("pbf"),supportsDisjointSpatialRelationship:Pa(Ga,"supportsDisjointSpatialRel",!1),supportsCacheHint:Pa(Ga,"supportsQueryWithCacheHint",!1),maxRecordCountFactor:lb(ka,"maxRecordCountFactor",void 0),maxRecordCount:lb(ka,"maxRecordCount",void 0),standardMaxRecordCount:lb(ka,"standardMaxRecordCount",
void 0),tileMaxRecordCount:lb(ka,"tileMaxRecordCount",void 0)}};Na._readQueryRelatedCapabilities=function(ka){ka=ka.advancedQueryCapabilities;const qa=Pa(ka,"supportsAdvancedQueryRelated",!1);return{supportsPagination:Pa(ka,"supportsQueryRelatedPagination",!1),supportsCount:qa,supportsOrderBy:qa}};Na._readEditingCapabilities=function(ka){const qa=ka.ownershipBasedAccessControlForFeatures;return{supportsGeometryUpdate:Pa(ka,"allowGeometryUpdates",!0),supportsGlobalId:Pa(ka,"supportsApplyEditsWithGlobalIds",
!1),supportsReturnServiceEditsInSourceSpatialReference:Pa(ka,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:Pa(ka,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:Pa(ka,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:Pa(ka,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:Pa(qa,"allowAnonymousToDelete",!0),supportsDeleteByOthers:Pa(qa,"allowOthersToDelete",!0),supportsUpdateByAnonymous:Pa(qa,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:Pa(qa,
"allowOthersToUpdate",!0)}};b._createClass(ub,[{key:"createQueryVersion",get:function(){this.commitProperty("definitionExpression");this.commitProperty("dynamicDataSource");this.commitProperty("timeExtent");this.commitProperty("timeOffset");this.commitProperty("geometryType");this.commitProperty("gdbVersion");this.commitProperty("historicMoment");this.commitProperty("returnZ");this.commitProperty("capabilities");this.commitProperty("returnM");return(this._get("createQueryVersion")||0)+1}},{key:"editingEnabled",
get:function(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges},set:function(ka){null!=ka?this._override("editingEnabled",ka):this._clearOverride("editingEnabled")}},{key:"parsedUrl",get:function(){const ka=this.url?F.urlToObject(this.url):null;null!=ka&&(null!=this.dynamicDataSource?ka.path=F.join(ka.path,"dynamicLayer"):null!=this.layerId&&(ka.path=F.join(ka.path,this.layerId.toString())));return ka}},{key:"defaultPopupTemplate",
get:function(){return this.createPopupTemplate()}},{key:"renderer",set:function(ka){Aa.fixRendererFields(ka,this.fieldsIndex);this._set("renderer",ka)}},{key:"source",set:function(ka){const qa=this._get("source");qa!==ka&&(qa&&qa instanceof n&&this._resetMemorySource(qa),ka&&ka instanceof n&&this._initMemorySource(ka),this._set("source",ka))}},{key:"url",set:function(ka){ka=va.sanitizeUrlWithLayerId({layer:this,url:ka,nonStandardUrlAllowed:!0,logger:Ab});this._set("url",ka.url);null!=ka.layerId&&
this._set("layerId",ka.layerId)}}]);return ub}(xa.BlendLayer(la.TemporalLayer(ea.ScaleRangeLayer(da.RefreshableLayer(oa.ArcGISService(fa.OperationalLayer(ia.PortalLayer(r.MultiOriginJSONMixin(Ea.CustomParametersMixin(Z.APIKeyMixin(X)))))))))));c.__decorate([G.property({readOnly:!0,json:{read:!1}})],r.prototype,"capabilities",void 0);c.__decorate([K.reader("service","capabilities","advancedQueryCapabilities allowGeometryUpdates allowUpdateWithoutMValues archivingInfo capabilities hasAttachments hasM hasZ maxRecordCount maxRecordCountFactor ownershipBasedAccessControlForFeatures standardMaxRecordCount supportedQueryFormats supportsAdvancedQueries supportsApplyEditsWithGlobalIds supportsAttachmentsByUploadId supportsAttachmentsResizing supportsCalculate supportsCoordinatesQuantization supportsExceedsLimitStatistics supportsFieldDescriptionProperty supportsQuantizationEditMode supportsRollbackOnFailureParameter supportsStatistics supportsTruncate supportsValidateSql tileMaxRecordCount useStandardizedQueries".split(" "))],
r.prototype,"readCapabilities",null);c.__decorate([G.property({json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],r.prototype,"charts",void 0);c.__decorate([G.property({readOnly:!0})],r.prototype,"createQueryVersion",null);c.__decorate([G.property({type:String,json:{read:{source:"layerDefinition.copyrightText"},origins:{service:{read:{source:"copyrightText"}}}}})],r.prototype,"copyright",void 0);c.__decorate([G.property({type:String,json:{read:{source:"layerDefinition.displayField"},
origins:{service:{read:{source:"displayField"}}}}})],r.prototype,"displayField",void 0);c.__decorate([G.property({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],r.prototype,"definitionExpression",void 0);c.__decorate([G.property({types:h.symbolTypes,readOnly:!0})],r.prototype,"defaultSymbol",void 0);c.__decorate([G.property({type:ya.DataLayerSource})],r.prototype,"dynamicDataSource",void 0);c.__decorate([G.property({readOnly:!0})],
r.prototype,"editFieldsInfo",void 0);c.__decorate([G.property({type:Boolean})],r.prototype,"editingEnabled",null);c.__decorate([K.reader(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],r.prototype,"readEditingEnabled",null);c.__decorate([K.reader("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],r.prototype,"readEditingEnabledFromWebMap",null);c.__decorate([J.writer(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],
r.prototype,"writeEditingEnabled",null);c.__decorate([J.writer("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],r.prototype,"writeEditingEnabledToWebMap",null);c.__decorate([G.property({readOnly:!0})],r.prototype,"editingInfo",void 0);c.__decorate([K.reader("editingInfo")],r.prototype,"readEditingInfo",null);c.__decorate([G.property(Ba.elevationInfo)],r.prototype,"elevationInfo",void 0);c.__decorate([G.property({types:{key:"type",base:ja["default"],
typeMap:{selection:ta,cluster:ua}},json:{write:{target:"layerDefinition.featureReduction"}}})],r.prototype,"featureReduction",void 0);c.__decorate([K.reader("featureReduction",["layerDefinition.featureReduction"])],r.prototype,"readFeatureReduction",null);c.__decorate([J.writer("web-scene","featureReduction",{"layerDefinition.featureReduction":{types:T.webSceneFeatureReductionTypes}})],r.prototype,"writeWebSceneFeatureReduction",null);c.__decorate([G.property({...f.fields,json:{read:{source:"layerDefinition.fields"},
origins:{service:{read:!0},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:rb}}}}})],r.prototype,"fields",void 0);c.__decorate([G.property(f.fieldsIndex)],r.prototype,"fieldsIndex",void 0);c.__decorate([G.property({type:jb,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],r.prototype,"floorInfo",void 0);c.__decorate([G.property({type:Q,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],r.prototype,"formTemplate",
void 0);c.__decorate([G.property({type:W,json:{origins:{service:{read:{source:"extent"}}},read:{source:"layerDefinition.extent"}}})],r.prototype,"fullExtent",void 0);c.__decorate([G.property()],r.prototype,"gdbVersion",void 0);c.__decorate([G.property({readOnly:!0,type:La,json:{read:{source:"geometryProperties"}}})],r.prototype,"geometryFieldsInfo",void 0);c.__decorate([G.property({type:"point polygon polyline multipoint multipatch mesh".split(" "),json:{origins:{service:{read:mb.read},"web-map":{write:{target:"layerDefinition.geometryType",
overridePolicy:rb,writer(pb,ub,Na){(pb=pb?mb.toJSON(pb):null)&&z.setDeepValue(Na,pb,ub)}}}},read:{source:"layerDefinition.geometryType",reader:mb.read}}})],r.prototype,"geometryType",void 0);c.__decorate([G.property({type:Boolean,json:{origins:{service:{read:!0}},read:{source:"layerDefinition.hasM"}}})],r.prototype,"hasM",void 0);c.__decorate([G.property({type:Boolean,json:{origins:{service:{read:!0}},read:{source:"layerDefinition.hasZ"}}})],r.prototype,"hasZ",void 0);c.__decorate([G.property({readOnly:!0,
type:V})],r.prototype,"heightModelInfo",void 0);c.__decorate([G.property({type:Date})],r.prototype,"historicMoment",void 0);c.__decorate([G.property(Ba.id)],r.prototype,"id",void 0);c.__decorate([G.property({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],r.prototype,"infoFor3D",void 0);c.__decorate([G.property({readOnly:!0,json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],r.prototype,"isTable",void 0);c.__decorate([K.reader("service","isTable",["type","geometryType"]),
K.reader("isTable",["layerDefinition.type","layerDefinition.geometryType"])],r.prototype,"readIsTable",null);c.__decorate([J.writer("web-map","isTable")],r.prototype,"writeIsTable",null);c.__decorate([G.property(Ba.labelsVisible)],r.prototype,"labelsVisible",void 0);c.__decorate([G.property({type:[Ra],json:{origins:{service:{read:{source:"drawingInfo.labelingInfo",reader:Za.reader},write:{target:"drawingInfo.labelingInfo",enabled:!1}}},read:{source:"layerDefinition.drawingInfo.labelingInfo",reader:Za.reader},
write:{target:"layerDefinition.drawingInfo.labelingInfo"}}})],r.prototype,"labelingInfo",void 0);c.__decorate([G.property(Ba.opacityDrawingInfo)],r.prototype,"opacity",void 0);c.__decorate([G.property({type:Number,json:{origins:{service:{read:{source:"id"}}},read:!1}})],r.prototype,"layerId",void 0);c.__decorate([G.property(Ba.legendEnabled)],r.prototype,"legendEnabled",void 0);c.__decorate([G.property({type:["show","hide"]})],r.prototype,"listMode",void 0);c.__decorate([G.property(Ba.minScale)],
r.prototype,"minScale",void 0);c.__decorate([K.reader("service","minScale",["minScale","effectiveMinScale"])],r.prototype,"readMinScale",null);c.__decorate([G.property(Ba.maxScale)],r.prototype,"maxScale",void 0);c.__decorate([K.reader("service","maxScale",["maxScale","effectiveMaxScale"])],r.prototype,"readMaxScale",null);c.__decorate([G.property({type:String})],r.prototype,"globalIdField",void 0);c.__decorate([K.reader("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"]),
K.reader("service","globalIdField",["globalIdField","fields"])],r.prototype,"readGlobalIdFieldFromService",null);c.__decorate([G.property({type:String,json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:rb}}}}})],r.prototype,"objectIdField",void 0);c.__decorate([K.reader("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"]),K.reader("service","objectIdField",["objectIdField","fields"])],r.prototype,"readObjectIdFieldFromService",null);c.__decorate([G.property({value:"ArcGISFeatureLayer",
type:["ArcGISFeatureLayer"]})],r.prototype,"operationalLayerType",void 0);c.__decorate([G.property(f.outFields)],r.prototype,"outFields",void 0);c.__decorate([G.property({readOnly:!0})],r.prototype,"parsedUrl",null);c.__decorate([G.property({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],r.prototype,"path",void 0);c.__decorate([G.property(Ba.popupEnabled)],r.prototype,"popupEnabled",void 0);c.__decorate([G.property({type:g,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],
r.prototype,"popupTemplate",void 0);c.__decorate([G.property({readOnly:!0})],r.prototype,"defaultPopupTemplate",null);c.__decorate([G.property({type:[kb],readOnly:!0})],r.prototype,"relationships",void 0);c.__decorate([G.property({types:e.rendererTypes,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:e.webSceneRendererTypes,write:{target:"layerDefinition.drawingInfo.renderer",writer:p.write}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy(pb,
ub,Na){return{ignoreOrigin:null==Na?void 0:Na.writeLayerSchema}},writer:p.write}}})],r.prototype,"renderer",null);c.__decorate([K.reader("service","renderer",["drawingInfo.renderer","defaultSymbol"]),K.reader("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],r.prototype,"readRenderer",null);c.__decorate([G.property()],r.prototype,"sourceJSON",void 0);c.__decorate([G.property({type:Boolean})],r.prototype,"returnM",void 0);c.__decorate([G.property({type:Boolean})],
r.prototype,"returnZ",void 0);c.__decorate([G.property(Ba.screenSizePerspectiveEnabled)],r.prototype,"screenSizePerspectiveEnabled",void 0);c.__decorate([G.property()],r.prototype,"source",null);c.__decorate([N.cast("source")],r.prototype,"castSource",null);c.__decorate([K.reader("portal-item","source",["featureSet"]),K.reader("web-map","source",["featureSet"])],r.prototype,"readSource",null);c.__decorate([G.property({readOnly:!0})],r.prototype,"serviceDefinitionExpression",void 0);c.__decorate([K.reader("service",
"serviceDefinitionExpression",["definitionQuery","definitionExpression"])],r.prototype,"readServiceDefinitionExpression",null);c.__decorate([G.property({type:P,json:{origins:{service:{read:{source:"extent.spatialReference"}}},read:{source:"layerDefinition.extent.spatialReference"}}})],r.prototype,"spatialReference",void 0);c.__decorate([G.property({type:Number})],r.prototype,"subtypeCode",void 0);c.__decorate([G.property({type:[ba]})],r.prototype,"templates",void 0);c.__decorate([K.reader("templates",
["editFieldsInfo","creatorField","editorField","templates"])],r.prototype,"readTemplates",null);c.__decorate([G.property({type:ra})],r.prototype,"timeInfo",void 0);c.__decorate([G.property()],r.prototype,"title",void 0);c.__decorate([K.reader("service","title",["name"]),K.reader("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],r.prototype,"readTitle",null);c.__decorate([K.reader("web-map","title",["layerDefinition.name","title"])],r.prototype,"readTitleFromWebMap",
null);c.__decorate([G.property({type:String})],r.prototype,"sublayerTitleMode",void 0);c.__decorate([G.property({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],r.prototype,"trackIdField",void 0);c.__decorate([G.property({json:{read:!1}})],r.prototype,"type",void 0);c.__decorate([G.property({type:String})],r.prototype,"typeIdField",void 0);c.__decorate([K.reader("service","typeIdField"),K.reader("typeIdField",["layerDefinition.typeIdField"])],r.prototype,"readTypeIdField",null);c.__decorate([G.property({type:[ha]})],
r.prototype,"types",void 0);c.__decorate([K.reader("service","types",["types"]),K.reader("types",["layerDefinition.types"])],r.prototype,"readTypes",null);c.__decorate([G.property({readOnly:!0,json:{write:!1}})],r.prototype,"serverGens",void 0);c.__decorate([G.property({type:n.ofType(aa.FeatureIndex),readOnly:!0})],r.prototype,"indexes",void 0);c.__decorate([G.property(Ba.url)],r.prototype,"url",null);c.__decorate([J.writer("url")],r.prototype,"writeUrl",null);c.__decorate([G.property({readOnly:!0})],
r.prototype,"userIsAdmin",void 0);c.__decorate([G.property({json:{origins:{service:{read:!0}},read:!1}})],r.prototype,"version",void 0);c.__decorate([K.reader("service","version","currentVersion capabilities drawingInfo hasAttachments htmlPopupType relationships timeInfo typeIdField types".split(" "))],r.prototype,"readVersion",null);c.__decorate([G.property({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility"}}}}})],r.prototype,"visible",void 0);c.__decorate([K.reader("portal-item",
"visible",["visibility","layerDefinition.defaultVisibility"])],r.prototype,"readVisible",null);r=c.__decorate([I.subclass("esri.layers.FeatureLayer")],r);const Sb=L.createTypeReader({types:h.symbolTypesRenderer});return r})},"esri/PopupTemplate":function(){define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./core/Collection ./core/JSONSupport ./core/lang ./core/Logger ./core/promiseUtils ./core/accessorSupport/decorators/property ./core/accessorSupport/decorators/cast ./core/has ./core/jsonMap ./core/accessorSupport/decorators/reader ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer ./core/accessorSupport/ensureType ./layers/support/fieldUtils ./popup/content ./popup/ExpressionInfo ./popup/FieldInfo ./popup/LayerOptions ./popup/RelatedRecordsInfo ./popup/content/AttachmentsContent ./popup/content/Content ./popup/content/CustomContent ./popup/content/FieldsContent ./popup/content/MediaContent ./popup/content/TextContent ./popup/content/support/mediaInfoTypes ./support/actions/ActionBase ./support/actions/ActionButton ./support/actions/ActionToggle".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r,z,E,F,G,N,K,I,J){var L;u=c.ofType({key:"type",defaultKeyValue:"button",base:K,typeMap:{button:I,toggle:J}});const Q={base:r,key:"type",typeMap:{media:F,custom:z,text:G,attachments:B,fields:E}},W=k.getLogger("esri.PopupTemplate"),V=["attachments","fields","media","text"];g=L=function(P){function X(){var Z=P.apply(this,arguments)||this;Z.actions=null;Z.content="";Z.expressionInfos=null;Z.fieldInfos=null;Z.layerOptions=null;Z.lastEditInfoEnabled=
!0;Z.outFields=null;Z.overwriteActions=!1;Z.returnGeometry=!1;Z.title="";Z.relatedRecordsInfo=null;return Z}a._inheritsLoose(X,P);var U=X.prototype;U.castContent=function(Z){if(Array.isArray(Z))return Z.map(oa=>h.ensureOneOfType(Q,oa));if("string"===typeof Z||"function"===typeof Z||Z instanceof HTMLElement||q.isPromiseLike(Z))return Z;W.error("content error","unsupported content value",{value:Z});return null};U.readContent=function(Z,oa){({popupElements:Z}=oa);return Array.isArray(Z)&&0<Z.length?
this._readPopupInfoElements(oa):this._readPopupInfo(oa)};U.writeContent=function(Z,oa,xa,Ea){"string"===typeof Z?oa.description=Z:Array.isArray(Z)&&(oa.popupElements=Z.filter(fa=>-1!==V.indexOf(fa.type)).map(fa=>fa&&fa.toJSON(Ea)),oa.popupElements.forEach(fa=>{"attachments"===fa.type?this._writeAttachmentContent(oa):"media"===fa.type?this._writeMediaContent(fa,oa):"text"===fa.type&&this._writeTextContent(fa,oa)}))};U.writeFieldInfos=function(Z,oa,xa,Ea){({content:xa}=this);xa=Array.isArray(xa)?xa:
null;if(Z){const fa=xa?xa.filter(da=>"fields"===da.type):[],ia=fa.length&&fa.every(da=>{var ea;return null==(ea=da.fieldInfos)?void 0:ea.length});oa.fieldInfos=Z.filter(Boolean).map(da=>{da=da.toJSON(Ea);ia&&(da.visible=!1);return da})}if(xa)for(const fa of xa)"fields"===fa.type&&this._writeFieldsContent(fa,oa)};U.writeLayerOptions=function(Z,oa,xa,Ea){oa[xa]=!Z||null===Z.showNoDataRecords&&null===Z.returnTopmostRaster?null:Z.toJSON(Ea)};U.writeTitle=function(Z,oa){oa.title=Z||""};U.clone=function(){var {actions:Z}=
this;Z=Z?f.clone(Z.toArray()):[];return new L({actions:Z,content:Array.isArray(this.content)?f.clone(this.content):this.content,expressionInfos:Array.isArray(this.expressionInfos)?f.clone(this.expressionInfos):null,fieldInfos:Array.isArray(this.fieldInfos)?f.clone(this.fieldInfos):null,layerOptions:this.layerOptions?f.clone(this.layerOptions):null,lastEditInfoEnabled:this.lastEditInfoEnabled,outFields:Array.isArray(this.outFields)?f.clone(this.outFields):null,overwriteActions:this.overwriteActions,
returnGeometry:this.returnGeometry,title:this.title,relatedRecordsInfo:this.relatedRecordsInfo?f.clone(this.relatedRecordsInfo):null})};U.collectRequiredFields=function(){var Z=a._asyncToGenerator(function*(oa,xa){yield this._collectExpressionInfoFields(oa,xa,this.expressionInfos);n.collectFields(oa,xa,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])});return function(oa,xa){return Z.apply(this,arguments)}}();
U.getRequiredFields=function(){var Z=a._asyncToGenerator(function*(oa){const xa=new Set;yield this.collectRequiredFields(xa,oa);return[...xa].sort()});return function(oa){return Z.apply(this,arguments)}}();U._writeFieldsContent=function(Z,oa){Array.isArray(Z.fieldInfos)&&Z.fieldInfos.length&&(Z=f.clone(Z.fieldInfos),Array.isArray(oa.fieldInfos)?Z.forEach(xa=>{const Ea=oa.fieldInfos.find(fa=>fa.fieldName.toLowerCase()===xa.fieldName.toLowerCase());Ea?Ea.visible=!0:oa.fieldInfos.push(xa)}):oa.fieldInfos=
Z)};U._writeAttachmentContent=function(Z){Z.showAttachments||(Z.showAttachments=!0)};U._writeTextContent=function(Z,oa){!oa.description&&Z.text&&(oa.description=Z.text)};U._writeMediaContent=function(Z,oa){Array.isArray(Z.mediaInfos)&&Z.mediaInfos.length&&(Z=f.clone(Z.mediaInfos),Array.isArray(oa.mediaInfos)?oa.mediaInfos=[...oa.mediaInfos,...Z]:oa.mediaInfos=Z)};U._readPopupInfoElements=function({description:Z,mediaInfos:oa,popupElements:xa}){var Ea=!1,fa=!1;return xa.map(ia=>{if("media"===ia.type)return ia.mediaInfos||
!oa||fa||(ia.mediaInfos=oa,fa=!0),F.fromJSON(ia);if("text"===ia.type)return ia.text||!Z||Ea||(ia.text=Z,Ea=!0),G.fromJSON(ia);if("attachments"===ia.type)return B.fromJSON(ia);if("fields"===ia.type)return E.fromJSON(ia)}).filter(Boolean)};U._readPopupInfo=function({description:Z,mediaInfos:oa,showAttachments:xa}){const Ea=[];Z?Ea.push(new G({text:Z})):Ea.push(new E);Array.isArray(oa)&&oa.length&&Ea.push(F.fromJSON({mediaInfos:oa}));xa&&Ea.push(B.fromJSON({displayType:"list"}));return Ea.length?Ea:
Z};U._getContentElementFields=function(Z){if(!Z||"attachments"===Z.type)return[];if("custom"===Z.type)return Z.outFields||[];if("fields"===Z.type)return this._getFieldInfoFields(Z.fieldInfos||this.fieldInfos);if("media"===Z.type)return(Z.mediaInfos||[]).reduce((oa,xa)=>[...oa,...this._getMediaInfoFields(xa)],[]);if("text"===Z.type)return this._extractFieldNames(Z.text)};U._getMediaInfoFields=function(Z){const {caption:oa,title:xa,value:Ea}=Z,{fields:fa=[],normalizeField:ia,tooltipField:da,sourceURL:ea,
linkURL:la}=Ea||{};Z=[...this._extractFieldNames(xa),...this._extractFieldNames(oa),...this._extractFieldNames(ea),...this._extractFieldNames(la),...fa];ia&&Z.push(ia);da&&Z.push(da);return Z};U._getContentFields=function(Z){return"string"===typeof Z?this._extractFieldNames(Z):Array.isArray(Z)?Z.reduce((oa,xa)=>[...oa,...this._getContentElementFields(xa)],[]):[]};U._collectExpressionInfoFields=function(){var Z=a._asyncToGenerator(function*(oa,xa,Ea){Ea&&(yield Promise.all(Ea.map(fa=>n.collectArcadeFieldNames(oa,
xa,fa.expression))))});return function(oa,xa,Ea){return Z.apply(this,arguments)}}();U._getFieldInfoFields=function(Z){return Z?Z.filter(oa=>"undefined"===typeof oa.visible?!0:!!oa.visible).map(oa=>oa.fieldName).filter(oa=>-1===oa.indexOf("relationships/")&&-1===oa.indexOf("expression/")):[]};U._getActionsFields=function(Z){return Z?Z.toArray().reduce((oa,xa)=>[...oa,...this._getActionFields(xa)],[]):[]};U._getActionFields=function(Z){const {className:oa,title:xa,type:Ea}=Z;Z="button"===Ea||"toggle"===
Ea?Z.image:"";return[...this._extractFieldNames(xa),...this._extractFieldNames(oa),...this._extractFieldNames(Z)]};U._getTitleFields=function(Z){return"string"===typeof Z?this._extractFieldNames(Z):[]};U._extractFieldNames=function(Z){if(!Z||"string"!==typeof Z)return[];Z=Z.match(/{[^}]*}/g);if(!Z)return[];const oa=/\{(\w+):.+\}/;return(Z=Z.filter(xa=>!(0===xa.indexOf("{relationships/")||0===xa.indexOf("{expression/"))).map(xa=>xa.replace(oa,"{$1}")))?Z.map(xa=>xa.slice(1,-1)):[]};return X}(g.JSONSupport);
b.__decorate([v.property({type:u})],g.prototype,"actions",void 0);b.__decorate([v.property()],g.prototype,"content",void 0);b.__decorate([t.cast("content")],g.prototype,"castContent",null);b.__decorate([p.reader("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments"])],g.prototype,"readContent",null);b.__decorate([l.writer("content",{popupElements:{type:c.ofType(w.persistableTypes)},showAttachments:{type:Boolean},mediaInfos:{type:c.ofType(N.types)},description:{type:String}})],
g.prototype,"writeContent",null);b.__decorate([v.property({type:[x],json:{write:!0}})],g.prototype,"expressionInfos",void 0);b.__decorate([v.property({type:[C]})],g.prototype,"fieldInfos",void 0);b.__decorate([l.writer("fieldInfos")],g.prototype,"writeFieldInfos",null);b.__decorate([v.property({type:D})],g.prototype,"layerOptions",void 0);b.__decorate([l.writer("layerOptions")],g.prototype,"writeLayerOptions",null);b.__decorate([v.property({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},
default:!0}})],g.prototype,"lastEditInfoEnabled",void 0);b.__decorate([v.property()],g.prototype,"outFields",void 0);b.__decorate([v.property()],g.prototype,"overwriteActions",void 0);b.__decorate([v.property()],g.prototype,"returnGeometry",void 0);b.__decorate([v.property({json:{type:String}})],g.prototype,"title",void 0);b.__decorate([l.writer("title")],g.prototype,"writeTitle",null);b.__decorate([v.property({type:A,json:{write:!0}})],g.prototype,"relatedRecordsInfo",void 0);return g=L=b.__decorate([e.subclass("esri.PopupTemplate")],
g)})},"esri/popup/content":function(){define("exports ./content/AttachmentsContent ./content/Content ./content/CustomContent ./content/FieldsContent ./content/MediaContent ./content/TextContent".split(" "),function(a,b,c,g,f,k,q){const v={base:null,key:"type",typeMap:{attachment:b,media:k,text:q,field:f}};a.AttachmentsContent=b;a.BaseContent=c;a.CustomContent=g;a.FieldsContent=f;a.MediaContent=k;a.TextContent=q;a.isContent=function(t){return t instanceof c};a.persistableTypes=v;Object.defineProperty(a,
"__esModule",{value:!0})})},"esri/popup/content/AttachmentsContent":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./Content".split(" "),function(a,b,c,g,f,k,q,v,t){var u;g=u=function(m){function p(e){e=m.call(this,e)||this;e.description=null;e.displayType=null;e.title=null;e.type="attachments";
return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({description:this.description,displayType:this.displayType,title:this.title})};return p}(t);b.__decorate([c.property({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],g.prototype,"description",void 0);b.__decorate([c.property({type:["preview","list"],json:{write:!0}})],g.prototype,"displayType",void 0);b.__decorate([c.property({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],g.prototype,"title",void 0);
b.__decorate([c.property({type:["attachments"],readOnly:!0,json:{read:!1,write:!0}})],g.prototype,"type",void 0);return g=u=b.__decorate([v.subclass("esri.popup.content.AttachmentsContent")],g)})},"esri/popup/content/Content":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){c=function(u){function m(p){p=u.call(this,p)||this;p.type=null;return p}a._inheritsLoose(m,u);return m}(c.JSONSupport);b.__decorate([g.property({type:["attachments","custom","fields","media","text"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=b.__decorate([t.subclass("esri.popup.content.Content")],c)})},"esri/popup/content/CustomContent":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./Content".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;f=m=function(p){function e(l){l=p.call(this,l)||this;l.creator=null;l.destroyer=null;l.outFields=null;l.type="custom";return l}a._inheritsLoose(e,p);e.prototype.clone=function(){return new m({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?c.clone(this.outFields):null})};return e}(u);b.__decorate([g.property()],f.prototype,"creator",void 0);b.__decorate([g.property()],f.prototype,"destroyer",void 0);b.__decorate([g.property()],
f.prototype,"outFields",void 0);b.__decorate([g.property({type:["custom"],readOnly:!0})],f.prototype,"type",void 0);return f=m=b.__decorate([t.subclass("esri.popup.content.CustomContent")],f)})},"esri/popup/content/FieldsContent":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../FieldInfo ./Content".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){var e;f=e=function(l){function h(w){w=l.call(this,w)||this;w.description=null;w.fieldInfos=null;w.title=null;w.type="fields";return w}a._inheritsLoose(h,l);var n=h.prototype;n.writeFieldInfos=function(w,x){x.fieldInfos=w&&w.map(C=>C.toJSON())};n.clone=function(){return new e({description:this.description,fieldInfos:Array.isArray(this.fieldInfos)?c.clone(this.fieldInfos):null,title:this.title})};return h}(p);b.__decorate([g.property({json:{write:!0,origins:{"web-scene":{write:!1,
read:!1}}}})],f.prototype,"description",void 0);b.__decorate([g.property({type:[m]})],f.prototype,"fieldInfos",void 0);b.__decorate([u.writer("fieldInfos")],f.prototype,"writeFieldInfos",null);b.__decorate([g.property({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],f.prototype,"title",void 0);b.__decorate([g.property({type:["fields"],readOnly:!0,json:{read:!1,write:!0}})],f.prototype,"type",void 0);return f=e=b.__decorate([t.subclass("esri.popup.content.FieldsContent")],f)})},"esri/popup/FieldInfo":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/jsonMap ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./support/FieldInfoFormat".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){var e;g=e=function(l){function h(n){n=l.call(this,n)||this;n.fieldName=null;n.format=null;n.isEditable=!1;n.label=null;n.stringFieldOption="text-box";n.statisticType=null;n.tooltip=null;n.visible=!0;return n}a._inheritsLoose(h,l);h.prototype.clone=function(){return new e({fieldName:this.fieldName,format:this.format?f.clone(this.format):null,isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,
visible:this.visible})};return h}(g.JSONSupport);b.__decorate([k.property({type:String,json:{write:!0}})],g.prototype,"fieldName",void 0);b.__decorate([k.property({type:p,json:{write:!0}})],g.prototype,"format",void 0);b.__decorate([k.property({type:Boolean,json:{write:!0,default:!1}})],g.prototype,"isEditable",void 0);b.__decorate([k.property({type:String,json:{write:!0}})],g.prototype,"label",void 0);b.__decorate([u.enumeration(new c.JSONMap({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),
{default:"text-box"})],g.prototype,"stringFieldOption",void 0);b.__decorate([k.property({type:"count sum min max avg stddev var".split(" "),json:{write:!0}})],g.prototype,"statisticType",void 0);b.__decorate([k.property({type:String,json:{write:!0}})],g.prototype,"tooltip",void 0);b.__decorate([k.property({type:Boolean,json:{write:!0}})],g.prototype,"visible",void 0);return g=e=b.__decorate([m.subclass("esri.popup.FieldInfo")],g)})},"esri/popup/support/FieldInfoFormat":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/date ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ../../intl/date ../../intl/number".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){var e;g=e=function(l){function h(w){w=l.call(this,w)||this;w.dateFormat=null;w.digitSeparator=!1;w.places=null;return w}a._inheritsLoose(h,l);var n=h.prototype;n.clone=function(){return new e({dateFormat:this.dateFormat,digitSeparator:this.digitSeparator,places:this.places})};n.format=function(w){return this.dateFormat?m.formatDate(w,m.convertDateFormatToIntlOptions(this.dateFormat)):p.formatNumber(w,p.convertNumberFormatToIntlOptions(this))};return h}(g.JSONSupport);
b.__decorate([t.enumeration(c.dictionary)],g.prototype,"dateFormat",void 0);b.__decorate([f.property({type:Boolean,json:{write:!0}})],g.prototype,"digitSeparator",void 0);b.__decorate([f.property({type:q.Integer,json:{write:!0}})],g.prototype,"places",void 0);return g=e=b.__decorate([u.subclass("esri.popup.support.FieldInfoFormat")],g)})},"esri/core/date":function(){define(["exports","./jsonMap"],function(a,b){const c={"short-date":"(datePattern: 'M/d/y', selector: 'date')","short-date-short-time":"(datePattern: 'M/d/y', timePattern: 'h:mm a', selector: 'date and time')",
"short-date-short-time-24":"(datePattern: 'M/d/y', timePattern: 'H:mm', selector: 'date and time')","short-date-long-time":"(datePattern: 'M/d/y', timePattern: 'h:mm:ss a', selector: 'date and time')","short-date-long-time-24":"(datePattern: 'M/d/y', timePattern: 'H:mm:ss', selector: 'date and time')","short-date-le":"(datePattern: 'd/M/y', selector: 'date')","short-date-le-short-time":"(datePattern: 'd/M/y', timePattern: 'h:mm a', selector: 'date and time')","short-date-le-short-time-24":"(datePattern: 'd/M/y', timePattern: 'H:mm', selector: 'date and time')",
"short-date-le-long-time":"(datePattern: 'd/M/y', timePattern: 'h:mm:ss a', selector: 'date and time')","short-date-le-long-time-24":"(datePattern: 'd/M/y', timePattern: 'H:mm:ss', selector: 'date and time')","long-month-day-year":"(datePattern: 'MMMM d, y', selector: 'date')","long-month-day-year-short-time":"(datePattern: 'MMMM d, y', timePattern: 'h:mm a', selector: 'date and time')","long-month-day-year-short-time-24":"(datePattern: 'MMMM d, y', timePattern: 'H:mm', selector: 'date and time')",
"long-month-day-year-long-time":"(datePattern: 'MMMM d, y', timePattern: 'h:mm:ss a', selector: 'date and time')","long-month-day-year-long-time-24":"(datePattern: 'MMMM d, y', timePattern: 'H:mm:ss', selector: 'date and time')","day-short-month-year":"(datePattern: 'd MMM y', selector: 'date')","day-short-month-year-short-time":"(datePattern: 'd MMM y', timePattern: 'h:mm a', selector: 'date and time')","day-short-month-year-short-time-24":"(datePattern: 'd MMM y', timePattern: 'H:mm', selector: 'date and time')",
"day-short-month-year-long-time":"(datePattern: 'd MMM y', timePattern: 'h:mm:ss a', selector: 'date and time')","day-short-month-year-long-time-24":"(datePattern: 'd MMM y', timePattern: 'H:mm:ss', selector: 'date and time')","long-date":"(datePattern: 'EEEE, MMMM d, y', selector: 'date')","long-date-short-time":"(datePattern: 'EEEE, MMMM d, y', timePattern: 'h:mm a', selector: 'date and time')","long-date-short-time-24":"(datePattern: 'EEEE, MMMM d, y', timePattern: 'H:mm', selector: 'date and time')",
"long-date-long-time":"(datePattern: 'EEEE, MMMM d, y', timePattern: 'h:mm:ss a', selector: 'date and time')","long-date-long-time-24":"(datePattern: 'EEEE, MMMM d, y', timePattern: 'H:mm:ss', selector: 'date and time')","long-month-year":"(datePattern: 'MMMM y', selector: 'date')","short-month-year":"(datePattern: 'MMM y', selector: 'date')",year:"(datePattern: 'y', selector: 'date')"};b=b.strict()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",
shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",
longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",
longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"});const g=b.toJSON.bind(b),f=b.fromJSON.bind(b);a.dictionary=b;a.formats=c;a.fromJSON=f;a.getFormat=function(k){return c[k]};a.toJSON=g;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/popup/content/MediaContent":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./BarChartMediaInfo ./ColumnChartMediaInfo ./Content ./ImageMediaInfo ./LineChartMediaInfo ./PieChartMediaInfo ./support/mediaInfoTypes".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x){var C;f=C=function(D){function A(r){r=D.call(this,r)||this;r.activeMediaInfoIndex=null;r.description=null;r.mediaInfos=null;r.title=null;r.type="media";return r}a._inheritsLoose(A,D);var B=A.prototype;B.readMediaInfos=function(r){return r&&r.map(z=>{if("image"===z.type)return h.fromJSON(z);if("barchart"===z.type)return p.fromJSON(z);if("columnchart"===z.type)return e.fromJSON(z);if("linechart"===z.type)return n.fromJSON(z);if("piechart"===z.type)return w.fromJSON(z)}).filter(Boolean)};
B.writeMediaInfos=function(r,z){z.mediaInfos=r&&r.map(E=>E.toJSON())};B.clone=function(){return new C({activeMediaInfoIndex:this.activeMediaInfoIndex,description:this.description,mediaInfos:this.mediaInfos?c.clone(this.mediaInfos):null,title:this.title})};return A}(l);b.__decorate([g.property()],f.prototype,"activeMediaInfoIndex",void 0);b.__decorate([g.property({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],f.prototype,"description",void 0);b.__decorate([g.property({types:[x.types]})],
f.prototype,"mediaInfos",void 0);b.__decorate([t.reader("mediaInfos")],f.prototype,"readMediaInfos",null);b.__decorate([m.writer("mediaInfos")],f.prototype,"writeMediaInfos",null);b.__decorate([g.property({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],f.prototype,"title",void 0);b.__decorate([g.property({type:["media"],readOnly:!0,json:{read:!1,write:!0}})],f.prototype,"type",void 0);return f=C=b.__decorate([u.subclass("esri.popup.content.MediaContent")],f)})},"esri/popup/content/BarChartMediaInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;g=m=function(p){function e(l){l=p.call(this,l)||this;l.type="bar-chart";return l}a._inheritsLoose(e,p);e.prototype.clone=function(){return new m({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})};return e}(t);b.__decorate([c.property({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:u.chartTypeKebabDict.write}})],g.prototype,"type",void 0);return g=m=b.__decorate([v.subclass("esri.popup.content.BarChartMediaInfo")],
g)})},"esri/popup/content/mixins/ChartMediaInfo":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ./MediaInfo ../support/ChartMediaInfoValue".split(" "),function(a,b,c,g,f,k,q,v,t,u){g=function(m){function p(e){e=m.call(this,e)||this;e.type=null;e.value=null;return e}
a._inheritsLoose(p,m);return p}(t);b.__decorate([c.property({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],g.prototype,"type",void 0);b.__decorate([c.property({type:u,json:{write:!0}})],g.prototype,"value",void 0);return g=b.__decorate([v.subclass("esri.popup.content.mixins.ChartMediaInfo")],g)})},"esri/popup/content/mixins/MediaInfo":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){c=function(u){function m(p){p=u.call(this,p)||this;p.altText=null;p.caption="";p.title="";p.type=null;return p}a._inheritsLoose(m,u);return m}(c.JSONSupport);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"altText",void 0);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"caption",void 0);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"title",void 0);b.__decorate([g.property({type:["image","bar-chart","column-chart",
"line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=b.__decorate([t.subclass("esri.popup.content.mixins.MediaInfo")],c)})},"esri/popup/content/support/ChartMediaInfoValue":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/lang ../../../core/accessorSupport/decorators/property ../../../core/accessorSupport/ensureType ../../../core/has ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ./ChartMediaInfoValueSeries".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){var p;c=p=function(e){function l(h){h=e.call(this,h)||this;h.fields=[];h.normalizeField=null;h.series=[];h.tooltipField=null;return h}a._inheritsLoose(l,e);l.prototype.clone=function(){return new p({fields:g.clone(this.fields),normalizeField:this.normalizeField,tooltipField:this.tooltipField})};return l}(c.JSONSupport);b.__decorate([f.property({type:[String],json:{write:!0}})],c.prototype,"fields",void 0);b.__decorate([f.property({type:String,json:{write:!0}})],c.prototype,
"normalizeField",void 0);b.__decorate([f.property({type:[m],json:{read:!1}})],c.prototype,"series",void 0);b.__decorate([f.property({type:String,json:{write:!0}})],c.prototype,"tooltipField",void 0);return c=p=b.__decorate([u.subclass("esri.popup.content.support.ChartMediaInfoValue")],c)})},"esri/popup/content/support/ChartMediaInfoValueSeries":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/accessorSupport/decorators/aliasOf ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/property ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;c=m=function(p){function e(l){l=p.call(this,l)||this;l.tooltip=null;l.value=null;l.x=null;l.y=null;return l}a._inheritsLoose(e,p);e.prototype.clone=function(){return new m({tooltip:this.tooltip,value:this.value})};return e}(c);b.__decorate([t.property()],c.prototype,"tooltip",void 0);b.__decorate([t.property()],c.prototype,"value",void 0);b.__decorate([g.aliasOf("value")],c.prototype,"x",void 0);b.__decorate([g.aliasOf("tooltip")],c.prototype,"y",void 0);return c=
m=b.__decorate([u.subclass("esri.popup.content.support.ChartMediaInfoValueSeries")],c)})},"esri/core/accessorSupport/decorators/aliasOf":function(){define(["exports","./property"],function(a,b){a.aliasOf=function(c,g){return b.property({aliasOf:g?{...g,source:c}:c})};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/popup/content/support/chartMediaInfoUtils":function(){define(["exports","../../../core/jsonMap"],function(a,b){b=b.strict()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",
piechart:"pie-chart"});a.chartTypeKebabDict=b;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/popup/content/ColumnChartMediaInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "),function(a,b,c,g,f,k,q,v,t,u){var m;
g=m=function(p){function e(l){l=p.call(this,l)||this;l.type="column-chart";return l}a._inheritsLoose(e,p);e.prototype.clone=function(){return new m({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})};return e}(t);b.__decorate([c.property({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:u.chartTypeKebabDict.write}})],g.prototype,"type",void 0);return g=m=b.__decorate([v.subclass("esri.popup.content.ColumnChartMediaInfo")],
g)})},"esri/popup/content/ImageMediaInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./mixins/MediaInfo ./support/ImageMediaInfoValue".split(" "),function(a,b,c,g,f,k,q,v,t,u){var m;g=m=function(p){function e(l){l=p.call(this,l)||this;l.refreshInterval=null;l.type="image";l.value=
null;return l}a._inheritsLoose(e,p);e.prototype.clone=function(){return new m({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?this.value.clone():null})};return e}(t);b.__decorate([c.property({type:Number,json:{write:!0}})],g.prototype,"refreshInterval",void 0);b.__decorate([c.property({type:["image"],readOnly:!0,json:{read:!1,write:!0}})],g.prototype,"type",void 0);b.__decorate([c.property({type:u,json:{write:!0}})],g.prototype,"value",
void 0);return g=m=b.__decorate([v.subclass("esri.popup.content.ImageMediaInfo")],g)})},"esri/popup/content/support/ImageMediaInfoValue":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t){var u;c=u=
function(m){function p(e){e=m.call(this,e)||this;e.linkURL=null;e.sourceURL=null;return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({linkURL:this.linkURL,sourceURL:this.sourceURL})};return p}(c.JSONSupport);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"linkURL",void 0);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"sourceURL",void 0);return c=u=b.__decorate([t.subclass("esri.popup.content.support.ImageMediaInfoValue")],c)})},"esri/popup/content/LineChartMediaInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;g=m=function(p){function e(l){l=p.call(this,l)||this;l.type="line-chart";return l}a._inheritsLoose(e,p);e.prototype.clone=function(){return new m({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})};return e}(t);b.__decorate([c.property({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:u.chartTypeKebabDict.write}})],g.prototype,"type",void 0);return g=m=b.__decorate([v.subclass("esri.popup.content.LineChartMediaInfo")],
g)})},"esri/popup/content/PieChartMediaInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "),function(a,b,c,g,f,k,q,v,t,u){var m;g=m=function(p){function e(l){l=p.call(this,l)||this;l.type="pie-chart";return l}a._inheritsLoose(e,
p);e.prototype.clone=function(){return new m({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})};return e}(t);b.__decorate([c.property({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:u.chartTypeKebabDict.write}})],g.prototype,"type",void 0);return g=m=b.__decorate([v.subclass("esri.popup.content.PieChartMediaInfo")],g)})},"esri/popup/content/support/mediaInfoTypes":function(){define("exports ../BarChartMediaInfo ../ColumnChartMediaInfo ../ImageMediaInfo ../LineChartMediaInfo ../PieChartMediaInfo ../mixins/MediaInfo".split(" "),
function(a,b,c,g,f,k,q){b={base:q,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":b,"column-chart":c,"line-chart":f,"pie-chart":k,image:g}};a.default=b;a.types=b;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/popup/content/TextContent":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./Content".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;g=u=function(m){function p(e){e=m.call(this,e)||this;e.text=null;e.type="text";return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({text:this.text})};return p}(t);b.__decorate([c.property({type:String,json:{write:!0}})],g.prototype,"text",void 0);b.__decorate([c.property({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],g.prototype,"type",void 0);return g=u=b.__decorate([v.subclass("esri.popup.content.TextContent")],g)})},"esri/popup/ExpressionInfo":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;c=u=function(m){function p(e){e=m.call(this,e)||this;e.name=null;e.title=null;e.expression=null;e.returnType=null;return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})};return p}(c.JSONSupport);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"name",void 0);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"title",void 0);
b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"expression",void 0);b.__decorate([g.property({type:["string","number"],json:{write:!0}})],c.prototype,"returnType",void 0);return c=u=b.__decorate([t.subclass("esri.popup.ExpressionInfo")],c)})},"esri/popup/LayerOptions":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;c=u=function(m){function p(e){e=m.call(this,e)||this;e.returnTopmostRaster=null;e.showNoDataRecords=null;return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})};return p}(c.JSONSupport);b.__decorate([g.property({type:Boolean,json:{write:!0}})],c.prototype,"returnTopmostRaster",void 0);b.__decorate([g.property({type:Boolean,json:{write:!0}})],c.prototype,"showNoDataRecords",
void 0);return c=u=b.__decorate([t.subclass("esri.popup.LayerOptions")],c)})},"esri/popup/RelatedRecordsInfo":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass ./support/RelatedRecordsInfoFieldOrder".split(" "),function(a,b,c,g,f,k,q,v,t,u,m){var p;c=p=function(e){function l(h){h=
e.call(this,h)||this;h.showRelatedRecords=null;h.orderByFields=null;return h}a._inheritsLoose(l,e);l.prototype.clone=function(){return new p({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?g.clone(this.orderByFields):null})};return l}(c.JSONSupport);b.__decorate([f.property({type:Boolean,json:{write:!0}})],c.prototype,"showRelatedRecords",void 0);b.__decorate([f.property({type:[m],json:{write:!0}})],c.prototype,"orderByFields",void 0);return c=p=b.__decorate([u.subclass("esri.popup.RelatedRecordsInfo")],
c)})},"esri/popup/support/RelatedRecordsInfoFieldOrder":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t){var u;c=u=function(m){function p(e){e=m.call(this,e)||this;e.field=null;e.order=null;return e}a._inheritsLoose(p,m);p.prototype.clone=
function(){return new u({field:this.field,order:this.order})};return p}(c.JSONSupport);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"field",void 0);b.__decorate([g.property({type:["asc","desc"],json:{write:!0}})],c.prototype,"order",void 0);return c=u=b.__decorate([t.subclass("esri.popup.support.RelatedRecordsInfoFieldOrder")],c)})},"esri/support/actions/ActionBase":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/Identifiable ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;c=m=function(p){function e(l){l=p.call(this,l)||this;l.active=!1;l.className=null;l.disabled=!1;l.id=null;l.indicator=!1;l.title=null;l.type=null;l.visible=!0;return l}a._inheritsLoose(e,p);e.prototype.clone=function(){return new m({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})};return e}(g.IdentifiableMixin(c));b.__decorate([f.property()],c.prototype,"active",void 0);
b.__decorate([f.property()],c.prototype,"className",void 0);b.__decorate([f.property()],c.prototype,"disabled",void 0);b.__decorate([f.property()],c.prototype,"id",void 0);b.__decorate([f.property()],c.prototype,"indicator",void 0);b.__decorate([f.property()],c.prototype,"title",void 0);b.__decorate([f.property()],c.prototype,"type",void 0);b.__decorate([f.property()],c.prototype,"visible",void 0);return c=m=b.__decorate([u.subclass("esri.support.actions.ActionBase")],c)})},"esri/support/actions/ActionButton":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./ActionBase".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;g=u=function(m){function p(e){e=m.call(this,e)||this;e.image=null;e.type="button";return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})};return p}(t);b.__decorate([c.property()],g.prototype,"image",void 0);return g=u=b.__decorate([v.subclass("esri.support.Action.ActionButton")],g)})},"esri/support/actions/ActionToggle":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./ActionBase".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;g=u=function(m){function p(e){e=m.call(this,e)||this;e.image=null;e.type="toggle";e.value=!1;return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})};return p}(t);b.__decorate([c.property()],g.prototype,"image",void 0);b.__decorate([c.property()],g.prototype,"value",void 0);
return g=u=b.__decorate([v.subclass("esri.support.Action.ActionToggle")],g)})},"esri/renderers/ClassBreaksRenderer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../symbols ../core/jsonMap ../core/lang ../core/Logger ../core/maybe ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/has ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../core/accessorSupport/ensureType ../layers/support/fieldUtils ./Renderer ./mixins/VisualVariablesMixin ./support/ClassBreakInfo ./support/commonProperties ./support/LegendOptions ../support/arcadeOnDemand".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B){var r;const z=k.getLogger("esri.renderers.ClassBreaksRenderer");g=new g.JSONMap({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});const E=h.ensureType(C);w=r=function(F){function G(K){K=F.call(this,K)||this;K._compiledValueExpression={valueExpression:null,compiledFunction:null};K.backgroundFillSymbol=null;K.classBreakInfos=null;K.defaultLabel=null;K.defaultSymbol=null;K.field=null;K.isMaxInclusive=
!0;K.legendOptions=null;K.normalizationField=null;K.normalizationTotal=null;K.type="class-breaks";K.valueExpression=null;K.valueExpressionTitle=null;K._set("classBreakInfos",[]);return K}a._inheritsLoose(G,F);var N=G.prototype;N.readClassBreakInfos=function(K,I,J){if(Array.isArray(K)){var L=I.minValue;return K.map(Q=>{const W=new C;W.read(Q,J);null==W.minValue&&(W.minValue=L);null==W.maxValue&&(W.maxValue=W.minValue);L=W.maxValue;return W})}};N.writeClassBreakInfos=function(K,I,J,L){K=K.map(Q=>Q.write({},
L));this._areClassBreaksConsecutive()&&K.forEach(Q=>delete Q.classMinValue);I[J]=K};N.castField=function(K){return null==K?K:"function"===typeof K?(z.error(".field: field must be a string value"),null):h.ensureString(K)};N.addClassBreakInfo=function(K,I,J){let L=null;L="number"===typeof K?new C({minValue:K,maxValue:I,symbol:c.ensureType(J)}):E(f.clone(K));this.classBreakInfos.push(L);1===this.classBreakInfos.length&&this.notifyChange("minValue")};N.removeClassBreakInfo=function(K,I){const J=this.classBreakInfos.length;
for(let L=0;L<J;L++){const Q=[this.classBreakInfos[L].minValue,this.classBreakInfos[L].maxValue];if(Q[0]===K&&Q[1]===I){this.classBreakInfos.splice(L,1);break}}};N.getBreakIndex=function(K,I){this.valueExpression&&(q.isNone(I)||q.isNone(I.arcade))&&z.warn("");return this.valueExpression?this._getBreakIndexForExpression(K,I):this._getBreakIndexForField(K)};N.getClassBreakInfo=function(){var K=a._asyncToGenerator(function*(I,J){let L=J;this.valueExpression&&(q.isNone(J)||q.isNone(J.arcade))&&(L={...L,
arcade:yield B.loadArcade()});I=this.getBreakIndex(I,L);return-1!==I?this.classBreakInfos[I]:null});return function(I,J){return K.apply(this,arguments)}}();N.getSymbol=function(K,I){if(this.valueExpression&&(q.isNone(I)||q.isNone(I.arcade)))z.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");else return K=this.getBreakIndex(K,I),-1<K?this.classBreakInfos[K].symbol:this.defaultSymbol};N.getSymbolAsync=function(){var K=a._asyncToGenerator(function*(I,J){let L=J;if(this.valueExpression&&
(q.isNone(J)||q.isNone(J.arcade))){J=yield B.loadArcade();const {arcadeUtils:Q}=J;Q.hasGeometryOperations(this.valueExpression)&&(yield Q.enableGeometryOperations());L={...L,arcade:J}}I=this.getBreakIndex(I,L);return-1<I?this.classBreakInfos[I].symbol:this.defaultSymbol});return function(I,J){return K.apply(this,arguments)}}();N.getSymbols=function(){const K=[];this.classBreakInfos.forEach(I=>{I.symbol&&K.push(I.symbol)});this.defaultSymbol&&K.push(this.defaultSymbol);return K};N.getAttributeHash=
function(){return this.visualVariables&&this.visualVariables.reduce((K,I)=>K+I.getAttributeHash(),"")};N.getMeshHash=function(){const K=JSON.stringify(this.backgroundFillSymbol),I=JSON.stringify(this.defaultSymbol),J=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`,L=this.classBreakInfos.reduce((Q,W)=>Q+W.getMeshHash(),"");return`${K}.${I}.${L}.${J}.${this.field}.${this.valueExpression}`};N.clone=function(){return new r({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol&&
this.backgroundFillSymbol.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:f.clone(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:f.clone(this.visualVariables),legendOptions:f.clone(this.legendOptions),
authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})};N.collectRequiredFields=function(){var K=a._asyncToGenerator(function*(I,J){I=[this.collectVVRequiredFields(I,J),this.collectSymbolFields(I,J)];yield Promise.all(I)});return function(I,J){return K.apply(this,arguments)}}();N.collectSymbolFields=function(){var K=a._asyncToGenerator(function*(I,J){const L=[...this.getSymbols().map(Q=>Q.collectRequiredFields(I,J)),n.collectArcadeFieldNames(I,J,this.valueExpression)];n.collectField(I,J,this.field);
n.collectField(I,J,this.normalizationField);yield Promise.all(L)});return function(I,J){return K.apply(this,arguments)}}();N._getBreakIndexForExpression=function(K,I){const {viewingMode:J,scale:L,spatialReference:Q,arcade:W}=q.unwrapOr(I,{});var V=this._compiledValueExpression.valueExpression===this.valueExpression?this._compiledValueExpression.compiledFunction:null;I=q.unwrap(W).arcadeUtils;V||(V=I.createSyntaxTree(this.valueExpression),V=I.createFunction(V),this._compiledValueExpression.compiledFunction=
V);this._compiledValueExpression.valueExpression=this.valueExpression;K=I.executeFunction(V,I.createExecContext(K,I.getViewInfo({viewingMode:J,scale:L,spatialReference:Q})));return this._getBreakIndexfromInfos(K)};N._getBreakIndexForField=function(K){var I=K.attributes;K=this.normalizationType;let J=parseFloat(I[this.field]);if(K){const L=this.normalizationTotal;I=parseFloat(I[this.normalizationField]);if("log"===K)J=Math.log(J)*Math.LOG10E;else if("percent-of-total"===K&&!isNaN(L))J=J/L*100;else if("field"===
K&&!isNaN(I)){if(isNaN(J)||isNaN(I))return-1;J/=I}}return this._getBreakIndexfromInfos(J)};N._getBreakIndexfromInfos=function(K){const I=this.isMaxInclusive;if(null!=K&&"number"===typeof K&&!isNaN(K))for(let J=0;J<this.classBreakInfos.length;J++){const L=[this.classBreakInfos[J].minValue,this.classBreakInfos[J].maxValue];if(L[0]<=K&&(I?K<=L[1]:K<L[1]))return J}return-1};N._areClassBreaksConsecutive=function(){const K=this.classBreakInfos,I=K.length;for(let J=1;J<I;J++)if(K[J-1].maxValue!==K[J].minValue)return!1;
return!0};a._createClass(G,[{key:"minValue",get:function(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}},{key:"normalizationType",get:function(){let K=this._get("normalizationType");const I=!!this.normalizationField,J=null!=this.normalizationTotal;if(I||J)K=I&&"field"||J&&"percent-of-total"||null,I&&J&&z.warn("warning: both normalizationField and normalizationTotal are set!");else if("field"===K||"percent-of-total"===K)K=null;return K},set:function(K){this._set("normalizationType",
K)}},{key:"arcadeRequired",get:function(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}}]);return G}(x.VisualVariablesMixin(w));b.__decorate([v.property(D.rendererBackgroundFillSymbolProperty)],w.prototype,"backgroundFillSymbol",void 0);b.__decorate([v.property({type:[C]})],w.prototype,"classBreakInfos",void 0);b.__decorate([p.reader("classBreakInfos")],w.prototype,"readClassBreakInfos",null);b.__decorate([l.writer("classBreakInfos")],w.prototype,"writeClassBreakInfos",null);
b.__decorate([v.property({type:String,json:{write:!0}})],w.prototype,"defaultLabel",void 0);b.__decorate([v.property(D.rendererSymbolProperty)],w.prototype,"defaultSymbol",void 0);b.__decorate([v.property({type:String,json:{write:!0}})],w.prototype,"field",void 0);b.__decorate([t.cast("field")],w.prototype,"castField",null);b.__decorate([v.property({type:Boolean})],w.prototype,"isMaxInclusive",void 0);b.__decorate([v.property({type:A["default"],json:{write:!0}})],w.prototype,"legendOptions",void 0);
b.__decorate([v.property({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],w.prototype,"minValue",null);b.__decorate([v.property({type:String,json:{write:!0}})],w.prototype,"normalizationField",void 0);b.__decorate([v.property({type:Number,cast:F=>h.ensureNumber(F),json:{write:!0}})],w.prototype,"normalizationTotal",void 0);b.__decorate([v.property({type:g.apiValues,value:null,
json:{type:g.jsonValues,read:g.read,write:g.write}})],w.prototype,"normalizationType",null);b.__decorate([m.enumeration({classBreaks:"class-breaks"})],w.prototype,"type",void 0);b.__decorate([v.property({type:String,json:{write:!0}})],w.prototype,"valueExpression",void 0);b.__decorate([v.property({type:String,json:{write:!0}})],w.prototype,"valueExpressionTitle",void 0);return w=r=b.__decorate([e.subclass("esri.renderers.ClassBreaksRenderer")],w)})},"esri/symbols":function(){define("exports ./core/accessorSupport/ensureType ./core/accessorSupport/extensions/serializableProperty/reader ./symbols/CIMSymbol ./symbols/ExtrudeSymbol3DLayer ./symbols/FillSymbol ./symbols/FillSymbol3DLayer ./symbols/Font ./symbols/IconSymbol3DLayer ./symbols/LabelSymbol3D ./symbols/LineSymbol3D ./symbols/LineSymbol3DLayer ./symbols/MarkerSymbol ./symbols/MeshSymbol3D ./symbols/ObjectSymbol3DLayer ./symbols/PathSymbol3DLayer ./symbols/PictureFillSymbol ./symbols/PictureMarkerSymbol ./symbols/PointSymbol3D ./symbols/PolygonSymbol3D ./symbols/SimpleFillSymbol ./symbols/SimpleLineSymbol ./symbols/SimpleMarkerSymbol ./symbols/Symbol ./symbols/Symbol3D ./symbols/Symbol3DLayer ./symbols/TextSymbol ./symbols/TextSymbol3DLayer ./symbols/WaterSymbol3DLayer ./symbols/WebStyleSymbol ./symbols/callouts/LineCallout3D ./chunks/LineCallout3DBorder ./symbols/support/Symbol3DVerticalOffset".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r,z,E,F,G,N,K,I,J,L,Q){const W={base:z,key:"type",typeMap:{"simple-fill":A,"picture-fill":w,"picture-marker":x,"simple-line":B,"simple-marker":r,text:G,"label-3d":u,"line-3d":m,"mesh-3d":l,"point-3d":C,"polygon-3d":D,"web-style":I,cim:g},errorContext:"symbol"},V={base:z,key:"type",typeMap:{"picture-marker":x,"simple-marker":r,text:G,"web-style":I,cim:g},errorContext:"symbol"};c=c.createTypeReader({types:W});const P={base:z,key:"type",typeMap:{"simple-fill":A,
"picture-fill":w,"picture-marker":x,"simple-line":B,"simple-marker":r,text:G,"line-3d":m,"mesh-3d":l,"point-3d":C,"polygon-3d":D,"web-style":I,cim:g},errorContext:"symbol"},X={base:z,key:"type",typeMap:{text:G,"label-3d":u},errorContext:"symbol"},U={base:z,key:"type",typeMap:{"label-3d":u,"line-3d":m,"mesh-3d":l,"point-3d":C,"polygon-3d":D,"web-style":I},errorContext:"symbol"},Z={base:z,key:"type",typeMap:{"line-3d":m,"mesh-3d":l,"point-3d":C,"polygon-3d":D,"web-style":I},errorContext:"symbol"},oa=
{base:z,key:"type",typeMap:{"label-3d":u},errorContext:"symbol"};b=b.ensureOneOfType(W);a.CIMSymbol=g;a.ExtrudeSymbol3DLayer=f;a.BaseFillSymbol=k;a.FillSymbol3DLayer=q;a.Font=v;a.IconSymbol3DLayer=t;a.LabelSymbol3D=u;a.LineSymbol3D=m;a.LineSymbol3DLayer=p;a.BaseMarkerSymbol=e;a.MeshSymbol3D=l;a.ObjectSymbol3DLayer=h;a.PathSymbol3DLayer=n;a.PictureFillSymbol=w;a.PictureMarkerSymbol=x;a.PointSymbol3D=C;a.PolygonSymbol3D=D;a.SimpleFillSymbol=A;a.SimpleLineSymbol=B;a.SimpleMarkerSymbol=r;a.BaseSymbol=
z;a.BaseSymbol3D=E;a.BaseSymbol3DLayer=F;a.TextSymbol=G;a.TextSymbol3DLayer=N;a.WaterSymbol3DLayer=K;a.WebStyleSymbol=I;a.LineCallout3D=J;a.LineCallout3DBorder=L.LineCallout3DBorder;Object.defineProperty(a,"Symbol3DVerticalOffset",{enumerable:!0,get:function(){return Q.Symbol3DVerticalOffset}});a.ensureType=b;a.isSymbol=function(xa){return xa instanceof z};a.isSymbol2D=function(xa){if(!xa)return!1;switch(xa.type){case "picture-fill":case "picture-marker":case "simple-fill":case "simple-line":case "simple-marker":case "text":case "cim":return!0;
default:return!1}};a.isSymbol3D=function(xa){if(!xa)return!1;switch(xa.type){case "label-3d":case "line-3d":case "mesh-3d":case "point-3d":case "polygon-3d":return!0;default:return!1}};a.readSymbol=c;a.symbolTypes=W;a.symbolTypes3D=U;a.symbolTypesCluster=V;a.symbolTypesLabel=X;a.symbolTypesLabel3D=oa;a.symbolTypesRenderer=P;a.symbolTypesRenderer3D=Z;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/CIMSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/string ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../layers/support/fieldUtils ./Symbol".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l){var h;k=h=function(n){function w(C){C=n.call(this,C)||this;C.data=null;C.type="cim";return C}a._inheritsLoose(w,n);var x=w.prototype;x.readData=function(C,D){return D};x.writeData=function(C,D){if(C)for(const A in C)D[A]=C[A]};x.collectRequiredFields=function(){var C=a._asyncToGenerator(function*(D,A){if("CIMSymbolReference"===this.data.type){var B=this.data.primitiveOverrides;B&&(B=B.map(r=>e.collectArcadeFieldNames(D,A,r.valueExpressionInfo.expression)),yield Promise.all(B))}});
return function(D,A){return C.apply(this,arguments)}}();x.clone=function(){return new h({data:c.clone(this.data)})};x.hash=function(){return g.numericHash(JSON.stringify(this.data)).toString()};return w}(l);b.__decorate([f.property({json:{write:!1}})],k.prototype,"color",void 0);b.__decorate([f.property({json:{write:!0}})],k.prototype,"data",void 0);b.__decorate([u.reader("data",["symbol"])],k.prototype,"readData",null);b.__decorate([p.writer("data")],k.prototype,"writeData",null);b.__decorate([t.enumeration({CIMSymbolReference:"cim"},
{readOnly:!0})],k.prototype,"type",void 0);return k=h=b.__decorate([m.subclass("esri.symbols.CIMSymbol")],k)})},"esri/symbols/Symbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/jsonMap ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t,u,m){g=new g.JSONMap({esriSMS:"simple-marker",
esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let p=0;f=function(e){function l(n){n=e.call(this,n)||this;n.id=`sym${p++}`;n.type=null;return n}a._inheritsLoose(l,e);var h=l.prototype;h.readColor=function(n){return n&&null!=n[0]?[n[0],
n[1],n[2],n[3]/255]:n};h.collectRequiredFields=function(){var n=a._asyncToGenerator(function*(w,x){});return function(w,x){return n.apply(this,arguments)}}();h.hash=function(){return JSON.stringify(this.toJSON())};h.clone=function(){};a._createClass(l,[{key:"color",set:function(n){this._set("color",n)}}]);return l}(f.JSONSupport);b.__decorate([k.property({type:g.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:g.write}}})],f.prototype,"type",void 0);b.__decorate([k.property({type:c,
value:new c([0,0,0,1]),json:{write:{allowNull:!0}}})],f.prototype,"color",null);b.__decorate([u.reader("color")],f.prototype,"readColor",null);return f=b.__decorate([m.subclass("esri.symbols.Symbol")],f)})},"esri/symbols/ExtrudeSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./edges/utils ./support/Symbol3DMaterial".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){var e;f=e=function(l){function h(n){n=l.call(this,n)||this;n.type="extrude";n.size=1;n.material=null;n.castShadows=!0;n.edges=null;return n}a._inheritsLoose(h,l);h.prototype.clone=function(){return new e({edges:this.edges&&this.edges.clone(),enabled:this.enabled,material:c.isSome(this.material)?this.material.clone():null,castShadows:this.castShadows,size:this.size})};return h}(u);b.__decorate([v.enumeration({Extrude:"extrude"},{readOnly:!0})],f.prototype,"type",void 0);
b.__decorate([g.property({type:Number,json:{write:{enabled:!0,isRequired:!0}},nonNullable:!0})],f.prototype,"size",void 0);b.__decorate([g.property({type:p["default"],json:{write:!0}})],f.prototype,"material",void 0);b.__decorate([g.property({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],f.prototype,"castShadows",void 0);b.__decorate([g.property(m.symbol3dEdgesProperty)],f.prototype,"edges",void 0);return f=e=b.__decorate([t.subclass("esri.symbols.ExtrudeSymbol3DLayer")],f)})},"esri/symbols/Symbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer".split(" "),
function(a,b,c,g,f,k,q,v,t,u){c=function(m){function p(e){e=m.call(this,e)||this;e.enabled=!0;e.type=null;return e}a._inheritsLoose(p,m);p.prototype.writeEnabled=function(e,l,h){e||(l[h]=e)};return p}(c.JSONSupport);b.__decorate([g.property({type:Boolean,json:{read:{source:"enable"},write:{target:"enable"}}})],c.prototype,"enabled",void 0);b.__decorate([u.writer("enabled")],c.prototype,"writeEnabled",null);b.__decorate([g.property({type:"icon object line path fill water extrude text".split(" "),readOnly:!0})],
c.prototype,"type",void 0);return c=b.__decorate([t.subclass("esri.symbols.Symbol3DLayer")],c)})},"esri/symbols/edges/utils":function(){define(["exports","./Edges3D","./SketchEdges3D","./SolidEdges3D"],function(a,b,c,g){a.symbol3dEdgesProperty={types:{key:"type",base:b,typeMap:{solid:g,sketch:c}},json:{write:!0}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/edges/Edges3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/lang ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../support/materialUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){g=function(l){function h(w){w=l.call(this,w)||this;w.color=new c([0,0,0,1]);w.extensionLength=0;w.size=k.px2pt(1);return w}a._inheritsLoose(h,l);var n=h.prototype;n.clone=function(){};n.cloneProperties=function(){return{color:f.clone(this.color),size:this.size,extensionLength:this.extensionLength}};return h}(g.JSONSupport);b.__decorate([q.property({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],g.prototype,"type",void 0);b.__decorate([q.property(e.colorAndTransparencyProperty)],
g.prototype,"color",void 0);b.__decorate([q.property({...e.screenSizeProperty,json:{write:{overridePolicy(l){return{enabled:!!l}}}}})],g.prototype,"extensionLength",void 0);b.__decorate([q.property(e.screenSizeProperty)],g.prototype,"size",void 0);return g=b.__decorate([p.subclass("esri.symbols.edges.Edges3D")],g)})},"esri/core/screenUtils":function(){define(["exports"],function(a){function b(g){return g?72*g/96:0}const c=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;a.castRenderScreenPointArray=function(g){return g};
a.castRenderScreenPointArray3=function(g){return g};a.castScreenPointArray=function(g){return g};a.createRenderScreenPoint=function(g=0,f=0){return{x:g,y:f}};a.createRenderScreenPointArray=function(g=0,f=0){return[g,f]};a.createRenderScreenPointArray3=function(g=0,f=0,k=0){return[g,f,k]};a.createScreenPoint=function(g=0,f=0){return{x:g,y:f}};a.createScreenPointArray=function(g=0,f=0){return[g,f]};a.pt2px=function(g){return g?g/72*96:0};a.px2pt=b;a.screenPointArrayToObject=function(g,f){return f?(f.x=
g[0],f.y=g[1],f):{x:g[0],y:g[1]}};a.screenPointObjectToArray=function(g,f){return f?(f[0]=g.x,f[1]=g.y,2<f.length&&(f[2]=0),f):[g.x,g.y]};a.toPt=function(g){if("string"===typeof g){if(c.test(g)){var f=g.match(c),k=Number(f[1]);f=f[3]&&f[3].toLowerCase();g="-"===g.charAt(0);k="px"===f?b(k):k;return g?-k:k}console.warn("screenUtils.toPt: input not recognized!");return null}return g};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/support/materialUtils":function(){define(["exports",
"../../Color","../../core/screenUtils","../../core/accessorSupport/ensureType","../../webdoc/support/opacityUtils"],function(a,b,c,g,f){const k={type:Number,cast:c.toPt,json:{write:!0}},q={type:[Number],cast(v){return null!=v?v:Array.isArray(v)?v.map(c.toPt):null},json:{read:!1,write:!1}};a.colorAndTransparencyProperty={type:b,json:{type:[g.Integer],default:null,read:{source:["color","transparency"],reader:function(v,t){v=null!=t.transparency?f.transparencyToOpacity(t.transparency):1;return(t=t.color)&&
Array.isArray(t)?new b([t[0]||0,t[1]||0,t[2]||0,v]):null}},write:{target:{color:{type:[g.Integer]},transparency:{type:g.Integer}},writer:function(v,t){t.color=v.toJSON().slice(0,3);v=f.opacityToTransparency(v.a);0!==v&&(t.transparency=v)}}}};a.screenSizeProperty=k;a.stipplePatternProperty=q;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/edges/SketchEdges3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Edges3D".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;c=u=function(m){function p(e){e=m.call(this,e)||this;e.type="sketch";return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u(this.cloneProperties())};return p}(t);b.__decorate([q.enumeration({sketch:"sketch"},{readOnly:!0})],c.prototype,"type",void 0);return c=u=b.__decorate([v.subclass("esri.symbols.edges.SketchEdges3D")],c)})},"esri/symbols/edges/SolidEdges3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Edges3D".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;c=u=function(m){function p(e){e=m.call(this,e)||this;e.type="solid";return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u(this.cloneProperties())};return p}(t);b.__decorate([q.enumeration({solid:"solid"},{readOnly:!0})],c.prototype,"type",void 0);return c=u=b.__decorate([v.subclass("esri.symbols.support.SolidEdges3D")],c)})},"esri/symbols/support/Symbol3DMaterial":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./materialUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){var e;a.Symbol3DMaterial=e=function(l){function h(){var n=l.apply(this,arguments)||this;n.color=null;return n}b._inheritsLoose(h,l);h.prototype.clone=function(){return new e({color:f.isSome(this.color)?this.color.clone():null})};return h}(g.JSONSupport);c.__decorate([k.property(p.colorAndTransparencyProperty)],a.Symbol3DMaterial.prototype,"color",void 0);a.Symbol3DMaterial=e=c.__decorate([m.subclass("esri.symbols.support.Symbol3DMaterial")],a.Symbol3DMaterial);a.default=
a.Symbol3DMaterial;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/FillSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass ./SimpleLineSymbol ./Symbol".split(" "),function(a,b,c,g,f,k,q,v,t,u){g=function(m){function p(e){e=m.call(this,e)||this;e.outline=null;e.type=null;return e}a._inheritsLoose(p,
m);p.prototype.hash=function(){return`${this.type}.${this.outline&&this.outline.hash()}`};return p}(u);b.__decorate([c.property({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":t}},json:{default:null,write:!0}})],g.prototype,"outline",void 0);b.__decorate([c.property({type:["simple-fill","picture-fill"],readOnly:!0})],g.prototype,"type",void 0);return g=b.__decorate([v.subclass("esri.symbols.FillSymbol")],g)})},"esri/symbols/SimpleLineSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/jsonMap ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./LineSymbol ./LineSymbolMarker".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){var l;c=new c.JSONMap({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSInsideFrame:"inside-frame",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});p=l=function(h){function n(...x){x=h.call(this,...x)||this;x.type=
"simple-line";x.style="solid";x.cap="round";x.join="round";x.marker=null;x.miterLimit=2;return x}a._inheritsLoose(n,h);var w=n.prototype;w.normalizeCtorArgs=function(x,C,D,A,B,r){if(x&&"string"!==typeof x)return x;const z={};null!=x&&(z.style=x);null!=C&&(z.color=C);null!=D&&(z.width=f.toPt(D));null!=A&&(z.cap=A);null!=B&&(z.join=B);null!=r&&(z.miterLimit=f.toPt(r));return z};w.clone=function(){var x;return new l({color:g.clone(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,
miterLimit:this.miterLimit,marker:null==(x=this.marker)?void 0:x.clone()})};w.hash=function(){var x,C;return`${h.prototype.hash.call(this)}.${null==(x=this.color)?void 0:x.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${null==(C=this.marker)?void 0:C.hash()}`};return n}(p);b.__decorate([u.enumeration({esriSLS:"simple-line"},{readOnly:!0})],p.prototype,"type",void 0);b.__decorate([k.property({type:c.apiValues,json:{read:c.read,write:c.write}})],p.prototype,"style",void 0);b.__decorate([k.property({type:["butt",
"round","square"],json:{write:{overridePolicy:(h,n,w)=>({enabled:"round"!==h&&(null==w||null==w.origin)})}}})],p.prototype,"cap",void 0);b.__decorate([k.property({type:["miter","round","bevel"],json:{write:{overridePolicy:(h,n,w)=>({enabled:"round"!==h&&(null==w||null==w.origin)})}}})],p.prototype,"join",void 0);b.__decorate([k.property({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":e}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"marker",void 0);
b.__decorate([k.property({type:Number,json:{read:!1,write:!1}})],p.prototype,"miterLimit",void 0);return p=l=b.__decorate([m.subclass("esri.symbols.SimpleLineSymbol")],p)})},"esri/symbols/LineSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/screenUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol".split(" "),
function(a,b,c,g,f,k,q,v,t,u){f=function(m){function p(e){e=m.call(this,e)||this;e.type="simple-line";e.width=.75;return e}a._inheritsLoose(p,m);p.prototype.hash=function(){return`${this.type}.${this.width}`};return p}(u);b.__decorate([v.enumeration({esriSLS:"simple-line"},{readOnly:!0})],f.prototype,"type",void 0);b.__decorate([g.property({type:Number,cast:c.toPt,json:{write:!0}})],f.prototype,"width",void 0);return f=b.__decorate([t.subclass("esri.symbols.LineSymbol")],f)})},"esri/symbols/LineSymbolMarker":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){var l;g=l=function(h){function n(x){x=h.call(this,x)||this;x.placement="begin-end";x.type="line-marker";x.style="arrow";return x}a._inheritsLoose(n,h);var w=n.prototype;w.writeStyle=function(x,C,D,A){C[D]="web-map"===(null==A?void 0:A.origin)?"arrow":x};w.readColor=function(x){return x&&null!=x[0]?[x[0],x[1],x[2],x[3]/255]:x};w.writeColor=function(x,C,D,A){"web-map"!==(null==A?void 0:A.origin)&&(C[D]=x)};w.clone=function(){return new l({color:f.clone(this.color),
placement:this.placement,style:this.style})};w.hash=function(){var x;return`${this.placement}.${null==(x=this.color)?void 0:x.hash()}.${this.style}`};a._createClass(n,[{key:"color",set:function(x){this._set("color",x)}}]);return n}(g.JSONSupport);b.__decorate([k.property({type:["begin","end","begin-end"],json:{write:!0}})],g.prototype,"placement",void 0);b.__decorate([u.enumeration({"line-marker":"line-marker"},{readOnly:!0}),k.property({json:{origins:{"web-map":{write:!1}}}})],g.prototype,"type",
void 0);b.__decorate([k.property({type:"arrow circle square diamond cross x".split(" ")})],g.prototype,"style",void 0);b.__decorate([e.writer("style")],g.prototype,"writeStyle",null);b.__decorate([k.property({type:c,value:null,json:{write:{allowNull:!0}}})],g.prototype,"color",null);b.__decorate([m.reader("color")],g.prototype,"readColor",null);b.__decorate([e.writer("color")],g.prototype,"writeColor",null);return g=l=b.__decorate([p.subclass("esri.symbols.LineSymbolMarker")],g)})},"esri/symbols/FillSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./edges/utils ./patterns/StylePattern3D ./patterns/utils ./support/colors ./support/Symbol3DFillMaterial ./support/Symbol3DOutline".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n){var w;f=w=function(x){function C(D){D=x.call(this,D)||this;D.type="fill";D.material=null;D.pattern=null;D.castShadows=!0;D.outline=null;D.edges=null;return D}a._inheritsLoose(C,x);C.prototype.clone=function(){return new w({edges:c.isSome(this.edges)?this.edges.clone():null,enabled:this.enabled,material:c.isSome(this.material)?this.material.clone():null,pattern:c.isSome(this.pattern)?this.pattern.clone():null,castShadows:this.castShadows,outline:c.isSome(this.outline)?
this.outline.clone():null})};C.fromSimpleFillSymbol=function(D){return new w({material:{color:(D.color||l.transparentWhite).clone()},pattern:D.style&&"solid"!==D.style?new p({style:D.style}):null,outline:D.outline?new n["default"]({size:D.outline.width||0,color:(D.outline.color||l.white).clone()}):null})};return C}(u);b.__decorate([v.enumeration({Fill:"fill"},{readOnly:!0})],f.prototype,"type",void 0);b.__decorate([g.property({type:h["default"],json:{write:!0}})],f.prototype,"material",void 0);b.__decorate([g.property(e.symbol3dPatternProperty)],
f.prototype,"pattern",void 0);b.__decorate([g.property({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],f.prototype,"castShadows",void 0);b.__decorate([g.property({type:n["default"],json:{write:!0}})],f.prototype,"outline",void 0);b.__decorate([g.property(m.symbol3dEdgesProperty)],f.prototype,"edges",void 0);return f=w=b.__decorate([t.subclass("esri.symbols.FillSymbol3DLayer")],f)})},"esri/symbols/patterns/StylePattern3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./Pattern3D ./styles".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;g=m=function(p){function e(l){l=p.call(this,l)||this;l.type="style";l.style="solid";return l}a._inheritsLoose(e,p);e.prototype.clone=function(){return new m({style:this.style})};return e}(t);b.__decorate([c.property({type:["style"]})],g.prototype,"type",void 0);b.__decorate([c.property({type:u,json:{read:!0,write:!0}})],g.prototype,"style",void 0);return g=m=b.__decorate([v.subclass("esri.symbols.patterns.StylePattern3D")],g)})},"esri/symbols/patterns/Pattern3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){c=function(u){function m(p){return u.call(this,p)||this}a._inheritsLoose(m,u);m.prototype.clone=function(){};return m}(c.JSONSupport);b.__decorate([g.property({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],c.prototype,"type",void 0);return c=b.__decorate([t.subclass("esri.symbols.patterns.Pattern3D")],c)})},"esri/symbols/patterns/styles":function(){define(function(){return"backward-diagonal cross diagonal-cross forward-diagonal horizontal none solid vertical".split(" ")})},
"esri/symbols/patterns/utils":function(){define(["exports","./Pattern3D","./StylePattern3D"],function(a,b,c){function g(f,k,q){if(!f)return f;switch(f.type){case "style":return k=new c,k.read(f,q),k}}b={types:{key:"type",base:b,typeMap:{style:c}},json:{read:g,write:!0}};a.read=g;a.symbol3dPatternProperty=b;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/support/colors":function(){define(["exports","../../Color"],function(a,b){const c=new b("white"),g=new b("black");b=new b([255,
255,255,0]);a.black=g;a.isBlack=function(f){return 0===f.r&&0===f.g&&0===f.b};a.transparentWhite=b;a.white=c;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/support/Symbol3DFillMaterial":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Symbol3DMaterial".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){var p;a.Symbol3DFillMaterial=p=function(e){function l(){return e.apply(this,arguments)||this}b._inheritsLoose(l,e);l.prototype.clone=function(){return new p({color:g.isSome(this.color)?this.color.clone():null,colorMixMode:this.colorMixMode})};return l}(m["default"]);c.__decorate([t.enumeration({multiply:"multiply",replace:"replace",tint:"tint"})],a.Symbol3DFillMaterial.prototype,"colorMixMode",void 0);a.Symbol3DFillMaterial=p=c.__decorate([u.subclass("esri.symbols.support.Symbol3DFillMaterial")],
a.Symbol3DFillMaterial);a.default=a.Symbol3DFillMaterial;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/support/Symbol3DOutline":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/maybe ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./materialUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l){var h;a.Symbol3DOutline=h=function(n){function w(){var x=n.apply(this,arguments)||this;x.color=new g([0,0,0,1]);x.size=q.px2pt(1);x.stipplePattern=null;x.stippleOffColor=null;return x}b._inheritsLoose(w,n);w.prototype.clone=function(){return new h({color:k.isSome(this.color)?this.color.clone():null,size:this.size,stipplePattern:this.stipplePattern?this.stipplePattern.slice():null,stippleOffColor:this.stippleOffColor?this.stippleOffColor.clone():null})};return w}(f.JSONSupport);
c.__decorate([v.property(l.colorAndTransparencyProperty)],a.Symbol3DOutline.prototype,"color",void 0);c.__decorate([v.property(l.screenSizeProperty)],a.Symbol3DOutline.prototype,"size",void 0);c.__decorate([v.property(l.stipplePatternProperty)],a.Symbol3DOutline.prototype,"stipplePattern",void 0);c.__decorate([v.property({type:g})],a.Symbol3DOutline.prototype,"stippleOffColor",void 0);a.Symbol3DOutline=h=c.__decorate([e.subclass("esri.symbols.support.Symbol3DOutline")],a.Symbol3DOutline);a.default=
a.Symbol3DOutline;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/Font":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/screenUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/decorators/cast ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t,u){var m;c=m=function(p){function e(h){h=p.call(this,h)||this;h.decoration="none";h.family=
"sans-serif";h.size=9;h.style="normal";h.weight="normal";return h}a._inheritsLoose(e,p);var l=e.prototype;l.castSize=function(h){return g.toPt(h)};l.clone=function(){return new m({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})};l.hash=function(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`};return e}(c.JSONSupport);b.__decorate([f.property({type:["underline","line-through","none"],json:{default:"none",write:!0}})],
c.prototype,"decoration",void 0);b.__decorate([f.property({type:String,json:{write:!0}})],c.prototype,"family",void 0);b.__decorate([f.property({type:Number,json:{write:{overridePolicy(p,e,l){return{enabled:!l||!l.textSymbol3D}}}}})],c.prototype,"size",void 0);b.__decorate([q.cast("size")],c.prototype,"castSize",null);b.__decorate([f.property({type:["normal","italic","oblique"],json:{default:"normal",write:!0}})],c.prototype,"style",void 0);b.__decorate([f.property({type:["normal","bold","bolder",
"lighter"],json:{default:"normal",write:!0}})],c.prototype,"weight",void 0);return c=m=b.__decorate([u.subclass("esri.symbols.Font")],c)})},"esri/symbols/IconSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Logger ../core/maybe ../core/urlUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./support/colors ./support/IconSymbol3DLayerResource ./support/materialUtils ./support/Symbol3DAnchorPosition2D ./support/Symbol3DMaterial ./support/Symbol3DOutline".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w){function x(r){const z="width"in r?r.width:r.size,E="height"in r?r.height:r.size,F=C(r.xoffset);r=C(r.yoffset);return(F||r)&&z&&E?{x:-F/z,y:r/E}:null}function C(r){return isFinite(r)?r:0}var D;const A=c.getLogger("esri.symbols.IconSymbol3DLayer");c=D=function(r){function z(E){E=r.call(this,E)||this;E.material=null;E.resource=null;E.type="icon";E.size=12;E.anchor="center";E.anchorPosition=void 0;E.outline=void 0;return E}a._inheritsLoose(z,r);z.prototype.clone=
function(){return new D({anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),enabled:this.enabled,material:g.isSome(this.material)?this.material.clone():null,outline:g.isSome(this.outline)?this.outline.clone():null,resource:this.resource&&this.resource.clone(),size:this.size})};z.fromSimpleMarkerSymbol=function(E){const F=E.color||p.white,G=x(E),N=E.outline&&0<E.outline.width?{size:E.outline.width,color:(E.outline.color||p.white).clone()}:null;var K=D,I=E.size;{E=E.style;
const J=B[E];J?E=J:(A.warn(`${E} cannot be mapped to Icon symbol. Fallback to "circle"`),E="circle")}return new K({size:I,resource:{primitive:E},material:{color:F},outline:N,anchor:G?"relative":void 0,anchorPosition:G})};z.fromPictureMarkerSymbol=function(E){const F=!E.color||p.isBlack(E.color)?p.white:E.color,G=x(E);return new D({size:E.width<=E.height?E.height:E.width,resource:{href:E.url},material:{color:F.clone()},anchor:G?"relative":void 0,anchorPosition:G})};z.fromCIMSymbol=function(E){return new D({resource:{href:f.makeData({mediaType:"application/json",
data:JSON.stringify(E.data)})}})};return z}(m);b.__decorate([k.property({type:n["default"],json:{write:!0}})],c.prototype,"material",void 0);b.__decorate([k.property({type:e["default"],json:{write:!0}})],c.prototype,"resource",void 0);b.__decorate([t.enumeration({Icon:"icon"},{readOnly:!0})],c.prototype,"type",void 0);b.__decorate([k.property(l.screenSizeProperty)],c.prototype,"size",void 0);b.__decorate([t.enumeration({center:"center",left:"left",right:"right",top:"top",bottom:"bottom",topLeft:"top-left",
topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"}),k.property({json:{default:"center"}})],c.prototype,"anchor",void 0);b.__decorate([k.property({type:h.Symbol3DAnchorPosition2D,json:{type:[Number],read:{reader:r=>new h.Symbol3DAnchorPosition2D({x:r[0],y:r[1]})},write:{writer:(r,z)=>{z.anchorPosition=[r.x,r.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],c.prototype,"anchorPosition",void 0);b.__decorate([k.property({type:w["default"],
json:{write:!0}})],c.prototype,"outline",void 0);c=D=b.__decorate([u.subclass("esri.symbols.IconSymbol3DLayer")],c);const B={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};return c})},"esri/symbols/support/IconSymbol3DLayerResource":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/urlUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../chunks/persistableUrlUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h){var n;g=g.strict()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});a.IconSymbol3DLayerResource=n=function(w){function x(D){return w.call(this,D)||this}b._inheritsLoose(x,w);var C=x.prototype;C.readHref=function(D,A,B){return D?h.fromJSON(D,B):A.dataURI};C.writeHref=function(D,A,B,r){D&&(k.isDataProtocol(D)?A.dataURI=D:(A.href=h.toJSON(D,r),k.isAbsolute(A.href)&&(A.href=k.normalize(A.href))))};C.clone=function(){return new n({href:this.href,
primitive:this.primitive})};return x}(f.JSONSupport);c.__decorate([q.property({type:String,json:{write:!0,read:{source:["href","dataURI"]}}})],a.IconSymbol3DLayerResource.prototype,"href",void 0);c.__decorate([p.reader("href")],a.IconSymbol3DLayerResource.prototype,"readHref",null);c.__decorate([l.writer("href",{href:{type:String},dataURI:{type:String}})],a.IconSymbol3DLayerResource.prototype,"writeHref",null);c.__decorate([m.enumeration(g)],a.IconSymbol3DLayerResource.prototype,"primitive",void 0);
a.IconSymbol3DLayerResource=n=c.__decorate([e.subclass("esri.symbols.support.IconSymbol3DLayerResource")],a.IconSymbol3DLayerResource);a.default=a.IconSymbol3DLayerResource;a.defaultPrimitive="circle";Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/support/Symbol3DAnchorPosition2D":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;a.Symbol3DAnchorPosition2D=m=function(p){function e(){var l=p.apply(this,arguments)||this;l.x=0;l.y=0;return l}b._inheritsLoose(e,p);e.prototype.clone=function(){return new m({x:this.x,y:this.y})};return e}(g);c.__decorate([f.property({type:Number})],a.Symbol3DAnchorPosition2D.prototype,"x",void 0);c.__decorate([f.property({type:Number})],a.Symbol3DAnchorPosition2D.prototype,"y",void 0);a.Symbol3DAnchorPosition2D=m=c.__decorate([u.subclass("esri.symbols.support.Symbol3DAnchorPosition2D")],
a.Symbol3DAnchorPosition2D);a.default=a.Symbol3DAnchorPosition2D;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/LabelSymbol3D":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3D ./TextSymbol3DLayer ./callouts/calloutUtils ./support/Symbol3DVerticalOffset".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l){var h;const n=c.ofType({base:null,key:"type",typeMap:{text:p}});c=h=function(w){function x(D){D=w.call(this,D)||this;D.verticalOffset=null;D.callout=null;D.styleOrigin=null;D.symbolLayers=new n;D.type="label-3d";return D}a._inheritsLoose(x,w);var C=x.prototype;C.supportsCallout=function(){return!0};C.hasVisibleCallout=function(){return e.hasVisibleCallout(this)};C.hasVisibleVerticalOffset=function(){return e.hasVisibleVerticalOffset(this)};C.clone=function(){return new h({styleOrigin:g.clone(this.styleOrigin),
symbolLayers:g.clone(this.symbolLayers),thumbnail:g.clone(this.thumbnail),callout:g.clone(this.callout),verticalOffset:g.clone(this.verticalOffset)})};x.fromTextSymbol=function(D){return new h({symbolLayers:[p.fromTextSymbol(D)]})};return x}(m);b.__decorate([f.property({type:l["default"],json:{write:!0}})],c.prototype,"verticalOffset",void 0);b.__decorate([f.property(e.calloutProperty)],c.prototype,"callout",void 0);b.__decorate([f.property({json:{read:!1,write:!1}})],c.prototype,"styleOrigin",void 0);
b.__decorate([f.property({type:n})],c.prototype,"symbolLayers",void 0);b.__decorate([t.enumeration({LabelSymbol3D:"label-3d"},{readOnly:!0})],c.prototype,"type",void 0);return c=h=b.__decorate([u.subclass("esri.symbols.LabelSymbol3D")],c)})},"esri/symbols/Symbol3D":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/collectionUtils ../core/Logger ../core/urlUtils ../core/Warning ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/decorators/cast ../core/jsonMap ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../portal/Portal ../chunks/persistableUrlUtils ./ExtrudeSymbol3DLayer ./FillSymbol3DLayer ./IconSymbol3DLayer ./LineSymbol3DLayer ./ObjectSymbol3DLayer ./PathSymbol3DLayer ./Symbol ./Symbol3DLayer ./TextSymbol3DLayer ./WaterSymbol3DLayer ./support/StyleOrigin ./support/Thumbnail".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r,z,E,F,G,N){const K={icon:C,object:A,line:D,path:B,fill:x,extrude:w,text:E,water:F};t=c.ofType({base:z,key:"type",typeMap:K,errorContext:"symbol-layer"});const I=f.getLogger("esri.symbols.Symbol3D");f=function(J){function L(W){W=J.call(this,W)||this;W.styleOrigin=null;W.thumbnail=null;W.type=null;const V=W.__accessor__&&W.__accessor__.metadatas&&W.__accessor__.metadatas.symbolLayers;W._set("symbolLayers",new (V&&V.type||c));return W}a._inheritsLoose(L,
J);var Q=L.prototype;Q.readStyleOrigin=function(W,V,P){if(W.styleUrl&&W.name)return V=n.fromJSON(W.styleUrl,P),new G({styleUrl:V,name:W.name});if(W.styleName&&W.name)return new G({portal:P&&P.portal||h.getDefault(),styleName:W.styleName,name:W.name});P&&P.messages&&P.messages.push(new q("symbol3d:incomplete-style-origin","Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property",{context:P,definition:W}))};Q.writeStyleOrigin=function(W,V,P,X){W.styleUrl&&W.name?(P=n.toJSON(W.styleUrl,
X),k.isAbsolute(P)&&(P=k.normalize(P)),V.styleOrigin={styleUrl:P,name:W.name}):W.styleName&&W.name&&(W.portal&&X&&X.portal&&!k.hasSamePortal(W.portal.restUrl,X.portal.restUrl)?X&&X.messages&&X.messages.push(new q("symbol:cross-portal","The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.",{symbol:this})):V.styleOrigin={styleName:W.styleName,name:W.name})};Q.normalizeCtorArgs=function(W){return W instanceof z||W&&K[W.type]?{symbolLayers:[W]}:
Array.isArray(W)?{symbolLayers:W}:W};a._createClass(L,[{key:"color",get:function(){return null},set:function(W){I.error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.")}},{key:"symbolLayers",set:function(W){g.referenceSetter(W,this._get("symbolLayers"))}}]);return L}(r);b.__decorate([v.property({json:{read:!1,write:!1}})],f.prototype,"color",null);b.__decorate([v.property({type:t,nonNullable:!0,json:{write:!0}}),u.cast(g.castForReferenceSetter)],
f.prototype,"symbolLayers",null);b.__decorate([v.property({type:G})],f.prototype,"styleOrigin",void 0);b.__decorate([p.reader("styleOrigin")],f.prototype,"readStyleOrigin",null);b.__decorate([l.writer("styleOrigin",{"styleOrigin.styleUrl":{type:String},"styleOrigin.styleName":{type:String},"styleOrigin.name":{type:String}})],f.prototype,"writeStyleOrigin",null);b.__decorate([v.property({type:N["default"],json:{read:!1}})],f.prototype,"thumbnail",void 0);b.__decorate([v.property({type:["point-3d",
"line-3d","polygon-3d","mesh-3d","label-3d"],readOnly:!0})],f.prototype,"type",void 0);return f=b.__decorate([e.subclass("esri.symbols.Symbol3D")],f)})},"esri/symbols/LineSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/maybe ../core/screenUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./support/colors ./support/materialUtils ./support/Symbol3DMaterial".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h){var n;q=n=function(w){function x(C){C=w.call(this,C)||this;C.material=null;C.type="line";C.join="miter";C.cap="butt";C.size=f.px2pt(1);C.stipplePattern=null;C.stippleOffColor=null;return C}a._inheritsLoose(x,w);x.prototype.clone=function(){return new n({enabled:this.enabled,material:g.isSome(this.material)?this.material.clone():null,size:this.size,join:this.join,cap:this.cap,stipplePattern:this.stipplePattern?this.stipplePattern.slice():null,stippleOffColor:this.stippleOffColor?
this.stippleOffColor.clone():null})};x.fromSimpleLineSymbol=function(C){return new n({size:C.width||1,cap:C.cap||"butt",join:C.join||"miter",material:{color:(C.color||e.white).clone()}})};return x}(p);b.__decorate([k.property({type:h["default"],json:{write:!0}})],q.prototype,"material",void 0);b.__decorate([u.enumeration({Line:"line"},{readOnly:!0})],q.prototype,"type",void 0);b.__decorate([k.property({type:["miter","bevel","round"],json:{write:!0,default:"miter"}})],q.prototype,"join",void 0);b.__decorate([k.property({type:["butt",
"square","round"],json:{write:!0,default:"butt"}})],q.prototype,"cap",void 0);b.__decorate([k.property(l.screenSizeProperty)],q.prototype,"size",void 0);b.__decorate([k.property(l.stipplePatternProperty)],q.prototype,"stipplePattern",void 0);b.__decorate([k.property({type:c})],q.prototype,"stippleOffColor",void 0);return q=n=b.__decorate([m.subclass("esri.symbols.LineSymbol3DLayer")],q)})},"esri/symbols/ObjectSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./support/ObjectSymbol3DLayerResource ./support/Symbol3DAnchorPosition3D ./support/Symbol3DMaterial".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){var l;f=l=function(h){function n(w){w=h.call(this,w)||this;w.material=null;w.castShadows=!0;w.resource=null;w.type="object";w.width=void 0;w.height=void 0;w.depth=void 0;w.anchor=void 0;w.anchorPosition=void 0;w.heading=void 0;w.tilt=void 0;w.roll=void 0;return w}a._inheritsLoose(n,h);n.prototype.clone=function(){return new l({heading:this.heading,tilt:this.tilt,roll:this.roll,anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),depth:this.depth,
enabled:this.enabled,height:this.height,material:c.isSome(this.material)?this.material.clone():null,castShadows:this.castShadows,resource:this.resource&&this.resource.clone(),width:this.width})};a._createClass(n,[{key:"isPrimitive",get:function(){return!this.resource||"string"!==typeof this.resource.href}}]);return n}(u);b.__decorate([g.property({type:e["default"],json:{write:!0}})],f.prototype,"material",void 0);b.__decorate([g.property({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],
f.prototype,"castShadows",void 0);b.__decorate([g.property({type:m["default"],json:{write:!0}})],f.prototype,"resource",void 0);b.__decorate([v.enumeration({Object:"object"},{readOnly:!0})],f.prototype,"type",void 0);b.__decorate([g.property({type:Number,json:{write:!0}})],f.prototype,"width",void 0);b.__decorate([g.property({type:Number,json:{write:!0}})],f.prototype,"height",void 0);b.__decorate([g.property({type:Number,json:{write:!0}})],f.prototype,"depth",void 0);b.__decorate([v.enumeration({center:"center",
top:"top",bottom:"bottom",origin:"origin",relative:"relative"}),g.property({json:{default:"origin"}})],f.prototype,"anchor",void 0);b.__decorate([g.property({type:p.Symbol3DAnchorPosition3D,json:{type:[Number],read:{reader:h=>new p.Symbol3DAnchorPosition3D({x:h[0],y:h[1],z:h[2]})},write:{writer:(h,n)=>{n.anchorPosition=[h.x,h.y,h.z]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],f.prototype,"anchorPosition",void 0);b.__decorate([g.property({type:Number,json:{write:!0}})],f.prototype,
"heading",void 0);b.__decorate([g.property({type:Number,json:{write:!0}})],f.prototype,"tilt",void 0);b.__decorate([g.property({type:Number,json:{write:!0}})],f.prototype,"roll",void 0);b.__decorate([g.property({readOnly:!0})],f.prototype,"isPrimitive",null);return f=l=b.__decorate([t.subclass("esri.symbols.ObjectSymbol3DLayer")],f)})},"esri/symbols/support/ObjectSymbol3DLayerResource":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ../../chunks/persistableUrlUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){var e;g=g.strict()({sphere:"sphere",cylinder:"cylinder",cube:"cube",cone:"cone",diamond:"diamond",tetrahedron:"tetrahedron",invertedCone:"inverted-cone"});a.ObjectSymbol3DLayerResource=e=function(l){function h(){return l.apply(this,arguments)||this}b._inheritsLoose(h,l);h.prototype.clone=function(){return new e({href:this.href,primitive:this.primitive})};return h}(f.JSONSupport);c.__decorate([k.property({type:String,json:{read:p.read,write:p.write}})],a.ObjectSymbol3DLayerResource.prototype,
"href",void 0);c.__decorate([u.enumeration(g)],a.ObjectSymbol3DLayerResource.prototype,"primitive",void 0);a.ObjectSymbol3DLayerResource=e=c.__decorate([m.subclass("esri.symbols.support.ObjectSymbol3DLayerResource")],a.ObjectSymbol3DLayerResource);a.default=a.ObjectSymbol3DLayerResource;a.defaultPrimitive="sphere";Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/support/Symbol3DAnchorPosition3D":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;a.Symbol3DAnchorPosition3D=m=function(p){function e(){var l=p.apply(this,arguments)||this;l.x=0;l.y=0;l.z=0;return l}b._inheritsLoose(e,p);e.prototype.clone=function(){return new m({x:this.x,y:this.y,z:this.z})};return e}(g);c.__decorate([f.property({type:Number})],a.Symbol3DAnchorPosition3D.prototype,"x",void 0);c.__decorate([f.property({type:Number})],a.Symbol3DAnchorPosition3D.prototype,"y",void 0);c.__decorate([f.property({type:Number})],a.Symbol3DAnchorPosition3D.prototype,
"z",void 0);a.Symbol3DAnchorPosition3D=m=c.__decorate([u.subclass("esri.symbols.support.Symbol3DAnchorPosition3D")],a.Symbol3DAnchorPosition3D);a.default=a.Symbol3DAnchorPosition3D;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/PathSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./support/Symbol3DMaterial".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){var e;f=e=function(l){function h(w){w=l.call(this,w)||this;w.material=null;w.castShadows=!0;w.type="path";w.profile="circle";w.join="miter";w.cap="butt";w.width=void 0;w.height=void 0;w.anchor="center";w.profileRotation="all";return w}a._inheritsLoose(h,l);var n=h.prototype;n.readSize=function(w,x){return x.height||x.width?w:x.size};n.clone=function(){return new e({enabled:this.enabled,material:c.isSome(this.material)?this.material.clone():null,castShadows:this.castShadows,
size:this.size,profile:this.profile,join:this.join,cap:this.cap,width:this.width,height:this.height,profileRotation:this.profileRotation,anchor:this.anchor})};a._createClass(h,[{key:"size",get:function(){if(this.width&&this.height){if(this.width===this.height)return this.width}else{if(this.width)return this.width;if(this.height)return this.height}},set:function(w){this.height=this.width=w}}]);return h}(m);b.__decorate([g.property({type:p["default"],json:{write:!0}})],f.prototype,"material",void 0);
b.__decorate([g.property({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],f.prototype,"castShadows",void 0);b.__decorate([v.enumeration({Path:"path"},{readOnly:!0})],f.prototype,"type",void 0);b.__decorate([g.property({type:Number})],f.prototype,"size",null);b.__decorate([t.reader("size")],f.prototype,"readSize",null);b.__decorate([g.property({type:["circle","quad"],json:{write:!0,default:"circle"}})],f.prototype,"profile",void 0);b.__decorate([g.property({type:["miter","bevel","round"],
json:{write:!0,default:"miter"}})],f.prototype,"join",void 0);b.__decorate([g.property({type:["none","butt","square","round"],json:{write:!0,default:"butt"}})],f.prototype,"cap",void 0);b.__decorate([g.property({type:Number,json:{write:{enabled:!0,target:{width:{type:Number},size:{type:Number}}}}})],f.prototype,"width",void 0);b.__decorate([g.property({type:Number,json:{write:!0}})],f.prototype,"height",void 0);b.__decorate([g.property({type:["center","bottom","top"],json:{write:!0,default:"center"}})],
f.prototype,"anchor",void 0);b.__decorate([g.property({type:["heading","all"],json:{write:!0,default:"all"}})],f.prototype,"profileRotation",void 0);return f=e=b.__decorate([u.subclass("esri.symbols.PathSymbol3DLayer")],f)})},"esri/symbols/TextSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/maybe ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Font ./Symbol3DLayer ./support/materialUtils ./support/Symbol3DHalo ./support/Symbol3DMaterial".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n){var w;k=w=function(x){function C(A){A=x.call(this,A)||this;A._userSize=void 0;A.halo=null;A.material=null;A.text=void 0;A.type="text";return A}a._inheritsLoose(C,x);var D=C.prototype;D.writeFont=function(A,B,r,z){B.font=A.write({},{...z,textSymbol3D:!0});delete B.font.size};D.clone=function(){return new w({enabled:this.enabled,font:this.font&&c.clone(this.font),halo:this.halo&&c.clone(this.halo),material:g.isSome(this.material)?this.material.clone():null,
size:this.size,text:this.text})};C.fromTextSymbol=function(A){var B=A.haloColor;var r=A.haloSize;B=B&&0<r?{color:c.clone(B),size:r}:null;r=A.font?A.font.clone():new p;return new w({size:r.size,font:r,halo:B,material:A.color?{color:A.color.clone()}:null,text:A.text})};a._createClass(C,[{key:"font",get:function(){return this._get("font")||null},set:function(A){A&&this._userSize&&(A.size=this._userSize);this._set("font",A)}},{key:"size",get:function(){return null!=this._userSize?this._userSize:this.font&&
null!=this.font.size?this.font.size:9},set:function(A){this._userSize=A;this.font&&(this.font.size=this._userSize);this.notifyChange("size")}}]);return C}(e);b.__decorate([f.property({type:p,json:{write:!0}})],k.prototype,"font",null);b.__decorate([m.writer("font")],k.prototype,"writeFont",null);b.__decorate([f.property({type:h["default"],json:{write:!0}})],k.prototype,"halo",void 0);b.__decorate([f.property({type:n["default"],json:{write:!0}})],k.prototype,"material",void 0);b.__decorate([f.property(l.screenSizeProperty),
f.property()],k.prototype,"size",null);b.__decorate([f.property({type:String,json:{write:!0}})],k.prototype,"text",void 0);b.__decorate([t.enumeration({Text:"text"},{readOnly:!0})],k.prototype,"type",void 0);return k=w=b.__decorate([u.subclass("esri.symbols.TextSymbol3DLayer")],k)})},"esri/symbols/support/Symbol3DHalo":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./materialUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){var l;a.Symbol3DHalo=l=function(h){function n(){var w=h.apply(this,arguments)||this;w.color=new g([0,0,0,1]);w.size=0;return w}b._inheritsLoose(n,h);n.prototype.clone=function(){return new l({color:k.clone(this.color),size:this.size})};return n}(f.JSONSupport);c.__decorate([q.property(e.colorAndTransparencyProperty)],a.Symbol3DHalo.prototype,"color",void 0);c.__decorate([q.property(e.screenSizeProperty)],a.Symbol3DHalo.prototype,"size",void 0);a.Symbol3DHalo=l=
c.__decorate([p.subclass("esri.symbols.support.Symbol3DHalo")],a.Symbol3DHalo);a.default=a.Symbol3DHalo;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/WaterSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){var p;q=p=function(l){function h(n){n=l.call(this,n)||this;n.color=e.clone();n.type="water";n.waterbodySize="medium";n.waveDirection=null;n.waveStrength="moderate";return n}a._inheritsLoose(h,l);h.prototype.clone=function(){return new p({color:g.clone(this.color),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength})};return h}(m);b.__decorate([f.property({type:c,nonNullable:!0,json:{type:[k.Integer],write:(l,h,n)=>h[n]=l.toArray(1),
default:()=>e.clone(),defaultEquals:l=>l.toCss(!0)===e.toCss(!0)}})],q.prototype,"color",void 0);b.__decorate([t.enumeration({Water:"water"},{readOnly:!0})],q.prototype,"type",void 0);b.__decorate([f.property({type:["small","medium","large"],json:{write:!0,default:"medium"}})],q.prototype,"waterbodySize",void 0);b.__decorate([f.property({type:Number,json:{write:!0,default:null}})],q.prototype,"waveDirection",void 0);b.__decorate([f.property({type:["calm","rippled","slight","moderate"],json:{write:!0,
default:"moderate"}})],q.prototype,"waveStrength",void 0);q=p=b.__decorate([u.subclass("esri.symbols.WaterSymbol3DLayer")],q);const e=new c([0,119,190]);return q})},"esri/symbols/support/StyleOrigin":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../../portal/Portal".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;c=m=function(p){function e(){var l=p.apply(this,arguments)||this;l.portal=null;return l}a._inheritsLoose(e,p);e.prototype.clone=function(){return new m({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})};return e}(c);b.__decorate([g.property({type:String})],c.prototype,"name",void 0);b.__decorate([g.property({type:String})],c.prototype,"styleUrl",void 0);b.__decorate([g.property({type:String})],c.prototype,"styleName",void 0);b.__decorate([g.property({type:u})],
c.prototype,"portal",void 0);return c=m=b.__decorate([t.subclass("esri.symbols.support.StyleOrigin")],c)})},"esri/symbols/support/Thumbnail":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t,u){var m;a.Thumbnail=m=function(p){function e(){return p.apply(this,
arguments)||this}b._inheritsLoose(e,p);e.prototype.clone=function(){return new m({url:this.url})};return e}(g);c.__decorate([f.property({type:String})],a.Thumbnail.prototype,"url",void 0);a.Thumbnail=m=c.__decorate([u.subclass("esri.symbols.support.Thumbnail")],a.Thumbnail);a.default=a.Thumbnail;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/callouts/calloutUtils":function(){define(["exports","./Callout3D","./LineCallout3D"],function(a,b,c){function g(f){if(!f)return!1;f=f.verticalOffset;
return!f||0>=f.screenLength||0>=f.maxWorldLength?!1:!0}a.calloutProperty={types:{key:"type",base:b,typeMap:{line:c}},json:{write:!0}};a.hasVisibleCallout=function(f){if(!f||!f.supportsCallout||!f.supportsCallout())return!1;const k=f.callout;return k&&k.visible?g(f)?!0:!1:!1};a.hasVisibleVerticalOffset=g;a.isCalloutSupport=function(f){return"point-3d"===f.type||"label-3d"===f.type};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/callouts/Callout3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){c=function(u){function m(p){p=u.call(this,p)||this;p.visible=!0;return p}a._inheritsLoose(m,u);m.prototype.clone=function(){};return m}(c.JSONSupport);b.__decorate([g.property({type:["line"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],c.prototype,"type",void 0);b.__decorate([g.property({readOnly:!0})],c.prototype,"visible",void 0);return c=b.__decorate([t.subclass("esri.symbols.callouts.Callout3D")],c)})},"esri/symbols/callouts/LineCallout3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/lang ../../core/maybe ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Callout3D ../../chunks/LineCallout3DBorder ../support/materialUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h){var n;v=n=function(w){function x(C){C=w.call(this,C)||this;C.type="line";C.color=new c([0,0,0,1]);C.size=k.px2pt(1);C.border=null;return C}a._inheritsLoose(x,w);x.prototype.clone=function(){return new n({color:g.clone(this.color),size:this.size,border:g.clone(this.border)})};a._createClass(x,[{key:"visible",get:function(){return 0<this.size&&f.isSome(this.color)&&0<this.color.a}}]);return x}(e);b.__decorate([m.enumeration({line:"line"},{readOnly:!0})],v.prototype,
"type",void 0);b.__decorate([q.property(h.colorAndTransparencyProperty)],v.prototype,"color",void 0);b.__decorate([q.property(h.screenSizeProperty)],v.prototype,"size",void 0);b.__decorate([q.property({type:l.LineCallout3DBorder$1,json:{write:!0}})],v.prototype,"border",void 0);b.__decorate([q.property({readOnly:!0})],v.prototype,"visible",null);return v=n=b.__decorate([p.subclass("esri.symbols.callouts.LineCallout3D")],v)})},"esri/chunks/LineCallout3DBorder":function(){define("exports ./_rollupPluginBabelHelpers ./tslib.es6 ../Color ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass ../symbols/support/materialUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){var l;a.LineCallout3DBorder$2=l=function(h){function n(){var w=h.apply(this,arguments)||this;w.color=new g("white");return w}b._inheritsLoose(n,h);n.prototype.clone=function(){return new l({color:k.clone(this.color)})};return n}(f.JSONSupport);c.__decorate([q.property(e.colorAndTransparencyProperty)],a.LineCallout3DBorder$2.prototype,"color",void 0);a.LineCallout3DBorder$2=l=c.__decorate([p.subclass("esri.symbols.callouts.LineCallout3DBorder")],a.LineCallout3DBorder$2);
c=a.LineCallout3DBorder$2;f=Object.freeze({__proto__:null,get LineCallout3DBorder(){return a.LineCallout3DBorder$2},"default":c});a.LineCallout3DBorder=f;a.LineCallout3DBorder$1=c})},"esri/symbols/support/Symbol3DVerticalOffset":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./materialUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){var p;a.Symbol3DVerticalOffset=p=function(e){function l(){var h=e.apply(this,arguments)||this;h.screenLength=0;h.minWorldLength=0;return h}b._inheritsLoose(l,e);l.prototype.clone=function(){return new p({screenLength:this.screenLength,minWorldLength:this.minWorldLength,maxWorldLength:this.maxWorldLength})};return l}(g.JSONSupport);c.__decorate([f.property(m.screenSizeProperty)],a.Symbol3DVerticalOffset.prototype,"screenLength",void 0);c.__decorate([f.property({type:Number,
json:{write:!0,default:0}})],a.Symbol3DVerticalOffset.prototype,"minWorldLength",void 0);c.__decorate([f.property({type:Number,json:{write:!0}})],a.Symbol3DVerticalOffset.prototype,"maxWorldLength",void 0);a.Symbol3DVerticalOffset=p=c.__decorate([u.subclass("esri.symbols.support.Symbol3DVerticalOffset")],a.Symbol3DVerticalOffset);a.default=a.Symbol3DVerticalOffset;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/LineSymbol3D":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./LineSymbol3DLayer ./PathSymbol3DLayer ./Symbol3D".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){var l;const h=c.ofType({base:null,key:"type",typeMap:{line:m,path:p}});c=c.ofType({base:null,key:"type",typeMap:{line:m,path:p}});e=l=function(n){function w(x){x=n.call(this,x)||this;x.symbolLayers=new h;x.type="line-3d";return x}a._inheritsLoose(w,n);w.prototype.clone=function(){return new l({styleOrigin:g.clone(this.styleOrigin),symbolLayers:g.clone(this.symbolLayers),thumbnail:g.clone(this.thumbnail)})};w.fromSimpleLineSymbol=function(x){return new l({symbolLayers:[m.fromSimpleLineSymbol(x)]})};
return w}(e);b.__decorate([f.property({type:h,json:{type:c}})],e.prototype,"symbolLayers",void 0);b.__decorate([t.enumeration({LineSymbol3D:"line-3d"},{readOnly:!0})],e.prototype,"type",void 0);return e=l=b.__decorate([u.subclass("esri.symbols.LineSymbol3D")],e)})},"esri/symbols/MarkerSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/screenUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass ./Symbol".split(" "),
function(a,b,c,g,f,k,q,v,t,u){f=function(m){function p(e){e=m.call(this,e)||this;e.angle=0;e.type=null;e.xoffset=0;e.yoffset=0;e.size=9;return e}a._inheritsLoose(p,m);p.prototype.hash=function(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`};return p}(u);b.__decorate([g.property({type:Number,json:{read:m=>m&&-1*m,write:(m,p)=>p.angle=m&&-1*m}})],f.prototype,"angle",void 0);b.__decorate([g.property({type:["simple-marker","picture-marker"],readOnly:!0})],f.prototype,
"type",void 0);b.__decorate([g.property({type:Number,cast:c.toPt,json:{write:!0}})],f.prototype,"xoffset",void 0);b.__decorate([g.property({type:Number,cast:c.toPt,json:{write:!0}})],f.prototype,"yoffset",void 0);b.__decorate([g.property({type:Number,cast:m=>"auto"===m?m:c.toPt(m),json:{write:!0}})],f.prototype,"size",void 0);return f=b.__decorate([t.subclass("esri.symbols.MarkerSymbol")],f)})},"esri/symbols/MeshSymbol3D":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./FillSymbol3DLayer ./Symbol3D".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){var e;const l=c.ofType({base:null,key:"type",typeMap:{fill:m}});c=e=function(h){function n(w){w=h.call(this,w)||this;w.symbolLayers=new l;w.type="mesh-3d";return w}a._inheritsLoose(n,h);n.prototype.clone=function(){return new e({styleOrigin:g.clone(this.styleOrigin),symbolLayers:g.clone(this.symbolLayers),thumbnail:g.clone(this.thumbnail)})};return n}(p);b.__decorate([f.property({type:l})],c.prototype,"symbolLayers",void 0);b.__decorate([t.enumeration({MeshSymbol3D:"mesh-3d"},
{readOnly:!0})],c.prototype,"type",void 0);return c=e=b.__decorate([u.subclass("esri.symbols.MeshSymbol3D")],c)})},"esri/symbols/PictureFillSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./FillSymbol ./support/urlUtils".split(" "),function(a,
b,c,g,f,k,q,v,t,u,m,p){var e;k=e=function(l){function h(...w){w=l.call(this,...w)||this;w.type="picture-fill";w.url=null;w.xscale=1;w.yscale=1;w.width=12;w.height=12;w.xoffset=0;w.yoffset=0;w.source=null;return w}a._inheritsLoose(h,l);var n=h.prototype;n.normalizeCtorArgs=function(w,x,C,D){if(w&&"string"!==typeof w&&null==w.imageData)return w;const A={};w&&(A.url=w);x&&(A.outline=x);null!=C&&(A.width=g.toPt(C));null!=D&&(A.height=g.toPt(D));return A};n.clone=function(){const w=new e({color:c.clone(this.color),
height:this.height,outline:this.outline&&this.outline.clone(),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale});w._set("source",c.clone(this.source));return w};n.hash=function(){var w;return`${l.prototype.hash.call(this)}.${null==(w=this.color)?void 0:w.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`};return h}(m);b.__decorate([t.enumeration({esriPFS:"picture-fill"},{readOnly:!0})],
k.prototype,"type",void 0);b.__decorate([f.property(p.urlPropertyDefinition)],k.prototype,"url",void 0);b.__decorate([f.property({type:Number,json:{write:!0}})],k.prototype,"xscale",void 0);b.__decorate([f.property({type:Number,json:{write:!0}})],k.prototype,"yscale",void 0);b.__decorate([f.property({type:Number,cast:g.toPt,json:{write:!0}})],k.prototype,"width",void 0);b.__decorate([f.property({type:Number,cast:g.toPt,json:{write:!0}})],k.prototype,"height",void 0);b.__decorate([f.property({type:Number,
cast:g.toPt,json:{write:!0}})],k.prototype,"xoffset",void 0);b.__decorate([f.property({type:Number,cast:g.toPt,json:{write:!0}})],k.prototype,"yoffset",void 0);b.__decorate([f.property(p.sourcePropertyDefinition)],k.prototype,"source",void 0);return k=e=b.__decorate([u.subclass("esri.symbols.PictureFillSymbol")],k)})},"esri/symbols/support/urlUtils":function(){define(["exports","../../core/urlUtils","../../chunks/persistableUrlUtils"],function(a,b,c){function g(v,t,u){return t.imageData?b.makeData({mediaType:t.contentType||
"image/png",isBase64:!0,data:t.imageData}):f(t.url,u)}function f(v,t){return!t||"service"!==t.origin&&"portal-item"!==t.origin||!t.layer||"feature"!==t.layer.type&&"stream"!==t.layer.type||b.isAbsolute(v)||!t.layer.parsedUrl?c.fromJSON(v,t):b.join(t.layer.parsedUrl.path,"images",v)}function k(v,t,u,m){b.isDataProtocol(v)?(v=b.dataComponents(v),t.contentType=v.mediaType,t.imageData=v.data,u&&u.imageData===t.imageData&&u.url&&c.write(u.url,t,"url",m)):c.write(v,t,"url",m)}const q={json:{read:{source:["imageData",
"url"],reader:g},write:{writer(v,t,u,m){k(v,t,this.source,m)}}}};a.read=f;a.readImageDataOrUrl=g;a.sourcePropertyDefinition={readOnly:!0,json:{read:{source:["imageData","url"],reader(v,t,u){v={};t.imageData&&(v.imageData=t.imageData);t.contentType&&(v.contentType=t.contentType);t.url&&(v.url=f(t.url,u));return v}}}};a.urlPropertyDefinition=q;a.writeImageDataAndUrl=k;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/PictureMarkerSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ./MarkerSymbol ./support/urlUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){var l;k=l=function(h){function n(...x){x=h.call(this,...x)||this;x.color=null;x.type="picture-marker";x.url=null;x.source=null;x.height=12;x.width=12;x.size=null;return x}a._inheritsLoose(n,h);var w=n.prototype;w.normalizeCtorArgs=function(x,C,D){if(x&&"string"!==typeof x&&null==x.imageData)return x;const A={};x&&(A.url=x);null!=C&&(A.width=g.toPt(C));null!=D&&(A.height=g.toPt(D));return A};w.readHeight=function(x,C){return C.size||x};w.readWidth=function(x,C){return C.size||
x};w.clone=function(){const x=new l({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});x._set("source",c.clone(this.source));return x};w.hash=function(){return`${h.prototype.hash.call(this)}.${this.height}.${this.url}.${this.width}`};return n}(p);b.__decorate([f.property({json:{write:!1}})],k.prototype,"color",void 0);b.__decorate([t.enumeration({esriPMS:"picture-marker"},{readOnly:!0})],k.prototype,"type",void 0);b.__decorate([f.property(e.urlPropertyDefinition)],
k.prototype,"url",void 0);b.__decorate([f.property(e.sourcePropertyDefinition)],k.prototype,"source",void 0);b.__decorate([f.property({type:Number,cast:g.toPt,json:{write:!0}})],k.prototype,"height",void 0);b.__decorate([u.reader("height",["height","size"])],k.prototype,"readHeight",null);b.__decorate([f.property({type:Number,cast:g.toPt,json:{write:!0}})],k.prototype,"width",void 0);b.__decorate([f.property({json:{write:!1}})],k.prototype,"size",void 0);return k=l=b.__decorate([m.subclass("esri.symbols.PictureMarkerSymbol")],
k)})},"esri/symbols/PointSymbol3D":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/Error ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./IconSymbol3DLayer ./ObjectSymbol3DLayer ./Symbol3D ./TextSymbol3DLayer ./callouts/calloutUtils ./support/Symbol3DVerticalOffset".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x){var C;const D=c.ofType({base:null,key:"type",typeMap:{icon:e,object:l,text:n}});c=c.ofType({base:null,key:"type",typeMap:{icon:e,object:l}});h=C=function(A){function B(z){z=A.call(this,z)||this;z.verticalOffset=null;z.callout=null;z.symbolLayers=new D;z.type="point-3d";return z}a._inheritsLoose(B,A);var r=B.prototype;r.writeSymbolLayers=function(z,E,F,G){const N=z.filter(K=>"text"!==K.type);G&&G.messages&&N.length<z.length&&(z=z.find(K=>"text"===K.type),
G.messages.push(new g("symbol-layer:unsupported","Symbol layers of type 'text' cannot be persisted in PointSymbol3D",{symbolLayer:z})));E[F]=N.map(K=>K.write({},G)).toArray()};r.supportsCallout=function(){if(1>(this.symbolLayers?this.symbolLayers.length:0))return!1;for(const z of this.symbolLayers.items)switch(z.type){case "icon":case "text":case "object":continue;default:return!1}return!0};r.hasVisibleCallout=function(){return w.hasVisibleCallout(this)};r.hasVisibleVerticalOffset=function(){return w.hasVisibleVerticalOffset(this)};
r.clone=function(){return new C({verticalOffset:f.clone(this.verticalOffset),callout:f.clone(this.callout),styleOrigin:f.clone(this.styleOrigin),symbolLayers:f.clone(this.symbolLayers),thumbnail:f.clone(this.thumbnail)})};B.fromSimpleMarkerSymbol=function(z){return new C({symbolLayers:[e.fromSimpleMarkerSymbol(z)]})};B.fromPictureMarkerSymbol=function(z){return new C({symbolLayers:[e.fromPictureMarkerSymbol(z)]})};B.fromCIMSymbol=function(z){if(z.data&&z.data.symbol){const E=z.data.symbol;if("CIMPointSymbol"===
E.type&&E.callout)return new C({symbolLayers:[e.fromCIMSymbol(z)],callout:{type:"line",size:.5,color:[0,0,0]},verticalOffset:{screenLength:40}})}return new C({symbolLayers:[e.fromCIMSymbol(z)]})};B.fromTextSymbol=function(z){return new C({symbolLayers:[n.fromTextSymbol(z)]})};return B}(h);b.__decorate([k.property({type:x["default"],json:{write:!0}})],h.prototype,"verticalOffset",void 0);b.__decorate([k.property(w.calloutProperty)],h.prototype,"callout",void 0);b.__decorate([k.property({type:D,json:{type:c,
origins:{"web-scene":{type:c}}}})],h.prototype,"symbolLayers",void 0);b.__decorate([p.writer("web-scene","symbolLayers")],h.prototype,"writeSymbolLayers",null);b.__decorate([u.enumeration({PointSymbol3D:"point-3d"},{readOnly:!0})],h.prototype,"type",void 0);return h=C=b.__decorate([m.subclass("esri.symbols.PointSymbol3D")],h)})},"esri/symbols/PolygonSymbol3D":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/Error ../core/lang ../core/maybe ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./ExtrudeSymbol3DLayer ./FillSymbol3DLayer ./IconSymbol3DLayer ./LineSymbol3DLayer ./ObjectSymbol3DLayer ./Symbol3D ./TextSymbol3DLayer ./WaterSymbol3DLayer".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A){var B;const r=c.ofType({base:null,key:"type",typeMap:{extrude:l,fill:h,icon:n,line:w,object:x,text:D,water:A}});c=c.ofType({base:null,key:"type",typeMap:{extrude:l,fill:h,icon:n,line:w,object:x,water:A}});C=B=function(z){function E(G){G=z.call(this,G)||this;G.symbolLayers=new r;G.type="polygon-3d";return G}a._inheritsLoose(E,z);var F=E.prototype;F.writeSymbolLayers=function(G,N,K,I){const J=G.filter(L=>"text"!==L.type);I&&I.messages&&J.length<G.length&&
(G=G.find(L=>"text"===L.type),I.messages.push(new g("symbol-layer:unsupported","Symbol layers of type 'text' cannot be persisted in PolygonSymbol3D",{symbolLayer:G})));N[K]=J.map(L=>L.write({},I)).toArray()};F.clone=function(){return new B({styleOrigin:f.clone(this.styleOrigin),symbolLayers:f.clone(this.symbolLayers),thumbnail:f.clone(this.thumbnail)})};E.fromJSON=function(G){const N=new B;N.read(G);if(2===N.symbolLayers.length&&"fill"===N.symbolLayers.getItemAt(0).type&&"line"===N.symbolLayers.getItemAt(1).type){const K=
N.symbolLayers.getItemAt(0),I=N.symbolLayers.getItemAt(1);!I.enabled||G.symbolLayers&&G.symbolLayers[1]&&!1===G.symbolLayers[1].enable||(K.outline={size:I.size,color:k.isSome(I.material)?I.material.color:null});N.symbolLayers.removeAt(1)}return N};E.fromSimpleFillSymbol=function(G){return new B({symbolLayers:[h.fromSimpleFillSymbol(G)]})};return E}(C);b.__decorate([q.property({type:r,json:{type:c}})],C.prototype,"symbolLayers",void 0);b.__decorate([e.writer("web-scene","symbolLayers")],C.prototype,
"writeSymbolLayers",null);b.__decorate([m.enumeration({PolygonSymbol3D:"polygon-3d"},{readOnly:!0})],C.prototype,"type",void 0);return C=B=b.__decorate([p.subclass("esri.symbols.PolygonSymbol3D")],C)})},"esri/symbols/SimpleFillSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/jsonMap ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./FillSymbol ./SimpleLineSymbol".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){var l;g=new g.JSONMap({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});p=l=function(h){function n(...x){x=h.call(this,...x)||this;x.color=new c([0,0,0,.25]);x.outline=new e;x.type="simple-fill";x.style="solid";return x}a._inheritsLoose(n,h);var w=n.prototype;w.normalizeCtorArgs=
function(x,C,D){if(x&&"string"!==typeof x)return x;const A={};x&&(A.style=x);C&&(A.outline=C);D&&(A.color=D);return A};w.clone=function(){return new l({color:f.clone(this.color),outline:this.outline&&this.outline.clone(),style:this.style})};w.hash=function(){return`${h.prototype.hash.call(this)}${this.style}.${this.color&&this.color.hash()}`};return n}(p);b.__decorate([k.property()],p.prototype,"color",void 0);b.__decorate([k.property()],p.prototype,"outline",void 0);b.__decorate([u.enumeration({esriSFS:"simple-fill"},
{readOnly:!0})],p.prototype,"type",void 0);b.__decorate([k.property({type:g.apiValues,json:{read:g.read,write:g.write}})],p.prototype,"style",void 0);return p=l=b.__decorate([m.subclass("esri.symbols.SimpleFillSymbol")],p)})},"esri/symbols/SimpleMarkerSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/jsonMap ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./MarkerSymbol ./SimpleLineSymbol".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h){var n;g=new g.JSONMap({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});l=n=function(w){function x(...D){D=w.call(this,...D)||this;D.color=new c([255,255,255,.25]);D.type="simple-marker";D.size=12;D.style="circle";D.outline=new h;return D}a._inheritsLoose(x,w);var C=x.prototype;C.normalizeCtorArgs=function(D,A,B,r){if(D&&"string"!==typeof D)return D;const z=
{};D&&(z.style=D);null!=A&&(z.size=k.toPt(A));B&&(z.outline=B);r&&(z.color=r);return z};C.writeColor=function(D,A){D&&"x"!==this.style&&"cross"!==this.style&&(A.color=D.toJSON());null===D&&(A.color=null)};C.clone=function(){return new n({angle:this.angle,color:f.clone(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})};C.hash=function(){var D;return`${w.prototype.hash.call(this)}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${null==
(D=this.outline)?void 0:D.hash()}`};a._createClass(x,[{key:"path",set:function(D){this.style="path";this._set("path",D)}}]);return x}(l);b.__decorate([q.property()],l.prototype,"color",void 0);b.__decorate([e.writer("color")],l.prototype,"writeColor",null);b.__decorate([m.enumeration({esriSMS:"simple-marker"},{readOnly:!0})],l.prototype,"type",void 0);b.__decorate([q.property()],l.prototype,"size",void 0);b.__decorate([q.property({type:g.apiValues,json:{read:g.read,write:g.write}})],l.prototype,"style",
void 0);b.__decorate([q.property({type:String,json:{write:!0}})],l.prototype,"path",null);b.__decorate([q.property({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":h}},json:{default:null,write:!0}})],l.prototype,"outline",void 0);return l=n=b.__decorate([p.subclass("esri.symbols.SimpleMarkerSymbol")],l)})},"esri/symbols/TextSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Font ./Symbol".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l){var h;v=h=function(n){function w(...C){C=n.call(this,...C)||this;C.backgroundColor=null;C.borderLineColor=null;C.borderLineSize=null;C.font=new e;C.horizontalAlignment="center";C.kerning=!0;C.haloColor=null;C.haloSize=null;C.rightToLeft=null;C.rotated=!1;C.text="";C.type="text";C.verticalAlignment=null;C.xoffset=0;C.yoffset=0;C.angle=0;C.width=null;C.lineWidth=192;C.lineHeight=1;return C}a._inheritsLoose(w,n);var x=w.prototype;x.normalizeCtorArgs=function(C,D,
A){if(C&&"string"!==typeof C)return C;const B={};C&&(B.text=C);D&&(B.font=D);A&&(B.color=A);return B};x.writeLineWidth=function(C,D,A,B){B&&"string"!==typeof B||(D[A]=C)};x.castLineWidth=function(C){return f.toPt(C)};x.writeLineHeight=function(C,D,A,B){B&&"string"!==typeof B||(D[A]=C)};x.clone=function(){return new h({angle:this.angle,backgroundColor:g.clone(this.backgroundColor),borderLineColor:g.clone(this.borderLineColor),borderLineSize:this.borderLineSize,color:g.clone(this.color),font:this.font&&
this.font.clone(),haloColor:g.clone(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})};x.hash=function(){return`${this.backgroundColor&&this.backgroundColor.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color.hash()}.${this.font&&
this.font.hash()}.${this.haloColor&&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}`};return w}(l);b.__decorate([k.property({type:c,json:{write:!0}})],v.prototype,"backgroundColor",void 0);b.__decorate([k.property({type:c,json:{write:!0}})],v.prototype,"borderLineColor",void 0);b.__decorate([k.property({type:Number,
json:{write:!0}})],v.prototype,"borderLineSize",void 0);b.__decorate([k.property({type:e,json:{write:!0}})],v.prototype,"font",void 0);b.__decorate([k.property({type:["left","right","center","justify"],json:{write:!0}})],v.prototype,"horizontalAlignment",void 0);b.__decorate([k.property({type:Boolean,json:{write:!0}})],v.prototype,"kerning",void 0);b.__decorate([k.property({type:c,json:{write:!0}})],v.prototype,"haloColor",void 0);b.__decorate([k.property({type:Number,cast:f.toPt,json:{write:!0}})],
v.prototype,"haloSize",void 0);b.__decorate([k.property({type:Boolean,json:{write:!0}})],v.prototype,"rightToLeft",void 0);b.__decorate([k.property({type:Boolean,json:{write:!0}})],v.prototype,"rotated",void 0);b.__decorate([k.property({type:String,json:{write:!0}})],v.prototype,"text",void 0);b.__decorate([u.enumeration({esriTS:"text"},{readOnly:!0})],v.prototype,"type",void 0);b.__decorate([k.property({type:["baseline","top","middle","bottom"],json:{write:!0}})],v.prototype,"verticalAlignment",
void 0);b.__decorate([k.property({type:Number,cast:f.toPt,json:{write:!0}})],v.prototype,"xoffset",void 0);b.__decorate([k.property({type:Number,cast:f.toPt,json:{write:!0}})],v.prototype,"yoffset",void 0);b.__decorate([k.property({type:Number,json:{read:n=>n&&-1*n,write:(n,w)=>w.angle=n&&-1*n}})],v.prototype,"angle",void 0);b.__decorate([k.property({type:Number,json:{write:!0}})],v.prototype,"width",void 0);b.__decorate([k.property({type:Number})],v.prototype,"lineWidth",void 0);b.__decorate([p.writer("lineWidth")],
v.prototype,"writeLineWidth",null);b.__decorate([q.cast("lineWidth")],v.prototype,"castLineWidth",null);b.__decorate([k.property({type:Number})],v.prototype,"lineHeight",void 0);b.__decorate([p.writer("lineHeight")],v.prototype,"writeLineHeight",null);return v=h=b.__decorate([m.subclass("esri.symbols.TextSymbol")],v)})},"esri/symbols/WebStyleSymbol":function(){define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Logger ../core/promiseUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../portal/Portal ../chunks/persistableUrlUtils ./Symbol ./support/Thumbnail".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l){function h(){return new Promise(function(x,C){a(["./support/styleUtils"],x,C)})}var n;const w=g.getLogger("esri.symbols.WebStyleSymbol");g=n=function(x){function C(A){A=x.call(this,A)||this;A.styleName=null;A.portal=null;A.styleUrl=null;A.thumbnail=null;A.name=null;A.type="web-style";return A}b._inheritsLoose(C,x);var D=C.prototype;D.read=function(A,B){this.portal=B?B.portal:void 0;x.prototype.read.call(this,A,B)};D.clone=function(){return new n({name:this.name,
styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})};D.fetchSymbol=function(A){return this._fetchSymbol("webRef",A)};D.fetchCIMSymbol=function(A){return this._fetchSymbol("cimRef",A)};D._fetchSymbol=function(){var A=b._asyncToGenerator(function*(B,r){const z=yield h();f.throwIfAborted(r);B=z.resolveWebStyleSymbol(this,{portal:this.portal},B,r);B.catch(E=>{w.error("#fetchSymbol()","Failed to create symbol from style",E)});return B});return function(B,r){return A.apply(this,arguments)}}();
return C}(e);c.__decorate([k.property({json:{write:!1}})],g.prototype,"color",void 0);c.__decorate([k.property({type:String,json:{write:!0}})],g.prototype,"styleName",void 0);c.__decorate([k.property({type:m,json:{write:!1}})],g.prototype,"portal",void 0);c.__decorate([k.property({type:String,json:{read:p.read,write:p.write}})],g.prototype,"styleUrl",void 0);c.__decorate([k.property({type:l["default"],json:{read:!1}})],g.prototype,"thumbnail",void 0);c.__decorate([k.property({type:String,json:{write:!0}})],
g.prototype,"name",void 0);c.__decorate([t.enumeration({styleSymbolReference:"web-style"},{readOnly:!0})],g.prototype,"type",void 0);return g=n=c.__decorate([u.subclass("esri.symbols.WebStyleSymbol")],g)})},"esri/renderers/Renderer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/jsonMap ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/accessorSupport/decorators/subclass ./support/AuthoringInfo".split(" "),
function(a,b,c,g,f,k,q,v,t,u){c=new c.JSONMap({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary"},{ignoreUnknown:!0});g=function(m){function p(l){l=m.call(this,l)||this;l.authoringInfo=null;l.type=null;return l}a._inheritsLoose(p,m);var e=p.prototype;e.getRequiredFields=function(){var l=a._asyncToGenerator(function*(h){if(!this.collectRequiredFields)return[];const n=new Set;yield this.collectRequiredFields(n,h);
return Array.from(n).sort()});return function(h){return l.apply(this,arguments)}}();e.getSymbol=function(l,h){};e.getSymbolAsync=function(){var l=a._asyncToGenerator(function*(h,n){});return function(h,n){return l.apply(this,arguments)}}();e.getSymbols=function(){return[]};e.getAttributeHash=function(){return JSON.stringify(this)};e.getMeshHash=function(){return JSON.stringify(this)};return p}(g.JSONSupport);b.__decorate([f.property({type:u,json:{write:!0}})],g.prototype,"authoringInfo",void 0);b.__decorate([f.property({type:c.apiValues,
readOnly:!0,json:{type:c.jsonValues,read:!1,write:{writer:c.write,ignoreOrigin:!0}}})],g.prototype,"type",void 0);return g=b.__decorate([t.subclass("esri.renderers.Renderer")],g)})},"esri/renderers/support/AuthoringInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ./AuthoringInfoFieldInfo ./AuthoringInfoVisualVariable ../../rest/support/colorRamps".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l){var h;v=new c.JSONMap({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"});c=new c.JSONMap({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"});
t="inches feet yards miles nautical-miles millimeters centimeters decimeters meters kilometers decimal-degrees".split(" ");g=h=function(n){function w(C){C=n.call(this,C)||this;C.colorRamp=null;C.lengthUnit=null;C.maxSliderValue=null;C.minSliderValue=null;C.visualVariables=null;return C}a._inheritsLoose(w,n);var x=w.prototype;x.readColorRamp=function(C){if(C)return l.fromJSON(C)};x.clone=function(){return new h({classificationMethod:this.classificationMethod,colorRamp:f.clone(this.colorRamp),fields:this.fields&&
this.fields.slice(0),field1:f.clone(this.field1),field2:f.clone(this.field2),focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map(C=>C.clone()),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme})};a._createClass(w,[{key:"classificationMethod",
get:function(){const C=this._get("classificationMethod"),D=this.type;return D&&"relationship"!==D?"class-breaks-size"===D||"class-breaks-color"===D?C||"manual":null:C},set:function(C){this._set("classificationMethod",C)}},{key:"fields",get:function(){return this.type&&"predominance"!==this.type?null:this._get("fields")},set:function(C){this._set("fields",C)}},{key:"field1",get:function(){return this.type&&"relationship"!==this.type?null:this._get("field1")},set:function(C){this._set("field1",C)}},
{key:"field2",get:function(){return this.type&&"relationship"!==this.type?null:this._get("field2")},set:function(C){this._set("field2",C)}},{key:"focus",get:function(){return this.type&&"relationship"!==this.type?null:this._get("focus")},set:function(C){this._set("focus",C)}},{key:"numClasses",get:function(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")},set:function(C){this._set("numClasses",C)}},{key:"statistics",get:function(){return"univariate-color-size"===this.type&&
"above-and-below"===this.univariateTheme?this._get("statistics"):null},set:function(C){this._set("statistics",C)}},{key:"standardDeviationInterval",get:function(){const C=this.type;return C&&"relationship"!==C&&"class-breaks-size"!==C&&"class-breaks-color"!==C?null:this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")},set:function(C){this._set("standardDeviationInterval",C)}},{key:"type",get:function(){return this._get("type")},set:function(C){let D=
C;"classed-size"===C?D="class-breaks-size":"classed-color"===C&&(D="class-breaks-color");this._set("type",D)}},{key:"univariateSymbolStyle",get:function(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null},set:function(C){this._set("univariateSymbolStyle",C)}},{key:"univariateTheme",get:function(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null},set:function(C){this._set("univariateTheme",C)}}]);
return w}(g.JSONSupport);b.__decorate([k.property({type:v.apiValues,value:null,json:{type:v.jsonValues,read:v.read,write:v.write,origins:{"web-document":{default:"manual",type:v.jsonValues,read:v.read,write:v.write}}}})],g.prototype,"classificationMethod",null);b.__decorate([k.property({types:l.types,json:{write:!0}})],g.prototype,"colorRamp",void 0);b.__decorate([u.reader("colorRamp")],g.prototype,"readColorRamp",null);b.__decorate([k.property({type:[String],value:null,json:{write:!0}})],g.prototype,
"fields",null);b.__decorate([k.property({type:p["default"],value:null,json:{write:!0}})],g.prototype,"field1",null);b.__decorate([k.property({type:p["default"],value:null,json:{write:!0}})],g.prototype,"field2",null);b.__decorate([k.property({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],g.prototype,"focus",null);b.__decorate([k.property({type:Number,value:null,json:{type:q.Integer,write:!0}})],g.prototype,"numClasses",null);b.__decorate([k.property({type:t,json:{type:t,read:!1,write:!1,
origins:{"web-scene":{read:!0,write:!0}}}})],g.prototype,"lengthUnit",void 0);b.__decorate([k.property({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],g.prototype,"maxSliderValue",void 0);b.__decorate([k.property({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],g.prototype,"minSliderValue",void 0);b.__decorate([k.property({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],g.prototype,"statistics",null);b.__decorate([k.property({type:[.25,
.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],g.prototype,"standardDeviationInterval",null);b.__decorate([k.property({type:c.apiValues,value:null,json:{type:c.jsonValues,read:c.read,write:c.write}})],g.prototype,"type",null);b.__decorate([k.property({type:[e],json:{write:!0}})],g.prototype,"visualVariables",void 0);b.__decorate([k.property({type:"caret circle-caret arrow circle-arrow plus-minus circle-plus-minus square circle triangle happy-sad thumb custom".split(" "),value:null,json:{write:!0,
origins:{"web-scene":{write:!1}}}})],g.prototype,"univariateSymbolStyle",null);b.__decorate([k.property({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],g.prototype,"univariateTheme",null);return g=h=b.__decorate([m.subclass("esri.renderers.support.AuthoringInfo")],g)})},"esri/renderers/support/AuthoringInfoFieldInfo":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./AuthoringInfoClassBreakInfo".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){var e;a.AuthoringInfoFieldInfo=e=function(l){function h(n){n=l.call(this,n)||this;n.field="";n.normalizationField="";n.label="";n.classBreakInfos=[];return n}b._inheritsLoose(h,l);h.prototype.clone=function(){return new e({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:f.clone(this.classBreakInfos)})};return h}(g.JSONSupport);c.__decorate([k.property({type:String,json:{write:!0}})],a.AuthoringInfoFieldInfo.prototype,"field",
void 0);c.__decorate([k.property({type:String,json:{write:!0}})],a.AuthoringInfoFieldInfo.prototype,"normalizationField",void 0);c.__decorate([k.property({type:String,json:{write:!0}})],a.AuthoringInfoFieldInfo.prototype,"label",void 0);c.__decorate([k.property({type:[p["default"]],json:{write:!0}})],a.AuthoringInfoFieldInfo.prototype,"classBreakInfos",void 0);a.AuthoringInfoFieldInfo=e=c.__decorate([m.subclass("esri.renderers.support.AuthoringInfoFieldInfo")],a.AuthoringInfoFieldInfo);a.default=
a.AuthoringInfoFieldInfo;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/renderers/support/AuthoringInfoClassBreakInfo":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t,u){var m;a.AuthoringInfoClassBreakInfo=
m=function(p){function e(l){l=p.call(this,l)||this;l.minValue=0;l.maxValue=0;return l}b._inheritsLoose(e,p);e.prototype.clone=function(){return new m({minValue:this.minValue,maxValue:this.maxValue})};return e}(g.JSONSupport);c.__decorate([f.property({type:Number,json:{write:!0}})],a.AuthoringInfoClassBreakInfo.prototype,"minValue",void 0);c.__decorate([f.property({type:Number,json:{write:!0}})],a.AuthoringInfoClassBreakInfo.prototype,"maxValue",void 0);a.AuthoringInfoClassBreakInfo=m=c.__decorate([u.subclass("esri.renderer.support.AuthoringInfoClassBreakInfo")],
a.AuthoringInfoClassBreakInfo);a.default=a.AuthoringInfoClassBreakInfo;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/renderers/support/AuthoringInfoVisualVariable":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/decorators/cast ../../core/Logger ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,
q,v,t){var u;k=new c.JSONMap({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"});c=new c.JSONMap({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"});v={key(l){return"number"===typeof l?"number":"string"},typeMap:{number:Number,string:String},base:null};const m=["high-to-low","above-and-below","centered-on","extremes"],p=[...new Set("high-to-low above-and-below centered-on extremes 90-10 above below high-to-low above-and-below 90-10 above below".split(" "))],
e="seconds minutes hours days months years".split(" ");g=u=function(l){function h(w){w=l.call(this,w)||this;w.endTime=null;w.field=null;w.maxSliderValue=null;w.minSliderValue=null;w.startTime=null;w.type=null;w.units=null;return w}a._inheritsLoose(h,l);var n=h.prototype;n.castEndTime=function(w){return"string"===typeof w||"number"===typeof w?w:null};n.castStartTime=function(w){return"string"===typeof w||"number"===typeof w?w:null};n.clone=function(){return new u({endTime:this.endTime,field:this.field,
maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})};a._createClass(h,[{key:"style",get:function(){return"color"===this.type?this._get("style"):null},set:function(w){this._set("style",w)}},{key:"theme",get:function(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null},set:function(w){this._set("theme",w)}}]);return h}(g.JSONSupport);b.__decorate([f.property({types:v,
json:{write:!0}})],g.prototype,"endTime",void 0);b.__decorate([q.cast("endTime")],g.prototype,"castEndTime",null);b.__decorate([f.property({type:String,json:{write:!0}})],g.prototype,"field",void 0);b.__decorate([f.property({type:Number,json:{write:!0}})],g.prototype,"maxSliderValue",void 0);b.__decorate([f.property({type:Number,json:{write:!0}})],g.prototype,"minSliderValue",void 0);b.__decorate([f.property({types:v,json:{write:!0}})],g.prototype,"startTime",void 0);b.__decorate([q.cast("startTime")],
g.prototype,"castStartTime",null);b.__decorate([f.property({type:k.apiValues,value:null,json:{type:k.jsonValues,read:k.read,write:k.write}})],g.prototype,"style",null);b.__decorate([f.property({type:p,value:null,json:{type:p,origins:{"web-scene":{type:m,write:{writer:(l,h)=>{-1<m.indexOf(l)&&(h.theme=l)}}}},write:!0}})],g.prototype,"theme",null);b.__decorate([f.property({type:c.apiValues,json:{type:c.jsonValues,read:c.read,write:c.write}})],g.prototype,"type",void 0);b.__decorate([f.property({type:e,
json:{type:e,write:!0}})],g.prototype,"units",void 0);return g=u=b.__decorate([t.subclass("esri.renderers.support.AuthoringInfoVisualVariable")],g)})},"esri/rest/support/colorRamps":function(){define(["exports","./AlgorithmicColorRamp","./ColorRamp","./MultipartColorRamp"],function(a,b,c,g){c={key:"type",base:c,typeMap:{algorithmic:b,multipart:g}};a.fromJSON=function(f){return f&&f.type?"algorithmic"===f.type?b.fromJSON(f):"multipart"===f.type?g.fromJSON(f):null:null};a.types=c;Object.defineProperty(a,
"__esModule",{value:!0})})},"esri/rest/support/AlgorithmicColorRamp":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./ColorRamp".split(" "),function(a,b,c,g,f,k,q,v,t,u,m){var p;q=p=function(e){function l(h){h=e.call(this,h)||
this;h.algorithm=null;h.fromColor=null;h.toColor=null;h.type="algorithmic";return h}a._inheritsLoose(l,e);l.prototype.clone=function(){return new p({fromColor:g.clone(this.fromColor),toColor:g.clone(this.toColor),algorithm:this.algorithm})};return l}(m);b.__decorate([t.enumeration({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],q.prototype,"algorithm",void 0);b.__decorate([f.property({type:c,json:{type:[k.Integer],write:!0}})],q.prototype,"fromColor",void 0);
b.__decorate([f.property({type:c,json:{type:[k.Integer],write:!0}})],q.prototype,"toColor",void 0);b.__decorate([f.property({type:["algorithmic"]})],q.prototype,"type",void 0);return q=p=b.__decorate([u.subclass("esri.rest.support.AlgorithmicColorRamp")],q)})},"esri/rest/support/ColorRamp":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){c=function(u){function m(p){p=u.call(this,p)||this;p.type=null;return p}a._inheritsLoose(m,u);return m}(c.JSONSupport);b.__decorate([g.property({readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=b.__decorate([t.subclass("esri.rest.support.ColorRamp")],c)})},"esri/rest/support/MultipartColorRamp":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./AlgorithmicColorRamp ./ColorRamp".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){var p;f=p=function(e){function l(h){h=e.call(this,h)||this;h.colorRamps=null;h.type="multipart";return h}a._inheritsLoose(l,e);l.prototype.clone=function(){return new p({colorRamps:c.clone(this.colorRamps)})};return l}(m);b.__decorate([g.property({type:[u],json:{write:!0}})],f.prototype,"colorRamps",void 0);b.__decorate([g.property({type:["multipart"]})],f.prototype,"type",void 0);return f=p=b.__decorate([t.subclass("esri.rest.support.MultipartColorRamp")],f)})},"esri/renderers/mixins/VisualVariablesMixin":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../layers/support/fieldUtils ../visualVariables/ColorVariable ../visualVariables/OpacityVariable ../visualVariables/RotationVariable ../visualVariables/SizeVariable ../visualVariables/VisualVariable ../visualVariables/VisualVariableFactory".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x){const C={base:w,key:"type",typeMap:{opacity:l,color:e,rotation:h,size:n}};a.VisualVariablesMixin=D=>{D=function(A){function B(){var z=A.apply(this,arguments)||this;z._vvFactory=new x;return z}b._inheritsLoose(B,A);var r=B.prototype;r.readVisualVariables=function(z,E,F){return this._vvFactory.readVariables(z,E,F)};r.writeVisualVariables=function(z,E,F,G){E[F]=this._vvFactory.writeVariables(z,G)};r.hasVisualVariables=function(z,E){return z?!!this.getVisualVariablesForType(z,
E):!!(this.getVisualVariablesForType("size",E)||this.getVisualVariablesForType("color",E)||this.getVisualVariablesForType("opacity",E)||this.getVisualVariablesForType("rotation",E))};r.getVisualVariablesForType=function(z,E){var F=this.visualVariables;if(F&&(F=F.filter(G=>G.type===z&&("string"===typeof E?G.target===E:!1===E?!G.target:!0)),!F||0!==F.length))return F};r.collectVVRequiredFields=function(){var z=b._asyncToGenerator(function*(E,F){let G=[];this.visualVariables&&(G=G.concat(this.visualVariables));
for(const N of G)N&&(N.field&&p.collectField(E,F,N.field),N.normalizationField&&p.collectField(E,F,N.normalizationField),N.valueExpression&&(yield p.collectArcadeFieldNames(E,F,N.valueExpression)))});return function(E,F){return z.apply(this,arguments)}}();b._createClass(B,[{key:"visualVariables",set:function(z){this._vvFactory.visualVariables=z;this._set("visualVariables",this._vvFactory.visualVariables)}},{key:"arcadeRequiredForVisualVariables",get:function(){if(!this.visualVariables)return!1;for(const z of this.visualVariables)if(z.arcadeRequired)return!0;
return!1}}]);return B}(D);c.__decorate([g.property({types:[C],value:null,json:{write:!0}})],D.prototype,"visualVariables",null);c.__decorate([t.reader("visualVariables",["visualVariables","rotationType","rotationExpression"])],D.prototype,"readVisualVariables",null);c.__decorate([m.writer("visualVariables")],D.prototype,"writeVisualVariables",null);return D=c.__decorate([u.subclass("esri.renderers.mixins.VisualVariablesMixin")],D)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/renderers/visualVariables/ColorVariable":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./VisualVariable ./support/ColorStop".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;g=m=function(p){function e(h){h=p.call(this,h)||this;h.type="color";h.normalizationField=null;return h}a._inheritsLoose(e,p);var l=e.prototype;l.clone=function(){return new m({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(h=>h.clone()),legendOptions:this.legendOptions&&this.legendOptions.clone()})};l.getAttributeHash=function(){return`${p.prototype.getAttributeHash.call(this)}-${this.normalizationField}`};
l._interpolateData=function(){return this.stops&&this.stops.map(h=>h.value||0)};a._createClass(e,[{key:"cache",get:function(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}},{key:"stops",set:function(h){h&&Array.isArray(h)&&(h=h.filter(n=>!!n),h.sort((n,w)=>n.value-w.value));this._set("stops",h)}}]);return e}(t);b.__decorate([c.property({readOnly:!0})],g.prototype,"cache",null);b.__decorate([c.property({type:["color"],json:{type:["colorInfo"]}})],g.prototype,
"type",void 0);b.__decorate([c.property({type:String,json:{write:!0}})],g.prototype,"normalizationField",void 0);b.__decorate([c.property({type:[u],json:{write:!0}})],g.prototype,"stops",null);return g=m=b.__decorate([v.subclass("esri.renderers.visualVariables.ColorVariable")],g)})},"esri/renderers/visualVariables/VisualVariable":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/Logger ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/ensureType ./support/VisualVariableLegendOptions".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){const p=f.getLogger("esri.renderers.visualVariables.VisualVariable");c=new c.JSONMap({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});g=function(e){function l(n){n=e.call(this,n)||this;n.index=null;n.type=null;n.field=null;n.valueExpression=null;n.valueExpressionTitle=null;n.legendOptions=null;return n}a._inheritsLoose(l,e);var h=l.prototype;h.castField=function(n){return null==n?n:"function"===typeof n?(p.error(".field: field must be a string value"),
null):u.ensureString(n)};h.clone=function(){};h.getAttributeHash=function(){return`${this.type}-${this.field}-${this.valueExpression}`};a._createClass(l,[{key:"arcadeRequired",get:function(){return!!this.valueExpression}}]);return l}(g.JSONSupport);b.__decorate([k.property()],g.prototype,"index",void 0);b.__decorate([k.property({type:c.apiValues,readOnly:!0,json:{read:c.read,write:c.write}})],g.prototype,"type",void 0);b.__decorate([k.property({type:String,json:{write:!0}})],g.prototype,"field",void 0);
b.__decorate([v.cast("field")],g.prototype,"castField",null);b.__decorate([k.property({type:String,json:{write:!0}})],g.prototype,"valueExpression",void 0);b.__decorate([k.property({type:String,json:{write:!0}})],g.prototype,"valueExpressionTitle",void 0);b.__decorate([k.property({readOnly:!0})],g.prototype,"arcadeRequired",null);b.__decorate([k.property({type:m,json:{write:!0}})],g.prototype,"legendOptions",void 0);return g=b.__decorate([t.subclass("esri.renderers.visualVariables.VisualVariable")],
g)})},"esri/renderers/visualVariables/support/VisualVariableLegendOptions":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ../../support/LegendOptions".split(" "),function(a,b,c,g,f,k,q,v,t){var u;g=u=function(m){function p(){var e=m.apply(this,arguments)||this;
e.showLegend=null;return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({title:this.title,showLegend:this.showLegend})};return p}(t["default"]);b.__decorate([c.property({type:Boolean,json:{write:!0}})],g.prototype,"showLegend",void 0);return g=u=b.__decorate([v.subclass("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],g)})},"esri/renderers/support/LegendOptions":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;a.LegendOptions=m=function(p){function e(){var l=p.apply(this,arguments)||this;l.title=null;return l}b._inheritsLoose(e,p);e.prototype.clone=function(){return new m({title:this.title})};return e}(g.JSONSupport);c.__decorate([f.property({type:String,json:{write:!0}})],a.LegendOptions.prototype,"title",void 0);a.LegendOptions=m=c.__decorate([u.subclass("esri.renderers.support.LegendOptions")],a.LegendOptions);a.default=a.LegendOptions;Object.defineProperty(a,"__esModule",
{value:!0})})},"esri/renderers/visualVariables/support/ColorStop":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../Color ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer".split(" "),function(a,b,c,g,f,k,q,v,t,u,m){var p;g=p=function(e){function l(n){n=
e.call(this,n)||this;n.color=null;n.label=null;n.value=null;return n}a._inheritsLoose(l,e);var h=l.prototype;h.writeValue=function(n,w,x){w[x]=null==n?0:n};h.clone=function(){return new p({color:this.color&&this.color.clone(),label:this.label,value:this.value})};return l}(g.JSONSupport);b.__decorate([f.property({type:c,json:{type:[q.Integer],write:!0}})],g.prototype,"color",void 0);b.__decorate([f.property({type:String,json:{write:!0}})],g.prototype,"label",void 0);b.__decorate([f.property({type:Number,
json:{write:{allowNull:!0}}})],g.prototype,"value",void 0);b.__decorate([m.writer("value")],g.prototype,"writeValue",null);return g=p=b.__decorate([u.subclass("esri.renderers.visualVariables.support.ColorStop")],g)})},"esri/renderers/visualVariables/OpacityVariable":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./VisualVariable ./support/OpacityStop".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;g=m=function(p){function e(h){h=p.call(this,h)||this;h.type="opacity";h.normalizationField=null;return h}a._inheritsLoose(e,p);var l=e.prototype;l.clone=function(){return new m({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(h=>h.clone()),legendOptions:this.legendOptions&&this.legendOptions.clone()})};l.getAttributeHash=function(){return`${p.prototype.getAttributeHash.call(this)}-${this.normalizationField}`};
l._interpolateData=function(){return this.stops&&this.stops.map(h=>h.value||0)};a._createClass(e,[{key:"cache",get:function(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}},{key:"stops",set:function(h){h&&Array.isArray(h)&&(h=h.filter(n=>!!n),h.sort((n,w)=>n.value-w.value));this._set("stops",h)}}]);return e}(t);b.__decorate([c.property({readOnly:!0})],g.prototype,"cache",null);b.__decorate([c.property({type:["opacity"],json:{type:["transparencyInfo"]}})],
g.prototype,"type",void 0);b.__decorate([c.property({type:String,json:{write:!0}})],g.prototype,"normalizationField",void 0);b.__decorate([c.property({type:[u],json:{write:!0}})],g.prototype,"stops",null);return g=m=b.__decorate([v.subclass("esri.renderers.visualVariables.OpacityVariable")],g)})},"esri/renderers/visualVariables/support/OpacityStop":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/reader ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer ../../../webdoc/support/opacityUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){var e;c=e=function(l){function h(w){w=l.call(this,w)||this;w.label=null;w.opacity=null;w.value=null;return w}a._inheritsLoose(h,l);var n=h.prototype;n.readOpacity=function(w,x){return p.transparencyToOpacity(x.transparency)};n.writeOpacity=function(w,x,C){x[C]=p.opacityToTransparency(w)};n.clone=function(){return new e({label:this.label,opacity:this.opacity,value:this.value})};return h}(c.JSONSupport);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,
"label",void 0);b.__decorate([g.property({type:Number,json:{type:k.Integer,write:{target:"transparency"}}})],c.prototype,"opacity",void 0);b.__decorate([t.reader("opacity",["transparency"])],c.prototype,"readOpacity",null);b.__decorate([m.writer("opacity")],c.prototype,"writeOpacity",null);b.__decorate([g.property({type:Number,json:{write:!0}})],c.prototype,"value",void 0);return c=e=b.__decorate([u.subclass("esri.renderers.visualVariables.support.OpacityStop")],c)})},"esri/renderers/visualVariables/RotationVariable":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Error ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./VisualVariable".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){var p;f=p=function(e){function l(n){n=e.call(this,n)||this;n.axis=null;n.type="rotation";n.rotationType="geographic";n.valueExpressionTitle=null;return n}a._inheritsLoose(l,e);var h=l.prototype;h.writeValueExpressionTitleWebScene=function(n,w,x,C){C&&C.messages&&C.messages.push(new c("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:`visualVariables[${this.index}]`+
".valueExpressionTitle",context:C}))};h.clone=function(){return new p({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions&&this.legendOptions.clone()})};a._createClass(l,[{key:"cache",get:function(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}}]);return l}(m);b.__decorate([g.property({readOnly:!0})],f.prototype,"cache",null);b.__decorate([g.property({type:["heading",
"tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],f.prototype,"axis",void 0);b.__decorate([g.property({type:["rotation"],json:{type:["rotationInfo"]}})],f.prototype,"type",void 0);b.__decorate([g.property({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],f.prototype,"rotationType",void 0);b.__decorate([g.property({type:String,json:{write:!0}})],f.prototype,"valueExpressionTitle",void 0);b.__decorate([u.writer("web-scene",
"valueExpressionTitle")],f.prototype,"writeValueExpressionTitleWebScene",null);return f=p=b.__decorate([t.subclass("esri.renderers.visualVariables.RotationVariable")],f)})},"esri/renderers/visualVariables/SizeVariable":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Error ../../core/jsonMap ../../core/Logger ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./VisualVariable ./support/SizeStop ./support/SizeVariableLegendOptions ./support/sizeVariableUtils ./support/visualVariableUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w){function x(z){if(null!=z){if("string"===typeof z||"number"===typeof z)return k.toPt(z);if("size"===z.type){if(n.isSizeVariable(z))return z;z={...z};delete z.type;return new r(z)}}}function C(z,E,F){if("object"!==typeof z)return z;E=new r;E.read(z,F);return E}var D;const A=f.getLogger("esri.renderers.visualVariables.SizeVariable");f=new g.JSONMap({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"});const B=new g.JSONMap({unknown:"unknown",
inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});let r=D=function(z){function E(G){G=z.call(this,G)||this;G.axis=null;G.legendOptions=null;G.normalizationField=null;G.scaleBy=null;G.target=null;G.type="size";G.useSymbolValue=null;G.valueExpression=null;G.valueRepresentation=null;G.valueUnit=null;return G}a._inheritsLoose(E,
z);var F=E.prototype;F.castMaxSize=function(G){return x(G)};F.readMaxSize=function(G,N,K){return C(G,N,K)};F.castMinSize=function(G){return x(G)};F.readMinSize=function(G,N,K){return C(G,N,K)};F.readValueExpression=function(G,N){return G||N.expression&&"$view.scale"};F.writeValueExpressionWebScene=function(G,N,K,I){"$view.scale"===G?I&&I.messages&&(G=this.index,I.messages.push(new c("property:unsupported",this.type+"VisualVariable.valueExpression \x3d '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",
{instance:this,propertyName:("string"===typeof G?G:`visualVariables[${G}]`)+".valueExpression",context:I}))):N[K]=G};F.readValueUnit=function(G){return G?B.read(G):null};F.clone=function(){return new D({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:n.isSizeVariable(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:n.isSizeVariable(this.minSize)?this.minSize.clone():
this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map(G=>G.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone()})};F.flipSizes=function(){if("clamped-linear"===this.transformationType){const {minSize:G,maxSize:N}=this;this.minSize=N;this.maxSize=G;return this}if("stops"===this.transformationType){const G=this.stops,N=G.map(I=>
I.size).reverse(),K=G.length;for(let I=0;I<K;I++)G[I].size=N[I]}return this};F.getAttributeHash=function(){return`${z.prototype.getAttributeHash.call(this)}-${this.target}-${this.normalizationField}`};F._interpolateData=function(){return this.stops&&this.stops.map(G=>G.value||0)};a._createClass(E,[{key:"cache",get:function(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:w.viewScaleRE.test(this.valueExpression)}}},{key:"expression",set:function(G){A.warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'.");
"view.scale"===G?(this.valueExpression="$view.scale",this._set("expression",G)):this._set("expression",null)}},{key:"index",set:function(G){n.isSizeVariable(this.maxSize)&&(this.maxSize.index=`visualVariables[${G}].maxSize`);n.isSizeVariable(this.minSize)&&(this.minSize.index=`visualVariables[${G}].minSize`);this._set("index",G)}},{key:"inputValueType",get:function(){return n.getInputValueType(this)}},{key:"maxDataValue",set:function(G){G&&this.stops&&(A.warn("cannot set maxDataValue when stops is not null."),
G=null);this._set("maxDataValue",G)}},{key:"maxSize",set:function(G){G&&this.stops&&(A.warn("cannot set maxSize when stops is not null."),G=null);this._set("maxSize",G)}},{key:"minDataValue",set:function(G){G&&this.stops&&(A.warn("cannot set minDataValue when stops is not null."),G=null);this._set("minDataValue",G)}},{key:"minSize",set:function(G){G&&this.stops&&(A.warn("cannot set minSize when stops is not null."),G=null);this._set("minSize",G)}},{key:"arcadeRequired",get:function(){return this.valueExpression?
!0:this.minSize&&"object"===typeof this.minSize&&this.minSize.arcadeRequired||this.maxSize&&"object"===typeof this.maxSize&&this.maxSize.arcadeRequired}},{key:"stops",set:function(G){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?G&&Array.isArray(G)&&(G=G.filter(N=>!!N),G.sort((N,K)=>N.value-K.value)):G&&(A.warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),G=null);this._set("stops",G)}},{key:"transformationType",
get:function(){return n.getTransformationType(this,this.inputValueType)}}]);return E}(e);b.__decorate([q.property({readOnly:!0})],r.prototype,"cache",null);b.__decorate([q.property({type:f.apiValues,json:{type:f.jsonValues,origins:{"web-map":{read:!1}},read:f.read,write:f.write}})],r.prototype,"axis",void 0);b.__decorate([q.property({type:String,value:null,json:{read:!1}})],r.prototype,"expression",null);b.__decorate([q.property()],r.prototype,"index",null);b.__decorate([q.property({type:String,readOnly:!0})],
r.prototype,"inputValueType",null);b.__decorate([q.property({type:h,json:{write:!0}})],r.prototype,"legendOptions",void 0);b.__decorate([q.property({type:Number,value:null,json:{write:!0}})],r.prototype,"maxDataValue",null);b.__decorate([q.property({type:Number,value:null,json:{write:!0}})],r.prototype,"maxSize",null);b.__decorate([t.cast("maxSize")],r.prototype,"castMaxSize",null);b.__decorate([u.reader("maxSize")],r.prototype,"readMaxSize",null);b.__decorate([q.property({type:Number,value:null,
json:{write:!0}})],r.prototype,"minDataValue",null);b.__decorate([q.property({type:Number,value:null,json:{write:!0}})],r.prototype,"minSize",null);b.__decorate([t.cast("minSize")],r.prototype,"castMinSize",null);b.__decorate([u.reader("minSize")],r.prototype,"readMinSize",null);b.__decorate([q.property({type:String,json:{write:!0}})],r.prototype,"normalizationField",void 0);b.__decorate([q.property({readOnly:!0})],r.prototype,"arcadeRequired",null);b.__decorate([q.property({type:String})],r.prototype,
"scaleBy",void 0);b.__decorate([q.property({type:[l],value:null,json:{write:!0}})],r.prototype,"stops",null);b.__decorate([q.property({type:["outline"],json:{write:!0}})],r.prototype,"target",void 0);b.__decorate([q.property({type:String,readOnly:!0})],r.prototype,"transformationType",null);b.__decorate([q.property({type:["size"],json:{type:["sizeInfo"]}})],r.prototype,"type",void 0);b.__decorate([q.property({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],r.prototype,"useSymbolValue",
void 0);b.__decorate([q.property({type:String,json:{write:!0}})],r.prototype,"valueExpression",void 0);b.__decorate([u.reader("valueExpression",["valueExpression","expression"])],r.prototype,"readValueExpression",null);b.__decorate([p.writer("web-scene","valueExpression")],r.prototype,"writeValueExpressionWebScene",null);b.__decorate([q.property({type:["radius","diameter","area","width","distance"],json:{write:!0}})],r.prototype,"valueRepresentation",void 0);b.__decorate([q.property({type:B.apiValues,
json:{write:B.write,origins:{"web-map":{read:!1},"web-scene":{write:!0}}}})],r.prototype,"valueUnit",void 0);b.__decorate([u.reader("valueUnit")],r.prototype,"readValueUnit",null);return r=D=b.__decorate([m.subclass("esri.renderers.visualVariables.SizeVariable")],r)})},"esri/renderers/visualVariables/support/SizeStop":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/screenUtils ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;c=m=function(p){function e(l){l=p.call(this,l)||this;l.label=null;l.size=null;l.value=null;return l}a._inheritsLoose(e,p);e.prototype.clone=function(){return new m({label:this.label,size:this.size,value:this.value})};return e}(c.JSONSupport);b.__decorate([f.property({type:String,json:{write:!0}})],c.prototype,"label",void 0);b.__decorate([f.property({type:Number,cast:g.toPt,json:{write:!0}})],c.prototype,"size",void 0);b.__decorate([f.property({type:Number,json:{write:!0}})],
c.prototype,"value",void 0);return c=m=b.__decorate([u.subclass("esri.renderers.visualVariables.support.SizeStop")],c)})},"esri/renderers/visualVariables/support/SizeVariableLegendOptions":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ./VisualVariableLegendOptions".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;g=u=function(m){function p(){var e=m.apply(this,arguments)||this;e.customValues=null;return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})};return p}(t);b.__decorate([c.property({type:[Number],json:{write:!0}})],g.prototype,"customValues",void 0);return g=u=b.__decorate([v.subclass("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],
g)})},"esri/renderers/visualVariables/support/sizeVariableUtils":function(){define(["exports"],function(a){function b(c){return c.valueExpression?"expression":c.field&&"string"===typeof c.field?"field":"unknown"}a.getInputValueType=b;a.getTransformationType=function(c,g){return"unknown"===(g||b(c))?"constant":c.stops?"stops":null!=c.minSize&&null!=c.maxSize&&null!=c.minDataValue&&null!=c.maxDataValue?"clamped-linear":"unknown"===(c.valueUnit||"unknown")?null!=c.minSize&&null!=c.minDataValue?c.minSize&&
c.minDataValue?"proportional":"additive":"identity":"real-world-size"};a.isSizeVariable=function(c){return c&&"esri.renderers.visualVariables.SizeVariable"===c.declaredClass};a.isValidNumber=function(c){return null!=c&&!isNaN(c)&&isFinite(c)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/renderers/visualVariables/support/visualVariableUtils":function(){define("exports ../../../Color ../../../Graphic ../../../core/compilerUtils ../../../core/Logger ../../../core/maybe ../../support/lengthUtils ./sizeVariableUtils".split(" "),
function(a,b,c,g,f,k,q,v){function t(A,B,r){if(A="visualVariables"in A&&A.visualVariables?A.visualVariables.filter(J=>"color"===J.type)[0]:A)if("esri.renderers.visualVariables.ColorVariable"!==A.declaredClass)x.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");else{var z="number"===typeof B,E=z?null:B,F=E&&E.attributes,G=z?B:null,N=A.field,{ipData:K,hasExpression:I}=A.cache;B=A.cache.compiledFunc;if(!N&&!I)return(r=A.stops)&&r[0]&&r[0].color;if("number"!==
typeof G)if(I){if(!k.isSome(r)||!k.isSome(r.arcade)){x.error("Use of arcade expressions requires an arcade context");return}G=r.arcade.arcadeUtils;N=G.getViewInfo({viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference});E=G.createExecContext(E,N);B||(B=G.createSyntaxTree(A.valueExpression),B=G.createFunction(B),A.cache.compiledFunc=B);G=G.executeFunction(B,E)}else F&&(G=F[N]);E=A.normalizationField;F=F?parseFloat(F[E]):void 0;if(null!=G&&(!E||z||!isNaN(F)&&0!==F)&&(isNaN(F)||
z||(G/=F),z=w(G,K)))return F=z[0],E=z[1],r=F===E?A.stops[F].color:b.blendColors(A.stops[F].color,A.stops[E].color,z[2],k.isSome(r)?r.color:void 0),new b(r)}}function u(A,B,r){if(A="visualVariables"in A&&A.visualVariables?A.visualVariables.filter(J=>"opacity"===J.type)[0]:A)if("esri.renderers.visualVariables.OpacityVariable"!==A.declaredClass)x.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");else{var z="number"===typeof B,E=z?null:B,F=E&&E.attributes,
G=z?B:null,N=A.field,{ipData:K,hasExpression:I}=A.cache;B=A.cache.compiledFunc;if(!N&&!I)return(A=A.stops)&&A[0]&&A[0].opacity;if("number"!==typeof G)if(I){if(k.isNone(r)||k.isNone(r.arcade)){x.error("Use of arcade expressions requires an arcade context");return}G=r.arcade.arcadeUtils;r=G.getViewInfo({viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference});r=G.createExecContext(E,r);B||(E=G.createSyntaxTree(A.valueExpression),B=G.createFunction(E),A.cache.compiledFunc=B);G=G.executeFunction(B,
r)}else F&&(G=F[N]);r=A.normalizationField;F=F?parseFloat(F[r]):void 0;if(null!=G&&(!r||z||!isNaN(F)&&0!==F)&&(isNaN(F)||z||(G/=F),z=w(G,K))){r=z[0];F=z[1];if(r===F)return A.stops[r].opacity;r=A.stops[r].opacity;return r+(A.stops[F].opacity-r)*z[2]}}}function m(A,B,r){if(A="visualVariables"in A&&A.visualVariables?A.visualVariables.filter(J=>"rotation"===J.type)[0]:A)if("esri.renderers.visualVariables.RotationVariable"!==A.declaredClass)x.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");
else{var z=A.axis||"heading",E="heading"===z&&"arithmetic"===A.rotationType?90:0;z="heading"===z&&"arithmetic"===A.rotationType?-1:1;var F="number"===typeof B?null:B,G=F&&F.attributes,N=A.field,{hasExpression:K}=A.cache;B=A.cache.compiledFunc;var I=0;if(!N&&!K)return I;if(K){if(k.isNone(r)||k.isNone(r.arcade)){x.error("Use of arcade expressions requires an arcade context");return}G=r.arcade.arcadeUtils;r=G.getViewInfo({viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference});
r=G.createExecContext(F,r);B||(B=G.createSyntaxTree(A.valueExpression),B=G.createFunction(B),A.cache.compiledFunc=B);I=G.executeFunction(B,r)}else G&&(I=G[N]||0);return I="number"!==typeof I||isNaN(I)?null:E+z*I}}function p(A,B,r){const z="number"===typeof B;var E=z?null:B;const F=E&&E.attributes;var G=z?B:null;const {isScaleDriven:N}=A.cache;B=A.cache.compiledFunc;if(N)E=k.isSome(r)?r.scale:void 0,r=k.isSome(r)?r.view:void 0,null==E||"3d"===r?(E=r=null,(E=A.stops)?(r=E[0].value,E=E[E.length-1].value):
(r=A.minDataValue||0,E=A.maxDataValue||0),r=(r+E)/2):r=E,G=r;else if(!z)switch(A.inputValueType){case "expression":if(k.isNone(r)||k.isNone(r.arcade)){x.error("Use of arcade expressions requires an arcade context");return}G=r.arcade.arcadeUtils;r=G.getViewInfo({viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference});r=G.createExecContext(E,r);B||(E=G.createSyntaxTree(A.valueExpression),B=G.createFunction(E),A.cache.compiledFunc=B);G=G.executeFunction(B,r);break;case "field":F&&
(G=F[A.field]);break;case "unknown":G=null}if(!v.isValidNumber(G))return null;if(z||!A.normalizationField)return G;A=F?parseFloat(F[A.normalizationField]):null;return v.isValidNumber(A)&&0!==A?G/A:null}function e(A,B,r){if(A="visualVariables"in A&&A.visualVariables?A.visualVariables.filter(E=>"size"===E.type)[0]:A)if("esri.renderers.visualVariables.SizeVariable"!==A.declaredClass)x.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");else{var z=p(A,B,r);
B=n(z,A,B,r,A.cache.ipData);return null===B||void 0===B||isNaN(B)?0:B}}function l(A,B,r){return null==A?null:v.isSizeVariable(A)?e(A,B,r):v.isValidNumber(A)?A:null}function h(A,B,r){return v.isValidNumber(r)&&A>r?r:v.isValidNumber(B)&&A<B?B:A}function n(A,B,r,z,E){switch(B.transformationType){case "additive":return z=l(B.minSize,r,z),B=A+(z||B.minDataValue);case "constant":return A=(A=B.stops)&&A.length&&A[0].size,null==A&&(A=B.minSize),B=l(A,r,z);case "clamped-linear":E=(A-B.minDataValue)/(B.maxDataValue-
B.minDataValue);var F=l(B.minSize,r,z);r=l(B.maxSize,r,z);z=k.isSome(z)?z.shape:void 0;A<=B.minDataValue?B=F:A>=B.maxDataValue?B=r:"area"===B.scaleBy&&z?(A=(B="circle"===z)?D*(F/2)**2:F*F,A+=E*((B?D*(r/2)**2:r*r)-A),B=B?2*Math.sqrt(A/D):Math.sqrt(A)):B=F+E*(r-F);return B;case "proportional":return E=k.isSome(z)?z.shape:void 0,A/=B.minDataValue,F=l(B.minSize,r,z),B=l(B.maxSize,r,z),z=null,z="circle"===E?2*Math.sqrt(A*(F/2)**2):"square"===E||"diamond"===E||"image"===E?Math.sqrt(A*F**2):A*F,B=h(z,F,
B);case "stops":{const [G,N,K]=w(A,E);G===N?B=l(B.stops[G].size,r,z):(A=l(B.stops[G].size,r,z),B=l(B.stops[N].size,r,z),B=A+(B-A)*K)}return B;case "real-world-size":return E=(k.isSome(z)&&z.resolution?z.resolution:1)*q.meterIn[B.valueUnit],F=l(B.minSize,r,z),z=l(B.maxSize,r,z),{valueRepresentation:B}=B,r=null,r="area"===B?2*Math.sqrt(A/D)/E:"radius"===B||"distance"===B?2*A/E:A/E,B=h(r,F,z);case "identity":return A;case "unknown":return null}}function w(A,B){if(B){var r=0,z=B.length-1;B.some((E,F)=>
{if(A<E)return z=F,!0;r=F;return!1});return[r,z,(A-B[r])/(B[z]-B[r])]}}const x=f.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),C=new c,D=Math.PI;a.getAllSizes=function(A,B,r){const z=["proportional","proportional","proportional"];for(const E of A)switch(A=E.useSymbolValue?"symbol-value":e(E,B,r),E.axis){case "width":z[0]=A;break;case "depth":z[1]=A;break;case "height":z[2]=A;break;case "width-and-depth":z[0]=A;z[1]=A;break;case "all":case void 0:case null:z[0]=A;z[1]=A;z[2]=
A;break;default:g.neverReached(E.axis)}return z};a.getColor=t;a.getOpacity=u;a.getRotationAngle=m;a.getSize=e;a.getSizeForValue=n;a.getSizeFromNumberOrVariable=l;a.getSizeRangeAtScale=function(A,B,r){const {isScaleDriven:z}=A.cache;if(!(z&&"3d"===r||B))return null;r={scale:B,view:r};B=l(A.minSize,C,r);A=l(A.maxSize,C,r);if(null!=B||null!=A)return B>A&&(r=A,A=B,B=r),{minSize:B,maxSize:A}};a.getVisualVariableValues=function(A,B,r){if(A.visualVariables){var z=[],E=[],F=[],G=[],N=[];for(const K of A.visualVariables)switch(K.type){case "color":E.push(K);
break;case "opacity":F.push(K);break;case "rotation":N.push(K);break;case "size":G.push(K)}E.forEach(K=>{const I=t(K,B,r);z.push({variable:K,value:I})});F.forEach(K=>{const I=u(K,B,r);z.push({variable:K,value:I})});N.forEach(K=>{const I=m(K,B,r);z.push({variable:K,value:I})});G.forEach(K=>{const I=e(K,B,r);z.push({variable:K,value:I})});return z.filter(K=>null!=K.value)}};a.viewScaleRE=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/Graphic":function(){define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./geometry ./PopupTemplate ./symbols ./core/JSONSupport ./core/lang ./core/maybe ./core/uid ./core/accessorSupport/decorators/property ./core/accessorSupport/ensureType ./core/has ./core/Logger ./core/jsonMap ./core/accessorSupport/decorators/subclass ./geometry/support/jsonUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n){var w;k=w=function(x){function C(...A){A=x.call(this,...A)||this;A.isAggregate=!1;A.layer=null;A.popupTemplate=null;A.sourceLayer=null;Object.defineProperty(a._assertThisInitialized(A),"uid",{value:t.generateUID(),configurable:!0});return A}a._inheritsLoose(C,x);var D=C.prototype;D.normalizeCtorArgs=function(A,B,r,z){return A&&!A.declaredClass?A:{geometry:A,symbol:B,attributes:r,popupTemplate:z}};D.getEffectivePopupTemplate=function(A=!1){if(this.popupTemplate)return this.popupTemplate;
for(const B of[this.sourceLayer,this.layer])if(B){if("popupTemplate"in B&&B.popupTemplate)return B.popupTemplate;if(A&&"defaultPopupTemplate"in B&&v.isSome(B.defaultPopupTemplate))return B.defaultPopupTemplate}return null};D.getAttribute=function(A){return this.attributes&&this.attributes[A]};D.setAttribute=function(A,B){if(this.attributes){const r=this.getAttribute(A);this.attributes[A]=B;this._notifyLayer("attributes",r,B,A)}else this.attributes={[A]:B},this._notifyLayer("attributes",void 0,B,A)};
D.getObjectId=function(){return this.sourceLayer?"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null:null};D.toJSON=function(){return{geometry:v.isSome(this.geometry)?this.geometry.toJSON():null,symbol:v.isSome(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}};D.clone=function(){return new w(this.cloneProperties())};D.notifyGeometryChanged=function(){this._notifyLayer("geometry",
this.geometry,this.geometry)};D.cloneProperties=function(){return{attributes:q.clone(this.attributes),geometry:q.clone(this.geometry),layer:this.layer,popupTemplate:this.popupTemplate&&this.popupTemplate.clone(),sourceLayer:this.sourceLayer,symbol:q.clone(this.symbol),visible:this.visible}};D._notifyLayer=function(A,B,r,z){this.layer&&"graphicChanged"in this.layer&&(B={graphic:this,property:A,oldValue:B,newValue:r},"attributes"===A&&(B.attributeName=z),this.layer.graphicChanged(B))};a._createClass(C,
[{key:"attributes",set:function(A){const B=this._get("attributes");B!==A&&(this._set("attributes",A),this._notifyLayer("attributes",B,A))}},{key:"geometry",set:function(A){const B=this._get("geometry");B!==A&&(this._set("geometry",A),this._notifyLayer("geometry",B,A))}},{key:"symbol",set:function(A){const B=this._get("symbol");B!==A&&(this._set("symbol",A),this._notifyLayer("symbol",B,A))}},{key:"visible",set:function(A){const B=this._get("visible");B!==A&&(this._set("visible",A),this._notifyLayer("visible",
B,A))}}]);return C}(k.JSONSupport);b.__decorate([u.property({value:null})],k.prototype,"attributes",null);b.__decorate([u.property({value:null,types:c.geometryTypes,json:{read:n.fromJSON}})],k.prototype,"geometry",null);b.__decorate([u.property({type:Boolean})],k.prototype,"isAggregate",void 0);b.__decorate([u.property()],k.prototype,"layer",void 0);b.__decorate([u.property({type:g})],k.prototype,"popupTemplate",void 0);b.__decorate([u.property()],k.prototype,"sourceLayer",void 0);b.__decorate([u.property({value:null,
types:f.symbolTypes})],k.prototype,"symbol",null);b.__decorate([u.property({type:Boolean,value:!0})],k.prototype,"visible",null);k=w=b.__decorate([h.subclass("esri.Graphic")],k);(k||(k={})).generateUID=t.generateUID;return k})},"esri/core/uid":function(){define(["exports"],function(a){let b=0;a.NullUID=0;a.generateUID=function(){return++b};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/renderers/visualVariables/VisualVariableFactory":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/jsonMap ../../core/Logger ../../core/Warning ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./ColorVariable ./OpacityVariable ./RotationVariable ./SizeVariable".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l){const h=f.getLogger("esri.renderers.visualVariables.VisualVariableFactory"),n={color:m,size:l,opacity:p,rotation:e},w=new g.JSONMap({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),x=/^\[([^\]]+)\]$/i;c=function(C){function D(){var B=C.apply(this,arguments)||this;B.colorVariables=null;B.opacityVariables=null;B.rotationVariables=null;B.sizeVariables=null;return B}a._inheritsLoose(D,C);var A=D.prototype;A.readVariables=function(B,
r,z){const {rotationExpression:E,rotationType:F}=r;if(r=(r=E&&E.match(x))&&r[1])B||(B=[]),B.push({type:"rotationInfo",rotationType:F,field:r});if(B)return B.map(G=>{var N=w.read(G.type);const K=n[N];K||(h.warn(`Unknown variable type: ${N}`),z&&z.messages&&z.messages.push(new k("visual-variable:unsupported",`visualVariable of type '${N}' is not supported`,{definition:G,context:z})));N=new K;N.read(G,z);return N})};A.writeVariables=function(B,r){const z=[];for(const E of B)(B=E.toJSON(r))&&z.push(B);
return z};A._resetVariables=function(){this.colorVariables=[];this.opacityVariables=[];this.rotationVariables=[];this.sizeVariables=[]};a._createClass(D,[{key:"visualVariables",set:function(B){this._resetVariables();if((B=B&&B.filter(z=>!!z))&&B.length){for(var r of B)switch(r.type){case "color":this.colorVariables.push(r);break;case "opacity":this.opacityVariables.push(r);break;case "rotation":this.rotationVariables.push(r);break;case "size":this.sizeVariables.push(r)}this.sizeVariables.length&&
this.sizeVariables.some(z=>!!z.target)&&B.sort((z,E)=>{let F=null;return F=z.target===E.target?0:z.target?1:-1});for(r=0;r<B.length;r++)B[r].index=r}this._set("visualVariables",B)}}]);return D}(c);b.__decorate([q.property()],c.prototype,"visualVariables",null);return c=b.__decorate([u.subclass("esri.renderers.visualVariables.VisualVariableFactory")],c)})},"esri/renderers/support/ClassBreakInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../symbols ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../../symbols/support/jsonUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){var p;g=p=function(e){function l(n){n=e.call(this,n)||this;n.description=null;n.label=null;n.minValue=null;n.maxValue=0;n.symbol=null;return n}a._inheritsLoose(l,e);var h=l.prototype;h.clone=function(){return new p({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?this.symbol.clone():null})};h.getMeshHash=function(){const n=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${n}`};return l}(g.JSONSupport);
b.__decorate([f.property({type:String,json:{write:!0}})],g.prototype,"description",void 0);b.__decorate([f.property({type:String,json:{write:!0}})],g.prototype,"label",void 0);b.__decorate([f.property({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],g.prototype,"minValue",void 0);b.__decorate([f.property({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],g.prototype,"maxValue",void 0);b.__decorate([f.property({types:c.symbolTypesRenderer,
json:{origins:{"web-scene":{types:c.symbolTypesRenderer3D,write:m.write}},write:m.write}})],g.prototype,"symbol",void 0);return g=p=b.__decorate([u.subclass("esri.renderers.support.ClassBreakInfo")],g)})},"esri/symbols/support/jsonUtils":function(){define("exports ../../symbols ../../core/Error ../Symbol3D ../WebStyleSymbol ./symbolConversion".split(" "),function(a,b,c,g,f,k){function q(v,t,u){if(!v)return null;if(!(!u||"web-scene"!==u.origin||v instanceof g||v instanceof f)){const m="cim"!==v.type?
k.to3D(v):{symbol:null,error:new c("symbol-conversion:unsupported-cim-symbol","CIM symbol is unsupported in web scenes",{symbol:v})};if(m.symbol)return m.symbol.write(t,u);u.messages&&u.messages.push(new c("symbol:unsupported",`Symbols of type '${v.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:v,context:u,error:m.error}));return null}return u&&"web-map"===u.origin&&"web-style"===v.type?(u.messages&&u.messages.push(new c("symbol:unsupported",
`Symbols of type '${v.declaredClass}' are not supported in webmaps. Use CIMSymbol instead when working with WebMap in MapView.`,{symbol:v,context:u})),null):v.write(t,u)}a.fromJSON=function(v,t){return b.readSymbol(v,null,t)};a.write=function(v,t,u,m){(v=q(v,{},m))&&(t[u]=v)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/support/symbolConversion":function(){define("exports ../../symbols ../../core/Error ../WebStyleSymbol ../PointSymbol3D ../SimpleLineSymbol ../LineSymbol3D ../SimpleMarkerSymbol ../PictureMarkerSymbol ../SimpleFillSymbol ../PolygonSymbol3D ../TextSymbol ../LabelSymbol3D".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){a.to3D=function(l,h=!1,n=!1,w=!0){if(!l)return{symbol:null};if(b.isSymbol3D(l)||l instanceof g)w=l.clone();else if("cim"===l.type)w=f.fromCIMSymbol(l);else if(l instanceof k)w=q.fromSimpleLineSymbol(l);else if(l instanceof v)w=f.fromSimpleMarkerSymbol(l);else if(l instanceof t)w=f.fromPictureMarkerSymbol(l);else if(l instanceof u)w=m.fromSimpleFillSymbol(l);else if(l instanceof p)w=w?e.fromTextSymbol(l):f.fromTextSymbol(l);else return{error:new c("symbol-conversion:unsupported-2d-symbol",
`2D symbol of type '${l.type||l.declaredClass}' is unsupported in 3D`,{symbol:l})};h&&(w.id=l.id);if(n&&b.isSymbol3D(w))for(l=0;l<w.symbolLayers.length;++l)w.symbolLayers.getItemAt(l)._ignoreDrivers=!0;return{symbol:w}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/renderers/support/commonProperties":function(){define(["exports","../../symbols","../../symbols/support/jsonUtils","../../symbols/Symbol","../../symbols/PolygonSymbol3D"],function(a,b,c,g,f){const k={types:b.symbolTypesRenderer,
json:{write:{writer:c.write},origins:{"web-scene":{types:b.symbolTypesRenderer3D,write:{writer:c.write}}}}};a.rendererBackgroundFillSymbolProperty={types:{base:g,key:"type",typeMap:{"simple-fill":b.symbolTypes.typeMap["simple-fill"],"picture-fill":b.symbolTypes.typeMap["picture-fill"],"polygon-3d":b.symbolTypes.typeMap["polygon-3d"]}},json:{write:{writer:c.write},origins:{"web-scene":{type:f,write:{writer:c.write}}}}};a.rendererSymbolProperty=k;Object.defineProperty(a,"__esModule",{value:!0})})},
"esri/renderers/DictionaryRenderer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../request ../core/Error ../core/lang ../core/Logger ../core/LRUCache ../core/maybe ../core/promiseUtils ../core/string ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/jsonMap ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../layers/support/fieldUtils ./Renderer ./mixins/VisualVariablesMixin ../support/arcadeOnDemand ../symbols/CIMSymbol".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B){var r;const z=q.getLogger("esri.renderers.DictionaryRenderer"),E={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};q=r=function(F){function G(K){K=F.call(this,K)||this;K._ongoingRequests=new Map;K._symbolCache=new v(100);K.config=null;K.fieldMap=null;K.scaleExpression=null;K.scaleExpressionTitle=null;K.url=null;K.type="dictionary";return K}a._inheritsLoose(G,F);var N=
G.prototype;N.writeData=function(K,I){K&&(I.scalingExpressionInfo={expression:K,returnType:"number"})};N.writeVisualVariables=function(K,I,J,L){null!=L&&L.origin||F.prototype.writeVisualVariables.call(this,K,I,J,L)};N.clone=function(){return new r({config:k.clone(this.config),scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:k.clone(this.fieldMap),url:k.clone(this.url),visualVariables:k.clone(this.visualVariables)})};N.getSymbolAsync=function(){var K=a._asyncToGenerator(function*(I,
J){this._dictionaryPromise||(this._dictionaryPromise=this.fetchResources(J));try{var L=yield this._dictionaryPromise}catch(U){if(u.isAbortError(U))return this._dictionaryPromise=null}var Q={};if(this.fieldMap)for(var W of this._symbolFields){var V=this.fieldMap[W];Q[W]=V&&null!==I.attributes[V]&&void 0!==I.attributes[V]?""+I.attributes[V]:""}L=L(Q,J);if(!L||"string"!==typeof L)return null;const P=m.numericHash(L).toString();if(Q=this._symbolCache.get(P))return Q.catch(()=>{this._symbolCache.pop(P)}),
Q;W=L.split(";");L=[];Q=[];for(const U of W)if(U&&0!==U.length)if(-1!==U.indexOf("po:")){var X=U.substr(3).split("|");3===X.length&&(W=X[0],V=X[1],X=X[2],"DashTemplate"===V?X=X.split(" ").map(Z=>Number(Z)):"Color"===V?(X=(new c(X)).toRgba(),X=[X[0],X[1],X[2],255*X[3]]):X=Number(X),Q.push({primitiveName:W,propertyName:V,value:X}))}else if(-1!==U.indexOf("|"))for(const Z of U.split("|"))this._itemNames.has(Z)&&L.push(Z);else this._itemNames.has(U)&&L.push(U);I=t.isSome(I.geometry)&&(I.geometry.hasZ||
"point"!==I.geometry.type)?!1:!0;J=this._cimPartsToCIMSymbol(L,Q,I,J);this._symbolCache.put(P,J,1);return J});return function(I,J){return K.apply(this,arguments)}}();N.collectRequiredFields=function(){var K=a._asyncToGenerator(function*(I,J){yield this.collectVVRequiredFields(I,J);this.scaleExpression&&(yield x.collectArcadeFieldNames(I,J,this.scaleExpression));for(const L in this.fieldMap){const Q=this.fieldMap[L];J.has(Q)&&I.add(Q)}});return function(I,J){return K.apply(this,arguments)}}();N.fetchResources=
function(){var K=a._asyncToGenerator(function*(I){if(this._dictionaryPromise)return this._dictionaryPromise;if(this.url){var J=t.isSome(I)?I.abortOptions:null;J=g(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"},...J});var [{data:L}]=yield Promise.all([J,A.loadArcade()]);if(!L)throw this._dictionaryPromise=null,new f("esri.renderers.DictionaryRenderer","Bad dictionary data!");J=L.expression;var Q=L.authoringInfo;this._refSymbolUrlTemplate=this.url+"/"+L.cimRefTemplateUrl;
this._itemNames=new Set(L.itemsNames);this._symbolFields=Q.symbol;L={};if(this.config){const P=this.config;for(var W in P)L[W]=P[W]}if(Q.configuration)for(var V of Q.configuration)L.hasOwnProperty(V.name)||(L[V.name]=V.value);W=[];if(t.isSome(I)&&I.fields&&this.fieldMap)for(const P of this._symbolFields){const X=this.fieldMap[P];V=I.fields.filter(U=>U.name===X);0<V.length&&W.push({...V[0],name:P})}return this._dictionaryPromise=A.createDictionaryExpression(J,t.isSome(I)?I.spatialReference:null,W,
L).then(P=>{const X={scale:0};return(U,Z)=>{U=P.repurposeFeature({geometry:null,attributes:U});X.scale=t.isSome(Z)?Z.scale:void 0;return P.evaluate({$feature:U,$view:X})}}).catch(P=>{z.error("Creating dictinoary expression failed:",P);return null})}z.error("no valid URL!")});return function(I){return K.apply(this,arguments)}}();N.getSymbol=function(){return null};N.getSymbols=function(){return[]};N.getAttributeHash=function(){return this.visualVariables&&this.visualVariables.reduce((K,I)=>K+I.getAttributeHash(),
"")};N.getMeshHash=function(){return`${this.url}-${JSON.stringify(this.fieldMap)}`};N.getSymbolFields=function(){return this._symbolFields};N._getSymbolPart=function(){var K=a._asyncToGenerator(function*(I,J){if(this._ongoingRequests.has(I))return this._ongoingRequests.get(I).then(Q=>Q.data);const L=this._refSymbolUrlTemplate.replace(/\{itemName\}/gi,I);J=g(L,{responseType:"json",query:{f:"json"},...J});this._ongoingRequests.set(I,J);try{return(yield J).data}catch(Q){return this._ongoingRequests.delete(I),
Promise.reject(Q)}});return function(I,J){return K.apply(this,arguments)}}();N._combineSymbolParts=function(K,I,J){if(!K||0===K.length)return null;const L={...K[0]};if(1<K.length){L.symbolLayers=[];for(const Q of K)L.symbolLayers.unshift(...Q.symbolLayers)}J&&(L.callout=E);return{type:"CIMSymbolReference",symbol:L,primitiveOverrides:I}};N._cimPartsToCIMSymbol=function(){var K=a._asyncToGenerator(function*(I,J,L,Q){const W=Array(I.length);for(let V=0;V<I.length;V++)W[V]=this._getSymbolPart(I[V],Q);
I=yield Promise.all(W);return new B({data:this._combineSymbolParts(I,J,L)})});return function(I,J,L,Q){return K.apply(this,arguments)}}();a._createClass(G,[{key:"arcadeRequired",get:function(){return!0}}]);return G}(D.VisualVariablesMixin(C));b.__decorate([p.property({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],q.prototype,"config",void 0);b.__decorate([p.property({type:Object,json:{write:!0}})],q.prototype,"fieldMap",void 0);b.__decorate([p.property({type:String,
json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],q.prototype,"scaleExpression",void 0);b.__decorate([w.writer("scaleExpression")],q.prototype,"writeData",null);b.__decorate([p.property({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(F){return{enabled:!!F&&!!this.scaleExpression}}}}})],q.prototype,"scaleExpressionTitle",void 0);b.__decorate([p.property({type:String,json:{write:!0}})],q.prototype,"url",void 0);
b.__decorate([w.writer("visualVariables")],q.prototype,"writeVisualVariables",null);return q=r=b.__decorate([n.subclass("esri.renderers.DictionaryRenderer")],q)})},"esri/core/LRUCache":function(){define(["../chunks/_rollupPluginBabelHelpers","./MemCache"],function(a,b){return function(){function c(f,k){this._storage=new b.MemCacheStorage;this._storage.maxSize=f;k&&this._storage.registerRemoveFunc("",k)}var g=c.prototype;g.put=function(f,k,q){this._storage.put(f,k,q,1)};g.pop=function(f){return this._storage.pop(f)};
g.get=function(f){return this._storage.get(f)};g.clear=function(){this._storage.clearAll()};g.destroy=function(){this._storage.destroy()};a._createClass(c,[{key:"maxSize",get:function(){return this._storage.maxSize},set:function(f){this._storage.maxSize=f}}]);return c}()})},"esri/core/MemCache":function(){define(["exports","../chunks/_rollupPluginBabelHelpers","./PooledArray"],function(a,b,c){let g=function(){function k(v,t,u){this._namespace=v;this._storage=t;this._removeFunc=!1;this._miss=this._hit=
0;this._storage.register(this);this._namespace+=":";u&&(this._storage.registerRemoveFunc(this._namespace,u),this._removeFunc=!0)}var q=k.prototype;q.destroy=function(){this._storage.clear(this._namespace);this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace);this._storage.deregister(this);this._storage=null};q.resetHitRate=function(){this._hit=this._miss=0};q.put=function(v,t,u,m=0){this._storage.put(this._namespace+v,t,u,m)};q.get=function(v){v=this._storage.get(this._namespace+v);
void 0===v?++this._miss:++this._hit;return v};q.pop=function(v){v=this._storage.pop(this._namespace+v);void 0===v?++this._miss:++this._hit;return v};q.updateSize=function(v,t,u){this._storage.updateSize(this._namespace+v,t,u)};q.clear=function(){this._storage.clear(this._namespace)};q.clearAll=function(){this._storage.clearAll()};q.getStats=function(){return this._storage.getStats()};q.resetStats=function(){this._storage.resetStats()};b._createClass(k,[{key:"namespace",get:function(){return this._namespace.slice(0,
-1)}},{key:"hitRate",get:function(){return this._hit/(this._hit+this._miss)}},{key:"size",get:function(){return this._storage.size}},{key:"maxSize",get:function(){return this._storage.maxSize}}]);return k}(),f=function(){function k(v=10485760){this._maxSize=v;this._db=new Map;this._miss=this._hit=this._size=0;this._removeFuncs=new c;this._users=new c}var q=k.prototype;q.destroy=function(){this.clearAll();this._removeFuncs.clear();this._users.clear();this._db=null};q.register=function(v){this._users.push(v)};
q.deregister=function(v){this._users.removeUnordered(v)};q.registerRemoveFunc=function(v,t){this._removeFuncs.push([v,t])};q.deregisterRemoveFunc=function(v){this._removeFuncs.filterInPlace(t=>t[0]!==v)};q.put=function(v,t,u,m){const p=this._db.get(v);p&&(this._size-=p.size,this._db.delete(v),p.entry!==t&&this._notifyRemoved(v,p.entry));u>this._maxSize?this._notifyRemoved(v,t):void 0===t?console.warn("Refusing to cache undefined entry "):!u||0>u?console.warn("Refusing to cache entry with invalid size "+
u):(m=1+Math.max(m,-3)- -3,this._db.set(v,{entry:t,size:u,lifetime:m,lives:m}),this._size+=u,this._checkSizeLimit())};q.updateSize=function(v,t,u){const m=this._db.get(v);m&&m.entry===t&&(this._size-=m.size,u>this._maxSize?(this._db.delete(v),this._notifyRemoved(v,t)):(m.size=u,this._size+=u,this._checkSizeLimit()))};q.pop=function(v){const t=this._db.get(v);if(t)return this._size-=t.size,this._db.delete(v),++this._hit,t.entry;++this._miss};q.get=function(v){const t=this._db.get(v);if(void 0===t)++this._miss;
else return this._db.delete(v),t.lives=t.lifetime,this._db.set(v,t),++this._hit,t.entry};q.getStats=function(){const v={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},u=[];this._db.forEach((e,l)=>{const h=e.lifetime;u[h]=(u[h]||0)+e.size;this._users.forAll(n=>{n=n.namespace;l.startsWith(n)&&(t[n]=(t[n]||0)+e.size)})});const m={};this._users.forAll(e=>{const l=e.namespace;!isNaN(e.hitRate)&&
0<e.hitRate?(t[l]=t[l]||0,m[l]=Math.round(100*e.hitRate)+"%"):m[l]="0%"});var p=Object.keys(t);p.forEach(e=>t[e]=t[e]/this._size*100);p.sort((e,l)=>t[l]-t[e]);p.forEach(e=>v[e]=Math.round(t[e])+"% / "+m[e]);for(p=u.length-1;0<=p;--p){const e=u[p];e&&(v["Priority "+(p+-3-1)]=Math.round(e/this.size*100)+"%")}return v};q.resetStats=function(){this._hit=this._miss=0;this._users.forAll(v=>v.resetHitRate())};q.clear=function(v){this._db.forEach((t,u)=>{u.startsWith(v)&&(this._size-=t.size,this._db.delete(u),
this._notifyRemoved(u,t.entry))})};q.clearAll=function(){this._db.forEach((v,t)=>this._notifyRemoved(t,v.entry));this._size=0;this._db.clear()};q._getHitRate=function(){return this._hit/(this._hit+this._miss)};q._notifyRemoved=function(v,t){this._removeFuncs.forAll(u=>{if(v.startsWith(u[0]))u[1](t)})};q._checkSizeLimit=function(){if(!(this._size<=this._maxSize))for(const [v,t]of this._db)if(this._db.delete(v),1>=t.lives?(this._size-=t.size,this._notifyRemoved(v,t.entry)):(--t.lives,this._db.set(v,
t)),this._size<=.9*this.maxSize)break};b._createClass(k,[{key:"size",get:function(){return this._size}},{key:"maxSize",get:function(){return this._maxSize},set:function(v){this._maxSize=Math.max(v,0);this._checkSizeLimit()}}]);return k}();a.MIN_PRIORITY=-3;a.MemCache=g;a.MemCacheStorage=f;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/renderers/DotDensityRenderer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/lang ../core/accessorSupport/decorators/aliasOf ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/subclass ../layers/support/fieldUtils ./Renderer ./mixins/VisualVariablesMixin ./support/AttributeColorInfo ./support/DotDensityLegendOptions ../symbols/SimpleFillSymbol ../symbols/SimpleLineSymbol".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x){var C;k=C=function(D){function A(r){r=D.call(this,r)||this;r.attributes=null;r.backgroundColor=new c([0,0,0,0]);r.blendDots=!0;r.dotBlendingEnabled=!0;r.dotShape="square";r.dotSize=1;r.legendOptions=null;r.outline=new x;r.dotValue=null;r.referenceDotValue=null;r.referenceScale=null;r.seed=1;r.type="dot-density";return r}a._inheritsLoose(A,D);var B=A.prototype;B.calculateDotValue=function(r){if(null==this.referenceScale)return this.dotValue;r=r/this.referenceScale*
this.dotValue;return 1>r?1:r};B.getSymbol=function(){return new w({outline:this.outline})};B.getSymbolAsync=function(){var r=a._asyncToGenerator(function*(){return this.getSymbol()});return function(){return r.apply(this,arguments)}}();B.getSymbols=function(){return[this.getSymbol()]};B.getAttributeHash=function(){return this.attributes&&this.attributes.reduce((r,z)=>r+z.getAttributeHash(),"")};B.getMeshHash=function(){return JSON.stringify(this.outline)};B.clone=function(){return new C({attributes:g.clone(this.attributes),
backgroundColor:g.clone(this.backgroundColor),dotBlendingEnabled:g.clone(this.dotBlendingEnabled),dotShape:g.clone(this.dotShape),dotSize:g.clone(this.dotSize),dotValue:g.clone(this.dotValue),legendOptions:g.clone(this.legendOptions),outline:g.clone(this.outline),referenceScale:g.clone(this.referenceScale),visualVariables:g.clone(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})};B.getControllerHash=function(){const r=this.attributes.map(E=>E.field||E.valueExpression||
""),z=this.outline&&JSON.stringify(this.outline.toJSON())||"";return`${r}-${z}`};B.collectRequiredFields=function(){var r=a._asyncToGenerator(function*(z,E){yield this.collectVVRequiredFields(z,E);for(const F of this.attributes)F.valueExpression&&(yield p.collectArcadeFieldNames(z,E,F.valueExpression)),F.field&&z.add(F.field)});return function(z,E){return r.apply(this,arguments)}}();return A}(l.VisualVariablesMixin(e));b.__decorate([u.property({type:[h],json:{write:!0}})],k.prototype,"attributes",
void 0);b.__decorate([u.property({type:c,json:{write:!0}})],k.prototype,"backgroundColor",void 0);b.__decorate([u.property({type:Boolean}),f.aliasOf("dotBlendingEnabled")],k.prototype,"blendDots",void 0);b.__decorate([u.property({type:Boolean,json:{write:!0}})],k.prototype,"dotBlendingEnabled",void 0);b.__decorate([u.property({type:String,json:{write:!1}})],k.prototype,"dotShape",void 0);b.__decorate([u.property({type:Number,json:{write:!1}})],k.prototype,"dotSize",void 0);b.__decorate([u.property({type:n,
json:{write:!0}})],k.prototype,"legendOptions",void 0);b.__decorate([u.property({type:x,json:{default:null,write:!0}})],k.prototype,"outline",void 0);b.__decorate([u.property({type:Number,json:{write:!0}})],k.prototype,"dotValue",void 0);b.__decorate([u.property({type:Number}),f.aliasOf("dotValue")],k.prototype,"referenceDotValue",void 0);b.__decorate([u.property({type:Number,json:{write:!0}})],k.prototype,"referenceScale",void 0);b.__decorate([u.property({type:Number,json:{write:!0}})],k.prototype,
"seed",void 0);b.__decorate([t.enumeration({dotDensity:"dot-density"})],k.prototype,"type",void 0);return k=C=b.__decorate([m.subclass("esri.renderers.DotDensityRenderer")],k)})},"esri/renderers/support/AttributeColorInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/Logger ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/decorators/cast ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/ensureType".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){var p;const e=f.getLogger("esri.renderers.support.AttributeColorInfo");g=p=function(l){function h(w){w=l.call(this,w)||this;w.color=null;w.field=null;w.label=null;w.valueExpression=null;w.valueExpressionTitle=null;return w}a._inheritsLoose(h,l);var n=h.prototype;n.castField=function(w){return null==w?w:"function"===typeof w?(e.error(".field: field must be a string value"),null):m.ensureString(w)};n.getAttributeHash=function(){return`${this.field}-${this.valueExpression}`};
n.clone=function(){return new p({color:this.color&&this.color.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})};return h}(g.JSONSupport);b.__decorate([k.property({type:c,json:{type:[Number],write:!0}})],g.prototype,"color",void 0);b.__decorate([k.property({type:String,json:{write:!0}})],g.prototype,"field",void 0);b.__decorate([v.cast("field")],g.prototype,"castField",null);b.__decorate([k.property({type:String,json:{write:!0}})],
g.prototype,"label",void 0);b.__decorate([k.property({type:String,json:{write:!0}})],g.prototype,"valueExpression",void 0);b.__decorate([k.property({type:String,json:{write:!0}})],g.prototype,"valueExpressionTitle",void 0);return g=p=b.__decorate([u.subclass("esri.renderers.support.AttributeColorInfo")],g)})},"esri/renderers/support/DotDensityLegendOptions":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;c=u=function(m){function p(){var e=m.apply(this,arguments)||this;e.unit=null;return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({unit:this.unit})};return p}(c.JSONSupport);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"unit",void 0);return c=u=b.__decorate([t.subclass("esri.renderers.support.DotDensityLegendOptions")],c)})},"esri/renderers/HeatmapRenderer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../layers/support/fieldUtils ./Renderer ./support/HeatmapColorStop".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){var l;k=l=function(h){function n(x){x=h.call(this,x)||this;x.blurRadius=10;x.colorStops=[new e({ratio:0,color:new c("rgba(255, 140, 0, 0)")}),new e({ratio:.75,color:new c("rgba(255, 140, 0, 1)")}),new e({ratio:.9,color:new c("rgba(255, 0,   0, 1)")})];x.field=null;x.fieldOffset=0;x.maxPixelIntensity=100;x.minPixelIntensity=0;x.type="heatmap";return x}a._inheritsLoose(n,h);var w=n.prototype;w.collectRequiredFields=function(){var x=a._asyncToGenerator(function*(C,
D){const A=this.field;A&&"string"===typeof A&&m.collectField(C,D,A)});return function(C,D){return x.apply(this,arguments)}}();w.getAttributeHash=function(){return null};w.getMeshHash=function(){return`${JSON.stringify(this.colorStops)}.${this.blurRadius}.${this.field}`};w.clone=function(){return new l({blurRadius:this.blurRadius,colorStops:g.clone(this.colorStops),field:this.field,maxPixelIntensity:this.maxPixelIntensity,minPixelIntensity:this.minPixelIntensity})};return n}(p);b.__decorate([f.property({type:Number,
json:{write:!0}})],k.prototype,"blurRadius",void 0);b.__decorate([f.property({type:[e],json:{write:!0}})],k.prototype,"colorStops",void 0);b.__decorate([f.property({type:String,json:{write:!0}})],k.prototype,"field",void 0);b.__decorate([f.property({type:Number,json:{write:{overridePolicy:(h,n,w)=>({enabled:null==w})}}})],k.prototype,"fieldOffset",void 0);b.__decorate([f.property({type:Number,json:{write:!0}})],k.prototype,"maxPixelIntensity",void 0);b.__decorate([f.property({type:Number,json:{write:!0}})],
k.prototype,"minPixelIntensity",void 0);b.__decorate([t.enumeration({heatmap:"heatmap"})],k.prototype,"type",void 0);return k=l=b.__decorate([u.subclass("esri.renderers.HeatmapRenderer")],k)})},"esri/renderers/support/HeatmapColorStop":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;g=m=function(p){function e(l){l=p.call(this,l)||this;l.color=null;l.ratio=null;return l}a._inheritsLoose(e,p);e.prototype.clone=function(){return new m({color:this.color,ratio:this.ratio})};return e}(g.JSONSupport);b.__decorate([f.property({type:c,json:{write:!0}})],g.prototype,"color",void 0);b.__decorate([f.property({type:Number,json:{write:!0}})],g.prototype,"ratio",void 0);return g=m=b.__decorate([u.subclass("esri.renderers.support.HeatmapColorStop")],g)})},
"esri/renderers/SimpleRenderer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Renderer ./mixins/VisualVariablesMixin ./support/commonProperties".split(" "),function(a,b,c,g,f,k,q,v,t,u,m,p){var e;f=e=function(l){function h(w){w=l.call(this,w)||this;w.description=
null;w.label=null;w.symbol=null;w.type="simple";return w}a._inheritsLoose(h,l);var n=h.prototype;n.collectRequiredFields=function(){var w=a._asyncToGenerator(function*(x,C){yield Promise.all([this.collectSymbolFields(x,C),this.collectVVRequiredFields(x,C)])});return function(x,C){return w.apply(this,arguments)}}();n.collectSymbolFields=function(){var w=a._asyncToGenerator(function*(x,C){yield Promise.all(this.getSymbols().map(D=>D.collectRequiredFields(x,C)))});return function(x,C){return w.apply(this,
arguments)}}();n.getSymbol=function(w,x){return this.symbol};n.getSymbolAsync=function(){var w=a._asyncToGenerator(function*(x,C){return this.symbol});return function(x,C){return w.apply(this,arguments)}}();n.getSymbols=function(){return this.symbol?[this.symbol]:[]};n.getAttributeHash=function(){return this.visualVariables&&this.visualVariables.reduce((w,x)=>w+x.getAttributeHash(),"")};n.getMeshHash=function(){return this.getSymbols().reduce((w,x)=>w+=JSON.stringify(x),"")};n.clone=function(){return new e({description:this.description,
label:this.label,symbol:this.symbol&&this.symbol.clone(),visualVariables:c.clone(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})};a._createClass(h,[{key:"arcadeRequired",get:function(){return this.arcadeRequiredForVisualVariables}}]);return h}(m.VisualVariablesMixin(u));b.__decorate([g.property({type:String,json:{write:!0}})],f.prototype,"description",void 0);b.__decorate([g.property({type:String,json:{write:!0}})],f.prototype,"label",void 0);b.__decorate([g.property(p.rendererSymbolProperty)],
f.prototype,"symbol",void 0);b.__decorate([v.enumeration({simple:"simple"})],f.prototype,"type",void 0);return f=e=b.__decorate([t.subclass("esri.renderers.SimpleRenderer")],f)})},"esri/renderers/UniqueValueRenderer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../symbols ../core/Error ../core/lang ../core/Logger ../core/maybe ../core/object ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/has ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../core/accessorSupport/diffUtils ../core/accessorSupport/ensureType ../layers/support/fieldUtils ../portal/Portal ./Renderer ./mixins/VisualVariablesMixin ./support/commonProperties ./support/LegendOptions ./support/UniqueValueInfo ../support/arcadeOnDemand ../chunks/persistableUrlUtils ../symbols/support/styleUtils ../symbols/WebStyleSymbol".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r,z,E,F,G,N){var K;const I=k.getLogger("esri.renderers.UniqueValueRenderer"),J=w.ensureType(z);k=K=function(L){function Q(V){V=L.call(this,V)||this;V._valueInfoMap={};V._isDefaultSymbolDerived=!1;V.type="unique-value";V.backgroundFillSymbol=null;V.field=null;V.field2=null;V.field3=null;V.valueExpression=null;V.valueExpressionTitle=null;V.legendOptions=null;V.defaultLabel=null;V.fieldDelimiter=null;V.portal=null;V.styleOrigin=null;V.diff={uniqueValueInfos(P,
X){if(P||X){if(!P||!X)return{type:"complete",oldValue:P,newValue:X};var U=!1,Z={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let oa=0;oa<X.length;oa++){const xa=P.find(Ea=>Ea.value===X[oa].value);xa?n.diff(xa,X[oa])?(Z.changed.push({type:"complete",oldValue:xa,newValue:X[oa]}),U=!0):Z.unchanged.push({oldValue:xa,newValue:X[oa]}):(Z.added.push(X[oa]),U=!0)}for(let oa=0;oa<P.length;oa++)X.find(xa=>xa.value===P[oa].value)||(Z.removed.push(P[oa]),U=!0);return U?Z:void 0}}};V._set("uniqueValueInfos",
[]);return V}a._inheritsLoose(Q,L);var W=Q.prototype;W.castField=function(V){return null==V||"function"===typeof V?V:w.ensureString(V)};W.writeField=function(V,P,X,U){"string"===typeof V?P[X]=V:U&&U.messages?U.messages.push(new g("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):I.error(".field: cannot write field to JSON since it's not a string value")};W.readPortal=function(V,P,X){return X.portal||C.getDefault()};W.readStyleOrigin=function(V,P,X){if(P.styleName)return Object.freeze({styleName:P.styleName});
if(P.styleUrl)return V=F.fromJSON(P.styleUrl,X),Object.freeze({styleUrl:V})};W.writeStyleOrigin=function(V,P,X,U){V.styleName?P.styleName=V.styleName:V.styleUrl&&(P.styleUrl=F.toJSON(V.styleUrl,U))};W.addUniqueValueInfo=function(V,P){this.styleOrigin?I.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(V="object"===typeof V?J(V):new z({value:V,symbol:c.ensureType(P)}),this.uniqueValueInfos.push(V),this._valueInfoMap[V.value]=V)};W.removeUniqueValueInfo=
function(V){if(this.styleOrigin)I.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");else for(let P=0;P<this.uniqueValueInfos.length;P++)if(this.uniqueValueInfos[P].value===V+""){delete this._valueInfoMap[V];this.uniqueValueInfos.splice(P,1);break}};W.getUniqueValueInfo=function(){var V=a._asyncToGenerator(function*(P,X){let U=X;this.valueExpression&&(q.isNone(X)||q.isNone(X.arcade))&&(U={...U,arcade:yield E.loadArcade()});return this._getUniqueValueInfo(P,
U)});return function(P,X){return V.apply(this,arguments)}}();W.getSymbol=function(V,P){if(this.valueExpression&&(q.isNone(P)||q.isNone(P.arcade)))I.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");else return(V=this._getUniqueValueInfo(V,P))&&V.symbol||this.defaultSymbol};W.getSymbolAsync=function(){var V=a._asyncToGenerator(function*(P,X){if(this.valueExpression&&(q.isNone(X)||q.isNone(X.arcade))){const U=yield E.loadArcade(),{arcadeUtils:Z}=U;Z.hasGeometryOperations(this.valueExpression)&&
(yield Z.enableGeometryOperations());X={...X,arcade:U}}return(P=this._getUniqueValueInfo(P,X))&&P.symbol||this.defaultSymbol});return function(P,X){return V.apply(this,arguments)}}();W.getSymbols=function(){const V=[];for(const P of this.uniqueValueInfos)P.symbol&&V.push(P.symbol);this.defaultSymbol&&V.push(this.defaultSymbol);return V};W.getAttributeHash=function(){return this.visualVariables&&this.visualVariables.reduce((V,P)=>V+P.getAttributeHash(),"")};W.getMeshHash=function(){const V=JSON.stringify(this.backgroundFillSymbol),
P=JSON.stringify(this.defaultSymbol),X=this.uniqueValueInfos.reduce((U,Z)=>U+Z.getMeshHash(),"");return`${V}.${P}.${X}.${`${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}`}.${this.valueExpression}`};W.clone=function(){const V=new K({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:f.clone(this.defaultSymbol),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:f.clone(this.visualVariables),
legendOptions:f.clone(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:f.clone(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(V._isDefaultSymbolDerived=!0);V._set("portal",this.portal);const P=f.clone(this.uniqueValueInfos);this.styleOrigin&&(V._set("styleOrigin",Object.freeze(f.clone(this.styleOrigin))),Object.freeze(P));V._set("uniqueValueInfos",P);V._updateValueInfoMap();return V};W.collectRequiredFields=function(){var V=a._asyncToGenerator(function*(P,
X){P=[this.collectVVRequiredFields(P,X),this.collectSymbolFields(P,X)];yield Promise.all(P)});return function(P,X){return V.apply(this,arguments)}}();W.collectSymbolFields=function(){var V=a._asyncToGenerator(function*(P,X){const U=[...this.getSymbols().map(Z=>Z.collectRequiredFields(P,X)),x.collectArcadeFieldNames(P,X,this.valueExpression)];x.collectField(P,X,this.field);x.collectField(P,X,this.field2);x.collectField(P,X,this.field3);yield Promise.all(U)});return function(P,X){return V.apply(this,
arguments)}}();W.populateFromStyle=function(){return G.fetchStyle(this.styleOrigin,{portal:this.portal}).then(V=>{const P=[];this._valueInfoMap={};V&&V.data&&Array.isArray(V.data.items)&&V.data.items.forEach(X=>{var U=new N({styleUrl:V.styleUrl,styleName:V.styleName,portal:this.portal,name:X.name});this.defaultSymbol||X.name!==V.data.defaultItem||(this.defaultSymbol=U,this._isDefaultSymbolDerived=!0);U=new z({value:X.name,symbol:U});P.push(U);this._valueInfoMap[X.name]=U});this._set("uniqueValueInfos",
Object.freeze(P));!this.defaultSymbol&&this.uniqueValueInfos.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0);return this})};W._updateValueInfoMap=function(){this._valueInfoMap={};this.uniqueValueInfos.forEach(V=>this._valueInfoMap[V.value+""]=V)};W._getUniqueValueInfo=function(V,P){return this.valueExpression?this._getUnqiueValueInfoForExpression(V,P):this._getUnqiueValueInfoForFields(V)};W._getUnqiueValueInfoForExpression=function(V,P){const {viewingMode:X,
scale:U,spatialReference:Z,arcade:oa}=q.unwrapOr(P,{});var xa=this._cache.compiledFunc;P=q.unwrap(oa).arcadeUtils;xa||(xa=P.createSyntaxTree(this.valueExpression),xa=P.createFunction(xa),this._cache.compiledFunc=xa);V=P.executeFunction(xa,P.createExecContext(V,P.getViewInfo({viewingMode:X,scale:U,spatialReference:Z})));return this._valueInfoMap[V+""]};W._getUnqiueValueInfoForFields=function(V){const P=this.field,X=V.attributes;if("function"!==typeof P&&this.field2){V=this.field2;var U=this.field3;
const Z=[];P&&Z.push(X[P]);V&&Z.push(X[V]);U&&Z.push(X[U]);U=Z.join(this.fieldDelimiter||"")}else"function"===typeof P?U=P(V):P&&(U=X[P]);return this._valueInfoMap[U+""]};Q.fromPortalStyle=function(V,P){const X=new K(P&&P.properties);X._set("styleOrigin",Object.freeze({styleName:V}));X._set("portal",P&&P.portal||C.getDefault());P=X.populateFromStyle();P.catch(U=>{I.error(`#fromPortalStyle('${V}'[, ...])`,"Failed to create unique value renderer from style name",U)});return P};Q.fromStyleUrl=function(V,
P){P=new K(P&&P.properties);P._set("styleOrigin",Object.freeze({styleUrl:V}));P=P.populateFromStyle();P.catch(X=>{I.error(`#fromStyleUrl('${V}'[, ...])`,"Failed to create unique value renderer from style URL",X)});return P};a._createClass(Q,[{key:"_cache",get:function(){return{compiledFunc:null}}},{key:"defaultSymbol",set:function(V){this._isDefaultSymbolDerived=!1;this._set("defaultSymbol",V)}},{key:"uniqueValueInfos",set:function(V){this.styleOrigin?I.error("#uniqueValueInfos\x3d","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):
(this._set("uniqueValueInfos",V),this._updateValueInfoMap())}},{key:"arcadeRequired",get:function(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}}]);return Q}(A.VisualVariablesMixin(D));b.__decorate([t.property({readOnly:!0})],k.prototype,"_cache",null);b.__decorate([p.enumeration({uniqueValue:"unique-value"})],k.prototype,"type",void 0);b.__decorate([t.property(B.rendererBackgroundFillSymbolProperty)],k.prototype,"backgroundFillSymbol",void 0);b.__decorate([t.property({json:{type:String,
read:{source:"field1"},write:{target:"field1"}}})],k.prototype,"field",void 0);b.__decorate([u.cast("field")],k.prototype,"castField",null);b.__decorate([h.writer("field")],k.prototype,"writeField",null);b.__decorate([t.property({type:String,json:{write:!0}})],k.prototype,"field2",void 0);b.__decorate([t.property({type:String,json:{write:!0}})],k.prototype,"field3",void 0);b.__decorate([t.property({type:String,json:{write:!0}})],k.prototype,"valueExpression",void 0);b.__decorate([t.property({type:String,
json:{write:!0}})],k.prototype,"valueExpressionTitle",void 0);b.__decorate([t.property({type:r["default"],json:{write:!0}})],k.prototype,"legendOptions",void 0);b.__decorate([t.property({type:String,json:{write:!0}})],k.prototype,"defaultLabel",void 0);b.__decorate([t.property(v.deepMerge({...B.rendererSymbolProperty},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],k.prototype,
"defaultSymbol",null);b.__decorate([t.property({type:String,json:{write:!0}})],k.prototype,"fieldDelimiter",void 0);b.__decorate([t.property({type:C,readOnly:!0})],k.prototype,"portal",void 0);b.__decorate([e.reader("portal",["styleName"])],k.prototype,"readPortal",null);b.__decorate([t.property({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],k.prototype,"styleOrigin",void 0);b.__decorate([e.reader("styleOrigin",["styleName","styleUrl"])],k.prototype,"readStyleOrigin",
null);b.__decorate([h.writer("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],k.prototype,"writeStyleOrigin",null);b.__decorate([t.property({type:[z],json:{write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],k.prototype,"uniqueValueInfos",null);return k=K=b.__decorate([l.subclass("esri.renderers.UniqueValueRenderer")],k)})},"esri/core/accessorSupport/diffUtils":function(){define(["exports","../Accessor","../Collection","../maybe","./utils"],function(a,b,
c,g,f){function k(l){return l instanceof c?Object.keys(l.items):l instanceof b?f.getProperties(l).keys():l?Object.keys(l):[]}function q(l,h){return l instanceof c?l.items[h]:l[h]}function v(l,h){return Array.isArray(l)&&Array.isArray(h)?l.length!==h.length:!1}function t(l){return l?l.declaredClass:null}function u(l,h){const n=l.diff;if(n&&"function"===typeof n)return n(l,h);const w=k(l),x=k(h);if(0!==w.length||0!==x.length){if(!w.length||!x.length||v(l,h))return{type:"complete",oldValue:l,newValue:h};
var C=x.filter(B=>-1===w.indexOf(B)),D=w.filter(B=>-1===x.indexOf(B));D=w.filter(B=>-1<x.indexOf(B)&&q(l,B)!==q(h,B)).concat(C,D).sort();if((C=t(l))&&-1<e.indexOf(C)&&D.length)return{type:"complete",oldValue:l,newValue:h};var A;C=l instanceof b&&h instanceof b;for(const B of D){D=q(l,B);const r=q(h,B);!(C||"function"!==typeof D&&"function"!==typeof r)||D===r||null==D&&null==r||(D=n&&n[B]&&"function"===typeof n[B]?n[B](D,r):"object"===typeof D&&"object"===typeof r&&t(D)===t(r)?u(D,r):{type:"complete",
oldValue:D,newValue:r},g.isSome(D)&&(g.isSome(A)?A.diff[B]=D:A={type:"partial",diff:{[B]:D}}))}return A}}function m(l,h){if(g.isNone(l))return!1;h=h.split(".");for(const n of h){if("complete"===l.type)break;if("partial"===l.type){if(l=l.diff[n],!l)return!1}else return!1}return!0}function p(l){if(g.isNone(l))return!0;switch(l.type){case "complete":return!1;case "collection":for(const h of l.added)if(!p(h))return!1;for(const h of l.removed)if(!p(h))return!1;for(const h of l.changed)if(!p(h))return!1;
return!0;case "partial":for(const h in l.diff)if(!p(l.diff[h]))return!1;return!0}}const e=["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"];a.diff=function(l,h){if("function"!==typeof l&&"function"!==typeof h&&(l||h))return!l||!h||"object"===typeof l&&"object"===typeof h&&t(l)!==t(h)?{type:"complete",oldValue:l,newValue:h}:u(l,h)};a.hasDiff=m;a.hasDiffAny=function(l,h){for(const n of h)if(m(l,n))return!0;return!1};a.isEmpty=
p;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/renderers/support/UniqueValueInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../symbols ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../../symbols/support/jsonUtils".split(" "),function(a,b,c,g,f,k,q,v,t,u,m){var p;g=p=function(e){function l(n){n=
e.call(this,n)||this;n.description=null;n.label=null;n.symbol=null;n.value=null;return n}a._inheritsLoose(l,e);var h=l.prototype;h.clone=function(){return new p({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})};h.getMeshHash=function(){const n=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${n}`};return l}(g.JSONSupport);b.__decorate([f.property({type:String,json:{write:!0}})],g.prototype,"description",void 0);b.__decorate([f.property({type:String,
json:{write:!0}})],g.prototype,"label",void 0);b.__decorate([f.property({types:c.symbolTypesRenderer,json:{origins:{"web-scene":{types:c.symbolTypesRenderer3D,write:m.write}},write:m.write}})],g.prototype,"symbol",void 0);b.__decorate([f.property({type:[String,Number],json:{type:String,write:{writer:(e,l)=>{l.value=null==e?void 0:e.toString()}}}})],g.prototype,"value",void 0);return g=p=b.__decorate([u.subclass("esri.renderers.support.UniqueValueInfo")],g)})},"esri/symbols/support/styleUtils":function(){define("exports ../../request ../../symbols ../../core/devEnvironmentUtils ../../core/Error ../../core/urlUtils ../../portal/Portal ../../portal/PortalQueryParams ../../support/featureFlags ../../chunks/persistableUrlUtils ./jsonUtils ./StyleOrigin ./Thumbnail".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){function l(z,E){return B(z,E).then(F=>({data:F.data,baseUrl:k.removeFile(z),styleUrl:z}))}function h(z,E,F){E=E.portal||q.getDefault();let G;const N=`${E.url} - ${E.user&&E.user.username} - ${z}`;r[N]||(r[N]=n(z,E,F).then(K=>{G=K;return K.fetchData()}).then(K=>({data:K,baseUrl:G.itemUrl,styleName:z})));return r[N]}function n(z,E,F){return E.load(F).then(()=>{const G=new v({disableExtraQuery:!0,query:`owner:${"esri_en"} AND type:${"Style"} AND typekeywords:"${z}"`});
return E.queryItems(G,F)}).then(({results:G})=>{let N=null;const K=z.toLowerCase();if(G&&Array.isArray(G))for(const I of G)if(I.typeKeywords.some(J=>J.toLowerCase()===K)&&"Style"===I.type&&"esri_en"===I.owner){N=I;break}if(!N)throw new f("symbolstyleutils:style-not-found",`The style '${z}' could not be found`,{styleName:z});return N.load(F)})}function w(z,E,F){return z.styleUrl?l(z.styleUrl,F):z.styleName?h(z.styleName,E,F):Promise.reject(new f("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}
function x(z,E,F,G,N){var K=z.data;const I={portal:F.portal,url:k.urlToObject(z.baseUrl),origin:"portal-item"};K=K.items.find(V=>V.name===E);if(!K)return Promise.reject(new f("symbolstyleutils:symbol-name-not-found",`The symbol name '${E}' could not be found`,{symbolName:E}));let J=u.fromJSON(D(K,G),I),L=K.thumbnail&&K.thumbnail.href;const Q=K.thumbnail&&K.thumbnail.imageData;g.isDevEnvironment()&&(J=g.adjustStaticAGOUrl(J),L=g.adjustStaticAGOUrl(L));const W={portal:F.portal,url:k.urlToObject(k.removeFile(J)),
origin:"portal-item"};return B(J,N).then(V=>{V="cimRef"===G?C(V.data):V.data;if((V=m.fromJSON(V,W))&&c.isSymbol3D(V)){if(L){const P=u.fromJSON(L,I);V.thumbnail=new e["default"]({url:P})}else Q&&(V.thumbnail=new e["default"]({url:`data:image/png;base64,${Q}`}));z.styleUrl?V.styleOrigin=new p({portal:F.portal,styleUrl:z.styleUrl,name:E}):z.styleName&&(V.styleOrigin=new p({portal:F.portal,styleName:z.styleName,name:E}))}return V})}function C(z){return null===z||"CIMSymbolReference"===z.type?z:{type:"CIMSymbolReference",
symbol:z}}function D(z,E){if("cimRef"===E)return z.cimRef;if(z.formatInfos&&!t.enableWebStyleForceWOSR())for(const F of z.formatInfos)if("gltf"===F.type)return F.href;return z.webRef}function A(z,E,F){const G="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f\x3djson".replace(/\{SymbolName\}/gi,z.name);return B(G,F).then(N=>{N=C(N.data);return m.fromJSON(N,{portal:E.portal,url:k.urlToObject(k.removeFile(G)),origin:"portal-item"})})}
function B(z,E){E={responseType:"json",query:{f:"json"},...E};return b(k.normalize(z),E)}const r={};a.fetchStyle=w;a.fetchSymbolFromStyle=x;a.resolveWebStyleSymbol=function(z,E,F,G){return z.name?z.styleName&&"Esri2DPointSymbolsStyle"===z.styleName?A(z,E,G):w(z,E,G).then(N=>x(N,z.name,E,F,G)):Promise.reject(new f("symbolstyleutils:style-symbol-reference-name-missing","Missing name in style symbol reference"))};a.styleNameFromItem=function(z){for(const E of z.typeKeywords)if(/^Esri.*Style$/.test(E)&&
"Esri Style"!==E)return E};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/devEnvironmentUtils":function(){define(["exports","./global"],function(a,b){const c=/^devext.arcgis.com$/,g=/^qaext.arcgis.com$/,f=/^[\w-]*\.mapsdevext.arcgis.com$/,k=/^[\w-]*\.mapsqa.arcgis.com$/,q=[/^([\w-]*\.)?[\w-]*\.zrh-dev-local.esri.com$/,c,g,/^jsapps.esri.com$/,f,k];a.adjustStaticAGOUrl=function(v,t){return v?(t=t||b.location.hostname)?null!=t.match(c)||null!=t.match(f)?v.replace("static.arcgis.com",
"staticdev.arcgis.com"):null!=t.match(g)||null!=t.match(k)?v.replace("static.arcgis.com","staticqa.arcgis.com"):v:v:v};a.isDevEnvironment=function(v){v=v||b.location.hostname;return q.some(t=>{var u;return null!=(null==(u=v)?void 0:u.match(t))})};a.isTelemetryDevEnvironment=function(v){v=v||b.location.hostname;return[/^zrh-.+?\.esri\.com$/].concat(q).some(t=>{var u;return null!=(null==(u=v)?void 0:u.match(t))})};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/support/featureFlags":function(){define(["exports",
"../core/has"],function(a,b){a.disableContextNavigation=()=>!!b("enable-feature:disable-context-navigation");a.enableDirect3DObjectFeatureLayerDisplay=()=>!!b("enable-feature:direct-3d-object-feature-layer-display");a.enableWebStyleForceWOSR=()=>!!b("enable-feature:force-wosr");Object.defineProperty(a,"__esModule",{value:!0})})},"esri/renderers/support/jsonUtils":function(){define("exports ../../core/has ../../core/Error ../../core/object ../../core/Warning ../../core/accessorSupport/extensions/serializableProperty/reader ./types".split(" "),
function(a,b,c,g,f,k,q){function v(m,p){if(!p||"web-scene"!==p.origin)return!0;switch(m.type){case "simple":case "unique-value":case "class-breaks":return!0;case "heatmap":case "dictionary":case "dot-density":return!1;default:return!1}}function t(m,p,e){return m?m&&(m.styleName||m.styleUrl)&&"uniqueValue"!==m.type?(e&&e.messages&&e.messages.push(new f("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+m.type+"'",{definition:m,context:e})),null):u(m,p,
e):null}const u=k.createTypeReader({types:q.rendererTypes});a.fromJSON=function(m,p){return t(m,null,p)};a.read=t;a.write=function(m,p,e,l){m?v(m,l)?m=m.write({},l):(l.messages&&l.messages.push(new c("renderer:unsupported",`Renderer of type '${m.declaredClass}' are not supported in scenes.`,{renderer:m,context:l})),m=null):m=null;m&&g.setDeepValue(e,m,p)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/renderers/support/types":function(){define("exports ../ClassBreaksRenderer ../DictionaryRenderer ../DotDensityRenderer ../HeatmapRenderer ../Renderer ../SimpleRenderer ../UniqueValueRenderer".split(" "),
function(a,b,c,g,f,k,q,v){const t={key:"type",base:k,typeMap:{simple:q,"unique-value":v,"class-breaks":b},errorContext:"renderer"};a.rendererTypes={key:"type",base:k,typeMap:{heatmap:f,simple:q,"unique-value":v,"class-breaks":b,"dot-density":g,dictionary:c},errorContext:"renderer"};a.webSceneRendererTypes=t;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/MultiOriginJSONSupport":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./ReadOnlyMultiOriginJSONSupport ./accessorSupport/PropertyOrigin ./accessorSupport/utils ./accessorSupport/write ./accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){const u=p=>{p=function(e){function l(...n){return e.call(this,...n)||this}b._inheritsLoose(l,e);var h=l.prototype;h.clear=function(n,w="user"){return q.getProperties(this).store.delete(n,k.nameToId(w))};h.write=function(n={},w){n=n||{};v.write(this,n,w);return n};h.setAtOrigin=function(n,w,x){q.getProperties(this).setAtOrigin(n,w,k.nameToId(x))};h.removeOrigin=function(n){const w=q.getProperties(this).store;n=k.nameToId(n);const x=w.keys(n);for(const C of x)w.originOf(C)===
n&&w.set(C,w.get(C,n),6)};h.updateOrigin=function(n,w){const x=q.getProperties(this).store;w=k.nameToId(w);const C=this.get(n);for(let D=w+1;D<k.OriginIdNum;++D)x.delete(n,D);x.set(n,C,w)};h.toJSON=function(n){return this.write({},n)};return l}(p);p=c.__decorate([t.subclass("esri.core.WriteableMultiOriginJSONSupport")],p);p.prototype.toJSON.isDefaultToJSON=!0;return p},m=p=>{p=function(e){function l(...h){return e.call(this,...h)||this}b._inheritsLoose(l,e);return l}(u(f.ReadOnlyMultiOriginJSONMixin(p)));
return p=c.__decorate([t.subclass("esri.core.MultiOriginJSONSupport")],p)};a.MultiOriginJSONSupport=function(p){function e(){return p.apply(this,arguments)||this}b._inheritsLoose(e,p);return e}(m(g));a.MultiOriginJSONSupport=c.__decorate([t.subclass("esri.core.MultiOriginJSONSupport")],a.MultiOriginJSONSupport);a.MultiOriginJSONMixin=m;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/ReadOnlyMultiOriginJSONSupport":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./maybe ./accessorSupport/MultiOriginStore ./accessorSupport/PropertyOrigin ./accessorSupport/read ./accessorSupport/utils ./accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){const m=p=>{p=function(e){function l(...n){n=e.call(this,...n)||this;const w=f.assumeNonNull(t.getProperties(b._assertThisInitialized(n))),x=w.metadatas,C=w.store,D=new k;w.store=D;C.keys().forEach(A=>{D.set(A,C.get(A),0)});Object.keys(x).forEach(A=>{w.internalGet(A)&&D.set(A,w.internalGet(A),0)});return n}b._inheritsLoose(l,e);var h=l.prototype;h.read=function(n,w){v.read(this,n,w)};h.getAtOrigin=function(n,w){const x=t.getProperties(this).store,C=q.nameToId(w);if("string"===
typeof n)return x.get(n,C);const D={};n.forEach(A=>{D[A]=x.get(A,C)});return D};h.originOf=function(n){return q.idToName(this.originIdOf(n))};h.originIdOf=function(n){return t.getProperties(this).store.originOf(n)};h.revert=function(n,w){const x=t.getProperties(this).store,C=q.nameToId(w),D=t.getProperties(this);("string"===typeof n?"*"===n?x.keys(C):[n]:n).forEach(A=>{D.invalidate(A);x.revert(A,C);D.commit(A)})};return l}(p);return p=c.__decorate([u.subclass("esri.core.ReadOnlyMultiOriginJSONSupport")],
p)};a.ReadOnlyMultiOriginJSONSupport=function(p){function e(){return p.apply(this,arguments)||this}b._inheritsLoose(e,p);return e}(m(g));a.ReadOnlyMultiOriginJSONSupport=c.__decorate([u.subclass("esri.core.ReadOnlyMultiOriginJSONSupport")],a.ReadOnlyMultiOriginJSONSupport);a.ReadOnlyMultiOriginJSONMixin=m;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/accessorSupport/MultiOriginStore":function(){define(["../lang","../maybe","./PropertyOrigin"],function(a,b,c){return function(){function g(){this._propertyOriginMap=
new Map;this._originStores=Array(c.OriginIdNum);this._values=new Map}var f=g.prototype;f.clone=function(k){const q=new g;var v=this._originStores[0];v&&v.forEach((t,u)=>{q.set(u,a.clone(t),0)});for(let t=2;t<c.OriginIdNum;t++)(v=this._originStores[t])&&v.forEach((u,m)=>{k&&k.has(m)||q.set(m,a.clone(u),t)});return q};f.get=function(k,q){return(q=void 0===q?this._values:this._originStores[q])?q.get(k):void 0};f.keys=function(k){return(k=null==k?this._values:this._originStores[k])?[...k.keys()]:[]};
f.set=function(k,q,v=6){var t=this._originStores[v];t||(t=new Map,this._originStores[v]=t);t.set(k,q);return!this._values.has(k)||b.assumeNonNull(this._propertyOriginMap.get(k))<=v?(t=this._values.get(k),this._values.set(k,q),this._propertyOriginMap.set(k,v),t!==q):!1};f.delete=function(k,q=6){var v=this._originStores[q];if(v){var t=v.get(k);v.delete(k);if(this._values.has(k)&&this._propertyOriginMap.get(k)===q)for(this._values.delete(k),--q;0<=q;q--)if((v=this._originStores[q])&&v.has(k)){this._values.set(k,
v.get(k));this._propertyOriginMap.set(k,q);break}return t}};f.has=function(k,q){return(q=void 0===q?this._values:this._originStores[q])?q.has(k):!1};f.revert=function(k,q){for(;0<q&&!this.has(k,q);)--q;var v=this._originStores[q];v=v&&v.get(k);const t=this._values.get(k);this._values.set(k,v);this._propertyOriginMap.set(k,q);return t!==v};f.originOf=function(k){return this._propertyOriginMap.get(k)||0};f.forEach=function(k){this._values.forEach(k)};return g}()})},"esri/form/FormTemplate":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/has ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./ExpressionInfo ./elements/GroupElement ./support/elements".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h){var n;const w=h.buildTypeMaps(l);c=n=function(x){function C(A){A=x.call(this,A)||this;A.description=null;A.elements=null;A.expressionInfos=null;A.title=null;return A}a._inheritsLoose(C,x);var D=C.prototype;D.castElements=function(A){return h.ensureType(A,w)};D.readElements=function(A,B){return h.fromJSON(B.formElements,w)};D.writeElements=function(A,B){B.formElements=h.toJSON(A,w)};D.clone=function(){return new n({description:this.description,expressionInfos:g.clone(this.expressionInfos),
elements:g.clone(this.elements),title:this.title})};return C}(c.JSONSupport);b.__decorate([f.property({type:String,json:{write:!0}})],c.prototype,"description",void 0);b.__decorate([f.property({json:{write:!0}})],c.prototype,"elements",void 0);b.__decorate([k.cast("elements")],c.prototype,"castElements",null);b.__decorate([u.reader("elements",["formElements"])],c.prototype,"readElements",null);b.__decorate([p.writer("elements")],c.prototype,"writeElements",null);b.__decorate([f.property({type:[e],
json:{write:!0}})],c.prototype,"expressionInfos",void 0);b.__decorate([f.property({type:String,json:{write:!0}})],c.prototype,"title",void 0);return c=n=b.__decorate([m.subclass("esri.form.FormTemplate")],c)})},"esri/form/ExpressionInfo":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;c=u=function(m){function p(e){e=m.call(this,e)||this;e.expression=null;e.name=null;e.returnType="boolean";e.title=null;return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})};return p}(c.JSONSupport);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"expression",void 0);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"name",
void 0);b.__decorate([g.property({type:["boolean"],json:{write:!0}})],c.prototype,"returnType",void 0);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"title",void 0);return c=u=b.__decorate([t.subclass("esri.form.ExpressionInfo")],c)})},"esri/form/elements/GroupElement":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/has ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./Element ../support/elements".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){var l;k=l=function(n){function w(C){C=n.call(this,C)||this;C.elements=null;C.initialState="expanded";C.type="group";return C}a._inheritsLoose(w,n);var x=w.prototype;x.castElements=function(C){return e.ensureType(C,h,!1)};x.readElements=function(C,D){return e.fromJSON(D.formElements,h,!1)};x.writeElements=function(C,D){D.formElements=e.toJSON(C,h,!1)};x.clone=function(){return new l({description:this.description,elements:c.clone(this.elements),initialState:this.initialState,
label:this.label,visibilityExpression:this.visibilityExpression})};return w}(p);b.__decorate([g.property({json:{write:!0}})],k.prototype,"elements",void 0);b.__decorate([f.cast("elements")],k.prototype,"castElements",null);b.__decorate([t.reader("elements",["formElements"])],k.prototype,"readElements",null);b.__decorate([m.writer("elements")],k.prototype,"writeElements",null);b.__decorate([g.property({type:["collapsed","expanded"],json:{write:!0}})],k.prototype,"initialState",void 0);b.__decorate([g.property({type:String,
json:{read:!1,write:!0}})],k.prototype,"type",void 0);k=l=b.__decorate([u.subclass("esri.form.elements.GroupElement")],k);const h=e.buildTypeMaps(k);return k})},"esri/form/elements/Element":function(){define(["../../chunks/_rollupPluginBabelHelpers","../../chunks/tslib.es6","../../core/JSONSupport","../../core/accessorSupport/decorators/property","../../core/accessorSupport/decorators/subclass"],function(a,b,c,g,f){c=function(k){function q(v){v=k.call(this,v)||this;v.description=null;v.label=null;
v.type=null;v.visibilityExpression=null;return v}a._inheritsLoose(q,k);return q}(c.JSONSupport);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"description",void 0);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"label",void 0);b.__decorate([g.property()],c.prototype,"type",void 0);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"visibilityExpression",void 0);return c=b.__decorate([f.subclass("esri.form.elements.Element")],c)})},"esri/form/support/elements":function(){define("exports ../../core/accessorSupport/ensureType ../elements/AttachmentElement ../elements/Element ../elements/FieldElement ../elements/RelationshipElement".split(" "),
function(a,b,c,g,f,k){a.buildTypeMaps=function(q){return{typesWithGroup:{base:g,key:"type",typeMap:{attachment:c,field:f,group:q,relationship:k}},typesWithoutGroup:{base:g,key:"type",typeMap:{attachment:c,field:f,relationship:k}}}};a.ensureType=function(q,v,t=!0){return q?q.map(u=>b.ensureOneOfType(t?v.typesWithGroup:v.typesWithoutGroup,u)):null};a.fromJSON=function(q,v,t=!0){if(!q)return null;const u=t?v.typesWithGroup.typeMap:v.typesWithoutGroup.typeMap;return q.filter(m=>u[m.type]).map(m=>u[m.type].fromJSON(m))};
a.toJSON=function(q,v,t=!0){if(!q)return null;const u=t?v.typesWithGroup.typeMap:v.typesWithoutGroup.typeMap;return q.filter(m=>u[m.type]).map(m=>m.toJSON())};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/form/elements/AttachmentElement":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./Element ./inputs/AttachmentInput".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;g=m=function(p){function e(l){l=p.call(this,l)||this;l.attachmentKeyword=null;l.editable=!0;l.input=null;l.type="attachment";return l}a._inheritsLoose(e,p);e.prototype.clone=function(){return new m({attachmentKeyword:this.attachmentKeyword,description:this.description,editable:this.editable,input:this.input,label:this.label,visibilityExpression:this.visibilityExpression})};return e}(t);b.__decorate([c.property({type:String,json:{write:!0}})],g.prototype,"attachmentKeyword",
void 0);b.__decorate([c.property({type:Boolean,json:{write:!0}})],g.prototype,"editable",void 0);b.__decorate([c.property({type:u,json:{read:{source:"inputType"},write:{target:"inputType"}}})],g.prototype,"input",void 0);b.__decorate([c.property({type:["attachment"],json:{read:!1,write:!0}})],g.prototype,"type",void 0);return g=m=b.__decorate([v.subclass("esri.form.elements.AttachmentElement")],g)})},"esri/form/elements/inputs/AttachmentInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;c=u=function(m){function p(e){e=m.call(this,e)||this;e.type=null;return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({type:this.type})};return p}(c.JSONSupport);b.__decorate([g.property({type:"attachment audio document image signature video".split(" "),json:{write:!0}})],c.prototype,"type",void 0);return c=u=b.__decorate([t.subclass("esri.form.elements.inputs.AttachmentInput")],c)})},"esri/form/elements/FieldElement":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./Element ./support/inputs ../../layers/support/domains".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){var p;g=p=function(e){function l(h){h=e.call(this,h)||this;h.domain=null;h.editable=!0;h.fieldName=null;h.hint=null;h.input=null;h.requiredExpression=null;h.type="field";return h}a._inheritsLoose(l,e);l.prototype.clone=function(){return new p({description:this.description,domain:this.domain,editable:this.editable,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,visibilityExpression:this.visibilityExpression})};
return l}(t);b.__decorate([c.property({types:m.types,json:{read:{reader:m.fromJSON},write:!0}})],g.prototype,"domain",void 0);b.__decorate([c.property({type:Boolean,json:{write:!0}})],g.prototype,"editable",void 0);b.__decorate([c.property({type:String,json:{write:!0}})],g.prototype,"fieldName",void 0);b.__decorate([c.property({type:String,json:{write:!0}})],g.prototype,"hint",void 0);b.__decorate([c.property({types:u.types,json:{read:{source:"inputType"},write:{target:"inputType"}}})],g.prototype,
"input",void 0);b.__decorate([c.property({type:String,json:{write:!0}})],g.prototype,"requiredExpression",void 0);b.__decorate([c.property({type:String,json:{read:!1,write:!0}})],g.prototype,"type",void 0);return g=p=b.__decorate([v.subclass("esri.form.elements.FieldElement")],g)})},"esri/form/elements/support/inputs":function(){define("exports ../inputs/BarcodeScannerInput ../inputs/ComboBoxInput ../inputs/DateTimePickerInput ../inputs/Input ../inputs/RadioButtonsInput ../inputs/SwitchInput ../inputs/TextAreaInput ../inputs/TextBoxInput".split(" "),
function(a,b,c,g,f,k,q,v,t){a.types={base:f,key:"type",typeMap:{"barcode-scanner":b,"combo-box":c,"datetime-picker":g,"radio-buttons":k,"switch":q,"text-area":v,"text-box":t}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/form/elements/inputs/BarcodeScannerInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ./TextInput".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;g=u=function(m){function p(e){e=m.call(this,e)||this;e.type="barcode-scanner";return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({maxLength:this.maxLength,minLength:this.minLength})};return p}(t);b.__decorate([c.property({type:["barcode-scanner"],json:{read:!1,write:!0}})],g.prototype,"type",void 0);return g=u=b.__decorate([v.subclass("esri.form.elements.inputs.BarcodeScannerInput")],g)})},"esri/form/elements/inputs/TextInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),
function(a,b,c,g,f,k,q,v,t){g=function(u){function m(p){p=u.call(this,p)||this;p.maxLength=null;p.minLength=0;return p}a._inheritsLoose(m,u);return m}(t);b.__decorate([c.property({type:Number,json:{write:!0}})],g.prototype,"maxLength",void 0);b.__decorate([c.property({type:Number,json:{write:!0}})],g.prototype,"minLength",void 0);return g=b.__decorate([v.subclass("esri.form.elements.inputs.TextInput")],g)})},"esri/form/elements/inputs/Input":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){c=function(u){function m(p){p=u.call(this,p)||this;p.type=null;return p}a._inheritsLoose(m,u);return m}(c.JSONSupport);b.__decorate([g.property()],c.prototype,"type",void 0);return c=b.__decorate([t.subclass("esri.form.elements.inputs.Input")],c)})},"esri/form/elements/inputs/ComboBoxInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;g=u=function(m){function p(e){e=m.call(this,e)||this;e.noValueOptionLabel=null;e.showNoValueOption=!1;e.type="combo-box";return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})};return p}(t);b.__decorate([c.property({type:String,json:{write:!0}})],g.prototype,"noValueOptionLabel",void 0);b.__decorate([c.property({type:Boolean,json:{write:!0}})],g.prototype,"showNoValueOption",
void 0);b.__decorate([c.property({type:["combo-box"],json:{read:!1,write:!0}})],g.prototype,"type",void 0);return g=u=b.__decorate([v.subclass("esri.form.elements.inputs.ComboBoxInput")],g)})},"esri/form/elements/inputs/DateTimePickerInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/reader ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer ./Input".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){function p(l){return null!=l?new Date(l):null}var e;g=e=function(l){function h(w){w=l.call(this,w)||this;w.includeTime=!1;w.max=null;w.min=null;w.type="datetime-picker";return w}a._inheritsLoose(h,l);var n=h.prototype;n.readMax=function(w,x){return p(x.max)};n.writeMax=function(w,x){x.max=w?w.getTime():null};n.readMin=function(w,x){return p(x.min)};n.writeMin=function(w,x){x.min=w?w.getTime():null};n.clone=function(){return new e({includeTime:this.includeTime,max:this.max,
min:this.min,type:this.type})};return h}(m);b.__decorate([c.property({type:Boolean,json:{write:!0}})],g.prototype,"includeTime",void 0);b.__decorate([c.property({type:Date,json:{type:Number,write:!0}})],g.prototype,"max",void 0);b.__decorate([v.reader("max")],g.prototype,"readMax",null);b.__decorate([u.writer("max")],g.prototype,"writeMax",null);b.__decorate([c.property({type:Date,json:{type:Number,write:!0}})],g.prototype,"min",void 0);b.__decorate([v.reader("min")],g.prototype,"readMin",null);b.__decorate([u.writer("min")],
g.prototype,"writeMin",null);b.__decorate([c.property({type:["datetime-picker"],json:{read:!1,write:!0}})],g.prototype,"type",void 0);return g=e=b.__decorate([t.subclass("esri.form.elements.inputs.DateTimePickerInput")],g)})},"esri/form/elements/inputs/RadioButtonsInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;g=u=function(m){function p(e){e=m.call(this,e)||this;e.noValueOptionLabel=null;e.showNoValueOption=!1;e.type="radio-buttons";return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})};return p}(t);b.__decorate([c.property({type:String,json:{write:!0}})],g.prototype,"noValueOptionLabel",void 0);b.__decorate([c.property({type:Boolean,json:{write:!0}})],g.prototype,
"showNoValueOption",void 0);b.__decorate([c.property({type:["radio-buttons"],json:{read:!1,write:!0}})],g.prototype,"type",void 0);return g=u=b.__decorate([v.subclass("esri.form.elements.inputs.RadioButtonsInput")],g)})},"esri/form/elements/inputs/SwitchInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;g=u=function(m){function p(e){e=m.call(this,e)||this;e.offValue=null;e.onValue=null;e.type="switch";return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({offValue:this.offValue,onValue:this.onValue})};return p}(t);b.__decorate([c.property({type:[String,Number],json:{write:!0}})],g.prototype,"offValue",void 0);b.__decorate([c.property({type:[String,Number],json:{write:!0}})],g.prototype,"onValue",void 0);b.__decorate([c.property({type:["switch"],
json:{read:!1,write:!0}})],g.prototype,"type",void 0);return g=u=b.__decorate([v.subclass("esri.form.elements.inputs.SwitchInput")],g)})},"esri/form/elements/inputs/TextAreaInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ./TextInput".split(" "),function(a,
b,c,g,f,k,q,v,t){var u;g=u=function(m){function p(e){e=m.call(this,e)||this;e.type="text-area";return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({maxLength:this.maxLength,minLength:this.minLength})};return p}(t);b.__decorate([c.property({type:["text-area"],json:{read:!1,write:!0}})],g.prototype,"type",void 0);return g=u=b.__decorate([v.subclass("esri.form.elements.inputs.TextAreaInput")],g)})},"esri/form/elements/inputs/TextBoxInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ./TextInput".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;g=u=function(m){function p(e){e=m.call(this,e)||this;e.type="text-box";return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({maxLength:this.maxLength,minLength:this.minLength})};return p}(t);b.__decorate([c.property({type:["text-box"],json:{read:!1,write:!0}})],g.prototype,"type",void 0);return g=u=b.__decorate([v.subclass("esri.form.elements.inputs.TextBoxInput")],g)})},"esri/form/elements/RelationshipElement":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./Element ../../popup/support/RelatedRecordsInfoFieldOrder".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){var p;f=p=function(e){function l(h){h=e.call(this,h)||this;h.displayCount=null;h.displayType="list";h.editable=!0;h.orderByFields=null;h.relationshipId=null;h.type="relationship";return h}a._inheritsLoose(l,e);l.prototype.clone=function(){return new p({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editable:this.editable,label:this.label,orderByFields:c.clone(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})};
return l}(u);b.__decorate([g.property({type:Number,json:{write:!0}})],f.prototype,"displayCount",void 0);b.__decorate([g.property({type:["list"],json:{write:!0}})],f.prototype,"displayType",void 0);b.__decorate([g.property({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0);b.__decorate([g.property({type:[m],json:{write:!0}})],f.prototype,"orderByFields",void 0);b.__decorate([g.property({type:Number,json:{write:!0}})],f.prototype,"relationshipId",void 0);b.__decorate([g.property({type:["relationship"],
json:{read:!1,write:!0}})],f.prototype,"type",void 0);return f=p=b.__decorate([t.subclass("esri.form.elements.RelationshipElement")],f)})},"esri/geometry/HeightModelInfo":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/arrayUtils ../core/jsonMap ../core/JSONSupport ../core/unitUtils ../core/Warning ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l){function h(D,A){return new q("height-unit:unsupported",`Height unit of value '${D}' is not supported`,A)}function n(D,A){return new q("height-model:unsupported",`Height model of value '${D}' is not supported`,A)}var w;const x=g.strict()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"});t=x.jsonValues.slice();c.removeUnordered(t,"orthometric");const C=g.strict()({meter:"meters",foot:"feet","us-foot":"us-feet",
"clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});c=w=function(D){function A(r){r=D.call(this,r)||this;r.heightModel=
"gravity-related-height";r.heightUnit="meters";r.vertCRS=null;return r}a._inheritsLoose(A,D);var B=A.prototype;B.writeHeightModel=function(r,z,E){return x.write(r,z,E)};B.readHeightModel=function(r,z,E){if(z=x.read(r))return z;E&&E.messages&&E.messages.push(n(r,{context:E}));return null};B.readHeightUnit=function(r,z,E){if(z=C.read(r))return z;E&&E.messages&&E.messages.push(h(r,{context:E}));return null};B.readHeightUnitService=function(r,z,E){if(z=k.unitFromRESTJSON(r)||C.read(r))return z;E&&E.messages&&
E.messages.push(h(r,{context:E}));return null};B.readVertCRS=function(r,z){return z.vertCRS||z.ellipsoid||z.geoid};B.clone=function(){return new w({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})};B.equals=function(r){return r?this===r?!0:this.heightModel===r.heightModel&&this.heightUnit===r.heightUnit&&this.vertCRS===r.vertCRS:!1};A.deriveUnitFromSR=function(r,z){z=k.getVerticalUnitStringForSR(z);return new w({heightModel:r.heightModel,heightUnit:z,vertCRS:r.vertCRS})};
B.write=function(r,z){z={origin:"web-scene",...z};return D.prototype.write.call(this,r,z)};A.fromJSON=function(r){if(!r)return null;const z=new w;z.read(r,{origin:"web-scene"});return z};return A}(f.JSONSupport);b.__decorate([v.property({type:x.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:t,default:"ellipsoidal"}}}})],c.prototype,"heightModel",void 0);b.__decorate([l.writer("web-scene","heightModel")],c.prototype,"writeHeightModel",null);b.__decorate([p.reader(["web-scene","service"],
"heightModel")],c.prototype,"readHeightModel",null);b.__decorate([v.property({type:C.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:C.jsonValues,write:C.write}}}})],c.prototype,"heightUnit",void 0);b.__decorate([p.reader("web-scene","heightUnit")],c.prototype,"readHeightUnit",null);b.__decorate([p.reader("service","heightUnit")],c.prototype,"readHeightUnitService",null);b.__decorate([v.property({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],c.prototype,"vertCRS",
void 0);b.__decorate([p.reader("service","vertCRS",["vertCRS","ellipsoid","geoid"])],c.prototype,"readVertCRS",null);return c=w=b.__decorate([e.subclass("esri.geometry.HeightModelInfo")],c)})},"esri/layers/graphics/sources/MemorySource":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../geometry ../../../Graphic ../../../core/Collection ../../../core/Error ../../../core/has ../../../core/Loadable ../../../core/Logger ../../../core/maybe ../../../core/Promise ../../../core/workers/workers ../../../core/accessorSupport/decorators/property ../../../core/accessorSupport/ensureType ../../../core/jsonMap ../../../core/accessorSupport/decorators/shared ../../../core/accessorSupport/decorators/subclass ../../../rest/query/operations/queryZScale ../../../rest/query/operations/zscale ../../../rest/support/FeatureSet ../../../geometry/Extent ../../../geometry/Polygon ../../../geometry/support/typeUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r,z){let E=0;const F=u.getLogger("esri.layers.graphics.sources.MemorySource");a.MemorySource=function(G){function N(I){I=G.call(this,I)||this;I._idToClientGraphic=null;I.type="memory";return I}b._inheritsLoose(N,G);var K=N.prototype;K.load=function(I){I=m.isSome(I)?I.signal:null;this.addResolvingPromise(this._startWorker(I));return Promise.resolve(this)};K.destroy=function(){var I;null==(I=this._connection)?void 0:I.close();this._connection=null};
K.applyEdits=function(I){return this.load().then(()=>this._applyEdits(I))};K.openPorts=function(){return this.load().then(()=>this._connection.openPorts())};K.queryFeatures=function(){var I=b._asyncToGenerator(function*(J,L={}){yield this.load(L);L=yield this._connection.invoke("queryFeatures",J?J.toJSON():null,L);C.applyFeatureSetZUnitScaling(J,this.layer.spatialReference,L);J=A.fromJSON(L);if(!this._requiresClientGraphicMapping())return J;L=this.layer.objectIdField;for(const Q of J.features){const W=
this._idToClientGraphic.get(Q.attributes[L]);W&&(Q.geometry=W.geometry)}J.geometryType=this.layer.geometryType;return J});return function(J){return I.apply(this,arguments)}}();K.queryFeaturesJSON=function(){var I=b._asyncToGenerator(function*(J,L={}){if(this._requiresClientGraphicMapping())throw new q("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");yield this.load(L);L=yield this._connection.invoke("queryFeatures",J?J.toJSON():null,
L);C.applyFeatureSetZUnitScaling(J,this.layer.spatialReference,L);return L});return function(J){return I.apply(this,arguments)}}();K.queryFeatureCount=function(I,J={}){return this.load(J).then(()=>this._connection.invoke("queryFeatureCount",I?I.toJSON():null,J))};K.queryObjectIds=function(I,J={}){return this.load(J).then(()=>this._connection.invoke("queryObjectIds",I?I.toJSON():null,J))};K.queryExtent=function(I,J={}){return this.load(J).then(()=>this._connection.invoke("queryExtent",I?I.toJSON():
null,J)).then(L=>({count:L.count,extent:B.fromJSON(L.extent)}))};K.querySnapping=function(I,J={}){return this.load(J).then(()=>this._connection.invoke("querySnapping",I,J))};K._applyEdits=function(){var I=b._asyncToGenerator(function*(J){if(!this._connection)throw new q("feature-layer-source:edit-failure","Memory source not loaded");const L=this.layer.objectIdField;let Q=null;const W=[],V=[];yield Promise.all([this._prepareClientMapping(J.addFeatures,null),this._prepareClientMapping(J.updateFeatures,
null)]);const P=oa=>"objectId"in oa&&null!=oa.objectId?oa.objectId:"attributes"in oa&&null!=oa.attributes[L]?oa.attributes[L]:null;J.addFeatures&&(Q=this._prepareAddFeatures(J.addFeatures));if(J.deleteFeatures)for(var X of J.deleteFeatures){const oa=P(X);null!=oa&&W.push(oa)}X=J.updateFeatures&&this._idToClientGraphic?new Map:null;if(J.updateFeatures)for(const oa of J.updateFeatures)V.push(this._serializeFeature(oa)),X&&(J=P(oa),null!=J&&X.set(J,oa));D.unapplyEditsZUnitScaling(Q?Q.features:null,V,
this.layer.spatialReference);const {fullExtent:U,featureEditResults:Z}=yield this._connection.invoke("applyEdits",{adds:Q?Q.features:[],updates:V,deletes:W});this.fullExtent=U;Q&&Q.finish(Z.uidToObjectId);this._updateClientGraphicIds(X,Z);return this._createEditsResult(Z)});return function(J){return I.apply(this,arguments)}}();K._prepareClientMapping=function(){var I=b._asyncToGenerator(function*(J,L){if("mesh"===this.layerOrSourceGeometryType&&!m.isNone(J)){var Q=[];for(const {geometry:W}of J)!m.isSome(W)||
"mesh"!==W.type||W.hasExtent||W.loaded||Q.push(W.load({signal:L}));Q.length&&(yield Promise.all(Q))}});return function(J,L){return I.apply(this,arguments)}}();K._updateClientGraphicIds=function(I,J){if(this._idToClientGraphic){if(I)for(const L of J.updateResults){if(!L.success)continue;const Q=I.get(L.objectId);null!=Q&&this._addIdToClientGraphic(Q)}for(const L of J.deleteResults)L.success&&this._idToClientGraphic.delete(L.objectId)}};K._createEditsResult=function(I){return{addFeatureResults:I.addResults?
I.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:I.updateResults?I.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:I.deleteResults?I.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}};K._createFeatureEditResult=function(I){const J=!0===I.success?null:I.error||{code:void 0,description:void 0};return{objectId:I.objectId,globalId:I.globalId,error:J?new q("feature-layer-source:edit-failure",
J.description,{code:J.code}):null}};K._prepareAddFeatures=function(I){const J=new Map,L=Array(I.length);let Q=null;for(let V=0;V<I.length;V++){const P=I[V],X=this._serializeFeature(P);!Q&&m.isSome(P.geometry)&&(Q=P.geometry.type);L[V]=X;J.set(`${X.uid}`,P)}const W=this;return{features:L,inferredGeometryType:Q,finish(V){const P=W.sourceJSON.objectIdField;for(const X in V){const U=V[X],Z=J.get(X);Z&&(Z.attributes||(Z.attributes={}),-1===U?delete Z.attributes[P]:Z.attributes[P]=U,W._addIdToClientGraphic(Z))}}}};
K._addIdToClientGraphic=function(I){if(this._idToClientGraphic){var J=this.sourceJSON.objectIdField;J=I.attributes&&I.attributes[J];null!=J&&this._idToClientGraphic.set(J,I)}};K._requiresClientGraphicMapping=function(){return this._geometryTypeRequiresClientGraphicMapping(this.layerOrSourceGeometryType)};K._geometryRequiresClientGraphicMapping=function(I){return this._geometryTypeRequiresClientGraphicMapping(I.type)};K._geometryTypeRequiresClientGraphicMapping=function(I){return"mesh"===I||"multipatch"===
I||"extent"===I};K._serializeFeature=function(I){const {attributes:J}=I;I=this._geometryForSerialization(I);const L=(E++).toString();return I?{uid:L,geometry:I.toJSON(),attributes:J}:{uid:L,attributes:J}};K._geometryForSerialization=function(I){({geometry:I}=I);return m.isNone(I)?null:this._geometryRequiresClientGraphicMapping(I)?I.extent?r.fromExtent(I.extent):null:I};K._startWorker=function(){var I=b._asyncToGenerator(function*(J){this._connection=yield e.open("MemorySourceWorker",{strategy:v("feature-layers-workers")?
"dedicated":"local",signal:J});const {fields:L,spatialReference:Q,objectIdField:W,hasM:V,hasZ:P,timeInfo:X}=this.layer;var U="defaults"===this.layer.originOf("spatialReference");yield this._prepareClientMapping(this.items,J);const Z=this._prepareAddFeatures(this.items);this.on("before-changes",xa=>{F.error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead");xa.preventDefault()});U={features:Z.features,fields:L&&L.map(xa=>xa.toJSON()),geometryType:z.typeKebabDictionary.toJSON(this.workerGeometryType),
hasM:"mesh"===this.layerOrSourceGeometryType?!1:V,hasZ:"mesh"===this.layerOrSourceGeometryType?!0:P,objectIdField:W,spatialReference:U?null:Q&&Q.toJSON(),timeInfo:X?X.toJSON():null};J=yield this._connection.invoke("load",U,{signal:J});for(var oa of J.warnings)F.warn(oa.message,{layer:this.layer,warning:oa});J.featureErrors.length&&F.warn(`Encountered ${J.featureErrors.length} validation errors while loading features`,J.featureErrors);oa=J.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(Z.inferredGeometryType)&&
(oa.geometryType=z.typeKebabDictionary.toJSON(Z.inferredGeometryType));this.sourceJSON=oa;this._requiresClientGraphicMapping()&&(this._idToClientGraphic=new Map);Z.finish(J.assignedObjectIds)});return function(J){return I.apply(this,arguments)}}();b._createClass(N,[{key:"workerGeometryType",get:function(){var I;const J=null==(I=this.layer)?void 0:I.geometryType;return J?this._geometryTypeRequiresClientGraphicMapping(J)?"polygon":J:null}},{key:"layerOrSourceGeometryType",get:function(){var I,J,L;return null!=
(I=null==(J=this.layer)?void 0:J.geometryType)?I:null==(L=this.sourceJSON)?void 0:L.geometryType}}]);return N}(t.LoadableMixin(p.EsriPromiseMixin(k)));c.__decorate([w.shared({Type:f,ensureType:h.ensureType(f)})],a.MemorySource.prototype,"itemType",void 0);c.__decorate([l.property()],a.MemorySource.prototype,"type",void 0);c.__decorate([l.property({constructOnly:!0})],a.MemorySource.prototype,"layer",void 0);c.__decorate([l.property({readOnly:!0})],a.MemorySource.prototype,"workerGeometryType",null);
c.__decorate([l.property()],a.MemorySource.prototype,"sourceJSON",void 0);a.MemorySource=c.__decorate([x.subclass("esri.layers.graphics.sources.MemorySource")],a.MemorySource);a.default=a.MemorySource;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/workers/workers":function(){define("require exports ../../chunks/_rollupPluginBabelHelpers ../Error ../has ../promiseUtils ./Connection ./RemoteClient ./WorkerOwner".split(" "),function(a,b,c,g,f,k,q,v,t){function u(A){if(A&&A.__esModule)return A;
var B=Object.create(null);A&&Object.keys(A).forEach(function(r){if("default"!==r){var z=Object.getOwnPropertyDescriptor(A,r);Object.defineProperty(B,r,z.get?z:{enumerable:!0,get:function(){return A[r]}})}});B["default"]=A;return Object.freeze(B)}function m(A,B){return p.apply(this,arguments)}function p(){p=c._asyncToGenerator(function*(A,B){const r=new q;yield r.open(A,B);return r});return p.apply(this,arguments)}function e(){e=c._asyncToGenerator(function*(A,B={}){if("string"!==typeof A)throw new g("workers:undefined-module",
"modulePath is missing");var r=B.strategy||"distributed";f("host-webworker")&&!f("esri-workers")&&(r="local");if("local"===r){var z=yield v.loadWorker(A);z||(z=yield new Promise(function(E,F){a([A],function(G){E(u(G))},F)}));k.throwIfAborted(B.signal);r=B.client||z;z=v.connect(z);return m([z],{...B,client:r})}yield l();k.throwIfAborted(B.signal);if("dedicated"===r)return r=w++%n,r=yield x[r].open(A,B),m([r],B);if(B.maxNumWorkers&&0<B.maxNumWorkers&&(r=Math.min(B.maxNumWorkers,n),r<n)){z=Array(r);
for(let E=0;E<r;++E){const F=w++%n;z[E]=x[F].open(A,B)}return m(z,B)}r=x.map(E=>E.open(A,B));return m(r,B)});return e.apply(this,arguments)}function l(){return h.apply(this,arguments)}function h(){h=c._asyncToGenerator(function*(){if(C)return C;D=k.createAbortController();const A=[];for(let B=0;B<n;B++){const r=t.create(B).then(z=>x[B]=z);A.push(r)}return C=Promise.all(A)});return h.apply(this,arguments)}let n=f("esri-workers-debug")?1:f("host-browser")?navigator.hardwareConcurrency-1:0;n||(n=f("safari")&&
f("mac")||f("trident")?7:2);let w=0;const x=[];let C=null,D;b.Connection=q;b.RemoteClient=v;b.initialize=function(){l()};b.open=function(A){return e.apply(this,arguments)};b.openWithPorts=function(A,B){return m(A,{client:B})};b.terminate=function(){C&&(D.abort(),C=null);for(let A=0;A<x.length;A++)x[A]&&x[A].terminate();x.length=0};Object.defineProperty(b,"__esModule",{value:!0})})},"esri/core/workers/Connection":function(){define(["../../chunks/_rollupPluginBabelHelpers","../handleUtils","../Logger",
"../promiseUtils","./RemoteClient"],function(a,b,c,g,f){const k=c.getLogger("esri.core.workers.Connection");return function(){function q(){this._clients=[];this._clientPromises=[];this._clientIdx=0}var v=q.prototype;v.destroy=function(){this.close()};v.open=function(t,u){return new Promise((m,p)=>{let e=!0;const l=h=>{g.throwIfAborted(u.signal);e&&(e=!1,h())};this._clients.length=t.length;this._clientPromises.length=t.length;for(let h=0;h<t.length;++h){const n=t[h];g.isPromiseLike(n)?this._clientPromises[h]=
n.then(w=>{this._clients[h]=new f(w,u);l(m);return this._clients[h]},()=>{l(p);return null}):(this._clients[h]=new f(n,u),this._clientPromises[h]=Promise.resolve(this._clients[h]),l(m))}})};v.broadcast=function(t,u,m){const p=Array(this._clientPromises.length);for(let e=0;e<this._clientPromises.length;++e)p[e]=this._clientPromises[e].then(l=>l.invoke(t,u,m));return p};v.close=function(){for(const t of this._clientPromises)t.then(u=>u.close());this._clients.length=0;this._clientPromises.length=0};
v.getAvailableClient=function(){let t;for(let u=0;u<this._clients.length;++u){const m=this._clients[u];if(!m)t=t||[],t.push(this._clientPromises[u]);else if(!m.isBusy())return Promise.resolve(m)}return t?Promise.race(t):(this._clientIdx=(this._clientIdx+1)%this._clients.length,Promise.resolve(this._clients[this._clientIdx]))};v.invoke=function(t,u,m){let p=null;Array.isArray(m)?(k.warn("invoke()","The transferList parameter is deprecated, use the options object instead"),p={transferList:m}):p=m;return this.closed?
Promise.reject(Error("Connection closed")):this.getAvailableClient().then(e=>e.invoke(t,u,p))};v.on=function(t,u){return Promise.all(this._clientPromises).then(()=>b.handlesGroup(this._clients.map(m=>m.on(t,u))))};v.openPorts=function(){return new Promise(t=>{const u=Array(this._clientPromises.length);let m=u.length;for(let p=0;p<this._clientPromises.length;++p)this._clientPromises[p].then(e=>{u[p]=e.openPort();0===--m&&t(u)})})};a._createClass(q,[{key:"closed",get:function(){return!this._clients||
!this._clients.length}},{key:"test",get:function(){return{numClients:this._clients.length}}}]);return q}()})},"esri/core/workers/RemoteClient":function(){define("../../kernel ../Error ../events ../maybe ../promiseUtils ./registry ./utils ../../support/revision".split(" "),function(a,b,c,g,f,k,q,v){const {CLOSE:t,ABORT:u,INVOKE:m,RESPONSE:p,OPEN_PORT:e,ON:l}=q.MessageType;let h=function(){function w(C){this._timer=null;this._cancelledJobIds=new Set;this._invokeMessages=[];this._invoke=C;this._timer=
null;this._process=this._process.bind(this)}var x=w.prototype;x.push=function(C){C.type===q.MessageType.ABORT?this._cancelledJobIds.add(C.jobId):(this._invokeMessages.push(C),null===this._timer&&(this._timer=setTimeout(this._process,0)))};x.clear=function(){this._invokeMessages.length=0;this._cancelledJobIds.clear();this._timer=null};x._process=function(){this._timer=null;for(const C of this._invokeMessages)this._cancelledJobIds.has(C.jobId)||this._invoke(C);this._cancelledJobIds.clear();this._invokeMessages.length=
0};return w}(),n=function(){function w(C,D){this._port=C;this._outJobs=new Map;this._inJobs=new Map;this._invokeQueue=new h(A=>this._onInvokeMessage(A));this._client=D.client;this._onMessage=this._onMessage.bind(this);this._channel=D.channel;this._schedule=D.schedule;this._port.addEventListener("message",this._onMessage);this._port.start()}w.connect=function(C){const D=new MessageChannel;C="function"===typeof C?new C:"default"in C&&"function"===typeof C.default?new C.default:C;const A=new w(D.port1,
{channel:D,client:C});"object"===typeof C&&"remoteClient"in C&&(C.remoteClient=A);w.clients.set(A,C);return D.port2};w.loadWorker=function(C){return(C=k.registry[C])?C():Promise.resolve(null)};var x=w.prototype;x.close=function(){this._post({type:t});this._close()};x.isBusy=function(){return 0<this._outJobs.size};x.invoke=function(C,D,A){const B=A&&A.signal,r=A&&A.transferList;if(!this._port)return Promise.reject(new b("worker:port-closed",`Cannot call invoke('${C}'), port is closed`,{methodName:C,
data:D}));const z=q.newJobId();return new Promise((E,F)=>{const G=f.onAbortOrThrow(B,()=>{var N;const K=this._outJobs.get(z);K&&(this._outJobs.delete(z),null==(N=K.abortHandle)?void 0:N.remove(),this._post({type:u,jobId:z}),F(f.createAbortError()))});this._outJobs.set(z,{resolve:E,reject:F,abortHandle:G,debugInfo:C});this._post({type:m,jobId:z,methodName:C,abortable:null!=B},D,r)})};x.on=function(C,D){function A(r){D(r.data)}const B=new MessageChannel;this._port.postMessage({type:q.MessageType.ON,
eventType:C,port:B.port2},[B.port2]);B.port1.addEventListener("message",A);B.port1.start();return{remove(){B.port1.postMessage({type:q.MessageType.CLOSE});B.port1.close();B.port1.removeEventListener("message",A)}}};x.openPort=function(){const C=new MessageChannel;this._post({type:e,port:C.port2});return C.port1};x._close=function(){this._channel&&(this._channel=null);this._port.removeEventListener("message",this._onMessage);this._port.close();this._outJobs.forEach(C=>{var D;null==(D=C.abortHandle)?
void 0:D.remove();C.reject(f.createAbortError(`Worker closing, aborting job calling '${C.debugInfo}'`))});this._inJobs.clear();this._outJobs.clear();this._invokeQueue.clear();this._port=this._client=this._schedule=null};x._onMessage=function(C){g.isSome(this._schedule)?this._schedule(()=>this._processMessage(C)):this._processMessage(C)};x._processMessage=function(C){if(C=q.receiveMessage(C))switch(C.type){case p:this._onResponseMessage(C);break;case m:this._invokeQueue.push(C);break;case u:this._onAbortMessage(C);
break;case t:this._onCloseMessage();break;case e:this._onOpenPortMessage(C);break;case l:this._onOnMessage(C)}};x._onAbortMessage=function(C){const D=this._inJobs,A=C.jobId,B=D.get(A);this._invokeQueue.push(C);B&&(B.controller&&B.controller.abort(),D.delete(A))};x._onCloseMessage=function(){const C=this._client;this._close();C&&"destroy"in C&&w.clients.get(this)===C&&C.destroy();w.clients.delete(this);C&&C.remoteClient&&(C.remoteClient=null)};x._onInvokeMessage=function(C){const {methodName:D,jobId:A,
data:B,abortable:r}=C;C=r?f.createAbortController():null;const z=this._inJobs;let E=this._client,F=E[D],G;try{if(!F&&D&&-1!==D.indexOf(".")){const N=D.split(".");for(let K=0;K<N.length-1;K++)E=E[N[K]],F=E[N[K+1]]}if("function"!==typeof F)throw new TypeError(`${D} is not a function`);G=F.call(E,B,{client:this,signal:C?C.signal:null})}catch(N){this._post({type:p,jobId:A,error:q.toInvokeError(N)});return}f.isPromiseLike(G)?(z.set(A,{controller:C,promise:G}),G.then(N=>{z.has(A)&&(z.delete(A),this._post({type:p,
jobId:A},N))},N=>{z.has(A)&&(z.delete(A),f.isAbortError(N)||this._post({type:p,jobId:A,error:q.toInvokeError(N||{message:`Error encountered at method ${D}`})}))})):this._post({type:p,jobId:A},G)};x._onOpenPortMessage=function(C){new w(C.port,{client:this._client})};x._onOnMessage=function(C){const {port:D}=C,A=this._client.on(C.eventType,r=>{D.postMessage(r)}),B=c.on(C.port,"message",r=>{q.receiveMessage(r).type===q.MessageType.CLOSE&&(B.remove(),A.remove(),D.close())})};x._onResponseMessage=function(C){var D;
const {jobId:A,error:B,data:r}=C;C=this._outJobs;if(C.has(A)){var z=C.get(A);C.delete(A);null==(D=z.abortHandle)?void 0:D.remove();B?z.reject(b.fromJSON(JSON.parse(B))):z.resolve(r)}};x._post=function(C,D,A){return q.postMessage(this._port,C,D,A)};return w}();n.kernelInfo={revision:v.commitHash,version:a.version,buildDate:v.buildDate};n.clients=new Map;return n})},"esri/core/workers/registry":function(){define(["require","exports"],function(a,b){function c(g){return Object.freeze({__proto__:null,
"default":g})}b.registry={statsWorker:()=>new Promise(function(g,f){a(["../../smartMapping/statistics/support/statsWorker"],g,f)}),geometryEngineWorker:()=>new Promise(function(g,f){a(["../../geometry/geometryEngineWorker"],g,f)}),CSVSourceWorker:()=>new Promise(function(g,f){a(["../../layers/graphics/sources/support/CSVSourceWorker"],g,f)}),EdgeProcessingWorker:()=>new Promise(function(g,f){a(["../../views/3d/webgl-engine/lib/edgeRendering/EdgeProcessingWorker"],g,f)}),ElevationSamplerWorker:()=>
new Promise(function(g,f){a(["../../geometry/support/meshUtils/ElevationSamplerWorker"],g,f)}),FeatureServiceSnappingSourceWorker:()=>new Promise(function(g,f){a(["../../views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker"],g,f)}),GeoJSONSourceWorker:()=>new Promise(function(g,f){a(["../../layers/graphics/sources/geojson/GeoJSONSourceWorker"],function(k){g(c(k))},f)}),LercWorker:()=>new Promise(function(g,f){a(["../../layers/support/LercWorker"],function(k){g(c(k))},
f)}),MemorySourceWorker:()=>new Promise(function(g,f){a(["../../layers/graphics/sources/support/MemorySourceWorker"],function(k){g(c(k))},f)}),PBFDecoderWorker:()=>new Promise(function(g,f){a(["../../views/3d/support/PBFDecoderWorker"],function(k){g(c(k))},f)}),Pipeline:()=>new Promise(function(g,f){a(["../../views/2d/layers/features/Pipeline"],g,f)}),PointCloudWorker:()=>new Promise(function(g,f){a(["../../views/3d/layers/PointCloudWorker"],function(k){g(c(k))},f)}),RasterWorker:()=>new Promise(function(g,
f){a(["../../layers/support/RasterWorker"],function(k){g(c(k))},f)}),SceneLayerWorker:()=>new Promise(function(g,f){a(["../../views/3d/layers/SceneLayerWorker"],g,f)}),WFSSourceWorker:()=>new Promise(function(g,f){a(["../../layers/graphics/sources/WFSSourceWorker"],function(k){g(c(k))},f)}),WorkerTileHandler:()=>new Promise(function(g,f){a(["../../views/2d/engine/vectorTiles/WorkerTileHandler"],function(k){g(c(k))},f)})};Object.defineProperty(b,"__esModule",{value:!0})})},"esri/core/workers/utils":function(){define(["exports",
"../has"],function(a,b){function c(k){return k&&"object"===typeof k&&("result"in k||"transferList"in k)}function g(k){if(!k||!k.length)return null;if(b("esri-workers-arraybuffer-transfer"))return k;k=k.filter(q=>!(q instanceof ArrayBuffer||q&&q.constructor&&"ArrayBuffer"===q.constructor.name));return k.length?k:null}a.MessageType=void 0;(function(k){k[k.HANDSHAKE=0]="HANDSHAKE";k[k.OPEN=1]="OPEN";k[k.OPENED=2]="OPENED";k[k.RESPONSE=3]="RESPONSE";k[k.INVOKE=4]="INVOKE";k[k.ABORT=5]="ABORT";k[k.CLOSE=
6]="CLOSE";k[k.OPEN_PORT=7]="OPEN_PORT";k[k.ON=8]="ON"})(a.MessageType||(a.MessageType={}));let f=0;a.isTranferableResult=c;a.newJobId=function(){return f++};a.postMessage=function(k,q,v,t){q.type===a.MessageType.OPEN_PORT?k.postMessage(q,[q.port]):q.type!==a.MessageType.INVOKE&&q.type!==a.MessageType.RESPONSE?k.postMessage(q):(c(v)?(t=g(v.transferList),q.data=v.result):(t=g(t),q.data=v),t?k.postMessage(q,t):k.postMessage(q))};a.receiveMessage=function(k){return k?(k=k.data)?"string"===typeof k?JSON.parse(k):
k:null:null};a.toInvokeError=function(k){return k?"string"===typeof k?JSON.stringify({name:"message",message:k}):k.toJSON?JSON.stringify(k):JSON.stringify({name:k.name,message:k.message,details:k.details||{stack:k.stack}}):null};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/workers/WorkerOwner":function(){define("../../chunks/_rollupPluginBabelHelpers ../../kernel ../Error ../Logger ../promiseUtils ./utils ./workerFactory".split(" "),function(a,b,c,g,f,k,q){const v=g.getLogger("esri.core.workers"),
{ABORT:t,INVOKE:u,OPEN:m,OPENED:p,RESPONSE:e}=k.MessageType;return function(){function l(n,w){this._outJobs=new Map;this._inJobs=new Map;this.worker=n;this.id=w;n.addEventListener("message",this._onMessage.bind(this));n.addEventListener("error",x=>{x.preventDefault();v.error(x)})}l.create=function(){var n=a._asyncToGenerator(function*(w){const x=yield q.createWorker();return new l(x,w)});return function(w){return n.apply(this,arguments)}}();var h=l.prototype;h.terminate=function(){this.worker.terminate()};
h.open=function(){var n=a._asyncToGenerator(function*(w,x={}){const {signal:C}=x,D=k.newJobId();return new Promise((A,B)=>{const r=f.onAbortOrThrow(C,()=>{this._outJobs.delete(D);this._post({type:t,jobId:D})});this._outJobs.set(D,{resolve:A,reject:B,abortHandle:r});this._post({type:m,jobId:D,modulePath:w})})});return function(w){return n.apply(this,arguments)}}();h._onMessage=function(n){if(n=k.receiveMessage(n))switch(n.type){case p:this._onOpenedMessage(n);break;case e:this._onResponseMessage(n);
break;case t:this._onAbortMessage(n);break;case u:this._onInvokeMessage(n)}};h._onAbortMessage=function(n){const w=this._inJobs;n=n.jobId;const x=w.get(n);x&&(x.controller&&x.controller.abort(),w.delete(n))};h._onInvokeMessage=function(n){const {methodName:w,jobId:x,data:C,abortable:D}=n;n=D?f.createAbortController():null;const A=this._inJobs,B=b.workerMessages[w];let r;try{if("function"!==typeof B)throw new TypeError(`${w} is not a function`);r=B.call(null,C,{signal:n?n.signal:null})}catch(z){this._post({type:e,
jobId:x,error:k.toInvokeError(z)});return}f.isPromiseLike(r)?(A.set(x,{controller:n,promise:r}),r.then(z=>{A.has(x)&&(A.delete(x),this._post({type:e,jobId:x},z))},z=>{A.has(x)&&(A.delete(x),z||(z={message:"Error encountered at method"+w}),f.isAbortError(z)||this._post({type:e,jobId:x,error:k.toInvokeError(z||{message:`Error encountered at method ${w}`})}))})):this._post({type:e,jobId:x},r)};h._onOpenedMessage=function(n){var w;const {jobId:x,data:C}=n;if(n=this._outJobs.get(x))this._outJobs.delete(x),
null==(w=n.abortHandle)?void 0:w.remove(),n.resolve(C)};h._onResponseMessage=function(n){var w;const {jobId:x,error:C,data:D}=n;if(n=this._outJobs.get(x))this._outJobs.delete(x),null==(w=n.abortHandle)?void 0:w.remove(),C?n.reject(c.fromJSON(JSON.parse(C))):n.resolve(D)};h._post=function(n,w,x){return k.postMessage(this.worker,n,w,x)};return l}()})},"esri/core/workers/workerFactory":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../assets ../../config ../../intl ../../kernel ../has ../Logger ../urlUtils ./loaderConfig ./utils ./WorkerFallback ../../intl/locale ../../support/revision".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l){function h(){h=b._asyncToGenerator(function*(){if(!q("esri-workers"))return n(new p);if(!A&&!B)try{const E='let globalId\x3d0;const outgoing\x3dnew Map,configuration\x3dJSON.parse("{CONFIGURATION}");self.esriConfig\x3dconfiguration.esriConfig;const workerPath\x3dself.esriConfig.workers.workerPath,HANDSHAKE\x3d0,OPEN\x3d1,OPENED\x3d2,RESPONSE\x3d3,INVOKE\x3d4,ABORT\x3d5;function createAbortError(){const e\x3dnew Error("Aborted");return e.name\x3d"AbortError",e}function receiveMessage(e){return e\x26\x26e.data?"string"\x3d\x3dtypeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t\x3dr\x26\x26r.signal,n\x3dglobalId++;return new Promise(((r,i)\x3d\x3e{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()\x3d\x3e{outgoing.get(n)\x26\x26(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!\x3dt,data:o})}))}let workerRevisionChecked\x3d!1;function checkWorkerRevision(e){if(!workerRevisionChecked\x26\x26e.kernelInfo){workerRevisionChecked\x3d!0;const{revision:o,buildDate:r,version:t}\x3dconfiguration.kernelInfo,{revision:n,buildDate:i,version:s}\x3de.kernelInfo;o!\x3d\x3dn\x26\x26console.warn(`[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:\nAPI version: ${t} [Date: ${r}, Revision: ${o.slice(0,8)}]\nAssets version: ${s} [Date: ${i}, Revision: ${n.slice(0,8)}]`)}}function messageHandler(e){const o\x3dreceiveMessage(e);if(!o)return;const r\x3do.jobId;switch(o.type){case 1:let e;function t(o){const t\x3de.connect(o);self.postMessage({type:2,jobId:r,data:t},[t])}"function"\x3d\x3dtypeof define\x26\x26define.amd?require([workerPath],(r\x3d\x3e{e\x3dr.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e\x3d\x3ee||new Promise((e\x3d\x3e{require([o.modulePath],e)})))).then(t)})):"System"in self\x26\x26"function"\x3d\x3dtypeof System.import?System.import(workerPath).then((r\x3d\x3e(e\x3dr.default,checkWorkerRevision(e),e.loadWorker(o.modulePath)))).then((e\x3d\x3ee||System.import(o.modulePath))).then(t):(self.RemoteClient||importScripts(workerPath),e\x3dself.RemoteClient.default||self.RemoteClient,checkWorkerRevision(e),e.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const e\x3doutgoing.get(r);outgoing.delete(r),o.error?e.reject(JSON.parse(o.error)):e.resolve(o.data)}}}self.dojoConfig\x3dconfiguration.loaderConfig,esriConfig.workers.loaderUrl\x26\x26(self.importScripts(esriConfig.workers.loaderUrl),"function"\x3d\x3dtypeof require\x26\x26"function"\x3d\x3dtypeof require.config\x26\x26require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',
`'${x()}'`);A=URL.createObjectURL(new Blob([E],{type:"text/javascript"}))}catch(E){B=E||{}}let z;if(A)try{z=new Worker(A,{name:`esri-worker-${r++}`})}catch(E){C.warn("Failed to create Worker. Fallback to execute module in main thread",B),z=new p}else C.warn("Failed to create Worker. Fallback to execute module in main thread",B),z=new p;return n(z)});return h.apply(this,arguments)}function n(z){return w.apply(this,arguments)}function w(){w=b._asyncToGenerator(function*(z){return new Promise(E=>{function F(N){(N=
m.receiveMessage(N))&&N.type===D&&(z.removeEventListener("message",F),z.removeEventListener("error",G),E(z))}function G(N){N.preventDefault();z.removeEventListener("message",F);z.removeEventListener("error",G);C.warn("Failed to create Worker. Fallback to execute module in main thread",N);z=new p;z.addEventListener("message",F);z.addEventListener("error",G)}z.addEventListener("message",F);z.addEventListener("error",G)})});return w.apply(this,arguments)}function x(){if(null!=g["default"]){var z={...g};
delete z["default"];z=JSON.parse(JSON.stringify(z))}else z=JSON.parse(JSON.stringify(g));z.assetsPath=t.makeAbsolute(z.assetsPath);z.request.interceptors=[];z.log.interceptors=[];z.locale=e.getLocale();z.has={"csp-restrictions":q("csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":q("esri-2d-update-debug"),"esri-2d-query-centroid-enabled":q("esri-2d-query-centroid-enabled"),"featurelayer-pbf":q("featurelayer-pbf"),"esri-atomics":q("esri-atomics"),"esri-shared-array-buffer":q("esri-shared-array-buffer"),
"esri-tiles-debug":q("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":q("esri-workers-arraybuffer-transfer"),"host-webworker":1};z.workers.loaderUrl?z.workers.loaderUrl=t.makeAbsolute(z.workers.loaderUrl):u.DEFAULT_LOADER_URL&&(z.workers.loaderUrl=u.DEFAULT_LOADER_URL);z.workers.workerPath=z.workers.workerPath?t.makeAbsolute(z.workers.workerPath):"esri/core/workers/RemoteClient";var E=g.workers.loaderConfig;E=u["default"]({baseUrl:null==E?void 0:E.baseUrl,locale:e.getLocale(),has:{"csp-restrictions":q("csp-restrictions"),
"dojo-test-sniff":0,"host-webworker":1,...null==E?void 0:E.has},map:{...null==E?void 0:E.map},paths:{...null==E?void 0:E.paths},packages:(null==E?void 0:E.packages)||[]});return JSON.stringify({esriConfig:z,loaderConfig:E,kernelInfo:{version:k.version,buildDate:l.buildDate,revision:l.commitHash}})}const C=v.getLogger("esri.core.workers"),{HANDSHAKE:D}=m.MessageType;let A,B,r=0;a.createWorker=function(){return h.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/workers/loaderConfig":function(){define(["exports",
"../../assets","../has","../urlUtils"],function(a,b,c,g){a.DEFAULT_LOADER_URL=null;a.DEFAULT_LOADER_URL=g.makeAbsolute(b.getAssetUrl("esri/core/workers/init.js"));var f=g.makeAbsolute(b.getAssetUrl("dojo/"));var k=[{name:"esri",location:"../esri"}];a.default=function(q){const v={async:q.async,isDebug:q.isDebug,locale:q.locale,baseUrl:q.baseUrl,has:{...q.has},map:{...q.map},packages:q.packages&&q.packages.concat()||[],paths:{...q.paths}};q.hasOwnProperty("async")||(v.async=!0);q.hasOwnProperty("isDebug")||
(v.isDebug=!1);q.baseUrl||(v.baseUrl=f);null==k?void 0:k.forEach(t=>{a:{var u=v.packages;for(const m of u)if(m.name===t.name)break a;u.push(t)}});return v};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/workers/WorkerFallback":function(){define(["require","../../chunks/_rollupPluginBabelHelpers","../global","./RemoteClient","./utils"],function(a,b,c,g,f){function k(m){if(m&&m.__esModule)return m;var p=Object.create(null);m&&Object.keys(m).forEach(function(e){if("default"!==e){var l=
Object.getOwnPropertyDescriptor(m,e);Object.defineProperty(p,e,l.get?l:{enumerable:!0,get:function(){return m[e]}})}});p["default"]=m;return Object.freeze(p)}let q=function(){const m=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach(p=>{this[p]=(...e)=>m[p](...e)})};const v=c.MutationObserver||c.WebKitMutationObserver,t=function(){let m;if(c.process&&c.process.nextTick)m=p=>{c.process.nextTick(p)};else if(c.Promise)m=p=>{c.Promise.resolve().then(p)};
else if(v){const p=[],e=document.createElement("div");(new v(()=>{for(;0<p.length;)p.shift()()})).observe(e,{attributes:!0});m=l=>{p.push(l);e.setAttribute("queueStatus","1")}}return m}(),u=(()=>{const m=c.MessageEvent;try{new m("message",{data:null})}catch{return(p,e={})=>{const {data:l,bubbles:h=!1,cancelable:n=!1}=e;e=document.createEvent("Event");e.initEvent(p,h,n);e.data=l;return e}}return(p,e)=>new m(p,e)})();return function(){function m(){this._dispatcher=new q;this._workerPostMessage({type:f.MessageType.HANDSHAKE})}
var p=m.prototype;p.terminate=function(){};p.postMessage=function(e){t(()=>{this._workerMessageHandler(u("message",{data:e}))})};p.dispatchEvent=function(e){return this._dispatcher.dispatchEvent(e)};p.addEventListener=function(e,l,h){this._dispatcher.addEventListener(e,l,h)};p.removeEventListener=function(e,l,h){this._dispatcher.removeEventListener(e,l,h)};p._workerPostMessage=function(e){t(()=>{this.dispatchEvent(u("message",{data:e}))})};p._workerMessageHandler=function(){var e=b._asyncToGenerator(function*(l){if((l=
f.receiveMessage(l))&&l.type===f.MessageType.OPEN){const {modulePath:h,jobId:n}=l;(l=yield g.loadWorker(h))||(l=yield new Promise(function(w,x){a([h],function(C){w(k(C))},x)}));l=g.connect(l);this._workerPostMessage({type:f.MessageType.OPENED,jobId:n,data:l})}});return function(l){return e.apply(this,arguments)}}();b._createClass(m,[{key:"onmessage",get:function(){return this._onmessageHandler},set:function(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler);(this._onmessageHandler=
e)&&this.addEventListener("message",e)}},{key:"onmessageerror",get:function(){return this._onmessageerrorHandler},set:function(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler);(this._onmessageerrorHandler=e)&&this.addEventListener("messageerror",e)}},{key:"onerror",get:function(){return this._onerrorHandler},set:function(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler);(this._onerrorHandler=e)&&this.addEventListener("error",
e)}}]);return m}()})},"esri/core/accessorSupport/decorators/shared":function(){define(["exports"],function(a){a.shared=function(b){return(c,g)=>{c[g]=b}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/query/operations/queryZScale":function(){define(["exports","./zscale"],function(a,b){a.applyFeatureSetZUnitScaling=function(c,g,f){if(f&&f.features&&f.hasZ&&(c=b.getGeometryZScaler(f.geometryType,g,c.outSpatialReference)))for(const k of f.features)c(k.geometry)};Object.defineProperty(a,
"__esModule",{value:!0})})},"esri/rest/query/operations/zscale":function(){define(["exports","../../../core/maybe","../../../core/unitUtils","../../../geometry/support/spatialReferenceUtils"],function(a,b,c,g){function f(q,v,t){if(null==q.hasM||q.hasZ)for(const u of v)for(const m of u)2<m.length&&(m[2]*=t)}function k(q,v,t){if(q)for(const m of q){q=m.geometry;var u=t;if(q&&q.spatialReference&&!g.equals(q.spatialReference,v)&&(u=c.getMetersPerVerticalUnitForSR(q.spatialReference)/u,1!==u))if("x"in
q)null!=q.z&&(q.z*=u);else if("rings"in q)f(q,q.rings,u);else if("paths"in q)f(q,q.paths,u);else if("points"in q&&(null==q.hasM||q.hasZ))for(const p of q.points)2<p.length&&(p[2]*=u)}}a.getGeometryZScaler=function(q,v,t){if(b.isNone(v)||b.isNone(t)||t.vcsWkid||g.equals(v,t))return null;v=c.getMetersPerVerticalUnitForSR(v);t=c.getMetersPerVerticalUnitForSR(t);const u=v/t;if(1===u)return null;switch(q){case "point":case "esriGeometryPoint":return m=>{m&&null!=m.z&&(m.z*=u)};case "polyline":case "esriGeometryPolyline":return m=>
{if(m)for(const p of m.paths)for(const e of p)2<e.length&&(e[2]*=u)};case "polygon":case "esriGeometryPolygon":return m=>{if(m)for(const p of m.rings)for(const e of p)2<e.length&&(e[2]*=u)};case "multipoint":case "esriGeometryMultipoint":return m=>{if(m)for(const p of m.points)2<p.length&&(p[2]*=u)};default:return null}};a.unapplyEditsZUnitScaling=function(q,v,t){if((q||v)&&t){var u=c.getMetersPerVerticalUnitForSR(t);k(q,t,u);k(v,t,u)}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/support/FeatureSet":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../Graphic ../../core/jsonMap ../../core/JSONSupport ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/SpatialReference ../../geometry/support/jsonUtils ../../layers/support/Field".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w){const x=new f.JSONMap({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});f=function(C){function D(B){B=C.call(this,B)||this;B.displayFieldName=null;B.exceededTransferLimit=!1;B.features=[];B.fields=null;B.geometryType=null;B.hasM=!1;B.hasZ=!1;B.queryGeometry=null;B.spatialReference=null;return B}a._inheritsLoose(D,C);var A=D.prototype;
A.readFeatures=function(B,r){r=h.fromJSON(r.spatialReference);const z=[];for(let F=0;F<B.length;F++){var E=B[F];const G=g.fromJSON(E);E=E.geometry&&E.geometry.spatialReference;q.isSome(G.geometry)&&!E&&(G.geometry.spatialReference=r);z.push(G)}return z};A.writeGeometryType=function(B,r,z,E){if(B)x.write(B,r,z,E);else if({features:B}=this,B)for(const F of B)if(F&&q.isSome(F.geometry)){x.write(F.geometry.type,r,z,E);break}};A.readQueryGeometry=function(B,r){if(!B)return null;const z=!!B.spatialReference;
B=n.fromJSON(B);!z&&r.spatialReference&&(B.spatialReference=h.fromJSON(r.spatialReference));return B};A.writeSpatialReference=function(B,r){if(B)r.spatialReference=B.toJSON();else if({features:B}=this,B)for(const z of B)if(z&&q.isSome(z.geometry)&&z.geometry.spatialReference){r.spatialReference=z.geometry.spatialReference.toJSON();break}};A.toJSON=function(B){const r=this.write(null);if(r.features&&Array.isArray(B)&&0<B.length)for(let z=0;z<r.features.length;z++){const E=r.features[z];if(E.geometry){const F=
B&&B[z];E.geometry=F&&F.toJSON()||E.geometry}}return r};A.quantize=function(B){const {scale:[r,z],translate:[E,F]}=B,G=this.features,N=this._getQuantizationFunction(this.geometryType,K=>Math.round((K-E)/r),K=>Math.round((F-K)/z));for(let K=0,I=G.length;K<I;K++)N(q.unwrap(G[K].geometry))||(G.splice(K,1),K--,I--);this.transform=B;return this};A.unquantize=function(){const {geometryType:B,features:r,transform:z}=this;if(!z)return this;const {translate:[E,F],scale:[G,N]}=z,K=this._getHydrationFunction(B,
I=>I*G+E,I=>F-I*N);for(const {geometry:I}of r)q.isSome(I)&&K(I);this.transform=null;return this};A._quantizePoints=function(B,r,z){let E,F;const G=[];for(let K=0,I=B.length;K<I;K++){var N=B[K];if(0<K){const J=r(N[0]);N=z(N[1]);if(J!==E||N!==F)G.push([J-E,N-F]),E=J,F=N}else E=r(N[0]),F=z(N[1]),G.push([E,F])}return 0<G.length?G:null};A._getQuantizationFunction=function(B,r,z){return"point"===B?E=>{E.x=r(E.x);E.y=z(E.y);return E}:"polyline"===B||"polygon"===B?E=>{const F=n.isPolygon(E)?E.rings:E.paths,
G=[];for(let N=0,K=F.length;N<K;N++){const I=this._quantizePoints(F[N],r,z);I&&G.push(I)}return 0<G.length?(n.isPolygon(E)?E.rings=G:E.paths=G,E):null}:"multipoint"===B?E=>{const F=this._quantizePoints(E.points,r,z);return 0<F.length?(E.points=F,E):null}:"extent"===B?E=>E:null};A._getHydrationFunction=function(B,r,z){if("point"===B)return E=>{E.x=r(E.x);E.y=z(E.y)};if("polyline"===B||"polygon"===B)return E=>{E=n.isPolygon(E)?E.rings:E.paths;let F,G;for(let N=0,K=E.length;N<K;N++){const I=E[N];for(let J=
0,L=I.length;J<L;J++){const Q=I[J];0<J?(F+=Q[0],G+=Q[1]):(F=Q[0],G=Q[1]);Q[0]=r(F);Q[1]=z(G)}}};if("extent"===B)return E=>{E.xmin=r(E.xmin);E.ymin=z(E.ymin);E.xmax=r(E.xmax);E.ymax=z(E.ymax)};if("multipoint"===B)return E=>{E=E.points;let F,G;for(let N=0,K=E.length;N<K;N++){const I=E[N];0<N?(F+=I[0],G+=I[1]):(F=I[0],G=I[1]);I[0]=r(F);I[1]=z(G)}}};return D}(k.JSONSupport);b.__decorate([v.property({type:String,json:{write:!0}})],f.prototype,"displayFieldName",void 0);b.__decorate([v.property({type:Boolean,
json:{write:{overridePolicy(C){return{enabled:C}}}}})],f.prototype,"exceededTransferLimit",void 0);b.__decorate([v.property({type:[g],json:{write:!0}})],f.prototype,"features",void 0);b.__decorate([p.reader("features")],f.prototype,"readFeatures",null);b.__decorate([v.property({type:[w],json:{write:!0}})],f.prototype,"fields",void 0);b.__decorate([v.property({type:"point multipoint polyline polygon extent mesh".split(" "),json:{read:{reader:x.read}}})],f.prototype,"geometryType",void 0);b.__decorate([l.writer("geometryType")],
f.prototype,"writeGeometryType",null);b.__decorate([v.property({type:Boolean,json:{write:{overridePolicy(C){return{enabled:C}}}}})],f.prototype,"hasM",void 0);b.__decorate([v.property({type:Boolean,json:{write:{overridePolicy(C){return{enabled:C}}}}})],f.prototype,"hasZ",void 0);b.__decorate([v.property({types:c.geometryTypes,json:{write:!0}})],f.prototype,"queryGeometry",void 0);b.__decorate([p.reader("queryGeometry")],f.prototype,"readQueryGeometry",null);b.__decorate([v.property({type:h,json:{write:!0}})],
f.prototype,"spatialReference",void 0);b.__decorate([l.writer("spatialReference")],f.prototype,"writeSpatialReference",null);b.__decorate([v.property({json:{write:!0}})],f.prototype,"transform",void 0);f=b.__decorate([e.subclass("esri.rest.support.FeatureSet")],f);f.prototype.toJSON.isDefaultToJSON=!0;(function(C){})(f||(f={}));return f})},"esri/layers/support/Field":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ./domains ./fieldType".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){var l;const h=new c.JSONMap({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"});c=l=function(n){function w(C){C=n.call(this,C)||this;
C.alias=null;C.defaultValue=void 0;C.description=null;C.domain=null;C.editable=!0;C.length=-1;C.name=null;C.nullable=!0;C.type=null;C.valueType=null;return C}a._inheritsLoose(w,n);var x=w.prototype;x.readDescription=function(C,{description:D}){let A;try{A=JSON.parse(D)}catch(B){}return A?A.value:null};x.readValueType=function(C,{description:D}){let A;try{A=JSON.parse(D)}catch(B){}return A?h.fromJSON(A.fieldValueType):null};x.clone=function(){return new l({alias:this.alias,defaultValue:this.defaultValue,
description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType})};return w}(g.JSONSupport);b.__decorate([f.property({type:String,json:{write:!0}})],c.prototype,"alias",void 0);b.__decorate([f.property({type:[String,Number],json:{write:{allowNull:!0}}})],c.prototype,"defaultValue",void 0);b.__decorate([f.property()],c.prototype,"description",void 0);b.__decorate([u.reader("description")],
c.prototype,"readDescription",null);b.__decorate([f.property({types:p.types,json:{read:{reader:p.fromJSON},write:!0}})],c.prototype,"domain",void 0);b.__decorate([f.property({type:Boolean,json:{write:!0}})],c.prototype,"editable",void 0);b.__decorate([f.property({type:q.Integer,json:{write:!0}})],c.prototype,"length",void 0);b.__decorate([f.property({type:String,json:{write:!0}})],c.prototype,"name",void 0);b.__decorate([f.property({type:Boolean,json:{write:!0}})],c.prototype,"nullable",void 0);b.__decorate([t.enumeration(e.kebabDict)],
c.prototype,"type",void 0);b.__decorate([f.property()],c.prototype,"valueType",void 0);b.__decorate([u.reader("valueType",["description"])],c.prototype,"readValueType",null);return c=l=b.__decorate([m.subclass("esri.layers.support.Field")],c)})},"esri/layers/support/fieldType":function(){define(["exports","../../core/jsonMap"],function(a,b){b=new b.JSONMap({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"});a.kebabDict=b;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/mixins/APIKeyMixin":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){a.APIKeyMixin=u=>{u=function(m){function p(){return m.apply(this,arguments)||this}b._inheritsLoose(p,m);b._createClass(p,[{key:"apiKey",get:function(){var e;return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?null==(e=this.portalItem)?void 0:e.apiKey:null},set:function(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}}]);return p}(u);c.__decorate([g.property({type:String})],u.prototype,"apiKey",null);
return u=c.__decorate([t.subclass("esri.layers.mixins.APIKeyMixin")],u)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/mixins/ArcGISService":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Logger ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../support/arcgisLayerUrl".split(" "),function(a,b,
c,g,f,k,q,v,t,u,m){a.ArcGISService=p=>{p=function(e){function l(){return e.apply(this,arguments)||this}b._inheritsLoose(l,e);b._createClass(l,[{key:"title",get:function(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const h=m.parse(this.url);if(f.isSome(h)&&h.title)return h.title}return this._get("title")||""},set:function(h){this._set("title",h)}},{key:"url",set:function(h){this._set("url",m.sanitizeUrl(h,g.getLogger(this.declaredClass)))}}]);
return l}(p);c.__decorate([k.property()],p.prototype,"title",null);c.__decorate([k.property({type:String})],p.prototype,"url",null);return p=c.__decorate([u.subclass("esri.layers.mixins.ArcGISService")],p)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/arcgisLayerUrl":function(){define(["exports","../../core/maybe","../../core/urlUtils","../../chunks/persistableUrlUtils"],function(a,b,c,g){function f(p){p=c.urlToObject(p);p=p.path.match(t)||p.path.match(u);if(!p)return null;
const [,e,l,h,n]=p;p=l.indexOf("/");return{title:q(-1!==p?l.slice(p+1):l),serverType:h,sublayer:null!=n&&""!==n?parseInt(n,10):null,url:{path:e}}}function k(p){return(p=c.urlToObject(p).path.match(m))?{serviceUrl:p[1],sublayerId:Number(p[2])}:null}function q(p){p=p.replace(/\s*[/_]+\s*/g," ");return p[0].toUpperCase()+p.slice(1)}const v="MapServer ImageServer FeatureServer SceneServer StreamServer VectorTileServer".split(" "),t=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${v.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,
"i"),u=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${v.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),m=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;a.cleanTitle=q;a.isArcGISUrl=function(p){return!!t.test(p)};a.isHostedAgolService=function(p){if(!p)return!1;p=p.toLowerCase();const e=-1!==p.indexOf(".arcgis.com/");p=-1!==p.indexOf("//services")||-1!==p.indexOf("//tiles")||-1!==p.indexOf("//features");return e&&p};a.isHostedSecuredProxyService=function(p,e){return e&&p&&-1!==p.toLowerCase().indexOf(e.toLowerCase())};
a.isServerOrServicesAGOLUrl=function(p){if(!p)return!1;p=(new c.Url(c.makeAbsolute(p))).authority.toLowerCase();return"server.arcgisonline.com"===p||"services.arcgisonline.com"===p};a.isWmsServer=function(p){if(!p)return!1;var e=p.toLowerCase();p=-1!==e.indexOf("/services/");const l=-1!==e.indexOf("/mapserver/wmsserver"),h=-1!==e.indexOf("/imageserver/wmsserver");e=-1!==e.indexOf("/wmsserver");return p&&(l||h||e)};a.parse=f;a.parseNonStandardSublayerUrl=k;a.sanitizeUrl=function(p,e){return p?c.removeTrailingSlash(c.removeQueryParameters(p,
e)):p};a.sanitizeUrlWithLayerId=function(p){let {url:e}=p;if(!e)return{url:e};e=c.removeQueryParameters(e,p.logger);const l=c.urlToObject(e),h=f(l.path);let n;b.isSome(h)?(null!=h.sublayer&&null==p.layer.layerId&&(n=h.sublayer),e=h.url.path):p.nonStandardUrlAllowed&&(p=k(l.path),b.isSome(p)&&(e=p.serviceUrl,n=p.sublayerId));return{url:c.removeTrailingSlash(e),layerId:n}};a.serverTypes=v;a.titleFromUrlAndName=function(p,e){const l=[];p&&(p=f(p),b.isSome(p)&&p.title&&l.push(p.title));e&&(e=q(e),l.push(e));
if(2===l.length){if(-1!==l[0].toLowerCase().indexOf(l[1].toLowerCase()))return l[0];if(-1!==l[1].toLowerCase().indexOf(l[0].toLowerCase()))return l[1]}return l.join(" - ")};a.writeUrlWithLayerId=function(p,e,l,h,n){g.write(e,h,"url",n);h.url&&null!=p.layerId&&(h.url=c.join(h.url,l,p.layerId.toString()))};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/mixins/BlendLayer":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){a.BlendLayer=u=>{u=function(m){function p(){var e=m.apply(this,arguments)||this;e.blendMode="normal";e.effect=null;return e}b._inheritsLoose(p,m);return p}(u);c.__decorate([g.property({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".split(" "),
nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{default:"normal",read:!0,write:!0}}}})],u.prototype,"blendMode",void 0);c.__decorate([g.property()],u.prototype,"effect",void 0);return u=c.__decorate([t.subclass("esri.layers.mixins.BlendLayer")],u)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/mixins/CustomParametersMixin":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){a.CustomParametersMixin=u=>{u=function(m){function p(){var e=m.apply(this,arguments)||this;e.customParameters=null;return e}b._inheritsLoose(p,m);return p}(u);c.__decorate([g.property({type:Object,json:{write:!0}})],u.prototype,"customParameters",void 0);return u=c.__decorate([t.subclass("esri.layers.mixins.CustomParametersMixin")],u)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/mixins/TemporalLayer":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../TimeExtent ../../TimeInterval ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../support/TimeInfo ../support/fieldUtils ../../portal/timeUnitKebabDictionary".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h){a.TemporalLayer=n=>{n=function(w){function x(){var C=w.apply(this,arguments)||this;C.timeExtent=null;C.timeOffset=null;C.useViewTime=!0;return C}b._inheritsLoose(x,w);x.prototype.readOffset=function(C,D){D=D.timeInfo.exportOptions;if(!D)return null;C=D.timeOffset;D=h.timeUnitKebabDictionary.fromJSON(D.timeOffsetUnits);return C&&D?new f({value:C,unit:D}):null};b._createClass(x,[{key:"timeInfo",set:function(C){l.fixTimeInfoFields(C,this.fieldsIndex);this._set("timeInfo",
C)}}]);return x}(n);c.__decorate([k.property({type:g,json:{write:!1}})],n.prototype,"timeExtent",void 0);c.__decorate([k.property({type:f})],n.prototype,"timeOffset",void 0);c.__decorate([m.reader("service","timeOffset",["timeInfo.exportOptions"])],n.prototype,"readOffset",null);c.__decorate([k.property({value:null,type:e,json:{write:!0,origins:{"web-document":{read:!1,write:!1}}}})],n.prototype,"timeInfo",null);c.__decorate([k.property({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},
origins:{"web-scene":{read:!1,write:!1}}}})],n.prototype,"useViewTime",void 0);return n=c.__decorate([p.subclass("esri.layers.mixins.TemporalLayer")],n)};a.isTemporalLayer=function(n){return void 0!==n.timeInfo};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/TimeInterval":function(){define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./core/JSONSupport ./core/timeUtils ./core/accessorSupport/decorators/property ./core/has ./core/accessorSupport/ensureType ./core/Logger ./core/jsonMap ./core/accessorSupport/decorators/subclass ./portal/timeUnitKebabDictionary".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){var p;c=p=function(e){function l(n){n=e.call(this,n)||this;n.value=0;n.unit="milliseconds";return n}a._inheritsLoose(l,e);var h=l.prototype;h.toMilliseconds=function(){return g.convertTime(this.value,this.unit,"milliseconds")};h.clone=function(){return new p({value:this.value,unit:this.unit})};return l}(c.JSONSupport);b.__decorate([f.property({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0);b.__decorate([f.property({type:m.timeUnitKebabDictionary.apiValues,
json:{type:m.timeUnitKebabDictionary.jsonValues,read:m.timeUnitKebabDictionary.read,write:m.timeUnitKebabDictionary.write},nonNullable:!0})],c.prototype,"unit",void 0);return c=p=b.__decorate([u.subclass("esri.TimeInterval")],c)})},"esri/portal/timeUnitKebabDictionary":function(){define(["exports","../core/jsonMap"],function(a,b){b=b.strict()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",
esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0});a.timeUnitKebabDictionary=b;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/TimeInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../TimeExtent ../../TimeInterval ../../core/JSONSupport ../../core/lang ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./TimeReference ../../portal/timeUnitKebabDictionary".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w){var x;f=x=function(C){function D(B){B=C.call(this,B)||this;B.cumulative=!1;B.endField=null;B.fullTimeExtent=null;B.hasLiveData=!1;B.interval=null;B.startField=null;B.timeReference=null;B.trackIdField=null;B.useTime=!0;return B}a._inheritsLoose(D,C);var A=D.prototype;A.readFullTimeExtent=function(B,r){return r.timeExtent&&Array.isArray(r.timeExtent)&&2===r.timeExtent.length?new c({start:new Date(r.timeExtent[0]),end:new Date(r.timeExtent[1])}):null};A.writeFullTimeExtent=
function(B,r){B&&q.isSome(B.start)&&q.isSome(B.end)?r.timeExtent=[B.start.getTime(),B.end.getTime()]:r.timeExtent=null};A.readInterval=function(B,r){return r.timeInterval&&r.timeIntervalUnits?new g({value:r.timeInterval,unit:w.timeUnitKebabDictionary.fromJSON(r.timeIntervalUnits)}):r.defaultTimeInterval&&r.defaultTimeIntervalUnits?new g({value:r.defaultTimeInterval,unit:w.timeUnitKebabDictionary.fromJSON(r.defaultTimeIntervalUnits)}):null};A.writeInterval=function(B,r){B?(B=B.toJSON(),r.timeInterval=
B.value,r.timeIntervalUnits=B.unit):(r.timeInterval=null,r.timeIntervalUnits=null)};A.clone=function(){const {cumulative:B,endField:r,hasLiveData:z,interval:E,startField:F,timeReference:G,fullTimeExtent:N,trackIdField:K,useTime:I}=this;return new x({cumulative:B,endField:r,hasLiveData:z,interval:E,startField:F,timeReference:k.clone(G),fullTimeExtent:k.clone(N),trackIdField:K,useTime:I})};return D}(f.JSONSupport);b.__decorate([v.property({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},
write:{target:"exportOptions.timeDataCumulative"}}})],f.prototype,"cumulative",void 0);b.__decorate([v.property({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],f.prototype,"endField",void 0);b.__decorate([v.property({type:c,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"fullTimeExtent",void 0);b.__decorate([e.reader("fullTimeExtent",["timeExtent"])],f.prototype,"readFullTimeExtent",null);b.__decorate([h.writer("fullTimeExtent")],f.prototype,"writeFullTimeExtent",
null);b.__decorate([v.property({type:Boolean,json:{write:!0}})],f.prototype,"hasLiveData",void 0);b.__decorate([v.property({type:g,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"interval",void 0);b.__decorate([e.reader("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],f.prototype,"readInterval",null);b.__decorate([h.writer("interval")],f.prototype,"writeInterval",null);b.__decorate([v.property({type:String,json:{read:{source:"startTimeField"},
write:{target:"startTimeField",allowNull:!0}}})],f.prototype,"startField",void 0);b.__decorate([v.property({type:n,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"timeReference",void 0);b.__decorate([v.property({type:String,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"trackIdField",void 0);b.__decorate([v.property({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],f.prototype,"useTime",void 0);return f=x=b.__decorate([l.subclass("esri.layers.support.TimeInfo")],
f)})},"esri/layers/support/TimeReference":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t,u){var m;c=m=function(p){function e(h){h=p.call(this,h)||this;h.respectsDaylightSaving=
!1;h.timezone=null;return h}a._inheritsLoose(e,p);var l=e.prototype;l.readRespectsDaylightSaving=function(h,n){return void 0!==n.respectsDaylightSaving?n.respectsDaylightSaving:void 0!==n.respectDaylightSaving?n.respectDaylightSaving:!1};l.clone=function(){const {respectsDaylightSaving:h,timezone:n}=this;return new m({respectsDaylightSaving:h,timezone:n})};return e}(c.JSONSupport);b.__decorate([g.property({type:Boolean,json:{write:!0}})],c.prototype,"respectsDaylightSaving",void 0);b.__decorate([t.reader("respectsDaylightSaving",
["respectsDaylightSaving","respectDaylightSaving"])],c.prototype,"readRespectsDaylightSaving",null);b.__decorate([g.property({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],c.prototype,"timezone",void 0);return c=m=b.__decorate([u.subclass("esri.layers.support.TimeReference")],c)})},"esri/layers/support/FeatureIndex":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;a.FeatureIndex=m=function(p){function e(l){return p.call(this,l)||this}b._inheritsLoose(e,p);e.prototype.clone=function(){const {name:l,fields:h,isAscending:n,isUnique:w,description:x}=this;return new m({name:l,fields:h,isAscending:n,isUnique:w,description:x})};return e}(g.JSONSupport);c.__decorate([f.property({constructOnly:!0})],a.FeatureIndex.prototype,"name",void 0);c.__decorate([f.property({constructOnly:!0})],a.FeatureIndex.prototype,"fields",void 0);c.__decorate([f.property({constructOnly:!0})],
a.FeatureIndex.prototype,"isAscending",void 0);c.__decorate([f.property({constructOnly:!0})],a.FeatureIndex.prototype,"isUnique",void 0);c.__decorate([f.property({constructOnly:!0})],a.FeatureIndex.prototype,"description",void 0);a.FeatureIndex=m=c.__decorate([u.subclass("esri.layers.support.FeatureIndex")],a.FeatureIndex);a.default=a.FeatureIndex;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/FeatureReduction":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){a.FeatureReduction=function(m){function p(){var e=m.apply(this,arguments)||this;e.type=null;return e}b._inheritsLoose(p,m);return p}(g.JSONSupport);c.__decorate([f.property({type:["selection","cluster"],readOnly:!0,json:{read:!1,write:!0}})],a.FeatureReduction.prototype,"type",void 0);a.FeatureReduction=c.__decorate([u.subclass("esri.layers.support.FeatureReduction")],a.FeatureReduction);a.default=a.FeatureReduction;Object.defineProperty(a,"__esModule",{value:!0})})},
"esri/layers/support/FeatureReductionCluster":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../PopupTemplate ../../symbols ../../core/JSONSupport ../../core/lang ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./AggregateField ./commonProperties ./LabelClass".split(" "),function(a,b,c,g,f,k,q,v,t,u,m,p,
e,l,h,n){var w;f=w=function(x){function C(D){D=x.call(this,D)||this;D.type="cluster";D.clusterRadius=q.toPt("80px");D.clusterMinSize=q.toPt("12px");D.clusterMaxSize=q.toPt("50px");D.popupEnabled=!0;D.popupTemplate=null;D.symbol=null;D.labelingInfo=null;D.labelsVisible=!0;D.fields=null;return D}a._inheritsLoose(C,x);C.prototype.clone=function(){return new w({clusterRadius:this.clusterRadius,clusterMinSize:this.clusterMinSize,clusterMaxSize:this.clusterMaxSize,labelingInfo:k.clone(this.labelingInfo),
labelsVisible:this.labelsVisible,fields:k.clone(this.fields),popupEnabled:this.popupEnabled,popupTemplate:k.clone(this.popupTemplate)})};return C}(f.JSONSupport);b.__decorate([v.property({type:["cluster"],readOnly:!0,json:{write:!0}})],f.prototype,"type",void 0);b.__decorate([v.property({type:Number,cast:x=>"auto"===x?x:q.toPt(x),json:{write:!0}})],f.prototype,"clusterRadius",void 0);b.__decorate([v.property({type:Number,cast:q.toPt,json:{write:!0}})],f.prototype,"clusterMinSize",void 0);b.__decorate([v.property({type:Number,
cast:q.toPt,json:{write:!0}})],f.prototype,"clusterMaxSize",void 0);b.__decorate([v.property(h.popupEnabled)],f.prototype,"popupEnabled",void 0);b.__decorate([v.property({type:c,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],f.prototype,"popupTemplate",void 0);b.__decorate([v.property({types:g.symbolTypesCluster})],f.prototype,"symbol",void 0);b.__decorate([v.property({type:[n],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],f.prototype,
"labelingInfo",void 0);b.__decorate([v.property(h.labelsVisible)],f.prototype,"labelsVisible",void 0);b.__decorate([v.property({type:[l],json:{write:!0}})],f.prototype,"fields",void 0);return f=w=b.__decorate([e.subclass("esri.layers.support.FeatureReductionCluster")],f)})},"esri/layers/support/AggregateField":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./OutStatistic".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;c=m=function(p){function e(){var l=p.apply(this,arguments)||this;l.name=null;return l}a._inheritsLoose(e,p);e.prototype.clone=function(){return new m({name:this.name,outStatistic:this.outStatistic.clone()})};return e}(c.JSONSupport);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"name",void 0);b.__decorate([g.property({type:u,json:{write:!0}})],c.prototype,"outStatistic",void 0);return c=m=b.__decorate([t.subclass("esri.layers.support.AggregateField")],
c)})},"esri/layers/support/OutStatistic":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t){var u;c=u=function(m){function p(){var e=m.apply(this,arguments)||this;e.statisticType=null;e.onStatisticField=null;e.onStatisticValueExpression=
null;return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({statisticType:this.statisticType,onStatisticField:this.onStatisticField,onStatisticValueExpression:this.onStatisticValueExpression})};return p}(c.JSONSupport);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"statisticType",void 0);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"onStatisticField",void 0);b.__decorate([g.property({type:String,json:{write:!0}})],c.prototype,"onStatisticValueExpression",
void 0);return c=u=b.__decorate([t.subclass("esri.layers.support.OutStatistic")],c)})},"esri/layers/support/LabelClass":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../symbols ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./LabelExpressionInfo ./labelUtils ../../symbols/support/defaults ../../symbols/support/jsonUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w){function x(A){return"map-image"===(null==A?void 0:A.type)}function C(A){var B,r;return x(A)?!(null==(B=A.capabilities)||null==(r=B.exportMap)||!r.supportsArcadeExpressionForLabeling):!1}var D;g=new g.JSONMap({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",
esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",
esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},
{ignoreUnknown:!0});f=D=function(A){function B(z){z=A.call(this,z)||this;z.type="label";z.name=null;z.deconflictionStrategy="static";z.labelExpression=null;z.labelExpressionInfo=null;z.labelPlacement=null;z.maxScale=0;z.minScale=0;z.symbol=n.defaultTextSymbol2D;z.useCodedValues=void 0;z.where=null;return z}a._inheritsLoose(B,A);B.evaluateWhere=function(z,E){const F=function(G,N,K){switch(N){case "\x3d":return G==K?!0:!1;case "\x3c\x3e":return G!=K?!0:!1;case "\x3e":return G>K?!0:!1;case "\x3e\x3d":return G>=
K?!0:!1;case "\x3c":return G<K?!0:!1;case "\x3c\x3d":return G<=K?!0:!1}return!1};try{if(null==z)return!0;const G=z.split(" ");if(3===G.length)return F(E[G[0]],G[1],G[2]);if(7===G.length){const N=F(E[G[0]],G[1],G[2]),K=G[3],I=F(E[G[4]],G[5],G[6]);switch(K){case "AND":return N&&I;case "OR":return N||I}}return!1}catch(G){console.log("Error.: can't parse \x3d "+z)}};var r=B.prototype;r.readLabelExpression=function(z,E){E=E.labelExpressionInfo;if(!E||!E.value&&!E.expression)return z};r.writeLabelExpression=
function(z,E,F){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)z=h.templateStringToSql(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const G=h.getSingleFieldArcadeExpression(this.labelExpressionInfo.expression);G&&(z="["+G+"]")}null!=z&&(E[F]=z)};r.writeLabelExpressionInfo=function(z,E,F,G){if(null==z&&null!=this.labelExpression&&(G?"service"===G.origin?0:!x(G.layer):1))z=new l({expression:this.getLabelExpressionArcade()});else if(!z)return;
z=z.toJSON(G);z.expression&&(E[F]=z)};r.writeMaxScale=function(z,E){if(z||this.minScale)E.maxScale=z};r.writeMinScale=function(z,E){if(z||this.maxScale)E.minScale=z};r.getLabelExpression=function(){return h.getLabelExpression(this)};r.getLabelExpressionArcade=function(){return h.getLabelExpressionArcade(this)};r.getLabelExpressionSingleField=function(){return h.getLabelExpressionSingleField(this)};r.hash=function(){return JSON.stringify(this)};r.clone=function(){return new D({deconflictionStrategy:this.deconflictionStrategy,
labelExpression:this.labelExpression,labelExpressionInfo:k.clone(this.labelExpressionInfo),labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,symbol:k.clone(this.symbol),where:this.where,useCodedValues:this.useCodedValues})};return B}(f.JSONSupport);b.__decorate([q.property({type:String,json:{write:!0}})],f.prototype,"name",void 0);b.__decorate([q.property({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1}}}})],f.prototype,"deconflictionStrategy",
void 0);b.__decorate([q.property({type:String,json:{write:{overridePolicy(A,B,r){return this.labelExpressionInfo&&"service"===(null==r?void 0:r.origin)&&C(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],f.prototype,"labelExpression",void 0);b.__decorate([m.reader("labelExpression")],f.prototype,"readLabelExpression",null);b.__decorate([e.writer("labelExpression")],f.prototype,"writeLabelExpression",null);b.__decorate([q.property({type:l,json:{write:{overridePolicy(A,B,r){return(r?"service"===r.origin?
0:!x(r.layer):1)||C(r.layer)?{allowNull:!0}:{enabled:!1}}}}})],f.prototype,"labelExpressionInfo",void 0);b.__decorate([e.writer("labelExpressionInfo")],f.prototype,"writeLabelExpressionInfo",null);b.__decorate([q.property({type:g.apiValues,json:{type:g.jsonValues,read:g.read,write:g.write}})],f.prototype,"labelPlacement",void 0);b.__decorate([q.property({type:Number})],f.prototype,"maxScale",void 0);b.__decorate([e.writer("maxScale")],f.prototype,"writeMaxScale",null);b.__decorate([q.property({type:Number})],
f.prototype,"minScale",void 0);b.__decorate([e.writer("minScale")],f.prototype,"writeMinScale",null);b.__decorate([q.property({types:c.symbolTypesLabel,json:{origins:{"web-scene":{types:c.symbolTypesLabel3D,write:w.write,default:null}},write:w.write,default:null}})],f.prototype,"symbol",void 0);b.__decorate([q.property({type:Boolean,json:{write:!0}})],f.prototype,"useCodedValues",void 0);b.__decorate([q.property({type:String,json:{write:!0}})],f.prototype,"where",void 0);return f=D=b.__decorate([p.subclass("esri.layers.support.LabelClass")],
f)})},"esri/layers/support/LabelExpressionInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./labelUtils".split(" "),function(a,b,c,g,f,k,q,v,t,u,m,p){var e;c=e=function(l){function h(){var w=
l.apply(this,arguments)||this;w.expression=null;w.title=null;w.value=null;return w}a._inheritsLoose(h,l);var n=h.prototype;n.readExpression=function(w,x){return x.value?p.convertTemplatedStringToArcade(x.value):w};n.writeExpression=function(w,x,C){null!=this.value&&(w=p.convertTemplatedStringToArcade(this.value));x[C]=w};n.clone=function(){return new e({expression:this.expression,title:this.title,value:this.value})};return h}(c.JSONSupport);b.__decorate([g.property({type:String,json:{write:{allowNull:!0}}})],
c.prototype,"expression",void 0);b.__decorate([t.reader("expression",["expression","value"])],c.prototype,"readExpression",null);b.__decorate([m.writer("expression")],c.prototype,"writeExpression",null);b.__decorate([g.property({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,"title",void 0);b.__decorate([g.property({json:{read:!1,write:!1}})],c.prototype,"value",void 0);return c=e=b.__decorate([u.subclass("esri.layers.support.LabelExpressionInfo")],c)})},"esri/layers/support/labelUtils":function(){define(["exports",
"../../core/string"],function(a,b){function c(n){return n.replace(/\[/g,"{").replace(/\]/g,"}")}function g(n){const w={expression:"",type:"none"};n.labelExpressionInfo?n.labelExpressionInfo.value?(w.expression=n.labelExpressionInfo.value,w.type="conventional"):n.labelExpressionInfo.expression&&(w.expression=n.labelExpressionInfo.expression,w.type="arcade"):null!=n.labelExpression&&(w.expression=c(n.labelExpression),w.type="conventional");return w}function f(n){n?(n=b.replace(n,w=>'__begin__$feature["'+
w+'"]__end__'),n=u.test(n)?n.replace(u,""):'"'+n,n=m.test(n)?n.replace(m,""):n+'"',n=n.replace(v,'" + ').replace(t,' + "')):n='""';return n}function k(n){return(n=n.match(p))&&n[1].trim()||null}function q(n){if(!n)return null;let w=e.exec(n)||l.exec(n);return w?w[1]||w[3]:(w=h.exec(n))?w[2]:null}const v=/__begin__/ig,t=/__end__/ig,u=/^__begin__/i,m=/__end__$/i,p=/^\s*\{([^}]+)\}\s*$/i,e=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,l=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,
h=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;a.convertTemplatedStringToArcade=f;a.getLabelExpression=g;a.getLabelExpressionArcade=function(n){n=g(n);if(!n)return null;switch(n.type){case "conventional":return f(n.expression);case "arcade":return n.expression}return null};a.getLabelExpressionSingleField=function(n){n=g(n);if(!n)return null;switch(n.type){case "conventional":return k(n.expression);case "arcade":return q(n.expression)}return null};a.getSingleFieldArcadeExpression=
q;a.getSingleFieldTemplatedString=k;a.sqlToTemplateString=c;a.templateStringToSql=function(n){return n.replace(/\{/g,"[").replace(/\}/g,"]")};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/support/defaults":function(){define("exports ../../core/has ../../core/maybe ../SimpleFillSymbol ../SimpleLineSymbol ../SimpleMarkerSymbol ../TextSymbol ./defaultsJSON".split(" "),function(a,b,c,g,f,k,q,v){const t=k.fromJSON(v.defaultPointSymbolJSON),u=f.fromJSON(v.defaultPolylineSymbolJSON),
m=g.fromJSON(v.defaultPolygonSymbolJSON);b=q.fromJSON(v.defaultTextSymbolJSON);k=k.fromJSON(v.errorPointSymbolJSON);f=f.fromJSON(v.errorPolylineSymbolJSON);g=g.fromJSON(v.errorPolygonSymbolJSON);a.defaultPointSymbol2D=t;a.defaultPolygonSymbol2D=m;a.defaultPolylineSymbol2D=u;a.defaultTextSymbol2D=b;a.errorPointSymbol2D=k;a.errorPolygonSymbol2D=g;a.errorPolylineSymbol2D=f;a.getDefaultSymbol2D=function(p){if(c.isNone(p))return null;switch(p.type){case "point":case "multipoint":return t;case "polyline":return u;
case "polygon":case "extent":return m}return null};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/support/defaultsJSON":function(){define(["exports"],function(a){const b=[252,146,31,255],c={type:"esriSMS",style:"esriSMSCircle",size:6,color:b,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},g={type:"esriSLS",style:"esriSLSSolid",width:.75,color:b};a.defaultColor=b;a.defaultOutlineColor=[153,153,153,255];a.defaultPointSymbolJSON=c;a.defaultPolygonSymbolJSON=
{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}};a.defaultPolylineSymbolJSON=g;a.defaultTextSymbolJSON={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0};a.errorPointSymbolJSON={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,
size:10.5};a.errorPolygonSymbolJSON={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null};a.errorPolylineSymbolJSON={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/FeatureReductionSelection":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./FeatureReduction".split(" "),
function(a,b,c,g,f,k,q,v,t){var u;g=u=function(m){function p(e){e=m.call(this,e)||this;e.type="selection";return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u};return p}(t["default"]);b.__decorate([c.property({type:["selection"]})],g.prototype,"type",void 0);return g=u=b.__decorate([v.subclass("esri.layers.support.FeatureReductionSelection")],g)})},"esri/layers/support/featureReductionUtils":function(){define("exports ../../core/Error ../../core/object ./FeatureReduction ./FeatureReductionCluster ./FeatureReductionSelection".split(" "),
function(a,b,c,g,f,k){function q(v,t,u){return v?"selection"!==v.type?(u.messages&&u.messages.push(new b("featureReduction:unsupported",`FeatureReduction of type '${v.declaredClass}' are not supported in scenes.`,{featureReduction:v,context:u})),null):v.write(t,u):null}g={key:"type",base:g["default"],typeMap:{selection:k}};a.read=function(v,t){t=t.layerDefinition||t;if(v=t.featureReduction)switch(v.type){case "selection":return k.fromJSON(v);case "cluster":return f.fromJSON(v)}return null};a.webSceneFeatureReductionTypes=
g;a.write=q;a.writeTarget=function(v,t,u,m){(v=q(v,{},m))&&c.setDeepValue(u,v,t)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/FeatureTemplate":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){const p=new c.JSONMap({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",
esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});c=function(e){function l(n){n=e.call(this,n)||this;n.name=null;n.description=null;n.drawingTool=null;n.prototype=null;n.thumbnail=null;return n}a._inheritsLoose(l,e);var h=l.prototype;h.writeDrawingTool=function(n,w){w.drawingTool=p.toJSON(n)};h.writePrototype=function(n,w){w.prototype=f.fixJson(f.clone(n),!0)};h.writeThumbnail=function(n,w){w.thumbnail=f.fixJson(f.clone(n))};
return l}(g.JSONSupport);b.__decorate([k.property({json:{write:!0}})],c.prototype,"name",void 0);b.__decorate([k.property({json:{write:!0}})],c.prototype,"description",void 0);b.__decorate([k.property({json:{read:p.read,write:p.write}})],c.prototype,"drawingTool",void 0);b.__decorate([m.writer("drawingTool")],c.prototype,"writeDrawingTool",null);b.__decorate([k.property({json:{write:!0}})],c.prototype,"prototype",void 0);b.__decorate([m.writer("prototype")],c.prototype,"writePrototype",null);b.__decorate([k.property({json:{write:!0}})],
c.prototype,"thumbnail",void 0);b.__decorate([m.writer("thumbnail")],c.prototype,"writeThumbnail",null);return c=b.__decorate([u.subclass("esri.layers.support.FeatureTemplate")],c)})},"esri/layers/support/FeatureType":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./domains ./FeatureTemplate ./InheritedDomain ./CodedValueDomain ./RangeDomain".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w){c=function(x){function C(A){A=x.call(this,A)||this;A.id=null;A.name=null;A.domains=null;A.templates=null;return A}a._inheritsLoose(C,x);var D=C.prototype;D.readDomains=function(A){const B={};for(const r in A)if(A.hasOwnProperty(r)){const z=A[r];switch(z.type){case "range":B[r]=w.fromJSON(z);break;case "codedValue":B[r]=n.fromJSON(z);break;case "inherited":B[r]=h.fromJSON(z)}}return B};D.writeDomains=function(A,B){const r={};for(const z in A)A.hasOwnProperty(z)&&
(r[z]=A[z]&&A[z].toJSON());g.fixJson(r);B.domains=r};D.readTemplates=function(A){return A&&A.map(B=>new l(B))};D.writeTemplates=function(A,B){B.templates=A&&A.map(r=>r.toJSON())};return C}(c.JSONSupport);b.__decorate([f.property({json:{write:!0}})],c.prototype,"id",void 0);b.__decorate([f.property({json:{write:!0}})],c.prototype,"name",void 0);b.__decorate([f.property({json:{write:!0}})],c.prototype,"domains",void 0);b.__decorate([u.reader("domains")],c.prototype,"readDomains",null);b.__decorate([p.writer("domains")],
c.prototype,"writeDomains",null);b.__decorate([f.property({json:{write:!0}})],c.prototype,"templates",void 0);b.__decorate([u.reader("templates")],c.prototype,"readTemplates",null);b.__decorate([p.writer("templates")],c.prototype,"writeTemplates",null);return c=b.__decorate([m.subclass("esri.layers.support.FeatureType")],c)})},"esri/layers/support/fieldProperties":function(){define(["exports","../../core/Logger","./Field","./FieldsIndex","./fieldUtils"],function(a,b,c,g,f){const k=b.getLogger("esri.layers.support.fieldProperties");
a.defineFieldProperties=function(){return{fields:{type:[c],value:null},fieldsIndex:{readOnly:!0,get(){return new g(this.fields||[])}},outFields:{type:[String],json:{read:!1},set:function(q){this._userOutFields=q;this.notifyChange("outFields")},get:function(){const q=this._userOutFields;if(!q||!q.length)return null;if(q.includes("*"))return["*"];if(!this.fields)return q;for(const v of q)this.fieldsIndex.has(v)||k.error("field-attributes-layer:invalid-field",`Invalid field ${v} found in outFields`,
{layer:this,outFields:q});return f.fixFields(this.fieldsIndex,q)}}}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/FieldsIndex":function(){define(function(){return function(){function a(c){this.fields=c;this._fieldsMap=new Map;this._dateFieldsSet=new Set;this.dateFields=[];if(c){var g=[];for(const f of c)if(c=f&&f.name){const k=c.toLowerCase().trim();this._fieldsMap.set(c,f);this._fieldsMap.set(k,f);g.push(k);if("date"===f.type||"esriFieldTypeDate"===f.type)this.dateFields.push(f),
this._dateFieldsSet.add(f)}g.sort();this.uid=g.join(",")}}var b=a.prototype;b.destroy=function(){this._fieldsMap.clear()};b.has=function(c){return null!=this.get(c)};b.get=function(c){return null!=c?this._fieldsMap.get(c)||this._fieldsMap.get(c.toLowerCase().trim()):void 0};b.isDateField=function(c){return this._dateFieldsSet.has(this.get(c))};b.normalizeFieldName=function(c){if(c=this.get(c))return c.name};return a}()})},"esri/layers/support/GeometryFieldsInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/unitUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){c=function(m){function p(e){e=m.call(this,e)||this;e.shapeAreaField=null;e.shapeLengthField=null;e.units=null;return e}a._inheritsLoose(p,m);return p}(c.JSONSupport);b.__decorate([f.property({type:String,json:{read:{source:"shapeAreaFieldName"}}})],c.prototype,"shapeAreaField",void 0);b.__decorate([f.property({type:String,json:{read:{source:"shapeLengthFieldName"}}})],c.prototype,"shapeLengthField",void 0);b.__decorate([f.property({type:String,json:{read:m=>g.areaUnitsJSONMap.read(m)||
g.lengthUnitsJSONMap.read(m)}})],c.prototype,"units",void 0);return c=b.__decorate([u.subclass("esri.layers.support.GeometryFieldsInfo")],c)})},"esri/layers/support/labelingInfo":function(){define(["exports","./LabelClass"],function(a,b){const c=/\[([^\[\]]+)\]/gi;a.reader=function(g,f,k){return g?g.map(q=>{const v=new b;v.read(q,k);if(v.labelExpression){const t=f.fields||f.layerDefinition&&f.layerDefinition.fields||this.fields;v.labelExpression=v.labelExpression.replace(c,(u,m)=>{a:if(t){u=m.toLowerCase();
for(let p=0;p<t.length;p++){const e=t[p].name;if(e.toLowerCase()===u){m=e;break a}}}return`[${m}]`})}return v}):null};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/LayerFloorInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Collection ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){g=function(m){function p(e){e=m.call(this,e)||this;e.floorField=null;e.viewAllMode=!1;e.viewAllLevelIds=new c;return e}a._inheritsLoose(p,m);return p}(g.JSONSupport);b.__decorate([f.property({type:String,json:{write:!0}})],g.prototype,"floorField",void 0);b.__decorate([f.property({json:{read:!1,write:!1}})],g.prototype,"viewAllMode",void 0);b.__decorate([f.property({json:{read:!1,write:!1}})],g.prototype,"viewAllLevelIds",void 0);return g=b.__decorate([u.subclass("esri.layers.support.LayerFloorInfo")],
g)})},"esri/layers/support/Relationship":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t){k=new c.JSONMap({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"});
c=new c.JSONMap({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});g=function(u){function m(p){p=u.call(this,p)||this;p.cardinality=null;p.composite=null;p.id=null;p.keyField=null;p.keyFieldInRelationshipTable=null;p.name=null;p.relatedTableId=null;p.relationshipTableId=null;p.role=null;return p}a._inheritsLoose(m,u);return m}(g.JSONSupport);b.__decorate([f.property({json:{read:k.read,write:k.write}})],g.prototype,"cardinality",void 0);b.__decorate([f.property({json:{read:!0,write:!0}})],
g.prototype,"composite",void 0);b.__decorate([f.property({json:{read:!0,write:!0}})],g.prototype,"id",void 0);b.__decorate([f.property({json:{read:!0,write:!0}})],g.prototype,"keyField",void 0);b.__decorate([f.property({json:{read:!0,write:!0}})],g.prototype,"keyFieldInRelationshipTable",void 0);b.__decorate([f.property({json:{read:!0,write:!0}})],g.prototype,"name",void 0);b.__decorate([f.property({json:{read:!0,write:!0}})],g.prototype,"relatedTableId",void 0);b.__decorate([f.property({json:{read:!0,
write:!0}})],g.prototype,"relationshipTableId",void 0);b.__decorate([f.property({json:{read:c.read,write:c.write}})],g.prototype,"role",void 0);return g=b.__decorate([t.subclass("esri.layers.support.Relationship")],g)})},"esri/layers/support/source/DataLayerSource":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/jsonMap ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/decorators/cast ../../../core/Logger ../../../core/accessorSupport/decorators/enumeration ../../../core/accessorSupport/decorators/reader ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/extensions/serializableProperty/reader ../Field ./MapLayerSource ./QueryTableDataSource ./RasterDataSource ./TableDataSource".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C){function D(){z||(z=l.createTypeReader({types:A()}));return z}function A(){E||(E={key:"type",base:null,typeMap:{"data-layer":a.DataLayerSource,"map-layer":n.MapLayerSource}});return E}var B,r;g=g.strict()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});a.JoinTableDataSource=B=function(F){function G(K){K=F.call(this,K)||this;K.type="join-table";return K}b._inheritsLoose(G,F);var N=G.prototype;N.readLeftTableSource=function(K,
I,J){return D()(K,I,J)};N.castLeftTableSource=function(K){return e.ensureOneOfType(A(),K)};N.readRightTableSource=function(K,I,J){return D()(K,I,J)};N.castRightTableSource=function(K){return e.ensureOneOfType(A(),K)};N.clone=function(){var K,I;const {leftTableKey:J,rightTableKey:L,leftTableSource:Q,rightTableSource:W,joinType:V}=this,P={leftTableKey:J,rightTableKey:L,leftTableSource:null!=(K=null==Q?void 0:Q.clone())?K:void 0,rightTableSource:null!=(I=null==W?void 0:W.clone())?I:void 0,joinType:V};
return new B(P)};return G}(f.JSONSupport);c.__decorate([u.enumeration({joinTable:"join-table"})],a.JoinTableDataSource.prototype,"type",void 0);c.__decorate([k.property({type:String,json:{write:!0}})],a.JoinTableDataSource.prototype,"leftTableKey",void 0);c.__decorate([k.property({type:String,json:{write:!0}})],a.JoinTableDataSource.prototype,"rightTableKey",void 0);c.__decorate([k.property({json:{write:!0}})],a.JoinTableDataSource.prototype,"leftTableSource",void 0);c.__decorate([m.reader("leftTableSource")],
a.JoinTableDataSource.prototype,"readLeftTableSource",null);c.__decorate([v.cast("leftTableSource")],a.JoinTableDataSource.prototype,"castLeftTableSource",null);c.__decorate([k.property({json:{write:!0}})],a.JoinTableDataSource.prototype,"rightTableSource",void 0);c.__decorate([m.reader("rightTableSource")],a.JoinTableDataSource.prototype,"readRightTableSource",null);c.__decorate([v.cast("rightTableSource")],a.JoinTableDataSource.prototype,"castRightTableSource",null);c.__decorate([u.enumeration(g)],
a.JoinTableDataSource.prototype,"joinType",void 0);a.JoinTableDataSource=B=c.__decorate([p.subclass("esri.layers.support.source.JoinTableDataSource")],a.JoinTableDataSource);let z=null,E=null;v={key:"type",base:null,typeMap:{"join-table":a.JoinTableDataSource,"query-table":w.QueryTableDataSource,raster:x.RasterDataSource,table:C.TableDataSource}};a.DataLayerSource=r=function(F){function G(N){N=F.call(this,N)||this;N.type="data-layer";return N}b._inheritsLoose(G,F);G.prototype.clone=function(){const {fields:N,
dataSource:K}=this;return new r({fields:N,dataSource:K})};return G}(f.JSONSupport);c.__decorate([u.enumeration({dataLayer:"data-layer"})],a.DataLayerSource.prototype,"type",void 0);c.__decorate([k.property({type:[h],json:{write:!0}})],a.DataLayerSource.prototype,"fields",void 0);c.__decorate([k.property({types:v,json:{write:!0}})],a.DataLayerSource.prototype,"dataSource",void 0);a.DataLayerSource=r=c.__decorate([p.subclass("esri.layers.support.source.DataLayerSource")],a.DataLayerSource);a.DataLayerSource.from=
e.ensureType(a.DataLayerSource);Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/source/MapLayerSource":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/accessorSupport/decorators/enumeration ../../../core/accessorSupport/decorators/subclass".split(" "),function(a,
b,c,g,f,k,q,v,t,u){var m;a.MapLayerSource=m=function(p){function e(l){l=p.call(this,l)||this;l.type="map-layer";return l}b._inheritsLoose(e,p);e.prototype.clone=function(){const {mapLayerId:l,gdbVersion:h}=this;return new m({mapLayerId:l,gdbVersion:h})};return e}(g.JSONSupport);c.__decorate([t.enumeration({mapLayer:"map-layer"})],a.MapLayerSource.prototype,"type",void 0);c.__decorate([f.property({type:q.Integer,json:{write:!0}})],a.MapLayerSource.prototype,"mapLayerId",void 0);c.__decorate([f.property({type:String,
json:{write:!0}})],a.MapLayerSource.prototype,"gdbVersion",void 0);a.MapLayerSource=m=c.__decorate([u.subclass("esri.layers.support.source.MapLayerSource")],a.MapLayerSource);Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/source/QueryTableDataSource":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../geometry ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/accessorSupport/decorators/enumeration ../../../core/accessorSupport/decorators/subclass ../../../geometry/SpatialReference ../../../geometry/support/typeUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){var l;a.QueryTableDataSource=l=function(h){function n(w){w=h.call(this,w)||this;w.type="query-table";return w}b._inheritsLoose(n,h);n.prototype.clone=function(){var w;const {workspaceId:x,query:C,oidFields:D,spatialReference:A,geometryType:B}=this,r={workspaceId:x,query:C,oidFields:D,spatialReference:null!=(w=null==A?void 0:A.clone())?w:void 0,geometryType:B};return new l(r)};return n}(f.JSONSupport);c.__decorate([u.enumeration({queryTable:"query-table"})],a.QueryTableDataSource.prototype,
"type",void 0);c.__decorate([k.property({type:String,json:{write:!0}})],a.QueryTableDataSource.prototype,"workspaceId",void 0);c.__decorate([k.property({type:String,json:{write:!0}})],a.QueryTableDataSource.prototype,"query",void 0);c.__decorate([k.property({type:String,json:{write:!0}})],a.QueryTableDataSource.prototype,"oidFields",void 0);c.__decorate([k.property({type:p,json:{write:!0}})],a.QueryTableDataSource.prototype,"spatialReference",void 0);c.__decorate([u.enumeration(e.featureGeometryTypeKebabDictionary)],
a.QueryTableDataSource.prototype,"geometryType",void 0);a.QueryTableDataSource=l=c.__decorate([m.subclass("esri.layers.support.source.QueryTableDataSource")],a.QueryTableDataSource);Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/source/RasterDataSource":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/accessorSupport/decorators/enumeration ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;a.RasterDataSource=m=function(p){function e(l){l=p.call(this,l)||this;l.type="raster";return l}b._inheritsLoose(e,p);e.prototype.clone=function(){const {workspaceId:l,dataSourceName:h}=this;return new m({workspaceId:l,dataSourceName:h})};return e}(g.JSONSupport);c.__decorate([t.enumeration({raster:"raster"})],a.RasterDataSource.prototype,"type",void 0);c.__decorate([f.property({type:String,json:{write:!0}})],a.RasterDataSource.prototype,"dataSourceName",void 0);
c.__decorate([f.property({type:String,json:{write:!0}})],a.RasterDataSource.prototype,"workspaceId",void 0);a.RasterDataSource=m=c.__decorate([u.subclass("esri.layers.support.source.RasterDataSource")],a.RasterDataSource);Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/support/source/TableDataSource":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/accessorSupport/decorators/enumeration ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;a.TableDataSource=m=function(p){function e(l){l=p.call(this,l)||this;l.type="table";return l}b._inheritsLoose(e,p);e.prototype.clone=function(){const {workspaceId:l,gdbVersion:h,dataSourceName:n}=this;return new m({workspaceId:l,gdbVersion:h,dataSourceName:n})};return e}(g.JSONSupport);c.__decorate([t.enumeration({table:"table"})],a.TableDataSource.prototype,"type",void 0);c.__decorate([f.property({type:String,json:{write:!0}})],a.TableDataSource.prototype,"workspaceId",
void 0);c.__decorate([f.property({type:String,json:{write:!0}})],a.TableDataSource.prototype,"gdbVersion",void 0);c.__decorate([f.property({type:String,json:{write:!0}})],a.TableDataSource.prototype,"dataSourceName",void 0);a.TableDataSource=m=c.__decorate([u.subclass("esri.layers.support.source.TableDataSource")],a.TableDataSource);Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/support/AttachmentQuery":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){var p;c=p=function(e){function l(n){n=e.call(this,n)||this;n.attachmentTypes=null;n.attachmentsWhere=null;n.keywords=null;n.globalIds=null;n.name=null;n.num=null;n.objectIds=null;n.returnMetadata=!1;n.size=null;n.start=null;n.where=null;return n}a._inheritsLoose(l,e);var h=l.prototype;h.writeStart=function(n,w){w.resultOffset=this.start;w.resultRecordCount=this.num||10};h.clone=function(){return new p(g.clone({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,
keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))};return l}(c.JSONSupport);b.__decorate([f.property({type:[String],json:{write:!0}})],c.prototype,"attachmentTypes",void 0);b.__decorate([f.property({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],c.prototype,"attachmentsWhere",void 0);b.__decorate([f.property({type:[String],
json:{write:!0}})],c.prototype,"keywords",void 0);b.__decorate([f.property({type:[Number],json:{write:!0}})],c.prototype,"globalIds",void 0);b.__decorate([f.property({json:{write:!0}})],c.prototype,"name",void 0);b.__decorate([f.property({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0);b.__decorate([f.property({type:[Number],json:{write:!0}})],c.prototype,"objectIds",void 0);b.__decorate([f.property({type:Boolean,json:{default:!1,write:!0}})],c.prototype,"returnMetadata",
void 0);b.__decorate([f.property({type:[Number],json:{write:!0}})],c.prototype,"size",void 0);b.__decorate([f.property({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0);b.__decorate([m.writer("start"),m.writer("num")],c.prototype,"writeStart",null);b.__decorate([f.property({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0);c=p=b.__decorate([u.subclass("esri.rest.support.AttachmentQuery")],c);c.from=
k.ensureType(c);return c})},"esri/rest/support/Query":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../TimeExtent ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../core/accessorSupport/ensureType ../../geometry/support/jsonUtils ../../layers/support/source/DataLayerSource ./QuantizationParameters ./StatisticDefinition ../../geometry/SpatialReference ../../geometry/Point".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B){var r;m=new f.JSONMap({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"});f=new f.JSONMap({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",
esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});k=r=function(z){function E(G){G=z.call(this,G)||this;G.aggregateIds=null;G.cacheHint=void 0;G.datumTransformation=null;G.distance=void 0;G.dynamicDataSource=void 0;G.formatOf3DObjects=null;G.gdbVersion=null;G.geometry=null;G.geometryPrecision=void 0;G.groupByFieldsForStatistics=null;G.having=null;G.historicMoment=null;G.maxAllowableOffset=void 0;G.maxRecordCountFactor=
1;G.multipatchOption=null;G.num=void 0;G.objectIds=null;G.orderByFields=null;G.outFields=null;G.outSpatialReference=null;G.outStatistics=null;G.parameterValues=null;G.pixelSize=null;G.quantizationParameters=null;G.rangeValues=null;G.relationParameter=null;G.resultType=null;G.returnCentroid=!1;G.returnDistinctValues=!1;G.returnExceededLimitFeatures=!0;G.returnGeometry=!1;G.returnQueryGeometry=!1;G.returnM=void 0;G.returnZ=void 0;G.sourceSpatialReference=null;G.spatialRelationship="intersects";G.start=
void 0;G.sqlFormat=null;G.text=null;G.timeExtent=null;G.units=null;G.where=null;return G}a._inheritsLoose(E,z);E.from=function(G){return n.ensureClass(r,G)};var F=E.prototype;F.castDatumTransformation=function(G){return"number"===typeof G||"object"===typeof G?G:null};F.writeHistoricMoment=function(G,N){N.historicMoment=G&&G.getTime()};F.writeParameterValues=function(G,N){if(G){const K={};for(const I in G){const J=G[I];Array.isArray(J)?K[I]=J.map(L=>L instanceof Date?L.getTime():L):K[I]=J instanceof
Date?J.getTime():J}N.parameterValues=K}};F.writeStart=function(G,N){N.resultOffset=this.start;N.resultRecordCount=this.num||10;N.where="1\x3d1"};F.writeWhere=function(G,N){N.where=G||"1\x3d1"};F.clone=function(){return new r(q.clone({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,datumTransformation:this.datumTransformation,distance:this.distance,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,
having:this.having,historicMoment:v.isSome(this.historicMoment)?new Date(this.historicMoment.getTime()):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,
rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,
sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,units:this.units,where:this.where}))};return E}(k.JSONSupport);k.MAX_MAX_RECORD_COUNT_FACTOR=5;b.__decorate([t.property({json:{write:!0}})],k.prototype,"aggregateIds",void 0);b.__decorate([t.property({type:Boolean,json:{write:!0}})],k.prototype,"cacheHint",void 0);b.__decorate([t.property({json:{write:!0}})],k.prototype,"datumTransformation",void 0);b.__decorate([u.cast("datumTransformation")],k.prototype,"castDatumTransformation",
null);b.__decorate([t.property({type:Number,json:{write:{overridePolicy(z){return{enabled:0<z}}}}})],k.prototype,"distance",void 0);b.__decorate([t.property({type:x.DataLayerSource,json:{write:!0}})],k.prototype,"dynamicDataSource",void 0);b.__decorate([t.property({type:String,json:{write:!0}})],k.prototype,"formatOf3DObjects",void 0);b.__decorate([t.property({type:String,json:{write:!0}})],k.prototype,"gdbVersion",void 0);b.__decorate([t.property({types:c.geometryTypes,json:{read:w.fromJSON,write:!0}})],
k.prototype,"geometry",void 0);b.__decorate([t.property({type:Number,json:{write:!0}})],k.prototype,"geometryPrecision",void 0);b.__decorate([t.property({type:[String],json:{write:!0}})],k.prototype,"groupByFieldsForStatistics",void 0);b.__decorate([t.property({type:String,json:{write:!0}})],k.prototype,"having",void 0);b.__decorate([t.property({type:Date})],k.prototype,"historicMoment",void 0);b.__decorate([h.writer("historicMoment")],k.prototype,"writeHistoricMoment",null);b.__decorate([t.property({type:Number,
json:{write:!0}})],k.prototype,"maxAllowableOffset",void 0);b.__decorate([t.property({type:Number,cast(z){return 1>z?1:z>r.MAX_MAX_RECORD_COUNT_FACTOR?r.MAX_MAX_RECORD_COUNT_FACTOR:z},json:{write:{overridePolicy(z){return{enabled:1<z}}}}})],k.prototype,"maxRecordCountFactor",void 0);b.__decorate([t.property({type:["xyFootprint"],json:{write:!0}})],k.prototype,"multipatchOption",void 0);b.__decorate([t.property({type:Number,json:{read:{source:"resultRecordCount"}}})],k.prototype,"num",void 0);b.__decorate([t.property({json:{write:!0}})],
k.prototype,"objectIds",void 0);b.__decorate([t.property({type:[String],json:{write:!0}})],k.prototype,"orderByFields",void 0);b.__decorate([t.property({type:[String],json:{write:!0}})],k.prototype,"outFields",void 0);b.__decorate([t.property({type:A,json:{name:"outSR",write:!0}})],k.prototype,"outSpatialReference",void 0);b.__decorate([t.property({type:[D],json:{write:{enabled:!0,overridePolicy(){return{enabled:v.isSome(this.outStatistics)&&0<this.outStatistics.length}}}}})],k.prototype,"outStatistics",
void 0);b.__decorate([t.property({json:{write:!0}})],k.prototype,"parameterValues",void 0);b.__decorate([h.writer("parameterValues")],k.prototype,"writeParameterValues",null);b.__decorate([t.property({type:B,json:{write:!0}})],k.prototype,"pixelSize",void 0);b.__decorate([t.property({type:C,json:{write:!0}})],k.prototype,"quantizationParameters",void 0);b.__decorate([t.property({type:[Object],json:{write:!0}})],k.prototype,"rangeValues",void 0);b.__decorate([t.property({type:String,json:{read:{source:"relationParam"},
write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],k.prototype,"relationParameter",void 0);b.__decorate([t.property({type:String,json:{write:!0}})],k.prototype,"resultType",void 0);b.__decorate([t.property({type:Boolean,json:{default:!1,write:!0}})],k.prototype,"returnCentroid",void 0);b.__decorate([t.property({type:Boolean,json:{default:!1,write:!0}})],k.prototype,"returnDistinctValues",void 0);b.__decorate([t.property({type:Boolean,json:{default:!0,
write:!0}})],k.prototype,"returnExceededLimitFeatures",void 0);b.__decorate([t.property({type:Boolean,json:{write:!0}})],k.prototype,"returnGeometry",void 0);b.__decorate([t.property({type:Boolean,json:{default:!1,write:!0}})],k.prototype,"returnQueryGeometry",void 0);b.__decorate([t.property({type:Boolean,json:{default:!1,write:!0}})],k.prototype,"returnM",void 0);b.__decorate([t.property({type:Boolean,json:{write:{overridePolicy(z){return{enabled:z}}}}})],k.prototype,"returnZ",void 0);b.__decorate([t.property({type:A,
json:{write:!0}})],k.prototype,"sourceSpatialReference",void 0);b.__decorate([e.enumeration(m,{ignoreUnknown:!1,name:"spatialRel"})],k.prototype,"spatialRelationship",void 0);b.__decorate([t.property({type:Number,json:{read:{source:"resultOffset"}}})],k.prototype,"start",void 0);b.__decorate([h.writer("start"),h.writer("num")],k.prototype,"writeStart",null);b.__decorate([t.property({type:String,json:{write:!0}})],k.prototype,"sqlFormat",void 0);b.__decorate([t.property({type:String,json:{write:!0}})],
k.prototype,"text",void 0);b.__decorate([t.property({type:g,json:{write:!0}})],k.prototype,"timeExtent",void 0);b.__decorate([e.enumeration(f,{ignoreUnknown:!1}),t.property({json:{write:{overridePolicy(z){return{enabled:z&&0<this.distance}}}}})],k.prototype,"units",void 0);b.__decorate([t.property({type:String,json:{write:{overridePolicy(z){return{enabled:null!=z||0<this.start}}}}})],k.prototype,"where",void 0);b.__decorate([h.writer("where")],k.prototype,"writeWhere",null);return k=r=b.__decorate([l.subclass("esri.rest.support.Query")],
k)})},"esri/rest/support/QuantizationParameters":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ../../geometry/Extent".split(" "),function(a,b,c,g,f,k,q,v,t,u,m,p){var e;c=new g.JSONMap({upperLeft:"upper-left",lowerLeft:"lower-left"});
f=e=function(l){function h(n){n=l.call(this,n)||this;n.extent=null;n.mode="view";n.originPosition="upper-left";n.tolerance=1;return n}a._inheritsLoose(h,l);h.prototype.clone=function(){return new e(k.clone({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))};return h}(f.JSONSupport);b.__decorate([q.property({type:p,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],f.prototype,"extent",void 0);b.__decorate([q.property({type:["view",
"edit"],json:{write:!0}})],f.prototype,"mode",void 0);b.__decorate([q.property({type:String,json:{read:c.read,write:c.write}})],f.prototype,"originPosition",void 0);b.__decorate([q.property({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],f.prototype,"tolerance",void 0);return f=e=b.__decorate([m.subclass("esri.rest.support.QuantizationParameters")],f)})},"esri/rest/support/StatisticDefinition":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){var p;c=new c.JSONMap({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete"});g=p=function(e){function l(n){n=e.call(this,n)||this;n.maxPointCount=void 0;n.maxRecordCount=void 0;n.maxVertexCount=void 0;n.onStatisticField=null;n.outStatisticFieldName=null;n.statisticType=null;n.statisticParameters=null;return n}a._inheritsLoose(l,e);var h=
l.prototype;h.writeStatisticParameters=function(n,w){if("percentile-continuous"===this.statisticType||"percentile-discrete"===this.statisticType)w.statisticParameters=f.clone(n)};h.clone=function(){return new p({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:f.clone(this.statisticParameters)})};return l}(g.JSONSupport);
b.__decorate([k.property({type:Number,json:{write:!0}})],g.prototype,"maxPointCount",void 0);b.__decorate([k.property({type:Number,json:{write:!0}})],g.prototype,"maxRecordCount",void 0);b.__decorate([k.property({type:Number,json:{write:!0}})],g.prototype,"maxVertexCount",void 0);b.__decorate([k.property({type:String,json:{write:!0}})],g.prototype,"onStatisticField",void 0);b.__decorate([k.property({type:String,json:{write:!0}})],g.prototype,"outStatisticFieldName",void 0);b.__decorate([k.property({type:String,
json:{read:{source:"statisticType",reader:c.read},write:{target:"statisticType",writer:c.write}}})],g.prototype,"statisticType",void 0);b.__decorate([k.property({type:Object})],g.prototype,"statisticParameters",void 0);b.__decorate([m.writer("statisticParameters")],g.prototype,"writeStatisticParameters",null);return g=p=b.__decorate([u.subclass("esri.rest.support.StatisticDefinition")],g)})},"esri/rest/support/RelationshipQuery":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../layers/support/source/DataLayerSource ../../geometry/SpatialReference".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l){var h;c=h=function(n){function w(C){C=n.call(this,C)||this;C.dynamicDataSource=void 0;C.gdbVersion=null;C.geometryPrecision=void 0;C.historicMoment=null;C.maxAllowableOffset=void 0;C.objectIds=null;C.orderByFields=null;C.outFields=null;C.outSpatialReference=null;C.relationshipId=void 0;C.start=void 0;C.num=void 0;C.returnGeometry=!1;C.returnM=void 0;C.returnZ=void 0;C.where=null;return C}a._inheritsLoose(w,n);var x=w.prototype;x._writeHistoricMoment=function(C,
D){D.historicMoment=C&&C.getTime()};x.writeStart=function(C,D){D.resultOffset=this.start;D.resultRecordCount=this.num||10;D.where="1\x3d1"};x.clone=function(){return new h(f.clone({dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,
relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))};return w}(g.JSONSupport);b.__decorate([k.property({type:e.DataLayerSource,json:{write:!0}})],c.prototype,"dynamicDataSource",void 0);b.__decorate([k.property({type:String,json:{write:!0}})],c.prototype,"gdbVersion",void 0);b.__decorate([k.property({type:Number,json:{write:!0}})],c.prototype,"geometryPrecision",void 0);b.__decorate([k.property({type:Date})],
c.prototype,"historicMoment",void 0);b.__decorate([p.writer("historicMoment")],c.prototype,"_writeHistoricMoment",null);b.__decorate([k.property({type:Number,json:{write:!0}})],c.prototype,"maxAllowableOffset",void 0);b.__decorate([k.property({type:[Number],json:{write:!0}})],c.prototype,"objectIds",void 0);b.__decorate([k.property({type:[String],json:{write:!0}})],c.prototype,"orderByFields",void 0);b.__decorate([k.property({type:[String],json:{write:!0}})],c.prototype,"outFields",void 0);b.__decorate([k.property({type:l,
json:{read:{source:"outSR"},write:{target:"outSR"}}})],c.prototype,"outSpatialReference",void 0);b.__decorate([k.property({json:{write:!0}})],c.prototype,"relationshipId",void 0);b.__decorate([k.property({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0);b.__decorate([p.writer("start"),p.writer("num")],c.prototype,"writeStart",null);b.__decorate([k.property({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0);b.__decorate([k.property({json:{write:!0}})],
c.prototype,"returnGeometry",void 0);b.__decorate([k.property({type:Boolean,json:{write:{overridePolicy(n){return{enabled:n}}}}})],c.prototype,"returnM",void 0);b.__decorate([k.property({type:Boolean,json:{write:{overridePolicy(n){return{enabled:n}}}}})],c.prototype,"returnZ",void 0);b.__decorate([k.property({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0);c=h=b.__decorate([m.subclass("esri.rest.support.RelationshipQuery")],
c);c.from=q.ensureType(c);return c})},"esri/rest/support/TopFeaturesQuery":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../TimeExtent ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/support/jsonUtils ./TopFilter ../../geometry/SpatialReference".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n){var w;u=new f.JSONMap({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"});f=new f.JSONMap({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",
esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});k=w=function(x){function C(A){A=x.call(this,A)||this;A.cacheHint=void 0;A.distance=void 0;A.geometry=null;A.geometryPrecision=void 0;A.maxAllowableOffset=void 0;A.num=void 0;A.objectIds=null;A.orderByFields=null;A.outFields=null;A.outSpatialReference=null;A.resultType=null;A.returnGeometry=!1;A.returnM=void 0;A.returnZ=void 0;A.start=void 0;A.spatialRelationship=
"intersects";A.timeExtent=null;A.topFilter=void 0;A.units=null;A.where="1\x3d1";return A}a._inheritsLoose(C,x);var D=C.prototype;D.writeStart=function(A,B){B.resultOffset=this.start;B.resultRecordCount=this.num||10};D.clone=function(){return new w(q.clone({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,
outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))};return C}(k.JSONSupport);b.__decorate([v.property({type:Boolean,json:{write:!0}})],k.prototype,"cacheHint",void 0);b.__decorate([v.property({type:Number,json:{write:{overridePolicy(x){return{enabled:0<
x}}}}})],k.prototype,"distance",void 0);b.__decorate([v.property({types:c.geometryTypes,json:{read:l.fromJSON,write:!0}})],k.prototype,"geometry",void 0);b.__decorate([v.property({type:Number,json:{write:!0}})],k.prototype,"geometryPrecision",void 0);b.__decorate([v.property({type:Number,json:{write:!0}})],k.prototype,"maxAllowableOffset",void 0);b.__decorate([v.property({type:Number,json:{read:{source:"resultRecordCount"}}})],k.prototype,"num",void 0);b.__decorate([v.property({json:{write:!0}})],
k.prototype,"objectIds",void 0);b.__decorate([v.property({type:[String],json:{write:!0}})],k.prototype,"orderByFields",void 0);b.__decorate([v.property({type:[String],json:{write:!0}})],k.prototype,"outFields",void 0);b.__decorate([v.property({type:n,json:{read:{source:"outSR"},write:{target:"outSR"}}})],k.prototype,"outSpatialReference",void 0);b.__decorate([v.property({type:String,json:{write:!0}})],k.prototype,"resultType",void 0);b.__decorate([v.property({json:{write:!0}})],k.prototype,"returnGeometry",
void 0);b.__decorate([v.property({type:Boolean,json:{write:{overridePolicy(x){return{enabled:x}}}}})],k.prototype,"returnM",void 0);b.__decorate([v.property({type:Boolean,json:{write:{overridePolicy(x){return{enabled:x}}}}})],k.prototype,"returnZ",void 0);b.__decorate([v.property({type:Number,json:{read:{source:"resultOffset"}}})],k.prototype,"start",void 0);b.__decorate([e.writer("start"),e.writer("num")],k.prototype,"writeStart",null);b.__decorate([v.property({type:String,json:{read:{source:"spatialRel",
reader:u.read},write:{target:"spatialRel",writer:u.write}}})],k.prototype,"spatialRelationship",void 0);b.__decorate([v.property({type:g,json:{write:!0}})],k.prototype,"timeExtent",void 0);b.__decorate([v.property({type:h,json:{write:!0}})],k.prototype,"topFilter",void 0);b.__decorate([v.property({type:String,json:{read:f.read,write:{writer:f.write,overridePolicy(x){return{enabled:x&&0<this.distance}}}}})],k.prototype,"units",void 0);b.__decorate([v.property({type:String,json:{write:!0}})],k.prototype,
"where",void 0);k=w=b.__decorate([p.subclass("esri.rest.support.TopFeaturesQuery")],k);k.from=t.ensureType(k);return k})},"esri/rest/support/TopFilter":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t){var u;c=u=function(m){function p(e){e=
m.call(this,e)||this;e.groupByFields=void 0;e.topCount=void 0;e.orderByFields=void 0;return e}a._inheritsLoose(p,m);p.prototype.clone=function(){return new u({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})};return p}(c.JSONSupport);b.__decorate([g.property({type:[String],json:{write:!0}})],c.prototype,"groupByFields",void 0);b.__decorate([g.property({type:Number,json:{write:!0}})],c.prototype,"topCount",void 0);b.__decorate([g.property({type:[String],json:{write:!0}})],
c.prototype,"orderByFields",void 0);return c=u=b.__decorate([t.subclass("esri.rest.support.TopFilter")],c)})},"esri/support/popupUtils":function(){define("exports ../PopupTemplate ../layers/support/fieldUtils ../popup/content/AttachmentsContent ../popup/content/Content ../popup/content/CustomContent ../popup/content/FieldsContent ../popup/content/MediaContent ../popup/content/TextContent ../popup/FieldInfo ../popup/support/FieldInfoFormat".split(" "),function(a,b,c,g,f,k,q,v,t,u,m){function p(r,z){const E=
r;z&&(r=r.filter(F=>-1===z.indexOf(F.type)));r===E&&(r=r.slice());r.sort(e);return r}function e(r,z){return"oid"===r.type?-1:"oid"===z.type?1:w(r)?-1:w(z)?1:(r.alias||r.name).toLocaleLowerCase().localeCompare((z.alias||z.name).toLocaleLowerCase())}function l(r,z){if(!r||!z)return!1;const {creationDateField:E,creatorField:F,editDateField:G,editorField:N}=z;return-1!==[E&&E.toLowerCase(),F&&F.toLowerCase(),G&&G.toLowerCase(),N&&N.toLowerCase()].indexOf(r.toLowerCase())}function h({editFieldsInfo:r,
fields:z,objectIdField:E},F){return p(z,(null==F?void 0:F.ignoreFieldTypes)||B).map(G=>{var N=G.name;var K=G.editable&&-1===C.indexOf(G.type)&&!l(G.name,r);return new u({fieldName:N,isEditable:K,label:G.alias,format:n(G),visible:A(G,{editFieldsInfo:r,objectIdField:E,visibleFieldNames:null==F?void 0:F.visibleFieldNames})})})}function n(r){switch(r.type){case "small-integer":case "integer":case "single":return new m({digitSeparator:!0,places:0});case "double":return new m({digitSeparator:!0,places:2});
case "date":return new m({dateFormat:"long-month-day-year"});default:return null}}function w(r){if("name"===(r.name&&r.name.toLowerCase())||"name"===(r.alias&&r.alias.toLowerCase()))return!0}const x=["oid","global-id"],C=["oid","global-id","guid"],D=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/shape/i,/perimeter/i,/objectid/i,/_i$/i],A=(r,{editFieldsInfo:z,objectIdField:E,visibleFieldNames:F})=>F?F.has(r.name):l(r.name,z)?!1:
E&&r.name===E?!1:-1<x.indexOf(r.type)?!1:!D.some(G=>G.test(r.name)),B=["geometry","blob","raster","guid","xml"];a.createFieldInfos=h;a.createFieldsContent=function(r,z){return new q({fieldInfos:h(r,z).filter(E=>E.visible)})};a.createPopupTemplate=function({displayField:r,editFieldsInfo:z,fields:E,objectIdField:F,title:G},N){if(!E)return null;z=h({editFieldsInfo:z,fields:E,objectIdField:F},N);if(!z.length)return null;E={titleBase:G,fields:E,displayField:r};r=c.getDisplayFieldName(E);({titleBase:E}=
E);r=r?`${E}: {${r.trim()}}`:E;E=[new q,new g];return new b({title:r,content:E,fieldInfos:z})};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/graphics/sources/FeatureLayerSource":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../geometry ../../../Graphic ../../../request ../../../TimeExtent ../../../core/Error ../../../core/has ../../../core/jsonMap ../../../core/Loadable ../../../core/maybe ../../../core/object ../../../core/urlUtils ../../../core/accessorSupport/decorators/property ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/accessorSupport/decorators/subclass ../../../geometry/Extent ../../../geometry/support/jsonUtils ./support/clientSideDefaults ../../../rest/query/operations/queryAttachments ../../../rest/query/operations/zscale ../../../tasks/QueryTask ../../../geometry/SpatialReference".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r,z){function E(K){return F.apply(this,arguments)}function F(){F=a._asyncToGenerator(function*(K){if("string"===typeof K){const I=e.dataComponents(K);return I?I:{data:K}}return new Promise((I,J)=>{const L=new FileReader;L.readAsDataURL(K);L.onload=()=>I(e.dataComponents(L.result));L.onerror=Q=>J(Q)})});return F.apply(this,arguments)}const G=new t.JSONMap({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),N=new Set(["Feature Layer",
"Table"]);c=function(K){function I(){var L=K.apply(this,arguments)||this;L.type="feature-layer";return L}a._inheritsLoose(I,K);var J=I.prototype;J.load=function(L){L=m.isSome(L)?L.signal:null;this.addResolvingPromise(this._fetchService(L));return Promise.resolve(this)};J.addAttachment=function(){var L=a._asyncToGenerator(function*(Q,W){yield this.load();Q=Q.attributes[this.layer.objectIdField];const V=this.layer.parsedUrl.path+"/"+Q+"/addAttachment",P=this._getLayerRequestOptions();W=this._getFormDataForAttachment(W,
P.query);try{const X=yield f(V,{body:W});return this._createFeatureEditResult(X.data.addAttachmentResult)}catch(X){throw this._createAttachmentErrorResult(Q,X);}});return function(Q,W){return L.apply(this,arguments)}}();J.updateAttachment=function(){var L=a._asyncToGenerator(function*(Q,W,V){yield this.load();Q=Q.attributes[this.layer.objectIdField];const P=this.layer.parsedUrl.path+"/"+Q+"/updateAttachment";W=this._getLayerRequestOptions({query:{attachmentId:W}});V=this._getFormDataForAttachment(V,
W.query);try{const X=yield f(P,{body:V});return this._createFeatureEditResult(X.data.updateAttachmentResult)}catch(X){throw this._createAttachmentErrorResult(Q,X);}});return function(Q,W,V){return L.apply(this,arguments)}}();J.applyEdits=function(){var L=a._asyncToGenerator(function*(Q,W){yield this.load();var V=Q.addFeatures.map(this._serializeFeature,this);const P=Q.updateFeatures.map(this._serializeFeature,this),X=this._getFeatureIds(Q.deleteFeatures,null==W?void 0:W.globalIdUsed);B.unapplyEditsZUnitScaling(V,
P,this.layer.spatialReference);var U=[];const Z=[],oa=[...Q.deleteAttachments];for(const xa of Q.addAttachments)U.push(yield this._serializeAttachment(xa));for(const xa of Q.updateAttachments)Z.push(yield this._serializeAttachment(xa));Q=U.length||Z.length||oa.length?{adds:U,updates:Z,deletes:oa}:null;U={gdbVersion:(null==W?void 0:W.gdbVersion)||this.layer.gdbVersion,rollbackOnFailure:null==W?void 0:W.rollbackOnFailureEnabled,useGlobalIds:null==W?void 0:W.globalIdUsed,returnEditMoment:null==W?void 0:
W.returnEditMoment,usePreviousEditMoment:null==W?void 0:W.usePreviousEditMoment,sessionId:null==W?void 0:W.sessionId};null!=W&&W.returnServiceEditsOption?(U.edits=JSON.stringify([{id:this.layer.layerId,adds:V,updates:P,deletes:X,attachments:Q}]),U.returnServiceEditsOption=G.toJSON(null==W?void 0:W.returnServiceEditsOption),U.returnServiceEditsInSourceSR=null==W?void 0:W.returnServiceEditsInSourceSR):(U.adds=V.length?JSON.stringify(V):null,U.updates=P.length?JSON.stringify(P):null,U.deletes=X.length?
null!=W&&W.globalIdUsed?JSON.stringify(X):X.join(","):null,U.attachments=Q&&JSON.stringify(Q));V=this._getLayerRequestOptions({method:"post",query:U});W=yield f((null!=W&&W.returnServiceEditsOption?this.layer.url:this.layer.parsedUrl.path)+"/applyEdits",V);return this._createEditsResult(W)});return function(Q,W){return L.apply(this,arguments)}}();J.deleteAttachments=function(){var L=a._asyncToGenerator(function*(Q,W){yield this.load();Q=Q.attributes[this.layer.objectIdField];const V=this.layer.parsedUrl.path+
"/"+Q+"/deleteAttachments";try{return(yield f(V,this._getLayerRequestOptions({query:{attachmentIds:W.join(",")},method:"post"}))).data.deleteAttachmentResults.map(this._createFeatureEditResult)}catch(P){throw this._createAttachmentErrorResult(Q,P);}});return function(Q,W){return L.apply(this,arguments)}}();J.fetchRecomputedExtents=function(L={}){var Q=this;return this.load({signal:L.signal}).then(a._asyncToGenerator(function*(){var W=Q._getLayerRequestOptions({...L,query:{returnUpdates:!0}});const {layerId:V,
url:P}=Q.layer;({data:W}=yield f(`${P}/${V}`,W));const {id:X,extent:U,fullExtent:Z,timeExtent:oa}=W;W=U||Z;return{id:X,fullExtent:W&&x.fromJSON(W),timeExtent:oa&&k.fromJSON({start:oa[0],end:oa[1]})}}))};J.queryAttachments=function(){var L=a._asyncToGenerator(function*(Q,W={}){const {parsedUrl:V}=this.layer,P=V.path;yield this.load();W=this._getLayerRequestOptions(W);if(!this.layer.get("capabilities.operations.supportsQueryAttachments")){const {objectIds:X}=Q;Q=[];for(const U of X)Q.push(f(P+"/"+U+
"/attachments",W));return Promise.all(Q).then(U=>X.map((Z,oa)=>({parentObjectId:Z,attachmentInfos:U[oa].data.attachmentInfos}))).then(U=>A.processAttachmentQueryResult(U,P))}return this.queryTask.executeAttachmentQuery(Q,W)});return function(Q){return L.apply(this,arguments)}}();J.queryFeatures=function(){var L=a._asyncToGenerator(function*(Q,W){yield this.load();return this.queryTask.execute(Q,{...W,query:this._createRequestQueryOptions(W)})});return function(Q,W){return L.apply(this,arguments)}}();
J.queryFeaturesJSON=function(){var L=a._asyncToGenerator(function*(Q,W){yield this.load();return this.queryTask.executeJSON(Q,{...W,query:this._createRequestQueryOptions(W)})});return function(Q,W){return L.apply(this,arguments)}}();J.queryObjectIds=function(){var L=a._asyncToGenerator(function*(Q,W){yield this.load();return this.queryTask.executeForIds(Q,{...W,query:this._createRequestQueryOptions(W)})});return function(Q,W){return L.apply(this,arguments)}}();J.queryFeatureCount=function(){var L=
a._asyncToGenerator(function*(Q,W){yield this.load();return this.queryTask.executeForCount(Q,{...W,query:this._createRequestQueryOptions(W)})});return function(Q,W){return L.apply(this,arguments)}}();J.queryExtent=function(){var L=a._asyncToGenerator(function*(Q,W){yield this.load();return this.queryTask.executeForExtent(Q,{...W,query:this._createRequestQueryOptions(W)})});return function(Q,W){return L.apply(this,arguments)}}();J.queryRelatedFeatures=function(){var L=a._asyncToGenerator(function*(Q,
W){yield this.load();return this.queryTask.executeRelationshipQuery(Q,{...W,query:this._createRequestQueryOptions(W)})});return function(Q,W){return L.apply(this,arguments)}}();J.queryRelatedFeaturesCount=function(){var L=a._asyncToGenerator(function*(Q,W){yield this.load();return this.queryTask.executeRelationshipQueryForCount(Q,{...W,query:this._createRequestQueryOptions(W)})});return function(Q,W){return L.apply(this,arguments)}}();J.queryTopFeatures=function(){var L=a._asyncToGenerator(function*(Q,
W){yield this.load();return this.queryTask.executeTopFeaturesQuery(Q,{...W,query:this._createRequestQueryOptions(W)})});return function(Q,W){return L.apply(this,arguments)}}();J.queryTopObjectIds=function(){var L=a._asyncToGenerator(function*(Q,W){yield this.load();return this.queryTask.executeForTopIds(Q,{...W,query:this._createRequestQueryOptions(W)})});return function(Q,W){return L.apply(this,arguments)}}();J.queryTopExtents=function(){var L=a._asyncToGenerator(function*(Q,W){yield this.load();
return this.queryTask.executeForTopExtents(Q,{...W,query:this._createRequestQueryOptions(W)})});return function(Q,W){return L.apply(this,arguments)}}();J.queryTopCount=function(){var L=a._asyncToGenerator(function*(Q,W){yield this.load();return this.queryTask.executeForTopCount(Q,{...W,query:this._createRequestQueryOptions(W)})});return function(Q,W){return L.apply(this,arguments)}}();J._createRequestQueryOptions=function(L){return{...this.layer.customParameters,token:this.layer.apiKey,...null==L?
void 0:L.query}};J._fetchService=function(){var L=a._asyncToGenerator(function*(Q){let W=this.layer.sourceJSON;W||({data:Q}=yield f(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:v("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:Q})),W=Q);this.sourceJSON=this._patchServiceJSON(W);Q=W.type;if(!N.has(Q))throw new q("feature-layer-source:unsupported-type",`Source type "${Q}" is not supported`);});return function(Q){return L.apply(this,arguments)}}();J._patchServiceJSON=
function(L){var Q;"Table"===L.type||!L.geometryType||null!=L&&null!=(Q=L.drawingInfo)&&Q.renderer||L.defaultSymbol||(Q=D.createDrawingInfo(L.geometryType).renderer,p.setDeepValue("drawingInfo.renderer",Q,L));"esriGeometryMultiPatch"===L.geometryType&&L.infoFor3D&&(L.geometryType="mesh");return L};J._serializeFeature=function(L){const {geometry:Q,attributes:W}=L;return m.isNone(Q)?{attributes:W}:"mesh"===Q.type||"extent"===Q.type?null:{geometry:Q.toJSON(),attributes:W}};J._serializeAttachment=function(){var L=
a._asyncToGenerator(function*(Q){const {feature:W,attachment:V}=Q,{globalId:P,name:X,contentType:U,data:Z,uploadId:oa}=V;Q={globalId:P,parentGlobalId:null,contentType:null,name:null,uploadId:null,data:null};W&&(Q.parentGlobalId="attributes"in W?W.attributes&&W.attributes[this.layer.globalIdField]:W.globalId);if(oa)Q.uploadId=oa;else if(Z){const xa=yield E(Z);Q.contentType=xa.mediaType;Q.data=xa.data;Z instanceof File&&(Q.name=Z.name)}X&&(Q.name=X);U&&(Q.contentType=U);return Q});return function(Q){return L.apply(this,
arguments)}}();J._getFeatureIds=function(L,Q){const W=L[0];return W?this._canUseGlobalIds(Q,L)?this._getGlobalIdsFromFeatureIdentifier(L):"objectId"in W?this._getObjectIdsFromFeatureIdentifier(L):this._getIdsFromFeatures(L):[]};J._getIdsFromFeatures=function(L){const Q=this.layer.objectIdField;return L.map(W=>W.attributes&&W.attributes[Q])};J._canUseGlobalIds=function(L,Q){return L&&"globalId"in Q[0]};J._getObjectIdsFromFeatureIdentifier=function(L){return L.map(Q=>Q.objectId)};J._getGlobalIdsFromFeatureIdentifier=
function(L){return L.map(Q=>Q.globalId)};J._createEditsResult=function(L){var Q;const W=L.data,{layerId:V}=this.layer;L=[];let P=null;if(Array.isArray(W))for(var X of W)L.push({id:X.id,editedFeatures:X.editedFeatures}),X.id===V&&(P={addResults:X.addResults,updateResults:X.updateResults,deleteResults:X.deleteResults,attachments:X.attachments,editMoment:X.editMoment});else P=W;X=null==(Q=P)?void 0:Q.attachments;Q={addFeatureResults:P.addResults?P.addResults.map(this._createFeatureEditResult,this):[],
updateFeatureResults:P.updateResults?P.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:P.deleteResults?P.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:X&&X.addResults?X.addResults.map(this._createFeatureEditResult,this):[],updateAttachmentResults:X&&X.updateResults?X.updateResults.map(this._createFeatureEditResult,this):[],deleteAttachmentResults:X&&X.deleteResults?X.deleteResults.map(this._createFeatureEditResult,this):[]};P.editMoment&&
(Q.editMoment=P.editMoment);if(0<L.length){Q.editedFeatureResults=[];for(const U of L){const {adds:Z,updates:oa,deletes:xa,spatialReference:Ea}=U.editedFeatures,fa=Ea?new z(Ea):null;Q.editedFeatureResults.push({layerId:U.id,editedFeatures:{adds:(null==Z?void 0:Z.map(ia=>this._createEditedFeature(ia,fa)))||[],updates:(null==oa?void 0:oa.map(ia=>({original:this._createEditedFeature(ia[0],fa),current:this._createEditedFeature(ia[1],fa)})))||[],deletes:(null==xa?void 0:xa.map(ia=>this._createEditedFeature(ia,
fa)))||[],spatialReference:fa}})}}return Q};J._createEditedFeature=function(L,Q){return new g({attributes:L.attributes,geometry:C.fromJSON({...L.geometry,spatialReference:Q})})};J._createFeatureEditResult=function(L){const Q=!0===L.success?null:L.error||{code:void 0,description:void 0};return{objectId:L.objectId,globalId:L.globalId,error:Q?new q("feature-layer-source:edit-failure",Q.description,{code:Q.code}):null}};J._createAttachmentErrorResult=function(L,Q){return{objectId:L,globalId:null,error:new q("feature-layer-source:attachment-failure",
Q.details.messages&&Q.details.messages[0]||Q.message,{code:Q.details.httpStatus||Q.details.messageCode})}};J._getFormDataForAttachment=function(L,Q){if(L=L instanceof FormData?L:L&&L.elements?new FormData(L):null)for(const W in Q){const V=Q[W];null!=V&&(L.set?L.set(W,V):L.append(W,V))}return L};J._getLayerRequestOptions=function(L={}){const {parsedUrl:Q,gdbVersion:W,dynamicDataSource:V}=this.layer;return{...L,query:{gdbVersion:W,layer:V?JSON.stringify({source:V}):void 0,...Q.query,f:"json",...this._createRequestQueryOptions(L)},
responseType:"json"}};a._createClass(I,[{key:"queryTask",get:function(){const {capabilities:{query:{supportsFormatPBF:L}},parsedUrl:Q,dynamicDataSource:W,infoFor3D:V,gdbVersion:P,spatialReference:X,fieldsIndex:U}=this.layer,Z=v("featurelayer-pbf")&&L&&m.isNone(V)?"pbf":"json";return new r({url:Q.path,format:Z,fieldsIndex:U,infoFor3D:V,dynamicDataSource:W,gdbVersion:P,sourceSpatialReference:X})}}]);return I}(u);b.__decorate([l.property()],c.prototype,"type",void 0);b.__decorate([l.property({constructOnly:!0})],
c.prototype,"layer",void 0);b.__decorate([l.property({readOnly:!0})],c.prototype,"queryTask",null);return c=b.__decorate([w.subclass("esri.layers.graphics.sources.FeatureLayerSource")],c)})},"esri/layers/graphics/sources/support/clientSideDefaults":function(){define(["exports","../../../../core/has","../../../../core/lang","../../data/QueryEngineCapabilities","../../../../symbols/support/defaultsJSON"],function(a,b,c,g,f){a.createCapabilities=function(k,q){return{attachment:null,data:{isVersioned:!1,
supportsAttachment:!1,supportsM:!1,supportsZ:k},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:q,supportsDelete:q,supportsEditing:q,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:q,supportsExceedsLimitStatistics:!0},query:g.queryCapabilities,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:q,
supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}};a.createDefaultAttributesFunction=function(k,q){if(b("csp-restrictions"))return()=>({[q]:null,...k});try{let v=`this.${q} = null;`;for(const u in k){const m=u.indexOf(".")?`["${u}"]`:`.${u}`;v+=`this${m} = ${JSON.stringify(k[u])};`}const t=
new Function(v);return()=>new t}catch(v){return()=>({[q]:null,...k})}};a.createDefaultTemplate=function(k={}){return[{name:"New Feature",description:"",prototype:{attributes:c.clone(k)}}]};a.createDrawingInfo=function(k){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===k||"esriGeometryMultipoint"===k?f.defaultPointSymbolJSON:"esriGeometryPolyline"===k?f.defaultPolylineSymbolJSON:f.defaultPolygonSymbolJSON}}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/graphics/data/QueryEngineCapabilities":function(){define(["exports"],
function(a){a.queryCapabilities={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,
supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/query/operations/queryAttachments":function(){define("exports ../../../kernel ../../../request ../../../core/urlUtils ../support/AttachmentInfo ../../../tasks/operations/urlUtils".split(" "),function(a,b,c,g,f,k){function q(v){v=
v.toJSON();v.attachmentTypes&&(v.attachmentTypes=v.attachmentTypes.join(","));v.keywords&&(v.keywords=v.keywords.join(","));v.globalIds&&(v.globalIds=v.globalIds.join(","));v.objectIds&&(v.objectIds=v.objectIds.join(","));v.size&&(v.size=v.size.join(","));return v}a.executeAttachmentQuery=function(v,t,u){t={query:k.mapParameters({...v.query,f:"json",...q(t)})};u&&(t={...u,...t,query:{...u.query,...t.query}});return c(v.path+"/queryAttachments",t)};a.processAttachmentQueryResult=function(v,t){const u=
{};for(const m of v){const {parentObjectId:p,parentGlobalId:e,attachmentInfos:l}=m;for(const h of l){({id:v}=h);v=g.addProxy(b.addTokenParameter(`${t}/${p}/attachments/${v}`));const n=f.fromJSON(h);n.set({url:v,parentObjectId:p,parentGlobalId:e});u[p]?u[p].push(n):u[p]=[n]}}return u};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/query/support/AttachmentInfo":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ../../../layers/support/exifUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u){var m;const p={1:{id:1,rotation:0,mirrored:!1},2:{id:2,rotation:0,mirrored:!0},3:{id:3,rotation:180,mirrored:!1},4:{id:4,rotation:180,mirrored:!0},5:{id:5,rotation:-90,mirrored:!0},6:{id:6,rotation:90,mirrored:!1},7:{id:7,rotation:90,mirrored:!0},8:{id:8,rotation:-90,mirrored:!1}};c=m=function(e){function l(h){h=e.call(this,h)||this;h.contentType=null;h.exifInfo=null;h.id=null;h.globalId=null;h.keywords=null;h.name=null;h.parentGlobalId=null;h.parentObjectId=null;h.size=
null;h.url=null;return h}a._inheritsLoose(l,e);l.prototype.clone=function(){return new m({contentType:this.contentType,exifInfo:this.exifInfo,id:this.id,globalId:this.globalId,keywords:this.keywords,name:this.name,parentGlobalId:this.parentGlobalId,parentObjectId:this.parentObjectId,size:this.size,url:this.url})};a._createClass(l,[{key:"orientationInfo",get:function(){var {exifInfo:h}=this;h=u.getExifValue({exifName:"Exif IFD0",tagName:"Orientation",exifInfo:h});return p[h]||null}}]);return l}(c.JSONSupport);
b.__decorate([g.property({type:String})],c.prototype,"contentType",void 0);b.__decorate([g.property()],c.prototype,"exifInfo",void 0);b.__decorate([g.property({readOnly:!0})],c.prototype,"orientationInfo",null);b.__decorate([g.property({type:k.Integer})],c.prototype,"id",void 0);b.__decorate([g.property({type:String})],c.prototype,"globalId",void 0);b.__decorate([g.property({type:String})],c.prototype,"keywords",void 0);b.__decorate([g.property({type:String})],c.prototype,"name",void 0);b.__decorate([g.property({json:{read:!1}})],
c.prototype,"parentGlobalId",void 0);b.__decorate([g.property({json:{read:!1}})],c.prototype,"parentObjectId",void 0);b.__decorate([g.property({type:k.Integer})],c.prototype,"size",void 0);b.__decorate([g.property({json:{read:!1}})],c.prototype,"url",void 0);return c=m=b.__decorate([t.subclass("esri.layers.support.AttachmentInfo")],c)})},"esri/layers/support/exifUtils":function(){define(["exports"],function(a){function b(c){const {tagName:g,tags:f}=c;return f&&g?(c=f.find(k=>k.name===g))&&c.value||
null:null}a.getExifValue=function(c){const {exifInfo:g,exifName:f,tagName:k}=c;return g&&f&&k?(c=g.find(q=>q.name===f))?b({tagName:k,tags:c.tags}):null:null};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/tasks/operations/urlUtils":function(){define(["exports"],function(a){function b(c){const g={};for(const f in c){if("declaredClass"===f)continue;const k=c[f];if(null!=k&&"function"!==typeof k)if(Array.isArray(k)){g[f]=[];for(let q=0;q<k.length;q++)g[f][q]=b(k[q])}else"object"===typeof k?
k.toJSON&&(g[f]=JSON.stringify(k)):g[f]=k}return g}a.mapParameters=b;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/tasks/QueryTask":function(){define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Error ../core/has ../core/maybe ../core/promiseUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass ../layers/support/source/DataLayerSource ../rest/query/executeAttachmentQuery ../rest/query/executeForCount ../rest/query/executeForExtent ../rest/query/executeForIds ../rest/query/executeQueryJSON ../rest/query/executeQueryPBF ../rest/query/executeRelationshipQuery ../rest/query/executeTopFeaturesQuery ../rest/query/executeForTopIds ../rest/query/executeForTopExtents ../rest/query/executeForTopCount ../rest/support/FeatureSet ../rest/support/Query ../rest/support/RelationshipQuery ./Task".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r,z,E,F,G,N){t=function(K){function I(L){L=K.call(this,L)||this;L.dynamicDataSource=null;L.fieldsIndex=null;L.format="json";L.gdbVersion=null;L.infoFor3D=null;L.sourceSpatialReference=null;return L}b._inheritsLoose(I,K);var J=I.prototype;J.execute=function(L,Q){return this.executeJSON(L,Q).then(W=>this.featureSetFromJSON(L,W,Q))};J.executeJSON=function(){var L=b._asyncToGenerator(function*(Q,W){var V;W={...this.requestOptions,...W};const P=this._normalizeQuery(Q);
Q=null!=(null==(V=Q.outStatistics)?void 0:V[0]);V=f("featurelayer-pbf-statistics");V=!Q||V;let X;if("pbf"===this.format&&V)try{X=yield C.executeRawQueryPBF(this.url,P,W)}catch(U){if("query:parsing-pbf"===U.name)this.format="json";else throw U;}"json"!==this.format&&V||(X=yield x.executeRawQueryJSON(this.url,P,W));this._normalizeFields(X.fields);return X});return function(Q,W){return L.apply(this,arguments)}}();J.featureSetFromJSON=function(){var L=b._asyncToGenerator(function*(Q,W,V){if(!(this._queryIs3DObjectFormat(Q)&&
k.isSome(this.infoFor3D)&&W.features&&W.features.length))return E.fromJSON(W);({meshFeatureSetFromJSON:V}=yield q.whenOrAbort(new Promise(function(P,X){a(["../rest/support/meshFeatureSet"],P,X)}),V));return V(Q,this.infoFor3D,W)});return function(Q,W,V){return L.apply(this,arguments)}}();J.executeForCount=function(L,Q){Q={...this.requestOptions,...Q};L=this._normalizeQuery(L);return h.executeForCount(this.url,L,Q)};J.executeForExtent=function(L,Q){Q={...this.requestOptions,...Q};L=this._normalizeQuery(L);
return n.executeForExtent(this.url,L,Q)};J.executeForIds=function(L,Q){Q={...this.requestOptions,...Q};L=this._normalizeQuery(L);return w.executeForIds(this.url,L,Q)};J.executeRelationshipQuery=function(L,Q){L=G.from(L);Q={...this.requestOptions,...Q};if(this.gdbVersion||this.dynamicDataSource)L=L.clone(),L.gdbVersion=L.gdbVersion||this.gdbVersion,L.dynamicDataSource=L.dynamicDataSource||this.dynamicDataSource;return D.executeRelationshipQuery(this.url,L,Q)};J.executeRelationshipQueryForCount=function(L,
Q){L=G.from(L);Q={...this.requestOptions,...Q};if(this.gdbVersion||this.dynamicDataSource)L=L.clone(),L.gdbVersion=L.gdbVersion||this.gdbVersion,L.dynamicDataSource=L.dynamicDataSource||this.dynamicDataSource;return D.executeRelationshipQueryForCount(this.url,L,Q)};J.executeAttachmentQuery=function(L,Q){return l.executeAttachmentQuery(this.url,L,{...this.requestOptions,...Q})};J.executeTopFeaturesQuery=function(L,Q){return A.executeTopFeaturesQuery(this.parsedUrl,L,this.sourceSpatialReference,{...this.requestOptions,
...Q})};J.executeForTopIds=function(L,Q){return B.executeForTopIds(this.parsedUrl,L,{...this.requestOptions,...Q})};J.executeForTopExtents=function(L,Q){return r.executeForTopExtents(this.parsedUrl,L,{...this.requestOptions,...Q})};J.executeForTopCount=function(L,Q){return z.executeForTopCount(this.parsedUrl,L,{...this.requestOptions,...Q})};J._normalizeQuery=function(L){let Q=F.from(L);Q.sourceSpatialReference=Q.sourceSpatialReference||this.sourceSpatialReference;if(this.gdbVersion||this.dynamicDataSource)Q=
Q===L?Q.clone():Q,Q.gdbVersion=L.gdbVersion||this.gdbVersion,Q.dynamicDataSource=L.dynamicDataSource?e.DataLayerSource.from(L.dynamicDataSource):this.dynamicDataSource;if(k.isSome(this.infoFor3D)&&this._queryIs3DObjectFormat(L)){Q=Q===L?Q.clone():Q;Q.formatOf3DObjects=null;for(const W of this.infoFor3D.queryFormats){if("3D_glb"===W.id){Q.formatOf3DObjects=W.id;break}"3D_gltf"!==W.id||Q.formatOf3DObjects||(Q.formatOf3DObjects=W.id)}if(!Q.formatOf3DObjects)throw new g("query:unsupported-3d-query-formats",
"Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if(k.isNone(Q.outFields)||!Q.outFields.includes("*")){Q=Q===L?Q.clone():Q;k.isNone(Q.outFields)&&(Q.outFields=[]);const {originX:W,originY:V,originZ:P,translationX:X,translationY:U,translationZ:Z,scaleX:oa,scaleY:xa,scaleZ:Ea,rotationX:fa,rotationY:ia,rotationZ:da,rotationDeg:ea}=this.infoFor3D.transformFieldRoles;Q.outFields.push(W,V,P,X,U,Z,oa,xa,Ea,fa,ia,da,ea)}}return Q};J._normalizeFields=function(L){if(k.isSome(this.fieldsIndex)&&
k.isSome(L))for(const Q of L)(L=this.fieldsIndex.get(Q.name))&&Object.assign(Q,L.toJSON())};J._queryIs3DObjectFormat=function(L){return k.isSome(this.infoFor3D)&&L.returnGeometry&&"xyFootprint"!==L.multipatchOption&&!L.outStatistics};return I}(N);c.__decorate([v.property({type:e.DataLayerSource})],t.prototype,"dynamicDataSource",void 0);c.__decorate([v.property()],t.prototype,"fieldsIndex",void 0);c.__decorate([v.property()],t.prototype,"format",void 0);c.__decorate([v.property()],t.prototype,"gdbVersion",
void 0);c.__decorate([v.property()],t.prototype,"infoFor3D",void 0);c.__decorate([v.property()],t.prototype,"sourceSpatialReference",void 0);return t=c.__decorate([p.subclass("esri.tasks.QueryTask")],t)})},"esri/rest/query/executeAttachmentQuery":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers","../utils","./operations/queryAttachments","../support/AttachmentQuery"],function(a,b,c,g,f){function k(){k=b._asyncToGenerator(function*(q,v,t){const u=c.parseUrl(q);return g.executeAttachmentQuery(u,
f.from(v),{...t}).then(m=>g.processAttachmentQueryResult(m.data.attachmentGroups,u.path))});return k.apply(this,arguments)}a.executeAttachmentQuery=function(q,v,t){return k.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/utils":function(){define(["exports","../core/urlUtils"],function(a,b){function c(g,f,k){const q={};for(const t in g)if("declaredClass"!==t){var v=g[t];if(null!=v&&"function"!==typeof v)if(Array.isArray(v)){q[t]=[];for(let u=0;u<v.length;u++)q[t][u]=
c(v[u])}else"object"===typeof v?v.toJSON?(v=v.toJSON(k&&k[t]),q[t]=f?v:JSON.stringify(v)):q[t]=f?v:JSON.stringify(v):q[t]=v}return q}a.asValidOptions=function(g,f){return f?{...f,query:{...g,...f.query}}:{query:g}};a.encode=c;a.parseUrl=function(g){return"string"===typeof g?b.urlToObject(g):g};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/query/executeForCount":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers","../utils","./operations/query","../support/Query"],
function(a,b,c,g,f){function k(){k=b._asyncToGenerator(function*(q,v,t){q=c.parseUrl(q);return g.executeQueryForCount(q,f.from(v),{...t}).then(u=>u.data.count)});return k.apply(this,arguments)}a.executeForCount=function(q,v,t){return k.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/query/operations/query":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../request ../../../core/maybe ../../../core/urlUtils ../../../geometry/support/jsonUtils ../../../geometry/support/normalizeUtils ./pbfQueryUtils ./queryZScale ../../../tasks/operations/urlUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u){function m(n,w){const x=n.geometry;n=n.toJSON();g.isSome(x)&&(n.geometry=JSON.stringify(x),n.geometryType=k.getJsonType(x),n.inSR=x.spatialReference.wkid||JSON.stringify(x.spatialReference));n.groupByFieldsForStatistics&&(n.groupByFieldsForStatistics=n.groupByFieldsForStatistics.join(","));n.objectIds&&(n.objectIds=n.objectIds.join(","));n.orderByFields&&(n.orderByFields=n.orderByFields.join(","));!n.outFields||!n.returnDistinctValues&&(null!=w&&w.returnCountOnly||null!=
w&&w.returnExtentOnly||null!=w&&w.returnIdsOnly)?delete n.outFields:-1!==n.outFields.indexOf("*")?n.outFields="*":n.outFields=n.outFields.join(",");n.outSR?n.outSR=n.outSR.wkid||JSON.stringify(n.outSR):x&&(n.returnGeometry||n.returnCentroid)&&(n.outSR=n.inSR);n.returnGeometry&&delete n.returnGeometry;n.outStatistics&&(n.outStatistics=JSON.stringify(n.outStatistics));n.pixelSize&&(n.pixelSize=JSON.stringify(n.pixelSize));n.quantizationParameters&&(n.quantizationParameters=JSON.stringify(n.quantizationParameters));
n.parameterValues&&(n.parameterValues=JSON.stringify(n.parameterValues));n.rangeValues&&(n.rangeValues=JSON.stringify(n.rangeValues));n.dynamicDataSource&&(n.layer=JSON.stringify({source:n.dynamicDataSource}),delete n.dynamicDataSource);if(n.timeExtent){const {start:C,end:D}=n.timeExtent;if(null!=C||null!=D)n.time=C===D?C:`${null==C?"null":C},${null==D?"null":D}`;delete n.timeExtent}return n}function p(){p=b._asyncToGenerator(function*(n,w,x,C){n=g.isSome(w.timeExtent)&&w.timeExtent.isEmpty?{data:{features:[]}}:
yield h(n,w,"json",C);t.applyFeatureSetZUnitScaling(w,x,n.data);return n});return p.apply(this,arguments)}function e(){e=b._asyncToGenerator(function*(n,w,x,C){if(g.isSome(w.timeExtent)&&w.timeExtent.isEmpty)return Promise.resolve({data:x.createFeatureResult()});n=yield l(n,w,C);n.data=v.parsePBFFeatureQuery(n.data,x);return n});return e.apply(this,arguments)}function l(n,w,x){return h(n,w,"pbf",x)}function h(n,w,x,C={},D={}){const A="string"===typeof n?f.urlToObject(n):n;n=w.geometry?[w.geometry]:
[];C.responseType="pbf"===x?"array-buffer":"json";return q.normalizeCentralMeridian(n,null,C).then(B=>{B=B&&B[0];g.isSome(B)&&(w=w.clone(),w.geometry=B);B=u.mapParameters({...A.query,f:x,...D,...m(w,D)});return c(f.join(A.path,"query"),{...C,query:{...B,...C.query}})})}a.executeQuery=function(n,w,x,C){return p.apply(this,arguments)};a.executeQueryForCount=function(n,w,x){return g.isSome(w.timeExtent)&&w.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):h(n,w,"json",x,{returnIdsOnly:!0,returnCountOnly:!0})};
a.executeQueryForExtent=function(n,w,x){return g.isSome(w.timeExtent)&&w.timeExtent.isEmpty?Promise.resolve({data:{count:0,extent:null}}):h(n,w,"json",x,{returnExtentOnly:!0,returnCountOnly:!0}).then(C=>{const D=C.data;if(D.hasOwnProperty("extent"))return C;if(D.features)throw Error("Layer does not support extent calculation.");if(D.hasOwnProperty("count"))throw Error("Layer does not support extent calculation.");return C})};a.executeQueryForIds=function(n,w,x){return g.isSome(w.timeExtent)&&w.timeExtent.isEmpty?
Promise.resolve({data:{objectIds:[]}}):h(n,w,"json",x,{returnIdsOnly:!0})};a.executeQueryPBF=function(n,w,x,C){return e.apply(this,arguments)};a.executeQueryPBFBuffer=l;a.queryToQueryStringParameters=m;a.runQuery=h;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/support/normalizeUtils":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../config ../../core/Error ../../core/Logger ../../core/maybe ../Polygon ../Polyline ./normalizeUtilsCommon ./spatialReferenceUtils ./webMercatorUtils ../../tasks/geometry/cut ../../tasks/geometry/simplify".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){function l(B){const r=[];let z=0,E=0;for(let F=0;F<B.length;F++){const G=B[F];let N=null;for(let K=0;K<G.length;K++)N=G[K],r.push(N),0===K?E=z=N[0]:(z=Math.min(z,N[0]),E=Math.max(E,N[0]));N&&r.push([(z+E)/2,0])}return r}function h(B,r){if(!(B instanceof v||B instanceof q))throw A.error("straightLineDensify: the input geometry is neither polyline nor polygon"),new g("straightLineDensify: the input geometry is neither polyline nor polygon");var z=t.getGeometryParts(B);
const E=[];for(const G of z){z=[];E.push(z);z.push([G[0][0],G[0][1]]);for(let N=0;N<G.length-1;N++){const K=G[N][0],I=G[N][1],J=G[N+1][0],L=G[N+1][1];var F=Math.sqrt((J-K)*(J-K)+(L-I)*(L-I));const Q=(L-I)/F,W=(J-K)/F,V=F/r;if(1<V){for(let P=1;P<=V-1;P++){const X=P*r;z.push([W*X+K,Q*X+I])}F=(F+Math.floor(V-1)*r)/2;z.push([W*F+K,Q*F+I])}z.push([J,L])}}return"polygon"===B.type?new q({rings:E,spatialReference:B.spatialReference}):new v({paths:E,spatialReference:B.spatialReference})}function n(B,r,z){r&&
(B=h(B,1E6),B=m.webMercatorToGeographic(B,!0));z&&(B=t.updatePolyGeometry(B,z));return B}function w(B,r,z){if(Array.isArray(B)){var E=B[0];E>r?(z=t.offsetMagnitude(E,r),B[0]=E+-2*z*r):E<z&&(r=t.offsetMagnitude(E,z),B[0]=E+-2*r*z)}else E=B.x,E>r?(z=t.offsetMagnitude(E,r),B=B.clone().offset(-2*z*r,0)):E<z&&(r=t.offsetMagnitude(E,z),B=B.clone().offset(-2*r*z,0));return B}function x(B,r){let z=-1;for(let E=0;E<r.cutIndexes.length;E++){const F=r.cutIndexes[E],G=r.geometries[E],N=t.getGeometryParts(G);
for(let K=0;K<N.length;K++){const I=N[K];I.some(J=>{if(180>J[0])return!0;J=0;for(var L=0;L<I.length;L++){var Q=I[L][0];J=Q>J?Q:J}J=Number(J.toFixed(9));J=-360*t.offsetMagnitude(J,180);for(L=0;L<I.length;L++)Q=G.getPoint(K,L),G.setPoint(K,L,Q.clone().offset(J,0));return!0})}if(F===z)if("polygon"===B[0].type)for(const K of t.getGeometryParts(G))B[F]=B[F].addRing(K);else{if("polyline"===B[0].type)for(const K of t.getGeometryParts(G))B[F]=B[F].addPath(K)}else z=F,B[F]=G}return B}function C(B,r,z){return D.apply(this,
arguments)}function D(){D=b._asyncToGenerator(function*(B,r,z){if(!Array.isArray(B))return C([B],r);var E=r?r.url:c.geometryServiceUrl;let F,G,N;let K=0;var I=[];r=[];for(var J of B)if(k.isNone(J))r.push(J);else{if(!L){var L=J.spatialReference;var Q=u.getInfo(L);var W=(F=L.isWebMercator)?102100:4326;G=t.cutParams[W].maxX;N=t.cutParams[W].minX;var V=t.cutParams[W].plus180Line;W=t.cutParams[W].minus180Line}if(Q)if("mesh"===J.type)r.push(J);else if("point"===J.type)r.push(w(J.clone(),G,N));else if("multipoint"===
J.type){var P=J.clone();P.points=P.points.map(X=>w(X,G,N));r.push(P)}else if("extent"===J.type)P=J.clone()._normalize(!1,!1,Q),r.push(P.rings?new q(P):P);else if(J.extent){P=J.extent;const X=2*t.offsetMagnitude(P.xmin,N)*G;let U=0===X?J.clone():t.updatePolyGeometry(J.clone(),X);P.offset(X,0);P.intersects(V)&&P.xmax!==G?(K=P.xmax>K?P.xmax:K,U=n(U,F),I.push(U),r.push("cut")):P.intersects(W)&&P.xmin!==N?(K=2*P.xmax*G>K?2*P.xmax*G:K,U=n(U,F,360),I.push(U),r.push("cut")):r.push(U)}else r.push(J.clone());
else r.push(J)}L=t.offsetMagnitude(K,G);Q=-90;V=L;for(J=new v;0<L;)W=-180+360*L,J.addPath([[W,Q],[W,-1*Q]]),Q*=-1,L--;if(0<I.length&&0<V){L=yield p.cut(E,I,J,z);L=x(I,L);Q=[];I=[];for(V=0;V<r.length;V++)J=r[V],"cut"!==J?I.push(J):(J=L.shift(),W=B[V],k.isSome(W)&&"polygon"===W.type&&W.rings&&1<W.rings.length&&J.rings.length>=W.rings.length?(Q.push(J),I.push("simplify")):I.push(F?m.geographicToWebMercator(J):J));if(!Q.length)return I;r=yield e.simplify(E,Q,z);B=[];for(z=0;z<I.length;z++)E=I[z],"simplify"!==
E?B.push(E):B.push(F?m.geographicToWebMercator(r.shift()):r.shift());return B}B=[];for(z=0;z<r.length;z++)E=r[z],"cut"!==E?B.push(E):(E=I.shift(),B.push(!0===F?m.geographicToWebMercator(E):E));return Promise.resolve(B)});return D.apply(this,arguments)}const A=f.getLogger("esri.geometry.support.normalizeUtils");a.getDenormalizedExtent=function(B){if(!B)return null;const r=B.extent;if(!r)return null;var z=B.spatialReference&&u.getInfo(B.spatialReference);if(!z)return r;const [E,F]=z.valid;({width:z}=
r);let {xmin:G,xmax:N}=r;[G,N]=[N,G];if("extent"===B.type||0===z||z<=F||z>2*F||G<E||N>F)return r;let K;switch(B.type){case "polygon":if(1<B.rings.length)K=l(B.rings);else return r;break;case "polyline":if(1<B.paths.length)K=l(B.paths);else return r;break;case "multipoint":K=B.points}B=r.clone();for(let I=0;I<K.length;I++){let J=K[I][0];0>J?(J+=F,N=Math.max(J,N)):(J-=F,G=Math.min(J,G))}B.xmin=G;B.xmax=N;return B.width<z?(B.xmin-=F,B.xmax-=F,B):r};a.normalizeCentralMeridian=C;a.normalizeMapX=function(B,
r){if(r=u.getInfo(r)){const [z,E]=r.valid;r=E-z;if(B<z)for(;B<z;)B+=r;if(B>E)for(;B>E;)B-=r}return B};a.straightLineDensify=h;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/geometry/support/normalizeUtilsCommon":function(){define(["exports","../Polyline","../SpatialReference","./jsonUtils"],function(a,b,c,g){function f(q){return g.isPolygon(q)?q.rings:q.paths}const k={102100:{maxX:2.0037508342788905E7,minX:-2.0037508342788905E7,plus180Line:new b({paths:[[[2.0037508342788905E7,-2.0037508342788905E7],
[2.0037508342788905E7,2.0037508342788905E7]]],spatialReference:c.WebMercator}),minus180Line:new b({paths:[[[-2.0037508342788905E7,-2.0037508342788905E7],[-2.0037508342788905E7,2.0037508342788905E7]]],spatialReference:c.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new b({paths:[[[180,-180],[180,180]]],spatialReference:c.WGS84}),minus180Line:new b({paths:[[[-180,-180],[-180,180]]],spatialReference:c.WGS84})}};a.cutParams=k;a.getGeometryParts=f;a.getSpatialReferenceMinMaxX=function(q){q=(null==
q?0:q.isWebMercator)?102100:4326;return[k[q].minX,k[q].maxX]};a.offsetMagnitude=function(q,v){return Math.ceil((q-v)/(2*v))};a.updatePolyGeometry=function(q,v){const t=f(q);for(const u of t)for(const m of u)m[0]+=v;return q};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/tasks/geometry/cut":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../geometry ../../request ../../core/urlUtils ../../geometry/support/jsonUtils".split(" "),function(a,b,c,g,f,k){function q(){q=b._asyncToGenerator(function*(v,
t,u,m){v="string"===typeof v?f.urlToObject(v):v;const p=t[0].spatialReference;t={...m,query:{...v.query,f:"json",sr:JSON.stringify(p),target:JSON.stringify({geometryType:k.getJsonType(t[0]),geometries:t}),cutter:JSON.stringify(u)}};t=yield g(v.path+"/cut",t);const {cutIndexes:e,geometries:l=[]}=t.data;return{cutIndexes:e,geometries:l.map(h=>{h=k.fromJSON(h);h.spatialReference=p;return h})}});return q.apply(this,arguments)}a.cut=function(v,t,u,m){return q.apply(this,arguments)};Object.defineProperty(a,
"__esModule",{value:!0})})},"esri/tasks/geometry/simplify":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers","../../request","../../core/urlUtils","../../geometry/support/jsonUtils"],function(a,b,c,g,f){function k(){k=b._asyncToGenerator(function*(t,u,m){const p="string"===typeof t?g.urlToObject(t):t;t=u[0].spatialReference;const e=f.getJsonType(u[0]);u={...m,query:{...p.query,f:"json",sr:t.wkid?t.wkid:JSON.stringify(t),geometries:JSON.stringify(q(u))}};u=yield c(p.path+"/simplify",
u);return v(u.data,e,t)});return k.apply(this,arguments)}function q(t){return{geometryType:f.getJsonType(t[0]),geometries:t.map(u=>u.toJSON())}}function v(t,u,m){const p=f.getGeometryType(u);return t.map(e=>{e=p.fromJSON(e);e.spatialReference=m;return e})}a.simplify=function(t,u,m){return k.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/query/operations/pbfQueryUtils":function(){define(["exports","./pbfFeatureServiceParser"],function(a,b){a.parsePBFFeatureQuery=
function(c,g){var f=b.parseFeatureQuery(c,g);c=f.queryResult.featureResult;g=f.queryResult.queryGeometry;f=f.queryResult.queryGeometryType;if(c&&c.features&&c.features.length&&c.objectIdFieldName){const k=c.objectIdFieldName;for(const q of c.features)q.attributes&&(q.objectId=q.attributes[k])}c&&(c.queryGeometry=g,c.queryGeometryType=f);return c};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/query/operations/pbfFeatureServiceParser":function(){define("exports ../../../core/Error ../../../core/maybe ../../../core/pbf ../../../layers/graphics/OptimizedGeometry ./pbfOptimizedFeatureSet".split(" "),
function(a,b,c,g,f,k){function q(E){return E>=B.length?null:B[E]}function v(E,F,G){for(G=F.createPointGeometry(G);E.next();)switch(E.tag()){case 3:{var N=E.getUInt32();N=E.pos()+N;let K=0;for(;E.pos()<N;)F.addCoordinatePoint(G,E.getSInt64(),K++);break}default:E.skip()}return G}function t(E,F,G){const N=F.createGeometry(G);for(G=2+(G.hasZ?1:0)+(G.hasM?1:0);E.next();)switch(E.tag()){case 2:var K=E.getUInt32();K=E.pos()+K;for(var I=0;E.pos()<K;)F.addLength(N,E.getUInt32(),I++);break;case 3:K=E.getUInt32();
K=E.pos()+K;I=0;for(F.allocateCoordinates(N);E.pos()<K;)F.addCoordinate(N,E.getSInt64(),I),I++,I===G&&(I=0);break;default:E.skip()}return N}function u(E){const F=new f;let G="esriGeometryPoint";for(;E.next();)switch(E.tag()){case 2:var N=E.getUInt32();for(N=E.pos()+N;E.pos()<N;)F.lengths.push(E.getUInt32());break;case 3:N=E.getUInt32();for(N=E.pos()+N;E.pos()<N;)F.coords.push(E.getSInt64());break;case 1:G=k.OPTIMIZED_GEOMETRY_TYPES[E.getEnum()];break;default:E.skip()}return{queryGeometry:F,queryGeometryType:G}}
function m(E){for(;E.next();)switch(E.tag()){case 1:return E.getString();case 2:return E.getFloat();case 3:return E.getDouble();case 4:return E.getSInt32();case 5:return E.getUInt32();case 6:return E.getInt64();case 7:return E.getUInt64();case 8:return E.getSInt64();case 9:return E.getBool();default:return E.skip(),null}return null}function p(E){const F={type:q(0)};for(;E.next();)switch(E.tag()){case 1:F.name=E.getString();break;case 2:F.type=q(E.getEnum());break;case 3:F.alias=E.getString();break;
case 4:var G=E.getEnum();G=G>=r.length?null:r[G];F.sqlType=G;break;case 5:E.skip();break;case 6:F.defaultValue=E.getString();break;default:E.skip()}return F}function e(E){const F={};for(;E.next();)switch(E.tag()){case 1:F.name=E.getString();break;case 2:F.isSystemMaintained=E.getBool();break;default:E.skip()}return F}function l(E,F,G,N){const K=F.createFeature(G);let I=0;for(;E.next();)switch(E.tag()){case 1:{const J=N[I++].name;K.attributes[J]=E.processMessage(m);break}case 2:K.geometry=E.processMessageWithArgs(t,
F,G);break;case 4:K.centroid=E.processMessageWithArgs(v,F,G);break;default:E.skip()}return K}function h(E){const F=[1,1,1,1];for(;E.next();)switch(E.tag()){case 1:F[0]=E.getDouble();break;case 2:F[1]=E.getDouble();break;case 4:F[2]=E.getDouble();break;case 3:F[3]=E.getDouble();break;default:E.skip()}return F}function n(E){const F=[0,0,0,0];for(;E.next();)switch(E.tag()){case 1:F[0]=E.getDouble();break;case 2:F[1]=E.getDouble();break;case 4:F[2]=E.getDouble();break;case 3:F[3]=E.getDouble();break;
default:E.skip()}return F}function w(E){const F={originPosition:0>=z.length?null:z[0]};for(;E.next();)switch(E.tag()){case 1:var G=E.getEnum();F.originPosition=G>=z.length?null:z[G];break;case 2:F.scale=E.processMessage(h);break;case 3:F.translate=E.processMessage(n);break;default:E.skip()}return F}function x(E){const F={};for(;E.next();)switch(E.tag()){case 1:F.shapeAreaFieldName=E.getString();break;case 2:F.shapeLengthFieldName=E.getString();break;case 3:F.units=E.getString();break;default:E.skip()}return F}
function C(E,F){for(F=F.createSpatialReference();E.next();)switch(E.tag()){case 1:F.wkid=E.getUInt32();break;case 5:F.wkt=E.getString();break;case 2:F.latestWkid=E.getUInt32();break;case 3:F.vcsWkid=E.getUInt32();break;case 4:F.latestVcsWkid=E.getUInt32();break;default:E.skip()}return F}function D(E,F){const G=F.createFeatureResult();G.geometryType=0>=F.geometryTypes.length?null:F.geometryTypes[0];let N=!1;for(;E.next();)switch(E.tag()){case 1:G.objectIdFieldName=E.getString();break;case 3:G.globalIdFieldName=
E.getString();break;case 4:G.geohashFieldName=E.getString();break;case 5:G.geometryProperties=E.processMessage(x);break;case 7:var K=E.getEnum();G.geometryType=K>=F.geometryTypes.length?null:F.geometryTypes[K];break;case 8:G.spatialReference=E.processMessageWithArgs(C,F);break;case 10:G.hasZ=E.getBool();break;case 11:G.hasM=E.getBool();break;case 12:G.transform=E.processMessage(w);break;case 9:K=E.getBool();G.exceededTransferLimit=K;break;case 13:F.addField(G,E.processMessage(p));break;case 15:N||
(F.prepareFeatures(G),N=!0);F.addFeature(G,E.processMessageWithArgs(l,F,G,G.fields));break;case 2:G.uniqueIdField=E.processMessage(e);break;default:E.skip()}F.finishFeatureResult(G);return G}function A(E,F){const G={};let N=null;for(;E.next();)switch(E.tag()){case 4:N=E.processMessageWithArgs(u);break;case 1:G.featureResult=E.processMessageWithArgs(D,F);break;default:E.skip()}c.isSome(N)&&G.featureResult&&F.addQueryGeometry(G,N);return G}const B="esriFieldTypeSmallInteger esriFieldTypeInteger esriFieldTypeSingle esriFieldTypeDouble esriFieldTypeString esriFieldTypeDate esriFieldTypeOID esriFieldTypeGeometry esriFieldTypeBlob esriFieldTypeRaster esriFieldTypeGUID esriFieldTypeGlobalID esriFieldTypeXML".split(" "),
r="sqlTypeBigInt sqlTypeBinary sqlTypeBit sqlTypeChar sqlTypeDate sqlTypeDecimal sqlTypeDouble sqlTypeFloat sqlTypeGeometry sqlTypeGUID sqlTypeInteger sqlTypeLongNVarchar sqlTypeLongVarbinary sqlTypeLongVarchar sqlTypeNChar sqlTypeNVarchar sqlTypeOther sqlTypeReal sqlTypeSmallInt sqlTypeSqlXml sqlTypeTime sqlTypeTimestamp sqlTypeTimestamp2 sqlTypeTinyInt sqlTypeVarbinary sqlTypeVarchar".split(" "),z=["upperLeft","lowerLeft"];a.parseFeatureQuery=function(E,F){try{const G=new g(new Uint8Array(E),new DataView(E));
for(E={};G.next();)switch(G.tag()){case 2:E.queryResult=G.processMessageWithArgs(A,F);break;default:G.skip()}return E}catch(G){throw new b("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:G});}};a.parseFieldType=q;a.parseTransform=w;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/pbf":function(){define(["./has","./ObjectPool"],function(a,b){const c=a("esri-text-decoder")?new TextDecoder("utf-8"):null,g=a("safari")||a("ios")?6:a("ff")?12:32;a=function(){function f(q,
v,t=0,u=q?q.byteLength:0){this._tag=0;this._dataType=99;this.init(q,v,t,u)}var k=f.prototype;k.init=function(q,v,t,u){this._data=q;this._dataView=v;this._pos=t;this._end=u};k.clone=function(){return new f(this._data,this._dataView,this._pos,this._end)};k.pos=function(){return this._pos};k.move=function(q){this._pos=q};k.nextTag=function(q){for(;;){if(this._pos===this._end)return!1;const v=this._decodeVarint();this._tag=v>>3;this._dataType=v&7;if(!q||q===this._tag)break;this.skip()}return!0};k.next=
function(){if(this._pos===this._end)return!1;const q=this._decodeVarint();this._tag=q>>3;this._dataType=q&7;return!0};k.empty=function(){return this._pos>=this._end};k.tag=function(){return this._tag};k.getInt32=function(){return this._decodeVarint()};k.getInt64=function(){return this._decodeVarint()};k.getUInt32=function(){let q=4294967295;q=(this._data[this._pos]&127)>>>0;if(128>this._data[this._pos++])return q;q=(q|(this._data[this._pos]&127)<<7)>>>0;if(128>this._data[this._pos++])return q;q=(q|
(this._data[this._pos]&127)<<14)>>>0;if(128>this._data[this._pos++])return q;q=(q|(this._data[this._pos]&127)<<21)>>>0;if(128>this._data[this._pos++])return q;q=(q|(this._data[this._pos]&15)<<28)>>>0;if(128>this._data[this._pos++])return q};k.getUInt64=function(){return this._decodeVarint()};k.getSInt32=function(){const q=this.getUInt32();return q>>>1^-(q&1)|0};k.getSInt64=function(){return this._decodeSVarint()};k.getBool=function(){const q=0!==this._data[this._pos];this._skip(1);return q};k.getEnum=
function(){return this._decodeVarint()};k.getFixed64=function(){var q=this._dataView;const v=this._pos;q=q.getUint32(v,!0)+4294967296*q.getUint32(v+4,!0);this._skip(8);return q};k.getSFixed64=function(){var q=this._dataView;const v=this._pos;q=q.getUint32(v,!0)+4294967296*q.getInt32(v+4,!0);this._skip(8);return q};k.getDouble=function(){const q=this._dataView.getFloat64(this._pos,!0);this._skip(8);return q};k.getFixed32=function(){const q=this._dataView.getUint32(this._pos,!0);this._skip(4);return q};
k.getSFixed32=function(){const q=this._dataView.getInt32(this._pos,!0);this._skip(4);return q};k.getFloat=function(){const q=this._dataView.getFloat32(this._pos,!0);this._skip(4);return q};k.getString=function(){const q=this._getLength();var v=this._pos;v=this._toString(this._data,v,v+q);this._skip(q);return v};k.getBytes=function(){const q=this._getLength();var v=this._pos;v=this._toBytes(this._data,v,v+q);this._skip(q);return v};k.getLength=function(){return this._getLengthUnsafe()};k.processMessageWithArgs=
function(q,v,t,u){const m=this.getMessage();q=q(m,v,t,u);m.release();return q};k.processMessage=function(q){const v=this.getMessage();q=q(v);v.release();return q};k.getMessage=function(){const q=this._getLength(),v=f.pool.acquire();v.init(this._data,this._dataView,this._pos,this._pos+q);this._skip(q);return v};k.release=function(){f.pool.release(this)};k.dataType=function(){return this._dataType};k.skip=function(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;
case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw Error("Invalid data type!");}};k.skipLen=function(q){this._skip(q)};k._skip=function(q){if(this._pos+q>this._end)throw Error("Attempt to skip past the end of buffer!");this._pos+=q};k._decodeVarint=function(){const q=this._data;let v=this._pos,t=0,u;if(10<=this._end-v){if(u=q[v++],t|=u&127,0!==(u&128)&&(u=q[v++],t|=(u&127)<<7,0!==(u&128)&&(u=q[v++],t|=(u&127)<<14,0!==(u&128)&&(u=q[v++],t|=(u&127)<<21,0!==(u&128)&&
(u=q[v++],t+=268435456*(u&127),0!==(u&128)&&(u=q[v++],t+=34359738368*(u&127),0!==(u&128)&&(u=q[v++],t+=4398046511104*(u&127),0!==(u&128)&&(u=q[v++],t+=562949953421312*(u&127),0!==(u&128)&&(u=q[v++],t+=72057594037927936*(u&127),0!==(u&128)&&(u=q[v++],t+=0x7fffffffffffffff*(u&127),0!==(u&128)))))))))))throw Error("Varint too long!");}else{let m=1;for(;v!==this._end;){u=q[v];if(0===(u&128))break;++v;t+=(u&127)*m;m*=128}if(v===this._end)throw Error("Varint overrun!");++v;t+=u*m}this._pos=v;return t};
k._decodeSVarint=function(){const q=this._decodeVarint();return q%2?-(q+1)/2:q/2};k._getLength=function(){if(2!==this._dataType)throw Error("Not a delimited data type!");return this._decodeVarint()};k._getLengthUnsafe=function(){return this.getUInt32()};k._toString=function(q,v,t){t=Math.min(this._end,t);if(t-v>g&&c)return q=q.subarray(v,t),c.decode(q);let u="",m="";for(;v<t;++v){const p=q[v];p&128?m+="%"+p.toString(16):(u+=decodeURIComponent(m)+String.fromCharCode(p),m="")}m.length&&(u+=decodeURIComponent(m));
return u};k._toBytes=function(q,v,t){t=Math.min(this._end,t);return new Uint8Array(q.buffer,v,t-v)};return f}();a.pool=new b(a,null,f=>{f._data=null;f._dataView=null});return a})},"esri/layers/graphics/OptimizedGeometry":function(){define(["../../chunks/_rollupPluginBabelHelpers"],function(a){return function(){function b(g=[],f=[],k=!1){this.lengths=null!=g?g:[];this.coords=null!=f?f:[];this.hasIndeterminateRingOrder=k}var c=b.prototype;c.forEachVertex=function(g){let f=0;this.lengths.length||g(this.coords[0],
this.coords[1]);for(let k=0;k<this.lengths.length;k++){const q=this.lengths[k];for(let v=0;v<q;v++)g(this.coords[2*(v+f)],this.coords[2*(v+f)+1]);f+=q}};c.clone=function(){return new b(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)};a._createClass(b,[{key:"isPoint",get:function(){return 0===this.lengths.length}}]);return b}()})},"esri/rest/query/operations/pbfOptimizedFeatureSet":function(){define("exports ../../../core/unitUtils ../../../geometry/support/spatialReferenceUtils ../../../layers/graphics/OptimizedFeature ../../../layers/graphics/OptimizedFeatureSet ../../../layers/graphics/OptimizedGeometry".split(" "),
function(a,b,c,g,f,k){const q=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];let v=function(){function t(m){this.options=m;this.geometryTypes=q;this._vertexDimension=this._coordinatePtr=0}var u=t.prototype;u.createFeatureResult=function(){return new f};u.prepareFeatures=function(m){this._vertexDimension=2;m.hasZ&&this._vertexDimension++;m.hasM&&this._vertexDimension++};u.finishFeatureResult=function(m){if(m&&m.features&&m.hasZ&&this.options.sourceSpatialReference&&
m.spatialReference&&!c.equals(m.spatialReference,this.options.sourceSpatialReference)&&!m.spatialReference.vcsWkid){var p=b.getMetersPerVerticalUnitForSR(this.options.sourceSpatialReference),e=b.getMetersPerVerticalUnitForSR(m.spatialReference);p/=e;if(1!==p)for(const l of m.features)if(l.geometry&&l.geometry.coords)for(m=l.geometry.coords,e=2;e<m.length;e+=3)m[e]*=p}};u.addFeature=function(m,p){m.features.push(p)};u.createFeature=function(){return new g};u.createSpatialReference=function(){return{wkid:0}};
u.createGeometry=function(){return new k};u.addField=function(m,p){m.fields.push(p)};u.allocateCoordinates=function(m){m.coords.length=m.lengths.reduce((p,e)=>p+e,0)*this._vertexDimension;this._coordinatePtr=0};u.addCoordinate=function(m,p){m.coords[this._coordinatePtr++]=p};u.addCoordinatePoint=function(m,p){m.coords.push(p)};u.addLength=function(m,p){m.lengths.push(p)};u.addQueryGeometry=function(m,p){m.queryGeometry=p.queryGeometry;m.queryGeometryType=p.queryGeometryType};u.createPointGeometry=
function(){return new k};return t}();a.OPTIMIZED_GEOMETRY_TYPES=q;a.OptimizedFeatureSetParserContext=v;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/layers/graphics/OptimizedFeature":function(){define(["../../chunks/_rollupPluginBabelHelpers"],function(a){return function(){function b(c=null,g={},f,k){this.geohashY=this.geohashX=this.displayId=0;this.geometry=c;g&&(this.attributes=g);f&&(this.centroid=f);null!=k&&(this.objectId=k)}b.prototype.weakClone=function(){const c=new b(this.geometry,
this.attributes,this.centroid,this.objectId);c.displayId=this.displayId;c.geohashX=this.geohashX;c.geohashY=this.geohashY;return c};a._createClass(b,[{key:"hasGeometry",get:function(){return!(!this.geometry||!this.geometry.coords||!this.geometry.coords.length)}}]);return b}()})},"esri/layers/graphics/OptimizedFeatureSet":function(){define(function(){return function(){function a(){this.spatialReference=this.geometryType=this.geometryProperties=this.geohashFieldName=this.globalIdFieldName=this.objectIdFieldName=
null;this.hasM=this.hasZ=!1;this.features=[];this.fields=[];this.transform=null;this.exceededTransferLimit=!1;this.queryGeometry=this.queryGeometryType=this.uniqueIdField=null}a.prototype.weakClone=function(){const b=new a;b.objectIdFieldName=this.objectIdFieldName;b.globalIdFieldName=this.globalIdFieldName;b.geohashFieldName=this.geohashFieldName;b.geometryProperties=this.geometryProperties;b.geometryType=this.geometryType;b.spatialReference=this.spatialReference;b.hasZ=this.hasZ;b.hasM=this.hasM;
b.features=this.features;b.fields=this.fields;b.transform=this.transform;b.exceededTransferLimit=this.exceededTransferLimit;b.uniqueIdField=this.uniqueIdField;b.queryGeometry=this.queryGeometry;b.queryGeometryType=this.queryGeometryType;return b};return a}()})},"esri/rest/query/executeForExtent":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../geometry ../utils ./operations/query ../support/Query ../../geometry/Extent".split(" "),function(a,b,c,g,f,k,q){function v(){v=b._asyncToGenerator(function*(t,
u,m){t=g.parseUrl(t);return f.executeQueryForExtent(t,k.from(u),{...m}).then(p=>({count:p.data.count,extent:q.fromJSON(p.data.extent)}))});return v.apply(this,arguments)}a.executeForExtent=function(t,u,m){return v.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/query/executeForIds":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers","../utils","./operations/query","../support/Query"],function(a,b,c,g,f){function k(){k=b._asyncToGenerator(function*(q,
v,t){q=c.parseUrl(q);return g.executeQueryForIds(q,f.from(v),{...t}).then(u=>u.data.objectIds)});return k.apply(this,arguments)}a.executeForIds=function(q,v,t){return k.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/query/executeQueryJSON":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../utils ./operations/query ../support/FeatureSet ../support/Query".split(" "),function(a,b,c,g,f,k){function q(){q=b._asyncToGenerator(function*(u,m,p){u=yield v(u,
m,p);return f.fromJSON(u)});return q.apply(this,arguments)}function v(u,m,p){return t.apply(this,arguments)}function t(){t=b._asyncToGenerator(function*(u,m,p){u=c.parseUrl(u);p={...p};m=k.from(m);({data:m}=yield g.executeQuery(u,m,m.sourceSpatialReference,p));return m});return t.apply(this,arguments)}a.executeQueryJSON=function(u,m,p){return q.apply(this,arguments)};a.executeRawQueryJSON=v;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/query/executeQueryPBF":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../utils ./operations/pbfJSONFeatureSet ./operations/query ../support/FeatureSet ../support/Query".split(" "),
function(a,b,c,g,f,k,q){function v(){v=b._asyncToGenerator(function*(m,p,e){m=yield t(m,p,e);return k.fromJSON(m)});return v.apply(this,arguments)}function t(m,p,e){return u.apply(this,arguments)}function u(){u=b._asyncToGenerator(function*(m,p,e){m=c.parseUrl(m);e={...e};p=q.from(p);({data:p}=yield f.executeQueryPBF(m,p,new g.JSONFeatureSetParserContext({sourceSpatialReference:p.sourceSpatialReference,applyTransform:!p.quantizationParameters}),e));return p});return u.apply(this,arguments)}a.executeQueryPBF=
function(m,p,e){return v.apply(this,arguments)};a.executeRawQueryPBF=t;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/query/operations/pbfJSONFeatureSet":function(){define(["exports","../../../core/compilerUtils","../../../layers/graphics/featureConversionUtils","./zscale"],function(a,b,c,g){function f(e,l){return l}function k(e,l,h,n){switch(h){case 0:return u(e,l+n,0);case 1:return"lowerLeft"===e.originPosition?u(e,l+n,1):m(e,l+n,1)}}function q(e,l,h,n){switch(h){case 2:return u(e,
l,2);default:return k(e,l,h,n)}}function v(e,l,h,n){switch(h){case 2:return u(e,l,3);default:return k(e,l,h,n)}}function t(e,l,h,n){switch(h){case 3:return u(e,l,3);default:return q(e,l,h,n)}}function u({translate:e,scale:l},h,n){return e[n]+h*l[n]}function m({translate:e,scale:l},h,n){return e[n]-h*l[n]}let p=function(){function e(h){this.options=h;this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];this.previousCoordinate=[0,0];this.transform=
null;this.applyTransform=f;this.lengths=[];this.vertexDimension=this.toAddInCurrentPath=this.currentLengthIndex=0;this.coordinateBuffer=null;this.coordinateBufferPtr=0;this.AttributesConstructor=function(){}}var l=e.prototype;l.createFeatureResult=function(){return{fields:[],features:[]}};l.finishFeatureResult=function(h){this.options.applyTransform&&(h.transform=null);this.AttributesConstructor=function(){};this.coordinateBuffer=null;this.lengths.length=0;if(h.hasZ){var n=g.getGeometryZScaler(h.geometryType,
this.options.sourceSpatialReference,h.spatialReference);if(n)for(const w of h.features)n(w.geometry)}};l.createSpatialReference=function(){return{}};l.addField=function(h,n){h.fields.push(n);const w=h.fields.map(x=>x.name);this.AttributesConstructor=function(){for(const x of w)this[x]=null}};l.addFeature=function(h,n){h.features.push(n)};l.prepareFeatures=function(h){this.transform=h.transform;this.options.applyTransform&&h.transform&&(this.applyTransform=this.deriveApplyTransform(h));this.vertexDimension=
2;h.hasZ&&this.vertexDimension++;h.hasM&&this.vertexDimension++;switch(h.geometryType){case "esriGeometryPoint":this.addCoordinate=(n,w,x)=>this.addCoordinatePoint(n,w,x);this.createGeometry=n=>this.createPointGeometry(n);break;case "esriGeometryPolygon":this.addCoordinate=(n,w,x)=>this.addCoordinatePolygon(n,w,x);this.createGeometry=n=>this.createPolygonGeometry(n);break;case "esriGeometryPolyline":this.addCoordinate=(n,w,x)=>this.addCoordinatePolyline(n,w,x);this.createGeometry=n=>this.createPolylineGeometry(n);
break;case "esriGeometryMultipoint":this.addCoordinate=(n,w,x)=>this.addCoordinateMultipoint(n,w,x);this.createGeometry=n=>this.createMultipointGeometry(n);break;default:b.neverReached(h.geometryType)}};l.createFeature=function(){this.currentLengthIndex=this.lengths.length=0;this.previousCoordinate[0]=0;this.previousCoordinate[1]=0;this.coordinateBuffer=null;this.coordinateBufferPtr=0;return{attributes:new this.AttributesConstructor}};l.allocateCoordinates=function(){};l.addLength=function(h,n,w){0===
this.lengths.length&&(this.toAddInCurrentPath=n);this.lengths.push(n)};l.addQueryGeometry=function(h,n){const {queryGeometry:w,queryGeometryType:x}=n;n=c.unquantizeOptimizedGeometry(w.clone(),w,!1,!1,this.transform);n=c.convertToGeometry(n,x,!1,!1);h.queryGeometryType=x;h.queryGeometry={...n}};l.createPointGeometry=function(h){const n={x:0,y:0,spatialReference:h.spatialReference};h.hasZ&&(n.z=0);h.hasM&&(n.m=0);return n};l.addCoordinatePoint=function(h,n,w){n=this.applyTransform(this.transform,n,
w,0);switch(w){case 0:h.x=n;break;case 1:h.y=n;break;case 2:"z"in h?h.z=n:h.m=n;break;case 3:h.m=n}};l.transformPathLikeValue=function(h,n){let w=0;1>=n&&(w=this.previousCoordinate[n],this.previousCoordinate[n]+=h);return this.applyTransform(this.transform,h,n,w)};l.addCoordinatePolyline=function(h,n,w){this.dehydratedAddPointsCoordinate(h.paths,n,w)};l.addCoordinatePolygon=function(h,n,w){this.dehydratedAddPointsCoordinate(h.rings,n,w)};l.addCoordinateMultipoint=function(h,n,w){0===w&&h.points.push([]);
n=this.transformPathLikeValue(n,w);h.points[h.points.length-1].push(n)};l.createPolygonGeometry=function(h){return{rings:[[]],spatialReference:h.spatialReference,hasZ:!!h.hasZ,hasM:!!h.hasM}};l.createPolylineGeometry=function(h){return{paths:[[]],spatialReference:h.spatialReference,hasZ:!!h.hasZ,hasM:!!h.hasM}};l.createMultipointGeometry=function(h){return{points:[],spatialReference:h.spatialReference,hasZ:!!h.hasZ,hasM:!!h.hasM}};l.dehydratedAddPointsCoordinate=function(h,n,w){0===w&&0===this.toAddInCurrentPath--&&
(h.push([]),this.toAddInCurrentPath=this.lengths[++this.currentLengthIndex]-1,this.previousCoordinate[0]=0,this.previousCoordinate[1]=0);n=this.transformPathLikeValue(n,w);h=h[h.length-1];0===w&&(this.coordinateBufferPtr=0,this.coordinateBuffer=Array(this.vertexDimension),h.push(this.coordinateBuffer));this.coordinateBuffer[this.coordinateBufferPtr++]=n};l.deriveApplyTransform=function(h){const {hasZ:n,hasM:w}=h;return n&&w?t:n?q:w?v:k};return e}();a.JSONFeatureSetParserContext=p;Object.defineProperty(a,
"__esModule",{value:!0})})},"esri/layers/graphics/featureConversionUtils":function(){define("exports ../../core/Error ../../core/Logger ../../geometry/support/jsonUtils ./OptimizedFeature ./OptimizedFeatureSet ./OptimizedGeometry".split(" "),function(a,b,c,g,f,k,q){function v(aa,ja){return aa?ja?4:3:ja?3:2}function t(aa,ja,ua,ta){if(aa){if(ua)return ja&&ta?la:da;if(ja&&ta)return ea}else if(ja&&ta)return da;return ia}function u({scale:aa,translate:ja},ua){return Math.round((ua-ja[0])/aa[0])}function m({scale:aa,
translate:ja},ua){return Math.round((ja[1]-ua)/aa[1])}function p({scale:aa,translate:ja},ua){return ua*aa[0]+ja[0]}function e({scale:aa,translate:ja},ua){return ja[1]-ua*aa[1]}function l(aa){aa=aa.coords;return{x:aa[0],y:aa[1]}}function h(aa,ja){aa.coords[0]=ja.x;aa.coords[1]=ja.y;return aa}function n(aa){aa=aa.coords;return{x:aa[0],y:aa[1],z:aa[2]}}function w(aa,ja){aa.coords[0]=ja.x;aa.coords[1]=ja.y;aa.coords[2]=ja.z;return aa}function x(aa){aa=aa.coords;return{x:aa[0],y:aa[1],m:aa[2]}}function C(aa,
ja){aa.coords[0]=ja.x;aa.coords[1]=ja.y;aa.coords[2]=ja.m;return aa}function D(aa){aa=aa.coords;return{x:aa[0],y:aa[1],z:aa[2],m:aa[3]}}function A(aa,ja){aa.coords[0]=ja.x;aa.coords[1]=ja.y;aa.coords[2]=ja.z;aa.coords[3]=ja.m;return aa}function B(aa,ja){return aa&&ja?A:aa?w:ja?C:h}function r(aa,ja,ua,ta,T){ua=B(ua,ta);for(const ba of ja){const {geometry:ha,attributes:sa}=ba;let Aa;ha&&(Aa=ua(new q,ha));aa.push(new f(Aa,sa,null,sa[T]))}return aa}function z(aa,ja,ua,ta){for(const T of ja){const {geometry:ba,
attributes:ha}=T;let sa;ba&&(sa=E(ba,ua,ta));aa.push({attributes:ha,geometry:sa})}return aa}function E(aa,ja,ua){if(!aa)return null;const ta=v(ja,ua),T=[];for(let ba=0;ba<aa.coords.length;ba+=ta){const ha=[];for(let sa=0;sa<ta;sa++)ha.push(aa.coords[ba+sa]);T.push(ha)}return ja?ua?{points:T,hasZ:ja,hasM:ua}:{points:T,hasZ:ja}:ua?{points:T,hasM:ua}:{points:T}}function F(aa,ja,ua,ta,T){ua=v(ua,ta);for(const ba of ja){ja=ba.geometry;ta=ba.attributes;let ha;ja&&(ha=G(new q,ja,ua));aa.push(new f(ha,ta,
null,ta[T]))}return aa}function G(aa,ja,ua=v(ja.hasZ,ja.hasM)){aa.lengths[0]=ja.points.length;const ta=aa.coords;let T=0;for(const ba of ja.points)for(ja=0;ja<ua;ja++)ta[T++]=ba[ja];return aa}function N(aa,ja,ua){if(!aa)return null;const ta=v(ja,ua),{coords:T,lengths:ba}=aa;aa=[];let ha=0;for(const sa of ba){const Aa=[];for(let La=0;La<sa;La++){const Ra=[];for(let Za=0;Za<ta;Za++)Ra.push(T[ha++]);Aa.push(Ra)}aa.push(Aa)}return ja?ua?{paths:aa,hasZ:ja,hasM:ua}:{paths:aa,hasZ:ja}:ua?{paths:aa,hasM:ua}:
{paths:aa}}function K(aa,ja,ua,ta,T){ua=v(ua,ta);for(const ba of ja){ja=ba.geometry;ta=ba.attributes;let ha;ja&&(ha=I(new q,ja,ua));aa.push(new f(ha,ta,null,ta[T]))}return aa}function I(aa,ja,ua=v(ja.hasZ,ja.hasM)){const {lengths:ta,coords:T}=aa;let ba=0;for(const ha of ja.paths){for(const sa of ha)for(ja=0;ja<ua;ja++)T[ba++]=sa[ja];ta.push(ha.length)}return aa}function J(aa,ja,ua){if(!aa)return null;const ta=v(ja,ua),{coords:T,lengths:ba}=aa;aa=[];let ha=0;for(const sa of ba){const Aa=[];for(let La=
0;La<sa;La++){const Ra=[];for(let Za=0;Za<ta;Za++)Ra.push(T[ha++]);Aa.push(Ra)}aa.push(Aa)}return ja?ua?{rings:aa,hasZ:ja,hasM:ua}:{rings:aa,hasZ:ja}:ua?{rings:aa,hasM:ua}:{rings:aa}}function L(aa,ja,ua,ta,T){for(const ba of ja){ja=ba.geometry;const ha=ba.centroid,sa=ba.attributes;let Aa;ja&&(Aa=Q(new q,ja,ua,ta));ha?aa.push(new f(Aa,sa,h(new q,ha),sa[T])):aa.push(new f(Aa,sa,null,sa[T]))}return aa}function Q(aa,ja,ua=ja.hasZ,ta=ja.hasM){W(aa,ja.rings,ua,ta);return aa}function W(aa,ja,ua,ta){ua=v(ua,
ta);const {lengths:T,coords:ba}=aa;ta=0;T.length=ba.length=0;for(const ha of ja){for(const sa of ha)for(ja=0;ja<ua;ja++)ba[ta++]=sa[ja];T.push(ha.length)}return aa}function V(aa,ja,ua,ta,T,ba){aa.length=0;if(!ua){for(const ha of ja)aa.push(new f(null,ha.attributes,null,ha.attributes[ba]));return aa}switch(ua){case "esriGeometryPoint":return r(aa,ja,ta,T,ba);case "esriGeometryMultipoint":return F(aa,ja,ta,T,ba);case "esriGeometryPolyline":return K(aa,ja,ta,T,ba);case "esriGeometryPolygon":return L(aa,
ja,ta,T,ba);default:Ea.error("convertToFeatureSet:unknown-geometry",new b(`Unable to parse unknown geometry type '${ua}'`)),aa.length=0}return aa}function P(aa,ja,ua,ta){aa=aa&&("coords"in aa?aa:aa.geometry);if(!aa)return null;switch(ja){case "esriGeometryPoint":return ja=l,ua&&ta?ja=D:ua?ja=n:ta&&(ja=x),ja(aa);case "esriGeometryMultipoint":return E(aa,ua,ta);case "esriGeometryPolyline":return N(aa,ua,ta);case "esriGeometryPolygon":return J(aa,ua,ta);default:Ea.error("convertToGeometry:unknown-geometry",
new b(`Unable to parse unknown geometry type '${ja}'`))}}function X(aa,ja,ua,ta,T){aa.length=0;switch(ua){case "esriGeometryPoint":var ba=l;ta&&T?ba=D:ta?ba=n:T&&(ba=x);for(var ha of ja){const {geometry:sa,attributes:Aa}=ha;ta=sa?ba(sa):null;aa.push({attributes:Aa,geometry:ta})}break;case "esriGeometryMultipoint":return z(aa,ja,ta,T);case "esriGeometryPolyline":for(const sa of ja){const {geometry:Aa,attributes:La}=sa;let Ra;Aa&&(Ra=N(Aa,ta,T));aa.push({attributes:La,geometry:Ra})}break;case "esriGeometryPolygon":for(ba of ja){const {geometry:sa,
attributes:Aa,centroid:La}=ba;let Ra;sa&&(Ra=J(sa,ta,T));La?(ha=l(La),aa.push({attributes:Aa,centroid:ha,geometry:Ra})):aa.push({attributes:Aa,geometry:Ra})}break;default:Ea.error("convertToFeatureSet:unknown-geometry",new b(`Unable to parse unknown geometry type '${ua}'`))}return aa}function U(aa,ja,ua,ta,T,ba,ha=ua,sa=ta){aa.lengths.length&&(aa.lengths.length=0);aa.coords.length&&(aa.coords.length=0);if(!ja||!ja.coords.length)return null;T=fa[T];const {coords:Aa,lengths:La}=ja;ja=v(ua,ta);const Ra=
v(ua&&ha,ta&&sa);ua=t(ua,ta,ha,sa);if(!La.length)return ua(aa.coords,Aa,0,0,u(ba,Aa[0]),m(ba,Aa[1])),aa.lengths.length&&(aa.lengths.length=0),aa.coords.length=ja,aa;let Za,jb=0,kb,ra=0;for(const ya of La){if(ya<T)continue;let Ca=0;kb=ra;sa=ta=u(ba,Aa[jb]);Za=ha=m(ba,Aa[jb+1]);ua(aa.coords,Aa,kb,jb,sa,Za);Ca++;jb+=ja;kb+=Ra;for(let Ha=1;Ha<ya;Ha++,jb+=ja)if(sa=u(ba,Aa[jb]),Za=m(ba,Aa[jb+1]),sa!==ta||Za!==ha)ua(aa.coords,Aa,kb,jb,sa-ta,Za-ha),kb+=Ra,Ca++,ta=sa,ha=Za;Ca>=T&&(aa.lengths.push(Ca),ra=kb)}aa.coords.length=
ra;return aa.coords.length?aa:null}function Z(aa,ja,ua,ta,T,ba,ha){let sa=ta,Aa=0;for(let Ra=ba+ua;Ra<ha;Ra+=ua){{var La=ja[Ra];const Za=ja[Ra+1],jb=ja[ha],kb=ja[ha+1];let ra=ja[ba],ya=ja[ba+1],Ca=jb-ra,Ha=kb-ya;if(0!==Ca||0!==Ha){const Ka=((La-ra)*Ca+(Za-ya)*Ha)/(Ca*Ca+Ha*Ha);1<Ka?(ra=jb,ya=kb):0<Ka&&(ra+=Ca*Ka,ya+=Ha*Ka)}Ca=La-ra;Ha=Za-ya;La=Ca*Ca+Ha*Ha}La>sa&&(Aa=Ra,sa=La)}sa>ta&&(Aa-ba>ua&&Z(aa,ja,ua,ta,T,ba,Aa),T(aa,ja,aa.length,Aa,ja[Aa],ja[Aa+1]),ha-Aa>ua&&Z(aa,ja,ua,ta,T,Aa,ha))}function oa(aa,
ja,ua,ta,T){const {coords:ba,lengths:ha}=ja,sa=ua?ta?la:da:ta?da:ia;ua=v(ua,ta);if(!ba.length)return aa!==ja&&(aa.lengths.length=0,aa.coords.length=0),aa;if(!ha.length)return sa(aa.coords,ba,0,0,p(T,ba[0]),e(T,ba[1])),aa!==ja&&(aa.lengths.length=0,aa.coords.length=ua),aa;const [Aa,La]=T.scale;ta=0;for(let Ra=0;Ra<ha.length;Ra++){const Za=ha[Ra];aa.lengths[Ra]=Za;let jb=p(T,ba[ta]),kb=e(T,ba[ta+1]);sa(aa.coords,ba,ta,ta,jb,kb);ta+=ua;for(let ra=1;ra<Za;ra++,ta+=ua)jb+=ba[ta]*Aa,kb-=ba[ta+1]*La,sa(aa.coords,
ba,ta,ta,jb,kb)}aa!==ja&&(aa.lengths.length=ha.length,aa.coords.length=ba.length);return aa}function xa(aa,ja,ua,ta){let T=0,ba=aa[ta*ja],ha=aa[ta*(ja+1)];for(let sa=1;sa<ua;sa++){const Aa=ba+aa[ta*(ja+sa)],La=ha+aa[ta*(ja+sa)+1],Ra=(Aa-ba)*(La+ha);ba=Aa;ha=La;T+=Ra}return.5*T}const Ea=c.getLogger("esri.tasks.support.optimizedFeatureSet"),fa={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},ia=(aa,ja,ua,ta,T,ba)=>{aa[ua]=T;aa[ua+1]=ba},da=(aa,ja,ua,ta,T,ba)=>
{aa[ua]=T;aa[ua+1]=ba;aa[ua+2]=ja[ta+2]},ea=(aa,ja,ua,ta,T,ba)=>{aa[ua]=T;aa[ua+1]=ba;aa[ua+2]=ja[ta+3]},la=(aa,ja,ua,ta,T,ba)=>{aa[ua]=T;aa[ua+1]=ba;aa[ua+2]=ja[ta+2];aa[ua+3]=ja[ta+3]},va=[],Ba=[];a.convertFromFeature=function(aa,ja,ua,ta,T){va[0]=aa;[aa]=V(Ba,va,ja,ua,ta,T);va.length=Ba.length=0;return aa};a.convertFromFeatureSet=function(aa,ja){const ua=new k,{hasM:ta,hasZ:T,features:ba,objectIdFieldName:ha,spatialReference:sa,geometryType:Aa,exceededTransferLimit:La,transform:Ra,fields:Za}=aa;
Za&&(ua.fields=Za);ua.geometryType=Aa;ua.objectIdFieldName=ha||ja;ua.spatialReference=sa;if(!ua.objectIdFieldName)return Ea.error(new b("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),ua;ba&&V(ua.features,ba,Aa,T,ta,ua.objectIdFieldName);La&&(ua.exceededTransferLimit=La);ta&&(ua.hasM=ta);T&&(ua.hasZ=T);Ra&&(ua.transform=Ra);return ua};a.convertFromFeatures=V;a.convertFromGeometry=function(aa,ja,ua){if(!aa)return null;const ta=new q;"hasZ"in aa&&null==ja&&(ja=aa.hasZ);
"hasM"in aa&&null==ua&&(ua=aa.hasM);if(g.isPoint(aa))return B(null!=ja?ja:null!=aa.z,null!=ua?ua:null!=aa.m)(ta,aa);if(g.isPolygon(aa))return Q(ta,aa,ja,ua);if(g.isPolyline(aa))return I(ta,aa,v(ja,ua));if(g.isMultipoint(aa))return G(ta,aa,v(ja,ua));Ea.error("convertFromGeometry:unknown-geometry",new b(`Unable to parse unknown geometry type '${aa}'`))};a.convertFromGraphics=function(aa,ja,ua,ta,T,ba){const ha=aa.length;switch(ua){case "esriGeometryPoint":r(aa,ja,ta,T,ba);break;case "esriGeometryMultipoint":F(aa,
ja,ta,T,ba);break;case "esriGeometryPolyline":K(aa,ja,ta,T,ba);break;case "esriGeometryPolygon":L(aa,ja,ta,T,ba);break;default:Ea.error("convertToFeatureSet:unknown-geometry",new b(`Unable to parse unknown geometry type '${ua}'`))}for(ta=0;ta<ja.length;ta++)aa[ta+ha].geometryType=ua,aa[ta+ha].insertAfter=ja[ta].insertAfter,aa[ta+ha].groupId=ja[ta].groupId;return aa};a.convertFromMultipoint=G;a.convertFromMultipointFeatures=F;a.convertFromNestedArray=W;a.convertFromPoint=function(aa,ja,ua=B(null!=
ja.z,null!=ja.m)){return ua(aa,ja)};a.convertFromPointFeatures=r;a.convertFromPolygon=Q;a.convertFromPolyline=I;a.convertFromPolylineFeatures=K;a.convertToFeature=function(aa,ja,ua,ta){Ba[0]=aa;X(va,Ba,ja,ua,ta);aa=va[0];va.length=Ba.length=0;return aa};a.convertToFeatureSet=function(aa){const {objectIdFieldName:ja,spatialReference:ua,transform:ta,fields:T,hasM:ba,hasZ:ha,features:sa,geometryType:Aa,exceededTransferLimit:La,uniqueIdField:Ra,queryGeometry:Za,queryGeometryType:jb}=aa;aa=X([],sa,Aa,
ha,ba);const kb=P(Za,jb,!1,!1);aa={features:aa,fields:T,geometryType:Aa,objectIdFieldName:ja,spatialReference:ua,uniqueIdField:Ra,queryGeometry:kb};ta&&(aa.transform=ta);La&&(aa.exceededTransferLimit=La);ba&&(aa.hasM=ba);ha&&(aa.hasZ=ha);return aa};a.convertToFeatures=X;a.convertToGeometry=P;a.convertToMultipoint=E;a.convertToMultipointFeatures=z;a.convertToPoint=function(aa,ja,ua){return aa?ja?ua?D(aa):n(aa):ua?x(aa):l(aa):null};a.convertToPolygon=J;a.convertToPolyline=N;a.deltaDecodeGeometry=function(aa,
ja){const ua=aa.clone(),ta=aa.coords;aa=aa.lengths;let T=0;for(let sa=0;sa<aa.length;sa++){const Aa=aa[sa];var ba=ta[ja*T],ha=ta[ja*T+1];for(let La=1;La<Aa;La++)ba+=ta[ja*(T+La)],ha+=ta[ja*(T+La)+1],ua.coords[ja*(T+La)]=ba,ua.coords[ja*(T+La)+1]=ha;T+=Aa}return ua};a.deltaEncodeGeometry=function(aa,ja){const ua=aa.clone(),ta=aa.coords;aa=aa.lengths;let T=0;for(let ha=0;ha<aa.length;ha++){const sa=aa[ha];let Aa=ta[ja*T];var ba=ta[ja*T+1];for(let La=1;La<sa;La++){const Ra=ta[ja*(T+La)],Za=ta[ja*(T+
La)+1];ba=Za-ba;ua.coords[ja*(T+La)]=Ra-Aa;ua.coords[ja*(T+La)+1]=ba;Aa=Ra;ba=Za}T+=sa}return ua};a.generalizeOptimizedGeometry=function(aa,ja,ua,ta,T,ba,ha=ua,sa=ta){aa.lengths.length&&(aa.lengths.length=0);aa.coords.length&&(aa.coords.length=0);if(!ja||!ja.coords.length)return null;T=fa[T];const {coords:Aa,lengths:La}=ja;ja=v(ua,ta);const Ra=v(ua&&ha,ta&&sa);ua=t(ua,ta,ha,sa);if(!La.length)return ua(aa.coords,Aa,0,0,Aa[0],Aa[1]),aa.lengths.length&&(aa.lengths.length=0),aa.coords.length=ja,aa;ta=
0;ba*=ba;for(const Za of La){if(Za<T){ta+=Za*ja;continue}ha=aa.coords.length/Ra;sa=ta;const jb=ta+(Za-1)*ja;ua(aa.coords,Aa,aa.coords.length,sa,Aa[sa],Aa[sa+1]);Z(aa.coords,Aa,ja,ba,ua,sa,jb);ua(aa.coords,Aa,aa.coords.length,jb,Aa[jb],Aa[jb+1]);sa=aa.coords.length/Ra-ha;sa>=T?aa.lengths.push(sa):aa.coords.length=ha*Ra;ta+=Za*ja}return aa.coords.length?aa:null};a.getBoundsOptimizedGeometry=function(aa,ja,ua,ta){if(!ja||!ja.coords||!ja.coords.length)return null;ua=v(ua,ta);let T=ta=Number.POSITIVE_INFINITY,
ba=Number.NEGATIVE_INFINITY,ha=Number.NEGATIVE_INFINITY;if(ja&&ja.coords){ja=ja.coords;for(let sa=0;sa<ja.length;sa+=ua){const Aa=ja[sa],La=ja[sa+1];ta=Math.min(ta,Aa);ba=Math.max(ba,Aa);T=Math.min(T,La);ha=Math.max(ha,La)}}aa[0]=ta;aa[1]=T;aa[2]=ba;aa[3]=ha;return aa};a.getQuantizedArea=function(aa,ja){const {coords:ua,lengths:ta}=aa;let T=aa=0;for(let ba=0;ba<ta.length;ba++)T+=xa(ua,aa,ta[ba],ja),aa+=ba;return Math.abs(T)};a.getQuantizedBoundsOptimizedGeometry=function(aa,ja,ua,ta){ua=v(ua,ta);
const {lengths:T,coords:ba}=ja;ta=ja=Number.POSITIVE_INFINITY;let ha=Number.NEGATIVE_INFINITY,sa=Number.NEGATIVE_INFINITY,Aa=0;for(const La of T){let Ra=ba[Aa],Za=ba[Aa+1];ja=Math.min(Ra,ja);ta=Math.min(Za,ta);ha=Math.max(Ra,ha);sa=Math.max(Za,sa);Aa+=ua;for(let jb=1;jb<La;jb++,Aa+=ua){const kb=ba[Aa],ra=ba[Aa+1];Ra+=kb;Za+=ra;0>kb&&(ja=Math.min(ja,Ra));0<kb&&(ha=Math.max(ha,Ra));0>ra?ta=Math.min(ta,Za):0<ra&&(sa=Math.max(sa,Za))}}aa[0]=ja;aa[1]=ta;aa[2]=ha;aa[3]=sa;return aa};a.getSignedQuantizedRingArea=
xa;a.quantizeOptimizedFeatureSet=function(aa,ja){const {geometryType:ua,features:ta,hasM:T,hasZ:ba}=ja;if(!aa)return ja;for(let ha=0;ha<ta.length;ha++){const sa=ta[ha],Aa=sa.weakClone();Aa.geometry=new q;U(Aa.geometry,sa.geometry,T,ba,ua,aa);sa.centroid&&(Aa.centroid=new q,U(Aa.centroid,sa.centroid,T,ba,"esriGeometryPoint",aa));ta[ha]=Aa}ja.transform=aa;return ja};a.quantizeOptimizedGeometry=U;a.quantizeX=u;a.quantizeY=m;a.removeCollinearVectices=function(aa,ja,ua,ta,T){if(!ja||!ja.coords||!ja.coords.length)return null;
ua=fa[ua];const {coords:ba,lengths:ha}=ja;ja=t(ta,T,ta,T);ta=v(ta,T);let sa=T=0,Aa=0,La=0;for(const jb of ha){sa=La;ja(aa.coords,ba,sa,T,ba[T],ba[T+1]);T+=ta;var Ra=ba[T];let kb=ba[T+1],ra=Ra,ya=kb;var Za=kb/Ra;sa+=ta;ja(aa.coords,ba,sa,T,ra,ya);T+=ta;for(let Ca=2;Ca<jb;Ca++){Ra=ba[T];kb=ba[T+1];const Ha=kb/Ra,Ka=Za===Ha||!isFinite(Za)&&!isFinite(Ha);Za=Ka&&isFinite(Ha)?0<=Za&&0<=Ha||0>=Za&&0>=Ha:0<=ya&&0<=kb||0>=ya&&0>=kb;Ka&&Za?(ra+=Ra,ya+=kb):(ra=Ra,ya=kb,sa+=ta);ja(aa.coords,ba,sa,T,ra,ya);T+=
ta;Za=Ha}sa+=ta;Ra=(sa-La)/ta;Ra>=ua&&(aa.lengths[Aa]=Ra,La=sa,Aa++)}aa.coords.length>La&&(aa.coords.length=La);aa.lengths.length>Aa&&(aa.lengths.length=Aa);return aa.coords.length&&aa.lengths.length?aa:null};a.removeZMValues=function(aa,ja,ua,ta,T,ba){const ha=v(ua,ta);ua=t(ua,ta,T,ba);ta=ja.coords;aa.coords.length=0;aa.lengths.length=0;aa.lengths.push(...ja.lengths);for(ja=0;ja<ta.length;ja+=ha)ua(aa.coords,ta,aa.coords.length,ja,ta[ja],ta[ja+1]);return aa};a.unquantizeOptimizedFeatureSet=function(aa){const {transform:ja,
features:ua,hasM:ta,hasZ:T}=aa;if(!ja)return aa;for(const ba of ua)ba.geometry&&oa(ba.geometry,ba.geometry,ta,T,ja),ba.centroid&&oa(ba.centroid,ba.centroid,ta,T,ja);aa.transform=null;return aa};a.unquantizeOptimizedGeometry=oa;a.unquantizeX=p;a.unquantizeY=e;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/query/executeRelationshipQuery":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../utils ./operations/queryRelatedRecords ../support/FeatureSet ../support/RelationshipQuery".split(" "),
function(a,b,c,g,f,k){function q(){q=b._asyncToGenerator(function*(t,u,m){u=k.from(u);t=c.parseUrl(t);return g.executeRelationshipQuery(t,u,m).then(p=>{const e=p.data,l={};Object.keys(e).forEach(h=>l[h]=f.fromJSON(e[h]));return l})});return q.apply(this,arguments)}function v(){v=b._asyncToGenerator(function*(t,u,m){u=k.from(u);t=c.parseUrl(t);return g.executeRelationshipQueryForCount(t,u,{...m}).then(p=>p.data)});return v.apply(this,arguments)}a.executeRelationshipQuery=function(t,u,m){return q.apply(this,
arguments)};a.executeRelationshipQueryForCount=function(t,u,m){return v.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/query/operations/queryRelatedRecords":function(){define(["exports","../../../chunks/_rollupPluginBabelHelpers","../../../request","../../../tasks/operations/urlUtils"],function(a,b,c,g){function f(u,m){u=u.toJSON();u.objectIds&&(u.objectIds=u.objectIds.join(","));u.orderByFields&&(u.orderByFields=u.orderByFields.join(","));!u.outFields||null!=
m&&m.returnCountOnly?delete u.outFields:-1!==u.outFields.indexOf("*")?u.outFields="*":u.outFields=u.outFields.join(",");u.outSpatialReference&&(u.outSR=u.outSR.wkid||JSON.stringify(u.outSR.toJSON()),delete u.outSpatialReference);u.dynamicDataSource&&(u.layer=JSON.stringify({source:u.dynamicDataSource}),delete u.dynamicDataSource);return u}function k(){k=b._asyncToGenerator(function*(u,m,p){u=yield v(u,m,p);m=u.data;p=m.geometryType;const e=m.spatialReference,l={};for(const h of m.relatedRecordGroups){const n=
{fields:void 0,objectIdFieldName:void 0,geometryType:p,spatialReference:e,hasZ:!!m.hasZ,hasM:!!m.hasM,features:h.relatedRecords};if(null!=h.objectId)l[h.objectId]=n;else for(const w in h)h.hasOwnProperty(w)&&"relatedRecords"!==w&&(l[h[w]]=n)}return{...u,data:l}});return k.apply(this,arguments)}function q(){q=b._asyncToGenerator(function*(u,m,p){u=yield v(u,m,p,{returnCountOnly:!0});m=u.data;p={};for(const e of m.relatedRecordGroups)null!=e.objectId&&(p[e.objectId]=e.count);return{...u,data:p}});return q.apply(this,
arguments)}function v(u,m){return t.apply(this,arguments)}function t(){t=b._asyncToGenerator(function*(u,m,p={},e){m=g.mapParameters({...u.query,f:"json",...e,...f(m,e)});return c(u.path+"/queryRelatedRecords",{...p,query:{...p.query,...m}})});return t.apply(this,arguments)}a.executeRelationshipQuery=function(u,m,p){return k.apply(this,arguments)};a.executeRelationshipQueryForCount=function(u,m,p){return q.apply(this,arguments)};a.toQueryStringParameters=f;Object.defineProperty(a,"__esModule",{value:!0})})},
"esri/rest/query/executeTopFeaturesQuery":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../utils ./operations/queryTopFeatures ../support/FeatureSet ../support/TopFeaturesQuery".split(" "),function(a,b,c,g,f,k){function q(){q=b._asyncToGenerator(function*(v,t,u,m){v=c.parseUrl(v);m={...m};({data:t}=yield g.executeTopFeaturesQuery(v,k.from(t),u,m));return f.fromJSON(t)});return q.apply(this,arguments)}a.executeTopFeaturesQuery=function(v,t,u,m){return q.apply(this,arguments)};Object.defineProperty(a,
"__esModule",{value:!0})})},"esri/rest/query/operations/queryTopFeatures":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../request ../../../core/maybe ../../../core/urlUtils ../../../geometry/support/jsonUtils ../../../geometry/support/normalizeUtils ./queryZScale ../../../tasks/operations/urlUtils".split(" "),function(a,b,c,g,f,k,q,v,t){function u(h,n){var w,x;const C=h.geometry;h=h.toJSON();g.isSome(C)&&(h.geometry=JSON.stringify(C),h.geometryType=k.getJsonType(C),h.inSR=
C.spatialReference.wkid||JSON.stringify(C.spatialReference));null!=(w=h.topFilter)&&w.groupByFields&&(h.topFilter.groupByFields=h.topFilter.groupByFields.join(","));null!=(x=h.topFilter)&&x.orderByFields&&(h.topFilter.orderByFields=h.topFilter.orderByFields.join(","));h.topFilter&&(h.topFilter=JSON.stringify(h.topFilter));h.objectIds&&(h.objectIds=h.objectIds.join(","));h.orderByFields&&(h.orderByFields=h.orderByFields.join(","));!h.outFields||null!=n&&n.returnCountOnly||null!=n&&n.returnExtentOnly||
null!=n&&n.returnIdsOnly?delete h.outFields:-1!==h.outFields.indexOf("*")?h.outFields="*":h.outFields=h.outFields.join(",");h.outSR?h.outSR=h.outSR.wkid||JSON.stringify(h.outSR):C&&h.returnGeometry&&(h.outSR=h.inSR);h.returnGeometry&&delete h.returnGeometry;if(h.timeExtent){const {start:D,end:A}=h.timeExtent;if(null!=D||null!=A)h.time=D===A?D:`${null==D?"null":D},${null==A?"null":A}`;delete h.timeExtent}return h}function m(){m=b._asyncToGenerator(function*(h,n,w,x){h=yield l(h,n,"json",x);v.applyFeatureSetZUnitScaling(n,
w,h.data);return h});return m.apply(this,arguments)}function p(){p=b._asyncToGenerator(function*(h,n,w){return g.isSome(n.timeExtent)&&n.timeExtent.isEmpty?Promise.resolve({data:{objectIds:[]}}):l(h,n,"json",w,{returnIdsOnly:!0})});return p.apply(this,arguments)}function e(){e=b._asyncToGenerator(function*(h,n,w){return g.isSome(n.timeExtent)&&n.timeExtent.isEmpty?Promise.resolve({data:{count:0,extent:null}}):l(h,n,"json",w,{returnExtentOnly:!0,returnCountOnly:!0}).then(x=>{const C=x.data;if(C.hasOwnProperty("extent"))return x;
if(C.features)throw Error("Layer does not support extent calculation.");if(C.hasOwnProperty("count"))throw Error("Layer does not support extent calculation.");return x})});return e.apply(this,arguments)}function l(h,n,w,x={},C={}){const D="string"===typeof h?f.urlToObject(h):h;h=n.geometry?[n.geometry]:[];x.responseType="pbf"===w?"array-buffer":"json";return q.normalizeCentralMeridian(h,null,x).then(A=>{A=A&&A[0];g.isSome(A)&&(n=n.clone(),n.geometry=A);A=t.mapParameters({...D.query,f:w,...C,...u(n,
C)});return c(f.join(D.path,"queryTopFeatures"),{...x,query:{...A,...x.query}})})}a.executeQueryForTopCount=function(h,n,w){return g.isSome(n.timeExtent)&&n.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):l(h,n,"json",w,{returnIdsOnly:!0,returnCountOnly:!0})};a.executeQueryForTopExtents=function(h,n,w){return e.apply(this,arguments)};a.executeQueryForTopIds=function(h,n,w){return p.apply(this,arguments)};a.executeTopFeaturesQuery=function(h,n,w,x){return m.apply(this,arguments)};a.queryToQueryStringParameters=
u;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/query/executeForTopIds":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers","../utils","./operations/queryTopFeatures","../support/TopFeaturesQuery"],function(a,b,c,g,f){function k(){k=b._asyncToGenerator(function*(q,v,t){q=c.parseUrl(q);return(yield g.executeQueryForTopIds(q,f.from(v),{...t})).data.objectIds});return k.apply(this,arguments)}a.executeForTopIds=function(q,v,t){return k.apply(this,arguments)};Object.defineProperty(a,
"__esModule",{value:!0})})},"esri/rest/query/executeForTopExtents":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../geometry ../utils ./operations/queryTopFeatures ../support/TopFeaturesQuery ../../geometry/Extent".split(" "),function(a,b,c,g,f,k,q){function v(){v=b._asyncToGenerator(function*(t,u,m){t=g.parseUrl(t);u=yield f.executeQueryForTopExtents(t,k.from(u),{...m});return{count:u.data.count,extent:q.fromJSON(u.data.extent)}});return v.apply(this,arguments)}a.executeForTopExtents=
function(t,u,m){return v.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/rest/query/executeForTopCount":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers","../utils","./operations/queryTopFeatures","../support/TopFeaturesQuery"],function(a,b,c,g,f){function k(){k=b._asyncToGenerator(function*(q,v,t){q=c.parseUrl(q);return(yield g.executeQueryForTopCount(q,f.from(v),{...t})).data.count});return k.apply(this,arguments)}a.executeForTopCount=function(q,
v,t){return k.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/tasks/Task":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/urlUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t,u){c=function(m){function p(...l){l=m.call(this,...l)||this;l.requestOptions=null;
l.url=null;return l}a._inheritsLoose(p,m);var e=p.prototype;e.normalizeCtorArgs=function(l,h){return"string"!==typeof l?l:{url:l,...h}};e._parseUrl=function(l){return l?g.urlToObject(l):null};e._encode=function(l,h,n){const w={};for(const C in l)if("declaredClass"!==C){var x=l[C];if(null!=x&&"function"!==typeof x)if(Array.isArray(x)){w[C]=[];for(let D=0;D<x.length;D++)w[C][D]=this._encode(x[D])}else"object"===typeof x?x.toJSON?(x=x.toJSON(n&&n[C]),w[C]=h?x:JSON.stringify(x)):w[C]=h?x:JSON.stringify(x):
w[C]=x}return w};a._createClass(p,[{key:"parsedUrl",get:function(){return this._parseUrl(this.url)}}]);return p}(c);b.__decorate([f.property({readOnly:!0})],c.prototype,"parsedUrl",null);b.__decorate([f.property()],c.prototype,"requestOptions",void 0);b.__decorate([f.property({type:String})],c.prototype,"url",void 0);return c=b.__decorate([u.subclass("esri.tasks.Task")],c)})},"esri/views/View":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Map ../TimeExtent ../core/Accessor ../core/Collection ../core/CollectionFlattener ../core/Error ../core/Evented ../core/HandleOwner ../core/Loadable ../core/Logger ../core/maybe ../core/Promise ../core/promiseUtils ../core/scheduling ../core/watchUtils ../core/accessorSupport/decorators/aliasOf ../core/has ../core/accessorSupport/ensureType ../core/jsonMap ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/subclass ../geometry/Extent ../geometry/HeightModelInfo ../geometry/SpatialReference ../geometry/support/spatialReferenceUtils ../support/GraphicsCollection ./BasemapView ./LayerViewManager ./Magnifier ./RefreshManager ./ToolViewManager ./input/Input ./input/ViewEvents ./navigation/Navigation ./support/DefaultsFromMap".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r,z,E,F,G,N,K,I,J,L,Q,W,V,P,X){var U;const Z=p.getLogger("esri.views.View");f=U=function(oa){function xa(fa){var ia=oa.call(this,fa)||this;ia._userSpatialReference=null;ia._cursor=null;ia.allLayerViews=new q({getCollections:()=>{var da,ea,la;return[null==(da=ia.basemapView)?void 0:da.baseLayerViews,null==(ea=ia.groundView)?void 0:ea.layerViews,ia.layerViews,null==(la=ia.basemapView)?void 0:la.referenceLayerViews]},getChildrenFunction:da=>da.layerViews});
ia.groundView=null;ia.animation=null;ia.basemapView=null;ia.defaultsFromMap=new X({view:a._assertThisInitialized(ia)});ia.fatalError=null;ia.extent=null;ia.graphics=new N["default"];ia.navigating=!1;ia.layerViews=new k;ia.magnifier=new J;ia.padding={left:0,top:0,right:0,bottom:0};ia.ready=!1;ia.spatialReferenceWarningDelay=1E3;ia.supportsGround=!0;ia.timeExtent=null;ia.type=null;ia.scale=null;ia.updating=!1;ia.initialExtentRequired=!0;ia.renderContext=null;ia.input=new W;ia.navigation=new P;ia.layerViewManager=
null;ia.refreshManager=null;ia.isHeightModelInfoRequired=!1;ia.width=null;ia.height=null;ia.resizing=!1;ia.suspended=!1;ia.viewEvents=new V.ViewEvents(a._assertThisInitialized(ia));ia.persistableViewModels=new k;ia._isValid=!1;ia._readyCycleForced=!1;ia.handles.add(ia.watch("preconditionsReady",da=>{da?(ia._currentSpatialReference=ia.spatialReference,U.views.add(a._assertThisInitialized(ia))):(ia._currentSpatialReference=null,U.views.remove(a._assertThisInitialized(ia)));ia.notifyChange("spatialReference");
!da&&ia.ready?(ia.layerViewManager.clear(),ia.toolViewManager.detach(),ia._teardown()):da&&!ia.ready&&(ia._startup(),ia.toolViewManager.attach())},!0));return ia}a._inheritsLoose(xa,oa);var Ea=xa.prototype;Ea.initialize=function(){this.addResolvingPromise(this.validate().then(()=>{this._isValid=!0;return w.whenOnce(this,"ready")}));this.basemapView=new K.BasemapView({view:this});this.layerViewManager=new I({view:this,layerViewImporter:{importLayerView:ia=>this.importLayerView(ia),hasLayerViewModule:ia=>
this.hasLayerViewModule(ia)},supportsGround:this.supportsGround});this.refreshManager=new L({view:this});this.toolViewManager=new Q({view:this});this._resetInitialViewPropertiesFromContent();let fa;w.init(this.defaultsFromMap,"isSpatialReferenceDone",ia=>{const da=!!(this.map&&0<this.map.allLayers.length);if((!ia||this.spatialReference||!da)&&fa)fa=null;else if(ia&&!this.spatialReference&&da&&!fa){const ea=fa=h.after(this.spatialReferenceWarningDelay);fa.then(()=>{ea===fa&&Z.warn("#spatialReference",
"no spatial reference could be derived from the currently added map layers")}).catch(()=>{})}},!0)};Ea.destroy=function(){if(!this.destroyed){this.viewEvents.destroy();this.allLayerViews.destroy();this.navigation&&(this.navigation.destroy(),this._set("navigation",null));this.graphics.destroy();this.graphics=null;this.handles.remove("defaultsFromMap");this.defaultsFromMap.destroy();this._set("defaultsFromMap",null);this.toolViewManager.destroy();this.toolViewManager=null;this.refreshManager.destroy();
this.refreshManager=null;this.layerViewManager.destroy();this.layerViewManager=null;this.basemapView.destroy();this.basemapView=null;this.invalidate();this._emitter.clear();this.handles.removeAll();var fa=this.map;this.map=null;null==fa?void 0:fa.destroy()}};Ea._startup=function(){this._set("ready",!0)};Ea._teardown=function(){this._set("ready",!1)};Ea.whenReady=function(){return Promise.resolve(this)};Ea.toMap=function(){Z.error("#toMap()","Not implemented on this instance of View");return null};
Ea.whenLayerView=function(fa){return this.layerViewManager.whenLayerView(fa)};Ea.getDefaultSpatialReference=function(){return this.get("defaultsFromMap.spatialReference")};Ea.getDefaultHeightModelInfo=function(){return this.get("map.supportsHeightModelInfo")&&this.get("map.heightModelInfo")||this.get("defaultsFromMap.heightModelInfo")||null};Ea.importLayerView=function(fa){throw new v("importLayerView() not implemented");};Ea.hasLayerViewModule=function(fa){return!1};Ea.validate=function(){var fa=
a._asyncToGenerator(function*(){});return function(){return fa.apply(this,arguments)}}();Ea.invalidate=function(){this._isValid=!1};Ea.isSpatialReferenceSupported=function(fa,ia,da){return!0};Ea.isTileInfoRequired=function(){return!1};Ea.when=function(fa,ia){this.isResolved()&&!this.ready&&Z.warn("#when()",'Calling view.when() while the view is no longer ready but was already resolved once will resolve immediately. Use watchUtils.whenOnce(view, "ready").then(...) instead.');return oa.prototype.when.call(this,
fa,ia)};Ea.forceReadyCycle=function(){this.ready&&(this._readyCycleForced=!0,w.whenFalseOnce(this,"preconditionsReady",()=>this._readyCycleForced=!1))};Ea.createTool=function(fa,ia,da){return this.toolViewManager.createTool(fa,ia,da)};Ea.tryFatalErrorRecovery=function(){this.fatalError=null};Ea._resetInitialViewPropertiesFromContent=function(){if(this.defaultsFromMap){var fa=()=>this.defaultsFromMap&&this.defaultsFromMap.start();this.defaultsFromMap.reset();this._currentSpatialReference=null;this.notifyChange("spatialReference");
this.handles.remove("defaultsFromMap");this.handles.add([w.watch(this,"spatialReference",(ia,da)=>{G.equals(ia,da)||fa()}),w.watch(this,"initialExtentRequired",fa),n.schedule(fa)],"defaultsFromMap")}};a._createClass(xa,[{key:"heightModelInfo",get:function(){return this.getDefaultHeightModelInfo()}},{key:"interacting",get:function(){return this.navigating}},{key:"preconditionsReady",get:function(){return!!(!this.fatalError&&this._isValid&&!this._readyCycleForced&&this.map&&(!m.isLoadable(this.map)||
this.map.loaded)&&0!==this.width&&0!==this.height&&this.spatialReference&&this.isSpatialReferenceSupported(this.spatialReference)&&(this._currentSpatialReference||!this.initialExtentRequired||this.initialExtent||this.defaultsFromMap&&this.defaultsFromMap.isSpatialReferenceDone)&&this.defaultsFromMap&&this.defaultsFromMap.isTileInfoDone)}},{key:"map",set:function(fa){var ia;const da=this._get("map");fa!==da&&(null!=(ia=fa)&&ia.destroyed&&(Z.warn("#map","The provided map is already destroyed",{map:fa}),
fa=null),m.isLoadable(fa)&&fa.load().catch(()=>{}),this.initialized&&(this.forceReadyCycle(),this._resetInitialViewPropertiesFromContent()),this._set("map",fa))}},{key:"spatialReference",get:function(){let fa=this._userSpatialReference||this._currentSpatialReference||this.getDefaultSpatialReference()||null;fa&&this.isHeightModelInfoRequired&&this.defaultsFromMap&&(fa=fa.clone(),fa.vcsWkid=this.defaultsFromMap.vcsWkid,fa.latestVcsWkid=this.defaultsFromMap.latestVcsWkid);return fa},set:function(fa){this._userSpatialReference=
fa;this._set("spatialReference",fa)}},{key:"stationary",get:function(){return!this.animation&&!this.navigating&&!this.resizing}},{key:"initialExtent",get:function(){return this.defaultsFromMap&&this.defaultsFromMap.extent}},{key:"cursor",get:function(){const fa=this.toolViewManager?this.toolViewManager.cursor:null;return e.isSome(fa)?fa:this._cursor||"default"},set:function(fa){this._cursor=fa;this.notifyChange("cursor")}},{key:"size",get:function(){return[this.width,this.height]}}]);return xa}(u.HandleOwnerMixin(t.EventedMixin(l.EsriPromiseMixin(f))));
f.views=new k;b.__decorate([x.aliasOf("toolViewManager.activeTool")],f.prototype,"activeTool",void 0);b.__decorate([B.property({readOnly:!0})],f.prototype,"allLayerViews",void 0);b.__decorate([B.property()],f.prototype,"groundView",void 0);b.__decorate([B.property()],f.prototype,"animation",void 0);b.__decorate([B.property()],f.prototype,"basemapView",void 0);b.__decorate([B.property()],f.prototype,"defaultsFromMap",void 0);b.__decorate([B.property()],f.prototype,"fatalError",void 0);b.__decorate([B.property({type:z})],
f.prototype,"extent",void 0);b.__decorate([B.property(N.graphicsCollectionProperty())],f.prototype,"graphics",void 0);b.__decorate([B.property({readOnly:!0,type:E,dependsOn:["map.heightModelInfo?","defaultsFromMap.heightModelInfo"]})],f.prototype,"heightModelInfo",null);b.__decorate([B.property({readOnly:!0})],f.prototype,"interacting",null);b.__decorate([B.property({readOnly:!0})],f.prototype,"navigating",void 0);b.__decorate([B.property({readOnly:!0,dependsOn:"fatalError _isValid _readyCycleForced map map.loaded? width height spatialReference _currentSpatialReference initialExtentRequired initialExtent defaultsFromMap.isSpatialReferenceDone defaultsFromMap.isTileInfoDone".split(" ")})],
f.prototype,"preconditionsReady",null);b.__decorate([B.property({type:k,readOnly:!0})],f.prototype,"layerViews",void 0);b.__decorate([B.property({type:J})],f.prototype,"magnifier",void 0);b.__decorate([B.property({value:null,type:c})],f.prototype,"map",null);b.__decorate([B.property()],f.prototype,"padding",void 0);b.__decorate([B.property({readOnly:!0})],f.prototype,"ready",void 0);b.__decorate([B.property({type:F})],f.prototype,"spatialReference",null);b.__decorate([B.property()],f.prototype,"spatialReferenceWarningDelay",
void 0);b.__decorate([B.property()],f.prototype,"stationary",null);b.__decorate([B.property({readOnly:!0})],f.prototype,"supportsGround",void 0);b.__decorate([B.property({type:g})],f.prototype,"timeExtent",void 0);b.__decorate([x.aliasOf("toolViewManager.tools")],f.prototype,"tools",void 0);b.__decorate([B.property()],f.prototype,"toolViewManager",void 0);b.__decorate([B.property({readOnly:!0})],f.prototype,"type",void 0);b.__decorate([B.property({type:Number})],f.prototype,"scale",void 0);b.__decorate([B.property({readOnly:!0})],
f.prototype,"updating",void 0);b.__decorate([B.property({readOnly:!0})],f.prototype,"initialExtentRequired",void 0);b.__decorate([B.property({readOnly:!0,type:z})],f.prototype,"initialExtent",null);b.__decorate([B.property()],f.prototype,"cursor",null);b.__decorate([B.property()],f.prototype,"renderContext",void 0);b.__decorate([B.property({readOnly:!0})],f.prototype,"input",void 0);b.__decorate([B.property({type:P,nonNullable:!0})],f.prototype,"navigation",void 0);b.__decorate([B.property()],f.prototype,
"layerViewManager",void 0);b.__decorate([B.property()],f.prototype,"width",void 0);b.__decorate([B.property()],f.prototype,"height",void 0);b.__decorate([B.property({readOnly:!0})],f.prototype,"resizing",void 0);b.__decorate([B.property({value:null,readOnly:!0})],f.prototype,"size",null);b.__decorate([B.property({readOnly:!0})],f.prototype,"suspended",void 0);b.__decorate([B.property({readOnly:!0})],f.prototype,"viewEvents",void 0);b.__decorate([B.property({readOnly:!0})],f.prototype,"persistableViewModels",
void 0);b.__decorate([B.property()],f.prototype,"_isValid",void 0);b.__decorate([B.property()],f.prototype,"_readyCycleForced",void 0);b.__decorate([B.property()],f.prototype,"_currentSpatialReference",void 0);return f=U=b.__decorate([r.subclass("esri.views.View")],f)})},"esri/support/GraphicsCollection":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Graphic ../core/Collection ../core/collectionUtils ../core/has ../core/Logger ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/jsonMap ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){const e=f.ofType(g);v.getLogger("esri.support.GraphicsCollection");a.GraphicsCollection=function(l){function h(w){var x=l.call(this,w)||this;x.on("before-add",C=>{C.item||C.preventDefault()});x.on("after-add",C=>x._own(C.item));x.on("after-remove",({item:C})=>{C.layer=null});return x}b._inheritsLoose(h,l);var n=h.prototype;n.destroy=function(){this._unownAll()};n._createNewInstance=function(w){return new e(w)};n._ownAll=function(){this.items.forEach(w=>this._own(w))};
n._own=function(w){w.layer&&"remove"in w.layer&&w.layer!==this.owner&&w.layer.remove(w);w.layer=this.owner};n._unownAll=function(){this.items.forEach(w=>this._unown(w))};n._unown=function(w){w.layer===this.owner&&(w.layer=null)};b._createClass(h,[{key:"owner",get:function(){return this._get("owner")},set:function(w){w!==this._get("owner")&&(this._unownAll(),this._set("owner",w),this._ownAll())}}]);return h}(e);c.__decorate([t.property()],a.GraphicsCollection.prototype,"owner",null);a.GraphicsCollection=
c.__decorate([p.subclass("esri.support.GraphicsCollection")],a.GraphicsCollection);c=a.GraphicsCollection;a.castGraphicsCollection=function(l){if(l=u.ensureType(a.GraphicsCollection,l))l.owner=this;return l};a.default=c;a.graphicsCollectionProperty=(l="graphics")=>({type:a.GraphicsCollection,cast:k.castForReferenceSetter,set(h){h=k.referenceSetter(h,this._get(l),a.GraphicsCollection);h.owner=this;this._set(l,h)}});Object.defineProperty(a,"__esModule",{value:!0})})},"esri/views/BasemapView":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/Collection ../core/watchUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){a.BasemapView=function(e){function l(h){h=e.call(this,h)||this;h.view=null;h.baseLayerViews=new f;h.referenceLayerViews=new f;h._loadingHandle=k.init(b._assertThisInitialized(h),"view.map.basemap",n=>{n&&n.load().catch(()=>{})});return h}b._inheritsLoose(l,e);l.prototype.destroy=function(){this._set("view",null);this._loadingHandle&&(this._loadingHandle.remove(),this._loadingHandle=null)};b._createClass(l,[{key:"suspended",get:function(){return this.view?this.view.suspended:
!0}},{key:"updating",get:function(){return this.view&&this.view.suspended?!1:!(!(this.view&&this.view.map&&this.view.map.basemap)||this.view.map.basemap.loaded)}}]);return l}(g);c.__decorate([q.property({constructOnly:!0})],a.BasemapView.prototype,"view",void 0);c.__decorate([q.property({readOnly:!0})],a.BasemapView.prototype,"baseLayerViews",void 0);c.__decorate([q.property({readOnly:!0})],a.BasemapView.prototype,"referenceLayerViews",void 0);c.__decorate([q.property({readOnly:!0})],a.BasemapView.prototype,
"suspended",null);c.__decorate([q.property({type:Boolean,readOnly:!0})],a.BasemapView.prototype,"updating",null);a.BasemapView=c.__decorate([p.subclass("esri.views.BasemapView")],a.BasemapView);Object.defineProperty(a,"__esModule",{value:!0})})},"esri/views/LayerViewManager":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/CollectionFlattener ../core/Error ../core/HandleOwner ../core/Logger ../core/MapUtils ../core/maybe ../core/promiseUtils ../core/scheduling ../core/watchUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/jsonMap ../core/accessorSupport/decorators/subclass ./support/WatchUpdatingTracking".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w){const x=k.getLogger("esri.views.LayerViewManager");let C=function(){function D(B,r,z){this.layer=B;this.view=r;this.layerViewImporter=z;this._controller=t.createAbortController();this._deferred=t.createDeferred();this.done=this._started=!1;t.onAbort(this._controller.signal,()=>{const E=new g("cancelled:layerview-create","layerview creation cancelled",{layer:B});this._deferred.reject(E)})}var A=D.prototype;A.destroy=function(){this._controller.abort();const {layerView:B}=
this;if(B){var {layer:r,view:z}=this;r.emit("layerview-destroy",{view:z,layerView:B});z.emit("layerview-destroy",{layer:r,layerView:B});this.done=!0;this.layerViewImporter=this.view=this.layerView=this.layer=null}};A.start=function(){var B=a._asyncToGenerator(function*(){if(!this._started){this._started=!0;var {_controller:{signal:r},layer:z,view:E}=this;this._map=E.map;try{var F,G;yield z.load({signal:r});"prefetchResources"in z&&(yield z.prefetchResources({signal:r}));let K;if(z.createLayerView)K=
yield z.createLayerView(E,{signal:r});else{if(!this.layerViewImporter.hasLayerViewModule(z))throw new g("layer:view-not-supported","No layerview implementation was found");var N=yield this.layerViewImporter.importLayerView(z);t.throwIfAborted(r);K="default"in N?new N.default({layer:z,view:E}):new N({layer:z,view:E})}let I;N=()=>{I=v.removeMaybe(I);K.destroyed||K.destroy();K.layer=null;K.parent=null;K.view=null;this.done=!0};I=t.onAbort(r,N);t.throwIfAborted(r);try{yield K.when()}catch(J){throw N(),
J;}(null==(F=this._map)?0:null==(G=F.allLayers)?0:G.includes(z))?(this.layerView=K,z.emit("layerview-create",{view:E,layerView:K}),E.emit("layerview-create",{layer:z,layerView:K}),this.done=!0,this._deferred.resolve(K)):(N(),this._deferred.reject(new g("view:no-layerview-for-layer","The layer has been removed from the map",{layer:z})))}catch(K){z.emit("layerview-create-error",{view:E,error:K}),E.emit("layerview-create-error",{layer:z,error:K}),this.done=!0,this._deferred.reject(new g("layerview:create-error",
"layerview creation failed",{layer:z,error:K}))}}});return function(){return B.apply(this,arguments)}}();a._createClass(D,[{key:"promise",get:function(){return this._deferred.promise}}]);return D}();f=function(D){function A(r){var z=D.call(this,r)||this;z._layerLayerViewInfoMap=new Map;z._watchUpdatingTracking=new w.WatchUpdatingTracking;z.supportsGround=!0;z._preloadLayerViewModules=()=>{var E;const F=null==(E=z.view.map)?void 0:E.allLayers;if(F)for(const G of F)z.layerViewImporter.hasLayerViewModule(G)&&
z.layerViewImporter.importLayerView(G)};z._reschedule=()=>{v.isNone(z._workPromise)&&(z._workPromise=t.createDeferred());z.handles.remove("reschedule");z.handles.add(u.schedule(z._doWork),"reschedule");return z._workPromise.promise};z._doWork=()=>{var E,F,G,N=z.view.map;z._map!==N&&(z.clear(),z._map=N);if(v.isNone(z._workPromise))z.notifyChange("updating");else{z.handles.remove("reschedule");z.handles.remove("collection-change");var K=new c({getCollections:()=>z._rootCollectionNames.map(I=>z.get(I)),
getChildrenFunction:I=>I&&"layers"in I?I.layers:null});for(const I of K)z._createLayerView(I);z._refreshCollections();for(const [I,J]of z._layerLayerViewInfoMap)K.includes(I)||(z._layerLayerViewInfoMap.delete(J.layer),J.destroy());K=K.filter(I=>"group"===I.type).map(I=>I.layers);N=[null==N?void 0:null==(E=N.ground)?void 0:E.layers,null==N?void 0:null==(F=N.basemap)?void 0:F.baseLayers,null==N?void 0:null==(G=N.basemap)?void 0:G.referenceLayers,null==N?void 0:N.layers,...K].filter(I=>!!I);z.handles.add(N.map(I=>
z._watchUpdatingTracking.addOnCollectionChange(I,z._reschedule)),"collection-change");z._workPromise.resolve();z._workPromise=null}};return z}a._inheritsLoose(A,D);var B=A.prototype;B.initialize=function(){this.handles.add([m.on(this,"view.map.allLayers","change",this._preloadLayerViewModules,this._preloadLayerViewModules),m.init(this.view,["map.basemap","map.ground","map.layers","ready"],this._reschedule,!0)]);this._preloadLayerViewModules();this._reschedule()};B.destroy=function(){this.clear();
this._watchUpdatingTracking.destroy();this._map=null};B.clear=function(){if(!this.destroyed){for(const r of this._layerLayerViewInfoMap.values())r.destroy();this._layerLayerViewInfoMap.clear();this._refreshCollections()}};B.whenLayerView=function(){var r=a._asyncToGenerator(function*(z){yield this._reschedule();if(!this._layerLayerViewInfoMap.has(z))throw new g("view:no-layerview-for-layer","No layerview has been found for the layer",{layer:z});return this._layerLayerViewInfoMap.get(z).promise});
return function(z){return r.apply(this,arguments)}}();B._refreshCollections=function(){for(const [r,z]of this._layersToLayerViews)this._populateLayerViewsOwners(this.get(r),this.get(z),this.view);this.notifyChange("updating");this.notifyChange("updatingRemaining")};B._populateLayerViewsOwners=function(r,z,E){if(r&&z){var F=0;for(const G of r)(r=this._layerLayerViewInfoMap.get(G))&&r.layerView&&(r=r.layerView,r.layer=G,r.parent=E,z.getItemAt(F)!==r&&z.splice(F,0,r),G.layers&&this._populateLayerViewsOwners(G.layers,
r.layerViews,r),F+=1);F<z.length&&z.splice(F,z.length)}else z&&z.removeAll()};B._createLayerView=function(r){if(this._layerLayerViewInfoMap.has(r))this.view.ready&&this._layerLayerViewInfoMap.get(r).start();else{r.load().catch(()=>{});this.layerViewImporter.hasLayerViewModule(r)&&this.layerViewImporter.importLayerView(r);var z=new C(r,this.view,this.layerViewImporter);z.promise.then(()=>this._refreshCollections(),E=>{if(!E||!t.isAbortError(E)&&"cancelled:layerview-create"!==E.name){var F,G;x.error(`Failed to create layerview for layer title:'${null!=
(F=r.title)?F:"no title"}', id:'${null!=(G=r.id)?G:"no id"}' of type '${r.type}'.`,{layer:r,error:E})}this._refreshCollections()});this._layerLayerViewInfoMap.set(r,z);this.view.ready&&z.start()}this.notifyChange("updating");this.notifyChange("updatingRemaining")};a._createClass(A,[{key:"_layersToLayerViews",get:function(){const r=[["view.map.basemap.baseLayers","view.basemapView.baseLayerViews"],["view.map.layers","view.layerViews"],["view.map.basemap.referenceLayers","view.basemapView.referenceLayerViews"]];
this.supportsGround&&r.push(["view.map.ground.layers","view.groundView.layerViews"]);return new Map(r)}},{key:"_rootCollectionNames",get:function(){return Array.from(this._layersToLayerViews.keys())}},{key:"updating",get:function(){return v.isSome(this._workPromise)||this._watchUpdatingTracking.updating||q.someMap(this._layerLayerViewInfoMap,r=>!r.done)}},{key:"updatingRemaining",get:function(){let r=0;for(const z of this._layerLayerViewInfoMap.values())z.done||++r;return r}}]);return A}(f.HandleOwner);
b.__decorate([p.property()],f.prototype,"_workPromise",void 0);b.__decorate([p.property({readOnly:!0})],f.prototype,"_watchUpdatingTracking",void 0);b.__decorate([p.property({readOnly:!0})],f.prototype,"_layersToLayerViews",null);b.__decorate([p.property({readOnly:!0})],f.prototype,"_rootCollectionNames",null);b.__decorate([p.property()],f.prototype,"layerViewImporter",void 0);b.__decorate([p.property()],f.prototype,"supportsGround",void 0);b.__decorate([p.property({readOnly:!0})],f.prototype,"updating",
null);b.__decorate([p.property({readOnly:!0})],f.prototype,"updatingRemaining",null);b.__decorate([p.property({constructOnly:!0})],f.prototype,"view",void 0);return f=b.__decorate([n.subclass("esri.views.LayerViewManager")],f)})},"esri/core/MapUtils":function(){define(["exports"],function(a){a.findInMap=function(b,c){for(const [g,f]of b)if(c(f,g))return f;return null};a.someMap=function(b,c){for(const [g,f]of b)if(c(f,g))return!0;return!1};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/views/Magnifier":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/screenUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u){c=function(m){function p(e){e=m.call(this,e)||this;e.factor=1.5;e.offset=g.createScreenPoint(0,0);e.position=null;e.size=120;e.maskUrl=null;e.maskEnabled=!0;e.overlayUrl=null;e.overlayEnabled=!0;e.visible=!0;return e}a._inheritsLoose(p,m);a._createClass(p,[{key:"version",get:function(){this.commitProperty("factor");this.commitProperty("offset");this.commitProperty("position");this.commitProperty("visible");this.commitProperty("size");this.commitProperty("maskUrl");this.commitProperty("maskEnabled");
this.commitProperty("overlayUrl");this.commitProperty("overlayEnabled");return(this._get("version")||0)+1}}]);return p}(c);b.__decorate([f.property({type:Number})],c.prototype,"factor",void 0);b.__decorate([f.property({nonNullable:!0})],c.prototype,"offset",void 0);b.__decorate([f.property()],c.prototype,"position",void 0);b.__decorate([f.property({type:Number,range:{min:0}})],c.prototype,"size",void 0);b.__decorate([f.property()],c.prototype,"maskUrl",void 0);b.__decorate([f.property()],c.prototype,
"maskEnabled",void 0);b.__decorate([f.property()],c.prototype,"overlayUrl",void 0);b.__decorate([f.property()],c.prototype,"overlayEnabled",void 0);b.__decorate([f.property({readOnly:!0})],c.prototype,"version",null);b.__decorate([f.property({type:Boolean})],c.prototype,"visible",void 0);return c=b.__decorate([u.subclass("esri.views.Magnifier")],c)})},"esri/views/RefreshManager":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Evented ../core/Handles ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass ./layers/RefreshableLayerView".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){c=function(p){function e(){var h=p.apply(this,arguments)||this;h._handles=new g;h._currentTick=0;return h}a._inheritsLoose(e,p);var l=e.prototype;l.initialize=function(){this._handles.add([this.view.allLayerViews.on("after-changes",()=>{this.notifyChange("tickInterval");this._handles.remove("layerViewsUpdating");this._handles.add(this._getLayerViewHandles(),"layerViewsUpdating")}),this.watch("tickInterval",()=>this._restartTicking()),this.watch("view.ready",()=>this._restartTicking())]);
this._restartTicking()};l.destroy=function(){this._handles&&(this._handles.destroy(),this._handles=null,this._intervalID&&clearInterval(this._intervalID),this._currentTick=0)};l._restartTicking=function(){this._currentTick=0;this._intervalID&&clearInterval(this._intervalID);this.get("view.ready")&&this.tickInterval&&(this._intervalID=setInterval(()=>{const h=Date.now();this._currentTick+=this.tickInterval;this.view.allLayerViews.forEach(n=>{if(m.isRefreshableLayerView(n)){const w=Math.round(6E4*n.refreshInterval),
x=0===this._currentTick%w,C=5400>h-n.refreshTimestamp;w&&x&&!C&&(n.refresh(h),this.emit("refresh",{layerView:n,timestamp:h,trigger:"interval"}))}})},this.tickInterval))};l._getLayerViewHandles=function(){const h=[],n=()=>this.notifyChange("tickInterval");this.view.allLayerViews.forEach(w=>{m.isRefreshableLayerView(w)&&w.layer&&h.push(w.watch("refreshInterval",n),w.layer.on("refresh",()=>{const x=Date.now();w.refresh(x);this.emit("refresh",{layerView:w,timestamp:x,trigger:"layer-refresh"})}))});return h};
l._getCommonInterval=function(h){const n=(w,x)=>isNaN(w)||isNaN(x)?0:0>=x?w:n(x,w%x);return h.toArray().reduce((w,x)=>n(Math.round(6E4*x.refreshInterval),w),0)};a._createClass(e,[{key:"tickInterval",get:function(){const h=this.view.allLayerViews.filter(n=>m.isRefreshableLayerView(n));return this._getCommonInterval(h)}}]);return e}(c.EventedAccessor);b.__decorate([f.property()],c.prototype,"view",void 0);b.__decorate([f.property({readOnly:!0})],c.prototype,"tickInterval",null);return c=b.__decorate([u.subclass("esri.views.RefreshManager")],
c)})},"esri/views/layers/RefreshableLayerView":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Logger ../../core/promiseUtils ../../core/accessorSupport/decorators/aliasOf ../../core/has ../../core/accessorSupport/ensureType ../../core/jsonMap ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,g,f,k,q,v,t,u,m){q=p=>{p=function(e){function l(){var h=e.apply(this,arguments)||this;
h.refreshTimestamp=null;h.refreshDebounced=f.debounce(function(){var n=b._asyncToGenerator(function*(w,x){let C;"number"===typeof w?C=w:(C=Date.now(),x=w);h._set("refreshTimestamp",C);h.doRefresh&&(yield h.doRefresh(x).catch(D=>{f.isAbortError(D)||g.getLogger(h.declaredClass).error(D)}))});return function(w,x){return n.apply(this,arguments)}}(),2E3);return h}b._inheritsLoose(l,e);l.prototype.refresh=function(h=Date.now()){this._set("refreshTimestamp",h);this.doRefresh&&this.doRefresh().catch(n=>{f.isAbortError(n)||
g.getLogger(this.declaredClass).error(n)})};return l}(p);c.__decorate([u.property()],p.prototype,"layer",void 0);c.__decorate([k.aliasOf("layer.refreshInterval")],p.prototype,"refreshInterval",void 0);c.__decorate([u.property({readOnly:!0})],p.prototype,"refreshTimestamp",void 0);return p=c.__decorate([m.subclass("esri.layers.mixins.RefreshableLayerView")],p)};a.RefreshableLayerView=q;a.default=q;a.isRefreshableLayerView=function(p){return"refresh"in p};Object.defineProperty(a,"__esModule",{value:!0})})},
"esri/views/ToolViewManager":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/Collection ../core/HandleOwner ../core/Logger ../core/maybe ../core/promiseUtils ../core/watchUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/jsonMap ../core/accessorSupport/decorators/subclass ./input/InputManager ./input/ViewEvents ./interactive/interactiveToolUtils ./interactive/ToolViewManagerManipulatorState".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x){const C=k.getLogger("esri.views.ToolViewManager");f=function(D){function A(r){var z=D.call(this,r)||this;z._creatingTool=null;z._manipulatorState=new x;z.tools=w.newToolCollection();z.cursor=null;z._forEachTool=E=>{if(!q.isSome(z._creatingTool)||!E(z._creatingTool))for(const F of z.tools.items)if(E(F))break};return z}a._inheritsLoose(A,D);var B=A.prototype;B.initialize=function(){this.handles.add([this.view.on(n.eventTypes,r=>{this._handleInputEvent(r)},
h.ViewEventPriorities.TOOL),this.tools.on("before-add",r=>{const z=r.item;null==z||this.tools.includes(z)?r.preventDefault():null==z.created||z.created||(C.error("tools","Tool can not be added to view before it has been created"),r.preventDefault())}),this.tools.on("before-remove",({item:r})=>{this._manipulatorState.clearPointers(r,this._forEachTool)}),this.tools.on("change",()=>{this._refreshToolWatchers()})])};B.destroy=function(){this._forEachTool(r=>r.destroy())};B.createTool=function(){var r=
a._asyncToGenerator(function*(z,E,F){var G=this;const {abortHandle:N,tool:K}=yield this.updatingHandles.addPromise(a._asyncToGenerator(function*(){yield G.view.whenReady();v.throwIfAborted(F,"Tool creation was interrupted by another tool being created");const I=v.onAbort(F,()=>G.activeTool=null);var J=w.evaluateToolConstructorArguments(E);J=new z({...J,view:G.view});yield J.whenCreationStarted();v.throwIfAborted(F,"Tool creation was interrupted by another tool being created");return{abortHandle:I,
tool:J}})());this._rejectCreatingTool("Tool creation was interrupted by another tool being created");this._creatingTool=K;K.attach();this._refreshToolWatchers();w.setActive(K,!0);yield K.when();q.isSome(N)&&N.remove();this._creatingTool=null;v.throwIfAborted(F,"Tool creation was interrupted by another tool being created");this.tools.add(K);K instanceof c&&null!=K.completed&&t.whenOnce(K,"completed").then(()=>{w.setActive(K,!1)});return K});return function(z,E,F){return r.apply(this,arguments)}}();
B.attach=function(){this._forEachTool(r=>r.attach());"3d"===this.view.type?this.handles.add([this.view.state.watch("camera",()=>{this.forEachManipulator(r=>{if(null!=r.onViewChange)r.onViewChange()})}),this.view.elevationProvider.on("elevation-change",r=>{this.forEachManipulator(z=>{if(null!=z.onElevationChange)z.onElevationChange(r)})})],"manipulators"):this.handles.add(this.view.watch("extent",()=>{this.forEachManipulator(r=>{if(null!=r.onViewChange)r.onViewChange()})}))};B.detach=function(){this.activeTool=
null;this._forEachTool(r=>{r.detach();r.destroy()});this.tools.removeAll();this.handles.remove("manipulators")};B.forEachManipulator=function(r){this._forEachTool(z=>{z.manipulators&&z.manipulators.forEach(({manipulator:E})=>r(E,z))})};B._handleInputEvent=function(r){let z=!1;const E={...r,stopPropagation:()=>{z=!0;r.stopPropagation()}};q.isSome(this.activeTool)?this.activeTool.handleInputEvent&&this.activeTool.handleInputEvent(E):this._forEachTool(F=>{!z&&!1!==F.visible&&F.handleInputEvent&&F.handleInputEvent(E)});
!z&&"key-down"===r.type&&"Escape"===r.key&&this.activeTool&&(r.stopPropagation(),this.activeTool=null);this._manipulatorState.handleInputEvent(E,{forEachTool:this._forEachTool,activeTool:this.activeTool,setActiveTool:F=>{this.activeTool=F},creatingTool:this._creatingTool,view:this.view});!z&&q.isSome(this.activeTool)&&this.activeTool.handleInputEventAfter&&this.activeTool.handleInputEventAfter(E);this._manipulatorState.handleHoverEvent(E,this._forEachTool);this._updateCursor()};B._refreshToolWatchers=
function(){this.handles.remove("tools");this._forEachTool(r=>{if(r instanceof c){const z=t.watch(r,["cursor","visible","editable"],()=>{w.areToolManipulatorsEditable(r)||this._manipulatorState.clearPointers(r,this._forEachTool);this._updateCursor()});this.handles.add(z,"tools")}r.manipulators&&this.handles.add(r.manipulators.on("change",z=>{z.removed.forEach(({id:E})=>{this._manipulatorState.clearPointers(r,this._forEachTool,!0,E)});this._manipulatorState.updateHoveredStateFromKnownPointers(this._forEachTool);
this._updateCursor()}),"tools")});this._manipulatorState.updateHoveredStateFromKnownPointers(this._forEachTool);this._updateCursor()};B._updateCursor=function(){let r=null;this._forEachTool(z=>null!=z.cursor&&!1!==z.visible?(r=z.cursor,!0):!1);r||(r=this._manipulatorState.cursor);this._get("cursor")!==r&&this._set("cursor",r)};B._rejectCreatingTool=function(r){const z=this._creatingTool;q.isNone(z)||(this._manipulatorState.clearPointers(z,this._forEachTool),z.rejectCreation&&z.rejectCreation(v.createAbortError(r)),
w.setActive(z,!1),"destroyed"!==z.toolState&&z.destroy(),this._creatingTool=null,this._refreshToolWatchers())};B._removeIncompleteTools=function(r){this.tools.filter(z=>(q.isNone(r)||z!==r)&&null!=z.completed&&!z.completed).forEach(z=>{this.tools.remove(z)})};a._createClass(A,[{key:"activeTool",set:function(r){q.isSome(r)&&!this.view.ready?C.error("#activeTool\x3d","cannot set active tool while view is not ready"):(w.swap(this,r,z=>{this._set("activeTool",z);this._removeIncompleteTools(r);this._forEachTool(E=>
{var F=q.isNone(this.activeTool)||E===this.activeTool;E.setEditableFlag&&E.setEditableFlag(1,F);F=w.areToolManipulatorsEditable(E);!q.isNone(this.activeTool)&&F||this._manipulatorState.clearPointers(E,this._forEachTool,!F)});this._updateCursor()}),this._creatingTool!==r&&this._rejectCreatingTool())}},{key:"updating",get:function(){return this.updatingHandles.updating||this.tools.some(r=>r.updating)}}]);return A}(f.HandleOwner);b.__decorate([u.property({constructOnly:!0,nonNullable:!0})],f.prototype,
"view",void 0);b.__decorate([u.property({value:null})],f.prototype,"activeTool",null);b.__decorate([u.property({readOnly:!0,type:g})],f.prototype,"tools",void 0);b.__decorate([u.property({readOnly:!0})],f.prototype,"cursor",void 0);b.__decorate([u.property({readOnly:!0})],f.prototype,"updating",null);return f=b.__decorate([l.subclass("esri.views.ToolViewManager")],f)})},"esri/views/input/InputManager":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/Logger ../../core/Queue ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./keys ./handlers/LatestPointerType".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){const l=f.getLogger("esri.views.input.InputManager");a.InputManager=function(w){function x(D){var A=w.call(this,D)||this;A._pointerCaptures=new Map;A._nameToGroup={};A._handlers=[];A._currentPropagation=null;A._updateDependenciesAfterPropagation=!1;A._sourceEvents=new Set;A._keyModifiers=new Set;A._activeKeyModifiers=new Set;A._stoppedPropagationEventIds=new Set;A.primaryKey=p.primaryKey;A.latestPointerType="mouse";A.test={timestamp:void 0,hasCurrentPropagation:()=>
!!A._currentPropagation};return A}b._inheritsLoose(x,w);var C=x.prototype;C.initialize=function(){this.eventSource.onEventReceived=this._onEventReceived.bind(this);this._installRecognizers()};C.destroy=function(){const D=Object.keys(this._nameToGroup);for(const A of D)this.uninstallHandlers(A);this._currentPropagation=this.eventSource=null};C.installHandlers=function(D,A,B=n.INTERNAL){if(this._nameToGroup[D])l.error("There is already an InputHandler group registered under the name `"+D+"`");else if(0===
A.length)l.error("Can't register a group of zero handlers");else{var r={name:D,handlers:A.map(z=>({handler:z,active:!0,removed:!1,priorityIndex:0,groupPriority:B,eventCallback:null,uninstallCallback:null}))};this._nameToGroup[D]=r;for(D=r.handlers.length-1;0<=D;D--){const z=r.handlers[D];this._handlers.push(z);z.handler.onInstall({updateDependencies:()=>{this.updateDependencies()},emit:(E,F,G,N,K)=>{this._emitInputEvent(z.priorityIndex+1,E,F,G,K,N)},setPointerCapture:(E,F)=>{this._setPointerCapture(r,
z,E,F)},setEventCallback:E=>{z.eventCallback=E},setUninstallCallback:E=>{z.uninstallCallback=E},refreshHasPendingInputs:()=>{this.notifyChange("hasPendingInputs")}})}this.updateDependencies()}};C.uninstallHandlers=function(D){const A=this._nameToGroup[D];A?(A.handlers.forEach(B=>{B.removed=!0;B.uninstallCallback()}),delete this._nameToGroup[D],this._currentPropagation?this._currentPropagation.needsHandlerGarbageCollect=!0:this._garbageCollectRemovedHandlers()):l.error("There is no InputHandler group registered under the name `"+
D+"`")};C.hasHandlers=function(D){return void 0!==this._nameToGroup[D]};C.updateDependencies=function(){if(this._currentPropagation)this._updateDependenciesAfterPropagation=!0;else{this._updateDependenciesAfterPropagation=!1;var D=new Set,A=new Set;this._handlersPriority=[];for(var B=this._handlers.length-1;0<=B;B--){var r=this._handlers[B];r.priorityIndex=B;this._handlersPriority.push(r)}this._handlersPriority=this._sortHandlersPriority(this._handlersPriority);for(B=this._handlersPriority.length-
1;0<=B;B--){r=this._handlersPriority[B];r.priorityIndex=B;let z=r.handler.hasSideEffects;if(!z)for(const E of r.handler.outgoingEventTypes)if(D.has(E)){z=!0;break}if(z)for(const E of r.handler.incomingEventMatches){D.add(E.eventType);for(const F of E.keyModifiers)p.isSystemModifier(F)||A.add(F)}r.active=z}this._sourceEvents=D;this._keyModifiers=A;0<this._pointerCaptures.size&&this._sourceEvents.add("pointer-capture-lost");0<this._keyModifiers.size&&(this._sourceEvents.add("key-down"),this._sourceEvents.add("key-up"));
this.eventSource&&(this.eventSource.activeEvents=this._sourceEvents)}};C._setLatestPointerType=function(D){this._set("latestPointerType",D)};C._onEventReceived=function(D,A){"pointer-capture-lost"===D&&this._pointerCaptures.delete(A.native.pointerId);this._updateKeyModifiers(D,A);this._emitInputEventFromSource(D,A,null!=this.test.timestamp?this.test.timestamp:A.native?A.native.timestamp:void 0,A.native?A.native.cancelable:void 0)};C._updateKeyModifiers=function(D,A){if(A){var B=!1,r=()=>{if(!B){const E=
new Set;this._activeKeyModifiers.forEach(F=>{E.add(F)});this._activeKeyModifiers=E;B=!0}},z=(E,F)=>{F&&!this._activeKeyModifiers.has(E)?(r(),this._activeKeyModifiers.add(E)):!F&&this._activeKeyModifiers.has(E)&&(r(),this._activeKeyModifiers.delete(E))};if("key-down"===D||"key-up"===D){const E=A.key;this._keyModifiers.has(E)&&z(E,"key-down"===D)}D=A.native;z("Alt",!(!D||!D.altKey));z("Ctrl",!(!D||!D.ctrlKey));z("Shift",!(!D||!D.shiftKey));z("Meta",!(!D||!D.metaKey));z("Primary",this._activeKeyModifiers.has(this.primaryKey))}};
C._installRecognizers=function(){this._latestPointerTypeHandler=new e.LatestPointerType(D=>this._setLatestPointerType(D));0<this.recognizers.length&&this.installHandlers("default",this.recognizers,n.INTERNAL);this.installHandlers("input-manager-logic",[this._latestPointerTypeHandler],n.INTERNAL)};C._setPointerCapture=function(D,A,B,r){D=D.name+"-"+A.priorityIndex;A=this._pointerCaptures.get(B.pointerId)||new Set;this._pointerCaptures.set(B.pointerId,A);r?(A.add(D),1===A.size&&this.eventSource&&this.eventSource.setPointerCapture(B,
!0)):A.has(D)&&(A.delete(D),0===A.size&&(this._pointerCaptures.delete(B.pointerId),this.eventSource&&this.eventSource.setPointerCapture(B,!1)))};C._garbageCollectRemovedHandlers=function(){this._handlers=this._handlers.filter(D=>!D.removed);this.updateDependencies()};C._emitInputEventFromSource=function(D,A,B,r){this._emitInputEvent(0,D,A,B,r)};C._emitInputEvent=function(D,A,B,r,z,E){r=void 0!==r?r:this._currentPropagation?this._currentPropagation.timestamp:performance.now();D={event:new h(A,B,r,
E||this._activeKeyModifiers,void 0!==z?z:!1),priorityIndex:D};this._currentPropagation?this._currentPropagation.events.push(D):this._doNewPropagation(D)};C._doNewPropagation=function(D){this._currentPropagation={events:new k,currentHandler:null,needsHandlerGarbageCollect:!1,timestamp:D.event.timestamp};this._currentPropagation.events.push(D);this._continuePropagation()};C._continuePropagation=function(){const D=this._currentPropagation;if(D){for(;0<this._currentPropagation.events.length;){const {event:A,
priorityIndex:B}=this._currentPropagation.events.pop(),r=A.data&&A.data.eventId;if(null==r||!this._stoppedPropagationEventIds.has(r))for(D.currentHandler=this._handlersPriority[B];D.currentHandler;){if(D.currentHandler.removed)D.needsHandlerGarbageCollect=!0;else{D.currentHandler.active&&!A.shouldStopPropagation()&&D.currentHandler.eventCallback(A);if(A.shouldStopPropagation()){null!=r&&this._stoppedPropagationEventIds.add(r);break}if(A.shouldPausePropagation(()=>this._continuePropagation())){this._pausePropagation({event:A,
priorityIndex:D.currentHandler.priorityIndex+1});return}}D.currentHandler=this._handlersPriority[D.currentHandler.priorityIndex+1]}}D.needsHandlerGarbageCollect&&this._garbageCollectRemovedHandlers();this.hasPendingInputs||this._stoppedPropagationEventIds.clear();this._currentPropagation=null;this._updateDependenciesAfterPropagation&&this.updateDependencies()}};C._pausePropagation=function(D){const A=new k;for(A.push(D);this._currentPropagation.events.length;)A.push(this._currentPropagation.events.pop());
this._currentPropagation.events=A;this._currentPropagation.currentHandler=null};C._compareHandlerPriority=function(D,A){if(D.handler.hasSideEffects!==A.handler.hasSideEffects)return D.handler.hasSideEffects?1:-1;if(D.groupPriority!==A.groupPriority)return D.groupPriority>A.groupPriority?-1:1;for(const B of D.handler.incomingEventMatches)for(const r of A.handler.incomingEventMatches){if(B.eventType!==r.eventType)continue;const z=B.keyModifiers.filter(E=>-1!==r.keyModifiers.indexOf(E));if(z.length===
B.keyModifiers.length!==(z.length===r.keyModifiers.length))return B.keyModifiers.length>r.keyModifiers.length?-1:1}return D.priorityIndex>A.priorityIndex?-1:1};C._sortHandlersPriority=function(D){const A=[];for(const B of D){for(D=0;D<A.length&&0<=this._compareHandlerPriority(B,A[D]);)D++;A.splice(D,0,B)}return A};b._createClass(x,[{key:"hasPendingInputs",get:function(){return this._handlers.some(D=>D.handler.hasPendingInputs)}},{key:"debug",get:function(){const D=A=>{const B=this._setPointerCapture;
this._setPointerCapture=()=>{};A();this._setPointerCapture=B};return{injectEvent:(A,B)=>{D(()=>{this._onEventReceived(A,B)})},disablePointerCapture:D}}}]);return x}(g);c.__decorate([q.property({readOnly:!0})],a.InputManager.prototype,"hasPendingInputs",null);c.__decorate([q.property()],a.InputManager.prototype,"eventSource",void 0);c.__decorate([q.property()],a.InputManager.prototype,"recognizers",void 0);c.__decorate([q.property({readOnly:!0})],a.InputManager.prototype,"latestPointerType",void 0);
a.InputManager=c.__decorate([m.subclass("esri.views.input.InputManager")],a.InputManager);let h=function(){function w(C,D,A,B,r){this.type=C;this.data=D;this.timestamp=A;this.modifiers=B;this.cancelable=r;this._propagationState=0;this._resumeCallback=null}var x=w.prototype;x.stopPropagation=function(){this._propagationState|=1};x.shouldStopPropagation=function(){return 0!==(this._propagationState&1)};x.async=function(C){this._propagationState|=2;const D=(A,B)=>{this._propagationState&=-3;const r=
this._resumeCallback;this._resumeCallback=null;r&&r();if(B)throw A;return A};return("function"===typeof C?C():C).then(A=>D(A,!1),A=>D(A,!0))};x.shouldPausePropagation=function(C){return this._propagationState&2?(this._resumeCallback=C,!0):!1};x.preventDefault=function(){this.data.native.preventDefault()};return w}();const n={DEFAULT:0,TOOL:-1,WIDGET:-2,INTERNAL:-3};a.ViewEventPriorities=n;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/Queue":function(){define(["../chunks/_rollupPluginBabelHelpers",
"./maybe"],function(a,b){return function(){function c(f=k=>k.values().next().value){this._peeker=f;this._items=new Set}var g=c.prototype;g.clear=function(){this._items.clear()};g.last=function(){if(0!==this._items.size){for(var f of this._items);return f}};g.peek=function(){if(0!==this._items.size)return this._peeker(this._items)};g.push=function(f){this.contains(f)||this._items.add(f)};g.contains=function(f){return this._items.has(f)};g.pop=function(){if(0!==this.length){var f=this.peek();this._items.delete(b.assumeNonNull(f));
return f}};g.popLast=function(){if(0!==this.length){var f=this.last();this._items.delete(b.assumeNonNull(f));return f}};g.remove=function(f){this._items.delete(f)};g.filter=function(f){this._items.forEach(k=>{f(k)||this._items.delete(k)});return this};a._createClass(c,[{key:"length",get:function(){return this._items.size}}]);return c}()})},"esri/views/input/keys":function(){define(["exports","../../core/events","../../core/has"],function(a,b,c){c=c("mac")?"Meta":"Ctrl";const g={8:"Backspace",9:"Tab",
13:"Enter",27:"Escape",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete"};for(var f=48;58>f;f++)g[f]=String.fromCharCode(f);for(f=1;25>f;f++)g[111+f]=`F${f}`;for(f=65;91>f;f++)g[f]=[String.fromCharCode(f+32),String.fromCharCode(f)];a.eventKey=function(k){if(void 0!==k.key)return b.eventKey(k);const q=g[k.keyCode];return Array.isArray(q)?k.shiftKey?q[1]:q[0]:q};a.isSystemModifier=function(k){switch(k){case "Ctrl":case "Alt":case "Shift":case "Meta":case "Primary":return!0}return!1};
a.primaryKey=c;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/views/input/handlers/LatestPointerType":function(){define(["exports","../../../chunks/_rollupPluginBabelHelpers","../InputHandler"],function(a,b,c){c=function(g){function f(k){var q=g.call(this,!0)||this;q._onChange=k;q._value="mouse";q.registerIncoming("pointer-down",v=>{q._setValue("touch"===v.data.native.pointerType?"touch":"mouse")});q._moveHandler=q.registerIncoming("pointer-move",v=>{q._setValue("touch"===v.data.native.pointerType?
"touch":"mouse")});q._moveHandler.pause();return q}b._inheritsLoose(f,g);f.prototype._setValue=function(k){k!==this._value&&("touch"===k?this._moveHandler.resume():this._moveHandler.pause(),this._value=k,this._onChange(k))};return f}(c.InputHandler);a.LatestPointerType=c;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/views/input/InputHandler":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers","../../core/Logger","./EventMatch"],function(a,b,c,g){const f=c.getLogger("esri.views.input.InputHandler");
c=function(){function v(u){this._manager=null;this._incoming={};this._outgoing={};this._outgoingEventTypes=this._incomingEventTypes=this._incomingEventMatches=null;this._hasSideEffects=u}var t=v.prototype;t.onInstall=function(u){this._manager?f.error("This InputHandler has already been registered with an InputManager"):(u.setEventCallback(m=>this._handleEvent(m)),u.setUninstallCallback(()=>this._onUninstall()),this._manager=u)};t.onUninstall=function(){};t.registerIncoming=function(u,m,p){"function"===
typeof m?(p=m,m=[]):m=m||[];u="string"===typeof u?new g.EventMatch(u,m):u;const e=()=>{this._incomingEventMatches=this._incomingEventTypes=null};m=l=>{const h=this._incoming[l.match.eventType];h&&(l=h.indexOf(l),h.splice(l,1),e(),this._manager&&this._manager.updateDependencies())};p=new k(u,p,{onPause:m,onRemove:m,onResume:l=>{const h=this._incoming[l.match.eventType];h&&-1===h.indexOf(l)&&(h.push(l),e(),this._manager&&this._manager.updateDependencies())}});m=this._incoming[u.eventType];m||(m=[],
this._incoming[u.eventType]=m);m.push(p);e();this._manager&&this._manager.updateDependencies();return p};t.registerOutgoing=function(u){if(this._outgoing[u])throw Error("There is already a callback registered for this outgoing InputEvent: "+u);const m=new q(u,{onEmit:(p,e,l,h)=>{this._manager.emit(p.eventType,e,l,h)},onRemove:p=>{delete this._outgoing[p.eventType];this._manager.updateDependencies()}});this._outgoing[u]=m;this._outgoingEventTypes=null;this._manager&&this._manager.updateDependencies();
return m};t.startCapturingPointer=function(u){this._manager.setPointerCapture(u,!0)};t.stopCapturingPointer=function(u){this._manager.setPointerCapture(u,!1)};t.refreshHasPendingInputs=function(){this._manager.refreshHasPendingInputs()};t._onUninstall=function(){this._manager?(this.onUninstall(),this._manager=null):f.error("This InputHandler is not registered with an InputManager")};t._handleEvent=function(u){const m=this._incoming[u.type];if(m)for(const p of m)if(p.match.matches(u)&&(p.callback(u),
u.shouldStopPropagation()))break};b._createClass(v,[{key:"incomingEventMatches",get:function(){if(!this._incomingEventMatches){this._incomingEventMatches=[];for(const u in this._incoming){const m=this._incoming[u];for(const p of m)this._incomingEventMatches.push(p.match)}}return this._incomingEventMatches}},{key:"incomingEventTypes",get:function(){this._incomingEventTypes||(this._incomingEventTypes=this.incomingEventMatches.map(u=>u.eventType));return this._incomingEventTypes}},{key:"outgoingEventTypes",
get:function(){this._outgoingEventTypes||(this._outgoingEventTypes=Object.keys(this._outgoing));return this._outgoingEventTypes}},{key:"hasSideEffects",get:function(){return this._hasSideEffects}},{key:"hasPendingInputs",get:function(){return!1}}]);return v}();let k=function(){function v(u,m,p){this.match=u;this._callback=m;this._handler=p}var t=v.prototype;t.pause=function(){this._handler.onPause(this)};t.resume=function(){this._handler.onResume(this)};t.remove=function(){this._handler.onRemove(this)};
b._createClass(v,[{key:"callback",get:function(){return this._callback}}]);return v}(),q=function(){function v(u,m){this.eventType=u;this._removed=!1;this._handler=m}var t=v.prototype;t.emit=function(u,m,p){if(!this._removed)this._handler.onEmit(this,u,m,p)};t.remove=function(){this._removed=!0;this._handler.onRemove(this)};return v}();a.InputHandler=c;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/views/input/EventMatch":function(){define(["exports"],function(a){let b=function(){function c(g,
f=[]){this.eventType=g;this.keyModifiers=f}c.prototype.matches=function(g){if(g.type!==this.eventType)return!1;if(0===this.keyModifiers.length)return!0;g=g.modifiers;for(const f of this.keyModifiers)if(!g.has(f))return!1;return!0};return c}();a.EventMatch=b;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/views/input/ViewEvents":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../core/has ../../core/mathUtils ../../core/screenUtils ./InputHandler ./InputManager".split(" "),
function(a,b,c,g,f,k,q){function v(e){return!!u[e]}function t(e){for(const l of e)if(!v(l))return!1;return!0}c="click double-click immediate-click immediate-double-click hold drag key-down key-up pointer-down pointer-move pointer-up pointer-drag mouse-wheel pointer-enter pointer-leave gamepad focus blur".split(" ");const u={};c.forEach(e=>{u[e]=!0});let m=function(){function e(h){this.handlers=new Map;this.counter=0;this.handlerCounts=new Map;this.view=h;this.inputManager=null}var l=e.prototype;l.connect=
function(h){h&&this.disconnect();this.inputManager=h;this.handlers.forEach(({handler:n,priority:w},x)=>this.inputManager.installHandlers(x,[n],w))};l.disconnect=function(){this.inputManager&&this.handlers.forEach((h,n)=>this.inputManager.uninstallHandlers(n));this.inputManager=null};l.destroy=function(){this.disconnect();this.handlers.clear();this.view=null};l.on=function(h,n,w,x){const C=Array.isArray(h)?h:h.split(",");if(!t(C))return C.some(v)&&console.error("Error: registering input events and other events on the view at the same time is not supported."),
null;if(Array.isArray(n))h=n;else{var D=n;h=[]}"function"===typeof w?D=w:x=w;x=null!=x?x:q.ViewEventPriorities.DEFAULT;const A=this.createUniqueGroupName();w=new p(this.view,C,h,D);this.handlers.set(A,{handler:w,priority:x});for(const B of C)D=this.handlerCounts.get(B)||0,this.handlerCounts.set(B,D+1);this.inputManager&&this.inputManager.installHandlers(A,[w],x);return{remove:()=>this.removeHandler(A,C)}};l.hasHandler=function(h){return!!this.handlerCounts.get(h)};l.removeHandler=function(h,n){if(this.handlers.has(h)){this.handlers.delete(h);
for(const w of n)n=this.handlerCounts.get(w),void 0===n?console.error("Trying to remove handler for event that has no handlers registered: ",w):1===n?this.handlerCounts.delete(w):this.handlerCounts.set(w,n-1)}this.inputManager&&this.inputManager.uninstallHandlers(h)};l.createUniqueGroupName=function(){this.counter+=1;return`viewEvents_${this.counter}`};return e}(),p=function(e){function l(n,w,x,C){var D=e.call(this,!0)||this;D.view=n;for(const A of w)switch(A){case "click":D.registerIncoming("click",
x,B=>C(D.wrapClick(B)));break;case "double-click":D.registerIncoming("double-click",x,B=>C(D.wrapDoubleClick(B)));break;case "immediate-click":D.registerIncoming("immediate-click",x,B=>C(D.wrapImmediateClick(B)));break;case "immediate-double-click":D.registerIncoming("immediate-double-click",x,B=>C(D.wrapImmediateDoubleClick(B)));break;case "hold":D.registerIncoming("hold",x,B=>C(D.wrapHold(B)));break;case "drag":D.registerIncoming("drag",x,B=>{(B=D.wrapDrag(B))&&C(B)});break;case "key-down":D.registerIncoming("key-down",
x,B=>C(D.wrapKeyDown(B)));break;case "key-up":D.registerIncoming("key-up",x,B=>C(D.wrapKeyUp(B)));break;case "pointer-down":D.registerIncoming("pointer-down",x,B=>C(D.wrapPointer(B,"pointer-down")));break;case "pointer-move":D.registerIncoming("pointer-move",x,B=>C(D.wrapPointer(B,"pointer-move")));break;case "pointer-up":D.registerIncoming("pointer-up",x,B=>C(D.wrapPointer(B,"pointer-up")));break;case "pointer-drag":D.registerIncoming("pointer-drag",x,B=>C(D.wrapPointerDrag(B)));break;case "mouse-wheel":D.registerIncoming("mouse-wheel",
x,B=>C(D.wrapMouseWheel(B)));break;case "pointer-enter":D.registerIncoming("pointer-enter",x,B=>C(D.wrapPointer(B,"pointer-enter")));break;case "pointer-leave":D.registerIncoming("pointer-leave",x,B=>C(D.wrapPointer(B,"pointer-leave")));break;case "gamepad":D.registerIncoming("gamepad",x,B=>{C(D.wrapGamepad(B))});break;case "focus":D.registerIncoming("focus",x,B=>{C(D.wrapFocus(B))});break;case "blur":D.registerIncoming("blur",x,B=>{C(D.wrapBlur(B))})}return D}b._inheritsLoose(l,e);var h=l.prototype;
h.wrapFocus=function(n){return{type:"focus",timestamp:n.timestamp,native:n.data.native,cancelable:n.cancelable,stopPropagation:()=>n.stopPropagation(),async:w=>n.async(w),preventDefault:()=>n.preventDefault()}};h.wrapBlur=function(n){return{type:"blur",timestamp:n.timestamp,native:n.data.native,cancelable:n.cancelable,stopPropagation:()=>n.stopPropagation(),async:w=>n.async(w),preventDefault:()=>n.preventDefault()}};h.wrapClick=function(n){const {pointerType:w,button:x,buttons:C,x:D,y:A,native:B,
eventId:r}=n.data,{cancelable:z,timestamp:E}=n,F=f.createScreenPoint(D,A),G=this.getMapPoint(D,A);return{type:"click",pointerType:w,button:x,buttons:C,x:D,y:A,native:B,timestamp:E,screenPoint:F,mapPoint:G,eventId:r,cancelable:z,stopPropagation:()=>n.stopPropagation(),async:N=>n.async(N),preventDefault:()=>n.preventDefault()}};h.wrapDoubleClick=function(n){const {pointerType:w,button:x,buttons:C,x:D,y:A,native:B,eventId:r}=n.data,{cancelable:z,timestamp:E}=n;return{type:"double-click",pointerType:w,
button:x,buttons:C,x:D,y:A,native:B,timestamp:E,mapPoint:this.getMapPoint(D,A),eventId:r,cancelable:z,stopPropagation:()=>n.stopPropagation(),async:F=>n.async(F),preventDefault:()=>n.preventDefault()}};h.wrapImmediateClick=function(n){const {pointerType:w,button:x,buttons:C,x:D,y:A,native:B,eventId:r}=n.data,z=B.pointerId,{cancelable:E,timestamp:F}=n;return{type:"immediate-click",pointerId:z,pointerType:w,button:x,buttons:C,x:D,y:A,native:B,timestamp:F,mapPoint:this.getMapPoint(D,A),eventId:r,cancelable:E,
stopPropagation:()=>n.stopPropagation(),async:G=>n.async(G),preventDefault:()=>n.preventDefault()}};h.wrapImmediateDoubleClick=function(n){const {pointerType:w,button:x,buttons:C,x:D,y:A,native:B,eventId:r}=n.data,z=B.pointerId,{cancelable:E,timestamp:F}=n;return{type:"immediate-double-click",pointerId:z,pointerType:w,button:x,buttons:C,x:D,y:A,native:B,timestamp:F,mapPoint:this.getMapPoint(D,A),eventId:r,cancelable:E,stopPropagation:()=>n.stopPropagation(),async:G=>n.async(G),preventDefault:()=>
n.preventDefault()}};h.wrapHold=function(n){const {pointerType:w,button:x,buttons:C,x:D,y:A,native:B}=n.data,{cancelable:r,timestamp:z}=n;return{type:"hold",pointerType:w,button:x,buttons:C,x:D,y:A,native:B,timestamp:z,mapPoint:this.getMapPoint(D,A),cancelable:r,stopPropagation:()=>n.stopPropagation(),async:E=>n.async(E),preventDefault:()=>n.preventDefault()}};h.getMapPoint=function(n,w){return this.view.toMap(f.createScreenPoint(n,w),{exclude:[]})};h.wrapDrag=function(n){const w=n.data,{x,y:C}=w.center,
{action:D,pointerType:A,button:B}=w;"start"===D&&(this.latestDragStart=w);if(this.latestDragStart){var r=w.pointer.native,z=w.buttons,{cancelable:E,timestamp:F}=n,G={x:this.latestDragStart.center.x,y:this.latestDragStart.center.y};"end"===D&&(this.latestDragStart=void 0);return{type:"drag",action:D,x,y:C,origin:G,pointerType:A,button:B,buttons:z,radius:w.radius,angle:g.rad2deg(w.angle),native:r,timestamp:F,cancelable:E,stopPropagation:()=>n.stopPropagation(),async:N=>n.async(N),preventDefault:()=>
n.preventDefault()}}};h.wrapKeyDown=function(n){const {key:w,repeat:x,native:C}=n.data,{cancelable:D,timestamp:A}=n;return{type:"key-down",key:w,repeat:x,native:C,timestamp:A,cancelable:D,stopPropagation:()=>n.stopPropagation(),async:B=>n.async(B),preventDefault:()=>n.preventDefault()}};h.wrapKeyUp=function(n){const {key:w,native:x}=n.data,{cancelable:C,timestamp:D}=n;return{type:"key-up",key:w,native:x,timestamp:D,cancelable:C,stopPropagation:()=>n.stopPropagation(),async:A=>n.async(A),preventDefault:()=>
n.preventDefault()}};h.wrapPointer=function(n,w){const {x,y:C,button:D,buttons:A,native:B,eventId:r}=n.data,z=B.pointerId,E=B.pointerType,{cancelable:F,timestamp:G}=n;return{type:w,x,y:C,pointerId:z,pointerType:E,button:D,buttons:A,native:B,timestamp:G,eventId:r,cancelable:F,stopPropagation:()=>n.stopPropagation(),async:N=>n.async(N),preventDefault:()=>n.preventDefault()}};h.wrapPointerDrag=function(n){const {x:w,y:x,buttons:C,native:D,eventId:A}=n.data.currentEvent,{button:B}=n.data.startEvent,r=
n.data.startEvent.native.pointerId,z=n.data.startEvent.native.pointerType,E=n.data.action,F={x:n.data.startEvent.x,y:n.data.startEvent.y},{cancelable:G,timestamp:N}=n;return{type:"pointer-drag",x:w,y:x,pointerId:r,pointerType:z,button:B,buttons:C,action:E,origin:F,native:D,timestamp:N,eventId:A,cancelable:G,stopPropagation:()=>n.stopPropagation(),async:K=>n.async(K),preventDefault:()=>n.preventDefault()}};h.wrapMouseWheel=function(n){const {cancelable:w,data:x,timestamp:C}=n,{x:D,y:A,deltaY:B,native:r}=
x;return{type:"mouse-wheel",x:D,y:A,deltaY:B,native:r,timestamp:C,cancelable:w,stopPropagation:()=>n.stopPropagation(),async:z=>n.async(z),preventDefault:()=>n.preventDefault()}};h.wrapGamepad=function(n){const {action:w,state:x,device:C}=n.data,{cancelable:D,timestamp:A}=n,{buttons:B,axes:r}=x;return{type:"gamepad",device:C,timestamp:A,action:w,buttons:B,axes:r,cancelable:D,stopPropagation:()=>n.stopPropagation(),async:z=>n.async(z),preventDefault:()=>n.preventDefault()}};return l}(k.InputHandler);
a.ViewEvents=m;a.eventTypes=c;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/views/interactive/interactiveToolUtils":function(){define(["exports","../../core/Collection","../../core/maybe","../DOMContainer"],function(a,b,c,g){function f(k,q){const v=k.view;v&&(q&&v.ready&&v.activeTool!==k?(v.activeTool=k,g.isDOMContainer(v)&&v.focus()):q||v.activeTool!==k||(v.activeTool=null))}a.areToolManipulatorsEditable=function(k){return!1!==k.visible&&!1!==k.editable&&(null==k.hasEditableFlag||k.hasEditableFlag(1))};
a.evaluateToolConstructorArguments=function(k){return c.isNone(k)?{}:"function"===typeof k?k():k};a.newToolCollection=function(){const k=new b;k.on("after-add",q=>{q=q.item;q.view&&q.view.ready&&q.attach()});k.on("after-remove",q=>{q=q.item;f(q,!1);q.destroyed||q.detach()});return k};a.setActive=f;a.swap=function(k,q,v){k=k.activeTool;q!==k&&(c.isSome(k)&&k.deactivate&&k.deactivate(),v(q),c.isSome(q)&&q.activate&&q.activate())};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/views/DOMContainer":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/domUtils ../core/scheduling ../core/watchUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass ./overlay/ViewOverlay ../widgets/Popup".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l){function h(w){w&&(g.empty(w),w.parentNode&&w.parentNode.removeChild(w))}const n=[0,0];a.DOMContainer=w=>{w=function(x){function C(...A){var B=x.call(this,...A)||this;B._freqInfo={freq:16,time:750};B._overlayRenderTaskHandle=null;B.height=0;B.position=null;B.resizing=!1;B.root=null;B.surface=null;B.suspended=!0;B.ui=null;B.userContent=null;B.width=0;B.widthBreakpoint=null;B.handles.add([B.watch("cursor",r=>{const z=B.surface;z&&z.setAttribute("data-cursor",r)}),
B.watch("interacting",r=>{const z=B.surface;z&&z.setAttribute("data-interacting",r.toString())})]);return B}b._inheritsLoose(C,x);var D=C.prototype;D.initialize=function(){this.handles.add(this.watch("ui",(A,B)=>this._handleUIChange(A,B)));this._wireUI(this.ui);this.handles.add([this.on("focus",()=>this.notifyChange("focused")),this.on("blur",()=>this.notifyChange("focused"))])};D.destroy=function(){this.destroyed||(this.ui&&(this.ui.destroy(),this.ui=null),this.popup&&!this.popup.destroyed&&this.popup.destroy(),
this.container=null)};D.blur=function(){this.surface&&this.surface.blur()};D.focus=function(){this.surface&&this.surface.focus()};D.pageToContainer=function(A,B,r){const z=this.position;A-=z[0];B-=z[1];r?(r[0]=A,r[1]=B):r=[A,B];return r};D.containerToPage=function(A,B,r){const z=this.position;A+=z[0];B+=z[1];r?(r[0]=A,r[1]=B):r=[A,B];return r};D._handleUIChange=function(A,B){B&&(this.handles.remove("ui"),B.destroy());A&&this._wireUI(A);this._set("ui",A)};D._wireUI=function(A){this.handles.remove("ui");
A&&(A.view=this,this.handles.add([k.init(this,"root",B=>{if(B){{const r=document.createElement("div");B.appendChild(r);B=r}}else B=null;A.container=B}),k.init(this,"popup",(B,r)=>{r&&A.remove(r,"popup");B&&(B.view=A.view,A.add(B,{key:"popup",position:"manual"}))})],"ui"))};D._stopMeasuring=function(){this.handles.remove("measuring");this._get("resizing")&&this._set("resizing",!1)};D._startMeasuring=function(){const A=this._freqInfo;A.freq=16;A.time=750;this.handles.add([(()=>{const B=()=>{A.freq=
16;A.time=750};window.addEventListener("resize",B);return{remove(){window.removeEventListener("resize",B)}}})(),f.addFrameTask({prepare:B=>{const r=this._measure(),z=this._freqInfo;z.time+=B.deltaTime;r&&(z.freq=16,this._get("resizing")||this._set("resizing",!0));z.time<z.freq||(z.time=0,this._position()||r?z.freq=16:z.freq=Math.min(750,2*z.freq),!r&&512<=z.freq&&this._get("resizing")&&this._set("resizing",!1))}})],"measuring");this._measure();this._position()};D._measure=function(){var A=this.container;
const B=A?A.clientWidth:0;A=A?A.clientHeight:0;if(0===B||0===A)return this.suspended||this._set("suspended",!0),!1;const r=this.width,z=this.height;if(B===r&&A===z)return this.suspended&&this._set("suspended",!1),!1;this._set("width",B);this._set("height",A);this.suspended&&this._set("suspended",!1);this.emit("resize",{oldWidth:r,oldHeight:z,width:B,height:A});return!0};D._position=function(){var A=this.container;const B=this.position;{const r=(A.ownerDocument||window.document).defaultView;A=A.getBoundingClientRect();
n[0]=A.left+r.pageXOffset;n[1]=A.top+r.pageYOffset}return B&&n[0]===B[0]&&n[1]===B[1]?!1:(this._set("position",[n[0],n[1]]),!0)};D.forceDOMReadyCycle=function(){};b._createClass(C,[{key:"container",set:function(A){var B=this._get("container");if(B!==A)if(this.handles.remove("dom-size"),this._stopMeasuring(),B&&(B.classList.remove("esri-view"),this._overlayRenderTaskHandle&&(this._overlayRenderTaskHandle.remove(),this._overlayRenderTaskHandle=null),this.overlay.destroy(),this._set("overlay",null),
h(this.root),this._set("root",null),g.reparent(this.userContent,B),h(this.userContent),this._set("userContent",null)),A){A.classList.add("esri-view");B=document.createElement("div");B.className="esri-view-user-storage";g.reparent(A,B);A.appendChild(B);this._set("userContent",B);B=document.createElement("div");B.className="esri-view-root";A.insertBefore(B,A.firstChild);this._set("root",B);const r=document.createElement("div");r.className="esri-view-surface";r.setAttribute("role","application");r.tabIndex=
0;B.appendChild(r);this._set("surface",r);const z=new e;B.appendChild(z.surface);this._set("overlay",z);z.watch("needsRender",E=>{E&&!this._overlayRenderTaskHandle?this._overlayRenderTaskHandle=f.addFrameTask({render:()=>{this.overlay.render()}}):this._overlayRenderTaskHandle&&(this._overlayRenderTaskHandle.remove(),this._overlayRenderTaskHandle=null)});this.forceDOMReadyCycle();this.handles.add(k.init(this,"size",E=>{const [F,G]=E;F>=document.body.clientWidth||G>=document.body.clientHeight?r.classList.add("esri-view-surface--inset-outline"):
r.classList.remove("esri-view-surface--inset-outline")}),"dom-size");this._set("container",A);this._startMeasuring()}else this._set("width",0),this._set("height",0),this._set("position",null),this._set("suspended",!0),this._set("surface",null),this._set("container",null)}},{key:"focused",get:function(){const A=document.activeElement===this.surface;return document.hasFocus()&&A}},{key:"popup",get:function(){return this._get("popup")||new l({view:this})},set:function(A){const B=this._get("popup");B&&
B!==A&&B.destroy();this._set("popup",A)}},{key:"size",get:function(){return[this.width,this.height]}}]);return C}(w);c.__decorate([q.property({value:null,cast:x=>g.byId(x)})],w.prototype,"container",null);c.__decorate([q.property({readOnly:!0})],w.prototype,"focused",null);c.__decorate([q.property({readOnly:!0})],w.prototype,"height",void 0);c.__decorate([q.property({type:l})],w.prototype,"popup",null);c.__decorate([q.property({type:e})],w.prototype,"overlay",void 0);c.__decorate([q.property({readOnly:!0})],
w.prototype,"position",void 0);c.__decorate([q.property({readOnly:!0})],w.prototype,"resizing",void 0);c.__decorate([q.property({readOnly:!0})],w.prototype,"root",void 0);c.__decorate([q.property({value:null,readOnly:!0})],w.prototype,"size",null);c.__decorate([q.property({readOnly:!0})],w.prototype,"surface",void 0);c.__decorate([q.property({readOnly:!0})],w.prototype,"suspended",void 0);c.__decorate([q.property()],w.prototype,"ui",void 0);c.__decorate([q.property({readOnly:!0})],w.prototype,"userContent",
void 0);c.__decorate([q.property({readOnly:!0})],w.prototype,"width",void 0);c.__decorate([q.property()],w.prototype,"widthBreakpoint",void 0);return w=c.__decorate([p.subclass("esri.views.DOMContainer")],w)};a.isDOMContainer=function(w){return w&&"focus"in w};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/domUtils":function(){define(["exports"],function(a){const b=(()=>{if("function"===typeof Element.prototype.closest)return(g,f)=>g.closest(f);const c=Element.prototype.matches||Element.prototype.msMatchesSelector;
return(g,f)=>{do{if(c.call(g,f))return g;g=g.parentElement}while(null!==g&&1===g.nodeType);return null}})();a.byId=function(c){return"string"===typeof c?document.getElementById(c):c};a.closest=b;a.empty=function(c){for(;c.hasChildNodes();)c.removeChild(c.firstChild)};a.insertAfter=function(c,g){const f=g.parentNode;f&&(f.lastChild===g?f.appendChild(c):f.insertBefore(c,g.nextSibling))};a.insertBefore=function(c,g){const f=g.parentNode;f&&f.insertBefore(c,g)};a.remove=function(c){c.parentNode&&c.parentNode.removeChild(c)};
a.reparent=function(c,g){for(;;){const f=c.firstChild;if(!f)break;g.appendChild(f)}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/views/overlay/ViewOverlay":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/Collection ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../../libs/maquette/projection ../../libs/maquette/projector ../support/WatchUpdatingTracking".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){c=function(l){function h(){var w=l.apply(this,arguments)||this;w.items=new g;w._watchUpdatingTracking=new e.WatchUpdatingTracking;w._callbacks=new Map;w._projector=p.createProjector();w._hiddenProjector=p.createProjector();return w}a._inheritsLoose(h,l);var n=h.prototype;n.initialize=function(){const w=document.createElement("div");w.className="esri-overlay-surface";this._set("surface",w);this._hiddenSurface=document.createElement("div");this._hiddenSurface.setAttribute("style",
"visibility: hidden;");w.appendChild(this._hiddenSurface);this._watchUpdatingTracking.addOnCollectionChange(this.items,x=>{x.added.map(C=>{const D=()=>C.render();this._callbacks.set(C,D);this._projector.append(this.surface,D)});x.removed.map(C=>{const D=this._projector.detach(this._callbacks.get(C));this.surface.removeChild(D.domNode);this._callbacks.delete(C)})})};n.addItem=function(w){this.items.add(w)};n.removeItem=function(w){this.items.remove(w)};n.destroy=function(){this.items.removeAll();this._callbacks.forEach(w=>
this._projector.detach(w));this._projector=this._callbacks=null;this._watchUpdatingTracking.destroy()};n.render=function(){this._projector.renderNow()};n.computeBoundingRect=function(w){const x=this._hiddenSurface,C=this._hiddenProjector;let D=null;const A=()=>D=w.render();C.append(x,A);C.renderNow();const B={left:0,top:0,right:0,bottom:0};if(D&&D.domNode){const r=D.domNode.getBoundingClientRect();B.left=r.left;B.top=r.top;B.right=r.right;B.bottom=r.bottom}for(C.detach(A);x.firstChild;)x.removeChild(x.firstChild);
return B};n.overlaps=function(w,x){w=this.computeBoundingRect(w);x=this.computeBoundingRect(x);return Math.max(w.left,x.left)<=Math.min(w.right,x.right)&&Math.max(w.top,x.top)<=Math.min(w.bottom,x.bottom)};n.renderCanvas=function(w){if(this.items.some(C=>C.visible)){var x=w.getContext("2d");x.save();x.font=`10px ${getComputedStyle(this.surface).fontFamily}`;this.items.forEach(C=>{x.save();C.renderCanvas(x);x.restore()});x.restore()}};a._createClass(h,[{key:"needsRender",get:function(){return 0<this.items.length}},
{key:"hasVisibleItems",get:function(){return this.items.some(w=>w.visible)}}]);return h}(c);b.__decorate([f.property({readOnly:!0})],c.prototype,"surface",void 0);b.__decorate([f.property({readOnly:!0})],c.prototype,"items",void 0);b.__decorate([f.property({readOnly:!0})],c.prototype,"needsRender",null);b.__decorate([f.property({readOnly:!0})],c.prototype,"_watchUpdatingTracking",void 0);b.__decorate([f.property({readOnly:!0,aliasOf:"_watchUpdatingTracking.updating"})],c.prototype,"updating",void 0);
return c=b.__decorate([u.subclass("esri.views.overlay.ViewOverlay")],c)})},"esri/libs/maquette/projection":function(){define(["exports","../../widgets/support/widgetUtils"],function(a,b){let c=[],g=(C,D)=>{let A={};Object.keys(C).forEach(B=>{A[B]=C[B]});D&&Object.keys(D).forEach(B=>{A[B]=D[B]});return A},f=(C,D)=>C.vnodeSelector!==D.vnodeSelector?!1:C.properties&&D.properties?C.properties.key!==D.properties.key?!1:C.properties.bind===D.properties.bind:!C.properties&&!D.properties,k=C=>{if("string"!==
typeof C)throw Error("Style values must be strings");},q=(C,D,A,B)=>{let r=C[D];if(""!==r.vnodeSelector){var z=r.properties;if(!(z&&(void 0===z.key?z.bind:z.key)))for(z=0;z<C.length;z++)if(z!==D&&f(C[z],r))throw Error(`${A.vnodeSelector} had a ${r.vnodeSelector} child ${"added"===B?B:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`);}},v=[],t=!1,u=C=>{(C.children||[]).forEach(u);C.properties&&C.properties.afterRemoved&&C.properties.afterRemoved.apply(C.properties.bind||
C.properties,[C.domNode])},m=()=>{t=!1;v.forEach(u);v.length=0},p=C=>{v.push(C);t||(t=!0,"undefined"!==typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(m,{timeout:16}):setTimeout(m,16))},e=C=>{let D=C.domNode;if(C.properties){let A=C.properties.exitAnimation;if(A){D.style.pointerEvents="none";A(D,()=>{D.parentNode&&(D.parentNode.removeChild(D),p(C))},C.properties);return}}D.parentNode&&(D.parentNode.removeChild(D),p(C))},l=(C,D,A)=>{if(D){var B=A.eventHandlerInterceptor,r=
Object.keys(D),z=r.length;for(let K=0;K<z;K++){var E=r[K];let I=D[E];if("className"===E)throw Error('Property "className" is not supported, use "class".');if("class"===E)x(C,I,!0);else if("classes"===E){E=Object.keys(I);var F=E.length;for(var G=0;G<F;G++){var N=E[G];I[N]&&C.classList.add(N)}}else if("styles"===E)for(E=Object.keys(I),F=E.length,G=0;G<F;G++){N=E[G];let J=I[N];J&&(k(J),A.styleApplyer(C,N,J))}else"key"!==E&&null!==I&&void 0!==I&&(F=typeof I,"function"===F?(0===E.lastIndexOf("on",0)&&
(B&&(I=B(E,I,C,D)),"oninput"===E&&function(){let J=I;I=function(L){J.apply(this,[L]);L.target["oninput-value"]=L.target.value}}()),C[E]=I):"http://www.w3.org/2000/svg"===A.namespace?"href"===E?C.setAttributeNS("http://www.w3.org/1999/xlink",E,I):C.setAttribute(E,I):"string"===F&&"value"!==E?"innerHTML"===E?C[E]=b.renderingSanitizer.sanitize(I):C.setAttribute(E,I):C[E]=I)}}},h=(C,D,A)=>{var B=D.children;if(B)for(let r of B)n(r,C,void 0,A);D.text&&(C.textContent=D.text);l(C,D.properties,A);D.properties&&
D.properties.afterCreate&&D.properties.afterCreate.apply(D.properties.bind||D.properties,[C,A,D.vnodeSelector,D.properties,D.children])},n=(C,D,A,B)=>{let r;var z=0;let E=C.vnodeSelector,F=D.ownerDocument;if(""===E)r=C.domNode=F.createTextNode(C.text),void 0!==A?D.insertBefore(r,A):D.appendChild(r);else{for(let N=0;N<=E.length;++N){var G=E.charAt(N);if(N===E.length||"."===G||"#"===G)G=E.charAt(z-1),z=E.slice(z,N),"."===G?r.classList.add(z):"#"===G?r.id=z:("svg"===z&&(B=g(B,{namespace:"http://www.w3.org/2000/svg"})),
void 0!==B.namespace?r=C.domNode=F.createElementNS(B.namespace,z):(r=C.domNode=C.domNode||F.createElement(z),"input"===z&&C.properties&&void 0!==C.properties.type&&r.setAttribute("type",C.properties.type)),void 0!==A?D.insertBefore(r,A):r.parentNode!==D&&D.appendChild(r)),z=N+1}h(r,C,B)}},w,x=(C,D,A)=>{D&&D.split(" ").forEach(B=>{B&&C.classList.toggle(B,A)})};w=(C,D,A)=>{let B=C.domNode;if(C===D)return!1;let r=!1;if(""===D.vnodeSelector){if(D.text!==C.text)return C=B.ownerDocument.createTextNode(D.text),
B.parentNode.replaceChild(C,B),D.domNode=C,!0;D.domNode=B}else{0===D.vnodeSelector.lastIndexOf("svg",0)&&(A=g(A,{namespace:"http://www.w3.org/2000/svg"}));C.text!==D.text&&(r=!0,void 0===D.text?B.removeChild(B.firstChild):B.textContent=D.text);D.domNode=B;var z=C.children;var E=D.children,F=A;if(z===E)z=!1;else{z=z||c;E=E||c;for(var G=z.length,N=E.length,K=0,I=0,J=!1;I<N;){var L=K<G?z[K]:void 0,Q=E[I];if(void 0!==L&&f(L,Q))J=w(L,Q,F)||J,K++;else{b:{L=z;var W=Q,V=K+1;if(""!==W.vnodeSelector)for(;V<
L.length;V++)if(f(L[V],W)){L=V;break b}L=-1}if(0<=L){for(;K<L;K++)e(z[K]),q(z,K,D,"removed");J=w(z[L],Q,F)||J;K=L+1}else n(Q,B,K<G?z[K].domNode:void 0,F),Q.properties&&(L=Q.properties.enterAnimation)&&L(Q.domNode,Q.properties),q(E,I,D,"added")}I++}if(G>K)for(;K<G;K++)e(z[K]),q(z,K,D,"removed");z=J}r=z||r;z=C.properties;E=D.properties;F=A;if(E){G=!1;N=Object.keys(E);I=N.length;for(J=0;J<I;J++)if(L=N[J],Q=E[L],K=z[L],"class"===L)K!==Q&&(x(B,K,!1),x(B,Q,!0));else if("classes"===L){L=B.classList;W=Object.keys(Q);
V=W.length;for(var P=0;P<V;P++){var X=W[P];let U=!!Q[X];U!==!!K[X]&&(G=!0,U?L.add(X):L.remove(X))}}else if("styles"===L)for(L=Object.keys(Q),W=L.length,V=0;V<W;V++)P=L[V],X=Q[P],X!==K[P]&&(G=!0,X?(k(X),F.styleApplyer(B,P,X)):F.styleApplyer(B,P,""));else Q||"string"!==typeof K||(Q=""),"value"===L?(W=B[L],W!==Q&&(B["oninput-value"]?W===B["oninput-value"]:Q!==K)&&(B[L]=Q,B["oninput-value"]=void 0),Q!==K&&(G=!0)):Q!==K&&(K=typeof Q,"function"===K&&F.eventHandlerInterceptor||("http://www.w3.org/2000/svg"===
F.namespace?"href"===L?B.setAttributeNS("http://www.w3.org/1999/xlink",L,Q):B.setAttribute(L,Q):"string"===K?"innerHTML"===L?B[L]=b.renderingSanitizer.sanitize(Q):"role"===L&&""===Q?B.removeAttribute(L):B.setAttribute(L,Q):B[L]!==Q&&(B[L]=Q),G=!0));z=G}else z=void 0;r=z||r;D.properties&&D.properties.afterUpdate&&D.properties.afterUpdate.apply(D.properties.bind||D.properties,[B,A,D.vnodeSelector,D.properties,D.children])}r&&D.properties&&D.properties.updateAnimation&&D.properties.updateAnimation(B,
D.properties,C.properties);return!1};a.createDom=n;a.createProjection=(C,D)=>({getLastRender:()=>C,update:A=>{if(C.vnodeSelector!==A.vnodeSelector)throw Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let B=C;C=A;w(B,A,D)},domNode:C.domNode});a.extend=g;a.initPropertiesAndChildren=h;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/support/widgetUtils":function(){define(["exports","../../core/ArrayPool",
"../../core/has","../../core/Logger"],function(a,b,c,g){function f(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,
"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,
"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,
"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,
"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,"float":!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,
"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,
"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,
"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,
"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,
"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,
"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,
"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,
"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}function k(ra){ra=ra||{};var ya={},Ca;for(Ca in ra)ya[Ca]=ra[Ca];ra=ya;ra.whiteList=ra.whiteList||W.whiteList;ra.onAttr=ra.onAttr||W.onAttr;ra.onIgnoreAttr=ra.onIgnoreAttr||W.onIgnoreAttr;ra.safeAttrValue=ra.safeAttrValue||W.safeAttrValue;this.options=ra}function q(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:"autoplay controls crossorigin loop muted preload src".split(" "),
b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],
summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:"autoplay controls crossorigin loop muted playsinline poster preload src height width".split(" ")}}function v(ra){return ra.replace(oa,"\x26lt;").replace(xa,"\x26gt;")}function t(ra){return ra.replace(Ea,
"\x26quot;")}function u(ra){return ra.replace(fa,'"')}function m(ra){return ra.replace(ia,function(ya,Ca){return"x"===Ca[0]||"X"===Ca[0]?String.fromCharCode(parseInt(Ca.substr(1),16)):String.fromCharCode(parseInt(Ca,10))})}function p(ra){return ra.replace(da,":").replace(ea," ")}function e(ra){for(var ya="",Ca=0,Ha=ra.length;Ca<Ha;Ca++)ya+=32>ra.charCodeAt(Ca)?" ":ra.charAt(Ca);return U.trim(ya)}function l(ra){ra=u(ra);ra=m(ra);ra=p(ra);return ra=e(ra)}function h(ra){ra=t(ra);return ra=v(ra)}function n(ra,
ya){for(;ya<ra.length;ya++){var Ca=ra[ya];if(" "!==Ca)return"\x3d"===Ca?ya:-1}}function w(ra,ya){for(;0<ya;ya--){var Ca=ra[ya];if(" "!==Ca)return"\x3d"===Ca?ya:-1}}function x(ra){var ya='"'===ra[0]&&'"'===ra[ra.length-1]||"'"===ra[0]&&"'"===ra[ra.length-1]?!0:!1;return ya?ra.substr(1,ra.length-2):ra}function C(ra){var ya=sa.spaceIndex(ra);if(-1===ya)return{html:"",closing:"/"===ra[ra.length-2]};ra=sa.trim(ra.slice(ya+1,-1));(ya="/"===ra[ra.length-1])&&(ra=sa.trim(ra.slice(0,-1)));return{html:ra,closing:ya}}
function D(ra){ra=ra||{};var ya={},Ca;for(Ca in ra)ya[Ca]=ra[Ca];ra=ya;ra.stripIgnoreTag&&(ra.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),ra.onIgnoreTag=T.onIgnoreTagStripAll);ra.whiteList=ra.whiteList||T.whiteList;ra.onTag=ra.onTag||T.onTag;ra.onTagAttr=ra.onTagAttr||T.onTagAttr;ra.onIgnoreTag=ra.onIgnoreTag||T.onIgnoreTag;ra.onIgnoreTagAttr=ra.onIgnoreTagAttr||T.onIgnoreTagAttr;ra.safeAttrValue=ra.safeAttrValue||T.safeAttrValue;
ra.escapeHtml=ra.escapeHtml||T.escapeHtml;this.options=ra;!1===ra.css?this.cssFilter=!1:(ra.css=ra.css||{},this.cssFilter=new ta(ra.css))}function A(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-theme-name").replace(/\s|'|"/g,"")}function B(){return A().startsWith("dark")}c=Object.prototype;var r=Function.prototype.toString,z=c.hasOwnProperty,E=r.call(Object),F=c.toString,G=function(ra,ya){return function(Ca){return ra(ya(Ca))}}(Object.getPrototypeOf,Object),N=function(ra){var ya;
if(!(ya=!(ra&&"object"==typeof ra)||"[object Object]"!=F.call(ra))&&(ya=!1,null!=ra&&"function"!=typeof ra.toString))try{ya=!!(ra+"")}catch(Ca){}if(ya)return!1;ra=G(ra);if(null===ra)return!0;ra=z.call(ra,"constructor")&&ra.constructor;return"function"==typeof ra&&ra instanceof ra&&r.call(ra)==E},K={exports:{}},I={};c={exports:{}};var J={},L=/javascript\s*:/img;J.whiteList=f();J.getDefaultWhiteList=f;J.onAttr=function(ra,ya,Ca){};J.onIgnoreAttr=function(ra,ya,Ca){};J.safeAttrValue=function(ra,ya){return L.test(ya)?
"":ya};var Q={indexOf:function(ra,ya){var Ca;if(Array.prototype.indexOf)return ra.indexOf(ya);var Ha=0;for(Ca=ra.length;Ha<Ca;Ha++)if(ra[Ha]===ya)return Ha;return-1},forEach:function(ra,ya,Ca){var Ha;if(Array.prototype.forEach)return ra.forEach(ya,Ca);var Ka=0;for(Ha=ra.length;Ka<Ha;Ka++)ya.call(Ca,ra[Ka],Ka,ra)},trim:function(ra){return String.prototype.trim?ra.trim():ra.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(ra){return String.prototype.trimRight?ra.trimRight():ra.replace(/(\s*$)/g,"")}},
W=J,V=function(ra,ya){function Ca(){if(!Ka){var Pa=Q.trim(ra.slice(Ua,ab)),lb=Pa.indexOf(":");if(-1!==lb){var rb=Q.trim(Pa.slice(0,lb));lb=Q.trim(Pa.slice(lb+1));rb&&(Pa=ya(Ua,Xa.length,rb,lb,Pa))&&(Xa+=Pa+"; ")}}Ua=ab+1}ra=Q.trimRight(ra);";"!==ra[ra.length-1]&&(ra+=";");for(var Ha=ra.length,Ka=!1,Ua=0,ab=0,Xa="";ab<Ha;ab++){var $a=ra[ab];if("/"===$a&&"*"===ra[ab+1]){$a=ra.indexOf("*/",ab+2);if(-1===$a)break;ab=$a+1;Ua=ab+1;Ka=!1}else"("===$a?Ka=!0:")"===$a?Ka=!1:";"===$a?Ka||Ca():"\n"===$a&&Ca()}return Q.trim(Xa)};
k.prototype.process=function(ra){ra=(ra||"").toString();if(!ra)return"";var ya=this.options,Ca=ya.whiteList,Ha=ya.onAttr,Ka=ya.onIgnoreAttr,Ua=ya.safeAttrValue;return V(ra,function(ab,Xa,$a,Pa,lb){var rb=Ca[$a],mb=!1;!0===rb?mb=rb:"function"===typeof rb?mb=rb(Pa):rb instanceof RegExp&&(mb=rb.test(Pa));!0!==mb&&(mb=!1);if(Pa=Ua($a,Pa)){ab={position:Xa,sourcePosition:ab,source:lb,isWhite:mb};if(mb)return mb=Ha($a,Pa,ab),void 0===mb||null===mb?$a+":"+Pa:mb;mb=Ka($a,Pa,ab);if(void 0!==mb&&null!==mb)return mb}})};
(function(ra,ya){ya=ra.exports=function(Ha,Ka){return(new k(Ka)).process(Ha)};ya.FilterCSS=k;for(var Ca in J)ya[Ca]=J[Ca]})(c,c.exports);var P={indexOf:function(ra,ya){var Ca;if(Array.prototype.indexOf)return ra.indexOf(ya);var Ha=0;for(Ca=ra.length;Ha<Ca;Ha++)if(ra[Ha]===ya)return Ha;return-1},forEach:function(ra,ya,Ca){var Ha;if(Array.prototype.forEach)return ra.forEach(ya,Ca);var Ka=0;for(Ha=ra.length;Ka<Ha;Ka++)ya.call(Ca,ra[Ka],Ka,ra)},trim:function(ra){return String.prototype.trim?ra.trim():
ra.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(ra){return(ra=/\s|\n|\t/.exec(ra))?ra.index:-1}},X=c.exports.getDefaultWhiteList,U=P,Z=new c.exports.FilterCSS,oa=/</g,xa=/>/g,Ea=/"/g,fa=/&quot;/g,ia=/&#([a-zA-Z0-9]*);?/gim,da=/&colon;?/gim,ea=/&newline;?/gim,la=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,va=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Ba=/u\s*r\s*l\s*\(.*/gi,aa=/\x3c!--[\s\S]*?--\x3e/g;I.whiteList=q();I.getDefaultWhiteList=q;I.onTag=
function(ra,ya,Ca){};I.onIgnoreTag=function(ra,ya,Ca){};I.onTagAttr=function(ra,ya,Ca){};I.onIgnoreTagAttr=function(ra,ya,Ca){};I.safeAttrValue=function(ra,ya,Ca,Ha){Ca=l(Ca);if("href"===ya||"src"===ya){Ca=U.trim(Ca);if("#"===Ca)return"#";if("http://"!==Ca.substr(0,7)&&"https://"!==Ca.substr(0,8)&&"mailto:"!==Ca.substr(0,7)&&"tel:"!==Ca.substr(0,4)&&"data:image/"!==Ca.substr(0,11)&&"ftp://"!==Ca.substr(0,6)&&"./"!==Ca.substr(0,2)&&"../"!==Ca.substr(0,3)&&"#"!==Ca[0]&&"/"!==Ca[0])return""}else if("background"===
ya){if(la.lastIndex=0,la.test(Ca))return""}else if("style"===ya){va.lastIndex=0;if(va.test(Ca))return"";Ba.lastIndex=0;if(Ba.test(Ca)&&(la.lastIndex=0,la.test(Ca)))return"";!1!==Ha&&(Ha=Ha||Z,Ca=Ha.process(Ca))}return Ca=h(Ca)};I.escapeHtml=v;I.escapeQuote=t;I.unescapeQuote=u;I.escapeHtmlEntities=m;I.escapeDangerHtml5Entities=p;I.clearNonPrintableCharacter=e;I.friendlyAttrValue=l;I.escapeAttrValue=h;I.onIgnoreTagStripAll=function(){return""};I.StripTagBody=function(ra,ya){"function"!==typeof ya&&
(ya=function(){});var Ca=!Array.isArray(ra),Ha=[],Ka=!1;return{onIgnoreTag:function(Ua,ab,Xa){var $a=Ca?!0:-1!==U.indexOf(ra,Ua);if($a){if(Xa.isClosing)return Ha.push([!1!==Ka?Ka:Xa.position,Xa.position+10]),Ka=!1,"[/removed]";Ka||(Ka=Xa.position);return"[removed]"}return ya(Ua,ab,Xa)},remove:function(Ua){var ab="",Xa=0;U.forEach(Ha,function($a){ab+=Ua.slice(Xa,$a[0]);Xa=$a[1]});return ab+=Ua.slice(Xa)}}};I.stripCommentTag=function(ra){return ra.replace(aa,"")};I.stripBlankChar=function(ra){ra=ra.split("");
ra=ra.filter(function(ya){ya=ya.charCodeAt(0);return 127===ya?!1:31>=ya?10===ya||13===ya?!0:!1:!0});return ra.join("")};I.cssFilter=Z;I.getDefaultCSSWhiteList=X;var ja={},ua=/[^a-zA-Z0-9_:\.\-]/gim;ja.parseTag=function(ra,ya,Ca){var Ha="",Ka=0,Ua=!1,ab=!1,Xa=0,$a=ra.length,Pa="",lb="";Xa=0;a:for(;Xa<$a;Xa++)if(lb=ra.charAt(Xa),!1===Ua)"\x3c"===lb&&(Ua=Xa);else if(!1===ab)if("\x3c"===lb)Ha+=Ca(ra.slice(Ka,Xa)),Ka=Ua=Xa;else if("\x3e"===lb)Ha+=Ca(ra.slice(Ka,Ua)),Ka=lb=ra.slice(Ua,Xa+1),Pa=P.spaceIndex(Ka),
Ka=-1===Pa?Ka.slice(1,-1):Ka.slice(1,Pa+1),Ka=P.trim(Ka).toLowerCase(),"/"===Ka.slice(0,1)&&(Ka=Ka.slice(1)),"/"===Ka.slice(-1)&&(Ka=Ka.slice(0,-1)),Pa=Ka,Ha+=ya(Ua,Ha.length,Pa,lb,"\x3c/"===lb.slice(0,2)),Ka=Xa+1,Ua=!1;else{if('"'===lb||"'"===lb){Pa=1;for(var rb=ra.charAt(Xa-Pa);""===rb.trim()||"\x3d"===rb;){if("\x3d"===rb){ab=lb;continue a}rb=ra.charAt(Xa-++Pa)}}}else lb===ab&&(ab=!1);Ka<ra.length&&(Ha+=Ca(ra.substr(Ka)));return Ha};ja.parseAttr=function(ra,ya){function Ca(Pa,lb){Pa=P.trim(Pa);
Pa=Pa.replace(ua,"").toLowerCase();1>Pa.length||(Pa=ya(Pa,lb||""))&&Ka.push(Pa)}for(var Ha=0,Ka=[],Ua=!1,ab=ra.length,Xa=0;Xa<ab;Xa++){var $a=ra.charAt(Xa);if(!1===Ua&&"\x3d"===$a)Ua=ra.slice(Ha,Xa),Ha=Xa+1;else{if(!1!==Ua&&Xa===Ha&&('"'===$a||"'"===$a)&&"\x3d"===ra.charAt(Xa-1))if($a=ra.indexOf($a,Xa+1),-1===$a)break;else{Ha=P.trim(ra.slice(Ha+1,$a));Ca(Ua,Ha);Ua=!1;Xa=$a;Ha=Xa+1;continue}/\s|\n|\t/.test($a)&&(ra=ra.replace(/\s|\n|\t/g," "),!1===Ua?($a=n(ra,Xa),-1===$a?(Ha=P.trim(ra.slice(Ha,Xa)),
Ca(Ha),Ua=!1,Ha=Xa+1):Xa=$a-1):($a=w(ra,Xa-1),-1===$a&&(Ha=P.trim(ra.slice(Ha,Xa)),Ha=x(Ha),Ca(Ua,Ha),Ua=!1,Ha=Xa+1)))}}Ha<ra.length&&(!1===Ua?Ca(ra.slice(Ha)):Ca(Ua,x(P.trim(ra.slice(Ha)))));return P.trim(Ka.join(" "))};var ta=c.exports.FilterCSS,T=I,ba=ja.parseTag,ha=ja.parseAttr,sa=P;D.prototype.process=function(ra){ra=(ra||"").toString();if(!ra)return"";var ya=this.options,Ca=ya.whiteList,Ha=ya.onTag,Ka=ya.onIgnoreTag,Ua=ya.onTagAttr,ab=ya.onIgnoreTagAttr,Xa=ya.safeAttrValue,$a=ya.escapeHtml,
Pa=this.cssFilter;ya.stripBlankChar&&(ra=T.stripBlankChar(ra));ya.allowCommentTag||(ra=T.stripCommentTag(ra));var lb=!1;ya.stripIgnoreTagBody&&(lb=T.StripTagBody(ya.stripIgnoreTagBody,Ka),Ka=lb.onIgnoreTag);ra=ba(ra,function(rb,mb,Jb,Ab,Sb){rb={sourcePosition:rb,position:mb,isClosing:Sb,isWhite:Ca.hasOwnProperty(Jb)};mb=Ha(Jb,Ab,rb);if(void 0!==mb&&null!==mb)return mb;if(rb.isWhite){if(rb.isClosing)return"\x3c/"+Jb+"\x3e";rb=C(Ab);var pb=Ca[Jb];mb=ha(rb.html,function(ub,Na){var ka=-1!==sa.indexOf(pb,
ub),qa=Ua(Jb,ub,Na,ka);if(void 0!==qa&&null!==qa)return qa;if(ka)return(Na=Xa(Jb,ub,Na,Pa))?ub+'\x3d"'+Na+'"':ub;qa=ab(Jb,ub,Na,ka);if(void 0!==qa&&null!==qa)return qa});Ab="\x3c"+Jb;mb&&(Ab+=" "+mb);rb.closing&&(Ab+=" /");return Ab+"\x3e"}mb=Ka(Jb,Ab,rb);return void 0!==mb&&null!==mb?mb:$a(Ab)},$a);lb&&(ra=lb.remove(ra));return ra};(function(ra,ya){function Ca(Ua,ab){return(new Ha(ab)).process(Ua)}var Ha=D;ya=ra.exports=Ca;ya.filterXSS=Ca;ya.FilterXSS=Ha;for(var Ka in I)ya[Ka]=I[Ka];for(Ka in ja)ya[Ka]=
ja[Ka];"undefined"!==typeof self&&"undefined"!==typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=ra.exports)})(K,K.exports);c=function(){function ra(ya,Ca){var Ha=this;this.arcgisWhiteList={a:["href","target","style"],abbr:["title"],img:"src width height border alt style".split(" "),video:"autoplay controls height loop muted poster preload width".split(" "),audio:["autoplay","controls","loop","muted","preload"],source:["media","src","type"],span:["style"],
table:"width height cellpadding cellspacing border style".split(" "),div:["style","align"],font:["size","color","style"],tr:["height","valign","align","style"],td:"height width valign align colspan rowspan nowrap style".split(" "),th:"height width valign align colspan rowspan nowrap style".split(" "),p:["style"],b:[],strong:[],i:[],em:[],u:[],br:[],li:[],ul:[],ol:[],hr:[],tbody:[]};this.allowedProtocols="http https mailto iform tel flow lfmobile arcgis-navigator arcgis-appstudio-player arcgis-survey123 arcgis-collector arcgis-workforce arcgis-explorer arcgis-trek2there mspbi comgooglemaps pdfefile pdfehttp pdfehttps boxapp boxemm awb awbs gropen radarscope".split(" ");
this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(Ua,ab,Xa,$a){return"a"===Ua&&"href"===ab||("img"===Ua||"source"===Ua)&&"src"===ab?Ha.sanitizeUrl(Xa):K.exports.safeAttrValue(Ua,ab,Xa,$a)}};if(ya&&!Ca)var Ka=ya;else ya&&Ca?(Ka=Object.create(this.arcgisFilterOptions),Object.keys(ya).forEach(function(Ua){"whiteList"===Ua?Ka.whiteList=Ha._extendObjectOfArrays([Ha.arcgisWhiteList,ya.whiteList||{}]):Ka[Ua]=ya[Ua]})):(Ka=Object.create(this.arcgisFilterOptions),Ka.whiteList=this.arcgisWhiteList);
this.xssFilterOptions=Ka;this._xssFilter=new K.exports.FilterXSS(Ka)}ra.prototype.sanitize=function(ya,Ca){void 0===Ca&&(Ca={});switch(typeof ya){case "number":return isNaN(ya)||!isFinite(ya)?null:ya;case "boolean":return ya;case "string":return this._xssFilter.process(ya);case "object":return this._iterateOverObject(ya,Ca);default:if(!Ca.allowUndefined||"undefined"!==typeof ya)return null}};ra.prototype.sanitizeUrl=function(ya){var Ca=this._trim(ya.substring(0,ya.indexOf(":")));return"/"===ya||"#"===
ya||"#"===ya[0]||-1<this.allowedProtocols.indexOf(Ca.toLowerCase())?K.exports.escapeAttrValue(ya):""};ra.prototype.sanitizeHTMLAttribute=function(ya,Ca,Ha,Ka){return"function"===typeof this.xssFilterOptions.safeAttrValue?this.xssFilterOptions.safeAttrValue(ya,Ca,Ha,Ka):K.exports.safeAttrValue(ya,Ca,Ha,Ka)};ra.prototype.validate=function(ya,Ca){void 0===Ca&&(Ca={});Ca=this.sanitize(ya,Ca);return{isValid:ya===Ca,sanitized:Ca}};ra.prototype._extendObjectOfArrays=function(ya){var Ca={};ya.forEach(function(Ha){Object.keys(Ha).forEach(function(Ka){Array.isArray(Ha[Ka])&&
Array.isArray(Ca[Ka])?Ca[Ka]=Ca[Ka].concat(Ha[Ka]):Ca[Ka]=Ha[Ka]})});return Ca};ra.prototype._iterateOverObject=function(ya,Ca){var Ha=this;void 0===Ca&&(Ca={});try{var Ka=!1,Ua=void 0;if(Array.isArray(ya))Ua=ya.reduce(function(ab,Xa){var $a=Ha.validate(Xa,Ca);if($a.isValid)return ab.concat([Xa]);Ka=!0;return ab.concat([$a.sanitized])},[]);else if(N(ya))Ua=Object.keys(ya).reduce(function(ab,Xa){var $a=ya[Xa],Pa=Ha.validate($a,Ca);Pa.isValid?ab[Xa]=$a:(Ka=!0,ab[Xa]=Pa.sanitized);return ab},{});else return Ca.allowUndefined&&
"undefined"===typeof ya?void 0:null;return Ka?Ua:ya}catch(ab){return null}};ra.prototype._trim=function(ya){return String.prototype.trim?ya.trim():ya.replace(/(^\s*)|(\s*$)/g,"")};return ra}();var Aa,La,Ra=function(ra){if("WebkitTransition"in ra.style)Aa="webkitTransitionEnd",La="webkitAnimationEnd";else if("transition"in ra.style)Aa="transitionend",La="animationend";else throw Error("Your browser is not supported!");},Za=function(ra,ya){void 0===ya&&(ya=ra+"-active");return function(Ca){Aa||Ra(Ca);
var Ha=!1,Ka=function(Ua){Ha||(Ha=!0,Ca.removeEventListener(Aa,Ka),Ca.removeEventListener(La,Ka),Ca.classList.remove(ra),Ca.classList.remove(ya))};Ca.classList.add(ra);Ca.addEventListener(Aa,Ka);Ca.addEventListener(La,Ka);requestAnimationFrame(function(){Ca.classList.add(ya)})}},jb=function(ra,ya){void 0===ya&&(ya=ra+"-active");return function(Ca,Ha){Aa||Ra(Ca);var Ka=!1,Ua=function(ab){Ka||(Ka=!0,Ca.removeEventListener(Aa,Ua),Ca.removeEventListener(La,Ua),Ha())};Ca.classList.add(ra);Ca.addEventListener(Aa,
Ua);Ca.addEventListener(La,Ua);requestAnimationFrame(function(){Ca.classList.add(ya)})}};g.getLogger("esri.widgets.support.widgetUtils");g="dd dl dt h1 h2 h3 h4 h5 h6 sub sup animate animatetransform circle clippath defs ellipse g image line lineargradient marker mask path pattern polygon polyline radialgradient rect stop svg switch symbol text textpath tspan use".split(" ");X=g.reduce((ra,ya)=>{ra[ya]=[];return ra},{});const kb="align alink alt bgcolor border cellpadding cellspacing class color cols colspan coords dir face height hspace ismap lang marginheight marginwidth multiple nohref noresize noshade nowrap ref rel rev rows rowspan scrolling shape span summary tabindex title usemap valign value vlink vspace width".split(" ");
c=new c({whiteList:X,onTagAttr:(ra,ya,Ca)=>{ra=`${ya}="${Ca}"`;if(kb.includes(ya))return ra},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0);a.additionalAllowedTags=g;a.classes=function(ra){const ya=b.acquire();for(var Ca=0;Ca<arguments.length;Ca++){const Ha=arguments[Ca],Ka=typeof Ha;if("string"===Ka)ya.push(Ha);else if(Array.isArray(Ha))ya.push.apply(ya,Ha);else if("object"===Ka)for(const Ua in Ha)Ha[Ua]&&ya.push(Ua)}Ca=ya.join(" ");b.release(ya);return Ca};a.cssTransition=function(ra,
ya){return("enter"===ra?Za:jb)(ya)};a.discardNode=function(ra){this[ra.getAttribute("data-node-ref")]=null};a.getCalciteThemeClass=function(){return`calcite-theme-${B()?"dark":"light"}`};a.getThemeName=A;a.isActivationKey=function(ra){return"Enter"===ra||" "===ra};a.isDarkTheme=B;a.isRTL=function(){return"rtl"===document.dir};a.keepMenuItemWithinView=function(ra,ya){const Ca=ra.getBoundingClientRect();ya=ya.getBoundingClientRect();const Ha=Ca.top,Ka=ya.top;(Ca.top+Ca.height>ya.top+ya.height||Ha<Ka)&&
ra.scrollIntoView({block:"end"})};a.renderingSanitizer=c;a.safeAttrs=kb;a.storeNode=function(ra){this[ra.getAttribute("data-node-ref")]=ra};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/libs/maquette/projector":function(){define(["exports","./dom"],function(a,b){let c;c=Array.prototype.find?(k,q)=>k.find(q):(k,q)=>k.filter(q)[0];let g=(k,q)=>{let v=k;q.forEach(t=>{v=v&&v.children?c(v.children,u=>u.domNode===t):void 0});return v},f=(k,q,v)=>{let t=function(u){v("domEvent",u);var m=q();
{var p=u.currentTarget;var e=m.domNode;let h=[];for(;p&&p!==e;)h.push(p),p=p.parentNode;p=h}p.reverse();m=g(m.getLastRender(),p);k.scheduleRender();let l;m&&(l=m.properties[`on${u.type}`].apply(m.properties.bind||this,arguments));v("domEventProcessed",u);return l};return(u,m,p,e)=>t};a.createProjector=k=>{let q,v=b.applyDefaultProjectionOptions(k),t=v.performanceLogger,u=!0,m,p=!1,e=[],l=[],h=(w,x,C)=>{let D;v.eventHandlerInterceptor=f(q,()=>D,t);D=w(x,C(),v);e.push(D);l.push(C)},n=()=>{m=void 0;
if(u){u=!1;t("renderStart",void 0);for(let w=0;w<e.length;w++){let x=l[w]();t("rendered",void 0);e[w].update(x);t("patched",void 0)}t("renderDone",void 0);u=!0}};return q={renderNow:n,scheduleRender:()=>{m||p||(m=requestAnimationFrame(n))},stop:()=>{m&&(cancelAnimationFrame(m),m=void 0);p=!0},resume:()=>{p=!1;u=!0;q.scheduleRender()},append:(w,x)=>{h(b.dom.append,w,x)},insertBefore:(w,x)=>{h(b.dom.insertBefore,w,x)},merge:(w,x)=>{h(b.dom.merge,w,x)},replace:(w,x)=>{h(b.dom.replace,w,x)},detach:w=>
{for(let x=0;x<l.length;x++)if(l[x]===w)return l.splice(x,1),e.splice(x,1)[0];throw Error("renderFunction was not found");}}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/libs/maquette/dom":function(){define(["exports","./projection"],function(a,b){const c={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(g,f,k)=>{"-"===f.charAt(0)?g.style.setProperty(f,k):g.style[f]=k}};a.applyDefaultProjectionOptions=g=>b.extend(c,g);a.dom={create:(g,f)=>{f=b.extend(c,
f);b.createDom(g,document.createElement("div"),void 0,f);return b.createProjection(g,f)},append:(g,f,k)=>{k=b.extend(c,k);b.createDom(f,g,void 0,k);return b.createProjection(f,k)},insertBefore:(g,f,k)=>{k=b.extend(c,k);b.createDom(f,g.parentNode,g,k);return b.createProjection(f,k)},merge:(g,f,k)=>{k=b.extend(c,k);f.domNode=g;b.initPropertiesAndChildren(g,f,k);return b.createProjection(f,k)},replace:(g,f,k)=>{k=b.extend(c,k);b.createDom(f,g.parentNode,g,k);g.parentNode.removeChild(g);return b.createProjection(f,
k)}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/Popup":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../intl ../core/Collection ../core/events ../core/Handles ../core/Logger ../core/maybe ../core/throttle ../core/watchUtils ../core/accessorSupport/decorators/aliasOf ../core/has ../core/accessorSupport/decorators/cast ../core/jsonMap ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/subclass ./Feature ./Spinner ./Widget ./Feature/support/FeatureContentMixin ./Popup/PopupViewModel ./support/Heading ./support/decorators/accessibleHandler ./support/decorators/messageBundle ./support/decorators/vmEvent ./support/jsxFactory ./support/widgetUtils ../intl/substitute".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r,z,E,F,G,N){function K(Q,W){return void 0===W?`${"esri-popup"}__${Q}`:`${"esri-popup"}__${Q}-${W}`}const I={buttonEnabled:!0,position:"auto",breakpoint:{width:544}},J=q.getLogger("esri.widgets.Popup"),L={closeButton:!0,featureNavigation:!0};c=function(Q){function W(P,X){var U=Q.call(this,P,X)||this;U._blurClose=!1;U._blurContainer=!1;U._containerNode=null;U._mainContainerNode=null;U._featureMenuNode=null;U._actionsMenuNode=null;U._focusClose=!1;
U._focusContainer=!1;U._focusDockButton=!1;U._focusFeatureMenuButton=!1;U._focusActionsMenuButton=!1;U._focusFirstFeature=!1;U._focusFirstAction=!1;U._handles=new k;U._pointerOffsetInPx=16;U._spinner=null;U._feature=null;U._featureMenuIntersectionObserverCallback=([Z])=>{null!=Z&&Z.isIntersecting&&U.viewModel.featurePage++};U._featureMenuIntersectionObserver=new IntersectionObserver(U._featureMenuIntersectionObserverCallback);U._displaySpinnerThrottled=t.throttle(()=>U._displaySpinner(),0);U.actions=
null;U.alignment="auto";U.autoCloseEnabled=null;U.autoOpenEnabled=null;U.defaultPopupTemplateEnabled=null;U.content=null;U.collapsed=!1;U.collapseEnabled=!0;U.dockEnabled=!1;U.featureCount=null;U.featureMenuOpen=!1;U.features=null;U.goToOverride=null;U.headingLevel=2;U.highlightEnabled=null;U.location=null;U.label=void 0;U.maxInlineActions=3;U.messages=null;U.messagesCommon=null;U.promises=null;U.selectedFeature=null;U.selectedFeatureIndex=null;U.spinnerEnabled=!0;U.title=null;U.updateLocationEnabled=
null;U.view=null;U.viewModel=new A;U.visible=null;U.visibleElements={...L};U._addSelectedFeatureIndexHandle();U.own([u.watch(a._assertThisInitialized(U),"viewModel.screenLocation",()=>U._positionContainer()),u.watch(a._assertThisInitialized(U),["viewModel.active","dockEnabled"],()=>U._toggleScreenLocationEnabled()),u.watch(a._assertThisInitialized(U),"viewModel.screenLocation",(Z,oa)=>{!!Z!==!!oa&&U.reposition()}),u.watch(a._assertThisInitialized(U),["viewModel.view.padding","viewModel.view.size",
"viewModel.active","viewModel.location","alignment"],()=>U.reposition()),u.watch(a._assertThisInitialized(U),"spinnerEnabled",Z=>U._spinnerEnabledChange(Z)),u.watch(a._assertThisInitialized(U),"viewModel.view.size",(Z,oa)=>U._updateDockEnabledForViewSize(Z,oa)),u.watch(a._assertThisInitialized(U),"viewModel.view",(Z,oa)=>U._viewChange(Z,oa)),u.watch(a._assertThisInitialized(U),"viewModel.view.ready",(Z,oa)=>U._viewReadyChange(Z,oa)),u.watch(a._assertThisInitialized(U),["viewModel.waitingForResult",
"viewModel.location"],()=>{U._hideSpinner();U._displaySpinnerThrottled()}),u.watch(a._assertThisInitialized(U),"selectedFeatureWidget.viewModel.title",Z=>U._setTitleFromFeatureWidget(Z)),u.watch(a._assertThisInitialized(U),["selectedFeatureWidget.viewModel.content","selectedFeatureWidget.viewModel.waitingForContent"],()=>U._setContentFromFeatureWidget()),u.whenFalse(a._assertThisInitialized(U),"collapsed",()=>{var Z,oa;"xsmall"===(null==(Z=U.viewModel)?void 0:null==(oa=Z.view)?void 0:oa.widthBreakpoint)&&
U.viewModel.active&&U.collapseEnabled&&U.viewModel.centerAtLocation()}),u.on(a._assertThisInitialized(U),"viewModel.allActions","change",()=>U._watchActions()),u.init(a._assertThisInitialized(U),"viewModel.allActions",()=>U._watchActions()),u.watch(a._assertThisInitialized(U),"viewModel.featureViewModels",()=>U._featureMenuViewportScrollTop())]);return U}a._inheritsLoose(W,Q);var V=W.prototype;V.destroy=function(){var P,X;this._destroySelectedFeatureWidget();this._destroySpinner();null==(P=this._handles)?
void 0:P.destroy();this._unobserveFeatureMenuObserver();null==(X=this._featureMenuIntersectionObserver)?void 0:X.disconnect();this._handles=null};V.castVisibleElements=function(P){return{...L,...P}};V.blur=function(){const {active:P}=this.viewModel;P||J.warn("Popup can only be blurred when currently active.");this.visibleElements.closeButton?this._blurClose=!0:this._blurContainer=!0;this.scheduleRender()};V.clear=function(){this.viewModel.clear()};V.close=function(){this.visible=!1};V.fetchFeatures=
function(P,X){return this.viewModel.fetchFeatures(P,X)};V.focus=function(){const {active:P}=this.viewModel;P||J.warn("Popup can only be focused when currently active.");this.visibleElements.closeButton?this._focusClose=!0:this._focusContainer=!0;this.scheduleRender()};V.next=function(){return this.viewModel.next()};V.open=function(P){var X,U;this._handles.remove("selected-index");const Z={collapsed:P?!!P.collapsed:!1,actionsMenuOpen:P?!!P.actionsMenuOpen:!1,featureMenuOpen:P?!!P.featureMenuOpen:!1};
"xsmall"===(null==(X=this.viewModel)?void 0:null==(U=X.view)?void 0:U.widthBreakpoint)&&(Z.collapsed=!0);this.set(Z);this.viewModel.open(P);this._addSelectedFeatureIndexHandle()};V.previous=function(){return this.viewModel.previous()};V.reposition=function(){this.renderNow();this._positionContainer();this._setCurrentAlignment()};V.triggerAction=function(P){this.viewModel.triggerAction(P)};V.render=function(){var P,X,U,Z;const {actionsMenuOpen:oa,dockEnabled:xa,featureMenuVisible:Ea,dividedActions:fa,
currentAlignment:ia,currentDockPosition:da}=this,{active:ea}=this.viewModel;var {menuActions:la}=fa;la=ea&&1<la.length&&oa;const va=null==(P=this.selectedFeature)?void 0:null==(X=P.layer)?void 0:X.title;P=null==(U=this.selectedFeature)?void 0:null==(Z=U.layer)?void 0:Z.id;return F.tsx("div",{class:this.classes("esri-popup",{["esri-popup--aligned-top-center"]:"top-center"===ia,["esri-popup--aligned-bottom-center"]:"bottom-center"===ia,["esri-popup--aligned-top-left"]:"top-left"===ia,["esri-popup--aligned-bottom-left"]:"bottom-left"===
ia,["esri-popup--aligned-top-right"]:"top-right"===ia,["esri-popup--aligned-bottom-right"]:"bottom-right"===ia,["esri-popup--is-docked"]:ea&&xa,["esri-popup--shadow"]:ea&&!xa,["esri-popup--is-docked-top-left"]:"top-left"===da,["esri-popup--is-docked-top-center"]:"top-center"===da,["esri-popup--is-docked-top-right"]:"top-right"===da,["esri-popup--is-docked-bottom-left"]:"bottom-left"===da,["esri-popup--is-docked-bottom-center"]:"bottom-center"===da,["esri-popup--is-docked-bottom-right"]:"bottom-right"===
da,["esri-popup--feature-menu-open"]:Ea,["esri-popup--actions-menu-open"]:la}),role:"presentation","data-layer-title":va,"data-layer-id":P,bind:this,afterCreate:this._positionContainer,afterUpdate:this._positionContainer},ea?[this.renderMainContainer(),this.renderPointer()]:null)};V.renderLoadingIcon=function(){return F.tsx("span",{"aria-hidden":"true",class:this.classes("esri-popup__icon","esri-icon-loading-indicator","esri-rotating")})};V.renderNavigationLoading=function(){const {messagesCommon:P}=
this;return this.viewModel.pendingPromisesCount?F.tsx("div",{key:K("loading-container"),role:"presentation",class:"esri-popup__loading-container","aria-label":P.loading,title:P.loading},this.renderLoadingIcon()):null};V.renderPreviousIcon=function(){const P=G.isRTL();return F.tsx("span",{"aria-hidden":"true",class:this.classes("esri-popup__icon",{["esri-icon-right-triangle-arrow"]:P,["esri-popup__pagination-previous-icon--rtl"]:P,["esri-icon-left-triangle-arrow"]:!P,["esri-popup__pagination-previous-icon"]:!P})})};
V.renderPreviousButton=function(){const {messages:P}=this;return F.tsx("div",{role:"button",tabIndex:0,bind:this,onclick:this._previous,onkeydown:this._previous,class:this.classes("esri-popup__button","esri-popup__pagination-previous"),"aria-label":P.previous,title:P.previous},this.renderPreviousIcon())};V.renderNextIcon=function(){const P=G.isRTL();return F.tsx("span",{"aria-hidden":"true",class:this.classes("esri-popup__icon",{["esri-icon-left-triangle-arrow"]:P,["esri-popup__pagination-next-icon--rtl"]:P,
["esri-icon-right-triangle-arrow"]:!P,["esri-popup__pagination-next-icon"]:!P})})};V.renderNextButton=function(){const {messages:P}=this;return F.tsx("div",{role:"button",tabIndex:0,bind:this,onclick:this._next,onkeydown:this._next,class:this.classes("esri-popup__button","esri-popup__pagination-next"),"aria-label":P.next,title:P.next},this.renderNextIcon())};V.renderFeatureMenuButton=function(){const {featureMenuOpen:P,featureMenuId:X,messagesCommon:U}=this,{featureCount:Z,selectedFeatureIndex:oa}=
this.viewModel;return F.tsx("div",{role:"button",tabIndex:0,bind:this,onclick:this._toggleFeatureMenu,onkeydown:this._toggleFeatureMenu,afterCreate:this._focusFeatureMenuButtonNode,afterUpdate:this._focusFeatureMenuButtonNode,class:this.classes("esri-popup__button","esri-popup__feature-menu-button"),"aria-haspopup":"true","aria-controls":X,"aria-expanded":P.toString(),"aria-label":U.menu,title:U.menu},this._getPageText(Z,oa))};V.renderNavigationButtons=function(){return this.featureNavigationVisible?
[this.renderPreviousButton(),this.renderNavigationLoading()||this.renderFeatureMenuButton(),this.renderNextButton()]:null};V.renderDockIcon=function(){const {dockEnabled:P}=this,X=this._wouldDockTo();return F.tsx("span",{"aria-hidden":"true",class:this.classes({["esri-icon-minimize"]:P,["esri-popup__icon--dock-icon"]:!P,["esri-icon-dock-right"]:!P&&("top-right"===X||"bottom-right"===X),["esri-icon-dock-left"]:!P&&("top-left"===X||"bottom-left"===X),["esri-icon-maximize"]:!P&&"top-center"===X,["esri-icon-dock-bottom"]:!P&&
"bottom-center"===X},"esri-popup__icon")})};V.renderDockButton=function(){var P,X,U;const {dockEnabled:Z,messages:oa}=this,xa=null==(P=this.viewModel)?void 0:null==(X=P.view)?void 0:X.widthBreakpoint;P=Z?oa.undock:oa.dock;return"xsmall"!==xa&&null!=(U=this.dockOptions)&&U.buttonEnabled?F.tsx("div",{role:"button","aria-label":P,title:P,tabIndex:0,bind:this,onclick:this._toggleDockEnabled,onkeydown:this._toggleDockEnabled,afterCreate:this._focusDockButtonNode,afterUpdate:this._focusDockButtonNode,class:this.classes("esri-popup__button",
"esri-popup__button--dock")},this.renderDockIcon()):null};V.renderTitle=function(){const {title:P}=this.viewModel,{titleId:X,collapsible:U,contentCollapsed:Z,messagesCommon:oa}=this;var xa={["esri-popup__header-container--button"]:U};const Ea=F.tsx(B.Heading,{level:this.headingLevel,class:"esri-popup__header-title",innerHTML:P});xa=U?F.tsx("button",{key:`${P}--collapsible`,id:X,title:Z?oa.expand:oa.collapse,bind:this,enterAnimation:this._createFeatureUpdatedAnimation(),class:this.classes("esri-popup__header-container",
xa),"aria-expanded":Z?"false":"true",onclick:this._toggleCollapsed},Ea):F.tsx("div",{key:P,id:X,bind:this,enterAnimation:this._createFeatureUpdatedAnimation(),class:this.classes("esri-popup__header-container",xa)},Ea);return P?xa:null};V.renderCloseIcon=function(){return F.tsx("span",{"aria-hidden":"true",class:this.classes("esri-popup__icon","esri-icon-close")})};V.renderCloseButton=function(){const {visibleElements:P,messagesCommon:X}=this;return P.closeButton?F.tsx("div",{role:"button",tabIndex:0,
bind:this,onclick:this._close,onkeydown:this._close,class:"esri-popup__button","aria-label":X.close,title:X.close,afterCreate:this._closeButtonNodeUpdated,afterUpdate:this._closeButtonNodeUpdated},this.renderCloseIcon()):null};V.renderHeader=function(){return F.tsx("header",{class:"esri-popup__header"},this.renderTitle(),F.tsx("div",{class:"esri-popup__header-buttons"},this.renderDockButton(),this.renderCloseButton()))};V.renderContentContainer=function(){const {contentId:P,hasContent:X,contentCollapsed:U}=
this,{content:Z}=this.viewModel;return X&&!U?F.tsx("article",{key:Z,enterAnimation:this._createFeatureUpdatedAnimation(),id:P,class:"esri-popup__content"},this.renderContent()):null};V.renderActionsMenuButton=function(){const {actionsMenuId:P,actionsMenuButtonId:X,actionsMenuOpen:U,dividedActions:Z,messagesCommon:oa}=this,xa=U?oa.close:oa.open,{menuActions:Ea}=Z;return Ea.length?F.tsx("div",{key:K("actions-menu-button"),class:this.classes("esri-popup__button","esri-popup__actions-menu-button"),role:"button",
id:X,"aria-haspopup":"true","aria-controls":U?P:null,tabIndex:0,bind:this,onclick:this._toggleActionsMenu,onkeydown:this._toggleActionsMenu,afterCreate:this._focusActionsMenuButtonNode,afterUpdate:this._focusActionsMenuButtonNode,"aria-label":xa,title:xa},F.tsx("span",{"aria-hidden":"true",class:"esri-icon-handle-horizontal"})):null};V.renderMenuActions=function(){const {actionsMenuId:P,actionsMenuButtonId:X,actionsMenuOpen:U,dividedActions:Z}=this,{menuActions:oa,inlineActions:xa}=Z;return oa.length&&
U?F.tsx("ul",{id:P,role:"menu","aria-labelledby":X,key:K("actions"),class:"esri-popup__actions",bind:this,onkeyup:this._handleActionMenuKeyup,afterCreate:this._actionsMenuNodeUpdated,afterUpdate:this._actionsMenuNodeUpdated},oa.toArray().map((Ea,fa)=>this.renderAction({action:Ea,index:fa+xa.length,type:"menu-item"}))):null};V.renderInlineActions=function(){const {inlineActions:P}=this.dividedActions;return!!P.length&&P.toArray().map((X,U)=>this.renderAction({action:X,index:U,type:"inline"}))};V.renderInlineActionsContainer=
function(){const {inlineActions:P,menuActions:X}=this.dividedActions,U=!!P.length,Z=!!X.length;return U||Z?F.tsx("div",{key:"inline-actions-container","data-inline-actions":U.toString(),"data-menu-actions":Z.toString(),class:"esri-popup__inline-actions-container"},this.renderInlineActions(),this.renderActionsMenuButton(),this.renderMenuActions()):null};V.renderNavigation=function(){return this.featureNavigationVisible?F.tsx("section",{key:K("navigation"),class:this.classes("esri-popup__navigation")},
this.renderNavigationButtons()):null};V.renderFooter=function(){const {featureNavigationVisible:P,dividedActions:X}=this,{inlineActions:U,menuActions:Z}=X,oa=!!U.length,xa={["esri-popup__footer--has-pagination"]:P,["esri-popup__footer--has-actions"]:oa,["esri-popup__footer--has-actions-menu"]:!!Z.length};return P||oa?F.tsx("div",{key:K("feature-buttons"),class:this.classes("esri-popup__footer",xa)},this.renderInlineActionsContainer(),this.renderNavigation()):null};V.renderFeatureMenuContainer=function(){var {messages:P}=
this;const {featureViewModels:X,isLoadingFeature:U}=this.viewModel;P=N.substitute(P.selectedFeatures,{total:X.length});return F.tsx("section",{key:K("menu"),class:"esri-popup__feature-menu"},F.tsx("strong",{class:"esri-popup__feature-menu-header"},P),F.tsx("nav",{bind:this,class:"esri-popup__feature-menu-viewport","data-node-ref":"_featureMenuViewportNode",afterCreate:G.storeNode},this.renderFeatureMenu(),F.tsx("div",{class:"esri-popup__feature-menu-observer",bind:this,afterCreate:this._featureMenuIntersectionObserverCreated}),
U?F.tsx("div",{class:"esri-popup__feature-menu-loader"},this.renderLoadingIcon()):null))};V.renderPointer=function(){return this.dockEnabled?null:F.tsx("div",{key:K("pointer"),class:"esri-popup__pointer",role:"presentation"},F.tsx("div",{class:this.classes("esri-popup__pointer-direction","esri-popup--shadow")}))};V.renderMainContainer=function(){const {dockEnabled:P,currentAlignment:X,currentDockPosition:U,titleId:Z,contentId:oa,collapsible:xa,hasContent:Ea,contentCollapsed:fa,visibleElements:ia}=
this,{title:da}=this.viewModel,ea="bottom-left"===X||"bottom-center"===X||"bottom-right"===X||"top-left"===U||"top-center"===U||"top-right"===U,la="top-left"===X||"top-center"===X||"top-right"===X||"bottom-left"===U||"bottom-center"===U||"bottom-right"===U;return F.tsx("div",{class:this.classes("esri-popup__main-container","esri-widget",{["esri-popup--shadow"]:P,["esri-popup--is-collapsible"]:xa,["esri-popup--is-collapsed"]:fa}),tabIndex:ia.closeButton?null:-1,role:"dialog","aria-labelledby":da?Z:
"","aria-describedby":Ea&&!fa?oa:"",bind:this,onkeyup:this._handleMainKeyup,afterCreate:this._mainContainerNodeUpdated,afterUpdate:this._mainContainerNodeUpdated},ea?this.renderFooter():null,ea?this.renderFeatureMenuContainer():null,this.renderHeader(),this.renderContentContainer(),la?this.renderFooter():null,la?this.renderFeatureMenuContainer():null)};V.renderContent=function(){var P;const X=null==(P=this.viewModel)?void 0:P.content;return X?"string"===typeof X?F.tsx("div",{key:X,innerHTML:X}):this.renderNodeContent(X):
null};V.renderActionText=function(P){return F.tsx("span",{key:"text",class:"esri-popup__action-text"},P)};V.renderActionIcon=function(P){const X=this._getActionClass(P),U=this._getActionImage(P),Z={["esri-icon-loading-indicator"]:P.active,["esri-rotating"]:P.active,["esri-popup__icon"]:!!X,["esri-popup__action-image"]:!P.active&&!!U};X&&(Z[X]=!P.active);return F.tsx("span",{key:"icon","aria-hidden":"true",class:this.classes("esri-popup__icon",Z),styles:this._getIconStyles(U)})};V.renderAction=function(P){const {action:X,
index:U,type:Z}=P;P=this._getActionTitle(X);const oa={["esri-popup__action"]:"toggle"!==X.type,["esri-popup__action-toggle"]:"toggle"===X.type,["esri-popup__action-toggle--on"]:"toggle"===X.type&&X.value,["esri-popup__button--disabled"]:X.disabled},xa=[this.renderActionIcon(X),this.renderActionText(P)];P="menu-item"===Z?F.tsx("li",{key:X.uid,role:"menuitem",tabIndex:0,title:P,"aria-label":P,class:this.classes("esri-popup__button",oa),onkeyup:this._handleActionMenuItemKeyup,bind:this,"data-action-index":U,
onclick:this._triggerAction,onkeydown:this._triggerAction},xa):F.tsx("div",{key:X.uid,role:"button",tabIndex:0,title:P,"aria-label":P,class:this.classes("esri-popup__button",oa),onkeyup:this._handleActionMenuItemKeyup,bind:this,"data-action-index":U,onclick:this._triggerAction,onkeydown:this._triggerAction},xa);return X.visible?P:null};V.renderFeatureMenuItem=function(P,X){const {messages:U,messagesCommon:Z}=this,{selectedFeatureIndex:oa,selectedFeatureViewModel:xa}=this.viewModel;var Ea=P===xa;const fa=
{["esri-popup__feature-menu-item--selected"]:Ea};Ea=Ea?F.tsx("span",{key:K(`feature-menu-selected-feature-${oa}`),title:U.selectedFeature,"aria-label":U.selectedFeature,class:"esri-icon-check-mark"}):null;P=F.tsx("span",{innerHTML:P.title||Z.untitled});return F.tsx("li",{role:"menuitem",tabIndex:-1,key:K(`feature-menu-feature-${oa}`),class:this.classes(fa,"esri-popup__feature-menu-item"),bind:this,"data-feature-index":X,onkeyup:this._handleFeatureMenuItemKeyup,onclick:this._selectFeature,onkeydown:this._selectFeature},
F.tsx("span",{class:"esri-popup__feature-menu-title"},P,Ea))};V.renderFeatureMenu=function(){const {featureMenuId:P}=this,{featureViewModels:X}=this.viewModel;return 1<X.length?F.tsx("ol",{class:"esri-popup__feature-menu-list",id:P,bind:this,afterCreate:this._featureMenuNodeUpdated,afterUpdate:this._featureMenuNodeUpdated,onkeyup:this._handleFeatureMenuKeyup,role:"menu"},X.filter(U=>!!U.graphic).map((U,Z)=>this.renderFeatureMenuItem(U,Z))):null};V._getActionTitle=function(P){const {messages:X,selectedFeature:U,
messagesCommon:Z}=this,{id:oa}=P,xa=null==U?void 0:U.attributes;return(P="zoom-to-feature"===oa?N.substitute(P.title,{messages:X}):"remove-selected-feature"===oa?N.substitute(P.title,{messages:Z}):"zoom-to-clustered-features"===oa?N.substitute(P.title,{messages:X}):"browse-clustered-features"===oa?N.substitute(P.title,{messages:X}):P.title)&&xa?N.substitute(P,xa):P};V._getActionClass=function(P){var {selectedFeature:X}=this;X=null==X?void 0:X.attributes;const {className:U,image:Z}=P;return(P=Z||U?
U:"esri-icon-default-action")&&X?N.substitute(P,X):P};V._getActionImage=function(P){var {selectedFeature:X}=this;X=null==X?void 0:X.attributes;({image:P}=P);return P&&X?N.substitute(P,X):P};V._createFeatureUpdatedAnimation=function(){return G.cssTransition("enter","esri-popup--feature-updated")};V._getInlineActionCount=function(){const {maxInlineActions:P,featureNavigationVisible:X}=this;if("number"!==typeof P)return null;const U=Math.round(P);return Math.max(X?U-1:U,0)};V._watchActions=function(){const {allActions:P}=
this.viewModel;this.notifyChange("dividedActions");this._handles.remove("actions");P&&P.forEach(X=>{this._handles.add(u.watch(X,"active className disabled id title image visible".split(" "),()=>this.scheduleRender()),"actions")})};V._divideActions=function(){const {allActions:P}=this.viewModel,X=this._getInlineActionCount(),U=null===X,Z=0===X;return{inlineActions:U?P.slice(0):Z?new g:P.slice(0,X),menuActions:U?new g:Z?P.slice(0):P.slice(X)}};V._featureMenuOpenChanged=function(P){P?this._focusFirstFeature=
!0:this._focusFeatureMenuButton=!0};V._actionsMenuOpenChanged=function(P){P?this._focusFirstAction=!0:this._focusActionsMenuButton=!0};V._setTitleFromFeatureWidget=function(P){const {selectedFeatureWidget:X}=this;X&&(this.viewModel.title=P||"")};V._setContentFromFeatureWidget=function(){const {selectedFeatureWidget:P}=this;P&&(this.viewModel.content=P)};V._unobserveFeatureMenuObserver=function(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)};
V._featureMenuIntersectionObserverCreated=function(P){this._unobserveFeatureMenuObserver();this._featureMenuIntersectionObserver.observe(P);this._featureMenuIntersectionObserverNode=P};V._handleFeatureMenuKeyup=function(P){"Escape"===f.eventKey(P)&&(P.stopPropagation(),this._focusFeatureMenuButton=!0,this.featureMenuOpen=!1,this.scheduleRender())};V._handleActionMenuKeyup=function(P){"Escape"===f.eventKey(P)&&(P.stopPropagation(),this._focusActionsMenuButton=!0,this.actionsMenuOpen=!1,this.scheduleRender())};
V._handleFeatureMenuItemKeyup=function(P){const X=f.eventKey(P);var {_featureMenuNode:U}=this;const Z=P.currentTarget["data-feature-index"];if(U){U=U.querySelectorAll("li");var oa=U.length;"ArrowUp"===X?(P.stopPropagation(),U[(Z-1+oa)%oa].focus()):"ArrowDown"===X?(P.stopPropagation(),U[(Z+1+oa)%oa].focus()):"Home"===X?(P.stopPropagation(),U[0].focus()):"End"===X&&(P.stopPropagation(),U[U.length-1].focus())}};V._handleActionMenuItemKeyup=function(P){const X=f.eventKey(P);var {_actionsMenuNode:U}=this;
const Z=P.currentTarget["data-action-index"];if(U){U=U.querySelectorAll("li");var oa=U.length;"ArrowUp"===X?(P.stopPropagation(),U[(Z-1+oa)%oa].focus()):"ArrowDown"===X?(P.stopPropagation(),U[(Z+1+oa)%oa].focus()):"Home"===X?(P.stopPropagation(),U[0].focus()):"End"===X&&(P.stopPropagation(),U[U.length-1].focus())}};V._handleMainKeyup=function(P){const X=f.eventKey(P);"ArrowLeft"===X&&(P.stopPropagation(),this.previous());"ArrowRight"===X&&(P.stopPropagation(),this.next())};V._spinnerEnabledChange=
function(P){this._destroySpinner();P&&(P=this.get("viewModel.view"),this._createSpinner(P))};V._hideSpinner=function(){const {_spinner:P}=this;P&&(P.location=null,P.hide())};V._displaySpinner=function(){const {_spinner:P}=this;if(P){var {location:X,waitingForResult:U}=this.viewModel;U?P.show({location:X}):P.hide()}};V._getIconStyles=function(P){return{"background-image":P?`url(${P})`:""}};V._addSelectedFeatureIndexHandle=function(){const P=u.watch(this,"viewModel.selectedFeatureIndex",(X,U)=>this._selectedFeatureIndexUpdated(X,
U));this._handles.add(P,"selected-index")};V._selectedFeatureIndexUpdated=function(P,X){const {featureCount:U}=this;U&&P!==X&&-1!==P&&(this.featureMenuOpen=this.actionsMenuOpen=!1)};V._destroySelectedFeatureWidget=function(){const {_feature:P}=this;P&&(P.viewModel=null,P&&!P.destroyed&&P.destroy());this._feature=null};V._isScreenLocationWithinView=function(P,X){return-1<P.x&&-1<P.y&&P.x<=X.width&&P.y<=X.height};V._isOutsideView=function(P){const {popupHeight:X,popupWidth:U,screenLocation:Z,side:oa,
view:xa}=P;if(isNaN(U)||isNaN(X)||!xa||!Z)return!1;P=xa.padding;return"right"===oa&&Z.x+U/2>xa.width-P.right||"left"===oa&&Z.x-U/2<P.left||"top"===oa&&Z.y-X<P.top||"bottom"===oa&&Z.y+X>xa.height-P.bottom?!0:!1};V._calculateAutoAlignment=function(P){if("auto"!==P)return P;const {_pointerOffsetInPx:X,_containerNode:U,_mainContainerNode:Z,viewModel:oa}=this,{screenLocation:xa,view:Ea}=oa;if(v.isNone(xa)||!Ea||!U)return"top-center";if(!this._isScreenLocationWithinView(xa,Ea))return this._get("currentAlignment")||
"top-center";var fa=(P=Z?window.getComputedStyle(Z,null):null)?parseInt(P.getPropertyValue("max-height").replace(/[^-\d\.]/g,""),10):0,ia=P?parseInt(P.getPropertyValue("height").replace(/[^-\d\.]/g,""),10):0;const {height:da,width:ea}=U.getBoundingClientRect();P=ea+X;const la=Math.max(da,fa,ia)+X;fa=this._isOutsideView({popupHeight:la,popupWidth:P,screenLocation:xa,side:"right",view:Ea});ia=this._isOutsideView({popupHeight:la,popupWidth:P,screenLocation:xa,side:"left",view:Ea});const va=this._isOutsideView({popupHeight:la,
popupWidth:P,screenLocation:xa,side:"top",view:Ea});P=this._isOutsideView({popupHeight:la,popupWidth:P,screenLocation:xa,side:"bottom",view:Ea});return ia?va?"bottom-right":"top-right":fa?va?"bottom-left":"top-left":va?P?"top-center":"bottom-center":"top-center"};V._callCurrentAlignment=function(P){return"function"===typeof P?P.call(this):P};V._getCurrentAlignment=function(){const {alignment:P,dockEnabled:X}=this;return X||!this.viewModel.active?null:this._calculatePositionResult(this._calculateAutoAlignment(this._callCurrentAlignment(P)))};
V._setCurrentAlignment=function(){this._set("currentAlignment",this._getCurrentAlignment())};V._setCurrentDockPosition=function(){this._set("currentDockPosition",this._getCurrentDockPosition())};V._calculatePositionResult=function(P){const X=["left","right"];G.isRTL()&&X.reverse();return P.replace(/leading/gi,X[0]).replace(/trailing/gi,X[1])};V._callDockPosition=function(P){return"function"===typeof P?P.call(this):P};V._getDockPosition=function(){var P;return this._calculatePositionResult(this._calculateAutoDockPosition(this._callDockPosition(null==
(P=this.dockOptions)?void 0:P.position)))};V._getCurrentDockPosition=function(){return this.dockEnabled&&this.viewModel.active?this._getDockPosition():null};V._wouldDockTo=function(){return this.dockEnabled?null:this._getDockPosition()};V._calculateAutoDockPosition=function(P){var X;if("auto"!==P)return P;P=null==(X=this.viewModel)?void 0:X.view;X=G.isRTL()?"top-left":"top-right";if(!P)return X;var U=P.padding||{left:0,right:0,top:0,bottom:0};U=P.width-U.left-U.right;({breakpoints:P}=P);return P&&
U<=P.xsmall?"bottom-center":X};V._positionContainer=function(P=this._containerNode){P&&(this._containerNode=P);if(P){var {screenLocation:X}=this.viewModel,{width:U}=P.getBoundingClientRect();if(X=this._calculatePositionStyle(X,U))P.style.top=X.top,P.style.left=X.left,P.style.bottom=X.bottom,P.style.right=X.right}};V._calculateFullWidth=function(P){const {currentAlignment:X,_pointerOffsetInPx:U}=this;return"top-left"===X||"bottom-left"===X||"top-right"===X||"bottom-right"===X?P+U:P};V._calculateAlignmentPosition=
function(P,X,U,Z){const {currentAlignment:oa,_pointerOffsetInPx:xa}=this;Z/=2;const Ea=U.height-X;U=U.width-P;const {padding:fa}=this.view;if("bottom-center"===oa)return{top:X+xa-fa.top,left:P-Z-fa.left};if("top-left"===oa)return{bottom:Ea+xa-fa.bottom,right:U+xa-fa.right};if("bottom-left"===oa)return{top:X+xa-fa.top,right:U+xa-fa.right};if("top-right"===oa)return{bottom:Ea+xa-fa.bottom,left:P+xa-fa.left};if("bottom-right"===oa)return{top:X+xa-fa.top,left:P+xa-fa.left};if("top-center"===oa)return{bottom:Ea+
xa-fa.bottom,left:P-Z-fa.left}};V._calculatePositionStyle=function(P,X){const {dockEnabled:U,view:Z}=this;if(Z){if(U)return{left:"",top:"",right:"",bottom:""};if(!v.isNone(P)&&X&&(X=this._calculateFullWidth(X),P=this._calculateAlignmentPosition(P.x,P.y,Z,X)))return{top:void 0!==P.top?`${P.top}px`:"auto",left:void 0!==P.left?`${P.left}px`:"auto",bottom:void 0!==P.bottom?`${P.bottom}px`:"auto",right:void 0!==P.right?`${P.right}px`:"auto"}}};V._viewChange=function(P,X){P&&X&&(this.close(),this.clear())};
V._viewReadyChange=function(P,X){P?(P=this.get("viewModel.view"),this._wireUpView(P)):X&&(this.close(),this.clear())};V._wireUpView=function(P){this._destroySpinner();if(P){var {spinnerEnabled:X}=this;X&&this._createSpinner(P);this._setDockEnabledForViewSize(this.dockOptions)}};V._dockingThresholdCrossed=function(P,X,U){const [Z,oa]=P,[xa,Ea]=X,{width:fa,height:ia}=U;return Z<=fa&&xa>fa||Z>fa&&xa<=fa||oa<=ia&&Ea>ia||oa>ia&&Ea<=ia};V._updateDockEnabledForViewSize=function(P,X){if(P&&X){var U=this.get("viewModel.view.padding")||
{left:0,right:0,top:0,bottom:0},Z=U.left+U.right,oa=U.top+U.bottom;U=[];var xa=[];U[0]=P[0]-Z;U[1]=P[1]-oa;xa[0]=X[0]-Z;xa[1]=X[1]-oa;({dockOptions:P}=this);this._dockingThresholdCrossed(U,xa,P.breakpoint)&&this._setDockEnabledForViewSize(P);this._setCurrentDockPosition()}};V._focusDockButtonNode=function(P){this._focusDockButton&&(this._focusDockButton=!1,P.focus())};V._closeButtonNodeUpdated=function(P){this._focusClose?(this._focusClose=!1,P.focus()):this._blurClose&&(this._blurClose=!1,P.blur())};
V._mainContainerNodeUpdated=function(P){this._mainContainerNode=P;this._focusContainer?(this._focusContainer=!1,P.focus()):this._blurContainer&&(this._blurContainer=!1,P.blur())};V._featureMenuNodeUpdated=function(P){(this._featureMenuNode=P)&&this._focusFirstFeature&&(this._focusFirstFeature=!1,P=P.querySelectorAll("li"),P.length&&P[0].focus())};V._actionsMenuNodeUpdated=function(P){(this._actionsMenuNode=P)&&this._focusFirstAction&&(this._focusFirstAction=!1,P=P.querySelectorAll("li"),P.length&&
P[0].focus())};V._focusFeatureMenuButtonNode=function(P){this._focusFeatureMenuButton&&(this._focusFeatureMenuButton=!1,P.focus())};V._focusActionsMenuButtonNode=function(P){this._focusActionsMenuButton&&(this._focusActionsMenuButton=!1,P.focus())};V._featureMenuViewportScrollTop=function(){this._featureMenuViewportNode&&(this._featureMenuViewportNode.scrollTop=0)};V._toggleScreenLocationEnabled=function(){const {dockEnabled:P,viewModel:X}=this;X&&(X.screenLocationEnabled=X.active&&!P)};V._shouldDockAtCurrentViewSize=
function(P){var X,U;P=P.breakpoint;const Z=null==(X=this.viewModel)?void 0:null==(U=X.view)?void 0:U.ui;if(!Z)return!1;const {width:oa,height:xa}=Z;if(isNaN(oa)||isNaN(xa))return!1;X=P.hasOwnProperty("width")&&oa<=P.width;U=P.hasOwnProperty("height")&&xa<=P.height;return X||U};V._setDockEnabledForViewSize=function(P){P.breakpoint&&(this.dockEnabled=this._shouldDockAtCurrentViewSize(P))};V._getPageText=function(P,X){return this.featureNavigationVisible?N.substitute(this.messages.pageText,{index:X+
1,total:P}):null};V._destroySpinner=function(){const {_spinner:P,view:X}=this;P&&(X&&X.ui&&X.ui.remove(this._spinner,"popup-spinner"),P.destroy(),this._spinner=null)};V._createSpinner=function(P){P&&(this._spinner=new x({view:P}),P.ui.add(this._spinner,{key:"popup-spinner",position:"manual"}))};V._toggleCollapsed=function(){this.collapsed=!this.collapsed};V._close=function(){this.close();this.view&&this.view.focus()};V._toggleDockEnabled=function(){this.dockEnabled=!this.dockEnabled;this._focusDockButton=
!0;this.scheduleRender()};V._toggleFeatureMenu=function(){const P=!this.featureMenuOpen;this._featureMenuOpenChanged(P);this.actionsMenuOpen=!1;this.featureMenuOpen=P};V._toggleActionsMenu=function(){const P=!this.actionsMenuOpen;this._actionsMenuOpenChanged(P);this.featureMenuOpen=!1;this.actionsMenuOpen=P};V._triggerAction=function(P){P=P.currentTarget["data-action-index"];const X=this.viewModel.allActions.getItemAt(P);X&&"toggle"===X.type&&(X.value=!X.value);this.actionsMenuOpen=!1;this.viewModel.triggerAction(P)};
V._selectFeature=function(P){P=P.currentTarget["data-feature-index"];isNaN(P)||(this.viewModel.selectedFeatureIndex=P);this.featureMenuOpen=!1;this._focusFeatureMenuButton=!0;this.scheduleRender()};V._next=function(){this.next()};V._previous=function(){this.previous()};a._createClass(W,[{key:"actionsMenuId",get:function(){return`${this.id}-actions-menu`}},{key:"actionsMenuButtonId",get:function(){return`${this.id}-actions-menu-button`}},{key:"featureMenuId",get:function(){return`${this.id}-feature-menu`}},
{key:"titleId",get:function(){return`${this.id}-popup-title`}},{key:"contentId",get:function(){return`${this.id}-popup-content`}},{key:"hasContent",get:function(){var P,X,U,Z,oa;return!!(this.selectedFeatureWidget?(null==(P=this.selectedFeatureWidget)?0:null==(X=P.viewModel)?0:X.waitingForContent)||(null==(U=this.selectedFeatureWidget)?0:null==(Z=U.viewModel)?0:Z.content):null==(oa=this.viewModel)?0:oa.content)}},{key:"featureNavigationVisible",get:function(){return this.viewModel.active&&1<this.viewModel.featureCount&&
this.visibleElements.featureNavigation}},{key:"collapsible",get:function(){return!!(this.collapseEnabled&&this.viewModel.title&&this.hasContent)}},{key:"featureMenuVisible",get:function(){return this.featureNavigationVisible&&this.featureMenuOpen}},{key:"contentCollapsed",get:function(){return this.collapsible&&!this.featureMenuVisible&&this.collapsed}},{key:"dividedActions",get:function(){return this._divideActions()}},{key:"actionsMenuOpen",get:function(){return this.viewModel.active?this._get("actionsMenuOpen"):
!1},set:function(P){this._set("actionsMenuOpen",!!P)}},{key:"currentAlignment",get:function(){return this._getCurrentAlignment()}},{key:"currentDockPosition",get:function(){return this._getCurrentDockPosition()}},{key:"dockOptions",get:function(){return this._get("dockOptions")||I},set:function(P){var X={...I};const U=this.get("viewModel.view.breakpoints");var Z={};U&&(Z.width=U.xsmall,Z.height=U.xsmall);P={...X,...P};X={...X.breakpoint,...Z};({breakpoint:Z}=P);!0===Z?P.breakpoint=X:"object"===typeof Z&&
(P.breakpoint={...X,...Z});this._set("dockOptions",P);this._setCurrentDockPosition();this.reposition()}},{key:"selectedFeatureWidget",get:function(){const {_feature:P,visibleElements:X,headingLevel:U}=this,{selectedFeatureViewModel:Z}=this.viewModel,oa={...X,title:!1};if(!Z)return null;P?(P.viewModel=Z,P.visibleElements=oa):this._feature=new w({headingLevel:U+1,viewModel:Z,visibleElements:oa});return this._feature}}]);return W}(D.FeatureContentMixin(C));b.__decorate([h.property({readOnly:!0})],c.prototype,
"actionsMenuId",null);b.__decorate([h.property({readOnly:!0})],c.prototype,"actionsMenuButtonId",null);b.__decorate([h.property({readOnly:!0})],c.prototype,"featureMenuId",null);b.__decorate([h.property({readOnly:!0})],c.prototype,"titleId",null);b.__decorate([h.property({readOnly:!0})],c.prototype,"contentId",null);b.__decorate([h.property({readOnly:!0})],c.prototype,"hasContent",null);b.__decorate([h.property({readOnly:!0})],c.prototype,"featureNavigationVisible",null);b.__decorate([h.property({readOnly:!0})],
c.prototype,"collapsible",null);b.__decorate([h.property({readOnly:!0})],c.prototype,"featureMenuVisible",null);b.__decorate([h.property({readOnly:!0})],c.prototype,"contentCollapsed",null);b.__decorate([h.property({readOnly:!0})],c.prototype,"dividedActions",null);b.__decorate([m.aliasOf("viewModel.actions")],c.prototype,"actions",void 0);b.__decorate([h.property()],c.prototype,"actionsMenuOpen",null);b.__decorate([h.property()],c.prototype,"alignment",void 0);b.__decorate([m.aliasOf("viewModel.autoCloseEnabled")],
c.prototype,"autoCloseEnabled",void 0);b.__decorate([m.aliasOf("viewModel.autoOpenEnabled")],c.prototype,"autoOpenEnabled",void 0);b.__decorate([m.aliasOf("viewModel.defaultPopupTemplateEnabled")],c.prototype,"defaultPopupTemplateEnabled",void 0);b.__decorate([m.aliasOf("viewModel.content")],c.prototype,"content",void 0);b.__decorate([h.property()],c.prototype,"collapsed",void 0);b.__decorate([h.property()],c.prototype,"collapseEnabled",void 0);b.__decorate([h.property({readOnly:!0})],c.prototype,
"currentAlignment",null);b.__decorate([h.property({readOnly:!0})],c.prototype,"currentDockPosition",null);b.__decorate([h.property()],c.prototype,"dockOptions",null);b.__decorate([h.property()],c.prototype,"dockEnabled",void 0);b.__decorate([m.aliasOf("viewModel.featureCount")],c.prototype,"featureCount",void 0);b.__decorate([h.property()],c.prototype,"featureMenuOpen",void 0);b.__decorate([m.aliasOf("viewModel.features")],c.prototype,"features",void 0);b.__decorate([m.aliasOf("viewModel.goToOverride")],
c.prototype,"goToOverride",void 0);b.__decorate([h.property()],c.prototype,"headingLevel",void 0);b.__decorate([m.aliasOf("viewModel.highlightEnabled")],c.prototype,"highlightEnabled",void 0);b.__decorate([m.aliasOf("viewModel.location")],c.prototype,"location",void 0);b.__decorate([h.property({aliasOf:{source:"messages.widgetLabel",overridable:!0}})],c.prototype,"label",void 0);b.__decorate([h.property()],c.prototype,"maxInlineActions",void 0);b.__decorate([h.property(),z.messageBundle("esri/widgets/Popup/t9n/Popup")],
c.prototype,"messages",void 0);b.__decorate([h.property(),z.messageBundle("esri/t9n/common")],c.prototype,"messagesCommon",void 0);b.__decorate([m.aliasOf("viewModel.promises")],c.prototype,"promises",void 0);b.__decorate([m.aliasOf("viewModel.selectedFeature")],c.prototype,"selectedFeature",void 0);b.__decorate([m.aliasOf("viewModel.selectedFeatureIndex")],c.prototype,"selectedFeatureIndex",void 0);b.__decorate([h.property({readOnly:!0})],c.prototype,"selectedFeatureWidget",null);b.__decorate([h.property()],
c.prototype,"spinnerEnabled",void 0);b.__decorate([m.aliasOf("viewModel.title")],c.prototype,"title",void 0);b.__decorate([m.aliasOf("viewModel.updateLocationEnabled")],c.prototype,"updateLocationEnabled",void 0);b.__decorate([m.aliasOf("viewModel.view")],c.prototype,"view",void 0);b.__decorate([h.property({type:A}),E.vmEvent(["triggerAction","trigger-action"])],c.prototype,"viewModel",void 0);b.__decorate([m.aliasOf("viewModel.visible")],c.prototype,"visible",void 0);b.__decorate([h.property()],
c.prototype,"visibleElements",void 0);b.__decorate([e.cast("visibleElements")],c.prototype,"castVisibleElements",null);b.__decorate([r.accessibleHandler()],c.prototype,"_close",null);b.__decorate([r.accessibleHandler()],c.prototype,"_toggleDockEnabled",null);b.__decorate([r.accessibleHandler()],c.prototype,"_toggleFeatureMenu",null);b.__decorate([r.accessibleHandler()],c.prototype,"_toggleActionsMenu",null);b.__decorate([r.accessibleHandler()],c.prototype,"_triggerAction",null);b.__decorate([r.accessibleHandler()],
c.prototype,"_selectFeature",null);b.__decorate([r.accessibleHandler()],c.prototype,"_next",null);b.__decorate([r.accessibleHandler()],c.prototype,"_previous",null);return c=b.__decorate([n.subclass("esri.widgets.Popup")],c)})},"esri/core/throttle":function(){define(["exports"],function(a){function b(c,g,f,k){let q=null,v=1E3;"number"===typeof g?(v=g,k=f):(q=null!=g?g:null,v=f);let t=0,u;const m=()=>{t=0;c.apply(k,u)};g=(...p)=>{q&&q.apply(k,p);u=p;v?t||(t=setTimeout(m,v)):m()};g.remove=()=>{t&&(clearTimeout(t),
t=0)};g.forceUpdate=()=>{t&&(clearTimeout(t),m())};g.hasPendingUpdates=()=>!!t;return g}a.default=b;a.throttle=b;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/Feature":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../intl ../core/watchUtils ../core/accessorSupport/decorators/aliasOf ../core/has ../core/accessorSupport/decorators/cast ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/subclass ./Widget ./Feature/FeatureAttachments ./Feature/FeatureContent ./Feature/FeatureFields ./Feature/FeatureMedia ./Feature/FeatureViewModel ./Feature/support/FeatureContentMixin ./support/Heading ./support/widgetUtils ./support/decorators/messageBundle ./support/jsxFactory ../intl/substitute".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r){const z={title:!0,content:!0,lastEditedInfo:!0};c=function(E){function F(N,K){N=E.call(this,N,K)||this;N._contentWidgets=[];N.graphic=null;N.defaultPopupTemplateEnabled=!1;N.headingLevel=2;N.label=void 0;N.messages=null;N.messagesURIUtils=null;N.spatialReference=null;N.title=null;N.visibleElements={...z};N.map=null;N.view=null;N.viewModel=new w;return N}a._inheritsLoose(F,E);var G=F.prototype;G.initialize=function(){this.own(g.init(this,"viewModel.contentViewModels",
()=>this._setupContentWidgets()))};G.destroy=function(){this._destroyContentWidgets()};G.castVisibleElements=function(N){return{...z,...N}};G.render=function(){const {waitingForContent:N}=this.viewModel;return B.tsx("div",{class:this.classes("esri-feature","esri-widget")},B.tsx("div",{class:"esri-feature__size-container"},this.renderTitle(),N?this.renderLoading():this.renderContentContainer()))};G.setActiveMedia=function(N,K){this.viewModel.setActiveMedia(N,K)};G.nextMedia=function(N){this.viewModel.nextMedia(N)};
G.previousMedia=function(N){this.viewModel.previousMedia(N)};G.renderLoading=function(){return B.tsx("div",{key:"loading-container",class:"esri-feature__loading-container"},B.tsx("span",{class:this.classes("esri-icon-loading-indicator esri-rotating","esri-feature__loading-spinner")}))};G.renderContentContainer=function(){const {visibleElements:N}=this;return N.content?B.tsx("div",{class:"esri-feature__main-container"},[this.renderContent(),this.renderLastEditInfo()]):null};G.renderTitle=function(){const {visibleElements:N,
title:K}=this;return N.title?B.tsx(C.Heading,{level:this.headingLevel,class:"esri-feature__title",innerHTML:K}):null};G.renderContent=function(){var N=this.viewModel.content;return N?Array.isArray(N)?N.length?B.tsx("div",{key:"content-content-elements"},N.map(this.renderContentElement,this)):null:"string"===typeof N?(N=this._contentWidgets[0],!N||N.destroyed?null:B.tsx("div",{key:"content-content"},N.render())):this.renderNodeContent(N):null};G.renderContentElement=function(N,K){const {visibleElements:I}=
this;if("boolean"!==typeof I.content&&!I.content[N.type])return null;switch(N.type){case "attachments":return this.renderAttachments(K);case "custom":return this.renderCustom(N,K);case "fields":return this.renderFields(K);case "media":return this.renderMedia(K);case "text":return this.renderText(N,K);default:return null}};G.renderAttachments=function(N){const K=this._contentWidgets[N];if(!K||K.destroyed)return null;const {state:I,attachmentInfos:J}=K.viewModel;return"loading"===I||0<J.length?B.tsx("div",
{key:this._buildKey("attachments-element",N),class:this.classes("esri-feature__content-element")},K.render()):null};G.renderCustom=function(N,K){({creator:N}=N);const I=this._contentWidgets[K];return!I||I.destroyed?null:N?B.tsx("div",{key:this._buildKey("custom-element",K),class:"esri-feature__content-element"},I.render()):null};G.renderFields=function(N){const K=this._contentWidgets[N];return!K||K.destroyed?null:B.tsx("div",{key:this._buildKey("fields-element",N),class:"esri-feature__content-element"},
K.render())};G.renderMedia=function(N){const K=this._contentWidgets[N];return!K||K.destroyed?null:B.tsx("div",{key:this._buildKey("media-element",N),class:"esri-feature__content-element"},K.render())};G.renderLastEditInfo=function(){const {visibleElements:N,messages:K}=this;var {lastEditInfo:I}=this.viewModel;if(!I||!N.lastEditedInfo)return null;const {date:J,user:L}=I;I=r.substitute("edit"===I.type?L?K.lastEditedByUser:K.lastEdited:L?K.lastCreatedByUser:K.lastCreated,{date:J,user:L});return B.tsx("div",
{key:"edit-info-element",class:this.classes("esri-feature__last-edited-info","esri-feature__content-element")},I)};G.renderText=function(N,K){const I=this._contentWidgets[K];return!I||I.destroyed?null:N.text?B.tsx("div",{key:this._buildKey("text-element",K),class:this.classes("esri-feature__content-element","esri-feature__text")},I.render()):null};G._buildKey=function(N,...K){const I=this.get("viewModel.graphic.uid")||"0";K=K.join("-");return`${N}__${I}-${K}`};G._destroyContentWidgets=function(){this._contentWidgets.forEach(N=>
{N.viewModel=null;N&&!N.destroyed&&N.destroy()});this._contentWidgets=[]};G._setupContentWidgets=function(){this._destroyContentWidgets();const {headingLevel:N,visibleElements:K}=this;var I=this.get("viewModel.content");const {contentViewModels:J}=this.viewModel;Array.isArray(I)?I.forEach((L,Q)=>{"attachments"===L.type&&(this._contentWidgets[Q]=new e({displayType:L.displayType,headingLevel:K.title?N+1:N,viewModel:J[Q]}));"fields"===L.type&&(this._contentWidgets[Q]=new h({viewModel:J[Q]}));"media"===
L.type&&(this._contentWidgets[Q]=new n({viewModel:J[Q]}));"text"===L.type&&(this._contentWidgets[Q]=new l({viewModel:J[Q]}));"custom"===L.type&&(this._contentWidgets[Q]=new l({viewModel:J[Q]}))},this):(I=J[0])&&!I.destroyed&&(this._contentWidgets[0]=new l({viewModel:I}));this.scheduleRender()};return F}(x.FeatureContentMixin(p));b.__decorate([f.aliasOf("viewModel.graphic")],c.prototype,"graphic",void 0);b.__decorate([f.aliasOf("viewModel.defaultPopupTemplateEnabled")],c.prototype,"defaultPopupTemplateEnabled",
void 0);b.__decorate([u.property()],c.prototype,"headingLevel",void 0);b.__decorate([u.property({aliasOf:{source:"messages.widgetLabel",overridable:!0}})],c.prototype,"label",void 0);b.__decorate([u.property(),A.messageBundle("esri/widgets/Feature/t9n/Feature")],c.prototype,"messages",void 0);b.__decorate([u.property(),A.messageBundle("esri/widgets/support/t9n/uriUtils")],c.prototype,"messagesURIUtils",void 0);b.__decorate([f.aliasOf("viewModel.spatialReference")],c.prototype,"spatialReference",void 0);
b.__decorate([f.aliasOf("viewModel.title")],c.prototype,"title",void 0);b.__decorate([u.property()],c.prototype,"visibleElements",void 0);b.__decorate([q.cast("visibleElements")],c.prototype,"castVisibleElements",null);b.__decorate([f.aliasOf("viewModel.map")],c.prototype,"map",void 0);b.__decorate([f.aliasOf("viewModel.view")],c.prototype,"view",void 0);b.__decorate([u.property({type:w})],c.prototype,"viewModel",void 0);return c=b.__decorate([m.subclass("esri.widgets.Feature")],c)})},"esri/widgets/Widget":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../intl ../core/deprecate ../core/domUtils ../core/Evented ../core/Handles ../core/has ../core/lang ../core/Logger ../core/Promise ../core/promiseUtils ../core/uuid ../core/watchUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/jsonMap ../core/accessorSupport/decorators/subclass ../core/accessorSupport/tracking ../core/accessorSupport/tracking/SimpleTrackingTarget ../libs/maquette-advanced-projector/projector ./support/componentsUtils ./support/jsxWidgetSupport ./support/widgetUtils ../intl/locale ../intl/messages".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r,z,E,F){function G(L,Q){for(const W in Q)null!=L[W]&&("object"===typeof L[W]&&"object"===typeof Q[W]?G(L[W],Q[W]):L[W]=Q[W]);return L}const N=u.getLogger("esri.widgets.Widget");let K=0;const I=A.createAdvancedProjector({postProcessProjectionOptions(L){const Q=L.eventHandlerInterceptor,W=/capture$/i;L.eventHandlerInterceptor=(V,P,X,U)=>{const Z=Q(V,P,X,U),oa=W.test(V);V=V.replace(W,"");if(!(V.toLowerCase()in X)||oa){const xa=V[2].toLowerCase()+
V.slice(3),Ea=ia=>Z.call(X,ia);X.addEventListener(xa,Ea,oa);const fa=U.afterRemoved;U.afterRemoved=ia=>{null==fa?void 0:fa(ia);X.removeEventListener(xa,Ea,oa)}}return Z}},handleInterceptedEvent(L,Q,W,V){const {eventPhase:P,type:X}=V,U=P===Event.CAPTURING_PHASE;let Z=`on${X}${U?"capture":""}`;Q=Q.properties;if(!(Z in Q||(Z=`on${X[0].toUpperCase()}${X.slice(1)}${U?"Capture":""}`,Z in Q)))return;L.scheduleRender();Q[Z].call(Q.bind||W,V)}});let J=!1;c=function(L){function Q(V,P){var X=L.call(this,V,P)||
this;X._attached=!1;X._internalHandles=new q;X._projector=I;X.domNode=null;X.iconClass="esri-icon-checkbox-unchecked";X.label=X.declaredClass.split(".").pop();X.visible=!0;X.key=a._assertThisInitialized(X);X._loadLocale=p.debounce(a._asyncToGenerator(function*(){if(X._messageBundleProps&&X._messageBundleProps.length){const Ea=yield p.eachAlways(X._messageBundleProps.map(function(){var fa=a._asyncToGenerator(function*({bundlePath:ia,propertyName:da}){ia=yield F.fetchMessageBundle(ia);X.localeStrings&&
Object.keys(X.localeStrings)&&(ia=G(t.clone(ia),X.localeStrings));X[da]=ia});return function(ia){return fa.apply(this,arguments)}}()));for(const fa of Ea)fa.error&&N.error("widget-intl:locale-error",X.declaredClass,fa.error)}yield X.loadLocale()}));B.commitAssetPath();V=z.getThemeName()||"light";["light","dark"].includes(V)||g.deprecated(N,"The following themes are deprecated: light-blue, dark-blue, light-green, dark-green, light-purple, dark-purple, light-red, and dark-red.",{version:"4.19",warnOnce:!0,
see:"https://developers.arcgis.com/javascript/latest/styling/"});const U="esri-widget-uid-"+e.generateUUID(),Z=X.render.bind(a._assertThisInitialized(X));let oa=!1;X._trackingTarget=new D.SimpleTrackingTarget(()=>X.scheduleRender());const xa=()=>{var Ea;if(!oa||X.destroyed)return null;if(!X.visible)return{vnodeSelector:"div",properties:{key:U,class:"",styles:{display:"none"}},domNode:void 0,children:void 0,text:void 0};const fa=Z();let {properties:ia}=fa;ia||(fa.properties=ia={});let {key:da,styles:ea}=
ia;da||(ia.key=U);ea||(ia.styles=ea={});ea.display||(ea.display="");let la=0;null==(Ea=fa.children)?void 0:Ea.forEach(va=>{if(!r.isWidgetConstructor(va.vnodeSelector)){var {properties:Ba}=va;Ba||(va.properties=Ba={});Ba.key||(Ba.key=`${X.id}--${la++}`)}});return r.processWidgets(a._assertThisInitialized(X),fa)};X.render=()=>{if(J)return xa();X._trackingTarget.clear();J=!0;let Ea;try{Ea=C.runTracked(X._trackingTarget,xa)}finally{J=!1}return Ea};X.addResolvingPromise(X._resourcesFetch=X.beforeFirstRender().then(()=>
{oa=!0;X._postInitialize()}));return X}a._inheritsLoose(Q,L);var W=Q.prototype;W.normalizeCtorArgs=function(V,P){V={...V};P&&(V.container=P);return V};W.postInitialize=function(){};W.beforeFirstRender=function(){return this._loadLocale().catch(p.throwIfNotAbortError)};W.loadLocale=function(){var V=a._asyncToGenerator(function*(){});return function(){return V.apply(this,arguments)}}();W.destroy=function(){this.destroyed||(this._trackingTarget.destroy(),this._trackingTarget=null,this.viewModel&&(this.viewModel.destroy(),
this.viewModel=null),this._detach(this.container),this._set("container",null),this._internalHandles.destroy(),this._emitter.clear(),this.render=()=>null,this._projector=null)};W.castContainer=function(V){return f.byId(V)};W.render=function(){throw Error("not implemented");};W.scheduleRender=function(){this.destroyed||this._projector.scheduleRender()};W.classes=function(...V){return z.classes.apply(this,V)};W.own=function(V){1<arguments.length&&(V=Array.prototype.slice.call(arguments));this._internalHandles.add(V)};
W.renderNow=function(){this._projector.renderNow()};W._postInitialize=function(){var V,P=this;this.destroyed||(this.scheduleRender(),null!=(V=this._delegatedEventNames)&&V.length&&this._internalHandles.add(l.init(this,"viewModel",(X,U)=>{U&&this._internalHandles.remove("delegated-events");X&&this._internalHandles.add(this._delegatedEventNames.map(Z=>X.on(Z,oa=>{this.emit(Z,oa)})),"delegated-events")})),this.postInitialize(),V=function(){var X=a._asyncToGenerator(function*(){yield P._loadLocale().catch(p.throwIfNotAbortError);
P.scheduleRender()});return function(){return X.apply(this,arguments)}}(),this._internalHandles.add([E.onLocaleChange(V),this.watch("localeStrings",V),l.whenOnce(this,"container",function(){var X=a._asyncToGenerator(function*(U){P.destroyed||P._attach(U)});return function(U){return X.apply(this,arguments)}}())]))};W._attach=function(V){V&&(this._projector.merge(V,this.render),this._attached=!0)};W._detach=function(V){V&&this._attached&&(this._projector.detach(this.render),V.parentNode&&V.parentNode.removeChild(V),
this._attached=!1)};a._createClass(Q,[{key:"container",set:function(V){this._get("container")||this._set("container",V)}},{key:"id",get:function(){return this._get("id")||this.get("container.id")||Date.now().toString(16)+"-widget-"+K++},set:function(V){V&&this._set("id",V)}},{key:"renderable",get:function(){return this._resourcesFetch}},{key:"test",get:function(){return{projector:this._projector,handles:this._internalHandles}}}]);return Q}(m.EsriPromiseMixin(k.EventedAccessor));c[r.WIDGET_SYMBOL]=
!0;b.__decorate([h.property({value:null})],c.prototype,"container",null);b.__decorate([n.cast("container")],c.prototype,"castContainer",null);b.__decorate([h.property({aliasOf:"container"})],c.prototype,"domNode",void 0);b.__decorate([h.property()],c.prototype,"iconClass",void 0);b.__decorate([h.property()],c.prototype,"id",null);b.__decorate([h.property()],c.prototype,"label",void 0);b.__decorate([h.property()],c.prototype,"localeStrings",void 0);b.__decorate([h.property()],c.prototype,"renderable",
null);b.__decorate([h.property()],c.prototype,"viewModel",void 0);b.__decorate([h.property()],c.prototype,"visible",void 0);b.__decorate([h.property()],c.prototype,"key",void 0);b.__decorate([h.property()],c.prototype,"afterCreate",void 0);b.__decorate([h.property()],c.prototype,"afterUpdate",void 0);b.__decorate([h.property()],c.prototype,"afterRemoved",void 0);return c=b.__decorate([x.subclass("esri.widgets.Widget")],c)})},"esri/core/uuid":function(){define(["exports","./global"],function(a,b){const c=
b.crypto||b.msCrypto;a.generateUUID=function(){const g=c.getRandomValues(new Uint16Array(8));g[3]=g[3]&4095|16384;g[4]=g[4]&16383|32768;return g[0].toString(16)+g[1].toString(16)+"-"+g[2].toString(16)+"-"+g[3].toString(16)+"-"+g[4].toString(16)+"-"+g[5].toString(16)+g[6].toString(16)+g[7].toString(16)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/libs/maquette-advanced-projector/projector":function(){define(["exports","../maquette/dom","../maquette/projector","./advanced-projector-options",
"./utils"],function(a,b,c,g,f){const k=(t,u)=>{const m=[];for(;t&&t!==u;)m.push(t),t=t.parentNode;return m},q=(t,u)=>t.find(u),v=(t,u,m=!1)=>{let p=t;u.forEach((e,l)=>{var h;const n=null!=(h=p)&&h.children?q(p.children,w=>w.domNode===e):void 0;if(!m||n||l===u.length-1)p=n});return p};a.createAdvancedProjector=t=>{let u;const m={...g.defaultAdvancedProjectorOptions,...t},p=f.applyDefaultProjectionOptions(m),e=p.performanceLogger;let l=!0,h,n=!1;const w=[],x=[],C=(A,B,r)=>{let z;p.eventHandlerInterceptor=
(F,G,N,K)=>function(I){e("domEvent",I);var J=k(I.currentTarget,z.domNode);const L=J.some(W=>{var V;return customElements.get(null==W?void 0:null==(V=W.tagName)?void 0:V.toLowerCase())});I.eventPhase!==Event.CAPTURING_PHASE&&L?(J=I.composedPath(),J=J.slice(J.indexOf(I.currentTarget),J.indexOf(z.domNode)).filter(W=>W.getRootNode()===W.ownerDocument).reverse(),J=v(z.getLastRender(),J,!0)):(J.reverse(),J=v(z.getLastRender(),J));let Q;J&&(Q=m.handleInterceptedEvent(u,J,this,I));e("domEventProcessed",I);
return Q};null==m.postProcessProjectionOptions?void 0:m.postProcessProjectionOptions(p);const E=r();z=A(B,E,p);w.push(z);x.push(r);m.afterFirstVNodeRendered&&m.afterFirstVNodeRendered(z,E)};let D=()=>{h=void 0;if(l){l=!1;e("renderStart",void 0);for(let A=0;A<w.length;A++){const B=x[A]();e("rendered",void 0);w[A].update(B);e("patched",void 0)}e("renderDone",void 0);l=!0}};m.modifyDoRenderImplementation&&(D=m.modifyDoRenderImplementation(D,w,x));return u={renderNow:D,scheduleRender:()=>{h||n||(h=requestAnimationFrame(D))},
stop:()=>{h&&(cancelAnimationFrame(h),h=void 0);n=!0},resume:()=>{n=!1;l=!0;u.scheduleRender()},append:(A,B)=>{C(b.dom.append,A,B)},insertBefore:(A,B)=>{C(b.dom.insertBefore,A,B)},merge:(A,B)=>{C(b.dom.merge,A,B)},replace:(A,B)=>{C(b.dom.replace,A,B)},detach:A=>{for(let B=0;B<x.length;B++)if(x[B]===A)return x.splice(B,1),w.splice(B,1)[0];throw Error("renderFunction was not found");}}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/libs/maquette-advanced-projector/advanced-projector-options":function(){define(["exports"],
function(a){a.defaultAdvancedProjectorOptions={handleInterceptedEvent:(b,c,g,f)=>{b.scheduleRender();return c.properties[`on${f.type}`].apply(c.properties.bind||g,[f])}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/libs/maquette-advanced-projector/utils":function(){define(["exports"],function(a){const b={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(c,g,f)=>{c.style[g]=f}};a.applyDefaultProjectionOptions=c=>({...b,...c});Object.defineProperty(a,
"__esModule",{value:!0})})},"esri/widgets/support/componentsUtils":function(){define(["exports","../../chunks/utils","../../assets","../../core/has","../../core/urlUtils"],function(a,b,c,g,f){a.commitAssetPath=function(){b.commitAssetPath(f.makeAbsolute(c.getAssetUrl("esri/widgets/support/components/assets")))};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/chunks/utils":function(){define(["exports"],function(a){function b(d,y){d={Up:"ArrowUp",Down:"ArrowDown",Left:"ArrowLeft",Right:"ArrowRight",
Spacebar:" ",Esc:"Escape"}[d]||d;return(y="rtl"===y)&&"ArrowLeft"===d?"ArrowRight":y&&"ArrowRight"===d?"ArrowLeft":d}function c(d){return d.map(y=>{let H="";for(let M=0;M<y;M++)H+=(65536*(1+Math.random())|0).toString(16).substring(1);return H}).join("-")}function g(d){return Array.isArray(d)?d:Array.from(d)}function f(d,y){return Array.from(d.attributes).filter(H=>H&&!y.includes(H.name)).reduce((H,{name:M,value:S})=>Object.assign(Object.assign({},H),{[M]:S}),{})}function k(d){return q(d,"dir","ltr",
!0)}function q(d,y,H,M=!1){const S=`[${y}]`;return(d=M?t(S,d):d.closest(S))?d.getAttribute(y):H}function v(d,y){function H(M){if(!M)return null;M.assignedSlot&&(M=M.assignedSlot);var S=M.getRootNode();M=S.querySelector(y);S=S.host||null;return M?M:S?H(S):null}return H(d)}function t(d,y=this){function H(M){if(!M||M===document||M===window)return null;const S=M.closest(d);return S?S:H(M.getRootNode().host)}return H(y)}async function u(d){d&&("function"===typeof d.setFocus?d.setFocus():d.focus())}function m(d,
y,H){y=`[slot="${y}"]`;if(null===H||void 0===H?0:H.all)return p(d,y,H);y=d.querySelector(y);y=H&&!1===H.direct?y:(null===y||void 0===y?void 0:y.parentElement)===d?y:null;return d=(d=null===H||void 0===H?void 0:H.selector)?y.querySelector(d):y}function p(d,y,H){y=Array.from(d.querySelectorAll(y));y=H&&!1===H.direct?y:y.filter(S=>S.parentElement===d);const M=null===H||void 0===H?void 0:H.selector;return M?y.map(S=>Array.from(S.querySelectorAll(M))).reduce((S,O)=>[...S,...O],[]).filter(S=>!!S):y}function e(d,
y){return Array.from(d.children).filter(H=>H.matches(y))}function l(d,y,H){if("string"===typeof y&&""!==y)return y;if(""===y)return d[H]}function h(d,y){var H;return d||(null===(H=y.closest("calcite-shell-panel"))||void 0===H?void 0:H.position)||"start"}function n({parent:d,expanded:y}){Array.from(d.querySelectorAll("calcite-action")).filter(H=>"menu-actions"!==H.slot).forEach(H=>H.textEnabled=y);d.querySelectorAll("calcite-action-group").forEach(H=>H.expanded=y)}function w(d){const {r:y,g:H,b:M}=
d;return`#${y.toString(16).padStart(2,"0")}${H.toString(16).padStart(2,"0")}${M.toString(16).padStart(2,"0")}`.toLowerCase()}function x(d){return d&&4===d.length&&ve.test(d)||d&&7===d.length&&we.test(d)}function C(d){d=d.toLowerCase();d.startsWith("#")||(d=`#${d}`);return d&&4===d.length&&ve.test(d)?w(D(d)):d}function D(d){if(!x(d))return null;d=d.replace("#","");if(3===d.length){const [M,S,O]=d.split("");var y=parseInt(`${M}${M}`,16),H=parseInt(`${S}${S}`,16);d=parseInt(`${O}${O}`,16);return{r:y,
g:H,b:d}}y=parseInt(d.slice(0,2),16);H=parseInt(d.slice(2,4),16);d=parseInt(d.slice(4,6),16);return{r:y,g:H,b:d}}function A(d){if("string"===typeof d){if(d.startsWith("#")){const {length:y}=d;if(4===y||7===y)return yc.HEX;if(5===y||9===y)return yc.HEXA}if(d.startsWith("rgba("))return yc.RGBA_CSS;if(d.startsWith("rgb("))return yc.RGB_CSS;if(d.startsWith("hsl("))return yc.HSL_CSS;if(d.startsWith("hsla("))return yc.HSLA_CSS}if("object"===typeof d){if(B(d,"r","g","b"))return B(d,"a")?Ec.RGBA:Ec.RGB;if(B(d,
"h","s","l"))return B(d,"a")?Ec.HSLA:Ec.HSL;if(B(d,"h","s","v"))return B(d,"a")?Ec.HSVA:Ec.HSV}return null}function B(d,...y){return y.every(H=>H&&d&&`${H}`in d)}function r(d,y){return(null===d||void 0===d?void 0:d.rgbNumber())===(null===y||void 0===y?void 0:y.rgbNumber())}function z(d,y,H){return H={path:y,exports:{},require:function(M,S){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");}},d(H,H.exports),H.exports}function E(d,y){return function(H){return y(d(H))}}
function F(d){var y=function(H){if(void 0===H||null===H)return H;1<arguments.length&&(H=Array.prototype.slice.call(arguments));return d(H)};"conversion"in d&&(y.conversion=d.conversion);return y}function G(d){var y=function(H){if(void 0===H||null===H)return H;1<arguments.length&&(H=Array.prototype.slice.call(arguments));var M=d(H);if("object"===typeof M)for(var S=M.length,O=0;O<S;O++)M[O]=Math.round(M[O]);return M};"conversion"in d&&(y.conversion=d.conversion);return y}function N(d,y){if(!(this instanceof
N))return new N(d,y);y&&y in xe&&(y=null);if(y&&!(y in Tb))throw Error("Unknown model: "+y);if(null==d)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(d instanceof N)this.model=d.model,this.color=d.color.slice(),this.valpha=d.valpha;else if("string"===typeof d){y=Xc.get(d);if(null===y)throw Error("Unable to parse color from string: "+d);this.model=y.model;var H=Tb[this.model].channels;this.color=y.value.slice(0,H);this.valpha="number"===typeof y.value[H]?y.value[H]:1}else if(d.length)this.model=
y||"rgb",H=Tb[this.model].channels,y=Sd.call(d,0,H),this.color=L(y,H),this.valpha="number"===typeof d[H]?d[H]:1;else if("number"===typeof d)d&=16777215,this.model="rgb",this.color=[d>>16&255,d>>8&255,d&255],this.valpha=1;else{this.valpha=1;y=Object.keys(d);"alpha"in d&&(y.splice(y.indexOf("alpha"),1),this.valpha="number"===typeof d.alpha?d.alpha:0);y=y.sort().join("");if(!(y in Td))throw Error("Unable to parse color from object: "+JSON.stringify(d));this.model=Td[y];H=Tb[this.model].labels;var M=
[];for(y=0;y<H.length;y++)M.push(d[H[y]]);this.color=L(M)}if(sd[this.model])for(H=Tb[this.model].channels,y=0;y<H;y++)(d=sd[this.model][y])&&(this.color[y]=d(this.color[y]));this.valpha=Math.max(0,Math.min(1,this.valpha));Object.freeze&&Object.freeze(this)}function K(d){return function(y){return Number(y.toFixed(d))}}function I(d,y,H){d=Array.isArray(d)?d:[d];d.forEach(function(M){(sd[M]||(sd[M]=[]))[y]=H});d=d[0];return function(M){if(arguments.length){H&&(M=H(M));var S=this[d]();S.color[y]=M;return S}S=
this[d]().color[y];H&&(S=H(S));return S}}function J(d){return function(y){return Math.max(0,Math.min(d,y))}}function L(d,y){for(var H=0;H<y;H++)"number"!==typeof d[H]&&(d[H]=0);return d}function Q(d){if(null==d)return void 0===d?"[object Undefined]":"[object Null]";if(ye&&ye in Object(d)){var y=Mf.call(d,Yc),H=d[Yc];try{d[Yc]=void 0;var M=!0}catch(O){}var S=Nf.call(d);M&&(y?d[Yc]=H:delete d[Yc]);d=S}else d=Of.call(d);return d}function W(d){return null!=d&&"object"==typeof d}function V(d){for(var y=
d.length;y--&&Pf.test(d.charAt(y)););return y}function P(d){var y=typeof d;return null!=d&&("object"==y||"function"==y)}function X(d){if("number"==typeof d)return d;var y=d;if("symbol"==typeof y||W(y)&&"[object Symbol]"==Q(y))return ze;P(d)&&(d="function"==typeof d.valueOf?d.valueOf():d,d=P(d)?d+"":d);if("string"!=typeof d)return 0===d?d:+d;d=d?d.slice(0,V(d)+1).replace(Qf,""):d;return(y=Rf.test(d))||Sf.test(d)?Tf(d.slice(2),y?2:8):Uf.test(d)?ze:+d}function U(d){return d}function Z(d){return"number"==
typeof d&&-1<d&&0==d%1&&9007199254740991>=d}function oa(d){return W(d)&&"[object Arguments]"==Q(d)}function xa(){return!1}function Ea(d){return W(d)&&Z(d.length)&&!!wb[Q(d)]}function fa(d){return function(y){return d(y)}}function ia(d){var y;if(y=null!=d&&Z(d.length))P(d)?(y=Q(d),y="[object Function]"==y||"[object GeneratorFunction]"==y||"[object AsyncFunction]"==y||"[object Proxy]"==y):y=!1,y=!y;if(y){y=Vf(d);var H=!y&&Wf(d),M=!y&&!H&&Xf(d),S=!y&&!H&&!M&&Yf(d);if(y=y||H||M||S){H=d.length;for(var O=
String,R=-1,Y=Array(H);++R<H;)Y[R]=O(R);H=Y}else H=[];O=H.length;for(ca in d)(d=y)&&!(d="length"==ca||M&&("offset"==ca||"parent"==ca)||S&&("buffer"==ca||"byteLength"==ca||"byteOffset"==ca))&&(d=ca,R=O,Y=typeof d,R=null==R?9007199254740991:R,d=!!R&&("number"==Y||"symbol"!=Y&&Zf.test(d))&&-1<d&&0==d%1&&d<R),d||H.push(ca);var ca=H}else if(P(d)){ca=d&&d.constructor;ca=d===("function"==typeof ca&&ca.prototype||$f);S=[];for(M in d)("constructor"!=M||!ca&&ag.call(d,M))&&S.push(M);ca=S}else if(ca=[],null!=
d)for(S in Object(d))ca.push(S);return ca}function da(d,y,H){function M(Oa){var hb=ca,db=pa;ca=pa=void 0;Ja=Oa;return wa=d.apply(db,hb)}function S(Oa){var hb=Oa-Fa;Oa-=Ja;return void 0===Fa||hb>=y||0>hb||Wa&&Oa>=fb}function O(){var Oa=Zc.Date.now();if(S(Oa))return R(Oa);var hb=setTimeout;var db=Oa-Ja;Oa=y-(Oa-Fa);db=Wa?bg(Oa,fb-db):Oa;za=hb(O,db)}function R(Oa){za=void 0;if(gb&&ca)return M(Oa);ca=pa=void 0;return wa}function Y(){var Oa=Zc.Date.now(),hb=S(Oa);ca=arguments;pa=this;Fa=Oa;if(hb){if(void 0===
za)return Ja=Oa=Fa,za=setTimeout(O,y),Qa?M(Oa):wa;if(Wa)return clearTimeout(za),za=setTimeout(O,y),M(Fa)}void 0===za&&(za=setTimeout(O,y));return wa}var ca,pa,wa,za,Fa,Ja=0,Qa=!1,Wa=!1,gb=!0;if("function"!=typeof d)throw new TypeError("Expected a function");y=X(y)||0;if(P(H)){Qa=!!H.leading;var fb=(Wa="maxWait"in H)?cg(X(H.maxWait)||0,y):fb;gb="trailing"in H?!!H.trailing:gb}Y.cancel=function(){void 0!==za&&clearTimeout(za);Ja=0;ca=Fa=pa=za=void 0};Y.flush=function(){return void 0===za?wa:R(Zc.Date.now())};
return Y}function ea(d,y){return null==d?d:dg(d,"function"==typeof y?y:U,ia)}function la(d,y,H){var M=!0,S=!0;if("function"!=typeof d)throw new TypeError("Expected a function");P(H)&&(M="leading"in H?!!H.leading:M,S="trailing"in H?!!H.trailing:S);return da(d,y,{leading:M,maxWait:y,trailing:S})}function va(d){return d?(d.nodeName||"").toLowerCase():null}function Ba(d){return null==d?window:"[object Window]"!==d.toString()?(d=d.ownerDocument)?d.defaultView||window:window:d}function aa(d){var y=Ba(d).Element;
return d instanceof y||d instanceof Element}function ja(d){var y=Ba(d).HTMLElement;return d instanceof y||d instanceof HTMLElement}function ua(d){if("undefined"===typeof ShadowRoot)return!1;var y=Ba(d).ShadowRoot;return d instanceof y||d instanceof ShadowRoot}function ta(d){return d.split("-")[0]}function T(d){d=d.getBoundingClientRect();return{width:d.width,height:d.height,top:d.top,right:d.right,bottom:d.bottom,left:d.left,x:d.left,y:d.top}}function ba(d){var y=T(d),H=d.offsetWidth,M=d.offsetHeight;
1>=Math.abs(y.width-H)&&(H=y.width);1>=Math.abs(y.height-M)&&(M=y.height);return{x:d.offsetLeft,y:d.offsetTop,width:H,height:M}}function ha(d,y){var H=y.getRootNode&&y.getRootNode();if(d.contains(y))return!0;if(H&&ua(H)){do{if(y&&d.isSameNode(y))return!0;y=y.parentNode||y.host}while(y)}return!1}function sa(d){return Ba(d).getComputedStyle(d)}function Aa(d){return((aa(d)?d.ownerDocument:d.document)||window.document).documentElement}function La(d){return"html"===va(d)?d:d.assignedSlot||d.parentNode||
(ua(d)?d.host:null)||Aa(d)}function Ra(d){return ja(d)&&"fixed"!==sa(d).position?d.offsetParent:null}function Za(d){for(var y=Ba(d),H=Ra(d);H&&0<=["table","td","th"].indexOf(va(H))&&"static"===sa(H).position;)H=Ra(H);if(H&&("html"===va(H)||"body"===va(H)&&"static"===sa(H).position))return y;if(!H)a:{H=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1===navigator.userAgent.indexOf("Trident")||!ja(d)||"fixed"!==sa(d).position)for(d=La(d);ja(d)&&0>["html","body"].indexOf(va(d));){var M=
sa(d);if("none"!==M.transform||"none"!==M.perspective||"paint"===M.contain||-1!==["transform","perspective"].indexOf(M.willChange)||H&&"filter"===M.willChange||H&&M.filter&&"none"!==M.filter){H=d;break a}else d=d.parentNode}H=null}return H||y}function jb(d){return 0<=["top","bottom"].indexOf(d)?"x":"y"}function kb(d){return Object.assign({},{top:0,right:0,bottom:0,left:0},d)}function ra(d,y){return y.reduce(function(H,M){H[M]=d;return H},{})}function ya(d){var y,H=d.popper,M=d.popperRect,S=d.placement,
O=d.offsets,R=d.position,Y=d.gpuAcceleration,ca=d.adaptive;d=d.roundOffsets;if(!0===d){d=O.y;var pa=window.devicePixelRatio||1;d={x:td(td(O.x*pa)/pa)||0,y:td(td(d*pa)/pa)||0}}else d="function"===typeof d?d(O):O;pa=d;d=pa.x;d=void 0===d?0:d;pa=pa.y;pa=void 0===pa?0:pa;var wa=O.hasOwnProperty("x");O=O.hasOwnProperty("y");var za="left",Fa="top",Ja=window;if(ca){var Qa=Za(H),Wa="clientHeight",gb="clientWidth";Qa===Ba(H)&&(Qa=Aa(H),"static"!==sa(Qa).position&&(Wa="scrollHeight",gb="scrollWidth"));"top"===
S&&(Fa="bottom",pa-=Qa[Wa]-M.height,pa*=Y?1:-1);"left"===S&&(za="right",d-=Qa[gb]-M.width,d*=Y?1:-1)}H=Object.assign({position:R},ca&&eg);if(Y){var fb;return Object.assign({},H,(fb={},fb[Fa]=O?"0":"",fb[za]=wa?"0":"",fb.transform=2>(Ja.devicePixelRatio||1)?"translate("+d+"px, "+pa+"px)":"translate3d("+d+"px, "+pa+"px, 0)",fb))}return Object.assign({},H,(y={},y[Fa]=O?pa+"px":"",y[za]=wa?d+"px":"",y.transform="",y))}function Ca(d){return d.replace(/left|right|bottom|top/g,function(y){return fg[y]})}
function Ha(d){return d.replace(/start|end/g,function(y){return gg[y]})}function Ka(d){d=Ba(d);return{scrollLeft:d.pageXOffset,scrollTop:d.pageYOffset}}function Ua(d){return T(Aa(d)).left+Ka(d).scrollLeft}function ab(d){d=sa(d);return/auto|scroll|overlay|hidden/.test(d.overflow+d.overflowY+d.overflowX)}function Xa(d){return 0<=["html","body","#document"].indexOf(va(d))?d.ownerDocument.body:ja(d)&&ab(d)?d:Xa(La(d))}function $a(d,y){var H;void 0===y&&(y=[]);var M=Xa(d);d=M===(null==(H=d.ownerDocument)?
void 0:H.body);H=Ba(M);M=d?[H].concat(H.visualViewport||[],ab(M)?M:[]):M;y=y.concat(M);return d?y:y.concat($a(La(M)))}function Pa(d){return Object.assign({},d,{left:d.x,top:d.y,right:d.x+d.width,bottom:d.y+d.height})}function lb(d,y){if("viewport"===y){y=Ba(d);var H=Aa(d);y=y.visualViewport;var M=H.clientWidth;H=H.clientHeight;var S=0,O=0;y&&(M=y.width,H=y.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(S=y.offsetLeft,O=y.offsetTop));d={width:M,height:H,x:S+Ua(d),y:O};d=Pa(d)}else ja(y)?
(d=T(y),d.top+=y.clientTop,d.left+=y.clientLeft,d.bottom=d.top+y.clientHeight,d.right=d.left+y.clientWidth,d.width=y.clientWidth,d.height=y.clientHeight,d.x=d.left,d.y=d.top):(O=Aa(d),d=Aa(O),M=Ka(O),y=null==(H=O.ownerDocument)?void 0:H.body,H=ac(d.scrollWidth,d.clientWidth,y?y.scrollWidth:0,y?y.clientWidth:0),S=ac(d.scrollHeight,d.clientHeight,y?y.scrollHeight:0,y?y.clientHeight:0),O=-M.scrollLeft+Ua(O),M=-M.scrollTop,"rtl"===sa(y||d).direction&&(O+=ac(d.clientWidth,y?y.clientWidth:0)-H),d=Pa({width:H,
height:S,x:O,y:M}));return d}function rb(d){var y=$a(La(d)),H=0<=["absolute","fixed"].indexOf(sa(d).position)&&ja(d)?Za(d):d;return aa(H)?y.filter(function(M){return aa(M)&&ha(M,H)&&"body"!==va(M)}):[]}function mb(d,y,H){y="clippingParents"===y?rb(d):[].concat(y);H=[].concat(y,[H]);H=H.reduce(function(M,S){S=lb(d,S);M.top=ac(S.top,M.top);M.right=oc(S.right,M.right);M.bottom=oc(S.bottom,M.bottom);M.left=ac(S.left,M.left);return M},lb(d,H[0]));H.width=H.right-H.left;H.height=H.bottom-H.top;H.x=H.left;
H.y=H.top;return H}function Jb(d){var y=d.reference,H=d.element,M=(d=d.placement)?ta(d):null;d=d?d.split("-")[1]:null;var S=y.x+y.width/2-H.width/2,O=y.y+y.height/2-H.height/2;switch(M){case "top":S={x:S,y:y.y-H.height};break;case "bottom":S={x:S,y:y.y+y.height};break;case "right":S={x:y.x+y.width,y:O};break;case "left":S={x:y.x-H.width,y:O};break;default:S={x:y.x,y:y.y}}M=M?jb(M):null;if(null!=M)switch(O="y"===M?"height":"width",d){case "start":S[M]-=y[O]/2-H[O]/2;break;case "end":S[M]+=y[O]/2-H[O]/
2}return S}function Ab(d,y){void 0===y&&(y={});var H=y;y=H.placement;y=void 0===y?d.placement:y;var M=H.boundary,S=void 0===M?"clippingParents":M;M=H.rootBoundary;var O=void 0===M?"viewport":M;M=H.elementContext;M=void 0===M?"popper":M;var R=H.altBoundary,Y=void 0===R?!1:R;H=H.padding;H=void 0===H?0:H;H=kb("number"!==typeof H?H:ra(H,$c));var ca=d.elements.reference;R=d.rects.popper;Y=d.elements[Y?"popper"===M?"reference":"popper":M];S=mb(aa(Y)?Y:Y.contextElement||Aa(d.elements.popper),S,O);O=T(ca);
Y=Jb({reference:O,element:R,strategy:"absolute",placement:y});R=Pa(Object.assign({},R,Y));O="popper"===M?R:O;var pa={top:S.top-O.top+H.top,bottom:O.bottom-S.bottom+H.bottom,left:S.left-O.left+H.left,right:O.right-S.right+H.right};d=d.modifiersData.offset;if("popper"===M&&d){var wa=d[y];Object.keys(pa).forEach(function(za){var Fa=0<=["right","bottom"].indexOf(za)?1:-1,Ja=0<=["top","bottom"].indexOf(za)?"y":"x";pa[za]+=wa[Ja]*Fa})}return pa}function Sb(d,y){void 0===y&&(y={});var H=y.boundary,M=y.rootBoundary,
S=y.padding,O=y.flipVariations,R=y.allowedAutoPlacements,Y=void 0===R?Ae:R,ca=y.placement.split("-")[1];y=ca?O?Be:Be.filter(function(wa){return wa.split("-")[1]===ca}):$c;O=y.filter(function(wa){return 0<=Y.indexOf(wa)});0===O.length&&(O=y);var pa=O.reduce(function(wa,za){wa[za]=Ab(d,{placement:za,boundary:H,rootBoundary:M,padding:S})[ta(za)];return wa},{});return Object.keys(pa).sort(function(wa,za){return pa[wa]-pa[za]})}function pb(d){if("auto"===ta(d))return[];var y=Ca(d);return[Ha(d),y,Ha(y)]}
function ub(d,y,H){void 0===H&&(H={x:0,y:0});return{top:d.top-y.height-H.y,right:d.right-y.width+H.x,bottom:d.bottom-y.height+H.y,left:d.left-y.width-H.x}}function Na(d){return["top","right","bottom","left"].some(function(y){return 0<=d[y]})}function ka(d,y,H){void 0===H&&(H=!1);var M=Aa(y);d=T(d);var S=ja(y),O={scrollLeft:0,scrollTop:0},R={x:0,y:0};if(S||!S&&!H){if("body"!==va(y)||ab(M))O=y!==Ba(y)&&ja(y)?{scrollLeft:y.scrollLeft,scrollTop:y.scrollTop}:Ka(y);ja(y)?(R=T(y),R.x+=y.clientLeft,R.y+=
y.clientTop):M&&(R.x=Ua(M))}return{x:d.left+O.scrollLeft-R.x,y:d.top+O.scrollTop-R.y,width:d.width,height:d.height}}function qa(d){function y(O){M.add(O.name);[].concat(O.requires||[],O.requiresIfExists||[]).forEach(function(R){M.has(R)||(R=H.get(R))&&y(R)});S.push(O)}var H=new Map,M=new Set,S=[];d.forEach(function(O){H.set(O.name,O)});d.forEach(function(O){M.has(O.name)||y(O)});return S}function Ga(d){var y=qa(d);return hg.reduce(function(H,M){return H.concat(y.filter(function(S){return S.phase===
M}))},[])}function Ta(d){var y;return function(){y||(y=new Promise(function(H){Promise.resolve().then(function(){y=void 0;H(d())})}));return y}}function bb(d){var y=d.reduce(function(H,M){var S=H[M.name];H[M.name]=S?Object.assign({},S,M,{options:Object.assign({},S.options,M.options),data:Object.assign({},S.data,M.data)}):M;return H},{});return Object.keys(y).map(function(H){return y[H]})}function xb(){for(var d=arguments.length,y=Array(d),H=0;H<d;H++)y[H]=arguments[H];return!y.some(function(M){return!(M&&
"function"===typeof M.getBoundingClientRect)})}function Mb(d,y){const H=["left","right"],M=["start","end"];"rtl"===k(d)&&(H.reverse(),M.reverse());return y.replace(/-leading/gi,`-${M[0]}`).replace(/-trailing/gi,`-${M[1]}`).replace(/leading/gi,H[0]).replace(/trailing/gi,H[1])}function $b({referenceEl:d,el:y,placement:H,overlayPositioning:M="absolute",modifiers:S}){return d?ig(d,y,{strategy:M,placement:Mb(y,H),modifiers:S}):null}function nc({el:d,modifiers:y,placement:H,popper:M}){d=Mb(d,H);M.setOptions({modifiers:y,
placement:d})}function xc(d){return new Intl.NumberFormat(d,{minimumFractionDigits:0,maximumFractionDigits:20})}function na(d,y){if(d){const H=Da(y),M=Ia(y);y=d.split("");const S=y.lastIndexOf(M);y=y.map((O,R)=>O===H||O===M&&R!==S?"":O).reduce((O,R)=>O+R).replace(M,".");return isNaN(Number(y))?d:y}return d}function Da(d){d=xc(d).formatToParts(1234567.8).find(y=>"group"===y.type).value;return 0===d.trim().length?" ":d}function Ia(d){d=xc(d).formatToParts(1234567.8).find(y=>"decimal"===y.type).value;
return 0===d.trim().length?" ":d}function Ma(d,y,H=!1){if(d){const M=Number(Ya(d));if(!isNaN(M))return xc(y).formatToParts(M).map(({type:S,value:O})=>{switch(S){case "group":return H?Da(y):"";case "decimal":return Ia(y);default:return O}}).reduce((S,O)=>S+O)}return d}function Ya(d){return(null===d||void 0===d?0:d.endsWith("."))?d.replace(".",""):d}function Va(d,y,H){const M=y[0]-d[0];d=y[1]-d[1];return M?(3*d/M-H)/2:H}function vb(d,y,H,M,S){const [O,R]=d,[Y,ca]=y;d=(Y-O)/3;H=S([O+d,R+d*H]).join(",");
M=S([Y-d,ca-d*M]).join(",");S=S([Y,ca]).join(",");return`C ${H} ${M} ${S}`}function uc({width:d,height:y,min:H,max:M}){const S=M[0]-H[0],O=M[1]-H[1];return R=>[R[0]/S*d,y-R[1]/O*y]}function vc(d){const [y,H]=d[0];return d.reduce(({min:M,max:S},[O,R])=>({min:[Math.min(M[0],O),Math.min(M[1],R)],max:[Math.max(S[0],O),Math.max(S[1],R)]}),{min:[y,H],max:[y,H]})}function Uc({data:d,min:y,max:H,t:M}){if(0===d.length)return"";const [S,O]=M(d[0]),[R,Y]=M(y);[y]=M(H);let ca,pa,wa;H=d.reduce((Fa,Ja,Qa)=>{pa=
d[Qa-2];wa=d[Qa-1];if(1<Qa){{Qa=wa[0]-pa[0];const Wa=Ja[0]-wa[0],gb=(wa[1]-pa[1])/(Qa||0>Wa&&0);Ja=(Ja[1]-wa[1])/(Wa||0>Qa&&0);Ja=((0>gb?-1:1)+(0>Ja?-1:1))*Math.min(Math.abs(gb),Math.abs(Ja),.5*Math.abs((gb*Wa+Ja*Qa)/(Qa+Wa)))||0}Qa=void 0===ca?Va(pa,wa,Ja):ca;Qa=vb(pa,wa,Qa,Ja,M);ca=Ja;return`${Fa} ${Qa}`}return Fa},`M ${R},${Y} L ${R},${O} L ${S},${O}`);var za=d[d.length-1];za=vb(wa,za,ca,Va(wa,za,ca),M);return`${H} ${za} L ${y},${Y} Z`}async function mc({icon:d,scale:y}){y=Ce[y];d=qd(d);const H=
"F"===d.charAt(d.length-1),M=`${H?d.substring(0,d.length-1):d}${y}${H?"F":""}`;if(Ud[M])return Ud[M];Vd[M]||(Vd[M]=fetch(jg(`./assets/calcite-icon/${M}.json`)).then(S=>S.json()).catch(()=>{console.error(`"${M}" is not a valid calcite-ui-icon name`);return""}));y=await Vd[M];return Ud[M]=y}function qd(d){const y=!isNaN(Number(d.charAt(0))),H=d.split("-");return 1===H.length?y?`i${d}`:d:H.map((M,S)=>0===S?y?`i${M.toUpperCase()}`:M:M.charAt(0).toUpperCase()+M.slice(1)).join("")}function Ib(d){return!(!d||
isNaN(Number(d)))}function Vc(d){if(!d||!Wc(d))return null;let y=!1;d=d.split("").filter((H,M)=>H.match(/\./g)&&!y?y=!0:H.match(/\-/g)&&0===M?!0:Wd.includes(H)).reduce((H,M)=>H+M);return Ib(d)?Number(d).toString():null}function Wc(d){return Wd.some(y=>d.includes(y))}function wc(){this.setUpItems();this.setUpFilter()}function rd(d){return!!kg.find(y=>y===d)}function lg(d){const {el:y,items:H,multiple:M,selectedValues:S}=this;M||(y.contains(d.relatedTarget)?pc(d.target,!1):H.forEach(O=>pc(O,0===S.size?
d.target===O:O.selected)))}function mg(d){const {key:y,target:H}=d;if(rd(y)){var {items:M}=this,{length:S}=M,O=M.indexOf(H);S&&-1!==O&&(d.preventDefault(),d=M[(O+("ArrowUp"===y?-1:1)+S)%S],pc(d,!0),u(d))}}function ng(){this.calciteListChange.emit(this.selectedValues)}function og(d){if(!d.defaultPrevented){d=d.target;var y=this.selectedValues;"CALCITE-PICK-LIST-GROUP"===d.parentElement.tagName?(d.parentElement.remove(),Array.from(d.parentElement.children).forEach(H=>y.delete(H.value))):(d.remove(),
y.delete(d.value));this.emitCalciteListChange()}}function pc(d,y){y?d.removeAttribute("tabindex"):d.setAttribute("tabindex","-1")}async function pg(d){if(this.filterEnabled&&"filter"===d)await u(this.filterEl);else{var {multiple:y,items:H}=this;if(0!==H.length){if(y)return H[0].setFocus();d=H.find(M=>M.selected);return(d?d:H[0]).setFocus()}}}function qg(d){this.items=Array.from(this.el.querySelectorAll(d));let y=!1;({items:d}=this);d.forEach(H=>{H.icon=this.getIconType();this.multiple||(H.disableDeselect=
!0,pc(H,!1));H.selected&&(y=!0,pc(H,!0),this.selectedValues.set(H.value,H))});[d]=d;!y&&d&&pc(d,!0)}function rg(d){this.items.forEach(y=>{y.value!==d.value&&(y.toggleSelected(!1),this.selectedValues.has(y.value)&&this.selectedValues.delete(y.value))})}function sg(d,y=!1){if(this.lastSelectedItem){var {items:H}=this,M=H.findIndex(O=>O.value===this.lastSelectedItem.value),S=H.findIndex(O=>O.value===d.value);H.slice(Math.min(M,S),Math.max(M,S)).forEach(O=>{O.toggleSelected(!y);y?this.selectedValues.delete(O.value):
this.selectedValues.set(O.value,O)})}}function tg(d){const y=d.detail.map(S=>S.value);let H=!1;ad||(ad=new Set);const M=this.items.filter(S=>{var O=S.parentElement;O.matches("calcite-pick-list-group")&&ad.add(O);O=y.includes(S.value);S.hidden=!O;H||(H=O&&S.selected);return O});ad.forEach(S=>{var O=M.some(R=>S.contains(R));S.hidden=!O;O&&(O=m(S,"parent-item"))&&(O.hidden=!1,M.includes(O)&&Array.from(S.children).forEach(R=>R.hidden=!1))});ad.clear();0<M.length&&!H&&!this.multiple&&pc(M[0],!0)}function ug(){return this.items.map(d=>
({label:d.label,description:d.description,metadata:d.metadata,value:d.value}))}function ud(d){return"CALCITE-OPTION"===d.tagName}function Xd(d){Xd="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(y){return typeof y}:function(y){return y&&"function"===typeof Symbol&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y};return Xd(d)}function gc(){gc=Object.assign||function(d){for(var y=1;y<arguments.length;y++){var H=arguments[y],M;for(M in H)Object.prototype.hasOwnProperty.call(H,
M)&&(d[M]=H[M])}return d};return gc.apply(this,arguments)}function qc(d){for(var y=1;y<arguments.length;y++){var H=null!=arguments[y]?arguments[y]:{},M=Object.keys(H);"function"===typeof Object.getOwnPropertySymbols&&(M=M.concat(Object.getOwnPropertySymbols(H).filter(function(S){return Object.getOwnPropertyDescriptor(H,S).enumerable})));M.forEach(function(S){var O=H[S];S in d?Object.defineProperty(d,S,{value:O,enumerable:!0,configurable:!0,writable:!0}):d[S]=O})}return d}function vg(d,y){if(null==
d)return{};if(null==d)var H={};else{H={};var M=Object.keys(d),S;for(S=0;S<M.length;S++){var O=M[S];0<=y.indexOf(O)||(H[O]=d[O])}}if(Object.getOwnPropertySymbols)for(S=Object.getOwnPropertySymbols(d),O=0;O<S.length;O++)M=S[O],0<=y.indexOf(M)||Object.prototype.propertyIsEnumerable.call(d,M)&&(H[M]=d[M]);return H}function hc(d){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(d)}function sb(d,y,H){d.addEventListener(y,H,!ic&&De)}function qb(d,y,H){d.removeEventListener(y,
H,!ic&&De)}function vd(d,y){if(y){"\x3e"===y[0]&&(y=y.substring(1));if(d)try{if(d.matches)return d.matches(y);if(d.msMatchesSelector)return d.msMatchesSelector(y);if(d.webkitMatchesSelector)return d.webkitMatchesSelector(y)}catch(H){}return!1}}function ec(d,y,H,M){if(d){H=H||document;do{if(null!=y&&("\x3e"===y[0]?d.parentNode===H&&vd(d,y):vd(d,y))||M&&d===H)return d;if(d===H)break}while(d=d.host&&d!==document&&d.host.nodeType?d.host:d.parentNode)}return null}function Ub(d,y,H){if(d&&y)if(d.classList)d.classList[H?
"add":"remove"](y);else{var M=(" "+d.className+" ").replace(Ee," ").replace(" "+y+" "," ");d.className=(M+(H?" "+y:"")).replace(Ee," ")}}function cb(d,y,H){var M=d&&d.style;if(M){if(void 0===H)return document.defaultView&&document.defaultView.getComputedStyle?H=document.defaultView.getComputedStyle(d,""):d.currentStyle&&(H=d.currentStyle),void 0===y?H:H[y];y in M||-1!==y.indexOf("webkit")||(y="-webkit-"+y);M[y]=H+("string"===typeof H?"":"px")}}function Fc(d,y){var H="";if("string"===typeof d)H=d;
else{do{var M=cb(d,"transform");M&&"none"!==M&&(H=M+" "+H)}while(!y&&(d=d.parentNode))}return(d=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix)&&new d(H)}function Fe(d,y,H){if(d){d=d.getElementsByTagName(y);y=0;var M=d.length;if(H)for(;y<M;y++)H(d[y],y);return d}return[]}function jc(){var d=document.scrollingElement;return d?d:document.documentElement}function Gb(d,y,H,M,S){if(d.getBoundingClientRect||d===window){if(d!==window&&d.parentNode&&d!==jc()){var O=d.getBoundingClientRect();
var R=O.top;var Y=O.left;var ca=O.bottom;var pa=O.right;var wa=O.height;var za=O.width}else Y=R=0,ca=window.innerHeight,pa=window.innerWidth,wa=window.innerHeight,za=window.innerWidth;if((y||H)&&d!==window&&(S=S||d.parentNode,!ic)){do if(S&&S.getBoundingClientRect&&("none"!==cb(S,"transform")||H&&"static"!==cb(S,"position"))){ca=S.getBoundingClientRect();R-=ca.top+parseInt(cb(S,"border-top-width"));Y-=ca.left+parseInt(cb(S,"border-left-width"));ca=R+O.height;pa=Y+O.width;break}while(S=S.parentNode)
}M&&d!==window&&(M=(d=Fc(S||d))&&d.a,S=d&&d.d,d&&(R/=S,Y/=M,za/=M,wa/=S,ca=R+wa,pa=Y+za));return{top:R,left:Y,bottom:ca,right:pa,width:za,height:wa}}}function Ge(d,y,H){var M=rc(d,!0);for(d=Gb(d)[y];M;){y=Gb(M)[H];var S=void 0;S="top"===H||"left"===H?d>=y:d<=y;if(!S)return M;if(M===jc())break;M=rc(M,!1)}return!1}function wd(d,y,H){for(var M=0,S=0,O=d.children;S<O.length;){if("none"!==O[S].style.display&&O[S]!==eb.ghost&&O[S]!==eb.dragged&&ec(O[S],H.draggable,d,!1)){if(M===y)return O[S];M++}S++}return null}
function Yd(d,y){for(d=d.lastElementChild;d&&(d===eb.ghost||"none"===cb(d,"display")||y&&!vd(d,y));)d=d.previousElementSibling;return d||null}function Yb(d,y){var H=0;if(!d||!d.parentNode)return-1;for(;d=d.previousElementSibling;)"TEMPLATE"===d.nodeName.toUpperCase()||d===eb.clone||y&&!vd(d,y)||H++;return H}function He(d){var y=0,H=0,M=jc();if(d){do{var S=Fc(d),O=S.d;y+=d.scrollLeft*S.a;H+=d.scrollTop*O}while(d!==M&&(d=d.parentNode))}return[y,H]}function wg(d,y){for(var H in d)if(d.hasOwnProperty(H))for(var M in y)if(y.hasOwnProperty(M)&&
y[M]===d[H][M])return Number(H);return-1}function rc(d,y){if(!d||!d.getBoundingClientRect)return jc();var H=!1;do if(d.clientWidth<d.scrollWidth||d.clientHeight<d.scrollHeight){var M=cb(d);if(d.clientWidth<d.scrollWidth&&("auto"==M.overflowX||"scroll"==M.overflowX)||d.clientHeight<d.scrollHeight&&("auto"==M.overflowY||"scroll"==M.overflowY)){if(!d.getBoundingClientRect||d===document.body)break;if(H||y)return d;H=!0}}while(d=d.parentNode);return jc()}function Zd(d,y){return Math.round(d.top)===Math.round(y.top)&&
Math.round(d.left)===Math.round(y.left)&&Math.round(d.height)===Math.round(y.height)&&Math.round(d.width)===Math.round(y.width)}function Ie(d,y){return function(){if(!bd){var H=arguments;1===H.length?d.call(this,H[0]):d.apply(this,H);bd=setTimeout(function(){bd=void 0},y)}}}function Je(d,y,H){d.scrollLeft+=y;d.scrollTop+=H}function Ke(d){var y=window.Polymer,H=window.jQuery||window.Zepto;return y&&y.dom?y.dom(d).cloneNode(!0):H?H(d).clone(!0)[0]:d.cloneNode(!0)}function xg(){var d=[],y;return{captureAnimationState:function(){d=
[];this.options.animation&&[].slice.call(this.el.children).forEach(function(H){if("none"!==cb(H,"display")&&H!==eb.ghost){d.push({target:H,rect:Gb(H)});var M=qc({},d[d.length-1].rect);if(H.thisAnimationDuration){var S=Fc(H,!0);S&&(M.top-=S.f,M.left-=S.e)}H.fromRect=M}})},addAnimationState:function(H){d.push(H)},removeAnimationState:function(H){d.splice(wg(d,{target:H}),1)},animateAll:function(H){var M=this;if(this.options.animation){var S=!1,O=0;d.forEach(function(R){var Y=0,ca=R.target,pa=ca.fromRect,
wa=Gb(ca),za=ca.prevFromRect,Fa=ca.prevToRect;R=R.rect;var Ja=Fc(ca,!0);Ja&&(wa.top-=Ja.f,wa.left-=Ja.e);ca.toRect=wa;ca.thisAnimationDuration&&Zd(za,wa)&&!Zd(pa,wa)&&(R.top-wa.top)/(R.left-wa.left)===(pa.top-wa.top)/(pa.left-wa.left)&&(Y=Math.sqrt(Math.pow(za.top-R.top,2)+Math.pow(za.left-R.left,2))/Math.sqrt(Math.pow(za.top-Fa.top,2)+Math.pow(za.left-Fa.left,2))*M.options.animation);Zd(wa,pa)||(ca.prevFromRect=pa,ca.prevToRect=wa,Y||(Y=M.options.animation),M.animate(ca,R,wa,Y));Y&&(S=!0,O=Math.max(O,
Y),clearTimeout(ca.animationResetTimer),ca.animationResetTimer=setTimeout(function(){ca.animationTime=0;ca.prevFromRect=null;ca.fromRect=null;ca.prevToRect=null;ca.thisAnimationDuration=null},Y),ca.thisAnimationDuration=Y)});clearTimeout(y);S?y=setTimeout(function(){"function"===typeof H&&H()},O):"function"===typeof H&&H();d=[]}else clearTimeout(y),"function"===typeof H&&H()},animate:function(H,M,S,O){if(O){cb(H,"transition","");cb(H,"transform","");var R=Fc(this.el),Y=(M.left-S.left)/(R&&R.a||1);
M=(M.top-S.top)/(R&&R.d||1);H.animatingX=!!Y;H.animatingY=!!M;cb(H,"transform","translate3d("+Y+"px,"+M+"px,0)");this.forRepaintDummy=H.offsetWidth;cb(H,"transition","transform "+O+"ms"+(this.options.easing?" "+this.options.easing:""));cb(H,"transform","translate3d(0,0,0)");"number"===typeof H.animated&&clearTimeout(H.animated);H.animated=setTimeout(function(){cb(H,"transition","");cb(H,"transform","");H.animated=!1;H.animatingX=!1;H.animatingY=!1},O)}}}}function Nb(d){var y=qc({putSortable:Hb,cloneEl:zb,
targetEl:Sa,rootEl:yb,oldIndex:Gc,oldDraggableIndex:cd,newIndex:Vb,newDraggableIndex:sc},d);d=y.sortable;var H=y.rootEl,M=y.name,S=y.targetEl,O=y.cloneEl,R=y.toEl,Y=y.fromEl,ca=y.oldIndex,pa=y.newIndex,wa=y.oldDraggableIndex,za=y.newDraggableIndex,Fa=y.originalEvent,Ja=y.putSortable,Qa=y.extraEventProperties;if(d=d||H&&H[Wb]){var Wa=d.options,gb="on"+M.charAt(0).toUpperCase()+M.substr(1);!window.CustomEvent||ic||dd?(y=document.createEvent("Event"),y.initEvent(M,!0,!0)):y=new CustomEvent(M,{bubbles:!0,
cancelable:!0});y.to=R||H;y.from=Y||H;y.item=S||H;y.clone=O;y.oldIndex=ca;y.newIndex=pa;y.oldDraggableIndex=wa;y.newDraggableIndex=za;y.originalEvent=Fa;y.pullMode=Ja?Ja.lastPutMode:void 0;M=qc({},Qa,ed.getEventProperties(M,d));for(var fb in M)y[fb]=M[fb];H&&H.dispatchEvent(y);Wa[gb]&&Wa[gb].call(d,y)}}function eb(d,y){if(!d||!d.nodeType||1!==d.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(d));this.el=d;this.options=y=gc({},y);d[Wb]=this;var H={group:null,sort:!0,
disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(d.nodeName)?"\x3eli":"\x3e*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Le(d,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(O,R){O.setData("Text",R.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,
touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==eb.supportPointer&&"PointerEvent"in window&&!fd,emptyInsertThreshold:5};ed.initializePlugins(this,d,H);for(var M in H)M in y||(y[M]=H[M]);Me(y);for(var S in this)"_"===S.charAt(0)&&"function"===typeof this[S]&&(this[S]=this[S].bind(this));if(this.nativeDraggable=y.forceFallback?
!1:yg)this.options.touchStartThreshold=1;y.supportPointer?sb(d,"pointerdown",this._onTapStart):(sb(d,"mousedown",this._onTapStart),sb(d,"touchstart",this._onTapStart));this.nativeDraggable&&(sb(d,"dragover",this),sb(d,"dragenter",this));xd.push(this.el);y.store&&y.store.get&&this.sort(y.store.get(this)||[]);gc(this,xg())}function $d(d,y,H,M,S,O,R,Y){var ca=d[Wb],pa=ca.options.onMove,wa;if(!window.CustomEvent||ic||dd){var za=document.createEvent("Event");za.initEvent("move",!0,!0)}else za=new CustomEvent("move",
{bubbles:!0,cancelable:!0});za.to=y;za.from=d;za.dragged=H;za.draggedRect=M;za.related=S||y;za.relatedRect=O||Gb(y);za.willInsertAfter=Y;za.originalEvent=R;d.dispatchEvent(za);pa&&(wa=pa.call(ca,za,R));return wa}function ae(d){d.draggable=!1}function zg(){be=!1}function Ag(d,y,H){H=Gb(Yd(H.el,H.options.draggable));return y?d.clientX>H.right+10||d.clientX<=H.right&&d.clientY>H.bottom&&d.clientX>=H.left:d.clientX>H.right&&d.clientY>H.top||d.clientX<=H.right&&d.clientY>H.bottom+10}function Bg(d,y,H,
M,S,O,R,Y){d=M?d.clientY:d.clientX;var ca=M?H.height:H.width,pa=M?H.top:H.left;H=M?H.bottom:H.right;M=!1;if(!R)if(Y&&yd<ca*S)if(!gd&&(1===hd?d>pa+ca*O/2:d<H-ca*O/2)&&(gd=!0),gd)M=!0;else{if(1===hd?d<pa+yd:d>H-yd)return-hd}else if(d>pa+ca*(1-S)/2&&d<H-ca*(1-S)/2)return y=Yb(Sa)<Yb(y)?1:-1,y;if(M||R)if(d<pa+ca*O/2||d>H-ca*O/2)return d>pa+ca/2?1:-1;return 0}function Cg(d){d=d.tagName+d.className+d.src+d.href+d.textContent;for(var y=d.length,H=0;y--;)H+=d.charCodeAt(y);return H.toString(36)}function Dg(d){zd.length=
0;d=d.getElementsByTagName("input");for(var y=d.length;y--;){var H=d[y];H.checked&&zd.push(H)}}function Ad(d){return setTimeout(d,0)}function Bd(){Cb.forEach(function(d){clearInterval(d.pid)});Cb=[]}function ce(){}function de(){}let Hc,Ne,Cd,Oe=!1,Dd=!1,ee=!1,Xb=!1,fe=!1;const Ed="undefined"!==typeof window?window:{},kc=Ed.document||{head:{}},Bb={$flags$:0,$resourcesUrl$:"",jmp:d=>d(),raf:d=>requestAnimationFrame(d),ael:(d,y,H,M)=>d.addEventListener(y,H,M),rel:(d,y,H,M)=>d.removeEventListener(y,H,
M),ce:(d,y)=>new CustomEvent(d,y)};a:{try{new CSSStyleSheet;var Pe="function"===typeof(new CSSStyleSheet).replace;break a}catch(d){}Pe=!1}const Eg=Pe,Qe=(d,y,H,M)=>{H&&H.map(([S,O,R])=>{const Y=S&4?kc:S&8?Ed:S&16?kc.body:d,ca=Fg(y,R),pa=0!==(S&2);Bb.ael(Y,O,ca,pa);(y.$rmListeners$=y.$rmListeners$||[]).push(()=>Bb.rel(Y,O,ca,pa))})},Fg=(d,y)=>H=>{try{d.$hostElement$[y](H)}catch(M){id(M)}},zc=(d,y)=>()=>{},Re=new WeakMap,Se=(d,y)=>"sc-"+(y&&d.$flags$&32?d.$tagName$+"-"+y:d.$tagName$),Hg=d=>Gg.map(y=>
y(d)).find(y=>!!y),Te={},ge=d=>{d=typeof d;return"object"===d||"function"===d},ma=(d,y,...H)=>{let M=null,S=null,O=null,R=!1,Y=!1,ca=[];const pa=wa=>{for(let za=0;za<wa.length;za++)if(M=wa[za],Array.isArray(M))pa(M);else if(null!=M&&"boolean"!==typeof M){if(R="function"!==typeof d&&!ge(M))M=String(M);R&&Y?ca[ca.length-1].$text$+=M:ca.push(R?Fd(null,M):M);Y=R}};pa(H);if(y){y.key&&(S=y.key);y.name&&(O=y.name);{const wa=y.className||y.class;wa&&(y.class="object"!==typeof wa?wa:Object.keys(wa).filter(za=>
wa[za]).join(" "))}}if("function"===typeof d)return d(null===y?{}:y,ca,Ig);H=Fd(d,null);H.$attrs$=y;0<ca.length&&(H.$children$=ca);H.$key$=S;H.$name$=O;return H},Fd=(d,y)=>({$flags$:0,$tag$:d,$text$:y,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),Ob={},Ig={forEach:(d,y)=>d.map(Ue).forEach(y),map:(d,y)=>d.map(Ue).map(y).map(Jg)},Ue=d=>({vattrs:d.$attrs$,vchildren:d.$children$,vkey:d.$key$,vname:d.$name$,vtag:d.$tag$,vtext:d.$text$}),Jg=d=>{if("function"===typeof d.vtag){var y=Object.assign({},
d.vattrs);d.vkey&&(y.key=d.vkey);d.vname&&(y.name=d.vname);return ma(d.vtag,y,...d.vchildren||[])}y=Fd(d.vtag,d.vtext);y.$attrs$=d.vattrs;y.$children$=d.vchildren;y.$key$=d.vkey;y.$name$=d.vname;return y},We=(d,y,H,M,S,O)=>{if(H!==M){let ca=y in d,pa=y.toLowerCase();if("class"===y){d=d.classList;const wa=H?H.split(Ve):[],za=M?M.split(Ve):[];d.remove(...wa.filter(Fa=>Fa&&!za.includes(Fa)));d.add(...za.filter(Fa=>Fa&&!wa.includes(Fa)))}else if("style"===y){for(var R in H)M&&null!=M[R]||(R.includes("-")?
d.style.removeProperty(R):d.style[R]="");for(var Y in M)H&&M[Y]===H[Y]||(Y.includes("-")?d.style.setProperty(Y,M[Y]):d.style[Y]=M[Y])}else if("key"!==y)if("ref"===y)M&&M(d);else if(d.__lookupSetter__(y)||"o"!==y[0]||"n"!==y[1]){R=ge(M);if((ca||R&&null!==M)&&!S)try{if(d.tagName.includes("-"))d[y]=M;else if(Y=null==M?"":M,"list"===y)ca=!1;else if(null==H||d[y]!=Y)d[y]=Y}catch(wa){}H=!1;pa!==(pa=pa.replace(/^xlink:?/,""))&&(y=pa,H=!0);if(null==M||!1===M){if(!1!==M||""===d.getAttribute(y))H?d.removeAttributeNS("http://www.w3.org/1999/xlink",
y):d.removeAttribute(y)}else(!ca||O&4||S)&&!R&&(M=!0===M?"":M,H?d.setAttributeNS("http://www.w3.org/1999/xlink",y,M):d.setAttribute(y,M))}else y="-"===y[2]?y.slice(3):pa in Ed?pa.slice(2):pa[2]+y.slice(3),H&&Bb.rel(d,y,H,!1),M&&Bb.ael(d,y,M,!1)}},Ve=/\s/,Xe=(d,y,H,M)=>{const S=11===y.$elm$.nodeType&&y.$elm$.host?y.$elm$.host:y.$elm$;d=d&&d.$attrs$||Te;const O=y.$attrs$||Te;for(M in d)M in O||We(S,M,d[M],void 0,H,y.$flags$);for(M in O)We(S,M,d[M],O[M],H,y.$flags$)},Gd=(d,y,H,M)=>{y=y.$children$[H];
let S=0,O;Oe||(ee=!0,"slot"===y.$tag$&&(Hc&&M.classList.add(Hc+"-s"),y.$flags$|=y.$children$?2:1));if(null!==y.$text$)M=y.$elm$=kc.createTextNode(y.$text$);else if(y.$flags$&1)M=y.$elm$=kc.createTextNode("");else{Xb||(Xb="svg"===y.$tag$);M=y.$elm$=kc.createElementNS(Xb?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",y.$flags$&2?"slot-fb":y.$tag$);Xb&&"foreignObject"===y.$tag$&&(Xb=!1);Xe(null,y,Xb);null!=Hc&&M["s-si"]!==Hc&&M.classList.add(M["s-si"]=Hc);if(y.$children$)for(S=0;S<y.$children$.length;++S)(O=
Gd(d,y,S,M))&&M.appendChild(O);"svg"===y.$tag$?Xb=!1:"foreignObject"===M.tagName&&(Xb=!0)}M["s-hn"]=Cd;y.$flags$&3&&(M["s-sr"]=!0,M["s-cr"]=Ne,M["s-sn"]=y.$name$||"",(H=d&&d.$children$&&d.$children$[H])&&H.$tag$===y.$tag$&&d.$elm$&&jd(d.$elm$,!1));return M},jd=(d,y)=>{Bb.$flags$|=1;d=d.childNodes;for(let H=d.length-1;0<=H;H--){const M=d[H];M["s-hn"]!==Cd&&M["s-ol"]&&((M["s-ol"]?M["s-ol"]:M).parentNode.insertBefore(M,he(M)),M["s-ol"].remove(),M["s-ol"]=void 0,ee=!0);y&&jd(M,y)}Bb.$flags$&=-2},Ye=(d,
y,H,M,S,O)=>{let R=d["s-cr"]&&d["s-cr"].parentNode||d,Y;R.shadowRoot&&R.tagName===Cd&&(R=R.shadowRoot);for(;S<=O;++S)M[S]&&(Y=Gd(null,H,S,d))&&(M[S].$elm$=Y,R.insertBefore(Y,he(y)))},$e=(d,y,H,M,S)=>{for(;y<=H;++y)if(M=d[y])S=M.$elm$,Ze(M),Dd=!0,S["s-ol"]?S["s-ol"].remove():jd(S,!0),S.remove()},Hd=(d,y)=>d.$tag$===y.$tag$?"slot"===d.$tag$?d.$name$===y.$name$:d.$key$===y.$key$:!1,he=d=>d&&d["s-ol"]||d,Ic=(d,y)=>{const H=y.$elm$=d.$elm$,M=d.$children$,S=y.$children$,O=y.$tag$;var R=y.$text$;if(null===
R){Xb="svg"===O?!0:"foreignObject"===O?!1:Xb;"slot"!==O&&Xe(d,y,Xb);if(null!==M&&null!==S){{var Y=R=d=0,ca=0;let pa=M.length-1,wa=M[0],za=M[pa],Fa=S.length-1,Ja=S[0],Qa=S[Fa];for(;d<=pa&&R<=Fa;)if(null==wa)wa=M[++d];else if(null==za)za=M[--pa];else if(null==Ja)Ja=S[++R];else if(null==Qa)Qa=S[--Fa];else if(Hd(wa,Ja))Ic(wa,Ja),wa=M[++d],Ja=S[++R];else if(Hd(za,Qa))Ic(za,Qa),za=M[--pa],Qa=S[--Fa];else if(Hd(wa,Qa))"slot"!==wa.$tag$&&"slot"!==Qa.$tag$||jd(wa.$elm$.parentNode,!1),Ic(wa,Qa),H.insertBefore(wa.$elm$,
za.$elm$.nextSibling),wa=M[++d],Qa=S[--Fa];else if(Hd(za,Ja))"slot"!==wa.$tag$&&"slot"!==Qa.$tag$||jd(za.$elm$.parentNode,!1),Ic(za,Ja),H.insertBefore(za.$elm$,wa.$elm$),za=M[--pa],Ja=S[++R];else{Y=-1;for(ca=d;ca<=pa;++ca)if(M[ca]&&null!==M[ca].$key$&&M[ca].$key$===Ja.$key$){Y=ca;break}0<=Y?(ca=M[Y],ca.$tag$!==Ja.$tag$?ca=Gd(M&&M[R],y,Y,H):(Ic(ca,Ja),M[Y]=void 0,ca=ca.$elm$)):ca=Gd(M&&M[R],y,R,H);Ja=S[++R];ca&&(Y=wa.$elm$,(Y["s-ol"]?Y["s-ol"]:Y).parentNode.insertBefore(ca,he(wa.$elm$)))}d>pa?Ye(H,
null==S[Fa+1]?null:S[Fa+1].$elm$,y,S,R,Fa):R>Fa&&$e(M,d,pa)}}else null!==S?(null!==d.$text$&&(H.textContent=""),Ye(H,null,y,S,0,S.length-1)):null!==M&&$e(M,0,M.length-1);Xb&&"svg"===O&&(Xb=!1)}else(y=H["s-cr"])?y.parentNode.textContent=R:d.$text$!==R&&(H.data=R)},af=d=>{d=d.childNodes;let y,H,M,S,O,R;H=0;for(M=d.length;H<M;H++)if(y=d[H],1===y.nodeType){if(y["s-sr"])for(O=y["s-sn"],y.hidden=!1,S=0;S<M;S++)if(R=d[S].nodeType,d[S]["s-hn"]!==y["s-hn"]||""!==O){if(1===R&&O===d[S].getAttribute("slot")){y.hidden=
!0;break}}else if(1===R||3===R&&""!==d[S].textContent.trim()){y.hidden=!0;break}af(y)}},bc=[],cf=d=>{let y,H,M,S,O,R=0,Y=d.childNodes,ca=Y.length;for(;R<ca;R++){d=Y[R];if(d["s-sr"]&&(y=d["s-cr"])&&y.parentNode)for(H=y.parentNode.childNodes,M=d["s-sn"],O=H.length-1;0<=O;O--)y=H[O],y["s-cn"]||y["s-nr"]||y["s-hn"]===d["s-hn"]||(bf(y,M)?(S=bc.find(pa=>pa.$nodeToRelocate$===y),Dd=!0,y["s-sn"]=y["s-sn"]||M,S?S.$slotRefNode$=d:bc.push({$slotRefNode$:d,$nodeToRelocate$:y}),y["s-sr"]&&bc.map(pa=>{bf(pa.$nodeToRelocate$,
y["s-sn"])&&(S=bc.find(wa=>wa.$nodeToRelocate$===y))&&!pa.$slotRefNode$&&(pa.$slotRefNode$=S.$slotRefNode$)})):bc.some(pa=>pa.$nodeToRelocate$===y)||bc.push({$nodeToRelocate$:y}));1===d.nodeType&&cf(d)}},bf=(d,y)=>1===d.nodeType?null===d.getAttribute("slot")&&""===y||d.getAttribute("slot")===y?!0:!1:d["s-sn"]===y?!0:""===y,Ze=d=>{d.$attrs$&&d.$attrs$.ref&&d.$attrs$.ref(null);d.$children$&&d.$children$.map(Ze)},Kg=(d,y)=>{const H=d.$hostElement$;var M=d.$cmpMeta$,S=d.$vnode$||Fd(null,null);const O=
y&&y.$tag$===Ob?y:ma(null,null,y);Cd=H.tagName;M.$attrsToReflect$&&(O.$attrs$=O.$attrs$||{},M.$attrsToReflect$.map(([R,Y])=>O.$attrs$[Y]=H[R]));O.$tag$=null;O.$flags$|=4;d.$vnode$=O;O.$elm$=S.$elm$=H.shadowRoot||H;Hc=H["s-sc"];Ne=H["s-cr"];Oe=0!==(M.$flags$&1);Dd=!1;Ic(S,O);Bb.$flags$|=1;if(ee){cf(O.$elm$);let R,Y;for(M=0;M<bc.length;M++)S=bc[M],d=S.$nodeToRelocate$,d["s-ol"]||(S=kc.createTextNode(""),S["s-nr"]=d,d.parentNode.insertBefore(d["s-ol"]=S,d));for(M=0;M<bc.length;M++)if(S=bc[M],d=S.$nodeToRelocate$,
S.$slotRefNode$){y=S.$slotRefNode$.parentNode;R=S.$slotRefNode$.nextSibling;for(S=d["s-ol"];S=S.previousSibling;)if((Y=S["s-nr"])&&Y["s-sn"]===d["s-sn"]&&y===Y.parentNode&&(Y=Y.nextSibling,!Y||!Y["s-nr"])){R=Y;break}(R||y===d.parentNode)&&d.nextSibling===R||d===R||(!d["s-hn"]&&d["s-ol"]&&(d["s-hn"]=d["s-ol"].parentNode.nodeName),y.insertBefore(d,R))}else 1===d.nodeType&&(d.hidden=!0)}Dd&&af(O.$elm$);Bb.$flags$&=-2;bc.length=0},nb=(d,y,H)=>({emit:M=>{M=Bb.ce(y,{bubbles:!!(H&4),composed:!!(H&2),cancelable:!!(H&
1),detail:M});d.dispatchEvent(M);return M}}),ie=(d,y)=>{d.$flags$|=16;return Lg(()=>Mg(d,y))},Mg=(d,y)=>{const H=d.$hostElement$,M=zc("scheduleUpdate",d.$cmpMeta$.$tagName$);let S;S=y?Jc(H,"componentWillLoad"):Jc(H,"componentWillUpdate");S=df(S,()=>Jc(H,"componentWillRender"));M();return df(S,()=>Ng(d,H,y))},Ng=async(d,y,H)=>{var M=d.$hostElement$,S=zc("update",d.$cmpMeta$.$tagName$);M["s-rc"];if(H){{var O=d.$cmpMeta$;H=d.$hostElement$;M=O.$flags$;const Y=zc("attachStyles",O.$tagName$);{var R=H.shadowRoot?
H.shadowRoot:H.getRootNode();O=Se(O,d.$modeName$);let ca=Id.get(O);R=11===R.nodeType?R:kc;if(ca)if("string"===typeof ca){R=R.head||R;let pa=Re.get(R),wa;pa||Re.set(R,pa=new Set);pa.has(O)||(wa=kc.createElement("style"),wa.innerHTML=ca,R.insertBefore(wa,R.querySelector("link")),pa&&pa.add(O))}else R.adoptedStyleSheets.includes(ca)||(R.adoptedStyleSheets=[...R.adoptedStyleSheets,ca]);R=O}M&10&&(H["s-sc"]=R,H.classList.add(R+"-h"),M&2&&H.classList.add(R+"-s"));Y()}}H=zc("render",d.$cmpMeta$.$tagName$);
try{y=y.render&&y.render(),d.$flags$&=-17,d.$flags$|=2,Kg(d,y)}catch(Y){id(Y,d.$hostElement$)}H();S();S=d.$hostElement$;y=zc("postUpdate",d.$cmpMeta$.$tagName$);d.$ancestorComponent$;Jc(S,"componentDidRender");d.$flags$&64?Jc(S,"componentDidUpdate"):(d.$flags$|=64,Jc(S,"componentDidLoad"));y()},Jd=d=>{{d=Kc.get(d);const y=d.$hostElement$.isConnected;y&&2===(d.$flags$&18)&&ie(d,!1);return y}},Jc=(d,y,H)=>{if(d&&d[y])try{return d[y](H)}catch(M){id(M)}},df=(d,y)=>d&&d.then?d.then(y):y(),Og=(d,y)=>{if(null!=
d&&!ge(d)){if(y&4)return"false"===d?!1:""===d||!!d;if(y&2)return parseFloat(d);if(y&1)return String(d)}return d},Pg=(d,y,H,M)=>{const S=Kc.get(d),O=S.$instanceValues$.get(y),R=S.$flags$;H=Og(H,M.$members$[y][0]);H!==O&&(S.$instanceValues$.set(y,H),M.$watchers$&&R&128&&(M=M.$watchers$[y])&&M.map(Y=>{try{d[Y](H,O,y)}catch(ca){id(ca,d)}}),2!==(R&18)||d.componentShouldUpdate&&!1===d.componentShouldUpdate(H,O,y)||ie(S,!1))},Qg=(d,y,H)=>{if(y.$members$){d.watchers&&(y.$watchers$=d.watchers);H=Object.entries(y.$members$);
const M=d.prototype;H.map(([S,[O]])=>{(O&31||O&32)&&Object.defineProperty(M,S,{get(){return Kc.get(this).$instanceValues$.get(S)},set(R){Pg(this,S,R,y)},configurable:!0,enumerable:!0})});{const S=new Map;M.attributeChangedCallback=function(O,R,Y){Bb.jmp(()=>{const ca=S.get(O);this[ca]=null===Y&&"boolean"===typeof this[ca]?!1:Y})};d.observedAttributes=H.filter(([,O])=>O[0]&15).map(([O,R])=>{const Y=R[1]||O;S.set(Y,O);R[0]&512&&y.$attrsToReflect$.push([O,Y]);return Y})}}return d},Rg=async(d,y,H,M,S)=>
{if(0===(y.$flags$&32)&&(S=d.constructor,y.$flags$|=160,S.style&&(S=S.style,"string"!==typeof S&&(S=S[y.$modeName$=Hg(d)]),M=Se(H,y.$modeName$),!Id.has(M)))){d=zc("registerStyles",H.$tagName$);{H=!!(H.$flags$&1);let O=Id.get(M);Eg&&H?(O=O||new CSSStyleSheet,O.replace(S)):O=S;Id.set(M,O)}d()}y.$ancestorComponent$;ie(y,!0)},Sg=d=>{0===(Bb.$flags$&1)&&(d=Kc.get(d),d.$rmListeners$&&(d.$rmListeners$.map(y=>y()),d.$rmListeners$=void 0))},ob=(d,y)=>{const H={$flags$:y[0],$tagName$:y[1]};H.$members$=y[2];
H.$listeners$=y[3];H.$watchers$=d.$watchers$;H.$attrsToReflect$=[];const M=d.prototype.connectedCallback,S=d.prototype.disconnectedCallback;Object.assign(d.prototype,{__registerHost(){{const O={$flags$:0,$hostElement$:this,$cmpMeta$:H,$instanceValues$:new Map};Qe(this,O,H.$listeners$);Kc.set(this,O)}},connectedCallback(){if(0===(Bb.$flags$&1)){const O=Kc.get(this),R=O.$cmpMeta$,Y=zc("connectedCallback",R.$tagName$);if(O.$flags$&1)Qe(this,O,R.$listeners$);else{O.$flags$|=1;if(R.$flags$&12){{const ca=
this["s-cr"]=kc.createComment("");ca["s-cn"]=!0;this.insertBefore(ca,this.firstChild)}}Rg(this,O,R)}Y()}M&&M.call(this)},disconnectedCallback(){Sg(this);S&&S.call(this)}});d.is=H.$tagName$;return Qg(d,H)},tb=d=>{d.attachShadow({mode:"open"})},jg=d=>{d=new URL(d,Bb.$resourcesUrl$);return d.origin!==Ed.location.origin?d.href:d.pathname},fc=(d,y)=>y,Kc=new WeakMap,id=(d,y)=>(0,console.error)(d,y),Id=new Map,Gg=[],ef=[],ff=[],gf=d=>{for(let y=0;y<d.length;y++)try{d[y](performance.now())}catch(H){id(H)}d.length=
0},je=()=>{gf(ef);gf(ff);(fe=0<ef.length)&&Bb.raf(je)},Lg=((d,y)=>H=>{d.push(H);fe||(fe=!0,y&&Bb.$flags$&4?(H=je,Promise.resolve(void 0).then(H)):Bb.raf(je))})(ff,!0),Wd="0123456789".split(""),Tg=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteActionClick=nb(this,"calciteActionClick",7);this.appearance="solid";this.indicator=this.disabled=this.compact=this.active=!1;this.intlLoading="Loading";this.loading=!1;this.scale="m";this.textEnabled=!1;this.observer=
new MutationObserver(()=>Jd(this));this.calciteActionClickHandler=()=>{this.disabled||this.calciteActionClick.emit()}}connectedCallback(){this.observer.observe(this.el,{childList:!0,subtree:!0})}disconnectedCallback(){this.observer.disconnect()}async setFocus(){this.buttonEl.focus()}renderTextContainer(){const {text:d,textEnabled:y}=this,H={["text-container"]:!0,["text-container--visible"]:y};return d?ma("div",{class:H,key:"text-container"},d):null}renderIconContainer(){var d;const {loading:y,icon:H,
scale:M,el:S,intlLoading:O}=this;var R="l"===M?"m":"s",Y=y?ma("calcite-loader",{active:!0,inline:!0,label:O,scale:R}):null;R=H?ma("calcite-icon",{icon:H,scale:R}):null;R=(Y=Y||R)||(null===(d=S.children)||void 0===d?void 0:d.length);d=ma("div",{class:{["slot-container"]:!0,["slot-container--hidden"]:y}},ma("slot",null));return R?ma("div",{"aria-hidden":"true",class:"icon-container",key:"icon-container"},Y,d):null}render(){const {compact:d,disabled:y,loading:H,el:M,textEnabled:S,label:O,text:R}=this,
Y=O||R,ca="rtl"===k(M);return ma(Ob,{onClick:this.calciteActionClickHandler},ma("button",{"aria-busy":H.toString(),"aria-disabled":y.toString(),"aria-label":Y,class:{["button"]:!0,["button--text-visible"]:S,["button--compact"]:d,["calcite--rtl"]:ca},disabled:y,ref:pa=>this.buttonEl=pa},this.renderIconContainer(),this.renderTextContainer()))}get el(){return this}static get style(){return'@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;background-color:transparent}:host([disabled]){pointer-events:none}.button{background-color:var(--calcite-ui-foreground-1);border-style:none;cursor:pointer;fill:var(--calcite-ui-text-3);display:-ms-flexbox;display:flex;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;margin:0;position:relative;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-ui-text-3);font-family:inherit;width:auto;text-align:unset}.button:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);fill:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);fill:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none;min-width:1rem;min-height:1rem}.button .text-container{line-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;width:0;opacity:0;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-property:margin;transition-property:margin;-webkit-transition-property:width;transition-property:width}.button .text-container--visible{-ms-flex:1 1 auto;flex:1 1 auto;opacity:1;width:auto}:host([scale\x3ds]) .button{padding:0.5rem}:host([scale\x3dm]) .button{padding:1rem}:host([scale\x3dl]) .button{padding:1.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([alignment\x3dcenter]) .button{-ms-flex-pack:center;justify-content:center;width:100%}:host([alignment\x3dend]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment\x3dend]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale\x3ds][compact]) .button,:host([scale\x3dm][compact]) .button,:host([scale\x3dl][compact]) .button{padding-left:0;padding-right:0}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}.button--text-visible .icon-container{margin:0;margin-right:0.5rem}.button--text-visible .text-container--visible{margin:0;margin-right:0.5rem}.button--text-visible.calcite--rtl .icon-container{margin:0;margin-left:0.5rem}.button--text-visible.calcite--rtl .text-container--visible{margin:0;margin-left:0.5rem}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{color:var(--calcite-ui-text-1);fill:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}:host([appearance\x3dclear]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance\x3dclear]) .button:hover,:host([appearance\x3dclear]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance\x3dclear]) .button,:host([active][appearance\x3dclear]) .button:hover,:host([active][appearance\x3dclear]) .button:focus{color:var(--calcite-ui-text-1);fill:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}:host([appearance\x3dclear][loading]) .button,:host([appearance\x3dclear][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:0.5}:host([loading]) calcite-loader[inline]{margin-right:0;color:var(--calcite-ui-text-3)}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;opacity:0.5;background-color:var(--calcite-ui-foreground-1)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{opacity:0.5;background-color:var(--calcite-ui-foreground-3)}:host([indicator]) .button--text-visible,:host([indicator][scale\x3ds]) .button--text-visible,:host([indicator][scale\x3dl]) .button--text-visible{padding-right:1rem}:host([indicator]) .button::after{content:"";position:absolute;border-width:2px;background-color:var(--calcite-ui-brand);border-radius:9999px;height:0.5rem;width:0.5rem;z-index:10;border-color:var(--calcite-ui-foreground-1);bottom:0.5rem;right:0.5rem}:host([indicator][scale\x3ds]) .button::after{bottom:0.25rem;right:0.25rem}:host([indicator][scale\x3dl]) .button::after{bottom:0.5rem;right:0.5rem}:host([indicator]) .calcite--rtl::after{right:auto;left:0.25rem}:host([indicator]) .button--text-visible.calcite--rtl{padding-right:0.75rem;padding-left:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}:host([indicator]) .button--text-visible::after,:host([indicator][scale\x3ds]) .button--text-visible::after,:host([indicator][scale\x3dl]) .button--text-visible::after{bottom:auto;right:0.5rem}:host([indicator]) .button--text-visible.calcite--rtl::after,:host([indicator][scale\x3ds]) .button--text-visible.calcite--rtl::after,:host([indicator][scale\x3dl]) .button--text-visible.calcite--rtl::after{right:auto;left:0.5rem}'}},
Ug=({tooltip:d,referenceElement:y,expanded:H,ref:M})=>{d&&(d.referenceElement=!H&&y);M&&M(y);return y},hf=({expanded:d,intlExpand:y,intlCollapse:H,toggle:M,el:S,position:O,tooltip:R,ref:Y})=>{const ca="rtl"===k(S);y=d?H:y;H=["chevrons-left","chevrons-right"];ca&&H.reverse();S=(O="end"===h(O,S))?H[1]:H[0];O=O?H[0]:H[1];M=ma("calcite-action",{dir:ca?"rtl":"ltr",icon:d?S:O,onClick:M,ref:pa=>Ug({tooltip:R,referenceElement:pa,expanded:d,ref:Y}),text:y,textEnabled:d});return R?ma("calcite-tooltip-manager",
null,M):M},Vg=({height:d,groupCount:y})=>Math.floor((d-18*y)/50),Wg=({actionCount:d,height:y,groupCount:H})=>Math.max(d-Vg({height:y,groupCount:H}),0),Xg=({actionGroups:d,expanded:y,overflowCount:H})=>{let M=H;d.reverse().forEach(S=>{let O=0;const R=Array.from(S.querySelectorAll("calcite-action")).reverse();R.forEach(Y=>{Y.removeAttribute("slot");Y.textEnabled=y});0<M&&R.some(Y=>{1<R.filter(ca=>!ca.slot).length&&2<R.length&&(Y.textEnabled=!0,Y.setAttribute("slot","menu-actions"),O++,1<O&&M--);return 1>
M});Jd(S)})},Yg=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteActionBarToggle=nb(this,"calciteActionBarToggle",7);this.expanded=this.expandDisabled=!1;this.mutationObserver=new MutationObserver(()=>{const {el:d,expanded:y}=this;n({parent:d,expanded:y});this.resize(d.clientHeight)});this.resizeObserver=new ResizeObserver(d=>this.resizeHandlerEntries(d));this.actionMenuOpenChangeHandler=d=>{if(d.detail){const y=d.composedPath();Array.from(this.el.querySelectorAll("calcite-action-group")).forEach(H=>
{y.includes(H)||(H.menuOpen=!1)})}};this.resizeHandlerEntries=d=>{d.forEach(this.resizeHandler)};this.resizeHandler=d=>{({height:d}=d.contentRect);this.resize(d)};this.resize=d=>{const {el:y,expanded:H,expandDisabled:M,lastActionCount:S,lastGroupCount:O,lastResizeHeight:R,overflowActionsDisabled:Y}=this;if("number"===typeof d&&!Y){var ca=y.querySelectorAll("calcite-action"),pa=M?ca.length:ca.length+1;ca=Array.from(y.querySelectorAll("calcite-action-group"));var wa=m(y,"bottom-actions")||!M?ca.length+
1:ca.length;if(R!==d||S!==pa||O!==wa)this.lastActionCount=pa,this.lastGroupCount=wa,this.lastResizeHeight=d,d=Wg({actionCount:pa,height:d,groupCount:wa}),Xg({actionGroups:ca,expanded:H,overflowCount:d})}};this.toggleExpand=()=>{this.expanded=!this.expanded};this.setExpandToggleRef=d=>{this.expandToggleEl=d}}expandHandler(d){d||n({parent:this.el,expanded:this.expanded});this.resize(this.el.clientHeight)}expandedHandler(d){this.expandDisabled||n({parent:this.el,expanded:d});this.calciteActionBarToggle.emit()}overflowDisabledHandler(d){d?
this.resizeObserver.disconnect():this.resizeObserver.observe(this.el)}componentWillLoad(){const {el:d,expandDisabled:y,expanded:H}=this;y||n({parent:d,expanded:H});this.mutationObserver.observe(d,{childList:!0});this.overflowActionsDisabled||this.resizeObserver.observe(d)}componentDidLoad(){this.resize(this.el.clientHeight)}disconnectedCallback(){this.mutationObserver.disconnect();this.resizeObserver.disconnect()}async setFocus(d){"expand-toggle"===d?await u(this.expandToggleEl):this.el.focus()}renderBottomActionGroup(){const {expanded:d,
expandDisabled:y,intlExpand:H,intlCollapse:M,el:S,position:O,toggleExpand:R}=this;var Y=m(S,"expand-tooltip");Y=y?null:ma(hf,{el:S,expanded:d,intlCollapse:M||"Collapse",intlExpand:H||"Expand",position:O,ref:this.setExpandToggleRef,toggle:R,tooltip:Y});return m(S,"bottom-actions")||Y?ma("calcite-action-group",{class:"action-group--bottom"},ma("slot",{name:"bottom-actions"}),ma("slot",{name:"expand-tooltip"}),Y):null}render(){return ma(Ob,{onCalciteActionMenuOpenChange:this.actionMenuOpenChangeHandler},
ma("slot",null),this.renderBottomActionGroup())}get el(){return this}static get watchers(){return{expandDisabled:["expandHandler"],expanded:["expandedHandler"],overflowActionsDisabled:["overflowDisabledHandler"]}}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-ms-flex-item-align:stretch;align-self:stretch;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;pointer-events:auto;max-width:15vw}:host([overflow-actions-disabled]){overflow-y:auto}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-width:0;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2)}::slotted(calcite-action-group:last-child){border-bottom-width:0}.action-group--bottom{padding-bottom:0;-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end}"}},
Zg=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.expanded=!1;this.layout="vertical";this.menuOpen=!1;this.setMenuOpen=d=>{this.menuOpen=!!d.detail}}expandedHandler(){this.menuOpen=!1}renderTooltip(){const {el:d}=this;return m(d,"menu-tooltip")?ma("slot",{name:"menu-tooltip",slot:"tooltip"}):null}renderMenu(){const {el:d,expanded:y,intlMore:H,menuOpen:M}=this;return m(d,"menu-actions")?ma("calcite-action-menu",{expanded:y,flipPlacements:["left","right"],label:H||
"More",onCalciteActionMenuOpenChange:this.setMenuOpen,open:M,placement:"leading-start"},ma("slot",{name:"menu-actions"}),this.renderTooltip()):null}render(){return ma(fc,null,ma("slot",null),this.renderMenu())}get el(){return this}static get watchers(){return{expanded:["expandedHandler"]}}static get style(){return'@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0;padding-right:0;--columns:3}:host([columns\x3d"1"]){--columns:1}:host([columns\x3d"2"]){--columns:2}:host([columns\x3d"3"]){--columns:3}:host([columns\x3d"4"]){--columns:4}:host([columns\x3d"5"]){--columns:5}:host([columns\x3d"6"]){--columns:6}:host(:first-child){padding-top:0}:host([layout\x3dhorizontal]){-ms-flex-direction:row;flex-direction:row}:host([layout\x3dgrid]){background-color:var(--calcite-ui-background);display:grid;grid-gap:1px;gap:1px;place-content:stretch;padding:1px;grid-template-columns:repeat(var(--columns), auto)}::slotted(calcite-action){display:-ms-flexbox;display:flex;width:100%}'}},
jf=["ArrowUp","ArrowDown"],kf=["ArrowUp","ArrowDown","End","Home"],$g=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteActionMenuOpenChange=nb(this,"calciteActionMenuOpenChange",7);this.open=this.expanded=!1;this.overlayPositioning="absolute";this.placement="auto";this.scale="m";this.actionElements=[];this.mutationObserver=new MutationObserver(()=>this.getActions());this.guid=`calcite-action-menu-${c([2,1,1,1,3])}`;this.menuId=`${this.guid}-menu`;this.menuButtonId=
`${this.guid}-menu-button`;this.activeMenuItemIndex=-1;this.menuButtonClick=()=>{this.toggleOpen()};this.setTooltipReferenceElement=()=>{const {el:d,expanded:y,menuButtonEl:H}=this;var M=m(d,"tooltip");M="SLOT"===(null===M||void 0===M?void 0:M.tagName)?M.assignedElements()[0]:M;"CALCITE-TOOLTIP"===(null===M||void 0===M?void 0:M.tagName)&&(M.referenceElement=!y&&H)};this.setMenuButtonRef=d=>{this.menuButtonEl=d;this.setTooltipReferenceElement();Jd(this)};this.updateAction=(d,y)=>{const {guid:H,activeMenuItemIndex:M}=
this,S=`${H}-action-${y}`;d.tabIndex=-1;d.setAttribute("role","menuitem");d.id||(d.id=S);d.active=y===M};this.updateActions=d=>{null===d||void 0===d?void 0:d.forEach(this.updateAction)};this.getActions=()=>{var {el:d}=this;const y=this.getAssignedElements().filter(H=>"CALCITE-ACTION"===H.tagName);d=y.length?y:Array.from(d.querySelectorAll("calcite-action"));this.updateActions(d);this.actionElements=d};this.menuButtonKeyUp=d=>{const {key:y}=d,{actionElements:H}=this;this.isValidKey(y,jf)&&(d.preventDefault(),
H.length&&(this.toggleOpen(!0),this.handleActionNavigation(y,H)))};this.menuButtonKeyDown=d=>{const {key:y}=d;this.isValidKey(y,jf)&&d.preventDefault()};this.menuActionsContainerKeyDown=d=>{const {key:y}=d,{actionElements:H,activeMenuItemIndex:M}=this;"Tab"===y?this.open=!1:" "===y||"Enter"===y?(d.preventDefault(),(d=H[M])?d.click():this.toggleOpen(!1)):this.isValidKey(y,kf)&&d.preventDefault()};this.menuActionsContainerKeyUp=d=>{const {key:y}=d,{actionElements:H}=this;"Escape"===y?this.toggleOpen(!1):
this.isValidKey(y,kf)&&(d.preventDefault(),H.length&&this.handleActionNavigation(y,H))};this.handleActionNavigation=(d,y)=>{const H=this.activeMenuItemIndex;"Home"===d&&(this.activeMenuItemIndex=0);"End"===d&&(this.activeMenuItemIndex=y.length-1);if("ArrowUp"===d){var M=y.length;this.activeMenuItemIndex=(Math.max(H-1,-1)+M)%M}"ArrowDown"===d&&(d=y.length,this.activeMenuItemIndex=(H+1+d)%d)};this.toggleOpen=(d=!this.open)=>{this.open=d;clearTimeout(this.menuFocusTimeout);d?this.menuFocusTimeout=window.setTimeout(()=>
this.setFocus(),50):this.setFocus()}}connectedCallback(){this.mutationObserver.observe(this.el,{childList:!0,subtree:!0});this.getActions()}disconnectedCallback(){this.mutationObserver.disconnect()}expandedHandler(){this.open=!1;this.setTooltipReferenceElement()}openHandler(d){this.activeMenuItemIndex=this.open?0:-1;this.calciteActionMenuOpenChange.emit(d)}closeCalciteActionMenuOnClick(d){d.composedPath().includes(this.el)||(this.open=!1)}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}async setFocus(){u(this.open?
this.menuEl:this.menuButtonEl)}renderMenuButton(){const {el:d,menuButtonId:y,menuId:H,open:M,label:S,expanded:O,scale:R}=this,Y=ma("calcite-action",{active:M,"aria-controls":H,"aria-expanded":M.toString(),"aria-haspopup":"true",class:"menu-button",icon:"ellipsis",id:y,label:S,onClick:this.menuButtonClick,onKeyDown:this.menuButtonKeyDown,onKeyUp:this.menuButtonKeyUp,ref:this.setMenuButtonRef,scale:R,text:S,textEnabled:O});return m(d,"tooltip")?ma("calcite-tooltip-manager",null,Y):Y}renderMenuItems(){const {actionElements:d,
activeMenuItemIndex:y,open:H,menuButtonId:M,menuId:S,menuButtonEl:O,label:R,placement:Y,overlayPositioning:ca}=this,pa=d[y];return ma("calcite-popover",{disablePointer:!0,label:R,open:H,overlayPositioning:ca,placement:Y,referenceElement:O},ma("div",{"aria-activedescendant":(null===pa||void 0===pa?void 0:pa.id)||null,"aria-labelledby":M,class:"menu",id:S,onKeyDown:this.menuActionsContainerKeyDown,onKeyUp:this.menuActionsContainerKeyUp,ref:wa=>this.menuEl=wa,role:"menu",tabIndex:-1},ma("slot",null)))}render(){return ma(fc,
null,this.renderMenuButton(),this.renderMenuItems(),ma("slot",{name:"tooltip"}))}getAssignedElements(){return Array.from(this.el.querySelectorAll("slot")).map(d=>d.assignedElements({flatten:!0})).reduce((d,y)=>d.concat(y),[])}isValidKey(d,y){return!!y.find(H=>H===d)}get el(){return this}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size-1)}::slotted(calcite-action){display:-ms-flexbox;display:flex;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;margin:0.125rem}::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-brand);outline-offset:2px;outline-offset:0px}.menu-button{-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:0 1 auto;flex:0 1 auto;height:100%;position:relative}.menu{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}"}},
ah=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteActionPadToggle=nb(this,"calciteActionPadToggle",7);this.expanded=this.expandDisabled=!1;this.layout="vertical";this.actionMenuOpenChangeHandler=d=>{if(d.detail){const y=d.composedPath();Array.from(this.el.querySelectorAll("calcite-action-group")).forEach(H=>{y.includes(H)||(H.menuOpen=!1)})}};this.toggleExpand=()=>{this.expanded=!this.expanded};this.setExpandToggleRef=d=>{this.expandToggleEl=d}}expandHandler(d){d||
n({parent:this.el,expanded:this.expanded})}expandedHandler(d){this.expandDisabled||n({parent:this.el,expanded:d});this.calciteActionPadToggle.emit()}componentWillLoad(){const {el:d,expandDisabled:y,expanded:H}=this;y||n({parent:d,expanded:H})}async setFocus(d){"expand-toggle"===d?await u(this.expandToggleEl):this.el.focus()}renderBottomActionGroup(){const {expanded:d,expandDisabled:y,intlExpand:H,intlCollapse:M,el:S,position:O,toggleExpand:R}=this;var Y=m(S,"expand-tooltip");return(Y=y?null:ma(hf,
{el:S,expanded:d,intlCollapse:M||"Collapse",intlExpand:H||"Expand",position:O,ref:this.setExpandToggleRef,toggle:R,tooltip:Y}))?ma("calcite-action-group",{class:"action-group--bottom"},ma("slot",{name:"expand-tooltip"}),Y):null}render(){const d="rtl"===k(this.el);return ma(Ob,{onCalciteActionMenuOpenChange:this.actionMenuOpenChangeHandler},ma("div",{class:{["container"]:!0,["calcite--rtl"]:d}},ma("slot",null),this.renderBottomActionGroup()))}get el(){return this}static get watchers(){return{expandDisabled:["expandHandler"],
expanded:["expandedHandler"]}}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-webkit-animation:in 300ms ease-in-out;animation:in 300ms ease-in-out;border-radius:0.125rem}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-width:0;border-bottom-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid;padding-bottom:0;padding-top:0}.container{-ms-flex-direction:column;flex-direction:column;display:-ms-inline-flexbox;display:inline-flex;overflow-y:auto;border-radius:0.25rem;background-color:var(--calcite-ui-background);-webkit-box-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);box-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);max-width:15vw}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0}:host([layout\x3dhorizontal]) .container{-ms-flex-direction:row;flex-direction:row;max-width:unset}:host([layout\x3dhorizontal]) .container .action-group--bottom{padding:0}:host([layout\x3dhorizontal]) .container ::slotted(calcite-action-group){border-width:0;border-right-width:1px;padding:0}:host([layout\x3dhorizontal]) .container.calcite--rtl ::slotted(calcite-action-group){border-width:0;border-left-width:1px}::slotted(calcite-action-group:last-child){border-bottom-width:0}"}};
var lf;(function(d){d.green="checkCircle";d.yellow="exclamationMarkTriangle";d.red="exclamationMarkTriangle";d.blue="lightbulb"})(lf||(lf={}));const bh=/^[0-9A-F]$/i,ve=/^#[0-9A-F]{3}$/i,we=/^#[0-9A-F]{6}$/i,yc={HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"},Ec={RGB:"rgb",RGBA:"rgba",HSL:"hsl",HSLA:"hsla",HSV:"hsv",HSVA:"hsva"},Kd=(d,y)=>{const H=`h${d.level}`;delete d.level;return ma(H,Object.assign({},d),y)},ch=class extends HTMLElement{constructor(){super();
this.__registerHost();tb(this);this.calciteBlockToggle=nb(this,"calciteBlockToggle",7);this.dragHandle=this.disabled=this.collapsible=!1;this.intlLoading="Loading";this.open=this.loading=!1;this.onHeaderClick=()=>{this.open=!this.open;this.calciteBlockToggle.emit()}}renderScrim(){const {disabled:d,loading:y}=this,H=ma("slot",null);return[y||d?ma("calcite-scrim",{loading:y}):null,H]}render(){const {collapsible:d,disabled:y,el:H,heading:M,intlCollapse:S,intlExpand:O,loading:R,open:Y,summary:ca,intlLoading:pa,
headingLevel:wa}=this;var za=Y?S||"Collapse":O||"Expand",Fa=m(H,"icon");Fa=ma("header",{class:"header"},Fa?ma("div",{class:"icon"},ma("slot",{name:"icon"})):null,ma("div",{class:"title"},ma(Kd,{class:"heading",level:wa||4},M),ca?ma("div",{class:"summary"},ca):null));const Ja=!!m(H,"control"),Qa=Y?"chevron-up":"chevron-down";za=ma("div",{class:"header-container"},this.dragHandle?ma("calcite-handle",null):null,d?ma("button",{"aria-expanded":d?Y.toString():null,"aria-label":za,class:"toggle",onClick:this.onHeaderClick,
title:za},Fa,Ja?null:ma("calcite-icon",{"aria-hidden":"true",class:"toggle-icon",icon:Qa,scale:"s"})):Fa,R?ma("calcite-loader",{inline:!0,"is-active":!0,label:pa}):Ja?ma("div",{class:"control-container"},ma("slot",{name:"control"})):null);Fa="rtl"===k(H);return ma(Ob,{tabIndex:y?-1:null},ma("article",{"aria-busy":R.toString(),class:{["article"]:!0,["calcite--rtl"]:Fa}},za,ma("div",{class:"content",hidden:!Y},this.renderScrim())))}get el(){return this}static get style(){return'@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{--calcite-icon-size:1rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-direction:column;flex-direction:column;padding:0;-webkit-transition-property:margin;transition-property:margin;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);border-width:0;border-bottom-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid;-ms-flex-preferred-size:auto;flex-basis:auto}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-ui-text-2);fill:var(--calcite-ui-text-2)}.heading{padding:0;margin:0;font-weight:var(--calcite-font-weight-medium);line-height:1.5}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-spacing-half) var(--calcite-spacing-half)}h1.heading{font-size:var(--calcite-font-size-2)}h2.heading{font-size:var(--calcite-font-size-1)}h3.heading{font-size:var(--calcite-font-size-0)}h4.heading,h5.heading{font-size:var(--calcite-font-size--1)}.header{-ms-flex-pack:start;justify-content:flex-start;padding:0}.header,.toggle{grid-area:header}.header-container{display:grid;-ms-flex-align:stretch;align-items:stretch;grid-template:auto/auto 1fr auto;grid-template-areas:"handle header control";grid-column:header-start/control-end;grid-row:1/2}.header-container\x3e.header{padding-top:0.75rem;padding-bottom:0.75rem;padding-left:0;padding-right:0}.toggle{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;font-family:inherit;-ms-flex-align:center;align-items:center;margin:0;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:0;padding-right:0;border-style:none;cursor:pointer;text-align:left;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;background-color:transparent}.toggle:hover{background-color:var(--calcite-ui-foreground-2)}.toggle:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}calcite-loader[inline]{grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0;padding-left:1rem;padding-right:1rem;padding-top:0;padding-bottom:0}.header .title .heading{padding:0;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;line-height:1.25;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.summary{padding:0;font-size:var(--calcite-font-size--2);color:var(--calcite-ui-text-3);word-wrap:break-word;word-break:break-word}.icon{margin-left:0.75rem}.toggle-icon{margin-right:1rem;-ms-flex-item-align:center;align-self:center;color:var(--calcite-ui-text-3);-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.toggle:hover .toggle-icon{color:var(--calcite-ui-text-1)}.content{padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem;position:relative;-webkit-animation:in 300ms ease-in-out;animation:in 300ms ease-in-out}.control-container{display:-ms-flexbox;display:flex;margin:0;grid-area:control}.calcite--rtl .toggle-icon{margin-right:0;margin-left:1rem}.calcite--rtl .icon{margin-left:0;margin-right:0.75rem}:host([open]){margin-top:0.5rem;margin-bottom:0.5rem}:host([open]) .header .title .heading{color:var(--calcite-ui-text-1)}:host([disabled]){pointer-events:none;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;user-select:none}:host([disabled]) .header-container{opacity:0.5}:host([drag-handle]) .calcite--rtl .title{padding-left:0;padding-right:0.25rem}'}},
dh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteBlockSectionToggle=nb(this,"calciteBlockSectionToggle",7);this.open=!1;this.toggleDisplay="button";this.toggleSection=()=>{this.open=!this.open;this.calciteBlockSectionToggle.emit()}}handleHeaderLabelKeyDown(d){if(" "===d.key||"Enter"===d.key)d.preventDefault(),d.stopPropagation(),this.click()}render(){const {el:d,intlCollapse:y,intlExpand:H,open:M,text:S,toggleDisplay:O}=this,R=k(d);var Y=M?"chevron-down":
"rtl"===R?"chevron-left":"chevron-right";const ca=M?y||"Collapse":H||"Expand";Y="switch"===O?ma("label",{"aria-label":ca,class:{["toggle"]:!0,["toggle--switch"]:!0},onKeyDown:this.handleHeaderLabelKeyDown,tabIndex:0,title:ca},ma("span",{class:"toggle--switch__text"},S),ma("calcite-switch",{onCalciteSwitchChange:this.toggleSection,scale:"s",switched:M,tabIndex:-1})):ma("button",{"aria-label":ca,class:{["section-header"]:!0,["toggle"]:!0},name:ca,onClick:this.toggleSection,onKeyDown:this.handleHeaderLabelKeyDown},
ma("calcite-icon",{icon:Y,scale:"s"}),ma("span",{class:"section-header__text"},S));return ma("section",{"aria-expanded":M.toString(),class:{["calcite--rtl"]:"rtl"===R}},Y,ma("div",{class:"content",hidden:!M},ma("slot",null)))}get el(){return this}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{--calcite-icon-size:1rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}:host([open]){border-bottom:1px solid var(--calcite-ui-border-3)}:host(:last-child){border-bottom:none}.toggle{background-color:transparent;border:none;color:var(--calcite-ui-text-2);font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);width:100%}.toggle--switch,.section-header{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;margin:var(--calcite-spacing-quarter) 0;padding:var(--calcite-spacing-half) 0;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none;font-size:var(--calcite-font-size--1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.toggle--switch:focus,.section-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.toggle--switch:hover,.section-header:hover{color:var(--calcite-ui-text-1)}.section-header__text{margin-left:0.75rem;margin-right:0.75rem;margin-top:0;margin-bottom:0}.toggle--switch{-ms-flex-pack:justify;justify-content:space-between}.toggle--switch calcite-switch{pointer-events:none;margin:0 0 0 var(--calcite-spacing-half)}.calcite--rtl .toggle--switch calcite-switch{margin-left:0;margin-right:var(--calcite-spacing-half)}"}},
eh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.appearance="solid";this.color="blue";this.intlLoading="Loading";this.alignment="center";this.round=this.loading=!1;this.scale="m";this.splitChild=!1;this.width="auto";this.childElType="button";this.hasContent=!1;this.handleClick=d=>{if("button"===this.childElType&&"button"!==this.type){var y=this.el.getAttribute("form");if(y=y?document.getElementsByName(`${y}`)[0]:this.el.closest("form")){const H=y.onsubmit;switch(this.type){case "submit":H?
H():y.checkValidity()?y.submit():y.reportValidity();break;case "reset":y.reset()}}d.preventDefault()}}}connectedCallback(){this.childElType=this.href?"a":"button";this.setupTextContentObserver()}disconnectedCallback(){this.observer.disconnect()}componentWillLoad(){{this.updateHasContent();const d=this.el.getAttribute("type");this.type="button"===this.childElType&&d?d:"submit"}}render(){const d=k(this.el),y=f(this.el,"appearance alignment calcite-hydrated class color dir icon-start icon-end id split-child loading scale slot width".split(" ")),
H=this.childElType,M=ma("div",{class:"calcite-button--loader"},ma("calcite-loader",{active:!0,inline:!0,label:this.intlLoading}));var S="l"===this.scale?"m":"s";const O=ma("calcite-icon",{class:{["icon"]:!0,["icon--start"]:!0},flipRtl:"start"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconStart,scale:S});S=ma("calcite-icon",{class:{["icon"]:!0,["icon--end"]:!0},flipRtl:"end"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconEnd,scale:S});const R=ma("span",{class:"content"},
ma("slot",null));return ma(H,Object.assign({},y,{class:{["calcite--rtl"]:"rtl"===d,["content--slotted"]:this.hasContent},disabled:this.disabled,onClick:this.handleClick,ref:Y=>this.childEl=Y,tabIndex:this.disabled?-1:null}),this.loading?M:null,this.iconStart?O:null,this.hasContent?R:null,this.iconEnd?S:null)}async setFocus(){this.childEl.focus()}updateHasContent(){var d,y;const H=0<this.el.textContent.trim().length||0<this.el.childNodes.length;this.hasContent=1===this.el.childNodes.length&&"#text"===
(null===(d=this.el.childNodes[0])||void 0===d?void 0:d.nodeName)?0<(null===(y=this.el.textContent)||void 0===y?void 0:y.trim().length):H}setupTextContentObserver(){this.observer=new MutationObserver(()=>{this.updateHasContent()});this.observer.observe(this.el,{childList:!0,subtree:!0})}get el(){return this}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block;width:auto;vertical-align:middle}:host([round]){border-radius:50px}:host([round]) a,:host([round]) button{border-radius:50px}:host button,:host a{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host button:focus,:host a:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host button,:host a{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0.375rem 1rem;text-decoration:none;width:100%;height:100%;border-radius:0;border:none;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none;font-family:inherit;-webkit-appearance:none;cursor:pointer;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:background-color 0.15s ease-in-out, border 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:background-color 0.15s ease-in-out, border 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:background-color 0.15s ease-in-out, border 0.15s ease-in-out, box-shadow 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:background-color 0.15s ease-in-out, border 0.15s ease-in-out, box-shadow 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out, -webkit-box-shadow 0.15s ease-in-out}:host button:hover,:host a:hover{text-decoration:none}.content{display:-ms-flexbox;display:flex;-ms-flex-preferred-size:auto;flex-basis:auto;margin-left:0.5rem;margin-right:0.5rem}:host(:not([icon-start])) .content{margin-left:unset}:host(:not([icon-end])) .content{margin-right:unset}:host([icon-start]:not([icon-end])) .calcite--rtl .content{margin-left:unset;margin-right:0.5rem}:host([icon-end]:not([icon-start])) .calcite--rtl .content{margin-right:unset;margin-left:0.5rem}:host([width\x3dauto]){width:auto}:host([width\x3dhalf]){width:50%}:host([width\x3dfull]){width:100%}:host([alignment\x3dcenter]:not([width\x3dauto])) a,:host([alignment\x3dcenter]:not([width\x3dauto])) button{-ms-flex-pack:center;justify-content:center}:host([alignment\x3dstart]:not([width\x3dauto])) a,:host([alignment\x3dstart]:not([width\x3dauto])) button{-ms-flex-pack:start;justify-content:flex-start}:host([alignment\x3dend]:not([width\x3dauto])) a,:host([alignment\x3dend]:not([width\x3dauto])) button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment*\x3dspace-between]:not([width\x3dauto])) a,:host([alignment*\x3dspace-between]:not([width\x3dauto])) button{-ms-flex-pack:justify;justify-content:space-between}:host([alignment\x3dicon-start-space-between]:not([width\x3dauto])) .icon--start{margin-right:auto}:host([alignment\x3dicon-start-space-between]:not([width\x3dauto])) a,:host([alignment\x3dicon-start-space-between]:not([width\x3dauto])) button{text-align:unset}:host([alignment\x3dicon-end-space-between]:not([width\x3dauto])) .icon--end{margin-left:auto}:host([alignment\x3dicon-end-space-between]:not([width\x3dauto])) a,:host([alignment\x3dicon-end-space-between]:not([width\x3dauto])) button{text-align:unset}:host([alignment\x3dicon-start-space-between]:not([width\x3dauto])) .calcite--rtl .icon--start{margin-right:unset;margin-left:auto}:host([alignment\x3dicon-end-space-between]:not([width\x3dauto])) .calcite--rtl .icon--end{margin-left:unset;margin-right:auto}:host([alignment\x3dcenter]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment\x3dcenter]) button:not(.content--slotted) .icon--start+.icon--end{margin-left:0.5rem}:host([alignment\x3dcenter]) .calcite--rtl a:not(.content--slotted) .icon--start+.icon--end,:host([alignment\x3dcenter]) .calcite--rtl button:not(.content--slotted) .icon--start+.icon--end{margin-left:unset;margin-right:0.5rem}.icon{display:-ms-inline-flexbox;display:inline-flex;position:relative;margin:0;line-height:inherit;-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out}:host([disabled]){pointer-events:none}:host([disabled]) button,:host([disabled]) a{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}.calcite-button--loader{display:-ms-flexbox;display:flex;position:absolute;top:0;left:0;right:0;bottom:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.calcite-button--loader calcite-loader{margin:0}:host([loading]) button,:host([loading]) a{color:transparent !important;pointer-events:none}:host([loading]) button .calcite-button--icon,:host([loading]) a .calcite-button--icon{opacity:0}:host([appearance\x3dsolid][color\x3dblue]) button,:host([appearance\x3dsolid][color\x3dblue]) a{color:var(--calcite-ui-foreground-1);background-color:var(--calcite-ui-brand);border:1px solid transparent}:host([appearance\x3dsolid][color\x3dblue]) button:hover,:host([appearance\x3dsolid][color\x3dblue]) button:focus,:host([appearance\x3dsolid][color\x3dblue]) a:hover,:host([appearance\x3dsolid][color\x3dblue]) a:focus{background-color:var(--calcite-ui-brand-hover)}:host([appearance\x3dsolid][color\x3dblue]) button:active,:host([appearance\x3dsolid][color\x3dblue]) a:active{background-color:var(--calcite-ui-brand)}:host([appearance\x3dsolid][color\x3dblue]) button .calcite-button--icon,:host([appearance\x3dsolid][color\x3dblue]) a .calcite-button--icon{fill:var(--calcite-ui-foreground-1)}:host([appearance\x3dsolid][color\x3dblue]) button calcite-loader,:host([appearance\x3dsolid][color\x3dblue]) a calcite-loader{color:var(--calcite-ui-foreground-1)}:host([appearance\x3dsolid][color\x3dred]) button,:host([appearance\x3dsolid][color\x3dred]) a{color:var(--calcite-ui-foreground-1);background-color:var(--calcite-ui-danger);border:1px solid transparent}:host([appearance\x3dsolid][color\x3dred]) button:hover,:host([appearance\x3dsolid][color\x3dred]) button:focus,:host([appearance\x3dsolid][color\x3dred]) a:hover,:host([appearance\x3dsolid][color\x3dred]) a:focus{background-color:var(--calcite-ui-danger-hover)}:host([appearance\x3dsolid][color\x3dred]) button:active,:host([appearance\x3dsolid][color\x3dred]) a:active{background-color:var(--calcite-ui-danger)}:host([appearance\x3dsolid][color\x3dred]) button .calcite-button--icon,:host([appearance\x3dsolid][color\x3dred]) a .calcite-button--icon{fill:var(--calcite-ui-foreground-1)}:host([appearance\x3dsolid][color\x3dred]) button calcite-loader,:host([appearance\x3dsolid][color\x3dred]) a calcite-loader{color:var(--calcite-ui-foreground-1)}:host([appearance\x3dsolid][color\x3dneutral]) button,:host([appearance\x3dsolid][color\x3dneutral]) a{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3);border:1px solid transparent}:host([appearance\x3dsolid][color\x3dneutral]) button:hover,:host([appearance\x3dsolid][color\x3dneutral]) button:focus,:host([appearance\x3dsolid][color\x3dneutral]) a:hover,:host([appearance\x3dsolid][color\x3dneutral]) a:focus{background-color:var(--calcite-ui-foreground-2)}:host([appearance\x3dsolid][color\x3dneutral]) button:active,:host([appearance\x3dsolid][color\x3dneutral]) a:active{background-color:var(--calcite-ui-foreground-3)}:host([appearance\x3dsolid][color\x3dneutral]) button .calcite-button--icon,:host([appearance\x3dsolid][color\x3dneutral]) a .calcite-button--icon{fill:var(--calcite-ui-text-1)}:host([appearance\x3dsolid][color\x3dneutral]) button calcite-loader,:host([appearance\x3dsolid][color\x3dneutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance\x3dsolid][color\x3dinverse]) button,:host([appearance\x3dsolid][color\x3dinverse]) a{color:#ffffff;background-color:var(--calcite-ui-inverse);border:1px solid transparent}:host([appearance\x3dsolid][color\x3dinverse]) button:hover,:host([appearance\x3dsolid][color\x3dinverse]) button:focus,:host([appearance\x3dsolid][color\x3dinverse]) a:hover,:host([appearance\x3dsolid][color\x3dinverse]) a:focus{background-color:var(--calcite-ui-inverse-hover)}:host([appearance\x3dsolid][color\x3dinverse]) button:active,:host([appearance\x3dsolid][color\x3dinverse]) a:active{background-color:var(--calcite-ui-inverse)}:host([appearance\x3dsolid][color\x3dinverse]) button .calcite-button--icon,:host([appearance\x3dsolid][color\x3dinverse]) a .calcite-button--icon{fill:#ffffff}:host([appearance\x3dsolid][color\x3dinverse]) button calcite-loader,:host([appearance\x3dsolid][color\x3dinverse]) a calcite-loader{color:#ffffff}:host([appearance\x3doutline][color\x3dblue]) button,:host([appearance\x3doutline][color\x3dblue]) a{color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);border:1px solid var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance\x3doutline][color\x3dblue]) button:hover,:host([appearance\x3doutline][color\x3dblue]) a:hover{border-color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([appearance\x3doutline][color\x3dblue]) button:active,:host([appearance\x3doutline][color\x3dblue]) button:focus,:host([appearance\x3doutline][color\x3dblue]) a:active,:host([appearance\x3doutline][color\x3dblue]) a:focus{color:var(--calcite-ui-brand-press);border-color:var(--calcite-ui-brand-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance\x3doutline][color\x3dblue]) button:active .calcite-button--icon,:host([appearance\x3doutline][color\x3dblue]) button:focus .calcite-button--icon,:host([appearance\x3doutline][color\x3dblue]) a:active .calcite-button--icon,:host([appearance\x3doutline][color\x3dblue]) a:focus .calcite-button--icon{fill:var(--calcite-ui-brand-press)}:host([appearance\x3doutline][color\x3dblue]) button .calcite-button--icon,:host([appearance\x3doutline][color\x3dblue]) a .calcite-button--icon{fill:var(--calcite-ui-brand)}:host([appearance\x3doutline][color\x3dblue]) button calcite-loader,:host([appearance\x3doutline][color\x3dblue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance\x3doutline][color\x3dred]) button,:host([appearance\x3doutline][color\x3dred]) a{color:var(--calcite-ui-danger);background-color:var(--calcite-ui-foreground-1);border:1px solid var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance\x3doutline][color\x3dred]) button:hover,:host([appearance\x3doutline][color\x3dred]) a:hover{border-color:var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-danger);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger)}:host([appearance\x3doutline][color\x3dred]) button:active,:host([appearance\x3doutline][color\x3dred]) button:focus,:host([appearance\x3doutline][color\x3dred]) a:active,:host([appearance\x3doutline][color\x3dred]) a:focus{color:var(--calcite-ui-danger-press);border-color:var(--calcite-ui-danger-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance\x3doutline][color\x3dred]) button:active .calcite-button--icon,:host([appearance\x3doutline][color\x3dred]) button:focus .calcite-button--icon,:host([appearance\x3doutline][color\x3dred]) a:active .calcite-button--icon,:host([appearance\x3doutline][color\x3dred]) a:focus .calcite-button--icon{fill:var(--calcite-ui-danger-press)}:host([appearance\x3doutline][color\x3dred]) button .calcite-button--icon,:host([appearance\x3doutline][color\x3dred]) a .calcite-button--icon{fill:var(--calcite-ui-danger)}:host([appearance\x3doutline][color\x3dred]) button calcite-loader,:host([appearance\x3doutline][color\x3dred]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance\x3doutline][color\x3dneutral]) button,:host([appearance\x3doutline][color\x3dneutral]) a{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-1);border:1px solid var(--calcite-ui-foreground-3);-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance\x3doutline][color\x3dneutral]) button:hover,:host([appearance\x3doutline][color\x3dneutral]) a:hover{border-color:var(--calcite-ui-foreground-3);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance\x3doutline][color\x3dneutral]) button:active,:host([appearance\x3doutline][color\x3dneutral]) button:focus,:host([appearance\x3doutline][color\x3dneutral]) a:active,:host([appearance\x3doutline][color\x3dneutral]) a:focus{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-border-2);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-border-2);box-shadow:inset 0 0 0 2px var(--calcite-ui-border-2)}:host([appearance\x3doutline][color\x3dneutral]) button:active .calcite-button--icon,:host([appearance\x3doutline][color\x3dneutral]) button:focus .calcite-button--icon,:host([appearance\x3doutline][color\x3dneutral]) a:active .calcite-button--icon,:host([appearance\x3doutline][color\x3dneutral]) a:focus .calcite-button--icon{fill:var(--calcite-ui-text-1)}:host([appearance\x3doutline][color\x3dneutral]) button .calcite-button--icon,:host([appearance\x3doutline][color\x3dneutral]) a .calcite-button--icon{fill:var(--calcite-ui-text-1)}:host([appearance\x3doutline][color\x3dneutral]) button calcite-loader,:host([appearance\x3doutline][color\x3dneutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance\x3doutline][color\x3dinverse]) button,:host([appearance\x3doutline][color\x3dinverse]) a{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-1);border:1px solid var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance\x3doutline][color\x3dinverse]) button:hover,:host([appearance\x3doutline][color\x3dinverse]) a:hover{border-color:var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse)}:host([appearance\x3doutline][color\x3dinverse]) button:active,:host([appearance\x3doutline][color\x3dinverse]) button:focus,:host([appearance\x3doutline][color\x3dinverse]) a:active,:host([appearance\x3doutline][color\x3dinverse]) a:focus{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse-hover);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-hover)}:host([appearance\x3doutline][color\x3dinverse]) button:active .calcite-button--icon,:host([appearance\x3doutline][color\x3dinverse]) button:focus .calcite-button--icon,:host([appearance\x3doutline][color\x3dinverse]) a:active .calcite-button--icon,:host([appearance\x3doutline][color\x3dinverse]) a:focus .calcite-button--icon{fill:var(--calcite-ui-text-1)}:host([appearance\x3doutline][color\x3dinverse]) button .calcite-button--icon,:host([appearance\x3doutline][color\x3dinverse]) a .calcite-button--icon{fill:var(--calcite-ui-text-1)}:host([appearance\x3doutline][color\x3dinverse]) button calcite-loader,:host([appearance\x3doutline][color\x3dinverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance\x3dclear][color\x3dblue]) button,:host([appearance\x3dclear][color\x3dblue]) a{color:var(--calcite-ui-brand);background-color:transparent;border:1px solid var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance\x3dclear][color\x3dblue]) button:hover,:host([appearance\x3dclear][color\x3dblue]) a:hover{border-color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([appearance\x3dclear][color\x3dblue]) button:active,:host([appearance\x3dclear][color\x3dblue]) button:focus,:host([appearance\x3dclear][color\x3dblue]) a:active,:host([appearance\x3dclear][color\x3dblue]) a:focus{color:var(--calcite-ui-brand-press);border-color:var(--calcite-ui-brand-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance\x3dclear][color\x3dblue]) button:active .calcite-button--icon,:host([appearance\x3dclear][color\x3dblue]) button:focus .calcite-button--icon,:host([appearance\x3dclear][color\x3dblue]) a:active .calcite-button--icon,:host([appearance\x3dclear][color\x3dblue]) a:focus .calcite-button--icon{fill:var(--calcite-ui-brand-press)}:host([appearance\x3dclear][color\x3dblue]) button .calcite-button--icon,:host([appearance\x3dclear][color\x3dblue]) a .calcite-button--icon{fill:var(--calcite-ui-brand)}:host([appearance\x3dclear][color\x3dblue]) button calcite-loader,:host([appearance\x3dclear][color\x3dblue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance\x3dclear][color\x3dred]) button,:host([appearance\x3dclear][color\x3dred]) a{color:var(--calcite-ui-danger);background-color:transparent;border:1px solid var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance\x3dclear][color\x3dred]) button:hover,:host([appearance\x3dclear][color\x3dred]) a:hover{border-color:var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-danger);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger)}:host([appearance\x3dclear][color\x3dred]) button:active,:host([appearance\x3dclear][color\x3dred]) button:focus,:host([appearance\x3dclear][color\x3dred]) a:active,:host([appearance\x3dclear][color\x3dred]) a:focus{color:var(--calcite-ui-danger-press);border-color:var(--calcite-ui-danger-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance\x3dclear][color\x3dred]) button:active .calcite-button--icon,:host([appearance\x3dclear][color\x3dred]) button:focus .calcite-button--icon,:host([appearance\x3dclear][color\x3dred]) a:active .calcite-button--icon,:host([appearance\x3dclear][color\x3dred]) a:focus .calcite-button--icon{fill:var(--calcite-ui-danger-press)}:host([appearance\x3dclear][color\x3dred]) button .calcite-button--icon,:host([appearance\x3dclear][color\x3dred]) a .calcite-button--icon{fill:var(--calcite-ui-danger)}:host([appearance\x3dclear][color\x3dred]) button calcite-loader,:host([appearance\x3dclear][color\x3dred]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance\x3dclear][color\x3dneutral]) button,:host([appearance\x3dclear][color\x3dneutral]) a{color:var(--calcite-ui-text-1);background-color:transparent;border:1px solid var(--calcite-ui-foreground-3);-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance\x3dclear][color\x3dneutral]) button:hover,:host([appearance\x3dclear][color\x3dneutral]) a:hover{border-color:var(--calcite-ui-foreground-3);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance\x3dclear][color\x3dneutral]) button:active,:host([appearance\x3dclear][color\x3dneutral]) button:focus,:host([appearance\x3dclear][color\x3dneutral]) a:active,:host([appearance\x3dclear][color\x3dneutral]) a:focus{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-border-2);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-border-2);box-shadow:inset 0 0 0 2px var(--calcite-ui-border-2)}:host([appearance\x3dclear][color\x3dneutral]) button:active .calcite-button--icon,:host([appearance\x3dclear][color\x3dneutral]) button:focus .calcite-button--icon,:host([appearance\x3dclear][color\x3dneutral]) a:active .calcite-button--icon,:host([appearance\x3dclear][color\x3dneutral]) a:focus .calcite-button--icon{fill:var(--calcite-ui-text-1)}:host([appearance\x3dclear][color\x3dneutral]) button .calcite-button--icon,:host([appearance\x3dclear][color\x3dneutral]) a .calcite-button--icon{fill:var(--calcite-ui-text-1)}:host([appearance\x3dclear][color\x3dneutral]) button calcite-loader,:host([appearance\x3dclear][color\x3dneutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance\x3dclear][color\x3dinverse]) button,:host([appearance\x3dclear][color\x3dinverse]) a{color:var(--calcite-ui-text-1);background-color:transparent;border:1px solid var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance\x3dclear][color\x3dinverse]) button:hover,:host([appearance\x3dclear][color\x3dinverse]) a:hover{border-color:var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse)}:host([appearance\x3dclear][color\x3dinverse]) button:active,:host([appearance\x3dclear][color\x3dinverse]) button:focus,:host([appearance\x3dclear][color\x3dinverse]) a:active,:host([appearance\x3dclear][color\x3dinverse]) a:focus{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse-hover);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-hover)}:host([appearance\x3dclear][color\x3dinverse]) button:active .calcite-button--icon,:host([appearance\x3dclear][color\x3dinverse]) button:focus .calcite-button--icon,:host([appearance\x3dclear][color\x3dinverse]) a:active .calcite-button--icon,:host([appearance\x3dclear][color\x3dinverse]) a:focus .calcite-button--icon{fill:var(--calcite-ui-text-1)}:host([appearance\x3dclear][color\x3dinverse]) button .calcite-button--icon,:host([appearance\x3dclear][color\x3dinverse]) a .calcite-button--icon{fill:var(--calcite-ui-text-1)}:host([appearance\x3dclear][color\x3dinverse]) button calcite-loader,:host([appearance\x3dclear][color\x3dinverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance\x3doutline][split-child\x3dprimary]) button,:host([appearance\x3dclear][split-child\x3dprimary]) button{border-right:0}:host([appearance\x3doutline][split-child\x3dsecondary]) button .calcite--rtl,:host([appearance\x3dclear][split-child\x3dsecondary]) button .calcite--rtl{border-right:0}:host([appearance\x3doutline][split-child\x3dsecondary]) button,:host([appearance\x3dclear][split-child\x3dsecondary]) button{border-left:0}:host([appearance\x3doutline][split-child\x3dprimary]) button .calcite--rtl,:host([appearance\x3dclear][split-child\x3dprimary]) button .calcite--rtl{border-left:0}:host([appearance\x3dtransparent][color\x3dblue]) button,:host([appearance\x3dtransparent][color\x3dblue]) a{color:var(--calcite-ui-text-link);background-color:transparent}:host([appearance\x3dtransparent][color\x3dblue]) button:hover,:host([appearance\x3dtransparent][color\x3dblue]) button:focus,:host([appearance\x3dtransparent][color\x3dblue]) a:hover,:host([appearance\x3dtransparent][color\x3dblue]) a:focus{background-color:var(--calcite-button-transparent-hover)}:host([appearance\x3dtransparent][color\x3dblue]) button:active,:host([appearance\x3dtransparent][color\x3dblue]) a:active{background-color:var(--calcite-button-transparent-press)}:host([appearance\x3dtransparent][color\x3dblue]) button calcite-loader,:host([appearance\x3dtransparent][color\x3dblue]) a calcite-loader{color:var(--calcite-ui-text-link)}:host([appearance\x3dtransparent][color\x3dred]) button,:host([appearance\x3dtransparent][color\x3dred]) a{color:var(--calcite-ui-danger-press);background-color:transparent}:host([appearance\x3dtransparent][color\x3dred]) button:hover,:host([appearance\x3dtransparent][color\x3dred]) button:focus,:host([appearance\x3dtransparent][color\x3dred]) a:hover,:host([appearance\x3dtransparent][color\x3dred]) a:focus{background-color:var(--calcite-button-transparent-hover)}:host([appearance\x3dtransparent][color\x3dred]) button:active,:host([appearance\x3dtransparent][color\x3dred]) a:active{background-color:var(--calcite-button-transparent-press)}:host([appearance\x3dtransparent][color\x3dred]) button calcite-loader,:host([appearance\x3dtransparent][color\x3dred]) a calcite-loader{color:var(--calcite-ui-danger-press)}:host([appearance\x3dtransparent][color\x3dneutral]) button,:host([appearance\x3dtransparent][color\x3dneutral]) a{color:var(--calcite-ui-text-1);background-color:transparent}:host([appearance\x3dtransparent][color\x3dneutral]) button:hover,:host([appearance\x3dtransparent][color\x3dneutral]) button:focus,:host([appearance\x3dtransparent][color\x3dneutral]) a:hover,:host([appearance\x3dtransparent][color\x3dneutral]) a:focus{background-color:var(--calcite-button-transparent-hover)}:host([appearance\x3dtransparent][color\x3dneutral]) button:active,:host([appearance\x3dtransparent][color\x3dneutral]) a:active{background-color:var(--calcite-button-transparent-press)}:host([appearance\x3dtransparent][color\x3dneutral]) button calcite-loader,:host([appearance\x3dtransparent][color\x3dneutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance\x3dtransparent][color\x3dinverse]) button,:host([appearance\x3dtransparent][color\x3dinverse]) a{color:var(--calcite-ui-foreground-1);background-color:transparent}:host([appearance\x3dtransparent][color\x3dinverse]) button:hover,:host([appearance\x3dtransparent][color\x3dinverse]) button:focus,:host([appearance\x3dtransparent][color\x3dinverse]) a:hover,:host([appearance\x3dtransparent][color\x3dinverse]) a:focus{background-color:var(--calcite-button-transparent-hover)}:host([appearance\x3dtransparent][color\x3dinverse]) button:active,:host([appearance\x3dtransparent][color\x3dinverse]) a:active{background-color:var(--calcite-button-transparent-press)}:host([appearance\x3dtransparent][color\x3dinverse]) button calcite-loader,:host([appearance\x3dtransparent][color\x3dinverse]) a calcite-loader{color:var(--calcite-ui-foreground-1)}:host([scale\x3ds]:not([appearance\x3dtransparent])) button.content--slotted,:host([scale\x3ds]:not([appearance\x3dtransparent])) a.content--slotted{padding:7px 12px;font-size:12px;line-height:1.33}:host([scale\x3ds][appearance\x3dtransparent]) button.content--slotted,:host([scale\x3ds][appearance\x3dtransparent]) a.content--slotted{padding:8px 12px;font-size:12px;line-height:1.33}:host([scale\x3dm]:not([appearance\x3dtransparent])) button.content--slotted,:host([scale\x3dm]:not([appearance\x3dtransparent])) a.content--slotted{padding:13px 20px;font-size:14px;line-height:1.15}:host([scale\x3dm][appearance\x3dtransparent]) button.content--slotted,:host([scale\x3dm][appearance\x3dtransparent]) a.content--slotted{padding:14px 20px;font-size:14px;line-height:1.15}:host([scale\x3dl]:not([appearance\x3dtransparent])) button.content--slotted,:host([scale\x3dl]:not([appearance\x3dtransparent])) a.content--slotted{padding:15px 24px;font-size:18px;line-height:1.2}:host([scale\x3dl][appearance\x3dtransparent]) button.content--slotted,:host([scale\x3dl][appearance\x3dtransparent]) a.content--slotted{padding:16px 24px;font-size:18px;line-height:1.2}:host([scale\x3ds]) button:not(.content--slotted),:host([scale\x3ds]) a:not(.content--slotted){height:32px;width:32px;font-size:12px}:host([scale\x3dm]) button:not(.content--slotted),:host([scale\x3dm]) a:not(.content--slotted){height:44px;width:44px;font-size:14px}:host([scale\x3dl]) button:not(.content--slotted),:host([scale\x3dl]) a:not(.content--slotted){height:56px;width:56px;font-size:18px}:host([scale\x3ds][icon-start][icon-end]) button:not(.content--slotted),:host([scale\x3ds][icon-start][icon-end]) a:not(.content--slotted){height:32px;width:48px;font-size:12px}:host([scale\x3dm][icon-start][icon-end]) button:not(.content--slotted),:host([scale\x3dm][icon-start][icon-end]) a:not(.content--slotted){height:44px;width:66px;font-size:14px}:host([scale\x3dl][icon-start][icon-end]) button:not(.content--slotted),:host([scale\x3dl][icon-start][icon-end]) a:not(.content--slotted){height:56px;width:84px;font-size:18px}"}};
var cc={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],
darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,
144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,
216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,
170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,
232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],
slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},kd=z(function(d){var y=Array.prototype.concat,H=Array.prototype.slice,M=d.exports=function(S){for(var O=[],R=0,Y=S.length;R<Y;R++){var ca=
S[R];var pa=(pa=ca)&&"string"!==typeof pa?pa instanceof Array||Array.isArray(pa)||0<=pa.length&&(pa.splice instanceof Function||Object.getOwnPropertyDescriptor(pa,pa.length-1)&&"String"!==pa.constructor.name):!1;pa?O=y.call(O,H.call(ca)):O.push(ca)}return O};M.wrap=function(S){return function(){return S(M(arguments))}}}),Xc=z(function(d){function y(R,Y,ca){return Math.min(Math.max(Y,R),ca)}function H(R){R=R.toString(16).toUpperCase();return 2>R.length?"0"+R:R}var M={},S;for(S in cc)cc.hasOwnProperty(S)&&
(M[cc[S]]=S);var O=d.exports={to:{},get:{}};O.get=function(R){switch(R.substring(0,3).toLowerCase()){case "hsl":R=O.get.hsl(R);var Y="hsl";break;case "hwb":R=O.get.hwb(R);Y="hwb";break;default:R=O.get.rgb(R),Y="rgb"}return R?{model:Y,value:R}:null};O.get.rgb=function(R){if(!R)return null;var Y=/^#([a-f0-9]{3,4})$/i,ca=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,pa=/^rgba?\(\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,
wa=/(\D+)/,za=[0,0,0,1],Fa;if(Fa=R.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){Y=Fa[2];Fa=Fa[1];for(R=0;3>R;R++)ca=2*R,za[R]=parseInt(Fa.slice(ca,ca+2),16);Y&&(za[3]=parseInt(Y,16)/255)}else if(Fa=R.match(Y)){Fa=Fa[1];Y=Fa[3];for(R=0;3>R;R++)za[R]=parseInt(Fa[R]+Fa[R],16);Y&&(za[3]=parseInt(Y+Y,16)/255)}else if(Fa=R.match(ca)){for(R=0;3>R;R++)za[R]=parseInt(Fa[R+1],0);Fa[4]&&(za[3]=parseFloat(Fa[4]))}else if(Fa=R.match(pa)){for(R=0;3>R;R++)za[R]=Math.round(2.55*parseFloat(Fa[R+1]));Fa[4]&&(za[3]=parseFloat(Fa[4]))}else{if(Fa=
R.match(wa)){if("transparent"===Fa[1])return[0,0,0,0];za=cc[Fa[1]];if(!za)return null;za[3]=1;return za}return null}for(R=0;3>R;R++)za[R]=y(za[R],0,255);za[3]=y(za[3],0,1);return za};O.get.hsl=function(R){if(!R)return null;var Y=R.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(Y){var ca=parseFloat(Y[4]);R=(parseFloat(Y[1])+360)%360;var pa=y(parseFloat(Y[2]),0,100);Y=y(parseFloat(Y[3]),0,100);ca=y(isNaN(ca)?1:ca,0,1);
return[R,pa,Y,ca]}return null};O.get.hwb=function(R){if(!R)return null;var Y=R.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(Y){var ca=parseFloat(Y[4]);R=(parseFloat(Y[1])%360+360)%360;var pa=y(parseFloat(Y[2]),0,100);Y=y(parseFloat(Y[3]),0,100);ca=y(isNaN(ca)?1:ca,0,1);return[R,pa,Y,ca]}return null};O.to.hex=function(){var R=kd(arguments);return"#"+H(R[0])+H(R[1])+H(R[2])+(1>R[3]?H(Math.round(255*R[3])):"")};O.to.rgb=function(){var R=
kd(arguments);return 4>R.length||1===R[3]?"rgb("+Math.round(R[0])+", "+Math.round(R[1])+", "+Math.round(R[2])+")":"rgba("+Math.round(R[0])+", "+Math.round(R[1])+", "+Math.round(R[2])+", "+R[3]+")"};O.to.rgb.percent=function(){var R=kd(arguments),Y=Math.round(R[0]/255*100),ca=Math.round(R[1]/255*100),pa=Math.round(R[2]/255*100);return 4>R.length||1===R[3]?"rgb("+Y+"%, "+ca+"%, "+pa+"%)":"rgba("+Y+"%, "+ca+"%, "+pa+"%, "+R[3]+")"};O.to.hsl=function(){var R=kd(arguments);return 4>R.length||1===R[3]?
"hsl("+R[0]+", "+R[1]+"%, "+R[2]+"%)":"hsla("+R[0]+", "+R[1]+"%, "+R[2]+"%, "+R[3]+")"};O.to.hwb=function(){var R=kd(arguments),Y="";4<=R.length&&1!==R[3]&&(Y=", "+R[3]);return"hwb("+R[0]+", "+R[1]+"%, "+R[2]+"%"+Y+")"};O.to.keyword=function(R){return M[R.slice(0,3)]}}),Ac=z(function(d){var y={};for(S in cc)cc.hasOwnProperty(S)&&(y[cc[S]]=S);var H=d.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},
xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},M;for(M in H)if(H.hasOwnProperty(M)){if(!("channels"in H[M]))throw Error("missing channels property: "+M);if(!("labels"in H[M]))throw Error("missing channel labels property: "+
M);if(H[M].labels.length!==H[M].channels)throw Error("channel and label counts mismatch: "+M);d=H[M].channels;var S=H[M].labels;delete H[M].channels;delete H[M].labels;Object.defineProperty(H[M],"channels",{value:d});Object.defineProperty(H[M],"labels",{value:S})}H.rgb.hsl=function(O){var R=O[0]/255,Y=O[1]/255,ca=O[2]/255;O=Math.min(R,Y,ca);var pa=Math.max(R,Y,ca),wa=pa-O,za;pa===O?za=0:R===pa?za=(Y-ca)/wa:Y===pa?za=2+(ca-R)/wa:ca===pa&&(za=4+(R-Y)/wa);za=Math.min(60*za,360);0>za&&(za+=360);R=(O+
pa)/2;return[za,100*(pa===O?0:.5>=R?wa/(pa+O):wa/(2-pa-O)),100*R]};H.rgb.hsv=function(O){var R,Y=O[0]/255,ca=O[1]/255,pa=O[2]/255,wa=Math.max(Y,ca,pa);var za=wa-Math.min(Y,ca,pa);if(0===za)var Fa=R=0;else{R=za/wa;O=(wa-Y)/6/za+.5;var Ja=(wa-ca)/6/za+.5;za=(wa-pa)/6/za+.5;Y===wa?Fa=za-Ja:ca===wa?Fa=1/3+O-za:pa===wa&&(Fa=2/3+Ja-O);0>Fa?Fa+=1:1<Fa&&--Fa}return[360*Fa,100*R,100*wa]};H.rgb.hwb=function(O){var R=O[0],Y=O[1],ca=O[2];O=H.rgb.hsl(O)[0];var pa=1/255*Math.min(R,Math.min(Y,ca));ca=1-1/255*Math.max(R,
Math.max(Y,ca));return[O,100*pa,100*ca]};H.rgb.cmyk=function(O){var R=O[0]/255,Y=O[1]/255;O=O[2]/255;var ca=Math.min(1-R,1-Y,1-O);return[100*((1-R-ca)/(1-ca)||0),100*((1-Y-ca)/(1-ca)||0),100*((1-O-ca)/(1-ca)||0),100*ca]};H.rgb.keyword=function(O){var R=y[O];if(R)return R;R=Infinity;var Y;for(Y in cc)if(cc.hasOwnProperty(Y)){var ca=cc[Y];ca=Math.pow(O[0]-ca[0],2)+Math.pow(O[1]-ca[1],2)+Math.pow(O[2]-ca[2],2);if(ca<R){R=ca;var pa=Y}}return pa};H.keyword.rgb=function(O){return cc[O]};H.rgb.xyz=function(O){var R=
O[0]/255,Y=O[1]/255;O=O[2]/255;R=.04045<R?Math.pow((R+.055)/1.055,2.4):R/12.92;Y=.04045<Y?Math.pow((Y+.055)/1.055,2.4):Y/12.92;O=.04045<O?Math.pow((O+.055)/1.055,2.4):O/12.92;return[100*(.4124*R+.3576*Y+.1805*O),100*(.2126*R+.7152*Y+.0722*O),100*(.0193*R+.1192*Y+.9505*O)]};H.rgb.lab=function(O){var R=H.rgb.xyz(O);O=R[0];var Y=R[1];R=R[2];O/=95.047;Y/=100;R/=108.883;O=.008856<O?Math.pow(O,1/3):7.787*O+16/116;Y=.008856<Y?Math.pow(Y,1/3):7.787*Y+16/116;R=.008856<R?Math.pow(R,1/3):7.787*R+16/116;return[116*
Y-16,500*(O-Y),200*(Y-R)]};H.hsl.rgb=function(O){var R=O[0]/360,Y=O[1]/100;O=O[2]/100;if(0===Y){var ca=255*O;return[ca,ca,ca]}Y=.5>O?O*(1+Y):O+Y-O*Y;O=2*O-Y;var pa=[0,0,0];for(var wa=0;3>wa;wa++)ca=R+1/3*-(wa-1),0>ca&&ca++,1<ca&&ca--,ca=1>6*ca?O+6*(Y-O)*ca:1>2*ca?Y:2>3*ca?O+(Y-O)*(2/3-ca)*6:O,pa[wa]=255*ca;return pa};H.hsl.hsv=function(O){var R=O[0],Y=O[1]/100;O=O[2]/100;var ca=Y,pa=Math.max(O,.01);O*=2;Y*=1>=O?O:2-O;ca*=1>=pa?pa:2-pa;return[R,100*(0===O?2*ca/(pa+ca):2*Y/(O+Y)),(O+Y)/2*100]};H.hsv.rgb=
function(O){var R=O[0]/60,Y=O[1]/100;O=O[2]/100;var ca=Math.floor(R)%6,pa=R-Math.floor(R);R=255*O*(1-Y);var wa=255*O*(1-Y*pa);Y=255*O*(1-Y*(1-pa));O*=255;switch(ca){case 0:return[O,Y,R];case 1:return[wa,O,R];case 2:return[R,O,Y];case 3:return[R,wa,O];case 4:return[Y,R,O];case 5:return[O,R,wa]}};H.hsv.hsl=function(O){var R=O[0],Y=O[1]/100;O=O[2]/100;var ca=Math.max(O,.01);var pa=(2-Y)*ca;ca=Y*ca/(1>=pa?pa:2-pa)||0;return[R,100*ca,(2-Y)*O/2*100]};H.hwb.rgb=function(O){var R=O[0]/360,Y=O[1]/100;O=O[2]/
100;var ca=Y+O;1<ca&&(Y/=ca,O/=ca);ca=Math.floor(6*R);O=1-O;R=6*R-ca;0!==(ca&1)&&(R=1-R);R=Y+R*(O-Y);switch(ca){default:case 6:case 0:ca=O;var pa=R;break;case 1:ca=R;pa=O;break;case 2:ca=Y;pa=O;Y=R;break;case 3:ca=Y;pa=R;Y=O;break;case 4:ca=R;pa=Y;Y=O;break;case 5:ca=O,pa=Y,Y=R}return[255*ca,255*pa,255*Y]};H.cmyk.rgb=function(O){var R=O[3]/100;return[255*(1-Math.min(1,O[0]/100*(1-R)+R)),255*(1-Math.min(1,O[1]/100*(1-R)+R)),255*(1-Math.min(1,O[2]/100*(1-R)+R))]};H.xyz.rgb=function(O){var R=O[0]/100,
Y=O[1]/100,ca=O[2]/100;O=3.2406*R+-1.5372*Y+-.4986*ca;var pa=-.9689*R+1.8758*Y+.0415*ca;R=.0557*R+-.204*Y+1.057*ca;O=.0031308<O?1.055*Math.pow(O,1/2.4)-.055:12.92*O;pa=.0031308<pa?1.055*Math.pow(pa,1/2.4)-.055:12.92*pa;R=.0031308<R?1.055*Math.pow(R,1/2.4)-.055:12.92*R;O=Math.min(Math.max(0,O),1);pa=Math.min(Math.max(0,pa),1);R=Math.min(Math.max(0,R),1);return[255*O,255*pa,255*R]};H.xyz.lab=function(O){var R=O[0],Y=O[1];O=O[2];R/=95.047;Y/=100;O/=108.883;R=.008856<R?Math.pow(R,1/3):7.787*R+16/116;
Y=.008856<Y?Math.pow(Y,1/3):7.787*Y+16/116;O=.008856<O?Math.pow(O,1/3):7.787*O+16/116;return[116*Y-16,500*(R-Y),200*(Y-O)]};H.lab.xyz=function(O){var R=O[1],Y=O[2];O=(O[0]+16)/116;R=R/500+O;Y=O-Y/200;var ca=Math.pow(O,3),pa=Math.pow(R,3),wa=Math.pow(Y,3);return[95.047*(.008856<pa?pa:(R-16/116)/7.787),100*(.008856<ca?ca:(O-16/116)/7.787),108.883*(.008856<wa?wa:(Y-16/116)/7.787)]};H.lab.lch=function(O){var R=O[0],Y=O[1];O=O[2];var ca=360*Math.atan2(O,Y)/2/Math.PI;0>ca&&(ca+=360);return[R,Math.sqrt(Y*
Y+O*O),ca]};H.lch.lab=function(O){var R=O[0],Y=O[1];O=O[2]/360*2*Math.PI;return[R,Y*Math.cos(O),Y*Math.sin(O)]};H.rgb.ansi16=function(O){var R=O[0],Y=O[1],ca=O[2],pa=1 in arguments?arguments[1]:H.rgb.hsv(O)[2];pa=Math.round(pa/50);if(0===pa)return 30;R=30+(Math.round(ca/255)<<2|Math.round(Y/255)<<1|Math.round(R/255));2===pa&&(R+=60);return R};H.hsv.ansi16=function(O){return H.rgb.ansi16(H.hsv.rgb(O),O[2])};H.rgb.ansi256=function(O){var R=O[0],Y=O[1];O=O[2];return R===Y&&Y===O?8>R?16:248<R?231:Math.round((R-
8)/247*24)+232:16+36*Math.round(R/255*5)+6*Math.round(Y/255*5)+Math.round(O/255*5)};H.ansi16.rgb=function(O){var R=O%10;if(0===R||7===R)return 50<O&&(R+=3.5),R=R/10.5*255,[R,R,R];O=.5*(~~(50<O)+1);return[(R&1)*O*255,(R>>1&1)*O*255,(R>>2&1)*O*255]};H.ansi256.rgb=function(O){if(232<=O){var R=10*(O-232)+8;return[R,R,R]}O-=16;R=Math.floor(O/36)/5*255;var Y=Math.floor((O%=36)/6)/5*255;return[R,Y,O%6/5*255]};H.rgb.hex=function(O){O=(((Math.round(O[0])&255)<<16)+((Math.round(O[1])&255)<<8)+(Math.round(O[2])&
255)).toString(16).toUpperCase();return"000000".substring(O.length)+O};H.hex.rgb=function(O){O=O.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!O)return[0,0,0];var R=O[0];3===O[0].length&&(R=R.split("").map(function(Y){return Y+Y}).join(""));O=parseInt(R,16);return[O>>16&255,O>>8&255,O&255]};H.rgb.hcg=function(O){var R=O[0]/255,Y=O[1]/255;O=O[2]/255;var ca=Math.max(Math.max(R,Y),O),pa=Math.min(Math.min(R,Y),O),wa=ca-pa;return[(0>=wa?0:ca===R?(Y-O)/wa%6:ca===Y?2+(O-R)/wa:(R-Y)/wa+8)/6%1*360,100*
wa,100*(1>wa?pa/(1-wa):0)]};H.hsl.hcg=function(O){var R=O[1]/100,Y=O[2]/100,ca=1,pa=0;ca=.5>Y?2*R*Y:2*R*(1-Y);1>ca&&(pa=(Y-.5*ca)/(1-ca));return[O[0],100*ca,100*pa]};H.hsv.hcg=function(O){var R=O[2]/100,Y=O[1]/100*R,ca=0;1>Y&&(ca=(R-Y)/(1-Y));return[O[0],100*Y,100*ca]};H.hcg.rgb=function(O){var R=O[1]/100,Y=O[2]/100;if(0===R)return[255*Y,255*Y,255*Y];var ca=[0,0,0];O=O[0]/360%1*6;var pa=O%1,wa=1-pa,za=0;switch(Math.floor(O)){case 0:ca[0]=1;ca[1]=pa;ca[2]=0;break;case 1:ca[0]=wa;ca[1]=1;ca[2]=0;break;
case 2:ca[0]=0;ca[1]=1;ca[2]=pa;break;case 3:ca[0]=0;ca[1]=wa;ca[2]=1;break;case 4:ca[0]=pa;ca[1]=0;ca[2]=1;break;default:ca[0]=1,ca[1]=0,ca[2]=wa}za=(1-R)*Y;return[255*(R*ca[0]+za),255*(R*ca[1]+za),255*(R*ca[2]+za)]};H.hcg.hsv=function(O){var R=O[1]/100,Y=R+O[2]/100*(1-R),ca=0;0<Y&&(ca=R/Y);return[O[0],100*ca,100*Y]};H.hcg.hsl=function(O){var R=O[1]/100,Y=O[2]/100*(1-R)+.5*R,ca=0;0<Y&&.5>Y?ca=R/(2*Y):.5<=Y&&1>Y&&(ca=R/(2*(1-Y)));return[O[0],100*ca,100*Y]};H.hcg.hwb=function(O){var R=O[1]/100,Y=R+
O[2]/100*(1-R);return[O[0],100*(Y-R),100*(1-Y)]};H.hwb.hcg=function(O){var R=1-O[2]/100,Y=R-O[1]/100,ca=0;1>Y&&(ca=(R-Y)/(1-Y));return[O[0],100*Y,100*ca]};H.apple.rgb=function(O){return[O[0]/65535*255,O[1]/65535*255,O[2]/65535*255]};H.rgb.apple=function(O){return[O[0]/255*65535,O[1]/255*65535,O[2]/255*65535]};H.gray.rgb=function(O){return[O[0]/100*255,O[0]/100*255,O[0]/100*255]};H.gray.hsl=H.gray.hsv=function(O){return[0,0,O[0]]};H.gray.hwb=function(O){return[0,100,O[0]]};H.gray.cmyk=function(O){return[0,
0,0,O[0]]};H.gray.lab=function(O){return[O[0],0,0]};H.gray.hex=function(O){O=Math.round(O[0]/100*255)&255;O=((O<<16)+(O<<8)+O).toString(16).toUpperCase();return"000000".substring(O.length)+O};H.rgb.gray=function(O){return[(O[0]+O[1]+O[2])/3/255*100]}}),fh=function(d){for(var y={},H=Object.keys(Ac),M=H.length,S=0;S<M;S++)y[H[S]]={distance:-1,parent:null};H=[d];for(y[d].distance=0;H.length;){d=H.pop();M=Object.keys(Ac[d]);S=M.length;for(var O=0;O<S;O++){var R=M[O],Y=y[R];-1===Y.distance&&(Y.distance=
y[d].distance+1,Y.parent=d,H.unshift(R))}}H={};d=Object.keys(y);M=d.length;for(S=0;S<M;S++){var ca=d[S];if(null!==y[ca].parent){O=ca;R=y;Y=[R[ca].parent,ca];var pa=Ac[R[ca].parent][ca];for(ca=R[ca].parent;R[ca].parent;)Y.unshift(R[ca].parent),pa=E(Ac[R[ca].parent][ca],pa),ca=R[ca].parent;pa.conversion=Y;H[O]=pa}}return H},Lc={};Object.keys(Ac).forEach(function(d){Lc[d]={};Object.defineProperty(Lc[d],"channels",{value:Ac[d].channels});Object.defineProperty(Lc[d],"labels",{value:Ac[d].labels});var y=
fh(d);Object.keys(y).forEach(function(H){var M=y[H];Lc[d][H]=G(M);Lc[d][H].raw=F(M)})});var Tb=Lc,Sd=[].slice,xe=["keyword","gray","hex"],Td={};Object.keys(Tb).forEach(function(d){Td[Sd.call(Tb[d].labels).sort().join("")]=d});var sd={};N.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(d){var y=this.model in Xc.to?this:this.rgb();y=y.round("number"===typeof d?d:1);d=1===y.valpha?y.color:y.color.concat(this.valpha);return Xc.to[y.model](d)},
percentString:function(d){d=this.rgb().round("number"===typeof d?d:1);d=1===d.valpha?d.color:d.color.concat(this.valpha);return Xc.to.rgb.percent(d)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var d={},y=Tb[this.model].channels,H=Tb[this.model].labels,M=0;M<y;M++)d[H[M]]=this.color[M];1!==this.valpha&&(d.alpha=this.valpha);return d},unitArray:function(){var d=this.rgb().color;d[0]/=255;d[1]/=255;d[2]/=255;1!==this.valpha&&d.push(this.valpha);
return d},unitObject:function(){var d=this.rgb().object();d.r/=255;d.g/=255;d.b/=255;1!==this.valpha&&(d.alpha=this.valpha);return d},round:function(d){d=Math.max(d||0,0);return new N(this.color.map(K(d)).concat(this.valpha),this.model)},alpha:function(d){return arguments.length?new N(this.color.concat(Math.max(0,Math.min(1,d))),this.model):this.valpha},red:I("rgb",0,J(255)),green:I("rgb",1,J(255)),blue:I("rgb",2,J(255)),hue:I(["hsl","hsv","hsl","hwb","hcg"],0,function(d){return(d%360+360)%360}),
saturationl:I("hsl",1,J(100)),lightness:I("hsl",2,J(100)),saturationv:I("hsv",1,J(100)),value:I("hsv",2,J(100)),chroma:I("hcg",1,J(100)),gray:I("hcg",2,J(100)),white:I("hwb",1,J(100)),wblack:I("hwb",2,J(100)),cyan:I("cmyk",0,J(100)),magenta:I("cmyk",1,J(100)),yellow:I("cmyk",2,J(100)),black:I("cmyk",3,J(100)),x:I("xyz",0,J(100)),y:I("xyz",1,J(100)),z:I("xyz",2,J(100)),l:I("lab",0,J(100)),a:I("lab",1),b:I("lab",2),keyword:function(d){return arguments.length?new N(d):Tb[this.model].keyword(this.color)},
hex:function(d){return arguments.length?new N(d):Xc.to.hex(this.rgb().round().color)},rgbNumber:function(){var d=this.rgb().color;return(d[0]&255)<<16|(d[1]&255)<<8|d[2]&255},luminosity:function(){for(var d=this.rgb().color,y=[],H=0;H<d.length;H++){var M=d[H]/255;y[H]=.03928>=M?M/12.92:Math.pow((M+.055)/1.055,2.4)}return.2126*y[0]+.7152*y[1]+.0722*y[2]},contrast:function(d){var y=this.luminosity();d=d.luminosity();return y>d?(y+.05)/(d+.05):(d+.05)/(y+.05)},level:function(d){d=this.contrast(d);return 7.1<=
d?"AAA":4.5<=d?"AA":""},isDark:function(){var d=this.rgb().color;return 128>(299*d[0]+587*d[1]+114*d[2])/1E3},isLight:function(){return!this.isDark()},negate:function(){for(var d=this.rgb(),y=0;3>y;y++)d.color[y]=255-d.color[y];return d},lighten:function(d){var y=this.hsl();y.color[2]+=y.color[2]*d;return y},darken:function(d){var y=this.hsl();y.color[2]-=y.color[2]*d;return y},saturate:function(d){var y=this.hsl();y.color[1]+=y.color[1]*d;return y},desaturate:function(d){var y=this.hsl();y.color[1]-=
y.color[1]*d;return y},whiten:function(d){var y=this.hwb();y.color[1]+=y.color[1]*d;return y},blacken:function(d){var y=this.hwb();y.color[2]+=y.color[2]*d;return y},grayscale:function(){var d=this.rgb().color;d=.3*d[0]+.59*d[1]+.11*d[2];return N.rgb(d,d,d)},fade:function(d){return this.alpha(this.valpha-this.valpha*d)},opaquer:function(d){return this.alpha(this.valpha+this.valpha*d)},rotate:function(d){var y=this.hsl(),H=y.color[0];H=(H+d)%360;y.color[0]=0>H?360+H:H;return y},mix:function(d,y){if(!d||
!d.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof d);d=d.rgb();var H=this.rgb();y=void 0===y?.5:y;var M=2*y-1,S=d.alpha()-H.alpha();M=((-1===M*S?M:(M+S)/(1+M*S))+1)/2;S=1-M;return N.rgb(M*d.red()+S*H.red(),M*d.green()+S*H.green(),M*d.blue()+S*H.blue(),d.alpha()*y+H.alpha()*(1-y))}};Object.keys(Tb).forEach(function(d){if(-1===xe.indexOf(d)){var y=Tb[d].channels;N.prototype[d]=function(){if(this.model===d)return new N(this);if(arguments.length)return new N(arguments,
d);var H="number"===typeof arguments[y]?y:this.valpha;var M=Tb[this.model][d].raw(this.color);M=Array.isArray(M)?M:[M];return new N(M.concat(H),d)};N[d]=function(H){"number"===typeof H&&(H=L(Sd.call(arguments),y));return new N(H,d)}}});const Mc=N("#007AC2"),mf={r:255,g:255,b:255},Zb={h:360,s:100,v:100},nf={s:{slider:{height:10,width:156},colorField:{height:80,width:156},thumb:{radius:8}},m:{slider:{height:14,width:272},colorField:{height:150,width:272},thumb:{radius:10}},l:{slider:{height:16,width:420},
colorField:{height:200,width:420},thumb:{radius:12}}};var of="object"==typeof global&&global&&global.Object===Object&&global,gh="object"==typeof self&&self&&self.Object===Object&&self,Zc=of||gh||Function("return this")(),Nc=Zc.Symbol,pf=Object.prototype,Mf=pf.hasOwnProperty,Nf=pf.toString,Yc=Nc?Nc.toStringTag:void 0,Of=Object.prototype.toString,ye=Nc?Nc.toStringTag:void 0,Vf=Array.isArray,qf=Nc?Nc.prototype:void 0;qf?qf.toString:void 0;var Pf=/\s/,Qf=/^\s+/,ze=0/0,Uf=/^[-+]0x[0-9a-f]+$/i,Rf=/^0b[01]+$/i,
Sf=/^0o[0-7]+$/i,Tf=parseInt,Zf=/^(?:0|[1-9]\d*)$/,$f=Object.prototype,rf=Object.prototype,hh=rf.hasOwnProperty,ih=rf.propertyIsEnumerable,Wf=oa(function(){return arguments}())?oa:function(d){return W(d)&&hh.call(d,"callee")&&!ih.call(d,"callee")},sf="object"==typeof a&&a&&!a.nodeType&&a,tf=sf&&"object"==typeof module&&module&&!module.nodeType&&module,uf=tf&&tf.exports===sf?Zc.Buffer:void 0,Xf=(uf?uf.isBuffer:void 0)||xa,wb={};wb["[object Float32Array]"]=wb["[object Float64Array]"]=wb["[object Int8Array]"]=
wb["[object Int16Array]"]=wb["[object Int32Array]"]=wb["[object Uint8Array]"]=wb["[object Uint8ClampedArray]"]=wb["[object Uint16Array]"]=wb["[object Uint32Array]"]=!0;wb["[object Arguments]"]=wb["[object Array]"]=wb["[object ArrayBuffer]"]=wb["[object Boolean]"]=wb["[object DataView]"]=wb["[object Date]"]=wb["[object Error]"]=wb["[object Function]"]=wb["[object Map]"]=wb["[object Number]"]=wb["[object Object]"]=wb["[object RegExp]"]=wb["[object Set]"]=wb["[object String]"]=wb["[object WeakMap]"]=
!1;var vf="object"==typeof a&&a&&!a.nodeType&&a,ld=vf&&"object"==typeof module&&module&&!module.nodeType&&module,ke=ld&&ld.exports===vf&&of.process,wf=function(){try{var d=ld&&ld.require&&ld.require("util").types;return d?d:ke&&ke.binding&&ke.binding("util")}catch(y){}}(),xf=wf&&wf.isTypedArray,Yf=xf?fa(xf):Ea,ag=Object.prototype.hasOwnProperty,dg=function(d){return function(y,H,M){var S=-1,O=Object(y);M=M(y);for(var R=M.length;R--;){var Y=M[d?R:++S];if(!1===H(O[Y],Y,O))break}return y}}(),cg=Math.max,
bg=Math.min;const le=C(Mc.hex()),jh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteColorPickerChange=nb(this,"calciteColorPickerChange",7);this.allowEmpty=!1;this.appearance="default";this.color=Mc;this.format="auto";this.hideSaved=this.hideChannels=this.hideHex=!1;this.intlB="B";this.intlBlue="Blue";this.intlDeleteColor="Delete color";this.intlG="G";this.intlGreen="Green";this.intlH="H";this.intlHsv="HSV";this.intlHex="Hex";this.intlHue="Hue";this.intlNoColor=
"No color";this.intlR="R";this.intlRed="Red";this.intlRgb="RGB";this.intlS="S";this.intlSaturation="Saturation";this.intlSaveColor="Save color";this.intlSaved="Saved";this.intlV="V";this.intlValue="Value";this.scale="m";this.value=le;this.colorUpdateLocked=!1;this.hueThumbState="idle";this.mode=yc.HEX;this.shiftKeyChannelAdjustment=0;this.sliderThumbState="idle";this.colorFieldAndSliderInteractive=!1;this.channelMode="rgb";this.channels=this.toChannels(Mc);this.dimensions=nf.m;this.savedColors=[];
this.handleTabActivate=d=>{this.channelMode=d.currentTarget.getAttribute("data-color-mode");this.updateChannelsFromColor(this.color)};this.handleColorFieldScopeKeyDown=d=>{const y=b(d.key),H={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}};Object.keys(H).includes(y)&&(d.preventDefault(),this.scopeOrientation="ArrowDown"===y||"ArrowUp"===y?"vertical":"horizontal",this.captureColorFieldColor(this.colorFieldScopeLeft+H[y].x||0,this.colorFieldScopeTop+H[y].y||0,!1))};
this.handleHueScopeKeyDown=d=>{var y=d.shiftKey?10:1;const H=b(d.key),M={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1};if(Object.keys(M).includes(H)){d.preventDefault();d=M[H]*y;var S=(y=null===(S=this.baseColorFieldColor)||void 0===S?void 0:S.hue())?this.baseColorFieldColor.hue(y+d):N({h:0,s:0,v:100});this.internalColorSet(S,!1)}};this.handleHexInputChange=d=>{d.stopPropagation();const {allowEmpty:y,color:H}=this;d=d.target.value;if(y&&!d)this.internalColorSet(null);else{var M=H&&C(H.hex());
d!==M&&this.internalColorSet(N(d))}};this.handleSavedColorSelect=d=>{this.internalColorSet(N(d.currentTarget.color))};this.handleChannelInput=d=>{const y=d.currentTarget;d=d.detail.nativeEvent.target;var H=Number(y.getAttribute("data-channel-index"));H="rgb"===this.channelMode?mf[Object.keys(mf)[H]]:Zb[Object.keys(Zb)[H]];H=this.allowEmpty&&!y.value?"":Math.max(0,Math.min(Number(y.value)+this.shiftKeyChannelAdjustment,H)).toString();y.value=H;d.value=H};this.handleChannelChange=d=>{d=d.currentTarget;
const y=Number(d.getAttribute("data-channel-index")),H=[...this.channels];this.allowEmpty&&!d.value?(this.channels=[null,null,null],this.internalColorSet(null)):(H[y]=Number(d.value),this.updateColorFromChannels(H))};this.handleSavedColorKeyDown=d=>{if(" "===d.key||"Enter"===d.key)d.preventDefault(),d.stopPropagation(),this.handleSavedColorSelect(d)};this.handleColorFieldAndSliderMouseLeave=()=>{this.colorFieldAndSliderInteractive=!1;"drag"!==this.sliderThumbState&&"drag"!==this.hueThumbState&&(this.sliderThumbState=
this.hueThumbState="idle",this.drawColorFieldAndSlider())};this.handleColorFieldAndSliderMouseDown=d=>{const {offsetX:y,offsetY:H}=d;this.activeThumbX=y;this.activeThumbY=H;this.globalThumbX=y;this.globalThumbY=H;const M=this.getCanvasRegion(H);"color-field"===M?(this.hueThumbState="drag",this.captureColorFieldColor(y,H)):"slider"===M&&(this.sliderThumbState="drag",this.captureHueSliderColor(y));d.preventDefault();document.addEventListener("mousemove",this.globalMouseMoveHandler);document.addEventListener("mouseup",
this.globalMouseUpHandler,{once:!0})};this.globalMouseUpHandler=()=>{this.sliderThumbState=this.hueThumbState="idle";this.drawColorFieldAndSlider()};this.globalMouseMoveHandler=d=>{const {el:y,dimensions:H}=this,M="drag"===this.sliderThumbState,S="drag"===this.hueThumbState;y.isConnected&&(M||S)&&(this.globalThumbX+=d.movementX,this.globalThumbY+=d.movementY,this.activeThumbX=Math.max(0,Math.min(this.globalThumbX,H.colorField.width)),this.activeThumbY=Math.max(0,Math.min(this.globalThumbY,H.colorField.height+
H.slider.height)),d=S?"color-field":M?"slider":this.getCanvasRegion(this.activeThumbY),"color-field"===d?this.captureColorFieldColor(this.activeThumbX,this.activeThumbY,!1):"slider"===d&&this.captureHueSliderColor(this.activeThumbX))};this.handleColorFieldAndSliderMouseEnterOrMove=({offsetX:d,offsetY:y})=>{const {dimensions:{colorField:H,slider:M,thumb:S}}=this;this.colorFieldAndSliderInteractive=y<=H.height+M.height;var O=this.getCanvasRegion(y);if("color-field"===O){O=this.hueThumbState;var R=this.baseColorFieldColor.hsv(),
Y=Math.round(R.saturationv()/(Zb.s/H.width));R=Math.round(H.height-R.value()/(Zb.v/H.height));d=this.containsPoint(d,y,Y,R,S.radius);y=!1;"idle"===O&&d?(this.hueThumbState="hover",y=!0):"hover"!==O||d||(this.hueThumbState="idle",y=!0);"drag"!==this.hueThumbState&&y&&this.drawColorFieldAndSlider()}else"slider"===O&&(Y=this.baseColorFieldColor.hsv().saturationv(100).value(100),O=this.sliderThumbState,Y=Math.round(Y.hue()/(360/M.width)),R=Math.round((M.height+this.getSliderCapSpacing())/2)+H.height,
d=this.containsPoint(d,y,Y,R,S.radius),y=!1,"idle"===O&&d?(this.sliderThumbState="hover",y=!0):"hover"!==O||d||(this.sliderThumbState="idle",y=!0),"drag"!==this.sliderThumbState&&y&&this.drawColorFieldAndSlider())};this.storeHexInputRef=d=>{this.hexInputNode=d};this.renderChannelsTabTitle=d=>{const {channelMode:y,intlRgb:H,intlHsv:M}=this;return ma("calcite-tab-title",{active:d===y,class:"color-mode","data-color-mode":d,key:d,onCalciteTabsActivate:this.handleTabActivate},"rgb"===d?H:M)};this.renderChannelsTab=
d=>{const {channelMode:y,channels:H,intlB:M,intlBlue:S,intlG:O,intlGreen:R,intlH:Y,intlHue:ca,intlR:pa,intlRed:wa,intlS:za,intlSaturation:Fa,intlV:Ja,intlValue:Qa}=this,Wa="rgb"===d,gb=Wa?[pa,O,M]:[Y,za,Ja],fb=Wa?[wa,R,S]:[ca,Fa,Qa];return ma("calcite-tab",{active:d===y,class:"control",key:d},ma("div",{class:"channels"},H.map((Oa,hb)=>this.renderChannel(Oa,hb,gb[hb],fb[hb]))))};this.renderChannel=(d,y,H,M)=>ma("calcite-input",{"aria-label":M,class:"channel","data-channel-index":y,numberButtonType:"none",
onCalciteInputChange:this.handleChannelChange,onCalciteInputInput:this.handleChannelInput,prefixText:H,scale:"s",type:"number",value:null===d||void 0===d?void 0:d.toString()});this.deleteColor=()=>{const d=this.color.hex();if(-1<this.savedColors.indexOf(d)){var y=this.savedColors.filter(M=>M!==d);this.savedColors=y;var H=`${"calcite-color-"}${this.storageId}`;this.storageId&&localStorage.setItem(H,JSON.stringify(y))}};this.saveColor=()=>{var d=this.color.hex();if(!(-1<this.savedColors.indexOf(d))){this.savedColors=
d=[...this.savedColors,d];var y=`${"calcite-color-"}${this.storageId}`;this.storageId&&localStorage.setItem(y,JSON.stringify(d))}};this.drawColorFieldAndSlider=la(()=>{this.fieldAndSliderRenderingContext&&(this.drawColorField(),this.drawHueSlider())},16);this.captureColorFieldColor=(d,y,H=!0)=>{const {dimensions:{colorField:{height:M,width:S}}}=this;d=Math.round(Zb.s/S*d);y=Math.round(Zb.v/M*(M-y));this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(d).value(y),H)};this.initColorFieldAndSlider=
d=>{this.fieldAndSliderRenderingContext=d.getContext("2d");this.setCanvasContextSize(d,{width:this.dimensions.colorField.width,height:this.dimensions.colorField.height+this.dimensions.slider.height+2*this.getSliderCapSpacing()});this.drawColorFieldAndSlider()}}handleColorChange(d,y){this.drawColorFieldAndSlider();this.updateChannelsFromColor(d);this.previousColor=y;this.colorUpdateLocked||(this.value=this.toValue(d))}handleFormatChange(d){this.mode="auto"===d?this.mode:d;this.value=this.toValue(this.color)}handleScaleChange(d=
"m"){this.updateDimensions(d)}handleValueChange(d,y){const {allowEmpty:H,format:M}=this;let S=!1;if(!H||d){const O=A(d);if(!O||"auto"!==M&&O!==M){console.warn(`ignoring invalid color value: ${d}`);this.value=y;return}S=this.mode!==O;this.mode=O}if(this.colorUpdateLocked)this.calciteColorPickerChange.emit();else if(d=H&&!d?null:N(d),y=!r(d,this.color),S||y)this.color=d,this.calciteColorPickerChange.emit()}get baseColorFieldColor(){return this.color||this.previousColor||Mc}handleChannelKeyUpOrDown(d){this.shiftKeyChannelAdjustment=
0;const y=b(d.key);if(("ArrowUp"===y||"ArrowDown"===y)&&d.composedPath().some(M=>{var S;return null===(S=M.classList)||void 0===S?void 0:S.contains("channel")})){var {shiftKey:H}=d;d.preventDefault();this.color?this.shiftKeyChannelAdjustment="ArrowUp"===y&&H?9:"ArrowDown"===y&&H?-9:0:(this.internalColorSet(this.previousColor),d.stopPropagation())}}async setFocus(){u(this.hexInputNode)}componentWillLoad(){const d=`${"calcite-color-"}${this.storageId}`;this.storageId&&localStorage.getItem(d)&&(this.savedColors=
JSON.parse(localStorage.getItem(d)))}connectedCallback(){const {color:d,format:y,value:H}=this,M="auto"!==y?this.toValue(d,y):le;this.handleValueChange("auto"!==y&&H===le?M:H,M);this.updateDimensions(this.scale)}disconnectedCallback(){document.removeEventListener("mousemove",this.globalMouseMoveHandler);document.removeEventListener("mouseup",this.globalMouseUpHandler)}render(){const {allowEmpty:d,color:y,intlDeleteColor:H,el:M,hideHex:S,hideChannels:O,hideSaved:R,intlHex:Y,intlSaved:ca,intlSaveColor:pa,
savedColors:wa,scale:za}=this,Fa=y?y.hex():null,Ja="s"!==za?"m":za,{colorFieldAndSliderInteractive:Qa,colorFieldScopeTop:Wa,colorFieldScopeLeft:gb,hueScopeLeft:fb,hueScopeTop:Oa,scopeOrientation:hb,dimensions:{colorField:{height:db,width:Eb},slider:{height:Pb}}}=this,Kb=Oa||Pb/2+db,Fb=fb||Eb*Mc.hue()/Zb.h,Qb=k(M),lc=null===y,Oc="vertical"===hb;return ma("div",{class:"container"},ma("div",{class:"color-field-and-slider-wrap"},ma("canvas",{class:{["color-field-and-slider"]:!0,["color-field-and-slider--interactive"]:Qa},
onMouseDown:this.handleColorFieldAndSliderMouseDown,onMouseEnter:this.handleColorFieldAndSliderMouseEnterOrMove,onMouseLeave:this.handleColorFieldAndSliderMouseLeave,onMouseMove:this.handleColorFieldAndSliderMouseEnterOrMove,ref:this.initColorFieldAndSlider}),ma("div",{"aria-label":Oc?this.intlValue:this.intlSaturation,"aria-valuemax":Oc?Zb.v:Zb.s,"aria-valuemin":"0","aria-valuenow":(Oc?null===y||void 0===y?void 0:y.saturationv():null===y||void 0===y?void 0:y.value())||"0",class:"scope",onKeyDown:this.handleColorFieldScopeKeyDown,
role:"slider",style:{top:`${Wa||0}px`,left:`${gb||0}px`},tabindex:"0"}),ma("div",{"aria-label":this.intlHue,"aria-valuemax":Zb.h,"aria-valuemin":"0","aria-valuenow":(null===y||void 0===y?void 0:y.round().hue())||Mc.round().hue(),class:"scope",onKeyDown:this.handleHueScopeKeyDown,role:"slider",style:{top:`${Kb}px`,left:`${Fb}px`},tabindex:"0"})),S&&O?null:ma("div",{class:{["control-section"]:!0,["section"]:!0}},S?null:ma("div",{class:"color-hex-options"},ma("span",{class:{["header"]:!0,["header--hex"]:!0,
["header--underlined"]:!0}},Y),ma("calcite-color-picker-hex-input",{allowEmpty:d,class:"control",dir:Qb,onCalciteColorPickerHexInputChange:this.handleHexInputChange,ref:this.storeHexInputRef,scale:Ja,value:Fa})),O?null:ma("calcite-tabs",{class:{["color-mode-container"]:!0,["section--split"]:!0},dir:Qb},ma("calcite-tab-nav",{slot:"tab-nav"},this.renderChannelsTabTitle("rgb"),this.renderChannelsTabTitle("hsv")),this.renderChannelsTab("rgb"),this.renderChannelsTab("hsv"))),R?null:ma("div",{class:{["saved-colors-section"]:!0,
["section"]:!0}},ma("div",{class:"header"},ma("label",null,ca),ma("div",{class:"saved-colors-buttons"},ma("calcite-button",{appearance:"transparent","aria-label":H,class:"delete-color",color:"neutral",disabled:lc,iconStart:"minus",onClick:this.deleteColor,scale:za}),ma("calcite-button",{appearance:"transparent","aria-label":pa,class:"save-color",color:"neutral",disabled:lc,iconStart:"plus",onClick:this.saveColor,scale:za}))),0<wa.length?ma("div",{class:"saved-colors"},[...wa.map(md=>ma("calcite-color-picker-swatch",
{active:Fa===md,class:"saved-color",color:md,key:md,onClick:this.handleSavedColorSelect,onKeyDown:this.handleSavedColorKeyDown,scale:za,tabIndex:0}))]):null))}captureHueSliderColor(d){const {dimensions:{slider:{width:y}}}=this;this.internalColorSet(this.baseColorFieldColor.hue(360/y*d),!1)}getCanvasRegion(d){const {dimensions:{colorField:{height:y},slider:{height:H}}}=this;return d<=y?"color-field":d<=y+H?"slider":"none"}internalColorSet(d,y=!0){y&&r(d,this.color)||(this.colorUpdateLocked=!0,this.color=
d,this.value=this.toValue(d),this.colorUpdateLocked=!1)}toValue(d,y=this.mode){if(!d)return null;if(y.includes("hex"))return C(d.round().hex());if(y.includes("-css"))return d[y.replace("-css","").replace("a","")]().round().string();d=d[y]().round().object();y.endsWith("a")&&(d.a=d.alpha,delete d.alpha);return d}getSliderCapSpacing(){const {dimensions:{slider:{height:d},thumb:{radius:y}}}=this;return 2*y-d}updateDimensions(d="m"){this.dimensions=nf[d]}drawColorField(){const d=this.fieldAndSliderRenderingContext,
{dimensions:{colorField:{height:y,width:H}}}=this;d.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).string();d.fillRect(0,0,H,y);var M=d.createLinearGradient(0,0,H,0);M.addColorStop(0,"rgba(255,255,255,1)");M.addColorStop(1,"rgba(255,255,255,0)");d.fillStyle=M;d.fillRect(0,0,H,y);M=d.createLinearGradient(0,0,0,y);M.addColorStop(0,"rgba(0,0,0,0)");M.addColorStop(1,"rgba(0,0,0,1)");d.fillStyle=M;d.fillRect(0,0,H,y);this.drawActiveColorFieldColor()}setCanvasContextSize(d,{height:y,
width:H}){const M=window.devicePixelRatio||1;d.width=H*M;d.height=y*M;d.style.height=`${y}px`;d.style.width=`${H}px`;d.getContext("2d").scale(M,M)}containsPoint(d,y,H,M,S){return Math.pow(d-H,2)+Math.pow(y-M,2)<=Math.pow(S,2)}drawActiveColorFieldColor(){var {color:d}=this;if(d){d=d.hsv();var {dimensions:{colorField:{height:y,width:H},thumb:{radius:M}}}=this,S=d.saturationv()/(Zb.s/H),O=y-d.value()/(Zb.v/y);requestAnimationFrame(()=>{this.colorFieldScopeLeft=S;this.colorFieldScopeTop=O});this.drawThumb(this.fieldAndSliderRenderingContext,
M,S,O,d,this.hueThumbState)}}drawThumb(d,y,H,M,S,O){const R=2*Math.PI;d.beginPath();d.arc(H,M,y,0,R);d.shadowBlur="hover"===O?32:16;d.shadowColor=`rgba(0, 0, 0, ${"drag"===O?.32:.16})`;d.fillStyle="#fff";d.fill();d.beginPath();d.arc(H,M,y-3,0,R);d.shadowBlur=0;d.shadowColor="transparent";d.fillStyle=S.rgb().string();d.fill()}drawActiveHueSliderColor(){var {color:d}=this;if(d){d=d.hsv().saturationv(100).value(100);var {dimensions:{colorField:{height:y},slider:{height:H,width:M},thumb:{radius:S}}}=
this,O=d.hue()/(360/M),R=H/2+y;requestAnimationFrame(()=>{this.hueScopeLeft=O;this.hueScopeTop=R});this.drawThumb(this.fieldAndSliderRenderingContext,S,O,R,d,this.sliderThumbState)}}drawHueSlider(){const d=this.fieldAndSliderRenderingContext,{dimensions:{colorField:{height:y},slider:{height:H,width:M}}}=this,S=d.createLinearGradient(0,0,M,0),O="red yellow lime cyan blue magenta red".split(" "),R=1/(O.length-1);let Y=0;O.forEach(ca=>{S.addColorStop(Y,N(ca).string());Y+=R});d.fillStyle=S;d.clearRect(0,
y,M,H+2*this.getSliderCapSpacing());d.fillRect(0,y,M,H);this.drawActiveHueSliderColor()}updateColorFromChannels(d){this.internalColorSet(N(d,this.channelMode))}updateChannelsFromColor(d){this.channels=d?this.toChannels(d):[null,null,null]}toChannels(d){const {channelMode:y}=this;return d[y]().array().map(H=>Math.floor(H))}get el(){return this}static get watchers(){return{color:["handleColorChange"],format:["handleFormatChange"],scale:["handleScaleChange"],value:["handleValueChange"]}}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale\x3ds]) .container{width:156px}:host([scale\x3ds]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(20px, 1fr))}:host([scale\x3ds]) .channels{-ms-flex-direction:column;flex-direction:column}:host([scale\x3ds]) .channel{width:100%;margin-bottom:4px}:host([scale\x3ds]) .channel:last-child{margin-bottom:0}:host([scale\x3dm]) .container{width:272px}:host([scale\x3dl][dir\x3drtl]) .control-section\x3e:nth-child(2){margin-left:0;margin-right:12px}:host([scale\x3dl]) .container{width:420px}:host([scale\x3dl]) .color-field-and-slider{margin-bottom:-20px}:host([scale\x3dl]) .section{padding:0 16px 16px}:host([scale\x3dl]) .section:first-of-type{padding-top:16px}:host([scale\x3dl]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(28px, 1fr));grid-gap:12px;padding-top:16px}:host([scale\x3dl]) .control-section{-ms-flex-wrap:nowrap;flex-wrap:nowrap}:host([scale\x3dl]) .control-section\x3e:nth-child(2){margin-left:12px}:host([scale\x3dl]) .color-hex-options{-ms-flex-negative:1;flex-shrink:1}:host([scale\x3dl]) .color-mode-container{-ms-flex-negative:3;flex-shrink:3}:host([appearance\x3dminimal]) .container{border:none}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.color-field-and-slider-wrap{position:relative}.scope{font-size:var(--calcite-font-size--1);padding:0;margin-bottom:0;margin-right:0;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width:0.5rem;height:0.5rem;position:absolute;pointer-events:none;margin-top:-0.25rem;margin-left:-0.25rem;outline-offset:10px}.scope:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px;outline-offset:12px}.color-field-and-slider{margin-bottom:-16px}.color-field-and-slider--interactive{cursor:pointer}.control-section{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.section{padding:0 12px 12px}.section:first-of-type{padding-top:12px}.color-hex-options,.section--split{-ms-flex-positive:1;flex-grow:1}.header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-ui-text-3);font-weight:500;font-size:0.875rem;line-height:1.5}.header.header--underlined{border-bottom:1px solid var(--calcite-ui-border-1)}.header--hex{line-height:1.5;font-size:0.875rem;line-height:1.5;padding:12px 0 15px}.control{margin-top:8px}.channels{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.channel{width:31%}.saved-colors{padding-top:12px;display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill, minmax(24px, 1fr));grid-gap:8px;width:100%}.saved-colors-buttons{display:-ms-flexbox;display:flex}.saved-color{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{-webkit-transition:outline-color 100ms ease-in-out;transition:outline-color 100ms ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}"}},
yf=N(),kh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteColorPickerHexInputChange=nb(this,"calciteColorPickerHexInputChange",7);this.allowEmpty=!1;this.intlHex="Hex";this.intlNoColor="No color";this.scale="m";this.value=C(yf.hex());this.onCalciteInputBlur=d=>{d=d.currentTarget;const y=d.value,H=`#${y}`;this.allowEmpty&&!y||x(H)&&H&&7===H.length&&we.test(H)||(d.value=this.allowEmpty&&!this.internalColor?"":this.formatForInternalInput(w(this.internalColor.object())))};
this.onInputChange=d=>{d=d.currentTarget.value;let y;if(d){if(!D(`#${d}`))return;y=C(d)}else this.allowEmpty&&(y=null);this.value=y;this.calciteColorPickerHexInputChange.emit()};this.internalColor=yf;this.previousNonNullValue=this.value;this.storeInputRef=d=>{this.inputNode=d}}connectedCallback(){const {allowEmpty:d,value:y}=this;if(y){const H=C(y);x(H)&&(this.internalColor=N(H),this.value=H)}else d&&(this.value=this.internalColor=null)}handleValueChange(d,y){if(d){if(d=C(d),x(d)){({internalColor:y}=
this);y=!y||d!==C(y.hex());this.internalColor=N(d);this.value=this.previousNonNullValue=d;y&&this.calciteColorPickerHexInputChange.emit();return}}else if(this.allowEmpty){this.value=this.internalColor=null;this.calciteColorPickerHexInputChange.emit();return}this.value=y}onInputKeyDown(d){const {altKey:y,ctrlKey:H,metaKey:M,shiftKey:S}=d,{el:O,inputNode:R,internalColor:Y,value:ca}=this;var pa=b(d.key);if("ArrowDown"===pa||"ArrowUp"===pa)this.value=ca?C(this.nudgeRGBChannels(Y,(S?10:1)*("ArrowUp"===
pa?1:-1)).hex()):this.previousNonNullValue,d.preventDefault();else{var wa=y||H||M,za=6<=R.value.length,Fa=O.shadowRoot.activeElement;Fa=Fa.selectionStart!=Fa.selectionEnd;var Ja=1===pa.length;pa=bh.test(pa);!Ja||wa||pa&&(Fa||!za)||d.preventDefault()}}render(){const {el:d,intlHex:y,value:H}=this,M=this.formatForInternalInput(H),S=k(d);return ma("div",{class:"container"},ma("calcite-input",{"aria-label":y,class:"input",dir:S,onCalciteInputBlur:this.onCalciteInputBlur,onChange:this.onInputChange,prefixText:"#",
ref:this.storeInputRef,scale:"s",value:M}),M?ma("calcite-color-picker-swatch",{active:!0,class:"preview",color:`#${M}`,scale:"s"}):null)}async setFocus(){u(this.inputNode)}formatForInternalInput(d){return d?d.replace("#",""):""}nudgeRGBChannels(d,y){return N.rgb(d.array().map(H=>H+y))}get el(){return this}static get watchers(){return{value:["handleValueChange"]}}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}.container{width:100%;display:inline-grid;-ms-flex-align:center;align-items:center;grid-template-columns:1fr auto}.preview{grid-column:2/3;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:none;margin-top:0;margin-bottom:0;margin-left:0.25rem;margin-right:0.25rem;z-index:1}.preview,.input{grid-row:1}.input{grid-column:1/3;text-transform:uppercase;width:100%}"}},
lh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.active=!1;this.scale="m"}handleColorChange(d){this.internalColor=N(d)}componentWillLoad(){this.handleColorChange(this.color)}render(){const {active:d,el:y,internalColor:H}=this,M=d?"100%":"0",S=H.hex(),O="light"===(t(".calcite-theme-dark",y)?"dark":"light")?"rgba(0, 0, 0, 0.15)":"rgba(255, 255, 255, 0.15)";return ma("svg",{class:"swatch",xmlns:"http://www.w3.org/2000/svg"},ma("title",null,S),ma("rect",{fill:S,height:"100%",
id:"swatch",rx:M,stroke:O,"stroke-width":"2",style:{"clip-path":`inset(0 round ${M})`},width:"100%"}))}get el(){return this}static get watchers(){return{color:["handleColorChange"]}}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex;position:relative}:host([scale\x3ds]){height:1.25rem;width:1.25rem}:host([scale\x3dm]){height:1.5rem;width:1.5rem}:host([scale\x3dl]){height:2rem;width:2rem}.swatch{overflow:visible;height:inherit;width:inherit}.swatch rect{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.no-color-icon{height:100%;width:100%;top:0;right:0;bottom:0;left:0;position:absolute}"}};
var $c=["top","bottom","right","left"],Be=$c.reduce(function(d,y){return d.concat([y+"-start",y+"-end"])},[]),Ae=[].concat($c,["auto"]).reduce(function(d,y){return d.concat([y,y+"-start",y+"-end"])},[]),hg="beforeRead read afterRead beforeMain main afterMain beforeWrite write afterWrite".split(" "),ac=Math.max,oc=Math.min,td=Math.round,eg={top:"auto",right:"auto",bottom:"auto",left:"auto"},Ld={passive:!0},fg={left:"right",right:"left",bottom:"top",top:"bottom"},gg={start:"end",end:"start"},zf={placement:"bottom",
modifiers:[],strategy:"absolute"},ig=function(d){void 0===d&&(d={});var y=d.defaultModifiers,H=void 0===y?[]:y;d=d.defaultOptions;var M=void 0===d?zf:d;return function(S,O,R){function Y(){pa.orderedModifiers.forEach(function(Ja){var Qa=Ja.name,Wa=Ja.options;Wa=void 0===Wa?{}:Wa;Ja=Ja.effect;"function"===typeof Ja&&(Qa=Ja({state:pa,name:Qa,instance:Fa,options:Wa}),wa.push(Qa||function(){}))})}function ca(){wa.forEach(function(Ja){return Ja()});wa=[]}void 0===R&&(R=M);var pa={placement:"bottom",orderedModifiers:[],
options:Object.assign({},zf,M),modifiersData:{},elements:{reference:S,popper:O},attributes:{},styles:{}},wa=[],za=!1,Fa={state:pa,setOptions:function(Ja){ca();pa.options=Object.assign({},M,pa.options,Ja);pa.scrollParents={reference:aa(S)?$a(S):S.contextElement?$a(S.contextElement):[],popper:$a(O)};Ja=Ga(bb([].concat(H,pa.options.modifiers)));pa.orderedModifiers=Ja.filter(function(Qa){return Qa.enabled});Y();return Fa.update()},forceUpdate:function(){if(!za){var Ja=pa.elements,Qa=Ja.reference;Ja=Ja.popper;
if(xb(Qa,Ja))for(pa.rects={reference:ka(Qa,Za(Ja),"fixed"===pa.options.strategy),popper:ba(Ja)},pa.reset=!1,pa.placement=pa.options.placement,pa.orderedModifiers.forEach(function(fb){return pa.modifiersData[fb.name]=Object.assign({},fb.data)}),Qa=0;Qa<pa.orderedModifiers.length;Qa++)if(!0===pa.reset)pa.reset=!1,Qa=-1;else{var Wa=pa.orderedModifiers[Qa];Ja=Wa.fn;var gb=Wa.options;gb=void 0===gb?{}:gb;Wa=Wa.name;"function"===typeof Ja&&(pa=Ja({state:pa,options:gb,name:Wa,instance:Fa})||pa)}}},update:Ta(function(){return new Promise(function(Ja){Fa.forceUpdate();
Ja(pa)})}),destroy:function(){ca();za=!0}};if(!xb(S,O))return Fa;Fa.setOptions(R).then(function(Ja){if(!za&&R.onFirstUpdate)R.onFirstUpdate(Ja)});return Fa}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(d){var y=d.state,H=d.instance;d=d.options;var M=d.scroll,S=void 0===M?!0:M;d=d.resize;var O=void 0===d?!0:d,R=Ba(y.elements.popper),Y=[].concat(y.scrollParents.reference,y.scrollParents.popper);S&&Y.forEach(function(ca){ca.addEventListener("scroll",
H.update,Ld)});O&&R.addEventListener("resize",H.update,Ld);return function(){S&&Y.forEach(function(ca){ca.removeEventListener("scroll",H.update,Ld)});O&&R.removeEventListener("resize",H.update,Ld)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(d){var y=d.state;y.modifiersData[d.name]=Jb({reference:y.rects.reference,element:y.rects.popper,strategy:"absolute",placement:y.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(d){var y=d.state,H=d.options;
d=H.gpuAcceleration;d=void 0===d?!0:d;var M=H.adaptive;M=void 0===M?!0:M;H=H.roundOffsets;H=void 0===H?!0:H;d={placement:ta(y.placement),popper:y.elements.popper,popperRect:y.rects.popper,gpuAcceleration:d};null!=y.modifiersData.popperOffsets&&(y.styles.popper=Object.assign({},y.styles.popper,ya(Object.assign({},d,{offsets:y.modifiersData.popperOffsets,position:y.options.strategy,adaptive:M,roundOffsets:H}))));null!=y.modifiersData.arrow&&(y.styles.arrow=Object.assign({},y.styles.arrow,ya(Object.assign({},
d,{offsets:y.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:H}))));y.attributes.popper=Object.assign({},y.attributes.popper,{"data-popper-placement":y.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(d){var y=d.state;Object.keys(y.elements).forEach(function(H){var M=y.styles[H]||{},S=y.attributes[H]||{},O=y.elements[H];ja(O)&&va(O)&&(Object.assign(O.style,M),Object.keys(S).forEach(function(R){var Y=S[R];!1===Y?O.removeAttribute(R):O.setAttribute(R,!0===
Y?"":Y)}))})},effect:function(d){var y=d.state,H={popper:{position:y.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(y.elements.popper.style,H.popper);y.styles=H;y.elements.arrow&&Object.assign(y.elements.arrow.style,H.arrow);return function(){Object.keys(y.elements).forEach(function(M){var S=y.elements[M],O=y.attributes[M]||{};M=Object.keys(y.styles.hasOwnProperty(M)?y.styles[M]:H[M]).reduce(function(R,Y){R[Y]="";return R},{});ja(S)&&va(S)&&(Object.assign(S.style,
M),Object.keys(O).forEach(function(R){S.removeAttribute(R)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(d){var y=d.state,H=d.name;d=d.options.offset;var M=void 0===d?[0,0]:d;d=Ae.reduce(function(R,Y){var ca=y.rects;var pa=ta(Y);var wa=0<=["left","top"].indexOf(pa)?-1:1,za="function"===typeof M?M(Object.assign({},ca,{placement:Y})):M;ca=za[0];za=za[1];ca=ca||0;za=(za||0)*wa;pa=0<=["left","right"].indexOf(pa)?{x:za,y:ca}:{x:ca,y:za};
R[Y]=pa;return R},{});var S=d[y.placement],O=S.x;S=S.y;null!=y.modifiersData.popperOffsets&&(y.modifiersData.popperOffsets.x+=O,y.modifiersData.popperOffsets.y+=S);y.modifiersData[H]=d}},{name:"flip",enabled:!0,phase:"main",fn:function(d){var y=d.state,H=d.options;d=d.name;if(!y.modifiersData[d]._skip){var M=H.mainAxis;M=void 0===M?!0:M;var S=H.altAxis;S=void 0===S?!0:S;var O=H.fallbackPlacements,R=H.padding,Y=H.boundary,ca=H.rootBoundary,pa=H.altBoundary,wa=H.flipVariations,za=void 0===wa?!0:wa,
Fa=H.allowedAutoPlacements;H=y.options.placement;wa=ta(H);O=O||(wa!==H&&za?pb(H):[Ca(H)]);var Ja=[H].concat(O).reduce(function(Kb,Fb){return Kb.concat("auto"===ta(Fb)?Sb(y,{placement:Fb,boundary:Y,rootBoundary:ca,padding:R,flipVariations:za,allowedAutoPlacements:Fa}):Fb)},[]);H=y.rects.reference;O=y.rects.popper;var Qa=new Map;wa=!0;for(var Wa=Ja[0],gb=0;gb<Ja.length;gb++){var fb=Ja[gb],Oa=ta(fb),hb="start"===fb.split("-")[1],db=0<=["top","bottom"].indexOf(Oa),Eb=db?"width":"height",Pb=Ab(y,{placement:fb,
boundary:Y,rootBoundary:ca,altBoundary:pa,padding:R});hb=db?hb?"right":"left":hb?"bottom":"top";H[Eb]>O[Eb]&&(hb=Ca(hb));Eb=Ca(hb);db=[];M&&db.push(0>=Pb[Oa]);S&&db.push(0>=Pb[hb],0>=Pb[Eb]);if(db.every(function(Kb){return Kb})){Wa=fb;wa=!1;break}Qa.set(fb,db)}if(wa)for(M=function(Kb){var Fb=Ja.find(function(Qb){if(Qb=Qa.get(Qb))return Qb.slice(0,Kb).every(function(lc){return lc})});if(Fb)return Wa=Fb,"break"},S=za?3:1;0<S&&"break"!==M(S);S--);y.placement!==Wa&&(y.modifiersData[d]._skip=!0,y.placement=
Wa,y.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(d){var y=d.state,H=d.options;d=d.name;var M=H.mainAxis,S=void 0===M?!0:M;M=H.altAxis;var O=void 0===M?!1:M;M=H.tether;M=void 0===M?!0:M;var R=H.tetherOffset,Y=void 0===R?0:R,ca=Ab(y,{boundary:H.boundary,rootBoundary:H.rootBoundary,padding:H.padding,altBoundary:H.altBoundary});H=ta(y.placement);var pa=y.placement.split("-")[1],wa=!pa,za=jb(H);H="x"===za?"y":"x";R=y.modifiersData.popperOffsets;
var Fa=y.rects.reference,Ja=y.rects.popper,Qa="function"===typeof Y?Y(Object.assign({},y.rects,{placement:y.placement})):Y;Y={x:0,y:0};if(R){if(S||O){var Wa="y"===za?"top":"left",gb="y"===za?"bottom":"right",fb="y"===za?"height":"width",Oa=R[za],hb=R[za]+ca[Wa],db=R[za]-ca[gb],Eb=M?-Ja[fb]/2:0,Pb="start"===pa?Fa[fb]:Ja[fb];pa="start"===pa?-Ja[fb]:-Fa[fb];Ja=y.elements.arrow;Ja=M&&Ja?ba(Ja):{width:0,height:0};var Kb=y.modifiersData["arrow#persistent"]?y.modifiersData["arrow#persistent"].padding:{top:0,
right:0,bottom:0,left:0};Wa=Kb[Wa];gb=Kb[gb];Ja=ac(0,oc(Fa[fb],Ja[fb]));Pb=wa?Fa[fb]/2-Eb-Ja-Wa-Qa:Pb-Ja-Wa-Qa;Fa=wa?-Fa[fb]/2+Eb+Ja+gb+Qa:pa+Ja+gb+Qa;wa=y.elements.arrow&&Za(y.elements.arrow);Qa=y.modifiersData.offset?y.modifiersData.offset[y.placement][za]:0;wa=R[za]+Pb-Qa-(wa?"y"===za?wa.clientTop||0:wa.clientLeft||0:0);Fa=R[za]+Fa-Qa;S&&(S=M?oc(hb,wa):hb,db=M?ac(db,Fa):db,S=ac(S,oc(Oa,db)),R[za]=S,Y[za]=S-Oa);O&&(O=R[H],S=O+ca["x"===za?"top":"left"],ca=O-ca["x"===za?"bottom":"right"],S=M?oc(S,
wa):S,M=M?ac(ca,Fa):ca,M=ac(S,oc(O,M)),R[H]=M,Y[H]=M-O)}y.modifiersData[d]=Y}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(d){var y,H=d.state,M=d.name,S=d.options,O=H.elements.arrow,R=H.modifiersData.popperOffsets,Y=ta(H.placement);d=jb(Y);Y=0<=["left","right"].indexOf(Y)?"height":"width";if(O&&R){S=S.padding;S="function"===typeof S?S(Object.assign({},H.rects,{placement:H.placement})):S;S=kb("number"!==typeof S?S:ra(S,$c));var ca=ba(O),pa="y"===d?"top":"left",wa=
"y"===d?"bottom":"right",za=H.rects.reference[Y]+H.rects.reference[d]-R[d]-H.rects.popper[Y];R=R[d]-H.rects.reference[d];O=(O=Za(O))?"y"===d?O.clientHeight||0:O.clientWidth||0:0;R=O/2-ca[Y]/2+(za/2-R/2);Y=ac(S[pa],oc(R,O-ca[Y]-S[wa]));H.modifiersData[M]=(y={},y[d]=Y,y.centerOffset=Y-R,y)}},effect:function(d){var y=d.state;d=d.options.element;d=void 0===d?"[data-popper-arrow]":d;if(null!=d){if("string"===typeof d&&(d=y.elements.popper.querySelector(d),!d))return;ha(y.elements.popper,d)&&(y.elements.arrow=
d)}},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(d){var y=d.state;d=d.name;var H=y.rects.reference,M=y.rects.popper,S=y.modifiersData.preventOverflow,O=Ab(y,{elementContext:"reference"}),R=Ab(y,{altBoundary:!0});H=ub(O,H);M=ub(R,M,S);S=Na(H);R=Na(M);y.modifiersData[d]={referenceClippingOffsets:H,popperEscapeOffsets:M,isReferenceHidden:S,hasPopperEscaped:R};y.attributes.popper=Object.assign({},
y.attributes.popper,{"data-popper-reference-hidden":S,"data-popper-escaped":R})}}]});const mh=Math.ceil(Math.sqrt(Math.pow(4,2)+Math.pow(4,2))),nh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteFilterChange=nb(this,"calciteFilterChange",7);this.disabled=!1;this.empty=!0;this.filter=da(d=>{const y=new RegExp(d,"ig");if(0===this.data.length)console.warn("No data was passed to calcite-filter.\n      The data property expects an array of objects"),this.calciteFilterChange.emit([]);
else{var H=(M,S)=>{let O=!1;ea(M,R=>{"function"!==typeof R&&(Array.isArray(R)||"object"===typeof R&&null!==R?H(R,S)&&(O=!0):S.test(R)&&(O=!0))});return O};d=this.data.filter(M=>H(M,y));this.calciteFilterChange.emit(d)}},250);this.inputHandler=d=>{d=d.target;this.empty=""===d.value;this.filter(d.value)};this.keyDownHandler=({key:d})=>{"Escape"===d&&this.clear()};this.clear=()=>{this.textInput.value="";this.empty=!0;this.calciteFilterChange.emit(this.data);this.setFocus()}}async setFocus(){u(this.textInput)}render(){const d=
"rtl"===k(this.el),{disabled:y}=this;return ma(fc,null,y?ma("calcite-scrim",null):null,ma("div",{class:"container"},ma("label",{class:d?"calcite--rtl":null},ma("input",{"aria-label":this.intlLabel||"filter",disabled:this.disabled,onInput:this.inputHandler,onKeyDown:this.keyDownHandler,placeholder:this.placeholder,ref:H=>{this.textInput=H},type:"text",value:""}),ma("div",{class:"search-icon"},ma("calcite-icon",{icon:"search",scale:"s"}))),this.empty?null:ma("button",{"aria-label":this.intlClear||"Clear filter",
class:"clear-button",onClick:this.clear},ma("calcite-icon",{icon:"x"}))))}get el(){return this}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;width:100%}.container{display:-ms-flexbox;display:flex;width:100%;padding:0.5rem}label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden;position:relative;width:100%;margin-left:0.25rem;margin-right:0.25rem;margin-top:0;margin-bottom:0}input[type\x3dtext]{background-color:transparent;border-style:none;font-family:inherit;color:var(--calcite-ui-text-1);font-size:var(--calcite-font-size--2);line-height:1rem;margin-bottom:0.25rem;width:100%;padding-top:0.25rem;padding-bottom:0.25rem;padding-right:0.25rem;padding-left:1.5rem;-webkit-transition:padding 150ms ease-in-out, -webkit-box-shadow 150ms ease-in-out;transition:padding 150ms ease-in-out, -webkit-box-shadow 150ms ease-in-out;transition:padding 150ms ease-in-out, box-shadow 150ms ease-in-out;transition:padding 150ms ease-in-out, box-shadow 150ms ease-in-out, -webkit-box-shadow 150ms ease-in-out}input[type\x3dtext]::-ms-clear{display:none}.search-icon{display:-ms-flexbox;display:flex;left:0;position:absolute;color:var(--calcite-ui-text-2);-webkit-transition:left 150ms ease-in-out, right 150ms ease-in-out, opacity 150ms ease-in-out;transition:left 150ms ease-in-out, right 150ms ease-in-out, opacity 150ms ease-in-out}.calcite--rtl .search-icon{right:0}input[type\x3dtext]:focus{border-color:var(--calcite-ui-brand);outline:2px solid transparent;outline-offset:2px;padding-left:0.25rem;padding-right:0.25rem;-webkit-box-shadow:0 2px 0 var(--calcite-ui-brand);box-shadow:0 2px 0 var(--calcite-ui-brand)}input[type\x3dtext]:focus~.search-icon{left:calc(1rem * -1);opacity:0}.calcite--rtl input[type\x3dtext]{padding-left:0.25rem;padding-right:1.5rem}.calcite--rtl input[type\x3dtext]:focus{padding-right:1.25rem}.calcite--rtl input[type\x3dtext]:focus~.search-icon{right:calc(1rem * -1)}.clear-button{color:var(--calcite-ui-text-2);background-color:transparent;border-width:0;cursor:pointer}.clear-button:hover,.clear-button:focus{color:var(--calcite-ui-text-1)}"}},
oh=class extends HTMLElement{constructor(){super();this.__registerHost();this.data=[];this.width=300;this.height=100;this.maskId=`calcite-graph-mask-${c([2,1,1,1,3])}`}render(){const {data:d,width:y,height:H,highlightMax:M,highlightMin:S}=this,O=this.maskId;if(!d||0===d.length)return ma("svg",{class:"svg",height:H,preserveAspectRatio:"none",viewBox:`0 0 ${y} ${H}`,width:y});const {min:R,max:Y}=vc(d);var ca=uc({min:R,max:Y,width:y,height:H});const [pa]=ca([S,Y[1]]),[wa]=ca([M,Y[1]]);ca=Uc({data:d,
min:R,max:Y,t:ca});return ma("svg",{class:"svg",height:H,preserveAspectRatio:"none",viewBox:`0 0 ${y} ${H}`,width:y},void 0!==S?ma("svg",{class:"svg",height:H,preserveAspectRatio:"none",viewBox:`0 0 ${y} ${H}`,width:y},ma("mask",{height:"100%",id:`${O}1`,width:"100%",x:"0%",y:"0%"},ma("path",{d:`
              M 0,0
              L ${pa-1},0
              L ${pa-1},${H}
              L 0,${H}
              Z
            `,fill:"white"})),ma("mask",{height:"100%",id:`${O}2`,width:"100%",x:"0%",y:"0%"},ma("path",{d:`
              M ${pa+1},0
              L ${wa-1},0
              L ${wa-1},${H}
              L ${pa+1}, ${H}
              Z
            `,fill:"white"})),ma("mask",{height:"100%",id:`${O}3`,width:"100%",x:"0%",y:"0%"},ma("path",{d:`
                  M ${wa+1},0
                  L ${y},0
                  L ${y},${H}
                  L ${wa+1}, ${H}
                  Z
                `,fill:"white"})),ma("path",{class:"graph-path",d:ca,mask:`url(#${O}1)`}),ma("path",{class:"graph-path--highlight",d:ca,mask:`url(#${O}2)`}),ma("path",{class:"graph-path",d:ca,mask:`url(#${O}3)`})):ma("path",{class:"graph-path",d:ca}))}get el(){return this}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.svg{fill:currentColor;stroke:transparent;margin:0;padding:0;display:block}"}},
ph=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteHandleNudge=nb(this,"calciteHandleNudge",7);this.activated=!1;this.textTitle="handle";this.handleKeyDown=d=>{switch(d.key){case " ":this.activated=!this.activated;break;case "ArrowUp":case "ArrowDown":this.activated&&(d=d.key.toLowerCase().replace("arrow",""),this.calciteHandleNudge.emit({handle:this.el,direction:d}))}};this.handleBlur=()=>{this.activated=!1}}async setFocus(){this.handleButton.focus()}render(){return ma("span",
{"aria-pressed":this.activated.toString(),class:{["handle"]:!0,["handle--activated"]:this.activated},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:d=>{this.handleButton=d},role:"button",tabindex:"0",title:this.textTitle},ma("calcite-icon",{icon:"drag",scale:"s"}))}get el(){return this}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex}.handle{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-pack:center;justify-content:center;background-color:transparent;border-style:none;cursor:move;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;color:var(--calcite-ui-border-3);padding:0.75rem 0.25rem;line-height:0}.handle:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.handle:focus{color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.handle--activated{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}.handle calcite-icon{color:inherit}"}},
Ud={},Vd={},Ce={s:16,m:24,l:32},qh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.icon=null;this.flipRtl=!1;this.scale="m";this.visible=!1}connectedCallback(){this.waitUntilVisible(()=>{this.visible=!0;this.loadIconPathData()})}disconnectedCallback(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null)}async componentWillLoad(){this.loadIconPathData()}render(){const {el:d,flipRtl:y,pathData:H,scale:M,textLabel:S}=this,
O=k(d),R=Ce[M],Y=!!S,ca=[].concat(H||"");return ma(Ob,{"aria-hidden":(!Y).toString(),"aria-label":Y?S:null,role:Y?"img":null},ma("svg",{class:{["flip-rtl"]:"rtl"===O&&y,svg:!0},fill:"currentColor",height:"100%",viewBox:`0 0 ${R} ${R}`,width:"100%",xmlns:"http://www.w3.org/2000/svg"},ca.map(pa=>"string"===typeof pa?ma("path",{d:pa}):ma("path",{d:pa.d,opacity:"opacity"in pa?pa.opacity:1}))))}async loadIconPathData(){const {icon:d,scale:y,visible:H}=this;d&&H&&(this.pathData=await mc({icon:d,scale:y}))}waitUntilVisible(d){"undefined"!==
typeof window&&window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(y=>{y.forEach(H=>{H.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,d())})},{rootMargin:"50px"}),this.intersectionObserver.observe(this.el)):d()}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{icon:["loadIconPathData"],scale:["loadIconPathData"]}}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex}:host([scale\x3ds]){width:1rem;height:1rem;min-width:1rem;min-height:1rem}:host([scale\x3dm]){width:1.5rem;height:1.5rem;min-width:1.5rem;min-height:1.5rem}:host([scale\x3dl]){width:2rem;height:2rem;min-width:2rem;min-height:2rem}.flip-rtl{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.svg{display:block}"}},
Af={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},rh=class extends HTMLElement{constructor(){super();this.__registerHost();this.calciteInputFocus=nb(this,"calciteInputFocus",7);this.calciteInputBlur=nb(this,"calciteInputBlur",7);this.calciteInputInput=nb(this,"calciteInputInput",7);this.calciteInputChange=nb(this,"calciteInputChange",7);this.alignment="start";this.loading=this.groupSeparator=this.autofocus=!1;this.locale=document.documentElement.lang||
"en";this.localeFormat=!1;this.numberButtonType="vertical";this.required=!1;this.scale="m";this.status="idle";this.type="text";this.value="";this.childElType="input";this.localizedValue=Ma(this.value,this.locale,this.groupSeparator);this.clearInputValue=d=>{this.setValue("",d,!0)};this.inputBlurHandler=()=>{"number"===this.type&&this.setLocalizedValue(this.value);this.calciteInputBlur.emit({element:this.childEl,value:this.value});this.preFocusValue!==this.value&&this.calciteInputChange.emit()};this.inputFocusHandler=
d=>{d.target!==this.slottedActionEl&&this.setFocus();this.calciteInputFocus.emit({element:this.childEl,value:this.value});this.preFocusValue=this.value};this.inputInputHandler=d=>{this.setValue(d.target.value,d)};this.inputKeyDownHandler=d=>{"Enter"===d.key&&this.calciteInputChange.emit()};this.inputNumberInputHandler=d=>{const y=d.target.value,H=na(y,this.locale);"insertFromPaste"===d.inputType?(Ib(H)||d.preventDefault(),this.setValue(Vc(H),d),this.childNumberEl.value=this.localizedValue):this.setValue(na(y,
this.locale),d)};this.inputNumberKeyDownHandler=d=>{if("number"===this.type)if("ArrowUp"===d.key)this.nudgeNumberValue("up",d);else if("ArrowDown"===d.key)this.nudgeNumberValue("down",d);else{var y=[...Wd,"ArrowLeft","ArrowRight","Enter","Backspace","Escape","Tab","-"];d.altKey||d.ctrlKey||d.metaKey||(y.includes(d.key)&&!d.shiftKey?"Enter"===d.key&&this.calciteInputChange.emit():(y=Ia(this.locale),d.key===y&&(!this.value&&!this.childNumberEl.value||this.value&&-1===this.childNumberEl.value.indexOf(y))||
d.preventDefault()))}};this.nudgeNumberValue=(d,y)=>{var H,M;if("number"===this.type){var S=(null===(M=null===(H=this.value)||void 0===H?void 0:H.split(".")[1])||void 0===M?void 0:M.length)||0;H=this.maxString?parseFloat(this.maxString):null;M=this.minString?parseFloat(this.minString):null;var O="any"===this.step?1:Math.abs(this.step||1),R=this.value&&""!==this.value?parseFloat(this.value):0,Y=this.value;"up"===d&&(!H&&0!==H||R<H)&&(Y=(R+=O).toFixed(S).toString());"down"===d&&(!M&&0!==M||R>M)&&(Y=
(R-=O).toFixed(S).toString());this.setValue(Y,y,!0)}};this.numberButtonMouseDownHandler=d=>{d.preventDefault();this.nudgeNumberValue(d.target.dataset.adjustment,d)};this.reset=d=>{"number"===this.type&&d.preventDefault();this.setValue(this.defaultValue,d)};this.setChildElRef=d=>{this.childEl=d};this.setChildNumberElRef=d=>{this.childNumberEl=d};this.setLocalizedValue=d=>{this.localizedValue=Ma(d,this.locale,this.groupSeparator)};this.setValue=(d,y,H=!1)=>{const M=this.value;this.value="number"===
this.type?Ya(d):d;"number"===this.type&&this.setLocalizedValue(this.value);!y||"number"===this.type&&null!==d&&void 0!==d&&d.endsWith(".")||(this.calciteInputInput.emit({element:this.childEl,nativeEvent:y,value:d}).defaultPrevented?(this.value=M,this.setLocalizedValue(M)):H&&this.calciteInputChange.emit())}}disabledWatcher(){this.setDisabledAction()}maxWatcher(){var d;this.maxString=(null===(d=this.max)||void 0===d?void 0:d.toString())||null}minWatcher(){var d;this.minString=(null===(d=this.min)||
void 0===d?void 0:d.toString())||null}valueWatcher(d){"number"===this.type&&this.localizedValue!==Ma(d,this.locale)?this.setLocalizedValue(d):this.childEl&&this.childEl.value!==d&&(this.childEl.value=d)}updateRequestedIcon(){this.requestedIcon=l(Af,this.icon,this.type)}get isClearable(){var d;return!this.isTextarea&&(this.clearable||"search"===this.type)&&0<(null===(d=this.value)||void 0===d?void 0:d.length)}get isTextarea(){return"textarea"===this.childElType}connectedCallback(){var d;this.form=
this.el.closest("form");null===(d=this.form)||void 0===d?void 0:d.addEventListener("reset",this.reset);this.scale=q(this.el,"scale",this.scale);this.status=q(this.el,"status",this.status);this.step=this.step||"number"!==this.type?this.step:"any";"number"!==this.type||Ib(this.value)||(this.value=null)}disconnectedCallback(){var d;null===(d=this.form)||void 0===d?void 0:d.removeEventListener("reset",this.reset)}componentWillLoad(){var d,y;this.childElType="textarea"===this.type?"textarea":"input";this.defaultValue=
this.value;this.maxString=null===(d=this.max)||void 0===d?void 0:d.toString();this.minString=null===(y=this.min)||void 0===y?void 0:y.toString();this.requestedIcon=l(Af,this.icon,this.type)}componentDidLoad(){this.slottedActionEl=this.el.querySelector("[slot\x3daction]");this.setDisabledAction();"number"===this.type&&this.childEl&&(this.childEl.style.cssText="\n  bottom: 0 !important;\n  left: 0 !important;\n  margin: 0 !important;\n  opacity: 0 !important;\n  outline: none !important;\n  padding: 0 !important;\n  position: absolute !important;\n  right: 0 !important;\n  top: 0 !important;\n  transform: none !important;\n  -webkit-appearance: none !important;\n  z-index: -1 !important;\n")}componentShouldUpdate(d,
y,H){return"number"===this.type&&"value"===H&&d&&!Ib(d)?(this.value=y,!1):!0}keyDownHandler(d){this.isClearable&&"Escape"===b(d.key)&&(this.clearInputValue(d),d.preventDefault())}async setFocus(){var d,y;"number"===this.type?null===(d=this.childNumberEl)||void 0===d?void 0:d.focus():null===(y=this.childEl)||void 0===y?void 0:y.focus()}setDisabledAction(){if(this.slottedActionEl){var d=this.slottedActionEl;this.disabled?d.setAttribute("disabled",""):d.removeAttribute("disabled")}}render(){const d=
k(this.el);var y=f(this.el,"alignment dir clearable min max step value icon loading prefix-text scale status suffix-text number-button-type locale group-separator".split(" "));const H=ma("div",{class:"calcite-input-loading"},ma("calcite-progress",{type:"indeterminate"}));var M="s"===this.scale||"m"===this.scale?"s":"m";const S=ma("button",{class:"calcite-input-clear-button",disabled:this.loading,onClick:this.clearInputValue},ma("calcite-icon",{icon:"x",scale:M})),O=ma("calcite-icon",{class:"calcite-input-icon",
dir:d,flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:M});var R="horizontal"===this.numberButtonType?"number-button-item-horizontal":null;const Y=ma("div",{class:`calcite-input-number-button-item ${R}`,"data-adjustment":"up",onMouseDown:this.numberButtonMouseDownHandler},ma("calcite-icon",{icon:"chevron-up",scale:M}));M=ma("div",{class:`calcite-input-number-button-item ${R}`,"data-adjustment":"down",onMouseDown:this.numberButtonMouseDownHandler},ma("calcite-icon",{icon:"chevron-down",scale:M}));
R=ma("div",{class:"calcite-input-number-button-wrapper"},Y,M);const ca=ma("div",{class:"calcite-input-prefix"},this.prefixText),pa=ma("div",{class:"calcite-input-suffix"},this.suffixText),wa="number"===this.type?ma("input",Object.assign({},y,{autofocus:this.autofocus?!0:null,defaultValue:this.defaultValue,disabled:this.disabled?!0:null,key:"localized-input",maxLength:this.maxLength,minLength:this.minLength,name:void 0,onBlur:this.inputBlurHandler,onFocus:this.inputFocusHandler,onInput:this.inputNumberInputHandler,
onKeyDown:this.inputNumberKeyDownHandler,placeholder:this.placeholder||"",ref:this.setChildNumberElRef,tabIndex:0,type:"text",value:this.localizedValue})):null;y=[ma(this.childElType,Object.assign({},y,{autofocus:this.autofocus?!0:null,defaultValue:this.defaultValue,disabled:this.disabled?!0:null,max:this.maxString,maxLength:this.maxLength,min:this.minString,minLength:this.minLength,name:this.name,onBlur:this.inputBlurHandler,onFocus:this.inputFocusHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeyDownHandler,
placeholder:this.placeholder||"",ref:this.setChildElRef,required:this.required?!0:null,step:this.step,tabIndex:this.disabled||"number"===this.type?-1:null,type:this.type,value:this.value})),this.isTextarea?ma("div",{class:"calcite-input-resize-icon-wrapper"},ma("calcite-icon",{icon:"chevron-down",scale:"s"})):null];return ma(Ob,{onClick:this.inputFocusHandler},ma("div",{class:{"calcite-input-wrapper":!0,["calcite--rtl"]:"rtl"===d},dir:d},"number"===this.type&&"horizontal"===this.numberButtonType?
M:null,this.prefixText?ca:null,ma("div",{class:"calcite-input-element-wrapper"},wa,y,this.isClearable?S:null,this.requestedIcon?O:null,this.loading?H:null),ma("div",{class:"calcite-action-wrapper"},ma("slot",{name:"action"})),"number"===this.type&&"vertical"===this.numberButtonType?R:null,this.suffixText?pa:null,"number"===this.type&&"horizontal"===this.numberButtonType?Y:null))}get el(){return this}static get watchers(){return{disabled:["disabledWatcher"],max:["maxWatcher"],min:["minWatcher"],value:["valueWatcher"],
icon:["updateRequestedIcon"],type:["updateRequestedIcon"]}}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}.sc-calcite-input:root{--calcite-popper-transition:150ms ease-in-out}[hidden].sc-calcite-input-h{display:none}[scale\x3ds].sc-calcite-input-h textarea.sc-calcite-input,[scale\x3ds].sc-calcite-input-h input.sc-calcite-input,[scale\x3ds].sc-calcite-input-h .calcite-input-prefix.sc-calcite-input,[scale\x3ds].sc-calcite-input-h .calcite-input-suffix.sc-calcite-input{font-size:var(--calcite-font-size--2);padding:0.5rem;height:2rem}[scale\x3ds].sc-calcite-input-h textarea.sc-calcite-input{min-height:32px}[scale\x3ds].sc-calcite-input-h .calcite-input-number-button-wrapper.sc-calcite-input,[scale\x3ds].sc-calcite-input-h .calcite-action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale\x3ds].sc-calcite-input-h .calcite-action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{height:2rem}[scale\x3ds].sc-calcite-input-h textarea.sc-calcite-input,[scale\x3ds].sc-calcite-input-h input[type\x3dfile].sc-calcite-input{height:auto}[scale\x3ds].sc-calcite-input-h .calcite-input-clear-button.sc-calcite-input{min-height:32px;min-width:32px}[scale\x3dm].sc-calcite-input-h textarea.sc-calcite-input,[scale\x3dm].sc-calcite-input-h input.sc-calcite-input,[scale\x3dm].sc-calcite-input-h .calcite-input-prefix.sc-calcite-input,[scale\x3dm].sc-calcite-input-h .calcite-input-suffix.sc-calcite-input{font-size:var(--calcite-font-size--1);padding:0.75rem;height:44px}[scale\x3dm].sc-calcite-input-h textarea.sc-calcite-input{min-height:44px}[scale\x3dm].sc-calcite-input-h .calcite-input-number-button-wrapper.sc-calcite-input,[scale\x3dm].sc-calcite-input-h .calcite-action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale\x3dm].sc-calcite-input-h .calcite-action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{height:44px}[scale\x3dm].sc-calcite-input-h textarea.sc-calcite-input,[scale\x3dm].sc-calcite-input-h input[type\x3dfile].sc-calcite-input{height:auto}[scale\x3dm].sc-calcite-input-h .calcite-input-clear-button.sc-calcite-input{min-height:44px;min-width:44px}[scale\x3dl].sc-calcite-input-h textarea.sc-calcite-input,[scale\x3dl].sc-calcite-input-h input.sc-calcite-input,[scale\x3dl].sc-calcite-input-h .calcite-input-prefix.sc-calcite-input,[scale\x3dl].sc-calcite-input-h .calcite-input-suffix.sc-calcite-input{font-size:var(--calcite-font-size-1);padding:1rem;height:56px}[scale\x3dl].sc-calcite-input-h textarea.sc-calcite-input{min-height:56px}[scale\x3dl].sc-calcite-input-h .calcite-input-number-button-wrapper.sc-calcite-input,[scale\x3dl].sc-calcite-input-h .calcite-action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale\x3dl].sc-calcite-input-h .calcite-action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{height:56px}[scale\x3dl].sc-calcite-input-h textarea.sc-calcite-input,[scale\x3dl].sc-calcite-input-h input[type\x3dfile].sc-calcite-input{height:auto}[scale\x3dl].sc-calcite-input-h .calcite-input-clear-button.sc-calcite-input{min-height:56px;min-width:56px}[disabled].sc-calcite-input-h{pointer-events:none}[disabled].sc-calcite-input-h .calcite-input-wrapper.sc-calcite-input{opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}[disabled].sc-calcite-input-h textarea.sc-calcite-input,[disabled].sc-calcite-input-h input.sc-calcite-input{pointer-events:none}.sc-calcite-input-h textarea.sc-calcite-input,.sc-calcite-input-h input.sc-calcite-input{display:-ms-flexbox;display:flex;position:relative;min-width:20%;max-width:100%;max-height:100%;-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;font-family:inherit;-webkit-transition:150ms ease-in-out, height 0s;transition:150ms ease-in-out, height 0s;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;outline:0;margin:0;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);font-weight:400;border-radius:0;-webkit-border-radius:0}.sc-calcite-input-h input[type\x3dsearch].sc-calcite-input::-webkit-search-decoration{-webkit-appearance:none}.sc-calcite-input-h textarea.sc-calcite-input,.sc-calcite-input-h input.sc-calcite-input{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.sc-calcite-input-h textarea.sc-calcite-input:focus,.sc-calcite-input-h input.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.sc-calcite-input-h input.sc-calcite-input,.sc-calcite-input-h textarea.sc-calcite-input{color:var(--calcite-ui-text-1);border:1px solid var(--calcite-ui-border-1)}.sc-calcite-input-h input.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input:-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:400}.sc-calcite-input-h input.sc-calcite-input::-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:400}.sc-calcite-input-h input.sc-calcite-input::placeholder,.sc-calcite-input-h input.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h input.sc-calcite-input::-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::placeholder,.sc-calcite-input-h textarea.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:400}.sc-calcite-input-h input.sc-calcite-input:focus,.sc-calcite-input-h textarea.sc-calcite-input:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}.sc-calcite-input-h input[readonly].sc-calcite-input,.sc-calcite-input-h textarea[readonly].sc-calcite-input{background-color:var(--calcite-ui-background)}.sc-calcite-input-h input[readonly].sc-calcite-input:focus,.sc-calcite-input-h textarea[readonly].sc-calcite-input:focus{color:var(--calcite-ui-text-1)}.sc-calcite-input-h calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}.sc-calcite-input-h slot.sc-calcite-input:not[name\x3dinput-message]{display:block;margin-bottom:0.375rem;color:var(--calcite-ui-text-2);font-weight:500}[icon].sc-calcite-input-h input.sc-calcite-input{padding-left:2.25rem}[icon].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{padding-right:2.25rem;padding-left:0.75rem}[icon][scale\x3dl].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{padding-right:3rem;padding-left:0.75rem}[icon][scale\x3dl].sc-calcite-input-h input.sc-calcite-input{padding-left:3rem}.calcite-input-element-wrapper.sc-calcite-input{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:1;flex:1;min-width:20%;position:relative;-ms-flex-order:3;order:3}.calcite-input-icon.sc-calcite-input{display:block;position:absolute;pointer-events:none;-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out;top:calc(50% - 9px);left:0.75rem;margin:1px auto 0;z-index:1}[scale\x3dl].sc-calcite-input-h .calcite-input-icon.sc-calcite-input{top:calc(50% - 12px)}.calcite--rtl.sc-calcite-input .calcite-input-icon.sc-calcite-input{left:unset;right:0.75rem}input[type\x3dtext].sc-calcite-input::-ms-clear{display:none;width:0;height:0}input[type\x3dtext].sc-calcite-input::-ms-reveal{display:none;width:0;height:0}input[type\x3dsearch].sc-calcite-input::-webkit-search-decoration,input[type\x3dsearch].sc-calcite-input::-webkit-search-cancel-button,input[type\x3dsearch].sc-calcite-input::-webkit-search-results-button,input[type\x3dsearch].sc-calcite-input::-webkit-search-results-decoration,input[type\x3ddate].sc-calcite-input::-webkit-clear-button,input[type\x3dtime].sc-calcite-input::-webkit-clear-button{display:none}.calcite-input-clear-button.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;min-height:100%;border:1px solid var(--calcite-ui-border-1);-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out;pointer-events:initial;background-color:var(--calcite-ui-foreground-1);border-left:none;-ms-flex-order:4;order:4}.calcite-input-clear-button.sc-calcite-input:hover,.calcite-input-clear-button.sc-calcite-input:focus{background-color:var(--calcite-ui-foreground-2)}.calcite-input-clear-button.sc-calcite-input:active{background-color:var(--calcite-ui-foreground-3)}.calcite-input-clear-button.sc-calcite-input:disabled{opacity:var(--calcite-ui-opacity-disabled)}.calcite--rtl.sc-calcite-input .calcite-input-clear-button.sc-calcite-input{border-left:1px solid var(--calcite-ui-border-1);border-right:none}.calcite-input-clear-button.sc-calcite-input{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.calcite-input-clear-button.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.calcite-input-loading.sc-calcite-input{display:block;pointer-events:none;position:absolute;top:1px;left:1px;right:1px}.calcite-action-wrapper.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-order:7;order:7}.calcite-input-prefix.sc-calcite-input,.calcite-input-suffix.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;height:auto;min-height:100%;word-break:break-word;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:500;border:1px solid var(--calcite-ui-border-1);background-color:var(--calcite-ui-background);color:var(--calcite-ui-text-2);line-height:1}.calcite-input-prefix.sc-calcite-input{-ms-flex-order:2;order:2;border-right-width:0px}.calcite-input-suffix.sc-calcite-input{-ms-flex-order:5;order:5;border-left-width:0px}.calcite--rtl.sc-calcite-input .calcite-input-prefix.sc-calcite-input{border-right-width:1px;border-left-width:0px}.calcite--rtl.sc-calcite-input .calcite-input-suffix.sc-calcite-input{border-left-width:1px;border-right-width:0px}[readonly].sc-calcite-input-h .calcite-input-number-button-item.sc-calcite-input{pointer-events:none}[alignment\x3dstart].sc-calcite-input-h textarea.sc-calcite-input,[alignment\x3dstart].sc-calcite-input-h input.sc-calcite-input{text-align:left}[alignment\x3dend].sc-calcite-input-h textarea.sc-calcite-input,[alignment\x3dend].sc-calcite-input-h input.sc-calcite-input{text-align:right}[alignment\x3dstart].sc-calcite-input-h .calcite--rtl.sc-calcite-input textarea.sc-calcite-input,[alignment\x3dstart].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{text-align:right}[alignment\x3dend].sc-calcite-input-h .calcite--rtl.sc-calcite-input textarea.sc-calcite-input,[alignment\x3dend].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{text-align:left}.sc-calcite-input-h input[type\x3dnumber].sc-calcite-input{-moz-appearance:textfield}.sc-calcite-input-h input[type\x3dnumber].sc-calcite-input::-webkit-inner-spin-button,.sc-calcite-input-h input[type\x3dnumber].sc-calcite-input::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}.calcite-input-number-button-wrapper.sc-calcite-input{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out;pointer-events:none;-ms-flex-order:6;order:6}[number-button-type\x3dvertical].sc-calcite-input-h .calcite-input-wrapper.sc-calcite-input{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}[number-button-type\x3dvertical].sc-calcite-input-h input.sc-calcite-input,[number-button-type\x3dvertical].sc-calcite-input-h textarea.sc-calcite-input{-ms-flex-order:2;order:2}[number-button-type\x3dhorizontal].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input-number-button-item[data-adjustment\x3ddown].sc-calcite-input calcite-icon.sc-calcite-input{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}[number-button-type\x3dhorizontal].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input-number-button-item[data-adjustment\x3dup].sc-calcite-input calcite-icon.sc-calcite-input{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.calcite-input-number-button-item.number-button-item-horizontal[data-adjustment\x3ddown].sc-calcite-input,.calcite-input-number-button-item.number-button-item-horizontal[data-adjustment\x3dup].sc-calcite-input{min-height:100%;max-height:100%;-ms-flex-order:1;order:1;-ms-flex-item-align:auto;align-self:auto}.calcite-input-number-button-item.number-button-item-horizontal[data-adjustment\x3ddown].sc-calcite-input calcite-icon.sc-calcite-input,.calcite-input-number-button-item.number-button-item-horizontal[data-adjustment\x3dup].sc-calcite-input calcite-icon.sc-calcite-input{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.calcite-input-number-button-item.number-button-item-horizontal[data-adjustment\x3ddown].sc-calcite-input{border-left:1px solid var(--calcite-ui-border-1);border-right:0px}.calcite-input-number-button-item.number-button-item-horizontal[data-adjustment\x3dup].sc-calcite-input{-ms-flex-order:5;order:5}.calcite--rtl.sc-calcite-input .calcite-input-number-button-item.number-button-item-horizontal[data-adjustment\x3ddown].sc-calcite-input{border-right:1px solid var(--calcite-ui-border-1);border-left:0px}.calcite--rtl.sc-calcite-input .calcite-input-number-button-item.number-button-item-horizontal[data-adjustment\x3dup].sc-calcite-input{border-left:1px solid var(--calcite-ui-border-1);border-right:0px}[number-button-type\x3dvertical].sc-calcite-input-h .calcite-input-number-button-item[data-adjustment\x3ddown].sc-calcite-input{border-top:0}.calcite-input-number-button-item.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;max-height:50%;min-height:50%;padding:0 0.75rem;border:1px solid var(--calcite-ui-border-1);-webkit-transition:background-color 0.15s ease-in-out;transition:background-color 0.15s ease-in-out;pointer-events:initial;background-color:var(--calcite-ui-foreground-1);border-left:none}.calcite-input-number-button-item.sc-calcite-input calcite-icon.sc-calcite-input{pointer-events:none}.calcite-input-number-button-item.sc-calcite-input:hover,.calcite-input-number-button-item.sc-calcite-input:focus{background-color:var(--calcite-ui-foreground-2)}.calcite-input-number-button-item.sc-calcite-input:active{background-color:var(--calcite-ui-foreground-3)}[number-button-type\x3dvertical].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input-number-button-item.sc-calcite-input{border-right:none;border-left:1px solid var(--calcite-ui-border-1)}.calcite-input-wrapper.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;position:relative}.sc-calcite-input-h input.sc-calcite-input::-webkit-calendar-picker-indicator{display:none}.sc-calcite-input-h input[type\x3ddate].sc-calcite-input::-webkit-input-placeholder{visibility:hidden !important}.sc-calcite-input-h textarea.sc-calcite-input::-webkit-resizer{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;bottom:0;right:0;padding:0 0.375rem}@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none){.calcite-input-resize-icon-wrapper.sc-calcite-input{display:none}}.calcite-input-resize-icon-wrapper.sc-calcite-input{background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);position:absolute;z-index:1;bottom:2px;right:2px;pointer-events:none;width:16px;height:16px}.calcite-input-resize-icon-wrapper.sc-calcite-input calcite-icon.sc-calcite-input{bottom:4px;right:4px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.calcite--rtl.sc-calcite-input textarea.sc-calcite-input::-webkit-resizer{left:0;right:unset}.calcite--rtl.sc-calcite-input .calcite-input-resize-icon-wrapper.sc-calcite-input{left:2px;right:unset}.calcite--rtl.sc-calcite-input .calcite-input-resize-icon-wrapper.sc-calcite-input calcite-icon.sc-calcite-input{bottom:4px;right:4px;-webkit-transform:rotate(45deg);transform:rotate(45deg)}[type\x3dfile].sc-calcite-input-h input.sc-calcite-input,[type\x3dfile].sc-calcite-input-h textarea.sc-calcite-input{cursor:pointer;padding:1.5rem;border:1px dashed #d4d4d4;background-color:#f8f8f8;text-align:center}.no-bottom-border.sc-calcite-input-h input.sc-calcite-input.sc-calcite-input{border-bottom:none}[status\x3dinvalid].sc-calcite-input-h .calcite-input-icon.sc-calcite-input{color:var(--calcite-ui-danger)}[status\x3dvalid].sc-calcite-input-h .calcite-input-icon.sc-calcite-input{color:var(--calcite-ui-success)}[status\x3didle].sc-calcite-input-h .calcite-input-icon.sc-calcite-input{color:var(--calcite-ui-text-2)}"}};
var Bf;(function(d){d.valid="check-circle";d.invalid="exclamation-mark-triangle";d.idle="information"})(Bf||(Bf={}));const sh=class extends HTMLElement{constructor(){super();this.__registerHost();this.calciteLabelFocus=nb(this,"calciteLabelFocus",7);this.alignment="start";this.status="idle";this.scale="m";this.layout="default";this.handleCalciteHtmlForClicks=d=>{if(this.for){var y=v(this.el,`#${this.for}`);if(y&&y.localName.startsWith("calcite")&&d!==y&&!"button input meter output progress select textarea".split(" ").includes(d.localName)){var H=
"calcite-button calcite-checkbox calcite-date calcite-inline-editable calcite-input calcite-radio calcite-radio-button calcite-radio-button-group calcite-radio-group calcite-rating calcite-select calcite-slider calcite-switch".split(" ");if(!H.includes(d.localName)){for(let M=0;M<H.length;M++)if(d.closest(H[M]))return;y.click()}}}}}onClick(d){d=d.target;this.calciteLabelFocus.emit({labelEl:this.el,interactedEl:d,requestedInput:this.for});this.handleCalciteHtmlForClicks(d)}render(){const d=f(this.el,
"disabled id dir layout scale status".split(" ")),y=k(this.el);return ma("label",Object.assign({},d,{class:{["calcite--rtl"]:"rtl"===y}}),ma("slot",null))}get el(){return this}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}.sc-calcite-label:root{--calcite-popper-transition:150ms ease-in-out}[hidden].sc-calcite-label-h{display:none}[alignment\x3dstart].sc-calcite-label-h,[alignment\x3dend].sc-calcite-label-h .calcite--rtl.sc-calcite-label{text-align:left}[alignment\x3dend].sc-calcite-label-h,[alignment\x3dstart].sc-calcite-label-h .calcite--rtl.sc-calcite-label{text-align:right}[alignment\x3dcenter].sc-calcite-label-h{text-align:center}[scale\x3ds].sc-calcite-label-h label.sc-calcite-label{font-size:var(--calcite-font-size--2);line-height:1rem;margin-bottom:0.5rem}[scale\x3dm].sc-calcite-label-h label.sc-calcite-label{font-size:var(--calcite-font-size--1);line-height:1rem;margin-bottom:0.75rem}[scale\x3dl].sc-calcite-label-h label.sc-calcite-label{font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-bottom:1rem}.sc-calcite-label-h label.sc-calcite-label{cursor:pointer;width:100%;margin-top:0;margin-right:0;margin-left:0;line-height:1.375}[layout\x3ddefault].sc-calcite-label-h label.sc-calcite-label{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;grid-gap:0.25rem;gap:0.25rem}[layout\x3dinline].sc-calcite-label-h label.sc-calcite-label,[layout\x3dinline-space-between].sc-calcite-label-h label.sc-calcite-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;grid-gap:0.5rem;gap:0.5rem}[layout\x3dinline][scale\x3dl].sc-calcite-label-h label.sc-calcite-label{grid-gap:0.75rem;gap:0.75rem}[layout\x3dinline-space-between].sc-calcite-label-h label.sc-calcite-label{-ms-flex-pack:justify;justify-content:space-between}[disabled].sc-calcite-label-h\x3elabel.sc-calcite-label{pointer-events:none;opacity:0.5}.sc-calcite-label-h[disabled] .sc-calcite-label-s\x3e*{pointer-events:none}.sc-calcite-label-h[disabled] .sc-calcite-label-s\x3e*[disabled],.sc-calcite-label-h[disabled] .sc-calcite-label-s\x3e*[disabled] *{--bg-opacity:1}.sc-calcite-label-h[disabled] .sc-calcite-label-s\x3ecalcite-input-message:not([active]){--bg-opacity:0}[status\x3dinvalid].sc-calcite-label-h label.sc-calcite-label{color:var(--calcite-ui-danger)}[status\x3dvalid].sc-calcite-label-h label.sc-calcite-label{color:var(--calcite-ui-text-2)}[status\x3didle].sc-calcite-label-h label.sc-calcite-label{color:var(--calcite-ui-text-2)}[disable-spacing].sc-calcite-label-h label.sc-calcite-label{grid-gap:0;gap:0;margin:0}"}},
th=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.inline=this.active=!1;this.scale="m";this.value=0;this.text=""}render(){const {el:d,inline:y,label:H,scale:M,text:S,type:O,value:R}=this,Y=d.id||c([2,1,1,1,3]);var ca=y?this.getInlineSize(M):this.getSize(M);const pa=.45*ca,wa=`0 0 ${ca} ${ca}`,za="determinate"===O;var Fa=2*pa*Math.PI;const Ja=R/100*Fa;var Qa=Math.floor(R);Qa={"aria-valuenow":Qa,"aria-valuemin":0,"aria-valuemax":100,complete:100===Qa};ca={r:pa,cx:ca/
2,cy:ca/2};Fa={"stroke-dasharray":`${Ja} ${Fa-Ja}`};return ma(Ob,Object.assign({"aria-label":H,id:Y,role:"progressbar"},za?Qa:{}),ma("div",{class:"loader__svgs"},ma("svg",{class:"loader__svg loader__svg--1",viewBox:wa},ma("circle",Object.assign({},ca))),ma("svg",{class:"loader__svg loader__svg--2",viewBox:wa},ma("circle",Object.assign({},ca))),ma("svg",Object.assign({class:"loader__svg loader__svg--3",viewBox:wa},za?{style:Fa}:{}),ma("circle",Object.assign({},ca)))),S&&ma("div",{class:"loader__text"},
S),za&&ma("div",{class:"loader__percentage"},R))}getSize(d){return{s:32,m:56,l:80}[d]}getInlineSize(d){return{s:12,m:16,l:20}[d]}get el(){return this}static get style(){return'@charset "UTF-8";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-ms-flex-align:center;align-items:center;position:relative;-ms-flex-pack:center;justify-content:center;display:none;margin-left:auto;margin-right:auto;opacity:1;padding-top:4rem;padding-bottom:4rem;min-height:var(--loader-size);font-size:var(--loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;-webkit-transform:scale(1, 1);transform:scale(1, 1);animation:loader-color-shift 6s alternate-reverse infinite linear}:host([scale\x3ds]){--loader-font-size:var(--calcite-font-size--2);--loader-size:2rem;--loader-size-inline:0.75rem}:host([scale\x3dm]){--loader-font-size:var(--calcite-font-size-0);--loader-size:4rem;--loader-size-inline:1rem}:host([scale\x3dl]){--loader-font-size:var(--calcite-font-size-2);--loader-size:6rem;--loader-size-inline:1.25rem}:host([no-padding]){padding-top:0;padding-bottom:0}:host([active]){display:-ms-flexbox;display:flex}.loader__text{display:block;text-align:center;margin-top:calc(var(--loader-size) + 1.5rem)}.loader__percentage{display:block;position:absolute;color:var(--calcite-ui-text-1);text-align:center;font-size:var(--loader-font-size);width:var(--loader-size);top:4rem;left:50%;margin-left:calc(var(--loader-size) / 2 * -1);margin-top:calc(var(--loader-size) / 2);line-height:0.25;-webkit-transform:scale(1, 1);transform:scale(1, 1)}.loader__svgs{position:absolute;overflow:visible;opacity:1;width:var(--loader-size);height:var(--loader-size);top:4rem;left:50%;margin-left:calc(var(--loader-size) / 2 * -1);-webkit-transform:scale(1, 1);transform:scale(1, 1)}.loader__svg{position:absolute;overflow:visible;top:0;left:0;-webkit-transform-origin:center;transform-origin:center;width:var(--loader-size);height:var(--loader-size);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-name:loader-clockwise;animation-name:loader-clockwise}@supports (display: grid){.loader__svg--1{-webkit-animation-name:loader-offset-1;animation-name:loader-offset-1}.loader__svg--2{-webkit-animation-name:loader-offset-2;animation-name:loader-offset-2}.loader__svg--3{-webkit-animation-name:loader-offset-3;animation-name:loader-offset-3}}:host([type\x3ddeterminate]){-webkit-animation:none;animation:none;stroke:var(--calcite-ui-border-3)}:host([type\x3ddeterminate]) .loader__svg--3{-webkit-animation:none;animation:none;stroke:var(--calcite-ui-brand);stroke-dasharray:150.79632;-webkit-transform:rotate(-90deg);transform:rotate(-90deg);-webkit-transition:all 100ms linear;transition:all 100ms linear}:host([inline]){position:relative;margin:0;padding-top:0;padding-bottom:0;-webkit-animation:none;animation:none;stroke:currentColor;stroke-width:2;height:var(--loader-size-inline);min-height:var(--loader-size-inline);width:var(--loader-size-inline);margin-right:var(--loader-size-inline)/2;vertical-align:-var(--loader-size-inline)/5}:host([inline][dir\x3drtl]){margin-right:0;margin-left:var(--loader-size-inline)/2}:host([active][inline]){display:inline-block}:host([inline]) .loader__svgs{top:0;left:0;margin:0;width:var(--loader-size-inline);height:var(--loader-size-inline)}:host([inline]) .loader__svg{width:var(--loader-size-inline);height:var(--loader-size-inline)}:host([complete]){opacity:0;-webkit-transform:scale(0.75, 0.75);transform:scale(0.75, 0.75);-webkit-transform-origin:center;transform-origin:center;-webkit-transition:opacity 200ms linear 1000ms, -webkit-transform 200ms linear 1000ms;transition:opacity 200ms linear 1000ms, -webkit-transform 200ms linear 1000ms;transition:opacity 200ms linear 1000ms, transform 200ms linear 1000ms;transition:opacity 200ms linear 1000ms, transform 200ms linear 1000ms, -webkit-transform 200ms linear 1000ms}:host([complete]) .loader__svgs{opacity:0;-webkit-transform:scale(0.75, 0.75);transform:scale(0.75, 0.75);-webkit-transform-origin:center;transform-origin:center;-webkit-transition:opacity 180ms linear 800ms, -webkit-transform 180ms linear 800ms;transition:opacity 180ms linear 800ms, -webkit-transform 180ms linear 800ms;transition:opacity 180ms linear 800ms, transform 180ms linear 800ms;transition:opacity 180ms linear 800ms, transform 180ms linear 800ms, -webkit-transform 180ms linear 800ms}:host([complete]) .loader__percentage{color:var(--calcite-ui-brand);-webkit-transform:scale(1.05, 1.05);transform:scale(1.05, 1.05);-webkit-transform-origin:center;transform-origin:center;-webkit-transition:color 200ms linear, -webkit-transform 200ms linear;transition:color 200ms linear, -webkit-transform 200ms linear;transition:color 200ms linear, transform 200ms linear;transition:color 200ms linear, transform 200ms linear, -webkit-transform 200ms linear}.loader__svg--1{stroke-dasharray:27.9252444444% 139.6262222222%;-webkit-animation-duration:0.72s;animation-duration:0.72s}@-webkit-keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-83.7757333333%}100%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:-279.2524444444%}}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-83.7757333333%}100%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:-279.2524444444%}}.loader__svg--2{stroke-dasharray:55.8504888889% 139.6262222222%;-webkit-animation-duration:0.96s;animation-duration:0.96s}@-webkit-keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-97.7383555556%}100%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:-279.2524444444%}}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-97.7383555556%}100%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:-279.2524444444%}}.loader__svg--3{stroke-dasharray:13.9626222222% 139.6262222222%;-webkit-animation-duration:1.16s;animation-duration:1.16s}@-webkit-keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-76.7944222222%}100%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:-279.2524444444%}}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-76.7944222222%}100%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:-279.2524444444%}}@-webkit-keyframes loader-color-shift{0%{stroke:var(--calcite-ui-brand)}33%{stroke:var(--calcite-ui-brand-press)}66%{stroke:var(--calcite-ui-brand-hover)}100%{stroke:var(--calcite-ui-brand)}}@keyframes loader-color-shift{0%{stroke:var(--calcite-ui-brand)}33%{stroke:var(--calcite-ui-brand-press)}66%{stroke:var(--calcite-ui-brand-hover)}100%{stroke:var(--calcite-ui-brand)}}@-webkit-keyframes loader-clockwise{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loader-clockwise{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}'}},
uh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteOptionChange=nb(this,"calciteOptionChange",7);this.disabled=!1;this.mutationObserver=new MutationObserver(()=>{this.ensureTextContentDependentProps();this.calciteOptionChange.emit()})}handlePropChange(d,y,H){"label"!==H&&"value"!==H||this.ensureTextContentDependentProps();this.calciteOptionChange.emit()}ensureTextContentDependentProps(){const {el:{textContent:d}}=this;this.label&&this.label!==this.internallySetLabel||
(this.internallySetLabel=this.label=d);this.value&&this.value!==this.internallySetValue||(this.internallySetValue=this.value=d)}connectedCallback(){this.ensureTextContentDependentProps();this.mutationObserver.observe(this.el,{childList:!0,attributeFilter:["label","value"]})}disconnectedCallback(){this.mutationObserver.disconnect()}render(){return ma("slot",null,this.label)}get el(){return this}static get watchers(){return{disabled:["handlePropChange"],label:["handlePropChange"],selected:["handlePropChange"],
value:["handlePropChange"]}}},vh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteOptionGroupChange=nb(this,"calciteOptionGroupChange",7);this.disabled=!1}handlePropChange(){this.calciteOptionGroupChange.emit()}render(){return ma(fc,null,ma("div",null,this.label),ma("slot",null))}static get watchers(){return{disabled:["handlePropChange"],label:["handlePropChange"]}}},wh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calcitePanelDismissedChange=
nb(this,"calcitePanelDismissedChange",7);this.calcitePanelScroll=nb(this,"calcitePanelScroll",7);this.calcitePanelBackClick=nb(this,"calcitePanelBackClick",7);this.menuOpen=this.loading=this.showBackButton=this.dismissible=this.disabled=this.dismissed=!1;this.setContainerRef=d=>{this.containerEl=d};this.setDismissRef=d=>{this.dismissButtonEl=d};this.setBackRef=d=>{this.backButtonEl=d};this.panelKeyUpHandler=d=>{"Escape"===d.key&&this.dismiss()};this.dismiss=()=>{this.dismissed=!0};this.panelScrollHandler=
()=>{this.calcitePanelScroll.emit()};this.backButtonClick=()=>{this.calcitePanelBackClick.emit()}}dismissedHandler(){this.calcitePanelDismissedChange.emit()}async setFocus(d){var y,H,M;"dismiss-button"===d?null===(y=this.dismissButtonEl)||void 0===y?void 0:y.setFocus():"back-button"===d?null===(H=this.backButtonEl)||void 0===H?void 0:H.setFocus():null===(M=this.containerEl)||void 0===M?void 0:M.focus()}renderBackButton(){var {el:d}=this;d="rtl"===k(d);const {showBackButton:y,intlBack:H,backButtonClick:M}=
this,S=H||"Back";return y?ma("calcite-action",{"aria-label":S,class:"back-button",icon:d?"chevron-right":"chevron-left",key:"back-button",onClick:M,ref:this.setBackRef,scale:"s",slot:"header-actions-start",text:S}):null}renderHeaderContent(){const {heading:d,headingLevel:y,summary:H}=this,M=d?ma(Kd,{class:"heading",level:y||3},d):null,S=H?ma("span",{class:"summary"},H):null;return M||S?ma("div",{class:"header-content",key:"header-content"},M,S):null}renderHeaderSlottedContent(){return ma("div",{class:"header-content",
key:"header-content"},ma("slot",{name:"header-content"}))}renderHeaderStartActions(){const {el:d}=this;return m(d,"header-actions-start")?ma("div",{class:{["header-actions--start"]:!0,["header-actions"]:!0},key:"header-actions-start"},ma("slot",{name:"header-actions-start"})):null}renderHeaderActionsEnd(){const {dismiss:d,dismissible:y,el:H,intlClose:M}=this;var S=M||"Close";S=y?ma("calcite-action",{"aria-label":S,icon:"x",onClick:d,ref:this.setDismissRef,text:S}):null;const O=ma("slot",{name:"header-actions-end"});
return m(H,"header-actions-end")||S?ma("div",{class:{["header-actions--end"]:!0,["header-actions"]:!0},key:"header-actions-end"},O,S):null}renderMenu(){const {el:d,intlOptions:y,menuOpen:H}=this;return m(d,"header-menu-actions")?ma("calcite-action-menu",{flipPlacements:["top","bottom"],label:y||"Options",open:H,placement:"bottom-end"},ma("slot",{name:"header-menu-actions"})):null}renderHeaderNode(){const {el:d,showBackButton:y}=this,H=this.renderBackButton(),M=m(d,"header-content")?this.renderHeaderSlottedContent():
this.renderHeaderContent(),S=this.renderHeaderStartActions(),O=this.renderHeaderActionsEnd(),R=this.renderMenu();return S||M||O||R||y?ma("header",{class:"header"},H,S,M,O,R):null}renderFooterSlottedContent(){const {el:d}=this;return m(d,"footer")?ma("footer",{class:"footer"},ma("slot",{name:"footer"})):null}renderFooterActions(){const {el:d}=this;return m(d,"footer-actions")?ma("footer",{class:"footer"},ma("slot",{name:"footer-actions"})):null}renderContent(){return ma("section",{class:"content-container",
onScroll:this.panelScrollHandler,tabIndex:0},ma("slot",null),this.renderFab())}renderFab(){const {el:d}=this;return m(d,"fab")?ma("div",{class:"fab-container"},ma("slot",{name:"fab"})):null}render(){const {dismissed:d,disabled:y,dismissible:H,el:M,loading:S,panelKeyUpHandler:O}=this;var R="rtl"===k(M);R=ma("article",{"aria-busy":S.toString(),class:{["container"]:!0,["calcite--rtl"]:R},hidden:H&&d,onKeyUp:O,ref:this.setContainerRef,tabIndex:H?0:-1},this.renderHeaderNode(),this.renderContent(),this.renderFooterSlottedContent()||
this.renderFooterActions());return ma(fc,null,S||y?ma("calcite-scrim",{loading:S}):null,R)}get el(){return this}static get watchers(){return{dismissed:["dismissedHandler"]}}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;position:relative;width:100%;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-ui-text-2);fill:var(--calcite-ui-text-2)}.heading{padding:0;margin:0;font-weight:var(--calcite-font-weight-medium);line-height:1.5}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-spacing-half) var(--calcite-spacing-half)}h1.heading{font-size:var(--calcite-font-size-2)}h2.heading{font-size:var(--calcite-font-size-1)}h3.heading{font-size:var(--calcite-font-size-0)}h4.heading,h5.heading{font-size:var(--calcite-font-size--1)}.container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);width:100%;padding:0;margin:0;max-height:var(--calcite-panel-max-height);width:var(--calcite-panel-width);max-width:var(--calcite-panel-max-width);min-width:var(--calcite-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, width 150ms ease-in-out;transition:max-height 150ms ease-in-out, width 150ms ease-in-out}:host([height-scale\x3ds]){--calcite-panel-max-height:40vh}:host([height-scale\x3dm]){--calcite-panel-max-height:60vh}:host([height-scale\x3dl]){--calcite-panel-max-height:80vh}:host([width-scale\x3ds]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale\x3dm]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale\x3dl]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative;z-index:1}.header{border-bottom:1px solid;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start;position:-webkit-sticky;position:sticky;top:0;border-bottom-color:var(--calcite-ui-border-3);width:100%;-ms-flex:0 0 auto;flex:0 0 auto;min-height:3rem;z-index:2;width:100%}.header-content{display:block;overflow:hidden;margin-right:auto;padding-top:1rem;padding-bottom:1rem;padding-left:0.75rem;padding-right:0.75rem}.header-content .heading,.header-content .summary{padding:0;display:block;overflow:hidden;white-space:nowrap;width:100%;text-overflow:ellipsis}.header-content .heading{font-weight:var(--calcite-font-weight-medium);margin-top:0;margin-left:0;margin-right:0;margin-bottom:0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.header-content .heading:only-child{margin-bottom:0}.header-content .summary{color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1);line-height:1rem}.back-button{border-color:var(--calcite-ui-border-3);border-style:solid;border-width:0;border-right-width:1px}.calcite--rtl .back-button{border-right-width:0;border-left-width:1px}.header-actions{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.header-actions--end{margin-left:auto}.menu-container:only-child{margin-left:auto}.menu-button{-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:0 1 auto;flex:0 1 auto;height:100%;position:relative}.menu{min-width:10rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.content-container{-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:column;flex-direction:column}.footer{border-top:1px solid;background-color:var(--calcite-ui-foreground-1);border-top-color:var(--calcite-ui-border-3);display:-ms-flexbox;display:flex;-ms-flex-pack:space-evenly;justify-content:space-evenly;position:-webkit-sticky;position:sticky;bottom:0;width:100%;-ms-flex:0 0 auto;flex:0 0 auto;min-height:3rem;padding:0.5rem}.calcite--rtl .header-content{margin-left:auto;margin-right:unset}.calcite--rtl .header-actions--end{margin-right:auto;margin-left:unset}.calcite--rtl .menu-container:only-child{margin-right:auto;margin-left:unset}.fab-container{display:inline-block;position:-webkit-sticky;position:sticky;margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto;padding:0.5rem;bottom:0;left:0;right:0;z-index:1}"}};
var Pc;(function(d){d.circle="circle";d.square="square";d.grip="grip"})(Pc||(Pc={}));const kg=["ArrowUp","ArrowDown"];let ad;const xh=d=>{var {props:{disabled:y,loading:H,filterEnabled:M,dataForFilter:S,handleFilter:O,filterPlaceholder:R,el:Y,setFilterEl:ca}}=d,pa=["props"],wa={},za;for(za in d)Object.prototype.hasOwnProperty.call(d,za)&&0>pa.indexOf(za)&&(wa[za]=d[za]);if(null!=d&&"function"===typeof Object.getOwnPropertySymbols){var Fa=0;for(za=Object.getOwnPropertySymbols(d);Fa<za.length;Fa++)0>
pa.indexOf(za[Fa])&&Object.prototype.propertyIsEnumerable.call(d,za[Fa])&&(wa[za[Fa]]=d[za[Fa]])}d=ma("slot",null);return ma(Ob,Object.assign({"aria-busy":H.toString(),"aria-disabled":y.toString(),role:"menu"},wa),ma("section",null,ma("header",{class:{["sticky"]:!0}},M?ma("calcite-filter",{"aria-label":R,data:S,dir:k(Y),disabled:H||y,onCalciteFilterChange:O,placeholder:R,ref:ca}):null,ma("slot",{name:"menu-actions"})),H||y?ma("calcite-scrim",{loading:H}):null,d))},yh=class extends HTMLElement{constructor(){super();
this.__registerHost();tb(this);this.calciteListChange=nb(this,"calciteListChange",7);this.multiple=this.loading=this.filterEnabled=this.disabled=!1;this.selectedValues=new Map;this.dataForFilter=[];this.lastSelectedItem=null;this.observer=new MutationObserver(wc.bind(this));this.setFilterEl=d=>{this.filterEl=d};this.deselectSiblingItems=rg.bind(this);this.selectSiblings=sg.bind(this);this.handleFilter=tg.bind(this);this.getItemData=ug.bind(this);this.keyDownHandler=mg.bind(this)}connectedCallback(){this.setUpItems();
this.setUpFilter();this.emitCalciteListChange=da(ng.bind(this),0);this.observer.observe(this.el,{childList:!0,subtree:!0})}disconnectedCallback(){this.observer.disconnect()}calciteListItemRemoveHandler(d){og.call(this,d)}calciteListItemChangeHandler(d){{const {selectedValues:y}=this,{item:H,value:M,selected:S,shiftPressed:O}=d.detail;S?(this.multiple&&O&&this.selectSiblings(H),this.multiple||this.deselectSiblingItems(H),y.set(M,H)):(y.delete(M),this.multiple&&O&&this.selectSiblings(H,!0));this.multiple||
(pc(H,S),S&&u(H));this.lastSelectedItem=H;this.emitCalciteListChange()}}calciteListItemPropsChangeHandler(d){d.stopPropagation();this.setUpFilter()}calciteListItemValueChangeHandler(d){{d.stopPropagation();const y=d.detail.oldValue,H=this.selectedValues;if(H.has(y)){const M=H.get(y);H.delete(y);H.set(d.detail.newValue,M)}}}calciteListFocusOutHandler(d){lg.call(this,d)}setUpItems(){qg.call(this,"calcite-pick-list-item")}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}async getSelectedItems(){return this.selectedValues}async setFocus(d){return pg.call(this,
d)}getIconType(){return this.multiple?Pc.square:Pc.circle}render(){return ma(xh,{onKeyDown:this.keyDownHandler,props:this})}get el(){return this}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-ms-flex-align:stretch;align-items:stretch;background-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;padding-bottom:0;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0}:host([filter-enabled]) header{background-color:var(--calcite-ui-foreground-1);display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:stretch;align-items:stretch;margin-bottom:0.25rem;-webkit-box-shadow:0 1px 0 var(--calcite-ui-border-3);box-shadow:0 1px 0 var(--calcite-ui-border-3)}:host([filter-enabled]) header.sticky{position:-webkit-sticky;position:sticky;top:0;z-index:1}calcite-filter{margin-bottom:1px}:host([loading][disabled]){min-height:2rem}"}},
zh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this)}render(){var d;const {el:y,groupTitle:H,headingLevel:M}=this;var S="rtl"===k(y);S={["container"]:!0,["container--indented"]:null!==m(y,"parent-item"),["calcite--rtl"]:S};const O=null===(d=y.closest("calcite-pick-list"))||void 0===d?void 0:d.headingLevel;d=O?Math.min(Math.max(Math.ceil(O+1),1),6):null;return ma(fc,null,H?ma(Kd,{class:"heading",level:M||d||3},H):null,ma("slot",{name:"parent-item"}),ma("section",{class:S},
ma("slot",null)))}get el(){return this}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{background-color:transparent;display:block;margin-bottom:0.25rem}:host(:last-child){margin-bottom:0}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-ui-text-2);fill:var(--calcite-ui-text-2)}.heading{padding:0;margin:0;font-weight:var(--calcite-font-weight-medium);line-height:1.5}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-spacing-half) var(--calcite-spacing-half)}h1.heading{font-size:var(--calcite-font-size-2)}h2.heading{font-size:var(--calcite-font-size-1)}h3.heading{font-size:var(--calcite-font-size-0)}h4.heading,h5.heading{font-size:var(--calcite-font-size--1)}h3.heading{font-size:var(--calcite-font-size--1);line-height:1.375;color:var(--calcite-ui-text-3);margin:0.5rem 1rem}.container--indented{margin-left:1.5rem}.calcite--rtl.container--indented{margin-left:0;margin-right:1.5rem}"}},
Ah=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteListItemChange=nb(this,"calciteListItemChange",7);this.calciteListItemRemove=nb(this,"calciteListItemRemove",7);this.calciteListItemPropsChange=nb(this,"calciteListItemPropsChange",7);this.calciteListItemValueChange=nb(this,"calciteListItemValueChange",7);this.disableDeselect=this.disabled=!1;this.icon=null;this.selected=this.removable=!1;this.intlRemove="remove";this.pickListClickHandler=d=>{this.disabled||
this.disableDeselect&&this.selected||(this.shiftPressed=d.shiftKey,this.selected=!this.selected)};this.pickListKeyDownHandler=d=>{" "===d.key&&(d.preventDefault(),this.disableDeselect&&this.selected||(this.selected=!this.selected))};this.removeClickHandler=()=>{this.calciteListItemRemove.emit()}}descriptionWatchHandler(){this.calciteListItemPropsChange.emit()}labelWatchHandler(){this.calciteListItemPropsChange.emit()}metadataWatchHandler(){this.calciteListItemPropsChange.emit()}selectedWatchHandler(){this.calciteListItemChange.emit({item:this.el,
value:this.value,selected:this.selected,shiftPressed:this.shiftPressed});this.shiftPressed=!1}valueWatchHandler(d,y){this.calciteListItemValueChange.emit({oldValue:y,newValue:d})}async toggleSelected(d){this.disabled||(this.selected="boolean"===typeof d?d:!this.selected)}async setFocus(){var d;null===(d=this.focusEl)||void 0===d?void 0:d.focus()}renderIcon(){const {icon:d}=this;return d?ma("span",{class:{["icon"]:!0,["icon-dot"]:d===Pc.circle},onClick:this.pickListClickHandler},d===Pc.square?ma("calcite-icon",
{icon:"check",scale:"s"}):null):null}renderRemoveAction(){return this.removable?ma("calcite-action",{class:"remove",icon:"x",onCalciteActionClick:this.removeClickHandler,slot:"actions-end",text:this.intlRemove}):null}renderActionsStart(){const {el:d}=this;return m(d,"actions-start")?ma("div",{class:{["actions"]:!0,["actions--start"]:!0}},ma("slot",{name:"actions-start"})):null}renderActionsEnd(){const {el:d,removable:y}=this;return m(d,"actions-end")||y?ma("div",{class:{["actions"]:!0,["actions--end"]:!0}},
ma("slot",{name:"actions-end"}),this.renderRemoveAction()):null}render(){const {description:d,label:y}=this;return ma(fc,null,this.renderIcon(),this.renderActionsStart(),ma("label",{"aria-label":y,class:"label",onClick:this.pickListClickHandler,onKeyDown:this.pickListKeyDownHandler,ref:H=>this.focusEl=H,tabIndex:0},ma("div",{"aria-checked":this.selected.toString(),class:"text-container",role:"menuitemcheckbox"},ma("span",{class:"title"},y),d?ma("span",{class:"description"},d):null)),this.renderActionsEnd())}get el(){return this}static get watchers(){return{description:["descriptionWatchHandler"],
label:["labelWatchHandler"],metadata:["metadataWatchHandler"],selected:["selectedWatchHandler"],value:["valueWatchHandler"]}}static get style(){return'@charset "UTF-8";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;color:var(--calcite-ui-text-1);-webkit-box-shadow:0 1px 0 var(--calcite-ui-border-3);box-shadow:0 1px 0 var(--calcite-ui-border-3);margin:0;margin-bottom:1px;-webkit-transition:background-color 150ms ease-in-out;transition:background-color 150ms ease-in-out;-webkit-animation:calcite-fade-in 150ms ease-in-out;animation:calcite-fade-in 150ms ease-in-out}:host(:hover){background-color:var(--calcite-ui-foreground-2)}.icon{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;margin-top:0;margin-bottom:0;margin-left:0.5rem;margin-right:0.5rem;opacity:0;cursor:pointer;color:var(--calcite-ui-brand);-ms-flex:0 0 auto;flex:0 0 auto;line-height:0}.icon-dot{width:0.5rem;margin:0.5rem}.icon-dot:before{content:"\u2022"}:host([selected]) .icon{-webkit-transition:opacity 150ms ease-in-out;transition:opacity 150ms ease-in-out;opacity:1}.label{background-color:transparent;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding:0.75rem;-ms-flex-align:center;align-items:center;cursor:pointer;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.label:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.text-container{display:-ms-flexbox;display:flex;overflow:hidden;pointer-events:none;padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.title{font-size:var(--calcite-font-size--2);line-height:1.375;word-wrap:break-word;word-break:break-word;color:var(--calcite-ui-text-1)}.description{color:var(--calcite-ui-text-3);font-family:var(--calcite-code-family);font-size:var(--calcite-font-size--2);line-height:1.375;word-wrap:break-word;word-break:break-word}.actions{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;margin:0;-ms-flex:0 0 auto;flex:0 0 auto}.actions--start~.label{padding-left:0.25rem}.calcite--rtl .actions--start~.label{padding-left:unset;padding-right:0.25rem}'}},
Bh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calcitePopoverClose=nb(this,"calcitePopoverClose",7);this.calcitePopoverOpen=nb(this,"calcitePopoverOpen",7);this.disablePointer=this.disableFlip=this.closeButton=!1;this.offsetDistance=mh;this.offsetSkidding=0;this.open=!1;this.overlayPositioning="absolute";this.placement="auto";this.intlClose="Close";this._referenceElement=this.getReferenceElement();this.guid=`calcite-popover-${c([2,1,1,1,3])}`;this.getId=()=>
this.el.id||this.guid;this.setExpandedAttr=()=>{const {_referenceElement:d,open:y}=this;d&&d.setAttribute("aria-expanded",y.toString())};this.addReferences=()=>{const {_referenceElement:d}=this;if(d){var y=this.getId();d.setAttribute("data-calcite-popover-reference",y);d.setAttribute("aria-controls",y);this.setExpandedAttr()}};this.removeReferences=()=>{const {_referenceElement:d}=this;d&&(d.removeAttribute("data-calcite-popover-reference"),d.removeAttribute("aria-controls"),d.removeAttribute("aria-expanded"))};
this.hide=()=>{this.open=!1}}offsetDistanceOffsetHandler(){this.reposition()}offsetSkiddingHandler(){this.reposition()}openHandler(d){this.reposition();this.setExpandedAttr();d?this.calcitePopoverOpen.emit():this.calcitePopoverClose.emit()}placementHandler(){this.reposition()}referenceElementHandler(){this.removeReferences();this._referenceElement=this.getReferenceElement();this.addReferences();this.createPopper()}componentDidLoad(){this.createPopper();this.addReferences()}disconnectedCallback(){this.removeReferences();
this.destroyPopper()}async reposition(){const {popper:d,el:y,placement:H}=this,M=this.getModifiers();d?nc({el:y,modifiers:M,placement:H,popper:d}):this.createPopper()}async setFocus(d){var y;const {closeButtonEl:H}=this;"close-button"===d&&H?(Jd(H),H.setFocus()):null===(y=this.el)||void 0===y?void 0:y.focus()}async toggle(d=!this.open){this.open=d}getReferenceElement(){const {referenceElement:d,el:y}=this;return("string"===typeof d?v(y,`#${d}`):d)||null}getModifiers(){const {arrowEl:d,flipPlacements:y,
disableFlip:H,disablePointer:M,offsetDistance:S,offsetSkidding:O}=this,R={name:"flip",enabled:!H};y&&(R.options={fallbackPlacements:y});const Y={name:"arrow",enabled:!M};d&&(Y.options={element:d});return[Y,R,{name:"offset",enabled:!0,options:{offset:[O,S]}}]}createPopper(){this.destroyPopper();const {el:d,placement:y,_referenceElement:H,overlayPositioning:M}=this,S=this.getModifiers();this.popper=$b({el:d,modifiers:S,overlayPositioning:M,placement:y,referenceEl:H})}destroyPopper(){const {popper:d}=
this;d&&d.destroy();this.popper=null}renderCloseButton(){const {closeButton:d,intlClose:y}=this;return d?ma("calcite-action",{class:"close-button",onClick:this.hide,ref:H=>this.closeButtonEl=H,text:y},ma("calcite-icon",{icon:"x",scale:"m"})):null}renderHeader(){const {heading:d,headingLevel:y}=this,H=d?ma(Kd,{class:"heading",level:y||2},d):null;return H?ma("div",{class:"header"},H,this.renderCloseButton()):null}render(){const {_referenceElement:d,el:y,heading:H,label:M,open:S,disablePointer:O}=this,
R="rtl"===k(y),Y=d&&S,ca=!Y,pa=O?null:ma("div",{class:"arrow",ref:wa=>this.arrowEl=wa});return ma(Ob,{"aria-hidden":ca.toString(),"aria-label":M,"calcite-hydrated-hidden":ca,id:this.getId(),role:"dialog"},ma("div",{class:{["calcite--rtl"]:R,["calcite-popper-anim"]:!0,["calcite-popper-anim--active"]:Y}},pa,ma("div",{class:{["has-header"]:!!H,["container"]:!0}},this.renderHeader(),ma("div",{class:"content"},ma("slot",null)),H?null:this.renderCloseButton())))}get el(){return this}static get watchers(){return{offsetDistance:["offsetDistanceOffsetHandler"],
offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}static get style(){return'@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0)}.calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}:host([data-popper-placement^\x3dbottom]) .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host([data-popper-placement^\x3dtop]) .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host([data-popper-placement^\x3dleft]) .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host([data-popper-placement^\x3dright]) .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host([data-popper-placement]) .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.arrow,.arrow::before{position:absolute;width:8px;height:8px;z-index:-1}.arrow::before{content:"";-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-popper-placement^\x3dtop]) .arrow{bottom:-4px}:host([data-popper-placement^\x3dbottom]) .arrow{top:-4px}:host([data-popper-placement^\x3dleft]) .arrow{right:-4px}:host([data-popper-placement^\x3dright]) .arrow{left:-4px}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-popper-anim{background-color:var(--calcite-ui-foreground-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);border-radius:0.25rem}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}.header{border-width:0;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-3);border-style:solid;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start}.heading{display:block;-ms-flex:1 1 auto;flex:1 1 auto;font-weight:var(--calcite-font-weight-medium);margin:0;padding-left:1rem;padding-right:1rem;padding-top:0.75rem;padding-bottom:0.75rem;-ms-flex-item-align:center;align-self:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-font-size-0);line-height:1.375;white-space:normal;word-wrap:break-word;word-break:break-word}.container{background-color:var(--calcite-ui-foreground-1);position:relative;display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row;height:100%;color:var(--calcite-ui-text-1);border-radius:0.25rem}.container.has-header{-ms-flex-direction:column;flex-direction:column}.content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-item-align:center;align-self:center;height:100%}.calcite--rtl .close-button{border-radius:0.25rem 0 0 0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}'}},
Ch=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.type="determinate";this.value=0;this.text=null;this.reversed=!1}render(){return ma(fc,null,ma("div",{class:"track"},ma("div",{class:{bar:!0,indeterminate:"indeterminate"===this.type,reversed:this.reversed},style:"determinate"===this.type?{width:`${100*this.value}%`}:{}})),this.text?ma("div",{class:"text"},this.text):null)}get el(){return this}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{position:relative;display:block;width:100%}.track,.bar{position:absolute;top:0;height:2px}.track{z-index:0;width:100%;overflow:hidden;background:var(--calcite-ui-border-3)}.bar{background-color:var(--calcite-ui-brand);z-index:0}.indeterminate{width:20%;-webkit-animation:looping-progress-bar-ani 2200ms linear infinite;animation:looping-progress-bar-ani 2200ms linear infinite}.reversed{animation-direction:reverse}.text{padding-top:1rem;padding-bottom:0;padding-left:0;padding-right:0;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium)}@-webkit-keyframes looping-progress-bar-ani{0%{-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0)}50%{width:40%}100%{-webkit-transform:translate3d(600%, 0, 0);transform:translate3d(600%, 0, 0)}}@keyframes looping-progress-bar-ani{0%{-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0)}50%{width:40%}100%{-webkit-transform:translate3d(600%, 0, 0);transform:translate3d(600%, 0, 0)}}"}},
Dh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.intlLoading="Loading";this.loading=!1}render(){const d=this.loading?ma("calcite-loader",{active:!0,label:this.intlLoading}):null;return ma("div",{class:"scrim"},d)}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;position:absolute;z-index:50;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;width:100%;height:100%;top:0;right:0;bottom:0;left:0}@-webkit-keyframes calcite-scrim-fade-in{0%{--bg-opacity:0}100%{--text-opacity:1}}@keyframes calcite-scrim-fade-in{0%{--bg-opacity:0}100%{--text-opacity:1}}.scrim{display:-ms-flexbox;display:flex;position:absolute;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;top:0;right:0;bottom:0;left:0;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;-webkit-animation:calcite-scrim-fade-in 250ms ease-in-out;animation:calcite-scrim-fade-in 250ms ease-in-out;background-color:var(--calcite-scrim-background)}"}},
Eh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteSelectChange=nb(this,"calciteSelectChange",7);this.disabled=!1;this.scale="m";this.width="auto";this.componentToNativeEl=new Map;this.mutationObserver=new MutationObserver(()=>this.populateInternalSelect());this.handleInternalSelectChange=()=>{this.selectFromNativeOption(this.selectEl.selectedOptions[0]);requestAnimationFrame(()=>this.emitChangeEvent())};this.populateInternalSelect=()=>{const d=Array.from(this.el.children);
this.clearInternalSelect();d.forEach(y=>{var H;return null===(H=this.selectEl)||void 0===H?void 0:H.append(this.toNativeElement(y))})};this.storeSelectRef=d=>{this.selectEl=d;this.populateInternalSelect();this.selectFromNativeOption(this.selectEl.selectedOptions[0])};this.emitChangeEvent=()=>{this.calciteSelectChange.emit()}}connectedCallback(){const {el:d}=this;this.mutationObserver.observe(d,{subtree:!0,childList:!0})}disconnectedCallback(){this.mutationObserver.disconnect()}async setFocus(){u(this.selectEl)}handleOptionOrGroupChange(d){d.stopPropagation();
d=d.target;const y=this.componentToNativeEl.get(d);y&&(this.updateNativeElement(d,y),ud(d)&&d.selected&&this.deselectAllExcept(d))}handleLabelFocus(d){const {requestedInput:y,labelEl:H}=d.detail,{el:M}=this;if(H.contains(M)||y&&y===M.getAttribute("id"))this.setFocus(),d.stopImmediatePropagation()}updateNativeElement(d,y){y.disabled=d.disabled;y.label=d.label;ud(d)&&(y.selected=d.selected,y.value=d.value,y.innerText=d.label)}clearInternalSelect(){this.componentToNativeEl.forEach(d=>d.remove());this.componentToNativeEl.clear()}selectFromNativeOption(d){if(d){var y;
this.componentToNativeEl.forEach((H,M)=>{ud(M)&&H===d&&(M.selected=!0,y=M,this.deselectAllExcept(M))});y&&requestAnimationFrame(()=>this.selectedOption=y)}}toNativeElement(d){if(ud(d)){const y=document.createElement("option");this.updateNativeElement(d,y);this.componentToNativeEl.set(d,y);return y}if("CALCITE-OPTION-GROUP"===d.tagName){const y=document.createElement("optgroup");this.updateNativeElement(d,y);Array.from(d.children).forEach(H=>{H=this.toNativeElement(H);y.append(H);this.componentToNativeEl.set(d,
H)});this.componentToNativeEl.set(d,y);return y}throw Error("unsupported element child provided");}deselectAllExcept(d){this.el.querySelectorAll("calcite-option").forEach(y=>{y!==d&&(y.selected=!1)})}renderChevron(d){return ma("div",{class:{["icon-container"]:!0,["calcite--rtl"]:"rtl"===d}},ma("calcite-icon",{class:"icon",icon:"chevron-down",scale:"s"}))}render(){const d=k(this.el);return ma(fc,null,ma("select",{"aria-label":this.label,class:{["select"]:!0,["calcite--rtl"]:"rtl"===d},disabled:this.disabled,
onChange:this.handleInternalSelectChange,ref:this.storeSelectRef},ma("slot",null)),this.renderChevron(d))}get el(){return this}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:host{--calcite-icon-size:1rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;position:relative;width:var(--select-width)}:host([scale\x3ds]){--calcite-select-font-size:var(--calcite-font-size--2);--calcite-select-spacing:0.25rem 0.5rem}:host([scale\x3dm]){--calcite-select-font-size:var(--calcite-font-size--1);--calcite-select-spacing:0.5rem 0.75rem}:host([scale\x3dl]){--calcite-select-font-size:var(--calcite-font-size-1);--calcite-select-spacing:0.75rem 1rem}:host([width\x3dauto]){width:auto}:host([width\x3dhalf]){width:50%}:host([width\x3dfull]){width:100%}.select{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-style:solid;border-right-width:0;background-color:var(--calcite-ui-foreground-1);border-color:var(--calcite-ui-border-1);border-radius:0;color:var(--calcite-ui-text-2);cursor:pointer;font-family:inherit;margin:0;width:100%;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;font-size:var(--calcite-select-font-size);padding:var(--calcite-select-spacing)}.select:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.select:hover{background-color:var(--calcite-ui-foreground-2)}.select.calcite--rtl{border-right-width:1px;border-color:var(--calcite-ui-border-1);border-right-style:solid}select:disabled{border-color:var(--calcite-ui-border-1);--bg-opacity:1}:host([disabled]){pointer-events:none;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none;opacity:0.5}.icon-container{-ms-flex-align:center;align-items:center;background-color:transparent;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1);border-left-width:0;color:var(--calcite-ui-text-2);display:-ms-flexbox;display:flex;pointer-events:none;position:absolute;right:0;top:0;bottom:0;padding-left:0.5rem;padding-right:0.5rem}.icon-container.calcite--rtl{border-color:var(--calcite-ui-border-1);border-right-width:0;left:0;right:unset;border-left-style:solid}.select:focus~.icon-container{border-color:transparent}"}},
Fh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteSliderChange=nb(this,"calciteSliderChange",7);this.calciteSliderUpdate=nb(this,"calciteSliderUpdate",7);this.disabled=!1;this.min=0;this.max=100;this.value=null;this.snap=!1;this.step=1;this.hasHistogram=!1;this.guid=`calcite-slider-${c([2,1,1,1,3])}`;this.isRange=!1;this.tickValues=[];this.activeProp="value";this.maxValueDragRange=this.minValueDragRange=this.minMaxValueRange=null}histogramWatcher(d){this.hasHistogram=
!!d}componentWillLoad(){this.isRange=!(!this.maxValue&&0!==this.maxValue);this.tickValues=this.generateTickValues();this.value=this.bound(this.value);this.snap&&(this.value=this.getClosestStep(this.value));this.histogram&&(this.hasHistogram=!0);this.emitChange()}componentDidRender(){this.labelHandles&&(this.adjustHostObscuredHandleLabel("value"),this.isRange&&(this.adjustHostObscuredHandleLabel("minValue"),this.precise&&this.isRange&&!this.hasHistogram||this.hyphenateCollidingRangeHandleLabels()));
this.hideObscuredBoundingTickLabels()}render(){const d=this.el.id||this.guid,y=this.minValue||this.min,H=this.maxValue||this.value,M=this.isRange?"maxValue":"value";var S=this[M];const O=`${100*this.getUnitInterval(y)}%`,R=`${100-100*this.getUnitInterval(H)}%`,Y=ma("button",{"aria-label":this.isRange?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":S,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&
this.dragProp===M},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=M,onMouseDown:()=>this.dragStart(M),onTouchStart:Oa=>this.dragStart(M,Oa),ref:Oa=>this.maxHandle=Oa,role:"slider",style:{right:R}},ma("div",{class:"handle"})),ca=ma("button",{"aria-label":this.isRange?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":S,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&
this.dragProp===M},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=M,onMouseDown:()=>this.dragStart(M),onTouchStart:Oa=>this.dragStart(M,Oa),ref:Oa=>this.maxHandle=Oa,role:"slider",style:{right:R}},ma("span",{"aria-hidden":"true",class:"handle__label handle__label--value"},S?S.toLocaleString():S),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--value static"},S?S.toLocaleString():S),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--value transformed"},
S?S.toLocaleString():S),ma("div",{class:"handle"})),pa=ma("button",{"aria-label":this.isRange?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":S,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===M},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=M,onMouseDown:()=>this.dragStart(M),onTouchStart:Oa=>this.dragStart(M,Oa),ref:Oa=>this.maxHandle=
Oa,role:"slider",style:{right:R}},ma("div",{class:"handle"}),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--value"},S?S.toLocaleString():S),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--value static"},S?S.toLocaleString():S),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--value transformed"},S?S.toLocaleString():S)),wa=ma("button",{"aria-label":this.isRange?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,
"aria-valuemin":this.min,"aria-valuenow":S,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===M,"thumb--precise":!0},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=M,onMouseDown:()=>this.dragStart(M),onTouchStart:Oa=>this.dragStart(M,Oa),ref:Oa=>this.maxHandle=Oa,role:"slider",style:{right:R}},ma("div",{class:"handle"}),ma("div",{class:"handle-extension"})),za=ma("button",{"aria-label":this.isRange?this.maxLabel:
this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":S,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===M,"thumb--precise":!0},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=M,onMouseDown:()=>this.dragStart(M),onTouchStart:Oa=>this.dragStart(M,Oa),ref:Oa=>this.maxHandle=Oa,role:"slider",style:{right:R}},ma("div",{class:"handle-extension"}),ma("div",{class:"handle"})),
Fa=ma("button",{"aria-label":this.isRange?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":S,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===M,"thumb--precise":!0},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=M,onMouseDown:()=>this.dragStart(M),onTouchStart:Oa=>this.dragStart(M,Oa),ref:Oa=>this.maxHandle=Oa,role:"slider",style:{right:R}},
ma("span",{"aria-hidden":"true",class:"handle__label handle__label--value"},S?S.toLocaleString():S),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--value static"},S?S.toLocaleString():S),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--value transformed"},S?S.toLocaleString():S),ma("div",{class:"handle"}),ma("div",{class:"handle-extension"}));S=ma("button",{"aria-label":this.isRange?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,
"aria-valuemin":this.min,"aria-valuenow":S,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===M,"thumb--precise":!0},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=M,onMouseDown:()=>this.dragStart(M),onTouchStart:Oa=>this.dragStart(M,Oa),ref:Oa=>this.maxHandle=Oa,role:"slider",style:{right:R}},ma("div",{class:"handle-extension"}),ma("div",{class:"handle"}),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--value"},
S?S.toLocaleString():S),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--value static"},S?S.toLocaleString():S),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--value transformed"},S?S.toLocaleString():S));const Ja=ma("button",{"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp},disabled:this.disabled,
onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onMouseDown:()=>this.dragStart("minValue"),onTouchStart:Oa=>this.dragStart("minValue",Oa),ref:Oa=>this.minHandle=Oa,role:"slider",style:{left:O}},ma("div",{class:"handle"})),Qa=ma("button",{"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp},disabled:this.disabled,
onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onMouseDown:()=>this.dragStart("minValue"),onTouchStart:Oa=>this.dragStart("minValue",Oa),ref:Oa=>this.minHandle=Oa,role:"slider",style:{left:O}},ma("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue"},this.minValue&&this.minValue.toLocaleString()),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue static"},this.minValue&&this.minValue.toLocaleString()),ma("span",{"aria-hidden":"true",
class:"handle__label handle__label--minValue transformed"},this.minValue&&this.minValue.toLocaleString()),ma("div",{class:"handle"})),Wa=ma("button",{"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onMouseDown:()=>this.dragStart("minValue"),
onTouchStart:Oa=>this.dragStart("minValue",Oa),ref:Oa=>this.minHandle=Oa,role:"slider",style:{left:O}},ma("div",{class:"handle"}),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue"},this.minValue&&this.minValue.toLocaleString()),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue static"},this.minValue&&this.minValue.toLocaleString()),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue transformed"},this.minValue&&this.minValue.toLocaleString())),
gb=ma("button",{"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp,"thumb--precise":!0},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onMouseDown:()=>this.dragStart("minValue"),onTouchStart:Oa=>this.dragStart("minValue",Oa),ref:Oa=>this.minHandle=Oa,role:"slider",style:{left:O}},ma("div",
{class:"handle-extension"}),ma("div",{class:"handle"})),fb=ma("button",{"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp,"thumb--precise":!0},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onMouseDown:()=>this.dragStart("minValue"),onTouchStart:Oa=>this.dragStart("minValue",Oa),ref:Oa=>
this.minHandle=Oa,role:"slider",style:{left:O}},ma("div",{class:"handle-extension"}),ma("div",{class:"handle"}),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue"},this.minValue&&this.minValue.toLocaleString()),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue static"},this.minValue&&this.minValue.toLocaleString()),ma("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue transformed"},this.minValue&&this.minValue.toLocaleString()));
return ma(Ob,{id:d},ma("div",{class:{container:!0,"container--range":this.isRange}},this.renderGraph(),ma("div",{class:"track"},ma("div",{class:"track__range",onMouseDown:()=>this.dragStart("minMaxValue"),onTouchStart:Oa=>this.dragStart("minMaxValue",Oa),style:{left:O,right:R}}),ma("div",{class:"ticks"},this.tickValues.map(Oa=>ma("span",{class:{tick:!0,"tick--active":Oa>=y&&Oa<=H},style:{left:`${100*this.getUnitInterval(Oa)}%`}},this.renderTickLabel(Oa))))),!this.precise&&!this.labelHandles&&this.isRange&&
Ja,!this.hasHistogram&&!this.precise&&this.labelHandles&&this.isRange&&Qa,this.precise&&!this.labelHandles&&this.isRange&&gb,this.precise&&this.labelHandles&&this.isRange&&fb,this.hasHistogram&&!this.precise&&this.labelHandles&&this.isRange&&Wa,!this.precise&&!this.labelHandles&&Y,!this.hasHistogram&&!this.precise&&this.labelHandles&&ca,!this.hasHistogram&&this.precise&&!this.labelHandles&&wa,this.hasHistogram&&this.precise&&!this.labelHandles&&za,!this.hasHistogram&&this.precise&&this.labelHandles&&
Fa,this.hasHistogram&&!this.precise&&this.labelHandles&&pa,this.hasHistogram&&this.precise&&this.labelHandles&&S))}renderGraph(){return this.histogram?ma("div",{class:"graph"},ma("calcite-graph",{data:this.histogram,height:48,highlightMax:this.isRange?this.maxValue:this.value,highlightMin:this.isRange?this.minValue:this.min,width:300})):null}renderTickLabel(d){const y=d===this.min,H=d===this.max;d=ma("span",{class:{tick__label:!0,"tick__label--min":y,"tick__label--max":H}},d.toLocaleString());return this.labelTicks&&
!this.hasHistogram&&!this.isRange||this.labelTicks&&!this.hasHistogram&&this.isRange&&!this.precise&&!this.labelHandles||this.labelTicks&&!this.hasHistogram&&this.isRange&&!this.precise&&this.labelHandles||this.labelTicks&&!this.hasHistogram&&this.isRange&&this.precise&&(y||H)||this.labelTicks&&this.hasHistogram&&!this.precise&&!this.labelHandles||this.labelTicks&&this.hasHistogram&&this.precise&&!this.labelHandles&&(y||H)||this.labelTicks&&this.hasHistogram&&!this.precise&&this.labelHandles&&(y||
H)||this.labelTicks&&this.hasHistogram&&this.precise&&this.labelHandles&&(y||H)?d:null}handleLabelFocus(d){d.detail.interactedEl!==this.el&&d.detail.labelEl.contains(this.el)&&this.setFocus()}keyDownHandler(d){const y=this[this.activeProp];switch(b(d.key)){case "ArrowUp":case "ArrowRight":d.preventDefault();this[this.activeProp]=this.bound(y+this.step,this.activeProp);this.emitChange();break;case "ArrowDown":case "ArrowLeft":d.preventDefault();this[this.activeProp]=this.bound(y-this.step,this.activeProp);
this.emitChange();break;case "PageUp":this.pageStep&&(d.preventDefault(),this[this.activeProp]=this.bound(y+this.pageStep,this.activeProp),this.emitChange());break;case "PageDown":this.pageStep&&(d.preventDefault(),this[this.activeProp]=this.bound(y-this.pageStep,this.activeProp),this.emitChange());break;case "Home":d.preventDefault();this[this.activeProp]=this.bound(this.min,this.activeProp);this.emitChange();break;case "End":d.preventDefault(),this[this.activeProp]=this.bound(this.max,this.activeProp),
this.emitChange()}}mouseHandler(d){const y=this.translate(d.clientX||d.pageX);let H="value";this.isRange&&(H=y>=this.minValue&&y<=this.maxValue&&"minMaxValue"===this.lastDragProp?"minMaxValue":Math.abs(this.maxValue-y)<Math.abs(this.minValue-y)?"maxValue":"minValue");this[H]=this.bound(y,H);this.dragStart(H);if("click"===d.type)switch(this.dragEnd(),this.emitChange(),H){default:case "maxValue":this.maxHandle.focus();break;case "minValue":this.minHandle.focus();case "minMaxValue":}}async setFocus(){(this.minHandle?
this.minHandle:this.maxHandle).focus()}generateTickValues(){const d=[];let y=this.min;for(;this.ticks&&y<this.max+this.ticks;)d.push(y),y+=this.ticks;return d}dragStart(d,y){y&&y.preventDefault();this.dragListener&&this.dragEnd();this.activeProp=this.lastDragProp=this.dragProp=d;this.dragListener=this.dragListener||this.dragUpdate.bind(this);document.addEventListener("mousemove",this.dragListener);document.addEventListener("touchmove",this.dragListener,{capture:!1});document.addEventListener("mouseup",
this.dragEnd.bind(this));document.addEventListener("touchend",this.dragEnd.bind(this),!1);document.addEventListener("touchcancel",this.dragEnd.bind(this))}dragUpdate(d){d.preventDefault();d.stopPropagation();if(this.dragProp){var y=this.translate(d.clientX||d.pageX);this.isRange&&"minMaxValue"===this.dragProp?this.minValueDragRange&&this.maxValueDragRange&&this.minMaxValueRange?(d=y-this.minValueDragRange,y+=this.maxValueDragRange,y<=this.max&&d>=this.min&&y-d===this.minMaxValueRange&&(this.minValue=
this.bound(d,"minValue"),this.maxValue=this.bound(y,"maxValue"))):(this.minValueDragRange=y-this.minValue,this.maxValueDragRange=this.maxValue-y,this.minMaxValueRange=this.maxValue-this.minValue):this[this.dragProp]=this.bound(y,this.dragProp);this.emitChange()}}emitChange(){this.calciteSliderChange.emit();this.calciteSliderUpdate.emit()}dragEnd(){this.dragProp=null;document.removeEventListener("mousemove",this.dragListener);document.removeEventListener("touchmove",this.dragListener);this.minMaxValueRange=
this.maxValueDragRange=this.minValueDragRange=null}bound(d,y){d=Math.min(d,this.max);d=Math.max(d,this.min);"maxValue"===y&&(d=Math.max(d,this.minValue));"minValue"===y&&(d=Math.min(d,this.maxValue));return d}translate(d){const y=this.max-this.min,{left:H,width:M}=this.el.getBoundingClientRect();d=this.bound(this.min+(d-H)/M*y);this.snap&&this.step&&(d=this.getClosestStep(d));return d}getClosestStep(d){d=this.bound(d);this.step&&(d=this.bound(Math.round(d/this.step)*this.step));return d}getFontSizeForElement(d){return Number(window.getComputedStyle(d).getPropertyValue("font-size").match(/\d+/)[0])}getUnitInterval(d){d=
this.bound(d);return(d-this.min)/(this.max-this.min)}adjustHostObscuredHandleLabel(d){const y=this.el.shadowRoot.querySelector(`.handle__label--${d}`);var H=this.el.shadowRoot.querySelector(`.handle__label--${d}.static`);d=this.el.shadowRoot.querySelector(`.handle__label--${d}.transformed`);H=this.getHostOffset(H.getBoundingClientRect().left,H.getBoundingClientRect().right);y.style.transform=`translateX(${H}px)`;d.style.transform=`translateX(${H}px)`}hyphenateCollidingRangeHandleLabels(){const d=
this.el.shadowRoot.querySelector(".handle__label--minValue");var y=this.el.shadowRoot.querySelector(".handle__label--minValue.static");const H=this.el.shadowRoot.querySelector(".handle__label--minValue.transformed");var M=this.getHostOffset(y.getBoundingClientRect().left,y.getBoundingClientRect().right);y=this.el.shadowRoot.querySelector(".handle__label--value");var S=this.el.shadowRoot.querySelector(".handle__label--value.static");const O=this.el.shadowRoot.querySelector(".handle__label--value.transformed");
var R=this.getHostOffset(S.getBoundingClientRect().left,S.getBoundingClientRect().right);S=this.getFontSizeForElement(d);var Y=this.getRangeLabelOverlap(H,O);if(0<Y)if(d.classList.add("hyphen"),0===R&&0===M){M=Y/2-S/2;M=-1===Math.sign(M)?Math.abs(M):-M;R=this.getHostOffset(H.getBoundingClientRect().left+M-S/2,H.getBoundingClientRect().right+M-S/2);Y/=2;const ca=this.getHostOffset(O.getBoundingClientRect().left+Y,O.getBoundingClientRect().right+Y);0!==R&&(M+=R,Y+=R);0!==ca&&(M+=ca,Y+=ca);d.style.transform=
`translateX(${M}px)`;H.style.transform=`translateX(${M-S/2}px)`;y.style.transform=`translateX(${Y}px)`;O.style.transform=`translateX(${Y}px)`}else 0===M||0!==Math.sign(R)&&1!==Math.sign(R)?0!==R&&(y=Math.abs(M)+Y-S/2,y=-1===Math.sign(y)?Math.abs(y):-y,d.style.transform=`translateX(${y}px)`,H.style.transform=`translateX(${y-S/2}px)`):(d.style.transform=`translateX(${M+S/2}px)`,y.style.transform=`translateX(${Y+R}px)`,O.style.transform=`translateX(${Y+R}px)`);else d.classList.remove("hyphen"),d.style.transform=
`translateX(${M}px)`,H.style.transform=`translateX(${M}px)`,y.style.transform=`translateX(${R}px)`,O.style.transform=`translateX(${R}px)`}hideObscuredBoundingTickLabels(){if(this.hasHistogram||this.isRange||this.labelHandles||this.precise)if(this.hasHistogram||this.isRange||!this.labelHandles||this.precise)if(this.hasHistogram||this.isRange||this.labelHandles||!this.precise)if(this.hasHistogram||this.isRange||!this.labelHandles||!this.precise)if(this.hasHistogram||!this.isRange||this.precise)if(!this.hasHistogram||
this.precise||this.labelHandles){var d=this.el.shadowRoot.querySelector(".thumb--minValue"),y=this.el.shadowRoot.querySelector(".thumb--value"),H=this.el.shadowRoot.querySelector(".tick__label--min"),M=this.el.shadowRoot.querySelector(".tick__label--max");!d&&y&&H&&M&&(this.isMinTickLabelObscured(H,y)?H.style.opacity="0":H.style.opacity="1",this.isMaxTickLabelObscured(M,y)?M.style.opacity="0":M.style.opacity="1");d&&y&&H&&M&&(this.isMinTickLabelObscured(H,d)||this.isMinTickLabelObscured(H,y)?H.style.opacity=
"0":H.style.opacity="1",this.isMaxTickLabelObscured(M,d)||this.isMaxTickLabelObscured(M,y)&&this.hasHistogram?M.style.opacity="0":M.style.opacity="1")}}getHostOffset(d,y){const H=this.el.getBoundingClientRect();return d+7<H.left?H.left-d-7:y-7>H.right?-(y-H.right)+7:0}getRangeLabelOverlap(d,y){var H=d.getBoundingClientRect();y=y.getBoundingClientRect();d=this.getFontSizeForElement(d);H=H.right+d-y.left;return 0<H?H:0}isMinTickLabelObscured(d,y){d=d.getBoundingClientRect();return y.getBoundingClientRect().left<
d.right?!0:!1}isMaxTickLabelObscured(d,y){d=d.getBoundingClientRect();return y.getBoundingClientRect().right>d.left?!0:!1}get el(){return this}static get watchers(){return{histogram:["histogramWatcher"]}}static get style(){return'@charset "UTF-8";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}.container{display:block;padding:7px 0;margin:7px 0;position:relative}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}:host([disabled]) .graph .graph-path--highlight{fill:var(--calcite-ui-text-3)}:host([label-handles]) .container,:host([precise]:not([precise\x3dfalse])) .container{margin-top:21px}:host([label-ticks]),:host([precise]:not([precise\x3dfalse])) .container--range{margin-bottom:21px}:host([precise]:not([precise\x3dfalse])[label-handles]) .container{margin-top:35px}:host([precise]:not([precise\x3dfalse])[label-handles]) .container--range{margin-bottom:35px}.thumb{position:absolute;border:none;background:transparent;cursor:pointer;font-family:inherit;z-index:2;outline:none;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-webkit-transform:translate(7px, -8px);transform:translate(7px, -8px)}.thumb .handle__label{font-size:0.75rem;line-height:1.5;font-weight:500;line-height:1;color:var(--calcite-ui-text-2);margin-bottom:5px}.thumb .handle__label.static,.thumb .handle__label.transformed{opacity:0;position:absolute;top:0;bottom:0}.thumb .handle__label--minValue.hyphen::after{content:"\u2014";display:inline-block;width:1em}.thumb .handle{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;height:14px;width:14px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:100%;background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border 0.25s ease, background-color 0.25s ease, -webkit-box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, -webkit-box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, -webkit-box-shadow 0.25s ease}.thumb .handle-extension{width:2px;height:7px;background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px;outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb--minValue{-webkit-transform:translate(-7px, -8px);transform:translate(-7px, -8px)}:host([label-handles]) .thumb{-webkit-transform:translate(50%, -25px);transform:translate(50%, -25px)}:host([label-handles]) .thumb--minValue{-webkit-transform:translate(-50%, -25px);transform:translate(-50%, -25px)}:host([has-histogram][label-handles]) .thumb{-webkit-transform:translate(50%, -8px);transform:translate(50%, -8px)}:host([has-histogram][label-handles]) .thumb .handle__label{margin-bottom:unset;margin-top:5px}:host([has-histogram][label-handles]) .thumb--minValue{-webkit-transform:translate(-50%, -8px);transform:translate(-50%, -8px)}:host([precise]:not([precise\x3dfalse])) .thumb{-webkit-transform:translate(7px, -21px);transform:translate(7px, -21px)}:host([precise]:not([precise\x3dfalse])) .thumb--minValue{-webkit-transform:translate(-7px, -2px);transform:translate(-7px, -2px)}:host([precise]:not([precise\x3dfalse])) .thumb--minValue .handle__label{margin-bottom:unset;margin-top:5px}:host([has-histogram][precise]:not([precise\x3dfalse])) .thumb{-webkit-transform:translate(7px, -2px);transform:translate(7px, -2px)}:host([has-histogram][precise]:not([precise\x3dfalse])) .thumb--minValue{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}:host([ticks][precise]:not([precise\x3dfalse])) .thumb{-webkit-transform:translate(7px, -20px);transform:translate(7px, -20px)}:host([ticks][precise]:not([precise\x3dfalse])) .thumb--minValue{-webkit-transform:translate(-7px, -3px);transform:translate(-7px, -3px)}:host([has-histogram][ticks][precise]:not([precise\x3dfalse])) .thumb{-webkit-transform:translate(7px, -3px);transform:translate(7px, -3px)}:host([has-histogram][ticks][precise]:not([precise\x3dfalse])) .thumb--minValue{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}:host([label-handles][precise]:not([precise\x3dfalse])) .thumb{-webkit-transform:translate(50%, -38px);transform:translate(50%, -38px)}:host([label-handles][precise]:not([precise\x3dfalse])) .thumb--minValue{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}:host([has-histogram][label-handles][precise]:not([precise\x3dfalse])) .thumb{-webkit-transform:translate(50%, -2px);transform:translate(50%, -2px)}:host([has-histogram][label-handles][precise]:not([precise\x3dfalse])) .thumb--minValue{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}:host([ticks][label-handles][precise]:not([precise\x3dfalse])) .thumb{-webkit-transform:translate(50%, -37px);transform:translate(50%, -37px)}:host([ticks][label-handles][precise]:not([precise\x3dfalse])) .thumb--minValue{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}:host([has-histogram][ticks][label-handles][precise]:not([precise\x3dfalse])) .thumb{-webkit-transform:translate(50%, -3px);transform:translate(50%, -3px)}:host([has-histogram][ticks][label-handles][precise]:not([precise\x3dfalse])) .thumb--minValue{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}.thumb:focus,.thumb--active{z-index:3}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{height:2px;border-radius:0;z-index:1;background-color:var(--calcite-ui-border-2);-webkit-transition:all 250ms ease-in;transition:all 250ms ease-in;position:relative}.track__range{position:absolute;top:0;height:2px;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{content:"";position:absolute;top:-5px;width:100%;height:14px}.tick{position:absolute;top:-2px;width:2px;height:4px;left:var(--calcite-ui-border-1-offset);margin-left:-2px;border:1px solid var(--calcite-ui-foreground-1);background-color:var(--calcite-ui-border-1)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{position:absolute;font-size:0.75rem;line-height:1.5;font-weight:500;color:var(--calcite-ui-text-2);width:4em;margin:14px -2em;text-align:center;display:block;pointer-events:none}.tick__label--min{left:0;margin:14px -3px;text-align:left;-webkit-transition:opacity 150ms;transition:opacity 150ms}.tick__label--max{left:unset;right:0;margin:14px -3px;text-align:right;-webkit-transition:opacity 50ms;transition:opacity 50ms}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max{margin:6px -3px;font-weight:300;color:var(--calcite-ui-text-3)}:host([has-histogram][precise]:not([precise\x3dfalse])) .tick__label--min,:host([has-histogram][precise]:not([precise\x3dfalse])) .tick__label--max{margin:6px -3px;font-weight:300;color:var(--calcite-ui-text-3)}.graph{width:100%;height:48px;position:relative;color:var(--calcite-ui-foreground-2)}.graph svg{position:absolute;width:100%;height:48px}.graph .graph-path--highlight{fill:var(--calcite-ui-brand);opacity:0.25}'}};
var ic=hc(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),dd=hc(/Edge/i),Cf=hc(/firefox/i),fd=hc(/safari/i)&&!hc(/chrome/i)&&!hc(/android/i),nd=hc(/iP(ad|od|hone)/i),Gh=hc(/chrome/i)&&hc(/android/i),De={capture:!1,passive:!1},Ee=/\s+/g,bd,Wb="Sortable"+(new Date).getTime(),Qc=[],me={initializeByDefault:!0},ed={mount:function(d){for(var y in me)!me.hasOwnProperty(y)||y in d||(d[y]=me[y]);Qc.forEach(function(H){if(H.pluginName===d.pluginName)throw"Sortable: Cannot mount plugin ".concat(d.pluginName,
" more than once");});Qc.push(d)},pluginEvent:function(d,y,H){var M=this;this.eventCanceled=!1;H.cancel=function(){M.eventCanceled=!0};var S=d+"Global";Qc.forEach(function(O){if(y[O.pluginName]){if(y[O.pluginName][S])y[O.pluginName][S](qc({sortable:y},H));if(y.options[O.pluginName]&&y[O.pluginName][d])y[O.pluginName][d](qc({sortable:y},H))}})},initializePlugins:function(d,y,H,M){Qc.forEach(function(O){var R=O.pluginName;if(d.options[R]||O.initializeByDefault)O=new O(d,y,d.options),O.sortable=d,O.options=
d.options,d[R]=O,gc(H,O.defaults)});for(var S in d.options)d.options.hasOwnProperty(S)&&(M=this.modifyOption(d,S,d.options[S]),"undefined"!==typeof M&&(d.options[S]=M))},getEventProperties:function(d,y){var H={};Qc.forEach(function(M){"function"===typeof M.eventProperties&&gc(H,M.eventProperties.call(y[M.pluginName],d))});return H},modifyOption:function(d,y,H){var M;Qc.forEach(function(S){d[S.pluginName]&&S.optionListeners&&"function"===typeof S.optionListeners[y]&&(M=S.optionListeners[y].call(d[S.pluginName],
H))});return M}},Rb=function(d,y){var H=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},M=H.evt;H=vg(H,["evt"]);ed.pluginEvent.bind(eb)(d,y,qc({dragEl:Sa,parentEl:Db,ghostEl:ib,rootEl:yb,nextEl:Bc,lastDownEl:Md,cloneEl:zb,cloneHidden:tc,dragStarted:od,putSortable:Hb,activeSortable:eb.active,originalEvent:M,oldIndex:Gc,oldDraggableIndex:cd,newIndex:Vb,newDraggableIndex:sc,hideGhostForTarget:Df,unhideGhostForTarget:Ef,cloneNowHidden:function(){tc=!0},cloneNowShown:function(){tc=!1},dispatchSortableEvent:function(S){Nb({sortable:y,
name:S,originalEvent:M})}},H))},Sa,Db,ib,yb,Bc,Md,zb,tc,Gc,Vb,cd,sc,Nd,Hb,Rc=!1,Od=!1,xd=[],Cc,dc,ne,oe,Ff,Gf,od,Sc,hd,gd=!1,Pd=!1,yd,Lb,pe=[],be=!1,zd=[],Qd="undefined"!==typeof document,Hf=dd||ic?"cssFloat":"float",yg=Qd&&!Gh&&!nd&&"draggable"in document.createElement("div"),If=function(){if(Qd){if(ic)return!1;var d=document.createElement("x");d.style.cssText="pointer-events:auto";return"auto"===d.style.pointerEvents}}(),Le=function(d,y){var H=cb(d),M=parseInt(H.width)-parseInt(H.paddingLeft)-parseInt(H.paddingRight)-
parseInt(H.borderLeftWidth)-parseInt(H.borderRightWidth),S=wd(d,0,y);d=wd(d,1,y);var O=S&&cb(S);y=d&&cb(d);var R=O&&parseInt(O.marginLeft)+parseInt(O.marginRight)+Gb(S).width,Y=y&&parseInt(y.marginLeft)+parseInt(y.marginRight)+Gb(d).width;return"flex"===H.display?"column"===H.flexDirection||"column-reverse"===H.flexDirection?"vertical":"horizontal":"grid"===H.display?1>=H.gridTemplateColumns.split(" ").length?"vertical":"horizontal":S&&O["float"]&&"none"!==O["float"]?(H="left"===O["float"]?"left":
"right",!d||"both"!==y.clear&&y.clear!==H?"horizontal":"vertical"):S&&("block"===O.display||"flex"===O.display||"table"===O.display||"grid"===O.display||R>=M&&"none"===H[Hf]||d&&"none"===H[Hf]&&R+Y>M)?"vertical":"horizontal"},Hh=function(d,y,H){var M=H?d.left:d.top,S=H?d.right:d.bottom;d=H?d.width:d.height;var O=H?y.left:y.top,R=H?y.right:y.bottom;y=H?y.width:y.height;return M===O||S===R||M+d/2===O+y/2},Ih=function(d,y){var H;xd.some(function(M){if(!Yd(M)){var S=Gb(M),O=M[Wb].options.emptyInsertThreshold,
R=d>=S.left-O&&d<=S.right+O;S=y>=S.top-O&&y<=S.bottom+O;if(O&&R&&S)return H=M}});return H},Me=function(d){function y(S,O){return function(R,Y,ca,pa){var wa=R.options.group.name&&Y.options.group.name&&R.options.group.name===Y.options.group.name;if(null==S&&(O||wa))return!0;if(null==S||!1===S)return!1;if(O&&"clone"===S)return S;if("function"===typeof S)return y(S(R,Y,ca,pa),O)(R,Y,ca,pa);R=(O?R:Y).options.group.name;return!0===S||"string"===typeof S&&S===R||S.join&&-1<S.indexOf(R)}}var H={},M=d.group;
M&&"object"==Xd(M)||(M={name:M});H.name=M.name;H.checkPull=y(M.pull,!0);H.checkPut=y(M.put);H.revertClone=M.revertClone;d.group=H},Df=function(){!If&&ib&&cb(ib,"display","none")},Ef=function(){!If&&ib&&cb(ib,"display","")};Qd&&document.addEventListener("click",function(d){if(Od)return d.preventDefault(),d.stopPropagation&&d.stopPropagation(),d.stopImmediatePropagation&&d.stopImmediatePropagation(),Od=!1},!0);var Dc=function(d){if(Sa){d=d.touches?d.touches[0]:d;var y=Ih(d.clientX,d.clientY);if(y){var H=
{},M;for(M in d)d.hasOwnProperty(M)&&(H[M]=d[M]);H.target=H.rootEl=y;H.preventDefault=void 0;H.stopPropagation=void 0;y[Wb]._onDragOver(H)}}},Jh=function(d){Sa&&Sa.parentNode[Wb]._isOutsideThisEl(d.target)};eb.prototype={constructor:eb,_isOutsideThisEl:function(d){this.el.contains(d)||d===this.el||(Sc=null)},_getDirection:function(d,y){return"function"===typeof this.options.direction?this.options.direction.call(this,d,y,Sa):this.options.direction},_onTapStart:function(d){if(d.cancelable){var y=this,
H=this.el,M=this.options,S=M.preventOnFilter,O=d.type,R=d.touches&&d.touches[0]||d.pointerType&&"touch"===d.pointerType&&d,Y=(R||d).target,ca=d.target.shadowRoot&&(d.path&&d.path[0]||d.composedPath&&d.composedPath()[0])||Y,pa=M.filter;Dg(H);if(!(Sa||/mousedown|pointerdown/.test(O)&&0!==d.button||M.disabled||ca.isContentEditable||!this.nativeDraggable&&fd&&Y&&"SELECT"===Y.tagName.toUpperCase()||(Y=ec(Y,M.draggable,H,!1),Y&&Y.animated||Md===Y))){Gc=Yb(Y);cd=Yb(Y,M.draggable);if("function"===typeof pa){if(pa.call(this,
d,Y,this)){Nb({sortable:y,rootEl:ca,name:"filter",targetEl:Y,toEl:H,fromEl:H});Rb("filter",y,{evt:d});S&&d.cancelable&&d.preventDefault();return}}else if(pa&&(pa=pa.split(",").some(function(wa){if(wa=ec(ca,wa.trim(),H,!1))return Nb({sortable:y,rootEl:wa,name:"filter",targetEl:Y,fromEl:H,toEl:H}),Rb("filter",y,{evt:d}),!0}))){S&&d.cancelable&&d.preventDefault();return}M.handle&&!ec(ca,M.handle,H,!1)||this._prepareDragStart(d,R,Y)}}},_prepareDragStart:function(d,y,H){var M=this,S=M.el,O=M.options,R=
S.ownerDocument;if(H&&!Sa&&H.parentNode===S){var Y=Gb(H);yb=S;Sa=H;Db=Sa.parentNode;Bc=Sa.nextSibling;Md=H;Nd=O.group;eb.dragged=Sa;Cc={target:Sa,clientX:(y||d).clientX,clientY:(y||d).clientY};Ff=Cc.clientX-Y.left;Gf=Cc.clientY-Y.top;this._lastX=(y||d).clientX;this._lastY=(y||d).clientY;Sa.style["will-change"]="all";H=function(){Rb("delayEnded",M,{evt:d});eb.eventCanceled?M._onDrop():(M._disableDelayedDragEvents(),!Cf&&M.nativeDraggable&&(Sa.draggable=!0),M._triggerDragStart(d,y),Nb({sortable:M,name:"choose",
originalEvent:d}),Ub(Sa,O.chosenClass,!0))};O.ignore.split(",").forEach(function(ca){Fe(Sa,ca.trim(),ae)});sb(R,"dragover",Dc);sb(R,"mousemove",Dc);sb(R,"touchmove",Dc);sb(R,"mouseup",M._onDrop);sb(R,"touchend",M._onDrop);sb(R,"touchcancel",M._onDrop);Cf&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Sa.draggable=!0);Rb("delayStart",this,{evt:d});!O.delay||O.delayOnTouchOnly&&!y||this.nativeDraggable&&(dd||ic)?H():eb.eventCanceled?this._onDrop():(sb(R,"mouseup",M._disableDelayedDrag),
sb(R,"touchend",M._disableDelayedDrag),sb(R,"touchcancel",M._disableDelayedDrag),sb(R,"mousemove",M._delayedDragTouchMoveHandler),sb(R,"touchmove",M._delayedDragTouchMoveHandler),O.supportPointer&&sb(R,"pointermove",M._delayedDragTouchMoveHandler),M._dragStartTimer=setTimeout(H,O.delay))}},_delayedDragTouchMoveHandler:function(d){d=d.touches?d.touches[0]:d;Math.max(Math.abs(d.clientX-this._lastX),Math.abs(d.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&
window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Sa&&ae(Sa);clearTimeout(this._dragStartTimer);this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var d=this.el.ownerDocument;qb(d,"mouseup",this._disableDelayedDrag);qb(d,"touchend",this._disableDelayedDrag);qb(d,"touchcancel",this._disableDelayedDrag);qb(d,"mousemove",this._delayedDragTouchMoveHandler);qb(d,"touchmove",this._delayedDragTouchMoveHandler);qb(d,"pointermove",this._delayedDragTouchMoveHandler)},
_triggerDragStart:function(d,y){y=y||"touch"==d.pointerType&&d;!this.nativeDraggable||y?this.options.supportPointer?sb(document,"pointermove",this._onTouchMove):y?sb(document,"touchmove",this._onTouchMove):sb(document,"mousemove",this._onTouchMove):(sb(Sa,"dragend",this),sb(yb,"dragstart",this._onDragStart));try{document.selection?Ad(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(H){}},_dragStarted:function(d,y){Rc=!1;if(yb&&Sa){Rb("dragStarted",this,{evt:y});
this.nativeDraggable&&sb(document,"dragover",Jh);var H=this.options;!d&&Ub(Sa,H.dragClass,!1);Ub(Sa,H.ghostClass,!0);eb.active=this;d&&this._appendGhost();Nb({sortable:this,name:"start",originalEvent:y})}else this._nulling()},_emulateDragOver:function(){if(dc){this._lastX=dc.clientX;this._lastY=dc.clientY;Df();for(var d=document.elementFromPoint(dc.clientX,dc.clientY),y=d;d&&d.shadowRoot;){d=d.shadowRoot.elementFromPoint(dc.clientX,dc.clientY);if(d===y)break;y=d}Sa.parentNode[Wb]._isOutsideThisEl(d);
if(y){do{if(y[Wb]){var H=void 0;if((H=y[Wb]._onDragOver({clientX:dc.clientX,clientY:dc.clientY,target:d,rootEl:y}))&&!this.options.dragoverBubble)break}d=y}while(y=y.parentNode)}Ef()}},_onTouchMove:function(d){if(Cc){var y=this.options,H=y.fallbackTolerance,M=y.fallbackOffset;y=d.touches?d.touches[0]:d;var S=ib&&Fc(ib,!0),O=ib&&S&&S.a,R=ib&&S&&S.d,Y=nd&&Lb&&He(Lb);O=(y.clientX-Cc.clientX+M.x)/(O||1)+(Y?Y[0]-pe[0]:0)/(O||1);M=(y.clientY-Cc.clientY+M.y)/(R||1)+(Y?Y[1]-pe[1]:0)/(R||1);if(!eb.active&&
!Rc){if(H&&Math.max(Math.abs(y.clientX-this._lastX),Math.abs(y.clientY-this._lastY))<H)return;this._onDragStart(d,!0)}ib&&(S?(S.e+=O-(ne||0),S.f+=M-(oe||0)):S={a:1,b:0,c:0,d:1,e:O,f:M},H="matrix(".concat(S.a,",").concat(S.b,",").concat(S.c,",").concat(S.d,",").concat(S.e,",").concat(S.f,")"),cb(ib,"webkitTransform",H),cb(ib,"mozTransform",H),cb(ib,"msTransform",H),cb(ib,"transform",H),ne=O,oe=M,dc=y);d.cancelable&&d.preventDefault()}},_appendGhost:function(){if(!ib){var d=this.options.fallbackOnBody?
document.body:yb,y=Gb(Sa,!0,nd,!0,d),H=this.options;if(nd){for(Lb=d;"static"===cb(Lb,"position")&&"none"===cb(Lb,"transform")&&Lb!==document;)Lb=Lb.parentNode;Lb!==document.body&&Lb!==document.documentElement?(Lb===document&&(Lb=jc()),y.top+=Lb.scrollTop,y.left+=Lb.scrollLeft):Lb=jc();pe=He(Lb)}ib=Sa.cloneNode(!0);Ub(ib,H.ghostClass,!1);Ub(ib,H.fallbackClass,!0);Ub(ib,H.dragClass,!0);cb(ib,"transition","");cb(ib,"transform","");cb(ib,"box-sizing","border-box");cb(ib,"margin",0);cb(ib,"top",y.top);
cb(ib,"left",y.left);cb(ib,"width",y.width);cb(ib,"height",y.height);cb(ib,"opacity","0.8");cb(ib,"position",nd?"absolute":"fixed");cb(ib,"zIndex","100000");cb(ib,"pointerEvents","none");eb.ghost=ib;d.appendChild(ib);cb(ib,"transform-origin",Ff/parseInt(ib.style.width)*100+"% "+Gf/parseInt(ib.style.height)*100+"%")}},_onDragStart:function(d,y){var H=this,M=d.dataTransfer,S=H.options;Rb("dragStart",this,{evt:d});eb.eventCanceled?this._onDrop():(Rb("setupClone",this),eb.eventCanceled||(zb=Ke(Sa),zb.draggable=
!1,zb.style["will-change"]="",this._hideClone(),Ub(zb,this.options.chosenClass,!1),eb.clone=zb),H.cloneId=Ad(function(){Rb("clone",H);eb.eventCanceled||(H.options.removeCloneOnHide||yb.insertBefore(zb,Sa),H._hideClone(),Nb({sortable:H,name:"clone"}))}),!y&&Ub(Sa,S.dragClass,!0),y?(Od=!0,H._loopId=setInterval(H._emulateDragOver,50)):(qb(document,"mouseup",H._onDrop),qb(document,"touchend",H._onDrop),qb(document,"touchcancel",H._onDrop),M&&(M.effectAllowed="move",S.setData&&S.setData.call(H,M,Sa)),
sb(document,"drop",H),cb(Sa,"transform","translateZ(0)")),Rc=!0,H._dragStartId=Ad(H._dragStarted.bind(H,y,d)),sb(document,"selectstart",H),od=!0,fd&&cb(document.body,"user-select","none"))},_onDragOver:function(d){function y(Qb,lc){Rb(Qb,Wa,qc({evt:d,isOwner:Fa,axis:fb?"vertical":"horizontal",revert:ca,dragRect:Oa,targetRect:Y,canSort:Ja,fromSortable:Qa,target:R,completed:M,onMove:function(Oc,md){return $d(yb,O,Sa,Oa,Oc,Gb(Oc),d,md)},changed:S},lc))}function H(){y("dragOverAnimationCapture");Wa.captureAnimationState();
Wa!==Qa&&Qa.captureAnimationState()}function M(Qb){y("dragOverCompleted",{insertion:Qb});Qb&&(Fa?za._hideClone():za._showClone(Wa),Wa!==Qa&&(Ub(Sa,Hb?Hb.options.ghostClass:za.options.ghostClass,!1),Ub(Sa,pa.ghostClass,!0)),Hb!==Wa&&Wa!==eb.active?Hb=Wa:Wa===eb.active&&Hb&&(Hb=null),Qa===Wa&&(Wa._ignoreWhileAnimating=R),Wa.animateAll(function(){y("dragOverAnimationComplete");Wa._ignoreWhileAnimating=null}),Wa!==Qa&&(Qa.animateAll(),Qa._ignoreWhileAnimating=null));if(R===Sa&&!Sa.animated||R===O&&!R.animated)Sc=
null;pa.dragoverBubble||d.rootEl||R===document||(Sa.parentNode[Wb]._isOutsideThisEl(d.target),!Qb&&Dc(d));!pa.dragoverBubble&&d.stopPropagation&&d.stopPropagation();return gb=!0}function S(){Vb=Yb(Sa);sc=Yb(Sa,pa.draggable);Nb({sortable:Wa,name:"change",toEl:O,newIndex:Vb,newDraggableIndex:sc,originalEvent:d})}var O=this.el,R=d.target,Y,ca,pa=this.options,wa=pa.group,za=eb.active,Fa=Nd===wa,Ja=pa.sort,Qa=Hb||za,Wa=this,gb=!1;if(!be){void 0!==d.preventDefault&&d.cancelable&&d.preventDefault();R=ec(R,
pa.draggable,O,!0);y("dragOver");if(eb.eventCanceled)return gb;if(Sa.contains(d.target)||R.animated&&R.animatingX&&R.animatingY||Wa._ignoreWhileAnimating===R)return M(!1);Od=!1;if(za&&!pa.disabled&&(Fa?Ja||(ca=!yb.contains(Sa)):Hb===this||(this.lastPutMode=Nd.checkPull(this,za,Sa,d))&&wa.checkPut(this,za,Sa,d))){var fb="vertical"===this._getDirection(d,R);var Oa=Gb(Sa);y("dragOverValid");if(eb.eventCanceled)return gb;if(ca)return Db=yb,H(),this._hideClone(),y("revert"),eb.eventCanceled||(Bc?yb.insertBefore(Sa,
Bc):yb.appendChild(Sa)),M(!0);wa=Yd(O,pa.draggable);if(!wa||Ag(d,fb,this)&&!wa.animated){if(wa===Sa)return M(!1);wa&&O===d.target&&(R=wa);R&&(Y=Gb(R));if(!1!==$d(yb,O,Sa,Oa,R,Y,d,!!R))return H(),O.appendChild(Sa),Db=O,S(),M(!0)}else if(R.parentNode===O){Y=Gb(R);var hb=0;hb=Sa.parentNode!==O;var db=!Hh(Sa.animated&&Sa.toRect||Oa,R.animated&&R.toRect||Y,fb);wa=fb?"top":"left";var Eb=Ge(R,"top","top")||Ge(Sa,"top","top"),Pb=Eb?Eb.scrollTop:void 0;if(Sc!==R){var Kb=Y[wa];gd=!1;Pd=!db&&pa.invertSwap||
hb}hb=Bg(d,R,Y,fb,db?1:pa.swapThreshold,null==pa.invertedSwapThreshold?pa.swapThreshold:pa.invertedSwapThreshold,Pd,Sc===R);if(0!==hb){db=Yb(Sa);do{db-=hb;var Fb=Db.children[db]}while(Fb&&("none"===cb(Fb,"display")||Fb===ib))}if(0===hb||Fb===R)return M(!1);Sc=R;hd=hb;Fb=R.nextElementSibling;db=!1;db=1===hb;hb=$d(yb,O,Sa,Oa,R,Y,d,db);if(!1!==hb){if(1===hb||-1===hb)db=1===hb;be=!0;setTimeout(zg,30);H();db&&!Fb?O.appendChild(Sa):R.parentNode.insertBefore(Sa,db?Fb:R);Eb&&Je(Eb,0,Pb-Eb.scrollTop);Db=Sa.parentNode;
void 0===Kb||Pd||(yd=Math.abs(Kb-Gb(R)[wa]));S();return M(!0)}}if(O.contains(Sa))return M(!1)}return!1}},_ignoreWhileAnimating:null,_offMoveEvents:function(){qb(document,"mousemove",this._onTouchMove);qb(document,"touchmove",this._onTouchMove);qb(document,"pointermove",this._onTouchMove);qb(document,"dragover",Dc);qb(document,"mousemove",Dc);qb(document,"touchmove",Dc)},_offUpEvents:function(){var d=this.el.ownerDocument;qb(d,"mouseup",this._onDrop);qb(d,"touchend",this._onDrop);qb(d,"pointerup",
this._onDrop);qb(d,"touchcancel",this._onDrop);qb(document,"selectstart",this)},_onDrop:function(d){var y=this.el,H=this.options;Vb=Yb(Sa);sc=Yb(Sa,H.draggable);Rb("drop",this,{evt:d});Db=Sa&&Sa.parentNode;Vb=Yb(Sa);sc=Yb(Sa,H.draggable);if(!eb.eventCanceled&&(gd=Pd=Rc=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),clearTimeout(this.cloneId),clearTimeout(this._dragStartId),this.nativeDraggable&&(qb(document,"drop",this),qb(y,"dragstart",this._onDragStart)),this._offMoveEvents(),
this._offUpEvents(),fd&&cb(document.body,"user-select",""),cb(Sa,"transform",""),d&&(od&&(d.cancelable&&d.preventDefault(),!H.dropBubble&&d.stopPropagation()),ib&&ib.parentNode&&ib.parentNode.removeChild(ib),(yb===Db||Hb&&"clone"!==Hb.lastPutMode)&&zb&&zb.parentNode&&zb.parentNode.removeChild(zb),Sa&&(this.nativeDraggable&&qb(Sa,"dragend",this),ae(Sa),Sa.style["will-change"]="",od&&!Rc&&Ub(Sa,Hb?Hb.options.ghostClass:this.options.ghostClass,!1),Ub(Sa,this.options.chosenClass,!1),Nb({sortable:this,
name:"unchoose",toEl:Db,newIndex:null,newDraggableIndex:null,originalEvent:d}),yb!==Db?(0<=Vb&&(Nb({rootEl:Db,name:"add",toEl:Db,fromEl:yb,originalEvent:d}),Nb({sortable:this,name:"remove",toEl:Db,originalEvent:d}),Nb({rootEl:Db,name:"sort",toEl:Db,fromEl:yb,originalEvent:d}),Nb({sortable:this,name:"sort",toEl:Db,originalEvent:d})),Hb&&Hb.save()):Vb!==Gc&&0<=Vb&&(Nb({sortable:this,name:"update",toEl:Db,originalEvent:d}),Nb({sortable:this,name:"sort",toEl:Db,originalEvent:d})),eb.active)))){if(null==
Vb||-1===Vb)Vb=Gc,sc=cd;Nb({sortable:this,name:"end",toEl:Db,originalEvent:d});this.save()}this._nulling()},_nulling:function(){Rb("nulling",this);yb=Sa=Db=ib=Bc=zb=Md=tc=Cc=dc=od=Vb=sc=Gc=cd=Sc=hd=Hb=Nd=eb.dragged=eb.ghost=eb.clone=eb.active=null;zd.forEach(function(d){d.checked=!0});zd.length=ne=oe=0},handleEvent:function(d){switch(d.type){case "drop":case "dragend":this._onDrop(d);break;case "dragenter":case "dragover":Sa&&(this._onDragOver(d),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),
d.cancelable&&d.preventDefault());break;case "selectstart":d.preventDefault()}},toArray:function(){for(var d=[],y,H=this.el.children,M=0,S=H.length,O=this.options;M<S;M++)y=H[M],ec(y,O.draggable,this.el,!1)&&d.push(y.getAttribute(O.dataIdAttr)||Cg(y));return d},sort:function(d,y){var H={},M=this.el;this.toArray().forEach(function(S,O){O=M.children[O];ec(O,this.options.draggable,M,!1)&&(H[S]=O)},this);y&&this.captureAnimationState();d.forEach(function(S){H[S]&&(M.removeChild(H[S]),M.appendChild(H[S]))});
y&&this.animateAll()},save:function(){var d=this.options.store;d&&d.set&&d.set(this)},closest:function(d,y){return ec(d,y||this.options.draggable,this.el,!1)},option:function(d,y){var H=this.options;if(void 0===y)return H[d];var M=ed.modifyOption(this,d,y);H[d]="undefined"!==typeof M?M:y;"group"===d&&Me(H)},destroy:function(){Rb("destroy",this);var d=this.el;d[Wb]=null;qb(d,"mousedown",this._onTapStart);qb(d,"touchstart",this._onTapStart);qb(d,"pointerdown",this._onTapStart);this.nativeDraggable&&
(qb(d,"dragover",this),qb(d,"dragenter",this));Array.prototype.forEach.call(d.querySelectorAll("[draggable]"),function(y){y.removeAttribute("draggable")});this._onDrop();this._disableDelayedDragEvents();xd.splice(xd.indexOf(this.el),1);this.el=d=null},_hideClone:function(){tc||(Rb("hideClone",this),eb.eventCanceled||(cb(zb,"display","none"),this.options.removeCloneOnHide&&zb.parentNode&&zb.parentNode.removeChild(zb),tc=!0))},_showClone:function(d){"clone"!==d.lastPutMode?this._hideClone():tc&&(Rb("showClone",
this),eb.eventCanceled||(Sa.parentNode!=yb||this.options.group.revertClone?Bc?yb.insertBefore(zb,Bc):yb.appendChild(zb):yb.insertBefore(zb,Sa),this.options.group.revertClone&&this.animate(Sa,zb),cb(zb,"display",""),tc=!1))}};Qd&&sb(document,"touchmove",function(d){(eb.active||Rc)&&d.cancelable&&d.preventDefault()});eb.utils={on:sb,off:qb,css:cb,find:Fe,is:function(d,y){return!!ec(d,y,d,!1)},extend:function(d,y){if(d&&y)for(var H in y)y.hasOwnProperty(H)&&(d[H]=y[H]);return d},throttle:Ie,closest:ec,
toggleClass:Ub,clone:Ke,index:Yb,nextTick:Ad,cancelNextTick:function(d){return clearTimeout(d)},detectDirection:Le,getChild:wd};eb.get=function(d){return d[Wb]};eb.mount=function(){for(var d=arguments.length,y=Array(d),H=0;H<d;H++)y[H]=arguments[H];y[0].constructor===Array&&(y=y[0]);y.forEach(function(M){if(!M.prototype||!M.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(M));M.utils&&(eb.utils=qc({},eb.utils,M.utils));ed.mount(M)})};
eb.create=function(d,y){return new eb(d,y)};eb.version="1.13.0";var Cb=[],pd,qe,re=!1,se,te,Rd,Tc,ue=Ie(function(d,y,H,M){if(y.scroll){var S=(d.touches?d.touches[0]:d).clientX,O=(d.touches?d.touches[0]:d).clientY,R=y.scrollSensitivity,Y=y.scrollSpeed,ca=jc(),pa=!1;if(qe!==H){qe=H;Bd();pd=y.scroll;var wa=y.scrollFn;!0===pd&&(pd=rc(H,!0))}H=0;var za=pd;do{var Fa=za,Ja=Gb(Fa),Qa=Ja.top,Wa=Ja.bottom,gb=Ja.left,fb=Ja.right,Oa=Ja.width;Ja=Ja.height;var hb=void 0,db=void 0,Eb=Fa.scrollWidth,Pb=Fa.scrollHeight;
db=cb(Fa);var Kb=Fa.scrollLeft,Fb=Fa.scrollTop;Fa===ca?(hb=Oa<Eb&&("auto"===db.overflowX||"scroll"===db.overflowX||"visible"===db.overflowX),db=Ja<Pb&&("auto"===db.overflowY||"scroll"===db.overflowY||"visible"===db.overflowY)):(hb=Oa<Eb&&("auto"===db.overflowX||"scroll"===db.overflowX),db=Ja<Pb&&("auto"===db.overflowY||"scroll"===db.overflowY));gb=hb&&(Math.abs(fb-S)<=R&&Kb+Oa<Eb)-(Math.abs(gb-S)<=R&&!!Kb);Qa=db&&(Math.abs(Wa-O)<=R&&Fb+Ja<Pb)-(Math.abs(Qa-O)<=R&&!!Fb);if(!Cb[H])for(Wa=0;Wa<=H;Wa++)Cb[Wa]||
(Cb[Wa]={});if(Cb[H].vx!=gb||Cb[H].vy!=Qa||Cb[H].el!==Fa)if(Cb[H].el=Fa,Cb[H].vx=gb,Cb[H].vy=Qa,clearInterval(Cb[H].pid),0!=gb||0!=Qa)pa=!0,Cb[H].pid=setInterval(function(){M&&0===this.layer&&eb.active._onTouchMove(Rd);var Qb=Cb[this.layer].vy?Cb[this.layer].vy*Y:0,lc=Cb[this.layer].vx?Cb[this.layer].vx*Y:0;"function"===typeof wa&&"continue"!==wa.call(eb.dragged.parentNode[Wb],lc,Qb,d,Rd,Cb[this.layer].el)||Je(Cb[this.layer].el,lc,Qb)}.bind({layer:H}),24);H++}while(y.bubbleScroll&&za!==ca&&(za=rc(za,
!1)));re=pa}},30),Jf=function(d){var y=d.originalEvent,H=d.putSortable,M=d.dragEl,S=d.activeSortable,O=d.dispatchSortableEvent,R=d.hideGhostForTarget;d=d.unhideGhostForTarget;y&&(S=H||S,R(),y=y.changedTouches&&y.changedTouches.length?y.changedTouches[0]:y,y=document.elementFromPoint(y.clientX,y.clientY),d(),S&&!S.el.contains(y)&&(O("spill"),this.onSpill({dragEl:M,putSortable:H})))};ce.prototype={startIndex:null,dragStart:function(d){this.startIndex=d.oldDraggableIndex},onSpill:function(d){var y=d.dragEl;
d=d.putSortable;this.sortable.captureAnimationState();d&&d.captureAnimationState();var H=wd(this.sortable.el,this.startIndex,this.options);H?this.sortable.el.insertBefore(y,H):this.sortable.el.appendChild(y);this.sortable.animateAll();d&&d.animateAll()},drop:Jf};gc(ce,{pluginName:"revertOnSpill"});de.prototype={onSpill:function(d){var y=d.dragEl;d=d.putSortable||this.sortable;d.captureAnimationState();y.parentNode&&y.parentNode.removeChild(y);d.animateAll()},drop:Jf};gc(de,{pluginName:"removeOnSpill"});
eb.mount(new function(){function d(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var y in this)"_"===y.charAt(0)&&"function"===typeof this[y]&&(this[y]=this[y].bind(this))}d.prototype={dragStarted:function(y){y=y.originalEvent;this.sortable.nativeDraggable?sb(document,"dragover",this._handleAutoScroll):this.options.supportPointer?sb(document,"pointermove",this._handleFallbackAutoScroll):y.touches?sb(document,"touchmove",this._handleFallbackAutoScroll):sb(document,
"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(y){y=y.originalEvent;this.options.dragOverBubble||y.rootEl||this._handleAutoScroll(y)},drop:function(){this.sortable.nativeDraggable?qb(document,"dragover",this._handleAutoScroll):(qb(document,"pointermove",this._handleFallbackAutoScroll),qb(document,"touchmove",this._handleFallbackAutoScroll),qb(document,"mousemove",this._handleFallbackAutoScroll));clearInterval(Tc);Bd();clearTimeout(bd);bd=void 0},nulling:function(){Rd=qe=pd=
re=Tc=se=te=null;Cb.length=0},_handleFallbackAutoScroll:function(y){this._handleAutoScroll(y,!0)},_handleAutoScroll:function(y,H){var M=this,S=(y.touches?y.touches[0]:y).clientX,O=(y.touches?y.touches[0]:y).clientY,R=document.elementFromPoint(S,O);Rd=y;if(H||dd||ic||fd){ue(y,this.options,R,H);var Y=rc(R,!0);!re||Tc&&S===se&&O===te||(Tc&&clearInterval(Tc),Tc=setInterval(function(){var ca=rc(document.elementFromPoint(S,O),!0);ca!==Y&&(Y=ca,Bd());ue(y,M.options,ca,H)},10),se=S,te=O)}else this.options.bubbleScroll&&
rc(R,!0)!==jc()?ue(y,this.options,rc(R,!1),!1):Bd()}};return gc(d,{pluginName:"scroll",initializeByDefault:!0})});eb.mount(de,ce);JSON.stringify({display:"flex",flexDirection:"column",flexWrap:"wrap",width:"100%",minWidth:"100%"}).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[,]/g,";").replace(/["{}]/g,"").toLowerCase();const Kh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteSwitchChange=nb(this,"calciteSwitchChange",7);this.disabled=!1;this.scale="m";
this.switched=!1;this.inputEl=document.createElement("input")}disabledWatcher(d){this.tabindex=(this.inputEl.disabled=d)?-1:0}nameChanged(d){this.inputEl.name=d}switchedWatcher(d){this.inputEl.checked=d}async setFocus(){u(this.inputEl)}setupInput(){this.switched&&this.inputEl.setAttribute("checked","");this.inputEl.disabled=this.disabled;this.inputEl.id=`${this.guid}-input`;this.inputEl.name=this.name;this.inputEl.style.cssText="\n  bottom: 0 !important;\n  left: 0 !important;\n  margin: 0 !important;\n  opacity: 0 !important;\n  outline: none !important;\n  padding: 0 !important;\n  position: absolute !important;\n  right: 0 !important;\n  top: 0 !important;\n  transform: none !important;\n  -webkit-appearance: none !important;\n  z-index: -1 !important;\n";
this.inputEl.type="checkbox";this.value&&(this.inputEl.value=null!=this.value?this.value.toString():"");this.el.appendChild(this.inputEl)}toggle(){this.switched=!this.switched;this.calciteSwitchChange.emit({switched:this.switched})}handleLabelFocus(d){this.disabled||this.el.contains(d.detail.interactedEl)||!d.detail.labelEl.contains(this.el)||this.el.focus()}onClick(d){(!this.disabled&&this.el.closest("label")&&d.target===this.inputEl||!this.el.closest("label")&&d.target===this.el)&&this.toggle()}keyDownHandler(d){d=
b(d.key);this.disabled||" "!==d&&"Enter"!==d||this.toggle()}componentWillLoad(){this.guid=this.el.id||`calcite-switch-${c([2,1,1,1,3])}`;this.tabindex=this.el.getAttribute("tabindex")||this.disabled?-1:0;this.setupInput()}render(){const d=k(this.el);return ma(Ob,{tabindex:this.tabindex},ma("div",{"aria-checked":this.switched.toString(),class:{container:!0,["calcite--rtl"]:"rtl"===d}},ma("div",{class:"track"},ma("div",{class:"handle"}))))}get el(){return this}static get watchers(){return{disabled:["disabledWatcher"],
name:["nameChanged"],switched:["switchedWatcher"]}}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale\x3ds]) .track{width:1.5rem;height:0.75rem}:host([scale\x3ds]) .handle{width:0.5rem;height:0.5rem}:host([scale\x3dm]) .track{width:2rem;height:1rem}:host([scale\x3dm]) .handle{width:0.75rem;height:0.75rem}:host([scale\x3dl]) .track{width:3rem;height:1.5rem}:host([scale\x3dl]) .handle{width:1.25rem;height:1.25rem}:host{display:inline-block;position:relative;width:auto;cursor:pointer;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]){opacity:0.5;pointer-events:none;cursor:default}:host{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width:auto}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.track{position:relative;display:inline-block;vertical-align:top;background-color:var(--calcite-ui-foreground-2);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:9999px}.handle{position:absolute;display:block;right:auto;background-color:var(--calcite-ui-foreground-1);border-width:2px;border-style:solid;border-color:var(--calcite-ui-border-input);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:9999px;pointer-events:none;top:-1px;left:-1px}:host(:hover) .handle,:host(:focus) .handle{border-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand);right:auto}:host([switched]) .track{background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-brand)}:host([switched]) .handle{left:auto;border-color:var(--calcite-ui-brand);right:-1px}:host([switched]:hover) .track{background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-brand)}:host([switched]:hover) .handle{border-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}.calcite--rtl .handle{left:auto;right:-1px}:host([switched]) .calcite--rtl .handle{right:auto;left:-1px}:host([switched]:active) .calcite--rtl .handle{right:auto;left:-1px}:host([switched]:focus) .calcite--rtl .handle{right:auto;left:-1px}"}},
Lh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteTabRegister=nb(this,"calciteTabRegister",7);this.active=!1;this.guid=`calcite-tab-title-${c([2,1,1,1,3])}`}render(){return ma(Ob,{"aria-expanded":this.active.toString(),"aria-labelledby":this.labeledBy,id:this.el.id||this.guid,role:"tabpanel"},ma("section",null,ma("slot",null)))}componentDidLoad(){this.calciteTabRegister.emit()}disconnectedCallback(){var d;null===(d=document.body)||void 0===d?void 0:d.dispatchEvent(new CustomEvent("calciteTabUnregister",
{detail:this.el}))}tabChangeHandler(d){d.target.closest("calcite-tabs")===this.el.closest("calcite-tabs")&&(this.tab?this.active=this.tab===d.detail.tab:this.getTabIndex().then(y=>{this.active=y===d.detail.tab}))}async getTabIndex(){return Array.prototype.indexOf.call(g(this.el.parentElement.children).filter(d=>d.matches("calcite-tab")),this.el)}async updateAriaInfo(d=[],y=[]){this.labeledBy=y[d.indexOf(this.el.id)]||null}get el(){return this}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([active]) section{display:block}:host{display:none;z-index:10}:host([active]){display:block}section{height:100%;width:100%;display:none}"}},
Mh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteTabChange=nb(this,"calciteTabChange",7);this.layout="inline";this.position="below";this.animationActiveDuration=.3;this.handleContainerScroll=()=>{this.activeIndicatorEl.style.transitionDuration="0s";this.updateOffsetPosition()}}async selectedTabChanged(){localStorage&&this.storageId&&void 0!==this.selectedTab&&null!==this.selectedTab&&localStorage.setItem(`calcite-tab-nav-${this.storageId}`,JSON.stringify(this.selectedTab));
this.calciteTabChange.emit({tab:this.selectedTab});this.selectedTabEl=await this.getTabTitleById(this.selectedTab)}selectedTabElChanged(){this.updateOffsetPosition();this.updateActiveWidth();this.activeIndicatorEl.style.transitionDuration=`${this.animationActiveDuration}s`}componentWillLoad(){const d=`calcite-tab-nav-${this.storageId}`;localStorage&&this.storageId&&localStorage.getItem(d)&&(this.selectedTab=JSON.parse(localStorage.getItem(d)),this.calciteTabChange.emit({tab:this.selectedTab}))}componentWillRender(){var d,
y;this.layout=null===(d=this.el.closest("calcite-tabs"))||void 0===d?void 0:d.layout;this.position=null===(y=this.el.closest("calcite-tabs"))||void 0===y?void 0:y.position}componentDidRender(){this.tabTitles.length&&this.tabTitles.every(d=>!d.active)&&!this.selectedTab&&this.tabTitles[0].getTabIdentifier().then(d=>{this.calciteTabChange.emit({tab:d})})}render(){const d=k(this.el),y=`${this.indicatorWidth}px`,H=`${this.indicatorOffset}px`;return ma(Ob,{role:"tablist"},ma("div",{class:"tab-nav",onScroll:this.handleContainerScroll,
ref:M=>this.tabNavEl=M},ma("div",{class:"tab-nav-active-indicator-container",ref:M=>this.activeIndicatorContainerEl=M},ma("div",{class:"tab-nav-active-indicator",ref:M=>this.activeIndicatorEl=M,style:"rtl"!==d?{width:y,left:H}:{width:y,right:H}})),ma("slot",null)))}resizeHandler(){this.activeIndicatorEl.style.transitionDuration="0s";this.updateActiveWidth();this.updateOffsetPosition()}focusPreviousTabHandler(d){const y=this.getIndexOfTabTitle(d.target,this.enabledTabTitles);(this.enabledTabTitles[y-
1]||this.enabledTabTitles[this.enabledTabTitles.length-1]).focus();d.stopPropagation();d.preventDefault()}focusNextTabHandler(d){const y=this.getIndexOfTabTitle(d.target,this.enabledTabTitles);(this.enabledTabTitles[y+1]||this.enabledTabTitles[0]).focus();d.stopPropagation();d.preventDefault()}activateTabHandler(d){this.selectedTab=d.detail.tab?d.detail.tab:this.getIndexOfTabTitle(d.target);d.stopPropagation();d.preventDefault()}updateTabTitles(d){d.target.active&&(this.selectedTab=d.detail)}globalTabChangeHandler(d){this.syncId&&
d.target!==this.el&&d.target.syncId===this.syncId&&this.selectedTab!==d.detail.tab&&(this.selectedTab=d.detail.tab)}updateOffsetPosition(){var d,y,H,M,S;const O=k(this.el),R=null===(d=this.activeIndicatorContainerEl)||void 0===d?void 0:d.offsetWidth;d=null===(y=this.selectedTabEl)||void 0===y?void 0:y.offsetLeft;y=null===(H=this.selectedTabEl)||void 0===H?void 0:H.offsetWidth;this.indicatorOffset="rtl"!==O?d-(null===(M=this.tabNavEl)||void 0===M?NaN:M.scrollLeft):R-(d+y)+(null===(S=this.tabNavEl)||
void 0===S?void 0:S.scrollLeft)}updateActiveWidth(){var d;this.indicatorWidth=null===(d=this.selectedTabEl)||void 0===d?void 0:d.offsetWidth}getIndexOfTabTitle(d,y=this.tabTitles){return y.indexOf(d)}async getTabTitleById(d){return Promise.all(this.tabTitles.map(y=>y.getTabIdentifier())).then(y=>this.tabTitles[y.indexOf(d)])}get tabTitles(){return e(this.el,"calcite-tab-title")}get enabledTabTitles(){return e(this.el,"calcite-tab-title:not([disabled])")}get el(){return this}static get watchers(){return{selectedTab:["selectedTabChanged"],
selectedTabEl:["selectedTabElChanged"]}}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{z-index:20;position:relative;display:-ms-flexbox;display:flex}.tab-nav{display:-ms-flexbox;display:flex;width:100%;overflow:auto;-ms-flex-pack:start;justify-content:flex-start;-webkit-overflow-scrolling:touch;padding:0.25rem;margin:-0.25rem}:host([layout\x3dcenter]) .tab-nav{-ms-flex-pack:center;justify-content:center}.tab-nav-active-indicator-container{width:100%;right:0;left:0;bottom:0;position:absolute;overflow:hidden;height:0.125rem}.tab-nav-active-indicator{position:absolute;bottom:0;display:block;-webkit-transition-property:all;transition-property:all;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);background-color:var(--calcite-ui-brand);height:0.125rem}:host([position\x3dbelow]) .tab-nav-active-indicator{bottom:unset;top:0}:host([position\x3dbelow]) .tab-nav-active-indicator-container{bottom:unset;top:0}"}},
Nh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.calciteTabsActivate=nb(this,"calciteTabsActivate",7);this.calciteTabsFocusNext=nb(this,"calciteTabsFocusNext",7);this.calciteTabsFocusPrevious=nb(this,"calciteTabsFocusPrevious",7);this.calciteTabTitleRegister=nb(this,"calciteTabTitleRegister",7);this.hasText=this.disabled=this.active=!1;this.guid=`calcite-tab-title-${c([2,1,1,1,3])}`}connectedCallback(){this.setupTextContentObserver();this.parentTabNavEl=this.el.closest("calcite-tab-nav")}disconnectedCallback(){var d;
this.observer.disconnect();null===(d=document.body)||void 0===d?void 0:d.dispatchEvent(new CustomEvent("calciteTabTitleUnregister",{detail:this.el}))}componentWillLoad(){this.updateHasText();this.tab&&this.active&&this.emitActiveTab()}componentWillRender(){var d,y;this.layout=null===(d=this.el.closest("calcite-tabs"))||void 0===d?void 0:d.layout;this.position=null===(y=this.el.closest("calcite-tabs"))||void 0===y?void 0:y.position}render(){const d=k(this.el),y=this.el.id||this.guid,H=this.disabled?
"span":"a",M=ma("calcite-icon",{class:"calcite-tab-title--icon icon-start",dir:d,flipRtl:"start"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconStart,scale:"s"}),S=ma("calcite-icon",{class:"calcite-tab-title--icon icon-end",dir:d,flipRtl:"end"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconEnd,scale:"s"});return ma(Ob,{"aria-controls":this.controls,"aria-expanded":this.active.toString(),id:y,role:"tab",tabindex:this.disabled?"-1":"0"},ma(H,{class:{container:!0,"container--has-text":this.hasText,
rtl:"rtl"===d}},this.iconStart?M:null,ma("slot",null),this.iconEnd?S:null))}async componentDidLoad(){this.calciteTabTitleRegister.emit(await this.getTabIdentifier())}tabChangeHandler(d){this.parentTabNavEl===d.target&&(this.tab?this.active=this.tab===d.detail.tab:this.getTabIndex().then(y=>{this.active=y===d.detail.tab}))}onClick(){this.emitActiveTab()}keyDownHandler(d){switch(b(d.key)){case " ":case "Enter":this.emitActiveTab();d.preventDefault();break;case "ArrowRight":"ltr"===k(this.el)?this.calciteTabsFocusNext.emit():
this.calciteTabsFocusPrevious.emit();break;case "ArrowLeft":"ltr"===k(this.el)?this.calciteTabsFocusPrevious.emit():this.calciteTabsFocusNext.emit()}}async getTabIndex(){return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-tab-title"),this.el)}async getTabIdentifier(){return this.tab?this.tab:this.getTabIndex()}async updateAriaInfo(d=[],y=[]){this.controls=d[y.indexOf(this.el.id)]||null}updateHasText(){this.hasText=0<this.el.textContent.trim().length}setupTextContentObserver(){this.observer=
new MutationObserver(()=>{this.updateHasText()});this.observer.observe(this.el,{childList:!0,subtree:!0})}emitActiveTab(){this.disabled||this.calciteTabsActivate.emit({tab:this.tab})}get el(){return this}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-ms-flex:0 1 auto;flex:0 1 auto;outline:2px solid transparent;outline-offset:2px;margin-right:1.25rem;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:1.25rem;margin-inline-end:1.25rem}:host([layout\x3dcenter]){text-align:center;margin-top:0;margin-bottom:0;margin-left:1.25rem;margin-right:1.25rem;-ms-flex-preferred-size:12rem;flex-basis:12rem}:host([position\x3dbelow]) a{border-bottom-width:0;border-top-width:2px;border-top-color:transparent;border-top-style:solid}:host a{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus) a{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host(:active) a,:host(:focus) a,:host(:hover) a{text-decoration:none;color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-border-2)}:host([active]) a{color:var(--calcite-ui-text-1);border-color:transparent}:host([disabled]){pointer-events:none}:host([disabled]) span,:host([disabled]) a{pointer-events:none;opacity:0.5}a,span{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom-width:2px;border-bottom-color:transparent;width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;color:var(--calcite-ui-text-3);font-size:var(--calcite-font-size--1);line-height:1rem;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;padding-left:0;padding-right:0;padding-top:0.5rem;padding-bottom:0.5rem;border-bottom-style:solid}span{cursor:default}.calcite-tab-title--icon{display:-ms-inline-flexbox;display:inline-flex;position:relative;margin:0;-ms-flex-item-align:center;align-self:center}.calcite-tab-title--icon svg{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.container--has-text .calcite-tab-title--icon.icon-start{margin-right:0.5rem}.container--has-text .calcite-tab-title--icon.icon-end{margin-left:0.5rem}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{margin-right:0.5rem}:host .rtl{margin-right:0;margin-left:1.25rem}.container--has-text.rtl .calcite-tab-title--icon.icon-end{margin-left:0;margin-right:0.5rem}.container--has-text.rtl .calcite-tab-title--icon.icon-start{margin-left:0.5rem;margin-right:0}:host([icon-start][icon-end]) .rtl .calcite-tab-title--icon:first-child{margin-left:0.5rem;margin-right:0}"}},
Oh=class extends HTMLElement{constructor(){super();this.__registerHost();tb(this);this.layout="inline";this.position="above";this.titles=[];this.tabs=[]}render(){return ma(fc,null,ma("slot",{name:"tab-nav"}),ma("section",null,ma("slot",null)))}calciteTabTitleRegister(d){this.titles=[...this.titles,d.target];this.registryHandler();d.stopPropagation()}calciteTabTitleUnregister(d){this.titles=this.titles.filter(y=>y!==d.detail);this.registryHandler();d.stopPropagation()}calciteTabRegister(d){this.tabs=
[...this.tabs,d.target];this.registryHandler();d.stopPropagation()}calciteTabUnregister(d){this.tabs=this.tabs.filter(y=>y!==d.detail);this.registryHandler();d.stopPropagation()}async registryHandler(){let d,y;if(this.tabs.some(H=>H.tab)||this.titles.some(H=>H.tab))d=this.tabs.sort((H,M)=>H.tab.localeCompare(M.tab)).map(H=>H.id),y=this.titles.sort((H,M)=>H.tab.localeCompare(M.tab)).map(H=>H.id);else{const H=await Promise.all(this.tabs.map(S=>S.getTabIndex())),M=await Promise.all(this.titles.map(S=>
S.getTabIndex()));d=H.reduce((S,O,R)=>{S[O]=this.tabs[R].id;return S},[]);y=M.reduce((S,O,R)=>{S[O]=this.titles[R].id;return S},[])}this.tabs.forEach(H=>H.updateAriaInfo(d,y));this.titles.forEach(H=>H.updateAriaInfo(d,y))}get el(){return this}static get style(){return"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([position\x3dbelow]){-ms-flex-direction:column-reverse;flex-direction:column-reverse}section{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;overflow:hidden;border-top-width:1px;border-top-color:var(--calcite-ui-border-1);border-top-style:solid}:host([position\x3dbelow]) section{-ms-flex-direction:column-reverse;flex-direction:column-reverse;border-top-width:0;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-1);border-bottom-style:solid}"}},
Ph=class extends HTMLElement{constructor(){super();this.__registerHost();this.hoverTimeouts=new WeakMap;this.selector="[data-calcite-tooltip-reference]";this.queryTooltip=d=>{var y;const {selector:H,el:M}=this;d=null===(y=d.closest(H))||void 0===y?void 0:y.getAttribute("data-calcite-tooltip-reference");return v(M,`#${d}`)};this.clearHoverTimeout=d=>{const {hoverTimeouts:y}=this;y.has(d)&&window.clearTimeout(y.get(d))};this.closeExistingTooltip=()=>{const {tooltipEl:d}=this;d&&this.toggleTooltip(d,
!1)};this.focusTooltip=({tooltip:d,value:y})=>{this.closeExistingTooltip();y&&this.clearHoverTimeout(d);this.toggleTooltip(d,y)};this.toggleTooltip=(d,y)=>{if(d.open=y)this.tooltipEl=d};this.hoverToggle=({tooltip:d,value:y})=>{const {hoverTimeouts:H}=this;H.delete(d);y&&this.closeExistingTooltip();this.toggleTooltip(d,y)};this.hoverTooltip=({tooltip:d,value:y})=>{this.clearHoverTimeout(d);const {hoverTimeouts:H}=this,M=window.setTimeout(()=>this.hoverToggle({tooltip:d,value:y}),500);H.set(d,M)};this.activeTooltipHover=
d=>{const {tooltipEl:y,hoverTimeouts:H}=this;y&&H.has(y)&&(d.composedPath().includes(y)?this.clearHoverTimeout(y):this.hoverTooltip({tooltip:y,value:!1}))};this.hoverEvent=(d,y)=>{const H=this.queryTooltip(d.target);this.activeTooltipHover(d);H&&this.hoverTooltip({tooltip:H,value:y})};this.focusEvent=(d,y)=>{(d=this.queryTooltip(d.target))&&d!==this.clickedTooltip?this.focusTooltip({tooltip:d,value:y}):this.clickedTooltip=null}}render(){return ma("slot",null)}keyUpHandler(d){"Escape"===b(d.key)&&
({tooltipEl:d}=this,d&&(this.clearHoverTimeout(d),this.toggleTooltip(d,!1)))}mouseEnterShow(d){this.hoverEvent(d,!0)}mouseLeaveHide(d){this.hoverEvent(d,!1)}clickHandler(d){this.clickedTooltip=this.queryTooltip(d.target)}focusShow(d){this.focusEvent(d,!0)}blurHide(d){this.focusEvent(d,!1)}get el(){return this}};var Kf;(function(d){d.Single="single";d.Multi="multi";d.Children="children";d.MultiChildren="multi-children";d.Ancestors="ancestors"})(Kf||(Kf={}));var Lf;(Lf||(Lf={})).grip="grip";const Qh=
ob(Tg,[1,"calcite-action",{appearance:[513],active:[516],alignment:[513],compact:[516],disabled:[516],icon:[1],indicator:[516],intlLoading:[1,"intl-loading"],label:[1],loading:[516],scale:[513],text:[1],textEnabled:[516,"text-enabled"]}]),Rh=ob(Yg,[1,"calcite-action-bar",{expandDisabled:[516,"expand-disabled"],expanded:[1540],intlExpand:[1,"intl-expand"],intlCollapse:[1,"intl-collapse"],overflowActionsDisabled:[4,"overflow-actions-disabled"],position:[513]}]),Sh=ob(Zg,[1,"calcite-action-group",{expanded:[516],
layout:[513],columns:[514],intlMore:[1,"intl-more"],menuOpen:[1540,"menu-open"]}]),Th=ob($g,[1,"calcite-action-menu",{expanded:[516],flipPlacements:[16],label:[1],open:[1540],overlayPositioning:[1,"overlay-positioning"],placement:[513],scale:[513],activeMenuItemIndex:[32]},[[8,"click","closeCalciteActionMenuOnClick"]]]),Uh=ob(ah,[1,"calcite-action-pad",{expandDisabled:[516,"expand-disabled"],expanded:[1540],layout:[513],intlExpand:[1,"intl-expand"],intlCollapse:[1,"intl-collapse"],position:[513]}]),
Vh=ob(ch,[1,"calcite-block",{collapsible:[4],disabled:[516],dragHandle:[516,"drag-handle"],heading:[1],headingLevel:[2,"heading-level"],intlCollapse:[1,"intl-collapse"],intlExpand:[1,"intl-expand"],intlLoading:[1,"intl-loading"],loading:[516],open:[1540],summary:[1]}]),Wh=ob(dh,[1,"calcite-block-section",{intlCollapse:[1,"intl-collapse"],intlExpand:[1,"intl-expand"],open:[1540],text:[1],toggleDisplay:[513,"toggle-display"]}]),Xh=ob(eh,[1,"calcite-button",{appearance:[513],color:[513],disabled:[516],
href:[513],iconEnd:[513,"icon-end"],iconFlipRtl:[513,"icon-flip-rtl"],iconStart:[513,"icon-start"],intlLoading:[1,"intl-loading"],alignment:[513],loading:[516],round:[516],scale:[513],splitChild:[520,"split-child"],width:[513],hasContent:[32]}]),Yh=ob(jh,[1,"calcite-color-picker",{allowEmpty:[4,"allow-empty"],appearance:[513],color:[1040],format:[1],hideHex:[4,"hide-hex"],hideChannels:[4,"hide-channels"],hideSaved:[4,"hide-saved"],intlB:[1,"intl-b"],intlBlue:[1,"intl-blue"],intlDeleteColor:[1,"intl-delete-color"],
intlG:[1,"intl-g"],intlGreen:[1,"intl-green"],intlH:[1,"intl-h"],intlHsv:[1,"intl-hsv"],intlHex:[1,"intl-hex"],intlHue:[1,"intl-hue"],intlNoColor:[1,"intl-no-color"],intlR:[1,"intl-r"],intlRed:[1,"intl-red"],intlRgb:[1,"intl-rgb"],intlS:[1,"intl-s"],intlSaturation:[1,"intl-saturation"],intlSaveColor:[1,"intl-save-color"],intlSaved:[1,"intl-saved"],intlV:[1,"intl-v"],intlValue:[1,"intl-value"],scale:[513],storageId:[1,"storage-id"],value:[1025],colorFieldAndSliderInteractive:[32],channelMode:[32],
channels:[32],dimensions:[32],savedColors:[32],colorFieldScopeTop:[32],colorFieldScopeLeft:[32],scopeOrientation:[32],hueScopeLeft:[32],hueScopeTop:[32]},[[2,"keydown","handleChannelKeyUpOrDown"],[2,"keyup","handleChannelKeyUpOrDown"]]]),Zh=ob(kh,[1,"calcite-color-picker-hex-input",{allowEmpty:[4,"allow-empty"],intlHex:[1,"intl-hex"],intlNoColor:[1,"intl-no-color"],scale:[513],value:[1537],internalColor:[32]},[[2,"keydown","onInputKeyDown"]]]),$h=ob(lh,[1,"calcite-color-picker-swatch",{active:[516],
color:[1],scale:[513]}]),ai=ob(nh,[1,"calcite-filter",{data:[16],disabled:[516],intlClear:[1,"intl-clear"],intlLabel:[1,"intl-label"],placeholder:[1],empty:[32]}]),bi=ob(oh,[0,"calcite-graph",{data:[16],width:[2],height:[2],highlightMin:[2,"highlight-min"],highlightMax:[2,"highlight-max"]}]),ci=ob(ph,[1,"calcite-handle",{activated:[1540],textTitle:[513,"text-title"]}]),di=ob(qh,[1,"calcite-icon",{icon:[513],flipRtl:[516,"flip-rtl"],scale:[513],textLabel:[1,"text-label"],pathData:[32],visible:[32]}]),
ei=ob(rh,[6,"calcite-input",{alignment:[513],autofocus:[4],clearable:[516],disabled:[516],groupSeparator:[4,"group-separator"],icon:[520],iconFlipRtl:[516,"icon-flip-rtl"],loading:[516],locale:[1],localeFormat:[4,"locale-format"],max:[514],min:[514],maxlength:[514],maxLength:[514,"max-length"],minLength:[514,"min-length"],name:[513],numberButtonType:[513,"number-button-type"],placeholder:[1],prefixText:[1,"prefix-text"],required:[4],scale:[1537],status:[1537],step:[1544],suffixText:[1,"suffix-text"],
type:[513],value:[1537],localizedValue:[32]},[[0,"keydown","keyDownHandler"]]]),fi=ob(sh,[6,"calcite-label",{alignment:[513],status:[513],"for":[513],scale:[513],layout:[513],disableSpacing:[4,"disable-spacing"],disabled:[516]},[[0,"click","onClick"]]]),gi=ob(th,[1,"calcite-loader",{active:[516],inline:[516],label:[1],scale:[513],type:[513],value:[2],text:[1],noPadding:[4,"no-padding"]}]),hi=ob(uh,[1,"calcite-option",{disabled:[516],label:[1025],selected:[516],value:[1032]}]),ii=ob(vh,[1,"calcite-option-group",
{disabled:[516],label:[1]}]),ji=ob(wh,[1,"calcite-panel",{dismissed:[1540],beforeBack:[16],disabled:[516],dismissible:[516],headingLevel:[2,"heading-level"],showBackButton:[516,"show-back-button"],intlBack:[1,"intl-back"],heightScale:[513,"height-scale"],widthScale:[513,"width-scale"],loading:[516],intlClose:[1,"intl-close"],intlOptions:[1,"intl-options"],heading:[1],summary:[1],menuOpen:[516,"menu-open"]}]),ki=ob(yh,[1,"calcite-pick-list",{disabled:[516],filterEnabled:[516,"filter-enabled"],filterPlaceholder:[513,
"filter-placeholder"],headingLevel:[2,"heading-level"],loading:[516],multiple:[516],selectedValues:[32],dataForFilter:[32]},[[0,"calciteListItemRemove","calciteListItemRemoveHandler"],[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteListItemPropsChange","calciteListItemPropsChangeHandler"],[0,"calciteListItemValueChange","calciteListItemValueChangeHandler"],[0,"focusout","calciteListFocusOutHandler"]]]),li=ob(zh,[1,"calcite-pick-list-group",{groupTitle:[513,"group-title"],headingLevel:[2,
"heading-level"]}]),mi=ob(Ah,[1,"calcite-pick-list-item",{description:[513],disabled:[516],disableDeselect:[4,"disable-deselect"],icon:[513],label:[513],metadata:[16],removable:[516],selected:[1540],intlRemove:[513,"intl-remove"],value:[8]}]),ni=ob(Bh,[1,"calcite-popover",{closeButton:[516,"close-button"],disableFlip:[516,"disable-flip"],disablePointer:[516,"disable-pointer"],flipPlacements:[16],heading:[1],headingLevel:[2,"heading-level"],label:[1],offsetDistance:[514,"offset-distance"],offsetSkidding:[514,
"offset-skidding"],open:[1540],overlayPositioning:[1,"overlay-positioning"],placement:[513],referenceElement:[1,"reference-element"],intlClose:[1,"intl-close"],_referenceElement:[32]}]),oi=ob(Ch,[1,"calcite-progress",{type:[1],value:[2],text:[1],reversed:[4]}]),pi=ob(Dh,[1,"calcite-scrim",{intlLoading:[1,"intl-loading"],loading:[516]}]),qi=ob(Eh,[1,"calcite-select",{disabled:[516],label:[1],scale:[513],selectedOption:[1040],width:[513]},[[0,"calciteOptionChange","handleOptionOrGroupChange"],[0,"calciteOptionGroupChange",
"handleOptionOrGroupChange"],[8,"calciteLabelFocus","handleLabelFocus"]]]),ri=ob(Fh,[1,"calcite-slider",{disabled:[516],min:[514],max:[514],value:[1538],minValue:[1026,"min-value"],maxValue:[1026,"max-value"],minLabel:[1,"min-label"],maxLabel:[1,"max-label"],snap:[4],step:[2],pageStep:[2,"page-step"],ticks:[2],labelTicks:[516,"label-ticks"],labelHandles:[516,"label-handles"],precise:[4],histogram:[16],hasHistogram:[1540,"has-histogram"],tickValues:[32],activeProp:[32],minMaxValueRange:[32],minValueDragRange:[32],
maxValueDragRange:[32]},[[8,"calciteLabelFocus","handleLabelFocus"],[0,"keydown","keyDownHandler"],[1,"mousedown","mouseHandler"],[0,"click","mouseHandler"]]]),si=ob(Kh,[1,"calcite-switch",{disabled:[516],name:[513],scale:[513],switched:[1540],value:[520],guid:[32],tabindex:[32]},[[8,"calciteLabelFocus","handleLabelFocus"],[0,"click","onClick"],[0,"keydown","keyDownHandler"]]]),ti=ob(Lh,[1,"calcite-tab",{tab:[513],active:[1540],labeledBy:[32]},[[16,"calciteTabChange","tabChangeHandler"]]]),ui=ob(Mh,
[1,"calcite-tab-nav",{storageId:[1,"storage-id"],syncId:[1,"sync-id"],layout:[1537],position:[1537],indicatorOffset:[1026,"indicator-offset"],indicatorWidth:[1026,"indicator-width"],selectedTab:[32],selectedTabEl:[32]},[[9,"resize","resizeHandler"],[0,"calciteTabsFocusPrevious","focusPreviousTabHandler"],[0,"calciteTabsFocusNext","focusNextTabHandler"],[0,"calciteTabsActivate","activateTabHandler"],[0,"calciteTabTitleRegister","updateTabTitles"],[16,"calciteTabChange","globalTabChangeHandler"]]]),
vi=ob(Nh,[1,"calcite-tab-title",{active:[1540],disabled:[516],iconEnd:[513,"icon-end"],iconFlipRtl:[513,"icon-flip-rtl"],iconStart:[513,"icon-start"],layout:[1537],position:[1537],tab:[513],controls:[32],hasText:[32]},[[16,"calciteTabChange","tabChangeHandler"],[0,"click","onClick"],[0,"keydown","keyDownHandler"]]]),wi=ob(Oh,[1,"calcite-tabs",{layout:[513],position:[513],titles:[32],tabs:[32]},[[0,"calciteTabTitleRegister","calciteTabTitleRegister"],[16,"calciteTabTitleUnregister","calciteTabTitleUnregister"],
[0,"calciteTabRegister","calciteTabRegister"],[16,"calciteTabUnregister","calciteTabUnregister"]]]),xi=ob(Ph,[4,"calcite-tooltip-manager",{selector:[1]},[[4,"keyup","keyUpHandler"],[3,"mouseenter","mouseEnterShow"],[3,"mouseleave","mouseLeaveHide"],[2,"click","clickHandler"],[2,"focus","focusShow"],[2,"blur","blurHide"]]]);a.CalciteAction=Qh;a.CalciteActionBar=Rh;a.CalciteActionGroup=Sh;a.CalciteActionMenu=Th;a.CalciteActionPad=Uh;a.CalciteBlock=Vh;a.CalciteBlockSection=Wh;a.CalciteButton=Xh;a.CalciteColorPicker=
Yh;a.CalciteColorPickerHexInput=Zh;a.CalciteColorPickerSwatch=$h;a.CalciteFilter=ai;a.CalciteGraph=bi;a.CalciteHandle=ci;a.CalciteIcon=di;a.CalciteInput=ei;a.CalciteLabel=fi;a.CalciteLoader=gi;a.CalciteOption=hi;a.CalciteOptionGroup=ii;a.CalcitePanel=ji;a.CalcitePickList=ki;a.CalcitePickListGroup=li;a.CalcitePickListItem=mi;a.CalcitePopover=ni;a.CalciteProgress=oi;a.CalciteScrim=pi;a.CalciteSelect=qi;a.CalciteSlider=ri;a.CalciteSwitch=si;a.CalciteTab=ti;a.CalciteTabNav=ui;a.CalciteTabTitle=vi;a.CalciteTabs=
wi;a.CalciteTooltipManager=xi;a.commitAssetPath=function(d){Bb.$resourcesUrl$=d};a.register=function(d){Object.keys(d).forEach(y=>{customElements.get(y)||customElements.define(y,d[y])})}})},"esri/widgets/support/jsxWidgetSupport":function(){define(["exports","../../core/handleUtils"],function(a,b){function c(u,m){var p=m.vnodeSelector;if(q(p)){m=m.properties||{};var e=m.key||p;return{vnodeSelector:"div",properties:{parentWidget:u,widgetConstructor:p,key:e,widgetProps:{...m,key:e},afterCreate:g,afterUpdate:f,
afterRemoved:k},children:void 0,text:void 0,domNode:null}}if(p=m.children)for(e=0;e<p.length;++e)p[e]=c(u,p[e]);return m}function g(u,m,p,{parentWidget:e,widgetConstructor:l,widgetProps:h}){m=new l({...h,container:u});t.set(u,m);null==m.afterCreate?void 0:m.afterCreate(m,u);e._internalHandles.add(b.makeHandle(()=>k(u)))}function f(u,m,p,{widgetProps:e}){if(m=t.get(u))m.set(e),null==m.afterUpdate?void 0:m.afterUpdate(m,u)}function k(u){const m=t.get(u);m&&(m.destroy(),t.delete(u))}function q(u){return"function"===
typeof u&&u[v]}const v=Symbol("widget"),t=new WeakMap;a.WIDGET_SYMBOL=v;a.isWidgetConstructor=q;a.processWidgets=c;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/Feature/FeatureAttachments":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/watchUtils ../../core/accessorSupport/decorators/aliasOf ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/subclass ../Attachments ../Widget ./FeatureAttachments/FeatureAttachmentsViewModel ./support/FeatureElementInfo ../support/widgetUtils ../support/jsxFactory".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n){f=function(w){function x(D,A){D=w.call(this,D,A)||this;D._featureElementInfo=null;D.attachmentsWidget=new m;D.description=null;D.displayType=null;D.graphic=null;D.headingLevel=2;D.title=null;D.viewModel=new e;return D}a._inheritsLoose(x,w);var C=x.prototype;C.initialize=function(){this._featureElementInfo=new l;c.init(this,["viewModel.description","viewModel.title","headingLevel"],()=>this._setupFeatureElementInfo());c.init(this,"viewModel.graphic",D=>this.attachmentsWidget.graphic=
D)};C.destroy=function(){this.attachmentsWidget.destroy();this._featureElementInfo.destroy()};C.render=function(){var D;const {attachmentsWidget:A}=this;return n.tsx("div",{class:"esri-feature-attachments"},null==(D=this._featureElementInfo)?void 0:D.render(),null==A?void 0:A.render())};C._setupFeatureElementInfo=function(){const {description:D,title:A,headingLevel:B}=this;this._featureElementInfo.set({description:D,title:A,headingLevel:B})};return x}(p);b.__decorate([t.property({readOnly:!0})],f.prototype,
"attachmentsWidget",void 0);b.__decorate([g.aliasOf("viewModel.description")],f.prototype,"description",void 0);b.__decorate([g.aliasOf("attachmentsWidget.displayType")],f.prototype,"displayType",void 0);b.__decorate([g.aliasOf("viewModel.graphic")],f.prototype,"graphic",void 0);b.__decorate([t.property()],f.prototype,"headingLevel",void 0);b.__decorate([g.aliasOf("viewModel.title")],f.prototype,"title",void 0);b.__decorate([t.property({type:e})],f.prototype,"viewModel",void 0);return f=b.__decorate([u.subclass("esri.widgets.Feature.FeatureAttachments")],
f)})},"esri/widgets/Attachments":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Error ../core/unitFormatUtils ../core/watchUtils ../core/accessorSupport/decorators/aliasOf ../core/has ../core/accessorSupport/decorators/cast ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/subclass ./Widget ./Attachments/AttachmentsViewModel ./Attachments/support/attachmentUtils ./support/widgetUtils ./support/decorators/messageBundle ./support/jsxFactory".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x){const C={addButton:!0,addSubmitButton:!0,cancelAddButton:!0,cancelUpdateButton:!0,deleteButton:!0,errorMessage:!0,progressBar:!0,updateButton:!0},D=window.CSS;q=function(A){function B(z,E){z=A.call(this,z,E)||this;z.abilities=null;z.displayType="list";z.graphic=null;z.label=void 0;z.messages=null;z.messagesUnits=null;z.selectedFile=null;z.submitting=!1;z.viewModel=new l;z.visibleElements={...C};z._supportsImageOrientation=D&&D.supports&&D.supports("image-orientation",
"from-image");z._addAttachmentForm=null;z._updateAttachmentForm=null;return z}a._inheritsLoose(B,A);var r=B.prototype;r.initialize=function(){this.own(f.on(this,"viewModel.attachmentInfos","change",()=>this.scheduleRender()),f.init(this,"viewModel.mode",()=>this._modeChanged()))};r.castVisibleElements=function(z){return{...C,...z}};r.addAttachment=function(){const {_addAttachmentForm:z,viewModel:E}=this;this._set("submitting",!0);this._set("error",null);return E.addAttachment(z).then(F=>{this._set("submitting",
!1);this._set("error",null);E.mode="view";return F}).catch(F=>{this._set("submitting",!1);this._set("error",new c("attachments:add-attachment",this.messages.addErrorMessage,F));throw F;})};r.deleteAttachment=function(z){const {viewModel:E}=this;this._set("submitting",!0);this._set("error",null);return E.deleteAttachment(z).then(F=>{this._set("submitting",!1);this._set("error",null);E.mode="view";return F}).catch(F=>{this._set("submitting",!1);this._set("error",new c("attachments:delete-attachment",
this.messages.deleteErrorMessage,F));throw F;})};r.updateAttachment=function(){const {viewModel:z}=this,{_updateAttachmentForm:E}=this;this._set("submitting",!0);this._set("error",null);return z.updateAttachment(E).then(F=>{this._set("submitting",!1);this._set("error",null);z.mode="view";return F}).catch(F=>{this._set("submitting",!1);this._set("error",new c("attachments:update-attachment",this.messages.updateErrorMessage,F));throw F;})};r.render=function(){const {submitting:z,viewModel:E}=this,{state:F}=
E;return x.tsx("div",{class:this.classes("esri-attachments","esri-widget")},z?this.renderProgressBar():null,"loading"===F?this.renderLoading():this.renderAttachments(),this.renderErrorMessage())};r.renderErrorMessage=function(){const {error:z,visibleElements:E}=this;return z&&E.errorMessage?x.tsx("div",{key:"error-message",class:"esri-attachments__error-message"},z.message):null};r.renderAttachments=function(){const {mode:z,activeAttachmentInfo:E}=this.viewModel;return"add"===z?this.renderAddForm():
"edit"===z?this.renderDetailsForm(E):this.renderAttachmentContainer()};r.renderLoading=function(){return x.tsx("div",{class:"esri-attachments__loader-container",key:"loader"},x.tsx("div",{class:"esri-attachments__loader"}))};r.renderProgressBar=function(){return this.visibleElements.progressBar?x.tsx("div",{class:"esri-attachments__progress-bar",key:"progress-bar"}):null};r.renderAddForm=function(){const {submitting:z,selectedFile:E}=this;var F=z||!E,G=this.visibleElements.cancelAddButton?x.tsx("button",
{type:"button",bind:this,disabled:z,onclick:this._cancelForm,class:this.classes("esri-button","esri-button--tertiary","esri-button--small","esri-button--half",z&&"esri-button--disabled")},this.messages.cancel):null;F=this.visibleElements.addSubmitButton?x.tsx("button",{type:"submit",disabled:F,class:this.classes("esri-button","esri-button--secondary","esri-button--small","esri-button--half",{["esri-button--disabled"]:F})},this.messages.add):null;const N=E?x.tsx("span",{key:"file-name",class:"esri-attachments__file-name"},
E.name):null;G=x.tsx("form",{bind:this,afterCreate:n.storeNode,afterRemoved:n.discardNode,"data-node-ref":"_addAttachmentForm",onsubmit:this._submitAddAttachment},x.tsx("fieldset",{class:"esri-attachments__file-fieldset"},N,x.tsx("label",{class:this.classes("esri-attachments__file-label","esri-button","esri-button--secondary")},E?this.messages.changeFile:this.messages.selectFile,x.tsx("input",{class:"esri-attachments__file-input",type:"file",name:"attachment",bind:this,onchange:this._handleFileInputChange}))),
F,G);return x.tsx("div",{key:"add-form-container",class:"esri-attachments__form-node"},G)};r.renderDetailsForm=function(z){const {visibleElements:E,viewModel:F,selectedFile:G,submitting:N}=this,{contentType:K,size:I,url:J}=z;var {abilities:L}=F,Q=N||!G,W=L.editing&&L.operations.delete&&E.deleteButton?x.tsx("button",{key:"delete-button",type:"button",disabled:N,bind:this,onclick:U=>this._submitDeleteAttachment(U,z),class:this.classes("esri-button","esri-button--small","esri-button--tertiary","esri-attachments__delete-button",
{["esri-button--disabled"]:N})},this.messages.delete):null;Q=L.editing&&L.operations.update&&E.updateButton?x.tsx("button",{disabled:Q,key:"update-button",type:"submit",class:this.classes("esri-button","esri-button--small","esri-button--third",{["esri-button--disabled"]:Q})},this.messages.update):null;const V=this.visibleElements.cancelUpdateButton?x.tsx("button",{disabled:N,key:"cancel-button",type:"button",bind:this,onclick:this._cancelForm,class:this.classes("esri-button","esri-button--small",
"esri-button--tertiary","esri-button--third",{["esri-button--disabled"]:N})},this.messages.cancel):null;var P=G?x.tsx("span",{key:"file-name",class:"esri-attachments__file-name"},G.name):null;L=L.editing&&L.operations.update?x.tsx("fieldset",{key:"file",class:"esri-attachments__file-fieldset"},P,x.tsx("label",{class:this.classes("esri-attachments__file-label","esri-button","esri-button--secondary")},this.messages.changeFile,x.tsx("input",{class:"esri-attachments__file-input",type:"file",name:"attachment",
bind:this,onchange:this._handleFileInputChange}))):null;P=x.tsx("fieldset",{key:"size",class:"esri-attachments__metadata-fieldset"},x.tsx("label",null,g.formatFileSize(this.messagesUnits,I)));const X=x.tsx("fieldset",{key:"content-type",class:"esri-attachments__metadata-fieldset"},x.tsx("label",null,K));W=x.tsx("form",{bind:this,afterCreate:n.storeNode,afterRemoved:n.discardNode,"data-node-ref":"_updateAttachmentForm",onsubmit:this._submitUpdateAttachment},x.tsx("div",{class:"esri-attachments__metadata"},
P,X),L,x.tsx("div",{class:"esri-attachments__actions"},W,V,Q));return x.tsx("div",{key:"edit-form-container",class:"esri-attachments__form-node"},x.tsx("a",{class:"esri-attachments__item-link",href:J,rel:"noreferrer",target:"_blank"},this.renderImageMask({attachmentInfo:z,size:400}),x.tsx("div",{class:"esri-attachments__item-link-overlay"},x.tsx("span",{class:"esri-attachments__item-link-overlay-icon"},x.tsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"},x.tsx("path",
{d:"M28 13h1v16H3V3h16v1H4v24h24zm-5-9h4.293L15.646 15.638l.707.707L28 4.707V9h1V3h-6z"}),x.tsx("path",{fill:"none",d:"M0 0h32v32H0z"}))))),W)};r.renderImageMask=function({attachmentInfo:z,size:E}){var {supportsResizeAttachments:F}=this.viewModel;const {contentType:G,name:N,url:K}=z,I=F&&h.isSupportedImage(G);z=(z=this._getCSSTransform(z,I))?{transform:z,"image-orientation":"none"}:{};const J=-1===K.indexOf("?")?"?":"\x26";E=I?`${K}${J}w=${E}`:h.getIconPath(G);F={["esri-attachments__image--resizable"]:F};
return x.tsx("div",{class:this.classes({["esri-attachments__item-mask--icon"]:!I},"esri-attachments__item-mask")},x.tsx("img",{styles:z,alt:N,src:E,class:this.classes(F,"esri-attachments__image")}))};r.renderAttachmentInfo=function({attachmentInfo:z,displayType:E}){var {viewModel:F}=this;({abilities:F}=F);const {name:G,url:N}=z;E=this.renderImageMask({attachmentInfo:z,size:"list"===E?48:400});var K=F.editing?x.tsx("span",{"aria-hidden":"true",class:this.classes("esri-attachments__item-chevron-icon",
n.isRTL()?"esri-icon-left":"esri-icon-right")}):null;K=x.tsx("label",{class:"esri-attachments__label"},x.tsx("span",{class:"esri-attachments__filename"},G||this.messages.noTitle),K);E=[E,K];F=F.editing?x.tsx("button",{key:"details-button",bind:this,class:"esri-attachments__item-button",title:this.messages.attachmentDetails,"aria-label":this.messages.attachmentDetails,"data-attachment-info-id":z.id,onclick:()=>this._startEditAttachment(z),type:"button"},E):x.tsx("a",{key:"details-link",class:"esri-attachments__item-button",
href:N,target:"_blank"},E);return x.tsx("li",{class:"esri-attachments__item",key:z},F)};r.renderAttachmentContainer=function(){const {displayType:z,viewModel:E,visibleElements:F}=this,{attachmentInfos:G,abilities:N}=E;var K=G&&G.length;const I={["esri-attachments__container--list"]:"preview"!==z,["esri-attachments__container--preview"]:"preview"===z},J=N.editing&&N.operations.add&&F.addButton?x.tsx("button",{bind:this,onclick:()=>this._startAddAttachment(),class:this.classes("esri-button","esri-button--tertiary",
"esri-attachments__add-attachment-button"),type:"button"},x.tsx("span",{"aria-hidden":"true",class:this.classes("esri-attachments__item-add-icon","esri-icon-plus")}),this.messages.add):null;K=K?x.tsx("ul",{class:"esri-attachments__items"},G.toArray().map(L=>this.renderAttachmentInfo({attachmentInfo:L,displayType:z}))):x.tsx("div",{class:"esri-widget__content--empty"},this.messages.noAttachments);return x.tsx("div",{key:"attachments-container",class:this.classes("esri-attachments__container",I)},K,
J)};r._modeChanged=function(){this._set("error",null);this._set("selectedFile",null)};r._handleFileInputChange=function(z){z=(z=z.target)&&z.files&&z.files.item(0);this._set("selectedFile",z)};r._submitDeleteAttachment=function(z,E){z.preventDefault();this.deleteAttachment(E)};r._submitAddAttachment=function(z){z.preventDefault();this.addAttachment()};r._submitUpdateAttachment=function(z){z.preventDefault();this.updateAttachment()};r._startEditAttachment=function(z){const {viewModel:E}=this;E.activeAttachmentInfo=
z;E.mode="edit"};r._startAddAttachment=function(){this.viewModel.mode="add"};r._cancelForm=function(z){z.preventDefault();this.viewModel.mode="view"};r._getCSSTransform=function(z,E){({orientationInfo:z}=z);return!this._supportsImageOrientation&&E&&z?[z.rotation?`rotate(${z.rotation}deg)`:"",z.mirrored?"scaleX(-1)":""].join(" "):""};return B}(e);b.__decorate([k.aliasOf("viewModel.abilities")],q.prototype,"abilities",void 0);b.__decorate([m.property()],q.prototype,"displayType",void 0);b.__decorate([k.aliasOf("viewModel.graphic")],
q.prototype,"graphic",void 0);b.__decorate([m.property({aliasOf:{source:"messages.widgetLabel",overridable:!0}})],q.prototype,"label",void 0);b.__decorate([m.property(),w.messageBundle("esri/widgets/Attachments/t9n/Attachments")],q.prototype,"messages",void 0);b.__decorate([m.property(),w.messageBundle("esri/core/t9n/Units")],q.prototype,"messagesUnits",void 0);b.__decorate([m.property({readOnly:!0})],q.prototype,"selectedFile",void 0);b.__decorate([m.property({readOnly:!0})],q.prototype,"submitting",
void 0);b.__decorate([m.property({readOnly:!0})],q.prototype,"error",void 0);b.__decorate([m.property({type:l})],q.prototype,"viewModel",void 0);b.__decorate([m.property()],q.prototype,"visibleElements",void 0);b.__decorate([v.cast("visibleElements")],q.prototype,"castVisibleElements",null);return q=b.__decorate([p.subclass("esri.widgets.Attachments")],q)})},"esri/core/unitFormatUtils":function(){define(["exports","./mathUtils","./string","./unitUtils","../intl/number"],function(a,b,c,g,f){function k(t,
u,m){return t.units[u][m]}function q(t,u,m,p=2,e="abbr"){return`${f.formatNumber(u,{minimumFractionDigits:p,maximumFractionDigits:p})} ${k(t,m,e)}`}const v=["B","kB","MB","GB","TB"];a.formatAngleDegrees=function(t,u,m=2){t=g.convertUnit(t,u,"degrees");return f.formatNumber(t,{style:"unit",unitDisplay:"narrow",unit:"degree",maximumFractionDigits:m,minimumFractionDigits:m})};a.formatDMS=function(t,u,m=2){t=g.convertUnit(t,u,"degrees");u=t-Math.floor(t);t-=u;u*=60;let p=u-Math.floor(u);u-=p;p*=60;return`${t.toFixed()}\u00b0 ${u.toFixed()}' ${p.toFixed(m)}"`};
a.formatDecimal=q;a.formatFileSize=function(t,u){let m=0===u?0:Math.floor(Math.log(u)/Math.log(1024));m=b.clamp(m,0,v.length-1);u=f.formatNumber(u/1024**m,{maximumFractionDigits:2});return c.replace(t.units.bytes[v[m]],{fileSize:u})};a.formatImperialArea=function(t,u,m,p=2,e="abbr"){const l=g.preferredImperialAreaUnit(u,m);return q(t,g.convertUnit(u,m,l),l,p,e)};a.formatImperialLength=function(t,u,m,p=2,e="abbr"){const l=g.preferredImperialLengthUnit(u,m);return q(t,g.convertUnit(u,m,l),l,p,e)};a.formatImperialVerticalLength=
function(t,u,m,p=2,e="abbr"){const l=g.preferredImperialVerticalLengthUnit(u,m);return q(t,g.convertUnit(u,m,l),l,p,e)};a.formatMetricArea=function(t,u,m,p=2,e="abbr"){const l=g.preferredMetricAreaUnit(u,m);return q(t,g.convertUnit(u,m,l),l,p,e)};a.formatMetricLength=function(t,u,m,p=2,e="abbr"){const l=g.preferredMetricLengthUnit(u,m);return q(t,g.convertUnit(u,m,l),l,p,e)};a.formatMetricVerticalLength=function(t,u,m,p=2,e="abbr"){const l=g.preferredMetricVerticalLengthUnit(u,m);return q(t,g.convertUnit(u,
m,l),l,p,e)};a.unitName=k;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/Attachments/AttachmentsViewModel":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Graphic ../../core/Collection ../../core/Error ../../core/HandleOwner ../../core/maybe ../../core/watchUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/decorators/cast ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../../rest/query/support/AttachmentInfo ../../rest/support/AttachmentQuery ../Feature/support/featureUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w){const x={editing:!1,operations:{add:!0,update:!0,delete:!0}},C=g.ofType(h);g=function(D){function A(r){var z=D.call(this,r)||this;z._getAttachmentsPromise=null;z._attachmentLayer=null;z.abilities={...x};z.activeAttachmentInfo=null;z.attachmentInfos=new C;z.graphic=null;z.mode="view";z.handles.add([v.init(a._assertThisInitialized(z),"graphic",()=>z._graphicChanged())]);return z}a._inheritsLoose(A,D);var B=A.prototype;B.destroy=function(){this.graphic=this._attachmentLayer=
null};B.castAbilities=function(r){return{...x,...r}};B.getAttachments=function(){var r=a._asyncToGenerator(function*(){const {_attachmentLayer:z,attachmentInfos:E}=this;if(!z||"function"!==typeof z.queryAttachments)throw new f("invalid-layer","getAttachments(): A valid layer is required.");const F=this._getFeatureId();var G=new n({objectIds:[F],returnMetadata:!0});const N=[];this._getAttachmentsPromise=G=z.queryAttachments(G).then(K=>K[F]||N).catch(()=>N);this.notifyChange("state");G=yield G;E.removeAll();
G.length&&E.addMany(G);this._getAttachmentsPromise=null;this.notifyChange("state");return G});return function(){return r.apply(this,arguments)}}();B.addAttachment=function(){var r=a._asyncToGenerator(function*(z){const {_attachmentLayer:E,attachmentInfos:F,graphic:G,abilities:N}=this;if(!z)throw new f("invalid-attachment","addAttachment(): An attachment is required.",{attachment:z});if(!N.operations.add)throw new f("invalid-abilities","addAttachment(): add abilities are required.");if(!E||"function"!==
typeof E.addAttachment)throw new f("invalid-layer","addAttachment(): A valid layer is required.");z=yield E.addAttachment(G,z).then(K=>this._queryAttachment(K.objectId));F.add(z);return z});return function(z){return r.apply(this,arguments)}}();B.deleteAttachment=function(){var r=a._asyncToGenerator(function*(z){const {_attachmentLayer:E,attachmentInfos:F,graphic:G,abilities:N}=this;if(!z)throw new f("invalid-attachment-info","deleteAttachment(): An attachmentInfo is required.",{attachmentInfo:z});
if(!N.operations.delete)throw new f("invalid-abilities","deleteAttachment(): delete abilities are required.");if(!E||"function"!==typeof E.deleteAttachments)throw new f("invalid-layer","deleteAttachment(): A valid layer is required.");const K=yield E.deleteAttachments(G,[z.id]).then(()=>z);F.remove(K);return K});return function(z){return r.apply(this,arguments)}}();B.updateAttachment=function(){var r=a._asyncToGenerator(function*(z,E=this.activeAttachmentInfo){const {_attachmentLayer:F,attachmentInfos:G,
graphic:N,abilities:K}=this;if(!z)throw new f("invalid-attachment","updateAttachment(): An attachment is required.",{attachment:z});if(!E)throw new f("invalid-attachment-info","updateAttachment(): An attachmentInfo is required.",{attachmentInfo:E});if(!K.operations.update)throw new f("invalid-abilities","updateAttachment(): Update abilities are required.");const I=G.findIndex(J=>J===E);if(!F||"function"!==typeof F.updateAttachment)throw new f("invalid-layer","updateAttachment(): A valid layer is required.");
z=yield F.updateAttachment(N,E.id,z).then(J=>this._queryAttachment(J.objectId));G.splice(I,1,z);return z});return function(z){return r.apply(this,arguments)}}();B._queryAttachment=function(){var r=a._asyncToGenerator(function*(z){if(!z)throw new f("invalid-attachment-id","Could not query attachment.");const {_attachmentLayer:E}=this,F=this._getFeatureId();z=new n({objectIds:[F],attachmentsWhere:`AttachmentId=${z}`,returnMetadata:!0});return E.queryAttachments(z).then(G=>G[F][0])});return function(z){return r.apply(this,
arguments)}}();B._getFeatureId=function(){const {_attachmentLayer:r,graphic:z}=this;if(!r||!z)return null;const {objectIdField:E}=r,{attributes:F}=z;return F&&F[E]};B._graphicChanged=function(){this.graphic&&(this._setAttachmentLayer(),this.getAttachments().catch(()=>{}))};B._setAttachmentLayer=function(){var {graphic:r}=this;this._attachmentLayer=(r=w.getSourceLayer(r))?"scene"===r.type&&q.isSome(r.associatedLayer)?r.associatedLayer:r:null};a._createClass(A,[{key:"state",get:function(){return this._getAttachmentsPromise?
"loading":this.graphic?"ready":"disabled"}},{key:"supportsResizeAttachments",get:function(){return this.get("graphic.layer.capabilities.operations.supportsResizeAttachments")||!1}}]);return A}(k.HandleOwner);b.__decorate([t.property()],g.prototype,"abilities",void 0);b.__decorate([m.cast("abilities")],g.prototype,"castAbilities",null);b.__decorate([t.property()],g.prototype,"activeAttachmentInfo",void 0);b.__decorate([t.property({readOnly:!0,type:C})],g.prototype,"attachmentInfos",void 0);b.__decorate([t.property({type:c})],
g.prototype,"graphic",void 0);b.__decorate([t.property()],g.prototype,"mode",void 0);b.__decorate([t.property({readOnly:!0})],g.prototype,"state",null);b.__decorate([t.property({readOnly:!0})],g.prototype,"supportsResizeAttachments",null);return g=b.__decorate([l.subclass("esri.widgets.Attachments.AttachmentsViewModel")],g)})},"esri/widgets/Feature/support/featureUtils":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../intl ../../../core/Logger ../../../core/maybe ../../../core/string ../../../intl/date ../../../intl/number ../../../layers/support/fieldUtils ../../../popup/support/FieldInfoFormat ../../../support/arcadeOnDemand".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){function p(){p=b._asyncToGenerator(function*(ea,la){return"function"===typeof ea?ea.call(null,la):ea});return p.apply(this,arguments)}function e(ea){return oa.test(ea)}function l(ea,la){if(!e(la)||!ea)return null;const va=la.replace(oa,"").toLowerCase();let Ba;ea.some(aa=>aa.name.toLowerCase()===va?(Ba=aa,!0):!1);return Ba}function h(ea,la){return(la=n(la,ea))?la.name:ea}function n(ea,la){return ea&&"function"===typeof ea.getField?ea.getField(la):null}function w({formattedAttributes:ea,
template:la,fieldInfoMap:va}){return`${k.replace(k.replace(la,Ba=>{{const aa=va.get(Ba.toLowerCase());Ba=`{${aa&&aa.fieldName||Ba}}`}return Ba}),ea).replace(X,"")}`.trim()}function x(ea,la,va=!1){const Ba=la[ea];"string"===typeof Ba&&(va=(va?encodeURIComponent(Ba):Ba).replace(Z,"%27"),la[ea]=va)}function C(ea,la=!1){const va={...ea};Object.keys(va).forEach(Ba=>x(Ba,va,la));return va}function D(ea,la){return ea.replace(U,(va,Ba,aa)=>(va=n(la,aa))?`{${va.name}}`:Ba)}function A(ea,la,va){return(ea=D(ea,
va))?ea.replace(fa,(Ba,aa,ja)=>{aa=`${aa||ja}`.trim();return k.replace(Ba,C(la,aa&&"{"!==aa[0]))}):ea}function B(ea,la){const va=la.fieldName;var Ba=r(la.fieldInfos,va),aa=null==Ba?void 0:Ba.clone();Ba=la.preventPlacesFormatting;la=n(la.layer,va);aa&&la&&"date"===la.type&&(la=aa.format||new u,la.dateFormat=la.dateFormat||"short-date-short-time",aa.format=la);aa=aa&&aa.format;"string"!==typeof ea||!aa||null!=aa.dateFormat||null==aa.places&&null==aa.digitSeparator||(la=Number(ea),isNaN(la)||(ea=la));
return"string"===typeof ea||null==ea||null==aa?ea:Ba?v.formatNumber(ea,{...v.convertNumberFormatToIntlOptions(aa),minimumFractionDigits:0,maximumFractionDigits:20}):aa.format(ea)}function r(ea,la){if(ea&&ea.length&&la){var va=la.toLowerCase(),Ba=void 0;ea.some(aa=>aa.fieldName&&aa.fieldName.toLowerCase()===va?(Ba=aa,!0):!1);return Ba}}function z({fieldName:ea,graphic:la,layer:va}){if(Q(ea)||!va||"function"!==typeof va.getFeatureType)return null;const {typeIdField:Ba}=va;return Ba&&ea===Ba?(ea=va.getFeatureType(la))?
ea.name:null:null}function E({fieldName:ea,value:la,graphic:va,layer:Ba}){return Q(ea)||!Ba||"function"!==typeof Ba.getFieldDomain?null:(ea=Ba.getFieldDomain(ea,{feature:va}))&&"coded-value"===ea.type?ea.getName(la):null}function F(ea){return"string"===typeof ea?ea.replace(xa,'\x3cbr class\x3d"esri-text-new-line" /\x3e'):ea}function G(ea){const {value:la,fieldName:va,fieldInfos:Ba,fieldInfoMap:aa,layer:ja,graphic:ua}=ea;return null==la?"":(ea=E({fieldName:va,value:la,graphic:ua,layer:ja}))||(ea=z({fieldName:va,
graphic:ua,layer:ja}))?ea:aa.get(va.toLowerCase())?B(la,{fieldInfos:Ba,fieldName:va,layer:ja}):(ea=ja&&ja.fieldsIndex)&&ea.isDateField(va)?q.formatDate(la,da):F(la)}function N(ea,la){return K.apply(this,arguments)}function K(){K=b._asyncToGenerator(function*(ea,la){var va,Ba;const {layer:aa,graphic:ja,outFields:ua,objectIds:ta,returnGeometry:T,spatialReference:ba}=ea;ea=ta[0];if("number"!==typeof ea&&"string"!==typeof ea)return P.warn("Could not query required fields for the specified feature. The feature's ID is invalid.",
{layer:aa,graphic:ja,objectId:ea,requiredFields:ua}),null;if(null==(va=aa.capabilities)||null==(Ba=va.operations)||!Ba.supportsQuery)return P.warn("The specified layer cannot be queried. The following fields will not be available.",{layer:aa,graphic:ja,requiredFields:ua,returnGeometry:T}),null;va=aa.createQuery();va.objectIds=ta;va.outFields=null!=ua&&ua.length?ua:[aa.objectIdField];va.returnGeometry=!!T;va.outSpatialReference=ba;return(yield aa.queryFeatures(va,la)).features[0]});return K.apply(this,
arguments)}function I(ea){return J.apply(this,arguments)}function J(){J=b._asyncToGenerator(function*(ea){var la;if(null==(la=ea.expressionInfos)||!la.length)return!1;la=yield m.loadArcade();({arcadeUtils:{hasGeometryFunctions:la}}=la);return la(ea)});return J.apply(this,arguments)}function L(){L=b._asyncToGenerator(function*({graphic:ea,popupTemplate:la,layer:va,spatialReference:Ba},aa){if(va&&la&&("function"===typeof va.load&&(yield va.load(aa)),ea.attributes)){var ja=ea.attributes[va.objectIdField];
if(null!=ja){ja=[ja];var ua=yield la.getRequiredFields(va.fieldsIndex),ta=t.featureHasFields(ua,ea);ua=ta?[]:ua;la=la.returnGeometry||(yield I(la));if(!ta||la)if(va=yield N({layer:va,graphic:ea,outFields:ua,objectIds:ja,returnGeometry:la,spatialReference:Ba},aa))va.geometry&&(ea.geometry=va.geometry),va.attributes&&(ea.attributes={...ea.attributes,...va.attributes})}}});return L.apply(this,arguments)}function Q(ea=""){return ea?-1!==ea.indexOf("relationships/"):!1}function W({attributes:ea,graphic:la,
relatedInfo:va}){ea&&la&&va&&Object.keys(la.attributes).forEach(Ba=>{var aa={layerId:va.relation.id.toString(),fieldName:Ba};ea[aa?`${"relationships/"}${aa.layerId}/${aa.fieldName}`:""]=la.attributes[Ba]})}function V(ea,la){ea&&la&&(la.relatedFeatures&&la.relatedFeatures&&la.relatedFeatures.forEach(va=>W({attributes:ea,graphic:va,relatedInfo:la})),la.relatedStatsFeatures&&la.relatedStatsFeatures&&la.relatedStatsFeatures.forEach(va=>W({attributes:ea,graphic:va,relatedInfo:la})))}const P=g.getLogger("esri.widgets.Feature.support.featureUtils"),
X=/href=(""|'')/gi,U=/(\{([^\{\r\n]+)\})/g,Z=/'/g,oa=/^\s*expression\//i,xa=/(\n)/gi,Ea=/[\u00A0-\u9999<>&]/gim,fa=/href\s*=\s*(?:"([^"]+)"|'([^']+)')/gi,ia=/^(?:mailto:|tel:)/,da=q.convertDateFormatToIntlOptions("short-date-short-time");a.applyTextFormattingHTML=F;a.createfieldInfoMap=function(ea,la){const va=new Map;ea&&ea.forEach(Ba=>{const aa=h(Ba.fieldName,la);Ba.fieldName=aa;va.set(aa.toLowerCase(),Ba)});return va};a.fixTokens=D;a.formatAttributes=function({fieldInfos:ea,attributes:la,layer:va,
graphic:Ba,fieldInfoMap:aa,relatedInfos:ja}){const ua={...la};null==ja?void 0:ja.forEach(ta=>V(ua,ta));Object.keys(ua).forEach(ta=>{ua[ta]=G({fieldName:ta,fieldInfos:ea,fieldInfoMap:aa,layer:va,value:ua[ta],graphic:Ba})});return ua};a.formatEditInfo=function(ea,la){const {creatorField:va,creationDateField:Ba,editorField:aa,editDateField:ja}=ea;if(la){ea=la[ja];if("number"===typeof ea)return la=la[aa],{type:"edit",date:q.formatDate(ea,da),user:la};ea=la[Ba];return"number"===typeof ea?(la=la[va],{type:"create",
date:q.formatDate(ea,da),user:la}):null}};a.formatValueToFieldInfo=B;a.getAllFieldInfos=function(ea){const la=[];if(!ea)return la;const {fieldInfos:va,content:Ba}=ea;va&&la.push(...va);if(!Ba||!Array.isArray(Ba))return la;Ba.forEach(aa=>{"fields"===aa.type&&(aa=aa&&aa.fieldInfos)&&la.push(...aa)});return la};a.getFieldInfo=r;a.getFieldInfoLabel=function(ea,la){return(la=l(la,null==ea?void 0:ea.fieldName))?la.title||null:ea?ea.label||ea.fieldName:null};a.getFixedFieldName=h;a.getFixedFieldNames=function(ea,
la){return ea&&ea.map(va=>h(va,la))};a.getSourceLayer=function(ea){if(!f.isNone(ea))return ea.get("sourceLayer")||ea.get("layer")};a.graphicCallback=function(ea,la){return p.apply(this,arguments)};a.htmlEntities=function(ea){return ea.replace(Ea,la=>`&#${la.charCodeAt(0)};`)};a.isExpressionField=e;a.isRelatedField=Q;a.queryUpdatedFeature=function(ea,la){return L.apply(this,arguments)};a.shouldOpenInNewTab=function(ea=""){if(ea)return!ia.test(ea.trim().toLowerCase())};a.substituteAttributes=w;a.substituteFieldsInLinksAndAttributes=
function({attributes:ea,globalAttributes:la,layer:va,text:Ba,expressionAttributes:aa,fieldInfoMap:ja}){return Ba?w({formattedAttributes:la,template:A(Ba,{...la,...aa,...ea},va),fieldInfoMap:ja}):""};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/Attachments/support/attachmentUtils":function(){define(["exports","../../../assets"],function(a,b){a.getIconPath=function(c){const g=b.getAssetUrl("esri/themes/base/images/files/");return c?"text/plain"===c?`${g}text-32.svg`:"application/pdf"===
c?`${g}pdf-32.svg`:"text/csv"===c?`${g}csv-32.svg`:"application/gpx+xml"===c?`${g}gpx-32.svg`:"application/x-dwf"===c?`${g}cad-32.svg`:"application/postscript"===c||"application/json"===c||"text/xml"===c||"model/vrml"===c?`${g}code-32.svg`:"application/x-zip-compressed"===c||"application/x-7z-compressed"===c||"application/x-gzip"===c||"application/x-tar"===c||"application/x-gtar"===c||"application/x-bzip2"===c||"application/gzip"===c||"application/x-compress"===c||"application/x-apple-diskimage"===
c||"application/x-rar-compressed"===c||"application/zip"===c?`${g}zip-32.svg`:-1!==c.indexOf("image/")?`${g}image-32.svg`:-1!==c.indexOf("audio/")?`${g}sound-32.svg`:-1!==c.indexOf("video/")?`${g}video-32.svg`:-1!==c.indexOf("msexcel")||-1!==c.indexOf("ms-excel")||-1!==c.indexOf("spreadsheetml")?`${g}excel-32.svg`:-1!==c.indexOf("msword")||-1!==c.indexOf("ms-word")||-1!==c.indexOf("wordprocessingml")?`${g}word-32.svg`:-1!==c.indexOf("powerpoint")||-1!==c.indexOf("presentationml")?`${g}report-32.svg`:
`${g}generic-32.svg`:`${g}generic-32.svg`};a.isSupportedImage=function(c){c=c.toLowerCase();return"image/bmp"===c||"image/emf"===c||"image/exif"===c||"image/gif"===c||"image/x-icon"===c||"image/jpeg"===c||"image/png"===c||"image/tiff"===c||"image/x-wmf"===c};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/support/decorators/messageBundle":function(){define(["exports"],function(a){a.messageBundle=function(b){return function(c,g){c.hasOwnProperty("_messageBundleProps")||(c._messageBundleProps=
c._messageBundleProps?c._messageBundleProps.slice():[]);c._messageBundleProps.push({bundlePath:b,propertyName:g})}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/support/jsxFactory":function(){define(["exports","./jsxWidgetSupport"],function(a,b){var c=function(f,k){for(var q=0,v=f.length;q<v;q++){var t=f[q];Array.isArray(t)?c(t,k):null!==t&&void 0!==t&&!1!==t&&(t.hasOwnProperty("vnodeSelector")||(t={vnodeSelector:"",properties:void 0,children:void 0,text:t.toString(),domNode:null}),
k.push(t))}},g=function(f,k){for(var q=[],v=2;v<arguments.length;v++)q[v-2]=arguments[v];if(1===q.length&&"string"===typeof q[0])return{vnodeSelector:f,properties:k||void 0,children:void 0,text:q[0],domNode:null};v=[];c(q,v);return{vnodeSelector:f,properties:k||void 0,children:v,text:void 0,domNode:null}};a.tsx=function(f,k,...q){return"function"!==typeof f||b.isWidgetConstructor(f)?g(f,k,...q):f(k,...q)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/Feature/FeatureAttachments/FeatureAttachmentsViewModel":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ../../Attachments/AttachmentsViewModel".split(" "),
function(a,b,c,g,f,k,q,v,t){g=function(u){function m(p){p=u.call(this,p)||this;p.description=null;p.title=null;return p}a._inheritsLoose(m,u);return m}(t);b.__decorate([c.property()],g.prototype,"description",void 0);b.__decorate([c.property()],g.prototype,"title",void 0);return g=b.__decorate([v.subclass("esri.widgets.Feature.FeatureAttachments.FeatureAttachmentsViewModel")],g)})},"esri/widgets/Feature/support/FeatureElementInfo":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ../../Widget ../../support/Heading ../../support/widgetUtils ../../support/jsxFactory".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){g=function(e){function l(n,w){n=e.call(this,n,w)||this;n.description=null;n.headingLevel=2;n.title=null;return n}a._inheritsLoose(l,e);var h=l.prototype;h.render=function(){return p.tsx("div",{class:"esri-feature-element-info"},this.renderTitle(),this.renderDescription())};h.renderTitle=function(){const {title:n}=this;return n?p.tsx(u.Heading,{level:this.headingLevel,class:"esri-feature-element-info__title"},n):null};h.renderDescription=function(){const {description:n}=
this;return n?p.tsx("div",{key:"description",class:"esri-feature-element-info__description"},n):null};return l}(t);b.__decorate([c.property()],g.prototype,"description",void 0);b.__decorate([c.property()],g.prototype,"headingLevel",void 0);b.__decorate([c.property()],g.prototype,"title",void 0);return g=b.__decorate([v.subclass("esri.widgets.Feature.support.FeatureElementInfo")],g)})},"esri/widgets/support/Heading":function(){define("exports ../../core/mathUtils ./widgetUtils ../../core/has ../../core/Logger ./jsxFactory".split(" "),
function(a,b,c,g,f,k){const q={heading:"esri-widget__heading"};a.CSS=q;a.Heading=function(v,t){const u=`h${b.clamp(Math.ceil(v.level),1,6)}`;delete v.level;return k.tsx(u,{...v,class:c.classes(q.heading,v.class)},t)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/Feature/FeatureContent":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/aliasOf ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/subclass ../Widget ./FeatureContent/FeatureContentViewModel ./support/featureUtils ../support/widget ../support/jsxFactory".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l){g=function(h){function n(x,C){x=h.call(this,x,C)||this;x.creator=null;x.graphic=null;x.viewModel=null;x._addTargetToAnchors=D=>{Array.from(D.querySelectorAll("a")).forEach(A=>{p.shouldOpenInNewTab(A.href)&&!A.hasAttribute("target")&&A.setAttribute("target","_blank")})};return x}a._inheritsLoose(n,h);var w=n.prototype;w.renderLoading=function(){return l.tsx("div",{class:"esri-feature-content__loader-container",key:"loader"},l.tsx("div",{class:"esri-feature-content__loader"}))};
w.renderCreated=function(){var x;const C=null==(x=this.viewModel)?void 0:x.created;return C?C instanceof HTMLElement?l.tsx("div",{key:C,bind:C,afterCreate:this._attachToNode}):e.isWidget(C)?l.tsx("div",{key:C},!C.destroyed&&C.render()):l.tsx("div",{key:C,innerHTML:C,afterCreate:this._addTargetToAnchors}):null};w.render=function(){var x;const C=null==(x=this.viewModel)?void 0:x.state;return l.tsx("div",{class:"esri-feature-content"},"loading"===C?this.renderLoading():this.renderCreated())};w._attachToNode=
function(x){x.appendChild(this)};return n}(u);b.__decorate([c.aliasOf("viewModel.creator")],g.prototype,"creator",void 0);b.__decorate([c.aliasOf("viewModel.graphic")],g.prototype,"graphic",void 0);b.__decorate([v.property({type:m})],g.prototype,"viewModel",void 0);return g=b.__decorate([t.subclass("esri.widgets.Feature.FeatureContent")],g)})},"esri/widgets/Feature/FeatureContent/FeatureContentViewModel":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../Graphic ../../../core/Accessor ../../../core/HandleOwner ../../../core/watchUtils ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ../support/featureUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){g=function(l){function h(w){var x=l.call(this,w)||this;x._loadingPromise=null;x.created=null;x.creator=null;x.destroyer=null;x.graphic=null;x.handles.add(k.init(a._assertThisInitialized(x),"creator",C=>{x._destroyContent();x._createContent(C)}));return x}a._inheritsLoose(h,l);var n=h.prototype;n.destroy=function(){this._destroyContent()};n._destroyContent=function(){const {created:w,graphic:x,destroyer:C}=this;w&&(e.graphicCallback(C,{graphic:x}).catch(()=>null),
this._set("created",null))};n._createContent=function(){var w=a._asyncToGenerator(function*(x){var {graphic:C}=this;this._loadingPromise=x=e.graphicCallback(x,{graphic:C}).catch(()=>null);this.notifyChange("state");C=yield x;x===this._loadingPromise&&(this._loadingPromise=null,this.notifyChange("state"),this._set("created",C))});return function(x){return w.apply(this,arguments)}}();a._createClass(h,[{key:"state",get:function(){return this._loadingPromise?"loading":"ready"}}]);return h}(f.HandleOwnerMixin(g));
b.__decorate([q.property({readOnly:!0})],g.prototype,"created",void 0);b.__decorate([q.property()],g.prototype,"creator",void 0);b.__decorate([q.property()],g.prototype,"destroyer",void 0);b.__decorate([q.property({type:c})],g.prototype,"graphic",void 0);b.__decorate([q.property({readOnly:!0})],g.prototype,"state",null);return g=b.__decorate([p.subclass("esri.widgets.Feature.FeatureContent.FeatureContentViewModel")],g)})},"esri/widgets/support/widget":function(){define("exports ./decorators/accessibleHandler ./decorators/messageBundle ./decorators/renderable ./decorators/vmEvent ./jsxFactory ./widgetUtils".split(" "),
function(a,b,c,g,f,k,q){a.accessibleHandler=b.accessibleHandler;a.messageBundle=c.messageBundle;a.renderable=g.renderable;a.vmEvent=f.vmEvent;a.tsx=k.tsx;a.additionalAllowedTags=q.additionalAllowedTags;a.classes=q.classes;a.cssTransition=q.cssTransition;a.discardNode=q.discardNode;a.getCalciteThemeClass=q.getCalciteThemeClass;a.getThemeName=q.getThemeName;a.isActivationKey=q.isActivationKey;a.isDarkTheme=q.isDarkTheme;a.isRTL=q.isRTL;a.keepMenuItemWithinView=q.keepMenuItemWithinView;a.renderingSanitizer=
q.renderingSanitizer;a.safeAttrs=q.safeAttrs;a.storeNode=q.storeNode;a.hasDomNode=function(v){return v&&"function"===typeof v.postMixInProperties&&"function"===typeof v.buildRendering&&"function"===typeof v.postCreate&&"function"===typeof v.startup};a.isWidget=function(v){return v&&"function"===typeof v.render};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/support/decorators/accessibleHandler":function(){define(["exports","../widgetUtils"],function(a,b){function c(g){return function(f,
...k){var q;({type:q}=f);(q=f instanceof KeyboardEvent||"keyup"===q||"keydown"===q||"keypress"===q)?b.isActivationKey(f.key)&&(f.preventDefault(),f.stopPropagation(),f.target.click()):g.call(this,f,...k)}}a.accessibleHandler=function(){return function(g,f){if(!g[f])throw new TypeError(`Cannot auto bind undefined function '${f}'`);return{value:c(g[f])}}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/support/decorators/renderable":function(){define(["exports","../../../core/deprecate",
"../../../core/has","../../../core/Logger"],function(a,b,c,g){a.renderable=function(f){return function(k,q){c("esri-deprecation-warnings")&&b.deprecated(g.getLogger("esri.core.accessorSupport.decorators"),"'@renderable()' decorator",{version:"4.19",warnOnce:!0})}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/support/decorators/vmEvent":function(){define(["exports","./propUtils"],function(a,b){a.vmEvent=function(c){return g=>{g.hasOwnProperty("_delegatedEventNames")||(g._delegatedEventNames=
g._delegatedEventNames?g._delegatedEventNames.slice():[]);g=g._delegatedEventNames;const f=Array.isArray(c)?c:b.splitProps(c);g.push(...f)}};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/support/decorators/propUtils":function(){define(["exports"],function(a){a.normalizePropNames=function(b,c){return b.map(g=>{g=0===g.indexOf(c)?g:`${c}.${g}`;return g})};a.splitProps=function(b){return b.split(",").map(c=>c.trim())};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/Feature/FeatureFields":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/watchUtils ../../core/accessorSupport/decorators/aliasOf ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/subclass ../Widget ./FeatureFields/FeatureFieldsViewModel ./support/FeatureElementInfo ../support/uriUtils ../support/widgetUtils ../support/decorators/messageBundle ../support/jsxFactory".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w){f=function(x){function C(A,B){A=x.call(this,A,B)||this;A._featureElementInfo=null;A.attributes=null;A.description=null;A.expressionInfos=null;A.fieldInfos=null;A.title=null;A.viewModel=new p;A.messages=null;A.messagesURIUtils=null;return A}a._inheritsLoose(C,x);var D=C.prototype;D.initialize=function(){this._featureElementInfo=new e;c.init(this,["viewModel.description","viewModel.title"],()=>this._setupFeatureElementInfo())};D.destroy=function(){this._featureElementInfo.destroy()};
D.renderFieldInfo=function(A,B){var {attributes:r}=this.viewModel;const z=A.fieldName,E=A.label||z;r=r?null==r[z]?"":r[z]:"";A=!(!A.format||!A.format.dateFormat);r="number"!==typeof r||A?l.autoLink(this.messagesURIUtils,r):this._forceLTR(r);A={["esri-feature-fields__field-data--date"]:A};return w.tsx("tr",{key:`fields-element-info-row-${z}-${B}`},w.tsx("th",{key:`fields-element-info-row-header-${z}-${B}`,class:"esri-feature-fields__field-header",innerHTML:E}),w.tsx("td",{key:`fields-element-info-row-data-${z}-${B}`,
class:this.classes("esri-feature-fields__field-data",A),innerHTML:r}))};D.renderFields=function(){const {formattedFieldInfos:A}=this.viewModel;return A.length?w.tsx("table",{class:"esri-widget__table",summary:this.messages.fieldsSummary},w.tsx("tbody",null,A.map((B,r)=>this.renderFieldInfo(B,r)))):null};D.render=function(){var A;return w.tsx("div",{class:"esri-feature-fields"},null==(A=this._featureElementInfo)?void 0:A.render(),this.renderFields())};D._setupFeatureElementInfo=function(){const {description:A,
title:B}=this;this._featureElementInfo.set({description:A,title:B})};D._forceLTR=function(A){return`&lrm;${A}`};return C}(m);b.__decorate([g.aliasOf("viewModel.attributes")],f.prototype,"attributes",void 0);b.__decorate([g.aliasOf("viewModel.description")],f.prototype,"description",void 0);b.__decorate([g.aliasOf("viewModel.expressionInfos")],f.prototype,"expressionInfos",void 0);b.__decorate([g.aliasOf("viewModel.fieldInfos")],f.prototype,"fieldInfos",void 0);b.__decorate([g.aliasOf("viewModel.title")],
f.prototype,"title",void 0);b.__decorate([t.property({type:p})],f.prototype,"viewModel",void 0);b.__decorate([t.property(),n.messageBundle("esri/widgets/Feature/t9n/Feature")],f.prototype,"messages",void 0);b.__decorate([t.property(),n.messageBundle("esri/widgets/support/t9n/uriUtils")],f.prototype,"messagesURIUtils",void 0);return f=b.__decorate([u.subclass("esri.widgets.Feature.FeatureFields")],f)})},"esri/widgets/Feature/FeatureFields/FeatureFieldsViewModel":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ../../../popup/ExpressionInfo ../../../popup/FieldInfo ../support/featureUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){c=function(e){function l(h){h=e.call(this,h)||this;h.attributes=null;h.expressionInfos=null;h.description=null;h.fieldInfos=null;h.title=null;return h}a._inheritsLoose(l,e);a._createClass(l,[{key:"formattedFieldInfos",get:function(){const {expressionInfos:h,fieldInfos:n}=this,w=[];null==n?void 0:n.forEach(x=>{if(!x.hasOwnProperty("visible")||x.visible)x=x.clone(),x.label=p.getFieldInfoLabel(x,h),w.push(x)});return w}}]);return l}(c);b.__decorate([g.property()],c.prototype,
"attributes",void 0);b.__decorate([g.property({type:[u]})],c.prototype,"expressionInfos",void 0);b.__decorate([g.property()],c.prototype,"description",void 0);b.__decorate([g.property({type:[m]})],c.prototype,"fieldInfos",void 0);b.__decorate([g.property({readOnly:!0})],c.prototype,"formattedFieldInfos",null);b.__decorate([g.property()],c.prototype,"title",void 0);return c=b.__decorate([t.subclass("esri.widgets.Feature.FeatureFields.FeatureFieldsViewModel")],c)})},"esri/widgets/support/uriUtils":function(){define(["exports",
"../../core/string"],function(a,b){function c(f){let k=null;g.some(q=>{q.pattern.test(f)&&(k=q);return!!k});return k}const g=[{pattern:/^\s*(https?:\/\/([^\s]+))\s*$/i,target:"_blank",label:"{messages.view}"},{pattern:/^\s*(tel:([^\s]+))\s*$/i,label:"{hierPart}"},{pattern:/^\s*(mailto:([^\s]+))\s*$/i,label:"{hierPart}"},{pattern:/^\s*(arcgis-appstudio-player:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"App Studio Player"},{pattern:/^\s*(arcgis-collector:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",
appName:"Collector"},{pattern:/^\s*(arcgis-explorer:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Explorer"},{pattern:/^\s*(arcgis-navigator:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Navigator"},{pattern:/^\s*(arcgis-survey123:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Survey123"},{pattern:/^\s*(arcgis-trek2there:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Trek2There"},{pattern:/^\s*(arcgis-workforce:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",
appName:"Workforce"},{pattern:/^\s*(iform:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"iForm"},{pattern:/^\s*(flow:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"FlowFinity"},{pattern:/^\s*(lfmobile:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Laserfische"},{pattern:/^\s*(mspbi:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Microsoft Power Bi"}];a.autoLink=function(f,k){if("string"!==typeof k||!k)return k;const q=c(k);if(!q)return k;const v=k.match(q.pattern);
f=b.replace(b.replace(q.label,{messages:f,hierPart:v&&v[2]}),{appName:q.appName});return k.replace(q.pattern,`<a${q.target?` target="${q.target}"`:""} href="$1"${"_blank"===q.target?' rel\x3d"noreferrer"':""}>${f}</a>`)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/Feature/FeatureMedia":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/events ../../core/watchUtils ../../core/accessorSupport/decorators/aliasOf ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/subclass ../Widget ./FeatureMedia/FeatureMediaViewModel ./support/FeatureElementInfo ./support/featureUtils ../support/chartUtils ../support/widgetUtils ../support/decorators/messageBundle ../support/jsxFactory".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C){k=function(D){function A(r,z){r=D.call(this,r,z)||this;r._refreshTimer=null;r._refreshIntervalInfo=null;r._featureElementInfo=null;r.attributes=null;r.activeMediaInfoIndex=null;r.description=null;r.fieldInfoMap=null;r.layer=null;r.mediaInfos=null;r.popupTemplate=null;r.relatedInfos=null;r.title=null;r.viewModel=new e;r.messages=null;return r}a._inheritsLoose(A,D);var B=A.prototype;B.initialize=function(){this._featureElementInfo=new l;this.own(g.init(this,
["viewModel.activeMediaInfo","viewModel.activeMediaInfoIndex"],()=>this._setupMediaRefreshTimer()),g.init(this,["viewModel.description","viewModel.title"],()=>this._setupFeatureElementInfo()))};B.destroy=function(){this._clearMediaRefreshTimer();this._featureElementInfo.destroy()};B.render=function(){var r;return C.tsx("div",{bind:this,class:"esri-feature-media",onkeyup:this._handleMediaKeyup},null==(r=this._featureElementInfo)?void 0:r.render(),this.renderMedia())};B.renderMedia=function(){const {formattedMediaInfoCount:r}=
this.viewModel;return r?C.tsx("div",{key:"media-element-container",class:"esri-feature-media__container"},this.renderMediaPageButton("previous"),this.renderMediaInfo(),this.renderMediaPageButton("next")):null};B.renderImageMediaInfo=function(r){var {_refreshIntervalInfo:z}=this;const {activeMediaInfoIndex:E,formattedMediaInfoCount:F}=this.viewModel,{value:G,refreshInterval:N,altText:K,title:I,type:J}=r,{sourceURL:L,linkURL:Q}=G;r=h.shouldOpenInNewTab(Q)?"_blank":"_self";const W="_blank"===r?"noreferrer":
"";z=N?z:null;z=C.tsx("img",{alt:K||I,key:`media-${J}-${E}-${F}-${z?z.timestamp:0}`,src:z?z.sourceURL:L});return(r=Q?C.tsx("a",{title:I,href:Q,rel:W,target:r},z):null)?r:z};B.renderChartMediaInfo=function(r){const {activeMediaInfoIndex:z,formattedMediaInfoCount:E}=this.viewModel;return C.tsx("div",{key:`media-${r.type}-${z}-${E}`,bind:this,class:"esri-feature-media__chart",afterCreate:this._getChartDependencies})};B.renderMediaInfoType=function(){const {activeMediaInfo:r}=this.viewModel;return r?
"image"===r.type?this.renderImageMediaInfo(r):-1!==r.type.indexOf("chart")?this.renderChartMediaInfo(r):null:null};B.renderMediaInfo=function(){var {activeMediaInfo:r}=this.viewModel;if(!r)return null;const z=r.title?C.tsx("div",{key:"media-title",class:"esri-feature-media__item-title",innerHTML:r.title}):null;r=r.caption?C.tsx("div",{key:"media-caption",class:"esri-feature-media__item-caption",innerHTML:r.caption}):null;return C.tsx("div",{key:"media-container",class:"esri-feature-media__item-container"},
C.tsx("div",{key:"media-item-container",class:"esri-feature-media__item"},this.renderMediaInfoType()),z,r)};B.renderMediaPageButton=function(r){if(2>this.viewModel.formattedMediaInfoCount)return null;const z=(r="previous"===r)?this.messages.previous:this.messages.next,E=r?this.classes("esri-feature-media__button","esri-feature-media__previous"):this.classes("esri-feature-media__button","esri-feature-media__next"),F=r?this.classes("esri-feature-media__icon","esri-feature-media__previous-icon","esri-icon-left-triangle-arrow"):
this.classes("esri-feature-media__icon","esri-feature-media__next-icon","esri-icon-right-triangle-arrow"),G=r?this.classes("esri-feature-media__icon","esri-feature-media__previous-icon--rtl","esri-icon-right-triangle-arrow"):this.classes("esri-feature-media__icon","esri-feature-media__next-icon--rtl","esri-icon-left-triangle-arrow");return C.tsx("button",{type:"button",key:r?"media-previous":"media-next",title:z,"aria-label":z,tabIndex:0,class:E,bind:this,onclick:r?this._previous:this._next},C.tsx("span",
{"aria-hidden":"true",class:F}),C.tsx("span",{"aria-hidden":"true",class:G}))};B._setupFeatureElementInfo=function(){const {description:r,title:z}=this;this._featureElementInfo.set({description:r,title:z})};B._next=function(){this.viewModel.next()};B._previous=function(){this.viewModel.previous()};B._getChartDependencies=function(){var r=a._asyncToGenerator(function*(z){const E=yield n.loadChartsModule(),{activeMediaInfo:F}=this.viewModel;this._renderChart({chartDiv:z,mediaInfo:F,chartsModule:E})});
return function(z){return r.apply(this,arguments)}}();B._handleMediaKeyup=function(r){const z=c.eventKey(r);"ArrowLeft"===z&&(r.stopPropagation(),this.viewModel.previous());"ArrowRight"===z&&(r.stopPropagation(),this.viewModel.next())};B._renderChart=function(r){const {chartsModule:z,chartDiv:E,mediaInfo:F}=r,{value:G,type:N}=F,{am4core:K}=z,I=n.getColorSet(K);w.isDarkTheme()&&K.useTheme(z.am4themes_dark);K.useTheme(z.am4themes_animated);K.useTheme(function(J){J instanceof K.ColorSet&&I&&(J.list=
I)});r="pie-chart"===N?this._createPieChart(r):this._createXYChart(r);E.setAttribute("aria-label",F.altText||F.title);r.data=G.series.map(J=>({tooltip:J.tooltip,value:J.value})).filter(J=>"pie-chart"===N?0<J.value:!0)};B._customizeChartTooltip=function(r,z){r.label.wrap=!0;r.label.maxWidth=200;r.autoTextColor=!1;r.getFillFromObject=!1;r.label.fill=z.color("#ffffff");r.background.fill=z.color({r:0,g:0,b:0,a:.7})};B._createPieChart=function(r){const {chartDiv:z,chartsModule:E}=r,{am4core:F,am4charts:G}=
E;r=F.create(z,G.PieChart);r.rtl=w.isRTL();const N=r.series.push(new G.PieSeries);N.labels.template.disabled=!0;N.ticks.template.disabled=!0;N.dataFields.value="value";N.dataFields.category="tooltip";this._customizeChartTooltip(N.tooltip,F);return r};B._getMinSeriesValue=function(r){let z=0;r.forEach(E=>z=Math.min(E.value,z));return z};B._createColumnChart=function(r,z){const {chartsModule:E,mediaInfo:F}=z;({value:z}=F);const {am4core:G,am4charts:N}=E,K=r.xAxes.push(new N.CategoryAxis);K.dataFields.category=
"tooltip";K.renderer.labels.template.disabled=!0;this._customizeChartTooltip(K.tooltip,G);K.tooltip.events.on("sizechanged",()=>{K.tooltip.dy=-K.tooltip.contentHeight});var I=r.yAxes.push(new N.ValueAxis);const J=I.renderer.labels.template;I.renderer.minLabelPosition=.05;I.renderer.maxLabelPosition=.95;I.min=this._getMinSeriesValue(z.series);this._customizeChartTooltip(I.tooltip,G);J.wrap=!0;I=r.series.push(new N.ColumnSeries);I.dataFields.valueY="value";I.dataFields.categoryX="tooltip";r.cursor=
new N.XYCursor;15<z.series.length&&(r.scrollbarX=new G.Scrollbar)};B._createBarChart=function(r,z){const {chartsModule:E,mediaInfo:F}=z;({value:z}=F);const {am4core:G,am4charts:N}=E,K=r.yAxes.push(new N.CategoryAxis);K.dataFields.category="tooltip";K.renderer.inversed=!0;K.renderer.labels.template.disabled=!0;this._customizeChartTooltip(K.tooltip,G);K.tooltip.events.on("sizechanged",()=>{K.tooltip.dx=K.tooltip.contentWidth});var I=r.xAxes.push(new N.ValueAxis);const J=I.renderer.labels.template;I.renderer.minLabelPosition=
.05;I.renderer.maxLabelPosition=.95;I.min=this._getMinSeriesValue(z.series);this._customizeChartTooltip(I.tooltip,G);J.wrap=!0;I=r.series.push(new N.ColumnSeries);I.dataFields.valueX="value";I.dataFields.categoryY="tooltip";r.cursor=new N.XYCursor;15<z.series.length&&(r.scrollbarY=new G.Scrollbar)};B._createLineChart=function(r,z){const {chartsModule:E,mediaInfo:F}=z;({value:z}=F);const {am4core:G,am4charts:N}=E,K=r.xAxes.push(new N.CategoryAxis);K.dataFields.category="tooltip";K.renderer.labels.template.disabled=
!0;this._customizeChartTooltip(K.tooltip,G);K.tooltip.events.on("sizechanged",()=>{K.tooltip.dy=-K.tooltip.contentHeight});var I=r.yAxes.push(new N.ValueAxis);const J=I.renderer.labels.template;I.renderer.minLabelPosition=.05;I.renderer.maxLabelPosition=.95;I.min=this._getMinSeriesValue(z.series);this._customizeChartTooltip(I.tooltip,G);J.wrap=!0;I=r.series.push(new N.LineSeries);I.dataFields.categoryX="tooltip";I.dataFields.valueY="value";r.cursor=new N.XYCursor;15<z.series.length&&(r.scrollbarX=
new G.Scrollbar)};B._createXYChart=function(r){const {chartDiv:z,chartsModule:E,mediaInfo:F}=r,{type:G}=F,{am4core:N,am4charts:K}=E,I=N.create(z,K.XYChart);I.rtl=w.isRTL();"column-chart"===G&&this._createColumnChart(I,r);"bar-chart"===G&&this._createBarChart(I,r);"line-chart"===G&&this._createLineChart(I,r);return I};B._clearMediaRefreshTimer=function(){const {_refreshTimer:r}=this;r&&(clearTimeout(r),this._refreshTimer=null)};B._updateMediaInfoTimestamp=function(r){const z=Date.now();this._refreshIntervalInfo=
{timestamp:z,sourceURL:this._getImageSource(r,z)};this.scheduleRender()};B._setupMediaRefreshTimer=function(){this._clearMediaRefreshTimer();const {activeMediaInfo:r}=this.viewModel;r&&"image"===r.type&&r.refreshInterval&&this._setRefreshTimeout(r)};B._setRefreshTimeout=function(r){const {refreshInterval:z,value:E}=r;z&&(r=6E4*z,this._updateMediaInfoTimestamp(E.sourceURL),this._refreshTimer=setInterval(()=>{this._updateMediaInfoTimestamp(E.sourceURL)},r))};B._getImageSource=function(r,z){const E=
-1!==r.indexOf("?")?"\x26":"?",[F,G=""]=r.split("#");return`${F}${E}timestamp=${z}${G?"#":""}${G}`};return A}(p);b.__decorate([f.aliasOf("viewModel.attributes")],k.prototype,"attributes",void 0);b.__decorate([f.aliasOf("viewModel.activeMediaInfoIndex")],k.prototype,"activeMediaInfoIndex",void 0);b.__decorate([f.aliasOf("viewModel.description")],k.prototype,"description",void 0);b.__decorate([f.aliasOf("viewModel.fieldInfoMap")],k.prototype,"fieldInfoMap",void 0);b.__decorate([f.aliasOf("viewModel.layer")],
k.prototype,"layer",void 0);b.__decorate([f.aliasOf("viewModel.mediaInfos")],k.prototype,"mediaInfos",void 0);b.__decorate([f.aliasOf("viewModel.popupTemplate")],k.prototype,"popupTemplate",void 0);b.__decorate([f.aliasOf("viewModel.relatedInfos")],k.prototype,"relatedInfos",void 0);b.__decorate([f.aliasOf("viewModel.title")],k.prototype,"title",void 0);b.__decorate([u.property({type:e})],k.prototype,"viewModel",void 0);b.__decorate([u.property(),x.messageBundle("esri/widgets/Feature/t9n/Feature")],
k.prototype,"messages",void 0);return k=b.__decorate([m.subclass("esri.widgets.Feature.FeatureMedia")],k)})},"esri/widgets/Feature/FeatureMedia/FeatureMediaViewModel":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ../../../popup/FieldInfo ../../../popup/content/support/ChartMediaInfoValueSeries ../support/featureUtils ../support/relatedFeatureUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){c=function(l){function h(w){w=l.call(this,w)||this;w.activeMediaInfoIndex=0;w.attributes=null;w.description=null;w.fieldInfoMap=null;w.formattedAttributes=null;w.expressionAttributes=null;w.layer=null;w.mediaInfos=null;w.popupTemplate=null;w.relatedInfos=null;w.title=null;return w}a._inheritsLoose(h,l);var n=h.prototype;n.setActiveMedia=function(w){this._setContentElementMedia(w)};n.next=function(){this._pageContentElementMedia(1)};n.previous=function(){this._pageContentElementMedia(-1)};
n._setContentElementMedia=function(w){const {formattedMediaInfoCount:x}=this;this.activeMediaInfoIndex=(w+x)%x};n._pageContentElementMedia=function(w){const {activeMediaInfoIndex:x}=this;this._setContentElementMedia(x+w)};n._formatMediaInfos=function(){const {attributes:w,mediaInfos:x,formattedAttributes:C,expressionAttributes:D,fieldInfoMap:A,layer:B}=this;return null==x?void 0:x.map(r=>{if(!r)return null;r.title=p.substituteFieldsInLinksAndAttributes({attributes:w,fieldInfoMap:A,globalAttributes:C,
expressionAttributes:D,layer:B,text:r.title});r.caption=p.substituteFieldsInLinksAndAttributes({attributes:w,fieldInfoMap:A,globalAttributes:C,expressionAttributes:D,layer:B,text:r.caption});r.altText=p.substituteFieldsInLinksAndAttributes({attributes:w,fieldInfoMap:A,globalAttributes:C,expressionAttributes:D,layer:B,text:r.altText});if("image"===r.type){var {value:z}=r;this._setImageValue({value:z,formattedAttributes:C,layer:B});return r.value.sourceURL?r:void 0}return"pie-chart"===r.type||"line-chart"===
r.type||"column-chart"===r.type||"bar-chart"===r.type?({value:z}=r,this._setChartValue({value:z,chartType:r.type,attributes:w,formattedAttributes:C,layer:B}),r):null}).filter(Boolean)};n._setImageValue=function(w){const {fieldInfoMap:x}=this,{value:C,formattedAttributes:D,layer:A}=w,{linkURL:B,sourceURL:r}=C;r&&(w=p.fixTokens(r,A),C.sourceURL=p.substituteAttributes({formattedAttributes:D,template:w,fieldInfoMap:x}));B&&(w=p.fixTokens(B,A),C.linkURL=p.substituteAttributes({formattedAttributes:D,template:w,
fieldInfoMap:x}))};n._setChartValue=function(w){const {value:x,attributes:C,formattedAttributes:D,chartType:A,layer:B}=w,{popupTemplate:r,relatedInfos:z}=this,{fields:E,normalizeField:F}=x;x.fields=p.getFixedFieldNames(E,B);F&&(x.normalizeField=p.getFixedFieldName(F,B));if(E.some(N=>!!(null!=D[N]||p.isRelatedField(N)&&z.size))){var G=null==r?void 0:r.fieldInfos;E.forEach(N=>{p.isRelatedField(N)?x.series=[...x.series,...this._getRelatedChartInfos({fieldInfos:G,fieldName:N,formattedAttributes:D,chartType:A,
value:x})]:(N=this._getChartOption({value:x,attributes:C,chartType:A,formattedAttributes:D,fieldName:N,fieldInfos:G}),x.series.push(N))})}};n._getRelatedChartInfos=function(w){var x;const {fieldInfos:C,fieldName:D,formattedAttributes:A,chartType:B,value:r}=w,z=[];w=e.getRelatedFieldInfo(D);const {layerId:E,fieldName:F}=w;w=null==(x=this.relatedInfos)?void 0:x.get(E.toString());if(!w)return z;const {relatedFeatures:G,relation:N}=w;if(!N||!G)return z;({cardinality:x}=N);G.forEach(K=>{const {attributes:I}=
K;I&&Object.keys(I).forEach(J=>{J===F&&z.push(this._getChartOption({value:r,attributes:I,formattedAttributes:A,fieldName:D,chartType:B,relatedFieldName:J,fieldInfos:C}))})});return"one-to-many"===x||"many-to-many"===x?z:[z[0]]};n._getTooltip=function({label:w,value:x,chartType:C}){return"pie-chart"===C?w:`${w}: ${x}`};n._getChartOption=function(w){const {value:x,attributes:C,formattedAttributes:D,fieldName:A,relatedFieldName:B,fieldInfos:r,chartType:z}=w;var {layer:E}=this;const {normalizeField:F,
tooltipField:G}=x;var N=F?p.isRelatedField(F)?C[e.getRelatedFieldInfo(F).fieldName]:C[F]:null;w=B&&void 0!==C[B]?C[B]:void 0!==C[A]?C[A]:D[A];const K=void 0===w?null:w&&N?w/N:w;w=new m({value:K});if(p.isRelatedField(A)){var I=e.getRelatedFieldInfo(A);var J=e.getRelatedFieldInfo(G);J=J?J.fieldName:null;E=p.formatValueToFieldInfo(K,{fieldInfos:r,fieldName:B,layer:E,preventPlacesFormatting:!!N});I=I?I.label||I.fieldName:B;w.tooltip=this._getTooltip({label:J&&void 0!==C[J]?C[J]:I,value:E,chartType:z});
return w}N=p.getFieldInfo(r,A);E=p.getFixedFieldName(A,E);N=G&&void 0!==D[G]?D[G]:p.getFieldInfoLabel(N||new u({fieldName:E}),null==(I=this.popupTemplate)?void 0:I.expressionInfos);w.tooltip=this._getTooltip({label:N,value:D[E],chartType:z});return w};a._createClass(h,[{key:"activeMediaInfo",get:function(){return this.formattedMediaInfos[this.activeMediaInfoIndex]||null}},{key:"formattedMediaInfos",get:function(){return this._formatMediaInfos()||[]}},{key:"formattedMediaInfoCount",get:function(){return this.formattedMediaInfos.length}}]);
return h}(c);b.__decorate([g.property()],c.prototype,"activeMediaInfoIndex",void 0);b.__decorate([g.property({readOnly:!0})],c.prototype,"activeMediaInfo",null);b.__decorate([g.property()],c.prototype,"attributes",void 0);b.__decorate([g.property()],c.prototype,"description",void 0);b.__decorate([g.property()],c.prototype,"fieldInfoMap",void 0);b.__decorate([g.property()],c.prototype,"formattedAttributes",void 0);b.__decorate([g.property()],c.prototype,"expressionAttributes",void 0);b.__decorate([g.property({readOnly:!0})],
c.prototype,"formattedMediaInfos",null);b.__decorate([g.property()],c.prototype,"layer",void 0);b.__decorate([g.property({readOnly:!0})],c.prototype,"formattedMediaInfoCount",null);b.__decorate([g.property()],c.prototype,"mediaInfos",void 0);b.__decorate([g.property()],c.prototype,"popupTemplate",void 0);b.__decorate([g.property()],c.prototype,"relatedInfos",void 0);b.__decorate([g.property()],c.prototype,"title",void 0);return c=b.__decorate([t.subclass("esri.widgets.Feature.FeatureMedia.FeatureMediaViewModel")],
c)})},"esri/widgets/Feature/support/relatedFeatureUtils":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../request ../../../core/Error ../../../core/Logger ../../../core/promiseUtils ../../../layers/support/fieldUtils ../../../rest/support/Query ../../../rest/support/RelationshipQuery ../../../rest/support/StatisticDefinition ../../../tasks/QueryTask ./featureUtils".split(" "),function(a,b,c,g,f,k,q,v,t,u,m,p){function e(r,z){if(!z.relationships)return null;let E=null;
({relationships:z}=z);z.some(F=>F.id===parseInt(r,10)?(E=F,!0):!1);return E}function l({originRelationship:r,relationships:z,layerId:E}){let F;z&&z.some(G=>{`${G.relatedTableId}`===E&&G.id===r.id&&(F=G);return!!F});return F}function h(r,z){z=z.toLowerCase();for(const E in r)if(E.toLowerCase()===z)return r[E];return null}function n(r,z,E,F){const G=new t;G.outFields=["*"];G.relationshipId="number"===typeof z.id?z.id:parseInt(z.id,10);G.objectIds=[r.attributes[E.objectIdField]];return E.queryRelatedFeatures(G,
F)}function w(r,z,E){let F=0;const G=[];for(;F<z.length;)G.push(`${r} IN (${z.slice(F,E+F)})`),F+=E;return G.join(" OR ")}function x(r,z,E,F){return C.apply(this,arguments)}function C(){C=b._asyncToGenerator(function*(r,z,E,F){var G=E.layerId.toString();const {layerInfo:N,queryTask:K,relation:I,relatedFields:J,outStatistics:L}=z;G=l({originRelationship:I,relationships:N.relationships,layerId:G});if(G.relationshipTableId&&G.keyFieldInRelationshipTable){E=(yield n(r,G,E,F))[r.attributes[E.objectIdField]];
if(!E)return null;const Q=E.features.map(W=>W.attributes[N.objectIdField]);if(0<(null==L?void 0:L.length)&&N.supportsStatistics)return z=new v,z.where=w(N.objectIdField,Q,1E3),z.outFields=J,z.outStatistics=L,z={features:Promise.resolve(E),statsFeatures:K.execute(z)},k.eachAlways(z)}return(G=null==G?void 0:G.keyField)?(E=q.isNumericField(D(N.fields,G)),r=h(r.attributes,I.keyField),G=E?`${G}=${r}`:`${G}='${r}'`,r=K.execute(new v({where:G,outFields:z.relatedFields}),F),z=z.outStatistics&&0<z.outStatistics.length&&
N.supportsStatistics?K.execute(new v({where:G,outFields:z.relatedFields,outStatistics:z.outStatistics}),F):null,F={features:r},z&&(F.statsFeatures=z),k.eachAlways(F)):null});return C.apply(this,arguments)}function D(r,z){if(null!=r){z=z.toLowerCase();for(const E of r)if(E&&E.name.toLowerCase()===z)return E}return null}const A=f.getLogger("esri.widgets.Feature.support.relatedFeatureUtils"),B=new Map;a.createRelatedInfo=function(r,z){if(r=e(r,z)){var E=`${z.url}/${r.relatedTableId}`;z=new m({url:E,
sourceSpatialReference:z.spatialReference});return{url:E,queryTask:z,relation:r,relatedFields:[],outStatistics:[]}}};a.getDestinationRelation=l;a.getRelatedFieldInfo=function(r){if(!p.isRelatedField(r))return null;const [z,E]=r.split("/").slice(1);return{layerId:z,fieldName:E}};a.queryLayerInfos=function({relatedInfos:r,layer:z},E){const F={};r.forEach((G,N)=>{({relation:G}=G);if(!G)throw N=new g("relation-required","A relation is required on a layer to retrieve related records."),A.error(N),N;({relatedTableId:G}=
G);if("number"!==typeof G)throw N=new g("A related table ID is required on a layer to retrieve related records."),A.error(N),N;G=`${z.url}/${G}`;const K=B.get(G),I=K?K:c(G,{query:{f:"json"},signal:E&&E.signal});K||B.set(G,I);F[N]=I});return k.eachAlways(F)};a.queryRelatedFeatures=function({graphic:r,relatedInfos:z,layer:E},F){const G={};z.forEach((N,K)=>{N.layerInfo&&(G[K]=x(r,N,E,F))});return k.eachAlways(G)};a.setRelatedFeatures=function(r,z){if(z&&r){var {features:E,statsFeatures:F}=r;r=E&&E.value;
z.relatedFeatures=r?r.features:[];r=F&&F.value;z.relatedStatsFeatures=r?r.features:[]}};a.updateRelatedInfo=function({relatedInfo:r,fieldName:z,fieldInfo:E}){r.relatedFields.push(z);E.statisticType&&(z=new u({statisticType:E.statisticType,onStatisticField:z,outStatisticFieldName:z}),r.outStatistics.push(z))};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/support/chartUtils":function(){define("require exports ../../chunks/_rollupPluginBabelHelpers ../../intl ../../core/has ../../intl/locale".split(" "),
function(a,b,c,g,f,k){function q(e){if(!e)return"en-us";if(u.has(e.toLowerCase()))return e.toLowerCase();{e=e.split("-")[0].toLowerCase();let h=null;for(l of u.keys())if(l.startsWith(e)){h=l;break}var l=h}return l||"en-us"}function v(){v=c._asyncToGenerator(function*(e=k.getLocale()){e=q(e);if(m&&e===p)return m;m=(new Promise(function(l,h){a(["../../chunks/index"],l,h)})).then(function(l){return l.index});p=e;try{const [l,h]=yield Promise.all([m,u.get(p)()]);p===e&&(l.am4core.options.defaultLocale=
h.default);l.am4core.options.suppressWarnings=!0;l.am4core.options.autoDispose=!0}catch{return p=m=null}return m});return v.apply(this,arguments)}g="#ffffff #858585 #ffbebe #ffebbe #ffebaf #ffffbe #e9ffbe #d3ffbe #beffe8 #bee8ff #bed2ff #e8beff #ffbee8 #ebebeb #707070 #ff7f7f #ffa77f #ffd37f #ffff73 #d1ff73 #a3ff73 #73ffdf #73dfff #73b2ff #df73ff #ff73df #d6d6d6 #5c5c5c #ff0000 #ff5500 #ffaa00 #ffff00 #aaff00 #55ff00 #00ffc5 #00c5ff #0070ff #c500ff #ff00c5 #c2c2c2 #474747 #e60000 #e64c00 #e69800 #e6e600 #98e600 #4ce600 #00e6a9 #00a9e6 #005ce6 #a900e6 #e600a9 #adadad #242424 #a80000 #a83800 #a87000 #a8a800 #70a800 #38a800 #00a884 #0084a8 #004da8 #8400a8 #a80084 #999999 #1a1a1a #730000 #732600 #734c00 #737300 #4c7300 #267300 #00734c #004c73 #002673 #4c0073 #73004".split(" ");
var t=[{name:"default",colors:[].concat(g.slice(30,39),g.slice(28,30).reverse())},{name:"cat-dark",colors:"#ed5151 #149ece #a7c636 #9e559c #fc921f #ffde3e #f789d8 #b7814a #3caf99 #6b6bd6 #b54779 #7f7f7f".split(" ")},{name:"tropical-bliss",colors:"#fce138 #ff9399 #fcd27e #f1983c #a553b7 #b1a9d0 #6ecffc #4c81cd #fc6f84 #fc3e5a #6af689 #48885c".split(" ")},{name:"desert-blooms",colors:"#102432 #144d59 #ffc730 #ed9310 #a64f1b #661510 #d9351a #b31515 #4a0932 #8c213f #18382e #2c6954".split(" ")},{name:"under-the-sea",
colors:"#bf9727 #607100 #00734c #704489 #01acca #024e76 #f09100 #ea311f #c6004b #7570b3 #666666 #333333".split(" ")},{name:"vibrant-rainbow",colors:"#fffb00 #f5cb11 #9fd40c #46e39c #32b8a6 #7ff2fa #ac08cc #dd33ff #eb7200 #e8a784 #bf2e2e #6c7000".split(" ")},{name:"ocean-bay",colors:"#191921 #11495c #78b1c2 #454f4b #8f8f82 #9be0c0 #87b051 #f7ec88 #ebdcc1 #dbb658 #c43541 #75351e".split(" ")},{name:"prairie-summer",colors:"#332424 #751555 #d47013 #d68989 #211173 #82aad6 #7bfaeb #6ec9a8 #6b6408 #eada40 #ccc54a #1fc235".split(" ")},
{name:"pastel-chalk",colors:"#fffd99 #f5e6a4 #c1d48c #b8e3d0 #a0b8b5 #cbf7fa #d791f2 #dfc1eb #f2b983 #e8c4b2 #bf8e8e #94995c".split(" ")},{name:"seq-yellow-orange-red-bright",colors:"#910000 #b1260b #c0370f #e05919 #ef6a1d #ff7b22 #ffa143 #ffb454 #ffda74 #ffed85".split(" ")},{name:"seq-reds-bright",colors:"#57453b #7b4238 #9f4036 #c23d33 #d7483c #ec5244 #f3696c #f9816c #ffc4ae #fff0dc".split(" ")},{name:"seq-purples-bright",colors:"#4e465c #5a4a78 #695291 #775baa #8663c3 #946bdc #aa89e8 #c1a6f3 #d7c4ff #e6e1ff".split(" ")},
{name:"seq-blues-bright",colors:"#404d54 #435c6c #48799d #4b88b6 #4d96ce #50a5e7 #74bbed #98d0f3 #bce6f9 #e6faff".split(" ")},{name:"seq-greens-bright",colors:"#39544c #386757 #368165 #359b73 #33b581 #4bc392 #64d2a2 #7ce0b3 #cbf6d9 #f4ffea".split(" ")},{name:"seq-browns-bright",colors:"#524834 #715b38 #8f6e3c #ae8140 #cc9444 #eba748 #eeb664 #f0c47f #f9e0b7 #fff8eb".split(" ")}];const u=new Map([["ar",()=>(new Promise(function(e,l){a(["../../chunks/ar2"],e,l)})).then(function(e){return e.ar})],["bs-ba",
()=>(new Promise(function(e,l){a(["../../chunks/bs_BA"],e,l)})).then(function(e){return e.bs_BA})],["ca-es",()=>(new Promise(function(e,l){a(["../../chunks/ca_ES"],e,l)})).then(function(e){return e.ca_ES})],["cs-cz",()=>(new Promise(function(e,l){a(["../../chunks/cs_CZ"],e,l)})).then(function(e){return e.cs_CZ})],["da-dk",()=>(new Promise(function(e,l){a(["../../chunks/da_DK"],e,l)})).then(function(e){return e.da_DK})],["de-de",()=>(new Promise(function(e,l){a(["../../chunks/de_DE"],e,l)})).then(function(e){return e.de_DE})],
["de-ch",()=>(new Promise(function(e,l){a(["../../chunks/de_CH"],e,l)})).then(function(e){return e.de_CH})],["el-gr",()=>(new Promise(function(e,l){a(["../../chunks/el_GR"],e,l)})).then(function(e){return e.el_GR})],["en-us",()=>(new Promise(function(e,l){a(["../../chunks/en_US"],e,l)})).then(function(e){return e.en_US})],["en-ca",()=>(new Promise(function(e,l){a(["../../chunks/en_CA"],e,l)})).then(function(e){return e.en_CA})],["es-es",()=>(new Promise(function(e,l){a(["../../chunks/es_ES"],e,l)})).then(function(e){return e.es_ES})],
["et-ee",()=>(new Promise(function(e,l){a(["../../chunks/et_EE"],e,l)})).then(function(e){return e.et_EE})],["fi-fi",()=>(new Promise(function(e,l){a(["../../chunks/fi_FI"],e,l)})).then(function(e){return e.fi_FI})],["fr-fr",()=>(new Promise(function(e,l){a(["../../chunks/fr_FR"],e,l)})).then(function(e){return e.fr_FR})],["he-il",()=>(new Promise(function(e,l){a(["../../chunks/he_IL"],e,l)})).then(function(e){return e.he_IL})],["hr-hr",()=>(new Promise(function(e,l){a(["../../chunks/hr_HR"],e,l)})).then(function(e){return e.hr_HR})],
["hu-hu",()=>(new Promise(function(e,l){a(["../../chunks/hu_HU"],e,l)})).then(function(e){return e.hu_HU})],["id-id",()=>(new Promise(function(e,l){a(["../../chunks/id_ID"],e,l)})).then(function(e){return e.id_ID})],["it-it",()=>(new Promise(function(e,l){a(["../../chunks/it_IT"],e,l)})).then(function(e){return e.it_IT})],["ja-jp",()=>(new Promise(function(e,l){a(["../../chunks/ja_JP"],e,l)})).then(function(e){return e.ja_JP})],["ko-kr",()=>(new Promise(function(e,l){a(["../../chunks/ko_KR"],e,l)})).then(function(e){return e.ko_KR})],
["lt-lt",()=>(new Promise(function(e,l){a(["../../chunks/lt_LT"],e,l)})).then(function(e){return e.lt_LT})],["lv-lv",()=>(new Promise(function(e,l){a(["../../chunks/lv_LV"],e,l)})).then(function(e){return e.lv_LV})],["nb-no",()=>(new Promise(function(e,l){a(["../../chunks/nb_NO"],e,l)})).then(function(e){return e.nb_NO})],["nl-nl",()=>(new Promise(function(e,l){a(["../../chunks/nl_NL"],e,l)})).then(function(e){return e.nl_NL})],["pl-pl",()=>(new Promise(function(e,l){a(["../../chunks/pl_PL"],e,l)})).then(function(e){return e.pl_PL})],
["pt-br",()=>(new Promise(function(e,l){a(["../../chunks/pt_BR"],e,l)})).then(function(e){return e.pt_BR})],["pt-pt",()=>(new Promise(function(e,l){a(["../../chunks/pt_PT"],e,l)})).then(function(e){return e.pt_PT})],["ro-ro",()=>(new Promise(function(e,l){a(["../../chunks/ro_RO"],e,l)})).then(function(e){return e.ro_RO})],["ru-ru",()=>(new Promise(function(e,l){a(["../../chunks/ru_RU"],e,l)})).then(function(e){return e.ru_RU})],["sk-sk",()=>(new Promise(function(e,l){a(["../../chunks/sk_SK"],e,l)})).then(function(e){return e.sk_SK})],
["sl-sl",()=>(new Promise(function(e,l){a(["../../chunks/sl_SL"],e,l)})).then(function(e){return e.sl_SL})],["sr-rs",()=>(new Promise(function(e,l){a(["../../chunks/sr_RS"],e,l)})).then(function(e){return e.sr_RS})],["sv-se",()=>(new Promise(function(e,l){a(["../../chunks/sv_SE"],e,l)})).then(function(e){return e.sv_SE})],["th-th",()=>(new Promise(function(e,l){a(["../../chunks/th_TH"],e,l)})).then(function(e){return e.th_TH})],["tr-tr",()=>(new Promise(function(e,l){a(["../../chunks/tr_TR"],e,l)})).then(function(e){return e.tr_TR})],
["uk-ua",()=>(new Promise(function(e,l){a(["../../chunks/uk_UA"],e,l)})).then(function(e){return e.uk_UA})],["vi-vn",()=>(new Promise(function(e,l){a(["../../chunks/vi_VN"],e,l)})).then(function(e){return e.vi_VN})],["zh-cn",()=>(new Promise(function(e,l){a(["../../chunks/zh_Hans"],e,l)})).then(function(e){return e.zh_Hans})],["zh-hk",()=>(new Promise(function(e,l){a(["../../chunks/zh_Hant"],e,l)})).then(function(e){return e.zh_Hant})],["zh-tw",()=>(new Promise(function(e,l){a(["../../chunks/zh_Hant"],
e,l)})).then(function(e){return e.zh_Hant})]]);let m,p;b.getChartLocale=q;b.getColorSet=function(e,l="default"){const h=t.find(n=>n.name===l);return h?h.colors.map(n=>e.color(n)):null};b.loadChartsModule=function(){return v.apply(this,arguments)};Object.defineProperty(b,"__esModule",{value:!0})})},"esri/widgets/Feature/FeatureViewModel":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Graphic ../../core/Accessor ../../core/Handles ../../core/Logger ../../core/maybe ../../core/promiseUtils ../../core/throttle ../../core/watchUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../../popup/content/TextContent ./FeatureAttachments/FeatureAttachmentsViewModel ./FeatureContent/FeatureContentViewModel ./FeatureFields/FeatureFieldsViewModel ./FeatureMedia/FeatureMediaViewModel ./support/arcadeFeatureUtils ./support/featureUtils ./support/relatedFeatureUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r){const z=k.getLogger("esri.widgets.FeatureViewModel");g=function(E){function F(N){var K=E.call(this,N)||this;K._handles=new f;K._featureAbortController=null;K.graphicChangedThrottled=t.throttle(K.graphicChanged,1,a._assertThisInitialized(K));K._expressionAttributes=null;K.content=null;K.contentViewModels=[];K.defaultPopupTemplateEnabled=!1;K.formattedAttributes=null;K.lastEditInfo=null;K.relatedInfos=new Map;K.title="";K.view=null;K._handles.add(u.init(a._assertThisInitialized(K),
["graphic","_effectivePopupTemplate"],()=>K.graphicChangedThrottled()));return K}a._inheritsLoose(F,E);var G=F.prototype;G.destroy=function(){this._clear();this._cancelFeatureQuery();this._handles.destroy();this.graphic=this._handles=null;this._destroyContentViewModels();this.relatedInfos.clear()};G.setActiveMedia=function(N,K){N=this.contentViewModels[N];N instanceof D&&N.setActiveMedia(K)};G.nextMedia=function(N){N=this.contentViewModels[N];N instanceof D&&N.next()};G.previousMedia=function(N){N=
this.contentViewModels[N];N instanceof D&&N.previous()};G._clear=function(){this._set("title","");this._set("content",null);this._set("formattedAttributes",null)};G.graphicChanged=function(){var N=a._asyncToGenerator(function*(){this._cancelFeatureQuery();this._clear();const {graphic:K}=this;if(K){var I=v.createAbortController();this._featureAbortController=I;try{yield this._queryFeature({signal:I.signal})}catch(J){z.error("error","error loading popupTemplate for graphic",{error:J,graphic:K})}this._featureAbortController===
I&&(this._featureAbortController=null)}});return function(){return N.apply(this,arguments)}}();G._cancelFeatureQuery=function(){const {_featureAbortController:N}=this;N&&N.abort();this._featureAbortController=null};G._compileContent=function(N){this._destroyContentViewModels();if(this.graphic)return Array.isArray(N)?N.map((K,I)=>{if("attachments"===K.type)return this._compileAttachments(K,I);if("custom"===K.type)return this._compileCustom(K,I);if("fields"===K.type)return this._compileFields(K,I);
if("media"===K.type)return this._compileMedia(K,I);if("text"===K.type)return this._compileText(K,I)}):"string"===typeof N?this._compileText(new n({text:N}),0).text:N};G._destroyContentViewModels=function(){this.contentViewModels.forEach(N=>N&&!N.destroyed&&N.destroy());this._set("contentViewModels",[])};G._compileAttachments=function(N,K){const {graphic:I}=this,{description:J,title:L}=N;this.contentViewModels[K]=new w({graphic:I,...this._compileTitleAndDesc({title:L,description:J})});return N};G._compileCustom=
function(N,K){const {graphic:I}=this,{creator:J,destroyer:L}=N;this.contentViewModels[K]=new x({graphic:I,creator:J,destroyer:L});return N};G._compileTitleAndDesc=function({title:N,description:K}){const {_fieldInfoMap:I,_sourceLayer:J,graphic:L,formattedAttributes:Q,_expressionAttributes:W}=this,{attributes:V}=L,P=Q.global;return{title:B.substituteFieldsInLinksAndAttributes({attributes:V,fieldInfoMap:I,globalAttributes:P,expressionAttributes:W,layer:J,text:N}),description:B.substituteFieldsInLinksAndAttributes({attributes:V,
fieldInfoMap:I,globalAttributes:P,expressionAttributes:W,layer:J,text:K})}};G._compileFields=function(N,K){const {_effectivePopupTemplate:I,formattedAttributes:J}=this,L=N.clone();N=(null==N?void 0:N.fieldInfos)||(null==I?void 0:I.fieldInfos);const Q=null==I?void 0:I.expressionInfos,W={...J.global,...J.content[K]},{description:V,title:P}=L;N=new C({attributes:W,expressionInfos:Q,fieldInfos:N,...this._compileTitleAndDesc({title:P,description:V})});this.contentViewModels[K]=N;L.fieldInfos=N.formattedFieldInfos.slice(0);
return L};G._compileMedia=function(N,K){const {graphic:I,_fieldInfoMap:J,_effectivePopupTemplate:L,relatedInfos:Q,_sourceLayer:W,_expressionAttributes:V}=this;var {attributes:P}=I;const X=this.formattedAttributes.global;N=N.clone();const {description:U,mediaInfos:Z,title:oa}=N;P=new D({activeMediaInfoIndex:N.activeMediaInfoIndex||0,attributes:P,layer:W,fieldInfoMap:J,formattedAttributes:X,expressionAttributes:V,mediaInfos:Z,popupTemplate:L,relatedInfos:Q,...this._compileTitleAndDesc({title:oa,description:U})});
N.mediaInfos=P.formattedMediaInfos.slice(0);this.contentViewModels[K]=P;return N};G._compileText=function(N,K){N=N.clone();const {graphic:I,_fieldInfoMap:J,_sourceLayer:L,_expressionAttributes:Q}=this;if(N&&N.text){const {attributes:W}=I;N.text=B.substituteFieldsInLinksAndAttributes({attributes:W,fieldInfoMap:J,globalAttributes:this.formattedAttributes.global,expressionAttributes:Q,layer:L,text:N.text})}this.contentViewModels[K]=new x({graphic:I,creator:N.text});return N};G._compileLastEditInfo=function(){const {_effectivePopupTemplate:N,
_sourceLayer:K,graphic:I}=this;if(N){var {lastEditInfoEnabled:J}=N,L=null==K?void 0:K.editFieldsInfo;if(J&&L)return B.formatEditInfo(L,I.attributes)}};G._compileTitle=function(N){const {_fieldInfoMap:K,_sourceLayer:I,graphic:J,_expressionAttributes:L}=this,{attributes:Q}=J;return B.substituteFieldsInLinksAndAttributes({attributes:Q,fieldInfoMap:K,globalAttributes:this.formattedAttributes.global,expressionAttributes:L,layer:I,text:N})};G._getTitle=function(){var N=a._asyncToGenerator(function*(){const {_effectivePopupTemplate:K,
graphic:I}=this;return B.graphicCallback(null==K?void 0:K.title,{graphic:I})});return function(){return N.apply(this,arguments)}}();G._getContent=function(){var N=a._asyncToGenerator(function*(){const {_effectivePopupTemplate:K,graphic:I}=this;return B.graphicCallback(null==K?void 0:K.content,{graphic:I})});return function(){return N.apply(this,arguments)}}();G._queryFeature=function(){var N=a._asyncToGenerator(function*(K){const {_featureAbortController:I,_sourceLayer:J,graphic:L,_effectivePopupTemplate:Q,
spatialReference:W,map:V,view:P}=this,{content:{value:X},title:{value:U}}=yield v.eachAlways({content:this._getContent(),title:this._getTitle()});I===this._featureAbortController&&L&&(yield B.queryUpdatedFeature({graphic:L,popupTemplate:Q,layer:J,spatialReference:W},K),{expressionAttributes:{value:K}}=yield v.eachAlways({checkForRelatedFeatures:this._checkForRelatedFeatures(K),expressionAttributes:A.createCompiledExpressions({popupTemplate:this._effectivePopupTemplate,spatialReference:W,graphic:L,
map:V,view:P})}),I===this._featureAbortController&&L&&(this._expressionAttributes=K,this._set("formattedAttributes",this._createFormattedAttributes(X,K)),this._set("title",this._compileTitle(U)),this._set("lastEditInfo",this._compileLastEditInfo()||null),this._set("content",this._compileContent(X)||null)))});return function(K){return N.apply(this,arguments)}}();G._createFormattedAttributes=function(N,K){const {_effectivePopupTemplate:I,graphic:J,relatedInfos:L,_sourceLayer:Q,_fieldInfoMap:W}=this,
V={...J.attributes,...K},P={global:B.formatAttributes({fieldInfos:null==I?void 0:I.fieldInfos,graphic:J,attributes:V,layer:Q,fieldInfoMap:W,relatedInfos:L}),content:[]};Array.isArray(N)&&N.forEach((X,U)=>{"fields"===X.type&&X.fieldInfos&&(P.content[U]=B.formatAttributes({fieldInfos:X.fieldInfos,graphic:J,attributes:V,layer:Q,fieldInfoMap:W,relatedInfos:L}))});return P};G._checkForRelatedFeatures=function(N){const {graphic:K,_effectivePopupTemplate:I}=this;return this._queryRelatedInfos(K,B.getAllFieldInfos(I),
N)};G._queryRelatedInfos=function(){var N=a._asyncToGenerator(function*(K,I,J){const {relatedInfos:L,_sourceLayer:Q}=this;L.clear();const W=q.isSome(Q.associatedLayer)?yield Q.associatedLayer.load(J):Q;if(W){var V=I.filter(U=>U&&B.isRelatedField(U.fieldName));if(V&&V.length){I.forEach(U=>this._configureRelatedInfo(U,W));var P=yield r.queryLayerInfos({relatedInfos:L,layer:W},J);Object.keys(P).forEach(U=>{var Z;const oa=L.get(U.toString());U=null==(Z=P[U])?void 0:Z.value;oa&&U&&(oa.layerInfo=U.data)});
var X=yield r.queryRelatedFeatures({graphic:K,relatedInfos:L,layer:W},J);Object.keys(X).forEach(U=>{var Z;r.setRelatedFeatures(null==(Z=X[U])?void 0:Z.value,L.get(U.toString()))})}}});return function(K,I,J){return N.apply(this,arguments)}}();G._configureRelatedInfo=function(N,K){const {relatedInfos:I}=this,J=r.getRelatedFieldInfo(N.fieldName);if(J){var {layerId:L,fieldName:Q}=J;L&&(K=I.get(L.toString())||r.createRelatedInfo(L,K))&&(r.updateRelatedInfo({relatedInfo:K,fieldName:Q,fieldInfo:N}),this.relatedInfos.set(L,
K))}};a._createClass(F,[{key:"_effectivePopupTemplate",get:function(){return q.isSome(this.graphic)?this.graphic.getEffectivePopupTemplate(this.defaultPopupTemplateEnabled):null}},{key:"_fieldInfoMap",get:function(){return B.createfieldInfoMap(B.getAllFieldInfos(this._effectivePopupTemplate),this._sourceLayer)}},{key:"_sourceLayer",get:function(){return B.getSourceLayer(this.graphic)}},{key:"graphic",set:function(N){this._set("graphic",N?N.clone():null)}},{key:"spatialReference",get:function(){return this.get("view.spatialReference")||
null},set:function(N){void 0===N?this._clearOverride("spatialReference"):this._override("spatialReference",N)}},{key:"map",get:function(){return this.get("view.map")||null},set:function(N){void 0===N?this._clearOverride("map"):this._override("map",N)}},{key:"waitingForContent",get:function(){return!!this._featureAbortController}}]);return F}(g);b.__decorate([m.property()],g.prototype,"_featureAbortController",void 0);b.__decorate([m.property({readOnly:!0})],g.prototype,"_effectivePopupTemplate",null);
b.__decorate([m.property({readOnly:!0})],g.prototype,"_fieldInfoMap",null);b.__decorate([m.property({readOnly:!0})],g.prototype,"_sourceLayer",null);b.__decorate([m.property({readOnly:!0})],g.prototype,"content",void 0);b.__decorate([m.property({readOnly:!0})],g.prototype,"contentViewModels",void 0);b.__decorate([m.property({type:Boolean})],g.prototype,"defaultPopupTemplateEnabled",void 0);b.__decorate([m.property({readOnly:!0})],g.prototype,"formattedAttributes",void 0);b.__decorate([m.property({type:c,
value:null})],g.prototype,"graphic",null);b.__decorate([m.property({readOnly:!0})],g.prototype,"lastEditInfo",void 0);b.__decorate([m.property()],g.prototype,"relatedInfos",void 0);b.__decorate([m.property()],g.prototype,"spatialReference",null);b.__decorate([m.property({readOnly:!0})],g.prototype,"title",void 0);b.__decorate([m.property()],g.prototype,"map",null);b.__decorate([m.property({readOnly:!0})],g.prototype,"waitingForContent",null);b.__decorate([m.property()],g.prototype,"view",void 0);
return g=b.__decorate([h.subclass("esri.widgets.FeatureViewModel")],g)})},"esri/widgets/Feature/support/arcadeFeatureUtils":function(){define("require exports ../../../chunks/_rollupPluginBabelHelpers ../../../core/Logger ../../../core/promiseUtils ../../../layers/FeatureLayer ./featureUtils".split(" "),function(a,b,c,g,f,k,q){function v(C){return`<ul class="esri-widget__list">${C.map(D=>`<li>${"string"===typeof D?q.applyTextFormattingHTML(q.htmlEntities(D)):D}</li>`).join("")}</ul>`}function t(C){return`<table class="esri-widget__table">${C.keys().map(D=>
{var A=C.field(D);A="string"===typeof A?q.applyTextFormattingHTML(q.htmlEntities(A)):A;return`<tr><th>${D}</th><td>${A}</td></tr>`}).join("")}</table>`}function u({aggregatedFeatures:C,arcadeUtils:D,featureSetVars:A,context:B,viewInfo:r,map:z,graphic:E}){A.forEach(F=>{F=F.toLowerCase();var G={map:z,spatialReference:r.sr};"$map"===F&&(B.vars[F]=D.convertMapToFeatureSetCollection(G));"$layer"===F&&(B.vars[F]=D.convertFeatureLayerToFeatureSet(E.sourceLayer,r.sr));"$datastore"===F&&(B.vars[F]=D.convertServiceUrlToWorkspace(E.sourceLayer.url,
r.sr));if("$aggregatedfeatures"===F){G=E.layer;const {fields:N,objectIdField:K,geometryType:I,spatialReference:J,displayField:L}=G;G=new k({fields:N,objectIdField:K,geometryType:I,spatialReference:J,displayField:L,..."feature"===G.type?{templates:G.templates,typeIdField:G.typeIdField,types:G.types}:null,source:C});B.vars[F]=D.convertFeatureLayerToFeatureSet(G,r.sr)}})}function m(){return new Promise(function(C,D){a(["../../../support/arcadeUtils"],C,D)})}function p(C){return e.apply(this,arguments)}
function e(){e=c._asyncToGenerator(function*({graphic:C,view:D}){const {isAggregate:A,layer:B}=C;if(!A||!B||"2d"!==(null==D?void 0:D.type))return[];D=yield D.whenLayerView(B);if(!D.createQuery||!D.queryFeatures)return[];const r=D.createQuery();r.aggregateIds=[C.getObjectId()];({features:C}=yield D.queryFeatures(r));return C});return e.apply(this,arguments)}function l(C){return h.apply(this,arguments)}function h(){h=c._asyncToGenerator(function*({expressionAttributes:C,info:D,arcadeUtils:A,spatialReference:B,
map:r,graphic:z,view:E}){const F=`expression/${D.name}`,G=A.createSyntaxTree(D.expression),N=w.filter(I=>A.hasVariable(G,I));yield A.loadScriptDependencies(G,!0,N);const K=A.getViewInfo({spatialReference:B});B=A.createExecContext(z,K);B.useAsync=!0;E=yield p({graphic:z,view:E});u({aggregatedFeatures:E,arcadeUtils:A,featureSetVars:N,context:B,viewInfo:K,map:r,graphic:z});r=A.createFunction(G,B);r=yield A.executeAsyncFunction(r,B).catch(I=>x.error("arcade-execution-error",{error:I,graphic:z,expressionInfo:D}));
C[F]="string"===typeof r?q.applyTextFormattingHTML(q.htmlEntities(r)):Array.isArray(r)?v(r):r&&"esri.arcade.Dictionary"===r.declaredClass?t(r):r});return h.apply(this,arguments)}function n(){n=c._asyncToGenerator(function*({popupTemplate:C,spatialReference:D,graphic:A,map:B,view:r}){C=C.expressionInfos;const z=[],E={};if(!C||!C.length)return E;const F=yield m();for(const G of C)z.push(l({expressionAttributes:E,info:G,arcadeUtils:F,spatialReference:D,map:B,graphic:A,view:r}));yield f.eachAlways(z);
return E});return n.apply(this,arguments)}const w=["$datastore","$map","$layer","$aggregatedfeatures"],x=g.getLogger("esri.widgets.Feature.support.arcadeFeatureUtils");b.createCompiledExpressions=function(C){return n.apply(this,arguments)};Object.defineProperty(b,"__esModule",{value:!0})})},"esri/widgets/Feature/support/FeatureContentMixin":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ../../support/widget ../../support/jsxFactory".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){a.FeatureContentMixin=p=>{p=function(e){function l(){var h=e.apply(this,arguments)||this;h.renderNodeContent=n=>u.isWidget(n)&&!n.destroyed?m.tsx("div",{key:n},n.render()):n instanceof HTMLElement?m.tsx("div",{key:n,bind:n,afterCreate:h._attachToNode}):u.hasDomNode(n)?m.tsx("div",{key:n,bind:n.domNode,afterCreate:h._attachToNode}):null;return h}b._inheritsLoose(l,e);l.prototype._attachToNode=function(h){h.appendChild(this)};return l}(p);return p=c.__decorate([t.subclass("esri.widgets.Feature.ContentMixin")],
p)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/Spinner":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/promiseUtils ../core/watchUtils ../core/accessorSupport/decorators/aliasOf ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/subclass ./Widget ./Spinner/SpinnerViewModel ./support/widgetUtils ./support/jsxFactory".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n){q=function(w){function x(D,A){D=w.call(this,D,A)||this;D._animationDelay=500;D._animationPromise=null;D.location=null;D.view=null;D.viewModel=new l;D.visible=!1;return D}a._inheritsLoose(x,w);var C=x.prototype;C.initialize=function(){this.own([f.watch(this,"visible",D=>this._visibleChange(D))])};C.destroy=function(){this._animationPromise=null};C.show=function(D){const {location:A,promise:B}=D;A&&(this.viewModel.location=A);this.visible=!0;D=()=>this.hide();
B&&B.catch(()=>{}).then(D)};C.hide=function(){this.visible=!1};C.render=function(){var {visible:D}=this,{screenLocation:A}=this.viewModel;A=!!A;D={["esri-spinner--start"]:D&&A,["esri-spinner--finish"]:!D&&A};A=this._getPositionStyles();return n.tsx("div",{class:this.classes("esri-spinner",D),styles:A})};C._visibleChange=function(D){if(D)this.viewModel.screenLocationEnabled=!0;else{var A=g.after(this._animationDelay);this._animationPromise=A;A.catch(()=>{}).then(()=>{this._animationPromise===A&&(this.viewModel.screenLocationEnabled=
!1,this._animationPromise=null)})}};C._getPositionStyles=function(){const {screenLocation:D,view:A}=this.viewModel;if(!A||c.isNone(D))return{};const {padding:B}=A;return{left:`${D.x-B.left}px`,top:`${D.y-B.top}px`}};return x}(e);b.__decorate([k.aliasOf("viewModel.location")],q.prototype,"location",void 0);b.__decorate([k.aliasOf("viewModel.view")],q.prototype,"view",void 0);b.__decorate([m.property({type:l})],q.prototype,"viewModel",void 0);b.__decorate([k.aliasOf("viewModel.visible")],q.prototype,
"visible",void 0);return q=b.__decorate([p.subclass("esri.widgets.Spinner")],q)})},"esri/widgets/Spinner/SpinnerViewModel":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../support/AnchorElementViewModel".split(" "),function(a,b,c,g,f,k,q,v,t){g=function(u){function m(p){p=u.call(this,
p)||this;p.visible=!1;return p}a._inheritsLoose(m,u);return m}(t);b.__decorate([c.property()],g.prototype,"visible",void 0);return g=b.__decorate([v.subclass("esri.widgets.CompassViewModel")],g)})},"esri/widgets/support/AnchorElementViewModel":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Evented ../../core/Handles ../../core/maybe ../../core/watchUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p){c=function(e){function l(n){var w=e.call(this,n)||this;w._anchorHandles=new g;w.location=null;w.screenLocation=null;w.screenLocationEnabled=!1;w.view=null;w._anchorHandles.add([k.watch(a._assertThisInitialized(w),["screenLocationEnabled","location","view.size","view.stationary"],()=>w._updateScreenPointAndHandle()),k.watch(a._assertThisInitialized(w),["view","view.ready"],()=>w._wireUpView())]);return w}a._inheritsLoose(l,e);var h=l.prototype;h.destroy=function(){this.view=
null;this._anchorHandles&&this._anchorHandles.destroy();this._viewpointHandle=this._anchorHandles=null};h._wireUpView=function(){this._anchorHandles.remove("view");this._viewpointHandle=null;if(this.get("view.ready")){this._setScreenLocation();var {view:n}=this;n=k.pausable(n,"3d"===n.type?"camera":"viewpoint",()=>this._viewpointChange());this._anchorHandles.add(n,"view");this._viewpointHandle=n;this._toggleWatchingViewpoint()}};h._viewpointChange=function(){this._setScreenLocation();this.emit("view-change")};
h._updateScreenPointAndHandle=function(){this._setScreenLocation();this._toggleWatchingViewpoint()};h._toggleWatchingViewpoint=function(){const {_viewpointHandle:n,location:w,screenLocationEnabled:x}=this;n&&(w&&x?n.resume():n.pause())};h._setScreenLocation=function(){const {location:n,view:w,screenLocationEnabled:x}=this;var C=this.get("view.ready");C=x&&C&&f.isSome(n)?w.toScreen(n):null;this._set("screenLocation",C)};return l}(c.EventedAccessor);b.__decorate([q.property()],c.prototype,"location",
void 0);b.__decorate([q.property({readOnly:!0})],c.prototype,"screenLocation",void 0);b.__decorate([q.property()],c.prototype,"screenLocationEnabled",void 0);b.__decorate([q.property()],c.prototype,"view",void 0);return c=b.__decorate([p.subclass("esri.widgets.support.AnchorElementViewModel")],c)})},"esri/widgets/Popup/PopupViewModel":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../Graphic ../../symbols ../../core/Collection ../../core/Error ../../core/Handles ../../core/Logger ../../core/maybe ../../core/promiseUtils ../../core/watchUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../../geometry/support/webMercatorUtils ../../layers/Layer ../../support/actions/ActionBase ../../support/actions/ActionButton ../../support/actions/ActionToggle ../../symbols/support/symbolUtils ../../views/input/InputManager ../../views/support/layerViewUtils ../Feature/FeatureViewModel ./actions ./actionUtils ../support/AnchorElementViewModel ../support/GoTo ../../geometry/Point ../../symbols/SimpleFillSymbol".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n,w,x,C,D,A,B,r,z,E,F,G,N,K,I,J,L){const Q=k.ofType({key:"type",defaultKeyValue:"button",base:D,typeMap:{button:A,toggle:B}}),W=t.getLogger("esri.widgets.Popup.PopupViewModel");c=function(V){function P(U){U=V.call(this,U)||this;U._handles=new v;U._pendingPromises=new Set;U._fetchFeaturesController=null;U._selectedClusterFeature=null;U.featurePage=null;U.actions=new Q;U.defaultPopupTemplateEnabled=!1;U.autoCloseEnabled=!1;U.autoOpenEnabled=!0;U.browseClusterEnabled=
!1;U.content=null;U.featuresPerPage=20;U.featureViewModels=[];U.highlightEnabled=!0;U.includeDefaultActions=!0;U.selectedClusterBoundaryFeature=new g({symbol:new L({outline:{width:1.5,color:"cyan"},style:"none"})});U.title=null;U.updateLocationEnabled=!1;U.view=null;U.visible=!1;U.zoomFactor=4;U.zoomToLocation=null;return U}a._inheritsLoose(P,V);var X=P.prototype;X.initialize=function(){this._handles.add([p.init(this,["autoOpenEnabled","view"],()=>this._autoOpenEnabledChange()),this.on("view-change",
()=>this._autoClose()),p.watch(this,["highlightEnabled","selectedFeature","visible","view"],()=>this._highlightFeature()),p.watch(this,"view.animation.state",U=>this._animationStateChange(U)),p.watch(this,"location",U=>this._locationChange(U)),p.watch(this,"selectedFeature",U=>this._selectedFeatureChange(U)),p.watch(this,["selectedFeatureIndex","featureCount","featuresPerPage"],()=>this._selectedFeatureIndexChange()),p.watch(this,["featurePage","selectedFeatureIndex","featureCount","featuresPerPage, featureViewModels"],
()=>this._setGraphicOnFeatureViewModels()),p.watch(this,"featureViewModels",()=>this._featureViewModelsChange()),this.on("trigger-action",U=>N.triggerAction({event:U,view:this.view})),p.whenFalse(this,"waitingForResult",()=>this._waitingForResultChange(),!0),p.watch(this,["features","view","view.map","view.spatialReference"],()=>this._updateFeatureVMs()),p.watch(this,["view.scale"],this._viewScaleChange),p.whenFalse(this,"visible",()=>this.browseClusterEnabled=!1),p.watch(this,"browseClusterEnabled",
U=>U?this.enableClusterBrowsing():this.disableClusterBrowsing())])};X.destroy=function(){this._cancelFetchingFeatures();this._handles.destroy();this._handles=null;this._pendingPromises.clear();this.browseClusterEnabled=!1;this.view=null};X.centerAtLocation=function(){var {view:U}=this;const Z=N.getSelectedTarget(this);return Z?this.callGoTo({target:{target:Z,scale:U.scale}}):(U=new q("center-at-location:invalid-target-or-view","Cannot center at a location without a target and view.",{target:Z,view:U}),
W.error(U),Promise.reject(U))};X.clear=function(){this.set({promises:[],features:[],content:null,title:null,location:null})};X.fetchFeatures=function(U,Z){const {view:oa}=this;return oa&&U?oa.fetchPopupFeatures(U,{event:Z&&Z.event,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,signal:Z&&Z.signal}):(U=new q("fetch-features:invalid-screenpoint-or-view","Cannot fetch features without a screenPoint and view.",{screenPoint:U,view:oa}),W.error(U),Promise.reject(U))};X.open=function(U){U={updateLocationEnabled:!1,
promises:[],fetchFeatures:!1,...U,visible:!0};const {fetchFeatures:Z}=U;delete U.fetchFeatures;Z&&this._setFetchFeaturesPromises(U.location);this.set(U)};X.triggerAction=function(U){(U=this.allActions.getItemAt(U))&&!U.disabled&&this.emit("trigger-action",{action:U})};X.next=function(){this.selectedFeatureIndex+=1;return this};X.previous=function(){--this.selectedFeatureIndex;return this};X.disableClusterBrowsing=function(){N.removeClusteredFeaturesForBrowsing(this);this._clearBrowsedClusterGraphics()};
X.enableClusterBrowsing=function(){var U=a._asyncToGenerator(function*(){yield N.displayClusterExtent(this);yield N.browseAggregateFeatures(this)});return function(){return U.apply(this,arguments)}}();X._animationStateChange=function(U){this.zoomToLocation||(G.zoomToFeature.disabled="waiting-for-target"===U)};X._clearBrowsedClusterGraphics=function(){var U;const Z=null==(U=this.view)?void 0:U.graphics;Z&&(Z.remove(this.selectedClusterBoundaryFeature),Z.remove(this._selectedClusterFeature));this._selectedClusterFeature=
null;this.selectedClusterBoundaryFeature.geometry=null};X._viewScaleChange=function(){var U;if(null!=(U=this.selectedFeature)&&U.isAggregate||this.browseClusterEnabled)this.visible=this.browseClusterEnabled=!1};X._locationChange=function(U){const {selectedFeature:Z,updateLocationEnabled:oa}=this;oa&&U&&(!Z||Z.geometry)&&this.centerAtLocation()};X._selectedFeatureIndexChange=function(){this.featurePage=1<this.featureCount?Math.floor(this.selectedFeatureIndex/this.featuresPerPage)+1:null};X._featureViewModelsChange=
function(){this.featurePage=1<this.featureCount?1:null};X._setGraphicOnFeatureViewModels=function(){const {features:U,featureCount:Z,featurePage:oa,featuresPerPage:xa,featureViewModels:Ea}=this;if(null!==oa){var fa=((oa-1)*xa+Z)%Z;Ea.slice(fa,fa+xa).forEach((ia,da)=>{ia&&!ia.graphic&&(ia.graphic=U[fa+da])})}};X._selectedFeatureChange=function(){var U=a._asyncToGenerator(function*(Z){if(Z){var {location:oa,updateLocationEnabled:xa,view:Ea}=this;this.browseClusterEnabled?(this._selectedClusterFeature&&
(Ea.graphics.remove(this._selectedClusterFeature),this._selectedClusterFeature=null),Z.isAggregate||(Z.symbol=yield r.getDisplayedSymbol(Z),this._selectedClusterFeature=Z,Ea.graphics.add(this._selectedClusterFeature))):!xa&&oa||!Z.geometry?xa&&!Z.geometry&&this.centerAtLocation().then(()=>{this.location=Ea.center.clone()}):this.location=u.unwrap(this._getPointFromGeometry(Z.geometry))}});return function(Z){return U.apply(this,arguments)}}();X._waitingForResultChange=function(){!this.featureCount&&
this.promises&&(this.visible=!1)};X._setFetchFeaturesPromises=function(U){return this._fetchFeaturesWithController(this._getScreenPoint(U||this.location)).then(Z=>{const {clientOnlyGraphics:oa,promisesPerLayerView:xa}=Z;Z=Promise.resolve(oa);const Ea=xa.map(fa=>fa.promise);this.promises=[Z,...Ea]})};X._destroyFeatureVMs=function(){this.featureViewModels.forEach(U=>U&&!U.destroyed&&U.destroy());this._set("featureViewModels",[])};X._updateFeatureVMs=function(){const {selectedFeature:U,features:Z,featureViewModels:oa}=
this;null!=U&&U.isAggregate||(this.browseClusterEnabled=!1);this._destroyFeatureVMs();if(Z&&Z.length){var xa=oa.slice(0),Ea=[];Z.forEach((fa,ia)=>{if(fa){var da=null;xa.some((va,Ba)=>{va&&va.graphic===fa&&(da=va,xa.splice(Ba,1));return!!da});if(da)Ea[ia]=da;else{var ea,la;const va=new F({defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,spatialReference:null==(ea=this.view)?void 0:ea.spatialReference,graphic:fa===U?fa:null,map:null==(la=this.view)?void 0:la.map,view:this.view});Ea[ia]=
va}}});xa.forEach(fa=>fa&&!fa.destroyed&&fa.destroy());this._set("featureViewModels",Ea)}};X._getScreenPoint=function(U){const {view:Z}=this;return Z&&U&&"function"===typeof Z.toScreen?Z.toScreen(U):null};X._autoOpenEnabledChange=function(){const {_handles:U,autoOpenEnabled:Z}=this;U.remove("auto-fetch-features");if(Z&&this.view){const oa=this.view.on("click",xa=>{"mouse"===xa.pointerType&&0!==xa.button||this._fetchFeaturesAndOpen(xa)},z.ViewEventPriorities.WIDGET);U.add(oa,"auto-fetch-features")}};
X._cancelFetchingFeatures=function(){const U=this._fetchFeaturesController;U&&U.abort();this._fetchFeaturesController=null;this.notifyChange("waitingForResult")};X._fetchFeaturesWithController=function(U,Z){this._cancelFetchingFeatures();const oa=m.createAbortController(),{signal:xa}=oa;this._fetchFeaturesController=oa;this.notifyChange("waitingForResult");U=this.fetchFeatures(U,{signal:xa,event:Z});U.catch(()=>{}).then(()=>{this._fetchFeaturesController=null;this.notifyChange("waitingForResult")});
return U};X._fetchFeaturesAndOpen=function(U){const {screenPoint:Z,mapPoint:oa}=U,{view:xa}=this;this._fetchFeaturesWithController(Z,U).then(Ea=>{const {clientOnlyGraphics:fa,promisesPerLayerView:ia,location:da}=Ea,ea=[Promise.resolve(fa),...ia.map(la=>la.promise)];xa.popup.open({location:da||oa,promises:ea});return Ea})};X._updatePendingPromises=function(U){U&&this._pendingPromises.has(U)&&(this._pendingPromises.delete(U),this.notifyChange("pendingPromisesCount"))};X._autoClose=function(){this.autoCloseEnabled&&
(this.visible=!1)};X._getPointFromGeometry=function(U){return u.isNone(U)?null:"point"===U.type?U:"extent"===U.type?U.center:"polygon"===U.type?U.centroid:"multipoint"===U.type||"polyline"===U.type?U.extent.center:null};X._getLayerView=function(){var U=a._asyncToGenerator(function*(Z,oa){yield Z.when();return Z.whenLayerView(oa)});return function(Z,oa){return U.apply(this,arguments)}}();X._highlightFeature=function(){var U=a._asyncToGenerator(function*(){this._handles.remove("highlight");const {selectedFeature:Z,
highlightEnabled:oa,view:xa,visible:Ea}=this;if(Z&&xa&&oa&&Ea){var {layer:fa,sourceLayer:ia}=Z;if("map-notes"===(null==ia?void 0:ia.type)||"subtype-group"===(null==ia?void 0:ia.type))fa=ia;if(fa&&fa instanceof C){var da=this._getLayerView(xa,fa);this._highlightPromise=da;var ea=yield da;if(ea&&E.highlightsSupported(ea)&&this._highlightPromise===da&&this.selectedFeature&&this.highlightEnabled&&this.visible){da="objectIdField"in fa&&fa.objectIdField;var la=Z.attributes;ea=ea.highlight(la&&da&&la[da]||
Z);this._handles.add(ea,"highlight")}}}});return function(){return U.apply(this,arguments)}}();X._updateFeatures=function(U){const {features:Z}=this;U&&U.length&&(Z.length?(U=U.filter(oa=>-1===Z.indexOf(oa)),this.features=Z.concat(U)):this.features=U)};a._createClass(P,[{key:"isLoadingFeature",get:function(){return this.featureViewModels.some(U=>U.waitingForContent)}},{key:"active",get:function(){return!(!this.visible||this.waitingForResult)}},{key:"allActions",get:function(){const U=this._get("allActions")||
new Q;U.removeAll();const {actions:Z,defaultActions:oa,defaultPopupTemplateEnabled:xa,includeDefaultActions:Ea,selectedFeature:fa}=this;var ia=Ea?oa.concat(Z):Z;const da=fa&&("function"===typeof fa.getEffectivePopupTemplate&&fa.getEffectivePopupTemplate(xa)||fa.popupTemplate),ea=da&&da.actions;(ia=da&&da.overwriteActions?ea:ea?ea.concat(ia):ia)&&ia.filter(Boolean).forEach(la=>U.add(la));return U}},{key:"defaultActions",get:function(){var U;const Z=this._get("defaultActions")||new Q;Z.removeAll();
Z.addMany(null!=(U=this.selectedFeature)&&U.isAggregate?[G.zoomToClusteredFeatures.clone(),G.browseClusteredFeatures.clone()]:[G.zoomToFeature.clone()]);return Z}},{key:"featureCount",get:function(){return this.features.length}},{key:"features",get:function(){return this._get("features")||[]},set:function(U){U=U||[];this._set("features",U);const {pendingPromisesCount:Z,promiseCount:oa,selectedFeatureIndex:xa}=this,Ea=oa&&U.length;Ea&&Z&&-1===xa?this.selectedFeatureIndex=0:Ea&&-1!==xa||(this.selectedFeatureIndex=
U.length?0:-1)}},{key:"location",get:function(){return this._get("location")||null},set:function(U){const Z=this.get("view.spatialReference.isWebMercator");U&&U.get("spatialReference.isWGS84")&&Z&&(U=x.geographicToWebMercator(U));this._set("location",U)}},{key:"pendingPromisesCount",get:function(){return this._pendingPromises.size}},{key:"waitingForResult",get:function(){return!(!(this._fetchFeaturesController||0<this.pendingPromisesCount)||0!==this.featureCount)}},{key:"promiseCount",get:function(){return this.promises.length}},
{key:"promises",get:function(){return this._get("promises")||[]},set:function(U){this._pendingPromises.clear();this.features=[];Array.isArray(U)&&U.length?(this._set("promises",U),U=U.slice(0),U.forEach(Z=>{this._pendingPromises.add(Z);Z.then(oa=>{this._pendingPromises.has(Z)&&this._updateFeatures(oa);this._updatePendingPromises(Z)},()=>this._updatePendingPromises(Z))})):this._set("promises",[]);this.notifyChange("pendingPromisesCount")}},{key:"selectedFeature",get:function(){const {features:U,selectedFeatureIndex:Z}=
this;return-1===Z?null:U[Z]||null}},{key:"selectedFeatureIndex",get:function(){const U=this._get("selectedFeatureIndex");return"number"===typeof U?U:-1},set:function(U){const {featureCount:Z}=this;U=isNaN(U)||-1>U||!Z?-1:(U+Z)%Z;this._set("selectedFeatureIndex",U)}},{key:"selectedFeatureViewModel",get:function(){return this.featureViewModels[this.selectedFeatureIndex]||null}},{key:"state",get:function(){return this.get("view.ready")?"ready":"disabled"}}]);return P}(I.GoToMixin(K));b.__decorate([e.property()],
c.prototype,"featurePage",void 0);b.__decorate([e.property()],c.prototype,"isLoadingFeature",null);b.__decorate([e.property({type:Q})],c.prototype,"actions",void 0);b.__decorate([e.property({readOnly:!0})],c.prototype,"active",null);b.__decorate([e.property({readOnly:!0})],c.prototype,"allActions",null);b.__decorate([e.property({type:Boolean})],c.prototype,"defaultPopupTemplateEnabled",void 0);b.__decorate([e.property()],c.prototype,"autoCloseEnabled",void 0);b.__decorate([e.property()],c.prototype,
"autoOpenEnabled",void 0);b.__decorate([e.property()],c.prototype,"browseClusterEnabled",void 0);b.__decorate([e.property()],c.prototype,"content",void 0);b.__decorate([e.property({type:Q,readOnly:!0})],c.prototype,"defaultActions",null);b.__decorate([e.property({readOnly:!0})],c.prototype,"featureCount",null);b.__decorate([e.property()],c.prototype,"features",null);b.__decorate([e.property()],c.prototype,"featuresPerPage",void 0);b.__decorate([e.property({readOnly:!0})],c.prototype,"featureViewModels",
void 0);b.__decorate([e.property()],c.prototype,"highlightEnabled",void 0);b.__decorate([e.property()],c.prototype,"includeDefaultActions",void 0);b.__decorate([e.property({type:J})],c.prototype,"location",null);b.__decorate([e.property({readOnly:!0})],c.prototype,"pendingPromisesCount",null);b.__decorate([e.property({readOnly:!0})],c.prototype,"selectedClusterBoundaryFeature",void 0);b.__decorate([e.property({readOnly:!0})],c.prototype,"waitingForResult",null);b.__decorate([e.property({readOnly:!0})],
c.prototype,"promiseCount",null);b.__decorate([e.property()],c.prototype,"promises",null);b.__decorate([e.property({value:null,readOnly:!0})],c.prototype,"selectedFeature",null);b.__decorate([e.property({value:-1})],c.prototype,"selectedFeatureIndex",null);b.__decorate([e.property({readOnly:!0})],c.prototype,"selectedFeatureViewModel",null);b.__decorate([e.property({readOnly:!0})],c.prototype,"state",null);b.__decorate([e.property()],c.prototype,"title",void 0);b.__decorate([e.property()],c.prototype,
"updateLocationEnabled",void 0);b.__decorate([e.property()],c.prototype,"view",void 0);b.__decorate([e.property()],c.prototype,"visible",void 0);b.__decorate([e.property()],c.prototype,"zoomFactor",void 0);b.__decorate([e.property()],c.prototype,"zoomToLocation",void 0);b.__decorate([e.property()],c.prototype,"centerAtLocation",null);return c=b.__decorate([w.subclass("esri.widgets.Popup.PopupViewModel")],c)})},"esri/symbols/support/symbolUtils":function(){define("require exports ../../chunks/_rollupPluginBabelHelpers ../../core/has ../../core/maybe ../../support/arcadeOnDemand ./utils".split(" "),
function(a,b,c,g,f,k,q){function v(l,h){return t.apply(this,arguments)}function t(){t=c._asyncToGenerator(function*(l,h){switch(l.type){case "web-style":var {previewWebStyleSymbol:n}=yield new Promise(function(w,x){a(["./previewWebStyleSymbol"],w,x)});return n(l,v,h);case "label-3d":case "line-3d":case "mesh-3d":case "point-3d":case "polygon-3d":return{previewSymbol3D:n}=yield new Promise(function(w,x){a(["./previewSymbol3D"],w,x)}),n(l,h);case "simple-marker":case "simple-line":case "simple-fill":case "picture-marker":case "picture-fill":case "text":return{previewSymbol2D:n}=
yield new Promise(function(w,x){a(["./previewSymbol2D"],w,x)}),n(l,h);case "cim":return{previewCIMSymbol:n}=yield new Promise(function(w,x){a(["./previewCIMSymbol"],w,x)}),n(l,h)}});return t.apply(this,arguments)}function u(l){return l&&"opacity"in l?l.opacity*u(l.parent):1}function m(){m=c._asyncToGenerator(function*(l,h){var n,w;if(l){var x=l.sourceLayer;x=null!=(n=f.isSome(h)&&null!=(w=h.useSourceLayer)&&w?x:l.layer)?n:x;n=u(x);if(f.isSome(l.symbol)&&(!f.isSome(h)||!0!==h.ignoreGraphicSymbol))return l=
"web-style"===l.symbol.type?yield l.symbol.fetchSymbol(f.isSome(h)?h.abortOptions:null):l.symbol.clone(),q.applyColorToSymbol(l,null,n),l;var C=f.isSome(h)&&h.renderer||x&&"renderer"in x&&x.renderer;if(w=C&&"getSymbolAsync"in C?yield C.getSymbolAsync(l,h):null){w="web-style"===w.type?yield w.fetchSymbol(f.isSome(h)?h.abortOptions:null):w.clone();if(!("visualVariables"in C&&C.visualVariables&&C.visualVariables.length))return q.applyColorToSymbol(w,null,n),w;"arcadeRequiredForVisualVariables"in C&&
C.arcadeRequiredForVisualVariables&&(f.isNone(h)||f.isNone(h.arcade))&&(h={...f.unwrap(h)},h.arcade=yield k.loadArcade());x=yield new Promise(function(E,F){a(["../../renderers/visualVariables/support/visualVariableUtils"],E,F)});var D=[],A=[],B=[],r=[];for(var z of C.visualVariables)switch(z.type){case "color":D.push(z);break;case "opacity":A.push(z);break;case "rotation":r.push(z);break;case "size":z.target||B.push(z)}z=(z=!!D.length&&D[D.length-1])?x.getColor(z,l,h):null;A=(A=!!A.length&&A[A.length-
1])?x.getOpacity(A,l,h):null;null!=n&&(A=null!=A?A*n:n);q.applyColorToSymbol(w,z,A);B.length&&(n=x.getAllSizes(B,l,h),yield q.applySizesToSymbol(w,n));for(const E of r)q.applyRotationToSymbol(w,x.getRotationAngle(E,l,h),E.axis);return w}}});return m.apply(this,arguments)}function p(){p=c._asyncToGenerator(function*(l,h){var n;if(l){var w=u(l.layer||l.sourceLayer);if(f.isSome(l.symbol)&&(!f.isSome(h)||!0!==h.ignoreGraphicSymbol))return l="web-style"===l.symbol.type?yield l.symbol.fetchSymbol(f.isSome(h)?
h.abortOptions:null):l.symbol.clone(),q.getColorFromSymbol(l,w);var x=f.isSome(h)&&h.renderer||l.get("layer.renderer")||l.get("sourceLayer.renderer"),C=yield x.getSymbolAsync(l,h);if(C){C="web-style"===C.type?yield C.fetchSymbol(f.isSome(h)?h.abortOptions:null):C.clone();C=q.getColorFromSymbol(C,w);if(!("visualVariables"in x)||"visualVariables"in x&&!x.visualVariables||"visualVariables"in x&&(null==(n=x.visualVariables)||!n.length))return C;x.arcadeRequiredForVisualVariables&&(f.isNone(h)||f.isNone(h.arcade))&&
(h={...f.unwrap(h)},h.arcade=yield k.loadArcade());n=yield new Promise(function(B,r){a(["../../renderers/visualVariables/support/visualVariableUtils"],B,r)});var D=[],A=[];for(const B of x.visualVariables)switch(B.type){case "color":D.push(B);break;case "opacity":A.push(B)}x=(x=0<D.length?D[D.length-1]:null)?n.getColor(x,l,h):C;l=(C=0<A.length?A[A.length-1]:null)?n.getOpacity(C,l,h):null;null!=w&&(l=null!=l?l*w:w);return x?q.applyOpacityToColor(x,l):null}}});return p.apply(this,arguments)}let e=null;
b.getDisplayedColor=function(l,h){return p.apply(this,arguments)};b.getDisplayedSymbol=function(l,h){return m.apply(this,arguments)};b.renderColorRampPreviewHTML=function(l,h={}){var n="horizontal"===h.align;const {width:w=n?75:24,height:x=n?24:75,gradient:C=!0}=h;h=window.devicePixelRatio;var D=w*h,A=x*h;h=document.createElement("canvas");h.width=D;h.height=A;h.style.width=`${w}px`;h.style.height=`${x}px`;const B=h.getContext("2d");var r=n?D:0,z=n?0:A;if(C){const E=B.createLinearGradient(0,0,r,z);
n=l.length;const F=1===n?0:1/(n-1);l.forEach((G,N)=>E.addColorStop(N*F,G.toString()));B.fillStyle=E;B.fillRect(0,0,D,A)}else{D=n?D/l.length:D;A=n?A:A/l.length;z=r=0;for(const E of l)B.fillStyle=E.toString(),B.fillRect(r,z,D,A),r=n?r+D:0,z=n?0:z+A}l=document.createElement("div");l.style.width=`${w}px`;l.style.height=`${x}px`;l.appendChild(h);return l};b.renderDotDensityPreviewHTML=function(l,h,n){const {backgroundColor:w,outline:x,dotSize:C}=l;n=n&&n.swatchSize||22;const D=Math.round(n*n/C**2*.8),
A=window.devicePixelRatio;l=document.createElement("canvas");const B=n*A;l.width=B;l.height=B;l.style.width=`${l.width/A}px`;l.style.height=`${l.height/A}px`;const r=l.getContext("2d");w&&(r.fillStyle=w.toCss(!0),r.fillRect(0,0,B,B),r.fill());r.fillStyle=h.toCss(!0);if(e&&e.length/2===D)for(h=0;h<2*D;h+=2)r.fillRect(e[h],e[h+1],C*A,C*A),r.fill();else for(e=[],h=0;h<2*D;h+=2){const z=Math.floor(Math.random()*(B-0+1)),E=Math.floor(Math.random()*(B-0+1));e.push(z,E);r.fillRect(z,E,C*A,C*A);r.fill()}x&&
(x.color&&(r.strokeStyle=x.color.toCss(!0)),r.lineWidth=x.width,r.strokeRect(0,0,B,B));n=new Image(n,n);n.src=l.toDataURL();return n};b.renderPreviewHTML=v;Object.defineProperty(b,"__esModule",{value:!0})})},"esri/symbols/support/utils":function(){define("require exports ../../chunks/_rollupPluginBabelHelpers ../../Color ../../symbols ../../core/asyncUtils ../../core/has ../../core/maybe ../../core/screenUtils ../../chunks/vec3f64 ./gfxUtils ./Symbol3DMaterial".split(" "),function(a,b,c,g,f,k,q,v,
t,u,m,p){function e(I){I=I.symbolLayers;if(!I)return null;let J=null;I.forEach(L=>{if("object"!==L.type||null==L.resource.href)J="water"===L.type?v.unwrap(L.color):v.isSome(L.material)?v.unwrap(L.material.color):null});return J?new g(J):null}function l(I,J){if(null==J)return I;I=I.toRgba();I[3]*=J;return new g(I)}function h(I,J,L){if(I=I.symbolLayers){var Q=W=>{W=v.isSome(W)?W:null;J=J||W||null!=L&&K;return l(J,L)};I.forEach(W=>{if("object"!==W.type||null==W.resource.href||J)if("water"===W.type)W.color=
Q(W.color);else{var V=v.isSome(W.material)?W.material.color:null;V=Q(V);v.isNone(W.material)?W.material=new p["default"]({color:V}):W.material.color=V;null!=L&&"outline"in W&&v.isSome(W.outline)&&v.isSome(W.outline.color)&&(W.outline.color=l(W.outline.color,L))}})}}function n(I,J){return w.apply(this,arguments)}function w(){w=c._asyncToGenerator(function*(I,J){(I=I.symbolLayers)&&(yield k.forEach(I,function(){var L=c._asyncToGenerator(function*(Q){return x(Q,J)});return function(Q){return L.apply(this,
arguments)}}()))});return w.apply(this,arguments)}function x(I,J){return C.apply(this,arguments)}function C(){C=c._asyncToGenerator(function*(I,J){switch(I.type){case "extrude":I.size="number"===typeof J[2]?J[2]:0;break;case "icon":case "line":case "text":J=D(J);v.isSome(J)&&(I.size=J);break;case "path":{const L=r(J,u.ONES,[I.width,void 0,I.height]);I.width=F(J[0],I.width,1,L);I.height=F(J[2],I.height,1,L)}break;case "object":yield A(I,J)}});return C.apply(this,arguments)}function D(I){for(const J of I)if("number"===
typeof J)return J;return null}function A(I,J){return B.apply(this,arguments)}function B(){B=c._asyncToGenerator(function*(I,J){const {resourceSize:L,symbolSize:Q}=yield z(I),W=r(J,L,Q);I.width=F(J[0],Q[0],L[0],W);I.depth=F(J[1],Q[1],L[1],W);I.height=F(J[2],Q[2],L[2],W)});return B.apply(this,arguments)}function r(I,J,L){for(let Q=0;3>Q;Q++){const W=I[Q];switch(W){case "symbol-value":return null!=L[Q]?L[Q]/J[Q]:1;case "proportional":break;default:if(W&&J[Q])return W/J[Q]}}return 1}function z(I){return E.apply(this,
arguments)}function E(){E=c._asyncToGenerator(function*(I){const J=yield(yield new Promise(function(X,U){a(["./symbolLayerUtils"],X,U)})).computeObjectLayerResourceSize(I,10),{width:L,height:Q,depth:W}=I;I=[L,W,Q];let V=1;for(var P=0;3>P;P++)if(null!=I[P]){V=I[P]/J[P];break}for(P=0;3>P;P++)null==I[P]&&(I[P]=J[P]*V);return{resourceSize:J,symbolSize:I}});return E.apply(this,arguments)}function F(I,J,L,Q){switch(I){case "proportional":return L*Q;case "symbol-value":return null!=J?J:L;default:return I}}
function G(){G=c._asyncToGenerator(function*(I,J){if(I&&J){if(f.isSymbol3D(I))return n(I,J);if(f.isSymbol2D(I)&&(J=D(J),!v.isNone(J)))switch(I.type){case "simple-marker":I.size=J;break;case "picture-marker":{const L=I.width/I.height;1<L?(I.width=J,I.height=J*L):(I.width=J*L,I.height=J);break}case "simple-line":I.width=J;break;case "text":I.font.size=J}}});return G.apply(this,arguments)}const N=/\/resource\/(.*?)\.svg$/,K=new g("white");b.applyColorToSymbol=function(I,J,L){if(I&&(J||null!=L))if(J&&
(J=new g(J)),f.isSymbol3D(I))h(I,J,L);else if(f.isSymbol2D(I)){if(J=J||I.color)I.color=l(J,L);null!=L&&"outline"in I&&I.outline&&I.outline.color&&(I.outline.color=l(I.outline.color,L))}};b.applyOpacityToColor=l;b.applyRotationToSymbol=function(I,J,L){I&&null!=J&&(f.isSymbol3D(I)?(I=I.symbolLayers)&&I.forEach(Q=>{if(Q&&"object"===Q.type)switch(L){case "tilt":Q.tilt=J;break;case "roll":Q.roll=J;break;default:Q.heading=J}}):!f.isSymbol2D(I)||"simple-marker"!==I.type&&"picture-marker"!==I.type&&"text"!==
I.type||(I.angle=J))};b.applySizesToSymbol=function(I,J){return G.apply(this,arguments)};b.getColorFromSymbol=function(I,J){if(!I)return null;let L=null;f.isSymbol3D(I)?L=e(I):f.isSymbol2D(I)&&(L=I.color?new g(I.color):null);return L?l(L,J):null};b.getIconHref=function(I,J){J=J.resource.href;return!q("esri-canvas-svg-support")&&I.styleOrigin&&N.test(J)?J.replace(N,"/resource/png/$1.png"):J};b.getSymbolOutlineSize=function(I){if(!I)return 0;if(f.isSymbol3D(I)){{const J=I.symbolLayers&&I.symbolLayers.length;
J?(I=I.symbolLayers.getItemAt(J-1),I="outline"in I?v.get(I,"outline","size"):void 0):I=void 0}return v.isSome(I)?I:0}return(I=m.getStroke(I))&&t.px2pt(I.width)||0};b.isVolumetricSymbol=function(I){if(v.isNone(I)||!("symbolLayers"in I)||v.isNone(I.symbolLayers))return!1;switch(I.type){case "point-3d":return I.symbolLayers.some(J=>"object"===J.type);case "line-3d":return I.symbolLayers.some(J=>"path"===J.type);case "polygon-3d":return I.symbolLayers.some(J=>"object"===J.type||"extrude"===J.type);default:return!1}};
Object.defineProperty(b,"__esModule",{value:!0})})},"esri/symbols/support/gfxUtils":function(){define("exports ../../assets ../../Color ../../request ../../core/ItemCache ../../core/screenUtils ./cimSymbolUtils".split(" "),function(a,b,c,g,f,k,q){function v(e){if(!e)return null;let l;switch(e.type){case "simple-fill":case "picture-fill":case "simple-marker":l=v(e.outline);break;case "simple-line":{const h=k.pt2px(e.width);"none"!==e.style&&0!==h&&(l={color:e.color,style:p(e.style),width:h,cap:e.cap,
join:"miter"===e.join?k.pt2px(e.miterLimit):e.join});break}default:l=null}return l}const t={left:"start",center:"middle",right:"end",justify:"start"},u={top:"text-before-edge",middle:"central",baseline:"alphabetic",bottom:"text-after-edge"},m=new f(1E3),p=function(){const e={};return function(l){if(e[l])return e[l];const h=l.replace(/-/g,"");return e[l]=h}}();c=new c([128,128,128]);a.defaultThematicColor=c;a.getFill=function(e){const l=e.style;let h=null;if(e)switch(e.type){case "simple-marker":"cross"!==
l&&"x"!==l&&(h=e.color);break;case "simple-fill":"solid"===l?h=e.color:"none"!==l&&(h={type:"pattern",x:0,y:0,src:b.getAssetUrl(`esri/symbols/patterns/${l}.png`),width:5,height:5});break;case "picture-fill":h={type:"pattern",src:e.url,width:k.pt2px(e.width)*e.xscale,height:k.pt2px(e.height)*e.yscale,x:k.pt2px(e.xoffset),y:k.pt2px(e.yoffset)};break;case "text":h=e.color;break;case "cim":h=q.getCIMSymbolColor(e)}return h};a.getPatternUrlWithColor=function(e,l){const h=e+"-"+l;return void 0!==m.get(h)?
Promise.resolve(m.get(h)):g(e,{responseType:"image"}).then(n=>{n=n.data;const w=n.naturalWidth,x=n.naturalHeight,C=document.createElement("canvas");C.width=w;C.height=x;const D=C.getContext("2d");D.fillStyle=l;D.fillRect(0,0,w,x);D.globalCompositeOperation="destination-in";D.drawImage(n,0,0);n=C.toDataURL();m.put(h,n);return n})};a.getSVGAlign=function(e){return e=(e=e.horizontalAlignment)&&t[e.toLowerCase()]||"middle"};a.getSVGBaseline=function(e){return(e=e.verticalAlignment)&&u[e.toLowerCase()]||
"alphabetic"};a.getSVGBaselineShift=function(e){return"bottom"===e.verticalAlignment?"super":null};a.getStroke=v;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/core/ItemCache":function(){define(["./MemCache"],function(a){return function(){function b(g,f){this._storage=new a.MemCacheStorage;this._storage.maxSize=g;f&&this._storage.registerRemoveFunc("",f)}var c=b.prototype;c.put=function(g,f){this._storage.put(g,f,1,1)};c.pop=function(g){return this._storage.pop(g)};c.get=function(g){return this._storage.get(g)};
c.clear=function(){this._storage.clearAll()};c.destroy=function(){this._storage.destroy()};return b}()})},"esri/symbols/support/cimSymbolUtils":function(){define(["exports","../../Color","../cim/utils"],function(a,b,c){function g(p){p=c.toCIMSymbolJSON(p);if("CIMTextSymbol"===p.type)return p.height;let e=0;if(p.symbolLayers)for(const l of p.symbolLayers)c.isCIMMarker(l)&&l.size>e?e=l.size:c.isCIMStroke(l)&&l.width>e?e=l.width:c.isCIMFill(l);return e}function f(p,e,l,h){if("CIMTextSymbol"===p.type)p.height*=
e;else{if(l&&p.effects)for(const n of p.effects)v(n,e);if(p.symbolLayers)for(const n of p.symbolLayers)switch(n.type){case "CIMPictureMarker":case "CIMVectorMarker":k(n,e,h);break;case "CIMPictureStroke":case "CIMSolidStroke":null!=h&&h.preserveOutlineWidth||(n.width*=e);break;case "CIMPictureFill":n.height*=e;n.offsetX*=e;n.offsetY*=e;break;case "CIMHatchFill":f(n.lineSymbol,e,!0,{...h,preserveOutlineWidth:!1}),n.offsetX*=e,n.offsetY*=e,n.separation*=e}}}function k(p,e,l){p.markerPlacement&&q(p.markerPlacement,
e);p.offsetX*=e;p.offsetY*=e;p.anchorPoint&&"Absolute"===p.anchorPointUnits&&(p.anchorPoint={x:p.anchorPoint.x*e,y:p.anchorPoint.y*e});p.size*=e;if("CIMVectorMarker"===p.type&&p.markerGraphics)for(const h of p.markerGraphics)p.scaleSymbolsProportionally||f(h.symbol,e,!0,l)}function q(p,e){c.isCIMMarkerStrokePlacement(p)&&(p.offset*=e);switch(p.type){case "CIMMarkerPlacementAlongLineRandomSize":case "CIMMarkerPlacementAlongLineSameSize":p.customEndingOffset*=e;p.offsetAlongLine*=e;if(p.placementTemplate&&
p.placementTemplate.length){var l=p.placementTemplate.map(h=>h*e);p.placementTemplate=l}break;case "CIMMarkerPlacementAlongLineVariableSize":p.maxRandomOffset*=e;p.placementTemplate&&p.placementTemplate.length&&(l=p.placementTemplate.map(h=>h*e),p.placementTemplate=l);break;case "CIMMarkerPlacementOnLine":p.startPointOffset*=e;break;case "CIMMarkerPlacementAtExtremities":p.offsetAlongLine*=e;break;case "CIMMarkerPlacementAtRatioPositions":p.beginPosition*=e;p.endPosition*=e;break;case "CIMMarkerPlacementPolygonCenter":p.offsetX*=
e;p.offsetY*=e;break;case "CIMMarkerPlacementInsidePolygon":p.offsetX*=e,p.offsetY*=e,p.stepX*=e,p.stepY*=e}}function v(p,e){switch(p.type){case "CIMGeometricEffectArrow":case "CIMGeometricEffectDonut":p.width*=e;break;case "CIMGeometricEffectBuffer":p.size*=e;break;case "CIMGeometricEffectCut":p.beginCut*=e;p.endCut*=e;p.middleCut*=e;break;case "CIMGeometricEffectDashes":p.customEndingOffset*=e;p.offsetAlongLine*=e;if(p.dashTemplate&&p.dashTemplate.length){const l=p.dashTemplate.map(h=>h*e);p.dashTemplate=
l}break;case "CIMGeometricEffectExtension":case "CIMGeometricEffectJog":case "CIMGeometricEffectRadial":p.length*=e;break;case "CIMGeometricEffectMove":p.offsetX*=e;p.offsetY*=e;break;case "CIMGeometricEffectOffset":case "CIMGeometricEffectOffsetTangent":p.offset*=e;break;case "CIMGeometricEffectRegularPolygon":p.radius*=e;break;case "CIMGeometricEffectTaperedPolygon":p.fromWidth*=e;p.length*=e;p.toWidth*=e;break;case "CIMGeometricEffectWave":p.amplitude*=e,p.period*=e}}function t(p,e){let l;l="CIMTextSymbol"===
p.type?p.symbol:p;p="CIMPolygonSymbol"===p.type;if(l.symbolLayers)for(const h of l.symbolLayers)if(!(h.colorLocked||p&&(c.isCIMStroke(h)||c.isCIMMarker(h)&&h.markerPlacement&&c.isCIMMarkerStrokePlacement(h.markerPlacement))))switch(h.type){case "CIMVectorMarker":h.markerGraphics.forEach(n=>{t(n.symbol,e)});break;case "CIMSolidStroke":case "CIMSolidFill":u(e,h.color);break;case "CIMHatchFill":t(h.lineSymbol,e)}}function u(p,e){for(const l of p)if(l.join(".")===e.join("."))return;p.push(e)}function m(p,
e){var l="CIMTextSymbol"===p.type?p.symbol:p;p="CIMPolygonSymbol"===p.type?!0:!1;if(l.symbolLayers)for(const h of l.symbolLayers)if(!(h.colorLocked||p&&(c.isCIMStroke(h)||c.isCIMMarker(h)&&h.markerPlacement&&c.isCIMMarkerStrokePlacement(h.markerPlacement))))switch(l=e.toArray(0),h.type){case "CIMVectorMarker":h.markerGraphics.forEach(n=>{m(n.symbol,e)});break;case "CIMSolidStroke":case "CIMSolidFill":h.color=l;break;case "CIMHatchFill":m(h.lineSymbol,e)}}a.applyCIMSymbolColor=function(p,e){e instanceof
b||(e=new b(e));p=c.toCIMSymbolJSON(p);m(p,e)};a.applyCIMSymbolRotation=function(p,e,l=!1){p=c.toCIMSymbolJSON(p);l&&0!==e&&(e=360-e);if("CIMTextSymbol"===p.type)p.angle=e;else if("CIMPointSymbol"===p.type&&p.symbolLayers){l=e-(p.angle||0);for(const h of p.symbolLayers)if(c.isCIMMarker(h)){let n=h.rotation||0;n=h.rotateClockwise?n-l:n+l;h.rotation=n}p.angle=e}};a.getCIMSymbolColor=function(p){p=c.toCIMSymbolJSON(p);const e=[];t(p,e);return e.length?new b(c.fromCIMColor(e[0])):null};a.getCIMSymbolRotation=
function(p,e=!1){p=c.toCIMSymbolJSON(p);return"CIMTextSymbol"===p.type||"CIMPointSymbol"===p.type?e&&0!==p.angle?360-p.angle:p.angle||0:0};a.getCIMSymbolSize=g;a.scaleCIMMarker=k;a.scaleCIMSymbolTo=function(p,e,l){const h=c.toCIMSymbolJSON(p);p=g(p);if(0===p)if("CIMTextSymbol"===h.type)h.height=e;else{if(h.symbolLayers)for(const n of h.symbolLayers)switch(n.type){case "CIMPictureMarker":case "CIMVectorMarker":n.size=e;break;case "CIMPictureStroke":case "CIMSolidStroke":n.width=e}}else f(h,e/p,!1,
l)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/symbols/cim/utils":function(){define(["exports"],function(a){function b(c,g){"string"!==typeof c&&(c=String(c));switch(g){case "LowerCase":return c.toLowerCase();case "Allcaps":return c.toUpperCase();default:return c}}a._adjustTextCase=b;a.colorToArray=function(c){return[c.r,c.g,c.b,c.a]};a.createLabelOverrideFunction=function(c,g,f){const k=u=>{let m=u.length;for(;m--;)if(-1===" /-,\n".indexOf(u.charAt(m)))return!1;return!0},q=[];var v=
0;let t=-1;do t=g.indexOf("[",v),t>=v&&(t>v&&(v=g.substr(v,t-v),q.push([v,null,k(v)])),v=t+1,t=g.indexOf("]",v),t>=v&&(t>v&&(v=g.substr(v,t-v),(v=c[v])&&q.push([null,v,!1])),v=t+1));while(-1!==t);v<g.length-1&&(c=g.substr(v),q.push([c,null,k(c)]));return u=>{let m="",p=null;for(const e of q){const [l,h,n]=e;if(l)n?p=l:(p&&(m+=p,p=null),m+=l);else{const w=u.attributes[h];w&&(p&&(m+=p,p=null),m+=w)}}return b(m,f)}};a.evaluateValueOrFunction=function(c,g,f,k){return"function"===typeof c?c(g,f,k):c};
a.fromCIMColor=function(c){return c?{r:c[0],g:c[1],b:c[2],a:c[3]/255}:{r:0,g:0,b:0,a:0}};a.isCIMFill=function(c){return"CIMGradientFill"===c.type||"CIMHatchFill"===c.type||"CIMPictureFill"===c.type||"CIMSolidFill"===c.type||"CIMWaterFill"===c.type};a.isCIMMarker=function(c){return"CIMVectorMarker"===c.type||"CIMPictureMarker"===c.type||"CIMBarChartMarker"===c.type||"CIMCharacterMarker"===c.type||"CIMPieChartMarker"===c.type||"CIMStackedBarChartMarker"===c.type};a.isCIMMarkerStrokePlacement=function(c){return"CIMMarkerPlacementAlongLineRandomSize"===
c.type||"CIMMarkerPlacementAlongLineSameSize"===c.type||"CIMMarkerPlacementAlongLineVariableSize"===c.type||"CIMMarkerPlacementAtExtremities"===c.type||"CIMMarkerPlacementAtMeasuredUnits"===c.type||"CIMMarkerPlacementAtRatioPositions"===c.type||"CIMMarkerPlacementOnLine"===c.type||"CIMMarkerPlacementOnVertices"===c.type};a.isCIMStroke=function(c){return"CIMGradientStroke"===c.type||"CIMPictureStroke"===c.type||"CIMSolidStroke"===c.type};a.resampleHermite=function(c,g,f,k,q,v,t=!0){const u=g/q;f/=
v;const m=Math.ceil(u/2),p=Math.ceil(f/2);for(let h=0;h<v;h++)for(let n=0;n<q;n++){const w=4*(n+(t?v-h-1:h)*q);var e=0;let x=0,C=0,D=0,A=0,B=0,r=0;const z=(h+.5)*f;for(let E=Math.floor(h*f);E<(h+1)*f;E++){var l=Math.abs(z-(E+.5))/p;const F=(n+.5)*u;l*=l;for(let G=Math.floor(n*u);G<(n+1)*u;G++){let N=Math.abs(F-(G+.5))/m;e=Math.sqrt(l+N*N);-1<=e&&1>=e&&(e=2*e*e*e-3*e*e+1,0<e&&(N=4*(G+E*g),r+=e*c[N+3],C+=e,255>c[N+3]&&(e=e*c[N+3]/250),D+=e*c[N],A+=e*c[N+1],B+=e*c[N+2],x+=e))}}k[w]=D/x;k[w+1]=A/x;k[w+
2]=B/x;k[w+3]=r/C}};a.toCIMSymbolJSON=function(c){var g;return null==(g=c.data)?void 0:g.symbol};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/views/support/layerViewUtils":function(){define(["exports","../../core/maybe"],function(a,b){a.extractSafeScaleBounds=function(c){let {minScale:g,maxScale:f}=c;return{minScale:g||0,maxScale:f||0}};a.highlightsSupported=function(c){return c&&"function"===typeof c.highlight};a.occludeesSupported=function(c){return c&&"function"===typeof c.maskOccludee};
a.scaleBoundsPredicate=function(c,g,f){return b.isNone(c)||c>f&&(0===g||c<g)};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/Popup/actions":function(){define(["exports","../../support/actions/ActionButton"],function(a,b){const c=new b({id:"zoom-to-feature",title:"{messages.zoom}",className:"esri-icon-zoom-in-magnifying-glass"}),g=new b({id:"remove-selected-feature",title:"{messages.remove}",className:"esri-icon-trash"}),f=new b({id:"zoom-to-clustered-features",title:"{messages.zoom}",
className:"esri-icon-zoom-in-magnifying-glass"});b=new b({id:"browse-clustered-features",title:"{messages.browseClusteredFeatures}",className:"esri-icon-table"});a.all=[c,g,b,f];a.browseClusteredFeatures=b;a.removeSelectedFeature=g;a.zoomToClusteredFeatures=f;a.zoomToFeature=c;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/Popup/actionUtils":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers","../../core/Error","../../core/Logger","./actions"],function(a,b,c,g,
f){function k(h){const {selectedFeature:n,location:w,view:x}=h;return x?"3d"===x.type?n||w:h.get("selectedFeature.geometry")||w:null}function q(h,n){if("3d"!==(null==n?void 0:n.type)||!h||"esri.Graphic"!==h.declaredClass)return!0;if((n=n.getViewForGraphic(h))&&"whenGraphicBounds"in n){let w=!1;n.whenGraphicBounds(h,{useViewElevation:!0}).then(x=>{w=!x||!x.boundingBox||x.boundingBox[0]===x.boundingBox[3]&&x.boundingBox[1]===x.boundingBox[4]&&x.boundingBox[2]===x.boundingBox[5]}).catch(()=>{const x=
new c("zoom-to:invalid-graphic","Could not zoom to the location of the graphic.",{graphic:h});l.error(x)});return w}return!0}function v(h){return t.apply(this,arguments)}function t(){t=b._asyncToGenerator(function*(h){const {location:n,selectedFeature:w,view:x,zoomFactor:C}=h,D=k(h);if(!D)return h=new c("zoom-to:invalid-target-or-view","Cannot zoom to location without a target and view.",{target:D,view:x}),l.error(h),Promise.reject(h);const A=x.scale/C,B=h.get("selectedFeature.geometry")||n,r=B&&
"point"===B.type&&q(w,x);f.zoomToFeature.active=!0;f.zoomToFeature.disabled=!0;yield h.view.goTo({target:D,scale:r?A:void 0});f.zoomToFeature.active=!1;f.zoomToFeature.disabled=!1;h.zoomToLocation=null;r&&(h.location=B)});return t.apply(this,arguments)}function u(h){return m.apply(this,arguments)}function m(){m=b._asyncToGenerator(function*(h){const {selectedFeature:n,view:w}=h;if("2d"!==(null==w?void 0:w.type))throw h=new c("zoomToCluster:invalid-view","View must be 2d MapView.",{view:w}),l.error(h),
h;if(!n.isAggregate)throw h=new c("zoomToCluster:invalid-selectedFeature","Selected feature must represent an aggregate/cluster graphic.",{selectedFeature:n}),l.error(h),h;h=yield w.whenLayerView(n.sourceLayer);const x=h.createQuery();x.aggregateIds=[n.getObjectId()];f.zoomToClusteredFeatures.active=!0;f.zoomToClusteredFeatures.disabled=!0;({extent:h}=yield h.queryExtent(x));yield w.goTo({target:h});f.zoomToClusteredFeatures.active=!1;f.zoomToClusteredFeatures.disabled=!1});return m.apply(this,arguments)}
function p(){p=b._asyncToGenerator(function*(h){const {selectedFeature:n,view:w}=h;if("2d"!==(null==w?void 0:w.type))throw h=new c("displayClusterExtent:invalid-view","View must be 2d MapView.",{view:w}),l.error(h),h;if(!n.isAggregate)throw h=new c("zoomToCluster:invalid-selectedFeature","Selected feature must represent an aggregate/cluster graphic.",{selectedFeature:n}),l.error(h),h;var x=yield w.whenLayerView(n.sourceLayer);const C=x.createQuery();C.aggregateIds=[n.getObjectId()];({extent:x}=yield x.queryExtent(C));
h.selectedClusterBoundaryFeature.geometry=x;w.graphics.add(h.selectedClusterBoundaryFeature)});return p.apply(this,arguments)}function e(){e=b._asyncToGenerator(function*(h){const {selectedFeature:n,view:w}=h;if("2d"!==(null==w?void 0:w.type))throw h=new c("browseAggregateFeatures:invalid-view","View must be 2d MapView.",{view:w}),l.error(h),h;if(!n.isAggregate)throw h=new c("browseAggregateFeatures:invalid-selectedFeature","Selected feature must represent an aggregate/cluster graphic.",{selectedFeature:n}),
l.error(h),h;h=yield w.whenLayerView(n.sourceLayer);const x=h.createQuery();x.aggregateIds=[n.getObjectId()];f.browseClusteredFeatures.active=!0;f.browseClusteredFeatures.disabled=!0;({features:h}=yield h.queryFeatures(x));f.browseClusteredFeatures.active=!1;f.browseClusteredFeatures.disabled=!1;w.popup.open({features:[n].concat(h),featureMenuOpen:!0})});return e.apply(this,arguments)}const l=g.getLogger("esri.widgets.Popup.PopupViewModel");a.browseAggregateFeatures=function(h){return e.apply(this,
arguments)};a.displayClusterExtent=function(h){return p.apply(this,arguments)};a.getSelectedTarget=k;a.isZoomScreenSize=q;a.removeClusteredFeaturesForBrowsing=function(h){h.features=h.features.filter(n=>n.isAggregate)};a.triggerAction=function(h){const {event:n,view:w}=h;({action:h}=n);var x=w&&w.popup;if(!h)return Promise.reject(new c("trigger-action:missing-arguments","Event has no action"));if(!x)return Promise.reject(new c("trigger-action:missing-arguments","view.popup is missing"));const {disabled:C,
id:D}=h;if(!D)return Promise.reject(new c("trigger-action:invalid-action","action.id is missing"));if(C)return Promise.reject(new c("trigger-action:invalid-action","Action is disabled"));if(D===f.zoomToFeature.id)return v(x.viewModel);if(D===f.zoomToClusteredFeatures.id)return u(x.viewModel);if(D===f.browseClusteredFeatures.id)return x.featureMenuOpen=!x.featureMenuOpen,x.viewModel.browseClusterEnabled=!x.viewModel.browseClusterEnabled,Promise.resolve();x.viewModel.browseClusterEnabled=!1;if(D===
f.removeSelectedFeature.id){x.close();({selectedFeature:h}=x);if(!h)return Promise.reject(new c(`trigger-action:${f.removeSelectedFeature.id}`,"selectedFeature is required",{selectedFeature:h}));({sourceLayer:x}=h);x?x.remove(h):w.graphics.remove(h)}return Promise.resolve()};a.zoomToClusterExtent=u;a.zoomToLocation=v;Object.defineProperty(a,"__esModule",{value:!0})})},"esri/widgets/support/GoTo":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){a.GoToMixin=u=>{u=function(m){function p(...e){e=m.call(this,...e)||this;e.goToOverride=null;e.view=null;return e}b._inheritsLoose(p,m);p.prototype.callGoTo=function(e){const {view:l}=this;return this.goToOverride?this.goToOverride(l,e):l.goTo(e.target,e.options)};return p}(u);c.__decorate([g.property()],u.prototype,"goToOverride",void 0);c.__decorate([g.property()],u.prototype,"view",void 0);return u=c.__decorate([t.subclass("esri.widgets.support.GoTo")],u)};Object.defineProperty(a,
"__esModule",{value:!0})})},"esri/views/interactive/ToolViewManagerManipulatorState":function(){define("../../chunks/_rollupPluginBabelHelpers ../../core/MapUtils ../../core/mathUtils ../../core/maybe ../../core/screenUtils ./interactiveToolUtils ../support/screenUtils".split(" "),function(a,b,c,g,f,k,q){const v={manipulator:null,tool:null};return function(){function t(){this._pointerLocations=new Map;this._hoveredManipulators=new Map;this._grabbedManipulators=new Map;this._draggedManipulators=new Map;
this._stopDrag=!1;this._cursor=this._revertToActiveTool=null}var u=t.prototype;u.handleInputEvent=function(m,p){var e=()=>m.stopPropagation();switch(m.type){case "pointer-move":"mouse"===m.pointerType&&this._pointerLocations.set(m.pointerId,{x:m.x,y:m.y,pointerType:m.pointerType});break;case "drag":0<this._grabbedManipulators.size&&(this._stopDrag=!0);this._stopDrag&&(m.stopPropagation(),"end"===m.action&&(this._stopDrag=!1));break;case "pointer-down":if("mouse"===m.pointerType&&0!==m.button)break;
e=q.createScreenPointFromEvent(m);var l=this._intersect(e,m.pointerType,p.forEachTool);if(g.isNone(l))break;var h=this._findToolAndManipulatorByKey(l,p.forEachTool,v),n=g.applySome(h,x=>x.manipulator);h=g.applySome(h,x=>x.tool);!(g.isSome(n)&&g.isSome(h)&&n.interactive)||n.grabbable&&n.grabbableForEvent(m)||!n.grabbing||n.dragging||this._ungrabManipulatorBeforeDragging(n,h,m);g.isSome(n)&&n.interactive&&n.grabbable&&n.grabbableForEvent(m)&&!n.grabbing&&(this._grabbedManipulators.set(m.pointerId,{key:l,
start:e}),1===this._grabbedManipulators.size&&(this._revertToActiveTool=p.activeTool,p.setActiveTool(l.tool)),n.grabbing=!0,n.events.emit("grab-changed",{action:"start",screenPoint:e}),m.stopPropagation());break;case "pointer-up":this._handlePointerEnd(m,p);break;case "pointer-drag":if("mouse"===m.pointerType&&0!==m.button)break;var w=this._grabbedManipulators.get(m.pointerId);e=this._draggedManipulators.get(m.pointerId);l=g.applySome(w||e,({key:x})=>x);n=this._findManipulatorByKey(l,p.forEachTool);
if(g.isNone(n))break;h=q.createScreenPointFromEvent(m);h.x=c.clamp(h.x,0,p.view.width);h.y=c.clamp(h.y,0,p.view.height);w=g.unwrap(w||e).start;switch(m.action){case "start":case "update":if("update"===m.action||1===this._grabbedManipulators.size)n.dragging=!0,e?n.events.emit("drag",{action:"update",start:w,screenPoint:h}):n.events.emit("drag",{action:"start",start:w,screenPoint:h,pointerType:m.pointerType}),this._draggedManipulators.set(m.pointerId,{key:g.unwrap(l),start:w});break;case "end":n.dragging=
!1,e&&n.events.emit("drag",{action:"end",start:w,screenPoint:h}),this._draggedManipulators.delete(m.pointerId),this._handlePointerEnd(m,p)}m.stopPropagation();break;case "immediate-click":{l=q.createScreenPointFromEvent(m);n=this._intersect(l,m.pointerType,p.forEachTool);const x=this._findToolAndManipulatorByKey(n,p.forEachTool,v);m.native.shiftKey||p.forEachTool(A=>{if((!g.isSome(x)||x.tool!==A||!A.selectionManagementDisabled)&&A.manipulators){let B=!1;A.manipulators.forEach(({manipulator:r})=>{r.selected&&
(r.selected=!1,B=!0)});B&&A.manipulatorSelectionChanged&&A.manipulatorSelectionChanged()}});if(g.isNone(x))break;const {manipulator:C,tool:D}=x;if(!C.interactive)break;C.selectable&&!D.selectionManagementDisabled&&(C.selected=!C.selected,D.manipulatorSelectionChanged&&D.manipulatorSelectionChanged());C.events.emit("immediate-click",{screenPoint:l,button:m.button,pointerType:m.pointerType,shiftKey:m.native.shiftKey,stopPropagation:e});break}case "click":e=q.createScreenPointFromEvent(m);l=this._intersect(e,
m.pointerType,p.forEachTool);l=this._findManipulatorByKey(l,p.forEachTool);if(g.isNone(l)||!l.interactive)break;l.events.emit(m.type,{screenPoint:e,button:m.button,pointerType:m.pointerType,shiftKey:m.native.shiftKey});m.stopPropagation();break;case "double-click":l=q.createScreenPointFromEvent(m);n=this._intersect(l,m.pointerType,p.forEachTool);n=this._findManipulatorByKey(n,p.forEachTool);if(g.isNone(n)||!n.interactive)break;n.events.emit("double-click",{screenPoint:l,button:m.button,pointerType:m.pointerType,
shiftKey:m.native.shiftKey,stopPropagation:e});break;case "immediate-double-click":l=q.createScreenPointFromEvent(m),n=this._intersect(l,m.pointerType,p.forEachTool),n=this._findManipulatorByKey(n,p.forEachTool),!g.isNone(n)&&n.interactive&&n.events.emit("immediate-double-click",{screenPoint:l,button:m.button,pointerType:m.pointerType,shiftKey:m.native.shiftKey,stopPropagation:e})}this._updateCursor(p.forEachTool)};u._ungrabManipulatorBeforeDragging=function(m,p,e){m.grabbing=!1;m.events.emit("grab-changed",
{action:"end",screenPoint:q.createScreenPointFromEvent(e)});this._grabbedManipulators.forEach(({key:l},h)=>{l.tool===p&&p.manipulators.findById(l.manipulatorId)===m&&this._grabbedManipulators.delete(h)})};u._handlePointerEnd=function(m,p){var e=g.applySome(this._grabbedManipulators.get(m.pointerId),({key:h})=>h);const l=this._findManipulatorByKey(e,p.forEachTool);g.isSome(l)&&!l.dragging&&(e=g.isSome(p.creatingTool)&&p.creatingTool===g.unwrap(e).tool,1!==this._grabbedManipulators.size||0!==this._draggedManipulators.size||
e||(p.setActiveTool(this._revertToActiveTool),this._revertToActiveTool=null),l.grabbing&&(l.grabbing=!1,l.events.emit("grab-changed",{action:"end",screenPoint:q.createScreenPointFromEvent(m)})),this._grabbedManipulators.delete(m.pointerId))};u._cursorFromMap=function(m,p){let e=null;b.someMap(m,({key:l})=>{l=this._findManipulatorByKey(l,p);return g.isSome(l)&&l.interactive&&"cursor"in l&&l.cursor?(e=l.cursor,!0):!1});return e};u._updateCursor=function(m){this._cursor=0<this._grabbedManipulators.size?
this._cursorFromMap(this._grabbedManipulators,m)||"grabbing":0<this._hoveredManipulators.size?this._cursorFromMap(this._hoveredManipulators,m)||"pointer":null};u.clearPointers=function(m,p,e=!0,l){const h=n=>n.tool===m&&(g.isNone(l)||n.manipulatorId===l);this._grabbedManipulators.forEach(({key:n},w)=>{h(n)&&(this._grabbedManipulators.delete(w),n=this._findManipulatorByKey(n,p),g.isSome(n)&&(n.grabbing=!1,n.events.emit("grab-changed",{action:"end",screenPoint:null})))});this._draggedManipulators.forEach(({key:n},
w)=>{h(n)&&(this._draggedManipulators.delete(w),n=this._findManipulatorByKey(n,p),g.isSome(n)&&(n.dragging=!1,n.events.emit("drag",{action:"cancel"})))});e&&this._hoveredManipulators.forEach(({key:n},w)=>{h(n)&&(this._hoveredManipulators.delete(w),n=this._findManipulatorByKey(n,p),g.isSome(n)&&(n.hovering=!1))});this._updateCursor(p)};u._intersect=function(m,p,e){let l=null;e(h=>{if(null==h.manipulators||!k.areToolManipulatorsEditable(h))return!1;const n=h.manipulators.intersect(m,p);if(g.isNone(n))return!1;
l={manipulatorId:n.id,tool:h};return!0});return l};u.updateHoveredStateFromKnownPointers=function(m){this._pointerLocations.forEach((p,e)=>{this._updateHoveredStateForPointerAtScreenPosition(f.createScreenPoint(p.x,p.y),e,p.pointerType,m)})};u.handleHoverEvent=function(m,p){"pointer-up"!==m.type&&"immediate-click"!==m.type&&"pointer-move"!==m.type||"mouse"!==m.pointerType||this._updateHoveredStateForPointerAtScreenPosition(q.createScreenPointFromEvent(m),m.pointerId,m.pointerType,p)};u._updateHoveredStateForPointerAtScreenPosition=
function(m,p,e,l){m=this._intersect(m,e,l);e=this._findManipulatorByKey(m,l);var h=g.applySome(this._hoveredManipulators.get(p),({key:n})=>n);h=this._findManipulatorByKey(h,l);g.isSome(e)&&!e.interactive&&(e=null);h!==e&&(g.isSome(h)&&(h.hovering=!1),g.isSome(e)?(e.hovering=!0,this._hoveredManipulators.set(p,{key:g.unwrap(m)})):this._hoveredManipulators.delete(p),this._updateCursor(l))};u._findManipulatorByKey=function(m,p){return this._findToolAndManipulatorByKey(m,p,v)?v.manipulator:null};u._findToolAndManipulatorByKey=
function(m,p,e){if(g.isNone(m))return null;e.tool=null;e.manipulator=null;p(l=>{if(l!==m.tool||null==l.manipulators||!k.areToolManipulatorsEditable(l))return!1;const h=l.manipulators.findById(m.manipulatorId);return g.isSome(h)?(e.manipulator=h,e.tool=l,!0):!1});return e.manipulator?e:null};a._createClass(t,[{key:"cursor",get:function(){return this._cursor}}]);return t}()})},"esri/views/support/screenUtils":function(){define(["exports","../../core/has","../../core/screenUtils"],function(a,b,c){function g(k){return c.createScreenPoint(k.x,
k.y)}function f(k,q){k=(k instanceof HTMLElement?k:k.surface).getBoundingClientRect();return c.createScreenPoint(q.clientX-k.left,q.clientY-k.top)}a.createScreenPointFromEvent=g;a.createScreenPointFromNativeEvent=f;a.createScreenPointFromSupportedEvent=function(k,q){return q instanceof Event?f(k,q):g(q)};a.isSupportedScreenPointEvent=function(k){if(k instanceof Event)return!0;if("object"===typeof k&&"type"in k)switch(k.type){case "click":case "double-click":case "pointer-down":case "pointer-drag":case "pointer-enter":case "pointer-leave":case "pointer-up":case "pointer-move":case "immediate-click":case "immediate-double-click":case "hold":case "drag":case "mouse-wheel":return!0}return!1};
Object.defineProperty(a,"__esModule",{value:!0})})},"esri/views/input/Input":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./gamepad/GamepadSettings".split(" "),function(a,b,c,g,f,k,q,v,t,u){c=function(m){function p(){var e=m.apply(this,arguments)||this;e.gamepad=
new u;return e}a._inheritsLoose(p,m);return p}(c);b.__decorate([g.property({readOnly:!0})],c.prototype,"gamepad",void 0);return c=b.__decorate([t.subclass("esri.views.input.Input")],c)})},"esri/views/input/gamepad/GamepadSettings":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/Collection ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ./GamepadInputDevice".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){c=function(p){function e(...l){l=p.call(this,...l)||this;l.devices=new g;l.enabledFocusMode="document";return l}a._inheritsLoose(e,p);return e}(c);b.__decorate([f.property({type:g.ofType(m),readOnly:!0})],c.prototype,"devices",void 0);b.__decorate([f.property({type:["document","view","none"]})],c.prototype,"enabledFocusMode",void 0);return c=b.__decorate([u.subclass("esri.views.input.gamepad.GamepadSettings")],c)})},"esri/views/input/gamepad/GamepadInputDevice":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t){c=function(p){function e(l){var h=p.call(this)||this;h.nativeIndex=null;h._detectedDeviceType="unknown";"standard"===l.mapping?h._detectedDeviceType="standard":u.test(l.id)?h._detectedDeviceType="spacemouse":h._detectedDeviceType="unknown";h.nativeIndex=l.index;return h}a._inheritsLoose(e,p);a._createClass(e,[{key:"native",get:function(){return(navigator.getGamepads?navigator.getGamepads():[])[this.nativeIndex]}},{key:"deviceType",get:function(){return this._detectedDeviceType}},
{key:"axisThreshold",get:function(){return m[this.deviceType]}}]);return e}(c);b.__decorate([g.property({nonNullable:!0,readOnly:!0})],c.prototype,"nativeIndex",void 0);b.__decorate([g.property({type:String,readOnly:!0})],c.prototype,"deviceType",null);b.__decorate([g.property({type:Number,readOnly:!0})],c.prototype,"axisThreshold",null);c=b.__decorate([t.subclass("esri.views.input.gamepad.GamepadInputDevice")],c);const u=/^(3dconnexion|space(mouse|navigator|pilot|explorer))/i,m={standard:.15,spacemouse:.025,
unknown:0};return c})},"esri/views/navigation/Navigation":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/Logger ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ./gamepad/GamepadSettings".split(" "),function(a,b,c,g,f,k,q,v,t,u){c=function(m){function p(e){e=m.call(this,e)||this;e.browserTouchPanEnabled=!0;e.gamepad=new u;
e.momentumEnabled=!0;e.mouseWheelZoomEnabled=!0;return e}a._inheritsLoose(p,m);return p}(c);b.__decorate([g.property({type:Boolean})],c.prototype,"browserTouchPanEnabled",void 0);b.__decorate([g.property({type:u,nonNullable:!0})],c.prototype,"gamepad",void 0);b.__decorate([g.property({type:Boolean})],c.prototype,"momentumEnabled",void 0);b.__decorate([g.property({type:Boolean})],c.prototype,"mouseWheelZoomEnabled",void 0);return c=b.__decorate([t.subclass("esri.views.navigation.Navigation")],c)})},
"esri/views/navigation/gamepad/GamepadSettings":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/Logger ../../../core/jsonMap ../../../core/accessorSupport/decorators/subclass ../../input/gamepad/GamepadInputDevice".split(" "),function(a,b,c,g,f,k,q,v,t,u){c=function(m){function p(e){e=m.call(this,e)||this;e.enabled=
!0;e.device=null;e.mode="pan";e.tiltDirection="forward-down";e.velocityFactor=1;return e}a._inheritsLoose(p,m);return p}(c);b.__decorate([g.property({type:Boolean,nonNullable:!0})],c.prototype,"enabled",void 0);b.__decorate([g.property({type:u})],c.prototype,"device",void 0);b.__decorate([g.property({type:["pan","zoom"],nonNullable:!0})],c.prototype,"mode",void 0);b.__decorate([g.property({type:["forward-down","forward-up"],nonNullable:!0})],c.prototype,"tiltDirection",void 0);b.__decorate([g.property({type:Number,
nonNullable:!0})],c.prototype,"velocityFactor",void 0);return c=b.__decorate([t.subclass("esri.views.navigation.gamepad.GamepadSettings")],c)})},"esri/views/support/DefaultsFromMap":function(){define("require ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/arrayUtils ../../core/Handles ../../core/Logger ../../core/promiseUtils ../../core/watchUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/jsonMap ../../core/accessorSupport/decorators/subclass ../../geometry/support/heightModelInfoUtils ../../geometry/support/webMercatorUtils".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e,l,h,n){function w(A){return A?JSON.stringify(A.toJSON()):"undefined"}function x(A){switch(A){case 0:return"Waiting";case 1:return"Found";case 2:return"Exhausted"}}var C;const D=q.getLogger("esri.views.support.DefaultsFromMap");g=C=function(A){function B(){var z=A.apply(this,arguments)||this;z._handles=new k;z._waitTask=null;z._extentProjectController=null;z._spatialReferenceCandidates=null;z._extentCandidates=null;z.logDebugInformation=!1;z.isSpatialReferenceDone=
!1;z.isTileInfoDone=!1;z.isHeightModelInfoSearching=!1;z.spatialReference=null;z.extent=null;z.heightModelInfo=null;z.vcsWkid=null;z.latestVcsWkid=null;z.mapCollectionPaths=C.DefaultMapCollectionPaths.slice();z.tileInfo=null;return z}b._inheritsLoose(B,A);var r=B.prototype;r.initialize=function(){this.watch("mapCollectionPaths",()=>{this._running&&(this.reset(),this.start())})};r.destroy=function(){this._set("view",null);this._handles&&(this._handles.destroy(),this._handles=null);this._cancelLoading()};
r.reset=function(){this._handles.removeAll();this._set("isSpatialReferenceDone",!1);this._set("isTileInfoDone",!1);this._set("isHeightModelInfoSearching",!1);this._set("spatialReference",null);this._set("extent",null);this._set("heightModelInfo",null);this._set("vcsWkid",null);this._set("latestVcsWkid",null);this._set("tileInfo",null);this._extentCandidates=this._spatialReferenceCandidates=null};r.start=function(){this._handles.removeAll();const z=this._updateLayerChange.bind(this);for(const E of this.mapCollectionPaths)this._handles.add(t.on(this.view,
`map.${E}`,"change",z,z,z,!0));this._handles.add(t.when(this,"isSpatialReferenceDone",()=>this._updateTileInfo(),!0))};r._ownerNameFromCollectionName=function(z){const E=z.lastIndexOf(".");return-1===E?"view":"view."+z.slice(0,E)};r._ensureLoadedOwnersFromCollectionName=function(z){const E=this._ownerNameFromCollectionName(z).split(".");let F;for(let G=0;G<E.length;G++){F=this.get(E.slice(0,G+1).join("."));if(!F)break;if(F.load&&!F.isFulfilled())return{collectionName:z,owner:null,loading:F.load().catch(()=>
{})}}return{collectionName:z,owner:F}};r._cancelLoading=function(){this._waitTask=null;this._extentProjectController&&(this._extentProjectController.abort(),this._extentProjectController=null)};r._updateWhen=function(z){let E=!0,F=!1;const G=z.catch(()=>{}).then(()=>{E?F=!0:G===this._waitTask&&this._update()});E=!1;F||(this._waitTask=G);return F};r._updateLayerChange=function(){this.isSpatialReferenceDone&&!this.spatialReference&&this._set("isSpatialReferenceDone",!1);this._update()};r._update=function(){this._cancelLoading();
if(this.view){if(!this.isSpatialReferenceDone){this._debugLog("Starting search for spatial reference...");var z=this._processMapCollections(E=>this._processSpatialReferenceSource(E));this._debugLog(`Search ended with status '${x(z)}'`);if(0!==z){let E=null;z=this._spatialReferenceCandidates;!z||1>z.length?(E=this.defaultSpatialReference,this._debugLog(`No spatial reference found, locking to default (${w(E)})`)):(this.defaultSpatialReference&&1<z.length&&-1<z.findIndex(F=>F.equals(this.defaultSpatialReference))&&
(z=[this.defaultSpatialReference]),E=z[0],this._debugLog(`Locking to ${w(E)}`));this._set("spatialReference",E);E?this.extent?this._set("isSpatialReferenceDone",!0):(z=this.logDebugInformation,this.logDebugInformation=!1,this._processMapCollections(F=>this._findExtent(F,E)),this.logDebugInformation=z,this._projectExtentCandidate().catch(()=>{}).then(()=>this._set("isSpatialReferenceDone",!0))):this._set("isSpatialReferenceDone",!0)}}null==this.heightModelInfo&&this.view.isHeightModelInfoRequired&&
(this._debugLog("Starting search for height model info..."),z=this._processMapCollections(E=>this._processHeightModelInfoSource(E),E=>h.mayHaveHeightModelInfo(E)),this._debugLog(`Search ended with status ${x(z)}`),this._set("isHeightModelInfoSearching",0===z));this._updateTileInfo()}};r._processMapCollections=function(z,E){this._preloadMapCollections(E);let F=2;this._forAllMapCollectionSources(G=>{if(2!==F)return!1;const {collectionName:N}=G;this._debugLog(`Processing collection ${N}...`);return G.loading&&
!this._updateWhen(G.loading)?(this._debugLog(`Collection ${G.collectionName} owner is loading -> wait`),F=0,!1):!0},G=>2!==F?!1:null==E||E(G)?!G.load||G.isFulfilled()||this._updateWhen(G.load())?G.load&&!G.isResolved()||!z(G)?!0:(F=1,!1):(this._debugLog(`Source ${G.id} is loading -> wait`),F=0,!1):(this._debugLog(`Source ${G.id} is skipped due to predicate`),!1));return F};r._preloadMapCollections=function(z){let E=10;const F=this.logDebugInformation;this.logDebugInformation=!1;this._forAllMapCollectionSources(()=>
!0,G=>{if(0===E||null!=z&&!z(G))return!1;G.load&&!G.isFulfilled()&&(this.logDebugInformation=F,this._debugLog(`Pre-loading source ${G.id}`),this.logDebugInformation=!1,G.load().catch(()=>{}),E--);return!0});this.logDebugInformation=F};r._forAllMapCollectionSources=function(z,E){for(const G of this.mapCollectionPaths){const N=`map.${G}`;var F=this._ensureLoadedOwnersFromCollectionName(N);!1!==z(F)&&(F=F.owner,!F||F.isRejected&&F.isRejected()?this._debugLog(`Collection ${N} owner is invalid or rejected -> skip`):
(F=this.view.get(N))?this._forEachSource(F,E):this._debugLog(`Collection ${N} does not exist -> skip`))}};r._forEachSource=function(z,E){for(const F of z.items)!1!==E(F)&&"layers"in F&&F.layers&&this._forEachSource(F.layers,E)};r._processSpatialReferenceSource=function(z){let E=this._getSupportedSpatialReferences(z);if(0===E.length)return!1;this._spatialReferenceCandidates?(E=f.intersect(E,this._spatialReferenceCandidates,(F,G)=>F.equals(G)),0<E.length?this._spatialReferenceCandidates=E:this._debugLog(`Layer ${z.id} is ignored because its supported spatial
          references are not compatible with the previous candidates`)):this._spatialReferenceCandidates=E;return 1===this._spatialReferenceCandidates.length};r._findExtent=function(z,E){var F="fullExtents"in z&&z.fullExtents||(z.fullExtent?[z.fullExtent]:[]);const G=F.find(N=>N.spatialReference.equals(E));if(G)return this._set("extent",G),!0;0<this._getSupportedSpatialReferences(z).length&&(F=F.map(N=>({extent:N,layer:z})),this._extentCandidates=(this._extentCandidates||[]).concat(F));return!1};
r._projectExtentCandidate=function(){var z=b._asyncToGenerator(function*(){if(this._extentCandidates&&this._extentCandidates.length){var E=this.spatialReference,F=this._extentCandidates.find(G=>n.canProject(G.extent.spatialReference,E));if(F)this._set("extent",n.project(F.extent,E));else{F=this._extentCandidates[0];this._extentProjectController=v.createAbortController();const G=yield new Promise(function(N,K){a(["../../portal/support/geometryServiceUtils"],N,K)});try{const N=yield G.projectGeometry(F.extent,
E,F.layer.portalItem,this._extentProjectController.signal);this._set("extent",N)}catch{}this._extentProjectController=null}}});return function(){return z.apply(this,arguments)}}();r._getSupportedSpatialReferences=function(z){var E="supportedSpatialReferences"in z&&z.supportedSpatialReferences||(z.spatialReference?[z.spatialReference]:[]);if(0===E.length)return this._debugLog(`Layer ${z.id} is ignored because it does not have any spatial references`),[];E=E.filter(F=>this.view.isSpatialReferenceSupported(F,
z,G=>this._debugLog(G)));0===E.length?this._debugLog(`Layer ${z.id} has spatial references but none of them are supported (or layer doesn't require locking)`):this._debugLog(`Layer ${z.id} has spatial references. Resulting candidate set: ${E.map(w).join(", ")}`);return E};r._processHeightModelInfoSource=function(z){const E=h.deriveHeightModelInfoFromLayer(z);return E?(this._set("heightModelInfo",E),this._set("isHeightModelInfoSearching",!1),z.spatialReference&&(this._set("vcsWkid",z.spatialReference.vcsWkid),
this._set("latestVcsWkid",z.spatialReference.latestVcsWkid)),!0):!1};r._updateTileInfo=function(){if(null==this.tileInfo)if(!this.view.isTileInfoRequired())this._set("isTileInfoDone",!0);else if(this.isSpatialReferenceDone){var z=this.get("view.map");if(z){var E=z.basemap;z=z.get("layers.0");var F=null;if(E&&"failed"!==E.loadStatus){if(!E.loaded){this._updateWhen(E.load());this._debugLog("updateTileInfo: basemap still loading");return}if((E=E&&E.get("baseLayers.0"))&&"failed"!==E.loadStatus)if(E.loaded)F=
"tileInfo"in E&&E.tileInfo;else{this._updateWhen(E.load());this._debugLog("updateTileInfo: first basemap layer still loading");return}else if(z&&"failed"!==z.loadStatus)if(z.loaded)F="tileInfo"in z&&z.tileInfo;else{this._updateWhen(z.load());this._debugLog("updateTileInfo: first operational layer still loading");return}else{this._debugLog("updateTileInfo: no tileInfo");this._set("isTileInfoDone",!0);return}}else if(z&&"failed"!==z.loadStatus)if(z.loaded)F="tileInfo"in z&&z.tileInfo;else{this._updateWhen(z.load());
this._debugLog("updateTileInfo: first operational layer still loading");return}F&&!F.spatialReference.equals(this.spatialReference)&&(F=null);this._debugLog(`updateTileInfo: setting ${F}`);this._set("tileInfo",F);this._set("isTileInfoDone",!0)}else this._debugLog("updateTileInfo: no map")}};r._debugLog=function(z){this.logDebugInformation&&D.info(z)};b._createClass(B,[{key:"_running",get:function(){return!!(this._handles&&0<this._handles.size)}}]);return B}(g);g.DefaultMapCollectionPaths=["basemap.baseLayers",
"layers","ground.layers","basemap.referenceLayers"];c.__decorate([u.property()],g.prototype,"logDebugInformation",void 0);c.__decorate([u.property({readOnly:!0})],g.prototype,"isSpatialReferenceDone",void 0);c.__decorate([u.property({readOnly:!0})],g.prototype,"isTileInfoDone",void 0);c.__decorate([u.property({readOnly:!0})],g.prototype,"isHeightModelInfoSearching",void 0);c.__decorate([u.property({constructOnly:!0})],g.prototype,"view",void 0);c.__decorate([u.property({readOnly:!0})],g.prototype,
"spatialReference",void 0);c.__decorate([u.property({readOnly:!0})],g.prototype,"extent",void 0);c.__decorate([u.property({readOnly:!0})],g.prototype,"heightModelInfo",void 0);c.__decorate([u.property({readOnly:!0})],g.prototype,"vcsWkid",void 0);c.__decorate([u.property({readOnly:!0})],g.prototype,"latestVcsWkid",void 0);c.__decorate([u.property()],g.prototype,"mapCollectionPaths",void 0);c.__decorate([u.property()],g.prototype,"defaultSpatialReference",void 0);c.__decorate([u.property({readOnly:!0})],
g.prototype,"tileInfo",void 0);return g=C=c.__decorate([l.subclass("esri.views.support.DefaultsFromMap")],g)})},"esri/geometry/support/heightModelInfoUtils":function(){define("exports ../../core/has ../../core/Error ../../core/maybe ../HeightModelInfo ../../layers/support/arcgisLayerUrl".split(" "),function(a,b,c,g,f,k){function q(l,h,n){if(!v(l)||!v(h))return 4;if(null==l||null==h)return 0;if(!n&&l.heightUnit!==h.heightUnit)return 1;if(l.heightModel!==h.heightModel)return 2;switch(l.heightModel){case "gravity-related-height":return 0;
case "ellipsoidal":return l.vertCRS===h.vertCRS?0:3;default:return 4}}function v(l){return null==l||null!=l.heightModel&&null!=l.heightUnit}function t(l){const h=l.url&&k.parse(l.url);return(null!=(l.spatialReference&&l.spatialReference.vcsWkid)||!g.isSome(h)||"ImageServer"!==h.serverType)&&"heightModelInfo"in l&&l.heightModelInfo?l.heightModelInfo:m(l)?f.deriveUnitFromSR(e,l.spatialReference):null}function u(l){if("unknown"===l.type||!("capabilities"in l))return!1;switch(l.type){case "csv":case "feature":case "geojson":case "subtype-group":case "ogc-feature":case "wfs":return!0;
case "imagery":case "map-image":case "map-notes":case "tile":case "vector-tile":case "scene":case null:return!1;default:return!1}}function m(l){return u(l)?!!(l.capabilities&&l.capabilities.data&&l.capabilities.data.supportsZ):p(l)}function p(l){switch(l.type){case "building-scene":case "elevation":case "integrated-mesh":case "point-cloud":case "scene":case "voxel":case "slice":return!0}return!1}const e=new f({heightModel:"gravity-related-height"});a.deriveHeightModelInfoFromLayer=t;a.mayHaveHeightModelInfo=
function(l){return null!=l.layers||p(l)||u(l)||"heightModelInfo"in l};a.rejectLayerError=function(l,h,n){const w=t(l);var x=q(w,h,n);{let C=null;if(w){const D=f.deriveUnitFromSR(w,l.spatialReference).heightUnit;n||D===w.heightUnit||(C=new c("layerview:unmatched-height-unit",`The vertical units of the layer must match the horizontal units (${D})`,{horizontalUnit:D}))}if(!("heightModelInfo"in l&&null!=l.heightModelInfo||null!=l.spatialReference)&&m(l)||4===x||C)return new c("layerview:unsupported-height-model-info",
"The vertical coordinate system of the layer is not supported",{heightModelInfo:w,error:C})}l=null;switch(x){case 1:x=w.heightUnit||"unknown";l=h.heightUnit||"unknown";l=new c("layerview:incompatible-height-unit",`The vertical units of the layer (${x}) must match the vertical units of the scene (${l})`,{layerUnit:x,sceneUnit:l});break;case 2:x=w.heightModel||"unknown";l=h.heightModel||"unknown";l=new c("layerview:incompatible-height-model",`The height model of the layer (${x}) must match the height model of the scene (${l})`,
{layerHeightModel:x,sceneHeightModel:l});break;case 3:x=w.vertCRS||"unknown",l=h.vertCRS||"unknown",l=new c("layerview:incompatible-vertical-datum",`The vertical datum of the layer (${x}) must match the vertical datum of the scene (${l})`,{layerDatum:x,sceneDatum:l})}return l?new c("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:w,sceneHeightModelInfo:h,error:l}):null};a.validateWebSceneError=function(l,
h){if(!l)return null;if(!v(l))return new c("webscene:unsupported-height-model-info","The vertical coordinate system of the scene is not supported",{heightModelInfo:l});const n=l.heightUnit;l=f.deriveUnitFromSR(l,h).heightUnit;return n!==l?new c("webscene:incompatible-height-unit",`The vertical units of the scene (${n}) must match the horizontal units of the scene (${l})`,{verticalUnit:n,horizontalUnit:l}):null};Object.defineProperty(a,"__esModule",{value:!0})})},"esri/views/ViewAnimation":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Error ../core/Promise ../core/promiseUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/Logger ../core/jsonMap ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m){g=function(p){function e(h){h=p.call(this,h)||this;h.state="running";h.target=null;return h}a._inheritsLoose(e,p);var l=e.prototype;l.initialize=function(){this.addResolvingPromise(new Promise((h,n)=>this._dfd={resolve:h,reject:n}))};l.stop=function(){"stopped"!==this.state&&"finished"!==this.state&&(this._set("state","stopped"),this._dfd.reject(new c("ViewAnimation stopped")))};l.finish=function(){"stopped"!==this.state&&"finished"!==this.state&&(this._set("state",
"finished"),this._dfd.resolve())};l.update=function(h,n){n||(n=f.isPromiseLike(h)?"waiting-for-target":"running");this._set("target",h);this._set("state",n)};a._createClass(e,[{key:"done",get:function(){return"finished"===this.state||"stopped"===this.state}}]);return e}(g.EsriPromise);b.__decorate([k.property({readOnly:!0})],g.prototype,"done",null);b.__decorate([k.property({readOnly:!0,type:String})],g.prototype,"state",void 0);b.__decorate([k.property()],g.prototype,"target",void 0);g=b.__decorate([m.subclass("esri.views.ViewAnimation")],
g);(g||(g={})).State={RUNNING:"running",STOPPED:"stopped",FINISHED:"finished",WAITING_FOR_TARGET:"waiting-for-target"};return g})},"esri/views/layers/LayerView":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/Evented ../../core/HandleOwner ../../core/Identifiable ../../core/Logger ../../core/Promise ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/ensureType ../../core/jsonMap ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,g,f,k,q,v,t,u,m,p,e){c=function(l){function h(w){w=l.call(this,w)||this;w.layer=null;w.parent=null;return w}a._inheritsLoose(h,l);var n=h.prototype;n.initialize=function(){this.when().catch(w=>{if("layerview:create-error"!==w.name){const x=this.layer&&this.layer.id||"no id",C=this.layer&&this.layer.title||"no title";q.getLogger(this.declaredClass).error("#resolve()",`Failed to resolve layer view (layer title: '${C}', id: '${x}')`,w);throw w;}})};n.canResume=function(){return!this.get("parent.suspended")&&
this.get("view.ready")&&this.get("layer.loaded")&&this.visible||!1};n.getSuspendInfo=function(){const w=this.parent&&this.parent.suspended?this.parent.suspendInfo:{};this.view&&this.view.ready||(w.viewNotReady=!0);this.layer&&this.layer.loaded||(w.layerNotLoaded=!0);this.visible||(w.layerInvisible=!0);return w};n.isUpdating=function(){return!1};a._createClass(h,[{key:"fullOpacity",get:function(){var w=this.get("layer.opacity");w=null==w?1:w;var x=this.get("parent.fullOpacity");return w*(null==x?1:
x)}},{key:"suspended",get:function(){return!this.canResume()}},{key:"suspendInfo",get:function(){return this.getSuspendInfo()}},{key:"legendEnabled",get:function(){return!this.suspended&&!0===this.layer.legendEnabled}},{key:"updating",get:function(){return!!(this.updatingHandles&&this.updatingHandles.updating||this.isUpdating())}},{key:"updatingProgress",get:function(){return this.updating?0:1}},{key:"visible",get:function(){return!0===this.get("layer.visible")},set:function(w){void 0===w?this._clearOverride("visible"):
this._override("visible",w)}}]);return h}(f.HandleOwnerMixin(k.IdentifiableMixin(v.EsriPromiseMixin(g.EventedMixin(c)))));b.__decorate([t.property()],c.prototype,"fullOpacity",null);b.__decorate([t.property()],c.prototype,"layer",void 0);b.__decorate([t.property()],c.prototype,"parent",void 0);b.__decorate([t.property({readOnly:!0})],c.prototype,"suspended",null);b.__decorate([t.property({readOnly:!0})],c.prototype,"suspendInfo",null);b.__decorate([t.property({readOnly:!0})],c.prototype,"legendEnabled",
null);b.__decorate([t.property({type:Boolean,readOnly:!0})],c.prototype,"updating",null);b.__decorate([t.property({readOnly:!0})],c.prototype,"updatingProgress",null);b.__decorate([t.property()],c.prototype,"visible",null);return c=b.__decorate([e.subclass("esri.views.layers.LayerView")],c)})},"*noref":1}});require.boot&&require.apply(null,require.boot);