// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/3.39/esri/copyright.txt for details.
/*
	Copyright (c) 2004-2016, The JS Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

//>>built
(function(b,A){var q,x=function(){return"undefined"!==typeof u&&"function"!==typeof u?u:"undefined"!==typeof window?window:"undefined"!==typeof self?self:this}(),r=function(){},m=function(g){for(var G in g)return 0;return 1},p={}.toString,t=function(g){return"[object Function]"==p.call(g)},h=function(g){return"[object String]"==p.call(g)},c=function(g){return"[object Array]"==p.call(g)},a=function(g,G){if(g)for(var N=0;N<g.length;)G(g[N++])},f=function(g,G){for(var N in G)g[N]=G[N];return g},e=function(g,
G){return f(Error(g),{src:"dojoLoader",info:G})},l=1,k=function(){return"_"+l++},d=function(g,G,N){return sa(g,G,N,0,d)},u=x,y=u.document,n=y&&y.createElement("DiV"),v=d.has=function(g){return t(D[g])?D[g]=D[g](u,y,n):D[g]},D=v.cache=A.hasCache;t(b)&&(b=b(x));v.add=function(g,G,N,P){(void 0===D[g]||P)&&(D[g]=G);return N&&v(g)};v.add("host-webworker","undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);v("host-webworker")&&(f(A.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}),A.loaderPatch={injectUrl:function(g,G){try{importScripts(g),G()}catch(N){console.info("failed to load resource ("+g+")"),console.error(N)}}});for(var O in b.has)v.add(O,b.has[O],0,1);var z=0,w=[],E=0,C=r,H=r;d.isXdUrl=r;d.initSyncLoader=function(g,G,N){E||(E=g,C=G,H=N);return{sync:"sync",requested:1,arrived:2,nonmodule:3,executing:4,executed:5,syncExecStack:w,modules:oa,execQ:ja,getModule:Ca,injectModule:Sa,setArrived:za,
signal:U,finishExec:La,execModule:Ma,dojoRequirePlugin:E,getLegacyMode:function(){return z},guardCheckComplete:Na}};var B=location.protocol,K=location.host;d.isXdUrl=function(g){return/^\./.test(g)?!1:/^\/\//.test(g)?!0:(g=g.match(/^([^\/:]+:)\/+([^\/]+)/))&&(g[1]!=B||K&&g[2]!=K)};v.add("dojo-force-activex-xhr",!y.addEventListener&&"file:"==window.location.protocol);v.add("native-xhr","undefined"!=typeof XMLHttpRequest);if(v("native-xhr")&&!v("dojo-force-activex-xhr"))var J=function(){return new XMLHttpRequest};
else{var R=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];for(q=0;3>q;)try{var V=R[q++];new ActiveXObject(V);break}catch(g){}J=function(){return new ActiveXObject(V)}}d.getXhr=J;v.add("dojo-gettext-api",1);d.getText=function(g,G,N){var P=J();P.open("GET",Ta(g),!1);P.send(null);if(200==P.status||!location.host&&!P.status)N&&N(P.responseText,G);else throw e("xhrFailed",P.status);return P.responseText};var Y=v("csp-restrictions")?function(){}:new Function("return eval(arguments[0]);");d.eval=
function(g,G){return Y(g+"\r\n//# sourceURL\x3d"+G)};var S={},U=d.signal=function(g,G){g=S[g];a(g&&g.slice(0),function(N){N.apply(null,c(G)?G:[G])})},L=d.on=function(g,G){var N=S[g]||(S[g]=[]);N.push(G);return{remove:function(){for(var P=0;P<N.length;P++)if(N[P]===G){N.splice(P,1);break}}}},T=[],da={},ha=[],ca={},qa=d.map={},ta=[],oa={},va="",na={},ra={},ia={},wa=0;if(!v("foreign-loader"))var ya=function(g,G){G=!1!==G;var N,P;for(N in ra){var W=ra[N];if(P=N.match(/^url:(.+)/))na["url:"+jb(P[1],g)]=
W;else if("*now"==N)var X=W;else"*noref"!=N&&(P=Oa(N,g,!0),na[P.mid]=na["url:"+P.url]=W)}X&&X(Fa(g));G&&(ra={})};var F=function(g){return g.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(G){return"\\"+G})},I=function(g,G){G.splice(0,G.length);for(var N in g)G.push([N,g[N],new RegExp("^"+F(N)+"(/|$)"),N.length]);G.sort(function(P,W){return W[3]-P[3]});return G},M=function(g,G){a(g,function(N){G.push([h(N[0])?new RegExp("^"+F(N[0])+"$"):N[0],N[1]])})},Q=function(g){var G=g.name;G||(G=g,g={name:G});
g=f({main:"main"},g);g.location=g.location?g.location:G;g.packageMap&&(qa[G]=g.packageMap);g.main.indexOf("./")||(g.main=g.main.substring(2));ca[G]=g},aa=[],ba=function(g,G,N){for(var P in g){"waitSeconds"==P&&(d.waitms=1E3*(g[P]||0));"cacheBust"==P&&(va=g[P]?h(g[P])?g[P]:(new Date).getTime()+"":"");if("baseUrl"==P||"combo"==P)d[P]=g[P];if("async"==P){var W=g[P];d.legacyMode=z=h(W)&&/sync|legacyAsync/.test(W)?W:W?!1:"sync";d.async=!z}g[P]!==D&&(d.rawConfig[P]=g[P],"has"!=P&&v.add("config-"+P,g[P],
0,G))}d.baseUrl||(d.baseUrl="./");/\/$/.test(d.baseUrl)||(d.baseUrl+="/");for(P in g.has)v.add(P,g.has[P],0,G);a(g.packages,Q);for(var X in g.packagePaths)a(g.packagePaths[X],function(ka){var Aa=X+"/"+ka;h(ka)&&(ka={name:ka});ka.location=Aa;Q(ka)});I(f(qa,g.map),ta);a(ta,function(ka){ka[1]=I(ka[1],[]);"*"==ka[0]&&(ta.star=ka)});I(f(da,g.paths),ha);M(g.aliases,T);if(!v("foreign-loader")){if(G)aa.push({config:g.config});else for(P in g.config)G=Ca(P,N),G.config=f(G.config||{},g.config[P]);g.cache&&
(ya(),ra=g.cache,ya(0,!!g.cache["*noref"]))}U("config",[g,d.rawConfig])};v("dojo-cdn");var la=y.getElementsByTagName("script");q=0;for(var Z,ea,pa,ma;q<la.length;)if(Z=la[q++],(pa=Z.getAttribute("src"))&&(ma=pa.match(/(((.*)\/)|^)dojo\.js(\W|$)/i))&&(ea=ma[3]||"",A.baseUrl=A.baseUrl||ea,wa=Z),pa=Z.getAttribute("data-dojo-config")||Z.getAttribute("djConfig"))ia=d.eval("({ "+pa+" })","data-dojo-config"),wa=Z;d.rawConfig={};ba(A,1);v("dojo-cdn")&&((ca.dojo.location=ea)&&(ea+="/"),ca.dijit.location=ea+
"../dijit/",ca.dojox.location=ea+"../dojox/");ba(b,1);ba(ia,1);if(!v("foreign-loader"))var ua=function(g){Na(function(){a(g.deps,Sa)})},sa=function(g,G,N,P,W){var X;if(h(g)){if((X=Ca(g,P,!0))&&X.executed)return X.result;throw e("undefinedModule",g);}c(g)||(ba(g,0,P),g=G,G=N);if(c(g))if(g.length){N="require*"+k();for(var ka,Aa=[],Da=0;Da<g.length;)ka=g[Da++],Aa.push(Ca(ka,P));X=f(Ua("",N,0,""),{injected:2,deps:Aa,def:G||r,require:P?P.require:d,gc:1});oa[X.mid]=X;ua(X);var ab=Pa&&"sync"!=z;Na(function(){Ma(X,
ab)});X.executed||ja.push(X);Ga()}else G&&G();return W},Fa=function(g){if(!g)return d;var G=g.require;G||(G=function(N,P,W){return sa(N,P,W,g,G)},g.require=f(G,d),G.module=g,G.toUrl=function(N){return jb(N,g)},G.toAbsMid=function(N){return bb(N,g)},v("dojo-undef-api")&&(G.undef=function(N){d.undef(N,g)}),G.syncLoadNls=function(N){N=Oa(N,g);var P=oa[N.mid];if(!P||!P.executed)if(Ea=na[N.mid]||na["url:"+N.url])Va(Ea),P=oa[N.mid];return P&&P.executed&&P.result});return G},ja=[],Ha=[],fa={},xa=function(g){g.injected=
1;fa[g.mid]=1;g.url&&(fa[g.url]=g.pack||1);kb()},za=function(g){g.injected=2;delete fa[g.mid];g.url&&delete fa[g.url];m(fa)&&(Wa(),"xd"==z&&(z="sync"))},Ia=d.idle=function(){return!Ha.length&&m(fa)&&!ja.length&&!Pa};var Ja=function(g,G){if(G)for(var N=0;N<G.length;N++)if(G[N][2].test(g))return G[N];return 0},lb=function(g){var G=[];for(g=g.replace(/\\/g,"/").split("/");g.length;){var N=g.shift();if(".."==N&&G.length&&".."!=P){G.pop();var P=G[G.length-1]}else"."!=N&&G.push(P=N)}return G.join("/")},
Ua=function(g,G,N,P){var W=d.isXdUrl(P);return{pid:g,mid:G,pack:N,url:P,executed:0,def:0,isXd:W,isAmd:!!(W||ca[g]&&ca[g].isAmd)}},ob=function(g,G,N,P,W,X,ka,Aa,Da,ab){var Ka,mb,Ba;var cb=/^\./.test(g);if(/(^\/)|(:)|(\.js$)/.test(g)||cb&&!G)return Ua(0,g,0,g);g=lb(cb?G.mid+"/../"+g:g);if(/^\./.test(g))throw e("irrationalPath",g);ab||cb||!X.star||(Ba=Ja(g,X.star[1]));!Ba&&G&&(Ba=(Ba=Ja(G.mid,X))&&Ja(g,Ba[1]));Ba&&(g=Ba[1]+g.substring(Ba[3]));G=(ma=g.match(/^([^\/]+)(\/(.+))?$/))?ma[1]:"";(Ka=N[G])?
g=G+"/"+(mb=ma[3]||Ka.main):G="";var db=0;a(Aa,function(Qa){var nb=g.match(Qa[0]);nb&&0<nb.length&&(db=t(Qa[1])?g.replace(Qa[0],Qa[1]):Qa[1])});if(db)return ob(db,0,N,P,W,X,ka,Aa,Da);if(N=P[g])return Da?Ua(N.pid,N.mid,N.pack,N.url):P[g];P=(Ba=Ja(g,ka))?Ba[1]+g.substring(Ba[3]):G?("/"===Ka.location.slice(-1)?Ka.location.slice(0,-1):Ka.location)+"/"+mb:v("config-tlmSiblingOfDojo")?"../"+g:g;/(^\/)|(:)/.test(P)||(P=W+P);return Ua(G,g,Ka,lb(P+".js"))},Oa=function(g,G,N){return ob(g,G,ca,oa,d.baseUrl,
ta,ha,T,void 0,N)};if(!v("foreign-loader"))var pb=function(g,G,N){return g.normalize?g.normalize(G,function(P){return bb(P,N)}):bb(G,N)},qb=0,Ca=function(g,G,N){var P;if(P=g.match(/^(.+?)!(.*)$/)){var W=Ca(P[1],G,N);"sync"!=z||W.executed||(Sa(W),2!==W.injected||W.executed||Na(function(){Ma(W)}),W.executed?Xa(W):ja.unshift(W));5!==W.executed||W.load||Xa(W);W.load?(P=pb(W,P[2],G),g=W.mid+"!"+(W.dynamic?++qb+"!":"")+P):(P=P[2],g=W.mid+"!"+ ++qb+"!waitingForPlugin");g={plugin:W,mid:g,req:Fa(G),prid:P}}else g=
Oa(g,G);return oa[g.mid]||!N&&(oa[g.mid]=g)};var bb=d.toAbsMid=function(g,G){return Oa(g,G).mid},jb=d.toUrl=function(g,G){G=Oa(g+"/x",G);var N=G.url;return Ta(0===G.pid?g:N.substring(0,N.length-5))};if(!v("foreign-loader"))var rb={injected:2,executed:5,def:3,result:3},eb=function(g){return oa[g]=f({mid:g},rb)},wb=eb("require"),xb=eb("exports"),yb=eb("module"),Ya={},fb=0,Xa=function(g){var G=g.result;g.dynamic=G.dynamic;g.normalize=G.normalize;g.load=G.load;return g},zb=function(g){var G={};a(g.loadQ,
function(W){var X=pb(g,W.prid,W.req.module),ka=g.dynamic?W.mid.replace(/waitingForPlugin$/,X):g.mid+"!"+X;X=f(f({},W),{mid:ka,prid:X,injected:0});oa[ka]&&oa[ka].injected||sb(oa[ka]=X);G[W.mid]=oa[ka];za(W);delete oa[W.mid]});g.loadQ=0;var N=function(W){for(var X=W.deps||[],ka=0;ka<X.length;ka++)(W=G[X[ka].mid])&&(X[ka]=W)},P;for(P in oa)N(oa[P]);a(ja,N)},La=function(g){d.trace("loader-finish-exec",[g.mid]);g.executed=5;g.defOrder=fb++;a(g.provides,function(G){G()});g.loadQ&&(Xa(g),zb(g));for(q=0;q<
ja.length;)ja[q]===g?ja.splice(q,1):q++;/^require\*/.test(g.mid)&&delete oa[g.mid]},Ab=[],Ma=function(g,G){if(4===g.executed)return d.trace("loader-circular-dependency",[Ab.concat(g.mid).join("-\x3e")]),!g.def||G?Ya:g.cjs&&g.cjs.exports;if(!g.executed){if(!g.def)return Ya;var N=g.mid,P=g.deps||[],W,X=[],ka=0;for(g.executed=4;W=P[ka++];){W=W===wb?Fa(g):W===xb?g.cjs.exports:W===yb?g.cjs:Ma(W,G);if(W===Ya)return g.executed=0,d.trace("loader-exec-module",["abort",N]),Ya;X.push(W)}d.trace("loader-run-factory",
[g.mid]);G=g.def;w.unshift(g);if(v("config-dojo-loader-catches"))try{var Aa=t(G)?G.apply(null,X):G}catch(Da){U("error",g.result=e("factoryThrew",[g,Da]))}else Aa=t(G)?G.apply(null,X):G;g.result=void 0===Aa&&g.cjs?g.cjs.exports:Aa;w.shift(g);La(g)}return g.result},Pa=0,Na=function(g){try{Pa++,g()}catch(G){throw G;}finally{Pa--}Ia()&&U("idle",[])},Ga=function(){Pa||Na(function(){C();for(var g,G,N=0;N<ja.length;)g=fb,G=ja[N],Ma(G),g!=fb?(C(),N=0):N++})};var Ta="function"==typeof b.fixupUrl?b.fixupUrl:
function(g){g+="";return g+(va?(/\?/.test(g)?"\x26":"?")+va:"")};v("dojo-undef-api")&&(d.undef=function(g,G){g=Ca(g,G);za(g);f(g,{def:0,executed:0,injected:0,node:0,load:0})});void 0===v("dojo-loader-eval-hint-url")&&v.add("dojo-loader-eval-hint-url",1);var sb=function(g){var G=g.plugin;5!==G.executed||G.load||Xa(G);var N=function(P){g.result=P;za(g);La(g);Ga()};G.load?G.load(g.prid,g.req,N):G.loadQ?G.loadQ.push(g):(G.loadQ=[g],ja.unshift(G),Sa(G))},Ea=0,Ra=0,gb=0,Va=function(g,G){v("config-stripStrict")&&
(g=g.replace(/(["'])use strict\1/g,""));gb=1;if(v("config-dojo-loader-catches"))try{g===Ea?Ea.call(null):d.eval(g,v("dojo-loader-eval-hint-url")?G.url:G.mid)}catch(N){U("error",e("evalModuleThrew",G))}else g===Ea?Ea.call(null):d.eval(g,v("dojo-loader-eval-hint-url")?G.url:G.mid);gb=0},Sa=function(g){var G=g.mid,N=g.url;if(!(g.executed||g.injected||fa[G]||g.url&&(g.pack&&fa[g.url]===g.pack||1==fa[g.url])))if(xa(g),g.plugin)sb(g);else{var P=function(){tb(g);if(2!==g.injected){if(v("dojo-enforceDefine")){U("error",
e("noDefine",g));return}za(g);f(g,rb);d.trace("loader-define-nonmodule",[g.url])}z?!w.length&&Ga():Ga()};if(Ea=na[G]||na["url:"+g.url])d.trace("loader-inject",["cache",g.mid,N]),Va(Ea,g),P();else{if(z)if(g.isXd)"sync"==z&&(z="xd");else if(!g.isAmd||"sync"==z){var W=function(X){if("sync"==z){w.unshift(g);Va(X,g);w.shift();tb(g);g.cjs||(za(g),La(g));if(g.finish){X=G+"*finish";var ka=g.finish;delete g.finish;Za(X,["dojo",("dojo/require!"+ka.join(",")).replace(/\./g,"/")],function(Aa){a(ka,function(Da){Aa.require(Da)})});
ja.unshift(Ca(X))}P()}else(X=H(g,X))?(Va(X,g),P()):(Ra=g,d.injectUrl(Ta(N),P,g),Ra=0)};d.trace("loader-inject",["xhr",g.mid,N,"sync"!=z]);if(v("config-dojo-loader-catches"))try{d.getText(N,"sync"!=z,W)}catch(X){U("error",e("xhrInjectFailed",[g,X]))}else d.getText(N,"sync"!=z,W);return}d.trace("loader-inject",["script",g.mid,N]);Ra=g;d.injectUrl(Ta(N),P,g);Ra=0}}},hb=function(g,G,N){d.trace("loader-define-module",[g.mid,G]);var P=g.mid;if(2===g.injected)return U("error",e("multipleDefine",g)),g;f(g,
{deps:G,def:N,cjs:{id:g.mid,uri:g.url,exports:g.result={},setExports:function(X){g.cjs.exports=X},config:function(){return g.config}}});for(var W=0;G[W];W++)G[W]=Ca(G[W],g);z&&!fa[P]&&(ua(g),ja.push(g),Ga());za(g);t(N)||G.length||(g.result=N,La(g));return g},tb=function(g,G){for(var N=[],P,W;Ha.length;)W=Ha.shift(),G&&(W[0]=G.shift()),P=W[0]&&Ca(W[0])||g,N.push([P,W[1],W[2]]);ya(g);a(N,function(X){ua(hb.apply(null,X))})},$a=0,Wa=r,kb=r;Wa=function(){$a&&clearTimeout($a);$a=0};kb=function(){Wa();d.waitms&&
($a=u.setTimeout(function(){Wa();U("error",e("timeout",fa))},d.waitms))};v.add("ie-event-behavior",y.attachEvent&&"undefined"===typeof Windows&&("undefined"===typeof opera||"[object Opera]"!=opera.toString()));var ib=function(g,G,N,P){if(v("ie-event-behavior"))return g.attachEvent(N,P),function(){g.detachEvent(N,P)};g.addEventListener(G,P,!1);return function(){g.removeEventListener(G,P,!1)}},Bb=ib(window,"load","onload",function(){d.pageLoaded=1;try{"complete"!=y.readyState&&(y.readyState="complete")}catch(g){}Bb()});
la=y.getElementsByTagName("script");for(q=0;!wa;)/^dojo/.test((Z=la[q++])&&Z.type)||(wa=Z);d.injectUrl=function(g,G,N){N=N.node=y.createElement("script");var P=ib(N,"load","onreadystatechange",function(X){X=X||window.event;var ka=X.target||X.srcElement;if("load"===X.type||/complete|loaded/.test(ka.readyState))P(),W(),G&&G()}),W=ib(N,"error","onerror",function(X){P();W();U("error",e("scriptError: "+g,[g,X]))});N.type="text/javascript";N.charset="utf-8";N.src=g;wa.parentNode.insertBefore(N,wa);return N};
d.log=function(){try{for(var g=0;g<arguments.length;g++)console.log(arguments[g])}catch(G){}};d.trace=r;if(v("foreign-loader"))Za=r;else{var Za=function(g,G,N){var P=arguments.length,W=["require","exports","module"],X=[0,g,G];1==P?X=[0,t(g)?W:[],g]:2==P&&h(g)?X=[g,t(G)?W:[],G]:3==P&&(X=[g,G,N]);d.trace("loader-define",X.slice(0,2));if((P=X[0]&&Ca(X[0]))&&!fa[P.mid])ua(hb(P,X[1],X[2]));else if(!v("ie-event-behavior")||gb)Ha.push(X);else{P=P||Ra;if(!P)for(g in fa)if((W=oa[g])&&W.node&&"interactive"===
W.node.readyState){P=W;break}P?(ya(P),ua(hb(P,X[1],X[2]))):U("error",e("ieDefineFailed",X[0]));Ga()}};Za.amd={vendor:"dojotoolkit.org"}}f(f(d,A.loaderPatch),b.loaderPatch);L("error",function(g){try{if(console.error(g),g instanceof Error){for(var G in g)console.log(G+":",g[G]);console.log(".")}}catch(N){}});f(d,{uid:k,cache:na,packs:ca});if(u.define)U("error",e("defineAlreadyDefined",0));else if(u.define=Za,u.require=d,!v("foreign-loader")){a(aa,function(g){ba(g)});var ub=ia.deps||b.deps||A.deps,vb=
ia.callback||b.callback||A.callback;d.boot=ub||vb?[ub||[],vb]:0}})(function(b){return b.dojoConfig||b.djConfig||b.require||{}},{async:0,baseUrl:"https://js.arcgis.com/3.39/dojo",hasCache:{"config-selectorEngine":"acme","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-has-api":1,"dojo-loader":1,"dojo-undef-api":0,dom:1,"extend-esri":1,"host-browser":1},packages:[{location:"../dijit",name:"dijit"},{location:"../dojox",name:"dojox"},{location:"../put-selector",main:"put",name:"put-selector"},
{location:"../xstyle",name:"xstyle"},{location:"../dgrid",main:"OnDemandGrid",name:"dgrid"},{location:"../dgrid1",main:"OnDemandGrid",name:"dgrid1"},{location:"../dstore",main:"Store",name:"dstore"},{location:"../moment",main:"moment",name:"moment"},{location:"../esri",name:"esri"},{location:".",name:"dojo"}]});
require({cache:{"dojo/loadInit":function(){define(["./_base/loader"],function(b){return{dynamic:0,normalize:function(A){return A},load:b.loadInit}})},"dojo/_base/loader":function(){define("./kernel ../has require module ../json ./lang ./array".split(" "),function(b,A,q,x,r,m,p){var t=function(L){return L.replace(/\./g,"/")},h=/\/\/>>built/,c=[],a=[],f=function(L,T,da){c.push(da);p.forEach(L.split(","),function(ha){ha=B(ha,T.module);a.push(ha);K(ha)});e()},e=function(){var L;for(L in C){var T=C[L];
void 0===T.noReqPluginCheck&&(T.noReqPluginCheck=/loadInit!/.test(L)||/require!/.test(L)?1:0);if(!T.executed&&!T.noReqPluginCheck&&T.injected==v)return}U(function(){var da=c;c=[];p.forEach(da,function(ha){ha(1)})})},l=/\/\/.*|\/\*[\s\S]*?\*\/|("(?:\\.|[^"])*"|'(?:\\.|[^'])*'|`(?:\\.|[^`])*`)/mg,k=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,d=/(^|\s)(require|define)\s*\(/m,u=function(L,T){var da=[],ha=[];var ca=[];for(T=T||L.replace(l,
"$1");ca=k.exec(T);){var qa=k.lastIndex;var ta=qa-ca[0].length;var oa=void 0,va=T,na=/\(|\)/g,ra=1;for(na.lastIndex=qa;(oa=na.exec(va))&&(ra=")"==oa[0]?ra-1:ra+1,0!=ra););if(0!=ra)throw"unmatched paren around character "+na.lastIndex+" in: "+va;qa=[b.trim(va.substring(ta,na.lastIndex))+";\n",na.lastIndex];"loadInit"==ca[2]?da.push(qa[0]):ha.push(qa[0]);k.lastIndex=qa[1]}ca=da.concat(ha);return ca.length||!d.test(T)?[L.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 \x26\x26 dojo.loadInit("),ca.join(""),
ca]:0},y=q.initSyncLoader(f,e,function(L,T){var da,ha=[],ca=[];if(h.test(T)||!(da=u(T)))return 0;T=L.mid+"-*loadInit";for(var qa in B("dojo",L).result.scopeMap)ha.push(qa),ca.push('"'+qa+'"');return"// xdomain rewrite of "+L.mid+"\ndefine('"+T+"',{\n\tnames:"+r.stringify(ha)+",\n\tdef:function("+ha.join(",")+"){"+da[1]+"}});\n\ndefine("+r.stringify(ha.concat(["dojo/loadInit!"+T]))+", function("+ha.join(",")+"){\n"+da[0]+"});"}),n=y.sync,v=y.requested,D=y.arrived,O=y.nonmodule,z=y.executing,w=y.executed,
E=y.syncExecStack,C=y.modules,H=y.execQ,B=y.getModule,K=y.injectModule,J=y.setArrived,R=y.signal,V=y.finishExec,Y=y.execModule,S=y.getLegacyMode,U=y.guardCheckComplete;f=y.dojoRequirePlugin;b.provide=function(L){var T=E[0],da=m.mixin(B(t(L),q.module),{executed:z,result:m.getObject(L,!0)});J(da);T&&(T.provides||(T.provides=[])).push(function(){da.result=m.getObject(L);delete da.provides;da.executed!==w&&V(da)});return da.result};A.add("config-publishRequireResult",1,0,0);b.require=function(L,T){T=
function(da,ha){var ca=B(t(da),q.module);if(E.length&&E[0].finish)E[0].finish.push(da);else{if(ca.executed)return ca.result;ha&&(ca.result=O);ha=S();K(ca);ha=S();ca.executed!==w&&ca.injected===D&&y.guardCheckComplete(function(){Y(ca)});if(ca.executed)return ca.result;ha==n?ca.cjs?H.unshift(ca):E.length&&(E[0].finish=[da]):H.push(ca)}}(L,T);A("config-publishRequireResult")&&!m.exists(L)&&void 0!==T&&m.setObject(L,T);return T};b.loadInit=function(L){L()};b.registerModulePath=function(L,T){var da={};
da[L.replace(/\./g,"/")]=T;q({paths:da})};b.platformRequire=function(L){L=(L.common||[]).concat(L[b._name]||L["default"]||[]);for(var T;L.length;)m.isArray(T=L.shift())?b.require.apply(b,T):b.require(T)};b.requireIf=b.requireAfterIf=function(L,T,da){L&&b.require(T,da)};b.requireLocalization=function(L,T,da){q(["../i18n"],function(ha){ha.getLocalization(L,T,da)})};return{extractLegacyApiApplications:u,require:f,loadInit:function(L,T,da){T([L],function(ha){T(ha.names,function(){for(var ca="",qa=[],
ta=0;ta<arguments.length;ta++)ca+="var "+ha.names[ta]+"\x3d arguments["+ta+"]; ",qa.push(arguments[ta]);eval(ca);var oa=T.module,va=[],na;ca={provide:function(ia){ia=t(ia);ia=B(ia,oa);ia!==oa&&J(ia)},require:function(ia,wa){ia=t(ia);wa&&(B(ia,oa).result=O);va.push(ia)},requireLocalization:function(ia,wa,ya){na||(na=["dojo/i18n"]);ya=(ya||b.locale).toLowerCase();ia=t(ia)+"/nls/"+(/root/i.test(ya)?"":ya+"/")+t(wa);B(ia,oa).isXd&&na.push("dojo/i18n!"+ia)},loadInit:function(ia){ia()}};ta={};var ra;try{for(ra in ca)ta[ra]=
b[ra],b[ra]=ca[ra];ha.def.apply(null,qa)}catch(ia){R("error",[{src:x.id,id:"failedDojoLoadInit"},ia])}finally{for(ra in ca)b[ra]=ta[ra]}na&&(va=va.concat(na));va.length?f(va.join(","),T,da):da()})})}}})},"dojo/_base/kernel":function(){define(["../global","../has","./config","require","module"],function(b,A,q,x,r){var m,p={},t={},h={config:q,global:b,dijit:p,dojox:t};p={dojo:["dojo",h],dijit:["dijit",p],dojox:["dojox",t]};r=x.map&&x.map[r.id.match(/[^\/]+/)[0]];for(m in r)p[m]?p[m][0]=r[m]:p[m]=[r[m],
{}];for(m in p)r=p[m],r[1]._scopeName=r[0],q.noGlobals||(b[r[0]]=r[1]);h.scopeMap=p;h.baseUrl=h.config.baseUrl=x.baseUrl;h.isAsync=x.async;h.locale=q.locale;b="$Rev:$".match(/[0-9a-f]{7,}/);h.version={major:1,minor:16,patch:4,flag:"",revision:b?b[0]:NaN,toString:function(){var a=h.version;return a.major+"."+a.minor+"."+a.patch+a.flag+" ("+a.revision+")"}};A("csp-restrictions")||Function("d","d.eval \x3d function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(h);h.exit=
function(){};A("host-webworker");A.add("console-as-object",function(){return Function.prototype.bind&&console&&"object"===typeof console.log});"undefined"!=typeof console||(console={});r="assert count debug dir dirxml error group groupEnd info profile profileEnd time timeEnd trace warn log".split(" ");var c;for(b=0;c=r[b++];)console[c]?A("console-as-object")&&(console[c]=Function.prototype.bind.call(console[c],console)):function(){var a=c+"";console[a]="log"in console?function(){var f=Array.prototype.slice.call(arguments);
f.unshift(a+":");console.log(f.join(" "))}:function(){};console[a]._fake=!0}();A.add("dojo-debug-messages",!!q.isDebug);h.deprecated=h.experimental=function(){};A("dojo-debug-messages")&&(h.deprecated=function(a,f,e){a="DEPRECATED: "+a;f&&(a+=" "+f);e&&(a+=" -- will be removed in version: "+e);console.warn(a)},h.experimental=function(a,f){a="EXPERIMENTAL: "+a+" -- APIs subject to change without notice.";f&&(a+=" "+f);console.warn(a)});if(q.modulePaths){h.deprecated("dojo.modulePaths","use paths configuration");
A={};for(m in q.modulePaths)A[m.replace(/\./g,"/")]=q.modulePaths[m];x({paths:A})}h.moduleUrl=function(a,f){h.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var e=null;a&&(e=x.toUrl(a.replace(/\./g,"/")+(f?"/"+f:"")+"/*.*").replace(/\/\*\.\*/,"")+(f?"":"/"));return e};h._hasResource={};return h})},"dojo/global":function(){define(function(){return"undefined"!==typeof global&&"function"!==typeof global?global:"undefined"!==typeof window?window:"undefined"!==typeof self?self:this})},"dojo/has":function(){define(["./global",
"require","module"],function(b,A,q){var x=A.has||function(){};if(!x("dojo-has-api")){var r="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location==location&&window.document==document&&document,m=r&&r.createElement("DiV"),p=q.config&&q.config()||{};x=function(t){return"function"==typeof p[t]?p[t]=p[t](b,r,m):p[t]};x.cache=p;x.add=function(t,h,c,a){("undefined"==typeof p[t]||a)&&(p[t]=h);return c&&x(t)}}x.add("dom-addeventlistener",!!document.addEventListener);
x.add("touch","ontouchstart"in document||"onpointerdown"in document&&0<navigator.maxTouchPoints||window.navigator.msMaxTouchPoints);x.add("touch-events","ontouchstart"in document);x.add("pointer-events","pointerEnabled"in window.navigator?window.navigator.pointerEnabled:"PointerEvent"in window);x.add("MSPointer",window.navigator.msPointerEnabled);x.add("touch-action",x("touch")&&x("pointer-events"));x.add("device-width",screen.availWidth||innerWidth);A=document.createElement("form");x.add("dom-attributes-explicit",
0==A.attributes.length);x.add("dom-attributes-specified-flag",0<A.attributes.length&&40>A.attributes.length);x.clearElement=function(t){t.innerHTML="";return t};x.normalize=function(t,h){var c=t.match(/[\?:]|[^:\?]*/g),a=0,f=function(e){var l=c[a++];if(":"==l)return 0;if("?"==c[a++]){if(!e&&x(l))return f();f(!0);return f(e)}return l||0};return(t=f())&&h(t)};x.load=function(t,h,c){t?h([t],c):c()};return x})},"dojo/_base/config":function(){define(["../global","../has","require"],function(b,A,q){b={};
q=q.rawConfig;for(var x in q)b[x]=q[x];!b.locale&&"undefined"!=typeof navigator&&(x=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language||navigator.userLanguage)&&(b.locale=x.toLowerCase());return b})},"dojo/json":function(){define(["./has"],function(b){var A="undefined"!=typeof JSON;b.add("json-parse",A);b.add("json-stringify",A&&'{"a":1}'==JSON.stringify({a:0},function(x,r){return r||1}));if(b("json-stringify"))return JSON;var q=function(x){return('"'+x.replace(/(["\\])/g,
"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};return{parse:b("json-parse")?JSON.parse:function(x,r){if(r&&!/^([\s\[\{]*(?:"(?:\\.|[^"])*"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(x))throw new SyntaxError("Invalid characters in JSON");return eval("("+x+")")},stringify:function(x,r,m){function p(h,c,a){r&&(h=r(a,h));var f=typeof h;if("number"==f)return isFinite(h)?h+"":"null";if("boolean"==
f)return h+"";if(null===h)return"null";if("string"==typeof h)return q(h);if("function"==f||"undefined"==f)return t;if("function"==typeof h.toJSON)return p(h.toJSON(a),c,a);if(h instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/\{(\w+)(\+)?\}/g,function(y,n,v){y=h["getUTC"+n]()+(v?1:0);return 10>y?"0"+y:y});if(h.valueOf()!==h)return p(h.valueOf(),c,a);var e=m?c+m:"",l=m?" ":"",k=m?"\n":"";if(h instanceof Array){l=h.length;var d=[];for(a=0;a<l;a++)f=p(h[a],e,
a),"string"!=typeof f&&(f="null"),d.push(k+e+f);return"["+d.join(",")+k+c+"]"}d=[];for(a in h)if(h.hasOwnProperty(a)){if("number"==typeof a)var u='"'+a+'"';else if("string"==typeof a)u=q(a);else continue;f=p(h[a],e,a);"string"==typeof f&&d.push(k+e+u+":"+l+f)}return"{"+d.join(",")+k+c+"}"}var t;"string"==typeof r&&(m=r,r=null);return p(x,"","")}}})},"dojo/_base/lang":function(){define(["./kernel","../has","../sniff"],function(b,A){A.add("bug-for-in-skips-shadowed",function(){for(var c in{toString:1})return 0;
return 1});var q=A("bug-for-in-skips-shadowed")?"hasOwnProperty valueOf isPrototypeOf propertyIsEnumerable toLocaleString toString constructor".split(" "):[],x=q.length,r=function(c,a,f){f||(f=c[0]&&b.scopeMap[c[0]]?b.scopeMap[c.shift()][1]:b.global);try{for(var e=0;e<c.length;e++){var l=c[e];if(!(l in f))if(a)f[l]={};else return;f=f[l]}return f}catch(k){}},m=Object.prototype.toString,p=function(c,a,f){return(f||[]).concat(Array.prototype.slice.call(c,a||0))},t=/\{([^\}]+)\}/g,h={_extraNames:q,_mixin:function(c,
a,f){var e,l={};for(d in a){var k=a[d];d in c&&(c[d]===k||d in l&&l[d]===k)||(c[d]=f?f(k):k)}if(A("bug-for-in-skips-shadowed")&&a)for(e=0;e<x;++e){var d=q[e];k=a[d];d in c&&(c[d]===k||d in l&&l[d]===k)||(c[d]=f?f(k):k)}return c},mixin:function(c,a){c||(c={});for(var f=1,e=arguments.length;f<e;f++)h._mixin(c,arguments[f]);return c},setObject:function(c,a,f){var e=c.split(".");c=e.pop();return(f=r(e,!0,f))&&c?f[c]=a:void 0},getObject:function(c,a,f){return c?r(c.split("."),a,f):f},exists:function(c,
a){return void 0!==h.getObject(c,!1,a)},isString:function(c){return"string"==typeof c||c instanceof String},isArray:Array.isArray||function(c){return"[object Array]"==m.call(c)},isFunction:function(c){return"[object Function]"===m.call(c)},isObject:function(c){return void 0!==c&&(null===c||"object"==typeof c||h.isArray(c)||h.isFunction(c))},isArrayLike:function(c){return!!c&&!h.isString(c)&&!h.isFunction(c)&&!(c.tagName&&"form"==c.tagName.toLowerCase())&&(h.isArray(c)||isFinite(c.length))},isAlien:function(c){return c&&
!h.isFunction(c)&&/\{\s*\[native code\]\s*\}/.test(String(c))},extend:function(c,a){for(var f=1,e=arguments.length;f<e;f++)h._mixin(c.prototype,arguments[f]);return c},_hitchArgs:function(c,a){var f=h._toArray(arguments,2),e=h.isString(a);return function(){var l=h._toArray(arguments),k=e?(c||b.global)[a]:a;return k&&k.apply(c||this,f.concat(l))}},hitch:function(c,a){if(2<arguments.length)return h._hitchArgs.apply(b,arguments);a||(a=c,c=null);if(h.isString(a)){c=c||b.global;if(!c[a])throw['lang.hitch: scope["',
a,'"] is null (scope\x3d"',c,'")'].join("");return function(){return c[a].apply(c,arguments||[])}}return c?function(){return a.apply(c,arguments||[])}:a},delegate:function(){function c(){}return function(a,f){c.prototype=a;a=new c;c.prototype=null;f&&h._mixin(a,f);return a}}(),_toArray:A("ie")?function(){function c(a,f,e){e=e||[];for(f=f||0;f<a.length;f++)e.push(a[f]);return e}return function(a){return(a.item?c:p).apply(this,arguments)}}():p,partial:function(c){return h.hitch.apply(b,[null].concat(h._toArray(arguments)))},
clone:function(c){if(!c||"object"!=typeof c||h.isFunction(c))return c;if(c.nodeType&&"cloneNode"in c)return c.cloneNode(!0);if(c instanceof Date)return new Date(c.getTime());if(c instanceof RegExp)return new RegExp(c);var a;if(h.isArray(c)){var f=[];var e=0;for(a=c.length;e<a;++e)e in c&&(f[e]=h.clone(c[e]))}else f=c.constructor?new c.constructor:{};return h._mixin(f,c,h.clone)},trim:String.prototype.trim?function(c){return c.trim()}:function(c){return c.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},
replace:function(c,a,f){return c.replace(f||t,h.isFunction(a)?a:function(e,l){return h.getObject(l,!1,a)})}};h.mixin(b,h);return h})},"dojo/sniff":function(){define(["./has"],function(b){var A=navigator,q=A.userAgent;A=A.appVersion;var x=parseFloat(A);b.add("air",0<=q.indexOf("AdobeAIR"));b.add("wp",parseFloat(q.split("Windows Phone")[1])||void 0);b.add("msapp",parseFloat(q.split("MSAppHost/")[1])||void 0);b.add("khtml",0<=A.indexOf("Konqueror")?x:void 0);b.add("edge",parseFloat(q.split("Edge/")[1])||
void 0);b.add("opr",parseFloat(q.split("OPR/")[1])||void 0);b.add("webkit",!b("wp")&&!b("edge")&&parseFloat(q.split("WebKit/")[1])||void 0);b.add("chrome",!b("edge")&&!b("opr")&&parseFloat(q.split("Chrome/")[1])||void 0);b.add("android",!b("wp")&&parseFloat(q.split("Android ")[1])||void 0);b.add("safari",!(0<=A.indexOf("Safari"))||b("wp")||b("chrome")||b("android")||b("edge")||b("opr")?void 0:parseFloat(A.split("Version/")[1]));b.add("mac",0<=A.indexOf("Macintosh"));b.add("quirks","BackCompat"==document.compatMode);
if(!b("wp")&&q.match(/(iPhone|iPod|iPad)/)){var r=RegExp.$1.replace(/P/,"p"),m=q.match(/OS ([\d_]+)/)?RegExp.$1:"1";m=parseFloat(m.replace(/_/,".").replace(/_/g,""));b.add(r,m);b.add("ios",m)}b.add("bb",(0<=q.indexOf("BlackBerry")||0<=q.indexOf("BB10"))&&parseFloat(q.split("Version/")[1])||void 0);b.add("trident",parseFloat(A.split("Trident/")[1])||void 0);b.add("svg","undefined"!==typeof SVGAngle);b("webkit")||(0<=q.indexOf("Opera")&&b.add("opera",9.8<=x?parseFloat(q.split("Version/")[1])||x:x),
!(0<=q.indexOf("Gecko"))||b("wp")||b("khtml")||b("trident")||b("edge")||b.add("mozilla",x),b("mozilla")&&b.add("ff",parseFloat(q.split("Firefox/")[1]||q.split("Minefield/")[1])||void 0),document.all&&!b("opera")&&(q=parseFloat(A.split("MSIE ")[1])||void 0,(A=document.documentMode)&&5!=A&&Math.floor(q)!=A&&(q=A),b.add("ie",q)),b.add("wii","undefined"!=typeof opera&&opera.wiiremote));return b})},"dojo/_base/array":function(){define(["./kernel","../has","./lang"],function(b,A,q){function x(c){return p[c]=
new Function("item","index","array",c)}function r(c){var a=!c;return function(f,e,l){var k=0,d=f&&f.length||0;d&&"string"==typeof f&&(f=f.split(""));"string"==typeof e&&(e=p[e]||x(e));if(l)for(;k<d;++k){var u=!e.call(l,f[k],k,f);if(c^u)return!u}else for(;k<d;++k)if(u=!e(f[k],k,f),c^u)return!u;return a}}function m(c){var a=1,f=0,e=0;c||(a=f=e=-1);return function(l,k,d,u){if(u&&0<a)return h.lastIndexOf(l,k,d);u=l&&l.length||0;var y=c?u+e:f;d===t?d=c?f:u+e:0>d?(d=u+d,0>d&&(d=f)):d=d>=u?u+e:d;for(u&&
"string"==typeof l&&(l=l.split(""));d!=y;d+=a)if(l[d]==k)return d;return-1}}var p={},t,h={every:r(!1),some:r(!0),indexOf:m(!0),lastIndexOf:m(!1),forEach:function(c,a,f){var e=0,l=c&&c.length||0;l&&"string"==typeof c&&(c=c.split(""));"string"==typeof a&&(a=p[a]||x(a));if(f)for(;e<l;++e)a.call(f,c[e],e,c);else for(;e<l;++e)a(c[e],e,c)},map:function(c,a,f,e){var l=0,k=c&&c.length||0;e=new (e||Array)(k);k&&"string"==typeof c&&(c=c.split(""));"string"==typeof a&&(a=p[a]||x(a));if(f)for(;l<k;++l)e[l]=a.call(f,
c[l],l,c);else for(;l<k;++l)e[l]=a(c[l],l,c);return e},filter:function(c,a,f){var e=0,l=c&&c.length||0,k=[];l&&"string"==typeof c&&(c=c.split(""));"string"==typeof a&&(a=p[a]||x(a));if(f)for(;e<l;++e){var d=c[e];a.call(f,d,e,c)&&k.push(d)}else for(;e<l;++e)d=c[e],a(d,e,c)&&k.push(d);return k},clearCache:function(){p={}}};q.mixin(b,h);return h})},"dojo/require":function(){define(["./_base/loader"],function(b){return{dynamic:0,normalize:function(A){return A},load:b.require}})},"dojo/text":function(){define(["./_base/kernel",
"require","./has","./request"],function(b,A,q,x){var r=function(c,a,f){x(c,{sync:!!a,headers:{"X-Requested-With":null}}).then(f)};var m={},p=function(c){if(c){c=c.replace(/^\s*<\?xml(\s)+version=['"](\d)*.(\d)*['"](\s)*\?>/im,"");var a=c.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);a&&(c=a[1])}else c="";return c},t={},h={};b.cache=function(c,a,f){if("string"==typeof c)if(/\//.test(c)){var e=c;f=a}else e=A.toUrl(c.replace(/\./g,"/")+(a?"/"+a:""));else e=c+"",f=a;c=void 0!=f&&"string"!=typeof f?f.value:
f;f=f&&f.sanitize;if("string"==typeof c)return m[e]=c,f?p(c):c;if(null===c)return delete m[e],null;e in m||r(e,!0,function(l){m[e]=l});return f?p(m[e]):m[e]};return{dynamic:!0,normalize:function(c,a){c=c.split("!");var f=c[0];return(/^\./.test(f)?a(f):f)+(c[1]?"!"+c[1]:"")},load:function(c,a,f){c=c.split("!");var e=1<c.length,l=c[0],k=a.toUrl(c[0]);c="url:"+k;var d=t,u=function(n){f(e?p(n):n)};l in m?d=m[l]:a.cache&&c in a.cache?d=a.cache[c]:k in m&&(d=m[k]);if(d===t)if(h[k])h[k].push(u);else{var y=
h[k]=[u];r(k,!a.async,function(n){m[l]=m[k]=n;for(var v=0;v<y.length;)y[v++](n);delete h[k]})}else u(d)}}})},"dojo/request":function(){define(["./request/default!"],function(b){return b})},"dojo/request/default":function(){define(["exports","require","../has"],function(b,A,q){var x=q("config-requestProvider");x||(x="./xhr");b.getPlatformDefaultId=function(){return"./xhr"};b.load=function(r,m,p,t){A(["platform"==r?"./xhr":x],function(h){p(h)})}})},"dojo/i18n":function(){define("./_base/kernel require ./has ./_base/array ./_base/config ./_base/lang ./_base/xhr ./json module".split(" "),
function(b,A,q,x,r,m,p,t,h){q.add("dojo-preload-i18n-Api",1);var c=b.i18n={},a=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,f=function(B,K,J,R){var V=[J+R];K=K.split("-");for(var Y="",S=0;S<K.length;S++)if(Y+=(Y?"-":"")+K[S],!B||B[Y])V.push(J+Y+"/"+R),V.specificity=Y;return V},e={},l=function(B,K,J){J=J?J.toLowerCase():b.locale;B=B.replace(/\./g,"/");K=K.replace(/\./g,"/");return/root/i.test(J)?B+"/nls/"+K:B+"/nls/"+J+"/"+K},k=b.getL10nName=function(B,K,J){return B=h.id+"!"+l(B,K,J)},d=function(B,K,
J,R,V,Y){B([K],function(S){var U=m.clone(S.root||S.ROOT),L=f(!S._v1x&&S,V,J,R);B(L,function(){for(var T=1;T<L.length;T++)U=m.mixin(m.clone(U),arguments[T]);e[K+"/"+V]=U;U.$locale=L.specificity;Y()})})},u=function(B){var K=r.extraLocale||[];K=m.isArray(K)?K:[K];K.push(B);return K},y=function(B,K,J){var R=a.exec(B),V=R[1]+"/",Y=R[5]||R[4],S=V+Y,U=(R=R[5]&&R[4])||b.locale||"",L=S+"/"+U;R=R?[U]:u(U);var T=R.length,da=function(){--T||J(m.delegate(e[L]))};U=B.split("*");var ha="preload"==U[1];if(q("dojo-preload-i18n-Api")){if(ha&&
(e[B]||(e[B]=1,O(U[2],t.parse(U[3]),1,K)),J(1)),(U=ha)||(v&&D.push([B,K,J]),U=v&&!e[L]),U)return}else if(ha){J(1);return}x.forEach(R,function(ca){var qa=S+"/"+ca;q("dojo-preload-i18n-Api")&&z(qa);e[qa]?da():d(K,S,V,Y,ca,da)})};q("dojo-preload-i18n-Api");var n=c.normalizeLocale=function(B){B=B?B.toLowerCase():b.locale;return"root"==B?"ROOT":B},v=0,D=[],O=c._preloadLocalizations=function(B,K,J,R){function V(L,T){R.isXdUrl(A.toUrl(L+".js"))||J?R([L],T):H([L],T,R)}function Y(L,T){for(L=L.split("-");L.length;){if(T(L.join("-")))return;
L.pop()}T("ROOT")}function S(){for(--v;!v&&D.length;)y.apply(null,D.shift())}function U(L){L=n(L);Y(L,function(T){if(0<=x.indexOf(K,T)){var da=B.replace(/\./g,"/")+"_"+T;v++;V(da,function(ha){for(var ca in ha){var qa=ha[ca],ta=ca.match(/(.+)\/([^\/]+)$/);if(ta){var oa=ta[2];ta=ta[1]+"/";if(qa._localized){var va;if("ROOT"===T){var na=va=qa._localized;delete qa._localized;na.root=qa;e[A.toAbsMid(ca)]=na}else va=qa._localized,e[A.toAbsMid(ta+oa+"/"+T)]=qa;T!==L&&function(ra,ia,wa,ya){var F=[],I=[];Y(L,
function(M){ya[M]&&(F.push(A.toAbsMid(ra+M+"/"+ia)),I.push(A.toAbsMid(ra+ia+"/"+M)))});F.length?(v++,R(F,function(){for(var M=F.length-1;0<=M;M--)wa=m.mixin(m.clone(wa),arguments[M]),e[I[M]]=wa;e[A.toAbsMid(ra+ia+"/"+L)]=m.clone(wa);S()})):e[A.toAbsMid(ra+ia+"/"+L)]=wa}(ta,oa,qa,va)}}}S()});return!0}return!1})}R=R||A;U();x.forEach(b.config.extraLocale,U)},z=function(){},w={},E={},C,H=function(B,K,J){var R=[];x.forEach(B,function(V){function Y(L){C||(C=new Function("__bundle","__checkForLegacyModules",
"__mid","__amdValue","var define \x3d function(mid, factory){define.called \x3d 1; __amdValue.result \x3d factory || mid;},\t   require \x3d function(){define.called \x3d 1;};try{define.called \x3d 0;eval(__bundle);if(define.called\x3d\x3d1)return __amdValue;if((__checkForLegacyModules \x3d __checkForLegacyModules(__mid)))return __checkForLegacyModules;}catch(e){}try{return eval('('+__bundle+')');}catch(e){return e;}"));L=C(L,z,V,w);L===w?R.push(e[S]=w.result):(L instanceof Error&&(console.error("failed to evaluate i18n bundle; url\x3d"+
S,L),L={}),R.push(e[S]=/nls\/[^\/]+\/[^\/]+$/.test(S)?L:{root:L,_v1x:1}))}var S=J.toUrl(V+".js");if(e[S])R.push(e[S]);else{var U=J.syncLoadNls(V);U||(U=z(V.replace(/nls\/([^\/]*)\/([^\/]*)$/,"nls/$2/$1")));if(U)R.push(U);else if(p)p.get({url:S,sync:!0,load:Y,error:function(){R.push(e[S]={})}});else try{J.getText(S,!0,Y)}catch(L){R.push(e[S]={})}}});K&&K.apply(null,R)};z=function(B){for(var K,J=B.split("/"),R=b.global[J[0]],V=1;R&&V<J.length-1;R=R[J[V++]]);R&&((K=R[J[V]])||(K=R[J[V].replace(/-/g,"_")]),
K&&(e[B]=K));return K};c.getLocalization=function(B,K,J){var R,V=l(B,K,J);if(E[V])return E[V];y(V,A.isXdUrl(A.toUrl(V+".js"))?A:function(Y,S){H(Y,S,A)},function(Y){R=E[V]=Y});return R};return m.mixin(c,{dynamic:!0,normalize:function(B,K){return/^\./.test(B)?K(B):B},load:y,cache:e,getL10nName:k})})},"dojo/_base/xhr":function(){define("./kernel ./sniff require ../io-query ../dom ../dom-form ./Deferred ./config ./json ./lang ./array ../on ../aspect ../request/watch ../request/xhr ../request/util".split(" "),
function(b,A,q,x,r,m,p,t,h,c,a,f,e,l,k,d){b._xhrObj=k._create;var u=b.config;b.objectToQuery=x.objectToQuery;b.queryToObject=x.queryToObject;b.fieldToObject=m.fieldToObject;b.formToObject=m.toObject;b.formToQuery=m.toQuery;b.formToJson=m.toJson;b._blockAsync=!1;A.add("native-xhr2-blob",function(){if(A("native-xhr2")){var z=new XMLHttpRequest;z.open("GET","/",!0);z.responseType="blob";var w=z.responseType;z.abort();return"blob"===w}});var y=b._contentHandlers=b.contentHandlers={text:function(z){return z.responseText},
json:function(z){return h.fromJson(z.responseText||null)},"json-comment-filtered":function(z){t.useCommentedJson||console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}\x26\x26\nUse djConfig.useCommentedJson\x3dtrue to turn off this message.");z=z.responseText;var w=z.indexOf("/*"),E=z.lastIndexOf("*/");if(-1==w||-1==E)throw Error("JSON was not comment filtered");
return h.fromJson(z.substring(w+2,E))},javascript:function(z){return b.eval(z.responseText)},xml:function(z){var w=z.responseXML;w&&A("dom-qsa2.1")&&!w.querySelectorAll&&A("dom-parser")&&(w=(new DOMParser).parseFromString(z.responseText,"application/xml"));if(A("ie")&&(!w||!w.documentElement)){var E=function(C){return"MSXML"+C+".DOMDocument"};E=["Microsoft.XMLDOM",E(6),E(4),E(3),E(2)];a.some(E,function(C){try{var H=new ActiveXObject(C);H.async=!1;H.loadXML(z.responseText);w=H}catch(B){return!1}return!0})}return w},
"json-comment-optional":function(z){return z.responseText&&/^[^{\[]*\/\*/.test(z.responseText)?y["json-comment-filtered"](z):y.json(z)}};A("native-xhr2")&&(y.arraybuffer=y.blob=y.document=function(z,w){return"blob"!==w.args.handleAs||A("native-xhr2-blob")?z.response:new Blob([z.response],{type:z.getResponseHeader("Content-Type")})});b._ioSetArgs=function(z,w,E,C){var H={args:z,url:z.url},B=null;if(z.form){B=r.byId(z.form);var K=B.getAttributeNode("action");H.url=H.url||(K?K.value:b.doc?b.doc.URL:
null);B=m.toObject(B)}K={};B&&c.mixin(K,B);z.content&&c.mixin(K,z.content);z.preventCache&&(K["dojo.preventCache"]=(new Date).valueOf());H.query=x.objectToQuery(K);H.handleAs=z.handleAs||"text";var J=new p(function(S){S.canceled=!0;w&&w(S);var U=S.ioArgs.error;U||(U=Error("request cancelled"),U.dojoType="cancel",S.ioArgs.error=U);return U});J.addCallback(E);var R=z.load;R&&c.isFunction(R)&&J.addCallback(function(S){return R.call(z,S,H)});var V=z.error;V&&c.isFunction(V)&&J.addErrback(function(S){return V.call(z,
S,H)});var Y=z.handle;Y&&c.isFunction(Y)&&J.addBoth(function(S){return Y.call(z,S,H)});J.addErrback(function(S){return C(S,J)});u.ioPublish&&b.publish&&!1!==H.args.ioPublish&&(J.addCallbacks(function(S){b.publish("/dojo/io/load",[J,S]);return S},function(S){b.publish("/dojo/io/error",[J,S]);return S}),J.addBoth(function(S){b.publish("/dojo/io/done",[J,S]);return S}));J.ioArgs=H;return J};var n=function(z){z=y[z.ioArgs.handleAs](z.ioArgs.xhr,z.ioArgs);return void 0===z?null:z},v=function(z,w){w.ioArgs.args.failOk||
console.error(z);return z},D=function(z){0>=O&&(O=0,u.ioPublish&&b.publish&&(!z||z&&!1!==z.ioArgs.args.ioPublish)&&b.publish("/dojo/io/stop"))},O=0;e.after(l,"_onAction",function(){--O});e.after(l,"_onInFlight",D);b._ioCancelAll=l.cancelAll;b._ioNotifyStart=function(z){u.ioPublish&&b.publish&&!1!==z.ioArgs.args.ioPublish&&(O||b.publish("/dojo/io/start"),O+=1,b.publish("/dojo/io/send",[z]))};b._ioWatch=function(z,w,E,C){z.ioArgs.options=z.ioArgs.args;c.mixin(z,{response:z.ioArgs,isValid:function(H){return w(z)},
isReady:function(H){return E(z)},handleResponse:function(H){return C(z)}});l(z);D(z)};b._ioAddQueryToUrl=function(z){z.query.length&&(z.url+=(-1==z.url.indexOf("?")?"?":"\x26")+z.query,z.query=null)};b.xhr=function(z,w,E){var C=b._ioSetArgs(w,function(J){K&&K.cancel()},n,v),H=C.ioArgs;"postData"in w?H.query=w.postData:"putData"in w?H.query=w.putData:"rawBody"in w?H.query=w.rawBody:(2<arguments.length&&!E||-1==="POST|PUT".indexOf(z.toUpperCase()))&&b._ioAddQueryToUrl(H);var B;A("native-xhr2")&&(B=
{arraybuffer:1,blob:1,document:1});B=B[w.handleAs]?w.handleAs:"text";"blob"!==B||A("native-xhr2-blob")||(B="arraybuffer");B={method:z,handleAs:B,responseType:w.responseType,timeout:w.timeout,withCredentials:w.withCredentials,ioArgs:H};"undefined"!==typeof w.headers&&(B.headers=w.headers);"undefined"!==typeof w.contentType&&(B.headers||(B.headers={}),B.headers["Content-Type"]=w.contentType);"undefined"!==typeof H.query&&(B.data=H.query);"undefined"!==typeof w.sync&&(B.sync=w.sync);b._ioNotifyStart(C);
try{var K=k(H.url,B,!0)}catch(J){return C.cancel(),C}C.ioArgs.xhr=K.response.xhr;K.then(function(){C.resolve(C)}).otherwise(function(J){H.error=J;J.response&&(J.status=J.response.status,J.responseText=J.response.text,J.xhr=J.response.xhr);C.reject(J)});return C};b.xhrGet=function(z){return b.xhr("GET",z)};b.rawXhrPost=b.xhrPost=function(z){return b.xhr("POST",z,!0)};b.rawXhrPut=b.xhrPut=function(z){return b.xhr("PUT",z,!0)};b.xhrDelete=function(z){return b.xhr("DELETE",z)};b._isDocumentOk=function(z){return d.checkStatus(z.status)};
b._getText=function(z){var w;b.xhrGet({url:z,sync:!0,load:function(E){w=E}});return w};c.mixin(b.xhr,{_xhrObj:b._xhrObj,fieldToObject:m.fieldToObject,formToObject:m.toObject,objectToQuery:x.objectToQuery,formToQuery:m.toQuery,formToJson:m.toJson,queryToObject:x.queryToObject,contentHandlers:y,_ioSetArgs:b._ioSetArgs,_ioCancelAll:b._ioCancelAll,_ioNotifyStart:b._ioNotifyStart,_ioWatch:b._ioWatch,_ioAddQueryToUrl:b._ioAddQueryToUrl,_isDocumentOk:b._isDocumentOk,_getText:b._getText,get:b.xhrGet,post:b.xhrPost,
put:b.xhrPut,del:b.xhrDelete});return b.xhr})},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(b,A,q){b._name="browser";A.mixin(b,{isBrowser:!0,isFF:q("ff"),isIE:q("ie"),isKhtml:q("khtml"),isWebKit:q("webkit"),isMozilla:q("mozilla"),isMoz:q("mozilla"),isOpera:q("opera"),isSafari:q("safari"),isChrome:q("chrome"),isMac:q("mac"),isIos:q("ios"),isAndroid:q("android"),isWii:q("wii"),isQuirks:q("quirks"),isAir:q("air")});return q})},"dojo/io-query":function(){define(["./_base/lang"],
function(b){var A={};return{objectToQuery:function(q){var x=encodeURIComponent,r=[],m;for(m in q){var p=q[m];if(p!=A[m]){var t=x(m)+"\x3d";if(b.isArray(p))for(var h=0,c=p.length;h<c;++h)r.push(t+x(p[h]));else r.push(t+x(p))}}return r.join("\x26")},queryToObject:function(q){var x=decodeURIComponent;q=q.split("\x26");for(var r={},m,p,t=0,h=q.length;t<h;++t)if(p=q[t],p.length){var c=p.indexOf("\x3d");0>c?(m=x(p),p=""):(m=x(p.slice(0,c)),p=x(p.slice(c+1)));"string"==typeof r[m]&&(r[m]=[r[m]]);b.isArray(r[m])?
r[m].push(p):r[m]=p}return r}}})},"dojo/dom":function(){define(["./sniff","./_base/window","./_base/kernel"],function(b,A,q){if(7>=b("ie"))try{document.execCommand("BackgroundImageCache",!1,!0)}catch(m){}var x={};b("ie")?x.byId=function(m,p){if("string"!=typeof m)return m||null;var t=p||A.doc;p=m&&t.getElementById(m);if(!p||p.attributes.id.value!=m&&p.id!=m){t=t.all[m];if(!t||t.nodeName)t=[t];for(var h=0;p=t[h++];)if(p.attributes&&p.attributes.id&&p.attributes.id.value==m||p.id==m)return p}else return p;
return null}:x.byId=function(m,p){return("string"==typeof m?(p||A.doc).getElementById(m):m)||null};q=q.global.document||null;b.add("dom-contains",!(!q||!q.contains));x.isDescendant=b("dom-contains")?function(m,p){return!(!(p=x.byId(p))||!p.contains(x.byId(m)))}:function(m,p){try{for(m=x.byId(m),p=x.byId(p);m;){if(m==p)return!0;m=m.parentNode}}catch(t){}return!1};b.add("css-user-select",function(m,p,t){if(!t)return!1;m=t.style;p=["Khtml","O","Moz","Webkit"];t=p.length;var h="userSelect";do if("undefined"!==
typeof m[h])return h;while(t--&&(h=p[t]+"UserSelect"));return!1});var r=b("css-user-select");x.setSelectable=r?function(m,p){x.byId(m).style[r]=p?"":"none"}:function(m,p){m=x.byId(m);var t=m.getElementsByTagName("*"),h=t.length;if(p)for(m.removeAttribute("unselectable");h--;)t[h].removeAttribute("unselectable");else for(m.setAttribute("unselectable","on");h--;)t[h].setAttribute("unselectable","on")};return x})},"dojo/_base/window":function(){define(["./kernel","./lang","../sniff"],function(b,A,q){var x=
{global:b.global,doc:b.global.document||null,body:function(r){r=r||b.doc;return r.body||r.getElementsByTagName("body")[0]},setContext:function(r,m){b.global=x.global=r;b.doc=x.doc=m},withGlobal:function(r,m,p,t){var h=b.global;try{return b.global=x.global=r,x.withDoc.call(null,r.document,m,p,t)}finally{b.global=x.global=h}},withDoc:function(r,m,p,t){var h=x.doc,c=q("quirks"),a=q("ie"),f,e;try{b.doc=x.doc=r;b.isQuirks=q.add("quirks","BackCompat"==b.doc.compatMode,!0,!0);if(q("ie")&&(e=r.parentWindow)&&
e.navigator){var l=parseFloat(e.navigator.appVersion.split("MSIE ")[1])||void 0;(f=r.documentMode)&&5!=f&&Math.floor(l)!=f&&(l=f);b.isIE=q.add("ie",l,!0,!0)}p&&"string"==typeof m&&(m=p[m]);return m.apply(p,t||[])}finally{b.doc=x.doc=h,b.isQuirks=q.add("quirks",c,!0,!0),b.isIE=q.add("ie",a,!0,!0)}}};A.mixin(b,x);return x})},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query","./json"],function(b,A,q,x){var r={fieldToObject:function(m){var p=null;if(m=A.byId(m)){var t=m.name,h=(m.type||
"").toLowerCase();if(t&&h&&!m.disabled)if("radio"==h||"checkbox"==h)m.checked&&(p=m.value);else if(m.multiple)for(p=[],m=[m.firstChild];m.length;)for(t=m.pop();t;t=t.nextSibling)if(1==t.nodeType&&"option"==t.tagName.toLowerCase())t.selected&&p.push(t.value);else{t.nextSibling&&m.push(t.nextSibling);t.firstChild&&m.push(t.firstChild);break}else p=m.value}return p},toObject:function(m){var p={};m=A.byId(m).elements;for(var t=0,h=m.length;t<h;++t){var c=m[t],a=c.name,f=(c.type||"").toLowerCase();if(a&&
f&&0>"file|submit|image|reset|button".indexOf(f)&&!c.disabled){var e=p,l=a;c=r.fieldToObject(c);if(null!==c){var k=e[l];"string"==typeof k?e[l]=[k,c]:b.isArray(k)?k.push(c):e[l]=c}"image"==f&&(p[a+".x"]=p[a+".y"]=p[a].x=p[a].y=0)}}return p},toQuery:function(m){return q.objectToQuery(r.toObject(m))},toJson:function(m,p){return x.stringify(r.toObject(m),null,p?4:0)}};return r})},"dojo/_base/Deferred":function(){define("./kernel ../Deferred ../promise/Promise ../errors/CancelError ../has ./lang ../when".split(" "),
function(b,A,q,x,r,m,p){var t=function(){},h=Object.freeze||function(){},c=b.Deferred=function(a){function f(z){if(k)throw Error("This deferred has already been resolved");l=z;k=!0;e()}function e(){for(var z;!z&&v;){var w=v;v=v.next;if(z=w.progress==t)k=!1;var E=y?w.error:w.resolved;r("config-useDeferredInstrumentation")&&y&&A.instrumentRejected&&A.instrumentRejected(l,!!E);if(E)try{var C=E(l);C&&"function"===typeof C.then?C.then(m.hitch(w.deferred,"resolve"),m.hitch(w.deferred,"reject"),m.hitch(w.deferred,
"progress")):(E=z&&void 0===C,z&&!E&&(y=C instanceof Error),w.deferred[E&&y?"reject":"resolve"](E?l:C))}catch(H){w.deferred.reject(H)}else y?w.deferred.reject(l):w.deferred.resolve(l)}}var l,k,d,u,y,n,v,D=this.promise=new q;this.isResolved=D.isResolved=function(){return 0==u};this.isRejected=D.isRejected=function(){return 1==u};this.isFulfilled=D.isFulfilled=function(){return 0<=u};this.isCanceled=D.isCanceled=function(){return d};this.resolve=this.callback=function(z){this.fired=u=0;this.results=
[z,null];f(z)};this.reject=this.errback=function(z){y=!0;this.fired=u=1;r("config-useDeferredInstrumentation")&&A.instrumentRejected&&A.instrumentRejected(z,!!v);f(z);this.results=[null,z]};this.progress=function(z){for(var w=v;w;){var E=w.progress;E&&E(z);w=w.next}};this.addCallbacks=function(z,w){this.then(z,w,t);return this};D.then=this.then=function(z,w,E){var C=E==t?this:new c(D.cancel);z={resolved:z,error:w,progress:E,deferred:C};v?n=n.next=z:v=n=z;k&&e();return C.promise};var O=this;D.cancel=
this.cancel=function(){if(!k){var z=a&&a(O);k||(z instanceof Error||(z=new x(z)),z.log=!1,O.reject(z))}d=!0};h(D)};m.extend(c,{addCallback:function(a){return this.addCallbacks(m.hitch.apply(b,arguments))},addErrback:function(a){return this.addCallbacks(null,m.hitch.apply(b,arguments))},addBoth:function(a){var f=m.hitch.apply(b,arguments);return this.addCallbacks(f,f)},fired:-1});c.when=b.when=p;return c})},"dojo/Deferred":function(){define(["./has","./_base/lang","./errors/CancelError","./promise/Promise",
"./promise/instrumentation"],function(b,A,q,x,r){var m=Object.freeze||function(){},p=function(f,e,l,k,d){2===e&&a.instrumentRejected&&0===f.length&&a.instrumentRejected(l,!1,k,d);for(d=0;d<f.length;d++)t(f[d],e,l,k)},t=function(f,e,l,k){var d=f[e],u=f.deferred;if(d)try{var y=d(l);if(0===e)"undefined"!==typeof y&&c(u,e,y);else{if(y&&"function"===typeof y.then){f.cancel=y.cancel;y.then(h(u,1),h(u,2),h(u,0));return}c(u,1,y)}}catch(n){c(u,2,n)}else c(u,e,l);2===e&&a.instrumentRejected&&a.instrumentRejected(l,
!!d,k,u.promise)},h=function(f,e){return function(l){c(f,e,l)}},c=function(f,e,l){if(!f.isCanceled())switch(e){case 0:f.progress(l);break;case 1:f.resolve(l);break;case 2:f.reject(l)}},a=function(f){var e=this.promise=new x,l=this,k,d,u,y=!1,n=[];Error.captureStackTrace&&(Error.captureStackTrace(l,a),Error.captureStackTrace(e,a));this.isResolved=e.isResolved=function(){return 1===k};this.isRejected=e.isRejected=function(){return 2===k};this.isFulfilled=e.isFulfilled=function(){return!!k};this.isCanceled=
e.isCanceled=function(){return y};this.progress=function(D,O){if(k){if(!0===O)throw Error("This deferred has already been fulfilled.");return e}p(n,0,D,null,l);return e};this.resolve=function(D,O){if(k){if(!0===O)throw Error("This deferred has already been fulfilled.");return e}p(n,k=1,d=D,null,l);n=null;return e};var v=this.reject=function(D,O){if(k){if(!0===O)throw Error("This deferred has already been fulfilled.");return e}Error.captureStackTrace&&Error.captureStackTrace(u={},v);p(n,k=2,d=D,u,
l);n=null;return e};this.then=e.then=function(D,O,z){var w=[z,D,O];w.cancel=e.cancel;w.deferred=new a(function(E){return w.cancel&&w.cancel(E)});k&&!n?t(w,k,d,u):n.push(w);return w.deferred.promise};this.cancel=e.cancel=function(D,O){if(!k){f&&(O=f(D),D="undefined"===typeof O?D:O);y=!0;if(!k)return"undefined"===typeof D&&(D=new q),v(D),D;if(2===k&&d===D)return D}else if(!0===O)throw Error("This deferred has already been fulfilled.");};m(e)};a.prototype.toString=function(){return"[object Deferred]"};
r&&r(a);return a})},"dojo/errors/CancelError":function(){define(["./create"],function(b){return b("CancelError",null,null,{dojoType:"cancel",log:!1})})},"dojo/errors/create":function(){define(["../_base/lang"],function(b){return function(A,q,x,r){x=x||Error;var m=function(p){if(x===Error){Error.captureStackTrace&&Error.captureStackTrace(this,m);var t=Error.call(this,p),h;for(h in t)t.hasOwnProperty(h)&&(this[h]=t[h]);this.message=p;this.stack=t.stack}else x.apply(this,arguments);q&&q.apply(this,arguments)};
m.prototype=b.delegate(x.prototype,r);m.prototype.name=A;return m.prototype.constructor=m}})},"dojo/promise/Promise":function(){define(["../_base/lang"],function(b){function A(){throw new TypeError("abstract");}return b.extend(function(){},{then:function(q,x,r){A()},cancel:function(q,x){A()},isResolved:function(){A()},isRejected:function(){A()},isFulfilled:function(){A()},isCanceled:function(){A()},"finally":function(q){return this.then(function(x){var r=q();return r&&"function"===typeof r.then?r.then(function(){return x}):
x},function(x){var r=q();if(r&&"function"===typeof r.then)return r.then(function(){throw x;});throw x;})},always:function(q){return this.then(q,q)},"catch":function(q){return this.then(null,q)},otherwise:function(q){return this.then(null,q)},trace:function(){return this},traceRejected:function(){return this},toString:function(){return"[object Promise]"}})})},"dojo/promise/instrumentation":function(){define(["./tracer","../has","../_base/lang","../_base/array"],function(b,A,q,x){function r(f,e,l){if(!f||
!1!==f.log){var k="";f&&f.stack&&(k+=f.stack);e&&e.stack&&(k+="\n    ----------------------------------------\n    rejected"+e.stack.split("\n").slice(1).join("\n").replace(/^\s+/," "));l&&l.stack&&(k+="\n    ----------------------------------------\n"+l.stack);console.error(f,k)}}function m(f,e,l,k){e||r(f,l,k)}function p(f,e,l,k){x.some(h,function(d){if(d.error===f)return e&&(d.handled=!0),!0})||h.push({error:f,rejection:l,handled:e,deferred:k,timestamp:(new Date).getTime()});c||(c=setTimeout(t,
a))}function t(){var f=(new Date).getTime(),e=f-a;h=x.filter(h,function(l){return l.timestamp<e?(l.handled||r(l.error,l.rejection,l.deferred),!1):!0});c=h.length?setTimeout(t,h[0].timestamp+a-f):!1}A.add("config-useDeferredInstrumentation","report-unhandled-rejections");var h=[],c=!1,a=1E3;return function(f){var e=A("config-useDeferredInstrumentation");if(e){b.on("resolved",q.hitch(console,"log","resolved"));b.on("rejected",q.hitch(console,"log","rejected"));b.on("progress",q.hitch(console,"log",
"progress"));var l=[];"string"===typeof e&&(l=e.split(","),e=l.shift());if("report-rejections"===e)f.instrumentRejected=m;else if("report-unhandled-rejections"===e||!0===e||1===e)f.instrumentRejected=p,a=parseInt(l[0],10)||a;else throw Error("Unsupported instrumentation usage \x3c"+e+"\x3e");}}})},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(b,A,q){function x(p){setTimeout(function(){m.apply(r,p)},0)}var r=new q,m=r.emit;r.emit=null;A.prototype.trace=
function(){var p=b._toArray(arguments);this.then(function(t){x(["resolved",t].concat(p))},function(t){x(["rejected",t].concat(p))},function(t){x(["progress",t].concat(p))});return this};A.prototype.traceRejected=function(){var p=b._toArray(arguments);this.otherwise(function(t){x(["rejected",t].concat(p))});return this};return r})},"dojo/Evented":function(){define(["./aspect","./on"],function(b,A){function q(){}var x=b.after;q.prototype={on:function(r,m){return A.parse(this,r,m,function(p,t){return x(p,
"on"+t,m,!0)})},emit:function(r,m){var p=[this];p.push.apply(p,arguments);return A.emit.apply(A,p)}};return q})},"dojo/aspect":function(){define([],function(){function b(p,t,h,c){var a=p[t],f="around"==t;if(f){var e=h(function(){return a.advice(this,arguments)});var l={remove:function(){e&&(e=p=h=null)},advice:function(k,d){return e?e.apply(k,d):a.advice(k,d)}}}else l={remove:function(){if(l.advice){var k=l.previous,d=l.next;d||k?(k?k.next=d:p[t]=d,d&&(d.previous=k)):delete p[t];p=h=l.advice=null}},
id:p.nextId++,advice:h,receiveArguments:c};if(a&&!f)if("after"==t){for(;a.next&&(a=a.next););a.next=l;l.previous=a}else"before"==t&&(p[t]=l,l.next=a,a.previous=l);else p[t]=l;return l}function A(p){return function(t,h,c,a){var f=t[h],e;f&&f.target==t||(t[h]=e=function(){for(var l=e.nextId,k=arguments,d=e.before;d;)d.advice&&(k=d.advice.apply(this,k)||k),d=d.next;if(e.around)var u=e.around.advice(this,k);for(d=e.after;d&&d.id<l;){if(d.advice)if(d.receiveArguments){var y=d.advice.apply(this,k);u=y===
q?u:y}else u=d.advice.call(this,u,k);d=d.next}return u},f&&(e.around={advice:function(l,k){return f.apply(l,k)}}),e.target=t,e.nextId=e.nextId||0);t=b(e||f,p,c,a);c=null;return t}}var q,x=A("after"),r=A("before"),m=A("around");return{before:r,around:m,after:x}})},"dojo/on":function(){define(["./has!dom-addeventlistener?:./aspect","./_base/kernel","./sniff"],function(b,A,q){function x(w,E,C,H,B){if(H=E.match(/(.*):(.*)/))return E=H[2],H=H[1],t.selector(H,E).call(B,w,C);q("touch")&&(h.test(E)&&(C=z(C)),
q("event-orientationchange")||"orientationchange"!=E||(E="resize",w=window,C=z(C)));l&&(C=l(C));if(w.addEventListener){var K=E in f,J=K?f[E]:E;w.addEventListener(J,C,K);return{remove:function(){w.removeEventListener(J,C,K)}}}if(y&&w.attachEvent)return y(w,"on"+E,C);throw Error("Target must be an event emitter");}function r(){this.cancelable=!1;this.defaultPrevented=!0}function m(){this.bubbles=!1}var p=window.ScriptEngineMajorVersion;q.add("jscript",p&&p()+ScriptEngineMinorVersion()/10);q.add("event-orientationchange",
q("touch")&&!q("android"));q.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);q.add("event-focusin",function(w,E,C){return"onfocusin"in C});q("touch")&&q.add("touch-can-modify-event-delegate",function(){var w=function(){};w.prototype=document.createEvent("MouseEvents");try{var E=new w;E.target=null;return null===E.target}catch(C){return!1}});var t=function(w,E,C,H){return"function"!=typeof w.on||"function"==typeof E||w.nodeType?
t.parse(w,E,C,x,H,this):w.on(E,C)};t.pausable=function(w,E,C,H){var B;w=t(w,E,function(){if(!B)return C.apply(this,arguments)},H);w.pause=function(){B=!0};w.resume=function(){B=!1};return w};t.once=function(w,E,C,H){var B=t(w,E,function(){B.remove();return C.apply(this,arguments)});return B};t.parse=function(w,E,C,H,B,K){var J;if(E.call)return E.call(K,w,C);E instanceof Array?J=E:-1<E.indexOf(",")&&(J=E.split(/\s*,\s*/));if(J){var R=[];E=0;for(var V;V=J[E++];)R.push(t.parse(w,V,C,H,B,K));R.remove=
function(){for(var Y=0;Y<R.length;Y++)R[Y].remove()};return R}return H(w,E,C,B,K)};var h=/^touch/;t.matches=function(w,E,C,H,B){B=B&&"function"==typeof B.matches?B:A.query;H=!1!==H;1!=w.nodeType&&(w=w.parentNode);for(;!B.matches(w,E,C);)if(w==C||!1===H||!(w=w.parentNode)||1!=w.nodeType)return!1;return w};t.selector=function(w,E,C){return function(H,B){function K(V){return t.matches(V,w,H,C,J)}var J="function"==typeof w?{matches:w}:this,R=E.bubble;return R?t(H,R(K),B):t(H,E,function(V){var Y=K(V.target);
if(Y)return V.selectorTarget=Y,B.call(Y,V)})}};var c=[].slice,a=t.emit=function(w,E,C){var H=c.call(arguments,2),B="on"+E;if("parentNode"in w){var K=H[0]={},J;for(J in C)K[J]=C[J];K.preventDefault=r;K.stopPropagation=m;K.target=w;K.type=E;C=K}do w[B]&&w[B].apply(w,H);while(C&&C.bubbles&&(w=w.parentNode));return C&&C.cancelable&&C},f=q("event-focusin")?{}:{focusin:"focus",focusout:"blur"};if(!q("event-stopimmediatepropagation"))var e=function(){this.modified=this.immediatelyStopped=!0},l=function(w){return function(E){if(!E.immediatelyStopped)return E.stopImmediatePropagation=
e,w.apply(this,arguments)}};if(q("dom-addeventlistener"))t.emit=function(w,E,C){if(w.dispatchEvent&&document.createEvent){var H=(w.ownerDocument||document).createEvent("HTMLEvents");H.initEvent(E,!!C.bubbles,!!C.cancelable);for(var B in C)B in H||(H[B]=C[B]);return w.dispatchEvent(H)&&H}return a.apply(t,arguments)};else{t._fixEvent=function(w,E){w||(w=(E&&(E.ownerDocument||E.document||E).parentWindow||window).event);if(!w)return w;try{k&&w.type==k.type&&w.srcElement==k.target&&(w=k)}catch(C){}if(!w.target)switch(w.target=
w.srcElement,w.currentTarget=E||w.srcElement,"mouseover"==w.type&&(w.relatedTarget=w.fromElement),"mouseout"==w.type&&(w.relatedTarget=w.toElement),w.stopPropagation||(w.stopPropagation=n,w.preventDefault=v),w.type){case "keypress":E="charCode"in w?w.charCode:w.keyCode,10==E?(E=0,w.keyCode=13):13==E||27==E?E=0:3==E&&(E=99),w.charCode=E,E=w,E.keyChar=E.charCode?String.fromCharCode(E.charCode):"",E.charOrCode=E.keyChar||E.keyCode}return w};var k,d=function(w){this.handle=w};d.prototype.remove=function(){delete _dojoIEListeners_[this.handle]};
var u=function(w){return function(E){E=t._fixEvent(E,this);var C=w.call(this,E);E.modified&&(k||setTimeout(function(){k=null}),k=E);return C}},y=function(w,E,C){C=u(C);if(((w.ownerDocument?w.ownerDocument.parentWindow:w.parentWindow||w.window||window)!=top||5.8>q("jscript"))&&!q("config-_allow_leaks")){"undefined"==typeof _dojoIEListeners_&&(_dojoIEListeners_=[]);var H=w[E];if(!H||!H.listeners){var B=H;H=Function("event","var callee \x3d arguments.callee; for(var i \x3d 0; i\x3ccallee.listeners.length; i++){var listener \x3d _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}");
H.listeners=[];w[E]=H;H.global=this;B&&H.listeners.push(_dojoIEListeners_.push(B)-1)}H.listeners.push(w=H.global._dojoIEListeners_.push(C)-1);return new d(w)}return b.after(w,E,C,!0)},n=function(){this.cancelBubble=!0},v=t._preventDefault=function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey)try{this.keyCode=0}catch(w){}this.defaultPrevented=!0;this.returnValue=!1;this.modified=!0}}if(q("touch"))var D=function(){},O=window.orientation,z=function(w){return function(E){var C=E.corrected;if(!C){var H=
E.type;try{delete E.type}catch(J){}if(E.type){if(q("touch-can-modify-event-delegate"))D.prototype=E,C=new D;else{C={};for(var B in E)C[B]=E[B]}C.preventDefault=function(){E.preventDefault()};C.stopPropagation=function(){E.stopPropagation()}}else C=E,C.type=H;E.corrected=C;if("resize"==H){if(O==window.orientation)return null;O=window.orientation;C.type="orientationchange";return w.call(this,C)}"rotation"in C||(C.rotation=0,C.scale=1);if(window.TouchEvent&&E instanceof TouchEvent){H=C.changedTouches[0];
for(var K in H)delete C[K],C[K]=H[K]}}return w.call(this,C)}};return t})},"dojo/when":function(){define(["./Deferred","./promise/Promise"],function(b,A){return function(q,x,r,m){var p=q&&"function"===typeof q.then,t=p&&q instanceof A;if(!p)return 1<arguments.length?x?x(q):q:(new b).resolve(q);t||(p=new b(q.cancel),q.then(p.resolve,p.reject,p.progress),q=p.promise);return x||r||m?q.then(x,r,m):q}})},"dojo/_base/json":function(){define(["./kernel","../json"],function(b,A){b.fromJson=function(q){return eval("("+
q+")")};b._escapeString=A.stringify;b.toJsonIndentStr="\t";b.toJson=function(q,x){return A.stringify(q,function(r,m){return m&&(r=m.__json__||m.json,"function"==typeof r)?r.call(m):m},x&&b.toJsonIndentStr)};return b})},"dojo/request/watch":function(){define("./util ../errors/RequestTimeoutError ../errors/CancelError ../_base/array ../_base/window ../has!host-browser?dom-addeventlistener?:../on:".split(" "),function(b,A,q,x,r,m){function p(){for(var a=+new Date,f=0,e;f<c.length&&(e=c[f]);f++){var l=
e.response,k=l.options;e.isCanceled&&e.isCanceled()||e.isValid&&!e.isValid(l)?(c.splice(f--,1),t._onAction&&t._onAction()):e.isReady&&e.isReady(l)?(c.splice(f--,1),e.handleResponse(l),t._onAction&&t._onAction()):e.startTime&&e.startTime+(k.timeout||0)<a&&(c.splice(f--,1),e.cancel(new A("Timeout exceeded",l)),t._onAction&&t._onAction())}t._onInFlight&&t._onInFlight(e);c.length||(clearInterval(h),h=null)}function t(a){a.response.options.timeout&&(a.startTime=+new Date);a.isFulfilled()||(c.push(a),h||
(h=setInterval(p,50)),a.response.options.sync&&p())}var h=null,c=[];t.cancelAll=function(){try{x.forEach(c,function(a){try{a.cancel(new q("All requests canceled."))}catch(f){}})}catch(a){}};r&&m&&r.doc.attachEvent&&m(r.global,"unload",function(){t.cancelAll()});return t})},"dojo/request/util":function(){define("exports ../errors/RequestError ../errors/CancelError ../Deferred ../io-query ../_base/array ../_base/lang ../promise/Promise ../has".split(" "),function(b,A,q,x,r,m,p,t,h){function c(k){return h("native-arraybuffer")&&
k instanceof ArrayBuffer}function a(k){return h("native-blob")&&k instanceof Blob}function f(k){return l(k)}function e(k){return void 0!==k.data?k.data:k.text}b.deepCopy=function(k,d){for(var u in d){var y=k[u],n=d[u];if("__proto__"!==u&&y!==n){var v=n,D;if(D=v&&"object"===typeof v)D=v,D=!(h("native-formdata")&&D instanceof FormData);!D||("undefined"!==typeof Element?v instanceof Element:1===v.nodeType)||a(v)||c(v)?k[u]=n:"[object Date]"===Object.prototype.toString.call(n)?k[u]=new Date(n):p.isArray(n)?
k[u]=b.deepCopyArray(n):y&&"object"===typeof y?b.deepCopy(y,n):k[u]=b.deepCopy({},n)}}return k};b.deepCopyArray=function(k){for(var d=[],u=0,y=k.length;u<y;u++){var n=k[u];"object"===typeof n?d.push(b.deepCopy({},n)):d.push(n)}return d};b.deepCreate=function(k,d){d=d||{};var u=p.delegate(k),y,n;for(y in k)(n=k[y])&&"object"===typeof n&&(u[y]=b.deepCreate(n,d[y]));return b.deepCopy(u,d)};var l=Object.freeze||function(k){return k};b.deferred=function(k,d,u,y,n,v){var D=new x(function(z){d&&d(D,k);return z&&
(z instanceof A||z instanceof q)?z:new q("Request canceled",k)});D.response=k;D.isValid=u;D.isReady=y;D.handleResponse=n;u=D.then(f).otherwise(function(z){z.response=k;throw z;});b.notify&&u.then(p.hitch(b.notify,"emit","load"),p.hitch(b.notify,"emit","error"));y=u.then(e);n=new t;for(var O in y)y.hasOwnProperty(O)&&(n[O]=y[O]);n.response=u;l(n);v&&D.then(function(z){v.call(D,z)},function(z){v.call(D,k,z)});D.promise=n;D.then=n.then;return D};b.addCommonMethods=function(k,d){m.forEach(d||["GET","POST",
"PUT","DELETE"],function(u){k[("DELETE"===u?"DEL":u).toLowerCase()]=function(y,n){n=p.delegate(n||{});n.method=u;return k(y,n)}})};b.parseArgs=function(k,d,u){var y=d.data,n=d.query;!y||u||"object"!==typeof y||h("native-xhr2")&&(c(y)||a(y))||(d.data=r.objectToQuery(y));n?("object"===typeof n&&(n=r.objectToQuery(n)),d.preventCache&&(n+=(n?"\x26":"")+"request.preventCache\x3d"+ +new Date)):d.preventCache&&(n="request.preventCache\x3d"+ +new Date);k&&n&&(k+=(~k.indexOf("?")?"\x26":"?")+n);return{url:k,
options:d,getHeader:function(v){return null}}};b.checkStatus=function(k){k=k||0;return 200<=k&&300>k||304===k||1223===k||!k}})},"dojo/errors/RequestError":function(){define(["./create"],function(b){return b("RequestError",function(A,q){this.response=q})})},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],function(b,A){return b("RequestTimeoutError",null,A,{dojoType:"timeout"})})},"dojo/request/xhr":function(){define(["../errors/RequestError","./watch","./handlers",
"./util","../has"],function(b,A,q,x,r){function m(d,u){var y=d.xhr;d.status=d.xhr.status;try{d.text=y.responseText}catch(v){}"xml"===d.options.handleAs&&(d.data=y.responseXML);if(u)this.reject(u);else{try{q(d)}catch(v){var n=v}x.checkStatus(y.status)?n?this.reject(n):this.resolve(d):(u=n?new b("Unable to load "+d.url+" status: "+y.status+" and an error in handleAs: transformation of response",d):new b("Unable to load "+d.url+" status: "+y.status,d),this.reject(u))}}function p(d){return this.xhr.getResponseHeader(d)}
function t(d,u,y){var n=r("native-formdata")&&u&&u.data&&u.data instanceof FormData,v=x.parseArgs(d,x.deepCreate(k,u),n);d=v.url;u=v.options;var D=!u.data&&"POST"!==u.method&&"PUT"!==u.method;10>=r("ie")&&(d=d.split("#")[0]);var O,z=x.deferred(v,a,c,e,m,function(){O&&O()}),w=v.xhr=t._create();if(!w)return z.cancel(new b("XHR was not created")),y?z:z.promise;v.getHeader=p;f&&(O=f(w,z,v,u.uploadProgress));var E="undefined"===typeof u.data?null:u.data,C=!u.sync,H=u.method;try{w.open(H,d,C,u.user||l,
u.password||l);u.withCredentials&&(w.withCredentials=u.withCredentials);r("native-response-type")&&u.handleAs in h&&(w.responseType=h[u.handleAs]);var B=u.headers;d=n||D?!1:"application/x-www-form-urlencoded";if(B)for(var K in B)"content-type"===K.toLowerCase()?d=B[K]:B[K]&&w.setRequestHeader(K,B[K]);d&&!1!==d&&w.setRequestHeader("Content-Type",d);B&&"X-Requested-With"in B||w.setRequestHeader("X-Requested-With","XMLHttpRequest");x.notify&&x.notify.emit("send",v,z.promise.cancel);w.send(E)}catch(J){z.reject(J)}A(z);
w=null;return y?z:z.promise}r.add("native-xhr",function(){return"undefined"!==typeof XMLHttpRequest});r.add("dojo-force-activex-xhr",function(){return r("activex")&&"file:"===window.location.protocol});r.add("native-xhr2",function(){if(r("native-xhr")&&!r("dojo-force-activex-xhr")){var d=new XMLHttpRequest;return"undefined"!==typeof d.addEventListener&&("undefined"===typeof opera||"undefined"!==typeof d.upload)}});r.add("native-formdata",function(){return"undefined"!==typeof FormData});r.add("native-blob",
function(){return"undefined"!==typeof Blob});r.add("native-arraybuffer",function(){return"undefined"!==typeof ArrayBuffer});r.add("native-response-type",function(){return r("native-xhr")&&"undefined"!==typeof(new XMLHttpRequest).responseType});r.add("native-xhr2-blob",function(){if(r("native-response-type")){var d=new XMLHttpRequest;d.open("GET","https://dojotoolkit.org/",!0);d.responseType="blob";var u=d.responseType;d.abort();return"blob"===u}});var h={blob:r("native-xhr2-blob")?"blob":"arraybuffer",
document:"document",arraybuffer:"arraybuffer"};if(r("native-xhr2")){var c=function(d){return!this.isFulfilled()};var a=function(d,u){u.xhr.abort()};var f=function(d,u,y,n){function v(E){u.handleResponse(y)}function D(E){E=new b("Unable to load "+y.url+" status: "+E.target.status,y);u.handleResponse(y,E)}function O(E,C){y.transferType=E;C.lengthComputable?(y.loaded=C.loaded,y.total=C.total,u.progress(y)):3===y.xhr.readyState&&(y.loaded="loaded"in C?C.loaded:C.position,u.progress(y))}function z(E){return O("download",
E)}function w(E){return O("upload",E)}d.addEventListener("load",v,!1);d.addEventListener("error",D,!1);d.addEventListener("progress",z,!1);n&&d.upload&&d.upload.addEventListener("progress",w,!1);return function(){d.removeEventListener("load",v,!1);d.removeEventListener("error",D,!1);d.removeEventListener("progress",z,!1);d.upload.removeEventListener("progress",w,!1);d=null}}}else{c=function(d){return d.xhr.readyState};var e=function(d){return 4===d.xhr.readyState};a=function(d,u){d=u.xhr;u=typeof d.abort;
"function"!==u&&"object"!==u&&"unknown"!==u||d.abort()}}var l,k={data:null,query:null,sync:!1,method:"GET"};t._create=function(){throw Error("XMLHTTP not available");};if(r("native-xhr")&&!r("dojo-force-activex-xhr"))t._create=function(){return new XMLHttpRequest};else if(r("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),t._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(d){try{new ActiveXObject("Microsoft.XMLHTTP"),t._create=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(u){}}x.addCommonMethods(t);
return t})},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has","../selector/_loader"],function(b,A,q,x){function r(a){var f=c[a.options.handleAs];a.data=f?f(a):a.data||a.text;return a}x.add("activex","undefined"!==typeof ActiveXObject);x.add("dom-parser",function(a){return"DOMParser"in a});if(x("activex")){var m=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"],p;var t=function(a){function f(k){try{var d=
new ActiveXObject(k);d.async=!1;d.loadXML(l);e=d;p=k}catch(u){return!1}return!0}var e=a.data,l=a.text;e&&x("dom-qsa2.1")&&!e.querySelectorAll&&x("dom-parser")&&(e=(new DOMParser).parseFromString(l,"application/xml"));e&&e.documentElement||p&&f(p)||q.some(m,f);return e}}var h=function(a){return x("native-xhr2-blob")||"blob"!==a.options.handleAs||"undefined"===typeof Blob?a.xhr.response:new Blob([a.xhr.response],{type:a.xhr.getResponseHeader("Content-Type")})},c={javascript:function(a){return A.eval(a.text||
"")},json:function(a){return b.parse(a.text||null)},xml:t,blob:h,arraybuffer:h,document:h};r.register=function(a,f){c[a]=f};return r})},"dojo/selector/_loader":function(){define(["../has","require"],function(b,A){if("undefined"!==typeof document){var q=document.createElement("div");b.add("dom-qsa2.1",!!q.querySelectorAll);b.add("dom-qsa3",function(){try{return q.innerHTML="\x3cp class\x3d'TEST'\x3e\x3c/p\x3e",1==q.querySelectorAll(".TEST:empty").length}catch(r){}})}var x;return{load:function(r,m,
p,t){if(t&&t.isBuild)p();else{t=A;r="default"==r?b("config-selectorEngine")||"css3":r;r="css2"==r||"lite"==r?"./lite":"css2.1"==r?b("dom-qsa2.1")?"./lite":"./acme":"css3"==r?b("dom-qsa3")?"./lite":"./acme":"acme"==r?"./acme":(t=m)&&r;if("?"==r.charAt(r.length-1)){r=r.substring(0,r.length-1);var h=!0}if(h&&(b("dom-compliant-qsa")||x))return p(x);t([r],function(c){"./lite"!=r&&(x=c);p(c)})}}}})},"dojo/request/script":function(){define("module ./watch ./util ../_base/kernel ../_base/array ../_base/lang ../on ../dom ../dom-construct ../has ../_base/window".split(" "),
function(b,A,q,x,r,m,p,t,h,c,a){function f(w,E){w.canDelete&&u._remove(w.id,E.options.frameDoc,!0)}function e(w){z&&z.length&&(r.forEach(z,function(E){u._remove(E.id,E.frameDoc);E.frameDoc=null}),z=[]);return w.options.jsonp?!w.data:!0}function l(w){return!!this.scriptLoaded}function k(w){return(w=w.options.checkString)&&eval("typeof("+w+') !\x3d\x3d "undefined"')}function d(w,E){if(this.canDelete){var C=this.response.options;z.push({id:this.id,frameDoc:C.ioArgs?C.ioArgs.frameDoc:C.frameDoc});C.ioArgs&&
(C.ioArgs.frameDoc=null);C.frameDoc=null}E?this.reject(E):this.resolve(w)}function u(w,E,C){var H=q.parseArgs(w,q.deepCopy({},E));w=H.url;E=H.options;var B=q.deferred(H,f,e,E.jsonp?null:E.checkString?k:l,d);m.mixin(B,{id:y+n++,canDelete:!1});E.jsonp&&((new RegExp("[?\x26]"+E.jsonp+"\x3d")).test(w)||(w+=(~w.indexOf("?")?"\x26":"?")+E.jsonp+"\x3d"+(E.frameDoc?"parent.":"")+y+"_callbacks."+B.id),B.canDelete=!0,O[B.id]=function(R){H.data=R;B.handleResponse(H)});q.notify&&q.notify.emit("send",H,B.promise.cancel);
if(!E.canAttach||E.canAttach(B)){var K=u._attach(B.id,w,E.frameDoc,function(R){if(!(R instanceof Error)){var V=Error("Error loading "+(R.target?R.target.src:"script"));V.source=R;R=V}B.reject(R);u._remove(B.id,E.frameDoc,!0)});if(!E.jsonp&&!E.checkString)var J=p(K,v,function(R){if("load"===R.type||D.test(K.readyState))J.remove(),B.scriptLoaded=R})}A(B);return C?B:B.promise}c.add("script-readystatechange",function(w,E){return"undefined"!==typeof E.createElement("script").onreadystatechange&&("undefined"===
typeof w.opera||"[object Opera]"!==w.opera.toString())});var y=b.id.replace(/[\/\.\-]/g,"_"),n=0,v=c("script-readystatechange")?"readystatechange":"load",D=/complete|loaded/,O=x.global[y+"_callbacks"]={},z=[];u.get=u;u._attach=function(w,E,C,H){C=C||a.doc;var B=C.createElement("script");if(H)p.once(B,"error",H);B.type="text/javascript";try{B.src=E}catch(K){H&&H(B)}B.id=w;B.async=!0;B.charset="utf-8";return C.getElementsByTagName("head")[0].appendChild(B)};u._remove=function(w,E,C){h.destroy(t.byId(w,
E));O[w]&&(C?O[w]=function(){delete O[w]}:delete O[w])};u._callbacksProperty=y+"_callbacks";return u})},"dojo/dom-construct":function(){define("exports ./_base/kernel ./sniff ./_base/window ./dom ./dom-attr".split(" "),function(b,A,q,x,r,m){function p(y,n){var v=n.parentNode;v&&v.insertBefore(y,n)}function t(y){if("innerHTML"in y)try{y.innerHTML="";return}catch(v){}for(var n;n=y.lastChild;)y.removeChild(n)}var h={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],
td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},c=/<\s*([\w:]+)/,a={},f=0,e="__"+A._scopeName+"ToDomId",l;for(l in h)h.hasOwnProperty(l)&&(A=h[l],A.pre="option"==l?'\x3cselect multiple\x3d"multiple"\x3e':"\x3c"+A.join("\x3e\x3c")+"\x3e",A.post="\x3c/"+A.reverse().join("\x3e\x3c/")+"\x3e");var k;8>=q("ie")&&(k=function(y){y.__dojo_html5_tested="yes";var n=d("div",{innerHTML:"\x3cnav\x3ea\x3c/nav\x3e",style:{visibility:"hidden"}},
y.body);1!==n.childNodes.length&&"abbr article aside audio canvas details figcaption figure footer header hgroup mark meter nav output progress section summary time video".replace(/\b\w+\b/g,function(v){y.createElement(v)});u(n)});b.toDom=function(y,n){n=n||x.doc;var v=n[e];v||(n[e]=v=++f+"",a[v]=n.createElement("div"));8>=q("ie")&&!n.__dojo_html5_tested&&n.body&&k(n);y+="";var D=y.match(c),O=D?D[1].toLowerCase():"";v=a[v];if(D&&h[O])for(D=h[O],v.innerHTML=D.pre+y+D.post,y=D.length;y;--y)v=v.firstChild;
else v.innerHTML=y;if(1==v.childNodes.length)return v.removeChild(v.firstChild);for(y=n.createDocumentFragment();n=v.firstChild;)y.appendChild(n);return y};b.place=function(y,n,v){n=r.byId(n);"string"==typeof y&&(y=/^\s*</.test(y)?b.toDom(y,n.ownerDocument):r.byId(y));if("number"==typeof v){var D=n.childNodes;!D.length||D.length<=v?n.appendChild(y):p(y,D[0>v?0:v])}else switch(v){case "before":p(y,n);break;case "after":v=y;(D=n.parentNode)&&(D.lastChild==n?D.appendChild(v):D.insertBefore(v,n.nextSibling));
break;case "replace":n.parentNode.replaceChild(y,n);break;case "only":b.empty(n);n.appendChild(y);break;case "first":if(n.firstChild){p(y,n.firstChild);break}default:n.appendChild(y)}return y};var d=b.create=function(y,n,v,D){var O=x.doc;v&&(v=r.byId(v),O=v.ownerDocument);"string"==typeof y&&(y=O.createElement(y));n&&m.set(y,n);v&&b.place(y,v,D);return y};b.empty=function(y){t(r.byId(y))};var u=b.destroy=function(y){if(y=r.byId(y)){var n=y;y=y.parentNode;n.firstChild&&t(n);y&&(q("ie")&&y.canHaveChildren&&
"removeNode"in n?n.removeNode(!1):y.removeChild(n))}}})},"dojo/dom-attr":function(){define("exports ./sniff ./_base/lang ./dom ./dom-style ./dom-prop".split(" "),function(b,A,q,x,r,m){function p(c,a){c=c.getAttributeNode&&c.getAttributeNode(a);return!!c&&c.specified}var t={innerHTML:1,textContent:1,className:1,htmlFor:A("ie")?1:0,value:1},h={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};b.has=function(c,a){var f=a.toLowerCase();return!!t[m.names[f]||a]||p(x.byId(c),h[f]||
a)};b.get=function(c,a){c=x.byId(c);var f=a.toLowerCase(),e=m.names[f]||a,l=c[e];if(t[e]&&"undefined"!=typeof l)return l;if("textContent"==e)return m.get(c,e);if("href"!=e&&("boolean"==typeof l||q.isFunction(l)))return l;a=h[f]||a;return p(c,a)?c.getAttribute(a):null};b.set=function(c,a,f){c=x.byId(c);if(2==arguments.length){for(var e in a)b.set(c,e,a[e]);return c}e=a.toLowerCase();var l=m.names[e]||a,k=t[l];if("style"==l&&"string"!=typeof f)return r.set(c,f),c;if(k||"boolean"==typeof f||q.isFunction(f))return m.set(c,
a,f);c.setAttribute(h[e]||a,f);return c};b.remove=function(c,a){x.byId(c).removeAttribute(h[a.toLowerCase()]||a)};b.getNodeProp=function(c,a){c=x.byId(c);var f=a.toLowerCase(),e=m.names[f]||a;if(e in c&&"href"!=e)return c[e];a=h[f]||a;return p(c,a)?c.getAttribute(a):null}})},"dojo/dom-style":function(){define(["./sniff","./dom","./_base/window"],function(b,A,q){function x(l,k,d){k=k.toLowerCase();if("auto"==d){if("height"==k)return l.offsetHeight;if("width"==k)return l.offsetWidth}if("fontweight"==
k)switch(d){case 700:return"bold";default:return"normal"}k in a||(a[k]=f.test(k));return a[k]?p(l,d):d}var r={};var m=b("webkit")?function(l){if(1==l.nodeType){var k=l.ownerDocument.defaultView;var d=k.getComputedStyle(l,null);!d&&l.style&&(l.style.display="",d=k.getComputedStyle(l,null))}return d||{}}:b("ie")&&(9>b("ie")||b("quirks"))?function(l){return 1==l.nodeType&&l.currentStyle?l.currentStyle:{}}:function(l){if(1===l.nodeType){var k=l.ownerDocument.defaultView;return(k.opener?k:q.global.window).getComputedStyle(l,
null)}return{}};r.getComputedStyle=m;var p=b("ie")?function(l,k){if(!k)return 0;if("medium"==k)return 4;if(k.slice&&"px"==k.slice(-2))return parseFloat(k);var d=l.style,u=l.runtimeStyle,y=d.left,n=u.left;u.left=l.currentStyle.left;try{d.left=k,k=d.pixelLeft}catch(v){k=0}d.left=y;u.left=n;return k}:function(l,k){return parseFloat(k)||0};r.toPixelValue=p;var t=function(l,k){try{return l.filters.item("DXImageTransform.Microsoft.Alpha")}catch(d){return k?{}:null}},h=9>b("ie")||10>b("ie")&&b("quirks")?
function(l){try{return t(l).Opacity/100}catch(k){return 1}}:function(l){return m(l).opacity},c=9>b("ie")||10>b("ie")&&b("quirks")?function(l,k){""===k&&(k=1);var d=100*k;1===k?(l.style.zoom="",t(l)&&(l.style.filter=l.style.filter.replace(/\s*progid:DXImageTransform.Microsoft.Alpha\([^\)]+?\)/i,""))):(l.style.zoom=1,t(l)?t(l,1).Opacity=d:l.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+d+")",t(l,1).Enabled=!0);if("tr"==l.tagName.toLowerCase())for(l=l.firstChild;l;l=l.nextSibling)"td"==
l.tagName.toLowerCase()&&c(l,k);return k}:function(l,k){return l.style.opacity=k},a={left:!0,top:!0},f=/margin|padding|width|height|max|min|offset/,e={cssFloat:1,styleFloat:1,"float":1};r.get=function(l,k){var d=A.byId(l),u=arguments.length;if(2==u&&"opacity"==k)return h(d);k=e[k]?"cssFloat"in d.style?"cssFloat":"styleFloat":k;var y=r.getComputedStyle(d);return 1==u?y:x(d,k,y[k]||d.style[k])};r.set=function(l,k,d){var u=A.byId(l),y=arguments.length,n="opacity"==k;k=e[k]?"cssFloat"in u.style?"cssFloat":
"styleFloat":k;if(3==y)return n?c(u,d):u.style[k]=d;for(var v in k)r.set(l,v,k[v]);return r.getComputedStyle(u)};return r})},"dojo/dom-prop":function(){define("exports ./_base/kernel ./sniff ./_base/lang ./dom ./dom-style ./dom-construct ./_base/connect".split(" "),function(b,A,q,x,r,m,p,t){function h(e){var l="";e=e.childNodes;for(var k=0,d;d=e[k];k++)8!=d.nodeType&&(l=1==d.nodeType?l+h(d):l+d.nodeValue);return l}var c={},a=1,f=A._scopeName+"attrid";q.add("dom-textContent",function(e,l,k){return"textContent"in
k});b.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",textcontent:"textContent",valuetype:"valueType"};b.get=function(e,l){e=r.byId(e);var k=l.toLowerCase();l=b.names[k]||l;return"textContent"!=l||q("dom-textContent")?e[l]:h(e)};b.set=function(e,l,k){e=r.byId(e);if(2==arguments.length&&"string"!=typeof l){for(var d in l)b.set(e,d,l[d]);return e}d=l.toLowerCase();d=b.names[d]||l;if("style"==d&&"string"!=
typeof k)return m.set(e,k),e;if("innerHTML"==d)return q("ie")&&e.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(p.empty(e),e.appendChild(p.toDom(k,e.ownerDocument))):e[d]=k,e;if("textContent"==d&&!q("dom-textContent"))return p.empty(e),e.appendChild(e.ownerDocument.createTextNode(k)),e;if(x.isFunction(k)){var u=e[f];u||(u=a++,e[f]=u);c[u]||(c[u]={});var y=c[u][d];if(y)t.disconnect(y);else try{delete e[d]}catch(n){}k?c[u][d]=t.connect(e,d,k):e[d]=null;return e}e[d]=
k;return e}})},"dojo/_base/connect":function(){define("./kernel ../on ../topic ../aspect ./event ../mouse ./sniff ./lang ../keys".split(" "),function(b,A,q,x,r,m,p,t){function h(d,u,y,n,v){n=t.hitch(y,n);if(!d||!d.addEventListener&&!d.attachEvent)return x.after(d||b.global,u,n,!0);"string"==typeof u&&"on"==u.substring(0,2)&&(u=u.substring(2));d||(d=b.global);if(!v)switch(u){case "keypress":u=l;break;case "mouseenter":u=m.enter;break;case "mouseleave":u=m.leave}return A(d,u,n,v)}function c(d){d.keyChar=
d.charCode?String.fromCharCode(d.charCode):"";d.charOrCode=d.keyChar||d.keyCode}p.add("events-keypress-typed",function(){var d={charCode:0};try{d=document.createEvent("KeyboardEvent"),(d.initKeyboardEvent||d.initKeyEvent).call(d,"keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(u){}return 0==d.charCode&&!p("opera")});var a={106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39,229:113},f=p("mac")?"metaKey":"ctrlKey",e=function(d,u){u=t.mixin({},d,u);c(u);u.preventDefault=
function(){d.preventDefault()};u.stopPropagation=function(){d.stopPropagation()};return u};var l=p("events-keypress-typed")?function(d,u){var y=A(d,"keydown",function(v){var D=v.keyCode,O=13!=D&&32!=D&&(27!=D||!p("ie"))&&(48>D||90<D)&&(96>D||111<D)&&(186>D||192<D)&&(219>D||222<D)&&229!=D;if(O||v.ctrlKey){O=O?0:D;if(v.ctrlKey){if(3==D||13==D)return u.call(v.currentTarget,v);O=95<O&&106>O?O-48:!v.shiftKey&&65<=O&&90>=O?O+32:a[O]||O}D=e(v,{type:"keypress",faux:!0,charCode:O});u.call(v.currentTarget,
D);if(p("ie"))try{v.keyCode=D.keyCode}catch(z){}}}),n=A(d,"keypress",function(v){var D=v.charCode;v=e(v,{charCode:32<=D?D:0,faux:!0});return u.call(this,v)});return{remove:function(){y.remove();n.remove()}}}:p("opera")?function(d,u){return A(d,"keypress",function(y){var n=y.which;3==n&&(n=99);n=32>n&&!y.shiftKey?0:n;y.ctrlKey&&!y.shiftKey&&65<=n&&90>=n&&(n+=32);return u.call(this,e(y,{charCode:n}))})}:function(d,u){return A(d,"keypress",function(y){c(y);return u.call(this,y)})};var k={_keypress:l,
connect:function(d,u,y,n,v){var D=arguments,O=[],z=0;O.push("string"==typeof D[0]?null:D[z++],D[z++]);var w=D[z+1];O.push("string"==typeof w||"function"==typeof w?D[z++]:null,D[z++]);for(w=D.length;z<w;z++)O.push(D[z]);return h.apply(this,O)},disconnect:function(d){d&&d.remove()},subscribe:function(d,u,y){return q.subscribe(d,t.hitch(u,y))},publish:function(d,u){return q.publish.apply(q,[d].concat(u))},connectPublisher:function(d,u,y){var n=function(){k.publish(d,arguments)};return y?k.connect(u,
y,n):k.connect(u,n)},isCopyKey:function(d){return d[f]}};k.unsubscribe=k.disconnect;t.mixin(b,k);return k})},"dojo/topic":function(){define(["./Evented"],function(b){var A=new b;return{publish:function(q,x){return A.emit.apply(A,arguments)},subscribe:function(q,x){return A.on.apply(A,arguments)}}})},"dojo/_base/event":function(){define(["./kernel","../on","../has","../dom-geometry"],function(b,A,q,x){if(A._fixEvent){var r=A._fixEvent;A._fixEvent=function(p,t){(p=r(p,t))&&x.normalizeEvent(p);return p}}var m=
{fix:function(p,t){return A._fixEvent?A._fixEvent(p,t):p},stop:function(p){q("dom-addeventlistener")||p&&p.preventDefault?(p.preventDefault(),p.stopPropagation()):(p=p||window.event,p.cancelBubble=!0,A._preventDefault.call(p))}};b.fixEvent=m.fix;b.stopEvent=m.stop;return m})},"dojo/dom-geometry":function(){define(["./sniff","./_base/window","./dom","./dom-style"],function(b,A,q,x){function r(a,f,e,l,k,d){d=d||"px";a=a.style;isNaN(f)||(a.left=f+d);isNaN(e)||(a.top=e+d);0<=l&&(a.width=l+d);0<=k&&(a.height=
k+d)}function m(a){return"button"==a.tagName.toLowerCase()||"input"==a.tagName.toLowerCase()&&"button"==(a.getAttribute("type")||"").toLowerCase()}function p(a){return"border-box"==h.boxModel||"table"==a.tagName.toLowerCase()||m(a)}function t(a){var f={x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0};try{var e=a.getBoundingClientRect()}catch(l){return f}return"undefined"===typeof e.left?f:e}var h={boxModel:"content-box"};b("ie")&&(h.boxModel="BackCompat"==document.compatMode?"border-box":"content-box");
h.getPadExtents=function(a,f){a=q.byId(a);var e=f||x.getComputedStyle(a),l=x.toPixelValue;f=l(a,e.paddingLeft);var k=l(a,e.paddingTop),d=l(a,e.paddingRight);a=l(a,e.paddingBottom);return{l:f,t:k,r:d,b:a,w:f+d,h:k+a}};h.getBorderExtents=function(a,f){a=q.byId(a);var e=x.toPixelValue,l=f||x.getComputedStyle(a);f="none"!=l.borderLeftStyle?e(a,l.borderLeftWidth):0;var k="none"!=l.borderTopStyle?e(a,l.borderTopWidth):0,d="none"!=l.borderRightStyle?e(a,l.borderRightWidth):0;a="none"!=l.borderBottomStyle?
e(a,l.borderBottomWidth):0;return{l:f,t:k,r:d,b:a,w:f+d,h:k+a}};h.getPadBorderExtents=function(a,f){a=q.byId(a);var e=f||x.getComputedStyle(a);f=h.getPadExtents(a,e);a=h.getBorderExtents(a,e);return{l:f.l+a.l,t:f.t+a.t,r:f.r+a.r,b:f.b+a.b,w:f.w+a.w,h:f.h+a.h}};h.getMarginExtents=function(a,f){a=q.byId(a);var e=f||x.getComputedStyle(a),l=x.toPixelValue;f=l(a,e.marginLeft);var k=l(a,e.marginTop),d=l(a,e.marginRight);a=l(a,e.marginBottom);return{l:f,t:k,r:d,b:a,w:f+d,h:k+a}};h.getMarginBox=function(a,
f){a=q.byId(a);f=f||x.getComputedStyle(a);f=h.getMarginExtents(a,f);var e=a.offsetLeft-f.l,l=a.offsetTop-f.t,k=a.parentNode,d=x.toPixelValue;8==b("ie")&&!b("quirks")&&k&&(k=x.getComputedStyle(k),e-="none"!=k.borderLeftStyle?d(a,k.borderLeftWidth):0,l-="none"!=k.borderTopStyle?d(a,k.borderTopWidth):0);return{l:e,t:l,w:a.offsetWidth+f.w,h:a.offsetHeight+f.h}};h.getContentBox=function(a,f){a=q.byId(a);var e=f||x.getComputedStyle(a);f=a.clientWidth;var l=h.getPadExtents(a,e);var k=h.getBorderExtents(a,
e);e=a.offsetLeft+l.l+k.l;var d=a.offsetTop+l.t+k.t;f?k=a.clientHeight:(f=a.offsetWidth-k.w,k=a.offsetHeight-k.h);if(8==b("ie")&&!b("quirks")){var u=a.parentNode,y=x.toPixelValue;u&&(u=x.getComputedStyle(u),e-="none"!=u.borderLeftStyle?y(a,u.borderLeftWidth):0,d-="none"!=u.borderTopStyle?y(a,u.borderTopWidth):0)}return{l:e,t:d,w:f-l.w,h:k-l.h}};h.setContentSize=function(a,f,e){a=q.byId(a);var l=f.w;f=f.h;p(a)&&(e=h.getPadBorderExtents(a,e),0<=l&&(l+=e.w),0<=f&&(f+=e.h));r(a,NaN,NaN,l,f)};var c={l:0,
t:0,w:0,h:0};h.setMarginBox=function(a,f,e){a=q.byId(a);var l=e||x.getComputedStyle(a);e=f.w;var k=f.h,d=p(a)?c:h.getPadBorderExtents(a,l);l=h.getMarginExtents(a,l);if(b("webkit")&&m(a)){var u=a.style;0<=e&&!u.width&&(u.width="4px");0<=k&&!u.height&&(u.height="4px")}0<=e&&(e=Math.max(e-d.w-l.w,0));0<=k&&(k=Math.max(k-d.h-l.h,0));r(a,f.l,f.t,e,k)};h.isBodyLtr=function(a){a=a||A.doc;return"ltr"==(A.body(a).dir||a.documentElement.dir||"ltr").toLowerCase()};h.docScroll=function(a){a=a||A.doc;var f=a.parentWindow||
a.defaultView;return"pageXOffset"in f?{x:f.pageXOffset,y:f.pageYOffset}:(f=b("quirks")?A.body(a):a.documentElement)&&{x:h.fixIeBiDiScrollLeft(f.scrollLeft||0,a),y:f.scrollTop||0}};h.getIeDocumentElementOffset=function(a){return{x:0,y:0}};h.fixIeBiDiScrollLeft=function(a,f){f=f||A.doc;var e=b("ie");if(e&&!h.isBodyLtr(f)){var l=b("quirks");f=l?A.body(f):f.documentElement;var k=A.global;6==e&&!l&&k.frameElement&&f.scrollHeight>f.clientHeight&&(a+=f.clientLeft);return 8>e||l?a+f.clientWidth-f.scrollWidth:
-a}return a};h.position=function(a,f){a=q.byId(a);var e=A.body(a.ownerDocument),l=t(a);l={x:l.left,y:l.top,w:l.right-l.left,h:l.bottom-l.top};9>b("ie")&&(l.x-=b("quirks")?e.clientLeft+e.offsetLeft:0,l.y-=b("quirks")?e.clientTop+e.offsetTop:0);f&&(a=h.docScroll(a.ownerDocument),l.x+=a.x,l.y+=a.y);return l};h.getMarginSize=function(a,f){a=q.byId(a);f=h.getMarginExtents(a,f||x.getComputedStyle(a));a=t(a);return{w:a.right-a.left+f.w,h:a.bottom-a.top+f.h}};h.normalizeEvent=function(a){"layerX"in a||(a.layerX=
a.offsetX,a.layerY=a.offsetY);if(!("pageX"in a)){var f=a.target;f=f&&f.ownerDocument||document;var e=b("quirks")?f.body:f.documentElement;a.pageX=a.clientX+h.fixIeBiDiScrollLeft(e.scrollLeft||0,f);a.pageY=a.clientY+(e.scrollTop||0)}};return h})},"dojo/mouse":function(){define(["./_base/kernel","./on","./has","./dom","./_base/window"],function(b,A,q,x,r){function m(p,t){var h=function(c,a){return A(c,p,function(f){if(t)return t(f,a);if(!x.isDescendant(f.relatedTarget,c))return a.call(this,f)})};h.bubble=
function(c){return m(p,function(a,f){var e=c(a.target),l=a.relatedTarget;if(e&&e!=(l&&1==l.nodeType&&c(l)))return f.call(e,a)})};return h}q.add("dom-quirks",r.doc&&"BackCompat"==r.doc.compatMode);q.add("events-mouseenter",r.doc&&"onmouseenter"in r.doc.createElement("div"));q.add("events-mousewheel",r.doc&&"onmousewheel"in r.doc);r=q("dom-quirks")&&q("ie")||!q("dom-addeventlistener")?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(p,t){return p.button&t},isLeft:function(p){return p.button&1},isMiddle:function(p){return p.button&
4},isRight:function(p){return p.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(p,t){return p.button==t},isLeft:function(p){return 0==p.button},isMiddle:function(p){return 1==p.button},isRight:function(p){return 2==p.button}};b.mouseButtons=r;b=q("events-mousewheel")?"mousewheel":function(p,t){return A(p,"DOMMouseScroll",function(h){h.wheelDelta=-h.detail;t.call(this,h)})};return{_eventHandler:m,enter:m("mouseover"),leave:m("mouseout"),wheel:b,isLeft:r.isLeft,isMiddle:r.isMiddle,isRight:r.isRight}})},
"dojo/keys":function(){define(["./_base/kernel","./sniff"],function(b,A){return b.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:A("webkit")?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,
NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:A("mac")&&!A("air")?A("safari")?91:224:17}})},"dojo/main":function(){define("./_base/kernel ./has require ./sniff ./_base/lang ./_base/array ./_base/config ./ready ./_base/declare ./_base/connect ./_base/Deferred ./_base/json ./_base/Color ./has!dojo-firebug?./_firebug/firebug ./_base/browser ./_base/loader".split(" "),
function(b,A,q,x,r,m,p,t){p.isDebug&&q(["./_firebug/firebug"]);var h=p.require;h&&(h=m.map(r.isArray(h)?h:[h],function(c){return c.replace(/\./g,"/")}),b.isAsync?q(h):t(1,function(){q(h)}));return b})},"dojo/ready":function(){define(["./_base/kernel","./has","require","./domReady","./_base/lang"],function(b,A,q,x,r){var m=0,p=[],t=0;A=function(){m=1;b._postLoad=b.config.afterOnLoad=!0;h()};var h=function(){if(!t){for(t=1;m&&(!x||0==x._Q.length)&&(q.idle?q.idle():1)&&p.length;){var f=p.shift();try{f()}catch(e){if(e.info=
e.message,q.signal)q.signal("error",e);else throw e;}}t=0}};q.on&&q.on("idle",h);x&&(x._onQEmpty=h);var c=b.ready=b.addOnLoad=function(f,e,l){var k=r._toArray(arguments);"number"!=typeof f?(l=e,e=f,f=1E3):k.shift();l=l?r.hitch.apply(b,k):function(){e()};l.priority=f;for(k=0;k<p.length&&f>=p[k].priority;k++);p.splice(k,0,l);h()},a=b.config.addOnLoad;if(a)c[r.isArray(a)?"apply":"call"](b,a);b.config.parseOnLoad&&!b.isAsync&&c(99,function(){b.parser||(b.deprecated("Add explicit require(['dojo/parser']);",
"","2.0"),q(["dojo/parser"]))});x?x(A):A();return c})},"dojo/domReady":function(){define(["./global","./has"],function(b,A){function q(d){h.push(d);t&&x()}function x(){if(!c){for(c=!0;h.length;)try{h.shift()(r)}catch(d){console.error(d,"in domReady callback",d.stack)}c=!1;q._onQEmpty()}}var r=document,m={loaded:1,complete:1},p="string"!=typeof r.readyState,t=!!m[r.readyState],h=[],c;q.load=function(d,u,y){q(y)};q._Q=h;q._onQEmpty=function(){};p&&(r.readyState="loading");if(!t){var a=[],f=function(d){d=
d||b.event;t||"readystatechange"==d.type&&!m[r.readyState]||(p&&(r.readyState="complete"),t=1,x())},e=function(d,u){d.addEventListener(u,f,!1);h.push(function(){d.removeEventListener(u,f,!1)})};if(!A("dom-addeventlistener")){e=function(d,u){u="on"+u;d.attachEvent(u,f);h.push(function(){d.detachEvent(u,f)})};var l=r.createElement("div");try{l.doScroll&&null===b.frameElement&&a.push(function(){try{return l.doScroll("left"),1}catch(d){}})}catch(d){}}e(r,"DOMContentLoaded");e(b,"load");"onreadystatechange"in
r?e(r,"readystatechange"):p||a.push(function(){return m[r.readyState]});if(a.length){var k=function(){if(!t){for(var d=a.length;d--;)if(a[d]()){f("poller");return}setTimeout(k,30)}};k()}}return q})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(b,A,q){function x(C,H){throw Error("declare"+(H?" "+H:"")+": "+C);}function r(C,H){for(var B=[],K=[{cls:0,refs:[]}],J={},R=1,V=C.length,Y=0,S,U,L,T,da;Y<V;++Y){(S=C[Y])?"[object Function]"!=O.call(S)&&x("mixin #"+Y+" is not a callable constructor.",
H):x("mixin #"+Y+" is unknown. Did you use dojo.require to pull it in?",H);U=S._meta?S._meta.bases:[S];L=0;for(S=U.length-1;0<=S;--S)T=U[S].prototype,T.hasOwnProperty("declaredClass")||(T.declaredClass="uniqName_"+z++),T=T.declaredClass,J.hasOwnProperty(T)||(J[T]={count:0,refs:[],cls:U[S]},++R),T=J[T],L&&L!==T&&(T.refs.push(L),++L.count),L=T;++L.count;K[0].refs.push(L)}for(;K.length;){L=K.pop();B.push(L.cls);for(--R;da=L.refs,1==da.length;){L=da[0];if(!L||--L.count){L=0;break}B.push(L.cls);--R}if(L)for(Y=
0,V=da.length;Y<V;++Y)L=da[Y],--L.count||K.push(L)}R&&x("can't build consistent linearization",H);S=C[0];B[0]=S?S._meta&&S===B[B.length-S._meta.bases.length]?S._meta.bases.length:1:0;return B}function m(C,H,B,K){var J,R=this._inherited=this._inherited||{};if("string"===typeof C){var V=C;C=H;H=B;B=K}if("function"===typeof C){var Y=C;C=H;H=B}else try{Y=C.callee}catch(T){if(T instanceof TypeError)x("strict mode inherited() requires the caller function to be passed before arguments",this.declaredClass);
else throw T;}(V=V||Y.nom)||x("can't deduce a name to call inherited()",this.declaredClass);B=K=0;var S=this.constructor._meta;K=S.bases;var U=R.p;if("constructor"!=V){if(R.c!==Y){U=0;var L=K[0];S=L._meta;if(S.hidden[V]!==Y){(J=S.chains)&&"string"==typeof J[V]&&x("calling chained method with inherited: "+V,this.declaredClass);do if(S=L._meta,J=L.prototype,S&&(J[V]===Y&&J.hasOwnProperty(V)||S.hidden[V]===Y))break;while(L=K[++U]);U=L?U:-1}}if(L=K[++U])if(J=L.prototype,L._meta&&J.hasOwnProperty(V))B=
J[V];else{Y=D[V];do if(J=L.prototype,(B=J[V])&&(L._meta?J.hasOwnProperty(V):B!==Y))break;while(L=K[++U])}B=L&&B||D[V]}else{if(R.c!==Y&&(U=0,(S=K[0]._meta)&&S.ctor!==Y)){for((J=S.chains)&&"manual"===J.constructor||x("calling chained constructor with inherited",this.declaredClass);(L=K[++U])&&(!(S=L._meta)||S.ctor!==Y););U=L?U:-1}for(;(L=K[++U])&&!(B=(S=L._meta)?S.ctor:L););B=L&&B}R.c=B;R.p=U;if(B)return!0===H?B:B.apply(this,H||C)}function p(C,H,B){return"string"===typeof C?"function"===typeof H?this.__inherited(C,
H,B,!0):this.__inherited(C,H,!0):"function"===typeof C?this.__inherited(C,H,!0):this.__inherited(C,!0)}function t(C,H,B,K){var J=this.getInherited(C,H,B);if(J)return J.apply(this,K||B||H||C)}function h(C){for(var H=this.constructor._meta.bases,B=0,K=H.length;B<K;++B)if(H[B]===C)return!0;return this instanceof C}function c(C,H){for(var B in H)"constructor"!=B&&H.hasOwnProperty(B)&&(C[B]=H[B]);if(A("bug-for-in-skips-shadowed"))for(var K=q._extraNames,J=K.length;J;)B=K[--J],"constructor"!=B&&H.hasOwnProperty(B)&&
(C[B]=H[B])}function a(C){n.safeMixin(this.prototype,C);return this}function f(C,H){C instanceof Array||"function"===typeof C||(H=C,C=void 0);H=H||{};C=C||[];return n([this].concat(C),H)}function e(C,H){return function(){var B=arguments,K=B,J=B[0],R;var V=C.length;if(!(this instanceof B.callee))return y(B);if(H&&(J&&J.preamble||this.preamble)){var Y=Array(C.length);Y[0]=B;for(R=0;;){(J=B[0])&&(J=J.preamble)&&(B=J.apply(this,B)||B);J=C[R].prototype;(J=J.hasOwnProperty("preamble")&&J.preamble)&&(B=
J.apply(this,B)||B);if(++R==V)break;Y[R]=B}}for(R=V-1;0<=R;--R)J=C[R],(J=(V=J._meta)?V.ctor:J)&&J.apply(this,Y?Y[R]:B);(J=this.postscript)&&J.apply(this,K)}}function l(C,H){return function(){var B=arguments,K=B,J=B[0];if(!(this instanceof B.callee))return y(B);H&&(J&&(J=J.preamble)&&(K=J.apply(this,K)||K),(J=this.preamble)&&J.apply(this,K));C&&C.apply(this,B);(J=this.postscript)&&J.apply(this,B)}}function k(C){return function(){var H=arguments,B=0,K,J;if(!(this instanceof H.callee))return y(H);for(;K=
C[B];++B)if(K=(J=K._meta)?J.ctor:K){K.apply(this,H);break}(K=this.postscript)&&K.apply(this,H)}}function d(C,H,B){return function(){var K,J=0,R=1;B&&(J=H.length-1,R=-1);for(;K=H[J];J+=R){var V=K._meta;(K=(V?V.hidden:K.prototype)[C])&&K.apply(this,arguments)}}}function u(C){w.prototype=C.prototype;C=new w;w.prototype=null;return C}function y(C){var H=C.callee,B=u(H);H.apply(B,C);return B}function n(C,H,B){"string"!=typeof C&&(B=H,H=C,C="");B=B||{};var K,J,R,V=1,Y=H;if("[object Array]"==O.call(H)){var S=
r(H,C);var U=S[0];V=S.length-U;H=S[V]}else S=[0],H?"[object Function]"==O.call(H)?(U=H._meta,S=S.concat(U?U.bases:H)):x("base class is not a callable constructor.",C):null!==H&&x("unknown base class. Did you use dojo.require to pull it in?",C);if(H)for(K=V-1;;--K){var L=u(H);if(!K)break;U=S[K];(U._meta?c:v)(L,U.prototype);var T=A("csp-restrictions")?function(){}:new Function;T.superclass=H;T.prototype=L;H=L.constructor=T}else L={};n.safeMixin(L,B);U=B.constructor;U!==D.constructor&&(U.nom="constructor",
L.constructor=U);for(K=V-1;K;--K)(U=S[K]._meta)&&U.chains&&(R=v(R||{},U.chains));L["-chains-"]&&(R=v(R||{},L["-chains-"]));H&&H.prototype&&H.prototype["-chains-"]&&(R=v(R||{},H.prototype["-chains-"]));U=!R||!R.hasOwnProperty("constructor");S[0]=T=R&&"manual"===R.constructor?k(S):1==S.length?l(B.constructor,U):e(S,U);T._meta={bases:S,hidden:B,chains:R,parents:Y,ctor:B.constructor};T.superclass=H&&H.prototype;T.extend=a;T.createSubclass=f;T.prototype=L;L.constructor=T;L.getInherited=p;L.isInstanceOf=
h;L.inherited=E;L.__inherited=m;C&&(L.declaredClass=C,q.setObject(C,T));if(R)for(J in R)L[J]&&"string"==typeof R[J]&&"constructor"!=J&&(U=L[J]=d(J,S,"after"===R[J]),U.nom=J);return T}var v=q.mixin,D=Object.prototype,O=D.toString,z=0;var w=A("csp-restrictions")?function(){}:new Function;var E=b.config.isDebug?t:m;b.safeMixin=n.safeMixin=function(C,H){for(R in H){var B=H[R];B===D[R]&&R in D||"constructor"==R||("[object Function]"==O.call(B)&&(B.nom=R),C[R]=B)}if(A("bug-for-in-skips-shadowed")&&H)for(var K=
q._extraNames,J=K.length;J;){var R=K[--J];B=H[R];B===D[R]&&R in D||"constructor"==R||("[object Function]"==O.call(B)&&(B.nom=R),C[R]=B)}return C};return b.declare=n})},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(b,A,q,x){var r=b.Color=function(m){m&&this.setColor(m)};r.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,
128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:x.transparentColor||[0,0,0,0]};A.extend(r,{r:255,g:255,b:255,a:1,_set:function(m,p,t,h){this.r=m;this.g=p;this.b=t;this.a=h},setColor:function(m){A.isString(m)?r.fromString(m,this):A.isArray(m)?r.fromArray(m,this):(this._set(m.r,m.g,m.b,m.a),m instanceof r||this.sanitize());return this},sanitize:function(){return this},toRgb:function(){return[this.r,this.g,this.b]},toRgba:function(){return[this.r,
this.g,this.b,this.a]},toHex:function(){return"#"+q.map(["r","g","b"],function(m){m=this[m].toString(16);return 2>m.length?"0"+m:m},this).join("")},toCss:function(m){var p=this.r+", "+this.g+", "+this.b;return(m?"rgba("+p+", "+this.a:"rgb("+p)+")"},toString:function(){return this.toCss(!0)}});r.blendColors=b.blendColors=function(m,p,t,h){h=h||new r;h.r=Math.round(m.r+(p.r-m.r)*t);h.g=Math.round(m.g+(p.g-m.g)*t);h.b=Math.round(m.b+(p.b-m.b)*t);h.a=m.a+(p.a-m.a)*t;return h.sanitize()};r.fromRgb=b.colorFromRgb=
function(m,p){return(m=m.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/))&&r.fromArray(m[1].split(/\s*,\s*/),p)};r.fromHex=b.colorFromHex=function(m,p){var t=p||new r,h=4==m.length?4:8,c=(1<<h)-1;m=Number("0x"+m.substr(1));if(isNaN(m))return null;q.forEach(["b","g","r"],function(a){var f=m&c;m>>=h;t[a]=4==h?17*f:f});t.a=1;return t};r.fromArray=b.colorFromArray=function(m,p){p=p||new r;p._set(Number(m[0]),Number(m[1]),Number(m[2]),Number(m[3]));isNaN(p.a)&&(p.a=1);return p.sanitize()};r.fromString=
b.colorFromString=function(m,p){var t=r.named[m];return t&&r.fromArray(t,p)||r.fromRgb(m,p)||r.fromHex(m,p)};return r})},"dojo/_base/browser":function(){require.has&&require.has.add("config-selectorEngine","acme");define("../ready ./kernel ./connect ./unload ./window ./event ./html ./NodeList ../query ./xhr ./fx".split(" "),function(b){return b})},"dojo/_base/unload":function(){define(["./kernel","./lang","../on"],function(b,A,q){var x=window,r={addOnWindowUnload:function(m,p){b.windowUnloaded||q(x,
"unload",b.windowUnloaded=function(){});q(x,"unload",A.hitch(m,p))},addOnUnload:function(m,p){q(x,"beforeunload",A.hitch(m,p))}};b.addOnWindowUnload=r.addOnWindowUnload;b.addOnUnload=r.addOnUnload;return r})},"dojo/_base/html":function(){define("./kernel ../dom ../dom-style ../dom-attr ../dom-prop ../dom-class ../dom-construct ../dom-geometry".split(" "),function(b,A,q,x,r,m,p,t){b.byId=A.byId;b.isDescendant=A.isDescendant;b.setSelectable=A.setSelectable;b.getAttr=x.get;b.setAttr=x.set;b.hasAttr=
x.has;b.removeAttr=x.remove;b.getNodeProp=x.getNodeProp;b.attr=function(h,c,a){return 2==arguments.length?x["string"==typeof c?"get":"set"](h,c):x.set(h,c,a)};b.hasClass=m.contains;b.addClass=m.add;b.removeClass=m.remove;b.toggleClass=m.toggle;b.replaceClass=m.replace;b._toDom=b.toDom=p.toDom;b.place=p.place;b.create=p.create;b.empty=function(h){p.empty(h)};b._destroyElement=b.destroy=function(h){p.destroy(h)};b._getPadExtents=b.getPadExtents=t.getPadExtents;b._getBorderExtents=b.getBorderExtents=
t.getBorderExtents;b._getPadBorderExtents=b.getPadBorderExtents=t.getPadBorderExtents;b._getMarginExtents=b.getMarginExtents=t.getMarginExtents;b._getMarginSize=b.getMarginSize=t.getMarginSize;b._getMarginBox=b.getMarginBox=t.getMarginBox;b.setMarginBox=t.setMarginBox;b._getContentBox=b.getContentBox=t.getContentBox;b.setContentSize=t.setContentSize;b._isBodyLtr=b.isBodyLtr=t.isBodyLtr;b._docScroll=b.docScroll=t.docScroll;b._getIeDocumentElementOffset=b.getIeDocumentElementOffset=t.getIeDocumentElementOffset;
b._fixIeBiDiScrollLeft=b.fixIeBiDiScrollLeft=t.fixIeBiDiScrollLeft;b.position=t.position;b.marginBox=function(h,c){return c?t.setMarginBox(h,c):t.getMarginBox(h)};b.contentBox=function(h,c){return c?t.setContentSize(h,c):t.getContentBox(h)};b.coords=function(h,c){b.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");h=A.byId(h);var a=q.getComputedStyle(h);a=t.getMarginBox(h,a);h=t.position(h,c);a.x=h.x;a.y=h.y;return a};b.getProp=r.get;b.setProp=r.set;b.prop=function(h,c,a){return 2==
arguments.length?r["string"==typeof c?"get":"set"](h,c):r.set(h,c,a)};b.getStyle=q.get;b.setStyle=q.set;b.getComputedStyle=q.getComputedStyle;b.__toPixelValue=b.toPixelValue=q.toPixelValue;b.style=function(h,c,a){switch(arguments.length){case 1:return q.get(h);case 2:return q["string"==typeof c?"get":"set"](h,c)}return q.set(h,c,a)};return b})},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(b,A,q){function x(h){if("string"==typeof h||h instanceof String){if(h&&
!m.test(h))return p[0]=h,p;h=h.split(m);h.length&&!h[0]&&h.shift();h.length&&!h[h.length-1]&&h.pop();return h}return h?A.filter(h,function(c){return c}):[]}var r,m=/\s+/,p=[""],t={};return r={contains:function(h,c){return 0<=(" "+q.byId(h).className+" ").indexOf(" "+c+" ")},add:function(h,c){h=q.byId(h);c=x(c);var a=h.className;a=a?" "+a+" ":" ";var f=a.length;for(var e=0,l=c.length,k;e<l;++e)(k=c[e])&&0>a.indexOf(" "+k+" ")&&(a+=k+" ");f<a.length&&(h.className=a.substr(1,a.length-2))},remove:function(h,
c){h=q.byId(h);if(void 0!==c){c=x(c);var a=" "+h.className+" ";for(var f=0,e=c.length;f<e;++f)a=a.replace(" "+c[f]+" "," ");a=b.trim(a)}else a="";h.className!=a&&(h.className=a)},replace:function(h,c,a){h=q.byId(h);t.className=h.className;r.remove(t,a);r.add(t,c);h.className!==t.className&&(h.className=t.className)},toggle:function(h,c,a){h=q.byId(h);if(void 0===a){c=x(c);for(var f=0,e=c.length,l;f<e;++f)l=c[f],r[r.contains(h,l)?"remove":"add"](h,l)}else r[a?"add":"remove"](h,c);return a}}})},"dojo/_base/NodeList":function(){define(["./kernel",
"../query","./array","./html","../NodeList-dom"],function(b,A,q){A=A.NodeList;var x=A.prototype;x.connect=A._adaptAsForEach(function(){return b.connect.apply(this,arguments)});x.coords=A._adaptAsMap(b.coords);A.events="blur focus change click error keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup submit".split(" ");q.forEach(A.events,function(r){var m="on"+r;x[m]=function(p,t){return this.connect(m,p,t)}});return b.NodeList=A})},"dojo/query":function(){define("./_base/kernel ./has ./dom ./on ./_base/array ./_base/lang ./selector/_loader ./selector/_loader!default".split(" "),
function(b,A,q,x,r,m,p,t){function h(n,v){var D=function(z,w){if("string"==typeof w&&(w=q.byId(w),!w))return new v([]);z="string"==typeof z?n(z,w):z?z.end&&z.on?z:[z]:[];return z.end&&z.on?z:new v(z)};D.matches=n.match||function(z,w,E){return 0<D.filter([z],w,E).length};D.filter=n.filter||function(z,w,E){return D(w,E).filter(function(C){return-1<r.indexOf(z,C)})};if("function"!=typeof n){var O=n.search;n=function(z,w){return O(w||document,z)}}return D}A.add("array-extensible",function(){return 1==
m.delegate([],{length:1}).length&&!A("bug-for-in-skips-shadowed")});var c=Array.prototype,a=c.slice,f=c.concat,e=r.forEach,l=function(n,v,D){v=[0].concat(a.call(v,0));D=D||b.global;return function(O){v[0]=O;return n.apply(D,v)}},k=function(n){var v=this instanceof d&&A("array-extensible");"number"==typeof n&&(n=Array(n));var D=n&&"length"in n?n:arguments;if(v||!D.sort){for(var O=v?this:[],z=O.length=D.length,w=0;w<z;w++)O[w]=D[w];if(v)return O;D=O}m._mixin(D,u);D._NodeListCtor=function(E){return d(E)};
return D},d=k,u=d.prototype=A("array-extensible")?[]:{};d._wrap=u._wrap=function(n,v,D){n=new (D||this._NodeListCtor||d)(n);return v?n._stash(v):n};d._adaptAsMap=function(n,v){return function(){return this.map(l(n,arguments,v))}};d._adaptAsForEach=function(n,v){return function(){this.forEach(l(n,arguments,v));return this}};d._adaptAsFilter=function(n,v){return function(){return this.filter(l(n,arguments,v))}};d._adaptWithCondition=function(n,v,D){return function(){var O=arguments,z=l(n,O,D);if(v.call(D||
b.global,O))return this.map(z);this.forEach(z);return this}};e(["slice","splice"],function(n){var v=c[n];u[n]=function(){return this._wrap(v.apply(this,arguments),"slice"==n?this:null)}});e(["indexOf","lastIndexOf","every","some"],function(n){var v=r[n];u[n]=function(){return v.apply(b,[this].concat(a.call(arguments,0)))}});m.extend(k,{constructor:d,_NodeListCtor:d,toString:function(){return this.join(",")},_stash:function(n){this._parent=n;return this},on:function(n,v){var D=this.map(function(O){return x(O,
n,v)});D.remove=function(){for(var O=0;O<D.length;O++)D[O].remove()};return D},end:function(){return this._parent?this._parent:new this._NodeListCtor(0)},concat:function(n){var v=a.call(this,0),D=r.map(arguments,function(O){return a.call(O,0)});return this._wrap(f.apply(v,D),this)},map:function(n,v){return this._wrap(r.map(this,n,v),this)},forEach:function(n,v){e(this,n,v);return this},filter:function(n){var v=arguments,D=this,O=0;if("string"==typeof n){D=y._filterResult(this,v[0]);if(1==v.length)return D._stash(this);
O=1}return this._wrap(r.filter(D,v[O],v[O+1]),this)},instantiate:function(n,v){var D=m.isFunction(n)?n:m.getObject(n);v=v||{};return this.forEach(function(O){new D(v,O)})},at:function(){var n=new this._NodeListCtor(0);e(arguments,function(v){0>v&&(v=this.length+v);this[v]&&n.push(this[v])},this);return n._stash(this)}});var y=h(t,k);b.query=h(t,function(n){return k(n)});y.load=function(n,v,D){p.load(n,v,function(O){D(h(O,k))})};b._filterQueryResult=y._filterResult=function(n,v,D){return new k(y.filter(n,
v,D))};b.NodeList=y.NodeList=k;return y})},"dojo/selector/acme":function(){define(["../dom","../sniff","../_base/array","../_base/lang","../_base/window"],function(b,A,q,x,r){var m=x.trim,p=q.forEach,t="BackCompat"==r.doc.compatMode,h=!1,c=function(){return!0},a=function(F){F=0<="\x3e~+".indexOf(F.slice(-1))?F+" * ":F+" ";for(var I=function(Ia,Ja){return m(F.slice(Ia,Ja))},M=[],Q=-1,aa=-1,ba=-1,la=-1,Z=-1,ea=-1,pa=-1,ma,ua="",sa="",Fa,ja=0,Ha=F.length,fa=null,xa=null,za=function(){0<=ea&&(fa.id=I(ea,
ja).replace(/\\/g,""),ea=-1);if(0<=pa){var Ia=pa==ja?null:I(pa,ja);fa[0>"\x3e~+".indexOf(Ia)?"tag":"oper"]=Ia;pa=-1}0<=Z&&(fa.classes.push(I(Z+1,ja).replace(/\\/g,"")),Z=-1)};ua=sa,sa=F.charAt(ja),ja<Ha;ja++)"\\"!=ua&&(fa||(Fa=ja,fa={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return h?this.otag:this.tag}},pa=ja),ma?sa==ma&&(ma=null):"'"==sa||'"'==sa?ma=sa:0<=Q?"]"==sa?(xa.attr?xa.matchFor=I(ba||Q+1,ja):xa.attr=I(Q+1,ja),!(Q=xa.matchFor)||'"'!=Q.charAt(0)&&
"'"!=Q.charAt(0)||(xa.matchFor=Q.slice(1,-1)),xa.matchFor&&(xa.matchFor=xa.matchFor.replace(/\\/g,"")),fa.attrs.push(xa),xa=null,Q=ba=-1):"\x3d"==sa&&(ba=0<="|~^$*".indexOf(ua)?ua:"",xa.type=ba+sa,xa.attr=I(Q+1,ja-ba.length),ba=ja+1):0<=aa?")"==sa&&(0<=la&&(xa.value=I(aa+1,ja)),la=aa=-1):"#"==sa?(za(),ea=ja+1):"."==sa?(za(),Z=ja):":"==sa?(za(),la=ja):"["==sa?(za(),Q=ja,xa={}):"("==sa?(0<=la&&(xa={name:I(la+1,ja),value:null},fa.pseudos.push(xa)),aa=ja):" "==sa&&ua!=sa&&(za(),0<=la&&fa.pseudos.push({name:I(la+
1,ja)}),fa.loops=fa.pseudos.length||fa.attrs.length||fa.classes.length,fa.oquery=fa.query=I(Fa,ja),fa.otag=fa.tag=fa.oper?null:fa.tag||"*",fa.tag&&(fa.tag=fa.tag.toUpperCase()),M.length&&M[M.length-1].oper&&(fa.infixOper=M.pop(),fa.query=fa.infixOper.query+" "+fa.query),M.push(fa),fa=null));return M},f=function(F,I){return F?I?function(){return F.apply(window,arguments)&&I.apply(window,arguments)}:F:I},e=function(F,I){I=I||[];F&&I.push(F);return I},l=function(F){return 1==F.nodeType},k=function(F,
I){return F?"class"==I?F.className||"":"for"==I?F.htmlFor||"":"style"==I?F.style.cssText||"":(h?F.getAttribute(I):F.getAttribute(I,2))||"":""},d={"*\x3d":function(F,I){return function(M){return 0<=k(M,F).indexOf(I)}},"^\x3d":function(F,I){return function(M){return 0==k(M,F).indexOf(I)}},"$\x3d":function(F,I){return function(M){M=" "+k(M,F);var Q=M.lastIndexOf(I);return-1<Q&&Q==M.length-I.length}},"~\x3d":function(F,I){var M=" "+I+" ";return function(Q){return 0<=(" "+k(Q,F)+" ").indexOf(M)}},"|\x3d":function(F,
I){var M=I+"-";return function(Q){Q=k(Q,F);return Q==I||0==Q.indexOf(M)}},"\x3d":function(F,I){return function(M){return k(M,F)==I}}};x=r.doc.documentElement;var u=!(x.nextElementSibling||"nextElementSibling"in x),y=u?"nextSibling":"nextElementSibling",n=u?"previousSibling":"previousElementSibling",v=u?l:c,D=function(F){for(;F=F[n];)if(v(F))return!1;return!0},O=function(F){for(;F=F[y];)if(v(F))return!1;return!0},z=function(F){var I=F.parentNode;I=7!=I.nodeType?I:I.nextSibling;var M=0,Q=I.children||
I.childNodes,aa=F._i||F.getAttribute("_i")||-1,ba=I._l||("undefined"!==typeof I.getAttribute?I.getAttribute("_l"):-1);if(!Q)return-1;Q=Q.length;if(ba==Q&&0<=aa&&0<=ba)return aa;A("ie")&&"undefined"!==typeof I.setAttribute?I.setAttribute("_l",Q):I._l=Q;aa=-1;for(I=I.firstElementChild||I.firstChild;I;I=I[y])v(I)&&(A("ie")?I.setAttribute("_i",++M):I._i=++M,F===I&&(aa=M));return aa},w=function(F){return!(z(F)%2)},E=function(F){return z(F)%2},C={checked:function(F,I){return function(M){return!("checked"in
M?!M.checked:!M.selected)}},disabled:function(F,I){return function(M){return M.disabled}},enabled:function(F,I){return function(M){return!M.disabled}},"first-child":function(){return D},"last-child":function(){return O},"only-child":function(F,I){return function(M){return D(M)&&O(M)}},empty:function(F,I){return function(M){var Q=M.childNodes;for(M=M.childNodes.length-1;0<=M;M--){var aa=Q[M].nodeType;if(1===aa||3==aa)return!1}return!0}},contains:function(F,I){F=I.charAt(0);if('"'==F||"'"==F)I=I.slice(1,
-1);return function(M){return 0<=M.innerHTML.indexOf(I)}},not:function(F,I){F=a(I)[0];I={el:1};"*"!=F.tag&&(I.tag=1);F.classes.length||(I.classes=1);var M=B(F,I);return function(Q){return!M(Q)}},"nth-child":function(F,I){F=parseInt;if("odd"==I)return E;if("even"==I)return w;if(-1!=I.indexOf("n")){I=I.split("n",2);var M=I[0]?"-"==I[0]?-1:F(I[0]):1,Q=I[1]?F(I[1]):0,aa=0,ba=-1;0<M?0>Q?Q=Q%M&&M+Q%M:0<Q&&(Q>=M&&(aa=Q-Q%M),Q%=M):0>M&&(M*=-1,0<Q&&(ba=Q,Q%=M));if(0<M)return function(Z){Z=z(Z);return Z>=aa&&
(0>ba||Z<=ba)&&Z%M==Q};I=Q}var la=F(I);return function(Z){return z(Z)==la}}},H=9>A("ie")||9==A("ie")&&A("quirks")?function(F){var I=F.toLowerCase();"class"==I&&(F="className");return function(M){return h?M.getAttribute(F):M[F]||M[I]}}:function(F){return function(I){return I&&I.getAttribute&&I.hasAttribute(F)}},B=function(F,I){if(!F)return c;I=I||{};var M=null;"el"in I||(M=f(M,l));"tag"in I||"*"!=F.tag&&(M=f(M,function(Q){return Q&&(h?Q.tagName:Q.tagName.toUpperCase())==F.getTag()}));"classes"in I||
p(F.classes,function(Q,aa,ba){var la=new RegExp("(?:^|\\s)"+Q+"(?:\\s|$)");M=f(M,function(Z){return la.test(Z.className)});M.count=aa});"pseudos"in I||p(F.pseudos,function(Q){var aa=Q.name;C[aa]&&(M=f(M,C[aa](aa,Q.value)))});"attrs"in I||p(F.attrs,function(Q){var aa,ba=Q.attr;Q.type&&d[Q.type]?aa=d[Q.type](ba,Q.matchFor):ba.length&&(aa=H(ba));aa&&(M=f(M,aa))});"id"in I||F.id&&(M=f(M,function(Q){return!!Q&&Q.id==F.id}));M||"default"in I||(M=c);return M},K=function(F){return function(I,M,Q){for(;I=
I[y];)if(!u||l(I)){Q&&!ia(I,Q)||!F(I)||M.push(I);break}return M}},J=function(F){return function(I,M,Q){for(I=I[y];I;){if(v(I)){if(Q&&!ia(I,Q))break;F(I)&&M.push(I)}I=I[y]}return M}},R=function(F,I){var M=function(Q){var aa=[];try{aa=Array.prototype.slice.call(Q)}catch(Z){for(var ba=0,la=Q.length;ba<la;ba++)aa.push(Q[ba])}return aa};F=F||c;return function(Q,aa,ba){var la=0,Z=[];Z=M(Q.children||Q.childNodes);for(I&&q.forEach(Z,function(ea){1===ea.nodeType&&(Z=Z.concat(M(ea.getElementsByTagName("*"))))});Q=
Z[la++];)v(Q)&&(!ba||ia(Q,ba))&&F(Q,la)&&aa.push(Q);return aa}},V=function(F,I){for(F=F.parentNode;F&&F!=I;)F=F.parentNode;return!!F},Y={},S=function(F){var I=Y[F.query];if(I)return I;var M=F.infixOper;M=M?M.oper:"";var Q=B(F,{el:1}),aa="*"==F.tag,ba=r.doc.getElementsByClassName;if(M)ba={el:1},aa&&(ba.tag=1),Q=B(F,ba),"+"==M?I=K(Q):"~"==M?I=J(Q):"\x3e"==M&&(I=R(Q));else if(F.id)Q=!F.loops&&aa?c:B(F,{el:1,id:1}),I=function(Z,ea){var pa=b.byId(F.id,Z.ownerDocument||Z);Z.ownerDocument&&!V(Z,Z.ownerDocument)&&
q.some(11===Z.nodeType?Z.childNodes:[Z],function(ma){ma=R(function(ua){return ua.id===F.id},!0)(ma,[]);if(ma.length)return pa=ma[0],!1});if(pa&&Q(pa)&&(9==Z.nodeType||V(pa,Z)))return e(pa,ea)};else if(ba&&/\{\s*\[native code\]\s*\}/.test(String(ba))&&F.classes.length&&!t){Q=B(F,{el:1,classes:1,id:1});var la=F.classes.join(" ");I=function(Z,ea,pa){ea=e(0,ea);for(var ma,ua=0,sa=Z.getElementsByClassName(la);ma=sa[ua++];)Q(ma,Z)&&ia(ma,pa)&&ea.push(ma);return ea}}else aa||F.loops?(Q=B(F,{el:1,tag:1,id:1}),
I=function(Z,ea,pa){ea=e(0,ea);for(var ma,ua=0,sa=(ma=F.getTag())?Z.getElementsByTagName(ma):[];ma=sa[ua++];)Q(ma,Z)&&ia(ma,pa)&&ea.push(ma);return ea}):I=function(Z,ea,pa){ea=e(0,ea);var ma=0,ua=F.getTag();for(ua=ua?Z.getElementsByTagName(ua):[];Z=ua[ma++];)ia(Z,pa)&&ea.push(Z);return ea};return Y[F.query]=I},U={},L={},T=function(F){var I=a(m(F));if(1==I.length){var M=S(I[0]);return function(Q){if(Q=M(Q,[]))Q.nozip=!0;return Q}}return function(Q){Q=e(Q);for(var aa,ba,la=I.length,Z,ea,pa=0;pa<la;pa++){ea=
[];aa=I[pa];ba=Q.length-1;0<ba&&(Z={},ea.nozip=!0);ba=S(aa);for(var ma=0;aa=Q[ma];ma++)ba(aa,ea,Z);if(!ea.length)break;Q=ea}return ea}},da=A("ie")?"commentStrip":"nozip",ha=!!r.doc.querySelectorAll,ca=/\\[>~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g,qa=function(F,I,M,Q){return M?(I?I+" ":"")+M+(Q?" "+Q:""):F},ta=/([^[]*)([^\]]*])?/g,oa=function(F,I,M){return I.replace(ca,qa)+(M||"")},va=function(F,I){F=F.replace(ta,oa);if(ha){var M=L[F];if(M&&!I)return M}if(M=U[F])return M;M=F.charAt(0);var Q=-1==F.indexOf(" ");
0<=F.indexOf("#")&&Q&&(I=!0);if(!ha||I||-1!="\x3e~+".indexOf(M)||A("ie")&&-1!=F.indexOf(":")||t&&0<=F.indexOf(".")||-1!=F.indexOf(":contains")||-1!=F.indexOf(":checked")||-1!=F.indexOf("|\x3d")){var aa=F.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return U[F]=2>aa.length?T(F):function(la){for(var Z=0,ea=[],pa;pa=aa[Z++];)ea=ea.concat(T(pa)(la));return ea}}var ba=0<="\x3e~+".indexOf(F.charAt(F.length-1))?F+" *":F;return L[F]=function(la){if(9==la.nodeType||Q)try{var Z=la.querySelectorAll(ba);
Z[da]=!0;return Z}catch(ea){}return va(F,!0)(la)}},na=0,ra=A("ie")?function(F){return h?F.getAttribute("_uid")||F.setAttribute("_uid",++na)||na:F.uniqueID}:function(F){return F._uid||(F._uid=++na)},ia=function(F,I){if(!I)return 1;F=ra(F);return I[F]?0:I[F]=1},wa=function(F){if(F&&F.nozip)return F;if(!F||!F.length)return[];if(2>F.length)return[F[0]];var I=[];na++;var M,Q;if(A("ie")&&h){var aa=na+"";for(M=0;M<F.length;M++)(Q=F[M])&&Q.getAttribute("_zipIdx")!=aa&&(I.push(Q),Q.setAttribute("_zipIdx",
aa))}else if(A("ie")&&F.commentStrip)try{for(M=0;M<F.length;M++)(Q=F[M])&&l(Q)&&I.push(Q)}catch(ba){}else for(M=0;M<F.length;M++)(Q=F[M])&&Q._zipIdx!=na&&(I.push(Q),Q._zipIdx=na);return I},ya=function(F,I){I=I||r.doc;h="div"===(I.ownerDocument||I).createElement("div").tagName;return(F=va(F)(I))&&F.nozip?F:wa(F)};ya.filter=function(F,I,M){var Q=[],aa=a(I);aa=1!=aa.length||/[^\w#\.]/.test(I)?function(Z){return-1!=q.indexOf(ya(I,b.byId(M)),Z)}:B(aa[0]);for(var ba=0,la;la=F[ba];ba++)aa(la)&&Q.push(la);
return Q};return ya})},"dojo/NodeList-dom":function(){define("./_base/kernel ./query ./_base/array ./_base/lang ./dom-class ./dom-construct ./dom-geometry ./dom-attr ./dom-style".split(" "),function(b,A,q,x,r,m,p,t,h){function c(u){return function(y,n,v){return 2==arguments.length?u["string"==typeof n?"get":"set"](y,n):u.set(y,n,v)}}var a=function(u){return 1==u.length&&"string"==typeof u[0]},f=function(u){var y=u.parentNode;y&&y.removeChild(u)},e=A.NodeList,l=e._adaptWithCondition,k=e._adaptAsForEach,
d=e._adaptAsMap;x.extend(e,{_normalize:function(u,y){var n=!0===u.parse;if("string"==typeof u.template){var v=u.templateFunc||b.string&&b.string.substitute;u=v?v(u.template,u):u}v=typeof u;"string"==v||"number"==v?(u=m.toDom(u,y&&y.ownerDocument),u=11==u.nodeType?x._toArray(u.childNodes):[u]):x.isArrayLike(u)?x.isArray(u)||(u=x._toArray(u)):u=[u];n&&(u._runParse=!0);return u},_cloneNode:function(u){return u.cloneNode(!0)},_place:function(u,y,n,v){if(1==y.nodeType||"only"!=n)for(var D,O=u.length,z=
O-1;0<=z;z--){var w=v?this._cloneNode(u[z]):u[z];if(u._runParse&&b.parser&&b.parser.parse)for(D||(D=y.ownerDocument.createElement("div")),D.appendChild(w),b.parser.parse(D),w=D.firstChild;D.firstChild;)D.removeChild(D.firstChild);z==O-1?m.place(w,y,n):y.parentNode.insertBefore(w,y);y=w}},position:d(p.position),attr:l(c(t),a),style:l(c(h),a),addClass:k(r.add),removeClass:k(r.remove),toggleClass:k(r.toggle),replaceClass:k(r.replace),empty:k(m.empty),removeAttr:k(t.remove),marginBox:d(p.getMarginBox),
place:function(u,y){var n=A(u)[0];return this.forEach(function(v){m.place(v,n,y)})},orphan:function(u){return(u?A._filterResult(this,u):this).forEach(f)},adopt:function(u,y){return A(u).place(this[0],y)._stash(this)},query:function(u){if(!u)return this;var y=new e;this.map(function(n){A(u,n).forEach(function(v){void 0!==v&&y.push(v)})});return y._stash(this)},filter:function(u){var y=arguments,n=this,v=0;if("string"==typeof u){n=A._filterResult(this,y[0]);if(1==y.length)return n._stash(this);v=1}return this._wrap(q.filter(n,
y[v],y[v+1]),this)},addContent:function(u,y){u=this._normalize(u,this[0]);for(var n=0,v;v=this[n];n++)u.length?this._place(u,v,y,0<n):m.empty(v);return this}});return e})},"dojo/_base/fx":function(){define("./kernel ./config ./lang ../Evented ./Color ../aspect ../sniff ../dom ../dom-style".split(" "),function(b,A,q,x,r,m,p,t,h){var c=q.mixin,a={},f=a._Line=function(n,v){this.start=n;this.end=v};f.prototype.getValue=function(n){return(this.end-this.start)*n+this.start};var e=a.Animation=function(n){c(this,
n);q.isArray(this.curve)&&(this.curve=new f(this.curve[0],this.curve[1]))};e.prototype=new x;q.extend(e,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var n=this._percent,v=this.easing;return v?v(n):n},_fire:function(n,v){v=v||[];if(this[n])if(A.debugAtAllCosts)this[n].apply(this,v);else try{this[n].apply(this,v)}catch(D){console.error("exception in animation handler for:",n),console.error(D)}return this},play:function(n,v){this._delayTimer&&this._clearTimer();if(v)this._stopTimer(),
this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);n=n||this.delay;v=q.hitch(this,"_play",v);if(0<n)return this._delayTimer=setTimeout(v,n),this;v();return this},_play:function(n){this._delayTimer&&this._clearTimer();this._startTime=(new Date).valueOf();this._paused&&(this._startTime-=this.duration*this._percent);this._active=!0;this._paused=!1;n=this.curve.getValue(this._getStep());this._percent||(this._startRepeatCount||
(this._startRepeatCount=this.repeat),this._fire("onBegin",[n]));this._fire("onPlay",[n]);this._cycle();return this},pause:function(){this._delayTimer&&this._clearTimer();this._stopTimer();if(!this._active)return this;this._paused=!0;this._fire("onPause",[this.curve.getValue(this._getStep())]);return this},gotoPercent:function(n,v){this._stopTimer();this._active=this._paused=!0;this._percent=n;v&&this.play();return this},stop:function(n){this._delayTimer&&this._clearTimer();if(!this._timer)return this;
this._stopTimer();n&&(this._percent=1);this._fire("onStop",[this.curve.getValue(this._getStep())]);this._active=this._paused=!1;return this},destroy:function(){this.stop()},status:function(){return this._active?this._paused?"paused":"playing":"stopped"},_cycle:function(){if(this._active){var n=(new Date).valueOf();n=0===this.duration?1:(n-this._startTime)/this.duration;1<=n&&(n=1);this._percent=n;this.easing&&(n=this.easing(n));this._fire("onAnimate",[this.curve.getValue(n)]);1>this._percent?this._startTimer():
(this._active=!1,0<this.repeat?(this.repeat--,this.play(null,!0)):-1==this.repeat?this.play(null,!0):this._startRepeatCount&&(this.repeat=this._startRepeatCount,this._startRepeatCount=0),this._percent=0,this._fire("onEnd",[this.node]),!this.repeat&&this._stopTimer())}return this},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer}});var l=0,k=null,d={run:function(){}};q.extend(e,{_startTimer:function(){this._timer||(this._timer=m.after(d,"run",q.hitch(this,"_cycle"),!0),
l++);k||(k=setInterval(q.hitch(d,"run"),this.rate))},_stopTimer:function(){this._timer&&(this._timer.remove(),this._timer=null,l--);0>=l&&(clearInterval(k),k=null,l=0)}});var u=p("ie")?function(n){var v=n.style;v.width.length||"auto"!=h.get(n,"width")||(v.width="auto")}:function(){};a._fade=function(n){n.node=t.byId(n.node);var v=c({properties:{}},n);n=v.properties.opacity={};n.start="start"in v?v.start:function(){return+h.get(v.node,"opacity")||0};n.end=v.end;n=a.animateProperty(v);m.after(n,"beforeBegin",
q.partial(u,v.node),!0);return n};a.fadeIn=function(n){return a._fade(c({end:1},n))};a.fadeOut=function(n){return a._fade(c({end:0},n))};a._defaultEasing=function(n){return.5+Math.sin((n+1.5)*Math.PI)/2};var y=function(n){this._properties=n;for(var v in n){var D=n[v];D.start instanceof r&&(D.tempColor=new r)}};y.prototype.getValue=function(n){var v={},D;for(D in this._properties){var O=this._properties[D],z=O.start;z instanceof r?v[D]=r.blendColors(z,O.end,n,O.tempColor).toCss():q.isArray(z)||(v[D]=
(O.end-z)*n+z+("opacity"!=D?O.units||"px":0))}return v};a.animateProperty=function(n){var v=n.node=t.byId(n.node);n.easing||(n.easing=b._defaultEasing);n=new e(n);m.after(n,"beforeBegin",q.hitch(n,function(){var D={},O;for(O in this.properties){if("width"==O||"height"==O)this.node.display="block";var z=this.properties[O];q.isFunction(z)&&(z=z(v));z=D[O]=c({},q.isObject(z)?z:{end:z});q.isFunction(z.start)&&(z.start=z.start(v));q.isFunction(z.end)&&(z.end=z.end(v));var w=0<=O.toLowerCase().indexOf("color"),
E=function(C,H){var B={height:C.offsetHeight,width:C.offsetWidth}[H];if(void 0!==B)return B;B=h.get(C,H);return"opacity"==H?+B:w?B:parseFloat(B)};"end"in z?"start"in z||(z.start=E(v,O)):z.end=E(v,O);w?(z.start=new r(z.start),z.end=new r(z.end)):z.start="opacity"==O?+z.start:parseFloat(z.start)}this.curve=new y(D)}),!0);m.after(n,"onAnimate",q.hitch(h,"set",n.node),!0);return n};a.anim=function(n,v,D,O,z,w){return a.animateProperty({node:n,duration:D||e.prototype.duration,properties:v,easing:O,onEnd:z}).play(w||
0)};c(b,a);b._Animation=e;return a})},"*noref":1}});(function(){var b=this.require;b({cache:{}});!b.async&&b(["dojo"]);b.boot&&b.apply(null,b.boot)})();// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/3.39/esri/copyright.txt for details.
//>>built
/*
 @esri/arcgis-html-sanitizer - v2.9.0-next.1 - Tue Oct 19 2021 10:19:42 GMT-0400 (Eastern Daylight Time)
 Copyright (c) 2021 - Environmental Systems Research Institute, Inc.
 Apache-2.0

 js-xss
 Copyright (c) 2012-2017 Zongmin Lei(雷宗民) <leizongmin@gmail.com>
 http://ucdok.com
 MIT License, see https://github.com/leizongmin/js-xss/blob/master/LICENSE for details

 Lodash/isPlainObject
 Copyright (c) JS Foundation and other contributors <https://js.foundation/>
 MIT License, see https://raw.githubusercontent.com/lodash/lodash/4.17.10-npm/LICENSE for details
*/
require({cache:{"dojo/fx/Toggler":function(){define(["../_base/lang","../_base/declare","../_base/fx","../aspect"],function(E,z,b,w){return z("dojo.fx.Toggler",null,{node:null,showFunc:b.fadeIn,hideFunc:b.fadeOut,showDuration:200,hideDuration:200,constructor:function(p){E.mixin(this,p);this.node=p.node;this._showArgs=E.mixin({},p);this._showArgs.node=this.node;this._showArgs.duration=this.showDuration;this.showAnim=this.showFunc(this._showArgs);this._hideArgs=E.mixin({},p);this._hideArgs.node=this.node;
this._hideArgs.duration=this.hideDuration;this.hideAnim=this.hideFunc(this._hideArgs);w.after(this.showAnim,"beforeBegin",E.hitch(this.hideAnim,"stop",!0),!0);w.after(this.hideAnim,"beforeBegin",E.hitch(this.showAnim,"stop",!0),!0)},show:function(p){return this.showAnim.play(p||0)},hide:function(p){return this.hideAnim.play(p||0)}})})},"dijit/_base":function(){define("./main ./a11y ./WidgetSet ./_base/focus ./_base/manager ./_base/place ./_base/popup ./_base/scroll ./_base/sniff ./_base/typematic ./_base/wai ./_base/window".split(" "),
function(E){return E._base})},"dijit/main":function(){define(["dojo/_base/kernel"],function(E){return E.dijit})},"dijit/a11y":function(){define("dojo/_base/array dojo/dom dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/sniff ./main".split(" "),function(E,z,b,w,p,n,l){var q={_isElementShown:function(f){var c=w.get(f);return"hidden"!=c.visibility&&"collapsed"!=c.visibility&&"none"!=c.display&&"hidden"!=b.get(f,"type")},hasDefaultTabStop:function(f){switch(f.nodeName.toLowerCase()){case "a":return b.has(f,
"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return!0;case "iframe":try{var c=f.contentDocument;if("designMode"in c&&"on"==c.designMode)return!0;var a=c.body}catch(d){try{a=f.contentWindow.document.body}catch(e){return!1}}return a&&("true"==a.contentEditable||a.firstChild&&"true"==a.firstChild.contentEditable);default:return"true"==f.contentEditable}},effectiveTabIndex:function(f){if(!b.get(f,"disabled"))return b.has(f,"tabIndex")?+b.get(f,"tabIndex"):
q.hasDefaultTabStop(f)?0:void 0},isTabNavigable:function(f){return 0<=q.effectiveTabIndex(f)},isFocusable:function(f){return-1<=q.effectiveTabIndex(f)},_getTabNavigable:function(f){function c(t){return t&&"input"==t.tagName.toLowerCase()&&t.type&&"radio"==t.type.toLowerCase()&&t.name&&t.name.toLowerCase()}function a(t){return x[c(t)]||t}var d,e,h,m,g,k,x={},v=q._isElementShown,y=q.effectiveTabIndex,u=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(!(1!=t.nodeType||9>=n("ie")&&"HTML"!==t.scopeName)&&
v(t)){var r=y(t);if(0<=r){if(0==r)d||(d=t),e=t;else if(0<r){if(!h||r<m)m=r,h=t;if(!g||r>=k)k=r,g=t}r=c(t);b.get(t,"checked")&&r&&(x[r]=t)}"SELECT"!=t.nodeName.toUpperCase()&&u(t)}};v(f)&&u(f);return{first:a(d),last:a(e),lowest:a(h),highest:a(g)}},getFirstInTabbingOrder:function(f,c){f=q._getTabNavigable(z.byId(f,c));return f.lowest?f.lowest:f.first},getLastInTabbingOrder:function(f,c){f=q._getTabNavigable(z.byId(f,c));return f.last?f.last:f.highest}};p.mixin(l,q);return q})},"dijit/WidgetSet":function(){define(["dojo/_base/array",
"dojo/_base/declare","dojo/_base/kernel","./registry"],function(E,z,b,w){var p=z("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0},add:function(n){if(this._hash[n.id])throw Error("Tried to register widget with id\x3d\x3d"+n.id+" but that id is already registered");this._hash[n.id]=n;this.length++},remove:function(n){this._hash[n]&&(delete this._hash[n],this.length--)},forEach:function(n,l){l=l||b.global;var q=0,f;for(f in this._hash)n.call(l,this._hash[f],q++,this._hash);
return this},filter:function(n,l){l=l||b.global;var q=new p,f=0,c;for(c in this._hash){var a=this._hash[c];n.call(l,a,f++,this._hash)&&q.add(a)}return q},byId:function(n){return this._hash[n]},byClass:function(n){var l=new p,q;for(q in this._hash){var f=this._hash[q];f.declaredClass==n&&l.add(f)}return l},toArray:function(){var n=[],l;for(l in this._hash)n.push(this._hash[l]);return n},map:function(n,l){return E.map(this.toArray(),n,l)},every:function(n,l){l=l||b.global;var q=0,f;for(f in this._hash)if(!n.call(l,
this._hash[f],q++,this._hash))return!1;return!0},some:function(n,l){l=l||b.global;var q=0,f;for(f in this._hash)if(n.call(l,this._hash[f],q++,this._hash))return!0;return!1}});E.forEach("forEach filter byClass map every some".split(" "),function(n){w[n]=p.prototype[n]});return p})},"dijit/registry":function(){define(["dojo/_base/array","dojo/_base/window","./main"],function(E,z,b){var w={},p={},n={length:0,add:function(l){if(p[l.id])throw Error("Tried to register widget with id\x3d\x3d"+l.id+" but that id is already registered");
p[l.id]=l;this.length++},remove:function(l){p[l]&&(delete p[l],this.length--)},byId:function(l){return"string"==typeof l?p[l]:l},byNode:function(l){return p[l.getAttribute("widgetId")]},toArray:function(){var l=[],q;for(q in p)l.push(p[q]);return l},getUniqueId:function(l){do var q=l+"_"+(l in w?++w[l]:w[l]=0);while(p[q]);return"dijit"==b._scopeName?q:b._scopeName+"_"+q},findWidgets:function(l,q){function f(a){for(a=a.firstChild;a;a=a.nextSibling)if(1==a.nodeType){var d=a.getAttribute("widgetId");
d?(d=p[d])&&c.push(d):a!==q&&f(a)}}var c=[];f(l);return c},_destroyAll:function(){b._curFocus=null;b._prevFocus=null;b._activeStack=[];E.forEach(n.findWidgets(z.body()),function(l){l._destroyed||(l.destroyRecursive?l.destroyRecursive():l.destroy&&l.destroy())})},getEnclosingWidget:function(l){for(;l;){var q=1==l.nodeType&&l.getAttribute("widgetId");if(q)return p[q];l=l.parentNode}return null},_hash:p};return b.registry=n})},"dijit/_base/focus":function(){define("dojo/_base/array dojo/dom dojo/_base/lang dojo/topic dojo/_base/window ../focus ../selection ../main".split(" "),
function(E,z,b,w,p,n,l,q){n.focus=function(f){if(f){var c="node"in f?f.node:f,a=f.bookmark;f=f.openedForWindow;var d=a?a.isCollapsed:!1;if(c){var e="iframe"==c.tagName.toLowerCase()?c.contentWindow:c;if(e&&e.focus)try{e.focus()}catch(h){}n._onFocusNode(c)}if(a&&p.withGlobal(f||p.global,q.isCollapsed)&&!d){f&&f.focus();try{p.withGlobal(f||p.global,q.moveToBookmark,null,[a])}catch(h){}}}};n.watch("curNode",function(f,c,a){q._curFocus=a;q._prevFocus=c;a&&w.publish("focusNode",a)});n.watch("activeStack",
function(f,c,a){q._activeStack=a});n.on("widget-blur",function(f,c){w.publish("widgetBlur",f,c)});n.on("widget-focus",function(f,c){w.publish("widgetFocus",f,c)});b.mixin(q,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return q.getBookmark().isCollapsed},getBookmark:function(){return(p.global==window?l:new l.SelectionManager(p.global)).getBookmark()},moveToBookmark:function(f){return(p.global==window?l:new l.SelectionManager(p.global)).moveToBookmark(f)},getFocus:function(f,c){f=!n.curNode||
f&&z.isDescendant(n.curNode,f.domNode)?q._prevFocus:n.curNode;return{node:f,bookmark:f&&f==n.curNode&&p.withGlobal(c||p.global,q.getBookmark),openedForWindow:c}},_activeStack:[],registerIframe:function(f){return n.registerIframe(f)},unregisterIframe:function(f){f&&f.remove()},registerWin:function(f,c){return n.registerWin(f,c)},unregisterWin:function(f){f&&f.remove()}});return q})},"dijit/focus":function(){define("dojo/aspect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/Evented dojo/_base/lang dojo/on dojo/domReady dojo/sniff dojo/Stateful dojo/_base/window dojo/window ./a11y ./registry ./main".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k){var x,v,y=new (z([d,l],{curNode:null,activeStack:[],constructor:function(){var t=q.hitch(this,function(r){b.isDescendant(this.curNode,r)&&this.set("curNode",null);b.isDescendant(this.prevNode,r)&&this.set("prevNode",null)});E.before(n,"empty",t);E.before(n,"destroy",t)},registerIframe:function(t){return this.registerWin(t.contentWindow,t)},registerWin:function(t,r){var B=this,C=t.document&&t.document.body;if(C){var F=a("pointer-events")?"pointerdown":a("MSPointer")?
"MSPointerDown":a("touch-events")?"mousedown, touchstart":"mousedown",A=f(t.document,F,function(H){H&&H.target&&null==H.target.parentNode||B._onTouchNode(r||H.target,"mouse")}),D=f(C,"focusin",function(H){if(H.target.tagName){var L=H.target.tagName.toLowerCase();"#document"!=L&&"body"!=L&&(m.isFocusable(H.target)?B._onFocusNode(r||H.target):B._onTouchNode(r||H.target))}}),G=f(C,"focusout",function(H){B._onBlurNode(r||H.target)});return{remove:function(){A.remove();D.remove();G.remove();C=A=D=G=null}}}},
_onBlurNode:function(t){t=(new Date).getTime();t<x+100||(this._clearFocusTimer&&clearTimeout(this._clearFocusTimer),this._clearFocusTimer=setTimeout(q.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null)}),0),this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),t<v+100||(this._clearActiveWidgetsTimer=setTimeout(q.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([])}),0)))},_onTouchNode:function(t,r){v=(new Date).getTime();
this._clearActiveWidgetsTimer&&(clearTimeout(this._clearActiveWidgetsTimer),delete this._clearActiveWidgetsTimer);p.contains(t,"dijitPopup")&&(t=t.firstChild);var B=[];try{for(;t;){var C=w.get(t,"dijitPopupParent");if(C)t=g.byId(C).domNode;else if(t.tagName&&"body"==t.tagName.toLowerCase()){if(t===e.body())break;t=h.get(t.ownerDocument).frameElement}else{var F=t.getAttribute&&t.getAttribute("widgetId"),A=F&&g.byId(F);!A||"mouse"==r&&A.get("disabled")||B.unshift(F);t=t.parentNode}}}catch(D){}this._setStack(B,
r)},_onFocusNode:function(t){t&&9!=t.nodeType&&(x=(new Date).getTime(),this._clearFocusTimer&&(clearTimeout(this._clearFocusTimer),delete this._clearFocusTimer),this._onTouchNode(t),t!=this.curNode&&(this.set("prevNode",this.curNode),this.set("curNode",t)))},_setStack:function(t,r){var B=this.activeStack,C=B.length-1,F=t.length-1;if(t[F]!=B[C]){this.set("activeStack",t);var A;for(A=C;0<=A&&B[A]!=t[A];A--)if(C=g.byId(B[A]))C._hasBeenBlurred=!0,C.set("focused",!1),C._focusManager==this&&C._onBlur(r),
this.emit("widget-blur",C,r);for(A++;A<=F;A++)if(C=g.byId(t[A]))C.set("focused",!0),C._focusManager==this&&C._onFocus(r),this.emit("widget-focus",C,r)}},focus:function(t){if(t)try{t.focus()}catch(r){}}}));c(function(){var t=y.registerWin(h.get(document));a("ie")&&f(window,"unload",function(){t&&(t.remove(),t=null)})});k.focus=function(t){y.focus(t)};for(var u in y)/^_/.test(u)||(k.focus[u]="function"==typeof y[u]?q.hitch(y,u):y[u]);y.watch(function(t,r,B){k.focus[t]=B});return y})},"dojo/Stateful":function(){define(["./_base/declare",
"./_base/lang","./_base/array","./when"],function(E,z,b,w){return E("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(p){var n=this._attrPairNames;return n[p]?n[p]:n[p]={s:"_"+p+"Setter",g:"_"+p+"Getter"}},postscript:function(p){p&&this.set(p)},_get:function(p,n){return"function"===typeof this[n.g]?this[n.g]():this[p]},get:function(p){return this._get(p,this._getAttrNames(p))},set:function(p,n){if("object"===typeof p){for(var l in p)p.hasOwnProperty(l)&&"_watchCallbacks"!=l&&this.set(l,
p[l]);return this}l=this._getAttrNames(p);var q=this._get(p,l);l=this[l.s];var f;"function"===typeof l?f=l.apply(this,Array.prototype.slice.call(arguments,1)):this[p]=n;if(this._watchCallbacks){var c=this;w(f,function(){c._watchCallbacks(p,q,n)})}return this},_changeAttrValue:function(p,n){var l=this.get(p);this[p]=n;this._watchCallbacks&&this._watchCallbacks(p,l,n);return this},watch:function(p,n){var l=this._watchCallbacks;if(!l){var q=this;l=this._watchCallbacks=function(c,a,d,e){var h=function(m){if(m){m=
m.slice();for(var g=0,k=m.length;g<k;g++)m[g].call(q,c,a,d)}};h(l["_"+c]);e||h(l["*"])}}n||"function"!==typeof p?p="_"+p:(n=p,p="*");var f=l[p];"object"!==typeof f&&(f=l[p]=[]);f.push(n);p={};p.unwatch=p.remove=function(){var c=b.indexOf(f,n);-1<c&&f.splice(c,1)};return p}})})},"dojo/window":function(){define("./_base/lang ./sniff ./_base/window ./dom ./dom-geometry ./dom-style ./dom-construct".split(" "),function(E,z,b,w,p,n,l){z.add("rtl-adjust-position-for-verticalScrollBar",function(f,c){f=b.body(c);
c=l.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},f,"last");var a=l.create("div",{style:{overflow:"hidden",direction:"ltr"}},c,"last"),d=0!=p.position(a).x;c.removeChild(a);f.removeChild(c);return d});z.add("position-fixed-support",function(f,c){f=b.body(c);c=l.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},f,"last");var a=l.create("span",{style:{position:"fixed",
left:"0",top:"0"}},c,"last"),d=p.position(a).x!=p.position(c).x;c.removeChild(a);f.removeChild(c);return d});var q={getBox:function(f){f=f||b.doc;var c="BackCompat"==f.compatMode?b.body(f):f.documentElement,a=p.docScroll(f);if(z("touch")){var d=q.get(f);f=d.innerWidth||c.clientWidth;c=d.innerHeight||c.clientHeight}else f=c.clientWidth,c=c.clientHeight;return{l:a.x,t:a.y,w:f,h:c}},get:function(f){if(z("ie")&&q!==document.parentWindow){f.parentWindow.execScript("document._parentWindow \x3d window;",
"Javascript");var c=f._parentWindow;f._parentWindow=null;return c}return f.parentWindow||f.defaultView},scrollIntoView:function(f,c){try{f=w.byId(f);var a=f.ownerDocument||b.doc,d=b.body(a),e=a.documentElement||d.parentNode,h=z("ie")||z("trident"),m=z("webkit");if(f!=d&&f!=e)if(!(z("mozilla")||h||m||z("opera")||z("trident")||z("edge"))&&"scrollIntoView"in f)f.scrollIntoView(!1);else{var g="BackCompat"==a.compatMode,k=Math.min(d.clientWidth||e.clientWidth,e.clientWidth||d.clientWidth),x=Math.min(d.clientHeight||
e.clientHeight,e.clientHeight||d.clientHeight);a=m||g?d:e;var v=c||p.position(f),y=f.parentNode;c=function(ha){return 6>=h||7==h&&g?!1:z("position-fixed-support")&&"fixed"==n.get(ha,"position").toLowerCase()};var u=this;m=function(ha,ia,ba){"BODY"==ha.tagName||"HTML"==ha.tagName?u.get(ha.ownerDocument).scrollBy(ia,ba):(ia&&(ha.scrollLeft+=ia),ba&&(ha.scrollTop+=ba))};if(!c(f))for(;y;){y==d&&(y=a);var t=p.position(y),r=c(y),B="rtl"==n.getComputedStyle(y).direction.toLowerCase();if(y==a)t.w=k,t.h=x,
a==e&&(h||z("trident"))&&B&&(t.x+=a.offsetWidth-t.w),t.x=0,t.y=0;else{var C=p.getPadBorderExtents(y);t.w-=C.w;t.h-=C.h;t.x+=C.l;t.y+=C.t;var F=y.clientWidth,A=t.w-F;0<F&&0<A&&(B&&z("rtl-adjust-position-for-verticalScrollBar")&&(t.x+=A),t.w=F);F=y.clientHeight;A=t.h-F;0<F&&0<A&&(t.h=F)}r&&(0>t.y&&(t.h+=t.y,t.y=0),0>t.x&&(t.w+=t.x,t.x=0),t.y+t.h>x&&(t.h=x-t.y),t.x+t.w>k&&(t.w=k-t.x));var D=v.x-t.x,G=v.y-t.y,H=D+v.w-t.w,L=G+v.h-t.h;if(0<H*D&&(y.scrollLeft||y==a||y.scrollWidth>y.offsetHeight)){var aa=
Math[0>D?"max":"min"](D,H);B&&(8==h&&!g||5<=z("trident"))&&(aa=-aa);var da=y.scrollLeft;m(y,aa,0);aa=y.scrollLeft-da;v.x-=aa}0<L*G&&(y.scrollTop||y==a||y.scrollHeight>y.offsetHeight)&&(aa=Math.ceil(Math[0>G?"max":"min"](G,L)),da=y.scrollTop,m(y,0,aa),aa=y.scrollTop-da,v.y-=aa);y=y!=a&&!r&&y.parentNode}}}catch(ha){console.error("scrollIntoView: "+ha),f.scrollIntoView(!1)}}};E.setObject("dojo.window",q);return q})},"dijit/selection":function(){define("dojo/_base/array dojo/dom dojo/_base/lang dojo/sniff dojo/_base/window dijit/focus".split(" "),
function(E,z,b,w,p,n){var l=function(f){var c=f.document;this.getType=function(){if(c.getSelection){var a="text";try{var d=f.getSelection()}catch(e){}d&&1==d.rangeCount&&(d=d.getRangeAt(0),d.startContainer==d.endContainer&&1==d.endOffset-d.startOffset&&3!=d.startContainer.nodeType&&(a="control"));return a}return c.selection.type.toLowerCase()};this.getSelectedText=function(){if(c.getSelection){var a=f.getSelection();return a?a.toString():""}return"control"==this.getType()?null:c.selection.createRange().text};
this.getSelectedHtml=function(){if(c.getSelection){var a=f.getSelection();if(a&&a.rangeCount){var d,e="";for(d=0;d<a.rangeCount;d++){var h=a.getRangeAt(d).cloneContents(),m=c.createElement("div");m.appendChild(h);e+=m.innerHTML}return e}return null}return"control"==this.getType()?null:c.selection.createRange().htmlText};this.getSelectedElement=function(){if("control"==this.getType()){if(c.getSelection){var a=f.getSelection();return a.anchorNode.childNodes[a.anchorOffset]}if((a=c.selection.createRange())&&
a.item)return c.selection.createRange().item(0)}return null};this.getParentElement=function(){if("control"==this.getType()){var a=this.getSelectedElement();if(a)return a.parentNode}else if(c.getSelection){if(a=c.getSelection()){for(a=a.anchorNode;a&&1!=a.nodeType;)a=a.parentNode;return a}}else return a=c.selection.createRange(),a.collapse(!0),a.parentElement();return null};this.hasAncestorElement=function(a){return null!=this.getAncestorElement.apply(this,arguments)};this.getAncestorElement=function(a){var d=
this.getSelectedElement()||this.getParentElement();return this.getParentOfType(d,arguments)};this.isTag=function(a,d){if(a&&a.tagName){a=a.tagName.toLowerCase();for(var e=0;e<d.length;e++){var h=String(d[e]).toLowerCase();if(a==h)return h}}return""};this.getParentOfType=function(a,d){for(;a;){if(this.isTag(a,d).length)return a;a=a.parentNode}return null};this.collapse=function(a){if(c.getSelection){var d=f.getSelection();d.removeAllRanges?a?d.collapseToStart():d.collapseToEnd():d.collapse(a)}else d=
c.selection.createRange(),d.collapse(a),d.select()};this.remove=function(){var a=c.selection;c.getSelection?(a=f.getSelection(),a.deleteFromDocument()):"none"!=a.type.toLowerCase()&&a.clear();return a};this.selectElementChildren=function(a,d){a=z.byId(a);if(c.getSelection)if(d=f.getSelection(),w("opera")){var e=d.rangeCount?d.getRangeAt(0):c.createRange();e.setStart(a,0);e.setEnd(a,3==a.nodeType?a.length:a.childNodes.length);d.addRange(e)}else d.selectAllChildren(a);else if(e=a.ownerDocument.body.createTextRange(),
e.moveToElementText(a),!d)try{e.select()}catch(h){}};this.selectElement=function(a,d){a=z.byId(a);if(c.getSelection){d=c.getSelection();var e=c.createRange();d.removeAllRanges&&(w("opera")&&d.getRangeAt(0)&&(e=d.getRangeAt(0)),e.selectNode(a),d.removeAllRanges(),d.addRange(e))}else try{var h=a.tagName?a.tagName.toLowerCase():"";e="img"===h||"table"===h?p.body(c).createControlRange():p.body(c).createRange();e.addElement(a);d||e.select()}catch(m){this.selectElementChildren(a,d)}};this.inSelection=function(a){if(a){var d;
if(c.getSelection){var e=f.getSelection();e&&0<e.rangeCount&&(d=e.getRangeAt(0));if(d&&d.compareBoundaryPoints&&c.createRange)try{var h=c.createRange();h.setStart(a,0);if(1===d.compareBoundaryPoints(d.START_TO_END,h))return!0}catch(m){}}else{d=c.selection.createRange();try{h=a.ownerDocument.body.createTextRange(),h.moveToElementText(a)}catch(m){}if(d&&h&&1===d.compareEndPoints("EndToStart",h))return!0}}return!1};this.getBookmark=function(){var a,d=c.selection,e=n.curNode;if(c.getSelection){if(d=f.getSelection())if(d.isCollapsed){if(a=
e?e.tagName:"")if(a=a.toLowerCase(),"textarea"==a||"input"==a&&(!e.type||"text"==e.type.toLowerCase()))return d={start:e.selectionStart,end:e.selectionEnd,node:e,pRange:!0},{isCollapsed:d.end<=d.start,mark:d};a={isCollapsed:!0};d.rangeCount&&(a.mark=d.getRangeAt(0).cloneRange())}else{var h=d.getRangeAt(0);a={isCollapsed:!1,mark:h.cloneRange()}}}else if(d){a=e?e.tagName:"";a=a.toLowerCase();if(e&&a&&("button"==a||"textarea"==a||"input"==a)){if(d.type&&"none"==d.type.toLowerCase())return{isCollapsed:!0,
mark:null};h=d.createRange();return{isCollapsed:h.text&&h.text.length?!1:!0,mark:{range:h,pRange:!0}}}a={};try{h=d.createRange(),a.isCollapsed=!("Text"==d.type?h.htmlText.length:h.length)}catch(m){return a.isCollapsed=!0,a}if("CONTROL"==d.type.toUpperCase())if(h.length)for(a.mark=[],d=0,e=h.length;d<e;)a.mark.push(h.item(d++));else a.isCollapsed=!0,a.mark=null;else a.mark=h.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return a};this.moveToBookmark=
function(a){if(a=a.mark)if(c.getSelection){var d=f.getSelection();d&&d.removeAllRanges?a.pRange?(d=a.node,d.selectionStart=a.start,d.selectionEnd=a.end):(d.removeAllRanges(),d.addRange(a)):console.warn("No idea how to restore selection for this browser!")}else if(c.selection&&a){if(a.pRange)var e=a.range;else b.isArray(a)?(e=c.body.createControlRange(),E.forEach(a,function(h){e.addElement(h)})):(e=c.body.createTextRange(),e.moveToBookmark(a));e.select()}};this.isCollapsed=function(){return this.getBookmark().isCollapsed}},
q=new l(window);q.SelectionManager=l;return q})},"dijit/_base/manager":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/lang","../registry","../main"],function(E,z,b,w,p){var n={};E.forEach("byId getUniqueId findWidgets _destroyAll byNode getEnclosingWidget".split(" "),function(l){n[l]=w[l]});b.mixin(n,{defaultDuration:z.defaultDuration||200});b.mixin(p,n);return p})},"dijit/_base/place":function(){define(["dojo/_base/array","dojo/_base/lang","dojo/window","../place","../main"],
function(E,z,b,w,p){var n={getViewport:function(){return b.getBox()}};n.placeOnScreen=w.at;n.placeOnScreenAroundElement=function(l,q,f,c){if(z.isArray(f))var a=f;else{a=[];for(var d in f)a.push({aroundCorner:d,corner:f[d]})}return w.around(l,q,a,!0,c)};n.placeOnScreenAroundNode=n.placeOnScreenAroundElement;n.placeOnScreenAroundRectangle=n.placeOnScreenAroundElement;n.getPopupAroundAlignment=function(l,q){var f={};E.forEach(l,function(c){var a=q;switch(c){case "after":f[q?"BR":"BL"]=q?"BL":"BR";break;
case "before":f[q?"BL":"BR"]=q?"BR":"BL";break;case "below-alt":a=!a;case "below":f[a?"BL":"BR"]=a?"TL":"TR";f[a?"BR":"BL"]=a?"TR":"TL";break;case "above-alt":a=!a;default:f[a?"TL":"TR"]=a?"BL":"BR",f[a?"TR":"TL"]=a?"BR":"BL"}});return f};z.mixin(p,n);return p})},"dijit/place":function(){define("dojo/_base/array dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/_base/window ./Viewport ./main".split(" "),function(E,z,b,w,p,n,l){function q(c,a,d,e){var h=n.getEffectiveBox(c.ownerDocument);c.parentNode&&
"body"==String(c.parentNode.tagName).toLowerCase()||p.body(c.ownerDocument).appendChild(c);var m=null;E.some(a,function(x){var v=x.corner,y=x.pos,u=0,t={w:{L:h.l+h.w-y.x,R:y.x-h.l,M:h.w}[v.charAt(1)],h:{T:h.t+h.h-y.y,B:y.y-h.t,M:h.h}[v.charAt(0)]},r=c.style;r.left=r.right="auto";d&&(u=d(c,x.aroundCorner,v,t,e),u="undefined"==typeof u?0:u);var B=c.style,C=B.display,F=B.visibility;"none"==B.display&&(B.visibility="hidden",B.display="");r=z.position(c);B.display=C;B.visibility=F;C={L:y.x,R:y.x-r.w,M:Math.max(h.l,
Math.min(h.l+h.w,y.x+(r.w>>1))-r.w)}[v.charAt(1)];F={T:y.y,B:y.y-r.h,M:Math.max(h.t,Math.min(h.t+h.h,y.y+(r.h>>1))-r.h)}[v.charAt(0)];y=Math.max(h.l,C);B=Math.max(h.t,F);C=Math.min(h.l+h.w,C+r.w)-y;F=Math.min(h.t+h.h,F+r.h)-B;u+=r.w-C+(r.h-F);if(null==m||u<m.overflow)m={corner:v,aroundCorner:x.aroundCorner,x:y,y:B,w:C,h:F,overflow:u,spaceAvailable:t};return!u});m.overflow&&d&&d(c,m.aroundCorner,m.corner,m.spaceAvailable,e);a=m.y;var g=m.x,k=p.body(c.ownerDocument);/relative|absolute/.test(b.get(k,
"position"))&&(a-=b.get(k,"marginTop"),g-=b.get(k,"marginLeft"));k=c.style;k.top=a+"px";k.left=g+"px";k.right="auto";return m}var f={TL:"BR",TR:"BL",BL:"TR",BR:"TL"};return l.place={at:function(c,a,d,e,h){d=E.map(d,function(m){var g={corner:m,aroundCorner:f[m],pos:{x:a.x,y:a.y}};e&&(g.pos.x+="L"==m.charAt(1)?e.x:-e.x,g.pos.y+="T"==m.charAt(0)?e.y:-e.y);return g});return q(c,d,h)},around:function(c,a,d,e,h){function m(A,D){F.push({aroundCorner:A,corner:D,pos:{x:{L:t,R:t+B,M:t+(B>>1)}[A.charAt(1)],
y:{T:r,B:r+C,M:r+(C>>1)}[A.charAt(0)]}})}if("string"==typeof a||"offsetWidth"in a||"ownerSVGElement"in a){var g=z.position(a,!0);if(/^(above|below)/.test(d[0])){var k=z.getBorderExtents(a),x=a.firstChild?z.getBorderExtents(a.firstChild):{t:0,l:0,b:0,r:0},v=z.getBorderExtents(c),y=c.firstChild?z.getBorderExtents(c.firstChild):{t:0,l:0,b:0,r:0};g.y+=Math.min(k.t+x.t,v.t+y.t);g.h-=Math.min(k.t+x.t,v.t+y.t)+Math.min(k.b+x.b,v.b+y.b)}}else g=a;if(a.parentNode)for(k="absolute"==b.getComputedStyle(a).position,
a=a.parentNode;a&&1==a.nodeType&&"BODY"!=a.nodeName;){x=z.position(a,!0);v=b.getComputedStyle(a);/relative|absolute/.test(v.position)&&(k=!1);if(!k&&/hidden|auto|scroll/.test(v.overflow)){y=Math.min(g.y+g.h,x.y+x.h);var u=Math.min(g.x+g.w,x.x+x.w);g.x=Math.max(g.x,x.x);g.y=Math.max(g.y,x.y);g.h=y-g.y;g.w=u-g.x}"absolute"==v.position&&(k=!0);a=a.parentNode}var t=g.x,r=g.y,B="w"in g?g.w:g.w=g.width,C="h"in g?g.h:(w.deprecated("place.around: dijit/place.__Rectangle: { x:"+t+", y:"+r+", height:"+g.height+
", width:"+B+" } has been deprecated.  Please use { x:"+t+", y:"+r+", h:"+g.height+", w:"+B+" }","","2.0"),g.h=g.height),F=[];E.forEach(d,function(A){var D=e;switch(A){case "above-centered":m("TM","BM");break;case "below-centered":m("BM","TM");break;case "after-centered":D=!D;case "before-centered":m(D?"ML":"MR",D?"MR":"ML");break;case "after":D=!D;case "before":m(D?"TL":"TR",D?"TR":"TL");m(D?"BL":"BR",D?"BR":"BL");break;case "below-alt":D=!D;case "below":m(D?"BL":"BR",D?"TL":"TR");m(D?"BR":"BL",
D?"TR":"TL");break;case "above-alt":D=!D;case "above":m(D?"TL":"TR",D?"BL":"BR");m(D?"TR":"TL",D?"BR":"BL");break;default:m(A.aroundCorner,A.corner)}});c=q(c,F,h,{w:B,h:C});c.aroundNodePos=g;return c}}})},"dijit/Viewport":function(){define(["dojo/Evented","dojo/on","dojo/domReady","dojo/sniff","dojo/window"],function(E,z,b,w,p){var n=new E,l;b(function(){var q=p.getBox();n._rlh=z(window,"resize",function(){var c=p.getBox();if(q.h!=c.h||q.w!=c.w)q=c,n.emit("resize")});if(8==w("ie")){var f=screen.deviceXDPI;
setInterval(function(){screen.deviceXDPI!=f&&(f=screen.deviceXDPI,n.emit("resize"))},500)}w("ios")&&(z(document,"focusin",function(c){l=c.target}),z(document,"focusout",function(c){l=null}))});n.getEffectiveBox=function(q){q=p.getBox(q);var f=l&&l.tagName&&l.tagName.toLowerCase();w("ios")&&l&&!l.readOnly&&("textarea"==f||"input"==f&&/^(color|email|number|password|search|tel|text|url)$/.test(l.type))&&(q.h*=0==orientation||180==orientation?.66:.4,f=l.getBoundingClientRect(),q.h=Math.max(q.h,f.top+
f.height));return q};return n})},"dijit/_base/popup":function(){define(["dojo/dom-class","dojo/_base/window","../popup","../BackgroundIframe"],function(E,z,b){var w=b._createWrapper;b._createWrapper=function(n){n.declaredClass||(n={_popupWrapper:n.parentNode&&E.contains(n.parentNode,"dijitPopup")?n.parentNode:null,domNode:n,destroy:function(){},ownerDocument:n.ownerDocument,ownerDocumentBody:z.body(n.ownerDocument)});return w.call(this,n)};var p=b.open;b.open=function(n){if(n.orient&&"string"!=typeof n.orient&&
!("length"in n.orient)){var l=[],q;for(q in n.orient)l.push({aroundCorner:q,corner:n.orient[q]});n.orient=l}return p.call(this,n)};return b})},"dijit/popup":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/has dojo/keys dojo/_base/lang dojo/on ./place ./BackgroundIframe ./Viewport ./main dojo/touch".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g){function k(){this._popupWrapper&&(n.destroy(this._popupWrapper),
delete this._popupWrapper)}b=b(null,{_stack:[],_beginZIndex:1E3,_idGen:1,_repositionAll:function(){if(this._firstAroundNode){var x=this._firstAroundPosition,v=l.position(this._firstAroundNode,!0),y=v.x-x.x;x=v.y-x.y;if(y||x)for(this._firstAroundPosition=v,v=0;v<this._stack.length;v++){var u=this._stack[v].wrapper.style;u.top=parseFloat(u.top)+x+"px";"auto"==u.right?u.left=parseFloat(u.left)+y+"px":u.right=parseFloat(u.right)-y+"px"}this._aroundMoveListener=setTimeout(a.hitch(this,"_repositionAll"),
y||x?10:50)}},_createWrapper:function(x){var v=x._popupWrapper,y=x.domNode;v||(v=n.create("div",{"class":"dijitPopup",style:{display:"none"},role:"region","aria-label":x["aria-label"]||x.label||x.name||x.id},x.ownerDocumentBody),v.appendChild(y),y=y.style,y.display="",y.visibility="",y.position="",y.top="0px",x._popupWrapper=v,z.after(x,"destroy",k,!0),"ontouchend"in document&&d(v,"touchend",function(u){/^(input|button|textarea)$/i.test(u.target.tagName)||u.preventDefault()}),v.dojoClick=!0);return v},
moveOffScreen:function(x){var v=this._createWrapper(x);x=l.isBodyLtr(x.ownerDocument);var y={visibility:"hidden",top:"-9999px",display:""};y[x?"left":"right"]="-9999px";y[x?"right":"left"]="auto";q.set(v,y);return v},hide:function(x){var v=this._createWrapper(x);q.set(v,{display:"none",height:"auto",overflowY:"visible",border:""});x=x.domNode;"_originalStyle"in x&&(x.style.cssText=x._originalStyle)},getTopPopup:function(){for(var x=this._stack,v=x.length-1;0<v&&x[v].parent===x[v-1].widget;v--);return x[v]},
open:function(x){for(var v=this._stack,y=x.popup,u=y.domNode,t=x.orient||["below","below-alt","above","above-alt"],r=x.parent?x.parent.isLeftToRight():l.isBodyLtr(y.ownerDocument),B=x.around,C=x.around&&x.around.id?x.around.id+"_dropdown":"popup_"+this._idGen++;v.length&&(!x.parent||!w.isDescendant(x.parent.domNode,v[v.length-1].widget.domNode));)this.close(v[v.length-1].widget);var F=this.moveOffScreen(y);y.startup&&!y._started&&y.startup();var A=l.position(u);if("maxHeight"in x&&-1!=x.maxHeight)var D=
x.maxHeight||Infinity;else{D=m.getEffectiveBox(this.ownerDocument);var G=B?l.position(B,!1):{y:x.y-(x.padding||0),h:2*(x.padding||0)};D=Math.floor(Math.max(G.y,D.h-(G.y+G.h)))}A.h>D&&(A=q.getComputedStyle(u),q.set(F,{overflowY:"scroll",height:D+"px",border:A.borderLeftWidth+" "+A.borderLeftStyle+" "+A.borderLeftColor}),u._originalStyle=u.style.cssText,u.style.border="none");p.set(F,{id:C,style:{zIndex:this._beginZIndex+v.length},"class":"dijitPopup "+(y.baseClass||y["class"]||"").split(" ")[0]+"Popup",
dijitPopupParent:x.parent?x.parent.id:""});0==v.length&&B&&(this._firstAroundNode=B,this._firstAroundPosition=l.position(B,!0),this._aroundMoveListener=setTimeout(a.hitch(this,"_repositionAll"),50));f("config-bgIframe")&&!y.bgIframe&&(y.bgIframe=new h(F));C=y.orient?a.hitch(y,"orient"):null;t=B?e.around(F,B,t,r,C):e.at(F,x,"R"==t?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],x.padding,C);F.style.visibility="visible";u.style.visibility="visible";u=[];u.push(d(F,"keydown",a.hitch(this,function(H){if(H.keyCode==
c.ESCAPE&&x.onCancel)H.stopPropagation(),H.preventDefault(),x.onCancel();else if(H.keyCode==c.TAB&&(H.stopPropagation(),H.preventDefault(),(H=this.getTopPopup())&&H.onCancel))H.onCancel()})));y.onCancel&&x.onCancel&&u.push(y.on("cancel",x.onCancel));u.push(y.on(y.onExecute?"execute":"change",a.hitch(this,function(){var H=this.getTopPopup();if(H&&H.onExecute)H.onExecute()})));v.push({widget:y,wrapper:F,parent:x.parent,onExecute:x.onExecute,onCancel:x.onCancel,onClose:x.onClose,handlers:u});if(y.onOpen)y.onOpen(t);
return t},close:function(x){for(var v=this._stack;x&&E.some(v,function(B){return B.widget==x})||!x&&v.length;){var y=v.pop(),u=y.widget,t=y.onClose;u.bgIframe&&(u.bgIframe.destroy(),delete u.bgIframe);if(u.onClose)u.onClose();for(var r;r=y.handlers.pop();)r.remove();u&&u.domNode&&this.hide(u);t&&t()}0==v.length&&this._aroundMoveListener&&(clearTimeout(this._aroundMoveListener),this._firstAroundNode=this._firstAroundPosition=this._aroundMoveListener=null)}});return g.popup=new b})},"dijit/BackgroundIframe":function(){define("require ./main dojo/_base/config dojo/dom-construct dojo/dom-style dojo/_base/lang dojo/on dojo/sniff".split(" "),
function(E,z,b,w,p,n,l,q){q.add("config-bgIframe",(q("ie")||q("trident"))&&!/IEMobile\/10\.0/.test(navigator.userAgent));var f=new function(){var c=[];this.pop=function(){if(c.length){var a=c.pop();a.style.display=""}else 9>q("ie")?(a=b.dojoBlankHtmlUrl||E.toUrl("dojo/resources/blank.html")||'javascript:""',a=document.createElement("\x3ciframe src\x3d'"+a+"' role\x3d'presentation' style\x3d'position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity\x3d\"0\");'\x3e")):(a=w.create("iframe"),
a.src='javascript:""',a.className="dijitBackgroundIframe",a.setAttribute("role","presentation"),p.set(a,"opacity",.1)),a.tabIndex=-1;return a};this.push=function(a){a.style.display="none";c.push(a)}};z.BackgroundIframe=function(c){if(!c.id)throw Error("no id");if(q("config-bgIframe")){var a=this.iframe=f.pop();c.appendChild(a);7>q("ie")||q("quirks")?(this.resize(c),this._conn=l(c,"resize",n.hitch(this,"resize",c))):p.set(a,{width:"100%",height:"100%"})}};n.extend(z.BackgroundIframe,{resize:function(c){this.iframe&&
p.set(this.iframe,{width:c.offsetWidth+"px",height:c.offsetHeight+"px"})},destroy:function(){this._conn&&(this._conn.remove(),this._conn=null);this.iframe&&(this.iframe.parentNode.removeChild(this.iframe),f.push(this.iframe),delete this.iframe)}});return z.BackgroundIframe})},"dojo/touch":function(){define("./_base/kernel ./aspect ./dom ./dom-class ./_base/lang ./on ./has ./mouse ./domReady ./_base/window".split(" "),function(E,z,b,w,p,n,l,q,f,c){function a(G,H,L){return m&&L?function(aa,da){return n(aa,
L,da)}:k?function(aa,da){var ha=n(aa,H,function(ba){da.call(this,ba);A=(new Date).getTime()}),ia=n(aa,G,function(ba){(!A||(new Date).getTime()>A+1E3)&&da.call(this,ba)});return{remove:function(){ha.remove();ia.remove()}}}:function(aa,da){return n(aa,G,da)}}function d(G){do if(void 0!==G.dojoClick)return G;while(G=G.parentNode)}function e(G,H,L){if(!q.isRight(G)){var aa=d(G.target);if(v=!G.target.disabled&&aa&&aa.dojoClick)if(u=(y="useTarget"==v)?aa:G.target,y&&G.preventDefault(),t=G.changedTouches?
G.changedTouches[0].pageX-c.global.pageXOffset:G.clientX,r=G.changedTouches?G.changedTouches[0].pageY-c.global.pageYOffset:G.clientY,B=("object"==typeof v?v.x:"number"==typeof v?v:0)||4,C=("object"==typeof v?v.y:"number"==typeof v?v:0)||4,!x){x=!0;var da=function(ha){v=y?b.isDescendant(c.doc.elementFromPoint(ha.changedTouches?ha.changedTouches[0].pageX-c.global.pageXOffset:ha.clientX,ha.changedTouches?ha.changedTouches[0].pageY-c.global.pageYOffset:ha.clientY),u):v&&(ha.changedTouches?ha.changedTouches[0].target:
ha.target)==u&&Math.abs((ha.changedTouches?ha.changedTouches[0].pageX-c.global.pageXOffset:ha.clientX)-t)<=B&&Math.abs((ha.changedTouches?ha.changedTouches[0].pageY-c.global.pageYOffset:ha.clientY)-r)<=C};c.doc.addEventListener(H,function(ha){q.isRight(ha)||(da(ha),y&&ha.preventDefault())},!0);c.doc.addEventListener(L,function(ha){if(!q.isRight(ha)&&(da(ha),v)){F=(new Date).getTime();var ia=y?u:ha.target;"LABEL"===ia.tagName&&(ia=b.byId(ia.getAttribute("for"))||ia);var ba=ha.changedTouches?ha.changedTouches[0]:
ha,ja=function(ua){var Aa=document.createEvent("MouseEvents");Aa._dojo_click=!0;Aa.initMouseEvent(ua,!0,!0,ha.view,ha.detail,ba.screenX,ba.screenY,ba.clientX,ba.clientY,ha.ctrlKey,ha.altKey,ha.shiftKey,ha.metaKey,0,null);return Aa},pa=ja("mousedown"),Ca=ja("mouseup"),la=ja("click");setTimeout(function(){n.emit(ia,"mousedown",pa);n.emit(ia,"mouseup",Ca);n.emit(ia,"click",la);F=(new Date).getTime()},0)}},!0);G=function(ha){c.doc.addEventListener(ha,function(ia){var ba=ia.target;v&&!ia._dojo_click&&
(new Date).getTime()<=F+1E3&&("INPUT"!=ba.tagName||!w.contains(ba,"dijitOffScreen"))&&(ia.stopPropagation(),ia.stopImmediatePropagation&&ia.stopImmediatePropagation(),"click"==ha&&("INPUT"!=ba.tagName||"radio"==ba.type&&(w.contains(ba,"dijitCheckBoxInput")||w.contains(ba,"mblRadioButton"))||"checkbox"==ba.type&&(w.contains(ba,"dijitCheckBoxInput")||w.contains(ba,"mblCheckBox")))&&"TEXTAREA"!=ba.tagName&&"AUDIO"!=ba.tagName&&"VIDEO"!=ba.tagName&&ia.preventDefault())},!0)};G("click");G("mousedown");
G("mouseup")}}}var h=5>l("ios"),m=l("pointer-events")||l("MSPointer"),g=function(){var G={},H;for(H in{down:1,move:1,up:1,cancel:1,over:1,out:1})G[H]=l("MSPointer")?"MSPointer"+H.charAt(0).toUpperCase()+H.slice(1):"pointer"+H;return G}(),k=l("touch-events"),x,v,y=!1,u,t,r,B,C,F,A,D;l("touch")&&(m?f(function(){c.doc.addEventListener(g.down,function(G){e(G,g.move,g.up)},!0)}):f(function(){function G(H){var L=p.delegate(H,{bubbles:!0});6<=l("ios")&&(L.touches=H.touches,L.altKey=H.altKey,L.changedTouches=
H.changedTouches,L.ctrlKey=H.ctrlKey,L.metaKey=H.metaKey,L.shiftKey=H.shiftKey,L.targetTouches=H.targetTouches);return L}D=c.body();c.doc.addEventListener("touchstart",function(H){A=(new Date).getTime();var L=D;D=H.target;n.emit(L,"dojotouchout",{relatedTarget:D,bubbles:!0});n.emit(D,"dojotouchover",{relatedTarget:L,bubbles:!0});e(H,"touchmove","touchend")},!0);n(c.doc,"touchmove",function(H){A=(new Date).getTime();var L=c.doc.elementFromPoint(H.pageX-(h?0:c.global.pageXOffset),H.pageY-(h?0:c.global.pageYOffset));
L&&(D!==L&&(n.emit(D,"dojotouchout",{relatedTarget:L,bubbles:!0}),n.emit(L,"dojotouchover",{relatedTarget:D,bubbles:!0}),D=L),n.emit(L,"dojotouchmove",G(H))||H.preventDefault())});n(c.doc,"touchend",function(H){A=(new Date).getTime();var L=c.doc.elementFromPoint(H.pageX-(h?0:c.global.pageXOffset),H.pageY-(h?0:c.global.pageYOffset))||c.body();n.emit(L,"dojotouchend",G(H))})}));z={press:a("mousedown","touchstart",g.down),move:a("mousemove","dojotouchmove",g.move),release:a("mouseup","dojotouchend",
g.up),cancel:a(q.leave,"touchcancel",m?g.cancel:null),over:a("mouseover","dojotouchover",g.over),out:a("mouseout","dojotouchout",g.out),enter:q._eventHandler(a("mouseover","dojotouchover",g.over)),leave:q._eventHandler(a("mouseout","dojotouchout",g.out))};return E.touch=z})},"dijit/_base/scroll":function(){define(["dojo/window","../main"],function(E,z){z.scrollIntoView=function(b,w){E.scrollIntoView(b,w)}})},"dijit/_base/sniff":function(){define(["dojo/uacss"],function(){})},"dojo/uacss":function(){define(["./dom-geometry",
"./_base/lang","./domReady","./sniff","./_base/window"],function(E,z,b,w,p){var n=p.doc.documentElement;p=w("ie");var l=w("trident"),q=w("opera"),f=Math.floor,c=w("ff"),a=E.boxModel.replace(/-/,"");q={dj_quirks:w("quirks"),dj_opera:q,dj_khtml:w("khtml"),dj_webkit:w("webkit"),dj_safari:w("safari"),dj_chrome:w("chrome"),dj_edge:w("edge"),dj_gecko:w("mozilla"),dj_ios:w("ios"),dj_android:w("android")};p&&(q.dj_ie=!0,q["dj_ie"+f(p)]=!0,q.dj_iequirks=w("quirks"));l&&(q.dj_trident=!0,q["dj_trident"+f(l)]=
!0);c&&(q["dj_ff"+f(c)]=!0);q["dj_"+a]=!0;var d="",e;for(e in q)q[e]&&(d+=e+" ");n.className=z.trim(n.className+" "+d);b(function(){if(!E.isBodyLtr()){var h="dj_rtl dijitRtl "+d.replace(/ /g,"-rtl ");n.className=z.trim(n.className+" "+h+"dj_rtl dijitRtl "+d.replace(/ /g,"-rtl "))}});return w})},"dijit/_base/typematic":function(){define(["../typematic"],function(){})},"dijit/typematic":function(){define("dojo/_base/array dojo/_base/connect dojo/_base/lang dojo/on dojo/sniff ./main".split(" "),function(E,
z,b,w,p,n){var l=n.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(0>this._currentTimeout?this._initialDelay:1<this._subsequentDelay?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay),this._minDelay);this._timer=setTimeout(b.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(q,f,c,a,d,e,h,m){if(d!=this._obj){this.stop();this._initialDelay=h||500;this._subsequentDelay=
e||.9;this._minDelay=m||10;this._obj=d;this._node=c;this._count=this._currentTimeout=-1;this._callback=b.hitch(f,a);this._evt={faux:!0};for(var g in q)"layerX"!=g&&"layerY"!=g&&(f=q[g],"function"!=typeof f&&"undefined"!=typeof f&&(this._evt[g]=f));this._fireEventAndReload()}},stop:function(){this._timer&&(clearTimeout(this._timer),this._timer=null);this._obj&&(this._callback(-1,this._node,this._evt),this._obj=null)},addKeyListener:function(q,f,c,a,d,e,h){var m="keyCode"in f?"keyCode":"charCode"in
f?"charCode":"charOrCode",g=[w(q,"keyCode"in f?"keydown":"charCode"in f?"keypress":z._keypress,b.hitch(this,function(k){k[m]!=f[m]||void 0!==f.ctrlKey&&f.ctrlKey!=k.ctrlKey||void 0!==f.altKey&&f.altKey!=k.altKey||void 0!==f.metaKey&&f.metaKey!=(k.metaKey||!1)||void 0!==f.shiftKey&&f.shiftKey!=k.shiftKey?l._obj==f&&l.stop():(k.stopPropagation(),k.preventDefault(),l.trigger(k,c,q,a,f,d,e,h))})),w(q,"keyup",b.hitch(this,function(){l._obj==f&&l.stop()}))];return{remove:function(){E.forEach(g,function(k){k.remove()})}}},
addMouseListener:function(q,f,c,a,d,e){var h=[w(q,"mousedown",b.hitch(this,function(m){m.preventDefault();l.trigger(m,f,q,c,q,a,d,e)})),w(q,"mouseup",b.hitch(this,function(m){this._obj&&m.preventDefault();l.stop()})),w(q,"mouseout",b.hitch(this,function(m){this._obj&&m.preventDefault();l.stop()})),w(q,"dblclick",b.hitch(this,function(m){m.preventDefault();9>p("ie")&&(l.trigger(m,f,q,c,q,a,d,e),setTimeout(b.hitch(this,l.stop),50))}))];return{remove:function(){E.forEach(h,function(m){m.remove()})}}},
addListener:function(q,f,c,a,d,e,h,m){var g=[this.addKeyListener(f,c,a,d,e,h,m),this.addMouseListener(q,a,d,e,h,m)];return{remove:function(){E.forEach(g,function(k){k.remove()})}}}};return l})},"dijit/_base/wai":function(){define(["dojo/dom-attr","dojo/_base/lang","../main","../hccss"],function(E,z,b){z.mixin(b,{hasWaiRole:function(w,p){w=this.getWaiRole(w);return p?-1<w.indexOf(p):0<w.length},getWaiRole:function(w){return z.trim((E.get(w,"role")||"").replace("wairole:",""))},setWaiRole:function(w,
p){E.set(w,"role",p)},removeWaiRole:function(w,p){var n=E.get(w,"role");n&&(p?(p=z.trim((" "+n+" ").replace(" "+p+" "," ")),E.set(w,"role",p)):w.removeAttribute("role"))},hasWaiState:function(w,p){return w.hasAttribute?w.hasAttribute("aria-"+p):!!w.getAttribute("aria-"+p)},getWaiState:function(w,p){return w.getAttribute("aria-"+p)||""},setWaiState:function(w,p,n){w.setAttribute("aria-"+p,n)},removeWaiState:function(w,p){w.removeAttribute("aria-"+p)}});return b})},"dijit/hccss":function(){define(["dojo/dom-class",
"dojo/hccss","dojo/domReady","dojo/_base/window"],function(E,z,b,w){b(function(){z("highcontrast")&&E.add(w.body(),"dijit_a11y")});return z})},"dojo/hccss":function(){define("require ./_base/config ./dom-class ./dom-style ./has ./domReady ./_base/window".split(" "),function(E,z,b,w,p,n,l){p.add("highcontrast",function(){var q=l.doc.createElement("div");try{q.style.cssText='border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;background-image: url("'+(z.blankGif||
E.toUrl("./resources/blank.gif"))+'");';l.body().appendChild(q);var f=w.getComputedStyle(q),c=f.backgroundImage;return f.borderTopColor==f.borderRightColor||c&&("none"==c||"url(invalid-url:)"==c)}catch(a){return console.warn("hccss: exception detecting high-contrast mode, document is likely hidden: "+a.toString()),!1}finally{8>=p("ie")?q.outerHTML="":l.body().removeChild(q)}});n(function(){p("highcontrast")&&b.add(l.body(),"dj_a11y")});return p})},"dijit/_base/window":function(){define(["dojo/window",
"../main"],function(E,z){z.getDocumentWindow=function(b){return E.get(b)}})},"dijit/form/DropDownButton":function(){define("dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/query ../registry ../popup ./Button ../_Container ../_HasDropDown dojo/text!./templates/DropDownButton.html ../a11yclick".split(" "),function(E,z,b,w,p,n,l,q,f,c){return E("dijit.form.DropDownButton",[l,q,f],{baseClass:"dijitDropDownButton",templateString:c,_fillContent:function(){var a=this.srcNodeRef,d=this.containerNode;
if(a&&d)for(;a.hasChildNodes();){var e=a.firstChild;e.hasAttribute&&(e.hasAttribute("data-dojo-type")||e.hasAttribute("dojoType")||e.hasAttribute("data-"+z._scopeName+"-type")||e.hasAttribute(z._scopeName+"Type"))?(this.dropDownContainer=this.ownerDocument.createElement("div"),this.dropDownContainer.appendChild(e)):d.appendChild(e)}},startup:function(){this._started||(!this.dropDown&&this.dropDownContainer&&(this.dropDown=p.byNode(this.dropDownContainer.firstChild),delete this.dropDownContainer),
this.dropDown&&n.hide(this.dropDown),this.inherited(arguments))},isLoaded:function(){var a=this.dropDown;return!!a&&(!a.href||a.isLoaded)},loadDropDown:function(a){var d=this.dropDown,e=d.on("load",b.hitch(this,function(){e.remove();a()}));d.refresh()},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}})})},"dijit/form/Button":function(){define("require dojo/_base/declare dojo/dom-class dojo/has dojo/_base/kernel dojo/_base/lang dojo/ready ./_FormWidget ./_ButtonMixin dojo/text!./templates/Button.html ../a11yclick".split(" "),
function(E,z,b,w,p,n,l,q,f,c){w("dijit-legacy-requires")&&l(0,function(){E(["dijit/form/DropDownButton","dijit/form/ComboButton","dijit/form/ToggleButton"])});l=z("dijit.form.Button"+(w("dojo-bidi")?"_NoBidi":""),[q,f],{showLabel:!0,iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitButton",templateString:c,_setValueAttr:"valueNode",_setNameAttr:function(a){this.valueNode&&this.valueNode.setAttribute("name",a)},postCreate:function(){this.inherited(arguments);
this._setLabelFromContainer()},_setLabelFromContainer:function(){this.containerNode&&!this.label&&(this.label=n.trim(this.containerNode.innerHTML),this.onLabelSet())},_setShowLabelAttr:function(a){this.containerNode&&b.toggle(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",a)},setLabel:function(a){p.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",a)},onLabelSet:function(){this.inherited(arguments);this.showLabel||
"title"in this.params||(this.titleNode.title=n.trim(this.containerNode.innerText||this.containerNode.textContent||""))}});w("dojo-bidi")&&(l=z("dijit.form.Button",l,{onLabelSet:function(){this.inherited(arguments);this.titleNode.title&&this.applyTextDir(this.titleNode,this.titleNode.title)},_setTextDirAttr:function(a){this._created&&this.textDir!=a&&(this._set("textDir",a),this._setLabelAttr(this.label))}}));return l})},"dijit/form/_FormWidget":function(){define("dojo/_base/declare dojo/sniff dojo/_base/kernel dojo/ready ../_Widget ../_CssStateMixin ../_TemplatedMixin ./_FormWidgetMixin".split(" "),
function(E,z,b,w,p,n,l,q){z("dijit-legacy-requires")&&w(0,function(){require(["dijit/form/_FormValueWidget"])});return E("dijit.form._FormWidget",[p,l,n,q],{setDisabled:function(f){b.deprecated("setDisabled("+f+") is deprecated. Use set('disabled',"+f+") instead.","","2.0");this.set("disabled",f)},setValue:function(f){b.deprecated("dijit.form._FormWidget:setValue("+f+") is deprecated.  Use set('value',"+f+") instead.","","2.0");this.set("value",f)},getValue:function(){b.deprecated(this.declaredClass+
"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},postMixInProperties:function(){this.nameAttrSetting=this.name&&!z("msapp")?'name\x3d"'+this.name.replace(/"/g,"\x26quot;")+'"':"";this.inherited(arguments)}})})},"dijit/_Widget":function(){define("dojo/aspect dojo/_base/config dojo/_base/connect dojo/_base/declare dojo/has dojo/_base/kernel dojo/_base/lang dojo/query dojo/ready ./registry ./_WidgetBase ./_OnDijitClickMixin ./_FocusMixin dojo/uacss ./hccss".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e){function h(){}function m(g){return function(k,x,v,y){return k&&"string"==typeof x&&k[x]==h?k.on(x.substring(2).toLowerCase(),l.hitch(v,y)):g.apply(b,arguments)}}E.around(b,"connect",m);n.connect&&E.around(n,"connect",m);E=w("dijit._Widget",[a,d,e],{onClick:h,onDblClick:h,onKeyDown:h,onKeyPress:h,onKeyUp:h,onMouseDown:h,onMouseMove:h,onMouseOut:h,onMouseOver:h,onMouseLeave:h,onMouseEnter:h,onMouseUp:h,constructor:function(g){this._toConnect={};for(var k in g)this[k]===
h&&(this._toConnect[k.replace(/^on/,"").toLowerCase()]=g[k],delete g[k])},postCreate:function(){this.inherited(arguments);for(var g in this._toConnect)this.on(g,this._toConnect[g]);delete this._toConnect},on:function(g,k){return this[this._onMap(g)]===h?b.connect(this.domNode,g.toLowerCase(),this,k):this.inherited(arguments)},_setFocusedAttr:function(g){this._focused=g;this._set("focused",g)},setAttribute:function(g,k){n.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.",
"","2.0");this.set(g,k)},attr:function(g,k){return 2<=arguments.length||"object"===typeof g?this.set.apply(this,arguments):this.get(g)},getDescendants:function(){n.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?q("[widgetId]",this.containerNode).map(c.byNode):[]},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}});p("dijit-legacy-requires")&&f(0,function(){require(["dijit/_base"])});
return E})},"dijit/_WidgetBase":function(){define("require dojo/_base/array dojo/aspect dojo/_base/config dojo/_base/connect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/has dojo/_base/kernel dojo/_base/lang dojo/on dojo/ready dojo/Stateful dojo/topic dojo/_base/window ./Destroyable dojo/has!dojo-bidi?./_BidiMixin ./registry".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y,u,t,r){function B(F){return function(A){q[A?
"set":"remove"](this.domNode,F,A);this._set(F,A)}}e.add("dijit-legacy-requires",!h.isAsync);e.add("dojo-bidi",!1);e("dijit-legacy-requires")&&k(0,function(){E(["dijit/_base/manager"])});var C={};w=n("dijit._WidgetBase",[x,u],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:B("lang"),dir:"",_setDirAttr:B("dir"),"class":"",_setClassAttr:{node:"domNode",type:"class"},_setTypeAttr:null,style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(F){this._set("ownerDocument",
F)},attributeMap:{},_blankGif:w.blankGif||E.toUrl("dojo/resources/blank.gif"),textDir:"",_introspect:function(){var F=this.constructor;if(!F._setterAttrs){var A=F.prototype,D=F._setterAttrs=[];F=F._onMap={};for(var G in A.attributeMap)D.push(G);for(G in A)/^on/.test(G)&&(F[G.substring(2).toLowerCase()]=G),/^_set[A-Z](.*)Attr$/.test(G)&&(G=G.charAt(4).toLowerCase()+G.substr(5,G.length-9),A.attributeMap&&G in A.attributeMap||D.push(G))}},postscript:function(F,A){this.create(F,A)},create:function(F,
A){this._introspect();this.srcNodeRef=l.byId(A);this._connects=[];this._supportingWidgets=[];this.srcNodeRef&&this.srcNodeRef.id&&"string"==typeof this.srcNodeRef.id&&(this.id=this.srcNodeRef.id);F&&(this.params=F,m.mixin(this,F));this.postMixInProperties();this.id||(this.id=r.getUniqueId(this.declaredClass.replace(/\./g,"_")),this.params&&delete this.params.id);this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:document);this.ownerDocumentBody=y.body(this.ownerDocument);
r.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();if((F=this.srcNodeRef)&&F.parentNode&&this.domNode!==F){F.parentNode.replaceChild(this.domNode,F);var D=!0}this.domNode.setAttribute("widgetId",this.id)}this.postCreate();D&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var F={},A;for(A in this.params||{})F[A]=this._get(A);z.forEach(this.constructor._setterAttrs,function(D){if(!(D in F)){var G=this._get(D);G&&this.set(D,G)}},this);for(A in F)this.set(A,
F[A])},postMixInProperties:function(){},buildRendering:function(){this.domNode||(this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div"));if(this.baseClass){var F=this.baseClass.split(" ");this.isLeftToRight()||(F=F.concat(z.map(F,function(A){return A+"Rtl"})));f.add(this.domNode,F)}},postCreate:function(){},startup:function(){this._started||(this._started=!0,z.forEach(this.getChildren(),function(F){F._started||F._destroyed||!m.isFunction(F.startup)||(F.startup(),F._started=!0)}))},
destroyRecursive:function(F){this._beingDestroyed=!0;this.destroyDescendants(F);this.destroy(F)},destroy:function(F){function A(D){D.destroyRecursive?D.destroyRecursive(F):D.destroy&&D.destroy(F)}this._beingDestroyed=!0;this.uninitialize();z.forEach(this._connects,m.hitch(this,"disconnect"));z.forEach(this._supportingWidgets,A);this.domNode&&z.forEach(r.findWidgets(this.domNode,this.containerNode),A);this.destroyRendering(F);r.remove(this.id);this._destroyed=!0},destroyRendering:function(F){this.bgIframe&&
(this.bgIframe.destroy(F),delete this.bgIframe);this.domNode&&(F?q.remove(this.domNode,"widgetId"):c.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(F||c.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(F){z.forEach(this.getChildren(),function(A){A.destroyRecursive&&A.destroyRecursive(F)})},uninitialize:function(){return!1},_setStyleAttr:function(F){var A=this.domNode;m.isObject(F)?d.set(A,F):A.style.cssText=A.style.cssText?A.style.cssText+("; "+F):F;this._set("style",
F)},_attrToDom:function(F,A,D){D=3<=arguments.length?D:this.attributeMap[F];z.forEach(m.isArray(D)?D:[D],function(G){var H=this[G.node||G||"domNode"];switch(G.type||"attribute"){case "attribute":m.isFunction(A)&&(A=m.hitch(this,A));G=G.attribute?G.attribute:/^on[A-Z][a-zA-Z]*$/.test(F)?F.toLowerCase():F;H.tagName?q.set(H,G,A):H.set(G,A);break;case "innerText":H.innerHTML="";H.appendChild(this.ownerDocument.createTextNode(A));break;case "textContent":H.textContent=A;break;case "innerHTML":H.innerHTML=
A;break;case "class":f.replace(H,A,this[F]);break;case "toggleClass":f.toggle(H,G.className||F,A)}},this)},get:function(F){var A=this._getAttrNames(F);return this[A.g]?this[A.g]():this._get(F)},set:function(F,A){if("object"===typeof F){for(var D in F)this.set(D,F[D]);return this}D=this._getAttrNames(F);var G=this[D.s];if(m.isFunction(G))var H=G.apply(this,Array.prototype.slice.call(arguments,1));else{G=this.focusNode&&!m.isFunction(this.focusNode)?"focusNode":"domNode";var L=this[G]&&this[G].tagName,
aa;if((aa=L)&&!(aa=C[L])){aa=this[G];var da={};for(ha in aa)da[ha.toLowerCase()]=!0;aa=C[L]=da}var ha=aa;D=F in this.attributeMap?this.attributeMap[F]:D.s in this?this[D.s]:ha&&D.l in ha&&"function"!=typeof A||/^aria-|^data-|^role$/.test(F)?G:null;null!=D&&this._attrToDom(F,A,D);this._set(F,A)}return H||this},_attrPairNames:{},_getAttrNames:function(F){var A=this._attrPairNames;if(A[F])return A[F];var D=F.replace(/^[a-z]|-[a-zA-Z]/g,function(G){return G.charAt(G.length-1).toUpperCase()});return A[F]=
{n:F+"Node",s:"_set"+D+"Attr",g:"_get"+D+"Attr",l:D.toLowerCase()}},_set:function(F,A){var D=this[F];this[F]=A;!this._created||D===A||D!==D&&A!==A||(this._watchCallbacks&&this._watchCallbacks(F,D,A),this.emit("attrmodified-"+F,{detail:{prevValue:D,newValue:A}}))},_get:function(F){return this[F]},emit:function(F,A,D){A=A||{};void 0===A.bubbles&&(A.bubbles=!0);void 0===A.cancelable&&(A.cancelable=!0);A.detail||(A.detail={});A.detail.widget=this;var G,H=this["on"+F];H&&(G=H.apply(this,D?D:[A]));this._started&&
!this._beingDestroyed&&g.emit(this.domNode,F.toLowerCase(),A);return G},on:function(F,A){var D=this._onMap(F);return D?b.after(this,D,A,!0):this.own(g(this.domNode,F,A))[0]},_onMap:function(F){var A=this.constructor,D=A._onMap;if(!D){D=A._onMap={};for(var G in A.prototype)/^on/.test(G)&&(D[G.replace(/^on/,"").toLowerCase()]=G)}return D["string"==typeof F&&F.toLowerCase()]},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getChildren:function(){return this.containerNode?
r.findWidgets(this.containerNode):[]},getParent:function(){return r.getEnclosingWidget(this.domNode.parentNode)},connect:function(F,A,D){return this.own(p.connect(F,A,this,D))[0]},disconnect:function(F){F.remove()},subscribe:function(F,A){return this.own(v.subscribe(F,m.hitch(this,A)))[0]},unsubscribe:function(F){F.remove()},isLeftToRight:function(){return this.dir?"ltr"==this.dir.toLowerCase():a.isBodyLtr(this.ownerDocument)},isFocusable:function(){return this.focus&&"none"!=d.get(this.domNode,"display")},
placeAt:function(F,A){var D=!F.tagName&&r.byId(F);!D||!D.addChild||A&&"number"!==typeof A?(F=D&&"domNode"in D?D.containerNode&&!/after|before|replace/.test(A||"")?D.containerNode:D.domNode:l.byId(F,this.ownerDocument),c.place(this.domNode,F,A),!this._started&&(this.getParent()||{})._started&&this.startup()):D.addChild(this,A);return this},defer:function(F,A){var D=setTimeout(m.hitch(this,function(){D&&(D=null,this._destroyed||m.hitch(this,F)())}),A||0);return{remove:function(){D&&(clearTimeout(D),
D=null);return null}}}});e("dojo-bidi")&&w.extend(t);return w})},"dijit/Destroyable":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(E,z,b){return b("dijit.Destroyable",null,{destroy:function(w){this._destroyed=!0},own:function(){var w=["destroyRecursive","destroy","remove"];E.forEach(arguments,function(p){function n(){l.remove();E.forEach(q,function(c){c.remove()})}var l=z.before(this,"destroy",function(c){p[f](c)}),q=[];if(p.then){var f="cancel";p.then(n,n)}else E.forEach(w,
function(c){"function"===typeof p[c]&&(f||(f=c),q.push(z.after(p,c,n,!0)))})},this);return arguments}})})},"dijit/_OnDijitClickMixin":function(){define("dojo/on dojo/_base/array dojo/keys dojo/_base/declare dojo/has ./a11yclick".split(" "),function(E,z,b,w,p,n){E=w("dijit._OnDijitClickMixin",null,{connect:function(l,q,f){return this.inherited(arguments,[l,"ondijitclick"==q?n:q,f])}});E.a11yclick=n;return E})},"dijit/a11yclick":function(){define(["dojo/keys","dojo/mouse","dojo/on","dojo/touch"],function(E,
z,b,w){function p(q){if((q.keyCode===E.ENTER||q.keyCode===E.SPACE)&&!/input|button|textarea/i.test(q.target.nodeName))for(q=q.target;q;q=q.parentNode)if(q.dojoClick)return!0}var n;b(document,"keydown",function(q){p(q)?(n=q.target,q.preventDefault()):n=null});b(document,"keyup",function(q){p(q)&&q.target==n&&(n=null,b.emit(q.target,"click",{cancelable:!0,bubbles:!0,ctrlKey:q.ctrlKey,shiftKey:q.shiftKey,metaKey:q.metaKey,altKey:q.altKey,_origType:q.type}))});var l=function(q,f){q.dojoClick=!0;return b(q,
"click",f)};l.click=l;l.press=function(q,f){var c=b(q,w.press,function(d){("mousedown"!=d.type||z.isLeft(d))&&f(d)}),a=b(q,"keydown",function(d){d.keyCode!==E.ENTER&&d.keyCode!==E.SPACE||f(d)});return{remove:function(){c.remove();a.remove()}}};l.release=function(q,f){var c=b(q,w.release,function(d){("mouseup"!=d.type||z.isLeft(d))&&f(d)}),a=b(q,"keyup",function(d){d.keyCode!==E.ENTER&&d.keyCode!==E.SPACE||f(d)});return{remove:function(){c.remove();a.remove()}}};l.move=w.move;return l})},"dijit/_FocusMixin":function(){define(["./focus",
"./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(E,z,b,w){w.extend(z,{focused:!1,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()}});return b("dijit._FocusMixin",null,{_focusManager:E})})},"dijit/_CssStateMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom dojo/dom-class dojo/has dojo/_base/lang dojo/on dojo/domReady dojo/touch dojo/_base/window ./a11yclick ./registry".split(" "),function(E,z,b,w,p,n,l,
q,f,c,a,d){z=z("dijit._CssStateMixin",[],{hovering:!1,active:!1,_applyAttributes:function(){this.inherited(arguments);E.forEach("disabled readOnly checked selected focused state hovering active _opened".split(" "),function(h){this.watch(h,n.hitch(this,"_setStateClass"))},this);for(var e in this.cssStateNodes||{})this._trackMouseState(this[e],this.cssStateNodes[e]);this._trackMouseState(this.domNode,this.baseClass);this._setStateClass()},_cssMouseEvent:function(e){if(!this.disabled)switch(e.type){case "mouseover":case "MSPointerOver":case "pointerover":this._set("hovering",
!0);this._set("active",this._mouseDown);break;case "mouseout":case "MSPointerOut":case "pointerout":this._set("hovering",!1);this._set("active",!1);break;case "mousedown":case "touchstart":case "MSPointerDown":case "pointerdown":case "keydown":this._set("active",!0);break;case "mouseup":case "dojotouchend":case "MSPointerUp":case "pointerup":case "keyup":this._set("active",!1)}},_setStateClass:function(){function e(v){h=h.concat(E.map(h,function(y){return y+v}),"dijit"+v)}var h=this.baseClass.split(" ");
this.isLeftToRight()||e("Rtl");var m="mixed"==this.checked?"Mixed":this.checked?"Checked":"";this.checked&&e(m);this.state&&e(this.state);this.selected&&e("Selected");this._opened&&e("Opened");this.disabled?e("Disabled"):this.readOnly?e("ReadOnly"):this.active?e("Active"):this.hovering&&e("Hover");this.focused&&e("Focused");m=this.stateNode||this.domNode;var g={};E.forEach(m.className.split(" "),function(v){g[v]=!0});"_stateClasses"in this&&E.forEach(this._stateClasses,function(v){delete g[v]});E.forEach(h,
function(v){g[v]=!0});var k=[],x;for(x in g)k.push(x);m.className=k.join(" ");this._stateClasses=h},_subnodeCssMouseEvent:function(e,h,m){function g(k){w.toggle(e,h+"Active",k)}if(!this.disabled&&!this.readOnly)switch(m.type){case "mouseover":case "MSPointerOver":case "pointerover":w.toggle(e,h+"Hover",!0);break;case "mouseout":case "MSPointerOut":case "pointerout":w.toggle(e,h+"Hover",!1);g(!1);break;case "mousedown":case "touchstart":case "MSPointerDown":case "pointerdown":case "keydown":g(!0);
break;case "mouseup":case "MSPointerUp":case "pointerup":case "dojotouchend":case "keyup":g(!1);break;case "focus":case "focusin":w.toggle(e,h+"Focused",!0);break;case "blur":case "focusout":w.toggle(e,h+"Focused",!1)}},_trackMouseState:function(e,h){e._cssState=h}});q(function(){function e(g,k,x){if(!x||!b.isDescendant(x,k))for(;k&&k!=x;k=k.parentNode)if(k._cssState){var v=d.getEnclosingWidget(k);v&&(k==v.domNode?v._cssMouseEvent(g):v._subnodeCssMouseEvent(k,k._cssState,g))}}var h=c.body(),m;l(h,
f.over,function(g){e(g,g.target,g.relatedTarget)});l(h,f.out,function(g){e(g,g.target,g.relatedTarget)});l(h,a.press,function(g){m=g.target;e(g,m)});l(h,a.release,function(g){e(g,m);m=null});l(h,"focusin, focusout",function(g){var k=g.target;if(k._cssState&&!k.getAttribute("widgetId")){var x=d.getEnclosingWidget(k);x&&x._subnodeCssMouseEvent(k,k._cssState,g)}})});return z})},"dijit/_TemplatedMixin":function(){define("dojo/cache dojo/_base/declare dojo/dom-construct dojo/_base/lang dojo/on dojo/sniff dojo/string ./_AttachMixin".split(" "),
function(E,z,b,w,p,n,l,q){var f=z("dijit._TemplatedMixin",q,{templateString:null,templatePath:null,_skipNodeCache:!1,searchContainerNode:!0,_stringRepl:function(c){var a=this.declaredClass,d=this;return l.substitute(c,this,function(e,h){"!"==h.charAt(0)&&(e=w.getObject(h.substr(1),!1,d));if("undefined"==typeof e)throw Error(a+" template:"+h);return null==e?"":"!"==h.charAt(0)?e:this._escapeValue(""+e)},this)},_escapeValue:function(c){return c.replace(/["'<>&]/g,function(a){return{"\x26":"\x26amp;",
"\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;"}[a]})},buildRendering:function(){if(!this._rendered){this.templateString||(this.templateString=E(this.templatePath,{sanitize:!0}));var c=f.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument);if(w.isString(c)){var a=b.toDom(this._stringRepl(c),this.ownerDocument);if(1!=a.nodeType)throw Error("Invalid template: "+c);}else a=c.cloneNode(!0);this.domNode=a}this.inherited(arguments);this._rendered||this._fillContent(this.srcNodeRef);
this._rendered=!0},_fillContent:function(c){var a=this.containerNode;if(c&&a)for(;c.hasChildNodes();)a.appendChild(c.firstChild)}});f._templateCache={};f.getCachedTemplate=function(c,a,d){var e=f._templateCache,h=c,m=e[h];if(m){try{if(!m.ownerDocument||m.ownerDocument==(d||document))return m}catch(g){}b.destroy(m)}c=l.trim(c);if(a||c.match(/\$\{([^\}]+)\}/g))return e[h]=c;a=b.toDom(c,d);if(1!=a.nodeType)throw Error("Invalid template: "+c);return e[h]=a};n("ie")&&p(window,"unload",function(){var c=
f._templateCache,a;for(a in c){var d=c[a];"object"==typeof d&&b.destroy(d);delete c[a]}});return f})},"dojo/cache":function(){define(["./_base/kernel","./text"],function(E){return E.cache})},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(E,z){var b=/[&<>'"\/]/g,w={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;","/":"\x26#x2F;"},p={};z.setObject("dojo.string",p);p.escape=function(n){return n?n.replace(b,function(l){return w[l]}):""};p.rep=
function(n,l){if(0>=l||!n)return"";for(var q=[];;){l&1&&q.push(n);if(!(l>>=1))break;n+=n}return q.join("")};p.pad=function(n,l,q,f){q||(q="0");n=String(n);l=p.rep(q,Math.ceil((l-n.length)/q.length));return f?n+l:l+n};p.substitute=function(n,l,q,f){f=f||E.global;q=q?z.hitch(f,q):function(c){return c};return n.replace(/\$\{([^\s:\}]*)(?::([^\s:\}]+))?\}/g,function(c,a,d){if(""==a)return"$";c=z.getObject(a,!1,l);d&&(c=z.getObject(d,!1,f).call(f,c,a));d=q(c,a);if("undefined"===typeof d)throw Error('string.substitute could not find key "'+
a+'" in template');return d.toString()})};p.trim=String.prototype.trim?z.trim:function(n){n=n.replace(/^\s+/,"");for(var l=n.length-1;0<=l;l--)if(/\S/.test(n.charAt(l))){n=n.substring(0,l+1);break}return n};return p})},"dijit/_AttachMixin":function(){define("require dojo/_base/array dojo/_base/connect dojo/_base/declare dojo/_base/lang dojo/mouse dojo/on dojo/touch ./_WidgetBase".split(" "),function(E,z,b,w,p,n,l,q,f){var c=p.delegate(q,{mouseenter:n.enter,mouseleave:n.leave,keypress:b._keypress}),
a;b=w("dijit._AttachMixin",null,{constructor:function(){this._attachPoints=[];this._attachEvents=[]},buildRendering:function(){this.inherited(arguments);this._attachTemplateNodes(this.domNode);this._beforeFillContent()},_beforeFillContent:function(){},_attachTemplateNodes:function(d){for(var e=d;;)if(1==e.nodeType&&(this._processTemplateNode(e,function(h,m){return h.getAttribute(m)},this._attach)||this.searchContainerNode)&&e.firstChild)e=e.firstChild;else{if(e==d)break;for(;!e.nextSibling;)if(e=
e.parentNode,e==d)return;e=e.nextSibling}},_processTemplateNode:function(d,e,h){var m=!0,g=this.attachScope||this,k=e(d,"dojoAttachPoint")||e(d,"data-dojo-attach-point");if(k)for(var x=k.split(/\s*,\s*/);k=x.shift();)p.isArray(g[k])?g[k].push(d):g[k]=d,m="containerNode"!=k,this._attachPoints.push(k);if(e=e(d,"dojoAttachEvent")||e(d,"data-dojo-attach-event"))for(k=e.split(/\s*,\s*/),x=p.trim;e=k.shift();)if(e){var v=null;-1!=e.indexOf(":")?(v=e.split(":"),e=x(v[0]),v=x(v[1])):e=x(e);v||(v=e);this._attachEvents.push(h(d,
e,p.hitch(g,v)))}return m},_attach:function(d,e,h){e=e.replace(/^on/,"").toLowerCase();e="dijitclick"==e?a||(a=E("./a11yclick")):c[e]||e;return l(d,e,h)},_detachTemplateNodes:function(){var d=this.attachScope||this;z.forEach(this._attachPoints,function(e){delete d[e]});this._attachPoints=[];z.forEach(this._attachEvents,function(e){e.remove()});this._attachEvents=[]},destroyRendering:function(){this._detachTemplateNodes();this.inherited(arguments)}});p.extend(f,{dojoAttachEvent:"",dojoAttachPoint:""});
return b})},"dijit/form/_FormWidgetMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/mouse dojo/on dojo/sniff dojo/window ../a11y".split(" "),function(E,z,b,w,p,n,l,q,f,c){return z("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text","aria-label":"focusNode",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:!1,intermediateChanges:!1,scrollOnFocus:!0,_setIdAttr:"focusNode",_setDisabledAttr:function(a){this._set("disabled",
a);/^(button|input|select|textarea|optgroup|option|fieldset)$/i.test(this.focusNode.tagName)?(b.set(this.focusNode,"disabled",a),q("trident")&&"readOnly"in this&&b.set(this.focusNode,"readonly",a||this.readOnly)):this.focusNode.setAttribute("aria-disabled",a?"true":"false");this.valueNode&&b.set(this.valueNode,"disabled",a);a?(this._set("hovering",!1),this._set("active",!1),a="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"_setTabIndexAttr"in this?this._setTabIndexAttr:"focusNode",E.forEach(p.isArray(a)?
a:[a],function(d){d=this[d];q("webkit")||c.hasDefaultTabStop(d)?d.setAttribute("tabIndex","-1"):d.removeAttribute("tabIndex")},this)):""!=this.tabIndex&&this.set("tabIndex",this.tabIndex)},_onFocus:function(a){if("mouse"==a&&this.isFocusable())var d=this.own(l(this.focusNode,"focus",function(){h.remove();d.remove()}))[0],e=q("pointer-events")?"pointerup":q("MSPointer")?"MSPointerUp":q("touch-events")?"touchend, mouseup":"mouseup",h=this.own(l(this.ownerDocumentBody,e,p.hitch(this,function(m){h.remove();
d.remove();this.focused&&("touchend"==m.type?this.defer("focus"):this.focus())})))[0];this.scrollOnFocus&&this.defer(function(){f.scrollIntoView(this.domNode)});this.inherited(arguments)},isFocusable:function(){return!this.disabled&&this.focusNode&&"none"!=w.get(this.domNode,"display")},focus:function(){if(!this.disabled&&this.focusNode.focus)try{this.focusNode.focus()}catch(a){}},compare:function(a,d){return"number"==typeof a&&"number"==typeof d?isNaN(a)&&isNaN(d)?0:a-d:a>d?1:a<d?-1:0},onChange:function(){},
_onChangeActive:!1,_handleOnChange:function(a,d){void 0!=this._lastValueReported||null!==d&&this._onChangeActive||(this._resetValue=this._lastValueReported=a);this._pendingOnChange=this._pendingOnChange||typeof a!=typeof this._lastValueReported||0!=this.compare(a,this._lastValueReported);(this.intermediateChanges||d||void 0===d)&&this._pendingOnChange&&(this._lastValueReported=a,this._pendingOnChange=!1,this._onChangeActive&&(this._onChangeHandle&&this._onChangeHandle.remove(),this._onChangeHandle=
this.defer(function(){this._onChangeHandle=null;this.onChange(a)})))},create:function(){this.inherited(arguments);this._onChangeActive=!0},destroy:function(){this._onChangeHandle&&(this._onChangeHandle.remove(),this.onChange(this._lastValueReported));this.inherited(arguments)}})})},"dijit/form/_ButtonMixin":function(){define(["dojo/_base/declare","dojo/dom","dojo/has","../registry"],function(E,z,b,w){var p=E("dijit.form._ButtonMixin"+(b("dojo-bidi")?"_NoBidi":""),null,{label:"",type:"button",__onClick:function(n){n.stopPropagation();
n.preventDefault();this.disabled||this.valueNode.click(n);return!1},_onClick:function(n){if(this.disabled)return n.stopPropagation(),n.preventDefault(),!1;!1===this.onClick(n)&&n.preventDefault();var l=n.defaultPrevented;if(!l&&"submit"==this.type&&!(this.valueNode||this.focusNode).form)for(var q=this.domNode;q.parentNode;q=q.parentNode){var f=w.byNode(q);if(f&&"function"==typeof f._onSubmit){f._onSubmit(n);n.preventDefault();l=!0;break}}return!l},postCreate:function(){this.inherited(arguments);z.setSelectable(this.focusNode,
!1)},onClick:function(){return!0},_setLabelAttr:function(n){this._set("label",n);(this.containerNode||this.focusNode).innerHTML=n;this.onLabelSet()},onLabelSet:function(){}});b("dojo-bidi")&&(p=E("dijit.form._ButtonMixin",p,{onLabelSet:function(){this.inherited(arguments);this.applyTextDir(this.containerNode||this.focusNode)}}));return p})},"dijit/_Container":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/_base/kernel"],function(E,z,b,w){return z("dijit._Container",
null,{buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode)},addChild:function(p,n){var l=this.containerNode;if(0<n){for(l=l.firstChild;0<n;)1==l.nodeType&&n--,l=l.nextSibling;l?n="before":(l=this.containerNode,n="last")}b.place(p.domNode,l,n);this._started&&!p._started&&p.startup()},removeChild:function(p){"number"==typeof p&&(p=this.getChildren()[p]);p&&(p=p.domNode)&&p.parentNode&&p.parentNode.removeChild(p)},hasChildren:function(){return 0<this.getChildren().length},
_getSiblingOfChild:function(p,n){var l=this.getChildren();p=E.indexOf(l,p);return l[p+n]},getIndexOfChild:function(p){return E.indexOf(this.getChildren(),p)}})})},"dijit/_HasDropDown":function(){define("dojo/_base/declare dojo/_base/Deferred dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/has dojo/keys dojo/_base/lang dojo/on dojo/touch ./registry ./focus ./popup ./_FocusMixin".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g){return E("dijit._HasDropDown",g,{_buttonNode:null,
_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:!0,forceWidth:!1,maxHeight:-1,dropDownPosition:["below","above"],_stopClickEvents:!0,_onDropDownMouseDown:function(k){this.disabled||this.readOnly||("MSPointerDown"!=k.type&&k.preventDefault(),this.own(a.once(this.ownerDocument,d.release,c.hitch(this,"_onDropDownMouseUp"))),this.toggleDropDown())},_onDropDownMouseUp:function(k){var x=this.dropDown,v=!1;if(k&&this._opened){var y=n.position(this._buttonNode,!0);if(!(k.pageX>=
y.x&&k.pageX<=y.x+y.w&&k.pageY>=y.y&&k.pageY<=y.y+y.h)){for(y=k.target;y&&!v;)p.contains(y,"dijitPopup")?v=!0:y=y.parentNode;if(v){y=k.target;if(x.onItemClick){for(var u;y&&!(u=e.byNode(y));)y=y.parentNode;if(u&&u.onClick&&u.getParent)u.getParent().onItemClick(u,k)}return}}}this._opened?x.focus&&(!1!==x.autoFocus||"mouseup"==k.type&&!this.hovering)&&(this._focusDropDownTimer=this.defer(function(){x.focus();delete this._focusDropDownTimer})):this.focus&&this.defer("focus")},_onDropDownClick:function(k){this._stopClickEvents&&
(k.stopPropagation(),k.preventDefault())},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var k={after:this.isLeftToRight()?"Right":"Left",before:this.isLeftToRight()?"Left":"Right",above:"Up",below:"Down",left:"Left",right:"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";p.add(this._arrowWrapperNode||this._buttonNode,"dijit"+k+"ArrowButton")},
postCreate:function(){this.inherited(arguments);var k=this.focusNode||this.domNode;this.own(a(this._buttonNode,d.press,c.hitch(this,"_onDropDownMouseDown")),a(this._buttonNode,"click",c.hitch(this,"_onDropDownClick")),a(k,"keydown",c.hitch(this,"_onKey")),a(k,"keyup",c.hitch(this,"_onKeyUp")))},destroy:function(){this._opened&&this.closeDropDown(!0);this.dropDown&&(this.dropDown._destroyed||this.dropDown.destroyRecursive(),delete this.dropDown);this.inherited(arguments)},_onKey:function(k){if(!this.disabled&&
!this.readOnly){var x=this.dropDown,v=k.target;x&&this._opened&&x.handleKey&&!1===x.handleKey(k)?(k.stopPropagation(),k.preventDefault()):x&&this._opened&&k.keyCode==f.ESCAPE?(this.closeDropDown(),k.stopPropagation(),k.preventDefault()):!this._opened&&(k.keyCode==f.DOWN_ARROW||(k.keyCode==f.ENTER||k.keyCode==f.SPACE&&(!this._searchTimer||k.ctrlKey||k.altKey||k.metaKey))&&("input"!==(v.tagName||"").toLowerCase()||v.type&&"text"!==v.type.toLowerCase()))&&(this._toggleOnKeyUp=!0,k.stopPropagation(),
k.preventDefault())}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var k=this.dropDown;k&&k.focus&&this.defer(c.hitch(k,"focus"),1)}},_onBlur:function(){this.closeDropDown(!1);this.inherited(arguments)},isLoaded:function(){return!0},loadDropDown:function(k){k()},loadAndOpenDropDown:function(){var k=new z,x=c.hitch(this,function(){this.openDropDown();k.resolve(this.dropDown)});this.isLoaded()?x():this.loadDropDown(x);return k},toggleDropDown:function(){this.disabled||
this.readOnly||(this._opened?this.closeDropDown(!0):this.loadAndOpenDropDown())},openDropDown:function(){var k=this.dropDown,x=k.domNode,v=this._aroundNode||this.domNode,y=this,u=m.open({parent:this,popup:k,around:v,orient:this.dropDownPosition,maxHeight:this.maxHeight,onExecute:function(){y.closeDropDown(!0)},onCancel:function(){y.closeDropDown(!0)},onClose:function(){w.set(y._popupStateNode,"popupActive",!1);p.remove(y._popupStateNode,"dijitHasDropDownOpen");y._set("_opened",!1)}});if(this.forceWidth||
this.autoWidth&&v.offsetWidth>k._popupWrapper.offsetWidth){v=v.offsetWidth-k._popupWrapper.offsetWidth;var t={w:k.domNode.offsetWidth+v};this._origStyle=x.style.cssText;c.isFunction(k.resize)?k.resize(t):n.setMarginBox(x,t);"R"==u.corner[1]&&(k._popupWrapper.style.left=k._popupWrapper.style.left.replace("px","")-v+"px")}w.set(this._popupStateNode,"popupActive","true");p.add(this._popupStateNode,"dijitHasDropDownOpen");this._set("_opened",!0);this._popupStateNode.setAttribute("aria-expanded","true");
this._popupStateNode.setAttribute("aria-owns",k.id);"presentation"===x.getAttribute("role")||x.getAttribute("aria-labelledby")||x.setAttribute("aria-labelledby",this.id);return u},closeDropDown:function(k){this._focusDropDownTimer&&(this._focusDropDownTimer.remove(),delete this._focusDropDownTimer);this._opened&&(this._popupStateNode.setAttribute("aria-expanded","false"),k&&this.focus&&this.focus(),m.close(this.dropDown),this._opened=!1);this._origStyle&&(this.dropDown.domNode.style.cssText=this._origStyle,
delete this._origStyle)}})})},"dijit/form/ComboButton":function(){define("dojo/_base/declare dojo/keys ../focus ./DropDownButton dojo/text!./templates/ComboButton.html ../a11yclick".split(" "),function(E,z,b,w,p){return E("dijit.form.ComboButton",w,{templateString:p,_setIdAttr:"",_setTabIndexAttr:["focusNode","titleNode"],_setTitleAttr:"titleNode",optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{buttonNode:"dijitButtonNode",titleNode:"dijitButtonContents",_popupStateNode:"dijitDownArrowButton"},
_focusedNode:null,_onButtonKeyDown:function(n){n.keyCode==z[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]&&(b.focus(this._popupStateNode),n.stopPropagation(),n.preventDefault())},_onArrowKeyDown:function(n){n.keyCode==z[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]&&(b.focus(this.titleNode),n.stopPropagation(),n.preventDefault())},focus:function(n){this.disabled||b.focus("start"==n?this.titleNode:this._popupStateNode)}})})},"dijit/form/ToggleButton":function(){define(["dojo/_base/declare","dojo/_base/kernel",
"./Button","./_ToggleButtonMixin"],function(E,z,b,w){return E("dijit.form.ToggleButton",[b,w],{baseClass:"dijitToggleButton",setChecked:function(p){z.deprecated("setChecked("+p+") is deprecated. Use set('checked',"+p+") instead.","","2.0");this.set("checked",p)}})})},"dijit/form/_ToggleButtonMixin":function(){define(["dojo/_base/declare","dojo/dom-attr"],function(E,z){return E("dijit.form._ToggleButtonMixin",null,{checked:!1,_aria_attr:"aria-pressed",_onClick:function(b){var w=this.checked;this._set("checked",
!w);var p=this.inherited(arguments);this.set("checked",p?this.checked:w);return p},_setCheckedAttr:function(b,w){this._set("checked",b);var p=this.focusNode||this.domNode;this._created&&z.get(p,"checked")!=!!b&&z.set(p,"checked",!!b);p.setAttribute(this._aria_attr,String(b));this._handleOnChange(b,w)},postCreate:function(){this.inherited(arguments);var b=this.focusNode||this.domNode;this.checked&&b.setAttribute("checked","checked");void 0===this._resetValue&&(this._lastValueReported=this._resetValue=
this.checked)},reset:function(){this._hasBeenBlurred=!1;this.set("checked",this.params.checked||!1)}})})},"dijit/TooltipDialog":function(){define("dojo/_base/declare dojo/dom-class dojo/has dojo/keys dojo/_base/lang dojo/on ./focus ./layout/ContentPane ./_DialogMixin ./form/_FormMixin ./_TemplatedMixin dojo/text!./templates/TooltipDialog.html ./main".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e){E=E("dijit.TooltipDialog",[q,a,c,f],{title:"",doLayout:!1,autofocus:!0,baseClass:"dijitTooltipDialog",
_firstFocusItem:null,_lastFocusItem:null,templateString:d,_setTitleAttr:"containerNode",postCreate:function(){this.inherited(arguments);this.own(n(this.domNode,"keydown",p.hitch(this,"_onKey")))},orient:function(h,m,g){h={"MR-ML":"dijitTooltipRight","ML-MR":"dijitTooltipLeft","TM-BM":"dijitTooltipAbove","BM-TM":"dijitTooltipBelow","BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight",
"BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft","BR-TL":"dijitTooltipBelow dijitTooltipABLeft","BL-TR":"dijitTooltipBelow dijitTooltipABRight","TL-BR":"dijitTooltipAbove dijitTooltipABRight","TR-BL":"dijitTooltipAbove dijitTooltipABLeft"}[m+"-"+g];z.replace(this.domNode,h,this._currentOrientClass||"");this._currentOrientClass=h},focus:function(){this._getFocusItems();l.focus(this._firstFocusItem)},onOpen:function(h){this.orient(this.domNode,h.aroundCorner,h.corner);var m=h.aroundNodePos;"M"==
h.corner.charAt(0)&&"M"==h.aroundCorner.charAt(0)?(this.connectorNode.style.top=m.y+(m.h-this.connectorNode.offsetHeight>>1)-h.y+"px",this.connectorNode.style.left=""):"M"==h.corner.charAt(1)&&"M"==h.aroundCorner.charAt(1)&&(this.connectorNode.style.left=m.x+(m.w-this.connectorNode.offsetWidth>>1)-h.x+"px");this._onShow()},onClose:function(){this.onHide()},_onKey:function(h){if(h.keyCode==w.ESCAPE)this.defer("onCancel"),h.stopPropagation(),h.preventDefault();else if(h.keyCode==w.TAB){var m=h.target;
this._getFocusItems();this._firstFocusItem==this._lastFocusItem?(h.stopPropagation(),h.preventDefault()):m==this._firstFocusItem&&h.shiftKey?(l.focus(this._lastFocusItem),h.stopPropagation(),h.preventDefault()):m!=this._lastFocusItem||h.shiftKey?h.stopPropagation():(l.focus(this._firstFocusItem),h.stopPropagation(),h.preventDefault())}}});b("dojo-bidi")&&E.extend({_setTitleAttr:function(h){this.containerNode.title=this.textDir&&this.enforceTextDirWithUcc?this.enforceTextDirWithUcc(null,h):h;this._set("title",
h)},_setTextDirAttr:function(h){this._created&&this.textDir==h||(this._set("textDir",h),this.textDir&&this.title&&(this.containerNode.title=this.enforceTextDirWithUcc(null,this.title)))}});return E})},"dijit/layout/ContentPane":function(){define("dojo/_base/kernel dojo/_base/lang ../_Widget ../_Container ./_ContentPaneResizeMixin dojo/string dojo/html dojo/_base/array dojo/_base/declare dojo/_base/Deferred dojo/dom dojo/dom-attr dojo/dom-construct dojo/_base/xhr dojo/i18n dojo/when dojo/i18n!../nls/loading".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g){return f("dijit.layout.ContentPane",[b,w,p],{href:"",content:"",extractContent:!1,parseOnLoad:!0,parserScope:E._scopeName,preventCache:!1,preload:!1,refreshOnShow:!1,loadingMessage:"\x3cspan class\x3d'dijitContentPaneLoading'\x3e\x3cspan class\x3d'dijitInline dijitIconLoading'\x3e\x3c/span\x3e${loadingState}\x3c/span\x3e",errorMessage:"\x3cspan class\x3d'dijitContentPaneError'\x3e\x3cspan class\x3d'dijitInline dijitIconError'\x3e\x3c/span\x3e${errorState}\x3c/span\x3e",
isLoaded:!1,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,_setTitleAttr:null,stopParser:!0,template:!1,markupFactory:function(k,x,v){var y=new v(k,x);return!y.href&&y._contentSetter&&y._contentSetter.parseDeferred&&!y._contentSetter.parseDeferred.isFulfilled()?y._contentSetter.parseDeferred.then(function(){return y}):y},create:function(k,x){if(!(k&&k.template||!x||"href"in k||"content"in k)){x=a.byId(x);for(var v=x.ownerDocument.createDocumentFragment();x.firstChild;)v.appendChild(x.firstChild);
k=z.delegate(k,{content:v})}this.inherited(arguments,[k,x])},postMixInProperties:function(){this.inherited(arguments);var k=m.getLocalization("dijit","loading",this.lang);this.loadingMessage=n.substitute(this.loadingMessage,k);this.errorMessage=n.substitute(this.errorMessage,k)},buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode);this.domNode.removeAttribute("title")},startup:function(){this.inherited(arguments);this._contentSetter&&q.forEach(this._contentSetter.parseResults,
function(k){k._started||k._destroyed||!z.isFunction(k.startup)||(k.startup(),k._started=!0)},this)},_startChildren:function(){q.forEach(this.getChildren(),function(k){k._started||k._destroyed||!z.isFunction(k.startup)||(k.startup(),k._started=!0)});this._contentSetter&&q.forEach(this._contentSetter.parseResults,function(k){k._started||k._destroyed||!z.isFunction(k.startup)||(k.startup(),k._started=!0)},this)},setHref:function(k){E.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.",
"","2.0");return this.set("href",k)},_setHrefAttr:function(k){this.cancel();this.onLoadDeferred=new c(z.hitch(this,"cancel"));this.onLoadDeferred.then(z.hitch(this,"onLoad"));this._set("href",k);this.preload||this._created&&this._isShown()?this._load():this._hrefChanged=!0;return this.onLoadDeferred},setContent:function(k){E.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");this.set("content",k)},_setContentAttr:function(k){this._set("href",
"");this.cancel();this.onLoadDeferred=new c(z.hitch(this,"cancel"));this._created&&this.onLoadDeferred.then(z.hitch(this,"onLoad"));this._setContent(k||"");this._isDownloaded=!1;return this.onLoadDeferred},_getContentAttr:function(){return this.containerNode.innerHTML},cancel:function(){this._xhrDfd&&-1==this._xhrDfd.fired&&this._xhrDfd.cancel();delete this._xhrDfd;this.onLoadDeferred=null},destroy:function(){this.cancel();this.inherited(arguments)},destroyRecursive:function(k){this._beingDestroyed||
this.inherited(arguments)},_onShow:function(){this.inherited(arguments);if(this.href&&!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow))return this.refresh()},refresh:function(){this.cancel();this.onLoadDeferred=new c(z.hitch(this,"cancel"));this.onLoadDeferred.then(z.hitch(this,"onLoad"));this._load();return this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),!0);var k=this,x={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};
z.isObject(this.ioArgs)&&z.mixin(x,this.ioArgs);var v=this._xhrDfd=(this.ioMethod||h.get)(x),y;v.then(function(u){y=u;try{return k._isDownloaded=!0,k._setContent(u,!1)}catch(t){k._onError("Content",t)}},function(u){v.canceled||k._onError("Download",u);delete k._xhrDfd;return u}).then(function(){k.onDownloadEnd();delete k._xhrDfd;return y});delete this._hrefChanged},_onLoadHandler:function(k){this._set("isLoaded",!0);try{this.onLoadDeferred.resolve(k)}catch(x){console.error("Error "+(this.widgetId||
this.id)+" running custom onLoad code: "+x.message)}},_onUnloadHandler:function(){this._set("isLoaded",!1);try{this.onUnload()}catch(k){console.error("Error "+this.widgetId+" running custom onUnload code: "+k.message)}},destroyDescendants:function(k){this.isLoaded&&this._onUnloadHandler();var x=this._contentSetter;q.forEach(this.getChildren(),function(v){v.destroyRecursive?v.destroyRecursive(k):v.destroy&&v.destroy(k);v._destroyed=!0});x&&(q.forEach(x.parseResults,function(v){v._destroyed||(v.destroyRecursive?
v.destroyRecursive(k):v.destroy&&v.destroy(k),v._destroyed=!0)}),delete x.parseResults);k||e.empty(this.containerNode);delete this._singleChild},_setContent:function(k,x){k=this.preprocessContent(k);this.destroyDescendants();var v=this._contentSetter;v&&v instanceof l._ContentSetter||(v=this._contentSetter=new l._ContentSetter({node:this.containerNode,_onError:z.hitch(this,this._onError),onContentError:z.hitch(this,function(t){t=this.onContentError(t);try{this.containerNode.innerHTML=t}catch(r){console.error("Fatal "+
this.id+" could not change content due to "+r.message,r)}})}));var y=z.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:!k.domNode&&this.parseOnLoad,parserScope:this.parserScope,startup:!1,dir:this.dir,lang:this.lang,textDir:this.textDir},this._contentSetterParams||{});y=v.set(z.isObject(k)&&k.domNode?k.domNode:k,y);var u=this;return g(y&&y.then?y:v.parseDeferred,function(){delete u._contentSetterParams;x||(u._started&&(u._startChildren(),u._scheduleLayout()),
u._onLoadHandler(k))})},preprocessContent:function(k){return k},_onError:function(k,x,v){this.onLoadDeferred.reject(x);k=this["on"+k+"Error"].call(this,x);v?console.error(v,x):k&&this._setContent(k,!0)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}})})},"dijit/layout/_ContentPaneResizeMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/lang dojo/query ../registry ../Viewport ./utils".split(" "),
function(E,z,b,w,p,n,l,q,f,c){return z("dijit.layout._ContentPaneResizeMixin",null,{doLayout:!0,isLayoutContainer:!0,startup:function(){if(!this._started){var a=this.getParent();this._childOfLayoutWidget=a&&a.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);this._isShown()&&this._onShow();this._childOfLayoutWidget||this.own(f.on("resize",n.hitch(this,"resize")))}},_checkIfSingleChild:function(){if(this.doLayout){var a=[],d=!1;l("\x3e *",this.containerNode).some(function(e){var h=
q.byNode(e);h&&h.resize?a.push(h):!/script|link|style/i.test(e.nodeName)&&e.offsetHeight&&(d=!0)});this._singleChild=1!=a.length||d?null:a[0];b.toggle(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)}},resize:function(a,d){this._resizeCalled=!0;this._scheduleLayout(a,d)},_scheduleLayout:function(a,d){this._isShown()?this._layout(a,d):(this._needLayout=!0,this._changeSize=a,this._resultSize=d)},_layout:function(a,d){delete this._needLayout;this._wasShown||!1===this.open||this._onShow();
a&&w.setMarginBox(this.domNode,a);var e=this.containerNode;e===this.domNode?(d=d||{},n.mixin(d,a||{}),"h"in d&&"w"in d||(d=n.mixin(w.getMarginBox(e),d)),this._contentBox=c.marginBox2contentBox(e,d)):this._contentBox=w.getContentBox(e);this._layoutChildren()},_layoutChildren:function(){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||w.getContentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else{a=this.getChildren();for(var d,e=0;d=
a[e++];)d.resize&&d.resize()}},_isShown:function(){if(this._childOfLayoutWidget)return this._resizeCalled&&"open"in this?this.open:this._resizeCalled;if("open"in this)return this.open;var a=this.domNode,d=this.domNode.parentNode;return"none"!=a.style.display&&"hidden"!=a.style.visibility&&!b.contains(a,"dijitHidden")&&d&&d.style&&"none"!=d.style.display},_onShow:function(){this._wasShown=!0;this._needLayout&&this._layout(this._changeSize,this._resultSize);this.inherited(arguments)}})})},"dijit/layout/utils":function(){define(["dojo/_base/array",
"dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/lang"],function(E,z,b,w,p){function n(f){return f.substring(0,1).toUpperCase()+f.substring(1)}function l(f,c){var a=f.resize?f.resize(c):b.setMarginBox(f.domNode,c);a?p.mixin(f,a):(p.mixin(f,b.getMarginBox(f.domNode)),p.mixin(f,c))}var q={marginBox2contentBox:function(f,c){var a=w.getComputedStyle(f),d=b.getMarginExtents(f,a),e=b.getPadBorderExtents(f,a);return{l:w.toPixelValue(f,a.paddingLeft),t:w.toPixelValue(f,a.paddingTop),w:c.w-
(d.w+e.w),h:c.h-(d.h+e.h)}},layoutChildren:function(f,c,a,d,e){c=p.mixin({},c);z.add(f,"dijitLayoutContainer");a=E.filter(a,function(h){return"center"!=h.region&&"client"!=h.layoutAlign}).concat(E.filter(a,function(h){return"center"==h.region||"client"==h.layoutAlign}));E.forEach(a,function(h){var m=h.domNode,g=h.region||h.layoutAlign;if(!g)throw Error("No region setting for "+h.id);var k=m.style;k.left=c.l+"px";k.top=c.t+"px";k.position="absolute";z.add(m,"dijitAlign"+n(g));m={};d&&d==h.id&&(m["top"==
h.region||"bottom"==h.region?"h":"w"]=e);"leading"==g&&(g=h.isLeftToRight()?"left":"right");"trailing"==g&&(g=h.isLeftToRight()?"right":"left");"top"==g||"bottom"==g?(m.w=c.w,l(h,m),c.h-=h.h,"top"==g?c.t+=h.h:k.top=c.t+c.h+"px"):"left"==g||"right"==g?(m.h=c.h,l(h,m),c.w-=h.w,"left"==g?c.l+=h.w:k.left=c.l+c.w+"px"):"client"!=g&&"center"!=g||l(h,c)})}};p.setObject("dijit.layout.utils",q);return q})},"dojo/html":function(){define("./_base/kernel ./_base/lang ./_base/array ./_base/declare ./dom ./dom-construct ./parser".split(" "),
function(E,z,b,w,p,n,l){var q=0,f={_secureForInnerHtml:function(c){return c.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")},_emptyNode:n.empty,_setNodeContent:function(c,a){n.empty(c);if(a)if("number"==typeof a&&(a=a.toString()),"string"==typeof a&&(a=n.toDom(a,c.ownerDocument)),!a.nodeType&&z.isArrayLike(a))for(var d=a.length,e=0;e<a.length;e=d==a.length?e+1:0)n.place(a[e],c,"last");else n.place(a,c,"last");return c},_ContentSetter:w("dojo.html._ContentSetter",null,{node:"",
content:"",id:"",cleanContent:!1,extractContent:!1,parseContent:!1,parserScope:E._scopeName,startup:!0,constructor:function(c,a){z.mixin(this,c||{});a=this.node=p.byId(this.node||a);this.id||(this.id=["Setter",a?a.id||a.tagName:"",q++].join("_"))},set:function(c,a){void 0!==c&&(this.content=c);"number"==typeof c&&(c=c.toString());a&&this._mixin(a);this.onBegin();this.setContent();return(c=this.onEnd())&&c.then?c:this.node},setContent:function(){var c=this.node;if(!c)throw Error(this.declaredClass+
": setContent given no node");try{c=f._setNodeContent(c,this.content)}catch(d){var a=this.onContentError(d);try{c.innerHTML=a}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e)}}this.node=c},empty:function(){this.parseDeferred&&(this.parseDeferred.isResolved()||this.parseDeferred.cancel(),delete this.parseDeferred);this.parseResults&&this.parseResults.length&&(b.forEach(this.parseResults,function(c){c.destroy&&c.destroy()}),delete this.parseResults);
n.empty(this.node)},onBegin:function(){var c=this.content;if(z.isString(c)&&(this.cleanContent&&(c=f._secureForInnerHtml(c)),this.extractContent)){var a=c.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);a&&(c=a[1])}this.empty();this.content=c;return this.node},onEnd:function(){this.parseContent&&this._parse();return this.node},tearDown:function(){delete this.parseResults;delete this.parseDeferred;delete this.node;delete this.content},onContentError:function(c){return"Error occurred setting content: "+
c},onExecError:function(c){return"Error occurred executing scripts: "+c},_mixin:function(c){var a={},d;for(d in c)d in a||(this[d]=c[d])},_parse:function(){var c=this.node;try{var a={};b.forEach(["dir","lang","textDir"],function(e){this[e]&&(a[e]=this[e])},this);var d=this;this.parseDeferred=l.parse({rootNode:c,noStart:!this.startup,inherited:a,scope:this.parserScope}).then(function(e){return d.parseResults=e},function(e){d._onError("Content",e,"Error parsing in _ContentSetter#"+d.id)})}catch(e){this._onError("Content",
e,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(c,a,d){c=this["on"+c+"Error"].call(this,a);d?console.error(d,a):c&&f._setNodeContent(this.node,c,!0)}}),set:function(c,a,d){void 0==a&&(console.warn("dojo.html.set: no cont argument provided, using empty string"),a="");"number"==typeof a&&(a=a.toString());return d?(new f._ContentSetter(z.mixin(d,{content:a,node:c}))).set():f._setNodeContent(c,a,!0)}};z.setObject("dojo.html",f);return f})},"dojo/parser":function(){define("require ./_base/kernel ./_base/lang ./_base/array ./_base/config ./dom ./_base/window ./_base/url ./aspect ./promise/all ./date/stamp ./Deferred ./has ./query ./on ./ready".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g){function k(t){return eval("("+t+")")}function x(t){var r=t._nameCaseMap,B=t.prototype;if(!r||r._extendCnt<y){r=t._nameCaseMap={};for(var C in B)"_"!==C.charAt(0)&&(r[C.toLowerCase()]=C);r._extendCnt=y}return r}function v(t,r){r||(r=E);var B=r._dojoParserCtorMap||(r._dojoParserCtorMap={}),C=t.join();if(!B[C]){for(var F=[],A=0,D=t.length;A<D;A++){var G=t[A];F[F.length]=B[G]=B[G]||b.getObject(G)||~G.indexOf("/")&&r(G)}t=F.shift();B[C]=F.length?t.createSubclass?
t.createSubclass(F):t.extend.apply(t,F):t}return B[C]}new Date("X");var y=0;f.after(b,"extend",function(){y++},!0);var u={_clearCache:function(){y++;_ctorMap={}},_functionFromScript:function(t,r){var B="",C="",F=t.getAttribute(r+"args")||t.getAttribute("args");r=t.getAttribute("with");F=(F||"").split(/\s*,\s*/);r&&r.length&&w.forEach(r.split(/\s*,\s*/),function(A){B+="with("+A+"){";C+="}"});return new Function(F,B+t.innerHTML+C)},instantiate:function(t,r,B){r=r||{};B=B||{};var C=(B.scope||z._scopeName)+
"Type",F="data-"+(B.scope||z._scopeName)+"-",A=F+"type",D=F+"mixins",G=[];w.forEach(t,function(H){var L=C in r?r[C]:H.getAttribute(A)||H.getAttribute(C);if(L){var aa=H.getAttribute(D);L=aa?[L].concat(aa.split(/\s*,\s*/)):[L];G.push({node:H,types:L})}});return this._instantiate(G,r,B)},_instantiate:function(t,r,B,C){function F(A){r._started||B.noStart||w.forEach(A,function(D){"function"!==typeof D.startup||D._started||D.startup()});return A}t=w.map(t,function(A){var D=A.ctor||v(A.types,B.contextRequire);
if(!D)throw Error("Unable to resolve constructor for: '"+A.types.join()+"'");return this.construct(D,A.node,r,B,A.scripts,A.inherited)},this);return C?c(t).then(F):F(t)},construct:function(t,r,B,C,F,A){function D(Y){ba&&b.setObject(ba,Y);for(ha=0;ha<la.length;ha++)f[la[ha].advice||"after"](Y,la[ha].method,b.hitch(Y,la[ha].func),!0);for(ha=0;ha<ua.length;ha++)ua[ha].call(Y);for(ha=0;ha<Aa.length;ha++)Y.watch(Aa[ha].prop,Aa[ha].func);for(ha=0;ha<M.length;ha++)m(Y,M[ha].event,M[ha].func);return Y}var G=
t&&t.prototype;C=C||{};var H={};C.defaults&&b.mixin(H,C.defaults);A&&b.mixin(H,A);if(e("dom-attributes-explicit"))var L=r.attributes;else e("dom-attributes-specified-flag")?L=w.filter(r.attributes,function(Y){return Y.specified}):(A=(/^input$|^img$/i.test(r.nodeName)?r:r.cloneNode(!1)).outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,""),L=w.map(A.split(/\s+/),function(Y){var ka=Y.toLowerCase();return{name:Y,value:"LI"==r.nodeName&&"value"==
Y||"enctype"==ka?r.getAttribute(ka):r.getAttributeNode(ka).value}}));var aa=C.scope||z._scopeName;A="data-"+aa+"-";var da={};"dojo"!==aa&&(da[A+"props"]="data-dojo-props",da[A+"type"]="data-dojo-type",da[A+"mixins"]="data-dojo-mixins",da[aa+"type"]="dojotype",da[A+"id"]="data-dojo-id");var ha=0,ia;aa=[];for(var ba,ja;ia=L[ha++];){var pa=ia.name,Ca=pa.toLowerCase();ia=ia.value;switch(da[Ca]||Ca){case "data-dojo-type":case "dojotype":case "data-dojo-mixins":break;case "data-dojo-props":ja=ia;break;
case "data-dojo-id":case "jsid":ba=ia;break;case "data-dojo-attach-point":case "dojoattachpoint":H.dojoAttachPoint=ia;break;case "data-dojo-attach-event":case "dojoattachevent":H.dojoAttachEvent=ia;break;case "class":H["class"]=r.className;break;case "style":H.style=r.style&&r.style.cssText;break;default:if(pa in G||(pa=x(t)[Ca]||pa),pa in G)switch(typeof G[pa]){case "string":H[pa]=ia;break;case "number":H[pa]=ia.length?Number(ia):NaN;break;case "boolean":H[pa]="false"!=ia.toLowerCase();break;case "function":""===
ia||-1!=ia.search(/[^\w\.]+/i)?H[pa]=new Function(ia):H[pa]=b.getObject(ia,!1)||new Function(ia);aa.push(pa);break;default:Ca=G[pa],H[pa]=Ca&&"length"in Ca?ia?ia.split(/\s*,\s*/):[]:Ca instanceof Date?""==ia?new Date(""):"now"==ia?new Date:a.fromISOString(ia):Ca instanceof q?z.baseUrl+ia:k(ia)}else H[pa]=ia}}for(L=0;L<aa.length;L++)da=aa[L].toLowerCase(),r.removeAttribute(da),r[da]=null;if(ja)try{ja=k.call(C.propsThis,"{"+ja+"}"),b.mixin(H,ja)}catch(Y){throw Error(Y.toString()+" in data-dojo-props\x3d'"+
ja+"'");}b.mixin(H,B);F||(F=t&&(t._noScript||G._noScript)?[]:h("\x3e script[type^\x3d'dojo/']",r));var la=[],ua=[],Aa=[],M=[];if(F)for(ha=0;ha<F.length;ha++)da=F[ha],r.removeChild(da),B=da.getAttribute(A+"event")||da.getAttribute("event"),C=da.getAttribute(A+"prop"),ja=da.getAttribute(A+"method"),aa=da.getAttribute(A+"advice"),L=da.getAttribute("type"),da=this._functionFromScript(da,A),B?"dojo/connect"==L?la.push({method:B,func:da}):"dojo/on"==L?M.push({event:B,func:da}):H[B]=da:"dojo/aspect"==L?
la.push({method:ja,advice:aa,func:da}):"dojo/watch"==L?Aa.push({prop:C,func:da}):ua.push(da);t=(F=t.markupFactory||G.markupFactory)?F(H,r,t):new t(H,r);return t.then?t.then(D):D(t)},scan:function(t,r){function B(Ca){if(!Ca.inherited){Ca.inherited={};var la=Ca.node,ua=B(Ca.parent);la={dir:la.getAttribute("dir")||ua.dir,lang:la.getAttribute("lang")||ua.lang,textDir:la.getAttribute(L)||ua.textDir};for(var Aa in la)la[Aa]&&(Ca.inherited[Aa]=la[Aa])}return Ca.inherited}var C=[],F=[],A={},D=(r.scope||z._scopeName)+
"Type",G="data-"+(r.scope||z._scopeName)+"-",H=G+"type",L=G+"textdir";G+="mixins";var aa=t.firstChild,da=r.inherited;if(!da){da=function Aa(la,ua){return la.getAttribute&&la.getAttribute(ua)||la.parentNode&&Aa(la.parentNode,ua)};da={dir:da(t,"dir"),lang:da(t,"lang"),textDir:da(t,L)};for(var ha in da)da[ha]||delete da[ha]}ha={inherited:da};for(var ia,ba;;)if(aa)if(1!=aa.nodeType)aa=aa.nextSibling;else if(ia&&"script"==aa.nodeName.toLowerCase())(da=aa.getAttribute("type"))&&/^dojo\/\w/i.test(da)&&ia.push(aa),
aa=aa.nextSibling;else if(ba)aa=aa.nextSibling;else if(da=aa.getAttribute(H)||aa.getAttribute(D),t=aa.firstChild,da||t&&(3!=t.nodeType||t.nextSibling)){ba=null;if(da){var ja=aa.getAttribute(G);ia=ja?[da].concat(ja.split(/\s*,\s*/)):[da];try{ba=v(ia,r.contextRequire)}catch(Ca){}ba||w.forEach(ia,function(Ca){~Ca.indexOf("/")&&!A[Ca]&&(A[Ca]=!0,F[F.length]=Ca)});ja=ba&&!ba.prototype._noScript?[]:null;ha={types:ia,ctor:ba,parent:ha,node:aa,scripts:ja};ha.inherited=B(ha);C.push(ha)}else ha={node:aa,scripts:ia,
parent:ha};ia=ja;ba=aa.stopParser||ba&&ba.prototype.stopParser&&!r.template;aa=t}else aa=aa.nextSibling;else{if(!ha||!ha.node)break;aa=ha.node.nextSibling;ba=!1;ha=ha.parent;ia=ha.scripts}var pa=new d;F.length?(e("dojo-debug-messages")&&console.warn("WARNING: Modules being Auto-Required: "+F.join(", ")),(r.contextRequire||E)(F,function(){pa.resolve(w.filter(C,function(Ca){if(!Ca.ctor)try{Ca.ctor=v(Ca.types,r.contextRequire)}catch(Aa){}for(var la=Ca.parent;la&&!la.types;)la=la.parent;var ua=Ca.ctor&&
Ca.ctor.prototype;Ca.instantiateChildren=!(ua&&ua.stopParser&&!r.template);Ca.instantiate=!la||la.instantiate&&la.instantiateChildren;return Ca.instantiate}))})):pa.resolve(C);return pa.promise},_require:function(t,r){t=k("{"+t.innerHTML+"}");var B=[],C=[],F=new d;r=r&&r.contextRequire||E;for(var A in t)B.push(A),C.push(t[A]);r(C,function(){for(var D=0;D<B.length;D++)b.setObject(B[D],arguments[D]);F.resolve(arguments)});return F.promise},_scanAmd:function(t,r){var B=new d,C=B.promise;B.resolve(!0);
var F=this;h("script[type\x3d'dojo/require']",t).forEach(function(A){C=C.then(function(){return F._require(A,r)});A.parentNode.removeChild(A)});return C},parse:function(t,r){!t||"string"==typeof t||"nodeType"in t||(r=t,t=r.rootNode);var B=t?n.byId(t):l.body();r=r||{};var C=r.template?{template:!0}:{},F=[],A=this;t=this._scanAmd(B,r).then(function(){return A.scan(B,r)}).then(function(D){return A._instantiate(D,C,r,!0)}).then(function(D){return F=F.concat(D)}).otherwise(function(D){console.error("dojo/parser::parse() error",
D);throw D;});b.mixin(F,t);return F}};z.parser=u;p.parseOnLoad&&g(100,u,"parse");return u})},"dojo/_base/url":function(){define(["./kernel"],function(E){var z=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,b=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/,w=function(){for(var p=arguments,n=[p[0]],l=1;l<p.length;l++)if(p[l]){var q=new w(p[l]+"");n=new w(n[0]+"");if(""==q.path&&!q.scheme&&!q.authority&&!q.query)null!=q.fragment&&(n.fragment=q.fragment),q=n;else if(!q.scheme&&
(q.scheme=n.scheme,!q.authority&&(q.authority=n.authority,"/"!=q.path.charAt(0)))){n=(n.path.substring(0,n.path.lastIndexOf("/")+1)+q.path).split("/");for(var f=0;f<n.length;f++)"."==n[f]?f==n.length-1?n[f]="":(n.splice(f,1),f--):0<f&&(1!=f||""!=n[0])&&".."==n[f]&&".."!=n[f-1]&&(f==n.length-1?(n.splice(f,1),n[f-1]=""):(n.splice(f-1,2),f-=2));q.path=n.join("/")}n=[];q.scheme&&n.push(q.scheme,":");q.authority&&n.push("//",q.authority);n.push(q.path);q.query&&n.push("?",q.query);q.fragment&&n.push("#",
q.fragment)}this.uri=n.join("");p=this.uri.match(z);this.scheme=p[2]||(p[1]?"":null);this.authority=p[4]||(p[3]?"":null);this.path=p[5];this.query=p[7]||(p[6]?"":null);this.fragment=p[9]||(p[8]?"":null);null!=this.authority&&(p=this.authority.match(b),this.user=p[3]||null,this.password=p[4]||null,this.host=p[6]||p[7],this.port=p[9]||null)};w.prototype.toString=function(){return this.uri};return E._Url=w})},"dojo/promise/all":function(){define(["../_base/array","../_base/lang","../Deferred","../when"],
function(E,z,b,w){var p=E.some;return function(n){var l,q;z.isArray(n)?q=n:n&&"object"===typeof n&&(l=n);var f=[];if(l){q=[];for(var c in l)Object.hasOwnProperty.call(l,c)&&(f.push(c),q.push(l[c]));var a={}}else q&&(a=[]);if(!q||!q.length)return(new b).resolve(a);var d=new b;d.promise.always(function(){a=f=null});var e=q.length;p(q,function(h,m){l||f.push(m);w(h,function(g){d.isFulfilled()||(a[f[m]]=g,0===--e&&d.resolve(a))},d.reject);return d.isFulfilled()});return d.promise}})},"dojo/date/stamp":function(){define(["../_base/lang",
"../_base/array"],function(E,z){var b={};E.setObject("dojo.date.stamp",b);b.fromISOString=function(w,p){b._isoRegExp||(b._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/);var n=b._isoRegExp.exec(w);w=null;if(n){n.shift();n[1]&&n[1]--;n[6]&&(n[6]*=1E3);p&&(p=new Date(p),z.forEach(z.map("FullYear Month Date Hours Minutes Seconds Milliseconds".split(" "),function(f){return p["get"+f]()}),function(f,c){n[c]=n[c]||f}));w=new Date(n[0]||
1970,n[1]||0,n[2]||1,n[3]||0,n[4]||0,n[5]||0,n[6]||0);100>n[0]&&w.setFullYear(n[0]||1970);var l=0,q=n[7]&&n[7].charAt(0);"Z"!=q&&(l=60*(n[8]||0)+(Number(n[9])||0),"-"!=q&&(l*=-1));q&&(l-=w.getTimezoneOffset());l&&w.setTime(w.getTime()+6E4*l)}return w};b.toISOString=function(w,p){var n=function(c){return 10>c?"0"+c:c};p=p||{};var l=[],q=p.zulu?"getUTC":"get",f="";"time"!=p.selector&&(f=w[q+"FullYear"](),f=["0000".substr((f+"").length)+f,n(w[q+"Month"]()+1),n(w[q+"Date"]())].join("-"));l.push(f);"date"!=
p.selector&&(f=[n(w[q+"Hours"]()),n(w[q+"Minutes"]()),n(w[q+"Seconds"]())].join(":"),q=w[q+"Milliseconds"](),p.milliseconds&&(f+="."+(100>q?"0":"")+n(q)),p.zulu?f+="Z":"time"!=p.selector&&(w=w.getTimezoneOffset(),p=Math.abs(w),f+=(0<w?"-":"+")+n(Math.floor(p/60))+":"+n(p%60)),l.push(f));return l.join("T")};return b})},"dijit/_DialogMixin":function(){define(["dojo/_base/declare","./a11y"],function(E,z){return E("dijit._DialogMixin",null,{actionBarTemplate:"",execute:function(){},onCancel:function(){},
onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var b=z._getTabNavigable(this.domNode);this._firstFocusItem=b.lowest||b.first||this.closeButtonNode||this.domNode;this._lastFocusItem=b.last||b.highest||this._firstFocusItem}})})},"dijit/form/_FormMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/on dojo/window".split(" "),function(E,z,b,w,p,n){return z("dijit.form._FormMixin",null,
{state:"",_getDescendantFormWidgets:function(l){var q=[];E.forEach(l||this.getChildren(),function(f){"value"in f?q.push(f):q=q.concat(this._getDescendantFormWidgets(f.getChildren()))},this);return q},reset:function(){E.forEach(this._getDescendantFormWidgets(),function(l){l.reset&&l.reset()})},validate:function(){var l=!1;return E.every(E.map(this._getDescendantFormWidgets(),function(q){q._hasBeenBlurred=!0;var f=q.disabled||!q.validate||q.validate();f||l||(n.scrollIntoView(q.containerNode||q.domNode),
q.focus(),l=!0);return f}),function(q){return q})},setValues:function(l){b.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",l)},_setValueAttr:function(l){var q={};E.forEach(this._getDescendantFormWidgets(),function(d){d.name&&(q[d.name]||(q[d.name]=[])).push(d)});for(var f in q)if(q.hasOwnProperty(f)){var c=q[f],a=w.getObject(f,!1,l);void 0!==a&&(a=[].concat(a),"boolean"==typeof c[0].checked?E.forEach(c,function(d){d.set("value",
-1!=E.indexOf(a,d._get("value")))}):c[0].multiple?c[0].set("value",a):E.forEach(c,function(d,e){d.set("value",a[e])}))}},getValues:function(){b.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var l={};E.forEach(this._getDescendantFormWidgets(),function(q){var f=q.name;if(f&&!q.disabled){var c=q.get("value");"boolean"==typeof q.checked?/Radio/.test(q.declaredClass)?!1!==c?w.setObject(f,c,l):(c=w.getObject(f,
!1,l),void 0===c&&w.setObject(f,null,l)):(q=w.getObject(f,!1,l),q||(q=[],w.setObject(f,q,l)),!1!==c&&q.push(c)):(q=w.getObject(f,!1,l),"undefined"!=typeof q?w.isArray(q)?q.push(c):w.setObject(f,[q,c],l):w.setObject(f,c,l))}});return l},isValid:function(){return""==this.state},onValidStateChange:function(){},_getState:function(){var l=E.map(this._descendants,function(q){return q.get("state")||""});return 0<=E.indexOf(l,"Error")?"Error":0<=E.indexOf(l,"Incomplete")?"Incomplete":""},disconnectChildren:function(){},
connectChildren:function(l){this._descendants=this._getDescendantFormWidgets();E.forEach(this._descendants,function(q){q._started||q.startup()});l||this._onChildChange()},_onChildChange:function(l){l&&"state"!=l&&"disabled"!=l||this._set("state",this._getState());l&&"value"!=l&&"disabled"!=l&&"checked"!=l||(this._onChangeDelayTimer&&this._onChangeDelayTimer.remove(),this._onChangeDelayTimer=this.defer(function(){delete this._onChangeDelayTimer;this._set("value",this.get("value"))},10))},startup:function(){this.inherited(arguments);
this._descendants=this._getDescendantFormWidgets();this.value=this.get("value");this.state=this._getState();var l=this;this.own(p(this.containerNode,"attrmodified-state, attrmodified-disabled, attrmodified-value, attrmodified-checked",function(q){q.target!=l.domNode&&l._onChildChange(q.type.replace("attrmodified-",""))}));this.watch("state",function(q,f,c){this.onValidStateChange(""==c)})},destroy:function(){this.inherited(arguments)}})})},"esri/main":function(){define(["./kernel","dojo/i18n!./nls/jsapi",
"./config","./sniff"],function(E,z){E.bundle=z;return E})},"esri/kernel":function(){define(["dojo/_base/kernel","dojo/_base/config","dojo/has"],function(E,z,b){var w=function(){return this}(),p=w.location,n=p.pathname,l=p.protocol;p={version:"3.39",_appBaseUrl:l+"//"+p.host+n.substring(0,n.lastIndexOf(n.split("/")[n.split("/").length-1]))};z.noGlobals||(w.esri=p);E.isAsync||b.add("extend-esri",1);(p.dijit=p.dijit||{})._arcgisUrl=("http:"===l||"https:"===l?l:"http:")+"//www.arcgis.com/sharing/rest";
return p})},"esri/config":function(){define(["dojo/_base/config","dojo/topic","dojo/has","./kernel"],function(E,z,b,w){var p=function(){return this}(),n={defaults:{screenDPI:96,geometryService:null,kmlService:null,map:{width:400,height:400,layerNamePrefix:"layer",graphicsLayerNamePrefix:"graphicsLayer",slider:{left:"30px",top:"30px",width:null,height:"200px"},sliderLabel:{tick:5,labels:null,style:"width:2em; font-family:Verdana; font-size:75%;"},sliderChangeImmediate:!0,zoomSymbol:{color:[0,0,0,64],
outline:{color:[255,0,0,255],width:1.25,style:"esriSLSSolid"},style:"esriSFSSolid"},zoomDuration:500,zoomRate:25,zoomAnimationThrottled:!1,panDuration:350,panRate:25,logoLink:"http://www.esri.com"},autoSpatialIndexing:p.Worker&&!1,io:{errorHandler:function(l,q){z.publish("esri.Error",[l])},proxyUrl:null,alwaysUseProxy:!1,useCors:"with-credentials",corsEnabledServers:[/^https?:\/\/.+\.arcgis\.com(\/|$)/i,"server.arcgisonline.com","services.arcgisonline.com","www.arcgis.com","js.arcgis.com","jsdev.arcgis.com",
"jsqa.arcgis.com","tiles.arcgis.com","tiles1.arcgis.com","tiles2.arcgis.com","tiles3.arcgis.com","tiles4.arcgis.com","basemaps.arcgis.com","basemapsbeta.arcgis.com","basemaps-api.arcgis.com","elevation3d.arcgis.com","services.arcgis.com","services1.arcgis.com","services2.arcgis.com","services3.arcgis.com","services4.arcgis.com","services5.arcgis.com","services6.arcgis.com","services7.arcgis.com","services8.arcgis.com","services9.arcgis.com","cdn.arcgis.com","cdn-a.arcgis.com","cdn-b.arcgis.com","static.arcgis.com",
"utility.arcgis.com","utility.arcgisonline.com","geocode.arcgis.com","geoenrich.arcgis.com","qaext.arcgis.com","staticqa.arcgis.com","tilesqa.arcgis.com","servicesqa.arcgis.com","servicesqa1.arcgis.com","servicesqa2.arcgis.com","servicesqa3.arcgis.com","geocodeqa.arcgis.com","geoenrichqa.arcgis.com","dev.arcgis.com","devext.arcgis.com","localvtiles.arcgis.com","staticdev.arcgis.com","tilesdevext.arcgis.com","elevation3ddev.arcgis.com","servicesdev.arcgis.com","servicesdev1.arcgis.com","servicesdev2.arcgis.com",
"servicesdev3.arcgis.com","geocodedev.arcgis.com","geoenrichdev.arcgis.com","basemapsdev.arcgis.com","basemapsdev-api.arcgis.com","basemapsbetadev.arcgis.com"],corsDetection:p.cordova?!1:!0,corsDetectionTimeout:15,corsStatus:{},webTierAuthServers:[],proxyRules:[],postLength:2E3,timeout:6E4,useWorkers:"on-request",maxRequestWorkers:5,httpsDomains:"arcgis.com arcgisonline.com esrikr.com premiumservices.blackbridge.com esripremium.accuweather.com gbm.digitalglobe.com firstlook.digitalglobe.com msi.digitalglobe.com".split(" ")},
workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}}}};b("extend-esri")&&(w.config=n);E.noGlobals||(p.esriConfig=n);return n})},"esri/sniff":function(){define(["dojo/_base/sniff","dojo/global","./kernel"],function(E,z,b){var w=E("ff"),p=E("ie"),n=void 0===p&&7<=E("trident"),l=E("edge"),q=E("webkit"),f=E("opera"),c=E("chrome"),a=E("safari"),d=navigator.userAgent,e;(e=d.match(/(iPhone|iPad|CPU)\s+OS\s+(\d+_\d+)/i))&&E.add("esri-iphone",parseFloat(e[2].replace("_",".")));(e=d.match(/Android\s+(\d+(\.\d+)*)/i))&&
E.add("esri-android",parseFloat(e[1]));(e=d.match(/Fennec\/(\d+\.\d+)/i))&&E.add("esri-fennec",parseFloat(e[1]));0<=d.indexOf("BlackBerry")&&0<=d.indexOf("WebKit")&&E.add("esri-blackberry",1);E.add("esri-touch",E("esri-iphone")||E("esri-android")||E("esri-blackberry")||6<=E("esri-fennec")||(w||q)&&(document.createTouch||"ontouchstart"in z||z.TouchEvent&&0<navigator.maxTouchPoints)?!0:!1);(e=d.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i))&&E.add("esri-mobile",!!e);E.add("esri-pointer",
!w&&(navigator.pointerEnabled||navigator.msPointerEnabled||!!z.PointerEvent));b._getDOMAccessor=function(m){var g="";w?g="Moz":q?g="Webkit":p?g="ms":f&&(g="O");return g+m.charAt(0).toUpperCase()+m.substr(1)};E.add("esri-phonegap",!!z.cordova);E.add("esri-cors",E("esri-phonegap")||z.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest);E.add("esri-file-upload",z.FormData&&z.FileList?!0:!1);E.add("esri-script-sandbox",function(){return"MessageChannel"in z&&"HTMLIFrameElement"in z&&"sandbox"in HTMLIFrameElement.prototype});
E.add("esri-secure-context",function(){if("isSecureContext"in z)return z.isSecureContext;if(z.location&&z.location.origin)return 0===z.location.origin.indexOf("https:")});E.add("esri-wasm","WebAssembly"in z);E.add("esri-workers",z.Worker?!0:!1);E.add("esri-featurelayer-webgl",!1);if(d=E("esri-featurelayer-webgl")){var h=E("esri-mobile");e=h?1:2;h=h?1:3;"object"===typeof d?(d.maxDrillLevel=null==d.maxDrillLevel?e:d.maxDrillLevel,d.maxRecordCountFactor=null==d.maxRecordCountFactor?h:d.maxRecordCountFactor,
d.enablePBFQuery=null==d.enablePBFQuery?!0:d.enablePBFQuery):E.add("esri-featurelayer-webgl",{maxDrillLevel:e,maxRecordCountFactor:h,enablePBFQuery:!0},null,!0)}E.add("esri-featurelayer-webgl-labeling",!1);E.add("esri-pbf",!p||10<=p);E.add("esri-featurelayer-pbf",!0);E.add("esri-transforms",n||l||9<=p||3.5<=w||4<=c||3.1<=a||10.5<=f||3.2<=E("esri-iphone")||2.1<=E("esri-android"));E.add("esri-transitions",n||l||10<=p||4<=w||4<=c||3.1<=a||10.5<=f||3.2<=E("esri-iphone")||2.1<=E("esri-android"));E.add("esri-transforms3d",
n||l||10<=w||12<=c||4<=a||3.2<=E("esri-iphone")||3<=E("esri-android"));E.add("esri-url-encodes-apostrophe",function(){if(!z.document)return!1;var m=z.document.createElement("a");m.href="?'";return-1<m.href.indexOf("?%27")});3>E("esri-android")&&(E.add("esri-transforms",!1,!1,!0),E.add("esri-transitions",!1,!1,!0),E.add("esri-transforms3d",!1,!1,!0));E.add("esri-will-change",E("esri-transforms")&&(52<=c||11.1<=a));b._css=function(m){var g=E("esri-transforms3d");void 0!==m&&null!==m?g=m:g&&(c||a&&!E("esri-iphone"))&&
(g=!1);var k=g?"translate3d(":"translate(",x=g?c?",-1px)":",0px)":")",v=g?"scale3d(":"scale(",y=g?",1)":")",u=g?"rotate3d(0,0,1,":"rotate(",t=g?"matrix3d(":"matrix(",r=g?",0,0,":",",B=g?",0,0,0,0,1,0,":",",C=g?",0,1)":")";return{names:{transition:q&&"-webkit-transition"||w&&"MozTransition"||f&&"OTransition"||p&&"msTransition"||"transition",transform:q&&"-webkit-transform"||w&&"MozTransform"||f&&"OTransform"||p&&"msTransform"||"transform",transformName:q&&"-webkit-transform"||w&&"-moz-transform"||
f&&"-o-transform"||p&&"-ms-transform"||"transform",origin:q&&"-webkit-transform-origin"||w&&"MozTransformOrigin"||f&&"OTransformOrigin"||p&&"msTransformOrigin"||"transformOrigin",endEvent:q&&"webkitTransitionEnd"||w&&"transitionend"||f&&"oTransitionEnd"||p&&"MSTransitionEnd"||"transitionend"},translate:function(F,A){return k+F+"px,"+A+"px"+x},scale:function(F){return v+F+","+F+y},rotate:function(F){return u+F+"deg)"},matrix:function(F){return t+F.xx+","+F.xy+r+F.yx+","+F.yy+B+F.dx.toFixed(10)+(w&&
59>=w?"px,":",")+F.dy.toFixed(10)+(w&&59>=w?"px":"")+C},getScaleFromMatrix:function(F){if(!F)return 1;F=F.toLowerCase();var A=-1<F.indexOf("matrix3d")?"matrix3d(":"matrix(";return Number(F.substring(A.length,F.indexOf(",")))}}};E("extend-esri")&&(b.isiPhone=E("esri-iphone"),b.isAndroid=E("esri-android"),b.isFennec=E("esri-fennec"),b.isBlackBerry=E("esri-blackberry"),b.isTouchEnabled=E("esri-touch"),b.isPointerEnabled=E("esri-pointer"),b._hasCors=E("esri-cors"),b._hasFileUpload=E("esri-file-upload"),
b._hasTransforms=E("esri-transforms"),b._hasTransitions=E("esri-transitions"),b._has3DTransforms=E("esri-transforms3d"));return E})},"esri/map":function(){define("require dojo/_base/kernel dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/_base/event dojo/on dojo/aspect dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dijit/a11yclick dijit/registry ./kernel ./config ./sniff ./lang ./_coremap ./MapNavigationManager dojo/i18n!./nls/jsapi".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y,u,t,r,B){var C={up:"panUp",right:"panRight",down:"panDown",left:"panLeft"},F={upperRight:"panUpperRight",lowerRight:"panLowerRight",lowerLeft:"panLowerLeft",upperLeft:"panUpperLeft"},A=w.connect,D=w.disconnect,G=e.create,H=m.set,L=p.hitch,aa=h.getMarginBox,da=z.deprecated,ha=p.mixin,ia=0;z=b(t,{declaredClass:"esri.Map",constructor:function(ba,ja){ja=ja||{};ha(this,{_slider:null,_navDiv:null,_mapParams:ha({attributionWidth:.45,slider:!0,nav:!1,logo:!0,
sliderStyle:"small",sliderPosition:"top-left",sliderOrientation:"vertical",autoResize:!0},ja)});ha(this,{isMapNavigation:null!=ja.isMapNavigation?ja.isMapNavigation:!0,isDoubleClickZoom:null!=ja.isDoubleClickZoom?ja.isDoubleClickZoom:!0,isClickRecenter:null!=ja.isClickRecenter?ja.isClickRecenter:!0,isPan:null!=ja.isPan?ja.isPan:!0,isRubberBandZoom:null!=ja.isRubberBandZoom?ja.isRubberBandZoom:!0,isPinchZoom:null!=ja.isPinchZoom?ja.isPinchZoom:!0,isKeyboardNavigation:null!=ja.isKeyboardNavigation?
ja.isKeyboardNavigation:!0,isScrollWheel:null!=ja.isScrollWheel?ja.isScrollWheel:!0,isShiftDoubleClickZoom:!1,isScrollWheelZoom:!1,isPanArrows:!1,isZoomSlider:!1});p.isFunction(x._css)&&(x._css=x._css(this._mapParams.force3DTransforms),this.force3DTransforms=this._mapParams.force3DTransforms);ba=y("esri-transforms")&&y("esri-transitions");this.navigationMode=this._mapParams.navigationMode||ba&&"css-transforms"||"classic";"css-transforms"!==this.navigationMode||ba||(this.navigationMode="classic");
this.fadeOnZoom=u.isDefined(this._mapParams.fadeOnZoom)?this._mapParams.fadeOnZoom:"css-transforms"===this.navigationMode;"css-transforms"!==this.navigationMode&&(this.fadeOnZoom=!1);this.setMapCursor("default");this.smartNavigation=ja&&ja.smartNavigation;if(!(u.isDefined(this.smartNavigation)||!y("mac")||y("esri-touch")||y("esri-pointer")||3.5>=y("ff"))){var pa=navigator.userAgent.match(/Mac\s+OS\s+X\s+([\d]+)(\.|_)([\d]+)\D/i);pa&&u.isDefined(pa[1])&&u.isDefined(pa[3])&&(ba=parseInt(pa[1],10),pa=
parseInt(pa[3],10),this.smartNavigation=10<ba||10===ba&&6<=pa)}this.showAttribution=u.isDefined(this._mapParams.showAttribution)?this._mapParams.showAttribution:!0;this._onLoadHandler_connect=A(this,"onLoad",this,"_onLoadInitNavsHandler");var Ca=G("div",{class:"esriControlsBR"+(this._mapParams.nav?" withPanArrows":"")},this.root);if(this.showAttribution)if(ba=p.getObject("esri.dijit.Attribution",!1))this._initAttribution(ba,Ca);else{var la=ia++,ua=this;this._rids&&this._rids.push(la);E(["./dijit/Attribution"],
function(Aa){var M=ua._rids?n.indexOf(ua._rids,la):-1;-1!==M&&(ua._rids.splice(M,1),ua._initAttribution(Aa,Ca))})}this._mapParams.logo&&(ba={},6===y("ie")&&(ba.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled\x3d'true', sizingMethod\x3d'crop', src\x3d'"+E.toUrl("./images/map/logo-med.png")+"')"),this._ogol=G("div",{style:ba,tabIndex:"0",title:"Esri"},Ca),this._setLogoSize(),this._onMapResizeLogo_connect=A(this,"onResize",this,"_setLogoSize"),this._ogol_connect=A(this._ogol,g,this,
"_openLogoLink"));this.navigationManager=new r(this);ja&&ja.basemap&&(this._onLoadFix=!0,this.setBasemap(ja.basemap),this._onLoadFix=!1);if(this.autoResize=this._mapParams.autoResize)ja=this._getEnclosingResizableWidget(this.container)||window,ba=this.resize,this._rszSignal=q.pausable(ja,"resize",ba),this._oriSignal=q.pausable(window,"orientationchange",ba),f.after(ja,"resize",ba,!0),this._startResizeTimer()},_startResizeTimer:function(){clearTimeout(this._persistentTimer);this._persistentTimer=setTimeout(this._timedResize,
2*this.resizeDelay)},_getEnclosingResizableWidget:function(ba){var ja=k.getEnclosingWidget(ba);return ja?ja.resize?ja:this._getEnclosingResizableWidget(ba.parentNode):ja},_setLogoSize:function(){this._ogol&&(25E4>this.root.clientWidth*this.root.clientHeight?(d.remove(this._ogol,"logo-med"),d.add(this._ogol,"logo-sm")):(d.remove(this._ogol,"logo-sm"),d.add(this._ogol,"logo-med")))},_initAttribution:function(ba,ja){ja=G("span",{class:"esriAttribution"},ja,"first");H(ja,"maxWidth",Math.floor(this.width*
this._mapParams.attributionWidth)+"px");this._connects.push(A(ja,g,function(){d.contains(this,"esriAttributionOpen")?d.remove(this,"esriAttributionOpen"):this.scrollWidth>this.clientWidth&&d.add(this,"esriAttributionOpen")}));this.attribution=new ba({map:this},ja)},_cleanUp:function(){this.disableMapNavigation();this.navigationManager.destroy();var ba=this._slider;ba&&ba.destroy&&!ba._destroyed&&ba.destroy();ba=this._navDiv;var ja=this.attribution;ba&&e.destroy(ba);ja&&ja.destroy();this._connects.push(this._slider_connect,
this._ogol_connect,this._rszSignal,this._oriSignal);n.forEach(this._connects,D);clearInterval(this._persistentTimer);this.attribution=this.navigationManager=this._rids=this._connects=this._slider_connect=this._ogol_connect=this._rszSignal=this._oriSignal=this._persistentTimer=null;this.inherited("_cleanUp",arguments)},_isPanningOrZooming:function(){return this.__panning||this.__zooming},_canZoom:function(ba){var ja=this.getLevel();return!this.__tileInfo||!(ja===this.getMinZoom()&&0>ba||ja===this.getMaxZoom()&&
0<ba)},_onLoadInitNavsHandler:function(){this._evalMapNavigation();this._createNav();if("small"===this._mapParams.sliderStyle||!this._createSlider)this._createSimpleSlider();else if(this._mapParams.slider){var ba=-1!==this._getSliderClass(!0).indexOf("Horizontal");ba=[ba?"dijit.form.HorizontalSlider":"dijit.form.VerticalSlider",ba?"dijit.form.HorizontalRule":"dijit.form.VerticalRule",ba?"dijit.form.HorizontalRuleLabels":"dijit.form.VerticalRuleLabels"];if(n.some(ba,function(Ca){return!p.getObject(Ca,
!1)})){ba=n.map(ba,function(Ca){return Ca.replace(/\./g,"/")});var ja=ia++,pa=this;this._rids&&this._rids.push(ja);E(ba,function(){var Ca=pa._rids?n.indexOf(pa._rids,ja):-1;-1!==Ca&&(pa._rids.splice(Ca,1),pa._createSlider.apply(pa,arguments))})}else ba=n.map(ba,function(Ca){return p.getObject(Ca,!1)}),this._createSlider.apply(this,ba)}D(this._onLoadHandler_connect)},_createNav:function(){if(this._mapParams.nav){var ba,ja=d.add,pa=this.id;this._navDiv=G("div",{id:pa+"_navdiv"},this.root);ja(this._navDiv,
"navDiv");var Ca=this.width/2,la=this.height/2;for(ba in C){var ua=C[ba];var Aa=G("div",{id:pa+"_pan_"+ba},this._navDiv);ja(Aa,"fixedPan "+ua);if("up"===ba||"down"===ba){var M=parseInt(aa(Aa).w,10)/2;H(Aa,{left:Ca-M+"px",zIndex:30})}else M=parseInt(aa(Aa).h,10)/2,H(Aa,{top:la-M+"px",zIndex:30});this._connects.push(A(Aa,"onclick",L(this,this[ua])))}this._onMapResizeNavHandler_connect=A(this,"onResize",this,"_onMapResizeNavHandler");for(ba in F)ua=F[ba],Aa=G("div",{id:pa+"_pan_"+ba,style:{zIndex:30}},
this._navDiv),ja(Aa,"fixedPan "+ua),this._connects.push(A(Aa,"onclick",L(this,this[ua])));this.isPanArrows=!0}},_onMapResizeNavHandler:function(ba,ja,pa){ba=this.id;ja/=2;pa/=2;var Ca=c.byId,la;for(la in C){var ua=Ca(ba+"_pan_"+la);if("up"===la||"down"===la){var Aa=parseInt(aa(ua).w,10)/2;H(ua,"left",ja-Aa+"px")}else Aa=parseInt(aa(ua).h,10)/2,H(ua,"top",pa-Aa+"px")}},_createSimpleSlider:function(){if(this._mapParams.slider){var ba=this._slider=G("div",{id:this.id+"_zoom_slider",class:this._getSliderClass(),
style:{zIndex:30}}),ja=G("div",{class:"esriSimpleSliderIncrementButton",tabIndex:"0",role:"button"},ba),pa=G("div",{class:"esriSimpleSliderDecrementButton",tabIndex:"0",role:"button"},ba);this._addZoomButtonTooltips(ja,pa);this._incButton=ja;this._decButton=pa;this._simpleSliderZoomHandler(null,null,null,this.getLevel());var Ca=B.widgets.zoomSlider;this._addZoomButtonIcon(ja,"+",Ca.zoomIn);this._addZoomButtonIcon(pa,"\x26minus;",Ca.zoomOut);8>y("ie")&&d.add(pa,"dj_ie67Fix");this._connects.push(A(ja,
g,this,this._simpleSliderChangeHandler));this._connects.push(A(pa,g,this,this._simpleSliderChangeHandler));(-1<this.getMaxZoom()||-1<this.getMinZoom())&&this._connects.push(A(this,"onZoomEnd",this,this._simpleSliderZoomHandler));10>y("ie")&&c.setSelectable(ba,!1);this.root.appendChild(ba);this.isZoomSlider=!0}},_simpleSliderChangeHandler:function(ba){l.stop(ba);ba=-1!==ba.currentTarget.className.indexOf("IncrementButton")?!0:!1;this._extentUtil({numLevels:ba?1:-1})},_simpleSliderZoomHandler:function(ba,
ja,pa,Ca){var la;ba=this._incButton;ja=this._decButton;-1<Ca&&Ca===this.getMaxZoom()?la=ba:-1<Ca&&Ca===this.getMinZoom()&&(la=ja);la?(d.add(la,"esriSimpleSliderDisabledButton"),d.remove(la===ba?ja:ba,"esriSimpleSliderDisabledButton")):(d.remove(ba,"esriSimpleSliderDisabledButton"),d.remove(ja,"esriSimpleSliderDisabledButton"))},_getSliderClass:function(ba){ba=ba?"Large":"Simple";var ja=this._mapParams.sliderOrientation,pa=this._mapParams.sliderPosition||"";ja=ja&&"horizontal"===ja.toLowerCase()?"esri"+
ba+"SliderHorizontal":"esri"+ba+"SliderVertical";if(pa)switch(pa.toLowerCase()){case "top-left":pa="esri"+ba+"SliderTL";break;case "top-right":pa="esri"+ba+"SliderTR";break;case "bottom-left":pa="esri"+ba+"SliderBL";break;case "bottom-right":pa="esri"+ba+"SliderBR"}return"esri"+ba+"Slider "+ja+" "+pa},_addZoomButtonIcon:function(ba,ja,pa){e.create("span",{"aria-hidden":"true",role:"presentation",innerHTML:ja},ba);e.create("span",{class:"esriIconFallbackText",innerHTML:pa},ba)},_addZoomButtonTooltips:function(ba,
ja){var pa=B.widgets.zoomSlider;a.set(ba,"title",pa.zoomIn);a.set(ja,"title",pa.zoomOut)},_createSlider:function(ba,ja,pa){if(this._mapParams.slider){var Ca=G("div",{id:this.id+"_zoom_slider"},this.root),la=v.defaults.map,ua=this._getSliderClass(!0),Aa=-1!==ua.indexOf("Horizontal"),M=this.getNumLevels();if(0<M){var Y,ka,N=this._mapParams.sliderLabels,Z=!!N,na=!1!==N;if(na){var za=Aa?"bottomDecoration":"rightDecoration";if(!N)for(N=[],la=0;la<M;la++)N[la]="";n.forEach([{class:"esriLargeSliderTicks",
container:za,count:M,dijitClass:ja},{class:Z&&"esriLargeSliderLabels",container:za,count:M,labels:N,dijitClass:pa}],function(S){var U=G("div"),ma=S.dijitClass;delete S.dijitClass;Ca.appendChild(U);ma===ja?Y=new ma(S,U):ka=new ma(S,U)})}ba=this._slider=new ba({id:Ca.id,class:ua,minimum:this.getMinZoom(),maximum:this.getMaxZoom(),discreteValues:M,value:this.getLevel(),clickSelect:!0,intermediateChanges:!0,style:"z-index:30;"},Ca);ba.startup();na&&(Y.startup(),ka.startup());this._slider_connect=A(ba,
"onChange",this,"_onSliderChangeHandler");this._connects.push(A(this,"onExtentChange",this,"_onExtentChangeSliderHandler"));this._connects.push(A(ba._movable,"onFirstMove",this,"_onSliderMoveStartHandler"))}else{ba=this._slider=new ba({id:Ca.id,class:ua,minimum:0,maximum:2,discreteValues:3,value:1,clickSelect:!0,intermediateChanges:la.sliderChangeImmediate,style:"height:50px; z-index:30;"},Ca);pa=ba.domNode.firstChild.childNodes;for(la=1;3>=la;la++)H(pa[la],"visibility","hidden");ba.startup();this._slider_connect=
A(ba,"onChange",this,"_onDynSliderChangeHandler");this._connects.push(A(this,"onExtentChange",this,"_onExtentChangeDynSliderHandler"))}la=ba.incrementButton;pa=ba.decrementButton;Aa?this._addZoomButtonTooltips(la,pa):this._addZoomButtonTooltips(pa,la);la.style.outline="none";pa.style.outline="none";ba.sliderHandle.style.outline="none";ba._onKeyPress=function(){};if(Aa=ba._movable){var va=Aa.onMouseDown;Aa.onMouseDown=function(S){9>y("ie")&&1!==S.button||va.apply(this,arguments)}}this.isZoomSlider=
!0}},_onSliderMoveStartHandler:function(){D(this._slider_connect);D(this._slidermovestop_connect);this._slider_connect=A(this._slider,"onChange",this,"_onSliderChangeDragHandler");this._slidermovestop_connect=A(this._slider._movable,"onMoveStop",this,"_onSliderMoveEndHandler")},_onSliderChangeDragHandler:function(ba){this._extentUtil({targetLevel:ba})},_onSliderMoveEndHandler:function(){D(this._slider_connect);D(this._slidermovestop_connect)},_onSliderChangeHandler:function(ba){this.setLevel(ba)},
_updateSliderValue:function(ba,ja){D(this._slider_connect);var pa=this._slider,Ca=pa._onChangeActive;pa._onChangeActive=!1;pa.set("value",ba);pa._onChangeActive=Ca;this._slider_connect=A(pa,"onChange",this,ja)},_onExtentChangeSliderHandler:function(ba,ja,pa,Ca){D(this._slidermovestop_connect);this._updateSliderValue(Ca.level,"_onSliderChangeHandler")},_onDynSliderChangeHandler:function(ba){this._extentUtil({numLevels:0<ba?1:-1})},_onExtentChangeDynSliderHandler:function(){this._updateSliderValue(1,
"_onDynSliderChangeHandler")},_openLogoLink:function(ba){window.open(v.defaults.map.logoLink,"_blank");l.stop(ba)},enableMapNavigation:function(){this.isMapNavigation||(this.isMapNavigation=!0,this._evalMapNavigation())},disableMapNavigation:function(){this.isMapNavigation&&(this.isMapNavigation=!1,this._evalMapNavigation())},_evalMapNavigation:function(){this.isMapNavigation?this.navigationManager.enableNavigation():this.navigationManager.disableNavigation()},_evalNavigationFeature:function(ba){if(this.isMapNavigation&&
this["is"+ba])this.navigationManager["enable"+ba]();else this.navigationManager["disable"+ba]()},enableDoubleClickZoom:function(){this.isDoubleClickZoom||(this.isDoubleClickZoom=!0,this._evalNavigationFeature("DoubleClickZoom"))},disableDoubleClickZoom:function(){this.isDoubleClickZoom&&(this.isDoubleClickZoom=!1,this._evalNavigationFeature("DoubleClickZoom"))},enableShiftDoubleClickZoom:function(){this.isShiftDoubleClickZoom||(da(this.declaredClass+": Map.(enable/disable)ShiftDoubleClickZoom deprecated. Shift-Double-Click zoom behavior will not be supported.",
null,"v2.0"),this.navigationManager.enableShiftDoubleClickZoom(),this.isShiftDoubleClickZoom=!0)},disableShiftDoubleClickZoom:function(){this.isShiftDoubleClickZoom&&(da(this.declaredClass+": Map.(enable/disable)ShiftDoubleClickZoom deprecated. Shift-Double-Click zoom behavior will not be supported.",null,"v2.0"),this.navigationManager.disableShiftDoubleClickZoom(),this.isShiftDoubleClickZoom=!1)},enableClickRecenter:function(){this.isClickRecenter||(this.isClickRecenter=!0,this._evalNavigationFeature("ClickRecenter"))},
disableClickRecenter:function(){this.isClickRecenter&&(this.isClickRecenter=!1,this._evalNavigationFeature("ClickRecenter"))},enablePan:function(){this.isPan||(this.isPan=!0,this._evalNavigationFeature("Pan"))},disablePan:function(){this.isPan&&(this.isPan=!1,this._evalNavigationFeature("Pan"))},enableRubberBandZoom:function(){this.isRubberBandZoom||(this.isRubberBandZoom=!0,this._evalNavigationFeature("RubberBandZoom"))},disableRubberBandZoom:function(){this.isRubberBandZoom&&(this.isRubberBandZoom=
!1,this._evalNavigationFeature("RubberBandZoom"))},enablePinchZoom:function(){this.isPinchZoom||(this.isPinchZoom=!0,this._evalNavigationFeature("PinchZoom"))},disablePinchZoom:function(){this.isPinchZoom&&(this.isPinchZoom=!1,this._evalNavigationFeature("PinchZoom"))},enableKeyboardNavigation:function(){this.isKeyboardNavigation||(this.isKeyboardNavigation=!0,this._evalNavigationFeature("KeyboardNavigation"))},disableKeyboardNavigation:function(){this.isKeyboardNavigation&&(this.isKeyboardNavigation=
!1,this._evalNavigationFeature("KeyboardNavigation"))},enableScrollWheel:function(){this.isScrollWheel||(this.isScrollWheel=!0,this._evalNavigationFeature("ScrollWheel"))},disableScrollWheel:function(){this.isScrollWheel&&(this.isScrollWheel=!1,this._evalNavigationFeature("ScrollWheel"))},enableScrollWheelZoom:function(){this.isScrollWheelZoom||(this.navigationManager.enableScrollWheelZoom(),this.isScrollWheelZoom=!0)},disableScrollWheelZoom:function(){this.isScrollWheelZoom&&(this.navigationManager.disableScrollWheelZoom(),
this.isScrollWheelZoom=!1)},enableScrollWheelPan:function(){this.isScrollWheelPan||this.navigationManager.enableScrollWheelPan()},disableScrollWheelPan:function(){this.isScrollWheelPan&&this.navigationManager.disableScrollWheelPan()},showPanArrows:function(){this._navDiv&&(this._navDiv.style.display="block",this.isPanArrows=!0)},hidePanArrows:function(){this._navDiv&&(this._navDiv.style.display="none",this.isPanArrows=!1)},showZoomSlider:function(){this._slider&&(H(this._slider.domNode||this._slider,
"visibility","inherit"),this.isZoomSlider=!0)},hideZoomSlider:function(){this._slider&&(H(this._slider.domNode||this._slider,"visibility","hidden"),this.isZoomSlider=!1)},onClick:function(ba){ba.graphic||(ba.graphic=this.syncHitTestForWebGL(ba))}});y("extend-esri")&&(x.Map=z);return z})},"esri/lang":function(){define("dojo/_base/array dojo/_base/json dojo/_base/kernel dojo/_base/lang dojo/date dojo/has dojo/number dojo/date/locale ./kernel".split(" "),function(E,z,b,w,p,n,l,q,f){function c(v,y,u,
t){(y=y&&y[v])?y={formatType:y.formatType,options:y}:t&&-1!==E.indexOf(t.properties||"",v)?y={formatType:t.formatter||"DateString",options:null}:u&&-1!==E.indexOf(u.properties||"",v)&&(y={formatType:u.formatter||"NumberFormat",options:null});return y}function a(v,y,u){return[w.isString(v)?v.split(""):v,y||b.global,w.isString(u)?new Function("item","index","array",u):u]}function d(v){return void 0!==v&&null!==v}function e(v){return d(v)?v:""}function h(v,y,u,t){var r=u.match(/([^\(]+)(\([^\)]+\))?/i);
u=w.trim(r[1]);var B=r[2]?w.trim(r[2]):null;r=y[v];t=t||(B?z.fromJson(B.replace(/^\(/,"({").replace(/\)$/,"})")):{});B=t.utcOffset;if(-1===E.indexOf(g,u))u=w.getObject(u),w.isFunction(u)&&(r=u(r,v,y,t));else if("number"===typeof r||"string"===typeof r&&r&&!isNaN(Number(r)))switch(r=Number(r),u){case "NumberFormat":return l.format(r,t);case "DateString":v=new Date(r);if(t.local||t.systemLocale)return t.systemLocale?v.toLocaleDateString()+(t.hideTime?"":" "+v.toLocaleTimeString()):v.toDateString()+
(t.hideTime?"":" "+v.toTimeString());v=v.toUTCString();t.hideTime&&(v=v.replace(/\s+\d\d:\d\d:\d\d\s+(utc|gmt)/i,""));return v;case "DateFormat":return v=new Date(r),d(B)&&(v=p.add(v,"minute",v.getTimezoneOffset()-B)),q.format(v,t)}return e(r)}function m(v,y){var u;if(y)for(u in v)v.hasOwnProperty(u)&&(void 0===v[u]?delete v[u]:v[u]instanceof Object&&m(v[u],!0));else for(u in v)v.hasOwnProperty(u)&&void 0===v[u]&&delete v[u];return v}var g=["NumberFormat","DateString","DateFormat"],k=/<\/?[^>]+>/g,
x={valueOf:function(v,y){for(var u in v)if(v[u]==y)return u;return null},stripTags:function(v){if(v){var y=typeof v;if("string"===y)v=v.replace(k,"");else if("object"===y)for(var u in v)(y=v[u])&&"string"===typeof y&&(y=y.replace(k,"")),v[u]=y}return v},substitute:function(v,y,u){if(d(u))if(w.isObject(u)){var t=u.first;var r=u.dateFormat;var B=u.numberFormat;var C=u.format}else t=u;if(y&&"${*}"!==y)return w.replace(y,w.hitch({obj:v},function(A,D){var G=D.split(":");return 1<G.length?(D=G[0],G.shift(),
(A=C&&C[G[0]])?G=A.formatType:(G=G.join(":"),A=null),h(D,this.obj,G,A)):(A=c(D,C,B,r))?h(D,this.obj,A.formatType,A.options):e(this.obj[D])}),/\$\{([^\}]+)\}/g);y=[];for(var F in v)if(u=(u=c(F,C,B,r))?h(F,v,u.formatType,u.options):v[F],y.push(F+" \x3d "+e(u)+"\x3cbr/\x3e"),t)break;return y.join("")},filter:function(v,y,u){y=a(v,u,y);u={};var t;v=y[0];for(t in v)y[2].call(y[t],v[t],t,v)&&(u[t]=v[t]);return u},startsWith:function(v,y,u){u=u||0;return v.indexOf(y,u)===u},endsWith:function(v,y,u){if("number"!==
typeof u||!isFinite(u)||Math.floor(u)!==u||u>v.length)u=v.length;u-=y.length;v=v.indexOf(y,u);return-1!==v&&v===u},isDefined:d,fixJson:m,isObject:function(v){return v&&"object"===typeof v},isString:function(v){return"string"===typeof v},mixin:function(v,y){for(var u in y)y.hasOwnProperty(u)&&(v[u]=y[u]);return v},clone2DArray:function(v){if(v=v?v.slice(0):null){var y,u=v.length;for(y=0;y<u;y++)v[y]=v[y]?v[y].slice(0):null}return v},clone3DArray:function(v){if(v=v?v.slice(0):null){var y,u=v.length;
for(y=0;y<u;y++){v[y]=v[y]?v[y].slice(0):null;var t=v[y];if(t){var r,B=t.length;for(r=0;r<B;r++)t[r]=t[r]?t[r].slice(0):null}}}return v}};n("extend-esri")&&(w.mixin(f,x),f._isDefined=d,f._getParts=a,f._sanitize=m);return x})},"dojo/date":function(){define(["./has","./_base/lang"],function(E,z){var b={getDaysInMonth:function(w){var p=w.getMonth();return 1==p&&b.isLeapYear(w)?29:[31,28,31,30,31,30,31,31,30,31,30,31][p]},isLeapYear:function(w){w=w.getFullYear();return!(w%400)||!(w%4)&&!!(w%100)},getTimezoneName:function(w){var p=
w.toString(),n="",l=p.indexOf("(");if(-1<l)n=p.substring(++l,p.indexOf(")"));else if(l=/([A-Z\/]+) \d{4}$/,p=p.match(l))n=p[1];else if(p=w.toLocaleString(),l=/ ([A-Z\/]+)$/,p=p.match(l))n=p[1];return"AM"==n||"PM"==n?"":n},compare:function(w,p,n){w=new Date(+w);p=new Date(+(p||new Date));"date"==n?(w.setHours(0,0,0,0),p.setHours(0,0,0,0)):"time"==n&&(w.setFullYear(0,0,0),p.setFullYear(0,0,0));return w>p?1:w<p?-1:0},add:function(w,p,n){var l=new Date(+w),q=!1,f="Date";switch(p){case "day":break;case "weekday":if(p=
n%5)var c=parseInt(n/5);else p=0<n?5:-5,c=0<n?(n-5)/5:(n+5)/5;var a=w.getDay(),d=0;6==a&&0<n?d=1:0==a&&0>n&&(d=-1);a+=p;if(0==a||6==a)d=0<n?2:-2;n=7*c+p+d;break;case "year":f="FullYear";q=!0;break;case "week":n*=7;break;case "quarter":n*=3;case "month":q=!0;f="Month";break;default:f="UTC"+p.charAt(0).toUpperCase()+p.substring(1)+"s"}if(f)l["set"+f](l["get"+f]()+n);q&&l.getDate()<w.getDate()&&l.setDate(0);return l},difference:function(w,p,n){p=p||new Date;n=n||"day";var l=p.getFullYear()-w.getFullYear(),
q=1;switch(n){case "quarter":w=w.getMonth();p=p.getMonth();q=Math.floor(p/3)+1+4*l-(Math.floor(w/3)+1);break;case "weekday":l=Math.round(b.difference(w,p,"day"));n=parseInt(b.difference(w,p,"week"));if(0==l%7)l=5*n;else{q=0;var f=w.getDay(),c=p.getDay();n=parseInt(l/7);p=l%7;w=new Date(w);w.setDate(w.getDate()+7*n);w=w.getDay();if(0<l)switch(!0){case 6==f:q=-1;break;case 0==f:q=0;break;case 6==c:q=-1;break;case 0==c:q=-2;break;case 5<w+p:q=-2}else if(0>l)switch(!0){case 6==f:q=0;break;case 0==f:q=
1;break;case 6==c:q=2;break;case 0==c:q=1;break;case 0>w+p:q=2}l=l+q-2*n}q=l;break;case "year":q=l;break;case "month":q=p.getMonth()-w.getMonth()+12*l;break;case "week":q=parseInt(b.difference(w,p,"day")/7);break;case "day":q/=24;case "hour":q/=60;case "minute":q/=60;case "second":q/=1E3;case "millisecond":q*=p.getTime()-w.getTime()}return Math.round(q)}};z.mixin(z.getObject("dojo.date",!0),b);return b})},"dojo/number":function(){define(["./_base/lang","./i18n","./i18n!./cldr/nls/number","./string",
"./regexp"],function(E,z,b,w,p){var n={};E.setObject("dojo.number",n);n.format=function(q,f){f=E.mixin({},f||{});var c=z.normalizeLocale(f.locale);c=z.getLocalization("dojo.cldr","number",c);f.customs=c;c=f.pattern||c[(f.type||"decimal")+"Format"];return isNaN(q)||Infinity==Math.abs(q)?null:n._applyPattern(q,c,f)};n._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;n._applyPattern=function(q,f,c){c=c||{};var a=c.customs.group,d=c.customs.decimal;f=f.split(";");var e=f[0];f=f[0>q?1:0]||"-"+e;if(-1!=f.indexOf("%"))q*=
100;else if(-1!=f.indexOf("\u2030"))q*=1E3;else if(-1!=f.indexOf("\u00a4"))a=c.customs.currencyGroup||a,d=c.customs.currencyDecimal||d,f=f.replace(/([\s\xa0\u202f]*)(\u00a4{1,3})([\s\xa0\u202f]*)/,function(m,g,k,x){return(m=c[["symbol","currency","displayName"][k.length-1]]||c.currency||"")?g+m+x:""});else if(-1!=f.indexOf("E"))throw Error("exponential notation not supported");var h=n._numberPatternRE;e=e.match(h);if(!e)throw Error("unable to find a number expression in pattern: "+f);!1===c.fractional&&
(c.places=0);return f.replace(h,n._formatAbsolute(q,e[0],{decimal:d,group:a,places:c.places,round:c.round}))};n.round=function(q,f,c){c=10/(c||10);return(c*+q).toFixed(f)/c};if(0==(.9).toFixed()){var l=n.round;n.round=function(q,f,c){var a=Math.pow(10,-f||0),d=Math.abs(q);if(!q||d>=a)a=0;else if(d/=a,.5>d||.95<=d)a=0;return l(q,f,c)+(0<q?a:-a)}}n._formatAbsolute=function(q,f,c){c=c||{};!0===c.places&&(c.places=0);Infinity===c.places&&(c.places=6);f=f.split(".");var a="string"==typeof c.places&&c.places.indexOf(","),
d=c.places;a?d=c.places.substring(a+1):0<=d||(d=(f[1]||[]).length);0>c.round||(q=n.round(q,d,c.round));q=String(Math.abs(q)).split(".");var e=q[1]||"";f[1]||c.places?(a&&(c.places=c.places.substring(0,a)),a=void 0!==c.places?c.places:f[1]&&f[1].lastIndexOf("0")+1,a>e.length&&(q[1]=w.pad(e,a,"0",!0)),d<e.length&&(q[1]=e.substr(0,d))):q[1]&&q.pop();d=f[0].replace(",","");a=d.indexOf("0");-1!=a&&(a=d.length-a,a>q[0].length&&(q[0]=w.pad(q[0],a)),-1==d.indexOf("#")&&(q[0]=q[0].substr(q[0].length-a)));
d=f[0].lastIndexOf(",");var h;if(-1!=d){var m=f[0].length-d-1;f=f[0].substr(0,d);d=f.lastIndexOf(",");-1!=d&&(h=f.length-d-1)}f=[];for(d=q[0];d;)a=d.length-m,f.push(0<a?d.substr(a):d),d=0<a?d.slice(0,a):"",h&&(m=h,h=void 0);q[0]=f.reverse().join(c.group||",");return q.join(c.decimal||".")};n.regexp=function(q){return n._parseInfo(q).regexp};n._parseInfo=function(q){q=q||{};var f=z.normalizeLocale(q.locale);f=z.getLocalization("dojo.cldr","number",f);var c=q.pattern||f[(q.type||"decimal")+"Format"],
a=f.group,d=f.decimal,e=1;if(-1!=c.indexOf("%"))e/=100;else if(-1!=c.indexOf("\u2030"))e/=1E3;else{var h=-1!=c.indexOf("\u00a4");h&&(a=f.currencyGroup||a,d=f.currencyDecimal||d)}f=c.split(";");1==f.length&&f.push("-"+f[0]);f=p.buildGroupRE(f,function(m){m="(?:"+p.escapeString(m,".")+")";return m.replace(n._numberPatternRE,function(g){var k={signed:!1,separator:q.strict?a:[a,""],fractional:q.fractional,decimal:d,exponent:!1};g=g.split(".");var x=q.places;1==g.length&&1!=e&&(g[1]="###");1==g.length||
0===x?k.fractional=!1:(void 0===x&&(x=q.pattern?g[1].lastIndexOf("0")+1:Infinity),x&&void 0==q.fractional&&(k.fractional=!0),!q.places&&x<g[1].length&&(x+=","+g[1].length),k.places=x);g=g[0].split(",");1<g.length&&(k.groupSize=g.pop().length,1<g.length&&(k.groupSize2=g.pop().length));return"("+n._realNumberRegexp(k)+")"})},!0);h&&(f=f.replace(/([\s\xa0\u202f]*)(\u00a4{1,3})([\s\xa0\u202f]*)/g,function(m,g,k,x){m=p.escapeString(q[["symbol","currency","displayName"][k.length-1]]||q.currency||"");if(!m)return"";
g=g?"[\\s\\xa0\\u202f]":"";x=x?"[\\s\\xa0\\u202f]":"";return q.strict?g+m+x:(g&&(g+="*"),x&&(x+="*"),"(?:"+g+m+x+")?")}));return{regexp:f.replace(/[\xa0\u202f ]/g,"[\\s\\xa0\\u202f]"),group:a,decimal:d,factor:e}};n.parse=function(q,f){f=n._parseInfo(f);q=(new RegExp("^"+f.regexp+"$")).exec(q);if(!q)return NaN;var c=q[1];if(!q[1]){if(!q[2])return NaN;c=q[2];f.factor*=-1}c=c.replace(new RegExp("["+f.group+"\\s\\xa0\\u202f]","g"),"").replace(f.decimal,".");return c*f.factor};n._realNumberRegexp=function(q){q=
q||{};"places"in q||(q.places=Infinity);"string"!=typeof q.decimal&&(q.decimal=".");"fractional"in q&&!/^0/.test(q.places)||(q.fractional=[!0,!1]);"exponent"in q||(q.exponent=[!0,!1]);"eSigned"in q||(q.eSigned=[!0,!1]);var f=n._integerRegexp(q),c=p.buildGroupRE(q.fractional,function(d){var e="";d&&0!==q.places&&(e="\\"+q.decimal,e=Infinity==q.places?"(?:"+e+"\\d+)?":e+("\\d{"+q.places+"}"));return e},!0),a=p.buildGroupRE(q.exponent,function(d){return d?"([eE]"+n._integerRegexp({signed:q.eSigned})+
")":""});f+=c;c&&(f="(?:(?:"+f+")|(?:"+c+"))");return f+a};n._integerRegexp=function(q){q=q||{};"signed"in q||(q.signed=[!0,!1]);"separator"in q?"groupSize"in q||(q.groupSize=3):q.separator="";var f=p.buildGroupRE(q.signed,function(a){return a?"[-+]":""},!0),c=p.buildGroupRE(q.separator,function(a){if(!a)return"(?:\\d+)";a=p.escapeString(a);" "==a?a="\\s":"\u00a0"==a?a="\\s\\xa0":"\u202f"==a&&(a="\\s\\u202f");var d=q.groupSize,e=q.groupSize2;return e?(a="(?:0|[1-9]\\d{0,"+(e-1)+"}(?:["+a+"]\\d{"+
e+"})*["+a+"]\\d{"+d+"})",0<d-e?"(?:"+a+"|(?:0|[1-9]\\d{0,"+(d-1)+"}))":a):"(?:0|[1-9]\\d{0,"+(d-1)+"}(?:["+a+"]\\d{"+d+"})*)"},!0);return f+c};return n})},"dojo/regexp":function(){define(["./_base/kernel","./_base/lang"],function(E,z){var b={};z.setObject("dojo.regexp",b);b.escapeString=function(w,p){return w.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,function(n){return p&&-1!=p.indexOf(n)?n:"\\"+n})};b.buildGroupRE=function(w,p,n){if(!(w instanceof Array))return p(w);for(var l=[],q=0;q<w.length;q++)l.push(p(w[q]));
return b.group(l.join("|"),n)};b.group=function(w,p){return"("+(p?"?:":"")+w+")"};return b})},"dojo/date/locale":function(){define("../_base/lang ../_base/array ../date ../cldr/supplemental ../i18n ../regexp ../string ../i18n!../cldr/nls/gregorian module".split(" "),function(E,z,b,w,p,n,l,q,f){function c(k,x,v,y){return y.replace(/([a-z])\1*/ig,function(u){var t=u.charAt(0);u=u.length;var r=["abbr","wide","narrow"];switch(t){case "G":var B=x[4>u?"eraAbbr":"eraNames"][0>k.getFullYear()?0:1];break;
case "y":B=k.getFullYear();switch(u){case 1:break;case 2:if(!v.fullYear){B=String(B);B=B.substr(B.length-2);break}default:var C=!0}break;case "Q":case "q":B=Math.ceil((k.getMonth()+1)/3);C=!0;break;case "M":case "L":B=k.getMonth();3>u?(B+=1,C=!0):(t=["months","L"==t?"standAlone":"format",r[u-3]].join("-"),B=x[t][B]);break;case "w":B=e._getWeekOfYear(k,0);C=!0;break;case "d":B=k.getDate();C=!0;break;case "D":B=e._getDayOfYear(k);C=!0;break;case "e":case "c":if(B=k.getDay(),2>u){B=(B-w.getFirstDayOfWeek(v.locale)+
8)%7;break}case "E":B=k.getDay();3>u?(B+=1,C=!0):(t=["days","c"==t?"standAlone":"format",r[u-3]].join("-"),B=x[t][B]);break;case "a":t=12>k.getHours()?"am":"pm";B=v[t]||x["dayPeriods-format-wide-"+t];break;case "h":case "H":case "K":case "k":C=k.getHours();switch(t){case "h":B=C%12||12;break;case "H":B=C;break;case "K":B=C%12;break;case "k":B=C||24}C=!0;break;case "m":B=k.getMinutes();C=!0;break;case "s":B=k.getSeconds();C=!0;break;case "S":B=Math.round(k.getMilliseconds()*Math.pow(10,u-3));C=!0;
break;case "v":case "z":if(B=e._getZone(k,!0,v))break;u=4;case "Z":t=e._getZone(k,!1,v);t=[0>=t?"+":"-",l.pad(Math.floor(Math.abs(t)/60),2),l.pad(Math.abs(t)%60,2)];4==u&&(t.splice(0,0,"GMT"),t.splice(3,0,":"));B=t.join("");break;default:throw Error("dojo.date.locale.format: invalid pattern char: "+y);}C&&(B=l.pad(B,u));return B})}function a(k,x,v,y){var u=function(B){return B};x=x||u;v=v||u;y=y||u;var t=k.match(/(''|[^'])+/g),r="'"==k.charAt(0);z.forEach(t,function(B,C){B?(t[C]=(r?v:x)(B.replace(/''/g,
"'")),r=!r):t[C]=""});return y(t.join(""))}function d(k,x,v,y){y=n.escapeString(y);v.strict||(y=y.replace(" a"," ?a"));return y.replace(/([a-z])\1*/ig,function(u){var t=u.charAt(0);var r=u.length,B="",C="";v.strict?(1<r&&(B="0{"+(r-1)+"}"),2<r&&(C="0{"+(r-2)+"}")):(B="0?",C="0{0,2}");switch(t){case "y":t="\\d{2,4}";break;case "M":case "L":2<r?(t=x["months-"+("L"==t?"standAlone":"format")+"-"+h[r-3]].slice(0).join("|"),v.strict||(t=t.replace(/\./g,""),t="(?:"+t+")\\.?")):t="1[0-2]|"+B+"[1-9]";break;
case "D":t="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+B+"[1-9][0-9]|"+C+"[1-9]";break;case "d":t="3[01]|[12]\\d|"+B+"[1-9]";break;case "w":t="[1-4][0-9]|5[0-3]|"+B+"[1-9]";break;case "E":case "e":case "c":t=".+?";break;case "h":t="1[0-2]|"+B+"[1-9]";break;case "k":t="1[01]|"+B+"\\d";break;case "H":t="1\\d|2[0-3]|"+B+"\\d";break;case "K":t="1\\d|2[0-4]|"+B+"[1-9]";break;case "m":case "s":t="[0-5]\\d";break;case "S":t="\\d{"+r+"}";break;case "a":r=v.am||x["dayPeriods-format-wide-am"];B=v.pm||x["dayPeriods-format-wide-pm"];
t=r+"|"+B;v.strict||(r!=r.toLowerCase()&&(t+="|"+r.toLowerCase()),B!=B.toLowerCase()&&(t+="|"+B.toLowerCase()),-1!=t.indexOf(".")&&(t+="|"+t.replace(/\./g,"")));t=t.replace(/\./g,"\\.");break;default:t=".*"}k&&k.push(u);return"("+t+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}var e={};E.setObject(f.id.replace(/\//g,"."),e);e._getZone=function(k,x,v){return x?b.getTimezoneName(k):k.getTimezoneOffset()};e.format=function(k,x){x=x||{};var v=p.normalizeLocale(x.locale),y=x.formatLength||"short";v=e._getGregorianBundle(v);
var u=[];k=E.hitch(this,c,k,v,x);if("year"==x.selector)return a(v["dateFormatItem-yyyy"]||"yyyy",k);var t;"date"!=x.selector&&(t=x.timePattern||v["timeFormat-"+y])&&u.push(a(t,k));"time"!=x.selector&&(t=x.datePattern||v["dateFormat-"+y])&&u.push(a(t,k));return 1==u.length?u[0]:v["dateTimeFormat-"+y].replace(/'/g,"").replace(/\{(\d+)\}/g,function(r,B){return u[B]})};e.regexp=function(k){return e._parseInfo(k).regexp};e._parseInfo=function(k){k=k||{};var x=p.normalizeLocale(k.locale);x=e._getGregorianBundle(x);
var v=k.formatLength||"short",y=k.datePattern||x["dateFormat-"+v],u=k.timePattern||x["timeFormat-"+v];v="date"==k.selector?y:"time"==k.selector?u:x["dateTimeFormat-"+v].replace(/\{(\d+)\}/g,function(r,B){return[u,y][B]});var t=[];return{regexp:a(v,E.hitch(this,d,t,x,k)),tokens:t,bundle:x}};e.parse=function(k,x){var v=/[\u200E\u200F\u202A\u202E]/g,y=e._parseInfo(x),u=y.tokens,t=y.bundle;k=(new RegExp("^"+y.regexp.replace(v,"")+"$",y.strict?"":"i")).exec(k&&k.replace(v,""));if(!k)return null;var r=
["abbr","wide","narrow"],B=[1970,0,1,0,0,0,0],C="";k=z.every(k,function(A,D){if(!D)return!0;var G=u[D-1];D=G.length;G=G.charAt(0);switch(G){case "y":if(2!=D&&x.strict)B[0]=A;else if(100>A)A=Number(A),G=""+(new Date).getFullYear(),D=100*G.substring(0,2),G=Math.min(Number(G.substring(2,4))+20,99),B[0]=A<G?D+A:D-100+A;else{if(x.strict)return!1;B[0]=A}break;case "M":case "L":if(2<D){if(D=t["months-"+("L"==G?"standAlone":"format")+"-"+r[D-3]].concat(),x.strict||(A=A.replace(".","").toLowerCase(),D=z.map(D,
function(L){return L.replace(".","").toLowerCase()})),A=z.indexOf(D,A),-1==A)return!1}else A--;B[1]=A;break;case "E":case "e":case "c":D=t["days-"+("c"==G?"standAlone":"format")+"-"+r[D-3]].concat();x.strict||(A=A.toLowerCase(),D=z.map(D,function(L){return L.toLowerCase()}));A=z.indexOf(D,A);if(-1==A)return!1;break;case "D":B[1]=0;case "d":B[2]=A;break;case "a":D=x.am||t["dayPeriods-format-wide-am"];G=x.pm||t["dayPeriods-format-wide-pm"];if(!x.strict){var H=/\./g;A=A.replace(H,"").toLowerCase();D=
D.replace(H,"").toLowerCase();G=G.replace(H,"").toLowerCase()}if(x.strict&&A!=D&&A!=G)return!1;C=A==G?"p":A==D?"a":"";break;case "K":24==A&&(A=0);case "h":case "H":case "k":if(23<A)return!1;B[3]=A;break;case "m":B[4]=A;break;case "s":B[5]=A;break;case "S":B[6]=A}return!0});v=+B[3];"p"===C&&12>v?B[3]=v+12:"a"===C&&12==v&&(B[3]=0);v=new Date(B[0],B[1],B[2],B[3],B[4],B[5],B[6]);x.strict&&v.setFullYear(B[0]);var F=u.join("");y=-1!=F.indexOf("d");F=-1!=F.indexOf("M");if(!k||F&&v.getMonth()>B[1]||y&&v.getDate()>
B[2])return null;if(F&&v.getMonth()<B[1]||y&&v.getDate()<B[2])v=b.add(v,"hour",1);return v};var h=["abbr","wide","narrow"],m=[],g={};e.addCustomFormats=function(k,x){m.push({pkg:k,name:x});g={}};e._getGregorianBundle=function(k){if(g[k])return g[k];var x={};z.forEach(m,function(v){v=p.getLocalization(v.pkg,v.name,k);x=E.mixin(x,v)},this);return g[k]=x};e.addCustomFormats(f.id.replace(/\/date\/locale$/,".cldr"),"gregorian");e.getNames=function(k,x,v,y){y=e._getGregorianBundle(y);k=[k,v,x];if("standAlone"==
v){v=k.join("-");var u=y[v];1==u[0]&&(u=void 0)}k[1]="format";return(u||y[k.join("-")]).concat()};e.isWeekend=function(k,x){x=w.getWeekend(x);k=(k||new Date).getDay();x.end<x.start&&(x.end+=7,k<x.start&&(k+=7));return k>=x.start&&k<=x.end};e._getDayOfYear=function(k){return b.difference(new Date(k.getFullYear(),0,1,k.getHours()),k)+1};e._getWeekOfYear=function(k,x){1==arguments.length&&(x=0);var v=(new Date(k.getFullYear(),0,1)).getDay(),y=(v-x+7)%7;y=Math.floor((e._getDayOfYear(k)+y-1)/7);v==x&&
y++;return y};return e})},"dojo/cldr/supplemental":function(){define(["../_base/lang","../i18n"],function(E,z){var b={};E.setObject("dojo.cldr.supplemental",b);b.getFirstDayOfWeek=function(w){w={bd:5,mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,iq:6,ir:6,jo:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,sy:6,ye:6,ag:0,ar:0,as:0,au:0,br:0,bs:0,bt:0,bw:0,by:0,bz:0,ca:0,cn:0,co:0,dm:0,"do":0,et:0,gt:0,gu:0,hk:0,hn:0,id:0,ie:0,il:0,"in":0,jm:0,jp:0,ke:0,kh:0,kr:0,la:0,mh:0,mm:0,mo:0,mt:0,mx:0,mz:0,ni:0,np:0,nz:0,pa:0,pe:0,
ph:0,pk:0,pr:0,py:0,sg:0,sv:0,th:0,tn:0,tt:0,tw:0,um:0,us:0,ve:0,vi:0,ws:0,za:0,zw:0}[b._region(w)];return void 0===w?1:w};b._region=function(w){w=z.normalizeLocale(w);w=w.split("-");var p=w[1];p?4==p.length&&(p=w[2]):p={aa:"et",ab:"ge",af:"za",ak:"gh",am:"et",ar:"eg",as:"in",av:"ru",ay:"bo",az:"az",ba:"ru",be:"by",bg:"bg",bi:"vu",bm:"ml",bn:"bd",bo:"cn",br:"fr",bs:"ba",ca:"es",ce:"ru",ch:"gu",co:"fr",cr:"ca",cs:"cz",cv:"ru",cy:"gb",da:"dk",de:"de",dv:"mv",dz:"bt",ee:"gh",el:"gr",en:"us",es:"es",
et:"ee",eu:"es",fa:"ir",ff:"sn",fi:"fi",fj:"fj",fo:"fo",fr:"fr",fy:"nl",ga:"ie",gd:"gb",gl:"es",gn:"py",gu:"in",gv:"gb",ha:"ng",he:"il",hi:"in",ho:"pg",hr:"hr",ht:"ht",hu:"hu",hy:"am",ia:"fr",id:"id",ig:"ng",ii:"cn",ik:"us","in":"id",is:"is",it:"it",iu:"ca",iw:"il",ja:"jp",ji:"ua",jv:"id",jw:"id",ka:"ge",kg:"cd",ki:"ke",kj:"na",kk:"kz",kl:"gl",km:"kh",kn:"in",ko:"kr",ks:"in",ku:"tr",kv:"ru",kw:"gb",ky:"kg",la:"va",lb:"lu",lg:"ug",li:"nl",ln:"cd",lo:"la",lt:"lt",lu:"cd",lv:"lv",mg:"mg",mh:"mh",mi:"nz",
mk:"mk",ml:"in",mn:"mn",mo:"ro",mr:"in",ms:"my",mt:"mt",my:"mm",na:"nr",nb:"no",nd:"zw",ne:"np",ng:"na",nl:"nl",nn:"no",no:"no",nr:"za",nv:"us",ny:"mw",oc:"fr",om:"et",or:"in",os:"ge",pa:"in",pl:"pl",ps:"af",pt:"br",qu:"pe",rm:"ch",rn:"bi",ro:"ro",ru:"ru",rw:"rw",sa:"in",sd:"in",se:"no",sg:"cf",si:"lk",sk:"sk",sl:"si",sm:"ws",sn:"zw",so:"so",sq:"al",sr:"rs",ss:"za",st:"za",su:"id",sv:"se",sw:"tz",ta:"in",te:"in",tg:"tj",th:"th",ti:"et",tk:"tm",tl:"ph",tn:"za",to:"to",tr:"tr",ts:"za",tt:"ru",ty:"pf",
ug:"cn",uk:"ua",ur:"pk",uz:"uz",ve:"za",vi:"vn",wa:"be",wo:"sn",xh:"za",yi:"il",yo:"ng",za:"cn",zh:"cn",zu:"za",ace:"id",ady:"ru",agq:"cm",alt:"ru",amo:"ng",asa:"tz",ast:"es",awa:"in",bal:"pk",ban:"id",bas:"cm",bax:"cm",bbc:"id",bem:"zm",bez:"tz",bfq:"in",bft:"pk",bfy:"in",bhb:"in",bho:"in",bik:"ph",bin:"ng",bjj:"in",bku:"ph",bqv:"ci",bra:"in",brx:"in",bss:"cm",btv:"pk",bua:"ru",buc:"yt",bug:"id",bya:"id",byn:"er",cch:"ng",ccp:"in",ceb:"ph",cgg:"ug",chk:"fm",chm:"ru",chp:"ca",chr:"us",cja:"kh",cjm:"vn",
ckb:"iq",crk:"ca",csb:"pl",dar:"ru",dav:"ke",den:"ca",dgr:"ca",dje:"ne",doi:"in",dsb:"de",dua:"cm",dyo:"sn",dyu:"bf",ebu:"ke",efi:"ng",ewo:"cm",fan:"gq",fil:"ph",fon:"bj",fur:"it",gaa:"gh",gag:"md",gbm:"in",gcr:"gf",gez:"et",gil:"ki",gon:"in",gor:"id",grt:"in",gsw:"ch",guz:"ke",gwi:"ca",haw:"us",hil:"ph",hne:"in",hnn:"ph",hoc:"in",hoj:"in",ibb:"ng",ilo:"ph",inh:"ru",jgo:"cm",jmc:"tz",kaa:"uz",kab:"dz",kaj:"ng",kam:"ke",kbd:"ru",kcg:"ng",kde:"tz",kdt:"th",kea:"cv",ken:"cm",kfo:"ci",kfr:"in",kha:"in",
khb:"cn",khq:"ml",kht:"in",kkj:"cm",kln:"ke",kmb:"ao",koi:"ru",kok:"in",kos:"fm",kpe:"lr",krc:"ru",kri:"sl",krl:"ru",kru:"in",ksb:"tz",ksf:"cm",ksh:"de",kum:"ru",lag:"tz",lah:"pk",lbe:"ru",lcp:"cn",lep:"in",lez:"ru",lif:"np",lis:"cn",lki:"ir",lmn:"in",lol:"cd",lua:"cd",luo:"ke",luy:"ke",lwl:"th",mad:"id",mag:"in",mai:"in",mak:"id",man:"gn",mas:"ke",mdf:"ru",mdh:"ph",mdr:"id",men:"sl",mer:"ke",mfe:"mu",mgh:"mz",mgo:"cm",min:"id",mni:"in",mnk:"gm",mnw:"mm",mos:"bf",mua:"cm",mwr:"in",myv:"ru",nap:"it",
naq:"na",nds:"de","new":"np",niu:"nu",nmg:"cm",nnh:"cm",nod:"th",nso:"za",nus:"sd",nym:"tz",nyn:"ug",pag:"ph",pam:"ph",pap:"bq",pau:"pw",pon:"fm",prd:"ir",raj:"in",rcf:"re",rej:"id",rjs:"np",rkt:"in",rof:"tz",rwk:"tz",saf:"gh",sah:"ru",saq:"ke",sas:"id",sat:"in",saz:"in",sbp:"tz",scn:"it",sco:"gb",sdh:"ir",seh:"mz",ses:"ml",shi:"ma",shn:"mm",sid:"et",sma:"se",smj:"se",smn:"fi",sms:"fi",snk:"ml",srn:"sr",srr:"sn",ssy:"er",suk:"tz",sus:"gn",swb:"yt",swc:"cd",syl:"bd",syr:"sy",tbw:"ph",tcy:"in",tdd:"cn",
tem:"sl",teo:"ug",tet:"tl",tig:"er",tiv:"ng",tkl:"tk",tmh:"ne",tpi:"pg",trv:"tw",tsg:"ph",tts:"th",tum:"mw",tvl:"tv",twq:"ne",tyv:"ru",tzm:"ma",udm:"ru",uli:"fm",umb:"ao",unr:"in",unx:"in",vai:"lr",vun:"tz",wae:"ch",wal:"et",war:"ph",xog:"ug",xsr:"np",yao:"mz",yap:"fm",yav:"cm",zza:"tr"}[w[0]];return p};b.getWeekend=function(w){var p=b._region(w);w={"in":0,af:4,dz:4,ir:4,om:4,sa:4,ye:4,ae:5,bh:5,eg:5,il:5,iq:5,jo:5,kw:5,ly:5,ma:5,qa:5,sd:5,sy:5,tn:5}[p];p={af:5,dz:5,ir:5,om:5,sa:5,ye:5,ae:6,bh:5,
eg:6,il:6,iq:6,jo:6,kw:6,ly:6,ma:6,qa:6,sd:6,sy:6,tn:6}[p];void 0===w&&(w=6);void 0===p&&(p=0);return{start:w,end:p}};return b})},"esri/_coremap":function(){define("require module dojo/_base/kernel dojo/_base/declare dojo/_base/connect dojo/_base/Deferred dojo/_base/lang dojo/_base/array dojo/_base/event dojo/_base/unload dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/sniff dijit/registry dojox/gfx/matrix ./kernel ./config ./basemaps ./lang ./Evented ./fx ./deferredUtils ./tileUtils ./urlUtils ./PluginTarget ./Color ./promiseList ./arcade/Dictionary ./geometry/Point ./geometry/ScreenPoint ./geometry/Extent ./geometry/Rect ./geometry/mathUtils ./geometry/scaleUtils ./geometry/screenUtils ./geometry/webMercatorUtils ./layers/GraphicsLayer ./layers/TileInfo ./layers/LOD ./layers/ArcGISTiledMapServiceLayer ./layers/MapImageLayer ./layers/OpenStreetMapLayer ./layers/support/webglUtils ./dijit/Popup ./plugins/popupManager dojo/uacss".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y,u,t,r,B,C,F,A,D,G,H,L,aa,da,ha,ia,ba,ja,pa,Ca,la,ua,Aa,M,Y,ka,N,Z,na){function za(K,T){var fa=K.lods;fa.sort(function(Ea,Ta){return Ea.scale>Ta.scale?-1:Ea.scale<Ta.scale?1:0});var qa=[];fa=q.filter(fa,function(Ea){if(-1===W(qa,Ea.scale))return qa.push(Ea.scale),!0});var ya=T.lods=[],Fa;q.forEach(fa,function(Ea,Ta){Fa=ya[Ta]=new M(Ea);Fa.level=Ta});T.tileInfo=new Aa(oa(K,{lods:ya}))}var va,S=Ca.toMapPoint,U=Ca.toScreenPoint,ma=p.connect,ra=p.disconnect,
sa=l.hitch,V=g.set,W=q.indexOf,oa=l.mixin,ta=0,Ba=u.defaults.map,Ra=Ba.layerNamePrefix,Va=Ba.graphicsLayerNamePrefix,Za=new RegExp("^"+Ra+"(\\d+)$"),Qa=new RegExp("^"+Va+"(\\d+)$"),J=function(){},Q=0,ea=Z.isWebGLEnabled();w=w([B,G],{declaredClass:"esri._CoreMap",tables:null,resizeDelay:300,invalidExtent:"Map does not have a valid extent.",invalidGeometry:"Geometry (wkid: ${geometry}) cannot be converted to spatial reference of the map (wkid: ${map})",unknownBasemap:'Unable to find basemap definition for: "${basemapName}". Try one of these: ${list}',
invalidBasemap:'Unable to add basemap: "${basemapName}".',unknownLayerType:'Unknown basemap layer type: "${type}" found in basemap definition for: "${basemapName}".',visible:!0,webglEnabled:ea,_eventMap:{"basemap-change":!0,"extent-change":["extent","delta","levelChange","lod"],"layer-add":["layer"],"layer-add-result":["layer","error"],"layer-remove":["layer"],"layer-reorder":["layer","index"],"layer-resume":["layer"],"layer-suspend":["layer"],"layers-add-result":["layers"],"layers-removed":!0,"layers-reordered":["layerIds"],
load:["map"],pan:["extent","delta"],"pan-end":["extent","delta"],"pan-start":["extent","screenPoint"],reposition:["x","y"],resize:["extent","width","height"],scale:["matrix","immediate"],"time-extent-change":["timeExtent"],"before-unload":["map"],unload:["map"],"update-end":["error"],"update-start":!0,zoom:["extent","zoomFactor","anchor"],"zoom-end":["extent","zoomFactor","anchor","level"],"zoom-start":["extent","zoomFactor","anchor","level"],click:!0,"dbl-click":!0,"key-down":!0,"key-up":!0,"mouse-down":!0,
"mouse-drag":!0,"mouse-drag-end":!0,"mouse-drag-start":!0,"mouse-move":!0,"mouse-out":!0,"mouse-over":!0,"mouse-up":!0,"mouse-wheel":!0,"basic-tap":!0,"double-tap":!0,"pinch-end":!0,"pinch-move":!0,"pinch-start":!0,"processed-double-tap":!0,"processed-tap":!0,"swipe-end":!0,"swipe-move":!0,"swipe-start":!0,tap:!0,"two-finger-tap":!0},constructor:function(K,T){T=T||{};this.registerConnectEvents();oa(this,{_internalLayerIds:[],_layers:[],_layerDivs:[],_basemapPending:!1,_connects:[],_layerAddPromises:{},
_zoomAnimDiv:null,_zoomAnim:null,_layersDiv:null,_firstLayerId:null,_delta:null,_cursor:null,_ratioW:1,_ratioH:1,_params:null,_minResolution:0,_maxResolution:0,cursor:null,layerIds:[],graphicsLayerIds:[],graphics:null,_labels:null,loaded:!1,__panning:!1,__zooming:!1,__container:null,root:null,__LOD:null,__tileInfo:null,__visibleRect:null,__visibleDelta:null,_rids:[],_webglContextOwners:[]});var fa=this.container=a.byId(K),qa=this.id=d.get(fa,"id")||x.getUniqueId(this.declaredClass);e.add(fa,"map");
var ya=m.getContentBox(fa);K=e.add;var Fa=h.create;this.position=new ha(0,0);this._reposition();var Ea=this.width=0<ya.w?ya.w:Ba.width,Ta=this.height=0<ya.h?ya.h:Ba.height,Pa=this.root=Fa("div",{id:qa+"_root",style:{width:Ea+"px",height:Ta+"px",direction:"ltr"}});K(Pa,"esriMapContainer");ya=this.__container=Fa("div",{id:qa+"_container"},Pa);V(ya,"position","absolute");K(ya,"esriMapContainer");fa.appendChild(Pa);T=this._params=oa({slider:!0,nav:!1,zoom:-1,minZoom:-1,maxZoom:-1,scale:-1,minScale:0,
maxScale:0,showInfoWindowOnClick:!0,displayGraphicsOnPan:!0,wrapAround180:!0,fitExtent:!1,optimizePanAnimation:!0},T);this.setWebGLEnabled(null!=T.webglEnabled?T.webglEnabled:this.webglEnabled);this.maxWebGLContexts=null!=T.maxWebGLContexts?T.maxWebGLContexts:-1;this.wrapAround180=T.wrapAround180;this.optimizePanAnimation=T.optimizePanAnimation;this.setBackgroundColor(T.backgroundColor);r.isDefined(T.resizeDelay)&&(this.resizeDelay=T.resizeDelay);T.lods&&(za({rows:512,cols:512,dpi:96,format:"JPEG",
compressionQuality:75,origin:{x:-180,y:90},spatialReference:{wkid:4326},lods:T.lods},T),this.__tileInfo=T.tileInfo);this.extent=T.extent;this._extentUtil({mapCenter:T.center,targetLevel:T.zoom,targetScale:T.scale});this.__visibleRect=new ba(0,0,Ea,Ta);this.__visibleDelta=new ba(0,0,Ea,Ta);qa=this._layersDiv=Fa("div",{id:qa+"_layers"});K(qa,"esriMapLayers");ya.appendChild(qa);this._zoomAnimDiv=Fa("div",{style:{position:"absolute"}});T.infoWindow?this.infoWindow=T.infoWindow:(K=this.infoWindow=new na(T.popupOptions,
Fa("div")),K.startup(),K._ootb=!0,V(K.domNode,"zIndex",40));if(T.showLabels){var Ka=this;E(["./layers/LabelLayer"],function(Xa){va=Xa;Ka._createLabelLayer()});this.on("load",function(){Ka._createLabelLayer()})}this.addPlugin(this._getAbsMid("./plugins/popupManager"),{enabled:T.showInfoWindowOnClick});this._zoomStartHandler=sa(this,this._zoomStartHandler);this._zoomingHandler=sa(this,this._zoomingHandler);this._zoomEndHandler=sa(this,this._zoomEndHandler);this._panningHandler=sa(this,this._panningHandler);
this._panEndHandler=sa(this,this._panEndHandler);this._endTranslate=sa(this,this._endTranslate);this._timedResize=sa(this,this._timedResize);this._execResize=sa(this,this._execResize);this._processLabelLayers=sa(this,this._processLabelLayers);this._updateLabelLayers=sa(this,this._updateLabelLayers);this.resize=sa(this,this.resize);c.addOnWindowUnload(this,this.destroy)},_getAbsMid:function(K){return E.toAbsMid?E.toAbsMid(K):z.id.replace(/\/[^\/]*$/ig,"/")+K},_cleanUp:function(){var K=this.infoWindow;
K&&(K._ootb&&K.destroy?K.destroy():K.unsetMap(this),delete this.infoWindow);ra(this._tsTimeExtentChange_connect);this.removePlugin("./plugins/popupManager");h.destroy(this.root);this.root=null},_addLayer:function(K,T,fa){if(K.id){var qa=K.id.match(K instanceof ua?Qa:Za);qa&&qa[1]&&(qa=Number(qa[1]),ta<=qa&&(ta=qa+1))}var ya=K.id||(K instanceof ua?Va:Ra)+ta++;K.id=ya;this._layers[ya]=K;K._isRefLayer="top"===fa;fa=!r.isDefined(fa)||0>fa||fa>T.length||"top"===fa?T.length:fa;var Fa;if(!K._isRefLayer)for(;(Fa=
this.getLayer(T[fa-1]))&&Fa._isRefLayer;)fa--;if(qa=!this._firstLayerId&&!this.loaded&&!this._basemapPending&&0===fa&&(T===this.layerIds||T===this.graphicsLayerIds))this._firstLayerId=ya;T.splice(fa,0,ya);var Ea=sa(this,this._addLayerHandler),Ta=this;fa=this._connects;Fa=function(){K.loaded?Ta._onLoadFix?(Ta._onLoadFix=!1,setTimeout(function(){Ea(K)},0)):Ea(K):(Ta["_"+ya+"_addtoken_load"]=ma(K,"onLoad",Ta,"_addLayerHandler"),Ta["_"+ya+"_addtoken_err"]=ma(K,"onError",Ta,function(Pa){Ea(K,Pa,T)}))};
this.loaded||qa||K.loaded&&-1===W(this.graphicsLayerIds,ya)?Fa():fa.push(ma(this,"onLoad",Fa));return K},_forgetLayer:function(K){K=K.id;ra(this["_"+K+"_addtoken_load"]);ra(this["_"+K+"_addtoken_err"]);var T=this._layerAddPromises[K];T&&(delete this._layerAddPromises[K],T.cancel())},_addLayerHandler:function(K,T,fa){T?this._attachLayerToMap(K,T,fa):K._prepareToAttach?(this._layerAddPromises[K.id]=K._prepareToAttach(this)).always(l.hitch(this,function(qa){qa&&"cancel"===qa.dojoType||this._attachLayerToMap(K,
null,fa)})):K.declaredClass&&(-1<K.declaredClass.toLowerCase().indexOf("vectortilelayer")||-1<K.declaredClass.toLowerCase().indexOf("rasterxlayer")&&K.useWebGL)&&!this.isWebGLContextAvailable()?(T=Error("Too many WebGL contexts. Unable to add the layer: ",K.url),this._attachLayerToMap(K,T,this.layerIds)):this._attachLayerToMap(K,T,fa)},_attachLayerToMap:function(K,T,fa){var qa=this.id,ya=K.id,Fa=W(K instanceof ua?this.graphicsLayerIds:this.layerIds,ya),Ea=Fa,Ta=!1,Pa=this._params;this._forgetLayer(K);
if(T)delete this._layers[ya],-1!==Fa&&(fa.splice(Fa,1),this.onLayerAddResult(K,T));else{-1===Fa&&(Fa=W(this._internalLayerIds,ya),Ea=20+Fa,Ta=!0);if(ya===this._firstLayerId){T=K.spatialReference;fa=this.extent&&this.extent.spatialReference;!fa||fa.equals(T)||!K.tileInfo&&K.url||(fa=null);fa=this.spatialReference=fa||T;this.wrapAround180=this.wrapAround180&&fa&&fa._isWrappable()?!0:!1;K.tileInfo&&(this.__tileInfo?(T=this.__tileInfo.lods,this.__tileInfo=oa({},K.tileInfo),this.__tileInfo.lods=T):(za(oa({},
K.tileInfo),Pa),this.__tileInfo=Pa.tileInfo));if(this.wrapAround180){T=this.__tileInfo;fa=fa._getInfo();if(!T||Math.abs(fa.origin[0]-T.origin.x)>fa.dx)this.wrapAround180=!1;this.wrapAround180&&T&&A._addFrameInfo(T,fa)}Pa.units=K.units;if((T=this.__tileInfo&&this.__tileInfo.lods)&&T.length){fa=Pa.minScale;Fa=Pa.maxScale;var Ka=-1,Xa=-1,gb=!1,bb=!1,hb;for(hb=0;hb<T.length;hb++)0<fa&&!gb&&fa>=T[hb].scale&&(Ka=T[hb].level,gb=!0),0<Fa&&!bb&&Fa>=T[hb].scale&&(Xa=0<hb?T[hb-1].level:-1,bb=!0);-1===Pa.minZoom&&
(Pa.minZoom=0===fa?T[0].level:Ka);-1===Pa.maxZoom&&(Pa.maxZoom=0===Fa?T[T.length-1].level:Xa);for(hb=0;hb<T.length;hb++)Pa.minZoom===T[hb].level&&(Pa.minScale=T[hb].scale,this._minResolution=T[hb].resolution),Pa.maxZoom===T[hb].level&&(Pa.maxScale=T[hb].scale,this._maxResolution=T[hb].resolution)}else Pa.minZoom=Pa.maxZoom=Pa.zoom=-1}K instanceof ua?(this._gc||(this._gc=new ua._GraphicsContainer,this._gc._setMap(this,this._layersDiv).id=qa+"_gc"),this._attachGraphicsLayer(K).id=qa+"_"+ya):(Ea=K._setMap(this,
this._layersDiv,Ea,this.__LOD),Ea.id=qa+"_"+ya,this._layerDivs[ya]=Ea,this._reorderLayers(this.layerIds),Ta||-1===K.declaredClass.indexOf("VETiledLayer")||this._onBingLayerAdd(K));ya===this._firstLayerId&&(this.graphics=new ua({id:qa+"_graphics",displayOnPan:Pa.displayGraphicsOnPan}),this._addLayer(this.graphics,this._internalLayerIds,20));if(K===this.graphics){fa=this._layers[this._firstLayerId];qa=Pa.zoom;Ea=Pa.scale;T=Pa.center;fa=fa.initialExtent||fa.fullExtent;this._firstLayerId=null;this.extent&&
(this.extent=this._convertGeometry(this,this.extent));!this.extent&&fa&&(T&&(T=this._convertGeometry(fa,T)),T&&(fa=fa.centerAt(T),T=null));if(T=this.extent||fa&&new ia(fa.toJson()))-1<qa?T=this.__getExtentForLevel(qa,null,T).extent:0<Ea&&(T=pa.getExtentForScale(this,Ea,T));if(!T){console.log("Map: "+this.invalidExtent);return}Pa=this._fixExtent(T,Pa.fitExtent);this.extent=Pa.extent;this.__LOD=Pa.lod;this.__setExtent(this.extent);this.loaded=!0;this.attr("data-loaded","");this.infoWindow.setMap(this);
this.onLoad(this)}Ta||(this.onLayerAdd(K),this.onLayerAddResult(K));ra(this[ya+"_addLayerHandler_connect"])}},_convertGeometry:function(K,T){K=K&&K.spatialReference;var fa=T&&T.spatialReference;K&&fa&&!K.equals(fa)&&(K._canProject(fa)?K.isWebMercator()?T=la.geographicToWebMercator(T):4326===K.wkid&&(T=la.webMercatorToGeographic(T,!0)):(console.log("Map: "+r.substitute({geometry:fa.wkid||fa.wkt,map:K.wkid||K.wkt},this.invalidGeometry)),T=null));return T},_attachGraphicsLayer:function(K){var T=K.id;
K=K._setMap(this,this._gc._surface);this._layerDivs[T]=K;this._reorderLayers(this.graphicsLayerIds);return K},_detachGraphicsLayer:function(K){K.loaded&&K.getMap()&&K._unsetMap(this,this._gc._surface)},_reorderLayers:function(K){var T=this.onLayerReorder,fa=h.place,qa=this._layerDivs,ya=this._layers,Fa=this._gc?this._gc._surface.getEventSource():null;if(K===this.graphicsLayerIds)q.forEach(K,function(Xa,gb){var bb=qa[Xa];Xa=ya[Xa];bb&&(this._gc._reorderLayer(Xa,bb,gb),T(Xa,gb))},this);else{var Ea=
this.graphics,Ta=Ea?Ea.id:null,Pa=this._layersDiv,Ka;q.forEach(K,function(Xa,gb){Ka=qa[Xa];Xa!==Ta&&Ka&&(fa(Ka,Pa,gb),T(ya[Xa],gb))});this._mapImageLyr&&this._placeMapImageLyr();Fa&&(Fa=9>k("ie")?Fa.parentNode:Fa,fa(Fa,Fa.parentNode,"last"))}this.onLayersReordered([].concat(K))},_zoomStartHandler:function(){this.__zoomStart(this._zoomAnimDiv.startingExtent,this._zoomAnimDiv.anchor)},_zoomingHandler:function(K){var T=parseFloat(K.left),fa=parseFloat(K.top);K=new ia(T,fa-parseFloat(K.height),T+parseFloat(K.width),
fa,this.spatialReference);T=this.extent.getWidth()/K.getWidth();this.__zoom(K,T,this._zoomAnimDiv.anchor)},_zoomEndHandler:function(){var K=this._zoomAnimDiv,T=K.extent,fa=this.extent.getWidth()/T.getWidth(),qa=K.anchor,ya=K.newLod,Fa=K.levelChange;K.extent=K.anchor=K.levelChange=K.startingExtent=K.newLod=this._delta=this._zoomAnim=null;this.__zoomEnd(T,fa,qa,ya,Fa)},_panningHandler:function(K){if(isNaN(parseFloat(K.left))||isNaN(parseFloat(K.top))){var T=Math.round,fa=this._panAnim.node;K.left=-1*
(this._delta.x-T(this.width/2))+"px";K.top=-1*(this._delta.y-T(this.height/2))+"px";g.set(fa,"left",K.left);g.set(fa,"top",K.top)}K=new ha(parseFloat(K.left),parseFloat(K.top));T=this.toMap(K);this.onPan(this.extent.offset(this.extent.xmin-T.x,this.extent.ymax-T.y),K)},_panEndHandler:function(K){this.__panning=!1;var T=Math.round;K=new ha(-T(parseFloat(K.style.left)),-T(parseFloat(K.style.top)));T=K.x;var fa=K.y,qa=this.__visibleRect,ya=this.__visibleDelta;qa.x+=-T;qa.y+=-fa;ya.x+=-T;ya.y+=-fa;V(this._zoomAnimDiv,
{left:"0px",top:"0px"});qa=this.extent;ya=this._ratioW;var Fa=this._ratioH;qa=new ia(qa.xmin+T/ya,qa.ymin-fa/Fa,qa.xmax+T/ya,qa.ymax-fa/Fa,this.spatialReference);K.setX(-K.x);K.setY(-K.y);this._delta=this._panAnim=null;this._updateExtent(qa);this.onPanEnd(qa,K);this._fireExtChg([qa,K,!1,this.__LOD])},_fixExtent:function(K,T){for(var fa=this._reshapeExtent(K),qa=1.25;!0===T&&(fa.extent.getWidth()<K.getWidth()||fa.extent.getHeight()<K.getHeight())&&0<fa.lod.level&&3>=qa;)fa=this._reshapeExtent(K.expand(qa)),
qa+=.25;return fa},_getFrameWidth:function(){var K=-1,T=this.spatialReference._getInfo();this.__LOD?(T=this.__LOD._frameInfo)&&(K=T[3]):T&&(K=Math.round(2*T.valid[1]/(this.extent.getWidth()/this.width)));return K},_fixAspectRatio:function(K){var T=K.getWidth(),fa=K.getHeight(),qa=T/fa,ya=this.width/this.height,Fa=0,Ea=0;this.width>this.height?T>fa?ya>qa?Fa=fa*ya-T:Ea=T/ya-fa:Fa=fa*ya-T:this.width<this.height?T<fa?ya>qa?Fa=fa*ya-T:Ea=T/ya-fa:Ea=T/ya-fa:T<fa?Fa=fa-T:T>fa&&(Ea=T/ya-fa);Fa&&(K.xmin-=
Fa/2,K.xmax+=Fa/2);Ea&&(K.ymin-=Ea/2,K.ymax+=Ea/2);return K},_reshapeExtent:function(K){K=this._fixAspectRatio(K);return this._getAdjustedExtent(K)},_getAdjustedExtent:function(K){if(this.__tileInfo)return A.getCandidateTileInfo(this,this.__tileInfo,K);var T=pa.getScale(this,K),fa=this.getMinScale(),qa=this.getMaxScale();!fa||T<=fa?!qa||T>=qa||(K=pa.getExtentForScale(this,qa,K)):K=pa.getExtentForScale(this,fa,K);return{extent:K}},_onBingLayerAdd:function(K){this["__"+K.id+"_vis_connect"]=p.connect(K,
"onVisibilityChange",this,"_toggleBingLogo");this._toggleBingLogo(K.visible)},_onBingLayerRemove:function(K){p.disconnect(this["__"+K.id+"_vis_connect"]);delete this["__"+K.id+"_vis_connect"];var T=q.some(this.layerIds,function(fa){return(K=this._layers[fa])&&K.visible&&-1!==K.declaredClass.indexOf("VETiledLayer")},this);this._toggleBingLogo(T)},_toggleBingLogo:function(K){K&&!this._bingLogo?(K={left:this._mapParams&&this._mapParams.nav?"25px":""},6===k("ie")&&(K.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled\x3d'true', sizingMethod\x3d'crop', src\x3d'"+
E.toUrl("./images/map/bing-logo-lg.png")+"')"),K=this._bingLogo=h.create("div",{style:K},this.root),e.add(K,"bingLogo-lg")):!K&&this._bingLogo&&(h.destroy(this._bingLogo),delete this._bingLogo)},__panStart:function(K,T){var fa=this._zoomAnim,qa=this._panAnim;if(fa&&fa._active)fa.stop(),fa._fire("onEnd",[fa.node]);else if(qa&&qa._active){qa.stop();this._panAnim=null;T=qa.curve.getValue(qa._getStep());K=Math.round(parseFloat(T.left));T=Math.round(parseFloat(T.top));fa=this.navigationManager._dragOrigin;
this.__pan(K,T);fa&&(fa.x-=K,fa.y-=T);return}this.__panning=!0;this.onPanStart(this.extent,new ha(K,T))},__pan:function(K,T){var fa=this.extent,qa=this._ratioW,ya=this._ratioH;this.onPan(new ia(fa.xmin-K/qa,fa.ymin+T/ya,fa.xmax-K/qa,fa.ymax+T/ya,this.spatialReference),new ha(K,T))},__panEnd:function(K,T){var fa=this.__visibleRect,qa=this.__visibleDelta;fa.x+=K;fa.y+=T;qa.x+=K;qa.y+=T;fa=new ha(K,T);qa=this.extent;var ya=this._ratioW,Fa=this._ratioH;qa=new ia(qa.xmin-K/ya,qa.ymin+T/Fa,qa.xmax-K/ya,
qa.ymax+T/Fa,this.spatialReference);this.__panning=!1;this._updateExtent(qa);this.onPanEnd(qa,fa);this._fireExtChg([qa,fa,!1,this.__LOD])},__zoomStart:function(K,T){this.__zooming=!0;this.onZoomStart(K,1,T,this.__LOD?this.__LOD.level:null)},__zoom:function(K,T,fa){this.onZoom(K,T,fa)},__zoomEnd:function(K,T,fa,qa,ya){V(this._layersDiv,{left:"0px",top:"0px"});this._delta=new ha(0,0);this.__visibleRect.x=this.__visibleRect.y=0;K=new ia(K);this.__LOD=qa;this._ratioW=this.width/K.getWidth();this._ratioH=
this.height/K.getHeight();var Fa=this._delta;this._delta=null;this.__zooming=!1;this._updateExtent(K,ya);this.onZoomEnd(K,T,fa,qa?qa.level:null);this._fireExtChg([K,Fa,ya,qa])},_extentUtil:function(K,T,fa,qa,ya){var Fa=new n,Ea=this.width,Ta=this.height;if(K){var Pa=K.numLevels;var Ka=K.targetLevel;var Xa=r.isDefined(Ka);var gb=K.factor;var bb=K.mapAnchor;var hb=K.screenAnchor;var db=K.mapCenter;var lb=K.levelOrFactor;var sb=K.targetScale;var ob=r.isDefined(sb)&&0<sb}if(T){var eb=T.dx;var pb=T.dy;
db=T.mapCenter}l.isArray(db)&&(db=new da(db));var qb=this._panAnim;T=(K=this._stopAnim())?K.divExtent:this.extent;var Kb=this.__tileInfo,zb=this._params;if(!this.loaded){if(fa)T&&(fa=this._convertGeometry(T,fa)),fa&&(this.extent=fa,zb.zoom=zb.scale=-1,zb.center=null);else if(db||Xa||ob){if(db)if(T){if(db=this._convertGeometry(T,db))this.extent=T.centerAt(db),zb.center=null}else zb.center=db;Xa&&-1<Ka?(zb.zoom=Ka,zb.scale=-1):ob&&(zb.scale=sb,zb.zoom=-1)}Fa.resolve();return Fa}if(db&&(db=this._convertGeometry(this,
db),!db)||bb&&(bb=this._convertGeometry(this,bb),!bb)||fa&&(fa=this._convertGeometry(this,fa),!fa))return Fa.reject(),Fa;qb&&bb&&hb&&(bb=S(this.extent,Ea,Ta,hb));K&&bb&&hb&&(bb=S(K.divExtent,Ea,Ta,hb));if(Xa)if(Kb)Pa=this.getMinZoom(),Xa=this.getMaxZoom(),Ka<Pa?Ka=Pa:Ka>Xa&&(Ka=Xa),Pa=Ka-(K?K.level:this.getLevel());else{Pa=0<Ka?-1:1;var ub=lb?Ka:null}if(!fa)if(r.isDefined(Pa))Kb?(Ea=K?K.level:this.getLevel(),Ea=this.__getExtentForLevel(Ea+Pa,db,T).extent):(Ea=(K?K.end:this.extent).expand(ub||(0<Pa?
.5*Pa:2*-Pa)),ub&&db&&(Ea=Ea.centerAt(db))),Ea&&(db?fa=Ea:(eb=bb||T.getCenter(),Ta=Ea.getWidth(),pb=Ea.getHeight(),Ea=eb.x>=T.xmin&&eb.x<=T.xmax?(eb.x-T.xmin)/T.getWidth():.5,fa=eb.y>=T.ymin&&eb.y<=T.ymax?(eb.y-T.ymin)/T.getHeight():.5,Ea=eb.x-Ea*Ta,eb=eb.y-fa*pb,fa=new ia(Ea,eb,Ea+Ta,eb+pb,this.spatialReference)));else if(ob)fa=pa.getExtentForScale(this,sb,T);else if(r.isDefined(gb))fa=T.expand(gb);else if(eb||pb)K?(fa=K.end,bb=fa.getCenter(),ub=U(fa,Ea,Ta,bb),ub.x+=eb,ub.y+=pb,ub=S(fa,Ea,Ta,ub),
fa=fa.offset(ub.x-bb.x,ub.y-bb.y)):(eb=new ha(Ea/2+eb,Ta/2+pb),eb=S(T,Ea,Ta,eb),Ta=T.getWidth(),pb=T.getHeight(),Ea=eb.x-Ta/2,eb=eb.y-pb/2,fa=new ia(Ea,eb,Ea+Ta,eb+pb,this.spatialReference));fa||(db?(T=K?K.end:T,Ta=T.getWidth(),pb=T.getHeight(),Ea=db.x-Ta/2,eb=db.y-pb/2,fa=new ia(Ea,eb,Ea+Ta,eb+pb,this.spatialReference)):K&&(fa=K.end));fa?(this._extentDfd&&-1===this._extentDfd.fired&&(this._extentDfd.then(null,J),this._extentDfd.reject()),this._extentDfd=Fa,this.__setExtent(fa,null,hb,qa,K,ya)):Fa.reject();
return Fa},__setExtent:function(K,T,fa,qa,ya,Fa){try{if(this._firstLayerId)this.extent=K;else{var Ea=!0,Ta=this.spatialReference,Pa=ya?ya.divExtent:this.extent,Ka=this._fixExtent(K,qa||!1);K=Ka.extent;var Xa=K.getWidth(),gb=K.getHeight(),bb=Math.round;if(Pa){var hb=bb(1E6*Pa.getWidth()),db=bb(1E6*Xa),lb=bb(1E6*Pa.getHeight()),sb=bb(1E6*gb);Ea=hb!==db||lb!==sb}var ob,eb=ya&&ya.rect,pb=ya&&ya.divExtent;if(Ba.zoomDuration&&Ea&&Pa){pb=pb||new ia(Pa);eb=eb||{left:Pa.xmin,top:Pa.ymax,width:Pa.getWidth(),
height:Pa.getHeight()};var qb={left:K.xmin,top:K.ymax,width:Xa,height:gb};var Kb=new da(K.xmin,K.ymax,Ta),zb=new da(K.xmin,K.ymin,Ta),ub=new da(this.extent.xmin,this.extent.ymax,Ta),Sb=new da(this.extent.xmin,this.extent.ymin,Ta);(ob=ja.getLineIntersection(ub,Kb,Sb,zb,Ta))||ya||(Ea=!1)}this._ratioW=this.width/Xa;this._ratioH=this.height/gb;var tb=this._zoomAnimDiv;if(Ea)if(V(this._layersDiv,{left:"0px",top:"0px"}),T=new ha(0,0),this.__visibleRect.x=this.__visibleRect.y=0,eb&&qb){this._delta=T;tb.id=
"_zAD";tb.startingExtent=pb;tb.extent=K;tb.levelChange=Ea;tb.newLod=Ka.lod;tb.anchor=fa?fa:!ob&&ya?ya.anchor:U(this.extent,this.width,this.height,ob);var Hb=this.extent.getWidth()/K.getWidth();Ba.zoomAnimationThrottled&&1024<(1>Hb?1/Hb:Hb)?(this.__zoomStart(pb,tb.anchor),this.__zoom(pb,1,tb.anchor),this._fireOnScale(1,tb.anchor,!0),this.__zoomEnd(K,Hb,tb.anchor,Ka.lod,Ea)):(this._zoomAnim=C.resize({node:tb,start:eb,end:qb,duration:Ba.zoomDuration,rate:Ba.zoomRate,beforeBegin:ya?null:this._zoomStartHandler,
onAnimate:this._zoomingHandler,onEnd:this._zoomEndHandler}).play(),this._fireOnScale(Hb,tb.anchor,Fa))}else this._updateExtent(K,Ea,Fa),this._fireExtChg([this.extent,T,Ea,this.__LOD=Ka.lod]);else if(!this.__panning)if(!1===this.loaded||Fa)this._updateExtent(K,Ea,Fa),this._fireExtChg([this.extent,T,Ea,this.__LOD=Ka.lod]);else{this.__panning=!0;eb=(new ba(0,0,this.width,this.height,this.spatialReference)).getCenter();eb.x=bb(eb.x);eb.y=bb(eb.y);var Lb=this._delta=this.toScreen(K.getCenter()),Pb=Math.abs(eb.x-
Lb.x),Vb=Math.abs(eb.y-Lb.y);this.optimizePanAnimation&&(Pb>2*this.width||Vb>2*this.height)?(this.__panStart(0,0),this.__pan(0,0),this.__visibleRect.x=this.__visibleRect.y=this.__visibleDelta.x=this.__visibleDelta.y=0,this.__panning=!1,this._delta=null,this._updateExtent(K,!1,Fa),this.onPanEnd(this.extent,new ha(0,0)),this._fireExtChg([this.extent,new ha(0,0),!0,this.__LOD])):(this.onPanStart(this.extent,new ha(0,0)),this._panAnim=C.slideTo({node:tb,left:eb.x-Lb.x,top:eb.y-Lb.y,duration:Ba.panDuration,
rate:Ba.panRate,onAnimate:this._panningHandler,onEnd:this._panEndHandler}),this._panAnim.play())}}}catch(Db){console.log(Db.stack),console.error(Db)}},_fireOnScale:function(K,T,fa){if("css-transforms"===this.navigationMode){var qa=this.__visibleDelta;this.onScale(v.scaleAt(K,{x:-1*(this.width/2-(T.x-qa.x)),y:-1*(this.height/2-(T.y-qa.y))}),fa)}},_stopAnim:function(){var K=this._zoomAnim,T=this._panAnim;if(K&&K._active){K.stop();T=K.curve.getValue(K._getStep());var fa=parseFloat(T.left),qa=parseFloat(T.top);
K=K.node;return{anchor:K.anchor,start:K.startingExtent,end:K.extent,level:K.newLod&&K.newLod.level,rect:T,divExtent:new ia(fa,qa-parseFloat(T.height),fa+parseFloat(T.width),qa,this.spatialReference)}}T&&T._active&&(T.stop(),T._fire("onEnd",[T.node]))},__getExtentForLevel:function(K,T,fa){var qa=this.__tileInfo;qa=qa&&qa.lods;K=r.isDefined(K)?K:0;fa=fa||this.extent;T=T||fa&&fa.getCenter();if(qa){if(T){fa=this.getMinZoom();var ya=this.getMaxZoom();K>ya&&(K=ya);K<fa&&(K=fa);K=qa[K];qa=this.width*K.resolution/
2;fa=this.height*K.resolution/2;return{extent:new ia(T.x-qa,T.y-fa,T.x+qa,T.y+fa,T.spatialReference),lod:K}}}else if(fa)return{extent:fa.expand(!K||1>K?1:K).centerAt(T)};console.log("Map: "+this.invalidExtent)},_jobs:0,_incr:function(){1===++this._jobs&&(this.updating=!0,this.attr("data-updating",""),this.onUpdateStart())},_decr:function(){var K=--this._jobs;K?0>K&&(this._jobs=0):(this.updating=!1,this.attr("data-updating"),this.onUpdateEnd())},_fireEvent:function(K,T){this[K]&&this[K].apply(this,
T)},_updateExtent:function(K,T,fa){this.extent=K;K=this.spatialReference;this._viewInfo={view:new aa({viewingMode:"map",scale:this.getScale()}),sr:K,version:T?++Q:Q};(T||fa)&&this._setClipRect();this._calcGeographicExtent()},_calcGeographicExtent:function(){var K=this.spatialReference;K&&(K.isWebMercator()?this.geographicExtent=la.webMercatorToGeographic(this._getAvailExtent(),!0):4326===K.wkid&&(this.geographicExtent=new ia(this._getAvailExtent().toJson())))},_fireExtChg:function(K){this.attr("data-zoom",
this.getZoom());this.attr("data-scale",this.getScale());this._fireEvent("onExtentChange",K);if(K=this._extentDfd)delete this._extentDfd,K.resolve()},attr:function(K,T){var fa=this.container;fa&&(null==T?fa.removeAttribute(K):fa.setAttribute(K,T));return this},onUpdateStart:function(){},onUpdateEnd:function(){},onLoad:function(){this._setClipRect();this._calcGeographicExtent()},onBeforeUnload:function(){},onUnload:function(){},onExtentChange:function(K,T,fa){},onTimeExtentChange:function(){},onWebGLEnabledChange:function(){},
onLayerAdd:function(){},onLayerAddResult:function(){},onLayersAddResult:function(){},onLayerRemove:function(){},onLayersRemoved:function(){},onLayerReorder:function(){},onLayersReordered:function(){},onLayerSuspend:function(){},onLayerResume:function(){},onPanStart:function(){},onPan:function(){},onPanEnd:function(){},onScale:function(){},onZoomStart:function(){},onZoom:function(){},onZoomEnd:function(){},onResize:function(){this._setClipRect()},onReposition:function(){},destroy:function(){this._destroyed||
(this.onBeforeUnload(this),this.removeAllLayers(),this.releaseAllWebGLContexts(),this._cleanUp(),clearTimeout(this._resizeTimerHandle),this._gc&&this._gc._cleanUp(),this._destroyed=!0,this.onUnload(this))},setCursor:function(K){V(this.__container,"cursor",this.cursor=K)},setMapCursor:function(K){this.setCursor(this._cursor=K)},resetMapCursor:function(){this.setCursor(this._cursor)},setBackgroundColor:function(K){K&&!K.declaredClass&&(K=new H(K));this.backgroundColor=K||null;var T="";K&&(T=9>k("ie")?
K.toHex():"rgba("+K.toRgba().join(",")+")");g.set(this.root,{backgroundColor:T})},setInfoWindow:function(K){var T=this.infoWindow;T&&T.unsetMap(this);this.infoWindow=K;this.loaded&&K&&K.setMap(this)},setInfoWindowOnClick:function(K){this._params.showInfoWindowOnClick=K;this.popupManager&&this.popupManager.set("enabled",K)},getInfoWindowAnchor:function(K){return this.infoWindow&&this.infoWindow._getAnchor&&this.infoWindow._getAnchor(K)||"upperright"},toScreen:function(K,T){return U(this.extent,this.width,
this.height,K,T)},toMap:function(K){return S(this.extent,this.width,this.height,K)},addLayer:function(K,T){K&&!this.getLayer(K.id)&&this._addLayer(K,K instanceof ua?this.graphicsLayerIds:this.layerIds,T);return K},addLayers:function(K){var T=[],fa=K.length,qa,ya=K.length;var Fa=p.connect(this,"onLayerAddResult",function(Ea,Ta){-1!==q.indexOf(K,Ea)&&(fa--,T.push({layer:Ea,success:!Ta,error:Ta}),fa||(p.disconnect(Fa),this.onLayersAddResult(T)))});for(qa=0;qa<ya;qa++)this.addLayer(K[qa]);return this},
removeLayer:function(K,T){var fa=K.id,qa=K instanceof ua?this.graphicsLayerIds:this.layerIds,ya=W(qa,fa);0<=ya&&(this._forgetLayer(K),qa.splice(ya,1),this.loaded||this._firstLayerId!==fa||(this._firstLayerId=null),K instanceof ua?this._detachGraphicsLayer(K):K.loaded&&(K.getMap()&&K._unsetMap(this,this._layersDiv),-1!==K.declaredClass.indexOf("VETiledLayer")&&this._onBingLayerRemove(K)),delete this._layers[fa],delete this._layerDivs[fa],T||this._reorderLayers(qa),this.onLayerRemove(K))},removeAllLayers:function(){var K=
this.layerIds,T;for(T=K.length-1;0<=T;T--)this.removeLayer(this._layers[K[T]],1);K=this.graphicsLayerIds;for(T=K.length-1;0<=T;T--)this.removeLayer(this._layers[K[T]],1);this.onLayersRemoved()},reorderLayer:function(K,T){l.isString(K)&&(b.deprecated(this.declaredClass+": Map.reorderLayer(/*String*/ id, /*Number*/ index) deprecated. Use Map.reorderLayer(/*Layer*/ layer, /*Number*/ index).",null,"v2.0"),K=this.getLayer(K));var fa=K.id,qa=K instanceof ua?this.graphicsLayerIds:this.layerIds;0>T?T=0:T>=
qa.length&&(T=qa.length-1);K=W(qa,fa);-1!==K&&K!==T&&(qa.splice(K,1),qa.splice(T,0,fa),this._reorderLayers(qa))},getLayer:function(K){return this._layers[K]},setWebGLEnabled:function(K){var T=this.webglEnabled;this.webglEnabled=(K||!1)&&ea;if(T!==this.webglEnabled)this.onWebGLEnabledChange()},isWebGLContextAvailable:function(){return Z.isContextAvailable()&&(-1===this.maxWebGLContexts||0<this.maxWebGLContexts&&this._webglContextOwners.length<this.maxWebGLContexts)},ownsWebGLContext:function(K){return-1!==
q.indexOf(this._webglContextOwners,K)},acquireWebGLContext:function(K){return-1!==q.indexOf(this._webglContextOwners,K)?!0:this.isWebGLContextAvailable()?(Z.acquireContext(K),this._webglContextOwners.push(K),!0):!1},releaseWebGLContext:function(K){var T=q.indexOf(this._webglContextOwners,K);-1!==T&&this._webglContextOwners.splice(T,1);Z.releaseContext(K)},releaseAllWebGLContexts:function(){var K=this._webglContextOwners.slice(0);q.forEach(K,function(T){this.releaseWebGLContext(T)},this)},syncHitTestForWebGL:function(K){var T,
fa=K.screenPoint;K=this.graphicsLayerIds.slice(0).reverse();q.some(K,function(qa){qa=this.getLayer(qa);qa.loaded&&!qa.suspended&&qa.hasWebGLSurface()&&(T=qa._div.syncHitTest(fa.x,fa.y));return!!T},this);return T},setExtent:function(K,T){K=new ia(K.toJson());var fa=K.getWidth(),qa=K.getHeight();return 0===fa&&0===qa?this.centerAt(new da({x:K.xmin,y:K.ymin,spatialReference:K.spatialReference&&K.spatialReference.toJson()})):this._extentUtil(null,null,K,T)},getTargetExtent:function(K){if(K)return K=new ia(K.toJson()),
0!==K.getWidth()&&0!==K.getHeight()&&(K=(K=this._convertGeometry(this,K))&&this._fixExtent(K).extent),K},centerAt:function(K){return this._extentUtil(null,{mapCenter:K})},centerAndZoom:function(K,T){return this._extentUtil({targetLevel:T,mapCenter:K,levelOrFactor:!0})},getScale:function(){return this.__LOD?this.__LOD.scale:pa.getScale(this)},getResolution:function(){return this.__LOD?this.__LOD.resolution:this.extent?this.extent.getWidth()/this.width:0},getResolutionInMeters:function(){return this.getResolution()*
pa.getUnitValueForSR(this.spatialReference)},getResolutionForPopup:function(){var K=this.getResolution(),T=this.getResolutionInMeters(),fa=T/16;return 10>=fa?0:K/T*fa},getMinResolution:function(){return this._minResolution},getMaxResolution:function(){return this._maxResolution},getMinScale:function(){return this._params.minScale},getMaxScale:function(){return this._params.maxScale},getViewInfo:function(){return this._viewInfo},setScale:function(K){return this._extentUtil({targetScale:K})},getLayersVisibleAtScale:function(K){var T=
[];(K=K||this.getScale())&&q.forEach(this.layerIds.concat(this.graphicsLayerIds),function(fa){fa=this.getLayer(fa);fa.isVisibleAtScale(K)&&T.push(fa)},this);return T},getNumLevels:function(){var K=this.getMinZoom(),T=this.getMaxZoom();return K===T&&0>K?0:T-K+1},getLevel:function(){return this.__LOD?this.__LOD.level:-1},setLevel:function(K){if(-1<K)return this._extentUtil({targetLevel:K})},getZoom:function(){return this.getLevel()},setZoom:function(K){return this.setLevel(K)},getMinZoom:function(){return this._params.minZoom},
getMaxZoom:function(){return this._params.maxZoom},setBasemap:function(K){if(l.isObject(K)){var T=K;K=T.title}else T=t&&t[K];if(T){this._basemapDfd&&!this._basemapDfd.isFulfilled()&&this._basemapDfd.cancel();var fa=[],qa=0;q.forEach(T.baseMapLayers||T.layers,function(Fa){var Ea={id:Fa.id,displayLevels:Fa.displayLevels,opacity:r.isDefined(Fa.opacity)?Fa.opacity:null,visible:r.isDefined(Fa.visibility)?Fa.visibility:null};if(Ea=this._createBaseLayerInstance(Fa,Ea,K))fa.push(Ea),Fa.isReference||qa++},
this);fa.length&&qa?(this._basemapDfd=L(fa).otherwise(sa(this,function(Fa){this._basemapPending=!1;Fa&&"cancel"===Fa.dojoType&&q.forEach(fa,function(Ea){Ea.cancel()});throw Fa;})).then(function(Fa){var Ea=[],Ta=[];q.forEach(Fa,function(Pa){Pa&&(Pa.layerInfo&&Ea.push(Pa.layerInfo),Pa.layer&&Ta.push(Pa.layer))});return{basemapName:K,infos:Ea,layers:Ta}}).then(sa(this,this._waitForBaseLayers)).then(sa(this,this._setBasemap)),this._basemapPending=!this.loaded&&!this._basemapDfd.isFulfilled()):console.log("Map.setBasemap: "+
r.substitute({basemapName:K},this.invalidBasemap))}else{T=[];for(var ya in t)T.push(ya);console.log("Map.setBasemap: "+r.substitute({basemapName:K,list:T.join(",")},this.unknownBasemap))}},_createBaseLayerInstance:function(K,T,fa){var qa=new n;if(K.type)switch(K.type){case "OpenStreetMap":qa.resolve({layerInfo:K,layer:new N(T)});break;case "VectorTile":E(["./layers/VectorTileLayer"],function(Fa){ya=D.normalize(K.url);qa.promise.isFulfilled()||qa.resolve({layerInfo:K,layer:new Fa(ya,T)})});break;default:return console.log("Map.setBasemap: "+
r.substitute({basemapName:fa,type:K.type},this.unknownLayerType)),null}else{var ya=D.normalize(K.url);qa.resolve({layerInfo:K,layer:new Y(ya,T)})}return qa.promise},_waitForBaseLayers:function(K){var T=new n(F._dfdCanceller);T.promise.otherwise(function(qa){if(qa&&"cancel"===qa.dojoType){for(var ya in T._layerEvents)qa=T._layerEvents[ya],p.disconnect(qa[0]),p.disconnect(qa[1]);delete T._layerEvents}});if(!this.loaded)return T.resolve(K),T.promise;var fa=function(qa){T._pendingLayers--;qa=q.indexOf(K.layers,
this);-1<qa&&(qa=T._layerEvents[qa])&&(p.disconnect(qa[0]),p.disconnect(qa[1]));0>=T._pendingLayers&&(delete T._layerEvents,T.isFulfilled()||T.resolve(K))};T._pendingLayers=0;T._layerEvents={};q.forEach(K.layers,function(qa,ya){qa&&T._pendingLayers++});q.forEach(K.layers,function(qa,ya){qa&&(qa.loaded?fa(qa):T._layerEvents[ya]=[p.connect(qa,"onLoad",qa,fa),p.connect(qa,"onError",qa,fa)])});return T.promise},_setBasemap:function(K){var T=K.layers,fa=K.infos,qa=0,ya=!0;this._basemapPending=!1;this.loaded&&
(q.forEach(T,function(Ea,Ta){Ea.loaded&&(fa[Ta].isReference||qa++)}),ya=qa);if(ya){if(ya=this._getBasemapLayerIds()){var Fa={basemapName:this._basemap,infos:t&&t[this._basemap]&&t[this._basemap].baseMapLayers};Fa.basemapName||(q.forEach(ya,function(Ea){if(this.getLayer(Ea)instanceof N)return Fa.basemapName="osm",Fa.infos=t&&t.osm&&t.osm.baseMapLayers,!1},this),Fa.basemapName||(Fa=null))}this._removeBasemap(ya);this._basemap=K.basemapName;this.basemapLayerIds=this._addBasemapLayers(T,fa);this.attr("data-basemap",
this.getBasemap());this.emit("basemap-change",{current:K,previous:Fa})}},_getBasemapLayerIds:function(){var K=[];q.forEach(this.layerIds,function(T){T=this.getLayer(T);T._basemapGalleryLayerType&&K.push(T.id)},this);return K},_addBasemapLayers:function(K,T){var fa=[],qa=[],ya=0;q.forEach(K,function(Fa,Ea){T[Ea].isReference?fa.push(Fa):(Fa._basemapGalleryLayerType="basemap",qa.push(Fa.id),this.addLayer(Fa,ya++))},this);fa.length&&q.forEach(fa,function(Fa){Fa.attr("data-reference",!0);Fa._basemapGalleryLayerType=
"reference";qa.push(Fa.id);this.addLayer(Fa,"top")},this);return qa},_removeBasemap:function(K){q.forEach(K,function(T){(T=this.getLayer(T))&&this.removeLayer(T)},this)},getBasemap:function(){return this._basemap||""},translate:function(K,T){K=K||0;T=T||0;if(!this._txTimer){this._tx=this._ty=0;var fa=this.toScreen(this.extent.getCenter());this.__panStart(fa.x,fa.y)}this._tx+=K;this._ty+=T;this.__pan(this._tx,this._ty);clearTimeout(this._txTimer);this._txTimer=setTimeout(this._endTranslate,150)},_endTranslate:function(){clearTimeout(this._txTimer);
this._txTimer=null;var K=this._tx,T=this._ty;this._tx=this._ty=0;this.__panEnd(K,T)},setTimeExtent:function(K){K=(this.timeExtent=K)?new K.constructor(K.toJson()):null;this.onTimeExtentChange(K)},setTimeSlider:function(K){this.timeSlider&&(ra(this._tsTimeExtentChange_connect),this.timeSlider=this._tsTimeExtentChange_connect=null);K&&(this.timeSlider=K,this.setTimeExtent(K.getCurrentTimeExtent()),this._tsTimeExtentChange_connect=ma(K,"onTimeExtentChange",this,"setTimeExtent"))},setVisibility:function(K){if(this.visible!==
K){this.visible=K;K||(this._display=this.container.style.display);this.container.style.display=K?this._display:"none";if(this.autoResize){var T=K?"resume":"pause";this._rszSignal[T]();this._oriSignal[T]()}K&&this.resize()}return this},resize:function(K){clearTimeout(this._resizeTimerHandle);this._destroyed||(!0===K?this._execResize():this._resizeTimerHandle=setTimeout(this._execResize,this.resizeDelay))},_timedResize:function(){this._resizeTimerHandle||this._execResize()},_execResize:function(){clearTimeout(this._resizeTimerHandle);
this._resizeTimerHandle=null;this.reposition();this._resize();this.autoResize&&this._startResizeTimer()},_resize:function(){var K=this.width,T=this.height,fa=g.get(this.container,"display"),qa=m.getContentBox(this.container);if(!("none"===fa||0>=qa.w||0>=qa.h||K===qa.w&&T===qa.h)){if(fa=this._zoomAnim||this._panAnim)fa.stop(),fa._fire("onEnd",[fa.node]);V(this.root,{width:(this.width=qa.w)+"px",height:(this.height=qa.h)+"px"});qa=this.width;fa=this.height;this.attribution&&this.attribution.domNode&&
g.set(this.attribution.domNode,"maxWidth",Math.floor(qa*this._mapParams.attributionWidth)+"px");this.__visibleRect.update(this.__visibleRect.x,this.__visibleRect.y,qa,fa);this.__visibleDelta.update(this.__visibleDelta.x,this.__visibleDelta.y,qa,fa);var ya=new ba(this.extent);K=(new ba(ya.x,ya.y,qa/K*ya.width,fa/T*ya.height,this.spatialReference)).getExtent();this.onResize(K,qa,fa);this._extentUtil(null,null,K,null,!0)}},reposition:function(){var K=this.position,T=K.x,fa=K.y;this._reposition();K=this.position;
if(T!==K.x||fa!==K.y)this.onReposition(K.x,K.y)},_reposition:function(){var K=m.position(this.container,!0),T=m.getPadBorderExtents(this.container);this.position.update(K.x+T.l,K.y+T.t)},_setClipRect:function(){delete this._clip;var K=7>=k("ie")||void 0===k("ie")&&7<=k("trident")?"rect(auto,auto,auto,auto)":"auto";if(this.wrapAround180){var T=this.width,fa=this.height,qa=this._getFrameWidth(),ya=T-qa;0<ya&&(K=ya/2,K="rect(0px,"+(K+qa)+"px,"+fa+"px,"+K+"px)",fa=this.extent.getWidth(),T=qa/T*fa,this._clip=
[(fa-T)/2,T])}V(this.__container,"clip",K)},_getAvailExtent:function(){var K=this.extent,T=this._clip;if(T){if(!K._clip){var fa=new ba(K);fa.width=T[1];fa.x+=T[0];K._clip=fa.getExtent()}return K._clip}return K},_fixedPan:function(K,T){return this._extentUtil(null,{dx:K,dy:T})},panUp:function(){return this._fixedPan(0,-.75*this.height)},panUpperRight:function(){return this._fixedPan(.75*this.width,-.75*this.height)},panRight:function(){return this._fixedPan(.75*this.width,0)},panLowerRight:function(){return this._fixedPan(.75*
this.width,.75*this.height)},panDown:function(){return this._fixedPan(0,.75*this.height)},panLowerLeft:function(){return this._fixedPan(-.75*this.width,.75*this.height)},panLeft:function(){return this._fixedPan(-.75*this.width,0)},panUpperLeft:function(){return this._fixedPan(-.75*this.width,-.75*this.height)},enableSnapping:function(K){K=K||{};if("esri.SnappingManager"===K.declaredClass)this.snappingManager=K;else{var T=ta++,fa=this;this._rids&&this._rids.push(T);E(["./SnappingManager"],function(qa){var ya=
fa._rids?q.indexOf(fa._rids,T):-1;-1!==ya&&(fa._rids.splice(ya,1),fa.snappingManager=new qa(l.mixin({map:fa},K)))})}return this.snappingManager},disableSnapping:function(){this.snappingManager&&this.snappingManager.destroy();this.snappingManager=null},_createLabelLayer:function(){!this._labels&&va&&this.loaded&&(this._labels=new va({id:"_internal_LabelLayer"}),this._labels._setMap(this,this._gc._surface),this._processLabelLayers(),this.on("layers-reordered",this._processLabelLayers))},_processLabelLayers:function(){null==
this._labelProcessor&&(this._labelProcessor=setTimeout(this._updateLabelLayers,0))},_updateLabelLayers:function(){this._labelProcessor=null;this._labels&&(this._labels.removeAllFeatureLayers(),q.forEach(this.graphicsLayerIds,function(K){K=this.getLayer(K);"function"===typeof K.applyEdits?this._labels.addFeatureLayer(K):"esri.layers.WFSLayer"===K.declaredClass&&this._labels.addFeatureLayer(K)},this))},_getMapImageLyr:function(){this.loaded&&!this._mapImageLyr&&(this._mapImageLyr=new ka,this._mapImageLyr._setMap(this,
this._layersDiv),this._placeMapImageLyr());return this._mapImageLyr},_placeMapImageLyr:function(){for(var K=this.layerIds,T=this._layerDivs,fa=!1,qa,ya,Fa=K.length-1;0<=Fa;Fa--)if(qa=K[Fa],ya=this.getLayer(qa),qa=T[qa],ya&&qa&&!ya._isReference){h.place(this._mapImageLyr._div,qa,"after");fa=!0;break}fa||h.place(this._mapImageLyr._div,this._layersDiv,"first")}});k("extend-esri")&&(y._CoreMap=w);return w})},"dojox/gfx/matrix":function(){define(["./_base","dojo/_base/lang"],function(E,z){var b=E.matrix=
{},w={};b._degToRad=function(p){return w[p]||(w[p]=Math.PI*p/180)};b._radToDeg=function(p){return p/Math.PI*180};b.Matrix2D=function(p){if(p)if("number"==typeof p)this.xx=this.yy=p;else if(p instanceof Array){if(0<p.length){for(var n=b.normalize(p[0]),l=1;l<p.length;++l){var q=n,f=b.normalize(p[l]);n=new b.Matrix2D;n.xx=q.xx*f.xx+q.xy*f.yx;n.xy=q.xx*f.xy+q.xy*f.yy;n.yx=q.yx*f.xx+q.yy*f.yx;n.yy=q.yx*f.xy+q.yy*f.yy;n.dx=q.xx*f.dx+q.xy*f.dy+q.dx;n.dy=q.yx*f.dx+q.yy*f.dy+q.dy}z.mixin(this,n)}}else z.mixin(this,
p)};z.extend(b.Matrix2D,{xx:1,xy:0,yx:0,yy:1,dx:0,dy:0});z.mixin(b,{identity:new b.Matrix2D,flipX:new b.Matrix2D({xx:-1}),flipY:new b.Matrix2D({yy:-1}),flipXY:new b.Matrix2D({xx:-1,yy:-1}),translate:function(p,n){return 1<arguments.length?new b.Matrix2D({dx:p,dy:n}):new b.Matrix2D({dx:p.x,dy:p.y})},scale:function(p,n){return 1<arguments.length?new b.Matrix2D({xx:p,yy:n}):"number"==typeof p?new b.Matrix2D({xx:p,yy:p}):new b.Matrix2D({xx:p.x,yy:p.y})},rotate:function(p){var n=Math.cos(p);p=Math.sin(p);
return new b.Matrix2D({xx:n,xy:-p,yx:p,yy:n})},rotateg:function(p){return b.rotate(b._degToRad(p))},skewX:function(p){return new b.Matrix2D({xy:Math.tan(p)})},skewXg:function(p){return b.skewX(b._degToRad(p))},skewY:function(p){return new b.Matrix2D({yx:Math.tan(p)})},skewYg:function(p){return b.skewY(b._degToRad(p))},reflect:function(p,n){1==arguments.length&&(n=p.y,p=p.x);var l=p*p,q=n*n,f=l+q,c=2*p*n/f;return new b.Matrix2D({xx:2*l/f-1,xy:c,yx:c,yy:2*q/f-1})},project:function(p,n){1==arguments.length&&
(n=p.y,p=p.x);var l=p*p,q=n*n,f=l+q,c=p*n/f;return new b.Matrix2D({xx:l/f,xy:c,yx:c,yy:q/f})},normalize:function(p){return p instanceof b.Matrix2D?p:new b.Matrix2D(p)},isIdentity:function(p){return 1==p.xx&&0==p.xy&&0==p.yx&&1==p.yy&&0==p.dx&&0==p.dy},clone:function(p){var n=new b.Matrix2D,l;for(l in p)"number"==typeof p[l]&&"number"==typeof n[l]&&n[l]!=p[l]&&(n[l]=p[l]);return n},invert:function(p){p=b.normalize(p);var n=p.xx*p.yy-p.xy*p.yx;return p=new b.Matrix2D({xx:p.yy/n,xy:-p.xy/n,yx:-p.yx/
n,yy:p.xx/n,dx:(p.xy*p.dy-p.yy*p.dx)/n,dy:(p.yx*p.dx-p.xx*p.dy)/n})},_multiplyPoint:function(p,n,l){return{x:p.xx*n+p.xy*l+p.dx,y:p.yx*n+p.yy*l+p.dy}},multiplyPoint:function(p,n,l){p=b.normalize(p);return"number"==typeof n&&"number"==typeof l?b._multiplyPoint(p,n,l):b._multiplyPoint(p,n.x,n.y)},multiplyRectangle:function(p,n){var l=b.normalize(p);n=n||{x:0,y:0,width:0,height:0};if(b.isIdentity(l))return{x:n.x,y:n.y,width:n.width,height:n.height};p=b.multiplyPoint(l,n.x,n.y);var q=b.multiplyPoint(l,
n.x,n.y+n.height),f=b.multiplyPoint(l,n.x+n.width,n.y);n=b.multiplyPoint(l,n.x+n.width,n.y+n.height);l=Math.min(p.x,q.x,f.x,n.x);var c=Math.min(p.y,q.y,f.y,n.y);return{x:l,y:c,width:Math.max(p.x,q.x,f.x,n.x)-l,height:Math.max(p.y,q.y,f.y,n.y)-c}},multiply:function(p){for(var n=b.normalize(p),l=1;l<arguments.length;++l){var q=n,f=b.normalize(arguments[l]);n=new b.Matrix2D;n.xx=q.xx*f.xx+q.xy*f.yx;n.xy=q.xx*f.xy+q.xy*f.yy;n.yx=q.yx*f.xx+q.yy*f.yx;n.yy=q.yx*f.xy+q.yy*f.yy;n.dx=q.xx*f.dx+q.xy*f.dy+q.dx;
n.dy=q.yx*f.dx+q.yy*f.dy+q.dy}return n},_sandwich:function(p,n,l){return b.multiply(b.translate(n,l),p,b.translate(-n,-l))},scaleAt:function(p,n,l,q){switch(arguments.length){case 4:return b._sandwich(b.scale(p,n),l,q);case 3:return"number"==typeof l?b._sandwich(b.scale(p),n,l):b._sandwich(b.scale(p,n),l.x,l.y)}return b._sandwich(b.scale(p),n.x,n.y)},rotateAt:function(p,n,l){return 2<arguments.length?b._sandwich(b.rotate(p),n,l):b._sandwich(b.rotate(p),n.x,n.y)},rotategAt:function(p,n,l){return 2<
arguments.length?b._sandwich(b.rotateg(p),n,l):b._sandwich(b.rotateg(p),n.x,n.y)},skewXAt:function(p,n,l){return 2<arguments.length?b._sandwich(b.skewX(p),n,l):b._sandwich(b.skewX(p),n.x,n.y)},skewXgAt:function(p,n,l){return 2<arguments.length?b._sandwich(b.skewXg(p),n,l):b._sandwich(b.skewXg(p),n.x,n.y)},skewYAt:function(p,n,l){return 2<arguments.length?b._sandwich(b.skewY(p),n,l):b._sandwich(b.skewY(p),n.x,n.y)},skewYgAt:function(p,n,l){return 2<arguments.length?b._sandwich(b.skewYg(p),n,l):b._sandwich(b.skewYg(p),
n.x,n.y)}});E.Matrix2D=b.Matrix2D;return b})},"dojox/gfx/_base":function(){define("dojo/_base/kernel dojo/_base/lang dojo/_base/Color dojo/_base/sniff dojo/_base/window dojo/_base/array dojo/dom dojo/dom-construct dojo/dom-geometry".split(" "),function(E,z,b,w,p,n,l,q,f){var c=z.getObject("dojox.gfx",!0),a=c._base={};c._hasClass=function(k,x){return(k=k.getAttribute("className"))&&0<=(" "+k+" ").indexOf(" "+x+" ")};c._addClass=function(k,x){var v=k.getAttribute("className")||"";(!v||0>(" "+v+" ").indexOf(" "+
x+" "))&&k.setAttribute("className",v+(v?" ":"")+x)};c._removeClass=function(k,x){var v=k.getAttribute("className");v&&k.setAttribute("className",v.replace(new RegExp("(^|\\s+)"+x+"(\\s+|$)"),"$1$2"))};a._getFontMeasurements=function(){var k={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,small:0,medium:0,large:0,"x-large":0,"xx-large":0},x;if(w("ie")){var v=p.doc.documentElement.style.fontSize||"";v||(p.doc.documentElement.style.fontSize="100%")}var y=q.create("div",{style:{position:"absolute",
left:"0",top:"-100px",width:"30px",height:"1000em",borderWidth:"0",margin:"0",padding:"0",outline:"none",lineHeight:"1",overflow:"hidden"}},p.body());for(x in k)y.style.fontSize=x,k[x]=16*Math.round(12*y.offsetHeight/16)/12/1E3;w("ie")&&(p.doc.documentElement.style.fontSize=v);p.body().removeChild(y);return k};var d=null;a._getCachedFontMeasurements=function(k){if(k||!d)d=a._getFontMeasurements();return d};var e=null,h={};a._getTextBox=function(k,x,v){var y=arguments.length,u;e||(e=q.create("div",
{style:{position:"absolute",top:"-10000px",left:"0",visibility:"hidden"}},p.body()));var t=e;t.className="";var r=t.style;r.borderWidth="0";r.margin="0";r.padding="0";r.outline="0";if(1<y&&x)for(u in x)u in h||(r[u]=x[u]);2<y&&v&&(t.className=v);t.innerHTML=k;t.getBoundingClientRect?(r=t.getBoundingClientRect(),r={l:r.left,t:r.top,w:r.width||r.right-r.left,h:r.height||r.bottom-r.top}):r=f.getMarginBox(t);t.innerHTML="";return r};a._computeTextLocation=function(k,x,v,y){var u={};switch(k.align){case "end":u.x=
k.x-x;break;case "middle":u.x=k.x-x/2;break;default:u.x=k.x}u.y=k.y-v*(y?.75:1);return u};a._computeTextBoundingBox=function(k){if(!c._base._isRendered(k))return{x:0,y:0,width:0,height:0};var x=k.getShape();var v=k.getFont()||c.defaultFont;k=k.getTextWidth();v=c.normalizedLength(v.size);x=a._computeTextLocation(x,k,v,!0);return{x:x.x,y:x.y,width:k,height:v}};a._isRendered=function(k){for(k=k.parent;k&&k.getParent;)k=k.parent;return null!==k};var m=0;a._getUniqueId=function(){do var k=E._scopeName+
"xUnique"+ ++m;while(l.byId(k));return k};var g=w("pointer-events")?"touchAction":w("MSPointer")?"msTouchAction":null;a._fixMsTouchAction=g?function(k){k.rawNode.style[g]="none"}:function(){};z.mixin(c,{defaultPath:{type:"path",path:""},defaultPolyline:{type:"polyline",points:[]},defaultRect:{type:"rect",x:0,y:0,width:100,height:100,r:0},defaultEllipse:{type:"ellipse",cx:0,cy:0,rx:200,ry:100},defaultCircle:{type:"circle",cx:0,cy:0,r:100},defaultLine:{type:"line",x1:0,y1:0,x2:100,y2:100},defaultImage:{type:"image",
x:0,y:0,width:0,height:0,src:""},defaultText:{type:"text",x:0,y:0,text:"",align:"start",decoration:"none",rotated:!1,kerning:!0},defaultTextPath:{type:"textpath",text:"",align:"start",decoration:"none",rotated:!1,kerning:!0},defaultStroke:{type:"stroke",color:"black",style:"solid",width:1,cap:"butt",join:4},defaultLinearGradient:{type:"linear",x1:0,y1:0,x2:100,y2:100,colors:[{offset:0,color:"black"},{offset:1,color:"white"}]},defaultRadialGradient:{type:"radial",cx:0,cy:0,r:100,colors:[{offset:0,
color:"black"},{offset:1,color:"white"}]},defaultPattern:{type:"pattern",x:0,y:0,width:0,height:0,src:""},defaultFont:{type:"font",style:"normal",variant:"normal",weight:"normal",size:"10pt",family:"serif"},getDefault:function(){var k={};return function(x){var v=k[x];if(v)return new v;v=k[x]=function(){};v.prototype=c["default"+x];return new v}}(),normalizeColor:function(k){return k instanceof b?k:new b(k)},normalizeParameters:function(k,x){var v;if(x){var y={};for(v in k)v in x&&!(v in y)&&(k[v]=
x[v])}return k},makeParameters:function(k,x){var v=null;if(!x)return z.delegate(k);var y={};for(v in k)v in y||(y[v]=z.clone(v in x?x[v]:k[v]));return y},formatNumber:function(k,x){var v=k.toString();if(0<=v.indexOf("e"))v=k.toFixed(4);else{var y=v.indexOf(".");0<=y&&5<v.length-y&&(v=k.toFixed(4))}return 0>k?v:x?" "+v:v},makeFontString:function(k){return k.style+" "+k.variant+" "+k.weight+" "+k.size+" "+k.family},splitFontString:function(k){var x=c.getDefault("Font");k=k.split(/\s+/);if(!(5>k.length)){x.style=
k[0];x.variant=k[1];x.weight=k[2];var v=k[3].indexOf("/");x.size=0>v?k[3]:k[3].substring(0,v);var y=4;0>v&&("/"==k[4]?y=6:"/"==k[4].charAt(0)&&(y=5));y<k.length&&(x.family=k.slice(y).join(" "))}return x},cm_in_pt:72/2.54,mm_in_pt:7.2/2.54,px_in_pt:function(){return c._base._getCachedFontMeasurements()["12pt"]/12},pt2px:function(k){return k*c.px_in_pt()},px2pt:function(k){return k/c.px_in_pt()},normalizedLength:function(k){if(0===k.length)return 0;if(2<k.length){var x=c.px_in_pt(),v=parseFloat(k);
switch(k.slice(-2)){case "px":return v;case "pt":return v*x;case "in":return 72*v*x;case "pc":return 12*v*x;case "mm":return v*c.mm_in_pt*x;case "cm":return v*c.cm_in_pt*x}}return parseFloat(k)},pathVmlRegExp:/([A-Za-z]+)|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g,pathSvgRegExp:/([A-DF-Za-df-z])|([-+]?\d*[.]?\d+(?:[eE][-+]?\d+)?)/g,equalSources:function(k,x){return k&&x&&k===x},switchTo:function(k){var x="string"==typeof k?c[k]:k;x&&(n.forEach("Group Rect Ellipse Circle Line Polyline Image Text Path TextPath Surface createSurface fixTarget".split(" "),
function(v){c[v]=x[v]}),"string"==typeof k?c.renderer=k:n.some(["svg","vml","canvas","canvasWithEvents","silverlight"],function(v){return c.renderer=c[v]&&c[v].Surface===c.Surface?v:null}))}});return c})},"esri/basemaps":function(){define(["require","dojo/has","./kernel","dojo/i18n!./nls/jsapi"],function(E,z,b,w){E={streets:{title:w.basemaps.streets,thumbnailUrl:E.toUrl("./images/basemap/streets.jpg"),itemId:"d8855ee4d3d74413babfb0f41203b168",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"}]},
satellite:{title:w.basemaps.satellite,thumbnailUrl:E.toUrl("./images/basemap/satellite.jpg"),itemId:"86de95d4e0244cba80f0fa2c9403a7b2",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"}]},hybrid:{title:w.basemaps.hybrid,thumbnailUrl:E.toUrl("./images/basemap/hybrid.jpg"),itemId:"413fd05bbd7342f5991d5ec96f4f8b18",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"},{url:"https://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer",
isReference:!0}]},terrain:{title:w.basemaps.terrain,thumbnailUrl:E.toUrl("./images/basemap/terrain.jpg"),itemId:"aab054ab883c4a4094c72e949566ad40",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer"},{url:"https://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer",isReference:!0}]},topo:{title:w.basemaps.topo,thumbnailUrl:E.toUrl("./images/basemap/topo.jpg"),itemId:"6e03e8c26aad4b9c92a87c1063ddb0e3",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"}]},
gray:{title:w.basemaps.gray,thumbnailUrl:E.toUrl("./images/basemap/gray.jpg"),itemId:"8b3b470883a744aeb60e5fff0a319ce7",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer"},{url:"https://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer",isReference:!0}]},"dark-gray":{title:w.basemaps["dark-gray"],thumbnailUrl:E.toUrl("./images/basemap/dark-gray.jpg"),itemId:"da65bacab5bd4defb576f839b6b28098",
baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer"},{url:"https://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Reference/MapServer",isReference:!0}]},oceans:{title:w.basemaps.oceans,thumbnailUrl:E.toUrl("./images/basemap/oceans.jpg"),itemId:"48b8cec7ebf04b5fbdcaf70d09daff21",baseMapLayers:[{url:"https://services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer"},{url:"https://services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer",
isReference:!0}]},"national-geographic":{title:w.basemaps["national-geographic"],thumbnailUrl:E.toUrl("./images/basemap/national-geographic.jpg"),itemId:"509e2d6b034246d692a461724ae2d62c",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer"}]},osm:{title:w.basemaps.osm,thumbnailUrl:E.toUrl("./images/basemap/osm.jpg"),itemId:"5d2bfa736f8448b3a1708e1f6be23eed",baseMapLayers:[{type:"OpenStreetMap"}]},"dark-gray-vector":{title:w.basemaps["dark-gray"],
thumbnailUrl:E.toUrl("./images/basemap/dark-gray.jpg"),itemId:"c11ce4f7801740b2905eb03ddc963ac8",baseMapLayers:[{url:"https://www.arcgis.com/sharing/rest/content/items/c11ce4f7801740b2905eb03ddc963ac8/resources/styles/root.json",type:"VectorTile"}]},"gray-vector":{title:w.basemaps.gray,thumbnailUrl:E.toUrl("./images/basemap/gray.jpg"),itemId:"8a2cba3b0ebf4140b7c0dc5ee149549a",baseMapLayers:[{url:"https://www.arcgis.com/sharing/rest/content/items/8a2cba3b0ebf4140b7c0dc5ee149549a/resources/styles/root.json",
type:"VectorTile"}]},"streets-vector":{title:w.basemaps.streets,thumbnailUrl:E.toUrl("./images/basemap/streets.jpg"),itemId:"de26a3cf4cc9451298ea173c4b324736",baseMapLayers:[{url:"https://www.arcgis.com/sharing/rest/content/items/de26a3cf4cc9451298ea173c4b324736/resources/styles/root.json",type:"VectorTile"}]},"topo-vector":{title:w.basemaps.topo,thumbnailUrl:E.toUrl("./images/basemap/topo.jpg"),itemId:"7dc6cea0b1764a1f9af2e679f642f0f5",baseMapLayers:[{url:"https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},
{url:"https://www.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json",type:"VectorTile"}]},"streets-night-vector":{title:w.basemaps["streets-night-vector"],thumbnailUrl:E.toUrl("./images/basemap/streets-night.jpg"),itemId:"86f556a2d1fd468181855a35e344567f",baseMapLayers:[{url:"https://www.arcgis.com/sharing/rest/content/items/86f556a2d1fd468181855a35e344567f/resources/styles/root.json",type:"VectorTile"}]},"streets-relief-vector":{title:w.basemaps["streets-relief-vector"],
thumbnailUrl:E.toUrl("./images/basemap/streets-relief.jpg"),itemId:"b266e6d17fc345b498345613930fbd76",baseMapLayers:[{url:"https://www.arcgis.com/sharing/rest/content/items/b266e6d17fc345b498345613930fbd76/resources/styles/root.json",type:"VectorTile"}]},"streets-navigation-vector":{title:w.basemaps["streets-navigation-vector"],thumbnailUrl:E.toUrl("./images/basemap/streets-navigation.jpg"),itemId:"63c47b7177f946b49902c24129b87252",baseMapLayers:[{url:"https://www.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/styles/root.json",
type:"VectorTile"}]}};z("extend-esri")&&(b.basemaps=E);return E})},"esri/Evented":function(){define("dojo/_base/declare dojo/_base/lang dojo/aspect dojo/Evented dojo/has ./kernel".split(" "),function(E,z,b,w,p,n){E=E([w],{declaredClass:"esri.Evented",registerConnectEvents:function(){var l=this.constructor,q=this.constructor._meta.parents,f=[{}],c={},a,d=function(h,m){z.isArray(h)||(h=[h]);for(var g=0;g<h.length;g++){var k=h[g];k._meta&&k._meta.parents&&d(k._meta.parents,m);k.prototype._eventMap&&
m.push(z.mixin({},k.prototype._eventMap))}return m};if(!l._onMap){d(q,f);f.push(this._eventMap);q=z.mixin.apply(this,f);for(e in this)/^on\w/.test(e)&&z.isFunction(this[e])&&(f=this._hyphenLower(e).toLowerCase(),q[f]||(c[f]={method:e}));for(a in q){var e=this._onCamelCase(a);c[a]={method:e,argKeys:q[a]}}l._onMap=c;return l._onMap}},on:function(l,q){if(-1<l.indexOf(",")){for(var f=l.split(/\s*,\s*/),c=f.length,a=[];c--;)a.push(this.on(f[c],q));a.remove=function(){for(var h=0;h<a.length;h++)a[h].remove()};
return a}f=this.constructor._onMap||this.registerConnectEvents();c="string"==typeof l&&l.toLowerCase();var d=this._onCamelCase(c),e=f&&f[c];return(d=e&&e.method||this[d]&&z.isFunction(this[d])&&d)?e&&z.isArray(e.argKeys)?(f=this._onArr2Obj(q,f[c].argKeys),b.after(this,d,f,!0)):b.after(this,d,function(h){h=h||{};h.target||(h.target=this);q.call(this,h)},!0):this.inherited(arguments)},emit:function(l,q){var f,c,a=l.toLowerCase();var d=this._onCamelCase(l);var e=this.constructor._onMap||this.registerConnectEvents();
d=(c=e&&e[a]&&e[a].method||z.isFunction(this[d])&&d)&&this[c];c&&e&&e[a]&&this._onObj2Arr(function(){f=Array.prototype.slice.call(arguments)},e[a].argKeys)(q);q=q||{};q.target||(q.target=this);if(d){var h=f&&f.length?f:[q];h=d.apply(this,h)}this.inherited(arguments,[l,q]);return h},_onObj2Arr:function(l,q){if(q){var f=this;return function(c){var a,d=[],e=q.length;for(a=0;a<e;a++)d[a]=c[q[a]];l.apply(f,d)}}return l},_onArr2Obj:function(l,q){if(q){var f=this;return function(){var c,a={},d=arguments.length;
for(c=0;c<d;c++)a[q[c]]=arguments[c];a.target||(a.target=f);l.call(f,a)}}return l},_hyphenLower:function(l){return l.replace(/^on/,"").replace(/[A-Z](?=[a-z])/g,function(q,f){return(f?"-":"")+q.toLowerCase()})},_onCamelCase:function(l){return"on"+l.substr(0,1).toUpperCase()+l.substr(1).replace(/\-([a-z])/g,function(q,f){return f.toUpperCase()})}});p("extend-esri")&&(n.Evented=E);return E})},"esri/fx":function(){define("dojo/_base/connect dojo/_base/fx dojo/_base/lang dojo/dom dojo/dom-geometry dojo/dom-style dojo/fx dojo/has ./kernel".split(" "),
function(E,z,b,w,p,n,l,q,f){var c={animateRange:function(a){var d=a.range;return new z.Animation(b.mixin({curve:new z._Line(d.start,d.end)},a))},resize:function(a){var d=a.node=w.byId(a.node),e=a.start,h=a.end;e||(e=p.getMarginBox(d),d=p.getPadBorderExtents(d),e=a.start={left:e.l+d.l,top:e.t+d.t,width:e.w-d.w,height:e.h-d.h});h||(h=a.anchor?a.anchor:{x:e.left,y:e.top},d=a.size,h=a.end={left:e.left-(d.width-e.width)*(h.x-e.left)/e.width,top:e.top-(d.height-e.height)*(h.y-e.top)/e.height,width:d.width,
height:d.height});return z.animateProperty(b.mixin({properties:{left:{start:e.left,end:h.left},top:{start:e.top,end:h.top},width:{start:e.width,end:h.width},height:{start:e.height,end:h.height}}},a))},slideTo:function(a){var d=a.node=w.byId(a.node),e=n.getComputedStyle,h=null,m=null,g=function(){return function(){var k="absolute"==d.style.position?"absolute":"relative";h="absolute"==k?d.offsetTop:parseInt(e(d).top)||0;m="absolute"==k?d.offsetLeft:parseInt(e(d).left)||0;"absolute"!=k&&"relative"!=
k&&(k=p.position(d,!0),h=k.y,m=k.x,d.style.position="absolute",d.style.top=h+"px",d.style.left=m+"px")}}();g();a=z.animateProperty(b.mixin({properties:{top:{start:h,end:a.top||0},left:{start:m,end:a.left||0}}},a));E.connect(a,"beforeBegin",a,g);return a},flash:function(a){a=b.mixin({end:"#f00",duration:500,count:1},a);a.duration/=2*a.count;var d=w.byId(a.node),e=a.start;e||(e=n.getComputedStyle(d).backgroundColor);var h=a.end,m=[],g=a.count;d={node:d,duration:a.duration};for(a=0;a<g;a++)m.push(z.animateProperty(b.mixin({properties:{backgroundColor:{start:e,
end:h}}},d))),m.push(z.animateProperty(b.mixin({properties:{backgroundColor:{start:h,end:e}}},d)));return l.chain(m)}};q("extend-esri")&&b.mixin(b.getObject("fx",!0,f),c);return c})},"dojo/fx":function(){define("./_base/lang ./Evented ./_base/kernel ./_base/array ./aspect ./_base/fx ./dom ./dom-style ./dom-geometry ./ready require".split(" "),function(E,z,b,w,p,n,l,q,f,c,a){b.isAsync||c(0,function(){a(["./fx/Toggler"])});b=b.fx={};c={_fire:function(h,m){this[h]&&this[h].apply(this,m||[]);return this}};
var d=function(h){this._index=-1;this._animations=h||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;w.forEach(this._animations,function(m){m&&("undefined"!=typeof m.duration&&(this.duration+=m.duration),m.delay&&(this.duration+=m.delay))},this)};d.prototype=new z;E.extend(d,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){this._onAnimateCtx.remove();this._onEndCtx.remove();this._onAnimateCtx=this._onEndCtx=null;this._index+1==this._animations.length?
this._fire("onEnd"):(this._current=this._animations[++this._index],this._onAnimateCtx=p.after(this._current,"onAnimate",E.hitch(this,"_onAnimate"),!0),this._onEndCtx=p.after(this._current,"onEnd",E.hitch(this,"_onEnd"),!0),this._current.play(0,!0))},play:function(h,m){this._current||(this._current=this._animations[this._index=0]);if(!m&&"playing"==this._current.status())return this;var g=p.after(this._current,"beforeBegin",E.hitch(this,function(){this._fire("beforeBegin")}),!0),k=p.after(this._current,
"onBegin",E.hitch(this,function(v){this._fire("onBegin",arguments)}),!0),x=p.after(this._current,"onPlay",E.hitch(this,function(v){this._fire("onPlay",arguments);g.remove();k.remove();x.remove()}));this._onAnimateCtx&&this._onAnimateCtx.remove();this._onAnimateCtx=p.after(this._current,"onAnimate",E.hitch(this,"_onAnimate"),!0);this._onEndCtx&&this._onEndCtx.remove();this._onEndCtx=p.after(this._current,"onEnd",E.hitch(this,"_onEnd"),!0);this._current.play.apply(this._current,arguments);return this},
pause:function(){if(this._current){var h=p.after(this._current,"onPause",E.hitch(this,function(m){this._fire("onPause",arguments);h.remove()}),!0);this._current.pause()}return this},gotoPercent:function(h,m){this.pause();var g=this.duration*h;this._current=null;w.some(this._animations,function(k,x){if(g<=k.duration)return this._current=k,this._index=x,!0;g-=k.duration;return!1},this);this._current&&this._current.gotoPercent(g/this._current.duration);m&&this.play();return this},stop:function(h){if(this._current){if(h){for(;this._index+
1<this._animations.length;++this._index)this._animations[this._index].stop(!0);this._current=this._animations[this._index]}var m=p.after(this._current,"onStop",E.hitch(this,function(g){this._fire("onStop",arguments);m.remove()}),!0);this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this.stop();this._onAnimateCtx&&this._onAnimateCtx.remove();this._onEndCtx&&this._onEndCtx.remove()}});E.extend(d,c);b.chain=function(h){return new d(E.isArray(h)?
h:Array.prototype.slice.call(h,0))};var e=function(h){this._animations=h||[];this._connects=[];this.duration=this._finished=0;w.forEach(h,function(g){var k=g.duration;g.delay&&(k+=g.delay);this.duration<k&&(this.duration=k);this._connects.push(p.after(g,"onEnd",E.hitch(this,"_onEnd"),!0))},this);this._pseudoAnimation=new n.Animation({curve:[0,1],duration:this.duration});var m=this;w.forEach("beforeBegin onBegin onPlay onAnimate onPause onStop onEnd".split(" "),function(g){m._connects.push(p.after(m._pseudoAnimation,
g,function(){m._fire(g,arguments)},!0))})};E.extend(e,{_doAction:function(h,m){w.forEach(this._animations,function(g){g[h].apply(g,m)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(h,m){var g=this._pseudoAnimation;g[h].apply(g,m)},play:function(h,m){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this},gotoPercent:function(h,
m){var g=this.duration*h;w.forEach(this._animations,function(k){k.gotoPercent(k.duration<g?1:g/k.duration,m)});this._call("gotoPercent",arguments);return this},stop:function(h){this._doAction("stop",arguments);this._call("stop",arguments);return this},status:function(){return this._pseudoAnimation.status()},destroy:function(){this.stop();w.forEach(this._connects,function(h){h.remove()})}});E.extend(e,c);b.combine=function(h){return new e(E.isArray(h)?h:Array.prototype.slice.call(h,0))};b.wipeIn=function(h){var m=
h.node=l.byId(h.node),g=m.style,k;h=n.animateProperty(E.mixin({properties:{height:{start:function(){k=g.overflow;g.overflow="hidden";if("hidden"==g.visibility||"none"==g.display)return g.height="1px",g.display="",g.visibility="",1;var v=q.get(m,"height");return Math.max(v,1)},end:function(){return m.scrollHeight}}}},h));var x=function(){g.height="auto";g.overflow=k};p.after(h,"onStop",x,!0);p.after(h,"onEnd",x,!0);return h};b.wipeOut=function(h){var m=(h.node=l.byId(h.node)).style,g;h=n.animateProperty(E.mixin({properties:{height:{end:1}}},
h));p.after(h,"beforeBegin",function(){g=m.overflow;m.overflow="hidden";m.display=""},!0);var k=function(){m.overflow=g;m.height="auto";m.display="none"};p.after(h,"onStop",k,!0);p.after(h,"onEnd",k,!0);return h};b.slideTo=function(h){var m=null,g=null,k=function(x){return function(){var v=q.getComputedStyle(x),y=v.position;m="absolute"==y?x.offsetTop:parseInt(v.top)||0;g="absolute"==y?x.offsetLeft:parseInt(v.left)||0;"absolute"!=y&&"relative"!=y&&(v=f.position(x,!0),m=v.y,g=v.x,x.style.position=
"absolute",x.style.top=m+"px",x.style.left=g+"px")}}(h.node=l.byId(h.node));k();h=n.animateProperty(E.mixin({properties:{top:h.top||0,left:h.left||0}},h));p.after(h,"beforeBegin",k,!0);return h};return b})},"esri/deferredUtils":function(){define(["dojo/_base/lang","dojo/has","./kernel"],function(E,z,b){var w={_dfdCanceller:function(p){p.canceled=!0;var n=p._pendingDfd;if(!p.isFulfilled()&&n&&!n.isFulfilled()){n.cancel();var l=n.results&&n.results[1]}p._pendingDfd=null;return l},_fixDfd:function(p){var n=
p.then;p.then=function(l,q,f){if(l){var c=l;l=function(a){return a&&a._argsArray?c.apply(null,a):c(a)}}return n.call(this,l,q,f)};return p},_resDfd:function(p,n,l){var q=n.length;1===q?l?p.errback(n[0]):p.callback(n[0]):1<q?(n._argsArray=!0,p.callback(n)):p.callback()}};z("extend-esri")&&E.mixin(b,w);return w})},"esri/tileUtils":function(){define(["dojo/_base/array","dojo/has","./kernel","./geometry/Point","./geometry/Extent"],function(E,z,b,w,p){var n={_addFrameInfo:function(l,q){var f,c,a=2*q.origin[1],
d=q.origin[0],e=l.origin.x,h=l.width,m;E.forEach(l.lods,function(g){f=Math.round(a/g.resolution);c=Math.ceil(f/h);m=Math.floor((d-e)/(h*g.resolution));g._frameInfo||(g._frameInfo=[c,m,m+c-1,f])})},getContainingTileCoords:function(l,q,f){var c=l.origin;f=f.resolution;return{row:Math.floor((c.y-q.y)/(l.height*f)),col:Math.floor((q.x-c.x)/(l.width*f))}},getCandidateTileInfo:function(l,q,f){var c=l.width;var a=l.height,d=f.xmax-f.xmin,e=f.ymax-f.ymin,h=l.__tileInfo===q,m=h?l.getMinZoom():-1;h=h?l.getMaxZoom():
-1;var g=-1,k=q.lods,x=Math.abs,v;h=-1<h?h:k.length-1;for(m=-1<m?m:0;m<=h;m++)if(v=k[m]){var y=d>e?x(e-a*v.resolution):x(d-c*v.resolution);if(0>g||y<=g){var u=v;g=y}else break}c=u;u=c.resolution;a=(f.xmin+f.xmax)/2;d=(f.ymin+f.ymax)/2;e=l.width/2*u;u*=l.height/2;a=new p(a-e,d-u,a+e,d+u,f.spatialReference);f=new w(a.xmin,a.ymax,f.spatialReference);h=c.resolution;e=q.width;d=q.height;q=q.origin;l=l.__visibleDelta;u=Math.floor;k=e*h;x=d*h;h=u((q.y-f.y)/x);g=u((f.x-q.x)/k);m=q.y-h*x;q=u(Math.abs((f.x-
(q.x+g*k))*e/k))+l.x;l=u(Math.abs((f.y-m)*d/x))+l.y;return{tile:{point:f,coords:{row:h,col:g},offsets:{x:q,y:l}},lod:c,extent:a}},getTileExtent:function(l,q,f,c){var a=l.origin;q=l.lods[q].resolution;var d=l.width,e=l.height;return new p(c*q*d+a.x,a.y-(f+1)*q*e,(c+1)*q*d+a.x,a.y-f*q*e,l.spatialReference)}};z("extend-esri")&&(b.TileUtils=n);return n})},"esri/geometry/Point":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ../srUtils".split(" "),
function(E,z,b,w,p,n,l,q){function f(h,m){89.99999<m?m=89.99999:-89.99999>m&&(m=-89.99999);m*=.017453292519943;return[111319.49079327169*h,3189068.5*Math.log((1+Math.sin(m))/(1-Math.sin(m)))]}function c(h,m,g){h=h/6378137*57.29577951308232;return g?[h,57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*m/6378137)))]:[h-360*Math.floor((h+180)/360),57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*m/6378137)))]}function a(){}function d(){}function e(h){var m=h._json;h._unquantizeFn?
(m=h._unquantizeFn({x:m.x,y:m.y}),h._xVal=m.x,h._yVal=m.y,h._unquantizeFn=null):(h._xVal=m.x,h._yVal=m.y);h._json=null}n={type:"point",x:0,y:0};E=E(l,{declaredClass:"esri.geometry.Point",type:"point",x:0,y:0,constructor:function(h,m,g){z.isArray(h)?(this.x=h[0],this.y=h[1],this.spatialReference=m):p.isObject(h)?(p.mixin(this,h),null!=this.latitude&&(this.y=this.latitude),null!=this.longitude&&(this.x=this.longitude),this.spatialReference&&(this.spatialReference=q.createSpatialReference(this.spatialReference))):
(this.x=h,this.y=m,this.spatialReference=g);this.verifySR()},offset:function(h,m){return new this.constructor(this.x+h,this.y+m,this.spatialReference)},setX:function(h){this.x=h;this.clearCache();return this},setY:function(h){this.y=h;this.clearCache();return this},setLongitude:function(h){var m=this.spatialReference;m&&(m._isWebMercator()?this.setX(f(h,this.y)[0]):4326===m.wkid&&this.setX(h));return this},setLatitude:function(h){var m=this.spatialReference;m&&(m._isWebMercator()?this.setY(f(this.x,
h)[1]):4326===m.wkid&&this.setY(h));return this},getLongitude:function(){var h=this.spatialReference;if(h)if(h._isWebMercator())var m=c(this.x,this.y)[0];else 4326===h.wkid&&(m=this.x);return m},getLatitude:function(){var h=this.spatialReference;if(h)if(h._isWebMercator())var m=c(this.x,this.y)[1];else 4326===h.wkid&&(m=this.y);return m},update:function(h,m){this.x=h;this.y=m;this.clearCache();return this},normalize:function(){var h=this.x,m=this.spatialReference;if(m){var g=m._getInfo();g&&(h=this._normalizeX(h,
g))}return new this.constructor(h,this.y,m)},_normalizeX:function(h,m){var g=m.valid[0],k=m.valid[1];m=2*k;h>k?(g=Math.ceil(Math.abs(h-k)/m),h-=g*m):h<g&&(g=Math.ceil(Math.abs(h-g)/m),h+=g*m);return h},toJson:function(){var h={x:this.x,y:this.y},m=this.spatialReference;m&&(h.spatialReference=m.toJson());return h}});a.prototype=E.prototype;d.prototype=new a;Object.defineProperty(d.prototype,"x",{get:function(){this._json&&e(this);return this._xVal},set:function(h){this._xVal=h}});Object.defineProperty(d.prototype,
"y",{get:function(){this._json&&e(this);return this._yVal},set:function(h){this._yVal=h}});d.prototype.setupLazyUnquantization=function(h,m){this._unquantizeFn=h;this._json=m};E.simpleConstructor=a;E.accessorConstructor=d;E.lngLatToXY=f;E.xyToLngLat=c;E.defaultProps=n;E.metersPerDegree=6378137*Math.PI/180;b("extend-esri")&&(z.setObject("geometry.Point",E,w),w.geometry.defaultPoint=n);return E})},"esri/SpatialReference":function(){define(["dojo/_base/declare","dojo/_base/array","dojo/has","./kernel",
"./lang"],function(E,z,b,w,p){function n(){}var l=[-2.0037508342788905E7,2.0037508342788905E7],q=[-2.0037508342787E7,2.0037508342787E7];E=E(null,{declaredClass:"esri.SpatialReference",constructor:function(f){f&&(p.isObject(f)?p.mixin(this,f):p.isString(f)?this.wkt=f:this.wkid=f)},wkid:null,wkt:null,_info:{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:l,origin:q,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:l,origin:q,
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:l,origin:q,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:l,origin:q,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,180],dx:1E-5}},_isWebMercator:function(){return-1!==z.indexOf([102113,102100,3857,3785],this.wkid)},_isWrappable:function(){return-1!==z.indexOf([102113,102100,3857,3785,4326],this.wkid)},_getInfo:function(){return this.wkid?this._info[this.wkid]:null},_canProject:function(f){var c=!1;f&&(c=this.isWebMercator()&&4326===f.wkid||f.isWebMercator()&&4326===this.wkid);return c},isWebMercator:function(){return this._isWebMercator()},equals:function(f){var c=!1;f&&(this===f&&
(c=!0),this.wkid||f.wkid?c=this.wkid===f.wkid||this.isWebMercator()&&f.isWebMercator()||this.wkid===f.latestWkid||f.wkid===this.latestWkid:this.wkt&&f.wkt&&(c=this.wkt.toUpperCase()===f.wkt.toUpperCase()));return c},toJson:function(){var f=null;null!=this.wkid?f={wkid:this.wkid}:null!=this.wkt&&(f={wkt:this.wkt});f&&null!=this.latestWkid&&(f.latestWkid=this.latestWkid);return f}});n.prototype=E.prototype;E.simpleConstructor=n;b("extend-esri")&&(w.SpatialReference=E);return E})},"esri/geometry/Geometry":function(){define(["dojo/_base/declare",
"dojo/_base/lang","dojo/has","../kernel","../SpatialReference"],function(E,z,b,w,p){E=E(null,{declaredClass:"esri.geometry.Geometry",spatialReference:null,type:null,cache:void 0,setSpatialReference:function(n){this.spatialReference=n;return this},verifySR:function(){this.spatialReference||this.setSpatialReference(new p(4326))},getExtent:function(){return null},clearCache:function(){this.cache=void 0},getCacheValue:function(n){return this.cache&&this.cache[n]},setCacheValue:function(n,l){this.cache||
(this.cache={});this.cache[n]=l}});b("extend-esri")&&z.setObject("geometry.Geometry",E,w);return E})},"esri/srUtils":function(){define(["./SpatialReference","./ImageSpatialReference","./kernel","./sniff","dojo/_base/lang"],function(E,z,b,w,p){function n(q){var f=!1;q&&(q.ics||q.icsid)&&(f=!0);return f}var l={isICS:n,createSpatialReference:function(q){var f=null;q&&(f=n(q)?new z(q):new E(q));return f}};w("extend-esri")&&p.mixin(b,l);return l})},"esri/ImageSpatialReference":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ./kernel ./lang ./SpatialReference".split(" "),
function(E,z,b,w,p,n){E=E(n,{declaredClass:"esri.ImageSpatialReference",constructor:function(l){l&&z.isObject(l)&&z.mixin(this,l)},icsid:null,icsns:null,ics:null,_isWebMercator:function(){return!1},_isWrappable:function(){return!1},equals:function(l){var q=!1;if(l)if(this.icsid&&l.icsid){if(q=this.icsid===l.icsid,this.icsns||l.icsns)q=q&&this.icsns===l.icsns}else this.ics&&l.ics&&(q=this.ics===l.ics);return q},toJson:function(l){var q=null,f=p.isDefined;l=f(l)?l:!0;f(this.icsid)?(q={icsid:this.icsid},
f(this.icsns)&&(q.icsns=this.icsns)):f(this.ics)&&(q={ics:this.ics});f(this.url)&&f(q)&&l&&(q.url=this.url);return q}});b("extend-esri")&&(w.ImageSpatialReference=E);return E})},"esri/geometry/Extent":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ./Point ./webMercatorUtils ./mathUtils ../srUtils".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d){function e(){}var h={type:"extent",xmin:0,ymin:0,xmax:0,ymax:0},m=E(q,{declaredClass:"esri.geometry.Extent",
type:"extent",xmin:0,ymin:0,xmax:0,ymax:0,constructor:function(g,k,x,v,y){n.isObject(g)?(n.mixin(this,g),this.spatialReference&&(this.spatialReference=d.createSpatialReference(this.spatialReference))):this.update(g,k,x,v,y);this.verifySR()},getWidth:function(){return Math.abs(this.xmax-this.xmin)},getHeight:function(){return Math.abs(this.ymax-this.ymin)},getCenter:function(){return new f((this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2,this.spatialReference)},getTopLeft:function(){return new f(this.xmin,
this.ymax,this.spatialReference)},getTopRight:function(){return new f(this.xmax,this.ymax,this.spatialReference)},getBottomLeft:function(){return new f(this.xmin,this.ymin,this.spatialReference)},getBottomRight:function(){return new f(this.xmax,this.ymin,this.spatialReference)},centerAt:function(g){var k=this.getCenter(),x=g.x-k.x;g=g.y-k.y;return new m(this.xmin+x,this.ymin+g,this.xmax+x,this.ymax+g,this.spatialReference)},update:function(g,k,x,v,y){this.xmin=g;this.ymin=k;this.xmax=x;this.ymax=
v;this.spatialReference=y;this.clearCache();return this},offset:function(g,k){return new m(this.xmin+g,this.ymin+k,this.xmax+g,this.ymax+k,this.spatialReference)},expand:function(g){var k=(1-g)/2;g=this.getWidth()*k;k*=this.getHeight();return new m(this.xmin+g,this.ymin+k,this.xmax-g,this.ymax-k,this.spatialReference)},intersects:function(g){if(!g)return!1;var k=g.type,x=this.spatialReference,v=g.spatialReference;x&&v&&!x.equals(v)&&x._canProject(v)&&(g=x.isWebMercator()?c.geographicToWebMercator(g):
c.webMercatorToGeographic(g,!0));switch(k){case "point":return this.contains(g);case "multipoint":return this._intersectsMultipoint(g);case "extent":return this._intersectsExtent(g);case "polygon":return this._intersectsPolygon(g);case "polyline":return this._intersectsPolyline(g)}},normalize:function(){var g=this._normalize(!1,!0);b.isArray(g)||(g=[g]);return g},shiftCentralMeridian:function(){return this._normalize(!0)},bisect:function(){var g=this.spatialReference,k=g&&g._getInfo(),x=[],v=0;if(k&&
this._isOutOfBounds(k)){var y=this;v=y.xmin;var u=y.ymin,t=y.ymax,r=k.valid[0],B=k.valid[1];y.getWidth()>2*B&&(y=y.getCenter(),y=new m(y.x-B,u,y.x+B,t,new l(g.toJson())));v=y.xmin-v;var C=this._normalizeX(y.xmin,k);k=this._normalizeX(y.xmax,k);C.frameId===k.frameId?x.push(new m(C.x,u,k.x,t,new l(g.toJson()))):x.push(new m(C.x,u,B,t,new l(g.toJson())),new m(r,u,k.x,t,new l(g.toJson())))}else x.push(this.getExtent());return{extents:x,marginLeft:v}},_intersectsMultipoint:function(g){var k=g.points.length,
x;for(x=0;x<k;x++)if(this.contains(g.getPoint(x)))return!0;return!1},_intersectsExtent:function(g){var k,x,v=!1;if(this.xmin<=g.xmin){var y=g.xmin;this.xmax<y?v=!0:k=Math.min(this.xmax,g.xmax)-y}else y=this.xmin,g.xmax<y?v=!0:k=Math.min(this.xmax,g.xmax)-y;if(this.ymin<=g.ymin){var u=g.ymin;this.ymax<u?v=!0:x=Math.min(this.ymax,g.ymax)-u}else u=this.ymin,g.ymax<u?v=!0:x=Math.min(this.ymax,g.ymax)-u;return v?null:new m(y,u,y+k,u+x,this.spatialReference)},_intersectsPolygon:function(g){var k=[this.xmin,
this.ymax],x=[this.xmax,this.ymax],v=[this.xmin,this.ymin],y=[this.xmax,this.ymin],u=[k,x,v,y];k=[[v,k],[k,x],[x,y],[y,v]];v=g.rings;y=v.length;var t=new f(0,0,this.spatialReference);var r=u.length;for(x=0;x<r;x++)if(t.update(u[x][0],u[x][1]),g.contains(t))return!0;t.setSpatialReference(g.spatialReference);for(x=0;x<y;x++)if(u=v[x],r=u.length){var B=u[0];t.update(B[0],B[1]);if(this.contains(t))return!0;for(g=1;g<r;g++){var C=u[g];t.update(C[0],C[1]);if(this.contains(t)||this._intersectsLine([B,C],
k))return!0;B=C}}return!1},_intersectsPolyline:function(g){var k=[[[this.xmin,this.ymin],[this.xmin,this.ymax]],[[this.xmin,this.ymax],[this.xmax,this.ymax]],[[this.xmax,this.ymax],[this.xmax,this.ymin]],[[this.xmax,this.ymin],[this.xmin,this.ymin]]],x,v=g.paths,y=v.length,u,t=new f(0,0,g.spatialReference);for(g=0;g<y;g++){var r=v[g];if(u=r.length){var B=r[0];t.update(B[0],B[1]);if(this.contains(t))return!0;for(x=1;x<u;x++){var C=r[x];t.update(C[0],C[1]);if(this.contains(t)||this._intersectsLine([B,
C],k))return!0;B=C}}}return!1},_intersectsLine:function(g,k){var x=a._getLineIntersection2,v,y=k.length;for(v=0;v<y;v++)if(x(g,k[v]))return!0;return!1},contains:function(g){if(!g)return!1;var k=g.type;if("point"===k){var x=this.spatialReference,v=g.spatialReference;k=g.x;g=g.y;x&&v&&!x.equals(v)&&x._canProject(v)&&(g=x.isWebMercator()?f.lngLatToXY(k,g):f.xyToLngLat(k,g,!0),k=g[0],g=g[1]);return k>=this.xmin&&k<=this.xmax&&g>=this.ymin&&g<=this.ymax}return"extent"===k?this._containsExtent(g):!1},_containsExtent:function(g){var k=
g.xmin,x=g.ymin,v=g.xmax,y=g.ymax,u=g.spatialReference;g=new f(k,x,u);k=new f(k,y,u);y=new f(v,y,u);x=new f(v,x,u);return this.contains(g)&&this.contains(k)&&this.contains(y)&&this.contains(x)?!0:!1},union:function(g){return new m(Math.min(this.xmin,g.xmin),Math.min(this.ymin,g.ymin),Math.max(this.xmax,g.xmax),Math.max(this.ymax,g.ymax),this.spatialReference)},getExtent:function(){var g=this.spatialReference;return new m(this.xmin,this.ymin,this.xmax,this.ymax,g&&new l(g.toJson()))},_shiftCM:function(g){var k=
this.getCacheValue("_shifted");if(!k){k=new m(this.toJson());var x=k.spatialReference;if(g=g||x._getInfo()){var v=this._getCM(g);if(v){var y=x._isWebMercator()?c.webMercatorToGeographic(v):v;k.xmin-=v.x;k.xmax-=v.x;x._isWebMercator()||(y.x=this._normalizeX(y.x,g).x);k.setSpatialReference(new l(n.substitute({Central_Meridian:y.x},4326===x.wkid?g.altTemplate:g.wkTemplate)))}}this.setCacheValue("_shifted",k)}return k},_getCM:function(g){var k;this._isOutOfBounds(g)&&(k=this.getCenter());return k},_isOutOfBounds:function(g){var k=
g.valid[0];g=g.valid[1];var x=this.xmin,v=this.xmax;return!(x>=k&&x<=g&&v>=k&&v<=g)},_normalize:function(g,k,x){var v=new m(this.toJson()),y=v.spatialReference;if(y&&(x=x||y._getInfo())){var u=z.map(this._getParts(x),function(t){return t.extent});return 2<u.length?g?this._shiftCM(x):v.update(x.valid[0],v.ymin,x.valid[1],v.ymax,y):2===u.length?g?this._shiftCM(x):k?u:{rings:z.map(u,function(t){return[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]}),spatialReference:y}:
u[0]||v}return v},_getParts:function(g){var k=this.getCacheValue("_parts");if(!k){k=[];var x=this.xmin,v=this.xmax,y=this.ymin,u=this.ymax,t=this.spatialReference,r=this.getWidth(),B=x,C=v,F=0,A=0;g=g||t._getInfo();var D=g.valid[0];var G=g.valid[1];A=this._normalizeX(x,g);x=A.x;F=A.frameId;A=this._normalizeX(v,g);v=A.x;A=A.frameId;g=x===v&&0<r;if(r>2*G){r=new m(B<C?x:v,y,G,u,t);x=new m(D,y,B<C?v:x,u,t);G=new m(0,y,G,u,t);y=new m(D,y,0,u,t);t=[];D=[];r.contains(G)&&t.push(F);r.contains(y)&&D.push(F);
x.contains(G)&&t.push(A);x.contains(y)&&D.push(A);for(u=F+1;u<A;u++)t.push(u),D.push(u);k.push({extent:r,frameIds:[F]},{extent:x,frameIds:[A]},{extent:G,frameIds:t},{extent:y,frameIds:D})}else x>v||g?k.push({extent:new m(x,y,G,u,t),frameIds:[F]},{extent:new m(D,y,v,u,t),frameIds:[A]}):k.push({extent:new m(x,y,v,u,t),frameIds:[F]});this.setCacheValue("_parts",k)}return k},_normalizeX:function(g,k){var x=0,v=k.valid[0],y=k.valid[1];k=2*y;g>y?(x=Math.ceil(Math.abs(g-y)/k),g-=x*k):g<v&&(x=Math.ceil(Math.abs(g-
v)/k),g+=x*k,x=-x);return{x:g,frameId:x}},toJson:function(){var g={xmin:this.xmin,ymin:this.ymin,xmax:this.xmax,ymax:this.ymax},k=this.spatialReference;k&&(g.spatialReference=k.toJson());return g}});e.prototype=m.prototype;m.simpleConstructor=e;m.defaultProps=h;w("extend-esri")&&(b.setObject("geometry.Extent",m,p),p.geometry.defaultExtent=h);return m})},"esri/geometry/webMercatorUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/has ../kernel ../SpatialReference ./Point".split(" "),function(E,
z,b,w,p,n){function l(c,a,d,e){if("point"===c.type){var h=a(c.x,c.y,e);return new c.constructor(h[0],h[1],new p(d))}if("extent"===c.type){h=a(c.xmin,c.ymin,e);var m=a(c.xmax,c.ymax,e);return new c.constructor(h[0],h[1],m[0],m[1],new p(d))}if("polyline"===c.type||"polygon"===c.type){h="polyline"===c.type;var g=[],k;E.forEach(h?c.paths:c.rings,function(v){g.push(k=[]);E.forEach(v,function(y){k.push(a(y[0],y[1],e))})});return h?new c.constructor({paths:g,spatialReference:new p(d)}):new c.constructor({rings:g,
spatialReference:new p(d)})}if("multipoint"===c.type){var x=[];E.forEach(c.points,function(v){x.push(a(v[0],v[1],e))});return new c.constructor({points:x,spatialReference:new p(d)})}}function q(c,a){c=c&&(null!=c.wkid?c:c.spatialReference);a=a&&(null!=a.wkid?a:a.spatialReference);return c&&a?a.equals(c)?!0:a._canProject(c):!1}var f={canProject:q,project:function(c,a){var d=c&&c.spatialReference;a=a&&(null!=a.wkid?a:a.spatialReference);d&&a?d.equals(a)?c=new c.constructor(c.toJson()):q(d,a)?a.isWebMercator()?
c=l(c,n.lngLatToXY,{wkid:102100}):4326===a.wkid&&(c=l(c,n.xyToLngLat,{wkid:4326})):c=null:c=null;return c},lngLatToXY:n.lngLatToXY,xyToLngLat:n.xyToLngLat,metersPerDegree:n.metersPerDegree,geographicToWebMercator:function(c){return l(c,n.lngLatToXY,{wkid:102100})},webMercatorToGeographic:function(c,a){return l(c,n.xyToLngLat,{wkid:4326},a)}};b("extend-esri")&&z.mixin(z.getObject("geometry",!0,w),f);return f})},"esri/geometry/mathUtils":function(){define(["dojo/_base/lang","dojo/has","../kernel","./Point"],
function(E,z,b,w){function p(f,c,a){return f instanceof w?new w(f.x+a*(c.x-f.x),f.y+a*(c.y-f.y)):[f[0]+a*(c[0]-f[0]),f[1]+a*(c[1]-f[1])]}function n(f,c){return 1E-8>Math.abs(f-c)}function l(f,c,a,d){var e=n(f[0],c[0])?1E10:(f[1]-c[1])/(f[0]-c[0]),h=n(a[0],d[0])?1E10:(a[1]-d[1])/(a[0]-d[0]),m=f[1]-e*f[0],g=a[1]-h*a[0];if(n(e,h)){if(n(m,g)){if(n(f[0],c[0]))if(Math.min(f[1],c[1])<Math.max(a[1],d[1])||Math.max(f[1],c[1])>Math.min(a[1],d[1])){f=(f[1]+c[1]+a[1]+d[1]-Math.min(f[1],c[1],a[1],d[1])-Math.max(f[1],
c[1],a[1],d[1]))/2;var k=(f-m)/e}else return null;else if(Math.min(f[0],c[0])<Math.max(a[0],d[0])||Math.max(f[0],c[0])>Math.min(a[0],d[0]))k=(f[0]+c[0]+a[0]+d[0]-Math.min(f[0],c[0],a[0],d[0])-Math.max(f[0],c[0],a[0],d[0]))/2,f=e*k+m;else return null;return[k,f]}return null}n(e,1E10)?(k=f[0],f=h*k+g):n(h,1E10)?(k=a[0],f=e*k+m):(k=-(m-g)/(e-h),f=f[1]===c[1]?f[1]:a[1]===d[1]?a[1]:e*k+m);return[k,f]}var q={getLength:function(f,c){var a=c.x-f.x;f=c.y-f.y;return Math.sqrt(a*a+f*f)},_getLength:function(f,
c){var a=c[0]-f[0];f=c[1]-f[1];return Math.sqrt(a*a+f*f)},getPointOnLine:p,getMidpoint:function(f,c){return p(f,c,.5)},_equals:n,_getLineIntersection:l,getLineIntersection:function(f,c,a,d,e){(f=l([f.x,f.y],[c.x,c.y],[a.x,a.y],[d.x,d.y]))&&(f=new w(f[0],f[1],e));return f},_getLineIntersection2:function(f,c){var a=f[0],d=f[1],e=c[0],h=c[1];c=a[0];a=a[1];f=d[0];d=d[1];var m=e[0],g=e[1];e=h[0]-m;m=c-m;var k=f-c;h=h[1]-g;g=a-g;var x=d-a,v=h*k-e*x;if(0===v)return!1;e=(e*g-h*m)/v;m=(k*g-x*m)/v;return 0<=
e&&1>=e&&0<=m&&1>=m?[c+e*(f-c),a+e*(d-a)]:!1},_pointLineDistance:function(f,c){var a=c[0],d=c[1];c=a[0];var e=a[1];a=f[0];f=f[1];var h=d[0]-c,m=d[1]-e,g=a-c,k=f-e;d=Math.sqrt;var x=Math.pow,v=d(x(h,2)+x(m,2));g=(g*h+k*m)/(v*v);e+=g*m;return d(x(a-(c+g*h),2)+x(f-e,2))}};z("extend-esri")&&E.mixin(E.getObject("geometry",!0,b),q);return q})},"esri/urlUtils":function(){define("dojo/_base/lang dojo/_base/array dojo/_base/url dojo/global dojo/io-query ./kernel ./lang ./config ./sniff dojo/i18n!./nls/jsapi".split(" "),
function(E,z,b,w,p,n,l,q,f,c){var a={},d=q.defaults.io,e=/^[a-z][a-z0-9\+\-\.]*:/i,h=/^\s*http:/i,m=/^\s*https:/i,g=/:\d+$/,k=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i;a.isHTTP=function(v){var y=w.location.protocol;return null==v?"http:"===y||"https:"===y:v?"https:"===y:"http:"===y};a.getProtocolForWebResource=function(v){return a.isHTTP()?w.location.protocol:v?"https:":"http:"};a.urlToObject=function(v){var y={},u=new b(v),t=v.indexOf("?");null===u.query?y={path:v,query:null}:(y.path=v.substring(0,
t),y.query=p.queryToObject(u.query));u.fragment&&(y.hash=u.fragment,null===u.query&&(y.path=y.path.substring(0,y.path.length-(u.fragment.length+1))));return y};a.getProxyUrl=function(v,y){var u=E.isString(v)?0===E.trim(v).toLowerCase().indexOf("https:"):v,t=d.proxyUrl,r=c.io.proxyNotSet;E.isString(v)&&(v=a.getProxyRule(v))&&(t=v.proxyUrl);if(!t)throw console.log(r),Error(r);if(u&&!1!==y&&0!==w.location.href.toLowerCase().indexOf("https:")&&(y=t,0!==y.toLowerCase().indexOf("http")&&(y=a.getAbsoluteUrl(y)),
y=y.replace(/^http:/i,"https:"),a.canUseXhr(y))){t=y;var B=1}t=a.urlToObject(t);t._xo=B;return t};a.addProxy=function(v){var y=a.getProxyRule(v),u;y?u=a.urlToObject(y.proxyUrl):d.alwaysUseProxy&&(u=a.getProxyUrl());u&&(y=a.urlToObject(v),v=u.path+"?"+y.path,(u=p.objectToQuery(E.mixin(u.query||{},y.query)))&&(v+="?"+u));return v};a.addProxyRule=function(v){var y=v.urlPrefix=a.urlToObject(v.urlPrefix).path.replace(/([^\/])$/,"$1/").replace(/^https?:\/\//ig,"").toLowerCase(),u=d.proxyRules,t,r=u.length,
B=r;for(t=0;t<r;t++){var C=u[t].urlPrefix;if(0===y.indexOf(C)){if(y.length===C)return-1;B=t;break}else 0===C.indexOf(y)&&(B=t+1)}u.splice(B,0,v);return B};a.getProxyRule=function(v){var y=d.proxyRules,u=y.length,t=a.urlToObject(v).path.replace(/([^\/])$/,"$1/").replace(/^https?:\/\//ig,"").toLowerCase();for(v=0;v<u;v++)if(0===t.indexOf(y[v].urlPrefix)){var r=y[v];break}return r};a.hasSameOrigin=function(v,y,u){v=v.toLowerCase();y=y.toLowerCase();var t=w.location.href.toLowerCase();v=0===v.indexOf("http")?
new b(v):t=new b(t);y=0===y.indexOf("http")?new b(y):E.isString(t)?new b(t):t;return(u||v.scheme===y.scheme)&&v.host===y.host&&v.port===y.port};a.canUseXhr=function(v,y){var u=f("esri-phonegap")?!0:!1,t=a.hasSameOrigin,r=d.corsEnabledServers,B,C=-1;!u&&f("esri-cors")&&r&&r.length&&(u=z.some(r,function(F,A){F=!F||"object"!==typeof F||F instanceof RegExp?F:F.host;if(F instanceof RegExp){if(F.test(v))return C=A,!0}else if(F&&(B=0!==F.trim().toLowerCase().indexOf("http"),t(v,B?"http://"+F:F)||B&&t(v,
"https://"+F)))return C=A,!0;return!1}));return y?C:u};a.getAbsoluteUrl=function(v){var y=a.getProtocolForWebResource();return E.isString(v)&&!e.test(v)?0===v.indexOf("//")?y+v:0===v.indexOf("/")?y+"//"+w.location.host+v:n._appBaseUrl+v:v};a.fixUrl=function(v){v=E.trim(v);v=a.getAbsoluteUrl(v);v=a.normalizeSlashes(v);v=v.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2");v=a.downgradeToHTTP(v);return v=a.upgradeToHTTPS(v)};a.normalize=function(v){return a.fixUrl(v)};a.normalizeSlashes=function(v){if(/^https?:\/\//i.test(v)){var y=
v.indexOf("?");if(-1<y){var u=v.slice(0,y);var t=v.slice(y+1)}else u=v;v=u.replace(/\/{2,}/g,"/");v=v.replace("/","//");t&&(v+="?"+t)}return v};a.downgradeToHTTP=function(v){return a.isHTTP(!1)&&m.test(v)&&a.hasSameOrigin(w.location.href,v,!0)&&!a.canUseXhr(v)?v.replace(m,"http:"):v};a.upgradeToHTTPS=function(v){var y=d.httpsDomains,u=a.isHTTP(!1),t=a.isHTTP(!0);if(!h.test(v))return v;v=E.trim(v);var r=v.indexOf("/",7);r=-1===r?v:v.slice(0,r);r=r.toLowerCase().slice(7);if(g.test(r))if(l.endsWith(r,
":80"))r=r.slice(0,-3),v=v.replace(":80","");else return v;if(u&&r===w.location.host&&(!k.test(v)||!a.canUseXhr(v)))return v;u=!1;if(t&&r===w.location.host)u=!0;else if(y)for(var B=0;B<y.length;B++){var C=y[B];if(r===C||l.endsWith(r,"."+C)){u=!0;break}}u||!t||d.alwaysUseProxy||a.getProxyRule(v)||(u=!0);u&&(v=v.replace(h,"https:"));return v};q=c.widgets.popup;var x=[{pattern:/^\s*(https?:\/\/([^\s]+))\s*$/i,label:q.NLS_moreInfo},{pattern:/^\s*(tel:([^\s]+))\s*$/i,label:"${hierPart}"},{pattern:/^\s*(mailto:([^\s]+))\s*$/i,
label:"${hierPart}"},{pattern:/^\s*(arcgis-appstudio-player:\/\/([^\s]+))\s*$/i,appName:"App Studio Player",label:q.NLS_openLinkInApp},{pattern:/^\s*(arcgis-collector:\/\/([^\s]+))\s*$/i,appName:"Collector",label:q.NLS_openLinkInApp},{pattern:/^\s*(arcgis-explorer:\/\/([^\s]+))\s*$/i,appName:"Explorer",label:q.NLS_openLinkInApp},{pattern:/^\s*(arcgis-navigator:\/\/([^\s]+))\s*$/i,appName:"Navigator",label:q.NLS_openLinkInApp},{pattern:/^\s*(arcgis-survey123:\/\/([^\s]+))\s*$/i,appName:"Survey123",
label:q.NLS_openLinkInApp},{pattern:/^\s*(arcgis-trek2there:\/\/([^\s]+))\s*$/i,appName:"Trek2There",label:q.NLS_openLinkInApp},{pattern:/^\s*(arcgis-workforce:\/\/([^\s]+))\s*$/i,appName:"Workforce",label:q.NLS_openLinkInApp},{pattern:/^\s*(iform:\/\/([^\s]+))\s*$/i,appName:"iForm",label:q.NLS_openLinkInApp},{pattern:/^\s*(flow:\/\/([^\s]+))\s*$/i,appName:"FlowFinity",label:q.NLS_openLinkInApp},{pattern:/^\s*(lfmobile:\/\/([^\s]+))\s*$/i,appName:"Laserfische",label:q.NLS_openLinkInApp},{pattern:/^\s*(mspbi:\/\/([^\s]+))\s*$/i,
appName:"Microsoft Power BI",label:q.NLS_openLinkInApp}];a.getURIInfo=function(v){var y;z.some(x,function(u){u.pattern.test(v)&&(y=u);return!!y});return y};a.isKnownURI=function(v){return!!a.getURIInfo(v)};f("extend-esri")&&(E.mixin(n,a),n._getProxyUrl=a.getProxyUrl,n._getProxiedUrl=a.addProxy,n._hasSameOrigin=a.hasSameOrigin,n._canDoXOXHR=a.canUseXhr,n._getAbsoluteUrl=a.getAbsoluteUrl,n.fixUrl=a.fixUrl);return a})},"esri/PluginTarget":function(){define("require dojo/aspect dojo/_base/array dojo/_base/lang dojo/Deferred dojo/when".split(" "),
function(E,z,b,w,p,n){function l(){z.after(this.constructor._meta,"ctor",this._pluginsHandler,!0);this._plugins={}}l.prototype={addPlugin:function(q,f){var c=this,a=this._plugins,d=new p;try{E([q],function(e){q in a?d.resolve({id:a[q].declaredId||q.replace(/\//g,".")}):(a[q]=e,n(e.add(c,f),function(){var h={id:e.declaredId||q.replace(/\//g,".")};c.emit("plugin-add",h);d.resolve(h)},function(h){d.reject(h)}))})}catch(e){d.reject(e)}return d.promise},removePlugin:function(q){if(q in this._plugins){var f=
this._plugins[q];f.remove(this);delete this._plugins[q];this.emit("plugin-remove",{id:f.declaredId||q.replace(/\//g,".")})}},_pluginsHandler:function(){var q=this;b.some(arguments,function(f){if(f&&f.plugins&&f.plugins instanceof Array){f=f.plugins;var c;for(c=0;c<f.length;c++){var a=f[c];var d=a instanceof Object?a.id:a;q.addPlugin(d,a.options)}return!0}})}};return l})},"esri/Color":function(){define(["dojo/_base/declare","dojo/_base/Color","dojo/has","./kernel"],function(E,z,b,w){var p=E([z],{declaredClass:"esri.Color"});
p.toJsonColor=function(l){return l&&[l.r,l.g,l.b,1<l.a?l.a:Math.round(255*l.a)]};p.toDojoColor=function(l){return l&&new p([l[0],l[1],l[2],l[3]/255])};var n="named blendColors fromRgb fromHex fromArray fromString".split(" ");for(E=0;E<n.length;E++)p[n[E]]=z[n[E]];b("extend-esri")&&(w.Color=p);return p})},"esri/promiseList":function(){define(["dojo/_base/array","dojo/Deferred","dojo/when"],function(E,z,b){var w=E.forEach;return function(p){function n(h,m){a[m]=h;d.progress([h,m]);0===--e&&d.resolve(a)}
var l,q;p instanceof Array?q=p:p&&"object"===typeof p&&(l=p);var f=[];if(l){q=[];for(var c in l)Object.hasOwnProperty.call(l,c)&&(f.push(c),q.push(l[c]));var a={}}else q&&(a=[]);if(!q||!q.length)return(new z).resolve(a);var d=new z;d.promise.always(function(){a=f=null});var e=q.length;w(q,function(h,m){l||f.push(m);b(h,function(g){d.isFulfilled()||n(g,f[m])},function(g){d.isFulfilled()||n(g,f[m])})});return d.promise}})},"esri/arcade/Dictionary":function(){define("require exports ./ImmutableArray ./languageUtils ./polyfill/promiseUtils ../geometry/Geometry".split(" "),
function(E,z,b,w,p,n){function l(f,c){void 0===c&&(c=!1);if(null===f||void 0===f)return null;if(w.isNumber(f))return w.toNumber(f);if(w.isBoolean(f))return w.toBoolean(f);if(w.isString(f))return w.toString(f);if(w.isDate(f))return w.toDate(f);if(w.isArray(f)){for(var a=[],d=0;d<f.length;d++)a.push(l(f[d],c));return a}d=new q;d.immutable=!1;for(var e=0,h=Object.keys(f);e<h.length;e++){var m=h[e];a=f[m];void 0!==a&&d.setField(m,l(a,c))}d.immutable=c;return d}var q=function(){function f(c){this.declaredClass=
"esri.arcade.Dictionary";this.attributes=null;this.plain=!1;this.immutable=!0;this.attributes=c instanceof f?c.attributes:void 0===c?{}:null===c?{}:c}f.prototype.field=function(c){var a=c.toLowerCase(),d=this.attributes[c];if(void 0!==d)return d;for(var e in this.attributes)if(e.toLowerCase()===a)return this.attributes[e];throw Error("Field not Found : "+c);};f.prototype.setField=function(c,a){if(this.immutable)throw Error("Dictionary is Immutable");var d=c.toLowerCase();if(void 0===this.attributes[c])for(var e in this.attributes)if(e.toLowerCase()===
d){this.attributes[e]=a;return}this.attributes[c]=a};f.prototype.hasField=function(c){var a=c.toLowerCase();if(void 0!==this.attributes[c])return!0;for(var d in this.attributes)if(d.toLowerCase()===a)return!0;return!1};f.prototype.keys=function(){var c=[],a;for(a in this.attributes)c.push(a);return c=c.sort()};f.prototype.castToText=function(){var c="",a;for(a in this.attributes){""!==c&&(c+=",");var d=this.attributes[a];null==d?c+=JSON.stringify(a)+":null":w.isBoolean(d)||w.isNumber(d)||w.isString(d)?
c+=JSON.stringify(a)+":"+JSON.stringify(d):d instanceof n?c+=JSON.stringify(a)+":"+w.toStringExplicit(d):d instanceof b?c+=JSON.stringify(a)+":"+w.toStringExplicit(d):d instanceof Array?c+=JSON.stringify(a)+":"+w.toStringExplicit(d):d instanceof Date?c+=JSON.stringify(a)+":"+JSON.stringify(d):null!==d&&"object"===typeof d&&void 0!==d.castToText&&(c+=JSON.stringify(a)+":"+d.castToText())}return"{"+c+"}"};f.convertObjectToArcadeDictionary=function(c,a){void 0===a&&(a=!0);var d=new f;d.immutable=!1;
for(var e in c){var h=c[e];void 0!==h&&d.setField(e.toString(),l(h))}d.immutable=a;return d};f.convertJsonToArcade=function(c,a){void 0===a&&(a=!1);return l(c,a)};f.prototype.castAsJson=function(c){void 0===c&&(c=null);var a={};for(e in this.attributes){var d=this.attributes[e];if(void 0!==d){if(null===c||void 0===c?0:c.keyTranslate)var e=c.keyTranslate(e);a[e]=w.castAsJson(d,c)}}return a};f.prototype.castDictionaryValueAsJsonAsync=function(c,a,d,e,h){void 0===e&&(e=null);return w.castAsJsonAsync(d,
e,h).then(function(m){return c[a]=m})};f.prototype.castAsJsonAsync=function(c,a){void 0===c&&(c=null);void 0===a&&(a=null);var d={},e=[];for(m in this.attributes){var h=this.attributes[m];if(null===a||void 0===a?0:a.keyTranslate)var m=a.keyTranslate(m);void 0!==h&&(w.isSimpleType(h)||h instanceof n||h instanceof Date?d[m]=w.castAsJson(h,a):e.push(this.castDictionaryValueAsJsonAsync(d,m,h,c,a)))}return 0<e.length?p.all(e).then(function(){return d}):p.resolve(d)};return f}();return q})},"esri/arcade/ImmutableArray":function(){define(["require",
"exports"],function(E,z){return function(){function b(w){void 0===w&&(w=[]);this._elements=w}b.prototype.length=function(){return this._elements.length};b.prototype.get=function(w){return this._elements[w]};b.prototype.toArray=function(){for(var w=[],p=0;p<this.length();p++)w.push(this.get(p));return w};return b}()})},"esri/arcade/languageUtils":function(){define("require exports ./FunctionWrapper ./ImmutableArray ./ImmutablePathArray ./ImmutablePointArray ./polyfill/promiseUtils ../geometry/Extent ../geometry/Geometry ../geometry/Multipoint ../geometry/Point ../geometry/Polygon ../geometry/Polyline ../libs/luxon/luxon dojo/number dojo/_base/kernel".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g){function k(N,Z,na){return""===Z||null===Z||void 0===Z||Z===na||Z===na?N:N=N.split(Z).join(na)}function x(N){return N instanceof M||N instanceof b||N instanceof Y}function v(N){return y(N)||t(N)||C(N)||u(N)||null===N||N===z.voidOperation||"number"===typeof N?!0:!1}function y(N){return"string"===typeof N||N instanceof String}function u(N){return"boolean"===typeof N}function t(N){return"number"===typeof N}function r(N){return N instanceof Array}function B(N){return N instanceof
w}function C(N){return N instanceof Date}function F(N,Z){if(!1===isNaN(N)){if(void 0===Z||null===Z||""===Z)return N.toString();Z=k(Z,"\u2030","");Z=k(Z,"\u00a4","");return m.format(N,{pattern:Z})}return N.toString()}function A(N,Z){N=h.DateTime.fromJSDate(N);return void 0===Z||null===Z||""===Z?N.toISO({suppressMilliseconds:!0}):N.toFormat(D(Z),{locale:g.locale,numberingSystem:"latn"})}function D(N){N=N.replace(/LTS|LT|LL?L?L?|l{1,4}/g,"[$\x26]");var Z="",na=0;for(N=N.match(/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g);na<
N.length;na++){var za=N[na];switch(za){case "D":Z+="d";break;case "DD":Z+="dd";break;case "DDD":Z+="o";break;case "d":Z+="c";break;case "ddd":Z+="ccc";break;case "dddd":Z+="cccc";break;case "M":Z+="L";break;case "MM":Z+="LL";break;case "MMM":Z+="LLL";break;case "MMMM":Z+="LLLL";break;case "YY":Z+="yy";break;case "Y":case "YYYY":Z+="yyyy";break;case "Q":Z+="q";break;case "Z":Z+="ZZ";break;case "ZZ":Z+="ZZZ";break;case "S":Z+="'S'";break;case "SS":Z+="'SS'";break;case "SSS":Z+="u";break;case "A":case "a":Z+=
"a";break;case "m":case "mm":case "h":case "hh":case "H":case "HH":case "s":case "ss":case "X":case "x":Z+=za;break;default:Z=2<=za.length&&"["===za.slice(0,1)&&"]"===za.slice(-1)?Z+("'"+za.slice(1,-1)+"'"):Z+("'"+za+"'")}}return Z}function G(N,Z,na){switch(na){case "\x3e":return N>Z;case "\x3c":return N<Z;case "\x3e\x3d":return N>=Z;case "\x3c\x3d":return N<=Z}return!1}function H(N,Z){if(N===Z||null===N&&Z===z.voidOperation||null===Z&&N===z.voidOperation)return!0;if(C(N)&&C(Z))return N.getTime()===
Z.getTime();if(N instanceof p||N instanceof n)return N.equalityTest(Z);if(N instanceof a&&Z instanceof a){var na=N.getCacheValue("_arcadeCacheId"),za=Z.getCacheValue("_arcadeCacheId");if(void 0!==na&&null!==na)return na===za}return void 0!==N&&void 0!==Z&&null!==N&&null!==Z&&"object"===typeof N&&"object"===typeof Z&&(N._arcadeCacheId===Z._arcadeCacheId&&void 0!==N._arcadeCacheId&&null!==N._arcadeCacheId||N._underlyingGraphic===Z._underlyingGraphic&&void 0!==N._underlyingGraphic&&null!==N._underlyingGraphic)?
!0:!1}function L(N,Z){if(y(N))return N;if(null===N)return"";if(t(N))return F(N,Z);if(u(N))return N.toString();if(C(N))return A(N,Z);if(N instanceof f)return JSON.stringify(N.toJson());if(r(N)){Z=[];for(var na=0;na<N.length;na++)Z[na]=da(N[na]);return"["+Z.join(",")+"]"}if(N instanceof w){Z=[];for(na=0;na<N.length();na++)Z[na]=da(N.get(na));return"["+Z.join(",")+"]"}return null!==N&&"object"===typeof N&&void 0!==N.castToText?N.castToText():x(N)?"object, Function":""}function aa(N,Z){if(y(N))return N;
if(null===N)return"";if(t(N))return F(N,Z);if(u(N))return N.toString();if(C(N))return A(N,Z);if(N instanceof f)return N instanceof q?'{"xmin":'+N.xmin.toString()+',"ymin":'+N.ymin.toString()+","+(N.hasZ?'"zmin":'+N.zmin.toString()+",":"")+(N.hasM?'"mmin":'+N.mmin.toString()+",":"")+'"xmax":'+N.xmax.toString()+',"ymax":'+N.ymax.toString()+","+(N.hasZ?'"zmax":'+N.zmax.toString()+",":"")+(N.hasM?'"mmax":'+N.mmax.toString()+",":"")+'"spatialReference":'+ja(N.spatialReference)+"}":ja(N.toJson(),function(za,
va){return za.key===va.key?0:"spatialReference"===za.key?1:"spatialReference"===va.key||za.key<va.key?-1:za.key>va.key?1:0});if(r(N)){Z=[];for(var na=0;na<N.length;na++)Z[na]=da(N[na]);return"["+Z.join(",")+"]"}if(N instanceof w){Z=[];for(na=0;na<N.length();na++)Z[na]=da(N.get(na));return"["+Z.join(",")+"]"}return null!==N&&"object"===typeof N&&void 0!==N.castToText?N.castToText():x(N)?"object, Function":""}function da(N){return null===N?"null":u(N)||t(N)||y(N)?JSON.stringify(N):N instanceof f||N instanceof
w||N instanceof Array?aa(N):N instanceof Date?JSON.stringify(A(N,"")):null!==N&&"object"===typeof N&&void 0!==N.castToText?N.castToText():"null"}function ha(N,Z){return t(N)?N:null===N||""===N?0:C(N)?NaN:u(N)?N?1:0:r(N)||""===N||void 0===N?NaN:void 0!==Z&&y(N)?(Z=k(Z,"\u2030",""),Z=k(Z,"\u00a4",""),m.parse(N,{pattern:Z})):N===z.voidOperation?0:Number(N)}function ia(N){var Z=/ (\d\d)/,na=h.DateTime.fromISO(N);return na.isValid||Z.test(N)&&(N=N.replace(Z,"T$1"),na=h.DateTime.fromISO(N),na.isValid)?
na:null}function ba(N,Z){var na;Z.fields.some(function(za){za.name.toLowerCase()===N.toLowerCase()&&(na=za.domain);return!!na});return na}function ja(N,Z){Z||(Z={});"function"===typeof Z&&(Z={cmp:Z});var na="boolean"===typeof Z.cycles?Z.cycles:!1,za=Z.cmp&&function(S){return function(U){return function(ma,ra){return S({key:ma,value:U[ma]},{key:ra,value:U[ra]})}}}(Z.cmp),va=[];return function ma(U){U&&U.toJson&&"function"===typeof U.toJson&&(U=U.toJson());if(void 0!==U){if("number"===typeof U)return isFinite(U)?
""+U:"null";if("object"!==typeof U)return JSON.stringify(U);var ra;if(Array.isArray(U)){var sa="[";for(ra=0;ra<U.length;ra++)ra&&(sa+=","),sa+=ma(U[ra])||"null";return sa+"]"}if(null===U)return"null";if(-1!==va.indexOf(U)){if(na)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON");}var V=va.push(U)-1,W=Object.keys(U).sort(za&&za(U));sa="";for(ra=0;ra<W.length;ra++){var oa=W[ra],ta=ma(U[oa]);ta&&(sa&&(sa+=","),sa+=JSON.stringify(oa)+":"+ta)}va.splice(V,1);
return"{"+sa+"}"}}(N)}function pa(N,Z){if(Z instanceof a)N.push([Z.x,Z.y]);else throw Error("Invalid Argument");}function Ca(N,Z){void 0===Z&&(Z=null);if(null!=N){if(u(N)||t(N)||y(N))return N;if(N instanceof f)return!0===(null===Z||void 0===Z?void 0:Z.keepGeometryType)?N:N.toJson();if(N instanceof w)return N.toArray().map(function(na){return Ca(na,Z)});if(N instanceof Array)return N.map(function(na){return Ca(na,Z)});if(N instanceof Date)return N;if(null!==N&&"object"===typeof N&&void 0!==N.castAsJson)return N.castAsJson(Z)}return null}
function la(N,Z,na,za,va){return ua(N,Z,na).then(function(S){va[za]=S})}function ua(N,Z,na){void 0===Z&&(Z=null);void 0===na&&(na=null);N instanceof w&&(N=N.toArray());if(null!=N){if(v(N)||N instanceof f||N instanceof Date)return l.resolve(Ca(N,na));if(N instanceof Array){for(var za=[],va=[],S=0;S<N.length;S++){var U=N[S];null===U||v(U)||U instanceof f||U instanceof Date?va.push(Ca(U,na)):(va.push(null),za.push(la(U,Z,na,va.length-1,va)))}return 0<za.length?l.all(za).then(function(){return va}):l.resolve(va)}if(null!==
N&&"object"===typeof N&&void 0!==N.castAsJsonAsync)return N.castAsJsonAsync(Z,na)}return l.resolve(null)}Object.defineProperty(z,"__esModule",{value:!0});z.castAsJsonAsync=z.castAsJson=z.binaryOperator=z.tick=z.toStringArray=z.autoCastArrayOfPointsToMultiPoint=z.autoCastArrayOfPointsToPolyline=z.autoCastArrayOfPointsToPolygon=z.autoCastFeatureToGeometry=z.stableStringify=z.getDomain=z.getDomainCode=z.getDomainValue=z.fixNullGeometry=z.fixSpatialReference=z.toBoolean=z.toDateTime=z.toDate=z.toNumber=
z.toStringExplicit=z.toNumberArray=z.toString=z.equalityTest=z.greaterThanLessThan=z.standardiseDateFormat=z.formatDate=z.formatNumber=z.generateUUID=z.absRound=z.pcCheck=z.isDate=z.isImmutableArray=z.isFeatureSetCollection=z.isFeatureSet=z.isArray=z.isInteger=z.isNumber=z.isBoolean=z.isString=z.defaultUndefined=z.isSimpleType=z.isFunctionParameter=z.multiReplace=z.continueResult=z.breakResult=z.voidOperation=z.SizzleFunction=z.ReturnResult=z.ImplicitResult=z.NativeFunction=z.SizzleFunctionE=z.NativeFunctionE=
z.ImplicitResultE=z.ReturnResultE=void 0;E=function(){return function(N){this.value=N}}();z.ReturnResultE=E;var Aa=function(){return function(N){this.value=N}}();z.ImplicitResultE=Aa;var M=function(){return function(N){this.fn=N}}();z.NativeFunctionE=M;var Y=function(){return function(N,Z){this.paramCount=Z;this.fn=N}}();z.SizzleFunctionE=Y;z.NativeFunction=M;z.ImplicitResult=Aa;z.ReturnResult=E;z.SizzleFunction=Y;z.voidOperation={type:"VOID"};z.breakResult={type:"BREAK"};z.continueResult={type:"CONTINUE"};
z.multiReplace=k;z.isFunctionParameter=x;z.isSimpleType=v;z.defaultUndefined=function(N,Z){return void 0===N?Z:N};z.isString=y;z.isBoolean=u;z.isNumber=t;z.isInteger=function(N){return"number"===typeof N&&isFinite(N)&&Math.floor(N)===N};z.isArray=r;z.isFeatureSet=function(N){return!0===(N&&N.declaredRootClass&&"esri.arcade.featureset.support.FeatureSet"===N.declaredRootClass)};z.isFeatureSetCollection=function(N){return!0===(N&&N.declaredRootClass&&"esri.arcade.featureSetCollection"===N.declaredRootClass)};
z.isImmutableArray=B;z.isDate=C;z.pcCheck=function(N,Z,na){if(N.length<Z||N.length>na)throw Error("Function called with wrong number of Parameters");};z.absRound=function(N){return 0>N?-Math.round(-N):Math.round(N)};z.generateUUID=function(){var N=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(Z){var na=(N+16*Math.random())%16|0;N=Math.floor(N/16);return("x"===Z?na:na&3|8).toString(16)})};z.formatNumber=F;z.formatDate=A;z.standardiseDateFormat=D;z.greaterThanLessThan=
function(N,Z,na){if(null===N){if(null===Z||Z===z.voidOperation)return G(null,null,na);if(t(Z))return G(0,Z,na);if(y(Z)||u(Z))return G(0,ha(Z),na);if(C(Z))return G(0,Z.getTime(),na)}if(N===z.voidOperation){if(null===Z||Z===z.voidOperation)return G(null,null,na);if(t(Z))return G(0,Z,na);if(y(Z)||u(Z))return G(0,ha(Z),na);if(C(Z))return G(0,Z.getTime(),na)}else if(t(N)){if(t(Z))return G(N,Z,na);if(u(Z))return G(N,ha(Z),na);if(null===Z||Z===z.voidOperation)return G(N,0,na);if(y(Z))return G(N,ha(Z),na);
if(C(Z))return G(N,Z.getTime(),na)}else if(y(N)){if(y(Z))return G(L(N),L(Z),na);if(C(Z))return G(ha(N),Z.getTime(),na);if(t(Z))return G(ha(N),Z,na);if(null===Z||Z===z.voidOperation)return G(ha(N),0,na);if(u(Z))return G(ha(N),ha(Z),na)}else if(C(N)){if(C(Z))return G(N,Z,na);if(null===Z||Z===z.voidOperation)return G(N.getTime(),0,na);if(t(Z))return G(N.getTime(),Z,na);if(u(Z)||y(Z))return G(N.getTime(),ha(Z),na)}else if(u(N)){if(u(Z))return G(N,Z,na);if(t(Z))return G(ha(N),ha(Z),na);if(C(Z))return G(ha(N),
Z.getTime(),na);if(null===Z||Z===z.voidOperation)return G(ha(N),0,na);if(y(Z))return G(ha(N),ha(Z),na)}return!H(N,Z)||"\x3c\x3d"!==na&&"\x3e\x3d"!==na?!1:!0};z.equalityTest=H;z.toString=L;z.toNumberArray=function(N){var Z=[];if(!1===r(N))return null;if(N instanceof w){for(var na=0;na<N.length();na++)Z[na]=ha(N.get(na));return Z}for(na=0;na<N.length;na++)Z[na]=ha(N[na]);return Z};z.toStringExplicit=aa;z.toNumber=ha;z.toDate=function(N){return C(N)?N:y(N)&&(N=ia(N))?N.toJSDate():null};z.toDateTime=
function(N){return C(N)?h.DateTime.fromJSDate(N):y(N)?ia(N):null};z.toBoolean=function(N){return u(N)?N:y(N)?(N=N.toLowerCase(),"true"===N?!0:!1):t(N)?0===N||isNaN(N)?!1:!0:!1};z.fixSpatialReference=function(N,Z){if(null===N||void 0===N)return null;if(null===N.spatialReference||void 0===N.spatialReference)N.spatialReference=Z;return N};z.fixNullGeometry=function(N){if(null===N)return null;if(N instanceof a)return"NaN"===N.x||null===N.x||isNaN(N.x)?null:N;if(N instanceof d){if(0===N.rings.length)return null;
for(var Z=0,na=N.rings;Z<na.length;Z++){var za=na[Z];if(0<za.length)return N}return null}if(N instanceof e){if(0===N.paths.length)return null;Z=0;for(na=N.paths;Z<na.length;Z++)if(za=na[Z],0<za.length)return N;return null}return N instanceof c?0===N.points.length?null:N:N instanceof q?"NaN"===N.xmin||null===N.xmin||isNaN(N.xmin)?null:N:null};z.getDomainValue=function(N,Z){if(!N||!N.domain)return Z;var na=null;if("string"===N.field.type||"esriFieldTypeString"===N.field.type)Z=L(Z);else{if(null===Z||
void 0===Z)return null;if(""===Z)return Z;Z=ha(Z)}for(var za=0;za<N.domain.codedValues.length;za++){var va=N.domain.codedValues[za];va.code===Z&&(na=va)}return null===na?Z:na.name};z.getDomainCode=function(N,Z){if(!N||!N.domain)return Z;var na=null;Z=L(Z);for(var za=0;za<N.domain.codedValues.length;za++){var va=N.domain.codedValues[za];va.name===Z&&(na=va)}return null===na?Z:na.code};z.getDomain=function(N,Z,na,za){void 0===na&&(na=null);if(!Z||!Z.fields)return null;for(var va=null,S=0;S<Z.fields.length;S++){var U=
Z.fields[S];U.name.toLowerCase()===N.toString().toLowerCase()&&(va=U)}if(null===va)throw Error("Field not found");var ma,ra;za||(za=na&&Z.typeIdField&&na._field(Z.typeIdField));null!=za&&Z.types.some(function(sa){return sa.id===za?((ma=sa.domains&&sa.domains[va.name])&&"inherited"===ma.type&&(ma=ba(va.name,Z),ra=!0),!0):!1});ra||ma||(ma=ba(N,Z));return{field:va,domain:ma}};z.stableStringify=ja;z.autoCastFeatureToGeometry=function(N){if(null===N)return null;for(var Z=[],na=0;na<N.length;na++){var za=
N[na];za&&(za.declaredClass&&"esri.arcade.Feature"===za.declaredClass||"FeatureSetReader"===za.type)?Z.push(za.geometry()):Z.push(za)}return Z};z.autoCastArrayOfPointsToPolygon=function(N,Z){if(r(N)||B(N)){var na=!1,za=!1,va=[];if(r(N)){for(var S=0;S<N.length;S++){var U=N[S];pa(va,U)}0<va.length&&(Z=N[0].spatialReference,na=N[0].hasZ,za=N[0].hasM)}else if(N instanceof n)va=N._elements,0<va.length&&(na=N._hasZ,za=N._hasM,Z=N.get(0).spatialReference);else if(B(N)){S=0;for(var ma=N.toArray();S<ma.length;S++)U=
ma[S],pa(va,U);0<va.length&&(Z=N.get(0).spatialReference,na=!0===N.get(0).hasZ,za=!0===N.get(0).hasM)}else throw Error("Invalid Argument");if(0===va.length)return null;!1===(new d({rings:[],spatialReference:{wkid:4326}})).isClockwise(va)&&(va=va.slice(0).reverse());return new d({rings:[va],spatialReference:Z,hasZ:na,hasM:za})}return N};z.autoCastArrayOfPointsToPolyline=function(N,Z){if(r(N)||B(N)){var na=!1,za=!1,va=[];if(r(N)){for(var S=0;S<N.length;S++){var U=N[S];pa(va,U)}0<va.length&&(Z=N[0].spatialReference,
na=!0===N[0].hasZ,za=!0===N[0].hasM)}else if(N instanceof n)va=N._elements,0<va.length&&(na=N._hasZ,za=N._hasM,Z=N.get(0).spatialReference);else if(B(N)){S=0;for(var ma=N.toArray();S<ma.length;S++)U=ma[S],pa(va,U);0<va.length&&(Z=N.get(0).spatialReference,na=!0===N.get(0).hasZ,za=!0===N.get(0).hasM)}return 0===va.length?null:new e({paths:[va],spatialReference:Z,hasZ:na,hasM:za})}return N};z.autoCastArrayOfPointsToMultiPoint=function(N,Z){if(r(N)||B(N)){var na=!1,za=!1,va=[];if(r(N)){for(var S=0;S<
N.length;S++){var U=N[S];pa(va,U)}0<va.length&&(Z=N[0].spatialReference,na=!0===N[0].hasZ,za=!0===N[0].hasM)}else if(N instanceof n)va=N._elements,0<va.length&&(na=N._hasZ,za=N._hasM,Z=N.get(0).spatialReference);else if(B(N)){S=0;for(var ma=N.toArray();S<ma.length;S++)U=ma[S],pa(va,U);0<va.length&&(Z=N.get(0).spatialReference,na=!0===N.get(0).hasZ,za=!0===N.get(0).hasM)}return 0===va.length?null:new c({points:va,spatialReference:Z,hasZ:na,hasM:za})}return N};z.toStringArray=function(N,Z){void 0===
Z&&(Z=!1);var na=[];if(null===N)return na;if(!0===r(N)){for(var za=0;za<N.length;za++){var va=L(N[za]);""===va&&!0!==Z||na.push(va)}return na}if(N instanceof w){for(za=0;za<N.length();za++)va=L(N.get(za)),""===va&&!0!==Z||na.push(va);return na}return v(N)?(va=L(N),""===va&&!0!==Z||na.push(va),na):[]};var ka=0;z.tick=function(N){ka++;return 0===ka%100?(ka=0,l.create(function(Z){setTimeout(function(){Z(N)},0)})):N};z.binaryOperator=function(N,Z,na){switch(na){case "\x26":return N&Z;case "|":return N|
Z;case "^":return N^Z;case "\x3c\x3c":return N<<Z;case "\x3e\x3e":return N>>Z;case "\x3e\x3e\x3e":return N>>>Z}};z.castAsJson=Ca;z.castAsJsonAsync=ua})},"esri/arcade/FunctionWrapper":function(){define(["require","exports"],function(E,z){return function(){return function(b,w){this.context=this.definition=null;this.definition=b;this.context=w}}()})},"esri/arcade/ImmutablePathArray":function(){var E=this&&this.__extends||function(){var z=function(b,w){z=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(p,n){p.__proto__=n}||function(p,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(p[l]=n[l])};return z(b,w)};return function(b,w){function p(){this.constructor=b}if("function"!==typeof w&&null!==w)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");z(b,w);b.prototype=null===w?Object.create(w):(p.prototype=w.prototype,new p)}}();define(["require","exports","./ImmutableArray","./ImmutablePointArray"],function(z,b,w,p){return function(n){function l(q,
f,c,a,d){q=n.call(this,q)||this;q._lazyPath=[];q._hasZ=!1;q._hasM=!1;q._hasZ=c;q._hasM=a;q._spRef=f;q._cacheId=d;return q}E(l,n);l.prototype.get=function(q){if(void 0===this._lazyPath[q]){var f=this._elements[q];if(void 0===f)return;this._lazyPath[q]=new p(f,this._spRef,this._hasZ,this._hasM,this._cacheId,q)}return this._lazyPath[q]};l.prototype.equalityTest=function(q){return q===this?!0:null===q||!1===q instanceof l?!1:q.getUniqueHash()===this.getUniqueHash()};l.prototype.getUniqueHash=function(){return this._cacheId.toString()};
return l}(w)})},"esri/arcade/ImmutablePointArray":function(){var E=this&&this.__extends||function(){var z=function(b,w){z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,n){p.__proto__=n}||function(p,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(p[l]=n[l])};return z(b,w)};return function(b,w){function p(){this.constructor=b}if("function"!==typeof w&&null!==w)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");z(b,w);b.prototype=null===
w?Object.create(w):(p.prototype=w.prototype,new p)}}();define(["require","exports","./ImmutableArray","../geometry/Point"],function(z,b,w,p){return function(n){function l(q,f,c,a,d,e){q=n.call(this,q)||this;q._lazyPt=[];q._hasZ=!1;q._hasM=!1;q._spRef=f;q._hasZ=c;q._hasM=a;q._cacheId=d;q._partId=e;return q}E(l,n);l.prototype.get=function(q){if(void 0===this._lazyPt[q]){var f=this._elements[q];if(void 0===f)return;var c=this._hasZ,a=this._hasM,d=null;d=c&&!a?new p(f[0],f[1],f[2],void 0,this._spRef):
a&&!c?new p(f[0],f[1],void 0,f[2],this._spRef):c&&a?new p(f[0],f[1],f[2],f[3],this._spRef):new p(f[0],f[1],this._spRef);d.setCacheValue("_arcadeCacheId",this._cacheId.toString()+"-"+this._partId.toString()+"-"+q.toString());this._lazyPt[q]=d}return this._lazyPt[q]};l.prototype.equalityTest=function(q){return q===this?!0:null===q||!1===q instanceof l?!1:q.getUniqueHash()===this.getUniqueHash()};l.prototype.getUniqueHash=function(){return this._cacheId.toString()+"-"+this._partId.toString()};return l}(w)})},
"esri/arcade/polyfill/promiseUtils":function(){define(["require","exports","dojo/Deferred","dojo/promise/all"],function(E,z,b,w){function p(f,c){var a=new b(c);f(function(d){return q(d).then(a.resolve)},a.reject);return a.promise}function n(f){if(f){if("function"!==typeof f.forEach){var c=Object.keys(f),a=c.map(function(e){return f[e]});return n(a).then(function(e){var h={};c.forEach(function(m,g){return h[m]=e[g]});return h})}var d=null;return p(function(e,h){var m=[],g=f.length;0===g&&e(m);f.forEach(function(k){var x=
{promise:k};m.push(x);k.then(function(v){x.value=v}).catch(function(v){x.error=v}).then(function(){--g;0===g&&(d?h(Error("AbortError")):e(m))})})},function(e){d=e||"Invocation cancellation";f.forEach(function(h){return h.cancel(e)})})}}function l(f){void 0===f&&(f=void 0);var c=new b;c.resolve(f);return c.promise}function q(f){return f&&"function"===typeof f.then?f:l(f)}Object.defineProperty(z,"__esModule",{value:!0});z.createResolver=z.when=z.isPromiseLike=z.wrapCallback=z.timeout=z.after=z.resolve=
z.reject=z.first=z.eachAlwaysValues=z.eachAlways=z.createDeferred=z.create=z.filter=z.all=void 0;z.all=function(f){return w(f)};z.filter=function(f,c){var a=f.slice();return w(f.map(function(d,e){return c(d,e)})).then(function(d){return a.filter(function(e,h){return d[h]})})};z.create=p;z.createDeferred=function(f){var c=null;f=p(function(a,d){c={resolve:a,reject:d}},f);c.promise=f;c.cancel=function(){c.reject(Error("AbortError"))};return c};z.eachAlways=n;z.eachAlwaysValues=function(f){return n(f).then(function(c){return c.filter(function(a){return!!a.value}).map(function(a){return a.value})})};
z.first=function(f){return f&&f.length?p(function(c,a){for(var d=0;d<f.length;d++)f[d].then(c,a)}):l()};z.reject=function(f){var c=new b;c.reject(f);return c.promise};z.resolve=l;z.after=function(f,c){void 0===c&&(c=void 0);var a=0;return p(function(d){a=setTimeout(function(){d(c)},f)},function(){a&&(clearTimeout(a),a=0)})};z.timeout=function(f,c,a){var d=0,e=new b(f.cancel);f.then(function(h){e.isFulfilled()||(e.resolve(h),d&&(clearTimeout(d),d=0))});f.catch(function(h){e.isFulfilled()||(e.reject(h),
d&&(clearTimeout(d),d=0))});d=setTimeout(function(){e.reject(a||Error("promiseUtils:timeout"))},c);return e.promise};z.wrapCallback=function(f){var c=!1;return p(function(){f(function(a){c||l(a)})},function(){return c=!0})};z.isPromiseLike=function(f){return f&&"function"===typeof f.then};z.when=q;z.createResolver=function(f){var c,a;f=p(function(e,h){c=e;a=h},f);var d=function(e){c(e)};d.resolve=function(e){return c(e)};d.reject=function(e){return a(e)};d.promise=f;return d}})},"esri/geometry/Multipoint":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ./Point ./Extent ../srUtils".split(" "),
function(E,z,b,w,p,n,l,q,f,c){function a(){}function d(){}n={type:"multipoint",points:null};E=E(l,{declaredClass:"esri.geometry.Multipoint",type:"multipoint",points:null,constructor:function(e){this.points=[];e&&(e.points?p.mixin(this,e):this.spatialReference=e,this.spatialReference&&(this.spatialReference=c.createSpatialReference(this.spatialReference)));this.verifySR()},addPoint:function(e){this.clearCache();z.isArray(e)?this.points.push(e):this.points.push([e.x,e.y]);return this},removePoint:function(e){if(this._validateInputs(e))return this.clearCache(),
new q(this.points.splice(e,1)[0],this.spatialReference)},getExtent:function(){var e=this.getCacheValue("_extent");if(e)return new f(e);e=this.points;var h=e.length;if(h){var m=e[0],g,k,x=g=m[0],v=k=m[1],y=Math.min,u=Math.max,t=this.spatialReference,r;for(r=0;r<h;r++){m=e[r];var B=m[0];m=m[1];x=y(x,B);v=y(v,m);g=u(g,B);k=u(k,m)}e={xmin:x,ymin:v,xmax:g,ymax:k,spatialReference:t?t.toJson():null};this.setCacheValue("_extent",e);return new f(e)}},_validateInputs:function(e){return null===e||0>e||e>=this.points.length?
!1:!0},getPoint:function(e){if(this._validateInputs(e))return e=this.points[e],new q(e[0],e[1],this.spatialReference)},setPoint:function(e,h){if(this._validateInputs(e))return this.clearCache(),this.points[e]=[h.x,h.y],this},toJson:function(){var e={points:p.clone2DArray(this.points)},h=this.spatialReference;h&&(e.spatialReference=h.toJson());return e}});a.prototype=E.prototype;d.prototype=new a;Object.defineProperty(d.prototype,"points",{get:function(){this._unquantizeFn&&(this._pointsVal=this._unquantizeFn({points:p.clone2DArray(this._pointsVal)}).points,
this._unquantizeFn=null);return this._pointsVal},set:function(e){this._pointsVal=e}});d.prototype.setupLazyUnquantization=function(e,h){this._unquantizeFn=e;this._pointsVal=h.points};E.simpleConstructor=a;E.accessorConstructor=d;E.defaultProps=n;b("extend-esri")&&(z.setObject("geometry.Multipoint",E,w),w.geometry.defaultMultipoint=n);return E})},"esri/geometry/Polygon":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ./Point ./Extent ./mathUtils ../srUtils".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d){function e(){}function h(){}l={type:"polygon",rings:null};var m=E(q,{declaredClass:"esri.geometry.Polygon",type:"polygon",rings:null,constructor:function(g){this.rings=[];this._ring=0;g&&(b.isArray(g)?this.rings=b.isArray(g[0][0])?g:[g]:g.rings?n.mixin(this,g):this.spatialReference=g,this.spatialReference&&(this.spatialReference=d.createSpatialReference(this.spatialReference)));this.verifySR()},addRing:function(g){this.clearCache();this._ring=this.rings.length;this.rings[this._ring]=
[];b.isArray(g[0])?z.forEach(g,this._addPointArr,this):z.forEach(g,this._addPoint,this);return this},_addPointArr:function(g){this.rings[this._ring].push(g)},_addPoint:function(g){this.rings[this._ring].push([g.x,g.y])},_insertPoints:function(g,k){this.clearCache();this._ring=k;this.rings[this._ring]||(this.rings[this._ring]=[]);z.forEach(g,this._addPoint,this)},_validateInputs:function(g,k){return null!==g&&void 0!==g&&(0>g||g>=this.rings.length)||null!==k&&void 0!==g&&(0>k||k>=this.rings[g].length)?
!1:!0},getPoint:function(g,k){if(this._validateInputs(g,k))return new f(this.rings[g][k],this.spatialReference)},setPoint:function(g,k,x){if(this._validateInputs(g,k))return this.clearCache(),this.rings[g][k]=[x.x,x.y],this},insertPoint:function(g,k,x){if(this._validateInputs(g)&&null!=k&&0<=k&&k<=this.rings[g].length)return this.clearCache(),this.rings[g].splice(k,0,[x.x,x.y]),this},removeRing:function(g){if(this._validateInputs(g,null)){this.clearCache();g=this.rings.splice(g,1)[0];var k,x=g.length,
v=this.spatialReference;for(k=0;k<x;k++)g[k]=new f(g[k],v);return g}},removePoint:function(g,k){if(this._validateInputs(g,k))return this.clearCache(),new f(this.rings[g].splice(k,1)[0],this.spatialReference)},getExtent:function(){var g=this.getCacheValue("_extent");var k=this.getCacheValue("_partwise");if(g)return g=new c(g),g._partwise=k,g;g=this.rings;var x=g.length;if(x&&g[0].length){var v,y,u,t,r=v=g[0][0][0],B=y=g[0][0][1],C=Math.min,F=Math.max,A=this.spatialReference;k=[];var D,G;for(u=0;u<
x;u++){var H=g[u];var L=D=H[0]&&H[0][0];var aa=G=H[0]&&H[0][1];var da=H.length;for(t=0;t<da;t++){var ha=H[t];var ia=ha[0];ha=ha[1];r=C(r,ia);B=C(B,ha);v=F(v,ia);y=F(y,ha);L=C(L,ia);aa=C(aa,ha);D=F(D,ia);G=F(G,ha)}k.push(new c({xmin:L,ymin:aa,xmax:D,ymax:G,spatialReference:A?A.toJson():null}))}g={xmin:r,ymin:B,xmax:v,ymax:y,spatialReference:A?A.toJson():null};k=1<k.length?k:null;this.setCacheValue("_extent",g);this.setCacheValue("_partwise",k);g=new c(g);g._partwise=k;return g}},contains:function(g){var k=
this.rings,x=!1,v,y,u,t=k.length;var r=this.spatialReference;var B=g.spatialReference;var C=g.x;g=g.y;r&&B&&!r.equals(B)&&r._canProject(B)&&(g=r.isWebMercator()?f.lngLatToXY(C,g):f.xyToLngLat(C,g,!0),C=g[0],g=g[1]);for(u=0;u<t;u++){r=k[u];var F=r.length;for(y=v=0;y<F;y++){v++;v===F&&(v=0);B=r[y];var A=r[v];(B[1]<g&&A[1]>=g||A[1]<g&&B[1]>=g)&&B[0]+(g-B[1])/(A[1]-B[1])*(A[0]-B[0])<C&&(x=!x)}}return x},getCentroid:function(){var g=this.getCacheValue("_centroid");if(void 0!==g)return g;g=this.rings;var k,
x,v=[],y,u,t=Infinity,r=-Infinity,B=Infinity,C=-Infinity;z.forEach(g,function(D){F=k=x=0;z.forEach(D,function(G,H){H<D.length-1&&(y=D[H+1],u=G[0]*y[1]-y[0]*G[1],F+=(G[0]+y[0])*u,k+=(G[1]+y[1])*u,x+=u,G[0]<t&&(t=G[0]),G[0]>r&&(r=G[0]),G[1]<B&&(B=G[1]),G[1]>C&&(C=G[1]))});0<x&&(x*=-1);x&&v.push([F,k,x/2])});v.sort(function(D,G){return D[2]-G[2]});var F=k=void 0;if(v[0]){var A=6*v[0][2];F=v[0][0]/A;k=v[0][1]/A;if(F<t||F>r||k<B||k>C)F=k=void 0}if(void 0===F||void 0===k)if(g=g[0]&&g[0].length?this._getLineCentroid(g[0]):
null)F=g.x,k=g.y;g=isNaN(F)||isNaN(k)?null:new f(F,k,this.spatialReference);this.setCacheValue("_centroid",g);return g},_getLineCentroid:function(g){var k=0,x=0,v=0,y={x:0,y:0},u={x:0,y:0},t,r=g.length,B;for(t=0;t<r-1;t++){var C=g[t];var F=g[t+1];if(C&&F){y.x=C[0];y.y=C[1];u.x=F[0];u.y=F[1];var A=a.getLength(y,u);0<A&&(k+=A,C=a.getMidpoint(C,F),x+=A*C[0],v+=A*C[1])}}0<k?B={x:x/k,y:v/k}:g[0]&&(B={x:g[0][0],y:g[0][1]});return B},isClockwise:function(g){var k=0,x,v=g.length,y=b.isArray(g[0])?function(u,
t){return u[0]*t[1]-t[0]*u[1]}:function(u,t){return u.x*t.y-t.x*u.y};for(x=0;x<v;x++)k+=y(g[x],g[(x+1)%v]);return 0>=k/2},isSelfIntersecting:function(g){g=g||this;var k,x,v,y,u,t=g.rings.length;for(v=0;v<t;v++){for(k=0;k<g.rings[v].length-1;k++){var r=[[g.rings[v][k][0],g.rings[v][k][1]],[g.rings[v][k+1][0],g.rings[v][k+1][1]]];for(x=v+1;x<t;x++)for(y=0;y<g.rings[x].length-1;y++){var B=[[g.rings[x][y][0],g.rings[x][y][1]],[g.rings[x][y+1][0],g.rings[x][y+1][1]]];if((u=a._getLineIntersection2(r,B))&&
!(u[0]===r[0][0]&&u[1]===r[0][1]||u[0]===B[0][0]&&u[1]===B[0][1]||u[0]===r[1][0]&&u[1]===r[1][1]||u[0]===B[1][0]&&u[1]===B[1][1]))return!0}}y=g.rings[v].length;if(!(4>=y))for(k=0;k<y-3;k++){var C=y-1;0===k&&(C=y-2);r=[[g.rings[v][k][0],g.rings[v][k][1]],[g.rings[v][k+1][0],g.rings[v][k+1][1]]];for(x=k+2;x<C;x++)if(B=[[g.rings[v][x][0],g.rings[v][x][1]],[g.rings[v][x+1][0],g.rings[v][x+1][1]]],(u=a._getLineIntersection2(r,B))&&!(u[0]===r[0][0]&&u[1]===r[0][1]||u[0]===B[0][0]&&u[1]===B[0][1]||u[0]===
r[1][0]&&u[1]===r[1][1]||u[0]===B[1][0]&&u[1]===B[1][1]))return!0}}return!1},toJson:function(){var g={rings:n.clone3DArray(this.rings)},k=this.spatialReference;k&&(g.spatialReference=k.toJson());return g}});e.prototype=m.prototype;h.prototype=new e;Object.defineProperty(h.prototype,"rings",{get:function(){this._unquantizeFn&&(this._ringsVal=this._unquantizeFn({rings:n.clone3DArray(this._ringsVal)}).rings,this._unquantizeFn=null);return this._ringsVal},set:function(g){this._ringsVal=g}});h.prototype.setupLazyUnquantization=
function(g,k){this._unquantizeFn=g;this._ringsVal=k.rings};m.simpleConstructor=e;m.accessorConstructor=h;m.defaultProps=l;m.createEllipse=function(g){var k=g.center.x,x=g.center.y,v=g.longAxis,y=g.shortAxis,u=g.numberOfPoints,t=g.map,r;g=[];var B=2*Math.PI/u;for(r=0;r<u;r++){var C=Math.cos(r*B);var F=Math.sin(r*B);C=t.toMap({x:v*C+k,y:y*F+x});g.push(C)}g.push(g[0]);k=new m(t.spatialReference);k.addRing(g);return k};m.createCircle=function(g){return m.createEllipse({center:g.center,longAxis:g.r,shortAxis:g.r,
numberOfPoints:g.numberOfPoints,map:g.map})};m.fromExtent=function(g){var k=g.normalize();g=g.spatialReference;return new m({rings:z.map(k,function(x){return[[x.xmin,x.ymin],[x.xmin,x.ymax],[x.xmax,x.ymax],[x.xmax,x.ymin],[x.xmin,x.ymin]]}),spatialReference:g?g.toJson():null})};w("extend-esri")&&(b.setObject("geometry.Polygon",m,p),p.geometry.defaultPolygon=l,p.geometry.createEllipse=m.createEllipse,p.geometry.createCircle=m.createCircle,p.geometry.isClockwise=m.prototype.isClockwise,p.geometry.polygonSelfIntersecting=
m.prototype.isSelfIntersecting);return m})},"esri/geometry/Polyline":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ./Point ./Extent ../srUtils".split(" "),function(E,z,b,w,p,n,l,q,f,c,a){function d(){}function e(){}l={type:"polyline",paths:null};E=E(q,{declaredClass:"esri.geometry.Polyline",type:"polyline",paths:null,constructor:function(h){this.paths=[];this._path=0;h&&(b.isArray(h)?this.paths=b.isArray(h[0][0])?h:
[h]:h.paths?n.mixin(this,h):this.spatialReference=h,this.spatialReference&&(this.spatialReference=a.createSpatialReference(this.spatialReference)));this.verifySR()},addPath:function(h){this.clearCache();this._path=this.paths.length;this.paths[this._path]=[];b.isArray(h[0])?z.forEach(h,this._addPointArr,this):z.forEach(h,this._addPoint,this);return this},_addPointArr:function(h){this.paths[this._path].push(h)},_addPoint:function(h){this.paths[this._path].push([h.x,h.y])},_insertPoints:function(h,m){this.clearCache();
this._path=m;this.paths[this._path]||(this.paths[this._path]=[]);z.forEach(h,this._addPoint,this)},_validateInputs:function(h,m){return null!==h&&void 0!==h&&(0>h||h>=this.paths.length)||null!==m&&void 0!==h&&(0>m||m>=this.paths[h].length)?!1:!0},getPoint:function(h,m){if(this._validateInputs(h,m))return new f(this.paths[h][m],this.spatialReference)},setPoint:function(h,m,g){if(this._validateInputs(h,m))return this.clearCache(),this.paths[h][m]=[g.x,g.y],this},insertPoint:function(h,m,g){if(this._validateInputs(h)&&
null!=m&&0<=m&&m<=this.paths[h].length)return this.clearCache(),this.paths[h].splice(m,0,[g.x,g.y]),this},removePath:function(h){if(this._validateInputs(h,null)){this.clearCache();h=this.paths.splice(h,1)[0];var m,g=h.length,k=this.spatialReference;for(m=0;m<g;m++)h[m]=new f(h[m],k);return h}},removePoint:function(h,m){if(this._validateInputs(h,m))return this.clearCache(),new f(this.paths[h].splice(m,1)[0],this.spatialReference)},getExtent:function(){var h=this.getCacheValue("_extent");var m=this.getCacheValue("_partwise");
if(h)return h=new c(h),h._partwise=m,h;h=this.paths;var g=h.length;if(g&&h[0].length){var k,x,v,y,u=k=h[0][0][0],t=x=h[0][0][1],r=Math.min,B=Math.max,C=this.spatialReference;m=[];var F,A;for(v=0;v<g;v++){var D=h[v];var G=F=D[0]&&D[0][0];var H=A=D[0]&&D[0][1];var L=D.length;for(y=0;y<L;y++){var aa=D[y];var da=aa[0];aa=aa[1];u=r(u,da);t=r(t,aa);k=B(k,da);x=B(x,aa);G=r(G,da);H=r(H,aa);F=B(F,da);A=B(A,aa)}m.push(new c({xmin:G,ymin:H,xmax:F,ymax:A,spatialReference:C?C.toJson():null}))}h={xmin:u,ymin:t,
xmax:k,ymax:x,spatialReference:C?C.toJson():null};m=1<m.length?m:null;this.setCacheValue("_extent",h);this.setCacheValue("_partwise",m);h=new c(h);h._partwise=m;return h}},toJson:function(){var h={paths:n.clone3DArray(this.paths)},m=this.spatialReference;m&&(h.spatialReference=m.toJson());return h}});d.prototype=E.prototype;e.prototype=new d;Object.defineProperty(e.prototype,"paths",{get:function(){this._unquantizeFn&&(this._pathsVal=this._unquantizeFn({paths:n.clone3DArray(this._pathsVal)}).paths,
this._unquantizeFn=null);return this._pathsVal},set:function(h){this._pathsVal=h}});e.prototype.setupLazyUnquantization=function(h,m){this._unquantizeFn=h;this._pathsVal=m.paths};E.simpleConstructor=d;E.accessorConstructor=e;E.defaultProps=l;w("extend-esri")&&(b.setObject("geometry.Polyline",E,p),p.geometry.defaultPolyline=l);return E})},"esri/libs/luxon/luxon":function(){define(["exports"],function(E){function z(P,X){for(var I=0;I<X.length;I++){var R=X[I];R.enumerable=R.enumerable||!1;R.configurable=
!0;"value"in R&&(R.writable=!0);Object.defineProperty(P,R.key,R)}}function b(P,X,I){X&&z(P.prototype,X);I&&z(P,I);return P}function w(){w=Object.assign||function(P){for(var X=1;X<arguments.length;X++){var I=arguments[X],R;for(R in I)Object.prototype.hasOwnProperty.call(I,R)&&(P[R]=I[R])}return P};return w.apply(this,arguments)}function p(P,X){P.prototype=Object.create(X.prototype);P.prototype.constructor=P;l(P,X)}function n(P){n=Object.setPrototypeOf?Object.getPrototypeOf:function(X){return X.__proto__||
Object.getPrototypeOf(X)};return n(P)}function l(P,X){l=Object.setPrototypeOf||function(I,R){I.__proto__=R;return I};return l(P,X)}function q(){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(P){return!1}}function f(P,X,I){f=q()?Reflect.construct:function(R,ca,wa){var Ma=[null];Ma.push.apply(Ma,ca);R=new (Function.bind.apply(R,Ma));
wa&&l(R,wa.prototype);return R};return f.apply(null,arguments)}function c(P){var X="function"===typeof Map?new Map:void 0;c=function(I){function R(){return f(I,arguments,n(this).constructor)}if(null===I||-1===Function.toString.call(I).indexOf("[native code]"))return I;if("function"!==typeof I)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof X){if(X.has(I))return X.get(I);X.set(I,R)}R.prototype=Object.create(I.prototype,{constructor:{value:R,enumerable:!1,
writable:!0,configurable:!0}});return l(R,I)};return c(P)}function a(P,X){if(P){if("string"===typeof P)return d(P,X);var I=Object.prototype.toString.call(P).slice(8,-1);"Object"===I&&P.constructor&&(I=P.constructor.name);if("Map"===I||"Set"===I)return Array.from(P);if("Arguments"===I||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return d(P,X)}}function d(P,X){if(null==X||X>P.length)X=P.length;for(var I=0,R=Array(X);I<X;I++)R[I]=P[I];return R}function e(P,X){var I="undefined"!==typeof Symbol&&
P[Symbol.iterator]||P["@@iterator"];if(I)return(I=I.call(P)).next.bind(I);if(Array.isArray(P)||(I=a(P))||X&&P&&"number"===typeof P.length){I&&(P=I);var R=0;return function(){return R>=P.length?{done:!0}:{done:!1,value:P[R++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function h(P){return"undefined"===typeof P}function m(P){return"number"===typeof P}function g(P){return"number"===typeof P&&
0===P%1}function k(){try{return"undefined"!==typeof Intl&&!!Intl.RelativeTimeFormat}catch(P){return!1}}function x(P,X,I){if(0!==P.length)return P.reduce(function(R,ca){ca=[X(ca),ca];return R?I(R[0],ca[0])===R[0]?R:ca:ca},null)[1]}function v(P,X){return X.reduce(function(I,R){I[R]=P[R];return I},{})}function y(P,X){return Object.prototype.hasOwnProperty.call(P,X)}function u(P,X,I){return g(P)&&P>=X&&P<=I}function t(P,X){void 0===X&&(X=2);var I=0>P?"-":"";P=I?-1*P:P;X=P.toString().length<X?("0".repeat(X)+
P).slice(-X):P.toString();return""+I+X}function r(P){if(!h(P)&&null!==P&&""!==P)return parseInt(P,10)}function B(P){if(!h(P)&&null!==P&&""!==P)return P=1E3*parseFloat("0."+P),Math.floor(P)}function C(P,X,I){void 0===I&&(I=!1);X=Math.pow(10,X);return(I?Math.trunc:Math.round)(P*X)/X}function F(P){return 0===P%4&&(0!==P%100||0===P%400)}function A(P,X){var I=X-1;I=I-12*Math.floor(I/12)+1;return 2===I?F(P+(X-I)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][I-1]}function D(P){var X=Date.UTC(P.year,
P.month-1,P.day,P.hour,P.minute,P.second,P.millisecond);100>P.year&&0<=P.year&&(X=new Date(X),X.setUTCFullYear(X.getUTCFullYear()-1900));return+X}function G(P){var X=P-1;X=(X+Math.floor(X/4)-Math.floor(X/100)+Math.floor(X/400))%7;return 4===(P+Math.floor(P/4)-Math.floor(P/100)+Math.floor(P/400))%7||3===X?53:52}function H(P){return 99<P?P:60<P?1900+P:2E3+P}function L(P,X,I,R){void 0===R&&(R=null);P=new Date(P);var ca={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};
R&&(ca.timeZone=R);X=w({timeZoneName:X},ca);return(I=(new Intl.DateTimeFormat(I,X)).formatToParts(P).find(function(wa){return"timezonename"===wa.type.toLowerCase()}))?I.value:null}function aa(P,X){P=parseInt(P,10);Number.isNaN(P)&&(P=0);X=parseInt(X,10)||0;X=0>P||Object.is(P,-0)?-X:X;return 60*P+X}function da(P){var X=Number(P);if("boolean"===typeof P||""===P||Number.isNaN(X))throw new Bb("Invalid unit value "+P);return X}function ha(P,X){var I={},R;for(R in P)if(y(P,R)){var ca=P[R];void 0!==ca&&
null!==ca&&(I[X(R)]=da(ca))}return I}function ia(P,X){var I=Math.trunc(Math.abs(P/60)),R=Math.trunc(Math.abs(P%60));P=0<=P?"+":"-";switch(X){case "short":return""+P+t(I,2)+":"+t(R,2);case "narrow":return""+P+I+(0<R?":"+R:"");case "techie":return""+P+t(I,2)+t(R,2);default:throw new RangeError("Value format "+X+" is out of range for property format");}}function ba(P){return v(P,["hour","minute","second","millisecond"])}function ja(P){switch(P){case "narrow":return[].concat(Zb);case "short":return[].concat(Mb);
case "long":return[].concat(Wb);case "numeric":return"1 2 3 4 5 6 7 8 9 10 11 12".split(" ");case "2-digit":return"01 02 03 04 05 06 07 08 09 10 11 12".split(" ");default:return null}}function pa(P){switch(P){case "narrow":return[].concat(Wc);case "short":return[].concat(Ec);case "long":return[].concat(Fc);case "numeric":return"1234567".split("");default:return null}}function Ca(P){switch(P){case "narrow":return[].concat(Xc);case "short":return[].concat(Yc);case "long":return[].concat(Zc);default:return null}}
function la(P,X,I,R){void 0===I&&(I="always");void 0===R&&(R=!1);var ca={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},wa=-1===["hours","minutes","seconds"].indexOf(P);if("auto"===I&&wa)switch(I="days"===P,X){case 1:return I?"tomorrow":"next "+ca[P][0];case -1:return I?"yesterday":"last "+ca[P][0];case 0:return I?"today":"this "+ca[P][0]}I=Object.is(X,
-0)||0>X;X=Math.abs(X);wa=1===X;var Ma=ca[P];P=R?wa?Ma[1]:Ma[2]||Ma[1]:wa?ca[P][0]:P;return I?X+" "+P+" ago":"in "+X+" "+P}function ua(P,X){var I="";P=e(P);for(var R;!(R=P()).done;)R=R.value,I=R.literal?I+R.val:I+X(R.val);return I}function Aa(P,X){var I;if(h(P)||null===P)return X;if(P instanceof Xb)return P;if("string"===typeof P){var R=P.toLowerCase();return"local"===R||"system"===R?X:"utc"===R||"gmt"===R?Eb.utcInstance:null!=(I=Nb.parseGMTOffset(P))?Eb.instance(I):Nb.isValidSpecifier(R)?Nb.create(P):
Eb.parseSpecifier(R)||new rc(P)}return m(P)?Eb.instance(P):"object"===typeof P&&P.offset&&"number"===typeof P.offset?P:new rc(P)}function M(P,X){void 0===X&&(X={});var I=JSON.stringify([P,X]),R=sc[I];R||(R=new Intl.DateTimeFormat(P,X),sc[I]=R);return R}function Y(P){for(var X=[],I=1;12>=I;I++){var R=vb.utc(2016,I,1);X.push(P(R))}return X}function ka(P){for(var X=[],I=1;7>=I;I++){var R=vb.utc(2016,11,13+I);X.push(P(R))}return X}function N(P,X,I,R,ca){P=P.listingMode(I);return"error"===P?null:"en"===
P?R(X):ca(X)}function Z(){for(var P=arguments.length,X=Array(P),I=0;I<P;I++)X[I]=arguments[I];P=X.reduce(function(R,ca){return R+ca.source},"");return RegExp("^"+P+"$")}function na(){for(var P=arguments.length,X=Array(P),I=0;I<P;I++)X[I]=arguments[I];return function(R){return X.reduce(function(ca,wa){var Ma=ca[0],Oa=ca[1];ca=wa(R,ca[2]);wa=ca[1];var Wa=ca[2];return[w({},Ma,ca[0]),Oa||wa,Wa]},[{},null,1]).slice(0,2)}}function za(P){if(null==P)return[null,null];for(var X=arguments.length,I=Array(1<
X?X-1:0),R=1;R<X;R++)I[R-1]=arguments[R];for(X=0;X<I.length;X++){var ca=I[X];R=ca[1];if(ca=ca[0].exec(P))return R(ca)}return[null,null]}function va(){for(var P=arguments.length,X=Array(P),I=0;I<P;I++)X[I]=arguments[I];return function(R,ca){var wa={},Ma;for(Ma=0;Ma<X.length;Ma++)wa[X[Ma]]=r(R[ca+Ma]);return[wa,null,ca+Ma]}}function S(P,X,I){P=P[X];return h(P)?I:r(P)}function U(P,X){return[{year:S(P,X),month:S(P,X+1,1),day:S(P,X+2,1)},null,X+3]}function ma(P,X){return[{hours:S(P,X,0),minutes:S(P,X+
1,0),seconds:S(P,X+2,0),milliseconds:B(P[X+3])},null,X+4]}function ra(P,X){var I=!P[X]&&!P[X+1];P=aa(P[X+1],P[X+2]);return[{},I?null:Eb.instance(P),X+3]}function sa(P,X){return[{},P[X]?Nb.create(P[X]):null,X+1]}function V(P){var X=P[2],I=P[3],R=P[4],ca=P[5],wa=P[6],Ma=P[7],Oa=P[8],Wa="-"===P[0][0],fb=Ma&&"-"===Ma[0],kb=function(mb,ib){void 0===ib&&(ib=!1);return void 0!==mb&&(ib||mb&&Wa)?-mb:mb};return[{years:kb(r(P[1])),months:kb(r(X)),weeks:kb(r(I)),days:kb(r(R)),hours:kb(r(ca)),minutes:kb(r(wa)),
seconds:kb(r(Ma),"-0"===Ma),milliseconds:kb(B(Oa),fb)}]}function W(P,X,I,R,ca,wa,Ma){X={year:2===X.length?H(r(X)):r(X),month:Mb.indexOf(I)+1,day:r(R),hour:r(ca),minute:r(wa)};Ma&&(X.second=r(Ma));P&&(X.weekday=3<P.length?Fc.indexOf(P)+1:Ec.indexOf(P)+1);return X}function oa(P){var X=P[8],I=P[9],R=P[10],ca=P[11];P=W(P[1],P[4],P[3],P[2],P[5],P[6],P[7]);X=X?$c[X]:I?0:aa(R,ca);return[P,new Eb(X)]}function ta(P){return[W(P[1],P[4],P[3],P[2],P[5],P[6],P[7]),Eb.utcInstance]}function Ba(P){return[W(P[1],
P[7],P[2],P[3],P[4],P[5],P[6]),Eb.utcInstance]}function Ra(P,X,I){void 0===I&&(I=!1);P={values:I?X.values:w({},P.values,X.values||{}),loc:P.loc.clone(X.loc),conversionAccuracy:X.conversionAccuracy||P.conversionAccuracy};return new Cb(P)}function Va(P,X,I,R,ca){P=P[ca][I];var wa=X[I]/P;wa=Math.sign(wa)!==Math.sign(R[ca])&&0!==R[ca]&&1>=Math.abs(wa)?0>wa?Math.floor(wa):Math.ceil(wa):Math.trunc(wa);R[ca]+=wa;X[I]-=wa*P}function Za(P,X){ad.reduce(function(I,R){if(h(X[R]))return I;I&&Va(P,X,I,X,R);return R},
null)}function Qa(P){if(m(P))return Cb.fromMillis(P);if(Cb.isDuration(P))return P;if("object"===typeof P)return Cb.fromObject(P);throw new Bb("Unknown duration argument "+P+" of type "+typeof P);}function J(P,X){var I=function(R){return R.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()};P=I(X)-I(P);return Math.floor(Cb.fromMillis(P).as("days"))}function Q(P,X,I){for(var R={},ca,wa,Ma=0,Oa=[["years",function(ib,nb){return nb.year-ib.year}],["quarters",function(ib,nb){return nb.quarter-ib.quarter}],
["months",function(ib,nb){return nb.month-ib.month+12*(nb.year-ib.year)}],["weeks",function(ib,nb){ib=J(ib,nb);return(ib-ib%7)/7}],["days",J]];Ma<Oa.length;Ma++){var Wa=Oa[Ma],fb=Wa[0];Wa=Wa[1];if(0<=I.indexOf(fb)){var kb;ca=fb;Wa=Wa(P,X);wa=P.plus((kb={},kb[fb]=Wa,kb));if(wa>X){var mb;P=P.plus((mb={},mb[fb]=Wa-1,mb));--Wa}else P=wa;R[fb]=Wa}}return[P,R,wa,ca]}function ea(P,X,I,R){var ca=Q(P,X,I);P=ca[0];var wa=ca[1],Ma=ca[2],Oa=ca[3];ca=X-P;I=I.filter(function(kb){return 0<=["hours","minutes","seconds",
"milliseconds"].indexOf(kb)});if(0===I.length){if(Ma<X){var Wa;Ma=P.plus((Wa={},Wa[Oa]=1,Wa))}Ma!==P&&(wa[Oa]=(wa[Oa]||0)+ca/(Ma-P))}X=Cb.fromObject(wa,R);if(0<I.length){var fb;return(fb=Cb.fromMillis(ca,R)).shiftTo.apply(fb,I).plus(X)}return X}function K(P,X){P=P.numberingSystem;void 0===X&&(X="");return new RegExp(""+tc[P||"latn"]+X)}function T(P,X){void 0===X&&(X=function(I){return I});return{regex:P,deser:function(I){var R=X;I=I[0];var ca=parseInt(I,10);if(isNaN(ca)){ca="";for(var wa=0;wa<I.length;wa++){var Ma=
I.charCodeAt(wa);if(-1!==I[wa].search(tc.hanidec))ca+=bd.indexOf(I[wa]);else for(fb in Gc){var Oa=Gc[fb],Wa=Oa[0];Oa=Oa[1];Ma>=Wa&&Ma<=Oa&&(ca+=Ma-Wa)}}var fb=parseInt(ca,10)}else fb=ca;return R(fb)}}}function fa(P){return P.replace(/\./g,"\\.?").replace(uc,Hc)}function qa(P,X){return null===P?null:{regex:RegExp(P.map(fa).join("|")),deser:function(I){var R=I[0];return P.findIndex(function(ca){return R.replace(/\./g,"").replace(uc," ").toLowerCase()===ca.replace(/\./g,"").replace(uc," ").toLowerCase()})+
X}}}function ya(P,X){return{regex:P,deser:function(I){return aa(I[1],I[2])},groups:X}}function Fa(P){return{regex:P,deser:function(X){return X[0]}}}function Ea(P,X){var I=K(X),R=K(X,"{2}"),ca=K(X,"{3}"),wa=K(X,"{4}"),Ma=K(X,"{6}"),Oa=K(X,"{1,2}"),Wa=K(X,"{1,3}"),fb=K(X,"{1,6}"),kb=K(X,"{1,9}"),mb=K(X,"{2,4}"),ib=K(X,"{4,6}"),nb=function($b){return{regex:RegExp($b.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$\x26")),deser:function(cd){return cd[0]},literal:!0}},Fb=function($b){if(P.literal)return nb($b);
switch($b.val){case "G":return qa(X.eras("short",!1),0);case "GG":return qa(X.eras("long",!1),0);case "y":return T(fb);case "yy":return T(mb,H);case "yyyy":return T(wa);case "yyyyy":return T(ib);case "yyyyyy":return T(Ma);case "M":return T(Oa);case "MM":return T(R);case "MMM":return qa(X.months("short",!0,!1),1);case "MMMM":return qa(X.months("long",!0,!1),1);case "L":return T(Oa);case "LL":return T(R);case "LLL":return qa(X.months("short",!1,!1),1);case "LLLL":return qa(X.months("long",!1,!1),1);
case "d":return T(Oa);case "dd":return T(R);case "o":return T(Wa);case "ooo":return T(ca);case "HH":return T(R);case "H":return T(Oa);case "hh":return T(R);case "h":return T(Oa);case "mm":return T(R);case "m":return T(Oa);case "q":return T(Oa);case "qq":return T(R);case "s":return T(Oa);case "ss":return T(R);case "S":return T(Wa);case "SSS":return T(ca);case "u":return Fa(kb);case "a":return qa(X.meridiems(),0);case "kkkk":return T(wa);case "kk":return T(mb,H);case "W":return T(Oa);case "WW":return T(R);
case "E":case "c":return T(I);case "EEE":return qa(X.weekdays("short",!1,!1),1);case "EEEE":return qa(X.weekdays("long",!1,!1),1);case "ccc":return qa(X.weekdays("short",!0,!1),1);case "cccc":return qa(X.weekdays("long",!0,!1),1);case "Z":case "ZZ":return ya(new RegExp("([+-]"+Oa.source+")(?::("+R.source+"))?"),2);case "ZZZ":return ya(new RegExp("([+-]"+Oa.source+")("+R.source+")?"),2);case "z":return Fa(/[a-z_+-/]{1,256}?/i);default:return nb($b)}}(P)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};
Fb.token=P;return Fb}function Ta(P){return["^"+P.map(function(X){return X.regex}).reduce(function(X,I){return X+"("+I.source+")"},"")+"$",P]}function Pa(P,X,I){if(P=P.match(X)){X={};var R=1,ca;for(ca in I)if(y(I,ca)){var wa=I[ca],Ma=wa.groups?wa.groups+1:1;!wa.literal&&wa.token&&(X[wa.token.val[0]]=wa.deser(P.slice(R,R+Ma)));R+=Ma}return[P,X]}return[P,{}]}function Ka(P){var X=function(R){switch(R){case "S":return"millisecond";case "s":return"second";case "m":return"minute";case "h":case "H":return"hour";
case "d":return"day";case "o":return"ordinal";case "L":case "M":return"month";case "y":return"year";case "E":case "c":return"weekday";case "W":return"weekNumber";case "k":return"weekYear";case "q":return"quarter";default:return null}};var I=h(P.Z)?h(P.z)?null:Nb.create(P.z):new Eb(P.Z);h(P.q)||(P.M=3*(P.q-1)+1);h(P.h)||(12>P.h&&1===P.a?P.h+=12:12===P.h&&0===P.a&&(P.h=0));0===P.G&&P.y&&(P.y=-P.y);h(P.u)||(P.S=B(P.u));return[Object.keys(P).reduce(function(R,ca){var wa=X(ca);wa&&(R[wa]=P[ca]);return R},
{}),I]}function Xa(){vc||(vc=vb.fromMillis(1555555555555));return vc}function gb(P,X){if(P.literal)return P;var I=Qb.macroTokenToFormatOpts(P.val);if(!I)return P;X=Qb.create(X,I).formatDateTimeParts(Xa()).map(function(R){var ca=R.type;R=R.value;"literal"===ca?ca={literal:!0,val:R}:(R=I[ca],ca=dd[ca],"object"===typeof ca&&(ca=ca[R]),ca=ca?{literal:!1,val:ca}:void 0);return ca});return X.includes(void 0)?P:X}function bb(P,X){var I;return(I=Array.prototype).concat.apply(I,P.map(function(R){return gb(R,
X)}))}function hb(P,X,I){I=bb(Qb.parseFormat(I),P);var R=I.map(function(Wa){return Ea(Wa,P)}),ca=R.find(function(Wa){return Wa.invalidReason});if(ca)return{input:X,tokens:I,invalidReason:ca.invalidReason};ca=Ta(R);R=RegExp(ca[0],"i");var wa=Pa(X,R,ca[1]);ca=wa[0];var Ma=(wa=wa[1])?Ka(wa):[null,null],Oa=Ma[0];Ma=Ma[1];if(y(wa,"a")&&y(wa,"H"))throw new Tb("Can't include meridiem when specifying 24-hour format");return{input:X,tokens:I,regex:R,rawMatches:ca,matches:wa,result:Oa,zone:Ma}}function db(P,
X){return new Ib("unit out of range","you specified "+X+" (of type "+typeof X+") as a "+P+", which is invalid")}function lb(P,X,I){P=(new Date(Date.UTC(P,X-1,I))).getUTCDay();return 0===P?7:P}function sb(P,X){P=F(P)?wc:xc;var I=P.findIndex(function(R){return R<X});return{month:I+1,day:X-P[I]}}function ob(P){var X=P.year,I=P.month,R=P.day;var ca=R+(F(X)?wc:xc)[I-1];I=lb(X,I,R);ca=Math.floor((ca-I+10)/7);1>ca?(--X,ca=G(X)):ca>G(X)&&(X+=1,ca=1);return w({weekYear:X,weekNumber:ca,weekday:I},ba(P))}function eb(P){var X=
P.weekYear,I=P.weekNumber,R=P.weekday,ca=lb(X,1,4),wa=F(X)?366:365;I=7*I+R-ca-3;1>I?(wa=X-1,I+=F(wa)?366:365):I>wa?(wa=X+1,I-=F(X)?366:365):wa=X;X=sb(wa,I);return w({year:wa,month:X.month,day:X.day},ba(P))}function pb(P){var X=P.year;var I=P.month;I=P.day+(F(X)?wc:xc)[I-1];return w({year:X,ordinal:I},ba(P))}function qb(P){var X=P.year,I=sb(X,P.ordinal);return w({year:X,month:I.month,day:I.day},ba(P))}function Kb(P){var X=g(P.year),I=u(P.month,1,12),R=u(P.day,1,A(P.year,P.month));return X?I?R?!1:db("day",
P.day):db("month",P.month):db("year",P.year)}function zb(P){var X=P.hour,I=P.minute,R=P.second;P=P.millisecond;var ca=u(X,0,23)||24===X&&0===I&&0===R&&0===P,wa=u(I,0,59),Ma=u(R,0,59),Oa=u(P,0,999);return ca?wa?Ma?Oa?!1:db("millisecond",P):db("second",R):db("minute",I):db("hour",X)}function ub(P){return new Ib("unsupported zone",'the zone "'+P.name+'" is not supported')}function Sb(P){null===P.weekData&&(P.weekData=ob(P.c));return P.weekData}function tb(P,X){P={ts:P.ts,zone:P.zone,c:P.c,o:P.o,loc:P.loc,
invalid:P.invalid};return new vb(w({},P,X,{old:P}))}function Hb(P,X,I){var R=P-6E4*X,ca=I.offset(R);if(X===ca)return[R,X];R-=6E4*(ca-X);X=I.offset(R);return ca===X?[R,ca]:[P-6E4*Math.min(ca,X),Math.max(ca,X)]}function Lb(P,X){P=new Date(P+6E4*X);return{year:P.getUTCFullYear(),month:P.getUTCMonth()+1,day:P.getUTCDate(),hour:P.getUTCHours(),minute:P.getUTCMinutes(),second:P.getUTCSeconds(),millisecond:P.getUTCMilliseconds()}}function Pb(P,X,I){return Hb(D(P),X,I)}function Vb(P,X){var I=P.o,R=P.c.year+
Math.trunc(X.years),ca=P.c.month+Math.trunc(X.months)+3*Math.trunc(X.quarters);R=w({},P.c,{year:R,month:ca,day:Math.min(P.c.day,A(R,ca))+Math.trunc(X.days)+7*Math.trunc(X.weeks)});X=Cb.fromObject({years:X.years-Math.trunc(X.years),quarters:X.quarters-Math.trunc(X.quarters),months:X.months-Math.trunc(X.months),weeks:X.weeks-Math.trunc(X.weeks),days:X.days-Math.trunc(X.days),hours:X.hours,minutes:X.minutes,seconds:X.seconds,milliseconds:X.milliseconds}).as("milliseconds");R=D(R);R=Hb(R,I,P.zone);I=
R[0];R=R[1];0!==X&&(I+=X,R=P.zone.offset(I));return{ts:I,o:R}}function Db(P,X,I,R,ca){var wa=I.setZone,Ma=I.zone;return P&&0!==Object.keys(P).length?(P=vb.fromObject(P,w({},I,{zone:X||Ma})),wa?P:P.setZone(Ma)):vb.invalid(new Ib("unparsable",'the input "'+ca+"\" can't be parsed as "+R))}function Rb(P,X,I){void 0===I&&(I=!0);return P.isValid?Qb.create(yb.create("en-US"),{allowZ:I,forceSimple:!0}).formatDateTimeFromString(P,X):null}function ac(P,X){var I=X.suppressSeconds,R=X.suppressMilliseconds;R=
void 0===R?!1:R;var ca=X.includeOffset,wa=X.includePrefix;wa=void 0===wa?!1:wa;var Ma=X.includeZone;Ma=void 0===Ma?!1:Ma;var Oa=X.spaceZone;X=X.format;X=void 0===X?"extended":X;var Wa="basic"===X?"HHmm":"HH:mm";void 0!==I&&I&&0===P.second&&0===P.millisecond||(Wa+="basic"===X?"ss":":ss",R&&0===P.millisecond||(Wa+=".SSS"));(Ma||ca)&&(void 0===Oa?0:Oa)&&(Wa+=" ");Ma?Wa+="z":ca&&(Wa+="basic"===X?"ZZZ":"ZZ");P=Rb(P,Wa);wa&&(P="T"+P);return P}function bc(P){var X={year:"year",years:"year",month:"month",
months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[P.toLowerCase()];if(!X)throw new cc(P);return X}function dc(P,X){var I=Aa(X.zone,wb.defaultZone);X=yb.fromObject(X);
var R=wb.now();if(h(P.year))P=R;else{var ca=e(Ic);for(var wa;!(wa=ca()).done;)wa=wa.value,h(P[wa])&&(P[wa]=Jc[wa]);if(ca=Kb(P)||zb(P))return vb.invalid(ca);R=I.offset(R);R=Pb(P,R,I);P=R[0];ca=R[1]}return new vb({ts:P,zone:I,loc:X,o:ca})}function ec(P,X,I){var R=h(I.round)?!0:I.round,ca=function(fb,kb){fb=C(fb,R||I.calendary?0:2,!0);return X.loc.clone(I).relFormatter(I).format(fb,kb)},wa=function(fb){return I.calendary?X.hasSame(P,fb)?0:X.startOf(fb).diff(P.startOf(fb),fb).get(fb):X.diff(P,fb).get(fb)};
if(I.unit)return ca(wa(I.unit),I.unit);for(var Ma=e(I.units),Oa;!(Oa=Ma()).done;){Oa=Oa.value;var Wa=wa(Oa);if(1<=Math.abs(Wa))return ca(Wa,Oa)}return ca(P>X?-0:0,I.units[I.units.length-1])}function fc(P){var X={};0<P.length&&"object"===typeof P[P.length-1]?(X=P[P.length-1],P=Array.from(P).slice(0,P.length-1)):P=Array.from(P);return[X,P]}function Ub(P){if(vb.isDateTime(P))return P;if(P&&P.valueOf&&m(P.valueOf()))return vb.fromJSDate(P);if(P&&"object"===typeof P)return vb.fromObject(P);throw new Bb("Unknown datetime argument: "+
P+", of type "+typeof P);}var Gb=function(P){function X(){return P.apply(this,arguments)||this}p(X,P);return X}(c(Error)),mc=function(P){function X(I){return P.call(this,"Invalid DateTime: "+I.toMessage())||this}p(X,P);return X}(Gb),Jb=function(P){function X(I){return P.call(this,"Invalid Interval: "+I.toMessage())||this}p(X,P);return X}(Gb),nc=function(P){function X(I){return P.call(this,"Invalid Duration: "+I.toMessage())||this}p(X,P);return X}(Gb),Tb=function(P){function X(){return P.apply(this,
arguments)||this}p(X,P);return X}(Gb),cc=function(P){function X(I){return P.call(this,"Invalid unit "+I)||this}p(X,P);return X}(Gb),Bb=function(P){function X(){return P.apply(this,arguments)||this}p(X,P);return X}(Gb),Ob=function(P){function X(){return P.call(this,"Zone is an abstract class")||this}p(X,P);return X}(Gb),gc={year:"numeric",month:"numeric",day:"numeric"},xb={year:"numeric",month:"short",day:"numeric"},O={year:"numeric",month:"short",day:"numeric",weekday:"short"},Ia={year:"numeric",
month:"long",day:"numeric"},Ha={year:"numeric",month:"long",day:"numeric",weekday:"long"},xa={hour:"numeric",minute:"numeric"},Da={hour:"numeric",minute:"numeric",second:"numeric"},La={hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},Ja={hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"long"},Ga={hour:"numeric",minute:"numeric",hourCycle:"h23"},Na={hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23"},Sa={hour:"numeric",minute:"numeric",second:"numeric",
hourCycle:"h23",timeZoneName:"short"},Ya={hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23",timeZoneName:"long"},cb={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"},Ua={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},ab={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"},$a={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},jb={year:"numeric",
month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric"},Ab={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"},hc={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},ic={year:"numeric",month:"long",day:"numeric",weekday:"long",hour:"numeric",minute:"numeric",timeZoneName:"long"},jc={year:"numeric",month:"long",day:"numeric",weekday:"long",hour:"numeric",minute:"numeric",
second:"numeric",timeZoneName:"long"},rb=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/,Wb="January February March April May June July August September October November December".split(" "),Mb="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Zb="JFMAMJJASOND".split(""),Fc="Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),Ec="Mon Tue Wed Thu Fri Sat Sun".split(" "),Wc="MTWTFSS".split(""),Kc=["AM","PM"],Zc=["Before Christ","Anno Domini"],Yc=["BC",
"AD"],Xc=["B","A"],ed={D:gc,DD:xb,DDD:Ia,DDDD:Ha,t:xa,tt:Da,ttt:La,tttt:Ja,T:Ga,TT:Na,TTT:Sa,TTTT:Ya,f:cb,ff:ab,fff:Ab,ffff:ic,F:Ua,FF:$a,FFF:hc,FFFF:jc},Qb=function(){function P(I,R){this.opts=R;this.loc=I;this.systemLoc=null}P.create=function(I,R){void 0===R&&(R={});return new P(I,R)};P.parseFormat=function(I){for(var R=null,ca="",wa=!1,Ma=[],Oa=0;Oa<I.length;Oa++){var Wa=I.charAt(Oa);"'"===Wa?(0<ca.length&&Ma.push({literal:wa,val:ca}),R=null,ca="",wa=!wa):wa?ca+=Wa:Wa===R?ca+=Wa:(0<ca.length&&
Ma.push({literal:!1,val:ca}),R=ca=Wa)}0<ca.length&&Ma.push({literal:wa,val:ca});return Ma};P.macroTokenToFormatOpts=function(I){return ed[I]};var X=P.prototype;X.formatWithSystemDefault=function(I,R){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(I,w({},this.opts,R)).format()};X.formatDateTime=function(I,R){void 0===R&&(R={});return this.loc.dtFormatter(I,w({},this.opts,R)).format()};X.formatDateTimeParts=function(I,R){void 0===R&&(R={});return this.loc.dtFormatter(I,
w({},this.opts,R)).formatToParts()};X.resolvedOptions=function(I,R){void 0===R&&(R={});return this.loc.dtFormatter(I,w({},this.opts,R)).resolvedOptions()};X.num=function(I,R){void 0===R&&(R=0);if(this.opts.forceSimple)return t(I,R);var ca=w({},this.opts);0<R&&(ca.padTo=R);return this.loc.numberFormatter(ca).format(I)};X.formatDateTimeFromString=function(I,R){var ca=this,wa="en"===this.loc.listingMode(),Ma=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,Oa=function(ib,nb){return ca.loc.extract(I,
ib,nb)},Wa=function(ib){return I.isOffsetFixed&&0===I.offset&&ib.allowZ?"Z":I.isValid?I.zone.formatOffset(I.ts,ib.format):""},fb=function(ib,nb){return wa?ja(ib)[I.month-1]:Oa(nb?{month:ib}:{month:ib,day:"numeric"},"month")},kb=function(ib,nb){return wa?pa(ib)[I.weekday-1]:Oa(nb?{weekday:ib}:{weekday:ib,month:"long",day:"numeric"},"weekday")},mb=function(ib){return wa?Ca(ib)[0>I.year?0:1]:Oa({era:ib},"era")};return ua(P.parseFormat(R),function(ib){switch(ib){case "S":return ca.num(I.millisecond);
case "u":case "SSS":return ca.num(I.millisecond,3);case "s":return ca.num(I.second);case "ss":return ca.num(I.second,2);case "m":return ca.num(I.minute);case "mm":return ca.num(I.minute,2);case "h":return ca.num(0===I.hour%12?12:I.hour%12);case "hh":return ca.num(0===I.hour%12?12:I.hour%12,2);case "H":return ca.num(I.hour);case "HH":return ca.num(I.hour,2);case "Z":return Wa({format:"narrow",allowZ:ca.opts.allowZ});case "ZZ":return Wa({format:"short",allowZ:ca.opts.allowZ});case "ZZZ":return Wa({format:"techie",
allowZ:ca.opts.allowZ});case "ZZZZ":return I.zone.offsetName(I.ts,{format:"short",locale:ca.loc.locale});case "ZZZZZ":return I.zone.offsetName(I.ts,{format:"long",locale:ca.loc.locale});case "z":return I.zoneName;case "a":return wa?Kc[12>I.hour?0:1]:Oa({hour:"numeric",hourCycle:"h12"},"dayperiod");case "d":return Ma?Oa({day:"numeric"},"day"):ca.num(I.day);case "dd":return Ma?Oa({day:"2-digit"},"day"):ca.num(I.day,2);case "c":return ca.num(I.weekday);case "ccc":return kb("short",!0);case "cccc":return kb("long",
!0);case "ccccc":return kb("narrow",!0);case "E":return ca.num(I.weekday);case "EEE":return kb("short",!1);case "EEEE":return kb("long",!1);case "EEEEE":return kb("narrow",!1);case "L":return Ma?Oa({month:"numeric",day:"numeric"},"month"):ca.num(I.month);case "LL":return Ma?Oa({month:"2-digit",day:"numeric"},"month"):ca.num(I.month,2);case "LLL":return fb("short",!0);case "LLLL":return fb("long",!0);case "LLLLL":return fb("narrow",!0);case "M":return Ma?Oa({month:"numeric"},"month"):ca.num(I.month);
case "MM":return Ma?Oa({month:"2-digit"},"month"):ca.num(I.month,2);case "MMM":return fb("short",!1);case "MMMM":return fb("long",!1);case "MMMMM":return fb("narrow",!1);case "y":return Ma?Oa({year:"numeric"},"year"):ca.num(I.year);case "yy":return Ma?Oa({year:"2-digit"},"year"):ca.num(I.year.toString().slice(-2),2);case "yyyy":return Ma?Oa({year:"numeric"},"year"):ca.num(I.year,4);case "yyyyyy":return Ma?Oa({year:"numeric"},"year"):ca.num(I.year,6);case "G":return mb("short");case "GG":return mb("long");
case "GGGGG":return mb("narrow");case "kk":return ca.num(I.weekYear.toString().slice(-2),2);case "kkkk":return ca.num(I.weekYear,4);case "W":return ca.num(I.weekNumber);case "WW":return ca.num(I.weekNumber,2);case "o":return ca.num(I.ordinal);case "ooo":return ca.num(I.ordinal,3);case "q":return ca.num(I.quarter);case "qq":return ca.num(I.quarter,2);case "X":return ca.num(Math.floor(I.ts/1E3));case "x":return ca.num(I.ts);default:var nb=P.macroTokenToFormatOpts(ib);ib=nb?ca.formatWithSystemDefault(I,
nb):ib;return ib}})};X.formatDurationFromString=function(I,R){var ca=this,wa=function(Oa){switch(Oa[0]){case "S":return"millisecond";case "s":return"second";case "m":return"minute";case "h":return"hour";case "d":return"day";case "M":return"month";case "y":return"year";default:return null}};R=P.parseFormat(R);var Ma=R.reduce(function(Oa,Wa){var fb=Wa.val;return Wa.literal?Oa:Oa.concat(fb)},[]);I=I.shiftTo.apply(I,Ma.map(wa).filter(function(Oa){return Oa}));return ua(R,function(Oa){return function(Wa){var fb=
wa(Wa);return fb?ca.num(Oa.get(fb),Wa.length):Wa}}(I))};return P}(),Ib=function(){function P(X,I){this.reason=X;this.explanation=I}P.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason};return P}(),Xb=function(){function P(){}var X=P.prototype;X.offsetName=function(I,R){throw new Ob;};X.formatOffset=function(I,R){throw new Ob;};X.offset=function(I){throw new Ob;};X.equals=function(I){throw new Ob;};b(P,[{key:"type",get:function(){throw new Ob;}},{key:"name",
get:function(){throw new Ob;}},{key:"isUniversal",get:function(){throw new Ob;}},{key:"isValid",get:function(){throw new Ob;}}]);return P}(),yc=null,Lc=function(P){function X(){return P.apply(this,arguments)||this}p(X,P);var I=X.prototype;I.offsetName=function(R,ca){return L(R,ca.format,ca.locale)};I.formatOffset=function(R,ca){return ia(this.offset(R),ca)};I.offset=function(R){return-(new Date(R)).getTimezoneOffset()};I.equals=function(R){return"system"===R.type};b(X,[{key:"type",get:function(){return"system"}},
{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){null===yc&&(yc=new X);return yc}}]);return X}(Xb),fd=RegExp("^"+rb.source+"$"),oc={},gd={year:0,month:1,day:2,hour:3,minute:4,second:5},pc={},Nb=function(P){function X(R){var ca=P.call(this)||this;ca.zoneName=R;ca.valid=X.isValidZone(R);return ca}p(X,P);X.create=function(R){pc[R]||(pc[R]=new X(R));
return pc[R]};X.resetCache=function(){pc={};oc={}};X.isValidSpecifier=function(R){return!(!R||!R.match(fd))};X.isValidZone=function(R){try{return(new Intl.DateTimeFormat("en-US",{timeZone:R})).format(),!0}catch(ca){return!1}};X.parseGMTOffset=function(R){return R&&(R=R.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i))?-60*parseInt(R[1]):null};var I=X.prototype;I.offsetName=function(R,ca){return L(R,ca.format,ca.locale,this.name)};I.formatOffset=function(R,ca){return ia(this.offset(R),ca)};I.offset=function(R){R=
new Date(R);if(isNaN(R))return NaN;var ca=this.name;oc[ca]||(oc[ca]=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:ca,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}));ca=oc[ca];if(ca.formatToParts){ca=ca.formatToParts(R);for(var wa=[],Ma=0;Ma<ca.length;Ma++){var Oa=ca[Ma],Wa=Oa.value;Oa=gd[Oa.type];h(Oa)||(wa[Oa]=parseInt(Wa,10))}ca=wa}else ca=ca.format(R).replace(/\u200E/g,""),ca=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(ca),ca=[ca[3],
ca[1],ca[2],ca[4],ca[5],ca[6]];ca=D({year:ca[0],month:ca[1],day:ca[2],hour:ca[3],minute:ca[4],second:ca[5],millisecond:0});R=+R;wa=R%1E3;return(ca-(R-(0<=wa?wa:1E3+wa)))/6E4};I.equals=function(R){return"iana"===R.type&&R.name===this.name};b(X,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]);return X}(Xb),zc=null,Eb=function(P){function X(R){var ca=P.call(this)||
this;ca.fixed=R;return ca}p(X,P);X.instance=function(R){return 0===R?X.utcInstance:new X(R)};X.parseSpecifier=function(R){return R&&(R=R.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i))?new X(aa(R[1],R[2])):null};var I=X.prototype;I.offsetName=function(){return this.name};I.formatOffset=function(R,ca){return ia(this.fixed,ca)};I.offset=function(){return this.fixed};I.equals=function(R){return"fixed"===R.type&&R.fixed===this.fixed};b(X,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===
this.fixed?"UTC":"UTC"+ia(this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){null===zc&&(zc=new X(0));return zc}}]);return X}(Xb),rc=function(P){function X(R){var ca=P.call(this)||this;ca.zoneName=R;return ca}p(X,P);var I=X.prototype;I.offsetName=function(){return null};I.formatOffset=function(){return""};I.offset=function(){return NaN};I.equals=function(){return!1};b(X,[{key:"type",get:function(){return"invalid"}},
{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]);return X}(Xb),Mc=function(){return Date.now()},Nc="system",Oc=null,Pc=null,Qc=null,Rc,wb=function(){function P(){}P.resetCaches=function(){yb.resetCache();Nb.resetCache()};b(P,null,[{key:"now",get:function(){return Mc},set:function(X){Mc=X}},{key:"defaultZone",get:function(){return Aa(Nc,Lc.instance)},set:function(X){Nc=X}},{key:"defaultLocale",get:function(){return Oc},
set:function(X){Oc=X}},{key:"defaultNumberingSystem",get:function(){return Pc},set:function(X){Pc=X}},{key:"defaultOutputCalendar",get:function(){return Qc},set:function(X){Qc=X}},{key:"throwOnInvalid",get:function(){return Rc},set:function(X){Rc=X}}]);return P}(),hd=["base"],sc={},Ac={},Bc={},qc=null,id=function(){function P(X,I,R){this.padTo=R.padTo||0;this.floor=R.floor||!1;if(!I){I={useGrouping:!1};0<R.padTo&&(I.minimumIntegerDigits=R.padTo);R=I;void 0===R&&(R={});I=JSON.stringify([X,R]);var ca=
Ac[I];ca||(ca=new Intl.NumberFormat(X,R),Ac[I]=ca);this.inf=ca}}P.prototype.format=function(X){if(this.inf)return this.inf.format(this.floor?Math.floor(X):X);X=this.floor?Math.floor(X):C(X,3);return t(X,this.padTo)};return P}(),jd=function(){function P(I,R,ca){this.opts=ca;if(I.zone.isUniversal){var wa=I.offset/60*-1;wa=0<=wa?"Etc/GMT+"+wa:"Etc/GMT"+wa;var Ma=Nb.isValidZone(wa);0!==I.offset&&Ma?this.dt=I:(wa="UTC",this.dt=ca.timeZoneName?I:0===I.offset?I:vb.fromMillis(I.ts+6E4*I.offset))}else"system"===
I.zone.type?this.dt=I:(this.dt=I,wa=I.zone.name);I=w({},this.opts);wa&&(I.timeZone=wa);this.dtf=M(R,I)}var X=P.prototype;X.format=function(){return this.dtf.format(this.dt.toJSDate())};X.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())};X.resolvedOptions=function(){return this.dtf.resolvedOptions()};return P}(),kd=function(){function P(I,R,ca){this.opts=w({style:"long"},ca);if(!R&&k()){R=ca;void 0===R&&(R={});ca=R;ca.base;if(null==ca)ca={};else{var wa={},Ma=Object.keys(ca),
Oa;for(Oa=0;Oa<Ma.length;Oa++){var Wa=Ma[Oa];0<=hd.indexOf(Wa)||(wa[Wa]=ca[Wa])}ca=wa}ca=JSON.stringify([I,ca]);wa=Bc[ca];wa||(wa=new Intl.RelativeTimeFormat(I,R),Bc[ca]=wa);this.rtf=wa}}var X=P.prototype;X.format=function(I,R){return this.rtf?this.rtf.format(I,R):la(R,I,this.opts.numeric,"long"!==this.opts.style)};X.formatToParts=function(I,R){return this.rtf?this.rtf.formatToParts(I,R):[]};return P}(),yb=function(){function P(I,R,ca,wa){var Ma=I.indexOf("-u-");if(-1===Ma)I=[I];else{Ma=I.substring(0,
Ma);try{var Oa=M(I).resolvedOptions()}catch(Wa){Oa=M(Ma).resolvedOptions()}I=Oa;I=[Ma,I.numberingSystem,I.calendar]}Oa=I[1];Ma=I[2];this.locale=I[0];this.numberingSystem=R||Oa||null;this.outputCalendar=ca||Ma||null;R=this.locale;ca=this.numberingSystem;if((I=this.outputCalendar)||ca)R+="-u",I&&(R+="-ca-"+I),ca&&(R+="-nu-"+ca);this.intl=R;this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=wa;this.fastNumbersCached=
null}P.fromOpts=function(I){return P.create(I.locale,I.numberingSystem,I.outputCalendar,I.defaultToEN)};P.create=function(I,R,ca,wa){void 0===wa&&(wa=!1);I=I||wb.defaultLocale;var Ma;(Ma=I)||(wa?wa="en-US":(qc||(qc=(new Intl.DateTimeFormat).resolvedOptions().locale),wa=qc),Ma=wa);return new P(Ma,R||wb.defaultNumberingSystem,ca||wb.defaultOutputCalendar,I)};P.resetCache=function(){qc=null;sc={};Ac={};Bc={}};P.fromObject=function(I){I=void 0===I?{}:I;return P.create(I.locale,I.numberingSystem,I.outputCalendar)};
var X=P.prototype;X.listingMode=function(I){I=this.isEnglish();var R=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return I&&R?"en":"intl"};X.clone=function(I){return I&&0!==Object.getOwnPropertyNames(I).length?P.create(I.locale||this.specifiedLocale,I.numberingSystem||this.numberingSystem,I.outputCalendar||this.outputCalendar,I.defaultToEN||!1):this};X.redefaultToEN=function(I){void 0===I&&(I={});return this.clone(w({},
I,{defaultToEN:!0}))};X.redefaultToSystem=function(I){void 0===I&&(I={});return this.clone(w({},I,{defaultToEN:!1}))};X.months=function(I,R,ca){var wa=this;void 0===R&&(R=!1);void 0===ca&&(ca=!0);return N(this,I,ca,ja,function(){var Ma=R?{month:I,day:"numeric"}:{month:I},Oa=R?"format":"standalone";wa.monthsCache[Oa][I]||(wa.monthsCache[Oa][I]=Y(function(Wa){return wa.extract(Wa,Ma,"month")}));return wa.monthsCache[Oa][I]})};X.weekdays=function(I,R,ca){var wa=this;void 0===R&&(R=!1);void 0===ca&&(ca=
!0);return N(this,I,ca,pa,function(){var Ma=R?{weekday:I,year:"numeric",month:"long",day:"numeric"}:{weekday:I},Oa=R?"format":"standalone";wa.weekdaysCache[Oa][I]||(wa.weekdaysCache[Oa][I]=ka(function(Wa){return wa.extract(Wa,Ma,"weekday")}));return wa.weekdaysCache[Oa][I]})};X.meridiems=function(I){var R=this;void 0===I&&(I=!0);return N(this,void 0,I,function(){return Kc},function(){if(!R.meridiemCache){var ca={hour:"numeric",hourCycle:"h12"};R.meridiemCache=[vb.utc(2016,11,13,9),vb.utc(2016,11,
13,19)].map(function(wa){return R.extract(wa,ca,"dayperiod")})}return R.meridiemCache})};X.eras=function(I,R){var ca=this;void 0===R&&(R=!0);return N(this,I,R,Ca,function(){var wa={era:I};ca.eraCache[I]||(ca.eraCache[I]=[vb.utc(-40,1,1),vb.utc(2017,1,1)].map(function(Ma){return ca.extract(Ma,wa,"era")}));return ca.eraCache[I]})};X.extract=function(I,R,ca){return(I=this.dtFormatter(I,R).formatToParts().find(function(wa){return wa.type.toLowerCase()===ca}))?I.value:null};X.numberFormatter=function(I){void 0===
I&&(I={});return new id(this.intl,I.forceSimple||this.fastNumbers,I)};X.dtFormatter=function(I,R){void 0===R&&(R={});return new jd(I,this.intl,R)};X.relFormatter=function(I){void 0===I&&(I={});return new kd(this.intl,this.isEnglish(),I)};X.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||(new Intl.DateTimeFormat(this.intl)).resolvedOptions().locale.startsWith("en-us")};X.equals=function(I){return this.locale===I.locale&&this.numberingSystem===I.numberingSystem&&
this.outputCalendar===I.outputCalendar};b(P,[{key:"fastNumbers",get:function(){if(null==this.fastNumbersCached){var I=this.numberingSystem&&"latn"!==this.numberingSystem?!1:"latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===(new Intl.DateTimeFormat(this.intl)).resolvedOptions().numberingSystem;this.fastNumbersCached=I}return this.fastNumbersCached}}]);return P}(),Sc=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Cc=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Tc=RegExp(""+
Cc.source+Sc.source+"?"),Dc=RegExp("(?:T"+Tc.source+")?"),ld=va("weekYear","weekNumber","weekDay"),md=va("year","ordinal"),Uc=RegExp(Cc.source+" ?(?:"+Sc.source+"|("+rb.source+"))?"),nd=RegExp("(?: "+Uc.source+")?"),od=RegExp("^T?"+Cc.source+"$"),pd=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/,$c={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},qd=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/,
rd=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,sd=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,td=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/,ud=Z(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Dc),vd=Z(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Dc),
wd=Z(/(\d{4})-?(\d{3})/,Dc),xd=Z(Tc),yd=na(U,ma,ra),zd=na(ld,ma,ra),Ad=na(md,ma,ra),Bd=na(ma,ra),Cd=na(ma),Dd=Z(/(\d{4})-(\d\d)-(\d\d)/,nd),Ed=Z(Uc),Fd=na(U,ma,ra,sa),Gd=na(ma,ra,sa),Vc={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048E5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864E5},hours:{minutes:60,seconds:3600,milliseconds:36E5},minutes:{seconds:60,milliseconds:6E4},seconds:{milliseconds:1E3}},Hd=w({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,
minutes:525600,seconds:31536E3,milliseconds:31536E6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624E5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592E3,milliseconds:2592E6}},Vc),Id=w({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:31556952,milliseconds:31556952E3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238E3},months:{weeks:30.436875/
7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746E3}},Vc),Yb="years quarters months weeks days hours minutes seconds milliseconds".split(" "),ad=Yb.slice(0).reverse(),Cb=function(){function P(I){var R="longterm"===I.conversionAccuracy||!1;this.values=I.values;this.loc=I.loc||yb.create();this.conversionAccuracy=R?"longterm":"casual";this.invalid=I.invalid||null;this.matrix=R?Id:Hd;this.isLuxonDuration=!0}P.fromMillis=function(I,R){return P.fromObject({milliseconds:I},
R)};P.fromObject=function(I,R){void 0===R&&(R={});if(null==I||"object"!==typeof I)throw new Bb("Duration.fromObject: argument expected to be an object, got "+(null===I?"null":typeof I));return new P({values:ha(I,P.normalizeUnit),loc:yb.fromObject(R),conversionAccuracy:R.conversionAccuracy})};P.fromISO=function(I,R){var ca=za(I,[pd,V])[0];return ca?P.fromObject(ca,R):P.invalid("unparsable",'the input "'+I+"\" can't be parsed as ISO 8601")};P.fromISOTime=function(I,R){var ca=za(I,[od,Cd])[0];return ca?
P.fromObject(ca,R):P.invalid("unparsable",'the input "'+I+"\" can't be parsed as ISO 8601")};P.invalid=function(I,R){void 0===R&&(R=null);if(!I)throw new Bb("need to specify a reason the Duration is invalid");I=I instanceof Ib?I:new Ib(I,R);if(wb.throwOnInvalid)throw new nc(I);return new P({invalid:I})};P.normalizeUnit=function(I){var R={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",
minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[I?I.toLowerCase():I];if(!R)throw new cc(I);return R};P.isDuration=function(I){return I&&I.isLuxonDuration||!1};var X=P.prototype;X.toFormat=function(I,R){void 0===R&&(R={});R=w({},R,{floor:!1!==R.round&&!1!==R.floor});return this.isValid?Qb.create(this.loc,R).formatDurationFromString(this,I):"Invalid Duration"};X.toObject=function(){return this.isValid?w({},this.values):{}};
X.toISO=function(){if(!this.isValid)return null;var I="P";0!==this.years&&(I+=this.years+"Y");if(0!==this.months||0!==this.quarters)I+=this.months+3*this.quarters+"M";0!==this.weeks&&(I+=this.weeks+"W");0!==this.days&&(I+=this.days+"D");if(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)I+="T";0!==this.hours&&(I+=this.hours+"H");0!==this.minutes&&(I+=this.minutes+"M");if(0!==this.seconds||0!==this.milliseconds)I+=C(this.seconds+this.milliseconds/1E3,3)+"S";"P"===I&&(I+="T0S");
return I};X.toISOTime=function(I){void 0===I&&(I={});if(!this.isValid)return null;var R=this.toMillis();if(0>R||864E5<=R)return null;I=w({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},I);R=this.shiftTo("hours","minutes","seconds","milliseconds");var ca="basic"===I.format?"hhmm":"hh:mm";I.suppressSeconds&&0===R.seconds&&0===R.milliseconds||(ca+="basic"===I.format?"ss":":ss",I.suppressMilliseconds&&0===R.milliseconds||(ca+=".SSS"));R=R.toFormat(ca);I.includePrefix&&
(R="T"+R);return R};X.toJSON=function(){return this.toISO()};X.toString=function(){return this.toISO()};X.toMillis=function(){return this.as("milliseconds")};X.valueOf=function(){return this.toMillis()};X.plus=function(I){if(!this.isValid)return this;I=Qa(I);for(var R={},ca=e(Yb),wa;!(wa=ca()).done;)if(wa=wa.value,y(I.values,wa)||y(this.values,wa))R[wa]=I.get(wa)+this.get(wa);return Ra(this,{values:R},!0)};X.minus=function(I){if(!this.isValid)return this;I=Qa(I);return this.plus(I.negate())};X.mapUnits=
function(I){if(!this.isValid)return this;for(var R={},ca=0,wa=Object.keys(this.values);ca<wa.length;ca++){var Ma=wa[ca];R[Ma]=da(I(this.values[Ma],Ma))}return Ra(this,{values:R},!0)};X.get=function(I){return this[P.normalizeUnit(I)]};X.set=function(I){if(!this.isValid)return this;I=w({},this.values,ha(I,P.normalizeUnit));return Ra(this,{values:I})};X.reconfigure=function(I){var R=void 0===I?{}:I;I=R.conversionAccuracy;R={loc:this.loc.clone({locale:R.locale,numberingSystem:R.numberingSystem})};I&&
(R.conversionAccuracy=I);return Ra(this,R)};X.as=function(I){return this.isValid?this.shiftTo(I).get(I):NaN};X.normalize=function(){if(!this.isValid)return this;var I=this.toObject();Za(this.matrix,I);return Ra(this,{values:I},!0)};X.shiftTo=function(){for(var I=arguments.length,R=Array(I),ca=0;ca<I;ca++)R[ca]=arguments[ca];if(!this.isValid||0===R.length)return this;R=R.map(function(Fb){return P.normalizeUnit(Fb)});I={};ca={};for(var wa=this.toObject(),Ma,Oa=e(Yb),Wa;!(Wa=Oa()).done;)if(Wa=Wa.value,
0<=R.indexOf(Wa)){Ma=Wa;var fb=0,kb;for(kb in ca)fb+=this.matrix[kb][Wa]*ca[kb],ca[kb]=0;m(wa[Wa])&&(fb+=wa[Wa]);var mb=Math.trunc(fb);I[Wa]=mb;ca[Wa]=fb-mb;for(var ib in wa)Yb.indexOf(ib)>Yb.indexOf(Wa)&&Va(this.matrix,wa,ib,I,Wa)}else m(wa[Wa])&&(ca[Wa]=wa[Wa]);for(var nb in ca)0!==ca[nb]&&(I[Ma]+=nb===Ma?ca[nb]:ca[nb]/this.matrix[Ma][nb]);return Ra(this,{values:I},!0).normalize()};X.negate=function(){if(!this.isValid)return this;for(var I={},R=0,ca=Object.keys(this.values);R<ca.length;R++){var wa=
ca[R];I[wa]=-this.values[wa]}return Ra(this,{values:I},!0)};X.equals=function(I){if(!this.isValid||!I.isValid||!this.loc.equals(I.loc))return!1;for(var R=e(Yb),ca;!(ca=R()).done;){var wa=ca.value;ca=this.values[wa];wa=I.values[wa];ca=void 0===ca||0===ca?void 0===wa||0===wa:ca===wa;if(!ca)return!1}return!0};b(P,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?
this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",
get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]);return P}(),kc=function(){function P(I){this.s=I.start;this.e=I.end;this.invalid=I.invalid||null;this.isLuxonInterval=
!0}P.invalid=function(I,R){void 0===R&&(R=null);if(!I)throw new Bb("need to specify a reason the Interval is invalid");I=I instanceof Ib?I:new Ib(I,R);if(wb.throwOnInvalid)throw new Jb(I);return new P({invalid:I})};P.fromDateTimes=function(I,R){I=Ub(I);R=Ub(R);var ca=I&&I.isValid?R&&R.isValid?R<I?kc.invalid("end before start","The end of an interval must be after its start, but you had start\x3d"+I.toISO()+" and end\x3d"+R.toISO()):null:kc.invalid("missing or invalid end"):kc.invalid("missing or invalid start");
return null==ca?new P({start:I,end:R}):ca};P.after=function(I,R){R=Qa(R);I=Ub(I);return P.fromDateTimes(I,I.plus(R))};P.before=function(I,R){R=Qa(R);I=Ub(I);return P.fromDateTimes(I.minus(R),I)};P.fromISO=function(I,R){var ca=(I||"").split("/",2),wa=ca[0];ca=ca[1];if(wa&&ca){try{var Ma=vb.fromISO(wa,R);var Oa=Ma.isValid}catch(kb){Oa=!1}try{var Wa=vb.fromISO(ca,R);var fb=Wa.isValid}catch(kb){fb=!1}if(Oa&&fb)return P.fromDateTimes(Ma,Wa);if(Oa){if(Wa=Cb.fromISO(ca,R),Wa.isValid)return P.after(Ma,Wa)}else if(fb&&
(Ma=Cb.fromISO(wa,R),Ma.isValid))return P.before(Wa,Ma)}return P.invalid("unparsable",'the input "'+I+"\" can't be parsed as ISO 8601")};P.isInterval=function(I){return I&&I.isLuxonInterval||!1};var X=P.prototype;X.length=function(I){void 0===I&&(I="milliseconds");return this.isValid?this.toDuration.apply(this,[I]).get(I):NaN};X.count=function(I){void 0===I&&(I="milliseconds");if(!this.isValid)return NaN;var R=this.start.startOf(I),ca=this.end.startOf(I);return Math.floor(ca.diff(R,I).get(I))+1};
X.hasSame=function(I){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,I):!1};X.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()};X.isAfter=function(I){return this.isValid?this.s>I:!1};X.isBefore=function(I){return this.isValid?this.e<=I:!1};X.contains=function(I){return this.isValid?this.s<=I&&this.e>I:!1};X.set=function(I){I=void 0===I?{}:I;return this.isValid?P.fromDateTimes(I.start||this.s,I.end||this.e):this};X.splitAt=function(){var I=this;if(!this.isValid)return[];
for(var R=arguments.length,ca=Array(R),wa=0;wa<R;wa++)ca[wa]=arguments[wa];R=ca.map(Ub).filter(function(Wa){return I.contains(Wa)}).sort();ca=[];wa=this.s;for(var Ma=0;wa<this.e;){var Oa=R[Ma]||this.e;Oa=+Oa>+this.e?this.e:Oa;ca.push(P.fromDateTimes(wa,Oa));wa=Oa;Ma+=1}return ca};X.splitBy=function(I){I=Qa(I);if(!this.isValid||!I.isValid||0===I.as("milliseconds"))return[];for(var R=this.s,ca=1,wa,Ma=[];R<this.e;)wa=this.start.plus(I.mapUnits(function(Oa){return Oa*ca})),wa=+wa>+this.e?this.e:wa,Ma.push(P.fromDateTimes(R,
wa)),R=wa,ca+=1;return Ma};X.divideEqually=function(I){return this.isValid?this.splitBy(this.length()/I).slice(0,I):[]};X.overlaps=function(I){return this.e>I.s&&this.s<I.e};X.abutsStart=function(I){return this.isValid?+this.e===+I.s:!1};X.abutsEnd=function(I){return this.isValid?+I.e===+this.s:!1};X.engulfs=function(I){return this.isValid?this.s<=I.s&&this.e>=I.e:!1};X.equals=function(I){return this.isValid&&I.isValid?this.s.equals(I.s)&&this.e.equals(I.e):!1};X.intersection=function(I){if(!this.isValid)return this;
var R=this.s>I.s?this.s:I.s;I=this.e<I.e?this.e:I.e;return R>=I?null:P.fromDateTimes(R,I)};X.union=function(I){return this.isValid?P.fromDateTimes(this.s<I.s?this.s:I.s,this.e>I.e?this.e:I.e):this};P.merge=function(I){var R=I.sort(function(ca,wa){return ca.s-wa.s}).reduce(function(ca,wa){var Ma=ca[0];return(ca=ca[1])?ca.overlaps(wa)||ca.abutsStart(wa)?[Ma,ca.union(wa)]:[Ma.concat([ca]),wa]:[Ma,wa]},[[],null]);I=R[0];(R=R[1])&&I.push(R);return I};P.xor=function(I){var R,ca=null,wa=0,Ma=[];I=I.map(function(Oa){return[{time:Oa.s,
type:"s"},{time:Oa.e,type:"e"}]});I=(R=Array.prototype).concat.apply(R,I).sort(function(Oa,Wa){return Oa.time-Wa.time});for(R=e(I);!(I=R()).done;)I=I.value,wa+="s"===I.type?1:-1,1===wa?ca=I.time:(ca&&+ca!==+I.time&&Ma.push(P.fromDateTimes(ca,I.time)),ca=null);return P.merge(Ma)};X.difference=function(){for(var I=this,R=arguments.length,ca=Array(R),wa=0;wa<R;wa++)ca[wa]=arguments[wa];return P.xor([this].concat(ca)).map(function(Ma){return I.intersection(Ma)}).filter(function(Ma){return Ma&&!Ma.isEmpty()})};
X.toString=function(){return this.isValid?"["+this.s.toISO()+" \u2013 "+this.e.toISO()+")":"Invalid Interval"};X.toISO=function(I){return this.isValid?this.s.toISO(I)+"/"+this.e.toISO(I):"Invalid Interval"};X.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():"Invalid Interval"};X.toISOTime=function(I){return this.isValid?this.s.toISOTime(I)+"/"+this.e.toISOTime(I):"Invalid Interval"};X.toFormat=function(I,R){R=(void 0===R?{}:R).separator;R=void 0===R?" \u2013 ":R;
return this.isValid?""+this.s.toFormat(I)+R+this.e.toFormat(I):"Invalid Interval"};X.toDuration=function(I,R){return this.isValid?this.e.diff(this.s,I,R):Cb.invalid(this.invalidReason)};X.mapEndpoints=function(I){return P.fromDateTimes(I(this.s),I(this.e))};b(P,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?
this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]);return P}(),lc=function(){function P(){}P.hasDST=function(X){void 0===X&&(X=wb.defaultZone);var I=vb.now().setZone(X).set({month:12});return!X.isUniversal&&I.offset!==I.set({month:6}).offset};P.isValidIANAZone=function(X){return Nb.isValidSpecifier(X)&&Nb.isValidZone(X)};P.normalizeZone=function(X){return Aa(X,wb.defaultZone)};P.months=function(X,I){void 0===X&&(X="long");var R=
void 0===I?{}:I;I=R.locale;var ca=R.numberingSystem,wa=R.locObj;R=R.outputCalendar;return((void 0===wa?null:wa)||yb.create(void 0===I?null:I,void 0===ca?null:ca,void 0===R?"gregory":R)).months(X)};P.monthsFormat=function(X,I){void 0===X&&(X="long");var R=void 0===I?{}:I;I=R.locale;var ca=R.numberingSystem,wa=R.locObj;R=R.outputCalendar;return((void 0===wa?null:wa)||yb.create(void 0===I?null:I,void 0===ca?null:ca,void 0===R?"gregory":R)).months(X,!0)};P.weekdays=function(X,I){void 0===X&&(X="long");
var R=void 0===I?{}:I;I=R.locale;var ca=R.numberingSystem;R=R.locObj;return((void 0===R?null:R)||yb.create(void 0===I?null:I,void 0===ca?null:ca,null)).weekdays(X)};P.weekdaysFormat=function(X,I){void 0===X&&(X="long");var R=void 0===I?{}:I;I=R.locale;var ca=R.numberingSystem;R=R.locObj;return((void 0===R?null:R)||yb.create(void 0===I?null:I,void 0===ca?null:ca,null)).weekdays(X,!0)};P.meridiems=function(X){X=(void 0===X?{}:X).locale;return yb.create(void 0===X?null:X).meridiems()};P.eras=function(X,
I){void 0===X&&(X="short");I=(void 0===I?{}:I).locale;return yb.create(void 0===I?null:I,null,"gregory").eras(X)};P.features=function(){return{relative:k()}};return P}(),tc={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",
mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},Gc={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],
thai:[3664,3673],tibt:[3872,3881]},bd=tc.hanidec.replace(/[\[|\]]/g,"").split(""),Hc="( |"+String.fromCharCode(160)+")",uc=new RegExp(Hc,"g"),dd={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}},vc=null,xc=[0,31,59,90,120,151,181,212,243,273,304,334],
wc=[0,31,60,91,121,152,182,213,244,274,305,335],Jc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Jd={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Kd={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ic="year month day hour minute second millisecond".split(" "),Ld="weekYear weekNumber weekday hour minute second millisecond".split(" "),Md="year ordinal hour minute second millisecond".split(" "),vb=function(){function P(I){var R=I.zone||wb.defaultZone,ca=I.invalid||(Number.isNaN(I.ts)?
new Ib("invalid input"):null)||(R.isValid?null:ub(R));this.ts=h(I.ts)?wb.now():I.ts;var wa=null,Ma=null;ca||(I.old&&I.old.ts===this.ts&&I.old.zone.equals(R)?(Ma=[I.old.c,I.old.o],wa=Ma[0],Ma=Ma[1]):(Ma=R.offset(this.ts),wa=Lb(this.ts,Ma),wa=(ca=Number.isNaN(wa.year)?new Ib("invalid input"):null)?null:wa,Ma=ca?null:Ma));this._zone=R;this.loc=I.loc||yb.create();this.invalid=ca;this.weekData=null;this.c=wa;this.o=Ma;this.isLuxonDateTime=!0}P.now=function(){return new P({})};P.local=function(){var I=
fc(arguments),R=I[1];return dc({year:R[0],month:R[1],day:R[2],hour:R[3],minute:R[4],second:R[5],millisecond:R[6]},I[0])};P.utc=function(){var I=fc(arguments),R=I[0],ca=I[1];I=ca[0];var wa=ca[1],Ma=ca[2],Oa=ca[3],Wa=ca[4],fb=ca[5];ca=ca[6];R.zone=Eb.utcInstance;return dc({year:I,month:wa,day:Ma,hour:Oa,minute:Wa,second:fb,millisecond:ca},R)};P.fromJSDate=function(I,R){void 0===R&&(R={});I="[object Date]"===Object.prototype.toString.call(I)?I.valueOf():NaN;if(Number.isNaN(I))return P.invalid("invalid input");
var ca=Aa(R.zone,wb.defaultZone);return ca.isValid?new P({ts:I,zone:ca,loc:yb.fromObject(R)}):P.invalid(ub(ca))};P.fromMillis=function(I,R){void 0===R&&(R={});if(m(I))return-864E13>I||864E13<I?P.invalid("Timestamp out of range"):new P({ts:I,zone:Aa(R.zone,wb.defaultZone),loc:yb.fromObject(R)});throw new Bb("fromMillis requires a numerical input, but received a "+typeof I+" with value "+I);};P.fromSeconds=function(I,R){void 0===R&&(R={});if(m(I))return new P({ts:1E3*I,zone:Aa(R.zone,wb.defaultZone),
loc:yb.fromObject(R)});throw new Bb("fromSeconds requires a numerical input");};P.fromObject=function(I,R){void 0===R&&(R={});I=I||{};var ca=Aa(R.zone,wb.defaultZone);if(!ca.isValid)return P.invalid(ub(ca));var wa=wb.now(),Ma=ca.offset(wa),Oa=ha(I,bc),Wa=!h(Oa.ordinal),fb=!h(Oa.year),kb=!h(Oa.month)||!h(Oa.day);fb=fb||kb;var mb=Oa.weekYear||Oa.weekNumber;R=yb.fromObject(R);if((fb||Wa)&&mb)throw new Tb("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(kb&&Wa)throw new Tb("Can't mix ordinal dates with month/day");
kb=mb||Oa.weekday&&!fb;mb=Lb(wa,Ma);if(kb){var ib=Ld;wa=Jd;mb=ob(mb)}else Wa?(ib=Md,wa=Kd,mb=pb(mb)):(ib=Ic,wa=Jc);var nb=!1;ib=e(ib);for(var Fb;!(Fb=ib()).done;)Fb=Fb.value,h(Oa[Fb])?Oa[Fb]=nb?wa[Fb]:mb[Fb]:nb=!0;kb?(wa=g(Oa.weekYear),mb=u(Oa.weekNumber,1,G(Oa.weekYear)),nb=u(Oa.weekday,1,7),wa=wa?mb?nb?!1:db("weekday",Oa.weekday):db("week",Oa.week):db("weekYear",Oa.weekYear)):Wa?(wa=g(Oa.year),mb=u(Oa.ordinal,1,F(Oa.year)?366:365),wa=wa?mb?!1:db("ordinal",Oa.ordinal):db("year",Oa.year)):wa=Kb(Oa);
if(wa=wa||zb(Oa))return P.invalid(wa);Wa=kb?eb(Oa):Wa?qb(Oa):Oa;Ma=Pb(Wa,Ma,ca);ca=new P({ts:Ma[0],zone:ca,o:Ma[1],loc:R});return Oa.weekday&&fb&&I.weekday!==ca.weekday?P.invalid("mismatched weekday","you can't specify both a weekday of "+Oa.weekday+" and a date of "+ca.toISO()):ca};P.fromISO=function(I,R){void 0===R&&(R={});var ca=za(I,[ud,yd],[vd,zd],[wd,Ad],[xd,Bd]);return Db(ca[0],ca[1],R,"ISO 8601",I)};P.fromRFC2822=function(I,R){void 0===R&&(R={});var ca=za(I.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g,
" ").trim(),[qd,oa]);return Db(ca[0],ca[1],R,"RFC 2822",I)};P.fromHTTP=function(I,R){void 0===R&&(R={});I=za(I,[rd,ta],[sd,ta],[td,Ba]);return Db(I[0],I[1],R,"HTTP",R)};P.fromFormat=function(I,R,ca){void 0===ca&&(ca={});if(h(I)||h(R))throw new Bb("fromFormat requires an input string and a format");var wa=ca,Ma=wa.locale;wa=wa.numberingSystem;Ma=yb.fromOpts({locale:void 0===Ma?null:Ma,numberingSystem:void 0===wa?null:wa,defaultToEN:!0});Ma=hb(Ma,I,R);var Oa=[Ma.result,Ma.zone,Ma.invalidReason];Ma=
Oa[0];wa=Oa[1];return(Oa=Oa[2])?P.invalid(Oa):Db(Ma,wa,ca,"format "+R,I)};P.fromString=function(I,R,ca){void 0===ca&&(ca={});return P.fromFormat(I,R,ca)};P.fromSQL=function(I,R){void 0===R&&(R={});var ca=za(I,[Dd,Fd],[Ed,Gd]);return Db(ca[0],ca[1],R,"SQL",I)};P.invalid=function(I,R){void 0===R&&(R=null);if(!I)throw new Bb("need to specify a reason the DateTime is invalid");I=I instanceof Ib?I:new Ib(I,R);if(wb.throwOnInvalid)throw new mc(I);return new P({invalid:I})};P.isDateTime=function(I){return I&&
I.isLuxonDateTime||!1};var X=P.prototype;X.get=function(I){return this[I]};X.resolvedLocaleOptions=function(I){void 0===I&&(I={});I=Qb.create(this.loc.clone(I),I).resolvedOptions(this);return{locale:I.locale,numberingSystem:I.numberingSystem,outputCalendar:I.calendar}};X.toUTC=function(I,R){void 0===I&&(I=0);void 0===R&&(R={});return this.setZone(Eb.instance(I),R)};X.toLocal=function(){return this.setZone(wb.defaultZone)};X.setZone=function(I,R){var ca=void 0===R?{}:R;R=ca.keepLocalTime;R=void 0===
R?!1:R;ca=ca.keepCalendarTime;ca=void 0===ca?!1:ca;I=Aa(I,wb.defaultZone);if(I.equals(this.zone))return this;if(I.isValid){var wa=this.ts;if(R||ca)R=I.offset(this.ts),ca=this.toObject(),wa=Pb(ca,R,I)[0];return tb(this,{ts:wa,zone:I})}return P.invalid(ub(I))};X.reconfigure=function(I){I=void 0===I?{}:I;I=this.loc.clone({locale:I.locale,numberingSystem:I.numberingSystem,outputCalendar:I.outputCalendar});return tb(this,{loc:I})};X.setLocale=function(I){return this.reconfigure({locale:I})};X.set=function(I){if(!this.isValid)return this;
I=ha(I,bc);var R=!h(I.weekYear)||!h(I.weekNumber)||!h(I.weekday),ca=!h(I.ordinal),wa=!h(I.year),Ma=!h(I.month)||!h(I.day),Oa=I.weekYear||I.weekNumber;if((wa||Ma||ca)&&Oa)throw new Tb("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Ma&&ca)throw new Tb("Can't mix ordinal dates with month/day");R?R=eb(w({},ob(this.c),I)):h(I.ordinal)?(R=w({},this.toObject(),I),h(I.day)&&(R.day=Math.min(A(R.year,R.month),R.day))):R=qb(w({},pb(this.c),I));I=Pb(R,this.o,this.zone);return tb(this,
{ts:I[0],o:I[1]})};X.plus=function(I){if(!this.isValid)return this;I=Qa(I);return tb(this,Vb(this,I))};X.minus=function(I){if(!this.isValid)return this;I=Qa(I).negate();return tb(this,Vb(this,I))};X.startOf=function(I){if(!this.isValid)return this;var R={};I=Cb.normalizeUnit(I);switch(I){case "years":R.month=1;case "quarters":case "months":R.day=1;case "weeks":case "days":R.hour=0;case "hours":R.minute=0;case "minutes":R.second=0;case "seconds":R.millisecond=0}"weeks"===I&&(R.weekday=1);"quarters"===
I&&(R.month=3*(Math.ceil(this.month/3)-1)+1);return this.set(R)};X.endOf=function(I){var R;return this.isValid?this.plus((R={},R[I]=1,R)).startOf(I).minus(1):this};X.toFormat=function(I,R){void 0===R&&(R={});return this.isValid?Qb.create(this.loc.redefaultToEN(R)).formatDateTimeFromString(this,I):"Invalid DateTime"};X.toLocaleString=function(I,R){void 0===I&&(I=gc);void 0===R&&(R={});return this.isValid?Qb.create(this.loc.clone(R),I).formatDateTime(this):"Invalid DateTime"};X.toLocaleParts=function(I){void 0===
I&&(I={});return this.isValid?Qb.create(this.loc.clone(I),I).formatDateTimeParts(this):[]};X.toISO=function(I){void 0===I&&(I={});return this.isValid?this.toISODate(I)+"T"+this.toISOTime(I):null};X.toISODate=function(I){I=(void 0===I?{}:I).format;I="basic"===(void 0===I?"extended":I)?"yyyyMMdd":"yyyy-MM-dd";9999<this.year&&(I="+"+I);return Rb(this,I)};X.toISOWeekDate=function(){return Rb(this,"kkkk-'W'WW-c")};X.toISOTime=function(I){var R=void 0===I?{}:I;I=R.suppressMilliseconds;var ca=R.suppressSeconds,
wa=R.includeOffset,Ma=R.includePrefix;R=R.format;return ac(this,{suppressSeconds:void 0===ca?!1:ca,suppressMilliseconds:void 0===I?!1:I,includeOffset:void 0===wa?!0:wa,includePrefix:void 0===Ma?!1:Ma,format:void 0===R?"extended":R})};X.toRFC2822=function(){return Rb(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)};X.toHTTP=function(){return Rb(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")};X.toSQLDate=function(){return Rb(this,"yyyy-MM-dd")};X.toSQLTime=function(I){var R=void 0===I?{}:I;I=R.includeOffset;
R=R.includeZone;return ac(this,{includeOffset:void 0===I?!0:I,includeZone:void 0===R?!1:R,spaceZone:!0})};X.toSQL=function(I){void 0===I&&(I={});return this.isValid?this.toSQLDate()+" "+this.toSQLTime(I):null};X.toString=function(){return this.isValid?this.toISO():"Invalid DateTime"};X.valueOf=function(){return this.toMillis()};X.toMillis=function(){return this.isValid?this.ts:NaN};X.toSeconds=function(){return this.isValid?this.ts/1E3:NaN};X.toJSON=function(){return this.toISO()};X.toBSON=function(){return this.toJSDate()};
X.toObject=function(I){void 0===I&&(I={});if(!this.isValid)return{};var R=w({},this.c);I.includeConfig&&(R.outputCalendar=this.outputCalendar,R.numberingSystem=this.loc.numberingSystem,R.locale=this.loc.locale);return R};X.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)};X.diff=function(I,R,ca){void 0===R&&(R="milliseconds");void 0===ca&&(ca={});if(!this.isValid||!I.isValid)return Cb.invalid("created by diffing an invalid DateTime");ca=w({locale:this.locale,numberingSystem:this.numberingSystem},
ca);var wa=(Array.isArray(R)?R:[R]).map(Cb.normalizeUnit);R=I.valueOf()>this.valueOf();I=ea(R?this:I,R?I:this,wa,ca);return R?I.negate():I};X.diffNow=function(I,R){void 0===I&&(I="milliseconds");void 0===R&&(R={});return this.diff(P.now(),I,R)};X.until=function(I){return this.isValid?kc.fromDateTimes(this,I):this};X.hasSame=function(I,R){if(!this.isValid)return!1;var ca=I.valueOf();I=this.setZone(I.zone,{keepLocalTime:!0});return I.startOf(R)<=ca&&ca<=I.endOf(R)};X.equals=function(I){return this.isValid&&
I.isValid&&this.valueOf()===I.valueOf()&&this.zone.equals(I.zone)&&this.loc.equals(I.loc)};X.toRelative=function(I){void 0===I&&(I={});if(!this.isValid)return null;var R=I.base||P.fromObject({},{zone:this.zone}),ca=I.padding?this<R?-I.padding:I.padding:0,wa="years months days hours minutes seconds".split(" "),Ma=I.unit;Array.isArray(I.unit)&&(wa=I.unit,Ma=void 0);return ec(R,this.plus(ca),w({},I,{numeric:"always",units:wa,unit:Ma}))};X.toRelativeCalendar=function(I){void 0===I&&(I={});return this.isValid?
ec(I.base||P.fromObject({},{zone:this.zone}),this,w({},I,{numeric:"auto",units:["years","months","days"],calendary:!0})):null};P.min=function(){for(var I=arguments.length,R=Array(I),ca=0;ca<I;ca++)R[ca]=arguments[ca];if(!R.every(P.isDateTime))throw new Bb("min requires all arguments be DateTimes");return x(R,function(wa){return wa.valueOf()},Math.min)};P.max=function(){for(var I=arguments.length,R=Array(I),ca=0;ca<I;ca++)R[ca]=arguments[ca];if(!R.every(P.isDateTime))throw new Bb("max requires all arguments be DateTimes");
return x(R,function(wa){return wa.valueOf()},Math.max)};P.fromFormatExplain=function(I,R,ca){void 0===ca&&(ca={});var wa=ca;ca=wa.locale;wa=wa.numberingSystem;ca=yb.fromOpts({locale:void 0===ca?null:ca,numberingSystem:void 0===wa?null:wa,defaultToEN:!0});return hb(ca,I,R)};P.fromStringExplain=function(I,R,ca){void 0===ca&&(ca={});return P.fromFormatExplain(I,R,ca)};b(P,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:
null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?
this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:
NaN}},{key:"weekYear",get:function(){return this.isValid?Sb(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Sb(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Sb(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?pb(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?lc.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?lc.months("long",{locObj:this.loc})[this.month-
1]:null}},{key:"weekdayShort",get:function(){return this.isValid?lc.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?lc.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,
{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.isUniversal:null}},{key:"isInDST",get:function(){return this.isOffsetFixed?!1:this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset}},{key:"isInLeapYear",get:function(){return F(this.year)}},{key:"daysInMonth",get:function(){return A(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?F(this.year)?366:365:NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?
G(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return gc}},{key:"DATE_MED",get:function(){return xb}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return O}},{key:"DATE_FULL",get:function(){return Ia}},{key:"DATE_HUGE",get:function(){return Ha}},{key:"TIME_SIMPLE",get:function(){return xa}},{key:"TIME_WITH_SECONDS",get:function(){return Da}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return La}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return Ja}},{key:"TIME_24_SIMPLE",get:function(){return Ga}},
{key:"TIME_24_WITH_SECONDS",get:function(){return Na}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return Sa}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return Ya}},{key:"DATETIME_SHORT",get:function(){return cb}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return Ua}},{key:"DATETIME_MED",get:function(){return ab}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return $a}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return jb}},{key:"DATETIME_FULL",get:function(){return Ab}},{key:"DATETIME_FULL_WITH_SECONDS",
get:function(){return hc}},{key:"DATETIME_HUGE",get:function(){return ic}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return jc}}]);return P}();E.DateTime=vb;E.Duration=Cb;E.FixedOffsetZone=Eb;E.IANAZone=Nb;E.Info=lc;E.Interval=kc;E.InvalidZone=rc;E.Settings=wb;E.SystemZone=Lc;E.VERSION="2.0.2";E.Zone=Xb;Object.defineProperty(E,"__esModule",{value:!0})})},"esri/geometry/ScreenPoint":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","./Point"],function(E,z,b,w,
p){E=E(p,{declaredClass:"esri.geometry.ScreenPoint",verifySR:function(){}});b("extend-esri")&&z.setObject("geometry.ScreenPoint",E,w);return E})},"esri/geometry/Rect":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./Geometry ./Point ./Extent ../srUtils".split(" "),function(E,z,b,w,p,n,l,q,f){function c(d){return new q(parseFloat(d.x),parseFloat(d.y)-parseFloat(d.height),parseFloat(d.x)+parseFloat(d.width),parseFloat(d.y),d.spatialReference)}var a=E(n,{declaredClass:"esri.geometry.Rect",
type:"rect",x:0,y:0,width:100,height:100,constructor:function(d,e,h,m,g){p.isObject(d)&&"extent"===d.type&&(e=d.ymax,h=d.getWidth(),m=d.getHeight(),g=d.spatialReference,d=d.xmin);p.isObject(d)?(p.mixin(this,d),this.spatialReference&&(this.spatialReference=f.createSpatialReference(this.spatialReference))):(this.x=d,this.y=e,this.width=h,this.height=m,this.spatialReference=g);this.verifySR()},getCenter:function(){return new l(this.x+this.width/2,this.y+this.height/2,this.spatialReference)},offset:function(d,
e){return new a(this.x+d,this.y+e,this.width,this.height,this.spatialReference)},intersects:function(d){return d.x+d.width<=this.x||d.y+d.height<=this.y||d.y>=this.y+this.height||d.x>=this.x+this.width?!1:!0},getExtent:function(){return c(this)},update:function(d,e,h,m,g){this.x=d;this.y=e;this.width=h;this.height=m;this.spatialReference=g;this.clearCache();return this}});b("extend-esri")&&(z.setObject("geometry.Rect",a,w),w.geometry._rectToExtent=c,w.geometry._extentToRect=function(d){return new a(d)});
return a})},"esri/geometry/scaleUtils":function(){define(["dojo/_base/lang","dojo/has","../kernel","../config","../WKIDUnitConversion"],function(E,z,b,w,p){function n(d,e,h){return d&&e?d.getWidth()/e*(h||q)*39.37*f.screenDPI:0}function l(d,e,h,m,g){return d.expand(m*e/(39.37*((g?h:c.values[c[h]])||q)*f.screenDPI)/d.getWidth())}var q=6370997*Math.PI/180,f=w.defaults,c=p,a={getUnitValueForSR:function(d){return this.getUnitValue(d)||q},getUnitValue:function(d){if(d)if("object"===typeof d){var e=d.wkid;
var h=d.wkt}else"number"===typeof d?e=d:"string"===typeof d&&(h=d);if(e)var m=c.values[c[e]];else h&&-1!==h.search(/^PROJCS/i)&&(d=/UNIT\[([^\]]+)\]\]$/i.exec(h))&&d[1]&&(m=parseFloat(d[1].split(",")[1]));return m},getScale:function(d,e,h){if(1<arguments.length&&null!=e&&!e.declaredClass){var m=d;var g=e;e=null;var k=a.getUnitValue(h)}else m=e||d.extent,g=d.width,k=a.getUnitValue(m&&m.spatialReference);return n(m,g,k)},getExtentForScale:function(d,e,h){return l(h||d.extent,d.width,a.getUnitValue(d.spatialReference),
e,!0)}};z("extend-esri")&&(E.mixin(E.getObject("geometry",!0,b),a),b.geometry._getScale=n,b.geometry._getExtentForScale=l);return a})},"esri/WKIDUnitConversion":function(){define(["dojo/has","./kernel"],function(E,z){var b,w={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,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 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:14,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,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766: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:15,102069:16,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,102759:1,102760:1,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(b=2E3;2045>=b;b++)w[b]=0;for(b=2056;2065>=b;b++)w[b]=0;for(b=2067;2135>=b;b++)w[b]=0;for(b=2137;2154>=b;b++)w[b]=0;for(b=2161;2170>=b;b++)w[b]=0;for(b=2172;2193>=b;b++)w[b]=0;for(b=2195;2198>=b;b++)w[b]=0;for(b=2200;2203>=b;b++)w[b]=0;for(b=2205;2217>=b;b++)w[b]=0;for(b=2222;2224>=b;b++)w[b]=1;for(b=2225;2250>=b;b++)w[b]=2;for(b=2251;2253>=b;b++)w[b]=1;for(b=2257;2264>=b;b++)w[b]=2;for(b=2274;2279>=b;b++)w[b]=2;for(b=2280;2282>=b;b++)w[b]=
1;for(b=2283;2289>=b;b++)w[b]=2;for(b=2290;2292>=b;b++)w[b]=0;for(b=2308;2313>=b;b++)w[b]=0;for(b=2315;2491>=b;b++)w[b]=0;for(b=2494;2866>=b;b++)w[b]=0;for(b=2867;2869>=b;b++)w[b]=1;for(b=2870;2888>=b;b++)w[b]=2;for(b=2891;2895>=b;b++)w[b]=2;for(b=2896;2898>=b;b++)w[b]=1;for(b=2902;2908>=b;b++)w[b]=2;for(b=2915;2920>=b;b++)w[b]=2;for(b=2921;2923>=b;b++)w[b]=1;for(b=2924;2930>=b;b++)w[b]=2;for(b=2931;2962>=b;b++)w[b]=0;for(b=2964;2968>=b;b++)w[b]=2;for(b=2969;2973>=b;b++)w[b]=0;for(b=2975;2991>=b;b++)w[b]=
0;for(b=2995;3051>=b;b++)w[b]=0;for(b=3054;3079>=b;b++)w[b]=0;for(b=3081;3088>=b;b++)w[b]=0;for(b=3092;3101>=b;b++)w[b]=0;for(b=3106;3138>=b;b++)w[b]=0;for(b=3146;3151>=b;b++)w[b]=0;for(b=3153;3166>=b;b++)w[b]=0;for(b=3168;3172>=b;b++)w[b]=0;for(b=3174;3203>=b;b++)w[b]=0;for(b=3294;3358>=b;b++)w[b]=0;for(b=3367;3403>=b;b++)w[b]=0;for(b=3408;3416>=b;b++)w[b]=0;for(b=3417;3438>=b;b++)w[b]=2;for(b=3441;3446>=b;b++)w[b]=2;for(b=3447;3450>=b;b++)w[b]=0;for(b=3451;3459>=b;b++)w[b]=2;for(b=3460;3478>=b;b++)w[b]=
0;for(b=3554;3559>=b;b++)w[b]=0;for(b=3560;3570>=b;b++)w[b]=2;for(b=3571;3581>=b;b++)w[b]=0;for(b=3594;3597>=b;b++)w[b]=0;for(b=3601;3604>=b;b++)w[b]=0;for(b=3637;3639>=b;b++)w[b]=0;for(b=3665;3667>=b;b++)w[b]=0;for(b=3693;3695>=b;b++)w[b]=0;for(b=3701;3727>=b;b++)w[b]=0;for(b=3728;3739>=b;b++)w[b]=2;for(b=3740;3751>=b;b++)w[b]=0;for(b=3753;3760>=b;b++)w[b]=2;for(b=3761;3773>=b;b++)w[b]=0;for(b=3775;3777>=b;b++)w[b]=0;for(b=3779;3781>=b;b++)w[b]=0;for(b=3783;3785>=b;b++)w[b]=0;for(b=3788;3791>=b;b++)w[b]=
0;for(b=3797;3802>=b;b++)w[b]=0;for(b=3814;3816>=b;b++)w[b]=0;for(b=3825;3829>=b;b++)w[b]=0;for(b=3832;3841>=b;b++)w[b]=0;for(b=3844;3852>=b;b++)w[b]=0;for(b=3873;3885>=b;b++)w[b]=0;for(b=3890;3893>=b;b++)w[b]=0;for(b=3907;3912>=b;b++)w[b]=0;for(b=3942;3950>=b;b++)w[b]=0;for(b=3968;3970>=b;b++)w[b]=0;for(b=3973;3976>=b;b++)w[b]=0;for(b=3986;3989>=b;b++)w[b]=0;for(b=3994;3997>=b;b++)w[b]=0;for(b=4048;4051>=b;b++)w[b]=0;for(b=4056;4063>=b;b++)w[b]=0;for(b=4093;4096>=b;b++)w[b]=0;for(b=4390;4398>=b;b++)w[b]=
0;for(b=4399;4413>=b;b++)w[b]=2;for(b=4418;4433>=b;b++)w[b]=2;for(b=4455;4457>=b;b++)w[b]=2;for(b=4484;4489>=b;b++)w[b]=0;for(b=4491;4554>=b;b++)w[b]=0;for(b=4568;4589>=b;b++)w[b]=0;for(b=4652;4656>=b;b++)w[b]=0;for(b=4766;4800>=b;b++)w[b]=0;for(b=5014;5016>=b;b++)w[b]=0;for(b=5069;5072>=b;b++)w[b]=0;for(b=5105;5130>=b;b++)w[b]=0;for(b=5173;5188>=b;b++)w[b]=0;for(b=5253;5259>=b;b++)w[b]=0;for(b=5269;5275>=b;b++)w[b]=0;for(b=5292;5311>=b;b++)w[b]=0;for(b=5329;5331>=b;b++)w[b]=0;for(b=5343;5349>=b;b++)w[b]=
0;for(b=5355;5357>=b;b++)w[b]=0;for(b=5387;5389>=b;b++)w[b]=0;for(b=5459;5463>=b;b++)w[b]=0;for(b=5479;5482>=b;b++)w[b]=0;for(b=5518;5520>=b;b++)w[b]=0;for(b=5530;5539>=b;b++)w[b]=0;for(b=5550;5552>=b;b++)w[b]=0;for(b=5562;5583>=b;b++)w[b]=0;for(b=5623;5625>=b;b++)w[b]=2;for(b=5631;5639>=b;b++)w[b]=0;for(b=5649;5653>=b;b++)w[b]=0;for(b=5663;5680>=b;b++)w[b]=0;for(b=5682;5685>=b;b++)w[b]=0;for(b=5875;5877>=b;b++)w[b]=0;for(b=5896;5899>=b;b++)w[b]=0;for(b=5921;5940>=b;b++)w[b]=0;for(b=6050;6125>=b;b++)w[b]=
0;for(b=6244;6275>=b;b++)w[b]=0;for(b=6328;6348>=b;b++)w[b]=0;for(b=6350;6356>=b;b++)w[b]=0;for(b=6366;6372>=b;b++)w[b]=0;for(b=6381;6387>=b;b++)w[b]=0;for(b=6393;6404>=b;b++)w[b]=0;for(b=6480;6483>=b;b++)w[b]=0;for(b=6511;6514>=b;b++)w[b]=0;for(b=6579;6581>=b;b++)w[b]=0;for(b=6619;6624>=b;b++)w[b]=0;for(b=6625;6627>=b;b++)w[b]=2;for(b=6628;6632>=b;b++)w[b]=0;for(b=6634;6637>=b;b++)w[b]=0;for(b=6669;6692>=b;b++)w[b]=0;for(b=6707;6709>=b;b++)w[b]=0;for(b=6720;6723>=b;b++)w[b]=0;for(b=6732;6738>=b;b++)w[b]=
0;for(b=6931;6933>=b;b++)w[b]=0;for(b=6956;6959>=b;b++)w[b]=0;for(b=7005;7007>=b;b++)w[b]=0;for(b=7057;7070>=b;b++)w[b]=2;for(b=7074;7082>=b;b++)w[b]=0;for(b=7109;7118>=b;b++)w[b]=0;for(b=7119;7127>=b;b++)w[b]=1;for(b=7374;7376>=b;b++)w[b]=0;for(b=7528;7586>=b;b++)w[b]=0;for(b=7587;7645>=b;b++)w[b]=2;for(b=7692;7696>=b;b++)w[b]=0;for(b=7755;7787>=b;b++)w[b]=0;for(b=7791;7795>=b;b++)w[b]=0;for(b=7799;7801>=b;b++)w[b]=0;for(b=7803;7805>=b;b++)w[b]=0;for(b=7825;7831>=b;b++)w[b]=0;for(b=7845;7859>=b;b++)w[b]=
0;for(b=8013;8032>=b;b++)w[b]=0;for(b=8065;8068>=b;b++)w[b]=1;for(b=8518;8529>=b;b++)w[b]=2;for(b=8533;8536>=b;b++)w[b]=2;for(b=8538;8540>=b;b++)w[b]=2;for(b=8677;8679>=b;b++)w[b]=0;for(b=8836;8840>=b;b++)w[b]=0;for(b=8857;8859>=b;b++)w[b]=0;for(b=8908;8910>=b;b++)w[b]=0;for(b=9154;9159>=b;b++)w[b]=0;for(b=9205;9218>=b;b++)w[b]=0;for(b=9271;9273>=b;b++)w[b]=0;for(b=9295;9297>=b;b++)w[b]=0;for(b=9356;9360>=b;b++)w[b]=0;for(b=9404;9407>=b;b++)w[b]=0;for(b=9476;9482>=b;b++)w[b]=0;for(b=9487;9494>=b;b++)w[b]=
0;for(b=9697;9699>=b;b++)w[b]=0;for(b=20002;20032>=b;b++)w[b]=0;for(b=20062;20092>=b;b++)w[b]=0;for(b=20135;20138>=b;b++)w[b]=0;for(b=20248;20258>=b;b++)w[b]=0;for(b=20348;20358>=b;b++)w[b]=0;for(b=20436;20440>=b;b++)w[b]=0;for(b=20822;20824>=b;b++)w[b]=0;for(b=20904;20932>=b;b++)w[b]=0;for(b=20934;20936>=b;b++)w[b]=0;for(b=21004;21032>=b;b++)w[b]=0;for(b=21035;21037>=b;b++)w[b]=0;for(b=21095;21097>=b;b++)w[b]=0;for(b=21148;21150>=b;b++)w[b]=0;for(b=21207;21264>=b;b++)w[b]=0;for(b=21307;21364>=b;b++)w[b]=
0;for(b=21413;21423>=b;b++)w[b]=0;for(b=21453;21463>=b;b++)w[b]=0;for(b=21473;21483>=b;b++)w[b]=0;for(b=21780;21782>=b;b++)w[b]=0;for(b=21891;21894>=b;b++)w[b]=0;for(b=21896;21899>=b;b++)w[b]=0;for(b=22171;22177>=b;b++)w[b]=0;for(b=22181;22187>=b;b++)w[b]=0;for(b=22191;22197>=b;b++)w[b]=0;for(b=22234;22236>=b;b++)w[b]=0;for(b=22521;22525>=b;b++)w[b]=0;for(b=22991;22994>=b;b++)w[b]=0;for(b=23028;23038>=b;b++)w[b]=0;for(b=23830;23853>=b;b++)w[b]=0;for(b=23866;23872>=b;b++)w[b]=0;for(b=23877;23884>=
b;b++)w[b]=0;for(b=23886;23894>=b;b++)w[b]=0;for(b=23946;23948>=b;b++)w[b]=0;for(b=24311;24313>=b;b++)w[b]=0;for(b=24342;24347>=b;b++)w[b]=0;for(b=24370;24374>=b;b++)w[b]=10;for(b=24375;24381>=b;b++)w[b]=0;for(b=24718;24721>=b;b++)w[b]=0;for(b=24817;24821>=b;b++)w[b]=0;for(b=24877;24882>=b;b++)w[b]=0;for(b=24891;24893>=b;b++)w[b]=0;for(b=25391;25395>=b;b++)w[b]=0;for(b=25828;25838>=b;b++)w[b]=0;for(b=26191;26195>=b;b++)w[b]=0;for(b=26391;26393>=b;b++)w[b]=0;for(b=26701;26722>=b;b++)w[b]=0;for(b=26729;26799>=
b;b++)w[b]=2;for(b=26801;26803>=b;b++)w[b]=2;for(b=26811;26813>=b;b++)w[b]=2;for(b=26847;26870>=b;b++)w[b]=2;for(b=26891;26899>=b;b++)w[b]=0;for(b=26901;26923>=b;b++)w[b]=0;for(b=26929;26946>=b;b++)w[b]=0;for(b=26948;26998>=b;b++)w[b]=0;for(b=27037;27040>=b;b++)w[b]=0;for(b=27205;27232>=b;b++)w[b]=0;for(b=27258;27260>=b;b++)w[b]=0;for(b=27391;27398>=b;b++)w[b]=0;for(b=27561;27564>=b;b++)w[b]=0;for(b=27571;27574>=b;b++)w[b]=0;for(b=27581;27584>=b;b++)w[b]=0;for(b=27591;27594>=b;b++)w[b]=0;for(b=28191;28193>=
b;b++)w[b]=0;for(b=28348;28358>=b;b++)w[b]=0;for(b=28402;28432>=b;b++)w[b]=0;for(b=28462;28492>=b;b++)w[b]=0;for(b=29118;29122>=b;b++)w[b]=0;for(b=29168;29172>=b;b++)w[b]=0;for(b=29177;29185>=b;b++)w[b]=0;for(b=29187;29195>=b;b++)w[b]=0;for(b=29900;29903>=b;b++)w[b]=0;for(b=30161;30179>=b;b++)w[b]=0;for(b=30491;30494>=b;b++)w[b]=0;for(b=30729;30732>=b;b++)w[b]=0;for(b=31251;31259>=b;b++)w[b]=0;for(b=31265;31268>=b;b++)w[b]=0;for(b=31275;31279>=b;b++)w[b]=0;for(b=31281;31297>=b;b++)w[b]=0;for(b=31461;31469>=
b;b++)w[b]=0;for(b=31491;31495>=b;b++)w[b]=0;for(b=31917;31922>=b;b++)w[b]=0;for(b=31965;32E3>=b;b++)w[b]=0;for(b=32001;32003>=b;b++)w[b]=2;for(b=32005;32031>=b;b++)w[b]=2;for(b=32033;32060>=b;b++)w[b]=2;for(b=32064;32067>=b;b++)w[b]=2;for(b=32074;32077>=b;b++)w[b]=2;for(b=32081;32086>=b;b++)w[b]=0;for(b=32107;32130>=b;b++)w[b]=0;for(b=32133;32158>=b;b++)w[b]=0;for(b=32164;32167>=b;b++)w[b]=2;for(b=32180;32199>=b;b++)w[b]=0;for(b=32201;32260>=b;b++)w[b]=0;for(b=32301;32360>=b;b++)w[b]=0;for(b=32601;32662>=
b;b++)w[b]=0;for(b=32664;32667>=b;b++)w[b]=2;for(b=32701;32761>=b;b++)w[b]=0;for(b=53001;53004>=b;b++)w[b]=0;for(b=53008;53019>=b;b++)w[b]=0;for(b=53021;53032>=b;b++)w[b]=0;for(b=53034;53037>=b;b++)w[b]=0;for(b=53042;53046>=b;b++)w[b]=0;for(b=53074;53080>=b;b++)w[b]=0;for(b=54001;54004>=b;b++)w[b]=0;for(b=54008;54019>=b;b++)w[b]=0;for(b=54021;54032>=b;b++)w[b]=0;for(b=54034;54037>=b;b++)w[b]=0;for(b=54042;54046>=b;b++)w[b]=0;for(b=54048;54053>=b;b++)w[b]=0;for(b=54074;54080>=b;b++)w[b]=0;for(b=54098;54101>=
b;b++)w[b]=0;for(b=102001;102040>=b;b++)w[b]=0;for(b=102042;102063>=b;b++)w[b]=0;for(b=102065;102067>=b;b++)w[b]=0;for(b=102070;102117>=b;b++)w[b]=0;for(b=102122;102216>=b;b++)w[b]=0;for(b=102221;102377>=b;b++)w[b]=0;for(b=102382;102388>=b;b++)w[b]=0;for(b=102389;102398>=b;b++)w[b]=2;for(b=102399;102444>=b;b++)w[b]=0;for(b=102445;102447>=b;b++)w[b]=2;for(b=102448;102458>=b;b++)w[b]=0;for(b=102459;102468>=b;b++)w[b]=2;for(b=102469;102499>=b;b++)w[b]=0;for(b=102500;102519>=b;b++)w[b]=1;for(b=102520;102524>=
b;b++)w[b]=0;for(b=102525;102529>=b;b++)w[b]=2;for(b=102530;102588>=b;b++)w[b]=0;for(b=102590;102598>=b;b++)w[b]=0;for(b=102601;102603>=b;b++)w[b]=0;for(b=102605;102628>=b;b++)w[b]=0;for(b=102629;102646>=b;b++)w[b]=2;for(b=102648;102700>=b;b++)w[b]=2;for(b=102701;102703>=b;b++)w[b]=0;for(b=102707;102730>=b;b++)w[b]=2;for(b=102733;102758>=b;b++)w[b]=2;for(b=102767;102900>=b;b++)w[b]=0;for(b=102901;102933>=b;b++)w[b]=2;for(b=102934;102950>=b;b++)w[b]=13;for(b=102951;102960>=b;b++)w[b]=0;for(b=102965;102969>=
b;b++)w[b]=0;for(b=102971;102973>=b;b++)w[b]=0;for(b=102975;102989>=b;b++)w[b]=0;for(b=102990;102992>=b;b++)w[b]=1;for(b=102997;103002>=b;b++)w[b]=0;for(b=103003;103008>=b;b++)w[b]=2;for(b=103009;103011>=b;b++)w[b]=0;for(b=103012;103014>=b;b++)w[b]=2;for(b=103019;103021>=b;b++)w[b]=0;for(b=103022;103024>=b;b++)w[b]=2;for(b=103029;103031>=b;b++)w[b]=0;for(b=103032;103034>=b;b++)w[b]=2;for(b=103065;103068>=b;b++)w[b]=0;for(b=103074;103076>=b;b++)w[b]=0;for(b=103077;103079>=b;b++)w[b]=1;for(b=103080;103082>=
b;b++)w[b]=0;for(b=103083;103085>=b;b++)w[b]=2;for(b=103090;103093>=b;b++)w[b]=0;for(b=103097;103099>=b;b++)w[b]=0;for(b=103100;103102>=b;b++)w[b]=2;for(b=103107;103109>=b;b++)w[b]=0;for(b=103110;103112>=b;b++)w[b]=2;for(b=103113;103116>=b;b++)w[b]=0;for(b=103117;103120>=b;b++)w[b]=2;for(b=103153;103157>=b;b++)w[b]=0;for(b=103158;103162>=b;b++)w[b]=2;for(b=103163;103165>=b;b++)w[b]=0;for(b=103166;103168>=b;b++)w[b]=1;for(b=103169;103171>=b;b++)w[b]=2;for(b=103186;103188>=b;b++)w[b]=0;for(b=103189;103191>=
b;b++)w[b]=2;for(b=103192;103195>=b;b++)w[b]=0;for(b=103196;103199>=b;b++)w[b]=2;for(b=103200;103224>=b;b++)w[b]=0;for(b=103225;103227>=b;b++)w[b]=1;for(b=103232;103237>=b;b++)w[b]=0;for(b=103238;103243>=b;b++)w[b]=2;for(b=103244;103246>=b;b++)w[b]=0;for(b=103247;103249>=b;b++)w[b]=2;for(b=103254;103256>=b;b++)w[b]=0;for(b=103257;103259>=b;b++)w[b]=2;for(b=103264;103266>=b;b++)w[b]=0;for(b=103267;103269>=b;b++)w[b]=2;for(b=103300;103375>=b;b++)w[b]=0;for(b=103381;103383>=b;b++)w[b]=0;for(b=103384;103386>=
b;b++)w[b]=1;for(b=103387;103389>=b;b++)w[b]=0;for(b=103390;103392>=b;b++)w[b]=2;for(b=103397;103399>=b;b++)w[b]=0;for(b=103400;103471>=b;b++)w[b]=2;for(b=103476;103478>=b;b++)w[b]=0;for(b=103479;103481>=b;b++)w[b]=2;for(b=103486;103488>=b;b++)w[b]=0;for(b=103489;103491>=b;b++)w[b]=2;for(b=103492;103495>=b;b++)w[b]=0;for(b=103496;103499>=b;b++)w[b]=2;for(b=103528;103543>=b;b++)w[b]=0;for(b=103544;103548>=b;b++)w[b]=2;for(b=103549;103551>=b;b++)w[b]=0;for(b=103552;103554>=b;b++)w[b]=1;for(b=103555;103557>=
b;b++)w[b]=2;for(b=103558;103560>=b;b++)w[b]=0;for(b=103571;103573>=b;b++)w[b]=0;for(b=103574;103576>=b;b++)w[b]=2;for(b=103577;103580>=b;b++)w[b]=0;for(b=103581;103583>=b;b++)w[b]=2;for(b=103595;103694>=b;b++)w[b]=0;for(b=103696;103699>=b;b++)w[b]=0;for(b=103700;103793>=b;b++)w[b]=2;for(b=103794;103872>=b;b++)w[b]=0;for(b=103900;103971>=b;b++)w[b]=2;E("extend-esri")&&(z.WKIDUnitConversion=w);return w})},"esri/geometry/screenUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/sniff ../kernel ./Point ./ScreenPoint ./Polyline ./Polygon ./Multipoint ./Extent".split(" "),
function(E,z,b,w,p,n,l,q,f,c){var a=function(){return 9>b("ie")?function(e,h,m,g,k,x,v,y,u){var t=[],r=Math.round,B,C=v.length,F;for(B=0;B<C;B++){var A=v[B];var D=y?y(A[0][0],A[0][1],u):A[0];if(1<(F=A.length)){var G=r((D[0]-e)*m+k);var H=r((h-D[1])*g+x);D=y?y(A[1][0],A[1][1],u):A[1];var L=r((D[0]-e)*m+k);D=r((h-D[1])*g+x);t.push("M",G+","+H,"L",L+","+D);for(L=2;L<F;L++)D=y?y(A[L][0],A[L][1],u):A[L],G=r((D[0]-e)*m+k),H=r((h-D[1])*g+x),t.push(G+","+H)}else G=r((D[0]-e)*m+k),H=r((h-D[1])*g+x),t.push("M",
G+","+H)}return t}:function(e,h,m,g,k,x,v,y,u,t){var r=[],B,C,F=Math.round;var A=0;for(B=v?v.length:0;A<B;A++){var D=v[A];r.push("M");var G=0;for(C=D?D.length:0;G<C;G++){var H=y?y(D[G][0],D[G][1],u):D[G];r.push(F((H[0]-e)*m+k)+","+F((h-H[1])*g+x))}t||r.push("Z")}return r}}(),d={toScreenPoint:function(e,h,m,g,k){var x=e.spatialReference,v=g.spatialReference,y=g.x;g=g.y;x&&v&&!x.equals(v)&&x._canProject(v)&&(x=x.isWebMercator()?p.lngLatToXY(y,g):p.xyToLngLat(y,g,!0),y=x[0],g=x[1]);y=(y-e.xmin)*(h/e.getWidth());
g=(e.ymax-g)*(m/e.getHeight());k||(y=Math.round(y),g=Math.round(g));return new n(y,g)},toScreenGeometry:function(e,h,m,g){var k=e.xmin,x=e.ymax,v=h/e.getWidth(),y=m/e.getHeight(),u=E.forEach,t=Math.round;if(g instanceof p)return new p(t((g.x-k)*v),t((x-g.y)*y));if(g instanceof f){e=new f;var r=e.points;u(g.points,function(D,G){r[G]=[t((D[0]-k)*v),t((x-D[1])*y)]});return e}if(g instanceof c)return new c(t((g.xmin-k)*v),t((x-g.ymin)*y),t((g.xmax-k)*v),t((x-g.ymax)*v));if(g instanceof l){e=new l;var B=
e.paths,C;u(g.paths,function(D,G){C=B[G]=[];u(D,function(H,L){C[L]=[t((H[0]-k)*v),t((x-H[1])*y)]})});return e}if(g instanceof q){e=new q;var F=e.rings,A;u(g.rings,function(D,G){A=F[G]=[];u(D,function(H,L){A[L]=[t((H[0]-k)*v),t((x-H[1])*y)]})});return e}},_toScreenPath:function(e,h,m,g,k,x){var v=g instanceof l,y=e.spatialReference,u=g.spatialReference;if(y&&u&&!y.equals(u)&&y._canProject(u))if(y.isWebMercator())var t=p.lngLatToXY;else{t=p.xyToLngLat;var r=!0}return a(e.xmin,e.ymax,h/e.getWidth(),
m/e.getHeight(),k,x,v?g.paths:g.rings,t,r,v)},toMapPoint:function(e,h,m,g){return new p(e.xmin+g.x/(h/e.getWidth()),e.ymax-g.y/(m/e.getHeight()),e.spatialReference)},toMapGeometry:function(e,h,m,g){var k=e.xmin,x=e.ymax,v=e.spatialReference,y=h/e.getWidth(),u=m/e.getHeight(),t=E.forEach;if(g instanceof p)return new p(k+g.x/y,x-g.y/u,v);if(g instanceof f){e=new f(v);var r=e.points;t(g.points,function(D,G){r[G]=[k+D[0]/y,x-D[1]/u]});return e}if(g instanceof c)return new c(k+g.xmin/y,x-g.ymin/u,k+g.xmax/
y,x-g.ymax/u,v);if(g instanceof l){e=new l(v);var B=e.paths,C;t(g.paths,function(D,G){C=B[G]=[];t(D,function(H,L){C[L]=[k+H[0]/y,x-H[1]/u]})});return e}if(g instanceof q){e=new q(v);var F=e.rings,A;t(g.rings,function(D,G){A=F[G]=[];t(D,function(H,L){A[L]=[k+H[0]/y,x-H[1]/u]})});return e}}};b("extend-esri")&&z.mixin(z.getObject("geometry",!0,w),d);return d})},"esri/layers/GraphicsLayer":function(){define("require dojo/_base/declare dojo/_base/Deferred dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/_base/window dojo/dom-attr dojo/dom-construct dojo/dom-style dojo/dom dojox/gfx dojox/gfx/matrix ./gfxSniff!esri-svg?dojox/gfx/filters ./layer ./support/webglUtils ./support/WebGLSurface ../kernel ../lang ../sniff ../Color ../domUtils ../symbols/MarkerSymbol ../symbols/SimpleMarkerSymbol ../symbols/utils ../geometry/Point ../geometry/ScreenPoint ../geometry/Extent ../geometry/mathUtils ../geometry/screenUtils ../PluginTarget ./gfxSniff!esri-svg?dojox/gfx/svgext".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y,u,t,r,B,C,F,A,D,G,H,L){var aa=-1!==d.renderer.toLowerCase().indexOf("svg"),da=-1!==d.renderer.toLowerCase().indexOf("canvas"),ha=da?"canvas-2d":d.renderer,ia=9>y("ie");l=10===y("ie");var ba=void 0===y("ie")&&7==y("trident"),ja=l||ba,pa=y("esri-touch"),Ca=!!y("chrome"),la=g.isWebGLEnabled(),ua=aa&&y("esri-will-change"),Aa=la||da;g=z(null,{declaredClass:"esri.layers._GraphicsContainer",_setMap:function(M,Y){var ka=this._connects=[];this._map=M;this._useWillChange=
this._useGlobalTransform="css-transforms"===M.navigationMode&&ua;if(Aa){var N=f.create("div",{style:{position:"absolute",overflow:"visible"}},Y);this._surface={getEventSource:function(){return N}};da&&(ka.push(w.connect(N,"onmousedown",this,this._canvasDownHandler)),ka.push(w.connect(N,"onmouseup",this,this._canvasUpHandler)),ka.push(w.connect(N,"onclick",this,this._canvasClickHandler)));la&&(this._webglSurface=new k({map:M,node:N}))}else N=(this._surface=d.createSurface(Y,M.width,M.height)).getEventSource(),
this._useWillChange&&c.set(N,"will-change","transform"),c.set(N=ia?N.parentNode:N,{overflow:"visible",position:"absolute"});ka.push(w.connect(M,"onResize",this,"_onResizeHandler"));this._useGlobalTransform&&(ka.push(w.connect(M,"onPan",this,"_onPanHandler")),ka.push(w.connect(M,"onPanEnd",this,"_onPanEndHandler")),ka.push(w.connect(M,"onExtentChange",this,"_onExtentChangeHandler")));return N},_reorderLayer:function(M,Y,ka){Y=Y.getEventSource();Aa&&"svg"===M.surfaceType&&(Y=Y.parentNode);f.place(Y,
this._surface.getEventSource(),ka)},_onPanHandler:function(M,Y){var ka=this._map.__visibleRect;M=ka.x+Y.x;Y=ka.y+Y.y;this._panDx=M;this._panDy=Y;Aa||c.set(this._surface.getEventSource(),x._css.names.transform,x._css.translate(M,Y))},_onPanEndHandler:function(M,Y){Y=this._map.__visibleRect;M=Y.x;Y=Y.y;this._panDx=M;this._panDy=Y;Aa||c.set(this._surface.getEventSource(),x._css.names.transform,x._css.translate(M,Y))},_onExtentChangeHandler:function(M,Y,ka,N){ka&&(this._panDy=this._panDx=0,Aa||c.set(this._surface.getEventSource(),
x._css.names.transform,x._css.translate(0,0)))},_getTransform:function(){return{dx:this._panDx||0,dy:this._panDy||0}},_onResizeHandler:function(M,Y,ka){M=this._surface.getEventSource();var N=this._map,Z;ia&&c.set(M=M.parentNode,{width:Y+"px",height:ka+"px",clip:"rect(0px "+Y+"px "+ka+"px 0px)"});q.set(M,"width",Y);q.set(M,"height",ka);this._surface.declaredClass||n.forEach(M.childNodes,function(na){q.set(na,"width",Y);q.set(na,"height",ka)});N.loaded&&(N.graphics.suspended||(N.graphics._resized=!0),
n.forEach(N.graphicsLayerIds,function(na){Z=N.getLayer(na);Z.suspended||(Z._resized=!0,Z._childLayer&&(Z._childLayer._resized=!0));Z._updateSVGFilters(null,null,Y,ka)}),N.graphics._updateSVGFilters(null,null,Y,ka),N._labels&&N._labels._updateSVGFilters(null,null,Y,ka))},_cleanUp:function(){n.forEach(this._connects,w.disconnect,w);this._map=this._surface=null},_processEvent:function(M){var Y=this._map;M.screenPoint=new A(M.pageX-Y.position.x,M.pageY-Y.position.y);M.mapPoint=Y.toMap(M.screenPoint)},
_canvasDownHandler:function(M){this._processEvent(M);this._downPt=M.screenPoint.x+","+M.screenPoint.y},_canvasUpHandler:function(M){this._processEvent(M);this._upPt=M.screenPoint.x+","+M.screenPoint.y},_tolerance:15,_isPrimaryMatch:function(M,Y,ka,N){if(!M.visible||!Y)return!1;var Z=Y.getTransformedBoundingBox();if(Z){var na=new D(Z[0].x,Z[0].y,Z[2].x,Z[2].y);delete na.spatialReference;return pa?na.intersects(ka):na.contains(N)}return n.some(Y.children||[],function(za){Z=za.getTransformedBoundingBox();
na=new D(Z[0].x,Z[0].y,Z[2].x,Z[2].y);delete na.spatialReference;return pa?na.intersects(ka):na.contains(N)})},_canvasClickHandler:function(M){if(this._downPt&&this._upPt&&this._downPt===this._upPt){this._processEvent(M);var Y=this._map,ka=n.map(Y.graphicsLayerIds,function(ra){return Y.getLayer(ra)});ka.push(Y.graphics);ka.reverse();ka=n.filter(ka,function(ra){return ra.loaded&&!ra.hasWebGLSurface()&&ra._mouseEvents&&!ra.suspended&&(!v.isDefined(ra.opacity)||0<ra.opacity)});var N=M.screenPoint,Z=
this._tolerance,na=N.x-Z,za=N.y+Z,va=N.x+Z;Z=N.y-Z;var S=new D(na,Z,va,za);na=Y.toMap(new A(na,za));va=Y.toMap(new A(va,Z));za=na.spatialReference._getInfo();var U=new D(D.prototype._normalizeX(na.x,za).x,na.y,D.prototype._normalizeX(va.x,za).x,va.y,na.spatialReference),ma;delete S.spatialReference;n.some(ka,function(ra){ra=n.filter(ra.graphics,function(V){return this._isPrimaryMatch(V,V.getDojoShape(),S,N)||!(!V._bgShape||!this._isPrimaryMatch(V,V._bgShape,S,N))},this);ra.reverse();if(0<ra.length){var sa;
n.some(ra,function(V){return V.geometry&&U.intersects(V.geometry)?(sa=V,!0):!1});if(sa)return ma=sa,!0}return!1},this);ma&&(ka=ma.getLayer())&&(M.graphic=ma,ka.onClick(M))}}});m=z(m,{declaredClass:"esri.layers._GraphicsLayer",managedSuspension:!0,surfaceType:ha,webglEnabled:la,renderer:null,_eventMap:{"graphic-add":["graphic"],"graphic-remove":["graphic"],"renderer-change":["renderer"]},_suspendGraphics:!1,constructor:function(M,Y){M=M||{};if(p.isString(M)||p.isObject(M)&&(M.layerDefinition||M.query))M=
Y;this._params=p.mixin({displayOnPan:!0,drawMode:!0,styling:!0},M);Y=this._params.dataAttributes;"string"===typeof Y&&(Y=[Y]);this.styling=aa?this._params.styling:!0;this.dataAttributes=Y;this.infoTemplate=M&&M.infoTemplate;this.graphics=[];this._draw=p.hitch(this,this._draw);this._refresh=p.hitch(this,this._refresh);this._acquireSVGMarker=p.hitch(this,this._acquireSVGMarker);this._evalSurfaceType=p.hitch(this,this._evalSurfaceType);this._setSurfaceType=p.hitch(this,this._setSurfaceType);this.setWebGLEnabled(null!=
this._params.webglEnabled?this._params.webglEnabled:this.webglEnabled);this.registerConnectEvents()},getNode:function(){return this._div&&this._div.getEventSource()},setDrawMode:function(M){this._params.drawMode=M},suspendGraphics:function(M){this._suspendGraphics=M;n.forEach(this.graphics,function(Y){Y._suspended=M})},setWebGLEnabled:function(M){var Y=this.webglEnabled;this.webglEnabled=(M||!1)&&la;Y!==this.webglEnabled&&(this._evalSurfaceType(),this.onWebGLEnabledChange())},hasWebGLSurface:function(){return"webgl"===
this.surfaceType},_getSurfaceType:function(M){return M&&"webgl"===M.surfaceType?"webgl":ha},_evalSurfaceType:function(M){la&&(M?this._setSurfaceType():null==this._evalSurfaceTimerHandle&&(this._evalSurfaceTimerHandle=setTimeout(this._setSurfaceType,0)))},_hasPendingSurfaceEval:function(){return!!this._evalSurfaceTimerHandle},_setSurfaceType:function(){clearTimeout(this._evalSurfaceTimerHandle);this._evalSurfaceTimerHandle=null;var M=this._canUseWebGLSurface()?"webgl":ha;this.surfaceType!==M?(this.surfaceType=
M,this._handleSurfaceChange(),this.onSurfaceChange()):this._pendingRedraw&&this._redraw()},_handleSurfaceChange:function(){this._cancelWebGLDepsLoad();this._webglDepsPromise=this._prepareToAttach(this._map);this._webglDepsPromise.always(p.hitch(this,function(M){this._webglDepsPromise=null;M&&"cancel"===M.dojoType||this._evalSurface()}))},_cancelWebGLDepsLoad:function(){this._webglDepsPromise&&!this._webglDepsPromise.isFulfilled()&&this._webglDepsPromise.cancel();this._webglDepsPromise=null},_evalSurface:function(){var M=
this._map,Y=this._div;M&&Y&&this._getSurfaceType(Y)!==this.surfaceType&&(M._detachGraphicsLayer(this),M._attachGraphicsLayer(this))},_canUseWebGLSurface:function(M){M=M||this._map;return this.webglEnabled&&(!M||M.webglEnabled&&(M.ownsWebGLContext(this)||M.isWebGLContextAvailable()))&&this._params.drawMode&&this._isWebGLCompatible()},_isWebGLCompatible:function(){return!1},_prepareToAttach:function(M){var Y=new b;!this.webglDeps&&this._canUseWebGLSurface(M)?E(["./support/webglDeps"],p.hitch(this,function(ka){this.webglDeps=
ka;Y.isFulfilled()||Y.resolve()})):Y.resolve();return Y.promise},_setMap:function(M,Y){this.inherited(arguments);this._map=M;this._evalSurfaceType(!0);this._webglChangeMapHandle=M.on("webgl-enabled-change",p.hitch(this,function(){this._evalSurfaceType()}));this._wrap=M.wrapAround180;this._srInfo=M.spatialReference._getInfo();this._svgFilters={};this._lineMarkers={};if(this.hasWebGLSurface())M.acquireWebGLContext(this),this._div=M._gc._webglSurface.createRenderer(this.webglDeps.WebGLRenderer,M.width,
M.height,this);else{if("svg"===this.surfaceType)if(Aa){Y=d.createSurface(Y.getEventSource(),M.width,M.height);var ka=Y.getEventSource();c.set(ka,{position:"absolute",overflow:"visible",pointerEvents:"none"});M._gc._useWillChange&&c.set(ka,"will-change","transform");this._div=Y.createGroup();c.set(this._div.getEventSource(),"pointer-events","auto")}else this._div=Y.createGroup();else Y=d.createSurface(Y.getEventSource(),M.width,M.height),c.set(Y.rawNode,"position","absolute"),this._div=Y.createGroup(),
this._renderProto=this._div.constructor.prototype._render,this._div._render=p.hitch(this,this._canvasRender);this._bgGroup=this._div.createGroup()}this._div.getEventSource().id=this.id+"_layer";this._initOpacity();return this._div},_unsetMap:function(M,Y){M.releaseWebGLContext(this);"webgl"===this._div.surfaceType?M._gc._webglSurface.destroyRenderer(this._div):(n.forEach(this.graphics,function(ka){ka._shape=null}),"svg"===this.surfaceType?Aa?(Y=this._div.parent,this._div.clear(),Y.remove(this._div),
f.destroy(this._div.getEventSource()),f.destroy(Y.getEventSource())):(this._div.clear(),Y.remove(this._div),f.destroy(this._div.getEventSource())):(Y=this._div.getParent(),Y._parent={},f.destroy(Y.rawNode),Y.destroy()));this._map=this._div=this._svgFilters=this._lineMarkers=null;this._pendingRedraw=!1;clearTimeout(this._wakeTimer);this._wakeTimer=null;clearTimeout(this._evalSurfaceTimerHandle);this._evalSurfaceTimerHandle=null;this._webglChangeMapHandle&&this._webglChangeMapHandle.remove();this._cancelWebGLDepsLoad();
this._disableDrawConnectors();this.inherited(arguments)},_initOpacity:function(){var M=this.opacity;v.isDefined(M)&&1>M&&this.setOpacity(M,!0)},_onZoomStartHandler:function(){this.hasWebGLSurface()||t.hide(this._div.getEventSource())},_onExtentChangeHandler:function(M,Y,ka,N){clearTimeout(this._wakeTimer);this._wakeTimer=null;ka?(M=this._map.__visibleRect,Y=this._div,this._evalSDRenderer(),this._refresh(!0),this._params._child||this._updateTransform(Y,M.x,M.y,!0),this._renderProto&&Y.surface.pendingRender?
this._dirty=!0:this.suspended||t.show(Y.getEventSource())):this._resized&&(this._resized=!1,this._refresh(!1));if(0<this.graphics.length)this.onUpdate()},_canvasRender:function(){var M=this._div;this._dirty&&(delete this._dirty,this.suspended||t.show(M.getEventSource()));return this._renderProto.apply(M,arguments)},_refresh:function(M){if(!this.hasWebGLSurface()){var Y=this.graphics,ka=Y.length,N,Z=this._draw;for(N=0;N<ka;N++)Z(Y[N],M)}},refresh:function(){this._refresh(!0)},_redraw:function(){this._pendingRedraw=
!1;this.hasWebGLSurface()?this._div&&this._div.redraw():this._refresh(!0)},redraw:function(){this._hasPendingSurfaceEval()?this._pendingRedraw=!0:this._redraw()},hasLocalNavigationTransform:function(){return!(this._map&&this._map._gc._useGlobalTransform)},getNavigationTransform:function(){var M={dx:0,dy:0};this._map&&(this.hasLocalNavigationTransform()?this._div&&!this.hasWebGLSurface()&&(M=this._div.getTransform()):M=this._map._gc._getTransform());return M},_onPanHandler:function(M,Y){this._panDx=
Y.x;this._panDy=Y.y;M=this._map.__visibleRect;this._updateTransform(this._div,M.x+Y.x,M.y+Y.y);ba&&this._updateSVGMarkers()},_onPanEndUpdateHandler:function(M,Y){M=this._map.__visibleRect;this._params._child||Y.x===this._panDx&&Y.y===this._panDy?(this._updateSVGFilters(-M.x,-M.y),this._updateSVGMarkers()):this._updateTransform(this._div,M.x,M.y,!0);this._refresh(!1);if(this.graphics.length)this.onUpdate()},_onPanStartHandler:function(){t.hide(this._div.getEventSource())},_onPanEndHandler:function(){var M=
this._map.__visibleRect,Y=this._div;this._updateTransform(Y,M.x,M.y,!0);this._refresh(!1);this._renderProto&&Y.surface.pendingRender?this._dirty=!0:t.show(Y.getEventSource());if(this.graphics.length)this.onUpdate()},_updateTransform:function(M,Y,ka,N){this.hasWebGLSurface()||(this.hasLocalNavigationTransform()?M.setTransform(e.translate({x:Y,y:ka})):Aa&&c.set(this._div.parent.getEventSource(),x._css.names.transform,x._css.translate(Y,ka)),N&&(this._updateSVGFilters(-Y,-ka),this._updateSVGMarkers()))},
onSuspend:function(){this.inherited(arguments);t.hide(this._div.getEventSource());clearTimeout(this._wakeTimer);this._wakeTimer=null;this._disableDrawConnectors()},onResume:function(M){this.inherited(arguments);M.firstOccurrence&&this._evalSDRenderer();this._enableDrawConnectors();this._wakeTimer=this._wakeTimer||setTimeout(p.hitch(this,function(){this.suspended||this._map.__zooming||this._onExtentChangeHandler(null,null,!0)}),0)},_enableDrawConnectors:function(){var M=this._map,Y=w.connect;this._disableDrawConnectors();
this._params.displayOnPan?(this._params._child||(this._onPanHandler_connect=Y(M,"onPan",this,"_onPanHandler")),this._onPanEndHandler_connect=Y(M,"onPanEnd",this,"_onPanEndUpdateHandler")):(this._onPanStartHandler_connect=Y(M,"onPanStart",this,"_onPanStartHandler"),this._onPanEndHandler_connect=Y(M,"onPanEnd",this,"_onPanEndHandler"));this._onZoomStartHandler_connect=Y(M,"onZoomStart",this,"_onZoomStartHandler");this._onExtentChangeHandler_connect=Y(M,"onExtentChange",this,"_onExtentChangeHandler")},
_disableDrawConnectors:function(){var M=w.disconnect;M(this._onExtentChangeHandler_connect);M(this._onZoomStartHandler_connect);M(this._onPanHandler_connect);M(this._onPanStartHandler_connect);M(this._onPanEndHandler_connect);this._onExtentChangeHandler_connect=this._onZoomStartHandler_connect=this._onPanHandler_connect=this._onPanStartHandler_connect=this._onPanEndHandler_connect=null},_updateExtent:function(M){var Y=M.geometry;if(!Y)M._extent=null;else if(!(M._extent=Y.getExtent())){if("esri.geometry.Point"===
Y.declaredClass){var ka=Y.x;var N=Y.y}else if("esri.geometry.Multipoint"===Y.declaredClass)ka=Y.points[0][0],N=Y.points[0][1];else{M._extent=null;return}M._extent=new D(ka,N,ka,N,Y.spatialReference)}},_intersects:function(M,Y,ka){var N=M.spatialReference,Z=Y.spatialReference,na=N&&Z&&!N.equals(Z)&&N._canProject(Z)&&4326===Z.wkid;if(this._wrap&&!ka){ka=[];N=M._getFrameWidth();var za=this._srInfo,va=M._clip?M._getAvailExtent():M.extent,S,U=[];var ma=Y._partwise;na&&(va=M.geographicExtent,za=Z._getInfo());
M=va._getParts(za);if(ma&&ma.length)for(Y=[],Z=0,na=ma.length;Z<na;Z++)Y=Y.concat(ma[Z]._getParts(za));else Y=Y._getParts(za);Z=0;for(na=Y.length;Z<na;Z++){var ra=Y[Z];za=0;for(va=M.length;za<va;za++){var sa=M[za];if(sa.extent.intersects(ra.extent))for(ma=0,S=ra.frameIds.length;ma<S;ma++)ka.push((sa.frameIds[0]-ra.frameIds[ma])*N)}}Z=0;for(na=ka.length;Z<na;Z++)ma=ka[Z],n.indexOf(ka,ma)===Z&&U.push(ma);return U.length?U:null}return(na?M.geographicExtent:M.extent).intersects(Y)?[0]:null},_defaultMarker:{type:"simplemarkersymbol",
style:"square",size:1,xoffset:0,yoffset:0,angle:0},_draw:function(M,Y){if(!this.hasWebGLSurface()&&this._params.drawMode&&this._map&&!this.suspended&&!this._map.__zooming&&!this._resized)try{var ka=M._extent,N,Z,na=!aa||this.styling,za=aa&&this.dataAttributes,va=M.getDojoShape(),S;if(!M._suspended&&M.visible&&ka&&(N=this._intersects(this._map,ka,M.geometry._originOnly))&&(Z=na?this._getSymbol(M):this._defaultMarker)){if(M._offsets&&M._offsets.join(",")===N.join(",")?S=!0:M._offsets=N,!va||Y||!S){var U=
M.geometry.type;Y={graphic:M};var ma=M._bgShape,ra=na&&!M.symbol?this._getRenderer(M):null,sa=ra&&ra.backgroundFillSymbol;if("point"===U)this._isInvalidShape(Z,va)&&this._removeShape(M),M._shape=this._drawPoint(this._div,M.geometry,Z,M.getDojoShape(),N,ra,M),na&&this._symbolizePoint(M.getDojoShape(),Z,ra,M);else if("multipoint"===U)this._drawMarkers(M,Z,N,ra),na&&this._symbolizeMarkers(M,Z,ra);else{var V;U=Z;var W;na&&(U=(V="simplemarkersymbol"===Z.type||"picturemarkersymbol"===Z.type||"textsymbol"===
Z.type?Z:null)?sa:Z);if(na&&U&&-1<U.type.indexOf("fillsymbol")){var oa=this._bgGroup;var ta=!(!oa||!V)}ma&&!ta&&this._removeBgShape(M);if(U){!ta&&(this._isInvalidShape(U,M._shape)||M._shape&&M._shape._isCentroidMarker)&&this._removeShape(M,!1);if(W=this._drawShape(M,N,oa||this._div,ta?ma:M.getDojoShape()))W._isCentroidMarker=!1;na&&this._symbolizeShape(W,U,ra,U===sa,M);M[ta?"_bgShape":"_shape"]=W}if(V){(this._isInvalidShape(V,M._shape)||M._shape&&!M._shape._isCentroidMarker)&&this._removeShape(M,
!1);var Ba=M.geometry.getCentroid();if(W=Ba&&this._drawPoint(this._div,Ba,V,M._shape,N,ra,M))W._isCentroidMarker=!0,this._symbolizePoint(W,V,ra,M);M._shape=W}}da||(M._bgShape&&this._initNode(M,M._bgShape,M._bgShape!==ma,Y,za),M._shape&&this._initNode(M,M._shape,M._shape!==va,Y,za));M._applyDataAttrs();Y.node=M.getNode();this.onGraphicDraw(Y)}}else va&&this._removeShape(M)}catch(Ra){this._errorHandler(Ra,M)}},_initNode:function(M,Y,ka,N,Z){if(Y=Y&&Y.getNode())Y.e_graphic=M,this._addDataAttrs(M,Z,Y),
ka&&(N.node=Y,this.onGraphicNodeAdd(N))},_removeShape:function(M,Y,ka){var N=M.getDojoShape(),Z=N&&N.getNode();N&&!ka&&(N.removeShape(),N.destroy());M._shape=M._offsets=null;!1!==Y&&this._removeBgShape(M,ka);if(Z&&(Z.e_graphic=null,!da))this.onGraphicNodeRemove({graphic:M,node:Z})},_removeBgShape:function(M,Y){var ka=M._bgShape,N=ka&&ka.getNode();ka&&!Y&&(ka.removeShape(),ka.destroy());M._bgShape=null;if(N&&(N.e_graphic=null,!da))this.onGraphicNodeRemove({graphic:M,node:N})},_addDataAttrs:function(M,
Y,ka){var N=M.attributes,Z,na=Y?Y.length:0,za=this._getRenderer(M);if(ka&&N){for(Z=0;Z<na;Z++)(ka=Y[Z])&&M.attr("data-"+ka,N[ka]);!this.styling&&za&&(za.getBreakIndex?(Y=za.getBreakIndex(M),M.attr("data-class-break",-1!==Y?Y:null)):za.getUniqueValueInfo&&(Y=za.getUniqueValueInfo(M),M.attr("data-unique-value",Y?Y.value:null)))}},_drawShape:function(M,Y,ka,N){M=M.geometry;var Z=M.type,na=this._map,za=na.extent,va=na.width,S=na.height;na=na.__visibleRect;var U=[],ma;var ra="extent"===Z;if("rect"===Z||
ra)U={x:0,y:0,spatialReference:M.spatialReference},U.x=ra?M.xmin:M.x,U.y=ra?M.ymax:M.y,Z=H.toScreenPoint(za,va,S,U),U.x=ra?M.xmax:M.x+M.width,U.y=ra?M.ymin:M.y+M.height,M=H.toScreenPoint(za,va,S,U),Y={x:Z.x-na.x+Y[0],y:Z.y-na.y,width:Math.abs(M.x-Z.x),height:Math.abs(M.y-Z.y)},0===Y.width&&(Y.width=1),0===Y.height&&(Y.height=1),N=this._drawRect(ka,N,Y);else if("polyline"===Z||"polygon"===Z){ra=0;for(ma=Y.length;ra<ma;ra++)U=U.concat(H._toScreenPath(za,va,S,M,-na.x+Y[ra],-na.y));N=this._drawPath(ka,
N,U);this._rendererLimits&&("polyline"===Z?this._clipPolyline(N,M):this._clipPolygon(N,M))}return N},_drawRect:function(M,Y,ka){return Y?Y.setShape(ka):M.createRect(ka)},_drawImage:function(M,Y,ka){return Y?Y.setShape(ka):M.createImage(ka)},_drawCircle:function(M,Y,ka){return Y?Y.setShape(ka):M.createCircle(ka)},_drawPath:function(){return ia?function(M,Y,ka,N){ka=N?ka:ka.join(" ");if(Y)return Y.setShape(ka);Y=M.createObject(N?d.Path:d.EsriPath,ka);M._overrideSize(Y.getEventSource());return Y}:function(M,
Y,ka,N){ka=N?ka:ka.join(" ");return Y?Y.setShape(ka):M.createPath(ka)}}(),_drawText:function(M,Y,ka){return Y?Y.setShape(ka):M.createText(ka)},_evalSDRenderer:function(M){var Y=this._map,ka=this.renderer,N,Z=this._rndForScale;Y&&Y.loaded&&ka&&ka.getRendererInfo&&(N="zoom"===ka.rangeType?ka.getRendererInfoByZoom(Y.getZoom()):ka.getRendererInfoByScale(Y.getScale()));this._rndForScale=N&&N.renderer;M||this._rndForScale==Z||this.emit("renderer-change",{renderer:this._rndForScale})},_getRenderer:function(M){var Y=
this._rndForScale||this.renderer;M&&Y&&Y.getObservationRenderer&&(Y=Y.getObservationRenderer(M));return Y},_getSymbol:function(M){var Y=this._getRenderer();return M.symbol||Y&&Y.getSymbol(M)},_getVariable:function(M,Y,ka){if(M)var N=(M=M.getVisualVariablesForType(Y,ka))&&M[0];return N},_applyOpacity:function(M,Y,ka,N){Y=Y.getOpacity(N,{opacityInfo:ka});null!=Y&&(M=new u(M),M.a=Y);return M},_symbolizeShape:function(M,Y,ka,N,Z){var na=Y.getStroke(),za=Y.getFill(),va=Y.type,S=-1!==va.indexOf("linesymbol"),
U=-1!==va.indexOf("fillsymbol")?null:this._getVariable(ka,"sizeInfo",!1),ma=this._getVariable(ka,"colorInfo",!1),ra=this._getVariable(ka,"opacityInfo",!1),sa=S?"none"!==Y.style:Y.outline&&"none"!==Y.outline.style,V=S?null:this._getVariable(ka,"sizeInfo","outline");U=(U=N?V:V||U)?ka.getSize(Z,{sizeInfo:U,resolution:this._map.getResolutionInMeters(),scale:this._map.getScale()}):null;N&&(ma=ra=null);if((ma||ra)&&"picturefillsymbol"!==va)if(S){var W=na&&na.color;ma&&(W=ka.getColor(Z,{colorInfo:ma})||
W);W&&ra&&(W=this._applyOpacity(W,ka,ra,Z))}else if(za&&za.toCss){var oa=za;ma&&(oa=ka.getColor(Z,{colorInfo:ma})||oa);oa&&ra&&(oa=this._applyOpacity(oa,ka,ra,Z))}M.setStroke(!sa||null==U&&!W?na:p.mixin({},na,null!=U?{width:U}:null,W&&{color:W})).setFill(oa||za);S&&C.applyLineMarker(M,Y,W,this._acquireSVGMarker)},_smsToPath:function(){return ia?function(M,Y,ka,N,Z,na,za,va,S){switch(Y){case M.STYLE_SQUARE:return["M",Z+","+za,"L",na+","+za,na+","+va,Z+","+va,"X","E"];case M.STYLE_CROSS:return["M",
ka+","+za,"L",ka+","+va,"M",Z+","+N,"L",na+","+N,"E"];case M.STYLE_X:return["M",Z+","+za,"L",na+","+va,"M",Z+","+va,"L",na+","+za,"E"];case M.STYLE_DIAMOND:return["M",ka+","+za,"L",na+","+N,ka+","+va,Z+","+N,"X","E"];case M.STYLE_TARGET:return["M",Z+","+za,"L",na+","+za,na+","+va,Z+","+va,Z+","+za,"M",Z-S+","+N,"L",Z+","+N,"M",ka+","+(za-S),"L",ka+","+za,"M",na+S+","+N,"L",na+","+N,"M",ka+","+(va+S),"L",ka+","+va,"E"]}}:function(M,Y,ka,N,Z,na,za,va,S){switch(Y){case M.STYLE_SQUARE:return["M",Z+","+
za,na+","+za,na+","+va,Z+","+va,"Z"];case M.STYLE_TRIANGLE:return["M",ka+","+za,na+","+va,Z+","+va,"Z"];case M.STYLE_CROSS:return["M",ka+","+za,ka+","+va,"M",Z+","+N,na+","+N];case M.STYLE_X:return["M",Z+","+za,na+","+va,"M",Z+","+va,na+","+za];case M.STYLE_DIAMOND:return["M",ka+","+za,na+","+N,ka+","+va,Z+","+N,"Z"];case M.STYLE_TARGET:return M=["M",Z+","+za,na+","+za,na+","+va,Z+","+va,Z+","+za],S&&M.push("M",Z-S+","+N,Z+","+N,"M",ka+","+(za-S),ka+","+za,"M",na+S+","+N,na+","+N,"M",ka+","+(va+S),
ka+","+va),M}}}(),_pathStyles:{square:1,cross:1,x:1,diamond:1,target:1},_typeMaps:{picturemarkersymbol:"image",picturefillsymbol:"path",simplefillsymbol:"path",simplelinesymbol:"path",cartographiclinesymbol:"path",textsymbol:"text"},_isInvalidShape:function(M,Y){Y=Y&&Y.shape&&Y.shape.type;var ka=M&&M.type;M=M&&M.style;"rect"===Y&&(Y="path");ka&&(M=this._typeMaps[ka]||M);this._pathStyles[M]&&(M="path");return"shieldlabelsymbol"===ka?!0:!(!Y||!M||Y===M)},_reArialFont:/\s*(^|,)\s*arial\s*(,|$)\s*/i,
_fallbackFont:"Arial",_drawPoint:function(M,Y,ka,N,Z,na,za){var va=ka.type,S=this._map,U=S.__visibleRect,ma=H.toScreenPoint(S.extent,S.width,S.height,Y).offset(-U.x+Z[0],-U.y);U=ma.x;var ra=ma.y;Y=[];var sa=this._getVariable(na,"rotationInfo",!1);sa=sa?na.getRotationAngle(za,{rotationInfo:sa}):null;var V=this._getVariable(na,"sizeInfo",!1);S=null!=za.size?za.size:V&&na.getSize(za,{sizeInfo:V,shape:ka.style,resolution:S.getResolutionInMeters(),scale:S.getScale()});sa&&Y.push(e.rotategAt(sa,ma));if(0!==
ka.xoffset||0!==ka.yoffset){var W=e.translate(ka.xoffset,-ka.yoffset);Y.push(W)}0!==ka.angle&&Y.push(e.rotategAt(ka.angle,ma));if("simplemarkersymbol"===va){var oa=ka.style;na=Math.round;null!=S?W&&(null!=W.dx&&(W.dx=W.dx/ka.size*S),null!=W.dy&&(W.dy=W.dy/ka.size*S)):S=ka.size;switch(oa){case B.STYLE_SQUARE:case B.STYLE_TRIANGLE:case B.STYLE_CROSS:case B.STYLE_X:case B.STYLE_DIAMOND:ka=isNaN(S)?16:S/2;oa=this._drawPath(M,N,this._smsToPath(B,oa,U,ra,na(U-ka),na(U+ka),na(ra-ka),na(ra+ka)));break;case B.STYLE_TARGET:za=
ka._targetWidth/2;W=ka._targetHeight/2;oa=this._drawPath(M,N,this._smsToPath(B,oa,U,ra,na(U-za),na(U+za),na(ra-W),na(ra+W),ka._spikeSize));break;case B.STYLE_PATH:oa=this._drawPath(M,N,ka.path,!0);ka=oa.getBoundingBox();M=this._getScaleMatrix(ka,S);1===M.xx&&1===M.yy||Y.push(e.scaleAt(M.xx,M.yy,ma));Y.push(e.translate(-(ka.x+ka.width/2)+U,-(ka.y+ka.height/2)+ra));break;default:ka=isNaN(S)?16:S/2,oa=this._drawCircle(M,N,{cx:U,cy:ra,r:ka})}}else if("shieldlabelsymbol"===va)oa=ka.width,ma=ka.height,
N=M.createGroup(),oa=M.createImage({x:U-oa/2,y:ra-ma/2,width:oa,height:ma,src:ka.url}),N.add(oa),null!=ka.font&&(ra+=.2*ka.getHeight(),M=M.createText({type:"text",text:ka.text,x:U,y:ra,align:"middle",decoration:ka.decoration,rotated:ka.rotated,kerning:ka.kerning}),M.setFont(ka.font),M.setFill(ka.color),N.add(M)),oa=N;else if("picturemarkersymbol"===va){if(null==S?(oa=ka.width,ma=ka.height):(ma=S,oa=ka.width/ka.height*ma,W&&(null!=W.dx&&(W.dx=W.dx/ka.width*oa),null!=W.dy&&(W.dy=W.dy/ka.height*ma))),
oa=this._drawImage(M,N,{x:U-oa/2,y:ra-ma/2,width:oa,height:ma,src:ka.url}),aa&&(M=oa.getNode()))ka=(ka=this._getVariable(na,"opacityInfo",!1))?na.getOpacity(za,{opacityInfo:ka}):null,null!=ka?M.setAttribute("opacity",ka):M.setAttribute("opacity",1)}else if("textsymbol"===va){if(na=ka.font){oa=null!=S;za=na.family&&!this._reArialFont.test(na.family);if(oa||za||da)na=new na.constructor(na.toJson());oa&&na.setSize(S);da&&(na.size+="px");za&&na.setFamily(na.family+","+this._fallbackFont)}oa=this._drawText(M,
N,{type:"text",text:ka.text,x:U,y:ra,align:ka.getSVGAlign(),decoration:ka.decoration||na&&na.decoration,rotated:ka.rotated,kerning:ka.kerning});na&&oa.setFont(na);aa&&(M=oa.getNode(),U=ka.getSVGBaseline(),ra=ka.getSVGBaselineShift(),M&&(M.setAttribute("dominant-baseline",U),ra&&M.setAttribute("baseline-shift",ra),this._applyHalo(oa,ka.haloColor,ka.haloSize)))}oa.setTransform(e.multiply(Y));oa._wrapOffsets=Z;return oa},_acquireSVGMarker:function(M,Y,ka,N){M=this._getSVGMarkerId(Y,N);var Z=this._getSVGMarker(M);
Z||(Z=C.createSVGMarker(Y,M,ka,N),this._div.getParent().defNode.appendChild(Z),this._lineMarkers[M]=Z);return Z},_getSVGMarkerId:function(M,Y){return"marker_"+this._map.id+"_"+M.r+"_"+M.g+"_"+M.b+"_"+Y},_getSVGMarker:function(M){return this._lineMarkers[M]},_updateSVGMarkers:function(){if(aa&&ja){var M=this._lineMarkers,Y;for(Y in M){var ka=M[Y];ka.setAttribute("id",Y+"_temp");ka.setAttribute("id",Y)}}},_applyHalo:function(M,Y,ka){var N=Y&&ka?this._getHaloId(Y,ka):null;M.setFilter(Y&&ka?y("webkit")||
y("ff")?this._getDilateFilter(Y,ka,N):this._getOffsetFilter(Y,ka,N):null)},_getDilateFilter:function(M,Y,ka){var N=this._getSVGFilter(ka);N||(N=this._createSVGFilter({id:ka},[h.feMorphology({operator:"dilate",radius:Y,result:"dilated"}),h.feFlood({"flood-color":M.toCss(!0)}),h.feComposite({in2:"dilated",operator:"in",result:"composite"}),h.feMerge("composite","SourceGraphic")]));return N},_getOffsetFilter:function(M,Y,ka){var N=this._getSVGFilter(ka);if(!N){M=M.toCss(!0);N=this._offsetPrimitives;
var Z,na=N.length,za=[],va=[];for(Z=0;Z<na;Z++){var S=N[Z],U="offset"+S.dir,ma="composite"+S.dir;va.push(ma);za.push(h.feOffset({dx:S.dx*Y,dy:S.dy*Y,"in":"SourceAlpha",result:U}),h.feFlood({"flood-color":M}),h.feComposite({in2:U,operator:"in",result:ma}))}va.push("SourceGraphic");za.push(h.feMerge.apply(h.feMerge,va));N=this._createSVGFilter({id:ka},za)}return N},_offsetPrimitives:[{dir:"L",dx:-1,dy:0},{dir:"TL",dx:-1,dy:-1},{dir:"T",dx:0,dy:-1},{dir:"TR",dx:1,dy:-1},{dir:"R",dx:1,dy:0},{dir:"BR",
dx:1,dy:1},{dir:"B",dx:0,dy:1},{dir:"BL",dx:-1,dy:1}],_getHaloId:function(M,Y){return"halo_"+this._map.id+"_"+this.id+"_"+M.r+"_"+M.g+"_"+M.b+"_"+M.a+"_"+Y},_getSVGFilter:function(M){return this._svgFilters[M]},_createSVGFilter:function(M,Y){Y=h.createFilter(M,Y);var ka=this._map,N=ka.__visibleRect;Y.x=-N.x;Y.y=-N.y;Y.width=ka.width;Y.height=ka.height;return this._svgFilters[M.id]=Y},_updateSVGFilters:function(M,Y,ka,N){var Z=this._svgFilters,na,za,va;for(za in Z)if(na=Z[za]){if(va=a.byId(za))null!=
M&&va.setAttribute("x",M),null!=Y&&va.setAttribute("y",Y),null!=ka&&va.setAttribute("width",ka),null!=N&&va.setAttribute("height",N);null!=M&&(na.x=M);null!=Y&&(na.y=Y);null!=ka&&(na.width=ka);null!=N&&(na.height=N)}},_getScaleMatrix:function(M,Y){var ka=M.width/M.height,N=1,Z=1;isNaN(Y)||(1<ka?(N=Y/M.width,Z=Y/ka/M.height):(Z=Y/M.height,N=Y*ka/M.width));return{xx:N,yy:Z}},_symbolizePoint:function(M,Y,ka,N){var Z=Y.type,na=Y.style;if("shieldlabelsymbol"!==Z&&"picturemarkersymbol"!==Z){var za=Y.getStroke();
Y=Y.getFill();na=na===B.STYLE_X||na===B.STYLE_CROSS;var va=za&&za.color,S=na?va:Y;if(ka){var U=this._getVariable(ka,"colorInfo",!1),ma=this._getVariable(ka,"opacityInfo",!1);U&&(S=ka.getColor(N,{colorInfo:U})||S);S&&ma&&(S=this._applyOpacity(S,ka,ma,N));S&&(na?S!==va&&(za=za?p.mixin({},za):{},za.color=S):S!==Y&&(Y=S))}"textsymbol"===Z?M.setFill(Y):"simplemarkersymbol"===Z&&M.setFill(Y).setStroke(za)}},_drawMarkers:function(M,Y,ka,N){var Z=M.geometry,na=Z.points,za=M.getDojoShape()||this._div.createGroup(),
va,S=na.length,U=[],ma=0,ra,sa=ka?ka.length:0;za.children[0]&&this._isInvalidShape(Y,za.children[0])&&za.clear();for(va=0;va<S;va++){var V=na[va];for(ra=0;ra<sa;ra++)U[0]=ka[ra],this._drawPoint(za,{x:V[0],y:V[1],spatialReference:Z.spatialReference},Y,za.children[ma++],U,N,M)}Y=za.children.length;if(S*ka.length<Y)for(va=Y-1;va>=S*ka.length;va--)za.children[va].removeShape();M._shape=za},_symbolizeMarkers:function(M,Y,ka){var N=M.getDojoShape().children,Z,na=N.length;for(Z=0;Z<na;Z++)this._symbolizePoint(N[Z],
Y,ka,M)},_errorHandler:function(M,Y){Y&&(M.message="Unable to draw graphic (geometry:"+(Y.geometry?Y.geometry.declaredClass:null)+", symbol:"+(Y.symbol?Y.symbol.declaredClass:null)+"): "+M.message);this.inherited(arguments)},_rendererLimits:function(){if(ia){var M=1E5;var Y=-1E5;var ka=1E5}else y("chrome")&&6>y("chrome")&&(M=8150,Y=-1E4,ka=1E4);if(M)return{clipLimit:M,rangeMin:Y,rangeMax:ka,clipBBox:[-M,-M,M,M],clipSegments:[[[-M,-M],[M,-M]],[[M,-M],[M,M]],[[M,M],[-M,M]],[[-M,M],[-M,-M]]]}}(),_clipPolyline:function(M,
Y){Y=this._getCorners(M,Y);var ka=Y.br,N=this._rendererLimits,Z=N.rangeMin,na=N.rangeMax,za=N.clipBBox,va=N.clipSegments;N=this._isPointWithinRange;var S=this._isPointWithinBBox,U=this._getClipperIntersection,ma=this._getPlaneIndex;if(!N(Y.tl,Z,na)||!N(ka,Z,na)){ia&&this._createSegments(M);var ra=[];n.forEach(M.segments,function(sa){sa=sa.args;var V=sa.length,W=[],oa;for(oa=0;oa<V;oa+=2){var ta=[sa[oa],sa[oa+1]],Ba=[sa[oa+2],sa[oa+3]],Ra=S(ta,za),Va=S(Ba,za);if(Ra^Va){if(Va=U([ta,Ba],va))Ra?(oa?W.push(Va[1]):
W.push(ta,Va[1]),ra.push(W),W=[]):W.push(Va[1],Ba)}else Ra?oa?W.push(Ba):W.push(ta,Ba):(Va=ma(ta,za),Ra=ma(Ba,za),-1!==Va&&-1!==Ra&&Va!==Ra&&(ta=U([ta,Ba],va,!0),0<ta.length&&(ta[Va]||(Va=ta[Va[0]]?Va[0]:Va[1]),ta[Ra]||(Ra=ta[Ra[0]]?Ra[0]:Ra[1]),Ba=ta[Va],ta=ta[Ra],Ba&&W.push(Ba),ta&&(W.push(ta),ra.push(W),W=[]))))}ra.push(W)});M.setShape(this._getPathStringFromPaths(ra))}},_clipPolygon:function(M,Y){Y=this._getCorners(M,Y);var ka=Y.br,N=this._rendererLimits,Z=N.clipLimit,na=N.rangeMin,za=N.rangeMax,
va=N.clipBBox,S=N.clipSegments;N=this._isPointWithinRange;var U=this._isPointWithinBBox,ma=this._getClipperIntersection,ra=this._getPlaneIndex,sa=G._pointLineDistance;N(Y.tl,na,za)&&N(ka,na,za)||(ia&&this._createSegments(M),Y=n.filter(M.segments,function(V){return V.args&&V.args.length}),Y=n.map(Y,function(V){var W=V.args,oa=W.length,ta=[];V=[];var Ba;for(Ba=0;Ba<oa;Ba+=2){var Ra=[W[Ba],W[Ba+1]],Va=[W[Ba+2],W[Ba+3]];if(Ba===oa-2){ta.push(Ra);break}var Za=U(Ra,va),Qa=U(Va,va);ta.push(Ra);if(Za^Qa){if(Qa=
ma([Ra,Va],S))Ra=Qa[1],Ra[Za?"inOut":"outIn"]=!0,ta.push(Ra),V.push([Za?"INOUT":"OUTIN",ta.length-1,Qa[0]])}else if(!Za){Za=ra(Ra,va);var J=ra(Va,va);-1!==Za&&-1!==J&&Za!==J&&(Qa=ma([Ra,Va],S,!0),0<Qa.length?(Qa[Za]||(Za=Qa[Za[0]]?Za[0]:Za[1]),Qa[J]||(J=Qa[J[0]]?J[0]:J[1]),Ra=Qa[Za],Va=Qa[J],Ra&&(Ra.outIn=!0,ta.push(Ra),V.push(["OUTIN",ta.length-1,Za])),Va&&(Va.inOut=!0,ta.push(Va),V.push(["INOUT",ta.length-1,J]))):p.isArray(Za)&&p.isArray(J)&&(Qa=Za.concat(J),Qa.sort(),"0123"===Qa.join("")&&(Qa=
[],3===Za[0]+Za[1]?Qa.push([Z,-Z],[-Z,Z]):Qa.push([-Z,-Z],[Z,Z]),Za=sa(Qa[0],[Ra,Va]),Ra=sa(Qa[1],[Ra,Va]),ta.push(Za<Ra?Qa[0]:Qa[1]))))}}var Q=va[0],ea=va[1],K=va[2],T=va[3];n.forEach(ta,function(ya){ya[0]<Q&&(ya[1]>=ea&&ya[1]<=T?ya[0]=Q:(ya[0]=Q,ya[1]=ya[1]<ea?ea:T))});n.forEach(ta,function(ya){ya[1]<ea&&(ya[0]>=Q&&ya[0]<=K?ya[1]=ea:(ya[1]=ea,ya[0]=ya[0]<Q?Q:K))});n.forEach(ta,function(ya){ya[0]>K&&(ya[1]>=ea&&ya[1]<=T?ya[0]=K:(ya[0]=K,ya[1]=ya[1]<ea?ea:T))});n.forEach(ta,function(ya){ya[1]>T&&
(ya[0]>=Q&&ya[0]<=K?ya[1]=T:(ya[1]=T,ya[0]=ya[0]<Q?Q:K))});W=0;oa=V.length;if(0<oa){do{Va=V[W];Ba=V[(W+1)%oa];if(Va[2]===Ba[2]&&"INOUT"===Va[0]&&"OUTIN"===Ba[0])if(Ra=Va[1],Ba=Ba[1],Ra<Ba)for(Ra+=1;Ra<Ba;Ra++)ta[Ra][2]=!0;else if(Ra>Ba){for(Ra+=1;Ra<ta.length;Ra++)ta[Ra][2]=!0;for(Ra=0;Ra<Ba;Ra++)ta[Ra][2]=!0}W=(W+1)%oa}while(0!==W)}oa=ta[0];W=ta[ta.length-1];oa[2]&&(W[2]=!0,n.some(V,function(ya){return 1===ya[1]?(ta.splice(ta.length-1,0,p.clone(ta[1])),!0):!1}));ta=n.filter(ta,function(ya){return ya[2]?
!1:!0});for(W=0;W<ta.length-1;W++)oa=ta[W],(Ba=ta[W+1])&&oa[0]===Ba[0]&&oa[1]===Ba[1]&&(Ba.outIn?oa.outIn=!0:Ba.inOut&&(oa.inOut=!0),ta.splice(W+1,1));oa=Math.abs;V=[];for(W=0;W<ta.length-1;W++){Va=ta[W];Ra=Va[0];Va=Va[1];Za=oa(Ra)===Z;Qa=oa(Va)===Z;Ba=ta[W+1];J=Ba[0];Ba=Ba[1];var fa=oa(J)===Z,qa=oa(Ba)===Z;Za&&qa?V.push([W+1,[Ra,Ba]]):Qa&&fa&&V.push([W+1,[J,Va]])}for(W=V.length-1;0<=W;W--)Ba=V[W],Ra=ta[Ba[0]-1],oa=ta[Ba[0]],Ra.outIn||Ra.inOut||oa.outIn||oa.inOut||ta.splice(Ba[0],0,Ba[1]);oa=ta[0];
W=ta[ta.length-1];oa[0]===W[0]&&oa[1]===W[1]||ta.push(oa);return ta}),M.setShape(this._getPathStringFromPaths(Y)))},_getCorners:function(M,Y){if(ia){M=this._map;var ka=Y.getExtent(),N=ka.spatialReference;Y=M.toScreen(new F(ka.xmin,ka.ymax,N));M=M.toScreen(new F(ka.xmax,ka.ymin,N));return{tl:Y,br:M}}M=M.getTransformedBoundingBox();return{tl:M[0],br:M[2]}},_createSegments:function(M){M.shape.path=M.vmlPath;M.segmented=!1;M._confirmSegmented();var Y=M.segments;1<Y.length&&(M.segments=n.filter(Y,function(ka,
N,Z){N=Z[N+1];return"M"===ka.action&&N&&"L"===N.action?(ka.args=ka.args.concat(N.args),!0):!1}))},_getPathStringFromPaths:function(M){ia?(M=n.map(M,function(Y){return"m "+n.map(Y,function(ka,N){return(1===N?"l ":"")+ka.join(",")}).join(" ")}),M.push("e")):M=n.map(M,function(Y){return"M "+n.map(Y,function(ka){return ka.join(",")}).join(" ")});return M.join(" ")},_isPointWithinBBox:function(M,Y){var ka=Y[1],N=Y[2],Z=Y[3],na=M[0];M=M[1];return na>Y[0]&&na<N&&M>ka&&M<Z?!0:!1},_isPointWithinRange:function(M,
Y,ka){var N=M.x;M=M.y;return N<Y||M<Y||N>ka||M>ka?!1:!0},_getClipperIntersection:function(M,Y,ka){var N,Z=G._getLineIntersection2,na=Math.round,za={length:0};for(N=0;4>N;N++){var va=Z(M,Y[N]);if(va)if(va[0]=na(va[0]),va[1]=na(va[1]),ka)za[N]=va,za.length++;else return[N,va]}return ka?za:null},_getPlaneIndex:function(M,Y){var ka=M[0];M=M[1];var N=Y[0],Z=Y[1],na=Y[2];Y=Y[3];return ka<=N?M>=Z&&M<=Y?3:M<Z?[0,3]:[2,3]:M<=Z?ka>=N&&ka<=na?0:ka<N?[3,0]:[1,0]:ka>=na?M>=Z&&M<=Y?1:M<Z?[0,1]:[2,1]:M>=Y?ka>=N&&
ka<=na?2:ka<N?[3,2]:[1,2]:-1},onGraphicAdd:function(){},onGraphicRemove:function(){},onGraphicNodeAdd:function(){},onGraphicNodeRemove:function(){},onGraphicDraw:function(){},onGraphicsClear:function(){},onRendererChange:function(){},onOpacityChange:function(){},onInfoTemplateChange:function(){},onSurfaceChange:function(){},onWebGLEnabledChange:function(){},setInfoTemplate:function(M){this.infoTemplate=M;this._evalSurfaceType();this.onInfoTemplateChange()},add:function(M,Y){if(M._graphicsLayer===
this)return M;M._suspended=this._suspendGraphics;Y||this.graphics.push(M);M._graphicsLayer=this;M._sourceLayer||(M._layer&&"esri.layers.GraphicsLayer"!==M._layer.declaredClass?M._sourceLayer=M._layer:"esri.layers.GraphicsLayer"!==this.declaredClass&&(M._sourceLayer=this));M._layer=this;this.hasWebGLSurface()||(this._updateExtent(M),this._draw(M));if(!Y)this.onGraphicAdd(M);return M},remove:function(M,Y,ka){if(!Y&&!ka){Y=this.graphics;var N;if(-1===(N=n.indexOf(Y,M)))return null;if(!Ca||64<=Ca)Y.splice(N,
1);else{var Z=Y.length;if(Z){for(;N<Z;)Y[N]=Y[N+1],N++;Y.length--}}}this.hasWebGLSurface()||M.getDojoShape()&&this._removeShape(M,null,ka);M._shape=M._graphicsLayer=null;this.onGraphicRemove(M);return M},clear:function(M,Y){M=this.graphics;var ka,N=!ia;for(ka=M.length-1;0<=ka;ka--)this.remove(M[ka],null,N);this.graphics=[];this.hasWebGLSurface()||this._destroyAllNodes();if(!Y)this.onGraphicsClear()},_destroyAllNodes:function(){if(!ia&&this._div){var M;this._childLayer&&(M=this._childLayer.getNode())&&
M.parentNode&&M.parentNode.removeChild(M);this._bgGroup.clear();this._div.clear();this._bgGroup=this._div.createGroup();M&&this._div.getEventSource().appendChild(M);this._initOpacity()}},clearNodes:function(){if(!this.hasWebGLSurface()){var M=this.graphics,Y=M.length,ka;for(ka=0;ka<Y;ka++)this._removeShape(M[ka],!0,!0);this._destroyAllNodes()}},_graphicVisibilityChanged:function(M){},_setIEOpacity:function(M,Y){var ka=M&&M.getNode();if(ka){var N=M.strokeStyle,Z=ka.stroke;N&&Z&&(Z.opacity=N.color.a*
Y);M=M.fillStyle;N=ka.fill;M&&N&&("tile"===N.type?c.set(ka,"opacity",Y):N.opacity=M.a*Y)}},setOpacity:function(M,Y){if(Y||this.opacity!=M){var ka=this._div;ka&&!this.hasWebGLSurface()&&(ia?(n.forEach(this.graphics,function(N){this._setIEOpacity(N._shape,M);this._setIEOpacity(N._bgShape,M)},this),ka._esriIeOpacity=M,this._bgGroup._esriIeOpacity=M):"canvas-2d"===this.surfaceType?c.set(ka.getEventSource(),"opacity",M):ka.getEventSource().setAttribute("opacity",M));this.opacity=M;if(!Y)this.onOpacityChange(M)}},
setRenderer:function(M){this.renderer=M;this._evalSDRenderer(!0);this._evalSurfaceType();this.emit("renderer-change",{renderer:this._rndForScale||M})}});z=z([m,L],{declaredClass:"esri.layers.GraphicsLayer",constructor:function(){this._processEvent=p.hitch(this,this._processEvent);this._initLayer()},_initLayer:function(){this.loaded=!0;this.onLoad(this)},_setMap:function(){var M=this.inherited("_setMap",arguments);this.enableMouseEvents();return M},_unsetMap:function(){this.disableMouseEvents();this.inherited("_unsetMap",
arguments)},_processEvent:function(M){var Y=this._map,ka=M.target,N;M.screenPoint=new A(M.pageX-Y.position.x,M.pageY-Y.position.y);for(M.mapPoint=Y.toMap(M.screenPoint);ka&&!(N=ka.e_graphic);)ka=ka.parentNode;if(N)return M.graphic=N,M},_onMouseOverHandler:function(M){if(this._processEvent(M))this.onMouseOver(M)},_onMouseMoveHandler:function(M){if(this._processEvent(M))this.onMouseMove(M)},_onMouseDragHandler:function(M){if(this._processEvent(M))this.onMouseDrag(M)},_onMouseOutHandler:function(M){if(this._processEvent(M))this.onMouseOut(M)},
_onMouseDownHandler:function(M){this._downGr=this._downPt=null;this._processEvent(M)&&(w.disconnect(this._onmousemove_connect),w.disconnect(this._onmousedrag_connect),this._onmousedrag_connect=w.connect(this._div.getEventSource(),"onmousemove",this,"_onMouseDragHandler"),this._downGr=M.graphic,this._downPt=M.screenPoint.x+","+M.screenPoint.y,this.onMouseDown(M))},_onMouseUpHandler:function(M){this._upGr=this._upPt=null;this._processEvent(M)&&(w.disconnect(this._onmousedrag_connect),w.disconnect(this._onmousemove_connect),
this._onmousemove_connect=w.connect(this._div.getEventSource(),"onmousemove",this,"_onMouseMoveHandler"),this._upGr=M.graphic,this._upPt=M.screenPoint.x+","+M.screenPoint.y,this.onMouseUp(M))},_onClickHandler:function(M){if(this._processEvent(M)){var Y=this._downGr,ka=this._upGr;Y&&ka&&Y===ka&&this._downPt===this._upPt&&(ia&&(x._ieGraphic=M.graphic),this.onClick(M))}},_onDblClickHandler:function(M){if(this._processEvent(M))this.onDblClick(M)},onMouseOver:function(){},onMouseMove:function(){},onMouseDrag:function(){},
onMouseOut:function(){},onMouseDown:function(){},onMouseUp:function(){},onClick:function(){},onDblClick:function(){},enableMouseEvents:function(){if(!this._mouseEvents){var M=w.connect,Y=this._div.getEventSource();da||(this._onmouseover_connect=M(Y,"onmouseover",this,"_onMouseOverHandler"),this._onmousemove_connect=M(Y,"onmousemove",this,"_onMouseMoveHandler"),this._onmouseout_connect=M(Y,"onmouseout",this,"_onMouseOutHandler"),this._onmousedown_connect=M(Y,"onmousedown",this,"_onMouseDownHandler"),
this._onmouseup_connect=M(Y,"onmouseup",this,"_onMouseUpHandler"),this._onclick_connect=M(Y,"onclick",this,"_onClickHandler"),this._ondblclick_connect=M(Y,"ondblclick",this,"_onDblClickHandler"));this._mouseEvents=!0}},disableMouseEvents:function(){if(this._mouseEvents){var M=w.disconnect;M(this._onmouseover_connect);M(this._onmousemove_connect);M(this._onmousedrag_connect);M(this._onmouseout_connect);M(this._onmousedown_connect);M(this._onmouseup_connect);M(this._onclick_connect);M(this._ondblclick_connect);
this._mouseEvents=!1}}});z._GraphicsContainer=g;z._GraphicsLayer=m;y("extend-esri")&&(p.setObject("layers.GraphicsLayer",z,x),p.setObject("layers._GraphicsContainer",g,x),p.setObject("layers._GraphicsLayer",m,x));return z})},"dojox/gfx":function(){define(["dojo/_base/lang","./gfx/_base","./gfx/renderer!"],function(E,z,b){z.switchTo(b);return z})},"dojox/gfx/renderer":function(){define(["./_base","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/_base/config"],function(E,z,b,w,p){var n=
null;b.add("vml",function(l,q,f){f.innerHTML='\x3cv:shape adj\x3d"1"/\x3e';l="adj"in f.firstChild;f.innerHTML="";return l});return{load:function(l,q,f){function c(){q(["dojox/gfx/"+a],function(h){E.renderer=a;n=h;f(h)})}if(n&&"force"!=l)f(n);else{var a=p.forceGfxRenderer;l=!a&&(z.isString(p.gfxRenderer)?p.gfxRenderer:"svg,vml,canvas,silverlight").split(",");for(var d,e;!a&&l.length;)switch(l.shift()){case "svg":"SVGAngle"in w.global&&(a="svg");break;case "vml":b("vml")&&(a="vml");break;case "silverlight":try{b("ie")?
(d=new ActiveXObject("AgControl.AgControl"),d.IsVersionSupported("1.0"))&&(e=!0):navigator.plugins["Silverlight Plug-In"]&&(e=!0)}catch(h){e=!1}finally{d=null}e&&(a="silverlight");break;case "canvas":w.global.CanvasRenderingContext2D&&(a="canvas")}"canvas"===a&&!1!==p.canvasEvents&&(a="canvasWithEvents");p.isDebug&&console.log("gfx renderer \x3d "+a);"svg"==a&&"undefined"!=typeof window.svgweb?window.svgweb.addOnLoad(c):c()}}}})},"esri/layers/gfxSniff":function(){define(["dojo/has","dojox/gfx"],function(E,
z){E.add("esri-svg",function(){return-1!==z.renderer.toLowerCase().indexOf("svg")});return E})},"esri/layers/layer":function(){define("dojo/_base/declare dojo/_base/config dojo/_base/connect dojo/_base/lang dojo/_base/Deferred dojo/_base/json dojo/has ../Evented ../kernel ../lang ../request ../deferredUtils ../urlUtils ../SpatialReference ../geometry/Extent".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m){var g=E([q],{declaredClass:"esri.layers.Layer",_eventMap:{error:["error"],load:["layer"],
"opacity-change":["opacity"],"update-end":["error"],"visibility-change":["visible"]},constructor:function(k,x){this._attrs={};k&&w.isString(k)?this._url=e.urlToObject(this.url=e.normalize(k)):(this.url=this._url=null,(x=x||k)&&(x.layerDefinition||x.query)&&(x=null));this.spatialReference=new h(4326);this.initialExtent=new m(-180,-90,180,90,new h(4326));this._map=this._div=null;this.normalization=!0;x&&(x.id&&(this.id=x.id),this.arcgisProps=x.arcgisProps,this.parentLayer=x.parentLayer,!1===x.visible&&
(this.visible=!1),c.isDefined(x.opacity)&&(this.opacity=x.opacity),c.isDefined(x.minScale)&&this.setMinScale(x.minScale),c.isDefined(x.maxScale)&&this.setMaxScale(x.maxScale),this.attributionDataUrl=x.attributionDataUrl||"",this.hasAttributionData=!!this.attributionDataUrl,c.isDefined(x.showAttribution)&&(this.showAttribution=x.showAttribution),this.className=x.className,this.refreshInterval=x.refreshInterval||0);this._errorHandler=w.hitch(this,this._errorHandler);this._scheduledRefresh=w.hitch(this,
this._scheduledRefresh);this.refresh=w.hitch(this,this.refresh);if(this.managedSuspension){var v=this._setMap;this._setMap=function(y){var u=v.apply(this,arguments);this._fireAttach(y);this.evaluateSuspension();if(this.suspended&&!y.loaded)var t=b.connect(y,"onLoad",this,function(){b.disconnect(t);t=null;this.evaluateSuspension()});return u}}this.registerConnectEvents()},id:null,visible:!0,opacity:1,loaded:!1,loadError:null,minScale:0,maxScale:0,visibleAtMapScale:!1,suspended:!0,attached:!1,attributionDataUrl:"",
hasAttributionData:!1,showAttribution:!0,refreshInterval:0,_errorHandler:function(k){this.loaded||(this.loadError=k);this.onError(k)},_setMap:function(k,x,v,y){this._map=k;this._lyrZEHandle=b.connect(k,"onZoomEnd",this,this._processMapScale);if(k.loaded)this.visibleAtMapScale=this._isMapAtVisibleScale();else var u=b.connect(k,"onLoad",this,function(){b.disconnect(u);u=null;this._processMapScale()})},_unsetMap:function(k,x){b.disconnect(this._lyrZEHandle);this._map=this._lyrZEHandle=null;this._resumedOnce=
void 0;this.suspended=!0;this._fireDetach(k)},_fireAttach:function(k){this.attached=!0;this.onAttach({map:k})},_fireDetach:function(k){this.attached=!1;this.onDetach({map:k})},_cleanUp:function(){this._map=this._div=null},_fireUpdateStart:function(){this.updating||(this.updating=!0,this.attr("data-updating",""),this.onUpdateStart(),this._map&&this._map._incr())},_fireUpdateEnd:function(k,x){this.updating&&(this.updating=!1,this.attr("data-updating"),this._refreshRT(),this.onUpdateEnd(k,x),this._map&&
this._map._decr())},_getToken:function(){var k=this._url,x=this.credential;return k&&k.query&&k.query.token||x&&x.token||void 0},_findCredential:function(){this.credential=f.id&&this._url&&f.id.findCredential(this._url.path)},_useSSL:function(){var k=this._url,x=/^http:/i;this.url&&(this.url=this.url.replace(x,"https:"));k&&k.path&&(k.path=k.path.replace(x,"https:"))},refresh:function(k){},show:function(){this.setVisibility(!0)},hide:function(){this.setVisibility(!1)},setMinScale:function(k){this.setScaleRange(k)},
setMaxScale:function(k){this.setScaleRange(null,k)},setScaleRange:function(k,x){var v=c.isDefined(k),y=c.isDefined(x);this.loaded||(this._hasMin=this._hasMin||v,this._hasMax=this._hasMax||y);var u=this.minScale,t=this.maxScale;this.minScale=(v?k:this.minScale)||0;this.maxScale=(y?x:this.maxScale)||0;if(u!==this.minScale||t!==this.maxScale)this.onScaleRangeChange(),this._processMapScale()},suspend:function(){this._suspended=!0;this.evaluateSuspension()},resume:function(){this._suspended=!1;this.evaluateSuspension()},
canResume:function(){return this.loaded&&this._map&&this._map.loaded&&this.visible&&this.visibleAtMapScale&&!this._suspended},evaluateSuspension:function(){this.canResume()?this.suspended&&this._resume():this.suspended||this._suspend()},_suspend:function(){this.suspended=!0;this.attr("data-suspended","");this.onSuspend();if(this._map)this._map.onLayerSuspend(this)},_resume:function(){this.suspended=!1;this.attr("data-suspended");var k=void 0===this._resumedOnce,x=this.className,v=this._attrs,y=this.getNode(),
u;if(k){this._resumedOnce=!0;if(x&&y){var t=y.getAttribute("class")||"";(new RegExp("(^|\\s)"+x+"(\\s|$)","i")).test(t)||y.setAttribute("class",t+((t?" ":"")+x))}if(v&&y)for(u in v)v.hasOwnProperty(u)&&y.setAttribute(u,v[u])}this._refreshRT();this.onResume({firstOccurrence:k});if(this._map)this._map.onLayerResume(this)},_processMapScale:function(){var k=this.visibleAtMapScale;this.visibleAtMapScale=this._isMapAtVisibleScale();k!==this.visibleAtMapScale&&(this.onScaleVisibilityChange(),this.evaluateSuspension())},
isVisibleAtScale:function(k){return k?g.prototype._isMapAtVisibleScale.apply(this,arguments):!1},_isMapAtVisibleScale:function(k,x){if(!(k||this._map&&this._map.loaded))return!1;var v=this._map;k=k||v.getScale();var y=this.minScale,u=this.maxScale,t=!y,r=!u,B;x&&(B=v.width>v.height?v.width:v.height);t||(k<=y?t=!0:x&&(t=Math.abs(y-k)/y<1/B));r||(k>=u?r=!0:x&&(r=Math.abs(u-k)/u<1/B));return t&&r},getAttributionData:function(){var k=this.attributionDataUrl,x=new p(d._dfdCanceller);this.hasAttributionData&&
k?(x._pendingDfd=a({url:k,content:{f:"json"},handleAs:"json",callbackParamName:"callback"}),x._pendingDfd.then(function(v){x.callback(v)},function(v){x.errback(v)})):(k=Error("Layer does not have attribution data"),k.log=!!z.isDebug,x.errback(k));return x},getResourceInfo:function(){var k=this.resourceInfo;return w.isString(k)?n.fromJson(k):w.clone(k)},getMap:function(){return this._map},getNode:function(){return this._div},attr:function(k,x){var v=this.getNode();if("data-reference"===k&&11>l("ie"))return this;
v&&(null==x?v.removeAttribute(k):v.setAttribute(k,x));this._attrs&&(null==x?delete this._attrs[k]:this._attrs[k]=x);return this},setRefreshInterval:function(k){var x=this.refreshInterval;this.refreshInterval=k;this._toggleRT(!1);k&&this._toggleRT(!0);if(x!==k)this.onRefreshIntervalChange();return this},_toggleRT:function(k){k&&this.refreshInterval?(clearInterval(this._refreshTimer),this._refreshTimer=setInterval(this._scheduledRefresh,6E4*this.refreshInterval)):this._refreshTimer&&(clearInterval(this._refreshTimer),
this._refreshTimer=null)},_refreshRT:function(){this._toggleRT(!1);this._toggleRT(!0)},_scheduledRefresh:function(){this.onRefreshTick();!this._map||this.suspended||this.updating||this.refresh({scheduled:!0})},_refreshTS:null,_reCheckTS:/[\?&]_ts=/ig,_reReplaceTS:/([\?&]_ts=)[0-9]+/ig,addTimestampToURL:function(k){var x=this._refreshTS;x&&(k=this._reCheckTS.test(k)?k.replace(this._reReplaceTS,"$$$1"+x):k+((-1===k.indexOf("?")?"?":"\x26")+"_ts\x3d"+x));return k},setNormalization:function(k){this.normalization=
k},setVisibility:function(k){this.visible!==k&&(this.visible=k,this.onVisibilityChange(this.visible),this.evaluateSuspension());this.attr("data-hidden",k?null:"")},onLoad:function(){},onAttach:function(k){},onDetach:function(k){},onVisibilityChange:function(){},onScaleRangeChange:function(){},onScaleVisibilityChange:function(){},onSuspend:function(){},onResume:function(){},onUpdate:function(){},onUpdateStart:function(){},onUpdateEnd:function(){},onRefreshIntervalChange:function(){},onRefreshTick:function(){},
onError:function(){}});l("extend-esri")&&w.setObject("layers.Layer",g,f);return g})},"esri/request":function(){define("require dojo/_base/array dojo/_base/config dojo/_base/Deferred dojo/_base/lang dojo/_base/url dojo/_base/xhr dojo/request/xhr ./core/request/script dojo/request/iframe dojo/dom-construct dojo/io-query ./kernel ./config ./sniff ./lang ./urlUtils ./deferredUtils".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x){function v(ia){ia=new n(ia);return(ia.host+(ia.port?":"+ia.port:
"")).toLowerCase()}function y(ia){return this._xhr?this._xhr.getResponseHeader(ia):null}function u(ia,ba){var ja=d.objectToQuery(ia.content);ja&&(ia.url+=(-1===ia.url.indexOf("?")?"?":"\x26")+ja);if(2E3<ia.url.length){if("data:"!==ia.url.toLowerCase().slice(0,5))return ia=new w,ia.reject(p.mixin(Error(),{message:"When using responseType 'image', URL length cannot exceed 2000 characters."})),ia;if(3E6<ia.url.length)return ia=new w,ia.reject(p.mixin(Error(),{message:"When using responseType 'image', data URL length cannot exceed 3000000 characters."})),
ia}var pa=new Image;ba.allowImageDataAccess&&(pa.crossOrigin=ia.withCredentials?"use-credentials":"anonymous");var Ca=!1,la=new w(function(ua){Ca=!0;pa.onload=pa.onerror=pa.onabort=null;pa.src=""});ba=function(ua){pa.onload=pa.onerror=pa.onabort=null;Ca||la.reject(Error("Unable to load the resource"))};pa.onload=function(){pa.onload=pa.onerror=pa.onabort=null;Ca||la.resolve(this)};pa.onerror=ba;pa.onabort=ba;pa.alt="";pa.src=ia.url;return la}function t(ia,ba,ja,pa){var Ca=!1,la=!1,ua=!1;if(g.isDefined(ba))if(p.isObject(ba)){Ca=
!!ba.useProxy;la=!!ba.usePost;ua=!!ba.returnProgress;var Aa=ba.crossOrigin}else Ca=!!ba;ia=p.mixin({},ia);delete ia._credential;ia._ssl&&(ia.url=ia.url.replace(/^http:/i,"https:"));10>m("ie")&&!da.test(ia.url)&&(ia.url=encodeURI(ia.url));var M=ia.content,Y=ia.url,ka=ja&&ia.form,N=H;Aa=g.isDefined(Aa)?Aa:N.useCors;ia.load=function(Ka){if(Ka){if(Ka.error){var Xa=p.mixin(Error(),Ka.error);Xa.log=!!b.isDebug}else"error"===Ka.status&&(Xa=p.mixin(Error(),Ka),Xa.log=!!b.isDebug);Xa&&(ia.failOk=!Xa.log,g.isDefined(Xa.httpCode)||
(Xa.httpCode=Xa.code))}return Xa||Ka};ia.error=function(Ka,Xa){Xa&&Xa.xhr&&Xa.xhr.abort();Ka instanceof Error||(Ka=p.mixin(Error(),Ka));Ka.log=!!b.isDebug;ia.failOk=!Ka.log;N.errorHandler(Ka,Xa);return Ka};ia._token&&(ia.content=ia.content||{},ia.content.token=ia._token);var Z=0;if(M&&Y){var na=d.objectToQuery(M);Z=na.length+Y.length+1;m("esri-url-encodes-apostrophe")&&(Z=na.replace(/'/g,"%27").length+Y.length+1)}ia.timeout=g.isDefined(ia.timeout)?ia.timeout:N.timeout;ia.handleAs=ia.handleAs||"json";
try{var za=Aa&&k.canUseXhr(ia.url)&&!/https?:\/\/[^\/]+\/[^\/]+\/admin\/?(\/.*)?$/i.test(ia.url),va=k.hasSameOrigin(ia.url,window.location.href)||za,S=la||ja||Z>N.postLength?!0:!1,U=va||-1===ia.handleAs.indexOf("json")||!ia.callbackParamName||ja?!1:!0,ma=k.getProxyRule(ia.url)||N.alwaysUseProxy||Ca||!("image"===ia.handleAs&&!ba.allowImageDataAccess||U&&!S||va)?!0:!1;ja&&!m("esri-file-upload")&&!ma&&za&&(ma=!0);if(ma){var ra=k.getProxyUrl(Y,Aa);var sa=ra.path;ra._xo&&(za=!0);!S&&sa.length+1+Z>N.postLength&&
(S=!0);ia.url=sa+"?"+Y;if(S)ia.content=p.mixin(ra.query||{},M);else{var V=d.objectToQuery(p.mixin(ra.query||{},M));V&&(ia.url+="?"+V);ia.content=null}}if(!U||S||ma){var W=ia.headers;!za||W&&W.hasOwnProperty("X-Requested-With")||(W=ia.headers=W||{},W["X-Requested-With"]=null);if(ja){var oa=ia.callbackParamName||"callback.html",ta=ia.callbackElementName||"textarea",Ba,Ra,Va=ka.elements?ka.elements.length:0;if(M=ia.content)for(Ba in M.token&&-1<Y.toLowerCase().indexOf("/sharing/servers/")&&(Y+=(-1===
Y.indexOf("?")?"?":"\x26")+"token\x3d"+M.token,ia.url=ma?sa+"?"+Y:Y,delete M.token),M){var Za=M[Ba];if(g.isDefined(Za)){var Qa=null;for(Ra=0;Ra<Va;Ra++){var J=ka.elements[Ra];if(J.name===Ba){Qa=J;break}}Qa?Qa.value=Za:pa?ka.append(Ba,Za):ka.appendChild(a.create("input",{type:"hidden",name:Ba,value:Za}))}}if(m("esri-file-upload")){z.forEach(ka.elements,function(Ka){Ka.name===oa&&ka.removeChild(Ka)});var Q=pa?ka:new FormData(ka);if(11<=m("safari")&&"entries"in Q&&"delete"in Q){pa=[];for(var ea=Q.entries(),
K=ea.next();!K.done;){var T=K.value;T[1]instanceof File&&""===T[1].name&&pa.push(T[0]);K=ea.next()}pa.forEach(function(Ka){Q.delete(Ka)})}ia.contentType=!1;ia.postData=Q;delete ia.form}else{ka.enctype="multipart/form-data";9>m("ie")&&(ka.encoding="multipart/form-data");ka.method="post";z.some(ka.elements,function(Ka){return Ka.name===oa})||ka.appendChild(a.create("input",{type:"hidden",name:oa,value:ta}));if(-1!==Y.toLowerCase().indexOf("addattachment")||-1!==Y.toLowerCase().indexOf("updateattachment"))Y+=
(-1===Y.indexOf("?")?"?":"\x26")+oa+"\x3d"+ta,ia.url=ma?sa+"?"+Y:Y;delete ia.content}}if(za&&!ia.hasOwnProperty("withCredentials")&&"with-credentials"===H.useCors){Y=ma?sa:Y;var fa=k.canUseXhr(Y,!0),qa=-1<fa?H.corsEnabledServers[fa]:null;if(qa&&qa.hasOwnProperty("withCredentials"))qa.withCredentials&&(ia.withCredentials=!0);else if(e.id){var ya=e.id.findServerInfo(Y);ya&&ya.webTierAuth&&(ia.withCredentials=!0)}}ia=G?G(ia):ia;if("image"===ia.handleAs)return u(ia,ba);if(S){if(ja&&!m("esri-file-upload")){var Fa=
new w(function(){Ea.cancel()});var Ea=c.post(ia.url,ia).then(function(Ka){Fa.resolve(Ka)}).otherwise(function(Ka){Fa.reject(Ka)});Fa.addCallback(function(Ka){return ia.load(Ka)});Fa.addErrback(function(Ka){return ia.error(Ka)});return Fa}!ma&&m("safari")&&(ia.url+=(-1===ia.url.indexOf("?")?"?":"\x26")+"_ts\x3d"+(new Date).getTime()+aa++);if(ua){ia.uploadProgress=!0;ia.data=ia.postData;ia.query=ia.content;Fa=new w(function(){Ta.cancel()});var Ta=q.post(ia.url,ia).then(function(Ka){Fa.resolve(Ka)},
function(Ka){Fa.reject(Ka)},function(Ka){Fa.progress({transferType:Ka.transferType,loaded:Ka.loaded,total:Ka.total})});Fa.addCallback(function(Ka){return ia.load(Ka)});Fa.addErrback(function(Ka){return ia.error(Ka)});return Fa}return l.post(ia)}return l.get(ia)}ia=G?G(ia):ia;ia.jsonp=ia.callbackParamName;ia.query=ia.content;Fa=new w(function(){Pa.cancel()});var Pa=f.get(ia.url,ia).then(function(Ka){Fa.resolve(Ka)}).otherwise(function(Ka){Fa.reject(Ka)});Fa.addCallback(function(Ka){return ia.load(Ka)});
Fa.addErrback(function(Ka){return ia.error(Ka)});return Fa}catch(Ka){return Fa=new w,Fa.errback(ia.error(Ka)),Fa}}function r(ia){var ba=H.corsStatus,ja=k.canUseXhr(ia,!0);-1<ja&&H.corsEnabledServers.splice(ja,1);var pa=new w;pa.reject({log:!!b.isDebug});ba[v(ia)]=pa.promise;return ja}function B(ia){var ba=H.corsStatus;try{var ja=v(ia);if(H.corsDetection&&H.useCors&&m("esri-cors")&&ia&&-1!==ia.toLowerCase().indexOf("/rest/services")&&!k.hasSameOrigin(ia,window.location.href)&&!k.canUseXhr(ia)){if(ba[ja]&&
!ba[ja].isCanceled())return ba[ja];var pa=new w(x._dfdCanceller);ba[ja]=pa.promise;var Ca=l.get({url:ia.substring(0,ia.toLowerCase().indexOf("/rest/")+6)+"info",content:{f:"json"},failOk:!0,handleAs:"json",headers:{"X-Requested-With":null},timeout:1E3*H.corsDetectionTimeout});pa._pendingDfd=Ca;Ca.then(function(la){la?(k.canUseXhr(ia)||H.corsEnabledServers.push(ja),pa.resolve()):pa.reject()},function(la){pa.reject(la)});return pa.promise}}catch(la){console.log("esri._detectCors: an unknown error occurred while detecting CORS support")}return ha}
function C(ia){G=ia}function F(ia,ba,ja,pa){function Ca(va){va._pendingDfd=t(ja,pa,N,ka);if(!va._pendingDfd){va.ioArgs=va._pendingDfd&&va._pendingDfd.ioArgs;var S=Error("Deferred object is missing");S.log=!!b.isDebug;va.errback(S);va._pendingDfd=null;return va}va._pendingDfd.addCallback(function(U){if(!U)return U;var ma=va._pendingDfd&&va._pendingDfd.ioArgs&&va._pendingDfd.ioArgs.xhr;if(!ma)return U;if(ma=ma.getResponseHeader("Content-Type"))if(ma=ma.toLowerCase(),-1===ma.indexOf("text/plain")&&-1===
ma.indexOf("application/json"))return U;if(U instanceof ArrayBuffer&&750>=U.byteLength)ma=new Blob([U]);else if(U instanceof Blob&&750>=U.size)ma=U;else return U;var ra=new w,sa=new FileReader;sa.readAsText(ma);sa.onloadend=function(){if(!sa.error)try{var V=JSON.parse(sa.result);if(V.error)var W=V.error}catch(oa){}W?(W=p.mixin(Error(),W),W.log=!!b.isDebug,null==W.httpCode&&(W.httpCode=W.code),ra.reject(W)):ra.resolve(U)};return ra.promise}).addCallback(function(U){va.ioArgs=va._pendingDfd&&va._pendingDfd.ioArgs;
pa.returnFullResponse&&(U={data:U,_xhr:va.ioArgs&&va.ioArgs.xhr,getHeader:y});va.callback(U);va._pendingDfd=null}).addErrback(function(U){if(U){var ma=U.code;var ra=U.subcode;var sa=(sa=U.messageCode)&&sa.toUpperCase()}if(U&&403==ma&&(4==ra||U.message&&-1<U.message.toLowerCase().indexOf("ssl")&&-1===U.message.toLowerCase().indexOf("permission"))){if(!ja._ssl){ja._ssl=ja._sslFromServer=!0;F(va,!0,ja,pa);return}}else if(U&&415==U.status){if(r(ja.url),!ja._err415){ja._err415=1;F(va,!0,ja,pa);return}}else if(e.id&&
-1!==z.indexOf(e.id._errorCodes,ma)&&!e.id._isPublic(ja.url)&&!ua&&(403!=ma||-1===z.indexOf(L,sa)&&(!g.isDefined(ra)||2==ra&&ja._token))){va._pendingDfd=e.id.getCredential(ja.url,{token:ja._token,error:U});va._pendingDfd.addCallback(function(V){ja._token=V.token;ja._credential=V;ja._ssl=ja._sslFromServer||V.ssl;F(va,!0,ja,pa)}).addErrback(function(V){va.errback(V);va._pendingDfd=null});return}va.ioArgs=va._pendingDfd&&va._pendingDfd.ioArgs;va.isFulfilled()||va.errback(U);va._pendingDfd=null}).then(null,
null,function(U){va.progress(U)})}var la=ja.form,ua=pa.disableIdentityLookup,Aa=pa._preLookup,M=!1;if(m("esri-workers")&&!1!==H.useWorkers)if(!0===pa.useWorkers||!0===H.useWorkers)M=!0;else if(pa.workerOptions){var Y=pa.workerOptions;if(Y.callback||Y.worker&&Y.worker.worker instanceof Worker)M=!0}var ka=la&&m("esri-file-upload")&&la instanceof FormData,N=la&&(la.elements?z.some(la.elements,function(va){return"file"===va.type}):ka),Z=-1!==ja.url.toLowerCase().indexOf("token\x3d")||ja.content&&ja.content.token||
N&&z.some(la.elements,function(va){return"token"===va.name})?1:0;if(!ba){ia.addCallback(function(va){if((/\/sharing\/rest\/accounts\/self/i.test(ja.url)||/\/sharing\/rest\/portals\/self/i.test(ja.url))&&!Z&&!ja._token&&va&&va.user&&va.user.username){H.webTierAuthServers.push(v(ja.url));va=H.corsEnabledServers;var S=k.canUseXhr(ja.url,!0),U={host:v(ja.url),withCredentials:!0};if(-1===S)va.push(U);else{var ma=va[S];ma instanceof RegExp?(U.host=ma,va.splice(S,1,U)):"object"===typeof ma?ma.withCredentials=
!0:va.splice(S,1,U)}}if(va=ja._credential)if(S=(S=e.id.findServerInfo(va.server))&&S.owningSystemUrl)S=S.replace(/\/?$/,"/sharing"),(va=e.id.findCredential(S,va.userId))&&-1===e.id._getIdenticalSvcIdx(S,va)&&va.resources.splice(0,0,S)});ia.addBoth(function(va){delete ja._credential;!va||m("ie")&&va.nodeType||(va._ssl=ja._ssl)});var na=ja.load,za=ja.error;na&&ia.addCallback(function(va){var S=ia._pendingDfd;S=S&&S.ioArgs;return na.call(S&&S.args,va,S)});za&&ia.addErrback(function(va){var S=ia._pendingDfd;
S=S&&S.ioArgs;return za.call(S&&S.args,va,S)})}!e.id||Z||ja._token||e.id._isPublic(ja.url)||ua&&!Aa||!(ba=e.id.findCredential(ja.url))||(ja._token=ba.token,ja._ssl=ba.ssl);M?pa.workerOptions&&pa.workerOptions.worker?(D||(D=l),l=pa.workerOptions.worker,Ca(ia)):E(["./workers/RequestClient"],function(va){D||(D=l);if(pa.workerOptions){var S=pa.workerOptions;l=va.getClient(S.callback,S.cbFunction)}else l=va.getClient();Ca(ia)}):(D&&(l=D,D=null),Ca(ia));return ia}function A(ia,ba){ia.url=k.fixUrl(ia.url);
ba=ba||{};var ja=new w(x._dfdCanceller),pa=B(ia.url);ja._pendingDfd=pa;pa.always(function(Ca){Ca&&"cancel"===Ca.dojoType?ja.reject(Ca):F(ja,!1,ia,ba)});return ja}var D=null,G,H=h.defaults.io,L=["COM_0056","COM_0057","SB_0008"],aa=0,da=/%[0-9A-F]{2}/i,ha=function(){var ia=new w;ia.resolve();return ia.promise}();A._makeRequest=t;A._processRequest=F;A._disableCors=r;A._detectCors=B;A.setRequestPreCallback=C;m("extend-esri")&&(e.request=A,e._makeRequest=t,e._processRequest=F,e._disableCors=r,e._detectCors=
B,e.setRequestPreCallback=C);return A})},"esri/core/request/script":function(){define("require exports dojo/Deferred dojo/request/script dojo/text!./iframe.html ../sniff".split(" "),function(E,z,b,w,p,n){function l(){var k=document.createElement("iframe");k.name="esri_core_jsonp_iframe";k.style.display="none";k.setAttribute("sandbox","allow-scripts");if(!n("ff")&&"srcdoc"in k){var x=E.toUrl("dojo/dojo.js"),v=p.replace("../../../dojo/dojo.js",x);x=x.slice(0,-7);v=v.replace("../../../dojo/",x);k.srcdoc=
v}else v=E.toUrl("./iframe.html"),"http:"===window.location.protocol&&0===v.indexOf("https:")&&(v=v.replace("https:","http:")),k.src=v;document.body.appendChild(k);return k}function q(){var k=new MessageChannel;k.port1.addEventListener("message",f);k.port1.start();return k}function f(k){var x=k.data;if("ready"===x){x=0;for(var v=m;x<v.length;x++)k=v[x],a(k,e);m=null}else if(k=g[x.id])delete g[x.id],x.isError?k.dfd.reject(Error(x.message)):k.dfd.resolve(x.response)}function c(k,x){k.addEventListener("load",
function(){k.contentWindow.postMessage("init","*",[x.port2])})}function a(k,x){g[k.message.id]=k;x.port1.postMessage(k.message)}Object.defineProperty(z,"__esModule",{value:!0});var d,e,h=0,m=[],g={};z.get=function(k,x){if(!n("esri-script-sandbox"))return w.get(k,x);var v=null;x&&(v={jsonp:x.jsonp,preventCache:x.preventCache,query:x.query,timeout:x.timeout});x=new b(function(){if(m){var u=m.indexOf(y);-1<u&&m.splice(u,1)}else y.message.id in g&&delete g[y.message.id]});var y={dfd:x,message:{id:"id"+
(++h+Math.random()),url:k,options:v}};d||(d=l(),e=q(),c(d,e));m?m.push(y):a(y,e);return x.promise}})},"esri/core/sniff":function(){define(["../sniff"],function(E){return E})},"dojo/request/iframe":function(){define("module require ./watch ./util ./handlers ../_base/lang ../io-query ../query ../has ../dom ../dom-construct ../_base/window ../NodeList-dom ../NodeList-manipulate".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d){function e(u){return!this.isFulfilled()}function h(u){return!!this._finished}
function m(u,t){if(!t)try{var r=u.options,B=k.doc(k._frame),C=r.handleAs;if("html"!==C){if("xml"===C)if("html"===B.documentElement.tagName.toLowerCase()){q("a",B.documentElement).orphan();var F=B.documentElement.innerText||B.documentElement.textContent;F=F.replace(/>\s+</g,"\x3e\x3c");u.text=n.trim(F)}else u.data=B;else u.text=B.getElementsByTagName("textarea")[0].value;p(u)}else u.data=B}catch(A){t=A}t?this.reject(t):this._finished?this.resolve(u):this.reject(Error("Invalid dojo/request/iframe request state"))}
function g(u){this._callNext()}function k(u,t,r){var B=w.parseArgs(u,w.deepCreate(y,t),!0);u=B.url;t=B.options;if("GET"!==t.method&&"POST"!==t.method)throw Error(t.method+" not supported by dojo/request/iframe");k._frame||(k._frame=k.create(k._iframeName,v+"();"));u=w.deferred(B,null,e,h,m,g);u._callNext=function(){this._calledNext||(this._calledNext=!0,k._currentDfd=null,k._fireNextRequest())};u._legacy=r;k._dfdQueue.push(u);k._fireNextRequest();b(u);return r?u:u.promise}var x=E.id.replace(/[\/\.\-]/g,
"_"),v=x+"_onload";d.global[v]||(d.global[v]=function(){var u=k._currentDfd;if(u){var t=c.byId(u.response.options.form)||u._tmpForm;if(t){for(var r=u._contentToClean,B=0;B<r.length;B++)for(var C=r[B],F=0;F<t.childNodes.length;F++){var A=t.childNodes[F];if(A.name===C){a.destroy(A);break}}u._originalAction&&t.setAttribute("action",u._originalAction);u._originalMethod&&(t.setAttribute("method",u._originalMethod),t.method=u._originalMethod);u._originalTarget&&(t.setAttribute("target",u._originalTarget),
t.target=u._originalTarget)}u._tmpForm&&(a.destroy(u._tmpForm),delete u._tmpForm);u._finished=!0}else k._fireNextRequest()});var y={method:"POST"};k.create=function(u,t,r){if(d.global[u])return d.global[u];if(d.global.frames[u])return d.global.frames[u];r||(f("config-useXDomain")&&!f("config-dojoBlankHtmlUrl")&&console.warn("dojo/request/iframe: When using cross-domain Dojo builds, please save dojo/resources/blank.html to your domain and set dojoConfig.dojoBlankHtmlUrl to the path on your domain to blank.html"),
r=f("config-dojoBlankHtmlUrl")||z.toUrl("dojo/resources/blank.html"));t=a.place('\x3ciframe id\x3d"'+u+'" name\x3d"'+u+'" src\x3d"'+r+'" onload\x3d"'+t+'" style\x3d"position: absolute; left: 1px; top: 1px; height: 1px; width: 1px; visibility: hidden"\x3e',d.body());return d.global[u]=t};k.doc=function(u){if(u.contentDocument)return u.contentDocument;var t=u.name;if(t){var r=d.doc.getElementsByTagName("iframe");if(u.document&&r[t].contentWindow&&r[t].contentWindow.document)return r[t].contentWindow.document;
if(d.doc.frames[t]&&d.doc.frames[t].document)return d.doc.frames[t].document}return null};k.setSrc=function(u,t,r){u=d.global.frames[u.name];u.contentWindow&&(u=u.contentWindow);try{r?u.location.replace(t):u.location=t}catch(B){console.log("dojo/request/iframe.setSrc: ",B)}};k._iframeName=x+"_IoIframe";k._notifyStart=function(){};k._dfdQueue=[];k._currentDfd=null;k._fireNextRequest=function(){try{if(!k._currentDfd&&k._dfdQueue.length){do var u=k._currentDfd=k._dfdQueue.shift();while(u&&(u.canceled||
u.isCanceled&&u.isCanceled())&&k._dfdQueue.length);if(!u||u.canceled||u.isCanceled&&u.isCanceled())k._currentDfd=null;else{var t=u.response,r=t.options,B=u._contentToClean=[],C=c.byId(r.form),F=w.notify,A=r.data||null;if(!u._legacy&&"POST"===r.method&&!C)C=u._tmpForm=a.create("form",{name:x+"_form",style:{position:"absolute",top:"-1000px",left:"-1000px"}},d.body());else if("GET"===r.method&&C&&-1<t.url.indexOf("?")){var D=t.url.slice(t.url.indexOf("?")+1);A=n.mixin(l.queryToObject(D),A)}if(C){if(!u._legacy){var G=
C;do G=G.parentNode;while(G&&G!==d.doc.documentElement);G||(C.style.position="absolute",C.style.left="-1000px",C.style.top="-1000px",d.body().appendChild(C));C.name||(C.name=x+"_form")}if(A){G=function(ba,ja){a.create("input",{type:"hidden",name:ba,value:ja},C);B.push(ba)};for(var H in A){var L=A[H];if(n.isArray(L)&&1<L.length)for(D=0;D<L.length;D++)G(H,L[D]);else{var aa=q("input[name\x3d'"+H+"']",C);-1==aa.indexOf()?G(H,L):aa.val(L)}}}var da=C.getAttributeNode("action"),ha=C.getAttributeNode("method"),
ia=C.getAttributeNode("target");t.url&&(u._originalAction=da?da.value:null,da?da.value=t.url:C.setAttribute("action",t.url));u._legacy?ha&&ha.value||(ha?ha.value=r.method:C.setAttribute("method",r.method)):(u._originalMethod=ha?ha.value:null,ha?ha.value=r.method:C.setAttribute("method",r.method));u._originalTarget=ia?ia.value:null;ia?ia.value=k._iframeName:C.setAttribute("target",k._iframeName);C.target=k._iframeName;F&&F.emit("send",t,u.promise.cancel);k._notifyStart(t);C.submit()}else r="",t.options.data&&
(r=t.options.data,"string"!==typeof r&&(r=l.objectToQuery(r))),G=t.url+(-1<t.url.indexOf("?")?"\x26":"?")+r,F&&F.emit("send",t,u.promise.cancel),k._notifyStart(t),k.setSrc(k._frame,G,!0)}}}catch(ba){u.reject(ba)}};w.addCommonMethods(k,["GET","POST"]);return k})},"dojo/NodeList-manipulate":function(){define("./query ./_base/lang ./_base/array ./dom-construct ./dom-attr ./NodeList-dom".split(" "),function(E,z,b,w,p){function n(f){for(;f.childNodes[0]&&1==f.childNodes[0].nodeType;)f=f.childNodes[0];
return f}function l(f,c){"string"==typeof f?(f=w.toDom(f,c&&c.ownerDocument),11==f.nodeType&&(f=f.childNodes[0])):1==f.nodeType&&f.parentNode&&(f=f.cloneNode(!1));return f}var q=E.NodeList;z.extend(q,{_placeMultiple:function(f,c){f="string"==typeof f||f.nodeType?E(f):f;for(var a=[],d=0;d<f.length;d++)for(var e=f[d],h=this.length,m=h-1,g;g=this[m];m--)0<d&&(g=this._cloneNode(g),a.unshift(g)),m==h-1?w.place(g,e,c):e.parentNode.insertBefore(g,e),e=g;a.length&&(a.unshift(0),a.unshift(this.length-1),Array.prototype.splice.apply(this,
a));return this},innerHTML:function(f){return arguments.length?this.addContent(f,"only"):this[0].innerHTML},text:function(f){if(arguments.length){for(var c=0,a;a=this[c];c++)1==a.nodeType&&p.set(a,"textContent",f);return this}var d="";for(c=0;a=this[c];c++)d+=p.get(a,"textContent");return d},val:function(f){if(arguments.length){for(var c=z.isArray(f),a=0,d;d=this[a];a++){var e=d.nodeName.toUpperCase(),h=d.type,m=c?f[a]:f;if("SELECT"==e)for(e=d.options,h=0;h<e.length;h++){var g=e[h];g.selected=d.multiple?
-1!=b.indexOf(f,g.value):g.value==m}else"checkbox"==h||"radio"==h?d.checked=d.value==m:d.value=m}return this}if((d=this[0])&&1==d.nodeType){f=d.value||"";if("SELECT"==d.nodeName.toUpperCase()&&d.multiple){f=[];e=d.options;for(h=0;h<e.length;h++)g=e[h],g.selected&&f.push(g.value);f.length||(f=null)}return f}},append:function(f){return this.addContent(f,"last")},appendTo:function(f){return this._placeMultiple(f,"last")},prepend:function(f){return this.addContent(f,"first")},prependTo:function(f){return this._placeMultiple(f,
"first")},after:function(f){return this.addContent(f,"after")},insertAfter:function(f){return this._placeMultiple(f,"after")},before:function(f){return this.addContent(f,"before")},insertBefore:function(f){return this._placeMultiple(f,"before")},remove:q.prototype.orphan,wrap:function(f){if(this[0]){f=l(f,this[0]);for(var c=0,a;a=this[c];c++){var d=this._cloneNode(f);a.parentNode&&a.parentNode.replaceChild(d,a);n(d).appendChild(a)}}return this},wrapAll:function(f){if(this[0]){f=l(f,this[0]);this[0].parentNode.replaceChild(f,
this[0]);f=n(f);for(var c=0,a;a=this[c];c++)f.appendChild(a)}return this},wrapInner:function(f){if(this[0]){f=l(f,this[0]);for(var c=0;c<this.length;c++){var a=this._cloneNode(f);this._wrap(z._toArray(this[c].childNodes),null,this._NodeListCtor).wrapAll(a)}}return this},replaceWith:function(f){f=this._normalize(f,this[0]);for(var c=0,a;a=this[c];c++)this._place(f,a,"before",0<c),a.parentNode.removeChild(a);return this},replaceAll:function(f){f=E(f);for(var c=this._normalize(this,this[0]),a=0,d;d=
f[a];a++)this._place(c,d,"before",0<a),d.parentNode.removeChild(d);return this},clone:function(){for(var f=[],c=0;c<this.length;c++)f.push(this._cloneNode(this[c]));return this._wrap(f,this,this._NodeListCtor)}});q.prototype.html||(q.prototype.html=q.prototype.innerHTML);return q})},"esri/layers/support/webglUtils":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/has","../../kernel"],function(E,z,b,w){var p=!1,n=b("esri-webgl-max-contexts");n=null!=n?n:b("esri-mobile")?8:16;var l={isWebGLSupported:function(){return!!p},
isWebGLEnabled:function(){return this.isWebGLSupported()&&!!b("esri-featurelayer-webgl")},createCanvas:function(q,f){var c=document.createElement("canvas");c.style.width=q+"px";c.style.height=f+"px";return c},createWebGLContext:function(q){var f;z.some(["webgl","experimental-webgl","webkit-3d","moz-webgl"],function(c){try{f=q.getContext?q.getContext(c):null}catch(a){f=null}return!!f});return f},_contextOwners:[],isContextAvailable:function(){return-1===n||0<n&&l._contextOwners.length<n},acquireContext:function(q){return-1!==
z.indexOf(l._contextOwners,q)?!0:l.isContextAvailable()?(l._contextOwners.push(q),!0):!1},releaseContext:function(q){q=z.indexOf(l._contextOwners,q);-1!==q&&l._contextOwners.splice(q,1)}};p=l.createWebGLContext(l.createCanvas());b("extend-esri")&&E.setObject("layers.support.webglUtils",l,w);return l})},"esri/layers/support/WebGLSurface":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/array","dojo/has","../../kernel"],function(E,z,b,w,p){E=E(null,{map:null,node:null,renderers:null,
constructor:function(n){z.mixin(this,n);this.renderers=[]},destroy:function(){b.forEach(this.renderers,function(n){n.destroy()});this.renderers=null},getEventSource:function(){return this.node},createRenderer:function(n,l,q,f){n=new n({surface:this,width:l,height:q,map:this.map,layer:f});this.renderers.push(n);return n},destroyRenderer:function(n){var l=b.indexOf(this.renderers,n);-1<l&&(n.destroy(),this.renderers.splice(l,1))},_createNode:function(){var n=document.createElement("div");n.style.pointerEvents=
"auto";n.style.position="absolute";return n}});w("extend-esri")&&z.setObject("layers.support.WebGLSurface",E,p);return E})},"esri/domUtils":function(){define(["./kernel","dojo/_base/connect","dojo/_base/lang","dojo/dom-style","dojo/has"],function(E,z,b,w,p){var n={show:function(l){if(l=n.getNode(l))l.style.display="block"},getNode:function(l){return l&&l.domNode||l},hide:function(l){if(l=n.getNode(l))l.style.display="none"},toggle:function(l){if(l=n.getNode(l))l.style.display="none"===l.style.display?
"block":"none"},documentBox:8>=p("ie")?{w:document.documentElement.clientWidth,h:document.documentElement.clientHeight}:{w:window.innerWidth,h:window.innerHeight},setScrollable:function(l){if(l=this.getNode(l)){var q=0,f=0,c=0,a=0,d=0,e=0;return[z.connect(l,"ontouchstart",function(h){q=h.touches[0].screenX;f=h.touches[0].screenY;c=l.scrollWidth;a=l.scrollHeight;d=l.clientWidth;e=l.clientHeight}),z.connect(l,"ontouchmove",function(h){h.preventDefault();var m=l.firstChild;m instanceof Text&&(m=l.childNodes[1]);
var g=m._currentX||0,k=m._currentY||0;g+=h.touches[0].screenX-q;0<g?g=0:0>g&&Math.abs(g)+d>c&&(g=-1*(c-d));m._currentX=g;k+=h.touches[0].screenY-f;0<k?k=0:0>k&&Math.abs(k)+e>a&&(k=-1*(a-e));m._currentY=k;w.set(m,{"-webkit-transition-property":"-webkit-transform","-webkit-transform":"translate("+g+"px, "+k+"px)"});q=h.touches[0].screenX;f=h.touches[0].screenY})]}}};p("extend-esri")&&b.mixin(E,n);return n})},"esri/symbols/MarkerSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ./Symbol".split(" "),
function(E,z,b,w,p,n){E=E(n,{declaredClass:"esri.symbol.MarkerSymbol",angle:0,xoffset:0,yoffset:0,size:12,constructor:function(l){l&&z.isObject(l)&&(this.size="auto"===this.size?this.size:w.pt2px(this.size),this.xoffset=w.pt2px(this.xoffset),this.yoffset=w.pt2px(this.yoffset),this.angle&&(this.angle*=-1))},setAngle:function(l){this.angle=l;return this},setSize:function(l){this.size=l;return this},setOffset:function(l,q){this.xoffset=l;this.yoffset=q;return this},toJson:function(){var l=w.px2pt(this.size);
l=isNaN(l)?void 0:l;var q=w.px2pt(this.xoffset);q=isNaN(q)?void 0:q;var f=w.px2pt(this.yoffset);f=isNaN(f)?void 0:f;return z.mixin(this.inherited("toJson",arguments),{size:"auto"===this.size?this.size:l,angle:this.angle&&-1*this.angle,xoffset:q,yoffset:f})}});b("extend-esri")&&z.setObject("symbol.MarkerSymbol",E,p);return E})},"esri/symbols/Symbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../Color".split(" "),function(E,z,b,w,p,n){E=E(null,{declaredClass:"esri.symbol.Symbol",
color:new n([0,0,0,1]),type:null,constructor:function(l){l&&z.isObject(l)&&(z.mixin(this,l),this.color&&p.isDefined(this.color[0])&&(this.color=n.toDojoColor(this.color)),(l=this.type)&&0===l.indexOf("esri")&&(this.type={esriSMS:"simplemarkersymbol",esriPMS:"picturemarkersymbol",esriSLS:"simplelinesymbol",esriCLS:"cartographiclinesymbol",esriSFS:"simplefillsymbol",esriPFS:"picturefillsymbol",esriTS:"textsymbol",esriSHD:"shieldlabelsymbol"}[l]))},setColor:function(l){this.color=l;return this},toJson:function(){return{color:n.toJsonColor(this.color)}}});
b("extend-esri")&&z.setObject("symbol.Symbol",E,w);return E})},"esri/symbols/SimpleMarkerSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has dojox/gfx/_base ../kernel ../lang ./MarkerSymbol ./SimpleLineSymbol".split(" "),function(E,z,b,w,p,n,l,q,f){var c={STYLE_CIRCLE:"circle",STYLE_SQUARE:"square",STYLE_TRIANGLE:"triangle",STYLE_CROSS:"cross",STYLE_X:"x",STYLE_DIAMOND:"diamond",STYLE_PATH:"path",STYLE_TARGET:"target"},a={style:c.STYLE_CIRCLE,color:[255,255,255,
.25],size:12,angle:0,xoffset:0,yoffset:0};E=E(q,{declaredClass:"esri.symbol.SimpleMarkerSymbol",type:"simplemarkersymbol",_styles:{circle:"esriSMSCircle",square:"esriSMSSquare",triangle:"esriSMSTriangle",cross:"esriSMSCross",x:"esriSMSX",diamond:"esriSMSDiamond",path:"esriSMSPath"},constructor:function(d,e,h,m){d?z.isString(d)?(this.style=d,e&&(this.size=e),h&&(this.outline=h),m&&(this.color=m)):(this.style=l.valueOf(this._styles,this.style),d.outline&&(this.outline=new f(d.outline))):(z.mixin(this,
a),this.size=p.pt2px(this.size),this.outline=new f(this.outline),this.color=new b(this.color));this.style||(this.style=c.STYLE_CIRCLE)},setStyle:function(d){this.style=d;return this},setPath:function(d){this.path=d;this.setStyle(c.STYLE_PATH);return this},setOutline:function(d){this.outline=d;return this},getStroke:function(){return this.outline&&this.outline.getStroke()},getFill:function(){return this.color},_setDim:function(d,e,h){this._targetWidth=d;this._targetHeight=e;this._spikeSize=h},getShapeDescriptors:function(){var d,
e=this.style,h=(this.size||p.pt2px(a.size))/2,m=0-h,g=0+h,k=0-h,x=0+h;switch(e){case c.STYLE_CIRCLE:var v={type:"circle",cx:0,cy:0,r:h};var y=this.getFill();if(d=this.getStroke())d.style=d.style||"Solid";break;case c.STYLE_CROSS:v={type:"path",path:"M "+m+",0 L "+g+",0 M 0,"+k+" L 0,"+x+" E"};y=null;d=this.getStroke();break;case c.STYLE_DIAMOND:v={type:"path",path:"M "+m+",0 L 0,"+k+" L "+g+",0 L 0,"+x+" L "+m+",0 Z"};y=this.getFill();d=this.getStroke();break;case c.STYLE_SQUARE:v={type:"path",path:"M "+
m+","+x+" L "+m+","+k+" L "+g+","+k+" L "+g+","+x+" L "+m+","+x+" Z"};y=this.getFill();d=this.getStroke();break;case c.STYLE_TRIANGLE:v={type:"path",path:"M "+m+","+x+" L 0,"+k+" L "+g+","+x+" L "+m+","+x+" Z"};y=this.getFill();d=this.getStroke();break;case c.STYLE_X:v={type:"path",path:"M "+m+","+x+" L "+g+","+k+" M "+m+","+k+" L "+g+","+x+" E"};y=null;d=this.getStroke();break;case c.STYLE_PATH:v={type:"path",path:this.path||""},y=this.getFill(),d=this.getStroke()}return{defaultShape:v,fill:y,stroke:d}},
toJson:function(){var d=this.style,e=this.outline,h=z.mixin(this.inherited("toJson",arguments),{type:"esriSMS",style:this._styles[d]||"esriSMSCircle"});e&&(h.outline=e.toJson());"x"===d||"cross"===d?delete h.color:"target"===d&&(h.style="esriSMSSquare",delete h.color,0<this._targetHeight&&0<this._targetWidth&&(h.size=p.px2pt(Math.max(this._targetHeight,this._targetWidth))));h.path=this.path;return l.fixJson(h)}});z.mixin(E,c);E.defaultProps=a;w("extend-esri")&&(z.setObject("symbol.SimpleMarkerSymbol",
E,n),n.symbol.defaultSimpleMarkerSymbol=a);return E})},"esri/symbols/SimpleLineSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has dojox/gfx/_base ../kernel ../lang ./LineSymbol".split(" "),function(E,z,b,w,p,n,l,q){var f={STYLE_SOLID:"solid",STYLE_DASH:"dash",STYLE_DOT:"dot",STYLE_DASHDOT:"dashdot",STYLE_DASHDOTDOT:"longdashdotdot",STYLE_NULL:"none",STYLE_SHORTDASH:"shortdash",STYLE_SHORTDOT:"shortdot",STYLE_SHORTDASHDOT:"shortdashdot",STYLE_SHORTDASHDOTDOT:"shortdashdotdot",
STYLE_LONGDASH:"longdash",STYLE_LONGDASHDOT:"longdashdot"},c={color:[0,0,0,1],style:f.STYLE_SOLID,width:1};E=E(q,{declaredClass:"esri.symbol.SimpleLineSymbol",type:"simplelinesymbol",marker:null,_styles:{solid:"esriSLSSolid",dash:"esriSLSDash",dot:"esriSLSDot",dashdot:"esriSLSDashDot",longdashdotdot:"esriSLSDashDotDot",none:"esriSLSNull",insideframe:"esriSLSInsideFrame",shortdash:"esriSLSShortDash",shortdot:"esriSLSShortDot",shortdashdot:"esriSLSShortDashDot",shortdashdotdot:"esriSLSShortDashDotDot",
longdash:"esriSLSLongDash",longdashdot:"esriSLSLongDashDot"},constructor:function(a,d,e){a?z.isString(a)?(this.style=a,d&&(this.color=d),e&&(this.width=e)):(this.style=l.valueOf(this._styles,a.style)||f.STYLE_SOLID,this.marker=a.marker):(z.mixin(this,c),this.color=new b(this.color),this.width=p.pt2px(this.width))},setStyle:function(a){this.style=a;return this},setMarker:function(a){this.marker=a},getStroke:function(){return this.style===f.STYLE_NULL||0===this.width?null:{color:this.color,style:this.style,
width:this.width}},getFill:function(){return null},getShapeDescriptors:function(){return{defaultShape:{type:"path",path:"M -15,0 L 15,0 E"},fill:null,stroke:this.getStroke()}},toJson:function(){return l.fixJson(z.mixin(this.inherited("toJson",arguments),{type:"esriSLS",style:this._styles[this.style],marker:this.marker?z.clone(this.marker):void 0}))}});z.mixin(E,f);E.defaultProps=c;w("extend-esri")&&(z.setObject("symbol.SimpleLineSymbol",E,n),n.symbol.defaultSimpleLineSymbol=c);return E})},"esri/symbols/LineSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ./Symbol".split(" "),
function(E,z,b,w,p,n){E=E(n,{declaredClass:"esri.symbol.LineSymbol",constructor:function(l){z.isObject(l)?this.width=w.pt2px(this.width):this.width=12},setWidth:function(l){this.width=l;return this},toJson:function(){var l=w.px2pt(this.width);l=isNaN(l)?void 0:l;return z.mixin(this.inherited("toJson",arguments),{width:l})}});b("extend-esri")&&z.setObject("symbol.LineSymbol",E,p);return E})},"esri/symbols/utils":function(){define("dojo/_base/lang dojo/_base/window dojo/has dojox/gfx ../kernel ../Color".split(" "),
function(E,z,b,w,p,n){function l(e){e.removeAttribute("marker-start");e.removeAttribute("marker-end");e.removeAttribute("opacity")}function q(e,h){for(var m in h)e.setAttribute(m,h[m])}function f(e,h,m){h="url(#"+h.getAttribute("id")+")";e.rawNode.setAttribute("marker-"+m,h)}var c=-1!==w.renderer.toLowerCase().indexOf("svg"),a=9===b("ie"),d={marker:{markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},spear:{marker:{end:{viewBox:"0 0 25.4 23.43",refX:"20",refY:"12.76"},start:{viewBox:"-25.4 0 25.4 23.43",
refX:"-20",refY:"12.76"}},path:{common:{d:"M1.63 23.43 L5.37 16.6 L5.37 8.93 L1.63 2.09 L25.4 12.76 L1.63 23.43 Z","stroke-width":"0","fill-opacity":"1"},start:{transform:"matrix(-1, 0, 0, 1, 0, 0)"}}}};w={applyLineMarker:function(e,h,m,g){if(c&&!a){var k=e&&e.rawNode,x=h.marker;m=m||h.color;k&&"none"!==h.style&&m&&x&&"arrow"===x.style&&x.placement?k.getTotalLength&&0===k.getTotalLength()?l(k):(h=-1!==x.placement.indexOf("begin"),x=-1!==x.placement.indexOf("end"),h||x?(k.removeAttribute("stroke-opacity"),
k.setAttribute("opacity",m.a),h?(h=g(e,m,"spear","start"),f(e,h,"start")):k.removeAttribute("marker-start"),x?(m=g(e,m,"spear","end"),f(e,m,"end")):k.removeAttribute("marker-end")):l(k)):k&&l(k)}},createSVGMarker:function(e,h,m,g){m=d[m];var k=z.doc.createElementNS("http://www.w3.org/2000/svg","marker");k.setAttribute("id",h);q(k,d.marker);q(k,m.marker[g]);h=z.doc.createElementNS("http://www.w3.org/2000/svg","path");h.setAttribute("fill",e.toCss());q(h,m.path.common);q(h,m.path[g]);k.appendChild(h);
return k},create2DColorRamp:function(e){var h=e.surface.createGroup(),m=e.colors,g=e.numClasses;e=(e.size||75)/g;for(var k=0;k<g;k++)for(var x=k*e,v=0;v<g;v++){var y=m[k][v];h.createRect({x:v*e,y:x,width:e,height:e}).setFill(y).setStroke(null)}return h},setSymbolFillColor:function(e,h){if(e)switch(h=h?new n(h):null,e.type){case "simplemarkersymbol":"cross"===e.style||"x"===e.style?e.outline&&e.outline.setColor(h):e.setColor(h);break;case "simplelinesymbol":case "cartographiclinesymbol":case "simplefillsymbol":case "shieldlabelsymbol":case "textsymbol":e.setColor(h)}}};
b("extend-esri")&&E.setObject("renderer.utils",w,p);return w})},"esri/layers/TileInfo":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ../SpatialReference ../geometry/Point ./LOD".split(" "),function(E,z,b,w,p,n,l,q,f){E=E(null,{declaredClass:"esri.layers.TileInfo",constructor:function(c){z.mixin(this,c);this.width=this.cols;this.height=this.rows;this._levelToLOD={};c=this.spatialReference;var a=this.origin;c&&(c=this.spatialReference=new l(c.toJson?
c.toJson():c));a&&(this.origin=new q(a.toJson?a.toJson():a),!a.spatialReference&&c&&this.origin.setSpatialReference(new l(c.toJson())));this.lods=b.map(this.lods,function(h){return new f(h)});b.forEach(this.lods,function(h){this._levelToLOD[h.level]=h},this);c=!1;a=this.spatialReference;var d=this.origin;if(a&&d){var e=a._getInfo();e&&(c=a._isWrappable()&&Math.abs(e.origin[0]-d.x)<=e.dx)}this.isWrappable=c;this._initializeUpsampleLevels()},toJson:function(){return n.fixJson({rows:this.rows,cols:this.cols,
dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin&&this.origin.toJson(),spatialReference:this.spatialReference&&this.spatialReference.toJson(),lods:this.lods&&b.map(this.lods,function(c){return c.toJson()})})},lodAt:function(c){return this._levelToLOD&&this._levelToLOD[c]||null},updateTileInfo:function(c){var a=this.lodAt(c.level),d=a.resolution*this.width;a=a.resolution*this.height;c.id=c.level+"/"+c.row+"/"+c.col;c.extent||(c.extent=[0,0,0,0]);c.extent[0]=
this.origin.x+c.col*d;c.extent[1]=this.origin.y-(c.row+1)*a;c.extent[2]=c.extent[0]+d;c.extent[3]=c.extent[1]+a},upsampleTile:function(c){var a=this._upsampleLevels[c.level];if(!a||-1===a.parentLevel)return!1;c.level=a.parentLevel;c.row=Math.floor(c.row/a.factor+.001);c.col=Math.floor(c.col/a.factor+.001);this.updateTileInfo(c);return!0},_initializeUpsampleLevels:function(){var c=this.lods;this._upsampleLevels=[];for(var a=null,d=0;d<c.length;d++){var e=c[d];this._upsampleLevels[e.level]={parentLevel:a?
a.level:-1,factor:a?a.resolution/e.resolution:0};a=e}}});w("extend-esri")&&z.setObject("layers.TileInfo",E,p);return E})},"esri/layers/LOD":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(E,z,b,w,p){E=E(null,{declaredClass:"esri.layers.LOD",constructor:function(n){z.mixin(this,n)},toJson:function(){return p.fixJson({level:this.level,levelValue:this.levelValue,resolution:this.resolution,scale:this.scale})}});b("extend-esri")&&z.setObject("layers.LOD",
E,w);return E})},"esri/layers/ArcGISTiledMapServiceLayer":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/json dojo/has dojo/io-query ../kernel ../urlUtils ../SpatialReference ./TiledMapServiceLayer ./ArcGISMapServiceLayer ./TileInfo ./TimeInfo ./TileMap".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m){z=z([a,d],{declaredClass:"esri.layers.ArcGISTiledMapServiceLayer",_agolAttrs:"Canvas/World_Dark_Gray_Base Canvas/World_Dark_Gray_Reference Canvas/World_Light_Gray_Base Canvas/World_Light_Gray_Reference Elevation/World_Hillshade Ocean/World_Ocean_Base Ocean/World_Ocean_Reference Ocean_Basemap Reference/World_Boundaries_and_Places Reference/World_Boundaries_and_Places_Alternate Reference/World_Transportation World_Imagery World_Street_Map World_Topo_Map".split(" "),
_isReference:!1,_referenceLayers:"Canvas/World_Dark_Gray_Reference Canvas/World_Light_Gray_Reference Ocean/World_Ocean_Reference Reference/World_Boundaries_and_Places Reference/World_Boundaries_and_Places_Alternate Reference/World_Reference_Overlay Reference/World_Transportation".split(" "),constructor:function(g,k){k&&(k.roundrobin&&(E.deprecated(this.declaredClass+" : Constructor option 'roundrobin' deprecated. Use option 'tileServers'."),k.tileServers=k.roundrobin),this._setTileServers(k.tileServers),
this._loadCallback=k.loadCallback);this._params=b.mixin({},this._url.query);this._initLayer=b.hitch(this,this._initLayer);(g=k&&k.resourceInfo)?this._initLayer(g):(this._load=b.hitch(this,this._load),this._load())},_TILE_FORMATS:{PNG:"png",PNG8:"png",PNG24:"png",PNG32:"png",JPG:"jpg",JPEG:"jpg",GIF:"gif"},_setTileServers:function(g){if(g&&0<g.length){this.tileServers=g;var k,x=g.length;for(k=0;k<x;k++)g[k]=f.urlToObject(g[k]).path}},_initLayer:function(g,k){this.inherited(arguments);this.resourceInfo=
p.toJson(g);this.tileInfo=new e(g.tileInfo);!1!==this.resampling&&(g.capabilities&&-1<g.capabilities.indexOf("Tilemap")?(this.resampling=!0,this.tileMap=new m(this)):this.resampling=!!g.resampling);!this.spatialReference&&this.tileInfo.spatialReference&&(this.spatialReference=new c(this.tileInfo.spatialReference.toJson()));this.isPNG32="PNG24"===this.tileInfo.format||"PNG32"===this.tileInfo.format;g.timeInfo&&(this.timeInfo=new h(g.timeInfo));g.mensurationCapabilities&&(this.mensurationCapabilities=
g.mensurationCapabilities);var x=this._url.path,v=this._loadCallback,y=f.getProtocolForWebResource(!0),u=x.match(/^https?:\/\/(server|services)\.arcgisonline\.com\/arcgis\/rest\/services\/([^\/]+(\/[^\/]+)*)\/mapserver/i);u=u&&u[2];if(!this.tileServers)if(g.tileServers)this._setTileServers(g.tileServers);else{var t=-1!==x.search(/^https?:\/\/server\.arcgisonline\.com/i),r=-1!==x.search(/^https?:\/\/services\.arcgisonline\.com/i);(t||r)&&this._setTileServers([x,x.replace(t?/server\.arcgisonline/i:
/services\.arcgisonline/i,t?"services.arcgisonline":"server.arcgisonline")])}if(u){u=u.toLowerCase();for(x=0;x<this._agolAttrs.length;x++)if(t=this._agolAttrs[x],t.toLowerCase()===u){this.hasAttributionData=!0;this.attributionDataUrl=this.attributionDataUrl||y+"//static.arcgis.com/attribution/"+t;break}for(x=0;x<this._referenceLayers.length;x++)if(t=this._referenceLayers[x],t.toLowerCase()===u){this._isReference=!0;break}}this.loaded=!0;this.onLoad(this);v&&(delete this._loadCallback,v(this))},getTileUrl:function(g,
k,x){var v=this.tileServers,y=this._getToken(),u=this._url.query;g=(v?v[k%v.length]:this._url.path)+"/tile/"+g+"/"+k+"/"+x;g=f.upgradeToHTTPS(g);this.resampling&&!this.tileMap&&(g+="?blankTile\x3dfalse");u&&(g=this.resampling&&!this.tileMap?g+("\x26"+l.objectToQuery(u)):g+("?"+l.objectToQuery(u)));!y||u&&u.token||(g+=(-1===g.indexOf("?")?"?":"\x26")+"token\x3d"+y);g=this.addTimestampToURL(g);return f.addProxy(g)}});n("extend-esri")&&b.setObject("layers.ArcGISTiledMapServiceLayer",z,q);return z})},
"esri/layers/TiledMapServiceLayer":function(){define("dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/_base/url dojo/dom-construct dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/dom dojox/collections/ArrayList dojox/gfx/matrix ../kernel ../config ../sniff ../domUtils ../tileUtils ../geometry/Point ../geometry/Rect ../geometry/Extent ./layer".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y,u){E=E(u,{declaredClass:"esri.layers.TiledMapServiceLayer",constructor:function(t,
r){z.connect(this,"onLoad",this,"_initTiledLayer");this._lowestLevel=(this._displayLevels=r?r.displayLevels:null)?this._displayLevels[0]:0;this.resampling=r?r.resampling:void 0;this._resamplingTolerance=r?r.resamplingTolerance:null;this.exclusionAreas=r?r.exclusionAreas:null;t=b.hitch;this._addImage=t(this,this._addImage);this._tileLoadHandler=t(this,this._tileLoadHandler);this._tileErrorHandler=t(this,this._tileErrorHandler);this._popTile=t(this,this._popTile);this._cleanUpRemovedImages=t(this,this._cleanUpRemovedImages);
this._fireOnUpdateEvent=t(this,this._fireOnUpdateEvent);this._transitionEnd=t(this,this._transitionEnd);this._tileMapCallback=t(this,this._tileMapCallback)},opacity:1,isPNG32:!1,_multiple:1,isResampling:!1,_initTiledLayer:function(){var t=this.tileInfo,r=t.lods;this.resampling=null!=this.resampling?this.resampling:!1;this._tileW=t.width;this._tileH=t.height;var B=this.scales=[],C=this._displayLevels,F=-Infinity,A=Infinity,D=this.fullExtent,G=new x(D.xmin,D.ymax);D=new x(D.xmax,D.ymin);var H=k.getContainingTileCoords,
L,aa=r.length;for(L=0;L<aa;L++){var da=r[L];var ha=H(t,G,da);da.startTileRow=0>ha.row?0:ha.row;da.startTileCol=0>ha.col?0:ha.col;ha=H(t,D,da);da.endTileRow=ha.row;da.endTileCol=ha.col;C&&-1===w.indexOf(C,da.level)||(B[L]=da.scale,F=da.scale>F?da.scale:F,A=da.scale<A?da.scale:A)}-Infinity===F||this._hasMin||this.setMinScale(F);Infinity===A||this._hasMax||this.setMaxScale(A);this.setExclusionAreas(this.exclusionAreas);this._patchIE=6<=m("ie")&&7>m("ie")&&(this.isPNG32||"Mixed"===t.format)},isVisibleAtScale:function(t){return t?
u.prototype._isMapAtVisibleScale.call(this,t,!0):!1},_isMapAtVisibleScale:function(t){var r=this.inherited(arguments,[t,!0]);if(r){var B=this._map;r=this.scales;var C=B.getScale(),F=!1,A=B.width>B.height?B.width:B.height;for(B=0;B<r.length;B++)if(Math.abs(r[B]-C)/r[B]<1/A){F=!0;break}r=F}return r},_setMap:function(t,r,B,C){this.inherited(arguments);this._map=t;var F=this._div=n.create("div",null,r),A=t.__visibleDelta,D=z.connect,G=e._css.names,H={position:"absolute",width:t.width+"px",height:t.height+
"px",overflow:"visible"},L=h.defaults.map.zoomDuration;"css-transforms"===t.navigationMode?(H[G.transform]=e._css.translate(-A.x,-A.y),f.set(F,H),delete H[G.transform],H[G.transition]=G.transformName+" "+L+"ms ease",f.set(this._active=n.create("div",null,F),H),this._active._remove=0,this._passives=[]):(H.left=-A.x+"px",H.top=-A.y+"px",f.set(F,H));this._onResizeHandler_connect=D(t,"onResize",this,"_onResizeHandler");this._opacityChangeHandler_connect=D(this,"onOpacityChange",this,"_opacityChangeHandler");
A=this.tileInfo;D=A.spatialReference;G=D._getInfo();(this._wrap=t.wrapAround180&&D._isWrappable()&&Math.abs(G.origin[0]-A.origin.x)<=G.dx)&&k._addFrameInfo(A,G);this.setExclusionAreas(this.exclusionAreas);this.evaluateSuspension();if(this.suspended&&!t.loaded)var aa=z.connect(t,"onLoad",this,function(){z.disconnect(aa);aa=null;this.setExclusionAreas(this.exclusionAreas);this.evaluateSuspension()});return F},_unsetMap:function(t,r){this.suspended||this._suspendImpl();n.destroy(this._div);this._map=
this._div=null;var B=z.disconnect;B(this._onResizeHandler_connect);B(this._opacityChangeHandler_connect);this.inherited(arguments)},onSuspend:function(){this.inherited(arguments);this._suspendImpl()},_suspendImpl:function(){g.hide(this._div);clearTimeout(this._wakeTimer);this._wakeTimer=null;this._disableDrawConnectors();var t=this._tiles,r=this._tileIds,B=this._loadingList,C,F,A=z.disconnect,D=n.destroy;B&&0<B.count&&(B.forEach(function(H){if(C=t[H])A(C._onload_connect),A(C._onerror_connect),A(C._onabort_connect),
C._onload_connect=C._onerror_connect=C._onabort_connect=null}),B.clear(),this._fireUpdateEnd());this._removeList.clear();for(B=r.length-1;0<=B;B--)(C=(F=r[B])&&t[F])&&D(C);if("css-transforms"===this._map.navigationMode){r=this._active;F=this._passives;this._noDom=0;for(B=F.length-1;0<=B;B--){var G=F[B];G._endHandle&&A(G._endHandle);G._matrix=G._multiply=G._endHandle=null;G._marked=G._remove=0;F.splice(B,1);D(G)}r._matrix=r._multiply=null;r._marked=r._remove=0}this._tileIds=this._tiles=this._tileBounds=
this._ct=this._loadingList=this._removeList=this._standby=null},onResume:function(){this.inherited(arguments);this._tileIds=[];this._tiles=[];this._tileBounds=[];this._ct=null;this._removeList=new a;this._loadingList=new a;g.show(this._div);this._enableDrawConnectors();this._wakeTimer=this._wakeTimer||setTimeout(b.hitch(this,function(){this.suspended||this._onExtentChangeHandler(this._map.extent,null,!0,this._map.__LOD)}),0)},_enableDrawConnectors:function(){var t=this._map,r=z.connect;if("css-transforms"===
t.navigationMode){if(this._onScaleHandler_connect=r(t,"onScale",this,this._onScaleHandler),m("esri-mobile")){this._standby=[];var B=this,C=function(){B._noDom=1};this._onPanStartHandler_connect=r(t,"onPanStart",C);this._onZoomStartHandler_connect=r(t,"onZoomStart",C)}}else this._onZoomHandler_connect=r(t,"onZoom",this,"_onZoomHandler");this._onPanHandler_connect=r(t,"onPan",this,"_onPanHandler");this._onExtentChangeHandler_connect=r(t,"onExtentChange",this,"_onExtentChangeHandler")},_disableDrawConnectors:function(){var t=
z.disconnect;t(this._onPanHandler_connect);t(this._onZoomHandler_connect);t(this._onScaleHandler_connect);t(this._onExtentChangeHandler_connect);t(this._onPanStartHandler_connect);t(this._onZoomStartHandler_connect);this._onPanHandler_connect=this._onZoomHandler_connect=this._onScaleHandler_connect=this._onExtentChangeHandler_connect=this._onPanStartHandler_connect=this._onZoomStartHandler_connect=null},_onResizeHandler:function(t,r,B){t={width:r+"px",height:B+"px"};r=f.set;r(this._div,t);if("css-transforms"===
this._map.navigationMode)for(this._active&&r(this._active,t),B=this._passives.length-1;0<=B;B--)r(this._passives[B],t)},_onExtentChangeHandler:function(t,r,B,C){r=this._map;var F=this._standby;clearTimeout(this._wakeTimer);this._wakeTimer=null;if(!r._isPanningOrZooming()){if("css-transforms"===r.navigationMode){if(B)for(C=this._passives.length-1;0<=C;C--){var A=this._passives[C];f.set(A,e._css.names.transition,"none");A._marked?(this._passives.splice(C,1),A.parentNode&&A.parentNode.removeChild(A),
n.destroy(A)):0<A.childNodes.length&&(A._multiply=A._multiply?d.multiply(A._matrix,A._multiply):A._matrix)}this._noDom=0;if(F&&F.length)for(C=F.length-1;0<=C;C--)A=F[C],f.set(A,"visibility","inherit"),this._popTile(A),F.splice(C,1)}this._fireUpdateStart();this._rrIndex=0;C=k.getCandidateTileInfo(r,this.tileInfo,t);t=r.__visibleDelta;if(!this._ct||C.lod.level!==this._ct.lod.level||B){A=C&&this._ct&&C.lod.level!==this._ct.lod.level;this._ct=C;var D=this._tiles,G=this._tileIds,H=this._tileBounds,L=this._removeList,
aa=G.length;this._cleanUpRemovedImages();for(C=0;C<aa;C++){F=G[C];var da=D[F];H[F]=G[C]=null;"css-transforms"===r.navigationMode&&A&&da.parentNode&&r.fadeOnZoom&&(da._fadeOut=A,da.parentNode._remove++);L.add(da)}B&&(this._tileIds=[],this._tiles=[],this._tileBounds=[])}C=t.x;B=t.y;"css-transforms"===r.navigationMode?(F={},F[e._css.names.transform]=e._css.translate(C,B),f.set(this._div,F)):f.set(this._div,{left:C+"px",top:B+"px"});this.__coords_dx=C;this.__coords_dy=B;this._updateImages(new v(0,0,t.width,
t.height));0===this._loadingList.count?(this._cleanUpRemovedImages(),this.onUpdate(),this._fireUpdateEnd()):this._fireOnUpdate=!0;B=this._tileW;D=this._tileH;t=new v(-t.x,-t.y,t.width,t.height);for(C=this._tileIds.length-1;0<=C;C--)(F=this._tileIds[C])?(A=this._tiles[F],G=q.getMarginBox(A),G=new v(G.l,G.t,B,D),"css-transforms"===r.navigationMode&&(G.x=A._left,G.y=A._top),t.intersects(G)?this._tileBounds[F]=G:(this._loadingList.contains(F)&&this._popTile(A),n.destroy(A),this._tileIds.splice(C,1),delete this._tileBounds[F],
delete this._tiles[F])):(this._tileIds.splice(C,1),delete this._tileBounds[F],delete this._tiles[F])}},_onPanHandler:function(t,r){t=this._map;r=t.__visibleDelta.offset(r.x,r.y);this.__coords_dx=this.__coords_dy=0;"css-transforms"===t.navigationMode?(t={},t[e._css.names.transform]=e._css.translate(r.x,r.y),f.set(this._div,t),m("esri-mobile")||this._updateImages({x:-r.x,y:-r.y,width:r.width,height:r.height})):(f.set(this._div,{left:r.x+"px",top:r.y+"px"}),this._updateImages({x:-r.x,y:-r.y,width:r.width,
height:r.height}));0<this._loadingList.count&&(this._fireUpdateStart(),this._fireOnUpdate=!0)},_onScaleHandler:function(t,r){var B,C={},F=e._css.names,A=this._map,D=h.defaults.map.zoomDuration;for(B=this._passives.length-1;0<=B;B--){var G=this._passives[B];0===G.childNodes.length?(this._passives.splice(B,1),n.destroy(G)):("none"===G.style[F.transition]&&f.set(G,F.transition,F.transformName+" "+D+"ms ease"),f.set(G,F.transition,r?"none":F.transformName+" "+D+"ms ease"),G._matrix=t,C[F.transform]=e._css.matrix(G._multiply?
d.multiply(t,G._multiply):t),f.set(G,C))}this._active&&0===this._active.childNodes.length||(f.set(this._active,F.transition,r?"none":F.transformName+" "+D+"ms ease"),this._active._matrix=t,C[F.transform]=e._css.matrix(this._active._matrix),f.set(this._active,C),this._passives.push(this._active),C={position:"absolute",width:A.width+"px",height:A.height+"px",overflow:"visible"},C[F.transition]=F.transformName+" "+D+"ms ease",f.set(this._active=n.create("div",null,this._div),C),this._active._remove=
0,A.fadeOnZoom&&n.place(this._active,this._div,"first"))},_onZoomHandler:function(t,r,B){t=q.getMarginBox(this._div);B=B.offset(-t.l,-t.t);this._previousScale&&1!==r||(this._previousScale=1);var C,F=this._tileW*r,A=this._tileH*r,D=this._tileBounds,G=this._tiles,H=this._previousScale,L=this._multiple,aa=f.set,da,ha;if((t=m("ie"))&&8>t)w.forEach(this._tileIds,function(Ca){ha="";C=D[Ca];da=G[Ca].style.margin.split(" ");w.forEach(da,function(la){""!==ha&&(ha+=" ");la=parseFloat(la);ha+=la/H*r+"px"});
aa(G[Ca],{left:C.x-(F-C.width)*(B.x-C.x)/C.width+"px",top:C.y-(A-C.height)*(B.y-C.y)/C.height+"px",margin:1!==L&&-1===ha.indexOf("NaN")?ha:"",zoom:r})});else{var ia=F*L,ba=A*L,ja,pa;w.forEach(this._tileIds,function(Ca){ha="";C=D[Ca];ja=C.x-(F-C.width)*(B.x-C.x)/C.width;pa=C.y-(A-C.height)*(B.y-C.y)/C.height;da=G[Ca].style.margin.split(" ");w.forEach(da,function(la){""!==ha&&(ha+=" ");la=parseFloat(la);ha+=la/H*r+"px"});aa(G[Ca],{left:ja+"px",top:pa+"px",margin:1!==L&&-1===ha.indexOf("NaN")?ha:"",
width:ia+"px",height:ba+"px"})})}this._previousScale=r},_updateImages:function(t){if(this._ct){var r=this._tileW,B=this._tileH,C=this._ct;var F=C.lod;C=C.tile;var A=C.offsets,D=C.coords,G=D.row;D=D.col;var H=F.level,L=this.opacity,aa=this._tileIds,da=this._loadingList,ha=this._addImage,ia=this._map.id,ba=this.id,ja=t.x,pa=t.y,Ca=F.startTileRow,la=F.endTileRow,ua=F.startTileCol,Aa=F.endTileCol,M=w.indexOf,Y=A.x-this.__coords_dx,ka=A.y-this.__coords_dy;var N=r-Y+-t.x;var Z=B-ka+-t.y;var na=Math.ceil;
N=0<N?N%r:r-Math.abs(N)%r;Z=0<Z?Z%B:B-Math.abs(Z)%B;ja=0<ja?Math.floor((ja+Y)/r):na((ja-(r-Y))/r);pa=0<pa?Math.floor((pa+ka)/B):na((pa-(B-ka))/B);ka=ja+na((t.width-N)/r);t=pa+na((t.height-Z)/B);if(this._wrap){var za=F._frameInfo;var va=za[0];var S=za[1];za=za[2]}for(Z=ja;Z<=ka;Z++)for(ja=pa;ja<=t;ja++)na=G+ja,N=D+Z,this._wrap&&(N<S?(N%=va,N=N<S?N+va:N):N>za&&(N%=va)),!this._isExcluded(H,na,N)&&na>=Ca&&na<=la&&N>=ua&&N<=Aa&&(F=ia+"_"+ba+"_tile_"+H+"_"+ja+"_"+Z,-1===M(aa,F)&&(da.add(F),aa.push(F),ha(H,
ja,na,Z,N,F,r,B,L,C,A)))}},_cleanUpRemovedImages:function(){var t=this._removeList,r=n.destroy,B,C=e._css.names;t.forEach(function(A){A._fadeOut||(A.style.filter="",A.style.zoom=1,r(A))});if("css-transforms"===this._map.navigationMode)for(B=this._passives.length-1;0<=B;B--){var F=this._passives[B];0===F.childNodes.length?(this._passives.splice(B,1),r(F)):this._map.fadeOnZoom&&!F._marked&&F._remove===F.childNodes.length&&(F._marked=1,2048>e._css.getScaleFromMatrix(f.get(F,C.transform))?(f.set(F,C.transition,
"opacity 0.65s"),f.set(F,"opacity",0),z.disconnect(F._endHandle),F._endHandle=z.connect(F,C.endEvent,this._transitionEnd)):this._transitionEnd({propertyName:"opacity",target:F}))}t.clear()},_transitionEnd:function(t){var r=t.target;"opacity"===t.propertyName&&(z.disconnect(r._endHandle),r._endHandle=null,t=w.indexOf(this._passives,r),-1<t&&this._passives.splice(t,1),r.parentNode&&r.parentNode.removeChild(r),n.destroy(r))},_addImage:function(t,r,B,C,F,A,D,G,H,L,aa){if(this._patchIE)L=this._tiles[A]=
n.create("div"),L.id=A,l.add(L,"layerTile"),f.set(L,{left:D*C-aa.x+"px",top:G*r-aa.y+"px",width:D+"px",height:G+"px",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d'"+this.getTileUrl(t,B,F)+"', sizingMethod\x3d'scale')"}),1>H&&f.set(L,"opacity",H),t=L.appendChild(n.create("div")),f.set(t,{opacity:0,width:D+"px",height:G+"px"}),this._div.appendChild(L),L=null,this._loadingList.remove(A),this._fireOnUpdateEvent();else{L=this._tiles[A]=n.create("img");var da=z.connect;L.id=A;L._uid=
t+"_"+B+"_"+F;L.alt="";l.add(L,"layerTile");C=D*C-aa.x;aa=G*r-aa.y;r=this._map;var ha=e._css.names;D={width:D+"px",height:G+"px",visibility:"hidden"};"css-transforms"===r.navigationMode?(D[ha.transform]=e._css.translate(C,aa),f.set(L,D),L._left=C,L._top=aa):(D.left=C+"px",D.top=aa+"px",f.set(L,D));1>H&&f.set(L,"opacity",H);L._onload_connect=da(L,"onload",this,"_tileLoadHandler");L._onerror_connect=da(L,"onerror",b.hitch(this,"_tileErrorHandler",B,F));L._onabort_connect=da(L,"onabort",this,"_tileAbortHandler");
if(this.tileMap)this.tileMap.getTile(t,B,F,A,this._tileMapCallback);else if(A=this.getTileUrl(t,B,F,L))this._failedRequests&&this._failedRequests[A]?(f.set(L,this._failedRequests[A].css),L.src=this._failedRequests[A].src,this._multiple=parseInt(this._failedRequests[A].css.width)/this._tileW,this.isResampling=1!==this._multiple):(this._multiple=1,this.isResampling=!1,L.src=A);"css-transforms"===r.navigationMode?this._active.appendChild(L):this._div.appendChild(L);L=null}},_tileMapCallback:function(t,
r){if(!this.suspended){var B=this._tiles[r.id]||c.byId(r.id);var C=r.level+"_"+r.row+"_"+r.col;B&&B._uid===C?(this._multiple=2*(r.level-t.level)||1,this.isResampling=1!==this._multiple,r=this.tileMap.style(t,r),f.set(B,r),B.src=this.getTileUrl(t.level,t.row,t.col)):this._popTile(r)}},getTileUrl:function(t,r,B){},refresh:function(){this.suspended||(this._refreshTS=Date.now(),this._onExtentChangeHandler(this._map.extent,null,!0,this._map.__LOD))},_popTile:function(t){var r=z.disconnect;r(t._onload_connect);
r(t._onerror_connect);r(t._onabort_connect);t._onload_connect=t._onerror_connect=t._onabort_connect=null;this._loadingList.remove(t.id);this._fireOnUpdateEvent()},_tileLoadHandler:function(t){t=t.currentTarget;this._noDom?this._standby.push(t):(f.set(t,"visibility","inherit"),this._popTile(t))},_tileAbortHandler:function(t){t=t.currentTarget;this.onError(Error("Unable to load tile: "+t.src));f.set(t,"visibility","hidden");this._popTile(t)},_tileErrorHandler:function(t,r,B){B=B.currentTarget;var C=
!0;if(this.tileMap||!this.resampling)C=!1;else{var F=new p(B.src);F=F.path.split("/");F=parseInt(F[F.length-3]);var A=this._ct.lod.level-F+1;this._multiple=Math.pow(2,A);if(F===this._lowestLevel||0===this._resamplingTolerance||this._resamplingTolerance&&Math.log(this._multiple)/Math.LN2>this._resamplingTolerance)C=!1}C?(this.isResampling=!0,this._resample(B,t,r)):(this.onError(Error("Unable to load tile: "+B.src)),f.set(B,"visibility","hidden"),this._popTile(B))},_resample:function(t,r,B){var C=(new p(t.src)).path.split("/"),
F=this._multiple,A=parseInt(C[C.length-3])-1,D=parseInt(r/F),G=parseInt(B/F);C=B%F;var H=r%F;D=this.getTileUrl(A,D,G);r=this.getTileUrl(A+Math.log(F)/Math.LN2,r,B);F={width:this._tileW*F+"px",height:this._tileH*F+"px",margin:"-"+this._tileW*H+"px 0 0 -"+(this._tileH*C+"px")};this._failedRequests||(this._failedRequests={});this._failedRequests[r]={src:D,css:F};f.set(t,F);m("chrome")&&t.setAttribute("src",null);t.src=D},_fireOnUpdateEvent:function(){0===this._loadingList.count&&(this._cleanUpRemovedImages(),
this._fireOnUpdate&&(this._fireOnUpdate=!1,this.onUpdate(),this._fireUpdateEnd()))},setOpacity:function(t){if(this.opacity!=t)this.onOpacityChange(this.opacity=t)},onOpacityChange:function(){},_opacityChangeHandler:function(t){var r=f.set,B,C;if("css-transforms"===this._map.navigationMode){if(this._active){var F=this._active.childNodes;for(B=F.length-1;0<=B;B--)r(F[B],"opacity",t)}for(B=this._passives.length-1;0<=B;B--)for(F=this._passives[B].childNodes,C=F.length-1;0<=C;C--)r(F[C],"opacity",t)}else for(F=
this._div.childNodes,B=F.length-1;0<=B;B--)r(F[B],"opacity",t)},setExclusionAreas:function(t){this.exclusionAreas=t;if(this.loaded&&this._map&&this._map.loaded){var r=this._map.spatialReference,B=this.tileInfo,C=B.origin,F=B.lods,A=F[0].level,D=F[F.length-1].level,G,H,L;if(this.exclusionAreas&&this.exclusionAreas.length){this._exclusionsPerZoom=[];var aa=0;for(G=t.length;aa<G;aa++){var da=t[aa];if((L=da.geometry)&&"extent"===L.type&&L.xmin<=L.xmax&&L.ymin<=L.ymax){if(!r.equals(L.spatialReference))if(r._canProject(L.spatialReference)){if(r.isWebMercator()){var ha=
x.lngLatToXY(L.xmin,L.ymin);L=x.lngLatToXY(L.xmax,L.ymax)}else ha=x.xyToLngLat(L.xmin,L.ymin,!0),L=x.xyToLngLat(L.xmax,L.ymax,!0);L=new y(ha[0],ha[1],L[0],L[1],r)}else continue;var ia=-1;if(da.minZoom&&-1!==da.minZoom)ia=da.minZoom;else if(da.minScale&&-1!==da.minScale){var ba=0;for(H=F.length;ba<H;ba++)if(F[ba].scale<=da.minScale){ia=F[ba].level;break}}ia=Math.max(ia,A);ha=-1;if(da.maxZoom&&-1!==da.maxZoom)ha=da.maxZoom;else if(da.maxScale&&-1!==da.maxScale)for(ba=0,H=F.length;ba<H;ba++)if(F[ba].scale<
da.maxScale){ha=F[ba-1].level;break}else if(F[ba].scale===da.maxScale){ha=F[ba].level;break}ha=-1===ha?D:Math.min(ha,D);for(da=ia;da<=ha;da++){ba=0;for(H=F.length;ba<H;ba++)if(F[ba].level===da){var ja=F[ba];break}ja&&(this._exclusionsPerZoom[da]||(this._exclusionsPerZoom[da]=[]),ba=1/ja.resolution/B.rows,H=1/ja.resolution/B.cols,this._exclusionsPerZoom[da].push({rowFrom:Math.floor((C.y-L.ymax)*ba),rowTo:Math.ceil((C.y-L.ymin)*ba),colFrom:Math.floor((L.xmin-C.x)*H),colTo:Math.ceil((L.xmax-C.x)*H)}))}}}}else this._exclusionsPerZoom=
null;this.suspended||this._onExtentChangeHandler(this._map.extent,null,!0,this._map.__LOD)}},_isExcluded:function(t,r,B){var C;if(!this._exclusionsPerZoom)return!1;var F=this._exclusionsPerZoom[t];if(!F)return!1;var A=0;for(C=F.length;A<C;A++)if(t=F[A],r>=t.rowFrom&&r<t.rowTo&&B>=t.colFrom&&B<t.colTo)return!0;return!1}});m("extend-esri")&&b.setObject("layers.TiledMapServiceLayer",E,e);return E})},"dojox/collections/ArrayList":function(){define(["dojo/_base/kernel","dojo/_base/array","./_base"],function(E,
z,b){b.ArrayList=function(w){var p=[];w&&(p=p.concat(w));this.count=p.length;this.add=function(n){p.push(n);this.count=p.length};this.addRange=function(n){if(n.getIterator)for(n=n.getIterator();!n.atEnd();)this.add(n.get());else for(var l=0;l<n.length;l++)p.push(n[l]);this.count=p.length};this.clear=function(){p.splice(0,p.length);this.count=0};this.clone=function(){return new b.ArrayList(p)};this.contains=function(n){for(var l=0;l<p.length;l++)if(p[l]==n)return!0;return!1};this.forEach=function(n,
l){E.forEach(p,n,l)};this.getIterator=function(){return new b.Iterator(p)};this.indexOf=function(n){for(var l=0;l<p.length;l++)if(p[l]==n)return l;return-1};this.insert=function(n,l){p.splice(n,0,l);this.count=p.length};this.item=function(n){return p[n]};this.remove=function(n){n=this.indexOf(n);0<=n&&p.splice(n,1);this.count=p.length};this.removeAt=function(n){p.splice(n,1);this.count=p.length};this.reverse=function(){p.reverse()};this.sort=function(n){n?p.sort(n):p.sort()};this.setByIndex=function(n,
l){p[n]=l;this.count=p.length};this.toArray=function(){return[].concat(p)};this.toString=function(n){return p.join(n||",")}};return b.ArrayList})},"dojox/collections/_base":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/array"],function(E,z,b){E=z.getObject("dojox.collections",!0);E.DictionaryEntry=function(w,p){this.key=w;this.value=p;this.valueOf=function(){return this.value};this.toString=function(){return String(this.value)}};E.Iterator=function(w){var p=0;this.element=w[p]||
null;this.atEnd=function(){return p>=w.length};this.get=function(){return this.atEnd()?null:this.element=w[p++]};this.map=function(n,l){return b.map(w,n,l)};this.reset=function(){p=0;this.element=w[p]}};E.DictionaryIterator=function(w){var p=[],n={},l;for(l in w)n[l]||p.push(w[l]);var q=0;this.element=p[q]||null;this.atEnd=function(){return q>=p.length};this.get=function(){return this.atEnd()?null:this.element=p[q++]};this.map=function(f,c){return b.map(p,f,c)};this.reset=function(){q=0;this.element=
p[q]}};return E})},"esri/layers/ArcGISMapServiceLayer":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ../request ../SpatialReference ../geometry/Extent ./LayerInfo".split(" "),function(E,z,b,w,p,n,l,q,f,c){E=E(null,{declaredClass:"esri.layers.ArcGISMapServiceLayer",infoTemplates:null,constructor:function(a,d){this.layerInfos=[];d&&(this.infoTemplates=d.infoTemplates||null);a=this._params={};if(d=this._url.query?this._url.query.token:null)a.token=
d},setInfoTemplates:function(a){this.infoTemplates=a},_load:function(){l({url:this._url.path,content:z.mixin({f:"json"},this._params),callbackParamName:"callback",load:this._initLayer,error:this._errorHandler})},spatialReference:null,initialExtent:null,fullExtent:null,description:null,units:null,_initLayer:function(a,d){try{this._findCredential();(this.credential&&this.credential.ssl||a&&a._ssl)&&this._useSSL();this.description=a.description;this.copyright=a.copyrightText;this.spatialReference=a.spatialReference&&
new q(a.spatialReference);this.initialExtent=a.initialExtent&&new f(a.initialExtent);this.fullExtent=a.fullExtent&&new f(a.fullExtent);this.units=a.units;this.maxRecordCount=a.maxRecordCount;this.maxImageHeight=a.maxImageHeight;this.maxImageWidth=a.maxImageWidth;this.supportsDynamicLayers=a.supportsDynamicLayers;var e=this.layerInfos=[],h=a.layers,m=this._defaultVisibleLayers=[];b.forEach(h,function(g,k){e[k]=new c(g);g.defaultVisibility&&m.push(g.id)});this.visibleLayers||(this.visibleLayers=m);
this.version=a.currentVersion;this.cimVersion=a.cimVersion;this.version||(this.version="capabilities"in a||"tables"in a?10:"supportedImageFormatTypes"in a?9.31:9.3);this.capabilities=a.capabilities;n.isDefined(a.minScale)&&!this._hasMin&&this.setMinScale(a.minScale);n.isDefined(a.maxScale)&&!this._hasMax&&this.setMaxScale(a.maxScale)}catch(g){this._errorHandler(g)}}});w("extend-esri")&&z.setObject("layers.ArcGISMapServiceLayer",E,p);return E})},"esri/layers/LayerInfo":function(){define(["dojo/_base/declare",
"dojo/_base/lang","dojo/has","../kernel","../lang"],function(E,z,b,w,p){E=E(null,{declaredClass:"esri.layers.LayerInfo",constructor:function(n){z.mixin(this,n)},toJson:function(){return p.fixJson({defaultVisibility:this.defaultVisibility,id:this.id,maxScale:this.maxScale,minScale:this.minScale,name:this.name,parentLayerId:this.parentLayerId,subLayerIds:this.subLayerIds})}});b("extend-esri")&&z.setObject("layers.LayerInfo",E,w);return E})},"esri/layers/TimeInfo":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../TimeExtent ./TimeReference ./LayerTimeOptions".split(" "),
function(E,z,b,w,p,n,l){E=E(null,{declaredClass:"esri.layers.TimeInfo",constructor:function(q){null!==q&&(z.mixin(this,q),q.exportOptions&&(this.exportOptions=new l(q.exportOptions)),this.timeExtent=null,q.timeExtent&&2===q.timeExtent.length&&(this.timeExtent=new p(q.timeExtent)),this.timeReference=new n(q.timeReference))}});z.mixin(E,{UNIT_CENTURIES:"esriTimeUnitsCenturies",UNIT_DAYS:"esriTimeUnitsDays",UNIT_DECADES:"esriTimeUnitsDecades",UNIT_HOURS:"esriTimeUnitsHours",UNIT_MILLISECONDS:"esriTimeUnitsMilliseconds",
UNIT_MINUTES:"esriTimeUnitsMinutes",UNIT_MONTHS:"esriTimeUnitsMonths",UNIT_SECONDS:"esriTimeUnitsSeconds",UNIT_UNKNOWN:"esriTimeUnitsUnknown",UNIT_WEEKS:"esriTimeUnitsWeeks",UNIT_YEARS:"esriTimeUnitsYears"});b("extend-esri")&&z.setObject("layers.TimeInfo",E,w);return E})},"esri/TimeExtent":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","./kernel"],function(E,z,b,w){var p=E(null,{declaredClass:"esri.TimeExtent",constructor:function(n){if(1<arguments.length)this._create(arguments[0],
arguments[1]);else if(n)if(z.isArray(n)){var l=n[0],q=n[1];this.startTime=null===l||"null"===l?null:new Date(l);this.endTime=null===q||"null"===q?null:new Date(q)}else n instanceof Date&&this._create(n,null)},offset:function(n,l){var q=new p,f=this.startTime,c=this.endTime;f&&(q.startTime=this._getOffsettedDate(f,n,l));c&&(q.endTime=this._getOffsettedDate(c,n,l));return q},intersection:function(n){return this._intersection(this,n)},toJson:function(){var n=[],l=this.startTime;n.push(l?l.getTime():
"null");l=this.endTime;n.push(l?l.getTime():"null");return n},_create:function(n,l){this.startTime=n?new Date(n.getTime()):null;this.endTime=l?new Date(l.getTime()):null},_refData:{esriTimeUnitsMilliseconds:{getter:"getUTCMilliseconds",setter:"setUTCMilliseconds",multiplier:1},esriTimeUnitsSeconds:{getter:"getUTCSeconds",setter:"setUTCSeconds",multiplier:1},esriTimeUnitsMinutes:{getter:"getUTCMinutes",setter:"setUTCMinutes",multiplier:1},esriTimeUnitsHours:{getter:"getUTCHours",setter:"setUTCHours",
multiplier:1},esriTimeUnitsDays:{getter:"getUTCDate",setter:"setUTCDate",multiplier:1},esriTimeUnitsWeeks:{getter:"getUTCDate",setter:"setUTCDate",multiplier:7},esriTimeUnitsMonths:{getter:"getUTCMonth",setter:"setUTCMonth",multiplier:1},esriTimeUnitsYears:{getter:"getUTCFullYear",setter:"setUTCFullYear",multiplier:1},esriTimeUnitsDecades:{getter:"getUTCFullYear",setter:"setUTCFullYear",multiplier:10},esriTimeUnitsCenturies:{getter:"getUTCFullYear",setter:"setUTCFullYear",multiplier:100}},_intersection:function(n,
l){if(n&&l){var q=n.startTime;n=n.endTime;var f=l.startTime;l=l.endTime;q=q?q.getTime():-Infinity;f=f?f.getTime():-Infinity;n=n?n.getTime():Infinity;l=l?l.getTime():Infinity;var c,a;f>=q&&f<=n?c=f:q>=f&&q<=l&&(c=q);n>=f&&n<=l?a=n:l>=q&&l<=n&&(a=l);if(isNaN(c)||isNaN(a))return null;q=new p;q.startTime=-Infinity===c?null:new Date(c);q.endTime=Infinity===a?null:new Date(a);return q}return null},_getOffsettedDate:function(n,l,q){var f=this._refData;n=new Date(n.getTime());l&&q&&(f=f[q],n[f.setter](n[f.getter]()+
l*f.multiplier));return n}});b("extend-esri")&&(w.TimeExtent=p);return p})},"esri/layers/TimeReference":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(E,z,b,w){E=E(null,{declaredClass:"esri.layers.TimeReference",constructor:function(p){p&&z.mixin(this,p)}});b("extend-esri")&&z.setObject("layers.TimeReference",E,w);return E})},"esri/layers/LayerTimeOptions":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(E,
z,b,w,p){E=E(null,{declaredClass:"esri.layers.LayerTimeOptions",constructor:function(n){n&&z.mixin(this,n)},toJson:function(){return p.fixJson({timeDataCumulative:this.timeDataCumulative,timeOffset:this.timeOffset,timeOffsetUnits:this.timeOffsetUnits,useTime:this.useTime})}});b("extend-esri")&&z.setObject("layers.LayerTimeOptions",E,w);return E})},"esri/layers/TileMap":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/Deferred dojo/io-query ../request ../urlUtils".split(" "),
function(E,z,b,w,p,n,l){return E(null,{declaredClass:"esri.layers.TileMap",constructor:function(q){this.layer=q;this._tileMaps={}},getTile:function(q,f,c,a,d){q={id:a,level:q,row:f,col:c};f=this._getResamplingBudget();0<f?this._process({tile:q,requestedTile:q,callback:d,resamplingBudget:f}):(d||this.callback).call(this,q,q)},statusOf:function(q,f,c){var a=this._getResamplingBudget();q={level:q,row:f,col:c};if(0===a)return 1;for(;0<=a;){f=this._tileToTileMap(q);if(!this._tileMaps[f.uid])return-1;f=
this._tileMaps[f.uid];if(!f.promise.isFulfilled())return-1;if(this._isTileAvailable(q,f))return 1;q=this._parentTile(q);if(!q)break;a--}return 0},style:function(q,f){if(q.level!==f.level||q.row!==f.row||q.col!==f.col){var c=this.layer.tileInfo,a=c.lods,d=c.cols;c=c.rows;for(var e,h,m=a.length-1;!e||!h;)e||a[m].level!==q.level||(e=a[m]),h||a[m].level!==f.level||(h=a[m]),m--;a=Math.round(e.resolution/h.resolution);q=f.col%a*-1*d;f=f.row%a*-1*c;a={width:d*a+"px",height:c*a+"px",margin:f+"px 0 0 "+q+
"px","will-change":"transform"};q=0===q?0:-1*q;f=0===f?0:-1*f;a.clip="rect("+f+"px,"+(q+d)+"px,"+(f+c)+"px,"+q+"px)";return a}},_process:function(q){var f=q.tile,c=this._tileToTileMap(f),a=this._parentTile(f);this._getTileMap(c).then(z.hitch(this,function(d){c=d;this._isTileAvailable(f,c)?(q.callback||this.callback).call(this,f,q.requestedTile):0<q.resamplingBudget&&a?(q.resamplingBudget--,q.tile=a,this._process(q)):(q.callback||this.callback).call(this,q.requestedTile,q.requestedTile)}),z.hitch(this,
function(){(q.callback||this.callback).call(this,q.requestedTile,q.requestedTile)}))},_getTileMap:function(q){var f,c,a=null;if(this._tileMaps[q.uid]){q=this._tileMaps[q.uid];var d=q.promise}else{this._tileMaps[q.uid]=q;var e=new w;n({url:this._getTileMapUrl(q.level,q.row,q.col),handleAs:"json",content:{f:"json"},callbackParamName:"callback",timeout:3E3,load:function(h){z.mixin(q,h);if(q.data&&0<q.data.length){c=q.data.length;if(1===c)a=q.data[0];else for(a=q.data[0],f=1;f<c;f++)if(q.data[f]!==a){a=
null;break}null!==a&&(delete q.data,q.value=a);null==q.valid&&(q.valid=!0)}e.resolve(q)},error:function(h){h&&422===h.code?(z.mixin(q,{location:{top:q.row,left:q.col,width:8,height:8},valid:!0,value:0}),e.resolve(q)):e.reject()}});d=q.promise=e.promise}return d},_parentTile:function(q){var f=this.layer.tileInfo.lods,c,a,d=null;b.some(f,function(e,h){return q.level===e.level?(c=e,a=h,!0):!1});0<a&&(f=f[a-1],d={id:q.id,level:f.level,row:Math.floor(q.row*c.resolution/f.resolution+.01),col:Math.floor(q.col*
c.resolution/f.resolution+.01)});return d},_tileToTileMap:function(q){var f=8*Math.floor(q.row/8),c=8*Math.floor(q.col/8);return{uid:q.level+"_"+f+"_"+c,level:q.level,row:f,col:c}},_isTileAvailable:function(q,f){if(f.valid)if(void 0!==f.value)q=f.value;else{var c=f.location.left;var a=f.location.top;q=(q.row-a)*f.location.width+(q.col-c);q=q<f.data.length?f.data[q]:0}else q=0;return q},_getTileMapUrl:function(q,f,c){var a=this.layer,d=a.tileServers,e=a._getToken(),h=a._url.query;q=(d?d[f%d.length]:
a._url.path)+"/tilemap/"+q+"/"+f+"/"+c+"/8/8";h&&(q+="?"+p.objectToQuery(h));!e||h&&h.token||(q+=(-1===q.indexOf("?")?"?":"\x26")+"token\x3d"+e);return q=a.addTimestampToURL(q)},_getResamplingBudget:function(){var q=this.layer,f=0;q.resampling&&(f=q._resamplingTolerance,null===f||void 0===f)&&(f=q.tileInfo.lods.length);return f}})})},"esri/layers/MapImageLayer":function(){define("dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/dom-construct dojo/dom-style ../kernel ../config ../sniff ../domUtils ../geometry/Point ../geometry/webMercatorUtils ./layer".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e){var h=E([e],{declaredClass:"esri.layers.MapImageLayer","-chains-":{constructor:"manual"},constructor:function(m){this.inherited(arguments,[null,m]);this._mapImages=[];var g=b.hitch;this._panStart=g(this,this._panStart);this._pan=g(this,this._pan);this._extentChange=g(this,this._extentChange);this._zoom=g(this,this._zoom);this._zoomStart=g(this,this._zoomStart);this._scale=g(this,this._scale);this._resize=g(this,this._resize);z.connect(this,"onSuspend",this,this._onSuspend);
z.connect(this,"onResume",this,this._onResume);this.loaded=!0;this.onLoad(this)},opacity:1,addImage:function(m){var g=this._mapImages.push(m);--g;m._idx=g;m._layer=this;this._div&&this._createImage(m,g)},removeImage:function(m){if(m){var g=m._idx,k=this._mapImages;if(k[g]===m){delete k[g];if(g=m._node)this._clearEvents(g),g.e_idx=g.e_bl=g.e_tr=g.e_l=g.e_t=g.e_w=g.e_h=null,g.parentNode&&(g.parentNode.removeChild(g),p.destroy(g));m._node=m._idx=m._layer=null}}},removeAllImages:function(){var m=this._mapImages,
g,k=m.length;for(g=0;g<k;g++){var x=m[g];x&&this.removeImage(x)}this._mapImages=[]},getImages:function(){var m=this._mapImages,g=[],k,x=m.length;for(k=0;k<x;k++)m[k]&&g.push(m[k]);return g},setOpacity:function(m){this.opacity!=m&&(this._opacityChanged(this.opacity=m),this.onOpacityChange())},onOpacityChange:function(){},_opacityChanged:function(m){var g=this._div;if(g)if(!f("ie")||8<f("ie"))n.set(g,"opacity",m);else{var k=g.childNodes;var x=k.length;for(g=0;g<x;g++)n.set(k[g],"opacity",m)}},_createImage:function(m,
g){var k=p.create("img");n.set(k,{position:"absolute"});1>m.opacity?n.set(k,"opacity",m.opacity):8>=f("ie")&&n.set(k,"opacity",this.opacity);!m.rotation||9>f("ie")||n.set(k,l._css.names.transform,l._css.rotate(360-m.rotation));m._node=k;k.e_idx=g;k.e_layer=this;k.e_load=z.connect(k,"onload",h.prototype._imageLoaded);k.e_error=z.connect(k,"onerror",h.prototype._imageError);k.e_abort=z.connect(k,"onabort",h.prototype._imageError);k.src=m.href},_imageLoaded:function(m,g){m=g||m.target||m.currentTarget;
g=m.e_layer;var k=g._mapImages[m.e_idx],x=g._map;x&&(x.__zooming||x.__panning||!g._sr)?g._standby.push(m):(g._clearEvents(m),k&&k._node===m&&x&&g._attach(k))},_imageError:function(m){m=m.target||m.currentTarget;var g=m.e_layer,k=g._mapImages[m.e_idx];g._clearEvents(m);k&&(k._node=null)},_clearEvents:function(m){var g=z.disconnect;g(m.e_load);g(m.e_error);g(m.e_abort);m.e_load=m.e_error=m.e_abort=m.e_layer=null},_attach:function(m){var g=m.extent,k=g.spatialReference,x=this._sr,v=this._div,y=m._node,
u=new a({x:g.xmin,y:g.ymin,spatialReference:k});g=new a({x:g.xmax,y:g.ymax,spatialReference:k});x.equals(k)||(x.isWebMercator()&&4326===k.wkid?(u=d.geographicToWebMercator(u),g=d.geographicToWebMercator(g)):k.isWebMercator()&&4326===x.wkid&&(u=d.webMercatorToGeographic(u),g=d.webMercatorToGeographic(g)));y.e_bl=u;y.e_tr=g;m.visible&&(this._setPos(y,v._left,v._top),(this._active||v).appendChild(y))},_setPos:function(m,g,k){var x=m.e_bl,v=m.e_tr,y=this._map;x=y.toScreen(x);v=y.toScreen(v);g=x.x-g;k=
v.y-k;var u=Math.abs(v.x-x.x);x=Math.abs(x.y-v.y);v={width:u+"px",height:x+"px"};var t=this._mapImages[m.e_idx];"css-transforms"===y.navigationMode?v[l._css.names.transform]=l._css.translate(g,k)+(t.rotation?" "+l._css.rotate(360-t.rotation):""):(v.left=g+"px",v.top=k+"px");n.set(m,v);m.e_l=g;m.e_t=k;m.e_w=u;m.e_h=x},managedSuspension:!0,_setMap:function(m,g){this.inherited(arguments);var k=this._div=p.create("div",null,g),x=l._css.names,v={position:"absolute"},y=m.__visibleDelta;if(!f("ie")||8<f("ie"))v.opacity=
this.opacity;"css-transforms"===m.navigationMode?(v[x.transform]=l._css.translate(y.x,y.y),n.set(k,v),k._left=y.x,k._top=y.y,v={position:"absolute",width:m.width+"px",height:m.height+"px",overflow:"visible"},this._active=p.create("div",null,k),n.set(this._active,v),this._passive=p.create("div",null,k),n.set(this._passive,v)):(k._left=0,k._top=0,n.set(k,v));this._standby=[];x=this._mapImages;y=x.length;for(v=0;v<y;v++){var u=x[v];u._node||this._createImage(u,u._idx)}c.hide(k);return k},_unsetMap:function(m,
g){this._disconnect();var k=this._div;if(k){var x=this._mapImages,v,y=x.length;for(v=0;v<y;v++){var u=x[v];if(u){var t=u._node;t&&(this._clearEvents(t),t.e_idx=t.e_bl=t.e_tr=t.e_l=t.e_t=t.e_w=t.e_h=null);u._node=null}}g.removeChild(k);p.destroy(k)}this._map=this._div=this._sr=this._active=this._passive=this._standby=null;this.inherited(arguments)},_onSuspend:function(){this._disconnect();c.hide(this._div)},_onResume:function(m){m.firstOccurrence&&(this._sr=this._map.spatialReference,this._processStandbyList());
m=this._map;var g=this._div,k=m.__visibleDelta;"css-transforms"===m.navigationMode&&(g._left=k.x,g._top=k.y,n.set(g,l._css.names.transform,l._css.translate(g._left,g._top)));this._redraw("css-transforms"===m.navigationMode);this._connect(m);c.show(g)},_connect:function(m){if(!this._connections){var g=z.connect,k="css-transforms"===m.navigationMode;this._connections=[g(m,"onPanStart",this._panStart),g(m,"onPan",this._pan),g(m,"onExtentChange",this._extentChange),k&&g(m,"onZoomStart",this._zoomStart),
k?g(m,"onScale",this._scale):g(m,"onZoom",this._zoom),k&&g(m,"onResize",this._resize)];k&&this._resize(m.extent,m.width,m.height)}},_disconnect:function(){this._connections&&(w.forEach(this._connections,z.disconnect),this._connections=null)},_panStart:function(){this._panL=this._div._left;this._panT=this._div._top},_pan:function(m,g){m=this._div;m._left=this._panL+g.x;m._top=this._panT+g.y;"css-transforms"===this._map.navigationMode?n.set(m,l._css.names.transform,l._css.translate(m._left,m._top)):
n.set(m,{left:m._left+"px",top:m._top+"px"})},_extentChange:function(m,g,k){k?this._redraw("css-transforms"===this._map.navigationMode):g&&this._pan(m,g);this._processStandbyList()},_processStandbyList:function(){var m,g=this._standby;if(g&&g.length)for(m=g.length-1;0<=m;m--)this._imageLoaded(null,g[m]),g.splice(m,1)},_redraw:function(m){if(m){m=this._passive;var g=l._css.names;n.set(m,g.transition,"none");this._moveImages(m,this._active);n.set(m,g.transform,"none")}m=this._active||this._div;g=this._div._left;
var k=this._div._top,x,v=m.childNodes.length;for(x=0;x<v;x++){var y=m.childNodes[x];this._setPos(y,g,k)}},_zoom:function(m,g,k){m=this._div;var x=m._left,v=m._top,y,u=m.childNodes.length;for(y=0;y<u;y++){var t=m.childNodes[y];var r=t.e_w*g,B=t.e_h*g,C=(k.x-x-t.e_l)*(r-t.e_w)/t.e_w,F=(k.y-v-t.e_t)*(B-t.e_h)/t.e_h;C=isNaN(C)?0:C;F=isNaN(F)?0:F;n.set(t,{left:t.e_l-C+"px",top:t.e_t-F+"px",width:r+"px",height:B+"px"})}},_zoomStart:function(){this._moveImages(this._active,this._passive)},_moveImages:function(m,
g){m=m.childNodes;var k=m.length;if(0<k)for(--k;0<=k;k--)g.appendChild(m[k])},_scale:function(m,g){var k=l._css.names,x=this._passive;n.set(x,k.transition,g?"none":k.transformName+" "+q.defaults.map.zoomDuration+"ms ease");({})[k.transform]=l._css.matrix(m);n.set(x,k.transform,l._css.matrix(m))},_resize:function(m,g,k){n.set(this._active,{width:g+"px",height:k+"px"});n.set(this._passive,{width:g+"px",height:k+"px"})}});f("extend-esri")&&b.setObject("layers.MapImageLayer",h,l);return h})},"esri/layers/OpenStreetMapLayer":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../urlUtils ../SpatialReference ../geometry/Extent ./TiledMapServiceLayer ./TileInfo".split(" "),
function(E,z,b,w,p,n,l,q,f){E=E(q,{declaredClass:"esri.layers.OpenStreetMapLayer",constructor:function(c){this.spatialReference=new n({wkid:102100});this.tileInfo=new f({rows:256,cols:256,dpi:96,format:"PNG8",compressionQuality:0,origin:{x:-2.0037508342787E7,y:2.0037508342787E7},spatialReference:{wkid:102100},lods:[{level:0,scale:5.91657527591555E8,resolution:156543.033928},{level:1,scale:2.95828763795777E8,resolution:78271.5169639999},{level:2,scale:1.47914381897889E8,resolution:39135.7584820001},
{level:3,scale:7.3957190948944E7,resolution:19567.8792409999},{level:4,scale:3.6978595474472E7,resolution:9783.93962049996},{level:5,scale:1.8489297737236E7,resolution:4891.96981024998},{level:6,scale:9244648.868618,resolution:2445.98490512499},{level:7,scale:4622324.434309,resolution:1222.99245256249},{level:8,scale:2311162.217155,resolution:611.49622628138},{level:9,scale:1155581.108577,resolution:305.748113140558},{level:10,scale:577790.554289,resolution:152.874056570411},{level:11,scale:288895.277144,
resolution:76.4370282850732},{level:12,scale:144447.638572,resolution:38.2185141425366},{level:13,scale:72223.819286,resolution:19.1092570712683},{level:14,scale:36111.909643,resolution:9.55462853563415},{level:15,scale:18055.954822,resolution:4.77731426794937},{level:16,scale:9027.977411,resolution:2.38865713397468},{level:17,scale:4513.988705,resolution:1.19432856685505},{level:18,scale:2256.994353,resolution:.597164283559817},{level:19,scale:1128.497176,resolution:.298582141647617}]});this.fullExtent=
new l({xmin:-2.003750834E7,ymin:-2.003750834E7,xmax:2.003750834E7,ymax:2.003750834E7,spatialReference:{wkid:102100}});this.initialExtent=new l({xmin:-2.003750834E7,ymin:-2.003750834E7,xmax:2.003750834E7,ymax:2.003750834E7,spatialReference:{wkid:102100}});this.tileServers=c&&c.tileServers||["//a.tile.openstreetmap.org","//b.tile.openstreetmap.org","//c.tile.openstreetmap.org"];this.serversLength=this.tileServers.length;this._displayLevels=c?c.displayLevels:null;this.copyright=c&&c.copyright||"Map data \u00a9 OpenStreetMap contributors, CC-BY-SA";
this.loaded=!0;this.onLoad(this);(c=c&&c.loadCallback)&&c(this)},getTileUrl:function(c,a,d){c=this.tileServers[a%this.serversLength]+"/"+c+"/"+d+"/"+a+".png";c=p.normalize(c);c=this.addTimestampToURL(c);return p.addProxy(c)}});b("extend-esri")&&z.setObject("layers.OpenStreetMapLayer",E,w);return E})},"esri/dijit/Popup":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/kernel dojo/has dojo/window dojo/Stateful dojo/query dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dijit/registry ../kernel ../lang ../domUtils ../geometry/Polyline ../geometry/Polygon ../geometry/Multipoint ../geometry/normalizeUtils ../InfoWindowBase ../PopupBase dojo/i18n!../nls/jsapi dojo/NodeList-dom dojo/has!extend-esri?./PopupTemplate dojo/has!extend-esri?./PopupRenderer".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y,u,t,r,B,C,F){E=E([B,C,q],{declaredClass:"esri.dijit.Popup",offsetX:3,offsetY:3,zoomFactor:4,marginLeft:25,marginTop:25,highlight:!0,pagingControls:!0,pagingInfo:!0,keepHighlightOnHide:!1,popupWindow:!0,titleInBody:!0,anchor:"auto",visibleWhenEmpty:!0,hideDelay:1E3,location:null,constructor:function(A,D){this.initialize();z.mixin(this,A);this.domNode=c.byId(D);D=this._nls=z.mixin({},F.widgets.popup);A=this.domNode;d.add(A,"esriPopup");(this._isRTL=!h.isBodyLtr())&&
m.set(A,"direction","rtl");a.set(A,"innerHTML","\x3cdiv class\x3d'esriPopupWrapper' style\x3d'position: absolute;'\x3e\x3cdiv class\x3d'sizer'\x3e\x3cdiv class\x3d'titlePane'\x3e\x3cdiv class\x3d'spinner hidden' title\x3d'"+D.NLS_searching+"...'\x3e\x3c/div\x3e\x3cdiv class\x3d'title'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton prev hidden' title\x3d'"+D.NLS_prevFeature+"'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton next hidden' title\x3d'"+D.NLS_nextFeature+"'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton maximize' title\x3d'"+
D.NLS_maximize+"'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton close' title\x3d'"+D.NLS_close+"'\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'sizer content'\x3e\x3cdiv class\x3d'contentPane'\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'sizer'\x3e\x3cdiv class\x3d'actionsPane'\x3e\x3cdiv class\x3d'actionList hidden'\x3e\x3ca title\x3d'"+D.NLS_zoomTo+"' class\x3d'action zoomTo' href\x3d'javascript:void(0);'\x3e\x3cspan\x3e"+D.NLS_zoomTo+"\x3c/span\x3e\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'pointer hidden'\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'outerPointer hidden'\x3e\x3c/div\x3e");
this._sizers=p.query(".sizer",A);D=p.query(".titlePane",A)[0];this._title=p.query(".title",D)[0];this._prevFeatureButton=p.query(".prev",D)[0];this._nextFeatureButton=p.query(".next",D)[0];this._maxButton=p.query(".maximize",D)[0];this._spinner=p.query(".spinner",D)[0];this._contentPane=p.query(".contentPane",A)[0];this._positioner=p.query(".esriPopupWrapper",A)[0];this._pointer=p.query(".pointer",A)[0];this._outerPointer=p.query(".outerPointer",A)[0];this._actionList=p.query(".actionsPane .actionList",
A)[0];this._contentUpdateHandles={};this._eventConnections=[w.connect(p.query(".close",D)[0],"onclick",this,this.hide),w.connect(this._prevFeatureButton,"onclick",this,this.selectPrevious),w.connect(this._nextFeatureButton,"onclick",this,this.selectNext),w.connect(this._maxButton,"onclick",this,this._toggleSize),w.connect(p.query(".zoomTo",this._actionList)[0],"onclick",this,this._zoomToFeature),w.connect(this,"onClearFeatures",this,this._featuresCleared),w.connect(this,"onSelectionChange",this,this._featureSelected),
w.connect(this,"onDfdComplete",this,this._updateUI)];n("esri-touch")&&(A=v.setScrollable(this._contentPane),this._eventConnections.push(A[0],A[1]));this._toggleVisibility(!1)},onMaximize:function(){},onRestore:function(){},setMap:function(A){this.inherited(arguments);e.place(this.domNode,A.root);this.highlight&&this.enableHighlight(A);this._maxHeight=m.get(this._contentPane,"maxHeight")},unsetMap:function(){this.disableHighlight(this.map);this.inherited(arguments)},setTitle:function(A){this.popupWindow&&
(x.isDefined(A)&&""!==A||(A="\x26nbsp;"),this.destroyDijits(this._title),this.place(A,this._title),this.isShowing&&(this.startupDijits(this._title),this.reposition()))},setContent:function(A){this.popupWindow&&(x.isDefined(A)&&""!==A||(A="\x26nbsp;"),this._destroyContent(),this.place(A,this._contentPane),this.isShowing&&(this._startupContent(),this.reposition()))},show:function(A,D){if(this.popupWindow)if(this._delayHide=!1,A){var G=this.map;A.spatialReference?(this.location=A,A=G.toScreen(A)):this.location=
G.toMap(A);var H=G._getFrameWidth();if(-1!==H&&(A.x%=H,0>A.x&&(A.x+=H),G.width>H))for(G=(G.width-H)/2;A.x<G;)A.x+=H;this._maximized?this.restore():this._setPosition(A);D&&D.closestFirst&&this.showClosestFirst(this.location);this.isShowing||(this._toggleVisibility(!0),this._followMap(),this.startupDijits(this._title),this._startupContent(),this.reposition(),this.showHighlight(),this.onShow())}else this._toggleVisibility(!0)},hide:function(){this.isShowing&&(this._toggleVisibility(!1),this._unfollowMap(),
this.keepHighlightOnHide||this.hideHighlight(),this.onHide())},resize:function(A,D){this.popupWindow&&(this._sizers.style({width:A+"px"}),m.set(this._contentPane,"maxHeight",D+"px"),this._maxHeight=D,this.isShowing&&this.reposition())},reposition:function(){this.popupWindow&&this.map&&this.location&&!this._maximized&&this.isShowing&&this._setPosition(this.map.toScreen(this.location))},addActions:function(A){return b.map(A,function(D){var G=e.create("a",{href:"javascript:void(0);",className:"action "+
D.className,title:D.title,innerHTML:D.title},this._actionList);w.connect(G,"onclick",D.callback);return{action:D,node:G}},this)},removeActions:function(A){b.forEach(A,function(D){e.destroy(D.node)})},getCurrentAnchor:function(){return this._anchor},maximize:function(){var A=this.map;if(A&&!this._maximized&&this.popupWindow){this._maximized=!0;var D=this._maxButton;d.remove(D,"maximize");d.add(D,"restore");a.set(D,"title",this._nls.NLS_restore);D=this.marginLeft;var G=this.marginTop,H=A.width-2*D;
A=A.height-2*G;m.set(this.domNode,{left:this._isRTL?null:D+"px",right:this._isRTL?D+"px":null,top:G+"px",bottom:null});m.set(this._positioner,{left:null,right:null,top:null,bottom:null});this._savedWidth=m.get(this._sizers[0],"width");this._savedHeight=m.get(this._contentPane,"maxHeight");this._sizers.style({width:H+"px"});m.set(this._contentPane,{maxHeight:A-65+"px",height:A-65+"px"});this._showPointer("");this._unfollowMap();d.add(this.domNode,"esriPopupMaximized");this.onMaximize()}},restore:function(){if(this.map&&
this._maximized&&this.popupWindow){this._maximized=!1;var A=this._maxButton;d.remove(A,"restore");d.add(A,"maximize");a.set(A,"title",this._nls.NLS_maximize);m.set(this._contentPane,"height",null);this.resize(this._savedWidth,this._savedHeight);this._savedWidth=this._savedHeight=null;this.show(this.location);this._followMap();d.remove(this.domNode,"esriPopupMaximized");this.onRestore()}},startup:function(){},destroy:function(){this.map&&this.unsetMap();this.cleanup();this.isShowing&&this.hide();this.destroyDijits(this._title);
this._destroyContent();b.forEach(this._eventConnections,w.disconnect);e.destroy(this.domNode);this._sizers=this._contentPane=this._actionList=this._positioner=this._pointer=this._outerPointer=this._title=this._prevFeatureButton=this._nextFeatureButton=this._spinner=this._eventConnections=this._pagerScope=this._targetLocation=this._nls=this._maxButton=null},selectNext:function(){this.select(this.selectedIndex+1)},selectPrevious:function(){this.select(this.selectedIndex-1)},setFeatures:function(A,D){this._transientAnchor=
D&&D.anchor;this.inherited(arguments);this._updateUI()},clearFeatures:function(A){A||(this._transientAnchor=null);this.inherited(arguments)},postscript:null,_highlightSetter:function(A){var D=this.highlight,G=this.map;this.highlight=A;if(G&&A!==D)if(A){if(this.enableHighlight(G),A=this.features&&this.features[this.selectedIndex])this.updateHighlight(G,A),this.showHighlight()}else this.disableHighlight(G)},_pagingControlsSetter:function(A){var D=this.pagingControls,G=this.map;this.pagingControls=A;
G&&A!==D&&this._updatePagingControls()},_pagingInfoSetter:function(A){var D=this.pagingInfo,G=this.map;this.pagingInfo=A;G&&A!==D&&this.features&&this.features.length&&this._updatePagingInfo()},_popupWindowSetter:function(A){var D=this.popupWindow,G=this.map;this.popupWindow=A;G&&A!==D&&(A?(this._updateUI(),this._updateWindow()):(this.hide(),this.showHighlight()))},_anchorSetter:function(A){var D=this.anchor;this.anchor=A;this.map&&A!==D&&this.reposition()},_startupContent:function(){var A=this._contentPane;
this.startupDijits(A);b.forEach(this._getPopupRendererDijits(A),function(D){if(!this._contentUpdateHandles[D.id]){var G=D.on("content-update",z.hitch(this,function(){this.reposition()}));this._contentUpdateHandles[D.id]=G}},this)},_destroyContent:function(){var A=this._contentPane;b.forEach(this._getPopupRendererDijits(A),function(D){var G=this._contentUpdateHandles[D.id];G&&(G.remove(),delete this._contentUpdateHandles[D.id])},this);this.destroyDijits(A)},_getPopupRendererDijits:function(A){A=this.getDijits(A);
return A=b.filter(A,function(D){return D&&D.set&&/_PopupRenderer/.test(D.declaredClass)})},_featuresCleared:function(){this.setTitle("\x26nbsp;");this.setContent("\x26nbsp;");this._setPagerCallbacks(this);this._updateUI();this.hideHighlight()},_featureSelected:function(){this._updateUI();this._updateWindow()},_updateWindow:function(){var A=this.selectedIndex;if(0<=A){var D=this.features[A].getContent();if(!this.titleInBody&&D&&z.isString(D.id)){var G=g.byId(D.id);G&&G.set&&/_PopupRenderer/.test(G.declaredClass)&&
G.set("showTitle",!1)}this.setContent(D);this.updateHighlight(this.map,this.features[A]);this.showHighlight()}},_toggleVisibility:function(A){this._setVisibility(A);this.isShowing=A},_setVisibility:function(A){d.toggle(this.domNode,"esriPopupVisible",A);d.toggle(this.domNode,"esriPopupHidden",!A)},_waitAndHide:function(A){var D=this;this._delayHide=!0;setTimeout(function(){D._delayHide&&(D._delayHide=!1,D.hide())},A)},_followMap:function(){this._unfollowMap();var A=this.map;this._handles=[w.connect(A,
"onPanStart",this,this._onPanStart),w.connect(A,"onPan",this,this._onPan),w.connect(A,"onZoomStart",this,this._onZoomStart),w.connect(A,"onExtentChange",this,this._onExtentChange)]},_unfollowMap:function(){var A=this._handles;A&&(b.forEach(A,w.disconnect),this._handles=null)},_onPanStart:function(){var A=this.domNode.style;this._panOrigin={left:A.left,top:A.top,right:A.right,bottom:A.bottom}},_onPan:function(A,D){var G=this._panOrigin;A=D.x;D=D.y;var H=G.left,L=G.top,aa=G.right;G=G.bottom;H&&(H=parseFloat(H)+
A+"px");L&&(L=parseFloat(L)+D+"px");aa&&(aa=parseFloat(aa)-A+"px");G&&(G=parseFloat(G)-D+"px");m.set(this.domNode,{left:H,top:L,right:aa,bottom:G})},_onZoomStart:function(){this._setVisibility(!1)},_onExtentChange:function(A,D,G){G&&(this._setVisibility(!0),this.show(this._targetLocation||this.location));this._targetLocation=null},_toggleSize:function(){this._maximized?this.restore():this.maximize()},_getTargetAnchor:function(){return this._transientAnchor||this.anchor},_setPosition:function(A){var D=
A.x,G=A.y;A=this.offsetX||0;var H=this.offsetY||0,L=0,aa=0,da=this.map,ha=da.position.x,ia=da.position.y,ba=da.width,ja=da.height;da="Left";var pa="bottom",Ca="right",la="top",ua=h.getContentBox(this._positioner),Aa=ua.w/2,M=ua.h/2,Y=m.get(this._sizers[0],"height")+this._maxHeight+m.get(this._sizers[2],"height"),ka=Y/2,N=0,Z=0,na=ba,za=ja,va=D,S=G,U=this._getTargetAnchor().toLowerCase();if("auto"===U){if(U=l.getBox)U=U(),N=Math.max(U.l,ha),na=Math.min(U.l+U.w,ha+ba),Z=Math.max(U.t,ia),za=Math.min(U.t+
U.h,ia+ja),va+=ha,S+=ia;ha=S-Z>=Y;ia=za-S>=Y;ba=na-va>=ua.w;ua=va-N>=ua.w;S-Z>ka&&za-S>=ka&&(ba?(pa="",da="Left",la="",Ca="right"):ua&&(pa="",da="Right",la="",Ca="left"));da&&pa&&va-N>Aa&&na-va>=Aa&&(ha?(da="",pa="bottom",Ca="",la="top"):ia&&(da="",pa="top",Ca="",la="bottom"));da&&pa&&(ba&&ha?(da="Left",pa="bottom",Ca="right",la="top"):ba&&ia?(da="Left",pa="top",Ca="right",la="bottom"):ua&&ia?(da="Right",pa="top",Ca="left",la="bottom"):ua&&ha&&(da="Right",pa="bottom",Ca="left",la="top"));this._anchor=
la&&Ca?la+"-"+Ca:la||Ca}else pa=da="",-1!==U.indexOf("top")?pa="bottom":-1!==U.indexOf("bottom")&&(pa="top"),-1!==U.indexOf("left")?da="Right":-1!==U.indexOf("right")&&(da="Left"),this._anchor=this._getTargetAnchor();Ca=pa+da;switch(Ca){case "top":case "bottom":aa=14;break;case "Left":case "Right":L=13;break;case "topLeft":case "topRight":case "bottomLeft":case "bottomRight":aa=14,L=-16}m.set(this.domNode,{left:D+"px",top:G+"px",right:null,bottom:null});D={left:null,right:null,top:null,bottom:null};
da?D[da.toLowerCase()]=L+A+"px":D.left=-Aa+"px";pa?D[pa]=aa+H+"px":D.top=-M+"px";m.set(this._positioner,D);this._showPointer(Ca)},_showPointer:function(A){d.remove(this._pointer,"top bottom right left topLeft topRight bottomRight bottomLeft hidden".split(" "));d.remove(this._outerPointer,["right","left","hidden"]);"Right"===A||"Left"===A?(A=A.toLowerCase(),d.add(this._outerPointer,A)):d.add(this._pointer,A)},_setPagerCallbacks:function(A,D,G){if(this.pagingControls&&(A!==this||this._pagerScope&&this._pagerScope!==
this)&&A!==this._pagerScope){this._pagerScope=A;A===this&&(D=this.selectPrevious,G=this.selectNext);var H=this._eventConnections;w.disconnect(H[1]);w.disconnect(H[2]);D&&(H[1]=w.connect(this._prevFeatureButton,"onclick",A,D));G&&(H[2]=w.connect(this._nextFeatureButton,"onclick",A,G))}},_getLocation:function(A){var D=A&&A.geometry;if(D)switch(D.type){case "point":var G=D;if(A.isAggregate()){A=A.getChildGraphics();var H=A[0];A=(H=H.geometry&&H.geometry.spatialReference)&&new t({points:b.map(A,function(L){L=
L.geometry;return[L.x,L.y]}),spatialReference:H.toJson()});H=r.getDenormalizedExtent(A)}break;case "multipoint":G=D.getPoint(0);H=r.getDenormalizedExtent(D);break;case "polyline":case "polygon":G=D.getPoint(0,0),H=r.getDenormalizedExtent(D)}return[G,H]},_zoomToFeature:function(A){A.preventDefault();var D=this.features,G=this.selectedIndex;A=this.map;if(D)if(G=this._getLocation(D[G]),D=G[0],G=G[1],D||(D=this.location),G&&G.intersects(this.location)||(this.location=D),G&&G.getWidth()&&G.getHeight())A.setExtent(G,
!0);else{var H=A.getNumLevels();G=A.getLevel();var L=A.getMaxZoom(),aa=this.zoomFactor||1;0<H?G!==L&&(H=G+aa,H>L&&(H=L),A.navigationManager._wheelZoom({value:H-G,mapPoint:D},!0)):A.navigationManager._wheelZoom({value:1/Math.pow(2,aa)*2,mapPoint:D},!0)}},_updatePagingControls:function(){var A=this._prevFeatureButton,D=this._nextFeatureButton,G=this.selectedIndex,H=this.features?this.features.length:0;this.pagingControls&&1<H?(0===G?d.add(A,"hidden"):d.remove(A,"hidden"),G===H-1?d.add(D,"hidden"):d.remove(D,
"hidden")):(d.add(A,"hidden"),d.add(D,"hidden"))},_updatePagingInfo:function(){var A=this.features?this.features.length:0,D=this._nls,G="\x26nbsp;";this.pagingInfo&&1<A&&D.NLS_pagingInfo&&(G=x.substitute({index:this.selectedIndex+1,total:A},D.NLS_pagingInfo));A&&(D=this.getSelectedFeature(),A=D.getInfoTemplate(),D=D.getTitle(),A&&!/esri\.InfoTemplate/.test(A.declaredClass)&&this.titleInBody||!D||(G=D+("\x26nbsp;"===G?"":" "+G)));this.setTitle(G)},_updateUI:function(){if(this.popupWindow){var A=this.features,
D=this.deferreds,G=A?A.length:0,H=this._spinner,L=this._actionList,aa=this._nls;this._updatePagingControls();this._updatePagingInfo();G?d.remove(L,"hidden"):d.add(L,"hidden");D&&D.length?A?d.remove(H,"hidden"):this.setContent("\x3cdiv style\x3d'text-align: center;'\x3e"+aa.NLS_searching+"...\x3c/div\x3e"):d.add(H,"hidden");G||D&&D.length?this._delayHide=!1:(this.setContent("\x3cdiv style\x3d'text-align: center;'\x3e"+aa.NLS_noInfo+".\x3c/div\x3e"),this.visibleWhenEmpty||this._waitAndHide(this.hideDelay))}}});
n("extend-esri")&&z.setObject("dijit.Popup",E,k);return E})},"esri/geometry/normalizeUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/_base/Deferred dojo/has ../kernel ../config ../deferredUtils ./Extent ./Polyline ./Polygon ./webMercatorUtils ./jsonUtils".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d){function e(C,F){return Math.ceil((C-F)/(2*F))}function h(C,F){var A=C.paths||C.rings,D,G,H=A.length;for(D=0;D<H;D++){var L=A[D].length;for(G=0;G<L;G++){var aa=C.getPoint(D,G);C.setPoint(D,
G,aa.offset(F,0))}}return C}function m(C,F){if(!(C instanceof f||C instanceof c))throw console.error("_straightLineDensify: the input geometry is neither polyline nor polygon"),Error("_straightLineDensify: the input geometry is neither polyline nor polygon");var A=C instanceof f,D=[],G;E.forEach(A?C.paths:C.rings,function(H){D.push(G=[]);G.push([H[0][0],H[0][1]]);var L,aa;for(L=0;L<H.length-1;L++){var da=H[L][0];var ha=H[L][1];var ia=H[L+1][0];var ba=H[L+1][1];var ja=Math.sqrt((ia-da)*(ia-da)+(ba-
ha)*(ba-ha));var pa=(ba-ha)/ja;var Ca=(ia-da)/ja;var la=ja/F;if(1<la){for(aa=1;aa<=la-1;aa++){var ua=aa*F;var Aa=Ca*ua+da;ua=pa*ua+ha;G.push([Aa,ua])}aa=(ja+Math.floor(la-1)*F)/2;Aa=Ca*aa+da;ua=pa*aa+ha;G.push([Aa,ua])}G.push([ia,ba])}});return A?new f({paths:D,spatialReference:C.spatialReference}):new c({rings:D,spatialReference:C.spatialReference})}function g(C,F,A){F&&(C=m(C,1E6),C=a.webMercatorToGeographic(C,!0));A&&(C=h(C,A));return C}function k(C,F,A){var D=C.x||C[0];if(D>F){var G=e(D,F);C.x?
C=C.offset(-2*G*F,0):C[0]=D+-2*G*F}else D<A&&(G=e(D,A),C.x?C=C.offset(-2*G*A,0):C[0]=D+-2*G*A);return C}function x(C,F){var A=-1;E.forEach(F.cutIndexes,function(D,G){var H=F.geometries[G];E.forEach(H.rings||H.paths,function(L,aa){E.some(L,function(da){if(!(180>da[0])){da=0;var ha,ia=L.length;for(ha=0;ha<ia;ha++){var ba=L[ha][0];da=ba>da?ba:da}da=Number(da.toFixed(9));da=-360*e(da,180);ia=L.length;for(ha=0;ha<ia;ha++)ba=H.getPoint(aa,ha),H.setPoint(aa,ha,ba.offset(da,0))}return!0})});D===A?H.rings?
E.forEach(H.rings,function(L){C[D]=C[D].addRing(L)}):E.forEach(H.paths,function(L){C[D]=C[D].addPath(L)}):(A=D,C[D]=H)});return C}function v(C,F,A,D){var G=new b;G.addCallbacks(A,D);F=F||n.defaults.geometryService;var H=[],L=[],aa,da,ha,ia,ba,ja,pa,Ca,la=0;E.forEach(C,function(Y){if(Y)if(aa||(aa=Y.spatialReference,da=aa._getInfo(),ia=(ha=aa._isWebMercator())?2.0037508342788905E7:180,ba=ha?-2.0037508342788905E7:-180,ja=ha?102100:4326,pa=new f({paths:[[[ia,ba],[ia,ia]]],spatialReference:{wkid:ja}}),
Ca=new f({paths:[[[ba,ba],[ba,ia]]],spatialReference:{wkid:ja}})),da){var ka=d.fromJson(Y.toJson()),N=Y.getExtent();"point"===Y.type?H.push(k(ka,ia,ba)):"multipoint"===Y.type?(ka.points=E.map(ka.points,function(Z){return k(Z,ia,ba)}),H.push(ka)):"extent"===Y.type?(ka=N._normalize(null,null,da),H.push(ka.rings?new c(ka):ka)):N?(Y=2*e(N.xmin,ba)*ia,ka=0===Y?ka:h(ka,Y),N=N.offset(Y,0),N.intersects(pa)&&N.xmax!==ia?(la=N.xmax>la?N.xmax:la,ka=g(ka,ha),L.push(ka),H.push("cut")):N.intersects(Ca)&&N.xmin!==
ba?(la=2*N.xmax*ia>la?2*N.xmax*ia:la,ka=g(ka,ha,360),L.push(ka),H.push("cut")):H.push(ka)):H.push(ka)}else H.push(Y);else H.push(Y)});A=new f;D=e(la,ia);for(var ua=-90,Aa=D;0<D;){var M=-180+360*D;A.addPath([[M,ua],[M,-1*ua]]);ua*=-1;D--}0<L.length&&0<Aa?F?F.cut(L,A,function(Y){L=x(L,Y);var ka=[];E.forEach(H,function(N,Z){"cut"===N&&(N=L.shift(),C[Z].rings&&1<C[Z].rings.length&&N.rings.length>=C[Z].rings.length?(H[Z]="simplify",ka.push(N)):H[Z]=!0===ha?a.geographicToWebMercator(N):N)});0<ka.length?
F.simplify(ka,function(N){E.forEach(H,function(Z,na){"simplify"===Z&&(H[na]=!0===ha?a.geographicToWebMercator(N.shift()):N.shift())});G.callback(H)},function(N){G.errback(N)}):G.callback(H)},function(Y){G.errback(Y)}):G.errback(Error("esri.geometry.normalizeCentralMeridian: 'geometryService' argument is missing.")):(E.forEach(H,function(Y,ka){"cut"===Y&&(Y=L.shift(),H[ka]=!0===ha?a.geographicToWebMercator(Y):Y)}),G.callback(H));return G}function y(C,F,A,D){var G=!1,H;z.isObject(C)&&C&&(z.isArray(C)?
C.length&&((H=C[0]&&C[0].declaredClass)&&-1!==H.indexOf("Graphic")?(C=E.map(C,function(L){return L.geometry}),G=C.length?!0:!1):H&&-1!==H.indexOf("esri.geometry.")&&(G=!0)):(H=C.declaredClass)&&-1!==H.indexOf("FeatureSet")?(C=E.map(C.features||[],function(L){return L.geometry}),G=C.length?!0:!1):H&&-1!==H.indexOf("esri.geometry.")&&(G=!0));G&&F.push({index:A,property:D,value:C})}function u(C,F){var A=[];E.forEach(F,function(D){var G=D.i,H=C[G];D=D.p;var L;if(z.isObject(H)&&H)if(D)if("*"===D[0])for(L in H)H.hasOwnProperty(L)&&
y(H[L],A,G,L);else E.forEach(D,function(aa){y(z.getObject(aa,!1,H),A,G,aa)});else y(H,A,G)});return A}function t(C,F){var A=0,D={};E.forEach(F,function(G){var H=G.index,L=G.property,aa=G.value,da=aa.length||1,ha=C.slice(A,A+da);z.isArray(aa)||(ha=ha[0]);A+=da;delete G.value;L?(D[H]=D[H]||{},D[H][L]=ha):D[H]=ha});return D}function r(C){for(var F=[],A=0,D=0,G=Math.min,H=Math.max,L=0;L<C.length;L++){for(var aa=C[L],da=null,ha=0;ha<aa.length;ha++)da=aa[ha],F.push(da),0===ha?D=A=da[0]:(A=G(A,da[0]),D=
H(D,da[0]));da&&F.push([(A+D)/2,0])}return F}var B={normalizeCentralMeridian:v,_foldCutResults:x,_prepareGeometryForCut:g,_offsetMagnitude:e,_pointNormalization:k,_updatePolyGeometry:h,_straightLineDensify:m,_createWrappers:function(C){var F=z.isObject(C)?C.prototype:z.getObject(C+".prototype");E.forEach(F.__msigns,function(A){var D=F[A.n];F[A.n]=function(){var G=this,H=[],L,aa=new b(l._dfdCanceller);A.f&&l._fixDfd(aa);for(L=0;L<A.c;L++)H[L]=arguments[L];var da={dfd:aa};H.push(da);var ha=[],ia;if(G.normalization&&
!G._isTable){var ba=u(H,A.a);E.forEach(ba,function(ja){ha=ha.concat(ja.value)});ha.length&&(ia=v(ha))}ia?(aa._pendingDfd=ia,ia.addCallbacks(function(ja){aa.canceled||(da.assembly=t(ja,ba),aa._pendingDfd=D.apply(G,H))},function(ja){var pa=G.declaredClass;pa&&-1!==pa.indexOf("FeatureLayer")?G._resolve([ja],null,H[A.e],aa,!0):G._errorHandler(ja,H[A.e],aa)})):aa._pendingDfd=D.apply(G,H);return aa}})},_disassemble:u,_addToBucket:y,_reassemble:t,getDenormalizedExtent:function(C){if(!C)return null;var F=
C.getExtent();if(!F)return null;var A=C.spatialReference&&C.spatialReference._getInfo();if(!A)return F;var D=A.valid[0];A=A.valid[1];var G=2*A,H=F.getWidth(),L=F.xmax,aa=F.xmin;if("extent"===C.type||0===H||H<=A||H>G||L<D||aa>A)return F;switch(C.type){case "polygon":if(1<C.rings.length)var da=r(C.rings);else return F;break;case "polyline":if(1<C.paths.length)da=r(C.paths);else return F;break;case "multipoint":da=C.points}C=Math.min;D=Math.max;G=new q(F.toJson());for(var ha=0;ha<da.length;ha++){var ia=
da[ha][0];0>ia?(ia+=A,aa=D(ia,aa)):(ia-=A,L=C(ia,L))}G.xmin=L;G.xmax=aa;return G.getWidth()<H?(G.xmin-=A,G.xmax-=A,G):F}};w("extend-esri")&&z.mixin(z.getObject("geometry",!0,p),B);return B})},"esri/geometry/jsonUtils":function(){define("dojo/_base/lang dojo/has ../kernel ../lang ./Point ./Polyline ./Polygon ./Multipoint ./Extent".split(" "),function(E,z,b,w,p,n,l,q,f){function c(h,m,g){var k=h.rings||h.paths,x,v;var y=0;for(x=k.length;y<x;y++){var u=k[y];var t=0;for(v=u.length;t<v;t++){var r=u[t];
if(0<t)B+=r[0],C+=r[1];else{var B=r[0];var C=r[1]}r[0]=m(B);r[1]=g(C)}}return h}var a={esriGeometryPoint:function(h,m,g){h.x=m(h.x);h.y=g(h.y);return h},esriGeometryPolyline:c,esriGeometryPolygon:c,esriGeometryEnvelope:function(h,m,g){h.xmin=m(h.xmin);h.ymin=g(h.ymin);h.xmax=m(h.xmax);h.ymax=g(h.ymax);return h},esriGeometryMultipoint:function(h,m,g){var k=h.points,x;var v=0;for(x=k.length;v<x;v++){var y=k[v];if(0<v)u+=y[0],t+=y[1];else{var u=y[0];var t=y[1]}y[0]=m(u);y[1]=g(t)}return h}},d={esriGeometryPoint:function(h,
m,g){h.x=m(h.x);h.y=g(h.y);return h}},e={createInstance:function(h,m){h=new h;m&&w.mixin(h,m);return h},fromJson:function(h){if(void 0!==h.x&&void 0!==h.y)return new p(h);if(void 0!==h.paths)return new n(h);if(void 0!==h.rings)return new l(h);if(void 0!==h.points)return new q(h);if(void 0!==h.xmin&&void 0!==h.ymin&&void 0!==h.xmax&&void 0!==h.ymax)return new f(h)},getJsonType:function(h){return h instanceof p?"esriGeometryPoint":h instanceof n?"esriGeometryPolyline":h instanceof l?"esriGeometryPolygon":
h instanceof f?"esriGeometryEnvelope":h instanceof q?"esriGeometryMultipoint":null},getGeometryType:function(h){return"esriGeometryPoint"===h?p:"esriGeometryPolyline"===h?n:"esriGeometryPolygon"===h?l:"esriGeometryEnvelope"===h?f:"esriGeometryMultipoint"===h?q:null},supportsLazyUnquantization:function(h){return"esriGeometryPoint"===h||"esriGeometryPolyline"===h||"esriGeometryPolygon"===h||"esriGeometryMultipoint"===h},unquantizeFunction:function(h,m){if(h&&m){var g=m.translate[0],k=m.translate[1],
x=m.scale[0],v=m.scale[1],y=function(r){return r*x+g},u=function(r){return k-r*v},t=a[h];return function(r){return r?t(r,y,u):null}}},unquantize:function(h,m,g){if(m=e.unquantizeFunction(m,g)){var k=h.length;for(g=0;g<k;g++)m(h[g].geometry)}},quantizeFunction:function(h,m){if(h&&"esriGeometryPoint"===h&&m){var g=m.translate[0],k=m.translate[1],x=m.scale[0],v=m.scale[1],y=function(r){return Math.round((r-g)/x)},u=function(r){return Math.round((k-r)/v)},t=d[h];return function(r){return r?t(r,y,u):null}}},
quantize:function(h,m,g){if(m=e.quantizeFunction(m,g)){var k=h.length;for(g=0;g<k;g++)m(h[g].geometry)}}};z("extend-esri")&&E.mixin(E.getObject("geometry",!0,b),e);return e})},"esri/InfoWindowBase":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/Deferred dojo/dom-construct dojo/has dijit/registry ./kernel ./lang ./geometry/ScreenPoint".split(" "),function(E,z,b,w,p,n,l,q,f,c,a){E=E(null,{declaredClass:"esri.InfoWindowBase",constructor:function(){var d=
z.hitch;this.__set_title=d(this,this.__set_title);this.__err_title=d(this,this.__err_title);this.__set_content=d(this,this.__set_content);this.__err_content=d(this,this.__err_content)},setMap:function(d){this.map=d},unsetMap:function(d){delete this.map},setTitle:function(){},setContent:function(){},show:function(){},hide:function(){},resize:function(){},onShow:function(){},onHide:function(){},place:function(d,e){c.isDefined(d)?z.isObject(d)?n.place(d,e,"only"):e.innerHTML=d:e.innerHTML=""},startupDijits:function(d){this._processDijits(d)},
destroyDijits:function(d){this._processDijits(d,!0)},getDijits:function(d){var e=[];d&&1===d.children.length&&(d=d.children[0])&&(e=(e=q.byNode(d))?[e]:q.findWidgets(d));return e},_processDijits:function(d,e){d=this.getDijits(d);b.forEach(d,function(h){if(e){if(h._started&&!h._destroyed)try{h.destroyRecursive?h.destroyRecursive():h.destroy&&h.destroy()}catch(m){console.debug("An error occurred when destroying a widget embedded within InfoWindow: "+m.message)}}else if(!h._started)try{h.startup()}catch(m){console.debug("An error occurred when starting a widget embedded within InfoWindow: "+
m.message)}})},__registerMapListeners:function(){this.__unregisterMapListeners();var d=this.map;this.__handles=[w.connect(d,"onPan",this,this.__onMapPan),w.connect(d,"onZoomStart",this,this.__onMapZmStart),w.connect(d,"onExtentChange",this,this.__onMapExtChg)]},__unregisterMapListeners:function(){var d=this.__handles;d&&(b.forEach(d,w.disconnect,w),this.__handles=null)},__onMapPan:function(d,e){this.move(e,!0)},__onMapZmStart:function(){this.__mcoords=this.mapCoords||this.map.toMap(new a(this.coords));
this.hide(null,!0)},__onMapExtChg:function(d,e,h){d=this.map;var m=this.mapCoords;m?this.show(m,null,!0):(e=h?d.toScreen(this.__mcoords):this.coords.offset(e&&e.x||0,e&&e.y||0),this.show(e,null,!0))},__setValue:function(d,e){this[d].innerHTML="";var h="_dfd"+d,m=this[h];m&&-1===m.fired&&(m.cancel(),this[h]=null);c.isDefined(e)&&(e instanceof p?(this[h]=e,e.addCallbacks(this["__set"+d],this["__err"+d])):this.__render(d,e))},__set_title:function(d){this._dfd_title=null;this.__render("_title",d)},__err_title:function(d){this._dfd_title=
null},__set_content:function(d){this._dfd_content=null;this.__render("_content",d)},__err_content:function(d){this._dfd_content=null},__render:function(d,e){var h=this[d];this.place(e,h);this.isShowing&&(this.startupDijits(h),"_title"===d&&this._adjustContentArea&&this._adjustContentArea())}});l("extend-esri")&&(f.InfoWindowBase=E);return E})},"esri/PopupBase":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/Color dojo/_base/Deferred dojo/has ./kernel ./graphic ./geometry/Point ./geometry/jsonUtils ./geometry/mathUtils ./geometry/webMercatorUtils ./symbols/SimpleMarkerSymbol ./symbols/SimpleLineSymbol ./symbols/CartographicLineSymbol ./symbols/SimpleFillSymbol ./tasks/query ./Evented dojo/has!extend-esri?./PopupInfo".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x){function v(y){return"sizeInfo"===y.type}E=E(x,{declaredClass:"esri.PopupBase",_featureLayers:{},_updateEndHandles:[],_mapLevelChangeHandle:null,_evtMap:{"set-features":!0,"clear-features":!0,"selection-change":!0,"dfd-complete":!0},onSetFeatures:function(){},onClearFeatures:function(){},onSelectionChange:function(){},onDfdComplete:function(){},initialize:function(){this.count=0;this.selectedIndex=-1;this.on("clear-features",z.hitch(this,this._resetUpdateEndListeners));
this.on("dfd-complete",z.hitch(this,this._processFeatures));this.on("set-features",z.hitch(this,this._processFeatures));this.on("selection-change",z.hitch(this,this._checkFeatureResolution))},cleanup:function(){this.features=this.deferreds=null;this._resetUpdateEndListeners();this._untrackMapLevelChange()},setFeatures:function(y){if(y&&y.length){this.clearFeatures(!0);var u,t;y[0]instanceof p?t=y:u=y;u?this._updateFeatures(null,u):(this.deferreds=t,t=t.slice(0),b.forEach(t,function(r){r.addBoth(z.hitch(this,
this._updateFeatures,r))},this))}},clearFeatures:function(y){this.features=this.deferreds=this._marked=null;this.count=0;var u=this.selectedIndex;this.selectedIndex=-1;if(-1<u)this.onSelectionChange();this.onClearFeatures({isIntermediate:!!y})},getSelectedFeature:function(){var y=this.features;if(y)return y[this.selectedIndex]},select:function(y){0>y||y>=this.count||(this.selectedIndex=y,this.onSelectionChange())},enableHighlight:function(y){this._highlighted=y.graphics.add(new q(new f(0,0,y.spatialReference)));
this._highlighted.attr("data-popup-highlight","");this._highlighted.hide();this._trackMapLevelChange(y);this.markerSymbol||(y=this.markerSymbol=new e,y.setStyle(e.STYLE_TARGET),y._setDim(16,16,0),y.setOutline(new m(h.STYLE_SOLID,new w([0,255,255]),2,m.CAP_ROUND,m.JOIN_ROUND)),y.setColor(new w([0,0,0,0])));this.lineSymbol||(this.lineSymbol=new h(h.STYLE_SOLID,new w([0,255,255]),2));this.fillSymbol||(this.fillSymbol=new g(g.STYLE_NULL,new h(h.STYLE_SOLID,new w([0,255,255]),2),new w([0,0,0,0])));this.clusterFillSymbol||
(this.clusterFillSymbol=new g(g.STYLE_SOLID,new h(h.STYLE_SOLID,new w([0,255,255]),1.33),null))},disableHighlight:function(y){var u=this._highlighted;u&&(u.hide(),y.graphics.remove(u),delete this._highlighted);this._untrackMapLevelChange();this.markerSymbol=this.lineSymbol=this.fillSymbol=null},showHighlight:function(){var y=this.features&&this.features[this.selectedIndex];this._highlighted&&y&&y.geometry&&this._highlighted.show()},hideHighlight:function(){this._highlighted&&this._highlighted.hide()},
updateHighlight:function(y,u){var t=u.geometry,r=this._highlighted;if(t&&r){r.hide();!r._graphicsLayer&&y&&y.graphics.add(r);r.setGeometry(c.fromJson(t.toJson()));switch(t.type){case "point":case "multipoint":var B=u.getLayer(),C=u.symbol||B&&B._getSymbol(u);if(B&&C){var F;t=C.xoffset||0;var A=C.yoffset||0,D=C.angle||0;switch(C.type){case "simplemarkersymbol":var G=F=C.size||0;break;case "picturemarkersymbol":G=C.width||0;F=C.height||0;break;case "textsymbol":G=F=C.font&&C.font.size||0}var H=u.symbol?
null:B._getRenderer(u);(B=this._getSizeInfo(H))?y=u=H.getSize(u,{sizeInfo:B,shape:C.style,resolution:y&&y.getResolutionInMeters&&y.getResolutionInMeters()}):null!=u.size?y=u=u.size:(y=G,u=F);H=this.markerSymbol;y&&u&&(t&&(t=t/G*y),A&&(A=A/F*u),H._setDim(y+4,u+4,0));H.setOffset(t,A);H.setAngle(D)}break;case "polyline":H=this.lineSymbol;break;case "polygon":H=this.fillSymbol}r.setSymbol(H)}else r&&r.hide()},showClosestFirst:function(y){var u=this.features;if(u&&u.length){if(1<u.length){var t,r=Infinity,
B=-1,C,F=a.getLength,A=y.spatialReference;y=y.normalize();for(t=u.length-1;0<=t;t--)if(C=u[t].geometry){var D=C.spatialReference;var G=0;try{var H="point"===C.type?C:C.getExtent().getCenter();H=H.normalize();A&&D&&!A.equals(D)&&A._canProject(D)&&(H=A.isWebMercator()?d.geographicToWebMercator(H):d.webMercatorToGeographic(H));G=F(y,H)}catch(L){}0<G&&G<r&&(r=G,B=t)}0<B&&(u.splice(0,0,u.splice(B,1)[0]),this.select(0))}}else this.deferreds&&(this._marked=y)},_trackMapLevelChange:function(y){this._untrackMapLevelChange();
this._mapLevelChangeHandle=y.on("extent-change",z.hitch(this,function(u){u.levelChange&&this._checkFeatureResolution()}))},_untrackMapLevelChange:function(){this._mapLevelChangeHandle&&(this._mapLevelChangeHandle.remove(),this._mapLevelChangeHandle=null)},_unbind:function(y){y=b.indexOf(this.deferreds,y);if(-1!==y)return this.deferreds.splice(y,1),this.deferreds.length?1:(this.deferreds=null,2)},_fireComplete:function(y){var u=this._marked;u&&(this._marked=null,this.showClosestFirst(u));this.onDfdComplete(y)},
_updateFeatures:function(y,u){if(y){if(this.deferreds&&(y=this._unbind(y)))if(u&&u instanceof Error){if(this._fireComplete(u),2===y)this.onSetFeatures()}else if(u&&u.length)if(this.features){if(u=b.filter(u,function(t){return-1===b.indexOf(this.features,t)},this),this.features=this.features.concat(u),this.count=this.features.length,this._fireComplete(),2===y)this.onSetFeatures()}else{this.features=u;this.count=u.length;this.selectedIndex=0;this._fireComplete();if(2===y)this.onSetFeatures();this.select(0)}else if(this._fireComplete(),
2===y)this.onSetFeatures()}else this.features=u,this.count=u.length,this.selectedIndex=0,this.onSetFeatures(),this.select(0)},_getSizeInfo:function(y){return y?y.sizeInfo||b.filter(y.visualVariables,v)[0]:null},_resetUpdateEndListeners:function(){this._featureLayers={};b.forEach(this._updateEndHandles,function(y){y.remove()});this._updateEndHandles=[]},_processFeatures:function(){b.forEach(this.features,function(y){(y=y.getLayer())&&!this._featureLayers[y.id]&&(1===y.currentMode||0===y.currentMode&&
6===y.mode)&&y.objectIdField&&y.hasXYFootprint&&y.queryFeatures&&(this._featureLayers[y.id]=y,y=y.on("update-end",z.hitch(this,this._fLyrUpdateEndHandler)),this._updateEndHandles.push(y))},this)},_fLyrUpdateEndHandler:function(y){if(!y.error){var u=this,t=y.target,r=t.getSelectedFeatures(),B=0===t.currentMode&&6===t.mode,C={},F=[];b.forEach(this.features,function(A){if(A.getLayer()===t){var D=A.attributes[t.objectIdField];C[D]=A;F.push(D)}});F.length&&(y=new k,y.objectIds=F,t.queryFeatures(y,function(A){b.forEach(A.features,
function(D){var G=C[D.attributes[t.objectIdField]],H=!1;G.geometry!==D.geometry||t.hasWebGLSurface()?(G.setGeometry(D.geometry),H=!0):B&&r&&-1!==b.indexOf(r,D)&&(H=!0);H&&this._highlighted&&G===this.getSelectedFeature()&&this._highlighted.setGeometry(D.geometry)},u)}))}},_checkFeatureResolution:function(){var y=this.getSelectedFeature(),u=this.map;if(y&&u){var t=y.getLayer();if(t){var r=y.getResolution();2===t.currentMode&&y.geometry&&r&&r>u.getResolution()&&(u=u.getResolutionForPopup(),(t=this._refetchFeature(y,
u,t))&&t.then(z.hitch(this,this._updateFeatureResolution,y,u)))}}},_refetchFeature:function(y,u,t){if(y=this._createQueryForCustomResolution(y,u,t))return t.queryFeatures(y).then(function(r){return r&&r.features[0]})},_createQueryForCustomResolution:function(y,u,t){t=t.objectIdField;var r=y.attributes;r=r&&t&&r[t];if(null==r)return null;var B=new k;B.objectIds=[r];B.maxAllowableOffset=u;B.outFields=[t];B.outSpatialReference=y.geometry.spatialReference;return B},_updateFeatureResolution:function(y,
u,t){y.getResolution()!==u&&(y.setResolution(u),y.setGeometry(t.geometry),this._highlighted&&y===this.getSelectedFeature()&&this._highlighted.setGeometry(y.geometry))}});n("extend-esri")&&(l.PopupBase=E);return E})},"esri/graphic":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ./kernel ./domUtils ./lang ./InfoTemplate ./geometry/jsonUtils ./symbols/jsonUtils".split(" "),function(E,z,b,w,p,n,l,q,f){function c(){}E=E(null,{declaredClass:"esri.Graphic",constructor:function(a,d,e,h){this._construct();
a&&!a.declaredClass?(this.geometry=a.geometry?q.fromJson(a.geometry):null,this.symbol=a.symbol?f.fromJson(a.symbol):null,this.attributes=a.attributes||null,this.infoTemplate=a.infoTemplate?new l(a.infoTemplate):null):(this.geometry=a,this.symbol=d,this.attributes=e,this.infoTemplate=h)},_geomVersion:0,_resolution:null,_shape:null,_bgShape:null,_dataAttrs:null,_layer:null,_sourceLayer:null,_graphicsLayer:null,_parentGraphic:null,_suspended:!1,size:null,visible:!0,_aggregationSourceLayer:null,_aggregationInfo:null,
_computedAttributes:null,_computedVersion:null,_computedGeomVersion:null,_isSnapTarget:!0,getParentGraphic:function(){return this._parentGraphic},setParentGraphic:function(a){this._parentGraphic=a},setSize:function(a){this.size=a;return this},getAggregationSourceLayer:function(){return this._aggregationSourceLayer},setAggregationSourceLayer:function(a){this._aggregationSourceLayer=a;return this},isAggregate:function(){return!!this._aggregationInfo},getAggregationInfo:function(){return this._aggregationInfo},
setAggregationInfo:function(a){this._aggregationInfo=a;return this},getChildGraphics:function(){var a=this.getAggregationSourceLayer();return a?a.getChildGraphics(this):[]},getDojoShape:function(){return this._shape},getShapes:function(){var a=[];this._shape&&a.push(this._shape);this._bgShape&&a.push(this._bgShape);return a},getNode:function(){var a=this._shape&&this._shape.getNode();return a&&a.nodeType?a:null},getNodes:function(){var a=this.getShapes(),d,e,h=a.length,m=[];for(e=0;e<h;e++)(d=a[e]&&
a[e].getNode())&&d.nodeType&&m.push(d);return m},getLayer:function(){return this._layer},getSourceLayer:function(){return this._sourceLayer||this._layer},clone:function(){var a=new this.constructor(this.toJson());a.visible=this.visible;a._layer=this._layer;a._sourceLayer=this._sourceLayer;a._aggregationSourceLayer=this._aggregationSourceLayer;a._aggregationInfo=this._aggregationInfo;a._resolution=this._resolution;return a},draw:function(){var a=this._graphicsLayer;a&&a._draw(this,!0);return this},
setGeometry:function(a){this.geometry=a;this._geomVersion++;var d=this._graphicsLayer;d&&(d._updateExtent(this),this.draw(),a&&"polyline"===a.type&&d._updateSVGMarkers());return this},setResolution:function(a){this._resolution=a;return this},getResolution:function(){return this._resolution},setSymbol:function(a,d){var e=this._graphicsLayer,h=this._shape;this.symbol=a;e&&(d&&h&&e._removeShape(this),this.draw());return this},setAttributes:function(a){this.attributes=a;this.clearCache();return this},
setInfoTemplate:function(a){this.infoTemplate=a;return this},getInfoTemplate:function(){return this._getEffInfoTemplate()},_getEffInfoTemplate:function(){var a=this.getLayer();return this.infoTemplate||a&&a.infoTemplate},getTitle:function(){var a=this.getInfoTemplate(),d=a&&a.title;if(z.isFunction(d))d=d.call(a,this);else if(z.isString(d)){var e=(a=this.getLayer())&&a._getDateOpts;d=n.substitute(this.attributes,d,{first:!0,dateFormat:e&&e.call(a)})}return d},getContent:function(){var a=this.getInfoTemplate(),
d=a&&a.content;if(z.isFunction(d))d=d.call(a,this);else if(z.isString(d)){var e=(a=this.getLayer())&&a._getDateOpts;d=n.substitute(this.attributes,d,{dateFormat:e&&e.call(a)})}return d},attr:function(a,d){null==d||this._dataAttrs||(this._dataAttrs={});this._dataAttrs&&(this._dataAttrs[a]=d,this._setDataAttr(a,d));return this},_isSuspended:function(){return this._suspended},_suspend:function(){this._suspended=!0;this.draw()},_resume:function(){this._suspended=!1;this.draw()},show:function(){this.visible=
!0;this.attr("data-hidden");var a;if(this.getShapes().length){var d=this.getNodes();var e=d.length;for(a=0;a<e;a++)p.show(d[a])}else this.draw();(d=this._graphicsLayer)&&d._graphicVisibilityChanged(this);return this},hide:function(){this.visible=!1;this.attr("data-hidden","");var a=this._graphicsLayer,d,e;if(a){if("canvas-2d"===a.surfaceType)a._removeShape(this);else{var h=this.getNodes();if(e=h.length)for(d=0;d<e;d++)p.hide(h[d])}a._graphicVisibilityChanged(this)}return this},toJson:function(){var a=
{};this.geometry&&(a.geometry=this.geometry.toJson());this.attributes&&(a.attributes=z.mixin({},this.attributes));this.symbol&&(a.symbol=this.symbol.toJson());this.infoTemplate&&(a.infoTemplate=this.infoTemplate.toJson());return a},_setDataAttr:function(a,d){var e=this.getNodes(),h,m=e.length;for(h=0;h<m;h++)this._setDOMDataAttr(e[h],a,d)},_setDOMDataAttr:function(a,d,e){null==e?a.removeAttribute(d):a.setAttribute(d,e)},_applyDataAttrs:function(){var a=this._dataAttrs;if(a){var d=this.getNodes(),
e,h=d.length;for(e=0;e<h;e++)for(var m in a)this._setDOMDataAttr(d[e],m,a[m])}},_getViewInfo:function(a){return(a=(a=a||this.getLayer())&&a.getMap())&&a.getViewInfo()},evaluateExpression:function(a,d){return this._getDataValue(a._attributeDef,a._attributeCache,null,null,a,d)},_getDataValue:function(a,d,e,h,m,g){var k=d.id,x=this.attributes,v=a.field,y=d.isNumeric,u=null;if(k){var t=this._computedAttributes,r=this._computedVersion,B=this._computedGeomVersion;h=this._getViewInfo(h);var C=!(!m||!m.async),
F=g&&g.skipCache||C,A=!g||!1!==g.strictReturnType,D=d.dependsOnView||d.isJSFunc,G=d.dependsOnGeometry;t||(t=this._computedAttributes={});D&&!r&&(r=this._computedVersion={});G&&!B&&(B=this._computedGeomVersion={});var H=D&&r[k]!==h.version||G&&B[k]!==this._geomVersion;u=t[k];if(void 0===u||H||F)u=null,d.hasExpr?u=m?m.evaluate(g&&g.context):e.executeFunction(d.compiledFunc,e.createExecContext(this,h)):d.isJSFunc?u=v(this,a):x&&(u=x[v],y&&this._isValidNumber(u)&&(d=a.normalizationType||"field",e=u,u=
null,m=a.normalizationTotal,a=x[a.normalizationField],"log"===d&&0!==e?u=Math.log(e)*Math.LOG10E:"percent-of-total"===d&&this._isValidNumber(m)&&0!==m?u=e/m*100:"field"===d&&this._isValidNumber(a)&&0!==a&&(u=e/a))),A&&(C?y&&(this._construct(),u=u.then(this._sanitizeNumericValue)):u=this._sanitizeValue(u,y)),F||(t[k]=u,D&&(r[k]=h.version),G&&(B[k]=this._geomVersion))}else x&&(u=this._sanitizeValue(x[v],y));return u},_sanitizeValue:function(a,d){d&&!this._isValidNumber(a)&&(a=null);return a},_sanitizeNumericValue:function(a){return this._sanitizeValue(a,
!0)},_construct:function(){this._constructed||(this._sanitizeNumericValue=z.hitch(this,this._sanitizeNumericValue),this._constructed=!0)},_isValidNumber:function(a){return"number"===typeof a&&!isNaN(a)&&Infinity!==a&&-Infinity!==a},clearCache:function(a){if(null!=a){var d=this._computedAttributes,e=this._computedVersion,h=this._computedGeomVersion;d&&(d[a]=void 0);e&&(e[a]=void 0);h&&(h[a]=void 0)}else this._computedAttributes=this._computedVersion=this._computedGeomVersion=null}});E.prototype.getShape=
E.prototype.getDojoShape;c.prototype=E.prototype;E.simpleConstructor=c;b("extend-esri")&&(w.Graphic=E);return E})},"esri/InfoTemplate":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","./kernel","./lang"],function(E,z,b,w,p){E=E(null,{declaredClass:"esri.InfoTemplate",constructor:function(n,l){n&&z.isObject(n)&&!z.isFunction(n)?z.mixin(this,n):(this.title=n||"${*}",this.content=l||"${*}")},setTitle:function(n){this.title=n;return this},setContent:function(n){this.content=n;return this},
toJson:function(){return p.fixJson({title:this.title,content:this.content})}});b("extend-esri")&&(w.InfoTemplate=E);return E})},"esri/symbols/jsonUtils":function(){define("dojo/_base/lang dojo/_base/array dojo/has ../kernel ./SimpleMarkerSymbol ./PictureMarkerSymbol ./SimpleLineSymbol ./CartographicLineSymbol ./SimpleFillSymbol ./PictureFillSymbol ./TextSymbol".split(" "),function(E,z,b,w,p,n,l,q,f,c,a){var d={createDefaultSymbol:function(e){switch(e){case "esriGeometryPoint":case "esriGeometryMultipoint":var h=
d.createDefaultMarkerSymbol();break;case "esriGeometryPolyline":h=d.createDefaultLineSymbol();break;case "esriGeometryPolygon":case "esriGeometryEnvelope":case "esriGeometryMultiPatch":h=d.createDefaultFillSymbol()}return h},createDefaultMarkerSymbol:function(){return new p},createDefaultLineSymbol:function(){return new l},createDefaultFillSymbol:function(){return new f},getFirstSupportedSymbol:function(e){var h;z.some(e,function(m){m&&-1<d.supportedSymbolTypes.indexOf(m.type)&&(h=m);return!!h});
return h},isPointSymbol:function(e){return e?-1<d.supportedPointSymbolTypes.indexOf(e.type):!1},supportedPointSymbolTypes:["esriSMS","esriPMS","esriTS"],supportedSymbolTypes:"esriSMS esriPMS esriTS esriSLS esriCLS esriSFS esriPFS".split(" "),fromJson:function(e,h){var m=null;switch(e.type){case "esriSMS":m=new p(e);break;case "esriPMS":m=new n(e);break;case "esriTS":m=new a(e);break;case "esriSLS":m=void 0!==e.cap?new q(e):new l(e);break;case "esriCLS":m=new q(e);break;case "esriSFS":m=new f(e);break;
case "esriPFS":m=new c(e);break;default:m=(e=h&&h.geometryType)?d.createDefaultSymbol(e):null}return m},getShapeDescriptors:function(e){return e&&e.getShapeDescriptors?e.getShapeDescriptors():{defaultShape:null,fill:null,stroke:null}}};b("extend-esri")&&E.mixin(E.getObject("symbol",!0,w),d);return d})},"esri/symbols/PictureMarkerSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang ../urlUtils ./MarkerSymbol".split(" "),function(E,z,b,w,p,n,l,q){var f=
{url:"",width:12,height:12,angle:0,xoffset:0,yoffset:0};E=E(q,{declaredClass:"esri.symbol.PictureMarkerSymbol",type:"picturemarkersymbol",constructor:function(c,a,d){c?z.isString(c)?(this.url=c,a&&(this.width=a),d&&(this.height=d)):(this.width=w.pt2px(null==c.width?f.width:c.width),this.height=w.pt2px(null==c.height?f.height:c.height),a=c.imageData,9>b("ie")||!a||(d=this.url,this.url="data:"+(c.contentType||"image")+";base64,"+a,this.imageData=d)):(z.mixin(this,f),this.width=w.pt2px(this.width),this.height=
w.pt2px(this.height))},getStroke:function(){return null},getFill:function(){return null},setWidth:function(c){this.width=c;return this},setHeight:function(c){this.height=c;return this},setUrl:function(c){c!==this.url&&(delete this.imageData,delete this.contentType);this.url=c;return this},getShapeDescriptors:function(){return{defaultShape:{type:"image",x:-Math.round(this.width/2),y:-Math.round(this.height/2),width:this.width,height:this.height,src:this.url||""},fill:null,stroke:null}},toJson:function(){var c=
this.url,a=this.imageData;if(0===c.indexOf("data:")){var d=c;c=a;a=d.indexOf(";base64,")+8;a=d.substr(a)}!z.isString(c)||0!==c.indexOf("/")&&0!==c.indexOf("//")&&0!==c.indexOf("./")&&0!==c.indexOf("../")||(c=l.getAbsoluteUrl(c));d=w.px2pt(this.width);d=isNaN(d)?void 0:d;var e=w.px2pt(this.height);e=isNaN(e)?void 0:e;c=n.fixJson(z.mixin(this.inherited("toJson",arguments),{type:"esriPMS",url:c,imageData:a,contentType:this.contentType,width:d,height:e}));delete c.color;delete c.size;c.imageData||delete c.imageData;
return c}});E.defaultProps=f;b("extend-esri")&&(z.setObject("symbol.PictureMarkerSymbol",E,p),p.symbol.defaultPictureMarkerSymbol=f);return E})},"esri/symbols/CartographicLineSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has dojox/gfx/_base ../kernel ../lang ./SimpleLineSymbol".split(" "),function(E,z,b,w,p,n,l,q){var f={STYLE_SOLID:"solid",STYLE_DASH:"dash",STYLE_DOT:"dot",STYLE_DASHDOT:"dashdot",STYLE_DASHDOTDOT:"longdashdotdot",STYLE_NULL:"none",STYLE_INSIDE_FRAME:"insideframe",
STYLE_SHORTDASH:"shortdash",STYLE_SHORTDOT:"shortdot",STYLE_SHORTDASHDOT:"shortdashdot",STYLE_SHORTDASHDOTDOT:"shortdashdotdot",STYLE_LONGDASH:"longdash",STYLE_LONGDASHDOT:"longdashdot",CAP_BUTT:"butt",CAP_ROUND:"round",CAP_SQUARE:"square",JOIN_MITER:"miter",JOIN_ROUND:"round",JOIN_BEVEL:"bevel"},c={color:[0,0,0,1],style:f.STYLE_SOLID,width:1,cap:f.CAP_BUTT,join:f.JOIN_MITER,miterLimit:10};E=E(q,{declaredClass:"esri.symbol.CartographicLineSymbol",type:"cartographiclinesymbol",_caps:{butt:"esriLCSButt",
round:"esriLCSRound",square:"esriLCSSquare"},_joins:{miter:"esriLJSMiter",round:"esriLJSRound",bevel:"esriLJSBevel"},constructor:function(a,d,e,h,m,g){a?z.isString(a)?(this.style=a,d&&(this.color=d),void 0!==e&&(this.width=e),h&&(this.cap=h),m&&(this.join=m),void 0!==g&&(this.miterLimit=g)):(this.cap=l.valueOf(this._caps,a.cap),this.join=l.valueOf(this._joins,a.join),this.width=p.pt2px(a.width),this.miterLimit=p.pt2px(a.miterLimit)):(z.mixin(this,c),this.color=new b(this.color),this.width=p.pt2px(this.width),
this.miterLimit=p.pt2px(this.miterLimit))},setCap:function(a){this.cap=a;return this},setJoin:function(a){this.join=a;return this},setMiterLimit:function(a){this.miterLimit=a;return this},getStroke:function(){return z.mixin(this.inherited("getStroke",arguments),{cap:this.cap,join:this.join===f.JOIN_MITER?this.miterLimit:this.join})},getFill:function(){return null},getShapeDescriptors:function(){return{defaultShape:{type:"path",path:"M -15,0 L 15,0 E"},fill:null,stroke:this.getStroke()}},toJson:function(){var a=
p.px2pt(this.miterLimit);a=isNaN(a)?void 0:a;return l.fixJson(z.mixin(this.inherited("toJson",arguments),{type:"esriCLS",cap:this._caps[this.cap],join:this._joins[this.join],miterLimit:a}))}});z.mixin(E,f);E.defaultProps=c;w("extend-esri")&&(z.setObject("symbol.CartographicLineSymbol",E,n),n.symbol.defaultCartographicLineSymbol=c);return E})},"esri/symbols/SimpleFillSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has dojox/gfx/_base ../kernel ../lang ./FillSymbol ./SimpleLineSymbol require".split(" "),
function(E,z,b,w,p,n,l,q,f,c){var a={STYLE_SOLID:"solid",STYLE_NULL:"none",STYLE_HORIZONTAL:"horizontal",STYLE_VERTICAL:"vertical",STYLE_FORWARD_DIAGONAL:"forwarddiagonal",STYLE_BACKWARD_DIAGONAL:"backwarddiagonal",STYLE_CROSS:"cross",STYLE_DIAGONAL_CROSS:"diagonalcross",STYLE_FORWARDDIAGONAL:"forwarddiagonal",STYLE_BACKWARDDIAGONAL:"backwarddiagonal",STYLE_DIAGONALCROSS:"diagonalcross"},d={style:a.STYLE_SOLID,color:[0,0,0,.25]};E=E(q,{declaredClass:"esri.symbol.SimpleFillSymbol",type:"simplefillsymbol",
_styles:{solid:"esriSFSSolid",none:"esriSFSNull",horizontal:"esriSFSHorizontal",vertical:"esriSFSVertical",forwarddiagonal:"esriSFSForwardDiagonal",backwarddiagonal:"esriSFSBackwardDiagonal",cross:"esriSFSCross",diagonalcross:"esriSFSDiagonalCross"},constructor:function(e,h,m){e?z.isString(e)?(this.style=e,void 0!==h&&(this.outline=h),void 0!==m&&(this.color=m)):this.style=l.valueOf(this._styles,e.style):(z.mixin(this,d),this.outline=new f(this.outline),this.color=new b(this.color))},setStyle:function(e){this.style=
e;return this},getStroke:function(){return this.outline&&this.outline.getStroke()},getFill:function(){var e=this.style;return e===a.STYLE_NULL?null:e===a.STYLE_SOLID?this.color:z.mixin({},p.defaultPattern,{src:c.toUrl("../images/symbol/sfs/"+e+".png"),width:10,height:10})},getShapeDescriptors:function(){return{defaultShape:{type:"path",path:"M -10,-10 L 10,0 L 10,10 L -10,10 L -10,-10 Z"},fill:this.getFill(),stroke:this.getStroke()}},toJson:function(){return l.fixJson(z.mixin(this.inherited("toJson",
arguments),{type:"esriSFS",style:this._styles[this.style]}))}});z.mixin(E,a);E.defaultProps=d;w("extend-esri")&&(z.setObject("symbol.SimpleFillSymbol",E,n),n.symbol.defaultSimpleFillSymbol=d);return E})},"esri/symbols/FillSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ./Symbol ./SimpleLineSymbol".split(" "),function(E,z,b,w,p,n){E=E(p,{declaredClass:"esri.symbol.FillSymbol",constructor:function(l){l&&z.isObject(l)&&l.outline&&(this.outline=new n(l.outline))},setOutline:function(l){this.outline=
l;return this},toJson:function(){var l=this.inherited("toJson",arguments);this.outline&&(l.outline=this.outline.toJson());return l}});b("extend-esri")&&z.setObject("symbol.FillSymbol",E,w);return E})},"esri/symbols/PictureFillSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang ../urlUtils ./FillSymbol".split(" "),function(E,z,b,w,p,n,l,q){var f={xoffset:0,yoffset:0,width:12,height:12};E=E(q,{declaredClass:"esri.symbol.PictureFillSymbol",type:"picturefillsymbol",
xscale:1,yscale:1,xoffset:0,yoffset:0,constructor:function(c,a,d,e){c?z.isString(c)?(this.url=c,void 0!==a&&(this.outline=a),void 0!==d&&(this.width=d),void 0!==e&&(this.height=e)):(this.xoffset=w.pt2px(c.xoffset),this.yoffset=w.pt2px(c.yoffset),this.width=w.pt2px(c.width),this.height=w.pt2px(c.height),a=c.imageData,9>b("ie")||!a||(d=this.url,this.url="data:"+(c.contentType||"image")+";base64,"+a,this.imageData=d)):(z.mixin(this,f),this.width=w.pt2px(this.width),this.height=w.pt2px(this.height))},
setWidth:function(c){this.width=c;return this},setHeight:function(c){this.height=c;return this},setOffset:function(c,a){this.xoffset=c;this.yoffset=a;return this},setUrl:function(c){c!==this.url&&(delete this.imageData,delete this.contentType);this.url=c;return this},setXScale:function(c){this.xscale=c;return this},setYScale:function(c){this.yscale=c;return this},getStroke:function(){return this.outline&&this.outline.getStroke()},getFill:function(){return z.mixin({},w.defaultPattern,{src:this.url,
width:this.width*this.xscale,height:this.height*this.yscale,x:this.xoffset,y:this.yoffset})},getShapeDescriptors:function(){return{defaultShape:{type:"path",path:"M -10,-10 L 10,0 L 10,10 L -10,10 L -10,-10 Z"},fill:this.getFill(),stroke:this.getStroke()}},toJson:function(){var c=this.url,a=this.imageData;if(0===c.indexOf("data:")){var d=c;c=a;a=d.indexOf(";base64,")+8;a=d.substr(a)}!z.isString(c)||0!==c.indexOf("/")&&0!==c.indexOf("//")&&0!==c.indexOf("./")&&0!==c.indexOf("../")||(c=l.getAbsoluteUrl(c));
d=w.px2pt(this.width);d=isNaN(d)?void 0:d;var e=w.px2pt(this.height);e=isNaN(e)?void 0:e;var h=w.px2pt(this.xoffset);h=isNaN(h)?void 0:h;var m=w.px2pt(this.yoffset);m=isNaN(m)?void 0:m;c=n.fixJson(z.mixin(this.inherited("toJson",arguments),{type:"esriPFS",url:c,imageData:a,contentType:this.contentType,width:d,height:e,xoffset:h,yoffset:m,xscale:this.xscale,yscale:this.yscale}));c.imageData||delete c.imageData;return c}});E.defaultProps=f;b("extend-esri")&&(z.setObject("symbol.PictureFillSymbol",E,
p),p.symbol.defaultPictureFillSymbol=f);return E})},"esri/symbols/TextSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ../lang ../Color ./Symbol ./Font".split(" "),function(E,z,b,w,p,n,l,q,f){var c={type:"textsymbol",x:0,y:0,text:"",rotated:!1,kerning:!0,color:[0,0,0,1],font:w.defaultFont,angle:0,xoffset:0,yoffset:0,horizontalAlignment:"center"},a={start:"left",middle:"center",end:"right"},d={left:"start",center:"middle",right:"end",justify:"start"},
e={top:"text-before-edge",middle:"central",baseline:"alphabetic",bottom:"text-after-edge"},h=document.createElement("canvas");E=E(q,{declaredClass:"esri.symbol.TextSymbol",angle:0,xoffset:0,yoffset:0,constructor:function(m,g,k){z.mixin(this,c);this.font=new f(this.font);this.color=new l(this.color);m&&(z.isObject(m)?(z.mixin(this,m),this.color&&n.isDefined(this.color[0])&&(this.color=l.toDojoColor(this.color)),this.type="textsymbol",this.font=new f(this.font),this.xoffset=w.pt2px(this.xoffset),this.yoffset=
w.pt2px(this.yoffset),this.angle&&(this.angle*=-1),this.haloSize&&(this.haloSize=w.pt2px(this.haloSize)),this.haloColor&&(this.haloColor=l.toDojoColor(this.haloColor))):(this.text=m,g&&(this.font=g),k&&(this.color=k)));this.setAlign(this.align||this.getSVGAlign())},setFont:function(m){this.font=m;return this},setSize:function(m){this.font.size=m;return this},setAngle:function(m){this.angle=m;return this},setOffset:function(m,g){this.xoffset=m;this.yoffset=g;return this},setHaloColor:function(m){this.haloColor=
m;return this},setHaloSize:function(m){this.haloSize=m;return this},setAlign:function(m){this.align=m;this.setHorizontalAlignment(m&&a[m.toLowerCase()]||"center");return this},setHorizontalAlignment:function(m){this.horizontalAlignment=m;return this},getSVGAlign:function(){var m=this.horizontalAlignment;return m=m&&d[m.toLowerCase()]||"middle"},setVerticalAlignment:function(m){this.verticalAlignment=m;return this},getSVGBaseline:function(){var m=this.verticalAlignment;return m&&e[m.toLowerCase()]||
"alphabetic"},getSVGBaselineShift:function(){return"bottom"===this.verticalAlignment?"super":null},setDecoration:function(m){this.decoration=m;this.font||this.setFont(new f);this.font.setDecoration(m);return this},setRotated:function(m){this.rotated=m;return this},setKerning:function(m){this.kerning=m;return this},setText:function(m){this.text=m;return this},getStroke:function(){return null},getFill:function(){return this.color},getWidth:function(){var m=h&&h.getContext&&h.getContext("2d");if(m){var g=
this.font;m.font=(g.style?g.style:w.defaultFont.style)+" "+(g.weight?g.weight:w.defaultFont.weight)+" "+(g.size?g.size:w.defaultFont.size)+"px "+(g.family?g.family:w.defaultFont.family);return m.measureText(this.text).width}m=this.getHeight();g=0;var k;for(k=0;k<this.text.length;k++){var x=this.text.charAt(k);g=x==x.toUpperCase()?g+.7*m:g+.5*m}return g},getHeight:function(){return w.normalizedLength(this.font.size)},getShapeDescriptors:function(){var m=this.font;if(m){var g={};m.size&&(g.size=m.size);
m.style&&(g.style=m.style);m.variant&&(g.variant=m.variant);m.decoration&&(g.decoration=m.decoration);m.weight&&(g.weight=m.weight);m.family&&(g.family=m.family)}return{defaultShape:{type:"text",text:this.text,x:0,y:this.getHeight()/4,align:"middle",decoration:this.decoration||m&&m.decoration,rotated:this.rotated,kerning:this.kerning},font:g,fill:this.getFill(),stroke:this.getStroke()}},toJson:function(){var m=w.px2pt(this.xoffset),g=w.px2pt(this.yoffset),k=w.px2pt(this.haloSize);m=isNaN(m)?void 0:
m;g=isNaN(g)?void 0:g;k=isNaN(k)?void 0:k;return n.fixJson(z.mixin(this.inherited("toJson",arguments),{type:"esriTS",backgroundColor:this.backgroundColor,borderLineColor:this.borderLineColor,borderLineSize:this.borderLineSize,haloSize:k,haloColor:this.haloColor&&l.toJsonColor(this.haloColor),verticalAlignment:this.verticalAlignment,horizontalAlignment:this.horizontalAlignment,rightToLeft:this.rightToLeft,width:this.width,angle:this.angle&&-1*this.angle,xoffset:m,yoffset:g,text:this.text,rotated:this.rotated,
kerning:this.kerning,font:this.font.toJson()}))}});z.mixin(E,{ALIGN_START:"start",ALIGN_MIDDLE:"middle",ALIGN_END:"end",DECORATION_NONE:"none",DECORATION_UNDERLINE:"underline",DECORATION_OVERLINE:"overline",DECORATION_LINETHROUGH:"line-through"});E.defaultProps=c;b("extend-esri")&&(z.setObject("symbol.TextSymbol",E,p),p.symbol.defaultTextSymbol=c);return E})},"esri/symbols/Font":function(){define("dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang".split(" "),function(E,
z,b,w,p,n){E=E(null,{declaredClass:"esri.symbol.Font",constructor:function(l,q,f,c,a){l?z.isObject(l)?z.mixin(this,l):(this.size=l,parseFloat(this.size)==this.size&&(this.size+="px"),void 0!==q&&(this.style=q),void 0!==f&&(this.variant=f),void 0!==c&&(this.weight=c),void 0!==a&&(this.family=a)):z.mixin(this,w.defaultFont);parseFloat(this.size)==this.size&&(this.size+="pt");9>b("ie")&&this.size&&z.isString(this.size)&&-1<this.size.indexOf("em")&&(this.size=w.pt2px(12*parseFloat(this.size))+"px");this.size=
this._convert2PxSize(this.size)},setSize:function(l){this.size=this._convert2PxSize(l);return this},_convert2PxSize:function(l){var q;parseFloat(l)==l?q=l:z.isString(l)&&(-1<l.indexOf("pt")?q=w.pt2px(parseFloat(l)):-1<l.indexOf("px")?q=parseFloat(l):-1<l.indexOf("em")?q=w.pt2px(12*parseFloat(l)):-1<l.indexOf("%")&&(q=w.pt2px(.12*parseFloat(l))));return q},setStyle:function(l){this.style=l;return this},setVariant:function(l){this.variant=l;return this},setWeight:function(l){this.weight=l;return this},
setFamily:function(l){this.family=l;return this},setDecoration:function(l){this.decoration=l;return this},toJson:function(){return n.fixJson({size:w.px2pt(this.size),style:this.style,decoration:this.decoration,weight:this.weight,family:this.family})}});z.mixin(E,{STYLE_NORMAL:"normal",STYLE_ITALIC:"italic",STYLE_OBLIQUE:"oblique",VARIANT_NORMAL:"normal",VARIANT_SMALLCAPS:"small-caps",WEIGHT_NORMAL:"normal",WEIGHT_BOLD:"bold",WEIGHT_BOLDER:"bolder",WEIGHT_LIGHTER:"lighter"});b("extend-esri")&&z.setObject("symbol.Font",
E,p);return E})},"esri/tasks/query":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/json dojo/has ../kernel ../geometry/jsonUtils ./SpatialRelationship dojo/has!extend-esri?./QueryTask dojo/has!extend-esri?./RelationshipQuery dojo/has!extend-esri?./StatisticDefinition".split(" "),function(E,z,b,w,p,n,l,q){var f=E(null,{declaredClass:"esri.tasks.Query",constructor:function(){this.spatialRelationship=f.SPATIAL_REL_INTERSECTS},text:null,where:"",geometry:null,groupByFieldsForStatistics:null,
objectIds:null,returnGeometry:!1,returnCentroid:null,returnDistinctValues:!1,returnExceededLimitFeatures:null,maxRecordCountFactor:null,orderByFields:null,outSpatialReference:null,outFields:null,outStatistics:null,timeExtent:null,relationParam:null,pixelSize:null,distance:null,units:null,resultOffset:null,resultRecordCount:null,resultType:null,cacheHint:null,sqlFormat:null,quantizationParameters:null,_units:{meters:"esriSRUnit_Meter",kilometers:"esriSRUnit_Kilometer",feet:"esriSRUnit_Foot",miles:"esriSRUnit_StatuteMile",
"nautical-miles":"esriSRUnit_NauticalMile","us-nautical-miles":"esriSRUnit_USNauticalMile"},toJson:function(c){var a={text:this.text,where:this.where,returnGeometry:this.returnGeometry,spatialRel:this.spatialRelationship,maxAllowableOffset:this.maxAllowableOffset,geometryPrecision:this.geometryPrecision,sqlFormat:this.sqlFormat},d=c&&c.geometry||this.geometry,e=this.objectIds,h=this.outFields,m=this.outSpatialReference,g=this.groupByFieldsForStatistics,k=this.orderByFields,x=this.outStatistics;c=
this.distance;d&&(a.geometry=d,a.geometryType=l.getJsonType(d),a.inSR=d.spatialReference.wkid||w.toJson(d.spatialReference.toJson()));e&&(a.objectIds=e.join(","));h&&(a.outFields=h.join(","));null!=this.returnCentroid&&(a.returnCentroid=this.returnCentroid);this.returnDistinctValues&&(a.returnDistinctValues=!0);null!=this.returnExceededLimitFeatures&&(a.returnExceededLimitFeatures=this.returnExceededLimitFeatures);null!=this.maxRecordCountFactor&&(a.maxRecordCountFactor=this.maxRecordCountFactor);
g&&(a.groupByFieldsForStatistics=g.join(","));k&&(a.orderByFields=k.join(","));if(x){var v=[];b.forEach(x,function(y){v.push(y.toJson())});a.outStatistics=w.toJson(v)}m?a.outSR=m.wkid||w.toJson(m.toJson()):d&&(a.outSR=d.spatialReference.wkid||w.toJson(d.spatialReference.toJson()));d=this.timeExtent;a.time=d?d.toJson().join(","):null;(d=this.relationParam)&&this.spatialRelationship===f.SPATIAL_REL_RELATION&&(a.relationParam=d);c&&(a.distance=this.distance,this.hasOwnProperty("units")?a.units=this._units[this.units]||
this._units.meters:(console.warn("esri/tasks/query::no distance unit provided, defaulting to meters"),a.units=this._units.meters));this.hasOwnProperty("start")&&(a.resultOffset=this.start,a.resultRecordCount=10,""===a.where&&(a.where="1\x3d1"));this.hasOwnProperty("num")&&(a.resultRecordCount=this.num);a.resultType=this.resultType;null!=this.cacheHint&&(a.cacheHint=this.cacheHint);a.pixelSize=this.pixelSize?w.toJson(this.pixelSize.toJson()):null;a.multipatchOption=this.multipatchOption;this.quantizationParameters&&
(a.quantizationParameters=w.toJson(this.quantizationParameters));a._ts=this._ts;return a}});z.mixin(f,q);p("extend-esri")&&z.setObject("tasks.Query",f,n);return f})},"esri/tasks/SpatialRelationship":function(){define(["dojo/_base/lang","dojo/has","../kernel"],function(E,z,b){var w={SPATIAL_REL_INTERSECTS:"esriSpatialRelIntersects",SPATIAL_REL_CONTAINS:"esriSpatialRelContains",SPATIAL_REL_CROSSES:"esriSpatialRelCrosses",SPATIAL_REL_ENVELOPEINTERSECTS:"esriSpatialRelEnvelopeIntersects",SPATIAL_REL_INDEXINTERSECTS:"esriSpatialRelIndexIntersects",
SPATIAL_REL_OVERLAPS:"esriSpatialRelOverlaps",SPATIAL_REL_TOUCHES:"esriSpatialRelTouches",SPATIAL_REL_WITHIN:"esriSpatialRelWithin",SPATIAL_REL_RELATION:"esriSpatialRelRelation"};z("extend-esri")&&E.setObject("tasks._SpatialRelationship",w,b);return w})},"esri/plugins/popupManager":function(){define(["../PopupManager"],function(E){return{add:function(z,b){z.popupManager||(z.popupManager=new E(b),z.popupManager.setMap(z))},remove:function(z){var b=z.popupManager;b&&(b.unsetMap(),z.popupManager=void 0)}}})},
"esri/PopupManager":function(){define("./geometry/Extent ./geometry/ScreenPoint ./kernel ./layerUtils ./tasks/query dijit/registry dojo/_base/array dojo/_base/declare dojo/_base/Deferred dojo/_base/lang esri/sniff dojo/on dojo/promise/all dojo/Stateful require".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m){var g;q=q(h,{declaredClass:"esri.PopupManager",enabled:!1,map:null,_mapClickHandle:null,_featureLayersCache:{},constructor:function(k){this._mapClickHandler=c.hitch(this,this._mapClickHandler)},
setMap:function(k){if(this.map)if(k!==this.map)this.unsetMap();else return;this.map=k;this._setupClickHandler()},unsetMap:function(){this.map&&(this.map=null);this._mapClickHandle&&(this._mapClickHandle.remove(),this._mapClickHandle=null)},getMapLayer:function(k){var x;if(k&&(x=k.getLayer())&&(k=x.id,this._featureLayersCache[k])){var v=k.lastIndexOf("_");-1<v&&(k=k.substring(0,v),x=this.map.getLayer(k))}return x},_enabledSetter:function(k){this.enabled=k;this._setupClickHandler()},_setupClickHandler:function(){this._mapClickHandle&&
(this._mapClickHandle.remove(),this._mapClickHandle=null);this.enabled&&this.map&&(this._mapClickHandle=this.map.on("click",this._mapClickHandler))},_mapClickHandler:function(k){var x=this.map.infoWindow,v=k.graphic;x&&this.map.loaded&&(x.clearFeatures&&x.setFeatures?this._showPopup(k):v&&v.getInfoTemplate()&&this._showInfoWindow(v,k.mapPoint))},_showPopup:function(k){var x=this.map,v=x.infoWindow,y=this,u=[],t=[x.graphics].concat(l.map(x.graphicsLayerIds,x.getLayer,x));l.forEach(t,function(C){var F=
C.getFeatureReduction&&C.getFeatureReduction();C&&C.loaded&&C.infoTemplate&&!C.suspended&&(!F||!y._isReductionEnabled(C)||F.infoTemplate&&!F.disablePopup)&&u.push(C)});var r=[];l.forEach(x.layerIds,function(C){(C=x.getLayer(C))&&C.loaded&&!C.suspended&&(y._isImageServiceLayer(C)&&C.infoTemplate?u.push(C):"esri.layers.WMSLayer"===C.declaredClass&&C.getFeatureInfoURL?u.push(C):"esri.layers.ArcGISDynamicMapServiceLayer"!==C.declaredClass&&"esri.layers.ArcGISTiledMapServiceLayer"!==C.declaredClass||!C.infoTemplates||
r.push(C))});var B=x.getResolutionForPopup();this._getSubLayerFeatureLayers(r,B).then(function(C){u=u.concat(C);C=k.graphic&&k.graphic.getParentGraphic()||k.graphic;var F=null;C&&C.getInfoTemplate()&&!y._isImageServiceLayer(C.getLayer())&&(F=C);if(u.length||F){var A=y._calculateClickTolerance(u),D=k.screenPoint;C=x.toMap(new z(D.x-A,D.y+A));A=x.toMap(new z(D.x+A,D.y-A));var G=new E(C.x,C.y,A.x,A.y,x.spatialReference);if(G=G.intersects(x.extent)){var H=new p,L=!!F,aa=!0;C=l.map(u,function(da){H.timeExtent=
da.useMapTime?x.timeExtent:null;var ha=y._isReductionEnabled(da);da=ha?da.getFeatureReductionLayer():da;var ia=y._featureLayersCache[da.id];if(y._isImageServiceLayer(da)){H.geometry=k.mapPoint;aa=!1;var ba={rasterAttributeTableFieldPrefix:"Raster.",returnDomainValues:!0};y._isTiledImageServiceLayer(da)?ba=da.fetchPopupFromTiles(H):(ba=da.queryVisibleRasters(H,ba),ba.addCallback(function(){var pa=da.getVisibleRasters();L=L||0<pa.length;return pa}))}else if("esri.layers.WMSLayer"===da.declaredClass){ba=
new f;var ja=da._getPopupGraphic(x,k.screenPoint);ja?(ba.resolve([ja]),L=!0):ba.resolve([])}else ia||"function"===typeof da.queryFeatures&&(0===da.currentMode||1===da.currentMode)?(H.geometry=G,ba=da.queryFeatures(H),ba.addCallback(function(pa){var Ca=[];l.forEach(pa.features,function(la){la.visible&&(Ca.push(la),ia&&la.setResolution(B))});L=L||0<Ca.length;return Ca})):(ba=new f,ja=l.filter(da.graphics,function(pa){return pa&&pa.visible&&G.intersects(pa.geometry)}),ha&&y._isParentLayer(da,F)&&(ha=
y._findGraphicById(ja,F,"cluster_id"))&&(F=ha),L=L||0<ja.length,ba.resolve(ja));return ba});F&&(A=new f,A.resolve([F]),C.unshift(A));l.some(C,function(da){return!da.isFulfilled()})||L?(v.setFeatures(C),v.show(k.mapPoint,{closestFirst:aa})):(v.hide(),v.clearFeatures())}}})},_getSubLayerFeatureLayers:function(k,x,v){x=x||null;var y=v||new f,u=[];v=k.length;var t=this.map.getScale(),r=!1,B=this,C=0;a:for(;C<v;C++){var F=k[C],A=F.dynamicLayerInfos||F.layerInfos;if(A){var D=null;F._params&&(F._params.layers||
F._params.dynamicLayers)&&(D=F.visibleLayers);D=w._getVisibleLayers(A,D);for(var G=w._getLayersForScale(t,A),H=A.length,L=0;L<H;L++){var aa=A[L],da=aa.id,ha=F.infoTemplates[da];if(!aa.subLayerIds&&ha&&ha.infoTemplate&&-1<l.indexOf(D,da)&&-1<l.indexOf(G,da)){if(!g){r=!0;break a}var ia=F.id+"_"+da,ba=this._featureLayersCache[ia];ba&&ba.loadError||(ba||((ba=ha.layerUrl)||(ba=aa.source?this._getLayerUrl(F.url,"/dynamicLayer"):this._getLayerUrl(F.url,da)),ba=new g(ba,{parentLayer:F,id:ia,drawMode:!1,mode:g.MODE_SELECTION,
outFields:this._getOutFields(ha.infoTemplate),resourceInfo:ha.resourceInfo,source:aa.source}),this._featureLayersCache[ia]=ba),ba.setDefinitionExpression(F.layerDefinitions&&F.layerDefinitions[da]),ba.setGDBVersion(F.gdbVersion),ba.setInfoTemplate(ha.infoTemplate),ba.setMaxAllowableOffset(x),ba.setUseMapTime(!!F.useMapTime),F.layerDrawingOptions&&F.layerDrawingOptions[da]&&F.layerDrawingOptions[da].renderer&&ba.setRenderer(F.layerDrawingOptions[da].renderer),u.push(ba))}}}}if(r){var ja=new f;m(["./layers/FeatureLayer"],
function(Ca){g=Ca;ja.resolve()});ja.then(function(){B._getSubLayerFeatureLayers(k,x,y)})}else{var pa=[];l.forEach(u,function(Ca){if(!Ca.loaded){var la=new f;d.once(Ca,"load, error",function(){la.resolve()});pa.push(la.promise)}});pa.length?e(pa).then(function(){u=l.filter(u,function(Ca){return!Ca.loadError&&Ca.isVisibleAtScale(t)});y.resolve(u)}):(u=l.filter(u,function(Ca){return Ca.isVisibleAtScale(t)}),y.resolve(u))}return y.promise},_getLayerUrl:function(k,x){var v=k.indexOf("?");return-1===v?
k+"/"+x:k.substring(0,v)+"/"+x+k.substring(v)},_getOutFields:function(k){var x=k.info&&k.info.fieldInfos;if(x&&x.length&&"esri.dijit.PopupTemplate"===k.declaredClass){var v=[];l.forEach(x,function(y){var u=y.fieldName&&y.fieldName.toLowerCase();u&&"shape"!==u&&0!==u.indexOf("relationships/")&&v.push(y.fieldName)})}else v=["*"];return v},_calculateClickTolerance:function(k){var x=a("esri-touch")?9:6,v,y;l.forEach(k,function(u){if(v=u.renderer)"esri.renderer.SimpleRenderer"===v.declaredClass?((y=v.symbol)&&
y.xoffset&&(x=Math.max(x,Math.abs(y.xoffset))),y&&y.yoffset&&(x=Math.max(x,Math.abs(y.yoffset)))):"esri.renderer.UniqueValueRenderer"!==v.declaredClass&&"esri.renderer.ClassBreaksRenderer"!==v.declaredClass||l.forEach(v.infos,function(t){(y=t.symbol)&&y.xoffset&&(x=Math.max(x,Math.abs(y.xoffset)));y&&y.yoffset&&(x=Math.max(x,Math.abs(y.yoffset)))})});return x},_showInfoWindow:function(k,x){var v=this.map.infoWindow,y=k.geometry;x=y&&"point"===y.type?y:x;y=k.getContent();v.setTitle(k.getTitle());y&&
c.isString(y.id)&&(k=n.byId(y.id))&&k.set&&/_PopupRenderer/.test(k.declaredClass)&&k.set("showTitle",!1);v.setContent(y);v.show(x)},_findGraphicById:function(k,x,v){var y,u=(x=x.attributes)&&x[v];l.some(k,function(t){var r=t.attributes;r&&r[v]===u&&(y=t);return!!y});return y},_isParentLayer:function(k,x){x=x&&x.getLayer();return k&&x===k},_isReductionEnabled:function(k){return k&&k.isFeatureReductionActive&&k.isFeatureReductionActive()},_isImageServiceLayer:function(k){return"esri.layers.ArcGISImageServiceLayer"===
k.declaredClass||"esri.layers.ArcGISImageServiceVectorLayer"===k.declaredClass||"esri.layers.RasterXLayer"===k.declaredClass},_isTiledImageServiceLayer:function(k){return"esri.layers.RasterXLayer"===k.declaredClass}});a("extend-esri")&&(b.PopupManager=q);return q})},"esri/layerUtils":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/json","dojo/has","./kernel"],function(E,z,b,w,p){var n={_serializeLayerDefinitions:function(l,q){var f=[],c=/[:;]/;if(l&&(z.forEach(l,function(d,e){d&&
(f.push([e,d]),!q&&c.test(d)&&(q=!0))}),0<f.length)){if(q){var a={};z.forEach(f,function(d){a[d[0]]=d[1]});a=b.toJson(a)}else a=[],z.forEach(f,function(d){a.push(d[0]+":"+d[1])}),a=a.join(";");return a}return null},_serializeTimeOptions:function(l,q){if(l){var f=[];z.forEach(l,function(c,a){c&&(c=c.toJson(),q&&-1!==z.indexOf(q,a)&&(c.useTime=!1),f.push('"'+a+'":'+b.toJson(c)))});if(f.length)return"{"+f.join(",")+"}"}},_getVisibleLayers:function(l,q){var f=[],c;if(!l)return f;if(q)for(f=q.concat(),
c=0;c<l.length;c++){q=l[c];var a=z.indexOf(l,q.id);q.subLayerIds&&-1<a&&(f.splice(a,1),f=f.concat(q.subLayerIds))}else f=this._getDefaultVisibleLayers(l);return f},_getDefaultVisibleLayers:function(l){var q=[],f;if(!l)return q;for(f=0;f<l.length;f++)0<=l[f].parentLayerId&&-1===z.indexOf(q,l[f].parentLayerId)&&z.some(l,function(c){return c.id===l[f].parentLayerId})||l[f].defaultVisibility&&q.push(l[f].id);return q},_getLayersForScale:function(l,q){var f=[];if(0<l&&q){var c;for(c=0;c<q.length;c++)if(!(0<=
q[c].parentLayerId&&-1===z.indexOf(f,q[c].parentLayerId)&&z.some(q,function(h){return h.id===q[c].parentLayerId}))&&0<=q[c].id){var a=!0,d=q[c].maxScale,e=q[c].minScale;if(0<d||0<e)0<d&&0<e?a=d<=l&&l<=e:0<d?a=d<=l:0<e&&(a=l<=e);a&&f.push(q[c].id)}}return f}};w("extend-esri")&&E.mixin(p,n);return n})},"esri/MapNavigationManager":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/event dojo/mouse dojo/keys dijit/focus ./kernel ./MouseEvents ./TouchEvents ./PointerEvents ./config ./sniff ./lang ./fx ./graphic ./tileUtils ./geometry/ScreenPoint ./geometry/Extent ./geometry/Rect ./geometry/mathUtils ./symbols/SimpleFillSymbol".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y,u,t,r){var B=w.connect,C=w.disconnect,F=h("chrome"),A=h("safari"),D=[l.NUMPAD_PLUS,61,187,l.NUMPAD_MINUS,173,189,l.UP_ARROW,l.NUMPAD_8,l.RIGHT_ARROW,l.NUMPAD_6,l.DOWN_ARROW,l.NUMPAD_2,l.LEFT_ARROW,l.NUMPAD_4,l.PAGE_UP,l.NUMPAD_9,l.PAGE_DOWN,l.NUMPAD_3,l.END,l.NUMPAD_1,l.HOME,l.NUMPAD_7];E=E(null,{declaredClass:"esri.MapNavigationManager",eventModel:"",constructor:function(G,H){this.map=G;z.mixin(this,H);H=G.__container;h("esri-pointer")?(this.pointerEvents=
new d(H,{map:G}),this.eventModel="pointer"):h("esri-touch")?(h("ios")||(this.mouseEvents=new c(H,{map:G})),this.touchEvents=new a(H,{map:G,mouseEvents:this.mouseEvents}),this.eventModel="touch"):(this.mouseEvents=new c(H,{map:G}),this.eventModel="mouse");this._zoomRect=new k(null,new r(e.defaults.map.zoomSymbol));this._keyDx=this._keyDy=0;this._adjustPinch=z.hitch(this,this._adjustPinch);this._adjustPinchEnd=z.hitch(this,this._adjustPinchEnd)},_panInit:function(G){var H=this.mouseEvents;n.isLeft(G)&&
this.map.isPan&&!G.shiftKey&&(this._dragOrigin=new v(0,0),z.mixin(this._dragOrigin,G.screenPoint),C(this._panStartHandle),C(this._panHandle),C(this._panEndHandle),this._panStartHandle=B(H,"onMouseDragStart",this,this._panStart),this._panHandle=B(H,"onMouseDrag",this,this._pan),this._panEndHandle=B(H,"onMouseUp",this,this._panEnd),F||A)&&(G.preventDefault(),q.curNode&&q.curNode.blur())},_panStart:function(G){this.map.setCursor("move");this.map.__panStart(G.screenPoint.x,G.screenPoint.y)},_pan:function(G){this.map.__pan(G.screenPoint.x-
this._dragOrigin.x,G.screenPoint.y-this._dragOrigin.y)},_panEnd:function(G){C(this._panStartHandle);C(this._panHandle);C(this._panEndHandle);this._panStartHandle=this._panHandle=this._panEndHandle=null;var H=this.map;H.__panning&&(H.__panEnd(G.screenPoint.x-this._dragOrigin.x,G.screenPoint.y-this._dragOrigin.y),H.resetMapCursor())},_zoomInit:function(G){var H=this.map,L=this.pointerEvents||this.mouseEvents;(n.isLeft(G)||G.pointerType)&&H.isRubberBandZoom&&G.shiftKey&&(H.setCursor("crosshair"),this._dragOrigin=
z.mixin({},G.screenPoint),this._zoomDir=G.ctrlKey||G.metaKey?-1:1,this.pointerEvents?(this._zoomHandle=B(L,"onSwipeMove",this,this._zoom),this._zoomEndHandle=B(L,"onSwipeEnd",this,this._zoomEnd)):(this._zoomHandle=B(L,"onMouseDrag",this,this._zoom),this._zoomEndHandle=B(L,"onMouseUp",this,this._zoomEnd)),F&&G.preventDefault())},_zoom:function(G){var H=this.map,L=this._normalizeRect(G).offset(H.__visibleRect.x,H.__visibleRect.y);G=H.graphics;var aa=this._zoomRect;aa.geometry||H.setCursor("crosshair");
aa.geometry&&G.remove(aa,!0);var da=H.toMap(new v(L.x,L.y));L=H.toMap(new v(L.x+L.width,L.y+L.height));L=new u(da.x,da.y,L.x-da.x,da.y-L.y,H.spatialReference);L._originOnly=!0;aa.setGeometry(L);G.add(aa,!0)},_zoomEnd:function(G){var H=this._zoomRect,L=this.map,aa=L.extent,da=L.spatialReference;C(this._zoomHandle);C(this._zoomEndHandle);this._zoomHandle=this._zoomEndHandle=null;if(L._canZoom(this._zoomDir)&&H.getDojoShape()){L.graphics.remove(H);H.geometry=null;G=this._normalizeRect(G);G.x+=L.__visibleRect.x;
G.y+=L.__visibleRect.y;if(-1===this._zoomDir){var ha=aa.getWidth();G=(ha*L.width/G.width-ha)/2;da=new y(aa.xmin-G,aa.ymin-G,aa.xmax+G,aa.ymax+G,da)}else aa=L.toMap({x:G.x,y:G.y+G.height}),G=L.toMap({x:G.x+G.width,y:G.y}),da=new y(aa.x,aa.y,G.x,G.y,da);L._extentUtil(null,null,da)}H.getDojoShape()&&L.graphics.remove(H,!0);this._zoomDir=0;L.resetMapCursor()},_wheelZoom:function(G,H){var L=this.map;if(!H){if(L.smartNavigation&&!G.shiftKey&&!L._isPanningOrZooming()){L.disableScrollWheelZoom();this._setScrollWheelPan(!0);
this._wheelPan(G);return}H=G.timeStamp;if(!m.isDefined(H)||0>=H)H=(new Date).getTime();if(100>(this._mwts?H-this._mwts:H))return;this._mwts=H}L._canZoom(G.value)&&L._extentUtil({numLevels:G.value,mapAnchor:G.mapPoint,screenAnchor:G.screenPoint})},_wheelPan:function(G){var H=this.map;if(G.shiftKey&&!H._isPanningOrZooming())this._setScrollWheelPan(!1),H.enableScrollWheelZoom(),this._wheelZoom(G);else{var L=0,aa=0;h("ff")?G.axis===G.HORIZONTAL_AXIS?L=-G.detail:aa=-G.detail:(L=G.wheelDeltaX,aa=G.wheelDeltaY);
H.translate(L,aa)}},_setScrollWheelPan:function(G){this.map.isScrollWheelPan=G;this.mouseEvents&&this.mouseEvents.enableMouseWheel(G);C(this._mwMacHandle);this._mwMacHandle=null;G&&(this._mwMacHandle=B(this.mouseEvents||this.pointerEvents,"onMouseWheel",this,this._wheelPan))},_recenter:function(G){G.shiftKey&&!this.map._isPanningOrZooming()&&this.map.centerAt(G.mapPoint)},_recenterZoom:function(G){G.shiftKey&&!this.map._isPanningOrZooming()&&(G.value=G.ctrlKey||G.metaKey?-1:1,this._wheelZoom(G,!0))},
_dblClickZoom:function(G){this.map._isPanningOrZooming()||(G.value=1,this._wheelZoom(G,!0))},_twoFingerTap:function(G){this.map._isPanningOrZooming()||(G.value=-1,this._wheelZoom(G,!0))},_keyDown:function(G){var H=G.keyCode,L=this.map;if(-1!==b.indexOf(D,H)){if(H===l.NUMPAD_PLUS||61===H||187===H)L._extentUtil({numLevels:1});else if(H===l.NUMPAD_MINUS||173===H||189===H)L._extentUtil({numLevels:-1});else{L.__panning||L.__panStart(0,0);switch(H){case l.UP_ARROW:case l.NUMPAD_8:this._keyDy+=10;break;
case l.RIGHT_ARROW:case l.NUMPAD_6:this._keyDx-=10;break;case l.DOWN_ARROW:case l.NUMPAD_2:this._keyDy-=10;break;case l.LEFT_ARROW:case l.NUMPAD_4:this._keyDx+=10;break;case l.PAGE_UP:case l.NUMPAD_9:this._keyDx-=10;this._keyDy+=10;break;case l.PAGE_DOWN:case l.NUMPAD_3:this._keyDx-=10;this._keyDy-=10;break;case l.END:case l.NUMPAD_1:this._keyDx+=10;this._keyDy-=10;break;case l.HOME:case l.NUMPAD_7:this._keyDx+=10;this._keyDy+=10;break;default:return}L.__pan(this._keyDx,this._keyDy)}p.stop(G)}},_keyEnd:function(G){var H=
this.map;H.__panning&&G.keyCode!==l.SHIFT&&(H.__panEnd(this._keyDx,this._keyDy),this._keyDx=this._keyDy=0)},_swipeInit:function(G){var H=this.map;H=H._zoomAnim||H._panAnim;if(G.shiftKey)return!1;H&&H._active&&(H.stop(),H._fire("onEnd",[H.node]));this._dragOrigin=new v(0,0);z.mixin(this._dragOrigin,G.screenPoint);C(this._swipeHandle);C(this._swipeEndHandle);this._swipeHandle=B(this.touchEvents||this.pointerEvents,"onSwipeMove",this,this._swipe);this._swipeEndHandle=B(this.touchEvents||this.pointerEvents,
"onSwipeEnd",this,this._swipeEnd)},_swipe:function(G){var H=this.map;H.__panning?(this._panX=G.screenPoint.x,this._panY=G.screenPoint.y,H.__pan(G.screenPoint.x-this._dragOrigin.x,G.screenPoint.y-this._dragOrigin.y)):(H.setCursor("move"),H.__panStart(G.screenPoint.x,G.screenPoint.y))},_swipeEnd:function(G){C(this._swipeHandle);C(this._swipeEndHandle);this._swipeHandle=this._swipeEndHandle=null;var H=this.map;H.__panning&&(H.resetMapCursor(),H.__panEnd(G.screenPoint.x-this._dragOrigin.x,G.screenPoint.y-
this._dragOrigin.y))},_pinchInit:function(G){var H=this.map,L=H._zoomAnim||H._panAnim;L&&L._active?(L.stop(),L._fire("onEnd",[L.node])):H.__panning&&(G.screenPoint=new v(this._panX,this._panY),G.mapPoint=H.toMap(G.screenPoint),this._swipeEnd(G));C(this._pinchHandle);C(this._pinchEndHandle);this._pinchHandle=B(this.touchEvents||this.pointerEvents,"onPinchMove",this,this._pinch);this._pinchEndHandle=B(this.touchEvents||this.pointerEvents,"onPinchEnd",this,this._pinchEnd)},_pinch:function(G){var H=this.map;
if(G.screenPoints){this.currLength=t.getLength(G.screenPoints[0],G.screenPoints[1]);if(H.__zooming){var L=this.currLength/this._length;this._zoomStartExtent=this.__scaleExtent(H.extent,L,this._dragOrigin);H.__zoom(this._zoomStartExtent,L,this._dragOrigin)}else this._dragOrigin=new v((G.screenPoints[0].x+G.screenPoints[1].x)/2,(G.screenPoints[0].y+G.screenPoints[1].y)/2),this._length=this.currLength,H.__zoomStart(H.extent,this._dragOrigin);this._pinchScale=L;H._fireOnScale(this.currLength/this._length,
this._dragOrigin,!0)}},_pinchEnd:function(G){G=this.map;C(this._pinchHandle);C(this._pinchEndHandle);this._pinchHandle=this._pinchEndHandle=null;this._pinchScale=0;if(G.__zooming&&null===G._zoomAnim){var H=this.currLength/this._length,L=G.extent.getWidth();this._zoomAnimAnchor=G.toMap(this._dragOrigin);this._zoomStartExtent=this.__scaleExtent(G.extent,1/H,this._zoomAnimAnchor);if(G.__tileInfo){var aa=x.getCandidateTileInfo(G,G.__tileInfo,this._zoomStartExtent),da=G.__getExtentForLevel(aa.lod.level,
this._zoomAnimAnchor),ha=G.getMinZoom(),ia=G.getMaxZoom(),ba=da.extent;da=da.lod;var ja=L/ba.getWidth(),pa=aa.lod.level;1>H?ja>H&&pa--:ja<H&&pa++;pa<ha?pa=ha:pa>ia&&(pa=ia);pa!==aa.lod.level&&(da=G.__getExtentForLevel(pa,this._zoomAnimAnchor),ba=da.extent,da=da.lod);this._zoomEndExtent=ba;this._zoomEndLod=da;G._zoomAnim=g.animateRange({range:{start:L/this._zoomStartExtent.getWidth(),end:ja},duration:e.defaults.map.zoomDuration,rate:e.defaults.map.zoomRate,onAnimate:this._adjustPinch,onEnd:this._adjustPinchEnd});
G._zoomAnim.play();G._fireOnScale(G.extent.getWidth()/this._zoomEndExtent.getWidth(),this._dragOrigin)}else this._zoomEndExtent=this._zoomStartExtent,G._fireOnScale(G.extent.getWidth()/this._zoomEndExtent.getWidth(),this._dragOrigin),this._adjustPinchEnd()}},_adjustPinch:function(G){var H=this.__scaleExtent(this.map.extent,G,this._zoomAnimAnchor);this.map.__zoom(H,G,this._dragOrigin)},_adjustPinchEnd:function(){var G=this.map,H=G.extent.getWidth()/this._zoomEndExtent.getWidth(),L=this.__scaleExtent(G.extent,
1/H,this._zoomAnimAnchor),aa=this._dragOrigin,da=this._zoomEndLod;this._zoomStartExtent=this._zoomEndExtent=this._zoomEndLod=this._dragOrigin=G._zoomAnim=this._zoomAnimAnchor=null;G.__zoomEnd(L,H,aa,da,!0)},__scaleExtent:function(G,H,L){L=L||G.getCenter();H=G.expand(H);var aa=G.xmin-(H.getWidth()-G.getWidth())*(L.x-G.xmin)/G.getWidth();L=G.ymax-(H.getHeight()-G.getHeight())*(L.y-G.ymax)/G.getHeight();return new y(aa,L-H.getHeight(),aa+H.getWidth(),L,G.spatialReference)},_normalizeRect:function(G){G=
G.screenPoint;var H=this._dragOrigin.x,L=this._dragOrigin.y;G=new u((G.x<H?G.x:H)-this.map.__visibleRect.x,(G.y<L?G.y:L)-this.map.__visibleRect.y,Math.abs(G.x-H),Math.abs(G.y-L));delete G.spatialReference;0===G.width&&(G.width=1);0===G.height&&(G.height=1);return G},setImmediateClick:function(G){switch(this.eventModel){case "mouse":this.mouseEvents.setImmediateClick(G);break;case "touch":this.touchEvents.setImmediateTap(G);this.mouseEvents&&this.mouseEvents.setImmediateClick(G);break;case "pointer":this.pointerEvents.setImmediateTap(G)}},
enablePan:function(){this.disablePan();switch(this.eventModel){case "mouse":this._panInitHandle=B(this.mouseEvents,"onMouseDown",this,this._panInit);break;case "touch":this._panInitHandle=B(this.mouseEvents,"onMouseDown",this,this._panInit);this._swipeInitHandle=B(this.touchEvents,"onSwipeStart",this,this._swipeInit);break;case "pointer":this._swipeInitHandle=B(this.pointerEvents,"onSwipeStart",this,this._swipeInit)}},disablePan:function(){C(this._panInitHandle);this._panInitHandle=null;C(this._swipeInitHandle);
this._swipeInitHandle=null},enableRubberBandZoom:function(){this.disableRubberBandZoom();this._zoomInitHandle=this.pointerEvents?B(this.pointerEvents,"onSwipeStart",this,this._zoomInit):B(this.mouseEvents,"onMouseDown",this,this._zoomInit)},disableRubberBandZoom:function(){C(this._zoomInitHandle);this._zoomInitHandle=null},enablePinchZoom:function(){this.disablePinchZoom();if("touch"===this.eventModel||"pointer"===this.eventModel)this._pinchInitHandle=B(this.touchEvents||this.pointerEvents,"onPinchStart",
this,this._pinchInit)},disablePinchZoom:function(){C(this._pinchInitHandle);this._pinchInitHandle=null},enableScrollWheelZoom:function(){this.disableScrollWheelZoom();this._wheelHandle=B(this.mouseEvents||this.pointerEvents,"onMouseWheel",this,this._wheelZoom)},disableScrollWheelZoom:function(){C(this._wheelHandle);this._wheelHandle=null},enableScrollWheelPan:function(){var G=this.map;G&&G.loaded&&G.smartNavigation&&(this.disableScrollWheelPan(),this._setScrollWheelPan(!0))},disableScrollWheelPan:function(){var G=
this.map;G&&G.loaded&&G.smartNavigation&&this._setScrollWheelPan(!1)},enableDoubleClickZoom:function(){this.disableDoubleClickZoom();switch(this.eventModel){case "mouse":this._dblClickHandle=B(this.mouseEvents,"onDblClick",this,this._dblClickZoom);break;case "touch":this._dblClickHandle=B(this.mouseEvents,"onDblClick",this,this._dblClickZoom);this._dblTapHandle=B(this.touchEvents,"onDoubleTap",this,this._dblClickZoom);this._zoomOutHandle=B(this.touchEvents,"onTwoFingerTap",this,this._twoFingerTap);
break;case "pointer":this._dblTapHandle=B(this.pointerEvents,"onDoubleTap",this,this._dblClickZoom),this._zoomOutHandle=B(this.pointerEvents,"onTwoFingerTap",this,this._twoFingerTap)}},disableDoubleClickZoom:function(){C(this._dblClickHandle);C(this._zoomOutHandle);this._dblTapHandle&&C(this._dblTapHandle);this._dblClickHandle=this._zoomOutHandle=this._dblTapHandle=null},enableShiftDoubleClickZoom:function(){this.disableShiftDoubleClickZoom();this._sDblClickHandle=B(this.pointerEvents||this.mouseEvents,
"onDblClick",this,this._recenterZoom)},disableShiftDoubleClickZoom:function(){C(this._sDblClickHandle);this._sDblClickHandle=null},enableClickRecenter:function(){this.disableClickRecenter();this._recenterHandle=B(this.pointerEvents||this.mouseEvents,"onClick",this,this._recenter)},disableClickRecenter:function(){C(this._recenterHandle);this._recenterHandle=null},enableKeyboardNavigation:function(){this.disableKeyboardNavigation();this._keyHandle=B(this.pointerEvents||this.mouseEvents,"onKeyDown",
this,this._keyDown);this._keyEndHandle=B(this.pointerEvents||this.mouseEvents,"onKeyUp",this,this._keyEnd)},disableKeyboardNavigation:function(){C(this._keyHandle);C(this._keyEndHandle);this._keyHandle=this._keyEndHandle=null},enableScrollWheel:function(){var G=this.map;G&&(G.smartNavigation?this.enableScrollWheelPan():G.enableScrollWheelZoom())},disableScrollWheel:function(){var G=this.map;G&&(G.disableScrollWheelZoom(),G.smartNavigation&&this.disableScrollWheelPan())},enableNavigation:function(){var G=
this.map;G&&G.loaded&&(G._evalNavigationFeature("DoubleClickZoom"),G._evalNavigationFeature("ClickRecenter"),G._evalNavigationFeature("Pan"),G._evalNavigationFeature("RubberBandZoom"),G._evalNavigationFeature("PinchZoom"),G._evalNavigationFeature("KeyboardNavigation"),G._evalNavigationFeature("ScrollWheel"))},disableNavigation:function(){var G=this.map;G&&G.loaded&&(G._evalNavigationFeature("DoubleClickZoom"),G._evalNavigationFeature("ClickRecenter"),G._evalNavigationFeature("Pan"),G._evalNavigationFeature("RubberBandZoom"),
G._evalNavigationFeature("PinchZoom"),G._evalNavigationFeature("KeyboardNavigation"),G._evalNavigationFeature("ScrollWheel"))},destroy:function(){this.touchEvents&&this.touchEvents.destroy();this.mouseEvents&&this.mouseEvents.destroy();this.pointerEvents&&this.pointerEvents.destroy();var G,H=[this._panInitHandle,this._panStartHandle,this._panHandle,this._panEndHandle,this._zoomInitHandle,this._zoomHandle,this._zoomEndHandle,this._wheelHandle,this._mwMacHandle,this._dblClickHandle,this._zoomOutHandle,
this._recenterHandle,this._sDblClickHandle,this._dblTapHandle,this._keyHandle,this._keyEndHandle,this._swipeInitHandle,this._swipeHandle,this._swipeEndHandle,this._pinchInitHandle,this._pinchHandle,this._pinchEndHandle];for(G=0;G<H.length;G++)C(H[G]);this.map=this.touchEvents=this.mouseEvents=this.eventModel=this.pointerEvents=this._zoomRect=this._dragOrigin=this._panInitHandle=this._panStartHandle=this._panHandle=this._panEndHandle=this._zoomInitHandle=this._zoomHandle=this._zoomEndHandle=this._wheelHandle=
this._mwMacHandle=this._dblClickHandle=this._zoomOutHandle=this._recenterHandle=this._sDblClickHandle=this._dblTapHandle=this._keyHandle=this._keyEndHandle=this._swipeInitHandle=this._swipeHandle=this._swipeEndHandle=this._pinchInitHandle=this._pinchHandle=this._pinchEndHandle=null}});h("extend-esri")&&(f.MapNavigationManager=E);return E})},"esri/MouseEvents":function(){define("dojo/_base/declare dojo/_base/html dojo/_base/lang dojo/_base/sniff dojo/_base/connect dojo/_base/event ./kernel ./Evented ./geometry/Point ./geometry/ScreenPoint".split(" "),
function(E,z,b,w,p,n,l,q,f,c){var a=p.connect,d=p.disconnect;E=E([q],{declaredClass:"esri.MouseEvents",doubleClickDuration:300,minWheelValue:1,maxWheelValue:1,mozWheelDivisor:-1!==w("mac")?1:3,wheelDivisor:2>w("chrome")?360:120,preventPageScroll:!0,map:null,constructor:function(e,h){this.node=e;b.mixin(this,h);h=function(m){n.stop(m);return!1};w("mozilla")&&z.style(e,"MozUserSelect","none");this._handles=[a(e,"onselectstart",h),a(e,"ondragstart",h),a(e,"onmouseenter",this,this._onMouseEnterHandler),
a(e,"onmouseleave",this,this._onMouseLeaveHandler),a(e,"onmousedown",this,this._onMouseDownHandler),a(e,"onclick",this,this._onClickHandler),a(e,"ondblclick",this,this._onDblClickHandler)];this._onMouseMoveHandler_connect=a(e,"onmousemove",this,this._onMouseMoveHandler);this._onMouseUpHandler_connect=a(e,"onmouseup",this,this._onMouseUpHandler);this._fireClickEvent=b.hitch(this,this._fireClickEvent);this._initialDuration=this.doubleClickDuration;this.preventPageScroll=(e=this.map)?e.isScrollWheelZoom||
e.isScrollWheelPan:this.preventPageScroll;this.enableMouseWheel(!1)},_fire:function(e,h){if(!this._preventClick||"onClick"!==e&&"onDblClick"!==e){if(this[e])this[e](h);if(this.map&&this.map[e])this.map[e](h)}},_processEvent:function(e){e=n.fix(e,e.target);var h=this.map,m=h&&h.position;m&&("DOMMouseScroll"===e.type&&3>w("ff")?e.screenPoint=new c(window.scrollX+e.screenX-m.x,window.scrollY+e.screenY-m.y):e.screenPoint=new c(e.pageX-m.x,e.pageY-m.y),e.mapPoint=h.extent?h.toMap(e.screenPoint):new f);
e.numPoints=0;return e},_onMouseEnterHandler:function(e){d(this._onKeyDown_connect);d(this._onKeyUp_connect);this._onKeyDown_connect=a(document,"onkeydown",this,this._onKeyDownHandler);this._onKeyUp_connect=a(document,"onkeyup",this,this._onKeyUpHandler);this._fire("onMouseOver",this._processEvent(e))},_onMouseLeaveHandler:function(e){d(this._onKeyDown_connect);d(this._onKeyUp_connect);this._onKeyDown_connect=this._onKeyUp_connect=null;this._fire("onMouseOut",this._processEvent(e))},_onMouseMoveHandler:function(e){this._dragEnd?
this._dragEnd=!1:this._fire("onMouseMove",this._processEvent(e))},_onMouseDownHandler:function(e){d(this._onMouseMoveHandler_connect);this._onMouseMoveHandler_connect=null;this.node.setCapture&&this.node.setCapture(!1);d(this._onMouseDragHandler_connect);this._onMouseDragHandler_connect=a(document,"onmousemove",this,this._onMouseDragHandler);this._startX=e.pageX;this._startY=e.pageY;this._fire("onMouseDown",this._processEvent(e))},_onMouseUpHandler:function(e){var h=this.node;h.releaseCapture&&h.releaseCapture();
d(this._onMouseDragHandler_connect);this._onMouseDragHandler_connect=null;d(this._onMouseMoveHandler_connect);this._onMouseMoveHandler_connect=a(h,"onmousemove",this,this._onMouseMoveHandler);this._fire("onMouseUp",this._processEvent(e))},_onMouseDragHandler:function(e){d(this._onMouseDragHandler_connect);this._onMouseDragHandler_connect=a(document,"onmousemove",this,this._onMouseDraggingHandler);d(this._onMouseUpHandler_connect);this._onMouseUpHandler_connect=a(document,"onmouseup",this,this._onDragMouseUpHandler);
this._docLeaveConnect=a(document,"onmouseout",this,this._onDocMouseOut);this._fire("onMouseDragStart",this._processEvent(e))},_onMouseDraggingHandler:function(e){n.stop(e);this._fire("onMouseDrag",this._processEvent(e))},_onDragMouseUpHandler:function(e){var h=this.node;h.releaseCapture&&h.releaseCapture();this._dragEnd=!0;d(this._docLeaveConnect);d(this._onMouseDragHandler_connect);d(this._onMouseUpHandler_connect);this._docLeaveConnect=this._onMouseDragHandler_connect=null;this._onMouseMoveHandler_connect=
a(h,"onmousemove",this,this._onMouseMoveHandler);this._onMouseUpHandler_connect=a(h,"onmouseup",this,this._onMouseUpHandler);e=this._processEvent(e);this._fire("onMouseDragEnd",e);this._fire("onMouseUp",e)},_onDocMouseOut:function(e){var h=9>w("ie")?e.toElement:e.relatedTarget,m=h&&h.nodeName.toLowerCase();(!h||(w("chrome")||w("safari"))&&"html"===m)&&this._onDragMouseUpHandler(e)},_onClickHandler:function(e){e=this._processEvent(e);if(e.pageX===this._startX&&e.pageY===this._startY){clearTimeout(this._clickTimer);
var h={},m="movementX"in e,g;for(g in e)"mozInputSource"===g||"mozPressure"===g||m&&("webkitMovementX"===g||"webkitMovementY"===g)||(h[g]=e[g]);this._clickEvent=h;this._clickTimer=setTimeout(this._fireClickEvent,this.doubleClickDuration)}},_fireClickEvent:function(){clearTimeout(this._clickTimer);9>w("ie")&&(this._clickEvent.graphic=l._ieGraphic,delete l._ieGraphic);this._fire("onClick",this._clickEvent)},_onDblClickHandler:function(e){clearTimeout(this._clickTimer);this._fire("onDblClick",this._processEvent(e))},
_onMouseWheelHandler:function(e){var h=this.map;(h?h.isScrollWheelZoom||h.isScrollWheelPan:this.preventPageScroll)&&n.stop(e);h=w("ff")||w("mozilla")?-e.detail/this.mozWheelDivisor:e.wheelDelta/this.wheelDivisor;var m=Math.abs(h);m=m<=this.minWheelValue?this.minWheelValue:this.maxWheelValue;e.value=0>h?-m:m;this._fire("onMouseWheel",this._processEvent(e))},_onKeyDownHandler:function(e){this._fire("onKeyDown",e)},_onKeyUpHandler:function(e){this._fire("onKeyUp",e)},enableMouseWheel:function(e){d(this._scrollHandle);
this._scrollHandle=a(this.node,w("ff")||w("mozilla")?e?"MozMousePixelScroll":"DOMMouseScroll":"onmousewheel",this,this._onMouseWheelHandler)},setImmediateClick:function(e){this.doubleClickDuration=e?0:this._initialDuration},preventClickEvents:function(e){this._preventClick=e},destroy:function(){var e=this._handles.concat([this._onMouseMoveHandler_connect,this._onMouseUpHandler_connect,this._onMouseDragHandler_connect,this._scrollHandle,this._onKeyDown_connect,this._onKeyUp_connect,this._docLeaveConnect]),
h;for(h=0;h<e.length;h++)d(e[h]);clearTimeout(this._clickTimer);this.node=this.map=this._handles=this._clickEvent=this._onMouseMoveHandler_connect=this._onMouseUpHandler_connect=this._onMouseDragHandler_connect=this._scrollHandle=this._onKeyDown_connect=this._onKeyUp_connect=this._docLeaveConnect=null}});w("extend-esri")&&(l.MouseEvents=E);return E})},"esri/TouchEvents":function(){define("dojo/_base/declare dojo/_base/html dojo/_base/lang dojo/_base/sniff dojo/dom ./kernel ./Evented ./geometry/Point ./geometry/ScreenPoint".split(" "),
function(E,z,b,w,p,n,l,q,f){E=E([l],{declaredClass:"esri.TouchEvents",tapRadius:8,doubleTapRadius:10,tapStartTolerance:50,doubleTapDuration:300,map:null,constructor:function(c,a){this.node=c;b.mixin(this,a);z.setSelectable(c,!1);this._touchStart=b.hitch(this,this._touchStart);this._touchMove=b.hitch(this,this._touchMove);this._touchEnd=b.hitch(this,this._touchEnd);this._touchCancel=b.hitch(this,this._touchCancel);this._fireClickEvent=b.hitch(this,this._fireClickEvent);c.addEventListener("touchstart",
this._touchStart,!1);c.addEventListener("touchmove",this._touchMove,!1);c.addEventListener("touchend",this._touchEnd,!1);c.addEventListener("touchcancel",this._touchCancel,!1);this.map&&w("ios")&&(this._mouseOver=b.hitch(this,this._mouseOver),this._mouseOut=b.hitch(this,this._mouseOut),this._mouseDown=b.hitch(this,this._mouseDown),this._mouseUp=b.hitch(this,this._mouseUp),this._mouseClick=b.hitch(this,this._mouseClick),c.addEventListener("mouseover",this._mouseOver,!1),c.addEventListener("mouseout",
this._mouseOut,!1),c.addEventListener("mousedown",this._mouseDown,!1),c.addEventListener("mouseup",this._mouseUp,!1),c.addEventListener("click",this._mouseClick,!1));this._numTouches=0;this._nodeTouches=[];this._touches={};this._touchIds=[];this._taps=[];this._immediate=!1},_touchStart:function(c){var a=this._touches,d,e=c.changedTouches.length,h,m,g=(new Date).getTime();this._touchStartTS=g;if(!(w("android")&&w("safari")&&1===c.targetTouches.length&&c.touches.length===c.targetTouches.length&&c.targetTouches.length===
c.changedTouches.length&&0===c.changedTouches[0].identifier&&a[c.changedTouches[0].identifier])){this._addTouch(c);for(d=0;d<e;d++){var k=c.changedTouches[d];var x=a[k.identifier]={};x.startX=k.pageX;x.startY=k.pageY;x.startTS=g;-1===this._touchIds.indexOf(k.identifier)&&this._touchIds.push(k.identifier)}this._swipeActive&&(h=this._nodeTouches[0]);this._pinchActive&&(m=this._nodeTouches[1]);1===this._numTouches?this._swipeActive?(this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(c,
h))):this._pinchActive&&(this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(c,[h,m]))):2===this._numTouches?this._swipeActive&&(h&&(x=a[this._touchIds[0]],x.startX=h.pageX,x.startY=h.pageY,x.moved=!1),this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(c,h))):this._swipeActive?(this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(c,h))):this._pinchActive&&(this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(c,[h,m])))}},_touchMove:function(c){c.preventDefault();
this._updateTouch(c);var a=this._touches,d,e=c.changedTouches.length,h;if(!(w("android")&&w("safari")&&1===c.targetTouches.length&&c.touches.length===c.targetTouches.length&&c.targetTouches.length===c.changedTouches.length&&0===c.changedTouches[0].identifier&&a[c.changedTouches[0].identifier]&&1<this._touchIds.length)){for(d=0;d<e;d++){var m=c.changedTouches[d];if(h=a[m.identifier]){var g=Math.abs(m.pageX-h.startX);m=Math.abs(m.pageY-h.startY);!h.moved&&(g>=this.tapRadius||m>=this.tapRadius)&&(h.moved=
h.absMoved=!0);var k=k?k:h.moved}}1===this._numTouches?(a=c.changedTouches[0],this._swipeActive?this._fire("onSwipeMove",this._processTouchEvent(c,a)):k&&(this._swipeActive=!0,this._fire("onSwipeStart",this._processTouchEvent(c,a)))):2===this._numTouches&&(d=this._nodeTouches[0],e=this._nodeTouches[1],this._pinchActive?this._fire("onPinchMove",this._processTouchEvent(c,[d,e])):k&&(k=a[d.identifier],h=a[e.identifier],a=Math.abs(k.startX-h.startX),k=Math.abs(k.startY-h.startY),h=Math.abs(d.pageX-e.pageX),
g=Math.abs(d.pageY-e.pageY),Math.abs(Math.sqrt(h*h+g*g)-Math.sqrt(a*a+k*k))>=2*this.tapRadius&&(this._pinchActive=!0,this._fire("onPinchStart",this._processTouchEvent(c,[d,e])))))}},_touchEnd:function(c){this._removeTouch(c);var a=this._touches,d=c.changedTouches,e,h=d.length,m,g,k=(new Date).getTime(),x=this._touchIds;for(e=0;e<h;e++)if(g=a[d[e].identifier])g.absMoved&&(m=!0),g.pageX=d[e].pageX,g.pageY=d[e].pageY,g.endTS=k;if(0===this._numTouches)if(this._touches={},this._touchIds=[],this._swipeActive)this._swipeActive=
!1,this._fire("onSwipeEnd",this._processTouchEvent(c,d[0]));else if(this._pinchActive)this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(c,d));else{if(!m){h=Infinity;m=-Infinity;k=Infinity;var v=-Infinity,y=this.tapStartTolerance,u=[],t=!0;for(e=0;e<x.length;e++)g=a[x[e]],u.push(g),g.startTS<h&&(h=g.startTS),g.startTS>m&&(m=g.startTS),g.endTS<k&&(k=g.endTS),g.endTS>v&&(v=g.endTS),delete a[x[e]];1===u.length&&d[0]&&(a=Math.abs(d[0].pageY-u[0].startY),Math.abs(d[0].pageX-u[0].startX)>=
this.tapRadius||a>=this.tapRadius)&&(t=!1);t&&Math.abs(m-h)<=y&&Math.abs(v-k)<=y&&this._basicTap(c,u)}}else 1===this._numTouches&&this._pinchActive&&(e=this._nodeTouches[0],g=a[e.identifier],g.startX=e.pageX,g.startY=e.pageY,this._pinchActive=g.moved=!1,this._fire("onPinchEnd",this._processTouchEvent(c,[d[0],e])))},_touchCancel:function(c){this._numTouches&&this._touchEnd(c)},_basicTap:function(c,a){var d=(new Date).getTime(),e=this;c=this._processTouchEvent(c,a);this._taps.push({touchInfos:a,ts:d,
event:c});2<this._taps.length&&this._taps.shift();this._fire("onBasicTap",c);clearTimeout(this._tapTimer);this._immediate?this._analyzeTap(!0):this._tapTimer=setTimeout(function(){var h=e;e=null;clearTimeout(h._tapTimer);h._analyzeTap()},2===this._taps.length?this.doubleTapDuration/2:this.doubleTapDuration)},_analyzeTap:function(c){var a=this._taps,d=a[0],e=a[1],h=d.touchInfos,m=e&&e.touchInfos;a.length&&(c||(this._taps=[]),d&&e?h.length===m.length?e.ts-d.ts<=this.doubleTapDuration?(1===h.length?
(c=Math.abs(h[0].startX-m[0].startX),h=Math.abs(h[0].startY-m[0].startY),h=c<=this.doubleTapRadius&&h<=this.doubleTapRadius):h=!0,h?this._processedDoubleTap(a):this._processedTap(e)):this._processedTap(e):this._processedTap(e):this._processedTap(d||e))},_processedTap:function(c){var a=c.event;this._fire("onProcessedTap",a);1===c.touchInfos.length?this._fire("onTap",this._fixEvent(a)):2===c.touchInfos.length&&this._fire("onTwoFingerTap",a)},_processedDoubleTap:function(c){var a=1===c[1].touchInfos.length;
if(a){var d=[this._fixEvent(c[0].event),this._fixEvent(c[1].event)];d[1].relatedEvents=d}c=[c[0].event,c[1].event];c[1].relatedEvents=c;this._fire("onProcessedDoubleTap",c[1]);a&&(this._fire("onDoubleTap",d[1]),this._fire("onDblClick",d[1]))},_addTouch:function(c){var a=c.changedTouches,d=this._nodeTouches,e;this._numTouches+=a.length;for(c=0;c<a.length;c++){var h=d.length;var m=!1;for(e=0;e<h&&!(m=d[e].identifier===a[c].identifier);e++);m?this._numTouches--:d.push(a[c])}for(c=d.length-1;0<=c;c--)p.isDescendant(d[c].target,
document.body)||(d.splice(c,1),this._numTouches--);0>this._numTouches&&(this._numTouches=0)},_removeTouch:function(c){var a=[],d=[],e=c.changedTouches,h=this._nodeTouches;this._numTouches-=e.length;0>this._numTouches&&(this._numTouches=0);for(c=0;c<e.length;c++)a.push(e[c].identifier);for(c=h.length-1;0<=c;c--)-1!==a.indexOf(h[c].identifier)&&d.push(h.splice(c,1)[0]);return d},_updateTouch:function(c){var a=[],d=c.changedTouches,e=this._nodeTouches;for(c=0;c<d.length;c++)a.push(d[c].identifier);for(c=
0;c<e.length;c++){var h=a.indexOf(e[c].identifier);-1!==h&&e.splice(c,1,d[h])}},_mouseOver:function(c){this._fire("onMouseOver",this._processMouseEvent(c))},_mouseOut:function(c){this._fire("onMouseOut",this._processMouseEvent(c))},_mouseDown:function(c){this._fire("onMouseDown",this._processMouseEvent(c))},_mouseUp:function(c){this._fire("onMouseUp",this._processMouseEvent(c))},_mouseClick:function(c){clearTimeout(this._clickTimer);300<(new Date).getTime()-this._touchStartTS?this._fire("onClick",
this._processMouseEvent(c)):(this._clickEvent=c,this._clickTimer=setTimeout(this._fireClickEvent,this.doubleTapDuration))},_fireClickEvent:function(){clearTimeout(this._clickTimer);this._fire("onClick",this._processMouseEvent(this._clickEvent))},_fire:function(c,a){"onDblClick"===c&&clearTimeout(this._clickTimer);if("onDblClick"===c&&this.mouseEvents){this.mouseEvents.preventClickEvents(!0);var d=this;setTimeout(function(){d.mouseEvents.preventClickEvents(!1)},350)}if(this[c])this[c](a);if(this.map&&
this.map[c])this.map[c](a)},_fixEvent:function(c){var a={},d;for(d in c)a[d]=c[d];this.map&&(a.screenPoint=a.screenPoints[0],a.mapPoint=a.mapPoints[0]);return a},_processTouchEvent:function(c,a){var d=this.map,e=d&&d.position,h=0;if(e&&a)if(b.isArray(a)){var m;c.screenPoints=[];c.mapPoints=[];for(m=0;m<a.length;m++)if(a[m]){var g=new f(a[m].pageX-e.x,a[m].pageY-e.y);c.screenPoints.push(g);c.mapPoints.push(d.extent?d.toMap(g):new q)}else h++}else c.screenPoint=new f(a.pageX-e.x,a.pageY-e.y),c.mapPoint=
d.extent?d.toMap(c.screenPoint):new q;c.numPoints=a?b.isArray(a)?a.length-h:1:0;return c},_processMouseEvent:function(c){var a=this.map,d=a&&a.position;d&&(c.screenPoint=new f(c.pageX-d.x,c.pageY-d.y),c.mapPoint=a.extent?a.toMap(c.screenPoint):new q);return c},setImmediateTap:function(c){this._immediate=c},destroy:function(){var c=this.node;c.removeEventListener("touchstart",this._touchStart,!1);c.removeEventListener("touchmove",this._touchMove,!1);c.removeEventListener("touchend",this._touchEnd,
!1);c.removeEventListener("touchcancel",this._touchCancel,!1);this.map&&(c.removeEventListener("mouseover",this._mouseOver,!1),c.removeEventListener("mouseout",this._mouseOut,!1),c.removeEventListener("mousedown",this._mouseDown,!1),c.removeEventListener("mouseup",this._mouseUp,!1),c.removeEventListener("click",this._mouseClick,!1));z.setSelectable(c,!0);clearTimeout(this._tapTimer);clearTimeout(this._clickTimer);this.node=this.map=this._numTouches=this._nodeTouches=this._touches=this._touchIds=this._taps=
null}});w("extend-esri")&&(n.TouchEvents=E);return E})},"esri/PointerEvents":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ./kernel ./Evented ./geometry/Point ./geometry/ScreenPoint".split(" "),function(E,z,b,w,p,n,l,q){E=E([n],{declaredClass:"esri.PointerEvents",tapRadius:8,clickRadius:2,doubleTapRadius:10,tapStartTolerance:50,doubleTapDuration:300,minWheelValue:1,maxWheelValue:1,mozWheelDivisor:-1!==w("mac")?1:3,wheelDivisor:120,preventPageScroll:!0,_dragging:!1,
constructor:function(f,c){this.node=f;z.mixin(this,c);void 0!==f.style.msTouchAction?f.style.msTouchAction="none":void 0!==f.style.touchAction&&(f.style.touchAction="none");c=navigator.msPointerEnabled;var a=function(d){d.preventDefault()};f.addEventListener("selectstart",a,!1);f.addEventListener("dragstart",a,!1);this._pointerDown=z.hitch(this,this._pointerDown);this._pointerMove=z.hitch(this,this._pointerMove);this._pointerUp=z.hitch(this,this._pointerUp);this._pointerCancel=z.hitch(this,this._pointerCancel);
f.addEventListener(c?"MSPointerDown":"pointerdown",this._pointerDown,!1);f.addEventListener(c?"MSPointerMove":"pointermove",this._pointerMove,!1);f.addEventListener(c?"MSPointerUp":"pointerup",this._pointerUp,!1);f.addEventListener(c?"MSPointerCancel":"pointercancel",this._pointerCancel,!1);this.map&&(this._mouseOver=z.hitch(this,this._mouseOver),this._mouseOut=z.hitch(this,this._mouseOut),this._mouseLeave=z.hitch(this,this._mouseLeave),this._mouseDown=z.hitch(this,this._mouseDown),this._mouseUp=
z.hitch(this,this._mouseUp),this._mouseClick=z.hitch(this,this._mouseClick),this._mouseWheel=z.hitch(this,this._mouseWheel),this._mouseMove=z.hitch(this,this._mouseMove),this._mouseEnter=z.hitch(this,this._mouseEnter),this._onKeyDown=z.hitch(this,this._onKeyDown),this._onKeyUp=z.hitch(this,this._onKeyUp),f.addEventListener("mouseover",this._mouseOver,!1),f.addEventListener("mouseout",this._mouseOut,!1),f.addEventListener("mouseleave",this._mouseLeave,!1),f.addEventListener("mousedown",this._mouseDown,
!1),f.addEventListener("mouseup",this._mouseUp,!1),f.addEventListener("click",this._mouseClick,!1),f.addEventListener("mousewheel",this._mouseWheel,!1),f.addEventListener("mousemove",this._mouseMove,!1),f.addEventListener("mouseenter",this._mouseEnter,!1));this._numTouches=0;this._touches={};this._touchIds=[];this._taps=[];this._immediate=!1},_pointerDown:function(f){if(-1<b.indexOf(this._touchIds,f.pointerId))this._pointerUp(f);else{var c=this._touches,a=f.target,d=f.pointerId,e=this._touchIds,h=
(new Date).getTime();var m=c[d]={};m.pointerId=d;m.startX=m.pageX=f.pageX;m.startY=m.pageY=f.pageY;m.startTS=h;e.push(d);this._numTouches++;a.setPointerCapture?a.setPointerCapture(d):a.msSetPointerCapture&&a.msSetPointerCapture(d);a=c[e[0]];c=c[e[1]];1!==this._numTouches&&(2===this._numTouches?this._swipeActive&&(a&&(a.startX=a.pageX,a.startY=a.pageY,a.moved=!1),this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(f,a))):this._swipeActive?(this._swipeActive=!1,this._fire("onSwipeEnd",
this._processTouchEvent(f,a))):this._pinchActive&&(this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(f,[a,c]))))}},_pointerMove:function(f){var c=this._touches,a=this._touchIds,d;if((d=c[f.pointerId])&&(d.pageX!==f.pageX||d.pageY!==f.pageY)){d.pageX=f.pageX;d.pageY=f.pageY;var e=Math.abs(d.pageX-d.startX);var h=Math.abs(d.pageY-d.startY);!d.moved&&(e>=this.tapRadius||h>=this.tapRadius)&&(d.moved=d.absMoved=!0);if(1===this._numTouches)this._swipeActive?this._fire("onSwipeMove",this._processTouchEvent(f,
f)):d.moved&&(this._swipeActive=!0,this._fire("onSwipeStart",this._processTouchEvent(f,f)));else if(2===this._numTouches)if(d=c[a[0]],c=c[a[1]],this._pinchActive)this._fire("onPinchMove",this._processTouchEvent(f,[d,c]));else if(d.moved||c.moved){a=Math.abs(d.startX-c.startX);e=Math.abs(d.startY-c.startY);h=Math.abs(d.pageX-c.pageX);var m=Math.abs(d.pageY-c.pageY);Math.abs(Math.sqrt(h*h+m*m)-Math.sqrt(a*a+e*e))>=2*this.tapRadius&&(this._pinchActive=!0,this._fire("onPinchStart",this._processTouchEvent(f,
[d,c])))}}},_pointerUp:function(f){var c=this._touches,a,d=this.node,e=f.target,h=f.pointerId,m=this._touchIds,g=m.slice(0),k=b.map(g,function(u){return c[u]}),x=(new Date).getTime();if(a=c[h])if(a.pageX=f.pageX,a.pageY=f.pageY,a.endTS=x,this._numTouches--,e.releasePointerCapture?e.releasePointerCapture(h):e.msReleasePointerCapture&&e.msReleasePointerCapture(h),0===this._numTouches)if(this._touches={},this._touchIds=[],this._swipeActive)this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(f,
f));else if(this._pinchActive)this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(f,f));else{if(!a.absMoved){e=Infinity;h=-Infinity;m=Infinity;x=-Infinity;var v=this.tapStartTolerance,y;for(y=0;y<g.length;y++)a=k[y],a.startTS<e&&(e=a.startTS),a.startTS>h&&(h=a.startTS),a.endTS<m&&(m=a.endTS),a.endTS>x&&(x=a.endTS);Math.abs(h-e)<=v&&Math.abs(x-m)<=v&&this._basicTap(f,k)}}else 1===this._numTouches&&this._pinchActive&&(m.splice(b.indexOf(m,f.pointerId),1),delete c[f.pointerId],a=c[m[0]],
a.startX=a.pageX,a.startY=a.pageY,a.moved=!1,document.msElementsFromPoint&&(g=document.msElementsFromPoint(a.pageX,a.pageY),b.some(g,function(u){return u===d})||(this._touches={},this._touchIds=[],this._numTouches=0)),this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(f,[f,a])))},_pointerCancel:function(f){this._numTouches&&this._pointerUp(f)},_basicTap:function(f,c){var a=(new Date).getTime(),d=this,e=this._immediate;f=this._processTouchEvent(f,c);this._taps.push({touchInfos:c,
ts:a,event:f});2<this._taps.length&&this._taps.shift();this._fire("onBasicTap",f);clearTimeout(this._tapTimer);f=2===this._taps.length?this.doubleTapDuration/2:this.doubleTapDuration;this._tapTimer=setTimeout(function(){var h=d;d=null;clearTimeout(h._tapTimer);h._analyzeTap(e)},e?0:f)},_analyzeTap:function(f){var c=this._taps,a=c[0],d=c[1],e=a.touchInfos,h=d&&d.touchInfos;c.length&&(f||(this._taps=[]),a&&d?e.length===h.length?d.ts-a.ts<=this.doubleTapDuration?(1===e.length?(f=Math.abs(e[0].startX-
h[0].startX),e=Math.abs(e[0].startY-h[0].startY),e=f<=this.doubleTapRadius&&e<=this.doubleTapRadius):e=!0,e?this._processedDoubleTap(c):this._processedTap(d)):this._processedTap(d):this._processedTap(d):this._processedTap(a||d))},_processedTap:function(f){var c=f.event;this._fire("onProcessedTap",c);1===f.touchInfos.length?this._fire("onTap",this._fixEvent(c)):2===f.touchInfos.length&&this._fire("onTwoFingerTap",c)},_processedDoubleTap:function(f){var c=1===f[1].touchInfos.length;if(c){var a=[this._fixEvent(f[0].event),
this._fixEvent(f[1].event)];a[1].relatedEvents=a}f=[f[0].event,f[1].event];f[1].relatedEvents=f;this._fire("onProcessedDoubleTap",f[1]);c&&(this._fire("onDoubleTap",a[1]),this._fire("onDblClick",a[1]))},_mouseOver:function(f){this._fire("onMouseOver",this._processMouseEvent(f))},_mouseMove:function(f){this._dragging?this._fire("onMouseDrag",this._processMouseEvent(f)):this._fire("onMouseMove",this._processMouseEvent(f))},_mouseOut:function(f){this._fire("onMouseOut",this._processMouseEvent(f))},_mouseLeave:function(f){document.removeEventListener("keydown",
this._onKeyDown,!1);document.removeEventListener("keyup",this._onKeyUp,!1);this._fire("onMouseOut",this._processMouseEvent(f))},_mouseDown:function(f){this._downX=f.pageX;this._downY=f.pageY;this._fire("onMouseDown",this._processMouseEvent(f));0===f.button&&(this._dragging=!0,this._fire("onMouseDragStart",this._processMouseEvent(f)))},_mouseUp:function(f){this._dragging&&(this._dragging=!1,this._fire("onMouseDragEnd",this._processMouseEvent(f)));this._fire("onMouseUp",this._processMouseEvent(f))},
_mouseClick:function(f){Math.abs(f.pageX-this._downX)<=this.clickRadius&&Math.abs(f.pageY-this._downY)<=this.clickRadius&&this._fire("onClick",this._processMouseEvent(f))},_mouseWheel:function(f){var c=this.map;(c?c.isScrollWheelZoom||c.isScrollWheelPan:this.preventPageScroll)&&f.preventDefault();c=f.wheelDelta?f.wheelDelta/this.wheelDivisor:-f.detail/this.mozWheelDivisor;var a=Math.abs(c);a=a<=this.minWheelValue?this.minWheelValue:this.maxWheelValue;f.value=0>c?-a:a;this._fire("onMouseWheel",this._processMouseEvent(f))},
_mouseEnter:function(f){document.removeEventListener("keydown",this._onKeyDown,!1);document.removeEventListener("keyup",this._onKeyUp,!1);document.addEventListener("keydown",this._onKeyDown,!1);document.addEventListener("keyup",this._onKeyUp,!1);this._fire("onMouseEnter",this._processMouseEvent(f))},_onKeyDown:function(f){this._fire("onKeyDown",f)},_onKeyUp:function(f){this._fire("onKeyUp",f)},_fire:function(f,c){if(this[f])this[f](c);if(this.map&&this.map[f])this.map[f](c)},_fixEvent:function(f){var c=
{},a;for(a in f)c[a]=f[a];c.preventDefault=function(){f.preventDefault()};c.stopPropagation=function(){f.stopPropagation()};this.map&&(c.screenPoint=c.screenPoints[0],c.mapPoint=c.mapPoints[0]);return c},_processTouchEvent:function(f,c){var a=this.map,d=a&&a.position,e=0;if(d&&c)if(z.isArray(c)){var h;f.screenPoints=[];f.mapPoints=[];for(h=0;h<c.length;h++)if(c[h]){var m=new q(c[h].pageX-d.x,c[h].pageY-d.y);f.screenPoints.push(m);f.mapPoints.push(a.extent?a.toMap(m):new l)}else e++}else f.screenPoint=
new q(c.pageX-d.x,c.pageY-d.y),f.mapPoint=a.extent?a.toMap(f.screenPoint):new l;f.numPoints=c?z.isArray(c)?c.length-e:1:0;return f},_processMouseEvent:function(f){var c=this.map,a=c&&c.position;a&&(f.screenPoint=new q(f.pageX-a.x,f.pageY-a.y),f.mapPoint=c.extent?c.toMap(f.screenPoint):new l);return f},setImmediateTap:function(f){this._immediate=f},destroy:function(){var f=this.node;f.removeEventListener("MSPointerDown",this._pointerDown,!1);f.removeEventListener("MSPointerMove",this._pointerMove,
!1);f.removeEventListener("MSPointerUp",this._pointerUp,!1);f.removeEventListener("MSPointerCancel",this._pointerCancel,!1);this.map&&(f.removeEventListener("mouseover",this._mouseOver,!1),f.removeEventListener("mousemove",this._mouseMove,!1),f.removeEventListener("mouseout",this._mouseOut,!1),f.removeEventListener("mouseleave",this._mouseLeave,!1),f.removeEventListener("mousedown",this._mouseDown,!1),f.removeEventListener("mouseup",this._mouseUp,!1),f.removeEventListener("click",this._mouseClick,
!1),f.removeEventListener("mouseenter",this._mouseEnter,!1));clearTimeout(this._tapTimer);this.node=this.map=this._numTouches=this._touches=this._touchIds=this._taps=null}});w("extend-esri")&&(p.PointerEvents=E);return E})},"esri/geometry":function(){define("./units ./SpatialReference ./geometry/Geometry ./geometry/Point ./geometry/ScreenPoint ./geometry/Multipoint ./geometry/Polyline ./geometry/Polygon ./geometry/Extent ./geometry/Rect ./geometry/geodesicUtils ./geometry/jsonUtils ./geometry/mathUtils ./geometry/normalizeUtils ./geometry/scaleUtils ./geometry/screenUtils ./geometry/webMercatorUtils".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k){return{units:E,SpatialReference:z,Geometry:b,Point:w,ScreenPoint:p,Multipoint:n,Polyline:l,Polygon:q,Extent:f,Rect:c,geodesicUtils:a,jsonUtils:d,mathUtils:e,normalizeUtils:h,scaleUtils:m,screenUtils:g,webMercatorUtils:k}})},"esri/units":function(){define(["dojo/has","./kernel"],function(E,z){var b={CENTIMETERS:"esriCentimeters",DECIMAL_DEGREES:"esriDecimalDegrees",DEGREE_MINUTE_SECONDS:"esriDegreeMinuteSeconds",DECIMETERS:"esriDecimeters",FEET:"esriFeet",
FEET_US:"esriFeetUS",INCHES:"esriInches",KILOMETERS:"esriKilometers",METERS:"esriMeters",MILES:"esriMiles",MILES_US:"esriMilesUS",MILLIMETERS:"esriMillimeters",NAUTICAL_MILES:"esriNauticalMiles",POINTS:"esriPoints",UNKNOWN:"esriUnknownUnits",YARDS:"esriYards",YARDS_US:"esriYardsUS",ACRES:"esriAcres",ACRES_US:"esriAcresUS",ARES:"esriAres",SQUARE_KILOMETERS:"esriSquareKilometers",SQUARE_MILES:"esriSquareMiles",SQUARE_MILES_US:"esriSquareMilesUS",SQUARE_FEET:"esriSquareFeet",SQUARE_FEET_US:"esriSquareFeetUS",
SQUARE_METERS:"esriSquareMeters",HECTARES:"esriHectares",SQUARE_YARDS:"esriSquareYards",SQUARE_YARDS_US:"esriSquareYardsUS",SQUARE_INCHES:"esriSquareInches",SQUARE_MILLIMETERS:"esriSquareMillimeters",SQUARE_CENTIMETERS:"esriSquareCentimeters",SQUARE_DECIMETERS:"esriSquareDecimeters",SQUARE_NAUTICAL_MILES:"esriSquareNauticalMiles",METERS_PER_SECOND:"esriMetersPerSecond",KILOMETERS_PER_HOUR:"esriKilometersPerHour",KNOTS:"esriKnots",FEET_PER_SECOND:"esriFeetPerSecond",MILES_PER_HOUR:"esriMilesPerHour",
RADIANS:"esriDURadians"};E("extend-esri")&&(z.Units=b);return b})},"esri/geometry/geodesicUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/has ../kernel ../SpatialReference ./Point ./Polyline ./Polygon".split(" "),function(E,z,b,w,p,n,l,q){function f(x){return!!(x&&x.wkid&&k[x.wkid])}function c(x){return f(x)?k[x.wkid]:k[4326]}function a(x){var v=x.spatialReference,y=c(v),u=y.a;y=y.eSq;var t=Math.sqrt(y),r=Math.sin(x.y*g);return new n(u*x.x*g,0<y?u*(1-y)*(r/(1-y*r*r)-1/(2*t)*Math.log((1-
t*r)/(1+t*r)))*.5:u*r,v)}function d(x,v,y,u,t){var r=c(t),B=r.a,C=r.b;r=r.f;var F=Math.sin(y);y=Math.cos(y);var A=(1-r)*Math.tan(x);x=1/Math.sqrt(1+A*A);var D=A*x,G=Math.atan2(A,y);A=x*F;var H=A*A,L=1-H;B=L*(B*B-C*C)/(C*C);var aa=1+B/16384*(4096+B*(-768+B*(320-175*B))),da=B/1024*(256+B*(-128+B*(74-47*B)));B=u/(C*aa);for(var ha=2*Math.PI,ia,ba,ja,pa;1E-12<Math.abs(B-ha);)ja=Math.cos(2*G+B),ia=Math.sin(B),ba=Math.cos(B),pa=da*ia*(ja+da/4*(ba*(-1+2*ja*ja)-da/6*ja*(-3+4*ia*ia)*(-3+4*ja*ja))),ha=B,B=u/
(C*aa)+pa;u=D*ia-x*ba*y;C=r/16*L*(4+r*(4-3*L));return new n((v+(Math.atan2(ia*F,x*ba-D*ia*y)-(1-C)*r*A*(B+C*ia*(ja+C*ba*(-1+2*ja*ja)))))/g,Math.atan2(D*ba+x*ia*y,(1-r)*Math.sqrt(H+u*u))/g,t)}function e(x,v,y,u,t){var r=c(t),B=r.a;t=r.b;var C=r.f,F=u-v,A=Math.atan((1-C)*Math.tan(x)),D=Math.atan((1-C)*Math.tan(y)),G=Math.sin(A);A=Math.cos(A);var H=Math.sin(D);D=Math.cos(D);var L=F,aa=1E3;do{var da=Math.sin(L);var ha=Math.cos(L);var ia=Math.sqrt(D*da*D*da+(A*H-G*D*ha)*(A*H-G*D*ha));if(0===ia)return 0;
ha=G*H+A*D*ha;var ba=Math.atan2(ia,ha);var ja=A*D*da/ia;var pa=1-ja*ja;da=ha-2*G*H/pa;isNaN(da)&&(da=0);var Ca=C/16*pa*(4+C*(4-3*pa));var la=L;L=F+(1-Ca)*C*ja*(ba+Ca*ia*(da+Ca*ha*(-1+2*da*da)))}while(1E-12<Math.abs(L-la)&&0<--aa);if(0===aa)return t=u-v,{azimuth:Math.atan2(Math.sin(t)*Math.cos(y),Math.cos(x)*Math.sin(y)-Math.sin(x)*Math.cos(y)*Math.cos(t)),geodesicDistance:Math.acos(Math.sin(x)*Math.sin(y)+Math.cos(x)*Math.cos(y)*Math.cos(u-v))*r.radius};x=pa*(B*B-t*t)/(t*t);v=x/1024*(256+x*(-128+
x*(74-47*x)));return{azimuth:Math.atan2(D*Math.sin(L),A*H-G*D*Math.cos(L)),geodesicDistance:t*(1+x/16384*(4096+x*(-768+x*(320-175*x))))*(ba-v*ia*(da+v/4*(ha*(-1+2*da*da)-v/6*da*(-3+4*ia*ia)*(-3+4*da*da)))),reverseAzimuth:Math.atan2(A*Math.sin(L),A*H*Math.cos(L)-G*D)}}function h(x,v){if(!(x instanceof l||x instanceof q))throw console.error("_geodesicDensify: the input geometry is neither polyline nor polygon"),Error("_geodesicDensify: the input geometry is neither polyline nor polygon");var y=x.spatialReference,
u=c(y).radius/1E4;v<u&&(v=u);u=x instanceof l;var t=[],r;E.forEach(u?x.paths:x.rings,function(B){t.push(r=[]);r.push([B[0][0],B[0][1]]);var C,F;var A=B[0][0]*g;var D=B[0][1]*g;for(C=0;C<B.length-1;C++){var G=B[C+1][0]*g;var H=B[C+1][1]*g;if(A!==G||D!==H){H=e(D,A,H,G,y);G=H.azimuth;H=H.geodesicDistance;var L=H/v;if(1<L){for(F=1;F<=L-1;F++){var aa=d(D,A,G,F*v,y);r.push([aa.x,aa.y])}F=d(D,A,G,(H+Math.floor(L-1)*v)/2,y);r.push([F.x,F.y])}D=d(D,A,G,H,y);r.push([D.x,D.y]);A=D.x*g;D=D.y*g}}});return u?new l({paths:t,
spatialReference:y}):new q({rings:t,spatialReference:y})}var m={esriMeters:1,esriKilometers:1E3,esriYards:.9144,esriFeet:.3048,esriMiles:1609.344,esriNauticalMiles:1852,esriInches:.0254,esriDecimeters:.1,esriCentimeters:.01,esriMillimeters:.001,esriSquareMeters:1,esriSquareKilometers:1E6,esriSquareYards:.83612736,esriSquareFeet:.09290304,esriSquareMiles:2589988.110336,esriAcres:4046.8564224,esriHectares:1E4,esriAres:100,esriSquareInches:6.4516E-4,esriSquareMillimeters:1E-6,esriSquareCentimeters:1E-4,
esriSquareDecimeters:.01},g=Math.PI/180,k={4326:{a:6378137,b:6356752.31424518,f:1/298.257223563,eSq:.006694379990197414,radius:6371008.771415059},104900:{a:2439700,b:2439700,f:0,eSq:0,radius:2439700},104901:{a:6051E3,b:6051E3,f:0,eSq:0,radius:6051E3},104902:{a:6051800,b:6051800,f:0,eSq:0,radius:6051800},104903:{a:1737400,b:1737400,f:0,eSq:0,radius:1737400},104904:{a:3393400,b:3375730,f:1/192.04301075,eSq:.01038722,radius:3387510},104905:{a:3396190,b:3376200,f:1/169.89444722,eSq:.01173737,radius:3389526.6666666665},
104906:{a:6200,b:6200,f:0,eSq:0,radius:6200},104907:{a:11100,b:11100,f:0,eSq:0,radius:11100},104912:{a:2409300,b:2409300,f:0,eSq:0,radius:2409300},104915:{a:1562090,b:1562090,f:0,eSq:0,radius:1562090},104916:{a:2632345,b:2632345,f:0,eSq:0,radius:2632345},104918:{a:1821460,b:1821460,f:0,eSq:0,radius:1821460},104929:{a:249400,b:249400,f:0,eSq:0,radius:249400},104943:{a:2575E3,b:2575E3,f:0,eSq:0,radius:2575E3},104971:{a:3396190,b:3396190,f:0,eSq:0,radius:3396190},104972:{a:47E4,b:47E4,f:0,eSq:0,radius:47E4},
104973:{a:255E3,b:255E3,f:0,eSq:0,radius:255E3},104974:{a:2439400,b:2439400,f:0,eSq:0,radius:2439400}};p={isSupported:f,getSpheroidInfo:c,geodesicDensify:h,geodesicLengths:function(x,v){var y=[];E.forEach(x,function(u,t){var r=0,B=u.spatialReference;E.forEach(u.paths,function(C,F){F=0;var A;for(A=1;A<C.length;A++){var D=C[A-1][0]*g;var G=C[A][0]*g;var H=C[A-1][1]*g;var L=C[A][1]*g;if(H!==L||D!==G)D=e(H,D,L,G,B),F+=D.geodesicDistance}r+=F});r/=m[v];y.push(r)});return y},geodesicAreas:function(x,v){var y=
[],u=[];E.forEach(x,function(t,r){r=.0015696101447650193*c(t.spatialReference).radius;y.push(h(t,r))});E.forEach(y,function(t,r){var B=0,C=t.spatialReference;E.forEach(t.rings,function(F,A){A=a(new n(F[0][0],F[0][1],C));var D=a(new n(F[F.length-1][0],F[F.length-1][1],C)),G=D.x*A.y-A.x*D.y,H;for(H=0;H<F.length-1;H++)A=a(new n(F[H+1][0],F[H+1][1],C)),D=a(new n(F[H][0],F[H][1],C)),G+=D.x*A.y-A.x*D.y;B+=G});B/=m[v];u.push(B/-2)});return u},_unitsDictionary:m,_toEqualAreaPoint:a,_directGeodeticSolver:d,
_inverseGeodeticSolver:e};b("extend-esri")&&z.mixin(z.getObject("geometry",!0,w),p);return p})},"esri/symbol":function(){define("./symbols/Symbol ./symbols/MarkerSymbol ./symbols/SimpleMarkerSymbol ./symbols/PictureMarkerSymbol ./symbols/LineSymbol ./symbols/SimpleLineSymbol ./symbols/CartographicLineSymbol ./symbols/FillSymbol ./symbols/SimpleFillSymbol ./symbols/PictureFillSymbol ./symbols/Font ./symbols/TextSymbol ./symbols/jsonUtils".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e){return{Symbol:E,
MarkerSymbol:z,SimpleMarkerSymbol:b,PictureMarkerSymbol:w,LineSymbol:p,SimpleLineSymbol:n,CartographicLineSymbol:l,FillSymbol:q,SimpleFillSymbol:f,PictureFillSymbol:c,Font:a,TextSymbol:d,jsonUtils:e}})},"esri/renderer":function(){define("./renderers/Renderer ./renderers/SimpleRenderer ./renderers/UniqueValueRenderer ./renderers/ClassBreaksRenderer ./renderers/TemporalRenderer ./renderers/SymbolAger ./renderers/TimeClassBreaksAger ./renderers/TimeRampAger ./renderers/StretchRenderer ./renderers/jsonUtils".split(" "),
function(E,z,b,w,p,n,l,q,f,c){return{Renderer:E,SimpleRenderer:z,UniqueValueRenderer:b,ClassBreaksRenderer:w,TemporalRenderer:p,SymbolAger:n,TimeClassBreaksAger:l,TimeRampAger:q,StretchRenderer:f,jsonUtils:c}})},"esri/renderers/Renderer":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has dojox/gfx/_base ../kernel ../Color ../layers/support/attributeUtils ../support/expressionUtils ../arcadeProfiles/visualizationProfile".split(" "),function(E,z,b,w,p,n,l,q,f,c){var a=Math.PI;
E=E(null,{declaredClass:"esri.renderer.Renderer",constructor:function(d){this._cache={};if(d&&!d.declaredClass){this.rotationInfo=d.rotationInfo;if(!this.rotationInfo){var e=d.rotationType,h=d.rotationExpression;if(e||h)this.rotationInfo={type:e,expression:h}}this.setRotationInfo(this.rotationInfo);this.setSizeInfo(this._readSizeInfo(d.sizeInfo));this.setColorInfo(this._readColorInfo(d.colorInfo));this.setOpacityInfo(this._readOpacityInfo(d.transparencyInfo));this.setVisualVariables(this._readVariables(d.visualVariables));
this.setAuthoringInfo(d.authoringInfo)}this.getSymbol=z.hitch(this,this.getSymbol)},getSymbol:function(d){},_readSizeInfo:function(d){if(d){var e=d.minSize,h=d.maxSize;e&&(d.minSize="number"===typeof e?p.pt2px(e):this._readSizeInfo(e));h&&(d.maxSize="number"===typeof h?p.pt2px(h):this._readSizeInfo(h));d.stops&&b.forEach(d.stops,function(m){m.size&&"number"===typeof m.size&&(m.size=p.pt2px(m.size))})}return d},_readColorInfo:function(d){d&&(b.forEach(d.colors,function(e,h){z.isArray(e)&&(d.colors[h]=
l.toDojoColor(e))}),b.forEach(d.stops,function(e,h){e.color&&z.isArray(e.color)&&(d.stops[h].color=l.toDojoColor(e.color))}));return d},_readOpacityInfo:function(d){if(d){var e=z.mixin({},d);e.transparencyValues&&(e.opacityValues=b.map(e.transparencyValues,function(h){return 1-h/100}),delete e.transparencyValues);e.stops&&(e.stops=b.map(e.stops,function(h){h=z.mixin({},h);h.opacity=1-h.transparency/100;delete h.transparency;return h}))}return e},_readVariables:function(d){d&&(d=b.map(d,function(e){"sizeInfo"===
e.type?e=this._readSizeInfo(e):"colorInfo"===e.type?e=this._readColorInfo(e):"transparencyInfo"===e.type&&(e=this._readOpacityInfo(e),e.type="opacityInfo");return e},this));return d},setAuthoringInfo:function(d){this.authoringInfo=d},setRotationInfo:function(d){if(d=this.rotationInfo="string"===typeof d?{field:d}:d){if(d.expression&&!z.isFunction(d.expression)&&!d.field){var e=d.expression.match(this.rotationRE);e&&e[1]&&(d.field=e[1])}d.rotationType=d.type}this._cache.rotationInfo=this._processRotationInfo(d);
return this},rotationRE:/^\[([^\]]+)\]$/i,_processRotationInfo:function(d){d&&!d.rotationType&&(d.rotationType="geographic");return this._createCache(d)},getRotationAngle:function(d,e){var h=this._getVarInfo(e&&e.rotationInfo,"rotationInfo");e=h.variable;h=this._cache[h.cacheKey];var m="arithmetic"===this._getRotationType(e),g=h&&h.hasExpr,k=null;if(e.field||g)k=this._getDataValue(d,e,null,h),null!=k&&(k=(k+(m?-90:0))*(m?-1:1));return k},_getRotationType:function(d){return d&&("rotationInfo"===d.type?
d.rotationType:d.type)},_getDataValue:function(d,e,h,m,g){m||(m=this._getVarInfo(e,h),e=m.variable,m=this._cache[m.cacheKey],"sizeInfo"===h&&(m=m.root));return d._getDataValue(e,m,f,g)},setVisualVariables:function(d){var e=this._cache;b.forEach(this.visualVariables,function(h,m){e.hasOwnProperty(m)&&(e[m]=null)},this);this.visualVariables=d;b.some(d,function(h){return!!h.target})&&d.sort(function(h,m){return h.target===m.target?0:h.target?1:-1});b.forEach(d,function(h,m){"colorInfo"===h.type?e[m]=
this._processColorInfo(h):"opacityInfo"===h.type?e[m]=this._processOpacityInfo(h):"sizeInfo"===h.type?e[m]=this._processSizeInfo(h):"rotationInfo"===h.type&&(e[m]=this._processRotationInfo(h))},this);return this},getVisualVariableValues:function(d){var e=this.visualVariables,h;e&&(h=b.map(e,function(m){switch(m.type){case "sizeInfo":var g=this.getSize(d,{sizeInfo:m});break;case "colorInfo":g=this.getColor(d,{colorInfo:m});break;case "opacityInfo":g=this.getOpacity(d,{opacityInfo:m});break;case "rotationInfo":g=
this.getRotationAngle(d,{rotationInfo:m})}return{variable:m,value:g}},this));return h},getFieldsUsedInExpressions:function(d){var e=[];b.forEach(this._getCacheObjects(),function(h){h.syntaxTree&&(e=e.concat(f.extractFieldNames(h.syntaxTree,d)))});e.sort();return b.filter(e,function(h,m){return 0===m||e[m-1]!==h})},hasGeometryOperations:function(){return b.some(this._getCacheObjects(),function(d){return d.syntaxTree?f.hasGeometryOperations(d.syntaxTree):!1})},initializeArcadeEngine:function(){var d=
[];b.forEach(this._getCacheObjects(),function(e){e.syntaxTree&&d.push(e.syntaxTree)});return c.initialize(d)},hasVisualVariables:function(d,e){return d?!!this.getVisualVariablesForType(d,e):!!(this.getVisualVariablesForType("sizeInfo",e)||this.getVisualVariablesForType("colorInfo",e)||this.getVisualVariablesForType("opacityInfo",e)||this.getVisualVariablesForType("rotationInfo",e))},getVisualVariablesForType:function(d,e){var h=this.visualVariables;if(!e&&this[d]){"rotationInfo"===d&&(this[d].rotationType=
this[d].type);var m=[this[d]]}else h&&(m=b.filter(h,function(g){return g.type===d&&("string"===typeof e?g.target===e:!1===e?!g.target:!0)}))&&0===m.length&&(m=void 0);return m},setSizeInfo:function(d){this.sizeInfo=this.proportionalSymbolInfo=d;this._cache.sizeInfo=this._processSizeInfo(d);return this},_processSizeInfo:function(d){return d&&{root:this._createCache(d),minSize:this._createCache(d.minSize),maxSize:this._createCache(d.maxSize)}},_convertExpressionToArcade:function(d){d&&d.expression&&
(d.valueExpression="$view.scale")},_getVarInfo:function(d,e){if(d&&d.type===e){var h=b.indexOf(this.visualVariables,d);d=this.visualVariables[h]}else h=e,d=this[e];return{variable:d,cacheKey:h}},setProportionalSymbolInfo:function(d){this.setSizeInfo(d);return this},getSize:function(d,e){var h=this._getVarInfo(e&&e.sizeInfo,"sizeInfo"),m=h.variable;h=this._cache[h.cacheKey];var g=null;if(m){var k=m.minSize;g=m.maxSize;k="object"===typeof k&&k?this._getSize(d,k,h&&h.minSize,e):k;g="object"===typeof g&&
g?this._getSize(d,g,h&&h.maxSize,e):g;g=this._getSize(d,m,h&&h.root,e,[k,g])}return g},_getSize:function(d,e,h,m,g){var k=e.stops,x=0,v=h&&h.hasExpr,y=h&&h.ipData,u=h&&h.isScaleDriven,t="object"===typeof d&&!!d,r="number"===typeof d?d:null;if(e.field||u||v){var B=m&&m.scale;v=g?g[0]:e.minSize;g=g?g[1]:e.maxSize;var C=e.minDataValue,F=e.maxDataValue,A=e.valueUnit||"unknown",D=e.valueRepresentation,G=e.scaleBy,H=m&&m.shape;u?r=B:"number"!==typeof r&&t&&(r=this._getDataValue(d,e,null,h));if(!this._isValidNumber(r))return null;
if(k)v=this._lookupData(r,y),r=v[0],g=v[1],r===g?x=k[r].size:(r=k[r].size,k=k[g].size,x=r+(k-r)*v[2]);else if(null!=v&&null!=g&&null!=C&&null!=F)r<=C?x=v:r>=F?x=g:(k=(r-C)/(F-C),"area"===G&&H?(v=(r="circle"===H)?a*Math.pow(v/2,2):v*v,k=v+k*((r?a*Math.pow(g/2,2):g*g)-v),x=r?2*Math.sqrt(k/a):Math.sqrt(k)):x=v+k*(g-v));else if("unknown"===A)null!=v&&null!=C&&(v&&C?(k=r/C,x="circle"===H?2*Math.sqrt(k*Math.pow(v/2,2)):"square"===H||"diamond"===H||"image"===H?Math.sqrt(k*Math.pow(v,2)):k*v):x=r+(v||C),
x=x<v?v:x,null!=g&&x>g&&(x=g));else{k=(m&&m.resolution?m.resolution:1)*this._meterIn[A];if("area"===D)x=Math.sqrt(r/a)/k,x*=2;else if(x=r/k,"radius"===D||"distance"===D)x*=2;null!=v&&x<v&&(x=v);null!=g&&x>g&&(x=g)}}else x=k&&k[0]&&k[0].size,null==x&&(x=e.minSize);return x=isNaN(x)?0:x},getSizeRangeAtScale:function(d,e){d=this._getVarInfo(d,"sizeInfo");var h=this._cache[d.cacheKey],m={scale:e};if((d=d.variable)&&e){var g=d.minSize;e=d.maxSize;var k=d.stops;k&&k.length?(d=k[0].size,h=k[k.length-1].size):
(d="object"===typeof g&&g?this._getSize({},g,h&&h.minSize,m):g,h="object"===typeof e&&e?this._getSize({},e,h&&h.maxSize,m):e);if(null!=d||null!=h){if(d>h){var x=h;h=d;d=x}x={minSize:d,maxSize:h}}}return x},setColorInfo:function(d){this.colorInfo=d;this._cache.colorInfo=this._processColorInfo(d);return this},_createCache:function(d,e){if(e=q.createAttributeCache(d,e))e.ipData=this._interpolateData(d);return e},_getCacheObjects:function(d){var e;d=d||this._cache;var h=[];for(e in d){var m=d[e];d.hasOwnProperty(e)&&
m&&"object"===typeof m&&(m.hasOwnProperty("idSource")?h.push(m):h=h.concat(this._getCacheObjects(m)))}return h},_processColorInfo:function(d){d&&(b.forEach(d.colors,function(e,h){z.isArray(e)&&(d.colors[h]=new l(e))}),b.forEach(d.stops,function(e,h){e.color&&z.isArray(e.color)&&(d.stops[h].color=new l(e.color))}));return this._createCache(d)},getColor:function(d,e){e=this._getVarInfo(e&&e.colorInfo,"colorInfo");return this._getColorComponent(d,e.variable,this._cache[e.cacheKey])},setOpacityInfo:function(d){this.opacityInfo=
d;this._cache.opacityInfo=this._processOpacityInfo(d);return this},_processOpacityInfo:function(d){return this._createCache(d)},getOpacity:function(d,e){e=this._getVarInfo(e&&e.opacityInfo,"opacityInfo");return this._getColorComponent(d,e.variable,this._cache[e.cacheKey],!0)},_getColorComponent:function(d,e,h,m,g){var k="number"===typeof d?d:null,x=h&&h.hasExpr,v=h&&h.ipData,y;e&&e.field||x?("number"!==typeof k&&"object"===typeof d&&d&&(k=this._getDataValue(d,e,null,h)),this._isValidNumber(k)||(k=
null),null!=k&&(y=m?this._getOpacity(k,e,v):this._getColor(k,e,v))):e&&(d=e.stops,m?(y=d&&d[0]&&d[0].opacity,null==y&&(y=e.opacityValues&&e.opacityValues[0])):y=d&&d[0]&&d[0].color||e.colors&&e.colors[0]);g&&(g.data=k,g.value=y);return g||y},_isValidNumber:function(d){return"number"===typeof d&&!isNaN(d)&&Infinity!==d&&-Infinity!==d},_interpolateData:function(d){if(d)if(d.colors||d.opacityValues){var e=(d.colors||d.opacityValues).length,h=d.minDataValue,m=(d.maxDataValue-h)/(e-1);var g=[];for(d=0;d<
e;d++)g[d]=h+d*m}else d.stops&&(g=b.map(d.stops,function(k){return k.value}));return g},_getOpacity:function(d,e,h){d=this._lookupData(d,h);e=e||this.opacityInfo;if(d){h=d[0];var m=d[1];h===m?m=this._getOpacValue(e,h):(h=this._getOpacValue(e,h),e=this._getOpacValue(e,m),m=h+(e-h)*d[2])}return m},_getOpacValue:function(d,e){return d.opacityValues?d.opacityValues[e]:d.stops[e].opacity},_getColor:function(d,e,h){d=this._lookupData(d,h);e=e||this.colorInfo;if(d){var m=d[0];h=d[1];m=m===h?this._getColorObj(e,
m):l.blendColors(this._getColorObj(e,m),this._getColorObj(e,h),d[2])}return m},_getColorObj:function(d,e){return d.colors?d.colors[e]:d.stops[e].color},_lookupData:function(d,e){if(e){var h=0,m=e.length-1;b.some(e,function(k,x){if(d<k)return m=x,!0;h=x;return!1});var g=[h,m,(d-e[h])/(e[m]-e[h])]}return g},_meterIn:{inches:1/.0254,feet:1/.3048,yards:1/.9144,miles:1/1609.344,"nautical-miles":1/1852,millimeters:1E3,centimeters:100,decimeters:10,meters:1,kilometers:.001,"decimal-degrees":180/20015077},
_writeSizeInfo:function(d){if(d){d=z.mixin({},d);this._convertExpressionToArcade(d);var e=d.minSize,h=d.maxSize;e&&(d.minSize="number"===typeof e?p.px2pt(e):this._writeSizeInfo(e));h&&(d.maxSize="number"===typeof h?p.px2pt(h):this._writeSizeInfo(h));if(e=d.legendOptions)if(d.legendOptions=z.mixin({},e),e=e.customValues)d.legendOptions.customValues=e.slice(0);d.stops&&(d.stops=b.map(d.stops,function(m){m=z.mixin({},m);m.size&&"number"===typeof m.size&&(m.size=p.px2pt(m.size));return m}))}return d},
_writeColorInfo:function(d){d&&(d=z.mixin({},d),d.colors&&(d.colors=b.map(d.colors,function(e){return l.toJsonColor(e)})),d.stops&&(d.stops=b.map(d.stops,function(e){e=z.mixin({},e);e.color&&(e.color=l.toJsonColor(e.color));return e})),d.legendOptions&&(d.legendOptions=z.mixin({},d.legendOptions)));return d},_writeOpacityInfo:function(d){if(d){var e=z.mixin({},d);e.opacityValues&&(e.transparencyValues=b.map(e.opacityValues,function(h){return 100*(1-h)}),delete e.opacityValues);e.stops&&(e.stops=b.map(e.stops,
function(h){h=z.mixin({},h);h.transparency=100*(1-h.opacity);delete h.opacity;return h}));e.legendOptions&&(e.legendOptions=z.mixin({},e.legendOptions))}return e},toJson:function(d){var e=this.visualVariables,h=z.clone(this.authoringInfo),m=d&&d.useLegacyRotationProperties,g=(d=(d=this.getVisualVariablesForType("rotationInfo",!1))&&d[0])&&d.field,k;d&&(d===this.rotationInfo||m)&&(k=d.expression||g&&(z.isFunction(g)?g:"["+g+"]"));e&&(e=b.map(e,function(x){"sizeInfo"===x.type?x=this._writeSizeInfo(x):
"colorInfo"===x.type?x=this._writeColorInfo(x):"opacityInfo"===x.type?(x=this._writeOpacityInfo(x),x.type="transparencyInfo"):"rotationInfo"===x.type&&(x=m?null:z.mixin({},x));return x},this),e=b.filter(e,function(x){return null!=x}));h&&b.forEach(h.visualVariables,function(x){"opacityInfo"===x.type&&(x.type="transparencyInfo")});return{rotationType:k&&(this._getRotationType(d)||"geographic"),rotationExpression:k,colorInfo:this._writeColorInfo(this.colorInfo),transparencyInfo:this._writeOpacityInfo(this.opacityInfo),
sizeInfo:this._writeSizeInfo(this.sizeInfo),visualVariables:e,authoringInfo:h}}});w("extend-esri")&&z.setObject("renderer.Renderer",E,n);return E})},"esri/layers/support/attributeUtils":function(){define("dojo/_base/lang dojo/has dojox/encoding/digests/_base dojox/encoding/digests/MD5 ../../kernel ../../support/expressionUtils".split(" "),function(E,z,b,w,p,n){var l={viewScaleRE:/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i,getAttributeId:function(q){return"string"===typeof q?w(q,b.outputTypes.Hex):
null},getAttributeIdSource:function(q){if(!q)return null;var f=q.field,c=q.valueExpression,a=null;if(c)a=c;else if(E.isFunction(f))a=f.toString();else if(f){var d=(c=q.normalizationField)?"field":q.normalizationType;q=parseFloat(q.normalizationTotal);d&&(d=d.toLowerCase(),a=f.toLowerCase()+",norm:"+d,c?a+=","+c.toLowerCase():"percent-of-total"===d&&(f=q,"number"===typeof f&&!isNaN(f)&&Infinity!==f&&-Infinity!==f&&0!==q||(q=null),a+=","+q))}return a},createAttributeCache:function(q,f){if(!q)return null;
var c=q.valueExpression,a=n.createSyntaxTree(c),d=l.getAttributeIdSource(q);return{attributeInfo:q,isNumeric:!f,idSource:d,id:l.getAttributeId(d),hasExpr:!!c,compiledFunc:n.createFunction(a),syntaxTree:a,isScaleDriven:!!q.expression||l.viewScaleRE.test(c),dependsOnView:a?n.dependsOnView(a):!1,dependsOnGeometry:a?n.hasGeometryOperations(a):!1,isJSFunc:E.isFunction(q.field)}}};z("extend-esri")&&E.setObject("layers.support.attributeUtils",l,p);return l})},"dojox/encoding/digests/_base":function(){define(["dojo/_base/lang"],
function(E){E=E.getObject("dojox.encoding.digests",!0);E.outputTypes={Base64:0,Hex:1,String:2,Raw:3};E.addWords=function(z,b){var w=(z&65535)+(b&65535);return(z>>16)+(b>>16)+(w>>16)<<16|w&65535};E.stringToWord=function(z){for(var b=[],w=0,p=8*z.length;w<p;w+=8)b[w>>5]|=(z.charCodeAt(w/8)&255)<<w%32;return b};E.wordToString=function(z){for(var b=[],w=0,p=32*z.length;w<p;w+=8)b.push(String.fromCharCode(z[w>>5]>>>w%32&255));return b.join("")};E.wordToHex=function(z){for(var b=[],w=0,p=4*z.length;w<p;w++)b.push("0123456789abcdef".charAt(z[w>>
2]>>w%4*8+4&15)+"0123456789abcdef".charAt(z[w>>2]>>w%4*8&15));return b.join("")};E.wordToBase64=function(z){for(var b=[],w=0,p=4*z.length;w<p;w+=3)for(var n=(z[w>>2]>>w%4*8&255)<<16|(z[w+1>>2]>>(w+1)%4*8&255)<<8|z[w+2>>2]>>(w+2)%4*8&255,l=0;4>l;l++)8*w+6*l>32*z.length?b.push("\x3d"):b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-l)&63));return b.join("")};E.stringToUtf8=function(z){for(var b="",w=-1,p,n;++w<z.length;)p=z.charCodeAt(w),n=w+1<z.length?z.charCodeAt(w+
1):0,55296<=p&&56319>=p&&56320<=n&&57343>=n&&(p=65536+((p&1023)<<10)+(n&1023),w++),127>=p?b+=String.fromCharCode(p):2047>=p?b+=String.fromCharCode(192|p>>>6&31,128|p&63):65535>=p?b+=String.fromCharCode(224|p>>>12&15,128|p>>>6&63,128|p&63):2097151>=p&&(b+=String.fromCharCode(240|p>>>18&7,128|p>>>12&63,128|p>>>6&63,128|p&63));return b};return E})},"dojox/encoding/digests/MD5":function(){define(["./_base"],function(E){function z(q,f){return q<<f|q>>>32-f}function b(q,f,c,a,d,e){return E.addWords(z(E.addWords(E.addWords(f,
q),E.addWords(a,e)),d),c)}function w(q,f,c,a,d,e,h){return b(f&c|~f&a,q,f,d,e,h)}function p(q,f,c,a,d,e,h){return b(f&a|c&~a,q,f,d,e,h)}function n(q,f,c,a,d,e,h){return b(c^(f|~a),q,f,d,e,h)}function l(q,f){q[f>>5]|=128<<f%32;q[(f+64>>>9<<4)+14]=f;f=1732584193;for(var c=-271733879,a=-1732584194,d=271733878,e=0;e<q.length;e+=16){var h=f,m=c,g=a,k=d;f=w(f,c,a,d,q[e+0],7,-680876936);d=w(d,f,c,a,q[e+1],12,-389564586);a=w(a,d,f,c,q[e+2],17,606105819);c=w(c,a,d,f,q[e+3],22,-1044525330);f=w(f,c,a,d,q[e+
4],7,-176418897);d=w(d,f,c,a,q[e+5],12,1200080426);a=w(a,d,f,c,q[e+6],17,-1473231341);c=w(c,a,d,f,q[e+7],22,-45705983);f=w(f,c,a,d,q[e+8],7,1770035416);d=w(d,f,c,a,q[e+9],12,-1958414417);a=w(a,d,f,c,q[e+10],17,-42063);c=w(c,a,d,f,q[e+11],22,-1990404162);f=w(f,c,a,d,q[e+12],7,1804603682);d=w(d,f,c,a,q[e+13],12,-40341101);a=w(a,d,f,c,q[e+14],17,-1502002290);c=w(c,a,d,f,q[e+15],22,1236535329);f=p(f,c,a,d,q[e+1],5,-165796510);d=p(d,f,c,a,q[e+6],9,-1069501632);a=p(a,d,f,c,q[e+11],14,643717713);c=p(c,a,
d,f,q[e+0],20,-373897302);f=p(f,c,a,d,q[e+5],5,-701558691);d=p(d,f,c,a,q[e+10],9,38016083);a=p(a,d,f,c,q[e+15],14,-660478335);c=p(c,a,d,f,q[e+4],20,-405537848);f=p(f,c,a,d,q[e+9],5,568446438);d=p(d,f,c,a,q[e+14],9,-1019803690);a=p(a,d,f,c,q[e+3],14,-187363961);c=p(c,a,d,f,q[e+8],20,1163531501);f=p(f,c,a,d,q[e+13],5,-1444681467);d=p(d,f,c,a,q[e+2],9,-51403784);a=p(a,d,f,c,q[e+7],14,1735328473);c=p(c,a,d,f,q[e+12],20,-1926607734);f=b(c^a^d,f,c,q[e+5],4,-378558);d=b(f^c^a,d,f,q[e+8],11,-2022574463);
a=b(d^f^c,a,d,q[e+11],16,1839030562);c=b(a^d^f,c,a,q[e+14],23,-35309556);f=b(c^a^d,f,c,q[e+1],4,-1530992060);d=b(f^c^a,d,f,q[e+4],11,1272893353);a=b(d^f^c,a,d,q[e+7],16,-155497632);c=b(a^d^f,c,a,q[e+10],23,-1094730640);f=b(c^a^d,f,c,q[e+13],4,681279174);d=b(f^c^a,d,f,q[e+0],11,-358537222);a=b(d^f^c,a,d,q[e+3],16,-722521979);c=b(a^d^f,c,a,q[e+6],23,76029189);f=b(c^a^d,f,c,q[e+9],4,-640364487);d=b(f^c^a,d,f,q[e+12],11,-421815835);a=b(d^f^c,a,d,q[e+15],16,530742520);c=b(a^d^f,c,a,q[e+2],23,-995338651);
f=n(f,c,a,d,q[e+0],6,-198630844);d=n(d,f,c,a,q[e+7],10,1126891415);a=n(a,d,f,c,q[e+14],15,-1416354905);c=n(c,a,d,f,q[e+5],21,-57434055);f=n(f,c,a,d,q[e+12],6,1700485571);d=n(d,f,c,a,q[e+3],10,-1894986606);a=n(a,d,f,c,q[e+10],15,-1051523);c=n(c,a,d,f,q[e+1],21,-2054922799);f=n(f,c,a,d,q[e+8],6,1873313359);d=n(d,f,c,a,q[e+15],10,-30611744);a=n(a,d,f,c,q[e+6],15,-1560198380);c=n(c,a,d,f,q[e+13],21,1309151649);f=n(f,c,a,d,q[e+4],6,-145523070);d=n(d,f,c,a,q[e+11],10,-1120210379);a=n(a,d,f,c,q[e+2],15,
718787259);c=n(c,a,d,f,q[e+9],21,-343485551);f=E.addWords(f,h);c=E.addWords(c,m);a=E.addWords(a,g);d=E.addWords(d,k)}return[f,c,a,d]}E.MD5=function(q,f){f=f||E.outputTypes.Base64;q=l(E.stringToWord(q),8*q.length);switch(f){case E.outputTypes.Raw:return q;case E.outputTypes.Hex:return E.wordToHex(q);case E.outputTypes.String:return E.wordToString(q);default:return E.wordToBase64(q)}};E.MD5._hmac=function(q,f,c){c=c||E.outputTypes.Base64;var a=E.stringToWord(f);16<a.length&&(a=l(a,8*f.length));var d=
[];f=[];for(var e=0;16>e;e++)d[e]=a[e]^909522486,f[e]=a[e]^1549556828;q=l(d.concat(E.stringToWord(q)),512+8*q.length);q=l(f.concat(q),640);switch(c){case E.outputTypes.Raw:return q;case E.outputTypes.Hex:return E.wordToHex(q);case E.outputTypes.String:return E.wordToString(q);default:return E.wordToBase64(q)}};return E.MD5})},"esri/support/expressionUtils":function(){define("dojo/_base/lang dojo/_base/array dojo/has dojo/Deferred ../kernel ../arcade/arcade ../arcade/Feature".split(" "),function(E,
z,b,w,p,n,l){function q(d){return d.replace(/[|\\{}()[\]^$+*?.]/g,"\\$\x26")}var f={vars:{$feature:"any",$view:"any"}},c=/^\$(feature|aggregatedFeatures)\./i,a={_getSyntaxTree:function(d){return"string"===typeof d?a.createSyntaxTree(d):d},createSyntaxTree:function(d){try{var e=d?n.parseScript(d):null}catch(h){e=null}return e},createFunction:function(d,e){e=e||E.clone(f);d=a._getSyntaxTree(d);try{var h=d?n.compileScript(d,e):null}catch(m){console.log("expressionUtils.createFunction: compilation failed. "+
(m.message||"")),h=null}return h},createExecContext:function(d,e){return{vars:{$feature:d?l.createFromGraphic(d):new l,$view:e&&e.view},spatialReference:e&&e.sr}},evalSyntaxTree:function(d,e){try{var h=n.executeScript(d,e)}catch(m){h=null}return h},executeFunction:function(d,e){try{var h=d?d(e):null}catch(m){h=null}return h},executeAsyncFunction:function(d,e){try{var h=d?d(e):(new w).reject(Error("expressionUtils.executeAsyncFunction: Invalid argument. compiledFunc is missing."))}catch(m){h=(new w).reject(m)}return h},
extractFieldNames:function(d,e){d=a._getSyntaxTree(d);d=n.extractExpectedFieldLiterals(d);var h=[];z.forEach(d,function(g){c.test(g)&&(g=g.replace(c,""),h.push(g))});var m=z.filter(h,function(g){return-1!==g.indexOf("*")});h=z.filter(h,function(g){return-1===m.indexOf(g)});e&&z.forEach(m,function(g){var k=new RegExp("^"+g.split(/\*+/).map(q).join(".*")+"$","i");z.forEach(e,function(x){k.test(x)&&h.push(x)})});h.sort();return z.filter(h,function(g,k){return 0===k||h[k-1]!==g})},dependsOnView:function(d){return a.hasVariable(d,
"$view")},hasGeometryFunctions:function(d){return(d=a._getSyntaxTree(d))?n.scriptTouchesGeometry(d):!1},hasGeometryOperations:function(d){return(d=a._getSyntaxTree(d))?n.scriptUsesGeometryEngine(d):!1},enableGeometryOperations:function(){return n.enableGeometrySupport()},hasVariable:function(d,e){return(d=a._getSyntaxTree(d))?n.referencesMember(d,e):!1},hasFunction:function(d,e){return(d=a._getSyntaxTree(d))?n.referencesFunction(d,e):!1},createFeatureSetFromLayer:function(d,e){e=e||{};var h=n.featureSetUtils();
return h?h.constructFeatureSet(d,e.spatialReference,e.outFields,e.returnGeometry,e.cache):null},createFeatureSetFromLayerUrl:function(d,e){e=e||{};var h=n.featureSetUtils();return h?h.constructFeatureSetFromUrlRaw(d,e.spatialReference,e.outFields,e.returnGeometry,e.cache):null},createFeatureSetCollectionFromMap:function(d,e){var h=n.featureSetUtils();return h?h.createFeatureSetCollectionFromMap(d,d.spatialReference,e&&e.cache):null},createFeatureSetCollectionFromServiceUrl:function(d,e){e=e||{};var h=
n.featureSetUtils();return h?h.createFeatureSetCollectionFromService(d,e.spatialReference,e.cache):null},hasFeatureSetOperations:function(d){return(d=a._getSyntaxTree(d))?n.scriptUsesFeatureSet(d):!1},enableFeatureSetOperations:function(){return n.enableFeatureSetSupport().then(function(){var d=n.featureSetUtils();d&&d.initialiseMetaDataCache()})},enableAsyncOperations:function(){return n.enableAsyncSupport()}};b("extend-esri")&&E.setObject("support.expressionUtils",a,p);return a})},"esri/arcade/arcade":function(){define("require exports ./arcadeCompiler ./arcadeRuntime ./parser ./treeAnalysis dojo/has ./polyfill/promiseUtils".split(" "),
function(E,z,b,w,p,n,l,q){function f(H,L){if(null===B)throw Error("Async Arcade must be enabled for this script");return l("esri-csp-restrictions")||!1===u?function(aa){return B.executeScript(H,aa)}:b.compileScript(H,L,!0)}function c(H,L){void 0===L&&(L=[]);return p.parseScript(H,L)}function a(H,L){if(!0===L.useAsync||!0===H.isAsync){if(null===B)throw Error("Async Arcade must be enabled for this script");return B.executeScript(H,L)}return w.executeScript(H,L)}function d(H,L){return w.referencesMember(H,
L)}function e(H,L){void 0===L&&(L=[]);void 0===H.usesGeometry&&n.findScriptDependencies(H,L);return!0===H.usesGeometry}function h(){return F?F:F=q.create(function(H,L){E(["../geometry/geometryEngine","./functions/geomsync"],function(aa,da){r=!0;da.setGeometryEngine(aa);H(!0)},function(aa){L(aa)})})}function m(){return null!==A?A:A=b.enableAsyncSupport().then(function(){return q.create(function(H,L){E(["./arcadeAsyncRuntime"],function(aa){try{B=aa;aa=0;for(var da=C;aa<da.length;aa++){var ha=da[aa];
B.extend(ha);b.extend(ha,"async")}C=null;H(!0)}catch(ia){L(ia)}},L)})})}function g(){return B?!0:!1}function k(){return D?D:D=m().then(function(){return q.create(function(H,L){E(["./featureSetUtils","./functions/featuresetbase","./functions/featuresetgeom","./functions/featuresetstats","./functions/featuresetstring"],function(aa,da,ha,ia,ba){try{G=aa,B.extend([da,ha,ia,ba]),b.extend([da,ha,ia,ba],"async"),t=!0,H(!0)}catch(ja){L(ja)}},L)})})}function x(H,L){void 0===L&&(L=[]);void 0===H.usesFeatureSet&&
n.findScriptDependencies(H,L);return!0===H.usesFeatureSet}function v(H,L){if(L)for(var aa=0;aa<L.length;aa++)if(d(H,L[aa]))return!0;return!1}Object.defineProperty(z,"__esModule",{value:!0});z.featureSetUtils=z.scriptTouchesGeometry=z.loadScriptDependencies=z.scriptIsAsync=z.scriptUsesFeatureSet=z.enableFeatureSetSupport=z.isGeometryEnabled=z.isAsyncEnabled=z.isFeatureSetSupportEnabled=z.enableAsyncSupport=z.enableGeometrySupport=z.scriptUsesGeometryEngine=z.extractExpectedFieldLiterals=z.extractFieldLiterals=
z.referencesFunction=z.referencesMember=z.executeScript=z.parseAndExecuteScript=z.scriptCheck=z.validateScript=z.parseScript=z.extend=z.compileScript=void 0;var y="feature angle bearing centroid envelopeintersects extent geometry isselfintersecting ringisclockwise".split(" "),u=function(){if(l("csp-restrictions"))return!1;try{return(new Function("function* test() {}; return true"))()}catch(H){return!1}}(),t=!1,r=!1,B=null,C=[];z.compileScript=function(H,L){return!0===L.useAsync||!0===H.isAsync?f(H,
L):l("esri-csp-restrictions")?function(aa){return w.executeScript(H,aa)}:b.compileScript(H,L)};z.extend=function(H){w.extend(H);b.extend(H,"sync");null===B?C.push(H):(b.extend(H,"async"),B.extend(H))};z.parseScript=c;z.validateScript=function(H,L,aa){void 0===aa&&(aa="");return p.validateScript(H,L,aa)};z.scriptCheck=function(H,L,aa,da){void 0===da&&(da="");return p.scriptCheck(H,L,aa,da)};z.parseAndExecuteScript=function(H,L,aa){void 0===aa&&(aa=[]);H=p.parseScript(H,aa);return a(H,L)};z.executeScript=
a;z.referencesMember=d;z.referencesFunction=function(H,L){return w.referencesFunction(H,L)};z.extractFieldLiterals=function(H,L){void 0===L&&(L=!1);return p.extractFieldLiterals(H,L)};z.extractExpectedFieldLiterals=function(H){return p.extractExpectedFieldLiterals(H)};z.scriptUsesGeometryEngine=e;var F=null;z.enableGeometrySupport=h;var A=null;z.enableAsyncSupport=m;z.isFeatureSetSupportEnabled=function(){return t};z.isAsyncEnabled=g;z.isGeometryEnabled=function(){return r};var D=null;z.enableFeatureSetSupport=
k;z.scriptUsesFeatureSet=x;z.scriptIsAsync=function(H,L){void 0===L&&(L=[]);void 0===H.isAsync&&n.findScriptDependencies(H,L);return!0===H.isAsync};z.loadScriptDependencies=function(H,L,aa,da){void 0===aa&&(aa=[]);void 0===da&&(da=!1);return q.create(function(ha,ia){var ba="string"===typeof H?c(H):H,ja=[];ba&&(!1===r&&(e(ba)||da)&&ja.push(h()),!1===g()&&(!0===ba.isAsync||L)&&ja.push(m()),!1===t&&(x(ba)||v(ba,aa))&&ja.push(k()));ja.length?q.all(ja).then(function(){ha(!0)},ia):ha(!0)})};z.scriptTouchesGeometry=
function(H){if(e(H))return!0;H=n.findFunctionCalls(H);for(var L=!1,aa=0;aa<H.length;aa++)if(-1<y.indexOf(H[aa])){L=!0;break}return L};var G=null;z.featureSetUtils=function(){return G}})},"esri/arcade/arcadeCompiler":function(){define("require exports ./ArcadePortal ./Attachment ./Dictionary ./Feature ./ImmutablePathArray ./ImmutablePointArray ./languageUtils ./treeAnalysis ./functions/array ./functions/date ./functions/geometry ./functions/geomsync ./functions/maths ./functions/stats ./functions/string ./polyfill/promiseUtils ../geometry/Extent ../geometry/Geometry ../geometry/Multipoint ../geometry/Point ../geometry/Polygon ../geometry/Polyline ../SpatialReference".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y,u,t,r,B,C){function F(V,W,oa){try{return oa(V,null,W.arguments)}catch(ta){throw ta;}}function A(V){return V instanceof Error?x.reject(V):x.reject(Error(V))}function D(V,W){try{switch(W.type){case "EmptyStatement":return"lc.voidOperation";case "VariableDeclarator":return da(V,W);case "VariableDeclaration":for(var oa=[],ta=0;ta<W.declarations.length;ta++)oa.push(D(V,W.declarations[ta]));return oa.join("\n")+" \n lastStatement\x3d  lc.voidOperation; \n";
case "BlockStatement":return aa(V,W);case "FunctionDeclaration":var Ba=W.id.name.toLowerCase(),Ra={isAsync:V.isAsync,spatialReference:V.spatialReference,console:V.console,lrucache:V.lrucache,interceptor:V.interceptor,services:V.services,symbols:V.symbols,mangleMap:V.mangleMap,localScope:{_SymbolsMap:{}},depthCounter:V.depthCounter+1,globalScope:V.globalScope};if(64<Ra.depthCounter)throw Error("Exceeded maximum function depth");oa="new lc.SizzleFunction( lang.functionDepthchecker(function() { var lastStatement \x3d lc.voidOperation; \n   var lscope \x3d runtimeCtx.localStack[runtimeCtx.localStack.length-1];\n";
for(ta=0;ta<W.params.length;ta++){var Va=W.params[ta].name.toLowerCase(),Za=Aa(V);Ra.localScope._SymbolsMap[Va]=Za;Ra.mangleMap[Va]=Za;oa+="lscope['"+Za+"']\x3darguments["+ta.toString()+"];\n"}!0===V.isAsync?(oa=oa+"return lang.__awaiter(this, void 0, void 0, function* () {\n"+(aa(Ra,W.body)+"\n return lastStatement; "),oa=oa+"});  }, runtimeCtx),"+(W.params.length+")")):oa+=aa(Ra,W.body)+"\n return lastStatement; }, runtimeCtx),"+W.params.length+")";oa+="\n lastStatement \x3d lc.voidOperation; \n";
if(void 0!==V.globalScope[Ba])var Qa="gscope['"+Ba+"']\x3d"+oa;else void 0!==V.globalScope._SymbolsMap[Ba]?Qa="gscope['"+V.globalScope._SymbolsMap[Ba]+"']\x3d"+oa:(Za=Aa(V),V.globalScope._SymbolsMap[Ba]=Za,V.mangleMap[Ba]=Za,Qa="gscope['"+Za+"']\x3d"+oa);return Qa;case "ReturnStatement":var J=null===W.argument?"return lc.voidOperation":"return "+D(V,W.argument);return J;case "IfStatement":if("AssignmentExpression"===W.test.type||"UpdateExpression"===W.test.type)throw Error(c.nodeErrorMessage(W.test,
"RUNTIME","CANNOT_USE_ASSIGNMENT_IN_CONDITION"));var Q=D(V,W.test),ea=M(V),K="var "+ea+" \x3d "+Q+";\n if ("+ea+" \x3d\x3d\x3d true) {\n"+L(V,W.consequent)+"\n }\n";K=null!==W.alternate?K+("else if ("+ea+"\x3d\x3d\x3dfalse)   { \n"+L(V,W.alternate)+"}\n"):K+("else if ("+ea+"\x3d\x3d\x3dfalse) { \n lastStatement \x3d lc.voidOperation;\n }\n");return K+="else { lang.error({type: '"+W.type+"'},'RUNTIME','CANNOT_USE_NONBOOLEAN_IN_CONDITION'); \n}\n";case "ExpressionStatement":var T="AssignmentExpression"===
W.expression.type?"lastStatement \x3d lc.voidOperation; "+D(V,W.expression)+"; \n ":"lastStatement \x3d "+D(V,W.expression)+"; ";return T;case "AssignmentExpression":return H(V,W);case "UpdateExpression":return G(V,W);case "BreakStatement":return"break";case "ContinueStatement":return"continue";case "TemplateLiteral":try{var fa=[];Ba=Qa=0;for(ta=W.quasis;Ba<ta.length;Ba++){var qa=ta[Ba];fa.push(qa.value?JSON.stringify(qa.value.cooked):JSON.stringify(""));!1===qa.tail&&(fa.push(W.expressions[Qa]?"lang.castString(lang.aCheck("+
D(V,W.expressions[Qa])+", 'TemplateLiteral'))":""),Qa++)}oa="(["+fa.join(",")+"]).join('')"}catch(qb){throw qb;}return oa;case "TemplateElement":return JSON.stringify(W.value?W.value.cooked:"");case "ForStatement":oa="lastStatement \x3d lc.voidOperation; \n";null!==W.init&&(oa+=D(V,W.init)+"; ");var ya=M(V),Fa=M(V);oa+="var "+ya+" \x3d true; \n do { ";null!==W.update&&(oa+=" if ("+ya+"\x3d\x3d\x3dfalse) {\n "+D(V,W.update)+"  \n}\n "+ya+"\x3dfalse; \n");null!==W.test&&(oa+="var "+Fa+" \x3d "+D(V,
W.test)+"; ",oa+="if ("+Fa+"\x3d\x3d\x3dfalse) { break; } else if ("+Fa+"!\x3d\x3dtrue) { lang.error({type: '"+W.type+"'},'RUNTIME','CANNOT_USE_NONBOOLEAN_IN_CONDITION');   }\n");oa+=D(V,W.body);null!==W.update&&(oa+="\n "+D(V,W.update));return oa+("\n"+ya+" \x3d true; \n} while(true);  lastStatement \x3d lc.voidOperation; ");case "ForInStatement":var Ea=M(V),Ta=M(V),Pa=M(V),Ka="var "+Ea+" \x3d "+D(V,W.right)+";\n";"VariableDeclaration"===W.left.type&&(Ka+=D(V,W.left));var Xa="VariableDeclaration"===
W.left.type?W.left.declarations[0].id.name:W.left.name;Xa=Xa.toLowerCase();oa="";null!==V.localScope&&(void 0!==V.localScope[Xa]?oa="lscope['"+Xa+"']":void 0!==V.localScope._SymbolsMap[Xa]&&(oa="lscope['"+V.localScope._SymbolsMap[Xa]+"']"));""===oa&&(void 0!==V.globalScope[Xa]?oa="gscope['"+Xa+"']":void 0!==V.globalScope._SymbolsMap[Xa]&&(oa="gscope['"+V.globalScope._SymbolsMap[Xa]+"']"));Ka=Ka+("if ("+Ea+"\x3d\x3d\x3dnull) {  lastStatement \x3d lc.voidOperation; }\n else if (lc.isArray(")+(Ea+") || lc.isString("+
Ea+")) {var ")+(Ta+"\x3d"+Ea+".length; \nfor(var ")+(Pa+"\x3d0; "+Pa+"\x3c"+Ta+"; "+Pa+"++) {\n");Ka+=oa+"\x3d"+Pa+";\n";Ka+=D(V,W.body);Ka+="\n}\n";Ka+=" lastStatement \x3d lc.voidOperation; \n";Ka+=" \n}\n";Ka+="else if (lc.isImmutableArray("+Ea+")) {";Ka=Ka+("var "+Ta+"\x3d"+Ea+".length(); \nfor(var ")+(Pa+"\x3d0; "+Pa+"\x3c"+Ta+"; "+Pa+"++) {\n");Ka+=oa+"\x3d"+Pa+";\n";Ka+=D(V,W.body);Ka+="\n}\n";Ka+=" lastStatement \x3d lc.voidOperation; \n";Ka+=" \n}\n";Ka+="else if (( "+Ea+" instanceof lang.Dictionary) || ( "+
Ea+" instanceof lang.Feature)) {";Ka=Ka+("var "+Ta+"\x3d"+Ea+".keys(); \nfor(var ")+(Pa+"\x3d0; "+Pa+"\x3c"+Ta+".length; "+Pa+"++) {\n");Ka+=oa+"\x3d"+Ta+"["+Pa+"];\n";Ka+=D(V,W.body);Ka+="\n}\n";Ka+=" lastStatement \x3d lc.voidOperation; \n";Ka+=" \n}\n";V.isAsync&&(Ka+="else if (lc.isFeatureSet("+Ea+")) {",Ka=Ka+("var "+Ta+"\x3d"+Ea+".iterator(runtimeCtx.abortSignal); \nfor(var ")+(Pa+"\x3dlang. graphicToFeature( yield "+Ta+".next(),"+Ea+"); "+Pa+"!\x3dnull; "+Pa+"\x3dlang. graphicToFeature( yield "+
Ta+".next(),"+Ea+")) {\n")+(oa+"\x3d"+Pa+";\n"),Ka+=D(V,W.body),Ka+="\n}\n",Ka+=" lastStatement \x3d lc.voidOperation; \n",Ka+=" \n}\n");return Ka+"else { lastStatement \x3d lc.voidOperation; } \n";case "Identifier":return ia(V,W);case "MemberExpression":try{oa=void 0;oa=!0===W.computed?D(V,W.property):"'"+W.property.name+"'";var gb="lang.member("+D(V,W.object)+","+oa+")"}catch(qb){throw qb;}return gb;case "Literal":return null===W.value||void 0===W.value?"null":JSON.stringify(W.value);case "ThisExpression":throw Error(c.nodeErrorMessage(W,
"RUNTIME","NOTSUPPORTED"));case "CallExpression":try{if("Identifier"!==W.callee.type)throw Error(c.nodeErrorMessage(W,"RUNTIME","ONLYNODESSUPPORTED"));var bb=W.callee.name.toLowerCase();oa="";null!==V.localScope&&(void 0!==V.localScope[bb]?oa="lscope['"+bb+"']":void 0!==V.localScope._SymbolsMap[bb]&&(oa="lscope['"+V.localScope._SymbolsMap[bb]+"']"));""===oa&&(void 0!==V.globalScope[bb]?oa="gscope['"+bb+"']":void 0!==V.globalScope._SymbolsMap[bb]&&(oa="gscope['"+V.globalScope._SymbolsMap[bb]+"']"));
if(""!==oa){ta="[";for(qa=0;qa<W.arguments.length;qa++)0<qa&&(ta+=", "),ta+=D(V,W.arguments[qa]);ta+="]";fa=V.isAsync?"(yield lang.callfunc("+oa+","+ta+",runtimeCtx) )":"lang.callfunc("+oa+","+ta+",runtimeCtx)"}else throw Error(c.nodeErrorMessage(W,"RUNTIME","NOTFOUND"));}catch(qb){throw qb;}return fa;case "UnaryExpression":try{var hb="lang.unary("+D(V,W.argument)+",'"+W.operator+"')"}catch(qb){throw qb;}return hb;case "BinaryExpression":try{var db="lang.binary("+D(V,W.left)+","+D(V,W.right)+",'"+
W.operator+"')"}catch(qb){throw qb;}return db;case "LogicalExpression":try{if("AssignmentExpression"===W.left.type||"UpdateExpression"===W.left.type)throw Error(c.nodeErrorMessage(W.left,"RUNTIME","CANNOT_USE_ASSIGNMENT_IN_CONDITION"));if("AssignmentExpression"===W.right.type||"UpdateExpression"===W.right.type)throw Error(c.nodeErrorMessage(W.right,"RUNTIME","CANNOT_USE_ASSIGNMENT_IN_CONDITION"));if("\x26\x26"===W.operator||"||"===W.operator)var lb="(lang.logicalCheck("+D(V,W.left)+") "+W.operator+
" lang.logicalCheck("+D(V,W.right)+"))";else throw Error(c.nodeErrorMessage(W,"RUNTIME","ONLYORORAND"));}catch(qb){throw qb;}return lb;case "ConditionalExpression":throw Error(c.nodeErrorMessage(W,"RUNTIME","NOTSUPPORTED"));case "ArrayExpression":try{oa=[];for(ta=0;ta<W.elements.length;ta++)"Literal"===W.elements[ta].type?oa.push(D(V,W.elements[ta])):oa.push("lang.aCheck("+D(V,W.elements[ta])+",'ArrayExpression')");var sb="["+oa.join(",")+"]"}catch(qb){throw qb;}return sb;case "ObjectExpression":oa=
"lang.dictionary([";for(ta=0;ta<W.properties.length;ta++){var ob=W.properties[ta],eb="Identifier"===ob.key.type?"'"+ob.key.name+"'":D(V,ob.key),pb=D(V,ob.value);0<ta&&(oa+=",");oa+="lang.strCheck("+eb+",'ObjectExpression'),lang.aCheck("+pb+", 'ObjectExpression')"}return oa+"])";case "Property":throw Error("Should not get here");case "Array":throw Error(c.nodeErrorMessage(W,"RUNTIME","NOTSUPPORTED"));default:throw Error(c.nodeErrorMessage(W,"RUNTIME","UNREOGNISED"));}}catch(qb){throw qb;}}function G(V,
W){var oa=null,ta="";if("MemberExpression"===W.argument.type)return oa=D(V,W.argument.object),ta=!0===W.argument.computed?D(V,W.argument.property):"'"+W.argument.property.name+"'","lang.memberupdate("+oa+","+ta+",'"+W.operator+"',"+W.prefix+")";oa=W.argument.name.toLowerCase();if(null!==V.localScope){if(void 0!==V.localScope[oa])return"lang.update(lscope, '"+oa+"','"+W.operator+"',"+W.prefix+")";if(void 0!==V.localScope._SymbolsMap[oa])return"lang.update(lscope, '"+V.localScope._SymbolsMap[oa]+"','"+
W.operator+"',"+W.prefix+")"}if(void 0!==V.globalScope[oa])return"lang.update(gscope, '"+oa+"','"+W.operator+"',"+W.prefix+")";if(void 0!==V.globalScope._SymbolsMap[oa])return"lang.update(gscope, '"+V.globalScope._SymbolsMap[oa]+"','"+W.operator+"',"+W.prefix+")";throw Error("Variable not recognised");}function H(V,W){var oa=D(V,W.right),ta=null,Ba="";if("MemberExpression"===W.left.type)return ta=D(V,W.left.object),Ba=!0===W.left.computed?D(V,W.left.property):"'"+W.left.property.name+"'","lang.assignmember("+
ta+","+Ba+",'"+W.operator+"',"+oa+")";ta=W.left.name.toLowerCase();if(null!==V.localScope){if(void 0!==V.localScope[ta])return"lscope['"+ta+"']\x3dlang.assign("+oa+",'"+W.operator+"', lscope['"+ta+"'])";if(void 0!==V.localScope._SymbolsMap[ta])return"lscope['"+V.localScope._SymbolsMap[ta]+"']\x3dlang.assign("+oa+",'"+W.operator+"', lscope['"+V.localScope._SymbolsMap[ta]+"'])"}if(void 0!==V.globalScope[ta])return"gscope['"+ta+"']\x3dlang.assign("+oa+",'"+W.operator+"', gscope['"+ta+"'])";if(void 0!==
V.globalScope._SymbolsMap[ta])return"gscope['"+V.globalScope._SymbolsMap[ta]+"']\x3dlang.assign("+oa+",'"+W.operator+"', gscope['"+V.globalScope._SymbolsMap[ta]+"'])";throw Error("Variable not recognised");}function L(V,W){return"BlockStatement"===W.type?D(V,W):"ReturnStatement"===W.type||"BreakStatement"===W.type||"ContinueStatement"===W.type?D(V,W)+"; ":"UpdateExpression"===W.type?"lastStatement \x3d "+D(V,W)+"; ":"ExpressionStatement"===W.type?D(V,W):"ObjectExpression"===W.type?"lastStatement \x3d "+
D(V,W)+"; ":D(V,W)+"; "}function aa(V,W){for(var oa="",ta=0;ta<W.body.length;ta++)oa="ReturnStatement"===W.body[ta].type?oa+(D(V,W.body[ta])+"; \n"):"BreakStatement"===W.body[ta].type?oa+(D(V,W.body[ta])+"; \n"):"ContinueStatement"===W.body[ta].type?oa+(D(V,W.body[ta])+"; \n"):"UpdateExpression"===W.body[ta].type?oa+("lastStatement \x3d "+D(V,W.body[ta])+"; \n"):"ObjectExpression"===W.body[ta].type?oa+("lastStatement \x3d "+D(V,W.body[ta])+"; \n"):oa+(D(V,W.body[ta])+" \n");return oa}function da(V,
W){var oa=null===W.init?null:D(V,W.init);oa===f.voidOperation&&(oa=null);W=W.id.name.toLowerCase();if(null!==V.localScope){if(void 0!==V.localScope[W])return"lscope['"+W+"']\x3d"+oa+"; ";if(void 0!==V.localScope._SymbolsMap[W])return"lscope['"+V.localScope._SymbolsMap[W]+"']\x3d"+oa+"; ";var ta=Aa(V);V.localScope._SymbolsMap[W]=ta;V.mangleMap[W]=ta;return"lscope['"+ta+"']\x3d"+oa+"; "}if(void 0!==V.globalScope[W])return"gscope['"+W+"']\x3d"+oa+"; ";if(void 0!==V.globalScope._SymbolsMap[W])return"gscope['"+
V.globalScope._SymbolsMap[W]+"']\x3d"+oa+"; ";ta=Aa(V);V.globalScope._SymbolsMap[W]=ta;V.mangleMap[W]=ta;return"gscope['"+ta+"']\x3d"+oa+"; "}function ha(V,W,oa){W=W.toLowerCase();switch(W){case "hasz":return V=V.hasZ,void 0===V?!1:V;case "hasm":return V=V.hasM,void 0===V?!1:V;case "spatialreference":return W=V.spatialReference._arcadeCacheId,void 0===W&&(oa=!0,Object.freeze&&Object.isFrozen(V.spatialReference)&&(oa=!1),oa&&(na++,W=V.spatialReference._arcadeCacheId=na)),V=new p({wkt:V.spatialReference.wkt,
wkid:V.spatialReference.wkid}),void 0!==W&&(V._arcadeCacheId="SPREF"+W.toString()),V}switch(V.type){case "extent":switch(W){case "xmin":case "xmax":case "ymin":case "ymax":case "zmin":case "zmax":case "mmin":case "mmax":return V=V[W],void 0!==V?V:null;case "type":return"Extent"}break;case "polygon":switch(W){case "rings":return W=V.getCacheValue("_arcadeCacheId"),void 0===W&&(na++,W=na,V.setCacheValue("_arcadeCacheId",W)),V=new l(V.rings,V.spatialReference,!0===V.hasZ,!0===V.hasM,W);case "type":return"Polygon"}break;
case "point":switch(W){case "x":case "y":case "z":case "m":return void 0!==V[W]?V[W]:null;case "type":return"Point"}break;case "polyline":switch(W){case "paths":return W=V.getCacheValue("_arcadeCacheId"),void 0===W&&(na++,W=na,V.setCacheValue("_arcadeCacheId",W)),V=new l(V.paths,V.spatialReference,!0===V.hasZ,!0===V.hasM,W);case "type":return"Polyline"}break;case "multipoint":switch(W){case "points":return W=V.getCacheValue("_arcadeCacheId"),void 0===W&&(na++,W=na,V.setCacheValue("_arcadeCacheId",
W)),V=new q(V.points,V.spatialReference,!0===V.hasZ,!0===V.hasM,W,1);case "type":return"Multipoint"}}throw Error(c.nodeErrorMessage(oa,"RUNTIME","PROPERTYNOTFOUND"));}function ia(V,W){try{var oa=W.name.toLowerCase();if(null!==V.localScope){if(void 0!==V.localScope[oa])return"lscope['"+oa+"']";if(void 0!==V.localScope._SymbolsMap[oa])return"lscope['"+V.localScope._SymbolsMap[oa]+"']"}if(void 0!==V.globalScope[oa])return"gscope['"+oa+"']";if(void 0!==V.globalScope._SymbolsMap[oa])return"gscope['"+V.globalScope._SymbolsMap[oa]+
"']";throw Error(c.nodeErrorMessage(W,"RUNTIME","VARIABLENOTFOUND"));}catch(ta){throw ta;}}function ba(V){return null===V?"":f.isArray(V)||f.isImmutableArray(V)?"Array":f.isDate(V)?"Date":f.isString(V)?"String":f.isBoolean(V)?"Boolean":f.isNumber(V)?"Number":V instanceof w?"Attachment":V instanceof b?"Portal":V instanceof p?"Dictionary":V instanceof n?"Feature":V instanceof t?"Point":V instanceof r?"Polygon":V instanceof B?"Polyline":V instanceof u?"Multipoint":V instanceof v?"Extent":f.isFunctionParameter(V)?
"Function":f.isFeatureSet(V)?"FeatureSet":f.isFeatureSetCollection(V)?"FeatureSetCollection":V===f.voidOperation?"":"number"===typeof V&&isNaN(V)?"Number":"Unrecognised Type"}function ja(V,W,oa,ta){try{if(f.equalityTest(W[oa],ta))return W[oa+1];var Ba=W.length-oa;return 1===Ba?W[oa]:2===Ba?null:3===Ba?W[oa+2]:ja(V,W,oa+2,ta)}catch(Ra){throw Ra;}}function pa(V,W,oa,ta){try{if(!0===ta)return W[oa+1];if(3===W.length-oa)return W[oa+2];var Ba=W[oa+2];if(!1===f.isBoolean(Ba))throw Error("WHEN needs boolean test conditions");
return pa(V,W,oa+2,Ba)}catch(Ra){throw Ra;}}function Ca(V,W){var oa=V.length,ta=Math.floor(oa/2);if(0===oa)return[];if(1===oa)return[V[0]];var Ba=Ca(V.slice(0,ta),W);V=Ca(V.slice(ta,oa),W);for(oa=[];0<Ba.length||0<V.length;)0<Ba.length&&0<V.length?(ta=W(Ba[0],V[0]),isNaN(ta)&&(ta=0),0>=ta?(oa.push(Ba[0]),Ba=Ba.slice(1)):(oa.push(V[0]),V=V.slice(1))):0<Ba.length?(oa.push(Ba[0]),Ba=Ba.slice(1)):0<V.length&&(oa.push(V[0]),V=V.slice(1));return oa}function la(V,W){try{var oa=V.length,ta=Math.floor(oa/
2);if(0===oa)return x.resolve([]);if(1===oa)return x.resolve([V[0]]);var Ba=[la(V.slice(0,ta),W),la(V.slice(ta,oa),W)];return x.all(Ba).then(function(Ra){return ua(Ra[0],Ra[1],W,[])})}catch(Ra){return x.reject(Ra)}}function ua(V,W,oa,ta){return x.create(function(Ba,Ra){0<V.length||0<W.length?0<V.length&&0<W.length?oa(V[0],W[0]).then(function(Va){try{isNaN(Va)&&(Va=1),0>=Va?(ta.push(V[0]),V=V.slice(1)):(ta.push(W[0]),W=W.slice(1)),ua(V,W,oa,ta).then(function(Za){Ba(Za)},Ra)}catch(Za){Ra(Za)}},Ra):
0<V.length?(ta.push(V[0]),V=V.slice(1),ua(V,W,oa,ta).then(function(Va){Ba(Va)},Ra)):0<W.length&&(ta.push(W[0]),W=W.slice(1),ua(V,W,oa,ta).then(function(Va){Ba(Va)},Ra)):Ba(ta)})}function Aa(V){V.symbols.symbolCounter++;return"_T"+V.symbols.symbolCounter.toString()}function M(V){V.symbols.symbolCounter++;return"_Tvar"+V.symbols.symbolCounter.toString()}function Y(V,W,oa){var ta={};V||(V={});oa||(oa={});ta._SymbolsMap={};ta.textformatting=1;ta.infinity=1;ta.pi=1;for(var Ba in W)ta[Ba]=1;for(Ba in oa)ta[Ba]=
1;for(Ba in V)ta[Ba]=1;return ta}function ka(V,W){for(var oa={mode:W,compiled:!0,functions:{},signatures:[],failDefferred:A,standardFunction:F,standardFunctionAsync:F,evaluateIdentifier:N},ta=0;ta<V.length;ta++)V[ta].registerFunctions(oa);if("sync"===W){for(var Ba in oa.functions)za[Ba]=new f.NativeFunction(oa.functions[Ba]),U.prototype[Ba]=za[Ba];for(ta=0;ta<oa.signatures.length;ta++)c.addFunctionDeclaration(oa.signatures[ta],"sync")}else{for(Ba in oa.functions)va[Ba]=new f.NativeFunction(oa.functions[Ba]),
ma.prototype[Ba]=va[Ba];for(ta=0;ta<oa.signatures.length;ta++)c.addFunctionDeclaration(oa.signatures[ta],"async")}}function N(V,W){W=W.name;if("_SymbolsMap"===W)throw"Illegal";if(0<V.localStack.length){if("_t"!==W.substr(0,2).toLowerCase()&&void 0!==V.localStack[V.localStack.length-1][W])return V.localStack[V.localStack.length-1][W];var oa=V.mangleMap[W];if(void 0!==oa&&void 0!==V.localStack[V.localStack.length-1][oa])return V.localStack[V.localStack.length-1][oa]}if("_t"!==W.substr(0,2).toLowerCase()&&
void 0!==V.globalScope[W]||1===V.globalScope._SymbolsMap[W])return V.globalScope[W];W=V.mangleMap[W];if(void 0!==W)return V.globalScope[W]}function Z(V){console.log(V)}Object.defineProperty(z,"__esModule",{value:!0});z.enableAsyncSupport=z.compileScript=z.referencesFunction=z.referencesMember=z.validateScript=z.extractExpectedFieldLiterals=z.extractFieldLiterals=z.executeScript=z.extend=z.functionHelper=void 0;var na=0,za={};d.registerFunctions(za,F);k.registerFunctions(za,F);m.registerFunctions(za,
F);e.registerFunctions(za,F);g.registerFunctions(za,F);za["typeof"]=function(V,W){return F(V,W,function(oa,ta,Ba){f.pcCheck(Ba,1,1);oa=ba(Ba[0]);if("Unrecognised Type"===oa)throw Error("Unrecognised Type");return oa})};za.iif=function(V,W){try{return F(V,W,function(oa,ta,Ba){f.pcCheck(Ba,3,3);if(!1===f.isBoolean(Ba[0]))throw Error("IF Function must have a boolean test condition");return Ba[0]?Ba[1]:Ba[2]})}catch(oa){throw oa;}};za.decode=function(V,W){try{return F(V,W,function(oa,ta,Ba){if(2>Ba.length)throw Error("Missing Parameters");
if(2===Ba.length)return Ba[1];if(0===(Ba.length-1)%2)throw Error("Must have a default value result.");return ja(V,Ba,1,Ba[0])})}catch(oa){throw oa;}};za.when=function(V,W){try{return F(V,W,function(oa,ta,Ba){if(3>Ba.length)throw Error("Missing Parameters");if(0===Ba.length%2)throw Error("Must have a default value result.");oa=Ba[0];if(!1===f.isBoolean(oa))throw Error("WHEN needs boolean test conditions");return pa(V,Ba,0,oa)})}catch(oa){throw oa;}};za.top=function(V,W){return F(V,W,function(oa,ta,
Ba){f.pcCheck(Ba,2,2);if(f.isArray(Ba[0]))return f.toNumber(Ba[1])>=Ba[0].length?Ba[0].slice(0):Ba[0].slice(0,f.toNumber(Ba[1]));if(f.isImmutableArray(Ba[0]))return f.toNumber(Ba[1])>=Ba[0].length()?Ba[0].slice(0):Ba[0].slice(0,f.toNumber(Ba[1]));throw Error("Top cannot accept this parameter type");})};za.first=function(V,W){return F(V,W,function(oa,ta,Ba){f.pcCheck(Ba,1,1);return f.isArray(Ba[0])?0===Ba[0].length?null:Ba[0][0]:f.isImmutableArray(Ba[0])?0===Ba[0].length()?null:Ba[0].get(0):null})};
za.sort=function(V,W){return F(V,W,function(oa,ta,Ba){f.pcCheck(Ba,1,2);ta=Ba[0];f.isImmutableArray(ta)&&(ta=ta.toArray());if(!1===f.isArray(ta))throw Error("Illegal Argument");if(1<Ba.length){if(!1===f.isFunctionParameter(Ba[1]))throw Error("Illegal Argument");var Ra=function(Q,ea){return sa.callfunc(Ba[1],[Q,ea],oa)};return V.isAsync?la(ta,Ra):ta=Ca(ta,function(Q,ea){return Ra(Q,ea)})}if(0===ta.length)return[];for(var Va={},Za=0;Za<ta.length;Za++){var Qa=ba(ta[Za]);""!==Qa&&(Va[Qa]=!0)}if(!0===
Va.Array||!0===Va.Dictionary||!0===Va.Feature||!0===Va.Point||!0===Va.Polygon||!0===Va.Polyline||!0===Va.Multipoint||!0===Va.Extent||!0===Va.Function)return ta.slice(0);Za=0;Qa="";for(var J in Va)Za++,Qa=J;return ta=1<Za||"String"===Qa?Ca(ta,function(Q,ea){if(null===Q||void 0===Q||Q===f.voidOperation)return null===ea||void 0===ea||ea===f.voidOperation?0:1;if(null===ea||void 0===ea||ea===f.voidOperation)return-1;Q=f.toString(Q);ea=f.toString(ea);return Q<ea?-1:Q===ea?0:1}):"Number"===Qa?Ca(ta,function(Q,
ea){return Q-ea}):"Boolean"===Qa?Ca(ta,function(Q,ea){return Q===ea?0:ea?-1:1}):"Date"===Qa?Ca(ta,function(Q,ea){return ea-Q}):ta.slice(0)})};var va={},S;for(S in za)va[S]=new f.NativeFunction(za[S]);h.registerFunctions(za,F);for(S in za)za[S]=new f.NativeFunction(za[S]);var U=function(){};U.prototype=za;var ma=function(){};ma.prototype=va;z.functionHelper={fixSpatialReference:f.fixSpatialReference,parseArguments:function(V,W){for(var oa=[],ta=0;ta<W.arguments.length;ta++)oa.push(D(V,W.arguments[ta]));
return oa},standardFunction:F};z.extend=ka;ka([a],"sync");ka([a],"async");z.executeScript=function(V,W){return V(W)};z.extractFieldLiterals=function(V,W){void 0===W&&(W=!1);return c.findFieldLiterals(V)};z.extractExpectedFieldLiterals=function(V){return c.findExpectedFieldLiterals(V)};z.validateScript=function(V,W){return c.validateScript(V,W,"sync")};z.referencesMember=function(V,W){return c.referencesMember(V,W)};z.referencesFunction=function(V,W){return c.referencesFunction(V,W)};var ra=0,sa={error:function(V,
W,oa){throw Error(c.nodeErrorMessage(V,W,oa));},__awaiter:function(V,W,oa,ta){return x.create(function(Ba,Ra){function Va(J){try{Qa(ta.next(J))}catch(Q){Ra(Q)}}function Za(J){try{Qa(ta["throw"](J))}catch(Q){Ra(Q)}}function Qa(J){J.done?Ba(J.value):J.value&&J.value.then?J.value.then(Va,Za):(ra++,0===ra%100?setTimeout(function(){ra=0;Va(J.value)},0):Va(J.value))}Qa((ta=ta.apply(V,W||[])).next())})},functionDepthchecker:function(V,W){return function(){W.depthCounter++;W.localStack.push([]);if(64<W.depthCounter)throw Error("Exceeded maximum function depth");
var oa=V.apply(this,arguments);if(x.isPromiseLike(oa))return oa.then(function(ta){W.depthCounter--;--W.localStack.length;return ta});W.depthCounter--;--W.localStack.length;return oa}},castString:function(V){return f.toString(V)},aCheck:function(V,W){if(f.isFunctionParameter(V))throw Error(c.nodeErrorMessage({type:W},"RUNTIME","FUNCTIONCONTEXTILLEGAL"));return V===f.voidOperation?null:V},Dictionary:p,Feature:n,dictionary:function(V){for(var W={},oa=0;oa<V.length;oa+=2){if(f.isFunctionParameter(V[oa+
1]))throw Error("Illegal Argument");if(!1===f.isString(V[oa]))throw Error("Illegal Argument");W[V[oa].toString()]=V[oa+1]===f.voidOperation?null:V[oa+1]}V=new p(W);V.immutable=!1;return V},strCheck:function(V){if(!1===f.isString(V))throw Error("Illegal Argument");return V},unary:function(V,W){if(f.isBoolean(V)){if("!"===W)return!V;if("-"===W)return-1*f.toNumber(V);if("+"===W)return 1*f.toNumber(V);if("~"===W)return~f.toNumber(V);throw Error(c.nodeErrorMessage({type:"UnaryExpression",operator:W,prefix:null,
argument:null},"RUNTIME","NOTSUPPORTEDUNARYOPERATOR"));}if("-"===W)return-1*f.toNumber(V);if("+"===W)return 1*f.toNumber(V);if("~"===W)return~f.toNumber(V);throw Error(c.nodeErrorMessage({type:"UnaryExpression",operator:W,prefix:null,argument:null},"RUNTIME","NOTSUPPORTEDUNARYOPERATOR"));},logicalCheck:function(V){if(!1===f.isBoolean(V))throw Error(c.nodeErrorMessage({type:"LogicalExpression",operator:null,left:null,right:null},"RUNTIME","ONLYORORAND"));return V},logical:function(V,W,oa){if(f.isBoolean(V)&&
f.isBoolean(W))switch(oa){case "||":return V||W;case "\x26\x26":return V&&W}throw Error(c.nodeErrorMessage({type:"LogicalExpression",operator:null,left:null,right:null},"RUNTIME","ONLYORORAND"));},binary:function(V,W,oa){switch(oa){case "|":case "\x3c\x3c":case "\x3e\x3e":case "\x3e\x3e\x3e":case "^":case "\x26":return f.binaryOperator(f.toNumber(V),f.toNumber(W),oa);case "\x3d\x3d":return f.equalityTest(V,W);case "\x3d":return f.equalityTest(V,W);case "!\x3d":return!f.equalityTest(V,W);case "\x3c":return f.greaterThanLessThan(V,
W,oa);case "\x3e":return f.greaterThanLessThan(V,W,oa);case "\x3c\x3d":return f.greaterThanLessThan(V,W,oa);case "\x3e\x3d":return f.greaterThanLessThan(V,W,oa);case "+":return f.isString(V)||f.isString(W)?f.toString(V)+f.toString(W):f.toNumber(V)+f.toNumber(W);case "-":return f.toNumber(V)-f.toNumber(W);case "*":return f.toNumber(V)*f.toNumber(W);case "/":return f.toNumber(V)/f.toNumber(W);case "%":return f.toNumber(V)%f.toNumber(W);default:throw Error(c.nodeErrorMessage({type:"BinaryExpression",
operator:oa,left:V,right:W},"RUNTIME","OPERATORNOTRECOGNISED"));}},assign:function(V,W,oa){switch(W){case "\x3d":return V===f.voidOperation?null:V;case "/\x3d":return f.toNumber(oa)/f.toNumber(V);case "*\x3d":return f.toNumber(oa)*f.toNumber(V);case "-\x3d":return f.toNumber(oa)-f.toNumber(V);case "+\x3d":return f.isString(oa)||f.isString(V)?f.toString(oa)+f.toString(V):f.toNumber(oa)+f.toNumber(V);case "%\x3d":return f.toNumber(oa)%f.toNumber(V);default:throw Error(c.nodeErrorMessage({type:"AssignmentExpression",
operator:W,left:null,right:null},"RUNTIME","OPERATORNOTRECOGNISED"));}},update:function(V,W,oa,ta){var Ba=f.toNumber(V[W]);V[W]="++"===oa?Ba+1:Ba-1;return!1===ta?Ba:"++"===oa?Ba+1:Ba-1},graphicToFeature:function(V,W){return null===V?null:n.createFromGraphicLikeObject(V.geometry,V.attributes,W)},memberupdate:function(V,W,oa,ta){if(f.isArray(V))if(f.isNumber(W)){0>W&&(W=V.length+W);if(0>W||W>=V.length)throw Error("Assignment outside of array bounds");var Ba=f.toNumber(V[W]);V[W]="++"===oa?Ba+1:Ba-1}else throw Error("Invalid Parameter");
else if(V instanceof p){if(!1===f.isString(W))throw Error("Dictionary accessor must be a string");if(!0===V.hasField(W))Ba=f.toNumber(V.field(W)),V.setField(W,"++"===oa?Ba+1:Ba-1);else throw Error("Invalid Parameter");}else if(V instanceof n){if(!1===f.isString(W))throw Error("Feature accessor must be a string");if(!0===V.hasField(W))Ba=f.toNumber(V.field(W)),V.setField(W,"++"===oa?Ba+1:Ba-1);else throw Error("Invalid Parameter");}else{if(f.isImmutableArray(V))throw Error("Array is Immutable");throw Error("Invalid Parameter");
}return!1===ta?Ba:"++"===oa?Ba+1:Ba-1},assignmember:function(V,W,oa,ta){if(f.isArray(V))if(f.isNumber(W)){0>W&&(W=V.length+W);if(0>W||W>V.length)throw Error("Assignment outside of array bounds");if(W===V.length&&"\x3d"!==oa)throw Error("Invalid Parameter");V[W]=this.assign(ta,oa,V[W])}else throw Error("Invalid Parameter");else if(V instanceof p){if(!1===f.isString(W))throw Error("Dictionary accessor must be a string");if(!0===V.hasField(W))V.setField(W,this.assign(ta,oa,V.field(W)));else{if("\x3d"!==
oa)throw Error("Invalid Parameter");V.setField(W,this.assign(ta,oa,null))}}else if(V instanceof n){if(!1===f.isString(W))throw Error("Feature accessor must be a string");if(!0===V.hasField(W))V.setField(W,this.assign(ta,oa,V.field(W)));else{if("\x3d"!==oa)throw Error("Invalid Parameter");V.setField(W,this.assign(ta,oa,null))}}else{if(f.isImmutableArray(V))throw Error("Array is Immutable");throw Error("Invalid Parameter");}},member:function(V,W){if(null===V)throw Error(c.nodeErrorMessage({type:"MemberExpression",
object:null,property:null,computed:null},"RUNTIME","NOTFOUND"));if(V instanceof p||V instanceof n){if(f.isString(W))return V.field(W);throw Error(c.nodeErrorMessage({type:"MemberExpression",object:null,property:null,computed:null},"RUNTIME","INVALIDTYPE"));}if(V instanceof y){if(f.isString(W))return ha(V,W,"MemberExpression");throw Error(c.nodeErrorMessage({type:"MemberExpression",object:null,property:null,computed:null},"RUNTIME","INVALIDTYPE"));}if(f.isArray(V)){if(f.isNumber(W)&&isFinite(W)&&Math.floor(W)===
W){0>W&&(W=V.length+W);if(W>=V.length||0>W)throw Error(c.nodeErrorMessage({type:"MemberExpression",object:null,property:null,computed:null},"RUNTIME","OUTOFBOUNDS"));return V[W]}throw Error(c.nodeErrorMessage({type:"MemberExpression",object:null,property:null,computed:null},"RUNTIME","INVALIDTYPE"));}if(f.isString(V)){if(f.isNumber(W)&&isFinite(W)&&Math.floor(W)===W){0>W&&(W=V.length+W);if(W>=V.length||0>W)throw Error(c.nodeErrorMessage({type:"MemberExpression",object:null,property:null,computed:null},
"RUNTIME","OUTOFBOUNDS"));return V[W]}throw Error(c.nodeErrorMessage({type:"MemberExpression",object:null,property:null,computed:null},"RUNTIME","INVALIDTYPE"));}if(f.isImmutableArray(V)&&f.isNumber(W)&&isFinite(W)&&Math.floor(W)===W){0>W&&(W=V.length()+W);if(W>=V.length()||0>W)throw Error(c.nodeErrorMessage({type:"MemberExpression",object:null,property:null,computed:null},"RUNTIME","OUTOFBOUNDS"));return V.get(W)}throw Error(c.nodeErrorMessage({type:"MemberExpression",object:null,property:null,computed:null},
"RUNTIME","INVALIDTYPE"));},callfunc:function(V,W,oa){return V instanceof f.NativeFunction?V.fn(oa,{arguments:W,preparsed:!0}):V instanceof f.SizzleFunction?V.fn.apply(this,W):V.apply(this,W)}};z.compileScript=function(V,W,oa){void 0===W&&(W=null);void 0===oa&&(oa=!1);null===W&&(W={vars:{},customfunctions:{}});W={isAsync:oa,globalScope:Y(W.vars,oa?va:za,W.customfunctions),localScope:null,mangleMap:{},console:Z,lrucache:W.lrucache,interceptor:W.interceptor,services:W.services,symbols:{symbolCounter:0}};
V=D(W,V.body[0].body);""===V&&(V="lc.voidOperation; ");W={lc:f,lang:sa,mangles:W.mangleMap,postProcess:function(ta){ta instanceof f.ReturnResult&&(ta=ta.value);ta instanceof f.ImplicitResult&&(ta=ta.value);ta===f.voidOperation&&(ta=null);if(ta===f.breakResult)throw Error("Cannot return BREAK");if(ta===f.continueResult)throw Error("Cannot return CONTINUE");if(f.isFunctionParameter(ta))throw Error("Cannot return FUNCTION");return ta},prepare:function(ta,Ba){var Ra=ta.spatialReference;if(null===Ra||
void 0===Ra)Ra=new C({wkid:102100});var Va=ta.vars,Za=ta.customfunctions,Qa=Ba?new ma:new U;Va||(Va={});Za||(Za={});var J=new p({newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"});J.immutable=!1;Qa._SymbolsMap={textformatting:1,infinity:1,pi:1};Qa.textformatting=J;Qa.infinity=Number.POSITIVE_INFINITY;Qa.pi=Math.PI;for(var Q in Za)Qa[Q]=Za[Q],Qa._SymbolsMap[Q]=1;for(Q in Va)Qa._SymbolsMap[Q]=1,Qa[Q]=Va[Q]&&"esri.Graphic"===Va[Q].declaredClass?n.createFromGraphic(Va[Q]):
Va[Q];return{localStack:[],isAsync:Ba,mangleMap:this.mangles,spatialReference:Ra,globalScope:Qa,abortSignal:void 0===ta.abortSignal||null===ta.abortSignal?{aborted:!1}:ta.abortSignal,localScope:null,services:ta.services,console:ta.console?ta.console:Z,lrucache:ta.lrucache,interceptor:ta.interceptor,symbols:{symbolCounter:0},depthCounter:1}}};return(new Function("context","spatialReference",oa?"var runtimeCtx\x3dthis.prepare(context, true);\n var lc \x3d this.lc;  var lang \x3d this.lang; var gscope\x3druntimeCtx.globalScope; \nreturn lang.__awaiter(this, void 0, void 0, function* () {\n\n function mainBody() {\n var lastStatement\x3dlc.voidOperation;\n return lang.__awaiter(this, void 0, void 0, function* () {\n"+
V+"\n return lastStatement; }); } \n return this.postProcess(yield mainBody()); }); ":"var runtimeCtx\x3dthis.prepare(context, false);\n var lc \x3d this.lc;  var lang \x3d this.lang; var gscope\x3druntimeCtx.globalScope; \n function mainBody() {\n var lastStatement\x3dlc.voidOperation;\n "+V+"\n return lastStatement; } \n return this.postProcess(mainBody()); ")).bind(W)};z.enableAsyncSupport=function(){return x.create(function(V,W){E(["./functions/geomasync"],function(oa){ka([oa],"async");V(!0)},
function(oa){W(oa)})})}})},"esri/arcade/ArcadePortal":function(){var E=this&&this.__extends||function(){var z=function(b,w){z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,n){p.__proto__=n}||function(p,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(p[l]=n[l])};return z(b,w)};return function(b,w){function p(){this.constructor=b}if("function"!==typeof w&&null!==w)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");z(b,w);b.prototype=
null===w?Object.create(w):(p.prototype=w.prototype,new p)}}();define(["require","exports","./Dictionary"],function(z,b,w){return function(p){function n(l){var q=p.call(this)||this;q.immutable=!1;q.setField("url",l);q.immutable=!0;return q}E(n,p);return n}(w)})},"esri/arcade/Attachment":function(){var E=this&&this.__extends||function(){var z=function(b,w){z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,n){p.__proto__=n}||function(p,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,
l)&&(p[l]=n[l])};return z(b,w)};return function(b,w){function p(){this.constructor=b}if("function"!==typeof w&&null!==w)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");z(b,w);b.prototype=null===w?Object.create(w):(p.prototype=w.prototype,new p)}}();define(["require","exports","./Dictionary"],function(z,b,w){return function(p){function n(l,q,f,c,a,d){var e=p.call(this)||this;e.attachmentUrl=a;e.immutable=!1;e.setField("id",l);e.setField("name",q);e.setField("contenttype",
f);e.setField("size",c);e.setField("exifinfo",d);e.immutable=!0;return e}E(n,p);return n}(w)})},"esri/arcade/Feature":function(){var E=this&&this.__assign||function(){E=Object.assign||function(z){for(var b,w=1,p=arguments.length;w<p;w++){b=arguments[w];for(var n in b)Object.prototype.hasOwnProperty.call(b,n)&&(z[n]=b[n])}return z};return E.apply(this,arguments)};define("require exports ./Dictionary ./ImmutableArray ./languageUtils ./polyfill/promiseUtils ../geometry/Geometry ../geometry/Point ../geometry/jsonUtils ./featureset/support/shared".split(" "),
function(z,b,w,p,n,l,q,f,c,a){return function(){function d(){this.declaredClass="esri.arcade.Feature";this._layer=this.attributes=this._geometry=this._adapter=null;this.immutable=this._datesfixed=!0;this._datefields=null;this.immutable=!0}d.createFromGraphic=function(e){var h=new d;h._geometry=e.geometry?e.geometry:null;h.attributes=void 0===e.attributes?{}:null===e.attributes?{}:e.attributes;e._sourceLayer?(h._layer=e._sourceLayer,h._datesfixed=!1):e._layer?(h._layer=e._layer,h._datesfixed=!1):e.layer&&
"fields"in e.layer?(h._layer=e.layer,h._datesfixed=!1):e.sourceLayer&&"fields"in e.sourceLayer&&(h._layer=e.sourceLayer,h._datesfixed=!1);return h};d.createFromArcadeFeature=function(e){var h=new d;h._datesfixed=e._datesfixed;h.attributes=e.attributes;h._geometry=e._geometry;e._layer&&(h._layer=e._layer);return h};d.createFromArcadeDictionary=function(e){var h=new d;h.attributes=e.field("attributes");null!==h.attributes?h.attributes instanceof w?(h.attributes=h.attributes.attributes,null===h.attributes&&
(h.attributes={})):h.attributes={}:h.attributes={};h._geometry=e.field("geometry");null!==h._geometry&&(h._geometry instanceof w?h._geometry=d.parseGeometryFromDictionary(h._geometry):h._geometry instanceof q||(h._geometry=null));return h};d.createFromGraphicLikeObject=function(e,h,m){void 0===m&&(m=null);var g=new d;null===h&&(h={});g.attributes=h;g._geometry=e?e:null;g._layer=m;g._layer&&(g._datesfixed=!1);g._adapter=null;return g};d.prototype.repurposeFromGraphicLikeObject=function(e,h,m){void 0===
m&&(m=null);null===h&&(h={});this.attributes=h;this._geometry=e?e:null;this._datesfixed=(this._layer=m)?!1:!0};d.prototype.castToText=function(){if(this._adapter)return this._adapter.castToText();var e="";!1===this._datesfixed&&this._fixDates();for(var h in this.attributes){""!==e&&(e+=",");var m=this.attributes[h];null==m?e+=JSON.stringify(h)+":null":n.isBoolean(m)||n.isNumber(m)||n.isString(m)?e+=JSON.stringify(h)+":"+JSON.stringify(m):m instanceof q?e+=JSON.stringify(h)+":"+n.toStringExplicit(m):
m instanceof p?e+=JSON.stringify(h)+":"+n.toStringExplicit(m):m instanceof Array?e+=JSON.stringify(h)+":"+n.toStringExplicit(m):m instanceof Date?e+=JSON.stringify(h)+":"+JSON.stringify(m):null!==m&&"object"===typeof m&&void 0!==m.castToText&&(e+=JSON.stringify(h)+":"+m.castToText())}return'{"geometry":'+(null===this.geometry()?"null":n.toStringExplicit(this.geometry()))+',"attributes":{'+e+"}}"};d.prototype._fixDates=function(){if(null!==this._datefields)0<this._datefields.length&&this._fixDateFields(this._datefields);
else{for(var e=[],h=0;h<this._layer.fields.length;h++){var m=this._layer.fields[h];"date"!==m.type&&"esriFieldTypeDate"!==m.type||e.push(m.name)}this._datefields=e;0<e.length&&this._fixDateFields(e)}this._datesfixed=!0};d.prototype._fixDateFields=function(e){this.attributes=E({},this.attributes);for(var h=0;h<e.length;h++){var m=this.attributes[e[h]];if(null!==m)if(void 0===m)for(var g in this.attributes){if(g.toLowerCase()===e[h].toLowerCase()){m=this.attributes[g];null===m||m instanceof Date||(this.attributes[g]=
new Date(m));break}}else m instanceof Date||(this.attributes[e[h]]=new Date(m))}};d.prototype.geometry=function(){if(this._adapter)return this._adapter.geometry();if(null===this._geometry)return this._geometry;this._geometry instanceof q||(this._geometry=c.fromJson(this._geometry));return this._geometry};d.prototype.field=function(e){if(this._adapter)return this._adapter.field(e);!1===this._datesfixed&&this._fixDates();var h=this.attributes[e];if(void 0!==h)return h;h=e.toLowerCase();for(var m in this.attributes)if(m.toLowerCase()===
h)return this.attributes[m];if(this._hasFieldDefinition(h))return null;throw Error("Field not Found : "+e);};d.prototype._hasFieldDefinition=function(e){if(null===this._layer)return!1;for(var h=0;h<this._layer.fields.length;h++)if(this._layer.fields[h].name.toLowerCase()===e)return!0;return!1};d.prototype._field=function(e){var h;if(this._adapter)return null!==(h=this._adapter.field(e))&&void 0!==h?h:null;!1===this._datesfixed&&this._fixDates();h=e.toLowerCase();e=this.attributes[e];if(void 0!==e)return e;
for(var m in this.attributes)if(m.toLowerCase()===h)return this.attributes[m];return null};d.prototype.setField=function(e,h){if(this.immutable)throw Error("Feature is Immutable");if(!1===n.isSimpleType(h))throw Error("Illegal Value Assignment to Feature");if(this._adapter)this._adapter.setField(e,h);else{var m=e.toLowerCase();if(void 0===this.attributes[e])for(var g in this.attributes)if(g.toLowerCase()===m){this.attributes[g]=h;return}this.attributes[e]=h}};d.prototype.hasField=function(e){if(this._adapter)return this._adapter.hasField(e);
var h=e.toLowerCase();if(void 0!==this.attributes[e])return!0;for(var m in this.attributes)if(m.toLowerCase()===h)return!0;return this._hasFieldDefinition(h)?!0:!1};d.prototype.keys=function(){if(this._adapter)return this._adapter.keys();var e=[],h={},m;for(m in this.attributes)e.push(m),h[m.toLowerCase()]=1;if(null!==this._layer)for(m=0;m<this._layer.fields.length;m++){var g=this._layer.fields[m];1!==h[g.name.toLowerCase()]&&e.push(g.name)}return e=e.sort()};d.parseGeometryFromDictionary=function(e){e=
d.convertDictionaryToJson(e,!0);void 0!==e.hasm&&(e.hasM=e.hasm,delete e.hasm);void 0!==e.hasz&&(e.hasZ=e.hasz,delete e.hasz);void 0!==e.spatialreference&&(e.spatialReference=e.spatialreference,delete e.spatialreference);void 0!==e.rings&&(e.rings=this.fixPathArrays(e.rings,!0===e.hasZ,!0===e.hasZ));void 0!==e.paths&&(e.paths=this.fixPathArrays(e.paths,!0===e.hasZ,!0===e.hasM));void 0!==e.points&&(e.points=this.fixPointArrays(e.points,!0===e.hasZ,!0===e.hasM));return c.fromJson(e)};d.fixPathArrays=
function(e,h,m){var g=[];if(e instanceof Array)for(var k=0;k<e.length;k++)g.push(this.fixPointArrays(e[k],h,m));else if(e instanceof p)for(k=0;k<e.length();k++)g.push(this.fixPointArrays(e.get(k),h,m));return g};d.fixPointArrays=function(e,h,m){var g=[];if(e instanceof Array)for(var k=0;k<e.length;k++){var x=e[k];x instanceof f?h&&m?g.push([x.x,x.y,x.z,x.m]):h?g.push([x.x,x.y,x.z]):m?g.push([x.x,x.y,x.m]):g.push([x.x,x.y]):x instanceof p?g.push(x.toArray()):g.push(x)}else if(e instanceof p)for(k=
0;k<e.length();k++)x=e.get(k),x instanceof f?h&&m?g.push([x.x,x.y,x.z,x.m]):h?g.push([x.x,x.y,x.z]):m?g.push([x.x,x.y,x.m]):g.push([x.x,x.y]):x instanceof p?g.push(x.toArray()):g.push(x);return g};d.convertDictionaryToJson=function(e,h){void 0===h&&(h=!1);var m={},g;for(g in e.attributes){var k=e.attributes[g];k instanceof w&&(k=d.convertDictionaryToJson(k));h?m[g.toLowerCase()]=k:m[g]=k}return m};d.parseAttributesFromDictionary=function(e){var h={},m;for(m in e.attributes){var g=e.attributes[m];
if(n.isSimpleType(g))h[m]=g;else throw Error("Illegal Argument");}return h};d.fromJson=function(e){var h=null;null!==e.geometry&&void 0!==e.geometry&&(h=c.fromJson(e.geometry));var m={};if(null!==e.attributes&&void 0!==e.attributes)for(var g in e.attributes){var k=e.attributes[g];if(null===k)m[g]=k;else if(n.isString(k)||n.isNumber(k)||n.isBoolean(k)||n.isDate(k))m[g]=k;else throw Error("Illegal Argument");}return d.createFromGraphicLikeObject(h,m,null)};d.prototype.fullDomain=function(e,h){return null!==
this._layer&&this._layer.fields?n.getDomain(e,this._layer,this,h):null};d.prototype.subtypes=function(){return null!==this._layer&&this._layer.fields?this._layer.typeIdField?{subtypeField:this._layer.typeIdField,subtypes:this._layer.types?this._layer.types.map(function(e){return{name:e.name,code:e.id}}):[]}:null:null};d.prototype.domainValueLookup=function(e,h,m){if(null===this._layer||!this._layer.fields)return null;m=n.getDomain(e,this._layer,this,m);if(void 0===h)try{h=this.field(e)}catch(g){return null}return n.getDomainValue(m,
h)};d.prototype.gdbVersion=function(){if(null===this._layer)return"";var e=this._layer.gdbVersion;return void 0===e?"":""===e&&this._layer.capabilities&&this._layer.capabilities.isVersioned?"SDE.DEFAULT":e};d.prototype.domainCodeLookup=function(e,h,m){if(null===this._layer||!this._layer.fields)return null;if(void 0===h){try{h=this.field(e)}catch(g){return null}return h}e=n.getDomain(e,this._layer,this,m);return n.getDomainCode(e,h)};d.prototype.schema=function(){if(null===this._layer||!this._layer.fields)return null;
for(var e=[],h=0,m=this._layer.fields;h<m.length;h++)e.push(a.esriFieldToJson(m[h]));return{objectIdField:this._layer.objectIdField,globalIdField:this._layer.globalIdField,geometryType:void 0===a.layerGeometryEsriRestConstants[this._layer.geometryType]?"":a.layerGeometryEsriRestConstants[this._layer.geometryType],fields:e}};d.prototype.castAsJson=function(e){void 0===e&&(e=null);var h={attributes:{},geometry:!0===(null===e||void 0===e?void 0:e.keepGeometryType)?this.geometry():this.geometry().toJson()},
m;for(m in this.attributes){var g=this.attributes[m];void 0!==g&&(h.attributes[m]=n.castAsJson(g,e))}return h};d.prototype.castAsJsonAsync=function(e,h){void 0===e&&(e=null);void 0===h&&(h=null);return l.resolve(this.castAsJson(h))};return d}()})},"esri/arcade/featureset/support/shared":function(){var E=this&&this.__assign||function(){E=Object.assign||function(z){for(var b,w=1,p=arguments.length;w<p;w++){b=arguments[w];for(var n in b)Object.prototype.hasOwnProperty.call(b,n)&&(z[n]=b[n])}return z};
return E.apply(this,arguments)};define(["require","exports","../../polyfill/promiseUtils","../../../geometry/Extent","../../../layers/Field"],function(z,b,w,p,n){function l(f){var c=null;f.domain&&(c="range"===f.domain.type?{type:"range",range:[f.domain.minValue,f.domain.maxValue]}:{type:"codedValue",codedValues:f.domain.toJson().codedValues});return E(E({name:f.name,type:f.type,alias:f.alias},void 0!==f.length?{length:f.length}:{}),{editable:!0===f.editable,nullable:!0===f.nullable,domain:c})}function q(f){return f instanceof
Date}Object.defineProperty(b,"__esModule",{value:!0});b.stableStringify=b.extractServiceUrl=b.reduceArrayWithPromises=b.toEsriGeometryType=b.layerFieldEsriConstants=b.layerGeometryEsriRestConstants=b.layerGeometryEsriConstants=b.callback=b.errback=b.defaultMaxRecords=b.sameGeomType=b.convertLinearUnitsToCode=b.shapeExtent=b.convertSquareUnitsToCode=b.cloneAttributes=b.equalityTest=b.isDate=b.isArray=b.isNumber=b.isBoolean=b.isString=b.IdState=b.esriFieldToJson=b.cloneField=b.FeatureServiceDatabaseType=
void 0;(function(f){f[f.Standardised=0]="Standardised";f[f.StandardisedNoInterval=1]="StandardisedNoInterval";f[f.SqlServer=2]="SqlServer";f[f.Oracle=3]="Oracle";f[f.Postgres=4]="Postgres";f[f.PGDB=5]="PGDB";f[f.FILEGDB=6]="FILEGDB";f[f.NotEvaluated=7]="NotEvaluated"})(b.FeatureServiceDatabaseType||(b.FeatureServiceDatabaseType={}));b.cloneField=function(f){return new n(l(f))};b.esriFieldToJson=l;(function(f){f[f.InFeatureSet=0]="InFeatureSet";f[f.NotInFeatureSet=1]="NotInFeatureSet";f[f.Unknown=
2]="Unknown"})(b.IdState||(b.IdState={}));b.isString=function(f){return"string"===typeof f||f instanceof String};b.isBoolean=function(f){return"boolean"===typeof f};b.isNumber=function(f){return"number"===typeof f};b.isArray=function(f){return f instanceof Array};b.isDate=q;b.equalityTest=function(f,c){return f===c?!0:q(f)&&q(c)?f.getTime()===c.getTime():!1};b.cloneAttributes=function(f){var c={},a;for(a in f)c[a]=f[a];return c};b.convertSquareUnitsToCode=function(f){if(void 0===f)return null;if("number"===
typeof f)return f;switch(f.toLowerCase()){case "meters":case "meter":return 109404;case "miles":case "mile":return 109413;case "kilometers":case "kilometer":case "km":return 109414}return null};b.shapeExtent=function(f){if(null===f)return null;switch(f.type){case "polygon":case "multipoint":case "polyline":return f.getExtent();case "point":return new p({xmin:f.x,ymin:f.y,xmax:f.x,ymax:f.y,spatialReference:f.spatialReference});case "extent":return f}return null};b.convertLinearUnitsToCode=function(f){if(void 0===
f)return null;if("number"===typeof f||"number"===typeof f)return f;switch(f.toLowerCase()){case "meters":case "meter":return 9001;case "miles":case "mile":return 9035;case "kilometers":case "kilometer":case "km":return 9036}return null};b.sameGeomType=function(f,c){return f===c||"point"===f&&"esriGeometryPoint"===c||"polyline"===f&&"esriGeometryPolyline"===c||"polygon"===f&&"esriGeometryPolygon"===c||"extent"===f&&"esriGeometryEnvelope"===c||"multipoint"===f&&"esriGeometryMultipoint"===c||"point"===
c&&"esriGeometryPoint"===f||"polyline"===c&&"esriGeometryPolyline"===f||"polygon"===c&&"esriGeometryPolygon"===f||"extent"===c&&"esriGeometryEnvelope"===f||"multipoint"===c&&"esriGeometryMultipoint"===f?!0:!1};b.defaultMaxRecords=1E3;b.errback=function(f){return function(c){f.reject(c)}};b.callback=function(f,c){return function(){try{f.apply(null,arguments)}catch(a){c.reject(a)}}};b.layerGeometryEsriConstants={point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",
esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",esriGeometryEnvelope:"extent",envelope:"extent"};b.layerGeometryEsriRestConstants={point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",
esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"};b.layerFieldEsriConstants={"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger","long":"esriFieldTypeLong",single:"esriFieldTypeSingle","double":"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"eesriFieldTypeXML",
esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",
esriFieldTypeXML:"eesriFieldTypeXML"};b.toEsriGeometryType=function(f){switch(f){case "point":return"esriGeometryPoint";case "polygon":return"esriGeometryPolygon";case "multipoint":return"esriGeometryMultipoint";case "polyline":return"esriGeometryPolyline";default:return"esriGeometryPoint"}};b.reduceArrayWithPromises=function(f,c){return w.create(function(a,d){var e=w.resolve(!0);f.reduce(function(h,m,g,k){return h.then(function(x){try{return c(x,m,g,k)}catch(v){return w.reject(v)}},function(x){return w.reject(x)})},
e).then(a,d)})};b.extractServiceUrl=function(f){if(void 0===f)return"";f=f.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer");f=f.replace(/\/mapserver\/[0-9]*/i,"/MapServer");return f=f.split("?")[0]};b.stableStringify=function(f,c){c||(c={});"function"===typeof c&&(c={cmp:c});var a="boolean"===typeof c.cycles?c.cycles:!1,d=c.cmp&&function(h){return function(m){return function(g,k){return h({key:g,value:m[g]},{key:k,value:m[k]})}}}(c.cmp),e=[];return function g(m){m&&m.toJson&&"function"===typeof m.toJson&&
(m=m.toJson());if(void 0!==m){if("number"===typeof m)return isFinite(m)?""+m:"null";if("object"!==typeof m)return JSON.stringify(m);var k;if(Array.isArray(m)){var x="[";for(k=0;k<m.length;k++)k&&(x+=","),x+=g(m[k])||"null";return x+"]"}if(null===m)return"null";if(-1!==e.indexOf(m)){if(a)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON");}var v=e.push(m)-1,y=Object.keys(m).sort(d&&d(m));x="";for(k=0;k<y.length;k++){var u=y[k],t=g(m[u]);t&&(x&&(x+=","),x+=
JSON.stringify(u)+":"+t)}e.splice(v,1);return"{"+x+"}"}}(f)}})},"esri/layers/Field":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./RangeDomain ./CodedValueDomain".split(" "),function(E,z,b,w,p,n,l){E=E(null,{declaredClass:"esri.layers.Field",constructor:function(q){if(q&&z.isObject(q)&&(this.name=q.name,this.type=q.type,this.alias=q.alias,this.length=q.length,this.editable=q.editable,this.nullable=q.nullable,this.defaultValue=q.defaultValue,this.description=q.description?
JSON.parse(q.description):null,this.isViewOverride=!!q.isViewOverride,(q=q.domain)&&z.isObject(q)))switch(q.type){case "range":this.domain=new n(q);break;case "codedValue":this.domain=new l(q)}},toJson:function(){return p.fixJson({name:this.name,type:this.type,alias:this.alias,length:this.length,editable:this.editable,nullable:this.nullable,defaultValue:this.defaultValue,description:this.description?JSON.stringify(this.description):null,domain:this.domain?this.domain.toJson():null,isViewOverride:this.isViewOverride||
void 0})},toJSON:function(){return this.toJson()}});b("extend-esri")&&z.setObject("layers.Field",E,w);return E})},"esri/layers/RangeDomain":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./Domain".split(" "),function(E,z,b,w,p,n){E=E([n],{declaredClass:"esri.layers.RangeDomain",constructor:function(l){l&&z.isObject(l)&&(this.minValue=l.range[0],this.maxValue=l.range[1])},toJson:function(){var l=this.inherited(arguments);l.range=[this.minValue,this.maxValue];return p.fixJson(l)}});
b("extend-esri")&&z.setObject("layers.RangeDomain",E,w);return E})},"esri/layers/Domain":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(E,z,b,w,p){E=E(null,{declaredClass:"esri.layers.Domain",constructor:function(n){n&&z.isObject(n)&&(this.name=n.name,this.type=n.type)},toJson:function(){return p.fixJson({name:this.name,type:this.type})}});b("extend-esri")&&z.setObject("layers.Domain",E,w);return E})},"esri/layers/CodedValueDomain":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ./Domain".split(" "),
function(E,z,b,w,p,n,l){E=E([l],{declaredClass:"esri.layers.CodedValueDomain",constructor:function(q){q&&z.isObject(q)&&(this.codedValues=q.codedValues)},getName:function(q){var f;b.some(this.codedValues,function(c){c.code==q&&(f=c.name);return!!f});return f},toJson:function(){var q=this.inherited(arguments);q.codedValues=z.clone(this.codedValues);return n.fixJson(q)}});w("extend-esri")&&z.setObject("layers.CodedValueDomain",E,p);return E})},"esri/arcade/treeAnalysis":function(){define(["require",
"exports"],function(E,z){function b(u,t){return"0"!==u.min&&t.length<Number(u.min)||"*"!==u.max&&t.length>Number(u.max)?-2:1}function w(u,t,r){if(null!==r.localScope&&void 0!==r.localScope[u.toLowerCase()]){var B=r.localScope[u.toLowerCase()];if("FormulaFunction"===B.type||"any"===B.type)return void 0===B.signature&&(B.signature={min:"0",max:"*"}),b(B.signature,t)}return void 0!==r.globalScope[u.toLowerCase()]&&(B=r.globalScope[u.toLowerCase()],"FormulaFunction"===B.type||"any"===B.type)?(void 0===
B.signature&&(B.signature={min:"0",max:"*"}),b(B.signature,t)):-1}function p(u,t){if(u)for(var r=0;r<u.length;r++)n(u[r],t)}function n(u,t){if(u&&!1!==t(u))switch(u.type){case "ArrayExpression":p(u.elements,t);break;case "AssignmentExpression":case "BinaryExpression":n(u.left,t);n(u.right,t);break;case "BlockStatement":p(u.body,t);break;case "CallExpression":n(u.callee,t);p(u.arguments,t);break;case "ExpressionStatement":n(u.expression,t);break;case "ForInStatement":n(u.left,t);n(u.right,t);n(u.body,
t);break;case "ForStatement":n(u.init,t);n(u.test,t);n(u.update,t);n(u.body,t);break;case "FunctionDeclaration":n(u.id,t);p(u.params,t);n(u.body,t);break;case "IfStatement":n(u.test,t);n(u.consequent,t);n(u.alternate,t);break;case "LogicalExpression":n(u.left,t);n(u.right,t);break;case "MemberExpression":n(u.object,t);n(u.property,t);break;case "ObjectExpression":p(u.properties,t);break;case "Program":p(u.body,t);break;case "Property":n(u.key,t);n(u.value,t);break;case "ReturnStatement":n(u.argument,
t);break;case "UnaryExpression":n(u.argument,t);break;case "UpdateExpression":n(u.argument,t);break;case "VariableDeclaration":p(u.declarations,t);break;case "VariableDeclarator":n(u.id,t);n(u.init,t);break;case "TemplateLiteral":p(u.expressions,t),p(u.quasis,t)}}function l(u,t){void 0===t&&(t=!0);var r=e(u,"SYNTAX","UNREOGNISED");try{switch(u.type){case "VariableDeclarator":return"Identifier"!==u.id.type?e(u,"SYNTAX","VARIABLEMUSTHAVEIDENTIFIER"):null!==u.init?l(u.init,!1):"";case "VariableDeclaration":for(var B=
0;B<u.declarations.length;B++)if(r=l(u.declarations[B],t),""!==r)return r;return"";case "ForInStatement":r=l(u.left,t);if(""!==r)break;if("VariableDeclaration"===u.left.type){if(1<u.left.declarations.length)return e(u,"SYNTAX","ONLY1VAR");if(null!==u.left.declarations[0].init)return e(u,"SYNTAX","CANNOTDECLAREVAL")}else if("Identifier"!==u.left.type)return e(u,"SYNTAX","LEFTNOTVAR");r=l(u.right,t);if(""!==r)break;r=l(u.body,t);if(""!==r)break;return"";case "ForStatement":if(null!==u.test&&(r=l(u.test,
t),""!==r))break;if(null!==u.init&&(r=l(u.init,t),""!==r))break;if(null!==u.update&&(r=l(u.update,t),""!==r))break;if(null!==u.body&&(r=l(u.body,t),""!==r))break;return"";case "ContinueStatement":return"";case "EmptyStatement":return"";case "BreakStatement":return"";case "IfStatement":r=l(u.test,t);if(""!==r)break;if(null!==u.consequent&&(r=l(u.consequent,!1),""!==r))break;if(null!==u.alternate&&(r=l(u.alternate,!1),""!==r))break;return"";case "BlockStatement":var C=[];for(B=0;B<u.body.length;B++)"EmptyStatement"!==
u.body[B].type&&C.push(u.body[B]);u.body=C;for(B=0;B<u.body.length;B++)if(r=l(u.body[B],t),""!==r)return r;return"";case "FunctionDeclaration":return!1===t?e(u,"SYNTAX","GLOBALFUNCTIONSONLY"):"Identifier"!==u.id.type?e(u,"SYNTAX","FUNCTIONMUSTHAVEIDENTIFIER"):l(u.body,!1);case "ReturnStatement":return null!==u.argument?l(u.argument,t):"";case "UpdateExpression":return"Identifier"!==u.argument.type&&"MemberExpression"!==u.argument.type?e(u,"SYNTAX","ASSIGNMENTTOVARSONLY"):l(u.argument,t);case "AssignmentExpression":if("Identifier"!==
u.left.type&&"MemberExpression"!==u.left.type)return e(u,"SYNTAX","ASSIGNMENTTOVARSONLY");r=l(u.left,t);if(""!==r)break;switch(u.operator){case "\x3d":case "/\x3d":case "*\x3d":case "%\x3d":case "+\x3d":case "-\x3d":break;default:return e(u,"SYNTAX","OPERATORNOTRECOGNISED")}return l(u.right,!1);case "ExpressionStatement":return l(u.expression,!1);case "Identifier":r="";break;case "MemberExpression":r=l(u.object,t);if(""!==r)break;return!0===u.computed?l(u.property,t):"";case "Literal":return"";case "TemplateElement":return"";
case "CallExpression":if("Identifier"!==u.callee.type)return e(u,"SYNTAX","ONLYNODESSUPPORTED");r="";for(B=0;B<u.arguments.length;B++)if(r=l(u.arguments[B],t),""!==r)return r;return"";case "UnaryExpression":r=l(u.argument,t);break;case "BinaryExpression":r=l(u.left,t);if(""!==r)break;r=l(u.right,t);if(""!==r)break;switch(u.operator){case "|":case "\x26":case "\x3e\x3e":case "\x3c\x3c":case "\x3e\x3e":case "\x3e\x3e\x3e":case "^":case "\x3d\x3d":case "!\x3d":case "\x3c":case "\x3c\x3d":case "\x3e":case "\x3e\x3d":case "+":case "-":case "*":case "/":case "%":break;
default:return e(u,"SYNTAX","OPERATORNOTRECOGNISED")}return"";case "LogicalExpression":r=l(u.left,t);if(""!==r)break;r=l(u.right);if(""!==r)break;switch(u.operator){case "\x26\x26":case "||":break;default:return e(u,"SYNTAX","OPERATORNOTRECOGNISED")}return"";case "ArrayExpression":r="";for(B=0;B<u.elements.length&&(r=l(u.elements[B],t),""===r);B++);break;case "TemplateLiteral":r="";for(B=0;B<u.quasis.length;B++)if(r=l(u.quasis[B],t),""!==r)return r;for(B=0;B<u.expressions.length&&(r=l(u.expressions[B],
t),""===r);B++);break;case "ObjectExpression":r="";for(B=0;B<u.properties.length;B++){r="";if(null!==u.properties[B].key&&("Literal"!==u.properties[B].key.type&&"Identifier"!==u.properties[B].key.type&&(r=e(u,"SYNTAX","OBJECTPROPERTYMUSTBESTRING")),"Literal"===u.properties[B].key.type)){C=u.properties[B].key;var F="value"in C?C.value:null;"string"===typeof F||F instanceof String||(r=e(u,"SYNTAX","OBJECTPROPERTYMUSTBESTRING"))}""===r&&(r=l(u.properties[B],t));if(""!==r)break}break;case "Property":if("Literal"!==
u.key.type&&"Identifier"!==u.key.type)return e(u,"SYNTAX","ONLYLITERAL");if("Identifier"!==u.key.type&&(r=l(u.key,t),""!==r))break;r=l(u.value,t)}return r}catch(A){throw A;}}function q(u,t){var r=e(u,"SYNTAX","UNREOGNISED"),B=null,C="";try{switch(u.type){case "VariableDeclarator":var F=null===u.init?"":q(u.init,t);if(""!==F)return F;"Identifier"===u.id.type&&(null===t.localScope?t.globalScope[u.id.name.toLowerCase()]={type:"any"}:t.localScope[u.id.name.toLowerCase()]={type:"any"});return"";case "FunctionDeclaration":B=
c(u.id.name.toLowerCase(),u);C=a(u,t);if(""!==C)return C;if(null!==t.localScope)return e(u,"SYNTAX","GLOBALFUNCTIONSONLY");B.isnative=!1;t.globalScope[u.id.name.toLowerCase()]={type:"FormulaFunction",signature:[B]};return"";case "VariableDeclaration":r="";for(var A=0;A<u.declarations.length&&(r=q(u.declarations[A],t),""===r);A++);break;case "IfStatement":r=q(u.test,t);if(""!==r)break;if("AssignmentExpression"===u.test.type||"UpdateExpression"===u.test.type)return e(u.test,"SYNTAX","CANNOT_USE_ASSIGNMENT_IN_CONDITION");
if(null!==u.consequent&&(r=q(u.consequent,t),""!==r))break;if(null!==u.alternate&&(r=q(u.alternate,t),""!==r))break;return"";case "EmptyStatement":return"";case "BlockStatement":for(A=0;A<u.body.length;A++)if(r=q(u.body[A],t),""!==r)return r;return"";case "ReturnStatement":return null!==u.argument?q(u.argument,t):"";case "ForInStatement":if("VariableDeclaration"===u.left.type){if(1<u.left.declarations.length)return e(u,"SYNTAX","ONLY1VAR");if(null!==u.left.declarations[0].init)return e(u,"SYNTAX",
"CANNOTDECLAREVAL")}else if("Identifier"!==u.left.type)return e(u,"SYNTAX","LEFTNOTVAR");r=q(u.left,t);if(""!==r)break;r=q(u.right,t);if(""!==r)break;r=q(u.body,t);if(""!==r)break;return"";case "ForStatement":if(null!==u.init&&(r=q(u.init,t),""!==r))break;if(null!==u.test&&(r=q(u.test,t),""!==r))break;if(null!==u.body&&(r=q(u.body,t),""!==r))break;if(null!==u.update&&(r=q(u.update,t),""!==r))break;return"";case "BreakStatement":return"";case "ContinueStatement":return"";case "UpdateExpression":if("Identifier"!==
u.argument.type&&"MemberExpression"!==u.argument.type)return e(u,"SYNTAX","ASSIGNMENTTOVARSONLY");var D=!1;if("MemberExpression"===u.argument.type)return q(u.argument,t);null!==t.localScope&&void 0!==t.localScope[u.argument.name.toLowerCase()]&&(D=!0);void 0!==t.globalScope[u.argument.name.toLowerCase()]&&(D=!0);return!1===D?"Identifier "+u.argument.name+" has not been declared.":"";case "AssignmentExpression":if("Identifier"!==u.left.type&&"MemberExpression"!==u.left.type)return e(u,"SYNTAX","ASSIGNMENTTOVARSONLY");
var G=q(u.right,t);if(""!==G)return G;D=!1;if("MemberExpression"===u.left.type)return G=q(u.left,t),""!==G?G:"";null!==t.localScope&&void 0!==t.localScope[u.left.name.toLowerCase()]&&(D=!0);void 0!==t.globalScope[u.left.name.toLowerCase()]&&(D=!0);return!1===D?"Identifier "+u.left.name+" has not been declared.":"";case "ExpressionStatement":return q(u.expression,t);case "Identifier":var H=u.name.toLowerCase();if(null!==t.localScope&&void 0!==t.localScope[H])return"";r=void 0!==t.globalScope[H]?"":
e(u,"SYNTAX","VARIABLENOTFOUND");break;case "MemberExpression":r=q(u.object,t);if(""!==r)break;return!0===u.computed?q(u.property,t):"";case "Literal":return"";case "TemplateElement":return"";case "CallExpression":if("Identifier"!==u.callee.type)return e(u,"SYNTAX","ONLYNODESSUPPORTED");r="";for(A=0;A<u.arguments.length;A++)if(r=q(u.arguments[A],t),""!==r)return r;var L=w(u.callee.name,u.arguments,t);-1===L&&(r=e(u,"SYNTAX","NOTFOUND"));-2===L&&(r=e(u,"SYNTAX","WRONGSIGNATURE"));break;case "UnaryExpression":r=
q(u.argument,t);break;case "BinaryExpression":r=q(u.left,t);if(""!==r)break;r=q(u.right,t);if(""!==r)break;return"";case "LogicalExpression":r=q(u.left,t);if(""!==r)break;if("AssignmentExpression"===u.left.type||"UpdateExpression"===u.left.type)return e(u.left,"SYNTAX","CANNOT_USE_ASSIGNMENT_IN_CONDITION");r=q(u.right,t);if(""!==r)break;return"AssignmentExpression"===u.right.type||"UpdateExpression"===u.right.type?e(u.right,"SYNTAX","CANNOT_USE_ASSIGNMENT_IN_CONDITION"):"";case "ArrayExpression":r=
"";for(A=0;A<u.elements.length&&(r=q(u.elements[A],t),""===r);A++);break;case "TemplateLiteral":r="";for(A=0;A<u.quasis.length;A++)if(r=q(u.quasis[A],t),""!==r)return r;for(A=0;A<u.expressions.length&&(r=q(u.expressions[A],t),""===r);A++);break;case "ObjectExpression":r="";for(A=0;A<u.properties.length;A++){r="";if(null!==u.properties[A].key&&("Literal"!==u.properties[A].key.type&&"Identifier"!==u.properties[A].key.type&&(r=e(u,"SYNTAX","OBJECTPROPERTYMUSTBESTRING")),"Literal"===u.properties[A].key.type)){var aa=
u.properties[A].key,da="value"in aa?aa.value:null;"string"===typeof da||da instanceof String||(r=e(u,"SYNTAX","OBJECTPROPERTYMUSTBESTRING"))}""===r&&(r=q(u.properties[A],t));if(""!==r)break}break;case "Property":if("Literal"!==u.key.type&&"Identifier"!==u.key.type)return e(u,"SYNTAX","ONLYLITERAL");if("Identifier"!==u.key.type&&(r=q(u.key,t),""!==r))break;r=q(u.value,t)}return r}catch(ha){throw ha;}}function f(u,t){var r=!1,B=t.toLowerCase();n(u,function(C){if(r)return!1;"Identifier"===C.type&&C.name&&
C.name.toLowerCase()===B&&(r=!0);return!0});return r}function c(u,t){var r=[];if(void 0!==t.params&&null!==t.params)for(var B=0;B<t.params.length;B++)r.push("any");return{name:u,return:"any",params:r}}function a(u,t){t={globalScope:t.globalScope,localScope:{}};for(var r=0;r<u.params.length;r++)t.localScope[u.params[r].name.toLowerCase()]={type:"any"};return q(u.body,t)}function d(u,t,r,B){var C={};if(void 0===u||null===u)u={};if(void 0===r||null===r)r={};C.infinity={type:"any"};C.textformatting={type:"any"};
C.pi={type:"any"};for(var F in t)"sync"===B&&void 0!==t[F].min?C[F]={type:"FormulaFunction",signature:{min:t[F].min,max:t[F].max}}:"sync"!==B&&void 0!==t[F].fmin&&(C[F]={type:"FormulaFunction",signature:{min:t[F].fmin,max:t[F].fmax}});for(t=0;t<r.length;t++)F=r[t],C[F.name]={type:"FormulaFunction",signature:F};for(F in u)C[F]=u[F],C[F].type="any";return C}function e(u,t,r){var B="";switch(t){case "SYNTAX":B="Syntax Error: ";break;case "RUNTIME":B="Runtime Error: ";break;default:B="Syntax Error: "}try{switch(u.type){case "IfStatement":switch(r){case "CANNOT_USE_ASSIGNMENT_IN_CONDITION":B+=
" Assignments not be made in logical tests";break;case "CANNOT_USE_NONBOOLEAN_IN_CONDITION":B+=" Non Boolean used as Condition"}break;case "UpdateExpression":case "AssignmentExpression":switch(r){case "CANNOT_USE_ASSIGNMENT_IN_CONDITION":B+=" Assignments not be made in logical tests";break;case "ASSIGNMENTTOVARSONLY":B+=" Assignments can only be made to identifiers"}break;case "ExpressionStatement":B+=" Assignments can only be made to identifiers";break;case "FunctionDeclaration":switch(r){case "GLOBALFUNCTIONSONLY":B+=
" Functions cannot be declared as variables";break;case "FUNCTIONMUSTHAVEIDENTIFIER":B+=" Function Definition must have an identifier"}break;case "VariableDeclaration":B+=" Only 1 variable can be declared at a time";break;case "VariableDeclarator":switch(r){case "FUNCTIONVARIABLEDECLARATOR":B+=" Functions cannot be declared as variables";break;case "VARIABLEMUSTHAVEIDENTIFIER":B+=" Variable Definition must have an identifier"}break;case "Identifier":B+=" Identifier Not Found. ";B+=u.name;break;case "ObjectExpression":switch(r){case "OBJECTPROPERTYMUSTBESTRING":B+=
" Property name must be a string"}break;case "ForStatement":switch(r){case "CANNOT_USE_NONBOOLEAN_IN_CONDITION":B+=" Non Boolean used as Condition"}break;case "ForInStatement":switch(r){case "ONLY1VAR":B+=" Can only declare 1 var for use with IN";break;case "CANNOTDECLAREVAL":B+=" Can only declare value for use with IN";break;case "LEFTNOVAR":B+="Must provide a variable to iterate with.";break;case "VARIABLENOTDECLARED":B+="Variable must be declared before it is used..";break;case "CANNOTITERATETHISTYPE":B+=
"This type cannot be used in an IN loop"}break;case "MemberExpression":switch(r){case "PROPERTYNOTFOUND":B+="Cannot find member property. ";B+=!1===u.computed?"Identifier"===u.property.type?u.property.name:"":"";break;case "OUTOFBOUNDS":B+="Out of Bounds. ";B+=!1===u.computed?"Identifier"===u.property.type?u.property.name:"":"";break;case "NOTFOUND":B+="Cannot call member method on null. ";B+=!1===u.computed?"Identifier"===u.property.type?u.property.name:"":"";break;case "INVALIDTYPE":B+="Cannot call member property on object of this type. ",
B+=!1===u.computed?"Identifier"===u.property.type?u.property.name:"":""}break;case "Property":switch(r){case "ONLYLITERAL":B+="Property names must be literals or identifiers"}break;case "Literal":break;case "CallExpression":switch(r){case "WRONGSIGNATURE":B+="Function signature does not match: ";B+="Identifier"===u.callee.type?u.callee.name:"";break;case "ONLYNODESUPPORTED":B+="Functions must be declared.";B+="Identifier"===u.callee.type?u.callee.name:"";break;case "NOTAFUNCTION":B+="Not a Function: ";
B+="Identifier"===u.callee.type?u.callee.name:"";break;case "NOTFOUND":B+="Function Not Found: "+("Identifier"===u.callee.type?u.callee.name:"")}break;case "UnaryExpression":switch(r){case "NOTSUPPORTEDUNARYOPERATOR":B+="Operator "+u.operator+" not allowed in this context. Only ! can be used with boolean, and - with a number";break;case "NOTSUPPORTEDTYPE":B+="Unary operator "+u.operator+" cannot be used with this argument."}case "BinaryExpression":switch(r){case "OPERATORNOTRECOGNISED":B+="Binary Operator not recognised "+
u.operator}break;case "LogicalExpression":switch(r){case "ONLYBOOLEAN":B+="Operator "+u.operator+" cannot be used. Only || or \x26\x26 are allowed values";break;case "ONLYORORAND":B+="Logical Expression "+u.operator+" being applied to parameters that are not boolean."}break;case "ArrayExpression":switch(r){case "FUNCTIONCONTEXTILLEGAL":B+=" Cannot Put Function inside Array."}break;default:B+="Expression contains unrecognised code structures."}}catch(C){throw C;}return B}function h(u,t,r){return{line:u.loc.start.line,
character:u.loc.start.column,reason:e(u,t,r)}}function m(u,t,r,B){t={globalScope:t.globalScope,localScope:{}};for(var C=0;C<u.params.length;C++)t.localScope[u.params[C].name.toLowerCase()]={type:"any"};g(u.body,t,r,B,!1)}function g(u,t,r,B,C){void 0===C&&(C=!0);if(null===u)throw Error("Unnexpexted Expression Syntax");var F=null;try{switch(u.type){case "VariableDeclarator":"Identifier"!==u.id.type?B.push(h(u,"SYNTAX","VARIABLEMUSTHAVEIDENTIFIER")):(u.id.name.toLowerCase(),null===t.localScope?t.globalScope[u.id.name.toLowerCase()]=
{type:"any"}:t.localScope[u.id.name.toLowerCase()]={type:"any"});null!==u.init&&g(u.init,t,r,B,C);break;case "FunctionDeclaration":!1===C&&B.push(h(u,"SYNTAX","GLOBALFUNCTIONSONLY"));"Identifier"!==u.id.type&&B.push(h(u,"SYNTAX","FUNCTIONMUSTHAVEIDENTIFIER"));F=c("",u);m(u,t,r,B);null!==t.localScope&&B.push(h(u,"SYNTAX","GLOBALFUNCTIONSONLY"));F.isnative=!1;"Identifier"===u.id.type&&(t.globalScope[u.id.name.toLowerCase()]={type:"FormulaFunction",signature:[F]});break;case "VariableDeclaration":for(var A=
0;A<u.declarations.length;A++)g(u.declarations[A],t,r,B,C);break;case "IfStatement":null!==u.test&&(g(u.test,t,r,B,C),"AssignmentExpression"!==u.test.type&&"UpdateExpression"!==u.test.type||B.push(h(u.test,"SYNTAX","CANNOT_USE_ASSIGNMENT_IN_CONDITION")));null!==u.consequent&&g(u.consequent,t,r,B,C);null!==u.alternate&&g(u.alternate,t,r,B,C);break;case "EmptyStatement":break;case "BlockStatement":if(null!==u.body)for(A=0;A<u.body.length;A++)g(u.body[A],t,r,B,C);break;case "ReturnStatement":null!==
u.argument&&g(u.argument,t,r,B,C);break;case "ForInStatement":"VariableDeclaration"===u.left.type?(1<u.left.declarations.length&&B.push(h(u,"SYNTAX","ONLY1VAR")),null!==u.left.declarations[0].init&&B.push(h(u,"SYNTAX","CANNOTDECLAREVAL"))):"Identifier"!==u.left.type&&B.push(h(u,"SYNTAX","LEFTNOTVAR"));g(u.left,t,r,B,C);g(u.right,t,r,B,C);g(u.body,t,r,B,C);break;case "ForStatement":null!==u.init&&g(u.init,t,r,B,C);null!==u.test&&g(u.test,t,r,B,C);null!==u.body&&g(u.body,t,r,B,C);null!==u.update&&g(u.update,
t,r,B,C);break;case "BreakStatement":break;case "ContinueStatement":break;case "UpdateExpression":if("Identifier"!==u.argument.type&&"MemberExpression"!==u.argument.type)B.push(h(u,"SYNTAX","ASSIGNMENTTOVARSONLY"));else{if("Identifier"===u.argument.type){var D=!1;!1===r&&(null!==t.localScope&&void 0!==t.localScope[u.argument.name.toLowerCase()]&&(D=!0),void 0!==t.globalScope[u.argument.name.toLowerCase()]&&(D=!0),!1===D&&B.push({line:null===u?0:u.loc.start.line,character:null===u?0:u.loc.start.column,
reason:"Identifier "+u.argument.name+" has not been declared."}))}"MemberExpression"===u.argument.type&&g(u.argument,t,r,B,C)}break;case "AssignmentExpression":"Identifier"!==u.left.type&&"MemberExpression"!==u.left.type&&B.push(h(u,"SYNTAX","ASSIGNMENTTOVARSONLY"));switch(u.operator){case "\x3d":case "/\x3d":case "*\x3d":case "%\x3d":case "+\x3d":case "-\x3d":break;default:B.push(h(u,"SYNTAX","OPERATORNOTRECOGNISED"))}g(u.right,t,r,B,C);D=!1;"Identifier"===u.left.type&&(null!==t.localScope&&void 0!==
t.localScope[u.left.name.toLowerCase()]&&(D=!0),void 0!==t.globalScope[u.left.name.toLowerCase()]&&(D=!0),!1===r&&!1===D&&B.push({line:null===u?0:u.loc.start.line,character:null===u?0:u.loc.start.column,reason:"Identifier "+u.left.name+" has not been declared."}));"MemberExpression"===u.left.type&&g(u.left,t,r,B,C);break;case "ExpressionStatement":g(u.expression,t,r,B,C);break;case "Identifier":var G=u.name.toLowerCase();if(null!==t.localScope&&void 0!==t.localScope[G]||void 0!==t.globalScope[G])break;
!1===r&&B.push(h(u,"SYNTAX","VARIABLENOTFOUND"));break;case "MemberExpression":g(u.object,t,r,B,C);!0===u.computed&&g(u.property,t,r,B,C);break;case "Literal":break;case "TemplateElement":break;case "CallExpression":"Identifier"!==u.callee.type&&B.push(h(u,"SYNTAX","ONLYNODESSUPPORTED"));for(A=0;A<u.arguments.length;A++)g(u.arguments[A],t,r,B,C);if("Identifier"===u.callee.type){var H=w(u.callee.name,u.arguments,t);!1===r&&-1===H&&B.push(h(u,"SYNTAX","NOTFOUND"));-2===H&&B.push(h(u,"SYNTAX","WRONGSIGNATURE"))}break;
case "UnaryExpression":g(u.argument,t,r,B,C);break;case "BinaryExpression":g(u.left,t,r,B,C);g(u.right,t,r,B,C);switch(u.operator){case "\x3d\x3d":case "!\x3d":case "\x3c":case "\x3c\x3d":case "\x3e":case "\x3e\x3d":case "+":case "-":case "*":case "/":case "%":case "\x26":case "|":case "^":case "\x3c\x3c":case "\x3e\x3e":case "\x3e\x3e\x3e":break;default:B.push(h(u,"SYNTAX","OPERATORNOTRECOGNISED"))}break;case "LogicalExpression":switch(u.operator){case "\x26\x26":case "||":break;default:B.push(h(u,
"SYNTAX","OPERATORNOTRECOGNISED"))}g(u.left,t,r,B,C);"AssignmentExpression"!==u.left.type&&"UpdateExpression"!==u.left.type||B.push(h(u,"SYNTAX","CANNOT_USE_ASSIGNMENT_IN_CONDITION"));g(u.right,t,r,B,C);"AssignmentExpression"!==u.right.type&&"UpdateExpression"!==u.right.type||B.push(h(u,"SYNTAX","CANNOT_USE_ASSIGNMENT_IN_CONDITION"));break;case "ArrayExpression":for(A=0;A<u.elements.length;A++)g(u.elements[A],t,r,B,C);break;case "TemplateLiteral":for(A=0;A<u.quasis.length;A++)g(u.quasis[A],t,r,B,
C);for(A=0;A<u.expressions.length;A++)g(u.expressions[A],t,r,B,C);break;case "ObjectExpression":for(A=0;A<u.properties.length;A++)g(u.properties[A],t,r,B,C);break;case "Property":"Literal"!==u.key.type&&"Identifier"!==u.key.type&&B.push(h(u,"SYNTAX","ONLYLITERAL"));"Literal"===u.key.type&&g(u.key,t,r,B,C);g(u.value,t,r,B,C);break;default:B.push(h(u,"SYNTAX","UNRECOGNISED"))}}catch(L){B.push({line:null===u?0:u.loc.start.line,character:null===u?0:u.loc.start.column,reason:"Unnexpected Syntax"})}}function k(u){var t=
[];n(u,function(r){"CallExpression"===r.type&&"Identifier"===r.callee.type&&t.push(r.callee.name.toLowerCase());return!0});return t}Object.defineProperty(z,"__esModule",{value:!0});z.scriptUsesFeatureSet=z.findScriptDependencies=z.findFunctionCalls=z.checkScript=z.extractAllIssues=z.extractAllIssuesInFunction=z.makeError=z.nodeErrorMessage=z.validateLanguage=z.validateScript=z.constructGlobalScope=z.validateFunction=z.extractFunctionDeclaration=z.findExpectedFieldLiterals=z.findFieldLiterals=z.referencesFunction=
z.referencesMember=z.testValidityOfExpression=z.validateLanguageNode=z.walk=z.findFunction=z.checkFunctionSignature=z.addFunctionDeclaration=z.functionDecls=void 0;z.functionDecls={all:{min:"2",max:"2"},none:{min:"2",max:"2"},any:{min:"2",max:"2"},reduce:{min:"2",max:"3"},map:{min:"2",max:"2"},filter:{min:"2",max:"2"},fromcodepoint:{min:"1",max:"*"},fromcharcode:{min:"1",max:"*"},tocodepoint:{min:"1",max:"2"},tocharcode:{min:"1",max:"2"},concatenate:{min:"0",max:"*"},expects:{min:"1",max:"*"},getfeatureset:{min:"1",
max:"2"},week:{min:"1",max:"2"},fromjson:{min:"1",max:"1"},length3d:{min:"1",max:"2"},tohex:{min:"1",max:"1"},hash:{min:"1",max:"1"},isoweek:{min:"1",max:"1"},isoweekday:{min:"1",max:"1"},isomonth:{min:"1",max:"1"},isoyear:{min:"1",max:"1"},resize:{min:"2",max:"3"},slice:{min:"0",max:"*"},splice:{min:"0",max:"*"},push:{min:"2",max:"2"},pop:{min:"1",max:"1"},includes:{min:"2",max:"2"},array:{min:"1",max:"2"},front:{min:"1",max:"1"},back:{min:"1",max:"1"},insert:{min:"3",max:"3"},erase:{min:"2",max:"2"},
split:{min:"2",max:"4"},guid:{min:"0",max:"1"},today:{min:"0",max:"0"},angle:{min:"2",max:"3"},bearing:{min:"2",max:"3"},urlencode:{min:"1",max:"1"},now:{min:"0",max:"0"},timestamp:{min:"0",max:"0"},day:{min:"1",max:"1"},month:{min:"1",max:"1"},year:{min:"1",max:"1"},hour:{min:"1",max:"1"},second:{min:"1",max:"1"},millisecond:{min:"1",max:"1"},minute:{min:"1",max:"1"},weekday:{min:"1",max:"1"},toutc:{min:"1",max:"1"},tolocal:{min:"1",max:"1"},date:{min:"0",max:"7"},datediff:{min:"2",max:"3"},dateadd:{min:"2",
max:"3"},trim:{min:"1",max:"1"},text:{min:"1",max:"2"},left:{min:"2",max:"2"},right:{min:"2",max:"2"},mid:{min:"2",max:"3"},upper:{min:"1",max:"1"},proper:{min:"1",max:"2"},lower:{min:"1",max:"1"},find:{min:"2",max:"3"},iif:{min:"3",max:"3"},decode:{min:"2",max:"*"},when:{min:"2",max:"*"},defaultvalue:{min:"2",max:"2"},isempty:{min:"1",max:"1"},domaincode:{min:"2",max:"4"},domainname:{min:"2",max:"4"},polygon:{min:"1",max:"1"},point:{min:"1",max:"1"},polyline:{min:"1",max:"1"},extent:{min:"1",max:"1"},
multipoint:{min:"1",max:"1"},ringisclockwise:{min:"1",max:"1"},geometry:{min:"1",max:"1"},count:{min:"0",max:"*"},number:{min:"1",max:"2"},acos:{min:"1",max:"1"},asin:{min:"1",max:"1"},atan:{min:"1",max:"1"},atan2:{min:"2",max:"2"},ceil:{min:"1",max:"2"},floor:{min:"1",max:"2"},round:{min:"1",max:"2"},cos:{min:"1",max:"1"},exp:{min:"1",max:"1"},log:{min:"1",max:"1"},min:{min:"0",max:"*"},constrain:{min:"3",max:"3"},console:{min:"0",max:"*"},max:{min:"0",max:"*"},pow:{min:"2",max:"2"},random:{min:"0",
max:"0"},sqrt:{min:"1",max:"1"},sin:{min:"1",max:"1"},tan:{min:"1",max:"1"},abs:{min:"1",max:"1"},isnan:{min:"1",max:"1"},stdev:{min:"0",max:"*"},average:{min:"0",max:"*"},mean:{min:"0",max:"*"},sum:{min:"0",max:"*"},variance:{min:"0",max:"*"},distinct:{min:"0",max:"*"},first:{min:"1",max:"1"},top:{min:"2",max:"2"},boolean:{min:"1",max:"1"},dictionary:{min:"0",max:"*"},typeof:{min:"1",max:"1"},reverse:{min:"1",max:"1"},replace:{min:"3",max:"4"},sort:{min:"1",max:"2"},feature:{min:"1",max:"*"},haskey:{min:"2",
max:"2"},indexof:{min:"2",max:"2"},disjoint:{min:"2",max:"2"},intersects:{min:"2",max:"2"},touches:{min:"2",max:"2"},crosses:{min:"2",max:"2"},within:{min:"2",max:"2"},contains:{min:"2",max:"2"},overlaps:{min:"2",max:"2"},equals:{min:"2",max:"2"},relate:{min:"3",max:"3"},intersection:{min:"2",max:"2"},union:{min:"1",max:"2"},difference:{min:"2",max:"2"},symmetricdifference:{min:"2",max:"2"},clip:{min:"2",max:"2"},cut:{min:"2",max:"2"},area:{min:"1",max:"2"},areageodetic:{min:"1",max:"2"},length:{min:"1",
max:"2"},lengthgeodetic:{min:"1",max:"2"},distancegeodetic:{min:"2",max:"3"},distance:{min:"2",max:"3"},densify:{min:"2",max:"3"},densifygeodetic:{min:"2",max:"3"},generalize:{min:"2",max:"4"},buffer:{min:"2",max:"3"},buffergeodetic:{min:"2",max:"3"},offset:{min:"2",max:"6"},rotate:{min:"2",max:"3"},issimple:{min:"1",max:"1"},simplify:{min:"1",max:"1"},centroid:{min:"1",max:"1"},isselfintersecting:{min:"1",max:"1"},multiparttosinglepart:{min:"1",max:"1"},setgeometry:{min:"2",max:"2"},portal:{min:"1",
max:"1"},getuser:{min:"1",max:"2"},subtypes:{min:"1",max:"1"},subtypecode:{min:"1",max:"1"},subtypename:{min:"1",max:"1"},domain:{min:"2",max:"3"},convertdirection:{min:"3",max:"3"},schema:{min:"1",max:"1"}};for(var x in z.functionDecls)z.functionDecls[x].fmin=z.functionDecls[x].min,z.functionDecls[x].fmax=z.functionDecls[x].max;var v="featureset getuser featuresetbyid featuresetbyname featuresetbyassociation featuresetbyrelationshipname featuresetbyurl getfeatureset attachments featuresetbyportalitem".split(" "),
y="disjoint intersects touches crosses within contains overlaps equals relate intersection union difference symmetricdifference clip cut area areageodetic length length3d lengthgeodetic distance distancegeodetic densify densifygeodetic generalize buffer buffergeodetic offset rotate issimple simplify multiparttosinglepart".split(" ");z.addFunctionDeclaration=function(u,t){var r=z.functionDecls[u.name.toLowerCase()];void 0===r?"sync"===t?z.functionDecls[u.name.toLowerCase()]={min:u.min,max:u.max}:z.functionDecls[u.name.toLowerCase()]=
{fmin:u.min,fmax:u.max}:"sync"===t?(r.min=u.min,r.max=u.max):(r.fmin=u.min,r.fmax=u.max)};z.checkFunctionSignature=b;z.findFunction=w;z.walk=n;z.validateLanguageNode=l;z.testValidityOfExpression=q;z.referencesMember=f;z.referencesFunction=function(u,t){var r=!1,B=t.toLowerCase();n(u,function(C){return r?!1:"CallExpression"===C.type&&"Identifier"===C.callee.type&&C.callee.name&&C.callee.name.toLowerCase()===B?(r=!0,!1):!0});return r};z.findFieldLiterals=function(u){var t=[];n(u,function(r){if("MemberExpression"!==
r.type||"Identifier"!==r.object.type)return!0;!1===r.computed&&r.object&&r.object.name&&r.property&&"Identifier"===r.property.type&&r.property.name?t.push(r.object.name.toLowerCase()+"."+r.property.name.toLowerCase()):r.object&&r.object.name&&r.property&&"Literal"===r.property.type&&"string"===typeof r.property.value&&t.push(r.object.name.toLowerCase()+"."+r.property.value.toString().toLowerCase());return!1});return t};z.findExpectedFieldLiterals=function(u){var t=[];n(u,function(r){if("CallExpression"===
r.type&&"Identifier"===r.callee.type&&"expects"===r.callee.name.toLowerCase()){for(var B="",C=0;C<(r.arguments||[]).length;C++)if(0===C)"Identifier"===r.arguments[C].type&&(B=r.arguments[C].name.toLowerCase());else{var F;if(F=B&&"Literal"===r.arguments[C].type)F=r.arguments[C].value,F="string"===typeof F||F instanceof String;F&&t.push(B+"."+r.arguments[C].value.toLowerCase())}return!1}if("MemberExpression"!==r.type||"Identifier"!==r.object.type)return!0;!1===r.computed&&r.object&&r.object.name&&r.property&&
"Identifier"===r.property.type&&r.property.name?t.push(r.object.name.toLowerCase()+"."+r.property.name.toLowerCase()):r.object&&r.object.name&&r.property&&"Literal"===r.property.type&&"string"===typeof r.property.value&&t.push(r.object.name.toLowerCase()+"."+r.property.value.toString().toLowerCase());return!1});return t};z.extractFunctionDeclaration=c;z.validateFunction=a;z.constructGlobalScope=d;z.validateScript=function(u,t,r,B){void 0===r&&(r="async");void 0===B&&(B=z.functionDecls);t={globalScope:d(t.vars,
B,t.customFunctions,r),localScope:null};return q(u.body[0].body,t)};z.validateLanguage=function(u){return"BlockStatement"!==u.body[0].body.type?"Invalid formula content.":l(u.body[0].body)};z.nodeErrorMessage=e;z.makeError=h;z.extractAllIssuesInFunction=m;z.extractAllIssues=g;z.checkScript=function(u,t,r,B,C){void 0===B&&(B="async");void 0===C&&(C=z.functionDecls);var F=[];if("BlockStatement"!==u.body[0].body.type)return[{line:0,character:0,reason:"Invalid Body"}];if(null===t||void 0===t)t={vars:{},
customFunctions:[]};t={globalScope:d(t.vars,C,t.customFunctions,B),localScope:null};try{g(u.body[0].body,t,r,F)}catch(A){}return F};z.findFunctionCalls=k;z.findScriptDependencies=function(u,t){void 0===t&&(t=[]);var r=null;if(void 0===u.usesFeatureSet){null===r&&(r=k(u));u.usesFeatureSet=!1;for(var B=0;B<r.length;B++)-1<v.indexOf(r[B])&&(u.usesFeatureSet=!0,u.isAsync=!0);if(!1===u.usesFeatureSet&&t&&0<t.length)for(B=0;B<t.length;B++)if(f(u,t[B])){u.usesFeatureSet=!0;u.isAsync=!0;break}}if(void 0===
u.usesGeometry)for(u.usesGeometry=!1,null===r&&(r=k(u)),B=0;B<r.length;B++)-1<y.indexOf(r[B])&&(u.usesGeometry=!0)};z.scriptUsesFeatureSet=function(u){u=k(u);for(var t=0;t<u.length;t++)if(-1<v.indexOf(u[t]))return!0;return!1}})},"esri/arcade/functions/array":function(){define("require exports ../FunctionWrapper ../ImmutableArray ../languageUtils ../polyfill/promiseUtils".split(" "),function(E,z,b,w,p,n){Object.defineProperty(z,"__esModule",{value:!0});z.registerFunctions=void 0;z.registerFunctions=
function(l){function q(c,a){if(a instanceof b)return l.arcadeCustomFunctionHandler(a);if(a instanceof p.NativeFunction)return function(){for(var d=[],e=0;e<arguments.length;e++)d[e]=arguments[e];return a.fn(c,{preparsed:!0,arguments:d})};if(a instanceof p.SizzleFunction)return function(){for(var d=[],e=0;e<arguments.length;e++)d[e]=arguments[e];if(d.length!==a.paramCount)throw Error("Invalid parameters");return a.fn.apply(a,d)};throw Error("Invalid Parameter");}function f(c){if(c instanceof w)return c.toArray();
if(p.isArray(c))return c;throw Error("Invalid Parameter");}l.functions.array=function(c,a){return l.standardFunction(c,a,function(d,e,h){p.pcCheck(h,1,2);d=p.toNumber(h[0]);if(isNaN(d)||!1===p.isInteger(d))throw Error("Invalid Parameter");h=p.defaultUndefined(h[1],null);d=Array(d);d.fill(h);return d})};l.functions.front=function(c,a){return l.standardFunction(c,a,function(d,e,h){p.pcCheck(h,1,1);if(p.isImmutableArray(h[0])){if(0>=h[0].length())throw Error("Array is empty");return h[0].get(0)}if(p.isArray(h[0])){if(0>=
h[0].length)throw Error("Array is empty");return h[0][0]}throw Error("Invalid Parameter");})};l.functions.back=function(c,a){return l.standardFunction(c,a,function(d,e,h){p.pcCheck(h,1,1);if(p.isImmutableArray(h[0])){if(0>=h[0].length())throw Error("Array is empty");return h[0].get(h[0].length()-1)}if(p.isArray(h[0])){if(0>=h[0].length)throw Error("Array is empty");return h[0][h[0].length-1]}throw Error("Invalid Parameter");})};l.functions.push=function(c,a){return l.standardFunction(c,a,function(d,
e,h){p.pcCheck(h,1,2);if(p.isArray(h[0]))return h[0][h[0].length]=h[1],h[0].length;throw Error("Invalid Parameter");})};l.functions.pop=function(c,a){return l.standardFunction(c,a,function(d,e,h){p.pcCheck(h,1,1);if(p.isArray(h[0])){if(0>=h[0].length)throw Error("Array is empty");d=h[0][h[0].length-1];--h[0].length;return d}throw Error("Invalid Parameter");})};l.functions.erase=function(c,a){return l.standardFunction(c,a,function(d,e,h){p.pcCheck(h,2,2);if(p.isArray(h[0])){d=p.toNumber(h[1]);if(isNaN(d)||
!1===p.isInteger(d))throw Error("Invalid Parameter");h=h[0];if(0>=h.length)throw Error("Array is empty");0>d&&(d=h.length+d);if(0>d)throw Error("Element not found");if(d>=h.length)throw Error("Index is greater than array");h.splice(d,1);return p.voidOperation}throw Error("Invalid Parameter");})};l.functions.insert=function(c,a){return l.standardFunction(c,a,function(d,e,h){p.pcCheck(h,3,3);if(p.isArray(h[0])){d=p.toNumber(h[1]);if(isNaN(d)||!1===p.isInteger(d))throw Error("Invalid Parameter");e=h[2];
h=h[0];if(d>h.length)throw Error("Index is greater than array");if(0>d&&d<-1*h.length)throw Error("Index is greater than array");if(d===h.length)return h[d]=e,p.voidOperation;h.splice(d,0,e);return p.voidOperation}throw Error("Invalid Parameter");})};l.functions.resize=function(c,a){return l.standardFunction(c,a,function(d,e,h){p.pcCheck(h,2,3);if(p.isArray(h[0])){e=p.toNumber(h[1]);if(isNaN(e)||!1===p.isInteger(e))throw Error("Invalid Parameter");if(0>e)throw Error("Size cannot be negative");d=p.defaultUndefined(h[2],
null);h=h[0];if(h.length>=e)return h.length=e,p.voidOperation;var m=h.length;h.length=e;for(e=m;e<h.length;e++)h[e]=d;return p.voidOperation}throw Error("Invalid Parameter");})};l.functions.includes=function(c,a){return l.standardFunction(c,a,function(d,e,h){p.pcCheck(h,2,2);if(p.isArray(h[0])){var m=h[1];d=h[0];return-1<d.findIndex(function(k){return p.equalityTest(k,m)})?!0:!1}if(p.isImmutableArray(h[0])){var g=h[1];d=h[0].toArray();return-1<d.findIndex(function(k){return p.equalityTest(k,g)})?
!0:!1}throw Error("Invalid Parameter");})};l.functions.slice=function(c,a){return l.standardFunction(c,a,function(d,e,h){p.pcCheck(h,1,3);if(p.isArray(h[0])){d=p.toNumber(p.defaultUndefined(h[1],0));e=p.toNumber(p.defaultUndefined(h[2],h[0].length));if(isNaN(d)||!1===p.isInteger(d))throw Error("Invalid Parameter");if(isNaN(e)||!1===p.isInteger(e))throw Error("Invalid Parameter");var m=h[0];return m.slice(d,e)}if(p.isImmutableArray(h[0])){m=h[0];d=p.toNumber(p.defaultUndefined(h[1],0));e=p.toNumber(p.defaultUndefined(h[2],
m.length()));if(isNaN(d)||!1===p.isInteger(d))throw Error("Invalid Parameter");if(isNaN(e)||!1===p.isInteger(e))throw Error("Invalid Parameter");return m.toArray().slice(d,e)}throw Error("Invalid Parameter");})};l.functions.splice=function(c,a){return l.standardFunction(c,a,function(d,e,h){d=[];for(e=0;e<h.length;e++)p.isArray(h[e])?d.push.apply(d,h[e]):p.isImmutableArray(h[e])?d.push.apply(d,h[e].toArray()):d.push(h[e]);return d})};"sync"===l.mode&&(l.functions.any=function(c,a){return l.standardFunction(c,
a,function(d,e,h){p.pcCheck(h,2,2);d=q(c,h[1]);e=0;for(h=f(h[0]);e<h.length;e++){var m=d(h[e]);if(p.isBoolean(m)&&!0===m)return!0}return!1})},l.functions.all=function(c,a){return l.standardFunction(c,a,function(d,e,h){p.pcCheck(h,2,2);d=q(c,h[1]);e=0;for(h=f(h[0]);e<h.length;e++)if(!0!==d(h[e]))return!1;return!0})},l.functions.none=function(c,a){return l.standardFunction(c,a,function(d,e,h){p.pcCheck(h,2,2);d=q(c,h[1]);e=0;for(h=f(h[0]);e<h.length;e++)if(!0===d(h[e]))return!1;return!0})},l.functions.reduce=
function(c,a){return l.standardFunction(c,a,function(d,e,h){p.pcCheck(h,2,3);var m=q(c,h[1]);d=f(h[0]);return 2===h.length?0===d.length?null:d.reduce(function(g,k){g=m(g,k);return g=void 0!==g&&g!==p.voidOperation?g:null}):d.reduce(function(g,k){g=m(g,k);return g=void 0!==g&&g!==p.voidOperation?g:null},h[2])})},l.functions.map=function(c,a){return l.standardFunction(c,a,function(d,e,h){p.pcCheck(h,2,2);d=q(c,h[1]);e=[];var m=0;for(h=f(h[0]);m<h.length;m++){var g=d(h[m]);void 0!==g&&g!==p.voidOperation?
e.push(g):e.push(null)}return e})},l.functions.filter=function(c,a){return l.standardFunction(c,a,function(d,e,h){p.pcCheck(h,2,2);d=q(c,h[1]);e=[];var m=0;for(h=f(h[0]);m<h.length;m++){var g=h[m];!0===d(g)&&e.push(g)}return e})});"async"===l.mode&&(l.functions.any=function(c,a){return l.standardFunctionAsync(c,a,function(d,e,h){p.pcCheck(h,2,2);var m=q(c,h[1]),g=!1;return f(h[0]).reduce(function(k,x,v){return k.then(function(y){0<v&&!0===y&&(g=!0);if(!0===g)return n.resolve(!0);y=m(x);return n.isPromiseLike(y)?
y:n.resolve(y)})},Promise.resolve(!1)).then(function(k){!0===k&&(g=!0);return g})})},l.functions.all=function(c,a){return l.standardFunctionAsync(c,a,function(d,e,h){p.pcCheck(h,2,2);var m=q(c,h[1]),g=!0;return f(h[0]).reduce(function(k,x,v){return k.then(function(y){0<v&&!0!==y&&(g=!1);if(!1===g)return n.resolve(!1);y=m(x);return n.isPromiseLike(y)?y:n.resolve(y)})},Promise.resolve(!0)).then(function(k){!0!==k&&(g=!1);return g})})},l.functions.none=function(c,a){return l.standardFunctionAsync(c,
a,function(d,e,h){p.pcCheck(h,2,2);var m=q(c,h[1]),g=!0;return f(h[0]).reduce(function(k,x,v){return k.then(function(y){0<v&&!0===y&&(g=!1);if(!1===g)return n.resolve(!0);y=m(x);return n.isPromiseLike(y)?y:n.resolve(y)})},Promise.resolve(!1)).then(function(k){!0===k&&(g=!1);return g})})},l.functions.filter=function(c,a){return l.standardFunctionAsync(c,a,function(d,e,h){p.pcCheck(h,2,2);var m=q(c,h[1]),g=f(h[0]),k=[];return g.reduce(function(x,v,y){return x.then(function(u){0<y&&!0===u&&k.push(g[y-
1]);u=m(v);return n.isPromiseLike(u)?u:n.resolve(u)})},Promise.resolve(!1)).then(function(x){!0===x&&0<g.length&&k.push(g[g.length-1]);return k})})},l.functions.reduce=function(c,a){return l.standardFunctionAsync(c,a,function(d,e,h){p.pcCheck(h,2,3);var m=q(c,h[1]);d=f(h[0]);e=null;if(2<h.length)h=p.defaultUndefined(h[2],null),e=d.reduce(function(g,k){return g.then(function(x){if(void 0===x||x===p.voidOperation)x=null;x=m(x,k);return n.isPromiseLike(x)?x:n.resolve(x)})},Promise.resolve(h));else{if(0===
d.length)return null;e=d.reduce(function(g,k,x){return 1>=x?(g=m(g,k),n.isPromiseLike(g)?g:n.resolve(g)):g.then(function(v){if(void 0===v||v===p.voidOperation)v=null;v=m(v,k);return n.isPromiseLike(v)?v:n.resolve(v)})})}return e.then(function(g){return void 0!==g&&g!==p.voidOperation?g:null})})},l.functions.map=function(c,a){return l.standardFunctionAsync(c,a,function(d,e,h){p.pcCheck(h,2,2);var m=q(c,h[1]),g=f(h[0]),k=[];return g.reduce(function(x,v,y){return x.then(function(u){0<y&&(void 0!==u&&
u!==p.voidOperation?k.push(u):k.push(null));u=m(v);return n.isPromiseLike(u)?u:n.resolve(u)})},Promise.resolve()).then(function(x){0<g.length&&(void 0!==x&&x!==p.voidOperation?k.push(x):k.push(null));return k})})})}})},"esri/arcade/functions/date":function(){define(["require","exports","../languageUtils","../../libs/luxon/luxon","dojo/_base/kernel"],function(E,z,b,w,p){function n(a){a=new Date(a.getTime());var d=a.getFullYear(),e=new Date(0);e.setFullYear(d+1,0,4);e.setHours(0,0,0,0);e=l(e);var h=
new Date(0);h.setFullYear(d,0,4);h.setHours(0,0,0,0);h=l(h);return a.getTime()>=e.getTime()?d+1:a.getTime()>=h.getTime()?d:d-1}function l(a){a=new Date(a.getTime());var d=a.getDay();d=(1>d?7:0)+d-1;a.setDate(a.getDate()-d);a.setHours(0,0,0,0);return a}function q(a){return null===a?a:isNaN(a.getTime())?null:a}Object.defineProperty(z,"__esModule",{value:!0});z.registerFunctions=void 0;var f=[0,31,59,90,120,151,181,212,243,273,304,334],c=[0,31,60,91,121,152,182,213,244,274,305,335];z.registerFunctions=
function(a,d){a.today=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,0,0);m=new Date;m.setHours(0,0,0,0);return m})};a.now=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,0,0);return new Date})};a.timestamp=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,0,0);m=new Date;return m=new Date(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate(),m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds())})};a.toutc=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,
1,1);m=b.toDate(k[0]);return null===m?null:new Date(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate(),m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds())})};a.tolocal=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,1,1);m=b.toDate(k[0]);return null===m?null:w.DateTime.utc(m.getFullYear(),m.getMonth()+1,m.getDate(),m.getHours(),m.getMinutes(),m.getSeconds(),m.getMilliseconds()).toJSDate()})};a.day=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,1,1);m=b.toDate(k[0]);
return null===m?NaN:m.getDate()})};a.month=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,1,1);m=b.toDate(k[0]);return null===m?NaN:m.getMonth()})};a.year=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,1,1);m=b.toDate(k[0]);return null===m?NaN:m.getFullYear()})};a.hour=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,1,1);m=b.toDate(k[0]);return null===m?NaN:m.getHours()})};a.second=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,1,1);m=b.toDate(k[0]);return null===m?
NaN:m.getSeconds()})};a.millisecond=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,1,1);m=b.toDate(k[0]);return null===m?NaN:m.getMilliseconds()})};a.minute=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,1,1);m=b.toDate(k[0]);return null===m?NaN:m.getMinutes()})};a.week=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,1,2);m=b.toDate(k[0]);if(null===m)return NaN;k=b.toNumber(b.defaultUndefined(k[1],0));if(0>k||6<k)throw Error("Invalid Parameter");g=m.getDate();var x=m.getMonth(),
v=m.getFullYear();m=m.getDay();g=g+(0!==v%4||0===v%100&&0!==v%400?f:c)[x]-1;x=Math.floor(g/7);return m-k+(0>m-k?7:0)<g-7*x?x+1:x})};a.weekday=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,1,1);m=b.toDate(k[0]);return null===m?NaN:m.getDay()})};a.isoweekday=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,1,1);m=b.toDate(k[0]);if(null===m)return NaN;m=m.getDay();0===m&&(m=7);return m})};a.isomonth=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,1,1);m=b.toDate(k[0]);return null===
m?NaN:m.getMonth()+1})};a.isoweek=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,1,1);g=b.toDate(k[0]);if(null===g)return NaN;m=l(g).getTime();g=n(g);k=new Date(0);k.setFullYear(g,0,4);k.setHours(0,0,0,0);g=l(k);m-=g.getTime();return Math.round(m/6048E5)+1})};a.isoyear=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,1,1);m=b.toDate(k[0]);return null===m?NaN:n(m)})};a.date=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,0,7);if(3===k.length)return q(new Date(b.toNumber(k[0]),
b.toNumber(k[1]),b.toNumber(k[2]),0,0,0,0));if(4===k.length)return q(new Date(b.toNumber(k[0]),b.toNumber(k[1]),b.toNumber(k[2]),b.toNumber(k[3]),0,0,0));if(5===k.length)return q(new Date(b.toNumber(k[0]),b.toNumber(k[1]),b.toNumber(k[2]),b.toNumber(k[3]),b.toNumber(k[4]),0,0));if(6===k.length)return q(new Date(b.toNumber(k[0]),b.toNumber(k[1]),b.toNumber(k[2]),b.toNumber(k[3]),b.toNumber(k[4]),b.toNumber(k[5]),0));if(7===k.length)return q(new Date(b.toNumber(k[0]),b.toNumber(k[1]),b.toNumber(k[2]),
b.toNumber(k[3]),b.toNumber(k[4]),b.toNumber(k[5]),b.toNumber(k[6])));if(2===k.length){m=b.toString(k[1]);if(""===m)return null;m=b.standardiseDateFormat(m);g=void 0;g="X"===m?w.DateTime.fromSeconds(b.toNumber(k[0])):"x"===m?w.DateTime.fromMillis(b.toNumber(k[0])):w.DateTime.fromFormat(b.toString(k[0]),m,{locale:p.locale,numberingSystem:"latn"});return g.isValid?g.toJSDate():null}if(1===k.length){if(b.isString(k[0])){if(""===k[0].replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))return null;if(!0===
/^[0-9][0-9][0-9][0-9]$/.test(k[0]))return b.toDate(k[0]+"-01-01")}m=b.toNumber(k[0]);return!1===isNaN(m)?q(new Date(m)):b.toDate(k[0])}if(0===k.length)return new Date})};a.datediff=function(e,h){return d(e,h,function(m,g,k){b.pcCheck(k,2,3);m=b.toDateTime(k[0]);g=b.toDateTime(k[1]);if(null===m||null===g)return NaN;switch(b.toString(k[2]).toLowerCase()){case "days":case "day":case "d":return m.diff(g,"days").days;case "months":case "month":return m.diff(g,"months").months;case "minutes":case "minute":case "m":return"M"===
k[2]?m.diff(g,"months").months:m.diff(g,"minutes").minutes;case "seconds":case "second":case "s":return m.diff(g,"seconds").seconds;case "milliseconds":case "millisecond":case "ms":return m.diff(g).milliseconds;case "hours":case "hour":case "h":return m.diff(g,"hours").hours;case "years":case "year":case "y":return m.diff(g,"years").years;default:return m.diff(g).milliseconds}})};a.dateadd=function(e,h){return d(e,h,function(m,g,k){var x;b.pcCheck(k,2,3);m=b.toDateTime(k[0]);if(null===m)return null;
g=b.toNumber(k[1]);if(isNaN(g))return m.toJSDate();var v="milliseconds";switch(b.toString(k[2]).toLowerCase()){case "days":case "day":case "d":v="days";g=b.absRound(g);break;case "months":case "month":v="months";g=b.absRound(g);break;case "minutes":case "minute":case "m":v="M"===k[2]?"months":"minutes";break;case "seconds":case "second":case "s":v="seconds";break;case "milliseconds":case "millisecond":case "ms":v="milliseconds";break;case "hours":case "hour":case "h":v="hours";break;case "years":case "year":case "y":v=
"years"}return m.plus((x={},x[v]=g,x)).toJSDate()})}}})},"esri/arcade/functions/geometry":function(){define("require exports ../Dictionary ../Feature ../ImmutablePointArray ../languageUtils ../../geometry/Extent ../../geometry/Geometry ../../geometry/Multipoint ../../geometry/Point ../../geometry/Polygon ../../geometry/Polyline ./centroid ../../geometry/jsonUtils".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e,h){function m(g){return g&&(g instanceof w||"object"===typeof g&&"FeatureSetReader"===g.type)}
Object.defineProperty(z,"__esModule",{value:!0});z.registerFunctions=void 0;z.registerFunctions=function(g,k){g.ringisclockwise=function(x,v){return k(x,v,function(y,u,t){n.pcCheck(t,1,1);y=[];if(null===t[0])return!1;if(n.isArray(t[0])){var r=0;for(t=t[0];r<t.length;r++)if(u=t[r],u instanceof c)y.push([u.x,u.y]);else throw Error("Invalid Argument");}else if(t[0]instanceof p)y=t[0]._elements;else if(n.isImmutableArray(t[0])){r=0;for(var B=t[0].toArray();r<B.length;r++)if(u=B[r],u instanceof c)y.push([u.x,
u.y]);else throw Error("Invalid Argument");0<y.length&&(t[0].get(0),t[0].get(0))}else throw Error("Invalid Argument");return 3>y.length?!1:(new a({rings:[],spatialReference:{wkid:4326}})).isClockwise(y)})};g.polygon=function(x,v){return k(x,v,function(y,u,t){n.pcCheck(t,1,1);y=null;if(t[0]instanceof b){if(y=n.fixSpatialReference(w.parseGeometryFromDictionary(t[0]),x.spatialReference),!1===y instanceof a)throw Error("Illegal Parameter");}else y=t[0]instanceof a?h.fromJson(t[0].toJson()):n.fixSpatialReference(new a(JSON.parse(t[0])),
x.spatialReference);if(null!==y&&!1===y.spatialReference.equals(x.spatialReference))throw Error("Cannot create Geometry in this SpatialReference. Engine is using a different spatial reference.");return n.fixNullGeometry(y)})};g.polyline=function(x,v){return k(x,v,function(y,u,t){n.pcCheck(t,1,1);y=null;if(t[0]instanceof b){if(y=n.fixSpatialReference(w.parseGeometryFromDictionary(t[0]),x.spatialReference),!1===y instanceof d)throw Error("Illegal Parameter");}else y=t[0]instanceof d?h.fromJson(t[0].toJson()):
n.fixSpatialReference(new d(JSON.parse(t[0])),x.spatialReference);if(null!==y&&!1===y.spatialReference.equals(x.spatialReference))throw Error("Cannot create Geometry in this SpatialReference. Engine is using a different spatial reference.");return n.fixNullGeometry(y)})};g.point=function(x,v){return k(x,v,function(y,u,t){n.pcCheck(t,1,1);y=null;if(t[0]instanceof b){if(y=n.fixSpatialReference(w.parseGeometryFromDictionary(t[0]),x.spatialReference),!1===y instanceof c)throw Error("Illegal Parameter");
}else y=t[0]instanceof c?h.fromJson(t[0].toJson()):n.fixSpatialReference(new c(JSON.parse(t[0])),x.spatialReference);if(null!==y&&!1===y.spatialReference.equals(x.spatialReference))throw Error("Cannot create Geometry in this SpatialReference. Engine is using a different spatial reference.");return n.fixNullGeometry(y)})};g.multipoint=function(x,v){return k(x,v,function(y,u,t){n.pcCheck(t,1,1);y=null;if(t[0]instanceof b){if(y=n.fixSpatialReference(w.parseGeometryFromDictionary(t[0]),x.spatialReference),
!1===y instanceof f)throw Error("Illegal Parameter");}else y=t[0]instanceof f?h.fromJson(t[0].toJson()):n.fixSpatialReference(new f(JSON.parse(t[0])),x.spatialReference);if(null!==y&&!1===y.spatialReference.equals(x.spatialReference))throw Error("Cannot create Geometry in this SpatialReference. Engine is using a different spatial reference.");return n.fixNullGeometry(y)})};g.extent=function(x,v){return k(x,v,function(y,u,t){t=n.autoCastFeatureToGeometry(t);n.pcCheck(t,1,1);y=null;t[0]instanceof b?
y=n.fixSpatialReference(w.parseGeometryFromDictionary(t[0]),x.spatialReference):t[0]instanceof c?(y={xmin:t[0].x,ymin:t[0].y,xmax:t[0].x,ymax:t[0].y,spatialReference:t[0].spatialReference.toJson()},t=t[0],t.hasZ?(y.zmin=t.z,y.zmax=t.z):t.hasM&&(y.mmin=t.m,y.mmax=t.m),y=h.fromJson(y)):y=t[0]instanceof a?h.fromJson(t[0].getExtent().toJson()):t[0]instanceof d?h.fromJson(t[0].getExtent().toJson()):t[0]instanceof f?h.fromJson(t[0].getExtent().toJson()):t[0]instanceof l?h.fromJson(t[0].toJson()):n.fixSpatialReference(new l(JSON.parse(t[0])),
x.spatialReference);if(null!==y&&!1===y.spatialReference.equals(x.spatialReference))throw Error("Cannot create Geometry in this SpatialReference. Engine is using a different spatial reference.");return n.fixNullGeometry(y)})};g.geometry=function(x,v){return k(x,v,function(y,u,t){n.pcCheck(t,1,1);y=null;if(null===t[0])return null;y=m(t[0])?n.fixSpatialReference(t[0].geometry(),x.spatialReference):t[0]instanceof b?n.fixSpatialReference(w.parseGeometryFromDictionary(t[0]),x.spatialReference):n.fixSpatialReference(h.fromJson(JSON.parse(t[0])),
x.spatialReference);if(null!==y&&!1===y.spatialReference.equals(x.spatialReference))throw Error("Cannot create Geometry in this SpatialReference. Engine is using a different spatial reference.");return n.fixNullGeometry(y)})};g.setgeometry=function(x,v){return k(x,v,function(y,u,t){n.pcCheck(t,2,2);if(m(t[0])){if(!0===t[0].immutable)throw Error("Feature is Immutable");if(t[1]instanceof q||null===t[1])t[0]._geometry=t[1];else throw Error("Illegal Argument");}else throw Error("Illegal Argument");return n.voidOperation})};
g.feature=function(x,v){return k(x,v,function(y,u,t){if(0===t.length)throw Error("Missing Parameters");y=null;if(1===t.length)if(n.isString(t[0]))y=w.fromJson(JSON.parse(t[0]));else if(m(t[0]))y=w.createFromArcadeFeature(t[0]);else if(t[0]instanceof q)y=w.createFromGraphicLikeObject(t[0],null,null);else if(t[0]instanceof b)y=t[0].hasField("geometry")?t[0].field("geometry"):null,u=t[0].hasField("attributes")?t[0].field("attributes"):null,null!==y&&y instanceof b&&(y=w.parseGeometryFromDictionary(y)),
null!==u&&(u=w.parseAttributesFromDictionary(u)),y=w.createFromGraphicLikeObject(y,u,null);else throw Error("Illegal Argument");else{if(2===t.length){u=y=null;if(null!==t[0])if(t[0]instanceof q)y=t[0];else if(y instanceof b)y=w.parseGeometryFromDictionary(t[0]);else throw Error("Illegal Argument");if(null!==t[1])if(t[1]instanceof b)u=w.parseAttributesFromDictionary(t[1]);else throw Error("Illegal Argument");}else{y=null;u={};if(null!==t[0])if(t[0]instanceof q)y=t[0];else if(y instanceof b)y=w.parseGeometryFromDictionary(t[0]);
else throw Error("Illegal Argument");for(var r=1;r<t.length;r+=2){var B=n.toString(t[r]),C=t[r+1];if(null===C||void 0===C||n.isString(C)||isNaN(C)||n.isDate(C)||n.isNumber(C)||n.isBoolean(C)){if(n.isFunctionParameter(C)||!1===n.isSimpleType(C))throw Error("Illegal Argument");u[B]=C===n.voidOperation?null:C}else throw Error("Illegal Argument");}}y=w.createFromGraphicLikeObject(y,u,null)}y._geometry=n.fixSpatialReference(y.geometry(),x.spatialReference);y.immutable=!1;return y})};g.dictionary=function(x,
v){return k(x,v,function(y,u,t){if(0===t.length)return t=new b,t.immutable=!1,t;if(1===t.length&&n.isString(t[0]))try{var r=JSON.parse(t[0]),B=b.convertObjectToArcadeDictionary(r,!1);B.immutable=!1;return B}catch(C){throw Error("Missing Parameters or Illegal Json");}if(0!==t.length%2)throw Error("Missing Parameters");y={};for(u=0;u<t.length;u+=2)if(r=n.toString(t[u]),B=t[u+1],null===B||void 0===B||n.isString(B)||isNaN(B)||n.isDate(B)||n.isNumber(B)||n.isBoolean(B)||n.isArray(B)||n.isImmutableArray(B)){if(n.isFunctionParameter(B))throw Error("Illegal Argument");
y[r]=B===n.voidOperation?null:B}else throw Error("Illegal Argument");t=new b(y);t.immutable=!1;return t})};g.haskey=function(x,v){return k(x,v,function(y,u,t){n.pcCheck(t,2,2);y=n.toString(t[1]);if(m(t[0])||t[0]instanceof b)return t[0].hasField(y);throw Error("Illegal Argument");})};g.indexof=function(x,v){return k(x,v,function(y,u,t){n.pcCheck(t,2,2);y=t[1];if(n.isArray(t[0])){for(u=0;u<t[0].length;u++)if(n.equalityTest(y,t[0][u]))return u;return-1}if(n.isImmutableArray(t[0])){var r=t[0].length();
for(u=0;u<r;u++)if(n.equalityTest(y,t[0].get(u)))return u;return-1}throw Error("Illegal Argument");})};g.angle=function(x,v){return k(x,v,function(y,u,t){t=n.autoCastFeatureToGeometry(t);n.pcCheck(t,2,3);if(!(t[0]instanceof c))throw Error("Illegal Argument");if(!(t[1]instanceof c))throw Error("Illegal Argument");if(2<t.length&&!(t[2]instanceof c))throw Error("Illegal Argument");return 2===t.length?e.angle2D(t[0],t[1]):e.angleBetween2D(t[0],t[1],t[2])})};g.bearing=function(x,v){return k(x,v,function(y,
u,t){t=n.autoCastFeatureToGeometry(t);n.pcCheck(t,2,3);if(!(t[0]instanceof c))throw Error("Illegal Argument");if(!(t[1]instanceof c))throw Error("Illegal Argument");if(2<t.length&&!(t[2]instanceof c))throw Error("Illegal Argument");return 2===t.length?e.bearing2D(t[0],t[1]):e.bearingBetween2D(t[0],t[1],t[2])})};g.isselfintersecting=function(x,v){return k(x,v,function(y,u,t){t=n.autoCastFeatureToGeometry(t);n.pcCheck(t,1,1);y=t[0];if(y instanceof a)return y.isSelfIntersecting(y);if(y instanceof d)return y=
y.paths,e.pathsSelfIntersecting(y);if(y instanceof f)for(u=y.points,t=0;t<u.length;t++)for(var r=0;r<u.length;r++)if(r!==t){for(var B=!0,C=0;C<u[t].length;C++)if(u[t][C]!==u[r][C]){B=!1;break}if(!0===B)return!0}return n.isArray(y)||n.isImmutableArray(y)?(y=n.autoCastArrayOfPointsToPolyline(y,x.spatialReference),null!==y&&(y=y.paths),e.pathsSelfIntersecting(y)):!1})}}})},"esri/arcade/functions/centroid":function(){define(["require","exports","../../geometry/Point"],function(E,z,b){function w(a,d,e){var h=
{x:0,y:0};d&&(h.z=0);e&&(h.m=0);for(var m=0,g=a[0],k=0;k<a.length;k++){var x=a[k];a:if(x.length!==g.length)var v=!1;else{for(v=0;v<x.length;v++)if(x[v]!==g[v]){v=!1;break a}v=!0}if(!1===v){v=p(g,x,d);var y=x,u=d,t=e,r={x:(g[0]+y[0])/2,y:(g[1]+y[1])/2};u&&(r.z=(g[2]+y[2])/2);u&&t?r.m=(g[3]+y[3])/2:t&&(r.m=(g[2]+y[2])/2);g=r;g.x*=v;g.y*=v;h.x+=g.x;h.y+=g.y;d&&(g.z*=v,h.z+=g.z);e&&(g.m*=v,h.m+=g.m);m+=v;g=x}}0<m?(h.x/=m,h.y/=m,d&&(h.z/=m),e&&(h.m/=m)):(h.x=a[0][0],h.y=a[0][1],d&&(h.z=a[0][2]),e&&d?h.m=
a[0][3]:e&&(h.m=a[0][2]));return h}function p(a,d,e){var h=d[0]-a[0];a=d[1]-a[1];return e?(d=d[2]-d[2],Math.sqrt(h*h+a*a+d*d)):Math.sqrt(h*h+a*a)}function n(a,d,e){for(void 0===e&&(e=0);a<e;)a+=d;for(e+=d;a>=e;)a-=d;return a}function l(a,d){return Math.atan2(d.y-a.y,d.x-a.x)}function q(a,d,e){var h=a.x-d.x;a=a.y-d.y;var m=e.x-d.x;d=e.y-d.y;return Math.atan2(h*d-m*a,h*m+a*d)}function f(a,d,e,h,m){var g=a[0];a=a[1];var k=d[0];d=d[1];var x=e[0],v=e[1];e=h[0]-x;x=g-x;var y=k-g;h=h[1]-v;v=a-v;var u=d-
a,t=h*y-e*u;if(0===t)return!1;e=(e*v-h*x)/t;x=(y*v-u*x)/t;return 0<=e&&1>=e&&0<=x&&1>=x?(m&&(m[0]=g+e*(k-g),m[1]=a+e*(d-a)),!0):!1}Object.defineProperty(z,"__esModule",{value:!0});z.pathsSelfIntersecting=z.bearingBetween2D=z.angleBetween2D=z.angleBetweenRad=z.bearing2D=z.angle2D=z.angleRad=z.centroidMultiPoint=z.centroidPolyline=void 0;z.centroidPolyline=function(a){for(var d={x:0,y:0,spatialReference:a.spatialReference.toJson()},e={x:0,y:0,spatialReference:a.spatialReference.toJson()},h=0,m=0,g=
0;g<a.paths.length;g++)if(0!==a.paths[g].length){var k=a.paths[g];var x=!0===a.hasZ;if(1>=k.length)k=0;else{for(var v=0,y=1;y<k.length;y++)v+=p(k[y-1],k[y],x);k=v}0===k?(x=w(a.paths[g],!0===a.hasZ,!0===a.hasM),d.x+=x.x,d.y+=x.y,!0===a.hasZ&&(d.z+=x.z),!0===a.hasM&&(d.m+=x.m),++h):(x=w(a.paths[g],!0===a.hasZ,!0===a.hasM),e.x+=x.x*k,e.y+=x.y*k,!0===a.hasZ&&(e.z+=x.z*k),!0===a.hasM&&(e.m+=x.m*k),m+=k)}return 0<m?(e.x/=m,e.y/=m,!0===a.hasZ&&(e.z/=m),!0===a.hasM&&(e.m/=m),new b(e)):0<h?(d.x/=h,d.y/=h,
!0===a.hasZ&&(e.z/=h),!0===a.hasM&&(d.m/=h),new b(d)):null};z.centroidMultiPoint=function(a){if(0===a.points.length)return null;for(var d=0,e=0,h=0,m=0,g=0;g<a.points.length;g++){var k=a.getPoint(g);!0===k.hasZ&&(h+=k.z);!0===k.hasM&&(m+=k.m);d+=k.x;e+=k.y;m+=k.m}d={x:d/a.points.length,y:e/a.points.length,spatialReference:null};d.spatialReference=a.spatialReference.toJson();!0===a.hasZ&&(d.z=h/a.points.length);!0===a.hasM&&(d.m=m/a.points.length);return new b(d)};z.angleRad=l;z.angle2D=function(a,
d){return n(l(a,d),2*Math.PI)*(180/Math.PI)};z.bearing2D=function(a,d){return n(Math.PI/2-l(a,d),2*Math.PI)*(180/Math.PI)};z.angleBetweenRad=q;z.angleBetween2D=function(a,d,e){return n(q(a,d,e),2*Math.PI)*(180/Math.PI)};z.bearingBetween2D=function(a,d,e){return n(-1*q(a,d,e),2*Math.PI)*(180/Math.PI)};var c=[0,0];z.pathsSelfIntersecting=function(a){for(var d=0;d<a.length;d++){for(var e=a[d],h=0;h<e.length-1;h++)for(var m=e[h],g=e[h+1],k=d+1;k<a.length;k++)for(var x=0;x<a[k].length-1;x++){var v=a[k][x],
y=a[k][x+1],u=f(m,g,v,y,c);if(u&&!(c[0]===m[0]&&c[1]===m[1]||c[0]===v[0]&&c[1]===v[1]||c[0]===g[0]&&c[1]===g[1]||c[0]===y[0]&&c[1]===y[1]))return!0}x=e.length;if(!(3>x))for(h=0;h<=x-2;h++)for(m=e[h],g=e[h+1],k=h+2;k<=x-2;k++)if(v=e[k],y=e[k+1],(u=f(m,g,v,y,c))&&!(c[0]===m[0]&&c[1]===m[1]||c[0]===v[0]&&c[1]===v[1]||c[0]===g[0]&&c[1]===g[1]||c[0]===y[0]&&c[1]===y[1]))return!0}return!1}})},"esri/arcade/functions/geomsync":function(){define("require exports ../../kernel ../kernel ../languageUtils ./centroid ../../geometry/Extent ../../geometry/Geometry ../../geometry/Multipoint ../../geometry/Point ../../geometry/Polygon ../../geometry/Polyline ../../geometry/jsonUtils".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e){function h(g){return 0===b.version.indexOf("4.")?a.fromExtent(g):new a({spatialReference:g.spatialReference,rings:[[[g.xmin,g.ymin],[g.xmin,g.ymax],[g.xmax,g.ymax],[g.xmax,g.ymin],[g.xmin,g.ymin]]]})}Object.defineProperty(z,"__esModule",{value:!0});z.registerFunctions=z.setGeometryEngine=void 0;var m=null;z.setGeometryEngine=function(g){m=g};z.registerFunctions=function(g,k){function x(v){p.pcCheck(v,2,2);if(!(v[0]instanceof q&&v[1]instanceof q||v[0]instanceof q&&
null===v[1]||v[1]instanceof q&&null===v[0]||null===v[0]&&null===v[1]))throw Error("Illegal Argument");}g.disjoint=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);x(r);return null===r[0]||null===r[1]?!0:m.disjoint(r[0],r[1])})};g.intersects=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);x(r);return null===r[0]||null===r[1]?!1:m.intersects(r[0],r[1])})};g.touches=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);x(r);
return null===r[0]||null===r[1]?!1:m.touches(r[0],r[1])})};g.crosses=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);x(r);return null===r[0]||null===r[1]?!1:m.crosses(r[0],r[1])})};g.within=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);x(r);return null===r[0]||null===r[1]?!1:m.within(r[0],r[1])})};g.contains=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);x(r);return null===r[0]||null===r[1]?!1:m.contains(r[0],r[1])})};
g.overlaps=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);x(r);return null===r[0]||null===r[1]?!1:m.overlaps(r[0],r[1])})};g.equals=function(v,y){return k(v,y,function(u,t,r){p.pcCheck(r,2,2);return r[0]===r[1]?!0:r[0]instanceof q&&r[1]instanceof q?m.equals(r[0],r[1]):p.isDate(r[0])&&p.isDate(r[1])?r[0].getTime()===r[1].getTime():!1})};g.relate=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);p.pcCheck(r,3,3);if(r[0]instanceof q&&r[1]instanceof
q)return m.relate(r[0],r[1],p.toString(r[2]));if(r[0]instanceof q&&null===r[1]||r[1]instanceof q&&null===r[0]||null===r[0]&&null===r[1])return!1;throw Error("Illegal Argument");})};g.intersection=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);x(r);return null===r[0]||null===r[1]?null:m.intersect(r[0],r[1])})};g.union=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);u=[];if(0===r.length)throw Error("Function called with wrong number of Parameters");
if(1===r.length)if(p.isArray(r[0]))for(r=p.autoCastFeatureToGeometry(r[0]),t=0;t<r.length;t++){if(null!==r[t]){if(!(r[t]instanceof q))throw Error("Illegal Argument");u.push(r[t])}}else if(p.isImmutableArray(r[0]))for(r=p.autoCastFeatureToGeometry(r[0].toArray()),t=0;t<r.length;t++){if(null!==r[t]){if(!(r[t]instanceof q))throw Error("Illegal Argument");u.push(r[t])}}else{if(r[0]instanceof q)return p.fixSpatialReference(w.cloneGeometry(r[0]),v.spatialReference);if(null===r[0])return null;throw Error("Illegal Argument");
}else for(t=0;t<r.length;t++)if(null!==r[t]){if(!(r[t]instanceof q))throw Error("Illegal Argument");u.push(r[t])}return 0===u.length?null:m.union(u)})};g.difference=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);x(r);return null!==r[0]&&null===r[1]?w.cloneGeometry(r[0]):null===r[0]?null:m.difference(r[0],r[1])})};g.symmetricdifference=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);x(r);return null===r[0]&&null===r[1]?null:null===r[0]?w.cloneGeometry(r[1]):
null===r[1]?w.cloneGeometry(r[0]):m.symmetricDifference(r[0],r[1])})};g.clip=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);p.pcCheck(r,2,2);if(!(r[1]instanceof l)&&null!==r[1])throw Error("Illegal Argument");if(null===r[0])return null;if(!(r[0]instanceof q))throw Error("Illegal Argument");return null===r[1]?null:m.clip(r[0],r[1])})};g.cut=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);p.pcCheck(r,2,2);if(!(r[1]instanceof d)&&null!==r[1])throw Error("Illegal Argument");
if(null===r[0])return[];if(!(r[0]instanceof q))throw Error("Illegal Argument");return null===r[1]?[w.cloneGeometry(r[0])]:m.cut(r[0],r[1])})};g.area=function(v,y){return k(v,y,function(u,t,r){p.pcCheck(r,1,2);r=p.autoCastFeatureToGeometry(r);if(null===r[0])return 0;if(p.isArray(r[0])||p.isImmutableArray(r[0]))return u=p.autoCastArrayOfPointsToPolygon(r[0],v.spatialReference),null===u?0:m.planarArea(u,w.convertSquareUnitsToCode(p.defaultUndefined(r[1],-1)));if(!(r[0]instanceof q))throw Error("Illegal Argument");
return m.planarArea(r[0],w.convertSquareUnitsToCode(p.defaultUndefined(r[1],-1)))})};g.areageodetic=function(v,y){return k(v,y,function(u,t,r){p.pcCheck(r,1,2);r=p.autoCastFeatureToGeometry(r);if(null===r[0])return 0;if(p.isArray(r[0])||p.isImmutableArray(r[0]))return u=p.autoCastArrayOfPointsToPolygon(r[0],v.spatialReference),null===u?0:m.geodesicArea(u,w.convertSquareUnitsToCode(p.defaultUndefined(r[1],-1)));if(!(r[0]instanceof q))throw Error("Illegal Argument");return m.geodesicArea(r[0],w.convertSquareUnitsToCode(p.defaultUndefined(r[1],
-1)))})};g.length=function(v,y){return k(v,y,function(u,t,r){p.pcCheck(r,1,2);r=p.autoCastFeatureToGeometry(r);if(null===r[0])return 0;if(p.isArray(r[0])||p.isImmutableArray(r[0]))return u=p.autoCastArrayOfPointsToPolyline(r[0],v.spatialReference),null===u?0:m.planarLength(u,w.convertLinearUnitsToCode(p.defaultUndefined(r[1],-1)));if(!(r[0]instanceof q))throw Error("Illegal Argument");return m.planarLength(r[0],w.convertLinearUnitsToCode(p.defaultUndefined(r[1],-1)))})};g.length3d=function(v,y){return k(v,
y,function(u,t,r){p.pcCheck(r,1,2);r=p.autoCastFeatureToGeometry(r);if(null===r[0])return 0;if(p.isArray(r[0])||p.isImmutableArray(r[0]))return u=p.autoCastArrayOfPointsToPolyline(r[0],v.spatialReference),null===u?0:m.planarLength(u,w.convertLinearUnitsToCode(p.defaultUndefined(r[1],-1)));if(!(r[0]instanceof q))throw Error("Illegal Argument");return m.planarLength(r[0],w.convertLinearUnitsToCode(p.defaultUndefined(r[1],-1)))})};g.lengthgeodetic=function(v,y){return k(v,y,function(u,t,r){p.pcCheck(r,
1,2);r=p.autoCastFeatureToGeometry(r);if(null===r[0])return 0;if(p.isArray(r[0])||p.isImmutableArray(r[0]))return u=p.autoCastArrayOfPointsToPolyline(r[0],v.spatialReference),null===u?0:m.geodesicLength(u,w.convertLinearUnitsToCode(p.defaultUndefined(r[1],-1)));if(!(r[0]instanceof q))throw Error("Illegal Argument");return m.geodesicLength(r[0],w.convertLinearUnitsToCode(p.defaultUndefined(r[1],-1)))})};g.distance=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);p.pcCheck(r,
2,3);u=r[0];if(p.isArray(r[0])||p.isImmutableArray(r[0]))u=p.autoCastArrayOfPointsToMultiPoint(r[0],v.spatialReference);t=r[1];if(p.isArray(r[1])||p.isImmutableArray(r[1]))t=p.autoCastArrayOfPointsToMultiPoint(r[1],v.spatialReference);if(!(u instanceof q))throw Error("Illegal Argument");if(!(t instanceof q))throw Error("Illegal Argument");return m.distance(u,t,w.convertLinearUnitsToCode(p.defaultUndefined(r[2],-1)))})};g.distancegeodetic=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);
p.pcCheck(r,2,3);u=r[0];t=r[1];if(!(u instanceof c))throw Error("Illegal Argument");if(!(t instanceof c))throw Error("Illegal Argument");var B=new d({paths:[],spatialReference:u.spatialReference});B.addPath([u,t]);return m.geodesicLength(B,w.convertLinearUnitsToCode(p.defaultUndefined(r[2],-1)))})};g.densify=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);p.pcCheck(r,2,3);if(null===r[0])return null;if(!(r[0]instanceof q))throw Error("Illegal Argument");u=p.toNumber(r[1]);
if(isNaN(u))throw Error("Illegal Argument");if(0>=u)throw Error("Illegal Argument");return r[0]instanceof a||r[0]instanceof d?m.densify(r[0],u,w.convertLinearUnitsToCode(p.defaultUndefined(r[2],-1))):r[0]instanceof l?m.densify(h(r[0]),u,w.convertLinearUnitsToCode(p.defaultUndefined(r[2],-1))):r[0]})};g.densifygeodetic=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);p.pcCheck(r,2,3);if(null===r[0])return null;if(!(r[0]instanceof q))throw Error("Illegal Argument");u=p.toNumber(r[1]);
if(isNaN(u))throw Error("Illegal Argument");if(0>=u)throw Error("Illegal Argument");return r[0]instanceof a||r[0]instanceof d?m.geodesicDensify(r[0],u,w.convertLinearUnitsToCode(p.defaultUndefined(r[2],-1))):r[0]instanceof l?m.geodesicDensify(h(r[0]),u,w.convertLinearUnitsToCode(p.defaultUndefined(r[2],-1))):r[0]})};g.generalize=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);p.pcCheck(r,2,4);if(null===r[0])return null;if(!(r[0]instanceof q))throw Error("Illegal Argument");
u=p.toNumber(r[1]);if(isNaN(u))throw Error("Illegal Argument");return m.generalize(r[0],u,p.toBoolean(p.defaultUndefined(r[2],!0)),w.convertLinearUnitsToCode(p.defaultUndefined(r[3],-1)))})};g.buffer=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);p.pcCheck(r,2,3);if(null===r[0])return null;if(!(r[0]instanceof q))throw Error("Illegal Argument");u=p.toNumber(r[1]);if(isNaN(u))throw Error("Illegal Argument");return 0===u?w.cloneGeometry(r[0]):m.buffer(r[0],u,w.convertLinearUnitsToCode(p.defaultUndefined(r[2],
-1)))})};g.buffergeodetic=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);p.pcCheck(r,2,3);if(null===r[0])return null;if(!(r[0]instanceof q))throw Error("Illegal Argument");u=p.toNumber(r[1]);if(isNaN(u))throw Error("Illegal Argument");return 0===u?w.cloneGeometry(r[0]):m.geodesicBuffer(r[0],u,w.convertLinearUnitsToCode(p.defaultUndefined(r[2],-1)))})};g.offset=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);p.pcCheck(r,2,6);if(null===r[0])return null;
if(!(r[0]instanceof a||r[0]instanceof d))throw Error("Illegal Argument");u=p.toNumber(r[1]);if(isNaN(u))throw Error("Illegal Argument");t=p.toNumber(p.defaultUndefined(r[4],10));if(isNaN(t))throw Error("Illegal Argument");var B=p.toNumber(p.defaultUndefined(r[5],0));if(isNaN(B))throw Error("Illegal Argument");return m.offset(r[0],u,w.convertLinearUnitsToCode(p.defaultUndefined(r[2],-1)),p.toString(p.defaultUndefined(r[3],"round")).toLowerCase(),t,B)})};g.rotate=function(v,y){return k(v,y,function(u,
t,r){r=p.autoCastFeatureToGeometry(r);p.pcCheck(r,2,3);u=r[0];if(null===u)return null;if(!(u instanceof q))throw Error("Illegal Argument");u instanceof l&&(u=a.fromExtent(u));t=p.toNumber(r[1]);if(isNaN(t))throw Error("Illegal Argument");r=p.defaultUndefined(r[2],null);if(null===r)return m.rotate(u,t);if(r instanceof c)return m.rotate(u,t,r);throw Error("Illegal Argument");})};g.centroid=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);p.pcCheck(r,1,1);if(null===r[0])return null;
u=r[0];if(p.isArray(r[0])||p.isImmutableArray(r[0]))u=p.autoCastArrayOfPointsToMultiPoint(r[0],v.spatialReference);if(null===u)return null;if(!(u instanceof q))throw Error("Illegal Argument");return u instanceof c?p.fixSpatialReference(w.cloneGeometry(r[0]),v.spatialReference):u instanceof a?u.getCentroid():u instanceof d?n.centroidPolyline(u):u instanceof f?n.centroidMultiPoint(u):u instanceof l?u.getCenter():null})};g.multiparttosinglepart=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);
p.pcCheck(r,1,1);t=[];if(null===r[0])return null;if(!(r[0]instanceof q))throw Error("Illegal Argument");if(r[0]instanceof c||r[0]instanceof l)return[p.fixSpatialReference(w.cloneGeometry(r[0]),v.spatialReference)];u=m.simplify(r[0]);if(u instanceof a){t=[];var B=[];for(r=0;r<u.rings.length;r++)if(u.isClockwise(u.rings[r])){var C=e.fromJson({rings:[u.rings[r]],hasZ:!0===u.hasZ,hasM:!0===u.hasM,spatialReference:u.spatialReference.toJson()});t.push(C)}else B.push({ring:u.rings[r],pt:u.getPoint(r,0)});
for(u=0;u<B.length;u++)for(r=0;r<t.length;r++)if(t[r].contains(B[u].pt)){t[r].addRing(B[u].ring);break}return t}if(u instanceof d){t=[];for(r=0;r<u.paths.length;r++)B=e.fromJson({paths:[u.paths[r]],hasZ:!0===u.hasZ,hasM:!0===u.hasM,spatialReference:u.spatialReference.toJson()}),t.push(B);return t}if(r[0]instanceof f){u=p.fixSpatialReference(w.cloneGeometry(r[0]),v.spatialReference);for(r=0;r<u.points.length;r++)t.push(u.getPoint(r));return t}return null})};g.issimple=function(v,y){return k(v,y,function(u,
t,r){r=p.autoCastFeatureToGeometry(r);p.pcCheck(r,1,1);if(null===r[0])return!0;if(!(r[0]instanceof q))throw Error("Illegal Argument");return m.isSimple(r[0])})};g.simplify=function(v,y){return k(v,y,function(u,t,r){r=p.autoCastFeatureToGeometry(r);p.pcCheck(r,1,1);if(null===r[0])return null;if(!(r[0]instanceof q))throw Error("Illegal Argument");return m.simplify(r[0])})}}})},"esri/arcade/kernel":function(){define(["require","exports","../geometry/Extent","../geometry/jsonUtils"],function(E,z,b,w){Object.defineProperty(z,
"__esModule",{value:!0});z.cloneGeometry=z.sameGeomType=z.convertLinearUnitsToCode=z.shapeExtent=z.convertSquareUnitsToCode=void 0;z.convertSquareUnitsToCode=function(p){if(void 0===p)return null;if("number"===typeof p)return p;p=p.toLowerCase();p=p.replace(/\s/g,"");p=p.replace(/-/g,"");switch(p){case "meters":case "meter":case "m":case "squaremeters":case "squaremeter":return 109404;case "miles":case "mile":case "squaremile":case "squaremiles":return 109413;case "kilometers":case "kilometer":case "squarekilometers":case "squarekilometer":case "km":return 109414;
case "acres":case "acre":case "ac":return 109402;case "hectares":case "hectare":case "ha":return 109401;case "yard":case "yd":case "yards":case "squareyards":case "squareyard":return 109442;case "feet":case "ft":case "foot":case "squarefeet":case "squarefoot":return 109405;case "nm":case "nmi":case "nauticalmile":case "nauticalmiles":case "squarenauticalmile":case "squarenauticalmiles":return 109409}return null};z.shapeExtent=function(p){if(null===p)return null;switch(p.type){case "polygon":case "multipoint":case "polyline":return p.extent;
case "point":return new b({xmin:p.x,ymin:p.y,xmax:p.x,ymax:p.y,spatialReference:p.spatialReference});case "extent":return p}return null};z.convertLinearUnitsToCode=function(p){if(void 0===p)return null;if("number"===typeof p)return p;p=p.toLowerCase();p=p.replace(/\s/g,"");p=p.replace(/-/g,"");switch(p){case "meters":case "meter":case "m":case "squaremeters":case "squaremeter":return 9001;case "miles":case "mile":case "squaremile":case "squaremiles":return 9035;case "kilometers":case "kilometer":case "squarekilometers":case "squarekilometer":case "km":return 9036;
case "yard":case "yd":case "yards":case "squareyards":case "squareyard":return 9096;case "feet":case "ft":case "foot":case "squarefeet":case "squarefoot":return 9002;case "nm":case "nmi":case "nauticalmile":case "nauticalmiles":case "squarenauticalmile":case "squarenauticalmiles":return 9030}return null};z.sameGeomType=function(p,n){return p===n||"point"===p&&"esriGeometryPoint"===n||"polyline"===p&&"esriGeometryPolyline"===n||"polygon"===p&&"esriGeometryPolygon"===n||"extent"===p&&"esriGeometryEnvelope"===
n||"multipoint"===p&&"esriGeometryMultipoint"===n||"point"===n&&"esriGeometryPoint"===p||"polyline"===n&&"esriGeometryPolyline"===p||"polygon"===n&&"esriGeometryPolygon"===p||"extent"===n&&"esriGeometryEnvelope"===p||"multipoint"===n&&"esriGeometryMultipoint"===p?!0:!1};z.cloneGeometry=function(p){if(null===p)return null;var n=w.fromJson(p.toJson());p.getCacheValue("_geVersion")&&n.setCacheValue("_geVersion",p.getCacheValue("_geVersion"));return n}})},"esri/arcade/functions/maths":function(){define(["require",
"exports","../languageUtils","dojo/number"],function(E,z,b,w){function p(n,l,q){if("undefined"===typeof q||0===+q)return Math[n](l);l=+l;q=+q;if(isNaN(l)||"number"!==typeof q||0!==q%1)return NaN;l=l.toString().split("e");l=Math[n](+(l[0]+"e"+(l[1]?+l[1]-q:-q)));l=l.toString().split("e");return+(l[0]+"e"+(l[1]?+l[1]+q:q))}Object.defineProperty(z,"__esModule",{value:!0});z.registerFunctions=void 0;z.registerFunctions=function(n,l){function q(f,c,a){f=b.toNumber(f);return isNaN(f)?f:isNaN(c)||isNaN(a)||
c>a?NaN:f<c?c:f>a?a:f}n.number=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,1,2);a=e[0];return b.isNumber(a)?a:null===a?0:b.isDate(a)||b.isBoolean(a)?Number(a):b.isArray(a)?NaN:""===a||void 0===a?Number(a):b.isString(a)?void 0!==e[1]?(e=b.multiReplace(e[1],"\u2030",""),e=b.multiReplace(e,"\u00a4",""),w.parse(a,{pattern:e})):Number(a.trim()):Number(a)})};n.abs=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,1,1);return Math.abs(b.toNumber(e[0]))})};n.acos=function(f,c){return l(f,
c,function(a,d,e){b.pcCheck(e,1,1);return Math.acos(b.toNumber(e[0]))})};n.asin=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,1,1);return Math.asin(b.toNumber(e[0]))})};n.atan=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,1,1);return Math.atan(b.toNumber(e[0]))})};n.atan2=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,2,2);return Math.atan2(b.toNumber(e[0]),b.toNumber(e[1]))})};n.ceil=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,1,2);return 2===e.length?(a=b.toNumber(e[1]),
isNaN(a)&&(a=0),p("ceil",b.toNumber(e[0]),-1*a)):Math.ceil(b.toNumber(e[0]))})};n.round=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,1,2);return 2===e.length?(a=b.toNumber(e[1]),isNaN(a)&&(a=0),p("round",b.toNumber(e[0]),-1*a)):Math.round(b.toNumber(e[0]))})};n.floor=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,1,2);return 2===e.length?(a=b.toNumber(e[1]),isNaN(a)&&(a=0),p("floor",b.toNumber(e[0]),-1*a)):Math.floor(b.toNumber(e[0]))})};n.cos=function(f,c){return l(f,c,function(a,
d,e){b.pcCheck(e,1,1);return Math.cos(b.toNumber(e[0]))})};n.isnan=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,1,1);return"number"===typeof e[0]&&isNaN(e[0])})};n.exp=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,1,1);return Math.exp(b.toNumber(e[0]))})};n.log=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,1,1);return Math.log(b.toNumber(e[0]))})};n.pow=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,2,2);return Math.pow(b.toNumber(e[0]),b.toNumber(e[1]))})};n.random=
function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,0,0);return Math.random()})};n.sin=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,1,1);return Math.sin(b.toNumber(e[0]))})};n.sqrt=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,1,1);return Math.sqrt(b.toNumber(e[0]))})};n.tan=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,1,1);return Math.tan(b.toNumber(e[0]))})};n.defaultvalue=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,2,2);return null===e[0]||""===e[0]||
void 0===e[0]?e[1]:e[0]})};n.isempty=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,1,1);return null===e[0]||""===e[0]||void 0===e[0]?!0:!1})};n["boolean"]=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,1,1);return b.toBoolean(e[0])})};n.constrain=function(f,c){return l(f,c,function(a,d,e){b.pcCheck(e,3,3);a=b.toNumber(e[1]);d=b.toNumber(e[2]);if(b.isArray(e[0])){var h=[],m=0;for(e=e[0];m<e.length;m++)h.push(q(e[m],a,d));return h}if(b.isImmutableArray(e[0])){h=[];for(m=0;m<e[0].length();m++)h.push(q(e[0].get(m),
a,d));return h}return q(e[0],a,d)})}}})},"esri/arcade/functions/stats":function(){define(["require","exports","../languageUtils","./fieldStats"],function(E,z,b,w){function p(n,l,q,f){if(1===f.length){if(b.isArray(f[0]))return w.calculateStat(n,f[0],-1);if(b.isImmutableArray(f[0]))return w.calculateStat(n,f[0].toArray(),-1)}return w.calculateStat(n,f,-1)}Object.defineProperty(z,"__esModule",{value:!0});z.registerFunctions=void 0;z.registerFunctions=function(n,l){n.stdev=function(q,f){return l(q,f,
function(c,a,d){return p("stdev",c,a,d)})};n.variance=function(q,f){return l(q,f,function(c,a,d){return p("variance",c,a,d)})};n.average=function(q,f){return l(q,f,function(c,a,d){return p("mean",c,a,d)})};n.mean=function(q,f){return l(q,f,function(c,a,d){return p("mean",c,a,d)})};n.sum=function(q,f){return l(q,f,function(c,a,d){return p("sum",c,a,d)})};n.min=function(q,f){return l(q,f,function(c,a,d){return p("min",c,a,d)})};n.max=function(q,f){return l(q,f,function(c,a,d){return p("max",c,a,d)})};
n.distinct=function(q,f){return l(q,f,function(c,a,d){return p("distinct",c,a,d)})};n.count=function(q,f){return l(q,f,function(c,a,d){b.pcCheck(d,1,1);if(b.isArray(d[0])||b.isString(d[0]))return d[0].length;if(b.isImmutableArray(d[0]))return d[0].length();throw Error("Invalid Parameters for Count");})}}})},"esri/arcade/functions/fieldStats":function(){define(["require","exports","../languageUtils"],function(E,z,b){function w(n){for(var l=0,q=0;q<n.length;q++)l+=n[q];return l/n.length}function p(n){for(var l=
w(n),q=0,f=0;f<n.length;f++)q+=Math.pow(l-n[f],2);return q/n.length}Object.defineProperty(z,"__esModule",{value:!0});z.calculateStat=z.decodeStatType=void 0;z.decodeStatType=function(n){switch(n.toLowerCase()){case "distinct":return"distinct";case "avg":case "mean":return"avg";case "min":return"min";case "sum":return"sum";case "max":return"max";case "stdev":case "stddev":return"stddev";case "var":case "variance":return"var";case "count":return"count"}return""};z.calculateStat=function(n,l,q){void 0===
q&&(q=1E3);switch(n.toLowerCase()){case "distinct":a:{n=q;q=[];for(var f={},c=[],a=0;a<l.length;a++){if(void 0!==l[a]&&null!==l[a]&&l[a]!==b.voidOperation){var d=l[a];if(b.isNumber(d)||b.isString(d))void 0===f[d]&&(q.push(d),f[d]=1);else{for(var e=!1,h=0;h<c.length;h++)!0===b.equalityTest(c[h],d)&&(e=!0);!1===e&&(c.push(d),q.push(d))}}if(q.length>=n&&-1!==n){l=q;break a}}l=q}return l;case "avg":case "mean":return w(b.toNumberArray(l));case "min":return Math.min.apply(Math,b.toNumberArray(l));case "sum":l=
b.toNumberArray(l);for(q=n=0;q<l.length;q++)n+=l[q];return n;case "max":return Math.max.apply(Math,b.toNumberArray(l));case "stdev":case "stddev":return Math.sqrt(p(b.toNumberArray(l)));case "var":case "variance":return p(b.toNumberArray(l));case "count":return l.length}return 0}})},"esri/arcade/functions/string":function(){define("require exports ../ArcadePortal ../Attachment ../Dictionary ../Feature ../languageUtils ../featureset/support/shared ./convertdirection ./hash ../../geometry/Extent ../../geometry/Multipoint ../../geometry/Point ../../geometry/Polygon ../../geometry/Polyline ../../SpatialReference".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g){function k(x,v,y){if(null===x)v.updateUint8Array([0,139]);else if(l.isArray(x)){v.updateUint8Array([61]);if(y.map.has(x))x=y.map.get(x),v.updateIntArray([x^61237541]);else{y.map.set(x,y.currentLength++);for(var u=0;u<x.length;u++){var t=x[u];k(t,v,y)}y.map.delete(x);y.currentLength--}v.updateUint8Array([199])}else if(l.isImmutableArray(x)){v.updateUint8Array([61]);if(y.map.has(x))x=y.map.get(x),v.updateIntArray([x^61237541]);else{y.map.set(x,y.currentLength++);
u=0;for(var r=x.toArray();u<r.length;u++)t=r[u],k(t,v,y);y.map.delete(x);y.currentLength--}v.updateUint8Array([199])}else if(l.isDate(x))v.updateIntArray([x.getTime()]),v.updateUint8Array([241]);else if(l.isString(x))v.updateIntArray([x.length]),v.updateWithString(x),v.updateUint8Array([41]);else if(l.isBoolean(x))v.updateUint8Array([!0===x?1:0,113]);else if(l.isNumber(x))v.updateFloatArray([x]),v.updateUint8Array([173]);else{if(x instanceof w)throw Error("Type not supported in Hash");if(x instanceof
b)throw Error("Type not supported in Hash");if(x instanceof p){v.updateUint8Array([223]);if(y.map.has(x))x=y.map.get(x),v.updateIntArray([x^61237541]);else{y.map.set(x,y.currentLength++);u=0;for(r=x.keys();u<r.length;u++)t=r[u],v.updateIntArray([t.length]),v.updateWithString(t),v.updateUint8Array([251]),t=x.field(t),k(t,v,y),v.updateUint8Array([239]);y.map.delete(x);y.currentLength--}v.updateUint8Array([73])}else{if(x instanceof n)throw Error("Type not supported in Hash");if(x instanceof e)v.updateIntArray([3833836621]),
v.updateIntArray([0]),v.updateFloatArray([x.x]),v.updateIntArray([1]),v.updateFloatArray([x.y]),v.updateIntArray([3765347959]),k(x.spatialReference.wkid,v,y);else if(x instanceof h){v.updateIntArray([1266616829]);for(u=0;u<x.rings.length;u++){r=x.rings[u];var B=[],C=null,F=null;for(t=0;t<r.length;t++){var A=x.getPoint(u,t);if(0===t)C=A;else if(F.x===A.x&&F.y===A.y)continue;F=A;t===r.length-1&&C.x===A.x&&C.y===A.y||B.push(A)}v.updateIntArray([1397116793,B.length]);for(t=0;t<B.length;t++)A=B[t],v.updateIntArray([3962308117,
t]),k(A,v,y),v.updateIntArray([2716288009]);v.updateIntArray([2278822459])}v.updateIntArray([3878477243]);k(x.spatialReference.wkid,v,y)}else if(x instanceof m){v.updateIntArray([4106883559]);for(u=0;u<x.paths.length;u++){r=x.paths[u];v.updateIntArray([1397116793,r.length]);for(t=0;t<r.length;t++)v.updateIntArray([3962308117,t]),k(x.getPoint(u,t),v,y),v.updateIntArray([2716288009]);v.updateIntArray([2278822459])}v.updateIntArray([2568784753]);k(x.spatialReference.wkid,v,y)}else if(x instanceof d){v.updateIntArray([588535921,
x.points.length]);for(t=0;t<x.points.length;t++)u=x.getPoint(t),v.updateIntArray([t]),k(u,v,y);v.updateIntArray([1700171621]);k(x.spatialReference.wkid,v,y)}else if(x instanceof a)v.updateIntArray([3483648373]),v.updateIntArray([0]),v.updateFloatArray([x.xmax]),v.updateIntArray([1]),v.updateFloatArray([x.xmin]),v.updateIntArray([2]),v.updateFloatArray([x.ymax]),v.updateIntArray([3]),v.updateFloatArray([x.ymin]),v.updateIntArray([3622027469]),k(x.spatialReference.wkid,v,y);else if(x instanceof g)v.updateIntArray([14]),
void 0!==x.wkid&&null!==x.wkid&&v.updateIntArray([x.wkid]),x.wkt&&v.updateWithString(x.wkt);else{if(l.isFunctionParameter(x))throw Error("Type not supported in Hash");if(l.isFeatureSet(x))throw Error("Type not supported in Hash");l.isFeatureSetCollection(x);throw Error("Type not supported in Hash");}}}}Object.defineProperty(z,"__esModule",{value:!0});z.registerFunctions=void 0;z.registerFunctions=function(x,v){x.portal=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,1);return new b(l.toString(B[0]))})};
x.trim=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,1);return l.toString(B[0]).trim()})};x.tohex=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,1);t=l.toNumber(B[0]);return isNaN(t)?t:t.toString(16)})};x.upper=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,1);return l.toString(B[0]).toUpperCase()})};x.proper=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,2);t=1;2===B.length&&"firstword"===l.toString(B[1]).toLowerCase()&&(t=2);r=/\s/;B=l.toString(B[0]);for(var C=
"",F=!0,A=0;A<B.length;A++){var D=B[A];r.test(D)?1===t&&(F=!0):D.toUpperCase()!==D.toLowerCase()&&(F?(D=D.toUpperCase(),F=!1):D=D.toLowerCase());C+=D}return C})};x.lower=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,1);return l.toString(B[0]).toLowerCase()})};x.guid=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,0,1);if(0<B.length)switch(l.toString(B[0]).toLowerCase()){case "digits":return l.generateUUID().replace("-","").replace("-","").replace("-","").replace("-","");case "digits-hyphen":return l.generateUUID();
case "digits-hyphen-parentheses":return"("+l.generateUUID()+")"}return"{"+l.generateUUID()+"}"})};x.console=function(y,u){return v(y,u,function(t,r,B){0!==B.length&&(1===B.length?y.console(l.toString(B[0])):y.console(l.toString(B)));return l.voidOperation})};x.mid=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,2,3);t=l.toNumber(B[1]);if(isNaN(t))return"";0>t&&(t=0);if(2===B.length)return l.toString(B[0]).substr(t);r=l.toNumber(B[2]);if(isNaN(r))return"";0>r&&(r=0);return l.toString(B[0]).substr(t,
r)})};x.find=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,2,3);t=0;if(2<B.length){t=l.toNumber(l.defaultUndefined(B[2],0));if(isNaN(t))return-1;0>t&&(t=0)}return l.toString(B[1]).indexOf(l.toString(B[0]),t)})};x.left=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,2,2);t=l.toNumber(B[1]);if(isNaN(t))return"";0>t&&(t=0);return l.toString(B[0]).substr(0,t)})};x.right=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,2,2);t=l.toNumber(B[1]);if(isNaN(t))return"";0>t&&(t=0);return l.toString(B[0]).substr(-1*
t,t)})};x.split=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,2,4);t=l.toNumber(l.defaultUndefined(B[2],-1));r=l.toBoolean(l.defaultUndefined(B[3],!1));-1===t||null===t||!0===r?B=l.toString(B[0]).split(l.toString(B[1])):(isNaN(t)&&(t=-1),-1>t&&(t=-1),B=l.toString(B[0]).split(l.toString(B[1]),t));if(!1===r)return B;r=[];for(var C=0;C<B.length&&!(-1!==t&&r.length>=t);C++)""!==B[C]&&void 0!==B[C]&&r.push(B[C]);return r})};x.text=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,2);return l.toStringExplicit(B[0],
B[1])})};x.concatenate=function(y,u){return v(y,u,function(t,r,B){t=[];if(1>B.length)return"";if(l.isArray(B[0])){r=l.defaultUndefined(B[2],"");for(var C=0;C<B[0].length;C++)t[C]=l.toStringExplicit(B[0][C],r);return 1<B.length?t.join(B[1]):t.join("")}if(l.isImmutableArray(B[0])){r=l.defaultUndefined(B[2],"");for(C=0;C<B[0].length();C++)t[C]=l.toStringExplicit(B[0].get(C),r);return 1<B.length?t.join(B[1]):t.join("")}for(C=0;C<B.length;C++)t[C]=l.toStringExplicit(B[C]);return t.join("")})};x.reverse=
function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,1);if(l.isArray(B[0]))return t=B[0].slice(0),t.reverse(),t;if(l.isImmutableArray(B[0]))return t=B[0].toArray().slice(0),t.reverse(),t;throw Error("Invalid Parameter");})};x.replace=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,3,4);t=l.toString(B[0]);r=l.toString(B[1]);var C=l.toString(B[2]);return(4===B.length?l.toBoolean(B[3]):1)?l.multiReplace(t,r,C):t.replace(r,C)})};x.schema=function(y,u){return v(y,u,function(t,r,B){if(B[0]instanceof
n)return(t=B[0].schema())?p.convertObjectToArcadeDictionary(t):null;throw Error("Invalid Parameter");})};x.subtypes=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,1);if(B[0]instanceof n)return(t=B[0].subtypes())?p.convertObjectToArcadeDictionary(t):null;throw Error("Invalid Parameter");})};x.subtypecode=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,1);if(B[0]instanceof n){r=B[0].subtypes();if(!r)return null;if(r.subtypeField&&B[0].hasField(r.subtypeField))for(B=B[0].field(r.subtypeField),
t=0,r=r.subtypes;t<r.length;t++){var C=r[t];if(C.code===B)return C.code}return null}throw Error("Invalid Parameter");})};x.subtypename=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,1);if(B[0]instanceof n){r=B[0].subtypes();if(!r)return"";if(r.subtypeField&&B[0].hasField(r.subtypeField))for(B=B[0].field(r.subtypeField),t=0,r=r.subtypes;t<r.length;t++){var C=r[t];if(C.code===B)return C.name}return""}throw Error("Invalid Parameter");})};x.gdbversion=function(y,u){return v(y,u,function(t,r,
B){l.pcCheck(B,1,1);if(B[0]instanceof n)return B[0].gdbVersion();throw Error("Invalid Parameter");})};x.domain=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,2,3);if(B[0]instanceof n)return(t=B[0].fullDomain(l.toString(B[1]),void 0===B[2]?void 0:l.toNumber(B[2])))&&t.domain?"coded-value"===t.domain.type||"codedValue"===t.domain.type?p.convertObjectToArcadeDictionary({type:"codedValue",name:t.domain.name,dataType:q.layerFieldEsriConstants[t.field.type],codedValues:t.domain.codedValues.map(function(C){return{name:C.name,
code:C.code}})}):p.convertObjectToArcadeDictionary({type:"range",name:t.domain.name,dataType:q.layerFieldEsriConstants[t.field.type],min:t.domain.min,max:t.domain.max}):null;throw Error("Invalid Parameter");})};x.domainname=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,2,4);if(B[0]instanceof n)return B[0].domainValueLookup(l.toString(B[1]),B[2],void 0===B[3]?void 0:l.toNumber(B[3]));throw Error("Invalid Parameter");})};x.domaincode=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,2,
4);if(B[0]instanceof n)return B[0].domainCodeLookup(l.toString(B[1]),B[2],void 0===B[3]?void 0:l.toNumber(B[3]));throw Error("Invalid Parameter");})};x.urlencode=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,1);if(null===B[0])return"";if(B[0]instanceof p){t="";r=0;for(var C=B[0].keys();r<C.length;r++){var F=C[r],A=B[0].field(F);""!==t&&(t+="\x26");t=null===A?t+(encodeURIComponent(F)+"\x3d"):t+(encodeURIComponent(F)+"\x3d"+encodeURIComponent(A))}return t}return encodeURIComponent(l.toString(B[0]))})};
x.hash=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,1);t=new c.XXH(0);k(B[0],t,{map:new Map,currentLength:0});return t.digest()})};x.convertdirection=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,3,3);return f.convertDirection(B[0],B[1],B[2])})};x.fromjson=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,1);if(!1===l.isString(B[0]))throw Error("Invalid Parameter");return p.convertJsonToArcade(JSON.parse(l.toString(B[0])))})};x.expects=function(y,u){return v(y,u,function(t,
r,B){if(1>B.length)throw Error("Function called with wrong number of Parameters");return l.voidOperation})};x.tocharcode=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,2);t=l.toNumber(l.defaultUndefined(B[1],0));r=l.toString(B[0]);if(0===r.length&&1===B.length)return null;if(r.length<=t||0>t)throw Error("Illegal argument");return r.charCodeAt(t)})};x.tocodepoint=function(y,u){return v(y,u,function(t,r,B){l.pcCheck(B,1,2);t=l.toNumber(l.defaultUndefined(B[1],0));r=l.toString(B[0]);if(0===
r.length&&1===B.length)return null;if(r.length<=t||0>t)throw Error("Illegal argument");return r.codePointAt(t)})};x.fromcharcode=function(y,u){return v(y,u,function(t,r,B){if(1>B.length)throw Error("Function called with wrong number of Parameters");t=B.map(function(C){return Math.trunc(l.toNumber(C))}).filter(function(C){return 0<=C&&65535>=C});return 0===t.length?null:String.fromCharCode.apply(null,t)})};x.fromcodepoint=function(y,u){return v(y,u,function(t,r,B){if(1>B.length)throw Error("Function called with wrong number of Parameters");
try{var C=B.map(function(F){return Math.trunc(l.toNumber(F))}).filter(function(F){return 1114111>=F&&F>>>0===F})}catch(F){return null}return 0===C.length?null:String.fromCodePoint.apply(null,C)})}}})},"esri/arcade/functions/convertdirection":function(){define(["require","exports","../Dictionary","../languageUtils"],function(E,z,b,w){function p(la){if(!1===w.isString(la))throw Error("Invalid Parameter");return la}function n(la,ua){ua=Math.pow(10,ua);return Math.round(la*ua)/ua}function l(la){la=+la;
return isFinite(la)?la-la%1||(0>la?-0:0===la?la:0):la}function q(la){var ua=parseFloat(la.toString().replace(l(la).toString(),"0"))*((0<la)-(0>la)||+la);return 0>la?{fraction:ua,integer:Math.ceil(la)}:{fraction:ua,integer:Math.floor(la)}}function f(la,ua){switch(la){case 0:return"SHORT"===ua?"N":"North";case 1:return"SHORT"===ua?"E":"East";case 2:return"SHORT"===ua?"S":"South";case 3:return"SHORT"===ua?"W":"West"}}function c(la,ua,Aa){for(;la.length<Aa;)la=ua+la;return la}function a(la,ua){return la-
Math.floor(la/ua)*ua}function d(la){switch(la){case 6:case 1:return 360;case 4:return D;case 5:return 400;case 2:return 1296E3;case 7:return 60;case 8:return 60;default:throw Error("Unnexpected evaluations");}}function e(la){switch(la.toUpperCase().trim()){case "NORTH":case "NORTHAZIMUTH":case "NORTH AZIMUTH":return 1;case "POLAR":return 2;case "QUADRANT":return 3;case "SOUTH":case "SOUTHAZIMUTH":case "SOUTH AZIMUTH":return 4}throw Error("Unsupported direction type");}function h(la){switch(la.toUpperCase().trim()){case "D":case "DD":case "DECIMALDEGREE":case "DECIMAL DEGREE":case "DEGREE":case "DECIMALDEGREES":case "DECIMAL DEGREES":case "DEGREES":return 1;
case "DMS":case "DEGREESMINUTESSECONDS":case "DEGREES MINUTES SECONDS":return 3;case "R":case "RAD":case "RADS":case "RADIAN":case "RADIANS":return 4;case "G":case "GON":case "GONS":case "GRAD":case "GRADS":case "GRADIAN":case "GRADIANS":return 5}throw Error("Unsupported units");}function m(la,ua,Aa){var M=null;switch(ua){case 1:M=z.preciseMultiply(la,3600);break;case 2:M=la;break;case 5:M=z.preciseMultiply(la,3240);break;case 4:M=z.preciseMultiply(la,G);break;default:throw Error("Unnexpected evaluation");
}switch(Aa){case 1:return z.preciseDivide(M,3600);case 2:return M;case 5:return z.preciseDivide(M,3240);case 4:return M/G;default:throw Error("Unnexpected evaluation");}}function g(la){switch(la){case 1:case 6:case 3:return 1;case 5:return 5;case 7:return 7;case 4:return 4;case 2:case 8:return 2}}function k(la){switch(w.toNumber(la)){case 1:return{first:0,second:1};case 2:return{first:2,second:1};case 3:return{first:2,second:3};case 4:return{first:0,second:3}}return null}function x(la){switch(la.toUpperCase().trim()){case "N":case "NORTH":return 0;
case "E":case "EAST":return 1;case "S":case "SOUTH":return 2;case "W":case "WEST":return 3}return null}function v(la){la=parseFloat(la);if(w.isNumber(la)){if(isNaN(la))throw Error("Invalid conversion");return la}throw Error("Invalid conversion");}function y(la,ua,Aa){var M=3===Aa,Y=null,ka=null,N=0,Z=0;Z=0;if(M){if(2>la.length)throw Error("Conversion Error");Z=1;(ka=k(w.toString(la[la.length-1])))?(Y=ka.first,ka=ka.second):(N=1,Y=x(w.toString(la[0])),ka=x(w.toString(la[la.length-1])));if(null===Y||
null===ka)throw Error("Invalid Conversion");}switch(ua){case 1:case 4:case 5:if(0===la.length)throw Error("Invalid Conversion");return M?ja.createFromAngleMeridianAndDirection(pa.createFromAngleAndUnits(v(la[N]),g(ua)),Y,ka):ja.createFromAngleAndDirection(pa.createFromAngleAndUnits(v(la[N]),g(ua)),Aa);case 3:Z=la.length-Z-N;if(3===Z)return la=pa.createFromDegreesMinutesSeconds(v(la[N]),v(la[N+1]),v(la[N+2])),M?ja.createFromAngleMeridianAndDirection(la,Y,ka):ja.createFromAngleAndDirection(la,Aa);if(1===
Z)return la=v(la[N]),la=ia.number_to_dms(la),la=pa.createFromDegreesMinutesSeconds(la.m_degrees,la.m_minutes,la.m_seconds),M?ja.createFromAngleMeridianAndDirection(la,Y,ka):ja.createFromAngleAndDirection(la,Aa)}throw Error("Conversion Error");}function u(la){for(var ua=[" ","-","/","'",'"',"\\","^","\u00b0",H,"\t","\r","\n","*"],Aa="",M=0;M<la.length;M++){var Y=la.charAt(M);Aa=-1!==ua.indexOf(Y)?Aa+"RRSPLITRRSPLITRR":Aa+Y}return Aa.split("RRSPLITRRSPLITRR").filter(function(ka){return""!==ka})}function t(la,
ua,Aa){for(var M={padding:0,rounding:0,newpos:ua},Y=!1;ua<la.length;){var ka=la[ua];if(ka===Aa)Y?M.rounding++:M.padding++,ua++;else if("."===ka)Y=!0,ua++;else break}M.newpos=ua-1;return M}Object.defineProperty(z,"__esModule",{value:!0});z.convertDirection=z.preciseDivide=z.preciseMultiply=z.preciseMinus=z.preciseAdd=void 0;var r=function(la){return function(ua,Aa,M){M=M||14;return+la(ua,Aa).toFixed(M)}},B=function(la,ua){return la+ua},C=function(la,ua){return la-ua},F=function(la,ua){return la*ua},
A=function(la,ua){return la/ua};z.preciseAdd=function(la,ua,Aa){return r(B)(la,ua,Aa)};z.preciseMinus=function(la,ua,Aa){return r(C)(la,ua,Aa)};z.preciseMultiply=function(la,ua,Aa){return r(F)(la,ua,Aa)};z.preciseDivide=function(la,ua,Aa){return r(A)(la,ua,Aa)};var D=2*Math.PI,G=648E3/Math.PI,H=String.fromCharCode(7501),L;(function(la){la[la.north=0]="north";la[la.east=1]="east";la[la.south=2]="south";la[la.west=3]="west"})(L||(L={}));var aa;(function(la){la[la.decimal_degrees=1]="decimal_degrees";
la[la.seconds=2]="seconds";la[la.degrees_minutes_seconds=3]="degrees_minutes_seconds";la[la.radians=4]="radians";la[la.gradians=5]="gradians";la[la.truncated_degrees=6]="truncated_degrees";la[la.fractional_degree_minutes=7]="fractional_degree_minutes";la[la.fractional_minute_seconds=8]="fractional_minute_seconds"})(aa||(aa={}));var da;(function(la){la[la.north_azimuth=1]="north_azimuth";la[la.polar=2]="polar";la[la.quadrant=3]="quadrant";la[la.south_azimuth=4]="south_azimuth"})(da||(da={}));var ha;
(function(la){la[la.meridian=0]="meridian";la[la.direction=1]="direction"})(ha||(ha={}));var ia=function(){function la(ua,Aa,M){this.m_degrees=ua;this.m_minutes=Aa;this.m_seconds=M}la.prototype.get_field=function(ua){switch(ua){case 1:case 6:return this.m_degrees;case 7:return this.m_minutes;case 2:case 8:return this.m_seconds;default:throw Error("Unnexpected evaluation");}};la.seconds_to_DMS=function(ua){var Aa=q(ua).fraction;ua=q(ua).integer;var M=Math.floor(ua/3600);ua-=3600*M;var Y=Math.floor(ua/
60);return new la(M,Y,ua-60*Y+Aa)};la.number_to_dms=function(ua){var Aa=q(ua).fraction;ua=q(ua).integer;var M=z.preciseMultiply(q(100*Aa).fraction,100);Aa=q(100*Aa).integer;return new la(ua,Aa,M)};la.prototype.format=function(ua,Aa){Aa=n(this.m_seconds,Aa);var M=this.m_minutes,Y=this.m_degrees;if(2===ua||8===ua)60<=Aa&&(Aa-=60,++M),60<=M&&(M=0,++Y),360<=Y&&(Y=0);else if(7===ua)Aa=0,M=30<=this.m_seconds?this.m_minutes+1:this.m_minutes,Y=this.m_degrees,60<=M&&(M=0,++Y),360<=Y&&(Y=0);else if(1===ua||
6===ua)ua=z.preciseDivide(this.m_seconds,3600),Aa=z.preciseDivide(this.m_minutes,60),Y=Math.round(this.m_degrees+Aa+ua),Aa=M=0;return new la(Y,M,Aa)};la.DMS_to_seconds=function(ua,Aa,M){return 3600*ua+60*Aa+M};return la}(),ba=function(){function la(ua,Aa,M){this.meridian=ua;this.angle=Aa;this.direction=M}la.prototype.fetch_azimuth=function(ua){return 0===ua?this.meridian:this.direction};return la}(),ja=function(){function la(ua){this.m_angle=ua}la.createFromAngleAndDirection=function(ua,Aa){return new la(new pa(la.convertDirectionFormat(ua.extract_angular_units(2),
Aa,1)))};la.prototype.getAngle=function(ua){var Aa=this.m_angle.extract_angular_units(2);switch(ua){case 1:case 4:case 2:return ua=new pa(la.convertDirectionFormat(Aa,1,ua));case 3:return ua=la.seconds_north_azimuth_to_quadrant(Aa),ua=new pa(ua.angle)}};la.prototype.getMeridian=function(ua){var Aa=this.m_angle.extract_angular_units(2);switch(ua){case 1:return 0;case 4:return 2;case 2:return 1;case 3:return la.seconds_north_azimuth_to_quadrant(Aa).meridian}};la.prototype.getDirection=function(ua){var Aa=
this.m_angle.extract_angular_units(2);switch(ua){case 1:return 1;case 4:return 3;case 2:return 0;case 3:return la.seconds_north_azimuth_to_quadrant(Aa).direction}};la.seconds_north_azimuth_to_quadrant=function(ua){var Aa=324E3>=ua||972E3<=ua?0:2;return new ba(Aa,0===Aa?Math.min(1296E3-ua,ua):Math.abs(ua-648E3),648E3<ua?3:1)};la.createFromAngleMeridianAndDirection=function(ua,Aa,M){return new la(new pa(la.secondsQuadrantToNorthAzimuth(ua.extract_angular_units(2),Aa,M)))};la.secondsQuadrantToNorthAzimuth=
function(ua,Aa,M){return 0===Aa?1===M?ua:1296E3-ua:1===M?648E3-ua:648E3+ua};la.convertDirectionFormat=function(ua,Aa,M){var Y=0;switch(Aa){case 1:Y=ua;break;case 2:Y=324E3-ua;break;case 3:throw Error("Unnexpected evaluation");case 4:Y=ua+648E3}ua=0;switch(M){case 1:ua=Y;break;case 2:ua=324E3-Y;break;case 3:throw Error("Unnexpected evaluation");case 4:ua=Y-648E3}ua%=1296E3;return 0>ua?1296E3+ua:ua};return la}(),pa=function(){function la(ua){this.m_seconds=ua}la.createFromAngleAndUnits=function(ua,
Aa){return new la(m(ua,Aa,2))};la.prototype.extract_angular_units=function(ua){return m(this.m_seconds,2,g(ua))};la.createFromDegreesMinutesSeconds=function(ua,Aa,M){return new la(z.preciseAdd(z.preciseAdd(z.preciseMultiply(ua,3600),z.preciseMultiply(Aa,60)),M))};return la}(),Ca=function(){function la(ua,Aa,M,Y){this.m_view=ua;this.m_angle=Aa;this.m_merdian=M;this.m_direction=Y;this.m_formatted_dms=this.m_dms=null}la.createFromStringAndBearing=function(ua,Aa,M){return new la(ua,Aa.getAngle(M),Aa.getMeridian(M),
Aa.getDirection(M))};la.prototype.fetch_angle=function(){return this.m_angle};la.prototype.fetch_meridian=function(){return this.m_merdian};la.prototype.fetch_direction=function(){return this.m_direction};la.prototype.fetch_m_view=function(){return this.m_view};la.prototype.fetch_dms=function(){null===this.m_dms&&this.calculate_dms();return this.m_dms};la.prototype.fetch_formatted_dms=function(){null===this.m_formatted_dms&&this.calculate_dms();return this.m_formatted_dms};la.prototype.calculate_dms=
function(){var ua=null,Aa=6,M=0;for(ua=0;ua<this.m_view.length;ua++){var Y=this.m_view[ua];switch(Y){case "m":ua=t(this.m_view,ua,Y);Aa=6===Aa?7:Aa;ua=ua.newpos;continue;case "s":ua=t(this.m_view,ua,Y),Aa=8,M=M<ua.rounding?ua.rounding:M,ua=ua.newpos}}this.m_dms=ia.seconds_to_DMS(this.m_angle.extract_angular_units(2));this.m_formatted_dms=ia.seconds_to_DMS(this.m_angle.extract_angular_units(2)).format(Aa,M)};return la}();z.convertDirection=function(la,ua,Aa){if(!(ua instanceof b))throw Error("Invalid Parameter");
if(!1===ua.hasField("directionType"))throw Error("Invalid Parameter - Missing directionType");if(!1===ua.hasField("angleType"))throw Error("Invalid Parameter - Missing directionType");var M=e(p(ua.field("directiontype")));ua=h(p(ua.field("angletype")));if(w.isNumber(la)){la=w.toNumber(la);if(3===M)throw Error("Conversion error");3===ua?(la=ia.number_to_dms(la),ua=ja.createFromAngleAndDirection(pa.createFromDegreesMinutesSeconds(la.m_degrees,la.m_minutes,la.m_seconds),M)):ua=ja.createFromAngleAndDirection(pa.createFromAngleAndUnits(la,
g(ua)),M)}else if(w.isString(la))ua=y(u(la),ua,M);else if(w.isArray(la))ua=y(la,ua,M);else if(w.isImmutableArray(la))ua=y(la.toArray(),ua,M);else throw Error("Conversion Error");if(!(Aa instanceof b))throw Error("Invalid Parameter");if(!1===Aa.hasField("directionType"))throw Error("Invalid Parameter - Missing directionType");if(!1===Aa.hasField("outputType"))throw Error("Invalid Parameter - Missing directionType");M=e(p(Aa.field("directiontype")));la=Aa.hasField("angleType")?h(p(Aa.field("angletype"))):
null;var Y=p(Aa.field("outputType")).toUpperCase().trim();if(!M||!Y)throw Error("Conversion error");if(!(la||"TEXT"===Y&&Aa.hasField("format")))throw Error("Invalid unit");switch(Y){case "VALUE":if(3===M||3===la)return Aa=ua,ua=Aa.getAngle(M),3===M&&3===la?(la=ia.seconds_to_DMS(ua.extract_angular_units(2)),M=[f(Aa.getMeridian(M),"SHORT"),la.m_degrees,la.m_minutes,la.m_seconds,f(Aa.getDirection(M),"SHORT")]):3===la?(la=ia.seconds_to_DMS(ua.extract_angular_units(2)),M=[la.m_degrees,la.m_minutes,la.m_seconds]):
M=3===M?[f(Aa.getMeridian(M),"SHORT"),ua.extract_angular_units(la),f(Aa.getDirection(M),"SHORT")]:[ua.extract_angular_units(la)],M;Aa=ua;if((ua=g(la))&&3!==la)M=Aa.getAngle(M).extract_angular_units(ua);else throw Error("Conversion Error");return M;case "TEXT":Y="";Aa.hasField("format")&&(Y=w.toString(Aa.field("format")));if(null===Y||""===Y){Aa="";switch(la){case 1:Aa=3===M?"DD.DD\u00b0":"DDD.DD\u00b0";break;case 3:Aa=3===M?"dd\u00b0 mm' ss\"":"ddd\u00b0 mm' ss.ss\"";break;case 4:Aa="R.RR";break;
case 5:Aa="GGG.GG"+H;break;default:throw Error("Conversion error");}3===M&&(Aa="p "+Aa+" b");Y=Aa}Aa=ua;la=Y;var ka="",N=null,Z=null;ua=Ca.createFromStringAndBearing(la,Aa,M);Y={D:1,d:6,m:7,s:8,R:4,G:5};for(Z=0;Z<la.length;Z++){var na=la[Z];switch(na){case "[":N=la;na={escaped:"",newpos:Z};for(Z++;Z<N.length;){var za=N[Z];Z++;if("]"===za)break;na.escaped+=za}na.newpos=Z-1;N=na;ka+=N.escaped;Z=N.newpos;continue;case "D":case "d":case "m":case "s":case "R":case "G":N=t(la,Z,na);Z=Aa.getAngle(M);a:{na=
Y[na];za=N.padding;var va=N.rounding,S=ua,U=null;switch(na){case 1:case 4:case 5:U=a(n(Z.extract_angular_units(na),va),d(na));Z=c(U.toFixed(va),"0",za+va+(0<va?1:0));break a;case 6:case 7:U=a(S.fetch_formatted_dms().get_field(na),d(na));Z=c(U.toFixed(va),"0",za+va+(0<va?1:0));break a;case 8:U=a(n(S.fetch_dms().get_field(na),va),d(na));Z=c(U.toFixed(va),"0",za+va+(0<va?1:0));break a;default:throw Error("Unnexepected evaluation");}}ka+=Z;Z=N.newpos;continue;case "P":case "p":ka+=f(ua.fetch_meridian(),
"p"===na?"SHORT":"LONG");continue;case "B":case "b":ka+=f(ua.fetch_direction(),"b"===na?"SHORT":"LONG");continue;default:ka+=na}}return ka;default:throw Error("Invalid Parameter");}}})},"esri/arcade/functions/hash":function(){define(["require","exports"],function(E,z){function b(w){for(var p=[],n=0,l=w.length;n<l;n++){var q=w.charCodeAt(n);128>q?p.push(q):2048>q?p.push(192|q>>6,128|q&63):55296>q||57344<=q?p.push(224|q>>12,128|q>>6&63,128|q&63):(n++,q=65536+((q&1023)<<10|w.charCodeAt(n)&1023),p.push(240|
q>>18,128|q>>12&63,128|q>>6&63,128|q&63))}return new Uint8Array(p)}Object.defineProperty(z,"__esModule",{value:!0});z.XXH=void 0;E=function(){function w(p){this.seed=p;this.totallen=0;this.bufs=[];this.init()}w.prototype.init=function(){this.bufs=[];this.totallen=0;return this};w.prototype.updateFloatArray=function(p){for(var n=[],l=0;l<p.length;l++){var q=p[l];isNaN(q)?n.push("NaN"):Infinity===q?n.push("Infinity"):-Infinity===q?n.push("-Infinity"):0===q?n.push("0"):n.push(q.toString(16))}this.update(b(n.join("")))};
w.prototype.updateIntArray=function(p){p=Int32Array.from(p);this.update(new Uint8Array(p.buffer))};w.prototype.updateUint8Array=function(p){this.update(Uint8Array.from(p))};w.prototype.updateWithString=function(p){return this.update(b(p))};w.prototype.update=function(p){this.bufs.push(p);this.totallen+=p.length;return this};w.prototype.digest=function(){for(var p=new Uint8Array(this.totallen),n=0,l=0,q=this.bufs;l<q.length;l++){var f=q[l];p.set(f,n);n+=f.length}this.init();return this.xxHash32(p,
this.seed)};w.prototype.xxHash32=function(p,n){void 0===n&&(n=0);var l=n+374761393&4294967295,q=0;if(16<=p.length){l=[n+2654435761+2246822519&4294967295,n+2246822519&4294967295,n+0&4294967295,n-2654435761&4294967295];var f=p.length-16;for(q=n=0;(q&4294967280)<=f;q+=4){var c=q,a=p[c+0]+(p[c+1]<<8);c=p[c+2]+(p[c+3]<<8);a=l[n]+(2246822519*a+(2246822519*c<<16))&4294967295;a=a<<13|a>>>19;l[n]=2654435761*(a&65535)+(2654435761*(a>>>16)<<16)&4294967295;n=n+1&3}l=(l[0]<<1|l[0]>>>31)+(l[1]<<7|l[1]>>>25)+(l[2]<<
12|l[2]>>>20)+(l[3]<<18|l[3]>>>14)&4294967295}l=l+p.length&4294967295;for(n=p.length-4;q<=n;q+=4)c=q,a=p[c+0]+(p[c+1]<<8),c=p[c+2]+(p[c+3]<<8),l=l+(3266489917*a+(3266489917*c<<16))&4294967295,l=l<<17|l>>>15,l=668265263*(l&65535)+(668265263*(l>>>16)<<16)&4294967295;for(;q<p.length;++q)n=p[q],l+=374761393*n,l=l<<11|l>>>21,l=2654435761*(l&65535)+(2654435761*(l>>>16)<<16)&4294967295;l^=l>>>15;l=(2246822519*(l&65535)&4294967295)+(2246822519*(l>>>16)<<16);l^=l>>>13;l=(3266489917*(l&65535)&4294967295)+(3266489917*
(l>>>16)<<16);l^=l>>>16;return 0>l?l+4294967296:l};return w}();z.XXH=E})},"esri/arcade/arcadeRuntime":function(){define("require exports ./ArcadePortal ./Attachment ./Dictionary ./Feature ./FunctionWrapper ./ImmutablePathArray ./ImmutablePointArray ./languageUtils ./treeAnalysis ./functions/array ./functions/date ./functions/geometry ./functions/geomsync ./functions/maths ./functions/stats ./functions/string ../geometry/Extent ../geometry/Geometry ../geometry/Multipoint ../geometry/Point ../geometry/Polygon ../geometry/Polyline ../SpatialReference".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y,u,t,r,B,C){function F(S,U){for(var ma=[],ra=0;ra<U.arguments.length;ra++)ma.push(D(S,U.arguments[ra]));return ma}function A(S,U,ma){try{return!0===U.preparsed?ma(S,null,U.arguments):ma(S,U,F(S,U))}catch(ra){throw ra;}}function D(S,U){try{switch(U.type){case "EmptyStatement":return c.voidOperation;case "VariableDeclarator":var ma=null===U.init?null:D(S,U.init);ma===c.voidOperation&&(ma=null);if("Identifier"!==U.id.type)throw Error("Can only assign a regular variable");
var ra=U.id.name.toLowerCase();null!==S.localScope?S.localScope[ra]={value:ma,valueset:!0,node:U.init}:S.globalScope[ra]={value:ma,valueset:!0,node:U.init};return c.voidOperation;case "VariableDeclaration":for(var sa=0;sa<U.declarations.length;sa++)D(S,U.declarations[sa]);return c.voidOperation;case "BlockStatement":a:{var V=c.voidOperation;for(sa=0;sa<U.body.length;sa++)if(V=D(S,U.body[sa]),V instanceof c.ReturnResult||V===c.breakResult||V===c.continueResult){var W=V;break a}W=V}return W;case "FunctionDeclaration":var oa=
U.id.name.toLowerCase();S.globalScope[oa]={valueset:!0,node:null,value:new l(U,S)};return c.voidOperation;case "ReturnStatement":if(null===U.argument)var ta=new c.ReturnResult(c.voidOperation);else{var Ba=D(S,U.argument);ta=new c.ReturnResult(Ba)}return ta;case "IfStatement":if("AssignmentExpression"===U.test.type||"UpdateExpression"===U.test.type)throw Error(a.nodeErrorMessage(U.test,"RUNTIME","CANNOT_USE_ASSIGNMENT_IN_CONDITION"));var Ra=D(S,U.test);if(!0===Ra)var Va=D(S,U.consequent);else if(!1===
Ra)Va=null!==U.alternate?D(S,U.alternate):c.voidOperation;else throw Error(a.nodeErrorMessage(U,"RUNTIME","CANNOT_USE_NONBOOLEAN_IN_CONDITION"));return Va;case "ExpressionStatement":if("AssignmentExpression"===U.expression.type||"UpdateExpression"===U.expression.type)var Za=D(S,U.expression);else{var Qa=D(S,U.expression);Za=Qa===c.voidOperation?c.voidOperation:new c.ImplicitResult(Qa)}return Za;case "AssignmentExpression":var J=D(S,U.right);sa=null;var Q="";if("MemberExpression"===U.left.type){sa=
D(S,U.left.object);!0===U.left.computed?Q=D(S,U.left.property):"Identifier"===U.left.property.type&&(Q=U.left.property.name);if(c.isArray(sa))if(c.isNumber(Q)){0>Q&&(Q=sa.length+Q);if(0>Q||Q>sa.length)throw Error("Assignment outside of array bounds");if(Q===sa.length&&"\x3d"!==U.operator)throw Error("Invalid Parameter");sa[Q]=H(J,U.operator,sa[Q],U)}else throw Error("Invalid Parameter");else if(sa instanceof p){if(!1===c.isString(Q))throw Error("Dictionary accessor must be a string");if(!0===sa.hasField(Q))sa.setField(Q,
H(J,U.operator,sa.field(Q),U));else{if("\x3d"!==U.operator)throw Error("Invalid Parameter");sa.setField(Q,H(J,U.operator,null,U))}}else if(sa instanceof n){if(!1===c.isString(Q))throw Error("Feature accessor must be a string");if(!0===sa.hasField(Q))sa.setField(Q,H(J,U.operator,sa.field(Q),U));else{if("\x3d"!==U.operator)throw Error("Invalid Parameter");sa.setField(Q,H(J,U.operator,null,U))}}else{if(c.isImmutableArray(sa))throw Error("Array is Immutable");throw Error("Invalid Parameter");}var ea=
c.voidOperation}else if(sa=U.left.name.toLowerCase(),null!==S.localScope&&void 0!==S.localScope[sa])S.localScope[sa]={value:H(J,U.operator,S.localScope[sa].value,U),valueset:!0,node:U.right},ea=c.voidOperation;else if(void 0!==S.globalScope[sa])S.globalScope[sa]={value:H(J,U.operator,S.globalScope[sa].value,U),valueset:!0,node:U.right},ea=c.voidOperation;else throw Error("Variable not recognised");return ea;case "UpdateExpression":sa=null;Q="";if("MemberExpression"===U.argument.type){sa=D(S,U.argument.object);
!0===U.argument.computed?Q=D(S,U.argument.property):"Identifier"===U.argument.property.type&&(Q=U.argument.property.name);if(c.isArray(sa))if(c.isNumber(Q)){0>Q&&(Q=sa.length+Q);if(0>Q||Q>=sa.length)throw Error("Assignment outside of array bounds");var K=c.toNumber(sa[Q]);sa[Q]="++"===U.operator?K+1:K-1}else throw Error("Invalid Parameter");else if(sa instanceof p){if(!1===c.isString(Q))throw Error("Dictionary accessor must be a string");if(!0===sa.hasField(Q))K=c.toNumber(sa.field(Q)),sa.setField(Q,
"++"===U.operator?K+1:K-1);else throw Error("Invalid Parameter");}else if(sa instanceof n){if(!1===c.isString(Q))throw Error("Feature accessor must be a string");if(!0===sa.hasField(Q))K=c.toNumber(sa.field(Q)),sa.setField(Q,"++"===U.operator?K+1:K-1);else throw Error("Invalid Parameter");}else{if(c.isImmutableArray(sa))throw Error("Array is Immutable");throw Error("Invalid Parameter");}var T=!1===U.prefix?K:"++"===U.operator?K+1:K-1}else{sa="Identifier"===U.argument.type?U.argument.name.toLowerCase():
"";if(!sa)throw Error("Invalid identifier");if(null!==S.localScope&&void 0!==S.localScope[sa])K=c.toNumber(S.localScope[sa].value),S.localScope[sa]={value:"++"===U.operator?K+1:K-1,valueset:!0,node:U},T=!1===U.prefix?K:"++"===U.operator?K+1:K-1;else if(void 0!==S.globalScope[sa])K=c.toNumber(S.globalScope[sa].value),S.globalScope[sa]={value:"++"===U.operator?K+1:K-1,valueset:!0,node:U},T=!1===U.prefix?K:"++"===U.operator?K+1:K-1;else throw Error("Variable not recognised");}return T;case "BreakStatement":return c.breakResult;
case "ContinueStatement":return c.continueResult;case "TemplateElement":return U.value?U.value.cooked:"";case "TemplateLiteral":var fa="",qa=0;ea=0;for(sa=U.quasis;ea<sa.length;ea++)if(Q=sa[ea],fa+=Q.value?Q.value.cooked:"",!1===Q.tail){var ya=U.expressions[qa]?c.toString(D(S,U.expressions[qa])):"";fa+=ya;qa++}return fa;case "ForStatement":null!==U.init&&D(S,U.init);qa={testResult:!0,lastAction:c.voidOperation};do b:{sa=S;Q=U;ya=qa;if(null!==Q.test){ya.testResult=D(sa,Q.test);if(!1===ya.testResult)break b;
if(!0!==ya.testResult)throw Error(a.nodeErrorMessage(Q,"RUNTIME","CANNOT_USE_NONBOOLEAN_IN_CONDITION"));}ya.lastAction=D(sa,Q.body);ya.lastAction===c.breakResult?ya.testResult=!1:ya.lastAction instanceof c.ReturnResult?ya.testResult=!1:null!==Q.update&&D(sa,Q.update)}while(!0===qa.testResult);fa=qa.lastAction instanceof c.ReturnResult?qa.lastAction:c.voidOperation;return fa;case "ForInStatement":return G(S,U);case "Identifier":return ba(S,U);case "MemberExpression":return aa(S,U);case "Literal":return U.value;
case "CallExpression":return ja(S,U);case "UnaryExpression":return da(S,U);case "BinaryExpression":return ha(S,U);case "LogicalExpression":return ia(S,U);case "ArrayExpression":try{for(sa=[],Q=0;Q<U.elements.length;Q++){var Fa=D(S,U.elements[Q]);if(c.isFunctionParameter(Fa))throw Error(a.nodeErrorMessage(U,"RUNTIME","FUNCTIONCONTEXTILLEGAL"));Fa===c.voidOperation?sa.push(null):sa.push(Fa)}}catch(Pa){throw Pa;}return sa;case "ObjectExpression":sa={};for(Q=0;Q<U.properties.length;Q++){var Ea=D(S,U.properties[Q]);
if(c.isFunctionParameter(Ea.value))throw Error("Illegal Argument");if(!1===c.isString(Ea.key))throw Error("Illegal Argument");sa[Ea.key.toString()]=Ea.value===c.voidOperation?null:Ea.value}var Ta=new p(sa);Ta.immutable=!1;return Ta;case "Property":return{key:"Identifier"===U.key.type?U.key.name:D(S,U.key),value:D(S,U.value)};default:throw Error(a.nodeErrorMessage(U,"RUNTIME","UNREOGNISED"));}}catch(Pa){throw Pa;}}function G(S,U){var ma=D(S,U.right);"VariableDeclaration"===U.left.type&&D(S,U.left);
var ra=null,sa="";if("VariableDeclaration"===U.left.type){var V=U.left.declarations[0].id;"Identifier"===V.type&&(sa=V.name)}else"Identifier"===U.left.type&&(sa=U.left.name);if(!sa)throw Error(a.nodeErrorMessage(U,"RUNTIME","INVALIDVARIABLE"));sa=sa.toLowerCase();null!==S.localScope&&void 0!==S.localScope[sa]&&(ra=S.localScope[sa]);null===ra&&void 0!==S.globalScope[sa]&&(ra=S.globalScope[sa]);if(null===ra)throw Error(a.nodeErrorMessage(U,"RUNTIME","VARIABLENOTDECLARED"));if(c.isArray(ma)||c.isString(ma)){ma=
ma.length;for(V=0;V<ma;V++){ra.value=V;sa=D(S,U.body);if(sa===c.breakResult)break;if(sa instanceof c.ReturnResult)return sa}return c.voidOperation}if(c.isImmutableArray(ma)){for(V=0;V<ma.length();V++){ra.value=V;sa=D(S,U.body);if(sa===c.breakResult)break;if(sa instanceof c.ReturnResult)return sa}return c.voidOperation}if(ma instanceof p||ma instanceof n)for(ma=ma.keys(),V=0;V<ma.length;V++){ra.value=ma[V];sa=D(S,U.body);if(sa===c.breakResult)break;if(sa instanceof c.ReturnResult)return sa}else return c.voidOperation}
function H(S,U,ma,ra){switch(U){case "\x3d":return S===c.voidOperation?null:S;case "/\x3d":return c.toNumber(ma)/c.toNumber(S);case "*\x3d":return c.toNumber(ma)*c.toNumber(S);case "-\x3d":return c.toNumber(ma)-c.toNumber(S);case "+\x3d":return c.isString(ma)||c.isString(S)?c.toString(ma)+c.toString(S):c.toNumber(ma)+c.toNumber(S);case "%\x3d":return c.toNumber(ma)%c.toNumber(S);default:throw Error(a.nodeErrorMessage(ra,"RUNTIME","OPERATORNOTRECOGNISED"));}}function L(S,U,ma){U=U.toLowerCase();switch(U){case "hasz":return S=
S.hasZ,void 0===S?!1:S;case "hasm":return S=S.hasM,void 0===S?!1:S;case "spatialreference":return U=S.spatialReference._arcadeCacheId,void 0===U&&(ma=!0,Object.freeze&&Object.isFrozen(S.spatialReference)&&(ma=!1),ma&&(Z++,U=S.spatialReference._arcadeCacheId=Z)),S=new p({wkt:S.spatialReference.wkt,wkid:S.spatialReference.wkid}),void 0!==U&&(S._arcadeCacheId="SPREF"+U.toString()),S}switch(S.type){case "extent":switch(U){case "xmin":case "xmax":case "ymin":case "ymax":case "zmin":case "zmax":case "mmin":case "mmax":return S=
S[U],void 0!==S?S:null;case "type":return"Extent"}break;case "polygon":switch(U){case "rings":return U=S.getCacheValue("_arcadeCacheId"),void 0===U&&(Z++,U=Z,S.setCacheValue("_arcadeCacheId",U)),S=new q(S.rings,S.spatialReference,!0===S.hasZ,!0===S.hasM,U);case "type":return"Polygon"}break;case "point":switch(U){case "x":case "y":case "z":case "m":return void 0!==S[U]?S[U]:null;case "type":return"Point"}break;case "polyline":switch(U){case "paths":return U=S.getCacheValue("_arcadeCacheId"),void 0===
U&&(Z++,U=Z,S.setCacheValue("_arcadeCacheId",U)),S=new q(S.paths,S.spatialReference,!0===S.hasZ,!0===S.hasM,U);case "type":return"Polyline"}break;case "multipoint":switch(U){case "points":return U=S.getCacheValue("_arcadeCacheId"),void 0===U&&(Z++,U=Z,S.setCacheValue("_arcadeCacheId",U)),S=new f(S.points,S.spatialReference,!0===S.hasZ,!0===S.hasM,U,1);case "type":return"Multipoint"}}throw Error(a.nodeErrorMessage(ma,"RUNTIME","PROPERTYNOTFOUND"));}function aa(S,U){try{var ma=D(S,U.object);if(null===
ma)throw Error(a.nodeErrorMessage(U,"RUNTIME","NOTFOUND"));if(!1===U.computed){if("Identifier"===U.property.type){if(ma instanceof p||ma instanceof n)return ma.field(U.property.name);if(ma instanceof y)return L(ma,U.property.name,U)}throw Error(a.nodeErrorMessage(U,"RUNTIME","INVALIDTYPE"));}var ra=D(S,U.property);if(ma instanceof p||ma instanceof n){if(c.isString(ra))return ma.field(ra);throw Error(a.nodeErrorMessage(U,"RUNTIME","INVALIDTYPE"));}if(ma instanceof y){if(c.isString(ra))return L(ma,
ra,U);throw Error(a.nodeErrorMessage(U,"RUNTIME","INVALIDTYPE"));}if(c.isArray(ma)){if(c.isNumber(ra)&&isFinite(ra)&&Math.floor(ra)===ra){0>ra&&(ra=ma.length+ra);if(ra>=ma.length||0>ra)throw Error(a.nodeErrorMessage(U,"RUNTIME","OUTOFBOUNDS"));return ma[ra]}throw Error(a.nodeErrorMessage(U,"RUNTIME","INVALIDTYPE"));}if(c.isString(ma)){if(c.isNumber(ra)&&isFinite(ra)&&Math.floor(ra)===ra){0>ra&&(ra=ma.length+ra);if(ra>=ma.length||0>ra)throw Error(a.nodeErrorMessage(U,"RUNTIME","OUTOFBOUNDS"));return ma[ra]}throw Error(a.nodeErrorMessage(U,
"RUNTIME","INVALIDTYPE"));}if(c.isImmutableArray(ma)&&c.isNumber(ra)&&isFinite(ra)&&Math.floor(ra)===ra){0>ra&&(ra=ma.length()+ra);if(ra>=ma.length()||0>ra)throw Error(a.nodeErrorMessage(U,"RUNTIME","OUTOFBOUNDS"));return ma.get(ra)}throw Error(a.nodeErrorMessage(U,"RUNTIME","INVALIDTYPE"));}catch(sa){throw sa;}}function da(S,U){try{var ma=D(S,U.argument);if(c.isBoolean(ma)){if("!"===U.operator)return!ma;if("-"===U.operator)return-1*c.toNumber(ma);if("+"===U.operator)return 1*c.toNumber(ma);if("~"===
U.operator)return~c.toNumber(ma);throw Error(a.nodeErrorMessage(U,"RUNTIME","NOTSUPPORTEDUNARYOPERATOR"));}if("~"===U.operator)return~c.toNumber(ma);if("-"===U.operator)return-1*c.toNumber(ma);if("+"===U.operator)return 1*c.toNumber(ma);throw Error(a.nodeErrorMessage(U,"RUNTIME","NOTSUPPORTEDUNARYOPERATOR"));}catch(ra){throw ra;}}function ha(S,U){try{var ma=[D(S,U.left),D(S,U.right)],ra=ma[0],sa=ma[1];switch(U.operator){case "|":case "\x3c\x3c":case "\x3e\x3e":case "\x3e\x3e\x3e":case "^":case "\x26":return c.binaryOperator(c.toNumber(ra),
c.toNumber(sa),U.operator);case "\x3d\x3d":return c.equalityTest(ra,sa);case "!\x3d":return!c.equalityTest(ra,sa);case "\x3c":return c.greaterThanLessThan(ra,sa,U.operator);case "\x3e":return c.greaterThanLessThan(ra,sa,U.operator);case "\x3c\x3d":return c.greaterThanLessThan(ra,sa,U.operator);case "\x3e\x3d":return c.greaterThanLessThan(ra,sa,U.operator);case "+":return c.isString(ra)||c.isString(sa)?c.toString(ra)+c.toString(sa):c.toNumber(ra)+c.toNumber(sa);case "-":return c.toNumber(ra)-c.toNumber(sa);
case "*":return c.toNumber(ra)*c.toNumber(sa);case "/":return c.toNumber(ra)/c.toNumber(sa);case "%":return c.toNumber(ra)%c.toNumber(sa);default:throw Error(a.nodeErrorMessage(U,"RUNTIME","OPERATORNOTRECOGNISED"));}}catch(V){throw V;}}function ia(S,U){try{if("AssignmentExpression"===U.left.type||"UpdateExpression"===U.left.type)throw Error(a.nodeErrorMessage(U.left,"RUNTIME","CANNOT_USE_ASSIGNMENT_IN_CONDITION"));if("AssignmentExpression"===U.right.type||"UpdateExpression"===U.right.type)throw Error(a.nodeErrorMessage(U.right,
"RUNTIME","CANNOT_USE_ASSIGNMENT_IN_CONDITION"));var ma=D(S,U.left);if(c.isBoolean(ma))switch(U.operator){case "||":if(!0===ma)return ma;var ra=D(S,U.right);if(c.isBoolean(ra))return ra;throw Error(a.nodeErrorMessage(U,"RUNTIME","ONLYORORAND"));case "\x26\x26":if(!1===ma)return ma;ra=D(S,U.right);if(c.isBoolean(ra))return ra;throw Error(a.nodeErrorMessage(U,"RUNTIME","ONLYORORAND"));default:throw Error(a.nodeErrorMessage(U,"RUNTIME","ONLYORORAND"));}throw Error(a.nodeErrorMessage(U,"RUNTIME","ONLYBOOLEAN"));
}catch(sa){throw sa;}}function ba(S,U){try{var ma=U.name.toLowerCase();if(null!==S.localScope&&void 0!==S.localScope[ma]){var ra=S.localScope[ma];if(!0===ra.valueset)return ra.value;ra.value=D(S,ra.node);ra.valueset=!0;return ra.value}if(void 0!==S.globalScope[ma]){ra=S.globalScope[ma];if(!0===ra.valueset)return ra.value;ra.value=D(S,ra.node);ra.valueset=!0;return ra.value}throw Error(a.nodeErrorMessage(U,"RUNTIME","VARIABLENOTFOUND"));}catch(sa){throw sa;}}function ja(S,U){try{if("Identifier"!==
U.callee.type)throw Error(a.nodeErrorMessage(U,"RUNTIME","ONLYNODESSUPPORTED"));if(null!==S.localScope&&void 0!==S.localScope[U.callee.name.toLowerCase()]){var ma=S.localScope[U.callee.name.toLowerCase()];if(ma.value instanceof c.NativeFunction)return ma.value.fn(S,U);if(ma.value instanceof l)return M(S,U,ma.value.definition);throw Error(a.nodeErrorMessage(U,"RUNTIME","NOTAFUNCTION"));}if(void 0!==S.globalScope[U.callee.name.toLowerCase()]){ma=S.globalScope[U.callee.name.toLowerCase()];if(ma.value instanceof
c.NativeFunction)return ma.value.fn(S,U);if(ma.value instanceof l)return M(S,U,ma.value.definition);throw Error(a.nodeErrorMessage(U,"RUNTIME","NOTAFUNCTION"));}throw Error(a.nodeErrorMessage(U,"RUNTIME","NOTFOUND"));}catch(ra){throw ra;}}function pa(S){return null==S?"":c.isArray(S)||c.isImmutableArray(S)?"Array":c.isDate(S)?"Date":c.isString(S)?"String":c.isBoolean(S)?"Boolean":c.isNumber(S)?"Number":S instanceof w?"Attachment":S instanceof b?"Portal":S instanceof p?"Dictionary":S instanceof n?
"Feature":S instanceof t?"Point":S instanceof r?"Polygon":S instanceof B?"Polyline":S instanceof u?"Multipoint":S instanceof v?"Extent":c.isFunctionParameter(S)?"Function":c.isFeatureSet(S)?"FeatureSet":c.isFeatureSetCollection(S)?"FeatureSetCollection":S===c.voidOperation?"":"number"===typeof S&&isNaN(S)?"Number":"Unrecognised Type"}function Ca(S,U,ma,ra){try{var sa=D(S,U.arguments[ma]);if(c.equalityTest(sa,ra))return D(S,U.arguments[ma+1]);var V=U.arguments.length-ma;return 1===V?D(S,U.arguments[ma]):
2===V?null:3===V?D(S,U.arguments[ma+2]):Ca(S,U,ma+2,ra)}catch(W){throw W;}}function la(S,U,ma,ra){try{if(!0===ra)return D(S,U.arguments[ma+1]);if(3===U.arguments.length-ma)return D(S,U.arguments[ma+2]);var sa=D(S,U.arguments[ma+2]);if(!1===c.isBoolean(sa))throw Error("WHEN needs boolean test conditions");return la(S,U,ma+2,sa)}catch(V){throw V;}}function ua(S,U){var ma=S.length,ra=Math.floor(ma/2);if(0===ma)return[];if(1===ma)return[S[0]];var sa=ua(S.slice(0,ra),U);S=ua(S.slice(ra,ma),U);for(ma=[];0<
sa.length||0<S.length;)0<sa.length&&0<S.length?(ra=U(sa[0],S[0]),isNaN(ra)&&(ra=0),0>=ra?(ma.push(sa[0]),sa=sa.slice(1)):(ma.push(S[0]),S=S.slice(1))):0<sa.length?(ma.push(sa[0]),sa=sa.slice(1)):0<S.length&&(ma.push(S[0]),S=S.slice(1));return ma}function Aa(S,U,ma){try{var ra=S.body;if(ma.length!==S.params.length)throw Error("Invalid Parameter calls to function.");for(var sa=0;sa<ma.length;sa++)U.localScope[S.params[sa].name.toLowerCase()]={value:ma[sa],valueset:!0,node:null};var V=D(U,ra);if(V instanceof
c.ReturnResult)return V.value;if(V===c.breakResult)throw Error("Cannot Break from a Function");if(V===c.continueResult)throw Error("Cannot Continue from a Function");return V instanceof c.ImplicitResult?V.value:V}catch(W){throw W;}}function M(S,U,ma){return A(S,U,function(ra,sa,V){ra={spatialReference:S.spatialReference,globalScope:S.globalScope,depthCounter:S.depthCounter+1,console:S.console,lrucache:S.lrucache,interceptor:S.interceptor,localScope:{}};if(64<ra.depthCounter)throw Error("Exceeded maximum function depth");
return Aa(ma,ra,V)})}function Y(S){return function(){var U={spatialReference:S.context.spatialReference,console:S.context.console,lrucache:S.context.lrucache,interceptor:S.context.interceptor,localScope:{},depthCounter:S.context.depthCounter+1,globalScope:S.context.globalScope};if(64<U.depthCounter)throw Error("Exceeded maximum function depth");return Aa(S.definition,U,arguments)}}function ka(S){console.log(S)}function N(S){for(var U={mode:"sync",compiled:!1,functions:{},signatures:[],standardFunction:A,
evaluateIdentifier:ba,arcadeCustomFunctionHandler:Y},ma=0;ma<S.length;ma++)S[ma].registerFunctions(U);for(var ra in U.functions)na[ra]={value:new c.NativeFunction(U.functions[ra]),valueset:!0,node:null},va.prototype[ra]=na[ra];for(ma=0;ma<U.signatures.length;ma++)a.addFunctionDeclaration(U.signatures[ma],"async")}Object.defineProperty(z,"__esModule",{value:!0});z.findFunctionCalls=z.referencesFunction=z.referencesMember=z.validateScript=z.extractExpectedFieldLiterals=z.extractFieldLiterals=z.executeScript=
z.extend=z.functionHelper=void 0;var Z=0,na={};e.registerFunctions(na,A);x.registerFunctions(na,A);g.registerFunctions(na,A);h.registerFunctions(na,A);k.registerFunctions(na,A);m.registerFunctions(na,A);na["typeof"]=function(S,U){return A(S,U,function(ma,ra,sa){c.pcCheck(sa,1,1);ma=pa(sa[0]);if("Unrecognised Type"===ma)throw Error("Unrecognised Type");return ma})};na.iif=function(S,U){try{c.pcCheck(null===U.arguments?[]:U.arguments,3,3);var ma=D(S,U.arguments[0]);if(!1===c.isBoolean(ma))throw Error("IF Function must have a boolean test condition");
var ra=D(S,U.arguments[1]),sa=D(S,U.arguments[2]);return!0===ma?ra:sa}catch(V){throw V;}};na.decode=function(S,U){try{if(2>U.arguments.length)throw Error("Missing Parameters");if(2===U.arguments.length)return D(S,U.arguments[1]);if(0===(U.arguments.length-1)%2)throw Error("Must have a default value result.");var ma=D(S,U.arguments[0]);return Ca(S,U,1,ma)}catch(ra){throw ra;}};na.when=function(S,U){try{if(3>U.arguments.length)throw Error("Missing Parameters");if(0===U.arguments.length%2)throw Error("Must have a default value result.");
var ma=D(S,U.arguments[0]);if(!1===c.isBoolean(ma))throw Error("WHEN needs boolean test conditions");return la(S,U,0,ma)}catch(ra){throw ra;}};na.top=function(S,U){return A(S,U,function(ma,ra,sa){c.pcCheck(sa,2,2);if(c.isArray(sa[0]))return c.toNumber(sa[1])>=sa[0].length?sa[0].slice(0):sa[0].slice(0,c.toNumber(sa[1]));if(c.isImmutableArray(sa[0]))return c.toNumber(sa[1])>=sa[0].length()?sa[0].slice(0):sa[0].slice(0,c.toNumber(sa[1]));throw Error("Top cannot accept this parameter type");})};na.first=
function(S,U){return A(S,U,function(ma,ra,sa){c.pcCheck(sa,1,1);return c.isArray(sa[0])?0===sa[0].length?null:sa[0][0]:c.isImmutableArray(sa[0])?0===sa[0].length()?null:sa[0].get(0):null})};na.sort=function(S,U){return A(S,U,function(ma,ra,sa){c.pcCheck(sa,1,2);ma=sa[0];c.isImmutableArray(ma)&&(ma=ma.toArray());if(!1===c.isArray(ma))throw Error("Illegal Argument");if(1<sa.length){if(!1===c.isFunctionParameter(sa[1]))throw Error("Illegal Argument");var V=Y(sa[1]);return ma=ua(ma,function(ta,Ba){return V(ta,
Ba)})}if(0===ma.length)return[];sa={};for(ra=0;ra<ma.length;ra++){var W=pa(ma[ra]);""!==W&&(sa[W]=!0)}if(!0===sa.Array||!0===sa.Dictionary||!0===sa.Feature||!0===sa.Point||!0===sa.Polygon||!0===sa.Polyline||!0===sa.Multipoint||!0===sa.Extent||!0===sa.Function)return ma.slice(0);ra=0;W="";for(var oa in sa)ra++,W=oa;return ma=1<ra||"String"===W?ua(ma,function(ta,Ba){if(null===ta||void 0===ta||ta===c.voidOperation)return null===Ba||void 0===Ba||Ba===c.voidOperation?0:1;if(null===Ba||void 0===Ba||Ba===
c.voidOperation)return-1;ta=c.toString(ta);Ba=c.toString(Ba);return ta<Ba?-1:ta===Ba?0:1}):"Number"===W?ua(ma,function(ta,Ba){return ta-Ba}):"Boolean"===W?ua(ma,function(ta,Ba){return ta===Ba?0:Ba?-1:1}):"Date"===W?ua(ma,function(ta,Ba){return Ba-ta}):ma.slice(0)})};for(var za in na)na[za]={value:new c.NativeFunction(na[za]),valueset:!0,node:null};var va=function(){};va.prototype=na;va.prototype.infinity={value:Number.POSITIVE_INFINITY,valueset:!0,node:null};va.prototype.pi={value:Math.PI,valueset:!0,
node:null};z.functionHelper={fixSpatialReference:c.fixSpatialReference,parseArguments:F,standardFunction:A};z.extend=N;N([d]);z.executeScript=function(S,U){var ma=U.spatialReference;if(null===ma||void 0===ma)ma=new C({wkid:102100});var ra=U.vars,sa=U.customfunctions,V=new va;ra||(ra={});sa||(sa={});var W=new p({newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"});W.immutable=!1;V.textformatting={value:W,valueset:!0,node:null};for(var oa in sa)V[oa]={value:new c.NativeFunction(sa[oa]),
native:!0,valueset:!0,node:null};for(oa in ra)V[oa]=ra[oa]&&"esri.Graphic"===ra[oa].declaredClass?{value:n.createFromGraphic(ra[oa]),valueset:!0,node:null}:{value:ra[oa],valueset:!0,node:null};S=D({spatialReference:ma,globalScope:V,localScope:null,console:U.console?U.console:ka,lrucache:U.lrucache,interceptor:U.interceptor,depthCounter:1},S.body[0].body);S instanceof c.ReturnResult&&(S=S.value);S instanceof c.ImplicitResult&&(S=S.value);S===c.voidOperation&&(S=null);if(S===c.breakResult)throw Error("Cannot return BREAK");
if(S===c.continueResult)throw Error("Cannot return CONTINUE");if(S instanceof l)throw Error("Cannot return FUNCTION");if(S instanceof c.NativeFunction)throw Error("Cannot return FUNCTION");return S};z.extractFieldLiterals=function(S,U){void 0===U&&(U=!1);return a.findFieldLiterals(S)};z.extractExpectedFieldLiterals=function(S){return a.findExpectedFieldLiterals(S)};z.validateScript=function(S,U){return a.validateScript(S,U,"simple")};z.referencesMember=function(S,U){return a.referencesMember(S,U)};
z.referencesFunction=function(S,U){return a.referencesFunction(S,U)};z.findFunctionCalls=function(S){return a.findFunctionCalls(S)}})},"esri/arcade/parser":function(){define(["require","exports","./treeAnalysis","./lib/arcade-parser"],function(E,z,b,w){Object.defineProperty(z,"__esModule",{value:!0});z.referencesFunction=z.referencesMember=z.extractExpectedFieldLiterals=z.validateScript=z.extractFieldLiterals=z.scriptCheck=z.parseScript=void 0;z.parseScript=function(p,n){void 0===n&&(n=[]);p=w.parse("function _() { "+
p+"\n}");if(null===p.body||void 0===p.body)throw Error("No formula provided.");if(0===p.body.length)throw Error("No formula provided.");if(0===p.body.length)throw Error("No formula provided.");if("BlockStatement"!==p.body[0].body.type)throw Error("Invalid formula content.");var l=b.validateLanguage(p);if(""!==l)throw Error(l);b.findScriptDependencies(p,n);return p};z.scriptCheck=function(p,n,l,q,f){var c=[];p="function _() { \n"+p+"\n}";try{var a=w.parse(p,{tolerant:!0,loc:!0,range:!0}),d=a.errors;
if(0<d.length)for(var e=0;e<d.length;e++)c.push({line:d[e].lineNumber-2,character:d[e].column,reason:d[e].description});var h=b.checkScript(a,n,l,q,f);for(n=0;n<h.length;n++)h[n].line-=2,h[n].range&&(h[n].range=[h[n][0]-15,h[n][1]-15]),h[n].loc&&(h[n].loc.start.line-=2,h[n].loc.end.line-=2),c.push(h[n])}catch(g){try{if("Unexpected token }"===g.description){var m=p.split("\n").length;g.lineNumber===m?(g.index=p.length-1,c.push({line:g.lineNumber-4,character:g.column,reason:"Unexpected end of script"})):
(g.index=p.length-1,c.push({line:g.lineNumber-2,character:g.column,reason:"Unexpected end of script"}))}else c.push({line:g.lineNumber-2,character:g.column,reason:g.description})}catch(k){}}return c};z.extractFieldLiterals=function(p,n){void 0===n&&(n=!1);return b.findFieldLiterals(p)};z.validateScript=function(p,n,l){return b.validateScript(p,n,l)};z.extractExpectedFieldLiterals=function(p){return b.findExpectedFieldLiterals(p)};z.referencesMember=function(p,n){return b.referencesMember(p,n)};z.referencesFunction=
function(p,n){return b.referencesFunction(p,n)}})},"esri/arcade/lib/arcade-parser":function(){var E=this&&this.__createBinding||(Object.create?function(b,w,p,n){void 0===n&&(n=p);Object.defineProperty(b,n,{enumerable:!0,get:function(){return w[p]}})}:function(b,w,p,n){void 0===n&&(n=p);b[n]=w[p]}),z=this&&this.__exportStar||function(b,w){for(var p in b)"default"===p||Object.prototype.hasOwnProperty.call(w,p)||E(w,b,p)};define("require exports ./comment-handler ./parser ./tokenizer ./syntax ./token ./nodes".split(" "),
function(b,w,p,n,l,q,f,c){Object.defineProperty(w,"__esModule",{value:!0});w.version=w.Syntax=w.tokenize=w.parse=void 0;w.parse=function(a,d,e){var h=null,m=function(v,y){e&&e(v,y);h&&h.visit(v,y)},g="function"===typeof e?m:void 0,k=!1;if(d){k="boolean"===typeof d.comment&&d.comment;var x="boolean"===typeof d.attachComment&&d.attachComment;if(k||x)h=new p.CommentHandler,h.attach=x,d.comment=!0,g=m}a=new n.Parser(a,d,g);d=a.parseScript();k&&h&&(d.comments=h.comments);a.config.tokens&&(d.tokens=a.tokens);
a.config.tolerant&&(d.errors=a.errorHandler.errors);return d};w.tokenize=function(a,d,e){a=new l.Tokenizer(a,d);d=[];var h=void 0;try{for(;;){var m=a.getNextToken();if(!m)break;e&&(m=e(m));d.push(m)}}catch(g){a.errorHandler.tolerate(g)}a.errorHandler.tolerant&&(h=a.errors());return{tokens:d,errors:h}};Object.defineProperty(w,"Syntax",{enumerable:!0,get:function(){return q.Syntax}});z(f,w);z(c,w);w.version="4.0.0-dev"})},"esri/arcade/lib/comment-handler":function(){define(["require","exports","./syntax"],
function(E,z,b){Object.defineProperty(z,"__esModule",{value:!0});z.CommentHandler=void 0;E=function(){function w(){this.attach=!1;this.comments=[];this.stack=[];this.leading=[];this.trailing=[]}w.prototype.insertInnerComments=function(p,n){if(p.type===b.Syntax.BlockStatement&&0===p.body.length){for(var l=[],q=this.leading.length-1;0<=q;--q){var f=this.leading[q];n.end.offset>=f.start&&(l.unshift(f.comment),this.leading.splice(q,1),this.trailing.splice(q,1))}l.length&&(p.innerComments=l)}};w.prototype.findTrailingComments=
function(p){var n=[];if(0<this.trailing.length){for(var l=this.trailing.length-1;0<=l;--l){var q=this.trailing[l];q.start>=p.end.offset&&n.unshift(q.comment)}this.trailing.length=0;return n}(l=this.stack[this.stack.length-1])&&l.node.trailingComments&&(q=l.node.trailingComments[0])&&q.range[0]>=p.end.offset&&(n=l.node.trailingComments,delete l.node.trailingComments);return n};w.prototype.findLeadingComments=function(p){for(var n=[],l;0<this.stack.length;){var q=this.stack[this.stack.length-1];if(q&&
q.start>=p.start.offset)l=q.node,this.stack.pop();else break}if(l){for(var f=(l.leadingComments?l.leadingComments.length:0)-1;0<=f;--f)q=l.leadingComments[f],q.range[1]<=p.start.offset&&(n.unshift(q),l.leadingComments.splice(f,1));l.leadingComments&&0===l.leadingComments.length&&delete l.leadingComments;return n}for(f=this.leading.length-1;0<=f;--f)q=this.leading[f],q.start<=p.start.offset&&(n.unshift(q.comment),this.leading.splice(f,1));return n};w.prototype.visitNode=function(p,n){if(!(p.type===
b.Syntax.Program&&0<p.body.length)){this.insertInnerComments(p,n);var l=this.findTrailingComments(n),q=this.findLeadingComments(n);0<q.length&&(p.leadingComments=q);0<l.length&&(p.trailingComments=l);this.stack.push({node:p,start:n.start.offset})}};w.prototype.visitComment=function(p,n){this.comments.push(p);this.attach&&(n={comment:{type:p.type,value:p.value,range:[n.start.offset,n.end.offset]},start:n.start.offset},p.loc&&(n.comment.loc=p.loc),this.leading.push(n),this.trailing.push(n))};w.prototype.visit=
function(p,n){"Line"===p.type||"Block"===p.type?this.visitComment(p,n):this.attach&&this.visitNode(p,n)};return w}();z.CommentHandler=E})},"esri/arcade/lib/syntax":function(){define(["require","exports"],function(E,z){Object.defineProperty(z,"__esModule",{value:!0});z.Syntax=void 0;z.Syntax={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",
ContinueStatement:"ContinueStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",
TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator"}})},"esri/arcade/lib/parser":function(){define("require exports ./assert ./error-handler ./messages ./nodes ./scanner ./syntax ./token".split(" "),function(E,z,b,w,p,n,l,q,f){Object.defineProperty(z,"__esModule",{value:!0});z.Parser=void 0;E=function(){function c(a,d,e){void 0===d&&
(d={});this.config={range:"boolean"===typeof d.range&&d.range,loc:"boolean"===typeof d.loc&&d.loc,source:null,tokens:"boolean"===typeof d.tokens&&d.tokens,comment:"boolean"===typeof d.comment&&d.comment,tolerant:"boolean"===typeof d.tolerant&&d.tolerant,globalReturn:!!d.globalReturn};this.config.loc&&d.source&&null!==d.source&&(this.config.source=String(d.source));this.delegate=e;this.errorHandler=new w.ErrorHandler;this.errorHandler.tolerant=this.config.tolerant;this.scanner=new l.Scanner(a,this.errorHandler);
this.scanner.trackComment=this.config.comment;this.operatorPrecedence={")":0,";":0,",":0,"\x3d":0,"]":0,"||":1,"\x26\x26":2,"|":3,"^":4,"\x26":5,"\x3d\x3d":6,"!\x3d":6,"\x3d\x3d\x3d":6,"!\x3d\x3d":6,"\x3c":7,"\x3e":7,"\x3c\x3d":7,"\x3e\x3d":7,"\x3c\x3c":8,"\x3e\x3e":8,"\x3e\x3e\x3e":8,"+":9,"-":9,"*":11,"/":11,"%":11};this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0};this.hasLineTerminator=!1;this.context={allowIn:!0,firstCoverInitializedNameError:null,
isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,curlyParsing:"asObject"};this.tokens=[];this.startMarker={index:0,line:this.scanner.lineNumber,column:0};this.lastMarker={index:0,line:this.scanner.lineNumber,column:0};this.nextToken();this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}c.prototype.tolerateError=function(a){for(var d=[],e=1;e<arguments.length;e++)d[e-1]=arguments[e];var h=d.slice();d=a.replace(/%(\d)/g,
function(m,g){b.assert(g<h.length,"Message reference must be in range");return h[g]});this.errorHandler.tolerateError(this.lastMarker.index,this.scanner.lineNumber,this.lastMarker.column+1,d)};c.prototype.unexpectedTokenError=function(a,d){var e=d||p.Messages.UnexpectedToken;a?(d||(e=2===a.type?p.Messages.UnexpectedEOS:3===a.type?p.Messages.UnexpectedIdentifier:6===a.type?p.Messages.UnexpectedNumber:8===a.type?p.Messages.UnexpectedString:10===a.type?p.Messages.UnexpectedTemplate:p.Messages.UnexpectedToken),
d=a.value.toString()):d="ILLEGAL";e=e.replace("%0",d);return a&&"number"===typeof a.lineNumber?this.errorHandler.createError(a.start,a.lineNumber,a.start-(this.lastMarker.index-this.lastMarker.column)+1,e):this.errorHandler.createError(this.lastMarker.index,this.lastMarker.line,this.lastMarker.column+1,e)};c.prototype.throwUnexpectedToken=function(a,d){throw this.unexpectedTokenError(a,d);};c.prototype.tolerateUnexpectedToken=function(a,d){this.errorHandler.tolerate(this.unexpectedTokenError(a,d))};
c.prototype.collectComments=function(){if(this.config.comment){var a=this.scanner.scanComments();if(a&&0<a.length&&this.delegate)for(var d=0;d<a.length;++d){var e=a[d],h=new n.Comment(e.multiLine?"Block":"Line",this.scanner.source.slice(e.slice[0],e.slice[1]));this.config.range&&(h.range=e.range);this.config.loc&&(h.loc=e.loc);this.delegate(h,{start:{line:e.loc.start.line,column:e.loc.start.column,offset:e.range[0]},end:{line:e.loc.end.line,column:e.loc.end.column,offset:e.range[1]}})}}else this.scanner.scanComments()};
c.prototype.peekAhead=function(a){var d=this,e=this.scanner.saveState();a.call(this,function(){d.scanner.scanComments();return d.scanner.lex()});this.scanner.restoreState(e)};c.prototype.getTokenRaw=function(a){return this.scanner.source.slice(a.start,a.end)};c.prototype.convertToken=function(a){var d={type:f.TokenName[a.type],value:this.getTokenRaw(a)};this.config.range&&(d.range=[a.start,a.end]);this.config.loc&&(d.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,
column:this.scanner.index-this.scanner.lineStart}});9===a.type&&(d.regex={pattern:a.pattern,flags:a.flags});return d};c.prototype.nextToken=function(){var a=this.lookahead;this.lastMarker.index=this.scanner.index;this.lastMarker.line=this.scanner.lineNumber;this.lastMarker.column=this.scanner.index-this.scanner.lineStart;this.collectComments();this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=
this.scanner.index-this.scanner.lineStart);var d=this.scanner.lex();this.hasLineTerminator=a.lineNumber!==d.lineNumber;this.lookahead=d;this.config.tokens&&2!==d.type&&this.tokens.push(this.convertToken(d));return a};c.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}};c.prototype.startNode=function(a,d){void 0===d&&(d=0);var e=a.start-a.lineStart,h=a.lineNumber;0>e&&(e+=d,h--);return{index:a.start,line:h,column:e}};c.prototype.finalize=
function(a,d){this.config.range&&(d.range=[a.index,this.lastMarker.index]);this.config.loc&&(d.loc={start:{line:a.line,column:a.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(d.loc.source=this.config.source));this.delegate&&this.delegate(d,{start:{line:a.line,column:a.column,offset:a.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}});return d};c.prototype.expect=function(a){var d=this.nextToken();7===d.type&&
d.value===a||this.throwUnexpectedToken(d)};c.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var a=this.lookahead;7===a.type&&","===a.value?this.nextToken():7===a.type&&";"===a.value?(this.nextToken(),this.tolerateUnexpectedToken(a)):this.tolerateUnexpectedToken(a,p.Messages.UnexpectedToken)}else this.expect(",")};c.prototype.expectKeyword=function(a){var d=this.nextToken();4===d.type&&d.value.toString().toLowerCase()===a.toLowerCase()||this.throwUnexpectedToken(d)};c.prototype.match=
function(a){return 7===this.lookahead.type&&this.lookahead.value===a};c.prototype.matchKeyword=function(a){return 4===this.lookahead.type&&this.lookahead.value.toLowerCase()===a.toLowerCase()};c.prototype.matchContextualKeyword=function(a){return 3===this.lookahead.type&&this.lookahead.value===a};c.prototype.matchAssign=function(){return 7!==this.lookahead.type?!1:n.AssignmentOperators.includes(this.lookahead.value)};c.prototype.isolateCoverGrammar=function(a){var d=this.context.isBindingElement,
e=this.context.isAssignmentTarget,h=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0;this.context.isAssignmentTarget=!0;this.context.firstCoverInitializedNameError=null;a=a.call(this);null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError);this.context.isBindingElement=d;this.context.isAssignmentTarget=e;this.context.firstCoverInitializedNameError=h;return a};c.prototype.inheritCoverGrammar=function(a){var d=
this.context.isBindingElement,e=this.context.isAssignmentTarget,h=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0;this.context.isAssignmentTarget=!0;this.context.firstCoverInitializedNameError=null;a=a.call(this);this.context.isBindingElement=this.context.isBindingElement&&d;this.context.isAssignmentTarget=this.context.isAssignmentTarget&&e;this.context.firstCoverInitializedNameError=h||this.context.firstCoverInitializedNameError;return a};c.prototype.consumeSemicolon=
function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)};c.prototype.parsePrimaryExpression=function(){var a=this.createNode();switch(this.lookahead.type){case 3:a=this.finalize(a,new n.Identifier(this.nextToken().value));break;case 6:case 8:this.context.isAssignmentTarget=
!1;this.context.isBindingElement=!1;var d=this.nextToken();var e=this.getTokenRaw(d);a=this.finalize(a,new n.Literal(d.value,e));break;case 1:this.context.isAssignmentTarget=!1;this.context.isBindingElement=!1;d=this.nextToken();e=this.getTokenRaw(d);a=this.finalize(a,new n.Literal("true"===d.value.toString().toLowerCase(),e));break;case 5:this.context.isAssignmentTarget=!1;this.context.isBindingElement=!1;d=this.nextToken();e=this.getTokenRaw(d);a=this.finalize(a,new n.Literal(null,e));break;case 10:a=
this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case "(":this.context.isBindingElement=!1;a=this.inheritCoverGrammar(this.parseGroupExpression);break;case "[":a=this.inheritCoverGrammar(this.parseArrayInitializer);break;case "{":a=this.inheritCoverGrammar(this.parseObjectInitializer);break;default:a=this.throwUnexpectedToken(this.nextToken())}break;case 4:this.context.isAssignmentTarget=!1;this.context.isBindingElement=!1;a=this.throwUnexpectedToken(this.nextToken());break;default:a=
this.throwUnexpectedToken(this.nextToken())}return a};c.prototype.parseArrayInitializer=function(){var a=this.createNode(),d=[];for(this.expect("[");!this.match("]");)this.match(",")?(this.nextToken(),d.push(null)):(d.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(","));this.expect("]");return this.finalize(a,new n.ArrayExpression(d))};c.prototype.parseObjectPropertyKey=function(){var a=this.createNode(),d=this.nextToken();switch(d.type){case 8:case 6:a=
this.finalize(a,new n.Literal(d.value,this.getTokenRaw(d)));break;case 3:case 1:case 5:case 4:a=this.finalize(a,new n.Identifier(d.value));break;default:a=this.throwUnexpectedToken(d)}return a};c.prototype.parseObjectProperty=function(){var a=this.createNode(),d=this.lookahead,e=!1,h=!1,m=null;if(3===d.type){var g=d.value;this.nextToken();e=this.match("[");m=this.finalize(a,new n.Identifier(g))}else this.match("*")?this.nextToken():(e=this.match("["),m=this.parseObjectPropertyKey());m||this.throwUnexpectedToken(this.lookahead);
g=null;this.match(":")?(this.nextToken(),g=this.inheritCoverGrammar(this.parseAssignmentExpression)):3===d.type?(g=this.finalize(a,new n.Identifier(d.value)),h=!0):this.throwUnexpectedToken(this.nextToken());return this.finalize(a,new n.Property("init",m,e,g,!1,h))};c.prototype.parseObjectInitializer=function(){var a=this.createNode();this.expect("{");for(var d=[];!this.match("}");)d.push(this.parseObjectProperty()),this.match("}")||this.expectCommaSeparator();this.expect("}");return this.finalize(a,
new n.ObjectExpression(d))};c.prototype.parseTemplateHead=function(){b.assert(this.lookahead.head,"Template literal must start with a template head");var a=this.createNode(),d=this.nextToken();return this.finalize(a,new n.TemplateElement({raw:d.value,cooked:d.cooked},d.tail))};c.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var a=this.createNode(),d=this.nextToken();return this.finalize(a,new n.TemplateElement({raw:d.value,cooked:d.cooked},d.tail))};
c.prototype.parseTemplateLiteral=function(){var a=this.createNode(),d=[],e=[],h=this.parseTemplateHead();for(e.push(h);!h.tail;)d.push(this.parseExpression()),h=this.parseTemplateElement(),e.push(h);return this.finalize(a,new n.TemplateLiteral(e,d))};c.prototype.parseGroupExpression=function(){this.expect("(");this.context.isBindingElement=!0;var a=this.inheritCoverGrammar(this.parseAssignmentExpression);this.expect(")");this.context.isBindingElement=!1;return a};c.prototype.parseArguments=function(){this.expect("(");
var a=[];if(!this.match(")"))for(;;){var d=this.isolateCoverGrammar(this.parseAssignmentExpression);a.push(d);if(this.match(")"))break;this.expectCommaSeparator();if(this.match(")"))break}this.expect(")");return a};c.prototype.isIdentifierName=function(a){return 3===a.type||4===a.type||1===a.type||5===a.type};c.prototype.parseIdentifierName=function(){var a=this.createNode(),d=this.nextToken();this.isIdentifierName(d)||this.throwUnexpectedToken(d);return this.finalize(a,new n.Identifier(d.value))};
c.prototype.parseLeftHandSideExpressionAllowCall=function(){var a=this.lookahead,d=this.context.allowIn;this.context.allowIn=!0;for(var e=this.inheritCoverGrammar(this.parsePrimaryExpression);;)if(this.match("(")){this.context.isBindingElement=!1;this.context.isAssignmentTarget=!1;var h=this.parseArguments();e=this.finalize(this.startNode(a),new n.CallExpression(e,h))}else if(this.match("["))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("["),h=this.isolateCoverGrammar(this.parseExpression),
this.expect("]"),e=this.finalize(this.startNode(a),new n.ComputedMemberExpression(e,h));else if(this.match("."))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("."),h=this.parseIdentifierName(),e=this.finalize(this.startNode(a),new n.StaticMemberExpression(e,h));else break;this.context.allowIn=d;return e};c.prototype.parseLeftHandSideExpression=function(){b.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var a=this.startNode(this.lookahead),
d=this.inheritCoverGrammar(this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1;this.context.isAssignmentTarget=!0;this.expect("[");var e=this.isolateCoverGrammar(this.parseExpression);this.expect("]");d=this.finalize(a,new n.ComputedMemberExpression(d,e))}else if(this.match("."))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("."),e=this.parseIdentifierName(),d=this.finalize(a,new n.StaticMemberExpression(d,e));else break;return d};c.prototype.parseUpdateExpression=
function(){var a=this.lookahead;if(this.match("++")||this.match("--")){a=this.startNode(a);var d=this.nextToken();var e=this.inheritCoverGrammar(this.parseUnaryExpression);this.context.isAssignmentTarget||this.tolerateError(p.Messages.InvalidLHSInAssignment);e=this.finalize(a,new n.UpdateExpression(d.value,e,!0));this.context.isAssignmentTarget=!1;this.context.isBindingElement=!1}else e=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),this.hasLineTerminator||7!==this.lookahead.type||
!this.match("++")&&!this.match("--")||(this.context.isAssignmentTarget||this.tolerateError(p.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,d=this.nextToken().value,e=this.finalize(this.startNode(a),new n.UpdateExpression(d,e,!1)));return e};c.prototype.parseUnaryExpression=function(){if(this.match("+")||this.match("-")||this.match("~")||this.match("!")){var a=this.startNode(this.lookahead),d=this.nextToken();var e=this.inheritCoverGrammar(this.parseUnaryExpression);
e=this.finalize(a,new n.UnaryExpression(d.value,e));this.context.isAssignmentTarget=!1;this.context.isBindingElement=!1}else e=this.parseUpdateExpression();return e};c.prototype.binaryPrecedence=function(a){var d=a.value;return 7===a.type?this.operatorPrecedence[d]||0:4===a.type?this.context.allowIn&&"in"===d?12:0:0};c.prototype.parseBinaryExpression=function(){var a=this.lookahead,d=this.inheritCoverGrammar(this.parseUnaryExpression),e=this.lookahead,h=this.binaryPrecedence(e);if(0<h){this.nextToken();
this.context.isAssignmentTarget=!1;this.context.isBindingElement=!1;a=[a,this.lookahead];var m=this.inheritCoverGrammar(this.parseUnaryExpression);e=[d,e.value,m];for(var g=[h];;){h=this.binaryPrecedence(this.lookahead);if(0>=h)break;for(;2<e.length&&h<=g[g.length-1];){m=e.pop();var k=e.pop();g.pop();d=e.pop();a.pop();var x=a[a.length-1],v=this.startNode(x,x.lineStart);e.push(this.finalize(v,new n.BinaryExpression(k,d,m)))}e.push(this.nextToken().value);g.push(h);a.push(this.lookahead);e.push(this.inheritCoverGrammar(this.parseUnaryExpression))}h=
e.length-1;d=e[h];for(k=a.pop();1<h;){x=a.pop();if(!x)break;v=this.startNode(x,k&&k.lineStart);k=e[h-1];d=this.finalize(v,new n.BinaryExpression(k,e[h-2],d));h-=2;k=x}}return d};c.prototype.parseAssignmentExpression=function(){var a=this.lookahead,d=a,e=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.matchAssign()){this.context.isAssignmentTarget||this.tolerateError(p.Messages.InvalidLHSInAssignment);this.match("\x3d")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=
!1);d=this.nextToken();d=d.value;var h=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(a),new n.AssignmentExpression(d,e,h));this.context.firstCoverInitializedNameError=null}return e};c.prototype.parseExpression=function(){return this.isolateCoverGrammar(this.parseAssignmentExpression)};c.prototype.parseStatementListItem=function(){this.context.isAssignmentTarget=!0;this.context.isBindingElement=!0;if(4===this.lookahead.type)switch(this.lookahead.value){case "function":var a=
this.parseFunctionDeclaration();break;default:a=this.parseStatement()}else a=this.parseStatement();return a};c.prototype.parseBlock=function(){var a=this.createNode();this.expect("{");for(var d=[];!this.match("}");)d.push(this.parseStatementListItem());this.expect("}");return this.finalize(a,new n.BlockStatement(d))};c.prototype.parseObjectStatement=function(){var a=this.createNode(),d=this.parseObjectInitializer();return this.finalize(a,new n.ExpressionStatement(d))};c.prototype.parseBlockOrObjectStatement=
function(){var a="asObject"===this.context.curlyParsing;"asObjectOrBlock"===this.context.curlyParsing&&this.peekAhead(function(d){var e=d();if(3===e.type||8===e.type)e=d(),7===e.type&&":"===e.value&&(a=!0)});return a?this.parseObjectStatement():this.parseBlock()};c.prototype.parseVariableIdentifier=function(){var a=this.createNode(),d=this.nextToken();3!==d.type&&this.throwUnexpectedToken(d,p.Messages.IdentiferExpected);return this.finalize(a,new n.Identifier(d.value))};c.prototype.parseVariableDeclaration=
function(a){var d=this.createNode(),e=this.parseVariableIdentifier(),h=null;this.match("\x3d")?(this.nextToken(),h=this.isolateCoverGrammar(this.parseAssignmentExpression)):e.type===q.Syntax.Identifier||a.inFor||this.expect("\x3d");return this.finalize(d,new n.VariableDeclarator(e,h))};c.prototype.parseVariableDeclarationList=function(a){for(var d=[this.parseVariableDeclaration(a)];this.match(",");)this.nextToken(),d.push(this.parseVariableDeclaration(a));return d};c.prototype.parseVariableStatement=
function(){var a=this.createNode();this.expectKeyword("var");var d=this.parseVariableDeclarationList({inFor:!1});this.consumeSemicolon();return this.finalize(a,new n.VariableDeclaration(d,"var"))};c.prototype.parseEmptyStatement=function(){var a=this.createNode();this.expect(";");return this.finalize(a,new n.EmptyStatement)};c.prototype.parseExpressionStatement=function(){var a=this.createNode(),d=this.parseExpression();this.consumeSemicolon();return this.finalize(a,new n.ExpressionStatement(d))};
c.prototype.parseIfClause=function(){var a=this.context.curlyParsing;this.context.curlyParsing="asObjectOrBlock";var d=this.parseStatement();this.context.curlyParsing=a;return d};c.prototype.parseIfStatement=function(){var a=this.createNode(),d=null;this.expectKeyword("if");this.expect("(");var e=this.parseExpression();if(!this.match(")")&&this.config.tolerant){this.tolerateUnexpectedToken(this.nextToken());var h=this.finalize(this.createNode(),new n.EmptyStatement)}else this.expect(")"),h=this.parseIfClause(),
this.matchKeyword("else")&&(this.nextToken(),d=this.parseIfClause());return this.finalize(a,new n.IfStatement(e,h,d))};c.prototype.parseForStatement=function(){var a=null,d=null,e=null,h=null,m=null,g=this.createNode();this.expectKeyword("for");this.expect("(");if(this.match(";"))this.nextToken();else if(this.matchKeyword("var")){var k=this.createNode();this.nextToken();var x=this.context.allowIn;this.context.allowIn=!1;var v=this.parseVariableDeclarationList({inFor:!0});this.context.allowIn=x;1===
v.length&&this.matchKeyword("in")?(v[0].init&&this.tolerateError(p.Messages.ForInOfLoopInitializer,"for-in"),h=this.finalize(k,new n.VariableDeclaration(v,"var")),this.nextToken(),m=this.parseExpression()):(a=this.finalize(k,new n.VariableDeclaration(v,"var")),this.expect(";"))}else{k=this.context.isBindingElement;v=this.context.isAssignmentTarget;var y=this.context.firstCoverInitializedNameError;x=this.context.allowIn;this.context.allowIn=!1;a=this.inheritCoverGrammar(this.parseAssignmentExpression);
this.context.allowIn=x;this.matchKeyword("in")?(this.context.isAssignmentTarget&&a.type!==q.Syntax.AssignmentExpression||this.tolerateError(p.Messages.InvalidLHSInForIn),this.nextToken(),h=a,m=this.parseExpression(),a=null):(this.context.isBindingElement=k,this.context.isAssignmentTarget=v,this.context.firstCoverInitializedNameError=y,this.expect(";"))}h||(this.match(";")||(d=this.isolateCoverGrammar(this.parseExpression)),this.expect(";"),this.match(")")||(e=this.isolateCoverGrammar(this.parseExpression)));
!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),x=this.finalize(this.createNode(),new n.EmptyStatement)):(this.expect(")"),k=this.context.inIteration,v=this.context.curlyParsing,this.context.inIteration=!0,this.context.curlyParsing="asObjectOrBlock",x=this.isolateCoverGrammar(this.parseStatement),this.context.curlyParsing=v,this.context.inIteration=k);return h&&m?this.finalize(g,new n.ForInStatement(h,m,x)):this.finalize(g,new n.ForStatement(a,d,e,x))};c.prototype.parseContinueStatement=
function(){var a=this.createNode();this.expectKeyword("continue");this.consumeSemicolon();return this.finalize(a,new n.ContinueStatement)};c.prototype.parseBreakStatement=function(){var a=this.createNode();this.expectKeyword("break");this.consumeSemicolon();return this.finalize(a,new n.BreakStatement)};c.prototype.parseReturnStatement=function(){this.config.globalReturn||this.context.inFunctionBody||this.tolerateError(p.Messages.IllegalReturn);var a=this.createNode();this.expectKeyword("return");
var d=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();this.consumeSemicolon();return this.finalize(a,new n.ReturnStatement(d))};c.prototype.parseStatement=function(){switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 3:var a=this.parseExpressionStatement();break;case 7:a=this.lookahead.value;a="{"===a?this.parseBlockOrObjectStatement():"("===a?this.parseExpressionStatement():
";"===a?this.parseEmptyStatement():this.parseExpressionStatement();break;case 4:switch(this.lookahead.value.toLowerCase()){case "break":a=this.parseBreakStatement();break;case "continue":a=this.parseContinueStatement();break;case "for":a=this.parseForStatement();break;case "function":a=this.parseFunctionDeclaration();break;case "if":a=this.parseIfStatement();break;case "return":a=this.parseReturnStatement();break;case "var":a=this.parseVariableStatement();break;default:a=this.parseExpressionStatement()}break;
default:a=this.throwUnexpectedToken(this.lookahead)}return a};c.prototype.parseFunctionSourceElements=function(){var a=this.createNode();this.expect("{");var d=this.context.inIteration,e=this.context.inFunctionBody;this.context.inIteration=!1;this.context.inFunctionBody=!0;for(var h=[];2!==this.lookahead.type&&!this.match("}");)h.push(this.parseStatementListItem());this.expect("}");this.context.inIteration=d;this.context.inFunctionBody=e;return this.finalize(a,new n.BlockStatement(h))};c.prototype.parseFormalParameters=
function(){var a=[];this.expect("(");if(!this.match(")"))for(;2!==this.lookahead.type;){a.push(this.parseVariableIdentifier());if(this.match(")"))break;this.expect(",");if(this.match(")"))break}this.expect(")");return a};c.prototype.parseFunctionDeclaration=function(){var a=this.createNode();this.expectKeyword("function");var d=this.parseVariableIdentifier(),e=this.parseFormalParameters(),h=this.parseFunctionSourceElements();return this.finalize(a,new n.FunctionDeclaration(d,e,h))};c.prototype.parseScript=
function(){for(var a=this.createNode(),d=[];2!==this.lookahead.type;)d.push(this.parseStatementListItem());return this.finalize(a,new n.Program(d))};return c}();z.Parser=E})},"esri/arcade/lib/assert":function(){define(["require","exports"],function(E,z){Object.defineProperty(z,"__esModule",{value:!0});z.assert=void 0;z.assert=function(b,w){if(!b)throw Error("ASSERT: "+w);}})},"esri/arcade/lib/error-handler":function(){define(["require","exports"],function(E,z){Object.defineProperty(z,"__esModule",
{value:!0});z.ErrorHandler=void 0;E=function(){function b(){this.errors=[];this.tolerant=!1}b.prototype.recordError=function(w){this.errors.push(w)};b.prototype.tolerate=function(w){if(this.tolerant)this.recordError(w);else throw w;};b.prototype.constructError=function(w,p){w=Error(w);try{throw w;}catch(n){Object.create&&Object.defineProperty&&(w=Object.create(n),Object.defineProperty(w,"column",{value:p}))}return w};b.prototype.createError=function(w,p,n,l){n=this.constructError("Line "+p+": "+l,
n);n.index=w;n.lineNumber=p;n.description=l;return n};b.prototype.throwError=function(w,p,n,l){throw this.createError(w,p,n,l);};b.prototype.tolerateError=function(w,p,n,l){w=this.createError(w,p,n,l);if(this.tolerant)this.recordError(w);else throw w;};return b}();z.ErrorHandler=E})},"esri/arcade/lib/messages":function(){define(["require","exports"],function(E,z){Object.defineProperty(z,"__esModule",{value:!0});z.Messages=void 0;z.Messages={ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",
GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",
InvalidRegExp:"Invalid regular expression",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictParamDupe:"Strict mode function may not have duplicate parameter names",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",
UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnterminatedRegExp:"Invalid regular expression: missing /",IdentiferExpected:"Identifier expected"}})},"esri/arcade/lib/nodes":function(){var E=this&&this.__extends||function(){var z=function(b,w){z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,n){p.__proto__=n}||function(p,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(p[l]=n[l])};return z(b,w)};return function(b,w){function p(){this.constructor=
b}if("function"!==typeof w&&null!==w)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");z(b,w);b.prototype=null===w?Object.create(w):(p.prototype=w.prototype,new p)}}();define(["require","exports","./syntax"],function(z,b,w){Object.defineProperty(b,"__esModule",{value:!0});b.VariableDeclarator=b.VariableDeclaration=b.UpdateExpression=b.UpdateOperators=b.UnaryExpression=b.UnaryOperators=b.TemplateLiteral=b.TemplateElement=b.Program=b.ReturnStatement=b.Property=b.ObjectExpression=
b.Literal=b.IfStatement=b.Identifier=b.FunctionDeclaration=b.ForStatement=b.ForInStatement=b.ExpressionStatement=b.EmptyStatement=b.ContinueStatement=b.StaticMemberExpression=b.ComputedMemberExpression=b.CallExpression=b.BreakStatement=b.BlockStatement=b.BinaryExpression=b.BinaryOperators=b.LogicalOperators=b.AssignmentExpression=b.AssignmentOperators=b.ArrayExpression=b.Comment=void 0;z=function(){return function(){}}();var p=function(n){function l(q,f){var c=n.call(this)||this;c.type=q;c.value=
f;return c}E(l,n);return l}(z);b.Comment=p;p=function(n){function l(q){var f=n.call(this)||this;f.elements=q;f.type=w.Syntax.ArrayExpression;return f}E(l,n);return l}(z);b.ArrayExpression=p;b.AssignmentOperators="\x3d /\x3d *\x3d %\x3d +\x3d -\x3d".split(" ");p=function(n){function l(q,f,c){var a=n.call(this)||this;a.operator=q;a.left=f;a.right=c;a.type=w.Syntax.AssignmentExpression;return a}E(l,n);return l}(z);b.AssignmentExpression=p;b.LogicalOperators=["||","\x26\x26"];b.BinaryOperators="| \x26 \x3e\x3e \x3c\x3c \x3e\x3e \x3e\x3e\x3e ^ \x3d\x3d !\x3d \x3c \x3c\x3d \x3e \x3e\x3d + - * / %".split(" ");
p=function(n){function l(q,f,c){var a=n.call(this)||this;a.operator=q;a.left=f;a.right=c;a.type=b.LogicalOperators.includes(q)?w.Syntax.LogicalExpression:w.Syntax.BinaryExpression;return a}E(l,n);return l}(z);b.BinaryExpression=p;p=function(n){function l(q){var f=n.call(this)||this;f.body=q;f.type=w.Syntax.BlockStatement;return f}E(l,n);return l}(z);b.BlockStatement=p;p=function(n){function l(){var q=null!==n&&n.apply(this,arguments)||this;q.type=w.Syntax.BreakStatement;return q}E(l,n);return l}(z);
b.BreakStatement=p;p=function(n){function l(q,f){var c=n.call(this)||this;c.callee=q;c.args=f;c.type=w.Syntax.CallExpression;c.arguments=f;return c}E(l,n);return l}(z);b.CallExpression=p;p=function(n){function l(q,f){var c=n.call(this)||this;c.object=q;c.property=f;c.type=w.Syntax.MemberExpression;c.computed=!0;return c}E(l,n);return l}(z);b.ComputedMemberExpression=p;p=function(n){function l(q,f){var c=n.call(this)||this;c.object=q;c.property=f;c.type=w.Syntax.MemberExpression;c.computed=!1;return c}
E(l,n);return l}(z);b.StaticMemberExpression=p;p=function(n){function l(){var q=null!==n&&n.apply(this,arguments)||this;q.type=w.Syntax.ContinueStatement;return q}E(l,n);return l}(z);b.ContinueStatement=p;p=function(n){function l(){var q=null!==n&&n.apply(this,arguments)||this;q.type=w.Syntax.EmptyStatement;return q}E(l,n);return l}(z);b.EmptyStatement=p;p=function(n){function l(q){var f=n.call(this)||this;f.expression=q;f.type=w.Syntax.ExpressionStatement;return f}E(l,n);return l}(z);b.ExpressionStatement=
p;p=function(n){function l(q,f,c){var a=n.call(this)||this;a.left=q;a.right=f;a.body=c;a.type=w.Syntax.ForInStatement;a.each=!1;return a}E(l,n);return l}(z);b.ForInStatement=p;p=function(n){function l(q,f,c,a){var d=n.call(this)||this;d.init=q;d.test=f;d.update=c;d.body=a;d.type=w.Syntax.ForStatement;return d}E(l,n);return l}(z);b.ForStatement=p;p=function(n){function l(q,f,c){var a=n.call(this)||this;a.id=q;a.params=f;a.body=c;a.type=w.Syntax.FunctionDeclaration;a.generator=!1;a.expression=!1;a.async=
!1;return a}E(l,n);return l}(z);b.FunctionDeclaration=p;p=function(n){function l(q){var f=n.call(this)||this;f.name=q;f.type=w.Syntax.Identifier;return f}E(l,n);return l}(z);b.Identifier=p;p=function(n){function l(q,f,c){var a=n.call(this)||this;a.test=q;a.consequent=f;a.alternate=c;a.type=w.Syntax.IfStatement;return a}E(l,n);return l}(z);b.IfStatement=p;p=function(n){function l(q,f){var c=n.call(this)||this;c.value=q;c.raw=f;c.type=w.Syntax.Literal;return c}E(l,n);return l}(z);b.Literal=p;p=function(n){function l(q){var f=
n.call(this)||this;f.properties=q;f.type=w.Syntax.ObjectExpression;return f}E(l,n);return l}(z);b.ObjectExpression=p;p=function(n){function l(q,f,c,a,d,e){var h=n.call(this)||this;h.kind=q;h.key=f;h.computed=c;h.value=a;h.method=d;h.shorthand=e;h.type=w.Syntax.Property;return h}E(l,n);return l}(z);b.Property=p;p=function(n){function l(q){var f=n.call(this)||this;f.argument=q;f.type=w.Syntax.ReturnStatement;return f}E(l,n);return l}(z);b.ReturnStatement=p;p=function(n){function l(q){var f=n.call(this)||
this;f.body=q;f.type=w.Syntax.Program;return f}E(l,n);return l}(z);b.Program=p;p=function(n){function l(q,f){var c=n.call(this)||this;c.value=q;c.tail=f;c.type=w.Syntax.TemplateElement;return c}E(l,n);return l}(z);b.TemplateElement=p;p=function(n){function l(q,f){var c=n.call(this)||this;c.quasis=q;c.expressions=f;c.type=w.Syntax.TemplateLiteral;return c}E(l,n);return l}(z);b.TemplateLiteral=p;b.UnaryOperators=["-","+","!","~"];p=function(n){function l(q,f){var c=n.call(this)||this;c.operator=q;c.argument=
f;c.type=w.Syntax.UnaryExpression;c.prefix=!0;return c}E(l,n);return l}(z);b.UnaryExpression=p;b.UpdateOperators=["++","--"];p=function(n){function l(q,f,c){var a=n.call(this)||this;a.operator=q;a.argument=f;a.prefix=c;a.type=w.Syntax.UpdateExpression;return a}E(l,n);return l}(z);b.UpdateExpression=p;p=function(n){function l(q,f){var c=n.call(this)||this;c.declarations=q;c.kind=f;c.type=w.Syntax.VariableDeclaration;return c}E(l,n);return l}(z);b.VariableDeclaration=p;z=function(n){function l(q,f){var c=
n.call(this)||this;c.id=q;c.init=f;c.type=w.Syntax.VariableDeclarator;return c}E(l,n);return l}(z);b.VariableDeclarator=z})},"esri/arcade/lib/scanner":function(){define(["require","exports","./assert","./character","./messages"],function(E,z,b,w,p){Object.defineProperty(z,"__esModule",{value:!0});z.Scanner=void 0;E=function(){function n(l,q){this.source=l;this.errorHandler=q;this.isModule=this.trackComment=!1;this.length=l.length;this.index=0;this.lineNumber=0<l.length?1:0;this.lineStart=0;this.curlyStack=
[]}n.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart,curlyStack:this.curlyStack.slice()}};n.prototype.restoreState=function(l){this.index=l.index;this.lineNumber=l.lineNumber;this.lineStart=l.lineStart;this.curlyStack=l.curlyStack};n.prototype.eof=function(){return this.index>=this.length};n.prototype.throwUnexpectedToken=function(l){void 0===l&&(l=p.Messages.UnexpectedTokenIllegal);return this.errorHandler.throwError(this.index,this.lineNumber,
this.index-this.lineStart+1,l)};n.prototype.tolerateUnexpectedToken=function(l){void 0===l&&(l=p.Messages.UnexpectedTokenIllegal);this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,l)};n.prototype.skipSingleLineComment=function(l){var q=[],f=0,c=null;this.trackComment&&(q=[],f=this.index-l,c={start:{line:this.lineNumber,column:this.index-this.lineStart-l},end:{line:0,column:0}});for(;!this.eof();){var a=this.source.charCodeAt(this.index);++this.index;if(w.Character.isLineTerminator(a))return c&&
(c.end={line:this.lineNumber,column:this.index-this.lineStart-1},l={multiLine:!1,slice:[f+l,this.index-1],range:[f,this.index-1],loc:c},q.push(l)),13===a&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,q}c&&(c.end={line:this.lineNumber,column:this.index-this.lineStart},l={multiLine:!1,slice:[f+l,this.index],range:[f,this.index],loc:c},q.push(l));return q};n.prototype.skipMultiLineComment=function(){var l=[],q=0,f=null;this.trackComment&&(q=this.index-
2,f={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{line:0,column:0}});for(;!this.eof();){var c=this.source.charCodeAt(this.index);if(w.Character.isLineTerminator(c))13===c&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else{if(42===c&&47===this.source.charCodeAt(this.index+1))return this.index+=2,f&&(f.end={line:this.lineNumber,column:this.index-this.lineStart},q={multiLine:!0,slice:[q+2,this.index-2],range:[q,
this.index],loc:f},l.push(q)),l;++this.index}}f&&(f.end={line:this.lineNumber,column:this.index-this.lineStart},q={multiLine:!0,slice:[q+2,this.index],range:[q,this.index],loc:f},l.push(q));this.tolerateUnexpectedToken();return l};n.prototype.scanComments=function(){var l=null;this.trackComment&&(l=[]);for(var q=0===this.index;!this.eof();){var f=this.source.charCodeAt(this.index);if(w.Character.isWhiteSpace(f))++this.index;else if(w.Character.isLineTerminator(f))++this.index,13===f&&10===this.source.charCodeAt(this.index)&&
++this.index,++this.lineNumber,this.lineStart=this.index,q=!0;else if(47===f)if(f=this.source.charCodeAt(this.index+1),47===f)this.index+=2,f=this.skipSingleLineComment(2),l&&(l=l.concat(f)),q=!0;else if(42===f)this.index+=2,f=this.skipMultiLineComment(),l&&(l=l.concat(f));else break;else if(q&&45===f)if(45===this.source.charCodeAt(this.index+1)&&62===this.source.charCodeAt(this.index+2))this.index+=3,f=this.skipSingleLineComment(3),l&&(l=l.concat(f));else break;else if(60!==f||this.isModule)break;
else if("!--"===this.source.slice(this.index+1,this.index+4))this.index+=4,f=this.skipSingleLineComment(4),l&&(l=l.concat(f));else break}return l};n.prototype.isKeyword=function(l){l=l.toLowerCase();switch(l.length){case 2:return"if"===l||"in"===l;case 3:return"var"===l||"for"===l;case 4:return"else"===l;case 5:return"break"===l;case 6:return"return"===l;case 8:return"function"===l||"continue"===l;default:return!1}};n.prototype.codePointAt=function(l){var q=this.source.charCodeAt(l);55296<=q&&56319>=
q&&(l=this.source.charCodeAt(l+1),56320<=l&&57343>=l&&(q=1024*(q-55296)+l-56320+65536));return q};n.prototype.scanHexEscape=function(l){l="u"===l?4:2;for(var q=0,f=0;f<l;++f)if(!this.eof()&&w.Character.isHexDigit(this.source.charCodeAt(this.index)))q=16*q+"0123456789abcdef".indexOf(this.source[this.index++].toLowerCase());else return null;return String.fromCharCode(q)};n.prototype.scanUnicodeCodePointEscape=function(){var l=this.source[this.index],q=0;for("}"===l&&this.throwUnexpectedToken();!this.eof();){l=
this.source[this.index++];if(!w.Character.isHexDigit(l.charCodeAt(0)))break;q=16*q+"0123456789abcdef".indexOf(l.toLowerCase())}(1114111<q||"}"!==l)&&this.throwUnexpectedToken();return w.Character.fromCodePoint(q)};n.prototype.getIdentifier=function(){for(var l=this.index++;!this.eof();){var q=this.source.charCodeAt(this.index);if(92===q||55296<=q&&57343>q)return this.index=l,this.getComplexIdentifier();if(w.Character.isIdentifierPart(q))++this.index;else break}return this.source.slice(l,this.index)};
n.prototype.getComplexIdentifier=function(){var l=this.codePointAt(this.index),q=w.Character.fromCodePoint(l);this.index+=q.length;if(92===l){117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken();++this.index;if("{"===this.source[this.index]){++this.index;var f=this.scanUnicodeCodePointEscape()}else f=this.scanHexEscape("u"),null!==f&&"\\"!==f&&w.Character.isIdentifierStart(f.charCodeAt(0))||this.throwUnexpectedToken();q=f}for(;!this.eof();){l=this.codePointAt(this.index);if(!w.Character.isIdentifierPart(l))break;
f=w.Character.fromCodePoint(l);q+=f;this.index+=f.length;92===l&&(q=q.substr(0,q.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,f=this.scanUnicodeCodePointEscape()):(f=this.scanHexEscape("u"),null!==f&&"\\"!==f&&w.Character.isIdentifierPart(f.charCodeAt(0))||this.throwUnexpectedToken()),q+=f)}return q};n.prototype.octalToDecimal=function(l){var q="0"!==l,f="01234567".indexOf(l);!this.eof()&&w.Character.isOctalDigit(this.source.charCodeAt(this.index))&&
(q=!0,f=8*f+"01234567".indexOf(this.source[this.index++]),0<="0123".indexOf(l)&&!this.eof()&&w.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(f=8*f+"01234567".indexOf(this.source[this.index++])));return{code:f,octal:q}};n.prototype.scanIdentifier=function(){var l=this.index,q=92===this.source.charCodeAt(l)?this.getComplexIdentifier():this.getIdentifier();var f=1===q.length?3:this.isKeyword(q)?4:"null"===q.toLowerCase()?5:"true"===q.toLowerCase()||"false"===q.toLowerCase()?1:3;if(3!==
f&&l+q.length!==this.index){var c=this.index;this.index=l;this.tolerateUnexpectedToken(p.Messages.InvalidEscapedReservedWord);this.index=c}return{type:f,value:q,lineNumber:this.lineNumber,lineStart:this.lineStart,start:l,end:this.index}};n.prototype.scanPunctuator=function(){var l=this.index,q=this.source[this.index];switch(q){case "(":case "{":"{"===q&&this.curlyStack.push("{");++this.index;break;case ".":++this.index;break;case "}":++this.index;this.curlyStack.pop();break;case ")":case ";":case ",":case "[":case "]":case ":":case "?":case "~":++this.index;
break;default:q=this.source.substr(this.index,4),"\x3e\x3e\x3e\x3d"===q?this.index+=4:(q=q.substr(0,3),"\x3d\x3d\x3d"===q||"!\x3d\x3d"===q||"\x3e\x3e\x3e"===q||"\x3c\x3c\x3d"===q||"\x3e\x3e\x3d"===q||"**\x3d"===q?this.index+=3:(q=q.substr(0,2),"\x26\x26"===q||"||"===q||"\x3d\x3d"===q||"!\x3d"===q||"+\x3d"===q||"-\x3d"===q||"*\x3d"===q||"/\x3d"===q||"++"===q||"--"===q||"\x3c\x3c"===q||"\x3e\x3e"===q||"\x26\x3d"===q||"|\x3d"===q||"^\x3d"===q||"%\x3d"===q||"\x3c\x3d"===q||"\x3e\x3d"===q||"\x3d\x3e"===
q||"**"===q?this.index+=2:(q=this.source[this.index],0<="\x3c\x3e\x3d!+-*%\x26|^/".indexOf(q)&&++this.index)))}this.index===l&&this.throwUnexpectedToken();return{type:7,value:q,lineNumber:this.lineNumber,lineStart:this.lineStart,start:l,end:this.index}};n.prototype.scanHexLiteral=function(l){for(var q="";!this.eof()&&w.Character.isHexDigit(this.source.charCodeAt(this.index));)q+=this.source[this.index++];0===q.length&&this.throwUnexpectedToken();w.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&
this.throwUnexpectedToken();return{type:6,value:parseInt("0x"+q,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:l,end:this.index}};n.prototype.scanBinaryLiteral=function(l){for(var q="";!this.eof();){var f=this.source[this.index];if("0"!==f&&"1"!==f)break;q+=this.source[this.index++]}0===q.length&&this.throwUnexpectedToken();this.eof()||(f=this.source.charCodeAt(this.index),(w.Character.isIdentifierStart(f)||w.Character.isDecimalDigit(f))&&this.throwUnexpectedToken());return{type:6,
value:parseInt(q,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:l,end:this.index}};n.prototype.scanOctalLiteral=function(l,q){var f="",c=!1;w.Character.isOctalDigit(l.charCodeAt(0))?(c=!0,f="0"+this.source[this.index++]):++this.index;for(;!this.eof()&&w.Character.isOctalDigit(this.source.charCodeAt(this.index));)f+=this.source[this.index++];c||0!==f.length||this.throwUnexpectedToken();(w.Character.isIdentifierStart(this.source.charCodeAt(this.index))||w.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&
this.throwUnexpectedToken();return{type:6,value:parseInt(f,8),octal:c,lineNumber:this.lineNumber,lineStart:this.lineStart,start:q,end:this.index}};n.prototype.scanNumericLiteral=function(){var l=this.index,q=this.source[l];b.assert(w.Character.isDecimalDigit(q.charCodeAt(0))||"."===q,"Numeric literal must start with a decimal digit or a decimal point");var f="";if("."!==q){f=this.source[this.index++];q=this.source[this.index];if("0"===f){if("x"===q||"X"===q)return++this.index,this.scanHexLiteral(l);
if("b"===q||"B"===q)return++this.index,this.scanBinaryLiteral(l);if("o"===q||"O"===q)return this.scanOctalLiteral(q,l)}for(;w.Character.isDecimalDigit(this.source.charCodeAt(this.index));)f+=this.source[this.index++];q=this.source[this.index]}if("."===q){for(f+=this.source[this.index++];w.Character.isDecimalDigit(this.source.charCodeAt(this.index));)f+=this.source[this.index++];q=this.source[this.index]}if("e"===q||"E"===q){f+=this.source[this.index++];q=this.source[this.index];if("+"===q||"-"===
q)f+=this.source[this.index++];if(w.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;w.Character.isDecimalDigit(this.source.charCodeAt(this.index));)f+=this.source[this.index++];else this.throwUnexpectedToken()}w.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken();return{type:6,value:parseFloat(f),lineNumber:this.lineNumber,lineStart:this.lineStart,start:l,end:this.index}};n.prototype.scanStringLiteral=function(){var l=this.index,q=this.source[l];
b.assert("'"===q||'"'===q,"String literal must starts with a quote");++this.index;for(var f=!1,c="";!this.eof();){var a=this.source[this.index++];if(a===q){q="";break}if("\\"===a)if((a=this.source[this.index++])&&w.Character.isLineTerminator(a.charCodeAt(0)))++this.lineNumber,"\r"===a&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(a){case "u":"{"===this.source[this.index]?(++this.index,c+=this.scanUnicodeCodePointEscape()):(a=this.scanHexEscape(a),null===a&&this.throwUnexpectedToken(),
c+=a);break;case "x":a=this.scanHexEscape(a);null===a&&this.throwUnexpectedToken(p.Messages.InvalidHexEscapeSequence);c+=a;break;case "n":c+="\n";break;case "r":c+="\r";break;case "t":c+="\t";break;case "b":c+="\b";break;case "f":c+="\f";break;case "v":c+="\x0B";break;case "8":case "9":c+=a;this.tolerateUnexpectedToken();break;default:a&&w.Character.isOctalDigit(a.charCodeAt(0))?(a=this.octalToDecimal(a),f=a.octal||f,c+=String.fromCharCode(a.code)):c+=a}else if(w.Character.isLineTerminator(a.charCodeAt(0)))break;
else c+=a}""!==q&&(this.index=l,this.throwUnexpectedToken());return{type:8,value:c,octal:f,lineNumber:this.lineNumber,lineStart:this.lineStart,start:l,end:this.index}};n.prototype.scanTemplate=function(){var l="",q=!1,f=this.index,c="`"===this.source[f],a=!1,d=2;for(++this.index;!this.eof();){var e=this.source[this.index++];if("`"===e){d=1;q=a=!0;break}if("$"===e){if("{"===this.source[this.index]){this.curlyStack.push("${");++this.index;q=!0;break}l+=e}else if("\\"===e)if(e=this.source[this.index++],
w.Character.isLineTerminator(e.charCodeAt(0)))++this.lineNumber,"\r"===e&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(e){case "n":l+="\n";break;case "r":l+="\r";break;case "t":l+="\t";break;case "u":if("{"===this.source[this.index])++this.index,l+=this.scanUnicodeCodePointEscape();else{var h=this.index,m=this.scanHexEscape(e);null!==m?l+=m:(this.index=h,l+=e)}break;case "x":e=this.scanHexEscape(e);null===e&&this.throwUnexpectedToken(p.Messages.InvalidHexEscapeSequence);
l+=e;break;case "b":l+="\b";break;case "f":l+="\f";break;case "v":l+="\v";break;default:"0"===e?(w.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(p.Messages.TemplateOctalLiteral),l+="\x00"):w.Character.isOctalDigit(e.charCodeAt(0))?this.throwUnexpectedToken(p.Messages.TemplateOctalLiteral):l+=e}else w.Character.isLineTerminator(e.charCodeAt(0))?(++this.lineNumber,"\r"===e&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index,l+="\n"):l+=e}q||
this.throwUnexpectedToken();c||this.curlyStack.pop();return{type:10,value:this.source.slice(f+1,this.index-d),cooked:l,head:c,tail:a,lineNumber:this.lineNumber,lineStart:this.lineStart,start:f,end:this.index}};n.prototype.testRegExp=function(l,q){var f=this,c=l;0<=q.indexOf("u")&&(c=c.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(a,d,e){a=parseInt(d||e,16);1114111<a&&f.throwUnexpectedToken(p.Messages.InvalidRegExp);return 65535>=a?String.fromCharCode(a):"\uffff"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
"\uffff"));try{RegExp(c)}catch(a){this.throwUnexpectedToken(p.Messages.InvalidRegExp)}try{return new RegExp(l,q)}catch(a){return null}};n.prototype.scanRegExpBody=function(){var l=this.source[this.index];b.assert("/"===l,"Regular expression literal must start with a slash");for(var q=this.source[this.index++],f=!1,c=!1;!this.eof();)if(l=this.source[this.index++],q+=l,"\\"===l)l=this.source[this.index++],w.Character.isLineTerminator(l.charCodeAt(0))&&this.throwUnexpectedToken(p.Messages.UnterminatedRegExp),
q+=l;else if(w.Character.isLineTerminator(l.charCodeAt(0)))this.throwUnexpectedToken(p.Messages.UnterminatedRegExp);else if(f)"]"===l&&(f=!1);else{if("/"===l){c=!0;break}"["===l&&(f=!0)}c||this.throwUnexpectedToken(p.Messages.UnterminatedRegExp);return q.substr(1,q.length-2)};n.prototype.scanRegExpFlags=function(){for(var l="";!this.eof();){var q=this.source[this.index];if(!w.Character.isIdentifierPart(q.charCodeAt(0)))break;++this.index;if("\\"!==q||this.eof())l+=q;else{q=this.source[this.index];
if("u"===q){++this.index;q=this.index;var f=this.scanHexEscape("u");if(null!==f)for(l+=f;q<this.index;++q);else this.index=q,l+="u"}this.tolerateUnexpectedToken()}}return l};n.prototype.scanRegExp=function(){var l=this.index,q=this.scanRegExpBody(),f=this.scanRegExpFlags(),c=this.testRegExp(q,f);return{type:9,value:"",pattern:q,flags:f,regex:c,lineNumber:this.lineNumber,lineStart:this.lineStart,start:l,end:this.index}};n.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,
lineStart:this.lineStart,start:this.index,end:this.index};var l=this.source.charCodeAt(this.index);return w.Character.isIdentifierStart(l)?this.scanIdentifier():40===l||41===l||59===l?this.scanPunctuator():39===l||34===l?this.scanStringLiteral():46===l?w.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():w.Character.isDecimalDigit(l)?this.scanNumericLiteral():96===l||125===l&&"${"===this.curlyStack[this.curlyStack.length-1]?this.scanTemplate():
55296<=l&&57343>l&&w.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()};return n}();z.Scanner=E})},"esri/arcade/lib/character":function(){define(["require","exports"],function(E,z){Object.defineProperty(z,"__esModule",{value:!0});z.Character=void 0;var b=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDEC0-\uDEEB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,
w=/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D3-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDF00-\uDF1C\uDF27\uDF30-\uDF50\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD46\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E\uDC5F\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;
z.Character={fromCodePoint:function(p){return 65536>p?String.fromCharCode(p):String.fromCharCode(55296+(p-65536>>10))+String.fromCharCode(56320+(p-65536&1023))},isWhiteSpace:function(p){return 32===p||9===p||11===p||12===p||160===p||5760<=p&&0<=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(p)},isLineTerminator:function(p){return 10===p||13===p||8232===p||8233===p},isIdentifierStart:function(p){return 36===p||95===p||65<=p&&90>=p||97<=p&&122>=p||92===p||
128<=p&&b.test(z.Character.fromCodePoint(p))},isIdentifierPart:function(p){return 36===p||95===p||65<=p&&90>=p||97<=p&&122>=p||48<=p&&57>=p||92===p||128<=p&&w.test(z.Character.fromCodePoint(p))},isDecimalDigit:function(p){return 48<=p&&57>=p},isHexDigit:function(p){return 48<=p&&57>=p||65<=p&&70>=p||97<=p&&102>=p},isOctalDigit:function(p){return 48<=p&&55>=p}}})},"esri/arcade/lib/token":function(){define(["require","exports"],function(E,z){Object.defineProperty(z,"__esModule",{value:!0});z.TokenName=
z.TokenType=void 0;E=z.TokenType||(z.TokenType={});E[E.BooleanLiteral=1]="BooleanLiteral";E[E.EOF=2]="EOF";E[E.Identifier=3]="Identifier";E[E.Keyword=4]="Keyword";E[E.NullLiteral=5]="NullLiteral";E[E.NumericLiteral=6]="NumericLiteral";E[E.Punctuator=7]="Punctuator";E[E.StringLiteral=8]="StringLiteral";E[E.RegularExpression=9]="RegularExpression";E[E.Template=10]="Template";z.TokenName={};z.TokenName[1]="Boolean";z.TokenName[2]="\x3cend\x3e";z.TokenName[3]="Identifier";z.TokenName[4]="Keyword";z.TokenName[5]=
"Null";z.TokenName[6]="Numeric";z.TokenName[7]="Punctuator";z.TokenName[8]="String";z.TokenName[9]="RegularExpression";z.TokenName[10]="Template"})},"esri/arcade/lib/tokenizer":function(){var E=this&&this.__spreadArray||function(z,b){for(var w=0,p=b.length,n=z.length;w<p;w++,n++)z[n]=b[w];return z};define("require exports ./error-handler ./nodes ./scanner ./token".split(" "),function(z,b,w,p,n,l){Object.defineProperty(b,"__esModule",{value:!0});b.Tokenizer=void 0;var q=function(){function f(){this.values=
[];this.curly=this.paren=-1}f.prototype.beforeFunctionExpression=function(c){return 0<=E(E(E(E(["(","{","[","return",","],p.AssignmentOperators),p.BinaryOperators),p.LogicalOperators),p.UnaryOperators).indexOf(c)};f.prototype.isRegexStart=function(){var c=this.values[this.values.length-1],a=null!==c;switch(c){case "this":case "]":a=!1;break;case ")":c=this.values[this.paren-1];a="if"===c||"while"===c||"for"===c||"with"===c;break;case "}":a=!0,"function"===this.values[this.curly-3]?a=(c=this.values[this.curly-
4])?!this.beforeFunctionExpression(c):!1:"function"===this.values[this.curly-4]&&(a=(c=this.values[this.curly-5])?!this.beforeFunctionExpression(c):!0)}return a};f.prototype.push=function(c){7===c.type||4===c.type?("{"===c.value?this.curly=this.values.length:"("===c.value&&(this.paren=this.values.length),this.values.push(c.value)):this.values.push(null)};return f}();z=function(){function f(c,a){this.errorHandler=new w.ErrorHandler;this.errorHandler.tolerant=a?"boolean"===typeof a.tolerant&&a.tolerant:
!1;this.scanner=new n.Scanner(c,this.errorHandler);this.scanner.trackComment=a?"boolean"===typeof a.comment&&a.comment:!1;this.trackRange=a?"boolean"===typeof a.range&&a.range:!1;this.trackLoc=a?"boolean"===typeof a.loc&&a.loc:!1;this.buffer=[];this.reader=new q}f.prototype.errors=function(){return this.errorHandler.errors};f.prototype.getNextToken=function(){if(0===this.buffer.length){var c=this.scanner.scanComments();if(c)for(var a=0;a<c.length;++a){var d=c[a],e=this.scanner.source.slice(d.slice[0],
d.slice[1]);e={type:d.multiLine?"BlockComment":"LineComment",value:e};this.trackRange&&(e.range=d.range);this.trackLoc&&(e.loc=d.loc);this.buffer.push(e)}if(!this.scanner.eof()){c=null;this.trackLoc&&(c={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{line:0,column:0}});a=void 0;if("/"===this.scanner.source[this.scanner.index]&&this.reader.isRegexStart()){d=this.scanner.saveState();try{a=this.scanner.scanRegExp()}catch(h){this.scanner.restoreState(d),a=this.scanner.lex()}}else a=
this.scanner.lex();this.reader.push(a);d={type:l.TokenName[a.type],value:this.scanner.source.slice(a.start,a.end)};this.trackRange&&(d.range=[a.start,a.end]);this.trackLoc&&c&&(c.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},d.loc=c);9===a.type&&(d.regex={pattern:a.pattern,flags:a.flags});this.buffer.push(d)}}return this.buffer.shift()};return f}();b.Tokenizer=z})},"esri/arcadeProfiles/visualizationProfile":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../promiseList ../support/expressionUtils ./utils".split(" "),
function(E,z,b,w,p,n,l){E=new (E(null,{declaredClass:"esri.arcadeProfiles.VisualizationProfile",initialize:function(q){var f=[];l.hasGeometryOperations(q)&&f.push(n.enableGeometryOperations());return p(f)}}));b("extend-esri")&&z.setObject("arcadeProfiles.visualizationProfile",E,w);return E})},"esri/arcadeProfiles/utils":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/has","../kernel","../support/expressionUtils"],function(E,z,b,w,p){var n=/(\/(MapServer|FeatureServer)).*/ig,l={hasGeometryOperations:function(q){return z.some(q,
function(f){return f.hasGeometryOperations?f.hasGeometryOperations():p.hasGeometryOperations(f)})},hasFeatureSetOperations:function(q){return z.some(q,function(f){return f.hasFeatureSetOperations?f.hasFeatureSetOperations():p.hasFeatureSetOperations(f)})},hasVariables:function(q,f){return z.some(q,function(c){return z.some(f,function(a){return c.hasVariable?c.hasVariable(a):p.hasVariable(c,a)})})},isAsync:function(q){return z.some(q,function(f){return f.async})},getServiceUrl:function(q){return n.test(q)?
q.replace(n,"$1"):null}};b("extend-esri")&&E.setObject("arcadeProfiles.utils",l,w);return l})},"esri/renderers/SimpleRenderer":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../symbols/jsonUtils ./Renderer".split(" "),function(E,z,b,w,p,n,l){E=E(l,{declaredClass:"esri.renderer.SimpleRenderer",constructor:function(q,f){if(q&&!q.declaredClass){var c=q;this.symbol=(q=c.symbol)&&(q.declaredClass?q:n.fromJson(q,f));this.label=c.label;this.description=c.description}else this.symbol=
q},getSymbol:function(q){return this.symbol},toJson:function(){var q=z.mixin(this.inherited(arguments),{type:"simple",label:this.label,description:this.description,symbol:this.symbol&&this.symbol.toJson()});return p.fixJson(q)}});b("extend-esri")&&z.setObject("renderer.SimpleRenderer",E,w);return E})},"esri/renderers/UniqueValueRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../symbols/jsonUtils ./Renderer ../support/expressionUtils".split(" "),
function(E,z,b,w,p,n,l,q,f){E=E(q,{declaredClass:"esri.renderer.UniqueValueRenderer",constructor:function(c,a,d,e,h,m){this.values=[];this._symbols={};this.infos=[];c&&!c.declaredClass?(a=c,d=m&&m.geometryType,this.defaultSymbol=(c=a.defaultSymbol)&&(c.declaredClass?c:l.fromJson(c,m)),this.attributeField=a.field1,this.attributeField2=a.field2,this.attributeField3=a.field3,this.fieldDelimiter=a.fieldDelimiter,this.defaultLabel=a.defaultLabel,this.setValueExpression(a.valueExpression),this.valueExpressionTitle=
a.valueExpressionTitle,this.legendOptions=a.legendOptions,a.backgroundFillSymbol&&(this.backgroundFillSymbol=l.fromJson(a.backgroundFillSymbol,d?{geometryType:"esriGeometryPolygon"}:null)),"esriGeometryPolygon"===d&&this.hasVisualVariables("sizeInfo",!1)&&(m={geometryType:"esriGeometryPoint"}),z.forEach(a.uniqueValueInfos,function(g){this._addValueInfo(g,m)},this)):(this.defaultSymbol=c,this.attributeField=a,this.attributeField2=d,this.attributeField3=e,this.fieldDelimiter=h);this._multiple=!!this.attributeField2},
addValue:function(c,a){c=b.isObject(c)?c:{value:c,symbol:a};this._addValueInfo(c)},removeValue:function(c){var a=z.indexOf(this.values,c);-1!==a&&(this.values.splice(a,1),this._hasNullKeyword=this._evalNullKeyword(this.values),delete this._symbols[c],this.infos.splice(a,1))},getUniqueValueInfo:function(c){var a=this.attributeField,d=c.attributes;if(this.valueExpression)a=this._getDataValue(c,this._uvInfo,null,this._cache.uvInfo),a=this._normalizeNullValue(a);else if(this._multiple){c=this.attributeField2;
var e=this.attributeField3,h=[];a&&h.push(this._normalizeNullValue(d[a]));c&&h.push(this._normalizeNullValue(d[c]));e&&h.push(this._normalizeNullValue(d[e]));a=h.join(this.fieldDelimiter||"")}else a=b.isFunction(a)?a(c):d[a],a=this._normalizeNullValue(a);return this._symbols[a]},setValueExpression:function(c){this.valueExpression=c;this._uvInfo={valueExpression:c};this._cache.uvInfo=this._createCache(this._uvInfo,!0)},getFieldsUsedInExpressions:function(c){var a=this.inherited(arguments);this.valueExpression&&
(a=a.concat(f.extractFieldNames(this.valueExpression,c)));a.sort();return z.filter(a,function(d,e){return 0===e||a[e-1]!==d})},getSymbol:function(c){return(c=this.getUniqueValueInfo(c))&&c.symbol||this.defaultSymbol},_addValueInfo:function(c,a){var d=c.value;this.values.push(d);this._hasNullKeyword=this._evalNullKeyword(this.values);this.infos.push(c);var e=c.symbol;e&&!e.declaredClass&&(c.symbol=l.fromJson(e,a));this._symbols[d]=c},_nullCode:"\x3cNull\x3e",_normalizeNullValue:function(c){return this._hasNullKeyword&&
null==c?this._nullCode:c},_evalNullKeyword:function(c){var a=this.fieldDelimiter||"",d=new RegExp("(^|"+a+")("+this._nullCode+")("+a+"|$)");return z.some(c,function(e){return d.test(e)})},toJson:function(){var c=n.fixJson;var a={type:"uniqueValue",field1:this.attributeField,field2:this.attributeField2,field3:this.attributeField3,fieldDelimiter:this.fieldDelimiter,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:b.clone(this.legendOptions),defaultSymbol:this.defaultSymbol&&
this.defaultSymbol.toJson(),defaultLabel:this.defaultLabel,uniqueValueInfos:z.map(this.infos||[],function(d){d=b.mixin({},d);d.symbol=d.symbol&&d.symbol.toJson();d.value+="";return c(d)})};this.backgroundFillSymbol&&(a.backgroundFillSymbol=this.backgroundFillSymbol.toJson());a=b.mixin(this.inherited(arguments),a);return c(a)}});w("extend-esri")&&b.setObject("renderer.UniqueValueRenderer",E,p);return E})},"esri/renderers/ClassBreaksRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../symbols/jsonUtils ./Renderer ../support/expressionUtils".split(" "),
function(E,z,b,w,p,n,l,q,f){E=E(q,{declaredClass:"esri.renderer.ClassBreaksRenderer",constructor:function(c,a,d){this.breaks=[];this._symbols={};this.infos=[];this.isMaxInclusive=!0;if(c&&!c.declaredClass){var e=c;a=d&&d.geometryType;this.attributeField=e.field;this.setValueExpression(e.valueExpression);this.valueExpressionTitle=e.valueExpressionTitle;this.legendOptions=e.legendOptions;this.defaultSymbol=(c=e.defaultSymbol)&&(c.declaredClass?c:l.fromJson(c,d));this.backgroundFillSymbol=(c=e.backgroundFillSymbol)&&
(c.declaredClass?c:l.fromJson(c,a?{geometryType:"esriGeometryPolygon"}:null));this._copy(["defaultLabel","classificationMethod:rest","normalizationType:rest","normalizationField","normalizationTotal"],e,this);var h=e.minValue;(c=e.classBreakInfos)&&c[0]&&n.isDefined(c[0].classMaxValue)&&z.forEach(c,function(m){var g=m.classMaxValue;m.minValue=h;h=m.maxValue=g},this);"esriGeometryPolygon"===a&&(this.hasVisualVariables("sizeInfo",!1)||l.isPointSymbol(l.getFirstSupportedSymbol(z.map(c,function(m){return m.symbol}))))&&
(d={geometryType:"esriGeometryPoint"});z.forEach(c,function(m){this._addBreakInfo(m,d)},this)}else this.defaultSymbol=c,this.attributeField=a},addBreak:function(c,a,d){c=b.isObject(c)?c:{minValue:c,maxValue:a,symbol:d};this._addBreakInfo(c)},removeBreak:function(c,a){var d=this.breaks,e,h=d.length,m=this._symbols;for(e=0;e<h;e++){var g=d[e];if(g[0]==c&&g[1]==a){d.splice(e,1);delete m[c+"-"+a];this.infos.splice(e,1);break}}},clearBreaks:function(){this.breaks=[];this._symbols={};this.infos=[]},getBreakIndex:function(c){var a=
this.attributeField,d=c.attributes,e=this.breaks,h=e.length,m=this.isMaxInclusive;if(this.valueExpression)c=this._getDataValue(c,this._cbInfo,null,this._cache.cbInfo);else if(b.isFunction(a))c=a(c);else if(c=parseFloat(d[a]),a=this.normalizationType,a){var g=parseFloat(this.normalizationTotal);d=parseFloat(d[this.normalizationField]);if("log"===a)c=Math.log(c)*Math.LOG10E;else if("percent-of-total"===a&&!isNaN(g))c=c/g*100;else if("field"===a){if(isNaN(c)||isNaN(d))return-1;c/=d}}if(null!=c&&!isNaN(c)&&
"number"===typeof c)for(d=0;d<h;d++)if(a=e[d],a[0]<=c&&(m?c<=a[1]:c<a[1]))return d;return-1},getBreakInfo:function(c){c=this.getBreakIndex(c);return-1!==c?this.infos[c]:null},getSymbol:function(c){return(c=this.breaks[this.getBreakIndex(c)])?this._symbols[c[0]+"-"+c[1]]:this.defaultSymbol},setMaxInclusive:function(c){this.isMaxInclusive=c},setValueExpression:function(c){this.valueExpression=c;this._cbInfo={valueExpression:c};this._cache.cbInfo=this._createCache(this._cbInfo)},getFieldsUsedInExpressions:function(c){var a=
this.inherited(arguments);this.valueExpression&&(a=a.concat(f.extractFieldNames(this.valueExpression,c)));a.sort();return z.filter(a,function(d,e){return 0===e||a[e-1]!==d})},isContinuousRenderer:function(){var c=!1;if(this.infos&&1===this.infos.length){var a=this.attributeField,d=this.normalizationField,e=this.valueExpression;c=this.getVisualVariablesForType("colorInfo",!1)||[];var h=this.getVisualVariablesForType("sizeInfo",!1)||[],m=this.getVisualVariablesForType("opacityInfo",!1)||[];c=c.concat(h).concat(m);
c=z.some(c,function(g){return(g.field===a||g.valueExpression===e)&&g.normalizationField==d})}return c},_normalizationTypeEnums:[["field","esriNormalizeByField"],["log","esriNormalizeByLog"],["percent-of-total","esriNormalizeByPercentOfTotal"]],_classificationMethodEnums:[["natural-breaks","esriClassifyNaturalBreaks"],["equal-interval","esriClassifyEqualInterval"],["quantile","esriClassifyQuantile"],["standard-deviation","esriClassifyStandardDeviation"],["geometrical-interval","esriClassifyGeometricalInterval"],
["defined-interval","esriClassifyDefinedInterval"],["manual-interval","esriClassifyManual"]],_copy:function(c,a,d){z.forEach(c,function(e){var h=e.split(":");if(1<h.length){e=h[0];var m=this["_"+e+"Enums"];if("rest"===h[1]){var g="1";var k="0"}else"sdk"===h[1]&&(g="0",k="1")}h=a[e];if(void 0!==h&&(d[e]=h,m&&g)){var x,v=m.length;for(x=0;x<v;x++)if(m[x][g]===h){d[e]=m[x][k];break}}},this)},_addBreakInfo:function(c,a){var d=c.minValue,e=c.maxValue;this.breaks.push([d,e]);this.infos.push(c);var h=c.symbol;
h&&!h.declaredClass&&(c.symbol=l.fromJson(h,a));this._symbols[d+"-"+e]=c.symbol},toJson:function(){var c=this.infos||[],a=n.fixJson,d=c[0]&&c[0].minValue,e=this.backgroundFillSymbol;c=b.mixin(this.inherited(arguments),{type:"classBreaks",field:this.attributeField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:b.clone(this.legendOptions),defaultSymbol:this.defaultSymbol&&this.defaultSymbol.toJson(),backgroundFillSymbol:e&&e.toJson(),minValue:-Infinity===
d?-Number.MAX_VALUE:d,classBreakInfos:z.map(c,function(h){h=b.mixin({},h);h.symbol=h.symbol&&h.symbol.toJson();h.classMaxValue=Infinity===h.maxValue?Number.MAX_VALUE:h.maxValue;delete h.minValue;delete h.maxValue;return a(h)})});this._copy(["defaultLabel","classificationMethod:sdk","normalizationType:sdk","normalizationField","normalizationTotal"],this,c);c.hasOwnProperty("normalizationType")&&!c.normalizationType&&delete c.normalizationType;c.hasOwnProperty("classificationMethod")&&!c.classificationMethod&&
delete c.classificationMethod;return a(c)}});w("extend-esri")&&b.setObject("renderer.ClassBreaksRenderer",E,p);return E})},"esri/renderers/TemporalRenderer":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","./Renderer"],function(E,z,b,w,p){E=E(p,{declaredClass:"esri.renderer.TemporalRenderer",constructor:function(n,l,q,f){this.observationRenderer=n;this.latestObservationRenderer=l;this.trackRenderer=q;this.observationAger=f},getSymbol:function(n){var l=n.getLayer(),
q=this.getObservationRenderer(n),f=q&&q.getSymbol(n),c=this.observationAger;l.timeInfo&&l._map.timeExtent&&q===this.observationRenderer&&c&&f&&(f=c.getAgedSymbol(f,n));return f},getObservationRenderer:function(n){return 0===n.getLayer()._getKind(n)?this.observationRenderer:this.latestObservationRenderer||this.observationRenderer},toJson:function(){var n={type:"temporal"};n.observationRenderer=this.observationRenderer.toJson();this.latestObservationRenderer&&(n.latestObservationRenderer=this.latestObservationRenderer.toJson());
this.trackRenderer&&(n.trackRenderer=this.trackRenderer.toJson());this.observationAger&&(n.observationAger=this.observationAger.toJson());return n}});b("extend-esri")&&z.setObject("renderer.TemporalRenderer",E,w);return E})},"esri/renderers/SymbolAger":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(E,z,b,w){E=E(null,{declaredClass:"esri.renderer.SymbolAger",getAgedSymbol:function(p,n){},_setSymbolSize:function(p,n){switch(p.type){case "simplemarkersymbol":p.setSize(n);
break;case "picturemarkersymbol":p.setWidth(n);p.setHeight(n);break;case "simplelinesymbol":case "cartographiclinesymbol":p.setWidth(n);break;case "simplefillsymbol":case "picturefillsymbol":p.outline&&p.outline.setWidth(n)}}});b("extend-esri")&&z.setObject("renderer.SymbolAger",E,w);return E})},"esri/renderers/TimeClassBreaksAger":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has dojo/date ../kernel ../lang ../symbols/jsonUtils ../Color ./SymbolAger".split(" "),function(E,
z,b,w,p,n,l,q,f,c){var a=E(c,{declaredClass:"esri.renderer.TimeClassBreaksAger",constructor:function(d,e){this.infos=d;this.timeUnits=e||"day";d.sort(function(h,m){return h.minAge<m.minAge?-1:h.minAge>m.minAge?1:0})},getAgedSymbol:function(d,e){var h=e.getLayer();e=e.attributes;var m=l.isDefined;d=q.fromJson(d.toJson());var g=h._map.timeExtent.endTime;if(!g)return d;var k=p.difference(new Date(e[h._startTimeField]),g,this.timeUnits);z.some(this.infos,function(x){if(k>=x.minAge&&k<=x.maxAge){var v=
x.color,y=x.size;x=x.alpha;v&&d.setColor(v);m(y)&&this._setSymbolSize(d,y);m(x)&&d.color&&(d.color.a=x);return!0}},this);return d},toJson:function(){var d={agerClassBreakInfos:[]},e;d.timeUnits=this._getRestUnits(this.timeUnits);for(e=0;e<this.infos.length;e+=1){var h=this.infos[e];var m={};m.oldestAge=Infinity===h.maxAge?null:h.maxAge;m.size=h.size;h.color&&(m.color=f.toJsonColor(h.color));h.alpha&&(m.alpha=Math.round(255*h.alpha));d.agerClassBreakInfos[e]=m}return d},_getRestUnits:function(d){var e=
"esriTimeUnitsDays";switch(d){case a.UNIT_SECONDS:e="esriTimeUnitsSeconds";break;case a.UNIT_MILLISECONDS:e="esriTimeUnitsMilliseconds";break;case a.UNIT_HOURS:e="esriTimeUnitsHours";break;case a.UNIT_MINUTES:e="esriTimeUnitsMinutes";break;case a.UNIT_MONTHS:e="esriTimeUnitsMonths";break;case a.UNIT_WEEKS:e="esriTimeUnitsWeeks";break;case a.UNIT_YEARS:e="esriTimeUnitsYears"}return e}});b.mixin(a,{UNIT_DAYS:"day",UNIT_HOURS:"hour",UNIT_MILLISECONDS:"millisecond",UNIT_MINUTES:"minute",UNIT_MONTHS:"month",
UNIT_SECONDS:"second",UNIT_WEEKS:"week",UNIT_YEARS:"year"});w("extend-esri")&&b.setObject("renderer.TimeClassBreaksAger",a,n);return a})},"esri/renderers/TimeRampAger":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has ../kernel ../symbols/jsonUtils ../Color ./SymbolAger".split(" "),function(E,z,b,w,p,n,l,q){E=E(q,{declaredClass:"esri.renderer.TimeRampAger",constructor:function(f,c,a){this.colorRange=f;this.sizeRange=c;this.alphaRange=a},getAgedSymbol:function(f,c){var a=
c.getLayer(),d=c.attributes;f=n.fromJson(f.toJson());var e=a._map.timeExtent;c=e.startTime;e=e.endTime;if(!c||!e)return f;c=c.getTime();e=e.getTime();a=new Date(d[a._startTimeField]);a=a.getTime();a<c&&(a=c);a=e===c?1:(a-c)/(e-c);if(c=this.sizeRange)d=c[0],e=c[1],c=Math.abs(e-d)*a,this._setSymbolSize(f,d<e?d+c:d-c);if(c=this.colorRange){e=c[0];var h=c[1],m=Math.round;d=new b;var g=e.r,k=h.r;c=Math.abs(k-g)*a;d.r=m(g<k?g+c:g-c);g=e.g;k=h.g;c=Math.abs(k-g)*a;d.g=m(g<k?g+c:g-c);g=e.b;k=h.b;c=Math.abs(k-
g)*a;d.b=m(g<k?g+c:g-c);e=e.a;h=h.a;c=Math.abs(h-e)*a;d.a=e<h?e+c:e-c;f.setColor(d)}d=f.color;(c=this.alphaRange)&&d&&(e=c[0],h=c[1],c=Math.abs(h-e)*a,d.a=e<h?e+c:e-c);return f},toJson:function(){var f={};this.sizeRange&&(f.sizeRange=this.sizeRange);this.colorRange&&(f.colorRange=[l.toJsonColor(this.colorRange[0]),l.toJsonColor(this.colorRange[1])]);this.alphaRange&&(f.alphaRange=[Math.round(255*this.alphaRange[0]),Math.round(255*this.alphaRange[1])]);return f}});w("extend-esri")&&z.setObject("renderer.TimeRampAger",
E,p);return E})},"esri/renderers/StretchRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../layers/RasterFunction ./colorRampUtils".split(" "),function(E,z,b,w,p,n,l,q){var f={TYPE_NONE:"none",TYPE_STANDARDDEVIATION:"standardDeviation",TYPE_HISTOGRAMEQUALIZATION:"histogramEqualization",TYPE_MINMAX:"minMax",TYPE_PERCENTCLIP:"percentClip",TYPE_SIGMOID:"sigmoid"};E=E(null,{declaredClass:"esri.renderer.StretchRenderer",constructor:function(c){c=
c||{};this.stretchType=f.TYPE_NONE;this.dra=!0;this.statistics=[];this.gamma=[];this.computeGamma=this.useGamma=!1;this.sigmoidStrengthLevel=this.numberOfStandardDeviations=this.minPercent=this.maxPercent=this.min=this.max=null;b.mixin(this,c);this.colorRamp=q.fromJson(c.colorRamp)},toJson:function(){var c={type:"rasterStretch",stretchType:this.stretchType,colorRamp:this.colorRamp&&this.colorRamp.toJson(),min:this.min,max:this.max,numberOfStandardDeviations:this.numberOfStandardDeviations,statistics:b.clone(this.statistics),
dra:this.dra,minPercent:this.minPercent,maxPercent:this.maxPercent,useGamma:this.useGamma,gamma:b.clone(this.gamma),computeGamma:this.computeGamma,sigmoidStrengthLevel:this.sigmoidStrengthLevel};return n.fixJson(c)},toRenderingRule:function(c){c=c||{};var a=new l;a.functionName="Stretch";var d=this._convertStretchTypeEnumToIndex(this.stretchType),e={StretchType:d,Statistics:this.statistics,DRA:this.dra,UseGamma:this.useGamma,Gamma:this.gamma,ComputeGamma:this.computeGamma};n.isDefined(this.min)&&
(e.Min=this.min);n.isDefined(this.min)&&(e.Max=this.max);3===d?(e.NumberOfStandardDeviations=this.numberOfStandardDeviations,a.outputPixelType="U8"):6===d?(e.MinPercent=parseFloat(this.minPercent),e.MaxPercent=parseFloat(this.maxPercent),a.outputPixelType="U8"):5===d?a.outputPixelType="U8":9===d&&(e.SigmoidStrengthLevel=this.sigmoidStrengthLevel);a.functionArguments=e;a.variableName="Raster";return this.colorRamp?(d=new l,d.functionArguments=c.convertToColormap?{Colormap:q.convertColorRampToColormap(this.colorRamp,
256)}:{colorRamp:this.colorRamp.toJson()},d.variableName="Raster",d.functionName="Colormap",d.functionArguments.Raster=a,d):a},_convertStretchTypeEnumToIndex:function(c){var a=0;c===f.TYPE_STANDARDDEVIATION?a=3:c===f.TYPE_HISTOGRAMEQUALIZATION?a=4:c===f.TYPE_MINMAX?a=5:c===f.TYPE_PERCENTCLIP?a=6:c===f.TYPE_SIGMOID&&(a=9);return a},_convertStretchTypeIndexToEnum:function(c){var a=f.TYPE_NONE;3===c?a=f.TYPE_STANDARDDEVIATION:4===c?a=f.TYPE_HISTOGRAMEQUALIZATION:5===c?a=f.TYPE_MINMAX:6===c?a=f.TYPE_PERCENTCLIP:
9===c&&(a=f.TYPE_SIGMOID);return a}});b.mixin(E,f);w("extend-esri")&&b.setObject("renderer.StretchRenderer",E,p);return E})},"esri/layers/RasterFunction":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(E,z,b,w,p){var n=E(null,{declaredClass:"esri.layers.RasterFunction",functionName:null,arguments:null,functionArguments:null,variableName:null,outputPixelType:null,_isTemplate:null,_templateJson:null,constructor:function(l){if(z.isObject(l)){this._isRFTJson(l)&&
(this._isTemplate=!0,this._templateJson=l);var q=0;this.functionName=l.rasterFunction||l.name;this.functionArguments=z.clone(l.rasterFunctionArguments||l.arguments);z.mixin(this,l);if(l=this.functionArguments)if(l.Raster=this._toRasterFunction(l.Raster),l.Raster2=this._toRasterFunction(l.Raster2),l.DEM=this._toRasterFunction(l.DEM),l.FillRaster=this._toRasterFunction(l.FillRaster),l.Rasters&&l.Rasters.length)for(q=0;q<l.Rasters.length;q++)l.Rasters[q]=this._toRasterFunction(l.Rasters[q])}},_isRFTJson:function(l){return l.name&&
l.arguments&&l.function&&l.hasOwnProperty("functionType")},_toRasterFunction:function(l){return l&&(l.rasterFunction||l.functionName)?new n(l):l},_rfToJson:function(l){l&&"esri.layers.RasterFunction"===l.declaredClass&&(l=l.toJson());return l},toJson:function(){if(this._isTemplate)return this._templateJson;var l=z.clone(this.functionArguments||this.arguments);if(l&&(l.Raster=this._rfToJson(l.Raster),l.Raster2=this._rfToJson(l.Raster2),l.DEM=this._rfToJson(l.DEM),l.FillRaster=this._rfToJson(l.FillRaster),
l.Rasters&&l.Rasters.length)){var q,f=[];for(q=0;q<l.Rasters.length;q++)f.push(this._rfToJson(l.Rasters[q]));l.Rasters=f}return p.filter({rasterFunction:this.functionName,rasterFunctionArguments:l,variableName:this.variableName,outputPixelType:this.outputPixelType?this.outputPixelType:null},function(c){if(null!==c&&void 0!==c)return!0})}});b("extend-esri")&&z.setObject("layers.RasterFunction",n,w);return n})},"esri/renderers/colorRampUtils":function(){define("dojo/_base/lang dojo/_base/array dojo/store/Memory ../tasks/AlgorithmicColorRamp ../tasks/MultipartColorRamp ../Color ./colorUtils".split(" "),
function(E,z,b,w,p,n,l){function q(v){if(null==v||"algorithmic"!==v.type&&!v.fromColor)return v;var y=v.declaredClass?new w:E.clone(v);y.fromColor=v.toColor;y.toColor=v.fromColor;y.algorithm=v.algorithm;return y}function f(v){if(null==v)return null;if("multipart"===v.type||v.colorRamps&&0<v.colorRamps.length){var y=v.declaredClass?new p:E.clone(v);y.colorRamps=z.map(v.colorRamps.slice().reverse(),function(u){return q(u)});return y}return q(v)}function c(v,y,u){if(!v)return{id:null,isInverted:!1};
var t=v.name;t&&(v.fromColor||v.colorRamps)&&(v.name=void 0);var r=a(v,y,u);if(r)return t&&(v.name=t),{id:r,isInverted:!1};r=a(v,y,u,!0);t&&(v.name=t);return r?{id:r,isInverted:!0}:t&&(r=a(v,y,u))?{id:r,isInverted:!1}:{id:null,isInverted:!1}}function a(v,y,u,t){if(v){t&&(v=f(v));y=y||g;u=u||k;var r=null;t=v.declaredClass;var B,C;if((B="string"===typeof v?v:v.name)&&z.some(u,function(F){if(F.name===B)return r=F.id,!0})&&r)return r;"esri.tasks.AlgorithmicColorRamp"===t?z.some(y,function(F){if(e(v.fromColor.toRgb(),
F.fromColor)&&e(v.toColor.toRgb(),F.toColor))return r=F.id,!0},this):"esri.tasks.MultipartColorRamp"===t&&z.some(y,function(F){if(v.colorRamps&&F.colorRamps&&v.colorRamps.length===F.colorRamps.length&&(C=v.colorRamps,!z.some(F.colorRamps,function(A,D){if(!e(C[D].fromColor.toRgb(),A.fromColor)||!e(C[D].toColor.toRgb(),A.toColor))return!0},this))){if(r)return!0;r=F.id}},this);return r}}function d(v){var y=new w,u=v.algorithm;y.fromColor=n.toDojoColor(v.fromColor);y.toColor=n.toDojoColor(v.toColor);
u?"esriCIELabAlgorithm"===u?y.algorithm="cie-lab":"esriHSVAlgorithm"===u?y.algorithm="hsv":"esriLabLChAlgorithm"===u&&(y.algorithm="lab-lch"):y.algorithm="hsv";return y}function e(v,y){if(!v||!y)return!1;v=v.slice(0,3);y=y.slice(0,3);return!z.some(v,function(u,t){if(u>y[t]+2||u<y[t]-2)return!0})}function h(v,y,u){v=l.toLAB(v);y=l.toLAB(y);return l.toRGB({l:v.l*(1-u)+u*y.l,a:v.a*(1-u)+u*y.a,b:v.b*(1-u)+u*y.b})}var m={},g=[{id:"none",selected:!0},{id:"aspect_predefined",type:"multipart",colorRamps:[{fromColor:[190,
190,190],toColor:[255,45,8]},{fromColor:[255,45,8],toColor:[255,181,61]},{fromColor:[255,181,61],toColor:[255,254,52]},{fromColor:[255,254,52],toColor:[0,251,50]},{fromColor:[0,251,50],toColor:[255,254,52]},{fromColor:[0,253,255],toColor:[0,181,255]},{fromColor:[0,181,255],toColor:[26,35,253]},{fromColor:[26,35,253],toColor:[255,57,251]},{fromColor:[255,57,251],toColor:[255,45,8]}]},{id:"blackToWhite_predefined",fromColor:[0,0,0],toColor:[255,255,255]},{id:"blueBright_predefined",fromColor:[204,204,
255],toColor:[0,0,224]},{id:"blueLightToDark_predefined",fromColor:[211,229,232],toColor:[46,100,140]},{id:"blueGreenBright_predefined",fromColor:[203,245,234],toColor:[48,207,146]},{id:"blueGreenLightToDark_predefined",fromColor:[216,242,237],toColor:[21,79,74]},{id:"brownLightToDark_predefined",fromColor:[240,236,170],toColor:[102,72,48]},{id:"brownToBlueGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[156,85,31],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[33,
130,145]}]},{id:"brownToBlueGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[110,70,45],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[48,100,102]}]},{id:"cividis_predefined",type:"multipart",colorRamps:[{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,32,77,255],toColor:[0,33,79,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,33,79,255],toColor:[0,34,80,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,34,
80,255],toColor:[0,35,82,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,35,82,255],toColor:[0,35,84,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,35,84,255],toColor:[0,36,85,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,36,85,255],toColor:[0,37,87,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,37,87,255],toColor:[0,38,89,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,38,89,255],
toColor:[0,38,91,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,38,91,255],toColor:[0,39,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,39,92,255],toColor:[0,40,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,40,94,255],toColor:[0,40,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,40,96,255],toColor:[0,41,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,41,98,255],toColor:[0,
42,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,42,100,255],toColor:[0,42,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,42,101,255],toColor:[0,43,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,43,103,255],toColor:[0,44,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,44,105,255],toColor:[0,45,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,45,107,255],toColor:[0,
45,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,45,109,255],toColor:[0,46,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,46,110,255],toColor:[0,47,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,47,111,255],toColor:[0,47,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,47,112,255],toColor:[0,47,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,47,112,255],toColor:[0,
48,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,48,112,255],toColor:[0,49,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,49,112,255],toColor:[0,49,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,49,112,255],toColor:[0,50,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,50,112,255],toColor:[0,51,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,51,111,255],toColor:[0,
52,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,52,111,255],toColor:[0,52,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,52,111,255],toColor:[0,53,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,53,111,255],toColor:[1,54,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[1,54,111,255],toColor:[6,55,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[6,55,110,255],toColor:[11,
55,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[11,55,110,255],toColor:[15,56,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[15,56,110,255],toColor:[18,57,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[18,57,110,255],toColor:[21,57,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[21,57,110,255],toColor:[24,58,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[24,58,110,255],
toColor:[26,59,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[26,59,109,255],toColor:[29,60,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[29,60,109,255],toColor:[31,60,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,60,109,255],toColor:[33,61,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[33,61,109,255],toColor:[35,62,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[35,
62,109,255],toColor:[37,63,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[37,63,109,255],toColor:[38,63,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[38,63,109,255],toColor:[40,64,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[40,64,108,255],toColor:[42,65,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[42,65,108,255],toColor:[43,65,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[43,65,108,255],toColor:[45,66,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[45,66,108,255],toColor:[46,67,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[46,67,108,255],toColor:[48,68,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[48,68,108,255],toColor:[49,68,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[49,68,108,255],toColor:[51,69,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[51,69,108,255],toColor:[52,70,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[52,70,108,255],toColor:[53,70,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[53,70,108,255],toColor:[55,71,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[55,71,108,255],toColor:[56,72,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[56,72,108,255],toColor:[57,73,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[57,73,108,255],toColor:[58,73,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[58,73,108,255],toColor:[60,74,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[60,74,108,255],toColor:[61,75,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[61,75,108,255],toColor:[62,75,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[62,75,108,255],toColor:[63,76,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[63,76,108,255],toColor:[64,77,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[64,77,108,255],toColor:[65,78,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[65,78,108,255],toColor:[67,78,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[67,78,108,255],toColor:[68,79,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[68,79,108,255],toColor:[69,80,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[69,80,108,255],toColor:[70,80,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,80,108,255],toColor:[71,81,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,81,108,255],toColor:[72,82,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,82,108,255],toColor:[73,83,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[73,83,108,255],toColor:[74,83,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[74,83,108,255],toColor:[75,84,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[75,84,108,255],toColor:[76,85,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[76,85,108,255],toColor:[77,86,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[77,86,108,255],toColor:[78,86,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[78,86,108,255],toColor:[79,87,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[79,87,108,255],toColor:[80,88,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[80,88,108,255],toColor:[81,88,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[81,88,109,255],toColor:[82,89,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[82,89,109,255],toColor:[83,90,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[83,90,109,255],toColor:[84,91,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[84,91,109,255],toColor:[85,91,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[85,91,109,255],toColor:[86,92,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[86,92,109,255],toColor:[87,93,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[87,93,109,255],toColor:[88,93,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[88,93,109,255],toColor:[89,94,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[89,94,110,255],toColor:[90,95,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[90,95,110,255],toColor:[91,96,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[91,96,110,255],toColor:[92,96,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[92,96,110,255],toColor:[93,97,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[93,97,110,255],toColor:[94,98,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[94,98,110,255],toColor:[94,99,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[94,99,111,255],toColor:[95,99,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[95,99,111,255],toColor:[96,100,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[96,100,111,255],toColor:[97,101,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[97,101,111,255],toColor:[98,101,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[98,101,111,255],toColor:[99,102,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[99,102,112,255],toColor:[100,103,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[100,103,112,255],toColor:[101,104,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[101,104,112,255],toColor:[102,104,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[102,104,112,255],toColor:[103,105,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[103,105,113,255],toColor:[104,106,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[104,106,113,255],toColor:[104,107,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[104,107,113,255],toColor:[105,107,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[105,107,113,255],toColor:[106,108,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[106,108,114,255],toColor:[107,109,114,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[107,109,114,255],toColor:[108,109,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[108,109,114,255],toColor:[109,110,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[109,110,115,255],toColor:[110,111,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[110,111,115,255],toColor:[111,112,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[111,112,115,255],toColor:[111,
112,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[111,112,115,255],toColor:[112,113,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[112,113,116,255],toColor:[113,114,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[113,114,116,255],toColor:[114,115,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[114,115,116,255],toColor:[115,115,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[115,
115,117,255],toColor:[116,116,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[116,116,117,255],toColor:[117,117,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[117,117,117,255],toColor:[117,118,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[117,118,118,255],toColor:[118,118,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[118,118,118,255],toColor:[119,119,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[119,119,119,255],toColor:[120,120,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[120,120,119,255],toColor:[121,121,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[121,121,119,255],toColor:[122,121,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[122,121,120,255],toColor:[123,122,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[123,122,120,255],toColor:[124,123,120,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[124,123,120,255],toColor:[124,124,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[124,124,121,255],toColor:[125,124,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[125,124,121,255],toColor:[126,125,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[126,125,121,255],toColor:[127,126,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[127,126,121,255],toColor:[128,
127,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[128,127,121,255],toColor:[129,127,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[129,127,121,255],toColor:[130,128,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[130,128,121,255],toColor:[131,129,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[131,129,121,255],toColor:[132,130,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[132,
130,121,255],toColor:[133,130,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[133,130,121,255],toColor:[134,131,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[134,131,121,255],toColor:[135,132,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[135,132,121,255],toColor:[136,133,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[136,133,121,255],toColor:[137,134,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[137,134,121,255],toColor:[138,134,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[138,134,121,255],toColor:[139,135,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[139,135,121,255],toColor:[140,136,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[140,136,121,255],toColor:[141,137,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[141,137,121,255],toColor:[142,137,121,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[142,137,121,255],toColor:[143,138,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[143,138,121,255],toColor:[144,139,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[144,139,121,255],toColor:[145,140,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[145,140,121,255],toColor:[146,141,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[146,141,121,255],toColor:[147,
141,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[147,141,121,255],toColor:[148,142,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[148,142,121,255],toColor:[149,143,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[149,143,121,255],toColor:[150,144,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[150,144,121,255],toColor:[151,145,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[151,
145,120,255],toColor:[152,145,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[152,145,120,255],toColor:[153,146,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[153,146,120,255],toColor:[154,147,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[154,147,120,255],toColor:[155,148,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[155,148,120,255],toColor:[156,149,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[156,149,120,255],toColor:[157,149,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[157,149,120,255],toColor:[158,150,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[158,150,120,255],toColor:[159,151,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[159,151,119,255],toColor:[160,152,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[160,152,119,255],toColor:[161,153,119,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[161,153,119,255],toColor:[162,153,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[162,153,119,255],toColor:[163,154,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[163,154,119,255],toColor:[164,155,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[164,155,118,255],toColor:[165,156,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[165,156,118,255],toColor:[166,
157,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[166,157,118,255],toColor:[167,158,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[167,158,118,255],toColor:[168,158,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[168,158,118,255],toColor:[169,159,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[169,159,117,255],toColor:[170,160,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[170,
160,117,255],toColor:[171,161,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[171,161,117,255],toColor:[172,162,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[172,162,117,255],toColor:[173,162,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[173,162,116,255],toColor:[174,163,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[174,163,116,255],toColor:[175,164,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[175,164,116,255],toColor:[177,165,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[177,165,115,255],toColor:[178,166,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[178,166,115,255],toColor:[179,167,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[179,167,115,255],toColor:[180,168,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[180,168,115,255],toColor:[181,168,114,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[181,168,114,255],toColor:[182,169,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[182,169,114,255],toColor:[183,170,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[183,170,114,255],toColor:[184,171,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[184,171,113,255],toColor:[185,172,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[185,172,113,255],toColor:[186,
173,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[186,173,113,255],toColor:[187,173,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[187,173,112,255],toColor:[188,174,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[188,174,112,255],toColor:[189,175,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[189,175,111,255],toColor:[190,176,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[190,
176,111,255],toColor:[191,177,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[191,177,111,255],toColor:[192,178,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[192,178,110,255],toColor:[194,179,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[194,179,110,255],toColor:[195,180,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[195,180,109,255],toColor:[196,180,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[196,180,109,255],toColor:[197,181,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[197,181,109,255],toColor:[198,182,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[198,182,108,255],toColor:[199,183,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[199,183,108,255],toColor:[200,184,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[200,184,107,255],toColor:[201,185,107,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[201,185,107,255],toColor:[202,186,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[202,186,106,255],toColor:[203,187,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[203,187,106,255],toColor:[204,187,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[204,187,105,255],toColor:[205,188,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[205,188,105,255],toColor:[207,
189,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[207,189,104,255],toColor:[208,190,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[208,190,104,255],toColor:[209,191,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[209,191,103,255],toColor:[210,192,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[210,192,103,255],toColor:[211,193,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[211,
193,102,255],toColor:[212,194,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[212,194,101,255],toColor:[213,195,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[213,195,101,255],toColor:[214,196,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[214,196,100,255],toColor:[215,196,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[215,196,100,255],toColor:[217,197,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[217,197,99,255],toColor:[218,198,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[218,198,98,255],toColor:[219,199,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[219,199,98,255],toColor:[220,200,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[220,200,97,255],toColor:[221,201,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[221,201,96,255],toColor:[222,202,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[222,202,96,255],toColor:[223,203,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[223,203,95,255],toColor:[224,204,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[224,204,94,255],toColor:[226,205,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[226,205,94,255],toColor:[227,206,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[227,206,93,255],toColor:[228,207,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[228,207,92,255],toColor:[229,208,91,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[229,208,91,255],toColor:[230,209,91,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[230,209,91,255],toColor:[231,209,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[231,209,90,255],toColor:[233,210,89,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[233,210,89,255],toColor:[234,211,88,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[234,211,88,255],toColor:[235,212,87,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[235,212,87,255],toColor:[236,213,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[236,213,86,255],toColor:[237,214,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[237,214,86,255],toColor:[238,215,85,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[238,215,85,255],toColor:[239,216,84,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[239,216,84,255],toColor:[241,217,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[241,217,83,255],toColor:[242,218,82,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,218,82,255],toColor:[243,219,81,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,219,81,255],toColor:[244,220,80,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,220,80,255],toColor:[245,221,79,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[245,221,79,255],toColor:[246,222,78,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[246,222,78,255],toColor:[248,223,77,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,223,77,255],toColor:[249,224,75,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,224,75,255],toColor:[250,225,74,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,225,74,255],toColor:[251,226,73,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[251,226,73,255],toColor:[252,227,72,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,227,72,255],toColor:[254,228,71,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,228,71,255],toColor:[255,229,69,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,229,69,255],toColor:[255,230,68,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,230,68,255],toColor:[255,231,67,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[255,231,67,255],toColor:[255,232,66,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,232,66,255],toColor:[255,233,67,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,233,67,255],toColor:[255,234,69,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,234,69,255],toColor:[255,235,70,255]}]},{id:"coefficientBias_predefined",fromColor:[214,214,255],toColor:[0,57,148]},{id:"coldToHotDiverging_predefined",type:"multipart",colorRamps:[{fromColor:[69,
117,181],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[214,47,39]}]},{id:"conditionNumber_predefined",type:"multipart",colorRamps:[{fromColor:[0,97,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,34,0]}]},{id:"cyanToPurple_predefined",type:"multipart",colorRamps:[{fromColor:[0,245,245],toColor:[0,0,245]},{fromColor:[0,0,245],toColor:[245,0,245]}]},{id:"cyanLightToBlueDark_predefined",type:"multipart",colorRamps:[{fromColor:[182,237,240],toColor:[31,131,224]},{fromColor:[31,
131,224],toColor:[9,9,145]}]},{id:"distance_predefined",fromColor:[255,200,0],toColor:[0,0,255]},{id:"elevation1_predefined",type:"multipart",colorRamps:[{fromColor:[175,240,233],toColor:[255,255,179]},{fromColor:[255,255,179],toColor:[0,128,64]},{fromColor:[0,128,64],toColor:[252,186,3]},{fromColor:[252,186,3],toColor:[128,0,0]},{fromColor:[120,0,0],toColor:[105,48,13]},{fromColor:[105,48,13],toColor:[171,171,171]},{fromColor:[171,171,171],toColor:[255,252,255]}]},{id:"elevation2_predefined",type:"multipart",
colorRamps:[{fromColor:[118,219,211],toColor:[255,255,199]},{fromColor:[255,255,199],toColor:[255,255,128]},{fromColor:[255,255,128],toColor:[217,194,121]},{fromColor:[217,194,121],toColor:[135,96,38]},{fromColor:[135,96,38],toColor:[150,150,181]},{fromColor:[150,150,181],toColor:[181,150,181]},{fromColor:[181,150,181],toColor:[255,252,255]}]},{id:"errors_predefined",fromColor:[255,235,214],toColor:[196,10,10]},{id:"grayLightToDark_predefined",fromColor:[219,219,219],toColor:[69,69,69]},{id:"greenBright_predefined",
fromColor:[204,255,204],toColor:[14,204,14]},{id:"greenLightToDark_predefined",fromColor:[220,245,233],toColor:[34,102,51]},{id:"greenToBlue_predefined",type:"multipart",colorRamps:[{fromColor:[32,204,16],toColor:[0,242,242]},{fromColor:[0,242,242],toColor:[2,33,227]}]},{id:"inferno_predefined",type:"multipart",colorRamps:[{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,0,4,255],toColor:[1,0,5,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[1,0,5,255],toColor:[1,
1,6,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[1,1,6,255],toColor:[1,1,8,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[1,1,8,255],toColor:[2,1,10,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[2,1,10,255],toColor:[2,2,12,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[2,2,12,255],toColor:[2,2,14,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[2,2,14,255],toColor:[3,2,16,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[3,2,16,255],toColor:[4,3,18,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[4,3,18,255],toColor:[4,3,21,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[4,3,21,255],toColor:[5,4,23,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[5,4,23,255],toColor:[6,4,25,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[6,4,25,255],toColor:[7,5,27,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[7,5,27,255],toColor:[8,6,29,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[8,6,29,255],toColor:[9,6,32,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[9,6,32,255],toColor:[10,7,34,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[10,7,34,255],toColor:[11,7,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[11,7,36,255],toColor:[12,8,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[12,
8,38,255],toColor:[13,8,41,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[13,8,41,255],toColor:[14,9,43,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[14,9,43,255],toColor:[16,9,45,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[16,9,45,255],toColor:[17,10,48,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[17,10,48,255],toColor:[18,10,50,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[18,10,
50,255],toColor:[20,11,53,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[20,11,53,255],toColor:[21,11,55,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[21,11,55,255],toColor:[22,11,58,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[22,11,58,255],toColor:[24,12,60,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[24,12,60,255],toColor:[25,12,62,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[25,
12,62,255],toColor:[27,12,65,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[27,12,65,255],toColor:[28,12,67,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[28,12,67,255],toColor:[30,12,70,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[30,12,70,255],toColor:[31,12,72,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,12,72,255],toColor:[33,12,74,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[33,
12,74,255],toColor:[35,12,77,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[35,12,77,255],toColor:[36,12,79,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[36,12,79,255],toColor:[38,12,81,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[38,12,81,255],toColor:[40,11,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[40,11,83,255],toColor:[42,11,85,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[42,
11,85,255],toColor:[43,11,87,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[43,11,87,255],toColor:[45,11,89,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[45,11,89,255],toColor:[47,10,91,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[47,10,91,255],toColor:[49,10,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[49,10,93,255],toColor:[51,10,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[51,
10,94,255],toColor:[52,10,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[52,10,96,255],toColor:[54,9,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[54,9,97,255],toColor:[56,9,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[56,9,98,255],toColor:[58,9,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[58,9,99,255],toColor:[59,9,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[59,9,
100,255],toColor:[61,9,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[61,9,101,255],toColor:[63,9,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[63,9,102,255],toColor:[64,10,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[64,10,103,255],toColor:[66,10,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[66,10,104,255],toColor:[68,10,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[68,
10,105,255],toColor:[69,10,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[69,10,105,255],toColor:[71,11,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,11,106,255],toColor:[73,11,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[73,11,107,255],toColor:[74,12,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[74,12,107,255],toColor:[76,12,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[76,12,108,255],toColor:[78,13,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[78,13,108,255],toColor:[79,13,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[79,13,108,255],toColor:[81,14,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[81,14,109,255],toColor:[83,14,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[83,14,109,255],toColor:[84,15,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[84,15,109,255],toColor:[86,15,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[86,15,110,255],toColor:[87,16,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[87,16,110,255],toColor:[89,17,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[89,17,110,255],toColor:[91,17,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[91,17,110,255],toColor:[92,18,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[92,18,110,255],toColor:[94,18,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[94,18,111,255],toColor:[95,19,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[95,19,111,255],toColor:[97,20,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[97,20,111,255],toColor:[99,20,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[99,20,111,255],toColor:[100,21,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[100,21,111,255],toColor:[102,21,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[102,21,111,255],toColor:[103,22,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[103,22,111,255],toColor:[105,23,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[105,23,111,255],toColor:[107,23,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[107,23,111,255],toColor:[108,24,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[108,24,111,255],toColor:[110,24,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[110,24,111,255],toColor:[111,25,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[111,25,111,255],toColor:[113,25,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[113,25,110,255],toColor:[115,26,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[115,26,110,255],toColor:[116,27,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[116,27,110,255],toColor:[118,27,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[118,27,110,255],toColor:[119,28,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[119,28,110,255],toColor:[121,28,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[121,28,110,255],toColor:[123,29,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[123,29,109,255],toColor:[124,29,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[124,29,109,255],toColor:[126,30,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[126,30,109,255],toColor:[127,31,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[127,31,109,255],toColor:[129,31,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[129,31,108,255],toColor:[130,32,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[130,32,108,255],toColor:[132,32,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[132,32,108,255],toColor:[134,33,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[134,33,107,255],toColor:[135,33,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[135,33,107,255],toColor:[137,34,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[137,34,107,255],toColor:[138,34,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[138,34,106,255],toColor:[140,35,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[140,35,106,255],toColor:[142,36,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[142,36,105,255],toColor:[143,36,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[143,36,105,255],toColor:[145,37,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[145,37,105,255],toColor:[146,37,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[146,37,104,255],toColor:[148,38,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[148,38,104,255],toColor:[150,38,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[150,38,103,255],toColor:[151,39,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[151,39,102,255],toColor:[153,40,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[153,40,102,255],toColor:[154,40,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[154,40,101,255],toColor:[156,41,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[156,41,101,255],toColor:[158,41,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[158,41,100,255],toColor:[159,42,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[159,42,100,255],toColor:[161,43,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[161,43,99,255],toColor:[162,43,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[162,43,98,255],toColor:[164,44,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[164,44,98,255],toColor:[165,45,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[165,45,97,255],toColor:[167,45,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[167,45,96,255],toColor:[169,46,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[169,46,95,255],toColor:[170,46,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[170,46,95,255],toColor:[172,47,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[172,47,94,255],toColor:[173,48,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[173,48,93,255],toColor:[175,49,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[175,49,92,255],toColor:[176,49,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[176,49,92,255],toColor:[178,50,91,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[178,50,91,255],toColor:[179,51,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[179,51,90,255],toColor:[181,51,89,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[181,51,89,255],toColor:[182,52,88,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[182,52,88,255],toColor:[184,53,87,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[184,53,87,255],toColor:[185,54,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[185,54,86,255],toColor:[187,54,85,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[187,54,85,255],toColor:[188,55,85,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[188,55,85,255],toColor:[190,56,84,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[190,56,84,255],toColor:[191,57,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[191,57,83,255],toColor:[193,58,82,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[193,58,82,255],toColor:[194,59,81,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[194,59,81,255],toColor:[196,60,80,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[196,60,80,255],toColor:[197,60,79,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[197,60,79,255],toColor:[198,61,78,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[198,61,78,255],toColor:[200,62,77,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[200,62,77,255],toColor:[201,63,76,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[201,63,76,255],toColor:[203,64,75,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[203,64,75,255],toColor:[204,65,74,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[204,65,74,255],toColor:[205,66,72,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[205,66,72,255],toColor:[207,67,71,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[207,67,71,255],toColor:[208,68,70,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[208,68,70,255],toColor:[209,69,69,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[209,69,69,255],toColor:[211,70,68,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[211,70,68,255],toColor:[212,72,67,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[212,72,67,255],toColor:[213,73,66,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[213,73,66,255],toColor:[214,74,65,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[214,74,65,255],toColor:[216,75,64,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[216,75,64,255],toColor:[217,76,62,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[217,76,62,255],toColor:[218,77,61,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[218,77,61,255],toColor:[219,79,60,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[219,79,60,255],toColor:[220,80,59,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[220,80,59,255],toColor:[221,81,58,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[221,81,58,255],toColor:[223,82,57,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[223,82,57,255],toColor:[224,84,56,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[224,84,56,255],toColor:[225,85,54,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[225,85,54,255],toColor:[226,86,53,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[226,86,53,255],toColor:[227,88,52,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[227,88,52,255],toColor:[228,89,51,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[228,89,51,255],toColor:[229,90,50,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[229,90,50,255],toColor:[230,92,48,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[230,92,48,255],toColor:[231,93,47,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[231,93,47,255],toColor:[232,95,46,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[232,95,46,255],toColor:[233,96,45,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[233,96,45,255],toColor:[234,98,43,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[234,98,43,255],toColor:[235,99,42,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[235,99,42,255],toColor:[235,101,41,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[235,101,41,255],toColor:[236,102,40,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[236,102,40,255],toColor:[237,104,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[237,104,38,255],toColor:[238,105,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[238,105,37,255],toColor:[239,107,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[239,107,36,255],toColor:[240,109,35,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[240,109,35,255],toColor:[240,110,33,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[240,110,33,255],toColor:[241,112,32,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[241,112,32,255],toColor:[242,113,31,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,113,31,255],toColor:[242,115,30,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,115,30,255],toColor:[243,117,28,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[243,117,28,255],toColor:[244,118,27,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,118,27,255],toColor:[244,120,26,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,120,26,255],toColor:[245,122,24,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,122,24,255],toColor:[246,123,23,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[246,123,23,255],toColor:[246,125,22,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[246,125,22,255],toColor:[247,127,20,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,127,20,255],toColor:[247,129,19,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,129,19,255],toColor:[248,130,18,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,130,18,255],toColor:[248,132,16,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,132,16,255],toColor:[249,134,15,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[249,134,15,255],toColor:[249,136,14,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,136,14,255],toColor:[249,137,12,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,137,12,255],toColor:[250,139,11,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,139,11,255],toColor:[250,141,10,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,141,10,255],toColor:[250,143,9,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[250,143,9,255],toColor:[251,145,8,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,145,8,255],toColor:[251,146,7,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,146,7,255],toColor:[251,148,7,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,148,7,255],toColor:[252,150,6,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,150,6,255],toColor:[252,152,6,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[252,152,6,255],toColor:[252,154,6,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,154,6,255],toColor:[252,156,6,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,156,6,255],toColor:[252,158,7,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,158,7,255],toColor:[253,160,7,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,160,7,255],toColor:[253,161,8,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[253,161,8,255],toColor:[253,163,9,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,163,9,255],toColor:[253,165,10,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,165,10,255],toColor:[253,167,12,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,167,12,255],toColor:[253,169,13,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,169,13,255],toColor:[253,171,15,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[253,171,15,255],toColor:[253,173,17,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,173,17,255],toColor:[253,175,19,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,175,19,255],toColor:[253,177,20,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,177,20,255],toColor:[253,179,22,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,179,22,255],toColor:[253,181,25,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[253,181,25,255],toColor:[252,183,27,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,183,27,255],toColor:[252,185,29,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,185,29,255],toColor:[252,186,31,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,186,31,255],toColor:[252,188,33,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,188,33,255],toColor:[252,190,35,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[252,190,35,255],toColor:[251,192,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,192,38,255],toColor:[251,194,40,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,194,40,255],toColor:[251,196,43,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,196,43,255],toColor:[251,198,45,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,198,45,255],toColor:[250,200,48,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[250,200,48,255],toColor:[250,202,50,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,202,50,255],toColor:[250,204,53,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,204,53,255],toColor:[249,206,56,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,206,56,255],toColor:[249,208,58,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,208,58,255],toColor:[248,210,61,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[248,210,61,255],toColor:[248,212,64,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,212,64,255],toColor:[247,214,67,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,214,67,255],toColor:[247,216,70,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,216,70,255],toColor:[246,218,73,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[246,218,73,255],toColor:[246,220,76,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[246,220,76,255],toColor:[245,222,80,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,222,80,255],toColor:[245,224,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,224,83,255],toColor:[244,226,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,226,86,255],toColor:[244,228,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,228,90,255],toColor:[244,229,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[244,229,94,255],toColor:[243,231,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,231,97,255],toColor:[243,233,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,233,101,255],toColor:[243,235,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,235,105,255],toColor:[242,237,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,237,109,255],toColor:[242,238,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[242,238,113,255],toColor:[242,240,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,240,117,255],toColor:[242,242,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,242,122,255],toColor:[243,243,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,243,126,255],toColor:[243,245,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,245,130,255],toColor:[244,246,134,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[244,246,134,255],toColor:[244,247,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,247,138,255],toColor:[245,249,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,249,142,255],toColor:[246,250,146,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[246,250,146,255],toColor:[247,251,150,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,251,150,255],toColor:[249,
252,154,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,252,154,255],toColor:[250,253,158,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,253,158,255],toColor:[251,254,162,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,254,162,255],toColor:[253,255,165,255]}]},{id:"magma_predefined",type:"multipart",colorRamps:[{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[0,0,4,255],toColor:[1,0,5,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[1,0,5,255],toColor:[1,1,6,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[1,1,6,255],toColor:[1,1,8,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[1,1,8,255],toColor:[2,1,10,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[2,1,10,255],toColor:[2,2,12,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[2,2,12,255],toColor:[2,2,14,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[2,2,14,255],toColor:[3,3,16,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[3,3,16,255],toColor:[4,3,18,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[4,3,18,255],toColor:[4,4,20,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[4,4,20,255],toColor:[5,4,22,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[5,4,22,255],toColor:[6,5,24,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[6,5,24,
255],toColor:[6,5,26,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[6,5,26,255],toColor:[7,6,28,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[7,6,28,255],toColor:[8,7,30,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[8,7,30,255],toColor:[9,7,32,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[9,7,32,255],toColor:[10,8,34,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[10,8,34,255],toColor:[11,
9,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[11,9,36,255],toColor:[12,9,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[12,9,38,255],toColor:[13,10,41,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[13,10,41,255],toColor:[14,11,43,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[14,11,43,255],toColor:[16,11,45,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[16,11,45,255],toColor:[17,
12,47,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[17,12,47,255],toColor:[18,13,50,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[18,13,50,255],toColor:[19,13,52,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[19,13,52,255],toColor:[20,14,54,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[20,14,54,255],toColor:[21,14,57,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[21,14,57,255],toColor:[23,
15,59,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[23,15,59,255],toColor:[24,15,61,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[24,15,61,255],toColor:[25,16,64,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[25,16,64,255],toColor:[26,16,66,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[26,16,66,255],toColor:[28,16,68,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[28,16,68,255],toColor:[29,
17,71,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[29,17,71,255],toColor:[30,17,73,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[30,17,73,255],toColor:[32,17,76,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,17,76,255],toColor:[33,17,78,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[33,17,78,255],toColor:[35,18,81,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[35,18,81,255],toColor:[36,
18,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[36,18,83,255],toColor:[38,18,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[38,18,86,255],toColor:[39,18,88,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[39,18,88,255],toColor:[41,18,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[41,18,90,255],toColor:[42,17,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[42,17,93,255],toColor:[44,
17,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[44,17,95,255],toColor:[46,17,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[46,17,97,255],toColor:[47,17,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[47,17,99,255],toColor:[49,17,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[49,17,101,255],toColor:[51,16,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[51,16,103,255],toColor:[52,
16,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[52,16,105,255],toColor:[54,16,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[54,16,107,255],toColor:[56,16,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[56,16,109,255],toColor:[58,15,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[58,15,111,255],toColor:[59,15,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[59,15,112,255],
toColor:[61,15,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[61,15,113,255],toColor:[63,15,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[63,15,115,255],toColor:[65,15,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[65,15,116,255],toColor:[66,15,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[66,15,117,255],toColor:[68,15,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[68,
15,118,255],toColor:[70,16,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,16,119,255],toColor:[71,16,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,16,120,255],toColor:[73,16,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[73,16,121,255],toColor:[75,17,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[75,17,122,255],toColor:[76,17,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[76,17,122,255],toColor:[78,17,123,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[78,17,123,255],toColor:[79,18,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[79,18,124,255],toColor:[81,18,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[81,18,124,255],toColor:[83,19,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[83,19,125,255],toColor:[84,19,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[84,19,125,255],toColor:[86,20,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[86,20,126,255],toColor:[87,21,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[87,21,126,255],toColor:[89,21,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[89,21,126,255],toColor:[91,22,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[91,22,127,255],toColor:[92,22,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[92,22,127,255],toColor:[94,23,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[94,23,127,255],toColor:[95,24,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[95,24,128,255],toColor:[97,24,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[97,24,128,255],toColor:[98,25,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[98,25,128,255],toColor:[100,26,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[100,26,128,255],toColor:[101,26,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[101,26,129,255],toColor:[103,27,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[103,27,129,255],toColor:[105,28,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[105,28,129,255],toColor:[106,28,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[106,28,129,255],toColor:[108,29,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[108,29,129,255],toColor:[109,30,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[109,30,129,255],toColor:[111,30,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[111,30,130,255],toColor:[112,31,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[112,31,130,255],toColor:[114,31,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[114,31,130,255],toColor:[116,32,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[116,32,130,255],toColor:[117,33,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[117,33,130,255],toColor:[119,33,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[119,33,130,255],toColor:[120,34,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[120,34,130,255],toColor:[122,34,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[122,34,130,255],toColor:[123,35,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[123,35,130,255],toColor:[125,36,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[125,36,130,255],toColor:[127,36,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[127,36,130,255],toColor:[128,37,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[128,37,130,255],toColor:[130,37,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[130,37,130,255],toColor:[131,38,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[131,38,130,255],toColor:[133,39,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[133,39,130,255],toColor:[134,39,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[134,39,130,255],toColor:[136,40,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[136,40,130,255],toColor:[138,40,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[138,40,130,255],toColor:[139,41,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[139,41,130,255],toColor:[141,41,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[141,41,129,255],toColor:[142,42,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[142,42,129,255],toColor:[144,42,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[144,42,129,255],toColor:[146,43,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[146,43,129,255],toColor:[147,43,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[147,43,129,255],toColor:[149,44,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[149,44,129,255],toColor:[151,44,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[151,44,129,255],toColor:[152,45,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[152,45,128,255],toColor:[154,46,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[154,46,128,255],toColor:[155,46,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[155,46,128,255],toColor:[157,47,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[157,47,128,255],toColor:[159,47,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[159,47,127,255],toColor:[160,48,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[160,48,127,255],toColor:[162,48,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[162,48,127,255],toColor:[164,49,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[164,49,127,255],toColor:[165,49,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[165,49,126,255],toColor:[167,50,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[167,50,126,255],toColor:[169,50,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[169,50,126,255],toColor:[170,51,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[170,51,125,255],toColor:[172,51,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[172,51,125,255],toColor:[174,52,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[174,52,124,255],toColor:[175,52,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[175,52,124,255],toColor:[177,53,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[177,53,124,255],toColor:[178,53,123,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[178,53,123,255],toColor:[180,54,123,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[180,54,123,255],toColor:[182,54,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[182,54,122,255],toColor:[183,55,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[183,55,122,255],toColor:[185,56,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[185,56,121,255],toColor:[187,56,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[187,56,121,255],toColor:[188,57,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[188,57,120,255],toColor:[190,57,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[190,57,120,255],toColor:[192,58,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[192,58,119,255],toColor:[193,59,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[193,59,118,255],toColor:[195,59,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[195,59,118,255],toColor:[196,60,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[196,60,117,255],toColor:[198,60,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[198,60,117,255],toColor:[200,61,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[200,61,116,255],toColor:[201,62,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[201,62,115,255],toColor:[203,63,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[203,63,115,255],toColor:[204,63,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[204,63,114,255],toColor:[206,64,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[206,64,113,255],toColor:[208,65,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[208,65,112,255],toColor:[209,66,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[209,66,112,255],toColor:[211,66,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[211,66,111,255],toColor:[212,67,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[212,67,110,255],toColor:[214,68,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[214,68,109,255],toColor:[215,69,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[215,69,109,255],toColor:[217,70,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[217,70,108,255],toColor:[218,71,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[218,71,107,255],toColor:[220,72,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[220,72,106,255],toColor:[221,73,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[221,73,106,255],toColor:[222,74,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[222,74,105,255],toColor:[224,75,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[224,75,104,255],toColor:[225,76,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[225,76,103,255],toColor:[226,77,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[226,77,102,255],toColor:[228,78,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[228,78,102,255],toColor:[229,79,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[229,79,101,255],toColor:[230,81,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[230,81,100,255],toColor:[231,82,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[231,82,99,255],toColor:[233,83,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[233,83,99,255],toColor:[234,84,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[234,84,98,255],toColor:[235,86,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[235,86,97,255],toColor:[236,87,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[236,87,97,255],toColor:[237,89,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[237,89,96,255],toColor:[238,90,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[238,90,95,255],toColor:[239,92,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[239,92,95,255],toColor:[240,93,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[240,93,94,255],toColor:[241,95,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[241,95,94,255],toColor:[242,97,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,97,93,255],toColor:[242,98,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[242,98,93,255],toColor:[243,100,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,100,93,255],toColor:[244,102,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,102,93,255],toColor:[245,104,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,104,92,255],toColor:[245,105,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,105,92,255],toColor:[246,107,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[246,107,92,255],toColor:[247,109,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,109,92,255],toColor:[247,111,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,111,92,255],toColor:[248,113,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,113,92,255],toColor:[248,114,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,114,92,255],toColor:[249,116,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[249,116,92,255],toColor:[249,118,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,118,93,255],toColor:[250,120,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,120,93,255],toColor:[250,122,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,122,93,255],toColor:[250,124,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,124,94,255],toColor:[251,126,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[251,126,94,255],toColor:[251,128,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,128,95,255],toColor:[251,130,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,130,95,255],toColor:[252,131,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,131,96,255],toColor:[252,133,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,133,96,255],toColor:[252,135,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[252,135,97,255],toColor:[253,137,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,137,98,255],toColor:[253,139,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,139,99,255],toColor:[253,141,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,141,99,255],toColor:[253,143,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,143,100,255],toColor:[253,145,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[253,145,101,255],toColor:[254,147,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,147,102,255],toColor:[254,149,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,149,103,255],toColor:[254,150,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,150,104,255],toColor:[254,152,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,152,105,255],toColor:[254,154,106,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[254,154,106,255],toColor:[254,156,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,156,107,255],toColor:[255,158,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,158,108,255],toColor:[255,160,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,160,109,255],toColor:[255,162,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,162,111,255],toColor:[255,
164,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,164,112,255],toColor:[255,165,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,165,113,255],toColor:[255,167,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,167,114,255],toColor:[255,169,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,169,116,255],toColor:[255,171,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,
171,117,255],toColor:[255,173,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,173,118,255],toColor:[255,175,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,175,119,255],toColor:[255,177,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,177,121,255],toColor:[255,179,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,179,122,255],toColor:[255,180,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[255,180,124,255],toColor:[255,182,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,182,125,255],toColor:[255,184,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,184,126,255],toColor:[255,186,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,186,128,255],toColor:[255,188,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,188,129,255],toColor:[255,190,131,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[255,190,131,255],toColor:[255,191,132,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,191,132,255],toColor:[255,193,134,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,193,134,255],toColor:[255,195,135,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,195,135,255],toColor:[255,197,137,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,197,137,255],toColor:[255,
199,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,199,139,255],toColor:[255,201,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,201,140,255],toColor:[255,203,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,203,142,255],toColor:[255,204,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,204,143,255],toColor:[255,206,145,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,
206,145,255],toColor:[255,208,147,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,208,147,255],toColor:[255,210,148,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,210,148,255],toColor:[255,212,150,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,212,150,255],toColor:[255,214,152,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,214,152,255],toColor:[255,215,153,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[255,215,153,255],toColor:[255,217,155,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,217,155,255],toColor:[254,219,157,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,219,157,255],toColor:[254,221,159,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,221,159,255],toColor:[254,223,160,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,223,160,255],toColor:[254,225,162,255]},{type:"algorithmic",
algorithm:"esriCIELabAlgorithm",fromColor:[254,225,162,255],toColor:[254,226,164,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,226,164,255],toColor:[254,228,166,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,228,166,255],toColor:[254,230,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,230,167,255],toColor:[254,232,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,232,169,255],toColor:[254,
234,171,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,234,171,255],toColor:[254,236,173,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,236,173,255],toColor:[253,237,175,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,237,175,255],toColor:[253,239,177,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,239,177,255],toColor:[253,241,179,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,
241,179,255],toColor:[253,243,180,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,243,180,255],toColor:[253,245,182,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,245,182,255],toColor:[253,247,184,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,247,184,255],toColor:[253,248,186,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,248,186,255],toColor:[253,250,188,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[253,250,188,255],toColor:[253,252,190,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,252,190,255],toColor:[253,254,192,255]}]},{id:"orangeBright_predefined",fromColor:[255,235,204],toColor:[240,118,5]},{id:"orangeLightToDark_predefined",fromColor:[250,233,212],toColor:[171,65,36]},{id:"partialSpectrum_predefined",type:"multipart",colorRamps:[{fromColor:[242,241,162],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]},{fromColor:[252,3,69],toColor:[176,
7,237]},{fromColor:[176,7,237],toColor:[2,29,173]}]},{id:"partialSpectrum1Diverging_predefined",type:"multipart",colorRamps:[{fromColor:[135,38,38],toColor:[240,149,12]},{fromColor:[240,149,12],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[74,80,181]},{fromColor:[74,80,181],toColor:[39,32,122]}]},{id:"partialSpectrum2Diverging_predefined",type:"multipart",colorRamps:[{fromColor:[115,77,42],toColor:[201,137,52]},{fromColor:[201,137,52],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[91,
63,176]},{fromColor:[91,63,176],toColor:[81,13,97]}]},{id:"pinkToYellowGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[158,30,113],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[99,110,45]}]},{id:"pinkToYellowGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[97,47,73],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[22,59,15]}]},{id:"plasma_predefined",type:"multipart",colorRamps:[{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[13,8,135,255],toColor:[16,7,136,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[16,7,136,255],toColor:[19,7,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[19,7,138,255],toColor:[22,7,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[22,7,139,255],toColor:[25,6,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[25,6,140,255],toColor:[27,6,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[27,6,141,255],toColor:[29,6,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[29,6,142,255],toColor:[32,6,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,6,143,255],toColor:[34,6,144,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[34,6,144,255],toColor:[36,6,145,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[36,6,145,255],toColor:[38,5,146,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[38,5,146,255],toColor:[40,5,147,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[40,5,147,255],toColor:[42,5,148,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[42,5,148,255],toColor:[44,5,149,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[44,5,149,255],toColor:[46,5,150,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[46,5,150,255],toColor:[48,5,150,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[48,5,150,255],toColor:[50,5,151,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[50,5,151,255],toColor:[51,5,152,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[51,5,152,255],toColor:[53,4,153,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[53,4,153,255],toColor:[55,4,153,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[55,4,153,255],toColor:[57,4,154,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[57,4,154,255],toColor:[58,4,155,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[58,4,155,255],toColor:[60,4,156,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[60,4,156,255],toColor:[62,4,156,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[62,4,156,255],toColor:[64,4,157,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[64,4,157,255],toColor:[65,4,158,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[65,4,158,255],toColor:[67,3,158,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[67,3,158,255],toColor:[69,3,159,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[69,3,159,255],toColor:[70,3,159,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,3,159,255],toColor:[72,3,160,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,3,160,255],toColor:[73,3,161,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[73,3,161,255],toColor:[75,3,161,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[75,3,161,255],toColor:[77,2,162,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[77,2,162,255],toColor:[78,2,162,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[78,2,162,255],toColor:[80,2,163,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[80,2,163,255],toColor:[82,2,163,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[82,2,163,255],toColor:[83,2,164,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[83,2,164,255],toColor:[85,2,164,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[85,2,164,255],toColor:[86,1,165,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[86,1,165,255],toColor:[88,1,165,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[88,1,165,255],toColor:[90,1,165,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[90,1,165,255],toColor:[91,1,166,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[91,1,166,255],toColor:[93,1,166,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[93,1,166,255],toColor:[94,1,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[94,1,167,255],toColor:[96,1,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[96,1,167,255],toColor:[98,0,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[98,0,167,255],toColor:[99,0,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[99,0,167,255],toColor:[101,0,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[101,0,168,255],toColor:[102,0,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[102,0,168,255],toColor:[104,0,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[104,0,168,255],toColor:[105,0,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[105,0,168,255],toColor:[107,0,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[107,0,169,255],toColor:[108,0,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[108,0,169,255],toColor:[110,0,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[110,0,169,255],toColor:[112,0,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[112,0,169,255],toColor:[113,0,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[113,0,169,255],toColor:[115,1,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[115,1,169,255],toColor:[116,1,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[116,1,169,255],toColor:[118,1,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[118,1,169,255],toColor:[119,1,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[119,1,169,255],toColor:[121,1,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[121,1,169,255],toColor:[122,2,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[122,2,169,255],toColor:[124,2,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[124,2,169,255],toColor:[125,3,169,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[125,3,169,255],toColor:[127,3,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[127,3,168,255],toColor:[128,4,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[128,4,168,255],toColor:[130,4,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[130,4,168,255],toColor:[131,5,168,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[131,5,168,255],toColor:[133,6,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[133,6,167,255],toColor:[134,6,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[134,6,167,255],toColor:[136,7,167,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[136,7,167,255],toColor:[137,8,166,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[137,8,166,255],toColor:[138,9,166,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[138,9,166,255],toColor:[140,10,166,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[140,10,166,255],toColor:[141,11,165,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[141,11,165,255],toColor:[143,12,165,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[143,12,165,255],toColor:[144,13,164,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[144,13,164,255],toColor:[145,14,164,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[145,14,164,255],toColor:[147,15,163,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[147,15,163,255],toColor:[148,16,163,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[148,16,163,255],toColor:[150,18,162,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[150,18,162,255],toColor:[151,19,161,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[151,19,161,255],toColor:[152,20,161,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[152,20,161,255],toColor:[154,21,160,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[154,21,160,255],toColor:[155,22,159,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[155,22,159,255],toColor:[156,23,159,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[156,23,159,255],toColor:[158,24,158,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[158,24,158,255],toColor:[159,25,157,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[159,25,157,255],toColor:[160,26,156,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[160,26,156,255],toColor:[162,28,156,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[162,28,156,255],toColor:[163,29,155,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[163,29,155,255],toColor:[164,30,154,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[164,30,154,255],toColor:[165,31,153,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[165,31,153,255],toColor:[167,32,152,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[167,32,152,255],toColor:[168,33,152,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[168,33,152,255],toColor:[169,34,151,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[169,34,151,255],toColor:[170,35,150,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[170,35,150,255],toColor:[171,37,149,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[171,37,149,255],toColor:[173,38,148,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[173,38,148,255],toColor:[174,39,147,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[174,39,147,255],toColor:[175,40,146,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[175,40,146,255],toColor:[176,41,145,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[176,41,145,255],toColor:[177,42,145,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[177,42,145,255],toColor:[179,43,144,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[179,43,144,255],toColor:[180,45,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[180,45,143,255],toColor:[181,46,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[181,46,142,255],toColor:[182,47,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[182,47,141,255],toColor:[183,48,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[183,48,140,255],toColor:[184,49,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[184,49,139,255],toColor:[185,50,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[185,50,138,255],toColor:[186,51,137,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[186,51,137,255],toColor:[187,52,136,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[187,52,136,255],toColor:[188,54,135,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[188,54,135,255],toColor:[189,55,134,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[189,55,134,255],toColor:[191,56,133,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[191,56,133,255],toColor:[192,57,132,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[192,57,132,255],toColor:[193,58,131,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[193,58,131,255],toColor:[194,59,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[194,59,130,255],toColor:[195,60,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[195,60,129,255],toColor:[196,62,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[196,62,129,255],toColor:[197,63,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[197,63,128,255],toColor:[198,64,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[198,64,127,255],toColor:[199,65,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[199,65,126,255],toColor:[200,66,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[200,66,125,255],toColor:[201,67,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[201,67,124,255],toColor:[202,68,123,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[202,68,123,255],toColor:[202,69,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[202,69,122,255],toColor:[203,71,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[203,71,121,255],toColor:[204,72,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[204,72,120,255],toColor:[205,73,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[205,73,119,255],toColor:[206,74,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[206,74,118,255],toColor:[207,75,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[207,75,117,255],toColor:[208,76,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[208,76,117,255],toColor:[209,77,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[209,77,116,255],toColor:[210,79,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[210,79,115,255],toColor:[211,80,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[211,80,114,255],toColor:[212,81,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[212,81,113,255],toColor:[212,82,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[212,82,112,255],toColor:[213,83,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[213,83,111,255],toColor:[214,84,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[214,84,110,255],toColor:[215,85,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[215,85,109,255],toColor:[216,87,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[216,87,109,255],toColor:[217,88,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[217,88,108,255],toColor:[218,89,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[218,89,107,255],toColor:[218,90,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[218,90,106,255],toColor:[219,91,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[219,91,105,255],toColor:[220,92,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[220,92,104,255],toColor:[221,93,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[221,93,103,255],toColor:[222,95,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[222,95,102,255],toColor:[223,96,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[223,96,102,255],toColor:[223,97,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[223,97,101,255],toColor:[224,98,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[224,98,100,255],toColor:[225,99,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[225,99,99,255],toColor:[226,100,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[226,100,98,255],toColor:[226,102,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[226,102,97,255],toColor:[227,103,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[227,103,96,255],toColor:[228,104,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[228,104,96,255],toColor:[229,105,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[229,105,95,255],toColor:[229,106,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[229,106,94,255],toColor:[230,108,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[230,108,93,255],toColor:[231,109,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[231,109,92,255],toColor:[232,110,91,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[232,110,91,255],toColor:[232,111,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[232,111,90,255],toColor:[233,112,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[233,112,90,255],toColor:[234,114,89,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[234,114,89,255],toColor:[234,115,88,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[234,115,88,255],toColor:[235,116,87,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[235,116,87,255],toColor:[236,117,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[236,117,86,255],toColor:[236,119,85,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[236,119,85,255],toColor:[237,120,84,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[237,120,84,255],toColor:[238,121,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[238,121,83,255],toColor:[238,122,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[238,122,83,255],toColor:[239,124,82,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[239,124,82,255],toColor:[240,125,81,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[240,125,81,255],toColor:[240,126,80,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[240,126,80,255],toColor:[241,127,79,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[241,127,79,255],toColor:[241,129,78,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[241,129,78,255],toColor:[242,130,77,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,130,77,255],toColor:[242,131,77,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,131,77,255],toColor:[243,133,76,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,133,76,255],toColor:[244,134,75,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[244,134,75,255],toColor:[244,135,74,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,135,74,255],toColor:[245,136,73,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,136,73,255],toColor:[245,138,72,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,138,72,255],toColor:[246,139,71,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[246,139,71,255],toColor:[246,140,70,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[246,140,70,255],toColor:[247,142,70,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,142,70,255],toColor:[247,143,69,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,143,69,255],toColor:[248,144,68,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,144,68,255],toColor:[248,146,67,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,146,67,255],toColor:[248,147,66,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[248,147,66,255],toColor:[249,149,65,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,149,65,255],toColor:[249,150,64,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,150,64,255],toColor:[250,151,64,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,151,64,255],toColor:[250,153,63,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,153,63,255],toColor:[250,154,62,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[250,154,62,255],toColor:[251,156,61,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,156,61,255],toColor:[251,157,60,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,157,60,255],toColor:[251,158,59,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,158,59,255],toColor:[252,160,58,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,160,58,255],toColor:[252,161,58,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[252,161,58,255],toColor:[252,163,57,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,163,57,255],toColor:[253,164,56,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,164,56,255],toColor:[253,166,55,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,166,55,255],toColor:[253,167,54,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,167,54,255],toColor:[253,168,53,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[253,168,53,255],toColor:[253,170,52,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,170,52,255],toColor:[254,171,52,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,171,52,255],toColor:[254,173,51,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,173,51,255],toColor:[254,174,50,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,174,50,255],toColor:[254,176,49,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[254,176,49,255],toColor:[254,177,48,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,177,48,255],toColor:[254,179,48,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,179,48,255],toColor:[254,180,47,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,180,47,255],toColor:[254,182,46,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,182,46,255],toColor:[255,183,45,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[255,183,45,255],toColor:[255,185,45,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,185,45,255],toColor:[255,187,44,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,187,44,255],toColor:[255,188,43,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,188,43,255],toColor:[255,190,43,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,190,43,255],toColor:[255,191,42,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[255,191,42,255],toColor:[255,193,41,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[255,193,41,255],toColor:[254,194,41,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,194,41,255],toColor:[254,196,40,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,196,40,255],toColor:[254,198,40,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,198,40,255],toColor:[254,199,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[254,199,39,255],toColor:[254,201,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,201,39,255],toColor:[254,202,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,202,38,255],toColor:[254,204,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[254,204,38,255],toColor:[253,206,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,206,38,255],toColor:[253,207,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[253,207,37,255],toColor:[253,209,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,209,37,255],toColor:[253,211,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[253,211,37,255],toColor:[252,212,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,212,37,255],toColor:[252,214,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,214,36,255],toColor:[252,216,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[252,216,36,255],toColor:[251,217,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,217,36,255],toColor:[251,219,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[251,219,36,255],toColor:[250,221,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,221,37,255],toColor:[250,222,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[250,222,37,255],toColor:[249,224,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[249,224,37,255],toColor:[249,226,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,226,37,255],toColor:[248,227,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,227,37,255],toColor:[248,229,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[248,229,38,255],toColor:[247,231,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,231,38,255],toColor:[247,232,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[247,232,38,255],toColor:[246,234,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[246,234,39,255],toColor:[246,236,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[246,236,39,255],toColor:[245,238,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,238,39,255],toColor:[244,239,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[244,239,39,255],toColor:[244,241,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[244,241,39,255],toColor:[243,243,39,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[243,243,39,255],toColor:[242,245,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,245,38,255],toColor:[242,246,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[242,246,38,255],toColor:[241,248,36,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[241,248,36,255],toColor:[241,250,34,255]}]},{id:"precipitation_predefined",
type:"multipart",colorRamps:[{fromColor:[194,82,60],toColor:[237,161,19]},{fromColor:[237,161,19],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,219,0]},{fromColor:[0,219,0],toColor:[32,153,143]},{fromColor:[32,153,143],toColor:[11,44,122]}]},{id:"prediction_predefined",type:"multipart",colorRamps:[{fromColor:[40,146,199],toColor:[250,250,100]},{fromColor:[250,250,100],toColor:[232,16,20]}]},{id:"purpleBright_predefined",fromColor:[255,204,255],toColor:[199,0,199]},{id:"purpleToGreenDivergingBright_predefined",
type:"multipart",colorRamps:[{fromColor:[77,32,150],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[20,122,11]}]},{id:"purpleToGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[67,14,89],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[24,79,15]}]},{id:"purpleBlueBright_predefined",fromColor:[223,184,230],toColor:[112,12,242]},{id:"purpleBlueLightToDark_predefined",fromColor:[229,213,242],toColor:[93,44,112]},{id:"purpleRedBright_predefined",fromColor:[255,204,
225],toColor:[199,0,99]},{id:"purpleRedLightToDark_predefined",fromColor:[250,215,246],toColor:[143,17,57]},{id:"redBright_predefined",fromColor:[255,204,204],toColor:[219,0,0]},{id:"redLightToDark_predefined",fromColor:[255,224,224],toColor:[143,10,10]},{id:"redToBlueDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[196,69,57],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[48,95,207]}]},{id:"redToBlueDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[107,
13,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[13,53,97]}]},{id:"redToGreen_predefined",type:"multipart",colorRamps:[{fromColor:[245,0,0],toColor:[245,245,0]},{fromColor:[245,245,0],toColor:[0,245,0]}]},{id:"redToGreenDivergingBright_predefined",type:"multipart",colorRamps:[{fromColor:[186,20,20],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[54,145,33]}]},{id:"redToGreenDivergingDark_predefined",type:"multipart",colorRamps:[{fromColor:[97,21,13],toColor:[204,204,102]},
{fromColor:[204,204,102],toColor:[16,69,16]}]},{id:"slope_predefined",type:"multipart",colorRamps:[{fromColor:[56,168,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]},{id:"spectrumFullBright_predefined",type:"multipart",colorRamps:[{fromColor:[255,0,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,0,255]}]},{id:"spectrumFullDark_predefined",type:"multipart",colorRamps:[{fromColor:[153,0,0],toColor:[153,153,0]},{fromColor:[153,
153,0],toColor:[0,153,153]},{fromColor:[0,153,153],toColor:[0,0,153]}]},{id:"spectrumFullLight_predefined",type:"multipart",colorRamps:[{fromColor:[255,153,153],toColor:[255,255,153]},{fromColor:[255,255,153],toColor:[153,255,255]},{fromColor:[153,255,255],toColor:[153,153,255]}]},{id:"surface_predefined",type:"multipart",colorRamps:[{fromColor:[112,153,89],toColor:[242,238,162]},{fromColor:[242,238,162],toColor:[242,206,133]},{fromColor:[242,206,133],toColor:[194,140,124]},{fromColor:[194,140,124],
toColor:[255,242,255]}]},{id:"temperature_predefined",type:"multipart",colorRamps:[{fromColor:[255,252,255],toColor:[255,0,255]},{fromColor:[255,0,255],toColor:[0,0,255]},{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,255,0]},{fromColor:[0,255,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,128,0]},{fromColor:[255,128,0],toColor:[128,0,0]}]},{id:"viridis_predefined",type:"multipart",colorRamps:[{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[68,
1,84,255],toColor:[69,2,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[69,2,86,255],toColor:[69,4,87,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[69,4,87,255],toColor:[69,5,89,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[69,5,89,255],toColor:[70,7,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,7,90,255],toColor:[70,8,92,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,8,92,255],
toColor:[70,10,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,10,93,255],toColor:[71,11,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,11,95,255],toColor:[71,13,96,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,13,96,255],toColor:[71,14,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,14,98,255],toColor:[71,16,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,16,99,255],
toColor:[72,17,100,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,17,100,255],toColor:[72,19,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,19,102,255],toColor:[72,20,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,20,103,255],toColor:[72,22,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,22,104,255],toColor:[72,23,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,
23,106,255],toColor:[72,24,107,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,24,107,255],toColor:[72,26,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,26,108,255],toColor:[72,27,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,27,109,255],toColor:[72,28,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,28,110,255],toColor:[73,30,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[73,30,112,255],toColor:[73,31,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[73,31,113,255],toColor:[72,32,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,32,114,255],toColor:[72,34,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,34,115,255],toColor:[72,35,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,35,116,255],toColor:[72,36,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[72,36,117,255],toColor:[72,37,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,37,118,255],toColor:[72,39,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,39,119,255],toColor:[72,40,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,40,120,255],toColor:[72,41,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,41,121,255],toColor:[72,42,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[72,42,122,255],toColor:[72,44,123,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,44,123,255],toColor:[71,45,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,45,124,255],toColor:[71,46,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,46,125,255],toColor:[71,47,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[71,47,125,255],toColor:[71,49,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[71,49,126,255],toColor:[70,50,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,50,127,255],toColor:[70,51,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,51,128,255],toColor:[70,52,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,52,128,255],toColor:[70,54,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[70,54,129,255],toColor:[69,55,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[69,55,130,255],toColor:[69,56,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[69,56,130,255],toColor:[69,57,131,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[69,57,131,255],toColor:[68,58,132,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[68,58,132,255],toColor:[68,60,132,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[68,60,132,255],toColor:[68,61,133,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[68,61,133,255],toColor:[67,62,133,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[67,62,133,255],toColor:[67,63,134,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[67,63,134,255],toColor:[66,64,134,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[66,64,134,255],toColor:[66,66,135,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[66,66,135,255],toColor:[65,67,135,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[65,67,135,255],toColor:[65,68,136,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[65,68,136,255],toColor:[65,69,136,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[65,69,136,255],toColor:[64,70,136,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[64,70,136,255],toColor:[64,71,137,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[64,71,137,255],toColor:[63,73,137,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[63,73,137,255],toColor:[63,74,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[63,74,138,255],toColor:[62,75,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[62,75,138,255],toColor:[62,76,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[62,76,138,255],toColor:[61,77,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[61,77,138,255],toColor:[61,78,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[61,78,139,255],toColor:[60,79,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[60,79,139,255],toColor:[60,80,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[60,80,139,255],toColor:[59,81,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[59,81,139,255],toColor:[59,83,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[59,83,140,255],toColor:[58,84,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[58,84,140,255],toColor:[58,85,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[58,85,140,255],toColor:[57,86,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[57,86,140,255],toColor:[57,87,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[57,87,140,255],toColor:[56,88,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[56,88,141,255],toColor:[56,89,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[56,89,141,255],toColor:[55,90,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[55,90,141,255],toColor:[55,91,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[55,91,141,255],toColor:[54,92,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[54,92,141,255],toColor:[54,93,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[54,93,141,255],toColor:[53,94,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[53,94,141,255],toColor:[53,95,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[53,95,142,255],toColor:[52,96,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[52,96,142,255],toColor:[52,97,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[52,97,142,255],toColor:[52,98,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[52,98,142,255],toColor:[51,99,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[51,99,142,255],toColor:[51,100,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[51,100,142,255],toColor:[50,101,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[50,101,142,255],toColor:[50,102,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[50,102,142,255],toColor:[49,103,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[49,103,142,255],toColor:[49,104,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[49,104,142,255],toColor:[48,105,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[48,105,142,255],toColor:[48,106,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[48,106,142,255],toColor:[48,107,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[48,107,143,255],toColor:[47,108,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[47,108,143,255],toColor:[47,109,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[47,109,143,255],toColor:[46,110,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[46,110,143,255],toColor:[46,111,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[46,111,143,255],toColor:[45,112,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[45,112,143,255],toColor:[45,113,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[45,113,143,255],toColor:[45,114,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[45,114,143,255],toColor:[44,115,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[44,115,143,255],toColor:[44,116,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[44,116,143,255],toColor:[43,117,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[43,117,143,255],toColor:[43,118,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[43,118,143,255],toColor:[43,119,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[43,119,143,255],toColor:[42,120,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[42,120,143,255],toColor:[42,121,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[42,121,143,255],toColor:[42,122,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[42,122,143,255],toColor:[41,123,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[41,123,143,255],toColor:[41,123,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[41,123,143,255],toColor:[40,124,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[40,124,143,255],toColor:[40,125,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[40,125,143,255],toColor:[40,126,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[40,126,143,255],toColor:[39,127,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[39,127,143,255],toColor:[39,128,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[39,128,143,255],toColor:[39,129,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[39,129,143,255],toColor:[38,130,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[38,130,143,255],toColor:[38,131,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[38,131,143,255],toColor:[37,132,143,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[37,132,143,255],toColor:[37,133,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[37,133,142,255],toColor:[37,134,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[37,134,142,255],toColor:[36,135,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[36,135,142,255],toColor:[36,136,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[36,136,142,255],toColor:[36,137,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[36,137,142,255],toColor:[35,138,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[35,138,142,255],toColor:[35,139,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[35,139,142,255],toColor:[35,139,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[35,139,142,255],toColor:[34,140,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[34,140,142,255],toColor:[34,141,142,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[34,141,142,255],toColor:[34,142,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[34,142,141,255],toColor:[33,143,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[33,143,141,255],toColor:[33,144,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[33,144,141,255],toColor:[33,145,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[33,145,141,255],toColor:[32,146,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,146,141,255],toColor:[32,147,141,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[32,147,141,255],toColor:[32,148,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,148,140,255],toColor:[32,149,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,149,140,255],toColor:[31,150,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,150,140,255],toColor:[31,151,140,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,151,140,255],toColor:[31,152,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[31,152,139,255],toColor:[31,153,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,153,139,255],toColor:[31,154,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,154,139,255],toColor:[31,155,139,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,155,139,255],toColor:[31,156,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,156,138,255],toColor:[31,156,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[31,156,138,255],toColor:[31,157,138,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,157,138,255],toColor:[31,158,137,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,158,137,255],toColor:[31,159,137,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,159,137,255],toColor:[31,160,137,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,160,137,255],toColor:[31,161,136,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[31,161,136,255],toColor:[31,162,136,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[31,162,136,255],toColor:[32,163,135,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,163,135,255],toColor:[32,164,135,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,164,135,255],toColor:[32,165,134,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[32,165,134,255],toColor:[33,166,134,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[33,166,134,255],toColor:[33,167,134,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[33,167,134,255],toColor:[34,168,133,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[34,168,133,255],toColor:[34,169,133,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[34,169,133,255],toColor:[35,170,132,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[35,170,132,255],toColor:[36,170,131,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[36,170,131,255],toColor:[37,171,131,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[37,171,131,255],toColor:[38,172,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[38,172,130,255],toColor:[38,173,130,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[38,173,130,255],toColor:[39,174,129,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[39,174,129,255],toColor:[40,175,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[40,175,128,255],toColor:[41,176,128,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[41,176,128,255],toColor:[43,177,127,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[43,177,127,255],toColor:[44,178,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[44,178,126,255],toColor:[45,179,126,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[45,179,126,255],toColor:[46,180,125,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[46,180,125,255],toColor:[48,180,124,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[48,180,124,255],toColor:[49,181,123,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[49,181,123,255],toColor:[50,182,123,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[50,182,123,255],toColor:[52,183,122,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[52,183,122,255],toColor:[53,184,121,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[53,184,121,255],toColor:[55,185,120,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[55,185,120,255],toColor:[56,186,119,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[56,186,119,255],toColor:[58,187,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[58,187,118,255],toColor:[60,187,118,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[60,187,118,255],toColor:[61,188,117,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[61,188,117,255],toColor:[63,189,116,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[63,189,116,255],toColor:[65,190,115,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[65,190,115,255],toColor:[67,191,114,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[67,191,114,255],toColor:[68,192,113,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[68,192,113,255],toColor:[70,193,112,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[70,193,112,255],toColor:[72,193,111,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[72,193,111,255],toColor:[74,194,110,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[74,194,110,255],toColor:[76,195,109,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[76,195,109,255],toColor:[78,196,108,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[78,196,108,255],toColor:[80,197,106,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[80,197,106,255],toColor:[82,197,105,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[82,197,105,255],toColor:[84,198,104,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[84,198,104,255],toColor:[86,199,103,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[86,199,103,255],toColor:[88,200,102,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[88,200,102,255],toColor:[90,200,101,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[90,200,101,255],toColor:[92,201,99,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[92,201,99,255],toColor:[95,202,98,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[95,202,98,255],toColor:[97,203,97,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[97,203,97,255],toColor:[99,203,95,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[99,203,95,255],toColor:[101,204,94,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[101,204,94,255],toColor:[103,205,93,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[103,205,93,255],toColor:[106,206,91,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[106,206,91,255],toColor:[108,206,90,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[108,206,90,255],toColor:[110,207,89,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[110,207,89,255],toColor:[113,208,87,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[113,208,87,255],toColor:[115,208,86,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[115,208,86,255],toColor:[117,209,84,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[117,209,84,255],toColor:[120,210,83,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[120,210,83,255],toColor:[122,210,81,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[122,210,81,255],toColor:[125,211,80,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[125,211,80,255],toColor:[127,212,78,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[127,212,78,255],toColor:[130,212,77,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[130,212,77,255],toColor:[132,213,75,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[132,213,75,255],toColor:[135,213,74,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[135,213,74,255],toColor:[137,214,72,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[137,214,72,255],toColor:[140,215,71,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[140,215,71,255],toColor:[142,215,69,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[142,215,69,255],toColor:[145,216,67,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[145,216,67,255],toColor:[147,216,66,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[147,216,66,255],toColor:[150,217,64,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[150,217,64,255],toColor:[153,217,62,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[153,217,62,255],toColor:[155,218,61,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[155,218,61,255],toColor:[158,218,59,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[158,218,59,255],toColor:[160,219,57,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[160,219,57,255],toColor:[163,219,55,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[163,219,55,255],toColor:[166,220,54,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[166,220,54,255],toColor:[168,220,52,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[168,220,52,255],toColor:[171,221,50,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[171,221,50,255],toColor:[174,221,49,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[174,221,49,255],toColor:[176,222,47,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[176,222,47,255],toColor:[179,222,45,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[179,222,45,255],toColor:[182,222,43,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[182,222,43,255],toColor:[184,223,42,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[184,223,42,255],toColor:[187,223,40,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[187,223,40,255],toColor:[190,224,38,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[190,224,38,255],toColor:[192,224,37,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[192,224,37,255],toColor:[195,224,35,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[195,224,35,255],toColor:[198,225,34,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[198,225,34,255],toColor:[201,225,32,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[201,225,32,255],toColor:[203,225,31,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[203,225,31,255],toColor:[206,226,29,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[206,226,29,255],toColor:[209,226,28,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[209,226,28,255],toColor:[211,226,27,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[211,226,27,255],toColor:[214,227,26,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[214,227,26,255],toColor:[216,227,26,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[216,227,26,255],toColor:[219,227,25,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[219,227,25,255],toColor:[222,228,25,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[222,228,25,255],toColor:[224,228,24,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[224,228,24,255],toColor:[227,228,24,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[227,228,24,255],toColor:[229,229,25,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[229,229,25,255],toColor:[232,229,25,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[232,229,25,255],toColor:[235,229,26,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[235,229,26,255],toColor:[237,230,27,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[237,230,27,255],toColor:[240,230,28,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[240,230,28,255],toColor:[242,230,29,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",
fromColor:[242,230,29,255],toColor:[245,231,30,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[245,231,30,255],toColor:[247,231,32,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[247,231,32,255],toColor:[249,231,33,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[249,231,33,255],toColor:[252,232,35,255]},{type:"algorithmic",algorithm:"esriCIELabAlgorithm",fromColor:[252,232,35,255],toColor:[254,232,37,255]}]},{id:"whiteToBlack_predefined",
fromColor:[255,255,255],toColor:[0,0,0]},{id:"yellowToDarkRed_predefined",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[242,167,46]},{fromColor:[242,167,46],toColor:[107,0,0]}]},{id:"yellowToGreenToDarkBlue_predefined",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[56,224,9]},{fromColor:[56,224,9],toColor:[26,147,171]},{fromColor:[26,147,171],toColor:[12,16,120]}]},{id:"yellowToRed_predefined",fromColor:[245,245,0],toColor:[255,0,0]},{id:"yellowGreenBright_predefined",
fromColor:[236,252,204],toColor:[157,204,16]},{id:"yellowGreenLightToDark_predefined",fromColor:[215,240,175],toColor:[96,107,45]}],k=[{name:"Aspect",id:"aspect_predefined"},{name:"Black to White",id:"blackToWhite_predefined"},{name:"Blue Bright",id:"blueBright_predefined"},{name:"Blue Light to Dark",id:"blueLightToDark_predefined"},{name:"Blue-Green Bright",id:"blueGreenBright_predefined"},{name:"Blue-Green Light to Dark",id:"blueGreenLightToDark_predefined"},{name:"Brown Light to Dark",id:"brownLightToDark_predefined"},
{name:"Brown to Blue Green Diverging, Bright",id:"brownToBlueGreenDivergingBright_predefined"},{name:"Brown to Blue Green Diverging, Dark",id:"brownToBlueGreenDivergingDark_predefined"},{name:"Cividis",id:"cividis_predefined"},{name:"Coefficient Bias",id:"coefficientBias_predefined"},{name:"Cold to Hot Diverging",id:"coldToHotDiverging_predefined"},{name:"Condition Number",id:"conditionNumber_predefined"},{name:"Cyan to Purple",id:"cyanToPurple_predefined"},{name:"Cyan-Light to Blue-Dark",id:"cyanLightToBlueDark_predefined"},
{name:"Distance",id:"distance_predefined"},{id:"elevation1_predefined",name:"Elevation #1"},{id:"elevation2_predefined",name:"Elevation #2"},{id:"errors_predefined",name:"Errors"},{id:"grayLightToDark_predefined",name:"Gray Light to Dark"},{id:"greenBright_predefined",name:"Green Bright"},{id:"greenLightToDark_predefined",name:"Green Light to Dark"},{name:"Green to Blue",id:"greenToBlue_predefined"},{name:"Inferno",id:"inferno_predefined"},{name:"Magma",id:"magma_predefined"},{name:"Orange Bright",
id:"orangeBright_predefined"},{name:"Orange Light to Dark",id:"orangeLightToDark_predefined"},{id:"partialSpectrum_predefined",name:"Partial Spectrum"},{id:"partialSpectrum1Diverging_predefined",name:"Partial Spectrum 1 Diverging",type:"multipart"},{id:"partialSpectrum2Diverging_predefined",name:"Partial Spectrum 2 Diverging"},{name:"Plasma",id:"plasma_predefined"},{name:"Pink to YellowGreen Diverging, Bright",id:"pinkToYellowGreenDivergingBright_predefined"},{name:"Pink to YellowGreen Diverging, Dark",
id:"pinkToYellowGreenDivergingDark_predefined"},{id:"precipitation_predefined",name:"Precipitation"},{id:"prediction_predefined",name:"Prediction"},{name:"Purple Bright",id:"purpleBright_predefined"},{id:"purpleToGreenDivergingBright_predefined",name:"Purple to Green Diverging, Bright"},{id:"purpleToGreenDivergingDark_predefined",name:"Purple to Green Diverging, Dark"},{name:"Purple-Blue Bright",id:"purpleBlueBright_predefined"},{name:"Purple-Blue Light to Dark",id:"purpleBlueLightToDark_predefined"},
{name:"Purple-Red Bright",id:"purpleRedBright_predefined"},{name:"Purple-Red Light to Dark",id:"purpleRedLightToDark_predefined"},{name:"Red Bright",id:"redBright_predefined"},{name:"Red Light to Dark",id:"redLightToDark_predefined"},{id:"redToBlueDivergingBright_predefined",name:"Red to Blue Diverging, Bright"},{id:"redToBlueDivergingDark_predefined",name:"Red to Blue Diverging, Dark"},{id:"redToGreen_predefined",name:"Red to Green"},{id:"redToGreenDivergingBright_predefined",name:"Red to Green Diverging, Bright"},
{id:"redToGreenDivergingDark_predefined",name:"Red to Green Diverging, Dark"},{name:"Slope",id:"slope_predefined"},{id:"spectrumFullBright_predefined",name:"Spectrum-Full Bright"},{id:"spectrumFullDark_predefined",name:"Spectrum-Full Dark"},{id:"spectrumFullLight_predefined",name:"Spectrum-Full Light"},{id:"surface_predefined",name:"Surface"},{id:"temperature_predefined",name:"Temperature"},{name:"Viridis",id:"viridis_predefined"},{name:"White to Black",id:"whiteToBlack_predefined"},{id:"yellowToDarkRed_predefined",
name:"Yellow to Dark Red"},{id:"yellowToGreenToDarkBlue_predefined",name:"Yellow to Green to Dark Blue"},{name:"Yellow to Red",id:"yellowToRed_predefined"},{name:"Yellow-Green Bright",id:"yellowGreenBright_predefined"},{name:"Yellow-Green Light to Dark",id:"yellowGreenLightToDark_predefined"}],x=new b({data:k});E.mixin(m,{predefinedColorRamps:g,predefinedColorRampNameMap:k,getColorRampName:function(v){v=c(v);return v.id?(v=x.query({id:v.id}),v[0]?v[0].name:null):null},fromJson:function(v){var y=null;
if(!v)return y;"multipart"===v.type?(y=new p,y.colorRamps=z.map(v.colorRamps,function(u){return d(u)},this)):"algorithmic"===v.type&&(y=d(v));return y},colorsEqual:e,getColorRampId:c,invertColorRamp:f,convertColorRampToColormap:function(v,y){if(v&&y){var u=v.colorRamps?v.colorRamps.length:1,t=[],r=[],B,C,F,A,D=0,G=0;for(D=0;D<u;D++)t[D]={},t[D].start=G,t[D].end=G+1/u,G=t[D].end;for(D=0;D<y;D++){var H=(D+.5)/y;z.forEach(t,function(L,aa){H>=L.start&&H<L.end&&(A=(H-L.start)/(L.end-L.start),1<t.length?
(B=l.getDojoColor(v.colorRamps[aa].fromColor),C=l.getDojoColor(v.colorRamps[aa].toColor)):(B=l.getDojoColor(v.fromColor),C=l.getDojoColor(v.toColor)),F=h(B,C,A),r.push([D,F.r,F.g,F.b]))},this)}return r}},interpolateLabColor:h});return m})},"dojo/store/Memory":function(){define(["../_base/declare","./util/QueryResults","./util/SimpleQueryEngine"],function(E,z,b){return E("dojo.store.Memory",null,{constructor:function(w){for(var p in w)this[p]=w[p];this.setData(this.data||[])},data:null,idProperty:"id",
index:null,queryEngine:b,get:function(w){return this.data[this.index[w]]},getIdentity:function(w){return w[this.idProperty]},put:function(w,p){var n=this.data,l=this.index,q=this.idProperty;q=w[q]=p&&"id"in p?p.id:q in w?w[q]:Math.random();if(q in l){if(p&&!1===p.overwrite)throw Error("Object already exists");n[l[q]]=w}else l[q]=n.push(w)-1;return q},add:function(w,p){(p=p||{}).overwrite=!1;return this.put(w,p)},remove:function(w){var p=this.index,n=this.data;if(w in p)return n.splice(p[w],1),this.setData(n),
!0},query:function(w,p){return z(this.queryEngine(w,p)(this.data))},setData:function(w){w.items?(this.idProperty=w.identifier||this.idProperty,w=this.data=w.items):this.data=w;this.index={};for(var p=0,n=w.length;p<n;p++)this.index[w[p][this.idProperty]]=p}})})},"dojo/store/util/QueryResults":function(){define(["../../_base/array","../../_base/lang","../../when"],function(E,z,b){var w=function(p){function n(q){p[q]=function(){var f=arguments,c=b(p,function(a){Array.prototype.unshift.call(f,a);return w(E[q].apply(E,
f))});if("forEach"!==q||l)return c}}if(!p)return p;var l=!!p.then;l&&(p=z.delegate(p));n("forEach");n("filter");n("map");null==p.total&&(p.total=b(p,function(q){return q.length}));return p};z.setObject("dojo.store.util.QueryResults",w);return w})},"dojo/store/util/SimpleQueryEngine":function(){define(["../../_base/array"],function(E){return function(z,b){function w(n){n=E.filter(n,z);var l=b&&b.sort;l&&n.sort("function"==typeof l?l:function(f,c){for(var a,d=0;a=l[d];d++){var e=f[a.attribute],h=c[a.attribute];
e=null!=e?e.valueOf():e;h=null!=h?h.valueOf():h;if(e!=h)return!!a.descending==(null==e||e>h)?-1:1}return 0});if(b&&(b.start||b.count)){var q=n.length;n=n.slice(b.start||0,(b.start||0)+(b.count||Infinity));n.total=q}return n}switch(typeof z){default:throw Error("Can not query with a "+typeof z);case "object":case "undefined":var p=z;z=function(n){for(var l in p){var q=p[l];if(q&&q.test){if(!q.test(n[l],n))return!1}else if(q!=n[l])return!1}return!0};break;case "string":if(!this[z])throw Error("No filter function "+
z+" was found in store");z=this[z];case "function":}w.matches=z;return w}})},"esri/tasks/AlgorithmicColorRamp":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../Color ./ColorRamp".split(" "),function(E,z,b,w,p,n){E=E(n,{declaredClass:"esri.tasks.AlgorithmicColorRamp",type:"algorithmic",fromColor:null,toColor:null,algorithm:null,toJson:function(){switch(this.algorithm&&this.algorithm.toLowerCase()){case "cie-lab":var l="esriCIELabAlgorithm";break;case "hsv":l="esriHSVAlgorithm";
break;case "lab-lch":l="esriLabLChAlgorithm"}l={type:"algorithmic",algorithm:l};l.fromColor=p.toJsonColor(this.fromColor);l.toColor=p.toJsonColor(this.toColor);return l}});b("extend-esri")&&z.setObject("tasks.AlgorithmicColorRamp",E,w);return E})},"esri/tasks/ColorRamp":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(E,z,b,w){E=E(null,{declaredClass:"esri.tasks.ColorRamp",type:null});b("extend-esri")&&z.setObject("tasks.ColorRamp",E,w);return E})},"esri/tasks/MultipartColorRamp":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../symbols/Symbol ./ColorRamp".split(" "),
function(E,z,b,w,p,n){E=E(n,{declaredClass:"esri.tasks.MultipartColorRamp",type:"multipart",constructor:function(){this.colorRamps=[]},addColorRamp:function(l){this.colorRamps.push(l)},toJson:function(){return{type:"multipart",colorRamps:b.map(this.colorRamps,function(l){return l.toJson()})}}});w("extend-esri")&&z.setObject("tasks.MultipartColorRamp",E,p);return E})},"esri/renderers/colorUtils":function(){define(["dojo/_base/Color","dojo/_base/array"],function(E,z){var b={COEF_RGB2XYZ:[[.4124,.3576,
.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],COEF_XYZ2RGB:[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],matrixProduct:function(p,n){var l=[],q,f;if(p[0].length!==n.length)throw"dimensions do not match";var c=p.length,a=p[0].length,d=0;for(q=0;q<c;q++){for(f=d=0;f<a;f++)d+=p[q][f]*n[f];l.push(d)}return l},rgb2xyz:function(p){p=[p.r/255,p.g/255,p.b/255].map(function(n){return.04045>=n?n/12.92:Math.pow((n+.055)/1.055,2.4)});p=this.matrixProduct(this.COEF_RGB2XYZ,p);return{x:100*
p[0],y:100*p[1],z:100*p[2]}},xyz2rgb:function(p){p=this.matrixProduct(this.COEF_XYZ2RGB,[p.x/100,p.y/100,p.z/100]).map(function(n){return Math.min(1,Math.max(.0031308>=n?12.92*n:1.055*Math.pow(n,1/2.4)-.055,0))});return{r:Math.round(255*p[0]),g:Math.round(255*p[1]),b:Math.round(255*p[2])}},xyz2lab:function(p){p=[p.x/95.047,p.y/100,p.z/108.883].map(function(n){return n>Math.pow(6/29,3)?Math.pow(n,1/3):1/3*Math.pow(29/6,2)*n+4/29});return{l:116*p[1]-16,a:500*(p[0]-p[1]),b:200*(p[1]-p[2])}},lab2xyz:function(p){var n=
p.l;p=[(n+16)/116+p.a/500,(n+16)/116,(n+16)/116-p.b/200].map(function(l){return l>6/29?Math.pow(l,3):3*Math.pow(6/29,2)*(l-4/29)});return{x:95.047*p[0],y:100*p[1],z:108.883*p[2]}},lab2lch:function(p){var n=p.l,l=p.a,q=p.b;p=Math.sqrt(l*l+q*q);l=Math.atan2(q,l);l=0<l?l:l+2*Math.PI;return{l:n,c:p,h:l}},lch2lab:function(p){var n=p.c,l=p.h;return{l:p.l,a:n*Math.cos(l),b:n*Math.sin(l)}},rgb2lab:function(p){return this.xyz2lab(this.rgb2xyz(p))},lab2rgb:function(p){return this.xyz2rgb(this.lab2xyz(p))},
rgb2lch:function(p){return this.lab2lch(this.xyz2lab(this.rgb2xyz(p)))},lch2rgb:function(p){return this.xyz2rgb(this.lab2xyz(this.lch2lab(p)))}},w={rgb2hsv:function(p){var n=p.r,l=p.g;p=p.b;var q=Math.max(n,l,p),f=q-Math.min(n,l,p),c;0===f?c=0:q===n?c=(l-p)/f%6:q===l?c=(p-n)/f+2:q===p&&(c=(n-l)/f+4);0>c&&(c+=6);return{h:60*c,s:100*(0===f?0:f/q),v:100/255*q}},hsv2rgb:function(p){var n=(p.h+360)%360/60,l=p.v/100*255;p=p.s/100*l;var q=p*(1-Math.abs(n%2-1));switch(Math.floor(n)){case 0:n={r:p,g:q,b:0};
break;case 1:n={r:q,g:p,b:0};break;case 2:n={r:0,g:p,b:q};break;case 3:n={r:0,g:q,b:p};break;case 4:n={r:q,g:0,b:p};break;case 5:case 6:n={r:p,g:0,b:q};break;default:n={r:0,g:0,b:0}}n.r=Math.round(n.r+l-p);n.g=Math.round(n.g+l-p);n.b=Math.round(n.b+l-p);return n}};return{toRGB:function(p){var n;void 0!==p.r&&void 0!==p.g&&void 0!==p.b?n=p:void 0!==p.l&&void 0!==p.c&&void 0!==p.h?n=b.lch2rgb(p):void 0!==p.l&&void 0!==p.a&&void 0!==p.b?n=b.lab2rgb(p):void 0!==p.x&&void 0!==p.y&&void 0!==p.z?n=b.xyz2rgb(p):
void 0!==p.h&&void 0!==p.s&&void 0!==p.v&&(n=w.hsv2rgb(p));return n},toHSV:function(p){if(void 0!==p.h&&void 0!==p.s&&void 0!==p.v)return p;p=this.toRGB(p);return w.rgb2hsv(p)},toLAB:function(p){return void 0!==p.l&&void 0!==p.a&&void 0!==p.b?p:b.rgb2lab(this.toRGB(p))},toLCH:function(p){return void 0!==p.l&&void 0!==p.c&&void 0!==p.h?p:b.rgb2lch(this.toRGB(p))},toXYZ:function(p){return void 0!==p.x&&void 0!==p.y&&void 0!==p.z?p:b.rgb2xyz(this.toRGB(p))},getDojoColor:function(p){if(p){if(Array.isArray(p))return E.fromArray(p);
if(void 0!==p.r&&void 0!==p.g&&void 0!==p.b)return p}},correctRGBLimits:function(p){var n=[p.r,p.g,p.b];z.forEach(n,function(l,q){0>n[q]?n[q]=0:255<n[q]&&(n[q]=255);n[q]=Math.floor(n[q])});return{r:n[0],g:n[1],b:n[2],a:1}}}})},"esri/renderers/jsonUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ../Color ../symbols/jsonUtils ./SimpleRenderer ./UniqueValueRenderer ./ClassBreaksRenderer ./VectorFieldRenderer ./DotDensityRenderer ./ScaleDependentRenderer ./TimeClassBreaksAger ./TimeRampAger ./TemporalRenderer ./HeatmapRenderer ./StretchRenderer ./ShadedReliefRenderer ./ColormapRenderer".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y){var u={createDefaultRenderer:function(t){t=l.createDefaultSymbol(t);return new q(t)},fromJson:function(t,r){switch(t.type||""){case "simple":t=new q(t,r);break;case "uniqueValue":t=new f(t,null,null,null,null,r);break;case "classBreaks":t=new c(t,null,r);break;case "vectorField":t=new a(t);break;case "scaleDependent":t=this._scaleDependentFromJson(t);break;case "dotDensity":t=t.attributes?u.createDefaultRenderer("esriGeometryPolygon"):this._dotDensityFromJson(t);
break;case "temporal":t=this._temporalFromJson(t,r);break;case "heatmap":t=this._heatmapFromJson(t);break;case "rasterStretch":t=new x(t);break;case "rasterShadedRelief":t=new v(t);break;case "rasterColormap":t=new y(t);break;default:t=(t=r&&r.geometryType)?u.createDefaultRenderer(t):null}return t},_scaleDependentFromJson:function(t){var r={},B=t.minScale;r.rendererInfos=E.map(t.rendererInfos,function(C){var F=C.maxScale;C={minScale:B,maxScale:F,renderer:C.renderer&&this.fromJson(C.renderer)};B=F;
return C},this);return new e(r)},_dotDensityFromJson:function(t){t.backgroundColor&&z.isArray(t.backgroundColor)&&(t.backgroundColor=n.toDojoColor(t.backgroundColor));0<t.dotSize&&(t.dotSize=w.pt2px(t.dotSize));t.fields&&E.forEach(t.fields,function(r){r&&z.isArray(r.color)&&(r.color=n.toDojoColor(r.color))});t.legendOptions&&(t.legendOptions.backgroundColor&&z.isArray(t.legendOptions.backgroundColor)&&(t.legendOptions.backgroundColor=n.toDojoColor(t.legendOptions.backgroundColor)),t.legendOptions.outline&&
(t.legendOptions.outline=l.fromJson(t.legendOptions.outline)));t.outline&&(t.outline=l.fromJson(t.outline));return new d(t)},_temporalFromJson:function(t,r){var B=r&&r.geometryType;t=t||{};var C=this.fromJson(t.observationRenderer,r);r=t.latestObservationRenderer?this.fromJson(t.latestObservationRenderer,r):null;B=t.trackRenderer?this.fromJson(t.trackRenderer,B?{geometryType:"esriGeometryPolyline"}:null):null;t=this._agerFromJson(t.observationAger);return new g(C,r,B,t)},_agerFromJson:function(t){var r;
t=t||{};t.colorRange||t.sizeRange||t.alphaRange?r=this._timeRampFromJson(t):t.agerClassBreakInfos&&(r=this._timeClassBreaksFromJson(t));return r},_timeRampFromJson:function(t){var r,B,C;t.colorRange&&1<t.colorRange.length&&(r=[n.toDojoColor(t.colorRange[0]),n.toDojoColor(t.colorRange[1])]);t.sizeRange&&1<t.sizeRange.length&&(B=[t.sizeRange[0],t.sizeRange[1]]);t.alphaRange&&1<t.alphaRange.length&&(C=[t.alphaRange[0]/255,t.alphaRange[1]/255]);return new m(r,B,C)},_timeClassBreaksFromJson:function(t){var r=
t.agerClassBreakInfos,B=[],C;var F=h.UNIT_DAYS;switch(t.timeUnits){case "esriTimeUnitsSeconds":F=h.UNIT_SECONDS;break;case "esriTimeUnitsMilliseconds":F=h.UNIT_MILLISECONDS;break;case "esriTimeUnitsHours":F=h.UNIT_HOURS;break;case "esriTimeUnitsMinutes":F=h.UNIT_MINUTES;break;case "esriTimeUnitsMonths":F=h.UNIT_MONTHS;break;case "esriTimeUnitsWeeks":F=h.UNIT_WEEKS;break;case "esriTimeUnitsYears":F=h.UNIT_YEARS}for(C=0;C<r.length;C+=1){t=r[C];var A={minAge:0,maxAge:t.oldestAge||Infinity};t.color&&
(A.color=n.toDojoColor(t.color));t.alpha&&(A.alpha=t.alpha/255);A.size=t.size;B[C]=A}return new h(B,F)},_heatmapFromJson:function(t){var r=t.colorStops;r&&r instanceof Array&&E.forEach(r,function(B){B.color=n.toDojoColor(B.color)});return new k(t)}};b("extend-esri")&&z.mixin(z.getObject("renderer",!0,p),u);return u})},"esri/renderers/VectorFieldRenderer":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojo/_base/array ../kernel ../lang ../Color ./Renderer ./ClassBreaksRenderer ../symbols/SimpleMarkerSymbol ../symbols/PictureMarkerSymbol ../symbols/SimpleLineSymbol ../symbols/jsonUtils require".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h){var m={STYLE_WIND_BARBS:"wind_speed",STYLE_SINGLE_ARROW:"single_arrow",STYLE_CLASSIFIED_ARROW:"classified_arrow",STYLE_BEAUFORT_KN:"beaufort_kn",STYLE_BEAUFORT_METER:"beaufort_m",STYLE_BEAUFORT_MILE:"beaufort_mi",STYLE_BEAUFORT_FEET:"beaufort_ft",STYLE_BEAUFORT_KM:"beaufort_km",STYLE_OCEAN_CURRENT_M:"ocean_current_m",STYLE_OCEAN_CURRENT_KN:"ocean_current_kn",STYLE_SCALAR:"simple_scalar"},g=E(q,{declaredClass:"esri.renderer.VectorFieldRenderer",iconFolderPath:"../images/symbol/sfs/",
constructor:function(k){n.isDefined(k)||(k={});k.attributeField=k.attributeField||"Magnitude";k.rotationInfo=k.rotationInfo||this._getRotationInfo(k);E.safeMixin(this,k);this.setRotationInfo(this.rotationInfo);this.style=this.style||g.STYLE_SINGLE_ARROW;this.singleArrowSymbol&&(this.singleArrowSymbol=this.singleArrowSymbol.declaredClass?this.singleArrowSymbol:e.fromJson(this.singleArrowSymbol));this.renderer=new f(this._getDefaultSymbol(),k.attributeField);this._updateRenderer(this.style);this.flowRepresentation=
this.flowRepresentation||this.FLOW_FROM},getSymbol:function(k){return this.renderer&&this.renderer.getSymbol(k)},setVisualVariables:function(k){k=w.filter(k,function(x){if("sizeInfo"===x.type)return n.isDefined(this._updateSizeInfo(x))},this);this.inherited(arguments);return this},setSizeInfo:function(k){this._updateSizeInfo(k);this.inherited(arguments);return this},setProportionalSymbolInfo:function(k){this.setSizeInfo(k);return this},setColorInfo:function(k){return this},_updateRenderer:function(k){return n.isDefined(this.renderer)?
k===g.STYLE_SINGLE_ARROW?this._createSingleArrowRenderer():k===g.STYLE_BEAUFORT_KN?this._createBeaufortKnotsRenderer():k===g.STYLE_BEAUFORT_METER?this._createBeaufortMeterRenderer():k===g.STYLE_BEAUFORT_FEET?this._createBeaufortFeetRenderer():k===g.STYLE_BEAUFORT_MILE?this._createBeaufortMilesRenderer():k===g.STYLE_BEAUFORT_KM?this._createBeaufortKilometersRenderer():k===g.STYLE_OCEAN_CURRENT_M?this._createCurrentMeterRenderer():k===g.STYLE_OCEAN_CURRENT_KN?this._createCurrentKnotsRenderer():k===
g.STYLE_SCALAR?this._createSimpleScalarRenderer():k===g.STYLE_WIND_BARBS?this._createWindBarbsRenderer():this._createClassifiedArrowRenderer():Error("Invalid Renderer!")},_updateSizeInfo:function(k){return k&&n.isDefined(k.minSize)&&n.isDefined(k.maxSize)&&n.isDefined(k.minDataValue)&&n.isDefined(k.maxDataValue)?(this.style===g.STYLE_WIND_BARBS&&(k.minSize=k.maxSize),k.field=k.field||"Magnitude",k.type="sizeInfo",this.minDataValue=k.minDataValue,this.maxDataValue=k.maxDataValue,k):null},_createClassifiedArrowRenderer:function(){this.renderer.defaultSymbol=
this._getDefaultSymbol(new l([56,168,0]));var k=[0,1E-6,3.5,7,10.5,14];if(n.isDefined(this.minDataValue)&&n.isDefined(this.maxDataValue)){var x=(this.maxDataValue-this.minDataValue)/5;k=[];var v;var y=this.minDataValue;for(v=0;6>v;v++)k[v]=y,y+=x}this._addBreaks(k,[[56,168,0],[139,309,0],[255,255,0],[255,128,0],[255,0,0]])},_createSingleArrowRenderer:function(){this.renderer.defaultSymbol=this.singleArrowSymbol||this._getDefaultSymbol()},_createBeaufortMeterRenderer:function(){this.renderer.defaultSymbol=
this._getDefaultSymbol(new l([214,47,39]));this._addBreaks([0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7],[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])},_createBeaufortKnotsRenderer:function(){this.renderer.defaultSymbol=this._getDefaultSymbol(new l([214,47,39]));this._addBreaks([0,1,3,6,10,16,21,27,33,40,47,55,63],[[40,146,199],[89,162,186],[129,179,171],[160,194,155],
[191,212,138],[218,230,119],[250,250,100],[252,213,83],[252,179,102],[250,141,52],[247,110,42],[240,71,29]])},_createBeaufortFeetRenderer:function(){var k=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];w.forEach(k,function(x,v){k[v]*=3.28084});this.renderer.defaultSymbol=this._getDefaultSymbol(new l([214,47,39]));this._addBreaks(k,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,
21]])},_createBeaufortMilesRenderer:function(){var k=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];w.forEach(k,function(x,v){k[v]*=2.23694});this.renderer.defaultSymbol=this._getDefaultSymbol(new l([214,47,39]));this._addBreaks(k,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])},_createBeaufortKilometersRenderer:function(){var k=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,
28.6,32.7];w.forEach(k,function(x,v){k[v]*=3.6});this.renderer.defaultSymbol=this._getDefaultSymbol(new l([214,47,39]));this._addBreaks(k,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])},_createCurrentMeterRenderer:function(){this.renderer.defaultSymbol=this._getDefaultSymbol(new l([177,177,177]));this._addBreaks([0,.5,1,1.5,2],[[78,26,153],[179,27,26],[202,128,26],[177,177,177]])},
_createCurrentKnotsRenderer:function(){this.renderer.defaultSymbol=this._getDefaultSymbol(new l([177,177,177]));this._addBreaks([0,.25,.5,1,1.5,2,2.5,3,3.5,4],[[0,0,0],[0,37,100],[78,26,153],[151,0,100],[179,27,26],[177,78,26],[202,128,26],[177,179,52],[177,177,177]])},_createSimpleScalarRenderer:function(){this.renderer.defaultSymbol=new a({url:h.toUrl(this.iconFolderPath+"scalar.png"),height:20,width:20,type:"esriPMS",angle:0})},_createWindBarbsRenderer:function(){var k=[],x;for(x=0;150>=x;x+=5)k.push(x);
var v="M20 20 M5 20 A15 15 0 1 0 35 20 A15 15 0 1 0 5 20 M20 20 M10 20 A10 10 0 1 0 30 20 A10 10 0 1 0 10 20;M25 0 L25 40 M25 35 L17.5 37.5;M25 0 L25 40 L10 45 L25 40;M25 0 L25 40 L10 45 L25 40 M25 35 L17.5 37.5;M25 0 L25 40 L10 45 L25 40 M25 35 L10 40;M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L17.5 32.5;M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35;M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5;M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30;M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5;M25 0 L25 40 L10 40 L25 35;M25 0 L25 40 L10 40 L25 35 M25 30 L17.5 32.5;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L17.5 17.5;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20;M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20 L25 15 M25 10 L17.5 12.5;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L17.5 27.5;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L17.5 22.5;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L17.5 17.5;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L10 15;M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L10 15 M25 10 M25 5 L17.5 7.5".split(";");
var y=new a({url:h.toUrl(this.iconFolderPath+"windbarb.png"),height:20,width:20,type:"esriPMS",angle:0});this.renderer.defaultSymbol=y;for(x=0;x<k.length-1;x++)0===x?this.renderer.addBreak({minValue:k[x],maxValue:k[x+1],symbol:y}):this.renderer.addBreak({minValue:k[x],maxValue:k[x+1],symbol:(new c).setPath(v[x]).setOutline((new d).setWidth(1.5)).setSize(20).setColor(new l([0,0,0,255]))})},_getDefaultSymbol:function(k){return(new c).setPath("M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z").setOutline((new d).setWidth(0)).setSize(20).setColor(k||
new l([0,92,230]))},_getRotationInfo:function(k){var x=k&&k.rotationField||"Direction",v=(k&&k.flowRepresentation||g.FLOW_FROM)===g.FLOW_FROM;!k.style||k.style!==m.STYLE_OCEAN_CURRENT_KN&&k.style!==m.STYLE_OCEAN_CURRENT_M||(v=!v);return{field:function(y){y=y.attributes[x];return v?y:y+180},type:"geographic"}},_addBreaks:function(k,x){if(!n.isDefined(this.renderer))return Error("Invalid Renderer!");if(!(k&&x&&k.length&&x.length&&k.length>=x.length))return Error("AddBreaks: Input arguments break values and colors not valid");
var v;for(v=0;v<x.length;v++)this.renderer.addBreak({minValue:k[v],maxValue:k[v+1],symbol:this._getDefaultSymbol(new l(x[v]))})},toJson:function(){var k=z.mixin(this.inherited(arguments),{type:"vectorField",style:this.style,attributeField:this.attributeField,flowRepresentation:this.flowRepresentation,symbolTileSize:this.symbolTileSize,inputUnit:this.inputUnit,outputUnit:this.outputUnit});this.renderer&&this.renderer.defaultSymbol&&this.style===g.STYLE_SINGLE_ARROW&&(k.singleArrowSymbol=this.renderer.defaultSymbol.toJson());
return n.fixJson(k)}});z.mixin(g,m,{FLOW_FROM:"flow_from",FLOW_TO:"flow_to"});b("extend-esri")&&z.setObject("renderer.VectorFieldRenderer",g,p);return g})},"esri/renderers/DotDensityRenderer":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-construct dojo/has dojox/gfx/_base ../kernel ../lang ../Color ./Renderer ../symbols/PictureFillSymbol ../geometry/ScreenPoint ../geometry/Point".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e){E=E(c,{declaredClass:"esri.renderer.DotDensityRenderer",
constructor:function(h){this.dotSize=h.dotSize||3;this.dotValue=h.dotValue;this.fields=h.fields;this.outline=h.outline;this.backgroundColor=h.backgroundColor;this.exactCount=h.exactCount||!0;this.dotShape=h.dotShape||"square";this.legendOptions=h.legendOptions;this._exactCountMinArea=1E4;this._currentMapScale=this._map=this._canvas=null;this._symbolMap={};this._currentGraphic=this._currentResolution=this._objectIdField=null;this._supportsCanvas=window.CanvasRenderingContext2D?!0:!1;window.CanvasRenderingContext2D||
console.log("The DotDensityRenderer requires a Canvas enabled Browser.  IE8 and less does not support Canvas.")},getSymbol:function(h){this._currentGraphic=h;if(!this._supportsCanvas)return null;this._map||(this._map=h.getLayer()._map,this._objectIdField=h.getLayer().objectIdField,this._currentMapScale=this._map.getScale(),this._currentResolution=this._map.extent.getWidth()/this._map.width,this._map.on("zoom-end",z.hitch(this,function(k){this._currentMapScale=this._map.getScale();this._currentResolution=
k.extent.getWidth()/this._map.width;this._symbolMap[this._currentMapScale]={}})));if(this._symbolMap[this._currentMapScale]&&this._symbolMap[this._currentMapScale][h.attributes[this._objectIdField]]){var m=this._symbolMap[this._currentMapScale][h.attributes[this._objectIdField]];var g=this._getShapeProperties(h);m.setOffset(g.dx,g.dy);return m}m=this._generateFieldsCount(this.fields,h.attributes,this.dotValue);g=this._getShapeProperties(h);if(!g.width||!g.height)return null;m=new a(this._generateImageSrc(g.width,
g.height,m,g.minXY,g.maxXY),this.outline,g.width,g.height);m.setOffset(g.dx,g.dy);this._symbolMap[this._currentMapScale]||(this._symbolMap[this._currentMapScale]={});return this._symbolMap[this._currentMapScale][h.attributes[this._objectIdField]]=m},_generateFieldsCount:function(h,m,g){var k;for(k=h.length-1;0<=k;k--){var x=m[h[k].name]/g;h[k].numPoints=Math.round(x)}return h},_getShapeProperties:function(h){var m=h.geometry.getExtent();m.contains(this._map.extent)&&(m=this._map.extent);var g=Math.ceil(m.getWidth()/
this._currentResolution);var k=Math.ceil(m.getHeight()/this._currentResolution);var x=this._map.toScreen(new e(m.xmin,m.ymin,m.spatialReference));m=this._map.toScreen(new e(m.xmax,m.ymax,m.spatialReference));h=h.getLayer().getNavigationTransform();return{minXY:x,maxXY:m,dx:(x.x-h.dx)%g,dy:(m.y-h.dy)%k,width:g,height:k}},_generateImageSrc:function(h,m,g,k,x,v){var y=this.dotSize,u;this._canvas?(this._canvas.width=h,this._canvas.height=m):this._canvas=this._initCanvas(h,m);var t=this._canvas.getContext("2d");
if(v=v||this.backgroundColor)t.fillStyle=v.toCss(!0),t.fillRect(0,0,h,m),t.fill();for(v=g.length-1;0<=v;v--)for(t.fillStyle=g[v].color.toCss(!0),u=g[v].numPoints-1;0<=u;u--){var r=this._getRandomPoint(h,m,k,x);"square"===this.dotShape?t.fillRect(r.x,r.y,y,y):"circle"===this.dotShape&&(t.beginPath(),t.arc(r.x,r.y,y/2,0,2*Math.PI,!0));t.fill()}return this._canvas.toDataURL()},_initCanvas:function(h,m){h=w.create("canvas",{id:"canvas",width:h+"px",height:m+"px",style:"position: absolute; left: -10000px; top: 0px;"},
null);document.body.appendChild(h);return h},_getRandomInt:function(h,m){return Math.floor(Math.random()*(m-h+1)+h)},_getRandomPoint:function(h,m,g,k){var x={},v=this.outline&&this.outline.width?this.outline.width:0;if(!0===this.exactCount&&h*m>this._exactCountMinArea){h=!1;do x.x=this._getRandomInt(g.x,k.x),x.y=this._getRandomInt(k.y,g.y),h=new d(x.x,x.y),h=this._checkPointShapeBounds(h,this.dotSize+v,this._currentGraphic.geometry),!0===h&&(x.x-=g.x,x.y-=k.y);while(!1===h)}else x.x=this._getRandomInt(0,
h),x.y=this._getRandomInt(0,m);return x},_checkPointShapeBounds:function(h,m,g){var k=null;k=!1;var x=!0,v=0;do{switch(v){case 1:h.x+=m;break;case 2:h.y+=m;break;case 3:h.x-=m}k=this._map.toMap(h);k=g.contains(k);!1===k&&(x=!1);v+=1}while(3>=v&&!0===x);return k},setDotSize:function(h){0<h&&(this.dotSize=h)},setDotValue:function(h){0<h&&(this.dotValue=h)},setOutline:function(h){this.outline=h},setBackgroundColor:function(h){this.backgroundColor=h},toJson:function(){var h=z.mixin(this.inherited(arguments),
{type:"dotDensity",backgroundColor:f.toJsonColor(this.backgroundColor),dotShape:this.dotShape,dotSize:0<this.dotSize?n.px2pt(this.dotSize):0,dotValue:this.dotValue,fields:b.map(this.fields,function(m){return q.fixJson({color:f.toJsonColor(m.color),name:m.name})}),legendOptions:this.legendOptions&&q.fixJson({backgroundColor:f.toJsonColor(this.legendOptions.backgroundColor),dotCoverage:this.legendOptions.dotCoverage,outline:this.legendOptions.outline&&this.legendOptions.outline.toJson(),valueUnit:this.legendOptions.valueUnit}),
outline:this.outline&&this.outline.toJson()});return q.fixJson(h)}});p("extend-esri")&&z.setObject("renderer.DotDensityRenderer",E,l);return E})},"esri/renderers/ScaleDependentRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ./Renderer".split(" "),function(E,z,b,w,p,n,l){E=E(l,{declaredClass:"esri.renderer.ScaleDependentRenderer",constructor:function(q){this.setRendererInfos(q&&q.rendererInfos||[])},setRendererInfos:function(q){this.rendererInfos=
q;this._setRangeType();return this},getSymbol:function(q){var f=this.getRendererInfo(q);return f&&f.renderer&&f.renderer.getSymbol(q)},getRendererInfo:function(q){q=q.getLayer().getMap();return"zoom"===this.rangeType?this.getRendererInfoByZoom(q.getZoom()):this.getRendererInfoByScale(q.getScale())},getRendererInfoByZoom:function(q){var f=this.rendererInfos,c,a=0;do{var d=f[a];q>=d.minZoom&&q<=d.maxZoom&&(c=d);a++}while(!c&&a<f.length);return c},getRendererInfoByScale:function(q){var f=this.rendererInfos,
c,a=0;do{var d=f[a];var e=d.minScale;var h=d.maxScale;var m=!e;var g=!h;!m&&q<=e&&(m=!0);!g&&q>=h&&(g=!0);m&&g&&(c=d);a++}while(!c&&a<f.length);return c},addRendererInfo:function(q){var f=0,c=this.rendererInfos,a=q.hasOwnProperty("minZoom")?"minZoom":"minScale",d=c.length;do{var e=c[f];if(d===f||q[a]<e[a]){c.splice(f,0,q);this._setRangeType();var h=!0}f++}while(!h&&f<d);return this},_setRangeType:function(){var q=this.rendererInfos;if(q=q&&q[0])this.rangeType=q.hasOwnProperty("minZoom")?"zoom":q.hasOwnProperty("minScale")?
"scale":""},toJson:function(){if("zoom"===this.rangeType)return null;var q=this.rendererInfos||[],f=q[0]&&q[0].minScale;q=b.mixin(this.inherited(arguments),{type:"scaleDependent",minScale:0<f?f:0,rendererInfos:z.map(q,function(c){return n.fixJson({maxScale:0<c.maxScale?c.maxScale:0,renderer:c.renderer&&c.renderer.toJson()})})});return n.fixJson(q)}});w("extend-esri")&&b.setObject("renderer.ScaleDependentRenderer",E,p);return E})},"esri/renderers/HeatmapRenderer":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-construct ../sniff ../kernel ../lang ../symbols/PictureMarkerSymbol ../Color ./Renderer".split(" "),
function(E,z,b,w,p,n,l,q,f,c){E=E([c],{declaredClass:"esri.renderer.HeatmapRenderer",colors:null,blurRadius:10,maxPixelIntensity:100,minPixelIntensity:0,field:null,fieldOffset:null,colorStops:null,constructor:function(a){(this._supportsCanvas=window.CanvasRenderingContext2D?!0:!1)?("string"==typeof a&&(a=JSON.parse(a)),z.mixin(this,a),this._canvas=null,this.colors||this.colorStops||(this.colorStops=[{ratio:0,color:"rgba(255, 140, 0, 0)"},{ratio:.75,color:"rgba(255, 140, 0, 1)"},{ratio:.9,color:"rgba(255, 0,   0, 1)"}]),
this.gradient=this._generateGradient(this.colorStops||this.colors)):console.log("The HeatmapRenderer requires a Canvas enabled Browser.  IE8 and less does not support Canvas.")},getSymbol:function(a){if(!this._supportsCanvas)return!1;var d=a.attributes.imageData;a=a.attributes.size;if(!a)return null;var e=this._getContext(a[0],a[1]),h=e.getImageData(0,0,a[0],a[1]);window.ArrayBuffer&&d instanceof ArrayBuffer?d=window.Uint8ClampedArray?new Uint8ClampedArray(d):new Uint8Array(d):d.BYTES_PER_ELEMENT&&
1!==d.BYTES_PER_ELEMENT&&(d=window.Uint8ClampedArray?new Uint8ClampedArray(d.buffer):new Uint8Array(d.buffer));if(window.CanvasPixelArray&&h.data instanceof window.CanvasPixelArray)for(var m=h.data,g=m.length;g--;)m[g]=d[g];else h.data.set(d);e.putImageData(h,0,0);return new q(e.canvas.toDataURL(),a[0],a[1])},setColors:function(a){a&&(a instanceof Array||a.colors)&&(this.gradient=this._generateGradient(a.colors||a),this.colors=a);return this},setColorStops:function(a){a&&(a instanceof Array||a.colorStops)&&
(this.gradient=this._generateGradient(a.colorStops||a),this.colorStops=a);return this},setMaxPixelIntensity:function(a){this.maxPixelIntensity=a;return this},setMinPixelIntensity:function(a){this.minPixelIntensity=a;return this},setField:function(a){this.field=a;return this},setFieldOffset:function(a){this.fieldOffset=a;return this},setBlurRadius:function(a){this.blurRadius=a;return this},getStats:function(){},getHistogramData:function(){},toJson:function(){var a=z.mixin(this.inherited(arguments),
{type:"heatmap",blurRadius:this.blurRadius,colorStops:this._colorsToStops(this.colorStops||this.colors),maxPixelIntensity:this.maxPixelIntensity,minPixelIntensity:this.minPixelIntensity,field:this.field});null!=this.fieldOffset&&(a.fieldOffset=this.fieldOffset);b.forEach(a.colorStops,function(d){d.color=f.toJsonColor(d.color)});return l.fixJson(a)},_getContext:function(a,d){this._canvas?(this._canvas.width=a,this._canvas.height=d):this._canvas=this._initCanvas(a,d);return this._canvas.getContext("2d")},
_initCanvas:function(a,d){var e=w.create("canvas",{id:"hm_canvas-"+Math.floor(1E3*Math.random()),style:"position: absolute; left: 0px; top: -10000px;"},null);e.width=a;e.height=d;document.body.appendChild(e);return e},_generateGradient:function(a,d){d||(d=512);a=this._colorsToStops(a);for(var e=this._getContext(1,d||512),h=e.createLinearGradient(0,0,0,d),m=0,g;m<a.length;m++)g=a[m],h.addColorStop(g.ratio,g.color.toCss(!0));e.fillStyle=h;e.fillRect(0,0,1,d);return e.getImageData(0,0,1,d).data},_colorsToStops:function(a){var d=
[];if(!a[0])return d;if(null!=a[0].ratio)d=b.map(a,function(x){return{ratio:x.ratio,color:this._toColor(x.color)}},this);else if(null!=a[0].value){var e=Infinity;d=-Infinity;var h=0,m;for(m=0;m<a.length;m++){var g=a[m].value;g<e&&(e=g);g>d&&(d=g)}h=d-e;this.maxPixelIntensity=d;this.minPixelIntensity=e;d=b.map(a,function(x){var v=x.value;x=this._toColor(x.color);return{value:v,ratio:(v-e)/h,color:x}},this)}else{var k=a.length-1;d=b.map(a,function(x,v){return{color:this._toColor(x),ratio:v/k}},this)}return d},
_toColor:function(a){a.toRgba||a.declaredClass||(a=new f(a));return a}});p("extend-esri")&&z.setObject("renderer.HeatmapRenderer",E,n);return E})},"esri/renderers/ShadedReliefRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../layers/RasterFunction ./colorRampUtils".split(" "),function(E,z,b,w,p,n,l,q){E=E(null,{declaredClass:"esri.renderer.ShadedReliefRenderer",constructor:function(f){f=f||{};this.hillshadeType=f.hillshadeType||"traditional";
this.azimuth=null!=f.azimuth?f.azimuth:315;this.altitude=null!=f.altitude?f.altitude:45;this.zFactor=f.zFactor||1;this.scalingType=f.scalingType||"none";this.pixelSizePower=null!=f.pixelSizePower?f.pixelSizePower:.664;this.pixelSizeFactor=null!=f.pixelSizeFactor?f.pixelSizeFactor:.024;this.removeEdgeEffect=f.removeEdgeEffect||!1;this.colorRamp=q.fromJson(f.colorRamp)},toJson:function(){var f={type:"rasterShadedRelief",hillshadeType:this.hillshadeType,azimuth:this.azimuth,altitude:this.altitude,zFactor:this.zFactor,
scalingType:this.scalingType,pixelSizePower:this.pixelSizePower,pixelSizeFactor:this.pixelSizeFactor,colorRamp:this.colorRamp&&this.colorRamp.toJson()};return n.fixJson(f)},toRenderingRule:function(f){}});w("extend-esri")&&b.setObject("renderer.ShadedReliefRenderer",E,p);return E})},"esri/renderers/ColormapRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../symbols/jsonUtils ./Renderer ./arcadeUtils".split(" "),function(E,z,b,w,p,n,l,q,f){E=
E(q,{declaredClass:"esri.renderer.ColormapRenderer",constructor:function(c){this.colormapInfos=c&&c.colormapInfos},toJson:function(){var c=n.fixJson;var a={type:"rasterColormap",colormapInfos:z.map(this.colormapInfos||[],function(d,e){var h={};d.color&&null!==d.color&&3<=d.color.length&&(h.color=d.color,h.value=d.value||e,h.label=(d.label||e)+"");return c(h)})};a=b.mixin(this.inherited(arguments),a);return c(a)}});w("extend-esri")&&b.setObject("renderer.ColormapRenderer",E,p);return E})},"esri/renderers/arcadeUtils":function(){define(["dojo/_base/lang",
"dojo/has","../kernel","../support/expressionUtils"],function(E,z,b,w){z("extend-esri")&&E.setObject("renderer.arcadeUtils",w,b);return w})},"esri/utils":function(){define("./domUtils ./lang ./urlUtils ./request ./tileUtils ./graphicsUtils ./deferredUtils ./layerUtils ./geometry/normalizeUtils".split(" "),function(){return{}})},"esri/graphicsUtils":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/has","./kernel","./geometry/Extent"],function(E,z,b,w,p){var n={graphicsExtent:function(l){if(!l||
!l.length)return null;var q=null,f,c=l.length;for(f=0;f<c;f++){var a=l[f].geometry;if(a){var d=a.getExtent();d||"point"!==a.type||null==a.x||null==a.y||(d=new p(a.x,a.y,a.x,a.y,a.spatialReference));d&&(q=q?q.union(d):d)}}return 0>q.getWidth()&&0>q.getHeight()?null:q},getGeometries:function(l){return z.map(l,function(q){return q.geometry})},_encodeGraphics:function(l,q){return z.map(l,function(f,c){f=f.toJson();var a={};f.geometry&&(c=q&&q[c],a.geometry=c&&c.toJson()||f.geometry);f.attributes&&(a.attributes=
f.attributes);return a})}};b("extend-esri")&&E.mixin(w,n);return n})},"esri/IdentityManager":function(){define(["./IdentityManagerDialog","./kernel","./OAuthSignInHandler","dojo/_base/declare"],function(E,z,b,w){E=new E;z.id=w.safeMixin(E,b);return z.id})},"esri/IdentityManagerDialog":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/config dojo/_base/Deferred dojo/_base/lang dojo/has dojo/dom-attr dojo/keys dijit/registry dijit/Dialog ./kernel ./lang ./domUtils ./Credential ./IdentityManagerBase dojo/i18n!./nls/jsapi dojo/query dijit/form/Button dijit/form/Form dijit/form/ValidationTextBox".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g){z=z([m],{declaredClass:"esri.IdentityManager",_eventMap:{"dialog-cancel":["info"]},constructor:function(k){p.mixin(this,k);this.registerConnectEvents()},_dialogContent:"\x3cdiv data-dojo-type\x3d'dijit.form.Form' data-dojo-props\x3d'\"class\":\"esriIdForm\"'\x3e\x3cdiv class\x3d'dijitDialogPaneContentArea'\x3e\x3cdiv style\x3d'padding-bottom: 5px; word-wrap: break-word;'\x3e${info}\x3c/div\x3e\x3cdiv style\x3d'margin: 0px; padding: 0px; height: 10px;'\x3e\x3c/div\x3e\x3cdiv class\x3d'esriErrorMsg' style\x3d'display: none; color: white; background-color: #D46464; text-align: center; padding-top: 3px; padding-bottom: 3px;'\x3e${invalidUser}\x3c/div\x3e\x3cdiv style\x3d'margin: 0px; padding: 0px; height: 10px;'\x3e\x3c/div\x3e\x3ctable style\x3d'width: 100%;'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel\x3e${lblUser}\x3cbr/\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' data-dojo-props\x3d'type:\"text\", \"class\":\"esriIdUser\", required:true, trim:true, style:\"width: 100%;\", autocapitalize:\"none\", autocorrect:\"off\", spellcheck:false' /\x3e\x3c/label\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel\x3e${lblPwd}\x3cbr/\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' data-dojo-props\x3d'type:\"password\", \"class\":\"esriIdPwd\", required:true, style:\"width: 100%;\"' /\x3e\x3c/label\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv class\x3d'dijitDialogPaneActionBar'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' data-dojo-props\x3d'type:\"button\", \"class\":\"esriIdSubmit\"'\x3e${lblOk}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' data-dojo-props\x3d'type:\"button\", \"class\":\"esriIdCancel\"'\x3e${lblCancel}\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e",
onDialogCreate:function(){},onDialogCancel:function(){},signIn:function(k,x,v){this._nls||(this._nls=g.identity);this._loginDialog||(this._loginDialog=this.dialog=this._createLoginDialog(),this.onDialogCreate());var y=this._loginDialog,u=v&&v.error,t=v&&v.token,r=new w(function(){y.onCancel()});if(y.open)return k=Error("BUSY"),k.name="identity-manager:busy",k.code="IdentityManager.1",k.log=!!b.isDebug,r.errback(k),r;e.hide(y.errMsg_);u&&403==u.code&&t&&(l.set(y.errMsg_,"innerHTML",this._nls.forbidden),
e.show(y.errMsg_));y.dfd_=r;y.serverInfo_=x;y.resUrl_=k;y.admin_=v&&v.isAdmin;l.set(y.resLink_,{title:k,innerHTML:"("+(this.getResourceName(k)||this._nls.lblItem)+")"});l.set(y.serverLink_,{title:x.server,innerHTML:(-1!==x.server.toLowerCase().indexOf("arcgis.com")?"ArcGIS Online":x.server)+" "});y.txtPwd_.set("value","");y.show();return r},_createLoginDialog:function(){var k=this._nls,x=d.substitute(k,this._dialogContent);x=d.substitute({resource:"\x3cspan class\x3d'resLink' style\x3d'word-wrap: break-word;'\x3e\x3c/span\x3e",
server:"\x3cspan class\x3d'serverLink' style\x3d'word-wrap: break-word;'\x3e\x3c/span\x3e"},x);var v=new c({title:k.title,content:x,"class":"esriSignInDialog",style:"width: 18em;",esriIdMgr_:this,keypressed_:function(y){y.charOrCode===q.ENTER&&this.execute_()},execute_:function(){var y=this.txtUser_.get("value"),u=this.txtPwd_.get("value"),t=this.dfd_,r=this;if(this.form_.validate()&&y&&u){this.btnSubmit_.set("label",k.lblSigning);var B=a.id.findCredential(r.resUrl_,y),C=function(F){r.btnSubmit_.set("label",
k.lblOk);r.btnSubmit_.set("disabled",!1);e.hide(r.errMsg_);r.hide();c._DialogLevelManager.hide(r);var A=r.serverInfo_;r.dfd_=r.serverInfo_=r.generateDfd_=r.resUrl_=null;var D=B;if(F){var G=F.token;var H=d.isDefined(F.expires)?Number(F.expires):null;var L=!!F.ssl;D?(D.userId=y,D.token=G,D.expires=H,D.validity=F.validity,D.ssl=L,D.creationTime=(new Date).getTime()):D=new h({userId:y,server:A.server,token:G,expires:H,ssl:L,isAdmin:r.admin_,validity:F.validity})}t.callback(D)};B&&!B._enqueued?C():(r.btnSubmit_.set("disabled",
!0),r.generateDfd_=a.id.generateToken(this.serverInfo_,{username:y,password:u},{isAdmin:this.admin_}).addCallback(C).addErrback(function(F){r.btnSubmit_.set("disabled",!1);r.generateDfd_=null;r.btnSubmit_.set("label",k.lblOk);l.set(r.errMsg_,"innerHTML",F&&F.code?k.invalidUser:k.noAuthService);e.show(r.errMsg_)}))}},cancel_:function(){v.generateDfd_&&v.generateDfd_.cancel();var y=v.dfd_,u=v.resUrl_,t=v.serverInfo_;v.btnSubmit_.set("disabled",!1);v.dfd_=v.serverInfo_=v.generateDfd_=v.resUrl_=null;
e.hide(v.errMsg_);c._DialogLevelManager.hide(v);v.esriIdMgr_.onDialogCancel({resourceUrl:u,serverInfo:t});u=Error("ABORTED");u.name="identity-manager:user-aborted";u.code="IdentityManager.2";u.log=!!b.isDebug;y.errback(u)}});x=v.domNode;v.form_=f.byNode(E.query(".esriIdForm",x)[0]);v.txtUser_=f.byNode(E.query(".esriIdUser",x)[0]);v.txtPwd_=f.byNode(E.query(".esriIdPwd",x)[0]);v.btnSubmit_=f.byNode(E.query(".esriIdSubmit",x)[0]);v.btnCancel_=f.byNode(E.query(".esriIdCancel",x)[0]);v.resLink_=E.query(".resLink",
x)[0];v.serverLink_=E.query(".serverLink",x)[0];v.errMsg_=E.query(".esriErrorMsg",x)[0];v.connect(v.txtUser_,"onKeyPress",v.keypressed_);v.connect(v.txtPwd_,"onKeyPress",v.keypressed_);v.connect(v.btnSubmit_,"onClick",v.execute_);v.connect(v.btnCancel_,"onClick",v.onCancel);v.connect(v,"onCancel",v.cancel_);return v}});n("extend-esri")&&(a.IdentityManagerDialog=a.IdentityManager=z);return z})},"dijit/Dialog":function(){define("require dojo/_base/array dojo/aspect dojo/_base/declare dojo/Deferred dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/fx dojo/i18n dojo/keys dojo/_base/lang dojo/on dojo/ready dojo/sniff dojo/touch dojo/window dojo/dnd/Moveable dojo/dnd/TimedMoveable ./focus ./_base/manager ./_Widget ./_TemplatedMixin ./_CssStateMixin ./form/_FormMixin ./_DialogMixin ./DialogUnderlay ./layout/ContentPane ./layout/utils dojo/text!./templates/Dialog.html ./a11yclick dojo/i18n!./nls/common".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y,u,t,r,B,C,F,A,D,G,H,L){function aa(){}var da=new p;da.resolve(!0);t=w("dijit._DialogBase"+(g("dojo-bidi")?"_NoBidi":""),[B,F,A,C],{templateString:L,baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},_setTitleAttr:{node:"titleNode",type:"innerHTML"},open:!1,duration:t.defaultDuration,refocus:!0,autofocus:!0,_firstFocusItem:null,_lastFocusItem:null,draggable:!0,_setDraggableAttr:function(ja){this._set("draggable",ja)},maxRatio:.9,
closable:!0,_setClosableAttr:function(ja){this.closeButtonNode.style.display=ja?"":"none";this._set("closable",ja)},postMixInProperties:function(){var ja=a.getLocalization("dijit","common");e.mixin(this,ja);this.inherited(arguments)},postCreate:function(){f.set(this.domNode,{display:"none",position:"absolute"});this.ownerDocumentBody.appendChild(this.domNode);this.inherited(arguments);b.after(this,"onExecute",e.hitch(this,"hide"),!0);b.after(this,"onCancel",e.hitch(this,"hide"),!0);h(this.closeButtonNode,
k.press,function(ja){ja.stopPropagation()});this._modalconnects=[]},onLoad:function(){this.resize();this._position();this.autofocus&&ia.isTop(this)&&(this._getFocusItems(),u.focus(this._firstFocusItem));this.inherited(arguments)},focus:function(){this._getFocusItems();u.focus(this._firstFocusItem)},_endDrag:function(){var ja=q.position(this.domNode),pa=x.getBox(this.ownerDocument);ja.y=Math.min(Math.max(ja.y,0),pa.h-ja.h);ja.x=Math.min(Math.max(ja.x,0),pa.w-ja.w);this._relativePosition=ja;this._position()},
_setup:function(){var ja=this.domNode;this.titleBar&&this.draggable?(this._moveable=new (6==g("ie")?y:v)(ja,{handle:this.titleBar}),b.after(this._moveable,"onMoveStop",e.hitch(this,"_endDrag"),!0)):l.add(ja,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":z.map(this["class"].split(/\s/),function(pa){return pa+"_underlay"}).join(" "),_onKeyDown:e.hitch(this,"_onKey"),ownerDocument:this.ownerDocument}},_size:function(){this.resize()},_position:function(){if(!l.contains(this.ownerDocumentBody,
"dojoMove")){var ja=this.domNode,pa=x.getBox(this.ownerDocument),Ca=this._relativePosition,la=q.position(ja);f.set(ja,{left:Math.floor(pa.l+(Ca?Math.min(Ca.x,pa.w-la.w):(pa.w-la.w)/2))+"px",top:Math.floor(pa.t+(Ca?Math.min(Ca.y,pa.h-la.h):(pa.h-la.h)/2))+"px"})}},_onKey:function(ja){if(ja.keyCode==d.TAB){this._getFocusItems();var pa=ja.target;this._firstFocusItem==this._lastFocusItem?(ja.stopPropagation(),ja.preventDefault()):pa==this._firstFocusItem&&ja.shiftKey?(u.focus(this._lastFocusItem),ja.stopPropagation(),
ja.preventDefault()):pa!=this._lastFocusItem||ja.shiftKey||(u.focus(this._firstFocusItem),ja.stopPropagation(),ja.preventDefault())}else this.closable&&ja.keyCode==d.ESCAPE&&(this.onCancel(),ja.stopPropagation(),ja.preventDefault())},show:function(){if(this.open)return da.promise;this._started||this.startup();this._alreadyInitialized||(this._setup(),this._alreadyInitialized=!0);this._fadeOutDeferred&&(this._fadeOutDeferred.cancel(),ia.hide(this));var ja=x.get(this.ownerDocument);this._modalconnects.push(h(ja,
"scroll",e.hitch(this,"resize",null)));this._modalconnects.push(h(this.domNode,"keydown",e.hitch(this,"_onKey")));f.set(this.domNode,{opacity:0,display:""});this._set("open",!0);this._onShow();this.resize();this._position();this._fadeInDeferred=new p(e.hitch(this,function(){pa.stop();delete this._fadeInDeferred}));this._fadeInDeferred.then(void 0,aa);ja=this._fadeInDeferred.promise;var pa=c.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:e.hitch(this,function(){ia.show(this,this.underlayAttrs)}),
onEnd:e.hitch(this,function(){this.autofocus&&ia.isTop(this)&&(this._getFocusItems(),u.focus(this._firstFocusItem));this._fadeInDeferred.resolve(!0);delete this._fadeInDeferred})}).play();return ja},hide:function(){if(!this._alreadyInitialized||!this.open)return da.promise;this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred=new p(e.hitch(this,function(){pa.stop();delete this._fadeOutDeferred}));this._fadeOutDeferred.then(void 0,aa);this._fadeOutDeferred.then(e.hitch(this,"onHide"));
var ja=this._fadeOutDeferred.promise;var pa=c.fadeOut({node:this.domNode,duration:this.duration,onEnd:e.hitch(this,function(){this.domNode.style.display="none";ia.hide(this);this._fadeOutDeferred.resolve(!0);delete this._fadeOutDeferred})}).play();this._scrollConnected&&(this._scrollConnected=!1);for(var Ca;Ca=this._modalconnects.pop();)Ca.remove();this._relativePosition&&delete this._relativePosition;this._set("open",!1);return ja},resize:function(ja){if("none"!=this.domNode.style.display){this._checkIfSingleChild();
if(!ja){this._shrunk&&(this._singleChild&&"undefined"!=typeof this._singleChildOriginalStyle&&(this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle,delete this._singleChildOriginalStyle),z.forEach([this.domNode,this.containerNode,this.titleBar,this.actionBarNode],function(ua){ua&&f.set(ua,{position:"static",width:"auto",height:"auto"})}),this.domNode.style.position="absolute");var pa=x.getBox(this.ownerDocument);pa.w*=this.maxRatio;pa.h*=this.maxRatio;var Ca=q.position(this.domNode);
this._shrunk=!1;Ca.w>=pa.w&&(ja={w:pa.w},q.setMarginBox(this.domNode,ja),Ca=q.position(this.domNode),this._shrunk=!0);Ca.h>=pa.h&&(ja||(ja={w:Ca.w}),ja.h=pa.h,this._shrunk=!0);ja&&(ja.w||(ja.w=Ca.w),ja.h||(ja.h=Ca.h))}if(ja){q.setMarginBox(this.domNode,ja);pa=[];this.titleBar&&pa.push({domNode:this.titleBar,region:"top"});this.actionBarNode&&pa.push({domNode:this.actionBarNode,region:"bottom"});Ca={domNode:this.containerNode,region:"center"};pa.push(Ca);var la=H.marginBox2contentBox(this.domNode,
ja);H.layoutChildren(this.domNode,la,pa);this._singleChild?(pa=H.marginBox2contentBox(this.containerNode,Ca),this._singleChild.resize({w:pa.w,h:pa.h})):(this.containerNode.style.overflow="auto",this._layoutChildren())}else this._layoutChildren();g("touch")||ja||this._position()}},_layoutChildren:function(){z.forEach(this.getChildren(),function(ja){ja.resize&&ja.resize()})},destroy:function(){this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred&&this._fadeOutDeferred.cancel();
this._moveable&&this._moveable.destroy();for(var ja;ja=this._modalconnects.pop();)ja.remove();ia.hide(this);this.inherited(arguments)}});g("dojo-bidi")&&(t=w("dijit._DialogBase",t,{_setTitleAttr:function(ja){this._set("title",ja);this.titleNode.innerHTML=ja;this.applyTextDir(this.titleNode)},_setTextDirAttr:function(ja){this._created&&this.textDir!=ja&&(this._set("textDir",ja),this.set("title",this.title))}}));var ha=w("dijit.Dialog",[G,t],{});ha._DialogBase=t;var ia=ha._DialogLevelManager={_beginZIndex:950,
show:function(ja,pa){ba[ba.length-1].focus=u.curNode;var Ca=ba[ba.length-1].dialog?ba[ba.length-1].zIndex+2:ha._DialogLevelManager._beginZIndex;f.set(ja.domNode,"zIndex",Ca);D.show(pa,Ca-1);ba.push({dialog:ja,underlayAttrs:pa,zIndex:Ca})},hide:function(ja){if(ba[ba.length-1].dialog==ja){ba.pop();var pa=ba[ba.length-1];1==ba.length?D.hide():D.show(pa.underlayAttrs,pa.zIndex-1);if(ja.refocus&&(ja=pa.focus,!pa.dialog||ja&&n.isDescendant(ja,pa.dialog.domNode)||(pa.dialog._getFocusItems(),ja=pa.dialog._firstFocusItem),
ja))try{ja.focus()}catch(Ca){}}else pa=z.indexOf(z.map(ba,function(Ca){return Ca.dialog}),ja),-1!=pa&&ba.splice(pa,1)},isTop:function(ja){return ba[ba.length-1].dialog==ja}},ba=ha._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];u.watch("curNode",function(ja,pa,Ca){ja=ba[ba.length-1].dialog;if(Ca&&ja&&!ja._fadeOutDeferred&&Ca.ownerDocument==ja.ownerDocument){do if(Ca==ja.domNode||l.contains(Ca,"dijitPopup"))return;while(Ca=Ca.parentNode);ja.focus()}});g("dijit-legacy-requires")&&m(0,function(){E(["dijit/TooltipDialog"])});
return ha})},"dojo/dnd/Moveable":function(){define("../_base/array ../_base/declare ../_base/lang ../dom ../dom-class ../Evented ../has ../on ../topic ../touch ./common ./Mover ../_base/window".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e){function h(k,x){"touchAction"in document.body.style?m="touchAction":"msTouchAction"in document.body.style&&(m="msTouchAction");g=function(v,y){v.style[m]=y};g(k,x)}var m,g=function(){};l("touch-action")&&(g=h);return z("dojo.dnd.Moveable",[n],{handle:"",delay:0,
skip:!1,constructor:function(k,x){this.node=w.byId(k);g(this.node,"none");x||(x={});this.handle=x.handle?w.byId(x.handle):null;this.handle||(this.handle=this.node);this.delay=0<x.delay?x.delay:0;this.skip=x.skip;this.mover=x.mover?x.mover:d;this.events=[q(this.handle,c.press,b.hitch(this,"onMouseDown")),q(this.handle,"dragstart",b.hitch(this,"onSelectStart")),q(this.handle,"selectstart",b.hitch(this,"onSelectStart"))]},markupFactory:function(k,x,v){return new v(x,k)},destroy:function(){E.forEach(this.events,
function(k){k.remove()});g(this.node,"");this.events=this.node=this.handle=null},onMouseDown:function(k){if(!this.skip||!a.isFormElement(k)){if(this.delay)this.events.push(q(this.handle,c.move,b.hitch(this,"onMouseMove")),q(this.handle.ownerDocument,c.release,b.hitch(this,"onMouseUp"))),this._lastX=k.pageX,this._lastY=k.pageY;else this.onDragDetected(k);k.stopPropagation();k.preventDefault()}},onMouseMove:function(k){if(Math.abs(k.pageX-this._lastX)>this.delay||Math.abs(k.pageY-this._lastY)>this.delay)this.onMouseUp(k),
this.onDragDetected(k);k.stopPropagation();k.preventDefault()},onMouseUp:function(k){for(var x=0;2>x;++x)this.events.pop().remove();k.stopPropagation();k.preventDefault()},onSelectStart:function(k){this.skip&&a.isFormElement(k)||(k.stopPropagation(),k.preventDefault())},onDragDetected:function(k){new this.mover(this.node,k,this)},onMoveStart:function(k){f.publish("/dnd/move/start",k);p.add(e.body(),"dojoMove");p.add(this.node,"dojoMoveItem")},onMoveStop:function(k){f.publish("/dnd/move/stop",k);p.remove(e.body(),
"dojoMove");p.remove(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(k,x){this.onMoving(k,x);var v=k.node.style;v.left=x.l+"px";v.top=x.t+"px";this.onMoved(k,x)},onMoving:function(){},onMoved:function(){}})})},"dojo/dnd/common":function(){define(["../sniff","../_base/kernel","../_base/lang","../dom"],function(E,z,b,w){var p=b.getObject("dojo.dnd",!0);p.getCopyKeyState=function(n){return n[E("mac")?"metaKey":"ctrlKey"]};p._uniqueId=0;p.getUniqueId=function(){do var n=z._scopeName+
"Unique"+ ++p._uniqueId;while(w.byId(n));return n};p._empty={};p.isFormElement=function(n){n=n.target;3==n.nodeType&&(n=n.parentNode);return 0<=" a button textarea input select option ".indexOf(" "+n.tagName.toLowerCase()+" ")};return p})},"dojo/dnd/Mover":function(){define("../_base/array ../_base/declare ../_base/lang ../sniff ../_base/window ../dom ../dom-geometry ../dom-style ../Evented ../on ../touch ./common ./autoscroll".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e){return z("dojo.dnd.Mover",
[f],{constructor:function(h,m,g){function k(x){x.preventDefault();x.stopPropagation()}this.node=n.byId(h);this.marginBox={l:m.pageX,t:m.pageY};this.mouseButton=m.button;m=this.host=g;h=h.ownerDocument;this.events=[c(h,a.move,b.hitch(this,"onFirstMove")),c(h,a.move,b.hitch(this,"onMouseMove")),c(h,a.release,b.hitch(this,"onMouseUp")),c(h,"dragstart",k),c(h.body,"selectstart",k)];e.autoScrollStart(h);if(m&&m.onMoveStart)m.onMoveStart(this)},onMouseMove:function(h){e.autoScroll(h);var m=this.marginBox;
this.host.onMove(this,{l:m.l+h.pageX,t:m.t+h.pageY},h);h.preventDefault();h.stopPropagation()},onMouseUp:function(h){(w("webkit")&&w("mac")&&2==this.mouseButton?0==h.button:this.mouseButton==h.button)&&this.destroy();h.preventDefault();h.stopPropagation()},onFirstMove:function(h){var m=this.node.style,g=this.host;switch(m.position){case "relative":case "absolute":var k=Math.round(parseFloat(m.left))||0;m=Math.round(parseFloat(m.top))||0;break;default:m.position="absolute";m=l.getMarginBox(this.node);
k=p.doc.body;var x=q.getComputedStyle(k),v=l.getMarginBox(k,x);x=l.getContentBox(k,x);k=m.l-(x.l-v.l);m=m.t-(x.t-v.t)}this.marginBox.l=k-this.marginBox.l;this.marginBox.t=m-this.marginBox.t;if(g&&g.onFirstMove)g.onFirstMove(this,h);this.events.shift().remove()},destroy:function(){E.forEach(this.events,function(m){m.remove()});var h=this.host;if(h&&h.onMoveStop)h.onMoveStop(this);this.events=this.node=this.host=null}})})},"dojo/dnd/autoscroll":function(){define("../_base/lang ../sniff ../_base/window ../dom-geometry ../dom-style ../window".split(" "),
function(E,z,b,w,p,n){var l={};E.setObject("dojo.dnd.autoscroll",l);l.getViewport=n.getBox;l.V_TRIGGER_AUTOSCROLL=32;l.H_TRIGGER_AUTOSCROLL=32;l.V_AUTOSCROLL_VALUE=16;l.H_AUTOSCROLL_VALUE=16;var q,f=b.doc,c=Infinity,a=Infinity;l.autoScrollStart=function(d){f=d;q=n.getBox(f);d=b.body(f).parentNode;c=Math.max(d.scrollHeight-q.h,0);a=Math.max(d.scrollWidth-q.w,0)};l.autoScroll=function(d){var e=q||n.getBox(f),h=b.body(f).parentNode,m=0,g=0;d.clientX<l.H_TRIGGER_AUTOSCROLL?m=-l.H_AUTOSCROLL_VALUE:d.clientX>
e.w-l.H_TRIGGER_AUTOSCROLL&&(m=Math.min(l.H_AUTOSCROLL_VALUE,a-h.scrollLeft));d.clientY<l.V_TRIGGER_AUTOSCROLL?g=-l.V_AUTOSCROLL_VALUE:d.clientY>e.h-l.V_TRIGGER_AUTOSCROLL&&(g=Math.min(l.V_AUTOSCROLL_VALUE,c-h.scrollTop));window.scrollBy(m,g)};l._validNodes={div:1,p:1,td:1};l._validOverflow={auto:1,scroll:1};l.autoScrollNodes=function(d){for(var e,h,m,g,k,x=0,v=0,y=d.target;y;){if(1==y.nodeType&&y.tagName.toLowerCase()in l._validNodes){m=p.getComputedStyle(y);k=m.overflowX.toLowerCase()in l._validOverflow;
g=m.overflowY.toLowerCase()in l._validOverflow;if(k||g)e=w.getContentBox(y,m),h=w.position(y,!0);if(k){m=Math.min(l.H_TRIGGER_AUTOSCROLL,e.w/2);k=d.pageX-h.x;if(z("webkit")||z("opera"))k+=b.body().scrollLeft;x=0;0<k&&k<e.w&&(k<m?x=-m:k>e.w-m&&(x=m),y.scrollLeft+=x)}if(g){g=Math.min(l.V_TRIGGER_AUTOSCROLL,e.h/2);m=d.pageY-h.y;if(z("webkit")||z("opera"))m+=b.body().scrollTop;v=0;0<m&&m<e.h&&(m<g?v=-g:m>e.h-g&&(v=g),y.scrollTop+=v)}if(x||v)return}try{y=y.parentNode}catch(u){y=null}}l.autoScroll(d)};
return l})},"dojo/dnd/TimedMoveable":function(){define(["../_base/declare","./Moveable"],function(E,z){var b=z.prototype.onMove;return E("dojo.dnd.TimedMoveable",z,{timeout:40,constructor:function(w,p){p||(p={});p.timeout&&"number"==typeof p.timeout&&0<=p.timeout&&(this.timeout=p.timeout)},onMoveStop:function(w){w._timer&&(clearTimeout(w._timer),b.call(this,w,w._leftTop));z.prototype.onMoveStop.apply(this,arguments)},onMove:function(w,p){w._leftTop=p;if(!w._timer){var n=this;w._timer=setTimeout(function(){w._timer=
null;b.call(n,w,w._leftTop)},this.timeout)}}})})},"dijit/DialogUnderlay":function(){define("dojo/_base/declare dojo/_base/lang dojo/aspect dojo/dom-attr dojo/dom-style dojo/on dojo/window ./_Widget ./_TemplatedMixin ./BackgroundIframe ./Viewport ./main".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d){var e=E("dijit.DialogUnderlay",[q,f],{templateString:"\x3cdiv class\x3d'dijitDialogUnderlayWrapper'\x3e\x3cdiv class\x3d'dijitDialogUnderlay' tabIndex\x3d'-1' data-dojo-attach-point\x3d'node'\x3e\x3c/div\x3e\x3c/div\x3e",
dialogId:"","class":"",_modalConnects:[],_setDialogIdAttr:function(h){w.set(this.node,"id",h+"_underlay");this._set("dialogId",h)},_setClassAttr:function(h){this.node.className="dijitDialogUnderlay "+h;this._set("class",h)},postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);this.own(n(this.domNode,"keydown",z.hitch(this,"_onKeyDown")));this.inherited(arguments)},layout:function(){var h=this.node.style,m=this.domNode.style;m.display="none";var g=l.getBox(this.ownerDocument);m.top=
g.t+"px";m.left=g.l+"px";h.width=g.w+"px";h.height=g.h+"px";m.display="block"},show:function(){this.domNode.style.display="block";this.open=!0;this.layout();this.bgIframe=new c(this.domNode);var h=l.get(this.ownerDocument);this._modalConnects=[a.on("resize",z.hitch(this,"layout")),n(h,"scroll",z.hitch(this,"layout"))]},hide:function(){this.bgIframe.destroy();delete this.bgIframe;for(this.domNode.style.display="none";this._modalConnects.length;)this._modalConnects.pop().remove();this.open=!1},destroy:function(){for(;this._modalConnects.length;)this._modalConnects.pop().remove();
this.inherited(arguments)},_onKeyDown:function(){}});e.show=function(h,m){var g=e._singleton;!g||g._destroyed?g=d._underlay=e._singleton=new e(h):h&&g.set(h);p.set(g.domNode,"zIndex",m);g.open||g.show()};e.hide=function(){var h=e._singleton;h&&!h._destroyed&&h.hide()};return e})},"esri/Credential":function(){define(["dojo/_base/declare","dojo/has","./kernel","./IdentityManagerBase"],function(E,z,b,w){E=E(w.Credential,{});z("extend-esri")&&(b.Credential=E);return E})},"esri/IdentityManagerBase":function(){define("dojo/_base/declare dojo/_base/config dojo/_base/lang dojo/_base/array dojo/_base/Deferred dojo/_base/url dojo/sniff dojo/io-query dojo/on ./kernel ./config ./lang ./ServerInfo ./urlUtils ./deferredUtils ./request ./Evented ./OAuthCredential ./arcgis/OAuthInfo".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v){var y={},u=function(A){var D=(new n(A.owningSystemUrl)).host;A=(new n(A.server)).host;var G=/.+\.arcgis\.com$/i;return G.test(D)&&G.test(A)},t=function(A,D){return!!(u(A)&&D&&w.some(D,function(G){return G.test(A.server)}))},r=null,B=null;try{r=window.localStorage,B=window.sessionStorage}catch(A){}var C=E(k,{declaredClass:"esri.IdentityManagerBase",constructor:function(){this._portalConfig=b.getObject("esriGeowConfig");this.serverInfos=[];this.oAuthInfos=
[];this.credentials=[];this._soReqs=[];this._xoReqs=[];this._portals=[];this._getOAuthHash();f(window,"pageshow",b.hitch(this,this._pageShowHandler))},defaultOAuthInfo:null,defaultTokenValidity:60,tokenValidity:null,normalizeWebTierAuth:!1,_appUrlObj:h.urlToObject(window.location.href),_postMessageAuthHandle:null,_busy:null,_rejectOnPersistedPageShow:!1,_oAuthHash:null,_gwTokenUrl:"/sharing/generateToken",_agsRest:"/rest/services",_agsPortal:/\/sharing(\/|$)/i,_agsAdmin:/(https?:\/\/[^\/]+\/[^\/]+)\/admin\/?(\/.*)?$/i,
_adminSvcs:/\/rest\/admin\/services(\/|$)/i,_gwDomains:[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/generateToken"},
{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/generateToken"}],_legacyFed:[],_regexSDirUrl:/http.+\/rest\/services\/?/ig,_regexServerType:/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|MapServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer)).*/ig,
_gwUser:/http.+\/users\/([^\/]+)\/?.*/i,_gwItem:/http.+\/items\/([^\/]+)\/?.*/i,_gwGroup:/http.+\/groups\/([^\/]+)\/?.*/i,_errorCodes:[499,498,403,401],_rePortalTokenSvc:/\/sharing(\/rest)?\/generatetoken/i,_publicUrls:[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],_createDefaultOAuthInfo:!0,_hasTestedIfAppIsOnPortal:!1,registerServers:function(A){var D=this.serverInfos;D?(A=w.filter(A,function(G){return!this.findServerInfo(G.server)},this),this.serverInfos=D.concat(A)):
this.serverInfos=A;w.forEach(A,function(G){G.owningSystemUrl&&this._portals.push(G.owningSystemUrl);if(G.hasPortal){this._portals.push(G.server);var H=a.defaults.io.corsEnabledServers,L=this._getOrigin(G.tokenServiceUrl);h.canUseXhr(G.server)||H.push(G.server.replace(/^https?:\/\//i,""));h.canUseXhr(L)||H.push(L.replace(/^https?:\/\//i,""))}},this)},registerOAuthInfos:function(A){var D=this.oAuthInfos;D?(w.forEach(A,function(G){(G=this.findOAuthInfo(G.portalUrl))&&D.splice(D.indexOf(G),1)},this),
this.oAuthInfos=D.concat(A)):this.oAuthInfos=A},registerToken:function(A){A=d.mixin({},A);var D=this._sanitizeUrl(A.server),G=this.findServerInfo(D),H=!0,L;G||(G=new e,G.server=this._getServerInstanceRoot(D),G.tokenServiceUrl=this._getTokenSvcUrl(D),G.hasPortal=!0,this.registerServers([G]));(L=this.findCredential(D,A.userId))?(delete A.server,b.mixin(L,A),H=!1):(L=new F({userId:A.userId,server:G.server,token:A.token,expires:A.expires,ssl:A.ssl,scope:this._isServerRsrc(D)?"server":"portal"}),L.resources=
[D],this.credentials.push(L));L.onTokenChange(!1);H||L.refreshServerTokens()},toJson:function(){return d.fixJson({serverInfos:w.map(this.serverInfos,function(A){return A.toJson()}),oAuthInfos:w.map(this.oAuthInfos,function(A){return A.toJson()}),credentials:w.map(this.credentials,function(A){return A.toJson()})})},initialize:function(A){if(A){b.isString(A)&&(A=JSON.parse(A));var D=A.serverInfos,G=A.oAuthInfos;A=A.credentials;if(D){var H=[];w.forEach(D,function(aa){aa.server&&aa.tokenServiceUrl&&H.push(aa.declaredClass?
aa:new e(aa))});H.length&&this.registerServers(H)}if(G){var L=[];w.forEach(G,function(aa){aa.appId&&L.push(aa.declaredClass?aa:new v(aa))});L.length&&this.registerOAuthInfos(L)}A&&w.forEach(A,function(aa){aa.userId&&aa.server&&aa.token&&aa.expires&&aa.expires>(new Date).getTime()&&(aa=aa.declaredClass?aa:new F(aa),aa.onTokenChange(),this.credentials.push(aa))},this)}},findServerInfo:function(A){var D;A=this._sanitizeUrl(A);w.some(this.serverInfos,function(G){this._hasSameServerInstance(G.server,A)&&
(D=G);return!!D},this);return D},findOAuthInfo:function(A){var D;A=this._sanitizeUrl(A);w.some(this.oAuthInfos,function(G){this._hasSameServerInstance(G.portalUrl,A)&&(D=G);return!!D},this);return D},findCredential:function(A,D){var G;A=this._sanitizeUrl(A);var H=this._isServerRsrc(A)?"server":"portal";D?w.some(this.credentials,function(L){this._hasSameServerInstance(L.server,A)&&D===L.userId&&L.scope===H&&(G=L);return!!G},this):w.some(this.credentials,function(L){this._hasSameServerInstance(L.server,
A)&&-1!==this._getIdenticalSvcIdx(A,L)&&L.scope===H&&(G=L);return!!G},this);return G},getCredential:function(A,D){var G=!0;if(d.isDefined(D))if(b.isObject(D)){var H=!!D.token;var L=D.error;G=!1!==D.prompt}else H=D;A=this._sanitizeUrl(A);var aa=new p(m._dfdCanceller),da=this._isAdminResource(A);if((H=H?this.findCredential(A):null)&&L&&498===L.code)H.destroy();else if(H)return A=Error("You are currently signed in as: '"+H.userId+"'. You do not have access to this resource: "+A),A.name="identity-manager:not-authorized",
A.code="IdentityManagerBase.1",A.httpCode=L&&L.httpCode,A.messageCode=L?L.messageCode:null,A.subcode=L?L.subcode:null,A.details=L?L.details:null,A.log=!!z.isDebug,aa.errback(A),aa;if(L=this._findCredential(A,D))return aa.callback(L),aa;var ha=this.findServerInfo(A);if(ha)!ha.hasServer&&this._isServerRsrc(A)&&(ha._restInfoDfd=this._getTokenSvcUrl(A,!0),ha.hasServer=!0);else{L=this._getTokenSvcUrl(A);if(!L)return A=Error("Unknown resource - could not find token service endpoint."),A.name="identity-manager:unknown-resource",
A.code="IdentityManagerBase.2",A.log=!!z.isDebug,aa.errback(A),aa;ha=new e;ha.server=this._getServerInstanceRoot(A);b.isString(L)?(ha.tokenServiceUrl=L,ha.hasPortal=!0):(ha._restInfoDfd=L,ha.hasServer=!0);this.registerServers([ha])}ha.hasPortal&&void 0===ha._selfReq&&(G||h.hasSameOrigin(ha.tokenServiceUrl,window.location.origin)||this._gwDomains.some(function(ia){return ia.tokenServiceUrl===ha.tokenServiceUrl}))&&(ha._selfReq={owningTenant:D&&D.owningTenant,selfDfd:this._getPortalSelf(ha.tokenServiceUrl.replace(this._rePortalTokenSvc,
"/sharing/rest/portals/self"),A)});return this._enqueue(A,ha,D,aa,da)},getResourceName:function(A){return this._isRESTService(A)?A.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(A)&&A.replace(this._gwUser,"$1")||this._gwItem.test(A)&&A.replace(this._gwItem,"$1")||this._gwGroup.test(A)&&A.replace(this._gwGroup,"$1")||""},generateToken:function(A,D,G){var H=this._rePortalTokenSvc.test(A.tokenServiceUrl),L=new n(window.location.href.toLowerCase()),aa=!D;var da=
A.shortLivedTokenValidity;if(D){var ha=c.id.tokenValidity||da||c.id.defaultTokenValidity;ha>da&&(ha=da)}if(G){var ia=G.isAdmin;var ba=G.serverUrl;var ja=G.token;var pa=G.ssl;A.customParameters=G.customParameters}if(ia)da=A.adminTokenServiceUrl;else{da=A.tokenServiceUrl;var Ca=new n(da.toLowerCase());A.webTierAuth&&G&&G.serverUrl&&!pa&&"http"===L.scheme&&(h.hasSameOrigin(L.uri,da,!0)||"https"===Ca.scheme&&L.host===Ca.host&&"7080"===L.port&&"7443"===Ca.port)&&(da=da.replace(/^https:/i,"http:").replace(/:7443/i,
":7080"));aa&&H&&(da=da.replace(/\/rest/i,""))}ia=b.mixin({url:da,content:b.mixin({request:"getToken",username:D&&D.username,password:D&&D.password,serverUrl:ba,token:ja,expiration:ha,referer:ia||H?window.location.host:null,client:ia?"referer":null,f:"json"},A.customParameters),handleAs:"json",callbackParamName:aa?"callback":void 0},G&&G.ioArgs);G={usePost:!aa,disableIdentityLookup:!0,useProxy:this._useProxy(A,G)};H||(ia.withCredentials=!1);H=g(ia,G);H.addCallback(function(la){if(!la||!la.token)return la=
Error("Unable to generate token"),la.name="identity-manager:authentication-failed",la.code="IdentityManagerBase.3",la.log=!!z.isDebug,la;var ua=A.server;y[ua]||(y[ua]={});D&&(y[ua][D.username]=D.password);la.validity=ha;return la});H.addErrback(function(la){});return H},isBusy:function(){return!!this._busy},checkSignInStatus:function(A){var D=new p;this.checkAppAccess(A,"").then(function(G){D.resolve(G.credential)}).catch(function(G){D.reject(G)});return D},checkAppAccess:function(A,D,G){var H=this,
L=!1;return this.getCredential(A,{prompt:!1}).then(function(aa){var da={f:"json"};if("portal"===aa.scope)if(D&&(H._doPortalSignIn(A)||G&&G.force)){var ha=aa.server+"/sharing/rest/oauth2/validateAppAccess";da.client_id=D}else if(aa.token)ha=aa.server+"/sharing/rest";else return{credential:aa};else if(aa.token)ha=aa.server+"/rest/services";else return{credential:aa};aa.token&&(da.token=aa.token);return g({url:ha,content:da,callbackParamName:"callback"},{disableIdentityLookup:!0}).then(function(ia){if(!1===
ia.valid){var ba=Error("You are currently signed in as: '"+aa.userId+"'.  You do not have access to this app: '"+D+"'.");ba.name="identity-manager:not-authorized";ba.code="IdentityManagerBase.1";ba.log=!!z.isDebug;ba.details=ia;throw ba;}L=!!ia.viewOnlyUserTypeApp;return{credential:aa}}).catch(function(ia){if("IdentityManagerBase.1"===ia.code||400===ia.code)throw 400===ia.code&&(ia.name="identity-manager:invalid-request"),ia;if(498===ia.code)throw aa.destroy(),ia=Error("User is not signed in."),ia.name=
"identity-manager:not-authenticated",ia.code="IdentityManagerBase.6",ia.log=!!z.isDebug,ia;return{credential:aa}})}).then(function(aa){return{credential:aa.credential,viewOnly:L}})},setProtocolErrorHandler:function(A){this._protocolFunc=A},signIn:function(){},oAuthSignIn:function(){},onCredentialCreate:function(){},onCredentialsDestroy:function(){},destroyCredentials:function(){if(this.credentials){var A=this.credentials.slice();w.forEach(A,function(D){D.destroy()})}this.onCredentialsDestroy()},enablePostMessageAuth:function(A){A||
(A="https://www.arcgis.com/sharing/rest");this._postMessageAuthHandle&&this._postMessageAuthHandle.remove();this._postMessageAuthHandle=f(window,"message",function(D){(D.origin===window.location.origin||d.endsWith(D.origin,".arcgis.com"))&&D.data&&"arcgis:auth:requestCredential"===D.data.type&&this.getCredential(A).then(function(G){D.source.postMessage({type:"arcgis:auth:credential",credential:{expires:G.expires,server:G.server,ssl:G.ssl,token:G.token,userId:G.userId}},D.origin)}).catch(function(G){D.source.postMessage({type:"arcgis:auth:error",
error:{name:G.name,message:G.message}},D.origin)})}.bind(this))},disablePostMessageAuth:function(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)},_getOAuthHash:function(){var A=window.location.hash;if(A){"#"===A.charAt(0)&&(A=A.substring(1));A=q.queryToObject(A);var D=!1;if(A.access_token&&A.expires_in&&A.state&&A.hasOwnProperty("username"))try{A.state=JSON.parse(A.state),"object"===typeof A.state&&A.state.portalUrl&&(this._oAuthHash=A,D=!0)}catch(G){}else A.error&&
A.error_description&&(console.log("IdentityManager OAuth Error: ",A.error," - ",A.error_description),"access_denied"===A.error&&(D=!0));D&&(window.location.hash=A.state&&A.state.hash||"")}},_pageShowHandler:function(A){A.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow&&(A=Error("ABORTED"),A.name="identity-manager:user-aborted",A.code="IdentityManager.2",A.log=!!z.isDebug,this._errbackFunc(A))},_findCredential:function(A,D){var G=-1,H,L,aa=D&&D.token;D=D&&D.resource;var da=this._isServerRsrc(A)?
"server":"portal",ha=w.filter(this.credentials,function(pa){return this._hasSameServerInstance(pa.server,A)&&pa.scope===da},this);A=D||A;if(ha.length)if(1===ha.length){D=ha[0];var ia=(H=(L=this.findServerInfo(D.server))&&L.owningSystemUrl)&&this.findCredential(H,D.userId);G=this._getIdenticalSvcIdx(A,D);if(aa)-1!==G&&(D.resources.splice(G,1),this._removeResource(A,ia));else return-1===G&&D.resources.push(A),this._addResource(A,ia),D}else{var ba,ja;w.some(ha,function(pa){ja=this._getIdenticalSvcIdx(A,
pa);return-1!==ja?(ba=pa,ia=(H=(L=this.findServerInfo(ba.server))&&L.owningSystemUrl)&&this.findCredential(H,ba.userId),G=ja,!0):!1},this);if(aa)ba&&(ba.resources.splice(G,1),this._removeResource(A,ia));else if(ba)return this._addResource(A,ia),ba}},_findOAuthInfo:function(A){var D=this.findOAuthInfo(A);D||w.some(this.oAuthInfos,function(G){this._isIdProvider(G.portalUrl,A)&&(D=G);return!!D},this);return D},_addResource:function(A,D){D&&-1===this._getIdenticalSvcIdx(A,D)&&D.resources.push(A)},_removeResource:function(A,
D){var G=-1;D&&(G=this._getIdenticalSvcIdx(A,D),-1<G&&D.resources.splice(G,1))},_useProxy:function(A,D){return D&&D.isAdmin&&!h.hasSameOrigin(A.adminTokenServiceUrl,window.location.href)||!this._isPortalDomain(A.tokenServiceUrl)&&10.1==A.currentVersion&&!h.hasSameOrigin(A.tokenServiceUrl,window.location.href)},_getOrigin:function(A){A=new n(A);return A.scheme+"://"+A.host+(d.isDefined(A.port)?":"+A.port:"")},_getServerInstanceRoot:function(A){var D=A.toLowerCase(),G=D.indexOf(this._agsRest);-1===
G&&this._isAdminResource(A)&&(G=this._agsAdmin.test(A)?A.replace(this._agsAdmin,"$1").length:A.search(this._adminSvcs));-1===G&&(G=D.indexOf("/sharing"));-1===G&&"/"===D.substr(-1)&&(G=D.length-1);return-1<G?A.substring(0,G):A},_hasSameServerInstance:function(A,D){"/"===A.substr(-1)&&(A=A.slice(0,-1));A=A.toLowerCase();D=this._getServerInstanceRoot(D).toLowerCase();A=this._normalizeAGOLorgDomain(A);D=this._normalizeAGOLorgDomain(D);A=A.substr(A.indexOf(":"));D=D.substr(D.indexOf(":"));return A===
D},_normalizeAGOLorgDomain:function(A){var D=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,G=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,H=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;D.test(A)?A=A.replace(D,"https://www.arcgis.com"):G.test(A)?A=A.replace(G,"https://devext.arcgis.com"):H.test(A)&&(A=A.replace(H,"https://qaext.arcgis.com"));return A},_sanitizeUrl:function(A){var D=(a.defaults.io.proxyUrl||"").toLowerCase(),G=D?A.toLowerCase().indexOf(D+"?"):-1;-1!==
G&&(A=A.substring(G+D.length+1));A=h.normalize(A);return h.urlToObject(A).path},_isRESTService:function(A){return-1<A.indexOf(this._agsRest)},_isAdminResource:function(A){return this._agsAdmin.test(A)||this._adminSvcs.test(A)},_isServerRsrc:function(A){return this._isRESTService(A)||this._isAdminResource(A)},_isIdenticalService:function(A,D){if(this._isRESTService(A)&&this._isRESTService(D)){A=this._getSuffix(A).toLowerCase();D=this._getSuffix(D).toLowerCase();var G=A===D;G||(G=/(.*)\/(MapServer|FeatureServer).*/ig,
G=A.replace(G,"$1")===D.replace(G,"$1"))}else this._isAdminResource(A)&&this._isAdminResource(D)?G=!0:this._isServerRsrc(A)||this._isServerRsrc(D)||!this._isPortalDomain(A)||(G=!0);return G},_isPortalDomain:function(A){var D=new n(A.toLowerCase()),G=this._portalConfig;A=w.some(this._gwDomains,function(H){return H.regex.test(D.uri)});!A&&G&&(A=this._hasSameServerInstance(this._getServerInstanceRoot(G.restBaseUrl),D.uri));A||(!this._arcgisUrl&&(G=b.getObject("esri.arcgis.utils.arcgisUrl"))&&(this._arcgisUrl=
(new n(G)).authority),this._arcgisUrl&&(A=this._arcgisUrl.toLowerCase()===D.authority));A||(A=w.some(this._portals,function(H){return this._hasSameServerInstance(H,D.uri)},this));return A=A||this._agsPortal.test(D.path)},_isIdProvider:function(A,D){var G=-1,H=-1;w.forEach(this._gwDomains,function(ha,ia){-1===G&&ha.regex.test(A)&&(G=ia);-1===H&&ha.regex.test(D)&&(H=ia)});var L=!1;if(-1<G&&-1<H)if(0===G||4===G){if(0===H||4===H)L=!0}else if(1===G){if(1===H||2===H)L=!0}else 2===G?2===H&&(L=!0):3===G&&
3===H&&(L=!0);if(!L){var aa=this.findServerInfo(D),da=aa&&aa.owningSystemUrl;da&&u(aa)&&this._isPortalDomain(da)&&this._isIdProvider(A,da)&&(L=!0)}return L},_isPublic:function(A){A=this._sanitizeUrl(A);return w.some(this._publicUrls,function(D){return D.test(A)})},_getIdenticalSvcIdx:function(A,D){var G=-1;w.some(D.resources,function(H,L){return this._isIdenticalService(A,H)?(G=L,!0):!1},this);return G},_getSuffix:function(A){return A.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")},
_getTokenSvcUrl:function(A){if(this._isRESTService(A)||this._isAdminResource(A)){var D=this._getServerInstanceRoot(A);var G=D+"/admin/generateToken";A=D+"/rest/info";D=g({url:A,content:{f:"json"},handleAs:"json",callbackParamName:"callback"});D.adminUrl_=G;return D}if(this._isPortalDomain(A)){var H="";w.some(this._gwDomains,function(L){L.regex.test(A)&&(H=L.tokenServiceUrl);return!!H});H||w.some(this._portals,function(L){this._hasSameServerInstance(L,A)&&(H=L+this._gwTokenUrl);return!!H},this);H||
(G=A.toLowerCase().indexOf("/sharing"),-1!==G&&(H=A.substring(0,G)+this._gwTokenUrl));H||(H=this._getOrigin(A)+this._gwTokenUrl);H&&(G=(new n(A)).port,/^http:\/\//i.test(A)&&"7080"===G&&(H=H.replace(/:7080/i,":7443")),H=H.replace(/http:/i,"https:"));return H}if(-1!==A.toLowerCase().indexOf("premium.arcgisonline.com"))return"https://premium.arcgisonline.com/server/tokens"},_exchangeToken:function(A,D,G){return g({url:A+"/sharing/rest/oauth2/exchangeToken",content:{f:"json",client_id:D,token:G}},{disableIdentityLookup:!0,
usePost:!0}).then(function(H){return H.token})},_getPlatformSelf:function(A,D){A=A.replace(/^http:/i,"https:");return g({url:A+"/sharing/rest/oauth2/platformSelf",content:{f:"json"},headers:{"X-Esri-Auth-Client-Id":D,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},withCredentials:!0},{disableIdentityLookup:!0,usePost:!0})},_getPortalSelf:function(A,D){var G="";w.some(this._gwDomains,function(H){H.regex.test(A)&&(G=H.customBaseUrl);return!!G});if(G)return D=new p,D.resolve({allSSL:!0,
currentVersion:"4.4",customBaseUrl:G,portalMode:"multitenant",supportsOAuth:!0}),D;"https:"===window.location.protocol?A=A.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(D)&&(A=A.replace(/^https:/i,"http:").replace(/:7443/i,":7080"));return g({url:A,content:{f:"json"},handleAs:"json",callbackParamName:"callback"},{crossOrigin:!1,disableIdentityLookup:!0})},_doPortalSignIn:function(A){var D=this._portalConfig,G=window.location.href,H=this.findServerInfo(A);return(D||this._isPortalDomain(G))&&
(H?H.hasPortal||H.owningSystemUrl&&this._isPortalDomain(H.owningSystemUrl):this._isPortalDomain(A))&&(this._isIdProvider(G,A)||D&&(this._hasSameServerInstance(this._getServerInstanceRoot(D.restBaseUrl),A)||this._isIdProvider(D.restBaseUrl,A))||h.hasSameOrigin(G,A,!0))?!0:!1},_checkProtocol:function(A,D,G,H){var L=!0;H=H?D.adminTokenServiceUrl:D.tokenServiceUrl;0!==b.trim(H).toLowerCase().indexOf("https:")||0===window.location.href.toLowerCase().indexOf("https:")||a.defaults.io.useCors&&(h.canUseXhr(H)||
h.canUseXhr(h.getProxyUrl(!0).path))||(L=this._protocolFunc?!!this._protocolFunc({resourceUrl:A,serverInfo:D}):!1,L||(A=Error("Aborted the Sign-In process to avoid sending password over insecure connection."),A.name="identity-manager:aborted",A.code="IdentityManagerBase.4",A.log=!!z.isDebug,console.log(A.message),G(A)));return L},_enqueue:function(A,D,G,H,L,aa){H||(H=new p(m._dfdCanceller));H.resUrl_=A;H.sinfo_=D;H.options_=G;H.admin_=L;H.refresh_=aa;this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(A),
this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(H)):this._xoReqs.push(H):this._doSignIn(H);return H},_doSignIn:function(A){this._busy=A;this._rejectOnPersistedPageShow=!1;var D=this,G=function(ba){var ja=A.options_&&A.options_.resource,pa=A.resUrl_,Ca=A.refresh_,la=!1;-1===w.indexOf(D.credentials,ba)&&(Ca&&-1!==w.indexOf(D.credentials,Ca)?(Ca.userId=ba.userId,Ca.token=ba.token,Ca.expires=ba.expires,Ca.validity=ba.validity,Ca.ssl=ba.ssl,
Ca.creationTime=ba.creationTime,la=!0,ba=Ca):D.credentials.push(ba));ba.resources||(ba.resources=[]);ba.resources.push(ja||pa);ba.scope=D._isServerRsrc(pa)?"server":"portal";ba.onTokenChange();ja=D._soReqs;var ua={};D._soReqs=[];w.forEach(ja,function(Aa){if(!this._isIdenticalService(pa,Aa.resUrl_)){var M=this._getSuffix(Aa.resUrl_);ua[M]||(ua[M]=!0,ba.resources.push(Aa.resUrl_))}},D);A.callback(ba);w.forEach(ja,function(Aa){this._hasSameServerInstance(this._getServerInstanceRoot(pa),Aa.resUrl_)?Aa.callback(ba):
this._soReqs.push(Aa)},D);D._busy=A.resUrl_=A.sinfo_=A.refresh_=null;if(!la)D.onCredentialCreate({credential:ba});D._soReqs.length?D._doSignIn(D._soReqs.shift()):D._xoReqs.length&&D._doSignIn(D._xoReqs.shift())},H=function(ba){A.errback(ba);D._busy=A.resUrl_=A.sinfo_=A.refresh_=null;D._soReqs.length?D._doSignIn(D._soReqs.shift()):D._xoReqs.length&&D._doSignIn(D._xoReqs.shift())},L=function(ba,ja,pa,Ca){var la=A.sinfo_,ua=!A.options_||!1!==A.options_.prompt,Aa=la.hasPortal&&D._findOAuthInfo(A.resUrl_);
if(ba)G(new F({userId:ba,server:la.server,token:pa||null,expires:d.isDefined(Ca)?Number(Ca):null,ssl:!!ja}));else if(window!==window.parent&&D._appUrlObj.query&&D._appUrlObj.query["arcgis-auth-origin"]&&D._appUrlObj.query["arcgis-auth-portal"]&&D._hasSameServerInstance(D._getServerInstanceRoot(D._appUrlObj.query["arcgis-auth-portal"]),A.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},D._appUrlObj.query["arcgis-auth-origin"]);var M=f(window,"message",function(na){if(na.source===
window.parent&&na.data)if("arcgis:auth:credential"===na.data.type&&na.data.credential.expires<Date.now()&&(na.data.type="arcgis:auth:error",na.data.error={name:"tokenExpiredError"}),"arcgis:auth:credential"===na.data.type)M.remove(),G(new F(na.data.credential));else if("arcgis:auth:error"===na.data.type){M.remove();na=na.data.error;switch(na.name){case "identity-manager:busy":case "identity-manager:not-authorized":var za="IdentityManager.1";break;case "identity-manager:server-identification-failed":case "identity-manager:unknown-resource":case "identity-manager:user-aborted":za=
"IdentityManager.2";break;case "identity-manager:authentication-failed":case "identity-manager:credential-request-failed":case "tokenExpiredError":za="IdentityManager.3";"tokenExpiredError"===na.name&&(na.name="identity-manager:credential-request-failed",na.message="Parent application's token has expired.");break;case "identity-manager:aborted":za="IdentityManager.4";break;case "identity-manager:not-authenticated":za="IdentityManager.6";break;case "identity-manager:invalid-request":za=400}var va=
Error(na.message);va.name=na.name;va.code=za;va.log=!!z.isDebug;H(va)}})}else if(Aa){var Y=Aa._oAuthCred;Y||(ba=new x(Aa,r),ja=new x(Aa,B),ba.isValid()&&ja.isValid()?ba.expires>ja.expires?(Y=ba,ja.destroy()):(Y=ja,ba.destroy()):Y=ba.isValid()?ba:ja,Aa._oAuthCred=Y);if(Y.isValid()){var ka=new F({userId:Y.userId,server:la.server,token:Y.token,expires:Y.expires,ssl:Y.ssl,_oAuthCred:Y});Aa.appId!==Y.appId&&D._doPortalSignIn(A.resUrl_)?A._pendingDfd=D._exchangeToken(ka.server,Aa.appId,ka.token).then(function(na){ka.token=
na;Y.token=na;Y.save();G(ka)}).catch(function(){G(ka)}):G(ka)}else if(D._oAuthHash&&D._hasSameServerInstance(Aa.portalUrl,D._oAuthHash.state.portalUrl))ba=D._oAuthHash,ka=new F({userId:ba.username,server:la.server,token:ba.access_token,expires:(new Date).getTime()+1E3*Number(ba.expires_in),ssl:"true"===ba.ssl,oAuthState:ba.state,_oAuthCred:Y}),Y.storage=ba.persist?r:B,Y.token=ka.token,Y.expires=ka.expires,Y.userId=ka.userId,Y.ssl=ka.ssl,Y.save(),D._oAuthHash=null,G(ka);else{var N=function(){ua?A._pendingDfd=
D.oAuthSignIn(A.resUrl_,la,Aa,A.options_).addCallbacks(G,H):(Z=Error("User is not signed in."),Z.name="identity-manager:not-authenticated",Z.code="IdentityManagerBase.6",Z.log=!!z.isDebug,H(Z))};D._doPortalSignIn(A.resUrl_)?A._pendingDfd=D._getPlatformSelf(la.server,Aa.appId).then(function(na){var za=na.portalUrl;!za||h.hasSameOrigin(za,window.location.origin,!0)?(ka=new F({server:la.server,userId:na.username,token:na.token}),G(ka)):N()}).catch(N):N()}}else if(ua)D._checkProtocol(A.resUrl_,la,H,A.admin_)&&
(ba=A.options_,A.admin_&&(ba=ba||{},ba.isAdmin=!0),A._pendingDfd=D.signIn(A.resUrl_,la,ba).addCallbacks(G,H));else{var Z=Error("User is not signed in.");Z.name="identity-manager:not-authenticated";Z.code="IdentityManagerBase.6";Z.log=!!z.isDebug;H(Z)}},aa=function(){var ba=A.sinfo_,ja=ba.owningSystemUrl,pa=A.options_,Ca;if(pa){var la=pa.token;var ua=pa.error;var Aa=pa.prompt}(Ca=D._findCredential(ja,{token:la,resource:A.resUrl_}))||w.some(D.credentials,function(M){this._isIdProvider(ja,M.server)&&
(Ca=M);return!!Ca},D);Ca?(pa=D.findCredential(A.resUrl_,Ca.userId))?G(pa):t(ba,D._legacyFed)?(pa=Ca.toJson(),pa.server=ba.server,pa.resources=null,G(new F(pa))):(A._pendingDfd=D.generateToken(D.findServerInfo(Ca.server),null,{serverUrl:A.resUrl_,token:Ca.token,ssl:Ca.ssl})).addCallbacks(function(M){G(new F({userId:Ca.userId,server:ba.server,token:M.token,expires:d.isDefined(M.expires)?Number(M.expires):null,ssl:!!M.ssl,isAdmin:A.admin_,validity:M.validity}))},H):(D._busy=null,la&&(A.options_.token=
null),(A._pendingDfd=D.getCredential(ja.replace(/\/?$/,"/sharing"),{resource:A.resUrl_,owningTenant:ba.owningTenant,token:la,error:ua,prompt:Aa})).addCallbacks(function(M){D._enqueue(A.resUrl_,A.sinfo_,A.options_,A,A.admin_)},function(M){H(M)}))};this._errbackFunc=H;var da=A.sinfo_.owningSystemUrl,ha=this._isServerRsrc(A.resUrl_),ia=A.sinfo_._restInfoDfd;ia?ia.addCallbacks(function(ba){var ja=A.sinfo_;ja._restInfoDfd&&(ja.adminTokenServiceUrl=ja._restInfoDfd.adminUrl_,ja._restInfoDfd=null,ja.tokenServiceUrl=
b.getObject("authInfo.tokenServicesUrl",!1,ba)||b.getObject("authInfo.tokenServiceUrl",!1,ba)||b.getObject("tokenServiceUrl",!1,ba),ja.shortLivedTokenValidity=b.getObject("authInfo.shortLivedTokenValidity",!1,ba),ja.currentVersion=ba.currentVersion,ja.owningTenant=ba.owningTenant,(ba=ja.owningSystemUrl=ba.owningSystemUrl)&&D._portals.push(ba));ha&&ja.owningSystemUrl?aa():L()},function(){A.sinfo_._restInfoDfd=null;var ba=Error("Unknown resource - could not find token service endpoint.");ba.name="identity-manager:server-identification-failed";
ba.code="IdentityManagerBase.2";ba.log=!!z.isDebug;H(ba)}):ha&&da?aa():A.sinfo_._selfReq?A.sinfo_._selfReq.selfDfd.then(function(ba){var ja={};if(ba){var pa=ba.user&&ba.user.username;ja.username=pa;ja.allSSL=ba.allSSL;var Ca=ba.supportsOAuth;var la=ba.currentVersion;if("multitenant"===ba.portalMode)var ua=ba.customBaseUrl}A.sinfo_.webTierAuth=!!pa;return pa&&D.normalizeWebTierAuth?D.generateToken(A.sinfo_,null,{ssl:ja.allSSL}).addBoth(function(Aa){ja.portalToken=Aa&&Aa.token;ja.tokenExpiration=Aa&&
Aa.expires;return ja}):!pa&&Ca&&4.4<=parseFloat(la)&&!D._findOAuthInfo(A.resUrl_)?D._generateOAuthInfo({portalUrl:A.sinfo_.server,customBaseUrl:ua,owningTenant:A.sinfo_._selfReq.owningTenant}).always(function(){return ja}):ja}).always(function(ba){A.sinfo_._selfReq=null;ba?L(ba.username,ba.allSSL,ba.portalToken,ba.tokenExpiration):L()}):L()},_generateOAuthInfo:function(A){var D=this,G=A.portalUrl,H=A.customBaseUrl,L=A.owningTenant;if(A=!this.defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal){var aa=
window.location.href;var da=aa.indexOf("?");-1<da&&(aa=aa.slice(0,da));da=aa.search(/\/(apps|home)\//);aa=-1<da?aa.slice(0,da):null}A&&aa?(this._hasTestedIfAppIsOnPortal=!0,A=g({url:aa+"/sharing/rest",content:{f:"json"},handleAs:"json"}).then(function(){D.defaultOAuthInfo=new v({appId:"arcgisonline",popupCallbackUrl:aa+"/home/oauth-callback.html"})})):(A=new p,A.resolve(),A=A.promise);return A.then(function(){if(D.defaultOAuthInfo)return G=G.replace(/^http:/i,"https:"),g({url:G+"/sharing/rest/oauth2/validateRedirectUri",
content:{accountId:L,client_id:D.defaultOAuthInfo.appId,redirect_uri:h.getAbsoluteUrl(D.defaultOAuthInfo.popupCallbackUrl),f:"json"},handleAs:"json",callbackParamName:"callback"}).then(function(ha){if(ha.valid){var ia=D.defaultOAuthInfo.clone();ia.portalUrl=ha.urlKey&&H?"https://"+ha.urlKey.toLowerCase()+"."+H:G;ia.popup=window!==window.top||!(h.hasSameOrigin(G,window.location.origin)||D._gwDomains.some(function(ba){return ba.regex.test(G)&&ba.regex.test(window.location.origin)}));D.oAuthInfos.push(ia)}})})}});
var F=E(k,{declaredClass:"esri.Credential",tokenRefreshBuffer:2,constructor:function(A){b.mixin(this,A);this.resources=this.resources||[];d.isDefined(this.creationTime)||(this.creationTime=(new Date).getTime())},_oAuthCred:null,refreshToken:function(){var A=this,D=this.resources&&this.resources[0],G=c.id.findServerInfo(this.server),H=G&&G.owningSystemUrl,L=!!H&&"server"===this.scope,aa=L&&t(G,c.id._legacyFed),da=L&&c.id.findServerInfo(H),ha,ia=(ha=G.webTierAuth)&&c.id.normalizeWebTierAuth,ba=y[this.server];
ba=ba&&ba[this.userId];var ja={username:this.userId,password:ba};if(!ha||ia)if(L&&!da&&w.some(c.id.serverInfos,function(la){c.id._isIdProvider(H,la.server)&&(da=la);return!!da}),ha=da&&c.id.findCredential(da.server,this.userId),!L||ha)if(aa)ha.refreshToken();else{if(L)var pa={serverUrl:D,token:ha&&ha.token,ssl:ha&&ha.ssl};else if(ia)ja=null,pa={ssl:this.ssl};else if(ba)this.isAdmin&&(pa={isAdmin:!0});else{if(D){D=c.id._sanitizeUrl(D);this._enqueued=1;var Ca=c.id._enqueue(D,G,null,null,this.isAdmin,
this);Ca.addCallback(function(){A._enqueued=0;A.refreshServerTokens()}).addErrback(function(){A._enqueued=0})}return Ca}return c.id.generateToken(L?da:G,L?null:ja,pa).addCallback(function(la){A.token=la.token;A.expires=d.isDefined(la.expires)?Number(la.expires):null;A.creationTime=(new Date).getTime();A.validity=la.validity;A.onTokenChange();A.refreshServerTokens()}).addErrback(function(){})}},refreshServerTokens:function(){"portal"===this.scope&&w.forEach(c.id.credentials,function(A){var D=c.id.findServerInfo(A.server),
G=D&&D.owningSystemUrl;A!==this&&A.userId===this.userId&&G&&"server"===A.scope&&(c.id._hasSameServerInstance(this.server,G)||c.id._isIdProvider(G,this.server))&&(t(D,c.id._legacyFed)?(A.token=this.token,A.expires=this.expires,A.creationTime=this.creationTime,A.validity=this.validity,A.onTokenChange()):A.refreshToken())},this)},onTokenChange:function(A){clearTimeout(this._refreshTimer);var D=this.server&&c.id.findServerInfo(this.server),G=(D=D&&D.owningSystemUrl)&&c.id.findServerInfo(D);!1!==A&&(!D||
"portal"===this.scope||G&&G.webTierAuth&&!c.id.normalizeWebTierAuth)&&(d.isDefined(this.expires)||d.isDefined(this.validity))&&this._startRefreshTimer()},onDestroy:function(){},destroy:function(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null;this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);var A=w.indexOf(c.id.credentials,this);-1<A&&c.id.credentials.splice(A,1);this.onTokenChange();this.onDestroy()},toJson:function(){return this._toJson()},
_toJson:function(){var A=d.fixJson({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),D=this.resources;D&&0<D.length&&(A.resources=D.slice());return A},_startRefreshTimer:function(){clearTimeout(this._refreshTimer);var A=6E4*this.tokenRefreshBuffer,D=Math.pow(2,31)-1,G=(this.validity?this.creationTime+6E4*this.validity:this.expires)-(new Date).getTime();0>G?G=0:G>D&&
(G=D);this._refreshTimer=setTimeout(b.hitch(this,this.refreshToken),G>A?G-A:G)}});C.Credential=F;l("extend-esri")&&(c.IdentityManagerBase=C);return C})},"esri/ServerInfo":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","./kernel","./lang"],function(E,z,b,w,p){E=E(null,{declaredClass:"esri.ServerInfo",constructor:function(n){z.mixin(this,n)},toJson:function(){return p.fixJson({server:this.server,tokenServiceUrl:this.tokenServiceUrl,adminTokenServiceUrl:this.adminTokenServiceUrl,
shortLivedTokenValidity:this.shortLivedTokenValidity,owningSystemUrl:this.owningSystemUrl,owningTenant:this.owningTenant,currentVersion:this.currentVersion,hasPortal:this.hasPortal,hasServer:this.hasServer,webTierAuth:this.webTierAuth})}});b("extend-esri")&&(w.ServerInfo=E);return E})},"esri/OAuthCredential":function(){define(["./kernel","dojo/_base/declare","dojo/has","dojo/json"],function(E,z,b,w){z=z(null,{declaredClass:"esri.OAuthCredential",oAuthInfo:null,storage:null,appId:null,expires:null,
ssl:null,token:null,userId:null,constructor:function(p,n){this.oAuthInfo=p;this.storage=n;this._init()},isValid:function(){var p=!1;if(this.oAuthInfo&&this.token&&this.userId){var n=(new Date).getTime();this.expires>n&&(this.expires-n)/1E3>60*this.oAuthInfo.minTimeUntilExpiration&&(p=!0)}return p},save:function(){if(this.storage){var p=this._load(),n=this.oAuthInfo;if(n&&n.authNamespace&&n.portalUrl){var l=p[n.authNamespace];l||(l=p[n.authNamespace]={});l[n.portalUrl]={appId:this.appId=n.appId,expires:this.expires,
ssl:this.ssl,token:this.token,userId:this.userId};try{this.storage.setItem("esriJSAPIOAuth",w.stringify(p))}catch(q){console.log(q)}}}},destroy:function(){var p=this._load(),n=this.oAuthInfo;if(n&&n.appId&&n.portalUrl&&this.token&&this.expires>Date.now()){var l=n.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",q=new FormData;q.append("f","json");q.append("auth_token",this.token);q.append("client_id",n.appId);q.append("token_type_hint","access_token");if("function"===typeof navigator.sendBeacon)navigator.sendBeacon(l,
q);else{var f=new XMLHttpRequest;f.open("POST",l);f.send(q)}}if(n&&n.authNamespace&&n.portalUrl&&this.storage&&(l=p[n.authNamespace])){delete l[n.portalUrl];try{this.storage.setItem("esriJSAPIOAuth",w.stringify(p))}catch(c){console.log(c)}}n&&(this.oAuthInfo=n._oAuthCred=null)},_init:function(){var p=this._load(),n=this.oAuthInfo;n&&n.authNamespace&&n.portalUrl&&(p=p[n.authNamespace])&&(p=p[n.portalUrl])&&(this.appId=p.appId,this.expires=p.expires,this.ssl=p.ssl,this.token=p.token,this.userId=p.userId)},
_load:function(){var p={};if(this.storage){var n=this.storage.getItem("esriJSAPIOAuth");if(n)try{p=w.parse(n)}catch(l){console.log(l)}}return p}});b("extend-esri")&&(E.OAuthCredential=z);return z})},"esri/arcgis/OAuthInfo":function(){define(["../kernel","../lang","dojo/_base/declare","dojo/_base/lang","dojo/has"],function(E,z,b,w,p){var n=b(null,{declaredClass:"esri.arcgis.OAuthInfo",constructor:function(l){w.mixin(this,{expiration:20160,minTimeUntilExpiration:30,portalUrl:"https://www.arcgis.com",
authNamespace:"/",forceLogin:!1,popup:!1,popupCallbackUrl:"oauth-callback.html",popupWindowFeatures:"height\x3d490,width\x3d800,resizable,scrollbars,status",preserveUrlHash:!1},l)},_oAuthCred:null,toJson:function(){return z.fixJson({appId:this.appId,expiration:this.expiration,locale:this.locale,minTimeUntilExpiration:this.minTimeUntilExpiration,portalUrl:this.portalUrl,authNamespace:this.authNamespace,forceLogin:this.forceLogin,popup:this.popup,popupCallbackUrl:this.popupCallbackUrl,popupWindowFeatures:this.popupWindowFeatures,
preserveUrlHash:this.preserveUrlHash})},clone:function(){return new n(this.toJson())}});p("extend-esri")&&w.setObject("arcgis.OAuthInfo",n,E);return n})},"dijit/form/Form":function(){define("dojo/_base/declare dojo/dom-attr dojo/_base/kernel dojo/sniff ../_Widget ../_TemplatedMixin ./_FormMixin ../layout/_ContentPaneResizeMixin".split(" "),function(E,z,b,w,p,n,l,q){return E("dijit.form.Form",[p,n,l,q],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"\x3cform data-dojo-attach-point\x3d'containerNode' data-dojo-attach-event\x3d'onreset:_onReset,onsubmit:_onSubmit' ${!nameAttrSetting}\x3e\x3c/form\x3e",
postMixInProperties:function(){this.nameAttrSetting=this.name?"name\x3d'"+this.name+"'":"";this.inherited(arguments)},execute:function(){},onExecute:function(){},_setEncTypeAttr:function(f){z.set(this.domNode,"encType",f);w("ie")&&(this.domNode.encoding=f);this._set("encType",f)},reset:function(f){var c={returnValue:!0,preventDefault:function(){this.returnValue=!1},stopPropagation:function(){},currentTarget:f?f.target:this.domNode,target:f?f.target:this.domNode};!1!==this.onReset(c)&&c.returnValue&&
this.inherited(arguments,[])},onReset:function(){return!0},_onReset:function(f){this.reset(f);f.stopPropagation();f.preventDefault();return!1},_onSubmit:function(f){var c=this.constructor.prototype;if(this.execute!=c.execute||this.onExecute!=c.onExecute)b.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0"),this.onExecute(),this.execute(this.getValues());!1===this.onSubmit(f)&&(f.stopPropagation(),f.preventDefault())},onSubmit:function(){return this.isValid()},
submit:function(){!1!==this.onSubmit()&&this.containerNode.submit()}})})},"dijit/form/ValidationTextBox":function(){define("dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/i18n ./TextBox ../Tooltip dojo/text!./templates/ValidationTextBox.html dojo/i18n!./nls/validate".split(" "),function(E,z,b,w,p,n,l){var q=E("dijit.form.ValidationTextBox",p,{templateString:l,required:!1,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},pattern:".*",regExp:"",
regExpGen:function(){},state:"",tooltipPosition:[],_deprecateRegExp:function(f,c){c!=q.prototype[f]&&(z.deprecated("ValidationTextBox id\x3d"+this.id+", set('"+f+"', ...) is deprecated.  Use set('pattern', ...) instead.","","2.0"),this.set("pattern",c))},_setRegExpGenAttr:function(f){this._deprecateRegExp("regExpGen",f);this._set("regExpGen",this._computeRegexp)},_setRegExpAttr:function(f){this._deprecateRegExp("regExp",f)},_setValueAttr:function(){this.inherited(arguments);this._refreshState()},
validator:function(f,c){return(new RegExp("^(?:"+this._computeRegexp(c)+")"+(this.required?"":"?")+"$")).test(f)&&(!this.required||!this._isEmpty(f))&&(this._isEmpty(f)||void 0!==this.parse(f,c))},_isValidSubset:function(){return 0==this.textbox.value.search(this._partialre)},isValid:function(){return this.validator(this.textbox.value,this.get("constraints"))},_isEmpty:function(f){return(this.trim?/^\s*$/:/^$/).test(f)},getErrorMessage:function(){var f="$_unset_$"==this.invalidMessage?this.messages.invalidMessage:
this.invalidMessage?this.invalidMessage:this.promptMessage,c="$_unset_$"==this.missingMessage?this.messages.missingMessage:this.missingMessage?this.missingMessage:f;return this.required&&this._isEmpty(this.textbox.value)?c:f},getPromptMessage:function(){return this.promptMessage},_maskValidSubsetError:!0,validate:function(f){var c="",a=this.disabled||this.isValid(f);a&&(this._maskValidSubsetError=!0);var d=this._isEmpty(this.textbox.value),e=!a&&f&&this._isValidSubset();this._set("state",a?"":((!this._hasBeenBlurred||
f)&&d||e)&&(this._maskValidSubsetError||e&&!this._hasBeenBlurred&&f)?"Incomplete":"Error");this.focusNode.setAttribute("aria-invalid","Error"==this.state?"true":"false");"Error"==this.state?(this._maskValidSubsetError=f&&e,c=this.getErrorMessage(f)):"Incomplete"==this.state?(c=this.getPromptMessage(f),this._maskValidSubsetError=!this._hasBeenBlurred||f):d&&(c=this.getPromptMessage(f));this.set("message",c);return a},displayMessage:function(f){f&&this.focused?n.show(f,this.domNode,this.tooltipPosition,
!this.isLeftToRight()):n.hide(this.domNode)},_refreshState:function(){this._created&&this.validate(this.focused);this.inherited(arguments)},constructor:function(f){this.constraints=b.clone(this.constraints);this.baseClass+=" dijitValidationTextBox"},startup:function(){this.inherited(arguments);this._refreshState()},_setConstraintsAttr:function(f){!f.locale&&this.lang&&(f.locale=this.lang);this._set("constraints",f);this._refreshState()},_setPatternAttr:function(f){this._set("pattern",f);this._refreshState()},
_computeRegexp:function(f){var c=this.pattern;"function"==typeof c&&(c=c.call(this,f));if(c!=this._lastRegExp){var a="";this._lastRegExp=c;".*"!=c&&c.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(d){switch(d.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":a+=d;break;case ")":a+="|$)";break;default:a+="(?:"+d+"|$)"}});try{"".search(a)}catch(d){a=this.pattern,console.warn("RegExp error in "+this.declaredClass+": "+this.pattern)}this._partialre="^(?:"+
a+")$"}return c},postMixInProperties:function(){this.inherited(arguments);this.messages=w.getLocalization("dijit.form","validate",this.lang);this._setConstraintsAttr(this.constraints)},_setDisabledAttr:function(f){this.inherited(arguments);this._refreshState()},_setRequiredAttr:function(f){this._set("required",f);this.focusNode.setAttribute("aria-required",f);this._refreshState()},_setMessageAttr:function(f){this._set("message",f);this.displayMessage(f)},reset:function(){this._maskValidSubsetError=
!0;this.inherited(arguments)},_onBlur:function(){this.displayMessage("");this.inherited(arguments)},destroy:function(){n.hide(this.domNode);this.inherited(arguments)}});return q})},"dijit/form/TextBox":function(){define("dojo/_base/declare dojo/dom-construct dojo/dom-style dojo/_base/kernel dojo/_base/lang dojo/on dojo/sniff ./_FormValueWidget ./_TextBoxMixin dojo/text!./templates/TextBox.html ../main".split(" "),function(E,z,b,w,p,n,l,q,f,c,a){q=E("dijit.form.TextBox"+(l("dojo-bidi")?"_NoBidi":""),
[q,f],{templateString:c,_singleNodeTemplate:'\x3cinput class\x3d"dijit dijitReset dijitLeft dijitInputField" data-dojo-attach-point\x3d"textbox,focusNode" autocomplete\x3d"off" type\x3d"${type}" ${!nameAttrSetting} /\x3e',_buttonInputDisabled:l("ie")?"disabled":"",baseClass:"dijitTextBox",postMixInProperties:function(){var d=this.type.toLowerCase();if(this.templateString&&"input"==this.templateString.toLowerCase()||("hidden"==d||"file"==d)&&this.templateString==this.constructor.prototype.templateString)this.templateString=
this._singleNodeTemplate;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);9>l("ie")&&this.defer(function(){try{var d=b.getComputedStyle(this.domNode);if(d){var e=d.fontFamily;if(e){var h=this.domNode.getElementsByTagName("INPUT");if(h)for(d=0;d<h.length;d++)h[d].style.fontFamily=e}}}catch(m){}})},_setPlaceHolderAttr:function(d){this._set("placeHolder",d);this._phspan||(this._attachPoints.push("_phspan"),this._phspan=z.create("span",{className:"dijitPlaceHolder dijitInputField"},
this.textbox,"after"),this.own(n(this._phspan,"mousedown",function(e){e.preventDefault()}),n(this._phspan,"touchend, pointerup, MSPointerUp",p.hitch(this,function(){this.focus()}))));this._phspan.innerHTML="";this._phspan.appendChild(this._phspan.ownerDocument.createTextNode(d));this._updatePlaceHolder()},_onInput:function(d){this.inherited(arguments);this._updatePlaceHolder()},_updatePlaceHolder:function(){this._phspan&&(this._phspan.style.display=this.placeHolder&&!this.textbox.value?"":"none")},
_setValueAttr:function(d,e,h){this.inherited(arguments);this._updatePlaceHolder()},getDisplayedValue:function(){w.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use get('displayedValue') instead.","","2.0");return this.get("displayedValue")},setDisplayedValue:function(d){w.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",d)},_onBlur:function(d){this.disabled||(this.inherited(arguments),
this._updatePlaceHolder(),l("mozilla")&&this.selectOnClick&&(this.textbox.selectionStart=this.textbox.selectionEnd=void 0))},_onFocus:function(d){this.disabled||this.readOnly||(this.inherited(arguments),this._updatePlaceHolder())}});9>l("ie")&&(q.prototype._isTextSelected=function(){var d=this.ownerDocument.selection.createRange();return d.parentElement()==this.textbox&&0<d.text.length},a._setSelectionRange=f._setSelectionRange=function(d,e,h){d.createTextRange&&(d=d.createTextRange(),d.collapse(!0),
d.moveStart("character",-99999),d.moveStart("character",e),d.moveEnd("character",h-e),d.select())});l("dojo-bidi")&&(q=E("dijit.form.TextBox",q,{_setPlaceHolderAttr:function(d){this.inherited(arguments);this.applyTextDir(this._phspan)}}));return q})},"dijit/form/_FormValueWidget":function(){define(["dojo/_base/declare","dojo/sniff","./_FormWidget","./_FormValueMixin"],function(E,z,b,w){return E("dijit.form._FormValueWidget",[b,w],{_layoutHackIE7:function(){if(7==z("ie"))for(var p=this.domNode,n=p.parentNode,
l=p.firstChild||p,q=l.style.filter,f=this;n&&0==n.clientHeight;)(function(){var c=f.connect(n,"onscroll",function(){f.disconnect(c);l.style.filter=(new Date).getMilliseconds();f.defer(function(){l.style.filter=q})})})(),n=n.parentNode}})})},"dijit/form/_FormValueMixin":function(){define("dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on dojo/sniff ./_FormWidgetMixin".split(" "),function(E,z,b,w,p,n,l){return E("dijit.form._FormValueMixin",l,{readOnly:!1,_setReadOnlyAttr:function(q){n("trident")&&
"disabled"in this?z.set(this.focusNode,"readOnly",q||this.disabled):z.set(this.focusNode,"readOnly",q);this._set("readOnly",q)},postCreate:function(){this.inherited(arguments);void 0===this._resetValue&&(this._lastValueReported=this._resetValue=this.value)},_setValueAttr:function(q,f){this._handleOnChange(q,f)},_handleOnChange:function(q,f){this._set("value",q);this.inherited(arguments)},undo:function(){this._setValueAttr(this._lastValueReported,!1)},reset:function(){this._hasBeenBlurred=!1;this._setValueAttr(this._resetValue,
!0)}})})},"dijit/form/_TextBoxMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom dojo/sniff dojo/keys dojo/_base/lang dojo/on ../main".split(" "),function(E,z,b,w,p,n,l,q){var f=z("dijit.form._TextBoxMixin"+(w("dojo-bidi")?"_NoBidi":""),null,{trim:!1,uppercase:!1,lowercase:!1,propercase:!1,maxLength:"",selectOnClick:!1,placeHolder:"",_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints)},_setValueAttr:function(c,a,d){if(void 0!==c){var e=this.filter(c);
"string"!=typeof d&&(d=null===e||"number"==typeof e&&isNaN(e)?"":this.filter(this.format(e,this.constraints)),0!=this.compare(e,this.filter(this.parse(d,this.constraints)))&&(d=null))}null==d||"number"==typeof d&&isNaN(d)||this.textbox.value==d||(this.textbox.value=d,this._set("displayedValue",this.get("displayedValue")));this.inherited(arguments,[e,a])},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},_setDisplayedValueAttr:function(c){null==c?c="":"string"!=
typeof c&&(c=String(c));this.textbox.value=c;this._setValueAttr(this.get("value"),void 0);this._set("displayedValue",this.get("displayedValue"))},format:function(c){return null==c?"":c.toString?c.toString():c},parse:function(c){return c},_refreshState:function(){},onInput:function(){},_onInput:function(c){this._lastInputEventValue=this.textbox.value;this._processInput(this._lastInputProducingEvent||c);delete this._lastInputProducingEvent;this.intermediateChanges&&this._handleOnChange(this.get("value"),
!1)},_processInput:function(){this._refreshState();this._set("displayedValue",this.get("displayedValue"))},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);this.own(l(this.textbox,"keydown, keypress, paste, cut, compositionend",n.hitch(this,function(c){if("keydown"==c.type&&229!=c.keyCode){var a=c.keyCode;switch(a){case p.SHIFT:case p.ALT:case p.CTRL:case p.META:case p.CAPS_LOCK:case p.NUM_LOCK:case p.SCROLL_LOCK:return}if(!c.ctrlKey&&!c.metaKey&&
!c.altKey){switch(a){case p.NUMPAD_0:case p.NUMPAD_1:case p.NUMPAD_2:case p.NUMPAD_3:case p.NUMPAD_4:case p.NUMPAD_5:case p.NUMPAD_6:case p.NUMPAD_7:case p.NUMPAD_8:case p.NUMPAD_9:case p.NUMPAD_MULTIPLY:case p.NUMPAD_PLUS:case p.NUMPAD_ENTER:case p.NUMPAD_MINUS:case p.NUMPAD_PERIOD:case p.NUMPAD_DIVIDE:return}if(65<=a&&90>=a||48<=a&&57>=a||a==p.SPACE)return;a=!1;for(var d in p)if(p[d]===c.keyCode){a=!0;break}if(!a)return}}(a=32<=c.charCode?String.fromCharCode(c.charCode):c.charCode)||(a=65<=c.keyCode&&
90>=c.keyCode||48<=c.keyCode&&57>=c.keyCode||c.keyCode==p.SPACE?String.fromCharCode(c.keyCode):c.keyCode);a||(a=229);if("keypress"==c.type){if("string"!=typeof a)return;if("a"<=a&&"z">=a||"A"<=a&&"Z">=a||"0"<=a&&"9">=a||" "===a)if(c.ctrlKey||c.metaKey||c.altKey)return}var e={faux:!0},h;for(h in c)/^(layer[XY]|returnValue|keyLocation)$/.test(h)||(d=c[h],"function"!=typeof d&&"undefined"!=typeof d&&(e[h]=d));n.mixin(e,{charOrCode:a,_wasConsumed:!1,preventDefault:function(){e._wasConsumed=!0;c.preventDefault()},
stopPropagation:function(){c.stopPropagation()}});this._lastInputProducingEvent=e;!1===this.onInput(e)&&(e.preventDefault(),e.stopPropagation());if(!e._wasConsumed&&9>=w("ie"))switch(c.keyCode){case p.TAB:case p.ESCAPE:case p.DOWN_ARROW:case p.UP_ARROW:case p.LEFT_ARROW:case p.RIGHT_ARROW:break;default:c.keyCode==p.ENTER&&"textarea"!=this.textbox.tagName.toLowerCase()||this.defer(function(){this.textbox.value!==this._lastInputEventValue&&l.emit(this.textbox,"input",{bubbles:!0})})}})),l(this.textbox,
"input",n.hitch(this,"_onInput")),l(this.domNode,"keypress",function(c){c.stopPropagation()}))},_blankValue:"",filter:function(c){if(null===c)return this._blankValue;if("string"!=typeof c)return c;this.trim&&(c=n.trim(c));this.uppercase&&(c=c.toUpperCase());this.lowercase&&(c=c.toLowerCase());this.propercase&&(c=c.replace(/[^\s]+/g,function(a){return a.substring(0,1).toUpperCase()+a.substring(1)}));return c},_setBlurValue:function(){this._setValueAttr(this.get("value"),!0)},_onBlur:function(c){this.disabled||
(this._setBlurValue(),this.inherited(arguments))},_isTextSelected:function(){return this.textbox.selectionStart!=this.textbox.selectionEnd},_onFocus:function(c){this.disabled||this.readOnly||(this.selectOnClick&&"mouse"==c&&(this._selectOnClickHandle=l.once(this.domNode,"mouseup, touchend",n.hitch(this,function(a){this._isTextSelected()||f.selectInputText(this.textbox)})),this.own(this._selectOnClickHandle),this.defer(function(){this._selectOnClickHandle&&(this._selectOnClickHandle.remove(),this._selectOnClickHandle=
null)},500)),this.inherited(arguments),this._refreshState())},reset:function(){this.textbox.value="";this.inherited(arguments)}});w("dojo-bidi")&&(f=z("dijit.form._TextBoxMixin",f,{_setValueAttr:function(){this.inherited(arguments);this.applyTextDir(this.focusNode)},_setDisplayedValueAttr:function(){this.inherited(arguments);this.applyTextDir(this.focusNode)},_onInput:function(){this.applyTextDir(this.focusNode);this.inherited(arguments)}}));f._setSelectionRange=q._setSelectionRange=function(c,a,
d){c.setSelectionRange&&c.setSelectionRange(a,d)};f.selectInputText=q.selectInputText=function(c,a,d){c=b.byId(c);isNaN(a)&&(a=0);isNaN(d)&&(d=c.value?c.value.length:0);try{c.focus(),f._setSelectionRange(c,a,d)}catch(e){}};return f})},"dijit/Tooltip":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/fx dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/lang dojo/mouse dojo/on dojo/sniff ./_base/manager ./place ./_Widget ./_TemplatedMixin ./BackgroundIframe dojo/text!./templates/Tooltip.html ./main".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x){function v(){}var y=z("dijit._MasterTooltip",[h,m],{duration:d.defaultDuration,templateString:k,postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);this.bgIframe=new g(this.domNode);this.fadeIn=b.fadeIn({node:this.domNode,duration:this.duration,onEnd:q.hitch(this,"_onShow")});this.fadeOut=b.fadeOut({node:this.domNode,duration:this.duration,onEnd:q.hitch(this,"_onHide")})},show:function(t,r,B,C,F,A,D){if(!this.aroundNode||this.aroundNode!==
r||this.containerNode.innerHTML!=t)if("playing"==this.fadeOut.status())this._onDeck=arguments;else{this.containerNode.innerHTML=t;F&&this.set("textDir",F);this.containerNode.align=C?"right":"left";var G=e.around(this.domNode,r,B&&B.length?B:u.defaultPosition,!C,q.hitch(this,"orient")),H=G.aroundNodePos;"M"==G.corner.charAt(0)&&"M"==G.aroundCorner.charAt(0)?(this.connectorNode.style.top=H.y+(H.h-this.connectorNode.offsetHeight>>1)-G.y+"px",this.connectorNode.style.left=""):"M"==G.corner.charAt(1)&&
"M"==G.aroundCorner.charAt(1)?this.connectorNode.style.left=H.x+(H.w-this.connectorNode.offsetWidth>>1)-G.x+"px":(this.connectorNode.style.left="",this.connectorNode.style.top="");l.set(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=!0;this.aroundNode=r;this.onMouseEnter=A||v;this.onMouseLeave=D||v}},orient:function(t,r,B,C,F){this.connectorNode.style.top="";var A=C.h;C=C.w;t.className="dijitTooltip "+{"MR-ML":"dijitTooltipRight","ML-MR":"dijitTooltipLeft","TM-BM":"dijitTooltipAbove",
"BM-TM":"dijitTooltipBelow","BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[r+"-"+B];this.domNode.style.width="auto";var D=n.position(this.domNode);if(a("ie")||a("trident"))D.w+=2;n.setMarginBox(this.domNode,{w:Math.min(Math.max(C,1),D.w)});"B"==B.charAt(0)&&"B"==r.charAt(0)?(t=n.position(t),r=this.connectorNode.offsetHeight,
t.h>A?(this.connectorNode.style.top=A-(F.h+r>>1)+"px",this.connectorNode.style.bottom=""):(this.connectorNode.style.bottom=Math.min(Math.max(F.h/2-r/2,0),t.h-r)+"px",this.connectorNode.style.top="")):(this.connectorNode.style.top="",this.connectorNode.style.bottom="");return Math.max(0,D.w-C)},_onShow:function(){a("ie")&&(this.domNode.style.filter="")},hide:function(t){this._onDeck&&this._onDeck[1]==t?this._onDeck=null:this.aroundNode===t&&(this.fadeIn.stop(),this.isShowingNow=!1,this.aroundNode=
null,this.fadeOut.play());this.onMouseEnter=this.onMouseLeave=v},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";this._onDeck&&(this.show.apply(this,this._onDeck),this._onDeck=null)}});a("dojo-bidi")&&y.extend({_setAutoTextDir:function(t){this.applyTextDir(t);E.forEach(t.children,function(r){this._setAutoTextDir(r)},this)},_setTextDirAttr:function(t){this._set("textDir",t);"auto"==t?this._setAutoTextDir(this.containerNode):this.containerNode.dir=this.textDir}});x.showTooltip=
function(t,r,B,C,F,A,D){B&&(B=E.map(B,function(G){return{after:"after-centered",before:"before-centered"}[G]||G}));u._masterTT||(x._masterTT=u._masterTT=new y);return u._masterTT.show(t,r,B,C,F,A,D)};x.hideTooltip=function(t){return u._masterTT&&u._masterTT.hide(t)};var u=z("dijit.Tooltip",h,{label:"",showDelay:400,hideDelay:400,connectId:[],position:[],selector:"",_setConnectIdAttr:function(t){E.forEach(this._connections||[],function(r){E.forEach(r,function(B){B.remove()})},this);this._connectIds=
E.filter(q.isArrayLike(t)?t:t?[t]:[],function(r){return w.byId(r,this.ownerDocument)},this);this._connections=E.map(this._connectIds,function(r){r=w.byId(r,this.ownerDocument);var B=this.selector,C=B?function(A){return c.selector(B,A)}:function(A){return A},F=this;return[c(r,C(f.enter),function(){F._onHover(this)}),c(r,C("focusin"),function(){F._onHover(this)}),c(r,C(f.leave),q.hitch(F,"_onUnHover")),c(r,C("focusout"),q.hitch(F,"set","state","DORMANT"))]},this);this._set("connectId",t)},addTarget:function(t){t=
t.id||t;-1==E.indexOf(this._connectIds,t)&&this.set("connectId",this._connectIds.concat(t))},removeTarget:function(t){t=E.indexOf(this._connectIds,t.id||t);0<=t&&(this._connectIds.splice(t,1),this.set("connectId",this._connectIds))},buildRendering:function(){this.inherited(arguments);p.add(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var t=this.connectId;E.forEach(q.isArrayLike(t)?t:[t],this.addTarget,this)},getContent:function(t){return this.label||this.domNode.innerHTML},
state:"DORMANT",_setStateAttr:function(t){if(!(this.state==t||"SHOW TIMER"==t&&"SHOWING"==this.state||"HIDE TIMER"==t&&"DORMANT"==this.state)){this._hideTimer&&(this._hideTimer.remove(),delete this._hideTimer);this._showTimer&&(this._showTimer.remove(),delete this._showTimer);switch(t){case "DORMANT":this._connectNode&&(u.hide(this._connectNode),delete this._connectNode,this.onHide());break;case "SHOW TIMER":"SHOWING"!=this.state&&(this._showTimer=this.defer(function(){this.set("state","SHOWING")},
this.showDelay));break;case "SHOWING":var r=this.getContent(this._connectNode);if(!r){this.set("state","DORMANT");return}u.show(r,this._connectNode,this.position,!this.isLeftToRight(),this.textDir,q.hitch(this,"set","state","SHOWING"),q.hitch(this,"set","state","HIDE TIMER"));this.onShow(this._connectNode,this.position);break;case "HIDE TIMER":this._hideTimer=this.defer(function(){this.set("state","DORMANT")},this.hideDelay)}this._set("state",t)}},_onHover:function(t){this._connectNode&&t!=this._connectNode&&
this.set("state","DORMANT");this._connectNode=t;this.set("state","SHOW TIMER")},_onUnHover:function(t){this.set("state","HIDE TIMER")},open:function(t){this.set("state","DORMANT");this._connectNode=t;this.set("state","SHOWING")},close:function(){this.set("state","DORMANT")},onShow:function(){},onHide:function(){},destroy:function(){this.set("state","DORMANT");E.forEach(this._connections||[],function(t){E.forEach(t,function(r){r.remove()})},this);this.inherited(arguments)}});u._MasterTooltip=y;u.show=
x.showTooltip;u.hide=x.hideTooltip;u.defaultPosition=["after-centered","before-centered"];return u})},"esri/OAuthSignInHandler":function(){define("./Credential ./domUtils ./lang ./urlUtils dijit/Dialog dijit/registry dojo/_base/config dojo/_base/Deferred dojo/_base/kernel dojo/dom-attr dojo/i18n!./nls/jsapi dojo/io-query dojo/sniff dojo/json dijit/form/Button dojo/query".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e,h){var m=null,g=null;try{m=window.localStorage,g=window.sessionStorage}catch(k){}return{_oAuthDfd:null,
_oAuthIntervalId:0,_oAuthDialogContent:"\x3cdiv class\x3d'dijitDialogPaneContentArea'\x3e\x3cdiv style\x3d'padding-bottom: 5px; word-wrap: break-word;'\x3e${oAuthInfo}\x3c/div\x3e\x3cdiv style\x3d'margin: 0px; padding: 0px; height: 10px;'\x3e\x3c/div\x3e\x3cdiv class\x3d'esriErrorMsg' style\x3d'display: none; color: white; background-color: #D46464; text-align: center; padding-top: 3px; padding-bottom: 3px;'\x3e${invalidUser}\x3c/div\x3e\x3cdiv style\x3d'margin: 0px; padding: 0px; height: 10px;'\x3e\x3c/div\x3e\x3cdiv class\x3d'dijitDialogPaneActionBar'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' data-dojo-props\x3d'type:\"button\", \"class\":\"esriIdSubmit\"'\x3e${lblOk}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' data-dojo-props\x3d'type:\"button\", \"class\":\"esriIdCancel\"'\x3e${lblCancel}\x3c/button\x3e\x3c/div\x3e",
setOAuthRedirectionHandler:function(k){this._oAuthRedirectFunc=k},oAuthSignIn:function(k,x,v,y){var u=this._oAuthDfd=new q;u.resUrl_=k;u.sinfo_=x;u.oinfo_=v;var t=!y||!1!==y.oAuthPopupConfirmation;if(!v.popup||!t)return this._doOAuthSignIn(k,x,v),u;this._nls||(this._nls=a.identity);this.oAuthDialog||(this.oAuthDialog=this._createOAuthDialog());k=this.oAuthDialog;v=y&&y.error;y=y&&y.token;z.hide(k.errMsg_);v&&403==v.code&&y&&(c.set(k.errMsg_,"innerHTML",this._nls.forbidden),z.show(k.errMsg_));c.set(k.serverLink_,
{title:x.server,innerHTML:-1!==x.server.toLowerCase().indexOf("arcgis.com")?"ArcGIS Online":x.server});k.show();return u},setOAuthResponseHash:function(k){var x=this._oAuthDfd;this._oAuthDfd=null;if(x&&k)if(clearInterval(this._oAuthIntervalId),"#"===k.charAt(0)&&(k=k.substring(1)),k=d.queryToObject(k),k.error){var v="access_denied"===k.error;k=Error(v?"ABORTED":"OAuth: "+k.error+" - "+k.error_description);k.name=v?"identity-manager:user-aborted":"identity-manager:authentication-failed";k.code="IdentityManagerBase."+
(v?2:3);k.log=!!l.isDebug;x.errback(k)}else{v=x.oinfo_._oAuthCred;var y=new E({userId:k.username,server:x.sinfo_.server,token:k.access_token,expires:(new Date).getTime()+1E3*Number(k.expires_in),ssl:"true"===k.ssl,_oAuthCred:v});v.storage=k.persist?m:g;v.token=y.token;v.expires=y.expires;v.userId=y.userId;v.ssl=y.ssl;v.save();x.callback(y)}},_createOAuthDialog:function(){var k=this._nls,x=b.substitute(k,this._oAuthDialogContent);x=b.substitute({server:"\x3cspan class\x3d'serverLink' style\x3d'word-wrap: break-word;'\x3e\x3c/span\x3e"},
x);var v=new p({title:k.title,content:x,"class":"esriOAuthSignInDialog",style:"min-width: 18em;",esriIdMgr_:this,execute_:function(){var y=v.esriIdMgr_._oAuthDfd;v.hide_();v.esriIdMgr_._doOAuthSignIn(y.resUrl_,y.sinfo_,y.oinfo_)},cancel_:function(){var y=v.esriIdMgr_._oAuthDfd;v.esriIdMgr_._oAuthDfd=null;v.hide_();var u=Error("ABORTED");u.code="IdentityManager.2";u.log=!!l.isDebug;y.errback(u)},hide_:function(){z.hide(v.errMsg_);v.hide();p._DialogLevelManager.hide(v)}});k=v.domNode;v.btnSubmit_=n.byNode(f.query(".esriIdSubmit",
k)[0]);v.btnCancel_=n.byNode(f.query(".esriIdCancel",k)[0]);v.serverLink_=f.query(".serverLink",k)[0];v.errMsg_=f.query(".esriErrorMsg",k)[0];v.connect(v.btnSubmit_,"onClick",v.execute_);v.connect(v.btnCancel_,"onClick",v.onCancel);v.connect(v,"onCancel",v.cancel_);return v},_doOAuthSignIn:function(k,x,v){var y=this,u={portalUrl:v.portalUrl};!v.popup&&v.preserveUrlHash&&window.location.hash&&(u.hash=window.location.hash);u={client_id:v.appId,response_type:"token",state:h.stringify(u),expiration:v.expiration,
locale:v.locale,redirect_uri:v.popup?w.getAbsoluteUrl(v.popupCallbackUrl):window.location.href.replace(/#.*$/,"")};v.forceLogin&&(u.force_login=!0);!v.popup&&this._doPortalSignIn(k)&&(u.redirectToUserOrgUrl=!0);var t=v.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",r=t+"?"+d.objectToQuery(u);if(v.popup){if(7===e("ie")){var B=window.open(v.popupCallbackUrl,"esriJSAPIOAuth",v.popupWindowFeatures);B.location=r}else B=window.open(r,"esriJSAPIOAuth",v.popupWindowFeatures);B?(B.focus(),
this._oAuthDfd.oAuthWin_=B,this._oAuthIntervalId=setInterval(function(){if(B.closed){clearInterval(y._oAuthIntervalId);var C=y._oAuthDfd;if(C){var F=Error("ABORTED");F.code="IdentityManager.2";F.log=!!l.isDebug;C.errback(F)}}},500)):(k=Error("ABORTED"),k.name="identity-manager:user-aborted",k.code="IdentityManager.2",k.log=!!l.isDebug,this._oAuthDfd.errback(k))}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:u,authorizeUrl:t,resourceUrl:k,serverInfo:x,
oAuthInfo:v}):window.location=r}}})},"esri/layers/graphics":function(){define(["./GraphicsLayer","../graphic","../renderer"],function(){return{}})},"esri/layers/agstiled":function(){define(["./agscommon","./ArcGISTiledMapServiceLayer"],function(){return{}})},"esri/layers/agscommon":function(){define("./ArcGISMapServiceLayer ./LayerInfo ./TimeInfo ./LayerTimeOptions ./TimeReference ./Field ./Domain ./RangeDomain ./CodedValueDomain ./InheritedDomain ./LayerSource ./LayerMapSource ./LayerDataSource ./DataSource ./TableDataSource ./QueryDataSource ./JoinDataSource ./RasterDataSource ./DynamicLayerInfo ./LayerDrawingOptions ../geometry ../utils".split(" "),
function(){return{}})},"esri/layers/InheritedDomain":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","./Domain"],function(E,z,b,w,p){E=E([p],{declaredClass:"esri.layers.InheritedDomain"});b("extend-esri")&&z.setObject("layers.InheritedDomain",E,w);return E})},"esri/layers/LayerSource":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(E,z,b,w){E=E(null,{declaredClass:"esri.layers.LayerSource",type:null,constructor:function(p){p&&
z.mixin(this,p)},toJson:function(){}});b("extend-esri")&&z.setObject("layers.LayerSource",E,w);return E})},"esri/layers/LayerMapSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./LayerSource".split(" "),function(E,z,b,w,p,n){E=E(n,{declaredClass:"esri.layers.LayerMapSource",type:"mapLayer",toJson:function(){return p.fixJson({type:"mapLayer",mapLayerId:this.mapLayerId,gdbVersion:this.gdbVersion})}});b("extend-esri")&&z.setObject("layers.LayerMapSource",E,w);
return E})},"esri/layers/LayerDataSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./LayerSource ./TableDataSource ./QueryDataSource ./JoinDataSource ./RasterDataSource".split(" "),function(E,z,b,w,p,n,l,q,f,c){E=E(n,{declaredClass:"esri.layers.LayerDataSource",type:"dataLayer",constructor:function(a){if(a&&a.dataSource){switch(a.dataSource.type){case "table":a=new l(a.dataSource);break;case "queryTable":a=new q(a.dataSource);break;case "joinTable":a=new f(a.dataSource);
break;case "raster":a=new c(a.dataSource);break;default:a=a.dataSource}this.dataSource=a}},toJson:function(){var a={type:"dataLayer",dataSource:this.dataSource&&this.dataSource.toJson()};return p.fixJson(a)}});b("extend-esri")&&z.setObject("layers.LayerDataSource",E,w);return E})},"esri/layers/TableDataSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./DataSource".split(" "),function(E,z,b,w,p,n){E=E(n,{declaredClass:"esri.layers.TableDataSource",toJson:function(){return p.fixJson({type:"table",
workspaceId:this.workspaceId,dataSourceName:this.dataSourceName,gdbVersion:this.gdbVersion})}});b("extend-esri")&&z.setObject("layers.TableDataSource",E,w);return E})},"esri/layers/DataSource":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(E,z,b,w){E=E(null,{declaredClass:"esri.layers.DataSource",constructor:function(p){p&&z.mixin(this,p)},toJson:function(){}});b("extend-esri")&&z.setObject("layers.DataSource",E,w);return E})},"esri/layers/QueryDataSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./DataSource ../SpatialReference".split(" "),
function(E,z,b,w,p,n,l){E=E(n,{declaredClass:"esri.layers.QueryDataSource",constructor:function(q){q&&(q.oidFields&&z.isString(q.oidFields)&&(this.oidFields=q.oidFields.split(",")),q.spatialReference&&(this.spatialReference=new l(q.spatialReference)))},toJson:function(){var q={type:"queryTable",workspaceId:this.workspaceId,query:this.query,oidFields:this.oidFields&&this.oidFields.join(),spatialReference:this.spatialReference&&this.spatialReference.toJson()};if(this.geometryType){var f="point"===this.geometryType.toLowerCase()?
"esriGeometryPoint":"multipoint"===this.geometryType.toLowerCase()?"esriGeometryMultipoint":"polyline"===this.geometryType.toLowerCase()?"esriGeometryPolyline":"polygon"===this.geometryType.toLowerCase()?"esriGeometryPolygon":this.geometryType;q.geometryType=f}return p.fixJson(q)}});b("extend-esri")&&z.setObject("layers.QueryDataSource",E,w);return E})},"esri/layers/JoinDataSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./DataSource ./LayerMapSource ./TableDataSource ./QueryDataSource ./RasterDataSource".split(" "),
function(E,z,b,w,p,n,l,q,f,c){var a=E(n,{declaredClass:"esri.layers.JoinDataSource",constructor:function(d){d&&(d.leftTableSource&&(this.leftTableSource=this._createLayerSource(d.leftTableSource)),d.rightTableSource&&(this.rightTableSource=this._createLayerSource(d.rightTableSource)))},_createLayerSource:function(d){if("mapLayer"===d.type)var e=new l(d);else{e={type:"dataLayer"};switch(d.dataSource.type){case "table":var h=new q(d.dataSource);break;case "queryTable":h=new f(d.dataSource);break;case "joinTable":h=
new a(d.dataSource);break;case "raster":h=new c(d.dataSource);break;default:h=d.dataSource}e.dataSource=h;e.toJson=function(){var m={type:"dataLayer",dataSource:h.toJson()};return p.fixJson(m)}}return e},toJson:function(){var d={type:"joinTable",leftTableSource:this.leftTableSource&&this.leftTableSource.toJson(),rightTableSource:this.rightTableSource&&this.rightTableSource.toJson(),leftTableKey:this.leftTableKey,rightTableKey:this.rightTableKey};var e="left-outer-join"===this.joinType.toLowerCase()?
"esriLeftOuterJoin":"left-inner-join"===this.joinType.toLowerCase()?"esriLeftInnerJoin":this.joinType;d.joinType=e;return p.fixJson(d)}});b("extend-esri")&&z.setObject("layers.JoinDataSource",a,w);return a})},"esri/layers/RasterDataSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./DataSource".split(" "),function(E,z,b,w,p,n){E=E(n,{declaredClass:"esri.layers.RasterDataSource",toJson:function(){return p.fixJson({type:"raster",workspaceId:this.workspaceId,dataSourceName:this.dataSourceName})}});
b("extend-esri")&&z.setObject("layers.RasterDataSource",E,w);return E})},"esri/layers/DynamicLayerInfo":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./LayerInfo ./LayerMapSource ./LayerDataSource".split(" "),function(E,z,b,w,p,n,l,q){E=E(n,{declaredClass:"esri.layers.DynamicLayerInfo",defaultVisibility:!0,parentLayerId:-1,maxScale:0,minScale:0,constructor:function(f){f&&(f.source?f="mapLayer"===f.source.type?new l(f.source):new q(f.source):(f=new l,f.mapLayerId=
this.id),this.source=f)},toJson:function(){var f=this.inherited(arguments);f.source=this.source&&this.source.toJson();return p.fixJson(f)}});b("extend-esri")&&z.setObject("layers.DynamicLayerInfo",E,w);return E})},"esri/layers/LayerDrawingOptions":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ../renderers/jsonUtils ./LabelClass".split(" "),function(E,z,b,w,p,n,l,q){E=E(null,{declaredClass:"esri.layers.LayerDrawingOptions",constructor:function(f){if(f&&
(z.mixin(this,f),f.renderer&&(this.renderer=l.fromJson(f.renderer)),f.labelingInfo&&0<f.labelingInfo.length)){this.labelingInfo=[];var c;b.forEach(f.labelingInfo,function(a){c=new q(a);this.labelingInfo.push(c)},this)}},toJson:function(){var f={renderer:this.renderer&&this.renderer.toJson(),transparency:this.transparency,scaleSymbols:this.scaleSymbols,showLabels:this.showLabels};this.labelingInfo&&0<this.labelingInfo.length&&(f.labelingInfo=[],b.forEach(this.labelingInfo,function(c){f.labelingInfo.push(c.toJson())}));
return n.fixJson(f)}});w("extend-esri")&&z.setObject("layers.LayerDrawingOptions",E,p);return E})},"esri/layers/LabelClass":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ../lang ../symbols/TextSymbol ../symbols/ShieldLabelSymbol".split(" "),function(E,z,b,w,p,n,l,q){var f=/__begin__/ig,c=/__end__/ig,a=/^__begin__/i,d=/__end__$/i;E=E(null,{declaredClass:"esri.layers.LabelClass",labelPlacement:null,labelExpression:null,format:null,fieldInfos:null,useCodedValues:null,
symbol:null,maxScale:0,minScale:0,where:null,sizeInfo:null,_labelPlacementLookup:{"above-center":"esriServerPointLabelPlacementAboveCenter","above-left":"esriServerPointLabelPlacementAboveLeft","above-right":"esriServerPointLabelPlacementAboveRight","below-center":"esriServerPointLabelPlacementBelowCenter","below-left":"esriServerPointLabelPlacementBelowLeft","below-right":"esriServerPointLabelPlacementBelowRight","center-center":"esriServerPointLabelPlacementCenterCenter","center-left":"esriServerPointLabelPlacementCenterLeft",
"center-right":"esriServerPointLabelPlacementCenterRight","above-after":"esriServerLinePlacementAboveAfter","above-along":"esriServerLinePlacementAboveAlong","above-before":"esriServerLinePlacementAboveBefore","above-start":"esriServerLinePlacementAboveStart","above-end":"esriServerLinePlacementAboveEnd","below-after":"esriServerLinePlacementBelowAfter","below-along":"esriServerLinePlacementBelowAlong","below-before":"esriServerLinePlacementBelowBefore","below-start":"esriServerLinePlacementBelowStart",
"below-end":"esriServerLinePlacementBelowEnd","center-after":"esriServerLinePlacementCenterAfter","center-along":"esriServerLinePlacementCenterAlong","center-before":"esriServerLinePlacementCenterBefore","center-start":"esriServerLinePlacementCenterStart","center-end":"esriServerLinePlacementCenterEnd","always-horizontal":"esriServerPolygonPlacementAlwaysHorizontal"},constructor:function(e){e&&(z.mixin(this,e),this._labelPlacementLookup.hasOwnProperty(this.labelPlacement)||(this.labelPlacement=n.valueOf(this._labelPlacementLookup,
e.labelPlacement)),e.format&&(this.format=e.format),e.fieldInfos&&(this.fieldInfos=e.fieldInfos),e.symbol&&(this.symbol="esriSHD"===e.symbol.type?new q(e.symbol):new l(e.symbol)),e=this.sizeInfo)&&(e.minSize&&(e.minSize=w.pt2px(e.minSize)),e.maxSize&&(e.maxSize=w.pt2px(e.maxSize)))},getSymbol:function(){return this.symbol},toJson:function(){var e=this.sizeInfo;e&&(e=z.mixin({},e),e.minSize&&(e.minSize=w.px2pt(e.minSize)),e.maxSize&&(e.maxSize=w.px2pt(e.maxSize)));var h=n.fixJson(this.labelExpressionInfo&&
z.clone(this.labelExpressionInfo));this._processLabelExpressionInfo(h);e={name:this.name,labelExpression:this.labelExpression,labelExpressionInfo:h,format:this.format||void 0,fieldInfos:this.fieldInfos||void 0,useCodedValues:this.useCodedValues,maxScale:this.maxScale,minScale:this.minScale,where:this.where,sizeInfo:e||void 0,labelPlacement:this._labelPlacementLookup.hasOwnProperty(this.labelPlacement)?this._labelPlacementLookup[this.labelPlacement]:this.labelPlacement,symbol:this.symbol&&this.symbol.toJson()};
return n.fixJson(e)},_processLabelExpressionInfo:function(e){e&&e.value&&(e.expression=this._convertTemplatedStringToArcade(e.value))},_convertTemplatedStringToArcade:function(e){if(e){var h=z.replace(e,function(m,g){return'__begin__$feature["'+g+'"]__end__'});h=a.test(h)?h.replace(a,""):'"'+h;h=d.test(h)?h.replace(d,""):h+'"';h=h.replace(f,'" + ').replace(c,' + "')}return h}});b("extend-esri")&&z.setObject("layers.LabelClass",E,p);return E})},"esri/symbols/ShieldLabelSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang ../urlUtils ./MarkerSymbol ./Font".split(" "),
function(E,z,b,w,p,n,l,q,f){var c={url:"",width:12,height:12,angle:0,xoffset:0,yoffset:0};E=E(q,{declaredClass:"esri.symbol.ShieldLabelSymbol",type:"shieldlabelsymbol",color:[255,255,255,1],width:32,height:32,font:w.defaultFont,constructor:function(a,d,e,h,m){a?z.isString(a)?(this.url=a,d&&(this.color=d),e&&(this.width=e),h&&(this.height=h),void 0!==m&&(this.font=m)):(this.width=w.pt2px(a.width),this.height=w.pt2px(a.height),d=a.imageData,9>b("ie")||!d||(e=this.url,this.url="data:"+(a.contentType||
"image")+";base64,"+d,this.imageData=e)):z.mixin(this,c)},getStroke:function(){return null},getFill:function(){return this.color},setWidth:function(a){this.width=a;return this},setHeight:function(a){this.height=a;return this},setUrl:function(a){a!==this.url&&(delete this.imageData,delete this.contentType);this.url=a;return this},setFont:function(a){this.font=a;return this},setText:function(a){this.text=a;return this},getWidth:function(){return this.width},getHeight:function(){return this.height},
getShapeDescriptors:function(){return{defaultShape:{type:"image",x:-Math.round(this.width/2),y:-Math.round(this.height/2),width:this.width,height:this.height,src:this.url||""},fill:null,stroke:null}},toJson:function(){var a=this.url,d=this.imageData;if(0===a.indexOf("data:")){var e=a;a=d;d=e.indexOf(";base64,")+8;d=e.substr(d)}a=l.getAbsoluteUrl(a);e=w.px2pt(this.width);e=isNaN(e)?void 0:e;var h=w.px2pt(this.height);h=isNaN(h)?void 0:h;a=n.fixJson(z.mixin(this.inherited("toJson",arguments),{type:"esriSHD",
url:a,imageData:d,contentType:this.contentType,width:e,height:h}));this.font?(d=new f(this.font),a.font=d.toJson()):a.font=null;delete a.size;a.imageData||delete a.imageData;return a}});E.defaultProps=c;b("extend-esri")&&(z.setObject("symbol.ShieldLabelSymbol",E,p),p.symbol.defaultShieldLabelSymbol=c);return E})},"esri/layers/agsdynamic":function(){define(["./agscommon","./ArcGISDynamicMapServiceLayer","../_time"],function(){return{}})},"esri/layers/ArcGISDynamicMapServiceLayer":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/json dojo/sniff dojo/io-query ../kernel ../config ../lang ../request ../urlUtils ../layerUtils ../geometry/scaleUtils ./DynamicMapServiceLayer ./ArcGISMapServiceLayer ./TimeInfo ./LayerTimeOptions ./ImageParameters ./DynamicLayerInfo ./LayerMapSource".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y){E=E([h,m],{declaredClass:"esri.layers.ArcGISDynamicMapServiceLayer",_eventMap:{"visible-layers-change":["visibleLayers"]},constructor:function(u,t,r){u=t&&t.imageParameters;var B=z.hitch;if(u){var C=u.layerDefinitions;C&&this.setLayerDefinitions(C);u.layerOption===x.LAYER_OPTION_SHOW&&(this.visibleLayers=[].concat(u.layerIds),this.onVisibleLayersChange(this.visibleLayers))}this._setIsPNG32=B(this,this._setIsPNG32);this.dpi=u&&u.dpi||96;this.imageFormat=
u&&u.format||"png8";this.imageTransparency=u&&!1===u.transparent?!1:!0;this._setIsPNG32();this.gdbVersion=t&&t.gdbVersion;this._params.gdbVersion=this.gdbVersion;C=u&&u.layerDefinitions;z.mixin(this._params,this._url.query,{dpi:this.dpi,transparent:this.imageTransparency,format:this.imageFormat},u?u.toJson():{});C&&(this._params.layerDefs=C);this.getImageUrl=B(this,this.getImageUrl);this._initLayer=B(this,this._initLayer);this._load=B(this,this._load);this.useMapImage=t?t.useMapImage:!1;this._loadCallback=
t&&t.loadCallback;(t=t&&t.resourceInfo)?this._initLayer(t):(void 0===r||!1===r)&&this._load();this.registerConnectEvents()},disableClientCaching:!1,layerDefinitions:null,_initLayer:function(u,t){this.inherited(arguments);u.timeInfo&&(this.timeInfo=new g(u.timeInfo));this.loaded=!0;this.onLoad(this);var r=this._loadCallback;r&&(delete this._loadCallback,r(this))},getImageUrl:function(u,t,r,B){var C=this._url.path+"/export",F=this._params,A=F.token=this._getToken(),D=u.spatialReference.wkid||w.toJson(u.spatialReference.toJson()),
G=this._errorHandler;delete F._ts;z.mixin(F,{bbox:u.xmin+","+u.ymin+","+u.xmax+","+u.ymax,bboxSR:D,imageSR:D,size:t+","+r},this.disableClientCaching?{_ts:(new Date).getTime()}:{});F.layerDefs&&(u=d._serializeLayerDefinitions(F.layerDefs,10.5<=this.version),F=z.mixin({},F),delete F.layerDefs,F.layerDefs=u);u=a.addProxy(a.normalize(C)+"?"+n.objectToQuery(z.mixin({},F,{f:"image"})));u.length>q.defaults.io.postLength||this.useMapImage?this._jsonRequest=c({url:C,content:z.mixin(F,{f:"json"}),callbackParamName:"callback",
load:function(H){H.imageData?H="data:"+(H.contentType||"image")+";base64,"+H.imageData:(H=H.href,A&&(H+=-1===H.indexOf("?")?"?token\x3d"+A:"\x26token\x3d"+A),H=a.addProxy(H));B(H)},error:G}):B(u)},_setIsPNG32:function(){var u=this.imageFormat.toLowerCase(),t=p("ie");this.isPNG32=t&&6===t&&("png32"===u||"png24"===u)&&this.imageTransparency},_setTime:function(u){var t=this.timeInfo;u=this._params.time=u?u.toJson().join(","):null;if(10.02>this.version&&t)if(u)this._params.layerTimeOptions=d._serializeTimeOptions(this.layerTimeOptions);
else{var r=this.layerInfos;if(r){var B=this.layerTimeOptions,C=B?B.slice(0):[],F=[];b.forEach(r,function(A){A.subLayerIds||F.push(A.id)});F.length&&(b.forEach(F,function(A){if(!C[A]){var D=new k;D.useTime=!1;C[A]=D}}),this._params.layerTimeOptions=d._serializeTimeOptions(C,F))}}10.02<=this.version&&t&&!u&&!t.hasLiveData&&(this._params.time="null,null")},setDPI:function(u,t){this.dpi=this._params.dpi=u;t||this.refresh(!0)},setImageFormat:function(u,t){this.imageFormat=this._params.format=u;this._setIsPNG32();
t||this.refresh(!0)},setImageTransparency:function(u,t){this.imageTransparency=this._params.transparent=u;this._setIsPNG32();t||this.refresh(!0)},setVisibleLayers:function(u,t){this.visibleLayers=u;this._params.layers=x.LAYER_OPTION_SHOW+":"+(u.length?u.join():"-1");this._updateDynamicLayers();t||this.refresh(!0);this.onVisibleLayersChange(this.visibleLayers)},onVisibleLayersChange:function(){},setDefaultVisibleLayers:function(u){this.visibleLayers=this._defaultVisibleLayers;this._params.layers=null;
this._updateDynamicLayers();u||this.refresh(!0);this.onVisibleLayersChange(this.visibleLayers)},setLayerDefinitions:function(u,t){this.layerDefinitions=u;this._params.layerDefs=u;this._updateDynamicLayers();t||this.refresh(!0)},setDefaultLayerDefinitions:function(u){this.layerDefinitions=this._params.layerDefs=null;this._updateDynamicLayers();u||this.refresh(!0)},setDisableClientCaching:function(u){this.disableClientCaching=u},setLayerTimeOptions:function(u,t){this.layerTimeOptions=u;this._params.layerTimeOptions=
d._serializeTimeOptions(u);this._updateDynamicLayers();t||this.refresh(!0)},refresh:function(u){if(!0===u)this.inherited(arguments);else{var t=this.disableClientCaching;this.disableClientCaching=!0;this.inherited(arguments);this.disableClientCaching=t}},setLayerDrawingOptions:function(u,t){this.layerDrawingOptions=u;this._updateDynamicLayers();t||this.refresh(!0)},setDynamicLayerInfos:function(u,t){u&&0<u.length?(this.dynamicLayerInfos=u,this.visibleLayers=d._getDefaultVisibleLayers(u),this.onVisibleLayersChange(this.visibleLayers)):
this.dynamicLayerInfos=this.layerDrawingOptions=null;this._updateDynamicLayers();t||this.refresh(!0)},createDynamicLayerInfosFromLayerInfos:function(){var u=[],t;b.forEach(this.layerInfos,function(r){t=new v(r.toJson());t.source=new y({mapLayerId:r.id});u.push(t)});return u},_onDynamicLayersChange:function(){},_updateDynamicLayers:function(){if(this.dynamicLayerInfos&&0<this.dynamicLayerInfos.length||this.layerDrawingOptions&&0<this.layerDrawingOptions.length){this.dynamicLayerInfos&&0!==this.dynamicLayerInfos.length||
(this.dynamicLayerInfos=this.createDynamicLayerInfosFromLayerInfos());var u=this._map&&e.getScale(this._map);u=this._getDynLayerObjs(u);u=w.toJson(u);this._params.dynamicLayers&&this._params.dynamicLayers.length===u.length&&this._params.dynamicLayers===u||(this._params.dynamicLayers=u,this._onDynamicLayersChange(this._params.dynamicLayers))}else this._params.dynamicLayers?(this._params.dynamicLayers=null,this._onDynamicLayersChange(null)):this._params.dynamicLayers=null},_getDynLayerObjs:function(u){var t=
this.dynamicLayerInfos,r=[],B=this.visibleLayers,C=u?d._getLayersForScale(u,t):B;b.forEach(t,function(F){if(!F.subLayerIds){var A=F.id;if(-1!==b.indexOf(B,A)&&-1!==b.indexOf(C,A)){var D={id:A,name:F.name};D.source=F.source&&F.source.toJson();var G;this.layerDefinitions&&this.layerDefinitions[A]&&(G=this.layerDefinitions[A]);G&&(D.definitionExpression=G);var H;this.layerDrawingOptions&&this.layerDrawingOptions[A]&&(H=this.layerDrawingOptions[A]);H&&(G=H.toJson(),this._fixMarkerColor(G.renderer),D.drawingInfo=
G);var L;this.layerTimeOptions&&this.layerTimeOptions[A]&&(L=this.layerTimeOptions[A]);L&&(D.layerTimeOptions=L.toJson());D.minScale=F.minScale||0;D.maxScale=F.maxScale||0;r.push(D)}}},this);return r},_fixMarkerColor:function(u){b.forEach(this._getAllSimpleMarkerSymbols(u),function(t){if(!t.color){var r=[0,0,0,0],B=t.outline&&t.outline.color;"esriSMSX"!==t.style&&"esriSMSCross"!==t.style||!B||(r=B.slice(0));t.color=r}})},_getAllSimpleMarkerSymbols:function(u){return b.filter(this._getAllSymbols(u),
function(t){return"esriSMS"===t.type})},_getAllSymbols:function(u){var t=[];u&&(t.push(u.symbol),t.push(u.defaultSymbol),b.forEach(u.uniqueValueInfos||u.classBreakInfos,function(r){t.push(r.symbol)}),t=b.filter(t,f.isDefined));return t},_onExtentChangeHandler:function(u,t,r){r&&this._updateDynamicLayers();this.inherited(arguments)},_setMap:function(u,t,r){this._map=u;this._updateDynamicLayers();return this.inherited(arguments)},onGDBVersionChange:function(){},setGDBVersion:function(u,t){this.gdbVersion=
u;this._params.gdbVersion=u;this.onGDBVersionChange();t||this.refresh(!0)},exportMapImage:function(u,t){var r=z.hitch(this,function(){var B=q.defaults.map,C=u&&u.layerDefinitions;u=u?u.toJson(this.normalization):{};C&&(u.layerDefs=C);u=z.mixin({size:B.width+","+B.height},this._params,u,{f:"json"});delete u._ts;u.layerDefs&&(B=d._serializeLayerDefinitions(u.layerDefs,10.5<=this.version),delete u.layerDefs,u.layerDefs=B);this._exportMapImage(this._url.path+"/export",u,t)});if(this.loaded)r();else this.on("load",
r)}});p("extend-esri")&&z.setObject("layers.ArcGISDynamicMapServiceLayer",E,l);return E})},"esri/layers/DynamicMapServiceLayer":function(){define("dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/dom-construct dojo/dom-style dojox/gfx/matrix ../kernel ../config ../sniff ../request ../domUtils ./layer ./MapImage".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e){var h=q.defaults.map.zoomDuration;E=E(d,{declaredClass:"esri.layers.DynamicMapServiceLayer",_eventMap:{"map-image-export":["mapImage"]},
constructor:function(m,g){this.useMapTime=g&&g.hasOwnProperty("useMapTime")?!!g.useMapTime:!0;this.extentProcessor=g&&g.extentProcessor;m=b.hitch;this._exportMapImageHandler=m(this,this._exportMapImageHandler);this._imgSrcFunc=m(this,this._imgSrcFunc);this._divAlphaImageFunc=m(this,this._divAlphaImageFunc);this._tileLoadHandler=m(this,this._tileLoadHandler);this._tileErrorHandler=m(this,this._tileErrorHandler);this.registerConnectEvents()},opacity:1,isPNG32:!1,_setMap:function(m,g,k){this.inherited(arguments);
this._map=m;var x=this._div=w.create("div",null,g),v=l._css.names,y={position:"absolute",width:m.width+"px",height:m.height+"px",overflow:"visible",opacity:this.opacity},u=f("ie"),t=z.connect,r=m.__visibleDelta;8===u&&delete y.opacity;"css-transforms"===m.navigationMode?(this._isChildLayer||(y[v.transform]=l._css.translate(r.x,r.y),p.set(x,y)),this._left=r.x,this._top=r.y):(y.left="0px",y.top="0px",p.set(x,y),this._left=this._top=0);p.set(x,y);this._onResizeHandler_connect=t(m,"onResize",this,"_onResizeHandler");
this._opacityChangeHandler_connect=t(this,"onOpacityChange",this,"_opacityChangeHandler");this._img_loading=null;this._dragOrigin={x:0,y:0};this.evaluateSuspension();if(this.suspended&&!m.loaded)var B=z.connect(m,"onLoad",this,function(){z.disconnect(B);B=null;this.evaluateSuspension()});this.extentProcessor&&(this._panEndEvalHandle=z.connect(m,"onPanEnd",this,this.evaluateSuspension),this._zoomEndEvalHandle=z.connect(m,"onZoomEnd",this,this.evaluateSuspension));return x},_unsetMap:function(m,g){this._img&&
this._clearEventListeners(this._img);this._img_loading&&this._clearEventListeners(this._img_loading);w.destroy(this._div);this._map=this._div=this._img=this._img_loading=null;var k=z.disconnect;k(this._onResizeHandler_connect);k(this._opacityChangeHandler_connect);k(this._panEndEvalHandle);k(this._zoomEndEvalHandle);this._panEndEvalHandle=this._zoomEndEvalHandle=this._onResizeHandler_connect=this._opacityChangeHandler_connect=null;this._fireUpdateEnd();this._toggleTime();clearTimeout(this._wakeTimer);
this._wakeTimer=null;this._disableDrawConnectors();this.inherited(arguments)},_onResizeHandler:function(m,g,k){p.set(this._div,{width:g+"px",height:k+"px"});this._onExtentChangeHandler(m)},onSuspend:function(){this.inherited(arguments);this._fireUpdateEnd();this._toggleTime();a.hide(this._div);clearTimeout(this._wakeTimer);this._wakeTimer=null;this._disableDrawConnectors()},onResume:function(){this.inherited(arguments);var m=this._map;this._toggleTime();"css-transforms"===m.navigationMode&&(m=m.__visibleDelta,
this._left=m.x,this._top=m.y,this._isChildLayer||p.set(this._div,l._css.names.transform,l._css.translate(this._left,this._top)));this._enableDrawConnectors();this._wakeTimer=this._wakeTimer||setTimeout(b.hitch(this,function(){this.suspended||this._onExtentChangeHandler(this._map.extent,null,!0)}),0)},canResume:function(){var m=this.inherited(arguments);if(m){var g=this._map.extent;this.extentProcessor&&g&&(m=!!this.extentProcessor({layer:this,extent:g,width:this._map.width}).extent)}return m},_enableDrawConnectors:function(){var m=
z.connect,g=this._map;g&&(this._onPanHandler_connect=m(g,"onPan",this,"_onPanHandler"),this._onExtentChangeHandler_connect=m(g,"onExtentChange",this,"_onExtentChangeHandler"),"css-transforms"===g.navigationMode?this._onScaleHandler_connect=m(g,"onScale",this,this._onScaleHandler):this._onZoomHandler_connect=m(g,"onZoom",this,"_onZoomHandler"))},_disableDrawConnectors:function(){var m=z.disconnect;m(this._onPanHandler_connect);m(this._onExtentChangeHandler_connect);m(this._onZoomHandler_connect);m(this._onScaleHandler_connect);
this._onPanHandler_connect=this._onExtentChangeHandler_connect=this._onZoomHandler_connect=this._onScaleHandler_connect=null},_toggleTime:function(){var m=this._map;this.timeInfo&&this.useMapTime&&m&&!this.suspended?(this._timeConnect||(this._timeConnect=z.connect(m,"onTimeExtentChange",this,this._onTimeExtentChangeHandler)),this._setTime(m.timeExtent)):(z.disconnect(this._timeConnect),this._timeConnect=null,this._setTime(null))},_setTime:function(m){this._params&&(this._params.time=m?m.toJson().join(","):
null)},_onPanHandler:function(m,g){this._panDx=g.x;this._panDy=g.y;m=this._dragOrigin;var k=this._map.__visibleDelta,x=this._img;x&&("css-transforms"===this._map.navigationMode?(this._left=k.x+g.x,this._top=k.y+g.y,this._isChildLayer||p.set(this._div,l._css.names.transform,l._css.translate(this._left,this._top))):p.set(x,{left:m.x+g.x+"px",top:m.y+g.y+"px"}))},_onExtentChangeHandler:function(m,g,k){if(!this.suspended){clearTimeout(this._wakeTimer);this._wakeTimer=null;var x=this._map,v=this._img,
y=v&&v.style,u=this._dragOrigin;!g||k||!v||g.x===this._panDx&&g.y===this._panDy||("css-transforms"===x.navigationMode?(g=x.__visibleDelta,this._left=g.x,this._top=g.y,this._isChildLayer||p.set(this._div,l._css.names.transform,l._css.translate(this._left,this._top))):p.set(v,{left:u.x+g.x+"px",top:u.y+g.y+"px"}));v?(u.x=parseInt(y.left,10),u.y=parseInt(y.top,10)):u.x=u.y=0;"css-transforms"===x.navigationMode&&k&&v&&(p.set(v,l._css.names.transition,"none"),v._multiply=v._multiply?n.multiply(v._matrix,
v._multiply):v._matrix);this._fireUpdateStart();if(k=this._img_loading)if(this._clearEventListeners(k),w.destroy(k),this._img_loading=null,k=this._jsonRequest){try{k.cancel()}catch(D){}this._jsonRequest=null}var t=x.width;k=x.height;g=t;var r=0;10<=this.version&&x.wrapAround180&&(m=m._normalize(!0));this.extentProcessor&&(r=this.extentProcessor({layer:this,extent:m,width:g}),m=r.extent,g=r.width,r=r.marginLeft||0);if(this.isPNG32)v=this._img_loading=w.create("div"),v.id=x.id+"_"+this.id+"_"+(new Date).getTime(),
p.set(v,{position:"absolute",left:"0px",top:"0px",width:g+"px",height:k+"px"}),x=v.appendChild(w.create("div")),p.set(x,{opacity:0,width:g+"px",height:k+"px"}),this.getImageUrl(m,g,k,this._divAlphaImageFunc),v=null;else{var B=this._img_loading=w.create("img"),C=l._css.names,F=f("ie"),A={position:"absolute",width:g+"px",height:k+"px"};B.setAttribute("decoding","sync");8===F&&(A.opacity=this.opacity);null!=r&&0!==r&&(A.marginLeft=r+"px");"css-transforms"===x.navigationMode?(A[C.transform]=l._css.translate(-this._left,
-this._top),B._tdx=-this._left,B._tdy=-this._top,A[C.transition]=C.transformName+" "+h+"ms ease",this.extentProcessor&&(A[C.origin]=t/2-r+"px "+k/2+"px")):(A.left="0px",A.top="0px");B.id=x.id+"_"+this.id+"_"+(new Date).getTime();p.set(B,A);B._onload_connect=z.connect(B,"onload",this,"_onLoadHandler");B._onerror_connect=z.connect(B,"onerror",this,"_onErrorHandler");B._onabort_connect=z.connect(B,"onabort",this,"_onErrorHandler");this._startRect={left:u.x,top:u.y,width:v?parseInt(y.width,10):g,height:v?
parseInt(y.height,10):k,marginLeft:v?parseInt(y.marginLeft||"0",10):r,zoom:y&&y.zoom?parseFloat(y.zoom):1};this.getImageUrl(m,g,k,this._imgSrcFunc);B=null}}},_onTimeExtentChangeHandler:function(m){this.suspended||(this._setTime(m),this.refresh(!0))},getImageUrl:function(m,g,k,x){},_imgSrcFunc:function(m){this._img_loading.src=m},_divAlphaImageFunc:function(m){p.set(this._img_loading,"filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d'"+m+"', sizingMethod\x3d'scale')");this._onLoadHandler({currentTarget:this._img_loading})},
_onLoadHandler:function(m){m=m.currentTarget;var g=this._map;this._clearEventListeners(m);!g||g.__panning||g.__zooming?w.destroy(m):(this._img&&this._div.removeChild(this._img),this._img=m,g=m.style,this._startRect={left:0,top:0,width:parseInt(g.width,10),height:parseInt(g.height,10),marginLeft:parseInt(g.marginLeft||"0",10),zoom:1},this._div.appendChild(m),this.suspended||a.show(this._div),this._img_loading=null,m=this._dragOrigin,m.x=m.y=0,this.onUpdate());this._fireUpdateEnd()},_onErrorHandler:function(m){m=
m.currentTarget;p.set(m,"visibility","hidden");this._clearEventListeners(m);m=Error("Unable to load image: "+m.src);this.onError(m);this._fireUpdateEnd(m)},_clearEventListeners:function(m){z.disconnect(m._onload_connect);z.disconnect(m._onerror_connect);z.disconnect(m._onabort_connect);m._onload_connect=m._onerror_connect=m._onabort_connect=null},setUseMapTime:function(m,g){this.useMapTime=m;this._toggleTime();g||this.refresh(!0)},refresh:function(){this._map&&this._onExtentChangeHandler(this._map.extent)},
_onScaleHandler:function(m,g){var k={},x=l._css.names,v=this._img;if(v){p.set(v,x.transition,g?"none":x.transformName+" "+h+"ms ease");v._matrix=m;m=v._multiply?n.multiply(m,v._multiply):m;if(v._tdx||v._tdy)m=n.multiply(m,{xx:1,xy:0,yx:0,yy:1,dx:v._tdx,dy:v._tdy});k[x.transform]=l._css.matrix(m);p.set(v,k)}},_onZoomHandler:function(m,g,k){m=this._startRect;var x=m.width*g,v=m.height*g,y=m.marginLeft*g,u=this._img,t=f("ie");u&&(t&&8>t?p.set(u,{left:m.left-(x-m.width)*(k.x-m.left)/m.width+"px",top:m.top-
(v-m.height)*(k.y-m.top)/m.height+"px",zoom:g*m.zoom}):p.set(u,{left:m.left-(x-m.width)*(k.x-m.left)/m.width+"px",top:m.top-(v-m.height)*(k.y-m.top)/m.height+"px",width:x+"px",height:v+"px"}),null!=y&&0!==y&&p.set(u,{marginLeft:y+"px"}))},_exportMapImage:function(m,g,k){var x=this._exportMapImageHandler;g.token=this._getToken();c({url:m,content:g,callbackParamName:"callback",load:function(v,y){x(v,y,k)},error:q.defaults.io.errorHandler})},_exportMapImageHandler:function(m,g,k){m=new e(m);this.onMapImageExport(m);
k&&k(m)},onMapImageExport:function(){},setOpacity:function(m){if(this.opacity!=m)this.onOpacityChange(this.opacity=m)},onOpacityChange:function(){},_opacityChangeHandler:function(m){var g=8===f("ie")?this._img:this._div;p.set(g,"opacity",m)}});f("extend-esri")&&b.setObject("layers.DynamicMapServiceLayer",E,l);return E})},"esri/layers/MapImage":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-style dojo/has ../kernel ../domUtils ../geometry/Extent".split(" "),function(E,z,b,w,p,n,l){E=
E(null,{declaredClass:"esri.layers.MapImage",constructor:function(q){z.mixin(this,q);this.extent=new l(this.extent)},visible:!0,opacity:1,getLayer:function(){return this._layer},getNode:function(){return this._node},show:function(){if(!this.visible){this.visible=!0;var q=this._node,f=this._layer,c;if(q){if(c=f&&f._div)f.suspended||f._setPos(q,c._left,c._top),(f._active||c).appendChild(q);n.show(q)}}},hide:function(){if(this.visible){this.visible=!1;var q=this._node;q&&(n.hide(q),q.parentNode&&q.parentNode.removeChild(q))}},
setOpacity:function(q){var f=this._node;this.opacity=q;f&&b.set(f,"opacity",q)}});w("extend-esri")&&z.setObject("layers.MapImage",E,p);return E})},"esri/layers/ImageParameters":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/json dojo/has ../kernel ../lang ../layerUtils".split(" "),function(E,z,b,w,p,n,l,q){z=z(null,{declaredClass:"esri.layers.ImageParameters",constructor:function(){this.layerDefinitions=[]},bbox:null,extent:null,width:null,height:null,dpi:null,
format:null,imageSpatialReference:null,layerOption:null,layerIds:null,transparent:null,timeExtent:null,layerTimeOptions:null,toJson:function(f){this.bbox&&E.deprecated(this.declaredClass+" : Property 'bbox' deprecated. Use property 'extent'.");var c=this.bbox||this.extent;c=c&&f&&c._normalize(!0);f=this.layerOption;var a=c?c.spatialReference.wkid||w.toJson(c.spatialReference.toJson()):null,d=this.imageSpatialReference;c={dpi:this.dpi,format:this.format,transparent:this.transparent,size:null!==this.width&&
null!==this.height?this.width+","+this.height:null,bbox:c?c.xmin+","+c.ymin+","+c.xmax+","+c.ymax:null,bboxSR:a,layers:f?f+":"+this.layerIds.join(","):null,imageSR:d?d.wkid||w.toJson(d.toJson()):a};c.layerDefs=q._serializeLayerDefinitions(this.layerDefinitions);f=this.timeExtent;c.time=f?f.toJson().join(","):null;c.layerTimeOptions=q._serializeTimeOptions(this.layerTimeOptions);return l.filter(c,function(e){if(null!==e)return!0})}});b.mixin(z,{LAYER_OPTION_SHOW:"show",LAYER_OPTION_HIDE:"hide",LAYER_OPTION_INCLUDE:"include",
LAYER_OPTION_EXCLUDE:"exclude"});p("extend-esri")&&b.setObject("layers.ImageParameters",z,n);return z})},"esri/_time":function(){define(["./TimeExtent"],function(){return{}})},"esri/layers/FeatureLayer":function(){define("require module dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/_base/json dojo/_base/Deferred dojo/date/locale dojo/io-query dojo/dom-construct dojo/i18n dojo/when dojo/global dojo/promise/all ../sniff ../kernel ../lang ../request ../config ../deferredUtils ../promiseList ../SpatialReference ../urlUtils ../symbols/SimpleMarkerSymbol ../symbols/SimpleLineSymbol ../symbols/SimpleFillSymbol ../symbols/jsonUtils ../renderers/SimpleRenderer ../renderers/UniqueValueRenderer ../renderers/jsonUtils ../support/expressionUtils ../arcadeProfiles/labelingProfile ../tasks/QueryTask ../tasks/query ../tasks/FeatureSet ../tasks/StatisticDefinition ../geometry/Extent ../geometry/jsonUtils ../geometry/normalizeUtils ../geometry/scaleUtils ./GraphicsLayer ./Field ./TimeInfo ./TimeReference ./FeatureType ./FeatureTemplate ./FeatureSubtype ./FeatureEditResult ./LabelClass ./support/domainUtils ./SnapshotMode ./OnDemandMode ./SelectionMode ./StreamMode ./GridLayout ./TrackManager ./HeatmapManager ./clustering/ClusterManager dojo/i18n!../nls/jsapi dojo/has!extend-esri?./agscommon".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y,u,t,r,B,C,F,A,D,G,H,L,aa,da,ha,ia,ba,ja,pa,Ca,la,ua,Aa,M,Y,ka,N,Z,na,za,va,S,U,ma,ra,sa,V,W,oa,ta,Ba){var Ra=y.defaults,Va=!!g("esri-pbf"),Za=!!g("esri-featurelayer-pbf"),Qa=b(Aa,{declaredClass:"esri.layers.FeatureLayer",invalidParams:"query contains one or more unsupported parameters",reSQLCurrentTimestamp:/current_timestamp|current_date|current_time/i,reHostedFS:/(https?:)?\/\/services.*\.arcgis\.com/i,maxPointCountForAuto:4E3,maxRecordCountForAuto:2E3,
maxVertexCountForAuto:25E4,generalizeForScale:4E3,_eventMap:{"add-attachment-complete":["result"],"before-apply-edits":["adds","updates","deletes"],"delete-attachments-complete":["results"],"edits-complete":["adds","updates","deletes"],"query-attachment-infos-complete":["results"],"query-count-complete":["count"],"query-features-complete":["featureSet"],"query-ids-complete":["objectIds"],"query-related-features-complete":["featureSets"],"selection-complete":["features","method"],"update-end":["error",
"info"]},constructor:function(J,Q){this._preventInit||this._initFeatureLayer(J,Q)},_initFeatureLayer:function(J,Q){Q=Q||{};this._tileWidth=Q.tileWidth||512;this._tileHeight=Q.tileHeight||512;this.i18n=Ba;this._featureReduction=this._featureReduction||Q.featureReduction;this._featureReductionEnabled=null!=Q.featureReductionEnabled?Q.featureReductionEnabled:!0;this._featureUpdatesCheckEnabled=null!=Q.featureUpdatesCheckEnabled?Q.featureUpdatesCheckEnabled:!0;this.showLabels=null!=Q.showLabels?Q.showLabels:
!0;this._outFields=Q.outFields;this._defnExpr=Q.definitionExpression;this._loadCallback=Q.loadCallback;this._trackIdField=Q.trackIdField;this.objectIdField=Q.objectIdField;var ea=null!=Q.resolution,K=null!=Q.maxAllowableOffset;this._maxOffset=this._optMaxOffset=ea||K?ea?Q.resolution:Q.maxAllowableOffset:this.maxAllowableOffset;this.quantize=null!=Q.quantize?Q.quantize:!0;this._optEditable=Q.editable;this._optAutoGen=Q.autoGeneralize;this.editSummaryCallback=Q.editSummaryCallback;this.userId=Q.userId;
this.userIsAdmin=Q.userIsAdmin;this.useMapTime=Q.hasOwnProperty("useMapTime")?!!Q.useMapTime:!0;this.source=Q.source;this.gdbVersion=Q.gdbVersion;this.orderByFields=Q.orderByFields;this.maxPointCountForAuto=null!=Q.maxPointCountForAuto?Q.maxPointCountForAuto:this.maxPointCountForAuto;this.maxRecordCountForAuto=null!=Q.maxRecordCountForAuto?Q.maxRecordCountForAuto:this.maxRecordCountForAuto;this.maxVertexCountForAuto=null!=Q.maxVertexCountForAuto?Q.maxVertexCountForAuto:this.maxVertexCountForAuto;
this.generalizeForScale=null!=Q.generalizeForScale?Q.generalizeForScale:this.generalizeForScale;this.queryPagination=this._optQueryPagination=null!=Q.queryPagination?Q.queryPagination:!0;this.multipatchOption=Q.multipatchOption;this.subtypeSublayerInfo=Q.subtypeSublayerInfo;this._selectedFeatures={};this._newFeatures=[];this._deletedFeatures={};this._ulid=this._getUniqueId();ea=x.isDefined(Q.mode)?Q.mode:Qa.MODE_ONDEMAND;this._isStream&&(ea=Qa.MODE_STREAM);this.mode=ea;switch(ea){case Qa.MODE_SNAPSHOT:this.currentMode=
Qa.MODE_SNAPSHOT;this._mode=new U(this);break;case Qa.MODE_ONDEMAND:case Qa.MODE_AUTO:this.currentMode=Qa.MODE_ONDEMAND;this._mode=new ma(this);this.latticeTiling=Q.latticeTiling;break;case Qa.MODE_SELECTION:this.currentMode=Qa.MODE_SELECTION;this._mode=new ra(this);this._isSelOnly=!0;break;case Qa.MODE_STREAM:this.currentMode=Qa.MODE_STREAM,this._mode=new sa(this),this._isStream=!0}this._initLayer=p.hitch(this,this._initLayer);this._selectHandler=p.hitch(this,this._selectHandler);this._editable=
!1;if(p.isObject(J)&&J.layerDefinition)return this._collection=!0,this.mode=this._isStream?Qa.MODE_STREAM:Qa.MODE_SNAPSHOT,this._isStream||this._outFields||(this._outFields=["*"]),this._initLayer(J),this;this.source&&(J={source:this.source.toJson()},this._url.query=p.mixin(this._url.query,{layer:l.toJson(J)}));this.gdbVersion&&(this._url.query=p.mixin(this._url.query,{gdbVersion:this.gdbVersion}));this._task=new ha(this.url,{source:this.source,gdbVersion:this.gdbVersion});J=this._url.path;this._fserver=
!1;-1!==J.search(/\/FeatureServer\//i)&&(this._fserver=!0);this._checkFeatureLimit();(Q=Q.resourceInfo)?this._initLayer(Q):v({url:J,content:p.mixin({f:"json"},this._url.query),callbackParamName:"callback",load:this._initLayer,error:this._errorHandler});this.registerConnectEvents()},_initLayer:function(J,Q){if(J||Q){this._json=J;Q=this.subtypeSublayerInfo;this._findCredential();if(this.credential&&this.credential.ssl||J&&J._ssl)this._useSSL(),this._task._useSSL();this._collection&&(this._isStream||
(this.currentMode=Qa.MODE_SNAPSHOT,this._mode=new U(this)),this._featureSet=J.featureSet,this._nextId=J.nextObjectId,J=J.layerDefinition);this.version=J.currentVersion;this.version||(this.version="capabilities"in J||"drawingInfo"in J||"hasAttachments"in J||"htmlPopupType"in J||"relationships"in J||"timeInfo"in J||"typeIdField"in J||"types"in J?10:9.3);this.geometryType=J.geometryType;J.bandCount&&J.fields&&1<J.fields.length&&(this.geometryType="esriGeometryPolygon",this._isImageService=!0);"string"!==
typeof this.multipatchOption&&"esriGeometryMultiPatch"===this.geometryType&&(this.multipatchOption="xyFootprint");if(J.hasOwnProperty("capabilities")){var ea=this.capabilities=J.capabilities;ea&&-1!==ea.toLowerCase().indexOf("editing")?this._editable=!0:this._editable=!1}else this._collection||(this._editable=this._fserver);x.isDefined(this._optEditable)?(this._editable=this._optEditable,delete this._optEditable):"esriGeometryMultiPatch"===this.geometryType&&(this._editable=!1);this._isImageService&&
(this._editable=!1);this._json=l.toJson(this._json);this.isEditable()?this._setMaxOffset(null):this._canAutoGeneralize()&&(this._autoGeneralize=x.isDefined(this._optAutoGen)?this._optAutoGen:this.mode===Qa.MODE_ONDEMAND||this.mode===Qa.MODE_AUTO,delete this._optAutoGen);ea=J.effectiveMinScale||J.minScale;var K=J.effectiveMaxScale||J.maxScale;!this._hasMin&&ea&&this.setMinScale(ea);!this._hasMax&&K&&this.setMaxScale(K);this.layerId=J.id;this.name=Q&&Q.title||J.name;this.description=J.description;this.copyright=
J.copyrightText;this.type=J.type;this.displayField=J.displayField;this.defaultDefinitionExpression=J.definitionExpression||(J.isView?J.viewDefinitionQuery:J.definitionQuery);this.fullExtent=new pa(J.extent);this.initialExtent=new pa(this.fullExtent.toJson());this.fullExtent.spatialReference&&(this.spatialReference=new r(this.fullExtent.spatialReference.toJson()));this.defaultVisibility=J.defaultVisibility;this.editingInfo=J.editingInfo;this.supportsLastEditDate=!(!this.editingInfo||null==this.editingInfo.lastEditDate);
if("esriGeometryPoint"===this.geometryType||"esriGeometryMultipoint"===this.geometryType)this.latticeTiling=!1;this.hasM=J.hasM||!1;this.hasZ=J.hasZ||!1;this.indexedFields=J.indexedFields;this.indexes=J.indexes;this.maxRecordCount=J.maxRecordCount;this.canModifyLayer=J.canModifyLayer;this.supportsStatistics=J.supportsStatistics;this.supportsAdvancedQueries=this._collection?!1:J.supportsAdvancedQueries;this.supportsCalculate=J.supportsCalculate;this.supportsASyncCalculate=J.supportsASyncCalculate;
this.supportsAttachmentsByUploadId=J.supportsAttachmentsByUploadId;this.supportsCoordinatesQuantization=J.supportsCoordinatesQuantization;this.supportsQuantizationEditMode=J.supportsQuantizationEditMode;this.supportsFieldDescription=J.supportsFieldDescriptionProperty;this.supportsFormatPBF=J.supportedQueryFormats?-1!==n.map(J.supportedQueryFormats.toLowerCase().split(","),p.trim).indexOf("pbf"):!1;this.quantize=this.quantize&&this.supportsCoordinatesQuantization;this.hasLabels=J.hasLabels;this.canScaleSymbols=
J.canScaleSymbols;this.supportsRollbackOnFailureParameter=this.supportsRollbackOnFailure=J.supportsRollbackOnFailure;this.syncCanReturnChanges=J.syncCanReturnChanges;this.isDataVersioned=J.isDataVersioned;this.editFieldsInfo=J.editFieldsInfo;this.ownershipBasedAccessControlForFeatures=J.ownershipBasedAccessControlForFeatures;this.editFieldsInfo&&this.ownershipBasedAccessControlForFeatures&&(this.creatorField=this.editFieldsInfo.creatorField);this.relationships=J.relationships;this.allowGeometryUpdates=
x.isDefined(J.allowGeometryUpdates)?J.allowGeometryUpdates:!0;this.allowUpdateWithoutMValues=!!J.allowUpdateWithoutMValues;this.enableZDefaults=!!J.enableZDefaults;this.zDefault=x.isDefined(J.zDefault)?J.zDefault:null;this.advancedQueryCapabilities=J.advancedQueryCapabilities||{supportsStatistics:this.supportsStatistics,supportsOrderBy:this.supportsAdvancedQueries,supportsDistinct:this.supportsAdvancedQueries};this.geometryProperties=J.hasGeometryProperties&&J.geometryProperties||null;this.url&&(this.advancedQueryCapabilities.supportsPagination=
this.advancedQueryCapabilities.supportsPagination&&(this.reHostedFS.test(this.url)||10.3<this.version));this.queryPagination=this._optQueryPagination&&this.advancedQueryCapabilities.supportsPagination;this.useStandardizedQueries=J.useStandardizedQueries;this.tileMaxRecordCount=J.tileMaxRecordCount;this.standardMaxRecordCount=J.standardMaxRecordCount;if(ea=J.dateFieldsTimeReference)this.dateFieldsTimeReference=new ka(ea);this._setMaxOffset(this._maxOffset,!0);this._isTable="Table"===this.type;K=J.fields;
this._createFields(K);if(!this.objectIdField){this.objectIdField=J.objectIdField;if(!this.objectIdField)for(K=J.fields,ea=0;ea<K.length;ea++){var T=K[ea];if("esriFieldTypeOID"===T.type){this.objectIdField=T.name;break}}this.objectIdField||this._isStream||console.debug("esri.layers.FeatureLayer: "+x.substitute({url:this.url},"objectIdField is not set [url: ${url}]"))}if(!x.isDefined(this._nextId)){K=this.objectIdField;T=-1;if(this._collection&&K){var fa=(ea=this._featureSet)&&ea.features,qa=fa?fa.length:
0;for(ea=0;ea<qa;ea++){var ya=(ya=fa[ea].attributes)&&ya[K];ya>T&&(T=ya)}}this._nextId=T+1}this.globalIdField=J.globalIdField;if(ea=this.typeIdField=J.typeIdField)if(ea=!this._getField(ea)&&this._getField(ea,!0))this.typeIdField=ea.name;this.visibilityField=J.visibilityField;if(K=J.defaultSymbol)this.defaultSymbol=D.fromJson(K);var Fa=this.types=[],Ea=J.types;T=(ea=this.editFieldsInfo)&&ea.creatorField;fa=ea&&ea.editorField;ya=T||fa;qa=[];if(Ea)for(ea=0;ea<Ea.length;ea++){var Ta=new N(Ea[ea]);var Pa=
Ta.templates;ya&&Pa&&Pa.length&&(qa=qa.concat(Pa));Fa.push(Ta)}Ea=J.templates;Ta=this.templates=[];if(Ea)for(ea=0;ea<Ea.length;ea++)Fa=new Z(Ea[ea]),ya&&qa.push(Fa),Ta.push(Fa);for(ea=0;ea<qa.length;ea++)if(ya=p.getObject("prototype.attributes",!1,qa[ea]))T&&delete ya[T],fa&&delete ya[fa];if(ea=J.subtypeField)this.subtypeField=(ea=this.getField(ea))?ea.name:null;this.defaultSubtypeCode=J.defaultSubtypeCode;this.subtypes=n.map(J.subtypes,function(db){return new na(db)});this._applySTSublayerInfo(Q);
if(Q=J.timeInfo)this.timeInfo=new Y(Q),this._startTimeField=Q.startTimeField,this._endTimeField=Q.endTimeField,this._startTimeField&&this._endTimeField&&(this._twoTimeFields=!0),this._trackIdField?Q.trackIdField=this._trackIdField:this._trackIdField=Q.trackIdField;this.hasAttachments=!this._collection&&J.hasAttachments?!0:!1;this.htmlPopupType=J.htmlPopupType;Q=J.drawingInfo;(ea=Q&&Q.labelingInfo)&&!this.labelingInfo&&(this.labelingInfo=n.map(ea,function(db){return new va(db)}),this._fixLabelExpr());
if(!this.renderer)if(Q&&Q.renderer){var Ka=Q.renderer;this.setRenderer(L.fromJson(Ka,{geometryType:this.geometryType}));"classBreaks"===Ka.type&&this.renderer.setMaxInclusive(!0);if(!this._collection){var Xa=Ka.type;ea=[];Ka=this.renderer;switch(Xa){case "simple":ea.push(Ka.symbol);break;case "uniqueValue":case "classBreaks":ea.push(Ka.defaultSymbol),ea=ea.concat(n.map(Ka.infos,function(db){return db.symbol}))}ea=n.filter(ea,x.isDefined);var gb=this._url.path+"/images/",bb=this._getToken();n.forEach(ea,
function(db){var lb=db.url;lb&&(-1===lb.search(/https?:/)&&-1===lb.indexOf("data:")&&(db.url=gb+lb),bb&&-1!==db.url.search(/https?:/)&&(db.url+="?token\x3d"+bb))})}}else if(K)Ea=this.types,0<Ea.length?(Ka=new H(this.defaultSymbol,this.typeIdField),n.forEach(Ea,function(db){Ka.addValue(db.id,db.symbol)})):Ka=new G(this.defaultSymbol),this.setRenderer(Ka);else if(!this._isTable){switch(this.geometryType){case "esriGeometryPoint":case "esriGeometryMultipoint":Xa=new C;break;case "esriGeometryPolyline":Xa=
new F;break;case "esriGeometryPolygon":Xa=new A;break;default:this.hasXYFootprint()&&(Xa=new A)}this.setRenderer(Xa?new G(Xa):null)}Xa=Q&&Q.transparency||0;!this.hasOwnProperty("opacity")&&0<Xa&&(this.opacity=1-Xa/100);(g("ie")||7<=g("trident")||g("safari"))&&this.isEditable()&&10.02>this.version&&(this._ts=!0);this.statistics=J.statistics;this._fixRendererFields();this._updateRequiredFieldsFromLabelingInfo();this._checkFields();this._updateCaps();var hb=function(){null==this._maxOffset||this._isFractionalOffsetAllowed()||
this._setMaxOffset(this._maxOffset);this.loaded=!0;this.setFeatureReduction(this.getFeatureReduction());this.currentMode!==Qa.MODE_SNAPSHOT&&(this.queryPagination=!1);this.onLoad(this);var db=this._loadCallback;db&&(delete this._loadCallback,db(this))};J=[];this._collection?(Xa=this._featureSet,this._featureSet=null,this._mode._drawFeatures(new ba(Xa)),this._fcAdded=!0):(J.push(this._forceIdentity()),this._limitPromise&&J.push(this._limitPromise));J.push(this._evalArcadeSupport());J.length?t(J).then(p.hitch(this,
function(){hb.call(this)})):hb.call(this)}},_applySTSublayerInfo:function(J){J&&this.subtypeField&&(this.subtypeCode=J.subtypeCode,this._applySTSublayerDefinitionExpression(J),this._filterSubtypes(J),this._applySTTemplates(J),this._applySTFieldOverrides(J))},_applySTSublayerDefinitionExpression:function(J){var Q=[],ea=this.getDefinitionExpression();ea&&Q.push(ea);(J=J.layerDefinition&&J.layerDefinition.definitionExpression)&&Q.push(J);1<Q.length&&(Q=n.map(Q,function(K){return"("+K+")"}));this.setDefinitionExpression(Q.length?
Q.join(" AND "):null)},_applySTTemplates:function(J){if(J=J.layerDefinition&&J.layerDefinition.templates)this.templates=n.map(J,function(Q){return new Z(Q)})},_filterSubtypes:function(){this.subtypes&&(this.subtypes=n.filter(this.subtypes,function(J){return J.code===this.subtypeCode},this))},_applySTFieldOverrides:function(J){var Q=J.layerDefinition&&J.layerDefinition.fieldOverrides;if(Q){this.fields=n.filter(this.fields,function(K){return n.some(Q,function(T){return T.name===K.name})});var ea=this.getSubtypeByCode(this.subtypeCode).domains;
this.fields.forEach(function(K){var T=n.filter(Q,function(fa){return fa.name===K.name})[0];T.alias&&(K.alias=T.alias);if(!1===T.editable||K.name===this.subtypeField)K.editable=!1;ea&&(T=ea[K.name])&&"inherited"!==T.type&&(K.domain=S.fromJson(T.toJson()))},this)}},setShowLabels:function(J){var Q=this.showLabels;this.showLabels=J;Q!==this.showLabels&&(this._evalSurfaceType(),this.onShowLabelsChange())},onShowLabelsChange:function(){},onRendererChange:function(J){this.inherited(arguments);var Q=this._map;
this._ager=!!(J&&J.observationAger&&J.observationRenderer);J&&"colors"in J&&"blurRadius"in J&&"maxPixelIntensity"in J?(this._evalSurfaceType(!0),"esriGeometryPoint"==this.geometryType&&!this._heatmapManager&&Q&&(this._heatmapManager=new oa(this),this._heatmapManager.initialize(Q))):this.renderer&&this.renderer.getRendererInfo?n.some(this.renderer.rendererInfos,function(T){return T.renderer&&"colors"in T.renderer&&"blurRadius"in T.renderer})||(this._heatmapManager=null):this._heatmapManager=null;this.timeInfo&&
Q&&(J&&(J.latestObservationRenderer||J.trackRenderer)?this._trackManager||(this._trackManager=new W(this),this._trackManager.initialize(Q),this._childLayer=this._trackManager.container,this._mode._applyTimeFilter()):this._trackManager&&!this._isStream&&(this._trackManager.destroy(),this._trackManager=null));if(J){var ea=[];Q=n.filter([J,J.observationRenderer,J.latestObservationRenderer,J.trackRenderer],x.isDefined);var K=function(T){return null!=T&&"function"!=typeof T&&T};n.forEach(Q,function(T){var fa=
K(T.attributeField),qa=K(T.attributeField2);T=K(T.attributeField3);!1!==fa&&ea.push(fa);!1!==qa&&ea.push(qa);!1!==T&&ea.push(T)});this._requiredFields=ea}else this._requiredFields=[];this.loaded&&(this._fixRendererFields(),this._checkFields(this._requiredFields),this._collection&&(this._typesDirty=!0))},setFeatureReduction:function(J){J&&(J=p.mixin({},J),null!=J.clusterSize&&null==J.clusterRadius&&(J.clusterRadius=J.clusterSize),delete J.clusterSize);this.loaded?this._isFeatureReductionSupported(J)?
this._featureReduction=J:(this._featureReduction=null,J&&console.log("Clustering is not supported for this layer: "+this.url)):this._featureReduction=J;this._evalFeatureReduction(this._featureReduction)},hasFeatureReduction:function(){return!!this._featureReduction},getFeatureReduction:function(){var J=this._featureReduction;if(J){J=p.mixin({},J);var Q=this._clusterManager;if(Q=Q&&Q.aggregationInfo)J.clusterRadius=Q.clusterRadius,J.infoTemplate=Q.infoTemplate}return J},isFeatureReductionActive:function(){var J=
this._clusterManager;return!!(J&&J.isClusteringEnabled()&&J.isClusteringActive())},isFeatureReductionEnabled:function(){return this._featureReductionEnabled},enableFeatureReduction:function(){this._featureReductionEnabled||(this._featureReductionEnabled=!0,this._evalFeatureReduction(this._featureReduction))},disableFeatureReduction:function(){this._featureReductionEnabled&&(this._featureReductionEnabled=!1,this._evalFeatureReduction(this._featureReduction))},isFeatureReductionApplied:function(){return this.hasFeatureReduction()&&
this.isFeatureReductionEnabled()&&this._canCluster(this.getFeatureReduction())},getAggregateGraphics:function(){return this._clusterManager?this._clusterManager.getAggregateGraphics():[]},getChildGraphics:function(J){return this._clusterManager?this._clusterManager.getFeaturesInCluster(J):[]},getSingleGraphics:function(){return this._clusterManager?this._clusterManager.getSingleGraphics():[]},getFeatureReductionRenderer:function(){return this.isFeatureReductionActive()?this._clusterManager.getClusterRenderer():
null},getFeatureReductionLayer:function(){return this._clusterManager?this._clusterManager.container:null},getFeatureReductionField:function(J){var Q,ea=this._clusterManager?this._clusterManager.getClusterFields():null;J=J?J.toLowerCase():"";n.some(ea,function(K){J===K.name.toLowerCase()&&(Q=K);return!!Q});return Q},_isFeatureReductionSupported:function(J){return J&&"cluster"===J.type&&"esriGeometryPoint"===this.geometryType&&(this._collection||this._isStream||this._optQueryPagination&&this.advancedQueryCapabilities.supportsPagination)},
_isReductionCompatibleRenderer:function(J){J=J&&J.declaredClass||"";J=J.toLowerCase();return-1<J.indexOf("simplerenderer")||-1<J.indexOf("classbreaksrenderer")||-1<J.indexOf("uniquevaluerenderer")},_evalFeatureReduction:function(J){this.loaded&&this.getMap()&&(J=J||this.getFeatureReduction(),this._evalModeFromFReduction(J),J&&this.isFeatureReductionEnabled()?this._canCluster(J)?this._clusterManager?this._updateClusterManager(J):(this._clusterManager=this._createClusterManager(J),this.onFeatureReductionChange()):
(console.log("Clustering is supported only for point layers where map spatial reference is WGS84 or Web Mercator"),this._destroyClusterManager()):this._destroyClusterManager())},_canCluster:function(J){var Q=this._map;if(!Q)return!1;Q=Q.spatialReference;return this._isFeatureReductionSupported(J)&&this._isReductionCompatibleRenderer(this.renderer)&&(Q.isWebMercator()||4326===Q.wkid)},_createClusterManager:function(J){J=new ta({layer:this,aggregationInfo:J});this._clusterHandles=[J.on("renderer-change",
p.hitch(this,function(){this.onFeatureReductionRendererChange()}))];J.initialize(this._map);return J},_updateClusterManager:function(J){var Q=this._clusterManager;Q&&Q.setAggregationInfo(J)},_destroyClusterManager:function(J){n.forEach(this._clusterHandles,function(Q){Q.remove()});this._clusterHandles=null;this._clusterManager&&(this._clusterManager.destroy(J),this._clusterManager=null,this.onFeatureReductionChange())},redraw:function(){this.inherited(arguments);this._clusterManager&&this._clusterManager.redraw();
this._trackManager&&this._trackManager.container&&this._trackManager.container.redraw()},_evalSDRenderer:function(J){this.inherited(arguments);var Q=this._getRenderer();this._ager=!!(Q&&Q.observationAger&&Q.observationRenderer);this._trackManager&&this._trackManager.container&&this._trackManager.container.setRenderer(Q&&Q.trackRenderer);J&&this._evalFeatureReduction()},_graphicVisibilityChanged:function(J){this._clusterManager?this._clusterManager.toggleFeatureVisibility(J):this._heatmapManager&&
this._heatmapManager.redraw()},setWebGLFetchOptions:function(J){this._hasOnDemandDrillMode()&&(J=J||{},null!=J.maxDrillLevel&&(this._mode.maxDrillLevel=J.maxDrillLevel),null!=J.maxRecordCountFactor&&(this._mode.maxRecordCountFactor=J.maxRecordCountFactor),null!=J.enablePBFQuery&&(this._mode.enablePBFQuery=J.enablePBFQuery))},_isWebGLCompatible:function(){return this.loaded&&!this.isEditable()&&!this.isFeatureReductionApplied()&&(!this.labelingInfo||!1===this.showLabels)&&!this._isGeometryOperationsUsed()&&
this._isRendererSupportedInWebGL()&&this.supportsCoordinatesQuantization&&("esriGeometryPolygon"!==this.geometryType||this.advancedQueryCapabilities.supportsReturningGeometryCentroid)&&this.currentMode===Qa.MODE_ONDEMAND&&(!this._preSurfaceChangeState||this._preSurfaceChangeState.currentMode===Qa.MODE_ONDEMAND)},_isRendererSupportedInWebGL:function(){if(!this.renderer)return!1;var J=this.renderer,Q=J.declaredClass?J.declaredClass.toLowerCase():"";return(-1<Q.indexOf("simplerenderer")||-1<Q.indexOf("classbreaksrenderer")||
-1<Q.indexOf("uniquevaluerenderer"))&&this._hasWebGLCompatibleSymbols(J)&&this._hasWebGLCompatibleVVs(J)},_hasWebGLCompatibleSymbols:function(J){J=this._getAllSymbolsInRenderer(J);return!(this._hasSLSWithMarker(J)||this._hasIncompatibleSMSStyles(J)||this._hasGIFMarker(J))},_hasWebGLCompatibleVVs:function(J){return!n.some(J&&J.visualVariables,function(Q){var ea=Q.type;return("colorInfo"===ea||"opacityInfo"===ea)&&Q.stops&&8<Q.stops.length||"sizeInfo"===ea&&(Q.field||Q.valueExpression&&"$view.scale"!==
Q.valueExpression||Q.expression&&"view.scale"!==Q.expression)&&Q.stops&&6<Q.stops.length?!0:!1})},_hasSLSWithMarker:function(J){return n.some(J,function(Q){return Q&&"simplelinesymbol"===Q.type&&!!Q.marker})},_hasIncompatibleSMSStyles:function(J){var Q=void 0===g("ie")&&7==g("trident");return n.some(J,function(ea){return ea&&"simplemarkersymbol"===ea.type&&("triangle"===ea.style||"path"===ea.style&&Q)})},_hasGIFMarker:function(J){var Q=/\.gif$/,ea=/^image\/gif$/;return n.some(J,function(K){return K&&
"picturemarkersymbol"===K.type?Q.test(K.url)||ea.test(K.contentType):!1})},_getAllSymbolsInRenderer:function(J){var Q=[];J&&(Q.push(J.symbol),Q.push(J.defaultSymbol),n.forEach(J.infos,function(ea){Q.push(ea.symbol)}),Q=n.filter(Q,function(ea){return!!ea}));return Q},_setMap:function(J){var Q=this.inherited(arguments),ea=this._mode,K=this;ea&&J.loaded&&ea.initialize(J);this.geometryType&&this.attr("data-geometry-type",this.geometryType.replace(/esriGeometry/i,"").toLowerCase());this._addHandle=this.on("graphic-node-add",
function(T){T=T.graphic.attributes;(T=K._selectedFeatures[T&&T[K.objectIdField]])&&T.attr("data-selected","")});return Q},_unsetMap:function(J){this._suspendImpl(!0);this._destroyClusterManager(!1);this._trackManager&&(this._trackManager.destroy(),this._trackManager=null);w.disconnect(this._zoomConnect);w.disconnect(this._addHandle);this._zoomConnect=this._addHandle=null;this.inherited("_unsetMap",arguments)},onAttach:function(){this._evalModeFromSurface()},onRefreshTick:function(){this.isFeatureUpdatesCheckActive()&&
this._evalFeatureUpdates()},refresh:function(J){!this._needsRefresh&&J&&J.scheduled&&this.isFeatureUpdatesCheckActive()||(this._needsRefresh=!1,(J=this._mode)&&J.refresh())},setFeatureUpdatesCheckEnabled:function(J){this._featureUpdatesCheckEnabled=J},isFeatureUpdatesCheckEnabled:function(){return!!this._featureUpdatesCheckEnabled},isFeatureUpdatesCheckActive:function(){return this.supportsLastEditDate&&this.isFeatureUpdatesCheckEnabled()&&!!this.refreshInterval&&!!p.getObject("onFeatureUpdatesResult.after",
!1,this)},hasFeatureUpdates:function(){var J=new q;if(!this.supportsLastEditDate)return J.reject(Error("FeatureLayer does not support supportsLastEditDate")),J.promise;if(!this._fetchMetadataPromise||this._fetchMetadataPromise.isFulfilled())this._fetchMetadataPromise=v({url:this._url.path,content:p.mixin({f:"json"},this._url.query),callbackParamName:"callback"}).then(p.hitch(this,function(Q){Q=Q.editingInfo.lastEditDate;var ea=this.editingInfo.lastEditDate!==Q;this.editingInfo.lastEditDate=Q;return ea}));
this._fetchMetadataPromise.then(function(Q){J.isFulfilled()||J.resolve(Q)}).otherwise(function(Q){J.isFulfilled()||J.reject(Q)});return J.promise},hasXYFootprint:function(){return"esriGeometryMultiPatch"===this.geometryType&&"xyFootprint"===this.multipatchOption},getOutFields:function(){return n.filter(this._getOutFields(),function(J){return"*"===J||!!this._getField(J)},this)},getField:function(J){return this._getField(J,!0)},isOutField:function(J){J=this.getField(J);if(!J)return!1;var Q=this.getOutFields();
return-1<n.indexOf(Q,"*")||-1<n.indexOf(Q,J.name)},getFieldLabel:function(J){var Q=this.infoTemplate;Q=Q&&Q.getFieldInfo&&Q.getFieldInfo(J);J=p.isFunction(J)?null:this.getField(J);var ea=Q||J,K="";ea&&(K=Q&&Q.label||J&&J.alias||ea.name||ea.fieldName);return K},getDomain:function(J,Q){var ea,K,T=(Q=Q&&Q.feature)&&this.typeIdField&&Q.attributes&&Q.attributes[this.typeIdField];null!=T&&n.some(this.types,function(fa){return fa.id==T?((ea=fa.domains&&fa.domains[J])&&"inherited"===ea.type&&(ea=this._getLayerDomain(J),
K=!0),!0):!1},this);K||ea||(ea=this._getLayerDomain(J));return ea},_getLayerDomain:function(J){this._createFieldsIndex();var Q=this._fieldsIndex;if(Q)return Q=Q.caseSensitive,(Q=Q.get(J))?Q.domain:null;var ea;n.some(this.fields,function(K){K.name===J&&(ea=K.domain);return!!ea});return ea},getType:function(J){return this.getTypeById(J&&this.typeIdField&&J.attributes&&J.attributes[this.typeIdField])},getTypeById:function(J){var Q;n.some(this.types,function(ea){ea.id==J&&(Q=ea);return!!Q});return Q},
getSubtypeByCode:function(J){var Q;n.some(this.subtypes,function(ea){ea.code==J&&(Q=ea);return!!Q});return Q},setEditable:function(J){if(!this._collection)return console.log("FeatureLayer:setEditable - this functionality is not yet supported for layer in a feature service"),this;if(this._isImageService)return this;if(!this.loaded)return this._optEditable=J,this;var Q=this._editable;this._editable=J;this._updateCaps();if(Q!==J)this.onCapabilitiesChange();return this},getEditCapabilities:function(J){var Q=
{canCreate:!1,canUpdate:!1,canDelete:!1,canUpdateGeometry:!1};if(!this.loaded||!this.isEditable())return Q;var ea=J&&J.feature;J=J&&J.userId||this.getUserId();var K=n.map(this.capabilities?this.capabilities.toLowerCase().split(","):[],p.trim),T=(Q=-1<n.indexOf(K,"editing"))&&-1<n.indexOf(K,"create"),fa=Q&&-1<n.indexOf(K,"update");K=Q&&-1<n.indexOf(K,"delete");var qa=this.ownershipBasedAccessControlForFeatures,ya=this.editFieldsInfo,Fa=ya&&ya.creatorField;ya=ya&&ya.realm;ea=(ea=ea&&ea.attributes)&&
Fa?ea[Fa]:void 0;var Ea=!!this.userIsAdmin;Fa=!qa||Ea||!(!qa.allowOthersToUpdate&&!qa.allowUpdateToOthers);var Ta=!qa||Ea||!(!qa.allowOthersToDelete&&!qa.allowDeleteToOthers),Pa=!qa||Ea||!qa.hasOwnProperty("allowAnonymousToUpdate")||qa.allowAnonymousToUpdate;qa=!qa||Ea||!qa.hasOwnProperty("allowAnonymousToDelete")||qa.allowAnonymousToDelete;J&&ya&&(J=J+"@"+ya);if(Ea||Q&&!(T||fa||K))T=fa=K=!0;Q={canCreate:T,canUpdate:fa,canDelete:K,canUpdateGeometry:Ea||this.allowGeometryUpdates};J||(Q.canUpdate=Q.canUpdate&&
Pa,Q.canDelete=Q.canDelete&&qa);null===ea?(Q.canUpdate=Q.canUpdate&&Fa,Q.canDelete=Q.canDelete&&Ta):""!==ea&&ea&&J.toLowerCase()!==ea.toLowerCase()&&(Q.canUpdate=Q.canUpdate&&Fa,Q.canDelete=Q.canDelete&&Ta);return Q},getUserId:function(){var J;this.loaded&&(J=this.credential&&this.credential.userId||this.userId||"");return J},setUserIsAdmin:function(J){this.userIsAdmin=J},setEditSummaryCallback:function(J){this.editSummaryCallback=J},getEditSummary:function(J,Q,ea){ea=x.isDefined(ea)?ea:(new Date).getTime();
var K="";ea=this.getEditInfo(J,Q,ea);(Q=Q&&Q.callback||this.editSummaryCallback)&&(ea=Q(J,ea)||"");if(p.isString(ea))K=ea;else{if(ea){J=ea.action;Q=ea.userId;var T=ea.timeValue,fa=0;J&&fa++;Q&&fa++;x.isDefined(T)&&fa++;1<fa&&(K=("edit"===J?"edit":"create")+(Q?"User":"")+(x.isDefined(T)?ea.displayPattern:""))}K=K&&x.substitute(ea,this.i18n.layers.FeatureLayer[K])}return K},getEditInfo:function(J,Q,ea){if(this.loaded){ea=x.isDefined(ea)?ea:(new Date).getTime();Q=Q&&Q.action||"last";var K=this.editFieldsInfo,
T=K&&K.creatorField,fa=K&&K.creationDateField,qa=K&&K.editorField;K=K&&K.editDateField;qa=(J=J&&J.attributes)&&qa?J[qa]:void 0;K=J&&K?J[K]:null;T=this._getEditData(J&&T?J[T]:void 0,J&&fa?J[fa]:null,ea);ea=this._getEditData(qa,K,ea);switch(Q){case "creation":var ya=T;break;case "edit":ya=ea;break;case "last":ya=ea||T}ya&&(ya.action=ya===ea?"edit":"creation");return ya}},_getEditData:function(J,Q,ea){if(x.isDefined(Q)){var K=ea-Q;var T=0>K?"Full":6E4>K?"Seconds":12E4>K?"Minute":36E5>K?"Minutes":72E5>
K?"Hour":864E5>K?"Hours":6048E5>K?"WeekDay":"Full"}if(void 0!==J||T){var fa=fa||{};fa.userId=J;T&&(J=f.format,ea=new Date(Q),fa.minutes=Math.floor(K/6E4),fa.hours=Math.floor(K/36E5),fa.weekDay=J(ea,{datePattern:"EEEE",selector:"date"}),fa.formattedDate=J(ea,{selector:"date"}),fa.formattedTime=J(ea,{selector:"time"}),fa.displayPattern=T,fa.timeValue=Q)}return fa},isEditable:function(){return!(!this._editable&&!this.userIsAdmin)},isQueryable:function(){var J=n.map(this.capabilities?this.capabilities.toLowerCase().split(","):
[],p.trim);return this._isStream||this.userIsAdmin||this._collection||-1!==n.indexOf(J,"query")||-1!==n.indexOf(J,"catalog")},setResolution:function(J){return this.setMaxAllowableOffset(J)},setMaxAllowableOffset:function(J){this.isEditable()||(this._optMaxOffset=J,this._setMaxOffset(J,!0));return this},_resetMaxAllowableOffset:function(){this.setMaxAllowableOffset(this._optMaxOffset);this._prevScale=null;this._refreshMaxAllowableOffset()},_refreshMaxAllowableOffset:function(){this._calcMaxOffsetForAutoSnapshot();
this._updateMaxOffset();this._needsRefresh=!1},getResolution:function(){return this.getMaxAllowableOffset()},getMaxAllowableOffset:function(){var J=this._quantizationParameters?this._quantizationParameters.tolerance:void 0;return null!=this._maxOffset?this._maxOffset:J},_setMaxOffset:function(J,Q){if(null==J)return delete this._maxOffset,delete this._quantizationParameters,this;this.quantize&&this.supportsCoordinatesQuantization?("esriGeometryPolyline"===this.geometryType?this._maxOffset=J:delete this._maxOffset,
this._quantizationParameters=J?{mode:"view",originPosition:"upperLeft",tolerance:J,extent:this.fullExtent}:null):(this._isFractionalOffsetAllowed()&&Q||(J=Math.floor(J)),isNaN(J)||0===J?delete this._maxOffset:this._maxOffset=J,delete this._quantizationParameters);return this},_isFractionalOffsetAllowed:function(){return null==this.version||10.1<=this.version||navigator.languages&&this._isLangWithDot(navigator.languages[0])},_isLangWithDot:function(J){J=(J=J&&J.split("-"))&&J[0]&&J[0].toLowerCase();
return-1!==n.indexOf(this._langsWithDot,J)},_langsWithDot:"ar en et fr he ja ko th vi zh".split(" "),setAutoGeneralize:function(J){this.loaded?this._canAutoGeneralize()&&((this._autoGeneralize=J)?(this._isAutoSnapshotMode()&&(this._prevScale=null),this._updateMaxOffset()):this._setMaxOffset(null)):this._optAutoGen=J;return this},_canAutoGeneralize:function(){return!this.isEditable()&&this.mode!==Qa.MODE_SNAPSHOT},setGDBVersion:function(J){this._collection||J===this.gdbVersion||!J&&!this.gdbVersion||
(this.gdbVersion=J,this._task.gdbVersion=J,this._url.query=p.mixin(this._url.query,{gdbVersion:J}),this.loaded&&(this.clearSelection(),this._map&&this.refresh()),this.onGDBVersionChange());return this},hasAllFeatures:function(){return this._mode?this._mode.hasAllFeatures():!0},hasUpdateError:function(){return this._mode?this._mode.hasUpdateError():!1},setDefinitionExpression:function(J){this._defnExpr=J;this._hasPendingLimitQuery()||((J=this._checkFeatureLimit())?this._evalModeAndApplyDefnExpr(J):
this._applyDefnExpr());return this},_applyDefnExpr:function(){var J=this._mode;J&&J.propertyChangeHandler(1)},_evalModeAndApplyDefnExpr:function(J){J.then(p.hitch(this,function(Q){Q&&(Q instanceof Error||!Q.modeChanged)&&this._applyDefnExpr()}))},getDefinitionExpression:function(){return this._defnExpr},hasDefinitionExpressionWithCurrentTimestamp:function(){return this.reSQLCurrentTimestamp.test(this.getDefinitionExpression())},setTimeDefinition:function(J){this._isSnapshotMode()?(this._timeDefn=
J,(J=this._mode)&&J.propertyChangeHandler(2)):console.log("FeatureLayer.setTimeDefinition: layer in on-demand or selection mode does not support time definitions. Layer id \x3d "+this.id+", Layer URL \x3d "+this.url);return this},getTimeDefinition:function(){return this._timeDefn},setTimeOffset:function(J,Q){this._timeOffset=J;this._timeOffsetUnits=Q;(J=this._mode)&&J.propertyChangeHandler(0);return this},setUseMapTime:function(J){this.useMapTime=J;this._toggleTime(!this.suspended);(J=this._mode)&&
J.propertyChangeHandler(0)},selectFeatures:function(J,Q,ea,K){Q=Q||Qa.SELECTION_NEW;this._hasSelectionError=this._hasPartialSelectedFeatures=!1;J=this._getShallowClone(J);var T=this._map,fa=this,qa=u._fixDfd(new q(u._dfdCanceller));J.outFields=this.getOutFields();J.returnGeometry=!0;J.multipatchOption=this.multipatchOption;T&&(J.outSpatialReference=new r(T.spatialReference.toJson()));if(!this._applyQueryFilters(J,!0)){var ya={features:[]};this._selectHandler(ya,Q,ea,K,qa);return qa}if(T=this._canDoClientSideQuery(J))qa._pendingDfd=
e(this._doQuery(J,T)),qa._pendingDfd.then(function(Ea){ya={features:Ea};fa._selectHandler(ya,Q,ea,K,qa)});else{if(this._collection)return this._resolve([Error("FeatureLayer::selectFeatures - "+this.invalidParams)],null,K,qa,!0),qa;if(this.loaded&&!this.isQueryable())return this._resolve([Error("Layer does not support query capability.")],null,K,qa,!0),qa;var Fa=this;this._ts&&(J._ts=(new Date).getTime());T=this._canFetchPBFForQuery(J);this._enableEditModeQuantization(J,T);(qa._pendingDfd=this._task.execute(J,
null,null,T?{format:"pbf"}:null)).addCallbacks(function(Ea){Fa._selectHandler(Ea,Q,ea,K,qa)},function(Ea){Fa._hasPartialSelectedFeatures=!0;Fa._hasSelectionError=!0;Fa._resolve([Ea],null,K,qa,!0)})}return qa},getSelectedFeatures:function(){var J=this._selectedFeatures,Q=[],ea;for(ea in J)J.hasOwnProperty(ea)&&Q.push(J[ea]);return Q},clearSelection:function(J){var Q=this._selectedFeatures,ea=this._mode,K;for(K in Q)Q.hasOwnProperty(K)&&(this._unSelectFeatureIIf(K,ea),ea._removeFeatureIIf(K));this._selectedFeatures=
{};this._isSelOnly&&ea._applyTimeFilter(!0);if(!J)this.onSelectionClear();return this},setSelectionSymbol:function(J){if(this._selectionSymbol=J){var Q=this._selectedFeatures,ea;for(ea in Q)Q.hasOwnProperty(ea)&&Q[ea].setSymbol(J)}return this},getSelectionSymbol:function(){return this._selectionSymbol},setLabelingInfo:function(J){J?(this.labelingInfo=J,this._fixLabelExpr()):delete this.labelingInfo;this._collection&&(this._typesDirty=!0);this._evalSurfaceType();this.onLabelingInfoChange()},_fixLabelExpr:function(){var J=
/\[([^\[\]]+)\]/ig,Q,ea=this,K=function(T,fa){T=ea._getField(fa,!0);return"["+(T&&T.name||fa)+"]"};n.forEach(this.labelingInfo,function(T){if(Q=T.labelExpression)T.labelExpression=Q.replace(J,K)})},_updateRequiredFieldsFromLabelingInfo:function(){var J=[];n.forEach(this.labelingInfo,function(Q){var ea=Q.labelExpressionInfo;if(Q.labelExpression){var K=/[\[\]]/ig;Q=Q.labelExpression.match(/\[[^\[\]]+\]/ig);(Q=n.map(Q,function(fa){return fa.replace(K,"")}))&&(J=J.concat(Q))}if(ea){if(ea.value){var T=
/[\{\}]/ig;Q=ea.value.match(/\{[^\{\}]+\}/ig);(Q=n.map(Q,function(fa){return fa.replace(T,"")}))&&(J=J.concat(Q))}ea.expression&&(Q=n.map(this.fields,function(fa){return fa.name},this),J=J.concat(aa.extractFieldNames(ea.expression,Q)))}},this);J=n.map(J,function(Q){var ea=this.getField(Q);return ea?ea.name:Q},this);this._requiredFields&&(this._requiredFields=this._requiredFields.concat(J))},__msigns:[{n:"applyEdits",c:5,a:[{i:0},{i:1}],e:4,f:1}],applyEdits:function(J,Q,ea,K,T,fa){var qa=fa.assembly,
ya=fa.dfd;this._applyNormalized(J,qa&&qa[0]);this._applyNormalized(Q,qa&&qa[1]);this.onBeforeApplyEdits(J,Q,ea);var Fa={},Ea=this.objectIdField;qa={f:"json"};var Ta=!1;if(this._collection)fa={},fa.addResults=J?n.map(J,function(){Ta=!0;return{objectId:this._nextId++,success:!0}},this):null,fa.updateResults=Q?n.map(Q,function(Xa){Ta=!0;var gb=Xa.attributes[Ea];Fa[gb]=Xa;return{objectId:gb,success:!0}},this):null,fa.deleteResults=ea?n.map(ea,function(Xa){Ta=!0;return{objectId:Xa.attributes[Ea],success:!0}},
this):null,Ta?this._editHandler(fa,J,Fa,K,T,ya):this._resolve([fa.addResults,fa.updateResults,fa.deleteResults],null,K,ya);else{J&&0<J.length&&(qa.adds=this._convertFeaturesToJson(J,0,1),Ta=!0);if(Q&&0<Q.length){for(fa=0;fa<Q.length;fa++){var Pa=Q[fa];Fa[Pa.attributes[Ea]]=Pa}qa.updates=this._convertFeaturesToJson(Q,0,0,1);Ta=!0}if(ea&&0<ea.length){Q=[];for(fa=0;fa<ea.length;fa++)Q.push(ea[fa].attributes[Ea]);qa.deletes=Q.join(",");Ta=!0}if(Ta){var Ka=this;return v({url:this._url.path+"/applyEdits",
content:p.mixin(qa,this._url.query),callbackParamName:"callback",load:function(Xa){Ka._editHandler(Xa,J,Fa,K,T,ya)},error:function(Xa){Ka._resolve([Xa],null,T,ya,!0)}},{usePost:!0})}this._resolve([],null,K,ya)}},queryFeatures:function(J,Q,ea,K){return this._query("execute","onQueryFeaturesComplete",J,Q,ea,K)},queryRelatedFeatures:function(J,Q,ea){return this._query("executeRelationshipQuery","onQueryRelatedFeaturesComplete",J,Q,ea)},queryIds:function(J,Q,ea,K){return this._query("executeForIds","onQueryIdsComplete",
J,Q,ea,K)},queryCount:function(J,Q,ea,K){return this._query("executeForCount","onQueryCountComplete",J,Q,ea,K)},queryExtent:function(J,Q,ea,K){return this._query("executeForExtent","onQueryExtentComplete",J,Q,ea,K)},queryAttachmentInfos:function(J,Q,ea){var K=this._url.path+"/"+J+"/attachments",T=new q(u._dfdCanceller),fa=this;K=B.normalize(K);T._pendingDfd=v({url:K,content:p.mixin({f:"json"},this._url.query),callbackParamName:"callback",load:function(qa){qa=qa.attachmentInfos;var ya;n.forEach(qa,
function(Fa){ya=c.objectToQuery({gdbVersion:fa._url.query&&fa._url.query.gdbVersion,layer:fa._url.query&&fa._url.query.layer,token:fa._getToken()});Fa.url=K+"/"+Fa.id+(ya?"?"+ya:"");Fa.objectId=J});fa._resolve([qa],"onQueryAttachmentInfosComplete",Q,T)},error:function(qa){fa._resolve([qa],null,ea,T,!0)}});return T},addAttachment:function(J,Q,ea,K){return this._sendAttachment("add",J,Q,ea,K)},updateAttachment:function(J,Q,ea,K,T){ea.appendChild(a.create("input",{type:"hidden",name:"attachmentId",value:Q}));
return this._sendAttachment("update",J,ea,K,T)},deleteAttachments:function(J,Q,ea,K){var T=this._url.path+"/"+J+"/deleteAttachments",fa=new q(u._dfdCanceller),qa=this;Q={f:"json",attachmentIds:Q.join(",")};fa._pendingDfd=v({url:T,content:p.mixin(Q,this._url.query),callbackParamName:"callback",load:p.hitch(this,function(ya){ya=ya.deleteAttachmentResults;ya=n.map(ya,function(Fa){Fa=new za(Fa);Fa.attachmentId=Fa.objectId;Fa.objectId=J;return Fa});qa._resolve([ya],"onDeleteAttachmentsComplete",ea,fa)}),
error:function(ya){qa._resolve([ya],null,K,fa,!0)}},{usePost:!0});return fa},addType:function(J){var Q=this.types;if(Q){if(n.some(Q,function(ea){return ea.id==J.id?!0:!1}))return!1;Q.push(J)}else this.types=[J];return this._typesDirty=!0},deleteType:function(J){if(this._collection){var Q=this.types;if(Q){var ea=-1;n.some(Q,function(K,T){return K.id==J?(ea=T,!0):!1});if(-1<ea)return this._typesDirty=!0,Q.splice(ea,1)[0]}}},toJson:function(){var J=this._cloneJson();if(J){J=J.layerDefinition?J:{layerDefinition:J};
var Q=J.layerDefinition,ea=this._collection;this._updateLayerDefinition(Q);var K=null;if(!ea||this._fcAdded)K={geometryType:Q.geometryType,features:this._convertFeaturesToJson(this.graphics,!0)};J.featureSet=p.mixin({},J.featureSet||{},K);if(J.featureSet.transform){var T=J.featureSet.transform;delete J.featureSet.transform;K=new ba(J.featureSet);K.quantize(T);J.featureSet=K.toJson()}ea&&(J.nextObjectId=this._nextId,Q.capabilities=this.capabilities);return J}},getLayerDefinition:function(){var J=this._cloneJson();
(J=J?J.layerDefinition||J:null)&&this._updateLayerDefinition(J);return J},getFeatureCollectionLayer:function(J){var Q=new q,ea=this.getLayerDefinition();if(!ea)return Q.reject(Error("layerDefinition not available")),Q.promise;J=J||[];var K=new Qa({layerDefinition:ea,featureSet:{geometryType:ea.geometryType,features:n.map(J,function(qa){return qa.toJson()})}}),T=K.on("load",function(){T.remove();fa.remove();Q.resolve(K)}),fa=K.on("error",function(){K.loaded||(T.remove(),fa.remove(),Q.reject(K.loadError))});
return Q.promise},onSelectionComplete:function(){},onSelectionClear:function(){},onBeforeApplyEdits:function(){},onEditsComplete:function(){},onQueryFeaturesComplete:function(){},onQueryRelatedFeaturesComplete:function(){},onQueryIdsComplete:function(){},onQueryCountComplete:function(){},onQueryExtentComplete:function(){},onQueryAttachmentInfosComplete:function(){},onAddAttachmentComplete:function(){},onUpdateAttachmentComplete:function(){},onDeleteAttachmentsComplete:function(){},onCapabilitiesChange:function(){},
onGDBVersionChange:function(){},onQueryLimitExceeded:function(){},onLabelingInfoChange:function(){},onFeatureReductionRendererChange:function(){},onFeatureReductionChange:function(){},onFeatureUpdatesResult:function(){},_cloneJson:function(){var J=this._json;return p.isString(J)?l.fromJson(J):p.clone(J)},_updateLayerDefinition:function(J){if(this._collection&&this._typesDirty){J.types=n.map(this.types||[],function(T){return T.toJson()});var Q=this.renderer,ea=this.labelingInfo,K=J.drawingInfo;!Q&&
!ea||K||(K=J.drawingInfo={});K&&Q&&-1===Q.declaredClass.indexOf("TemporalRenderer")&&(K.renderer=Q.toJson());ea&&(K.labelingInfo=n.map(ea,function(T){return T.toJson()}))}},_evalFeatureUpdates:function(){if(!this._featureUpdatesPromise||this._featureUpdatesPromise.isFulfilled())this._featureUpdatesPromise=this.hasFeatureUpdates().otherwise(function(J){return!(J&&"cancel"===J.dojoType)}).always(p.hitch(this,function(J){this._featureUpdatesPromise=null;this.onFeatureUpdatesResult({hasUpdates:J})}))},
_evalRefresh:function(J){(J.hasUpdates||this.hasDefinitionExpressionWithCurrentTimestamp())&&this.refresh()},_evalArcadeSupport:function(){var J=new q;setTimeout(p.hitch(this,function(){this._initializeArcadeEngine().always(function(){J.resolve()})}),0);return J.promise},_initializeArcadeEngine:function(){var J=[],Q=this.infoTemplate;Q&&Q.initializeArcadeEngine&&J.push(Q.initializeArcadeEngine());(Q=this.renderer)&&Q.initializeArcadeEngine&&J.push(Q.initializeArcadeEngine());var ea=[];n.forEach(this.labelingInfo,
function(K){(K=K.labelExpressionInfo)&&K.expression&&ea.push(K.expression)});J.push(da.initialize(ea));return t(J)},_isGeometryOperationsUsed:function(){var J=this.infoTemplate,Q=this.renderer,ea=this.labelingInfo;return J&&J.hasGeometryOperations&&J.hasGeometryOperations()||Q&&Q.hasGeometryOperations&&Q.hasGeometryOperations()||n.some(ea,function(K){return aa.hasGeometryOperations(K.labelExpressionInfo&&K.labelExpressionInfo.expression)})?!0:!1},_forceIdentity:function(){var J=new q,Q=this,ea=this._url&&
this._url.path;var K=ea&&ea.toLowerCase().indexOf("/rest/services");var T=this.editFieldsInfo;T=T&&(T.creatorField||T.editorField);(this.userIsAdmin||T)&&!this._getToken()&&-1<K&&k.id?(K=ea.substring(0,K)+"/rest/info",v({url:K,content:{f:"json"},handleAs:"json",callbackParamName:"callback"}).then(function(fa){if(fa.owningSystemUrl)return k.id.checkSignInStatus(fa.owningSystemUrl+"/sharing")}).then(function(fa){if(fa)return k.id.getCredential(ea)}).then(function(fa){fa&&Q._findCredential()}).always(function(){J.resolve()})):
J.resolve();return J.promise},_isSnapshotMode:function(){return this._mode?this._mode.isInstanceOf(U):!1},_isOnDemandMode:function(){return this._mode?this._mode.isInstanceOf(ma):!1},_isAutoSnapshotMode:function(){return this._isAutoModeEnabled()&&this.currentMode===Qa.MODE_SNAPSHOT},_getMaxFeaturesForAutoSnapshotMode:function(){var J=this.geometryType;if("esriGeometryPolyline"===J||"esriGeometryPolygon"===J||"esriGeometryMultipoint"===J||this.hasXYFootprint())var Q=this.maxRecordCountForAuto;else"esriGeometryPoint"===
J&&(Q=this.maxPointCountForAuto);return Q},getLastExceedsLimitResult:function(){return this._lastExceedsLimitResult},_canUseSnapshotMode:function(J){this._lastExceedsLimitResult=J=(J=J&&J.features&&J.features[0])&&J.attributes&&J.attributes.exceedslimit;return!(this.mode!==Qa.MODE_AUTO||this.isEditable()||0!==J||!(this._isPaginationAllowed()||this.maxRecordCount>=this._getMaxFeaturesForAutoSnapshotMode()))},_evalModeFromFLimit:function(J){this._canUseSnapshotMode(J)?this._enableAutoSnapshotMode():
this._enableAutoOnDemandMode()},_enableAutoSnapshotMode:function(){var J=Qa.MODE_SNAPSHOT;this.isFeatureReductionApplied()?this._updatePreFReductionState(J):this._preSurfaceChangeState?(this._updatePreSurfaceChangeState(J),this._evalSurfaceType(!0)):this.currentMode!==J&&this._setFetchMode(Qa.MODE_AUTO,J)},_enableAutoOnDemandMode:function(){var J=Qa.MODE_ONDEMAND;this.isFeatureReductionApplied()?this._updatePreFReductionState(J):this._preSurfaceChangeState?this._updatePreSurfaceChangeState(J):this.currentMode!==
J&&(this._setFetchMode(Qa.MODE_AUTO,J),this._evalSurfaceType())},_evalModeFromFReduction:function(J){this.loaded&&(J&&this.isFeatureReductionEnabled()&&this._canCluster(J)?this._enableFReductionMode():this._disableFReductionMode())},_enableFReductionMode:function(){this._evalSurfaceType(!0);if(!this._preFReductionState){var J=this.currentMode;J!==Qa.MODE_SNAPSHOT&&J!==Qa.MODE_STREAM&&J!==Qa.MODE_SELECTION&&(this._preFReductionState={mode:this.mode,currentMode:this.currentMode},this._setFetchMode(this.mode===
Qa.MODE_AUTO?Qa.MODE_AUTO:Qa.MODE_SNAPSHOT,Qa.MODE_SNAPSHOT))}},_disableFReductionMode:function(){var J=this._preFReductionState;this._preFReductionState=null;!J||J.mode===this.mode&&J.currentMode===this.currentMode||(this._setFetchMode(J.mode,J.currentMode),this._evalSurfaceType())},_updatePreFReductionState:function(J){this._preFReductionState=this._preFReductionState||{};this._preFReductionState.mode=Qa.MODE_AUTO;this._preFReductionState.currentMode=J},_evalModeFromSurface:function(){this.hasWebGLSurface()?
this._enableWebGLSurfaceMode():this._disableWebGLSurfaceMode()},_enableWebGLSurfaceMode:function(){this._preSurfaceChangeState||(this._preSurfaceChangeState={mode:this.mode,currentMode:this.currentMode},this._setFetchMode(this.mode===Qa.MODE_AUTO?Qa.MODE_AUTO:Qa.MODE_ONDEMAND,Qa.MODE_ONDEMAND,this.webglDeps.OnDemandDrillMode))},_disableWebGLSurfaceMode:function(){var J=this._preSurfaceChangeState;J&&(this._preSurfaceChangeState=null,this._setFetchMode(J.mode,J.currentMode))},_updatePreSurfaceChangeState:function(J){this._preSurfaceChangeState=
this._preSurfaceChangeState||{};this._preSurfaceChangeState.mode=Qa.MODE_AUTO;this._preSurfaceChangeState.currentMode=J},_setFetchMode:function(J,Q,ea){this.clearSelection();this._mode.suspend();this._mode.destroy();this.mode=J;this.currentMode=Q;ea=ea||this._getModeConstructor(Q);this._mode=new ea(this);this.queryPagination=Q===Qa.MODE_ONDEMAND&&-1===ea.prototype.declaredClass.toLowerCase().indexOf("ondemanddrillmode")?!1:this._isPaginationAllowed();(J=this.getMap())&&J.loaded&&(this._resetMaxAllowableOffset(),
this._mode.initialize(J),this._mode.startup())},_isPaginationAllowed:function(){return!(!this._optQueryPagination||this.loaded&&!this.advancedQueryCapabilities.supportsPagination)},_getModeConstructor:function(J){var Q;J===Qa.MODE_SNAPSHOT?Q=U:J===Qa.MODE_ONDEMAND&&(Q=ma);return Q},_hasOnDemandDrillMode:function(){var J=this._mode;J=J&&J.declaredClass;return!!(J&&-1<J.toLowerCase().indexOf("ondemanddrillmode"))},_checkFeatureLimit:function(){this._limitPromise&&(this._limitPromise.cancel(),this._limitPromise=
null);var J=this._queryLimit();J&&(this._lastExceedsLimitResult=null,this._limitPromise=J.then(p.hitch(this,function(Q){var ea=this.currentMode;this._evalModeFromFLimit(Q);return{modeChanged:this.currentMode!==ea}})).always(p.hitch(this,function(Q){this._limitPromise=null;return Q})));return this._limitPromise},_hasPendingLimitQuery:function(){return!!this._exceedsLimitTimer},_queryLimit:function(){if(this._isAutoModeEnabled()){var J,Q,ea=new q(function(){clearTimeout(J);J=null;Q&&!Q.isFulfilled()&&
Q.cancel();Q=null});this._exceedsLimitTimer=J=setTimeout(p.hitch(this,function(){this._exceedsLimitTimer=null;var K=new ia,T=new ja;T.statisticType="exceedslimit";T.maxPointCount=this.maxPointCountForAuto;T.maxRecordCount=this.maxRecordCountForAuto;T.maxVertexCount=this.maxVertexCountForAuto;T.outStatisticFieldName="exceedslimit";K.outStatistics=[T];Q=this.queryFeatures(K).promise.then(function(fa){ea.resolve(fa)}).otherwise(function(fa){ea.reject(fa)})}),0);return ea.promise}},_isAutoModeEnabled:function(){return this.mode===
Qa.MODE_AUTO&&this.reHostedFS.test(this.url)},_updateCaps:function(){var J=this._editable,Q=p.trim(this.capabilities||""),ea=n.map(Q?Q.split(","):[],p.trim),K=n.map(Q?Q.toLowerCase().split(","):[],p.trim);Q=n.indexOf(K,"editing");var T;K={Create:n.indexOf(K,"create"),Update:n.indexOf(K,"update"),Delete:n.indexOf(K,"delete")};if(J&&-1===Q)ea.push("Editing");else if(!J&&-1<Q){J=[Q];for(T in K)-1<K[T]&&J.push(K[T]);J.sort();for(T=J.length-1;0<=T;T--)ea.splice(J[T],1)}this.capabilities=ea.join(",")},
_counter:{value:0},_getUniqueId:function(){return this._counter.value++},onSuspend:function(){this.inherited(arguments);this._suspendImpl()},_suspendImpl:function(J){this._toggleTime(!1);this._refreshHandle&&(this._refreshHandle.remove(),this._refreshHandle=null);var Q=this._mode;Q&&(Q.suspend(),J&&Q.destroy())},onResume:function(J){this.inherited(arguments);this._toggleTime(!0);this._refreshHandle=this.on("feature-updates-result",p.hitch(this,this._evalRefresh));var Q=this._map,ea=this._getRenderer();
if(J.firstOccurrence){if(this._fixRendererFields(),this._updateRequiredFieldsFromLabelingInfo(),this._checkFields(),this.clearSelection(),this._evalFeatureReduction(),this.timeInfo&&!this._trackManager&&(this._trackIdField||ea&&(ea.latestObservationRenderer||ea.trackRenderer))&&(this._trackManager=new W(this),this._trackManager.initialize(Q),this._childLayer=this._trackManager.container),ea&&"colors"in ea&&"blurRadius"in ea&&"maxPixelIntensity"in ea&&"esriGeometryPoint"==this.geometryType&&!this._heatmapManager&&
(this._heatmapManager=new oa(this),this._heatmapManager.initialize(Q)),this._zoomConnect=w.connect(Q,"onZoomEnd",this,this._zoomEndHandler),this._refreshMaxAllowableOffset(),ea=this._mode)ea._init||ea.initialize(Q),ea.startup()}else this._zoomEndHandler(),this._mode&&this._mode.resume()},_zoomEndHandler:function(){var J=this._map;this._updateMaxOffset();this._prevScale=J.getScale();!this.suspended&&this._needsRefresh&&this.refresh()},_updateMaxOffset:function(){var J=this._map;J&&J.loaded&&this._autoGeneralize&&
(this._isAutoSnapshotMode()?(J=this.getMaxAllowableOffset(),this._setMaxOffset(this._getMaxOffsetForScale(),!0),this._needsRefresh||(this._needsRefresh=J!=this.getMaxAllowableOffset())):this._setMaxOffset(J.extent.getWidth()/J.width,!J.extent.spatialReference.isWebMercator()))},_getMaxOffsetForScale:function(){if(this._map){var J=this._map.getScale(),Q=this._calculatedScale,ea=this._calcMaxOffset,K=this._prevScale;return J>=Q&&(null==K||K<Q)?ea:J<Q&&(null==K||K>=Q)?null:this.getMaxAllowableOffset()}},
_calcMaxOffsetForAutoSnapshot:function(){var J=this._map;if(J&&this._canAutoGeneralize()&&this._isAutoSnapshotMode()&&this._autoGeneralize&&null==this.getMaxAllowableOffset()){var Q=this.generalizeForScale;this._calculatedScale=Q=this.maxScale?this.maxScale:this.minScale?Math.min(Q,this.minScale):Math.min(Q,ua.getScale(J,this.initialExtent));this._calcMaxOffset=J.extent.getWidth()/J.width/J.getScale()*Q}else this._calculatedScale=this._calcMaxOffset=void 0},_toggleTime:function(J){var Q=this._map;
J&&this.timeInfo&&this.useMapTime&&Q?(this._mapTimeExtent=Q.timeExtent,this._timeConnect||(this._timeConnect=w.connect(Q,"onTimeExtentChange",this,this._timeChangeHandler))):(this._mapTimeExtent=null,w.disconnect(this._timeConnect),this._timeConnect=null)},_timeChangeHandler:function(J){this._mapTimeExtent=J;(J=this._mode)&&J.propertyChangeHandler(0)},_getOffsettedTE:function(J){var Q=this._timeOffset,ea=this._timeOffsetUnits;return J&&Q&&ea?J.offset(-1*Q,ea):J},_getTimeOverlap:function(J,Q){return J&&
Q?J.intersection(Q):J||Q},_getTimeFilter:function(J){var Q=this.getTimeDefinition();if(Q){var ea=this._getTimeOverlap(Q,null);if(!ea)return[!1]}if(J){if(J=ea?this._getTimeOverlap(J,ea):J,!J)return[!1]}else J=ea;return[!0,J]},_getAttributeFilter:function(J){var Q=[],ea=this.getDefinitionExpression();ea&&Q.push(ea);J&&Q.push(J);this.subtypeField&&this.subtypeCode&&Q.push(this.subtypeField+" \x3d "+this.subtypeCode);1<Q.length&&(Q=n.map(Q,function(K){return"("+K+")"}));return Q.length?Q.join(" AND "):
null},_applyQueryFilters:function(J,Q){J.where=this._getAttributeFilter(J.where);J.returnGeometry&&null==J.maxAllowableOffset&&!J.quantizationParameters&&(J.maxAllowableOffset=this._maxOffset,J.quantizationParameters=this._quantizationParameters);Q&&this.supportsAdvancedQueries&&(J.orderByFields=J.orderByFields||this.getOrderByFields());if(this.timeInfo)if(Q=this._getTimeFilter(J.timeExtent),Q[0])J.timeExtent=Q[1];else return!1;return!0},_add:function(J){var Q=this._selectionSymbol,ea=J.attributes,
K=this.visibilityField;Q&&this._isSelOnly&&J.setSymbol(Q);if(K&&ea&&ea.hasOwnProperty(K))J[ea[K]?"show":"hide"]();return this.add.apply(this,arguments)},_remove:function(){return this.remove.apply(this,arguments)},_canDoClientSideQuery:function(J,Q){var ea=[],K=this._map,T;if((this._collection||!this._isTable&&K)&&!(J.text||J.where&&J.where!==this.getDefinitionExpression()||J.orderByFields&&J.orderByFields.length&&(T=this.getOrderByFields()||[])&&J.orderByFields.join()!==T.join()||J.outStatistics||
J.returnDistinctValues)){T=this._isSnapshotMode();var fa=this._isSelOnly;Q=T?null:Q?this._getExtentOfTiles(K.extent):K.extent;if(K=J.geometry){if(fa||J.spatialRelationship!==ia.SPATIAL_REL_INTERSECTS||"extent"!==K.type||!T&&!Q.contains(K))return;ea.push(1)}if(Q=J.objectIds)if(T)ea.push(2);else{K=Q.length;var qa=this._mode,ya=0,Fa;for(Fa=0;Fa<K;Fa++)qa._getFeature(Q[Fa])&&ya++;if(ya===K)ea.push(2);else return}if(this.timeInfo)if(J=J.timeExtent,Q=this._mapTimeExtent,T)J&&ea.push(3);else if(fa){if(J)return}else if(Q)if(-1!==
n.indexOf(ea,2))J&&ea.push(3);else if(-1!==n.indexOf(ea,1))J==Q&&ea.push(3);else return;else if(0<ea.length)J&&ea.push(3);else if(J)return;return 0<ea.length?ea:null}},_getAbsMid:function(J){return E.toAbsMid?E.toAbsMid(J):z.id.replace(/\/[^\/]*$/ig,"/")+J},_doQuery:function(J,Q,ea){var K=[],T=this.objectIdField,fa=this,qa=new q,ya=new q,Fa=this.graphics;if(-1!==n.indexOf(Q,1)){var Ea=this.spatialIndex||this._map&&this._map.spatialIndex,Ta,Pa=J.geometry._normalize(null,!0);null==Ea&&Ra.autoSpatialIndexing?
Ta=(this._map||this).addPlugin(this._getAbsMid("../plugins/spatialIndex")).then(p.hitch(this,p.partial(this._getFromIndex,Pa,Ea)),function(Ka){ya.resolve(p.hitch(this,p.partial(this._filterByExtent,Fa,Pa)))}):Ea&&(Ta=this._getFromIndex(Pa,Ea));Ta?Ta.then(function(Ka){for(var Xa=0;Xa<Ka.length;Xa++)Ka[Xa].results&&(K=K.concat(Ka[Xa].results));ya.resolve(K)}).otherwise(function(Ka){ya.reject(Ka)}):ya.resolve(this._filterByExtent(Fa,Pa))}else ya.resolve(Fa);ya.then(function(Ka){K=Ka;if(-1!==n.indexOf(Q,
2)){var Xa=J.objectIds;K=n.filter(K,function(gb){return-1<n.indexOf(Xa,gb.attributes[T])})}-1!==n.indexOf(Q,3)&&fa.timeInfo&&(Ka=J.timeExtent,K=fa._filterByTime(K,Ka.startTime,Ka.endTime).match);ea&&(K=n.map(K,function(gb){return gb.attributes[T]},this));qa.resolve(K)});return qa},_getFromIndex:function(J,Q){Q=Q||this.spatialIndex||this._map.spatialIndex;J instanceof Array||(J=[J]);var ea=this.id;return m(n.map(J,function(K){return Q.intersects(K,ea)}))},_filterByExtent:function(J,Q){for(var ea=[],
K=0,T=J.length;K<T;K++){var fa=J[K],qa=fa.geometry;qa&&(this.normalization&&Q.length?(Q[0].intersects(qa)||Q[1].intersects(qa))&&ea.push(fa):Q.intersects(qa)&&ea.push(fa))}return ea},_filterByTime:function(J,Q,ea){var K=this._startTimeField,T=this._endTimeField,fa;this._twoTimeFields||(fa=K||T);var qa=x.isDefined,ya=[],Fa=[],Ea,Ta=J.length;Q=Q?Q.getTime():-Infinity;ea=ea?ea.getTime():Infinity;if(fa)for(Ea=0;Ea<Ta;Ea++){var Pa=J[Ea];var Ka=Pa.attributes;K=Ka[fa];K>=Q&&K<=ea?ya.push(Pa):Fa.push(Pa)}else for(Ea=
0;Ea<Ta;Ea++)Pa=J[Ea],Ka=Pa.attributes,fa=Ka[K],Ka=Ka[T],fa=qa(fa)?fa:-Infinity,Ka=qa(Ka)?Ka:Infinity,fa>=Q&&fa<=ea||Ka>=Q&&Ka<=ea||Q>=fa&&ea<=Ka?ya.push(Pa):Fa.push(Pa);return{match:ya,noMatch:Fa}},_getSizeVariables:function(J){return J&&n.filter(J.getVisualVariablesForType("sizeInfo",!1),function(Q){return!(!Q.field&&!Q.valueExpression)})},_needClientSideSorting:function(J){return this._collection?!(!J||!J.length):n.some(J,function(Q){return!!Q.valueExpression})},_sortFeatures:function(J){var Q=
this.renderer,ea=this._getSizeVariables(Q);if(J&&1<J.length&&this._needClientSideSorting(ea)){var K=ea[0],T=this;J.sort(function(fa,qa){fa._layer||(fa._layer=T);qa._layer||(qa._layer=T);fa=Q._getDataValue(fa,K,"sizeInfo");qa=Q._getDataValue(qa,K,"sizeInfo");return null==fa?-1:null==qa?1:qa-fa})}return J},_resolve:function(J,Q,ea,K,T){Q&&this[Q].apply(this,J);ea&&ea.apply(null,J);K&&u._resDfd(K,J,T)},_getShallowClone:function(J){var Q=new ia,ea;for(ea in J)J.hasOwnProperty(ea)&&(Q[ea]=J[ea]);return Q},
_canFetchPBF:function(){return!!(Va&&Za&&this.supportsFormatPBF)},_canFetchPBFForQuery:function(J){return!(!this._canFetchPBF()||!this._isCacheHintEnabled(J)&&this._isAutoSnapshotMode()||!(J.quantizationParameters||!this.isEditable()&&this.supportsQuantizationEditMode)||J.outStatistics)},_enableEditModeQuantization:function(J,Q){J&&Q&&!J.quantizationParameters&&(J.quantizationParameters={mode:"edit"})},_enableCacheHint:function(J,Q){var ea=this.advancedQueryCapabilities;ea&&ea.supportsQueryWithCacheHint?
null==J.cacheHint&&(J.cacheHint=!0):ea&&ea.supportsQueryWithResultType&&this.reHostedFS.test(this.url)&&!J.resultType&&(J.resultType=Q||"coherent")},_isCacheHintSupported:function(){var J=this.advancedQueryCapabilities;return J?!!(J.supportsQueryWithCacheHint||J.supportsQueryWithResultType&&this.reHostedFS.test(this.url)):!1},_isCacheHintEnabled:function(J){var Q=this.advancedQueryCapabilities;return J&&Q?!!(Q.supportsQueryWithCacheHint&&J.cacheHint||Q.supportsQueryWithResultType&&this.reHostedFS.test(this.url)&&
("coherent"===J.resultType||"tile"===J.resultType)):!1},_query:function(J,Q,ea,K,T,fa){var qa=this,ya=this._map;fa=fa&&fa.snapToTiles;var Fa=new q(u._dfdCanceller),Ea=ea,Ta,Pa,Ka;if("executeRelationshipQuery"!==J){Ea=this._getShallowClone(ea);var Xa=this.getOutFields();Ea.outFields||(Ea.outFields=Xa);Ea.outFields&&Ea.outFields.length&&(Pa=-1<n.indexOf(Xa,"*")?!1:!n.every(Ea.outFields,function(bb){return-1<n.indexOf(Xa,bb)}));Ea.returnGeometry=ea.hasOwnProperty("returnGeometry")?ea.returnGeometry:
!ea.outStatistics;Ea.returnGeometry&&(Ea.multipatchOption=this.multipatchOption,null!=Ea.maxAllowableOffset||Ea.quantizationParameters)&&(ea=null!=Ea.maxAllowableOffset?Ea.maxAllowableOffset:Ea.quantizationParameters.tolerance,null!=ea&&ea!==this.getMaxAllowableOffset()&&(Ka=!0));ya&&(ya=ya&&ya.spatialReference,(ea=Ea.outSpatialReference)?Ta=!ea.equals(ya):Ea.outSpatialReference=new r(ya.toJson()));fa&&(ya=Ea.geometry)&&"extent"===ya.type&&(Ea.geometry=this._getExtentOfTiles(ya),ya!==Ea.geometry&&
this._enableCacheHint(Ea));if(!this._applyQueryFilters(Ea,"execute"===J&&!Ea.outStatistics)){switch(J){case "execute":var gb=new ba({features:[]});break;case "executeForIds":gb=[];break;case "executeForCount":gb=0;break;case "executeForExtent":gb={}}this._resolve([gb],Q,K,Fa);return Fa}if(fa="executeForExtent"!==J&&!Ta&&!Pa&&!Ka&&this._canDoClientSideQuery(Ea,fa))return Fa._pendingDfd=e(this._doQuery(Ea,fa,"executeForIds"===J||"executeForCount"===J)),Fa._pendingDfd.then(function(bb){switch(J){case "execute":gb=
new ba;gb.features=bb;break;case "executeForIds":gb=bb;break;case "executeForCount":gb=bb.length}qa._resolve([gb],Q,K,Fa)}),Fa}if(this._collection)return this._resolve([Error("FeatureLayer::_query - "+this.invalidParams)],null,T,Fa,!0),Fa;if(this.loaded&&!this.isQueryable())return this._resolve([Error("Layer does not support query capability.")],null,T,Fa,!0),Fa;this._ts&&(Ea._ts=(new Date).getTime());fa="execute"===J&&this._canFetchPBFForQuery(Ea);this._enableEditModeQuantization(Ea,fa);(Fa._pendingDfd=
this._task[J](Ea,null,null,fa?{format:"pbf"}:null)).addCallbacks(function(bb){var hb=!!Ea.outStatistics||Ta||Pa||Ka;if("execute"===J||"executeRelationshipQuery"===J)if("execute"===J){var db=bb.features;var lb=db.length;for(--lb;0<=lb;lb--)if(db[lb]._layer=qa,!hb&&!qa._isTable){var sb=qa._mode._getFeature(db[lb].attributes[qa.objectIdField]);sb&&db.splice(lb,1,sb)}}else for(sb in bb)if(bb.hasOwnProperty(sb))for(db=bb[sb].features,lb=db.length,--lb;0<=lb;lb--)db[lb]._layer=qa;qa._resolve([bb],Q,K,Fa)},
function(bb){qa._resolve([bb],null,T,Fa,!0)});return Fa},_getExtentOfTiles:function(J){var Q=this._isOnDemandMode()&&this._mode._gridLayer||V.createFromFeatureLayer({layer:this}),ea=this.getMap();ea=ea&&ea.getTargetExtent(J);return Q&&ea&&Q.getExtentOfIntersectingCells(ea)||J},_convertFeaturesToJson:function(J,Q,ea,K){var T=[],fa=this._selectionSymbol,qa=this.visibilityField,ya,Fa=this.objectIdField;this.loaded&&(ea||K)&&(ya=n.filter(this.fields,function(gb){return!1===gb.editable&&(!K||gb.name!==
Fa)}));for(ea=0;ea<J.length;ea++){var Ea=J[ea],Ta={},Pa=Ea.geometry,Ka=Ea.attributes,Xa=Ea.symbol;!Pa||K&&this.loaded&&!this.allowGeometryUpdates||(Ta.geometry=Pa.toJson());qa?(Ta.attributes=Ka=p.mixin({},Ka),Ka[qa]=Ea.visible?1:0):Ka&&(Ta.attributes=p.mixin({},Ka));Ta.attributes&&ya&&ya.length&&n.forEach(ya,function(gb){delete Ta.attributes[gb.name]});Xa&&Xa!==fa&&(Ta.symbol=Xa.toJson());T.push(Ta)}return Q?T:l.toJson(T)},_selectHandler:function(J,Q,ea,K,T){switch(Q){case Qa.SELECTION_NEW:this.clearSelection(!0);
var fa=!0;break;case Qa.SELECTION_ADD:fa=!0;break;case Qa.SELECTION_SUBTRACT:fa=!1}K=J.features;var qa=this._mode,ya=[],Fa=this.objectIdField;if(fa)for(fa=0;fa<K.length;fa++){var Ea=K[fa];var Ta=Ea.attributes[Fa];Ea=qa._addFeatureIIf(Ta,Ea);ya.push(Ea);this._selectFeatureIIf(Ta,Ea,qa)}else for(fa=0;fa<K.length;fa++)Ea=K[fa],Ta=Ea.attributes[Fa],this._unSelectFeatureIIf(Ta,qa),Ta=qa._removeFeatureIIf(Ta),ya.push(Ta||Ea);this._isSelOnly&&qa._applyTimeFilter(!0);this._isImageService&&10.7>this.version&&
void 0===J.exceededTransferLimit&&(J.exceededTransferLimit=K.length===this.maxRecordCount);this._hasPartialSelectedFeatures=!!J.exceededTransferLimit;this._resolve([ya,Q,J.exceededTransferLimit?{queryLimitExceeded:!0}:null],"onSelectionComplete",ea,T);if(J.exceededTransferLimit)this.onQueryLimitExceeded()},_selectFeatureIIf:function(J,Q,ea){var K=this._selectedFeatures,T=K[J];T||(ea._incRefCount(J),K[J]=Q,this._isTable||(this._setSelectSymbol(Q),Q.attr("data-selected","")));return T||Q},_unSelectFeatureIIf:function(J,
Q){var ea=this._selectedFeatures[J];ea&&(Q._decRefCount(J),delete this._selectedFeatures[J],this._isTable||(this._setUnSelectSymbol(ea),ea.attr("data-selected")));return ea},_setSelectSymbol:function(J){var Q=this._selectionSymbol;Q&&!this._isSelOnly&&J.setSymbol(Q)},_setUnSelectSymbol:function(J){var Q=this._selectionSymbol;Q&&!this._isSelOnly&&Q===J.symbol&&J.setSymbol(null,!0)},_getOutFields:function(){var J=[this.objectIdField,this.typeIdField,this.creatorField,this._startTimeField,this._endTimeField,
this._trackIdField].concat(this._requiredFields).concat(this.dataAttributes);J=n.filter(J,function(ea,K,T){return!!ea&&n.indexOf(T,ea)===K});var Q=p.clone(this._outFields);if(Q){if(-1!==n.indexOf(Q,"*"))return Q;n.forEach(J,function(ea){-1===n.indexOf(Q,ea)&&Q.push(ea)});return Q}return J},_checkFields:function(J){var Q=J||this._getOutFields();n.forEach(Q,function(ea){"*"!==ea&&(this._getField(ea)||console.debug("esri.layers.FeatureLayer: "+x.substitute({url:this.url,field:ea},"unable to find '${field}' field in the layer 'fields' information [url: ${url}]")))},
this);J||this._isTable||this._fserver||this._collection||this._isStream||n.some(this.fields,function(ea){return ea&&"esriFieldTypeGeometry"===ea.type?!0:!1})||console.debug("esri.layers.FeatureLayer: "+x.substitute({url:this.url},"unable to find a field of type 'esriFieldTypeGeometry' in the layer 'fields' information. If you are using a map service layer, features will not have geometry [url: ${url}]"))},_fixFieldCase:function(J,Q,ea){var K=J&&J[Q],T;if(K&&!p.isFunction(K)){if(T=!this._getField(K)&&
this._getField(K,!0))K=J[Q]=T.name;ea&&ea.push(K)}return K},_fixRendererFields:function(){var J=this.renderer;this._orderBy=null;this._requiredFields=[];if(J&&0<this.fields.length){var Q=[],ea;J=n.filter([J,J.observationRenderer,J.latestObservationRenderer,J.trackRenderer],x.isDefined);var K=[].concat(J);n.forEach(J,function(T){n.forEach(T.rendererInfos,function(fa){fa.renderer&&K.push(fa.renderer)})});n.forEach(K,function(T){this._fixFieldCase(T,"attributeField",Q);this._fixFieldCase(T,"attributeField2",
Q);this._fixFieldCase(T,"attributeField3",Q);this._fixFieldCase(T.rotationInfo,"field",Q);(ea=this._fixFieldCase(T.sizeInfo,"field",Q))&&!this._orderBy&&(this._orderBy=[ea+" DESC"]);this._fixFieldCase(T.sizeInfo,"normalizationField",Q);this._fixFieldCase(T.colorInfo,"field",Q);this._fixFieldCase(T.colorInfo,"normalizationField",Q);this._fixFieldCase(T.field,"field",Q);this._fixFieldCase(T.opacityInfo,"field",Q);this._fixFieldCase(T.opacityInfo,"normalizationField",Q);n.forEach(T.visualVariables,function(qa){ea=
this._fixFieldCase(qa,"field",Q);"sizeInfo"===qa.type&&ea&&!this._orderBy&&(this._orderBy=[ea+" DESC"]);this._fixFieldCase(qa,"normalizationField",Q)},this);var fa=n.map(this.fields,function(qa){return qa.name},this);fa=n.map(T.getFieldsUsedInExpressions(fa),function(qa){var ya=this.getField(qa);return ya?ya.name:qa},this);Q=Q.concat(fa);this._orderBy||!T.addBreak||p.isFunction(T.attributeField)||!T.backgroundFillSymbol&&!this._hasSizeDiff(T)||(this._orderBy=[T.attributeField+" DESC"])},this);this._requiredFields=
n.filter(Q,x.isDefined)}},_hasSizeDiff:function(J){var Q=Number.MAX_VALUE,ea=-Number.MAX_VALUE,K,T;n.forEach(J.infos,function(fa){if(T=fa.symbol){K=0;switch(T.type){case "simplemarkersymbol":K=T.size;break;case "picturemarkersymbol":K=(T.width+T.height)/2;break;case "simplelinesymbol":case "cartographiclinesymbol":K=T.width;break;case "simplefillsymbol":case "picturefillsymbol":K=T.outline&&T.outline.width}K&&(Q=Math.min(Q,K),ea=Math.max(ea,K))}});return Q!==Number.MAX_VALUE&&ea!==-Number.MAX_VALUE&&
1<Math.abs(ea-Q)},getOrderByFields:function(){var J=this.orderByFields||this._orderBy;return this.supportsAdvancedQueries&&J?n.filter(J,function(Q){Q=Q.split(" ")[0];return!!this._getField(Q,!0)},this):null},_createFields:function(J){var Q=J?J.length:0,ea,K=[];for(ea=0;ea<Q;ea++)K.push(new M(J[ea]));this.fields=K},_createFieldsIndex:function(){if(this._fieldsIndexDirty){var J=this.fields,Q=J?J.length:0;if(50<Q&&this._canUseFieldsIndex()){var ea=new Map;for(var K=new Map,T=0;T<Q;T++){var fa=J[T];ea.set(fa.name,
fa);K.set(fa.name.toLowerCase(),fa)}ea={caseSensitive:ea,caseInsensitive:K}}this._fieldsIndex=ea;this._fieldsIndexDirty=!1}},_canUseFieldsIndex:function(){var J=h.Map;return!("function"!==typeof h.Proxy||"function"!==typeof h.Proxy.revocable||"function"!==typeof J||!J.prototype||"function"!==typeof J.prototype.set)},_getField:function(J,Q){var ea=this.fields;if(!ea||0===ea.length)return null;Q&&(J=J.toLowerCase());this._createFieldsIndex();var K=this._fieldsIndex;if(K)return K=Q?K.caseInsensitive:
K.caseSensitive,K.get(J);var T;n.some(ea,function(fa){var qa=!1;(qa=Q?fa&&fa.name.toLowerCase()===J?!0:!1:fa&&fa.name===J?!0:!1)&&(T=fa);return qa});return T},_getDateOpts:function(){this._dtOpts||(this._dtOpts={properties:n.map(n.filter(this.fields,function(J){return!(!J||"esriFieldTypeDate"!==J.type)}),function(J){return J.name})});return this._dtOpts},_applyNormalized:function(J,Q){J&&Q&&n.forEach(J,function(ea,K){ea&&Q[K]&&ea.setGeometry(Q[K])})},_editHandler:function(J,Q,ea,K,T,fa){T=J.addResults;
var qa=J.updateResults;J=J.deleteResults;var ya,Fa=this.objectIdField,Ea=this._mode,Ta=this._isTable;var Pa=this.editFieldsInfo;var Ka=this.getOutFields()||[];var Xa=Pa&&Pa.creatorField,gb=Pa&&Pa.creationDateField,bb=Pa&&Pa.editorField,hb=Pa&&Pa.editDateField;Pa=Pa&&Pa.realm;-1===n.indexOf(Ka,"*")&&(Xa&&-1===n.indexOf(Ka,Xa)&&(Xa=null),gb&&-1===n.indexOf(Ka,gb)&&(gb=null),bb&&-1===n.indexOf(Ka,bb)&&(bb=null),hb&&-1===n.indexOf(Ka,hb)&&(hb=null));var db=gb||hb?(new Date).getTime():null,lb=Xa||bb?this.getUserId():
void 0;lb&&Pa&&(lb=lb+"@"+Pa);if(T){var sb=this.globalIdField;for(Pa=0;Pa<T.length;Pa++)if(T[Pa]=new za(T[Pa]),!Ta){var ob=T[Pa];if(ob.success){var eb=ob.objectId;Ka=Q[Pa];(ya=Ka._graphicsLayer)&&ya!==this&&ya.remove(Ka);ya=Ka.attributes||{};ya[Fa]=eb;eb=ob.globalId;sb&&eb&&(ya[sb]=eb);Xa&&(ya[Xa]=lb);bb&&(ya[bb]=lb);gb&&(ya[gb]=db);hb&&(ya[hb]=db);Ka.setAttributes(ya);Ea._init&&Ea.drawFeature(Ka)}}}if(qa)for(Pa=0;Pa<qa.length;Pa++)if(qa[Pa]=new za(qa[Pa]),!Ta&&(ob=qa[Pa],ob.success)){eb=ob.objectId;
Ka=ea[eb];if(Q=Ea._getFeature(eb))Q.geometry!==Ka.geometry&&Ka.geometry&&Q.setGeometry(Ca.fromJson(Ka.geometry.toJson())),Q.attributes!==Ka.attributes&&Ka.attributes&&Q.setAttributes(p.mixin(Q.attributes,Ka.attributes)),this._repaint(Q,eb);Ka=Q||Ka;ya=Ka.attributes||{};bb&&(ya[bb]=lb);hb&&(ya[hb]=db);Ka.setAttributes(ya)}if(J){ea=[];for(Pa=0;Pa<J.length;Pa++)if(J[Pa]=new za(J[Pa]),!Ta&&(ob=J[Pa],ob.success&&(eb=ob.objectId,Ka=Ea._getFeature(eb))))this._unSelectFeatureIIf(eb,Ea)&&ea.push(Ka),Ka._count=
0,Ea._removeFeatureIIf(eb);if(0<ea.length)this.onSelectionComplete(ea,Qa.SELECTION_SUBTRACT)}this._resolve([T,qa,J],"onEditsComplete",K,fa)},_sendAttachment:function(J,Q,ea,K,T){var fa=this;return v({url:this._url.path+"/"+Q+"/"+("add"===J?"addAttachment":"updateAttachment"),form:ea,content:p.mixin(this._url.query,{f:"json",token:this._getToken()||void 0}),callbackParamName:"callback.html",handleAs:"json"}).addCallback(function(qa){var ya="add"===J?"onAddAttachmentComplete":"onUpdateAttachmentComplete";
qa=new za(qa["add"===J?"addAttachmentResult":"updateAttachmentResult"]);qa.attachmentId=qa.objectId;qa.objectId=Q;fa._resolve([qa],ya,K);return qa}).addErrback(function(qa){fa._resolve([qa],null,T,null,!0)})},_repaint:function(J,Q,ea){Q=x.isDefined(Q)?Q:J.attributes[this.objectIdField];Q in this._selectedFeatures&&this._selectionSymbol||J.setSymbol(J.symbol,ea)},_getKind:function(J){var Q=this._trackManager;return Q?Q.isLatestObservation(J)?1:0:0}});p.mixin(Qa,{MODE_SNAPSHOT:0,MODE_ONDEMAND:1,MODE_SELECTION:2,
SELECTION_NEW:3,SELECTION_ADD:4,SELECTION_SUBTRACT:5,MODE_AUTO:6,MODE_STREAM:7,POPUP_NONE:"esriServerHTMLPopupTypeNone",POPUP_HTML_TEXT:"esriServerHTMLPopupTypeAsHTMLText",POPUP_URL:"esriServerHTMLPopupTypeAsURL"});la._createWrappers(Qa);Object.defineProperty(Qa.prototype,"graphics",{get:function(){return this._hasOnDemandDrillMode()?this._mode.graphics:this._graphicsVal},set:function(J){this._graphicsVal=J}});Object.defineProperty(Qa.prototype,"name",{get:function(){return this.arcgisProps&&this.arcgisProps.title?
this.arcgisProps.title:this._name},set:function(J){this._name=J;this.loaded&&this.arcgisProps&&(this.arcgisProps.title=null)}});Object.defineProperty(Qa.prototype,"fields",{get:function(){return this._fields},set:function(J){J&&this._canUseFieldsIndex()&&(J=new Proxy(J,{set:p.hitch(this,function(Q,ea,K){if(ea)if("length"===ea)this._fieldsIndexDirty=!0;else{var T=Number(ea);"number"!==typeof T||isNaN(T)||(this._fieldsIndexDirty=!0)}Q[ea]=K;return!0})}));this._fields=J;this._fieldsIndexDirty=!0}});
g("extend-esri")&&p.setObject("layers.FeatureLayer",Qa,k);return Qa})},"esri/arcadeProfiles/labelingProfile":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../promiseList ../arcade/Feature ../support/expressionUtils ./utils".split(" "),function(E,z,b,w,p,n,l,q){E=new (E(null,{declaredClass:"esri.arcadeProfiles.LabelingProfile",defaults:{context:{vars:{$feature:"any"}}},initialize:function(f){var c=[];q.hasGeometryOperations(f)&&c.push(l.enableGeometryOperations());return p(c)},
isAsync:function(f){return!1},parse:function(f){return l.createSyntaxTree(f.expression)},compile:function(f){var c=z.clone(this.defaults.context);return f.syntaxTree?l.createFunction(f.syntaxTree,c):null},getEvalOptions:function(f){var c=f.feature;return{context:{vars:{$feature:c&&f.expression.hasVariable("$feature")?n.createFromGraphicLikeObject(c.geometry,c.attributes,f.layer):null},spatialReference:f.spatialReference}}}}));b("extend-esri")&&z.setObject("arcadeProfiles.labelingProfile",E,w);return E})},
"esri/tasks/QueryTask":function(){define("require dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/Deferred dojo/_base/json dojo/DeferredList ../kernel ../sniff ../request ../deferredUtils ../geometry/Extent ../geometry/normalizeUtils ./Task ./FeatureSet".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m){var g=f("esri-pbf"),k=z(null,{url:null,query:null,requestOptions:null,pagination:null,pageSize:null,_fetchDfd:null,_startPage:null,_result:null,constructor:function(v){this._handleSuccess=
b.hitch(this,this._handleSuccess);this._handleError=b.hitch(this,this._handleError);b.mixin(this,v);null==this.pagination&&(this.pagination=!1);null==this.pageSize&&(this.pageSize=1E3)},execute:function(){var v=new p(this._canceler);this._fetchDfd=v;this._result=null;this._sendRequest();return v.promise},_canceler:function(v){var y=v._pendingRequest;if(!v.isFulfilled()&&y&&!y.isFulfilled()){y.cancel();var u=y.results&&y.results[1]}v._pendingRequest=null;return u},_sendRequest:function(v){var y=this.query;
this.pagination&&(this._startPage=y.resultOffset=null==v?0:v,y.resultRecordCount=this.pageSize);v=this.requestOptions;this._fetchDfd._pendingRequest=c({url:this.url,content:y,handleAs:"pbf"===y.f?"arraybuffer":"json",callbackParamName:"callback",timeout:v&&v.timeout},v);this._fetchDfd._pendingRequest.then(this._handleSuccess).otherwise(this._handleError)},_handleSuccess:function(v){this.pagination?(v.exceededTransferLimit&&this._sendRequest(this._startPage+this.pageSize),this._result?this._result.features=
this._result.features.concat(v.features):this._result=v,this._fetchDfd.progress(v),v.exceededTransferLimit||this._fetchDfd.resolve(this._result)):(this._fetchDfd.progress(v),this._fetchDfd.resolve(v))},_handleError:function(v){this._fetchDfd.reject(v)}}),x=z(h,{declaredClass:"esri.tasks.QueryTask",_eventMap:{complete:["featureSet"],"execute-for-count-complete":["count"],"execute-for-ids-complete":["objectIds"],"execute-relationship-query-complete":["featureSets"]},constructor:function(v,y){this._handler=
b.hitch(this,this._handler);this._relationshipQueryHandler=b.hitch(this,this._relationshipQueryHandler);this._executeForIdsHandler=b.hitch(this,this._executeForIdsHandler);this._countHandler=b.hitch(this,this._countHandler);this._extentHandler=b.hitch(this,this._extentHandler);this.source=y&&y.source;this.gdbVersion=y&&y.gdbVersion;this.registerConnectEvents()},__msigns:[{n:"execute",c:4,a:[{i:0,p:["geometry"]}],e:2},{n:"rawExecute",c:2,a:[{i:0,p:["geometry"]}],e:2},{n:"executeForIds",c:3,a:[{i:0,
p:["geometry"]}],e:2},{n:"executeForCount",c:3,a:[{i:0,p:["geometry"]}],e:2},{n:"executeForExtent",c:3,a:[{i:0,p:["geometry"]}],e:2}],onComplete:function(){},onRawExecuteComplete:function(){},onExecuteRelationshipQueryComplete:function(){},onExecuteForIdsComplete:function(){},onExecuteForCountComplete:function(){},onExecuteForExtentComplete:function(){},execute:function(v,y,u,t,r){var B=r.assembly;v=this._encode(b.mixin({},this._url.query,{f:t&&t.format||"json"},v.toJson(B&&B[0])));var C=this._handler,
F=this._errorHandler;this.source&&(t={source:this.source.toJson()},v.layer=n.toJson(t));this.gdbVersion&&(v.gdbVersion=this.gdbVersion);var A="pbf"===v.f;if(A){var D;g||(D="QueryTask.execute: 'pbf' format is not supported in your browser.");if(D)return v=new p,v.addErrback(function(G){F(G,u,r.dfd)}),v.reject(Error(D)),v}D=this.requestOptions;D=c({url:this._url.path+"/query",content:v,callbackParamName:"callback",handleAs:A?"arraybuffer":"json",timeout:D&&D.timeout},D);v=[D];A&&v.push(x.loadPBFReader());
(new l(v)).then(function(G){r.dfd.isFulfilled()||(G=G[0],G[0]?C(G[1],A,y,u,r.dfd):F(G[1],u,r.dfd))});return D},rawExecute:function(v,y,u){y=y||{};v=this._encode(b.mixin({},this._url.query,{f:y.format||"json"},v.toJson(u.assembly&&u.assembly[0])));this.source&&(v.layer=n.toJson({source:this.source.toJson()}));this.gdbVersion&&(v.gdbVersion=this.gdbVersion);return(new k({url:this._url.path+"/query",query:v,requestOptions:this.requestOptions,pagination:y.pagination,pageSize:y.pageSize})).execute().then(null,
null,function(t){u.dfd.progress(t)}).then(b.hitch(this,function(t){this._successHandler([t],"onRawExecuteComplete",null,u.dfd)})).otherwise(b.hitch(this,function(t){this._errorHandler(t,null,u.dfd)}))},executeRelationshipQuery:function(v,y,u){v=this._encode(b.mixin({},this._url.query,{f:"json"},v.toJson()));var t=this._relationshipQueryHandler,r=this._errorHandler;this.gdbVersion&&(v.gdbVersion=this.gdbVersion);var B=new p(a._dfdCanceller),C=this.requestOptions,F=this._url.path;this.source&&void 0!==
this.source.mapLayerId&&null!==this.source.mapLayerId&&F.endsWith("/dynamicLayer")&&(F=F.slice(0,-13),F=F+"/"+this.source.mapLayerId);B._pendingDfd=c({url:F+"/queryRelatedRecords",content:v,callbackParamName:"callback",timeout:C&&C.timeout,load:function(A,D){t(A,D,y,u,B)},error:function(A){r(A,u,B)}},C);return B},executeForIds:function(v,y,u,t){var r=t.assembly;v=this._encode(b.mixin({},this._url.query,{f:"json",returnIdsOnly:!0},v.toJson(r&&r[0])));var B=this._executeForIdsHandler,C=this._errorHandler;
this.source&&(r={source:this.source.toJson()},v.layer=n.toJson(r));this.gdbVersion&&(v.gdbVersion=this.gdbVersion);r=this.requestOptions;return c({url:this._url.path+"/query",content:v,callbackParamName:"callback",timeout:r&&r.timeout,load:function(F,A){B(F,A,y,u,t.dfd)},error:function(F){C(F,u,t.dfd)}},r)},executeForCount:function(v,y,u,t){var r=t.assembly;v=this._encode(b.mixin({},this._url.query,{f:"json",returnIdsOnly:!0,returnCountOnly:!0},v.toJson(r&&r[0])));var B=this._countHandler,C=this._errorHandler;
this.source&&(r={source:this.source.toJson()},v.layer=n.toJson(r));this.gdbVersion&&(v.gdbVersion=this.gdbVersion);r=this.requestOptions;return c({url:this._url.path+"/query",content:v,callbackParamName:"callback",timeout:r&&r.timeout,load:function(F,A){B(F,A,y,u,t.dfd)},error:function(F){C(F,u,t.dfd)}},r)},executeForExtent:function(v,y,u,t){var r=t.assembly;v=this._encode(b.mixin({},this._url.query,{f:"json",returnExtentOnly:!0,returnCountOnly:!0},v.toJson(r&&r[0])));var B=this._extentHandler,C=
this._errorHandler;this.source&&(r={source:this.source.toJson()},v.layer=n.toJson(r));this.gdbVersion&&(v.gdbVersion=this.gdbVersion);r=this.requestOptions;return c({url:this._url.path+"/query",content:v,callbackParamName:"callback",timeout:r&&r.timeout,load:function(F,A){B(F,A,y,u,t.dfd)},error:function(F){C(F,u,t.dfd)}},r)},_handler:function(v,y,u,t,r){try{v&&y&&(v=x.pbfDeps.optimizedFeatures.convertToFeatureSet(x.pbfDeps.pbfQueryUtils.parsePBFFeatureQuery(v)));var B=new m(v);this._successHandler([B],
"onComplete",u,r)}catch(C){this._errorHandler(C,t,r)}},_relationshipQueryHandler:function(v,y,u,t,r){try{var B=v.geometryType,C=v.spatialReference,F={};w.forEach(v.relatedRecordGroups,function(A){var D={};D.geometryType=B;D.spatialReference=C;D.features=A.relatedRecords;D=new m(D);if(null!=A.objectId)F[A.objectId]=D;else for(var G in A)A.hasOwnProperty(G)&&"relatedRecords"!==G&&(F[A[G]]=D)});this._successHandler([F],"onExecuteRelationshipQueryComplete",u,r)}catch(A){this._errorHandler(A,t,r)}},_executeForIdsHandler:function(v,
y,u,t,r){try{this._successHandler([v.objectIds],"onExecuteForIdsComplete",u,r)}catch(B){this._errorHandler(B,t,r)}},_countHandler:function(v,y,u,t,r){try{var B=v.features,C=v.objectIds;if(C)var F=C.length;else{if(B)throw Error("Unable to perform query. Please check your parameters.");F=v.count}this._successHandler([F],"onExecuteForCountComplete",u,r)}catch(A){this._errorHandler(A,t,r)}},_extentHandler:function(v,y,u,t,r){try{v.extent&&(v.extent=new d(v.extent)),this._successHandler([v],"onExecuteForExtentComplete",
u,r)}catch(B){this._errorHandler(B,t,r)}}});x.loadPBFReader=function(){var v=new p;x.pbfDeps?v.resolve():E(["./support/pbfDeps"],function(y){x.pbfDeps=y;v.isFulfilled()||v.resolve()});return v.promise};e._createWrappers(x);f("extend-esri")&&b.setObject("tasks.QueryTask",x,q);return x})},"dojo/DeferredList":function(){define(["./_base/kernel","./_base/Deferred","./_base/array"],function(E,z,b){E.DeferredList=function(w,p,n,l,q){var f=[];z.call(this);var c=this;0!==w.length||p||this.resolve([0,[]]);
var a=0;b.forEach(w,function(d,e){function h(m,g){f[e]=[m,g];a++;a===w.length&&c.resolve(f)}d.then(function(m){p?c.resolve([e,m]):h(!0,m)},function(m){n?c.reject(m):h(!1,m);if(l)return null;throw m;})})};E.DeferredList.prototype=new z;E.DeferredList.prototype.gatherResults=function(w){w=new E.DeferredList(w,!1,!0,!1);w.addCallback(function(p){var n=[];b.forEach(p,function(l){n.push(l[1])});return n});return w};return E.DeferredList})},"esri/tasks/Task":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/json dojo/has ../kernel ../deferredUtils ../urlUtils ../Evented".split(" "),
function(E,z,b,w,p,n,l,q){E=E(q,{declaredClass:"esri.tasks._Task",_eventMap:{error:["error"],complete:["result"]},constructor:function(f,c){f&&z.isString(f)&&(this._url=l.urlToObject(this.url=f));c&&c.requestOptions&&(this.requestOptions=c.requestOptions);this.normalization=!0;this._errorHandler=z.hitch(this,this._errorHandler);this.registerConnectEvents()},_useSSL:function(){var f=this._url,c=/^http:/i;this.url&&(this.url=this.url.replace(c,"https:"));f&&f.path&&(f.path=f.path.replace(c,"https:"))},
_encode:function(f,c,a){var d={},e;for(e in f)if("declaredClass"!==e){var h=f[e];var m=typeof h;if(null!==h&&void 0!==h&&"function"!==m)if(z.isArray(h)){d[e]=[];var g=h.length;for(m=0;m<g;m++)d[e][m]=this._encode(h[m])}else"object"===m?h.toJson&&(m=h.toJson(a&&a[e]),"esri.tasks.FeatureSet"===h.declaredClass&&m.spatialReference&&(m.sr=m.spatialReference,delete m.spatialReference),d[e]=c?m:b.toJson(m)):d[e]=h}return d},_successHandler:function(f,c,a,d){c&&this[c].apply(this,f);a&&a.apply(null,f);d&&
n._resDfd(d,f)},_errorHandler:function(f,c,a){this.onError(f);c&&c(f);a&&a.errback(f)},setNormalization:function(f){this.normalization=f},onError:function(){}});w("extend-esri")&&(p.Task=E);return E})},"esri/tasks/FeatureSet":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ../graphic ../SpatialReference ../graphicsUtils ../geometry/Polygon ../geometry/jsonUtils ../symbols/jsonUtils".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d){E=E(null,{declaredClass:"esri.tasks.FeatureSet",
constructor:function(e,h){if(e){z.mixin(this,e);var m=this.features=this.features||[],g=e.spatialReference;g=this.spatialReference=a.createInstance(q.simpleConstructor,g);var k=a.getGeometryType(e.geometryType);this.geometryType=e.geometryType;e.fields&&(this.fields=e.fields);e=a.supportsLazyUnquantization(this.geometryType);var x=a.unquantizeFunction(this.geometryType,this.transform),v=!!(h&&e&&x),y=k&&(v?k.accessorConstructor:k.simpleConstructor);b.forEach(m,function(u,t){var r=a.createInstance(l.simpleConstructor),
B=u.geometry;if(k&&B){var C=r.geometry=a.createInstance(y,v?null:B);C.setSpatialReference(B.spatialReference?a.createInstance(q.simpleConstructor,B.spatialReference):g);v&&C.setupLazyUnquantization(x,B)}r.symbol=u.symbol?d.fromJson(u.symbol):null;r.attributes=u.attributes;m[t]=r});v||this._hydrate()}else this.features=[]},displayFieldName:null,geometryType:null,spatialReference:null,fieldAliases:null,toJson:function(e){var h={};this.displayFieldName&&(h.displayFieldName=this.displayFieldName);this.fields&&
(h.fields=this.fields);this.spatialReference?h.spatialReference=this.spatialReference.toJson():this.features[0]&&this.features[0].geometry&&(h.spatialReference=this.features[0].geometry.spatialReference.toJson());this.features[0]&&(this.features[0].geometry&&(h.geometryType=a.getJsonType(this.features[0].geometry)),h.features=f._encodeGraphics(this.features,e));h.geometryType=h.geometryType||this.geometryType;h.exceededTransferLimit=this.exceededTransferLimit;h.transform=this.transform;return n.fixJson(h)},
_hydrate:function(){a.unquantize(this.features,this.geometryType,this.transform);this.transform=null},quantize:function(e){if(!this.geometryType)return this.transform=null,this;var h=e.translate[0],m=e.translate[1],g=e.scale[0],k=e.scale[1],x=this.features,v=function(r,B,C){var F,A=[];var D=0;for(F=r.length;D<F;D++){var G=r[D];if(0<D){var H=B(G[0]);G=C(G[1]);if(H!==L||G!==aa){A.push([H-L,G-aa]);var L=H;var aa=G}}else L=B(G[0]),aa=C(G[1]),A.push([L,aa])}return 0<A.length?A:null},y=function(r,B,C){if("esriGeometryPoint"===
r)return function(F){F.x=B(F.x);F.y=C(F.y);return F};if("esriGeometryPolyline"===r||"esriGeometryPolygon"===r)return function(F){var A;var D=F.rings||F.paths;var G=[];var H=0;for(A=D.length;H<A;H++){var L=D[H];(L=v(L,B,C))&&G.push(L)}return 0<G.length?(F.rings?F.rings=G:F.paths=G,F):null};if("esriGeometryMultipoint"===r)return function(F){var A=v(F.points,B,C);return 0<A.length?(F.points=A,F):null};if("esriGeometryEnvelope"===r)return function(F){return F}}(this.geometryType,function(r){return Math.round((r-
h)/g)},function(r){return Math.round((m-r)/k)}),u;var t=0;for(u=x.length;t<u;t++)x[t].geometry&&(y(x[t].geometry)||x[t].setGeometry(null));this.transform=e;return this}});E.createGraphics=function(e){var h=e.geometryType,m=a.createInstance(q.simpleConstructor,e.spatialReference),g=a.getGeometryType(h).accessorConstructor,k=a.unquantizeFunction(h,e.transform);return b.map(e.features,function(x,v){v=a.createInstance(l.simpleConstructor);var y=x.geometry;if(y){var u=v.geometry=a.createInstance(g);u.setSpatialReference(m);
u.setupLazyUnquantization(k,y)}v.attributes=x.attributes;return v})};E.createPolygon=function(e,h,m){if(e){var g=a.createInstance(c.accessorConstructor);g.setSpatialReference(h);h=a.unquantizeFunction("esriGeometryPolygon",m);g.setupLazyUnquantization(h,e)}return g};w("extend-esri")&&z.setObject("tasks.FeatureSet",E,p);return E})},"esri/tasks/StatisticDefinition":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(E,z,b,w){E=E(null,{declaredClass:"esri.tasks.StatisticDefinition",
toJson:function(){return{statisticType:this.statisticType,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount}}});b("extend-esri")&&z.setObject("tasks.StatisticDefinition",E,w);return E})},"esri/layers/FeatureType":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ../symbols/jsonUtils ./FeatureTemplate ./support/domainUtils".split(" "),
function(E,z,b,w,p,n,l,q,f){E=E(null,{declaredClass:"esri.layers.FeatureType",constructor:function(c){if(c&&z.isObject(c)){this.id=c.id;this.name=c.name;var a=c.symbol;a&&(this.symbol=l.fromJson(a));a=c.domains;var d=this.domains={};for(e in a)a.hasOwnProperty(e)&&(d[e]=f.fromJson(a[e]));if(c=c.templates){var e=this.templates=[];for(a=0;a<c.length;a++)e.push(new q(c[a]))}}},toJson:function(){var c={id:this.id,name:this.name,symbol:this.symbol&&this.symbol.toJson()},a,d=this.domains,e=this.templates,
h=n.fixJson;if(d){var m=c.domains={};for(a in d)d.hasOwnProperty(a)&&(m[a]=d[a]&&d[a].toJson());h(m)}e&&(c.templates=b.map(e,function(g){return g.toJson()}));return h(c)}});w("extend-esri")&&z.setObject("layers.FeatureType",E,p);return E})},"esri/layers/FeatureTemplate":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../graphic".split(" "),function(E,z,b,w,p,n){E=E(null,{declaredClass:"esri.layers.FeatureTemplate",constructor:function(l){l&&z.isObject(l)&&(this.name=
l.name,this.description=l.description,this.drawingTool=l.drawingTool,this.thumbnail=l.thumbnail,l=l.prototype,this.prototype=new n(l.geometry,null,l.attributes))},toJson:function(){return p.fixJson({name:this.name,description:this.description,drawingTool:this.drawingTool,thumbnail:p.fixJson(z.clone(this.thumbnail)),prototype:this.prototype&&this.prototype.toJson()})}});z.mixin(E,{TOOL_AUTO_COMPLETE_POLYGON:"esriFeatureEditToolAutoCompletePolygon",TOOL_CIRCLE:"esriFeatureEditToolCircle",TOOL_ELLIPSE:"esriFeatureEditToolEllipse",
TOOL_FREEHAND:"esriFeatureEditToolFreehand",TOOL_LINE:"esriFeatureEditToolLine",TOOL_NONE:"esriFeatureEditToolNone",TOOL_POINT:"esriFeatureEditToolPoint",TOOL_POLYGON:"esriFeatureEditToolPolygon",TOOL_RECTANGLE:"esriFeatureEditToolRectangle",TOOL_ARROW:"esriFeatureEditToolArrow",TOOL_TRIANGLE:"esriFeatureEditToolTriangle",TOOL_LEFT_ARROW:"esriFeatureEditToolLeftArrow",TOOL_RIGHT_ARROW:"esriFeatureEditToolRightArrow",TOOL_UP_ARROW:"esriFeatureEditToolUpArrow",TOOL_DOWN_ARROW:"esriFeatureEditToolDownArrow"});
b("extend-esri")&&z.setObject("layers.FeatureTemplate",E,w);return E})},"esri/layers/support/domainUtils":function(){define("dojo/_base/lang dojo/has ../../kernel ../RangeDomain ../CodedValueDomain ../InheritedDomain".split(" "),function(E,z,b,w,p,n){var l={fromJson:function(q){if(q)switch(q.type){case "range":var f=new w(q);break;case "codedValue":f=new p(q);break;case "inherited":f=new n(q)}return f}};z("extend-esri")&&E.setObject("layers.support.domainUtils",l,b);return l})},"esri/layers/FeatureSubtype":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./support/domainUtils".split(" "),
function(E,z,b,w,p,n){E=E(null,{declaredClass:"esri.layers.FeatureSubtype",constructor:function(l){if(l&&z.isObject(l)){this.code=l.code;this.name=l.name;this.defaultValues=l.defaultValues;l=l.domains;var q=this.domains={},f;for(f in l)l.hasOwnProperty(f)&&(q[f]=n.fromJson(l[f]))}},toJson:function(){var l=p.fixJson,q={code:this.code,name:this.name,defaultValues:l(z.clone(this.defaultValues))},f=this.domains;if(f){var c=q.domains={},a;for(a in f)f.hasOwnProperty(a)&&(c[a]=f[a]&&f[a].toJson());l(c)}return l(q)}});
b("extend-esri")&&z.setObject("layers.FeatureSubtype",E,w);return E})},"esri/layers/FeatureEditResult":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(E,z,b,w){E=E(null,{declaredClass:"esri.layers.FeatureEditResult",constructor:function(p){p&&z.isObject(p)&&(this.objectId=p.objectId,this.globalId=p.globalId,this.success=p.success,p.success||(p=p.error,this.error=Error(),this.error.code=p.code,this.error.message=p.description))}});b("extend-esri")&&z.setObject("layers.FeatureEditResult",
E,w);return E})},"esri/layers/SnapshotMode":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../SpatialReference ../srUtils ../tasks/query ./RenderMode ./support/ParallelSnapshot".split(" "),function(E,z,b,w,p,n,l,q,f){E=E([q],{declaredClass:"esri.layers._SnapshotMode",maxFeatures:5E4,maxRecordCountFactor:1,scaleToTileFactor:1,_isSuspendedAtStartup:!1,_pendingRefresh:!1,constructor:function(c){this.featureLayer=c;this._featureMap={};this._hasUpdateError=this._hasPartialFeatures=
!1;this._drawFeatures=z.hitch(this,this._drawFeatures);this._queryErrorHandler=z.hitch(this,this._queryErrorHandler);this._handleSuccess=z.hitch(this,this._handleSuccess);this._handleError=z.hitch(this,this._handleError);this._handleProgress=z.hitch(this,this._handleProgress)},startup:function(){if(!this._started||this._isSuspendedAtStartup){this.inherited(arguments);var c=this.featureLayer,a=c.reHostedFS.test(c.url);this.pagination=c.queryPagination&&null!=c.maxRecordCount;this._cacheHintSupported=
c._isCacheHintSupported();this.scaleToTileFactor=this._getScaleToTileFactor();a&&this.pagination&&(this._parallelSnapshot=new f({layer:c,mode:this,queryTask:c._task}));this._isSuspendedAtStartup=c.suspended;this._startup()}},propertyChangeHandler:function(c){this._init&&(c?this.featureLayer._collection?console.log("FeatureLayer: layer created by value (from a feature collection) does not support definition expressions and time definitions. Layer id \x3d "+this.featureLayer.id):this._fetchAll():this._applyTimeFilter())},
destroy:function(){this._isSuspendedAtStartup=this._pendingRefresh=!1;this._cancelPendingRequest(this._pendingRequest);this._parallelSnapshot&&this._parallelSnapshot.destroy();this.inherited(arguments)},drawFeature:function(c){var a=c.attributes[this.featureLayer.objectIdField];this._addFeatureIIf(a,c);this._incRefCount(a)},resume:function(){this._isSuspendedAtStartup||this._pendingRefresh?(this._isSuspendedAtStartup=!1,this._startup()):this.propertyChangeHandler(0)},refresh:function(){var c=this.featureLayer;
c._collection?(c._fireUpdateStart(),c._refresh(!0),c._fireUpdateEnd()):this._fetchAll()},hasAllFeatures:function(){return!this._hasPartialFeatures},hasUpdateError:function(){return this._hasUpdateError},canFetchPBF:function(c){return this.inherited(arguments)&&this.featureLayer._canFetchPBFForQuery(c)},_startup:function(){this.featureLayer._collection?this._applyTimeFilter():this._fetchAll()},_fetchAll:function(){var c=this.featureLayer;c._collection||c.suspended||!c.isQueryable()?this._pendingRefresh=
c.suspended:(this._pendingRefresh=!1,c._fireUpdateStart(),this._clearIIf(),this._hasUpdateError=this._hasPartialFeatures=!1,this._parallelSnapshot?this._parallelSnapshot.fetch().then(this._handleSuccess,this._handleError,this._handleProgress):this._sendRequest())},_handleSuccess:function(c){this._hasPartialFeatures=c.hasPartialFeatures;this._hasUpdateError=c.hasUpdateError;this.featureLayer._fireUpdateEnd(null)},_handleError:function(c){this._queryErrorHandler(c)},_handleProgress:function(c){c.isError?
this.featureLayer._errorHandler(c.error):this._addFeatures(c.features)},_getScaleToTileFactor:function(){var c=this.featureLayer.tileMaxRecordCount,a=this.featureLayer.maxRecordCount,d=1;null!=c&&null!=a&&(d=Number((c/a).toFixed(2)));return d},_getPageSize:function(c){var a=this.featureLayer.tileMaxRecordCount;a="tile"===c.resultType&&a?a:this.featureLayer.maxRecordCount;c.maxRecordCountFactor&&(a=Math.floor(a*c.maxRecordCountFactor));return a},_sendRequest:function(c){var a=this.featureLayer,d=this._createQueryInfo(),
e=d.query;this.pagination&&(this._pageSize=this._getPageSize(e),this._start=e.start=null==c?0:c,e.num=this._pageSize);this._pendingRequest&&this._cancelPendingRequest(this._pendingRequest);this._pendingRequest=a._task.execute(e,this._drawFeatures,this._queryErrorHandler,d.pbf?{format:"pbf"}:null)},_drawFeatures:function(c){this._pendingRequest=null;this.featureLayer._isImageService&&10.7>this.featureLayer.version&&void 0===c.exceededTransferLimit&&(c.exceededTransferLimit=c.features.length===this.featureLayer.maxRecordCount);
var a=this.featureLayer,d=c.exceededTransferLimit,e=d&&!a._collection;c=this._checkMaxLimit(c.features);var h=c.maxLimitReached;this._addFeatures(c.features);this.pagination&&e&&!h||(this._hasPartialFeatures=!!d,a._fireUpdateEnd(null,d?{queryLimitExceeded:!0}:null));e&&(this.pagination&&!h&&this._sendRequest(this._start+this._pageSize),a.onQueryLimitExceeded())},_queryErrorHandler:function(c){this._pendingRequest=null;this._hasUpdateError=this._hasPartialFeatures=!0;var a=this.featureLayer;a._errorHandler(c);
a._fireUpdateEnd(c)},_checkMaxLimit:function(c){var a=c?c.length:0,d=this.featureLayer.graphics.length+a,e=d>=this.maxFeatures;if(e){var h=d-this.maxFeatures;h&&c.splice(a-h,h)}return{maxLimitReached:e,featuresDiscarded:d>this.maxFeatures,features:c}},_createQueryInfo:function(){var c=this.featureLayer,a=new l;a.outFields=c.getOutFields();a.where=c._getAttributeFilter()||"1\x3d1";a.returnGeometry=!0;a.outSpatialReference=n.createSpatialReference(this.map.spatialReference.toJson());a.timeExtent=c.getTimeDefinition();
a.maxAllowableOffset=c._maxOffset;a.quantizationParameters=c._quantizationParameters;a.orderByFields=c.supportsAdvancedQueries?c.getOrderByFields():null;a.multipatchOption=c.multipatchOption;c._ts&&(a._ts=(new Date).getTime());this._cacheHintSupported&&c._enableCacheHint(a);var d=this.canFetchPBF(a);c._enableEditModeQuantization(a,d);this._applyMaxRecordCountFactor(a,d);return{query:a,pbf:d}},_applyMaxRecordCountFactor:function(c,a){var d=this.featureLayer.advancedQueryCapabilities;this.featureLayer._isCacheHintEnabled(c)&&
d&&d.supportsMaxRecordCountFactor&&("tile"!==c.resultType&&1<this.scaleToTileFactor&&(c.maxRecordCountFactor=this.scaleToTileFactor),a&&1<this.maxRecordCountFactor&&(c.maxRecordCountFactor=this.maxRecordCountFactor),5<c.maxRecordCountFactor&&(c.maxRecordCountFactor=5))},_addFeatures:function(c){var a=this.featureLayer,d=a.objectIdField,e=c.length,h=a._selectedFeatures,m=a.mode===a.constructor.MODE_AUTO;a._fireUpdateStart();a._sortFeatures(c);for(a=0;a<e;a++){var g=c[a];var k=g.attributes[d];var x=
this._addFeatureIIf(k,g);this._incRefCount(k);m&&x!==g&&h[k]&&(x.setGeometry(g.geometry),x.setAttributes(g.attributes))}this._applyTimeFilter(!0)}});b("extend-esri")&&z.setObject("layers._SnapshotMode",E,w);return E})},"esri/layers/RenderMode":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/array","../sniff","../kernel"],function(E,z,b,w,p){var n=!!w("esri-pbf"),l=!!w("esri-featurelayer-pbf");E=E(null,{declaredClass:"esri.layers._RenderMode",enablePBFQuery:n&&l,initialize:function(q){this.map=
q;this._init=!0},startup:function(){this._started=!0},propertyChangeHandler:function(q){},destroy:function(){this._init=this._started=!1},drawFeature:function(q){},suspend:function(){},resume:function(){},refresh:function(){},hasAllFeatures:function(){return!0},hasUpdateError:function(){return!1},canFetchPBF:function(q){return!(!this.featureLayer._canFetchPBF()||!this.enablePBFQuery)},_incRefCount:function(q){(q=this._featureMap[q])&&q._count++},_decRefCount:function(q){(q=this._featureMap[q])&&q._count--},
_getFeature:function(q){return this._featureMap[q]},_addFeatureIIf:function(q,f){var c=this._featureMap,a=c[q],d=this.featureLayer;a||(c[q]=f,d._add(f),f._count=0);return a||f},_removeFeatureIIf:function(q){var f=this._featureMap[q],c=this.featureLayer;if(f){if(f._count)return;delete this._featureMap[q];c._remove(f)}return f},_registerFeature:function(q,f){var c=this._featureMap,a=c[q];a?(a.attributes=f.attributes,a.geometry=f.geometry):(c[q]=f,f._count=0,f._layer=f._graphicsLayer=f._sourceLayer=
this.featureLayer);return a||f},_unregisterFeature:function(q){var f=this._featureMap,c=f[q];c&&!c._count&&(delete f[q],c._graphicsLayer=null)},_clearIIf:function(){var q=this.featureLayer;var f=q.graphics,c=q._selectedFeatures,a=q.getSelectedFeatures().length,d=q.objectIdField;if(a)for(q=f.length-1;0<=q;q--){a=f[q];var e=a.attributes[d];e in c?a._count=1:(a._count=0,this._removeFeatureIIf(e))}else q.clear(),this._featureMap={}},_cancelPendingRequest:function(q){if(q)try{q.cancel()}catch(f){}},_toggleVisibility:function(q){var f=
this.featureLayer,c=f.graphics,a=q?"show":"hide",d,e=c.length;q=q&&f._ager;for(d=0;d<e;d++){var h=c[d];h[a]();q&&f._repaint(h)}},_applyTimeFilter:function(q){var f=this.featureLayer;if(f.timeInfo&&!f.suspended){q||f._fireUpdateStart();var c=f._trackManager;c&&c.clearTracks();var a=f.getTimeDefinition(),d=f._getOffsettedTE(f._mapTimeExtent);d?(d=f._getTimeOverlap(a,d))?(a=f._filterByTime(f.graphics,d.startTime,d.endTime),c&&c.addFeatures(a.match),b.forEach(a.match,function(e){var h=e._shape;e.visible||
(e.show(),(h=e._shape)&&h._moveToFront());f._ager&&h&&f._repaint(e)}),b.forEach(a.noMatch,function(e){e.visible&&e.hide()})):this._toggleVisibility(!1):(c&&c.addFeatures(f.graphics),this._toggleVisibility(!0));c&&(c.moveLatestToFront(),c.drawTracks());q||f._fireUpdateEnd()}}});w("extend-esri")&&z.setObject("layers._RenderMode",E,p);return E})},"esri/layers/support/ParallelSnapshot":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has dojo/Deferred ../../kernel".split(" "),
function(E,z,b,w,p,n){E=E(null,{declaredClass:"esri.layers.support.ParallelSnapshot",layer:null,mode:null,queryTask:null,batchSize:5,_queryInfo:null,_fetchDfd:null,_startPage:null,_lastPage:null,_pageSize:null,_maxPages:null,_requests:null,constructor:function(l){z.mixin(this,l);this._requests={}},destroy:function(){this.cancel()},fetch:function(){var l=new p;this.cancel(!0);this._queryInfo=this.mode._createQueryInfo();this._pageSize=this.mode._getPageSize(this._queryInfo.query);this._maxPages=Math.ceil(this._getFeatureCount()/
this._pageSize);this._fetchDfd=l;this._sendRequests();return l.promise},cancel:function(l){this._cancelPendingRequests(l);this._reset()},_reset:function(){this._startPage=this._lastPage=null;this._requests={}},_getFeatureCount:function(){return this.layer.mode===this.layer.constructor.MODE_AUTO&&0===this.layer.getLastExceedsLimitResult()?this.layer._getMaxFeaturesForAutoSnapshotMode():this.mode.maxFeatures},_sendRequests:function(l){var q=this._queryInfo.query,f=this.queryTask,c=this._requests;l=
null==l?1:l;var a=l+this.batchSize-1;a>this._maxPages&&(a=this._maxPages);if(!(l>a))for(this._startPage=l,this._lastPage=a;l<=a;l++)q.start=(l-1)*this._pageSize,q.num=this._pageSize,c[l]=f.execute(q,null,null,this._queryInfo.pbf?{format:"pbf"}:null),c[l].then(z.hitch(this,this._handleSuccess,l)).otherwise(z.hitch(this,this._handleError,l))},_evalNextBatch:function(l){l===this._lastPage&&this._sendRequests(this._lastPage+1)},_handleSuccess:function(l,q){q.exceededTransferLimit||this._cancelLaterRequests(l,
!0);var f=this.mode._checkMaxLimit(q.features);this._fetchDfd.progress({features:f.features,isError:!1});f.maxLimitReached?((l=f.featuresDiscarded||this._hasRejectedRequests())||(l=!!this._getResult(this._getLastSuccessfulRequest()).exceededTransferLimit),this._resolveFetch(l)):(q.exceededTransferLimit&&this._evalNextBatch(l),this._evalResolution())},_handleError:function(l,q){var f=this._requests;f&&f[l]&&(1===l?this._rejectFetch(q):(this._evalNextBatch(l),this._fetchDfd.progress({error:q,isError:!0}),
this._evalResolution()))},_evalResolution:function(){this._hasPendingRequests()||this._resolveFetch(this._hasRejectedRequests())},_resolveFetch:function(l){var q=this._hasRejectedRequests();this.cancel(!0);this._fetchDfd.resolve({hasPartialFeatures:l,hasUpdateError:q})},_rejectFetch:function(l){this.cancel(!0);this._fetchDfd.reject(l)},_getResult:function(l){return l&&l.dfd.results[0]},_hasPendingRequests:function(){return!!this._getPendingRequests().length},_getPendingRequests:function(){var l=this._requests,
q,f=[];for(q in l){var c=l[q];c.isFulfilled()||f.push({pageId:Number(q),dfd:c})}return f},_getLastSuccessfulRequest:function(){var l=this._getResolvedRequests(),q=-Infinity,f;l=b.filter(l,function(c){return!!this._getResult(c).features.length||1===c.pageId},this);b.forEach(l,function(c){c.pageId>q&&(q=c.pageId,f=c)});return f},_getResolvedRequests:function(){var l=this._requests,q,f=[];for(q in l){var c=l[q];c.isResolved()&&f.push({pageId:Number(q),dfd:c})}return f},_hasRejectedRequests:function(){var l=
this._getRejectedRequests(),q=this._getLastSuccessfulRequest(),f=this._getResult(q);f&&!f.exceededTransferLimit&&(l=b.filter(l,function(c){return c.pageId<=q.pageId}));return!!l.length},_getRejectedRequests:function(){var l=this._requests,q,f=[];for(q in l){var c=l[q];c.isRejected()&&f.push({pageId:Number(q),dfd:c})}return f},_cancelPendingRequests:function(l){this._cancelRequests(this._getPendingRequests(),l)},_cancelLaterRequests:function(l,q){var f=b.filter(this._getPendingRequests(),function(c){return c.pageId>
l});this._cancelRequests(f,q)},_cancelRequests:function(l,q){var f=this.mode,c=this._requests;b.forEach(l,function(a){q&&delete c[a.pageId];f._cancelPendingRequest(a.dfd)})}});w("extend-esri")&&z.setObject("layers.support.ParallelSnapshot",E,n);return E})},"esri/layers/OnDemandMode":function(){define("dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/has ../kernel ../geometry/Point ../tasks/query ./RenderMode ./GridLayout".split(" "),function(E,z,b,w,p,n,l,q,f,c){E=E([f],
{declaredClass:"esri.layers._OnDemandMode",constructor:function(a){this.featureLayer=a;this._featureMap={}},initialize:function(a){this.inherited(arguments);this._cellMap={};this._gridLayer=c.createFromFeatureLayer({layer:this.featureLayer,map:a})},startup:function(){if(!this._started||this._isSuspendedAtStartup)this.inherited(arguments),this._ioQueue=[],this._isSuspendedAtStartup=this.featureLayer.suspended,this.featureLayer.suspended||(this._zoomHandler(),this._enableConnectors())},propertyChangeHandler:function(a){this._init&&
(2>a?this._zoomHandler():console.log("FeatureLayer: layer in on-demand mode does not support time definitions. Layer id \x3d "+this.featureLayer.id+", Layer URL \x3d "+this.featureLayer.url))},destroy:function(){this._disableConnectors();this._processIOQueue(!0);this.inherited(arguments)},drawFeature:function(a){var d=a.geometry,e=[];if(d){e=this._gridLayer.getCellsInExtent("point"===d.type?{xmin:d.x,ymin:d.y,xmax:d.x,ymax:d.y}:d.getExtent(),!1).cells;d=this._cellMap;var h,m=a.attributes[this.featureLayer.objectIdField];
for(h=0;h<e.length;h++){var g=e[h];var k=g.latticeID;var x=g.row;var v=g.col;k?g=d[k]=d[k]||g:(d[x]=d[x]||{},g=d[x][v]=d[x][v]||g);g.features=g.features||[];g.features.push(a);this._addFeatureIIf(m,a);this._incRefCount(m)}}},suspend:function(){this._init&&this._disableConnectors()},resume:function(){this._init&&(this._enableConnectors(),this._zoomHandler())},refresh:function(){this._zoomHandler()},hasAllFeatures:function(){var a=!1,d=this._getCurrentCells(),e;for(e=0;e<d.length;e++)if(d[e].hasPartialFeatures){a=
!0;break}return!a},hasUpdateError:function(){var a=!1,d=this._getCurrentCells(),e;for(e=0;e<d.length;e++)if(d[e].hasUpdateError){a=!0;break}return a},canFetchPBF:function(a){return this.inherited(arguments)&&this.featureLayer._canFetchPBFForQuery(a)},_enableConnectors:function(){var a=this.map;this._zoomConnect=z.connect(a,"onZoomEnd",this,this._zoomHandler);this._panConnect=z.connect(a,"onPanEnd",this,this._panHandler);this._resizeConnect=z.connect(a,"onResize",this,this._panHandler)},_disableConnectors:function(){z.disconnect(this._zoomConnect);
z.disconnect(this._panConnect);z.disconnect(this._resizeConnect)},_zoomHandler:function(){this._processIOQueue(!0);var a=this.featureLayer,d=this.map;!a.suspended&&a.isQueryable()&&(a._fireUpdateStart(),this._clearIIf(),(a=a._trackManager)&&a.clearTracks(),this._cellMap={},this._gridLayer.setResolution(d.extent),this._sendRequest())},_panHandler:function(a){if(this.featureLayer.isQueryable()){this.featureLayer._fireUpdateStart();var d=this.featureLayer._resized;a=d?a:null;d&&this._gridLayer.setMapState(a,
this.map.width,this.map.height);this._sendRequest(a)}},_sendRequest:function(a){this._exceeds=!1;var d=this.featureLayer,e=this.map;a=a||e.extent;e=this._gridLayer.getCellsInExtent(a,d.latticeTiling).cells;if(!d.isEditable()){var h=this._cellMap;e=w.filter(e,function(x){if(x.lattice){if(h[x.latticeID])return!1}else if(h[x.row]&&h[x.row][x.col])return!1;return!0})}this._pending=this._pending||0;var m;for(m=0;m<e.length;m++){var g=e[m],k=this._createQueryInfo(g);this._pending++;this._ioQueue.push(d._task.execute(k.query,
b.hitch(this,this._drawFeatures,g),b.hitch(this,this._queryErrorHandler,g),k.pbf?{format:"pbf"}:null))}this._removeOldCells(a);this._endCheck()},_drawFeatures:function(a,d){this.featureLayer._isImageService&&10.7>this.featureLayer.version&&void 0===d.exceededTransferLimit&&(d.exceededTransferLimit=d.features.length===this.featureLayer.maxRecordCount);a.hasPartialFeatures=!!d.exceededTransferLimit;a.hasUpdateError=!1;this._exceeds=this._exceeds||d.exceededTransferLimit;this._finalizeIO();var e=this.featureLayer,
h=this.map.extent,m=a.extent,g=a.row,k=a.col,x=e.objectIdField;d=d.features;var v=this._gridLayer,y=this._cellMap,u=a.latticeID;y=u?y[u]:y[g]&&y[g][k];if(a.resolution==v.resolution&&(u?u===v.getLatticeID(h):v.intersects(m,h)))if(y)e._sortFeatures(d),this._updateCell(y,d);else for(e._sortFeatures(d),a.features=d,this._addCellToCellMap(a),e=d.length,a=0;a<e;a++)h=d[a],m=h.attributes[x],this._addFeatureIIf(m,h),this._incRefCount(m);else y&&this._removeCell(g,k,u);this._endCheck()},_queryErrorHandler:function(a,
d){this._finalizeIO();a.hasPartialFeatures=!0;a.hasUpdateError=!0;this._addCellToCellMap(a);this.featureLayer._errorHandler(d);this._endCheck(d)},_finalizeIO:function(){this._pending--},_endCheck:function(a){if(0===this._pending){this._processIOQueue();var d=this.featureLayer,e=d._trackManager;e&&(e.clearTracks(),e.addFeatures(d.graphics),d._ager&&w.forEach(d.graphics,function(h){h._shape&&d._repaint(h)}),e.moveLatestToFront(),e.drawTracks());this.featureLayer._fireUpdateEnd(!!a&&Error("FeatureLayer: "+
(a.message||"an error occurred while updating the layer.")),this._exceeds?{queryLimitExceeded:!0}:null);if(this._exceeds)d.onQueryLimitExceeded()}},_processIOQueue:function(a){this._ioQueue=w.filter(this._ioQueue,function(d){return-1<d.fired?!1:!0});a&&w.forEach(this._ioQueue,this._cancelPendingRequest)},_createQueryInfo:function(a){var d=this.featureLayer,e=new q;e.outFields=d.getOutFields();e.where=d._getAttributeFilter();e.returnGeometry=!0;e.geometry=a.extent||a.lattice;d.latticeTiling&&a.extent&&
(e.spatialRelationship=q.SPATIAL_REL_CONTAINS);e.timeExtent=d._getOffsettedTE(d._mapTimeExtent);e.maxAllowableOffset=d._maxOffset;e.quantizationParameters=d._quantizationParameters;e.orderByFields=d.supportsAdvancedQueries?d.getOrderByFields():null;e.multipatchOption=d.multipatchOption;d._ts&&(e._ts=(new Date).getTime());(a=d.advancedQueryCapabilities)&&a.supportsQueryWithResultType&&(e.resultType="tile");a=this.canFetchPBF(e);d._enableEditModeQuantization(e,a);return{query:e,pbf:a}},_getCurrentCells:function(a){var d=
[];a=a||this._cellMap;for(var e in a)if(a.hasOwnProperty(e)){var h=a[e];h&&(h.hasOwnProperty("row")||h.hasOwnProperty("latticeID")?d.push(h):"object"===typeof h&&d.push.apply(d,this._getCurrentCells(h)))}return d},_addCellToCellMap:function(a){var d=this._cellMap;if(a.latticeID)d[a.latticeID]=a;else{var e=a.row,h=a.col;d[e]=d[e]||{};d[e][h]=a}},_removeOldCells:function(a){var d=this._cellMap,e=this._gridLayer,h,m;for(h in d)if(d[h]){var g=d[h],k=g.latticeID,x=0,v=0;if(k)x++,k!==e.getLatticeID(a)&&
(this._removeCell(null,null,k),v++);else for(m in g)g[m]&&(x++,e.intersects(g[m].extent,a)||(this._removeCell(h,m),v++));v===x&&delete d[h]}},_updateCell:function(a,d){var e=this.featureLayer,h=e.objectIdField;e=e._selectedFeatures;var m,g=d.length;a.features=a.features||[];for(m=0;m<g;m++){var k=d[m],x=k.attributes[h],v=this._addFeatureIIf(x,k);v===k?(this._incRefCount(x),a.features.push(v)):x in e||(v.setGeometry(k.geometry),v.setAttributes(k.attributes))}},_removeCell:function(a,d,e){var h=this._cellMap,
m=this.featureLayer,g=m.objectIdField,k=e?h[e]:h[a]&&h[a][d];if(k&&(e?delete h[e]:delete h[a][d],a=k.features))for(d=0;d<a.length;d++)e=a[d].attributes[g],this._decRefCount(e),e in m._selectedFeatures||this._removeFeatureIIf(e)}});p("extend-esri")&&b.setObject("layers._OnDemandMode",E,n);return E})},"esri/layers/GridLayout":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../geometry/Point ../geometry/Extent ../geometry/Polyline ../geometry/Polygon ../geometry/normalizeUtils ../srUtils".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a){var d=E(null,{declaredClass:"esri.layers._GridLayout",constructor:function(e,h,m,g){this.origin=e;this.cellWidth=h.width;this.cellHeight=h.height;this.mapWidth=m.width;this.mapHeight=m.height;this.srInfo=g},setResolution:function(e){this.resolution=(e.xmax-e.xmin)/this.mapWidth;this.srInfo&&(e=Math.round(Math.round(2*this.srInfo.valid[1]/this.resolution)/this.cellWidth),this._frameStats=[e,0,e-1])},setMapState:function(e,h,m){this.mapWidth=h;this.mapHeight=m;this.setResolution(e)},
getCellCoordinates:function(e){var h=this.resolution,m=this.origin;return{row:Math.floor((m.y-e.y)/(this.cellHeight*h)),col:Math.floor((e.x-m.x)/(this.cellWidth*h))}},normalize:function(e){var h=this._frameStats;if(h){var m=h[0],g=h[1];h=h[2];e<g?(e%=m,e=e<g?e+m:e):e>h&&(e%=m)}return e},intersects:function(e,h){var m=this.srInfo;return m?b.some(h._getParts(m),function(g){return e.intersects(g.extent)}):e.intersects(h)},getCellExtent:function(e,h){var m=this.resolution,g=this.origin,k=this.cellWidth,
x=this.cellHeight;return new l(h*k*m+g.x,g.y-(e+1)*x*m,(h+1)*k*m+g.x,g.y-e*x*m,a.createSpatialReference(g.spatialReference.toJson()))},getLatticeID:function(e){var h=this.getCellCoordinates({x:e.xmin,y:e.ymax}),m=this.getCellCoordinates({x:e.xmax,y:e.ymin});e=h.row;var g=m.row;h=this.normalize(h.col);m=this.normalize(m.col);return e+"_"+g+"_"+h+"_"+m},sorter:function(e,h){return e<h?-1:1},getCellsInExtent:function(e,h){var m=this.getCellCoordinates({x:e.xmin,y:e.ymax}),g=this.getCellCoordinates({x:e.xmax,
y:e.ymin}),k=m.row,x=g.row;m=m.col;g=g.col;var v=[],y,u,t=[],r=[],B=[];for(y=k;y<=x;y++)for(u=m;u<=g;u++){var C=this.normalize(u);e=this.getCellExtent(y,C);b.some(v,function(D){return D.row===y&&D.col===C})||v.push({row:y,col:C,extent:e,resolution:this.resolution});h&&(t.push(e.xmin,e.xmax),r.push(e.ymin,e.ymax))}m=this.normalize(m);g=this.normalize(g);t.sort(this.sorter);r.sort(this.sorter);h=t.length;for(y=h-1;0<=y;y--)y<h-1&&t[y]===t[y+1]&&t.splice(y,1);h=r.length;for(y=h-1;0<=y;y--)y<h-1&&r[y]===
r[y+1]&&r.splice(y,1);if(t.length&&r.length){e=t[0];u=t[t.length-1];var F=r[0];var A=r[r.length-1];h=t.length;for(y=0;y<h;y++)B.push([[t[y],A],[t[y],F]]);h=r.length;for(y=0;y<h;y++)B.push([[e,r[y]],[u,r[y]]]);t=new q({paths:B,spatialReference:this.origin.spatialReference.toJson()});v.push({latticeID:k+"_"+x+"_"+m+"_"+g,lattice:t,resolution:this.resolution})}return{minRow:k,maxRow:x,minCol:m,maxCol:g,topRow:k,bottomRow:x,leftCol:m,rightCol:g,cells:v}},_findCell:function(e,h,m){var g;b.some(e,function(k){k.row===
h&&k.col===m&&(g=k);return!!g});return g},getExtentOfIntersectingCells:function(e){var h=this.getCellsInExtent(e),m=h&&h.cells;if(m&&m.length){var g=h.topRow,k=h.leftCol,x=0;b.forEach(m,function(t){t.row===g&&x++});var v=this._findCell(m,g,k).extent,y=this.srInfo;if(!y||x!==this._frameStats[0]&&k!==h.rightCol){var u=v.xmin;y=u+x*v.getWidth()}else u=y.valid[0],y=y.valid[1];h=this._findCell(m,h.bottomRow,k).extent.ymin;(e=(new l(u,h,y,v.ymax,e.spatialReference))._normalize(!1,!1))&&e.rings&&(e=new f(e),
e=c.getDenormalizedExtent(e));return e}}});d.createFromFeatureLayer=function(e){var h=e.layer;e=h.getMap()||e.map;var m=h._srInfo;(h=e&&e.loaded?new d(new n(m?m.valid[0]:e.extent.xmin,m?m.valid[1]:e.extent.ymax,e.spatialReference),{width:h._tileWidth,height:h._tileHeight},{width:e.width,height:e.height},m):null)&&h.setResolution(e.extent);return h};w("extend-esri")&&z.setObject("layers._GridLayout",d,p);return d})},"esri/layers/SelectionMode":function(){define(["dojo/_base/declare","dojo/_base/lang",
"dojo/has","../kernel","./RenderMode"],function(E,z,b,w,p){E=E([p],{declaredClass:"esri.layers._SelectionMode",constructor:function(n){this.featureLayer=n;this._featureMap={}},propertyChangeHandler:function(n){this._init&&0===n&&this._applyTimeFilter()},resume:function(){this.propertyChangeHandler(0)},hasAllFeatures:function(){return!this.featureLayer._hasPartialSelectedFeatures},hasUpdateError:function(){return this.featureLayer._hasSelectionError}});b("extend-esri")&&z.setObject("layers._SelectionMode",
E,w);return E})},"esri/layers/StreamMode":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/Deferred dojo/has ../kernel ../SpatialReference ../tasks/query ../tasks/QueryTask ../geometry/jsonUtils ./RenderMode".split(" "),function(E,z,b,w,p,n,l,q,f,c,a){E=E([a],{declaredClass:"esri.layers._StreamMode",constructor:function(d,e){this.featureLayer=d;this._featureMap={};this._setRefreshRate();this._drawBuffer={adds:[],updates:[]};this._timeoutId=null;this._flushDrawBuffer=z.hitch(this,
this._flushDrawBuffer);this._featuresByTime={};this._lastEndTimeCheck=null;this._maxFeatureAge=0;d.purgeOptions&&d.purgeOptions.age&&"number"===typeof d.purgeOptions.age&&(this._maxFeatureAge=1E3*Math.ceil(60*d.purgeOptions.age));this._drawFeatures=z.hitch(this,this._drawFeatures);this._queryErrorHandler=z.hitch(this,this._queryErrorHandler)},startup:function(){this._started||this.inherited(arguments)},propertyChangeHandler:function(d){this._init&&(0===d?this._applyTimeFilter():3===d?this._redrawAllTracks():
console.debug("StreamLayer: Stream Layer only supports changing map time or maximumTrackPoints. Layer id \x3d "+this.featureLayer.id))},destroy:function(){this.inherited(arguments);clearTimeout(this._timeoutId);this._featuresByTime=this._drawBuffer=this._featureMap=null},drawFeature:function(d){var e=this.featureLayer,h=e.objectIdField;this._timeoutId||(this._timeoutId=setTimeout(this._flushDrawBuffer,this._refreshRate));e._joinField&&this._getFeature(d.attributes[h])?this._drawBuffer.updates.push({oid:d.attributes[h],
updates:d}):this._drawBuffer.adds.push(d)},resume:function(){this.propertyChangeHandler(0)},refresh:function(){this._pendingRequest&&this._cancelPendingRequest(this._pendingRequest);var d=this.featureLayer;d&&(d._relatedUrl||d._keepLatestUrl?(d._fireUpdateStart(),d._refreshing=!0,d.disconnect(),d.clear(),d._relatedQueried=!1,d._keepLatestQueried=!1,d.connect()):(d._fireUpdateStart(),d.clear(),d._fireUpdateEnd()))},_drawFeatures:function(d,e){var h=this.featureLayer;h._create(d.features||[]);h._fireUpdateEnd(null,
e)},_applyTimeFilter:function(d){this.inherited(arguments);this._redrawAllTracks()},_removeFeatures:function(d){var e=this.featureLayer,h=e.objectIdField;d&&b.forEach(d,function(m){m=m.attributes[h];e._unSelectFeatureIIf(m,this);this._decRefCount(m);this._removeFeatureIIf(m)},this)},_addFeatures:function(d){var e=this.featureLayer,h=e._endTimeField,m=e._startTimeField,g,k=[],x=[],v=[];var y=e._trackManager;var u=e.objectIdField;if(y)for(g in d=y.addFeatures(d),d)d.hasOwnProperty(g)&&(k.push(g),d[g].adds&&
(x=x.concat(d[g].adds)),d[g].deletes&&(v=v.concat(d[g].deletes)));else x=d;b.forEach(x,function(t){var r=t.attributes[u];var B=h&&t.attributes[h];!B&&this._maxFeatureAge&&(B=m&&t.attributes[m]?t.attributes[m]+this._maxFeatureAge:Date.now()+this._maxFeatureAge);B&&(B=1E3*Math.ceil(B/1E3),this._featuresByTime[B]?this._featuresByTime[B].push(r):this._featuresByTime[B]=[r]);this._addFeatureIIf(r,t);this._incRefCount(r)},this);v.length&&this._removeFeatures(v);y&&y.refreshTracks(k)},_updateFeatures:function(d){var e=
this.featureLayer,h=[];var m=e._trackManager;var g=e._trackIdField;b.forEach(d,function(k){var x=k.updates;k=this._getFeature(k.oid);var v;if(k){x.geometry&&k.setGeometry(x.geometry);x=x.attributes||{};for(v in x)x.hasOwnProperty(v)&&(k.attributes[v]=x[v]);k.setAttributes(k.attributes);k.visible=this._checkFeatureTimeIntersects(k);m&&k.attributes[g]?h.push(k.attributes[g]):e._repaint(k,null,!0)}},this);h.length&&m.refreshTracks(h)},_redrawAllTracks:function(){var d=this.featureLayer._trackManager,
e;d&&(e=d.trimTracks())&&0<e.length&&(this._removeFeatures(e),d.refreshTracks())},_flushDrawBuffer:function(){clearTimeout(this._timeoutId);var d=this._drawBuffer,e=d.adds.splice(0,d.adds.length),h=d.updates.splice(0,d.updates.length);d=this.featureLayer;if(!d)return!1;d.updating||d._fireUpdateStart();this._addFeatures(e);this._updateFeatures(h);(e=this._getExpiredFeatures())&&e.length&&(this._removeFeatures(e),d._trackManager&&d._trackManager.removeFeatures(e));d._purge();d._fireUpdateEnd();this._timeoutId=
null},_clearDrawBuffer:function(){var d=this._timeoutId,e=this._drawBuffer,h=e.adds;e=e.updates;d&&clearTimeout(d);h.splice(0,h.length);e.splice(0,e.length);this._timeoutId=null},_clearTimeBin:function(){this._featuresByTime={};this._lastEndTimeCheck=1E3*Math.ceil(Date.now()/1E3)},_clearFeatureMap:function(){this._featureMap={}},_setRefreshRate:function(d){d=d||0===d?d:200;0>d&&(d=200);this._refreshRate=d},_checkFeatureTimeIntersects:function(d){var e=this.featureLayer,h=e.getMap();return(h=h?h.timeExtent:
null)&&e.timeInfo&&(e.timeInfo.startTimeField||e.timeInfo.endTimeField)?0<e._filterByTime([d],h.startTime,h.endTime).match.length:!0},_fetchArchive:function(d){var e=new w,h=this.featureLayer;this._pendingRequest&&this._cancelPendingRequest(this._pendingRequest);h._fireUpdateStart();if(d&&this.map){d=new f(d);var m=new q;var g=this.map;var k=h.getFilter()||{};var x=k.where||"1\x3d1";var v=k.geometry?c.fromJson(k.geometry):null;k=k.outFields?k.outFields.split(","):["*"];m.geometry=v;m.where=x;m.outFields=
k;m.returnGeometry=!0;m.outSpatialReference=new l(g.spatialReference.toJson());this._pendingRequest=d.execute(m).then(function(y){this._pendingRequest=null;var u=this._fixFieldNameCasing(h,y);y.features=u;this._drawFeatures(y);h._fireUpdateEnd();e.resolve()}.bind(this)).otherwise(function(y){this._pendingRequest=null;h._errorHandler(y);h._fireUpdateEnd(y);e.reject(y)}.bind(this))}else e.resolve();return e.promise},_queryErrorHandler:function(d){var e=this.featureLayer;e._errorHandler(d);e._fireUpdateEnd(d)},
_fixFieldNameCasing:function(d,e){var h=e.features||[],m=e.fields;if(!m||!h.length)return h;d=this._mapFieldNameDifferences(d.fields,m);m=[];for(var g,k=0,x=e.features.length;k<x;k++)e=h[k],g=this._swizzleResponseAttributes(e.attributes,d),m.push({geometry:e.geometry,attributes:g});return m},_mapFieldNameDifferences:function(d,e){var h=[],m={},g;var k=0;for(g=e.length;k<g;k++)h.push(e[k].name);k=0;for(g=d.length;k<g;k++){e=d[k].name;var x=this._checkForStreamFieldName(e,h);x&&(m[x]=e)}return m},_checkForStreamFieldName:function(d,
e){d=d.toLowerCase();for(var h,m=0,g=e.length;m<g;m++)if(e[m].toLowerCase()===d){h=e[m];break}return h},_swizzleResponseAttributes:function(d,e){var h={},m;for(m in d)if(d.hasOwnProperty(m)){var g=d[m];e.hasOwnProperty(m)?h[e[m]]=g:h[m]=g}return h},_getExpiredFeatures:function(){var d,e,h=[],m=[];if(!this.featureLayer._endTimeField&&!this._maxFeatureAge)return m;var g=1E3*Math.floor(this._lastEndTimeCheck/1E3);this._lastEndTimeCheck=d=1E3*Math.ceil(Date.now()/1E3);if(g&&g!==d)for(e=this._featuresByTime;g<=
d;g+=1E3)e[g]&&(h=h.concat(e[g]),delete e[g]);b.forEach(h,function(k){(k=this._getFeature(k))&&m.push(k)},this);return m}});p("extend-esri")&&z.setObject("layers._StreamMode",E,n);return E})},"esri/layers/TrackManager":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has dojo/dom-construct dojox/gfx ../kernel ../graphic ../geometry/Polyline ./GraphicsLayer".split(" "),function(E,z,b,w,p,n,l,q,f,c){var a=-1!==n.renderer.toLowerCase().indexOf("canvas");E=E(null,{declaredClass:"esri.layers._TrackManager",
constructor:function(d){this.layer=d;this.trackMap={};this.trackLineMap={}},initialize:function(d){this.map=d;d=this.layer;this.createTracklineContainer()&&(this._handles=[d.on("visibility-change",z.hitch(this,function(e){this.container.setVisibility(e.visible);this.container.evaluateSuspension()})),d.on("scale-range-change",z.hitch(this,function(){this.container.setScaleRange(this.layer.minScale,this.layer.maxScale)}))])},createTracklineContainer:function(){var d=this.layer;if("esriGeometryPoint"!==
d.geometryType)return null;var e=this.map,h=d._getRenderer();h=h&&h.trackRenderer;var m=this.container=new c._GraphicsLayer({id:d.id+"_tracks",_child:!0,visible:d.visible,minScale:d.minScale,maxScale:d.maxScale});m.loaded=!0;m.onLoad(m);m._setMap(e,d._div);a||(e=m._div.getNode(),d=d._div.getNode(),e&&d&&p.place(e,d,"first"));m.setRenderer(h);return m},addFeatures:function(d){var e=this.trackMap,h=this.layer,m=h._trackIdField,g=[];b.forEach(d,function(y){var u=y.attributes[m];(e[u]=e[u]||[]).push(y);
-1===b.indexOf(g,u)&&g.push(u)});var k=h._startTimeField,x=h.objectIdField,v=function(y,u){var t=y.attributes[k],r=u.attributes[k];return t===r?y.attributes[x]<u.attributes[x]?-1:1:t<r?-1:1};b.forEach(g,function(y){e[y].sort(v)})},trimTracks:function(d){function e(x){for(x=h[x]||[];x.length>m;)g.push(x.shift())}var h=this.trackMap,m=this.layer.maximumTrackPoints||0,g=[],k;if(!m)return g;if(d)b.forEach(d,function(x){e(x)});else for(k in h)h.hasOwnProperty(k)&&e(k);return g},drawTracks:function(d){function e(y){var u=
k[y],t,r;var B=h.trackLineMap[y];m.remove(B);delete h.trackLineMap[y];B=null;if(!u||2>u.length)return!1;B=[];for(t=u.length-1;0<=t;t--)(r=u[t].geometry)&&B.push([r.x,r.y]);u={};u[v]=y;1<B.length&&(B=new q(new f({paths:[B],spatialReference:x}),null,u),m.add(B),h.trackLineMap[y]=B)}var h=this,m=this.container,g;if(m){var k=this.trackMap;var x=this.map.spatialReference;var v=this.layer._trackIdField;if(d)b.forEach(d,function(y){e(y)});else for(g in k)k.hasOwnProperty(g)&&e(g)}},refreshTracks:function(d){function e(v){var y;
h.drawTracks([v]);if(k&&k.latestObservationRenderer){v=m[v]||[];var u=v.length;for(y=0;y<u;y++)g._repaint(v[y],null,!0)}}var h=this,m=this.trackMap,g=this.layer,k=g._getRenderer(),x;if(d)b.forEach(d,function(v){e(v)});else for(x in m)m.hasOwnProperty(x)&&e(x);this.moveLatestToFront()},moveLatestToFront:function(d){b.forEach(this.getLatestObservations(d),function(e){var h=e._shape;h&&h._moveToFront();this._repaint(e,null,!0)},this.layer)},getLatestObservations:function(d){function e(x){x=g[x];return x[x.length-
1]}var h=[],m=this.layer._getRenderer(),g=this.trackMap,k;if(!m.latestObservationRenderer)return h;if(d)b.forEach(d,function(x){h.push(e(x))});else for(k in g)g.hasOwnProperty(k)&&h.push(e(k));return h},clearTracks:function(d){var e=this.getLatestObservations(d),h=this.container,m=this.trackMap,g;if(d)b.forEach(d,function(x){delete this.trackMap[x];h&&(k=this.trackLineMap[x],h.remove(k),delete this.trackLineMap[x])},this);else{if(h)for(g in m){var k=this.trackLineMap[g];h.remove(k)}this.trackMap=
{};this.trackLineMap={}}b.forEach(e,function(x){this._repaint(x,null,!0)},this.layer)},isLatestObservation:function(d){var e=this.trackMap[d.attributes[this.layer._trackIdField]];return e?e[e.length-1]===d:!1},destroy:function(){b.forEach(this._handles,function(e){e.remove()});var d=this.container;d&&(d.clear(),d._unsetMap(this.map,this.layer._div));this.map=this.layer=this.trackMap=this.container=null}});w("extend-esri")&&z.setObject("layers._TrackManager",E,l);return E})},"esri/layers/HeatmapManager":function(){define("dojo/_base/declare dojo/_base/lang dojo/aspect dojo/_base/array require ../kernel ../sniff ../geometry/Point ../geometry/webMercatorUtils ./MapImage ../renderers/HeatmapRenderer ../tasks/query dojo/_base/fx".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e){function h(){}function m(g){var k=g.layer;return{geometry:g.geometry,attributes:g.attributes,getLayer:function(){return k}}}E=E(null,{declaredClass:"esri.layers.HeatmapManager",heatmapRenderer:null,sourceLayer:null,imageLayer:null,useTiles:!0,useWorker:!1,map:null,constructor:function(g){this.sourceLayer=g;this._hndls=[]},initialize:function(g){this.map=g;var k=this.sourceLayer,x=k.renderer;k.setDrawMode(!1);this.imageLayer=g._getMapImageLyr();var v=this;this.heatmapRenderer=
x instanceof a?x:(x.getRendererInfoByZoom(g.getZoom())||x.getRendererInfoByScale(g.getScale())).renderer;this.redraw=this.redraw.bind(this);this.recalculateHeatmap=this.recalculateHeatmap.bind(this);this._removeRenderer=this._removeRenderer.bind(this);this._handleRendererChange=this._handleRendererChange.bind(this);this._rendererChangeHandle=this.sourceLayer.on("renderer-change",this._handleRendererChange);this._handleOpacityChange=this._handleOpacityChange.bind(this);this._reprojectFeature=this._reprojectFeature.bind(this);
p(["../workers/heatmapCalculator"],function(y){v._calculator=new y(z.mixin({width:v.map.width,height:v.map.height},v._getOptions()));v._setupRenderer();v.heatmapRenderer.getStats=y.calculateStats;v.heatmapRenderer.getHistogramData=y.getHistogramData})},destroy:function(){this._removeHandlers();this._rendererChangeHandle&&this._rendererChangeHandle.remove();this._rendererChangeHandle=this.sourceLayer=this.imageLayer=this.map=this.heatmapRenderer=this._hndls=null},_handleRendererChange:function(g){var k=
g.renderer,x=k instanceof a;this.heatmapRenderer?x?this.heatmapRenderer=k:this._removeRenderer(g):x&&(this.heatmapRenderer=k,this.sourceLayer&&this.map&&this._setupRenderer())},_handleOpacityChange:function(g){g=g.opacity;var k=this._getImageBySourceId(this.sourceLayer.id);k&&k.setOpacity(g)},_setupRenderer:function(){var g=this._hndls,k=this.sourceLayer,x=this.map,v=this;k._originalDraw=k._draw;k._draw=h;k._div.clear();clearTimeout(this._resetTimer);this._resetTimer=setTimeout(this._resetGraphics.bind(this),
250);g.push(k.on("update-end",this.redraw));g.push(k.on("suspend",function(y){(y=v._getImageBySourceId(v.sourceLayer.id))&&y.hide()}));g.push(k.on("resume",function(y){(y=v._getImageBySourceId(v.sourceLayer.id))&&y.show()}));g.push(b.after(k,"redraw",this.redraw));g.push(x.on("layer-remove",function(y){y.layer==k&&((y=v._getImageBySourceId(v.sourceLayer.id))&&v.imageLayer.removeImage(y),v._removeRenderer({target:k}))}));k._collection&&g.push(k.on("graphic-add",function(y){v._reprojectFeature(y.graphic);
v.redraw()}));1!==k.mode&&(g.push(x.on("resize, pan-end",this.redraw)),g.push(x.on("zoom-end",this.redraw)));g.push(k.on("opacity-change",this._handleOpacityChange));this.imageLayer.suspended&&this.imageLayer.resume();k.graphics&&k.graphics.length&&(k.graphics[0].geometry&&!x.spatialReference.equals(k.graphics[0].geometry.spatialReference)&&w.forEach(k.graphics,function(y){this._reprojectFeature(y)}.bind(this)),this.redraw())},redraw:function(){if(!this._drawTimer){var g=this;this._drawTimer=setTimeout(function(){clearTimeout(g._drawTimer);
g._drawTimer=null;g.sourceLayer._getRenderer().isInstanceOf(a)&&g.recalculateHeatmap()},16)}},_removeRenderer:function(g){var k=g.target;k._draw=k._originalDraw;delete k._originalDraw;k.setDrawMode(!0);this._removeHandlers();this._hndls=[];var x=this._getImageBySourceId(this.sourceLayer.id);x&&this.imageLayer.removeImage(x);clearTimeout(this._drawTimer);clearTimeout(this._resetTimer);this._drawTimer=this._resetTimer=null;k.renderer!=g.renderer&&k.renderer.getRendererInfo?this.heatmapRenderer=null:
(this.destroy(),k.renderer&&k.renderer.getRendererInfo&&k.redraw())},recalculateHeatmap:function(){this._calculator?this._doMainCalculation():this._calculatorClient&&this._doWorkerCalculation()},_reprojectFeature:function(g){if(g&&g.geometry){var k=g.geometry,x=this.map.spatialReference;x.equals(k.spatialReference)||(k=f.project(k,x),null==k?console.log("Unable to reproject features to map's spatial reference. Please convert feature geometry before adding to layer"):g.geometry=k)}},_doWorkerCalculation:function(){},
_doMainCalculation:function(){var g=this.sourceLayer,k=this.map,x=this.heatmapRenderer,v=this.map.extent,y=this.map.width,u=this.map.height,t=this._calculator,r=this,B=function(F){F=r._getScreenPoints(F.features,k,g);F=t.calculateImageData(z.mixin({screenPoints:F,mapinfo:{extent:[v.xmin,v.ymin,v.xmax,v.ymax],resolution:k.getResolution()},width:y,height:u},r._getOptions()));F=x.getSymbol(m({geometry:k.extent,attributes:{size:[y,u],imageData:F},layer:g}));F=new c({extent:k.extent,href:F.url,opacity:0,
sourceId:g.id});r._swapMapImages(F,r._getImageBySourceId(g.id));g.suspended&&F.hide()},C={geometry:k.extent,timeExtent:g.useMapTime?k.timeExtent:void 0,spatialRelationship:d.SPATIAL_REL_INTERSECTS};null!=g._canDoClientSideQuery(C)?g.queryFeatures(C,B):B({features:g.graphics})},_getScreenPoints:function(g,k,x){var v=[],y=g.length,u=0,t=0,r=new q(k.extent.xmin,k.extent.ymax,k.spatialReference),B=k.toScreen(r),C=B.x;B=B.y;var F=k.getResolution(),A;for((t=k.extent.getCacheValue("_parts"))&&(A=w.map(t,
function(G){return x._intersects(k,G.extent)[0]}));y--;)if(t=g[y],t.geometry&&t.visible){var D={x:Math.ceil((t.geometry.x-r.x)/F+C),y:Math.floor((r.y-t.geometry.y)/F-B),attributes:t.attributes};A&&(t=1<A.length&&D.x<-A[0]?A[1]:A[0],D.x+=t);v[u++]=D}return v},_getImageBySourceId:function(g){var k=this.imageLayer.getImages();k=w.filter(k,function(x){return x.sourceId==g});if(k.length)return k[k.length-1]},_swapMapImages:function(g,k){function x(){v.removeImage(k)}var v=this.imageLayer,y=this.sourceLayer.opacity;
v.addImage(g);e.anim(g._node,{opacity:y},null,null,function(){g.opacity=y});null!=k&&e.anim(k._node,{opacity:0},null,null,x)},_removeHandlers:function(){if(null!=this._hndls)for(var g=this._hndls.length;g--;)this._hndls[g].remove()},_getOptions:function(){var g=this.heatmapRenderer;return{blurRadius:g.blurRadius,gradient:g.gradient,maxPixelIntensity:g.maxPixelIntensity,minPixelIntensity:g.minPixelIntensity,field:g.field,fieldOffset:g.fieldOffset}},_resetGraphics:function(){clearTimeout(this._resetTimer);
this._resetTimer=null;for(var g=this.sourceLayer.graphics,k=g.length,x;k--;)x=g[k],x._shape=x._offsets=void 0}});l("extend-esri")&&z.setObject("layers.HeatmapManager",E,n);return E})},"esri/layers/clustering/ClusterManager":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../../kernel ../../Evented ../../graphic ../../lang ../../Color ../../graphicsUtils ../../dijit/PopupTemplate ../../dijit/Legend/utils ../../renderers/ClassBreaksRenderer ../../symbols/SimpleMarkerSymbol ../support/attributeUtils ../GraphicsLayer ../Field ./GeohashAggregation ./statUtils dojo/i18n!../../nls/jsapi".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y){var u=y.layers.clusters,t=y.widgets.popup,r=u.numFeatures,B=Math.pow(2,53)-1;E=E(n,{declaredClass:"esri.layers.clustering.ClusterManager",layer:null,aggregationInfo:null,container:null,defaults:{clusterRadius:80,markerSymbol:{color:[77,77,77,255],size:6,angle:0,xoffset:0,yoffset:0,type:"esriSMS",style:"esriSMSCircle",outline:{color:[255,255,255,255],width:.75,type:"esriSLS",style:"esriSLSSolid"}}},_initialized:!1,_map:null,_eventHandles:null,_clusterRadius:null,
_renderer:null,_statisticInfos:null,_fields:null,_infoTemplate:null,_clusterGenerator:null,_singleGraphics:null,constructor:function(C){this._eventHandles=[];this.layer=C.layer;this.setAggregationInfo(C.aggregationInfo)},initialize:function(C){this._initialized=!0;this._map=C;this._removeFromPopup(this.layer);this.container=this._createContainer();this._clusterGenerator=this._createClusterGenerator();this._initClusterGenerator();this._createLayerEventListeners();this._createMapEventListeners();this._createPopupEventListeners()},
destroy:function(C){this._clearSingleGraphics();this._removeClusterBoundary();this._destroyEventListeners();this._removeFromPopup(this.container);this._removeFromPopup(this.layer);this._resetClusterNav();this._destroyClusterGenerator(C);this._destroyContainer();this.layer=this.aggregationInfo=this._map=null},setAggregationInfo:function(C){this.aggregationInfo=C?z.mixin({},C):null;this._applyAggregationInfo()},getClusterRenderer:function(){return this._renderer},getClusterFields:function(){return this._fields||
[]},getFeaturesInCluster:function(C){C=C&&C.getAggregationInfo();return this._clusterGenerator?this._clusterGenerator.getFeaturesInCluster(C):[]},getAggregateGraphics:function(){return this.container?this.container.graphics.slice(0):[]},getSingleGraphics:function(){return this._singleGraphics?this._singleGraphics.slice(0):[]},redraw:function(){this.container&&this.container.redraw()},isClusteringEnabled:function(){return!(!this._clusterGenerator||!this._clusterGenerator.clustersEnabled)},isClusteringActive:function(){return!!(this._clusterGenerator&&
0<this._clusterGenerator.getNumFeatures())},toggleFeatureVisibility:function(C){this._clusterGenerator&&this._clusterGenerator.toggleFeatureVisibility(C)},_createContainer:function(){var C=this.layer,F=new g._GraphicsLayer({_child:!0,id:C.id+"_clusters",visible:C.visible,minScale:C.minScale,maxScale:C.maxScale,infoTemplate:this._infoTemplate});F.fields=this._fields;F.setRenderer(this._renderer);F.loaded=!0;F.onLoad(F);F._setMap(this._map,C._div);return C._childLayer=F},_destroyContainer:function(){var C=
this.container;C&&(C.clear(),C._unsetMap(this._map,this.layer._div),this.layer._childLayer=null);this.container=null},_createClusterGenerator:function(){return new x({map:this._map,layer:this.layer,clusterRadius:this._clusterRadius,statisticInfos:this._statisticInfos})},_initClusterGenerator:function(){var C=this._clusterGenerator;C.loaded?this._awaitClusterGenerator():this._eventHandles.push(C.on("load",z.hitch(this,function(){this._awaitClusterGenerator()})),C.on("load-error",z.hitch(this,function(F){console.log(F.error)})))},
_destroyClusterGenerator:function(C){this._clusterGenerator&&this._clusterGenerator.destroy(C);this._clusterGenerator=null},_awaitClusterGenerator:function(){var C=this._clusterGenerator;C.started?(this._applyRenderer(),this._initClusterUpdates()):this._eventHandles.push(C.on("start",z.hitch(this,function(){this._applyRenderer();this._initClusterUpdates()})))},_applyAggregationInfo:function(){this._applyClusterRadius();this._applyRenderer();this._clusterGenerator&&!this._clusterGenerator.isUpdateScheduled()&&
this.redraw()},_applyClusterRadius:function(){var C=this.aggregationInfo;this._clusterRadius=C&&C.clusterRadius||this.defaults.clusterRadius;this._clusterGenerator&&this._clusterGenerator.setClusterRadius(this._clusterRadius);this._computeClusterRadius()},_computeClusterRadius:function(){var C=this.aggregationInfo||{};C.clusterRadius=this._clusterRadius;this.aggregationInfo=C},_applyRenderer:function(){var C=this.container,F=this._getClusterRendererInfo(),A=this._compareStatInfos(this._statisticInfos,
F.statisticInfos);A&&(this._statisticInfos=F.statisticInfos,this._clusterGenerator&&(this._clusterGenerator.setStatisticInfos(b.map(this._statisticInfos,function(D){return{attributeInfo:D.attributeInfo,statisticType:D.statisticType}})),C&&b.forEach(C.graphics,function(D){this._applyClusterAttributes(D,D.getAggregationInfo())},this)));this._renderer=F.renderer;this._applyFields();this._applyInfoTemplate(!!A&&this._initialized);C&&(C.setRenderer(this._renderer),this.emit("renderer-change"))},_applyFields:function(){this._fields=
this._getFields(this._statisticInfos);this.container&&(this.container.fields=this._fields)},_applyInfoTemplate:function(C){var F=this.aggregationInfo,A=F&&F.disablePopup;this.layer.infoTemplate&&!A?(F=F&&F.infoTemplate||this._infoTemplate,C=C||!F?this._createInfoTemplate():this._updateInfoTemplate(F)):C=null;this._infoTemplate=C;this.container&&this.container.setInfoTemplate(this._infoTemplate);this._computeInfoTemplate()},_computeInfoTemplate:function(){var C=this.aggregationInfo||{};C.infoTemplate=
this._infoTemplate;this.aggregationInfo=C},_getClusterRendererInfo:function(){var C=this.layer&&this.layer.renderer;return C?this._createClusterRenderer(C):this._getDefaultClusterRenderer()},_getDefaultClusterRenderer:function(){var C=this._createContinuousCountRenderer();this._addSizeByCountVariable(C);return{renderer:C,statisticInfos:[]}},_createContinuousCountRenderer:function(C){var F=new e(null,"cluster_count");F.addBreak({minValue:-B,maxValue:B,symbol:C?new C.constructor(C.toJson()):new h(z.clone(this.defaults.markerSymbol))});
return F},_createClusterRenderer:function(C){if(!this._isSupportedRenderer(C))return this._getDefaultClusterRenderer();var F=[];if(this._isSimpleRenderer(C))var A=this._createContinuousCountRenderer(C.symbol);else{A=new C.constructor(C.toJson());var D=this._getRendererAttributeInfo(C);if(this._isCBRenderer(A)){var G=v.getClusterField(D,"avg");F.push(this._getStatInfo(D,"avg"));A.normalizationType=null;A.normalizationField=null;A.normalizationTotal=null}else this._isUVRenderer(A)&&(G=v.getClusterField(D,
"type"),F.push(this._getStatInfo(D,"type")));A.attributeField=G;A.setValueExpression(null);A.valueExpressionTitle=null;A.setVisualVariables(null);this._setRendererTitle(A,C)}C=this._getSupportedVariables(C);D=this._createClusterVariables(C.allVars,F);A.setVisualVariables(D);C.sizeVars.length||this._isCBSizeRenderer(A)||this._addSizeByCountVariable(A);return{renderer:A,statisticInfos:F}},_isSupportedRenderer:function(C){if(this._isSimpleRenderer(C))return!0;if(this._isCBRenderer(C)){var F=C.normalizationType;
return"function"===typeof C.attributeField||F&&"field"!==F?!1:!0}return this._isUVRenderer(C)?"function"===typeof C.attributeField||C.attributeField2?!1:!0:!1},_isSimpleRenderer:function(C){return-1<C.declaredClass.toLowerCase().indexOf("simplerenderer")},_isCBRenderer:function(C){return-1<C.declaredClass.toLowerCase().indexOf("classbreaksrenderer")},_isUVRenderer:function(C){return-1<C.declaredClass.toLowerCase().indexOf("uniquevaluerenderer")},_isCBSizeRenderer:function(C){var F=C.infos;if(!this._isCBRenderer(C)||
!F||2>F.length)return!1;var A=Infinity,D=-Infinity;b.forEach(F,function(G){if(G=G.symbol){var H=0;switch(G.type){case "simplemarkersymbol":H=G.size;break;case "picturemarkersymbol":H=(G.width+G.height)/2}A=Math.min(A,H);D=Math.max(D,H)}});return Infinity!==A&&-Infinity!==D&&A!==D},_getRendererAttributeInfo:function(C){var F=C.attributeField,A=F?this.layer.getField(F):null;return{field:F,attributeType:A&&"esriFieldTypeDate"===A.type?"date":null,rotationType:null,valueExpression:C.valueExpression,valueExpressionTitle:C.valueExpressionTitle,
normalizationField:C.normalizationField}},_setRendererTitle:function(C,F){C.legendOptions=z.clone(F.legendOptions);C.legendOptions&&C.legendOptions.title||(C.legendOptions=C.legendOptions||{},C.legendOptions.title=d.getRendererTitle(F,this.layer))},_getSupportedVariables:function(C){var F=C.getVisualVariablesForType("colorInfo",!1)||[],A=C.getVisualVariablesForType("sizeInfo",!1)||[],D=C.getVisualVariablesForType("opacityInfo",!1)||[];C=C.getVisualVariablesForType("rotationInfo",!1)||[];F=b.filter(F,
this._variableFilter);A=b.filter(A,this._variableFilter);D=b.filter(D,this._variableFilter);C=b.filter(C,this._variableFilter);return{sizeVars:A,allVars:F.concat(A).concat(D).concat(C)}},_variableFilter:function(C){return"function"!==typeof C.field&&!m.viewScaleRE.test(C.valueExpression)},_createClusterVariables:function(C,F){return b.map(C,function(A){return this._createVarForAvg(A,F)},this)},_createVarForAvg:function(C,F){var A=z.clone(C),D=this._getVariableAttributeInfo(C);A.field=v.getClusterField(D,
"avg");A.normalizationField=null;A.valueExpression=null;A.valueExpressionTitle=null;D=this._getStatInfo(D,"avg");this._addStatInfo(F,D);this._setVariableTitle(A,C);return A},_getVariableAttributeInfo:function(C){var F="rotationInfo"===C.type,A=F?"angle":null;F=F?C.rotationType:null;var D=C.legendOptions&&C.legendOptions.title,G=C.field,H=G?this.layer.getField(G):null;H&&"esriFieldTypeDate"===H.type&&(A="date");return{field:G,attributeType:A,rotationType:F,valueExpression:C.valueExpression,valueExpressionTitle:C.valueExpressionTitle||
C.valueExpression&&D,normalizationField:C.normalizationField}},_setVariableTitle:function(C,F){C.legendOptions&&C.legendOptions.title||(C.legendOptions=C.legendOptions||{},C.legendOptions.title=d.getVisualVariableTitle(F,this.layer))},_getStatInfo:function(C,F){return{statisticHash:v.getStatisticHash(C,F),attributeInfo:C,statisticType:F}},_addStatInfo:function(C,F){var A=this._findStatInfo(C,F);A?A.attributeInfo.valueExpressionTitle||(A.attributeInfo.valueExpressionTitle=F.attributeInfo.valueExpressionTitle):
C.push(F)},_findStatInfo:function(C,F){var A;b.some(C,function(D){D.statisticHash===F.statisticHash&&(A=D);return!!A});return A},_compareStatInfos:function(C,F){var A=b.filter(C,function(G){return!this._findStatInfo(F,G)},this),D=b.filter(F,function(G){return!this._findStatInfo(C,G)},this);return D.length||A.length?{added:D,removed:A}:null},_addSizeByCountVariable:function(C){var F=this._createSizeByCountVariable();F&&this._addVariable(C,F)},_getSizeByCountVariable:function(C){C=C.getVisualVariablesForType("sizeInfo",
!1)||[];return b.filter(C,function(F){return"cluster_count"===F.field})[0]},_updateSizeByCountVariable:function(){var C=this._renderer,F=this._getSizeByCountVariable(C);if(F){var A=this._createSizeByCountVariable();A&&this._replaceVariable(C,F,A)}},_createSizeByCountVariable:function(){var C=this._clusterGenerator;if(C){var F=C.getCurrentLodStats();if(F){var A=C.getNumFeatures();C=C.clusters;var D=F.min,G=F.max;1===F.count&&D===A||1===C.length&&C[0].count===A?(D=1,G=A):D&&D===G&&(G=2*D);A={type:"sizeInfo",
field:"cluster_count",valueUnit:"unknown",minSize:12,maxSize:50,minDataValue:D,maxDataValue:G,legendOptions:{title:r}}}}return A},_addVariable:function(C,F){var A=C.visualVariables||[];A.push(F);C.setVisualVariables(A)},_replaceVariable:function(C,F,A){var D=C.visualVariables;F=b.indexOf(D,F);-1<F&&D.splice(F,1);D.push(A);C.setVisualVariables(D)},_getFields:function(C){var F=[new k({name:"cluster_count",type:"esriFieldTypeInteger"})];b.forEach(C,function(A){var D=A.statisticType;A=A.attributeInfo;
var G;"avg"===D?G="date"===A.attributeType?"esriFieldTypeDate":"esriFieldTypeDouble":"type"===D&&(G=A.field?this.layer.getField(A.field).type:"esriFieldTypeString");F.push(new k({name:v.getClusterField(A,D),type:G}))},this);return F},_createInfoTemplate:function(){var C=this._statisticInfos,F=this._renderer,A=[{fieldName:"cluster_count",label:r,visible:!0,format:{digitSeparator:!0,places:0}}],D=[],G=[q.substitute({count:"{cluster_count}"},u.countSummary)],H=this._isUVRenderer(F)?F.infos:[];b.forEach(C,
function(L){var aa=L.statisticType,da=L.attributeInfo,ha=v.getClusterField(da,aa),ia=this._getFieldLabel(L);if("avg"===aa){var ba={fieldName:ha,label:ia,visible:!0,format:"date"===da.attributeType?{dateFormat:"shortDateShortTime"}:{digitSeparator:!0,places:1}};var ja=this._getFieldSummary(L,ha)}else"type"===aa&&(ja="expression/"+ha,ba={fieldName:ja,visible:!0},D.push({name:ha,title:ia,returnType:"string",expression:this._getExpression(H,ha)}),ja=this._getFieldSummary(L,ja));ba&&A.push(ba);ja&&G.push(ja)},
this);return this._createPopupTemplate({fieldInfos:A,expressionInfos:D,description:G.join("\x3cbr/\x3e\x3cbr/\x3e")})},_updateInfoTemplate:function(C){var F=C.toJson(),A=this._isUVRenderer(this._renderer)?this._renderer.infos:[];b.forEach(this._statisticInfos,function(D){var G=D.statisticType;D=v.getClusterField(D.attributeInfo,G);"type"===G&&(G=this._findExpressionInfo(D,F))&&(G.expression=this._getExpression(A,D))},this);return this._createPopupTemplate(F)},_createPopupTemplate:function(C){var F=
new a(C),A=F.title;F.setTitle(z.hitch(this,function(D){var G=this._map&&this._map.infoWindow;if("esri.dijit.PopupMobile"!==(G&&G.declaredClass)||F.info.title)return A.call(F,D);D=(D=D.attributes)&&D.cluster_count;return null==D?"":q.substitute({count:D},u.countTitle)}));return F},_findExpressionInfo:function(C,F){var A;b.some(F.expressionInfos,function(D){D.name===C&&(A=D);return!!A});return A},_escapeDoubleQuotes:function(C){return C?C.replace(/"/g,'\\"'):""},_getExpression:function(C,F){return["var uvInfos \x3d ["+
this._getObjects(C).join(", ")+"];",'var predominantType \x3d Text($feature["'+F+'"]);','var label \x3d "'+this._escapeDoubleQuotes(u.predominantNoneValue)+'";',"for (var i \x3d 0; i \x3c Count(uvInfos); i++) {\nif (uvInfos[i].value \x3d\x3d predominantType) {\nlabel \x3d uvInfos[i].label;\nbreak;\n}\n}\nreturn label;"].join("\n")},_getObjects:function(C){return b.map(C,function(F){return'{"value": "'+String(F.value)+'","label": "'+this._escapeDoubleQuotes(String(F.label))+'"}'},this)},_getFieldLabel:function(C){var F=
C.statisticType,A=C.attributeInfo,D=A.field;C=A.normalizationField;var G="";if("avg"===F)var H=C?u.avgNormFieldLabel:u.avgFieldLabel;else"type"===F&&(H=u.predominantFieldLabel);H&&(F=A.valueExpression?A.valueExpressionTitle:this.layer.getFieldLabel(D),C=C&&this.layer.getFieldLabel(C),G=q.substitute({fieldLabel:F||"",normFieldLabel:C||""},H));return G},_getFieldSummary:function(C,F){var A=C.statisticType,D=C.attributeInfo,G=D.field;C=D.normalizationField;var H="";if("avg"===A)var L=C?u.avgNormFieldSummary:
u.avgFieldSummary;else"type"===A&&(L=u.predominantFieldSummary);L&&(A=D.valueExpression?D.valueExpressionTitle:this.layer.getFieldLabel(G),C=C&&this.layer.getFieldLabel(C),H=q.substitute({fieldLabel:A||"",normFieldLabel:C||"",fieldValue:"{"+F+"}"},L));return H},_removeFromPopup:function(C){var F=this._map.infoWindow,A=F.features;if(A&&A.length){var D=b.filter(A,function(G){return G.getLayer()!==C});D.length<A.length&&(D.length?F.setFeatures(D):(F.clearFeatures(),F.hide()))}},_resetClusterNav:function(){this._resetClusterNavPartial();
this._popupClusterGraphic=null},_resetClusterNavPartial:function(){this._map.infoWindow.removeActions&&this._map.infoWindow.removeActions(this._popupActions);this._hideSingleGraphic(this._popupSingleGraphic);this._popupSingleGraphic=null},_addClusterBoundary:function(C,F){(F=F.clusterFillSymbol)&&(F=new F.constructor(F.toJson()));C=new l(C,F);this._map.graphics.add(C);this._clusterBoundary=C},_removeClusterBoundary:function(){this._map.graphics.remove(this._clusterBoundary);this._clusterBoundary=
null},_createBrowseFeaturesAction:function(){return this._map.infoWindow.addActions([{title:t.NLS_browseFeatures,className:"browseFeatures",callback:z.hitch(this,function(C){C.preventDefault();C=this._map.infoWindow;var F=C.getSelectedFeature(),A=F.getChildGraphics(),D=C.getCurrentAnchor();C.setFeatures(A,{anchor:D});if(A=c.graphicsExtent(A))this._addClusterBoundary(A,C),C.show(this._getPopupLocation(A,D));this._popupClusterGraphic=F})}])[0]},_getPopupLocation:function(C,F){var A=C.getCenter();F=
F.toLowerCase();-1<F.indexOf("top")?A.update(A.x,C.ymax):-1<F.indexOf("bottom")?A.update(A.x,C.ymin):-1<F.indexOf("left")?A.update(C.xmin,A.y):A.update(C.xmax,A.y);return A},_createViewSummaryAction:function(){return this._map.infoWindow.addActions([{title:t.NLS_viewSummary,className:"viewSummary",callback:z.hitch(this,function(C){C.preventDefault();C=this._popupClusterGraphic;var F=this._map.infoWindow;F.setFeatures([C]);F.show(C.geometry);this._popupClusterGraphic=null})}])[0]},_initClusterUpdates:function(){this._updateSizeVariable();
this._updateClusterGraphics();this._eventHandles.push(this._clusterGenerator.on("update-end",z.hitch(this,function(C){(C.mapLevelChange||C.indexChange)&&this._updateSizeVariable();this._updateClusterGraphics()})),this._clusterGenerator.on("index-complete",z.hitch(this,function(){this._updateSizeVariable()})))},_updateClusterGraphics:function(){this._hideSingleGraphics();var C=[],F=[];b.forEach(this._clusterGenerator.clusters,function(A){var D=new l(A.centroid);D.setAggregationSourceLayer(this.layer);
D.setAggregationInfo(A);this._applyClusterAttributes(D,A);1===A.count?(A=this._getSingleGraphic(D),F.push(A)):C.push(D)},this);this._showSingleGraphics(F);this._addGraphics(C)},_addGraphics:function(C){var F=this.container;F.clear();b.forEach(C,function(A){F.add(A)})},_getSingleGraphic:function(C){var F=this._clusterGenerator.getCell(C.getAggregationInfo().primary).features[0],A=this.layer.renderer;A=A&&A.getSymbol(F);var D=this._getSizeByCountVariable(this._renderer);A&&D&&(C=D?this._renderer.getSize(C,
{sizeInfo:D,shape:A.style,resolution:this._map.getResolutionInMeters(),scale:this._map.getScale()}):null,F.setSize(C));return F},_showSingleGraphics:function(C){b.forEach(C,this._showSingleGraphic);this._singleGraphics=C},_hideSingleGraphics:function(){b.forEach(this._singleGraphics,function(C){C.setSize(null);this._hideSingleGraphic(C)},this);this._singleGraphics=null},_clearSingleGraphics:function(){b.forEach(this._singleGraphics,function(C){C.setSize(null)});this._singleGraphics=null},_showSingleGraphic:function(C){C&&
C._resume()},_hideSingleGraphic:function(C){C&&C._suspend()},_updateSizeVariable:function(){this.isClusteringEnabled()&&(this._updateSizeByCountVariable(),this.emit("renderer-change"))},_applyClusterAttributes:function(C,F){C.setAttributes(F.attributes)},_createLayerEventListeners:function(){var C=this.layer;this._eventHandles.push(C.on("visibility-change",z.hitch(this,function(F){this.container.setVisibility(F.visible)})),C.on("scale-range-change",z.hitch(this,function(){this.container.setScaleRange(this.layer.minScale,
this.layer.maxScale)})),C.on("renderer-change",z.hitch(this,function(){this._applyRenderer()})),C.on("info-template-change",z.hitch(this,function(){this._applyInfoTemplate()})))},_createMapEventListeners:function(){this._eventHandles.push(this._map.on("zoom-start",z.hitch(this,function(){this._removeClusterBoundary();this._removeFromPopup(this.container);this._removeFromPopup(this.layer);this._resetClusterNav();this.container.clear();this._hideSingleGraphics()})))},_createPopupEventListeners:function(){var C=
this._map.infoWindow;this._eventHandles.push(C.on("selection-change",z.hitch(this,function(){this._resetClusterNavPartial();var F=this._map.infoWindow.getSelectedFeature(),A=F&&F.getLayer();if(A){var D;A===this.container?(this._removeClusterBoundary(),this._map.infoWindow.addActions&&(D=this._createBrowseFeaturesAction())):A===this.layer&&F._isSuspended()?(this._map.infoWindow.addActions&&(D=this._createViewSummaryAction()),this._popupSingleGraphic=F,this._showSingleGraphic(this._popupSingleGraphic)):
this._removeClusterBoundary();this._popupActions=D?[D]:null}})),C.on("clear-features",z.hitch(this,function(F){this._resetClusterNav();F.isIntermediate||this._removeClusterBoundary()})),C.on("hide",z.hitch(this,function(){this._popupSingleGraphic&&this._popupSingleGraphic._suspend();this._clusterBoundary&&this._clusterBoundary.hide()})),C.on("show",z.hitch(this,function(){this._popupSingleGraphic&&this._popupSingleGraphic._resume();this._clusterBoundary&&this._clusterBoundary.show()})))},_destroyEventListeners:function(){b.forEach(this._eventHandles,
function(C){C.remove()})}});w("extend-esri")&&z.setObject("layers.clustering.ClusterManager",E,p);return E})},"esri/dijit/PopupTemplate":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojo/dom-construct ../kernel ../InfoTemplate ../PopupInfo ./PopupRenderer".split(" "),function(E,z,b,w,p,n,l,q){E=E([n,l],{declaredClass:"esri.dijit.PopupTemplate","-chains-":{constructor:"manual"},chartTheme:null,constructor:function(f,c){z.mixin(this,c);this.initialize(f,c)},getTitle:function(f){var c;
this.info&&(c=this.titleHasRelatedFields||this.titleHasAsyncExpressions?"":this._getPopupValues(f,this._fetchAttributes(f,null,this.getExpressionFieldsInTitle()),!0).title);return c||""},getContent:function(f){return this.info?(new q({template:this,graphic:f,chartTheme:this.chartTheme},w.create("div"))).domNode:""}});b("extend-esri")&&z.setObject("dijit.PopupTemplate",E,p);return E})},"esri/PopupInfo":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/json dojo/i18n dojo/has dojo/Deferred dojo/sniff dojo/promise/all dojox/html/entities ./lang ./kernel ./request ./promiseList ./ArcadeExpression ./tasks/query ./tasks/QueryTask ./tasks/RelationshipQuery ./tasks/StatisticDefinition ./arcadeProfiles/popupProfile ./layers/support/attributeUtils dojo/i18n!dojo/cldr/nls/number".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y,u,t){E=E(null,{declaredClass:"esri.PopupInfo",_reNewline:/(\n)/ig,_reExprField:/^\s*expression\//i,_reExprFieldPattern:/\{expression\/([^\}]+)\}/ig,_exprPrefix:"expression/",_relatedFieldPrefix:"relationships/",_aggregatedFeaturesVariable:"$aggregatedfeatures",initialize:function(r,B){if(r){z.mixin(this,B);this.info=r;this.title=this.getTitle;this.content=this.getContent;this._exprCache=this._compileExpressions(this.info.expressionInfos);var C=this._fieldLabels=
{},F=this._fieldsMap={};this.info.fieldInfos&&b.forEach(this.info.fieldInfos,function(A){var D=A.fieldName.toLowerCase(),G=this._isExpressionField(D)?this.getExpressionInfo(D):null;C[D]=G?G.title:A.label;F[D]=A},this);this.titleHasRelatedFields=!(!this.info.title||-1===this.info.title.indexOf("{"+this._relatedFieldPrefix));this.titleHasAsyncExpressions=this._titleHasAsyncExpressions();this.contentHasAsyncExpressions=this._contentHasAyncExpressions()}},toJson:function(){return w.fromJson(w.toJson(this.info))},
getTitle:function(){},getContent:function(){},getFieldInfo:function(r){var B;b.some(this.info&&this.info.fieldInfos,function(C){C.fieldName===r&&(B=C);return!!B});return B},getExpressionInfo:function(r){if(r=this._getExprField(r)){r=r.toLowerCase();var B;b.some(this.info.expressionInfos,function(C){C.name.toLowerCase()===r&&(B=C);return!!B});return B}},getExpressionFieldsInTitle:function(){return this._getExprFieldsFromTemplatedString(this.info.title)},getExpressionFieldsInContent:function(){var r=
this._collectExprFieldsFromTemplatedString(this.info.description,[]);this.info.description||b.forEach(this.info.fieldInfos,function(B){B.visible&&this._collectExprField(B.fieldName,r)},this);b.forEach(this.info.mediaInfos,function(B){this._collectExprFieldsFromTemplatedString(B.title,r);this._collectExprFieldsFromTemplatedString(B.caption,r);if(B=B.value)this._collectExprFieldsFromTemplatedString(B.linkURL,r),this._collectExprFieldsFromTemplatedString(B.sourceURL,r),b.forEach(B.fields,function(C){this._collectExprField(C,
r)},this),this._collectExprField(B.normalizeField,r),this._collectExprField(B.tooltipField,r)},this);return r},getRequiredExpressionFields:function(){return this.getExpressionFieldsInTitle().concat(this.getExpressionFieldsInContent())},hasGeometryOperations:function(){return b.some(this._getArcadeExpressions(),function(r){return r.hasGeometryOperations()})},hasAsyncExpressions:function(){return b.some(this._getArcadeExpressions(),function(r){return r.async})},initializeArcadeEngine:function(){return y.initialize(this._getArcadeExpressions())},
getComponents:function(r,B){var C=this.info,F={initArcadeEngine:this.initializeArcadeEngine()};C.fieldInfos&&(C=b.filter(C.fieldInfos,function(A){return-1!==A.fieldName.indexOf(this._relatedFieldPrefix)},this))&&0<C.length&&(F.relatedInfo=this._getRelatedRecords({graphic:r,fieldsInfo:C}));this._needFullResolutionFeature(r)&&(F.fullResolutionFeature=this._getFullResolutionFeature(r));this._needAggregatedFeaturesLayer(r)&&(F.aggregatedFeaturesLayer=this._getAggregatedFeaturesLayer(r));return h(F).then(z.hitch(this,
function(A){var D=A.fullResolutionFeature,G=B&&B.evaluateAllExpressions,H=G?null:this.getRequiredExpressionFields();A=(G?this.hasAsyncExpressions():this._hasAsyncExpressions(H))?this._fetchAttributesAsync(r,D,H,A.aggregatedFeaturesLayer):this._fetchAttributes(r,D,H);return h([A]).then(z.hitch(this,function(L){return this._getPopupValues(r,L[0])}))}))},getAttachments:function(r){var B=r.getSourceLayer();r=r.attributes;if(this.info.showAttachments&&B&&B.hasAttachments&&B.objectIdField&&(r=r&&r[B.objectIdField]))return B.queryAttachmentInfos(r)},
_needAggregatedFeaturesLayer:function(r){return r.isAggregate()?b.some(this._getArcadeExpressions(),function(B){return B.hasVariable(this._aggregatedFeaturesVariable)},this):!1},_getAggregatedFeaturesLayer:function(r){return r.getAggregationSourceLayer().getFeatureCollectionLayer(r.getChildGraphics()).always(function(B){return B instanceof Error?null:B})},_needFullResolutionFeature:function(r){return(r=r.getSourceLayer())?"function"===typeof r.getMaxAllowableOffset&&0<r.getMaxAllowableOffset()&&this.hasGeometryOperations():
!1},_getFullResolutionFeature:function(r){var B=r.getSourceLayer(),C=B.objectIdField;r=(r=r.attributes)&&C&&r[C];if(null==r)return null;var F=new g;F.where=C+"\x3d"+r;F.maxAllowableOffset=0;F.outFields=[C];B._enableCacheHint(F);return B.queryFeatures(F).then(function(A){return A.features&&A.features[0]})},_isExpressionField:function(r){return this._reExprField.test(r)},_getExprField:function(r){return this._isExpressionField(r)?r.replace(this._reExprField,""):null},_collectExprField:function(r,B){(r=
this._getExprField(r))&&B.push(r);return B},_collectExprFieldsFromTemplatedString:function(r,B){r=this._getExprFieldsFromTemplatedString(r);r.length&&Array.prototype.push.apply(B,r);return B},_getExprFieldsFromTemplatedString:function(r){r=r?r.match(this._reExprFieldPattern):null;return b.map(r,function(B){return B.replace(this._reExprFieldPattern,"$1")},this)},_titleHasAsyncExpressions:function(){return this._hasAsyncExpressions(this.getExpressionFieldsInTitle())},_contentHasAyncExpressions:function(){return this._hasAsyncExpressions(this.getExpressionFieldsInContent())},
_hasAsyncExpressions:function(r){return b.some(r,function(B){B=this._exprCache[B];return!(!B||!B.async)},this)},_compileExpressions:function(r){var B={};b.forEach(r,function(C){var F=C.returnType&&C.returnType.toLowerCase();B[C.name]=new m({expression:C.expression,returnType:"number"===F?"number":"string",profile:y})});return B},_getArcadeExpressions:function(){var r=[],B;for(B in this._exprCache)r.push(this._exprCache[B]);return r},_fetchAttributesAsync:function(r,B,C,F){var A=this._fetchAttributes(r,
B,C,F);r={};for(var D in A)(B=A[D])&&B.then&&(r[D]=B);return h(r).then(z.hitch(this,function(G){for(var H in G){var L=G[H];A[H]=L instanceof Error?null:this._processArcadeResult(L)}return A}))},_processArcadeResult:function(r){"string"===typeof r&&(r=c.encode(r));return r},_fetchAttributes:function(r,B,C,F){var A=z.clone(r.attributes)||{},D=B&&B.geometry,G=this._exprPrefix,H=this._exprCache;C=C||b.map(this.info.expressionInfos,function(L){return L.name});b.forEach(C,function(L){var aa=G+L;L=(L=H[L])?
r.evaluateExpression(L,this._getEvalOptions(L,r,D,F)):null;A[aa]=this._processArcadeResult(L)},this);return A},_getEvalOptions:function(r,B,C,F){var A=r.hasGeometryOperations(),D=B.getSourceLayer(),G=D&&(D.getMap()||D.parentLayer&&D.parentLayer.getMap());F&&(F._map=G);r=y.getEvalOptions({expression:r,feature:B,layer:D,aggregatedFeaturesLayer:F,map:G,spatialReference:G&&G.spatialReference});B=r.context.vars.$feature;A=!(!A||!C);B&&A&&(B._geometry=C);r.skipCache=A;return r},_getPopupValues:function(r,
B,C){B=B||this._fetchAttributes(r);var F=this.info,A=r.getSourceLayer(),D=z.clone(B),G="",H="",L,aa,da=A&&A._getDateOpts&&A._getDateOpts().properties;da=da&&da.slice(0);var ha={dateFormat:{properties:da,formatter:"DateFormat"+this._insertOffset(this._dateFormats.shortDateShortTime)},format:null};if(this._relatedInfo)for(ja in this._relatedInfo)if(this._relatedInfo.hasOwnProperty(ja)){var ia=this._relatedInfo[ja],ba=this._relatedLayersInfo[ja];ia&&(b.forEach(ia.relatedFeatures,function(Aa){for(aa in Aa.attributes)if(Aa.attributes.hasOwnProperty(aa)&&
"esriRelCardinalityOneToOne"===ba.relation.cardinality){var M=this._toRelatedFieldName([ba.relation.id,aa]);B[M]=D[M]=Aa.attributes[aa]}},this),b.forEach(ia.relatedStatsFeatures,function(Aa){for(aa in Aa.attributes)if(Aa.attributes.hasOwnProperty(aa)){var M=this._toRelatedFieldName([ba.relation.id,aa]);B[M]=D[M]=Aa.attributes[aa]}},this))}for(L in D){var ja=this._fieldsMap[L.toLowerCase()];ia=this._getLayerFieldInfo(A,L);ja&&ia&&(ja.fieldName=ia.name);D[L]=this._formatValue(D[L],L,ha);da&&ja&&ja.format&&
ja.format.dateFormat&&(ja=b.indexOf(da,L),-1<ja&&da.splice(ja,1))}if(A)for(L in da=A.typeIdField,B)if(B.hasOwnProperty(L)&&-1===L.indexOf(this._relatedFieldPrefix)){var pa=B[L];a.isDefined(pa)&&(ja=this._getDomainName(A,r,L,pa),a.isDefined(ja)?D[L]=ja:L===da&&(ja=this._getTypeName(A,r,pa),a.isDefined(ja)&&(D[L]=ja)))}F.title&&(G=this._processFieldsInLinks(this._fixTokens(F.title,A),B),G=z.trim(this._removeEmptyHref(a.substitute(D,G,ha)||"")));if(C)return{title:G};F.description&&(H=this._processFieldsInLinks(this._fixTokens(F.description,
A),B),H=z.trim(this._removeEmptyHref(a.substitute(D,H,ha)||"")));if(F.fieldInfos){var Ca=[];b.forEach(F.fieldInfos,function(Aa){(L=Aa.fieldName)&&Aa.visible&&Ca.push([this._fieldLabels[L.toLowerCase()]||L,a.substitute(D,"${"+L+"}",ha)||""])},this)}var la;if(F.mediaInfos){var ua=[];b.forEach(F.mediaInfos,function(Aa){la=0;pa=Aa.value;switch(Aa.type){case "image":var M=pa.sourceURL;M=M&&z.trim(this._removeEmptyHref(a.substitute(B,this._fixTokens(M,A))));la=!!M;break;case "piechart":case "linechart":case "columnchart":case "barchart":M=
pa.normalizeField;pa.fields=b.map(pa.fields,function(na){return(Y=this._getLayerFieldInfo(A,na))?Y.name:na},this);if(M){var Y=this._getLayerFieldInfo(A,M);pa.normalizeField=Y?Y.name:M}la=b.some(pa.fields,function(na){return a.isDefined(B[na])||-1!==na.indexOf(this._relatedFieldPrefix)&&this._relatedInfo},this);break;default:return}if(la){Aa=z.clone(Aa);pa=Aa.value;M=Aa.title?this._processFieldsInLinks(this._fixTokens(Aa.title,A),B):"";var ka=Aa.caption?this._processFieldsInLinks(this._fixTokens(Aa.caption,
A),B):"";Aa.title=M?z.trim(this._removeEmptyHref(a.substitute(D,M,ha)||"")):"";Aa.caption=ka?z.trim(this._removeEmptyHref(a.substitute(D,ka,ha)||"")):"";if("image"===Aa.type)pa.sourceURL=a.substitute(B,this._fixTokens(pa.sourceURL,A)),pa.linkURL&&(pa.linkURL=z.trim(a.substitute(B,this._fixTokens(pa.linkURL,A))||""));else{var N,Z;b.forEach(pa.fields,function(na,za){if(-1!==na.indexOf(this._relatedFieldPrefix))Z=this._getRelatedChartInfos(na,pa,B,ha),Z instanceof Array?pa.fields=Z:pa.fields[za]=Z;else{var va=
B[na];va=void 0===va?null:va;N=B[pa.normalizeField]||0;va&&N&&(va/=N);pa.fields[za]={y:va,tooltip:(this._fieldLabels[na.toLowerCase()]||na)+":\x3cbr/\x3e"+this._formatValue(va,na,ha,!!N)}}},this)}ua.push(Aa)}},this)}return{title:G,description:H,hasDescription:!!F.description,fields:Ca&&Ca.length?Ca:null,mediaInfos:ua&&ua.length?ua:null,formatted:D,editSummary:!1!==F.showLastEditInfo&&A&&A.getEditSummary?A.getEditSummary(r):""}},_getRelatedChartInfos:function(r,B,C,F){var A,D;var G=[];var H=this._fromRelatedFieldName(r);
var L=H[0];var aa=this._relatedInfo[L];L=this._relatedLayersInfo[L];aa&&b.forEach(aa.relatedFeatures,function(da){da=da.attributes;var ha;for(ha in da)if(da.hasOwnProperty(ha)&&ha===H[1]){var ia={};D=da[ha];B.normalizeField&&(A=-1!==B.normalizeField.indexOf(this._relatedFieldPrefix)?da[this._fromRelatedFieldName(B.normalizeField)[1]]:C[B.normalizeField]);D&&A&&(D/=A);if(B.tooltipField)if(-1!==B.tooltipField.indexOf(this._relatedFieldPrefix)){var ba=this._fromRelatedFieldName(B.tooltipField)[1],ja=
a.isDefined(da[ba])?this._formatValue(da[ba],B.tooltipField,F,!!A):ba;ia.tooltip=ja+":\x3cbr/\x3e"+this._formatValue(D,ba,F,!!A)}else ia.tooltip=(this._fieldLabels[r.toLowerCase()]||r)+":\x3cbr/\x3e"+this._formatValue(D,B.tooltipField,F,!!A);else ia.tooltip=D;ia.y=D;G.push(ia)}},this);return"esriRelCardinalityOneToMany"===L.relation.cardinality||"esriRelCardinalityManyToMany"===L.relation.cardinality?G:G[0]},_dateFormats:{shortDate:"(datePattern: 'M/d/y', selector: 'date')",shortDateShortTime:"(datePattern: 'M/d/y', timePattern: 'h:mm a', selector: 'date and time')",
shortDateShortTime24:"(datePattern: 'M/d/y', timePattern: 'H:mm', selector: 'date and time')",shortDateLongTime:"(datePattern: 'M/d/y', timePattern: 'h:mm:ss a', selector: 'date and time')",shortDateLongTime24:"(datePattern: 'M/d/y', timePattern: 'H:mm:ss', selector: 'date and time')",shortDateLE:"(datePattern: 'd/M/y', selector: 'date')",shortDateLEShortTime:"(datePattern: 'd/M/y', timePattern: 'h:mm a', selector: 'date and time')",shortDateLEShortTime24:"(datePattern: 'd/M/y', timePattern: 'H:mm', selector: 'date and time')",
shortDateLELongTime:"(datePattern: 'd/M/y', timePattern: 'h:mm:ss a', selector: 'date and time')",shortDateLELongTime24:"(datePattern: 'd/M/y', timePattern: 'H:mm:ss', selector: 'date and time')",longMonthDayYear:"(datePattern: 'MMMM d, y', selector: 'date')",longMonthDayYearShortTime:"(datePattern: 'MMMM d, y', timePattern: 'h:mm a', selector: 'date and time')",longMonthDayYearShortTime24:"(datePattern: 'MMMM d, y', timePattern: 'H:mm', selector: 'date and time')",longMonthDayYearLongTime:"(datePattern: 'MMMM d, y', timePattern: 'h:mm:ss a', selector: 'date and time')",
longMonthDayYearLongTime24:"(datePattern: 'MMMM d, y', timePattern: 'H:mm:ss', selector: 'date and time')",dayShortMonthYear:"(datePattern: 'd MMM y', selector: 'date')",dayShortMonthYearShortTime:"(datePattern: 'd MMM y', timePattern: 'h:mm a', selector: 'date and time')",dayShortMonthYearShortTime24:"(datePattern: 'd MMM y', timePattern: 'H:mm', selector: 'date and time')",dayShortMonthYearLongTime:"(datePattern: 'd MMM y', timePattern: 'h:mm:ss a', selector: 'date and time')",dayShortMonthYearLongTime24:"(datePattern: 'd MMM y', timePattern: 'H:mm:ss', selector: 'date and time')",
longDate:"(datePattern: 'EEEE, MMMM d, y', selector: 'date')",longDateShortTime:"(datePattern: 'EEEE, MMMM d, y', timePattern: 'h:mm a', selector: 'date and time')",longDateShortTime24:"(datePattern: 'EEEE, MMMM d, y', timePattern: 'H:mm', selector: 'date and time')",longDateLongTime:"(datePattern: 'EEEE, MMMM d, y', timePattern: 'h:mm:ss a', selector: 'date and time')",longDateLongTime24:"(datePattern: 'EEEE, MMMM d, y', timePattern: 'H:mm:ss', selector: 'date and time')",longMonthYear:"(datePattern: 'MMMM y', selector: 'date')",
shortMonthYear:"(datePattern: 'MMM y', selector: 'date')",year:"(datePattern: 'y', selector: 'date')"},_dateFormatsJson:{shortDate:{datePattern:"M/d/y",selector:"date"},shortDateShortTime:{datePattern:"M/d/y",timePattern:"h:mm a",selector:"date and time"},shortDateShortTime24:{datePattern:"M/d/y",timePattern:"H:mm",selector:"date and time"},shortDateLongTime:{datePattern:"M/d/y",timePattern:"h:mm:ss a",selector:"date and time"},shortDateLongTime24:{datePattern:"M/d/y",timePattern:"H:mm:ss",selector:"date and time"},
shortDateLE:{datePattern:"d/M/y",selector:"date"},shortDateLEShortTime:{datePattern:"d/M/y",timePattern:"h:mm a",selector:"date and time"},shortDateLEShortTime24:{datePattern:"d/M/y",timePattern:"H:mm",selector:"date and time"},shortDateLELongTime:{datePattern:"d/M/y",timePattern:"h:mm:ss a",selector:"date and time"},shortDateLELongTime24:{datePattern:"d/M/y",timePattern:"H:mm:ss",selector:"date and time"},longMonthDayYear:{datePattern:"MMMM d, y",selector:"date"},longMonthDayYearShortTime:{datePattern:"MMMM d, y",
timePattern:"h:mm a",selector:"date and time"},longMonthDayYearShortTime24:{datePattern:"MMMM d, y",timePattern:"H:mm",selector:"date and time"},longMonthDayYearLongTime:{datePattern:"MMMM d, y",timePattern:"h:mm:ss a",selector:"date and time"},longMonthDayYearLongTime24:{datePattern:"MMMM d, y",timePattern:"H:mm:ss",selector:"date and time"},dayShortMonthYear:{datePattern:"d MMM y",selector:"date"},dayShortMonthYearShortTime:{datePattern:"d MMM y",timePattern:"h:mm a",selector:"date and time"},dayShortMonthYearShortTime24:{datePattern:"d MMM y",
timePattern:"H:mm",selector:"date and time"},dayShortMonthYearLongTime:{datePattern:"d MMM y",timePattern:"h:mm:ss a",selector:"date and time"},dayShortMonthYearLongTime24:{datePattern:"d MMM y",timePattern:"H:mm:ss",selector:"date and time"},longDate:{datePattern:"EEEE, MMMM d, y",selector:"date"},longDateShortTime:{datePattern:"EEEE, MMMM d, y",timePattern:"h:mm a",selector:"date and time"},longDateShortTime24:{datePattern:"EEEE, MMMM d, y",timePattern:"H:mm",selector:"date and time"},longDateLongTime:{datePattern:"EEEE, MMMM d, y",
timePattern:"h:mm:ss a",selector:"date and time"},longDateLongTime24:{datePattern:"EEEE, MMMM d, y",timePattern:"H:mm:ss",selector:"date and time"},longMonthYear:{datePattern:"MMMM y",selector:"date"},shortMonthYear:{datePattern:"MMM y",selector:"date"},year:{datePattern:"y",selector:"date"}},_reHref:/href\s*=\s*(")([^"]+)"/ig,_reHrefApos:/href\s*=\s*(')([^']+)'/ig,_fixTokens:function(r,B){var C=this;return r.replace(/(\{([^\{\r\n]+)\})/g,function(F,A,D){F=C._getLayerFieldInfo(B,D);return"$"+(F?"{"+
F.name+"}":A)})},_encodeAttributes:function(r,B){r=z.clone(r)||{};var C,F;for(C in r)(F=r[C])&&"string"===typeof F&&(F=B?F:encodeURIComponent(F),F=F.replace(/'/g,"\x26apos;"),r[C]=F);return r},_processFieldsInLinks:function(r,B){var C=this._encodeAttributes(B),F=this._encodeAttributes(B,!0);B=z.hitch(this,this._addValuesToHref,B,C,F);r&&(r=r.replace(this._reHref,B).replace(this._reHrefApos,B));return r},_addValuesToHref:function(r,B,C,F,A,D){D=D&&z.trim(D);return F=a.substitute(D&&0===D.indexOf("${")?
"'"===A?C:r:B,F)},_getLayerFieldInfo:function(r,B){return r&&r.getField?r.getField(B):null},_formatValue:function(r,B,C,F){var A=this._fieldsMap[B.toLowerCase()],D=A&&A.format;B=-1!==b.indexOf(C.dateFormat.properties,B);var G="number"===typeof r&&!B&&(!D||!D.dateFormat);if(!a.isDefined(r)||!A||!a.isDefined(D))return this._applyFormatting(r,G);A=D.hasOwnProperty("places")||D.hasOwnProperty("digitSeparator");var H=D.hasOwnProperty("digitSeparator")?D.digitSeparator:!0;if(A&&!B)var L={formatType:"NumberFormat",
places:a.isDefined(D.places)&&(!F||0<D.places)?Number(D.places):Infinity};else if(D.dateFormat)L=z.mixin({formatType:"DateFormat",utcOffset:this.utcOffset},this._dateFormatsJson[D.dateFormat]||this._dateFormatsJson.shortDateShortTime);else return this._applyFormatting(r,G);var aa=this._applyFormatFunctions(r,L,C);A&&-1<r.constructor.toString().indexOf("Array")&&(aa="",b.forEach(r,z.hitch(this,function(da,ha){ha&&(aa+=" ");aa+=this._applyFormatFunctions(da,L,C)})));A&&!H&&t.group&&(aa=aa.replace(new RegExp("\\"+
t.group,"g"),""));B&&(aa='\x3cspan class\x3d"esriDateValue"\x3e'+aa+"\x3c/span\x3e");return this._applyFormatting(aa,G)},_applyFormatFunctions:function(r,B,C){B&&C&&(C.format={myKey:B});r=a.substitute({myKey:r},"${myKey}",C)||"";B&&C&&(C.format=null);return r},_applyFormatting:function(r,B){return B?this._forceLTR(r):this._applyPreWrap(r)},_forceLTR:function(r){var B=q("ie");return B&&10>=B?r:"\x3cspan class\x3d'esriNumericValue'\x3e"+r+"\x3c/span\x3e"},_applyPreWrap:function(r){return"string"===
typeof r?r.replace(this._reNewline,"\x3cspan class\x3d'charNewLine'\x3e$1\x3c/span\x3e"):r},_insertOffset:function(r){r&&(r=a.isDefined(this.utcOffset)?r.replace(/\)\s*$/,", utcOffset:"+this.utcOffset+")"):r);return r},_getDomainName:function(r,B,C,F){return(r=r.getDomain&&r.getDomain(C,{feature:B}))&&r.codedValues?r.getName(F):null},_getTypeName:function(r,B,C){return(r=r.getType&&r.getType(B))&&r.name},_getRelatedRecords:function(r){var B=r.graphic,C;this._relatedLayersInfoPromise||(this._relatedLayersInfoPromise=
this._getRelatedLayersInfo(r).then(z.hitch(this,function(F){for(C in F)F.hasOwnProperty(C)&&F[C]&&(this._relatedLayersInfo[C].relatedLayerInfo=F[C])})));return this._relatedLayersInfoPromise.then(z.hitch(this,function(){return this._queryRelatedLayers(B)})).then(z.hitch(this,function(F){this._setRelatedRecords(B,F);return F}))},_getRelatedLayersInfo:function(r){var B=r.fieldsInfo,C,F={};var A=r.graphic.getSourceLayer();this._relatedLayersInfo||(this._relatedLayersInfo={});b.forEach(B,function(D){var G;
var H=this._fromRelatedFieldName(D.fieldName);var L=H[0];H=H[1];if(L&&(!this._relatedLayersInfo[L]&&A&&A.relationships&&(b.some(A.relationships,function(da){if(da.id==L)return G=da,!0}),G&&(this._relatedLayersInfo[L]={relation:G,relatedFields:[],outStatistics:[]})),this._relatedLayersInfo[L]&&(this._relatedLayersInfo[L].relatedFields.push(H),D.statisticType))){var aa=new v;aa.statisticType=D.statisticType;aa.onStatisticField=H;aa.outStatisticFieldName=H;this._relatedLayersInfo[L].outStatistics.push(aa)}},
this);for(C in this._relatedLayersInfo)this._relatedLayersInfo.hasOwnProperty(C)&&this._relatedLayersInfo[C]&&(r=this._relatedLayersInfo[C].relation,r=A.url.replace(/[0-9]+$/,r.relatedTableId),this._relatedLayersInfo[C].relatedLayerUrl=r,F[C]=e({url:r,content:{f:"json"},callbackParamName:"callback"}));return f(F)},_queryRelatedLayers:function(r){var B={},C;for(C in this._relatedLayersInfo)this._relatedLayersInfo.hasOwnProperty(C)&&(B[C]=this._queryRelatedLayer({graphic:r,relatedInfo:this._relatedLayersInfo[C]}));
return f(B)},_queryRelatedLayer:function(r){var B,C;var F=r.graphic;var A=F.getSourceLayer();var D=A.url.match(/[0-9]+$/g)[0];var G=r.relatedInfo;var H=G.relatedLayerInfo;var L=G.relatedLayerUrl;var aa=G.relation;r=b.filter(H.relationships,function(pa){return pa.relatedTableId===parseInt(D,10)});1===r.length?B=r[0]:1<r.length&&b.some(r,function(pa){pa.id===aa.id&&(B=pa);return!!B});if(B){var da=new g;b.some(H.fields,function(pa){if(pa.name===B.keyField)return C=-1!==b.indexOf(["esriFieldTypeSmallInteger",
"esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble"],pa.type)?"number":"string",!0});if(B.relationshipTableId&&B.keyFieldInRelationshipTable){var ha=new l;this._queryRelatedRecords(F,B).then(z.hitch(this,function(pa){var Ca;(Ca=pa[F.attributes[A.objectIdField]])?(pa=b.map(Ca.features,function(la){return la.attributes[H.objectIdField]},this),G.outStatistics&&0<G.outStatistics.length&&H.supportsStatistics&&(ba=new g,ba.where=this._chunkWhereInClause(H.objectIdField,pa,1E3),ba.outFields=
da.outFields,ba.outStatistics=G.outStatistics),ba&&(ja=new k(L),ja.execute(ba).then(z.hitch(this,function(la){var ua=[];ua.push(Ca);ua.push(la);ha.resolve(ua)})))):ha.resolve()}))}else{var ia="string"===C?B.keyField+"\x3d'"+F.attributes[aa.keyField]+"'":B.keyField+"\x3d"+F.attributes[aa.keyField];da.where=ia;da.outFields=G.relatedFields;if(G.outStatistics&&0<G.outStatistics.length&&H.supportsStatistics){var ba=new g;ba.where=da.where;ba.outFields=da.outFields;ba.outStatistics=G.outStatistics}var ja=
new k(L);ia=[];ia.push(ja.execute(da));ba&&ia.push(ja.execute(ba))}}return ia?f(ia):ha?ha.promise:void 0},_setRelatedRecords:function(r,B){this._relatedInfo=[];for(var C in B)B.hasOwnProperty(C)&&B[C]&&(r=B[C],this._relatedInfo[C]={},this._relatedInfo[C].relatedFeatures=r[0].features,a.isDefined(r[1])&&(this._relatedInfo[C].relatedStatsFeatures=r[1].features))},_handlerErrorResponse:function(r,B){r.reject(B)},_fromRelatedFieldName:function(r){var B=[];-1!==r.indexOf(this._relatedFieldPrefix)&&(r=
r.split("/"),B=r.slice(1));return B},_toRelatedFieldName:function(r){var B="";r&&0<r.length&&(B=this._relatedFieldPrefix+r[0]+"/"+r[1]);return B},_queryRelatedRecords:function(r,B){var C=r.getSourceLayer(),F=new x;F.outFields=["*"];F.relationshipId=B.id;F.objectIds=[r.attributes[C.objectIdField]];return C.queryRelatedFeatures(F)},_removeEmptyHref:function(r){return r.replace(/href=(""|'')/gi,"")},_chunkWhereInClause:function(r,B,C){for(var F=0,A=[];F<B.length;)A.push(r+" IN ("+B.slice(F,C+F)+")"),
F+=C;return A.join(" OR ")}});n("extend-esri")&&(d.PopupInfo=d.PopupInfoTemplate=E);return E})},"dojox/html/entities":function(){define(["dojo/_base/lang"],function(E){var z=E.getObject("dojox.html.entities",!0),b=function(p,n){if(n._encCache&&n._encCache.regexp&&n._encCache.mapper&&n.length==n._encCache.length){var l=n._encCache.mapper;var q=n._encCache.regexp}else{l={};q=["["];var f;for(f=0;f<n.length;f++)l[n[f][0]]="\x26"+n[f][1]+";",q.push(n[f][0]);q.push("]");q=new RegExp(q.join(""),"g");n._encCache=
{mapper:l,regexp:q,length:n.length}}return p=p.replace(q,function(c){return l[c]})},w=function(p,n){if(n._decCache&&n._decCache.regexp&&n._decCache.mapper&&n.length==n._decCache.length){var l=n._decCache.mapper;var q=n._decCache.regexp}else{l={};q=["("];var f;for(f=0;f<n.length;f++){var c="\x26"+n[f][1]+";";f&&q.push("|");l[c]=n[f][0];q.push(c)}q.push(")");q=new RegExp(q.join(""),"g");n._decCache={mapper:l,regexp:q,length:n.length}}return p=p.replace(q,function(a){return l[a]})};z.html=[["\x26","amp"],
['"',"quot"],["\x3c","lt"],["\x3e","gt"],["\u00a0","nbsp"]];z.latin=[["\u00a1","iexcl"],["\u00a2","cent"],["\u00a3","pound"],["\u20ac","euro"],["\u00a4","curren"],["\u00a5","yen"],["\u00a6","brvbar"],["\u00a7","sect"],["\u00a8","uml"],["\u00a9","copy"],["\u00aa","ordf"],["\u00ab","laquo"],["\u00ac","not"],["\u00ad","shy"],["\u00ae","reg"],["\u00af","macr"],["\u00b0","deg"],["\u00b1","plusmn"],["\u00b2","sup2"],["\u00b3","sup3"],["\u00b4","acute"],["\u00b5","micro"],["\u00b6","para"],["\u00b7","middot"],
["\u00b8","cedil"],["\u00b9","sup1"],["\u00ba","ordm"],["\u00bb","raquo"],["\u00bc","frac14"],["\u00bd","frac12"],["\u00be","frac34"],["\u00bf","iquest"],["\u00c0","Agrave"],["\u00c1","Aacute"],["\u00c2","Acirc"],["\u00c3","Atilde"],["\u00c4","Auml"],["\u00c5","Aring"],["\u00c6","AElig"],["\u00c7","Ccedil"],["\u00c8","Egrave"],["\u00c9","Eacute"],["\u00ca","Ecirc"],["\u00cb","Euml"],["\u00cc","Igrave"],["\u00cd","Iacute"],["\u00ce","Icirc"],["\u00cf","Iuml"],["\u00d0","ETH"],["\u00d1","Ntilde"],["\u00d2",
"Ograve"],["\u00d3","Oacute"],["\u00d4","Ocirc"],["\u00d5","Otilde"],["\u00d6","Ouml"],["\u00d7","times"],["\u00d8","Oslash"],["\u00d9","Ugrave"],["\u00da","Uacute"],["\u00db","Ucirc"],["\u00dc","Uuml"],["\u00dd","Yacute"],["\u00de","THORN"],["\u00df","szlig"],["\u00e0","agrave"],["\u00e1","aacute"],["\u00e2","acirc"],["\u00e3","atilde"],["\u00e4","auml"],["\u00e5","aring"],["\u00e6","aelig"],["\u00e7","ccedil"],["\u00e8","egrave"],["\u00e9","eacute"],["\u00ea","ecirc"],["\u00eb","euml"],["\u00ec",
"igrave"],["\u00ed","iacute"],["\u00ee","icirc"],["\u00ef","iuml"],["\u00f0","eth"],["\u00f1","ntilde"],["\u00f2","ograve"],["\u00f3","oacute"],["\u00f4","ocirc"],["\u00f5","otilde"],["\u00f6","ouml"],["\u00f7","divide"],["\u00f8","oslash"],["\u00f9","ugrave"],["\u00fa","uacute"],["\u00fb","ucirc"],["\u00fc","uuml"],["\u00fd","yacute"],["\u00fe","thorn"],["\u00ff","yuml"],["\u0192","fnof"],["\u0391","Alpha"],["\u0392","Beta"],["\u0393","Gamma"],["\u0394","Delta"],["\u0395","Epsilon"],["\u0396","Zeta"],
["\u0397","Eta"],["\u0398","Theta"],["\u0399","Iota"],["\u039a","Kappa"],["\u039b","Lambda"],["\u039c","Mu"],["\u039d","Nu"],["\u039e","Xi"],["\u039f","Omicron"],["\u03a0","Pi"],["\u03a1","Rho"],["\u03a3","Sigma"],["\u03a4","Tau"],["\u03a5","Upsilon"],["\u03a6","Phi"],["\u03a7","Chi"],["\u03a8","Psi"],["\u03a9","Omega"],["\u03b1","alpha"],["\u03b2","beta"],["\u03b3","gamma"],["\u03b4","delta"],["\u03b5","epsilon"],["\u03b6","zeta"],["\u03b7","eta"],["\u03b8","theta"],["\u03b9","iota"],["\u03ba","kappa"],
["\u03bb","lambda"],["\u03bc","mu"],["\u03bd","nu"],["\u03be","xi"],["\u03bf","omicron"],["\u03c0","pi"],["\u03c1","rho"],["\u03c2","sigmaf"],["\u03c3","sigma"],["\u03c4","tau"],["\u03c5","upsilon"],["\u03c6","phi"],["\u03c7","chi"],["\u03c8","psi"],["\u03c9","omega"],["\u03d1","thetasym"],["\u03d2","upsih"],["\u03d6","piv"],["\u2022","bull"],["\u2026","hellip"],["\u2032","prime"],["\u2033","Prime"],["\u203e","oline"],["\u2044","frasl"],["\u2118","weierp"],["\u2111","image"],["\u211c","real"],["\u2122",
"trade"],["\u2135","alefsym"],["\u2190","larr"],["\u2191","uarr"],["\u2192","rarr"],["\u2193","darr"],["\u2194","harr"],["\u21b5","crarr"],["\u21d0","lArr"],["\u21d1","uArr"],["\u21d2","rArr"],["\u21d3","dArr"],["\u21d4","hArr"],["\u2200","forall"],["\u2202","part"],["\u2203","exist"],["\u2205","empty"],["\u2207","nabla"],["\u2208","isin"],["\u2209","notin"],["\u220b","ni"],["\u220f","prod"],["\u2211","sum"],["\u2212","minus"],["\u2217","lowast"],["\u221a","radic"],["\u221d","prop"],["\u221e","infin"],
["\u2220","ang"],["\u2227","and"],["\u2228","or"],["\u2229","cap"],["\u222a","cup"],["\u222b","int"],["\u2234","there4"],["\u223c","sim"],["\u2245","cong"],["\u2248","asymp"],["\u2260","ne"],["\u2261","equiv"],["\u2264","le"],["\u2265","ge"],["\u2282","sub"],["\u2283","sup"],["\u2284","nsub"],["\u2286","sube"],["\u2287","supe"],["\u2295","oplus"],["\u2297","otimes"],["\u22a5","perp"],["\u22c5","sdot"],["\u2308","lceil"],["\u2309","rceil"],["\u230a","lfloor"],["\u230b","rfloor"],["\u2329","lang"],
["\u232a","rang"],["\u25ca","loz"],["\u2660","spades"],["\u2663","clubs"],["\u2665","hearts"],["\u2666","diams"],["\u0152","OElig"],["\u0153","oelig"],["\u0160","Scaron"],["\u0161","scaron"],["\u0178","Yuml"],["\u02c6","circ"],["\u02dc","tilde"],["\u2002","ensp"],["\u2003","emsp"],["\u2009","thinsp"],["\u200c","zwnj"],["\u200d","zwj"],["\u200e","lrm"],["\u200f","rlm"],["\u2013","ndash"],["\u2014","mdash"],["\u2018","lsquo"],["\u2019","rsquo"],["\u201a","sbquo"],["\u201c","ldquo"],["\u201d","rdquo"],
["\u201e","bdquo"],["\u2020","dagger"],["\u2021","Dagger"],["\u2030","permil"],["\u2039","lsaquo"],["\u203a","rsaquo"]];z.encode=function(p,n){p&&(n?p=b(p,n):(p=b(p,z.html),p=b(p,z.latin)));return p};z.decode=function(p,n){p&&(n?p=w(p,n):(p=w(p,z.html),p=w(p,z.latin)));return p};return z})},"esri/ArcadeExpression":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ./kernel ./layers/support/attributeUtils ./support/expressionUtils".split(" "),function(E,z,b,w,p,n){E=E(null,{declaredClass:"esri.ArcadeExpression",
expression:null,profile:null,returnType:null,async:null,id:null,syntaxTree:null,_traits:null,_attributeDef:null,_attributeCache:null,_compiled:!1,constructor:function(l){z.mixin(this,l);this.returnType=this.returnType||"string";this.id=p.getAttributeId(this.expression);this._setSyntaxTree(this.profile.parse(this));this.async=this.async||this.profile.isAsync(this)},hasGeometryOperations:function(){var l=this._traits.geometryOperations;void 0===l&&(l=this._traits.geometryOperations=n.hasGeometryOperations(this.syntaxTree));
return l},hasFeatureSetOperations:function(){var l=this._traits.featureSetOperations;void 0===l&&(l=this._traits.featureSetOperations=n.hasFeatureSetOperations(this.syntaxTree));return l},hasVariable:function(l){var q=this._traits.variables;void 0===q[l]&&(q[l]=n.hasVariable(this.syntaxTree,l));return q[l]},hasFunction:function(l){var q=this._traits.functions;void 0===q[l]&&(q[l]=n.hasFunction(this.syntaxTree,l));return q[l]},evaluate:function(l){this._compile();var q=this._attributeCache.compiledFunc;
return this.async?n.executeAsyncFunction(q,l):n.executeFunction(q,l)},_setSyntaxTree:function(l){this.syntaxTree=l;this._compiled=!1;this._traits={variables:{},functions:{}};this._createLegacyValueObjects()},_createLegacyValueObjects:function(){this._attributeDef={valueExpression:this.expression};this._attributeCache={attributeInfo:this._attributeDef,isNumeric:"number"===this.returnType,idSource:this.expression,id:this.id,hasExpr:!0,compiledFunc:null,syntaxTree:this.syntaxTree,isScaleDriven:!1,dependsOnView:this.hasVariable("$view"),
dependsOnGeometry:this.hasGeometryOperations(),isJSFunc:!1}},_compile:function(){this._compiled||(this._attributeCache.compiledFunc=this.profile.compile(this),this._compiled=!0)}});b("extend-esri")&&(w.ArcadeExpression=E);return E})},"esri/tasks/RelationshipQuery":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/json","dojo/has","../kernel"],function(E,z,b,w,p){E=E(null,{declaredClass:"esri.tasks.RelationshipQuery",definitionExpression:"",relationshipId:null,returnGeometry:!1,
objectIds:null,outSpatialReference:null,outFields:null,orderByFields:null,toJson:function(){var n={definitionExpression:this.definitionExpression,relationshipId:this.relationshipId,returnGeometry:this.returnGeometry,maxAllowableOffset:this.maxAllowableOffset,geometryPrecision:this.geometryPrecision},l=this.objectIds,q=this.outFields,f=this.outSpatialReference,c=this.orderByFields;l&&(n.objectIds=l.join(","));q&&(n.outFields=q.join(","));f&&(n.outSR=f.wkid||b.toJson(f.toJson()));c&&(n.orderByFields=
c.join(","));n._ts=this._ts;return n}});w("extend-esri")&&z.setObject("tasks.RelationshipQuery",E,p);return E})},"esri/arcadeProfiles/popupProfile":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../promiseList ../arcade/Feature ../support/expressionUtils ./utils".split(" "),function(E,z,b,w,p,n,l,q){E=new (E(null,{declaredClass:"esri.arcadeProfiles.PopupProfile",defaults:{globals:{featureSet:["$layer","$datastore","$map","$aggregatedfeatures"],async:["$layer","$datastore",
"$map","$aggregatedfeatures"]},context:{vars:{$feature:"any",$layer:"any",$datastore:"any",$map:"any",$aggregatedfeatures:"any"}}},initialize:function(f){var c=[];q.hasGeometryOperations(f)&&c.push(l.enableGeometryOperations());(q.hasFeatureSetOperations(f)||q.hasVariables(f,this.defaults.globals.featureSet))&&c.push(l.enableFeatureSetOperations());q.isAsync(f)&&c.push(l.enableAsyncOperations());return p(c)},isAsync:function(f){f=[f];return q.hasFeatureSetOperations(f)||q.hasVariables(f,this.defaults.globals.async)},
parse:function(f){return l.createSyntaxTree(f.expression)},compile:function(f){var c=z.clone(this.defaults.context);c.useAsync=f.async;return f.syntaxTree?l.createFunction(f.syntaxTree,c):null},getEvalOptions:function(f){var c=f.expression,a=f.feature,d=f.layer,e=f.aggregatedFeaturesLayer,h=f.map;f=f.spatialReference;a=a&&c.hasVariable("$feature")?n.createFromGraphicLikeObject(a.geometry,a.attributes,d):null;var m,g;if(d){var k={spatialReference:f};c.hasVariable("$layer")&&(m=d.getMap()?l.createFeatureSetFromLayer(d,
k):l.createFeatureSetFromLayerUrl(d.url,k));if(c.hasVariable("$datastore"))var x=(x=q.getServiceUrl(d.url))?l.createFeatureSetCollectionFromServiceUrl(x,k):null;c.hasVariable("$aggregatedfeatures")&&e&&(g=e.getMap()?l.createFeatureSetFromLayer(e,k):null)}c=h&&c.hasVariable("$map")?l.createFeatureSetCollectionFromMap(h):null;return{context:{vars:{$feature:a,$layer:m,$datastore:x,$map:c,$aggregatedfeatures:g},spatialReference:f}}}}));b("extend-esri")&&z.setObject("arcadeProfiles.popupProfile",E,w);
return E})},"esri/dijit/PopupRenderer":function(){define("require dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/array dojo/_base/kernel dojo/sniff dojo/query dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-style ../libs/sanitizer/Sanitizer dojox/html/entities dijit/_Widget dijit/_Templated ../kernel ../lang ../urlUtils ./_EventedWidget dojo/i18n!../nls/jsapi dojo/NodeList-dom".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y,u,t){var r=0,B=t.widgets.popup,
C=t.widgets.templatePicker;z=z([u,g,k],{declaredClass:"esri.dijit._PopupRenderer",_sanitizer:new h({whiteList:{span:["class"],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:[]}},!0),constructor:function(){this._nls=
w.mixin({},B)},templateString:"\x3cdiv class\x3d'esriViewPopup'\x3e\x3cdiv class\x3d'statusSection hidden' dojoAttachPoint\x3d'_status'\x3e\x3c/div\x3e\x3cdiv class\x3d'mainSection'\x3e\x3cdiv class\x3d'header' dojoAttachPoint\x3d'_title'\x3e\x3c/div\x3e\x3cdiv class\x3d'hzLine'\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d'_description'\x3e\x3c/div\x3e\x3cdiv class\x3d'break'\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'attachmentsSection hidden'\x3e\x3cdiv\x3e${_nls.NLS_attach}:\x3c/div\x3e\x3cul dojoAttachPoint\x3d'_attachmentsList'\x3e\x3c/ul\x3e\x3cdiv class\x3d'break'\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'mediaSection hidden'\x3e\x3cdiv class\x3d'header' dojoAttachPoint\x3d'_mediaTitle'\x3e\x3c/div\x3e\x3cdiv class\x3d'hzLine'\x3e\x3c/div\x3e\x3cdiv class\x3d'caption' dojoAttachPoint\x3d'_mediaCaption'\x3e\x3c/div\x3e\x3cdiv class\x3d'gallery' dojoAttachPoint\x3d'_gallery'\x3e\x3cdiv class\x3d'mediaHandle prev' dojoAttachPoint\x3d'_prevMedia' dojoAttachEvent\x3d'onclick: _goToPrevMedia'\x3e\x3c/div\x3e\x3cdiv class\x3d'mediaHandle next' dojoAttachPoint\x3d'_nextMedia' dojoAttachEvent\x3d'onclick: _goToNextMedia'\x3e\x3c/div\x3e\x3cul class\x3d'summary'\x3e\x3cli class\x3d'image mediaCount hidden' dojoAttachPoint\x3d'_imageCount'\x3e0\x3c/li\x3e\x3cli class\x3d'image mediaIcon hidden'\x3e\x3c/li\x3e\x3cli class\x3d'chart mediaCount hidden' dojoAttachPoint\x3d'_chartCount'\x3e0\x3c/li\x3e\x3cli class\x3d'chart mediaIcon hidden'\x3e\x3c/li\x3e\x3c/ul\x3e\x3cdiv class\x3d'frame' dojoAttachPoint\x3d'_mediaFrame'\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'editSummarySection hidden' dojoAttachPoint\x3d'_editSummarySection'\x3e\x3cdiv class\x3d'break'\x3e\x3c/div\x3e\x3cdiv class\x3d'break hidden' dojoAttachPoint\x3d'_mediaBreak'\x3e\x3c/div\x3e\x3cdiv class\x3d'editSummary' dojoAttachPoint\x3d'_editSummary'\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e",
showTitle:!0,startup:function(){this.inherited(arguments);this._showStatus(C.loading);this._contentDfd=this.template.getComponents(this.graphic).then(w.hitch(this,this._handleComponentsSuccess)).otherwise(w.hitch(this,this._handleComponentsError))},destroy:function(){this._contentDfd&&this._contentDfd.cancel();this._attachmentsDfd&&this._attachmentsDfd.cancel();this._destroyFrame();this.template=this.graphic=this._nls=this._mediaInfos=this._mediaPtr=this._contentDfd=this._attachmentsDfd=null;this.inherited(arguments)},
_goToPrevMedia:function(){0>this._mediaPtr-1||(this._mediaPtr--,this._updateUI(),this._displayMedia())},_goToNextMedia:function(){this._mediaPtr+1!==this._mediaInfos.length&&(this._mediaPtr++,this._updateUI(),this._displayMedia())},_updateUI:function(){var F=this._mediaInfos,A=F.length,D=this.domNode,G=this._prevMedia,H=this._nextMedia;if(1<A){var L=0,aa=0;p.forEach(F,function(da){"image"===da.type?L++:-1!==da.type.indexOf("chart")&&aa++});L&&(c.set(this._imageCount,"innerHTML",L),n.query(".summary .image",
D).removeClass("hidden"));aa&&(c.set(this._chartCount,"innerHTML",aa),n.query(".summary .chart",D).removeClass("hidden"))}else n.query(".summary",D).addClass("hidden"),a.add(G,"hidden"),a.add(H,"hidden");F=this._mediaPtr;0===F?a.add(G,"hidden"):a.remove(G,"hidden");F===A-1?a.add(H,"hidden"):a.remove(H,"hidden");this._destroyFrame()},_displayMedia:function(){var F=this._mediaInfos[this._mediaPtr],A=F.title,D=F.caption,G=n.query(".mediaSection .hzLine",this.domNode)[0];c.set(this._mediaTitle,"innerHTML",
this._sanitizer.sanitize(A));a[A?"remove":"add"](this._mediaTitle,"hidden");c.set(this._mediaCaption,"innerHTML",this._sanitizer.sanitize(D));a[D?"remove":"add"](this._mediaCaption,"hidden");a[A&&D?"remove":"add"](G,"hidden");this._rid=null;if("image"===F.type)this._showImage(F);else{var H=this;A=["dojox/charting/Chart2D","dojox/charting/action2d/Tooltip"];D=F.value.theme||this.chartTheme;w.isString(D)&&(D=D.replace(/\./gi,"/"),-1===D.indexOf("/")&&(D="dojox/charting/themes/"+D));D||(D="./Rainbow");
A.push(D);try{var L=this._rid=r++;E(A,function(aa,da,ha){L===H._rid&&(H._rid=null,H._showChart(F.type,F.value,aa,da,ha))})}catch(aa){console.log("PopupRenderer: error loading modules")}}},_preventNewTab:function(F){return(F=F&&w.trim(F).toLowerCase())&&(0===F.indexOf("mailto:")||0===F.indexOf("tel:"))},_showImage:function(F){a.add(this._mediaFrame,"image");var A=e.get(this._gallery,"height"),D=F.value,G=m.decode(D.linkURL);D=m.decode(D.sourceURL);var H;G&&(H=d.create("a",{href:G,target:this._preventNewTab(G)?
"":"_blank"},this._mediaFrame));G=F.refreshInterval?this._addURLParameter(D,"timestamp",Date.now()):D;d.create("img",{className:"esriPopupMediaImage",src:G},H||this._mediaFrame);var L=n.query(".esriPopupMediaImage",this._mediaFrame)[0];this._imageLoadHandle=b.connect(L,"onload",this,function(){this._clearImageHandles();this._imageLoaded(L,A);this._initImageRefresh(F)})},_addURLParameter:function(F,A,D){var G=-1===F.indexOf("?")?"?":"\x26";return F+G+A+"\x3d"+D},_initImageRefresh:function(F){if(F.refreshInterval){var A=
6E4*F.refreshInterval;this._imageRefreshHandle=setTimeout(w.hitch(this,function(){this._destroyFrame();this._showImage(F)}),A)}},_clearImageHandles:function(){b.disconnect(this._imageLoadHandle);this._imageLoadHandle=null;clearTimeout(this._imageRefreshHandle);this._imageRefreshHandle=null},_showChart:function(F,A,D,G,H){a.remove(this._mediaFrame,"image");D=this._chart=new D(d.create("div",{"class":"chart"},this._mediaFrame),{margins:{l:4,t:4,r:4,b:4}});H&&D.setTheme(H);switch(F){case "piechart":D.addPlot("default",
{type:"Pie",labels:!1});D.addSeries("Series A",A.fields);break;case "linechart":D.addPlot("default",{type:"Markers"});D.addAxis("x",{min:0,majorTicks:!1,minorTicks:!1,majorLabels:!1,minorLabels:!1});D.addAxis("y",{includeZero:!0,vertical:!0,fixUpper:"minor"});p.forEach(A.fields,function(L,aa){L.x=aa+1});D.addSeries("Series A",A.fields);break;case "columnchart":D.addPlot("default",{type:"Columns",gap:3});D.addAxis("y",{includeZero:!0,vertical:!0,fixUpper:"minor"});D.addSeries("Series A",A.fields);
break;case "barchart":D.addPlot("default",{type:"Bars",gap:3}),D.addAxis("x",{includeZero:!0,fixUpper:"minor",minorLabels:!1}),D.addAxis("y",{vertical:!0,majorTicks:!1,minorTicks:!1,majorLabels:!1,minorLabels:!1}),D.addSeries("Series A",A.fields)}this._action=new G(D);D.render()},_destroyFrame:function(){this._rid=null;this._clearImageHandles();this._chart&&(this._chart.destroy(),this._chart=null);this._action&&(this._action.destroy(),this._action=null);c.set(this._mediaFrame,"innerHTML","")},_imageLoaded:function(F,
A){var D=F.height;D<A&&e.set(F,"marginTop",Math.round((A-D)/2)+"px")},_attListHandler:function(F,A){if(F===this._attachmentsDfd){this._attachmentsDfd=null;var D="";A instanceof Error||!A||!A.length||p.forEach(A,function(G){D+="\x3cli\x3e";D+="\x3ca href\x3d'"+y.addProxy(G.url)+"' target\x3d'_blank'\x3e"+(G.name||"[No name]")+"\x3c/a\x3e";D+="\x3c/li\x3e"});c.set(this._attachmentsList,"innerHTML",D||"\x3cli\x3e"+this._nls.NLS_noAttach+"\x3c/li\x3e")}},_createLinkIfURI:function(F,A){var D=y.getURIInfo(F);
if(D){var G=F.match(D.pattern);F=G&&G[2];G=m.decode(G[1]);d.create("a",{target:"_blank",href:G,title:G,innerHTML:this._sanitizer.sanitize(v.substitute({appName:D.appName,hierPart:F},D.label))},A)}else c.set(A,"innerHTML",this._sanitizer.sanitize(F))},_showStatus:function(F){c.set(this._status,"innerHTML",F);a.remove(this._status,"hidden");n.query(".mainSection",this.domNode).addClass("hidden")},_hideStatus:function(){c.set(this._status,"innerHTML","");a.add(this._status,"hidden");n.query(".mainSection",
this.domNode).removeClass("hidden")},_handleComponentsSuccess:function(F){if(F){this._hideStatus();var A=this.showTitle?F.title:"",D=F.description,G=F.fields,H=F.mediaInfos,L=this.domNode,aa=this._nls,da=this,ha=this.template,ia=this.graphic;this._prevMedia.title=aa.NLS_prevMedia;this._nextMedia.title=aa.NLS_nextMedia;c.set(this._title,"innerHTML",this._sanitizer.sanitize(A));A||a.add(this._title,"hidden");if(!F.hasDescription&&G&&(D="",G=p.map(G,function(ja){var pa=d.create("tr",{vAlign:"top"});
d.create("td",{className:"attrName",innerHTML:this._sanitizer.sanitize(ja[0])},pa);var Ca=d.create("td",{className:"attrValue"},pa);this._createLinkIfURI(ja[1],Ca);return pa},this),G.length)){var ba=d.create("table",{className:"attrTable",cellPadding:"0px",cellSpacing:"0px"});p.forEach(G,function(ja){ba.appendChild(ja)})}ba?(this._description.appendChild(ba),D=!0):c.set(this._description,"innerHTML",this._sanitizer.sanitize(D));D||a.add(this._description,"hidden");n.query("a",this._description).forEach(function(ja){da._preventNewTab(ja.href)?
"_blank"===ja.target&&c.remove(ja,"target"):c.set(ja,"target","_blank")});A&&D?n.query(".mainSection .hzLine",L).removeClass("hidden"):A||D?n.query(".mainSection .hzLine",L).addClass("hidden"):n.query(".mainSection",L).addClass("hidden");if(A=this._attachmentsDfd=ha.getAttachments(ia))A.addBoth(w.hitch(this,this._attListHandler,A)),c.set(this._attachmentsList,"innerHTML","\x3cli\x3e"+aa.NLS_searching+"...\x3c/li\x3e"),n.query(".attachmentsSection",L).removeClass("hidden");H&&H.length&&(n.query(".mediaSection",
L).removeClass("hidden"),f.setSelectable(this._mediaFrame,!1),this._mediaInfos=H,this._mediaPtr=0,this._updateUI(),this._displayMedia());F.editSummary&&(c.set(this._editSummary,"innerHTML",this._sanitizer.sanitize(F.editSummary)),H&&H.length&&a.remove(this._mediaBreak,"hidden"),a.remove(this._editSummarySection,"hidden"));this.emit("content-update")}else this._showStatus(B.NLS_noInfo)},_handleComponentsError:function(F){F&&"cancel"===F.dojoType||(console.log("PopupRenderer: error loading template",
F),this._showStatus(B.NLS_noInfo))}});l("extend-esri")&&w.setObject("dijit._PopupRenderer",z,x);return z})},"esri/libs/sanitizer/Sanitizer":function(){!function(E,z){"object"==typeof exports&&"undefined"!=typeof module?module.exports=z():"function"==typeof define&&define.amd?define(z):(E="undefined"!=typeof globalThis?globalThis:E||self).Sanitizer=z()}(this,function(){function E(){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 z(S){var U=S||{},ma={},ra;for(ra in U)ma[ra]=U[ra];(S=ma).whiteList=S.whiteList||G.whiteList;S.onAttr=S.onAttr||G.onAttr;
S.onIgnoreAttr=S.onIgnoreAttr||G.onIgnoreAttr;S.safeAttrValue=S.safeAttrValue||G.safeAttrValue;this.options=S}function b(S){return S.replace(ia,"\x26lt;").replace(ba,"\x26gt;")}function w(S){return S.replace(ja,"\x26quot;")}function p(S){return S.replace(pa,'"')}function n(S){return S.replace(Ca,function(U,ma){return"x"===ma[0]||"X"===ma[0]?String.fromCharCode(parseInt(ma.substr(1),16)):String.fromCharCode(parseInt(ma,10))})}function l(S){return S.replace(la,":").replace(ua," ")}function q(S){for(var U=
"",ma=0,ra=S.length;ma<ra;ma++)U+=32>S.charCodeAt(ma)?" ":S.charAt(ma);return da.trim(U)}function f(S){return S=q(S=l(S=n(S=p(S))))}function c(S){return S=b(S=w(S))}function a(S,U){for(;U<S.length;U++){var ma=S[U];if(" "!==ma)return"\x3d"===ma?U:-1}}function d(S,U){for(;0<U;U--){var ma=S[U];if(" "!==ma)return"\x3d"===ma?U:-1}}function e(S){return'"'===S[0]&&'"'===S[S.length-1]||"'"===S[0]&&"'"===S[S.length-1]?S.substr(1,S.length-2):S}function h(S){var U=S||{},ma={},ra;for(ra in U)ma[ra]=U[ra];(S=
ma).stripIgnoreTag&&(S.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),S.onIgnoreTag=na.onIgnoreTagStripAll);S.whiteList=S.whiteList||na.whiteList;S.onTag=S.onTag||na.onTag;S.onTagAttr=S.onTagAttr||na.onTagAttr;S.onIgnoreTag=S.onIgnoreTag||na.onIgnoreTag;S.onIgnoreTagAttr=S.onIgnoreTagAttr||na.onIgnoreTagAttr;S.safeAttrValue=S.safeAttrValue||na.safeAttrValue;S.escapeHtml=S.escapeHtml||na.escapeHtml;this.options=S;!1===S.css?this.cssFilter=
!1:(S.css=S.css||{},this.cssFilter=new Z(S.css))}var m,g,k=Object.prototype,x=Function.prototype.toString,v=k.hasOwnProperty,y=x.call(Object),u=k.toString,t=(m=Object.getPrototypeOf,g=Object,function(S){return m(g(S))}),r=function(S){var U;if(!(U=!S||"object"!=typeof S||"[object Object]"!=u.call(S))&&(U=!1,null!=S&&"function"!=typeof S.toString))try{U=!!(S+"")}catch(ma){}if(U)return!1;S=t(S);if(null===S)return!0;S=v.call(S,"constructor")&&S.constructor;return"function"==typeof S&&S instanceof S&&
x.call(S)==y},B={exports:{}},C={};k={exports:{}};var F={},A=/javascript\s*:/gim;F.whiteList=E();F.getDefaultWhiteList=E;F.onAttr=function(S,U,ma){};F.onIgnoreAttr=function(S,U,ma){};F.safeAttrValue=function(S,U){return A.test(U)?"":U};var D={indexOf:function(S,U){var ma;if(Array.prototype.indexOf)return S.indexOf(U);var ra=0;for(ma=S.length;ra<ma;ra++)if(S[ra]===U)return ra;return-1},forEach:function(S,U,ma){var ra;if(Array.prototype.forEach)return S.forEach(U,ma);var sa=0;for(ra=S.length;sa<ra;sa++)U.call(ma,
S[sa],sa,S)},trim:function(S){return String.prototype.trim?S.trim():S.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(S){return String.prototype.trimRight?S.trimRight():S.replace(/(\s*$)/g,"")}},G=F,H=function(S,U){function ma(){if(!sa){var Ba=D.trim(S.slice(V,W)),Ra=Ba.indexOf(":");if(-1!==Ra){var Va=D.trim(Ba.slice(0,Ra));Ra=D.trim(Ba.slice(Ra+1));Va&&(Ba=U(V,oa.length,Va,Ra,Ba))&&(oa+=Ba+"; ")}}V=W+1}";"!==(S=D.trimRight(S))[S.length-1]&&(S+=";");for(var ra=S.length,sa=!1,V=0,W=0,oa="";W<ra;W++){var ta=
S[W];if("/"===ta&&"*"===S[W+1]){ta=S.indexOf("*/",W+2);if(-1===ta)break;V=(W=ta+1)+1;sa=!1}else"("===ta?sa=!0:")"===ta?sa=!1:";"===ta?sa||ma():"\n"===ta&&ma()}return D.trim(oa)};z.prototype.process=function(S){if(!(S=(S=S||"").toString()))return"";var U=this.options,ma=U.whiteList,ra=U.onAttr,sa=U.onIgnoreAttr,V=U.safeAttrValue;return H(S,function(W,oa,ta,Ba,Ra){var Va=ma[ta],Za=!1;if(!0===Va?Za=Va:"function"==typeof Va?Za=Va(Ba):Va instanceof RegExp&&(Za=Va.test(Ba)),!0!==Za&&(Za=!1),Ba=V(ta,Ba)){var Qa;
W={position:oa,sourcePosition:W,source:Ra,isWhite:Za};return Za?null==(Qa=ra(ta,Ba,W))?ta+":"+Ba:Qa:null==(Qa=sa(ta,Ba,W))?void 0:Qa}})};!function(S,U){for(var ma in(U=S.exports=function(ra,sa){return(new z(sa)).process(ra)}).FilterCSS=z,F)U[ma]=F[ma]}(k,k.exports);var L={indexOf:function(S,U){var ma;if(Array.prototype.indexOf)return S.indexOf(U);var ra=0;for(ma=S.length;ra<ma;ra++)if(S[ra]===U)return ra;return-1},forEach:function(S,U,ma){var ra;if(Array.prototype.forEach)return S.forEach(U,ma);var sa=
0;for(ra=S.length;sa<ra;sa++)U.call(ma,S[sa],sa,S)},trim:function(S){return String.prototype.trim?S.trim():S.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(S){return(S=/\s|\n|\t/.exec(S))?S.index:-1}},aa=k.exports.getDefaultWhiteList,da=L,ha=new k.exports.FilterCSS,ia=/</g,ba=/>/g,ja=/"/g,pa=/&quot;/g,Ca=/&#([a-zA-Z0-9]*);?/gim,la=/&colon;?/gim,ua=/&newline;?/gim,Aa=/((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,M=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,
Y=/u\s*r\s*l\s*\(.*/gi;C.whiteList={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(" ")};C.getDefaultWhiteList=function(){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(" ")}};C.onTag=function(S,U,ma){};C.onIgnoreTag=function(S,U,ma){};C.onTagAttr=function(S,U,ma){};C.onIgnoreTagAttr=function(S,U,ma){};C.safeAttrValue=function(S,U,ma,ra){if(ma=f(ma),"href"===U||"src"===U){if("#"===(ma=da.trim(ma)))return"#";if("http://"!==ma.substr(0,
7)&&"https://"!==ma.substr(0,8)&&"mailto:"!==ma.substr(0,7)&&"tel:"!==ma.substr(0,4)&&"data:image/"!==ma.substr(0,11)&&"ftp://"!==ma.substr(0,6)&&"./"!==ma.substr(0,2)&&"../"!==ma.substr(0,3)&&"#"!==ma[0]&&"/"!==ma[0])return""}else if("background"===U){if(Aa.lastIndex=0,Aa.test(ma))return""}else if("style"===U){if((M.lastIndex=0,M.test(ma))||(Y.lastIndex=0,Y.test(ma)&&(Aa.lastIndex=0,Aa.test(ma))))return"";!1!==ra&&(ma=(ra=ra||ha).process(ma))}return ma=c(ma)};C.escapeHtml=b;C.escapeQuote=w;C.unescapeQuote=
p;C.escapeHtmlEntities=n;C.escapeDangerHtml5Entities=l;C.clearNonPrintableCharacter=q;C.friendlyAttrValue=f;C.escapeAttrValue=c;C.onIgnoreTagStripAll=function(){return""};C.StripTagBody=function(S,U){"function"!=typeof U&&(U=function(){});var ma=!Array.isArray(S),ra=[],sa=!1;return{onIgnoreTag:function(V,W,oa){return ma||-1!==da.indexOf(S,V)?oa.isClosing?(ra.push([!1!==sa?sa:oa.position,oa.position+10]),sa=!1,"[/removed]"):(sa||(sa=oa.position),"[removed]"):U(V,W,oa)},remove:function(V){var W="",
oa=0;return da.forEach(ra,function(ta){W+=V.slice(oa,ta[0]);oa=ta[1]}),W+=V.slice(oa)}}};C.stripCommentTag=function(S){for(var U="",ma=0;ma<S.length;){var ra=S.indexOf("\x3c!--",ma);if(-1===ra){U+=S.slice(ma);break}U+=S.slice(ma,ra);ma=S.indexOf("--\x3e",ra);if(-1===ma)break;ma+=3}return U};C.stripBlankChar=function(S){S=S.split("");return(S=S.filter(function(U){U=U.charCodeAt(0);return 127!==U&&(!(31>=U)||10===U||13===U)})).join("")};C.cssFilter=ha;C.getDefaultCSSWhiteList=aa;var ka={},N=/[^a-zA-Z0-9_:\.\-]/gim;
ka.parseTag=function(S,U,ma){var ra="",sa=0,V=!1,W=!1,oa=0,ta=S.length,Ba="",Ra="";oa=0;a:for(;oa<ta;oa++)if(Ra=S.charAt(oa),!1===V)"\x3c"===Ra&&(V=oa);else if(!1===W)if("\x3c"===Ra)ra+=ma(S.slice(sa,oa)),sa=V=oa;else if("\x3e"===Ra)ra+=ma(S.slice(sa,V)),sa=Ra=S.slice(V,oa+1),Ba=L.spaceIndex(sa),sa=-1===Ba?sa.slice(1,-1):sa.slice(1,Ba+1),Ba=("/"===(sa=L.trim(sa).toLowerCase()).slice(0,1)&&(sa=sa.slice(1)),"/"===sa.slice(-1)&&(sa=sa.slice(0,-1)),sa),ra+=U(V,ra.length,Ba,Ra,"\x3c/"===Ra.slice(0,2)),
sa=oa+1,V=!1;else{if('"'===Ra||"'"===Ra){Ba=1;for(var Va=S.charAt(oa-Ba);""===Va.trim()||"\x3d"===Va;){if("\x3d"===Va){W=Ra;continue a}Va=S.charAt(oa-++Ba)}}}else Ra===W&&(W=!1);return sa<S.length&&(ra+=ma(S.substr(sa))),ra};ka.parseAttr=function(S,U){function ma(Ba,Ra){1>(Ba=(Ba=L.trim(Ba)).replace(N,"").toLowerCase()).length||(Ba=U(Ba,Ra||""))&&sa.push(Ba)}for(var ra=0,sa=[],V=!1,W=S.length,oa=0;oa<W;oa++){var ta=S.charAt(oa);if(!1!==V||"\x3d"!==ta)if(!1===V||oa!==ra||'"'!==ta&&"'"!==ta||"\x3d"!==
S.charAt(oa-1))/\s|\n|\t/.test(ta)&&((S=S.replace(/\s|\n|\t/g," "),!1===V)?-1===(ta=a(S,oa))?(ma(L.trim(S.slice(ra,oa))),V=!1,ra=oa+1):oa=ta-1:-1===(ta=d(S,oa-1))&&(ma(V,e(L.trim(S.slice(ra,oa)))),V=!1,ra=oa+1));else{if(-1===(ta=S.indexOf(ta,oa+1)))break;ma(V,L.trim(S.slice(ra+1,ta)));V=!1;ra=(oa=ta)+1}else V=S.slice(ra,oa),ra=oa+1}return ra<S.length&&(!1===V?ma(S.slice(ra)):ma(V,e(L.trim(S.slice(ra))))),L.trim(sa.join(" "))};var Z=k.exports.FilterCSS,na=C,za=ka.parseTag,va=ka.parseAttr;h.prototype.process=
function(S){if(!(S=(S=S||"").toString()))return"";var U=this.options,ma=U.whiteList,ra=U.onTag,sa=U.onIgnoreTag,V=U.onTagAttr,W=U.onIgnoreTagAttr,oa=U.safeAttrValue,ta=U.escapeHtml,Ba=this.cssFilter;U.stripBlankChar&&(S=na.stripBlankChar(S));U.allowCommentTag||(S=na.stripCommentTag(S));var Ra=!1;U.stripIgnoreTagBody&&(Ra=na.StripTagBody(U.stripIgnoreTagBody,sa),sa=Ra.onIgnoreTag);S=za(S,function(Va,Za,Qa,J,Q){Za={sourcePosition:Va,position:Za,isClosing:Q,isWhite:ma.hasOwnProperty(Qa)};if(null!=(Va=
ra(Qa,J,Za)))return Va;if(Za.isWhite){if(Za.isClosing)return"\x3c/"+Qa+"\x3e";Va=function(K){var T=L.spaceIndex(K);if(-1===T)return{html:"",closing:"/"===K[K.length-2]};T="/"===(K=L.trim(K.slice(T+1,-1)))[K.length-1];return T&&(K=L.trim(K.slice(0,-1))),{html:K,closing:T}}(J);var ea=ma[Qa];Za=va(Va.html,function(K,T){var fa,qa=-1!==L.indexOf(ea,K);return null==(fa=V(Qa,K,T,qa))?qa?(T=oa(Qa,K,T,Ba))?K+'\x3d"'+T+'"':K:null==(fa=W(Qa,K,T,qa))?void 0:fa:fa});J="\x3c"+Qa;return Za&&(J+=" "+Za),Va.closing&&
(J+=" /"),J+="\x3e"}return null==(Va=sa(Qa,J,Za))?ta(J):Va},ta);return Ra&&(S=Ra.remove(S)),S};return function(S,U){function ma(V,W){return(new ra(W)).process(V)}var ra=h,sa;for(sa in(U=S.exports=ma).filterXSS=ma,U.FilterXSS=ra,C)U[sa]=C[sa];for(sa in ka)U[sa]=ka[sa];"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=S.exports)}(B,B.exports),function(){function S(U,ma){var ra,sa=this;this.arcgisWhiteList={a:["href",
"style","target"],abbr:["title"],audio:["autoplay","controls","loop","muted","preload"],b:[],br:[],dd:["style"],div:["align","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],hr:[],i:[],img:"alt border height src style width".split(" "),li:[],ol:[],p:["style"],source:["media","src","type"],span:["style"],strong:[],sub:["style"],sup:["style"],table:"border cellpadding cellspacing height style width".split(" "),
tbody:[],tr:["align","height","style","valign"],td:"align colspan height nowrap rowspan style valign width".split(" "),th:"align colspan height nowrap rowspan style valign width".split(" "),u:[],ul:[],video:"autoplay controls height loop muted poster preload width".split(" ")};this.allowedProtocols="http https mailto iform tel flow lfmobile arcgis-navigator arcgis-appstudio-player arcgis-survey123 arcgis-collector arcgis-workforce arcgis-explorer arcgis-trek2there arcgis-quickcapture mspbi comgooglemaps pdfefile pdfehttp pdfehttps boxapp boxemm awb awbs gropen radarscope".split(" ");
this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(V,W,oa,ta){return"a"===V&&"href"===W||("img"===V||"source"===V)&&"src"===W?sa.sanitizeUrl(oa):B.exports.safeAttrValue(V,W,oa,ta)}};U&&!ma?ra=U:U&&ma?(ra=Object.create(this.arcgisFilterOptions),Object.keys(U).forEach(function(V){"whiteList"===V?ra.whiteList=sa._extendObjectOfArrays([sa.arcgisWhiteList,U.whiteList||{}]):ra[V]=U[V]})):(ra=Object.create(this.arcgisFilterOptions)).whiteList=this.arcgisWhiteList;this.xssFilterOptions=ra;
this._xssFilter=new B.exports.FilterXSS(ra)}return S.prototype.sanitize=function(U,ma){switch(void 0===ma&&(ma={}),typeof U){case "number":return isNaN(U)||!isFinite(U)?null:U;case "boolean":return U;case "string":return this._xssFilter.process(U);case "object":return this._iterateOverObject(U,ma);default:if(!ma.allowUndefined||void 0!==U)return null}},S.prototype.sanitizeUrl=function(U){var ma=this._trim(U.substring(0,U.indexOf(":")));return"/"===U||"#"===U||"#"===U[0]||-1<this.allowedProtocols.indexOf(ma.toLowerCase())?
B.exports.escapeAttrValue(U):""},S.prototype.sanitizeHTMLAttribute=function(U,ma,ra,sa){return"function"==typeof this.xssFilterOptions.safeAttrValue?this.xssFilterOptions.safeAttrValue(U,ma,ra,sa):B.exports.safeAttrValue(U,ma,ra,sa)},S.prototype.validate=function(U,ma){void 0===ma&&(ma={});ma=this.sanitize(U,ma);return{isValid:U===ma,sanitized:ma}},S.prototype._extendObjectOfArrays=function(U){var ma={};return U.forEach(function(ra){Object.keys(ra).forEach(function(sa){Array.isArray(ra[sa])&&Array.isArray(ma[sa])?
ma[sa]=ma[sa].concat(ra[sa]):ma[sa]=ra[sa]})}),ma},S.prototype._iterateOverObject=function(U,ma){var ra=this;void 0===ma&&(ma={});try{var sa=!1,V=void 0;if(Array.isArray(U))V=U.reduce(function(W,oa){var ta=ra.validate(oa,ma);return ta.isValid?W.concat([oa]):(sa=!0,W.concat([ta.sanitized]))},[]);else{if(!r(U))return ma.allowUndefined&&void 0===U?void 0:null;V=Object.keys(U).reduce(function(W,oa){var ta=U[oa],Ba=ra.validate(ta,ma);return Ba.isValid?W[oa]=ta:(sa=!0,W[oa]=Ba.sanitized),W},{})}return sa?
V:U}catch(W){return null}},S.prototype._trim=function(U){return String.prototype.trim?U.trim():U.replace(/(^\s*)|(\s*$)/g,"")},S}()})},"dijit/_Templated":function(){define("./_WidgetBase ./_TemplatedMixin ./_WidgetsInTemplateMixin dojo/_base/array dojo/_base/declare dojo/_base/lang dojo/_base/kernel".split(" "),function(E,z,b,w,p,n,l){n.extend(E,{waiRole:"",waiState:""});return p("dijit._Templated",[z,b],{constructor:function(){l.deprecated(this.declaredClass+": dijit._Templated deprecated, use dijit._TemplatedMixin and if necessary dijit._WidgetsInTemplateMixin",
"","2.0")},_processNode:function(q,f){var c=this.inherited(arguments),a=f(q,"waiRole");a&&q.setAttribute("role",a);(a=f(q,"waiState"))&&w.forEach(a.split(/\s*,\s*/),function(d){-1!=d.indexOf("-")&&(d=d.split("-"),q.setAttribute("aria-"+d[0],d[1]))});return c}})})},"dijit/_WidgetsInTemplateMixin":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/_base/lang","dojo/parser"],function(E,z,b,w,p){return b("dijit._WidgetsInTemplateMixin",null,{_earlyTemplatedStartup:!1,contextRequire:null,
_beforeFillContent:function(){if(/dojoType|data-dojo-type/i.test(this.domNode.innerHTML)){var n=this.domNode;this.containerNode&&!this.searchContainerNode&&(this.containerNode.stopParser=!0);p.parse(n,{noStart:!this._earlyTemplatedStartup,template:!0,inherited:{dir:this.dir,lang:this.lang,textDir:this.textDir},propsThis:this,contextRequire:this.contextRequire,scope:"dojo"}).then(w.hitch(this,function(l){this._startupWidgets=l;for(var q=0;q<l.length;q++)this._processTemplateNode(l[q],function(f,c){return f[c]},
function(f,c,a){return c in f?f.connect(f,c,a):f.on(c,a,!0)});this.containerNode&&this.containerNode.stopParser&&delete this.containerNode.stopParser}));if(!this._startupWidgets)throw Error(this.declaredClass+": parser returned unfilled promise (probably waiting for module auto-load), unsupported by _WidgetsInTemplateMixin.   Must pre-load all supporting widgets before instantiation.");}},_processTemplateNode:function(n,l,q){return l(n,"dojoType")||l(n,"data-dojo-type")?!0:this.inherited(arguments)},
startup:function(){E.forEach(this._startupWidgets,function(n){n&&!n._started&&n.startup&&n.startup()});this._startupWidgets=null;this.inherited(arguments)}})})},"esri/dijit/_EventedWidget":function(){define("dojo/_base/declare dojo/_base/lang dojo/aspect dojo/on ../Evented dijit/_WidgetBase".split(" "),function(E,z,b,w,p,n){return E([n,p],{_onMap:function(l){var q=this.constructor._onMap;q&&q.FINAL||(delete this.constructor._onMap,q=this.registerConnectEvents(),q.FINAL=!0);l=l.toLowerCase();if(q[l])var f=
this[q[l].method];else l=this._onCamelCase(l),this[l]&&(f=l);return f},on:function(l,q){var f=this._onMap(l),c=l.replace(/\-/g,""),a="on"+c in this.domNode;return f||!a?this.inherited(arguments):this.own(w(this.domNode,c,q))[0]},emit:function(l,q,f){var c,a=l.toLowerCase(),d=this.constructor._onMap||this.registerConnectEvents();var e=this[this._onMap(a)];q=q||{};q.target||(q.target=this);if(e&&d&&d[a]){this._onObj2Arr(function(){c=Array.prototype.slice.call(arguments)},d[a].argKeys)(q);var h=z.mixin({},
arguments);h[2]=c;h[0]=d[a].name.replace(/^on/,"")}return this.inherited(h||arguments)}})})},"esri/dijit/Legend/utils":function(){define(["dojo/_base/lang","../../lang","dojo/i18n!../../nls/jsapi"],function(E,z,b){var w=b.widgets.legend;return{getVisualVariableTitle:function(p,n){var l=p.field,q=p.normalizationField,f=!1,c=!1,a=!1;l=E.isFunction(l)?null:l;q=E.isFunction(q)?null:q;if(p.legendOptions&&p.legendOptions.title)var d=p.legendOptions.title;else if(p.valueExpressionTitle)d=p.valueExpressionTitle;
else{if(n.renderer&&n.renderer.authoringInfo&&n.renderer.authoringInfo.visualVariables){var e=n.renderer.authoringInfo.visualVariables;for(p=0;p<e.length;p++){var h=e[p];if("colorInfo"===h.type&&"ratio"===h.style){f=!0;break}else if("colorInfo"===h.type&&"percent"===h.style){c=!0;break}else if("colorInfo"===h.type&&"percentTotal"===h.style){a=!0;break}}}(f=a&&"showRatioPercentTotal"||c&&"showRatioPercent"||f&&"showRatio"||q&&"showNormField"||l&&"showField"||null)&&(d=z.substitute({field:l&&n.getFieldLabel(l),
normField:q&&n.getFieldLabel(q)},"showField"===f?"${field}":w[f]))}return d},getRendererTitle:function(p,n){if(p){if("esri.renderer.ClassBreaksRenderer"===p.declaredClass){var l=p.attributeField;var q=p.normalizationField;var f="percent-of-total"===p.normalizationType}l=E.isFunction(l)?null:l;q=E.isFunction(q)?null:q;if(p.legendOptions&&p.legendOptions.title)var c=p.legendOptions.title;else p.valueExpressionTitle?c=p.valueExpressionTitle:(p=q&&"showNormField"||(f?"showNormPct":null)||l&&"showField"||
null)&&(c=z.substitute({field:l&&n.getFieldLabel(l),normField:q&&n.getFieldLabel(q)},"showField"===p?"${field}":w[p]))}return c}}})},"esri/layers/clustering/GeohashAggregation":function(){define("dojo/has dojo/_base/declare dojo/_base/lang dojo/_base/array ../../kernel ../../Evented ../../geometry/Point ../../geometry/Extent ../../geometry/mathUtils ../../support/expressionUtils ../../core/timerUtils ../support/attributeUtils ./geohashUtils ./statUtils".split(" "),function(E,z,b,w,p,n,l,q,f,c,a,d,
e,h){z=z(n,{loaded:!1,started:!1,map:null,layer:null,lod:null,tolerance:null,clusterMode:null,clusterRadius:null,sortEnabled:!0,filterEnabled:!0,bufferEnabled:!0,updateEnabled:!0,clusters:null,clustersEnabled:!0,statisticInfos:null,defaults:{lod:1,tolerance:0,clusterMode:"auto",clusterRadius:80,sortEnabled:!0,filterEnabled:!0,bufferEnabled:!0,updateEnabled:!0},_eventHandles:null,_updateHandle:null,_indexHandle:null,_cellIndex:null,_globalIndex:null,_perfProfile:null,_indexUpdated:!1,_cellSizeScaleFactor:1.5,
_extentScaleFactor:1.25,_maxGeohashLength:12,_minClusterRadius:15,_levelChange:!0,_clusterFieldPrefix:"cluster_",_mapLevelChange:!1,constructor:function(m){this._update=b.hitch(this,this._update);this._indexFeatures=b.hitch(this,this._indexFeatures);this._eventHandles=[];this._globalIndex={numFeatures:null,fullExtent:null,lodStats:null};this._perfProfile={lastIndex:{total:null,numFeatures:0},lastUpdate:{cells:null,clusters:null,total:null}};this.clusters=[];this.map=m.map;this.layer=m.layer;this.setLod(m.lod);
this.setTolerance(m.tolerance);this.setClusterMode(m.clusterMode);this.setClusterRadius(m.clusterRadius);this.setSortEnabled(m.sortEnabled);this.setFilterEnabled(m.filterEnabled);this.setBufferEnabled(m.bufferEnabled);this.setUpdateEnabled(m.updateEnabled);this.setStatisticInfos(m.statisticInfos);this._load();this.loaded?this._startup():this._eventHandles.push(this.on("load",b.hitch(this,this._startup)))},destroy:function(m){this._displayFeatures(!0,m);w.forEach(this._eventHandles,function(g){g.remove()});
a.clearTimeout(this._updateHandle);a.clearTimeout(this._indexHandle);this._cellIndex=this._globalIndex=this._eventHandles=this._updateHandle=this._indexHandle=this.map=this.layer=this.clusters=null},setLod:function(m){var g=this.lod;this.lod=m||this.defaults.lod;g!==this.lod&&this.update()},setTolerance:function(m){var g=this.tolerance;this.tolerance=m||this.defaults.tolerance;g!==this.tolerance&&this.update()},setClusterMode:function(m){var g=this.clusterMode;this.clusterMode=m||this.defaults.clusterMode;
this._evalClusterParams();g!==this.clusterMode&&this.update()},setClusterRadius:function(m){var g=this.clusterRadius;this.clusterRadius=null!=m?m:this.defaults.clusterRadius;this._evalClusterParams();g!==this.clusterRadius&&this.update()},setSortEnabled:function(m){var g=this.sortEnabled;this.sortEnabled=null!=m?!!m:this.defaults.sortEnabled;g!==this.sortEnabled&&this.update()},setFilterEnabled:function(m){var g=this.filterEnabled;this.filterEnabled=null!=m?!!m:this.defaults.filterEnabled;g!==this.filterEnabled&&
this.update()},setBufferEnabled:function(m){var g=this.bufferEnabled;this.bufferEnabled=null!=m?!!m:this.defaults.bufferEnabled;g!==this.bufferEnabled&&this.update()},setUpdateEnabled:function(m){var g=this.updateEnabled;(this.updateEnabled=null!=m?!!m:this.defaults.updateEnabled)&&g!==this.updateEnabled&&(this._mapLevelChange=!0,this.update())},setStatisticInfos:function(m){this.statisticInfos=m||[];this.loaded&&this._applyStatInfos(this.statisticInfos)},update:function(){this.loaded&&null==this._updateHandle&&
(this._updateHandle=a.setTimeout(this._update,a.priority.HIGH))},isUpdateScheduled:function(){return null!=this._updateHandle},index:function(){this.loaded&&null==this._indexHandle&&(this._indexHandle=a.setTimeout(this._indexFeatures,a.priority.HIGH))},getCell:function(m){return this._cellIndex[m.length][m]},getCluster:function(m){var g;w.some(this.clusters,function(k){-1<w.indexOf(k.geohashes,m)&&(g=k);return!!g});return g},getCellsInCluster:function(m){var g=[];w.forEach(m&&m.geohashes,function(k){(k=
this.getCell(k))&&g.push(k)},this);return g},getFeaturesInCluster:function(m){var g=[];m=this.getCellsInCluster(m);w.forEach(m,function(k){Array.prototype.push.apply(g,k.features)});return g},toggleFeatureVisibility:function(m){this.index()},getCurrentLodStats:function(){var m=this._globalIndex.lodStats;return m&&m[this.lod]},getNumFeatures:function(){return this._globalIndex.numFeatures},getFullExtent:function(){var m=this._globalIndex.fullExtent;return m&&Infinity!==m.xmin?new q(m):null},_load:function(){this._displayFeatures(!1);
this._checkLoadStatus();this.map.loaded||this._eventHandles.push(this.map.on("load",b.hitch(this,this._checkLoadStatus)));this.layer.loaded||this._eventHandles.push(this.layer.on("load",b.hitch(this,this._checkLoadStatus)))},_checkLoadStatus:function(){if(this.map.loaded&&this.layer.loaded){if("esriGeometryPoint"!==this.layer.geometryType)var m=Error("GeohashAggregation is supported only for points");else{var g=this.map.spatialReference;g.isWebMercator()||4326===g.wkid||(m=Error("GeohashAggregation is supported only when map spatial reference is WGS84 or WebMercator"))}m?
(this.loadError=m,this.emit("load-error",{error:m})):(this.loaded=!0,this.emit("load"))}},_startup:function(){this._evalUpdateStatus();this.index();this._processExtentChange();this._eventHandles.push(this.layer.on("update-end",b.hitch(this,this.index)),this.layer.on("edits-complete",b.hitch(this,this.index)),this.layer.on("graphics-clear",b.hitch(this,this.index)),this.layer.on("suspend",b.hitch(this,this._evalUpdateStatus)),this.layer.on("resume",b.hitch(this,this._evalUpdateStatus)),this.map.on("extent-change",
b.hitch(this,this._processExtentChange)))},_evalUpdateStatus:function(){this.setUpdateEnabled(!this.layer.suspended)},_processExtentChange:function(m){this._mapLevelChange=!(!m||!m.levelChange);this._evalClusterParams();this.update()},_update:function(){this._updateHandle=null;if(this.updateEnabled){this.emit("update-start");if(this.clustersEnabled){var m=this.map.geographicExtent;if(m){var g=this._getIntersectingCells(m);m=this._getClusters(g.cells,m);this.clusters=m.clusters;this._applyStatInfosToClusters();
g=g.profile;m=m.profile;var k=g.total+m.total;g.total=this._getElapsedTime(g.total);m.total=this._getElapsedTime(m.total);var x=this._perfProfile.lastUpdate={};x.cells=g;x.clusters=m;x.total=this._getElapsedTime(k)}}else this.clusters=[],this._perfProfile.lastUpdate=null;g=this._indexUpdated;this._indexUpdated=!1;m=this._mapLevelChange;this._mapLevelChange=!1;this.emit("update-end",{levelChange:this._levelChange,mapLevelChange:m,indexChange:g})}},_displayFeatures:function(m,g){var k=this.layer;m=
!m;k.suspendGraphics(m);!1!==g&&(m?k.clearNodes():k.redraw())},_indexFeatures:function(){this._indexHandle=null;var m=this._getTime();this._initializeIndexing();var g=0,k=this._globalIndex.fullExtent;w.forEach(this.layer.graphics,function(y){if(y.visible){var u=y.geometry,t=this._getLngLat(u);if(t){var r=u.getCacheValue("_geohash");void 0===r&&(r=e.pointToGeohash(t),u.setCacheValue("_geohash",r||null))}r&&(this._addGeohashToIndex(r,y,t),g++,this._updateExtent(k,t))}},this);this._applyStatInfosToIndex();
this._globalIndex.numFeatures=g;for(var x=this._globalIndex.lodStats,v=1;v<=this._maxGeohashLength;v++)x[v]=this._getLODStats(v,g);this._perfProfile.lastIndex.total=this._getElapsedTime(m,this._getTime());this._perfProfile.lastIndex.numFeatures=g;this._indexUpdated=!0;this.emit("index-complete");this.started||(this.started=!0,this.emit("start"));this.update()},_initializeIndexing:function(){this._globalIndex={numFeatures:0,fullExtent:{xmin:Infinity,ymin:Infinity,xmax:-Infinity,ymax:-Infinity},lodStats:{}};
for(var m=this._cellIndex=[],g=1;g<=this._maxGeohashLength;g++)m[g]={}},_getLngLat:function(m){if(m){var g=m.getLongitude();m=m.getLatitude();m=null!=g&&null!=m?{x:g,y:m}:null}return m},_addGeohashToIndex:function(m,g,k){for(var x=this._cellIndex,v="",y=0;y<this._maxGeohashLength;y++){v+=m[y];var u=x[v.length],t=u[v];t||(t=u[v]={count:0,centroid:{x:null,y:null},extent:{xmin:Infinity,ymin:Infinity,xmax:-Infinity,ymax:-Infinity},features:[],geohash:v,statistics:null});this._updateItem(t,1,k,!0);t.features.push(g)}},
_getLODStats:function(m,g){var k=this._cellIndex[m],x=0,v=Infinity,y=-Infinity,u=null,t;for(t in k){var r=k[t];x++;r.count<v&&(v=r.count);r.count>y&&(y=r.count)}0<x&&(u=Number((g/x).toFixed(2)));return{lod:m,count:x,min:Infinity===v?null:v,max:-Infinity===y?null:y,avg:u}},_evalClusterParams:function(){if(this.loaded&&"auto"===this.clusterMode){var m=this._getClusterParams(this.map.getResolutionInMeters(),this.clusterRadius,this._minClusterRadius);this._levelChange=this.lod!==m.lod;this.lod=m.lod;
this.tolerance=m.tolerance}},_getClusterParams:function(m,g,k){g<k&&(g=k);m=Math.ceil(m*g);g=this._getClosestLODRange(m).max;do k=this._getCellSize(g),(k=m>=this._cellSizeScaleFactor*k||1===k)||(g+=1);while(!k);k=m/this._getCellSize(g);return{lod:g,tolerance:m,multiplier:Number(k.toFixed(2))}},_getClosestLODRange:function(m){for(var g,k=this._maxGeohashLength;1<=k;k--)if(this._getCellSize(k)>=m){g=k;break}null==g&&(g=1);m=g+1;m>this._maxGeohashLength&&(m=this._maxGeohashLength);return{min:g,max:m}},
_getCellSize:function(m){m=e.getCellSizeInMeters(m);return Math.ceil(Math.min(m.width,m.height))},_sorter:function(m,g){var k=m.centroid,x=g.centroid;return m.count>g.count?-1:m.count<g.count?1:k.x>x.x?-1:k.x<x.x?1:0},_getIntersectingCells:function(m){var g=this._getTime();this.bufferEnabled&&(m=m.expand(this._extentScaleFactor));var k=e.getIntersecting(m,this.lod,this.bufferEnabled?this.tolerance:0);m=this._getTime();var x=[],v=this.tolerance,y=this.sortEnabled;w.forEach(k,function(u){(u=this.getCell(u))&&
x.push(u)},this);v&&y&&x.sort(this._sorter);k=this._getTime();return{cells:x,profile:{findCells:this._getElapsedTime(g,m),scanAndSortCells:this._getElapsedTime(m,k),total:k-g}}},_getClusters:function(m,g){var k=this._getTime(),x=[],v={},y={findCells:0};w.forEach(m,function(u,t){(u=this._createCluster(u,v,y))&&x.push(u)},this);this._markIntersecting(x,g);this.filterEnabled&&(x=this._getIntersectingClusters(x));m=this._getTime();return{clusters:x,profile:{findCellsInCluster:this._getElapsedTime(y.findCells),
total:m-k}}},_markIntersecting:function(m,g){var k=g.normalize();w.forEach(m,function(x){var v=x.centroid.x,y=x.centroid.y;x.isIntersecting=w.some(k,function(u){return v>=u.xmin&&v<=u.xmax&&y>=u.ymin&&y<=u.ymax})})},_getIntersectingClusters:function(m){return w.filter(m,function(g){return g.isIntersecting})},_createCluster:function(m,g,k){if(!g[m.geohash]){var x=[{cell:m,distance:0}];if(this.tolerance){var v=this._getTime(),y=e.getNeighborsWithinDistance(m.centroid,this.lod,this.tolerance);k.findCells+=
this._getTime()-v;w.forEach(y,function(u){if(u!==m.geohash&&(u=this.getCell(u))){var t=this._calculateDistance(m.centroid,u.centroid);t<=this.tolerance&&x.push({cell:u,distance:t})}},this)}return this._mergeCells(x,g)}},_calculateDistance:function(m,g){return f.getLength(e.geographicToWebMercator(m),e.geographicToWebMercator(g))},_mergeCells:function(m,g){var k=this._initializeCluster({},m[0].cell.geohash);w.forEach(m,function(x){var v=x.cell,y=v.geohash;x=x.distance;var u=g[y];if(u)if(x<u.distance)this._removeCellFromCluster(y,
g);else return;g[y]={cluster:k,distance:x};this._updateItem(k,v.count,v.centroid);k.geohashes.push(y)},this);return k},_removeCellFromCluster:function(m,g){var k=g[m].cluster;delete g[m];m=w.indexOf(k.geohashes,m);-1<m&&k.geohashes.splice(m,1);this._reevaluateCluster(k)},_reevaluateCluster:function(m){var g=m.geohashes;m=this._initializeCluster(m,m.primary);w.forEach(g,function(k){var x=this.getCell(k);x&&(this._updateItem(m,x.count,x.centroid),m.geohashes.push(k))},this)},_initializeCluster:function(m,
g){m.count=0;m.centroid=new l(null,null);m.geohashes=[];m.primary=g;m.statistics=null;return m},_applyStatInfos:function(m){m=this._getValidStatInfos(m);this._applyStatInfosToIndex(m);this._applyStatInfosToClusters(m)},_getValidStatInfos:function(m){var g=[];w.forEach(m,function(k){var x=k.attributeInfo;k=k.statisticType;var v="angle"===x.attributeType;if(h.isSupportedStatisticType(k)&&(!v||"avg"===k)){var y="arithmetic"===x.rotationType;g.push({attributeCache:d.createAttributeCache(x,"type"===k),
identifier:h.getStatisticId(x,k),statFunctions:h.getStatisticFunctions(k),isAngular:v,isDate:"date"===x.attributeType,isArithmetic:y})}});return g},_applyStatInfosToIndex:function(m){m=m||this._getValidStatInfos(this.statisticInfos);var g=this._cellIndex;if(g)for(var k=1;k<=this._maxGeohashLength;k++){var x=g[k],v;for(v in x)this._applyStatInfosToCell(x[v],m)}},_applyStatInfosToCell:function(m,g){var k=this._initializeStats(m,g);w.forEach(m.features,function(x){this._calcFeatureStats(x,g,k)},this);
this._summarizeStats(m,k,g)},_calcFeatureStats:function(m,g,k){m.attributes&&w.forEach(g,function(x){var v=k[x.identifier],y=x.attributeCache;y=y?m._getDataValue(y.attributeInfo,y,c):null;x.statFunctions.updateCellStat(v,y,x)})},_applyStatInfosToClusters:function(m){m=m||this._getValidStatInfos(this.statisticInfos);var g=this._clusterFieldPrefix;w.forEach(this.clusters,function(k){var x=this._initializeStats(k,m);w.forEach(this.getCellsInCluster(k),function(v){this._calcCellStats(v,m,x)},this);this._summarizeStats(k,
x,m,g);k.attributes[g+"id"]=k.primary},this)},_calcCellStats:function(m,g,k){var x=m.statistics;w.forEach(g,function(v){var y=v.identifier;v.statFunctions.updateClusterStat(k[y],x[y],v)})},_initializeStats:function(m,g){var k=m.statistics={};w.forEach(g,function(x){k[x.identifier]=x.statFunctions.initialize(x)});return k},_summarizeStats:function(m,g,k,x){var v=m.attributes={};x=x||"";v[x+"count"]=m.count;w.forEach(k,function(y){var u=this._getStatFieldName(y,x);v[u]=y.statFunctions.summarize(g[y.identifier],
y)},this)},_getStatFieldName:function(m,g){return(g||"")+m.identifier},_updateItem:function(m,g,k,x){var v=k.y,y=m.centroid,u=m.count;y.x=(u*y.x+g*k.x)/(u+g);y.y=(u*y.y+g*v)/(u+g);m.count+=g;x&&this._updateExtent(m.extent,k)},_updateExtent:function(m,g){var k=g.x;g=g.y;k<m.xmin&&(m.xmin=k);k>m.xmax&&(m.xmax=k);g<m.ymin&&(m.ymin=g);g>m.ymax&&(m.ymax=g)},_getTime:function(){return window.performance?window.performance.now():(new Date).getTime()},_getElapsedTime:function(m,g){m=null!=m&&null!=g?g-m:
m;if(null!=m){var k="millisecond";1E3<=m&&(m/=1E3,k="second",60<=m&&(m/=60,k="minute"));k={value:Number(m.toFixed(2)),unit:k}}return k}});E("extend-esri")&&b.setObject("layers.clustering.GeohashAggregation",z,p);return z})},"esri/core/timerUtils":function(){define([],function(){function E(n){var l,q=n.length;for(l=0;l<q;l++)n[l]()}var z={LOW:1,HIGH:2},b,w={};w[z.LOW]=[];w[z.HIGH]=[];var p=function(){clearTimeout(b);b=null;var n=w[z.HIGH];w[z.HIGH]=[];E(n);n=w[z.LOW];w[z.LOW]=[];E(n)};return{priority:z,
callbackQueue:w,setTimeout:function(n,l){n=[l,w[l].push(n)-1];b||(b=setTimeout(p,0));return n},clearTimeout:function(n){n&&w[n[0]].splice(n[1],1)}}})},"esri/layers/clustering/geohashUtils":function(){define("dojo/has dojo/string dojo/_base/lang dojo/_base/array ../../kernel ../../geometry/Point ../../geometry/Extent ../../SpatialReference ../../geometry/webMercatorUtils".split(" "),function(E,z,b,w,p,n,l,q,f){function c(H){var L=H.spatialReference;if(!L)return{x:H.x,y:H.y};var aa=L.isWebMercator(),
da;4326===L.wkid?da={x:H.x,y:H.y}:aa&&(da={x:H.getLongitude(),y:H.getLatitude()});return da}function a(H){var L=H.spatialReference,aa=!(!L||!L.isWebMercator()),da;L&&4326===L.wkid?da=new l(H.toJson()):aa&&(da=f.webMercatorToGeographic(H,!0));return da}function d(H,L){L.x=n.prototype._normalizeX(H.x,q.prototype._info[4326]);L.y=H.y;return L}function e(H){H=D.decimals[H].toString(2);return z.pad(H,D.bitsPerBase32Char,"0")}function h(H,L){L=L.slice();L.splice(1,0,0);for(var aa=L[0],da=L[2],ha=0;ha<H.length;ha++){Number(H[ha])?
L[0]=L[1]:L[2]=L[1];var ia=L[1]=(L[0]+L[2])/2;aa=L[0];da=L[2]}return{value:ia,min:aa,max:da}}function m(H,L,aa){var da=[];L=L.slice();L.splice(1,0,0);for(var ha=L[0],ia=L[2],ba=0;ba<aa;ba++)H>=L[1]?(L[0]=L[1],ha=1):(L[2]=L[1],ha=0),L[1]=(L[0]+L[2])/2,da.push(ha),ha=L[0],ia=L[2];return{value:da.join(""),min:ha,max:ia}}function g(H){var L=H*D.bitsPerBase32Char;0===L%2?H=L/=2:(H=(L+1)/2,L-=H);return{lon:H,lat:L}}function k(H){var L=0;H=H.split("").reverse().join("");for(var aa=0;aa<H.length;aa++)L+=
Number(H[aa])*Math.pow(2,aa);return D.base32[L]}function x(H,L){var aa={x:H.xmin,y:H.ymax},da={x:H.xmax,y:H.ymin},ha={x:H.xmax,y:H.ymax};return{sw:G.pointToGeohash({x:H.xmin,y:H.ymin},L),nw:G.pointToGeohash(aa,L),se:G.pointToGeohash(da,L),ne:G.pointToGeohash(ha,L)}}function v(H,L,aa,da,ha){var ia=H;do ha[ia]||(ha[ia]=!0,da.push(ia)),(H=ia===L)||(ia=A(ia,aa));while(!H)}function y(H,L,aa,da){var ha=x(H,L);H=[];v(ha.sw,ha.nw,"n",H,{});L=[];v(ha.se,ha.ne,"n",L,{});for(ha=0;ha<H.length;ha++)v(H[ha],L[ha],
"e",aa,da)}function u(H){return w.filter(H,function(L){return 180===L.xmax?!0:!1})[0]}function t(H){return w.filter(H,function(L){return-180===L.xmin?!0:!1})[0]}function r(H,L,aa,da){var ha=G.geographicToWebMercator(H);H={x:ha.x-L,y:ha.y-L};L=G.webMercatorToGeographic({x:ha.x+L,y:ha.y+L},!0);H=G.webMercatorToGeographic(H,!0);return new l(null!=aa?aa:H.x,H.y,null!=da?da:L.x,L.y)}function B(H,L,aa,da){H=x(H,L);var ha,ia;"min"===da?ia=180:"max"===da&&(ha=-180);var ba=ha;da=ia;var ja=G.geohashToCell(H.sw).extent;
L=G.geohashToCell(H.ne).extent;H=null!=ba?ba:ja.xmin;ja=ja.ymin;da=null!=da?da:L.xmax;L=L.ymax;H=r({x:H,y:ja},aa,ha,ia);aa=r({x:da,y:L},aa,ha,ia);return new l(H.xmin,H.ymin,aa.xmax,aa.ymax)}function C(H,L,aa){var da=H,ha=0;do ha++,(H=da===L)||(da=A(da,aa));while(!H);return ha}function F(H,L){H=x(H,L);L=C(H.nw,H.ne,"e");return{rows:C(H.nw,H.sw,"s"),cols:L}}function A(H,L){var aa=H.length%2,da=H.slice(-1),ha=D.decimals[da];H=H.slice(0,-1);-1!=D.borders[L][aa].indexOf(da)&&H&&(H=A(H,L));return H+D.neighbors[L][aa][ha]}
var D={base32:"0123456789bcdefghjkmnpqrstuvwxyz",decimals:function(){for(var H={},L=0;32>L;L++)H["0123456789bcdefghjkmnpqrstuvwxyz"[L]]=L;return H}(),neighbors:{n:[null,"238967debc01fg45kmstqrwxuvhjyznp"],s:[null,"bc01fg45238967deuvhjyznpkmstqrwx"],e:[null,"14365h7k9dcfesgujnmqp0r2twvyx8zb"],w:[null,"p0r21436x8zb9dcf5h7kjnmqesgutwvy"]},borders:{n:[null,"bcfguvyz"],s:[null,"0145hjnp"],e:[null,"prxz"],w:[null,"028b"]},bitsPerBase32Char:5,maxGeohashLength:12,longitudeRange:[-180,180],latitudeRange:[-90,
90]};D.neighbors.n[0]="14365h7k9dcfesgujnmqp0r2twvyx8zb";D.neighbors.s[0]="p0r21436x8zb9dcf5h7kjnmqesgutwvy";D.neighbors.e[0]="238967debc01fg45kmstqrwxuvhjyznp";D.neighbors.w[0]="bc01fg45238967deuvhjyznpkmstqrwx";D.borders.n[0]="prxz";D.borders.s[0]="028b";D.borders.e[0]="bcfguvyz";D.borders.w[0]="0145hjnp";var G={geographicToWebMercator:function(H){H=n.lngLatToXY(H.x,H.y);return{x:H[0],y:H[1]}},webMercatorToGeographic:function(H,L){H=n.xyToLngLat(H.x,H.y,L);return{x:H[0],y:H[1]}},geohashToCell:function(H){var L;
var aa=[];for(L=0;L<H.length;L++)aa.push(e(H[L]));aa=aa.join("");L=[];for(var da=[],ha=0;ha<aa.length;ha++)0===ha%2?L.push(aa[ha]):da.push(aa[ha]);L=L.join("");da=da.join("");L=[L,da];aa=h(L[0],D.longitudeRange);da=h(L[1],D.latitudeRange);L=aa.value;return{point:{x:L,y:da.value},extent:{xmin:aa.min,xmax:aa.max,ymin:da.min,ymax:da.max},geohash:H}},pointToCell:function(H,L){L=L||D.maxGeohashLength;if(H=c(H)){H=d(H,H);var aa=g(L);L=m(H.x,D.longitudeRange,aa.lon);var da=m(H.y,D.latitudeRange,aa.lat);
aa=L.value;var ha=da.value;L={xmin:L.min,xmax:L.max,ymin:da.min,ymax:da.max};da=[];for(var ia=Math.ceil((aa.length+ha.length)/D.bitsPerBase32Char),ba=0,ja=0,pa=0;pa<ia*D.bitsPerBase32Char;pa++){var Ca=0===pa%2?aa[ba++]:ha[ja++];null==Ca&&(Ca=0);da.push(Ca)}aa=da.join("");ha=D.bitsPerBase32Char;da=aa.length/ha;ia=[];for(ba=0;ba<da;ba++)ja=aa.substr(ba*ha,ha),ia.push(k(ja));aa=ia.join("");return{point:H,extent:L,geohash:aa}}},geohashToPoint:function(H){return G.geohashToCell(H).point},pointToGeohash:function(H,
L){return(H=G.pointToCell(H,L))&&H.geohash},getCells:function(H){return w.map(H,function(L){return G.geohashToCell(L)})},getCellSize:function(H){var L=D.longitudeRange,aa=D.latitudeRange;L=Math.abs(L[1]-L[0]);aa=Math.abs(aa[1]-aa[0]);H=g(H||1);return{width:L/Math.pow(2,H.lon),height:aa/Math.pow(2,H.lat)}},getCellSizeInMeters:function(H){H=G.getCellSize(H);var L=f.metersPerDegree;H.width*=L;H.height*=L;return H},getIntersecting:function(H,L,aa){L=L||1;aa=aa||0;var da=[],ha=a(H);if(ha){aa&&(ha=G.expandExtent(H,
L,aa));H=ha.normalize();var ia={};w.forEach(H,function(ba){y(ba,L,da,ia)})}return da},countIntersecting:function(H,L,aa){L=L||1;aa=aa||0;var da=0,ha=a(H);if(ha){aa&&(ha=G.expandExtent(H,L,aa));H=ha.normalize();if(2===H.length){da=u(H);ha=t(H);aa=F(da,L);var ia=F(ha,L);H=aa.rows;aa=aa.cols+ia.cols;da={x:da.xmin,y:da.ymax};ha={x:ha.xmax,y:ha.ymax};da=d(da,{});ha=d(ha,{});da=G.pointToGeohash(da,L);L=G.pointToGeohash(ha,L);da===L&&aa--;L={rows:H,cols:aa}}else L=F(H[0],L);da=L.cols*L.rows}return da},getChildren:function(H){H=
H||"";var L=[],aa;for(aa in D.decimals)L.push(H+aa);return L},getNeighbors:function(H){var L=A(H,"n"),aa=A(H,"s");return[L,A(L,"e"),A(L,"w"),aa,A(aa,"e"),A(aa,"w"),A(H,"e"),A(H,"w")]},getExtentFromDistance:function(H,L){L=L||1E3;var aa;(H=c(H))&&(aa=r(H,L));return aa},expandExtent:function(H,L,aa){L=L||1;aa=aa||0;if(H=a(H)){if(aa){H=H.normalize();if(2===H.length){var da=aa;aa=u(H);H=t(H);aa=B(aa,L,da,"min");H=B(H,L,da,"max");360<=aa.getWidth()+H.getWidth()?(L=-180,H=180):(L=aa.xmin,H=H.xmax);return new l(L,
aa.ymin,H,aa.ymax)}return B(H[0],L,aa)}return H}},getNeighborsWithinDistance:function(H,L,aa){aa=aa||1E3;L=L||1;var da=[];if(H=c(H)){aa=r(H,aa).normalize();var ha={};w.forEach(aa,function(ia){y(ia,L,da,ha)})}return da}};E("extend-esri")&&b.setObject("layers.clustering.geohashUtils",G,p);return G})},"esri/layers/clustering/statUtils":function(){define(["dojo/_base/lang","../support/attributeUtils"],function(E,z){function b(n){return"number"===typeof n&&!isNaN(n)&&Infinity!==n&&-Infinity!==n}var w=
{sum:{initialize:function(){return{count:0,sum:null}},updateCellStat:function(n,l){b(l)&&(n.count++,n.sum+=l)},updateClusterStat:function(n,l){l.count&&(n.count+=l.count,n.sum+=l.sum)},summarize:function(n){return n.sum}},avg:{initialize:function(n){return{count:0,sum:null,avg:null,sum_cosine:null,sum_sine:null}},updateCellStat:function(n,l,q){b(l)&&(n.count++,q.isAngular?(q.isArithmetic||(l=-1*l+90),n.sum_cosine+=Math.cos(l*Math.PI/180),n.sum_sine+=Math.sin(l*Math.PI/180)):n.sum+=l)},updateClusterStat:function(n,
l,q){l.count&&(n.count+=l.count,q.isAngular?(n.sum_cosine+=l.sum_cosine,n.sum_sine+=l.sum_sine):n.sum+=l.sum)},summarize:function(n,l){if(0<n.count){var q=n.count;l.isAngular?(q=180*Math.atan2(n.sum_sine/q,n.sum_cosine/q)/Math.PI,l.isArithmetic||(q=-1*(q-90)),n.avg=0>q?q+360:q):(n.avg=n.sum/q,l.isDate&&(n.avg=Math.ceil(n.avg)))}return n.avg}},type:{initialize:function(){return{uvInfos:{}}},updateCellStat:function(n,l){if(null==l||""===l||"string"===typeof l&&""===E.trim(l))l=null;n=n.uvInfos;null==
n[l]?n[l]={count:1,value:l}:n[l].count++},updateClusterStat:function(n,l){n=n.uvInfos;l=l.uvInfos;for(var q in l){var f=l[q];null==n[q]?n[q]={count:f.count,value:f.value}:n[q].count+=f.count}},summarize:function(n){n=n.uvInfos;var l,q=-Infinity;for(l in n){var f=n[l];if(f.count>q){q=f.count;var c=f.value}else f.count===q&&(c=null)}return c}}},p={isSupportedStatisticType:function(n){return w.hasOwnProperty(n)},getStatisticFunctions:function(n){return w[n]},getStatisticId:function(n,l){var q=z.getAttributeIdSource(n);
n=q&&z.getAttributeId(q)||n.field;return l+"_"+n},getClusterField:function(n,l){return"cluster_"+p.getStatisticId(n,l)},getStatisticHash:function(n,l){l=[p.getStatisticId(n,l)];n.attributeType&&l.push(n.attributeType.toLowerCase());n.rotationType&&l.push(n.rotationType.toLowerCase());return l.join("_")}};return p})},"esri/dijit/Attribution":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/kernel dojo/has dojo/query dojo/dom dojo/dom-attr dojo/dom-construct dojo/dom-style dojo/dom-class dojo/dom-geometry ../kernel ../lang ../SpatialReference ../geometry/webMercatorUtils ../geometry/Extent".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x){E=E(null,{declaredClass:"esri.dijit.Attribution",itemDelimiter:" | ",listClass:"esriAttributionList",itemClass:"esriAttributionItem",lastItemClass:"esriAttributionLastItem",delimiterClass:"esriAttributionDelim",constructor:function(v,y){try{z.mixin(this,v);this._attributions={};this._pendingDfds={};this._activeLayers=[];this._sharedLayers=[];this._layerHandles={};var u=this.domNode=q.byId(y),t=this.map,r="\x3cspan class\x3d'"+this.listClass+"'\x3e\x3c/span\x3e";
u&&(f.set(u,"innerHTML",r),this.listNode=p.query(".esriAttributionList",u)[0],this.itemNodes={});this._eventConnections=[w.connect(t,"onLayerAdd",this,this._onLayerAdd),w.connect(t,"onLayerRemove",this,this._onLayerRemove),w.connect(t,"onLayerSuspend",this,this._onLayerSuspend),w.connect(t,"onLayerResume",this,this._onLayerResume),w.connect(t,"onResize",this,this._adjustFocus),w.connect(t,"onExtentChange",this,this._onExtentChange)];if(t.loaded){var B=t.layerIds.concat(t.graphicsLayerIds),C,F=B.length;
for(C=0;C<F;C++){var A=t.getLayer(B[C]);A.loaded&&this._onLayerAdd(A)}}}catch(D){}},startup:function(){},destroy:function(){b.forEach(this._eventConnections,w.disconnect);c.destroy(this.listNode);var v=this._layerHandles,y;for(y in v)v[y]&&v[y].remove();this.map=this.domNode=this._eventConnections=this.listNode=this._attributions=this._pendingDfds=this.itemNodes=this._activeLayers=this._lastItem=this._sharedLayers=this._layerHandles=null},_onLayerAdd:function(v){try{var y=this._attributions,u=v.id;
if(!m.isDefined(y[u])&&v.showAttribution){if(v.hasAttributionData){var t=v.getAttributionData();this._pendingDfds[u]=1;y[u]=t;t.addBoth(z.partial(this._onAttributionLoad,this,v))}else y[u]=v.copyright||v.copyrightText||"",y[u]?(v.suspended||this._activeLayers.push(u),this._createNode(u)):this._onLayerRemove(v);-1<v.declaredClass.toLowerCase().indexOf("vetiledlayer")&&(this._layerHandles[u]=v.on("map-style-change",z.hitch(this,function(){this._onLayerRemove(v);this._onLayerAdd(v)})))}}catch(r){}},
_onAttributionLoad:function(v,y,u){var t=v._attributions,r=v._pendingDfds,B=y.id;if(r&&r[B]){delete r[B];if(!u||u instanceof Error)u="";t[B]=u?v._createIndexByLevel(u,-1!==y.declaredClass.toLowerCase().indexOf("vetiledlayer")):y.copyright||y.copyrightText||"";t[B]?(y.suspended||v._activeLayers.push(B),v._createNode(B)):v._onLayerRemove(y)}},_onLayerRemove:function(v){try{var y=v.id,u=this.itemNodes,t=-1;this._onLayerSuspend(v);this._layerHandles[y]&&this._layerHandles[y].remove();delete this._attributions[y];
delete this._pendingDfds[y];delete this._layerHandles[y];var r=this._getGroupIndex(y);-1!==r&&(t=b.indexOf(this._sharedLayers[r],y),-1!==t&&(this._sharedLayers[r].splice(t,1),1>=this._sharedLayers[r].length&&this._sharedLayers.splice(r,1)));u[y]&&-1===t&&c.destroy(u[y]);delete u[y];this._updateLastItem()}catch(B){}},_onLayerSuspend:function(v){try{var y=v.id;if(this._attributions[y]){var u=b.indexOf(this._activeLayers,y),t=this.itemNodes[y];-1!==u&&this._activeLayers.splice(u,1);t&&this._toggleItem(t,
!1,this._getGroupIndex(y))}}catch(r){}},_adjustFocus:function(){var v=this.domNode.scrollWidth>this.domNode.clientWidth,y=d.contains(this.domNode,"esriAttributionOpen");f.set(this.domNode,"tabIndex",v||y?"0":"")},_onLayerResume:function(v){try{var y=v.id,u=this._attributions[y],t=this.itemNodes[y];if(u&&(-1===b.indexOf(this._activeLayers,y)&&this._activeLayers.push(y),t)){var r=z.isString(u)?u:this._getContributorsList(u,this.map.extent,this.map.getLevel());z.isString(u)||f.set(t,"innerHTML",r?r+
this._getDelimiter():"");r&&this._toggleItem(t,!0,this._getGroupIndex(y))}}catch(B){}},_onExtentChange:function(v,y,u,t){try{var r=this._activeLayers,B=this._attributions,C=this.itemNodes,F,A,D=r.length||0;for(A=0;A<D;A++){var G=r[A];var H=B[G];if((F=C[G])&&!z.isString(H)){var L=this._getContributorsList(H,v,t?t.level:-1);f.set(F,"innerHTML",L?L+this._getDelimiter():"");this._toggleItem(F,!!L,-1)}}}catch(aa){}this._adjustCursorStyle()},_createNode:function(v){if(this.domNode){var y=this._checkShareInfo(v),
u=y&&y.sharedWith;u=u&&this.itemNodes[u];var t=this.map,r=this._attributions[v];r=z.isString(r)?r:this._getContributorsList(r,t.extent,t.getLevel());t=!!r&&!t.getLayer(v).suspended;u?(this.itemNodes[v]=u,this._toggleItem(u,t,y.index)):(v=this.itemNodes[v]=c.create("span",{"class":this.itemClass,innerHTML:r?r+this._getDelimiter():"",style:{display:t?"inline":"none"}},this.listNode),t&&this._setLastItem(v));this._adjustCursorStyle()}},_checkShareInfo:function(v){var y=this._attributions,u,t=-1,r=y[v];
if(r&&z.isString(r)){for(u in y){var B=y[u];if(u!==v&&B&&z.isString(B)&&B.length===r.length&&B.toLowerCase()===r.toLowerCase()){var C=u;break}}y=this._sharedLayers;B=y.length;if(C){for(u=0;u<B;u++)if(r=y[u],-1!==b.indexOf(r,C)){t=u;r.push(v);break}-1===t&&(t=y.push([C,v])-1)}}return-1<t?{index:t,sharedWith:C}:null},_getGroupIndex:function(v){var y=this._sharedLayers,u,t=y.length,r=-1;for(u=0;u<t;u++)if(-1!==b.indexOf(y[u],v)){r=u;break}return r},_getDelimiter:function(){var v=this.itemDelimiter;return v?
"\x3cspan class\x3d'"+this.delimiterClass+"'\x3e"+v+"\x3c/span\x3e":""},_toggleItem:function(v,y,u){if(-1<u&&!y){u=this._sharedLayers[u];var t,r=u.length,B=this._activeLayers;for(t=0;t<r;t++)if(-1!==b.indexOf(B,u[t]))return}a.set(v,"display",y?"inline":"none");this._updateLastItem()},_updateLastItem:function(){var v=this.listNode.childNodes;var y=v.length;if(y)for(--y;0<=y;y--){var u=v[y];if("none"!==a.get(u,"display")){this._setLastItem(u);break}}this._adjustCursorStyle()},_setLastItem:function(v){var y=
this.itemClass,u=this.lastItemClass;this._lastItem&&d.replace(this._lastItem,y,u);v&&(d.replace(v,u,y),this._lastItem=v)},_createIndexByLevel:function(v,y){v=v.contributors;var u,t,r=v?v.length:0,B,C=new g(4326),F={};for(t=0;t<r;t++){var A=v[t];var D=(u=A.coverageAreas)?u.length:0;for(B=0;B<D;B++){var G=u[B];var H=G.bbox;H={extent:k.geographicToWebMercator(new x(H[1],H[0],H[3],H[2],C)),attribution:A.attribution||"",zoomMin:G.zoomMin-(y&&G.zoomMin?1:0),zoomMax:G.zoomMax-(y&&G.zoomMax?1:0),score:m.isDefined(G.score)?
G.score:100,objectId:t};for(G=H.zoomMin;G<=H.zoomMax;G++)F[G]=F[G]||[],F[G].push(H)}}return F},_getContributorsList:function(v,y,u){var t="";if(y&&m.isDefined(u)&&-1<u){v=v[u];u=y.getCenter().normalize();var r=v?v.length:0,B=[],C={};for(t=0;t<r;t++)y=v[t],!C[y.objectId]&&y.extent.contains(u)&&(C[y.objectId]=1,B.push(y));B.sort(function(F,A){return A.score-F.score||F.objectId-A.objectId});r=B.length;for(t=0;t<r;t++)B[t]=B[t].attribution;t=B.join(", ")}return t},_adjustCursorStyle:function(){var v=
e.position(this.listNode.parentNode,!0).h;d.contains(this.listNode.parentNode,"esriAttributionOpen")?(d.remove(this.listNode.parentNode,"esriAttributionOpen"),v>e.position(this.listNode.parentNode,!0).h?(a.set(this.listNode.parentNode,"cursor","pointer"),d.add(this.listNode.parentNode,"esriAttributionOpen")):a.set(this.listNode.parentNode,"cursor","default")):(d.add(this.listNode.parentNode,"esriAttributionOpen"),v<e.position(this.listNode.parentNode,!0).h?a.set(this.listNode.parentNode,"cursor",
"pointer"):a.set(this.listNode.parentNode,"cursor","default"),d.remove(this.listNode.parentNode,"esriAttributionOpen"));this._adjustFocus()}});n("extend-esri")&&z.setObject("dijit.Attribution",E,h);return E})},"esri/arcgis/utils":function(){define("require dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/Deferred dojo/_base/json dojo/_base/url dojo/on dojo/DeferredList dojo/dom-construct dojo/sniff dojox/gfx/_base ../kernel ../config ../Color ../lang ../request ../SpatialReference ../map ../urlUtils ../geometry/Point ../geometry/ScreenPoint ../geometry/Extent ../geometry/webMercatorUtils ../symbols/jsonUtils ../renderers/jsonUtils ../dijit/PopupTemplate ../dijit/Popup ../tasks/query ../tasks/GeometryService ../layers/ArcGISTiledMapServiceLayer ../layers/FeatureLayer dojo/i18n!../nls/jsapi".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m,g,k,x,v,y,u,t,r,B,C,F,A,D,G,H,L,aa,da){function ha(O){return!(!O||"BingMapsAerial"!==O.layerType&&"BingMapsAerial"!==O.type)}function ia(O){return!(!O||"BingMapsRoad"!==O.layerType&&"BingMapsRoad"!==O.type)}function ba(O){return ha(O)||ia(O)||!(!O||"BingMapsHybrid"!==O.layerType&&"BingMapsHybrid"!==O.type)}function ja(O){return!(!O||"OpenStreetMap"!==O.layerType&&"OpenStreetMap"!==O.type)}function pa(O){return!!(O&&O.url&&(-1<"ArcGISFeatureLayer ArcGISImageServiceLayer ArcGISImageServiceVectorLayer ArcGISMapServiceLayer ArcGISStreamLayer ArcGISTiledImageServiceLayer ArcGISTiledMapServiceLayer".split(" ").indexOf(O.layerType)||
!O.layerType&&!O.type))}function Ca(O){return k({url:xb.arcgisUrl+"/"+O.itemId+"/data",content:{f:"json"},callbackParamName:"callback"},{disableIdentityLookup:!0,_preLookup:!0})}function la(O,Ia){var Ha={f:"json"};Ia&&(Ha.token=Ia);return k({url:O,content:Ha,callbackParamName:"callback"},{disableIdentityLookup:!0})}function ua(O){!O.layerDefinition||O.layerDefinition.drawingInfo&&O.layerDefinition.drawingInfo.labelingInfo||(O.showLabels=!1);O.itemProperties.layerDefinition&&(O.layerDefinition?(O.layerDefinition.drawingInfo||
(O.layerDefinition.drawingInfo=O.itemProperties.layerDefinition.drawingInfo),g.isDefined(O.layerDefinition.definitionExpression)||(O.layerDefinition.definitionExpression=O.itemProperties.layerDefinition.definitionExpression),g.isDefined(O.layerDefinition.minScale)||(O.layerDefinition.minScale=O.itemProperties.layerDefinition.minScale),g.isDefined(O.layerDefinition.maxScale)||(O.layerDefinition.maxScale=O.itemProperties.layerDefinition.maxScale)):O.layerDefinition=O.itemProperties.layerDefinition);
!O.itemProperties.popupInfo||O.popupInfo||O.disablePopup||(O.popupInfo=O.itemProperties.popupInfo);g.isDefined(O.itemProperties.showLabels)&&!g.isDefined(O.showLabels)&&(O.showLabels=O.itemProperties.showLabels);g.isDefined(O.itemProperties.showLegend)&&!g.isDefined(O.showLegend)&&(O.showLegend=O.itemProperties.showLegend);g.isDefined(O.itemProperties.refreshInterval)&&!g.isDefined(O.refreshInterval)&&(O.refreshInterval=O.itemProperties.refreshInterval)}function Aa(O){ua(O);O.itemProperties.layerDefinition&&
O.layerDefinition&&(!g.isDefined(O.layerDefinition.maximumTrackPoints)&&g.isDefined(O.itemProperties.layerDefinition.maximumTrackPoints)&&(O.layerDefinition.maximumTrackPoints=O.itemProperties.layerDefinition.maximumTrackPoints),!O.layerDefinition.definitionGeometry&&O.itemProperties.layerDefinition.definitionGeometry&&(O.layerDefinition.definitionGeometry=O.itemProperties.layerDefinition.definitionGeometry));O.itemProperties.purgeOptions&&!O.purgeOptions&&(O.purgeOptions=O.itemProperties.purgeOptions)}
function M(O,Ia){var Ha=new p;Ia=O.itemData;var xa=[],Da=[];b.forEach(Ia.operationalLayers,function(Ja){if(Ja.itemId&&pa(Ja)){var Ga=Ja.url.toLowerCase();-1<Ga.indexOf("/featureserver")||-1<Ga.indexOf("/mapserver/")?(Da.push(Ja),xa.push(Ca(Ja))):-1<Ga.indexOf("/mapserver")&&-1===Ga.indexOf("/mapserver/")&&(!Ja.layers||!g.isDefined(Ja.minScale)&&!g.isDefined(Ja.maxScale))?(Da.push(Ja),xa.push(Ca(Ja))):-1<Ga.indexOf("/imageserver")?(Da.push(Ja),xa.push(Ca(Ja))):-1<Ga.indexOf("/streamserver")&&(Da.push(Ja),
xa.push(Ca(Ja)))}});Ia.baseMap&&Ia.baseMap.baseMapLayers&&b.forEach(Ia.baseMap.baseMapLayers,function(Ja){Ja.itemId&&"VectorTileLayer"!==Ja.layerType&&(Da.push(Ja),xa.push(Ca(Ja)))});if(0<xa.length){var La={};(new f(xa)).addCallback(function(Ja){b.forEach(Da,function(Ga,Na){if((Na=Ja[Na][1])&&!(Na instanceof Error)&&(La[Ga.itemId]=Na,pa(Ga))){var Sa=Ga.url.toLowerCase();(-1<Sa.indexOf("/featureserver")||-1<Sa.indexOf("/mapserver/"))&&Na.layers?b.forEach(Na.layers,function(Ya){var cb="/featureserver/"+
Ya.id;(cb=Sa.match(cb+"$")==cb)||(cb="/mapserver/"+Ya.id,cb=Sa.match(cb+"$")==cb);cb&&(Ga.itemProperties=Ya,ua(Ga))}):-1<Sa.indexOf("/streamserver")?(Ga.itemProperties=Na,Aa(Ga)):-1<Sa.indexOf("/mapserver")?(Na.layers&&!Ga.layers&&(Ga.layers=Na.layers),g.isDefined(Na.minScale)&&!g.isDefined(Ga.minScale)&&(Ga.minScale=Na.minScale),g.isDefined(Na.maxScale)&&!g.isDefined(Ga.maxScale)&&(Ga.maxScale=Na.maxScale),g.isDefined(Na.refreshInterval)&&!g.isDefined(Ga.refreshInterval)&&(Ga.refreshInterval=Na.refreshInterval),
Na.visibleLayers&&!Ga.visibleLayers&&(Ga.visibleLayers=Na.visibleLayers)):-1<Sa.indexOf("/imageserver")&&(g.isDefined(Na.minScale)&&!g.isDefined(Ga.minScale)&&(Ga.minScale=Na.minScale),g.isDefined(Na.maxScale)&&!g.isDefined(Ga.maxScale)&&(Ga.maxScale=Na.maxScale),g.isDefined(Na.refreshInterval)&&!g.isDefined(Ga.refreshInterval)&&(Ga.refreshInterval=Na.refreshInterval),!Na.popupInfo||Ga.popupInfo||Ga.disablePopup||(Ga.popupInfo=Na.popupInfo),Na.renderingRule&&!Ga.renderingRule&&(Ga.renderingRule=Na.renderingRule,
Na.renderingRule.functionName&&(Ga.renderingRule.rasterFunction=Na.renderingRule.functionName)),Na.bandIds&&!Ga.bandIds&&(Ga.bandIds=Na.bandIds),Na.mosaicRule&&!Ga.mosaicRule&&(Ga.mosaicRule=Na.mosaicRule),Na.format&&!Ga.format&&(Ga.format=Na.format),g.isDefined(Na.compressionQuality)&&!g.isDefined(Ga.compressionQuality)&&(Ga.compressionQuality=Na.compressionQuality),!Na.layerDefinition||!Na.layerDefinition.definitionExpression||g.isDefined(Ga.layerDefinition)&&g.isDefined(Ga.layerDefinition.definitionExpression)||
(Ga.layerDefinition=Ga.layerDefinition||{},Ga.layerDefinition.definitionExpression=Na.layerDefinition.definitionExpression),Na=z.getObject("layerDefinition.drawingInfo.renderer",!1,Na),null==z.getObject("layerDefinition.drawingInfo.renderer",!1,Ga)&&null!=Na&&(Ga.layerDefinition=Ga.layerDefinition||{},Ga.layerDefinition.drawingInfo=Ga.layerDefinition.drawingInfo||{},Ga.layerDefinition.drawingInfo.renderer=Na))}});O.relatedItemsData=La;Ha.callback(O)})}else Ha.callback(O);return Ha}function Y(O,Ia){var Ha=
new p,xa=O.itemData,Da=xa.baseMap.baseMapLayers[0];if(ba(Da))if(Da.portalUrl&&e.id)delete Ia.bingMapsKey,e.id.checkSignInStatus(y.urlToObject(xb.arcgisUrl).path).then(z.hitch(null,function(Ja,Ga,Na,Sa,Ya){la(Da.portalUrl,Ya.token).then(z.hitch(null,N,Ja,Ga,Na,Sa),z.hitch(null,Z,Ja,Ga,Na,Sa))},O,Ia,xa,Ha),z.hitch(null,function(Ja,Ga,Na,Sa,Ya){la(Da.portalUrl).then(z.hitch(null,N,Ja,Ga,Na,Sa),z.hitch(null,Z,Ja,Ga,Na,Sa))},O,Ia,xa,Ha));else if(Ia.bingMapsKey){var La=new Jb({bingMapsKey:Ia.bingMapsKey,
mapStyle:Jb.MAP_STYLE_AERIAL});w.connect(La,"onLoad",z.hitch(this,function(){Ha.callback([O,Ia])}));w.connect(La,"onError",function(Ja){delete Ia.bingMapsKey;O.itemData=na(xa);Da=O.itemData.baseMap.baseMapLayers[0];Da.errors=[];Da.errors.push({message:"The owner of the application has not provided a valid Bing Key for the Bing Map it includes. Switching to Esri layers."});Ha.callback([O,Ia])})}else O.itemData=na(xa),Da=O.itemData.baseMap.baseMapLayers[0],Da.errors=[],Da.errors.push({message:"The owner of the application has not provided a Bing Key for the Bing Map it includes. Switching to Esri layers."}),
Ha.callback([O,Ia]);else Ha.callback([O,Ia]);return Ha}function ka(O){var Ia=new p;O=O.itemData;var Ha=O.baseMap&&O.baseMap.baseMapLayers;if(Gb&&!Gb.supported())for(O=0;O<Ha.length;O++){var xa=Ha[O];if(!xa.isReference){if("VectorTileLayer"===xa.layerType){var Da=xa.itemId;var La=O}break}}Da?qb(Da,!1).addBoth(function(Ja){var Ga=/^https?:\/\/basemaps(dev)?\.arcgis\.com\/arcgis\/rest\/services\/World_Basemap\/VectorTileServer/i;Ja&&Ja.item&&Ga.test(Ja.item.url)&&(Ha[La]={id:"FB_"+xa.id,layerType:"ArcGISTiledMapServiceLayer",
opacity:"opacity"in xa?xa.opacity:1,visibility:"visibility"in xa?xa.visibility:!0,url:"https://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer"});Ia.resolve()}):Ia.resolve();return Ia}function N(O,Ia,Ha,xa,Da){Da.bingKey?(Ia.bingMapsKey=Da.bingKey,Da=new Jb({bingMapsKey:Ia.bingMapsKey,mapStyle:Jb.MAP_STYLE_AERIAL}),w.connect(Da,"onLoad",z.hitch(this,function(){xa.callback([O,Ia])})),w.connect(Da,"onError",function(La){delete Ia.bingMapsKey;O.itemData=na(Ha);La=O.itemData.baseMap.baseMapLayers[0];
La.errors=[];La.errors.push({message:"The owner of the map has not provided a valid Bing Key for the Bing Map it includes. Switching to Esri layers."});xa.callback([O,Ia])})):Z(O,Ia,Ha,xa)}function Z(O,Ia,Ha,xa){delete Ia.bingMapsKey;O.itemData=na(Ha);Ha=O.itemData.baseMap.baseMapLayers[0];Ha.errors=[];Ha.errors.push({message:"The owner of the map has not provided a Bing Key for the Bing Map it includes. Switching to Esri layers."});xa.callback([O,Ia])}function na(O){ha(O.baseMap.baseMapLayers[0])?
O.baseMap={title:"Imagery",baseMapLayers:[{id:"World_Imagery_2017",visibility:!0,opacity:1,url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"}]}:ia(O.baseMap.baseMapLayers[0])?O.baseMap={title:"Streets",baseMapLayers:[{id:"World_Street_Map_8421",opacity:1,visibility:!0,url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"}]}:O.baseMap={title:"Imagery with Labels",baseMapLayers:[{id:"World_Imagery_6611",opacity:1,visibility:!0,url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"},
{id:"World_Boundaries_and_Places_1145",isReference:!0,opacity:1,visibility:!0,url:"https://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer"}]};return O}function za(O,Ia,Ha,xa){var Da=O.dynamicLayerInfos||O.layerInfos,La=Ia.layers;if(La&&Da)if(xa.usePopupManager){var Ja;b.forEach(Da,function(ab){var $a=ab.id;if(!ab.subLayerIds)for(ab=0;ab<La.length;ab++){var jb=La[ab];if(jb.id===$a&&jb.popupInfo&&!jb.disablePopup){Ja||(Ja={});Ja[$a]={infoTemplate:new Ha(jb.popupInfo),
layerUrl:jb.layerUrl};break}}});Ja&&O.setInfoTemplates(Ja)}else{var Ga=[],Na=[],Sa=[],Ya=[],cb=[],Ua=[];b.forEach(Da,function(ab){var $a=ab.id;if(!ab.subLayerIds&&-1!==b.indexOf(O.visibleLayers,$a))for(ab=0;ab<La.length;ab++){var jb=La[ab];if(jb.id===$a){Na.push($a);Ga.push(jb.popupInfo);Sa.push(jb.layerUrl||"");jb.layerDefinition&&jb.layerDefinition.definitionExpression?Ya.push(jb.layerDefinition.definitionExpression):Ya.push("");cb.push(g.isDefined(jb.minScale)?jb.minScale:null);Ua.push(g.isDefined(jb.maxScale)?
jb.maxScale:null);break}}});Ga.length&&(O.__popups=Ga,O.__popupIds=Na,O.__popupUrls=Sa,O.__popupWhereClauses=Ya,O.__popupMinScales=cb,O.__popupMaxScales=Ua,O.__resourceInfo=Ia.resourceInfo)}}function va(O){if(!O)return!1;var Ia=(new l(xb.arcgisUrl)).authority;return-1!==O.indexOf(".arcgis.com/")||-1!==O.indexOf(Ia)}function S(O){return O?-1!==O.indexOf("/services.arcgisonline.com/")||-1!==O.indexOf("/server.arcgisonline.com/"):!1}function U(O){"https:"===location.protocol&&(va(O)||S(O))&&(O=O.replace("http:",
"https:"));return O}function ma(O,Ia,Ha){var xa=[];O.displayLevels||(xa=b.map(O.resourceInfo.tileInfo.lods,function(Ja){return Ja.level}));if(O.exclusionAreas){var Da=z.clone(O.exclusionAreas);Da=b.map(Da,function(Ja){Ja.geometry=new r(Ja.geometry);return Ja})}var La=O.resourceInfo&&"Raster"===O.resourceInfo.cacheType;La?(xa=O.layerDefinition&&O.layerDefinition.drawingInfo&&O.layerDefinition.drawingInfo.renderer,xa=new ec(U(O.url),{resourceInfo:O.resourceInfo,opacity:O.opacity,visible:O.visibility,
id:O.id,minScale:O.minScale,maxScale:O.maxScale,refreshInterval:O.refreshInterval,multidimensionalDefinition:O.multidimensionalDefinition,bandIds:O.bandIds,renderer:xa||null})):xa=new L(U(O.url),{resourceInfo:O.resourceInfo,opacity:O.opacity,visible:O.visibility,displayLevels:O.displayLevels||xa,id:O.id,minScale:O.minScale,maxScale:O.maxScale,refreshInterval:O.refreshInterval,exclusionAreas:Da});Ha.ignorePopups||(La&&O.popupInfo&&!O.disablePopup?xa.setInfoTemplate(new Ia(O.popupInfo)):za(xa,O,Ia,
Ha));return xa}function ra(O,Ia){if(!O||!Ia||0===Ia.length)return[];Ia=","+Ia+",";var Ha=[],xa,Da=",";for(xa=0;xa<O.length;xa++)if(null!==O[xa].subLayerIds){if(-1===Ia.indexOf(","+O[xa].id+",")||-1<Da.indexOf(","+O[xa].id+","))Da+=O[xa].subLayerIds.toString()+","}else-1<Ia.indexOf(","+O[xa].id+",")&&-1===Da.indexOf(","+O[xa].id+",")&&Ha.push(O[xa].id);return Ha}function sa(O,Ia,Ha){var xa=new Lb;xa.format="png24";O.resourceInfo&&O.resourceInfo.supportedImageFormatTypes&&-1<O.resourceInfo.supportedImageFormatTypes.indexOf("PNG32")&&
(xa.format="png32");xa=new Kb(U(O.url),{resourceInfo:O.resourceInfo,opacity:O.opacity,visible:O.visibility,id:O.id,imageParameters:xa,minScale:O.minScale,maxScale:O.maxScale,refreshInterval:O.refreshInterval});var Da=O.visibleLayers;if(!O.visibleLayers){var La="";b.forEach(xa.layerInfos,function(Ua){Ua.defaultVisibility&&(La+=(0<La.length?",":"")+Ua.id)});Da=La}if(O.layers&&0<O.layers.length){var Ja=[],Ga=[],Na,Sa=[],Ya,cb;b.forEach(O.layers,function(Ua){var ab=Ua.layerDefinition;ab&&ab.definitionExpression&&
(Ja[Ua.id]=ab.definitionExpression);if(ab&&ab.source){Na=null;cb=ab.source;if("mapLayer"===cb.type){var $a=b.filter(O.resourceInfo.layers,function(jb){return jb.id===cb.mapLayerId});$a.length&&(Na=z.mixin($a[0],Ua))}else Na=z.mixin({},Ua);Na&&(Na.source=cb,delete Na.popupInfo,Na=new tb(Na),O.visibleLayers&&($a="string"==typeof O.visibleLayers?O.visibleLayers.split(","):O.visibleLayers,-1<b.indexOf($a,Ua.id)?Na.defaultVisibility=!0:Na.defaultVisibility=!1),Ga.push(Na))}ab&&null!=ab.transparency&&($a=
ab.drawingInfo||{},null==$a.transparency&&($a.transparency=ab.transparency,ab.drawingInfo=$a));ab&&ab.source&&ab.drawingInfo&&(Ya=new Rb(ab.drawingInfo),Sa[Ua.id]=Ya)},this);0<Ja.length&&xa.setLayerDefinitions(Ja);0<Ga.length?(xa.setDynamicLayerInfos(Ga,!0),0<Sa.length&&xa.setLayerDrawingOptions(Sa,!0)):(Da=ra(xa.layerInfos,Da),xa.setVisibleLayers(Da))}else Da=ra(xa.layerInfos,Da),xa.setVisibleLayers(Da);Ha.ignorePopups||za(xa,O,Ia,Ha);return xa}function V(O,Ia,Ha){var xa=new Pb;xa.bandIds=O.bandIds;
null!=O.format&&(xa.format=O.format,null!=O.compressionQuality&&(xa.compressionQuality=O.compressionQuality));if(O.renderingRule&&O.renderingRule.rasterFunction){var Da=new dc(O.renderingRule);xa.renderingRule=Da}O.mosaicRule&&(Da=new ac(O.mosaicRule),xa.mosaicRule=Da);g.isDefined(O.noData)&&(xa.noData=O.noData);g.isDefined(O.noDataInterpretation)&&(xa.noDataInterpretation=O.noDataInterpretation);g.isDefined(O.interpolation)&&(xa.interpolation=O.interpolation);Da=O.layerType?"ArcGISImageServiceVectorLayer"===
O.layerType:!1;g.isDefined(O.layerType)||(Da=O.resourceInfo.hasMultidimensions&&("esriImageServiceDataTypeVector-UV"===O.resourceInfo.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===O.resourceInfo.serviceDataType));xa={resourceInfo:O.resourceInfo,opacity:O.opacity,visible:O.visibility,id:O.id,imageServiceParameters:xa,minScale:O.minScale,maxScale:O.maxScale,refreshInterval:O.refreshInterval};xa=Da?new ub(U(O.url),xa):new zb(U(O.url),xa);O.layerDefinition&&(O.layerDefinition.drawingInfo&&
O.layerDefinition.drawingInfo.renderer&&(Da=F.fromJson(O.layerDefinition.drawingInfo.renderer),xa.setRenderer(Da)),O.layerDefinition.definitionExpression&&xa.setDefinitionExpression(O.layerDefinition.definitionExpression,!0));Ha.ignorePopups||!O.popupInfo||O.disablePopup||xa.setInfoTemplate(new Ia(O.popupInfo));return xa}function W(O,Ia,Ha){var xa=[102113,102100,3857],Da=Ha||new x(Ia[0].layerObject.fullExtent.spatialReference),La=new x(O.resourceInfo.fullExtent.spatialReference);return Da.wkt==La.wkt&&
(Da.wkid==La.wkid||g.isDefined(Da.latestWkid)&&Da.latestWkid==La.wkid||g.isDefined(La.latestWkid)&&Da.wkid==La.latestWkid||g.isDefined(Da.latestWkid)&&Da.latestWkid==La.latestWkid)||Da.wkid&&La.wkid&&b.some(xa,function(Ja){return Ja===La.wkid})&&b.some(xa,function(Ja){return Ja===Da.wkid})?!0:!1}function oa(O,Ia,Ha){if(!Ia[0].layerObject.tileInfo)return!1;O=O.resourceInfo.tileInfo;Ia=Ia[0].layerObject.tileInfo;Ha=Ha.width>Ha.height?Ha.width:Ha.height;for(var xa=!1,Da=!1,La=0;La<O.lods.length;La++){for(var Ja=
O.lods[La].scale/O.dpi,Ga=0;Ga<Ia.lods.length;Ga++){var Na=Ia.lods[Ga].scale/Ia.dpi;if(Math.abs(Na-Ja)/Na<1/Ha)if(xa){Da=!0;break}else xa=!0}if(Da)break}return Da||xa&&(1===O.lods.length||1===Ia.lods.length)?!0:!1}function ta(O,Ia,Ha,xa,Da,La){var Ja=Ha._clazz;if(ja(O))var Ga=new bc({id:O.id,opacity:O.opacity,visible:null!==O.visibility&&void 0!==O.visibility?O.visibility:!0});else if(O&&("WFS"===O.layerType||"WFS"===O.type)){var Na={customParameters:O.wfsInfo.customParameters,geometryType:O.layerDefinition.geometryType,
id:O.id,labelingInfo:O.layerDefinition.drawingInfo.labelingInfo,maxFeatures:O.wfsInfo.maxFeatures,mode:O.mode,name:O.wfsInfo.name,showLabels:!0,swapXY:O.wfsInfo.swapXY,title:O.title,url:O.url,version:O.wfsInfo.version,visible:O.visibility,wkid:O.layerDefinition.spatialReference.wkid};Ga=new Tb;Ga.fromJson(Na,function(){g.isDefined(O.opacity)&&Ga.setOpacity(O.opacity);g.isDefined(O.visibility)&&Ga.setVisibility(O.visibility);(O.minScale||O.maxScale)&&Ga.setScaleRange(O.minScale,O.maxScale);Ga.renderer=
F.fromJson(O.layerDefinition.drawingInfo.renderer,{geometryType:Na.geometryType});!Ha.ignorePopups&&O.popupInfo&&Ga.setInfoTemplate(new Ja(O.popupInfo));Ga.emit("fromJsonComplete")})}else if(O&&("WMS"===O.layerType||"WMS"===O.type)){var Sa=[],Ya=[];b.forEach(O.layers,function($a){Ya.push(new Bb({name:$a.name,title:$a.title,legendURL:$a.legendURL||$a.legendUrl,queryable:$a.queryable,showPopup:$a.showPopup}));Sa.push($a.name)},this);O.visibleLayers&&(Sa=O.visibleLayers);xa=new r(O.extent[0][0],O.extent[0][1],
O.extent[1][0],O.extent[1][1],new x({wkid:4326}));xa={customLayerParameters:O.customLayerParameters,customParameters:O.customParameters,extent:xa,layerInfos:Ya,version:O.version,maxWidth:O.maxWidth,maxHeight:O.maxHeight,featureInfoFormat:O.featureInfoFormat,getFeatureInfoURL:O.featureInfoUrl,getMapURL:O.mapUrl,spatialReferences:O.spatialReferences,title:O.title,copyright:O.copyright,minScale:O.minScale||0,maxScale:O.maxScale||0,format:O.format};Ga=new cc(O.url,{id:O.id,visibleLayers:Sa,format:"png",
transparent:O.firstLayer?!1:!0,opacity:O.opacity,visible:null!==O.visibility?O.visibility:!0,resourceInfo:xa,refreshInterval:O.refreshInterval});Ga.spatialReference.wkid=xa.spatialReferences[0]}else if(O&&("KML"===O.layerType||"KML"===O.type)){var cb=O.url;if(e.id){var Ua=e.id.findCredential(y.urlToObject(xb.arcgisUrl).path);Ua&&(Ia=xb.arcgisUrl.substring(xb.arcgisUrl.indexOf("//")+2,xb.arcgisUrl.indexOf("/",xb.arcgisUrl.indexOf("//")+3)),Da=Ia.split("."),Da=Da[Da.length-2]+"."+Da[Da.length-1],La=
cb.indexOf(Da),-1<La&&(cb="https://"+Ia+cb.substring(La+Da.length),cb+="?token\x3d"+Ua.token))}Ga=new Vb(cb,{id:O.id,visible:null!==O.visibility?O.visibility:!0,outSR:xa,refreshInterval:O.refreshInterval});w.connect(Ga,"onLoad",function(){(O.opacity||0===O.opacity)&&Ga.setOpacity(O.opacity);g.isDefined(O.minScale)&&g.isDefined(O.maxScale)&&Ga.setScaleRange(O.minScale,O.maxScale);O.visibleFolders&&b.forEach(Ga.folders,function($a){-1<b.indexOf(O.visibleFolders,$a.id)?Ga.setFolderVisibility($a,!0):
Ga.setFolderVisibility($a,!1)},this)})}else if(!O||"WebTiledLayer"!==O.layerType&&"WebTiledLayer"!==O.type)if(!O||"GeoRSS"!==O.layerType&&"GeoRSS"!==O.type)if(O&&("CSV"===O.layerType||"CSV"===O.type)&&O.url)xa={layerDefinition:O.layerDefinition,columnDelimiter:O.columnDelimiter,id:O.id?O.id:null,visible:null!==O.visibility?O.visibility:!0,opacity:O.opacity,refreshInterval:O.refreshInterval},O.locationInfo&&(xa.latitudeFieldName=O.locationInfo.latitudeFieldName,xa.longitudeFieldName=O.locationInfo.longitudeFieldName),
!Ha.ignorePopups&&O.popupInfo&&(xa.infoTemplate=new Ja(O.popupInfo)),Ga=new Sb(O.url,xa);else if("VectorTileLayer"!==O.layerType||!O.styleUrl||O.resourceInfo&&O.resourceInfo instanceof Error)if(O.layerDefinition&&!O.url)xa=n.fromJson(n.toJson(O)),delete xa.id,delete xa.opacity,delete xa.visibility,Ga=new aa(xa,{id:O.id,opacity:O.opacity,visible:O.visibility,outFields:["*"],autoGeneralize:!0}),Ha.ignorePopups||!xa.popupInfo||xa.disablePopup||Ga.setInfoTemplate(new Ja(xa.popupInfo)),Za(Ga);else if(ba(O))Ha.bingMapsKey?
(xa=Jb.MAP_STYLE_AERIAL_WITH_LABELS,ha(O)?xa=Jb.MAP_STYLE_AERIAL:ia(O)&&(xa=Jb.MAP_STYLE_ROAD),Ga=new Jb({bingMapsKey:Ha.bingMapsKey,mapStyle:xa,opacity:O.opacity,id:O.id}),w.connect(Ga,"onError",z.hitch(this,function($a){$a.errors=$a.errors||[];$a.errors.push({message:"This application does not have a valid Bing Key for the Bing layer that is included in this map. [type:"+($a?$a.layerType||$a.type:"")+"]"})},O))):(O.errors=O.errors||[],O.errors.push({message:"This application does not provide a Bing Key for the Bing layer that is included in this map. [type:"+
(O?O.layerType||O.type:"")+"]"}));else if(O.resourceInfo&&(O.resourceInfo.mapName||""===O.resourceInfo.mapName))Ga=!0===O.resourceInfo.singleFusedMapCache&&(O.baseMapLayer||W(O,Ia,xa)&&oa(O,Da,La))?ma(O,Ja,Ha):sa(O,Ja,Ha);else if(O.resourceInfo&&O.resourceInfo.pixelSizeX)Ga=!0===O.resourceInfo.singleFusedMapCache&&"ArcGISImageServiceLayer"!==O.layerType&&(O.baseMapLayer||"Raster"===O.resourceInfo.cacheType||W(O,Ia,xa)&&oa(O,Da,La))?ma(O,Ja,Ha):V(O,Ja,Ha);else if(O.resourceInfo&&"Feature Layer"===
O.resourceInfo.type){O.capabilities&&(O.resourceInfo.capabilities=O.capabilities);var ab;!1===Ha.editable?ab=!1:Ha.privileges&&-1===b.indexOf(Ha.privileges,"features:user:edit")&&e.id&&e.id.findCredential(O.url)&&(ab=!1);Ga=new aa(U(O.url),{resourceInfo:O.resourceInfo,opacity:O.opacity,visible:O.visibility,id:O.id,mode:O.mode===aa.MODE_SELECTION?aa.MODE_SELECTION:aa.MODE_AUTO,editable:ab,outFields:["*"],autoGeneralize:!0,refreshInterval:O.refreshInterval});Ha.ignorePopups||!O.popupInfo||O.disablePopup||
Ga.setInfoTemplate(new Ja(O.popupInfo));O.layerDefinition&&(O.layerDefinition.drawingInfo&&O.layerDefinition.drawingInfo.renderer&&(xa=F.fromJson(O.layerDefinition.drawingInfo.renderer,{geometryType:Ga.geometryType}),xa.isMaxInclusive=!0,Ga.setRenderer(xa)),O.layerDefinition.drawingInfo&&O.layerDefinition.drawingInfo.labelingInfo&&(xa=b.map(O.layerDefinition.drawingInfo.labelingInfo,function($a){return new Db($a)}),Ga.setLabelingInfo(xa)),O.layerDefinition.definitionExpression&&Ga.setDefinitionExpression(O.layerDefinition.definitionExpression),
g.isDefined(O.layerDefinition.minScale)&&Ga.setMinScale(O.layerDefinition.minScale),g.isDefined(O.layerDefinition.maxScale)&&Ga.setMaxScale(O.layerDefinition.maxScale));Za(Ga)}else O.resourceInfo&&O.resourceInfo.streamUrls&&(xa={resourceInfo:O.resourceInfo,opacity:O.opacity,visible:O.visibility,id:O.id},O.layerDefinition&&(cb=O.layerDefinition.drawingInfo,O.layerDefinition.definitionGeometry&&(Ua=Ua||{},Ua.geometry=O.layerDefinition.definitionGeometry),g.isDefined(O.layerDefinition.definitionExpression)&&
(Ua=Ua||{},Ua.where=O.layerDefinition.definitionExpression),g.isDefined(O.layerDefinition.maximumTrackPoints)&&(xa.maximumTrackPoints=O.layerDefinition.maximumTrackPoints)),Ua&&(xa.filter=Ua),O.purgeOptions&&(xa.purgeOptions=O.purgeOptions),Ga=new fc(U(O.url),xa),cb&&cb.renderer&&(xa=cb.renderer,Ga.setRenderer(F.fromJson(xa,{geometryType:O.resourceInfo.geometryType}))),cb&&cb.labelingInfo&&(xa=b.map(cb.labelingInfo,function($a){return new Db($a)}),Ga.setLabelingInfo(xa)),Ha.ignorePopups||!O.popupInfo||
O.disablePopup||Ga.setInfoTemplate(new Ja(O.popupInfo)),O.layerDefinition&&(g.isDefined(O.layerDefinition.minScale)&&Ga.setMinScale(O.layerDefinition.minScale),g.isDefined(O.layerDefinition.maxScale)&&Ga.setMaxScale(O.layerDefinition.maxScale)),q.once(Ga,"error",function($a){O.errors.push({message:"Error loading stream layer. Check websocket url"})}));else Ga=new Gb(O.styleUrl,{id:O.id,minScale:O.minScale,maxScale:O.maxScale,opacity:O.opacity,visible:O.visibility,resourceInfo:O.resourceInfo});else Ga=
new Hb(O.url,{id:O.id,opacity:O.opacity,outSpatialReference:xa,refreshInterval:O.refreshInterval}),w.connect(Ga,"onLoad",function(){!1===O.visibility&&Ga.hide();g.isDefined(O.minScale)&&g.isDefined(O.maxScale)&&Ga.setScaleRange(O.minScale,O.maxScale);var $a=Ga.getFeatureLayers();b.forEach($a,function(jb){O.pointSymbol&&"esriGeometryPoint"===jb.geometryType?(jb.renderer.symbol=C.fromJson(O.pointSymbol),1===$a.length&&(Ga.pointSymbol=C.fromJson(O.pointSymbol))):O.lineSymbol&&"esriGeometryPolyline"===
jb.geometryType?(jb.renderer.symbol=C.fromJson(O.lineSymbol),1===$a.length&&(Ga.polylineSymbol=C.fromJson(O.lineSymbol))):O.polygonSymbol&&"esriGeometryPolygon"===jb.geometryType&&(jb.renderer.symbol=C.fromJson(O.polygonSymbol),1===$a.length&&(Ga.polygonSymbol=C.fromJson(O.polygonSymbol)))})});else if(Ga=new nc(O.templateUrl,{id:O.id,visible:null!==O.visibility?O.visibility:!0,opacity:O.opacity,copyright:O.copyright,fullExtent:O.fullExtent&&new r(O.fullExtent),initialExtent:O.fullExtent&&new r(O.fullExtent),
subDomains:O.subDomains,tileInfo:O.tileInfo?new Ub(O.tileInfo):null,refreshInterval:O.refreshInterval,wmtsInfo:O.wmtsInfo}),g.isDefined(O.minScale)||g.isDefined(O.maxScale))Ga.loaded?Ga.setScaleRange(O.minScale,O.maxScale):w.connect(Ga,"onLoad",function(){Ga.setScaleRange(O.minScale,O.maxScale)});Ga&&(Ga.arcgisProps={title:O.title},O.baseMapLayer&&(O.isReference?(Ga.attr("data-reference",!0),Ga._basemapGalleryLayerType="reference"):Ga._basemapGalleryLayerType="basemap"),Ga instanceof aa&&O.layerDefinition&&
O.layerDefinition.featureReduction&&"cluster"===O.layerDefinition.featureReduction.type&&(xa=O.layerDefinition.featureReduction,xa.clusterSize&&(xa.clusterSize=d.pt2px(xa.clusterSize)),xa.clusterRadius&&(xa.clusterRadius=d.pt2px(xa.clusterRadius)),xa.popupInfo&&(xa.infoTemplate=new A(xa.popupInfo),delete xa.popupInfo),Ga.setFeatureReduction(xa)));return Ga}function Ba(O,Ia,Ha,xa,Da){b.forEach(O,function(Ga){Ga.layerObject=ta(Ga,O,Ia,Ha,xa,Da)});var La=b.filter(O,function(Ga){return!Ga.isReference}),
Ja=b.filter(O,function(Ga){return!!Ga.isReference});return O=La.concat(Ja)}function Ra(O){var Ia=null;O=O[0];O.url&&pa(O)&&O.resourceInfo.spatialReference&&(Ia=new x,O.resourceInfo.spatialReference.wkid&&(Ia.wkid=O.resourceInfo.spatialReference.wkid),O.resourceInfo.spatialReference.wkt&&(Ia.wkt=O.resourceInfo.spatialReference.wkt));ba(O)||ja(O)?Ia=new x({wkid:102100}):O&&("WMS"===O.layerType||"WMS"===O.type)&&(Ia=new x({wkid:O.spatialReferences[0]}));return Ia}function Va(O,Ia,Ha,xa,Da,La,Ja,Ga){b.forEach(Ia,
function(Na){if(pa(Na)||Na&&"VectorTileLayer"===Na.layerType)Na.resourceInfo=O[Na.deferredsPos][1],delete Na.deferredsPos});La=La||Ra(Ia);Ia=Ba(Ia,Ha,La,Ja,Ga);Da.callback(Ia);return Da}function Za(O){!window.CanvasRenderingContext2D&&O.renderer&&"esri.renderer.HeatmapRenderer"===O.renderer.declaredClass&&O.setRenderer(F.fromJson({type:"simple",symbol:{color:[77,77,77,255],size:6,angle:0,xoffset:0,yoffset:0,type:"esriSMS",style:"esriSMSCircle",outline:{color:[255,255,255,255],width:.75,type:"esriSLS",
style:"esriSLSSolid"}}}))}function Qa(O,Ia,Ha){O.message=O.message?O.message+(" [url:"+Ia+"]"):"[url:"+Ia+"]";Ha.push(O);h.defaults.io.errorHandler(O)}function J(O,Ia){var Ha=U(O);return k({url:Ha,content:{f:"json"},callbackParamName:"callback",error:function(xa,Da){Qa(xa,Ha,Ia)}})}function Q(O){var Ia=xb.arcgisUrl+"/"+O.itemId+"/data";return k({url:Ia,content:{f:"json"},callbackParamName:"callback",error:function(Ha,xa){O.errors=O.errors||[];Qa(Ha,Ia,O.errors)}})}function ea(O,Ia){return mc.loadMetadata(O).otherwise(function(Ha){Qa(Ha,
O,Ia);return Ha})}function K(O,Ia,Ha){var xa=new p;if(!(Ha.featureCollection&&Ha.featureCollection.layers||Ha.layers))return console.log("Invalid Feature Collection item data [item id: "+O.itemId+"]: ",Ha),O.errors=O.errors||[],O.errors.push({message:"Invalid Feature Collection item data. [item id: "+O.itemId+"]"}),xa.errback(),xa;Ha.layers&&(Ha.featureCollection={layers:Ha.layers},delete Ha.layers,g.isDefined(Ha.showLegend)&&(Ha.featureCollection.showLegend=Ha.showLegend,delete Ha.showLegend));T(O,
Ha.featureCollection,Ia).then(function(Da){Ha.featureCollection=Da;O.featureCollection&&O.featureCollection.layers?b.forEach(Ha.featureCollection.layers,function(La,Ja){Ja=O.featureCollection.layers[Ja];Ja.popupInfo||Ja.layerDefinition?Ja.layerDefinition?(g.isDefined(Ja.layerDefinition.minScale)&&g.isDefined(Ja.layerDefinition.maxScale)&&(Ja.layerDefinition.minScale!==La.layerDefinition.minScale||Ja.layerDefinition.maxScale!==La.layerDefinition.maxScale)&&(delete La.layerDefinition.minScale,delete La.layerDefinition.maxScale),
Ja.layerDefinition.drawingInfo&&n.toJson(Ja.layerDefinition.drawingInfo)!==n.toJson(La.layerDefinition.drawingInfo)&&delete La.layerDefinition.drawingInfo,Ja.layerDefinition.showLegend!==La.layerDefinition.showLegend&&delete La.layerDefinition.showLegend,Ja.layerDefinition=z.mixin(Ja.layerDefinition,La.layerDefinition)):Ja.layerDefinition=La.layerDefinition:(Ja.popupInfo=La.popupInfo,Ja.layerDefinition=La.layerDefinition);Ja.featureSet=La.featureSet;Ja.nextObjectId=La.nextObjectId}):(O.featureCollection=
O.featureCollection||{},O.featureCollection=z.mixin(O.featureCollection,Ha.featureCollection));xa.callback(O)});return xa}function T(O,Ia,Ha){var xa=new p;E(["./csv"],function(Da){var La=[];b.forEach(Ia.layers,function(Ja){Ja.featureSet&&Ja.featureSet.features&&Ja.featureSet.features.length&&Ja.featureSet.features[0].geometry&&Ja.featureSet.features[0].geometry.spatialReference&&(Ja.deferredsPos=La.length,La.push(Da.projectFeatureCollection(Ja,Ha,Ja.featureSet.features[0].geometry.spatialReference)))});
(new f(La)).addCallback(function(){b.forEach(Ia.layers,function(Ja){g.isDefined(Ja.deferredsPos)&&(La[Ja.deferredsPos].results&&La[Ja.deferredsPos].results.length?Ja=La[Ja.deferredsPos].results[0]:(console.log("Errors projecting feature collection. ["+O.title+" - "+Ja.layerDefinition.name+"]"),Ja.errors=Ja.errors||[],Ja.errors.push({message:"Errors projecting feature collection. ["+O.title+" - "+Ja.layerDefinition.name+"]"})),delete Ja.deferredsPos)});xa.callback(Ia)})});return xa}function fa(O,Ia,
Ha,xa,Da){var La=new p,Ja=new p,Ga=[];b.forEach(O.operationalLayers,function(Sa){Sa.itemId&&"Feature Collection"==Sa.type&&Ga.push(Q(Sa).then(z.hitch(null,K,Sa,Ha)))});if(0===Ga.length)qa(O,Ia,Ha,xa,Ja,Da);else{var Na=new f(Ga);Na.addCallback(function(Sa){qa(O,Ia,Ha,xa,Ja,Da)})}Ja.then(function(Sa){Ga=[];b.forEach(Sa,function(cb){cb=cb.layerObject;if(cb instanceof aa&&!cb.loaded&&!cb.loadError){var Ua=new p;q.once(cb,"load, error",function(){Ua.callback(cb)});Ga.push(Ua)}else cb&&"esri.layers.WFSLayer"===
cb.declaredClass&&!cb.loadError&&(Ua=new p,q.once(cb,"fromJsonComplete, error",function(ab){Ua.callback(cb)}),Ga.push(Ua))});if(Ga.length){var Ya=new p;Na=new f(Ga);Na.addCallback(function(){Ya.callback(Sa)});return Ya.promise}return Sa}).then(function(Sa){var Ya=[];b.forEach(Sa,function(cb){var Ua=cb.layerObject;Ua&&(Ua instanceof aa||"esri.layers.StreamLayer"===Ua.declaredClass)?Ua.loaded&&Ua.labelingInfo&&(cb.showLabels||Ua._collection?Ya.push(Ua):Ua.setShowLabels&&Ua.setShowLabels(!1)):Ua&&"esri.layers.WFSLayer"===
Ua.declaredClass&&Ua.loaded&&Ua.labelingInfo&&Ya.push(Ua)});Ya.length?E(["../layers/LabelLayer"],function(cb){var Ua=new cb;b.forEach(Ya,function(ab){Ua.addFeatureLayer(ab)});Sa.push({layerObject:Ua});La.callback(Sa)}):La.callback(Sa)});return La}function qa(O,Ia,Ha,xa,Da,La){var Ja=[],Ga=[],Na=[];b.forEach(O.operationalLayers,function(Sa,Ya){if(Sa.featureCollection&&Sa.featureCollection.layers){var cb=Sa.featureCollection.layers.length;b.forEach(Sa.featureCollection.layers,function(Ua,ab){var $a=
!0;Sa.visibleLayers&&-1==b.indexOf(Sa.visibleLayers,ab)&&($a=!1);Ua.visibility=(null!=Sa.visibility?!!Sa.visibility:!0)&&$a;Ua.opacity=Sa.opacity;Ua.id=(Sa.id||"operational"+Ya)+"_"+ab;Sa.title&&(Ua.title=1!==cb&&Ua.layerDefinition.name&&Sa.title!==Ua.layerDefinition.name?Sa.title+" - "+Ua.layerDefinition.name:Sa.title);null==Ua.disablePopup&&(Ua.disablePopup=Sa.disablePopup);Na.push(Ua)},this)}else Na.push(Sa)});b.forEach(O.baseMap.baseMapLayers,function(Sa,Ya){Sa.baseMapLayer=!0;Sa.id=Sa.id||"base"+
Ya;Ja.push(Sa)});b.forEach(Na,function(Sa,Ya){Sa.id=Sa.id||"operational"+Ya;Ja.push(Sa)});b.forEach(Ja,function(Sa){if(pa(Sa)||Sa&&"VectorTileLayer"===Sa.layerType)Sa.deferredsPos=Ga.length,Sa.errors=Sa.errors||[],Sa.url?Ga.push(J(Sa.url,Sa.errors)):Ga.push(ea(Sa.styleUrl,Sa.errors))});0===Ga.length?(Ha=Ha||Ra(Ja),Ja=Ba(Ja,Ia,Ha,xa,La),Da.callback(Ja)):(new f(Ga)).addCallback(function(Sa){Va(Sa,Ja,Ia,Ga,Da,Ha,xa,La)});return Da}function ya(O,Ia,Ha,xa){var Da=O.minScale,La=O.maxScale;if(10.1>=Ha.version&&
Ia)for(O=Ia.length-1;0<=O;O--){if(Ia[O].id==xa)if(0==Da&&0<Ia[O].minScale?Da=Ia[O].minScale:0<Da&&0==Ia[O].minScale?Da=Ha.minScale:0<Da&&0<Ia[O].minScale&&(Da=Math.min(Da,Ia[O].minScale)),La=Math.max(Ha.maxScale||0,Ia[O].maxScale||0),Ha.setScaleRange(Da,La),-1<Ia[O].parentLayerId)xa=Ia[O].parentLayerId;else break}else 10.1<Ha.version&&(b.forEach(O.layerInfos,function(Ja){Ja.id==xa&&(0==Da&&0<Ja.minScale?Da=Ja.minScale:0<Da&&0==Ja.minScale||0<Da&&0<Ja.minScale&&(Da=Math.min(Da,Ja.minScale)),La=Math.max(La||
0,Ja.maxScale||0))}),Ha.setScaleRange(Da,La))}function Fa(O,Ia,Ha,xa){var Da=O.url,La=O.__popupIds,Ja=O.__popupUrls,Ga=O.__popupWhereClauses,Na=O.__popupMinScales,Sa=O.__popupMaxScales,Ya=O.__resourceInfo,cb=[];b.forEach(O.__popups,function(Ua,ab){if(Ua){var $a=[];b.forEach(Ua.fieldInfos,function(rb){"shape"!==rb.fieldName.toLowerCase()&&$a.push(rb.fieldName)});if(O.dynamicLayerInfos&&0<O.dynamicLayerInfos.length){var jb=b.filter(O.dynamicLayerInfos,function(rb){return La[ab]==rb.id})[0].source;var Ab=
new aa(Da+"/dynamicLayer",{parentLayer:O,id:O.id+"_"+La[ab],source:jb,outFields:$a,mode:aa.MODE_SELECTION,infoTemplate:Ua&&new Ha(Ua),drawMode:!1,visible:O.visible,autoGeneralize:!0});var hc=function(rb,Wb){0<Ga[rb].length&&Wb.setDefinitionExpression(Ga[rb]);if(g.isDefined(Na[rb])||g.isDefined(Sa[rb]))if(g.isDefined(O.minScale)||g.isDefined(O.maxScale)){var Mb=O.minScale,Zb=O.maxScale;0==Mb&&0<Na[rb]?Mb=Na[rb]:0<Mb&&0==Na[rb]||0<Mb&&0<Na[rb]&&(Mb=Math.min(Mb,Na[rb]));Zb=Math.max(Zb||0,Sa[rb]||0);
Wb.setScaleRange(Mb,Zb)}else Wb.setScaleRange(Na[rb],Sa[rb]);else ya(O,Ia||Ya.layers,Wb,La[rb])};Ab.loaded?hc(ab,Ab):w.connect(Ab,"onLoad",function(rb){hc(ab,Ab)})}else{var ic=null,jc=Da+"/"+La[ab];if(Ja[ab].length)jc=Ja[ab];else if(Ia)for(jb=0;jb<Ia.length;jb++)if(Ia[jb].id===La[ab]){ic=Ia[jb];break}Ab=new aa(U(jc),{parentLayer:O,id:O.id+"_"+La[ab],outFields:$a,mode:aa.MODE_SELECTION,infoTemplate:Ua&&new Ha(Ua),drawMode:!1,visible:O.visible,resourceInfo:ic,autoGeneralize:!0});Ab.loaded?(0<Ga[ab].length&&
Ab.setDefinitionExpression(Ga[ab]),ya(O,Ia||Ya.layers,Ab,La[ab])):w.connect(Ab,"onLoad",function(rb){0<Ga[ab].length&&Ab.setDefinitionExpression(Ga[ab]);ya(O,Ia||Ya.layers,rb,La[ab])})}cb.push(Ab)}});0<cb.length&&(w.connect(O,"onVisibilityChange",z.hitch(this,function(Ua,ab){b.forEach(Ua,function($a){ab?$a.show():$a.hide()})},cb)),w.connect(xa,"onLayerRemove",z.hitch(this,function(Ua,ab,$a){Ua.id===$a.id&&b.forEach(ab,function(jb){xa.removeLayer(jb)})},O,cb)));delete O.__popups;delete O.__popupIds;
delete O.__popupUrls;delete O.__popupWhereClauses;delete O.__popupMinScales;delete O.__popupMaxScales;delete O.__resourceInfo;return cb}function Ea(O){return k({url:U(O.url+"/layers"),content:{f:"json"},callbackParamName:"callback",error:function(){}})}function Ta(O,Ia,Ha){var xa=[];b.forEach(O,function(La){var Ja=La.__popups;Ja&&1<Ja.length&&10<=La.version&&(La.__deferredsPos=xa.length,xa.push(Ea(La)))});var Da=[];0<xa.length?(new f(xa)).addCallback(function(La){b.forEach(O,function(Ja){Ja.__popups&&
0<Ja.__popups.length&&(Ja.__deferredsPos||0===Ja.__deferredsPos?(Da=Da.concat(Fa(Ja,La[Ja.__deferredsPos][1].layers,Ha,Ia)),delete Ja.__deferredsPos):Da=Da.concat(Fa(Ja,null,Ha,Ia)))});Ia.addLayers(Da)}):(b.forEach(O,function(La){La.__popups&&0<La.__popups.length&&(Da=Da.concat(Fa(La,null,Ha,Ia)))}),Ia.addLayers(Da))}function Pa(O){b.forEach(O,function(Ia){var Ha=Ia.layer;Ha.toJson&&(Ia=Ha.toJson(),Ia.featureSet&&Ha.name&&-1<Ha.name.indexOf("Text")&&b.forEach(Ia.featureSet.features,function(xa,Da){xa.attributes.TEXT&&
(Da=Ha.graphics[Da],Da.symbol.setText(xa.attributes.TEXT),xa.symbol.horizontalAlignment&&(Da.symbol.align=xa.symbol.horizontalAlignment),Da.setSymbol(Da.symbol),Da.setAttributes(xa.attributes))},this))})}function Ka(O){var Ia=6;b.forEach(O,function(Ha){if(Ha=Ha.renderer)"esri.renderer.SimpleRenderer"===Ha.declaredClass?((Ha=Ha.symbol)&&Ha.xoffset&&(Ia=Math.max(Ia,Math.abs(Ha.xoffset))),Ha&&Ha.yoffset&&(Ia=Math.max(Ia,Math.abs(Ha.yoffset)))):"esri.renderer.UniqueValueRenderer"!==Ha.declaredClass&&
"esri.renderer.ClassBreaksRenderer"!==Ha.declaredClass||b.forEach(Ha.infos,function(xa){(xa=xa.symbol)&&xa.xoffset&&(Ia=Math.max(Ia,Math.abs(xa.xoffset)));xa&&xa.yoffset&&(Ia=Math.max(Ia,Math.abs(xa.yoffset)))})});return Ia}function Xa(O){var Ia=this,Ha=Ia.infoWindow,xa=O.graphic;if(Ia.loaded){Ha.hide();Ha.clearFeatures();var Da=[];b.forEach(Ia.graphicsLayerIds,function(Ua){(Ua=Ia.getLayer(Ua))&&Ua instanceof aa&&Ua.loaded&&Ua.visible&&(Ua.clearSelection(),Ua.infoTemplate&&!Ua.suspended&&Da.push(Ua))});
b.forEach(Ia.layerIds,function(Ua){(Ua=Ia.getLayer(Ua))&&(-1!==Ua.declaredClass.indexOf("ArcGISImageServiceLayer")||-1!==Ua.declaredClass.indexOf("RasterXLayer"))&&Ua.loaded&&Ua.visible&&Ua.infoTemplate&&Da.push(Ua)});xa=xa&&xa.getInfoTemplate()?xa:null;if(Da.length||xa){var La=Ka(Da),Ja=O.screenPoint,Ga=Ia.toMap(new t(Ja.x-La,Ja.y+La));La=Ia.toMap(new t(Ja.x+La,Ja.y-La));var Na=new r(Ga.x,Ga.y,La.x,La.y,Ia.spatialReference),Sa=new G;Sa.geometry=Na;Sa.timeExtent=Ia.timeExtent;var Ya=!0;Ga=b.map(Da,
function(Ua){Ua=Ua&&Ua.isFeatureReductionActive&&Ua.isFeatureReductionActive()?Ua.getFeatureReductionLayer():Ua;if(-1!==Ua.declaredClass.indexOf("ArcGISImageServiceLayer")){Sa.geometry=O.mapPoint;Ya=!1;var ab=Ua.queryVisibleRasters(Sa,{rasterAttributeTableFieldPrefix:"Raster.",returnDomainValues:!0});ab.addCallback(function(){return Ua.getVisibleRasters()})}else if(-1!==Ua.declaredClass.indexOf("RasterXLayer"))ab=Ua.fetchPopupFromTiles({geometry:O.mapPoint});else if("function"===typeof Ua.selectFeatures)ab=
Ua.selectFeatures(Sa),ab.addCallback(function(){return Ua.getSelectedFeatures()});else{ab=new p;var $a=b.filter(Ua.graphics,function(jb){return jb&&jb.visible&&Na.intersects(jb.geometry)});ab.resolve($a)}return ab});xa&&(La=new p,La.callback([xa]),Ga.splice(0,0,La));if(!b.some(Ga,function(Ua){return-1===Ua.fired})){var cb=xa?1:0;b.forEach(Da,function(Ua){cb=-1!==Ua.declaredClass.indexOf("ArcGISImageServiceLayer")?cb+Ua.getVisibleRasters().length:-1!==Ua.declaredClass.indexOf("RasterXLayer")?cb+Ua.getPopupFromTiles().length:
cb+Ua.getSelectedFeatures().length});if(!cb)return}Ha.setFeatures(Ga);Ha.show(O.mapPoint,{closestFirst:Ya})}}}function gb(O,Ia){var Ha=Ia.mapOptions||{};if(!Ha.infoWindow){var xa=new D({visibleWhenEmpty:!1},c.create("div"));Ha.infoWindow=xa}g.isDefined(Ha.showInfoWindowOnClick)||Ia.usePopupManager||(Ha.showInfoWindowOnClick=!1);O=new v(O,Ha);w.connect(O,"onLayersAddResult",Pa);return O}function bb(O,Ia,Ha,xa,Da,La){if(xa.map){var Ja=xa.map;var Ga=xa.clickEventHandle;var Na=xa.clickEventListener;var Sa=
xa.errors}else{var Ya=Ha.itemData;!Da.mapOptions.backgroundColor&&Ya.background&&Ya.background.color&&null!=Ya.background.color[0]&&(Da.mapOptions.backgroundColor=m.toDojoColor(Ya.background.color));Ja=gb(xa,Da);Da.ignorePopups||Da.disableClickBehavior||Da.usePopupManager||(Ga=w.connect(Ja,"onClick",Xa),Na=Xa)}Ja.addLayers(O);Da.ignorePopups||Da.usePopupManager||Ta(O,Ja,Da._clazz);var cb=Sa||[];b.forEach(Ia,function(Ua){Ua.errors&&(cb=cb.concat(Ua.errors))},this);Ja.loaded?La.callback({map:Ja,itemInfo:Ha,
errors:cb,clickEventHandle:Ga,clickEventListener:Na}):w.connect(Ja,"onLoad",function(){La.callback({map:Ja,itemInfo:Ha,errors:cb,clickEventHandle:Ga,clickEventListener:Na})})}function hb(O,Ia,Ha,xa,Da){var La=[];b.forEach(Da,function(Na){z.isArray(Na.layerObject)?b.forEach(Na.layerObject,function(Sa){La.push(Sa)}):La.push(Na.layerObject)});if(ba(Da[0]))var Ja=setInterval(function(){if(Da[0].layerObject&&Da[0].layerObject.loaded)clearInterval(Ja),db(O,Ia,Ha,xa,Da,La);else if(Da[0].errors){clearInterval(Ja);
var Na="";Da[0].errors&&Da[0].errors.length&&(Na=" ("+Da[0].errors[0].message+")");xa.errback(Error(da.arcgis.utils.baseLayerError+Na))}},10);else if(!La[0]&&Da[0].baseMapLayer){var Ga="";Da[0].errors&&Da[0].errors.length&&(Ga=" ("+Da[0].errors[0].message+")");xa.errback(Error(da.arcgis.utils.baseLayerError+Ga))}else db(O,Ia,Ha,xa,Da,La)}function db(O,Ia,Ha,xa,Da,La){try{var Ja=Ha.mapOptions||{};Ha.mapOptions=Ja;La=b.filter(La,g.isDefined);if(Ia.map||Ja.extent)bb(La,Da,O,Ia,Ha,xa);else{var Ga=La[0].spatialReference;
if(Ja.center&&(null!=Ja.zoom||Ja.scale)&&(z.isArray(Ja.center)&&(Ja.center=new u(Ja.center)),B.canProject(Ja.center,Ga))){bb(La,Da,O,Ia,Ha,xa);return}var Na=O.item;if(Na&&Na.extent&&Na.extent.length){var Sa=new r(Na.extent[0][0],Na.extent[0][1],Na.extent[1][0],Na.extent[1][1],new x({wkid:4326}));4326===Ga.wkid?(Ja.extent=Sa,bb(La,Da,O,Ia,Ha,xa)):900913===Ga.wkid||102100===Ga.wkid||102113===Ga.wkid||3857===Ga.wkid?(Sa.xmin=Math.max(Sa.xmin,-180),Sa.xmax=Math.min(Sa.xmax,180),Sa.ymin=Math.max(Sa.ymin,
-89.99),Sa.ymax=Math.min(Sa.ymax,89.99),Ja.extent=B.geographicToWebMercator(Sa),bb(La,Da,O,Ia,Ha,xa)):Ha.geometryServiceURL||h.defaults.geometryService?(Ha.geometryServiceURL?new H(Ha.geometryServiceURL):h.defaults.geometryService).project([Sa],Ga,function(Ya){Ya=Ya[0];Ja.extent=Ja.extent||Ya;bb(La,Da,O,Ia,Ha,xa)},function(){bb(La,Da,O,Ia,Ha,xa)}):xa.errback(Error(da.arcgis.utils.geometryServiceError))}else bb(La,Da,O,Ia,Ha,xa)}}catch(Ya){xa.errback(Ya)}}function lb(O){var Ia=[];b.forEach(O.operationalLayers,
function(Ha){Ha.featureCollection?Ia.push({featureCollection:Ha.featureCollection,visibility:null!=Ha.visibility?!!Ha.visibility:!0,title:Ha.title}):Ha.layerObject&&Ia.push({layer:Ha.layerObject,visibility:null!=Ha.visibility?!!Ha.visibility:!0,title:Ha.title})});return Ia}function sb(O){var Ia=[],Ha=O.baseMap.baseMapLayers;O.operationalLayers&&(Ha=Ha.concat(O.operationalLayers));b.forEach(Ha,function(xa){var Da={};if(xa.featureCollection&&(!xa||"CSV"!==xa.layerType&&"CSV"!==xa.type))!0===xa.featureCollection.showLegend&&
b.forEach(xa.featureCollection.layers,function(Ga){if(!1!==Ga.showLegend){var Na=Ga.layerObject.renderer;Da={layer:Ga.layerObject,title:xa.title,defaultSymbol:Na&&Na.defaultSymbol&&Na.defaultLabel?!0:!1};1<xa.featureCollection.layers.length&&(Da.title+=" - "+Ga.layerDefinition.name);Ia.push(Da)}});else if(xa.baseMapLayer&&!0===xa.showLegend&&xa.layerObject||!xa.baseMapLayer&&!1!==xa.showLegend&&xa.layerObject&&!(xa.layerObject instanceof aa&&xa.layerObject.mode===aa.MODE_SELECTION)){var La=xa.layerObject.renderer,
Ja=xa.layerObject.declaredClass;La=!La||La&&La.defaultSymbol&&La.defaultLabel?!0:!1;if(10.1>xa.layerObject.version&&("esri.layers.ArcGISDynamicMapServiceLayer"===Ja||"esri.layers.ArcGISTiledMapServiceLayer"===Ja)||"esri.layers.ArcGISImageServiceLayer"===Ja)La=!0;Da={layer:xa.layerObject,title:xa.title,defaultSymbol:La};xa.layers&&(Ja=b.map(b.filter(xa.layers,function(Ga){return!1===Ga.showLegend}),function(Ga){return Ga.id}),Ja.length&&(Da.hideLayers=Ja));Ia.push(Da)}});return Ia}function ob(O,Ia){function Ha(Ga,
Na){b.forEach(Ga,function(Sa,Ya){switch(Sa){case "../layers/ArcGISDynamicMapServiceLayer":Kb=Na[Ya];break;case "../layers/ArcGISImageServiceLayer":zb=Na[Ya];break;case "../layers/ArcGISImageServiceVectorLayer":ub=Na[Ya];break;case "../layers/CSVLayer":Sb=Na[Ya];break;case "../layers/DynamicLayerInfo":tb=Na[Ya];break;case "../layers/GeoRSSLayer":Hb=Na[Ya];break;case "../layers/ImageParameters":Lb=Na[Ya];break;case "../layers/ImageServiceParameters":Pb=Na[Ya];break;case "../layers/KMLLayer":Vb=Na[Ya];
break;case "../layers/LabelClass":Db=Na[Ya];break;case "../layers/LayerDrawingOptions":Rb=Na[Ya];break;case "../layers/MosaicRule":ac=Na[Ya];break;case "../layers/OpenStreetMapLayer":bc=Na[Ya];break;case "../layers/RasterFunction":dc=Na[Ya];break;case "../layers/RasterXLayer":ec=Na[Ya];break;case "../layers/StreamLayer":fc=Na[Ya];break;case "../layers/TileInfo":Ub=Na[Ya];break;case "../layers/VectorTileLayer":Gb=Na[Ya];break;case "../layers/vectorTiles/layers/support/vectorTileLayerLoader":mc=Na[Ya];
break;case "../virtualearth/VETiledLayer":Jb=Na[Ya];break;case "../layers/WebTiledLayer":nc=Na[Ya];break;case "../layers/WFSLayer":Tb=Na[Ya];break;case "../layers/WMSLayer":cc=Na[Ya];break;case "../layers/WMSLayerInfo":Bb=Na[Ya]}})}var xa=new p;O=O.itemData;Ia=[];O.baseMap&&O.baseMap.baseMapLayers&&(Ia=Ia.concat(O.baseMap.baseMapLayers));O.operationalLayers&&(Ia=Ia.concat(O.operationalLayers));O=b.map(Ia,function(Ga){return Ga&&Ga.layerType});var Da=[],La=[];Ia=!1;for(var Ja=0;Ja<O.length;Ja++){switch(O[Ja]){case "ArcGISFeatureLayer":-1===
b.indexOf(Da,"../layers/LabelClass")&&Da.push("../layers/LabelClass");break;case "ArcGISImageServiceLayer":case "ArcGISTiledImageServiceLayer":-1===b.indexOf(Da,"../layers/ArcGISImageServiceLayer")&&(Da.push("../layers/ArcGISImageServiceLayer"),La.push("../layers/ImageServiceParameters"),La.push("../layers/MosaicRule"),La.push("../layers/RasterFunction"),Da.push("../layers/RasterXLayer"));break;case "ArcGISImageServiceVectorLayer":-1===b.indexOf(Da,"../layers/ArcGISImageServiceVectorLayer")&&(Da.push("../layers/ArcGISImageServiceVectorLayer"),
La.push("../layers/ImageServiceParameters"),La.push("../layers/MosaicRule"),La.push("../layers/RasterFunction"));break;case "ArcGISMapServiceLayer":case "ArcGISTiledMapServiceLayer":-1===b.indexOf(Da,"../layers/ArcGISDynamicMapServiceLayer")&&(Da.push("../layers/ArcGISDynamicMapServiceLayer"),La.push("../layers/DynamicLayerInfo"),La.push("../layers/ImageParameters"),La.push("../layers/LayerDrawingOptions"));break;case "ArcGISStreamLayer":-1===b.indexOf(Da,"../layers/StreamLayer")&&Da.push("../layers/StreamLayer");
-1===b.indexOf(Da,"../layers/LabelClass")&&Da.push("../layers/LabelClass");break;case "BingMapsAerial":case "BingMapsHybrid":case "BingMapsRoad":-1===b.indexOf(Da,"../virtualearth/VETiledLayer")&&Da.push("../virtualearth/VETiledLayer");break;case "CSV":-1===b.indexOf(Da,"../layers/CSVLayer")&&(Da.push("../layers/CSVLayer"),La.push("./csv"));break;case "GeoRSS":-1===b.indexOf(Da,"../layers/GeoRSSLayer")&&Da.push("../layers/GeoRSSLayer");break;case "KML":-1===b.indexOf(Da,"../layers/KMLLayer")&&Da.push("../layers/KMLLayer");
break;case "OpenStreetMap":-1===b.indexOf(Da,"../layers/OpenStreetMapLayer")&&Da.push("../layers/OpenStreetMapLayer");break;case "VectorTileLayer":-1===b.indexOf(Da,"../layers/VectorTileLayer")&&Da.push("../layers/VectorTileLayer");-1===b.indexOf(La,"../layers/vectorTiles/layers/support/vectorTileLayerLoader")&&La.push("../layers/vectorTiles/layers/support/vectorTileLayerLoader");break;case "WebTiledLayer":-1===b.indexOf(Da,"../layers/WebTiledLayer")&&(Da.push("../layers/WebTiledLayer"),La.push("../layers/TileInfo"));
break;case "WFS":-1===b.indexOf(Da,"../layers/WFSLayer")&&Da.push("../layers/WFSLayer");break;case "WMS":-1===b.indexOf(Da,"../layers/WMSLayer")&&(Da.push("../layers/WMSLayer"),La.push("../layers/WMSLayerInfo"));break;default:Ia=!0}if(Ia)break}Ia&&(Da=Ob,La=gc);Da.length?E(Da,function(){Ha(Da,arguments);La.length?E(La,function(){Ha(La,arguments);xa.resolve()}):xa.resolve()}):xa.resolve();return xa}function eb(O){O=O.itemData;var Ia=function(xa,Da){"GroupLayer"===xa.layerType?b.forEach(xa.layers,function(La){La.visibility=
!1===xa.visibility?!1:La.visibility;La.opacity=g.isDefined(xa.opacity)?g.isDefined(La.opacity)?La.opacity*xa.opacity:xa.opacity:La.opacity;Ia(La,Da)}):Da.push(xa)},Ha=[];b.forEach(O.operationalLayers,function(xa){Ia(xa,Ha)});O.operationalLayers=Ha}function pb(O,Ia,Ha,xa){eb(xa);var Da=xa.itemData;Da.baseMap&&Da.baseMap.baseMapLayers&&Da.baseMap.baseMapLayers.length&&(Da.baseMap.baseMapLayers[0].firstLayer=!0);var La=Ia.layerMixins,Ja=La&&La.length;if(Ja){var Ga=function(Na){for(var Sa=0;Sa<Ja;Sa++){var Ya=
La[Sa];if(Ya.mixin)if(Ya.hasOwnProperty("id")){if(Na.id===Ya.id){z.mixin(Na,Ya.mixin);break}}else if(Na.url===Ya.url){z.mixin(Na,Ya.mixin);break}}};b.forEach(Da.baseMap&&Da.baseMap.baseMapLayers,Ga);b.forEach(Da.operationalLayers,Ga)}ob(xa,Ia).then(function(){return ka(xa,Ia)}).then(function(){return Y(xa,Ia)}).then(function(Na){var Sa=Na[0],Ya=Na[1];if(Sa.itemData.operationalLayers&&0!==Sa.itemData.operationalLayers.length){var cb=new p,Ua=Sa.itemData.baseMap.baseMapLayers.slice(),ab=b.filter(Sa.itemData.baseMap.baseMapLayers,
function($a){return!$a.isReference});Na={item:Sa.item,itemData:{baseMap:{baseMapLayers:ab},background:z.clone(Sa.itemData.background)}};Sa.itemData.baseMap.baseMapLayers=b.filter(Sa.itemData.baseMap.baseMapLayers,function($a){return $a.isReference});M(Na,Ya).addCallback(function($a){fa($a.itemData,Ya).addCallback(z.hitch(null,hb,$a,O,Ya,cb))});cb.then(function($a){M(Sa,Ya).addCallback(function(jb){fa(jb.itemData,Ya,$a.map.spatialReference,ab,$a.map).addCallback(function(Ab){jb.itemData.baseMap.baseMapLayers=
Ua;hb(jb,$a,Ya,Ha,Ab)})})},z.hitch(Ha,Ha.errback))}else M(Sa,Ya).addCallback(function($a){fa($a.itemData,Ya).addCallback(z.hitch(null,hb,$a,O,Ya,Ha))})})}function qb(O,Ia){"undefined"===typeof Ia&&(Ia=!0);xb._arcgisUrl&&0<xb._arcgisUrl.length&&(xb.arcgisUrl=xb._arcgisUrl);var Ha={},xa=new p;k({url:xb.arcgisUrl+"/"+O,content:{f:"json"},callbackParamName:"callback",load:function(Da){Ha.item=Da;Ia?k({url:xb.arcgisUrl+"/"+O+"/data",content:{f:"json"},callbackParamName:"callback",load:function(La){Ha.itemData=
La;xa.callback(Ha)},error:function(La){xa.errback(La)}}):xa.callback(Ha)},error:function(Da){xa.errback(Da)}});return xa}var Kb,zb,ub,Sb,tb,Hb,Lb,Pb,Vb,Db,Rb,ac,bc,dc,ec,fc,Ub,Gb,mc,Jb,nc,Tb,cc,Bb,Ob="../layers/ArcGISDynamicMapServiceLayer ../layers/ArcGISImageServiceLayer ../layers/ArcGISImageServiceVectorLayer ../layers/CSVLayer ../layers/GeoRSSLayer ../layers/KMLLayer ../layers/LabelClass ../layers/OpenStreetMapLayer ../layers/RasterXLayer ../layers/StreamLayer ../layers/VectorTileLayer ../virtualearth/VETiledLayer ../layers/WebTiledLayer ../layers/WFSLayer ../layers/WMSLayer".split(" "),
gc="./csv ../layers/DynamicLayerInfo ../layers/ImageParameters ../layers/ImageServiceParameters ../layers/LayerDrawingOptions ../layers/MosaicRule ../layers/RasterFunction ../layers/TileInfo ../layers/vectorTiles/layers/support/vectorTileLayerLoader ../layers/WMSLayerInfo".split(" ");var xb={arcgisUrl:y.getProtocolForWebResource()+"//www.arcgis.com/sharing/rest/content/items",getItem:qb,createMap:function(O,Ia,Ha){var xa=new p;Ha=Ha||{};var Da=Ha.infoTemplateClass;Ha._clazz=Da&&(z.isObject(Da)?Da:
z.getObject(Da))||A;z.isString(O)?qb(O).addCallback(z.hitch(null,pb,Ia,Ha,xa)).addErrback(z.hitch(xa,xa.errback)):pb(Ia,Ha,xa,O);xa.addCallback(function(La){var Ja=La.map;Ja&&(Ja.tables=z.getObject("itemInfo.itemData.tables",!1,La)||[])});return xa},getLayerList:function(O){return O&&O.itemInfo&&O.itemInfo.itemData?lb(O.itemInfo.itemData):[]},getLegendLayers:function(O){return O&&O.itemInfo&&O.itemInfo.itemData?sb(O.itemInfo.itemData):[]},_arcgisUrl:null,_getItemProps:M,_getItemData:Ca,_getBingKey:la,
_portalUrlResponse:N,_portalUrlFailure:Z,_processFSItemProperties:ua,_processSSItemProperties:Aa,_getLayers:fa,_preBuildLayerObjects:Va,_buildLayerObjects:Ba,_preCreateMap:hb,_getMapSR:Ra,_createMap:bb,_addSelectionLayers:Ta,_createSelectionFeatureLayers:Fa,_getServiceInfo:J,_getFeatureCollectionItem:Q,_mergeFeatureCollectionItem:K,_projectFeatureCollection:T,_getLayersInfo:Ea,_initLayer:ta,_loadAsCached:ma,_loadAsDynamic:sa,_processPopups:za,_onLayersAddResult:Pa,_sameSpatialReferenceAsBasemap:W,
_sameTilingSchemeAsBasemap:oa,_showPopup:Xa,_calculateClickTolerance:Ka,_getVisibleFeatureLayers:ra,_updateLayerScaleInfo:ya,_checkUrl:U,_isHostedService:va,_isAgolService:S,_getLegendLayers:sb};z.setObject("arcgis.utils",xb,e);return xb})},"esri/tasks/GeometryService":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/json dojo/_base/Deferred dojo/has ../kernel ../request ../deferredUtils ./Task ../geometry/Extent ../geometry/Polyline ../geometry/Polygon ../geometry/Multipoint ../geometry/jsonUtils".split(" "),
function(E,z,b,w,p,n,l,q,f,c,a,d,e,h,m){E=E(c,{declaredClass:"esri.tasks.GeometryService",_eventMap:{"areas-and-lengths-complete":["result"],"auto-complete-complete":["geometries"],"buffer-complete":["geometries"],"convex-hull-complete":["geometry"],"cut-complete":["result"],"densify-complete":["geometries"],"difference-complete":["geometries"],"distance-complete":["distance"],"generalize-complete":["geometries"],"intersect-complete":["geometries"],"label-points-complete":["geometries"],"lengths-complete":["result"],
"offset-complete":["geometries"],"project-complete":["geometries"],"relation-complete":["relations"],"reshape-complete":["geometry"],"simplify-complete":["geometries"],"trim-extend-complete":["geometries"],"union-complete":["geometry"]},constructor:function(g){g=z.hitch;this._projectHandler=g(this,this._projectHandler);this._simplifyHandler=g(this,this._simplifyHandler);this._bufferHandler=g(this,this._bufferHandler);this._areasAndLengthsHandler=g(this,this._areasAndLengthsHandler);this._lengthsHandler=
g(this,this._lengthsHandler);this._labelPointsHandler=g(this,this._labelPointsHandler);this._relationHandler=g(this,this._relationHandler);this._convexHullHandler=g(this,this._convexHullHandler);this._unionHandler=g(this,this._unionHandler);this._autoCompleteHandler=g(this,this._autoCompleteHandler);this._reshapeHandler=g(this,this._reshapeHandler);this._cutHandler=g(this,this._cutHandler);this._intersectHandler=g(this,this._intersectHandler);this._differenceHandler=g(this,this._differenceHandler);
this._trimExtendHandler=g(this,this._trimExtendHandler);this._densifyHandler=g(this,this._densifyHandler);this._generalizeHandler=g(this,this._densifyHandler);this._offsetHandler=g(this,this._offsetHandler);this._distanceHandler=g(this,this._distanceHandler);this._toGeoCoordinateHandler=g(this,this._toGeoCoordinateHandler);this._fromGeoCoordinateHandler=g(this,this._fromGeoCoordinateHandler);this.registerConnectEvents()},_encodeGeometries:function(g){var k=[],x,v=g.length;for(x=0;x<v;x++)k.push(g[x].toJson());
return{geometryType:m.getJsonType(g[0]),geometries:k}},_decodeGeometries:function(g,k,x){var v=m.getGeometryType(k);g=g.geometries;var y=[],u={spatialReference:x.toJson()},t=z.mixin;b.forEach(g,function(r,B){y[B]=new v(t(r,u))});return y},_toProjectGeometry:function(g){var k=g.spatialReference.toJson();return g instanceof a?new e({rings:[[[g.xmin,g.ymin],[g.xmin,g.ymax],[g.xmax,g.ymax],[g.xmax,g.ymin],[g.xmin,g.ymin]]],spatialReference:k}):new d({paths:[[].concat(g.points)],spatialReference:k})},
_fromProjectedGeometry:function(g,k,x){return"esriGeometryEnvelope"===k?(g=g.rings[0],new a(g[0][0],g[0][1],g[2][0],g[2][1],x)):new h({points:g.paths[0],spatialReference:x.toJson()})},project:function(g,k,x,v){var y=z.mixin({},this._url.query,{f:"json"});if(g.geometries){v=x;x=k;k=g.outSR;var u=g.geometries[0];y=z.mixin(y,g.toJson())}else u=g[0],y=z.mixin(y,{outSR:k.wkid||w.toJson(k.toJson()),inSR:u.spatialReference.wkid||w.toJson(u.spatialReference.toJson()),geometries:w.toJson(this._encodeGeometries(g))});
var t=m.getJsonType(u),r=this._projectHandler,B=this._errorHandler,C=new p(f._dfdCanceller);C._pendingDfd=q({url:this._url.path+"/project",content:y,callbackParamName:"callback",load:function(F,A){r(F,A,t,k,x,v,C)},error:function(F){B(F,v,C)}});return C},_projectHandler:function(g,k,x,v,y,u,t){try{var r=this._decodeGeometries(g,x,v);this._successHandler([r],"onProjectComplete",y,t)}catch(B){this._errorHandler(B,u,t)}},onProjectComplete:function(){},simplify:function(g,k,x){var v=g[0].spatialReference,
y=z.mixin({},this._url.query,{f:"json",sr:v.wkid?v.wkid:w.toJson(v.toJson()),geometries:w.toJson(this._encodeGeometries(g))}),u=m.getJsonType(g[0]),t=this._simplifyHandler,r=this._errorHandler,B=new p(f._dfdCanceller);B._pendingDfd=q({url:this._url.path+"/simplify",content:y,callbackParamName:"callback",load:function(C,F){t(C,F,u,v,k,x,B)},error:function(C){r(C,x,B)}});return B},_simplifyHandler:function(g,k,x,v,y,u,t){try{var r=this._decodeGeometries(g,x,v);this._successHandler([r],"onSimplifyComplete",
y,t)}catch(B){this._errorHandler(B,u,t)}},onSimplifyComplete:function(){},convexHull:function(g,k,x){var v=g[0].spatialReference;g=z.mixin({},this._url.query,{f:"json",sr:w.toJson(v.toJson()),geometries:w.toJson(this._encodeGeometries(g))});var y=this._convexHullHandler,u=this._errorHandler,t=new p(f._dfdCanceller);t._pendingDfd=q({url:this._url.path+"/convexHull",content:g,callbackParamName:"callback",load:function(r,B){y(r,B,v,k,x,t)},error:function(r){u(r,x,t)}});return t},_convexHullHandler:function(g,
k,x,v,y,u){try{var t=m.fromJson(g.geometry).setSpatialReference(x);this._successHandler([t],"onConvexHullComplete",v,u)}catch(r){this._errorHandler(r,y,u)}},onConvexHullComplete:function(){},union:function(g,k,x){var v=g[0].spatialReference;g=z.mixin({},this._url.query,{f:"json",sr:w.toJson(v.toJson()),geometries:w.toJson(this._encodeGeometries(g))});var y=this._unionHandler,u=this._errorHandler,t=new p(f._dfdCanceller);t._pendingDfd=q({url:this._url.path+"/union",content:g,callbackParamName:"callback",
load:function(r,B){y(r,B,v,k,x,t)},error:function(r){u(r,x,t)}});return t},_unionHandler:function(g,k,x,v,y,u){try{var t=m.fromJson(g.geometry).setSpatialReference(x);this._successHandler([t],"onUnionComplete",v,u)}catch(r){this._errorHandler(r,y,u)}},onUnionComplete:function(){},autoComplete:function(g,k,x,v){var y=g[0].spatialReference;g=z.mixin({},this._url.query,{f:"json",sr:w.toJson(y.toJson()),polygons:w.toJson(this._encodeGeometries(g).geometries),polylines:w.toJson(this._encodeGeometries(k).geometries)});
var u=this._autoCompleteHandler,t=this._errorHandler,r=new p(f._dfdCanceller);r._pendingDfd=q({url:this._url.path+"/autoComplete",content:g,callbackParamName:"callback",load:function(B,C){u(B,C,y,x,v,r)},error:function(B){t(B,v,r)}});return r},_autoCompleteHandler:function(g,k,x,v,y,u){try{var t=g.geometries;g=[];var r,B=t.length;for(r=0;r<B;r++)g[r]=new e({spatialReference:x,rings:t[r].rings});this._successHandler([g],"onAutoCompleteComplete",v,u)}catch(C){this._errorHandler(C,y,u)}},onAutoCompleteComplete:function(){},
reshape:function(g,k,x,v){var y=g.spatialReference;g=z.mixin({},this._url.query,{f:"json",sr:w.toJson(y.toJson()),target:w.toJson({geometryType:m.getJsonType(g),geometry:g.toJson()}),reshaper:w.toJson(k.toJson())});var u=this._reshapeHandler,t=this._errorHandler,r=new p(f._dfdCanceller);r._pendingDfd=q({url:this._url.path+"/reshape",content:g,callbackParamName:"callback",load:function(B,C){u(B,C,y,x,v,r)},error:function(B){t(B,v,r)}});return r},_reshapeHandler:function(g,k,x,v,y,u){try{var t=m.fromJson(g.geometry).setSpatialReference(x);
this._successHandler([t],"onReshapeComplete",v,u)}catch(r){this._errorHandler(r,y,u)}},onReshapeComplete:function(){},cut:function(g,k,x,v){var y=g[0].spatialReference,u=b.map(g,function(C){return C.toJson()});g=z.mixin({},this._url.query,{f:"json",sr:w.toJson(y.toJson()),target:w.toJson({geometryType:m.getJsonType(g[0]),geometries:u}),cutter:w.toJson(k.toJson())});var t=this._cutHandler,r=this._errorHandler,B=new p(f._dfdCanceller);B._pendingDfd=q({url:this._url.path+"/cut",content:g,callbackParamName:"callback",
load:function(C,F){t(C,F,y,x,v,B)},error:function(C){r(C,v,B)}});return B},_cutHandler:function(g,k,x,v,y,u){try{var t=g.geometries,r={};r.cutIndexes=g.cutIndexes;r.geometries=[];b.forEach(t,function(B){r.geometries.push(m.fromJson(B).setSpatialReference(x))});this._successHandler([r],"onCutComplete",v,u)}catch(B){this._errorHandler(B,y,u)}},onCutComplete:function(){},intersect:function(g,k,x,v){var y=g[0].spatialReference;g=z.mixin({},this._url.query,{f:"json",sr:w.toJson(y.toJson()),geometries:w.toJson(this._encodeGeometries(g)),
geometry:w.toJson({geometryType:m.getJsonType(k),geometry:k.toJson()})});var u=this._intersectHandler,t=this._errorHandler,r=new p(f._dfdCanceller);r._pendingDfd=q({url:this._url.path+"/intersect",content:g,callbackParamName:"callback",load:function(B,C){u(B,C,y,x,v,r)},error:function(B){t(B,v,r)}});return r},_intersectHandler:function(g,k,x,v,y,u){try{var t=[];b.forEach(g.geometries,function(r){t.push(m.fromJson(r).setSpatialReference(x))});this._successHandler([t],"onIntersectComplete",v,u)}catch(r){this._errorHandler(r,
y,u)}},onIntersectComplete:function(){},difference:function(g,k,x,v){var y=g[0].spatialReference;g=z.mixin({},this._url.query,{f:"json",sr:w.toJson(y.toJson()),geometries:w.toJson(this._encodeGeometries(g)),geometry:w.toJson({geometryType:m.getJsonType(k),geometry:k.toJson()})});var u=this._differenceHandler,t=this._errorHandler,r=new p(f._dfdCanceller);r._pendingDfd=q({url:this._url.path+"/difference",content:g,callbackParamName:"callback",load:function(B,C){u(B,C,y,x,v,r)},error:function(B){t(B,
v,r)}});return r},_differenceHandler:function(g,k,x,v,y,u){try{var t=[];b.forEach(g.geometries,function(r){t.push(m.fromJson(r).setSpatialReference(x))});this._successHandler([t],"onDifferenceComplete",v,u)}catch(r){this._errorHandler(r,y,u)}},onDifferenceComplete:function(){},buffer:function(g,k,x){var v=z.mixin({},this._url.query,{f:"json"},g.toJson()),y=g.outSpatialReference||g.geometries[0].spatialReference,u=this._bufferHandler,t=this._errorHandler,r=new p(f._dfdCanceller);r._pendingDfd=q({url:this._url.path+
"/buffer",content:v,callbackParamName:"callback",load:function(B,C){u(B,C,y,k,x,r)},error:function(B){t(B,x,r)}});return r},_bufferHandler:function(g,k,x,v,y,u){try{var t=g.geometries;g=[];var r,B=t.length;for(r=0;r<B;r++)g[r]=new e({spatialReference:x,rings:t[r].rings});this._successHandler([g],"onBufferComplete",v,u)}catch(C){this._errorHandler(C,y,u)}},onBufferComplete:function(){},areasAndLengths:function(g,k,x){g=z.mixin({},this._url.query,{f:"json"},g.toJson());var v=this._areasAndLengthsHandler,
y=this._errorHandler,u=new p(f._dfdCanceller);u._pendingDfd=q({url:this._url.path+"/areasAndLengths",content:g,callbackParamName:"callback",load:function(t,r){v(t,r,k,x,u)},error:function(t){y(t,x,u)}});return u},_areasAndLengthsHandler:function(g,k,x,v,y){try{this._successHandler([g],"onAreasAndLengthsComplete",x,y)}catch(u){this._errorHandler(u,v,y)}},onAreasAndLengthsComplete:function(){},lengths:function(g,k,x){g=z.mixin({},this._url.query,{f:"json"},g.toJson());var v=this._lengthsHandler,y=this._errorHandler,
u=new p(f._dfdCanceller);u._pendingDfd=q({url:this._url.path+"/lengths",content:g,callbackParamName:"callback",load:function(t,r){v(t,r,k,x,u)},error:function(t){y(t,x,u)}});return u},_lengthsHandler:function(g,k,x,v,y){try{this._successHandler([g],"onLengthsComplete",x,y)}catch(u){this._errorHandler(u,v,y)}},onLengthsComplete:function(){},labelPoints:function(g,k,x){var v=b.map(g,function(B){return B.toJson()}),y=g[0].spatialReference;v=z.mixin({},this._url.query,{f:"json",sr:y.wkid?y.wkid:w.toJson(y.toJson()),
polygons:w.toJson(v)});var u=this._labelPointsHandler,t=this._errorHandler,r=new p(f._dfdCanceller);r._pendingDfd=q({url:this._url.path+"/labelPoints",content:v,callbackParamName:"callback",load:function(B,C){u(B,C,g,y,k,x,r)},error:function(B){t(B,x,r)}});return r},_labelPointsHandler:function(g,k,x,v,y,u,t){try{var r=[];b.forEach(g.labelPoints,function(B){r.push(m.fromJson(B).setSpatialReference(v))});this._successHandler([r],"onLabelPointsComplete",y,t)}catch(B){this._errorHandler(B,u,t)}},onLabelPointsComplete:function(){},
relation:function(g,k,x){g=z.mixin({},this._url.query,{f:"json"},g.toJson());var v=this._relationHandler,y=this._errorHandler,u=new p(f._dfdCanceller);u._pendingDfd=q({url:this._url.path+"/relation",content:g,callbackParamName:"callback",load:function(t,r){v(t,r,k,x,u)},error:function(t){y(t,x,u)}});return u},_relationHandler:function(g,k,x,v,y){try{this._successHandler([g.relations],"onRelationComplete",x,y)}catch(u){this._errorHandler(u,v,y)}},onRelationComplete:function(){},trimExtend:function(g,
k,x){var v=z.mixin({},this._url.query,{f:"json"},g.toJson()),y=g.sr,u=this._trimExtendHandler,t=this._errorHandler,r=new p(f._dfdCanceller);r._pendingDfd=q({url:this._url.path+"/trimExtend",content:v,callbackParamName:"callback",load:function(B,C){u(B,C,y,k,x,r)},error:function(B){t(B,x,r)}});return r},_trimExtendHandler:function(g,k,x,v,y,u){try{var t=g.geometries;g=[];var r,B=t.length;for(r=0;r<B;r++)g[r]=new d({spatialReference:x,paths:t[r].paths});this._successHandler([g],"onTrimExtendComplete",
v,u)}catch(C){this._errorHandler(C,y,u)}},onTrimExtendComplete:function(){},densify:function(g,k,x){var v=z.mixin({},this._url.query,{f:"json"},g.toJson()),y=g.geometries[0].spatialReference,u=this._densifyHandler,t=this._errorHandler,r=new p(f._dfdCanceller);r._pendingDfd=q({url:this._url.path+"/densify",content:v,callbackParamName:"callback",load:function(B,C){u(B,C,y,k,x,r)},error:function(B){t(B,x,r)}});return r},_densifyHandler:function(g,k,x,v,y,u){try{var t=[];b.forEach(g.geometries,function(r){t.push(m.fromJson(r).setSpatialReference(x))});
this._successHandler([t],"onDensifyComplete",v,u)}catch(r){this._errorHandler(r,y,u)}},onDensifyComplete:function(){},generalize:function(g,k,x){var v=z.mixin({},this._url.query,{f:"json"},g.toJson()),y=g.geometries[0].spatialReference,u=this._generalizeHandler,t=this._errorHandler,r=new p(f._dfdCanceller);r._pendingDfd=q({url:this._url.path+"/generalize",content:v,callbackParamName:"callback",load:function(B,C){u(B,C,y,k,x,r)},error:function(B){t(B,x,r)}});return r},_generalizeHandler:function(g,
k,x,v,y,u){try{var t=[];b.forEach(g.geometries,function(r){t.push(m.fromJson(r).setSpatialReference(x))});this._successHandler([t],"onGeneralizeComplete",v,u)}catch(r){this._errorHandler(r,y,u)}},onGeneralizeComplete:function(){},offset:function(g,k,x){var v=z.mixin({},this._url.query,{f:"json"},g.toJson()),y=g.geometries[0].spatialReference,u=this._offsetHandler,t=this._errorHandler,r=new p(f._dfdCanceller);r._pendingDfd=q({url:this._url.path+"/offset",content:v,callbackParamName:"callback",load:function(B,
C){u(B,C,y,k,x,r)},error:function(B){t(B,x,r)}});return r},_offsetHandler:function(g,k,x,v,y,u){try{var t=[];b.forEach(g.geometries,function(r){t.push(m.fromJson(r).setSpatialReference(x))});this._successHandler([t],"onOffsetComplete",v,u)}catch(r){this._errorHandler(r,y,u)}},onOffsetComplete:function(){},distance:function(g,k,x){var v=z.mixin({},this._url.query,{f:"json"},g.toJson()),y=g.geometry1.spatialReference,u=this._distanceHandler,t=this._errorHandler,r=new p(f._dfdCanceller);r._pendingDfd=
q({url:this._url.path+"/distance",content:v,callbackParamName:"callback",load:function(B,C){u(B,C,y,k,x,r)},error:function(B){t(B,x,r)}});return r},_distanceHandler:function(g,k,x,v,y,u){try{g=g&&g.distance,this._successHandler([g],"onDistanceComplete",v,u)}catch(t){this._errorHandler(t,y,u)}},onDistanceComplete:function(){},toGeoCoordinateString:function(g,k,x){var v={};z.isObject(g.sr)?v.sr=g.sr.wkid||w.toJson(g.sr.toJson()):v.sr=g.sr;v.coordinates=w.toJson(g.coordinates);v.conversionType=g.conversionType||
"MGRS";v.conversionMode=g.conversionMode;v.numOfDigits=g.numOfDigits;v.rounding=g.rounding;v.addSpaces=g.addSpaces;g=z.mixin({},this._url.query,{f:"json"},v);var y=this._toGeoCoordinateHandler,u=this._errorHandler,t=new p(f._dfdCanceller);t._pendingDfd=q({url:this._url.path+"/toGeoCoordinateString",content:g,callbackParamName:"callback",load:function(r,B){y(r,B,k,x,t)},error:function(r){u(r,x,t)}});return t},_toGeoCoordinateHandler:function(g,k,x,v,y){try{this._successHandler([g.strings],"onToGeoCoordinateStringComplete",
x,y)}catch(u){this._errorHandler(u,v,y)}},onToGeoCoordinateStringComplete:function(){},fromGeoCoordinateString:function(g,k,x){var v={};z.isObject(g.sr)?v.sr=g.sr.wkid||w.toJson(g.sr.toJson()):v.sr=g.sr;v.strings=w.toJson(g.strings);v.conversionType=g.conversionType||"MGRS";v.conversionMode=g.conversionMode;g=z.mixin({},this._url.query,{f:"json"},v);var y=this._fromGeoCoordinateHandler,u=this._errorHandler,t=new p(f._dfdCanceller);t._pendingDfd=q({url:this._url.path+"/fromGeoCoordinateString",content:g,
callbackParamName:"callback",load:function(r,B){y(r,B,k,x,t)},error:function(r){u(r,x,t)}});return t},_fromGeoCoordinateHandler:function(g,k,x,v,y){try{this._successHandler([g.coordinates],"onToGeoCoordinateStringComplete",x,y)}catch(u){this._errorHandler(u,v,y)}},onFromGeoCoordinateStringComplete:function(){}});z.mixin(E,{UNIT_METER:9001,UNIT_GERMAN_METER:9031,UNIT_FOOT:9002,UNIT_SURVEY_FOOT:9003,UNIT_CLARKE_FOOT:9005,UNIT_FATHOM:9014,UNIT_NAUTICAL_MILE:9030,UNIT_SURVEY_CHAIN:9033,UNIT_SURVEY_LINK:9034,
UNIT_SURVEY_MILE:9035,UNIT_KILOMETER:9036,UNIT_CLARKE_YARD:9037,UNIT_CLARKE_CHAIN:9038,UNIT_CLARKE_LINK:9039,UNIT_SEARS_YARD:9040,UNIT_SEARS_FOOT:9041,UNIT_SEARS_CHAIN:9042,UNIT_SEARS_LINK:9043,UNIT_BENOIT_1895A_YARD:9050,UNIT_BENOIT_1895A_FOOT:9051,UNIT_BENOIT_1895A_CHAIN:9052,UNIT_BENOIT_1895A_LINK:9053,UNIT_BENOIT_1895B_YARD:9060,UNIT_BENOIT_1895B_FOOT:9061,UNIT_BENOIT_1895B_CHAIN:9062,UNIT_BENOIT_1895B_LINK:9063,UNIT_INDIAN_FOOT:9080,UNIT_INDIAN_1937_FOOT:9081,UNIT_INDIAN_1962_FOOT:9082,UNIT_INDIAN_1975_FOOT:9083,
UNIT_INDIAN_YARD:9084,UNIT_INDIAN_1937_YARD:9085,UNIT_INDIAN_1962_YARD:9086,UNIT_INDIAN_1975_YARD:9087,UNIT_FOOT_1865:9070,UNIT_RADIAN:9101,UNIT_DEGREE:9102,UNIT_ARCMINUTE:9103,UNIT_ARCSECOND:9104,UNIT_GRAD:9105,UNIT_GON:9106,UNIT_MICRORADIAN:9109,UNIT_ARCMINUTE_CENTESIMAL:9112,UNIT_ARCSECOND_CENTESIMAL:9113,UNIT_MIL6400:9114,UNIT_BRITISH_1936_FOOT:9095,UNIT_GOLDCOAST_FOOT:9094,UNIT_INTERNATIONAL_CHAIN:109003,UNIT_INTERNATIONAL_LINK:109004,UNIT_INTERNATIONAL_YARD:109001,UNIT_STATUTE_MILE:9093,UNIT_SURVEY_YARD:109002,
UNIT_50KILOMETER_LENGTH:109030,UNIT_150KILOMETER_LENGTH:109031,UNIT_DECIMETER:109005,UNIT_CENTIMETER:109006,UNIT_MILLIMETER:109007,UNIT_INTERNATIONAL_INCH:109008,UNIT_US_SURVEY_INCH:109009,UNIT_INTERNATIONAL_ROD:109010,UNIT_US_SURVEY_ROD:109011,UNIT_US_NAUTICAL_MILE:109012,UNIT_UK_NAUTICAL_MILE:109013,UNIT_SQUARE_INCHES:"esriSquareInches",UNIT_SQUARE_FEET:"esriSquareFeet",UNIT_SQUARE_YARDS:"esriSquareYards",UNIT_ACRES:"esriAcres",UNIT_SQUARE_MILES:"esriSquareMiles",UNIT_SQUARE_MILLIMETERS:"esriSquareMillimeters",
UNIT_SQUARE_CENTIMETERS:"esriSquareCentimeters",UNIT_SQUARE_DECIMETERS:"esriSquareDecimeters",UNIT_SQUARE_METERS:"esriSquareMeters",UNIT_ARES:"esriAres",UNIT_HECTARES:"esriHectares",UNIT_SQUARE_KILOMETERS:"esriSquareKilometers"});n("extend-esri")&&z.setObject("tasks.GeometryService",E,l);return E})},"url:dijit/form/templates/Button.html":'\x3cspan class\x3d"dijit dijitReset dijitInline" role\x3d"presentation"\r\n\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonNode"\r\n\t\tdata-dojo-attach-event\x3d"ondijitclick:__onClick" role\x3d"presentation"\r\n\t\t\x3e\x3cspan class\x3d"dijitReset dijitStretch dijitButtonContents"\r\n\t\t\tdata-dojo-attach-point\x3d"titleNode,focusNode"\r\n\t\t\trole\x3d"button" aria-labelledby\x3d"${id}_label"\r\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\r\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitToggleButtonIconChar"\x3e\x26#x25CF;\x3c/span\r\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonText"\r\n\t\t\t\tid\x3d"${id}_label"\r\n\t\t\t\tdata-dojo-attach-point\x3d"containerNode"\r\n\t\t\t\x3e\x3c/span\r\n\t\t\x3e\x3c/span\r\n\t\x3e\x3c/span\r\n\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" class\x3d"dijitOffScreen"\r\n\t\tdata-dojo-attach-event\x3d"onclick:_onClick"\r\n\t\ttabIndex\x3d"-1" aria-hidden\x3d"true" data-dojo-attach-point\x3d"valueNode"\r\n/\x3e\x3c/span\x3e\r\n',
"url:dijit/form/templates/DropDownButton.html":'\x3cspan class\x3d"dijit dijitReset dijitInline"\r\n\t\x3e\x3cspan class\x3d\'dijitReset dijitInline dijitButtonNode\'\r\n\t\tdata-dojo-attach-event\x3d"ondijitclick:__onClick" data-dojo-attach-point\x3d"_buttonNode"\r\n\t\t\x3e\x3cspan class\x3d"dijitReset dijitStretch dijitButtonContents"\r\n\t\t\tdata-dojo-attach-point\x3d"focusNode,titleNode,_arrowWrapperNode,_popupStateNode"\r\n\t\t\trole\x3d"button" aria-haspopup\x3d"true" aria-labelledby\x3d"${id}_label"\r\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitIcon"\r\n\t\t\t\tdata-dojo-attach-point\x3d"iconNode"\r\n\t\t\t\x3e\x3c/span\r\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonText"\r\n\t\t\t\tdata-dojo-attach-point\x3d"containerNode"\r\n\t\t\t\tid\x3d"${id}_label"\r\n\t\t\t\x3e\x3c/span\r\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitArrowButtonInner"\x3e\x3c/span\r\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitArrowButtonChar"\x3e\x26#9660;\x3c/span\r\n\t\t\x3e\x3c/span\r\n\t\x3e\x3c/span\r\n\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" class\x3d"dijitOffScreen" tabIndex\x3d"-1"\r\n\t\tdata-dojo-attach-event\x3d"onclick:_onClick" data-dojo-attach-point\x3d"valueNode" aria-hidden\x3d"true"\r\n/\x3e\x3c/span\x3e\r\n',
"url:dijit/form/templates/ComboButton.html":'\x3ctable class\x3d"dijit dijitReset dijitInline dijitLeft"\r\n\tcellspacing\x3d\'0\' cellpadding\x3d\'0\' role\x3d"presentation"\r\n\t\x3e\x3ctbody role\x3d"presentation"\x3e\x3ctr role\x3d"presentation"\r\n\t\t\x3e\x3ctd class\x3d"dijitReset dijitStretch dijitButtonNode" data-dojo-attach-point\x3d"buttonNode" data-dojo-attach-event\x3d"ondijitclick:__onClick,onkeydown:_onButtonKeyDown"\r\n\t\t\x3e\x3cdiv id\x3d"${id}_button" class\x3d"dijitReset dijitButtonContents"\r\n\t\t\tdata-dojo-attach-point\x3d"titleNode"\r\n\t\t\trole\x3d"button" aria-labelledby\x3d"${id}_label"\r\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitInline dijitIcon" data-dojo-attach-point\x3d"iconNode" role\x3d"presentation"\x3e\x3c/div\r\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitInline dijitButtonText" id\x3d"${id}_label" data-dojo-attach-point\x3d"containerNode" role\x3d"presentation"\x3e\x3c/div\r\n\t\t\x3e\x3c/div\r\n\t\t\x3e\x3c/td\r\n\t\t\x3e\x3ctd id\x3d"${id}_arrow" class\x3d\'dijitReset dijitRight dijitButtonNode dijitArrowButton\'\r\n\t\t\tdata-dojo-attach-point\x3d"_popupStateNode,focusNode,_buttonNode"\r\n\t\t\tdata-dojo-attach-event\x3d"onkeydown:_onArrowKeyDown"\r\n\t\t\ttitle\x3d"${optionsTitle}"\r\n\t\t\trole\x3d"button" aria-haspopup\x3d"true"\r\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitArrowButtonInner" role\x3d"presentation"\x3e\x3c/div\r\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitArrowButtonChar" role\x3d"presentation"\x3e\x26#9660;\x3c/div\r\n\t\t\x3e\x3c/td\r\n\t\t\x3e\x3ctd style\x3d"display:none !important;"\r\n\t\t\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" data-dojo-attach-point\x3d"valueNode"\r\n\t\t\t\tclass\x3d"dijitOffScreen" aria-hidden\x3d"true" data-dojo-attach-event\x3d"onclick:_onClick"\r\n\t\t/\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/tbody\r\n\x3e\x3c/table\x3e\r\n',
"url:dijit/templates/TooltipDialog.html":'\x3cdiv role\x3d"alertdialog" tabIndex\x3d"-1"\x3e\r\n\t\x3cdiv class\x3d"dijitTooltipContainer" role\x3d"presentation"\x3e\r\n\t\t\x3cdiv data-dojo-attach-point\x3d"contentsNode" class\x3d"dijitTooltipContents dijitTooltipFocusNode"\x3e\r\n\t\t\t\x3cdiv data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\r\n\t\t\t${!actionBarTemplate}\r\n\t\t\x3c/div\x3e\r\n\t\x3c/div\x3e\r\n\t\x3cdiv class\x3d"dijitTooltipConnector" role\x3d"presentation" data-dojo-attach-point\x3d"connectorNode"\x3e\x3c/div\x3e\r\n\x3c/div\x3e\r\n',
"url:esri/core/request/iframe.html":'\x3c!DOCTYPE html\x3e\r\n\x3chtml\x3e\r\n\x3chead\x3e\r\n  \x3cmeta http-equiv\x3d"Content-Security-Policy" content\x3d"default-src \'none\'; script-src * \'unsafe-inline\'"\x3e\r\n\r\n  \x3cscript\x3e\r\n    var dojoConfig \x3d {\r\n      async: true,\r\n      baseUrl: "../../../dojo/",\r\n      has: {\r\n        "csp-restrictions": true,\r\n        "dojo-preload-i18n-Api": false\r\n      }\r\n    };\r\n  \x3c/script\x3e\r\n  \x3c!--\r\n  This src is relative to this page and assumes dojo is a sibling to esri.\r\n  It is updated when this file is set as the iframe\'s `srcdoc` value.\r\n  --\x3e\r\n  \x3cscript src\x3d"../../../dojo/dojo.js"\x3e\x3c/script\x3e\r\n\r\n  \x3cscript\x3e\r\n    function windowMessageHandler(event) {\r\n      window.removeEventListener("message", windowMessageHandler);\r\n\r\n      var port \x3d event.ports[0];\r\n\r\n      require([\r\n        "dojo/request/script"\r\n      ], function(script) {\r\n        port.postMessage("ready");\r\n\r\n        port.addEventListener("message", function(event) {\r\n          var data \x3d event.data;\r\n          script.get(data.url, data.options)\r\n              .then(function(response) {\r\n                port.postMessage({\r\n                  id: data.id,\r\n                  response: response\r\n                });\r\n              })\r\n              .otherwise(function(error) {\r\n                port.postMessage({\r\n                  id: data.id,\r\n                  isError: true,\r\n                  message: error.message\r\n                });\r\n              });\r\n        });\r\n        port.start();\r\n      });\r\n    }\r\n\r\n    window.addEventListener("message", windowMessageHandler);\r\n  \x3c/script\x3e\r\n\x3c/head\x3e\r\n\x3cbody\x3e\r\n\x3c/body\x3e\r\n\x3c/html\x3e\r\n',
"url:dijit/templates/Dialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"${id}_title"\x3e\r\n\t\x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\r\n\t\t\x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" id\x3d"${id}_title"\r\n\t\t\t\trole\x3d"heading" level\x3d"1"\x3e\x3c/span\x3e\r\n\t\t\x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon" data-dojo-attach-event\x3d"ondijitclick: onCancel" title\x3d"${buttonCancel}" role\x3d"button" tabindex\x3d"-1"\x3e\r\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"${buttonCancel}"\x3ex\x3c/span\x3e\r\n\t\t\x3c/span\x3e\r\n\t\x3c/div\x3e\r\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\x3c/div\x3e\r\n\t${!actionBarTemplate}\r\n\x3c/div\x3e\r\n\r\n',
"url:dijit/form/templates/TextBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft" id\x3d"widget_${id}" role\x3d"presentation"\r\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\r\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputInner" data-dojo-attach-point\x3d\'textbox,focusNode\' autocomplete\x3d"off"\r\n\t\t\t${!nameAttrSetting} type\x3d\'${type}\'\r\n\t/\x3e\x3c/div\r\n\x3e\x3c/div\x3e\r\n',"url:dijit/templates/Tooltip.html":'\x3cdiv class\x3d"dijitTooltip dijitTooltipLeft" id\x3d"dojoTooltip" data-dojo-attach-event\x3d"mouseenter:onMouseEnter,mouseleave:onMouseLeave"\r\n\t\x3e\x3cdiv class\x3d"dijitTooltipConnector" data-dojo-attach-point\x3d"connectorNode"\x3e\x3c/div\r\n\t\x3e\x3cdiv class\x3d"dijitTooltipContainer dijitTooltipContents" data-dojo-attach-point\x3d"containerNode" role\x3d\'alert\'\x3e\x3c/div\r\n\x3e\x3c/div\x3e\r\n',
"url:dijit/form/templates/ValidationTextBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft"\r\n\tid\x3d"widget_${id}" role\x3d"presentation"\r\n\t\x3e\x3cdiv class\x3d\'dijitReset dijitValidationContainer\'\r\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value\x3d"\x26#935; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\r\n\t/\x3e\x3c/div\r\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\r\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputInner" data-dojo-attach-point\x3d\'textbox,focusNode\' autocomplete\x3d"off"\r\n\t\t\t${!nameAttrSetting} type\x3d\'${type}\'\r\n\t/\x3e\x3c/div\r\n\x3e\x3c/div\x3e\r\n',
"*now":function(E){E(['dojo/i18n!*preload*esri/nls/jsapi*["ar","bg","bs","ca","cs","da","de","de-ch","el","en-au","en-ca","en-gb","en-us","es","es-mx","et","fi","fr","fr-ch","he","hr","hu","id","it","it-ch","ja","ko","lt","lv","nl","nb","pl","pt","pt-br","pt-pt","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-cn","zh-hk","zh-tw","ROOT"]'])},"*noref":1}});
define("esri/jsapi","dojo/fx/Toggler dojo/_base/html dijit/_base dijit/form/DropDownButton dijit/form/ComboButton dijit/form/ToggleButton dijit/_base/manager dijit/TooltipDialog ./main ./map ./geometry ./symbol ./renderer ./utils ./IdentityManager ./layers/graphics ./layers/agstiled ./layers/agsdynamic ./layers/FeatureLayer ./dijit/PopupTemplate ./dijit/PopupRenderer ./dijit/Attribution ./arcgis/utils ./tasks/query ./tasks/QueryTask ./tasks/RelationshipQuery ./tasks/StatisticDefinition".split(" "),function(){return{}});