// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/3.45/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,y){var q,w=function(){return"undefined"!==typeof u&&"function"!==typeof u?u:"undefined"!==typeof window?window:"undefined"!==typeof self?self:this}(),t=function(){},m=function(g){for(var F in g)return 0;return 1},p={}.toString,r=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,F){if(g)for(var N=0;N<g.length;)F(g[N++])},f=function(g,F){for(var N in F)g[N]=F[N];return g},e=function(g,
F){return f(Error(g),{src:"dojoLoader",info:F})},k=1,l=function(){return"_"+k++},d=function(g,F,N){return sa(g,F,N,0,d)},u=w,x=u.document,n=x&&x.createElement("DiV"),v=d.has=function(g){return r(D[g])?D[g]=D[g](u,x,n):D[g]},D=v.cache=y.hasCache;r(b)&&(b=b(w));v.add=function(g,F,N,O){(void 0===D[g]||O)&&(D[g]=F);return N&&v(g)};v.add("host-webworker","undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);v("host-webworker")&&(f(y.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}),y.loaderPatch={injectUrl:function(g,F){try{importScripts(g),F()}catch(N){console.info("failed to load resource ("+g+")"),console.error(N)}}});for(var Q in b.has)v.add(Q,b.has[Q],0,1);var z=0,A=[],I=0,C=t,H=t;d.isXdUrl=t;d.initSyncLoader=function(g,F,N){I||(I=g,C=F,H=N);return{sync:"sync",requested:1,arrived:2,nonmodule:3,executing:4,executed:5,syncExecStack:A,modules:oa,execQ:ja,getModule:Ca,injectModule:Sa,setArrived:za,
signal:U,finishExec:La,execModule:Ma,dojoRequirePlugin:I,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",!x.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 W=R[q++];new ActiveXObject(W);break}catch(g){}J=function(){return new ActiveXObject(W)}}d.getXhr=J;v.add("dojo-gettext-api",1);d.getText=function(g,F,N){var O=J();O.open("GET",Ta(g),!1);O.send(null);if(200==O.status||!location.host&&!O.status)N&&N(O.responseText,F);else throw e("xhrFailed",O.status);return O.responseText};var Y=v("csp-restrictions")?function(){}:new Function("return eval(arguments[0]);");d.eval=
function(g,F){return Y(g+"\r\n//# sourceURL\x3d"+F)};var S={},U=d.signal=function(g,F){g=S[g];a(g&&g.slice(0),function(N){N.apply(null,c(F)?F:[F])})},L=d.on=function(g,F){var N=S[g]||(S[g]=[]);N.push(F);return{remove:function(){for(var O=0;O<N.length;O++)if(N[O]===F){N.splice(O,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,F){F=!1!==F;var N,O;for(N in ra){var V=ra[N];if(O=N.match(/^url:(.+)/))na["url:"+jb(O[1],g)]=
V;else if("*now"==N)var X=V;else"*noref"!=N&&(O=Oa(N,g,!0),na[O.mid]=na["url:"+O.url]=V)}X&&X(Fa(g));F&&(ra={})};var E=function(g){return g.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(F){return"\\"+F})},G=function(g,F){F.splice(0,F.length);for(var N in g)F.push([N,g[N],new RegExp("^"+E(N)+"(/|$)"),N.length]);F.sort(function(O,V){return V[3]-O[3]});return F},M=function(g,F){a(g,function(N){F.push([h(N[0])?new RegExp("^"+E(N[0])+"$"):N[0],N[1]])})},P=function(g){var F=g.name;F||(F=g,g={name:F});
g=f({main:"main"},g);g.location=g.location?g.location:F;g.packageMap&&(qa[F]=g.packageMap);g.main.indexOf("./")||(g.main=g.main.substring(2));ca[F]=g},aa=[],ba=function(g,F,N){for(var O in g){"waitSeconds"==O&&(d.waitms=1E3*(g[O]||0));"cacheBust"==O&&(va=g[O]?h(g[O])?g[O]:(new Date).getTime()+"":"");if("baseUrl"==O||"combo"==O)d[O]=g[O];if("async"==O){var V=g[O];d.legacyMode=z=h(V)&&/sync|legacyAsync/.test(V)?V:V?!1:"sync";d.async=!z}g[O]!==D&&(d.rawConfig[O]=g[O],"has"!=O&&v.add("config-"+O,g[O],
0,F))}d.baseUrl||(d.baseUrl="./");/\/$/.test(d.baseUrl)||(d.baseUrl+="/");for(O in g.has)v.add(O,g.has[O],0,F);a(g.packages,P);for(var X in g.packagePaths)a(g.packagePaths[X],function(ka){var Aa=X+"/"+ka;h(ka)&&(ka={name:ka});ka.location=Aa;P(ka)});G(f(qa,g.map),ta);a(ta,function(ka){ka[1]=G(ka[1],[]);"*"==ka[0]&&(ta.star=ka)});G(f(da,g.paths),ha);M(g.aliases,T);if(!v("foreign-loader")){if(F)aa.push({config:g.config});else for(O in g.config)F=Ca(O,N),F.config=f(F.config||{},g.config[O]);g.cache&&
(ya(),ra=g.cache,ya(0,!!g.cache["*noref"]))}U("config",[g,d.rawConfig])};v("dojo-cdn");var la=x.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]||"",y.baseUrl=y.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(y,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,F,N,O,V){var X;if(h(g)){if((X=Ca(g,O,!0))&&X.executed)return X.result;throw e("undefinedModule",g);}c(g)||(ba(g,0,O),g=F,F=N);if(c(g))if(g.length){N="require*"+l();for(var ka,Aa=[],Da=0;Da<g.length;)ka=g[Da++],Aa.push(Ca(ka,O));X=f(Ua("",N,0,""),{injected:2,deps:Aa,def:F||t,require:O?O.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 F&&F();return V},Fa=function(g){if(!g)return d;var F=g.require;F||(F=function(N,O,V){return sa(N,O,V,g,F)},g.require=f(F,d),F.module=g,F.toUrl=function(N){return jb(N,g)},F.toAbsMid=function(N){return bb(N,g)},v("dojo-undef-api")&&(F.undef=function(N){d.undef(N,g)}),F.syncLoadNls=function(N){N=Oa(N,g);var O=oa[N.mid];if(!O||!O.executed)if(Ea=na[N.mid]||na["url:"+N.url])Va(Ea),O=oa[N.mid];return O&&O.executed&&O.result});return F},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,F){if(F)for(var N=0;N<F.length;N++)if(F[N][2].test(g))return F[N];return 0},lb=function(g){var F=[];for(g=g.replace(/\\/g,"/").split("/");g.length;){var N=g.shift();if(".."==N&&F.length&&".."!=O){F.pop();var O=F[F.length-1]}else"."!=N&&F.push(O=N)}return F.join("/")},
Ua=function(g,F,N,O){var V=d.isXdUrl(O);return{pid:g,mid:F,pack:N,url:O,executed:0,def:0,isXd:V,isAmd:!!(V||ca[g]&&ca[g].isAmd)}},ob=function(g,F,N,O,V,X,ka,Aa,Da,ab){var Ka,mb,Ba;var cb=/^\./.test(g);if(/(^\/)|(:)|(\.js$)/.test(g)||cb&&!F)return Ua(0,g,0,g);g=lb(cb?F.mid+"/../"+g:g);if(/^\./.test(g))throw e("irrationalPath",g);ab||cb||!X.star||(Ba=Ja(g,X.star[1]));!Ba&&F&&(Ba=(Ba=Ja(F.mid,X))&&Ja(g,Ba[1]));Ba&&(g=Ba[1]+g.substring(Ba[3]));F=(ma=g.match(/^([^\/]+)(\/(.+))?$/))?ma[1]:"";(Ka=N[F])?
g=F+"/"+(mb=ma[3]||Ka.main):F="";var db=0;a(Aa,function(Qa){var nb=g.match(Qa[0]);nb&&0<nb.length&&(db=r(Qa[1])?g.replace(Qa[0],Qa[1]):Qa[1])});if(db)return ob(db,0,N,O,V,X,ka,Aa,Da);if(N=O[g])return Da?Ua(N.pid,N.mid,N.pack,N.url):O[g];O=(Ba=Ja(g,ka))?Ba[1]+g.substring(Ba[3]):F?("/"===Ka.location.slice(-1)?Ka.location.slice(0,-1):Ka.location)+"/"+mb:v("config-tlmSiblingOfDojo")?"../"+g:g;/(^\/)|(:)/.test(O)||(O=V+O);return Ua(F,g,Ka,lb(O+".js"))},Oa=function(g,F,N){return ob(g,F,ca,oa,d.baseUrl,
ta,ha,T,void 0,N)};if(!v("foreign-loader"))var pb=function(g,F,N){return g.normalize?g.normalize(F,function(O){return bb(O,N)}):bb(F,N)},qb=0,Ca=function(g,F,N){var O;if(O=g.match(/^(.+?)!(.*)$/)){var V=Ca(O[1],F,N);"sync"!=z||V.executed||(Sa(V),2!==V.injected||V.executed||Na(function(){Ma(V)}),V.executed?Xa(V):ja.unshift(V));5!==V.executed||V.load||Xa(V);V.load?(O=pb(V,O[2],F),g=V.mid+"!"+(V.dynamic?++qb+"!":"")+O):(O=O[2],g=V.mid+"!"+ ++qb+"!waitingForPlugin");g={plugin:V,mid:g,req:Fa(F),prid:O}}else g=
Oa(g,F);return oa[g.mid]||!N&&(oa[g.mid]=g)};var bb=d.toAbsMid=function(g,F){return Oa(g,F).mid},jb=d.toUrl=function(g,F){F=Oa(g+"/x",F);var N=F.url;return Ta(0===F.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 F=g.result;g.dynamic=F.dynamic;g.normalize=F.normalize;g.load=F.load;return g},zb=function(g){var F={};a(g.loadQ,
function(V){var X=pb(g,V.prid,V.req.module),ka=g.dynamic?V.mid.replace(/waitingForPlugin$/,X):g.mid+"!"+X;X=f(f({},V),{mid:ka,prid:X,injected:0});oa[ka]&&oa[ka].injected||sb(oa[ka]=X);F[V.mid]=oa[ka];za(V);delete oa[V.mid]});g.loadQ=0;var N=function(V){for(var X=V.deps||[],ka=0;ka<X.length;ka++)(V=F[X[ka].mid])&&(X[ka]=V)},O;for(O in oa)N(oa[O]);a(ja,N)},La=function(g){d.trace("loader-finish-exec",[g.mid]);g.executed=5;g.defOrder=fb++;a(g.provides,function(F){F()});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,F){if(4===g.executed)return d.trace("loader-circular-dependency",[Ab.concat(g.mid).join("-\x3e")]),!g.def||F?Ya:g.cjs&&g.cjs.exports;if(!g.executed){if(!g.def)return Ya;var N=g.mid,O=g.deps||[],V,X=[],ka=0;for(g.executed=4;V=O[ka++];){V=V===wb?Fa(g):V===xb?g.cjs.exports:V===yb?g.cjs:Ma(V,F);if(V===Ya)return g.executed=0,d.trace("loader-exec-module",["abort",N]),Ya;X.push(V)}d.trace("loader-run-factory",
[g.mid]);F=g.def;A.unshift(g);if(v("config-dojo-loader-catches"))try{var Aa=r(F)?F.apply(null,X):F}catch(Da){U("error",g.result=e("factoryThrew",[g,Da]))}else Aa=r(F)?F.apply(null,X):F;g.result=void 0===Aa&&g.cjs?g.cjs.exports:Aa;A.shift(g);La(g)}return g.result},Pa=0,Na=function(g){try{Pa++,g()}catch(F){throw F;}finally{Pa--}Ia()&&U("idle",[])},Ga=function(){Pa||Na(function(){C();for(var g,F,N=0;N<ja.length;)g=fb,F=ja[N],Ma(F),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,F){g=Ca(g,F);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 F=g.plugin;5!==F.executed||F.load||Xa(F);var N=function(O){g.result=O;za(g);La(g);Ga()};F.load?F.load(g.prid,g.req,N):F.loadQ?F.loadQ.push(g):(F.loadQ=[g],ja.unshift(F),Sa(F))},Ea=0,Ra=0,gb=0,Va=function(g,F){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")?F.url:F.mid)}catch(N){U("error",e("evalModuleThrew",F))}else g===Ea?Ea.call(null):d.eval(g,v("dojo-loader-eval-hint-url")?F.url:F.mid);gb=0},Sa=function(g){var F=g.mid,N=g.url;if(!(g.executed||g.injected||fa[F]||g.url&&(g.pack&&fa[g.url]===g.pack||1==fa[g.url])))if(xa(g),g.plugin)sb(g);else{var O=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?!A.length&&Ga():Ga()};if(Ea=na[F]||na["url:"+g.url])d.trace("loader-inject",["cache",g.mid,N]),Va(Ea,g),O();else{if(z)if(g.isXd)"sync"==z&&(z="xd");else if(!g.isAmd||"sync"==z){var V=function(X){if("sync"==z){A.unshift(g);Va(X,g);A.shift();tb(g);g.cjs||(za(g),La(g));if(g.finish){X=F+"*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))}O()}else(X=H(g,X))?(Va(X,g),O()):(Ra=g,d.injectUrl(Ta(N),O,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,V)}catch(X){U("error",e("xhrInjectFailed",[g,X]))}else d.getText(N,"sync"!=z,V);return}d.trace("loader-inject",["script",g.mid,N]);Ra=g;d.injectUrl(Ta(N),O,g);Ra=0}}},hb=function(g,F,N){d.trace("loader-define-module",[g.mid,F]);var O=g.mid;if(2===g.injected)return U("error",e("multipleDefine",g)),g;f(g,
{deps:F,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 V=0;F[V];V++)F[V]=Ca(F[V],g);z&&!fa[O]&&(ua(g),ja.push(g),Ga());za(g);r(N)||F.length||(g.result=N,La(g));return g},tb=function(g,F){for(var N=[],O,V;Ha.length;)V=Ha.shift(),F&&(V[0]=F.shift()),O=V[0]&&Ca(V[0])||g,N.push([O,V[1],V[2]]);ya(g);a(N,function(X){ua(hb.apply(null,X))})},$a=0,Wa=t,kb=t;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",x.attachEvent&&"undefined"===typeof Windows&&("undefined"===typeof opera||"[object Opera]"!=opera.toString()));var ib=function(g,F,N,O){if(v("ie-event-behavior"))return g.attachEvent(N,O),function(){g.detachEvent(N,O)};g.addEventListener(F,O,!1);return function(){g.removeEventListener(F,O,!1)}},Bb=ib(window,"load","onload",function(){d.pageLoaded=1;try{"complete"!=x.readyState&&(x.readyState="complete")}catch(g){}Bb()});
la=x.getElementsByTagName("script");for(q=0;!wa;)/^dojo/.test((Z=la[q++])&&Z.type)||(wa=Z);d.injectUrl=function(g,F,N){N=N.node=x.createElement("script");var O=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))O(),V(),F&&F()}),V=ib(N,"error","onerror",function(X){O();V();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(F){}};d.trace=t;if(v("foreign-loader"))Za=t;else{var Za=function(g,F,N){var O=arguments.length,V=["require","exports","module"],X=[0,g,F];1==O?X=[0,r(g)?V:[],g]:2==O&&h(g)?X=[g,r(F)?V:[],F]:3==O&&(X=[g,F,N]);d.trace("loader-define",X.slice(0,2));if((O=X[0]&&Ca(X[0]))&&!fa[O.mid])ua(hb(O,X[1],X[2]));else if(!v("ie-event-behavior")||gb)Ha.push(X);else{O=O||Ra;if(!O)for(g in fa)if((V=oa[g])&&V.node&&"interactive"===
V.node.readyState){O=V;break}O?(ya(O),ua(hb(O,X[1],X[2]))):U("error",e("ieDefineFailed",X[0]));Ga()}};Za.amd={vendor:"dojotoolkit.org"}}f(f(d,y.loaderPatch),b.loaderPatch);L("error",function(g){try{if(console.error(g),g instanceof Error){for(var F in g)console.log(F+":",g[F]);console.log(".")}}catch(N){}});f(d,{uid:l,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||y.deps,vb=
ia.callback||b.callback||y.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.45compact/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(y){return y},load:b.loadInit}})},"dojo/_base/loader":function(){define("./kernel ../has require module ../json ./lang ./array".split(" "),function(b,y,q,w,t,m,p){var r=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)})})},k=/\/\/.*|\/\*[\s\S]*?\*\/|("(?:\\.|[^"])*"|'(?:\\.|[^'])*'|`(?:\\.|[^`])*`)/mg,l=/(^|\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(k,
"$1");ca=l.exec(T);){var qa=l.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]);l.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},x=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:"+t.stringify(ha)+",\n\tdef:function("+ha.join(",")+"){"+da[1]+"}});\n\ndefine("+t.stringify(ha.concat(["dojo/loadInit!"+T]))+", function("+ha.join(",")+"){\n"+da[0]+"});"}),n=x.sync,v=x.requested,D=x.arrived,Q=x.nonmodule,z=x.executing,A=x.executed,
I=x.syncExecStack,C=x.modules,H=x.execQ,B=x.getModule,K=x.injectModule,J=x.setArrived,R=x.signal,W=x.finishExec,Y=x.execModule,S=x.getLegacyMode,U=x.guardCheckComplete;f=x.dojoRequirePlugin;b.provide=function(L){var T=I[0],da=m.mixin(B(r(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!==A&&W(da)});return da.result};y.add("config-publishRequireResult",1,0,0);b.require=function(L,T){T=
function(da,ha){var ca=B(r(da),q.module);if(I.length&&I[0].finish)I[0].finish.push(da);else{if(ca.executed)return ca.result;ha&&(ca.result=Q);ha=S();K(ca);ha=S();ca.executed!==A&&ca.injected===D&&x.guardCheckComplete(function(){Y(ca)});if(ca.executed)return ca.result;ha==n?ca.cjs?H.unshift(ca):I.length&&(I[0].finish=[da]):H.push(ca)}}(L,T);y("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=r(ia);ia=B(ia,oa);ia!==oa&&J(ia)},require:function(ia,wa){ia=r(ia);wa&&(B(ia,oa).result=Q);va.push(ia)},requireLocalization:function(ia,wa,ya){na||(na=["dojo/i18n"]);ya=(ya||b.locale).toLowerCase();ia=r(ia)+"/nls/"+(/root/i.test(ya)?"":ya+"/")+r(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:w.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,y,q,w,t){var m,p={},r={},h={config:q,global:b,dijit:p,dojox:r};p={dojo:["dojo",h],dijit:["dijit",p],dojox:["dojox",r]};t=w.map&&w.map[t.id.match(/[^\/]+/)[0]];for(m in t)p[m]?p[m][0]=t[m]:p[m]=[t[m],
{}];for(m in p)t=p[m],t[1]._scopeName=t[0],q.noGlobals||(b[t[0]]=t[1]);h.scopeMap=p;h.baseUrl=h.config.baseUrl=w.baseUrl;h.isAsync=w.async;h.locale=q.locale;b="$Rev:$".match(/[0-9a-f]{7,}/);h.version={major:1,minor:17,patch:3,flag:"",revision:b?b[0]:NaN,toString:function(){var a=h.version;return a.major+"."+a.minor+"."+a.patch+a.flag+" ("+a.revision+")"}};y("csp-restrictions")||Function("d","d.eval \x3d function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(h);h.exit=
function(){};y("host-webworker");y.add("console-as-object",function(){return Function.prototype.bind&&console&&"object"===typeof console.log});"undefined"!=typeof console||(console={});t="assert count debug dir dirxml error group groupEnd info profile profileEnd time timeEnd trace warn log".split(" ");var c;for(b=0;c=t[b++];)console[c]?y("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}();y.add("dojo-debug-messages",!!q.isDebug);h.deprecated=h.experimental=function(){};y("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");
y={};for(m in q.modulePaths)y[m.replace(/\./g,"/")]=q.modulePaths[m];w({paths:y})}h.moduleUrl=function(a,f){h.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var e=null;a&&(e=w.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,y,q){var w=y.has||function(){};if(!w("dojo-has-api")){var t="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location==location&&window.document==document&&document,m=t&&t.createElement("DiV"),p=q.config&&q.config()||{};w=function(r){return"function"==typeof p[r]?p[r]=p[r](b,t,m):p[r]};w.cache=p;w.add=function(r,h,c,a){("undefined"==typeof p[r]||a)&&(p[r]=h);return c&&w(r)}}w.add("dom-addeventlistener",!!document.addEventListener);
w.add("touch","ontouchstart"in document||"onpointerdown"in document&&0<navigator.maxTouchPoints||window.navigator.msMaxTouchPoints);w.add("touch-events","ontouchstart"in document);w.add("pointer-events","pointerEnabled"in window.navigator?window.navigator.pointerEnabled:"PointerEvent"in window);w.add("MSPointer",window.navigator.msPointerEnabled);w.add("touch-action",w("touch")&&w("pointer-events"));w.add("device-width",screen.availWidth||innerWidth);y=document.createElement("form");w.add("dom-attributes-explicit",
0==y.attributes.length);w.add("dom-attributes-specified-flag",0<y.attributes.length&&40>y.attributes.length);w.clearElement=function(r){r.innerHTML="";return r};w.normalize=function(r,h){var c=r.match(/[\?:]|[^:\?]*/g),a=0,f=function(e){var k=c[a++];if(":"==k)return 0;if("?"==c[a++]){if(!e&&w(k))return f();f(!0);return f(e)}return k||0};return(r=f())&&h(r)};w.load=function(r,h,c){r?h([r],c):c()};return w})},"dojo/_base/config":function(){define(["../global","../has","require"],function(b,y,q){b={};
q=q.rawConfig;for(var w in q)b[w]=q[w];!b.locale&&"undefined"!=typeof navigator&&(w=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language||navigator.userLanguage)&&(b.locale=w.toLowerCase());return b})},"dojo/json":function(){define(["./has"],function(b){var y="undefined"!=typeof JSON;b.add("json-parse",y);b.add("json-stringify",y&&'{"a":1}'==JSON.stringify({a:0},function(w,t){return t||1}));if(b("json-stringify"))return JSON;var q=function(w){return('"'+w.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(w,t){if(t&&!/^([\s\[\{]*(?:"(?:\\.|[^"])*"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(w))throw new SyntaxError("Invalid characters in JSON");return eval("("+w+")")},stringify:function(w,t,m){function p(h,c,a){t&&(h=t(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 r;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(x,n,v){x=h["getUTC"+n]()+(v?1:0);return 10>x?"0"+x:x});if(h.valueOf()!==h)return p(h.valueOf(),c,a);var e=m?c+m:"",k=m?" ":"",l=m?"\n":"";if(h instanceof Array){k=h.length;var d=[];for(a=0;a<k;a++)f=p(h[a],e,
a),"string"!=typeof f&&(f="null"),d.push(l+e+f);return"["+d.join(",")+l+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(l+e+u+":"+k+f)}return"{"+d.join(",")+l+c+"}"}var r;"string"==typeof t&&(m=t,t=null);return p(w,"","")}}})},"dojo/_base/lang":function(){define(["./kernel","../has","../sniff"],function(b,y){y.add("bug-for-in-skips-shadowed",function(){for(var c in{toString:1})return 0;
return 1});var q=y("bug-for-in-skips-shadowed")?"hasOwnProperty valueOf isPrototypeOf propertyIsEnumerable toLocaleString toString constructor".split(" "):[],w=q.length,t=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 k=c[e];if("__proto__"===k||"constructor"===k)return;if(!(k in f))if(a)f[k]={};else return;f=f[k]}return f}catch(l){}},m=Object.prototype.toString,p=function(c,a,f){return(f||[]).concat(Array.prototype.slice.call(c,
a||0))},r=/\{([^\}]+)\}/g,h={_extraNames:q,_mixin:function(c,a,f){var e,k={};for(d in a){var l=a[d];d in c&&(c[d]===l||d in k&&k[d]===l)||(c[d]=f?f(l):l)}if(y("bug-for-in-skips-shadowed")&&a)for(e=0;e<w;++e){var d=q[e];l=a[d];d in c&&(c[d]===l||d in k&&k[d]===l)||(c[d]=f?f(l):l)}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=t(e,!0,f))&&c?f[c]=a:void 0},getObject:function(c,
a,f){return c?t(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 k=h._toArray(arguments),l=e?(c||b.global)[a]:a;return l&&l.apply(c||this,f.concat(k))}},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:y("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||r,h.isFunction(a)?a:function(e,k){return h.getObject(k,!1,a)})}};h.mixin(b,h);return h})},"dojo/sniff":function(){define(["./has"],function(b){var y=navigator,q=y.userAgent;y=y.appVersion;var w=parseFloat(y);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<=y.indexOf("Konqueror")?w: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<=y.indexOf("Safari"))||b("wp")||b("chrome")||b("android")||b("edge")||b("opr")?void 0:parseFloat(y.split("Version/")[1]));
b.add("mac",0<=y.indexOf("Macintosh"));b.add("quirks","BackCompat"==document.compatMode);if(!b("wp")&&q.match(/(iPhone|iPod|iPad)/)){var t=RegExp.$1.replace(/P/,"p"),m=q.match(/OS ([\d_]+)/)?RegExp.$1:"1";m=parseFloat(m.replace(/_/,".").replace(/_/g,""));b.add(t,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(y.split("Trident/")[1])||void 0);b.add("svg","undefined"!==typeof SVGAngle);b("webkit")||
(0<=q.indexOf("Opera")&&b.add("opera",9.8<=w?parseFloat(q.split("Version/")[1])||w:w),!(0<=q.indexOf("Gecko"))||b("wp")||b("khtml")||b("trident")||b("edge")||b.add("mozilla",w),b("mozilla")&&b.add("ff",parseFloat(q.split("Firefox/")[1]||q.split("Minefield/")[1])||void 0),document.all&&!b("opera")&&(q=parseFloat(y.split("MSIE ")[1])||void 0,(y=document.documentMode)&&5!=y&&Math.floor(q)!=y&&(q=y),b.add("ie",q)),b.add("wii","undefined"!=typeof opera&&opera.wiiremote));return b})},"dojo/_base/array":function(){define(["./kernel",
"../has","./lang"],function(b,y,q){function w(c){var a=!c;return function(f,e,k){var l=0,d=f&&f.length||0;d&&"string"==typeof f&&(f=f.split(""));if("string"==typeof e){if(y("csp-restrictions"))throw new TypeError("callback must be a function");e=m[e]||r(e)}if(k)for(;l<d;++l){var u=!e.call(k,f[l],l,f);if(c^u)return!u}else for(;l<d;++l)if(u=!e(f[l],l,f),c^u)return!u;return a}}function t(c){var a=1,f=0,e=0;c||(a=f=e=-1);return function(k,l,d,u){if(u&&0<a)return h.lastIndexOf(k,l,d);u=k&&k.length||0;
var x=c?u+e:f;d===p?d=c?f:u+e:0>d?(d=u+d,0>d&&(d=f)):d=d>=u?u+e:d;for(u&&"string"==typeof k&&(k=k.split(""));d!=x;d+=a)if(k[d]==l)return d;return-1}}var m={},p,r;y("csp-restrictions")||(r=function(c){return m[c]=new Function("item","index","array",c)});var h={every:w(!1),some:w(!0),indexOf:t(!0),lastIndexOf:t(!1),forEach:function(c,a,f){var e=0,k=c&&c.length||0;k&&"string"==typeof c&&(c=c.split(""));if("string"==typeof a){if(y("csp-restrictions"))throw new TypeError("callback must be a function");
a=m[a]||r(a)}if(f)for(;e<k;++e)a.call(f,c[e],e,c);else for(;e<k;++e)a(c[e],e,c)},map:function(c,a,f,e){var k=0,l=c&&c.length||0;e=new (e||Array)(l);l&&"string"==typeof c&&(c=c.split(""));if("string"==typeof a){if(y("csp-restrictions"))throw new TypeError("callback must be a function");a=m[a]||r(a)}if(f)for(;k<l;++k)e[k]=a.call(f,c[k],k,c);else for(;k<l;++k)e[k]=a(c[k],k,c);return e},filter:function(c,a,f){var e=0,k=c&&c.length||0,l=[];k&&"string"==typeof c&&(c=c.split(""));if("string"==typeof a){if(y("csp-restrictions"))throw new TypeError("callback must be a function");
a=m[a]||r(a)}if(f)for(;e<k;++e){var d=c[e];a.call(f,d,e,c)&&l.push(d)}else for(;e<k;++e)d=c[e],a(d,e,c)&&l.push(d);return l},clearCache:function(){m={}}};q.mixin(b,h);return h})},"dojo/require":function(){define(["./_base/loader"],function(b){return{dynamic:0,normalize:function(y){return y},load:b.require}})},"dojo/text":function(){define(["./_base/kernel","require","./has","./request"],function(b,y,q,w){var t=function(c,a,f){w(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},r={},h={};b.cache=function(c,a,f){if("string"==typeof c)if(/\//.test(c)){var e=c;f=a}else e=y.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||t(e,!0,function(k){m[e]=k});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,k=c[0],l=a.toUrl(c[0]);c="url:"+l;var d=r,u=function(n){f(e?p(n):n)};k in m?d=m[k]:a.cache&&c in a.cache?d=a.cache[c]:l in m&&(d=m[l]);if(d===r)if(h[l])h[l].push(u);else{var x=h[l]=[u];t(l,!a.async,function(n){m[k]=m[l]=n;for(var v=0;v<x.length;)x[v++](n);delete h[l]})}else u(d)}}})},"dojo/request":function(){define(["./request/default!"],
function(b){return b})},"dojo/request/default":function(){define(["exports","require","../has"],function(b,y,q){var w=q("config-requestProvider");w||(w="./xhr");b.getPlatformDefaultId=function(){return"./xhr"};b.load=function(t,m,p,r){y(["platform"==t?"./xhr":w],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,y,q,w,t,m,p,r,h){q.add("dojo-preload-i18n-Api",1);var c=b.i18n={},
a=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,f=function(B,K,J,R){var W=[J+R];K=K.split("-");for(var Y="",S=0;S<K.length;S++)if(Y+=(Y?"-":"")+K[S],!B||B[Y])W.push(J+Y+"/"+R),W.specificity=Y;return W},e={},k=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},l=b.getL10nName=function(B,K,J){return B=h.id+"!"+k(B,K,J)},d=function(B,K,J,R,W,Y){B([K],function(S){var U=m.clone(S.root||S.ROOT),L=f(!S._v1x&&S,W,J,R);
B(L,function(){for(var T=1;T<L.length;T++)U=m.mixin(m.clone(U),arguments[T]);e[K+"/"+W]=U;U.$locale=L.specificity;Y()})})},u=function(B){var K=t.extraLocale||[];K=m.isArray(K)?K:[K];K.push(B);return K},x=function(B,K,J){var R=a.exec(B),W=R[1]+"/",Y=R[5]||R[4],S=W+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,Q(U[2],r.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}w.forEach(R,function(ca){var qa=S+"/"+ca;q("dojo-preload-i18n-Api")&&z(qa);e[qa]?da():d(K,S,W,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=[],Q=c._preloadLocalizations=function(B,K,J,R){function W(L,T){R.isXdUrl(y.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;)x.apply(null,D.shift())}function U(L){L=n(L);Y(L,function(T){if(0<=w.indexOf(K,T)){var da=B.replace(/\./g,"/")+"_"+T;v++;W(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[y.toAbsMid(ca)]=na}else va=qa._localized,e[y.toAbsMid(ta+oa+"/"+T)]=qa;T!==L&&function(ra,ia,wa,ya){var E=[],G=[];Y(L,function(M){ya[M]&&
(E.push(y.toAbsMid(ra+M+"/"+ia)),G.push(y.toAbsMid(ra+ia+"/"+M)))});E.length?(v++,R(E,function(){for(var M=E.length-1;0<=M;M--)wa=m.mixin(m.clone(wa),arguments[M]),e[G[M]]=wa;e[y.toAbsMid(ra+ia+"/"+L)]=m.clone(wa);S()})):e[y.toAbsMid(ra+ia+"/"+L)]=wa}(ta,oa,qa,va)}}}S()});return!0}return!1})}R=R||y;U();w.forEach(b.config.extraLocale,U)},z=function(){},A={},I={},C,H=function(B,K,J){var R=[];w.forEach(B,function(W){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,W,A);L===A?R.push(e[S]=A.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(W+".js");if(e[S])R.push(e[S]);else{var U=J.syncLoadNls(W);U||(U=z(W.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]],W=1;R&&W<J.length-1;R=R[J[W++]]);R&&((K=R[J[W]])||(K=R[J[W].replace(/-/g,"_")]),
K&&(e[B]=K));return K};c.getLocalization=function(B,K,J){var R,W=k(B,K,J);if(I[W])return I[W];x(W,y.isXdUrl(y.toUrl(W+".js"))?y:function(Y,S){H(Y,S,y)},function(Y){R=I[W]=Y});return R};return m.mixin(c,{dynamic:!0,normalize:function(B,K){return/^\./.test(B)?K(B):B},load:x,cache:e,getL10nName:l})})},"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,y,q,w,t,m,p,r,h,c,a,f,e,k,l,d){b._xhrObj=l._create;var u=b.config;b.objectToQuery=w.objectToQuery;b.queryToObject=w.queryToObject;b.fieldToObject=m.fieldToObject;b.formToObject=m.toObject;b.formToQuery=m.toQuery;b.formToJson=m.toJson;b._blockAsync=!1;y.add("native-xhr2-blob",function(){if(y("native-xhr2")){var z=new XMLHttpRequest;z.open("GET","/",!0);z.responseType="blob";var A=z.responseType;z.abort();return"blob"===A}});var x=b._contentHandlers=b.contentHandlers={text:function(z){return z.responseText},
json:function(z){return h.fromJson(z.responseText||null)},"json-comment-filtered":function(z){r.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 A=z.indexOf("/*"),I=z.lastIndexOf("*/");if(-1==A||-1==I)throw Error("JSON was not comment filtered");
return h.fromJson(z.substring(A+2,I))},javascript:function(z){return b.eval(z.responseText)},xml:function(z){var A=z.responseXML;A&&y("dom-qsa2.1")&&!A.querySelectorAll&&y("dom-parser")&&(A=(new DOMParser).parseFromString(z.responseText,"application/xml"));if(y("ie")&&(!A||!A.documentElement)){var I=function(C){return"MSXML"+C+".DOMDocument"};I=["Microsoft.XMLDOM",I(6),I(4),I(3),I(2)];a.some(I,function(C){try{var H=new ActiveXObject(C);H.async=!1;H.loadXML(z.responseText);A=H}catch(B){return!1}return!0})}return A},
"json-comment-optional":function(z){return z.responseText&&/^[^{\[]*\/\*/.test(z.responseText)?x["json-comment-filtered"](z):x.json(z)}};y("native-xhr2")&&(x.arraybuffer=x.blob=x.document=function(z,A){return"blob"!==A.args.handleAs||y("native-xhr2-blob")?z.response:new Blob([z.response],{type:z.getResponseHeader("Content-Type")})});b._ioSetArgs=function(z,A,I,C){var H={args:z,url:z.url},B=null;if(z.form){B=t.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=w.objectToQuery(K);H.handleAs=z.handleAs||"text";var J=new p(function(S){S.canceled=!0;A&&A(S);var U=S.ioArgs.error;U||(U=Error("request cancelled"),U.dojoType="cancel",S.ioArgs.error=U);return U});J.addCallback(I);var R=z.load;R&&c.isFunction(R)&&J.addCallback(function(S){return R.call(z,S,H)});var W=z.error;W&&c.isFunction(W)&&J.addErrback(function(S){return W.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=x[z.ioArgs.handleAs](z.ioArgs.xhr,z.ioArgs);return void 0===z?null:z},v=function(z,A){A.ioArgs.args.failOk||
console.error(z);return z},D=function(z){0>=Q&&(Q=0,u.ioPublish&&b.publish&&(!z||z&&!1!==z.ioArgs.args.ioPublish)&&b.publish("/dojo/io/stop"))},Q=0;e.after(k,"_onAction",function(){--Q});e.after(k,"_onInFlight",D);b._ioCancelAll=k.cancelAll;b._ioNotifyStart=function(z){u.ioPublish&&b.publish&&!1!==z.ioArgs.args.ioPublish&&(Q||b.publish("/dojo/io/start"),Q+=1,b.publish("/dojo/io/send",[z]))};b._ioWatch=function(z,A,I,C){z.ioArgs.options=z.ioArgs.args;c.mixin(z,{response:z.ioArgs,isValid:function(H){return A(z)},
isReady:function(H){return I(z)},handleResponse:function(H){return C(z)}});k(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,A,I){var C=b._ioSetArgs(A,function(J){K&&K.cancel()},n,v),H=C.ioArgs;"postData"in A?H.query=A.postData:"putData"in A?H.query=A.putData:"rawBody"in A?H.query=A.rawBody:(2<arguments.length&&!I||-1==="POST|PUT".indexOf(z.toUpperCase()))&&b._ioAddQueryToUrl(H);var B;y("native-xhr2")&&(B=
{arraybuffer:1,blob:1,document:1});B=B[A.handleAs]?A.handleAs:"text";"blob"!==B||y("native-xhr2-blob")||(B="arraybuffer");B={method:z,handleAs:B,responseType:A.responseType,timeout:A.timeout,withCredentials:A.withCredentials,ioArgs:H};"undefined"!==typeof A.headers&&(B.headers=A.headers);"undefined"!==typeof A.contentType&&(B.headers||(B.headers={}),B.headers["Content-Type"]=A.contentType);"undefined"!==typeof H.query&&(B.data=H.query);"undefined"!==typeof A.sync&&(B.sync=A.sync);b._ioNotifyStart(C);
try{var K=l(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 A;b.xhrGet({url:z,sync:!0,load:function(I){A=I}});return A};c.mixin(b.xhr,{_xhrObj:b._xhrObj,fieldToObject:m.fieldToObject,formToObject:m.toObject,objectToQuery:w.objectToQuery,formToQuery:m.toQuery,formToJson:m.toJson,queryToObject:w.queryToObject,contentHandlers:x,_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,y,q){b._name="browser";y.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 y={};return{objectToQuery:function(q){var w=encodeURIComponent,t=[],m;for(m in q){var p=q[m];if(p!=y[m]){var r=w(m)+"\x3d";if(b.isArray(p))for(var h=0,c=p.length;h<c;++h)t.push(r+w(p[h]));else t.push(r+w(p))}}return t.join("\x26")},queryToObject:function(q){var w=decodeURIComponent;q=q.split("\x26");for(var t={},m,p,r=0,h=q.length;r<h;++r)if(p=q[r],p.length){var c=p.indexOf("\x3d");0>c?(m=w(p),p=""):(m=w(p.slice(0,c)),p=w(p.slice(c+1)));"string"==typeof t[m]&&(t[m]=[t[m]]);b.isArray(t[m])?
t[m].push(p):t[m]=p}return t}}})},"dojo/dom":function(){define(["./sniff","./_base/window","./_base/kernel"],function(b,y,q){if(7>=b("ie"))try{document.execCommand("BackgroundImageCache",!1,!0)}catch(m){}var w={};b("ie")?w.byId=function(m,p){if("string"!=typeof m)return m||null;var r=p||y.doc;p=m&&r.getElementById(m);if(!p||p.attributes.id.value!=m&&p.id!=m){r=r.all[m];if(!r||r.nodeName)r=[r];for(var h=0;p=r[h++];)if(p.attributes&&p.attributes.id&&p.attributes.id.value==m||p.id==m)return p}else return p;
return null}:w.byId=function(m,p){return("string"==typeof m?(p||y.doc).getElementById(m):m)||null};q=q.global.document||null;b.add("dom-contains",!(!q||!q.contains));w.isDescendant=b("dom-contains")?function(m,p){return!(!(p=w.byId(p))||!p.contains(w.byId(m)))}:function(m,p){try{for(m=w.byId(m),p=w.byId(p);m;){if(m==p)return!0;m=m.parentNode}}catch(r){}return!1};b.add("css-user-select",function(m,p,r){if(!r)return!1;m=r.style;p=["Khtml","O","Moz","Webkit"];r=p.length;var h="userSelect";do if("undefined"!==
typeof m[h])return h;while(r--&&(h=p[r]+"UserSelect"));return!1});var t=b("css-user-select");w.setSelectable=t?function(m,p){w.byId(m).style[t]=p?"":"none"}:function(m,p){m=w.byId(m);var r=m.getElementsByTagName("*"),h=r.length;if(p)for(m.removeAttribute("unselectable");h--;)r[h].removeAttribute("unselectable");else for(m.setAttribute("unselectable","on");h--;)r[h].setAttribute("unselectable","on")};return w})},"dojo/_base/window":function(){define(["./kernel","./lang","../sniff"],function(b,y,q){var w=
{global:b.global,doc:b.global.document||null,body:function(t){t=t||b.doc;return t.body||t.getElementsByTagName("body")[0]},setContext:function(t,m){b.global=w.global=t;b.doc=w.doc=m},withGlobal:function(t,m,p,r){var h=b.global;try{return b.global=w.global=t,w.withDoc.call(null,t.document,m,p,r)}finally{b.global=w.global=h}},withDoc:function(t,m,p,r){var h=w.doc,c=q("quirks"),a=q("ie"),f,e;try{b.doc=w.doc=t;b.isQuirks=q.add("quirks","BackCompat"==b.doc.compatMode,!0,!0);if(q("ie")&&(e=t.parentWindow)&&
e.navigator){var k=parseFloat(e.navigator.appVersion.split("MSIE ")[1])||void 0;(f=t.documentMode)&&5!=f&&Math.floor(k)!=f&&(k=f);b.isIE=q.add("ie",k,!0,!0)}p&&"string"==typeof m&&(m=p[m]);return m.apply(p,r||[])}finally{b.doc=w.doc=h,b.isQuirks=q.add("quirks",c,!0,!0),b.isIE=q.add("ie",a,!0,!0)}}};y.mixin(b,w);return w})},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query","./json"],function(b,y,q,w){var t={fieldToObject:function(m){var p=null;if(m=y.byId(m)){var r=m.name,h=(m.type||
"").toLowerCase();if(r&&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(r=m.pop();r;r=r.nextSibling)if(1==r.nodeType&&"option"==r.tagName.toLowerCase())r.selected&&p.push(r.value);else{r.nextSibling&&m.push(r.nextSibling);r.firstChild&&m.push(r.firstChild);break}else p=m.value}return p},toObject:function(m){var p={};m=y.byId(m).elements;for(var r=0,h=m.length;r<h;++r){var c=m[r],a=c.name,f=(c.type||"").toLowerCase();if(a&&
f&&0>"file|submit|image|reset|button".indexOf(f)&&!c.disabled){var e=p,k=a;c=t.fieldToObject(c);if(null!==c){var l=e[k];"string"==typeof l?e[k]=[l,c]:b.isArray(l)?l.push(c):e[k]=c}"image"==f&&(p[a+".x"]=p[a+".y"]=p[a].x=p[a].y=0)}}return p},toQuery:function(m){return q.objectToQuery(t.toObject(m))},toJson:function(m,p){return w.stringify(t.toObject(m),null,p?4:0)}};return t})},"dojo/_base/Deferred":function(){define("./kernel ../Deferred ../promise/Promise ../errors/CancelError ../has ./lang ../when".split(" "),
function(b,y,q,w,t,m,p){var r=function(){},h=Object.freeze||function(){},c=b.Deferred=function(a){function f(z){if(l)throw Error("This deferred has already been resolved");k=z;l=!0;e()}function e(){for(var z;!z&&v;){var A=v;v=v.next;if(z=A.progress==r)l=!1;var I=x?A.error:A.resolved;t("config-useDeferredInstrumentation")&&x&&y.instrumentRejected&&y.instrumentRejected(k,!!I);if(I)try{var C=I(k);C&&"function"===typeof C.then?C.then(m.hitch(A.deferred,"resolve"),m.hitch(A.deferred,"reject"),m.hitch(A.deferred,
"progress")):(I=z&&void 0===C,z&&!I&&(x=C instanceof Error),A.deferred[I&&x?"reject":"resolve"](I?k:C))}catch(H){A.deferred.reject(H)}else x?A.deferred.reject(k):A.deferred.resolve(k)}}var k,l,d,u,x,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){x=!0;this.fired=u=1;t("config-useDeferredInstrumentation")&&y.instrumentRejected&&y.instrumentRejected(z,!!v);f(z);this.results=[null,z]};this.progress=function(z){for(var A=v;A;){var I=A.progress;I&&I(z);A=A.next}};this.addCallbacks=function(z,A){this.then(z,A,r);return this};D.then=this.then=function(z,A,I){var C=I==r?this:new c(D.cancel);z={resolved:z,error:A,progress:I,deferred:C};v?n=n.next=z:v=n=z;l&&e();return C.promise};var Q=this;D.cancel=
this.cancel=function(){if(!l){var z=a&&a(Q);l||(z instanceof Error||(z=new w(z)),z.log=!1,Q.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,y,q,w,t){var m=Object.freeze||function(){},p=function(f,e,k,l,d){2===e&&a.instrumentRejected&&0===f.length&&a.instrumentRejected(k,!1,l,d);for(d=0;d<f.length;d++)r(f[d],e,k,l)},r=function(f,e,k,l){var d=f[e],u=f.deferred;if(d)try{var x=d(k);if(0===e)"undefined"!==typeof x&&c(u,e,x);else{if(x&&"function"===typeof x.then){f.cancel=x.cancel;x.then(h(u,1),h(u,2),h(u,0));return}c(u,1,x)}}catch(n){c(u,2,n)}else c(u,e,k);2===e&&a.instrumentRejected&&a.instrumentRejected(k,
!!d,l,u.promise)},h=function(f,e){return function(k){c(f,e,k)}},c=function(f,e,k){if(!f.isCanceled())switch(e){case 0:f.progress(k);break;case 1:f.resolve(k);break;case 2:f.reject(k)}},a=function(f){var e=this.promise=new w,k=this,l,d,u,x=!1,n=[];Error.captureStackTrace&&(Error.captureStackTrace(k,a),Error.captureStackTrace(e,a));this.isResolved=e.isResolved=function(){return 1===l};this.isRejected=e.isRejected=function(){return 2===l};this.isFulfilled=e.isFulfilled=function(){return!!l};this.isCanceled=
e.isCanceled=function(){return x};this.progress=function(D,Q){if(l){if(!0===Q)throw Error("This deferred has already been fulfilled.");return e}p(n,0,D,null,k);return e};this.resolve=function(D,Q){if(l){if(!0===Q)throw Error("This deferred has already been fulfilled.");return e}p(n,l=1,d=D,null,k);n=null;return e};var v=this.reject=function(D,Q){if(l){if(!0===Q)throw Error("This deferred has already been fulfilled.");return e}Error.captureStackTrace&&Error.captureStackTrace(u={},v);p(n,l=2,d=D,u,
k);n=null;return e};this.then=e.then=function(D,Q,z){var A=[z,D,Q];A.cancel=e.cancel;A.deferred=new a(function(I){return A.cancel&&A.cancel(I)});l&&!n?r(A,l,d,u):n.push(A);return A.deferred.promise};this.cancel=e.cancel=function(D,Q){if(!l){f&&(Q=f(D),D="undefined"===typeof Q?D:Q);x=!0;if(!l)return"undefined"===typeof D&&(D=new q),v(D),D;if(2===l&&d===D)return D}else if(!0===Q)throw Error("This deferred has already been fulfilled.");};m(e)};a.prototype.toString=function(){return"[object Deferred]"};
t&&t(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(y,q,w,t){w=w||Error;var m=function(p){if(w===Error){Error.captureStackTrace&&Error.captureStackTrace(this,m);var r=Error.call(this,p),h;for(h in r)r.hasOwnProperty(h)&&(this[h]=r[h]);this.message=p;this.stack=r.stack}else w.apply(this,arguments);q&&q.apply(this,arguments)};
m.prototype=b.delegate(w.prototype,t);m.prototype.name=y;return m.prototype.constructor=m}})},"dojo/promise/Promise":function(){define(["../_base/lang"],function(b){function y(){throw new TypeError("abstract");}return b.extend(function(){},{then:function(q,w,t){y()},cancel:function(q,w){y()},isResolved:function(){y()},isRejected:function(){y()},isFulfilled:function(){y()},isCanceled:function(){y()},"finally":function(q){return this.then(function(w){var t=q();return t&&"function"===typeof t.then?t.then(function(){return w}):
w},function(w){var t=q();if(t&&"function"===typeof t.then)return t.then(function(){throw w;});throw w;})},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,y,q,w){function t(f,e,k){if(!f||
!1!==f.log){var l="";f&&f.stack&&(l+=f.stack);e&&e.stack&&(l+="\n    ----------------------------------------\n    rejected"+e.stack.split("\n").slice(1).join("\n").replace(/^\s+/," "));k&&k.stack&&(l+="\n    ----------------------------------------\n"+k.stack);console.error(f,l)}}function m(f,e,k,l){e||t(f,k,l)}function p(f,e,k,l){w.some(h,function(d){if(d.error===f)return e&&(d.handled=!0),!0})||h.push({error:f,rejection:k,handled:e,deferred:l,timestamp:(new Date).getTime()});c||(c=setTimeout(r,
a))}function r(){var f=(new Date).getTime(),e=f-a;h=w.filter(h,function(k){return k.timestamp<e?(k.handled||t(k.error,k.rejection,k.deferred),!1):!0});c=h.length?setTimeout(r,h[0].timestamp+a-f):!1}y.add("config-useDeferredInstrumentation","report-unhandled-rejections");var h=[],c=!1,a=1E3;return function(f){var e=y("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 k=[];"string"===typeof e&&(k=e.split(","),e=k.shift());if("report-rejections"===e)f.instrumentRejected=m;else if("report-unhandled-rejections"===e||!0===e||1===e)f.instrumentRejected=p,a=parseInt(k[0],10)||a;else throw Error("Unsupported instrumentation usage \x3c"+e+"\x3e");}}})},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(b,y,q){function w(p){setTimeout(function(){m.apply(t,p)},0)}var t=new q,m=t.emit;t.emit=null;y.prototype.trace=
function(){var p=b._toArray(arguments);this.then(function(r){w(["resolved",r].concat(p))},function(r){w(["rejected",r].concat(p))},function(r){w(["progress",r].concat(p))});return this};y.prototype.traceRejected=function(){var p=b._toArray(arguments);this.otherwise(function(r){w(["rejected",r].concat(p))});return this};return t})},"dojo/Evented":function(){define(["./aspect","./on"],function(b,y){function q(){}var w=b.after;q.prototype={on:function(t,m){return y.parse(this,t,m,function(p,r){return w(p,
"on"+r,m,!0)})},emit:function(t,m){var p=[this];p.push.apply(p,arguments);return y.emit.apply(y,p)}};return q})},"dojo/aspect":function(){define([],function(){function b(p,r,h,c){var a=p[r],f="around"==r;if(f){var e=h(function(){return a.advice(this,arguments)});var k={remove:function(){e&&(e=p=h=null)},advice:function(l,d){return e?e.apply(l,d):a.advice(l,d)}}}else k={remove:function(){if(k.advice){var l=k.previous,d=k.next;d||l?(l?l.next=d:p[r]=d,d&&(d.previous=l)):delete p[r];p=h=k.advice=null}},
id:p.nextId++,advice:h,receiveArguments:c};if(a&&!f)if("after"==r){for(;a.next&&(a=a.next););a.next=k;k.previous=a}else"before"==r&&(p[r]=k,k.next=a,a.previous=k);else p[r]=k;return k}function y(p){return function(r,h,c,a){var f=r[h],e;f&&f.target==r||(r[h]=e=function(){for(var k=e.nextId,l=arguments,d=e.before;d;)d.advice&&(l=d.advice.apply(this,l)||l),d=d.next;if(e.around)var u=e.around.advice(this,l);for(d=e.after;d&&d.id<k;){if(d.advice)if(d.receiveArguments){var x=d.advice.apply(this,l);u=x===
q?u:x}else u=d.advice.call(this,u,l);d=d.next}return u},f&&(e.around={advice:function(k,l){return f.apply(k,l)}}),e.target=r,e.nextId=e.nextId||0);r=b(e||f,p,c,a);c=null;return r}}var q,w=y("after"),t=y("before"),m=y("around");return{before:t,around:m,after:w}})},"dojo/on":function(){define(["./has!dom-addeventlistener?:./aspect","./_base/kernel","./sniff"],function(b,y,q){function w(A,I,C,H,B){if(H=I.match(/(.*):(.*)/))return I=H[2],H=H[1],r.selector(H,I).call(B,A,C);q("touch")&&(h.test(I)&&(C=z(C)),
q("event-orientationchange")||"orientationchange"!=I||(I="resize",A=window,C=z(C)));k&&(C=k(C));if(A.addEventListener){var K=I in f,J=K?f[I]:I;A.addEventListener(J,C,K);return{remove:function(){A.removeEventListener(J,C,K)}}}if(x&&A.attachEvent)return x(A,"on"+I,C);throw Error("Target must be an event emitter");}function t(){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(A,I,C){return"onfocusin"in C});q("touch")&&q.add("touch-can-modify-event-delegate",function(){var A=function(){};A.prototype=document.createEvent("MouseEvents");try{var I=new A;I.target=null;return null===I.target}catch(C){return!1}});var r=function(A,I,C,H){return"function"!=typeof A.on||"function"==typeof I||A.nodeType?
r.parse(A,I,C,w,H,this):A.on(I,C)};r.pausable=function(A,I,C,H){var B;A=r(A,I,function(){if(!B)return C.apply(this,arguments)},H);A.pause=function(){B=!0};A.resume=function(){B=!1};return A};r.once=function(A,I,C,H){var B=r(A,I,function(){B.remove();return C.apply(this,arguments)});return B};r.parse=function(A,I,C,H,B,K){var J;if(I.call)return I.call(K,A,C);I instanceof Array?J=I:-1<I.indexOf(",")&&(J=I.split(/\s*,\s*/));if(J){var R=[];I=0;for(var W;W=J[I++];)R.push(r.parse(A,W,C,H,B,K));R.remove=
function(){for(var Y=0;Y<R.length;Y++)R[Y].remove()};return R}return H(A,I,C,B,K)};var h=/^touch/;r.matches=function(A,I,C,H,B){B=B&&"function"==typeof B.matches?B:y.query;H=!1!==H;1!=A.nodeType&&(A=A.parentNode);for(;!B.matches(A,I,C);)if(A==C||!1===H||!(A=A.parentNode)||1!=A.nodeType)return!1;return A};r.selector=function(A,I,C){return function(H,B){function K(W){return r.matches(W,A,H,C,J)}var J="function"==typeof A?{matches:A}:this,R=I.bubble;return R?r(H,R(K),B):r(H,I,function(W){var Y=K(W.target);
if(Y)return W.selectorTarget=Y,B.call(Y,W)})}};var c=[].slice,a=r.emit=function(A,I,C){var H=c.call(arguments,2),B="on"+I;if("parentNode"in A){var K=H[0]={},J;for(J in C)K[J]=C[J];K.preventDefault=t;K.stopPropagation=m;K.target=A;K.type=I;C=K}do A[B]&&A[B].apply(A,H);while(C&&C.bubbles&&(A=A.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},k=function(A){return function(I){if(!I.immediatelyStopped)return I.stopImmediatePropagation=
e,A.apply(this,arguments)}};if(q("dom-addeventlistener"))r.emit=function(A,I,C){if(A.dispatchEvent&&document.createEvent){var H=(A.ownerDocument||document).createEvent("HTMLEvents");H.initEvent(I,!!C.bubbles,!!C.cancelable);for(var B in C)B in H||(H[B]=C[B]);return A.dispatchEvent(H)&&H}return a.apply(r,arguments)};else{r._fixEvent=function(A,I){A||(A=(I&&(I.ownerDocument||I.document||I).parentWindow||window).event);if(!A)return A;try{l&&A.type==l.type&&A.srcElement==l.target&&(A=l)}catch(C){}if(!A.target)switch(A.target=
A.srcElement,A.currentTarget=I||A.srcElement,"mouseover"==A.type&&(A.relatedTarget=A.fromElement),"mouseout"==A.type&&(A.relatedTarget=A.toElement),A.stopPropagation||(A.stopPropagation=n,A.preventDefault=v),A.type){case "keypress":I="charCode"in A?A.charCode:A.keyCode,10==I?(I=0,A.keyCode=13):13==I||27==I?I=0:3==I&&(I=99),A.charCode=I,I=A,I.keyChar=I.charCode?String.fromCharCode(I.charCode):"",I.charOrCode=I.keyChar||I.keyCode}return A};var l,d=function(A){this.handle=A};d.prototype.remove=function(){delete _dojoIEListeners_[this.handle]};
var u=function(A){return function(I){I=r._fixEvent(I,this);var C=A.call(this,I);I.modified&&(l||setTimeout(function(){l=null}),l=I);return C}},x=function(A,I,C){C=u(C);if(((A.ownerDocument?A.ownerDocument.parentWindow:A.parentWindow||A.window||window)!=top||5.8>q("jscript"))&&!q("config-_allow_leaks")){"undefined"==typeof _dojoIEListeners_&&(_dojoIEListeners_=[]);var H=A[I];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=[];A[I]=H;H.global=this;B&&H.listeners.push(_dojoIEListeners_.push(B)-1)}H.listeners.push(A=H.global._dojoIEListeners_.push(C)-1);return new d(A)}return b.after(A,I,C,!0)},n=function(){this.cancelBubble=!0},v=r._preventDefault=function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey)try{this.keyCode=0}catch(A){}this.defaultPrevented=!0;this.returnValue=!1;this.modified=!0}}if(q("touch"))var D=function(){},Q=window.orientation,z=function(A){return function(I){var C=I.corrected;if(!C){var H=
I.type;try{delete I.type}catch(J){}if(I.type){if(q("touch-can-modify-event-delegate"))D.prototype=I,C=new D;else{C={};for(var B in I)C[B]=I[B]}C.preventDefault=function(){I.preventDefault()};C.stopPropagation=function(){I.stopPropagation()}}else C=I,C.type=H;I.corrected=C;if("resize"==H){if(Q==window.orientation)return null;Q=window.orientation;C.type="orientationchange";return A.call(this,C)}"rotation"in C||(C.rotation=0,C.scale=1);if(window.TouchEvent&&I instanceof TouchEvent){H=C.changedTouches[0];
for(var K in H)delete C[K],C[K]=H[K]}}return A.call(this,C)}};return r})},"dojo/when":function(){define(["./Deferred","./promise/Promise"],function(b,y){return function(q,w,t,m){var p=q&&"function"===typeof q.then,r=p&&q instanceof y;if(!p)return 1<arguments.length?w?w(q):q:(new b).resolve(q);r||(p=new b(q.cancel),q.then(p.resolve,p.reject,p.progress),q=p.promise);return w||t||m?q.then(w,t,m):q}})},"dojo/_base/json":function(){define(["./kernel","../json"],function(b,y){b.fromJson=function(q){return eval("("+
q+")")};b._escapeString=y.stringify;b.toJsonIndentStr="\t";b.toJson=function(q,w){return y.stringify(q,function(t,m){return m&&(t=m.__json__||m.json,"function"==typeof t)?t.call(m):m},w&&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,y,q,w,t,m){function p(){for(var a=+new Date,f=0,e;f<c.length&&(e=c[f]);f++){var k=
e.response,l=k.options;e.isCanceled&&e.isCanceled()||e.isValid&&!e.isValid(k)?(c.splice(f--,1),r._onAction&&r._onAction()):e.isReady&&e.isReady(k)?(c.splice(f--,1),e.handleResponse(k),r._onAction&&r._onAction()):e.startTime&&e.startTime+(l.timeout||0)<a&&(c.splice(f--,1),e.cancel(new y("Timeout exceeded",k)),r._onAction&&r._onAction())}r._onInFlight&&r._onInFlight(e);c.length||(clearInterval(h),h=null)}function r(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=[];r.cancelAll=function(){try{w.forEach(c,function(a){try{a.cancel(new q("All requests canceled."))}catch(f){}})}catch(a){}};t&&m&&t.doc.attachEvent&&m(t.global,"unload",function(){r.cancelAll()});return r})},"dojo/request/util":function(){define("exports ../errors/RequestError ../errors/CancelError ../Deferred ../io-query ../_base/array ../_base/lang ../promise/Promise ../has".split(" "),function(b,y,q,w,t,m,p,r,h){function c(l){return h("native-arraybuffer")&&
l instanceof ArrayBuffer}function a(l){return h("native-blob")&&l instanceof Blob}function f(l){return k(l)}function e(l){return void 0!==l.data?l.data:l.text}b.deepCopy=function(l,d){for(var u in d){var x=l[u],n=d[u];if("__proto__"!==u&&x!==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)?l[u]=n:"[object Date]"===Object.prototype.toString.call(n)?l[u]=new Date(n):p.isArray(n)?
l[u]=b.deepCopyArray(n):x&&"object"===typeof x?b.deepCopy(x,n):l[u]=b.deepCopy({},n)}}return l};b.deepCopyArray=function(l){for(var d=[],u=0,x=l.length;u<x;u++){var n=l[u];"object"===typeof n?d.push(b.deepCopy({},n)):d.push(n)}return d};b.deepCreate=function(l,d){d=d||{};var u=p.delegate(l),x,n;for(x in l)(n=l[x])&&"object"===typeof n&&(u[x]=b.deepCreate(n,d[x]));return b.deepCopy(u,d)};var k=Object.freeze||function(l){return l};b.deferred=function(l,d,u,x,n,v){var D=new w(function(z){d&&d(D,l);return z&&
(z instanceof y||z instanceof q)?z:new q("Request canceled",l)});D.response=l;D.isValid=u;D.isReady=x;D.handleResponse=n;u=D.then(f).otherwise(function(z){z.response=l;throw z;});b.notify&&u.then(p.hitch(b.notify,"emit","load"),p.hitch(b.notify,"emit","error"));x=u.then(e);n=new r;for(var Q in x)x.hasOwnProperty(Q)&&(n[Q]=x[Q]);n.response=u;k(n);v&&D.then(function(z){v.call(D,z)},function(z){v.call(D,l,z)});D.promise=n;D.then=n.then;return D};b.addCommonMethods=function(l,d){m.forEach(d||["GET","POST",
"PUT","DELETE"],function(u){l[("DELETE"===u?"DEL":u).toLowerCase()]=function(x,n){n=p.delegate(n||{});n.method=u;return l(x,n)}})};b.parseArgs=function(l,d,u){var x=d.data,n=d.query;!x||u||"object"!==typeof x||h("native-xhr2")&&(c(x)||a(x))||(d.data=t.objectToQuery(x));n?("object"===typeof n&&(n=t.objectToQuery(n)),d.preventCache&&(n+=(n?"\x26":"")+"request.preventCache\x3d"+ +new Date)):d.preventCache&&(n="request.preventCache\x3d"+ +new Date);l&&n&&(l+=(~l.indexOf("?")?"\x26":"?")+n);return{url:l,
options:d,getHeader:function(v){return null}}};b.checkStatus=function(l){l=l||0;return 200<=l&&300>l||304===l||1223===l||!l}})},"dojo/errors/RequestError":function(){define(["./create"],function(b){return b("RequestError",function(y,q){this.response=q})})},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],function(b,y){return b("RequestTimeoutError",null,y,{dojoType:"timeout"})})},"dojo/request/xhr":function(){define(["../errors/RequestError","./watch","./handlers",
"./util","../has"],function(b,y,q,w,t){function m(d,u){var x=d.xhr;d.status=d.xhr.status;try{d.text=x.responseText}catch(v){}"xml"===d.options.handleAs&&(d.data=x.responseXML);if(u)this.reject(u);else{try{q(d)}catch(v){var n=v}w.checkStatus(x.status)?n?this.reject(n):this.resolve(d):(u=n?new b("Unable to load "+d.url+" status: "+x.status+" and an error in handleAs: transformation of response",d):new b("Unable to load "+d.url+" status: "+x.status,d),this.reject(u))}}function p(d){return this.xhr.getResponseHeader(d)}
function r(d,u,x){var n=t("native-formdata")&&u&&u.data&&u.data instanceof FormData,v=w.parseArgs(d,w.deepCreate(l,u),n);d=v.url;u=v.options;var D=!u.data&&"POST"!==u.method&&"PUT"!==u.method;10>=t("ie")&&(d=d.split("#")[0]);var Q,z=w.deferred(v,a,c,e,m,function(){Q&&Q()}),A=v.xhr=r._create();if(!A)return z.cancel(new b("XHR was not created")),x?z:z.promise;v.getHeader=p;f&&(Q=f(A,z,v,u.uploadProgress));var I="undefined"===typeof u.data?null:u.data,C=!u.sync,H=u.method;try{A.open(H,d,C,u.user||k,
u.password||k);u.withCredentials&&(A.withCredentials=u.withCredentials);t("native-response-type")&&u.handleAs in h&&(A.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]&&A.setRequestHeader(K,B[K]);d&&!1!==d&&A.setRequestHeader("Content-Type",d);B&&"X-Requested-With"in B||A.setRequestHeader("X-Requested-With","XMLHttpRequest");w.notify&&w.notify.emit("send",v,z.promise.cancel);A.send(I)}catch(J){z.reject(J)}y(z);
A=null;return x?z:z.promise}t.add("native-xhr",function(){return"undefined"!==typeof XMLHttpRequest});t.add("dojo-force-activex-xhr",function(){return t("activex")&&"file:"===window.location.protocol});t.add("native-xhr2",function(){if(t("native-xhr")&&!t("dojo-force-activex-xhr")){var d=new XMLHttpRequest;return"undefined"!==typeof d.addEventListener&&("undefined"===typeof opera||"undefined"!==typeof d.upload)}});t.add("native-formdata",function(){return"undefined"!==typeof FormData});t.add("native-blob",
function(){return"undefined"!==typeof Blob});t.add("native-arraybuffer",function(){return"undefined"!==typeof ArrayBuffer});t.add("native-response-type",function(){return t("native-xhr")&&"undefined"!==typeof(new XMLHttpRequest).responseType});t.add("native-xhr2-blob",function(){if(t("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:t("native-xhr2-blob")?"blob":"arraybuffer",
document:"document",arraybuffer:"arraybuffer"};if(t("native-xhr2")){var c=function(d){return!this.isFulfilled()};var a=function(d,u){u.xhr.abort()};var f=function(d,u,x,n){function v(I){u.handleResponse(x)}function D(I){I=new b("Unable to load "+x.url+" status: "+I.target.status,x);u.handleResponse(x,I)}function Q(I,C){x.transferType=I;C.lengthComputable?(x.loaded=C.loaded,x.total=C.total,u.progress(x)):3===x.xhr.readyState&&(x.loaded="loaded"in C?C.loaded:C.position,u.progress(x))}function z(I){return Q("download",
I)}function A(I){return Q("upload",I)}d.addEventListener("load",v,!1);d.addEventListener("error",D,!1);d.addEventListener("progress",z,!1);n&&d.upload&&d.upload.addEventListener("progress",A,!1);return function(){d.removeEventListener("load",v,!1);d.removeEventListener("error",D,!1);d.removeEventListener("progress",z,!1);d.upload.removeEventListener("progress",A,!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 k,l={data:null,query:null,sync:!1,method:"GET"};r._create=function(){throw Error("XMLHTTP not available");};if(t("native-xhr")&&!t("dojo-force-activex-xhr"))r._create=function(){return new XMLHttpRequest};else if(t("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),r._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(d){try{new ActiveXObject("Microsoft.XMLHTTP"),r._create=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(u){}}w.addCommonMethods(r);
return r})},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has","../selector/_loader"],function(b,y,q,w){function t(a){var f=c[a.options.handleAs];a.data=f?f(a):a.data||a.text;return a}w.add("activex","undefined"!==typeof ActiveXObject);w.add("dom-parser",function(a){return"DOMParser"in a});if(w("activex")){var m=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"],p;var r=function(a){function f(l){try{var d=
new ActiveXObject(l);d.async=!1;d.loadXML(k);e=d;p=l}catch(u){return!1}return!0}var e=a.data,k=a.text;e&&w("dom-qsa2.1")&&!e.querySelectorAll&&w("dom-parser")&&(e=(new DOMParser).parseFromString(k,"application/xml"));e&&e.documentElement||p&&f(p)||q.some(m,f);return e}}var h=function(a){return w("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 y.eval(a.text||
"")},json:function(a){return b.parse(a.text||null)},xml:r,blob:h,arraybuffer:h,document:h};t.register=function(a,f){c[a]=f};return t})},"dojo/selector/_loader":function(){define(["../has","require"],function(b,y){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(t){}})}var w;return{load:function(t,m,
p,r){if(r&&r.isBuild)p();else{r=y;t="default"==t?b("config-selectorEngine")||"css3":t;t="css2"==t||"lite"==t?"./lite":"css2.1"==t?b("dom-qsa2.1")?"./lite":"./acme":"css3"==t?b("dom-qsa3")?"./lite":"./acme":"acme"==t?"./acme":(r=m)&&t;if("?"==t.charAt(t.length-1)){t=t.substring(0,t.length-1);var h=!0}if(h&&(b("dom-compliant-qsa")||w))return p(w);r([t],function(c){"./lite"!=t&&(w=c);p(c)})}}}})},"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,y,q,w,t,m,p,r){p.isDebug&&q(["./_firebug/firebug"]);var h=p.require;h&&(h=m.map(t.isArray(h)?h:[h],function(c){return c.replace(/\./g,"/")}),b.isAsync?q(h):r(1,function(){q(h)}));return b})},"dojo/ready":function(){define(["./_base/kernel","./has","require","./domReady","./_base/lang"],function(b,y,q,w,t){var m=0,p=[],r=0;y=function(){m=1;b._postLoad=b.config.afterOnLoad=!0;h()};var h=function(){if(!r){for(r=1;m&&(!w||0==w._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;}}r=0}};q.on&&q.on("idle",h);w&&(w._onQEmpty=h);var c=b.ready=b.addOnLoad=function(f,e,k){var l=t._toArray(arguments);"number"!=typeof f?(k=e,e=f,f=1E3):l.shift();k=k?t.hitch.apply(b,l):function(){e()};k.priority=f;for(l=0;l<p.length&&f>=p[l].priority;l++);p.splice(l,0,k);h()},a=b.config.addOnLoad;if(a)c[t.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"]))});w?w(y):y();return c})},"dojo/domReady":function(){define(["./global","./has"],function(b,y){function q(d){h.push(d);r&&w()}function w(){if(!c){for(c=!0;h.length;)try{h.shift()(t)}catch(d){console.error(d,"in domReady callback",d.stack)}c=!1;q._onQEmpty()}}var t=document,m={loaded:1,complete:1},p="string"!=typeof t.readyState,r=!!m[t.readyState],h=[],c;q.load=function(d,u,x){q(x)};q._Q=h;q._onQEmpty=function(){};p&&(t.readyState="loading");if(!r){var a=[],f=function(d){d=
d||b.event;r||"readystatechange"==d.type&&!m[t.readyState]||(p&&(t.readyState="complete"),r=1,w())},e=function(d,u){d.addEventListener(u,f,!1);h.push(function(){d.removeEventListener(u,f,!1)})};if(!y("dom-addeventlistener")){e=function(d,u){u="on"+u;d.attachEvent(u,f);h.push(function(){d.detachEvent(u,f)})};var k=t.createElement("div");try{k.doScroll&&null===b.frameElement&&a.push(function(){try{return k.doScroll("left"),1}catch(d){}})}catch(d){}}e(t,"DOMContentLoaded");e(b,"load");"onreadystatechange"in
t?e(t,"readystatechange"):p||a.push(function(){return m[t.readyState]});if(a.length){var l=function(){if(!r){for(var d=a.length;d--;)if(a[d]()){f("poller");return}setTimeout(l,30)}};l()}}return q})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(b,y,q){function w(C,H){throw Error("declare"+(H?" "+H:"")+": "+C);}function t(C,H){for(var B=[],K=[{cls:0,refs:[]}],J={},R=1,W=C.length,Y=0,S,U,L,T,da;Y<W;++Y){(S=C[Y])?"[object Function]"!=Q.call(S)&&w("mixin #"+Y+" is not a callable constructor.",
H):w("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,W=da.length;Y<W;++Y)L=da[Y],--L.count||K.push(L)}R&&w("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 W=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)w("strict mode inherited() requires the caller function to be passed before arguments",this.declaredClass);
else throw T;}(W=W||Y.nom)||w("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"!=W){if(R.c!==Y){U=0;var L=K[0];S=L._meta;if(S.hidden[W]!==Y){(J=S.chains)&&"string"==typeof J[W]&&w("calling chained method with inherited: "+W,this.declaredClass);do if(S=L._meta,J=L.prototype,S&&(J[W]===Y&&J.hasOwnProperty(W)||S.hidden[W]===Y))break;while(L=K[++U]);U=L?U:-1}}if(L=K[++U])if(J=L.prototype,L._meta&&J.hasOwnProperty(W))B=
J[W];else{Y=D[W];do if(J=L.prototype,(B=J[W])&&(L._meta?J.hasOwnProperty(W):B!==Y))break;while(L=K[++U])}B=L&&B||D[W]}else{if(R.c!==Y&&(U=0,(S=K[0]._meta)&&S.ctor!==Y)){for((J=S.chains)&&"manual"===J.constructor||w("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 r(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(y("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 W=C.length;if(!(this instanceof B.callee))return x(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==W)break;Y[R]=B}}for(R=W-1;0<=R;--R)J=C[R],(J=(W=J._meta)?W.ctor:J)&&J.apply(this,Y?Y[R]:B);(J=this.postscript)&&J.apply(this,K)}}function k(C,H){return function(){var B=arguments,K=B,J=B[0];if(!(this instanceof B.callee))return x(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 l(C){return function(){var H=arguments,B=0,K,J;if(!(this instanceof H.callee))return x(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 W=K._meta;(K=(W?W.hidden:K.prototype)[C])&&K.apply(this,arguments)}}}function u(C){A.prototype=C.prototype;C=new A;A.prototype=null;return C}function x(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,W=1,Y=H;if("[object Array]"==Q.call(H)){var S=
t(H,C);var U=S[0];W=S.length-U;H=S[W]}else S=[0],H?"[object Function]"==Q.call(H)?(U=H._meta,S=S.concat(U?U.bases:H)):w("base class is not a callable constructor.",C):null!==H&&w("unknown base class. Did you use dojo.require to pull it in?",C);if(H)for(K=W-1;;--K){var L=u(H);if(!K)break;U=S[K];(U._meta?c:v)(L,U.prototype);var T=y("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=W-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?l(S):1==S.length?k(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=I;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,Q=D.toString,z=0;var A=y("csp-restrictions")?function(){}:new Function;var I=b.config.isDebug?r: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]"==Q.call(B)&&(B.nom=R),C[R]=B)}if(y("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]"==Q.call(B)&&(B.nom=R),C[R]=B)}return C};return b.declare=n})},"dojo/_base/connect":function(){define("./kernel ../on ../topic ../aspect ./event ../mouse ./sniff ./lang ../keys".split(" "),function(b,y,q,w,t,m,p,r){function h(d,u,x,n,v){n=r.hitch(x,n);if(!d||!d.addEventListener&&!d.attachEvent)return w.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=k;break;case "mouseenter":u=m.enter;break;case "mouseleave":u=m.leave}return y(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=r.mixin({},d,u);c(u);u.preventDefault=function(){d.preventDefault()};u.stopPropagation=function(){d.stopPropagation()};return u};var k=p("events-keypress-typed")?function(d,u){var x=y(d,"keydown",function(v){var D=v.keyCode,Q=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(Q||v.ctrlKey){Q=Q?0:D;if(v.ctrlKey){if(3==D||
13==D)return u.call(v.currentTarget,v);Q=95<Q&&106>Q?Q-48:!v.shiftKey&&65<=Q&&90>=Q?Q+32:a[Q]||Q}D=e(v,{type:"keypress",faux:!0,charCode:Q});u.call(v.currentTarget,D);if(p("ie"))try{v.keyCode=D.keyCode}catch(z){}}}),n=y(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(){x.remove();n.remove()}}}:p("opera")?function(d,u){return y(d,"keypress",function(x){var n=x.which;3==n&&(n=99);n=32>n&&!x.shiftKey?0:n;x.ctrlKey&&!x.shiftKey&&
65<=n&&90>=n&&(n+=32);return u.call(this,e(x,{charCode:n}))})}:function(d,u){return y(d,"keypress",function(x){c(x);return u.call(this,x)})};var l={_keypress:k,connect:function(d,u,x,n,v){var D=arguments,Q=[],z=0;Q.push("string"==typeof D[0]?null:D[z++],D[z++]);var A=D[z+1];Q.push("string"==typeof A||"function"==typeof A?D[z++]:null,D[z++]);for(A=D.length;z<A;z++)Q.push(D[z]);return h.apply(this,Q)},disconnect:function(d){d&&d.remove()},subscribe:function(d,u,x){return q.subscribe(d,r.hitch(u,x))},
publish:function(d,u){return q.publish.apply(q,[d].concat(u))},connectPublisher:function(d,u,x){var n=function(){l.publish(d,arguments)};return x?l.connect(u,x,n):l.connect(u,n)},isCopyKey:function(d){return d[f]}};l.unsubscribe=l.disconnect;r.mixin(b,l);return l})},"dojo/topic":function(){define(["./Evented"],function(b){var y=new b;return{publish:function(q,w){return y.emit.apply(y,arguments)},subscribe:function(q,w){return y.on.apply(y,arguments)}}})},"dojo/_base/event":function(){define(["./kernel",
"../on","../has","../dom-geometry"],function(b,y,q,w){if(y._fixEvent){var t=y._fixEvent;y._fixEvent=function(p,r){(p=t(p,r))&&w.normalizeEvent(p);return p}}var m={fix:function(p,r){return y._fixEvent?y._fixEvent(p,r):p},stop:function(p){q("dom-addeventlistener")||p&&p.preventDefault?(p.preventDefault(),p.stopPropagation()):(p=p||window.event,p.cancelBubble=!0,y._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,y,q,w){function t(a,f,e,k,l,d){d=d||"px";a=a.style;isNaN(f)||(a.left=f+d);isNaN(e)||(a.top=e+d);0<=k&&(a.width=k+d);0<=l&&(a.height=l+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 r(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(k){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||w.getComputedStyle(a),k=w.toPixelValue;f=k(a,e.paddingLeft);var l=k(a,e.paddingTop),d=k(a,e.paddingRight);a=k(a,e.paddingBottom);return{l:f,t:l,r:d,b:a,w:f+d,h:l+a}};h.getBorderExtents=function(a,f){a=q.byId(a);var e=w.toPixelValue,k=f||w.getComputedStyle(a);f="none"!=k.borderLeftStyle?e(a,k.borderLeftWidth):0;var l=
"none"!=k.borderTopStyle?e(a,k.borderTopWidth):0,d="none"!=k.borderRightStyle?e(a,k.borderRightWidth):0;a="none"!=k.borderBottomStyle?e(a,k.borderBottomWidth):0;return{l:f,t:l,r:d,b:a,w:f+d,h:l+a}};h.getPadBorderExtents=function(a,f){a=q.byId(a);var e=f||w.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||w.getComputedStyle(a),k=w.toPixelValue;f=k(a,e.marginLeft);
var l=k(a,e.marginTop),d=k(a,e.marginRight);a=k(a,e.marginBottom);return{l:f,t:l,r:d,b:a,w:f+d,h:l+a}};h.getMarginBox=function(a,f){a=q.byId(a);f=f||w.getComputedStyle(a);f=h.getMarginExtents(a,f);var e=a.offsetLeft-f.l,k=a.offsetTop-f.t,l=a.parentNode,d=w.toPixelValue;8==b("ie")&&!b("quirks")&&l&&(l=w.getComputedStyle(l),e-="none"!=l.borderLeftStyle?d(a,l.borderLeftWidth):0,k-="none"!=l.borderTopStyle?d(a,l.borderTopWidth):0);return{l:e,t:k,w:a.offsetWidth+f.w,h:a.offsetHeight+f.h}};h.getContentBox=
function(a,f){a=q.byId(a);var e=f||w.getComputedStyle(a);f=a.clientWidth;var k=h.getPadExtents(a,e);var l=h.getBorderExtents(a,e);e=a.offsetLeft+k.l+l.l;var d=a.offsetTop+k.t+l.t;f?l=a.clientHeight:(f=a.offsetWidth-l.w,l=a.offsetHeight-l.h);if(8==b("ie")&&!b("quirks")){var u=a.parentNode,x=w.toPixelValue;u&&(u=w.getComputedStyle(u),e-="none"!=u.borderLeftStyle?x(a,u.borderLeftWidth):0,d-="none"!=u.borderTopStyle?x(a,u.borderTopWidth):0)}return{l:e,t:d,w:f-k.w,h:l-k.h}};h.setContentSize=function(a,
f,e){a=q.byId(a);var k=f.w;f=f.h;p(a)&&(e=h.getPadBorderExtents(a,e),0<=k&&(k+=e.w),0<=f&&(f+=e.h));t(a,NaN,NaN,k,f)};var c={l:0,t:0,w:0,h:0};h.setMarginBox=function(a,f,e){a=q.byId(a);var k=e||w.getComputedStyle(a);e=f.w;var l=f.h,d=p(a)?c:h.getPadBorderExtents(a,k);k=h.getMarginExtents(a,k);if(b("webkit")&&m(a)){var u=a.style;0<=e&&!u.width&&(u.width="4px");0<=l&&!u.height&&(u.height="4px")}0<=e&&(e=Math.max(e-d.w-k.w,0));0<=l&&(l=Math.max(l-d.h-k.h,0));t(a,f.l,f.t,e,l)};h.isBodyLtr=function(a){a=
a||y.doc;return"ltr"==(y.body(a).dir||a.documentElement.dir||"ltr").toLowerCase()};h.docScroll=function(a){a=a||y.doc;var f=a.parentWindow||a.defaultView;return"pageXOffset"in f?{x:f.pageXOffset,y:f.pageYOffset}:(f=b("quirks")?y.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||y.doc;var e=b("ie");if(e&&!h.isBodyLtr(f)){var k=b("quirks");f=k?y.body(f):f.documentElement;
var l=y.global;6==e&&!k&&l.frameElement&&f.scrollHeight>f.clientHeight&&(a+=f.clientLeft);return 8>e||k?a+f.clientWidth-f.scrollWidth:-a}return a};h.position=function(a,f){a=q.byId(a);var e=y.body(a.ownerDocument),k=r(a);k={x:k.left,y:k.top,w:k.right-k.left,h:k.bottom-k.top};9>b("ie")&&(k.x-=b("quirks")?e.clientLeft+e.offsetLeft:0,k.y-=b("quirks")?e.clientTop+e.offsetTop:0);f&&(a=h.docScroll(a.ownerDocument),k.x+=a.x,k.y+=a.y);return k};h.getMarginSize=function(a,f){a=q.byId(a);f=h.getMarginExtents(a,
f||w.getComputedStyle(a));a=r(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/dom-style":function(){define(["./sniff","./dom","./_base/window"],function(b,y,q){function w(k,l,d){l=l.toLowerCase();
if("auto"==d){if("height"==l)return k.offsetHeight;if("width"==l)return k.offsetWidth}if("fontweight"==l)switch(d){case 700:return"bold";default:return"normal"}l in a||(a[l]=f.test(l));return a[l]?p(k,d):d}var t={};var m=b("webkit")?function(k){if(1==k.nodeType){var l=k.ownerDocument.defaultView;var d=l.getComputedStyle(k,null);!d&&k.style&&(k.style.display="",d=l.getComputedStyle(k,null))}return d||{}}:b("ie")&&(9>b("ie")||b("quirks"))?function(k){return 1==k.nodeType&&k.currentStyle?k.currentStyle:
{}}:function(k){if(1===k.nodeType){var l=k.ownerDocument.defaultView;return(l.opener?l:q.global.window).getComputedStyle(k,null)}return{}};t.getComputedStyle=m;var p=b("ie")?function(k,l){if(!l)return 0;if("medium"==l)return 4;if(l.slice&&"px"==l.slice(-2))return parseFloat(l);var d=k.style,u=k.runtimeStyle,x=d.left,n=u.left;u.left=k.currentStyle.left;try{d.left=l,l=d.pixelLeft}catch(v){l=0}d.left=x;u.left=n;return l}:function(k,l){return parseFloat(l)||0};t.toPixelValue=p;var r=function(k,l){try{return k.filters.item("DXImageTransform.Microsoft.Alpha")}catch(d){return l?
{}:null}},h=9>b("ie")||10>b("ie")&&b("quirks")?function(k){try{return r(k).Opacity/100}catch(l){return 1}}:function(k){return m(k).opacity},c=9>b("ie")||10>b("ie")&&b("quirks")?function(k,l){""===l&&(l=1);var d=100*l;1===l?(k.style.zoom="",r(k)&&(k.style.filter=k.style.filter.replace(RegExp("\\s*progid:DXImageTransform.Microsoft.Alpha\\([^\\)]+?\\)","i"),""))):(k.style.zoom=1,r(k)?r(k,1).Opacity=d:k.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+d+")",r(k,1).Enabled=!0);if("tr"==
k.tagName.toLowerCase())for(k=k.firstChild;k;k=k.nextSibling)"td"==k.tagName.toLowerCase()&&c(k,l);return l}:function(k,l){return k.style.opacity=l},a={left:!0,top:!0},f=/margin|padding|width|height|max|min|offset/,e={cssFloat:1,styleFloat:1,"float":1};t.get=function(k,l){var d=y.byId(k),u=arguments.length;if(2==u&&"opacity"==l)return h(d);l=e[l]?"cssFloat"in d.style?"cssFloat":"styleFloat":l;var x=t.getComputedStyle(d);return 1==u?x:w(d,l,x[l]||d.style[l])};t.set=function(k,l,d){var u=y.byId(k),
x=arguments.length,n="opacity"==l;l=e[l]?"cssFloat"in u.style?"cssFloat":"styleFloat":l;if(3==x)return n?c(u,d):u.style[l]=d;for(var v in l)t.set(k,v,l[v]);return t.getComputedStyle(u)};return t})},"dojo/mouse":function(){define(["./_base/kernel","./on","./has","./dom","./_base/window"],function(b,y,q,w,t){function m(p,r){var h=function(c,a){return y(c,p,function(f){if(r)return r(f,a);if(!w.isDescendant(f.relatedTarget,c))return a.call(this,f)})};h.bubble=function(c){return m(p,function(a,f){var e=
c(a.target),k=a.relatedTarget;if(e&&e!=(k&&1==k.nodeType&&c(k)))return f.call(e,a)})};return h}q.add("dom-quirks",t.doc&&"BackCompat"==t.doc.compatMode);q.add("events-mouseenter",t.doc&&"onmouseenter"in t.doc.createElement("div"));q.add("events-mousewheel",t.doc&&"onmousewheel"in t.doc);t=q("dom-quirks")&&q("ie")||!q("dom-addeventlistener")?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(p,r){return p.button&r},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,r){return p.button==r},isLeft:function(p){return 0==p.button},isMiddle:function(p){return 1==p.button},isRight:function(p){return 2==p.button}};b.mouseButtons=t;b=q("events-mousewheel")?"mousewheel":function(p,r){return y(p,"DOMMouseScroll",function(h){h.wheelDelta=-h.detail;r.call(this,h)})};return{_eventHandler:m,enter:m("mouseover"),leave:m("mouseout"),wheel:b,isLeft:t.isLeft,isMiddle:t.isMiddle,isRight:t.isRight}})},"dojo/keys":function(){define(["./_base/kernel",
"./sniff"],function(b,y){return b.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:y("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:y("mac")&&!y("air")?y("safari")?91:224:17}})},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(b,y,q,w){var t=b.Color=function(m){m&&this.setColor(m)};t.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:w.transparentColor||[0,0,0,0]};y.extend(t,{r:255,g:255,b:255,a:1,_set:function(m,p,r,h){this.r=m;this.g=p;this.b=r;this.a=h},setColor:function(m){y.isString(m)?t.fromString(m,this):y.isArray(m)?t.fromArray(m,this):(this._set(m.r,m.g,m.b,m.a),m instanceof t||
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)}});t.blendColors=b.blendColors=function(m,p,r,h){h=h||new t;h.r=Math.round(m.r+
(p.r-m.r)*r);h.g=Math.round(m.g+(p.g-m.g)*r);h.b=Math.round(m.b+(p.b-m.b)*r);h.a=m.a+(p.a-m.a)*r;return h.sanitize()};t.fromRgb=b.colorFromRgb=function(m,p){return(m=m.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/))&&t.fromArray(m[1].split(/\s*,\s*/),p)};t.fromHex=b.colorFromHex=function(m,p){var r=p||new t,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;r[a]=4==h?17*f:f});r.a=1;return r};t.fromArray=b.colorFromArray=
function(m,p){p=p||new t;p._set(Number(m[0]),Number(m[1]),Number(m[2]),Number(m[3]));isNaN(p.a)&&(p.a=1);return p.sanitize()};t.fromString=b.colorFromString=function(m,p){var r=t.named[m];return r&&t.fromArray(r,p)||t.fromRgb(m,p)||t.fromHex(m,p)};return t})},"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,y,q){var w=window,t={addOnWindowUnload:function(m,p){b.windowUnloaded||q(w,"unload",b.windowUnloaded=function(){});q(w,"unload",y.hitch(m,p))},addOnUnload:function(m,p){q(w,"beforeunload",y.hitch(m,p))}};b.addOnWindowUnload=t.addOnWindowUnload;b.addOnUnload=t.addOnUnload;return t})},"dojo/_base/html":function(){define("./kernel ../dom ../dom-style ../dom-attr ../dom-prop ../dom-class ../dom-construct ../dom-geometry".split(" "),function(b,y,q,w,t,m,p,r){b.byId=y.byId;
b.isDescendant=y.isDescendant;b.setSelectable=y.setSelectable;b.getAttr=w.get;b.setAttr=w.set;b.hasAttr=w.has;b.removeAttr=w.remove;b.getNodeProp=w.getNodeProp;b.attr=function(h,c,a){return 2==arguments.length?w["string"==typeof c?"get":"set"](h,c):w.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=r.getPadExtents;b._getBorderExtents=b.getBorderExtents=r.getBorderExtents;b._getPadBorderExtents=b.getPadBorderExtents=r.getPadBorderExtents;b._getMarginExtents=b.getMarginExtents=r.getMarginExtents;b._getMarginSize=b.getMarginSize=r.getMarginSize;b._getMarginBox=b.getMarginBox=r.getMarginBox;b.setMarginBox=r.setMarginBox;b._getContentBox=b.getContentBox=r.getContentBox;b.setContentSize=r.setContentSize;b._isBodyLtr=b.isBodyLtr=r.isBodyLtr;b._docScroll=b.docScroll=
r.docScroll;b._getIeDocumentElementOffset=b.getIeDocumentElementOffset=r.getIeDocumentElementOffset;b._fixIeBiDiScrollLeft=b.fixIeBiDiScrollLeft=r.fixIeBiDiScrollLeft;b.position=r.position;b.marginBox=function(h,c){return c?r.setMarginBox(h,c):r.getMarginBox(h)};b.contentBox=function(h,c){return c?r.setContentSize(h,c):r.getContentBox(h)};b.coords=function(h,c){b.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");h=y.byId(h);var a=q.getComputedStyle(h);a=r.getMarginBox(h,a);h=
r.position(h,c);a.x=h.x;a.y=h.y;return a};b.getProp=t.get;b.setProp=t.set;b.prop=function(h,c,a){return 2==arguments.length?t["string"==typeof c?"get":"set"](h,c):t.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-attr":function(){define("exports ./sniff ./_base/lang ./dom ./dom-style ./dom-prop".split(" "),
function(b,y,q,w,t,m){function p(c,a){c=c.getAttributeNode&&c.getAttributeNode(a);return!!c&&c.specified}var r={innerHTML:1,textContent:1,className:1,htmlFor:y("ie")?1:0,value:1},h={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};b.has=function(c,a){var f=a.toLowerCase();return!!r[m.names[f]||a]||p(w.byId(c),h[f]||a)};b.get=function(c,a){c=w.byId(c);var f=a.toLowerCase(),e=m.names[f]||a,k=c[e];if(r[e]&&"undefined"!=typeof k)return k;if("textContent"==e)return m.get(c,e);if("href"!=
e&&("boolean"==typeof k||q.isFunction(k)))return k;a=h[f]||a;return p(c,a)?c.getAttribute(a):null};b.set=function(c,a,f){c=w.byId(c);if(2==arguments.length){for(var e in a)b.set(c,e,a[e]);return c}e=a.toLowerCase();var k=m.names[e]||a,l=r[k];if("style"==k&&"string"!=typeof f)return t.set(c,f),c;if(l||"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){w.byId(c).removeAttribute(h[a.toLowerCase()]||a)};b.getNodeProp=function(c,a){c=w.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-prop":function(){define("exports ./_base/kernel ./sniff ./_base/lang ./dom ./dom-style ./dom-construct ./_base/connect".split(" "),function(b,y,q,w,t,m,p,r){function h(e){var k="";e=e.childNodes;for(var l=0,d;d=e[l];l++)8!=d.nodeType&&(k=1==d.nodeType?k+h(d):k+d.nodeValue);return k}var c={},a=1,f=y._scopeName+"attrid";q.add("dom-textContent",function(e,k,l){return"textContent"in
l});b.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",textcontent:"textContent",valuetype:"valueType"};b.get=function(e,k){e=t.byId(e);var l=k.toLowerCase();k=b.names[l]||k;return"textContent"!=k||q("dom-textContent")?e[k]:h(e)};b.set=function(e,k,l){e=t.byId(e);if(2==arguments.length&&"string"!=typeof k){for(var d in k)b.set(e,d,k[d]);return e}d=k.toLowerCase();d=b.names[d]||k;if("style"==d&&"string"!=
typeof l)return m.set(e,l),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(l,e.ownerDocument))):e[d]=l,e;if("textContent"==d&&!q("dom-textContent"))return p.empty(e),e.appendChild(e.ownerDocument.createTextNode(l)),e;if(w.isFunction(l)){var u=e[f];u||(u=a++,e[f]=u);c[u]||(c[u]={});var x=c[u][d];if(x)r.disconnect(x);else try{delete e[d]}catch(n){}l?c[u][d]=r.connect(e,d,l):e[d]=null;return e}e[d]=
l;return e}})},"dojo/dom-construct":function(){define("exports ./_base/kernel ./sniff ./_base/window ./dom ./dom-attr".split(" "),function(b,y,q,w,t,m){function p(x,n){var v=n.parentNode;v&&v.insertBefore(x,n)}function r(x){if("innerHTML"in x)try{x.innerHTML="";return}catch(v){}for(var n;n=x.lastChild;)x.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="__"+y._scopeName+"ToDomId",k;for(k in h)h.hasOwnProperty(k)&&(y=h[k],y.pre="option"==k?'\x3cselect multiple\x3d"multiple"\x3e':"\x3c"+y.join("\x3e\x3c")+"\x3e",y.post="\x3c/"+y.reverse().join("\x3e\x3c/")+"\x3e");var l;8>=q("ie")&&(l=function(x){x.__dojo_html5_tested="yes";var n=d("div",{innerHTML:"\x3cnav\x3ea\x3c/nav\x3e",style:{visibility:"hidden"}},x.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){x.createElement(v)});u(n)});b.toDom=function(x,n){n=n||w.doc;var v=n[e];v||(n[e]=v=++f+"",a[v]=n.createElement("div"));8>=q("ie")&&!n.__dojo_html5_tested&&n.body&&l(n);x+="";var D=x.match(c),Q=D?D[1].toLowerCase():"";v=a[v];if(D&&h[Q])for(D=h[Q],v.innerHTML=D.pre+x+D.post,x=D.length;x;--x)v=v.firstChild;else v.innerHTML=x;if(1==v.childNodes.length)return v.removeChild(v.firstChild);for(x=n.createDocumentFragment();n=v.firstChild;)x.appendChild(n);return x};b.place=function(x,n,v){n=t.byId(n);
"string"==typeof x&&(x=/^\s*</.test(x)?b.toDom(x,n.ownerDocument):t.byId(x));if("number"==typeof v){var D=n.childNodes;!D.length||D.length<=v?n.appendChild(x):p(x,D[0>v?0:v])}else switch(v){case "before":p(x,n);break;case "after":v=x;(D=n.parentNode)&&(D.lastChild==n?D.appendChild(v):D.insertBefore(v,n.nextSibling));break;case "replace":n.parentNode.replaceChild(x,n);break;case "only":b.empty(n);n.appendChild(x);break;case "first":if(n.firstChild){p(x,n.firstChild);break}default:n.appendChild(x)}return x};
var d=b.create=function(x,n,v,D){var Q=w.doc;v&&(v=t.byId(v),Q=v.ownerDocument);"string"==typeof x&&(x=Q.createElement(x));n&&m.set(x,n);v&&b.place(x,v,D);return x};b.empty=function(x){r(t.byId(x))};var u=b.destroy=function(x){if(x=t.byId(x)){var n=x;x=x.parentNode;n.firstChild&&r(n);x&&(q("ie")&&x.canHaveChildren&&"removeNode"in n?n.removeNode(!1):x.removeChild(n))}}})},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(b,y,q){function w(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?y.filter(h,function(c){return c}):[]}var t,m=/\s+/,p=[""],r={};return t={contains:function(h,c){return 0<=(" "+q.byId(h).className+" ").indexOf(" "+c+" ")},add:function(h,c){h=q.byId(h);c=w(c);var a=h.className;a=a?" "+a+" ":" ";var f=a.length;for(var e=0,k=c.length,l;e<k;++e)(l=c[e])&&0>a.indexOf(" "+l+" ")&&(a+=l+" ");f<a.length&&(h.className=a.substr(1,
a.length-2))},remove:function(h,c){h=q.byId(h);if(void 0!==c){c=w(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);r.className=h.className;t.remove(r,a);t.add(r,c);h.className!==r.className&&(h.className=r.className)},toggle:function(h,c,a){h=q.byId(h);if(void 0===a){c=w(c);for(var f=0,e=c.length,k;f<e;++f)k=c[f],t[t.contains(h,k)?"remove":"add"](h,k)}else t[a?"add":
"remove"](h,c);return a}}})},"dojo/_base/NodeList":function(){define(["./kernel","../query","./array","./html","../NodeList-dom"],function(b,y,q){y=y.NodeList;var w=y.prototype;w.connect=y._adaptAsForEach(function(){return b.connect.apply(this,arguments)});w.coords=y._adaptAsMap(b.coords);y.events="blur focus change click error keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup submit".split(" ");q.forEach(y.events,function(t){var m="on"+t;w[m]=function(p,
r){return this.connect(m,p,r)}});return b.NodeList=y})},"dojo/query":function(){define("./_base/kernel ./has ./dom ./on ./_base/array ./_base/lang ./selector/_loader ./selector/_loader!default".split(" "),function(b,y,q,w,t,m,p,r){function h(n,v){var D=function(z,A){if("string"==typeof A&&(A=q.byId(A),!A))return new v([]);z="string"==typeof z?n(z,A):z?z.end&&z.on?z:[z]:[];return z.end&&z.on?z:new v(z)};D.matches=n.match||function(z,A,I){return 0<D.filter([z],A,I).length};D.filter=n.filter||function(z,
A,I){return D(A,I).filter(function(C){return-1<t.indexOf(z,C)})};if("function"!=typeof n){var Q=n.search;n=function(z,A){return Q(A||document,z)}}return D}y.add("array-extensible",function(){return 1==m.delegate([],{length:1}).length&&!y("bug-for-in-skips-shadowed")});var c=Array.prototype,a=c.slice,f=c.concat,e=t.forEach,k=function(n,v,D){v=[0].concat(a.call(v,0));D=D||b.global;return function(Q){v[0]=Q;return n.apply(D,v)}},l=function(n){var v=this instanceof d&&y("array-extensible");"number"==
typeof n&&(n=Array(n));var D=n&&"length"in n?n:arguments;if(v||!D.sort){for(var Q=v?this:[],z=Q.length=D.length,A=0;A<z;A++)Q[A]=D[A];if(v)return Q;D=Q}m._mixin(D,u);D._NodeListCtor=function(I){return d(I)};return D},d=l,u=d.prototype=y("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(k(n,arguments,v))}};d._adaptAsForEach=function(n,v){return function(){this.forEach(k(n,
arguments,v));return this}};d._adaptAsFilter=function(n,v){return function(){return this.filter(k(n,arguments,v))}};d._adaptWithCondition=function(n,v,D){return function(){var Q=arguments,z=k(n,Q,D);if(v.call(D||b.global,Q))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=t[n];u[n]=function(){return v.apply(b,[this].concat(a.call(arguments,
0)))}});m.extend(l,{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(Q){return w(Q,n,v)});D.remove=function(){for(var Q=0;Q<D.length;Q++)D[Q].remove()};return D},end:function(){return this._parent?this._parent:new this._NodeListCtor(0)},concat:function(n){var v=a.call(this,0),D=t.map(arguments,function(Q){return a.call(Q,0)});return this._wrap(f.apply(v,D),this)},map:function(n,v){return this._wrap(t.map(this,
n,v),this)},forEach:function(n,v){e(this,n,v);return this},filter:function(n){var v=arguments,D=this,Q=0;if("string"==typeof n){D=x._filterResult(this,v[0]);if(1==v.length)return D._stash(this);Q=1}return this._wrap(t.filter(D,v[Q],v[Q+1]),this)},instantiate:function(n,v){var D=m.isFunction(n)?n:m.getObject(n);v=v||{};return this.forEach(function(Q){new D(v,Q)})},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 x=h(r,l);b.query=h(r,function(n){return l(n)});x.load=function(n,v,D){p.load(n,v,function(Q){D(h(Q,l))})};b._filterQueryResult=x._filterResult=function(n,v,D){return new l(x.filter(n,v,D))};b.NodeList=x.NodeList=l;return x})},"dojo/selector/acme":function(){define(["../dom","../sniff","../_base/array","../_base/lang","../_base/window"],function(b,y,q,w,t){var m=w.trim,p=q.forEach,r="BackCompat"==t.doc.compatMode,h=!1,c=function(){return!0},a=function(E){E=0<="\x3e~+".indexOf(E.slice(-1))?E+" * ":
E+" ";for(var G=function(Ia,Ja){return m(E.slice(Ia,Ja))},M=[],P=-1,aa=-1,ba=-1,la=-1,Z=-1,ea=-1,pa=-1,ma,ua="",sa="",Fa,ja=0,Ha=E.length,fa=null,xa=null,za=function(){0<=ea&&(fa.id=G(ea,ja).replace(/\\/g,""),ea=-1);if(0<=pa){var Ia=pa==ja?null:G(pa,ja);fa[0>"\x3e~+".indexOf(Ia)?"tag":"oper"]=Ia;pa=-1}0<=Z&&(fa.classes.push(G(Z+1,ja).replace(/\\/g,"")),Z=-1)};ua=sa,sa=E.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<=P?"]"==sa?(xa.attr?xa.matchFor=G(ba||P+1,ja):xa.attr=G(P+1,ja),!(P=xa.matchFor)||'"'!=P.charAt(0)&&"'"!=P.charAt(0)||(xa.matchFor=P.slice(1,-1)),xa.matchFor&&(xa.matchFor=xa.matchFor.replace(/\\/g,"")),fa.attrs.push(xa),xa=null,P=ba=-1):"\x3d"==sa&&(ba=0<="|~^$*".indexOf(ua)?ua:"",xa.type=ba+sa,xa.attr=G(P+1,ja-ba.length),ba=ja+1):0<=aa?")"==sa&&(0<=la&&(xa.value=G(aa+1,ja)),la=aa=-1):"#"==sa?(za(),ea=ja+1):"."==sa?(za(),Z=
ja):":"==sa?(za(),la=ja):"["==sa?(za(),P=ja,xa={}):"("==sa?(0<=la&&(xa={name:G(la+1,ja),value:null},fa.pseudos.push(xa)),aa=ja):" "==sa&&ua!=sa&&(za(),0<=la&&fa.pseudos.push({name:G(la+1,ja)}),fa.loops=fa.pseudos.length||fa.attrs.length||fa.classes.length,fa.oquery=fa.query=G(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(E,G){return E?
G?function(){return E.apply(window,arguments)&&G.apply(window,arguments)}:E:G},e=function(E,G){G=G||[];E&&G.push(E);return G},k=function(E){return 1==E.nodeType},l=function(E,G){return E?"class"==G?E.className||"":"for"==G?E.htmlFor||"":"style"==G?E.style.cssText||"":(h?E.getAttribute(G):E.getAttribute(G,2))||"":""},d={"*\x3d":function(E,G){return function(M){return 0<=l(M,E).indexOf(G)}},"^\x3d":function(E,G){return function(M){return 0==l(M,E).indexOf(G)}},"$\x3d":function(E,G){return function(M){M=
" "+l(M,E);var P=M.lastIndexOf(G);return-1<P&&P==M.length-G.length}},"~\x3d":function(E,G){var M=" "+G+" ";return function(P){return 0<=(" "+l(P,E)+" ").indexOf(M)}},"|\x3d":function(E,G){var M=G+"-";return function(P){P=l(P,E);return P==G||0==P.indexOf(M)}},"\x3d":function(E,G){return function(M){return l(M,E)==G}}};w=t.doc.documentElement;var u=!(w.nextElementSibling||"nextElementSibling"in w),x=u?"nextSibling":"nextElementSibling",n=u?"previousSibling":"previousElementSibling",v=u?k:c,D=function(E){for(;E=
E[n];)if(v(E))return!1;return!0},Q=function(E){for(;E=E[x];)if(v(E))return!1;return!0},z=function(E){var G=E.parentNode;G=7!=G.nodeType?G:G.nextSibling;var M=0,P=G.children||G.childNodes,aa=E._i||E.getAttribute("_i")||-1,ba=G._l||("undefined"!==typeof G.getAttribute?G.getAttribute("_l"):-1);if(!P)return-1;P=P.length;if(ba==P&&0<=aa&&0<=ba)return aa;y("ie")&&"undefined"!==typeof G.setAttribute?G.setAttribute("_l",P):G._l=P;aa=-1;for(G=G.firstElementChild||G.firstChild;G;G=G[x])v(G)&&(y("ie")?G.setAttribute("_i",
++M):G._i=++M,E===G&&(aa=M));return aa},A=function(E){return!(z(E)%2)},I=function(E){return z(E)%2},C={checked:function(E,G){return function(M){return!("checked"in M?!M.checked:!M.selected)}},disabled:function(E,G){return function(M){return M.disabled}},enabled:function(E,G){return function(M){return!M.disabled}},"first-child":function(){return D},"last-child":function(){return Q},"only-child":function(E,G){return function(M){return D(M)&&Q(M)}},empty:function(E,G){return function(M){var P=M.childNodes;
for(M=M.childNodes.length-1;0<=M;M--){var aa=P[M].nodeType;if(1===aa||3==aa)return!1}return!0}},contains:function(E,G){E=G.charAt(0);if('"'==E||"'"==E)G=G.slice(1,-1);return function(M){return 0<=M.innerHTML.indexOf(G)}},not:function(E,G){E=a(G)[0];G={el:1};"*"!=E.tag&&(G.tag=1);E.classes.length||(G.classes=1);var M=B(E,G);return function(P){return!M(P)}},"nth-child":function(E,G){E=parseInt;if("odd"==G)return I;if("even"==G)return A;if(-1!=G.indexOf("n")){G=G.split("n",2);var M=G[0]?"-"==G[0]?-1:
E(G[0]):1,P=G[1]?E(G[1]):0,aa=0,ba=-1;0<M?0>P?P=P%M&&M+P%M:0<P&&(P>=M&&(aa=P-P%M),P%=M):0>M&&(M*=-1,0<P&&(ba=P,P%=M));if(0<M)return function(Z){Z=z(Z);return Z>=aa&&(0>ba||Z<=ba)&&Z%M==P};G=P}var la=E(G);return function(Z){return z(Z)==la}}},H=9>y("ie")||9==y("ie")&&y("quirks")?function(E){var G=E.toLowerCase();"class"==G&&(E="className");return function(M){return h?M.getAttribute(E):M[E]||M[G]}}:function(E){return function(G){return G&&G.getAttribute&&G.hasAttribute(E)}},B=function(E,G){if(!E)return c;
G=G||{};var M=null;"el"in G||(M=f(M,k));"tag"in G||"*"!=E.tag&&(M=f(M,function(P){return P&&(h?P.tagName:P.tagName.toUpperCase())==E.getTag()}));"classes"in G||p(E.classes,function(P,aa,ba){var la=new RegExp("(?:^|\\s)"+P+"(?:\\s|$)");M=f(M,function(Z){return la.test(Z.className)});M.count=aa});"pseudos"in G||p(E.pseudos,function(P){var aa=P.name;C[aa]&&(M=f(M,C[aa](aa,P.value)))});"attrs"in G||p(E.attrs,function(P){var aa,ba=P.attr;P.type&&d[P.type]?aa=d[P.type](ba,P.matchFor):ba.length&&(aa=H(ba));
aa&&(M=f(M,aa))});"id"in G||E.id&&(M=f(M,function(P){return!!P&&P.id==E.id}));M||"default"in G||(M=c);return M},K=function(E){return function(G,M,P){for(;G=G[x];)if(!u||k(G)){P&&!ia(G,P)||!E(G)||M.push(G);break}return M}},J=function(E){return function(G,M,P){for(G=G[x];G;){if(v(G)){if(P&&!ia(G,P))break;E(G)&&M.push(G)}G=G[x]}return M}},R=function(E,G){var M=function(P){var aa=[];try{aa=Array.prototype.slice.call(P)}catch(Z){for(var ba=0,la=P.length;ba<la;ba++)aa.push(P[ba])}return aa};E=E||c;return function(P,
aa,ba){var la=0,Z=[];Z=M(P.children||P.childNodes);for(G&&q.forEach(Z,function(ea){1===ea.nodeType&&(Z=Z.concat(M(ea.getElementsByTagName("*"))))});P=Z[la++];)v(P)&&(!ba||ia(P,ba))&&E(P,la)&&aa.push(P);return aa}},W=function(E,G){for(E=E.parentNode;E&&E!=G;)E=E.parentNode;return!!E},Y={},S=function(E){var G=Y[E.query];if(G)return G;var M=E.infixOper;M=M?M.oper:"";var P=B(E,{el:1}),aa="*"==E.tag,ba=t.doc.getElementsByClassName;if(M)ba={el:1},aa&&(ba.tag=1),P=B(E,ba),"+"==M?G=K(P):"~"==M?G=J(P):"\x3e"==
M&&(G=R(P));else if(E.id)P=!E.loops&&aa?c:B(E,{el:1,id:1}),G=function(Z,ea){var pa=b.byId(E.id,Z.ownerDocument||Z);Z.ownerDocument&&!W(Z,Z.ownerDocument)&&q.some(11===Z.nodeType?Z.childNodes:[Z],function(ma){ma=R(function(ua){return ua.id===E.id},!0)(ma,[]);if(ma.length)return pa=ma[0],!1});if(pa&&P(pa)&&(9==Z.nodeType||W(pa,Z)))return e(pa,ea)};else if(ba&&/\{\s*\[native code\]\s*\}/.test(String(ba))&&E.classes.length&&!r){P=B(E,{el:1,classes:1,id:1});var la=E.classes.join(" ");G=function(Z,ea,pa){ea=
e(0,ea);for(var ma,ua=0,sa=Z.getElementsByClassName(la);ma=sa[ua++];)P(ma,Z)&&ia(ma,pa)&&ea.push(ma);return ea}}else aa||E.loops?(P=B(E,{el:1,tag:1,id:1}),G=function(Z,ea,pa){ea=e(0,ea);for(var ma,ua=0,sa=(ma=E.getTag())?Z.getElementsByTagName(ma):[];ma=sa[ua++];)P(ma,Z)&&ia(ma,pa)&&ea.push(ma);return ea}):G=function(Z,ea,pa){ea=e(0,ea);var ma=0,ua=E.getTag();for(ua=ua?Z.getElementsByTagName(ua):[];Z=ua[ma++];)ia(Z,pa)&&ea.push(Z);return ea};return Y[E.query]=G},U={},L={},T=function(E){var G=a(m(E));
if(1==G.length){var M=S(G[0]);return function(P){if(P=M(P,[]))P.nozip=!0;return P}}return function(P){P=e(P);for(var aa,ba,la=G.length,Z,ea,pa=0;pa<la;pa++){ea=[];aa=G[pa];ba=P.length-1;0<ba&&(Z={},ea.nozip=!0);ba=S(aa);for(var ma=0;aa=P[ma];ma++)ba(aa,ea,Z);if(!ea.length)break;P=ea}return ea}},da=y("ie")?"commentStrip":"nozip",ha=!!t.doc.querySelectorAll,ca=/\\[>~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g,qa=function(E,G,M,P){return M?(G?G+" ":"")+M+(P?" "+P:""):E},ta=/([^[]*)([^\]]*])?/g,oa=function(E,
G,M){return G.replace(ca,qa)+(M||"")},va=function(E,G){E=E.replace(ta,oa);if(ha){var M=L[E];if(M&&!G)return M}if(M=U[E])return M;M=E.charAt(0);var P=-1==E.indexOf(" ");0<=E.indexOf("#")&&P&&(G=!0);if(!ha||G||-1!="\x3e~+".indexOf(M)||y("ie")&&-1!=E.indexOf(":")||r&&0<=E.indexOf(".")||-1!=E.indexOf(":contains")||-1!=E.indexOf(":checked")||-1!=E.indexOf("|\x3d")){var aa=E.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return U[E]=2>aa.length?T(E):function(la){for(var Z=0,ea=[],pa;pa=aa[Z++];)ea=
ea.concat(T(pa)(la));return ea}}var ba=0<="\x3e~+".indexOf(E.charAt(E.length-1))?E+" *":E;return L[E]=function(la){if(9==la.nodeType||P)try{var Z=la.querySelectorAll(ba);Z[da]=!0;return Z}catch(ea){}return va(E,!0)(la)}},na=0,ra=y("ie")?function(E){return h?E.getAttribute("_uid")||E.setAttribute("_uid",++na)||na:E.uniqueID}:function(E){return E._uid||(E._uid=++na)},ia=function(E,G){if(!G)return 1;E=ra(E);return G[E]?0:G[E]=1},wa=function(E){if(E&&E.nozip)return E;if(!E||!E.length)return[];if(2>E.length)return[E[0]];
var G=[];na++;var M,P;if(y("ie")&&h){var aa=na+"";for(M=0;M<E.length;M++)(P=E[M])&&P.getAttribute("_zipIdx")!=aa&&(G.push(P),P.setAttribute("_zipIdx",aa))}else if(y("ie")&&E.commentStrip)try{for(M=0;M<E.length;M++)(P=E[M])&&k(P)&&G.push(P)}catch(ba){}else for(M=0;M<E.length;M++)(P=E[M])&&P._zipIdx!=na&&(G.push(P),P._zipIdx=na);return G},ya=function(E,G){G=G||t.doc;h="div"===(G.ownerDocument||G).createElement("div").tagName;return(E=va(E)(G))&&E.nozip?E:wa(E)};ya.filter=function(E,G,M){var P=[],aa=
a(G);aa=1!=aa.length||/[^\w#\.]/.test(G)?function(Z){return-1!=q.indexOf(ya(G,b.byId(M)),Z)}:B(aa[0]);for(var ba=0,la;la=E[ba];ba++)aa(la)&&P.push(la);return P};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,y,q,w,t,m,p,r,h){function c(u){return function(x,n,v){return 2==arguments.length?u["string"==typeof n?"get":"set"](x,n):u.set(x,n,v)}}var a=function(u){return 1==
u.length&&"string"==typeof u[0]},f=function(u){var x=u.parentNode;x&&x.removeChild(u)},e=y.NodeList,k=e._adaptWithCondition,l=e._adaptAsForEach,d=e._adaptAsMap;w.extend(e,{_normalize:function(u,x){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,x&&x.ownerDocument),u=11==u.nodeType?w._toArray(u.childNodes):[u]):w.isArrayLike(u)?w.isArray(u)||(u=w._toArray(u)):u=[u];n&&(u._runParse=
!0);return u},_cloneNode:function(u){return u.cloneNode(!0)},_place:function(u,x,n,v){if(1==x.nodeType||"only"!=n)for(var D,Q=u.length,z=Q-1;0<=z;z--){var A=v?this._cloneNode(u[z]):u[z];if(u._runParse&&b.parser&&b.parser.parse)for(D||(D=x.ownerDocument.createElement("div")),D.appendChild(A),b.parser.parse(D),A=D.firstChild;D.firstChild;)D.removeChild(D.firstChild);z==Q-1?m.place(A,x,n):x.parentNode.insertBefore(A,x);x=A}},position:d(p.position),attr:k(c(r),a),style:k(c(h),a),addClass:l(t.add),removeClass:l(t.remove),
toggleClass:l(t.toggle),replaceClass:l(t.replace),empty:l(m.empty),removeAttr:l(r.remove),marginBox:d(p.getMarginBox),place:function(u,x){var n=y(u)[0];return this.forEach(function(v){m.place(v,n,x)})},orphan:function(u){return(u?y._filterResult(this,u):this).forEach(f)},adopt:function(u,x){return y(u).place(this[0],x)._stash(this)},query:function(u){if(!u)return this;var x=new e;this.map(function(n){y(u,n).forEach(function(v){void 0!==v&&x.push(v)})});return x._stash(this)},filter:function(u){var x=
arguments,n=this,v=0;if("string"==typeof u){n=y._filterResult(this,x[0]);if(1==x.length)return n._stash(this);v=1}return this._wrap(q.filter(n,x[v],x[v+1]),this)},addContent:function(u,x){u=this._normalize(u,this[0]);for(var n=0,v;v=this[n];n++)u.length?this._place(u,v,x,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,y,q,w,t,m,p,r,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 w;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(y.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 k=0,l=null,d={run:function(){}};
q.extend(e,{_startTimer:function(){this._timer||(this._timer=m.after(d,"run",q.hitch(this,"_cycle"),!0),k++);l||(l=setInterval(q.hitch(d,"run"),this.rate))},_stopTimer:function(){this._timer&&(this._timer.remove(),this._timer=null,k--);0>=k&&(clearInterval(l),l=null,k=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=r.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 x=function(n){this._properties=n;for(var v in n){var D=n[v];D.start instanceof t&&(D.tempColor=new t)}};x.prototype.getValue=function(n){var v={},D;for(D in this._properties){var Q=
this._properties[D],z=Q.start;z instanceof t?v[D]=t.blendColors(z,Q.end,n,Q.tempColor).toCss():q.isArray(z)||(v[D]=(Q.end-z)*n+z+("opacity"!=D?Q.units||"px":0))}return v};a.animateProperty=function(n){var v=n.node=r.byId(n.node);n.easing||(n.easing=b._defaultEasing);n=new e(n);m.after(n,"beforeBegin",q.hitch(n,function(){var D={},Q;for(Q in this.properties){if("width"==Q||"height"==Q)this.node.display="block";var z=this.properties[Q];q.isFunction(z)&&(z=z(v));z=D[Q]=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 A=0<=Q.toLowerCase().indexOf("color"),I=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:A?B:parseFloat(B)};"end"in z?"start"in z||(z.start=I(v,Q)):z.end=I(v,Q);A?(z.start=new t(z.start),z.end=new t(z.end)):z.start="opacity"==Q?+z.start:parseFloat(z.start)}this.curve=new x(D)}),!0);m.after(n,"onAnimate",q.hitch(h,"set",n.node),!0);return n};
a.anim=function(n,v,D,Q,z,A){return a.animateProperty({node:n,duration:D||e.prototype.duration,properties:v,easing:Q,onEnd:z}).play(A||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.45/esri/copyright.txt for details.
//>>built
require({cache:{"dojo/fx/Toggler":function(){define(["../_base/lang","../_base/declare","../_base/fx","../aspect"],function(F,u,b,p){return u("dojo.fx.Toggler",null,{node:null,showFunc:b.fadeIn,hideFunc:b.fadeOut,showDuration:200,hideDuration:200,constructor:function(e){F.mixin(this,e);this.node=e.node;this._showArgs=F.mixin({},e);this._showArgs.node=this.node;this._showArgs.duration=this.showDuration;this.showAnim=this.showFunc(this._showArgs);this._hideArgs=F.mixin({},e);this._hideArgs.node=this.node;
this._hideArgs.duration=this.hideDuration;this.hideAnim=this.hideFunc(this._hideArgs);p.after(this.showAnim,"beforeBegin",F.hitch(this.hideAnim,"stop",!0),!0);p.after(this.hideAnim,"beforeBegin",F.hitch(this.showAnim,"stop",!0),!0)},show:function(e){return this.showAnim.play(e||0)},hide:function(e){return this.hideAnim.play(e||0)}})})},"dijit/_base/manager":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/lang","../registry","../main"],function(F,u,b,p,e){var y={};F.forEach("byId getUniqueId findWidgets _destroyAll byNode getEnclosingWidget".split(" "),
function(q){y[q]=p[q]});b.mixin(y,{defaultDuration:u.defaultDuration||200});b.mixin(e,y);return e})},"dijit/registry":function(){define(["dojo/_base/array","dojo/_base/window","./main"],function(F,u,b){var p={},e={},y={length:0,add:function(q){if(e[q.id])throw Error("Tried to register widget with id\x3d\x3d"+q.id+" but that id is already registered");e[q.id]=q;this.length++},remove:function(q){e[q]&&(delete e[q],this.length--)},byId:function(q){return"string"==typeof q?e[q]:q},byNode:function(q){return e[q.getAttribute("widgetId")]},
toArray:function(){var q=[],m;for(m in e)q.push(e[m]);return q},getUniqueId:function(q){do var m=q+"_"+(q in p?++p[q]:p[q]=0);while(e[m]);return"dijit"==b._scopeName?m:b._scopeName+"_"+m},findWidgets:function(q,m){function f(a){for(a=a.firstChild;a;a=a.nextSibling)if(1==a.nodeType){var d=a.getAttribute("widgetId");d?(d=e[d])&&g.push(d):a!==m&&f(a)}}var g=[];f(q);return g},_destroyAll:function(){b._curFocus=null;b._prevFocus=null;b._activeStack=[];F.forEach(y.findWidgets(u.body()),function(q){q._destroyed||
(q.destroyRecursive?q.destroyRecursive():q.destroy&&q.destroy())})},getEnclosingWidget:function(q){for(;q;){var m=1==q.nodeType&&q.getAttribute("widgetId");if(m)return e[m];q=q.parentNode}return null},_hash:e};return b.registry=y})},"dijit/main":function(){define(["dojo/_base/kernel"],function(F){return F.dijit})},"esri/main":function(){define(["./kernel","dojo/i18n!./nls/jsapi","./config","./sniff"],function(F,u){F.bundle=u;return F})},"esri/kernel":function(){define(["dojo/_base/kernel","dojo/_base/config",
"dojo/has"],function(F,u,b){var p=function(){return this}(),e=p.location,y=e.pathname,q=e.protocol;e={version:"3.45",_appBaseUrl:q+"//"+e.host+y.substring(0,y.lastIndexOf(y.split("/")[y.split("/").length-1]))};u.noGlobals||(p.esri=e);F.isAsync||b.add("extend-esri",1);(e.dijit=e.dijit||{})._arcgisUrl=("http:"===q||"https:"===q?q:"http:")+"//www.arcgis.com/sharing/rest";return e})},"esri/config":function(){define(["dojo/_base/config","dojo/topic","dojo/has","./kernel"],function(F,u,b,p){var e=function(){return this}(),
y={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:e.Worker&&!1,io:{errorHandler:function(q,m){u.publish("esri.Error",[q])},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:e.cordova?!1:!0,corsDetectionTimeout:15,corsStatus:{},crossOriginNoCorsDomains:null,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")&&(p.config=y);F.noGlobals||
(e.esriConfig=y);return y})},"esri/sniff":function(){define(["dojo/_base/sniff","dojo/global","./kernel"],function(F,u,b){var p=F("ff"),e=F("ie"),y=void 0===e&&7<=F("trident"),q=F("edge"),m=F("webkit"),f=F("opera"),g=F("chrome"),a=F("safari"),d=navigator.userAgent,l;(l=d.match(/(iPhone|iPad|CPU)\s+OS\s+(\d+_\d+)/i))&&F.add("esri-iphone",parseFloat(l[2].replace("_",".")));(l=d.match(/Android\s+(\d+(\.\d+)*)/i))&&F.add("esri-android",parseFloat(l[1]));(l=d.match(/Fennec\/(\d+\.\d+)/i))&&F.add("esri-fennec",
parseFloat(l[1]));0<=d.indexOf("BlackBerry")&&0<=d.indexOf("WebKit")&&F.add("esri-blackberry",1);F.add("esri-touch",F("esri-iphone")||F("esri-android")||F("esri-blackberry")||6<=F("esri-fennec")||(p||m)&&(document.createTouch||"ontouchstart"in u||u.TouchEvent&&0<navigator.maxTouchPoints)?!0:!1);(l=d.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i))&&F.add("esri-mobile",!!l);F.add("esri-pointer",!p&&(navigator.pointerEnabled||navigator.msPointerEnabled||!!u.PointerEvent));b._getDOMAccessor=
function(n){var h="";p?h="Moz":m?h="Webkit":e?h="ms":f&&(h="O");return h+n.charAt(0).toUpperCase()+n.substr(1)};F.add("esri-phonegap",!!u.cordova);F.add("esri-cors",F("esri-phonegap")||u.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest);F.add("esri-file-upload",u.FormData&&u.FileList?!0:!1);F.add("esri-script-sandbox",function(){return"MessageChannel"in u&&"HTMLIFrameElement"in u&&"sandbox"in HTMLIFrameElement.prototype});F.add("esri-secure-context",function(){if("isSecureContext"in u)return u.isSecureContext;
if(u.location&&u.location.origin)return 0===u.location.origin.indexOf("https:")});F.add("esri-wasm","WebAssembly"in u);F.add("esri-workers",u.Worker?!0:!1);F.add("esri-featurelayer-webgl",!1);if(d=F("esri-featurelayer-webgl")){var k=F("esri-mobile");l=k?1:2;k=k?1:3;"object"===typeof d?(d.maxDrillLevel=null==d.maxDrillLevel?l:d.maxDrillLevel,d.maxRecordCountFactor=null==d.maxRecordCountFactor?k:d.maxRecordCountFactor,d.enablePBFQuery=null==d.enablePBFQuery?!0:d.enablePBFQuery):F.add("esri-featurelayer-webgl",
{maxDrillLevel:l,maxRecordCountFactor:k,enablePBFQuery:!0},null,!0)}F.add("esri-featurelayer-webgl-labeling",!1);F.add("esri-pbf",!e||10<=e);F.add("esri-featurelayer-pbf",!0);F.add("esri-transforms",y||q||9<=e||3.5<=p||4<=g||3.1<=a||10.5<=f||3.2<=F("esri-iphone")||2.1<=F("esri-android"));F.add("esri-transitions",y||q||10<=e||4<=p||4<=g||3.1<=a||10.5<=f||3.2<=F("esri-iphone")||2.1<=F("esri-android"));F.add("esri-transforms3d",y||q||10<=p||12<=g||4<=a||3.2<=F("esri-iphone")||3<=F("esri-android"));F.add("esri-url-encodes-apostrophe",
function(){if(!u.document)return!1;var n=u.document.createElement("a");n.href="?'";return-1<n.href.indexOf("?%27")});3>F("esri-android")&&(F.add("esri-transforms",!1,!1,!0),F.add("esri-transitions",!1,!1,!0),F.add("esri-transforms3d",!1,!1,!0));F.add("esri-will-change",F("esri-transforms")&&(52<=g||11.1<=a));b._css=function(n){var h=F("esri-transforms3d");void 0!==n&&null!==n?h=n:h&&(g||a&&!F("esri-iphone"))&&(h=!1);var c=h?"translate3d(":"translate(",r=h?g?",-1px)":",0px)":")",v=h?"scale3d(":"scale(",
z=h?",1)":")",C=h?"rotate3d(0,0,1,":"rotate(",x=h?"matrix3d(":"matrix(",E=h?",0,0,":",",B=h?",0,0,0,0,1,0,":",",w=h?",0,1)":")";return{names:{transition:m&&"-webkit-transition"||p&&"MozTransition"||f&&"OTransition"||e&&"msTransition"||"transition",transform:m&&"-webkit-transform"||p&&"MozTransform"||f&&"OTransform"||e&&"msTransform"||"transform",transformName:m&&"-webkit-transform"||p&&"-moz-transform"||f&&"-o-transform"||e&&"-ms-transform"||"transform",origin:m&&"-webkit-transform-origin"||p&&"MozTransformOrigin"||
f&&"OTransformOrigin"||e&&"msTransformOrigin"||"transformOrigin",endEvent:m&&"webkitTransitionEnd"||p&&"transitionend"||f&&"oTransitionEnd"||e&&"MSTransitionEnd"||"transitionend"},translate:function(D,t){return c+D+"px,"+t+"px"+r},scale:function(D){return v+D+","+D+z},rotate:function(D){return C+D+"deg)"},matrix:function(D){return x+D.xx+","+D.xy+E+D.yx+","+D.yy+B+D.dx.toFixed(10)+(p&&59>=p?"px,":",")+D.dy.toFixed(10)+(p&&59>=p?"px":"")+w},getScaleFromMatrix:function(D){if(!D)return 1;D=D.toLowerCase();
var t=-1<D.indexOf("matrix3d")?"matrix3d(":"matrix(";return Number(D.substring(t.length,D.indexOf(",")))}}};F("extend-esri")&&(b.isiPhone=F("esri-iphone"),b.isAndroid=F("esri-android"),b.isFennec=F("esri-fennec"),b.isBlackBerry=F("esri-blackberry"),b.isTouchEnabled=F("esri-touch"),b.isPointerEnabled=F("esri-pointer"),b._hasCors=F("esri-cors"),b._hasFileUpload=F("esri-file-upload"),b._hasTransforms=F("esri-transforms"),b._hasTransitions=F("esri-transitions"),b._has3DTransforms=F("esri-transforms3d"));
return F})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r,v,z,C,x,E,B){var w={up:"panUp",right:"panRight",down:"panDown",
left:"panLeft"},D={upperRight:"panUpperRight",lowerRight:"panLowerRight",lowerLeft:"panLowerLeft",upperLeft:"panUpperLeft"},t=p.connect,A=p.disconnect,G=l.create,J=n.set,U=e.hitch,ja=k.getMarginBox,Z=u.deprecated,fa=e.mixin,qa=0;u=b(x,{declaredClass:"esri.Map",constructor:function(V,ea){ea=ea||{};fa(this,{_slider:null,_navDiv:null,_mapParams:fa({attributionWidth:.45,slider:!0,nav:!1,logo:!0,sliderStyle:"small",sliderPosition:"top-left",sliderOrientation:"vertical",autoResize:!0},ea)});fa(this,{isMapNavigation:null!=
ea.isMapNavigation?ea.isMapNavigation:!0,isDoubleClickZoom:null!=ea.isDoubleClickZoom?ea.isDoubleClickZoom:!0,isClickRecenter:null!=ea.isClickRecenter?ea.isClickRecenter:!0,isPan:null!=ea.isPan?ea.isPan:!0,isRubberBandZoom:null!=ea.isRubberBandZoom?ea.isRubberBandZoom:!0,isPinchZoom:null!=ea.isPinchZoom?ea.isPinchZoom:!0,isKeyboardNavigation:null!=ea.isKeyboardNavigation?ea.isKeyboardNavigation:!0,isScrollWheel:null!=ea.isScrollWheel?ea.isScrollWheel:!0,isShiftDoubleClickZoom:!1,isScrollWheelZoom:!1,
isPanArrows:!1,isZoomSlider:!1});e.isFunction(r._css)&&(r._css=r._css(this._mapParams.force3DTransforms),this.force3DTransforms=this._mapParams.force3DTransforms);V=z("esri-transforms")&&z("esri-transitions");this.navigationMode=this._mapParams.navigationMode||V&&"css-transforms"||"classic";"css-transforms"!==this.navigationMode||V||(this.navigationMode="classic");this.fadeOnZoom=C.isDefined(this._mapParams.fadeOnZoom)?this._mapParams.fadeOnZoom:"css-transforms"===this.navigationMode;"css-transforms"!==
this.navigationMode&&(this.fadeOnZoom=!1);this.setMapCursor("default");this.smartNavigation=ea&&ea.smartNavigation;if(!(C.isDefined(this.smartNavigation)||!z("mac")||z("esri-touch")||z("esri-pointer")||3.5>=z("ff"))){var ba=navigator.userAgent.match(/Mac\s+OS\s+X\s+([\d]+)(\.|_)([\d]+)\D/i);ba&&C.isDefined(ba[1])&&C.isDefined(ba[3])&&(V=parseInt(ba[1],10),ba=parseInt(ba[3],10),this.smartNavigation=10<V||10===V&&6<=ba)}V=!0;V=!1;this.showAttribution=C.isDefined(this._mapParams.showAttribution)?this._mapParams.showAttribution:
V;this._onLoadHandler_connect=t(this,"onLoad",this,"_onLoadInitNavsHandler");var ma=G("div",{class:"esriControlsBR"+(this._mapParams.nav?" withPanArrows":"")},this.root);if(this.showAttribution)if(V=e.getObject("esri.dijit.Attribution",!1))this._initAttribution(V,ma);else{var va=qa++,da=this;this._rids&&this._rids.push(va);F(["./dijit/Attribution"],function(ka){var I=da._rids?y.indexOf(da._rids,va):-1;-1!==I&&(da._rids.splice(I,1),da._initAttribution(ka,ma))})}this._mapParams.logo&&(V={},6===z("ie")&&
(V.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled\x3d'true', sizingMethod\x3d'crop', src\x3d'"+F.toUrl("./images/map/logo-med.png")+"')"),this._ogol=G("div",{style:V,tabIndex:"0",title:"Esri"},ma),this._setLogoSize(),this._onMapResizeLogo_connect=t(this,"onResize",this,"_setLogoSize"),this._ogol_connect=t(this._ogol,h,this,"_openLogoLink"));this.navigationManager=new E(this);ea&&ea.basemap&&(this._onLoadFix=!0,this.setBasemap(ea.basemap),this._onLoadFix=!1);if(this.autoResize=
this._mapParams.autoResize)ea=this._getEnclosingResizableWidget(this.container)||window,V=this.resize,this._rszSignal=m.pausable(ea,"resize",V),this._oriSignal=m.pausable(window,"orientationchange",V),f.after(ea,"resize",V,!0),this._startResizeTimer()},_startResizeTimer:function(){clearTimeout(this._persistentTimer);this._persistentTimer=setTimeout(this._timedResize,2*this.resizeDelay)},_getEnclosingResizableWidget:function(V){var ea=c.getEnclosingWidget(V);return ea?ea.resize?ea:this._getEnclosingResizableWidget(V.parentNode):
ea},_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(V,ea){ea=G("span",{class:"esriAttribution"},ea,"first");J(ea,"maxWidth",Math.floor(this.width*this._mapParams.attributionWidth)+"px");this._connects.push(t(ea,h,function(){d.contains(this,"esriAttributionOpen")?d.remove(this,"esriAttributionOpen"):this.scrollWidth>
this.clientWidth&&d.add(this,"esriAttributionOpen")}));this.attribution=new V({map:this},ea)},_cleanUp:function(){this.disableMapNavigation();this.navigationManager.destroy();var V=this._slider;V&&V.destroy&&!V._destroyed&&V.destroy();V=this._navDiv;var ea=this.attribution;V&&l.destroy(V);ea&&ea.destroy();this._connects.push(this._slider_connect,this._ogol_connect,this._rszSignal,this._oriSignal);y.forEach(this._connects,A);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(V){var ea=this.getLevel();return!this.__tileInfo||!(ea===this.getMinZoom()&&0>V||ea===this.getMaxZoom()&&0<V)},_onLoadInitNavsHandler:function(){this._evalMapNavigation();this._createNav();if("small"===this._mapParams.sliderStyle||!this._createSlider)this._createSimpleSlider();
else if(this._mapParams.slider){var V=-1!==this._getSliderClass(!0).indexOf("Horizontal");V=[V?"dijit.form.HorizontalSlider":"dijit.form.VerticalSlider",V?"dijit.form.HorizontalRule":"dijit.form.VerticalRule",V?"dijit.form.HorizontalRuleLabels":"dijit.form.VerticalRuleLabels"];if(y.some(V,function(ma){return!e.getObject(ma,!1)})){V=y.map(V,function(ma){return ma.replace(/\./g,"/")});var ea=qa++,ba=this;this._rids&&this._rids.push(ea);F(V,function(){var ma=ba._rids?y.indexOf(ba._rids,ea):-1;-1!==ma&&
(ba._rids.splice(ma,1),ba._createSlider.apply(ba,arguments))})}else V=y.map(V,function(ma){return e.getObject(ma,!1)}),this._createSlider.apply(this,V)}A(this._onLoadHandler_connect)},_createNav:function(){if(this._mapParams.nav){var V,ea=d.add,ba=this.id;this._navDiv=G("div",{id:ba+"_navdiv"},this.root);ea(this._navDiv,"navDiv");var ma=this.width/2,va=this.height/2;for(V in w){var da=w[V];var ka=G("div",{id:ba+"_pan_"+V},this._navDiv);ea(ka,"fixedPan "+da);if("up"===V||"down"===V){var I=parseInt(ja(ka).w,
10)/2;J(ka,{left:ma-I+"px",zIndex:30})}else I=parseInt(ja(ka).h,10)/2,J(ka,{top:va-I+"px",zIndex:30});this._connects.push(t(ka,"onclick",U(this,this[da])))}this._onMapResizeNavHandler_connect=t(this,"onResize",this,"_onMapResizeNavHandler");for(V in D)da=D[V],ka=G("div",{id:ba+"_pan_"+V,style:{zIndex:30}},this._navDiv),ea(ka,"fixedPan "+da),this._connects.push(t(ka,"onclick",U(this,this[da])));this.isPanArrows=!0}},_onMapResizeNavHandler:function(V,ea,ba){V=this.id;ea/=2;ba/=2;var ma=g.byId,va;for(va in w){var da=
ma(V+"_pan_"+va);if("up"===va||"down"===va){var ka=parseInt(ja(da).w,10)/2;J(da,"left",ea-ka+"px")}else ka=parseInt(ja(da).h,10)/2,J(da,"top",ba-ka+"px")}},_createSimpleSlider:function(){if(this._mapParams.slider){var V=this._slider=G("div",{id:this.id+"_zoom_slider",class:this._getSliderClass(),style:{zIndex:30}}),ea=G("div",{class:"esriSimpleSliderIncrementButton",tabIndex:"0",role:"button"},V),ba=G("div",{class:"esriSimpleSliderDecrementButton",tabIndex:"0",role:"button"},V);this._addZoomButtonTooltips(ea,
ba);this._incButton=ea;this._decButton=ba;this._simpleSliderZoomHandler(null,null,null,this.getLevel());var ma=B.widgets.zoomSlider;this._addZoomButtonIcon(ea,"+",ma.zoomIn);this._addZoomButtonIcon(ba,"\x26minus;",ma.zoomOut);8>z("ie")&&d.add(ba,"dj_ie67Fix");this._connects.push(t(ea,h,this,this._simpleSliderChangeHandler));this._connects.push(t(ba,h,this,this._simpleSliderChangeHandler));(-1<this.getMaxZoom()||-1<this.getMinZoom())&&this._connects.push(t(this,"onZoomEnd",this,this._simpleSliderZoomHandler));
10>z("ie")&&g.setSelectable(V,!1);this.root.appendChild(V);this.isZoomSlider=!0}},_simpleSliderChangeHandler:function(V){q.stop(V);V=-1!==V.currentTarget.className.indexOf("IncrementButton")?!0:!1;this._extentUtil({numLevels:V?1:-1})},_simpleSliderZoomHandler:function(V,ea,ba,ma){var va;V=this._incButton;ea=this._decButton;-1<ma&&ma===this.getMaxZoom()?va=V:-1<ma&&ma===this.getMinZoom()&&(va=ea);va?(d.add(va,"esriSimpleSliderDisabledButton"),d.remove(va===V?ea:V,"esriSimpleSliderDisabledButton")):
(d.remove(V,"esriSimpleSliderDisabledButton"),d.remove(ea,"esriSimpleSliderDisabledButton"))},_getSliderClass:function(V){V=V?"Large":"Simple";var ea=this._mapParams.sliderOrientation,ba=this._mapParams.sliderPosition||"";ea=ea&&"horizontal"===ea.toLowerCase()?"esri"+V+"SliderHorizontal":"esri"+V+"SliderVertical";if(ba)switch(ba.toLowerCase()){case "top-left":ba="esri"+V+"SliderTL";break;case "top-right":ba="esri"+V+"SliderTR";break;case "bottom-left":ba="esri"+V+"SliderBL";break;case "bottom-right":ba=
"esri"+V+"SliderBR"}return"esri"+V+"Slider "+ea+" "+ba},_addZoomButtonIcon:function(V,ea,ba){l.create("span",{"aria-hidden":"true",role:"presentation",innerHTML:ea},V);l.create("span",{class:"esriIconFallbackText",innerHTML:ba},V)},_addZoomButtonTooltips:function(V,ea){var ba=B.widgets.zoomSlider;a.set(V,"title",ba.zoomIn);a.set(ea,"title",ba.zoomOut)},_openLogoLink:function(V){window.open(v.defaults.map.logoLink,"_blank");q.stop(V)},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(V){if(this.isMapNavigation&&this["is"+V])this.navigationManager["enable"+V]();else this.navigationManager["disable"+V]()},enableDoubleClickZoom:function(){this.isDoubleClickZoom||(this.isDoubleClickZoom=
!0,this._evalNavigationFeature("DoubleClickZoom"))},disableDoubleClickZoom:function(){this.isDoubleClickZoom&&(this.isDoubleClickZoom=!1,this._evalNavigationFeature("DoubleClickZoom"))},enableShiftDoubleClickZoom:function(){this.isShiftDoubleClickZoom||(Z(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&&
(Z(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&&(J(this._slider.domNode||this._slider,"visibility","inherit"),this.isZoomSlider=!0)},hideZoomSlider:function(){this._slider&&(J(this._slider.domNode||this._slider,"visibility","hidden"),this.isZoomSlider=!1)},onClick:function(V){V.graphic||
(V.graphic=this.syncHitTestForWebGL(V))}});z("extend-esri")&&(r.Map=u);return u})},"dijit/a11yclick":function(){define(["dojo/keys","dojo/mouse","dojo/on","dojo/touch"],function(F,u,b,p){function e(m){if((m.keyCode===F.ENTER||m.keyCode===F.SPACE)&&!/input|button|textarea/i.test(m.target.nodeName))for(m=m.target;m;m=m.parentNode)if(m.dojoClick)return!0}var y;b(document,"keydown",function(m){e(m)?(y=m.target,m.preventDefault()):y=null});b(document,"keyup",function(m){e(m)&&m.target==y&&(y=null,b.emit(m.target,
"click",{cancelable:!0,bubbles:!0,ctrlKey:m.ctrlKey,shiftKey:m.shiftKey,metaKey:m.metaKey,altKey:m.altKey,_origType:m.type}))});var q=function(m,f){m.dojoClick=!0;return b(m,"click",f)};q.click=q;q.press=function(m,f){var g=b(m,p.press,function(d){("mousedown"!=d.type||u.isLeft(d))&&f(d)}),a=b(m,"keydown",function(d){d.keyCode!==F.ENTER&&d.keyCode!==F.SPACE||f(d)});return{remove:function(){g.remove();a.remove()}}};q.release=function(m,f){var g=b(m,p.release,function(d){("mouseup"!=d.type||u.isLeft(d))&&
f(d)}),a=b(m,"keyup",function(d){d.keyCode!==F.ENTER&&d.keyCode!==F.SPACE||f(d)});return{remove:function(){g.remove();a.remove()}}};q.move=p.move;return q})},"dojo/touch":function(){define("./_base/kernel ./aspect ./dom ./dom-class ./_base/lang ./on ./has ./mouse ./domReady ./_base/window".split(" "),function(F,u,b,p,e,y,q,m,f,g){function a(G,J,U){return n&&U?function(ja,Z){return y(ja,U,Z)}:c?function(ja,Z){var fa=y(ja,J,function(V){Z.call(this,V);t=(new Date).getTime()}),qa=y(ja,G,function(V){(!t||
(new Date).getTime()>t+1E3)&&Z.call(this,V)});return{remove:function(){fa.remove();qa.remove()}}}:function(ja,Z){return y(ja,G,Z)}}function d(G){do if(void 0!==G.dojoClick)return G;while(G=G.parentNode)}function l(G,J,U){if(!m.isRight(G)){var ja=d(G.target);if(v=!G.target.disabled&&ja&&ja.dojoClick)if(C=(z="useTarget"==v)?ja:G.target,z&&G.preventDefault(),x=G.changedTouches?G.changedTouches[0].pageX-g.global.pageXOffset:G.clientX,E=G.changedTouches?G.changedTouches[0].pageY-g.global.pageYOffset:G.clientY,
B=("object"==typeof v?v.x:"number"==typeof v?v:0)||4,w=("object"==typeof v?v.y:"number"==typeof v?v:0)||4,!r){r=!0;var Z=function(fa){v=z?b.isDescendant(g.doc.elementFromPoint(fa.changedTouches?fa.changedTouches[0].pageX-g.global.pageXOffset:fa.clientX,fa.changedTouches?fa.changedTouches[0].pageY-g.global.pageYOffset:fa.clientY),C):v&&(fa.changedTouches?fa.changedTouches[0].target:fa.target)==C&&Math.abs((fa.changedTouches?fa.changedTouches[0].pageX-g.global.pageXOffset:fa.clientX)-x)<=B&&Math.abs((fa.changedTouches?
fa.changedTouches[0].pageY-g.global.pageYOffset:fa.clientY)-E)<=w};g.doc.addEventListener(J,function(fa){m.isRight(fa)||(Z(fa),z&&fa.preventDefault())},!0);g.doc.addEventListener(U,function(fa){if(!m.isRight(fa)&&(Z(fa),v)){D=(new Date).getTime();var qa=z?C:fa.target;"LABEL"===qa.tagName&&(qa=b.byId(qa.getAttribute("for"))||qa);var V=fa.changedTouches?fa.changedTouches[0]:fa,ea=function(da){var ka=document.createEvent("MouseEvents");ka._dojo_click=!0;ka.initMouseEvent(da,!0,!0,fa.view,fa.detail,V.screenX,
V.screenY,V.clientX,V.clientY,fa.ctrlKey,fa.altKey,fa.shiftKey,fa.metaKey,0,null);return ka},ba=ea("mousedown"),ma=ea("mouseup"),va=ea("click");setTimeout(function(){y.emit(qa,"mousedown",ba);y.emit(qa,"mouseup",ma);y.emit(qa,"click",va);D=(new Date).getTime()},0)}},!0);G=function(fa){g.doc.addEventListener(fa,function(qa){var V=qa.target;v&&!qa._dojo_click&&(new Date).getTime()<=D+1E3&&("INPUT"!=V.tagName||!p.contains(V,"dijitOffScreen"))&&(qa.stopPropagation(),qa.stopImmediatePropagation&&qa.stopImmediatePropagation(),
"click"==fa&&("INPUT"!=V.tagName||"radio"==V.type&&(p.contains(V,"dijitCheckBoxInput")||p.contains(V,"mblRadioButton"))||"checkbox"==V.type&&(p.contains(V,"dijitCheckBoxInput")||p.contains(V,"mblCheckBox")))&&"TEXTAREA"!=V.tagName&&"AUDIO"!=V.tagName&&"VIDEO"!=V.tagName&&qa.preventDefault())},!0)};G("click");G("mousedown");G("mouseup")}}}var k=5>q("ios"),n=q("pointer-events")||q("MSPointer"),h=function(){var G={},J;for(J in{down:1,move:1,up:1,cancel:1,over:1,out:1})G[J]=q("MSPointer")?"MSPointer"+
J.charAt(0).toUpperCase()+J.slice(1):"pointer"+J;return G}(),c=q("touch-events"),r,v,z=!1,C,x,E,B,w,D,t,A;q("touch")&&(n?f(function(){g.doc.addEventListener(h.down,function(G){l(G,h.move,h.up)},!0)}):f(function(){function G(J){var U=e.delegate(J,{bubbles:!0});6<=q("ios")&&(U.touches=J.touches,U.altKey=J.altKey,U.changedTouches=J.changedTouches,U.ctrlKey=J.ctrlKey,U.metaKey=J.metaKey,U.shiftKey=J.shiftKey,U.targetTouches=J.targetTouches);return U}A=g.body();g.doc.addEventListener("touchstart",function(J){t=
(new Date).getTime();var U=A;A=J.target;y.emit(U,"dojotouchout",{relatedTarget:A,bubbles:!0});y.emit(A,"dojotouchover",{relatedTarget:U,bubbles:!0});l(J,"touchmove","touchend")},!0);y(g.doc,"touchmove",function(J){t=(new Date).getTime();var U=g.doc.elementFromPoint(J.pageX-(k?0:g.global.pageXOffset),J.pageY-(k?0:g.global.pageYOffset));U&&(A!==U&&(y.emit(A,"dojotouchout",{relatedTarget:U,bubbles:!0}),y.emit(U,"dojotouchover",{relatedTarget:A,bubbles:!0}),A=U),y.emit(U,"dojotouchmove",G(J))||J.preventDefault())});
y(g.doc,"touchend",function(J){t=(new Date).getTime();var U=g.doc.elementFromPoint(J.pageX-(k?0:g.global.pageXOffset),J.pageY-(k?0:g.global.pageYOffset))||g.body();y.emit(U,"dojotouchend",G(J))})}));u={press:a("mousedown","touchstart",h.down),move:a("mousemove","dojotouchmove",h.move),release:a("mouseup","dojotouchend",h.up),cancel:a(m.leave,"touchcancel",n?h.cancel:null),over:a("mouseover","dojotouchover",h.over),out:a("mouseout","dojotouchout",h.out),enter:m._eventHandler(a("mouseover","dojotouchover",
h.over)),leave:m._eventHandler(a("mouseout","dojotouchout",h.out))};return F.touch=u})},"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(F,u,b,p,e,y,q,m,f){function g(v,z,C,x){(z=z&&z[v])?z={formatType:z.formatType,options:z}:x&&-1!==F.indexOf(x.properties||"",v)?z={formatType:x.formatter||"DateString",options:null}:C&&-1!==F.indexOf(C.properties||"",v)&&(z={formatType:C.formatter||
"NumberFormat",options:null});return z}function a(v,z,C){return[p.isString(v)?v.split(""):v,z||b.global,p.isString(C)?new Function("item","index","array",C):C]}function d(v){return void 0!==v&&null!==v}function l(v){return d(v)?v:""}function k(v,z,C,x){var E=C.match(/([^\(]+)(\([^\)]+\))?/i);C=p.trim(E[1]);var B=E[2]?p.trim(E[2]):null;E=z[v];x=x||(B?u.fromJson(B.replace(/^\(/,"({").replace(/\)$/,"})")):{});B=x.utcOffset;if(-1===F.indexOf(h,C))C=p.getObject(C),p.isFunction(C)&&(E=C(E,v,z,x));else if("number"===
typeof E||"string"===typeof E&&E&&!isNaN(Number(E)))switch(E=Number(E),C){case "NumberFormat":return q.format(E,x);case "DateString":v=new Date(E);if(x.local||x.systemLocale)return x.systemLocale?v.toLocaleDateString()+(x.hideTime?"":" "+v.toLocaleTimeString()):v.toDateString()+(x.hideTime?"":" "+v.toTimeString());v=v.toUTCString();x.hideTime&&(v=v.replace(/\s+\d\d:\d\d:\d\d\s+(utc|gmt)/i,""));return v;case "DateFormat":return v=new Date(E),d(B)&&(v=e.add(v,"minute",v.getTimezoneOffset()-B)),m.format(v,
x)}return l(E)}function n(v,z){var C;if(z)for(C in v)v.hasOwnProperty(C)&&(void 0===v[C]?delete v[C]:v[C]instanceof Object&&n(v[C],!0));else for(C in v)v.hasOwnProperty(C)&&void 0===v[C]&&delete v[C];return v}var h=["NumberFormat","DateString","DateFormat"],c=/<\/?[^>]+>/g,r={valueOf:function(v,z){for(var C in v)if(v[C]==z)return C;return null},stripTags:function(v){if(v){var z=typeof v;if("string"===z)v=v.replace(c,"");else if("object"===z)for(var C in v)(z=v[C])&&"string"===typeof z&&(z=z.replace(c,
"")),v[C]=z}return v},substitute:function(v,z,C){if(d(C))if(p.isObject(C)){var x=C.first;var E=C.dateFormat;var B=C.numberFormat;var w=C.format}else x=C;if(z&&"${*}"!==z)return p.replace(z,p.hitch({obj:v},function(t,A){var G=A.split(":");return 1<G.length?(A=G[0],G.shift(),(t=w&&w[G[0]])?G=t.formatType:(G=G.join(":"),t=null),k(A,this.obj,G,t)):(t=g(A,w,B,E))?k(A,this.obj,t.formatType,t.options):l(this.obj[A])}),/\$\{([^\}]+)\}/g);z=[];for(var D in v)if(C=(C=g(D,w,B,E))?k(D,v,C.formatType,C.options):
v[D],z.push(D+" \x3d "+l(C)+"\x3cbr/\x3e"),x)break;return z.join("")},filter:function(v,z,C){z=a(v,C,z);C={};var x;v=z[0];for(x in v)z[2].call(z[x],v[x],x,v)&&(C[x]=v[x]);return C},startsWith:function(v,z,C){C=C||0;return v.indexOf(z,C)===C},endsWith:function(v,z,C){if("number"!==typeof C||!isFinite(C)||Math.floor(C)!==C||C>v.length)C=v.length;C-=z.length;v=v.indexOf(z,C);return-1!==v&&v===C},isDefined:d,fixJson:n,isObject:function(v){return v&&"object"===typeof v},isString:function(v){return"string"===
typeof v},mixin:function(v,z){for(var C in z)z.hasOwnProperty(C)&&(v[C]=z[C]);return v},clone2DArray:function(v){if(v=v?v.slice(0):null){var z,C=v.length;for(z=0;z<C;z++)v[z]=v[z]?v[z].slice(0):null}return v},clone3DArray:function(v){if(v=v?v.slice(0):null){var z,C=v.length;for(z=0;z<C;z++){v[z]=v[z]?v[z].slice(0):null;var x=v[z];if(x){var E,B=x.length;for(E=0;E<B;E++)x[E]=x[E]?x[E].slice(0):null}}}return v}};y("extend-esri")&&(p.mixin(f,r),f._isDefined=d,f._getParts=a,f._sanitize=n);return r})},
"dojo/date":function(){define(["./has","./_base/lang"],function(F,u){var b={getDaysInMonth:function(p){var e=p.getMonth();return 1==e&&b.isLeapYear(p)?29:[31,28,31,30,31,30,31,31,30,31,30,31][e]},isLeapYear:function(p){p=p.getFullYear();return!(p%400)||!(p%4)&&!!(p%100)},getTimezoneName:function(p){var e=p.toString(),y="",q=e.indexOf("(");if(-1<q)y=e.substring(++q,e.indexOf(")"));else if(q=/([A-Z\/]+) \d{4}$/,e=e.match(q))y=e[1];else if(e=p.toLocaleString(),q=/ ([A-Z\/]+)$/,e=e.match(q))y=e[1];return"AM"==
y||"PM"==y?"":y},compare:function(p,e,y){p=new Date(+p);e=new Date(+(e||new Date));"date"==y?(p.setHours(0,0,0,0),e.setHours(0,0,0,0)):"time"==y&&(p.setFullYear(0,0,0),e.setFullYear(0,0,0));return p>e?1:p<e?-1:0},add:function(p,e,y){var q=new Date(+p),m=!1,f="Date";switch(e){case "day":break;case "weekday":if(e=y%5)var g=parseInt(y/5);else e=0<y?5:-5,g=0<y?(y-5)/5:(y+5)/5;var a=p.getDay(),d=0;6==a&&0<y?d=1:0==a&&0>y&&(d=-1);a+=e;if(0==a||6==a)d=0<y?2:-2;y=7*g+e+d;break;case "year":f="FullYear";m=
!0;break;case "week":y*=7;break;case "quarter":y*=3;case "month":m=!0;f="Month";break;default:f="UTC"+e.charAt(0).toUpperCase()+e.substring(1)+"s"}if(f)q["set"+f](q["get"+f]()+y);m&&q.getDate()<p.getDate()&&q.setDate(0);return q},difference:function(p,e,y){e=e||new Date;y=y||"day";var q=e.getFullYear()-p.getFullYear(),m=1;switch(y){case "quarter":p=p.getMonth();e=e.getMonth();m=Math.floor(e/3)+1+4*q-(Math.floor(p/3)+1);break;case "weekday":q=Math.round(b.difference(p,e,"day"));y=parseInt(b.difference(p,
e,"week"));if(0==q%7)q=5*y;else{m=0;var f=p.getDay(),g=e.getDay();y=parseInt(q/7);e=q%7;p=new Date(p);p.setDate(p.getDate()+7*y);p=p.getDay();if(0<q)switch(!0){case 6==f:m=-1;break;case 0==f:m=0;break;case 6==g:m=-1;break;case 0==g:m=-2;break;case 5<p+e:m=-2}else if(0>q)switch(!0){case 6==f:m=0;break;case 0==f:m=1;break;case 6==g:m=2;break;case 0==g:m=1;break;case 0>p+e:m=2}q=q+m-2*y}m=q;break;case "year":m=q;break;case "month":m=e.getMonth()-p.getMonth()+12*q;break;case "week":m=parseInt(b.difference(p,
e,"day")/7);break;case "day":m/=24;case "hour":m/=60;case "minute":m/=60;case "second":m/=1E3;case "millisecond":m*=e.getTime()-p.getTime()}return Math.round(m)}};u.mixin(u.getObject("dojo.date",!0),b);return b})},"dojo/number":function(){define(["./_base/lang","./i18n","./i18n!./cldr/nls/number","./string","./regexp"],function(F,u,b,p,e){var y={};F.setObject("dojo.number",y);y.format=function(m,f){f=F.mixin({},f||{});var g=u.normalizeLocale(f.locale);g=u.getLocalization("dojo.cldr","number",g);f.customs=
g;g=f.pattern||g[(f.type||"decimal")+"Format"];return isNaN(m)||Infinity==Math.abs(m)?null:y._applyPattern(m,g,f)};y._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;y._applyPattern=function(m,f,g){g=g||{};var a=g.customs.group,d=g.customs.decimal;f=f.split(";");var l=f[0];f=f[0>m?1:0]||"-"+l;if(-1!=f.indexOf("%"))m*=100;else if(-1!=f.indexOf("\u2030"))m*=1E3;else if(-1!=f.indexOf("\u00a4"))a=g.customs.currencyGroup||a,d=g.customs.currencyDecimal||d,f=f.replace(/([\s\xa0\u202f]*)(\u00a4{1,3})([\s\xa0\u202f]*)/,
function(n,h,c,r){return(n=g[["symbol","currency","displayName"][c.length-1]]||g.currency||"")?h+n+r:""});else if(-1!=f.indexOf("E"))throw Error("exponential notation not supported");var k=y._numberPatternRE;l=l.match(k);if(!l)throw Error("unable to find a number expression in pattern: "+f);!1===g.fractional&&(g.places=0);return f.replace(k,y._formatAbsolute(m,l[0],{decimal:d,group:a,places:g.places,round:g.round}))};y.round=function(m,f,g){g=10/(g||10);return(g*+m).toFixed(f)/g};if(0==(.9).toFixed()){var q=
y.round;y.round=function(m,f,g){var a=Math.pow(10,-f||0),d=Math.abs(m);if(!m||d>=a)a=0;else if(d/=a,.5>d||.95<=d)a=0;return q(m,f,g)+(0<m?a:-a)}}y._formatAbsolute=function(m,f,g){g=g||{};!0===g.places&&(g.places=0);Infinity===g.places&&(g.places=6);f=f.split(".");var a="string"==typeof g.places&&g.places.indexOf(","),d=g.places;a?d=g.places.substring(a+1):0<=d||(d=(f[1]||[]).length);0>g.round||(m=y.round(m,d,g.round));m=String(Math.abs(m)).split(".");var l=m[1]||"";f[1]||g.places?(a&&(g.places=g.places.substring(0,
a)),a=void 0!==g.places?g.places:f[1]&&f[1].lastIndexOf("0")+1,a>l.length&&(m[1]=p.pad(l,a,"0",!0)),d<l.length&&(m[1]=l.substr(0,d))):m[1]&&m.pop();d=f[0].replace(",","");a=d.indexOf("0");-1!=a&&(a=d.length-a,a>m[0].length&&(m[0]=p.pad(m[0],a)),-1==d.indexOf("#")&&(m[0]=m[0].substr(m[0].length-a)));d=f[0].lastIndexOf(",");var k;if(-1!=d){var n=f[0].length-d-1;f=f[0].substr(0,d);d=f.lastIndexOf(",");-1!=d&&(k=f.length-d-1)}f=[];for(d=m[0];d;)a=d.length-n,f.push(0<a?d.substr(a):d),d=0<a?d.slice(0,a):
"",k&&(n=k,k=void 0);m[0]=f.reverse().join(g.group||",");return m.join(g.decimal||".")};y.regexp=function(m){return y._parseInfo(m).regexp};y._parseInfo=function(m){m=m||{};var f=u.normalizeLocale(m.locale);f=u.getLocalization("dojo.cldr","number",f);var g=m.pattern||f[(m.type||"decimal")+"Format"],a=f.group,d=f.decimal,l=1;if(-1!=g.indexOf("%"))l/=100;else if(-1!=g.indexOf("\u2030"))l/=1E3;else{var k=-1!=g.indexOf("\u00a4");k&&(a=f.currencyGroup||a,d=f.currencyDecimal||d)}f=g.split(";");1==f.length&&
f.push("-"+f[0]);f=e.buildGroupRE(f,function(n){n="(?:"+e.escapeString(n,".")+")";return n.replace(y._numberPatternRE,function(h){var c={signed:!1,separator:m.strict?a:[a,""],fractional:m.fractional,decimal:d,exponent:!1};h=h.split(".");var r=m.places;1==h.length&&1!=l&&(h[1]="###");1==h.length||0===r?c.fractional=!1:(void 0===r&&(r=m.pattern?h[1].lastIndexOf("0")+1:Infinity),r&&void 0==m.fractional&&(c.fractional=!0),!m.places&&r<h[1].length&&(r+=","+h[1].length),c.places=r);h=h[0].split(",");1<
h.length&&(c.groupSize=h.pop().length,1<h.length&&(c.groupSize2=h.pop().length));return"("+y._realNumberRegexp(c)+")"})},!0);k&&(f=f.replace(/([\s\xa0\u202f]*)(\u00a4{1,3})([\s\xa0\u202f]*)/g,function(n,h,c,r){n=e.escapeString(m[["symbol","currency","displayName"][c.length-1]]||m.currency||"");if(!n)return"";h=h?"[\\s\\xa0\\u202f]":"";r=r?"[\\s\\xa0\\u202f]":"";return m.strict?h+n+r:(h&&(h+="*"),r&&(r+="*"),"(?:"+h+n+r+")?")}));return{regexp:f.replace(/[\xa0\u202f ]/g,"[\\s\\xa0\\u202f]"),group:a,
decimal:d,factor:l}};y.parse=function(m,f){f=y._parseInfo(f);m=(new RegExp("^"+f.regexp+"$")).exec(m);if(!m)return NaN;var g=m[1];if(!m[1]){if(!m[2])return NaN;g=m[2];f.factor*=-1}g=g.replace(new RegExp("["+f.group+"\\s\\xa0\\u202f]","g"),"").replace(f.decimal,".");return g*f.factor};y._realNumberRegexp=function(m){m=m||{};"places"in m||(m.places=Infinity);"string"!=typeof m.decimal&&(m.decimal=".");"fractional"in m&&!/^0/.test(m.places)||(m.fractional=[!0,!1]);"exponent"in m||(m.exponent=[!0,!1]);
"eSigned"in m||(m.eSigned=[!0,!1]);var f=y._integerRegexp(m),g=e.buildGroupRE(m.fractional,function(d){var l="";d&&0!==m.places&&(l="\\"+m.decimal,l=Infinity==m.places?"(?:"+l+"\\d+)?":l+("\\d{"+m.places+"}"));return l},!0),a=e.buildGroupRE(m.exponent,function(d){return d?"([eE]"+y._integerRegexp({signed:m.eSigned})+")":""});f+=g;g&&(f="(?:(?:"+f+")|(?:"+g+"))");return f+a};y._integerRegexp=function(m){m=m||{};"signed"in m||(m.signed=[!0,!1]);"separator"in m?"groupSize"in m||(m.groupSize=3):m.separator=
"";var f=e.buildGroupRE(m.signed,function(a){return a?"[-+]":""},!0),g=e.buildGroupRE(m.separator,function(a){if(!a)return"(?:\\d+)";a=e.escapeString(a);" "==a?a="\\s":"\u00a0"==a?a="\\s\\xa0":"\u202f"==a&&(a="\\s\\u202f");var d=m.groupSize,l=m.groupSize2;return l?(a="(?:0|[1-9]\\d{0,"+(l-1)+"}(?:["+a+"]\\d{"+l+"})*["+a+"]\\d{"+d+"})",0<d-l?"(?:"+a+"|(?:0|[1-9]\\d{0,"+(d-1)+"}))":a):"(?:0|[1-9]\\d{0,"+(d-1)+"}(?:["+a+"]\\d{"+d+"})*)"},!0);return f+g};return y})},"dojo/string":function(){define(["./_base/kernel",
"./_base/lang"],function(F,u){var b=/[&<>'"\/]/g,p={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;","/":"\x26#x2F;"},e={};u.setObject("dojo.string",e);e.escape=function(y){return y?y.replace(b,function(q){return p[q]}):""};e.codePointAt=String.prototype.codePointAt?function(y,q){return String.prototype.codePointAt.call(y,q)}:function(y,q){if(null==y)throw new TypeError("codePointAt called on null or undefined");y=String(y);var m=y.length;var f=q?Number(q):0;f!=
f&&(f=0);if(!(0>f||f>=m))return q=y.charCodeAt(f),55296<=q&&56319>=q&&m>f+1&&(y=y.charCodeAt(f+1),56320<=y&&57343>=y)?1024*(q-55296)+y-56320+65536:q};e.fromCodePoint=String.fromCodePoint||function(){var y=[],q=0,m="";var f=0;for(len=arguments.length;f!==len;++f){q=+arguments[f];if(!(1114111>q&&q>>>0===q))throw RangeError("Invalid code point: "+q);65535>=q?q=y.push(q):(q-=65536,q=y.push((q>>10)+55296,q%1024+56320));16383<=q&&(m+=String.fromCharCode.apply(null,y),y.length=0)}return m+String.fromCharCode.apply(null,
y)};e.rep=function(y,q){if(0>=q||!y)return"";for(var m=[];;){q&1&&m.push(y);if(!(q>>=1))break;y+=y}return m.join("")};e.pad=function(y,q,m,f){m||(m="0");y=String(y);q=e.rep(m,Math.ceil((q-y.length)/m.length));return f?y+q:q+y};e.substitute=function(y,q,m,f){f=f||F.global;m=m?u.hitch(f,m):function(g){return g};return y.replace(/\$\{([^\s:\}]*)(?::([^\s:\}]+))?\}/g,function(g,a,d){if(""==a)return"$";g=u.getObject(a,!1,q);d&&(g=u.getObject(d,!1,f).call(f,g,a));d=m(g,a);if("undefined"===typeof d)throw Error('string.substitute could not find key "'+
a+'" in template');return d.toString()})};e.trim=String.prototype.trim?u.trim:function(y){y=y.replace(/^\s+/,"");for(var q=y.length-1;0<=q;q--)if(/\S/.test(y.charAt(q))){y=y.substring(0,q+1);break}return y};return e})},"dojo/regexp":function(){define(["./_base/kernel","./_base/lang"],function(F,u){var b={};u.setObject("dojo.regexp",b);b.escapeString=function(p,e){return p.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,function(y){return e&&-1!=e.indexOf(y)?y:"\\"+y})};b.buildGroupRE=function(p,e,y){if(!(p instanceof
Array))return e(p);for(var q=[],m=0;m<p.length;m++)q.push(e(p[m]));return b.group(q.join("|"),y)};b.group=function(p,e){return"("+(e?"?:":"")+p+")"};return b})},"dojo/date/locale":function(){define("../_base/lang ../_base/array ../date ../cldr/supplemental ../i18n ../regexp ../string ../i18n!../cldr/nls/gregorian module".split(" "),function(F,u,b,p,e,y,q,m,f){function g(c,r,v,z){return z.replace(/([a-z])\1*/ig,function(C){var x=C.charAt(0);C=C.length;var E=["abbr","wide","narrow"];switch(x){case "G":var B=
r[4>C?"eraAbbr":"eraNames"][0>c.getFullYear()?0:1];break;case "y":B=c.getFullYear();switch(C){case 1:break;case 2:if(!v.fullYear){B=String(B);B=B.substr(B.length-2);break}default:var w=!0}break;case "Q":case "q":B=Math.ceil((c.getMonth()+1)/3);w=!0;break;case "M":case "L":B=c.getMonth();3>C?(B+=1,w=!0):(x=["months","L"==x?"standAlone":"format",E[C-3]].join("-"),B=r[x][B]);break;case "w":B=l._getWeekOfYear(c,0);w=!0;break;case "d":B=c.getDate();w=!0;break;case "D":B=l._getDayOfYear(c);w=!0;break;case "e":case "c":if(B=
c.getDay(),2>C){B=(B-p.getFirstDayOfWeek(v.locale)+8)%7;break}case "E":B=c.getDay();3>C?(B+=1,w=!0):(x=["days","c"==x?"standAlone":"format",E[C-3]].join("-"),B=r[x][B]);break;case "a":x=12>c.getHours()?"am":"pm";B=v[x]||r["dayPeriods-format-wide-"+x];break;case "h":case "H":case "K":case "k":w=c.getHours();switch(x){case "h":B=w%12||12;break;case "H":B=w;break;case "K":B=w%12;break;case "k":B=w||24}w=!0;break;case "m":B=c.getMinutes();w=!0;break;case "s":B=c.getSeconds();w=!0;break;case "S":B=Math.round(c.getMilliseconds()*
Math.pow(10,C-3));w=!0;break;case "v":case "z":if(B=l._getZone(c,!0,v))break;C=4;case "Z":x=l._getZone(c,!1,v);x=[0>=x?"+":"-",q.pad(Math.floor(Math.abs(x)/60),2),q.pad(Math.abs(x)%60,2)];4==C&&(x.splice(0,0,"GMT"),x.splice(3,0,":"));B=x.join("");break;default:throw Error("dojo.date.locale.format: invalid pattern char: "+z);}w&&(B=q.pad(B,C));return B})}function a(c,r,v,z){var C=function(B){return B};r=r||C;v=v||C;z=z||C;var x=c.match(/(''|[^'])+/g),E="'"==c.charAt(0);u.forEach(x,function(B,w){B?
(x[w]=(E?v:r)(B.replace(/''/g,"'")),E=!E):x[w]=""});return z(x.join(""))}function d(c,r,v,z){z=y.escapeString(z);v.strict||(z=z.replace(" a"," ?a"));return z.replace(/([a-z])\1*/ig,function(C){var x=C.charAt(0);var E=C.length,B="",w="";v.strict?(1<E&&(B="0{"+(E-1)+"}"),2<E&&(w="0{"+(E-2)+"}")):(B="0?",w="0{0,2}");switch(x){case "y":x="\\d{2,4}";break;case "M":case "L":2<E?(x=r["months-"+("L"==x?"standAlone":"format")+"-"+k[E-3]].slice(0).join("|"),v.strict||(x=x.replace(/\./g,""),x="(?:"+x+")\\.?")):
x="1[0-2]|"+B+"[1-9]";break;case "D":x="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+B+"[1-9][0-9]|"+w+"[1-9]";break;case "d":x="3[01]|[12]\\d|"+B+"[1-9]";break;case "w":x="[1-4][0-9]|5[0-3]|"+B+"[1-9]";break;case "E":case "e":case "c":x=".+?";break;case "h":x="1[0-2]|"+B+"[1-9]";break;case "k":x="1[01]|"+B+"\\d";break;case "H":x="1\\d|2[0-3]|"+B+"\\d";break;case "K":x="1\\d|2[0-4]|"+B+"[1-9]";break;case "m":case "s":x="[0-5]\\d";break;case "S":x="\\d{"+E+"}";break;case "a":E=v.am||r["dayPeriods-format-wide-am"];
B=v.pm||r["dayPeriods-format-wide-pm"];x=E+"|"+B;v.strict||(E!=E.toLowerCase()&&(x+="|"+E.toLowerCase()),B!=B.toLowerCase()&&(x+="|"+B.toLowerCase()),-1!=x.indexOf(".")&&(x+="|"+x.replace(/\./g,"")));x=x.replace(/\./g,"\\.");break;default:x=".*"}c&&c.push(C);return"("+x+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}var l={};F.setObject(f.id.replace(/\//g,"."),l);l._getZone=function(c,r,v){return r?b.getTimezoneName(c):c.getTimezoneOffset()};l.format=function(c,r){r=r||{};var v=e.normalizeLocale(r.locale),
z=r.formatLength||"short";v=l._getGregorianBundle(v);var C=[];c=F.hitch(this,g,c,v,r);if("year"==r.selector)return a(v["dateFormatItem-yyyy"]||"yyyy",c);var x;"date"!=r.selector&&(x=r.timePattern||v["timeFormat-"+z])&&C.push(a(x,c));"time"!=r.selector&&(x=r.datePattern||v["dateFormat-"+z])&&C.push(a(x,c));return 1==C.length?C[0]:v["dateTimeFormat-"+z].replace(/'/g,"").replace(/\{(\d+)\}/g,function(E,B){return C[B]})};l.regexp=function(c){return l._parseInfo(c).regexp};l._parseInfo=function(c){c=c||
{};var r=e.normalizeLocale(c.locale);r=l._getGregorianBundle(r);var v=c.formatLength||"short",z=c.datePattern||r["dateFormat-"+v],C=c.timePattern||r["timeFormat-"+v];v="date"==c.selector?z:"time"==c.selector?C:r["dateTimeFormat-"+v].replace(/\{(\d+)\}/g,function(E,B){return[C,z][B]});var x=[];return{regexp:a(v,F.hitch(this,d,x,r,c)),tokens:x,bundle:r}};l.parse=function(c,r){var v=/[\u200E\u200F\u202A\u202E]/g,z=l._parseInfo(r),C=z.tokens,x=z.bundle;c=(new RegExp("^"+z.regexp.replace(v,"")+"$",z.strict?
"":"i")).exec(c&&c.replace(v,""));if(!c)return null;var E=["abbr","wide","narrow"],B=[1970,0,1,0,0,0,0],w="";c=u.every(c,function(t,A){if(!A)return!0;var G=C[A-1];A=G.length;G=G.charAt(0);switch(G){case "y":if(2!=A&&r.strict)B[0]=t;else if(100>t)t=Number(t),G=""+(new Date).getFullYear(),A=100*G.substring(0,2),G=Math.min(Number(G.substring(2,4))+20,99),B[0]=t<G?A+t:A-100+t;else{if(r.strict)return!1;B[0]=t}break;case "M":case "L":if(2<A){if(A=x["months-"+("L"==G?"standAlone":"format")+"-"+E[A-3]].concat(),
r.strict||(t=t.replace(".","").toLowerCase(),A=u.map(A,function(U){return U.replace(".","").toLowerCase()})),t=u.indexOf(A,t),-1==t)return!1}else t--;B[1]=t;break;case "E":case "e":case "c":A=x["days-"+("c"==G?"standAlone":"format")+"-"+E[A-3]].concat();r.strict||(t=t.toLowerCase(),A=u.map(A,function(U){return U.toLowerCase()}));t=u.indexOf(A,t);if(-1==t)return!1;break;case "D":B[1]=0;case "d":B[2]=t;break;case "a":A=r.am||x["dayPeriods-format-wide-am"];G=r.pm||x["dayPeriods-format-wide-pm"];if(!r.strict){var J=
/\./g;t=t.replace(J,"").toLowerCase();A=A.replace(J,"").toLowerCase();G=G.replace(J,"").toLowerCase()}if(r.strict&&t!=A&&t!=G)return!1;w=t==G?"p":t==A?"a":"";break;case "K":24==t&&(t=0);case "h":case "H":case "k":if(23<t)return!1;B[3]=t;break;case "m":B[4]=t;break;case "s":B[5]=t;break;case "S":B[6]=t}return!0});v=+B[3];"p"===w&&12>v?B[3]=v+12:"a"===w&&12==v&&(B[3]=0);v=new Date(B[0],B[1],B[2],B[3],B[4],B[5],B[6]);r.strict&&v.setFullYear(B[0]);var D=C.join("");z=-1!=D.indexOf("d");D=-1!=D.indexOf("M");
if(!c||D&&v.getMonth()>B[1]||z&&v.getDate()>B[2])return null;if(D&&v.getMonth()<B[1]||z&&v.getDate()<B[2])v=b.add(v,"hour",1);return v};var k=["abbr","wide","narrow"],n=[],h={};l.addCustomFormats=function(c,r){n.push({pkg:c,name:r});h={}};l._getGregorianBundle=function(c){if(h[c])return h[c];var r={};u.forEach(n,function(v){v=e.getLocalization(v.pkg,v.name,c);r=F.mixin(r,v)},this);return h[c]=r};l.addCustomFormats(f.id.replace(/\/date\/locale$/,".cldr"),"gregorian");l.getNames=function(c,r,v,z){z=
l._getGregorianBundle(z);c=[c,v,r];if("standAlone"==v){v=c.join("-");var C=z[v];1==C[0]&&(C=void 0)}c[1]="format";return(C||z[c.join("-")]).concat()};l.isWeekend=function(c,r){r=p.getWeekend(r);c=(c||new Date).getDay();r.end<r.start&&(r.end+=7,c<r.start&&(c+=7));return c>=r.start&&c<=r.end};l._getDayOfYear=function(c){return b.difference(new Date(c.getFullYear(),0,1,c.getHours()),c)+1};l._getWeekOfYear=function(c,r){1==arguments.length&&(r=0);var v=(new Date(c.getFullYear(),0,1)).getDay(),z=(v-r+
7)%7;z=Math.floor((l._getDayOfYear(c)+z-1)/7);v==r&&z++;return z};return l})},"dojo/cldr/supplemental":function(){define(["../_base/lang","../i18n"],function(F,u){var b={};F.setObject("dojo.cldr.supplemental",b);b.getFirstDayOfWeek=function(p){p={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(p)];return void 0===p?1:p};b._region=function(p){p=u.normalizeLocale(p);p=p.split("-");var e=p[1];e?4==e.length&&(e=p[2]):e={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"}[p[0]];return e};b.getWeekend=function(p){var e=b._region(p);p={"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}[e];e={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}[e];void 0===p&&(p=6);void 0===e&&(e=0);return{start:p,end:e}};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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r,v,z,C,x,E,B,w,D,t,A,G,J,U,ja,Z,fa,qa,V,ea,ba,ma,va,da,ka,I,S,X,O,P,aa){function ha(T,Y){var oa=T.lods;oa.sort(function(Fa,Ka){return Fa.scale>Ka.scale?-1:Fa.scale<Ka.scale?1:0});var ua=[];oa=m.filter(oa,function(Fa){if(-1===ra(ua,Fa.scale))return ua.push(Fa.scale),!0});var ya=Y.lods=[],Ea;m.forEach(oa,function(Fa,Ka){Ea=ya[Ka]=new I(Fa);Ea.level=Ka});Y.tileInfo=new ka(M(T,{lods:ya}))}var la,ta=ma.toMapPoint,Ba=ma.toScreenPoint,N=e.connect,Q=e.disconnect,
ia=q.hitch,pa=h.set,ra=m.indexOf,M=q.mixin,ca=0,sa=C.defaults.map,xa=sa.layerNamePrefix,za=sa.graphicsLayerNamePrefix,Ca=new RegExp("^"+xa+"(\\d+)$"),Ha=new RegExp("^"+za+"(\\d+)$"),Da=function(){},La=0,Pa=P.isWebGLEnabled();p=p([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:Pa,_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(T,Y){Y=Y||{};this.registerConnectEvents();M(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 oa=this.container=a.byId(T),ua=this.id=d.get(oa,"id")||r.getUniqueId(this.declaredClass);l.add(oa,"map");
var ya=n.getContentBox(oa);T=l.add;var Ea=k.create;this.position=new fa(0,0);this._reposition();var Fa=this.width=0<ya.w?ya.w:sa.width,Ka=this.height=0<ya.h?ya.h:sa.height,Ja=this.root=Ea("div",{id:ua+"_root",style:{width:Fa+"px",height:Ka+"px",direction:"ltr"}});T(Ja,"esriMapContainer");ya=this.__container=Ea("div",{id:ua+"_container"},Ja);pa(ya,"position","absolute");T(ya,"esriMapContainer");oa.appendChild(Ja);Y=this._params=M({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},Y);this.setWebGLEnabled(null!=Y.webglEnabled?Y.webglEnabled:this.webglEnabled);this.maxWebGLContexts=null!=Y.maxWebGLContexts?Y.maxWebGLContexts:-1;this.wrapAround180=Y.wrapAround180;this.optimizePanAnimation=Y.optimizePanAnimation;this.setBackgroundColor(Y.backgroundColor);E.isDefined(Y.resizeDelay)&&(this.resizeDelay=Y.resizeDelay);Y.lods&&(ha({rows:512,cols:512,dpi:96,format:"JPEG",
compressionQuality:75,origin:{x:-180,y:90},spatialReference:{wkid:4326},lods:Y.lods},Y),this.__tileInfo=Y.tileInfo);this.extent=Y.extent;this._extentUtil({mapCenter:Y.center,targetLevel:Y.zoom,targetScale:Y.scale});this.__visibleRect=new V(0,0,Fa,Ka);this.__visibleDelta=new V(0,0,Fa,Ka);ua=this._layersDiv=Ea("div",{id:ua+"_layers"});T(ua,"esriMapLayers");ya.appendChild(ua);this._zoomAnimDiv=Ea("div",{style:{position:"absolute"}});Y.infoWindow?this.infoWindow=Y.infoWindow:(T=this.infoWindow=new aa(Y.popupOptions,
Ea("div")),T.startup(),T._ootb=!0,pa(T.domNode,"zIndex",40));if(Y.showLabels){var Ga=this;F(["./layers/LabelLayer"],function(Na){la=Na;Ga._createLabelLayer()});this.on("load",function(){Ga._createLabelLayer()})}this.addPlugin(this._getAbsMid("./plugins/popupManager"),{enabled:Y.showInfoWindowOnClick});this._zoomStartHandler=ia(this,this._zoomStartHandler);this._zoomingHandler=ia(this,this._zoomingHandler);this._zoomEndHandler=ia(this,this._zoomEndHandler);this._panningHandler=ia(this,this._panningHandler);
this._panEndHandler=ia(this,this._panEndHandler);this._endTranslate=ia(this,this._endTranslate);this._timedResize=ia(this,this._timedResize);this._execResize=ia(this,this._execResize);this._processLabelLayers=ia(this,this._processLabelLayers);this._updateLabelLayers=ia(this,this._updateLabelLayers);this.resize=ia(this,this.resize);g.addOnWindowUnload(this,this.destroy)},_getAbsMid:function(T){return F.toAbsMid?F.toAbsMid(T):u.id.replace(/\/[^\/]*$/ig,"/")+T},_cleanUp:function(){var T=this.infoWindow;
T&&(T._ootb&&T.destroy?T.destroy():T.unsetMap(this),delete this.infoWindow);Q(this._tsTimeExtentChange_connect);this.removePlugin("./plugins/popupManager");k.destroy(this.root);this.root=null},_addLayer:function(T,Y,oa){if(T.id){var ua=T.id.match(T instanceof da?Ha:Ca);ua&&ua[1]&&(ua=Number(ua[1]),ca<=ua&&(ca=ua+1))}var ya=T.id||(T instanceof da?za:xa)+ca++;T.id=ya;this._layers[ya]=T;T._isRefLayer="top"===oa;oa=!E.isDefined(oa)||0>oa||oa>Y.length||"top"===oa?Y.length:oa;var Ea;if(!T._isRefLayer)for(;(Ea=
this.getLayer(Y[oa-1]))&&Ea._isRefLayer;)oa--;if(ua=!this._firstLayerId&&!this.loaded&&!this._basemapPending&&0===oa&&(Y===this.layerIds||Y===this.graphicsLayerIds))this._firstLayerId=ya;Y.splice(oa,0,ya);var Fa=ia(this,this._addLayerHandler),Ka=this;oa=this._connects;Ea=function(){T.loaded?Ka._onLoadFix?(Ka._onLoadFix=!1,setTimeout(function(){Fa(T)},0)):Fa(T):(Ka["_"+ya+"_addtoken_load"]=N(T,"onLoad",Ka,"_addLayerHandler"),Ka["_"+ya+"_addtoken_err"]=N(T,"onError",Ka,function(Ja){Fa(T,Ja,Y)}))};this.loaded||
ua||T.loaded&&-1===ra(this.graphicsLayerIds,ya)?Ea():oa.push(N(this,"onLoad",Ea));return T},_forgetLayer:function(T){T=T.id;Q(this["_"+T+"_addtoken_load"]);Q(this["_"+T+"_addtoken_err"]);var Y=this._layerAddPromises[T];Y&&(delete this._layerAddPromises[T],Y.cancel())},_addLayerHandler:function(T,Y,oa){Y?this._attachLayerToMap(T,Y,oa):T._prepareToAttach?(this._layerAddPromises[T.id]=T._prepareToAttach(this)).always(q.hitch(this,function(ua){ua&&"cancel"===ua.dojoType||this._attachLayerToMap(T,null,
oa)})):T.declaredClass&&(-1<T.declaredClass.toLowerCase().indexOf("vectortilelayer")||-1<T.declaredClass.toLowerCase().indexOf("rasterxlayer")&&T.useWebGL)&&!this.isWebGLContextAvailable()?(Y=Error("Too many WebGL contexts. Unable to add the layer: ",T.url),this._attachLayerToMap(T,Y,this.layerIds)):this._attachLayerToMap(T,Y,oa)},_attachLayerToMap:function(T,Y,oa){var ua=this.id,ya=T.id,Ea=ra(T instanceof da?this.graphicsLayerIds:this.layerIds,ya),Fa=Ea,Ka=!1,Ja=this._params;this._forgetLayer(T);
if(Y)delete this._layers[ya],-1!==Ea&&(oa.splice(Ea,1),this.onLayerAddResult(T,Y));else{-1===Ea&&(Ea=ra(this._internalLayerIds,ya),Fa=20+Ea,Ka=!0);if(ya===this._firstLayerId){Y=T.spatialReference;oa=this.extent&&this.extent.spatialReference;!oa||oa.equals(Y)||!T.tileInfo&&T.url||(oa=null);oa=this.spatialReference=oa||Y;this.wrapAround180=this.wrapAround180&&oa&&oa._isWrappable()?!0:!1;T.tileInfo&&(this.__tileInfo?(Y=this.__tileInfo.lods,this.__tileInfo=M({},T.tileInfo),this.__tileInfo.lods=Y):(ha(M({},
T.tileInfo),Ja),this.__tileInfo=Ja.tileInfo));if(this.wrapAround180){Y=this.__tileInfo;oa=oa._getInfo();if(!Y||Math.abs(oa.origin[0]-Y.origin.x)>oa.dx)this.wrapAround180=!1;this.wrapAround180&&Y&&t._addFrameInfo(Y,oa)}Ja.units=T.units;if((Y=this.__tileInfo&&this.__tileInfo.lods)&&Y.length){oa=Ja.minScale;Ea=Ja.maxScale;var Ga=-1,Na=-1,Ra=!1,Va=!1,Sa;for(Sa=0;Sa<Y.length;Sa++)0<oa&&!Ra&&oa>=Y[Sa].scale&&(Ga=Y[Sa].level,Ra=!0),0<Ea&&!Va&&Ea>=Y[Sa].scale&&(Na=0<Sa?Y[Sa-1].level:-1,Va=!0);-1===Ja.minZoom&&
(Ja.minZoom=0===oa?Y[0].level:Ga);-1===Ja.maxZoom&&(Ja.maxZoom=0===Ea?Y[Y.length-1].level:Na);for(Sa=0;Sa<Y.length;Sa++)Ja.minZoom===Y[Sa].level&&(Ja.minScale=Y[Sa].scale,this._minResolution=Y[Sa].resolution),Ja.maxZoom===Y[Sa].level&&(Ja.maxScale=Y[Sa].scale,this._maxResolution=Y[Sa].resolution)}else Ja.minZoom=Ja.maxZoom=Ja.zoom=-1}T instanceof da?(this._gc||(this._gc=new da._GraphicsContainer,this._gc._setMap(this,this._layersDiv).id=ua+"_gc"),this._attachGraphicsLayer(T).id=ua+"_"+ya):(Fa=T._setMap(this,
this._layersDiv,Fa,this.__LOD),Fa.id=ua+"_"+ya,this._layerDivs[ya]=Fa,this._reorderLayers(this.layerIds),Ka||-1===T.declaredClass.indexOf("VETiledLayer")||this._onBingLayerAdd(T));ya===this._firstLayerId&&(this.graphics=new da({id:ua+"_graphics",displayOnPan:Ja.displayGraphicsOnPan}),this._addLayer(this.graphics,this._internalLayerIds,20));if(T===this.graphics){oa=this._layers[this._firstLayerId];ua=Ja.zoom;Fa=Ja.scale;Y=Ja.center;oa=oa.initialExtent||oa.fullExtent;this._firstLayerId=null;this.extent&&
(this.extent=this._convertGeometry(this,this.extent));!this.extent&&oa&&(Y&&(Y=this._convertGeometry(oa,Y)),Y&&(oa=oa.centerAt(Y),Y=null));if(Y=this.extent||oa&&new qa(oa.toJson()))-1<ua?Y=this.__getExtentForLevel(ua,null,Y).extent:0<Fa&&(Y=ba.getExtentForScale(this,Fa,Y));if(!Y){console.log("Map: "+this.invalidExtent);return}Ja=this._fixExtent(Y,Ja.fitExtent);this.extent=Ja.extent;this.__LOD=Ja.lod;this.__setExtent(this.extent);this.loaded=!0;this.attr("data-loaded","");this.infoWindow.setMap(this);
this.onLoad(this)}Ka||(this.onLayerAdd(T),this.onLayerAddResult(T));Q(this[ya+"_addLayerHandler_connect"])}},_convertGeometry:function(T,Y){T=T&&T.spatialReference;var oa=Y&&Y.spatialReference;T&&oa&&!T.equals(oa)&&(T._canProject(oa)?T.isWebMercator()?Y=va.geographicToWebMercator(Y):4326===T.wkid&&(Y=va.webMercatorToGeographic(Y,!0)):(console.log("Map: "+E.substitute({geometry:oa.wkid||oa.wkt,map:T.wkid||T.wkt},this.invalidGeometry)),Y=null));return Y},_attachGraphicsLayer:function(T){var Y=T.id;
T=T._setMap(this,this._gc._surface);this._layerDivs[Y]=T;this._reorderLayers(this.graphicsLayerIds);return T},_detachGraphicsLayer:function(T){T.loaded&&T.getMap()&&T._unsetMap(this,this._gc._surface)},_reorderLayers:function(T){var Y=this.onLayerReorder,oa=k.place,ua=this._layerDivs,ya=this._layers,Ea=this._gc?this._gc._surface.getEventSource():null;if(T===this.graphicsLayerIds)m.forEach(T,function(Na,Ra){var Va=ua[Na];Na=ya[Na];Va&&(this._gc._reorderLayer(Na,Va,Ra),Y(Na,Ra))},this);else{var Fa=
this.graphics,Ka=Fa?Fa.id:null,Ja=this._layersDiv,Ga;m.forEach(T,function(Na,Ra){Ga=ua[Na];Na!==Ka&&Ga&&(oa(Ga,Ja,Ra),Y(ya[Na],Ra))});this._mapImageLyr&&this._placeMapImageLyr();Ea&&(Ea=9>c("ie")?Ea.parentNode:Ea,oa(Ea,Ea.parentNode,"last"))}this.onLayersReordered([].concat(T))},_zoomStartHandler:function(){this.__zoomStart(this._zoomAnimDiv.startingExtent,this._zoomAnimDiv.anchor)},_zoomingHandler:function(T){var Y=parseFloat(T.left),oa=parseFloat(T.top);T=new qa(Y,oa-parseFloat(T.height),Y+parseFloat(T.width),
oa,this.spatialReference);Y=this.extent.getWidth()/T.getWidth();this.__zoom(T,Y,this._zoomAnimDiv.anchor)},_zoomEndHandler:function(){var T=this._zoomAnimDiv,Y=T.extent,oa=this.extent.getWidth()/Y.getWidth(),ua=T.anchor,ya=T.newLod,Ea=T.levelChange;T.extent=T.anchor=T.levelChange=T.startingExtent=T.newLod=this._delta=this._zoomAnim=null;this.__zoomEnd(Y,oa,ua,ya,Ea)},_panningHandler:function(T){if(isNaN(parseFloat(T.left))||isNaN(parseFloat(T.top))){var Y=Math.round,oa=this._panAnim.node;T.left=-1*
(this._delta.x-Y(this.width/2))+"px";T.top=-1*(this._delta.y-Y(this.height/2))+"px";h.set(oa,"left",T.left);h.set(oa,"top",T.top)}T=new fa(parseFloat(T.left),parseFloat(T.top));Y=this.toMap(T);this.onPan(this.extent.offset(this.extent.xmin-Y.x,this.extent.ymax-Y.y),T)},_panEndHandler:function(T){this.__panning=!1;var Y=Math.round;T=new fa(-Y(parseFloat(T.style.left)),-Y(parseFloat(T.style.top)));Y=T.x;var oa=T.y,ua=this.__visibleRect,ya=this.__visibleDelta;ua.x+=-Y;ua.y+=-oa;ya.x+=-Y;ya.y+=-oa;pa(this._zoomAnimDiv,
{left:"0px",top:"0px"});ua=this.extent;ya=this._ratioW;var Ea=this._ratioH;ua=new qa(ua.xmin+Y/ya,ua.ymin-oa/Ea,ua.xmax+Y/ya,ua.ymax-oa/Ea,this.spatialReference);T.setX(-T.x);T.setY(-T.y);this._delta=this._panAnim=null;this._updateExtent(ua);this.onPanEnd(ua,T);this._fireExtChg([ua,T,!1,this.__LOD])},_fixExtent:function(T,Y){for(var oa=this._reshapeExtent(T),ua=1.25;!0===Y&&(oa.extent.getWidth()<T.getWidth()||oa.extent.getHeight()<T.getHeight())&&0<oa.lod.level&&3>=ua;)oa=this._reshapeExtent(T.expand(ua)),
ua+=.25;return oa},_getFrameWidth:function(){var T=-1,Y=this.spatialReference._getInfo();this.__LOD?(Y=this.__LOD._frameInfo)&&(T=Y[3]):Y&&(T=Math.round(2*Y.valid[1]/(this.extent.getWidth()/this.width)));return T},_fixAspectRatio:function(T){var Y=T.getWidth(),oa=T.getHeight(),ua=Y/oa,ya=this.width/this.height,Ea=0,Fa=0;this.width>this.height?Y>oa?ya>ua?Ea=oa*ya-Y:Fa=Y/ya-oa:Ea=oa*ya-Y:this.width<this.height?Y<oa?ya>ua?Ea=oa*ya-Y:Fa=Y/ya-oa:Fa=Y/ya-oa:Y<oa?Ea=oa-Y:Y>oa&&(Fa=Y/ya-oa);Ea&&(T.xmin-=
Ea/2,T.xmax+=Ea/2);Fa&&(T.ymin-=Fa/2,T.ymax+=Fa/2);return T},_reshapeExtent:function(T){T=this._fixAspectRatio(T);return this._getAdjustedExtent(T)},_getAdjustedExtent:function(T){if(this.__tileInfo)return t.getCandidateTileInfo(this,this.__tileInfo,T);var Y=ba.getScale(this,T),oa=this.getMinScale(),ua=this.getMaxScale();!oa||Y<=oa?!ua||Y>=ua||(T=ba.getExtentForScale(this,ua,T)):T=ba.getExtentForScale(this,oa,T);return{extent:T}},_onBingLayerAdd:function(T){this["__"+T.id+"_vis_connect"]=e.connect(T,
"onVisibilityChange",this,"_toggleBingLogo");this._toggleBingLogo(T.visible)},_onBingLayerRemove:function(T){e.disconnect(this["__"+T.id+"_vis_connect"]);delete this["__"+T.id+"_vis_connect"];var Y=m.some(this.layerIds,function(oa){return(T=this._layers[oa])&&T.visible&&-1!==T.declaredClass.indexOf("VETiledLayer")},this);this._toggleBingLogo(Y)},_toggleBingLogo:function(T){T&&!this._bingLogo?(T={left:this._mapParams&&this._mapParams.nav?"25px":""},6===c("ie")&&(T.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled\x3d'true', sizingMethod\x3d'crop', src\x3d'"+
F.toUrl("./images/map/bing-logo-lg.png")+"')"),T=this._bingLogo=k.create("div",{style:T},this.root),l.add(T,"bingLogo-lg")):!T&&this._bingLogo&&(k.destroy(this._bingLogo),delete this._bingLogo)},__panStart:function(T,Y){var oa=this._zoomAnim,ua=this._panAnim;if(oa&&oa._active)oa.stop(),oa._fire("onEnd",[oa.node]);else if(ua&&ua._active){ua.stop();this._panAnim=null;Y=ua.curve.getValue(ua._getStep());T=Math.round(parseFloat(Y.left));Y=Math.round(parseFloat(Y.top));oa=this.navigationManager._dragOrigin;
this.__pan(T,Y);oa&&(oa.x-=T,oa.y-=Y);return}this.__panning=!0;this.onPanStart(this.extent,new fa(T,Y))},__pan:function(T,Y){var oa=this.extent,ua=this._ratioW,ya=this._ratioH;this.onPan(new qa(oa.xmin-T/ua,oa.ymin+Y/ya,oa.xmax-T/ua,oa.ymax+Y/ya,this.spatialReference),new fa(T,Y))},__panEnd:function(T,Y){var oa=this.__visibleRect,ua=this.__visibleDelta;oa.x+=T;oa.y+=Y;ua.x+=T;ua.y+=Y;oa=new fa(T,Y);ua=this.extent;var ya=this._ratioW,Ea=this._ratioH;ua=new qa(ua.xmin-T/ya,ua.ymin+Y/Ea,ua.xmax-T/ya,
ua.ymax+Y/Ea,this.spatialReference);this.__panning=!1;this._updateExtent(ua);this.onPanEnd(ua,oa);this._fireExtChg([ua,oa,!1,this.__LOD])},__zoomStart:function(T,Y){this.__zooming=!0;this.onZoomStart(T,1,Y,this.__LOD?this.__LOD.level:null)},__zoom:function(T,Y,oa){this.onZoom(T,Y,oa)},__zoomEnd:function(T,Y,oa,ua,ya){pa(this._layersDiv,{left:"0px",top:"0px"});this._delta=new fa(0,0);this.__visibleRect.x=this.__visibleRect.y=0;T=new qa(T);this.__LOD=ua;this._ratioW=this.width/T.getWidth();this._ratioH=
this.height/T.getHeight();var Ea=this._delta;this._delta=null;this.__zooming=!1;this._updateExtent(T,ya);this.onZoomEnd(T,Y,oa,ua?ua.level:null);this._fireExtChg([T,Ea,ya,ua])},_extentUtil:function(T,Y,oa,ua,ya){var Ea=new y,Fa=this.width,Ka=this.height;if(T){var Ja=T.numLevels;var Ga=T.targetLevel;var Na=E.isDefined(Ga);var Ra=T.factor;var Va=T.mapAnchor;var Sa=T.screenAnchor;var Wa=T.mapCenter;var jb=T.levelOrFactor;var hb=T.targetScale;var fb=E.isDefined(hb)&&0<hb}if(Y){var Oa=Y.dx;var Xa=Y.dy;
Wa=Y.mapCenter}q.isArray(Wa)&&(Wa=new Z(Wa));var ib=this._panAnim;Y=(T=this._stopAnim())?T.divExtent:this.extent;var Ya=this.__tileInfo,Za=this._params;if(!this.loaded){if(oa)Y&&(oa=this._convertGeometry(Y,oa)),oa&&(this.extent=oa,Za.zoom=Za.scale=-1,Za.center=null);else if(Wa||Na||fb){if(Wa)if(Y){if(Wa=this._convertGeometry(Y,Wa))this.extent=Y.centerAt(Wa),Za.center=null}else Za.center=Wa;Na&&-1<Ga?(Za.zoom=Ga,Za.scale=-1):fb&&(Za.scale=hb,Za.zoom=-1)}Ea.resolve();return Ea}if(Wa&&(Wa=this._convertGeometry(this,
Wa),!Wa)||Va&&(Va=this._convertGeometry(this,Va),!Va)||oa&&(oa=this._convertGeometry(this,oa),!oa))return Ea.reject(),Ea;ib&&Va&&Sa&&(Va=ta(this.extent,Fa,Ka,Sa));T&&Va&&Sa&&(Va=ta(T.divExtent,Fa,Ka,Sa));if(Na)if(Ya)Ja=this.getMinZoom(),Na=this.getMaxZoom(),Ga<Ja?Ga=Ja:Ga>Na&&(Ga=Na),Ja=Ga-(T?T.level:this.getLevel());else{Ja=0<Ga?-1:1;var db=jb?Ga:null}if(!oa)if(E.isDefined(Ja))Ya?(Fa=T?T.level:this.getLevel(),Fa=this.__getExtentForLevel(Fa+Ja,Wa,Y).extent):(Fa=(T?T.end:this.extent).expand(db||(0<
Ja?.5*Ja:2*-Ja)),db&&Wa&&(Fa=Fa.centerAt(Wa))),Fa&&(Wa?oa=Fa:(Oa=Va||Y.getCenter(),Ka=Fa.getWidth(),Xa=Fa.getHeight(),Fa=Oa.x>=Y.xmin&&Oa.x<=Y.xmax?(Oa.x-Y.xmin)/Y.getWidth():.5,oa=Oa.y>=Y.ymin&&Oa.y<=Y.ymax?(Oa.y-Y.ymin)/Y.getHeight():.5,Fa=Oa.x-Fa*Ka,Oa=Oa.y-oa*Xa,oa=new qa(Fa,Oa,Fa+Ka,Oa+Xa,this.spatialReference)));else if(fb)oa=ba.getExtentForScale(this,hb,Y);else if(E.isDefined(Ra))oa=Y.expand(Ra);else if(Oa||Xa)T?(oa=T.end,Va=oa.getCenter(),db=Ba(oa,Fa,Ka,Va),db.x+=Oa,db.y+=Xa,db=ta(oa,Fa,Ka,
db),oa=oa.offset(db.x-Va.x,db.y-Va.y)):(Oa=new fa(Fa/2+Oa,Ka/2+Xa),Oa=ta(Y,Fa,Ka,Oa),Ka=Y.getWidth(),Xa=Y.getHeight(),Fa=Oa.x-Ka/2,Oa=Oa.y-Xa/2,oa=new qa(Fa,Oa,Fa+Ka,Oa+Xa,this.spatialReference));oa||(Wa?(Y=T?T.end:Y,Ka=Y.getWidth(),Xa=Y.getHeight(),Fa=Wa.x-Ka/2,Oa=Wa.y-Xa/2,oa=new qa(Fa,Oa,Fa+Ka,Oa+Xa,this.spatialReference)):T&&(oa=T.end));oa?(this._extentDfd&&-1===this._extentDfd.fired&&(this._extentDfd.then(null,Da),this._extentDfd.reject()),this._extentDfd=Ea,this.__setExtent(oa,null,Sa,ua,T,
ya)):Ea.reject();return Ea},__setExtent:function(T,Y,oa,ua,ya,Ea){try{if(this._firstLayerId)this.extent=T;else{var Fa=!0,Ka=this.spatialReference,Ja=ya?ya.divExtent:this.extent,Ga=this._fixExtent(T,ua||!1);T=Ga.extent;var Na=T.getWidth(),Ra=T.getHeight(),Va=Math.round;if(Ja){var Sa=Va(1E6*Ja.getWidth()),Wa=Va(1E6*Na),jb=Va(1E6*Ja.getHeight()),hb=Va(1E6*Ra);Fa=Sa!==Wa||jb!==hb}var fb,Oa=ya&&ya.rect,Xa=ya&&ya.divExtent;if(sa.zoomDuration&&Fa&&Ja){Xa=Xa||new qa(Ja);Oa=Oa||{left:Ja.xmin,top:Ja.ymax,width:Ja.getWidth(),
height:Ja.getHeight()};var ib={left:T.xmin,top:T.ymax,width:Na,height:Ra};var Ya=new Z(T.xmin,T.ymax,Ka),Za=new Z(T.xmin,T.ymin,Ka),db=new Z(this.extent.xmin,this.extent.ymax,Ka),tb=new Z(this.extent.xmin,this.extent.ymin,Ka);(fb=ea.getLineIntersection(db,Ya,tb,Za,Ka))||ya||(Fa=!1)}this._ratioW=this.width/Na;this._ratioH=this.height/Ra;var gb=this._zoomAnimDiv;if(Fa)if(pa(this._layersDiv,{left:"0px",top:"0px"}),Y=new fa(0,0),this.__visibleRect.x=this.__visibleRect.y=0,Oa&&ib){this._delta=Y;gb.id=
"_zAD";gb.startingExtent=Xa;gb.extent=T;gb.levelChange=Fa;gb.newLod=Ga.lod;gb.anchor=oa?oa:!fb&&ya?ya.anchor:Ba(this.extent,this.width,this.height,fb);var rb=this.extent.getWidth()/T.getWidth();sa.zoomAnimationThrottled&&1024<(1>rb?1/rb:rb)?(this.__zoomStart(Xa,gb.anchor),this.__zoom(Xa,1,gb.anchor),this._fireOnScale(1,gb.anchor,!0),this.__zoomEnd(T,rb,gb.anchor,Ga.lod,Fa)):(this._zoomAnim=w.resize({node:gb,start:Oa,end:ib,duration:sa.zoomDuration,rate:sa.zoomRate,beforeBegin:ya?null:this._zoomStartHandler,
onAnimate:this._zoomingHandler,onEnd:this._zoomEndHandler}).play(),this._fireOnScale(rb,gb.anchor,Ea))}else this._updateExtent(T,Fa,Ea),this._fireExtChg([this.extent,Y,Fa,this.__LOD=Ga.lod]);else if(!this.__panning)if(!1===this.loaded||Ea)this._updateExtent(T,Fa,Ea),this._fireExtChg([this.extent,Y,Fa,this.__LOD=Ga.lod]);else{this.__panning=!0;Oa=(new V(0,0,this.width,this.height,this.spatialReference)).getCenter();Oa.x=Va(Oa.x);Oa.y=Va(Oa.y);var qb=this._delta=this.toScreen(T.getCenter()),Eb=Math.abs(Oa.x-
qb.x),ub=Math.abs(Oa.y-qb.y);this.optimizePanAnimation&&(Eb>2*this.width||ub>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(T,!1,Ea),this.onPanEnd(this.extent,new fa(0,0)),this._fireExtChg([this.extent,new fa(0,0),!0,this.__LOD])):(this.onPanStart(this.extent,new fa(0,0)),this._panAnim=w.slideTo({node:gb,left:Oa.x-qb.x,top:Oa.y-qb.y,duration:sa.panDuration,
rate:sa.panRate,onAnimate:this._panningHandler,onEnd:this._panEndHandler}),this._panAnim.play())}}}catch(vb){console.log(vb.stack),console.error(vb)}},_fireOnScale:function(T,Y,oa){if("css-transforms"===this.navigationMode){var ua=this.__visibleDelta;this.onScale(v.scaleAt(T,{x:-1*(this.width/2-(Y.x-ua.x)),y:-1*(this.height/2-(Y.y-ua.y))}),oa)}},_stopAnim:function(){var T=this._zoomAnim,Y=this._panAnim;if(T&&T._active){T.stop();Y=T.curve.getValue(T._getStep());var oa=parseFloat(Y.left),ua=parseFloat(Y.top);
T=T.node;return{anchor:T.anchor,start:T.startingExtent,end:T.extent,level:T.newLod&&T.newLod.level,rect:Y,divExtent:new qa(oa,ua-parseFloat(Y.height),oa+parseFloat(Y.width),ua,this.spatialReference)}}Y&&Y._active&&(Y.stop(),Y._fire("onEnd",[Y.node]))},__getExtentForLevel:function(T,Y,oa){var ua=this.__tileInfo;ua=ua&&ua.lods;T=E.isDefined(T)?T:0;oa=oa||this.extent;Y=Y||oa&&oa.getCenter();if(ua){if(Y){oa=this.getMinZoom();var ya=this.getMaxZoom();T>ya&&(T=ya);T<oa&&(T=oa);T=ua[T];ua=this.width*T.resolution/
2;oa=this.height*T.resolution/2;return{extent:new qa(Y.x-ua,Y.y-oa,Y.x+ua,Y.y+oa,Y.spatialReference),lod:T}}}else if(oa)return{extent:oa.expand(!T||1>T?1:T).centerAt(Y)};console.log("Map: "+this.invalidExtent)},_jobs:0,_incr:function(){1===++this._jobs&&(this.updating=!0,this.attr("data-updating",""),this.onUpdateStart())},_decr:function(){var T=--this._jobs;T?0>T&&(this._jobs=0):(this.updating=!1,this.attr("data-updating"),this.onUpdateEnd())},_fireEvent:function(T,Y){this[T]&&this[T].apply(this,
Y)},_updateExtent:function(T,Y,oa){this.extent=T;T=this.spatialReference;this._viewInfo={view:new ja({viewingMode:"map",scale:this.getScale()}),sr:T,version:Y?++La:La};(Y||oa)&&this._setClipRect();this._calcGeographicExtent()},_calcGeographicExtent:function(){var T=this.spatialReference;T&&(T.isWebMercator()?this.geographicExtent=va.webMercatorToGeographic(this._getAvailExtent(),!0):4326===T.wkid&&(this.geographicExtent=new qa(this._getAvailExtent().toJson())))},_fireExtChg:function(T){this.attr("data-zoom",
this.getZoom());this.attr("data-scale",this.getScale());this._fireEvent("onExtentChange",T);if(T=this._extentDfd)delete this._extentDfd,T.resolve()},attr:function(T,Y){var oa=this.container;oa&&(null==Y?oa.removeAttribute(T):oa.setAttribute(T,Y));return this},onUpdateStart:function(){},onUpdateEnd:function(){},onLoad:function(){this._setClipRect();this._calcGeographicExtent()},onBeforeUnload:function(){},onUnload:function(){},onExtentChange:function(T,Y,oa){},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(T){pa(this.__container,"cursor",this.cursor=T)},setMapCursor:function(T){this.setCursor(this._cursor=T)},resetMapCursor:function(){this.setCursor(this._cursor)},setBackgroundColor:function(T){T&&!T.declaredClass&&(T=new J(T));this.backgroundColor=T||null;var Y="";T&&(Y=9>c("ie")?
T.toHex():"rgba("+T.toRgba().join(",")+")");h.set(this.root,{backgroundColor:Y})},setInfoWindow:function(T){var Y=this.infoWindow;Y&&Y.unsetMap(this);this.infoWindow=T;this.loaded&&T&&T.setMap(this)},setInfoWindowOnClick:function(T){this._params.showInfoWindowOnClick=T;this.popupManager&&this.popupManager.set("enabled",T)},getInfoWindowAnchor:function(T){return this.infoWindow&&this.infoWindow._getAnchor&&this.infoWindow._getAnchor(T)||"upperright"},toScreen:function(T,Y){return Ba(this.extent,this.width,
this.height,T,Y)},toMap:function(T){return ta(this.extent,this.width,this.height,T)},addLayer:function(T,Y){T&&!this.getLayer(T.id)&&this._addLayer(T,T instanceof da?this.graphicsLayerIds:this.layerIds,Y);return T},addLayers:function(T){var Y=[],oa=T.length,ua,ya=T.length;var Ea=e.connect(this,"onLayerAddResult",function(Fa,Ka){-1!==m.indexOf(T,Fa)&&(oa--,Y.push({layer:Fa,success:!Ka,error:Ka}),oa||(e.disconnect(Ea),this.onLayersAddResult(Y)))});for(ua=0;ua<ya;ua++)this.addLayer(T[ua]);return this},
removeLayer:function(T,Y){var oa=T.id,ua=T instanceof da?this.graphicsLayerIds:this.layerIds,ya=ra(ua,oa);0<=ya&&(this._forgetLayer(T),ua.splice(ya,1),this.loaded||this._firstLayerId!==oa||(this._firstLayerId=null),T instanceof da?this._detachGraphicsLayer(T):T.loaded&&(T.getMap()&&T._unsetMap(this,this._layersDiv),-1!==T.declaredClass.indexOf("VETiledLayer")&&this._onBingLayerRemove(T)),delete this._layers[oa],delete this._layerDivs[oa],Y||this._reorderLayers(ua),this.onLayerRemove(T))},removeAllLayers:function(){var T=
this.layerIds,Y;for(Y=T.length-1;0<=Y;Y--)this.removeLayer(this._layers[T[Y]],1);T=this.graphicsLayerIds;for(Y=T.length-1;0<=Y;Y--)this.removeLayer(this._layers[T[Y]],1);this.onLayersRemoved()},reorderLayer:function(T,Y){q.isString(T)&&(b.deprecated(this.declaredClass+": Map.reorderLayer(/*String*/ id, /*Number*/ index) deprecated. Use Map.reorderLayer(/*Layer*/ layer, /*Number*/ index).",null,"v2.0"),T=this.getLayer(T));var oa=T.id,ua=T instanceof da?this.graphicsLayerIds:this.layerIds;0>Y?Y=0:Y>=
ua.length&&(Y=ua.length-1);T=ra(ua,oa);-1!==T&&T!==Y&&(ua.splice(T,1),ua.splice(Y,0,oa),this._reorderLayers(ua))},getLayer:function(T){return this._layers[T]},setWebGLEnabled:function(T){var Y=this.webglEnabled;this.webglEnabled=(T||!1)&&Pa;if(Y!==this.webglEnabled)this.onWebGLEnabledChange()},isWebGLContextAvailable:function(){return P.isContextAvailable()&&(-1===this.maxWebGLContexts||0<this.maxWebGLContexts&&this._webglContextOwners.length<this.maxWebGLContexts)},ownsWebGLContext:function(T){return-1!==
m.indexOf(this._webglContextOwners,T)},acquireWebGLContext:function(T){return-1!==m.indexOf(this._webglContextOwners,T)?!0:this.isWebGLContextAvailable()?(P.acquireContext(T),this._webglContextOwners.push(T),!0):!1},releaseWebGLContext:function(T){var Y=m.indexOf(this._webglContextOwners,T);-1!==Y&&this._webglContextOwners.splice(Y,1);P.releaseContext(T)},releaseAllWebGLContexts:function(){var T=this._webglContextOwners.slice(0);m.forEach(T,function(Y){this.releaseWebGLContext(Y)},this)},syncHitTestForWebGL:function(T){var Y,
oa=T.screenPoint;T=this.graphicsLayerIds.slice(0).reverse();m.some(T,function(ua){ua=this.getLayer(ua);ua.loaded&&!ua.suspended&&ua.hasWebGLSurface()&&(Y=ua._div.syncHitTest(oa.x,oa.y));return!!Y},this);return Y},setExtent:function(T,Y){T=new qa(T.toJson());var oa=T.getWidth(),ua=T.getHeight();return 0===oa&&0===ua?this.centerAt(new Z({x:T.xmin,y:T.ymin,spatialReference:T.spatialReference&&T.spatialReference.toJson()})):this._extentUtil(null,null,T,Y)},getTargetExtent:function(T){if(T)return T=new qa(T.toJson()),
0!==T.getWidth()&&0!==T.getHeight()&&(T=(T=this._convertGeometry(this,T))&&this._fixExtent(T).extent),T},centerAt:function(T){return this._extentUtil(null,{mapCenter:T})},centerAndZoom:function(T,Y){return this._extentUtil({targetLevel:Y,mapCenter:T,levelOrFactor:!0})},getScale:function(){return this.__LOD?this.__LOD.scale:ba.getScale(this)},getResolution:function(){return this.__LOD?this.__LOD.resolution:this.extent?this.extent.getWidth()/this.width:0},getResolutionInMeters:function(){return this.getResolution()*
ba.getUnitValueForSR(this.spatialReference)},getResolutionForPopup:function(){var T=this.getResolution(),Y=this.getResolutionInMeters(),oa=Y/16;return 10>=oa?0:T/Y*oa},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(T){return this._extentUtil({targetScale:T})},getLayersVisibleAtScale:function(T){var Y=
[];(T=T||this.getScale())&&m.forEach(this.layerIds.concat(this.graphicsLayerIds),function(oa){oa=this.getLayer(oa);oa.isVisibleAtScale(T)&&Y.push(oa)},this);return Y},getNumLevels:function(){var T=this.getMinZoom(),Y=this.getMaxZoom();return T===Y&&0>T?0:Y-T+1},getLevel:function(){return this.__LOD?this.__LOD.level:-1},setLevel:function(T){if(-1<T)return this._extentUtil({targetLevel:T})},getZoom:function(){return this.getLevel()},setZoom:function(T){return this.setLevel(T)},getMinZoom:function(){return this._params.minZoom},
getMaxZoom:function(){return this._params.maxZoom},setBasemap:function(T){if(q.isObject(T)){var Y=T;T=Y.title}else Y=x&&x[T];if(Y){this._basemapDfd&&!this._basemapDfd.isFulfilled()&&this._basemapDfd.cancel();var oa=[],ua=0;m.forEach(Y.baseMapLayers||Y.layers,function(Ea){var Fa={id:Ea.id,displayLevels:Ea.displayLevels,opacity:E.isDefined(Ea.opacity)?Ea.opacity:null,visible:E.isDefined(Ea.visibility)?Ea.visibility:null};if(Fa=this._createBaseLayerInstance(Ea,Fa,T))oa.push(Fa),Ea.isReference||ua++},
this);oa.length&&ua?(this._basemapDfd=U(oa).otherwise(ia(this,function(Ea){this._basemapPending=!1;Ea&&"cancel"===Ea.dojoType&&m.forEach(oa,function(Fa){Fa.cancel()});throw Ea;})).then(function(Ea){var Fa=[],Ka=[];m.forEach(Ea,function(Ja){Ja&&(Ja.layerInfo&&Fa.push(Ja.layerInfo),Ja.layer&&Ka.push(Ja.layer))});return{basemapName:T,infos:Fa,layers:Ka}}).then(ia(this,this._waitForBaseLayers)).then(ia(this,this._setBasemap)),this._basemapPending=!this.loaded&&!this._basemapDfd.isFulfilled()):console.log("Map.setBasemap: "+
E.substitute({basemapName:T},this.invalidBasemap))}else{Y=[];for(var ya in x)Y.push(ya);console.log("Map.setBasemap: "+E.substitute({basemapName:T,list:Y.join(",")},this.unknownBasemap))}},_createBaseLayerInstance:function(T,Y,oa){var ua=new y;if(T.type)switch(T.type){case "OpenStreetMap":ua.resolve({layerInfo:T,layer:new O(Y)});break;case "VectorTile":F(["./layers/VectorTileLayer"],function(Ea){ya=A.normalize(T.url);ua.promise.isFulfilled()||ua.resolve({layerInfo:T,layer:new Ea(ya,Y)})});break;default:return console.log("Map.setBasemap: "+
E.substitute({basemapName:oa,type:T.type},this.unknownLayerType)),null}else{var ya=A.normalize(T.url);ua.resolve({layerInfo:T,layer:new S(ya,Y)})}return ua.promise},_waitForBaseLayers:function(T){var Y=new y(D._dfdCanceller);Y.promise.otherwise(function(ua){if(ua&&"cancel"===ua.dojoType){for(var ya in Y._layerEvents)ua=Y._layerEvents[ya],e.disconnect(ua[0]),e.disconnect(ua[1]);delete Y._layerEvents}});if(!this.loaded)return Y.resolve(T),Y.promise;var oa=function(ua){Y._pendingLayers--;ua=m.indexOf(T.layers,
this);-1<ua&&(ua=Y._layerEvents[ua])&&(e.disconnect(ua[0]),e.disconnect(ua[1]));0>=Y._pendingLayers&&(delete Y._layerEvents,Y.isFulfilled()||Y.resolve(T))};Y._pendingLayers=0;Y._layerEvents={};m.forEach(T.layers,function(ua,ya){ua&&Y._pendingLayers++});m.forEach(T.layers,function(ua,ya){ua&&(ua.loaded?oa(ua):Y._layerEvents[ya]=[e.connect(ua,"onLoad",ua,oa),e.connect(ua,"onError",ua,oa)])});return Y.promise},_setBasemap:function(T){var Y=T.layers,oa=T.infos,ua=0,ya=!0;this._basemapPending=!1;this.loaded&&
(m.forEach(Y,function(Fa,Ka){Fa.loaded&&(oa[Ka].isReference||ua++)}),ya=ua);if(ya){if(ya=this._getBasemapLayerIds()){var Ea={basemapName:this._basemap,infos:x&&x[this._basemap]&&x[this._basemap].baseMapLayers};Ea.basemapName||(m.forEach(ya,function(Fa){if(this.getLayer(Fa)instanceof O)return Ea.basemapName="osm",Ea.infos=x&&x.osm&&x.osm.baseMapLayers,!1},this),Ea.basemapName||(Ea=null))}this._removeBasemap(ya);this._basemap=T.basemapName;this.basemapLayerIds=this._addBasemapLayers(Y,oa);this.attr("data-basemap",
this.getBasemap());this.emit("basemap-change",{current:T,previous:Ea})}},_getBasemapLayerIds:function(){var T=[];m.forEach(this.layerIds,function(Y){Y=this.getLayer(Y);Y._basemapGalleryLayerType&&T.push(Y.id)},this);return T},_addBasemapLayers:function(T,Y){var oa=[],ua=[],ya=0;m.forEach(T,function(Ea,Fa){Y[Fa].isReference?oa.push(Ea):(Ea._basemapGalleryLayerType="basemap",this.addLayer(Ea,ya++),ua.push(Ea.id))},this);oa.length&&m.forEach(oa,function(Ea){Ea.attr("data-reference",!0);Ea._basemapGalleryLayerType=
"reference";this.addLayer(Ea,"top");ua.push(Ea.id)},this);return ua},_removeBasemap:function(T){m.forEach(T,function(Y){(Y=this.getLayer(Y))&&this.removeLayer(Y)},this)},getBasemap:function(){return this._basemap||""},translate:function(T,Y){T=T||0;Y=Y||0;if(!this._txTimer){this._tx=this._ty=0;var oa=this.toScreen(this.extent.getCenter());this.__panStart(oa.x,oa.y)}this._tx+=T;this._ty+=Y;this.__pan(this._tx,this._ty);clearTimeout(this._txTimer);this._txTimer=setTimeout(this._endTranslate,150)},_endTranslate:function(){clearTimeout(this._txTimer);
this._txTimer=null;var T=this._tx,Y=this._ty;this._tx=this._ty=0;this.__panEnd(T,Y)},setTimeExtent:function(T){T=(this.timeExtent=T)?new T.constructor(T.toJson()):null;this.onTimeExtentChange(T)},setTimeSlider:function(T){this.timeSlider&&(Q(this._tsTimeExtentChange_connect),this.timeSlider=this._tsTimeExtentChange_connect=null);T&&(this.timeSlider=T,this.setTimeExtent(T.getCurrentTimeExtent()),this._tsTimeExtentChange_connect=N(T,"onTimeExtentChange",this,"setTimeExtent"))},setVisibility:function(T){if(this.visible!==
T){this.visible=T;T||(this._display=this.container.style.display);this.container.style.display=T?this._display:"none";if(this.autoResize){var Y=T?"resume":"pause";this._rszSignal[Y]();this._oriSignal[Y]()}T&&this.resize()}return this},resize:function(T){clearTimeout(this._resizeTimerHandle);this._destroyed||(!0===T?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 T=this.width,Y=this.height,oa=h.get(this.container,"display"),ua=n.getContentBox(this.container);if(!("none"===oa||0>=ua.w||0>=ua.h||T===ua.w&&Y===ua.h)){if(oa=this._zoomAnim||this._panAnim)oa.stop(),oa._fire("onEnd",[oa.node]);pa(this.root,{width:(this.width=ua.w)+"px",height:(this.height=ua.h)+"px"});ua=this.width;oa=this.height;this.attribution&&this.attribution.domNode&&
h.set(this.attribution.domNode,"maxWidth",Math.floor(ua*this._mapParams.attributionWidth)+"px");this.__visibleRect.update(this.__visibleRect.x,this.__visibleRect.y,ua,oa);this.__visibleDelta.update(this.__visibleDelta.x,this.__visibleDelta.y,ua,oa);var ya=new V(this.extent);T=(new V(ya.x,ya.y,ua/T*ya.width,oa/Y*ya.height,this.spatialReference)).getExtent();this.onResize(T,ua,oa);this._extentUtil(null,null,T,null,!0)}},reposition:function(){var T=this.position,Y=T.x,oa=T.y;this._reposition();T=this.position;
if(Y!==T.x||oa!==T.y)this.onReposition(T.x,T.y)},_reposition:function(){var T=n.position(this.container,!0),Y=n.getPadBorderExtents(this.container);this.position.update(T.x+Y.l,T.y+Y.t)},_setClipRect:function(){delete this._clip;var T=7>=c("ie")||void 0===c("ie")&&7<=c("trident")?"rect(auto,auto,auto,auto)":"auto";if(this.wrapAround180){var Y=this.width,oa=this.height,ua=this._getFrameWidth(),ya=Y-ua;0<ya&&(T=ya/2,T="rect(0px,"+(T+ua)+"px,"+oa+"px,"+T+"px)",oa=this.extent.getWidth(),Y=ua/Y*oa,this._clip=
[(oa-Y)/2,Y])}pa(this.__container,"clip",T)},_getAvailExtent:function(){var T=this.extent,Y=this._clip;if(Y){if(!T._clip){var oa=new V(T);oa.width=Y[1];oa.x+=Y[0];T._clip=oa.getExtent()}return T._clip}return T},_fixedPan:function(T,Y){return this._extentUtil(null,{dx:T,dy:Y})},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(T){T=T||{};if("esri.SnappingManager"===T.declaredClass)this.snappingManager=T;else{var Y=ca++,oa=this;this._rids&&this._rids.push(Y);F(["./SnappingManager"],function(ua){var ya=
oa._rids?m.indexOf(oa._rids,Y):-1;-1!==ya&&(oa._rids.splice(ya,1),oa.snappingManager=new ua(q.mixin({map:oa},T)))})}return this.snappingManager},disableSnapping:function(){this.snappingManager&&this.snappingManager.destroy();this.snappingManager=null},_createLabelLayer:function(){!this._labels&&la&&this.loaded&&(this._labels=new la({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(),m.forEach(this.graphicsLayerIds,function(T){T=this.getLayer(T);"function"===typeof T.applyEdits?this._labels.addFeatureLayer(T):"esri.layers.WFSLayer"===T.declaredClass&&this._labels.addFeatureLayer(T)},this))},_getMapImageLyr:function(){this.loaded&&!this._mapImageLyr&&(this._mapImageLyr=new X,this._mapImageLyr._setMap(this,
this._layersDiv),this._placeMapImageLyr());return this._mapImageLyr},_placeMapImageLyr:function(){for(var T=this.layerIds,Y=this._layerDivs,oa=!1,ua,ya,Ea=T.length-1;0<=Ea;Ea--)if(ua=T[Ea],ya=this.getLayer(ua),ua=Y[ua],ya&&ua&&!ya._isReference){k.place(this._mapImageLyr._div,ua,"after");oa=!0;break}oa||k.place(this._mapImageLyr._div,this._layersDiv,"first")}});c("extend-esri")&&(z._CoreMap=p);return p})},"dojox/gfx/matrix":function(){define(["./_base","dojo/_base/lang"],function(F,u){var b=F.matrix=
{},p={};b._degToRad=function(e){return p[e]||(p[e]=Math.PI*e/180)};b._radToDeg=function(e){return e/Math.PI*180};b.Matrix2D=function(e){if(e)if("number"==typeof e)this.xx=this.yy=e;else if(e instanceof Array){if(0<e.length){for(var y=b.normalize(e[0]),q=1;q<e.length;++q){var m=y,f=b.normalize(e[q]);y=new b.Matrix2D;y.xx=m.xx*f.xx+m.xy*f.yx;y.xy=m.xx*f.xy+m.xy*f.yy;y.yx=m.yx*f.xx+m.yy*f.yx;y.yy=m.yx*f.xy+m.yy*f.yy;y.dx=m.xx*f.dx+m.xy*f.dy+m.dx;y.dy=m.yx*f.dx+m.yy*f.dy+m.dy}u.mixin(this,y)}}else u.mixin(this,
e)};u.extend(b.Matrix2D,{xx:1,xy:0,yx:0,yy:1,dx:0,dy:0});u.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(e,y){return 1<arguments.length?new b.Matrix2D({dx:e,dy:y}):new b.Matrix2D({dx:e.x,dy:e.y})},scale:function(e,y){return 1<arguments.length?new b.Matrix2D({xx:e,yy:y}):"number"==typeof e?new b.Matrix2D({xx:e,yy:e}):new b.Matrix2D({xx:e.x,yy:e.y})},rotate:function(e){var y=Math.cos(e);e=Math.sin(e);
return new b.Matrix2D({xx:y,xy:-e,yx:e,yy:y})},rotateg:function(e){return b.rotate(b._degToRad(e))},skewX:function(e){return new b.Matrix2D({xy:Math.tan(e)})},skewXg:function(e){return b.skewX(b._degToRad(e))},skewY:function(e){return new b.Matrix2D({yx:Math.tan(e)})},skewYg:function(e){return b.skewY(b._degToRad(e))},reflect:function(e,y){1==arguments.length&&(y=e.y,e=e.x);var q=e*e,m=y*y,f=q+m,g=2*e*y/f;return new b.Matrix2D({xx:2*q/f-1,xy:g,yx:g,yy:2*m/f-1})},project:function(e,y){1==arguments.length&&
(y=e.y,e=e.x);var q=e*e,m=y*y,f=q+m,g=e*y/f;return new b.Matrix2D({xx:q/f,xy:g,yx:g,yy:m/f})},normalize:function(e){return e instanceof b.Matrix2D?e:new b.Matrix2D(e)},isIdentity:function(e){return 1==e.xx&&0==e.xy&&0==e.yx&&1==e.yy&&0==e.dx&&0==e.dy},clone:function(e){var y=new b.Matrix2D,q;for(q in e)"number"==typeof e[q]&&"number"==typeof y[q]&&y[q]!=e[q]&&(y[q]=e[q]);return y},invert:function(e){e=b.normalize(e);var y=e.xx*e.yy-e.xy*e.yx;return e=new b.Matrix2D({xx:e.yy/y,xy:-e.xy/y,yx:-e.yx/
y,yy:e.xx/y,dx:(e.xy*e.dy-e.yy*e.dx)/y,dy:(e.yx*e.dx-e.xx*e.dy)/y})},_multiplyPoint:function(e,y,q){return{x:e.xx*y+e.xy*q+e.dx,y:e.yx*y+e.yy*q+e.dy}},multiplyPoint:function(e,y,q){e=b.normalize(e);return"number"==typeof y&&"number"==typeof q?b._multiplyPoint(e,y,q):b._multiplyPoint(e,y.x,y.y)},multiplyRectangle:function(e,y){var q=b.normalize(e);y=y||{x:0,y:0,width:0,height:0};if(b.isIdentity(q))return{x:y.x,y:y.y,width:y.width,height:y.height};e=b.multiplyPoint(q,y.x,y.y);var m=b.multiplyPoint(q,
y.x,y.y+y.height),f=b.multiplyPoint(q,y.x+y.width,y.y);y=b.multiplyPoint(q,y.x+y.width,y.y+y.height);q=Math.min(e.x,m.x,f.x,y.x);var g=Math.min(e.y,m.y,f.y,y.y);return{x:q,y:g,width:Math.max(e.x,m.x,f.x,y.x)-q,height:Math.max(e.y,m.y,f.y,y.y)-g}},multiply:function(e){for(var y=b.normalize(e),q=1;q<arguments.length;++q){var m=y,f=b.normalize(arguments[q]);y=new b.Matrix2D;y.xx=m.xx*f.xx+m.xy*f.yx;y.xy=m.xx*f.xy+m.xy*f.yy;y.yx=m.yx*f.xx+m.yy*f.yx;y.yy=m.yx*f.xy+m.yy*f.yy;y.dx=m.xx*f.dx+m.xy*f.dy+m.dx;
y.dy=m.yx*f.dx+m.yy*f.dy+m.dy}return y},_sandwich:function(e,y,q){return b.multiply(b.translate(y,q),e,b.translate(-y,-q))},scaleAt:function(e,y,q,m){switch(arguments.length){case 4:return b._sandwich(b.scale(e,y),q,m);case 3:return"number"==typeof q?b._sandwich(b.scale(e),y,q):b._sandwich(b.scale(e,y),q.x,q.y)}return b._sandwich(b.scale(e),y.x,y.y)},rotateAt:function(e,y,q){return 2<arguments.length?b._sandwich(b.rotate(e),y,q):b._sandwich(b.rotate(e),y.x,y.y)},rotategAt:function(e,y,q){return 2<
arguments.length?b._sandwich(b.rotateg(e),y,q):b._sandwich(b.rotateg(e),y.x,y.y)},skewXAt:function(e,y,q){return 2<arguments.length?b._sandwich(b.skewX(e),y,q):b._sandwich(b.skewX(e),y.x,y.y)},skewXgAt:function(e,y,q){return 2<arguments.length?b._sandwich(b.skewXg(e),y,q):b._sandwich(b.skewXg(e),y.x,y.y)},skewYAt:function(e,y,q){return 2<arguments.length?b._sandwich(b.skewY(e),y,q):b._sandwich(b.skewY(e),y.x,y.y)},skewYgAt:function(e,y,q){return 2<arguments.length?b._sandwich(b.skewYg(e),y,q):b._sandwich(b.skewYg(e),
y.x,y.y)}});F.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(F,u,b,p,e,y,q,m,f){var g=u.getObject("dojox.gfx",!0),a=g._base={};g._hasClass=function(c,r){return(c=c.getAttribute("className"))&&0<=(" "+c+" ").indexOf(" "+r+" ")};g._addClass=function(c,r){var v=c.getAttribute("className")||"";(!v||0>(" "+v+" ").indexOf(" "+
r+" "))&&c.setAttribute("className",v+(v?" ":"")+r)};g._removeClass=function(c,r){var v=c.getAttribute("className");v&&c.setAttribute("className",v.replace(new RegExp("(^|\\s+)"+r+"(\\s+|$)"),"$1$2"))};a._getFontMeasurements=function(){var c={"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},r;if(p("ie")){var v=e.doc.documentElement.style.fontSize||"";v||(e.doc.documentElement.style.fontSize="100%")}var z=m.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"}},e.body());for(r in c)z.style.fontSize=r,c[r]=16*Math.round(12*z.offsetHeight/16)/12/1E3;p("ie")&&(e.doc.documentElement.style.fontSize=v);e.body().removeChild(z);return c};var d=null;a._getCachedFontMeasurements=function(c){if(c||!d)d=a._getFontMeasurements();return d};var l=null,k={};a._getTextBox=function(c,r,v){var z=arguments.length,C;l||(l=m.create("div",
{style:{position:"absolute",top:"-10000px",left:"0",visibility:"hidden"}},e.body()));var x=l;x.className="";var E=x.style;E.borderWidth="0";E.margin="0";E.padding="0";E.outline="0";if(1<z&&r)for(C in r)C in k||(E[C]=r[C]);2<z&&v&&(x.className=v);x.innerHTML=c;x.getBoundingClientRect?(E=x.getBoundingClientRect(),E={l:E.left,t:E.top,w:E.width||E.right-E.left,h:E.height||E.bottom-E.top}):E=f.getMarginBox(x);x.innerHTML="";return E};a._computeTextLocation=function(c,r,v,z){var C={};switch(c.align){case "end":C.x=
c.x-r;break;case "middle":C.x=c.x-r/2;break;default:C.x=c.x}C.y=c.y-v*(z?.75:1);return C};a._computeTextBoundingBox=function(c){if(!g._base._isRendered(c))return{x:0,y:0,width:0,height:0};var r=c.getShape();var v=c.getFont()||g.defaultFont;c=c.getTextWidth();v=g.normalizedLength(v.size);r=a._computeTextLocation(r,c,v,!0);return{x:r.x,y:r.y,width:c,height:v}};a._isRendered=function(c){for(c=c.parent;c&&c.getParent;)c=c.parent;return null!==c};var n=0;a._getUniqueId=function(){do var c=F._scopeName+
"xUnique"+ ++n;while(q.byId(c));return c};var h=p("pointer-events")?"touchAction":p("MSPointer")?"msTouchAction":null;a._fixMsTouchAction=h?function(c){c.rawNode.style[h]="none"}:function(){};u.mixin(g,{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 c={};return function(r){var v=c[r];if(v)return new v;v=c[r]=function(){};v.prototype=g["default"+r];return new v}}(),normalizeColor:function(c){return c instanceof b?c:new b(c)},normalizeParameters:function(c,r){var v;if(r){var z={};for(v in c)v in r&&!(v in z)&&(c[v]=
r[v])}return c},makeParameters:function(c,r){var v=null;if(!r)return u.delegate(c);var z={};for(v in c)v in z||(z[v]=u.clone(v in r?r[v]:c[v]));return z},formatNumber:function(c,r){var v=c.toString();if(0<=v.indexOf("e"))v=c.toFixed(4);else{var z=v.indexOf(".");0<=z&&5<v.length-z&&(v=c.toFixed(4))}return 0>c?v:r?" "+v:v},makeFontString:function(c){return c.style+" "+c.variant+" "+c.weight+" "+c.size+" "+c.family},splitFontString:function(c){var r=g.getDefault("Font");c=c.split(/\s+/);if(!(5>c.length)){r.style=
c[0];r.variant=c[1];r.weight=c[2];var v=c[3].indexOf("/");r.size=0>v?c[3]:c[3].substring(0,v);var z=4;0>v&&("/"==c[4]?z=6:"/"==c[4].charAt(0)&&(z=5));z<c.length&&(r.family=c.slice(z).join(" "))}return r},cm_in_pt:72/2.54,mm_in_pt:7.2/2.54,px_in_pt:function(){return g._base._getCachedFontMeasurements()["12pt"]/12},pt2px:function(c){return c*g.px_in_pt()},px2pt:function(c){return c/g.px_in_pt()},normalizedLength:function(c){if(0===c.length)return 0;if(2<c.length){var r=g.px_in_pt(),v=parseFloat(c);
switch(c.slice(-2)){case "px":return v;case "pt":return v*r;case "in":return 72*v*r;case "pc":return 12*v*r;case "mm":return v*g.mm_in_pt*r;case "cm":return v*g.cm_in_pt*r}}return parseFloat(c)},pathVmlRegExp:/([A-Za-z]+)|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g,pathSvgRegExp:/([A-DF-Za-df-z])|([-+]?\d*[.]?\d+(?:[eE][-+]?\d+)?)/g,equalSources:function(c,r){return c&&r&&c===r},switchTo:function(c){var r="string"==typeof c?g[c]:c;r&&(y.forEach("Group Rect Ellipse Circle Line Polyline Image Text Path TextPath Surface createSurface fixTarget".split(" "),
function(v){g[v]=r[v]}),"string"==typeof c?g.renderer=c:y.some(["svg","vml","canvas","canvasWithEvents","silverlight"],function(v){return g.renderer=g[v]&&g[v].Surface===g.Surface?v:null}))}});return g})},"esri/basemaps":function(){define(["require","dojo/has","./kernel","dojo/i18n!./nls/jsapi"],function(F,u,b,p){F={streets:{title:p.basemaps.streets,thumbnailUrl:F.toUrl("./images/basemap/streets.jpg"),itemId:"d8855ee4d3d74413babfb0f41203b168",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"}]},
satellite:{title:p.basemaps.satellite,thumbnailUrl:F.toUrl("./images/basemap/satellite.jpg"),itemId:"86de95d4e0244cba80f0fa2c9403a7b2",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"}]},hybrid:{title:p.basemaps.hybrid,thumbnailUrl:F.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:p.basemaps.terrain,thumbnailUrl:F.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:p.basemaps.topo,thumbnailUrl:F.toUrl("./images/basemap/topo.jpg"),itemId:"6e03e8c26aad4b9c92a87c1063ddb0e3",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"}]},
gray:{title:p.basemaps.gray,thumbnailUrl:F.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:p.basemaps["dark-gray"],thumbnailUrl:F.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:p.basemaps.oceans,thumbnailUrl:F.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:p.basemaps["national-geographic"],thumbnailUrl:F.toUrl("./images/basemap/national-geographic.jpg"),itemId:"509e2d6b034246d692a461724ae2d62c",baseMapLayers:[{url:"https://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer"}]},osm:{title:p.basemaps.osm,thumbnailUrl:F.toUrl("./images/basemap/osm.jpg"),itemId:"5d2bfa736f8448b3a1708e1f6be23eed",baseMapLayers:[{type:"OpenStreetMap"}]},"dark-gray-vector":{title:p.basemaps["dark-gray"],
thumbnailUrl:F.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:p.basemaps.gray,thumbnailUrl:F.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:p.basemaps.streets,thumbnailUrl:F.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:p.basemaps.topo,thumbnailUrl:F.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:p.basemaps["streets-night-vector"],thumbnailUrl:F.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:p.basemaps["streets-relief-vector"],
thumbnailUrl:F.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:p.basemaps["streets-navigation-vector"],thumbnailUrl:F.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"}]}};u("extend-esri")&&(b.basemaps=F);return F})},"esri/Evented":function(){define("dojo/_base/declare dojo/_base/lang dojo/aspect dojo/Evented dojo/has ./kernel".split(" "),function(F,u,b,p,e,y){F=F([p],{declaredClass:"esri.Evented",registerConnectEvents:function(){var q=this.constructor,m=this.constructor._meta.parents,f=[{}],g={},a,d=function(k,n){u.isArray(k)||(k=[k]);for(var h=0;h<k.length;h++){var c=k[h];c._meta&&c._meta.parents&&d(c._meta.parents,n);c.prototype._eventMap&&
n.push(u.mixin({},c.prototype._eventMap))}return n};if(!q._onMap){d(m,f);f.push(this._eventMap);m=u.mixin.apply(this,f);for(l in this)/^on\w/.test(l)&&u.isFunction(this[l])&&(f=this._hyphenLower(l).toLowerCase(),m[f]||(g[f]={method:l}));for(a in m){var l=this._onCamelCase(a);g[a]={method:l,argKeys:m[a]}}q._onMap=g;return q._onMap}},on:function(q,m){if(-1<q.indexOf(",")){for(var f=q.split(/\s*,\s*/),g=f.length,a=[];g--;)a.push(this.on(f[g],m));a.remove=function(){for(var k=0;k<a.length;k++)a[k].remove()};
return a}f=this.constructor._onMap||this.registerConnectEvents();g="string"==typeof q&&q.toLowerCase();var d=this._onCamelCase(g),l=f&&f[g];return(d=l&&l.method||this[d]&&u.isFunction(this[d])&&d)?l&&u.isArray(l.argKeys)?(f=this._onArr2Obj(m,f[g].argKeys),b.after(this,d,f,!0)):b.after(this,d,function(k){k=k||{};k.target||(k.target=this);m.call(this,k)},!0):this.inherited(arguments)},emit:function(q,m){var f,g,a=q.toLowerCase();var d=this._onCamelCase(q);var l=this.constructor._onMap||this.registerConnectEvents();
d=(g=l&&l[a]&&l[a].method||u.isFunction(this[d])&&d)&&this[g];g&&l&&l[a]&&this._onObj2Arr(function(){f=Array.prototype.slice.call(arguments)},l[a].argKeys)(m);m=m||{};m.target||(m.target=this);if(d){var k=f&&f.length?f:[m];k=d.apply(this,k)}this.inherited(arguments,[q,m]);return k},_onObj2Arr:function(q,m){if(m){var f=this;return function(g){var a,d=[],l=m.length;for(a=0;a<l;a++)d[a]=g[m[a]];q.apply(f,d)}}return q},_onArr2Obj:function(q,m){if(m){var f=this;return function(){var g,a={},d=arguments.length;
for(g=0;g<d;g++)a[m[g]]=arguments[g];a.target||(a.target=f);q.call(f,a)}}return q},_hyphenLower:function(q){return q.replace(/^on/,"").replace(/[A-Z](?=[a-z])/g,function(m,f){return(f?"-":"")+m.toLowerCase()})},_onCamelCase:function(q){return"on"+q.substr(0,1).toUpperCase()+q.substr(1).replace(/\-([a-z])/g,function(m,f){return f.toUpperCase()})}});e("extend-esri")&&(y.Evented=F);return F})},"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(F,u,b,p,e,y,q,m,f){var g={animateRange:function(a){var d=a.range;return new u.Animation(b.mixin({curve:new u._Line(d.start,d.end)},a))},resize:function(a){var d=a.node=p.byId(a.node),l=a.start,k=a.end;l||(l=e.getMarginBox(d),d=e.getPadBorderExtents(d),l=a.start={left:l.l+d.l,top:l.t+d.t,width:l.w-d.w,height:l.h-d.h});k||(k=a.anchor?a.anchor:{x:l.left,y:l.top},d=a.size,k=a.end={left:l.left-(d.width-l.width)*(k.x-l.left)/l.width,top:l.top-(d.height-l.height)*(k.y-l.top)/l.height,width:d.width,
height:d.height});return u.animateProperty(b.mixin({properties:{left:{start:l.left,end:k.left},top:{start:l.top,end:k.top},width:{start:l.width,end:k.width},height:{start:l.height,end:k.height}}},a))},slideTo:function(a){var d=a.node=p.byId(a.node),l=y.getComputedStyle,k=null,n=null,h=function(){return function(){var c="absolute"==d.style.position?"absolute":"relative";k="absolute"==c?d.offsetTop:parseInt(l(d).top)||0;n="absolute"==c?d.offsetLeft:parseInt(l(d).left)||0;"absolute"!=c&&"relative"!=
c&&(c=e.position(d,!0),k=c.y,n=c.x,d.style.position="absolute",d.style.top=k+"px",d.style.left=n+"px")}}();h();a=u.animateProperty(b.mixin({properties:{top:{start:k,end:a.top||0},left:{start:n,end:a.left||0}}},a));F.connect(a,"beforeBegin",a,h);return a},flash:function(a){a=b.mixin({end:"#f00",duration:500,count:1},a);a.duration/=2*a.count;var d=p.byId(a.node),l=a.start;l||(l=y.getComputedStyle(d).backgroundColor);var k=a.end,n=[],h=a.count;d={node:d,duration:a.duration};for(a=0;a<h;a++)n.push(u.animateProperty(b.mixin({properties:{backgroundColor:{start:l,
end:k}}},d))),n.push(u.animateProperty(b.mixin({properties:{backgroundColor:{start:k,end:l}}},d)));return q.chain(n)}};m("extend-esri")&&b.mixin(b.getObject("fx",!0,f),g);return g})},"dojo/fx":function(){define("./_base/lang ./Evented ./_base/kernel ./_base/array ./aspect ./_base/fx ./dom ./dom-style ./dom-geometry ./ready require".split(" "),function(F,u,b,p,e,y,q,m,f,g,a){b.isAsync||g(0,function(){a(["./fx/Toggler"])});b=b.fx={};g={_fire:function(k,n){this[k]&&this[k].apply(this,n||[]);return this}};
var d=function(k){this._index=-1;this._animations=k||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;p.forEach(this._animations,function(n){n&&("undefined"!=typeof n.duration&&(this.duration+=n.duration),n.delay&&(this.duration+=n.delay))},this)};d.prototype=new u;F.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=e.after(this._current,"onAnimate",F.hitch(this,"_onAnimate"),!0),this._onEndCtx=e.after(this._current,"onEnd",F.hitch(this,"_onEnd"),!0),this._current.play(0,!0))},play:function(k,n){this._current||(this._current=this._animations[this._index=0]);if(!n&&"playing"==this._current.status())return this;var h=e.after(this._current,"beforeBegin",F.hitch(this,function(){this._fire("beforeBegin")}),!0),c=e.after(this._current,
"onBegin",F.hitch(this,function(v){this._fire("onBegin",arguments)}),!0),r=e.after(this._current,"onPlay",F.hitch(this,function(v){this._fire("onPlay",arguments);h.remove();c.remove();r.remove()}));this._onAnimateCtx&&this._onAnimateCtx.remove();this._onAnimateCtx=e.after(this._current,"onAnimate",F.hitch(this,"_onAnimate"),!0);this._onEndCtx&&this._onEndCtx.remove();this._onEndCtx=e.after(this._current,"onEnd",F.hitch(this,"_onEnd"),!0);this._current.play.apply(this._current,arguments);return this},
pause:function(){if(this._current){var k=e.after(this._current,"onPause",F.hitch(this,function(n){this._fire("onPause",arguments);k.remove()}),!0);this._current.pause()}return this},gotoPercent:function(k,n){this.pause();var h=this.duration*k;this._current=null;p.some(this._animations,function(c,r){if(h<=c.duration)return this._current=c,this._index=r,!0;h-=c.duration;return!1},this);this._current&&this._current.gotoPercent(h/this._current.duration);n&&this.play();return this},stop:function(k){if(this._current){if(k){for(;this._index+
1<this._animations.length;++this._index)this._animations[this._index].stop(!0);this._current=this._animations[this._index]}var n=e.after(this._current,"onStop",F.hitch(this,function(h){this._fire("onStop",arguments);n.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()}});F.extend(d,g);b.chain=function(k){return new d(F.isArray(k)?
k:Array.prototype.slice.call(k,0))};var l=function(k){this._animations=k||[];this._connects=[];this.duration=this._finished=0;p.forEach(k,function(h){var c=h.duration;h.delay&&(c+=h.delay);this.duration<c&&(this.duration=c);this._connects.push(e.after(h,"onEnd",F.hitch(this,"_onEnd"),!0))},this);this._pseudoAnimation=new y.Animation({curve:[0,1],duration:this.duration});var n=this;p.forEach("beforeBegin onBegin onPlay onAnimate onPause onStop onEnd".split(" "),function(h){n._connects.push(e.after(n._pseudoAnimation,
h,function(){n._fire(h,arguments)},!0))})};F.extend(l,{_doAction:function(k,n){p.forEach(this._animations,function(h){h[k].apply(h,n)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(k,n){var h=this._pseudoAnimation;h[k].apply(h,n)},play:function(k,n){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(k,
n){var h=this.duration*k;p.forEach(this._animations,function(c){c.gotoPercent(c.duration<h?1:h/c.duration,n)});this._call("gotoPercent",arguments);return this},stop:function(k){this._doAction("stop",arguments);this._call("stop",arguments);return this},status:function(){return this._pseudoAnimation.status()},destroy:function(){this.stop();p.forEach(this._connects,function(k){k.remove()})}});F.extend(l,g);b.combine=function(k){return new l(F.isArray(k)?k:Array.prototype.slice.call(k,0))};b.wipeIn=function(k){var n=
k.node=q.byId(k.node),h=n.style,c;k=y.animateProperty(F.mixin({properties:{height:{start:function(){c=h.overflow;h.overflow="hidden";if("hidden"==h.visibility||"none"==h.display)return h.height="1px",h.display="",h.visibility="",1;var v=m.get(n,"height");return Math.max(v,1)},end:function(){return n.scrollHeight}}}},k));var r=function(){h.height="auto";h.overflow=c};e.after(k,"onStop",r,!0);e.after(k,"onEnd",r,!0);return k};b.wipeOut=function(k){var n=(k.node=q.byId(k.node)).style,h;k=y.animateProperty(F.mixin({properties:{height:{end:1}}},
k));e.after(k,"beforeBegin",function(){h=n.overflow;n.overflow="hidden";n.display=""},!0);var c=function(){n.overflow=h;n.height="auto";n.display="none"};e.after(k,"onStop",c,!0);e.after(k,"onEnd",c,!0);return k};b.slideTo=function(k){var n=null,h=null,c=function(r){return function(){var v=m.getComputedStyle(r),z=v.position;n="absolute"==z?r.offsetTop:parseInt(v.top)||0;h="absolute"==z?r.offsetLeft:parseInt(v.left)||0;"absolute"!=z&&"relative"!=z&&(v=f.position(r,!0),n=v.y,h=v.x,r.style.position=
"absolute",r.style.top=n+"px",r.style.left=h+"px")}}(k.node=q.byId(k.node));c();k=y.animateProperty(F.mixin({properties:{top:k.top||0,left:k.left||0}},k));e.after(k,"beforeBegin",c,!0);return k};return b})},"esri/deferredUtils":function(){define(["dojo/_base/lang","dojo/has","./kernel"],function(F,u,b){var p={_dfdCanceller:function(e){e.canceled=!0;var y=e._pendingDfd;if(!e.isFulfilled()&&y&&!y.isFulfilled()){y.cancel();var q=y.results&&y.results[1]}e._pendingDfd=null;return q},_fixDfd:function(e){var y=
e.then;e.then=function(q,m,f){if(q){var g=q;q=function(a){return a&&a._argsArray?g.apply(null,a):g(a)}}return y.call(this,q,m,f)};return e},_resDfd:function(e,y,q){var m=y.length;1===m?q?e.errback(y[0]):e.callback(y[0]):1<m?(y._argsArray=!0,e.callback(y)):e.callback()}};u("extend-esri")&&F.mixin(b,p);return p})},"esri/tileUtils":function(){define(["dojo/_base/array","dojo/has","./kernel","./geometry/Point","./geometry/Extent"],function(F,u,b,p,e){var y={_addFrameInfo:function(q,m){var f,g,a=2*m.origin[1],
d=m.origin[0],l=q.origin.x,k=q.width,n;F.forEach(q.lods,function(h){f=Math.round(a/h.resolution);g=Math.ceil(f/k);n=Math.floor((d-l)/(k*h.resolution));h._frameInfo||(h._frameInfo=[g,n,n+g-1,f])})},getContainingTileCoords:function(q,m,f){var g=q.origin;f=f.resolution;return{row:Math.floor((g.y-m.y)/(q.height*f)),col:Math.floor((m.x-g.x)/(q.width*f))}},getCandidateTileInfo:function(q,m,f){var g=q.width;var a=q.height,d=f.xmax-f.xmin,l=f.ymax-f.ymin,k=q.__tileInfo===m,n=k?q.getMinZoom():-1;k=k?q.getMaxZoom():
-1;var h=-1,c=m.lods,r=Math.abs,v;k=-1<k?k:c.length-1;for(n=-1<n?n:0;n<=k;n++)if(v=c[n]){var z=d>l?r(l-a*v.resolution):r(d-g*v.resolution);if(0>h||z<=h){var C=v;h=z}else break}g=C;C=g.resolution;a=(f.xmin+f.xmax)/2;d=(f.ymin+f.ymax)/2;l=q.width/2*C;C*=q.height/2;a=new e(a-l,d-C,a+l,d+C,f.spatialReference);f=new p(a.xmin,a.ymax,f.spatialReference);k=g.resolution;l=m.width;d=m.height;m=m.origin;q=q.__visibleDelta;C=Math.floor;c=l*k;r=d*k;k=C((m.y-f.y)/r);h=C((f.x-m.x)/c);n=m.y-k*r;m=C(Math.abs((f.x-
(m.x+h*c))*l/c))+q.x;q=C(Math.abs((f.y-n)*d/r))+q.y;return{tile:{point:f,coords:{row:k,col:h},offsets:{x:m,y:q}},lod:g,extent:a}},getTileExtent:function(q,m,f,g){var a=q.origin;m=q.lods[m].resolution;var d=q.width,l=q.height;return new e(g*m*d+a.x,a.y-(f+1)*m*l,(g+1)*m*d+a.x,a.y-f*m*l,q.spatialReference)}};u("extend-esri")&&(b.TileUtils=y);return y})},"esri/geometry/Point":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ../srUtils".split(" "),
function(F,u,b,p,e,y,q,m){function f(k,n){89.99999<n?n=89.99999:-89.99999>n&&(n=-89.99999);n*=.017453292519943;return[111319.49079327169*k,3189068.5*Math.log((1+Math.sin(n))/(1-Math.sin(n)))]}function g(k,n,h){k=k/6378137*57.29577951308232;return h?[k,57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*n/6378137)))]:[k-360*Math.floor((k+180)/360),57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*n/6378137)))]}function a(){}function d(){}function l(k){var n=k._json;k._unquantizeFn?
(n=k._unquantizeFn({x:n.x,y:n.y}),k._xVal=n.x,k._yVal=n.y,k._unquantizeFn=null):(k._xVal=n.x,k._yVal=n.y);k._json=null}y={type:"point",x:0,y:0};F=F(q,{declaredClass:"esri.geometry.Point",type:"point",x:0,y:0,constructor:function(k,n,h){u.isArray(k)?(this.x=k[0],this.y=k[1],this.spatialReference=n):e.isObject(k)?(e.mixin(this,k),null!=this.latitude&&(this.y=this.latitude),null!=this.longitude&&(this.x=this.longitude),this.spatialReference&&(this.spatialReference=m.createSpatialReference(this.spatialReference))):
(this.x=k,this.y=n,this.spatialReference=h);this.verifySR()},offset:function(k,n){return new this.constructor(this.x+k,this.y+n,this.spatialReference)},setX:function(k){this.x=k;this.clearCache();return this},setY:function(k){this.y=k;this.clearCache();return this},setLongitude:function(k){var n=this.spatialReference;n&&(n._isWebMercator()?this.setX(f(k,this.y)[0]):4326===n.wkid&&this.setX(k));return this},setLatitude:function(k){var n=this.spatialReference;n&&(n._isWebMercator()?this.setY(f(this.x,
k)[1]):4326===n.wkid&&this.setY(k));return this},getLongitude:function(){var k=this.spatialReference;if(k)if(k._isWebMercator())var n=g(this.x,this.y)[0];else 4326===k.wkid&&(n=this.x);return n},getLatitude:function(){var k=this.spatialReference;if(k)if(k._isWebMercator())var n=g(this.x,this.y)[1];else 4326===k.wkid&&(n=this.y);return n},update:function(k,n){this.x=k;this.y=n;this.clearCache();return this},normalize:function(){var k=this.x,n=this.spatialReference;if(n){var h=n._getInfo();h&&(k=this._normalizeX(k,
h))}return new this.constructor(k,this.y,n)},_normalizeX:function(k,n){var h=n.valid[0],c=n.valid[1];n=2*c;k>c?(h=Math.ceil(Math.abs(k-c)/n),k-=h*n):k<h&&(h=Math.ceil(Math.abs(k-h)/n),k+=h*n);return k},toJson:function(){var k={x:this.x,y:this.y},n=this.spatialReference;n&&(k.spatialReference=n.toJson());return k}});a.prototype=F.prototype;d.prototype=new a;Object.defineProperty(d.prototype,"x",{get:function(){this._json&&l(this);return this._xVal},set:function(k){this._xVal=k}});Object.defineProperty(d.prototype,
"y",{get:function(){this._json&&l(this);return this._yVal},set:function(k){this._yVal=k}});d.prototype.setupLazyUnquantization=function(k,n){this._unquantizeFn=k;this._json=n};F.simpleConstructor=a;F.accessorConstructor=d;F.lngLatToXY=f;F.xyToLngLat=g;F.defaultProps=y;F.metersPerDegree=6378137*Math.PI/180;b("extend-esri")&&(u.setObject("geometry.Point",F,p),p.geometry.defaultPoint=y);return F})},"esri/SpatialReference":function(){define(["dojo/_base/declare","dojo/_base/array","dojo/has","./kernel",
"./lang"],function(F,u,b,p,e){function y(){}var q=[-2.0037508342788905E7,2.0037508342788905E7],m=[-2.0037508342787E7,2.0037508342787E7];F=F(null,{declaredClass:"esri.SpatialReference",constructor:function(f){f&&(e.isObject(f)?e.mixin(this,f):e.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:q,origin:m,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:q,origin:m,
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:q,origin:m,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:q,origin:m,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!==u.indexOf([102113,102100,3857,3785],this.wkid)},_isWrappable:function(){return-1!==u.indexOf([102113,102100,3857,3785,4326],this.wkid)},_getInfo:function(){return this.wkid?this._info[this.wkid]:null},_canProject:function(f){var g=!1;f&&(g=this.isWebMercator()&&4326===f.wkid||f.isWebMercator()&&4326===this.wkid);return g},isWebMercator:function(){return this._isWebMercator()},equals:function(f){var g=!1;f&&(this===f&&
(g=!0),this.wkid||f.wkid?g=this.wkid===f.wkid||this.isWebMercator()&&f.isWebMercator()||this.wkid===f.latestWkid||f.wkid===this.latestWkid:this.wkt&&f.wkt&&(g=this.wkt.toUpperCase()===f.wkt.toUpperCase()));return g},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}});y.prototype=F.prototype;F.simpleConstructor=y;b("extend-esri")&&(p.SpatialReference=F);return F})},"esri/geometry/Geometry":function(){define(["dojo/_base/declare",
"dojo/_base/lang","dojo/has","../kernel","../SpatialReference"],function(F,u,b,p,e){F=F(null,{declaredClass:"esri.geometry.Geometry",spatialReference:null,type:null,cache:void 0,setSpatialReference:function(y){this.spatialReference=y;return this},verifySR:function(){this.spatialReference||this.setSpatialReference(new e(4326))},getExtent:function(){return null},clearCache:function(){this.cache=void 0},getCacheValue:function(y){return this.cache&&this.cache[y]},setCacheValue:function(y,q){this.cache||
(this.cache={});this.cache[y]=q}});b("extend-esri")&&u.setObject("geometry.Geometry",F,p);return F})},"esri/srUtils":function(){define(["./SpatialReference","./ImageSpatialReference","./kernel","./sniff","dojo/_base/lang"],function(F,u,b,p,e){function y(m){var f=!1;m&&(m.ics||m.icsid)&&(f=!0);return f}var q={isICS:y,createSpatialReference:function(m){var f=null;m&&(f=y(m)?new u(m):new F(m));return f}};p("extend-esri")&&e.mixin(b,q);return q})},"esri/ImageSpatialReference":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ./kernel ./lang ./SpatialReference".split(" "),
function(F,u,b,p,e,y){F=F(y,{declaredClass:"esri.ImageSpatialReference",constructor:function(q){q&&u.isObject(q)&&u.mixin(this,q)},icsid:null,icsns:null,ics:null,_isWebMercator:function(){return!1},_isWrappable:function(){return!1},equals:function(q){var m=!1;if(q)if(this.icsid&&q.icsid){if(m=this.icsid===q.icsid,this.icsns||q.icsns)m=m&&this.icsns===q.icsns}else this.ics&&q.ics&&(m=this.ics===q.ics);return m},toJson:function(q){var m=null,f=e.isDefined;q=f(q)?q:!0;f(this.icsid)?(m={icsid:this.icsid},
f(this.icsns)&&(m.icsns=this.icsns)):f(this.ics)&&(m={ics:this.ics});f(this.url)&&f(m)&&q&&(m.url=this.url);return m}});b("extend-esri")&&(p.ImageSpatialReference=F);return F})},"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(F,u,b,p,e,y,q,m,f,g,a,d){function l(){}var k={type:"extent",xmin:0,ymin:0,xmax:0,ymax:0},n=F(m,{declaredClass:"esri.geometry.Extent",
type:"extent",xmin:0,ymin:0,xmax:0,ymax:0,constructor:function(h,c,r,v,z){y.isObject(h)?(y.mixin(this,h),this.spatialReference&&(this.spatialReference=d.createSpatialReference(this.spatialReference))):this.update(h,c,r,v,z);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(h){var c=this.getCenter(),r=h.x-c.x;h=h.y-c.y;return new n(this.xmin+r,this.ymin+h,this.xmax+r,this.ymax+h,this.spatialReference)},update:function(h,c,r,v,z){this.xmin=h;this.ymin=c;this.xmax=r;this.ymax=
v;this.spatialReference=z;this.clearCache();return this},offset:function(h,c){return new n(this.xmin+h,this.ymin+c,this.xmax+h,this.ymax+c,this.spatialReference)},expand:function(h){var c=(1-h)/2;h=this.getWidth()*c;c*=this.getHeight();return new n(this.xmin+h,this.ymin+c,this.xmax-h,this.ymax-c,this.spatialReference)},intersects:function(h){if(!h)return!1;var c=h.type,r=this.spatialReference,v=h.spatialReference;r&&v&&!r.equals(v)&&r._canProject(v)&&(h=r.isWebMercator()?g.geographicToWebMercator(h):
g.webMercatorToGeographic(h,!0));switch(c){case "point":return this.contains(h);case "multipoint":return this._intersectsMultipoint(h);case "extent":return this._intersectsExtent(h);case "polygon":return this._intersectsPolygon(h);case "polyline":return this._intersectsPolyline(h)}},normalize:function(){var h=this._normalize(!1,!0);b.isArray(h)||(h=[h]);return h},shiftCentralMeridian:function(){return this._normalize(!0)},bisect:function(){var h=this.spatialReference,c=h&&h._getInfo(),r=[],v=0;if(c&&
this._isOutOfBounds(c)){var z=this;v=z.xmin;var C=z.ymin,x=z.ymax,E=c.valid[0],B=c.valid[1];z.getWidth()>2*B&&(z=z.getCenter(),z=new n(z.x-B,C,z.x+B,x,new q(h.toJson())));v=z.xmin-v;var w=this._normalizeX(z.xmin,c);c=this._normalizeX(z.xmax,c);w.frameId===c.frameId?r.push(new n(w.x,C,c.x,x,new q(h.toJson()))):r.push(new n(w.x,C,B,x,new q(h.toJson())),new n(E,C,c.x,x,new q(h.toJson())))}else r.push(this.getExtent());return{extents:r,marginLeft:v}},_intersectsMultipoint:function(h){var c=h.points.length,
r;for(r=0;r<c;r++)if(this.contains(h.getPoint(r)))return!0;return!1},_intersectsExtent:function(h){var c,r,v=!1;if(this.xmin<=h.xmin){var z=h.xmin;this.xmax<z?v=!0:c=Math.min(this.xmax,h.xmax)-z}else z=this.xmin,h.xmax<z?v=!0:c=Math.min(this.xmax,h.xmax)-z;if(this.ymin<=h.ymin){var C=h.ymin;this.ymax<C?v=!0:r=Math.min(this.ymax,h.ymax)-C}else C=this.ymin,h.ymax<C?v=!0:r=Math.min(this.ymax,h.ymax)-C;return v?null:new n(z,C,z+c,C+r,this.spatialReference)},_intersectsPolygon:function(h){var c=[this.xmin,
this.ymax],r=[this.xmax,this.ymax],v=[this.xmin,this.ymin],z=[this.xmax,this.ymin],C=[c,r,v,z];c=[[v,c],[c,r],[r,z],[z,v]];v=h.rings;z=v.length;var x=new f(0,0,this.spatialReference);var E=C.length;for(r=0;r<E;r++)if(x.update(C[r][0],C[r][1]),h.contains(x))return!0;x.setSpatialReference(h.spatialReference);for(r=0;r<z;r++)if(C=v[r],E=C.length){var B=C[0];x.update(B[0],B[1]);if(this.contains(x))return!0;for(h=1;h<E;h++){var w=C[h];x.update(w[0],w[1]);if(this.contains(x)||this._intersectsLine([B,w],
c))return!0;B=w}}return!1},_intersectsPolyline:function(h){var c=[[[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]]],r,v=h.paths,z=v.length,C,x=new f(0,0,h.spatialReference);for(h=0;h<z;h++){var E=v[h];if(C=E.length){var B=E[0];x.update(B[0],B[1]);if(this.contains(x))return!0;for(r=1;r<C;r++){var w=E[r];x.update(w[0],w[1]);if(this.contains(x)||this._intersectsLine([B,
w],c))return!0;B=w}}}return!1},_intersectsLine:function(h,c){var r=a._getLineIntersection2,v,z=c.length;for(v=0;v<z;v++)if(r(h,c[v]))return!0;return!1},contains:function(h){if(!h)return!1;var c=h.type;if("point"===c){var r=this.spatialReference,v=h.spatialReference;c=h.x;h=h.y;r&&v&&!r.equals(v)&&r._canProject(v)&&(h=r.isWebMercator()?f.lngLatToXY(c,h):f.xyToLngLat(c,h,!0),c=h[0],h=h[1]);return c>=this.xmin&&c<=this.xmax&&h>=this.ymin&&h<=this.ymax}return"extent"===c?this._containsExtent(h):!1},_containsExtent:function(h){var c=
h.xmin,r=h.ymin,v=h.xmax,z=h.ymax,C=h.spatialReference;h=new f(c,r,C);c=new f(c,z,C);z=new f(v,z,C);r=new f(v,r,C);return this.contains(h)&&this.contains(c)&&this.contains(z)&&this.contains(r)?!0:!1},union:function(h){return new n(Math.min(this.xmin,h.xmin),Math.min(this.ymin,h.ymin),Math.max(this.xmax,h.xmax),Math.max(this.ymax,h.ymax),this.spatialReference)},getExtent:function(){var h=this.spatialReference;return new n(this.xmin,this.ymin,this.xmax,this.ymax,h&&new q(h.toJson()))},_shiftCM:function(h){var c=
this.getCacheValue("_shifted");if(!c){c=new n(this.toJson());var r=c.spatialReference;if(h=h||r._getInfo()){var v=this._getCM(h);if(v){var z=r._isWebMercator()?g.webMercatorToGeographic(v):v;c.xmin-=v.x;c.xmax-=v.x;r._isWebMercator()||(z.x=this._normalizeX(z.x,h).x);c.setSpatialReference(new q(y.substitute({Central_Meridian:z.x},4326===r.wkid?h.altTemplate:h.wkTemplate)))}}this.setCacheValue("_shifted",c)}return c},_getCM:function(h){var c;this._isOutOfBounds(h)&&(c=this.getCenter());return c},_isOutOfBounds:function(h){var c=
h.valid[0];h=h.valid[1];var r=this.xmin,v=this.xmax;return!(r>=c&&r<=h&&v>=c&&v<=h)},_normalize:function(h,c,r){var v=new n(this.toJson()),z=v.spatialReference;if(z&&(r=r||z._getInfo())){var C=u.map(this._getParts(r),function(x){return x.extent});return 2<C.length?h?this._shiftCM(r):v.update(r.valid[0],v.ymin,r.valid[1],v.ymax,z):2===C.length?h?this._shiftCM(r):c?C:{rings:u.map(C,function(x){return[[x.xmin,x.ymin],[x.xmin,x.ymax],[x.xmax,x.ymax],[x.xmax,x.ymin],[x.xmin,x.ymin]]}),spatialReference:z}:
C[0]||v}return v},_getParts:function(h){var c=this.getCacheValue("_parts");if(!c){c=[];var r=this.xmin,v=this.xmax,z=this.ymin,C=this.ymax,x=this.spatialReference,E=this.getWidth(),B=r,w=v,D=0,t=0;h=h||x._getInfo();var A=h.valid[0];var G=h.valid[1];t=this._normalizeX(r,h);r=t.x;D=t.frameId;t=this._normalizeX(v,h);v=t.x;t=t.frameId;h=r===v&&0<E;if(E>2*G){E=new n(B<w?r:v,z,G,C,x);r=new n(A,z,B<w?v:r,C,x);G=new n(0,z,G,C,x);z=new n(A,z,0,C,x);x=[];A=[];E.contains(G)&&x.push(D);E.contains(z)&&A.push(D);
r.contains(G)&&x.push(t);r.contains(z)&&A.push(t);for(C=D+1;C<t;C++)x.push(C),A.push(C);c.push({extent:E,frameIds:[D]},{extent:r,frameIds:[t]},{extent:G,frameIds:x},{extent:z,frameIds:A})}else r>v||h?c.push({extent:new n(r,z,G,C,x),frameIds:[D]},{extent:new n(A,z,v,C,x),frameIds:[t]}):c.push({extent:new n(r,z,v,C,x),frameIds:[D]});this.setCacheValue("_parts",c)}return c},_normalizeX:function(h,c){var r=0,v=c.valid[0],z=c.valid[1];c=2*z;h>z?(r=Math.ceil(Math.abs(h-z)/c),h-=r*c):h<v&&(r=Math.ceil(Math.abs(h-
v)/c),h+=r*c,r=-r);return{x:h,frameId:r}},toJson:function(){var h={xmin:this.xmin,ymin:this.ymin,xmax:this.xmax,ymax:this.ymax},c=this.spatialReference;c&&(h.spatialReference=c.toJson());return h}});l.prototype=n.prototype;n.simpleConstructor=l;n.defaultProps=k;p("extend-esri")&&(b.setObject("geometry.Extent",n,e),e.geometry.defaultExtent=k);return n})},"esri/geometry/webMercatorUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/has ../kernel ../SpatialReference ./Point".split(" "),function(F,
u,b,p,e,y){function q(g,a,d,l){if("point"===g.type){var k=a(g.x,g.y,l);return new g.constructor(k[0],k[1],new e(d))}if("extent"===g.type){k=a(g.xmin,g.ymin,l);var n=a(g.xmax,g.ymax,l);return new g.constructor(k[0],k[1],n[0],n[1],new e(d))}if("polyline"===g.type||"polygon"===g.type){k="polyline"===g.type;var h=[],c;F.forEach(k?g.paths:g.rings,function(v){h.push(c=[]);F.forEach(v,function(z){c.push(a(z[0],z[1],l))})});return k?new g.constructor({paths:h,spatialReference:new e(d)}):new g.constructor({rings:h,
spatialReference:new e(d)})}if("multipoint"===g.type){var r=[];F.forEach(g.points,function(v){r.push(a(v[0],v[1],l))});return new g.constructor({points:r,spatialReference:new e(d)})}}function m(g,a){g=g&&(null!=g.wkid?g:g.spatialReference);a=a&&(null!=a.wkid?a:a.spatialReference);return g&&a?a.equals(g)?!0:a._canProject(g):!1}var f={canProject:m,project:function(g,a){var d=g&&g.spatialReference;a=a&&(null!=a.wkid?a:a.spatialReference);d&&a?d.equals(a)?g=new g.constructor(g.toJson()):m(d,a)?a.isWebMercator()?
g=q(g,y.lngLatToXY,{wkid:102100}):4326===a.wkid&&(g=q(g,y.xyToLngLat,{wkid:4326})):g=null:g=null;return g},lngLatToXY:y.lngLatToXY,xyToLngLat:y.xyToLngLat,metersPerDegree:y.metersPerDegree,geographicToWebMercator:function(g){return q(g,y.lngLatToXY,{wkid:102100})},webMercatorToGeographic:function(g,a){return q(g,y.xyToLngLat,{wkid:4326},a)}};b("extend-esri")&&u.mixin(u.getObject("geometry",!0,p),f);return f})},"esri/geometry/mathUtils":function(){define(["dojo/_base/lang","dojo/has","../kernel","./Point"],
function(F,u,b,p){function e(f,g,a){return f instanceof p?new p(f.x+a*(g.x-f.x),f.y+a*(g.y-f.y)):[f[0]+a*(g[0]-f[0]),f[1]+a*(g[1]-f[1])]}function y(f,g){return 1E-8>Math.abs(f-g)}function q(f,g,a,d){var l=y(f[0],g[0])?1E10:(f[1]-g[1])/(f[0]-g[0]),k=y(a[0],d[0])?1E10:(a[1]-d[1])/(a[0]-d[0]),n=f[1]-l*f[0],h=a[1]-k*a[0];if(y(l,k)){if(y(n,h)){if(y(f[0],g[0]))if(Math.min(f[1],g[1])<Math.max(a[1],d[1])||Math.max(f[1],g[1])>Math.min(a[1],d[1])){f=(f[1]+g[1]+a[1]+d[1]-Math.min(f[1],g[1],a[1],d[1])-Math.max(f[1],
g[1],a[1],d[1]))/2;var c=(f-n)/l}else return null;else if(Math.min(f[0],g[0])<Math.max(a[0],d[0])||Math.max(f[0],g[0])>Math.min(a[0],d[0]))c=(f[0]+g[0]+a[0]+d[0]-Math.min(f[0],g[0],a[0],d[0])-Math.max(f[0],g[0],a[0],d[0]))/2,f=l*c+n;else return null;return[c,f]}return null}y(l,1E10)?(c=f[0],f=k*c+h):y(k,1E10)?(c=a[0],f=l*c+n):(c=-(n-h)/(l-k),f=f[1]===g[1]?f[1]:a[1]===d[1]?a[1]:l*c+n);return[c,f]}var m={getLength:function(f,g){var a=g.x-f.x;f=g.y-f.y;return Math.sqrt(a*a+f*f)},_getLength:function(f,
g){var a=g[0]-f[0];f=g[1]-f[1];return Math.sqrt(a*a+f*f)},getPointOnLine:e,getMidpoint:function(f,g){return e(f,g,.5)},_equals:y,_getLineIntersection:q,getLineIntersection:function(f,g,a,d,l){(f=q([f.x,f.y],[g.x,g.y],[a.x,a.y],[d.x,d.y]))&&(f=new p(f[0],f[1],l));return f},_getLineIntersection2:function(f,g){var a=f[0],d=f[1],l=g[0],k=g[1];g=a[0];a=a[1];f=d[0];d=d[1];var n=l[0],h=l[1];l=k[0]-n;n=g-n;var c=f-g;k=k[1]-h;h=a-h;var r=d-a,v=k*c-l*r;if(0===v)return!1;l=(l*h-k*n)/v;n=(c*h-r*n)/v;return 0<=
l&&1>=l&&0<=n&&1>=n?[g+l*(f-g),a+l*(d-a)]:!1},_pointLineDistance:function(f,g){var a=g[0],d=g[1];g=a[0];var l=a[1];a=f[0];f=f[1];var k=d[0]-g,n=d[1]-l,h=a-g,c=f-l;d=Math.sqrt;var r=Math.pow,v=d(r(k,2)+r(n,2));h=(h*k+c*n)/(v*v);l+=h*n;return d(r(a-(g+h*k),2)+r(f-l,2))}};u("extend-esri")&&F.mixin(F.getObject("geometry",!0,b),m);return m})},"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(F,u,b,p,e,y,q,m,f,g){var a={},d=m.defaults.io,l=/^[a-z][a-z0-9\+\-\.]*:/i,k=/^\s*http:/i,n=/^\s*https:/i,h=/:\d+$/,c=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i;a.isHTTP=function(v){var z=p.location.protocol;return null==v?"http:"===z||"https:"===z:v?"https:"===z:"http:"===z};a.getProtocolForWebResource=function(v){return a.isHTTP()?p.location.protocol:v?"https:":"http:"};a.urlToObject=function(v){var z={},C=new b(v),x=v.indexOf("?");null===C.query?z={path:v,query:null}:(z.path=v.substring(0,
x),z.query=e.queryToObject(C.query));C.fragment&&(z.hash=C.fragment,null===C.query&&(z.path=z.path.substring(0,z.path.length-(C.fragment.length+1))));return z};a.getProxyUrl=function(v,z){var C=F.isString(v)?0===F.trim(v).toLowerCase().indexOf("https:"):v,x=d.proxyUrl,E=g.io.proxyNotSet;F.isString(v)&&(v=a.getProxyRule(v))&&(x=v.proxyUrl);if(!x)throw console.log(E),Error(E);if(C&&!1!==z&&0!==p.location.href.toLowerCase().indexOf("https:")&&(z=x,0!==z.toLowerCase().indexOf("http")&&(z=a.getAbsoluteUrl(z)),
z=z.replace(/^http:/i,"https:"),a.canUseXhr(z))){x=z;var B=1}x=a.urlToObject(x);x._xo=B;return x};a.addProxy=function(v){var z=a.getProxyRule(v),C;z?C=a.urlToObject(z.proxyUrl):d.alwaysUseProxy&&(C=a.getProxyUrl());C&&(z=a.urlToObject(v),v=C.path+"?"+z.path,(C=e.objectToQuery(F.mixin(C.query||{},z.query)))&&(v+="?"+C));return v};a.addProxyRule=function(v){var z=v.urlPrefix=a.urlToObject(v.urlPrefix).path.replace(/([^\/])$/,"$1/").replace(/^https?:\/\//ig,"").toLowerCase(),C=d.proxyRules,x,E=C.length,
B=E;for(x=0;x<E;x++){var w=C[x].urlPrefix;if(0===z.indexOf(w)){if(z.length===w)return-1;B=x;break}else 0===w.indexOf(z)&&(B=x+1)}C.splice(B,0,v);return B};a.getProxyRule=function(v){var z=d.proxyRules,C=z.length,x=a.urlToObject(v).path.replace(/([^\/])$/,"$1/").replace(/^https?:\/\//ig,"").toLowerCase();for(v=0;v<C;v++)if(0===x.indexOf(z[v].urlPrefix)){var E=z[v];break}return E};a.hasSameOrigin=function(v,z,C){v=v.toLowerCase();z=z.toLowerCase();var x=p.location.href.toLowerCase();v=0===v.indexOf("http")?
new b(v):x=new b(x);z=0===z.indexOf("http")?new b(z):F.isString(x)?new b(x):x;return(C||v.scheme===z.scheme)&&v.host===z.host&&v.port===z.port};a.canUseXhr=function(v,z){var C=f("esri-phonegap")?!0:!1,x=a.hasSameOrigin,E=d.corsEnabledServers,B,w=-1;!C&&f("esri-cors")&&E&&E.length&&(C=u.some(E,function(D,t){D=!D||"object"!==typeof D||D instanceof RegExp?D:D.host;if(D instanceof RegExp){if(D.test(v))return w=t,!0}else if(D&&(B=0!==D.trim().toLowerCase().indexOf("http"),x(v,B?"http://"+D:D)||B&&x(v,
"https://"+D)))return w=t,!0;return!1}));return z?w:C};a.getAbsoluteUrl=function(v){var z=a.getProtocolForWebResource();return F.isString(v)&&!l.test(v)?0===v.indexOf("//")?z+v:0===v.indexOf("/")?z+"//"+p.location.host+v:y._appBaseUrl+v:v};a.fixUrl=function(v){v=F.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 z=
v.indexOf("?");if(-1<z){var C=v.slice(0,z);var x=v.slice(z+1)}else C=v;v=C.replace(/\/{2,}/g,"/");v=v.replace("/","//");x&&(v+="?"+x)}return v};a.downgradeToHTTP=function(v){return a.isHTTP(!1)&&n.test(v)&&a.hasSameOrigin(p.location.href,v,!0)&&!a.canUseXhr(v)?v.replace(n,"http:"):v};a.upgradeToHTTPS=function(v){var z=d.httpsDomains,C=a.isHTTP(!1),x=a.isHTTP(!0);if(!k.test(v))return v;v=F.trim(v);var E=v.indexOf("/",7);E=-1===E?v:v.slice(0,E);E=E.toLowerCase().slice(7);if(h.test(E))if(q.endsWith(E,
":80"))E=E.slice(0,-3),v=v.replace(":80","");else return v;if(C&&E===p.location.host&&(!c.test(v)||!a.canUseXhr(v)))return v;C=!1;if(x&&E===p.location.host)C=!0;else if(z)for(var B=0;B<z.length;B++){var w=z[B];if(E===w||q.endsWith(E,"."+w)){C=!0;break}}C||!x||d.alwaysUseProxy||a.getProxyRule(v)||(C=!0);C&&(v=v.replace(k,"https:"));return v};m=g.widgets.popup;var r=[{pattern:/^\s*(https?:\/\/([^\s]+))\s*$/i,label:m.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:m.NLS_openLinkInApp},{pattern:/^\s*(arcgis-collector:\/\/([^\s]+))\s*$/i,appName:"Collector",label:m.NLS_openLinkInApp},{pattern:/^\s*(arcgis-explorer:\/\/([^\s]+))\s*$/i,appName:"Explorer",label:m.NLS_openLinkInApp},{pattern:/^\s*(arcgis-navigator:\/\/([^\s]+))\s*$/i,appName:"Navigator",label:m.NLS_openLinkInApp},{pattern:/^\s*(arcgis-survey123:\/\/([^\s]+))\s*$/i,appName:"Survey123",
label:m.NLS_openLinkInApp},{pattern:/^\s*(arcgis-trek2there:\/\/([^\s]+))\s*$/i,appName:"Trek2There",label:m.NLS_openLinkInApp},{pattern:/^\s*(arcgis-workforce:\/\/([^\s]+))\s*$/i,appName:"Workforce",label:m.NLS_openLinkInApp},{pattern:/^\s*(iform:\/\/([^\s]+))\s*$/i,appName:"iForm",label:m.NLS_openLinkInApp},{pattern:/^\s*(flow:\/\/([^\s]+))\s*$/i,appName:"FlowFinity",label:m.NLS_openLinkInApp},{pattern:/^\s*(lfmobile:\/\/([^\s]+))\s*$/i,appName:"Laserfische",label:m.NLS_openLinkInApp},{pattern:/^\s*(mspbi:\/\/([^\s]+))\s*$/i,
appName:"Microsoft Power BI",label:m.NLS_openLinkInApp}];a.getURIInfo=function(v){var z;u.some(r,function(C){C.pattern.test(v)&&(z=C);return!!z});return z};a.isKnownURI=function(v){return!!a.getURIInfo(v)};a.isSecureProxyService=function(v){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(v)};a.base64UrlEncode=function(v){return btoa(String.fromCharCode.apply(null,v)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")};f("extend-esri")&&(F.mixin(y,a),y._getProxyUrl=a.getProxyUrl,y._getProxiedUrl=
a.addProxy,y._hasSameOrigin=a.hasSameOrigin,y._canDoXOXHR=a.canUseXhr,y._getAbsoluteUrl=a.getAbsoluteUrl,y.fixUrl=a.fixUrl);return a})},"dojo/_base/url":function(){define(["./kernel"],function(F){var u=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),b=RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),p=function(){for(var e=arguments,y=[e[0]],q=1;q<e.length;q++)if(e[q]){var m=new p(e[q]+"");y=new p(y[0]+"");if(""==m.path&&!m.scheme&&!m.authority&&!m.query)null!=
m.fragment&&(y.fragment=m.fragment),m=y;else if(!m.scheme&&(m.scheme=y.scheme,!m.authority&&(m.authority=y.authority,"/"!=m.path.charAt(0)))){y=(y.path.substring(0,y.path.lastIndexOf("/")+1)+m.path).split("/");for(var f=0;f<y.length;f++)"."==y[f]?f==y.length-1?y[f]="":(y.splice(f,1),f--):0<f&&(1!=f||""!=y[0])&&".."==y[f]&&".."!=y[f-1]&&(f==y.length-1?(y.splice(f,1),y[f-1]=""):(y.splice(f-1,2),f-=2));m.path=y.join("/")}y=[];m.scheme&&y.push(m.scheme,":");m.authority&&y.push("//",m.authority);y.push(m.path);
m.query&&y.push("?",m.query);m.fragment&&y.push("#",m.fragment)}this.uri=y.join("");e=this.uri.match(u);this.scheme=e[2]||(e[1]?"":null);this.authority=e[4]||(e[3]?"":null);this.path=e[5];this.query=e[7]||(e[6]?"":null);this.fragment=e[9]||(e[8]?"":null);null!=this.authority&&(e=this.authority.match(b),this.user=e[3]||null,this.password=e[4]||null,this.host=e[6]||e[7],this.port=e[9]||null)};p.prototype.toString=function(){return this.uri};return F._Url=p})},"esri/PluginTarget":function(){define("require dojo/aspect dojo/_base/array dojo/_base/lang dojo/Deferred dojo/when".split(" "),
function(F,u,b,p,e,y){function q(){u.after(this.constructor._meta,"ctor",this._pluginsHandler,!0);this._plugins={}}q.prototype={addPlugin:function(m,f){var g=this,a=this._plugins,d=new e;try{F([m],function(l){m in a?d.resolve({id:a[m].declaredId||m.replace(/\//g,".")}):(a[m]=l,y(l.add(g,f),function(){var k={id:l.declaredId||m.replace(/\//g,".")};g.emit("plugin-add",k);d.resolve(k)},function(k){d.reject(k)}))})}catch(l){d.reject(l)}return d.promise},removePlugin:function(m){if(m in this._plugins){var f=
this._plugins[m];f.remove(this);delete this._plugins[m];this.emit("plugin-remove",{id:f.declaredId||m.replace(/\//g,".")})}},_pluginsHandler:function(){var m=this;b.some(arguments,function(f){if(f&&f.plugins&&f.plugins instanceof Array){f=f.plugins;var g;for(g=0;g<f.length;g++){var a=f[g];var d=a instanceof Object?a.id:a;m.addPlugin(d,a.options)}return!0}})}};return q})},"esri/Color":function(){define(["dojo/_base/declare","dojo/_base/Color","dojo/has","./kernel"],function(F,u,b,p){var e=F([u],{declaredClass:"esri.Color"});
e.toJsonColor=function(q){return q&&[q.r,q.g,q.b,1<q.a?q.a:Math.round(255*q.a)]};e.toDojoColor=function(q){return q&&new e([q[0],q[1],q[2],q[3]/255])};var y="named blendColors fromRgb fromHex fromArray fromString".split(" ");for(F=0;F<y.length;F++)e[y[F]]=u[y[F]];b("extend-esri")&&(p.Color=e);return e})},"esri/promiseList":function(){define(["dojo/_base/array","dojo/Deferred","dojo/when"],function(F,u,b){var p=F.forEach;return function(e){function y(k,n){a[n]=k;d.progress([k,n]);0===--l&&d.resolve(a)}
var q,m;e instanceof Array?m=e:e&&"object"===typeof e&&(q=e);var f=[];if(q){m=[];for(var g in q)Object.hasOwnProperty.call(q,g)&&(f.push(g),m.push(q[g]));var a={}}else m&&(a=[]);if(!m||!m.length)return(new u).resolve(a);var d=new u;d.promise.always(function(){a=f=null});var l=m.length;p(m,function(k,n){q||f.push(n);b(k,function(h){d.isFulfilled()||y(h,f[n])},function(h){d.isFulfilled()||y(h,f[n])})});return d.promise}})},"esri/arcade/Dictionary":function(){define("require exports ./polyfill/tsSupport/awaiter ./polyfill/tsSupport/generator ./ArcadeDate ./executionError ./ImmutableArray ./languageUtils ../geometry/Geometry".split(" "),
function(F,u,b,p,e,y,q,m,f){function g(d,l,k){void 0===k&&(k=!1);if(null===d||void 0===d)return null;if(m.isNumber(d))return m.toNumber(d);if(m.isBoolean(d))return m.toBoolean(d);if(m.isString(d))return m.toString(d);if(m.isDate(d))return m.toDate(d,l);if(m.isArray(d)){for(var n=[],h=0;h<d.length;h++)n.push(g(d[h],l,k));return n}h=new a;h.immutable=!1;for(var c=0,r=Object.keys(d);c<r.length;c++){var v=r[c];n=d[v];void 0!==n&&h.setField(v,g(n,l,k))}h.immutable=k;return h}var a=function(){function d(l){this.declaredClass=
"esri.arcade.Dictionary";this.attributes=null;this.plain=!1;this.immutable=!0;this.attributes=l instanceof d?l.attributes:void 0===l?{}:null===l?{}:l}d.prototype.field=function(l){var k=l.toLowerCase(),n=this.attributes[l];if(void 0!==n)return n;for(var h in this.attributes)if(h.toLowerCase()===k)return this.attributes[h];throw new y.ArcadeExecutionError(null,y.ExecutionErrorCodes.FieldNotFound,null,{key:l});};d.prototype.setField=function(l,k){if(this.immutable)throw new y.ArcadeExecutionError(null,
y.ExecutionErrorCodes.Immutable,null);if(m.isFunctionParameter(k))throw new y.ArcadeExecutionError(null,y.ExecutionErrorCodes.NoFunctionInDictionary,null);var n=l.toLowerCase();k instanceof Date&&(k=e.ArcadeDate.dateJSToArcadeDate(k));if(void 0===this.attributes[l])for(var h in this.attributes)if(h.toLowerCase()===n){this.attributes[h]=k;return}this.attributes[l]=k};d.prototype.hasField=function(l){var k=l.toLowerCase();if(void 0!==this.attributes[l])return!0;for(var n in this.attributes)if(n.toLowerCase()===
k)return!0;return!1};d.prototype.keys=function(){var l=[],k;for(k in this.attributes)l.push(k);return l=l.sort()};d.prototype.castToText=function(l){void 0===l&&(l=!1);var k="",n;for(n in this.attributes){""!==k&&(k+=",");var h=this.attributes[n];null==h?k+=JSON.stringify(n)+":null":m.isBoolean(h)||m.isNumber(h)||m.isString(h)?k+=JSON.stringify(n)+":"+JSON.stringify(h):h instanceof f?k+=JSON.stringify(n)+":"+m.toStringExplicit(h):h instanceof q?k+=JSON.stringify(n)+":"+m.toStringExplicit(h,null,l):
h instanceof Array?k+=JSON.stringify(n)+":"+m.toStringExplicit(h,null,l):h instanceof e.ArcadeDate?k=l?k+(JSON.stringify(n)+":"+JSON.stringify(h.getTime())):k+(JSON.stringify(n)+":"+h.stringify()):null!==h&&"object"===typeof h&&void 0!==h.castToText&&(k+=JSON.stringify(n)+":"+h.castToText(l))}return"{"+k+"}"};d.convertObjectToArcadeDictionary=function(l,k,n){void 0===n&&(n=!0);var h=new d;h.immutable=!1;for(var c in l){var r=l[c];void 0!==r&&h.setField(c.toString(),g(r,k))}h.immutable=n;return h};
d.convertJsonToArcade=function(l,k,n){void 0===n&&(n=!1);return g(l,k,n)};d.prototype.castAsJson=function(l){void 0===l&&(l=null);var k={};for(h in this.attributes){var n=this.attributes[h];if(void 0!==n){if(null===l||void 0===l?0:l.keyTranslate)var h=l.keyTranslate(h);k[h]=m.castAsJson(n,l)}}return k};d.prototype.castDictionaryValueAsJsonAsync=function(l,k,n,h,c){void 0===h&&(h=null);return b(this,void 0,void 0,function(){var r;return p(this,function(v){switch(v.label){case 0:return[4,m.castAsJsonAsync(n,
h,c)];case 1:return r=v.sent(),l[k]=r,[2,r]}})})};d.prototype.castAsJsonAsync=function(l,k){void 0===l&&(l=null);void 0===k&&(k=null);return b(this,void 0,void 0,function(){var n,h,c,r;return p(this,function(v){switch(v.label){case 0:n={};h=[];for(c in this.attributes){r=this.attributes[c];if(null===k||void 0===k?0:k.keyTranslate)c=k.keyTranslate(c);void 0!==r&&(m.isSimpleType(r)||r instanceof f||r instanceof e.ArcadeDate?n[c]=m.castAsJson(r,k):h.push(this.castDictionaryValueAsJsonAsync(n,c,r,l,k)))}return 0<
h.length?[4,Promise.all(h)]:[3,2];case 1:v.sent(),v.label=2;case 2:return[2,n]}})})};return d}();return a})},"esri/arcade/polyfill/tsSupport/awaiter":function(){define([],function(){return function(){return function(F,u,b,p){function e(y){return y instanceof b?y:new b(function(q){q(y)})}return new (b||(b=Promise))(function(y,q){function m(a){try{g(p.next(a))}catch(d){q(d)}}function f(a){try{g(p["throw"](a))}catch(d){q(d)}}function g(a){a.done?y(a.value):e(a.value).then(m,f)}g((p=p.apply(F,u||[])).next())})}}()})},
"esri/arcade/polyfill/tsSupport/generator":function(){define([],function(){return function(){return function(F,u){function b(g){return function(a){return p([g,a])}}function p(g){if(y)throw new TypeError("Generator is already executing.");for(;e;)try{if(y=1,q&&(m=g[0]&2?q["return"]:g[0]?q["throw"]||((m=q["return"])&&m.call(q),0):q.next)&&!(m=m.call(q,g[1])).done)return m;if(q=0,m)g=[g[0]&2,m.value];switch(g[0]){case 0:case 1:m=g;break;case 4:return e.label++,{value:g[1],done:!1};case 5:e.label++;q=
g[1];g=[0];continue;case 7:g=e.ops.pop();e.trys.pop();continue;default:if(!(m=e.trys,m=0<m.length&&m[m.length-1])&&(6===g[0]||2===g[0])){e=0;continue}if(3===g[0]&&(!m||g[1]>m[0]&&g[1]<m[3]))e.label=g[1];else if(6===g[0]&&e.label<m[1])e.label=m[1],m=g;else if(m&&e.label<m[2])e.label=m[2],e.ops.push(g);else{m[2]&&e.ops.pop();e.trys.pop();continue}}g=u.call(F,e)}catch(a){g=[6,a],q=0}finally{y=m=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}var e={label:0,sent:function(){if(m[0]&1)throw m[1];
return m[1]},trys:[],ops:[]},y,q,m,f;return f={next:b(0),"throw":b(1),"return":b(2)},"function"===typeof Symbol&&(f[Symbol.iterator]=function(){return this}),f}}()})},"esri/arcade/ArcadeDate":function(){define(["require","exports","./polyfill/tsSupport/extends","./executionError","../libs/luxon/luxon"],function(F,u,b,p,e){function y(a){if(a instanceof e.Zone)return a;if("system"===a.toLowerCase())return"system";if("utc"===a.toLowerCase())return"utc";if("unknown"===a.toLowerCase())return m.instance;
if(/^[\+\-]?[0-9]{1,2}([:][0-9]{2})?$/.test(a)){var d=e.FixedOffsetZone.parseSpecifier("UTC"+(a.startsWith("+")||a.startsWith("-")?"":"+")+a);if(d)return d}a=e.IANAZone.create(a);if(!a.isValid)throw new g(f.TimeZoneNotRecognised);return a}var q;Object.defineProperty(u,"__esModule",{value:!0});u.createDateTimeZone=u.ArcadeDate=u.ArcadeDateError=u.ArcadeDateErrorMessages=u.ArcadeDateErrorCodes=u.UnknownTimeZone=void 0;var m=function(){function a(){}a.instance=new e.IANAZone("Etc/UTC");return a}();u.UnknownTimeZone=
m;var f;(f=u.ArcadeDateErrorCodes||(u.ArcadeDateErrorCodes={})).TimeZoneNotRecognised="TimeZoneNotRecognised";u.ArcadeDateErrorMessages=(q={},q[f.TimeZoneNotRecognised]="Timezone identifier has not been recognised.",q);var g=function(a){function d(l,k){l=a.call(this,p.doSubstitutions(u.ArcadeDateErrorMessages[l],k))||this;l.declaredRootClass="esri.arcade.arcadedate.dateerror";Error.captureStackTrace&&Error.captureStackTrace(l,d);return l}b(d,a);return d}(Error);u.ArcadeDateError=g;F=function(){function a(d){this._date=
d;this.declaredRootClass="esri.arcade.arcadedate"}a.fromParts=function(d,l,k,n,h,c,r,v){void 0===d&&(d=0);void 0===l&&(l=1);void 0===k&&(k=1);void 0===n&&(n=0);void 0===h&&(h=0);void 0===c&&(c=0);void 0===r&&(r=0);if(isNaN(d)||isNaN(l)||isNaN(k)||isNaN(n)||isNaN(h)||isNaN(c)||isNaN(r))return null;var z=0,C=e.DateTime.local(d,l).daysInMonth;1>k&&(z=k-1,k=1);k>C&&(z=k-C,k=C);C=0;12<l?(C=l-12,l=12):1>l&&(C=l-1,l=1);var x=0;59<h?(x=h-59,h=59):0>h&&(x=h,h=0);var E=0;59<c?(E=c-59,c=59):0>c&&(E=c,c=0);var B=
0;999<r?(B=r-999,r=999):0>r&&(B=r,r=0);d=e.DateTime.fromObject({day:k,year:d,month:l,hour:n,minute:h,second:c,millisecond:r},{zone:y(v)});0!==C&&(d=d.plus({months:C}));0!==z&&(d=d.plus({days:z}));0!==x&&(d=d.plus({minutes:x}));0!==E&&(d=d.plus({seconds:E}));0!==B&&(d=d.plus({milliseconds:B}));return new a(d)};Object.defineProperty(a,"systemTimeZoneCanonicalName",{get:function(){var d;return null!==(d=Intl.DateTimeFormat().resolvedOptions().timeZone)&&void 0!==d?d:"system"},enumerable:!1,configurable:!0});
a.arcadeDateAndZoneToArcadeDate=function(d,l){var k=y(l);return d.isUnknownTimeZone||k===m.instance?a.fromParts(d.year,d.monthJS+1,d.day,d.hour,d.minute,d.second,d.millisecond,k):new a(d._date.setZone(l))};a.dateJSToArcadeDate=function(d){return new a(e.DateTime.fromJSDate(d,{zone:"system"}))};a.dateJSAndZoneToArcadeDate=function(d,l){void 0===l&&(l="system");return new a(e.DateTime.fromJSDate(d,{zone:l}))};a.unknownEpochToArcadeDate=function(d){return new a(e.DateTime.fromMillis(d,{zone:m.instance}))};
a.unknownDateJSToArcadeDate=function(d){return a.arcadeDateAndZoneToArcadeDate(a.dateJSToArcadeDate(d),m.instance)};a.epochToArcadeDate=function(d,l){void 0===l&&(l="system");return new a(e.DateTime.fromMillis(d,{zone:l}))};a.dateTimeToArcadeDate=function(d){return new a(d)};a.prototype.changeTimeZone=function(d){d=y(d);return a.dateTimeToArcadeDate(this._date.setZone(d))};a.dateTimeAndZoneToArcadeDate=function(d,l){l=y(l);return d.zone===m.instance||l===m.instance?a.fromParts(d.year,d.month,d.day,
d.hour,d.minute,d.second,d.millisecond,l):new a(d.setZone(l))};a.nowToArcadeDate=function(d){return new a(e.DateTime.fromJSDate(new Date,{zone:d}))};a.nowUTCToArcadeDate=function(){return new a(e.DateTime.utc())};Object.defineProperty(a.prototype,"isSystem",{get:function(){return"system"===this.timeZone||this.timeZone===a.systemTimeZoneCanonicalName},enumerable:!1,configurable:!0});a.prototype.equals=function(d){return this.isSystem&&d.isSystem?this.toNumber()===d.toNumber():this.isUnknownTimeZone!==
d.isUnknownTimeZone?!1:this._date.equals(d._date)};Object.defineProperty(a.prototype,"isUnknownTimeZone",{get:function(){return this._date.zone===m.instance},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"isValid",{get:function(){return this._date.isValid},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"hour",{get:function(){return this._date.hour},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"second",{get:function(){return this._date.second},
enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"day",{get:function(){return this._date.day},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"dayOfWeekISO",{get:function(){return this._date.weekday},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"dayOfWeekJS",{get:function(){var d=this._date.weekday;6<d&&(d=0);return d},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"millisecond",{get:function(){return this._date.millisecond},
enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"monthISO",{get:function(){return this._date.month},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"weekISO",{get:function(){return this._date.weekNumber},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"yearISO",{get:function(){return this._date.weekYear},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"monthJS",{get:function(){return this._date.month-1},enumerable:!1,configurable:!0});
Object.defineProperty(a.prototype,"year",{get:function(){return this._date.year},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"minute",{get:function(){return this._date.minute},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"zone",{get:function(){return this._date.zone},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"timeZoneOffset",{get:function(){return this.isUnknownTimeZone?0:this._date.offset},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,
"timeZone",{get:function(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";var d=this.zone;return"fixed"===d.type?0===d.fixed?"utc":d.formatOffset(0,"short"):d.name},enumerable:!1,configurable:!0});a.prototype.stringify=function(){return JSON.stringify(this.toJSDate())};a.prototype.plus=function(d){return new a(this._date.plus(d))};a.prototype.diff=function(d,l){void 0===l&&(l="milliseconds");return this._date.diff(d._date,l)[l]};a.prototype.toISOString=
function(d){return d?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})};a.prototype.toFormat=function(d,l){return this._date.toFormat(d,l)};a.prototype.toJSDate=function(){return this._date.toJSDate()};a.prototype.toSQLString=function(){return"timestamp '"+this._date.toFormat("yyyy-LL-dd HH:mm:ss")+"'"};a.prototype.toDateTime=function(){return this._date};a.prototype.toNumber=function(){return this._date.toMillis()};
a.prototype.getTime=function(){return this._date.toMillis()};a.prototype.toUTC=function(){return new a(this._date.toUTC())};a.prototype.toLocal=function(){return new a(this._date.toLocal())};a.prototype.toString=function(){return this.toISOString(!0)};return a}();u.ArcadeDate=F;u.createDateTimeZone=y})},"esri/arcade/polyfill/tsSupport/extends":function(){define([],function(){return function(){var F=function(u,b){F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,e){p.__proto__=e}||
function(p,e){for(var y in e)Object.prototype.hasOwnProperty.call(e,y)&&(p[y]=e[y])};return F(u,b)};return function(u,b){function p(){this.constructor=u}if("function"!==typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");F(u,b);u.prototype=null===b?Object.create(b):(p.prototype=b.prototype,new p)}}()})},"esri/arcade/executionError":function(){define(["require","exports","./polyfill/tsSupport/assign","./polyfill/tsSupport/spreadarray","./polyfill/tsSupport/extends"],
function(F,u,b,p,e){function y(a){var d,l;return a&&a.loc?"Line : "+(null===(d=a.loc.start)||void 0===d?void 0:d.line)+", "+(null===(l=a.loc.start)||void 0===l?void 0:l.column)+": ":""}function q(a,d){try{if(!d)return a;for(var l in d){var k=d[l];k||(k="");a=a.replace("{"+l+"}",d[l])}}catch(n){}return a}var m,f;Object.defineProperty(u,"__esModule",{value:!0});u.parsingValidationMessage=u.ModuleError=u.ModuleErrorMessages=u.ModuleErrorCodes=u.ensureArcadeExecutionError=u.doSubstitutions=u.ArcadeUncompilableError=
u.ArcadeCompilationError=u.ArcadeExecutionError=u.LocatableArcadeExecutionError=u.ErrorWithCause=u.ExecutionErrorMessages=u.ExecutionErrorCodes=void 0;(function(a){a.AsyncNotEnabled="AsyncNotEnabled";a.ModulesNotSupported="ModulesNotSupported";a.CircularModules="CircularModules";a.NeverReach="NeverReach";a.UnsupportedHashType="UnsupportedHashType";a.InvalidParameter="InvalidParameter";a.UnexpectedToken="UnexpectedToken";a.Unrecognised="Unrecognised";a.UnrecognisedType="UnrecognisedType";a.MaximumCallDepth=
"MaximumCallDepth";a.BooleanConditionRequired="BooleanConditionRequired";a.TypeNotAllowedInFeature="TypeNotAllowedInFeature";a.KeyMustBeString="KeyMustBeString";a.WrongNumberOfParameters="WrongNumberOfParameters";a.CallNonFunction="CallNonFunction";a.NoFunctionInTemplateLiteral="NoFunctionInTemplateLiteral";a.NoFunctionInDictionary="NoFunctionInDictionary";a.NoFunctionInArray="NoFunctionInArray";a.AssignModuleFunction="AssignModuleFunction";a.LogicExpressionOrAnd="LogicExpressionOrAnd";a.LogicalExpressionOnlyBoolean=
"LogicalExpressionOnlyBoolean";a.FuncionNotFound="FunctionNotFound";a.InvalidMemberAccessKey="InvalidMemberAccessKey";a.UnsupportedUnaryOperator="UnsupportUnaryOperator";a.InvalidIdentifier="InvalidIdentifier";a.MemberOfNull="MemberOfNull";a.UnsupportedOperator="UnsupportedOperator";a.Cancelled="Cancelled";a.ModuleAccessorMustBeString="ModuleAccessorMustBeString";a.ModuleExportNotFound="ModuleExportNotFound";a.Immutable="Immutable";a.OutOfBounds="OutOfBounds";a.IllegalResult="IllegalResult";a.FieldNotFound=
"FieldNotFound";a.PortalRequired="PortalRequired";a.LogicError="LogicError";a.ArrayAccessorMustBeNumber="ArrayAccessMustBeNumber";a.KeyAccessorMustBeString="KeyAccessorMustBeString";a.WrongSpatialReference="WrongSpatialReference"})(F=u.ExecutionErrorCodes||(u.ExecutionErrorCodes={}));u.ExecutionErrorMessages=(m={},m[F.TypeNotAllowedInFeature]="Feature attributes only support dates, numbers, strings, guids.",m[F.LogicError]="Logic error - {reason}",m[F.NeverReach]="Encountered unreachable logic",m[F.AsyncNotEnabled]=
"Async Arcade must be enabled for this script",m[F.ModuleAccessorMustBeString]="Module accessor must be a string",m[F.ModuleExportNotFound]="Module has no export with provided identifier",m[F.ModulesNotSupported]="Current profile does not support modules",m[F.ArrayAccessorMustBeNumber]="Array accessor must be a number",m[F.FuncionNotFound]="Function not found",m[F.FieldNotFound]="Key not found - {key}",m[F.CircularModules]="Circular module dependencies are not allowed",m[F.Cancelled]="Execution cancelled",
m[F.UnsupportedHashType]="Type not supported in hash function",m[F.IllegalResult]="Value is not a supported return type",m[F.PortalRequired]="Portal is required",m[F.InvalidParameter]="Invalid parameter",m[F.WrongNumberOfParameters]="Call with wrong number of parameters",m[F.Unrecognised]="Unrecognised code structure",m[F.UnrecognisedType]="Unrecognised type",m[F.WrongSpatialReference]="Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",m[F.BooleanConditionRequired]=
"Conditions must use booleans",m[F.NoFunctionInDictionary]="Dictionaries cannot contain functions.",m[F.NoFunctionInArray]="Arrays cannot contain functions.",m[F.NoFunctionInTemplateLiteral]="Template Literals do not expect functions by value.",m[F.KeyAccessorMustBeString]="Accessor must be a string",m[F.KeyMustBeString]="Object keys must be a string",m[F.Immutable]="Object is immutable",m[F.InvalidParameter]="Invalid parameter",m[F.UnexpectedToken]="Unexpected token",m[F.MemberOfNull]="Cannot access property of null object",
m[F.MaximumCallDepth]="Exceeded maximum function depth",m[F.OutOfBounds]="Out of bounds",m[F.InvalidIdentifier]="Identifier not recognised",m[F.FuncionNotFound]="Function not found",m[F.CallNonFunction]="Expression is not a function",m[F.InvalidMemberAccessKey]="Cannot access value using a key of this type",m[F.AssignModuleFunction]="Cannot assign function to module variable",m[F.UnsupportedUnaryOperator]="Unsupported unary operator",m[F.UnsupportedOperator]="Unsupported operator",m[F.LogicalExpressionOnlyBoolean]=
"Logical expressions must be boolean",m[F.LogicExpressionOrAnd]="Logical expression can only be combined with || or \x26\x26",m);m=function(a){function d(){for(var l=[],k=0;k<arguments.length;k++)l[k]=arguments[k];return a.apply(this,l)||this}e(d,a);return d}(Error);u.ErrorWithCause=m;var g=function(a){function d(l,k){l=a.call(this,y(k)+l.message,{cause:l})||this;l.loc=null;Error.captureStackTrace&&Error.captureStackTrace(l,d);k&&k.loc&&(l.loc=k.loc);return l}e(d,a);return d}(m);u.LocatableArcadeExecutionError=
g;m=function(a){function d(l,k,n,h){l=a.call(this,"Execution error - "+y(n)+q(u.ExecutionErrorMessages[k],h))||this;l.loc=null;l.declaredRootClass="esri.arcade.arcadeexecutionerror";Error.captureStackTrace&&Error.captureStackTrace(l,d);n&&n.loc&&(l.loc=n.loc);return l}e(d,a);return d}(Error);u.ArcadeExecutionError=m;m=function(a){function d(l,k,n,h){l=a.call(this,"Compilation error - "+y(n)+q(u.ExecutionErrorMessages[k],h))||this;l.loc=null;l.declaredRootClass="esri.arcade.arcadecompilationerror";
Error.captureStackTrace&&Error.captureStackTrace(l,d);n&&n.loc&&(l.loc=n.loc);return l}e(d,a);return d}(Error);u.ArcadeCompilationError=m;m=function(a){function d(){var l=a.call(this,"Uncompilable code structures")||this;l.declaredRootClass="esri.arcade.arcadeuncompilableerror";Error.captureStackTrace&&Error.captureStackTrace(l,d);return l}e(d,a);return d}(Error);u.ArcadeUncompilableError=m;u.doSubstitutions=q;u.ensureArcadeExecutionError=function(a,d,l){return"esri.arcade.arcadeexecutionerror"===
l.declaredRootClass||"esri.arcade.arcadecompilationerror"===l.declaredRootClass?null===l.loc&&d&&d.loc?new g(l,{cause:l}):l:d&&d.loc?new g(l,{cause:l}):l};(function(a){a.UnrecognisedUri="UnrecognisedUri";a.UnsupportedUriProtocol="UnsupportedUriProtocol"})(m=u.ModuleErrorCodes||(u.ModuleErrorCodes={}));u.ModuleErrorMessages=(f={},f[m.UnrecognisedUri]="Unrecognised uri - {uri}",f[m.UnsupportedUriProtocol]="Unrecognised uri protocol",f);f=function(a){function d(l,k){l=a.call(this,q(u.ModuleErrorMessages[l],
k))||this;l.declaredRootClass="esri.arcade.arcademoduleerror";Error.captureStackTrace&&Error.captureStackTrace(l,d);return l}e(d,a);return d}(Error);u.ModuleError=f;u.parsingValidationMessage=function(a,d,l){return"Parsing error - "+y(a)+q(u.ExecutionErrorMessages[d],l)}})},"esri/arcade/polyfill/tsSupport/assign":function(){define([],function(){return function(){return function(){return(Object.assign||function(F){for(var u,b=1,p=arguments.length;b<p;b++){u=arguments[b];for(var e in u)Object.prototype.hasOwnProperty.call(u,
e)&&(F[e]=u[e])}return F}).apply(this,arguments)}}()})},"esri/arcade/polyfill/tsSupport/spreadarray":function(){define([],function(){return function(){return function(F,u,b){if(b||2===arguments.length)for(var p=0,e=u.length,y;p<e;p++)!y&&p in u||(y||(y=Array.prototype.slice.call(u,0,p)),y[p]=u[p]);return F.concat(y||Array.prototype.slice.call(u))}}()})},"esri/libs/luxon/luxon":function(){define(["exports"],function(F){function u(K,R){for(var H=0;H<R.length;H++){var L=R[H];L.enumerable=L.enumerable||
!1;L.configurable=!0;"value"in L&&(L.writable=!0);var W=Object,na=W.defineProperty;a:{var wa=L.key;if("object"===typeof wa&&null!==wa){var Aa=wa[Symbol.toPrimitive];if(void 0!==Aa){wa=Aa.call(wa,"string");if("object"!==typeof wa)break a;throw new TypeError("@@toPrimitive must return a primitive value.");}wa=String(wa)}}na.call(W,K,"symbol"===typeof wa?wa:String(wa),L)}}function b(K,R,H){R&&u(K.prototype,R);H&&u(K,H);Object.defineProperty(K,"prototype",{writable:!1});return K}function p(){p=Object.assign?
Object.assign.bind():function(K){for(var R=1;R<arguments.length;R++){var H=arguments[R],L;for(L in H)Object.prototype.hasOwnProperty.call(H,L)&&(K[L]=H[L])}return K};return p.apply(this,arguments)}function e(K,R){K.prototype=Object.create(R.prototype);K.prototype.constructor=K;q(K,R)}function y(K){y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)};return y(K)}function q(K,R){q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,
L){H.__proto__=L;return H};return q(K,R)}function m(){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(K){return!1}}function f(K,R,H){f=m()?Reflect.construct.bind():function(L,W,na){var wa=[null];wa.push.apply(wa,W);L=new (Function.bind.apply(L,wa));na&&q(L,na.prototype);return L};return f.apply(null,arguments)}function g(K){var R=
"function"===typeof Map?new Map:void 0;g=function(H){function L(){return f(H,arguments,y(this).constructor)}if(null===H||-1===Function.toString.call(H).indexOf("[native code]"))return H;if("function"!==typeof H)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof R){if(R.has(H))return R.get(H);R.set(H,L)}L.prototype=Object.create(H.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}});return q(L,H)};return g(K)}function a(K,R){if(null==
K)return{};var H={},L=Object.keys(K),W;for(W=0;W<L.length;W++){var na=L[W];0<=R.indexOf(na)||(H[na]=K[na])}return H}function d(K,R){if(K){if("string"===typeof K)return l(K,R);var H=Object.prototype.toString.call(K).slice(8,-1);"Object"===H&&K.constructor&&(H=K.constructor.name);if("Map"===H||"Set"===H)return Array.from(K);if("Arguments"===H||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return l(K,R)}}function l(K,R){if(null==R||R>K.length)R=K.length;for(var H=0,L=Array(R);H<R;H++)L[H]=K[H];
return L}function k(K,R){var H="undefined"!==typeof Symbol&&K[Symbol.iterator]||K["@@iterator"];if(H)return(H=H.call(K)).next.bind(H);if(Array.isArray(K)||(H=d(K))||R&&K&&"number"===typeof K.length){H&&(K=H);var L=0;return function(){return L>=K.length?{done:!0}:{done:!1,value:K[L++]}}}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 n(K,R){void 0===R&&(R={});var H=JSON.stringify([K,
R]),L=Jb[H];L||(L=new Intl.DateTimeFormat(K,R),Jb[H]=L);return L}function h(K){for(var R=[],H=1;12>=H;H++){var L=bb.utc(2016,H,1);R.push(K(L))}return R}function c(K){for(var R=[],H=1;7>=H;H++){var L=bb.utc(2016,11,13+H);R.push(K(L))}return R}function r(K,R,H,L,W){K=K.listingMode(H);return"error"===K?null:"en"===K?L(R):W(R)}function v(K,R){if(z(K)||null===K)return R;if(K instanceof yb)return K;if("string"===typeof K){var H=K.toLowerCase();return"default"===H?R:"local"===H||"system"===H?Kb.instance:
"utc"===H||"gmt"===H?mb.utcInstance:mb.parseSpecifier(H)||wb.create(K)}return C(K)?mb.instance(K):"object"===typeof K&&K.offset&&"number"===typeof K.offset?K:new Xb(K)}function z(K){return"undefined"===typeof K}function C(K){return"number"===typeof K}function x(K){return"number"===typeof K&&0===K%1}function E(){try{return"undefined"!==typeof Intl&&!!Intl.RelativeTimeFormat}catch(K){return!1}}function B(K,R,H){if(0!==K.length)return K.reduce(function(L,W){W=[R(W),W];return L?H(L[0],W[0])===L[0]?L:
W:W},null)[1]}function w(K,R){return R.reduce(function(H,L){H[L]=K[L];return H},{})}function D(K,R){return Object.prototype.hasOwnProperty.call(K,R)}function t(K,R,H){return x(K)&&K>=R&&K<=H}function A(K,R){void 0===R&&(R=2);return 0>K?"-"+(""+-K).padStart(R,"0"):(""+K).padStart(R,"0")}function G(K){if(!z(K)&&null!==K&&""!==K)return parseInt(K,10)}function J(K){if(!z(K)&&null!==K&&""!==K)return parseFloat(K)}function U(K){if(!z(K)&&null!==K&&""!==K)return K=1E3*parseFloat("0."+K),Math.floor(K)}function ja(K,
R,H){void 0===H&&(H=!1);R=Math.pow(10,R);return(H?Math.trunc:Math.round)(K*R)/R}function Z(K){return 0===K%4&&(0!==K%100||0===K%400)}function fa(K,R){var H=R-1;H=H-12*Math.floor(H/12)+1;return 2===H?Z(K+(R-H)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][H-1]}function qa(K){var R=Date.UTC(K.year,K.month-1,K.day,K.hour,K.minute,K.second,K.millisecond);100>K.year&&0<=K.year&&(R=new Date(R),R.setUTCFullYear(R.getUTCFullYear()-1900));return+R}function V(K){var R=K-1;R=(R+Math.floor(R/4)-Math.floor(R/
100)+Math.floor(R/400))%7;return 4===(K+Math.floor(K/4)-Math.floor(K/100)+Math.floor(K/400))%7||3===R?53:52}function ea(K){return 99<K?K:K>ab.twoDigitCutoffYear?1900+K:2E3+K}function ba(K,R,H,L){void 0===L&&(L=null);K=new Date(K);var W={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};L&&(W.timeZone=L);R=p({timeZoneName:R},W);return(H=(new Intl.DateTimeFormat(H,R)).formatToParts(K).find(function(na){return"timezonename"===na.type.toLowerCase()}))?H.value:
null}function ma(K,R){K=parseInt(K,10);Number.isNaN(K)&&(K=0);R=parseInt(R,10)||0;R=0>K||Object.is(K,-0)?-R:R;return 60*K+R}function va(K){var R=Number(K);if("boolean"===typeof K||""===K||Number.isNaN(R))throw new kb("Invalid unit value "+K);return R}function da(K,R){var H={},L;for(L in K)if(D(K,L)){var W=K[L];void 0!==W&&null!==W&&(H[R(L)]=va(W))}return H}function ka(K,R){var H=Math.trunc(Math.abs(K/60)),L=Math.trunc(Math.abs(K%60));K=0<=K?"+":"-";switch(R){case "short":return""+K+A(H,2)+":"+A(L,
2);case "narrow":return""+K+H+(0<L?":"+L:"");case "techie":return""+K+A(H,2)+A(L,2);default:throw new RangeError("Value format "+R+" is out of range for property format");}}function I(K){return w(K,["hour","minute","second","millisecond"])}function S(K){switch(K){case "narrow":return[].concat(Sc);case "short":return[].concat(Yb);case "long":return[].concat(Tc);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 X(K){switch(K){case "narrow":return[].concat(Uc);case "short":return[].concat(Zb);case "long":return[].concat($b);case "numeric":return"1234567".split("");default:return null}}function O(K){switch(K){case "narrow":return[].concat(Vc);case "short":return[].concat(Wc);case "long":return[].concat(Xc);default:return null}}function P(K,R,H,L){void 0===H&&(H="always");void 0===L&&(L=!1);var W={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."]},na=-1===["hours","minutes","seconds"].indexOf(K);if("auto"===H&&na)switch(H="days"===K,R){case 1:return H?"tomorrow":"next "+W[K][0];case -1:return H?"yesterday":"last "+W[K][0];case 0:return H?"today":"this "+W[K][0]}H=Object.is(R,-0)||0>R;R=Math.abs(R);na=1===R;var wa=W[K];K=L?na?wa[1]:wa[2]||wa[1]:na?W[K][0]:K;return H?R+" "+K+" ago":"in "+R+" "+K}function aa(K,R){var H="";K=k(K);for(var L;!(L=K()).done;)L=
L.value,H=L.literal?H+L.val:H+R(L.val);return H}function ha(){for(var K=arguments.length,R=Array(K),H=0;H<K;H++)R[H]=arguments[H];K=R.reduce(function(L,W){return L+W.source},"");return RegExp("^"+K+"$")}function la(){for(var K=arguments.length,R=Array(K),H=0;H<K;H++)R[H]=arguments[H];return function(L){return R.reduce(function(W,na){var wa=W[0],Aa=W[1];W=na(L,W[2]);na=W[1];var Ia=W[2];return[p({},wa,W[0]),na||Aa,Ia]},[{},null,1]).slice(0,2)}}function ta(K){if(null==K)return[null,null];for(var R=arguments.length,
H=Array(1<R?R-1:0),L=1;L<R;L++)H[L-1]=arguments[L];for(R=0;R<H.length;R++){var W=H[R];L=W[1];if(W=W[0].exec(K))return L(W)}return[null,null]}function Ba(){for(var K=arguments.length,R=Array(K),H=0;H<K;H++)R[H]=arguments[H];return function(L,W){var na={},wa;for(wa=0;wa<R.length;wa++)na[R[wa]]=G(L[W+wa]);return[na,null,W+wa]}}function N(K,R,H){K=K[R];return z(K)?H:G(K)}function Q(K,R){return[{hours:N(K,R,0),minutes:N(K,R+1,0),seconds:N(K,R+2,0),milliseconds:U(K[R+3])},null,R+4]}function ia(K,R){var H=
!K[R]&&!K[R+1];K=ma(K[R+1],K[R+2]);return[{},H?null:mb.instance(K),R+3]}function pa(K,R){return[{},K[R]?wb.create(K[R]):null,R+1]}function ra(K){var R=K[2],H=K[3],L=K[4],W=K[5],na=K[6],wa=K[7],Aa=K[8],Ia="-"===K[0][0],Ma=wa&&"-"===wa[0],Ta=function(Ua,Qa){void 0===Qa&&(Qa=!1);return void 0!==Ua&&(Qa||Ua&&Ia)?-Ua:Ua};return[{years:Ta(J(K[1])),months:Ta(J(R)),weeks:Ta(J(H)),days:Ta(J(L)),hours:Ta(J(W)),minutes:Ta(J(na)),seconds:Ta(J(wa),"-0"===wa),milliseconds:Ta(U(Aa),Ma)}]}function M(K,R,H,L,W,na,
wa){R={year:2===R.length?ea(G(R)):G(R),month:Yb.indexOf(H)+1,day:G(L),hour:G(W),minute:G(na)};wa&&(R.second=G(wa));K&&(R.weekday=3<K.length?$b.indexOf(K)+1:Zb.indexOf(K)+1);return R}function ca(K){var R=K[8],H=K[9],L=K[10],W=K[11];K=M(K[1],K[4],K[3],K[2],K[5],K[6],K[7]);R=R?Yc[R]:H?0:ma(L,W);return[K,new mb(R)]}function sa(K){return[M(K[1],K[4],K[3],K[2],K[5],K[6],K[7]),mb.utcInstance]}function xa(K){return[M(K[1],K[7],K[2],K[3],K[4],K[5],K[6]),mb.utcInstance]}function za(K,R,H){void 0===H&&(H=!1);
K={values:H?R.values:p({},K.values,R.values||{}),loc:K.loc.clone(R.loc),conversionAccuracy:R.conversionAccuracy||K.conversionAccuracy,matrix:R.matrix||K.matrix};return new eb(K)}function Ca(K,R,H,L,W){K=K[W][H];var na=R[H]/K;na=Math.sign(na)!==Math.sign(L[W])&&0!==L[W]&&1>=Math.abs(na)?0>na?Math.floor(na):Math.ceil(na):Math.trunc(na);L[W]+=na;R[H]-=na*K}function Ha(K,R){Zc.reduce(function(H,L){if(z(R[L]))return H;H&&Ca(K,R,H,R,L);return L},null)}function Da(K,R){var H=function(L){return L.toUTC(0,
{keepLocalTime:!0}).startOf("day").valueOf()};K=H(R)-H(K);return Math.floor(eb.fromMillis(K).as("days"))}function La(K,R,H){for(var L={},W=K,na,wa,Aa=0,Ia=[["years",function(Ua,Qa){return Qa.year-Ua.year}],["quarters",function(Ua,Qa){return Qa.quarter-Ua.quarter+4*(Qa.year-Ua.year)}],["months",function(Ua,Qa){return Qa.month-Ua.month+12*(Qa.year-Ua.year)}],["weeks",function(Ua,Qa){Ua=Da(Ua,Qa);return(Ua-Ua%7)/7}],["days",Da]];Aa<Ia.length;Aa++){var Ma=Ia[Aa],Ta=Ma[0];Ma=Ma[1];0<=H.indexOf(Ta)&&(na=
Ta,L[Ta]=Ma(K,R),wa=W.plus(L),wa>R?(L[Ta]--,K=W.plus(L)):K=wa)}return[K,L,wa,na]}function Pa(K,R,H,L){var W=La(K,R,H);K=W[0];var na=W[1],wa=W[2],Aa=W[3];W=R-K;H=H.filter(function(Ta){return 0<=["hours","minutes","seconds","milliseconds"].indexOf(Ta)});if(0===H.length){if(wa<R){var Ia;wa=K.plus((Ia={},Ia[Aa]=1,Ia))}wa!==K&&(na[Aa]=(na[Aa]||0)+W/(wa-K))}R=eb.fromObject(na,L);if(0<H.length){var Ma;return(Ma=eb.fromMillis(W,L)).shiftTo.apply(Ma,H).plus(R)}return R}function T(K,R){K=K.numberingSystem;
void 0===R&&(R="");return new RegExp(""+Lb[K||"latn"]+R)}function Y(K,R){void 0===R&&(R=function(H){return H});return{regex:K,deser:function(H){var L=R;H=H[0];var W=parseInt(H,10);if(isNaN(W)){W="";for(var na=0;na<H.length;na++){var wa=H.charCodeAt(na);if(-1!==H[na].search(Lb.hanidec))W+=$c.indexOf(H[na]);else for(Ma in ac){var Aa=ac[Ma],Ia=Aa[0];Aa=Aa[1];wa>=Ia&&wa<=Aa&&(W+=wa-Ia)}}var Ma=parseInt(W,10)}else Ma=W;return L(Ma)}}}function oa(K){return K.replace(/\./g,"\\.?").replace(Mb,bc)}function ua(K,
R){return null===K?null:{regex:RegExp(K.map(oa).join("|")),deser:function(H){var L=H[0];return K.findIndex(function(W){return L.replace(/\./g,"").replace(Mb," ").toLowerCase()===W.replace(/\./g,"").replace(Mb," ").toLowerCase()})+R}}}function ya(K,R){return{regex:K,deser:function(H){return ma(H[1],H[2])},groups:R}}function Ea(K){return{regex:K,deser:function(R){return R[0]}}}function Fa(K,R){var H=T(R),L=T(R,"{2}"),W=T(R,"{3}"),na=T(R,"{4}"),wa=T(R,"{6}"),Aa=T(R,"{1,2}"),Ia=T(R,"{1,3}"),Ma=T(R,"{1,6}"),
Ta=T(R,"{1,9}"),Ua=T(R,"{2,4}"),Qa=T(R,"{4,6}"),$a=function(zb){return{regex:RegExp(zb.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$\x26")),deser:function(ad){return ad[0]},literal:!0}},lb=function(zb){if(K.literal)return $a(zb);switch(zb.val){case "G":return ua(R.eras("short",!1),0);case "GG":return ua(R.eras("long",!1),0);case "y":return Y(Ma);case "yy":return Y(Ua,ea);case "yyyy":return Y(na);case "yyyyy":return Y(Qa);case "yyyyyy":return Y(wa);case "M":return Y(Aa);case "MM":return Y(L);case "MMM":return ua(R.months("short",
!0,!1),1);case "MMMM":return ua(R.months("long",!0,!1),1);case "L":return Y(Aa);case "LL":return Y(L);case "LLL":return ua(R.months("short",!1,!1),1);case "LLLL":return ua(R.months("long",!1,!1),1);case "d":return Y(Aa);case "dd":return Y(L);case "o":return Y(Ia);case "ooo":return Y(W);case "HH":return Y(L);case "H":return Y(Aa);case "hh":return Y(L);case "h":return Y(Aa);case "mm":return Y(L);case "m":return Y(Aa);case "q":return Y(Aa);case "qq":return Y(L);case "s":return Y(Aa);case "ss":return Y(L);
case "S":return Y(Ia);case "SSS":return Y(W);case "u":return Ea(Ta);case "uu":return Ea(Aa);case "uuu":return Y(H);case "a":return ua(R.meridiems(),0);case "kkkk":return Y(na);case "kk":return Y(Ua,ea);case "W":return Y(Aa);case "WW":return Y(L);case "E":case "c":return Y(H);case "EEE":return ua(R.weekdays("short",!1,!1),1);case "EEEE":return ua(R.weekdays("long",!1,!1),1);case "ccc":return ua(R.weekdays("short",!0,!1),1);case "cccc":return ua(R.weekdays("long",!0,!1),1);case "Z":case "ZZ":return ya(new RegExp("([+-]"+
Aa.source+")(?::("+L.source+"))?"),2);case "ZZZ":return ya(new RegExp("([+-]"+Aa.source+")("+L.source+")?"),2);case "z":return Ea(/[a-z_+-/]{1,256}?/i);default:return $a(zb)}}(K)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};lb.token=K;return lb}function Ka(K){return["^"+K.map(function(R){return R.regex}).reduce(function(R,H){return R+"("+H.source+")"},"")+"$",K]}function Ja(K,R,H){if(K=K.match(R)){R={};var L=1,W;for(W in H)if(D(H,W)){var na=H[W],wa=na.groups?na.groups+1:1;
!na.literal&&na.token&&(R[na.token.val[0]]=na.deser(K.slice(L,L+wa)));L+=wa}return[K,R]}return[K,{}]}function Ga(K){var R=function(W){switch(W){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}},H=null;z(K.z)||
(H=wb.create(K.z));if(!z(K.Z)){H||(H=new mb(K.Z));var L=K.Z}z(K.q)||(K.M=3*(K.q-1)+1);z(K.h)||(12>K.h&&1===K.a?K.h+=12:12===K.h&&0===K.a&&(K.h=0));0===K.G&&K.y&&(K.y=-K.y);z(K.u)||(K.S=U(K.u));return[Object.keys(K).reduce(function(W,na){var wa=R(na);wa&&(W[wa]=K[na]);return W},{}),H,L]}function Na(K,R){var H;return(H=Array.prototype).concat.apply(H,K.map(function(L){if(!L.literal){var W=nb.macroTokenToFormatOpts(L.val);W=Va(W,R);L=null==W||W.includes(void 0)?L:W}return L}))}function Ra(K,R,H){H=Na(nb.parseFormat(H),
K);var L=H.map(function(Ma){return Fa(Ma,K)}),W=L.find(function(Ma){return Ma.invalidReason});if(W)return{input:R,tokens:H,invalidReason:W.invalidReason};W=Ka(L);L=RegExp(W[0],"i");var na=Ja(R,L,W[1]);W=na[0];var wa=(na=na[1])?Ga(na):[null,null,void 0],Aa=wa[0],Ia=wa[1];wa=wa[2];if(D(na,"a")&&D(na,"H"))throw new Ab("Can't include meridiem when specifying 24-hour format");return{input:R,tokens:H,regex:L,rawMatches:W,matches:na,result:Aa,zone:Ia,specificOffset:wa}}function Va(K,R){if(!K)return null;
R=nb.create(R,K);var H=R.formatDateTimeParts;Nb||(Nb=bb.fromMillis(1555555555555));return H.call(R,Nb).map(function(L){var W=L.type;L=L.value;"literal"===W?W={literal:!0,val:L}:(L=K[W],W=bd[W],"object"===typeof W&&(W=W[L]),W=W?{literal:!1,val:W}:void 0);return W})}function Sa(K,R){return new ob("unit out of range","you specified "+R+" (of type "+typeof R+") as a "+K+", which is invalid")}function Wa(K,R,H){R=new Date(Date.UTC(K,R-1,H));100>K&&0<=K&&R.setUTCFullYear(R.getUTCFullYear()-1900);K=R.getUTCDay();
return 0===K?7:K}function jb(K,R){K=Z(K)?Ob:Pb;var H=K.findIndex(function(L){return L<R});return{month:H+1,day:R-K[H]}}function hb(K){var R=K.year,H=K.month,L=K.day;var W=L+(Z(R)?Ob:Pb)[H-1];H=Wa(R,H,L);W=Math.floor((W-H+10)/7);1>W?(--R,W=V(R)):W>V(R)&&(R+=1,W=1);return p({weekYear:R,weekNumber:W,weekday:H},I(K))}function fb(K){var R=K.weekYear,H=K.weekNumber,L=K.weekday,W=Wa(R,1,4),na=Z(R)?366:365;H=7*H+L-W-3;1>H?(na=R-1,H+=Z(na)?366:365):H>na?(na=R+1,H-=Z(R)?366:365):na=R;R=jb(na,H);return p({year:na,
month:R.month,day:R.day},I(K))}function Oa(K){var R=K.year;var H=K.month;H=K.day+(Z(R)?Ob:Pb)[H-1];return p({year:R,ordinal:H},I(K))}function Xa(K){var R=K.year,H=jb(R,K.ordinal);return p({year:R,month:H.month,day:H.day},I(K))}function ib(K){var R=x(K.year),H=t(K.month,1,12),L=t(K.day,1,fa(K.year,K.month));return R?H?L?!1:Sa("day",K.day):Sa("month",K.month):Sa("year",K.year)}function Ya(K){var R=K.hour,H=K.minute,L=K.second;K=K.millisecond;var W=t(R,0,23)||24===R&&0===H&&0===L&&0===K,na=t(H,0,59),
wa=t(L,0,59),Aa=t(K,0,999);return W?na?wa?Aa?!1:Sa("millisecond",K):Sa("second",L):Sa("minute",H):Sa("hour",R)}function Za(K){return new ob("unsupported zone",'the zone "'+K.name+'" is not supported')}function db(K){null===K.weekData&&(K.weekData=hb(K.c));return K.weekData}function tb(K,R){K={ts:K.ts,zone:K.zone,c:K.c,o:K.o,loc:K.loc,invalid:K.invalid};return new bb(p({},K,R,{old:K}))}function gb(K,R,H){var L=K-6E4*R,W=H.offset(L);if(R===W)return[L,R];L-=6E4*(W-R);R=H.offset(L);return W===R?[L,W]:
[K-6E4*Math.min(W,R),Math.max(W,R)]}function rb(K,R){K=new Date(K+6E4*R);return{year:K.getUTCFullYear(),month:K.getUTCMonth()+1,day:K.getUTCDate(),hour:K.getUTCHours(),minute:K.getUTCMinutes(),second:K.getUTCSeconds(),millisecond:K.getUTCMilliseconds()}}function qb(K,R,H){return gb(qa(K),R,H)}function Eb(K,R){var H=K.o,L=K.c.year+Math.trunc(R.years),W=K.c.month+Math.trunc(R.months)+3*Math.trunc(R.quarters);L=p({},K.c,{year:L,month:W,day:Math.min(K.c.day,fa(L,W))+Math.trunc(R.days)+7*Math.trunc(R.weeks)});
R=eb.fromObject({years:R.years-Math.trunc(R.years),quarters:R.quarters-Math.trunc(R.quarters),months:R.months-Math.trunc(R.months),weeks:R.weeks-Math.trunc(R.weeks),days:R.days-Math.trunc(R.days),hours:R.hours,minutes:R.minutes,seconds:R.seconds,milliseconds:R.milliseconds}).as("milliseconds");L=qa(L);L=gb(L,H,K.zone);H=L[0];L=L[1];0!==R&&(H+=R,L=K.zone.offset(H));return{ts:H,o:L}}function ub(K,R,H,L,W,na){var wa=H.setZone,Aa=H.zone;return K&&0!==Object.keys(K).length?(K=bb.fromObject(K,p({},H,{zone:R||
Aa,specificOffset:na})),wa?K:K.setZone(Aa)):bb.invalid(new ob("unparsable",'the input "'+W+"\" can't be parsed as "+L))}function vb(K,R,H){void 0===H&&(H=!0);return K.isValid?nb.create(cb.create("en-US"),{allowZ:H,forceSimple:!0}).formatDateTimeFromString(K,R):null}function Qb(K,R){var H=9999<K.c.year||0>K.c.year,L="";H&&0<=K.c.year&&(L+="+");L+=A(K.c.year,H?6:4);R?(L=L+"-"+A(K.c.month),L=L+"-"+A(K.c.day)):(L+=A(K.c.month),L+=A(K.c.day));return L}function cc(K,R,H,L,W,na){var wa=A(K.c.hour);R?(wa=
wa+":"+A(K.c.minute),0===K.c.second&&H||(wa+=":")):wa+=A(K.c.minute);0===K.c.second&&H||(wa+=A(K.c.second),0===K.c.millisecond&&L||(wa=wa+"."+A(K.c.millisecond,3)));W&&(K.isOffsetFixed&&0===K.offset&&!na?wa+="Z":0>K.o?(wa=wa+"-"+A(Math.trunc(-K.o/60)),wa=wa+":"+A(Math.trunc(-K.o%60))):(wa=wa+"+"+A(Math.trunc(K.o/60)),wa=wa+":"+A(Math.trunc(K.o%60))));na&&(wa+="["+K.zone.ianaName+"]");return wa}function dc(K){var R={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"}[K.toLowerCase()];if(!R)throw new ec(K);return R}function fc(K,R){var H=v(R.zone,ab.defaultZone);R=cb.fromObject(R);var L=ab.now();if(z(K.year))K=L;else{var W=0;for(var na=
gc;W<na.length;W++){var wa=na[W];z(K[wa])&&(K[wa]=hc[wa])}if(W=ib(K)||Ya(K))return bb.invalid(W);L=H.offset(L);L=qb(K,L,H);K=L[0];W=L[1]}return new bb({ts:K,zone:H,loc:R,o:W})}function ic(K,R,H){var L=z(H.round)?!0:H.round,W=function(Ma,Ta){Ma=ja(Ma,L||H.calendary?0:2,!0);return R.loc.clone(H).relFormatter(H).format(Ma,Ta)},na=function(Ma){return H.calendary?R.hasSame(K,Ma)?0:R.startOf(Ma).diff(K.startOf(Ma),Ma).get(Ma):R.diff(K,Ma).get(Ma)};if(H.unit)return W(na(H.unit),H.unit);for(var wa=k(H.units),
Aa;!(Aa=wa()).done;){Aa=Aa.value;var Ia=na(Aa);if(1<=Math.abs(Ia))return W(Ia,Aa)}return W(K>R?-0:0,H.units[H.units.length-1])}function jc(K){var R={};0<K.length&&"object"===typeof K[K.length-1]?(R=K[K.length-1],K=Array.from(K).slice(0,K.length-1)):K=Array.from(K);return[R,K]}function Bb(K){if(bb.isDateTime(K))return K;if(K&&K.valueOf&&C(K.valueOf()))return bb.fromJSDate(K);if(K&&"object"===typeof K)return bb.fromObject(K);throw new kb("Unknown datetime argument: "+K+", of type "+typeof K);}var xb=
function(K){function R(){return K.apply(this,arguments)||this}e(R,K);return R}(g(Error)),cd=function(K){function R(H){return K.call(this,"Invalid DateTime: "+H.toMessage())||this}e(R,K);return R}(xb),dd=function(K){function R(H){return K.call(this,"Invalid Interval: "+H.toMessage())||this}e(R,K);return R}(xb),ed=function(K){function R(H){return K.call(this,"Invalid Duration: "+H.toMessage())||this}e(R,K);return R}(xb),Ab=function(K){function R(){return K.apply(this,arguments)||this}e(R,K);return R}(xb),
ec=function(K){function R(H){return K.call(this,"Invalid unit "+H)||this}e(R,K);return R}(xb),kb=function(K){function R(){return K.apply(this,arguments)||this}e(R,K);return R}(xb),sb=function(K){function R(){return K.call(this,"Zone is an abstract class")||this}e(R,K);return R}(xb),Fb={year:"numeric",month:"numeric",day:"numeric"},kc={year:"numeric",month:"short",day:"numeric"},fd={year:"numeric",month:"short",day:"numeric",weekday:"short"},lc={year:"numeric",month:"long",day:"numeric"},mc={year:"numeric",
month:"long",day:"numeric",weekday:"long"},nc={hour:"numeric",minute:"numeric"},oc={hour:"numeric",minute:"numeric",second:"numeric"},pc={hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},qc={hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"long"},rc={hour:"numeric",minute:"numeric",hourCycle:"h23"},sc={hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23"},tc={hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23",timeZoneName:"short"},uc={hour:"numeric",
minute:"numeric",second:"numeric",hourCycle:"h23",timeZoneName:"long"},vc={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"},wc={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},xc={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"},yc={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},gd={year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",
minute:"numeric"},zc={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"},Ac={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},Bc={year:"numeric",month:"long",day:"numeric",weekday:"long",hour:"numeric",minute:"numeric",timeZoneName:"long"},Cc={year:"numeric",month:"long",day:"numeric",weekday:"long",hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"long"},yb=function(){function K(){}
var R=K.prototype;R.offsetName=function(H,L){throw new sb;};R.formatOffset=function(H,L){throw new sb;};R.offset=function(H){throw new sb;};R.equals=function(H){throw new sb;};b(K,[{key:"type",get:function(){throw new sb;}},{key:"name",get:function(){throw new sb;}},{key:"ianaName",get:function(){return this.name}},{key:"isUniversal",get:function(){throw new sb;}},{key:"isValid",get:function(){throw new sb;}}]);return K}(),Rb=null,Kb=function(K){function R(){return K.apply(this,arguments)||this}e(R,
K);var H=R.prototype;H.offsetName=function(L,W){return ba(L,W.format,W.locale)};H.formatOffset=function(L,W){return ka(this.offset(L),W)};H.offset=function(L){return-(new Date(L)).getTimezoneOffset()};H.equals=function(L){return"system"===L.type};b(R,[{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===
Rb&&(Rb=new R);return Rb}}]);return R}(yb),Gb={},hd={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},Hb={},wb=function(K){function R(L){var W=K.call(this)||this;W.zoneName=L;W.valid=R.isValidZone(L);return W}e(R,K);R.create=function(L){Hb[L]||(Hb[L]=new R(L));return Hb[L]};R.resetCache=function(){Hb={};Gb={}};R.isValidSpecifier=function(L){return this.isValidZone(L)};R.isValidZone=function(L){if(!L)return!1;try{return(new Intl.DateTimeFormat("en-US",{timeZone:L})).format(),!0}catch(W){return!1}};
var H=R.prototype;H.offsetName=function(L,W){return ba(L,W.format,W.locale,this.name)};H.formatOffset=function(L,W){return ka(this.offset(L),W)};H.offset=function(L){L=new Date(L);if(isNaN(L))return NaN;var W=this.name;Gb[W]||(Gb[W]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:W,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}));W=Gb[W];if(W.formatToParts){W=W.formatToParts(L);for(var na=[],wa=0;wa<W.length;wa++){var Aa=W[wa],Ia=Aa.type;
Aa=Aa.value;var Ma=hd[Ia];"era"===Ia?na[Ma]=Aa:z(Ma)||(na[Ma]=parseInt(Aa,10))}W=na}else W=W.format(L).replace(/\u200E/g,""),W=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(W),W=[W[3],W[1],W[2],W[4],W[5],W[6],W[7]];na=W[0];wa=W[1];Ia=W[2];Aa=W[4];Ma=W[5];var Ta=W[6];"BC"===W[3]&&(na=-Math.abs(na)+1);W=qa({year:na,month:wa,day:Ia,hour:24===Aa?0:Aa,minute:Ma,second:Ta,millisecond:0});L=+L;na=L%1E3;return(W-(L-(0<=na?na:1E3+na)))/6E4};H.equals=function(L){return"iana"===L.type&&L.name===this.name};
b(R,[{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 R}(yb),id=["base"],jd=["padTo","floor"],Dc={},Jb={},Sb={},Tb={},Ib=null,kd=function(){function K(R,H,L){this.padTo=L.padTo||0;this.floor=L.floor||!1;L.padTo;L.floor;var W=a(L,jd);if(!H||0<Object.keys(W).length)H=p({useGrouping:!1},L),0<L.padTo&&(H.minimumIntegerDigits=L.padTo),L=H,void 0===L&&(L={}),
H=JSON.stringify([R,L]),W=Sb[H],W||(W=new Intl.NumberFormat(R,L),Sb[H]=W),this.inf=W}K.prototype.format=function(R){if(this.inf)return this.inf.format(this.floor?Math.floor(R):R);R=this.floor?Math.floor(R):ja(R,3);return A(R,this.padTo)};return K}(),ld=function(){function K(H,L,W){this.opts=W;var na=void 0;H.zone.isUniversal?(na=H.offset/60*-1,na=0<=na?"Etc/GMT+"+na:"Etc/GMT"+na,0!==H.offset&&wb.create(na).valid?this.dt=H:(na="UTC",this.dt=W.timeZoneName?H:0===H.offset?H:bb.fromMillis(H.ts+6E4*H.offset))):
"system"===H.zone.type?this.dt=H:(this.dt=H,na=H.zone.name);H=p({},this.opts);H.timeZone=H.timeZone||na;this.dtf=n(L,H)}var R=K.prototype;R.format=function(){return this.dtf.format(this.dt.toJSDate())};R.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())};R.resolvedOptions=function(){return this.dtf.resolvedOptions()};return K}(),md=function(){function K(H,L,W){this.opts=p({style:"long"},W);if(!L&&E()){L=W;void 0===L&&(L={});W=L;W.base;W=a(W,id);W=JSON.stringify([H,W]);var na=
Tb[W];na||(na=new Intl.RelativeTimeFormat(H,L),Tb[W]=na);this.rtf=na}}var R=K.prototype;R.format=function(H,L){return this.rtf?this.rtf.format(H,L):P(L,H,this.opts.numeric,"long"!==this.opts.style)};R.formatToParts=function(H,L){return this.rtf?this.rtf.formatToParts(H,L):[]};return K}(),cb=function(){function K(H,L,W,na){var wa=H.indexOf("-x-");-1!==wa&&(H=H.substring(0,wa));wa=H.indexOf("-u-");if(-1===wa)var Aa=[H];else{try{Aa=n(H).resolvedOptions();var Ia=H}catch(Ma){Ia=H.substring(0,wa),Aa=n(Ia).resolvedOptions()}Aa=
[Ia,Aa.numberingSystem,Aa.calendar]}Ia=Aa[1];H=Aa[2];this.locale=Aa[0];this.numberingSystem=L||Ia||null;this.outputCalendar=W||H||null;L=this.locale;W=this.numberingSystem;if((Aa=this.outputCalendar)||W)L.includes("-u-")||(L+="-u"),Aa&&(L+="-ca-"+Aa),W&&(L+="-nu-"+W);this.intl=L;this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=na;this.fastNumbersCached=null}K.fromOpts=function(H){return K.create(H.locale,
H.numberingSystem,H.outputCalendar,H.defaultToEN)};K.create=function(H,L,W,na){void 0===na&&(na=!1);H=H||ab.defaultLocale;var wa;(wa=H)||(na?na="en-US":(Ib||(Ib=(new Intl.DateTimeFormat).resolvedOptions().locale),na=Ib),wa=na);return new K(wa,L||ab.defaultNumberingSystem,W||ab.defaultOutputCalendar,H)};K.resetCache=function(){Ib=null;Jb={};Sb={};Tb={}};K.fromObject=function(H){H=void 0===H?{}:H;return K.create(H.locale,H.numberingSystem,H.outputCalendar)};var R=K.prototype;R.listingMode=function(){var H=
this.isEnglish(),L=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return H&&L?"en":"intl"};R.clone=function(H){return H&&0!==Object.getOwnPropertyNames(H).length?K.create(H.locale||this.specifiedLocale,H.numberingSystem||this.numberingSystem,H.outputCalendar||this.outputCalendar,H.defaultToEN||!1):this};R.redefaultToEN=function(H){void 0===H&&(H={});return this.clone(p({},H,{defaultToEN:!0}))};R.redefaultToSystem=function(H){void 0===
H&&(H={});return this.clone(p({},H,{defaultToEN:!1}))};R.months=function(H,L,W){var na=this;void 0===L&&(L=!1);void 0===W&&(W=!0);return r(this,H,W,S,function(){var wa=L?{month:H,day:"numeric"}:{month:H},Aa=L?"format":"standalone";na.monthsCache[Aa][H]||(na.monthsCache[Aa][H]=h(function(Ia){return na.extract(Ia,wa,"month")}));return na.monthsCache[Aa][H]})};R.weekdays=function(H,L,W){var na=this;void 0===L&&(L=!1);void 0===W&&(W=!0);return r(this,H,W,X,function(){var wa=L?{weekday:H,year:"numeric",
month:"long",day:"numeric"}:{weekday:H},Aa=L?"format":"standalone";na.weekdaysCache[Aa][H]||(na.weekdaysCache[Aa][H]=c(function(Ia){return na.extract(Ia,wa,"weekday")}));return na.weekdaysCache[Aa][H]})};R.meridiems=function(H){var L=this;void 0===H&&(H=!0);return r(this,void 0,H,function(){return Ec},function(){if(!L.meridiemCache){var W={hour:"numeric",hourCycle:"h12"};L.meridiemCache=[bb.utc(2016,11,13,9),bb.utc(2016,11,13,19)].map(function(na){return L.extract(na,W,"dayperiod")})}return L.meridiemCache})};
R.eras=function(H,L){var W=this;void 0===L&&(L=!0);return r(this,H,L,O,function(){var na={era:H};W.eraCache[H]||(W.eraCache[H]=[bb.utc(-40,1,1),bb.utc(2017,1,1)].map(function(wa){return W.extract(wa,na,"era")}));return W.eraCache[H]})};R.extract=function(H,L,W){return(H=this.dtFormatter(H,L).formatToParts().find(function(na){return na.type.toLowerCase()===W}))?H.value:null};R.numberFormatter=function(H){void 0===H&&(H={});return new kd(this.intl,H.forceSimple||this.fastNumbers,H)};R.dtFormatter=function(H,
L){void 0===L&&(L={});return new ld(H,this.intl,L)};R.relFormatter=function(H){void 0===H&&(H={});return new md(this.intl,this.isEnglish(),H)};R.listFormatter=function(H){void 0===H&&(H={});var L=this.intl;void 0===H&&(H={});var W=JSON.stringify([L,H]),na=Dc[W];na||(na=new Intl.ListFormat(L,H),Dc[W]=na);return na};R.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||(new Intl.DateTimeFormat(this.intl)).resolvedOptions().locale.startsWith("en-us")};R.equals=function(H){return this.locale===
H.locale&&this.numberingSystem===H.numberingSystem&&this.outputCalendar===H.outputCalendar};b(K,[{key:"fastNumbers",get:function(){if(null==this.fastNumbersCached){var H=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=H}return this.fastNumbersCached}}]);return K}(),Ub=null,mb=function(K){function R(L){var W=K.call(this)||
this;W.fixed=L;return W}e(R,K);R.instance=function(L){return 0===L?R.utcInstance:new R(L)};R.parseSpecifier=function(L){return L&&(L=L.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i))?new R(ma(L[1],L[2])):null};var H=R.prototype;H.offsetName=function(){return this.name};H.formatOffset=function(L,W){return ka(this.fixed,W)};H.offset=function(){return this.fixed};H.equals=function(L){return"fixed"===L.type&&L.fixed===this.fixed};b(R,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===
this.fixed?"UTC":"UTC"+ka(this.fixed,"narrow")}},{key:"ianaName",get:function(){return 0===this.fixed?"Etc/UTC":"Etc/GMT"+ka(-this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){null===Ub&&(Ub=new R(0));return Ub}}]);return R}(yb),Xb=function(K){function R(L){var W=K.call(this)||this;W.zoneName=L;return W}e(R,K);var H=R.prototype;H.offsetName=function(){return null};H.formatOffset=function(){return""};H.offset=
function(){return NaN};H.equals=function(){return!1};b(R,[{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 R}(yb),Fc=function(){return Date.now()},Gc="system",Hc=null,Ic=null,Jc=null,Kc=60,Lc,ab=function(){function K(){}K.resetCaches=function(){cb.resetCache();wb.resetCache()};b(K,null,[{key:"now",get:function(){return Fc},set:function(R){Fc=R}},{key:"defaultZone",
get:function(){return v(Gc,Kb.instance)},set:function(R){Gc=R}},{key:"defaultLocale",get:function(){return Hc},set:function(R){Hc=R}},{key:"defaultNumberingSystem",get:function(){return Ic},set:function(R){Ic=R}},{key:"defaultOutputCalendar",get:function(){return Jc},set:function(R){Jc=R}},{key:"twoDigitCutoffYear",get:function(){return Kc},set:function(R){Kc=R%100}},{key:"throwOnInvalid",get:function(){return Lc},set:function(R){Lc=R}}]);return K}(),Tc="January February March April May June July August September October November December".split(" "),
Yb="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Sc="JFMAMJJASOND".split(""),$b="Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),Zb="Mon Tue Wed Thu Fri Sat Sun".split(" "),Uc="MTWTFSS".split(""),Ec=["AM","PM"],Xc=["Before Christ","Anno Domini"],Wc=["BC","AD"],Vc=["B","A"],nd={D:Fb,DD:kc,DDD:lc,DDDD:mc,t:nc,tt:oc,ttt:pc,tttt:qc,T:rc,TT:sc,TTT:tc,TTTT:uc,f:vc,ff:xc,fff:zc,ffff:Bc,F:wc,FF:yc,FFF:Ac,FFFF:Cc},nb=function(){function K(H,L){this.opts=L;this.loc=H;this.systemLoc=
null}K.create=function(H,L){void 0===L&&(L={});return new K(H,L)};K.parseFormat=function(H){for(var L=null,W="",na=!1,wa=[],Aa=0;Aa<H.length;Aa++){var Ia=H.charAt(Aa);"'"===Ia?(0<W.length&&wa.push({literal:na,val:W}),L=null,W="",na=!na):na?W+=Ia:Ia===L?W+=Ia:(0<W.length&&wa.push({literal:!1,val:W}),L=W=Ia)}0<W.length&&wa.push({literal:na,val:W});return wa};K.macroTokenToFormatOpts=function(H){return nd[H]};var R=K.prototype;R.formatWithSystemDefault=function(H,L){null===this.systemLoc&&(this.systemLoc=
this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(H,p({},this.opts,L)).format()};R.formatDateTime=function(H,L){void 0===L&&(L={});return this.loc.dtFormatter(H,p({},this.opts,L)).format()};R.formatDateTimeParts=function(H,L){void 0===L&&(L={});return this.loc.dtFormatter(H,p({},this.opts,L)).formatToParts()};R.formatInterval=function(H,L){void 0===L&&(L={});return this.loc.dtFormatter(H.start,p({},this.opts,L)).dtf.formatRange(H.start.toJSDate(),H.end.toJSDate())};R.resolvedOptions=
function(H,L){void 0===L&&(L={});return this.loc.dtFormatter(H,p({},this.opts,L)).resolvedOptions()};R.num=function(H,L){void 0===L&&(L=0);if(this.opts.forceSimple)return A(H,L);var W=p({},this.opts);0<L&&(W.padTo=L);return this.loc.numberFormatter(W).format(H)};R.formatDateTimeFromString=function(H,L){var W=this,na="en"===this.loc.listingMode(),wa=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,Aa=function(Qa,$a){return W.loc.extract(H,Qa,$a)},Ia=function(Qa){return H.isOffsetFixed&&
0===H.offset&&Qa.allowZ?"Z":H.isValid?H.zone.formatOffset(H.ts,Qa.format):""},Ma=function(Qa,$a){return na?S(Qa)[H.month-1]:Aa($a?{month:Qa}:{month:Qa,day:"numeric"},"month")},Ta=function(Qa,$a){return na?X(Qa)[H.weekday-1]:Aa($a?{weekday:Qa}:{weekday:Qa,month:"long",day:"numeric"},"weekday")},Ua=function(Qa){return na?O(Qa)[0>H.year?0:1]:Aa({era:Qa},"era")};return aa(K.parseFormat(L),function(Qa){switch(Qa){case "S":return W.num(H.millisecond);case "u":case "SSS":return W.num(H.millisecond,3);case "s":return W.num(H.second);
case "ss":return W.num(H.second,2);case "uu":return W.num(Math.floor(H.millisecond/10),2);case "uuu":return W.num(Math.floor(H.millisecond/100));case "m":return W.num(H.minute);case "mm":return W.num(H.minute,2);case "h":return W.num(0===H.hour%12?12:H.hour%12);case "hh":return W.num(0===H.hour%12?12:H.hour%12,2);case "H":return W.num(H.hour);case "HH":return W.num(H.hour,2);case "Z":return Ia({format:"narrow",allowZ:W.opts.allowZ});case "ZZ":return Ia({format:"short",allowZ:W.opts.allowZ});case "ZZZ":return Ia({format:"techie",
allowZ:W.opts.allowZ});case "ZZZZ":return H.zone.offsetName(H.ts,{format:"short",locale:W.loc.locale});case "ZZZZZ":return H.zone.offsetName(H.ts,{format:"long",locale:W.loc.locale});case "z":return H.zoneName;case "a":return na?Ec[12>H.hour?0:1]:Aa({hour:"numeric",hourCycle:"h12"},"dayperiod");case "d":return wa?Aa({day:"numeric"},"day"):W.num(H.day);case "dd":return wa?Aa({day:"2-digit"},"day"):W.num(H.day,2);case "c":return W.num(H.weekday);case "ccc":return Ta("short",!0);case "cccc":return Ta("long",
!0);case "ccccc":return Ta("narrow",!0);case "E":return W.num(H.weekday);case "EEE":return Ta("short",!1);case "EEEE":return Ta("long",!1);case "EEEEE":return Ta("narrow",!1);case "L":return wa?Aa({month:"numeric",day:"numeric"},"month"):W.num(H.month);case "LL":return wa?Aa({month:"2-digit",day:"numeric"},"month"):W.num(H.month,2);case "LLL":return Ma("short",!0);case "LLLL":return Ma("long",!0);case "LLLLL":return Ma("narrow",!0);case "M":return wa?Aa({month:"numeric"},"month"):W.num(H.month);case "MM":return wa?
Aa({month:"2-digit"},"month"):W.num(H.month,2);case "MMM":return Ma("short",!1);case "MMMM":return Ma("long",!1);case "MMMMM":return Ma("narrow",!1);case "y":return wa?Aa({year:"numeric"},"year"):W.num(H.year);case "yy":return wa?Aa({year:"2-digit"},"year"):W.num(H.year.toString().slice(-2),2);case "yyyy":return wa?Aa({year:"numeric"},"year"):W.num(H.year,4);case "yyyyyy":return wa?Aa({year:"numeric"},"year"):W.num(H.year,6);case "G":return Ua("short");case "GG":return Ua("long");case "GGGGG":return Ua("narrow");
case "kk":return W.num(H.weekYear.toString().slice(-2),2);case "kkkk":return W.num(H.weekYear,4);case "W":return W.num(H.weekNumber);case "WW":return W.num(H.weekNumber,2);case "o":return W.num(H.ordinal);case "ooo":return W.num(H.ordinal,3);case "q":return W.num(H.quarter);case "qq":return W.num(H.quarter,2);case "X":return W.num(Math.floor(H.ts/1E3));case "x":return W.num(H.ts);default:var $a=K.macroTokenToFormatOpts(Qa);Qa=$a?W.formatWithSystemDefault(H,$a):Qa;return Qa}})};R.formatDurationFromString=
function(H,L){var W=this,na=function(Aa){switch(Aa[0]){case "S":return"millisecond";case "s":return"second";case "m":return"minute";case "h":return"hour";case "d":return"day";case "w":return"week";case "M":return"month";case "y":return"year";default:return null}};L=K.parseFormat(L);var wa=L.reduce(function(Aa,Ia){var Ma=Ia.val;return Ia.literal?Aa:Aa.concat(Ma)},[]);H=H.shiftTo.apply(H,wa.map(na).filter(function(Aa){return Aa}));return aa(L,function(Aa){return function(Ia){var Ma=na(Ia);return Ma?
W.num(Aa.get(Ma),Ia.length):Ia}}(H))};return K}(),ob=function(){function K(R,H){this.reason=R;this.explanation=H}K.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason};return K}(),Mc=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,Nc=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Vb=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Oc=RegExp(""+Vb.source+("(?:"+Nc.source+"?(?:\\[("+Mc.source+")\\])?)?")),Wb=RegExp("(?:T"+Oc.source+
")?"),od=Ba("weekYear","weekNumber","weekDay"),pd=Ba("year","ordinal"),Pc=RegExp(Vb.source+" ?(?:"+Nc.source+"|("+Mc.source+"))?"),qd=RegExp("(?: "+Pc.source+")?"),rd=RegExp("^T?"+Vb.source+"$"),sd=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/,Yc={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,
MST:-420,PDT:-420,PST:-480},td=/^(?:(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)))$/,ud=/^(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$/,vd=/^(Monday|Tuesday|Wednesday|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$/,
wd=/^(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})$/,xd=ha(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Wb),yd=ha(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Wb),zd=ha(/(\d{4})-?(\d{3})/,Wb),Ad=ha(Oc),Qc=la(function(K,R){return[{year:N(K,R),month:N(K,R+1,1),day:N(K,R+2,1)},null,R+3]},Q,ia,pa),Bd=la(od,Q,ia,pa),Cd=la(pd,Q,ia,pa),Dd=la(Q,ia,pa),Ed=la(Q),Fd=ha(/(\d{4})-(\d\d)-(\d\d)/,qd),Gd=ha(Pc),Hd=la(Q,ia,pa),Rc={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}},Id=p({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}},Rc),Jd=p({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}},Rc),pb="years quarters months weeks days hours minutes seconds milliseconds".split(" "),Zc=pb.slice(0).reverse(),
eb=function(){function K(H){var L="longterm"===H.conversionAccuracy||!1,W=L?Jd:Id;H.matrix&&(W=H.matrix);this.values=H.values;this.loc=H.loc||cb.create();this.conversionAccuracy=L?"longterm":"casual";this.invalid=H.invalid||null;this.matrix=W;this.isLuxonDuration=!0}K.fromMillis=function(H,L){return K.fromObject({milliseconds:H},L)};K.fromObject=function(H,L){void 0===L&&(L={});if(null==H||"object"!==typeof H)throw new kb("Duration.fromObject: argument expected to be an object, got "+(null===H?"null":
typeof H));return new K({values:da(H,K.normalizeUnit),loc:cb.fromObject(L),conversionAccuracy:L.conversionAccuracy,matrix:L.matrix})};K.fromDurationLike=function(H){if(C(H))return K.fromMillis(H);if(K.isDuration(H))return H;if("object"===typeof H)return K.fromObject(H);throw new kb("Unknown duration argument "+H+" of type "+typeof H);};K.fromISO=function(H,L){var W=ta(H,[sd,ra])[0];return W?K.fromObject(W,L):K.invalid("unparsable",'the input "'+H+"\" can't be parsed as ISO 8601")};K.fromISOTime=function(H,
L){var W=ta(H,[rd,Ed])[0];return W?K.fromObject(W,L):K.invalid("unparsable",'the input "'+H+"\" can't be parsed as ISO 8601")};K.invalid=function(H,L){void 0===L&&(L=null);if(!H)throw new kb("need to specify a reason the Duration is invalid");H=H instanceof ob?H:new ob(H,L);if(ab.throwOnInvalid)throw new ed(H);return new K({invalid:H})};K.normalizeUnit=function(H){var L={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"}[H?H.toLowerCase():H];if(!L)throw new ec(H);return L};K.isDuration=function(H){return H&&H.isLuxonDuration||!1};var R=K.prototype;R.toFormat=function(H,L){void 0===L&&(L={});L=p({},L,{floor:!1!==L.round&&!1!==L.floor});return this.isValid?nb.create(this.loc,L).formatDurationFromString(this,H):"Invalid Duration"};R.toHuman=function(H){var L=
this;void 0===H&&(H={});var W=pb.map(function(na){var wa=L.values[na];return z(wa)?null:L.loc.numberFormatter(p({style:"unit",unitDisplay:"long"},H,{unit:na.slice(0,-1)})).format(wa)}).filter(function(na){return na});return this.loc.listFormatter(p({type:"conjunction",style:H.listStyle||"narrow"},H)).format(W)};R.toObject=function(){return this.isValid?p({},this.values):{}};R.toISO=function(){if(!this.isValid)return null;var H="P";0!==this.years&&(H+=this.years+"Y");if(0!==this.months||0!==this.quarters)H+=
this.months+3*this.quarters+"M";0!==this.weeks&&(H+=this.weeks+"W");0!==this.days&&(H+=this.days+"D");if(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)H+="T";0!==this.hours&&(H+=this.hours+"H");0!==this.minutes&&(H+=this.minutes+"M");if(0!==this.seconds||0!==this.milliseconds)H+=ja(this.seconds+this.milliseconds/1E3,3)+"S";"P"===H&&(H+="T0S");return H};R.toISOTime=function(H){void 0===H&&(H={});if(!this.isValid)return null;var L=this.toMillis();if(0>L||864E5<=L)return null;
H=p({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},H);L=this.shiftTo("hours","minutes","seconds","milliseconds");var W="basic"===H.format?"hhmm":"hh:mm";H.suppressSeconds&&0===L.seconds&&0===L.milliseconds||(W+="basic"===H.format?"ss":":ss",H.suppressMilliseconds&&0===L.milliseconds||(W+=".SSS"));L=L.toFormat(W);H.includePrefix&&(L="T"+L);return L};R.toJSON=function(){return this.toISO()};R.toString=function(){return this.toISO()};R.toMillis=function(){return this.as("milliseconds")};
R.valueOf=function(){return this.toMillis()};R.plus=function(H){if(!this.isValid)return this;H=K.fromDurationLike(H);for(var L={},W=0;W<pb.length;W++){var na=pb[W];if(D(H.values,na)||D(this.values,na))L[na]=H.get(na)+this.get(na)}return za(this,{values:L},!0)};R.minus=function(H){if(!this.isValid)return this;H=K.fromDurationLike(H);return this.plus(H.negate())};R.mapUnits=function(H){if(!this.isValid)return this;for(var L={},W=0,na=Object.keys(this.values);W<na.length;W++){var wa=na[W];L[wa]=va(H(this.values[wa],
wa))}return za(this,{values:L},!0)};R.get=function(H){return this[K.normalizeUnit(H)]};R.set=function(H){if(!this.isValid)return this;H=p({},this.values,da(H,K.normalizeUnit));return za(this,{values:H})};R.reconfigure=function(H){H=void 0===H?{}:H;var L=H.conversionAccuracy,W=H.matrix;H={loc:this.loc.clone({locale:H.locale,numberingSystem:H.numberingSystem}),matrix:W,conversionAccuracy:L};return za(this,H)};R.as=function(H){return this.isValid?this.shiftTo(H).get(H):NaN};R.normalize=function(){if(!this.isValid)return this;
var H=this.toObject();Ha(this.matrix,H);return za(this,{values:H},!0)};R.rescale=function(){if(!this.isValid)return this;var H=this.normalize().shiftToAll().toObject(),L={},W=0;for(H=Object.entries(H);W<H.length;W++){var na=H[W],wa=na[0];na=na[1];0!==na&&(L[wa]=na)}return za(this,{values:L},!0)};R.shiftTo=function(){for(var H=arguments.length,L=Array(H),W=0;W<H;W++)L[W]=arguments[W];if(!this.isValid||0===L.length)return this;L=L.map(function(lb){return K.normalizeUnit(lb)});H={};W={};for(var na=this.toObject(),
wa,Aa=0;Aa<pb.length;Aa++){var Ia=pb[Aa];if(0<=L.indexOf(Ia)){wa=Ia;var Ma=0,Ta;for(Ta in W)Ma+=this.matrix[Ta][Ia]*W[Ta],W[Ta]=0;C(na[Ia])&&(Ma+=na[Ia]);var Ua=Math.trunc(Ma);H[Ia]=Ua;W[Ia]=(1E3*Ma-1E3*Ua)/1E3;for(var Qa in na)pb.indexOf(Qa)>pb.indexOf(Ia)&&Ca(this.matrix,na,Qa,H,Ia)}else C(na[Ia])&&(W[Ia]=na[Ia])}for(var $a in W)0!==W[$a]&&(H[wa]+=$a===wa?W[$a]:W[$a]/this.matrix[wa][$a]);return za(this,{values:H},!0).normalize()};R.shiftToAll=function(){return this.isValid?this.shiftTo("years",
"months","weeks","days","hours","minutes","seconds","milliseconds"):this};R.negate=function(){if(!this.isValid)return this;for(var H={},L=0,W=Object.keys(this.values);L<W.length;L++){var na=W[L];H[na]=0===this.values[na]?0:-this.values[na]}return za(this,{values:H},!0)};R.equals=function(H){if(!this.isValid||!H.isValid||!this.loc.equals(H.loc))return!1;for(var L=0;L<pb.length;L++){var W=pb[L];var na=this.values[W];W=H.values[W];na=void 0===na||0===na?void 0===W||0===W:na===W;if(!na)return!1}return!0};
b(K,[{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 K}(),Cb=function(){function K(H){this.s=H.start;this.e=H.end;this.invalid=H.invalid||null;this.isLuxonInterval=!0}K.invalid=function(H,L){void 0===L&&(L=null);if(!H)throw new kb("need to specify a reason the Interval is invalid");H=H instanceof ob?H:new ob(H,L);if(ab.throwOnInvalid)throw new dd(H);return new K({invalid:H})};K.fromDateTimes=function(H,L){H=Bb(H);L=Bb(L);var W=H&&H.isValid?L&&L.isValid?L<H?Cb.invalid("end before start",
"The end of an interval must be after its start, but you had start\x3d"+H.toISO()+" and end\x3d"+L.toISO()):null:Cb.invalid("missing or invalid end"):Cb.invalid("missing or invalid start");return null==W?new K({start:H,end:L}):W};K.after=function(H,L){L=eb.fromDurationLike(L);H=Bb(H);return K.fromDateTimes(H,H.plus(L))};K.before=function(H,L){L=eb.fromDurationLike(L);H=Bb(H);return K.fromDateTimes(H.minus(L),H)};K.fromISO=function(H,L){var W=(H||"").split("/",2),na=W[0];W=W[1];if(na&&W){try{var wa=
bb.fromISO(na,L);var Aa=wa.isValid}catch(Ta){Aa=!1}try{var Ia=bb.fromISO(W,L);var Ma=Ia.isValid}catch(Ta){Ma=!1}if(Aa&&Ma)return K.fromDateTimes(wa,Ia);if(Aa){if(Ia=eb.fromISO(W,L),Ia.isValid)return K.after(wa,Ia)}else if(Ma&&(wa=eb.fromISO(na,L),wa.isValid))return K.before(Ia,wa)}return K.invalid("unparsable",'the input "'+H+"\" can't be parsed as ISO 8601")};K.isInterval=function(H){return H&&H.isLuxonInterval||!1};var R=K.prototype;R.length=function(H){void 0===H&&(H="milliseconds");return this.isValid?
this.toDuration.apply(this,[H]).get(H):NaN};R.count=function(H){void 0===H&&(H="milliseconds");if(!this.isValid)return NaN;var L=this.start.startOf(H),W=this.end.startOf(H);return Math.floor(W.diff(L,H).get(H))+1};R.hasSame=function(H){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,H):!1};R.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()};R.isAfter=function(H){return this.isValid?this.s>H:!1};R.isBefore=function(H){return this.isValid?this.e<=H:!1};R.contains=function(H){return this.isValid?
this.s<=H&&this.e>H:!1};R.set=function(H){H=void 0===H?{}:H;return this.isValid?K.fromDateTimes(H.start||this.s,H.end||this.e):this};R.splitAt=function(){var H=this;if(!this.isValid)return[];for(var L=arguments.length,W=Array(L),na=0;na<L;na++)W[na]=arguments[na];L=W.map(Bb).filter(function(Ia){return H.contains(Ia)}).sort();W=[];na=this.s;for(var wa=0;na<this.e;){var Aa=L[wa]||this.e;Aa=+Aa>+this.e?this.e:Aa;W.push(K.fromDateTimes(na,Aa));na=Aa;wa+=1}return W};R.splitBy=function(H){H=eb.fromDurationLike(H);
if(!this.isValid||!H.isValid||0===H.as("milliseconds"))return[];for(var L=this.s,W=1,na,wa=[];L<this.e;)na=this.start.plus(H.mapUnits(function(Aa){return Aa*W})),na=+na>+this.e?this.e:na,wa.push(K.fromDateTimes(L,na)),L=na,W+=1;return wa};R.divideEqually=function(H){return this.isValid?this.splitBy(this.length()/H).slice(0,H):[]};R.overlaps=function(H){return this.e>H.s&&this.s<H.e};R.abutsStart=function(H){return this.isValid?+this.e===+H.s:!1};R.abutsEnd=function(H){return this.isValid?+H.e===+this.s:
!1};R.engulfs=function(H){return this.isValid?this.s<=H.s&&this.e>=H.e:!1};R.equals=function(H){return this.isValid&&H.isValid?this.s.equals(H.s)&&this.e.equals(H.e):!1};R.intersection=function(H){if(!this.isValid)return this;var L=this.s>H.s?this.s:H.s;H=this.e<H.e?this.e:H.e;return L>=H?null:K.fromDateTimes(L,H)};R.union=function(H){return this.isValid?K.fromDateTimes(this.s<H.s?this.s:H.s,this.e>H.e?this.e:H.e):this};K.merge=function(H){var L=H.sort(function(W,na){return W.s-na.s}).reduce(function(W,
na){var wa=W[0];return(W=W[1])?W.overlaps(na)||W.abutsStart(na)?[wa,W.union(na)]:[wa.concat([W]),na]:[wa,na]},[[],null]);H=L[0];(L=L[1])&&H.push(L);return H};K.xor=function(H){var L,W=null,na=0,wa=[];H=H.map(function(Ia){return[{time:Ia.s,type:"s"},{time:Ia.e,type:"e"}]});var Aa=(L=Array.prototype).concat.apply(L,H).sort(function(Ia,Ma){return Ia.time-Ma.time});for(L=k(Aa);!(H=L()).done;)H=H.value,na+="s"===H.type?1:-1,1===na?W=H.time:(W&&+W!==+H.time&&wa.push(K.fromDateTimes(W,H.time)),W=null);return K.merge(wa)};
R.difference=function(){for(var H=this,L=arguments.length,W=Array(L),na=0;na<L;na++)W[na]=arguments[na];return K.xor([this].concat(W)).map(function(wa){return H.intersection(wa)}).filter(function(wa){return wa&&!wa.isEmpty()})};R.toString=function(){return this.isValid?"["+this.s.toISO()+" \u2013 "+this.e.toISO()+")":"Invalid Interval"};R.toLocaleString=function(H,L){void 0===H&&(H=Fb);void 0===L&&(L={});return this.isValid?nb.create(this.s.loc.clone(L),H).formatInterval(this):"Invalid Interval"};
R.toISO=function(H){return this.isValid?this.s.toISO(H)+"/"+this.e.toISO(H):"Invalid Interval"};R.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():"Invalid Interval"};R.toISOTime=function(H){return this.isValid?this.s.toISOTime(H)+"/"+this.e.toISOTime(H):"Invalid Interval"};R.toFormat=function(H,L){L=(void 0===L?{}:L).separator;L=void 0===L?" \u2013 ":L;return this.isValid?""+this.s.toFormat(H)+L+this.e.toFormat(H):"Invalid Interval"};R.toDuration=function(H,L){return this.isValid?
this.e.diff(this.s,H,L):eb.invalid(this.invalidReason)};R.mapEndpoints=function(H){return K.fromDateTimes(H(this.s),H(this.e))};b(K,[{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 K}(),
Db=function(){function K(){}K.hasDST=function(R){void 0===R&&(R=ab.defaultZone);var H=bb.now().setZone(R).set({month:12});return!R.isUniversal&&H.offset!==H.set({month:6}).offset};K.isValidIANAZone=function(R){return wb.isValidZone(R)};K.normalizeZone=function(R){return v(R,ab.defaultZone)};K.months=function(R,H){void 0===R&&(R="long");var L=void 0===H?{}:H;H=L.locale;var W=L.numberingSystem,na=L.locObj;L=L.outputCalendar;return((void 0===na?null:na)||cb.create(void 0===H?null:H,void 0===W?null:W,
void 0===L?"gregory":L)).months(R)};K.monthsFormat=function(R,H){void 0===R&&(R="long");var L=void 0===H?{}:H;H=L.locale;var W=L.numberingSystem,na=L.locObj;L=L.outputCalendar;return((void 0===na?null:na)||cb.create(void 0===H?null:H,void 0===W?null:W,void 0===L?"gregory":L)).months(R,!0)};K.weekdays=function(R,H){void 0===R&&(R="long");var L=void 0===H?{}:H;H=L.locale;var W=L.numberingSystem;L=L.locObj;return((void 0===L?null:L)||cb.create(void 0===H?null:H,void 0===W?null:W,null)).weekdays(R)};
K.weekdaysFormat=function(R,H){void 0===R&&(R="long");var L=void 0===H?{}:H;H=L.locale;var W=L.numberingSystem;L=L.locObj;return((void 0===L?null:L)||cb.create(void 0===H?null:H,void 0===W?null:W,null)).weekdays(R,!0)};K.meridiems=function(R){R=(void 0===R?{}:R).locale;return cb.create(void 0===R?null:R).meridiems()};K.eras=function(R,H){void 0===R&&(R="short");H=(void 0===H?{}:H).locale;return cb.create(void 0===H?null:H,null,"gregory").eras(R)};K.features=function(){return{relative:E()}};return K}(),
Lb={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"},ac={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]},$c=Lb.hanidec.replace(/[\[|\]]/g,"").split(""),bc="[ "+String.fromCharCode(160)+"]",Mb=new RegExp(bc,"g"),bd={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"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}},Nb=null,Pb=[0,31,59,90,120,151,181,212,243,273,304,334],Ob=[0,31,60,91,121,152,182,213,244,274,305,335],hc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Kd={weekNumber:1,weekday:1,
hour:0,minute:0,second:0,millisecond:0},Ld={ordinal:1,hour:0,minute:0,second:0,millisecond:0},gc="year month day hour minute second millisecond".split(" "),Md="weekYear weekNumber weekday hour minute second millisecond".split(" "),Nd="year ordinal hour minute second millisecond".split(" "),bb=function(){function K(H){var L=H.zone||ab.defaultZone,W=H.invalid||(Number.isNaN(H.ts)?new ob("invalid input"):null)||(L.isValid?null:Za(L));this.ts=z(H.ts)?ab.now():H.ts;var na=null,wa=null;W||(H.old&&H.old.ts===
this.ts&&H.old.zone.equals(L)?(wa=[H.old.c,H.old.o],na=wa[0],wa=wa[1]):(wa=L.offset(this.ts),na=rb(this.ts,wa),na=(W=Number.isNaN(na.year)?new ob("invalid input"):null)?null:na,wa=W?null:wa));this._zone=L;this.loc=H.loc||cb.create();this.invalid=W;this.weekData=null;this.c=na;this.o=wa;this.isLuxonDateTime=!0}K.now=function(){return new K({})};K.local=function(){var H=jc(arguments),L=H[1];return fc({year:L[0],month:L[1],day:L[2],hour:L[3],minute:L[4],second:L[5],millisecond:L[6]},H[0])};K.utc=function(){var H=
jc(arguments),L=H[0],W=H[1];H=W[0];var na=W[1],wa=W[2],Aa=W[3],Ia=W[4],Ma=W[5];W=W[6];L.zone=mb.utcInstance;return fc({year:H,month:na,day:wa,hour:Aa,minute:Ia,second:Ma,millisecond:W},L)};K.fromJSDate=function(H,L){void 0===L&&(L={});H="[object Date]"===Object.prototype.toString.call(H)?H.valueOf():NaN;if(Number.isNaN(H))return K.invalid("invalid input");var W=v(L.zone,ab.defaultZone);return W.isValid?new K({ts:H,zone:W,loc:cb.fromObject(L)}):K.invalid(Za(W))};K.fromMillis=function(H,L){void 0===
L&&(L={});if(C(H))return-864E13>H||864E13<H?K.invalid("Timestamp out of range"):new K({ts:H,zone:v(L.zone,ab.defaultZone),loc:cb.fromObject(L)});throw new kb("fromMillis requires a numerical input, but received a "+typeof H+" with value "+H);};K.fromSeconds=function(H,L){void 0===L&&(L={});if(C(H))return new K({ts:1E3*H,zone:v(L.zone,ab.defaultZone),loc:cb.fromObject(L)});throw new kb("fromSeconds requires a numerical input");};K.fromObject=function(H,L){void 0===L&&(L={});H=H||{};var W=v(L.zone,
ab.defaultZone);if(!W.isValid)return K.invalid(Za(W));var na=ab.now(),wa=z(L.specificOffset)?W.offset(na):L.specificOffset,Aa=da(H,dc),Ia=!z(Aa.ordinal),Ma=!z(Aa.year),Ta=!z(Aa.month)||!z(Aa.day);Ma=Ma||Ta;var Ua=Aa.weekYear||Aa.weekNumber;L=cb.fromObject(L);if((Ma||Ia)&&Ua)throw new Ab("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Ta&&Ia)throw new Ab("Can't mix ordinal dates with month/day");Ta=Ua||Aa.weekday&&!Ma;Ua=rb(na,wa);if(Ta){var Qa=Md;na=Kd;Ua=hb(Ua)}else Ia?
(Qa=Nd,na=Ld,Ua=Oa(Ua)):(Qa=gc,na=hc);var $a=!1;Qa=k(Qa);for(var lb;!(lb=Qa()).done;)lb=lb.value,z(Aa[lb])?Aa[lb]=$a?na[lb]:Ua[lb]:$a=!0;Ta?(na=x(Aa.weekYear),Ua=t(Aa.weekNumber,1,V(Aa.weekYear)),$a=t(Aa.weekday,1,7),na=na?Ua?$a?!1:Sa("weekday",Aa.weekday):Sa("week",Aa.week):Sa("weekYear",Aa.weekYear)):Ia?(na=x(Aa.year),Ua=t(Aa.ordinal,1,Z(Aa.year)?366:365),na=na?Ua?!1:Sa("ordinal",Aa.ordinal):Sa("year",Aa.year)):na=ib(Aa);if(na=na||Ya(Aa))return K.invalid(na);Ia=Ta?fb(Aa):Ia?Xa(Aa):Aa;wa=qb(Ia,wa,
W);W=new K({ts:wa[0],zone:W,o:wa[1],loc:L});return Aa.weekday&&Ma&&H.weekday!==W.weekday?K.invalid("mismatched weekday","you can't specify both a weekday of "+Aa.weekday+" and a date of "+W.toISO()):W};K.fromISO=function(H,L){void 0===L&&(L={});var W=ta(H,[xd,Qc],[yd,Bd],[zd,Cd],[Ad,Dd]);return ub(W[0],W[1],L,"ISO 8601",H)};K.fromRFC2822=function(H,L){void 0===L&&(L={});var W=ta(H.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[td,ca]);return ub(W[0],W[1],L,"RFC 2822",H)};K.fromHTTP=
function(H,L){void 0===L&&(L={});H=ta(H,[ud,sa],[vd,sa],[wd,xa]);return ub(H[0],H[1],L,"HTTP",L)};K.fromFormat=function(H,L,W){void 0===W&&(W={});if(z(H)||z(L))throw new kb("fromFormat requires an input string and a format");var na=W,wa=na.locale;na=na.numberingSystem;wa=cb.fromOpts({locale:void 0===wa?null:wa,numberingSystem:void 0===na?null:na,defaultToEN:!0});wa=Ra(wa,H,L);var Aa=[wa.result,wa.zone,wa.specificOffset,wa.invalidReason];wa=Aa[0];na=Aa[1];var Ia=Aa[2];return(Aa=Aa[3])?K.invalid(Aa):
ub(wa,na,W,"format "+L,H,Ia)};K.fromString=function(H,L,W){void 0===W&&(W={});return K.fromFormat(H,L,W)};K.fromSQL=function(H,L){void 0===L&&(L={});var W=ta(H,[Fd,Qc],[Gd,Hd]);return ub(W[0],W[1],L,"SQL",H)};K.invalid=function(H,L){void 0===L&&(L=null);if(!H)throw new kb("need to specify a reason the DateTime is invalid");H=H instanceof ob?H:new ob(H,L);if(ab.throwOnInvalid)throw new cd(H);return new K({invalid:H})};K.isDateTime=function(H){return H&&H.isLuxonDateTime||!1};K.parseFormatForOpts=function(H,
L){void 0===L&&(L={});return(H=Va(H,cb.fromObject(L)))?H.map(function(W){return W?W.val:null}).join(""):null};K.expandFormat=function(H,L){void 0===L&&(L={});return Na(nb.parseFormat(H),cb.fromObject(L)).map(function(W){return W.val}).join("")};var R=K.prototype;R.get=function(H){return this[H]};R.resolvedLocaleOptions=function(H){void 0===H&&(H={});H=nb.create(this.loc.clone(H),H).resolvedOptions(this);return{locale:H.locale,numberingSystem:H.numberingSystem,outputCalendar:H.calendar}};R.toUTC=function(H,
L){void 0===H&&(H=0);void 0===L&&(L={});return this.setZone(mb.instance(H),L)};R.toLocal=function(){return this.setZone(ab.defaultZone)};R.setZone=function(H,L){var W=void 0===L?{}:L;L=W.keepLocalTime;L=void 0===L?!1:L;W=W.keepCalendarTime;W=void 0===W?!1:W;H=v(H,ab.defaultZone);if(H.equals(this.zone))return this;if(H.isValid){var na=this.ts;if(L||W)L=H.offset(this.ts),W=this.toObject(),na=qb(W,L,H)[0];return tb(this,{ts:na,zone:H})}return K.invalid(Za(H))};R.reconfigure=function(H){H=void 0===H?
{}:H;H=this.loc.clone({locale:H.locale,numberingSystem:H.numberingSystem,outputCalendar:H.outputCalendar});return tb(this,{loc:H})};R.setLocale=function(H){return this.reconfigure({locale:H})};R.set=function(H){if(!this.isValid)return this;H=da(H,dc);var L=!z(H.weekYear)||!z(H.weekNumber)||!z(H.weekday),W=!z(H.ordinal),na=!z(H.year),wa=!z(H.month)||!z(H.day),Aa=H.weekYear||H.weekNumber;if((na||wa||W)&&Aa)throw new Ab("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(wa&&W)throw new Ab("Can't mix ordinal dates with month/day");
L?L=fb(p({},hb(this.c),H)):z(H.ordinal)?(L=p({},this.toObject(),H),z(H.day)&&(L.day=Math.min(fa(L.year,L.month),L.day))):L=Xa(p({},Oa(this.c),H));H=qb(L,this.o,this.zone);return tb(this,{ts:H[0],o:H[1]})};R.plus=function(H){if(!this.isValid)return this;H=eb.fromDurationLike(H);return tb(this,Eb(this,H))};R.minus=function(H){if(!this.isValid)return this;H=eb.fromDurationLike(H).negate();return tb(this,Eb(this,H))};R.startOf=function(H){if(!this.isValid)return this;var L={};H=eb.normalizeUnit(H);switch(H){case "years":L.month=
1;case "quarters":case "months":L.day=1;case "weeks":case "days":L.hour=0;case "hours":L.minute=0;case "minutes":L.second=0;case "seconds":L.millisecond=0}"weeks"===H&&(L.weekday=1);"quarters"===H&&(L.month=3*(Math.ceil(this.month/3)-1)+1);return this.set(L)};R.endOf=function(H){var L;return this.isValid?this.plus((L={},L[H]=1,L)).startOf(H).minus(1):this};R.toFormat=function(H,L){void 0===L&&(L={});return this.isValid?nb.create(this.loc.redefaultToEN(L)).formatDateTimeFromString(this,H):"Invalid DateTime"};
R.toLocaleString=function(H,L){void 0===H&&(H=Fb);void 0===L&&(L={});return this.isValid?nb.create(this.loc.clone(L),H).formatDateTime(this):"Invalid DateTime"};R.toLocaleParts=function(H){void 0===H&&(H={});return this.isValid?nb.create(this.loc.clone(H),H).formatDateTimeParts(this):[]};R.toISO=function(H){var L=void 0===H?{}:H,W=L.format;H=L.suppressSeconds;H=void 0===H?!1:H;var na=L.suppressMilliseconds;na=void 0===na?!1:na;var wa=L.includeOffset;wa=void 0===wa?!0:wa;L=L.extendedZone;L=void 0===
L?!1:L;if(!this.isValid)return null;W="extended"===(void 0===W?"extended":W);var Aa=Qb(this,W);return Aa=Aa+"T"+cc(this,W,H,na,wa,L)};R.toISODate=function(H){H=(void 0===H?{}:H).format;return this.isValid?Qb(this,"extended"===(void 0===H?"extended":H)):null};R.toISOWeekDate=function(){return vb(this,"kkkk-'W'WW-c")};R.toISOTime=function(H){var L=void 0===H?{}:H;H=L.suppressMilliseconds;var W=L.suppressSeconds,na=L.includeOffset,wa=L.includePrefix,Aa=L.extendedZone;L=L.format;return this.isValid?((void 0===
wa?0:wa)?"T":"")+cc(this,"extended"===(void 0===L?"extended":L),void 0===W?!1:W,void 0===H?!1:H,void 0===na?!0:na,void 0===Aa?!1:Aa):null};R.toRFC2822=function(){return vb(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)};R.toHTTP=function(){return vb(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")};R.toSQLDate=function(){return this.isValid?Qb(this,!0):null};R.toSQLTime=function(H){var L=void 0===H?{}:H;H=L.includeOffset;H=void 0===H?!0:H;var W=L.includeZone;W=void 0===W?!1:W;L=L.includeOffsetSpace;L=void 0===
L?!0:L;var na="HH:mm:ss.SSS";if(W||H)L&&(na+=" "),W?na+="z":H&&(na+="ZZ");return vb(this,na,!0)};R.toSQL=function(H){void 0===H&&(H={});return this.isValid?this.toSQLDate()+" "+this.toSQLTime(H):null};R.toString=function(){return this.isValid?this.toISO():"Invalid DateTime"};R.valueOf=function(){return this.toMillis()};R.toMillis=function(){return this.isValid?this.ts:NaN};R.toSeconds=function(){return this.isValid?this.ts/1E3:NaN};R.toUnixInteger=function(){return this.isValid?Math.floor(this.ts/
1E3):NaN};R.toJSON=function(){return this.toISO()};R.toBSON=function(){return this.toJSDate()};R.toObject=function(H){void 0===H&&(H={});if(!this.isValid)return{};var L=p({},this.c);H.includeConfig&&(L.outputCalendar=this.outputCalendar,L.numberingSystem=this.loc.numberingSystem,L.locale=this.loc.locale);return L};R.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)};R.diff=function(H,L,W){void 0===L&&(L="milliseconds");void 0===W&&(W={});if(!this.isValid||!H.isValid)return eb.invalid("created by diffing an invalid DateTime");
W=p({locale:this.locale,numberingSystem:this.numberingSystem},W);var na=(Array.isArray(L)?L:[L]).map(eb.normalizeUnit);L=H.valueOf()>this.valueOf();H=Pa(L?this:H,L?H:this,na,W);return L?H.negate():H};R.diffNow=function(H,L){void 0===H&&(H="milliseconds");void 0===L&&(L={});return this.diff(K.now(),H,L)};R.until=function(H){return this.isValid?Cb.fromDateTimes(this,H):this};R.hasSame=function(H,L){if(!this.isValid)return!1;var W=H.valueOf();H=this.setZone(H.zone,{keepLocalTime:!0});return H.startOf(L)<=
W&&W<=H.endOf(L)};R.equals=function(H){return this.isValid&&H.isValid&&this.valueOf()===H.valueOf()&&this.zone.equals(H.zone)&&this.loc.equals(H.loc)};R.toRelative=function(H){void 0===H&&(H={});if(!this.isValid)return null;var L=H.base||K.fromObject({},{zone:this.zone}),W=H.padding?this<L?-H.padding:H.padding:0,na="years months days hours minutes seconds".split(" "),wa=H.unit;Array.isArray(H.unit)&&(na=H.unit,wa=void 0);return ic(L,this.plus(W),p({},H,{numeric:"always",units:na,unit:wa}))};R.toRelativeCalendar=
function(H){void 0===H&&(H={});return this.isValid?ic(H.base||K.fromObject({},{zone:this.zone}),this,p({},H,{numeric:"auto",units:["years","months","days"],calendary:!0})):null};K.min=function(){for(var H=arguments.length,L=Array(H),W=0;W<H;W++)L[W]=arguments[W];if(!L.every(K.isDateTime))throw new kb("min requires all arguments be DateTimes");return B(L,function(na){return na.valueOf()},Math.min)};K.max=function(){for(var H=arguments.length,L=Array(H),W=0;W<H;W++)L[W]=arguments[W];if(!L.every(K.isDateTime))throw new kb("max requires all arguments be DateTimes");
return B(L,function(na){return na.valueOf()},Math.max)};K.fromFormatExplain=function(H,L,W){void 0===W&&(W={});var na=W;W=na.locale;na=na.numberingSystem;W=cb.fromOpts({locale:void 0===W?null:W,numberingSystem:void 0===na?null:na,defaultToEN:!0});return Ra(W,H,L)};K.fromStringExplain=function(H,L,W){void 0===W&&(W={});return K.fromFormatExplain(H,L,W)};b(K,[{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?db(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?db(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?db(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?Oa(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?Db.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?Db.months("long",{locObj:this.loc})[this.month-
1]:null}},{key:"weekdayShort",get:function(){return this.isValid?Db.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?Db.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,day:1}).offset||this.offset>this.set({month:5}).offset}},{key:"isInLeapYear",get:function(){return Z(this.year)}},{key:"daysInMonth",get:function(){return fa(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?Z(this.year)?366:365:NaN}},{key:"weeksInWeekYear",
get:function(){return this.isValid?V(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return Fb}},{key:"DATE_MED",get:function(){return kc}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return fd}},{key:"DATE_FULL",get:function(){return lc}},{key:"DATE_HUGE",get:function(){return mc}},{key:"TIME_SIMPLE",get:function(){return nc}},{key:"TIME_WITH_SECONDS",get:function(){return oc}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return pc}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return qc}},
{key:"TIME_24_SIMPLE",get:function(){return rc}},{key:"TIME_24_WITH_SECONDS",get:function(){return sc}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return tc}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return uc}},{key:"DATETIME_SHORT",get:function(){return vc}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return wc}},{key:"DATETIME_MED",get:function(){return xc}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return yc}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return gd}},
{key:"DATETIME_FULL",get:function(){return zc}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return Ac}},{key:"DATETIME_HUGE",get:function(){return Bc}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return Cc}}]);return K}();F.DateTime=bb;F.Duration=eb;F.FixedOffsetZone=mb;F.IANAZone=wb;F.Info=Db;F.Interval=Cb;F.InvalidZone=Xb;F.Settings=ab;F.SystemZone=Kb;F.VERSION="3.2.1";F.Zone=yb;Object.defineProperty(F,"__esModule",{value:!0})})},"esri/arcade/ImmutableArray":function(){define(["require",
"exports"],function(F,u){return function(){function b(p){void 0===p&&(p=[]);this._elements=p}b.prototype.length=function(){return this._elements.length};b.prototype.get=function(p){return this._elements[p]};b.prototype.toArray=function(){for(var p=[],e=0;e<this.length();e++)p.push(this.get(e));return p};return b}()})},"esri/arcade/languageUtils":function(){define("require exports ./polyfill/tsSupport/awaiter ./polyfill/tsSupport/generator ./polyfill/tsSupport/assign ./polyfill/tsSupport/spreadarray ./FunctionWrapper ./ImmutableArray ./ImmutablePathArray ./ImmutablePointArray ./ArcadeDate ../geometry/Extent ../geometry/Geometry ../geometry/Multipoint ../geometry/Point ../geometry/Polygon ../geometry/Polyline ../libs/luxon/luxon dojo/number dojo/_base/kernel ./featureset/support/shared ./ArcadeModule ./executionError".split(" "),
function(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r,v,z,C,x,E){function B(M,ca,sa){return""===ca||null===ca||void 0===ca||ca===sa||ca===sa?M:M=M.split(ca).join(sa)}function w(M){return M instanceof q.ArcadeFunction}function D(M){return M instanceof x.ArcadeModule}function t(M){return A(M)||J(M)||V(M)||G(M)||null===M||M===u.voidOperation||"number"===typeof M?!0:!1}function A(M){return"string"===typeof M||M instanceof String}function G(M){return"boolean"===typeof M}function J(M){return"number"===typeof M}
function U(M){return M instanceof Array}function ja(M){return"esri.arcade.Feature"===(null===M||void 0===M?void 0:M.arcadeDeclaredClass)?!0:!1}function Z(M){return"esri.arcade.featureset.support.FeatureSet"===(null===M||void 0===M?void 0:M.declaredRootClass)}function fa(M){return"esri.arcade.featureSetCollection"===(null===M||void 0===M?void 0:M.declaredRootClass)}function qa(M){return M instanceof m}function V(M){return M instanceof a.ArcadeDate}function ea(M){return null!=M&&"object"===typeof M}
function ba(M){return M instanceof Date}function ma(M,ca){if(!isNaN(M)){if(void 0===ca||null===ca||""===ca)return M.toString();ca=B(ca,"\u2030","");ca=B(ca,"\u00a4","");return v.format(M,{pattern:ca})}return M.toString()}function va(M,ca){return void 0===ca||null===ca||""===ca?M.toISOString(!0):M.toFormat(da(ca),{locale:z.locale,numberingSystem:"latn"})}function da(M){M=M.replace(/LTS|LT|LL?L?L?|l{1,4}/g,"[$\x26]");var ca="",sa=0;for(M=M.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)||
[];sa<M.length;sa++){var xa=M[sa];switch(xa){case "D":ca+="d";break;case "DD":ca+="dd";break;case "DDD":ca+="o";break;case "d":ca+="c";break;case "ddd":ca+="ccc";break;case "dddd":ca+="cccc";break;case "M":ca+="L";break;case "MM":ca+="LL";break;case "MMM":ca+="LLL";break;case "MMMM":ca+="LLLL";break;case "YY":ca+="yy";break;case "Y":case "YYYY":ca+="yyyy";break;case "Q":ca+="q";break;case "Z":ca+="ZZ";break;case "ZZ":ca+="ZZZ";break;case "S":ca+="'S'";break;case "SS":ca+="'SS'";break;case "SSS":ca+=
"u";break;case "A":case "a":ca+="a";break;case "m":case "mm":case "h":case "hh":case "H":case "HH":case "s":case "ss":case "X":case "x":ca+=xa;break;default:ca=2<=xa.length&&"["===xa.slice(0,1)&&"]"===xa.slice(-1)?ca+("'"+xa.slice(1,-1)+"'"):ca+("'"+xa+"'")}}return ca}function ka(M,ca,sa){switch(sa){case "\x3e":return M>ca;case "\x3c":return M<ca;case "\x3e\x3d":return M>=ca;case "\x3c\x3d":return M<=ca}return!1}function I(M,ca){if(M===ca||null===M&&ca===u.voidOperation||null===ca&&M===u.voidOperation)return!0;
if(V(M)&&V(ca))return M.equals(ca);if(M instanceof f||M instanceof g)return M.equalityTest(ca);if(M instanceof n&&ca instanceof n){var sa=M.getCacheValue("_arcadeCacheId"),xa=ca.getCacheValue("_arcadeCacheId");if(void 0!==sa&&null!==sa)return sa===xa}return ea(M)&&ea(ca)&&(M._arcadeCacheId===ca._arcadeCacheId&&void 0!==M._arcadeCacheId&&null!==M._arcadeCacheId||M._underlyingGraphic===ca._underlyingGraphic&&void 0!==M._underlyingGraphic&&null!==M._underlyingGraphic)?!0:!1}function S(M,ca){if(A(M))return M;
if(null===M)return"";if(J(M))return ma(M,ca);if(G(M))return M.toString();if(V(M))return va(M,ca);if(M instanceof l)return JSON.stringify(M.toJson());if(U(M)){ca=[];for(var sa=0;sa<M.length;sa++)ca[sa]=O(M[sa]);return"["+ca.join(",")+"]"}if(M instanceof m){ca=[];for(sa=0;sa<M.length();sa++)ca[sa]=O(M.get(sa));return"["+ca.join(",")+"]"}return null!==M&&"object"===typeof M&&void 0!==M.castToText?M.castToText():w(M)?"object, Function":M===u.voidOperation?"":D(M)?"object, Module":""}function X(M,ca,sa){void 0===
sa&&(sa=!1);if(A(M))return M;if(null===M)return"";if(J(M))return ma(M,ca);if(G(M))return M.toString();if(V(M))return va(M,ca);if(M instanceof l)return M instanceof d?'{"xmin":'+M.xmin.toString()+',"ymin":'+M.ymin.toString()+","+(M.hasZ?'"zmin":'+M.zmin.toString()+",":"")+(M.hasM?'"mmin":'+M.mmin.toString()+",":"")+'"xmax":'+M.xmax.toString()+',"ymax":'+M.ymax.toString()+","+(M.hasZ?'"zmax":'+M.zmax.toString()+",":"")+(M.hasM?'"mmax":'+M.mmax.toString()+",":"")+'"spatialReference":'+Ba(M.spatialReference)+
"}":Ba(M.toJson(),function(za,Ca){return za.key===Ca.key?0:"spatialReference"===za.key?1:"spatialReference"===Ca.key||za.key<Ca.key?-1:za.key>Ca.key?1:0});if(U(M)){ca=[];for(var xa=0;xa<M.length;xa++)ca[xa]=O(M[xa],sa);return"["+ca.join(",")+"]"}if(M instanceof m){ca=[];for(xa=0;xa<M.length();xa++)ca[xa]=O(M.get(xa),sa);return"["+ca.join(",")+"]"}return null!==M&&"object"===typeof M&&void 0!==M.castToText?M.castToText(sa):w(M)?"object, Function":M===u.voidOperation?"":D(M)?"object, Module":""}function O(M,
ca){void 0===ca&&(ca=!1);return null===M?"null":G(M)||J(M)||A(M)?JSON.stringify(M):M instanceof l||M instanceof m||M instanceof Array?X(M,null,ca):V(M)?ca?JSON.stringify(M.getTime()):JSON.stringify(va(M,"")):null!==M&&"object"===typeof M&&void 0!==M.castToText?M.castToText(ca):"null"}function P(M,ca){return J(M)?M:null===M||""===M?0:V(M)?NaN:G(M)?M?1:0:U(M)||""===M||void 0===M?NaN:void 0!==ca&&A(M)?(ca=B(ca,"\u2030",""),ca=B(ca,"\u00a4",""),v.parse(M,{pattern:ca})):M===u.voidOperation?0:Number(M)}
function aa(M,ca){if(!M||!M.domain)return ca;var sa=null;if("string"===M.field.type||"esriFieldTypeString"===M.field.type)ca=S(ca);else{if(null===ca||void 0===ca)return null;if(""===ca)return ca;ca=P(ca)}for(var xa=0;xa<M.domain.codedValues.length;xa++){var za=M.domain.codedValues[xa];za.code===ca&&(sa=za)}return null===sa?ca:sa.name}function ha(M,ca){if(!M||!M.domain)return ca;var sa=null;ca=S(ca);for(var xa=0;xa<M.domain.codedValues.length;xa++){var za=M.domain.codedValues[xa];za.name===ca&&(sa=
za)}return null===sa?ca:sa.code}function la(M,ca,sa,xa){void 0===sa&&(sa=null);void 0===xa&&(xa=null);if(!ca||!ca.fields)return null;for(var za=null,Ca=0;Ca<ca.fields.length;Ca++){var Ha=ca.fields[Ca];Ha.name.toLowerCase()===M.toString().toLowerCase()&&(za=Ha)}if(null===za)throw new E.ArcadeExecutionError(null,E.ExecutionErrorCodes.FieldNotFound,null,{key:M});var Da,La;null===xa&&sa&&ca.typeIdField&&(xa=sa.hasField(ca.typeIdField)?sa.field(ca.typeIdField):null);null!==xa&&void 0!==xa&&ca.types.some(function(Pa){return Pa.id===
xa?((Da=Pa.domains&&Pa.domains[za.name])&&"inherited"===Da.type&&(Da=ta(za.name,ca),La=!0),!0):!1});La||Da||(Da=ta(M,ca));return{field:za,domain:Da}}function ta(M,ca){var sa;ca.fields.some(function(xa){xa.name.toLowerCase()===M.toLowerCase()&&(sa=xa.domain);return!!sa});return sa}function Ba(M,ca){ca||(ca={});"function"===typeof ca&&(ca={cmp:ca});var sa="boolean"===typeof ca.cycles?ca.cycles:!1,xa=ca.cmp&&function(Ca){return function(Ha){return function(Da,La){return Ca({key:Da,value:Ha[Da]},{key:La,
value:Ha[La]})}}}(ca.cmp),za=[];return function Da(Ha){Ha&&Ha.toJson&&"function"===typeof Ha.toJson&&(Ha=Ha.toJson());if(void 0!==Ha){if("number"===typeof Ha)return isFinite(Ha)?""+Ha:"null";if("object"!==typeof Ha)return JSON.stringify(Ha);var La;if(Array.isArray(Ha)){var Pa="[";for(La=0;La<Ha.length;La++)La&&(Pa+=","),Pa+=Da(Ha[La])||"null";return Pa+"]"}if(null===Ha)return"null";if(za.includes(Ha)){if(sa)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON");
}var T=za.push(Ha)-1,Y=Object.keys(Ha).sort(xa&&xa(Ha));Pa="";for(La=0;La<Y.length;La++){var oa=Y[La],ua=Da(Ha[oa]);ua&&(Pa&&(Pa+=","),Pa+=JSON.stringify(oa)+":"+ua)}za.splice(T,1);return"{"+Pa+"}"}}(M)}function N(M,ca){if(ca instanceof n)M.push([ca.x,ca.y]);else throw new E.ArcadeExecutionError(null,E.ExecutionErrorCodes.InvalidParameter,null);}function Q(M,ca){void 0===ca&&(ca=null);if(null!=M){if(G(M)||J(M)||A(M))return M;if(M instanceof l)return!0===(null===ca||void 0===ca?void 0:ca.keepGeometryType)?
M:M.toJson();if(M instanceof m)return M.toArray().map(function(sa){return Q(sa,ca)});if(M instanceof Array)return M.map(function(sa){return Q(sa,ca)});if(ba(M))return M;if(V(M))return M.toJSDate();if(null!==M&&"object"===typeof M&&void 0!==M.castAsJson)return M.castAsJson(ca)}return null}function ia(M,ca,sa,xa,za){return b(this,void 0,void 0,function(){var Ca;return p(this,function(Ha){switch(Ha.label){case 0:return[4,pa(M,ca,sa)];case 1:return Ca=Ha.sent(),za[xa]=Ca,[2]}})})}function pa(M,ca,sa){void 0===
ca&&(ca=null);void 0===sa&&(sa=null);return b(this,void 0,void 0,function(){var xa,za,Ca,Ha,Da;return p(this,function(La){switch(La.label){case 0:return M instanceof m&&(M=M.toArray()),null!=M?[3,1]:[2,null];case 1:return t(M)||M instanceof l||ba(M)||V(M)?[2,Q(M,sa)]:[3,2];case 2:if(!(M instanceof Array))return[3,5];xa=[];za=[];Ca=0;for(Ha=M;Ca<Ha.length;Ca++)Da=Ha[Ca],null===Da||t(Da)||Da instanceof l||ba(Da)||V(Da)?za.push(Q(Da,sa)):(za.push(null),xa.push(ia(Da,ca,sa,za.length-1,za)));return 0<
xa.length?[4,Promise.all(xa)]:[3,4];case 3:La.sent(),La.label=4;case 4:return[2,za];case 5:if(null!==M&&"object"===typeof M&&void 0!==M.castAsJsonAsync)return[2,M.castAsJsonAsync(ca,sa)];La.label=6;case 6:return[2,null]}})})}Object.defineProperty(u,"__esModule",{value:!0});u.featureSchema=u.defaultTimeZone=u.featureDomainCodeLookup=u.featureDomainValueLookup=u.featureSubtypes=u.featureFullDomain=u.castAsJsonAsync=u.castAsJson=u.binaryOperator=u.tick=u.toStringArray=u.autoCastArrayOfPointsToMultiPoint=
u.autoCastArrayOfPointsToPolyline=u.autoCastArrayOfPointsToPolygon=u.autoCastFeatureToGeometry=u.stableStringify=u.getDomain=u.getDomainCode=u.getDomainValue=u.fixNullGeometry=u.fixSpatialReference=u.toBoolean=u.toDate=u.toNumber=u.toStringExplicit=u.toNumberArray=u.toString=u.equalityTest=u.greaterThanLessThan=u.standardiseDateFormat=u.formatDate=u.formatNumber=u.generateUUID=u.absRound=u.pcCheck=u.isJsDate=u.isObject=u.isDate=u.isImmutableArray=u.isFeatureSetCollection=u.isFeatureSet=u.isFeature=
u.isArray=u.isInteger=u.isNumber=u.isBoolean=u.isString=u.getType=u.defaultUndefined=u.isSimpleType=u.isModule=u.isFunctionParameter=u.multiReplace=u.continueResult=u.breakResult=u.voidOperation=u.ReturnResult=u.ImplicitResult=u.ImplicitResultE=u.ReturnResultE=void 0;F=function(){return function(M){this.value=M}}();u.ReturnResultE=F;e=function(){return function(M){this.value=M}}();u.ImplicitResultE=e;u.ImplicitResult=e;u.ReturnResult=F;u.voidOperation={type:"VOID"};u.breakResult={type:"BREAK"};u.continueResult=
{type:"CONTINUE"};u.multiReplace=B;u.isFunctionParameter=w;u.isModule=D;u.isSimpleType=t;u.defaultUndefined=function(M,ca){return void 0===M?ca:M};u.getType=function(M){return null==M?"":U(M)||qa(M)?"Array":V(M)?"Date":A(M)?"String":G(M)?"Boolean":J(M)?"Number":"esri.arcade.Attachment"===(null===M||void 0===M?void 0:M.declaredClass)?"Attachment":"esri.arcade.Portal"===(null===M||void 0===M?void 0:M.declaredClass)?"Portal":"esri.arcade.Dictionary"===(null===M||void 0===M?void 0:M.declaredClass)?"Dictionary":
M instanceof x.ArcadeModule?"Module":ja(M)?"Feature":M instanceof n?"Point":M instanceof h?"Polygon":M instanceof c?"Polyline":M instanceof k?"Multipoint":M instanceof d?"Extent":w(M)?"Function":Z(M)?"FeatureSet":fa(M)?"FeatureSetCollection":M===u.voidOperation?"":"number"===typeof M&&isNaN(M)?"Number":"Unrecognised Type"};u.isString=A;u.isBoolean=G;u.isNumber=J;u.isInteger=function(M){return"number"===typeof M&&isFinite(M)&&Math.floor(M)===M};u.isArray=U;u.isFeature=ja;u.isFeatureSet=Z;u.isFeatureSetCollection=
fa;u.isImmutableArray=qa;u.isDate=V;u.isObject=ea;u.isJsDate=ba;u.pcCheck=function(M,ca,sa,xa,za){if(M.length<ca||M.length>sa)throw new E.ArcadeExecutionError(xa,E.ExecutionErrorCodes.WrongNumberOfParameters,za);};u.absRound=function(M){return 0>M?-Math.round(-M):Math.round(M)};u.generateUUID=function(){var M=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(ca){var sa=(M+16*Math.random())%16|0;M=Math.floor(M/16);return("x"===ca?sa:sa&3|8).toString(16)})};u.formatNumber=
ma;u.formatDate=va;u.standardiseDateFormat=da;u.greaterThanLessThan=function(M,ca,sa){if(null===M){if(null===ca||ca===u.voidOperation)return ka(null,null,sa);if(J(ca))return ka(0,ca,sa);if(A(ca)||G(ca))return ka(0,P(ca),sa);if(V(ca))return ka(0,ca.toNumber(),sa)}if(M===u.voidOperation){if(null===ca||ca===u.voidOperation)return ka(null,null,sa);if(J(ca))return ka(0,ca,sa);if(A(ca)||G(ca))return ka(0,P(ca),sa);if(V(ca))return ka(0,ca.toNumber(),sa)}else if(J(M)){if(J(ca))return ka(M,ca,sa);if(G(ca))return ka(M,
P(ca),sa);if(null===ca||ca===u.voidOperation)return ka(M,0,sa);if(A(ca))return ka(M,P(ca),sa);if(V(ca))return ka(M,ca.toNumber(),sa)}else if(A(M)){if(A(ca))return ka(S(M),S(ca),sa);if(V(ca))return ka(P(M),ca.toNumber(),sa);if(J(ca))return ka(P(M),ca,sa);if(null===ca||ca===u.voidOperation)return ka(P(M),0,sa);if(G(ca))return ka(P(M),P(ca),sa)}else if(V(M)){if(V(ca))return ka(M.toNumber(),ca.toNumber(),sa);if(null===ca||ca===u.voidOperation)return ka(M.toNumber(),0,sa);if(J(ca))return ka(M.toNumber(),
ca,sa);if(G(ca)||A(ca))return ka(M.toNumber(),P(ca),sa)}else if(G(M)){if(G(ca))return ka(M,ca,sa);if(J(ca))return ka(P(M),P(ca),sa);if(V(ca))return ka(P(M),ca.toNumber(),sa);if(null===ca||ca===u.voidOperation)return ka(P(M),0,sa);if(A(ca))return ka(P(M),P(ca),sa)}return!I(M,ca)||"\x3c\x3d"!==sa&&"\x3e\x3d"!==sa?!1:!0};u.equalityTest=I;u.toString=S;u.toNumberArray=function(M){var ca=[];if(!U(M))return null;if(M instanceof m){for(var sa=0;sa<M.length();sa++)ca[sa]=P(M.get(sa));return ca}for(sa=0;sa<
M.length;sa++)ca[sa]=P(M[sa]);return ca};u.toStringExplicit=X;u.toNumber=P;u.toDate=function(M,ca){if(V(M))return M;if(A(M)){a:{var sa=/ (\d\d)/,xa=a.createDateTimeZone(ca);xa=r.DateTime.fromISO(M,{zone:xa});if(xa.isValid)ca=xa;else{if(sa.test(M)&&(M=M.replace(sa,"T$1"),xa=r.DateTime.fromISO(M,{zone:ca}),xa.isValid)){ca=xa;break a}ca=null}}if(ca)return a.ArcadeDate.dateTimeToArcadeDate(ca)}return null};u.toBoolean=function(M){return G(M)?M:A(M)?(M=M.toLowerCase(),"true"===M?!0:!1):J(M)?0===M||isNaN(M)?
!1:!0:!1};u.fixSpatialReference=function(M,ca){if(null===M||void 0===M)return null;if(null===M.spatialReference||void 0===M.spatialReference)M.spatialReference=ca;return M};u.fixNullGeometry=function(M){if(null===M)return null;if(M instanceof n)return"NaN"===M.x||null===M.x||isNaN(M.x)?null:M;if(M instanceof h){if(0===M.rings.length)return null;for(var ca=0,sa=M.rings;ca<sa.length;ca++){var xa=sa[ca];if(0<xa.length)return M}return null}if(M instanceof c){if(0===M.paths.length)return null;ca=0;for(sa=
M.paths;ca<sa.length;ca++)if(xa=sa[ca],0<xa.length)return M;return null}return M instanceof k?0===M.points.length?null:M:M instanceof d?"NaN"===M.xmin||null===M.xmin||isNaN(M.xmin)?null:M:null};u.getDomainValue=aa;u.getDomainCode=ha;u.getDomain=la;u.stableStringify=Ba;u.autoCastFeatureToGeometry=function(M){if(null===M)return null;for(var ca=[],sa=0;sa<M.length;sa++){var xa=M[sa];xa&&xa.arcadeDeclaredClass&&"esri.arcade.Feature"===xa.arcadeDeclaredClass?ca.push(xa.geometry()):ca.push(xa)}return ca};
u.autoCastArrayOfPointsToPolygon=function(M,ca){if(U(M)||qa(M)){var sa=!1,xa=!1,za=[];if(U(M)){for(var Ca=0;Ca<M.length;Ca++){var Ha=M[Ca];N(za,Ha)}0<za.length&&(ca=M[0].spatialReference,sa=M[0].hasZ,xa=M[0].hasM)}else if(M instanceof g)za=M._elements,0<za.length&&(sa=M._hasZ,xa=M._hasM,ca=M.get(0).spatialReference);else if(qa(M)){Ca=0;for(var Da=M.toArray();Ca<Da.length;Ca++)Ha=Da[Ca],N(za,Ha);0<za.length&&(ca=M.get(0).spatialReference,sa=!0===M.get(0).hasZ,xa=!0===M.get(0).hasM)}else throw new E.ArcadeExecutionError(null,
E.ExecutionErrorCodes.InvalidParameter,null);if(0===za.length)return null;(new h({rings:[],spatialReference:{wkid:4326}})).isClockwise(za)||(za=za.slice(0).reverse());return new h({rings:[za],spatialReference:ca,hasZ:sa,hasM:xa})}return M};u.autoCastArrayOfPointsToPolyline=function(M,ca){if(U(M)||qa(M)){var sa=!1,xa=!1,za=[];if(U(M)){for(var Ca=0;Ca<M.length;Ca++){var Ha=M[Ca];N(za,Ha)}0<za.length&&(ca=M[0].spatialReference,sa=!0===M[0].hasZ,xa=!0===M[0].hasM)}else if(M instanceof g)za=M._elements,
0<za.length&&(sa=M._hasZ,xa=M._hasM,ca=M.get(0).spatialReference);else if(qa(M)){Ca=0;for(var Da=M.toArray();Ca<Da.length;Ca++)Ha=Da[Ca],N(za,Ha);0<za.length&&(ca=M.get(0).spatialReference,sa=!0===M.get(0).hasZ,xa=!0===M.get(0).hasM)}return 0===za.length?null:new c({paths:[za],spatialReference:ca,hasZ:sa,hasM:xa})}return M};u.autoCastArrayOfPointsToMultiPoint=function(M,ca){if(U(M)||qa(M)){var sa=!1,xa=!1,za=[];if(U(M)){for(var Ca=0;Ca<M.length;Ca++){var Ha=M[Ca];N(za,Ha)}0<za.length&&(ca=M[0].spatialReference,
sa=!0===M[0].hasZ,xa=!0===M[0].hasM)}else if(M instanceof g)za=M._elements,0<za.length&&(sa=M._hasZ,xa=M._hasM,ca=M.get(0).spatialReference);else if(qa(M)){Ca=0;for(var Da=M.toArray();Ca<Da.length;Ca++)Ha=Da[Ca],N(za,Ha);0<za.length&&(ca=M.get(0).spatialReference,sa=!0===M.get(0).hasZ,xa=!0===M.get(0).hasM)}return 0===za.length?null:new k({points:za,spatialReference:ca,hasZ:sa,hasM:xa})}return M};u.toStringArray=function(M,ca){void 0===ca&&(ca=!1);var sa=[];if(null===M)return sa;if(!0===U(M)){for(var xa=
0;xa<M.length;xa++){var za=S(M[xa]);""===za&&!0!==ca||sa.push(za)}return sa}if(M instanceof m){for(xa=0;xa<M.length();xa++)za=S(M.get(xa)),""===za&&!0!==ca||sa.push(za);return sa}return t(M)?(za=S(M),""===za&&!0!==ca||sa.push(za),sa):[]};var ra=0;u.tick=function(M){ra++;return 0===ra%100?(ra=0,new Promise(function(ca){setTimeout(function(){ca(M)},0)})):M};u.binaryOperator=function(M,ca,sa){switch(sa){case "\x26":return M&ca;case "|":return M|ca;case "^":return M^ca;case "\x3c\x3c":return M<<ca;case "\x3e\x3e":return M>>
ca;case "\x3e\x3e\x3e":return M>>>ca}};u.castAsJson=Q;u.castAsJsonAsync=pa;u.featureFullDomain=function(M,ca,sa){var xa=M.fullSchema();return null!==xa&&xa.fields?la(ca,xa,M,sa):null};u.featureSubtypes=function(M){M=M.fullSchema();return null!==M&&M.fields?M.typeIdField?{subtypeField:M.typeIdField,subtypes:M.types?M.types.map(function(ca){return{name:ca.name,code:ca.id}}):[]}:null:null};u.featureDomainValueLookup=function(M,ca,sa,xa){var za=M.fullSchema();if(null===za||!za.fields)return null;xa=la(ca,
za,M,xa);if(void 0===sa)try{sa=M.field(ca)}catch(Ca){return null}return aa(xa,sa)};u.featureDomainCodeLookup=function(M,ca,sa,xa){var za=M.fullSchema();if(null===za||!za.fields)return null;if(void 0===sa){try{sa=M.field(ca)}catch(Ca){return null}return sa}M=la(ca,za,M,xa);return ha(M,sa)};u.defaultTimeZone=function(M){var ca,sa;return(null===(ca=null===M||void 0===M?void 0:M.timeReference)||void 0===ca?0:ca.timeZone)?null===(sa=null===M||void 0===M?void 0:M.timeReference)||void 0===sa?void 0:sa.timeZone:
"system"};u.featureSchema=function(M){M=M.fullSchema();if(null===M||!M.fields)return null;for(var ca=[],sa=0,xa=M.fields;sa<xa.length;sa++)ca.push(C.esriFieldToJson(xa[sa]));return{objectIdField:M.objectIdField,globalIdField:M.globalIdField,geometryType:void 0===C.layerGeometryEsriRestConstants[M.geometryType]?"":C.layerGeometryEsriRestConstants[M.geometryType],fields:ca}}})},"esri/arcade/FunctionWrapper":function(){define("require exports ./polyfill/tsSupport/assign ./polyfill/tsSupport/spreadarray ./polyfill/tsSupport/extends ./polyfill/promiseUtils".split(" "),
function(F,u,b,p,e,y){function q(g,a,d){if(g instanceof m&&!(g instanceof f)){var l=new f;l.fn=g;l.parameterEvaluator=d;l.context=a;return l}return g}Object.defineProperty(u,"__esModule",{value:!0});u.ScopeMarshalledFunction=u.NativeFunction=u.wrapModuleScopedResponse=u.ArcadeFunction=void 0;var m=function(){return function(){}}();u.ArcadeFunction=m;u.wrapModuleScopedResponse=q;F=function(g){function a(d){var l=g.call(this)||this;l.fn=d;return l}e(a,g);a.prototype.createFunction=function(d){var l=
this;return function(){for(var k=[],n=0;n<arguments.length;n++)k[n]=arguments[n];return l.fn(d,{preparsed:!0,arguments:k})}};a.prototype.call=function(d,l){return this.fn(d,l)};a.prototype.marshalledCall=function(d,l,k,n){var h=this;return n(d,l,function(c,r,v){v=v.map(function(z){return z instanceof m&&!(z instanceof f)?q(z,d,n):z});c=h.call(k,{args:v});return y.isPromiseLike(c)?c.then(function(z){return q(z,k,n)}):c})};return a}(m);u.NativeFunction=F;var f=function(g){function a(){var d=null!==
g&&g.apply(this,arguments)||this;d.fn=null;d.context=null;return d}e(a,g);a.prototype.createFunction=function(d){return this.fn.createFunction(this.context)};a.prototype.call=function(d,l){return this.fn.marshalledCall(d,l,this.context,this.parameterEvaluator)};a.prototype.marshalledCall=function(d,l,k){return this.fn.marshalledCall(d,l,this.context,this.parameterEvaluator)};return a}(m);u.ScopeMarshalledFunction=f})},"esri/arcade/polyfill/promiseUtils":function(){define(["require","exports","dojo/Deferred"],
function(F,u,b){function p(y){void 0===y&&(y=void 0);var q=new b;q.resolve(y);return q.promise}function e(y){return y&&"function"===typeof y.then?y:p(y)}Object.defineProperty(u,"__esModule",{value:!0});u.create=u.when=u.resolve=u.isPromiseLike=void 0;u.isPromiseLike=function(y){return y&&"function"===typeof y.then};u.resolve=p;u.when=e;u.create=function(y,q){var m=new b(q);y(function(f){return e(f).then(m.resolve)},m.reject);return m.promise}})},"esri/arcade/ImmutablePathArray":function(){define(["require",
"exports","./polyfill/tsSupport/extends","./ImmutableArray","./ImmutablePointArray"],function(F,u,b,p,e){return function(y){function q(m,f,g,a,d){m=y.call(this,m)||this;m._lazyPath=[];m._hasZ=!1;m._hasM=!1;m._hasZ=g;m._hasM=a;m._spRef=f;m._cacheId=d;return m}b(q,y);q.prototype.get=function(m){if(void 0===this._lazyPath[m]){var f=this._elements[m];if(void 0===f)return;this._lazyPath[m]=new e(f,this._spRef,this._hasZ,this._hasM,this._cacheId,m)}return this._lazyPath[m]};q.prototype.equalityTest=function(m){return m===
this?!0:null===m||!1===m instanceof q?!1:m.getUniqueHash()===this.getUniqueHash()};q.prototype.getUniqueHash=function(){return this._cacheId.toString()};return q}(p)})},"esri/arcade/ImmutablePointArray":function(){define(["require","exports","./polyfill/tsSupport/extends","./ImmutableArray","../geometry/Point"],function(F,u,b,p,e){return function(y){function q(m,f,g,a,d,l){m=y.call(this,m)||this;m._lazyPt=[];m._hasZ=!1;m._hasM=!1;m._spRef=f;m._hasZ=g;m._hasM=a;m._cacheId=d;m._partId=l;return m}b(q,
y);q.prototype.get=function(m){if(void 0===this._lazyPt[m]){var f=this._elements[m];if(void 0===f)return;var g=this._hasZ,a=this._hasM,d=null;d=g&&!a?new e(f[0],f[1],f[2],void 0,this._spRef):a&&!g?new e(f[0],f[1],void 0,f[2],this._spRef):g&&a?new e(f[0],f[1],f[2],f[3],this._spRef):new e(f[0],f[1],this._spRef);d.setCacheValue("_arcadeCacheId",this._cacheId.toString()+"-"+this._partId.toString()+"-"+m.toString());this._lazyPt[m]=d}return this._lazyPt[m]};q.prototype.equalityTest=function(m){return m===
this?!0:null===m||!1===m instanceof q?!1:m.getUniqueHash()===this.getUniqueHash()};q.prototype.getUniqueHash=function(){return this._cacheId.toString()+"-"+this._partId.toString()};return q}(p)})},"esri/geometry/Multipoint":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ./Point ./Extent ../srUtils".split(" "),function(F,u,b,p,e,y,q,m,f,g){function a(){}function d(){}y={type:"multipoint",points:null};F=F(q,{declaredClass:"esri.geometry.Multipoint",
type:"multipoint",points:null,constructor:function(l){this.points=[];l&&(l.points?e.mixin(this,l):this.spatialReference=l,this.spatialReference&&(this.spatialReference=g.createSpatialReference(this.spatialReference)));this.verifySR()},addPoint:function(l){this.clearCache();u.isArray(l)?this.points.push(l):this.points.push([l.x,l.y]);return this},removePoint:function(l){if(this._validateInputs(l))return this.clearCache(),new m(this.points.splice(l,1)[0],this.spatialReference)},getExtent:function(){var l=
this.getCacheValue("_extent");if(l)return new f(l);l=this.points;var k=l.length;if(k){var n=l[0],h,c,r=h=n[0],v=c=n[1],z=Math.min,C=Math.max,x=this.spatialReference,E;for(E=0;E<k;E++){n=l[E];var B=n[0];n=n[1];r=z(r,B);v=z(v,n);h=C(h,B);c=C(c,n)}l={xmin:r,ymin:v,xmax:h,ymax:c,spatialReference:x?x.toJson():null};this.setCacheValue("_extent",l);return new f(l)}},_validateInputs:function(l){return null===l||0>l||l>=this.points.length?!1:!0},getPoint:function(l){if(this._validateInputs(l))return l=this.points[l],
new m(l[0],l[1],this.spatialReference)},setPoint:function(l,k){if(this._validateInputs(l))return this.clearCache(),this.points[l]=[k.x,k.y],this},toJson:function(){var l={points:e.clone2DArray(this.points)},k=this.spatialReference;k&&(l.spatialReference=k.toJson());return l}});a.prototype=F.prototype;d.prototype=new a;Object.defineProperty(d.prototype,"points",{get:function(){this._unquantizeFn&&(this._pointsVal=this._unquantizeFn({points:e.clone2DArray(this._pointsVal)}).points,this._unquantizeFn=
null);return this._pointsVal},set:function(l){this._pointsVal=l}});d.prototype.setupLazyUnquantization=function(l,k){this._unquantizeFn=l;this._pointsVal=k.points};F.simpleConstructor=a;F.accessorConstructor=d;F.defaultProps=y;b("extend-esri")&&(u.setObject("geometry.Multipoint",F,p),p.geometry.defaultMultipoint=y);return F})},"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(F,u,b,p,e,y,q,m,f,g,a,d){function l(){}function k(){}q={type:"polygon",rings:null};var n=F(m,{declaredClass:"esri.geometry.Polygon",type:"polygon",rings:null,constructor:function(h){this.rings=[];this._ring=0;h&&(b.isArray(h)?this.rings=b.isArray(h[0][0])?h:[h]:h.rings?y.mixin(this,h):this.spatialReference=h,this.spatialReference&&(this.spatialReference=d.createSpatialReference(this.spatialReference)));this.verifySR()},addRing:function(h){this.clearCache();this._ring=this.rings.length;this.rings[this._ring]=
[];b.isArray(h[0])?u.forEach(h,this._addPointArr,this):u.forEach(h,this._addPoint,this);return this},_addPointArr:function(h){this.rings[this._ring].push(h)},_addPoint:function(h){this.rings[this._ring].push([h.x,h.y])},_insertPoints:function(h,c){this.clearCache();this._ring=c;this.rings[this._ring]||(this.rings[this._ring]=[]);u.forEach(h,this._addPoint,this)},_validateInputs:function(h,c){return null!==h&&void 0!==h&&(0>h||h>=this.rings.length)||null!==c&&void 0!==h&&(0>c||c>=this.rings[h].length)?
!1:!0},getPoint:function(h,c){if(this._validateInputs(h,c))return new f(this.rings[h][c],this.spatialReference)},setPoint:function(h,c,r){if(this._validateInputs(h,c))return this.clearCache(),this.rings[h][c]=[r.x,r.y],this},insertPoint:function(h,c,r){if(this._validateInputs(h)&&null!=c&&0<=c&&c<=this.rings[h].length)return this.clearCache(),this.rings[h].splice(c,0,[r.x,r.y]),this},removeRing:function(h){if(this._validateInputs(h,null)){this.clearCache();h=this.rings.splice(h,1)[0];var c,r=h.length,
v=this.spatialReference;for(c=0;c<r;c++)h[c]=new f(h[c],v);return h}},removePoint:function(h,c){if(this._validateInputs(h,c))return this.clearCache(),new f(this.rings[h].splice(c,1)[0],this.spatialReference)},getExtent:function(){var h=this.getCacheValue("_extent");var c=this.getCacheValue("_partwise");if(h)return h=new g(h),h._partwise=c,h;h=this.rings;var r=h.length;if(r&&h[0].length){var v,z,C,x,E=v=h[0][0][0],B=z=h[0][0][1],w=Math.min,D=Math.max,t=this.spatialReference;c=[];var A,G;for(C=0;C<
r;C++){var J=h[C];var U=A=J[0]&&J[0][0];var ja=G=J[0]&&J[0][1];var Z=J.length;for(x=0;x<Z;x++){var fa=J[x];var qa=fa[0];fa=fa[1];E=w(E,qa);B=w(B,fa);v=D(v,qa);z=D(z,fa);U=w(U,qa);ja=w(ja,fa);A=D(A,qa);G=D(G,fa)}c.push(new g({xmin:U,ymin:ja,xmax:A,ymax:G,spatialReference:t?t.toJson():null}))}h={xmin:E,ymin:B,xmax:v,ymax:z,spatialReference:t?t.toJson():null};c=1<c.length?c:null;this.setCacheValue("_extent",h);this.setCacheValue("_partwise",c);h=new g(h);h._partwise=c;return h}},contains:function(h){var c=
this.rings,r=!1,v,z,C,x=c.length;var E=this.spatialReference;var B=h.spatialReference;var w=h.x;h=h.y;E&&B&&!E.equals(B)&&E._canProject(B)&&(h=E.isWebMercator()?f.lngLatToXY(w,h):f.xyToLngLat(w,h,!0),w=h[0],h=h[1]);for(C=0;C<x;C++){E=c[C];var D=E.length;for(z=v=0;z<D;z++){v++;v===D&&(v=0);B=E[z];var t=E[v];(B[1]<h&&t[1]>=h||t[1]<h&&B[1]>=h)&&B[0]+(h-B[1])/(t[1]-B[1])*(t[0]-B[0])<w&&(r=!r)}}return r},getCentroid:function(){var h=this.getCacheValue("_centroid");if(void 0!==h)return h;h=this.rings;var c,
r,v=[],z,C,x=Infinity,E=-Infinity,B=Infinity,w=-Infinity;u.forEach(h,function(A){D=c=r=0;u.forEach(A,function(G,J){J<A.length-1&&(z=A[J+1],C=G[0]*z[1]-z[0]*G[1],D+=(G[0]+z[0])*C,c+=(G[1]+z[1])*C,r+=C,G[0]<x&&(x=G[0]),G[0]>E&&(E=G[0]),G[1]<B&&(B=G[1]),G[1]>w&&(w=G[1]))});0<r&&(r*=-1);r&&v.push([D,c,r/2])});v.sort(function(A,G){return A[2]-G[2]});var D=c=void 0;if(v[0]){var t=6*v[0][2];D=v[0][0]/t;c=v[0][1]/t;if(D<x||D>E||c<B||c>w)D=c=void 0}if(void 0===D||void 0===c)if(h=h[0]&&h[0].length?this._getLineCentroid(h[0]):
null)D=h.x,c=h.y;h=isNaN(D)||isNaN(c)?null:new f(D,c,this.spatialReference);this.setCacheValue("_centroid",h);return h},_getLineCentroid:function(h){var c=0,r=0,v=0,z={x:0,y:0},C={x:0,y:0},x,E=h.length,B;for(x=0;x<E-1;x++){var w=h[x];var D=h[x+1];if(w&&D){z.x=w[0];z.y=w[1];C.x=D[0];C.y=D[1];var t=a.getLength(z,C);0<t&&(c+=t,w=a.getMidpoint(w,D),r+=t*w[0],v+=t*w[1])}}0<c?B={x:r/c,y:v/c}:h[0]&&(B={x:h[0][0],y:h[0][1]});return B},isClockwise:function(h){var c=0,r,v=h.length,z=b.isArray(h[0])?function(C,
x){return C[0]*x[1]-x[0]*C[1]}:function(C,x){return C.x*x.y-x.x*C.y};for(r=0;r<v;r++)c+=z(h[r],h[(r+1)%v]);return 0>=c/2},isSelfIntersecting:function(h){h=h||this;var c,r,v,z,C,x=h.rings.length;for(v=0;v<x;v++){for(c=0;c<h.rings[v].length-1;c++){var E=[[h.rings[v][c][0],h.rings[v][c][1]],[h.rings[v][c+1][0],h.rings[v][c+1][1]]];for(r=v+1;r<x;r++)for(z=0;z<h.rings[r].length-1;z++){var B=[[h.rings[r][z][0],h.rings[r][z][1]],[h.rings[r][z+1][0],h.rings[r][z+1][1]]];if((C=a._getLineIntersection2(E,B))&&
!(C[0]===E[0][0]&&C[1]===E[0][1]||C[0]===B[0][0]&&C[1]===B[0][1]||C[0]===E[1][0]&&C[1]===E[1][1]||C[0]===B[1][0]&&C[1]===B[1][1]))return!0}}z=h.rings[v].length;if(!(4>=z))for(c=0;c<z-3;c++){var w=z-1;0===c&&(w=z-2);E=[[h.rings[v][c][0],h.rings[v][c][1]],[h.rings[v][c+1][0],h.rings[v][c+1][1]]];for(r=c+2;r<w;r++)if(B=[[h.rings[v][r][0],h.rings[v][r][1]],[h.rings[v][r+1][0],h.rings[v][r+1][1]]],(C=a._getLineIntersection2(E,B))&&!(C[0]===E[0][0]&&C[1]===E[0][1]||C[0]===B[0][0]&&C[1]===B[0][1]||C[0]===
E[1][0]&&C[1]===E[1][1]||C[0]===B[1][0]&&C[1]===B[1][1]))return!0}}return!1},toJson:function(){var h={rings:y.clone3DArray(this.rings)},c=this.spatialReference;c&&(h.spatialReference=c.toJson());return h}});l.prototype=n.prototype;k.prototype=new l;Object.defineProperty(k.prototype,"rings",{get:function(){this._unquantizeFn&&(this._ringsVal=this._unquantizeFn({rings:y.clone3DArray(this._ringsVal)}).rings,this._unquantizeFn=null);return this._ringsVal},set:function(h){this._ringsVal=h}});k.prototype.setupLazyUnquantization=
function(h,c){this._unquantizeFn=h;this._ringsVal=c.rings};n.simpleConstructor=l;n.accessorConstructor=k;n.defaultProps=q;n.createEllipse=function(h){var c=h.center.x,r=h.center.y,v=h.longAxis,z=h.shortAxis,C=h.numberOfPoints,x=h.map,E;h=[];var B=2*Math.PI/C;for(E=0;E<C;E++){var w=Math.cos(E*B);var D=Math.sin(E*B);w=x.toMap({x:v*w+c,y:z*D+r});h.push(w)}h.push(h[0]);c=new n(x.spatialReference);c.addRing(h);return c};n.createCircle=function(h){return n.createEllipse({center:h.center,longAxis:h.r,shortAxis:h.r,
numberOfPoints:h.numberOfPoints,map:h.map})};n.fromExtent=function(h){var c=h.normalize();h=h.spatialReference;return new n({rings:u.map(c,function(r){return[[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin]]}),spatialReference:h?h.toJson():null})};p("extend-esri")&&(b.setObject("geometry.Polygon",n,e),e.geometry.defaultPolygon=q,e.geometry.createEllipse=n.createEllipse,e.geometry.createCircle=n.createCircle,e.geometry.isClockwise=n.prototype.isClockwise,e.geometry.polygonSelfIntersecting=
n.prototype.isSelfIntersecting);return n})},"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(F,u,b,p,e,y,q,m,f,g,a){function d(){}function l(){}q={type:"polyline",paths:null};F=F(m,{declaredClass:"esri.geometry.Polyline",type:"polyline",paths:null,constructor:function(k){this.paths=[];this._path=0;k&&(b.isArray(k)?this.paths=b.isArray(k[0][0])?k:
[k]:k.paths?y.mixin(this,k):this.spatialReference=k,this.spatialReference&&(this.spatialReference=a.createSpatialReference(this.spatialReference)));this.verifySR()},addPath:function(k){this.clearCache();this._path=this.paths.length;this.paths[this._path]=[];b.isArray(k[0])?u.forEach(k,this._addPointArr,this):u.forEach(k,this._addPoint,this);return this},_addPointArr:function(k){this.paths[this._path].push(k)},_addPoint:function(k){this.paths[this._path].push([k.x,k.y])},_insertPoints:function(k,n){this.clearCache();
this._path=n;this.paths[this._path]||(this.paths[this._path]=[]);u.forEach(k,this._addPoint,this)},_validateInputs:function(k,n){return null!==k&&void 0!==k&&(0>k||k>=this.paths.length)||null!==n&&void 0!==k&&(0>n||n>=this.paths[k].length)?!1:!0},getPoint:function(k,n){if(this._validateInputs(k,n))return new f(this.paths[k][n],this.spatialReference)},setPoint:function(k,n,h){if(this._validateInputs(k,n))return this.clearCache(),this.paths[k][n]=[h.x,h.y],this},insertPoint:function(k,n,h){if(this._validateInputs(k)&&
null!=n&&0<=n&&n<=this.paths[k].length)return this.clearCache(),this.paths[k].splice(n,0,[h.x,h.y]),this},removePath:function(k){if(this._validateInputs(k,null)){this.clearCache();k=this.paths.splice(k,1)[0];var n,h=k.length,c=this.spatialReference;for(n=0;n<h;n++)k[n]=new f(k[n],c);return k}},removePoint:function(k,n){if(this._validateInputs(k,n))return this.clearCache(),new f(this.paths[k].splice(n,1)[0],this.spatialReference)},getExtent:function(){var k=this.getCacheValue("_extent");var n=this.getCacheValue("_partwise");
if(k)return k=new g(k),k._partwise=n,k;k=this.paths;var h=k.length;if(h&&k[0].length){var c,r,v,z,C=c=k[0][0][0],x=r=k[0][0][1],E=Math.min,B=Math.max,w=this.spatialReference;n=[];var D,t;for(v=0;v<h;v++){var A=k[v];var G=D=A[0]&&A[0][0];var J=t=A[0]&&A[0][1];var U=A.length;for(z=0;z<U;z++){var ja=A[z];var Z=ja[0];ja=ja[1];C=E(C,Z);x=E(x,ja);c=B(c,Z);r=B(r,ja);G=E(G,Z);J=E(J,ja);D=B(D,Z);t=B(t,ja)}n.push(new g({xmin:G,ymin:J,xmax:D,ymax:t,spatialReference:w?w.toJson():null}))}k={xmin:C,ymin:x,xmax:c,
ymax:r,spatialReference:w?w.toJson():null};n=1<n.length?n:null;this.setCacheValue("_extent",k);this.setCacheValue("_partwise",n);k=new g(k);k._partwise=n;return k}},toJson:function(){var k={paths:y.clone3DArray(this.paths)},n=this.spatialReference;n&&(k.spatialReference=n.toJson());return k}});d.prototype=F.prototype;l.prototype=new d;Object.defineProperty(l.prototype,"paths",{get:function(){this._unquantizeFn&&(this._pathsVal=this._unquantizeFn({paths:y.clone3DArray(this._pathsVal)}).paths,this._unquantizeFn=
null);return this._pathsVal},set:function(k){this._pathsVal=k}});l.prototype.setupLazyUnquantization=function(k,n){this._unquantizeFn=k;this._pathsVal=n.paths};F.simpleConstructor=d;F.accessorConstructor=l;F.defaultProps=q;p("extend-esri")&&(b.setObject("geometry.Polyline",F,e),e.geometry.defaultPolyline=q);return F})},"esri/arcade/featureset/support/shared":function(){define("require exports ../../polyfill/tsSupport/assign ../../polyfill/tsSupport/spreadarray ../../ArcadeDate ../../../geometry/Extent ../../../layers/Field".split(" "),
function(F,u,b,p,e,y,q){function m(a){var d=null;a.domain&&(d="range"===a.domain.type?{type:"range",range:[a.domain.minValue,a.domain.maxValue]}:{type:"codedValue",codedValues:a.domain.toJson().codedValues});return b(b({name:a.name,type:a.type,alias:a.alias},void 0!==a.length?{length:a.length}:{}),{editable:!0===a.editable,nullable:!0===a.nullable,domain:d})}function f(a){return a instanceof Date}function g(a){return a instanceof e.ArcadeDate}Object.defineProperty(u,"__esModule",{value:!0});u.stableStringify=
u.extractServiceUrl=u.toEsriGeometryType=u.layerFieldEsriConstants=u.layerGeometryEsriRestConstants=u.layerGeometryEsriConstants=u.callback=u.errback=u.defaultMaxRecords=u.sameGeomType=u.convertLinearUnitsToCode=u.shapeExtent=u.convertSquareUnitsToCode=u.cloneAttributes=u.equalityTest=u.isArcadeDate=u.isDate=u.isArray=u.isNumber=u.isBoolean=u.isString=u.IdState=u.esriFieldToJson=u.cloneField=u.FeatureServiceDatabaseType=void 0;(function(a){a[a.Standardised=0]="Standardised";a[a.StandardisedNoInterval=
1]="StandardisedNoInterval";a[a.SqlServer=2]="SqlServer";a[a.Oracle=3]="Oracle";a[a.Postgres=4]="Postgres";a[a.PGDB=5]="PGDB";a[a.FILEGDB=6]="FILEGDB";a[a.NotEvaluated=7]="NotEvaluated"})(u.FeatureServiceDatabaseType||(u.FeatureServiceDatabaseType={}));u.cloneField=function(a){return new q(m(a))};u.esriFieldToJson=m;(function(a){a[a.InFeatureSet=0]="InFeatureSet";a[a.NotInFeatureSet=1]="NotInFeatureSet";a[a.Unknown=2]="Unknown"})(u.IdState||(u.IdState={}));u.isString=function(a){return"string"===
typeof a||a instanceof String};u.isBoolean=function(a){return"boolean"===typeof a};u.isNumber=function(a){return"number"===typeof a};u.isArray=function(a){return a instanceof Array};u.isDate=f;u.isArcadeDate=g;u.equalityTest=function(a,d){return a===d?!0:(f(a)||g(a))&&(f(d)||g(d))?a.getTime()===d.getTime():!1};u.cloneAttributes=function(a){var d={},l;for(l in a)d[l]=a[l];return d};u.convertSquareUnitsToCode=function(a){if(null==a)return null;if("number"===typeof a)return a;switch(a.toLowerCase()){case "meters":case "meter":return 109404;
case "miles":case "mile":return 109439;case "kilometers":case "kilometer":case "km":return 109414}return null};u.shapeExtent=function(a){if(null==a)return null;switch(a.type){case "polygon":case "multipoint":case "polyline":return a.getExtent();case "point":return new y({xmin:a.x,ymin:a.y,xmax:a.x,ymax:a.y,spatialReference:a.spatialReference});case "extent":return a}return null};u.convertLinearUnitsToCode=function(a){if(null==a)return null;if("number"===typeof a||"number"===typeof a)return a;switch(a.toLowerCase()){case "meters":case "meter":return 9001;
case "miles":case "mile":return 9093;case "kilometers":case "kilometer":case "km":return 9036}return null};u.sameGeomType=function(a,d){return a===d||"point"===a&&"esriGeometryPoint"===d||"polyline"===a&&"esriGeometryPolyline"===d||"polygon"===a&&"esriGeometryPolygon"===d||"extent"===a&&"esriGeometryEnvelope"===d||"multipoint"===a&&"esriGeometryMultipoint"===d||"point"===d&&"esriGeometryPoint"===a||"polyline"===d&&"esriGeometryPolyline"===a||"polygon"===d&&"esriGeometryPolygon"===a||"extent"===d&&
"esriGeometryEnvelope"===a||"multipoint"===d&&"esriGeometryMultipoint"===a?!0:!1};u.defaultMaxRecords=1E3;u.errback=function(a){return function(d){a.reject(d)}};u.callback=function(a,d){return function(){try{a.apply(null,arguments)}catch(l){d.reject(l)}}};u.layerGeometryEsriConstants={point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",
esriGeometryEnvelope:"extent",envelope:"extent"};u.layerGeometryEsriRestConstants={point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"};u.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"};u.toEsriGeometryType=
function(a){switch(a){case "point":return"esriGeometryPoint";case "polygon":return"esriGeometryPolygon";case "multipoint":return"esriGeometryMultipoint";case "polyline":return"esriGeometryPolyline";default:return"esriGeometryPoint"}};u.extractServiceUrl=function(a){if(void 0===a)return"";a=a.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer");a=a.replace(/\/mapserver\/[0-9]*/i,"/MapServer");return a=a.split("?")[0]};u.stableStringify=function(a,d){d||(d={});"function"===typeof d&&(d={cmp:d});var l=
"boolean"===typeof d.cycles?d.cycles:!1,k=d.cmp&&function(h){return function(c){return function(r,v){return h({key:r,value:c[r]},{key:v,value:c[v]})}}}(d.cmp),n=[];return function r(c){c&&c.toJson&&"function"===typeof c.toJson&&(c=c.toJson());if(void 0!==c){if("number"===typeof c)return isFinite(c)?""+c:"null";if("object"!==typeof c)return JSON.stringify(c);var v;if(Array.isArray(c)){var z="[";for(v=0;v<c.length;v++)v&&(z+=","),z+=r(c[v])||"null";return z+"]"}if(null===c)return"null";if(n.includes(c)){if(l)return JSON.stringify("__cycle__");
throw new TypeError("Converting circular structure to JSON");}var C=n.push(c)-1,x=Object.keys(c).sort(k&&k(c));z="";for(v=0;v<x.length;v++){var E=x[v],B=r(c[E]);B&&(z&&(z+=","),z+=JSON.stringify(E)+":"+B)}n.splice(C,1);return"{"+z+"}"}}(a)}})},"esri/layers/Field":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./RangeDomain ./CodedValueDomain".split(" "),function(F,u,b,p,e,y,q){F=F(null,{declaredClass:"esri.layers.Field",constructor:function(m){if(m&&u.isObject(m)&&
(this.name=m.name,this.type=m.type,this.alias=m.alias,this.length=m.length,this.editable=m.editable,this.nullable=m.nullable,this.defaultValue=m.defaultValue,this.description=m.description?JSON.parse(m.description):null,this.isViewOverride=!!m.isViewOverride,(m=m.domain)&&u.isObject(m)))switch(m.type){case "range":this.domain=new y(m);break;case "codedValue":this.domain=new q(m)}},toJson:function(){return e.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")&&u.setObject("layers.Field",F,p);return F})},"esri/layers/RangeDomain":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./Domain".split(" "),function(F,u,b,p,e,y){F=F([y],{declaredClass:"esri.layers.RangeDomain",
constructor:function(q){q&&u.isObject(q)&&(this.minValue=q.range[0],this.maxValue=q.range[1])},toJson:function(){var q=this.inherited(arguments);q.range=[this.minValue,this.maxValue];return e.fixJson(q)}});b("extend-esri")&&u.setObject("layers.RangeDomain",F,p);return F})},"esri/layers/Domain":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(F,u,b,p,e){F=F(null,{declaredClass:"esri.layers.Domain",constructor:function(y){y&&u.isObject(y)&&(this.name=
y.name,this.type=y.type)},toJson:function(){return e.fixJson({name:this.name,type:this.type})}});b("extend-esri")&&u.setObject("layers.Domain",F,p);return F})},"esri/layers/CodedValueDomain":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ./Domain".split(" "),function(F,u,b,p,e,y,q){F=F([q],{declaredClass:"esri.layers.CodedValueDomain",constructor:function(m){m&&u.isObject(m)&&(this.codedValues=m.codedValues)},getName:function(m){var f;b.some(this.codedValues,
function(g){g.code==m&&(f=g.name);return!!f});return f},toJson:function(){var m=this.inherited(arguments);m.codedValues=u.clone(this.codedValues);return y.fixJson(m)}});p("extend-esri")&&u.setObject("layers.CodedValueDomain",F,e);return F})},"esri/arcade/ArcadeModule":function(){define(["require","exports"],function(F,u){Object.defineProperty(u,"__esModule",{value:!0});u.ArcadeModule=void 0;F=function(){return function(b){this.source=b}}();u.ArcadeModule=F})},"esri/geometry/ScreenPoint":function(){define(["dojo/_base/declare",
"dojo/_base/lang","dojo/has","../kernel","./Point"],function(F,u,b,p,e){F=F(e,{declaredClass:"esri.geometry.ScreenPoint",verifySR:function(){}});b("extend-esri")&&u.setObject("geometry.ScreenPoint",F,p);return F})},"esri/geometry/Rect":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./Geometry ./Point ./Extent ../srUtils".split(" "),function(F,u,b,p,e,y,q,m,f){function g(d){return new m(parseFloat(d.x),parseFloat(d.y)-parseFloat(d.height),parseFloat(d.x)+parseFloat(d.width),
parseFloat(d.y),d.spatialReference)}var a=F(y,{declaredClass:"esri.geometry.Rect",type:"rect",x:0,y:0,width:100,height:100,constructor:function(d,l,k,n,h){e.isObject(d)&&"extent"===d.type&&(l=d.ymax,k=d.getWidth(),n=d.getHeight(),h=d.spatialReference,d=d.xmin);e.isObject(d)?(e.mixin(this,d),this.spatialReference&&(this.spatialReference=f.createSpatialReference(this.spatialReference))):(this.x=d,this.y=l,this.width=k,this.height=n,this.spatialReference=h);this.verifySR()},getCenter:function(){return new q(this.x+
this.width/2,this.y+this.height/2,this.spatialReference)},offset:function(d,l){return new a(this.x+d,this.y+l,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 g(this)},update:function(d,l,k,n,h){this.x=d;this.y=l;this.width=k;this.height=n;this.spatialReference=h;this.clearCache();return this}});b("extend-esri")&&(u.setObject("geometry.Rect",a,p),
p.geometry._rectToExtent=g,p.geometry._extentToRect=function(d){return new a(d)});return a})},"esri/geometry/scaleUtils":function(){define(["dojo/_base/lang","dojo/has","../kernel","../config","../WKIDUnitConversion"],function(F,u,b,p,e){function y(d,l,k){return d&&l?d.getWidth()/l*(k||m)*39.37*f.screenDPI:0}function q(d,l,k,n,h){return d.expand(n*l/(39.37*((h?k:g.values[g[k]])||m)*f.screenDPI)/d.getWidth())}var m=6370997*Math.PI/180,f=p.defaults,g=e,a={getUnitValueForSR:function(d){return this.getUnitValue(d)||
m},getUnitValue:function(d){if(d)if("object"===typeof d){var l=d.wkid;var k=d.wkt}else"number"===typeof d?l=d:"string"===typeof d&&(k=d);if(l)var n=g.values[g[l]];else k&&-1!==k.search(/^PROJCS/i)&&(d=/UNIT\[([^\]]+)\]\]$/i.exec(k))&&d[1]&&(n=parseFloat(d[1].split(",")[1]));return n},getScale:function(d,l,k){if(1<arguments.length&&null!=l&&!l.declaredClass){var n=d;var h=l;l=null;var c=a.getUnitValue(k)}else n=l||d.extent,h=d.width,c=a.getUnitValue(n&&n.spatialReference);return y(n,h,c)},getExtentForScale:function(d,
l,k){return q(k||d.extent,d.width,a.getUnitValue(d.spatialReference),l,!0)}};u("extend-esri")&&(F.mixin(F.getObject("geometry",!0,b),a),b.geometry._getScale=y,b.geometry._getExtentForScale=q);return a})},"esri/WKIDUnitConversion":function(){define(["dojo/has","./kernel"],function(F,u){var b,p={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,5041:0,5042:0,5048: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,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,20002:0,20042:0,20050:1,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,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739: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,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,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,103897:1};for(b=2E3;2045>=b;b++)p[b]=0;for(b=2056;2065>=b;b++)p[b]=0;for(b=2067;2135>=b;b++)p[b]=0;for(b=2137;2154>=b;b++)p[b]=0;for(b=2161;2170>=b;b++)p[b]=0;for(b=2172;2193>=b;b++)p[b]=0;for(b=2195;2198>=b;b++)p[b]=0;for(b=2200;2203>=b;b++)p[b]=0;for(b=2205;2217>=b;b++)p[b]=0;for(b=2222;2224>=b;b++)p[b]=1;for(b=2225;2250>=b;b++)p[b]=2;for(b=2251;2253>=b;b++)p[b]=1;for(b=
2257;2264>=b;b++)p[b]=2;for(b=2274;2279>=b;b++)p[b]=2;for(b=2280;2282>=b;b++)p[b]=1;for(b=2283;2289>=b;b++)p[b]=2;for(b=2290;2292>=b;b++)p[b]=0;for(b=2308;2313>=b;b++)p[b]=0;for(b=2315;2491>=b;b++)p[b]=0;for(b=2494;2866>=b;b++)p[b]=0;for(b=2867;2869>=b;b++)p[b]=1;for(b=2870;2888>=b;b++)p[b]=2;for(b=2891;2895>=b;b++)p[b]=2;for(b=2896;2898>=b;b++)p[b]=1;for(b=2902;2908>=b;b++)p[b]=2;for(b=2915;2920>=b;b++)p[b]=2;for(b=2921;2923>=b;b++)p[b]=1;for(b=2924;2930>=b;b++)p[b]=2;for(b=2931;2962>=b;b++)p[b]=
0;for(b=2964;2968>=b;b++)p[b]=2;for(b=2969;2973>=b;b++)p[b]=0;for(b=2975;2991>=b;b++)p[b]=0;for(b=2995;3051>=b;b++)p[b]=0;for(b=3054;3079>=b;b++)p[b]=0;for(b=3081;3088>=b;b++)p[b]=0;for(b=3092;3101>=b;b++)p[b]=0;for(b=3106;3138>=b;b++)p[b]=0;for(b=3146;3151>=b;b++)p[b]=0;for(b=3153;3166>=b;b++)p[b]=0;for(b=3168;3172>=b;b++)p[b]=0;for(b=3174;3203>=b;b++)p[b]=0;for(b=3294;3358>=b;b++)p[b]=0;for(b=3367;3403>=b;b++)p[b]=0;for(b=3408;3416>=b;b++)p[b]=0;for(b=3417;3438>=b;b++)p[b]=2;for(b=3441;3446>=b;b++)p[b]=
2;for(b=3447;3450>=b;b++)p[b]=0;for(b=3451;3459>=b;b++)p[b]=2;for(b=3460;3478>=b;b++)p[b]=0;for(b=3554;3559>=b;b++)p[b]=0;for(b=3560;3570>=b;b++)p[b]=2;for(b=3571;3581>=b;b++)p[b]=0;for(b=3594;3597>=b;b++)p[b]=0;for(b=3601;3604>=b;b++)p[b]=0;for(b=3637;3639>=b;b++)p[b]=0;for(b=3665;3667>=b;b++)p[b]=0;for(b=3693;3695>=b;b++)p[b]=0;for(b=3701;3727>=b;b++)p[b]=0;for(b=3728;3739>=b;b++)p[b]=2;for(b=3740;3751>=b;b++)p[b]=0;for(b=3753;3760>=b;b++)p[b]=2;for(b=3761;3773>=b;b++)p[b]=0;for(b=3775;3777>=b;b++)p[b]=
0;for(b=3779;3781>=b;b++)p[b]=0;for(b=3783;3785>=b;b++)p[b]=0;for(b=3788;3791>=b;b++)p[b]=0;for(b=3797;3802>=b;b++)p[b]=0;for(b=3814;3816>=b;b++)p[b]=0;for(b=3825;3829>=b;b++)p[b]=0;for(b=3832;3841>=b;b++)p[b]=0;for(b=3844;3852>=b;b++)p[b]=0;for(b=3873;3885>=b;b++)p[b]=0;for(b=3890;3893>=b;b++)p[b]=0;for(b=3907;3912>=b;b++)p[b]=0;for(b=3942;3950>=b;b++)p[b]=0;for(b=3968;3970>=b;b++)p[b]=0;for(b=3973;3976>=b;b++)p[b]=0;for(b=3986;3989>=b;b++)p[b]=0;for(b=3994;3997>=b;b++)p[b]=0;for(b=4048;4051>=b;b++)p[b]=
0;for(b=4056;4063>=b;b++)p[b]=0;for(b=4093;4096>=b;b++)p[b]=0;for(b=4390;4398>=b;b++)p[b]=0;for(b=4399;4413>=b;b++)p[b]=2;for(b=4418;4433>=b;b++)p[b]=2;for(b=4455;4457>=b;b++)p[b]=2;for(b=4484;4489>=b;b++)p[b]=0;for(b=4491;4554>=b;b++)p[b]=0;for(b=4568;4589>=b;b++)p[b]=0;for(b=4652;4656>=b;b++)p[b]=0;for(b=4766;4800>=b;b++)p[b]=0;for(b=5014;5016>=b;b++)p[b]=0;for(b=5069;5072>=b;b++)p[b]=0;for(b=5105;5130>=b;b++)p[b]=0;for(b=5167;5188>=b;b++)p[b]=0;for(b=5253;5259>=b;b++)p[b]=0;for(b=5269;5275>=b;b++)p[b]=
0;for(b=5292;5311>=b;b++)p[b]=0;for(b=5329;5331>=b;b++)p[b]=0;for(b=5343;5349>=b;b++)p[b]=0;for(b=5355;5357>=b;b++)p[b]=0;for(b=5387;5389>=b;b++)p[b]=0;for(b=5459;5463>=b;b++)p[b]=0;for(b=5479;5482>=b;b++)p[b]=0;for(b=5518;5520>=b;b++)p[b]=0;for(b=5530;5539>=b;b++)p[b]=0;for(b=5550;5552>=b;b++)p[b]=0;for(b=5562;5583>=b;b++)p[b]=0;for(b=5623;5625>=b;b++)p[b]=2;for(b=5631;5639>=b;b++)p[b]=0;for(b=5649;5653>=b;b++)p[b]=0;for(b=5663;5680>=b;b++)p[b]=0;for(b=5682;5685>=b;b++)p[b]=0;for(b=5875;5877>=b;b++)p[b]=
0;for(b=5896;5899>=b;b++)p[b]=0;for(b=5921;5940>=b;b++)p[b]=0;for(b=6050;6125>=b;b++)p[b]=0;for(b=6244;6275>=b;b++)p[b]=0;for(b=6328;6348>=b;b++)p[b]=0;for(b=6350;6356>=b;b++)p[b]=0;for(b=6366;6372>=b;b++)p[b]=0;for(b=6381;6387>=b;b++)p[b]=0;for(b=6393;6404>=b;b++)p[b]=0;for(b=6480;6483>=b;b++)p[b]=0;for(b=6511;6514>=b;b++)p[b]=0;for(b=6579;6581>=b;b++)p[b]=0;for(b=6619;6624>=b;b++)p[b]=0;for(b=6625;6627>=b;b++)p[b]=2;for(b=6628;6632>=b;b++)p[b]=0;for(b=6634;6637>=b;b++)p[b]=0;for(b=6669;6692>=b;b++)p[b]=
0;for(b=6707;6709>=b;b++)p[b]=0;for(b=6720;6723>=b;b++)p[b]=0;for(b=6732;6738>=b;b++)p[b]=0;for(b=6931;6933>=b;b++)p[b]=0;for(b=6956;6959>=b;b++)p[b]=0;for(b=7005;7007>=b;b++)p[b]=0;for(b=7057;7070>=b;b++)p[b]=2;for(b=7074;7082>=b;b++)p[b]=0;for(b=7109;7118>=b;b++)p[b]=0;for(b=7119;7127>=b;b++)p[b]=1;for(b=7374;7376>=b;b++)p[b]=0;for(b=7528;7586>=b;b++)p[b]=0;for(b=7587;7645>=b;b++)p[b]=2;for(b=7692;7696>=b;b++)p[b]=0;for(b=7755;7787>=b;b++)p[b]=0;for(b=7791;7795>=b;b++)p[b]=0;for(b=7799;7801>=b;b++)p[b]=
0;for(b=7803;7805>=b;b++)p[b]=0;for(b=7825;7831>=b;b++)p[b]=0;for(b=7845;7859>=b;b++)p[b]=0;for(b=8013;8032>=b;b++)p[b]=0;for(b=8065;8068>=b;b++)p[b]=1;for(b=8518;8529>=b;b++)p[b]=2;for(b=8533;8536>=b;b++)p[b]=2;for(b=8538;8540>=b;b++)p[b]=2;for(b=8677;8679>=b;b++)p[b]=0;for(b=8836;8840>=b;b++)p[b]=0;for(b=8857;8859>=b;b++)p[b]=0;for(b=8908;8910>=b;b++)p[b]=0;for(b=9154;9159>=b;b++)p[b]=0;for(b=9205;9218>=b;b++)p[b]=0;for(b=9271;9273>=b;b++)p[b]=0;for(b=9295;9297>=b;b++)p[b]=0;for(b=9356;9360>=b;b++)p[b]=
0;for(b=9404;9407>=b;b++)p[b]=0;for(b=9476;9482>=b;b++)p[b]=0;for(b=9487;9494>=b;b++)p[b]=0;for(b=9697;9699>=b;b++)p[b]=0;for(b=9821;9865>=b;b++)p[b]=0;for(b=10285;10291>=b;b++)p[b]=0;for(b=10314;10317>=b;b++)p[b]=0;for(b=10448;10465>=b;b++)p[b]=0;for(b=11114;11118>=b;b++)p[b]=0;for(b=20004;20032>=b;b++)p[b]=0;for(b=20047;20049>=b;b++)p[b]=0;for(b=20062;20092>=b;b++)p[b]=0;for(b=20135;20138>=b;b++)p[b]=0;for(b=20248;20258>=b;b++)p[b]=0;for(b=20348;20358>=b;b++)p[b]=0;for(b=20436;20440>=b;b++)p[b]=
0;for(b=20822;20824>=b;b++)p[b]=0;for(b=20904;20932>=b;b++)p[b]=0;for(b=20934;20936>=b;b++)p[b]=0;for(b=21004;21032>=b;b++)p[b]=0;for(b=21035;21037>=b;b++)p[b]=0;for(b=21095;21097>=b;b++)p[b]=0;for(b=21148;21150>=b;b++)p[b]=0;for(b=21207;21264>=b;b++)p[b]=0;for(b=21307;21364>=b;b++)p[b]=0;for(b=21413;21423>=b;b++)p[b]=0;for(b=21453;21463>=b;b++)p[b]=0;for(b=21473;21483>=b;b++)p[b]=0;for(b=21780;21782>=b;b++)p[b]=0;for(b=21891;21894>=b;b++)p[b]=0;for(b=21896;21899>=b;b++)p[b]=0;for(b=22171;22177>=
b;b++)p[b]=0;for(b=22181;22187>=b;b++)p[b]=0;for(b=22191;22197>=b;b++)p[b]=0;for(b=22207;22222>=b;b++)p[b]=0;for(b=22229;22232>=b;b++)p[b]=0;for(b=22234;22236>=b;b++)p[b]=0;for(b=22243;22250>=b;b++)p[b]=0;for(b=22262;22265>=b;b++)p[b]=0;for(b=22307;22322>=b;b++)p[b]=0;for(b=22348;22357>=b;b++)p[b]=0;for(b=22407;22422>=b;b++)p[b]=0;for(b=22462;22465>=b;b++)p[b]=0;for(b=22521;22525>=b;b++)p[b]=0;for(b=22607;22622>=b;b++)p[b]=0;for(b=22641;22646>=b;b++)p[b]=0;for(b=22648;22657>=b;b++)p[b]=0;for(b=22707;22722>=
b;b++)p[b]=0;for(b=22762;22765>=b;b++)p[b]=0;for(b=22807;22822>=b;b++)p[b]=0;for(b=22991;22994>=b;b++)p[b]=0;for(b=23028;23038>=b;b++)p[b]=0;for(b=23301;23333>=b;b++)p[b]=2;for(b=23830;23853>=b;b++)p[b]=0;for(b=23866;23872>=b;b++)p[b]=0;for(b=23877;23884>=b;b++)p[b]=0;for(b=23886;23894>=b;b++)p[b]=0;for(b=23946;23948>=b;b++)p[b]=0;for(b=24311;24313>=b;b++)p[b]=0;for(b=24342;24347>=b;b++)p[b]=0;for(b=24370;24374>=b;b++)p[b]=10;for(b=24375;24381>=b;b++)p[b]=0;for(b=24718;24721>=b;b++)p[b]=0;for(b=24817;24821>=
b;b++)p[b]=0;for(b=24877;24882>=b;b++)p[b]=0;for(b=24891;24893>=b;b++)p[b]=0;for(b=25391;25395>=b;b++)p[b]=0;for(b=25828;25838>=b;b++)p[b]=0;for(b=26191;26195>=b;b++)p[b]=0;for(b=26391;26393>=b;b++)p[b]=0;for(b=26701;26722>=b;b++)p[b]=0;for(b=26729;26799>=b;b++)p[b]=2;for(b=26801;26803>=b;b++)p[b]=2;for(b=26811;26813>=b;b++)p[b]=2;for(b=26847;26870>=b;b++)p[b]=2;for(b=26891;26899>=b;b++)p[b]=0;for(b=26901;26923>=b;b++)p[b]=0;for(b=26929;26946>=b;b++)p[b]=0;for(b=26948;26998>=b;b++)p[b]=0;for(b=27037;27040>=
b;b++)p[b]=0;for(b=27205;27232>=b;b++)p[b]=0;for(b=27258;27260>=b;b++)p[b]=0;for(b=27391;27398>=b;b++)p[b]=0;for(b=27561;27564>=b;b++)p[b]=0;for(b=27571;27574>=b;b++)p[b]=0;for(b=27581;27584>=b;b++)p[b]=0;for(b=27591;27594>=b;b++)p[b]=0;for(b=28191;28193>=b;b++)p[b]=0;for(b=28348;28358>=b;b++)p[b]=0;for(b=28402;28432>=b;b++)p[b]=0;for(b=28462;28492>=b;b++)p[b]=0;for(b=29118;29122>=b;b++)p[b]=0;for(b=29168;29172>=b;b++)p[b]=0;for(b=29177;29185>=b;b++)p[b]=0;for(b=29187;29195>=b;b++)p[b]=0;for(b=29900;29903>=
b;b++)p[b]=0;for(b=30161;30179>=b;b++)p[b]=0;for(b=30491;30494>=b;b++)p[b]=0;for(b=30729;30732>=b;b++)p[b]=0;for(b=31251;31259>=b;b++)p[b]=0;for(b=31265;31268>=b;b++)p[b]=0;for(b=31275;31279>=b;b++)p[b]=0;for(b=31281;31297>=b;b++)p[b]=0;for(b=31461;31469>=b;b++)p[b]=0;for(b=31491;31495>=b;b++)p[b]=0;for(b=31917;31922>=b;b++)p[b]=0;for(b=31965;32E3>=b;b++)p[b]=0;for(b=32001;32003>=b;b++)p[b]=2;for(b=32005;32031>=b;b++)p[b]=2;for(b=32033;32060>=b;b++)p[b]=2;for(b=32064;32067>=b;b++)p[b]=2;for(b=32074;32077>=
b;b++)p[b]=2;for(b=32081;32086>=b;b++)p[b]=0;for(b=32107;32130>=b;b++)p[b]=0;for(b=32133;32159>=b;b++)p[b]=0;for(b=32164;32167>=b;b++)p[b]=2;for(b=32180;32199>=b;b++)p[b]=0;for(b=32201;32260>=b;b++)p[b]=0;for(b=32301;32360>=b;b++)p[b]=0;for(b=32401;32460>=b;b++)p[b]=0;for(b=32501;32560>=b;b++)p[b]=0;for(b=32601;32662>=b;b++)p[b]=0;for(b=32664;32667>=b;b++)p[b]=2;for(b=32701;32761>=b;b++)p[b]=0;for(b=53001;53004>=b;b++)p[b]=0;for(b=53008;53019>=b;b++)p[b]=0;for(b=53021;53032>=b;b++)p[b]=0;for(b=53034;53037>=
b;b++)p[b]=0;for(b=53042;53046>=b;b++)p[b]=0;for(b=53074;53080>=b;b++)p[b]=0;for(b=54001;54004>=b;b++)p[b]=0;for(b=54008;54019>=b;b++)p[b]=0;for(b=54021;54032>=b;b++)p[b]=0;for(b=54034;54037>=b;b++)p[b]=0;for(b=54042;54046>=b;b++)p[b]=0;for(b=54048;54053>=b;b++)p[b]=0;for(b=54074;54080>=b;b++)p[b]=0;for(b=54098;54101>=b;b++)p[b]=0;for(b=102001;102040>=b;b++)p[b]=0;for(b=102042;102063>=b;b++)p[b]=0;for(b=102065;102067>=b;b++)p[b]=0;for(b=102070;102117>=b;b++)p[b]=0;for(b=102122;102216>=b;b++)p[b]=
0;for(b=102221;102377>=b;b++)p[b]=0;for(b=102382;102388>=b;b++)p[b]=0;for(b=102389;102398>=b;b++)p[b]=2;for(b=102399;102444>=b;b++)p[b]=0;for(b=102445;102447>=b;b++)p[b]=2;for(b=102448;102458>=b;b++)p[b]=0;for(b=102459;102468>=b;b++)p[b]=2;for(b=102469;102499>=b;b++)p[b]=0;for(b=102500;102519>=b;b++)p[b]=1;for(b=102520;102524>=b;b++)p[b]=0;for(b=102525;102529>=b;b++)p[b]=2;for(b=102530;102588>=b;b++)p[b]=0;for(b=102590;102598>=b;b++)p[b]=0;for(b=102601;102603>=b;b++)p[b]=0;for(b=102605;102628>=b;b++)p[b]=
0;for(b=102629;102646>=b;b++)p[b]=2;for(b=102648;102700>=b;b++)p[b]=2;for(b=102701;102703>=b;b++)p[b]=0;for(b=102707;102730>=b;b++)p[b]=2;for(b=102733;102758>=b;b++)p[b]=2;for(b=102767;102900>=b;b++)p[b]=0;for(b=102901;102933>=b;b++)p[b]=2;for(b=102934;102950>=b;b++)p[b]=13;for(b=102951;102955>=b;b++)p[b]=0;for(b=102961;102963>=b;b++)p[b]=0;for(b=102965;102969>=b;b++)p[b]=0;for(b=102971;102973>=b;b++)p[b]=0;for(b=102975;102989>=b;b++)p[b]=0;for(b=102990;102992>=b;b++)p[b]=1;for(b=102997;103002>=b;b++)p[b]=
0;for(b=103003;103008>=b;b++)p[b]=2;for(b=103009;103011>=b;b++)p[b]=0;for(b=103012;103014>=b;b++)p[b]=2;for(b=103019;103021>=b;b++)p[b]=0;for(b=103022;103024>=b;b++)p[b]=2;for(b=103029;103031>=b;b++)p[b]=0;for(b=103032;103034>=b;b++)p[b]=2;for(b=103065;103068>=b;b++)p[b]=0;for(b=103074;103076>=b;b++)p[b]=0;for(b=103077;103079>=b;b++)p[b]=1;for(b=103080;103082>=b;b++)p[b]=0;for(b=103083;103085>=b;b++)p[b]=2;for(b=103090;103093>=b;b++)p[b]=0;for(b=103097;103099>=b;b++)p[b]=0;for(b=103100;103102>=b;b++)p[b]=
2;for(b=103107;103109>=b;b++)p[b]=0;for(b=103110;103112>=b;b++)p[b]=2;for(b=103113;103116>=b;b++)p[b]=0;for(b=103117;103120>=b;b++)p[b]=2;for(b=103153;103157>=b;b++)p[b]=0;for(b=103158;103162>=b;b++)p[b]=2;for(b=103163;103165>=b;b++)p[b]=0;for(b=103166;103168>=b;b++)p[b]=1;for(b=103169;103171>=b;b++)p[b]=2;for(b=103186;103188>=b;b++)p[b]=0;for(b=103189;103191>=b;b++)p[b]=2;for(b=103192;103195>=b;b++)p[b]=0;for(b=103196;103199>=b;b++)p[b]=2;for(b=103200;103224>=b;b++)p[b]=0;for(b=103225;103227>=b;b++)p[b]=
1;for(b=103232;103237>=b;b++)p[b]=0;for(b=103238;103243>=b;b++)p[b]=2;for(b=103244;103246>=b;b++)p[b]=0;for(b=103247;103249>=b;b++)p[b]=2;for(b=103254;103256>=b;b++)p[b]=0;for(b=103257;103259>=b;b++)p[b]=2;for(b=103264;103266>=b;b++)p[b]=0;for(b=103267;103269>=b;b++)p[b]=2;for(b=103300;103375>=b;b++)p[b]=0;for(b=103381;103383>=b;b++)p[b]=0;for(b=103384;103386>=b;b++)p[b]=1;for(b=103387;103389>=b;b++)p[b]=0;for(b=103390;103392>=b;b++)p[b]=2;for(b=103397;103399>=b;b++)p[b]=0;for(b=103400;103471>=b;b++)p[b]=
2;for(b=103476;103478>=b;b++)p[b]=0;for(b=103479;103481>=b;b++)p[b]=2;for(b=103486;103488>=b;b++)p[b]=0;for(b=103489;103491>=b;b++)p[b]=2;for(b=103492;103495>=b;b++)p[b]=0;for(b=103496;103499>=b;b++)p[b]=2;for(b=103528;103543>=b;b++)p[b]=0;for(b=103544;103548>=b;b++)p[b]=2;for(b=103549;103551>=b;b++)p[b]=0;for(b=103552;103554>=b;b++)p[b]=1;for(b=103555;103557>=b;b++)p[b]=2;for(b=103558;103560>=b;b++)p[b]=0;for(b=103571;103573>=b;b++)p[b]=0;for(b=103574;103576>=b;b++)p[b]=2;for(b=103577;103580>=b;b++)p[b]=
0;for(b=103581;103583>=b;b++)p[b]=2;for(b=103595;103694>=b;b++)p[b]=0;for(b=103696;103699>=b;b++)p[b]=0;for(b=103700;103793>=b;b++)p[b]=2;for(b=103794;103890>=b;b++)p[b]=0;for(b=103891;103896>=b;b++)p[b]=2;for(b=103900;103971>=b;b++)p[b]=2;for(b=103972;103977>=b;b++)p[b]=0;for(b=112E3;112101>=b;b++)p[b]=0;F("extend-esri")&&(u.WKIDUnitConversion=p);return p})},"esri/geometry/screenUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/sniff ../kernel ./Point ./ScreenPoint ./Polyline ./Polygon ./Multipoint ./Extent".split(" "),
function(F,u,b,p,e,y,q,m,f,g){var a=function(){return 9>b("ie")?function(l,k,n,h,c,r,v,z,C){var x=[],E=Math.round,B,w=v.length,D;for(B=0;B<w;B++){var t=v[B];var A=z?z(t[0][0],t[0][1],C):t[0];if(1<(D=t.length)){var G=E((A[0]-l)*n+c);var J=E((k-A[1])*h+r);A=z?z(t[1][0],t[1][1],C):t[1];var U=E((A[0]-l)*n+c);A=E((k-A[1])*h+r);x.push("M",G+","+J,"L",U+","+A);for(U=2;U<D;U++)A=z?z(t[U][0],t[U][1],C):t[U],G=E((A[0]-l)*n+c),J=E((k-A[1])*h+r),x.push(G+","+J)}else G=E((A[0]-l)*n+c),J=E((k-A[1])*h+r),x.push("M",
G+","+J)}return x}:function(l,k,n,h,c,r,v,z,C,x){var E=[],B,w,D=Math.round;var t=0;for(B=v?v.length:0;t<B;t++){var A=v[t];E.push("M");var G=0;for(w=A?A.length:0;G<w;G++){var J=z?z(A[G][0],A[G][1],C):A[G];E.push(D((J[0]-l)*n+c)+","+D((k-J[1])*h+r))}x||E.push("Z")}return E}}(),d={toScreenPoint:function(l,k,n,h,c){var r=l.spatialReference,v=h.spatialReference,z=h.x;h=h.y;r&&v&&!r.equals(v)&&r._canProject(v)&&(r=r.isWebMercator()?e.lngLatToXY(z,h):e.xyToLngLat(z,h,!0),z=r[0],h=r[1]);z=(z-l.xmin)*(k/l.getWidth());
h=(l.ymax-h)*(n/l.getHeight());c||(z=Math.round(z),h=Math.round(h));return new y(z,h)},toScreenGeometry:function(l,k,n,h){var c=l.xmin,r=l.ymax,v=k/l.getWidth(),z=n/l.getHeight(),C=F.forEach,x=Math.round;if(h instanceof e)return new e(x((h.x-c)*v),x((r-h.y)*z));if(h instanceof f){l=new f;var E=l.points;C(h.points,function(A,G){E[G]=[x((A[0]-c)*v),x((r-A[1])*z)]});return l}if(h instanceof g)return new g(x((h.xmin-c)*v),x((r-h.ymin)*z),x((h.xmax-c)*v),x((r-h.ymax)*v));if(h instanceof q){l=new q;var B=
l.paths,w;C(h.paths,function(A,G){w=B[G]=[];C(A,function(J,U){w[U]=[x((J[0]-c)*v),x((r-J[1])*z)]})});return l}if(h instanceof m){l=new m;var D=l.rings,t;C(h.rings,function(A,G){t=D[G]=[];C(A,function(J,U){t[U]=[x((J[0]-c)*v),x((r-J[1])*z)]})});return l}},_toScreenPath:function(l,k,n,h,c,r){var v=h instanceof q,z=l.spatialReference,C=h.spatialReference;if(z&&C&&!z.equals(C)&&z._canProject(C))if(z.isWebMercator())var x=e.lngLatToXY;else{x=e.xyToLngLat;var E=!0}return a(l.xmin,l.ymax,k/l.getWidth(),
n/l.getHeight(),c,r,v?h.paths:h.rings,x,E,v)},toMapPoint:function(l,k,n,h){return new e(l.xmin+h.x/(k/l.getWidth()),l.ymax-h.y/(n/l.getHeight()),l.spatialReference)},toMapGeometry:function(l,k,n,h){var c=l.xmin,r=l.ymax,v=l.spatialReference,z=k/l.getWidth(),C=n/l.getHeight(),x=F.forEach;if(h instanceof e)return new e(c+h.x/z,r-h.y/C,v);if(h instanceof f){l=new f(v);var E=l.points;x(h.points,function(A,G){E[G]=[c+A[0]/z,r-A[1]/C]});return l}if(h instanceof g)return new g(c+h.xmin/z,r-h.ymin/C,c+h.xmax/
z,r-h.ymax/C,v);if(h instanceof q){l=new q(v);var B=l.paths,w;x(h.paths,function(A,G){w=B[G]=[];x(A,function(J,U){w[U]=[c+J[0]/z,r-J[1]/C]})});return l}if(h instanceof m){l=new m(v);var D=l.rings,t;x(h.rings,function(A,G){t=D[G]=[];x(A,function(J,U){t[U]=[c+J[0]/z,r-J[1]/C]})});return l}}};b("extend-esri")&&u.mixin(u.getObject("geometry",!0,p),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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r,v,z,C,x,E,B,w,D,t,A,G,J,U){var ja=-1!==d.renderer.toLowerCase().indexOf("svg"),Z=-1!==d.renderer.toLowerCase().indexOf("canvas"),fa=Z?"canvas-2d":d.renderer,qa=9>z("ie");q=10===z("ie");var V=void 0===z("ie")&&7==z("trident"),ea=q||V,ba=z("esri-touch"),ma=!!z("chrome"),va=h.isWebGLEnabled(),da=ja&&z("esri-will-change"),ka=va||Z;h=u(null,{declaredClass:"esri.layers._GraphicsContainer",_setMap:function(I,S){var X=this._connects=[];this._map=I;this._useWillChange=
this._useGlobalTransform="css-transforms"===I.navigationMode&&da;if(ka){var O=f.create("div",{style:{position:"absolute",overflow:"visible"}},S);this._surface={getEventSource:function(){return O}};Z&&(X.push(p.connect(O,"onmousedown",this,this._canvasDownHandler)),X.push(p.connect(O,"onmouseup",this,this._canvasUpHandler)),X.push(p.connect(O,"onclick",this,this._canvasClickHandler)));va&&(this._webglSurface=new c({map:I,node:O}))}else O=(this._surface=d.createSurface(S,I.width,I.height)).getEventSource(),
this._useWillChange&&g.set(O,"will-change","transform"),g.set(O=qa?O.parentNode:O,{overflow:"visible",position:"absolute"});X.push(p.connect(I,"onResize",this,"_onResizeHandler"));this._useGlobalTransform&&(X.push(p.connect(I,"onPan",this,"_onPanHandler")),X.push(p.connect(I,"onPanEnd",this,"_onPanEndHandler")),X.push(p.connect(I,"onExtentChange",this,"_onExtentChangeHandler")));return O},_reorderLayer:function(I,S,X){S=S.getEventSource();ka&&"svg"===I.surfaceType&&(S=S.parentNode);f.place(S,this._surface.getEventSource(),
X)},_onPanHandler:function(I,S){var X=this._map.__visibleRect;I=X.x+S.x;S=X.y+S.y;this._panDx=I;this._panDy=S;ka||g.set(this._surface.getEventSource(),r._css.names.transform,r._css.translate(I,S))},_onPanEndHandler:function(I,S){S=this._map.__visibleRect;I=S.x;S=S.y;this._panDx=I;this._panDy=S;ka||g.set(this._surface.getEventSource(),r._css.names.transform,r._css.translate(I,S))},_onExtentChangeHandler:function(I,S,X,O){X&&(this._panDy=this._panDx=0,ka||g.set(this._surface.getEventSource(),r._css.names.transform,
r._css.translate(0,0)))},_getTransform:function(){return{dx:this._panDx||0,dy:this._panDy||0}},_onResizeHandler:function(I,S,X){I=this._surface.getEventSource();var O=this._map,P;qa&&g.set(I=I.parentNode,{width:S+"px",height:X+"px",clip:"rect(0px "+S+"px "+X+"px 0px)"});m.set(I,"width",S);m.set(I,"height",X);this._surface.declaredClass||y.forEach(I.childNodes,function(aa){m.set(aa,"width",S);m.set(aa,"height",X)});O.loaded&&(O.graphics.suspended||(O.graphics._resized=!0),y.forEach(O.graphicsLayerIds,
function(aa){P=O.getLayer(aa);P.suspended||(P._resized=!0,P._childLayer&&(P._childLayer._resized=!0));P._updateSVGFilters(null,null,S,X)}),O.graphics._updateSVGFilters(null,null,S,X),O._labels&&O._labels._updateSVGFilters(null,null,S,X))},_cleanUp:function(){y.forEach(this._connects,p.disconnect,p);this._map=this._surface=null},_processEvent:function(I){var S=this._map;I.screenPoint=new t(I.pageX-S.position.x,I.pageY-S.position.y);I.mapPoint=S.toMap(I.screenPoint)},_canvasDownHandler:function(I){this._processEvent(I);
this._downPt=I.screenPoint.x+","+I.screenPoint.y},_canvasUpHandler:function(I){this._processEvent(I);this._upPt=I.screenPoint.x+","+I.screenPoint.y},_tolerance:15,_isPrimaryMatch:function(I,S,X,O){if(!I.visible||!S)return!1;var P=S.getTransformedBoundingBox();if(P){var aa=new A(P[0].x,P[0].y,P[2].x,P[2].y);delete aa.spatialReference;return ba?aa.intersects(X):aa.contains(O)}return y.some(S.children||[],function(ha){P=ha.getTransformedBoundingBox();aa=new A(P[0].x,P[0].y,P[2].x,P[2].y);delete aa.spatialReference;
return ba?aa.intersects(X):aa.contains(O)})},_canvasClickHandler:function(I){if(this._downPt&&this._upPt&&this._downPt===this._upPt){this._processEvent(I);var S=this._map,X=y.map(S.graphicsLayerIds,function(Q){return S.getLayer(Q)});X.push(S.graphics);X.reverse();X=y.filter(X,function(Q){return Q.loaded&&!Q.hasWebGLSurface()&&Q._mouseEvents&&!Q.suspended&&(!v.isDefined(Q.opacity)||0<Q.opacity)});var O=I.screenPoint,P=this._tolerance,aa=O.x-P,ha=O.y+P,la=O.x+P;P=O.y-P;var ta=new A(aa,P,la,ha);aa=S.toMap(new t(aa,
ha));la=S.toMap(new t(la,P));ha=aa.spatialReference._getInfo();var Ba=new A(A.prototype._normalizeX(aa.x,ha).x,aa.y,A.prototype._normalizeX(la.x,ha).x,la.y,aa.spatialReference),N;delete ta.spatialReference;y.some(X,function(Q){Q=y.filter(Q.graphics,function(pa){return this._isPrimaryMatch(pa,pa.getDojoShape(),ta,O)||!(!pa._bgShape||!this._isPrimaryMatch(pa,pa._bgShape,ta,O))},this);Q.reverse();if(0<Q.length){var ia;y.some(Q,function(pa){return pa.geometry&&Ba.intersects(pa.geometry)?(ia=pa,!0):!1});
if(ia)return N=ia,!0}return!1},this);N&&(X=N.getLayer())&&(I.graphic=N,X.onClick(I))}}});n=u(n,{declaredClass:"esri.layers._GraphicsLayer",managedSuspension:!0,surfaceType:fa,webglEnabled:va,renderer:null,_eventMap:{"graphic-add":["graphic"],"graphic-remove":["graphic"],"renderer-change":["renderer"]},_suspendGraphics:!1,constructor:function(I,S){I=I||{};if(e.isString(I)||e.isObject(I)&&(I.layerDefinition||I.query))I=S;this._params=e.mixin({displayOnPan:!0,drawMode:!0,styling:!0},I);S=this._params.dataAttributes;
"string"===typeof S&&(S=[S]);this.styling=ja?this._params.styling:!0;this.dataAttributes=S;this.infoTemplate=I&&I.infoTemplate;this.graphics=[];this._draw=e.hitch(this,this._draw);this._refresh=e.hitch(this,this._refresh);this._acquireSVGMarker=e.hitch(this,this._acquireSVGMarker);this._evalSurfaceType=e.hitch(this,this._evalSurfaceType);this._setSurfaceType=e.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(I){this._params.drawMode=I},suspendGraphics:function(I){this._suspendGraphics=I;y.forEach(this.graphics,function(S){S._suspended=I})},setWebGLEnabled:function(I){var S=this.webglEnabled;this.webglEnabled=(I||!1)&&va;S!==this.webglEnabled&&(this._evalSurfaceType(),this.onWebGLEnabledChange())},hasWebGLSurface:function(){return"webgl"===this.surfaceType},_getSurfaceType:function(I){return I&&"webgl"===I.surfaceType?
"webgl":fa},_evalSurfaceType:function(I){va&&(I?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 I=this._canUseWebGLSurface()?"webgl":fa;this.surfaceType!==I?(this.surfaceType=I,this._handleSurfaceChange(),this.onSurfaceChange()):this._pendingRedraw&&
this._redraw()},_handleSurfaceChange:function(){this._cancelWebGLDepsLoad();this._webglDepsPromise=this._prepareToAttach(this._map);this._webglDepsPromise.always(e.hitch(this,function(I){this._webglDepsPromise=null;I&&"cancel"===I.dojoType||this._evalSurface()}))},_cancelWebGLDepsLoad:function(){this._webglDepsPromise&&!this._webglDepsPromise.isFulfilled()&&this._webglDepsPromise.cancel();this._webglDepsPromise=null},_evalSurface:function(){var I=this._map,S=this._div;I&&S&&this._getSurfaceType(S)!==
this.surfaceType&&(I._detachGraphicsLayer(this),I._attachGraphicsLayer(this))},_canUseWebGLSurface:function(I){I=I||this._map;return this.webglEnabled&&(!I||I.webglEnabled&&(I.ownsWebGLContext(this)||I.isWebGLContextAvailable()))&&this._params.drawMode&&this._isWebGLCompatible()},_isWebGLCompatible:function(){return!1},_prepareToAttach:function(I){var S=new b;!this.webglDeps&&this._canUseWebGLSurface(I)?F(["./support/webglDeps"],e.hitch(this,function(X){this.webglDeps=X;S.isFulfilled()||S.resolve()})):
S.resolve();return S.promise},_setMap:function(I,S){this.inherited(arguments);this._map=I;this._evalSurfaceType(!0);this._webglChangeMapHandle=I.on("webgl-enabled-change",e.hitch(this,function(){this._evalSurfaceType()}));this._wrap=I.wrapAround180;this._srInfo=I.spatialReference._getInfo();this._svgFilters={};this._lineMarkers={};if(this.hasWebGLSurface())I.acquireWebGLContext(this),this._div=I._gc._webglSurface.createRenderer(this.webglDeps.WebGLRenderer,I.width,I.height,this);else{if("svg"===this.surfaceType)if(ka){S=
d.createSurface(S.getEventSource(),I.width,I.height);var X=S.getEventSource();g.set(X,{position:"absolute",overflow:"visible",pointerEvents:"none"});I._gc._useWillChange&&g.set(X,"will-change","transform");this._div=S.createGroup();g.set(this._div.getEventSource(),"pointer-events","auto")}else this._div=S.createGroup();else S=d.createSurface(S.getEventSource(),I.width,I.height),g.set(S.rawNode,"position","absolute"),this._div=S.createGroup(),this._renderProto=this._div.constructor.prototype._render,
this._div._render=e.hitch(this,this._canvasRender);this._bgGroup=this._div.createGroup()}this._div.getEventSource().id=this.id+"_layer";this._initOpacity();return this._div},_unsetMap:function(I,S){I.releaseWebGLContext(this);"webgl"===this._div.surfaceType?I._gc._webglSurface.destroyRenderer(this._div):(y.forEach(this.graphics,function(X){X._shape=null}),"svg"===this.surfaceType?ka?(S=this._div.parent,this._div.clear(),S.remove(this._div),f.destroy(this._div.getEventSource()),f.destroy(S.getEventSource())):
(this._div.clear(),S.remove(this._div),f.destroy(this._div.getEventSource())):(S=this._div.getParent(),S._parent={},f.destroy(S.rawNode),S.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 I=this.opacity;v.isDefined(I)&&1>I&&this.setOpacity(I,!0)},_onZoomStartHandler:function(){this.hasWebGLSurface()||x.hide(this._div.getEventSource())},_onExtentChangeHandler:function(I,S,X,O){clearTimeout(this._wakeTimer);this._wakeTimer=null;X?(I=this._map.__visibleRect,S=this._div,this._evalSDRenderer(),this._refresh(!0),this._params._child||this._updateTransform(S,I.x,I.y,!0),this._renderProto&&S.surface.pendingRender?this._dirty=!0:this.suspended||x.show(S.getEventSource())):
this._resized&&(this._resized=!1,this._refresh(!1));if(0<this.graphics.length)this.onUpdate()},_canvasRender:function(){var I=this._div;this._dirty&&(delete this._dirty,this.suspended||x.show(I.getEventSource()));return this._renderProto.apply(I,arguments)},_refresh:function(I){if(!this.hasWebGLSurface()){var S=this.graphics,X=S.length,O,P=this._draw;for(O=0;O<X;O++)P(S[O],I)}},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 I={dx:0,dy:0};this._map&&(this.hasLocalNavigationTransform()?this._div&&!this.hasWebGLSurface()&&(I=this._div.getTransform()):I=this._map._gc._getTransform());return I},_onPanHandler:function(I,S){this._panDx=S.x;this._panDy=S.y;I=this._map.__visibleRect;this._updateTransform(this._div,
I.x+S.x,I.y+S.y);V&&this._updateSVGMarkers()},_onPanEndUpdateHandler:function(I,S){I=this._map.__visibleRect;this._params._child||S.x===this._panDx&&S.y===this._panDy?(this._updateSVGFilters(-I.x,-I.y),this._updateSVGMarkers()):this._updateTransform(this._div,I.x,I.y,!0);this._refresh(!1);if(this.graphics.length)this.onUpdate()},_onPanStartHandler:function(){x.hide(this._div.getEventSource())},_onPanEndHandler:function(){var I=this._map.__visibleRect,S=this._div;this._updateTransform(S,I.x,I.y,!0);
this._refresh(!1);this._renderProto&&S.surface.pendingRender?this._dirty=!0:x.show(S.getEventSource());if(this.graphics.length)this.onUpdate()},_updateTransform:function(I,S,X,O){this.hasWebGLSurface()||(this.hasLocalNavigationTransform()?I.setTransform(l.translate({x:S,y:X})):ka&&g.set(this._div.parent.getEventSource(),r._css.names.transform,r._css.translate(S,X)),O&&(this._updateSVGFilters(-S,-X),this._updateSVGMarkers()))},onSuspend:function(){this.inherited(arguments);x.hide(this._div.getEventSource());
clearTimeout(this._wakeTimer);this._wakeTimer=null;this._disableDrawConnectors()},onResume:function(I){this.inherited(arguments);I.firstOccurrence&&this._evalSDRenderer();this._enableDrawConnectors();this._wakeTimer=this._wakeTimer||setTimeout(e.hitch(this,function(){this.suspended||this._map.__zooming||this._onExtentChangeHandler(null,null,!0)}),0)},_enableDrawConnectors:function(){var I=this._map,S=p.connect;this._disableDrawConnectors();this._params.displayOnPan?(this._params._child||(this._onPanHandler_connect=
S(I,"onPan",this,"_onPanHandler")),this._onPanEndHandler_connect=S(I,"onPanEnd",this,"_onPanEndUpdateHandler")):(this._onPanStartHandler_connect=S(I,"onPanStart",this,"_onPanStartHandler"),this._onPanEndHandler_connect=S(I,"onPanEnd",this,"_onPanEndHandler"));this._onZoomStartHandler_connect=S(I,"onZoomStart",this,"_onZoomStartHandler");this._onExtentChangeHandler_connect=S(I,"onExtentChange",this,"_onExtentChangeHandler")},_disableDrawConnectors:function(){var I=p.disconnect;I(this._onExtentChangeHandler_connect);
I(this._onZoomStartHandler_connect);I(this._onPanHandler_connect);I(this._onPanStartHandler_connect);I(this._onPanEndHandler_connect);this._onExtentChangeHandler_connect=this._onZoomStartHandler_connect=this._onPanHandler_connect=this._onPanStartHandler_connect=this._onPanEndHandler_connect=null},_updateExtent:function(I){var S=I.geometry;if(!S)I._extent=null;else if(!(I._extent=S.getExtent())){if("esri.geometry.Point"===S.declaredClass){var X=S.x;var O=S.y}else if("esri.geometry.Multipoint"===S.declaredClass)X=
S.points[0][0],O=S.points[0][1];else{I._extent=null;return}I._extent=new A(X,O,X,O,S.spatialReference)}},_intersects:function(I,S,X){var O=I.spatialReference,P=S.spatialReference,aa=O&&P&&!O.equals(P)&&O._canProject(P)&&4326===P.wkid;if(this._wrap&&!X){X=[];O=I._getFrameWidth();var ha=this._srInfo,la=I._clip?I._getAvailExtent():I.extent,ta,Ba=[];var N=S._partwise;aa&&(la=I.geographicExtent,ha=P._getInfo());I=la._getParts(ha);if(N&&N.length)for(S=[],P=0,aa=N.length;P<aa;P++)S=S.concat(N[P]._getParts(ha));
else S=S._getParts(ha);P=0;for(aa=S.length;P<aa;P++){var Q=S[P];ha=0;for(la=I.length;ha<la;ha++){var ia=I[ha];if(ia.extent.intersects(Q.extent))for(N=0,ta=Q.frameIds.length;N<ta;N++)X.push((ia.frameIds[0]-Q.frameIds[N])*O)}}P=0;for(aa=X.length;P<aa;P++)N=X[P],y.indexOf(X,N)===P&&Ba.push(N);return Ba.length?Ba:null}return(aa?I.geographicExtent:I.extent).intersects(S)?[0]:null},_defaultMarker:{type:"simplemarkersymbol",style:"square",size:1,xoffset:0,yoffset:0,angle:0},_draw:function(I,S){if(!this.hasWebGLSurface()&&
this._params.drawMode&&this._map&&!this.suspended&&!this._map.__zooming&&!this._resized)try{var X=I._extent,O,P,aa=!ja||this.styling,ha=ja&&this.dataAttributes,la=I.getDojoShape(),ta;if(!I._suspended&&I.visible&&X&&(O=this._intersects(this._map,X,I.geometry._originOnly))&&(P=aa?this._getSymbol(I):this._defaultMarker)){if(I._offsets&&I._offsets.join(",")===O.join(",")?ta=!0:I._offsets=O,!la||S||!ta){var Ba=I.geometry.type;S={graphic:I};var N=I._bgShape,Q=aa&&!I.symbol?this._getRenderer(I):null,ia=
Q&&Q.backgroundFillSymbol;if("point"===Ba)this._isInvalidShape(P,la)&&this._removeShape(I),I._shape=this._drawPoint(this._div,I.geometry,P,I.getDojoShape(),O,Q,I),aa&&this._symbolizePoint(I.getDojoShape(),P,Q,I);else if("multipoint"===Ba)this._drawMarkers(I,P,O,Q),aa&&this._symbolizeMarkers(I,P,Q);else{var pa;Ba=P;var ra;aa&&(Ba=(pa="simplemarkersymbol"===P.type||"picturemarkersymbol"===P.type||"textsymbol"===P.type?P:null)?ia:P);if(aa&&Ba&&-1<Ba.type.indexOf("fillsymbol")){var M=this._bgGroup;var ca=
!(!M||!pa)}N&&!ca&&this._removeBgShape(I);if(Ba){!ca&&(this._isInvalidShape(Ba,I._shape)||I._shape&&I._shape._isCentroidMarker)&&this._removeShape(I,!1);if(ra=this._drawShape(I,O,M||this._div,ca?N:I.getDojoShape()))ra._isCentroidMarker=!1;aa&&this._symbolizeShape(ra,Ba,Q,Ba===ia,I);I[ca?"_bgShape":"_shape"]=ra}if(pa){(this._isInvalidShape(pa,I._shape)||I._shape&&!I._shape._isCentroidMarker)&&this._removeShape(I,!1);var sa=I.geometry.getCentroid();if(ra=sa&&this._drawPoint(this._div,sa,pa,I._shape,
O,Q,I))ra._isCentroidMarker=!0,this._symbolizePoint(ra,pa,Q,I);I._shape=ra}}Z||(I._bgShape&&this._initNode(I,I._bgShape,I._bgShape!==N,S,ha),I._shape&&this._initNode(I,I._shape,I._shape!==la,S,ha));I._applyDataAttrs();S.node=I.getNode();this.onGraphicDraw(S)}}else la&&this._removeShape(I)}catch(xa){this._errorHandler(xa,I)}},_initNode:function(I,S,X,O,P){if(S=S&&S.getNode())S.e_graphic=I,this._addDataAttrs(I,P,S),X&&(O.node=S,this.onGraphicNodeAdd(O))},_removeShape:function(I,S,X){var O=I.getDojoShape(),
P=O&&O.getNode();O&&!X&&(O.removeShape(),O.destroy());I._shape=I._offsets=null;!1!==S&&this._removeBgShape(I,X);if(P&&(P.e_graphic=null,!Z))this.onGraphicNodeRemove({graphic:I,node:P})},_removeBgShape:function(I,S){var X=I._bgShape,O=X&&X.getNode();X&&!S&&(X.removeShape(),X.destroy());I._bgShape=null;if(O&&(O.e_graphic=null,!Z))this.onGraphicNodeRemove({graphic:I,node:O})},_addDataAttrs:function(I,S,X){var O=I.attributes,P,aa=S?S.length:0,ha=this._getRenderer(I);if(X&&O){for(P=0;P<aa;P++)(X=S[P])&&
I.attr("data-"+X,O[X]);!this.styling&&ha&&(ha.getBreakIndex?(S=ha.getBreakIndex(I),I.attr("data-class-break",-1!==S?S:null)):ha.getUniqueValueInfo&&(S=ha.getUniqueValueInfo(I),I.attr("data-unique-value",S?S.value:null)))}},_drawShape:function(I,S,X,O){I=I.geometry;var P=I.type,aa=this._map,ha=aa.extent,la=aa.width,ta=aa.height;aa=aa.__visibleRect;var Ba=[],N;var Q="extent"===P;if("rect"===P||Q)Ba={x:0,y:0,spatialReference:I.spatialReference},Ba.x=Q?I.xmin:I.x,Ba.y=Q?I.ymax:I.y,P=J.toScreenPoint(ha,
la,ta,Ba),Ba.x=Q?I.xmax:I.x+I.width,Ba.y=Q?I.ymin:I.y+I.height,I=J.toScreenPoint(ha,la,ta,Ba),S={x:P.x-aa.x+S[0],y:P.y-aa.y,width:Math.abs(I.x-P.x),height:Math.abs(I.y-P.y)},0===S.width&&(S.width=1),0===S.height&&(S.height=1),O=this._drawRect(X,O,S);else if("polyline"===P||"polygon"===P){Q=0;for(N=S.length;Q<N;Q++)Ba=Ba.concat(J._toScreenPath(ha,la,ta,I,-aa.x+S[Q],-aa.y));O=this._drawPath(X,O,Ba);this._rendererLimits&&("polyline"===P?this._clipPolyline(O,I):this._clipPolygon(O,I))}return O},_drawRect:function(I,
S,X){return S?S.setShape(X):I.createRect(X)},_drawImage:function(I,S,X){return S?S.setShape(X):I.createImage(X)},_drawCircle:function(I,S,X){return S?S.setShape(X):I.createCircle(X)},_drawPath:function(){return qa?function(I,S,X,O){X=O?X:X.join(" ");if(S)return S.setShape(X);S=I.createObject(O?d.Path:d.EsriPath,X);I._overrideSize(S.getEventSource());return S}:function(I,S,X,O){X=O?X:X.join(" ");return S?S.setShape(X):I.createPath(X)}}(),_drawText:function(I,S,X){return S?S.setShape(X):I.createText(X)},
_evalSDRenderer:function(I){var S=this._map,X=this.renderer,O,P=this._rndForScale;S&&S.loaded&&X&&X.getRendererInfo&&(O="zoom"===X.rangeType?X.getRendererInfoByZoom(S.getZoom()):X.getRendererInfoByScale(S.getScale()));this._rndForScale=O&&O.renderer;I||this._rndForScale==P||this.emit("renderer-change",{renderer:this._rndForScale})},_getRenderer:function(I){var S=this._rndForScale||this.renderer;I&&S&&S.getObservationRenderer&&(S=S.getObservationRenderer(I));return S},_getSymbol:function(I){var S=
this._getRenderer();return I.symbol||S&&S.getSymbol(I)},_getVariable:function(I,S,X){if(I)var O=(I=I.getVisualVariablesForType(S,X))&&I[0];return O},_applyOpacity:function(I,S,X,O){S=S.getOpacity(O,{opacityInfo:X});null!=S&&(I=new C(I),I.a=S);return I},_symbolizeShape:function(I,S,X,O,P){var aa=S.getStroke(),ha=S.getFill(),la=S.type,ta=-1!==la.indexOf("linesymbol"),Ba=-1!==la.indexOf("fillsymbol")?null:this._getVariable(X,"sizeInfo",!1),N=this._getVariable(X,"colorInfo",!1),Q=this._getVariable(X,
"opacityInfo",!1),ia=ta?"none"!==S.style:S.outline&&"none"!==S.outline.style,pa=ta?null:this._getVariable(X,"sizeInfo","outline");Ba=(Ba=O?pa:pa||Ba)?X.getSize(P,{sizeInfo:Ba,resolution:this._map.getResolutionInMeters(),scale:this._map.getScale()}):null;O&&(N=Q=null);if((N||Q)&&"picturefillsymbol"!==la)if(ta){var ra=aa&&aa.color;N&&(ra=X.getColor(P,{colorInfo:N})||ra);ra&&Q&&(ra=this._applyOpacity(ra,X,Q,P))}else if(ha&&ha.toCss){var M=ha;N&&(M=X.getColor(P,{colorInfo:N})||M);M&&Q&&(M=this._applyOpacity(M,
X,Q,P))}I.setStroke(!ia||null==Ba&&!ra?aa:e.mixin({},aa,null!=Ba?{width:Ba}:null,ra&&{color:ra})).setFill(M||ha);ta&&w.applyLineMarker(I,S,ra,this._acquireSVGMarker)},_smsToPath:function(){return qa?function(I,S,X,O,P,aa,ha,la,ta){switch(S){case I.STYLE_SQUARE:return["M",P+","+ha,"L",aa+","+ha,aa+","+la,P+","+la,"X","E"];case I.STYLE_CROSS:return["M",X+","+ha,"L",X+","+la,"M",P+","+O,"L",aa+","+O,"E"];case I.STYLE_X:return["M",P+","+ha,"L",aa+","+la,"M",P+","+la,"L",aa+","+ha,"E"];case I.STYLE_DIAMOND:return["M",
X+","+ha,"L",aa+","+O,X+","+la,P+","+O,"X","E"];case I.STYLE_TARGET:return["M",P+","+ha,"L",aa+","+ha,aa+","+la,P+","+la,P+","+ha,"M",P-ta+","+O,"L",P+","+O,"M",X+","+(ha-ta),"L",X+","+ha,"M",aa+ta+","+O,"L",aa+","+O,"M",X+","+(la+ta),"L",X+","+la,"E"]}}:function(I,S,X,O,P,aa,ha,la,ta){switch(S){case I.STYLE_SQUARE:return["M",P+","+ha,aa+","+ha,aa+","+la,P+","+la,"Z"];case I.STYLE_TRIANGLE:return["M",X+","+ha,aa+","+la,P+","+la,"Z"];case I.STYLE_CROSS:return["M",X+","+ha,X+","+la,"M",P+","+O,aa+","+
O];case I.STYLE_X:return["M",P+","+ha,aa+","+la,"M",P+","+la,aa+","+ha];case I.STYLE_DIAMOND:return["M",X+","+ha,aa+","+O,X+","+la,P+","+O,"Z"];case I.STYLE_TARGET:return I=["M",P+","+ha,aa+","+ha,aa+","+la,P+","+la,P+","+ha],ta&&I.push("M",P-ta+","+O,P+","+O,"M",X+","+(ha-ta),X+","+ha,"M",aa+ta+","+O,aa+","+O,"M",X+","+(la+ta),X+","+la),I}}}(),_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(I,S){S=S&&S.shape&&S.shape.type;var X=I&&I.type;I=I&&I.style;"rect"===S&&(S="path");X&&(I=this._typeMaps[X]||I);this._pathStyles[I]&&(I="path");return"shieldlabelsymbol"===X?!0:!(!S||!I||S===I)},_reArialFont:/\s*(^|,)\s*arial\s*(,|$)\s*/i,_fallbackFont:"Arial",_drawPoint:function(I,S,X,O,P,aa,ha){var la=X.type,ta=this._map,Ba=ta.__visibleRect,N=J.toScreenPoint(ta.extent,ta.width,ta.height,S).offset(-Ba.x+P[0],-Ba.y);Ba=N.x;
var Q=N.y;S=[];var ia=this._getVariable(aa,"rotationInfo",!1);ia=ia?aa.getRotationAngle(ha,{rotationInfo:ia}):null;var pa=this._getVariable(aa,"sizeInfo",!1);ta=null!=ha.size?ha.size:pa&&aa.getSize(ha,{sizeInfo:pa,shape:X.style,resolution:ta.getResolutionInMeters(),scale:ta.getScale()});ia&&S.push(l.rotategAt(ia,N));if(0!==X.xoffset||0!==X.yoffset){var ra=l.translate(X.xoffset,-X.yoffset);S.push(ra)}0!==X.angle&&S.push(l.rotategAt(X.angle,N));if("simplemarkersymbol"===la){var M=X.style;aa=Math.round;
null!=ta?ra&&(null!=ra.dx&&(ra.dx=ra.dx/X.size*ta),null!=ra.dy&&(ra.dy=ra.dy/X.size*ta)):ta=X.size;switch(M){case B.STYLE_SQUARE:case B.STYLE_TRIANGLE:case B.STYLE_CROSS:case B.STYLE_X:case B.STYLE_DIAMOND:X=isNaN(ta)?16:ta/2;M=this._drawPath(I,O,this._smsToPath(B,M,Ba,Q,aa(Ba-X),aa(Ba+X),aa(Q-X),aa(Q+X)));break;case B.STYLE_TARGET:ha=X._targetWidth/2;ra=X._targetHeight/2;M=this._drawPath(I,O,this._smsToPath(B,M,Ba,Q,aa(Ba-ha),aa(Ba+ha),aa(Q-ra),aa(Q+ra),X._spikeSize));break;case B.STYLE_PATH:M=this._drawPath(I,
O,X.path,!0);X=M.getBoundingBox();I=this._getScaleMatrix(X,ta);1===I.xx&&1===I.yy||S.push(l.scaleAt(I.xx,I.yy,N));S.push(l.translate(-(X.x+X.width/2)+Ba,-(X.y+X.height/2)+Q));break;default:X=isNaN(ta)?16:ta/2,M=this._drawCircle(I,O,{cx:Ba,cy:Q,r:X})}}else if("shieldlabelsymbol"===la)M=X.width,N=X.height,O=I.createGroup(),M=I.createImage({x:Ba-M/2,y:Q-N/2,width:M,height:N,src:X.url}),O.add(M),null!=X.font&&(Q+=.2*X.getHeight(),I=I.createText({type:"text",text:X.text,x:Ba,y:Q,align:"middle",decoration:X.decoration,
rotated:X.rotated,kerning:X.kerning}),I.setFont(X.font),I.setFill(X.color),O.add(I)),M=O;else if("picturemarkersymbol"===la){if(null==ta?(M=X.width,N=X.height):(N=ta,M=X.width/X.height*N,ra&&(null!=ra.dx&&(ra.dx=ra.dx/X.width*M),null!=ra.dy&&(ra.dy=ra.dy/X.height*N))),M=this._drawImage(I,O,{x:Ba-M/2,y:Q-N/2,width:M,height:N,src:X.url}),ja&&(I=M.getNode()))X=(X=this._getVariable(aa,"opacityInfo",!1))?aa.getOpacity(ha,{opacityInfo:X}):null,null!=X?I.setAttribute("opacity",X):I.setAttribute("opacity",
1)}else if("textsymbol"===la){if(aa=X.font){M=null!=ta;ha=aa.family&&!this._reArialFont.test(aa.family);if(M||ha||Z)aa=new aa.constructor(aa.toJson());M&&aa.setSize(ta);Z&&(aa.size+="px");ha&&aa.setFamily(aa.family+","+this._fallbackFont)}M=this._drawText(I,O,{type:"text",text:X.text,x:Ba,y:Q,align:X.getSVGAlign(),decoration:X.decoration||aa&&aa.decoration,rotated:X.rotated,kerning:X.kerning});aa&&M.setFont(aa);ja&&(I=M.getNode(),Ba=X.getSVGBaseline(),Q=X.getSVGBaselineShift(),I&&(I.setAttribute("dominant-baseline",
Ba),Q&&I.setAttribute("baseline-shift",Q),this._applyHalo(M,X.haloColor,X.haloSize)))}M.setTransform(l.multiply(S));M._wrapOffsets=P;return M},_acquireSVGMarker:function(I,S,X,O){I=this._getSVGMarkerId(S,O);var P=this._getSVGMarker(I);P||(P=w.createSVGMarker(S,I,X,O),this._div.getParent().defNode.appendChild(P),this._lineMarkers[I]=P);return P},_getSVGMarkerId:function(I,S){return"marker_"+this._map.id+"_"+I.r+"_"+I.g+"_"+I.b+"_"+S},_getSVGMarker:function(I){return this._lineMarkers[I]},_updateSVGMarkers:function(){if(ja&&
ea){var I=this._lineMarkers,S;for(S in I){var X=I[S];X.setAttribute("id",S+"_temp");X.setAttribute("id",S)}}},_applyHalo:function(I,S,X){var O=S&&X?this._getHaloId(S,X):null;I.setFilter(S&&X?z("webkit")||z("ff")?this._getDilateFilter(S,X,O):this._getOffsetFilter(S,X,O):null)},_getDilateFilter:function(I,S,X){var O=this._getSVGFilter(X);O||(O=this._createSVGFilter({id:X},[k.feMorphology({operator:"dilate",radius:S,result:"dilated"}),k.feFlood({"flood-color":I.toCss(!0)}),k.feComposite({in2:"dilated",
operator:"in",result:"composite"}),k.feMerge("composite","SourceGraphic")]));return O},_getOffsetFilter:function(I,S,X){var O=this._getSVGFilter(X);if(!O){I=I.toCss(!0);O=this._offsetPrimitives;var P,aa=O.length,ha=[],la=[];for(P=0;P<aa;P++){var ta=O[P],Ba="offset"+ta.dir,N="composite"+ta.dir;la.push(N);ha.push(k.feOffset({dx:ta.dx*S,dy:ta.dy*S,"in":"SourceAlpha",result:Ba}),k.feFlood({"flood-color":I}),k.feComposite({in2:Ba,operator:"in",result:N}))}la.push("SourceGraphic");ha.push(k.feMerge.apply(k.feMerge,
la));O=this._createSVGFilter({id:X},ha)}return O},_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(I,S){return"halo_"+this._map.id+"_"+this.id+"_"+I.r+"_"+I.g+"_"+I.b+"_"+I.a+"_"+S},_getSVGFilter:function(I){return this._svgFilters[I]},_createSVGFilter:function(I,S){S=k.createFilter(I,S);var X=this._map,O=X.__visibleRect;S.x=-O.x;S.y=-O.y;
S.width=X.width;S.height=X.height;return this._svgFilters[I.id]=S},_updateSVGFilters:function(I,S,X,O){var P=this._svgFilters,aa,ha,la;for(ha in P)if(aa=P[ha]){if(la=a.byId(ha))null!=I&&la.setAttribute("x",I),null!=S&&la.setAttribute("y",S),null!=X&&la.setAttribute("width",X),null!=O&&la.setAttribute("height",O);null!=I&&(aa.x=I);null!=S&&(aa.y=S);null!=X&&(aa.width=X);null!=O&&(aa.height=O)}},_getScaleMatrix:function(I,S){var X=I.width/I.height,O=1,P=1;isNaN(S)||(1<X?(O=S/I.width,P=S/X/I.height):
(P=S/I.height,O=S*X/I.width));return{xx:O,yy:P}},_symbolizePoint:function(I,S,X,O){var P=S.type,aa=S.style;if("shieldlabelsymbol"!==P&&"picturemarkersymbol"!==P){var ha=S.getStroke();S=S.getFill();aa=aa===B.STYLE_X||aa===B.STYLE_CROSS;var la=ha&&ha.color,ta=aa?la:S;if(X){var Ba=this._getVariable(X,"colorInfo",!1),N=this._getVariable(X,"opacityInfo",!1);Ba&&(ta=X.getColor(O,{colorInfo:Ba})||ta);ta&&N&&(ta=this._applyOpacity(ta,X,N,O));ta&&(aa?ta!==la&&(ha=ha?e.mixin({},ha):{},ha.color=ta):ta!==S&&
(S=ta))}"textsymbol"===P?I.setFill(S):"simplemarkersymbol"===P&&I.setFill(S).setStroke(ha)}},_drawMarkers:function(I,S,X,O){var P=I.geometry,aa=P.points,ha=I.getDojoShape()||this._div.createGroup(),la,ta=aa.length,Ba=[],N=0,Q,ia=X?X.length:0;ha.children[0]&&this._isInvalidShape(S,ha.children[0])&&ha.clear();for(la=0;la<ta;la++){var pa=aa[la];for(Q=0;Q<ia;Q++)Ba[0]=X[Q],this._drawPoint(ha,{x:pa[0],y:pa[1],spatialReference:P.spatialReference},S,ha.children[N++],Ba,O,I)}S=ha.children.length;if(ta*X.length<
S)for(la=S-1;la>=ta*X.length;la--)ha.children[la].removeShape();I._shape=ha},_symbolizeMarkers:function(I,S,X){var O=I.getDojoShape().children,P,aa=O.length;for(P=0;P<aa;P++)this._symbolizePoint(O[P],S,X,I)},_errorHandler:function(I,S){S&&(I.message="Unable to draw graphic (geometry:"+(S.geometry?S.geometry.declaredClass:null)+", symbol:"+(S.symbol?S.symbol.declaredClass:null)+"): "+I.message);this.inherited(arguments)},_rendererLimits:function(){if(qa){var I=1E5;var S=-1E5;var X=1E5}else z("chrome")&&
6>z("chrome")&&(I=8150,S=-1E4,X=1E4);if(I)return{clipLimit:I,rangeMin:S,rangeMax:X,clipBBox:[-I,-I,I,I],clipSegments:[[[-I,-I],[I,-I]],[[I,-I],[I,I]],[[I,I],[-I,I]],[[-I,I],[-I,-I]]]}}(),_clipPolyline:function(I,S){S=this._getCorners(I,S);var X=S.br,O=this._rendererLimits,P=O.rangeMin,aa=O.rangeMax,ha=O.clipBBox,la=O.clipSegments;O=this._isPointWithinRange;var ta=this._isPointWithinBBox,Ba=this._getClipperIntersection,N=this._getPlaneIndex;if(!O(S.tl,P,aa)||!O(X,P,aa)){qa&&this._createSegments(I);
var Q=[];y.forEach(I.segments,function(ia){ia=ia.args;var pa=ia.length,ra=[],M;for(M=0;M<pa;M+=2){var ca=[ia[M],ia[M+1]],sa=[ia[M+2],ia[M+3]],xa=ta(ca,ha),za=ta(sa,ha);if(xa^za){if(za=Ba([ca,sa],la))xa?(M?ra.push(za[1]):ra.push(ca,za[1]),Q.push(ra),ra=[]):ra.push(za[1],sa)}else xa?M?ra.push(sa):ra.push(ca,sa):(za=N(ca,ha),xa=N(sa,ha),-1!==za&&-1!==xa&&za!==xa&&(ca=Ba([ca,sa],la,!0),0<ca.length&&(ca[za]||(za=ca[za[0]]?za[0]:za[1]),ca[xa]||(xa=ca[xa[0]]?xa[0]:xa[1]),sa=ca[za],ca=ca[xa],sa&&ra.push(sa),
ca&&(ra.push(ca),Q.push(ra),ra=[]))))}Q.push(ra)});I.setShape(this._getPathStringFromPaths(Q))}},_clipPolygon:function(I,S){S=this._getCorners(I,S);var X=S.br,O=this._rendererLimits,P=O.clipLimit,aa=O.rangeMin,ha=O.rangeMax,la=O.clipBBox,ta=O.clipSegments;O=this._isPointWithinRange;var Ba=this._isPointWithinBBox,N=this._getClipperIntersection,Q=this._getPlaneIndex,ia=G._pointLineDistance;O(S.tl,aa,ha)&&O(X,aa,ha)||(qa&&this._createSegments(I),S=y.filter(I.segments,function(pa){return pa.args&&pa.args.length}),
S=y.map(S,function(pa){var ra=pa.args,M=ra.length,ca=[];pa=[];var sa;for(sa=0;sa<M;sa+=2){var xa=[ra[sa],ra[sa+1]],za=[ra[sa+2],ra[sa+3]];if(sa===M-2){ca.push(xa);break}var Ca=Ba(xa,la),Ha=Ba(za,la);ca.push(xa);if(Ca^Ha){if(Ha=N([xa,za],ta))xa=Ha[1],xa[Ca?"inOut":"outIn"]=!0,ca.push(xa),pa.push([Ca?"INOUT":"OUTIN",ca.length-1,Ha[0]])}else if(!Ca){Ca=Q(xa,la);var Da=Q(za,la);-1!==Ca&&-1!==Da&&Ca!==Da&&(Ha=N([xa,za],ta,!0),0<Ha.length?(Ha[Ca]||(Ca=Ha[Ca[0]]?Ca[0]:Ca[1]),Ha[Da]||(Da=Ha[Da[0]]?Da[0]:
Da[1]),xa=Ha[Ca],za=Ha[Da],xa&&(xa.outIn=!0,ca.push(xa),pa.push(["OUTIN",ca.length-1,Ca])),za&&(za.inOut=!0,ca.push(za),pa.push(["INOUT",ca.length-1,Da]))):e.isArray(Ca)&&e.isArray(Da)&&(Ha=Ca.concat(Da),Ha.sort(),"0123"===Ha.join("")&&(Ha=[],3===Ca[0]+Ca[1]?Ha.push([P,-P],[-P,P]):Ha.push([-P,-P],[P,P]),Ca=ia(Ha[0],[xa,za]),xa=ia(Ha[1],[xa,za]),ca.push(Ca<xa?Ha[0]:Ha[1]))))}}var La=la[0],Pa=la[1],T=la[2],Y=la[3];y.forEach(ca,function(ya){ya[0]<La&&(ya[1]>=Pa&&ya[1]<=Y?ya[0]=La:(ya[0]=La,ya[1]=ya[1]<
Pa?Pa:Y))});y.forEach(ca,function(ya){ya[1]<Pa&&(ya[0]>=La&&ya[0]<=T?ya[1]=Pa:(ya[1]=Pa,ya[0]=ya[0]<La?La:T))});y.forEach(ca,function(ya){ya[0]>T&&(ya[1]>=Pa&&ya[1]<=Y?ya[0]=T:(ya[0]=T,ya[1]=ya[1]<Pa?Pa:Y))});y.forEach(ca,function(ya){ya[1]>Y&&(ya[0]>=La&&ya[0]<=T?ya[1]=Y:(ya[1]=Y,ya[0]=ya[0]<La?La:T))});ra=0;M=pa.length;if(0<M){do{za=pa[ra];sa=pa[(ra+1)%M];if(za[2]===sa[2]&&"INOUT"===za[0]&&"OUTIN"===sa[0])if(xa=za[1],sa=sa[1],xa<sa)for(xa+=1;xa<sa;xa++)ca[xa][2]=!0;else if(xa>sa){for(xa+=1;xa<ca.length;xa++)ca[xa][2]=
!0;for(xa=0;xa<sa;xa++)ca[xa][2]=!0}ra=(ra+1)%M}while(0!==ra)}M=ca[0];ra=ca[ca.length-1];M[2]&&(ra[2]=!0,y.some(pa,function(ya){return 1===ya[1]?(ca.splice(ca.length-1,0,e.clone(ca[1])),!0):!1}));ca=y.filter(ca,function(ya){return ya[2]?!1:!0});for(ra=0;ra<ca.length-1;ra++)M=ca[ra],(sa=ca[ra+1])&&M[0]===sa[0]&&M[1]===sa[1]&&(sa.outIn?M.outIn=!0:sa.inOut&&(M.inOut=!0),ca.splice(ra+1,1));M=Math.abs;pa=[];for(ra=0;ra<ca.length-1;ra++){za=ca[ra];xa=za[0];za=za[1];Ca=M(xa)===P;Ha=M(za)===P;sa=ca[ra+1];
Da=sa[0];sa=sa[1];var oa=M(Da)===P,ua=M(sa)===P;Ca&&ua?pa.push([ra+1,[xa,sa]]):Ha&&oa&&pa.push([ra+1,[Da,za]])}for(ra=pa.length-1;0<=ra;ra--)sa=pa[ra],xa=ca[sa[0]-1],M=ca[sa[0]],xa.outIn||xa.inOut||M.outIn||M.inOut||ca.splice(sa[0],0,sa[1]);M=ca[0];ra=ca[ca.length-1];M[0]===ra[0]&&M[1]===ra[1]||ca.push(M);return ca}),I.setShape(this._getPathStringFromPaths(S)))},_getCorners:function(I,S){if(qa){I=this._map;var X=S.getExtent(),O=X.spatialReference;S=I.toScreen(new D(X.xmin,X.ymax,O));I=I.toScreen(new D(X.xmax,
X.ymin,O));return{tl:S,br:I}}I=I.getTransformedBoundingBox();return{tl:I[0],br:I[2]}},_createSegments:function(I){I.shape.path=I.vmlPath;I.segmented=!1;I._confirmSegmented();var S=I.segments;1<S.length&&(I.segments=y.filter(S,function(X,O,P){O=P[O+1];return"M"===X.action&&O&&"L"===O.action?(X.args=X.args.concat(O.args),!0):!1}))},_getPathStringFromPaths:function(I){qa?(I=y.map(I,function(S){return"m "+y.map(S,function(X,O){return(1===O?"l ":"")+X.join(",")}).join(" ")}),I.push("e")):I=y.map(I,function(S){return"M "+
y.map(S,function(X){return X.join(",")}).join(" ")});return I.join(" ")},_isPointWithinBBox:function(I,S){var X=S[1],O=S[2],P=S[3],aa=I[0];I=I[1];return aa>S[0]&&aa<O&&I>X&&I<P?!0:!1},_isPointWithinRange:function(I,S,X){var O=I.x;I=I.y;return O<S||I<S||O>X||I>X?!1:!0},_getClipperIntersection:function(I,S,X){var O,P=G._getLineIntersection2,aa=Math.round,ha={length:0};for(O=0;4>O;O++){var la=P(I,S[O]);if(la)if(la[0]=aa(la[0]),la[1]=aa(la[1]),X)ha[O]=la,ha.length++;else return[O,la]}return X?ha:null},
_getPlaneIndex:function(I,S){var X=I[0];I=I[1];var O=S[0],P=S[1],aa=S[2];S=S[3];return X<=O?I>=P&&I<=S?3:I<P?[0,3]:[2,3]:I<=P?X>=O&&X<=aa?0:X<O?[3,0]:[1,0]:X>=aa?I>=P&&I<=S?1:I<P?[0,1]:[2,1]:I>=S?X>=O&&X<=aa?2:X<O?[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(I){this.infoTemplate=I;this._evalSurfaceType();this.onInfoTemplateChange()},add:function(I,S){if(I._graphicsLayer===this)return I;I._suspended=this._suspendGraphics;S||this.graphics.push(I);I._graphicsLayer=this;I._sourceLayer||(I._layer&&"esri.layers.GraphicsLayer"!==I._layer.declaredClass?I._sourceLayer=I._layer:"esri.layers.GraphicsLayer"!==this.declaredClass&&(I._sourceLayer=this));I._layer=this;this.hasWebGLSurface()||(this._updateExtent(I),
this._draw(I));if(!S)this.onGraphicAdd(I);return I},remove:function(I,S,X){if(!S&&!X){S=this.graphics;var O;if(-1===(O=y.indexOf(S,I)))return null;if(!ma||64<=ma)S.splice(O,1);else{var P=S.length;if(P){for(;O<P;)S[O]=S[O+1],O++;S.length--}}}this.hasWebGLSurface()||I.getDojoShape()&&this._removeShape(I,null,X);I._shape=I._graphicsLayer=null;this.onGraphicRemove(I);return I},clear:function(I,S){I=this.graphics;var X,O=!qa;for(X=I.length-1;0<=X;X--)this.remove(I[X],null,O);this.graphics=[];this.hasWebGLSurface()||
this._destroyAllNodes();if(!S)this.onGraphicsClear()},_destroyAllNodes:function(){if(!qa&&this._div){var I;this._childLayer&&(I=this._childLayer.getNode())&&I.parentNode&&I.parentNode.removeChild(I);this._bgGroup.clear();this._div.clear();this._bgGroup=this._div.createGroup();I&&this._div.getEventSource().appendChild(I);this._initOpacity()}},clearNodes:function(){if(!this.hasWebGLSurface()){var I=this.graphics,S=I.length,X;for(X=0;X<S;X++)this._removeShape(I[X],!0,!0);this._destroyAllNodes()}},_graphicVisibilityChanged:function(I){},
_setIEOpacity:function(I,S){var X=I&&I.getNode();if(X){var O=I.strokeStyle,P=X.stroke;O&&P&&(P.opacity=O.color.a*S);I=I.fillStyle;O=X.fill;I&&O&&("tile"===O.type?g.set(X,"opacity",S):O.opacity=I.a*S)}},setOpacity:function(I,S){if(S||this.opacity!=I){var X=this._div;X&&!this.hasWebGLSurface()&&(qa?(y.forEach(this.graphics,function(O){this._setIEOpacity(O._shape,I);this._setIEOpacity(O._bgShape,I)},this),X._esriIeOpacity=I,this._bgGroup._esriIeOpacity=I):"canvas-2d"===this.surfaceType?g.set(X.getEventSource(),
"opacity",I):X.getEventSource().setAttribute("opacity",I));this.opacity=I;if(!S)this.onOpacityChange(I)}},setRenderer:function(I){this.renderer=I;this._evalSDRenderer(!0);this._evalSurfaceType();this.emit("renderer-change",{renderer:this._rndForScale||I})}});u=u([n,U],{declaredClass:"esri.layers.GraphicsLayer",constructor:function(){this._processEvent=e.hitch(this,this._processEvent);this._initLayer()},_initLayer:function(){this.loaded=!0;this.onLoad(this)},_setMap:function(){var I=this.inherited("_setMap",
arguments);this.enableMouseEvents();return I},_unsetMap:function(){this.disableMouseEvents();this.inherited("_unsetMap",arguments)},_processEvent:function(I){var S=this._map,X=I.target,O;I.screenPoint=new t(I.pageX-S.position.x,I.pageY-S.position.y);for(I.mapPoint=S.toMap(I.screenPoint);X&&!(O=X.e_graphic);)X=X.parentNode;if(O)return I.graphic=O,I},_onMouseOverHandler:function(I){if(this._processEvent(I))this.onMouseOver(I)},_onMouseMoveHandler:function(I){if(this._processEvent(I))this.onMouseMove(I)},
_onMouseDragHandler:function(I){if(this._processEvent(I))this.onMouseDrag(I)},_onMouseOutHandler:function(I){if(this._processEvent(I))this.onMouseOut(I)},_onMouseDownHandler:function(I){this._downGr=this._downPt=null;this._processEvent(I)&&(p.disconnect(this._onmousemove_connect),p.disconnect(this._onmousedrag_connect),this._onmousedrag_connect=p.connect(this._div.getEventSource(),"onmousemove",this,"_onMouseDragHandler"),this._downGr=I.graphic,this._downPt=I.screenPoint.x+","+I.screenPoint.y,this.onMouseDown(I))},
_onMouseUpHandler:function(I){this._upGr=this._upPt=null;this._processEvent(I)&&(p.disconnect(this._onmousedrag_connect),p.disconnect(this._onmousemove_connect),this._onmousemove_connect=p.connect(this._div.getEventSource(),"onmousemove",this,"_onMouseMoveHandler"),this._upGr=I.graphic,this._upPt=I.screenPoint.x+","+I.screenPoint.y,this.onMouseUp(I))},_onClickHandler:function(I){if(this._processEvent(I)){var S=this._downGr,X=this._upGr;S&&X&&S===X&&this._downPt===this._upPt&&(qa&&(r._ieGraphic=I.graphic),
this.onClick(I))}},_onDblClickHandler:function(I){if(this._processEvent(I))this.onDblClick(I)},onMouseOver:function(){},onMouseMove:function(){},onMouseDrag:function(){},onMouseOut:function(){},onMouseDown:function(){},onMouseUp:function(){},onClick:function(){},onDblClick:function(){},enableMouseEvents:function(){if(!this._mouseEvents){var I=p.connect,S=this._div.getEventSource();Z||(this._onmouseover_connect=I(S,"onmouseover",this,"_onMouseOverHandler"),this._onmousemove_connect=I(S,"onmousemove",
this,"_onMouseMoveHandler"),this._onmouseout_connect=I(S,"onmouseout",this,"_onMouseOutHandler"),this._onmousedown_connect=I(S,"onmousedown",this,"_onMouseDownHandler"),this._onmouseup_connect=I(S,"onmouseup",this,"_onMouseUpHandler"),this._onclick_connect=I(S,"onclick",this,"_onClickHandler"),this._ondblclick_connect=I(S,"ondblclick",this,"_onDblClickHandler"));this._mouseEvents=!0}},disableMouseEvents:function(){if(this._mouseEvents){var I=p.disconnect;I(this._onmouseover_connect);I(this._onmousemove_connect);
I(this._onmousedrag_connect);I(this._onmouseout_connect);I(this._onmousedown_connect);I(this._onmouseup_connect);I(this._onclick_connect);I(this._ondblclick_connect);this._mouseEvents=!1}}});u._GraphicsContainer=h;u._GraphicsLayer=n;z("extend-esri")&&(e.setObject("layers.GraphicsLayer",u,r),e.setObject("layers._GraphicsContainer",h,r),e.setObject("layers._GraphicsLayer",n,r));return u})},"dojox/gfx":function(){define(["dojo/_base/lang","./gfx/_base","./gfx/renderer!"],function(F,u,b){u.switchTo(b);
return u})},"dojox/gfx/renderer":function(){define(["./_base","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/_base/config"],function(F,u,b,p,e){var y=null;b.add("vml",function(q,m,f){f.innerHTML='\x3cv:shape adj\x3d"1"/\x3e';q="adj"in f.firstChild;f.innerHTML="";return q});return{load:function(q,m,f){function g(){m(["dojox/gfx/"+a],function(k){F.renderer=a;y=k;f(k)})}if(y&&"force"!=q)f(y);else{var a=e.forceGfxRenderer;q=!a&&(u.isString(e.gfxRenderer)?e.gfxRenderer:"svg,vml,canvas,silverlight").split(",");
for(var d,l;!a&&q.length;)switch(q.shift()){case "svg":"SVGAngle"in p.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"))&&(l=!0):navigator.plugins["Silverlight Plug-In"]&&(l=!0)}catch(k){l=!1}finally{d=null}l&&(a="silverlight");break;case "canvas":p.global.CanvasRenderingContext2D&&(a="canvas")}"canvas"===a&&!1!==e.canvasEvents&&(a="canvasWithEvents");e.isDebug&&console.log("gfx renderer \x3d "+
a);"svg"==a&&"undefined"!=typeof window.svgweb?window.svgweb.addOnLoad(g):g()}}}})},"esri/layers/gfxSniff":function(){define(["dojo/has","dojox/gfx"],function(F,u){F.add("esri-svg",function(){return-1!==u.renderer.toLowerCase().indexOf("svg")});return F})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n){var h=F([m],{declaredClass:"esri.layers.Layer",_eventMap:{error:["error"],load:["layer"],"opacity-change":["opacity"],"update-end":["error"],"visibility-change":["visible"]},constructor:function(c,r){this._attrs={};c&&p.isString(c)?this._url=l.urlToObject(this.url=l.normalize(c)):(this.url=this._url=null,(r=r||c)&&(r.layerDefinition||r.query)&&(r=null));this.spatialReference=new k(4326);this.initialExtent=new n(-180,-90,180,90,new k(4326));this._map=this._div=
null;this.normalization=!0;r&&(r.id&&(this.id=r.id),this.arcgisProps=r.arcgisProps,this.parentLayer=r.parentLayer,!1===r.visible&&(this.visible=!1),g.isDefined(r.opacity)&&(this.opacity=r.opacity),g.isDefined(r.minScale)&&this.setMinScale(r.minScale),g.isDefined(r.maxScale)&&this.setMaxScale(r.maxScale),this.attributionDataUrl=r.attributionDataUrl||"",this.hasAttributionData=!!this.attributionDataUrl,g.isDefined(r.showAttribution)&&(this.showAttribution=r.showAttribution),this.className=r.className,
this.refreshInterval=r.refreshInterval||0);this._errorHandler=p.hitch(this,this._errorHandler);this._scheduledRefresh=p.hitch(this,this._scheduledRefresh);this.refresh=p.hitch(this,this.refresh);if(this.managedSuspension){var v=this._setMap;this._setMap=function(z){var C=v.apply(this,arguments);this._fireAttach(z);this.evaluateSuspension();if(this.suspended&&!z.loaded)var x=b.connect(z,"onLoad",this,function(){b.disconnect(x);x=null;this.evaluateSuspension()});return C}}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(c){this.loaded||(this.loadError=c);this.onError(c)},_setMap:function(c,r,v,z){this._map=c;this._lyrZEHandle=b.connect(c,"onZoomEnd",this,this._processMapScale);if(c.loaded)this.visibleAtMapScale=this._isMapAtVisibleScale();else var C=b.connect(c,"onLoad",this,function(){b.disconnect(C);
C=null;this._processMapScale()})},_unsetMap:function(c,r){b.disconnect(this._lyrZEHandle);this._map=this._lyrZEHandle=null;this._resumedOnce=void 0;this.suspended=!0;this._fireDetach(c)},_fireAttach:function(c){this.attached=!0;this.onAttach({map:c})},_fireDetach:function(c){this.attached=!1;this.onDetach({map:c})},_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(c,r){this.updating&&(this.updating=!1,this.attr("data-updating"),this._refreshRT(),this.onUpdateEnd(c,r),this._map&&this._map._decr())},_getToken:function(){var c=this._url,r=this.credential;return c&&c.query&&c.query.token||r&&r.token||void 0},_findCredential:function(){this.credential=f.id&&this._url&&f.id.findCredential(this._url.path)},_useSSL:function(){var c=this._url,r=/^http:/i;this.url&&(this.url=this.url.replace(r,"https:"));c&&c.path&&(c.path=c.path.replace(r,"https:"))},
refresh:function(c){},show:function(){this.setVisibility(!0)},hide:function(){this.setVisibility(!1)},setMinScale:function(c){this.setScaleRange(c)},setMaxScale:function(c){this.setScaleRange(null,c)},setScaleRange:function(c,r){var v=g.isDefined(c),z=g.isDefined(r);this.loaded||(this._hasMin=this._hasMin||v,this._hasMax=this._hasMax||z);var C=this.minScale,x=this.maxScale;this.minScale=(v?c:this.minScale)||0;this.maxScale=(z?r:this.maxScale)||0;if(C!==this.minScale||x!==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 c=void 0===this._resumedOnce,r=this.className,v=this._attrs,z=this.getNode(),C;if(c){this._resumedOnce=!0;if(r&&z){var x=z.getAttribute("class")||"";(new RegExp("(^|\\s)"+r+"(\\s|$)","i")).test(x)||z.setAttribute("class",x+((x?" ":"")+r))}if(v&&z)for(C in v)v.hasOwnProperty(C)&&z.setAttribute(C,v[C])}this._refreshRT();this.onResume({firstOccurrence:c});if(this._map)this._map.onLayerResume(this)},_processMapScale:function(){var c=
this.visibleAtMapScale;this.visibleAtMapScale=this._isMapAtVisibleScale();c!==this.visibleAtMapScale&&(this.onScaleVisibilityChange(),this.evaluateSuspension())},isVisibleAtScale:function(c){return c?h.prototype._isMapAtVisibleScale.apply(this,arguments):!1},_isMapAtVisibleScale:function(c,r){if(!(c||this._map&&this._map.loaded))return!1;var v=this._map;c=c||v.getScale();var z=this.minScale,C=this.maxScale,x=!z,E=!C,B;r&&(B=v.width>v.height?v.width:v.height);x||(c<=z?x=!0:r&&(x=Math.abs(z-c)/z<1/
B));E||(c>=C?E=!0:r&&(E=Math.abs(C-c)/C<1/B));return x&&E},getAttributionData:function(){var c=this.attributionDataUrl,r=new e(d._dfdCanceller);this.hasAttributionData&&c?(r._pendingDfd=a({url:c,content:{f:"json"},handleAs:"json",callbackParamName:"callback"}),r._pendingDfd.then(function(v){r.callback(v)},function(v){r.errback(v)})):(c=Error("Layer does not have attribution data"),c.log=!!u.isDebug,r.errback(c));return r},getResourceInfo:function(){var c=this.resourceInfo;return p.isString(c)?y.fromJson(c):
p.clone(c)},getMap:function(){return this._map},getNode:function(){return this._div},attr:function(c,r){var v=this.getNode();if("data-reference"===c&&11>q("ie"))return this;v&&(null==r?v.removeAttribute(c):v.setAttribute(c,r));this._attrs&&(null==r?delete this._attrs[c]:this._attrs[c]=r);return this},setRefreshInterval:function(c){var r=this.refreshInterval;this.refreshInterval=c;this._toggleRT(!1);c&&this._toggleRT(!0);if(r!==c)this.onRefreshIntervalChange();return this},_toggleRT:function(c){c&&
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(c){var r=
this._refreshTS;r&&(c=this._reCheckTS.test(c)?c.replace(this._reReplaceTS,"$$$1"+r):c+((-1===c.indexOf("?")?"?":"\x26")+"_ts\x3d"+r));return c},setNormalization:function(c){this.normalization=c},setVisibility:function(c){this.visible!==c&&(this.visible=c,this.onVisibilityChange(this.visible),this.evaluateSuspension());this.attr("data-hidden",c?null:"")},onLoad:function(){},onAttach:function(c){},onDetach:function(c){},onVisibilityChange:function(){},onScaleRangeChange:function(){},onScaleVisibilityChange:function(){},
onSuspend:function(){},onResume:function(){},onUpdate:function(){},onUpdateStart:function(){},onUpdateEnd:function(){},onRefreshIntervalChange:function(){},onRefreshTick:function(){},onError:function(){}});q("extend-esri")&&p.setObject("layers.Layer",h,f);return h})},"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 ./support/requestUtils".split(" "),
function(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r,v){function z(V){V=new y(V);return(V.host+(V.port?":"+V.port:"")).toLowerCase()}function C(V){return this._xhr?this._xhr.getResponseHeader(V):null}function x(V,ea){var ba=d.objectToQuery(V.content);ba&&(V.url+=(-1===V.url.indexOf("?")?"?":"\x26")+ba);if(2E3<V.url.length){if("data:"!==V.url.toLowerCase().slice(0,5))return V=new p,V.reject(e.mixin(Error(),{message:"When using responseType 'image', URL length cannot exceed 2000 characters."})),V;if(3E6<V.url.length)return V=
new p,V.reject(e.mixin(Error(),{message:"When using responseType 'image', data URL length cannot exceed 3000000 characters."})),V}var ma=new Image;ea.allowImageDataAccess&&(ma.crossOrigin=V.withCredentials?"use-credentials":"anonymous");var va=!1,da=new p(function(ka){va=!0;ma.onload=ma.onerror=ma.onabort=null;ma.src=""});ea=function(ka){ma.onload=ma.onerror=ma.onabort=null;va||da.reject(Error("Unable to load the resource"))};ma.onload=function(){ma.onload=ma.onerror=ma.onabort=null;va||da.resolve(this)};
ma.onerror=ea;ma.onabort=ea;ma.alt="";ma.src=V.url;return da}function E(V,ea,ba,ma){var va=!1,da=!1,ka=!1,I;if(h.isDefined(ea))if(e.isObject(ea)){va=!!ea.useProxy;da=!!ea.usePost;ka=!!ea.returnProgress;var S=ea.crossOrigin}else va=!!ea;V=e.mixin({},V);delete V._credential;V._ssl&&(V.url=V.url.replace(/^http:/i,"https:"));10>n("ie")&&!fa.test(V.url)&&(V.url=encodeURI(V.url));var X=V.content,O=V.url,P=ba&&V.form,aa=U;S=h.isDefined(S)?S:aa.useCors;V.load=function(Ga){if(Ga){if(Ga.error){var Na=e.mixin(Error(),
Ga.error);Na.log=!!b.isDebug}else"error"===Ga.status&&(Na=e.mixin(Error(),Ga),Na.log=!!b.isDebug);Na&&(V.failOk=!Na.log,h.isDefined(Na.httpCode)||(Na.httpCode=Na.code))}return Na||Ga};V.error=function(Ga,Na){Na&&Na.xhr&&Na.xhr.abort();Ga instanceof Error||(Ga=e.mixin(Error(),Ga));Ga.log=!!b.isDebug;V.failOk=!Ga.log;aa.errorHandler(Ga,Na);return Ga};V._token&&(V.content=V.content||{},V.content.token=V._token);var ha=0;if(X&&O){var la=d.objectToQuery(X);ha=la.length+O.length+1;n("esri-url-encodes-apostrophe")&&
(ha=la.replace(/'/g,"%27").length+O.length+1)}V.timeout=h.isDefined(V.timeout)?V.timeout:aa.timeout;V.handleAs=V.handleAs||"json";try{var ta=S&&c.canUseXhr(V.url)&&!/https?:\/\/[^\/]+\/[^\/]+\/admin\/?(\/.*)?$/i.test(V.url),Ba=c.hasSameOrigin(V.url,window.location.href)||ta,N=da||ba||ha>aa.postLength?!0:!1,Q=Ba||-1===V.handleAs.indexOf("json")||!V.callbackParamName||ba?!1:!0,ia=c.getProxyRule(V.url)||aa.alwaysUseProxy||va||!("image"===V.handleAs&&!ea.allowImageDataAccess||Q&&!N||Ba)?!0:!1;ba&&!n("esri-file-upload")&&
!ia&&ta&&(ia=!0);if(ia){var pa=c.getProxyUrl(O,S);var ra=pa.path;pa._xo&&(ta=!0);!N&&ra.length+1+ha>aa.postLength&&(N=!0);V.url=ra+"?"+O;if(N)V.content=e.mixin(pa.query||{},X);else{var M=d.objectToQuery(e.mixin(pa.query||{},X));M&&(V.url+="?"+M);V.content=null}}if(!Q||N||ia){var ca=V.headers;!ta||ca&&ca.hasOwnProperty("X-Requested-With")||(ca=V.headers=ca||{},ca["X-Requested-With"]=null);if(ba){var sa=V.callbackParamName||"callback.html",xa=V.callbackElementName||"textarea",za,Ca,Ha=P.elements?P.elements.length:
0;if(X=V.content)for(za in X.token&&c.isSecureProxyService(O)&&(O+=(-1===O.indexOf("?")?"?":"\x26")+"token\x3d"+X.token,V.url=ia?ra+"?"+O:O,delete X.token),X){var Da=X[za];if(h.isDefined(Da)){var La=null;for(Ca=0;Ca<Ha;Ca++){var Pa=P.elements[Ca];if(Pa.name===za){La=Pa;break}}La?La.value=Da:ma?P.append(za,Da):P.appendChild(a.create("input",{type:"hidden",name:za,value:Da}))}}if(n("esri-file-upload")){u.forEach(P.elements,function(Ga){Ga.name===sa&&P.removeChild(Ga)});var T=ma?P:new FormData(P);if(11<=
n("safari")&&"entries"in T&&"delete"in T){ma=[];for(var Y=T.entries(),oa=Y.next();!oa.done;){var ua=oa.value;ua[1]instanceof File&&""===ua[1].name&&ma.push(ua[0]);oa=Y.next()}ma.forEach(function(Ga){T.delete(Ga)})}V.contentType=!1;V.postData=T;delete V.form}else{P.enctype="multipart/form-data";9>n("ie")&&(P.encoding="multipart/form-data");P.method="post";u.some(P.elements,function(Ga){return Ga.name===sa})||P.appendChild(a.create("input",{type:"hidden",name:sa,value:xa}));if(-1!==O.toLowerCase().indexOf("addattachment")||
-1!==O.toLowerCase().indexOf("updateattachment"))O+=(-1===O.indexOf("?")?"?":"\x26")+sa+"\x3d"+xa,V.url=ia?ra+"?"+O:O;delete V.content}}if(ta&&!V.hasOwnProperty("withCredentials")&&"with-credentials"===U.useCors){ra=ia?ra:O;var ya=c.canUseXhr(ra,!0),Ea=-1<ya?U.corsEnabledServers[ya]:null;if(Ea&&Ea.hasOwnProperty("withCredentials"))Ea.withCredentials&&(V.withCredentials=!0);else if(l.id){var Fa=l.id.findServerInfo(ra);Fa&&Fa.webTierAuth&&(V.withCredentials=!0)}}V=J?J(V):V;var Ka=function(){if("image"===
V.handleAs)return x(V,ea);if(N){if(ba&&!n("esri-file-upload")){I=new p(function(){Ga.cancel()});var Ga=g.post(V.url,V).then(function(Ra){I.resolve(Ra)}).otherwise(function(Ra){I.reject(Ra)});I.addCallback(function(Ra){return V.load(Ra)});I.addErrback(function(Ra){return V.error(Ra)});return I}!ia&&n("safari")&&(V.url+=(-1===V.url.indexOf("?")?"?":"\x26")+"_ts\x3d"+(new Date).getTime()+Z++);if(ka){V.uploadProgress=!0;V.data=V.postData;V.query=V.content;I=new p(function(){Na.cancel()});var Na=m.post(V.url,
V).then(function(Ra){I.resolve(Ra)},function(Ra){I.reject(Ra)},function(Ra){I.progress({transferType:Ra.transferType,loaded:Ra.loaded,total:Ra.total})});I.addCallback(function(Ra){return V.load(Ra)});I.addErrback(function(Ra){return V.error(Ra)});return I}return q.post(V)}return q.get(V)};return V.withCredentials&&v.isNoCorsRequestRequired(O)?I=v.sendNoCorsRequest(O,X).addBoth(function(){var Ga=Ka();I.ioArgs=Ga.ioArgs;return Ga}):Ka()}V=J?J(V):V;V.jsonp=V.callbackParamName;V.query=V.content;I=new p(function(){Ja.cancel()});
var Ja=f.get(V.url,V).then(function(Ga){I.resolve(Ga)}).otherwise(function(Ga){I.reject(Ga)});I.addCallback(function(Ga){return V.load(Ga)});I.addErrback(function(Ga){return V.error(Ga)});return I}catch(Ga){return I=new p,I.errback(V.error(Ga)),I}}function B(V){var ea=U.corsStatus,ba=c.canUseXhr(V,!0);-1<ba&&U.corsEnabledServers.splice(ba,1);var ma=new p;ma.reject({log:!!b.isDebug});ea[z(V)]=ma.promise;return ba}function w(V){var ea=U.corsStatus;try{var ba=z(V);if(U.corsDetection&&U.useCors&&n("esri-cors")&&
V&&-1!==V.toLowerCase().indexOf("/rest/services")&&!c.hasSameOrigin(V,window.location.href)&&!c.canUseXhr(V)){if(ea[ba]&&!ea[ba].isCanceled())return ea[ba];var ma=new p(r._dfdCanceller);ea[ba]=ma.promise;var va=q.get({url:V.substring(0,V.toLowerCase().indexOf("/rest/")+6)+"info",content:{f:"json"},failOk:!0,handleAs:"json",headers:{"X-Requested-With":null},timeout:1E3*U.corsDetectionTimeout});ma._pendingDfd=va;va.then(function(da){da?(c.canUseXhr(V)||U.corsEnabledServers.push(ba),ma.resolve()):ma.reject()},
function(da){ma.reject(da)});return ma.promise}}catch(da){console.log("esri._detectCors: an unknown error occurred while detecting CORS support")}return qa}function D(V){J=V}function t(V,ea,ba,ma){function va(ta){ta._pendingDfd=E(ba,ma,P,O);if(!ta._pendingDfd){ta.ioArgs=ta._pendingDfd&&ta._pendingDfd.ioArgs;var Ba=Error("Deferred object is missing");Ba.log=!!b.isDebug;ta.errback(Ba);ta._pendingDfd=null;return ta}ta._pendingDfd.addCallback(function(N){if(!N)return N;var Q=ta._pendingDfd&&ta._pendingDfd.ioArgs&&
ta._pendingDfd.ioArgs.xhr;if(!Q)return N;if(Q=Q.getResponseHeader("Content-Type"))if(Q=Q.toLowerCase(),-1===Q.indexOf("text/plain")&&-1===Q.indexOf("application/json"))return N;if(N instanceof ArrayBuffer&&750>=N.byteLength)Q=new Blob([N]);else if(N instanceof Blob&&750>=N.size)Q=N;else return N;var ia=new p,pa=new FileReader;pa.readAsText(Q);pa.onloadend=function(){if(!pa.error)try{var ra=JSON.parse(pa.result);if(ra.error)var M=ra.error}catch(ca){}M?(M=e.mixin(Error(),M),M.log=!!b.isDebug,null==
M.httpCode&&(M.httpCode=M.code),ia.reject(M)):ia.resolve(N)};return ia.promise}).addCallback(function(N){ta.ioArgs=ta._pendingDfd&&ta._pendingDfd.ioArgs;ma.returnFullResponse&&(N={data:N,_xhr:ta.ioArgs&&ta.ioArgs.xhr,getHeader:C});ta.callback(N);ta._pendingDfd=null}).addErrback(function(N){if(N){var Q=N.code;var ia=N.subcode;var pa=(pa=N.messageCode)&&pa.toUpperCase()}if(N&&403==Q&&(4==ia||N.message&&-1<N.message.toLowerCase().indexOf("ssl")&&-1===N.message.toLowerCase().indexOf("permission"))){if(!ba._ssl){ba._ssl=
ba._sslFromServer=!0;t(ta,!0,ba,ma);return}}else if(N&&415==N.status){if(B(ba.url),!ba._err415){ba._err415=1;t(ta,!0,ba,ma);return}}else if(l.id&&-1!==u.indexOf(l.id._errorCodes,Q)&&!l.id._isPublic(ba.url)&&!ka&&(403!=Q||-1===u.indexOf(ja,pa)&&(!h.isDefined(ia)||2==ia&&ba._token))){ta._pendingDfd=l.id.getCredential(ba.url,{token:ba._token,error:N});ta._pendingDfd.addCallback(function(ra){ba._token=ra.token;ba._credential=ra;ba._ssl=ba._sslFromServer||ra.ssl;t(ta,!0,ba,ma)}).addErrback(function(ra){ta.errback(ra);
ta._pendingDfd=null});return}ta.ioArgs=ta._pendingDfd&&ta._pendingDfd.ioArgs;ta.isFulfilled()||ta.errback(N);ta._pendingDfd=null}).then(null,null,function(N){ta.progress(N)})}var da=ba.form,ka=ma.disableIdentityLookup,I=ma._preLookup,S=!1;if(n("esri-workers")&&!1!==U.useWorkers)if(!0===ma.useWorkers||!0===U.useWorkers)S=!0;else if(ma.workerOptions){var X=ma.workerOptions;if(X.callback||X.worker&&X.worker.worker instanceof Worker)S=!0}var O=da&&n("esri-file-upload")&&da instanceof FormData,P=da&&(da.elements?
u.some(da.elements,function(ta){return"file"===ta.type}):O),aa=-1!==ba.url.toLowerCase().indexOf("token\x3d")||ba.content&&ba.content.token||P&&u.some(da.elements,function(ta){return"token"===ta.name})?1:0;if(!ea){V.addCallback(function(ta){if(ta&&(/\/sharing\/rest\/accounts\/self/i.test(ba.url)||/\/sharing\/rest\/portals\/self/i.test(ba.url))){if(!aa&&!ba._token&&ta.user&&ta.user.username){U.webTierAuthServers.push(z(ba.url));var Ba=U.corsEnabledServers,N=c.canUseXhr(ba.url,!0),Q={host:z(ba.url),
withCredentials:!0};if(-1===N)Ba.push(Q);else{var ia=Ba[N];ia instanceof RegExp?(Q.host=ia,Ba.splice(N,1,Q)):"object"===typeof ia?ia.withCredentials=!0:Ba.splice(N,1,Q)}}Array.isArray(ta.authorizedCrossOriginNoCorsDomains)&&v.registerNoCorsDomains(ta.authorizedCrossOriginNoCorsDomains)}if(ta=ba._credential)if(Ba=(Ba=l.id.findServerInfo(ta.server))&&Ba.owningSystemUrl)Ba=Ba.replace(/\/?$/,"/sharing"),(ta=l.id.findCredential(Ba,ta.userId))&&-1===l.id._getIdenticalSvcIdx(Ba,ta)&&ta.resources.splice(0,
0,Ba)});V.addBoth(function(ta){delete ba._credential;!ta||n("ie")&&ta.nodeType||(ta._ssl=ba._ssl)});var ha=ba.load,la=ba.error;ha&&V.addCallback(function(ta){var Ba=V._pendingDfd;Ba=Ba&&Ba.ioArgs;return ha.call(Ba&&Ba.args,ta,Ba)});la&&V.addErrback(function(ta){var Ba=V._pendingDfd;Ba=Ba&&Ba.ioArgs;return la.call(Ba&&Ba.args,ta,Ba)})}!l.id||aa||ba._token||l.id._isPublic(ba.url)||ka&&!I||!(ea=l.id.findCredential(ba.url))||(ba._token=ea.token,ba._ssl=ea.ssl);S?ma.workerOptions&&ma.workerOptions.worker?
(G||(G=q),q=ma.workerOptions.worker,va(V)):F(["./workers/RequestClient"],function(ta){G||(G=q);if(ma.workerOptions){var Ba=ma.workerOptions;q=ta.getClient(Ba.callback,Ba.cbFunction)}else q=ta.getClient();va(V)}):(G&&(q=G,G=null),va(V));return V}function A(V,ea){V.url=c.fixUrl(V.url);ea=ea||{};var ba=new p(r._dfdCanceller),ma=w(V.url);ba._pendingDfd=ma;ma.always(function(va){va&&"cancel"===va.dojoType?ba.reject(va):t(ba,!1,V,ea)});return ba}var G=null,J,U=k.defaults.io,ja=["COM_0056","COM_0057","SB_0008"],
Z=0,fa=/%[0-9A-F]{2}/i,qa=function(){var V=new p;V.resolve();return V.promise}();A._makeRequest=E;A._processRequest=t;A._disableCors=B;A._detectCors=w;A.setRequestPreCallback=D;n("extend-esri")&&(l.request=A,l._makeRequest=E,l._processRequest=t,l._disableCors=B,l._detectCors=w,l.setRequestPreCallback=D);return A})},"esri/core/request/script":function(){define("require exports dojo/Deferred dojo/request/script dojo/text!./iframe.html ../sniff".split(" "),function(F,u,b,p,e,y){function q(){var c=document.createElement("iframe");
c.name="esri_core_jsonp_iframe";c.style.display="none";c.setAttribute("sandbox","allow-scripts");if(!y("ff")&&"srcdoc"in c){var r=F.toUrl("dojo/dojo.js"),v=e.replace("../../../dojo/dojo.js",r);r=r.slice(0,-7);v=v.replace("../../../dojo/",r);c.srcdoc=v}else v=F.toUrl("./iframe.html"),"http:"===window.location.protocol&&0===v.indexOf("https:")&&(v=v.replace("https:","http:")),c.src=v;document.body.appendChild(c);return c}function m(){var c=new MessageChannel;c.port1.addEventListener("message",f);c.port1.start();
return c}function f(c){var r=c.data;if("ready"===r){r=0;for(var v=n;r<v.length;r++)c=v[r],a(c,l);n=null}else if(c=h[r.id])delete h[r.id],r.isError?c.dfd.reject(Error(r.message)):c.dfd.resolve(r.response)}function g(c,r){c.addEventListener("load",function(){c.contentWindow.postMessage("init","*",[r.port2])})}function a(c,r){h[c.message.id]=c;r.port1.postMessage(c.message)}Object.defineProperty(u,"__esModule",{value:!0});var d,l,k=0,n=[],h={};u.get=function(c,r){if(!y("esri-script-sandbox"))return p.get(c,
r);var v=null;r&&(v={jsonp:r.jsonp,preventCache:r.preventCache,query:r.query,timeout:r.timeout});r=new b(function(){if(n){var C=n.indexOf(z);-1<C&&n.splice(C,1)}else z.message.id in h&&delete h[z.message.id]});var z={dfd:r,message:{id:"id"+(++k+Math.random()),url:c,options:v}};d||(d=q(),l=m(),g(d,l));n?n.push(z):a(z,l);return r.promise}})},"dojo/request/script":function(){define("module ./watch ./util ../_base/kernel ../_base/array ../_base/lang ../on ../dom ../dom-construct ../has ../_base/window".split(" "),
function(F,u,b,p,e,y,q,m,f,g,a){function d(B,w){B.canDelete&&c._remove(B.id,w.options.frameDoc,!0)}function l(B){E&&E.length&&(e.forEach(E,function(w){c._remove(w.id,w.frameDoc);w.frameDoc=null}),E=[]);return B.options.jsonp?!B.data:!0}function k(B){return!!this.scriptLoaded}function n(B){return(B=B.options.checkString)&&eval("typeof("+B+') !\x3d\x3d "undefined"')}function h(B,w){if(this.canDelete){var D=this.response.options;E.push({id:this.id,frameDoc:D.ioArgs?D.ioArgs.frameDoc:D.frameDoc});D.ioArgs&&
(D.ioArgs.frameDoc=null);D.frameDoc=null}w?this.reject(w):this.resolve(B)}function c(B,w,D){var t=b.parseArgs(B,b.deepCopy({},w));B=t.url;w=t.options;var A=b.deferred(t,d,l,w.jsonp?null:w.checkString?n:k,h);y.mixin(A,{id:r+v++,canDelete:!1});w.jsonp&&((new RegExp("[?\x26]"+w.jsonp+"\x3d")).test(B)||(B+=(~B.indexOf("?")?"\x26":"?")+w.jsonp+"\x3d"+(w.frameDoc?"parent.":"")+r+"_callbacks."+A.id),A.canDelete=!0,x[A.id]=function(U){t.data=U;A.handleResponse(t)});b.notify&&b.notify.emit("send",t,A.promise.cancel);
if(!w.canAttach||w.canAttach(A)){var G=c._attach(A.id,B,w.frameDoc,function(U){if(!(U instanceof Error)){var ja=Error("Error loading "+(U.target?U.target.src:"script"));ja.source=U;U=ja}A.reject(U);c._remove(A.id,w.frameDoc,!0)});if(!w.jsonp&&!w.checkString)var J=q(G,z,function(U){if("load"===U.type||C.test(G.readyState))J.remove(),A.scriptLoaded=U})}u(A);return D?A:A.promise}g.add("script-readystatechange",function(B,w){return"undefined"!==typeof w.createElement("script").onreadystatechange&&("undefined"===
typeof B.opera||"[object Opera]"!==B.opera.toString())});var r=F.id.replace(/[\/\.\-]/g,"_"),v=0,z=g("script-readystatechange")?"readystatechange":"load",C=/complete|loaded/,x=p.global[r+"_callbacks"]={},E=[];c.get=c;c._attach=function(B,w,D,t){D=D||a.doc;var A=D.createElement("script");if(t)q.once(A,"error",t);A.type="text/javascript";try{A.src=w}catch(G){t&&t(A)}A.id=B;A.async=!0;A.charset="utf-8";return D.getElementsByTagName("head")[0].appendChild(A)};c._remove=function(B,w,D){f.destroy(m.byId(B,
w));x[B]&&(D?x[B]=function(){delete x[B]}:delete x[B])};c._callbacksProperty=r+"_callbacks";return c})},"esri/core/sniff":function(){define(["../sniff"],function(F){return F})},"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(F,u,b,p,e,y,q,m,f,g,a,d){function l(C){return!this.isFulfilled()}function k(C){return!!this._finished}
function n(C,x){if(!x)try{var E=C.options,B=c.doc(c._frame),w=E.handleAs;if("html"!==w){if("xml"===w)if("html"===B.documentElement.tagName.toLowerCase()){m("a",B.documentElement).orphan();var D=B.documentElement.innerText||B.documentElement.textContent;D=D.replace(/>\s+</g,"\x3e\x3c");C.text=y.trim(D)}else C.data=B;else C.text=B.getElementsByTagName("textarea")[0].value;e(C)}else C.data=B}catch(t){x=t}x?this.reject(x):this._finished?this.resolve(C):this.reject(Error("Invalid dojo/request/iframe request state"))}
function h(C){this._callNext()}function c(C,x,E){var B=p.parseArgs(C,p.deepCreate(z,x),!0);C=B.url;x=B.options;if("GET"!==x.method&&"POST"!==x.method)throw Error(x.method+" not supported by dojo/request/iframe");c._frame||(c._frame=c.create(c._iframeName,v+"();"));C=p.deferred(B,null,l,k,n,h);C._callNext=function(){this._calledNext||(this._calledNext=!0,c._currentDfd=null,c._fireNextRequest())};C._legacy=E;c._dfdQueue.push(C);c._fireNextRequest();b(C);return E?C:C.promise}var r=F.id.replace(/[\/\.\-]/g,
"_"),v=r+"_onload";d.global[v]||(d.global[v]=function(){var C=c._currentDfd;if(C){var x=g.byId(C.response.options.form)||C._tmpForm;if(x){for(var E=C._contentToClean,B=0;B<E.length;B++)for(var w=E[B],D=0;D<x.childNodes.length;D++){var t=x.childNodes[D];if(t.name===w){a.destroy(t);break}}C._originalAction&&x.setAttribute("action",C._originalAction);C._originalMethod&&(x.setAttribute("method",C._originalMethod),x.method=C._originalMethod);C._originalTarget&&(x.setAttribute("target",C._originalTarget),
x.target=C._originalTarget)}C._tmpForm&&(a.destroy(C._tmpForm),delete C._tmpForm);C._finished=!0}else c._fireNextRequest()});var z={method:"POST"};c.create=function(C,x,E){if(d.global[C])return d.global[C];if(d.global.frames[C])return d.global.frames[C];E||(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"),
E=f("config-dojoBlankHtmlUrl")||u.toUrl("dojo/resources/blank.html"));x=a.place('\x3ciframe id\x3d"'+C+'" name\x3d"'+C+'" src\x3d"'+E+'" onload\x3d"'+x+'" style\x3d"position: absolute; left: 1px; top: 1px; height: 1px; width: 1px; visibility: hidden"\x3e',d.body());return d.global[C]=x};c.doc=function(C){if(C.contentDocument)return C.contentDocument;var x=C.name;if(x){var E=d.doc.getElementsByTagName("iframe");if(C.document&&E[x].contentWindow&&E[x].contentWindow.document)return E[x].contentWindow.document;
if(d.doc.frames[x]&&d.doc.frames[x].document)return d.doc.frames[x].document}return null};c.setSrc=function(C,x,E){C=d.global.frames[C.name];C.contentWindow&&(C=C.contentWindow);try{E?C.location.replace(x):C.location=x}catch(B){console.log("dojo/request/iframe.setSrc: ",B)}};c._iframeName=r+"_IoIframe";c._notifyStart=function(){};c._dfdQueue=[];c._currentDfd=null;c._fireNextRequest=function(){try{if(!c._currentDfd&&c._dfdQueue.length){do var C=c._currentDfd=c._dfdQueue.shift();while(C&&(C.canceled||
C.isCanceled&&C.isCanceled())&&c._dfdQueue.length);if(!C||C.canceled||C.isCanceled&&C.isCanceled())c._currentDfd=null;else{var x=C.response,E=x.options,B=C._contentToClean=[],w=g.byId(E.form),D=p.notify,t=E.data||null;if(!C._legacy&&"POST"===E.method&&!w)w=C._tmpForm=a.create("form",{name:r+"_form",style:{position:"absolute",top:"-1000px",left:"-1000px"}},d.body());else if("GET"===E.method&&w&&-1<x.url.indexOf("?")){var A=x.url.slice(x.url.indexOf("?")+1);t=y.mixin(q.queryToObject(A),t)}if(w){if(!C._legacy){var G=
w;do G=G.parentNode;while(G&&G!==d.doc.documentElement);G||(w.style.position="absolute",w.style.left="-1000px",w.style.top="-1000px",d.body().appendChild(w));w.name||(w.name=r+"_form")}if(t){G=function(V,ea){a.create("input",{type:"hidden",name:V,value:ea},w);B.push(V)};for(var J in t){var U=t[J];if(y.isArray(U)&&1<U.length)for(A=0;A<U.length;A++)G(J,U[A]);else{var ja=m("input[name\x3d'"+J+"']",w);-1==ja.indexOf()?G(J,U):ja.val(U)}}}var Z=w.getAttributeNode("action"),fa=w.getAttributeNode("method"),
qa=w.getAttributeNode("target");x.url&&(C._originalAction=Z?Z.value:null,Z?Z.value=x.url:w.setAttribute("action",x.url));C._legacy?fa&&fa.value||(fa?fa.value=E.method:w.setAttribute("method",E.method)):(C._originalMethod=fa?fa.value:null,fa?fa.value=E.method:w.setAttribute("method",E.method));C._originalTarget=qa?qa.value:null;qa?qa.value=c._iframeName:w.setAttribute("target",c._iframeName);w.target=c._iframeName;D&&D.emit("send",x,C.promise.cancel);c._notifyStart(x);w.submit()}else E="",x.options.data&&
(E=x.options.data,"string"!==typeof E&&(E=q.objectToQuery(E))),G=x.url+(-1<x.url.indexOf("?")?"\x26":"?")+E,D&&D.emit("send",x,C.promise.cancel),c._notifyStart(x),c.setSrc(c._frame,G,!0)}}}catch(V){C.reject(V)}};p.addCommonMethods(c,["GET","POST"]);return c})},"dojo/NodeList-manipulate":function(){define("./query ./_base/lang ./_base/array ./dom-construct ./dom-attr ./NodeList-dom".split(" "),function(F,u,b,p,e){function y(f){for(;f.childNodes[0]&&1==f.childNodes[0].nodeType;)f=f.childNodes[0];return f}
function q(f,g){"string"==typeof f?(f=p.toDom(f,g&&g.ownerDocument),11==f.nodeType&&(f=f.childNodes[0])):1==f.nodeType&&f.parentNode&&(f=f.cloneNode(!1));return f}var m=F.NodeList;u.extend(m,{_placeMultiple:function(f,g){f="string"==typeof f||f.nodeType?F(f):f;for(var a=[],d=0;d<f.length;d++)for(var l=f[d],k=this.length,n=k-1,h;h=this[n];n--)0<d&&(h=this._cloneNode(h),a.unshift(h)),n==k-1?p.place(h,l,g):l.parentNode.insertBefore(h,l),l=h;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 g=0,a;a=this[g];g++)1==a.nodeType&&e.set(a,"textContent",f);return this}var d="";for(g=0;a=this[g];g++)d+=e.get(a,"textContent");return d},val:function(f){if(arguments.length){for(var g=u.isArray(f),a=0,d;d=this[a];a++){var l=d.nodeName.toUpperCase(),k=d.type,n=g?f[a]:f;if("SELECT"==l)for(l=d.options,k=0;k<l.length;k++){var h=l[k];h.selected=d.multiple?
-1!=b.indexOf(f,h.value):h.value==n}else"checkbox"==k||"radio"==k?d.checked=d.value==n:d.value=n}return this}if((d=this[0])&&1==d.nodeType){f=d.value||"";if("SELECT"==d.nodeName.toUpperCase()&&d.multiple){f=[];l=d.options;for(k=0;k<l.length;k++)h=l[k],h.selected&&f.push(h.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:m.prototype.orphan,wrap:function(f){if(this[0]){f=q(f,this[0]);for(var g=0,a;a=this[g];g++){var d=this._cloneNode(f);a.parentNode&&a.parentNode.replaceChild(d,a);y(d).appendChild(a)}}return this},wrapAll:function(f){if(this[0]){f=q(f,this[0]);this[0].parentNode.replaceChild(f,
this[0]);f=y(f);for(var g=0,a;a=this[g];g++)f.appendChild(a)}return this},wrapInner:function(f){if(this[0]){f=q(f,this[0]);for(var g=0;g<this.length;g++){var a=this._cloneNode(f);this._wrap(u._toArray(this[g].childNodes),null,this._NodeListCtor).wrapAll(a)}}return this},replaceWith:function(f){f=this._normalize(f,this[0]);for(var g=0,a;a=this[g];g++)this._place(f,a,"before",0<g),a.parentNode.removeChild(a);return this},replaceAll:function(f){f=F(f);for(var g=this._normalize(this,this[0]),a=0,d;d=
f[a];a++)this._place(g,d,"before",0<a),d.parentNode.removeChild(d);return this},clone:function(){for(var f=[],g=0;g<this.length;g++)f.push(this._cloneNode(this[g]));return this._wrap(f,this,this._NodeListCtor)}});m.prototype.html||(m.prototype.html=m.prototype.innerHTML);return m})},"esri/support/requestUtils":function(){define(["dojo/_base/Deferred","dojo/_base/url","../config","../urlUtils"],function(F,u,b,p){function e(q){q=new u(q);return q.scheme+"://"+q.authority}var y=b.defaults.io;return{registerNoCorsDomains:function(q){y.crossOriginNoCorsDomains||
(y.crossOriginNoCorsDomains={});for(var m=y.crossOriginNoCorsDomains,f=0;f<q.length;f++){var g=q[f];g=g.toLowerCase();/^https?:\/\//.test(g)?m[e(g)]=0:(m[e("http://"+g)]=0,m[e("https://"+g)]=0)}},isNoCorsRequestRequired:function(q){var m=y.crossOriginNoCorsDomains;return m?(q=e(q),q=q.toLowerCase(),!p.hasSameOrigin(q,window.location.origin)&&m[q]<Date.now()-36E5):!1},sendNoCorsRequest:function(q,m){var f=new F,g=y.crossOriginNoCorsDomains;g&&(g[e(q).toLowerCase()]=Date.now());g=p.urlToObject(q);q=
g.path;if(g.query&&"json"===g.query.f||m&&"json"===m.f)q+="?f\x3djson";fetch(q,{mode:"no-cors",credentials:"include"}).then(f.resolve,f.resolve);return f}}})},"esri/layers/support/webglUtils":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/has","../../kernel"],function(F,u,b,p){var e=!1,y=b("esri-webgl-max-contexts");y=null!=y?y:b("esri-mobile")?8:16;var q={isWebGLSupported:function(){return!!e},isWebGLEnabled:function(){return this.isWebGLSupported()&&!!b("esri-featurelayer-webgl")},
createCanvas:function(m,f){var g=document.createElement("canvas");g.style.width=m+"px";g.style.height=f+"px";return g},createWebGLContext:function(m){var f;u.some(["webgl","experimental-webgl","webkit-3d","moz-webgl"],function(g){try{f=m.getContext?m.getContext(g):null}catch(a){f=null}return!!f});return f},_contextOwners:[],isContextAvailable:function(){return-1===y||0<y&&q._contextOwners.length<y},acquireContext:function(m){return-1!==u.indexOf(q._contextOwners,m)?!0:q.isContextAvailable()?(q._contextOwners.push(m),
!0):!1},releaseContext:function(m){m=u.indexOf(q._contextOwners,m);-1!==m&&q._contextOwners.splice(m,1)}};e=q.createWebGLContext(q.createCanvas());b("extend-esri")&&F.setObject("layers.support.webglUtils",q,p);return q})},"esri/layers/support/WebGLSurface":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/array","dojo/has","../../kernel"],function(F,u,b,p,e){F=F(null,{map:null,node:null,renderers:null,constructor:function(y){u.mixin(this,y);this.renderers=[]},destroy:function(){b.forEach(this.renderers,
function(y){y.destroy()});this.renderers=null},getEventSource:function(){return this.node},createRenderer:function(y,q,m,f){y=new y({surface:this,width:q,height:m,map:this.map,layer:f});this.renderers.push(y);return y},destroyRenderer:function(y){var q=b.indexOf(this.renderers,y);-1<q&&(y.destroy(),this.renderers.splice(q,1))},_createNode:function(){var y=document.createElement("div");y.style.pointerEvents="auto";y.style.position="absolute";return y}});p("extend-esri")&&u.setObject("layers.support.WebGLSurface",
F,e);return F})},"esri/domUtils":function(){define(["./kernel","dojo/_base/connect","dojo/_base/lang","dojo/dom-style","dojo/has"],function(F,u,b,p,e){var y={show:function(q){if(q=y.getNode(q))q.style.display="block"},getNode:function(q){return q&&q.domNode||q},hide:function(q){if(q=y.getNode(q))q.style.display="none"},toggle:function(q){if(q=y.getNode(q))q.style.display="none"===q.style.display?"block":"none"},documentBox:8>=e("ie")?{w:document.documentElement.clientWidth,h:document.documentElement.clientHeight}:
{w:window.innerWidth,h:window.innerHeight},setScrollable:function(q){if(q=this.getNode(q)){var m=0,f=0,g=0,a=0,d=0,l=0;return[u.connect(q,"ontouchstart",function(k){m=k.touches[0].screenX;f=k.touches[0].screenY;g=q.scrollWidth;a=q.scrollHeight;d=q.clientWidth;l=q.clientHeight}),u.connect(q,"ontouchmove",function(k){k.preventDefault();var n=q.firstChild;n instanceof Text&&(n=q.childNodes[1]);var h=n._currentX||0,c=n._currentY||0;h+=k.touches[0].screenX-m;0<h?h=0:0>h&&Math.abs(h)+d>g&&(h=-1*(g-d));
n._currentX=h;c+=k.touches[0].screenY-f;0<c?c=0:0>c&&Math.abs(c)+l>a&&(c=-1*(a-l));n._currentY=c;p.set(n,{"-webkit-transition-property":"-webkit-transform","-webkit-transform":"translate("+h+"px, "+c+"px)"});m=k.touches[0].screenX;f=k.touches[0].screenY})]}}};e("extend-esri")&&b.mixin(F,y);return y})},"esri/symbols/MarkerSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ./Symbol".split(" "),function(F,u,b,p,e,y){F=F(y,{declaredClass:"esri.symbol.MarkerSymbol",
angle:0,xoffset:0,yoffset:0,size:12,constructor:function(q){q&&u.isObject(q)&&(this.size="auto"===this.size?this.size:p.pt2px(this.size),this.xoffset=p.pt2px(this.xoffset),this.yoffset=p.pt2px(this.yoffset),this.angle&&(this.angle*=-1))},setAngle:function(q){this.angle=q;return this},setSize:function(q){this.size=q;return this},setOffset:function(q,m){this.xoffset=q;this.yoffset=m;return this},toJson:function(){var q=p.px2pt(this.size);q=isNaN(q)?void 0:q;var m=p.px2pt(this.xoffset);m=isNaN(m)?void 0:
m;var f=p.px2pt(this.yoffset);f=isNaN(f)?void 0:f;return u.mixin(this.inherited("toJson",arguments),{size:"auto"===this.size?this.size:q,angle:this.angle&&-1*this.angle,xoffset:m,yoffset:f})}});b("extend-esri")&&u.setObject("symbol.MarkerSymbol",F,e);return F})},"esri/symbols/Symbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../Color".split(" "),function(F,u,b,p,e,y){F=F(null,{declaredClass:"esri.symbol.Symbol",color:new y([0,0,0,1]),type:null,constructor:function(q){q&&
u.isObject(q)&&(u.mixin(this,q),this.color&&e.isDefined(this.color[0])&&(this.color=y.toDojoColor(this.color)),(q=this.type)&&0===q.indexOf("esri")&&(this.type={esriSMS:"simplemarkersymbol",esriPMS:"picturemarkersymbol",esriSLS:"simplelinesymbol",esriCLS:"cartographiclinesymbol",esriSFS:"simplefillsymbol",esriPFS:"picturefillsymbol",esriTS:"textsymbol",esriSHD:"shieldlabelsymbol"}[q]))},setColor:function(q){this.color=q;return this},toJson:function(){return{color:y.toJsonColor(this.color)}}});b("extend-esri")&&
u.setObject("symbol.Symbol",F,p);return F})},"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(F,u,b,p,e,y,q,m,f){var g={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:g.STYLE_CIRCLE,color:[255,255,255,.25],size:12,angle:0,
xoffset:0,yoffset:0};F=F(m,{declaredClass:"esri.symbol.SimpleMarkerSymbol",type:"simplemarkersymbol",_styles:{circle:"esriSMSCircle",square:"esriSMSSquare",triangle:"esriSMSTriangle",cross:"esriSMSCross",x:"esriSMSX",diamond:"esriSMSDiamond",path:"esriSMSPath"},constructor:function(d,l,k,n){d?u.isString(d)?(this.style=d,l&&(this.size=l),k&&(this.outline=k),n&&(this.color=n)):(this.style=q.valueOf(this._styles,this.style),d.outline&&(this.outline=new f(d.outline))):(u.mixin(this,a),this.size=e.pt2px(this.size),
this.outline=new f(this.outline),this.color=new b(this.color));this.style||(this.style=g.STYLE_CIRCLE)},setStyle:function(d){this.style=d;return this},setPath:function(d){this.path=d;this.setStyle(g.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,l,k){this._targetWidth=d;this._targetHeight=l;this._spikeSize=k},getShapeDescriptors:function(){var d,
l=this.style,k=(this.size||e.pt2px(a.size))/2,n=0-k,h=0+k,c=0-k,r=0+k;switch(l){case g.STYLE_CIRCLE:var v={type:"circle",cx:0,cy:0,r:k};var z=this.getFill();if(d=this.getStroke())d.style=d.style||"Solid";break;case g.STYLE_CROSS:v={type:"path",path:"M "+n+",0 L "+h+",0 M 0,"+c+" L 0,"+r+" E"};z=null;d=this.getStroke();break;case g.STYLE_DIAMOND:v={type:"path",path:"M "+n+",0 L 0,"+c+" L "+h+",0 L 0,"+r+" L "+n+",0 Z"};z=this.getFill();d=this.getStroke();break;case g.STYLE_SQUARE:v={type:"path",path:"M "+
n+","+r+" L "+n+","+c+" L "+h+","+c+" L "+h+","+r+" L "+n+","+r+" Z"};z=this.getFill();d=this.getStroke();break;case g.STYLE_TRIANGLE:v={type:"path",path:"M "+n+","+r+" L 0,"+c+" L "+h+","+r+" L "+n+","+r+" Z"};z=this.getFill();d=this.getStroke();break;case g.STYLE_X:v={type:"path",path:"M "+n+","+r+" L "+h+","+c+" M "+n+","+c+" L "+h+","+r+" E"};z=null;d=this.getStroke();break;case g.STYLE_PATH:v={type:"path",path:this.path||""},z=this.getFill(),d=this.getStroke()}return{defaultShape:v,fill:z,stroke:d}},
toJson:function(){var d=this.style,l=this.outline,k=u.mixin(this.inherited("toJson",arguments),{type:"esriSMS",style:this._styles[d]||"esriSMSCircle"});l&&(k.outline=l.toJson());"x"===d||"cross"===d?delete k.color:"target"===d&&(k.style="esriSMSSquare",delete k.color,0<this._targetHeight&&0<this._targetWidth&&(k.size=e.px2pt(Math.max(this._targetHeight,this._targetWidth))));k.path=this.path;return q.fixJson(k)}});u.mixin(F,g);F.defaultProps=a;p("extend-esri")&&(u.setObject("symbol.SimpleMarkerSymbol",
F,y),y.symbol.defaultSimpleMarkerSymbol=a);return F})},"esri/symbols/SimpleLineSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has dojox/gfx/_base ../kernel ../lang ./LineSymbol".split(" "),function(F,u,b,p,e,y,q,m){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"},g={color:[0,0,0,1],style:f.STYLE_SOLID,width:1};F=F(m,{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,l){a?u.isString(a)?(this.style=a,d&&(this.color=d),l&&(this.width=l)):(this.style=q.valueOf(this._styles,a.style)||f.STYLE_SOLID,this.marker=a.marker):(u.mixin(this,g),this.color=new b(this.color),this.width=e.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 q.fixJson(u.mixin(this.inherited("toJson",arguments),{type:"esriSLS",style:this._styles[this.style],marker:this.marker?u.clone(this.marker):void 0}))}});u.mixin(F,f);F.defaultProps=g;p("extend-esri")&&(u.setObject("symbol.SimpleLineSymbol",F,y),y.symbol.defaultSimpleLineSymbol=g);return F})},"esri/symbols/LineSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ./Symbol".split(" "),
function(F,u,b,p,e,y){F=F(y,{declaredClass:"esri.symbol.LineSymbol",constructor:function(q){u.isObject(q)?this.width=p.pt2px(this.width):this.width=12},setWidth:function(q){this.width=q;return this},toJson:function(){var q=p.px2pt(this.width);q=isNaN(q)?void 0:q;return u.mixin(this.inherited("toJson",arguments),{width:q})}});b("extend-esri")&&u.setObject("symbol.LineSymbol",F,e);return F})},"esri/symbols/utils":function(){define("dojo/_base/lang dojo/_base/window dojo/has dojox/gfx ../kernel ../Color".split(" "),
function(F,u,b,p,e,y){function q(l){l.removeAttribute("marker-start");l.removeAttribute("marker-end");l.removeAttribute("opacity")}function m(l,k){for(var n in k)l.setAttribute(n,k[n])}function f(l,k,n){k="url(#"+k.getAttribute("id")+")";l.rawNode.setAttribute("marker-"+n,k)}var g=-1!==p.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)"}}}};p={applyLineMarker:function(l,k,n,h){if(g&&!a){var c=l&&l.rawNode,r=k.marker;n=n||k.color;c&&"none"!==k.style&&n&&r&&"arrow"===r.style&&r.placement?c.getTotalLength&&0===c.getTotalLength()?q(c):(k=-1!==r.placement.indexOf("begin"),r=-1!==r.placement.indexOf("end"),k||r?(c.removeAttribute("stroke-opacity"),
c.setAttribute("opacity",n.a),k?(k=h(l,n,"spear","start"),f(l,k,"start")):c.removeAttribute("marker-start"),r?(n=h(l,n,"spear","end"),f(l,n,"end")):c.removeAttribute("marker-end")):q(c)):c&&q(c)}},createSVGMarker:function(l,k,n,h){n=d[n];var c=u.doc.createElementNS("http://www.w3.org/2000/svg","marker");c.setAttribute("id",k);m(c,d.marker);m(c,n.marker[h]);k=u.doc.createElementNS("http://www.w3.org/2000/svg","path");k.setAttribute("fill",l.toCss());m(k,n.path.common);m(k,n.path[h]);c.appendChild(k);
return c},create2DColorRamp:function(l){var k=l.surface.createGroup(),n=l.colors,h=l.numClasses;l=(l.size||75)/h;for(var c=0;c<h;c++)for(var r=c*l,v=0;v<h;v++){var z=n[c][v];k.createRect({x:v*l,y:r,width:l,height:l}).setFill(z).setStroke(null)}return k},setSymbolFillColor:function(l,k){if(l)switch(k=k?new y(k):null,l.type){case "simplemarkersymbol":"cross"===l.style||"x"===l.style?l.outline&&l.outline.setColor(k):l.setColor(k);break;case "simplelinesymbol":case "cartographiclinesymbol":case "simplefillsymbol":case "shieldlabelsymbol":case "textsymbol":l.setColor(k)}}};
b("extend-esri")&&F.setObject("renderer.utils",p,e);return p})},"esri/layers/TileInfo":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ../SpatialReference ../geometry/Point ./LOD".split(" "),function(F,u,b,p,e,y,q,m,f){F=F(null,{declaredClass:"esri.layers.TileInfo",constructor:function(g){u.mixin(this,g);this.width=this.cols;this.height=this.rows;this._levelToLOD={};g=this.spatialReference;var a=this.origin;g&&(g=this.spatialReference=new q(g.toJson?
g.toJson():g));a&&(this.origin=new m(a.toJson?a.toJson():a),!a.spatialReference&&g&&this.origin.setSpatialReference(new q(g.toJson())));this.lods=b.map(this.lods,function(k){return new f(k)});b.forEach(this.lods,function(k){this._levelToLOD[k.level]=k},this);g=!1;a=this.spatialReference;var d=this.origin;if(a&&d){var l=a._getInfo();l&&(g=a._isWrappable()&&Math.abs(l.origin[0]-d.x)<=l.dx)}this.isWrappable=g;this._initializeUpsampleLevels()},toJson:function(){return y.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(g){return g.toJson()})})},lodAt:function(g){return this._levelToLOD&&this._levelToLOD[g]||null},updateTileInfo:function(g){var a=this.lodAt(g.level),d=a.resolution*this.width;a=a.resolution*this.height;g.id=g.level+"/"+g.row+"/"+g.col;g.extent||(g.extent=[0,0,0,0]);g.extent[0]=
this.origin.x+g.col*d;g.extent[1]=this.origin.y-(g.row+1)*a;g.extent[2]=g.extent[0]+d;g.extent[3]=g.extent[1]+a},upsampleTile:function(g){var a=this._upsampleLevels[g.level];if(!a||-1===a.parentLevel)return!1;g.level=a.parentLevel;g.row=Math.floor(g.row/a.factor+.001);g.col=Math.floor(g.col/a.factor+.001);this.updateTileInfo(g);return!0},_initializeUpsampleLevels:function(){var g=this.lods;this._upsampleLevels=[];for(var a=null,d=0;d<g.length;d++){var l=g[d];this._upsampleLevels[l.level]={parentLevel:a?
a.level:-1,factor:a?a.resolution/l.resolution:0};a=l}}});p("extend-esri")&&u.setObject("layers.TileInfo",F,e);return F})},"esri/layers/LOD":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(F,u,b,p,e){F=F(null,{declaredClass:"esri.layers.LOD",constructor:function(y){u.mixin(this,y)},toJson:function(){return e.fixJson({level:this.level,levelValue:this.levelValue,resolution:this.resolution,scale:this.scale})}});b("extend-esri")&&u.setObject("layers.LOD",
F,p);return F})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n){u=u([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(h,c){c&&(c.roundrobin&&(F.deprecated(this.declaredClass+" : Constructor option 'roundrobin' deprecated. Use option 'tileServers'."),c.tileServers=c.roundrobin),this._setTileServers(c.tileServers),
this._loadCallback=c.loadCallback);this._params=b.mixin({},this._url.query);this._initLayer=b.hitch(this,this._initLayer);(h=c&&c.resourceInfo)?this._initLayer(h):(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(h){if(h&&0<h.length){this.tileServers=h;var c,r=h.length;for(c=0;c<r;c++)h[c]=f.urlToObject(h[c]).path}},_initLayer:function(h,c){this.inherited(arguments);this.resourceInfo=
e.toJson(h);this.tileInfo=new l(h.tileInfo);!1!==this.resampling&&(h.capabilities&&-1<h.capabilities.indexOf("Tilemap")?(this.resampling=!0,this.tileMap=new n(this)):this.resampling=!!h.resampling);!this.spatialReference&&this.tileInfo.spatialReference&&(this.spatialReference=new g(this.tileInfo.spatialReference.toJson()));this.isPNG32="PNG24"===this.tileInfo.format||"PNG32"===this.tileInfo.format;h.timeInfo&&(this.timeInfo=new k(h.timeInfo));h.mensurationCapabilities&&(this.mensurationCapabilities=
h.mensurationCapabilities);var r=this._url.path,v=this._loadCallback,z=f.getProtocolForWebResource(!0),C=r.match(/^https?:\/\/(server|services)\.arcgisonline\.com\/arcgis\/rest\/services\/([^\/]+(\/[^\/]+)*)\/mapserver/i);C=C&&C[2];if(!this.tileServers)if(h.tileServers)this._setTileServers(h.tileServers);else{var x=-1!==r.search(/^https?:\/\/server\.arcgisonline\.com/i),E=-1!==r.search(/^https?:\/\/services\.arcgisonline\.com/i);(x||E)&&this._setTileServers([r,r.replace(x?/server\.arcgisonline/i:
/services\.arcgisonline/i,x?"services.arcgisonline":"server.arcgisonline")])}if(C){C=C.toLowerCase();for(r=0;r<this._agolAttrs.length;r++)if(x=this._agolAttrs[r],x.toLowerCase()===C){this.hasAttributionData=!0;this.attributionDataUrl=this.attributionDataUrl||z+"//static.arcgis.com/attribution/"+x;break}for(r=0;r<this._referenceLayers.length;r++)if(x=this._referenceLayers[r],x.toLowerCase()===C){this._isReference=!0;break}}this.loaded=!0;this.onLoad(this);v&&(delete this._loadCallback,v(this))},getTileUrl:function(h,
c,r){var v=this.tileServers,z=this._getToken(),C=this._url.query;h=(v?v[c%v.length]:this._url.path)+"/tile/"+h+"/"+c+"/"+r;h=f.upgradeToHTTPS(h);this.resampling&&!this.tileMap&&(h+="?blankTile\x3dfalse");C&&(h=this.resampling&&!this.tileMap?h+("\x26"+q.objectToQuery(C)):h+("?"+q.objectToQuery(C)));!z||C&&C.token||(h+=(-1===h.indexOf("?")?"?":"\x26")+"token\x3d"+z);h=this.addTimestampToURL(h);return f.addProxy(h)}});y("extend-esri")&&b.setObject("layers.ArcGISTiledMapServiceLayer",u,m);return u})},
"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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r,v,z,C){F=F(C,{declaredClass:"esri.layers.TiledMapServiceLayer",constructor:function(x,
E){u.connect(this,"onLoad",this,"_initTiledLayer");this._lowestLevel=(this._displayLevels=E?E.displayLevels:null)?this._displayLevels[0]:0;this.resampling=E?E.resampling:void 0;this._resamplingTolerance=E?E.resamplingTolerance:null;this.exclusionAreas=E?E.exclusionAreas:null;x=b.hitch;this._addImage=x(this,this._addImage);this._tileLoadHandler=x(this,this._tileLoadHandler);this._tileErrorHandler=x(this,this._tileErrorHandler);this._popTile=x(this,this._popTile);this._cleanUpRemovedImages=x(this,this._cleanUpRemovedImages);
this._fireOnUpdateEvent=x(this,this._fireOnUpdateEvent);this._transitionEnd=x(this,this._transitionEnd);this._tileMapCallback=x(this,this._tileMapCallback)},opacity:1,isPNG32:!1,_multiple:1,isResampling:!1,_initTiledLayer:function(){var x=this.tileInfo,E=x.lods;this.resampling=null!=this.resampling?this.resampling:!1;this._tileW=x.width;this._tileH=x.height;var B=this.scales=[],w=this._displayLevels,D=-Infinity,t=Infinity,A=this.fullExtent,G=new r(A.xmin,A.ymax);A=new r(A.xmax,A.ymin);var J=c.getContainingTileCoords,
U,ja=E.length;for(U=0;U<ja;U++){var Z=E[U];var fa=J(x,G,Z);Z.startTileRow=0>fa.row?0:fa.row;Z.startTileCol=0>fa.col?0:fa.col;fa=J(x,A,Z);Z.endTileRow=fa.row;Z.endTileCol=fa.col;w&&-1===p.indexOf(w,Z.level)||(B[U]=Z.scale,D=Z.scale>D?Z.scale:D,t=Z.scale<t?Z.scale:t)}-Infinity===D||this._hasMin||this.setMinScale(D);Infinity===t||this._hasMax||this.setMaxScale(t);this.setExclusionAreas(this.exclusionAreas);this._patchIE=6<=n("ie")&&7>n("ie")&&(this.isPNG32||"Mixed"===x.format)},isVisibleAtScale:function(x){return x?
C.prototype._isMapAtVisibleScale.call(this,x,!0):!1},_isMapAtVisibleScale:function(x){var E=this.inherited(arguments,[x,!0]);if(E){var B=this._map;E=this.scales;var w=B.getScale(),D=!1,t=B.width>B.height?B.width:B.height;for(B=0;B<E.length;B++)if(Math.abs(E[B]-w)/E[B]<1/t){D=!0;break}E=D}return E},_setMap:function(x,E,B,w){this.inherited(arguments);this._map=x;var D=this._div=y.create("div",null,E),t=x.__visibleDelta,A=u.connect,G=l._css.names,J={position:"absolute",width:x.width+"px",height:x.height+
"px",overflow:"visible"},U=k.defaults.map.zoomDuration;"css-transforms"===x.navigationMode?(J[G.transform]=l._css.translate(-t.x,-t.y),f.set(D,J),delete J[G.transform],J[G.transition]=G.transformName+" "+U+"ms ease",f.set(this._active=y.create("div",null,D),J),this._active._remove=0,this._passives=[]):(J.left=-t.x+"px",J.top=-t.y+"px",f.set(D,J));this._onResizeHandler_connect=A(x,"onResize",this,"_onResizeHandler");this._opacityChangeHandler_connect=A(this,"onOpacityChange",this,"_opacityChangeHandler");
t=this.tileInfo;A=t.spatialReference;G=A._getInfo();(this._wrap=x.wrapAround180&&A._isWrappable()&&Math.abs(G.origin[0]-t.origin.x)<=G.dx)&&c._addFrameInfo(t,G);this.setExclusionAreas(this.exclusionAreas);this.evaluateSuspension();if(this.suspended&&!x.loaded)var ja=u.connect(x,"onLoad",this,function(){u.disconnect(ja);ja=null;this.setExclusionAreas(this.exclusionAreas);this.evaluateSuspension()});return D},_unsetMap:function(x,E){this.suspended||this._suspendImpl();y.destroy(this._div);this._map=
this._div=null;var B=u.disconnect;B(this._onResizeHandler_connect);B(this._opacityChangeHandler_connect);this.inherited(arguments)},onSuspend:function(){this.inherited(arguments);this._suspendImpl()},_suspendImpl:function(){h.hide(this._div);clearTimeout(this._wakeTimer);this._wakeTimer=null;this._disableDrawConnectors();var x=this._tiles,E=this._tileIds,B=this._loadingList,w,D,t=u.disconnect,A=y.destroy;B&&0<B.count&&(B.forEach(function(J){if(w=x[J])t(w._onload_connect),t(w._onerror_connect),t(w._onabort_connect),
w._onload_connect=w._onerror_connect=w._onabort_connect=null}),B.clear(),this._fireUpdateEnd());this._removeList.clear();for(B=E.length-1;0<=B;B--)(w=(D=E[B])&&x[D])&&A(w);if("css-transforms"===this._map.navigationMode){E=this._active;D=this._passives;this._noDom=0;for(B=D.length-1;0<=B;B--){var G=D[B];G._endHandle&&t(G._endHandle);G._matrix=G._multiply=G._endHandle=null;G._marked=G._remove=0;D.splice(B,1);A(G)}E._matrix=E._multiply=null;E._marked=E._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;h.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 x=this._map,E=u.connect;if("css-transforms"===
x.navigationMode){if(this._onScaleHandler_connect=E(x,"onScale",this,this._onScaleHandler),n("esri-mobile")){this._standby=[];var B=this,w=function(){B._noDom=1};this._onPanStartHandler_connect=E(x,"onPanStart",w);this._onZoomStartHandler_connect=E(x,"onZoomStart",w)}}else this._onZoomHandler_connect=E(x,"onZoom",this,"_onZoomHandler");this._onPanHandler_connect=E(x,"onPan",this,"_onPanHandler");this._onExtentChangeHandler_connect=E(x,"onExtentChange",this,"_onExtentChangeHandler")},_disableDrawConnectors:function(){var x=
u.disconnect;x(this._onPanHandler_connect);x(this._onZoomHandler_connect);x(this._onScaleHandler_connect);x(this._onExtentChangeHandler_connect);x(this._onPanStartHandler_connect);x(this._onZoomStartHandler_connect);this._onPanHandler_connect=this._onZoomHandler_connect=this._onScaleHandler_connect=this._onExtentChangeHandler_connect=this._onPanStartHandler_connect=this._onZoomStartHandler_connect=null},_onResizeHandler:function(x,E,B){x={width:E+"px",height:B+"px"};E=f.set;E(this._div,x);if("css-transforms"===
this._map.navigationMode)for(this._active&&E(this._active,x),B=this._passives.length-1;0<=B;B--)E(this._passives[B],x)},_onExtentChangeHandler:function(x,E,B,w){E=this._map;var D=this._standby;clearTimeout(this._wakeTimer);this._wakeTimer=null;if(!E._isPanningOrZooming()){if("css-transforms"===E.navigationMode){if(B)for(w=this._passives.length-1;0<=w;w--){var t=this._passives[w];f.set(t,l._css.names.transition,"none");t._marked?(this._passives.splice(w,1),t.parentNode&&t.parentNode.removeChild(t),
y.destroy(t)):0<t.childNodes.length&&(t._multiply=t._multiply?d.multiply(t._matrix,t._multiply):t._matrix)}this._noDom=0;if(D&&D.length)for(w=D.length-1;0<=w;w--)t=D[w],f.set(t,"visibility","inherit"),this._popTile(t),D.splice(w,1)}this._fireUpdateStart();this._rrIndex=0;w=c.getCandidateTileInfo(E,this.tileInfo,x);x=E.__visibleDelta;if(!this._ct||w.lod.level!==this._ct.lod.level||B){t=w&&this._ct&&w.lod.level!==this._ct.lod.level;this._ct=w;var A=this._tiles,G=this._tileIds,J=this._tileBounds,U=this._removeList,
ja=G.length;this._cleanUpRemovedImages();for(w=0;w<ja;w++){D=G[w];var Z=A[D];J[D]=G[w]=null;"css-transforms"===E.navigationMode&&t&&Z.parentNode&&E.fadeOnZoom&&(Z._fadeOut=t,Z.parentNode._remove++);U.add(Z)}B&&(this._tileIds=[],this._tiles=[],this._tileBounds=[])}w=x.x;B=x.y;"css-transforms"===E.navigationMode?(D={},D[l._css.names.transform]=l._css.translate(w,B),f.set(this._div,D)):f.set(this._div,{left:w+"px",top:B+"px"});this.__coords_dx=w;this.__coords_dy=B;this._updateImages(new v(0,0,x.width,
x.height));0===this._loadingList.count?(this._cleanUpRemovedImages(),this.onUpdate(),this._fireUpdateEnd()):this._fireOnUpdate=!0;B=this._tileW;A=this._tileH;x=new v(-x.x,-x.y,x.width,x.height);for(w=this._tileIds.length-1;0<=w;w--)(D=this._tileIds[w])?(t=this._tiles[D],G=m.getMarginBox(t),G=new v(G.l,G.t,B,A),"css-transforms"===E.navigationMode&&(G.x=t._left,G.y=t._top),x.intersects(G)?this._tileBounds[D]=G:(this._loadingList.contains(D)&&this._popTile(t),y.destroy(t),this._tileIds.splice(w,1),delete this._tileBounds[D],
delete this._tiles[D])):(this._tileIds.splice(w,1),delete this._tileBounds[D],delete this._tiles[D])}},_onPanHandler:function(x,E){x=this._map;E=x.__visibleDelta.offset(E.x,E.y);this.__coords_dx=this.__coords_dy=0;"css-transforms"===x.navigationMode?(x={},x[l._css.names.transform]=l._css.translate(E.x,E.y),f.set(this._div,x),n("esri-mobile")||this._updateImages({x:-E.x,y:-E.y,width:E.width,height:E.height})):(f.set(this._div,{left:E.x+"px",top:E.y+"px"}),this._updateImages({x:-E.x,y:-E.y,width:E.width,
height:E.height}));0<this._loadingList.count&&(this._fireUpdateStart(),this._fireOnUpdate=!0)},_onScaleHandler:function(x,E){var B,w={},D=l._css.names,t=this._map,A=k.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),y.destroy(G)):("none"===G.style[D.transition]&&f.set(G,D.transition,D.transformName+" "+A+"ms ease"),f.set(G,D.transition,E?"none":D.transformName+" "+A+"ms ease"),G._matrix=x,w[D.transform]=l._css.matrix(G._multiply?
d.multiply(x,G._multiply):x),f.set(G,w))}this._active&&0===this._active.childNodes.length||(f.set(this._active,D.transition,E?"none":D.transformName+" "+A+"ms ease"),this._active._matrix=x,w[D.transform]=l._css.matrix(this._active._matrix),f.set(this._active,w),this._passives.push(this._active),w={position:"absolute",width:t.width+"px",height:t.height+"px",overflow:"visible"},w[D.transition]=D.transformName+" "+A+"ms ease",f.set(this._active=y.create("div",null,this._div),w),this._active._remove=
0,t.fadeOnZoom&&y.place(this._active,this._div,"first"))},_onZoomHandler:function(x,E,B){x=m.getMarginBox(this._div);B=B.offset(-x.l,-x.t);this._previousScale&&1!==E||(this._previousScale=1);var w,D=this._tileW*E,t=this._tileH*E,A=this._tileBounds,G=this._tiles,J=this._previousScale,U=this._multiple,ja=f.set,Z,fa;if((x=n("ie"))&&8>x)p.forEach(this._tileIds,function(ma){fa="";w=A[ma];Z=G[ma].style.margin.split(" ");p.forEach(Z,function(va){""!==fa&&(fa+=" ");va=parseFloat(va);fa+=va/J*E+"px"});ja(G[ma],
{left:w.x-(D-w.width)*(B.x-w.x)/w.width+"px",top:w.y-(t-w.height)*(B.y-w.y)/w.height+"px",margin:1!==U&&-1===fa.indexOf("NaN")?fa:"",zoom:E})});else{var qa=D*U,V=t*U,ea,ba;p.forEach(this._tileIds,function(ma){fa="";w=A[ma];ea=w.x-(D-w.width)*(B.x-w.x)/w.width;ba=w.y-(t-w.height)*(B.y-w.y)/w.height;Z=G[ma].style.margin.split(" ");p.forEach(Z,function(va){""!==fa&&(fa+=" ");va=parseFloat(va);fa+=va/J*E+"px"});ja(G[ma],{left:ea+"px",top:ba+"px",margin:1!==U&&-1===fa.indexOf("NaN")?fa:"",width:qa+"px",
height:V+"px"})})}this._previousScale=E},_updateImages:function(x){if(this._ct){var E=this._tileW,B=this._tileH,w=this._ct;var D=w.lod;w=w.tile;var t=w.offsets,A=w.coords,G=A.row;A=A.col;var J=D.level,U=this.opacity,ja=this._tileIds,Z=this._loadingList,fa=this._addImage,qa=this._map.id,V=this.id,ea=x.x,ba=x.y,ma=D.startTileRow,va=D.endTileRow,da=D.startTileCol,ka=D.endTileCol,I=p.indexOf,S=t.x-this.__coords_dx,X=t.y-this.__coords_dy;var O=E-S+-x.x;var P=B-X+-x.y;var aa=Math.ceil;O=0<O?O%E:E-Math.abs(O)%
E;P=0<P?P%B:B-Math.abs(P)%B;ea=0<ea?Math.floor((ea+S)/E):aa((ea-(E-S))/E);ba=0<ba?Math.floor((ba+X)/B):aa((ba-(B-X))/B);X=ea+aa((x.width-O)/E);x=ba+aa((x.height-P)/B);if(this._wrap){var ha=D._frameInfo;var la=ha[0];var ta=ha[1];ha=ha[2]}for(P=ea;P<=X;P++)for(ea=ba;ea<=x;ea++)aa=G+ea,O=A+P,this._wrap&&(O<ta?(O%=la,O=O<ta?O+la:O):O>ha&&(O%=la)),!this._isExcluded(J,aa,O)&&aa>=ma&&aa<=va&&O>=da&&O<=ka&&(D=qa+"_"+V+"_tile_"+J+"_"+ea+"_"+P,-1===I(ja,D)&&(Z.add(D),ja.push(D),fa(J,ea,aa,P,O,D,E,B,U,w,t)))}},
_cleanUpRemovedImages:function(){var x=this._removeList,E=y.destroy,B,w=l._css.names;x.forEach(function(t){t._fadeOut||(t.style.filter="",t.style.zoom=1,E(t))});if("css-transforms"===this._map.navigationMode)for(B=this._passives.length-1;0<=B;B--){var D=this._passives[B];0===D.childNodes.length?(this._passives.splice(B,1),E(D)):this._map.fadeOnZoom&&!D._marked&&D._remove===D.childNodes.length&&(D._marked=1,2048>l._css.getScaleFromMatrix(f.get(D,w.transform))?(f.set(D,w.transition,"opacity 0.65s"),
f.set(D,"opacity",0),u.disconnect(D._endHandle),D._endHandle=u.connect(D,w.endEvent,this._transitionEnd)):this._transitionEnd({propertyName:"opacity",target:D}))}x.clear()},_transitionEnd:function(x){var E=x.target;"opacity"===x.propertyName&&(u.disconnect(E._endHandle),E._endHandle=null,x=p.indexOf(this._passives,E),-1<x&&this._passives.splice(x,1),E.parentNode&&E.parentNode.removeChild(E),y.destroy(E))},_addImage:function(x,E,B,w,D,t,A,G,J,U,ja){if(this._patchIE)U=this._tiles[t]=y.create("div"),
U.id=t,q.add(U,"layerTile"),f.set(U,{left:A*w-ja.x+"px",top:G*E-ja.y+"px",width:A+"px",height:G+"px",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d'"+this.getTileUrl(x,B,D)+"', sizingMethod\x3d'scale')"}),1>J&&f.set(U,"opacity",J),x=U.appendChild(y.create("div")),f.set(x,{opacity:0,width:A+"px",height:G+"px"}),this._div.appendChild(U),U=null,this._loadingList.remove(t),this._fireOnUpdateEvent();else{U=this._tiles[t]=y.create("img");var Z=u.connect;U.id=t;U._uid=x+"_"+B+"_"+D;U.alt=
"";q.add(U,"layerTile");w=A*w-ja.x;ja=G*E-ja.y;E=this._map;var fa=l._css.names;A={width:A+"px",height:G+"px",visibility:"hidden"};"css-transforms"===E.navigationMode?(A[fa.transform]=l._css.translate(w,ja),f.set(U,A),U._left=w,U._top=ja):(A.left=w+"px",A.top=ja+"px",f.set(U,A));1>J&&f.set(U,"opacity",J);U._onload_connect=Z(U,"onload",this,"_tileLoadHandler");U._onerror_connect=Z(U,"onerror",b.hitch(this,"_tileErrorHandler",B,D));U._onabort_connect=Z(U,"onabort",this,"_tileAbortHandler");if(this.tileMap)this.tileMap.getTile(x,
B,D,t,this._tileMapCallback);else if(t=this.getTileUrl(x,B,D,U))this._failedRequests&&this._failedRequests[t]?(f.set(U,this._failedRequests[t].css),U.src=this._failedRequests[t].src,this._multiple=parseInt(this._failedRequests[t].css.width)/this._tileW,this.isResampling=1!==this._multiple):(this._multiple=1,this.isResampling=!1,U.src=t);"css-transforms"===E.navigationMode?this._active.appendChild(U):this._div.appendChild(U);U=null}},_tileMapCallback:function(x,E){if(!this.suspended){var B=this._tiles[E.id]||
g.byId(E.id);var w=E.level+"_"+E.row+"_"+E.col;B&&B._uid===w?(this._multiple=2*(E.level-x.level)||1,this.isResampling=1!==this._multiple,E=this.tileMap.style(x,E),f.set(B,E),B.src=this.getTileUrl(x.level,x.row,x.col)):this._popTile(E)}},getTileUrl:function(x,E,B){},refresh:function(){this.suspended||(this._refreshTS=Date.now(),this._onExtentChangeHandler(this._map.extent,null,!0,this._map.__LOD))},_popTile:function(x){var E=u.disconnect;E(x._onload_connect);E(x._onerror_connect);E(x._onabort_connect);
x._onload_connect=x._onerror_connect=x._onabort_connect=null;this._loadingList.remove(x.id);this._fireOnUpdateEvent()},_tileLoadHandler:function(x){x=x.currentTarget;this._noDom?this._standby.push(x):(f.set(x,"visibility","inherit"),this._popTile(x))},_tileAbortHandler:function(x){x=x.currentTarget;this.onError(Error("Unable to load tile: "+x.src));f.set(x,"visibility","hidden");this._popTile(x)},_tileErrorHandler:function(x,E,B){B=B.currentTarget;var w=!0;if(this.tileMap||!this.resampling)w=!1;else{var D=
new e(B.src);D=D.path.split("/");D=parseInt(D[D.length-3]);var t=this._ct.lod.level-D+1;this._multiple=Math.pow(2,t);if(D===this._lowestLevel||0===this._resamplingTolerance||this._resamplingTolerance&&Math.log(this._multiple)/Math.LN2>this._resamplingTolerance)w=!1}w?(this.isResampling=!0,this._resample(B,x,E)):(this.onError(Error("Unable to load tile: "+B.src)),f.set(B,"visibility","hidden"),this._popTile(B))},_resample:function(x,E,B){var w=(new e(x.src)).path.split("/"),D=this._multiple,t=parseInt(w[w.length-
3])-1,A=parseInt(E/D),G=parseInt(B/D);w=B%D;var J=E%D;A=this.getTileUrl(t,A,G);E=this.getTileUrl(t+Math.log(D)/Math.LN2,E,B);D={width:this._tileW*D+"px",height:this._tileH*D+"px",margin:"-"+this._tileW*J+"px 0 0 -"+(this._tileH*w+"px")};this._failedRequests||(this._failedRequests={});this._failedRequests[E]={src:A,css:D};f.set(x,D);n("chrome")&&x.setAttribute("src",null);x.src=A},_fireOnUpdateEvent:function(){0===this._loadingList.count&&(this._cleanUpRemovedImages(),this._fireOnUpdate&&(this._fireOnUpdate=
!1,this.onUpdate(),this._fireUpdateEnd()))},setOpacity:function(x){if(this.opacity!=x)this.onOpacityChange(this.opacity=x)},onOpacityChange:function(){},_opacityChangeHandler:function(x){var E=f.set,B,w;if("css-transforms"===this._map.navigationMode){if(this._active){var D=this._active.childNodes;for(B=D.length-1;0<=B;B--)E(D[B],"opacity",x)}for(B=this._passives.length-1;0<=B;B--)for(D=this._passives[B].childNodes,w=D.length-1;0<=w;w--)E(D[w],"opacity",x)}else for(D=this._div.childNodes,B=D.length-
1;0<=B;B--)E(D[B],"opacity",x)},setExclusionAreas:function(x){this.exclusionAreas=x;if(this.loaded&&this._map&&this._map.loaded){var E=this._map.spatialReference,B=this.tileInfo,w=B.origin,D=B.lods,t=D[0].level,A=D[D.length-1].level,G,J,U;if(this.exclusionAreas&&this.exclusionAreas.length){this._exclusionsPerZoom=[];var ja=0;for(G=x.length;ja<G;ja++){var Z=x[ja];if((U=Z.geometry)&&"extent"===U.type&&U.xmin<=U.xmax&&U.ymin<=U.ymax){if(!E.equals(U.spatialReference))if(E._canProject(U.spatialReference)){if(E.isWebMercator()){var fa=
r.lngLatToXY(U.xmin,U.ymin);U=r.lngLatToXY(U.xmax,U.ymax)}else fa=r.xyToLngLat(U.xmin,U.ymin,!0),U=r.xyToLngLat(U.xmax,U.ymax,!0);U=new z(fa[0],fa[1],U[0],U[1],E)}else continue;var qa=-1;if(Z.minZoom&&-1!==Z.minZoom)qa=Z.minZoom;else if(Z.minScale&&-1!==Z.minScale){var V=0;for(J=D.length;V<J;V++)if(D[V].scale<=Z.minScale){qa=D[V].level;break}}qa=Math.max(qa,t);fa=-1;if(Z.maxZoom&&-1!==Z.maxZoom)fa=Z.maxZoom;else if(Z.maxScale&&-1!==Z.maxScale)for(V=0,J=D.length;V<J;V++)if(D[V].scale<Z.maxScale){fa=
D[V-1].level;break}else if(D[V].scale===Z.maxScale){fa=D[V].level;break}fa=-1===fa?A:Math.min(fa,A);for(Z=qa;Z<=fa;Z++){V=0;for(J=D.length;V<J;V++)if(D[V].level===Z){var ea=D[V];break}ea&&(this._exclusionsPerZoom[Z]||(this._exclusionsPerZoom[Z]=[]),V=1/ea.resolution/B.rows,J=1/ea.resolution/B.cols,this._exclusionsPerZoom[Z].push({rowFrom:Math.floor((w.y-U.ymax)*V),rowTo:Math.ceil((w.y-U.ymin)*V),colFrom:Math.floor((U.xmin-w.x)*J),colTo:Math.ceil((U.xmax-w.x)*J)}))}}}}else this._exclusionsPerZoom=
null;this.suspended||this._onExtentChangeHandler(this._map.extent,null,!0,this._map.__LOD)}},_isExcluded:function(x,E,B){var w;if(!this._exclusionsPerZoom)return!1;var D=this._exclusionsPerZoom[x];if(!D)return!1;var t=0;for(w=D.length;t<w;t++)if(x=D[t],E>=x.rowFrom&&E<x.rowTo&&B>=x.colFrom&&B<x.colTo)return!0;return!1}});n("extend-esri")&&b.setObject("layers.TiledMapServiceLayer",F,l);return F})},"dojox/collections/ArrayList":function(){define(["dojo/_base/kernel","dojo/_base/array","./_base"],function(F,
u,b){b.ArrayList=function(p){var e=[];p&&(e=e.concat(p));this.count=e.length;this.add=function(y){e.push(y);this.count=e.length};this.addRange=function(y){if(y.getIterator)for(y=y.getIterator();!y.atEnd();)this.add(y.get());else for(var q=0;q<y.length;q++)e.push(y[q]);this.count=e.length};this.clear=function(){e.splice(0,e.length);this.count=0};this.clone=function(){return new b.ArrayList(e)};this.contains=function(y){for(var q=0;q<e.length;q++)if(e[q]==y)return!0;return!1};this.forEach=function(y,
q){F.forEach(e,y,q)};this.getIterator=function(){return new b.Iterator(e)};this.indexOf=function(y){for(var q=0;q<e.length;q++)if(e[q]==y)return q;return-1};this.insert=function(y,q){e.splice(y,0,q);this.count=e.length};this.item=function(y){return e[y]};this.remove=function(y){y=this.indexOf(y);0<=y&&e.splice(y,1);this.count=e.length};this.removeAt=function(y){e.splice(y,1);this.count=e.length};this.reverse=function(){e.reverse()};this.sort=function(y){y?e.sort(y):e.sort()};this.setByIndex=function(y,
q){e[y]=q;this.count=e.length};this.toArray=function(){return[].concat(e)};this.toString=function(y){return e.join(y||",")}};return b.ArrayList})},"dojox/collections/_base":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/array"],function(F,u,b){F=u.getObject("dojox.collections",!0);F.DictionaryEntry=function(p,e){this.key=p;this.value=e;this.valueOf=function(){return this.value};this.toString=function(){return String(this.value)}};F.Iterator=function(p){var e=0;this.element=p[e]||
null;this.atEnd=function(){return e>=p.length};this.get=function(){return this.atEnd()?null:this.element=p[e++]};this.map=function(y,q){return b.map(p,y,q)};this.reset=function(){e=0;this.element=p[e]}};F.DictionaryIterator=function(p){var e=[],y={},q;for(q in p)y[q]||e.push(p[q]);var m=0;this.element=e[m]||null;this.atEnd=function(){return m>=e.length};this.get=function(){return this.atEnd()?null:this.element=e[m++]};this.map=function(f,g){return b.map(e,f,g)};this.reset=function(){m=0;this.element=
e[m]}};return F})},"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(F,u,b,p,e,y,q,m,f,g){F=F(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(){q({url:this._url.path,content:u.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 m(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 l=this.layerInfos=[],k=a.layers,n=this._defaultVisibleLayers=[];b.forEach(k,function(h,c){l[c]=new g(h);h.defaultVisibility&&n.push(h.id)});this.visibleLayers||(this.visibleLayers=n);
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;y.isDefined(a.minScale)&&!this._hasMin&&this.setMinScale(a.minScale);y.isDefined(a.maxScale)&&!this._hasMax&&this.setMaxScale(a.maxScale)}catch(h){this._errorHandler(h)}}});p("extend-esri")&&u.setObject("layers.ArcGISMapServiceLayer",F,e);return F})},"esri/layers/LayerInfo":function(){define(["dojo/_base/declare",
"dojo/_base/lang","dojo/has","../kernel","../lang"],function(F,u,b,p,e){F=F(null,{declaredClass:"esri.layers.LayerInfo",constructor:function(y){u.mixin(this,y)},toJson:function(){return e.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")&&u.setObject("layers.LayerInfo",F,p);return F})},"esri/layers/TimeInfo":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../TimeExtent ./TimeReference ./LayerTimeOptions".split(" "),
function(F,u,b,p,e,y,q){F=F(null,{declaredClass:"esri.layers.TimeInfo",constructor:function(m){null!==m&&(u.mixin(this,m),m.exportOptions&&(this.exportOptions=new q(m.exportOptions)),this.timeExtent=null,m.timeExtent&&2===m.timeExtent.length&&(this.timeExtent=new e(m.timeExtent)),this.timeReference=new y(m.timeReference))}});u.mixin(F,{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")&&u.setObject("layers.TimeInfo",F,p);return F})},"esri/TimeExtent":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","./kernel"],function(F,u,b,p){var e=F(null,{declaredClass:"esri.TimeExtent",constructor:function(y){if(1<arguments.length)this._create(arguments[0],
arguments[1]);else if(y)if(u.isArray(y)){var q=y[0],m=y[1];this.startTime=null===q||"null"===q?null:new Date(q);this.endTime=null===m||"null"===m?null:new Date(m)}else y instanceof Date&&this._create(y,null)},offset:function(y,q){var m=new e,f=this.startTime,g=this.endTime;f&&(m.startTime=this._getOffsettedDate(f,y,q));g&&(m.endTime=this._getOffsettedDate(g,y,q));return m},intersection:function(y){return this._intersection(this,y)},toJson:function(){var y=[],q=this.startTime;y.push(q?q.getTime():
"null");q=this.endTime;y.push(q?q.getTime():"null");return y},_create:function(y,q){this.startTime=y?new Date(y.getTime()):null;this.endTime=q?new Date(q.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(y,
q){if(y&&q){var m=y.startTime;y=y.endTime;var f=q.startTime;q=q.endTime;m=m?m.getTime():-Infinity;f=f?f.getTime():-Infinity;y=y?y.getTime():Infinity;q=q?q.getTime():Infinity;var g,a;f>=m&&f<=y?g=f:m>=f&&m<=q&&(g=m);y>=f&&y<=q?a=y:q>=m&&q<=y&&(a=q);if(isNaN(g)||isNaN(a))return null;m=new e;m.startTime=-Infinity===g?null:new Date(g);m.endTime=Infinity===a?null:new Date(a);return m}return null},_getOffsettedDate:function(y,q,m){var f=this._refData;y=new Date(y.getTime());q&&m&&(f=f[m],y[f.setter](y[f.getter]()+
q*f.multiplier));return y}});b("extend-esri")&&(p.TimeExtent=e);return e})},"esri/layers/TimeReference":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(F,u,b,p){F=F(null,{declaredClass:"esri.layers.TimeReference",constructor:function(e){e&&u.mixin(this,e)}});b("extend-esri")&&u.setObject("layers.TimeReference",F,p);return F})},"esri/layers/LayerTimeOptions":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(F,
u,b,p,e){F=F(null,{declaredClass:"esri.layers.LayerTimeOptions",constructor:function(y){y&&u.mixin(this,y)},toJson:function(){return e.fixJson({timeDataCumulative:this.timeDataCumulative,timeOffset:this.timeOffset,timeOffsetUnits:this.timeOffsetUnits,useTime:this.useTime})}});b("extend-esri")&&u.setObject("layers.LayerTimeOptions",F,p);return F})},"esri/layers/TileMap":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/Deferred dojo/io-query ../request ../urlUtils".split(" "),
function(F,u,b,p,e,y,q){return F(null,{declaredClass:"esri.layers.TileMap",constructor:function(m){this.layer=m;this._tileMaps={}},getTile:function(m,f,g,a,d){m={id:a,level:m,row:f,col:g};f=this._getResamplingBudget();0<f?this._process({tile:m,requestedTile:m,callback:d,resamplingBudget:f}):(d||this.callback).call(this,m,m)},statusOf:function(m,f,g){var a=this._getResamplingBudget();m={level:m,row:f,col:g};if(0===a)return 1;for(;0<=a;){f=this._tileToTileMap(m);if(!this._tileMaps[f.uid])return-1;f=
this._tileMaps[f.uid];if(!f.promise.isFulfilled())return-1;if(this._isTileAvailable(m,f))return 1;m=this._parentTile(m);if(!m)break;a--}return 0},style:function(m,f){if(m.level!==f.level||m.row!==f.row||m.col!==f.col){var g=this.layer.tileInfo,a=g.lods,d=g.cols;g=g.rows;for(var l,k,n=a.length-1;!l||!k;)l||a[n].level!==m.level||(l=a[n]),k||a[n].level!==f.level||(k=a[n]),n--;a=Math.round(l.resolution/k.resolution);m=f.col%a*-1*d;f=f.row%a*-1*g;a={width:d*a+"px",height:g*a+"px",margin:f+"px 0 0 "+m+
"px","will-change":"transform"};m=0===m?0:-1*m;f=0===f?0:-1*f;a.clip="rect("+f+"px,"+(m+d)+"px,"+(f+g)+"px,"+m+"px)";return a}},_process:function(m){var f=m.tile,g=this._tileToTileMap(f),a=this._parentTile(f);this._getTileMap(g).then(u.hitch(this,function(d){g=d;this._isTileAvailable(f,g)?(m.callback||this.callback).call(this,f,m.requestedTile):0<m.resamplingBudget&&a?(m.resamplingBudget--,m.tile=a,this._process(m)):(m.callback||this.callback).call(this,m.requestedTile,m.requestedTile)}),u.hitch(this,
function(){(m.callback||this.callback).call(this,m.requestedTile,m.requestedTile)}))},_getTileMap:function(m){var f,g,a=null;if(this._tileMaps[m.uid]){m=this._tileMaps[m.uid];var d=m.promise}else{this._tileMaps[m.uid]=m;var l=new p;y({url:this._getTileMapUrl(m.level,m.row,m.col),handleAs:"json",content:{f:"json"},callbackParamName:"callback",timeout:3E3,load:function(k){u.mixin(m,k);if(m.data&&0<m.data.length){g=m.data.length;if(1===g)a=m.data[0];else for(a=m.data[0],f=1;f<g;f++)if(m.data[f]!==a){a=
null;break}null!==a&&(delete m.data,m.value=a);null==m.valid&&(m.valid=!0)}l.resolve(m)},error:function(k){k&&422===k.code?(u.mixin(m,{location:{top:m.row,left:m.col,width:8,height:8},valid:!0,value:0}),l.resolve(m)):l.reject()}});d=m.promise=l.promise}return d},_parentTile:function(m){var f=this.layer.tileInfo.lods,g,a,d=null;b.some(f,function(l,k){return m.level===l.level?(g=l,a=k,!0):!1});0<a&&(f=f[a-1],d={id:m.id,level:f.level,row:Math.floor(m.row*g.resolution/f.resolution+.01),col:Math.floor(m.col*
g.resolution/f.resolution+.01)});return d},_tileToTileMap:function(m){var f=8*Math.floor(m.row/8),g=8*Math.floor(m.col/8);return{uid:m.level+"_"+f+"_"+g,level:m.level,row:f,col:g}},_isTileAvailable:function(m,f){if(f.valid)if(void 0!==f.value)m=f.value;else{var g=f.location.left;var a=f.location.top;m=(m.row-a)*f.location.width+(m.col-g);m=m<f.data.length?f.data[m]:0}else m=0;return m},_getTileMapUrl:function(m,f,g){var a=this.layer,d=a.tileServers,l=a._getToken(),k=a._url.query;m=(d?d[f%d.length]:
a._url.path)+"/tilemap/"+m+"/"+f+"/"+g+"/8/8";k&&(m+="?"+e.objectToQuery(k));!l||k&&k.token||(m+=(-1===m.indexOf("?")?"?":"\x26")+"token\x3d"+l);return m=a.addTimestampToURL(m)},_getResamplingBudget:function(){var m=this.layer,f=0;m.resampling&&(f=m._resamplingTolerance,null===f||void 0===f)&&(f=m.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(F,u,b,p,e,y,q,m,f,g,a,d,l){var k=F([l],{declaredClass:"esri.layers.MapImageLayer","-chains-":{constructor:"manual"},constructor:function(n){this.inherited(arguments,[null,n]);this._mapImages=[];var h=b.hitch;this._panStart=h(this,this._panStart);this._pan=h(this,this._pan);this._extentChange=h(this,this._extentChange);this._zoom=h(this,this._zoom);this._zoomStart=h(this,this._zoomStart);this._scale=h(this,this._scale);this._resize=h(this,this._resize);u.connect(this,"onSuspend",this,this._onSuspend);
u.connect(this,"onResume",this,this._onResume);this.loaded=!0;this.onLoad(this)},opacity:1,addImage:function(n){var h=this._mapImages.push(n);--h;n._idx=h;n._layer=this;this._div&&this._createImage(n,h)},removeImage:function(n){if(n){var h=n._idx,c=this._mapImages;if(c[h]===n){delete c[h];if(h=n._node)this._clearEvents(h),h.e_idx=h.e_bl=h.e_tr=h.e_l=h.e_t=h.e_w=h.e_h=null,h.parentNode&&(h.parentNode.removeChild(h),e.destroy(h));n._node=n._idx=n._layer=null}}},removeAllImages:function(){var n=this._mapImages,
h,c=n.length;for(h=0;h<c;h++){var r=n[h];r&&this.removeImage(r)}this._mapImages=[]},getImages:function(){var n=this._mapImages,h=[],c,r=n.length;for(c=0;c<r;c++)n[c]&&h.push(n[c]);return h},setOpacity:function(n){this.opacity!=n&&(this._opacityChanged(this.opacity=n),this.onOpacityChange())},onOpacityChange:function(){},_opacityChanged:function(n){var h=this._div;if(h)if(!f("ie")||8<f("ie"))y.set(h,"opacity",n);else{var c=h.childNodes;var r=c.length;for(h=0;h<r;h++)y.set(c[h],"opacity",n)}},_createImage:function(n,
h){var c=e.create("img");y.set(c,{position:"absolute"});1>n.opacity?y.set(c,"opacity",n.opacity):8>=f("ie")&&y.set(c,"opacity",this.opacity);!n.rotation||9>f("ie")||y.set(c,q._css.names.transform,q._css.rotate(360-n.rotation));n._node=c;c.e_idx=h;c.e_layer=this;c.e_load=u.connect(c,"onload",k.prototype._imageLoaded);c.e_error=u.connect(c,"onerror",k.prototype._imageError);c.e_abort=u.connect(c,"onabort",k.prototype._imageError);c.src=n.href},_imageLoaded:function(n,h){n=h||n.target||n.currentTarget;
h=n.e_layer;var c=h._mapImages[n.e_idx],r=h._map;r&&(r.__zooming||r.__panning||!h._sr)?h._standby.push(n):(h._clearEvents(n),c&&c._node===n&&r&&h._attach(c))},_imageError:function(n){n=n.target||n.currentTarget;var h=n.e_layer,c=h._mapImages[n.e_idx];h._clearEvents(n);c&&(c._node=null)},_clearEvents:function(n){var h=u.disconnect;h(n.e_load);h(n.e_error);h(n.e_abort);n.e_load=n.e_error=n.e_abort=n.e_layer=null},_attach:function(n){var h=n.extent,c=h.spatialReference,r=this._sr,v=this._div,z=n._node,
C=new a({x:h.xmin,y:h.ymin,spatialReference:c});h=new a({x:h.xmax,y:h.ymax,spatialReference:c});r.equals(c)||(r.isWebMercator()&&4326===c.wkid?(C=d.geographicToWebMercator(C),h=d.geographicToWebMercator(h)):c.isWebMercator()&&4326===r.wkid&&(C=d.webMercatorToGeographic(C),h=d.webMercatorToGeographic(h)));z.e_bl=C;z.e_tr=h;n.visible&&(this._setPos(z,v._left,v._top),(this._active||v).appendChild(z))},_setPos:function(n,h,c){var r=n.e_bl,v=n.e_tr,z=this._map;r=z.toScreen(r);v=z.toScreen(v);h=r.x-h;c=
v.y-c;var C=Math.abs(v.x-r.x);r=Math.abs(r.y-v.y);v={width:C+"px",height:r+"px"};var x=this._mapImages[n.e_idx];"css-transforms"===z.navigationMode?v[q._css.names.transform]=q._css.translate(h,c)+(x.rotation?" "+q._css.rotate(360-x.rotation):""):(v.left=h+"px",v.top=c+"px");y.set(n,v);n.e_l=h;n.e_t=c;n.e_w=C;n.e_h=r},managedSuspension:!0,_setMap:function(n,h){this.inherited(arguments);var c=this._div=e.create("div",null,h),r=q._css.names,v={position:"absolute"},z=n.__visibleDelta;if(!f("ie")||8<f("ie"))v.opacity=
this.opacity;"css-transforms"===n.navigationMode?(v[r.transform]=q._css.translate(z.x,z.y),y.set(c,v),c._left=z.x,c._top=z.y,v={position:"absolute",width:n.width+"px",height:n.height+"px",overflow:"visible"},this._active=e.create("div",null,c),y.set(this._active,v),this._passive=e.create("div",null,c),y.set(this._passive,v)):(c._left=0,c._top=0,y.set(c,v));this._standby=[];r=this._mapImages;z=r.length;for(v=0;v<z;v++){var C=r[v];C._node||this._createImage(C,C._idx)}g.hide(c);return c},_unsetMap:function(n,
h){this._disconnect();var c=this._div;if(c){var r=this._mapImages,v,z=r.length;for(v=0;v<z;v++){var C=r[v];if(C){var x=C._node;x&&(this._clearEvents(x),x.e_idx=x.e_bl=x.e_tr=x.e_l=x.e_t=x.e_w=x.e_h=null);C._node=null}}h.removeChild(c);e.destroy(c)}this._map=this._div=this._sr=this._active=this._passive=this._standby=null;this.inherited(arguments)},_onSuspend:function(){this._disconnect();g.hide(this._div)},_onResume:function(n){n.firstOccurrence&&(this._sr=this._map.spatialReference,this._processStandbyList());
n=this._map;var h=this._div,c=n.__visibleDelta;"css-transforms"===n.navigationMode&&(h._left=c.x,h._top=c.y,y.set(h,q._css.names.transform,q._css.translate(h._left,h._top)));this._redraw("css-transforms"===n.navigationMode);this._connect(n);g.show(h)},_connect:function(n){if(!this._connections){var h=u.connect,c="css-transforms"===n.navigationMode;this._connections=[h(n,"onPanStart",this._panStart),h(n,"onPan",this._pan),h(n,"onExtentChange",this._extentChange),c&&h(n,"onZoomStart",this._zoomStart),
c?h(n,"onScale",this._scale):h(n,"onZoom",this._zoom),c&&h(n,"onResize",this._resize)];c&&this._resize(n.extent,n.width,n.height)}},_disconnect:function(){this._connections&&(p.forEach(this._connections,u.disconnect),this._connections=null)},_panStart:function(){this._panL=this._div._left;this._panT=this._div._top},_pan:function(n,h){n=this._div;n._left=this._panL+h.x;n._top=this._panT+h.y;"css-transforms"===this._map.navigationMode?y.set(n,q._css.names.transform,q._css.translate(n._left,n._top)):
y.set(n,{left:n._left+"px",top:n._top+"px"})},_extentChange:function(n,h,c){c?this._redraw("css-transforms"===this._map.navigationMode):h&&this._pan(n,h);this._processStandbyList()},_processStandbyList:function(){var n,h=this._standby;if(h&&h.length)for(n=h.length-1;0<=n;n--)this._imageLoaded(null,h[n]),h.splice(n,1)},_redraw:function(n){if(n){n=this._passive;var h=q._css.names;y.set(n,h.transition,"none");this._moveImages(n,this._active);y.set(n,h.transform,"none")}n=this._active||this._div;h=this._div._left;
var c=this._div._top,r,v=n.childNodes.length;for(r=0;r<v;r++){var z=n.childNodes[r];this._setPos(z,h,c)}},_zoom:function(n,h,c){n=this._div;var r=n._left,v=n._top,z,C=n.childNodes.length;for(z=0;z<C;z++){var x=n.childNodes[z];var E=x.e_w*h,B=x.e_h*h,w=(c.x-r-x.e_l)*(E-x.e_w)/x.e_w,D=(c.y-v-x.e_t)*(B-x.e_h)/x.e_h;w=isNaN(w)?0:w;D=isNaN(D)?0:D;y.set(x,{left:x.e_l-w+"px",top:x.e_t-D+"px",width:E+"px",height:B+"px"})}},_zoomStart:function(){this._moveImages(this._active,this._passive)},_moveImages:function(n,
h){n=n.childNodes;var c=n.length;if(0<c)for(--c;0<=c;c--)h.appendChild(n[c])},_scale:function(n,h){var c=q._css.names,r=this._passive;y.set(r,c.transition,h?"none":c.transformName+" "+m.defaults.map.zoomDuration+"ms ease");({})[c.transform]=q._css.matrix(n);y.set(r,c.transform,q._css.matrix(n))},_resize:function(n,h,c){y.set(this._active,{width:h+"px",height:c+"px"});y.set(this._passive,{width:h+"px",height:c+"px"})}});f("extend-esri")&&b.setObject("layers.MapImageLayer",k,q);return k})},"esri/layers/OpenStreetMapLayer":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../urlUtils ../SpatialReference ../geometry/Extent ./TiledMapServiceLayer ./TileInfo".split(" "),
function(F,u,b,p,e,y,q,m,f){F=F(m,{declaredClass:"esri.layers.OpenStreetMapLayer",constructor:function(g){this.spatialReference=new y({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 q({xmin:-2.003750834E7,ymin:-2.003750834E7,xmax:2.003750834E7,ymax:2.003750834E7,spatialReference:{wkid:102100}});this.initialExtent=new q({xmin:-2.003750834E7,ymin:-2.003750834E7,xmax:2.003750834E7,ymax:2.003750834E7,spatialReference:{wkid:102100}});this.tileServers=g&&g.tileServers||["//a.tile.openstreetmap.org","//b.tile.openstreetmap.org","//c.tile.openstreetmap.org"];this.serversLength=this.tileServers.length;this._displayLevels=g?g.displayLevels:null;this.copyright=g&&g.copyright||"Map data \u00a9 OpenStreetMap contributors, CC-BY-SA";
this.loaded=!0;this.onLoad(this);(g=g&&g.loadCallback)&&g(this)},getTileUrl:function(g,a,d){g=this.tileServers[a%this.serversLength]+"/"+g+"/"+d+"/"+a+".png";g=e.normalize(g);g=this.addTimestampToURL(g);return e.addProxy(g)}});b("extend-esri")&&u.setObject("layers.OpenStreetMapLayer",F,p);return F})},"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".split(" "),
function(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r,v,z,C,x,E,B,w,D){F=F([B,w,m],{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(t,A){this.initialize();u.mixin(this,t);this.domNode=g.byId(A);A=this._nls=u.mixin({},D.widgets.popup);t=this.domNode;d.add(t,"esriPopup");(this._isRTL=!k.isBodyLtr())&&
n.set(t,"direction","rtl");a.set(t,"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'"+A.NLS_searching+"...'\x3e\x3c/div\x3e\x3cdiv class\x3d'title'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton prev hidden' title\x3d'"+A.NLS_prevFeature+"'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton next hidden' title\x3d'"+A.NLS_nextFeature+"'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton maximize' title\x3d'"+
A.NLS_maximize+"'\x3e\x3c/div\x3e\x3cdiv class\x3d'titleButton close' title\x3d'"+A.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'"+A.NLS_zoomTo+"' class\x3d'action zoomTo' href\x3d'javascript:void(0);'\x3e\x3cspan\x3e"+A.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=e.query(".sizer",t);A=e.query(".titlePane",t)[0];this._title=e.query(".title",A)[0];this._prevFeatureButton=e.query(".prev",A)[0];this._nextFeatureButton=e.query(".next",A)[0];this._maxButton=e.query(".maximize",A)[0];this._spinner=e.query(".spinner",A)[0];this._contentPane=e.query(".contentPane",t)[0];this._positioner=e.query(".esriPopupWrapper",t)[0];this._pointer=e.query(".pointer",t)[0];this._outerPointer=e.query(".outerPointer",t)[0];this._actionList=e.query(".actionsPane .actionList",
t)[0];this._contentUpdateHandles={};this._eventConnections=[p.connect(e.query(".close",A)[0],"onclick",this,this.hide),p.connect(this._prevFeatureButton,"onclick",this,this.selectPrevious),p.connect(this._nextFeatureButton,"onclick",this,this.selectNext),p.connect(this._maxButton,"onclick",this,this._toggleSize),p.connect(e.query(".zoomTo",this._actionList)[0],"onclick",this,this._zoomToFeature),p.connect(this,"onClearFeatures",this,this._featuresCleared),p.connect(this,"onSelectionChange",this,this._featureSelected),
p.connect(this,"onDfdComplete",this,this._updateUI)];y("esri-touch")&&(t=v.setScrollable(this._contentPane),this._eventConnections.push(t[0],t[1]));this._toggleVisibility(!1)},onMaximize:function(){},onRestore:function(){},setMap:function(t){this.inherited(arguments);l.place(this.domNode,t.root);this.highlight&&this.enableHighlight(t);this._maxHeight=n.get(this._contentPane,"maxHeight")},unsetMap:function(){this.disableHighlight(this.map);this.inherited(arguments)},setTitle:function(t){this.popupWindow&&
(r.isDefined(t)&&""!==t||(t="\x26nbsp;"),this.destroyDijits(this._title),this.place(t,this._title),this.isShowing&&(this.startupDijits(this._title),this.reposition()))},setContent:function(t){this.popupWindow&&(r.isDefined(t)&&""!==t||(t="\x26nbsp;"),this._destroyContent(),this.place(t,this._contentPane),this.isShowing&&(this._startupContent(),this.reposition()))},show:function(t,A){if(this.popupWindow)if(this._delayHide=!1,t){var G=this.map;t.spatialReference?(this.location=t,t=G.toScreen(t)):this.location=
G.toMap(t);var J=G._getFrameWidth();if(-1!==J&&(t.x%=J,0>t.x&&(t.x+=J),G.width>J))for(G=(G.width-J)/2;t.x<G;)t.x+=J;this._maximized?this.restore():this._setPosition(t);A&&A.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(t,A){this.popupWindow&&(this._sizers.style({width:t+"px"}),n.set(this._contentPane,"maxHeight",A+"px"),this._maxHeight=A,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(t){return b.map(t,function(A){var G=l.create("a",{href:"javascript:void(0);",className:"action "+
A.className,title:A.title,innerHTML:A.title},this._actionList);p.connect(G,"onclick",A.callback);return{action:A,node:G}},this)},removeActions:function(t){b.forEach(t,function(A){l.destroy(A.node)})},getCurrentAnchor:function(){return this._anchor},maximize:function(){var t=this.map;if(t&&!this._maximized&&this.popupWindow){this._maximized=!0;var A=this._maxButton;d.remove(A,"maximize");d.add(A,"restore");a.set(A,"title",this._nls.NLS_restore);A=this.marginLeft;var G=this.marginTop,J=t.width-2*A;
t=t.height-2*G;n.set(this.domNode,{left:this._isRTL?null:A+"px",right:this._isRTL?A+"px":null,top:G+"px",bottom:null});n.set(this._positioner,{left:null,right:null,top:null,bottom:null});this._savedWidth=n.get(this._sizers[0],"width");this._savedHeight=n.get(this._contentPane,"maxHeight");this._sizers.style({width:J+"px"});n.set(this._contentPane,{maxHeight:t-65+"px",height:t-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 t=this._maxButton;d.remove(t,"restore");d.add(t,"maximize");a.set(t,"title",this._nls.NLS_maximize);n.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,p.disconnect);l.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(t,A){this._transientAnchor=
A&&A.anchor;this.inherited(arguments);this._updateUI()},clearFeatures:function(t){t||(this._transientAnchor=null);this.inherited(arguments)},postscript:null,_highlightSetter:function(t){var A=this.highlight,G=this.map;this.highlight=t;if(G&&t!==A)if(t){if(this.enableHighlight(G),t=this.features&&this.features[this.selectedIndex])this.updateHighlight(G,t),this.showHighlight()}else this.disableHighlight(G)},_pagingControlsSetter:function(t){var A=this.pagingControls,G=this.map;this.pagingControls=t;
G&&t!==A&&this._updatePagingControls()},_pagingInfoSetter:function(t){var A=this.pagingInfo,G=this.map;this.pagingInfo=t;G&&t!==A&&this.features&&this.features.length&&this._updatePagingInfo()},_popupWindowSetter:function(t){var A=this.popupWindow,G=this.map;this.popupWindow=t;G&&t!==A&&(t?(this._updateUI(),this._updateWindow()):(this.hide(),this.showHighlight()))},_anchorSetter:function(t){var A=this.anchor;this.anchor=t;this.map&&t!==A&&this.reposition()},_startupContent:function(){var t=this._contentPane;
this.startupDijits(t);b.forEach(this._getPopupRendererDijits(t),function(A){if(!this._contentUpdateHandles[A.id]){var G=A.on("content-update",u.hitch(this,function(){this.reposition()}));this._contentUpdateHandles[A.id]=G}},this)},_destroyContent:function(){var t=this._contentPane;b.forEach(this._getPopupRendererDijits(t),function(A){var G=this._contentUpdateHandles[A.id];G&&(G.remove(),delete this._contentUpdateHandles[A.id])},this);this.destroyDijits(t)},_getPopupRendererDijits:function(t){t=this.getDijits(t);
return t=b.filter(t,function(A){return A&&A.set&&/_PopupRenderer/.test(A.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 t=this.selectedIndex;if(0<=t){var A=this.features[t].getContent();if(!this.titleInBody&&A&&u.isString(A.id)){var G=h.byId(A.id);G&&G.set&&/_PopupRenderer/.test(G.declaredClass)&&
G.set("showTitle",!1)}this.setContent(A);this.updateHighlight(this.map,this.features[t]);this.showHighlight()}},_toggleVisibility:function(t){this._setVisibility(t);this.isShowing=t},_setVisibility:function(t){d.toggle(this.domNode,"esriPopupVisible",t);d.toggle(this.domNode,"esriPopupHidden",!t)},_waitAndHide:function(t){var A=this;this._delayHide=!0;setTimeout(function(){A._delayHide&&(A._delayHide=!1,A.hide())},t)},_followMap:function(){this._unfollowMap();var t=this.map;this._handles=[p.connect(t,
"onPanStart",this,this._onPanStart),p.connect(t,"onPan",this,this._onPan),p.connect(t,"onZoomStart",this,this._onZoomStart),p.connect(t,"onExtentChange",this,this._onExtentChange)]},_unfollowMap:function(){var t=this._handles;t&&(b.forEach(t,p.disconnect),this._handles=null)},_onPanStart:function(){var t=this.domNode.style;this._panOrigin={left:t.left,top:t.top,right:t.right,bottom:t.bottom}},_onPan:function(t,A){var G=this._panOrigin;t=A.x;A=A.y;var J=G.left,U=G.top,ja=G.right;G=G.bottom;J&&(J=parseFloat(J)+
t+"px");U&&(U=parseFloat(U)+A+"px");ja&&(ja=parseFloat(ja)-t+"px");G&&(G=parseFloat(G)-A+"px");n.set(this.domNode,{left:J,top:U,right:ja,bottom:G})},_onZoomStart:function(){this._setVisibility(!1)},_onExtentChange:function(t,A,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(t){var A=
t.x,G=t.y;t=this.offsetX||0;var J=this.offsetY||0,U=0,ja=0,Z=this.map,fa=Z.position.x,qa=Z.position.y,V=Z.width,ea=Z.height;Z="Left";var ba="bottom",ma="right",va="top",da=k.getContentBox(this._positioner),ka=da.w/2,I=da.h/2,S=n.get(this._sizers[0],"height")+this._maxHeight+n.get(this._sizers[2],"height"),X=S/2,O=0,P=0,aa=V,ha=ea,la=A,ta=G,Ba=this._getTargetAnchor().toLowerCase();if("auto"===Ba){if(Ba=q.getBox)Ba=Ba(),O=Math.max(Ba.l,fa),aa=Math.min(Ba.l+Ba.w,fa+V),P=Math.max(Ba.t,qa),ha=Math.min(Ba.t+
Ba.h,qa+ea),la+=fa,ta+=qa;fa=ta-P>=S;qa=ha-ta>=S;V=aa-la>=da.w;da=la-O>=da.w;ta-P>X&&ha-ta>=X&&(V?(ba="",Z="Left",va="",ma="right"):da&&(ba="",Z="Right",va="",ma="left"));Z&&ba&&la-O>ka&&aa-la>=ka&&(fa?(Z="",ba="bottom",ma="",va="top"):qa&&(Z="",ba="top",ma="",va="bottom"));Z&&ba&&(V&&fa?(Z="Left",ba="bottom",ma="right",va="top"):V&&qa?(Z="Left",ba="top",ma="right",va="bottom"):da&&qa?(Z="Right",ba="top",ma="left",va="bottom"):da&&fa&&(Z="Right",ba="bottom",ma="left",va="top"));this._anchor=va&&ma?
va+"-"+ma:va||ma}else ba=Z="",-1!==Ba.indexOf("top")?ba="bottom":-1!==Ba.indexOf("bottom")&&(ba="top"),-1!==Ba.indexOf("left")?Z="Right":-1!==Ba.indexOf("right")&&(Z="Left"),this._anchor=this._getTargetAnchor();ma=ba+Z;switch(ma){case "top":case "bottom":ja=14;break;case "Left":case "Right":U=13;break;case "topLeft":case "topRight":case "bottomLeft":case "bottomRight":ja=14,U=-16}n.set(this.domNode,{left:A+"px",top:G+"px",right:null,bottom:null});A={left:null,right:null,top:null,bottom:null};Z?A[Z.toLowerCase()]=
U+t+"px":A.left=-ka+"px";ba?A[ba]=ja+J+"px":A.top=-I+"px";n.set(this._positioner,A);this._showPointer(ma)},_showPointer:function(t){d.remove(this._pointer,"top bottom right left topLeft topRight bottomRight bottomLeft hidden".split(" "));d.remove(this._outerPointer,["right","left","hidden"]);"Right"===t||"Left"===t?(t=t.toLowerCase(),d.add(this._outerPointer,t)):d.add(this._pointer,t)},_setPagerCallbacks:function(t,A,G){if(this.pagingControls&&(t!==this||this._pagerScope&&this._pagerScope!==this)&&
t!==this._pagerScope){this._pagerScope=t;t===this&&(A=this.selectPrevious,G=this.selectNext);var J=this._eventConnections;p.disconnect(J[1]);p.disconnect(J[2]);A&&(J[1]=p.connect(this._prevFeatureButton,"onclick",t,A));G&&(J[2]=p.connect(this._nextFeatureButton,"onclick",t,G))}},_getLocation:function(t){var A=t&&t.geometry;if(A)switch(A.type){case "point":var G=A;if(t.isAggregate()){t=t.getChildGraphics();var J=t[0];t=(J=J.geometry&&J.geometry.spatialReference)&&new x({points:b.map(t,function(U){U=
U.geometry;return[U.x,U.y]}),spatialReference:J.toJson()});J=E.getDenormalizedExtent(t)}break;case "multipoint":G=A.getPoint(0);J=E.getDenormalizedExtent(A);break;case "polyline":case "polygon":G=A.getPoint(0,0),J=E.getDenormalizedExtent(A)}return[G,J]},_zoomToFeature:function(t){t.preventDefault();var A=this.features,G=this.selectedIndex;t=this.map;if(A)if(G=this._getLocation(A[G]),A=G[0],G=G[1],A||(A=this.location),G&&G.intersects(this.location)||(this.location=A),G&&G.getWidth()&&G.getHeight())t.setExtent(G,
!0);else{var J=t.getNumLevels();G=t.getLevel();var U=t.getMaxZoom(),ja=this.zoomFactor||1;0<J?G!==U&&(J=G+ja,J>U&&(J=U),t.navigationManager._wheelZoom({value:J-G,mapPoint:A},!0)):t.navigationManager._wheelZoom({value:1/Math.pow(2,ja)*2,mapPoint:A},!0)}},_updatePagingControls:function(){var t=this._prevFeatureButton,A=this._nextFeatureButton,G=this.selectedIndex,J=this.features?this.features.length:0;this.pagingControls&&1<J?(0===G?d.add(t,"hidden"):d.remove(t,"hidden"),G===J-1?d.add(A,"hidden"):d.remove(A,
"hidden")):(d.add(t,"hidden"),d.add(A,"hidden"))},_updatePagingInfo:function(){var t=this.features?this.features.length:0,A=this._nls,G="\x26nbsp;";this.pagingInfo&&1<t&&A.NLS_pagingInfo&&(G=r.substitute({index:this.selectedIndex+1,total:t},A.NLS_pagingInfo));t&&(A=this.getSelectedFeature(),t=A.getInfoTemplate(),A=A.getTitle(),t&&!/esri\.InfoTemplate/.test(t.declaredClass)&&this.titleInBody||!A||(G=A+("\x26nbsp;"===G?"":" "+G)));this.setTitle(G)},_updateUI:function(){if(this.popupWindow){var t=this.features,
A=this.deferreds,G=t?t.length:0,J=this._spinner,U=this._actionList,ja=this._nls;this._updatePagingControls();this._updatePagingInfo();G?d.remove(U,"hidden"):d.add(U,"hidden");A&&A.length?t?d.remove(J,"hidden"):this.setContent("\x3cdiv style\x3d'text-align: center;'\x3e"+ja.NLS_searching+"...\x3c/div\x3e"):d.add(J,"hidden");G||A&&A.length?this._delayHide=!1:(this.setContent("\x3cdiv style\x3d'text-align: center;'\x3e"+ja.NLS_noInfo+".\x3c/div\x3e"),this.visibleWhenEmpty||this._waitAndHide(this.hideDelay))}}});
y("extend-esri")&&u.setObject("dijit.Popup",F,c);return F})},"dojo/window":function(){define("./_base/lang ./sniff ./_base/window ./dom ./dom-geometry ./dom-style ./dom-construct".split(" "),function(F,u,b,p,e,y,q){u.add("rtl-adjust-position-for-verticalScrollBar",function(f,g){f=b.body(g);g=q.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=q.create("div",{style:{overflow:"hidden",
direction:"ltr"}},g,"last"),d=0!=e.position(a).x;g.removeChild(a);f.removeChild(g);return d});u.add("position-fixed-support",function(f,g){f=b.body(g);g=q.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},f,"last");var a=q.create("span",{style:{position:"fixed",left:"0",top:"0"}},g,"last"),d=e.position(a).x!=e.position(g).x;g.removeChild(a);f.removeChild(g);return d});var m={getBox:function(f){f=f||b.doc;var g="BackCompat"==f.compatMode?b.body(f):f.documentElement,
a=e.docScroll(f);if(u("touch")){var d=m.get(f);f=d.innerWidth||g.clientWidth;g=d.innerHeight||g.clientHeight}else f=g.clientWidth,g=g.clientHeight;return{l:a.x,t:a.y,w:f,h:g}},get:function(f){if(u("ie")&&m!==document.parentWindow){f.parentWindow.execScript("document._parentWindow \x3d window;","Javascript");var g=f._parentWindow;f._parentWindow=null;return g}return f.parentWindow||f.defaultView},scrollIntoView:function(f,g){try{f=p.byId(f);var a=f.ownerDocument||b.doc,d=b.body(a),l=a.documentElement||
d.parentNode,k=u("ie")||u("trident"),n=u("webkit");if(f!=d&&f!=l)if(!(u("mozilla")||k||n||u("opera")||u("trident")||u("edge"))&&"scrollIntoView"in f)f.scrollIntoView(!1);else{var h="BackCompat"==a.compatMode,c=Math.min(d.clientWidth||l.clientWidth,l.clientWidth||d.clientWidth),r=Math.min(d.clientHeight||l.clientHeight,l.clientHeight||d.clientHeight);a=n||h?d:l;var v=g||e.position(f),z=f.parentNode;g=function(fa){return 6>=k||7==k&&h?!1:u("position-fixed-support")&&"fixed"==y.get(fa,"position").toLowerCase()};
var C=this;n=function(fa,qa,V){"BODY"==fa.tagName||"HTML"==fa.tagName?C.get(fa.ownerDocument).scrollBy(qa,V):(qa&&(fa.scrollLeft+=qa),V&&(fa.scrollTop+=V))};if(!g(f))for(;z;){z==d&&(z=a);var x=e.position(z),E=g(z),B="rtl"==y.getComputedStyle(z).direction.toLowerCase();if(z==a)x.w=c,x.h=r,a==l&&(k||u("trident"))&&B&&(x.x+=a.offsetWidth-x.w),x.x=0,x.y=0;else{var w=e.getPadBorderExtents(z);x.w-=w.w;x.h-=w.h;x.x+=w.l;x.y+=w.t;var D=z.clientWidth,t=x.w-D;0<D&&0<t&&(B&&u("rtl-adjust-position-for-verticalScrollBar")&&
(x.x+=t),x.w=D);D=z.clientHeight;t=x.h-D;0<D&&0<t&&(x.h=D)}E&&(0>x.y&&(x.h+=x.y,x.y=0),0>x.x&&(x.w+=x.x,x.x=0),x.y+x.h>r&&(x.h=r-x.y),x.x+x.w>c&&(x.w=c-x.x));var A=v.x-x.x,G=v.y-x.y,J=A+v.w-x.w,U=G+v.h-x.h;if(0<J*A&&(z.scrollLeft||z==a||z.scrollWidth>z.offsetHeight)){var ja=Math[0>A?"max":"min"](A,J);B&&(8==k&&!h||5<=u("trident"))&&(ja=-ja);var Z=z.scrollLeft;n(z,ja,0);ja=z.scrollLeft-Z;v.x-=ja}0<U*G&&(z.scrollTop||z==a||z.scrollHeight>z.offsetHeight)&&(ja=Math.ceil(Math[0>G?"max":"min"](G,U)),Z=
z.scrollTop,n(z,0,ja),ja=z.scrollTop-Z,v.y-=ja);z=z!=a&&!E&&z.parentNode}}}catch(fa){console.error("scrollIntoView: "+fa),f.scrollIntoView(!1)}}};F.setObject("dojo.window",m);return m})},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(F,u,b,p){return F("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(e){var y=this._attrPairNames;return y[e]?y[e]:y[e]={s:"_"+e+"Setter",g:"_"+e+"Getter"}},postscript:function(e){e&&this.set(e)},_get:function(e,
y){return"function"===typeof this[y.g]?this[y.g]():this[e]},get:function(e){return this._get(e,this._getAttrNames(e))},set:function(e,y){if("object"===typeof e){for(var q in e)e.hasOwnProperty(q)&&"_watchCallbacks"!=q&&this.set(q,e[q]);return this}q=this._getAttrNames(e);var m=this._get(e,q);q=this[q.s];var f;"function"===typeof q?f=q.apply(this,Array.prototype.slice.call(arguments,1)):this[e]=y;if(this._watchCallbacks){var g=this;p(f,function(){g._watchCallbacks(e,m,y)})}return this},_changeAttrValue:function(e,
y){var q=this.get(e);this[e]=y;this._watchCallbacks&&this._watchCallbacks(e,q,y);return this},watch:function(e,y){var q=this._watchCallbacks;if(!q){var m=this;q=this._watchCallbacks=function(g,a,d,l){var k=function(n){if(n){n=n.slice();for(var h=0,c=n.length;h<c;h++)n[h].call(m,g,a,d)}};k(q["_"+g]);l||k(q["*"])}}y||"function"!==typeof e?e="_"+e:(y=e,e="*");var f=q[e];"object"!==typeof f&&(f=q[e]=[]);f.push(y);e={};e.unwatch=e.remove=function(){var g=b.indexOf(f,y);-1<g&&f.splice(g,1)};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(F,u,b,p,e,y,q,m,f,g,a,d){function l(w,D){return Math.ceil((w-D)/(2*D))}function k(w,D){var t=w.paths||w.rings,A,G,J=t.length;for(A=0;A<J;A++){var U=t[A].length;for(G=0;G<U;G++){var ja=w.getPoint(A,G);w.setPoint(A,G,ja.offset(D,0))}}return w}function n(w,D){if(!(w instanceof
f||w instanceof g))throw console.error("_straightLineDensify: the input geometry is neither polyline nor polygon"),Error("_straightLineDensify: the input geometry is neither polyline nor polygon");var t=w instanceof f,A=[],G;F.forEach(t?w.paths:w.rings,function(J){A.push(G=[]);G.push([J[0][0],J[0][1]]);var U,ja;for(U=0;U<J.length-1;U++){var Z=J[U][0];var fa=J[U][1];var qa=J[U+1][0];var V=J[U+1][1];var ea=Math.sqrt((qa-Z)*(qa-Z)+(V-fa)*(V-fa));var ba=(V-fa)/ea;var ma=(qa-Z)/ea;var va=ea/D;if(1<va){for(ja=
1;ja<=va-1;ja++){var da=ja*D;var ka=ma*da+Z;da=ba*da+fa;G.push([ka,da])}ja=(ea+Math.floor(va-1)*D)/2;ka=ma*ja+Z;da=ba*ja+fa;G.push([ka,da])}G.push([qa,V])}});return t?new f({paths:A,spatialReference:w.spatialReference}):new g({rings:A,spatialReference:w.spatialReference})}function h(w,D,t){D&&(w=n(w,1E6),w=a.webMercatorToGeographic(w,!0));t&&(w=k(w,t));return w}function c(w,D,t){var A=w.x||w[0];if(A>D){var G=l(A,D);w.x?w=w.offset(-2*G*D,0):w[0]=A+-2*G*D}else A<t&&(G=l(A,t),w.x?w=w.offset(-2*G*t,0):
w[0]=A+-2*G*t);return w}function r(w,D){var t=-1;F.forEach(D.cutIndexes,function(A,G){var J=D.geometries[G];F.forEach(J.rings||J.paths,function(U,ja){F.some(U,function(Z){if(!(180>Z[0])){Z=0;var fa,qa=U.length;for(fa=0;fa<qa;fa++){var V=U[fa][0];Z=V>Z?V:Z}Z=Number(Z.toFixed(9));Z=-360*l(Z,180);qa=U.length;for(fa=0;fa<qa;fa++)V=J.getPoint(ja,fa),J.setPoint(ja,fa,V.offset(Z,0))}return!0})});A===t?J.rings?F.forEach(J.rings,function(U){w[A]=w[A].addRing(U)}):F.forEach(J.paths,function(U){w[A]=w[A].addPath(U)}):
(t=A,w[A]=J)});return w}function v(w,D,t,A){var G=new b;G.addCallbacks(t,A);D=D||y.defaults.geometryService;var J=[],U=[],ja,Z,fa,qa,V,ea,ba,ma,va=0;F.forEach(w,function(S){if(S)if(ja||(ja=S.spatialReference,Z=ja._getInfo(),qa=(fa=ja._isWebMercator())?2.0037508342788905E7:180,V=fa?-2.0037508342788905E7:-180,ea=fa?102100:4326,ba=new f({paths:[[[qa,V],[qa,qa]]],spatialReference:{wkid:ea}}),ma=new f({paths:[[[V,V],[V,qa]]],spatialReference:{wkid:ea}})),Z){var X=d.fromJson(S.toJson()),O=S.getExtent();
"point"===S.type?J.push(c(X,qa,V)):"multipoint"===S.type?(X.points=F.map(X.points,function(P){return c(P,qa,V)}),J.push(X)):"extent"===S.type?(X=O._normalize(null,null,Z),J.push(X.rings?new g(X):X)):O?(S=2*l(O.xmin,V)*qa,X=0===S?X:k(X,S),O=O.offset(S,0),O.intersects(ba)&&O.xmax!==qa?(va=O.xmax>va?O.xmax:va,X=h(X,fa),U.push(X),J.push("cut")):O.intersects(ma)&&O.xmin!==V?(va=2*O.xmax*qa>va?2*O.xmax*qa:va,X=h(X,fa,360),U.push(X),J.push("cut")):J.push(X)):J.push(X)}else J.push(S);else J.push(S)});t=new f;
A=l(va,qa);for(var da=-90,ka=A;0<A;){var I=-180+360*A;t.addPath([[I,da],[I,-1*da]]);da*=-1;A--}0<U.length&&0<ka?D?D.cut(U,t,function(S){U=r(U,S);var X=[];F.forEach(J,function(O,P){"cut"===O&&(O=U.shift(),w[P].rings&&1<w[P].rings.length&&O.rings.length>=w[P].rings.length?(J[P]="simplify",X.push(O)):J[P]=!0===fa?a.geographicToWebMercator(O):O)});0<X.length?D.simplify(X,function(O){F.forEach(J,function(P,aa){"simplify"===P&&(J[aa]=!0===fa?a.geographicToWebMercator(O.shift()):O.shift())});G.callback(J)},
function(O){G.errback(O)}):G.callback(J)},function(S){G.errback(S)}):G.errback(Error("esri.geometry.normalizeCentralMeridian: 'geometryService' argument is missing.")):(F.forEach(J,function(S,X){"cut"===S&&(S=U.shift(),J[X]=!0===fa?a.geographicToWebMercator(S):S)}),G.callback(J));return G}function z(w,D,t,A){var G=!1,J;u.isObject(w)&&w&&(u.isArray(w)?w.length&&((J=w[0]&&w[0].declaredClass)&&-1!==J.indexOf("Graphic")?(w=F.map(w,function(U){return U.geometry}),G=w.length?!0:!1):J&&-1!==J.indexOf("esri.geometry.")&&
(G=!0)):(J=w.declaredClass)&&-1!==J.indexOf("FeatureSet")?(w=F.map(w.features||[],function(U){return U.geometry}),G=w.length?!0:!1):J&&-1!==J.indexOf("esri.geometry.")&&(G=!0));G&&D.push({index:t,property:A,value:w})}function C(w,D){var t=[];F.forEach(D,function(A){var G=A.i,J=w[G];A=A.p;var U;if(u.isObject(J)&&J)if(A)if("*"===A[0])for(U in J)J.hasOwnProperty(U)&&z(J[U],t,G,U);else F.forEach(A,function(ja){z(u.getObject(ja,!1,J),t,G,ja)});else z(J,t,G)});return t}function x(w,D){var t=0,A={};F.forEach(D,
function(G){var J=G.index,U=G.property,ja=G.value,Z=ja.length||1,fa=w.slice(t,t+Z);u.isArray(ja)||(fa=fa[0]);t+=Z;delete G.value;U?(A[J]=A[J]||{},A[J][U]=fa):A[J]=fa});return A}function E(w){for(var D=[],t=0,A=0,G=Math.min,J=Math.max,U=0;U<w.length;U++){for(var ja=w[U],Z=null,fa=0;fa<ja.length;fa++)Z=ja[fa],D.push(Z),0===fa?A=t=Z[0]:(t=G(t,Z[0]),A=J(A,Z[0]));Z&&D.push([(t+A)/2,0])}return D}var B={normalizeCentralMeridian:v,_foldCutResults:r,_prepareGeometryForCut:h,_offsetMagnitude:l,_pointNormalization:c,
_updatePolyGeometry:k,_straightLineDensify:n,_createWrappers:function(w){var D=u.isObject(w)?w.prototype:u.getObject(w+".prototype");F.forEach(D.__msigns,function(t){var A=D[t.n];D[t.n]=function(){var G=this,J=[],U,ja=new b(q._dfdCanceller);t.f&&q._fixDfd(ja);for(U=0;U<t.c;U++)J[U]=arguments[U];var Z={dfd:ja};J.push(Z);var fa=[],qa;if(G.normalization&&!G._isTable){var V=C(J,t.a);F.forEach(V,function(ea){fa=fa.concat(ea.value)});fa.length&&(qa=v(fa))}qa?(ja._pendingDfd=qa,qa.addCallbacks(function(ea){ja.canceled||
(Z.assembly=x(ea,V),ja._pendingDfd=A.apply(G,J))},function(ea){var ba=G.declaredClass;ba&&-1!==ba.indexOf("FeatureLayer")?G._resolve([ea],null,J[t.e],ja,!0):G._errorHandler(ea,J[t.e],ja)})):ja._pendingDfd=A.apply(G,J);return ja}})},_disassemble:C,_addToBucket:z,_reassemble:x,getDenormalizedExtent:function(w){if(!w)return null;var D=w.getExtent();if(!D)return null;var t=w.spatialReference&&w.spatialReference._getInfo();if(!t)return D;var A=t.valid[0];t=t.valid[1];var G=2*t,J=D.getWidth(),U=D.xmax,
ja=D.xmin;if("extent"===w.type||0===J||J<=t||J>G||U<A||ja>t)return D;switch(w.type){case "polygon":if(1<w.rings.length)var Z=E(w.rings);else return D;break;case "polyline":if(1<w.paths.length)Z=E(w.paths);else return D;break;case "multipoint":Z=w.points}w=Math.min;A=Math.max;G=new m(D.toJson());for(var fa=0;fa<Z.length;fa++){var qa=Z[fa][0];0>qa?(qa+=t,ja=A(qa,ja)):(qa-=t,U=w(qa,U))}G.xmin=U;G.xmax=ja;return G.getWidth()<J?(G.xmin-=t,G.xmax-=t,G):D}};p("extend-esri")&&u.mixin(u.getObject("geometry",
!0,e),B);return B})},"esri/geometry/jsonUtils":function(){define("dojo/_base/lang dojo/has ../kernel ../lang ./Point ./Polyline ./Polygon ./Multipoint ./Extent".split(" "),function(F,u,b,p,e,y,q,m,f){function g(k,n,h){var c=k.rings||k.paths,r,v;var z=0;for(r=c.length;z<r;z++){var C=c[z];var x=0;for(v=C.length;x<v;x++){var E=C[x];if(0<x)B+=E[0],w+=E[1];else{var B=E[0];var w=E[1]}E[0]=n(B);E[1]=h(w)}}return k}var a={esriGeometryPoint:function(k,n,h){k.x=n(k.x);k.y=h(k.y);return k},esriGeometryPolyline:g,
esriGeometryPolygon:g,esriGeometryEnvelope:function(k,n,h){k.xmin=n(k.xmin);k.ymin=h(k.ymin);k.xmax=n(k.xmax);k.ymax=h(k.ymax);return k},esriGeometryMultipoint:function(k,n,h){var c=k.points,r;var v=0;for(r=c.length;v<r;v++){var z=c[v];if(0<v)C+=z[0],x+=z[1];else{var C=z[0];var x=z[1]}z[0]=n(C);z[1]=h(x)}return k}},d={esriGeometryPoint:function(k,n,h){k.x=n(k.x);k.y=h(k.y);return k}},l={createInstance:function(k,n){k=new k;n&&p.mixin(k,n);return k},fromJson:function(k){if(void 0!==k.x&&void 0!==k.y)return new e(k);
if(void 0!==k.paths)return new y(k);if(void 0!==k.rings)return new q(k);if(void 0!==k.points)return new m(k);if(void 0!==k.xmin&&void 0!==k.ymin&&void 0!==k.xmax&&void 0!==k.ymax)return new f(k)},getJsonType:function(k){return k instanceof e?"esriGeometryPoint":k instanceof y?"esriGeometryPolyline":k instanceof q?"esriGeometryPolygon":k instanceof f?"esriGeometryEnvelope":k instanceof m?"esriGeometryMultipoint":null},getGeometryType:function(k){return"esriGeometryPoint"===k?e:"esriGeometryPolyline"===
k?y:"esriGeometryPolygon"===k?q:"esriGeometryEnvelope"===k?f:"esriGeometryMultipoint"===k?m:null},supportsLazyUnquantization:function(k){return"esriGeometryPoint"===k||"esriGeometryPolyline"===k||"esriGeometryPolygon"===k||"esriGeometryMultipoint"===k},unquantizeFunction:function(k,n){if(k&&n){var h=n.translate[0],c=n.translate[1],r=n.scale[0],v=n.scale[1],z=function(E){return E*r+h},C=function(E){return c-E*v},x=a[k];return function(E){return E?x(E,z,C):null}}},unquantize:function(k,n,h){if(n=l.unquantizeFunction(n,
h)){var c=k.length;for(h=0;h<c;h++)n(k[h].geometry)}},quantizeFunction:function(k,n){if(k&&"esriGeometryPoint"===k&&n){var h=n.translate[0],c=n.translate[1],r=n.scale[0],v=n.scale[1],z=function(E){return Math.round((E-h)/r)},C=function(E){return Math.round((c-E)/v)},x=d[k];return function(E){return E?x(E,z,C):null}}},quantize:function(k,n,h){if(n=l.quantizeFunction(n,h)){var c=k.length;for(h=0;h<c;h++)n(k[h].geometry)}}};u("extend-esri")&&F.mixin(F.getObject("geometry",!0,b),l);return l})},"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(F,u,b,p,e,y,q,m,f,g,a){F=F(null,{declaredClass:"esri.InfoWindowBase",constructor:function(){var d=u.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,l){g.isDefined(d)?u.isObject(d)?y.place(d,l,"only"):l.innerHTML=d:l.innerHTML=""},startupDijits:function(d){this._processDijits(d)},destroyDijits:function(d){this._processDijits(d,!0)},getDijits:function(d){var l=[];d&&1===d.children.length&&(d=d.children[0])&&(l=(l=m.byNode(d))?[l]:m.findWidgets(d));return l},_processDijits:function(d,l){d=this.getDijits(d);b.forEach(d,function(k){if(l){if(k._started&&!k._destroyed)try{k.destroyRecursive?k.destroyRecursive():k.destroy&&k.destroy()}catch(n){console.debug("An error occurred when destroying a widget embedded within InfoWindow: "+
n.message)}}else if(!k._started)try{k.startup()}catch(n){console.debug("An error occurred when starting a widget embedded within InfoWindow: "+n.message)}})},__registerMapListeners:function(){this.__unregisterMapListeners();var d=this.map;this.__handles=[p.connect(d,"onPan",this,this.__onMapPan),p.connect(d,"onZoomStart",this,this.__onMapZmStart),p.connect(d,"onExtentChange",this,this.__onMapExtChg)]},__unregisterMapListeners:function(){var d=this.__handles;d&&(b.forEach(d,p.disconnect,p),this.__handles=
null)},__onMapPan:function(d,l){this.move(l,!0)},__onMapZmStart:function(){this.__mcoords=this.mapCoords||this.map.toMap(new a(this.coords));this.hide(null,!0)},__onMapExtChg:function(d,l,k){d=this.map;var n=this.mapCoords;n?this.show(n,null,!0):(l=k?d.toScreen(this.__mcoords):this.coords.offset(l&&l.x||0,l&&l.y||0),this.show(l,null,!0))},__setValue:function(d,l){this[d].innerHTML="";var k="_dfd"+d,n=this[k];n&&-1===n.fired&&(n.cancel(),this[k]=null);g.isDefined(l)&&(l instanceof e?(this[k]=l,l.addCallbacks(this["__set"+
d],this["__err"+d])):this.__render(d,l))},__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,l){var k=this[d];this.place(l,k);this.isShowing&&(this.startupDijits(k),"_title"===d&&this._adjustContentArea&&this._adjustContentArea())}});q("extend-esri")&&(f.InfoWindowBase=F);return F})},"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".split(" "),
function(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r){function v(z){return"sizeInfo"===z.type}F=F(r,{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",u.hitch(this,this._resetUpdateEndListeners));
this.on("dfd-complete",u.hitch(this,this._processFeatures));this.on("set-features",u.hitch(this,this._processFeatures));this.on("selection-change",u.hitch(this,this._checkFeatureResolution))},cleanup:function(){this.features=this.deferreds=null;this._resetUpdateEndListeners();this._untrackMapLevelChange()},setFeatures:function(z){if(z&&z.length){this.clearFeatures(!0);var C,x;z[0]instanceof e?x=z:C=z;C?this._updateFeatures(null,C):(this.deferreds=x,x=x.slice(0),b.forEach(x,function(E){E.addBoth(u.hitch(this,
this._updateFeatures,E))},this))}},clearFeatures:function(z){this.features=this.deferreds=this._marked=null;this.count=0;var C=this.selectedIndex;this.selectedIndex=-1;if(-1<C)this.onSelectionChange();this.onClearFeatures({isIntermediate:!!z})},getSelectedFeature:function(){var z=this.features;if(z)return z[this.selectedIndex]},select:function(z){0>z||z>=this.count||(this.selectedIndex=z,this.onSelectionChange())},enableHighlight:function(z){this._highlighted=z.graphics.add(new m(new f(0,0,z.spatialReference)));
this._highlighted.attr("data-popup-highlight","");this._highlighted.hide();this._trackMapLevelChange(z);this.markerSymbol||(z=this.markerSymbol=new l,z.setStyle(l.STYLE_TARGET),z._setDim(16,16,0),z.setOutline(new n(k.STYLE_SOLID,new p([0,255,255]),2,n.CAP_ROUND,n.JOIN_ROUND)),z.setColor(new p([0,0,0,0])));this.lineSymbol||(this.lineSymbol=new k(k.STYLE_SOLID,new p([0,255,255]),2));this.fillSymbol||(this.fillSymbol=new h(h.STYLE_NULL,new k(k.STYLE_SOLID,new p([0,255,255]),2),new p([0,0,0,0])));this.clusterFillSymbol||
(this.clusterFillSymbol=new h(h.STYLE_SOLID,new k(k.STYLE_SOLID,new p([0,255,255]),1.33),null))},disableHighlight:function(z){var C=this._highlighted;C&&(C.hide(),z.graphics.remove(C),delete this._highlighted);this._untrackMapLevelChange();this.markerSymbol=this.lineSymbol=this.fillSymbol=null},showHighlight:function(){var z=this.features&&this.features[this.selectedIndex];this._highlighted&&z&&z.geometry&&this._highlighted.show()},hideHighlight:function(){this._highlighted&&this._highlighted.hide()},
updateHighlight:function(z,C){var x=C.geometry,E=this._highlighted;if(x&&E){E.hide();!E._graphicsLayer&&z&&z.graphics.add(E);E.setGeometry(g.fromJson(x.toJson()));switch(x.type){case "point":case "multipoint":var B=C.getLayer(),w=C.symbol||B&&B._getSymbol(C);if(B&&w){var D;x=w.xoffset||0;var t=w.yoffset||0,A=w.angle||0;switch(w.type){case "simplemarkersymbol":var G=D=w.size||0;break;case "picturemarkersymbol":G=w.width||0;D=w.height||0;break;case "textsymbol":G=D=w.font&&w.font.size||0}var J=C.symbol?
null:B._getRenderer(C);(B=this._getSizeInfo(J))?z=C=J.getSize(C,{sizeInfo:B,shape:w.style,resolution:z&&z.getResolutionInMeters&&z.getResolutionInMeters()}):null!=C.size?z=C=C.size:(z=G,C=D);J=this.markerSymbol;z&&C&&(x&&(x=x/G*z),t&&(t=t/D*C),J._setDim(z+4,C+4,0));J.setOffset(x,t);J.setAngle(A)}break;case "polyline":J=this.lineSymbol;break;case "polygon":J=this.fillSymbol}E.setSymbol(J)}else E&&E.hide()},showClosestFirst:function(z){var C=this.features;if(C&&C.length){if(1<C.length){var x,E=Infinity,
B=-1,w,D=a.getLength,t=z.spatialReference;z=z.normalize();for(x=C.length-1;0<=x;x--)if(w=C[x].geometry){var A=w.spatialReference;var G=0;try{var J="point"===w.type?w:w.getExtent().getCenter();J=J.normalize();t&&A&&!t.equals(A)&&t._canProject(A)&&(J=t.isWebMercator()?d.geographicToWebMercator(J):d.webMercatorToGeographic(J));G=D(z,J)}catch(U){}0<G&&G<E&&(E=G,B=x)}0<B&&(C.splice(0,0,C.splice(B,1)[0]),this.select(0))}}else this.deferreds&&(this._marked=z)},_trackMapLevelChange:function(z){this._untrackMapLevelChange();
this._mapLevelChangeHandle=z.on("extent-change",u.hitch(this,function(C){C.levelChange&&this._checkFeatureResolution()}))},_untrackMapLevelChange:function(){this._mapLevelChangeHandle&&(this._mapLevelChangeHandle.remove(),this._mapLevelChangeHandle=null)},_unbind:function(z){z=b.indexOf(this.deferreds,z);if(-1!==z)return this.deferreds.splice(z,1),this.deferreds.length?1:(this.deferreds=null,2)},_fireComplete:function(z){var C=this._marked;C&&(this._marked=null,this.showClosestFirst(C));this.onDfdComplete(z)},
_updateFeatures:function(z,C){if(z){if(this.deferreds&&(z=this._unbind(z)))if(C&&C instanceof Error){if(this._fireComplete(C),2===z)this.onSetFeatures()}else if(C&&C.length)if(this.features){if(C=b.filter(C,function(x){return-1===b.indexOf(this.features,x)},this),this.features=this.features.concat(C),this.count=this.features.length,this._fireComplete(),2===z)this.onSetFeatures()}else{this.features=C;this.count=C.length;this.selectedIndex=0;this._fireComplete();if(2===z)this.onSetFeatures();this.select(0)}else if(this._fireComplete(),
2===z)this.onSetFeatures()}else this.features=C,this.count=C.length,this.selectedIndex=0,this.onSetFeatures(),this.select(0)},_getSizeInfo:function(z){return z?z.sizeInfo||b.filter(z.visualVariables,v)[0]:null},_resetUpdateEndListeners:function(){this._featureLayers={};b.forEach(this._updateEndHandles,function(z){z.remove()});this._updateEndHandles=[]},_processFeatures:function(){b.forEach(this.features,function(z){(z=z.getLayer())&&!this._featureLayers[z.id]&&(1===z.currentMode||0===z.currentMode&&
6===z.mode)&&z.objectIdField&&z.hasXYFootprint&&z.queryFeatures&&(this._featureLayers[z.id]=z,z=z.on("update-end",u.hitch(this,this._fLyrUpdateEndHandler)),this._updateEndHandles.push(z))},this)},_fLyrUpdateEndHandler:function(z){if(!z.error){var C=this,x=z.target,E=x.getSelectedFeatures(),B=0===x.currentMode&&6===x.mode,w={},D=[];b.forEach(this.features,function(t){if(t.getLayer()===x){var A=t.attributes[x.objectIdField];w[A]=t;D.push(A)}});D.length&&(z=new c,z.objectIds=D,x.queryFeatures(z,function(t){b.forEach(t.features,
function(A){var G=w[A.attributes[x.objectIdField]],J=!1;G.geometry!==A.geometry||x.hasWebGLSurface()?(G.setGeometry(A.geometry),J=!0):B&&E&&-1!==b.indexOf(E,A)&&(J=!0);J&&this._highlighted&&G===this.getSelectedFeature()&&this._highlighted.setGeometry(A.geometry)},C)}))}},_checkFeatureResolution:function(){var z=this.getSelectedFeature(),C=this.map;if(z&&C){var x=z.getLayer();if(x){var E=z.getResolution();2===x.currentMode&&z.geometry&&E&&E>C.getResolution()&&(C=C.getResolutionForPopup(),(x=this._refetchFeature(z,
C,x))&&x.then(u.hitch(this,this._updateFeatureResolution,z,C)))}}},_refetchFeature:function(z,C,x){if(z=this._createQueryForCustomResolution(z,C,x))return x.queryFeatures(z).then(function(E){return E&&E.features[0]})},_createQueryForCustomResolution:function(z,C,x){x=x.objectIdField;var E=z.attributes;E=E&&x&&E[x];if(null==E)return null;var B=new c;B.objectIds=[E];B.maxAllowableOffset=C;B.outFields=[x];B.outSpatialReference=z.geometry.spatialReference;return B},_updateFeatureResolution:function(z,
C,x){z.getResolution()!==C&&(z.setResolution(C),z.setGeometry(x.geometry),this._highlighted&&z===this.getSelectedFeature()&&this._highlighted.setGeometry(z.geometry))}});y("extend-esri")&&(q.PopupBase=F);return F})},"esri/graphic":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ./kernel ./domUtils ./lang ./InfoTemplate ./geometry/jsonUtils ./symbols/jsonUtils".split(" "),function(F,u,b,p,e,y,q,m,f){function g(){}F=F(null,{declaredClass:"esri.Graphic",constructor:function(a,d,l,k){this._construct();
a&&!a.declaredClass?(this.geometry=a.geometry?m.fromJson(a.geometry):null,this.symbol=a.symbol?f.fromJson(a.symbol):null,this.attributes=a.attributes||null,this.infoTemplate=a.infoTemplate?new q(a.infoTemplate):null):(this.geometry=a,this.symbol=d,this.attributes=l,this.infoTemplate=k)},_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,l,k=a.length,n=[];for(l=0;l<k;l++)(d=a[l]&&
a[l].getNode())&&d.nodeType&&n.push(d);return n},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 l=this._graphicsLayer,k=this._shape;this.symbol=a;l&&(d&&k&&l._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(u.isFunction(d))d=d.call(a,this);else if(u.isString(d)){var l=(a=this.getLayer())&&a._getDateOpts;d=y.substitute(this.attributes,d,{first:!0,dateFormat:l&&l.call(a)})}return d},getContent:function(){var a=this.getInfoTemplate(),
d=a&&a.content;if(u.isFunction(d))d=d.call(a,this);else if(u.isString(d)){var l=(a=this.getLayer())&&a._getDateOpts;d=y.substitute(this.attributes,d,{dateFormat:l&&l.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 l=d.length;for(a=0;a<l;a++)e.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,l;if(a){if("canvas-2d"===a.surfaceType)a._removeShape(this);else{var k=this.getNodes();if(l=k.length)for(d=0;d<l;d++)e.hide(k[d])}a._graphicVisibilityChanged(this)}return this},toJson:function(){var a=
{};this.geometry&&(a.geometry=this.geometry.toJson());this.attributes&&(a.attributes=u.mixin({},this.attributes));this.symbol&&(a.symbol=this.symbol.toJson());this.infoTemplate&&(a.infoTemplate=this.infoTemplate.toJson());return a},_setDataAttr:function(a,d){var l=this.getNodes(),k,n=l.length;for(k=0;k<n;k++)this._setDOMDataAttr(l[k],a,d)},_setDOMDataAttr:function(a,d,l){null==l?a.removeAttribute(d):a.setAttribute(d,l)},_applyDataAttrs:function(){var a=this._dataAttrs;if(a){var d=this.getNodes(),
l,k=d.length;for(l=0;l<k;l++)for(var n in a)this._setDOMDataAttr(d[l],n,a[n])}},_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,l,k,n,h){var c=d.id,r=this.attributes,v=a.field,z=d.isNumeric,C=null;if(c){var x=this._computedAttributes,E=this._computedVersion,B=this._computedGeomVersion;k=this._getViewInfo(k);var w=!(!n||!n.async),
D=h&&h.skipCache||w,t=!h||!1!==h.strictReturnType,A=d.dependsOnView||d.isJSFunc,G=d.dependsOnGeometry;x||(x=this._computedAttributes={});A&&!E&&(E=this._computedVersion={});G&&!B&&(B=this._computedGeomVersion={});var J=A&&E[c]!==k.version||G&&B[c]!==this._geomVersion;C=x[c];if(void 0===C||J||D)C=null,d.hasExpr?C=n?n.evaluate(h&&h.context):l.executeFunction(d.compiledFunc,l.createExecContext(this,k)):d.isJSFunc?C=v(this,a):r&&(C=r[v],z&&this._isValidNumber(C)&&(d=a.normalizationType||"field",l=C,C=
null,n=a.normalizationTotal,a=r[a.normalizationField],"log"===d&&0!==l?C=Math.log(l)*Math.LOG10E:"percent-of-total"===d&&this._isValidNumber(n)&&0!==n?C=l/n*100:"field"===d&&this._isValidNumber(a)&&0!==a&&(C=l/a))),t&&(w?z&&(this._construct(),C=C.then(this._sanitizeNumericValue)):C=this._sanitizeValue(C,z)),D||(x[c]=C,A&&(E[c]=k.version),G&&(B[c]=this._geomVersion))}else r&&(C=this._sanitizeValue(r[v],z));return C},_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=u.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,l=this._computedVersion,k=this._computedGeomVersion;d&&(d[a]=void 0);l&&(l[a]=void 0);k&&(k[a]=void 0)}else this._computedAttributes=this._computedVersion=this._computedGeomVersion=null}});F.prototype.getShape=
F.prototype.getDojoShape;g.prototype=F.prototype;F.simpleConstructor=g;b("extend-esri")&&(p.Graphic=F);return F})},"esri/InfoTemplate":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","./kernel","./lang"],function(F,u,b,p,e){F=F(null,{declaredClass:"esri.InfoTemplate",constructor:function(y,q){y&&u.isObject(y)&&!u.isFunction(y)?u.mixin(this,y):(this.title=y||"${*}",this.content=q||"${*}")},setTitle:function(y){this.title=y;return this},setContent:function(y){this.content=y;return this},
toJson:function(){return e.fixJson({title:this.title,content:this.content})}});b("extend-esri")&&(p.InfoTemplate=F);return F})},"esri/symbols/jsonUtils":function(){define("dojo/_base/lang dojo/_base/array dojo/has ../kernel ./SimpleMarkerSymbol ./PictureMarkerSymbol ./SimpleLineSymbol ./CartographicLineSymbol ./SimpleFillSymbol ./PictureFillSymbol ./TextSymbol".split(" "),function(F,u,b,p,e,y,q,m,f,g,a){var d={createDefaultSymbol:function(l){switch(l){case "esriGeometryPoint":case "esriGeometryMultipoint":var k=
d.createDefaultMarkerSymbol();break;case "esriGeometryPolyline":k=d.createDefaultLineSymbol();break;case "esriGeometryPolygon":case "esriGeometryEnvelope":case "esriGeometryMultiPatch":k=d.createDefaultFillSymbol()}return k},createDefaultMarkerSymbol:function(){return new e},createDefaultLineSymbol:function(){return new q},createDefaultFillSymbol:function(){return new f},getFirstSupportedSymbol:function(l){var k;u.some(l,function(n){n&&-1<d.supportedSymbolTypes.indexOf(n.type)&&(k=n);return!!k});
return k},isPointSymbol:function(l){return l?-1<d.supportedPointSymbolTypes.indexOf(l.type):!1},supportedPointSymbolTypes:["esriSMS","esriPMS","esriTS"],supportedSymbolTypes:"esriSMS esriPMS esriTS esriSLS esriCLS esriSFS esriPFS".split(" "),fromJson:function(l,k){var n=null;switch(l.type){case "esriSMS":n=new e(l);break;case "esriPMS":n=new y(l);break;case "esriTS":n=new a(l);break;case "esriSLS":n=void 0!==l.cap?new m(l):new q(l);break;case "esriCLS":n=new m(l);break;case "esriSFS":n=new f(l);break;
case "esriPFS":n=new g(l);break;default:n=(l=k&&k.geometryType)?d.createDefaultSymbol(l):null}return n},getShapeDescriptors:function(l){return l&&l.getShapeDescriptors?l.getShapeDescriptors():{defaultShape:null,fill:null,stroke:null}}};b("extend-esri")&&F.mixin(F.getObject("symbol",!0,p),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(F,u,b,p,e,y,q,m){var f=
{url:"",width:12,height:12,angle:0,xoffset:0,yoffset:0};F=F(m,{declaredClass:"esri.symbol.PictureMarkerSymbol",type:"picturemarkersymbol",constructor:function(g,a,d){g?u.isString(g)?(this.url=g,a&&(this.width=a),d&&(this.height=d)):(this.width=p.pt2px(null==g.width?f.width:g.width),this.height=p.pt2px(null==g.height?f.height:g.height),a=g.imageData,9>b("ie")||!a||(d=this.url,this.url="data:"+(g.contentType||"image")+";base64,"+a,this.imageData=d)):(u.mixin(this,f),this.width=p.pt2px(this.width),this.height=
p.pt2px(this.height))},getStroke:function(){return null},getFill:function(){return null},setWidth:function(g){this.width=g;return this},setHeight:function(g){this.height=g;return this},setUrl:function(g){g!==this.url&&(delete this.imageData,delete this.contentType);this.url=g;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 g=
this.url,a=this.imageData;if(0===g.indexOf("data:")){var d=g;g=a;a=d.indexOf(";base64,")+8;a=d.substr(a)}!u.isString(g)||0!==g.indexOf("/")&&0!==g.indexOf("//")&&0!==g.indexOf("./")&&0!==g.indexOf("../")||(g=q.getAbsoluteUrl(g));d=p.px2pt(this.width);d=isNaN(d)?void 0:d;var l=p.px2pt(this.height);l=isNaN(l)?void 0:l;g=y.fixJson(u.mixin(this.inherited("toJson",arguments),{type:"esriPMS",url:g,imageData:a,contentType:this.contentType,width:d,height:l}));delete g.color;delete g.size;g.imageData||delete g.imageData;
return g}});F.defaultProps=f;b("extend-esri")&&(u.setObject("symbol.PictureMarkerSymbol",F,e),e.symbol.defaultPictureMarkerSymbol=f);return F})},"esri/symbols/CartographicLineSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/has dojox/gfx/_base ../kernel ../lang ./SimpleLineSymbol".split(" "),function(F,u,b,p,e,y,q,m){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"},g={color:[0,0,0,1],style:f.STYLE_SOLID,width:1,cap:f.CAP_BUTT,join:f.JOIN_MITER,miterLimit:10};F=F(m,{declaredClass:"esri.symbol.CartographicLineSymbol",type:"cartographiclinesymbol",_caps:{butt:"esriLCSButt",
round:"esriLCSRound",square:"esriLCSSquare"},_joins:{miter:"esriLJSMiter",round:"esriLJSRound",bevel:"esriLJSBevel"},constructor:function(a,d,l,k,n,h){a?u.isString(a)?(this.style=a,d&&(this.color=d),void 0!==l&&(this.width=l),k&&(this.cap=k),n&&(this.join=n),void 0!==h&&(this.miterLimit=h)):(this.cap=q.valueOf(this._caps,a.cap),this.join=q.valueOf(this._joins,a.join),this.width=e.pt2px(a.width),this.miterLimit=e.pt2px(a.miterLimit)):(u.mixin(this,g),this.color=new b(this.color),this.width=e.pt2px(this.width),
this.miterLimit=e.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 u.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=
e.px2pt(this.miterLimit);a=isNaN(a)?void 0:a;return q.fixJson(u.mixin(this.inherited("toJson",arguments),{type:"esriCLS",cap:this._caps[this.cap],join:this._joins[this.join],miterLimit:a}))}});u.mixin(F,f);F.defaultProps=g;p("extend-esri")&&(u.setObject("symbol.CartographicLineSymbol",F,y),y.symbol.defaultCartographicLineSymbol=g);return F})},"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(F,u,b,p,e,y,q,m,f,g){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]};F=F(m,{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(l,k,n){l?u.isString(l)?(this.style=l,void 0!==k&&(this.outline=k),void 0!==n&&(this.color=n)):this.style=q.valueOf(this._styles,l.style):(u.mixin(this,d),this.outline=new f(this.outline),this.color=new b(this.color))},setStyle:function(l){this.style=
l;return this},getStroke:function(){return this.outline&&this.outline.getStroke()},getFill:function(){var l=this.style;return l===a.STYLE_NULL?null:l===a.STYLE_SOLID?this.color:u.mixin({},e.defaultPattern,{src:g.toUrl("../images/symbol/sfs/"+l+".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 q.fixJson(u.mixin(this.inherited("toJson",
arguments),{type:"esriSFS",style:this._styles[this.style]}))}});u.mixin(F,a);F.defaultProps=d;p("extend-esri")&&(u.setObject("symbol.SimpleFillSymbol",F,y),y.symbol.defaultSimpleFillSymbol=d);return F})},"esri/symbols/FillSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ./Symbol ./SimpleLineSymbol".split(" "),function(F,u,b,p,e,y){F=F(e,{declaredClass:"esri.symbol.FillSymbol",constructor:function(q){q&&u.isObject(q)&&q.outline&&(this.outline=new y(q.outline))},setOutline:function(q){this.outline=
q;return this},toJson:function(){var q=this.inherited("toJson",arguments);this.outline&&(q.outline=this.outline.toJson());return q}});b("extend-esri")&&u.setObject("symbol.FillSymbol",F,p);return F})},"esri/symbols/PictureFillSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang ../urlUtils ./FillSymbol".split(" "),function(F,u,b,p,e,y,q,m){var f={xoffset:0,yoffset:0,width:12,height:12};F=F(m,{declaredClass:"esri.symbol.PictureFillSymbol",type:"picturefillsymbol",
xscale:1,yscale:1,xoffset:0,yoffset:0,constructor:function(g,a,d,l){g?u.isString(g)?(this.url=g,void 0!==a&&(this.outline=a),void 0!==d&&(this.width=d),void 0!==l&&(this.height=l)):(this.xoffset=p.pt2px(g.xoffset),this.yoffset=p.pt2px(g.yoffset),this.width=p.pt2px(g.width),this.height=p.pt2px(g.height),a=g.imageData,9>b("ie")||!a||(d=this.url,this.url="data:"+(g.contentType||"image")+";base64,"+a,this.imageData=d)):(u.mixin(this,f),this.width=p.pt2px(this.width),this.height=p.pt2px(this.height))},
setWidth:function(g){this.width=g;return this},setHeight:function(g){this.height=g;return this},setOffset:function(g,a){this.xoffset=g;this.yoffset=a;return this},setUrl:function(g){g!==this.url&&(delete this.imageData,delete this.contentType);this.url=g;return this},setXScale:function(g){this.xscale=g;return this},setYScale:function(g){this.yscale=g;return this},getStroke:function(){return this.outline&&this.outline.getStroke()},getFill:function(){return u.mixin({},p.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 g=this.url,a=this.imageData;if(0===g.indexOf("data:")){var d=g;g=a;a=d.indexOf(";base64,")+8;a=d.substr(a)}!u.isString(g)||0!==g.indexOf("/")&&0!==g.indexOf("//")&&0!==g.indexOf("./")&&0!==g.indexOf("../")||(g=q.getAbsoluteUrl(g));
d=p.px2pt(this.width);d=isNaN(d)?void 0:d;var l=p.px2pt(this.height);l=isNaN(l)?void 0:l;var k=p.px2pt(this.xoffset);k=isNaN(k)?void 0:k;var n=p.px2pt(this.yoffset);n=isNaN(n)?void 0:n;g=y.fixJson(u.mixin(this.inherited("toJson",arguments),{type:"esriPFS",url:g,imageData:a,contentType:this.contentType,width:d,height:l,xoffset:k,yoffset:n,xscale:this.xscale,yscale:this.yscale}));g.imageData||delete g.imageData;return g}});F.defaultProps=f;b("extend-esri")&&(u.setObject("symbol.PictureFillSymbol",F,
e),e.symbol.defaultPictureFillSymbol=f);return F})},"esri/symbols/TextSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ../lang ../Color ./Symbol ./Font".split(" "),function(F,u,b,p,e,y,q,m,f){var g={type:"textsymbol",x:0,y:0,text:"",rotated:!1,kerning:!0,color:[0,0,0,1],font:p.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"},
l={top:"text-before-edge",middle:"central",baseline:"alphabetic",bottom:"text-after-edge"},k=document.createElement("canvas");F=F(m,{declaredClass:"esri.symbol.TextSymbol",angle:0,xoffset:0,yoffset:0,constructor:function(n,h,c){u.mixin(this,g);this.font=new f(this.font);this.color=new q(this.color);n&&(u.isObject(n)?(u.mixin(this,n),this.color&&y.isDefined(this.color[0])&&(this.color=q.toDojoColor(this.color)),this.type="textsymbol",this.font=new f(this.font),this.xoffset=p.pt2px(this.xoffset),this.yoffset=
p.pt2px(this.yoffset),this.angle&&(this.angle*=-1),this.haloSize&&(this.haloSize=p.pt2px(this.haloSize)),this.haloColor&&(this.haloColor=q.toDojoColor(this.haloColor))):(this.text=n,h&&(this.font=h),c&&(this.color=c)));this.setAlign(this.align||this.getSVGAlign())},setFont:function(n){this.font=n;return this},setSize:function(n){this.font.size=n;return this},setAngle:function(n){this.angle=n;return this},setOffset:function(n,h){this.xoffset=n;this.yoffset=h;return this},setHaloColor:function(n){this.haloColor=
n;return this},setHaloSize:function(n){this.haloSize=n;return this},setAlign:function(n){this.align=n;this.setHorizontalAlignment(n&&a[n.toLowerCase()]||"center");return this},setHorizontalAlignment:function(n){this.horizontalAlignment=n;return this},getSVGAlign:function(){var n=this.horizontalAlignment;return n=n&&d[n.toLowerCase()]||"middle"},setVerticalAlignment:function(n){this.verticalAlignment=n;return this},getSVGBaseline:function(){var n=this.verticalAlignment;return n&&l[n.toLowerCase()]||
"alphabetic"},getSVGBaselineShift:function(){return"bottom"===this.verticalAlignment?"super":null},setDecoration:function(n){this.decoration=n;this.font||this.setFont(new f);this.font.setDecoration(n);return this},setRotated:function(n){this.rotated=n;return this},setKerning:function(n){this.kerning=n;return this},setText:function(n){this.text=n;return this},getStroke:function(){return null},getFill:function(){return this.color},getWidth:function(){var n=k&&k.getContext&&k.getContext("2d");if(n){var h=
this.font;n.font=(h.style?h.style:p.defaultFont.style)+" "+(h.weight?h.weight:p.defaultFont.weight)+" "+(h.size?h.size:p.defaultFont.size)+"px "+(h.family?h.family:p.defaultFont.family);return n.measureText(this.text).width}n=this.getHeight();h=0;var c;for(c=0;c<this.text.length;c++){var r=this.text.charAt(c);h=r==r.toUpperCase()?h+.7*n:h+.5*n}return h},getHeight:function(){return p.normalizedLength(this.font.size)},getShapeDescriptors:function(){var n=this.font;if(n){var h={};n.size&&(h.size=n.size);
n.style&&(h.style=n.style);n.variant&&(h.variant=n.variant);n.decoration&&(h.decoration=n.decoration);n.weight&&(h.weight=n.weight);n.family&&(h.family=n.family)}return{defaultShape:{type:"text",text:this.text,x:0,y:this.getHeight()/4,align:"middle",decoration:this.decoration||n&&n.decoration,rotated:this.rotated,kerning:this.kerning},font:h,fill:this.getFill(),stroke:this.getStroke()}},toJson:function(){var n=p.px2pt(this.xoffset),h=p.px2pt(this.yoffset),c=p.px2pt(this.haloSize);n=isNaN(n)?void 0:
n;h=isNaN(h)?void 0:h;c=isNaN(c)?void 0:c;return y.fixJson(u.mixin(this.inherited("toJson",arguments),{type:"esriTS",backgroundColor:this.backgroundColor,borderLineColor:this.borderLineColor,borderLineSize:this.borderLineSize,haloSize:c,haloColor:this.haloColor&&q.toJsonColor(this.haloColor),verticalAlignment:this.verticalAlignment,horizontalAlignment:this.horizontalAlignment,rightToLeft:this.rightToLeft,width:this.width,angle:this.angle&&-1*this.angle,xoffset:n,yoffset:h,text:this.text,rotated:this.rotated,
kerning:this.kerning,font:this.font.toJson()}))}});u.mixin(F,{ALIGN_START:"start",ALIGN_MIDDLE:"middle",ALIGN_END:"end",DECORATION_NONE:"none",DECORATION_UNDERLINE:"underline",DECORATION_OVERLINE:"overline",DECORATION_LINETHROUGH:"line-through"});F.defaultProps=g;b("extend-esri")&&(u.setObject("symbol.TextSymbol",F,e),e.symbol.defaultTextSymbol=g);return F})},"esri/symbols/Font":function(){define("dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang".split(" "),function(F,
u,b,p,e,y){F=F(null,{declaredClass:"esri.symbol.Font",constructor:function(q,m,f,g,a){q?u.isObject(q)?u.mixin(this,q):(this.size=q,parseFloat(this.size)==this.size&&(this.size+="px"),void 0!==m&&(this.style=m),void 0!==f&&(this.variant=f),void 0!==g&&(this.weight=g),void 0!==a&&(this.family=a)):u.mixin(this,p.defaultFont);parseFloat(this.size)==this.size&&(this.size+="pt");9>b("ie")&&this.size&&u.isString(this.size)&&-1<this.size.indexOf("em")&&(this.size=p.pt2px(12*parseFloat(this.size))+"px");this.size=
this._convert2PxSize(this.size)},setSize:function(q){this.size=this._convert2PxSize(q);return this},_convert2PxSize:function(q){var m;parseFloat(q)==q?m=q:u.isString(q)&&(-1<q.indexOf("pt")?m=p.pt2px(parseFloat(q)):-1<q.indexOf("px")?m=parseFloat(q):-1<q.indexOf("em")?m=p.pt2px(12*parseFloat(q)):-1<q.indexOf("%")&&(m=p.pt2px(.12*parseFloat(q))));return m},setStyle:function(q){this.style=q;return this},setVariant:function(q){this.variant=q;return this},setWeight:function(q){this.weight=q;return this},
setFamily:function(q){this.family=q;return this},setDecoration:function(q){this.decoration=q;return this},toJson:function(){return y.fixJson({size:p.px2pt(this.size),style:this.style,decoration:this.decoration,weight:this.weight,family:this.family})}});u.mixin(F,{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")&&u.setObject("symbol.Font",
F,e);return F})},"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(F,u,b,p,e,y,q,m){var f=F(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,fullText: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(g){var a={text:this.text,where:this.where,returnGeometry:this.returnGeometry,spatialRel:this.spatialRelationship,maxAllowableOffset:this.maxAllowableOffset,geometryPrecision:this.geometryPrecision,sqlFormat:this.sqlFormat},d=g&&g.geometry||this.geometry,l=this.objectIds,k=this.outFields,n=this.outSpatialReference,h=this.groupByFieldsForStatistics,c=this.orderByFields,
r=this.outStatistics;g=this.distance;d&&(a.geometry=d,a.geometryType=q.getJsonType(d),a.inSR=d.spatialReference.wkid||p.toJson(d.spatialReference.toJson()));l&&(a.objectIds=l.join(","));k&&(a.outFields=k.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);
h&&(a.groupByFieldsForStatistics=h.join(","));c&&(a.orderByFields=c.join(","));if(r){var v=[];b.forEach(r,function(z){v.push(z.toJson())});a.outStatistics=p.toJson(v)}n?a.outSR=n.wkid||p.toJson(n.toJson()):d&&(a.outSR=d.spatialReference.wkid||p.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);g&&(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.fullText=this.fullText?p.toJson(this.fullText):null;a.pixelSize=this.pixelSize?p.toJson(this.pixelSize.toJson()):null;
a.multipatchOption=this.multipatchOption;this.quantizationParameters&&(a.quantizationParameters=p.toJson(this.quantizationParameters));a._ts=this._ts;return a}});u.mixin(f,m);e("extend-esri")&&u.setObject("tasks.Query",f,y);return f})},"esri/tasks/SpatialRelationship":function(){define(["dojo/_base/lang","dojo/has","../kernel"],function(F,u,b){var p={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"};u("extend-esri")&&F.setObject("tasks._SpatialRelationship",p,b);return p})},"esri/plugins/popupManager":function(){define(["../PopupManager"],function(F){return{add:function(u,b){u.popupManager||(u.popupManager=new F(b),u.popupManager.setMap(u))},remove:function(u){var b=
u.popupManager;b&&(b.unsetMap(),u.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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n){var h;m=m(k,{declaredClass:"esri.PopupManager",enabled:!1,map:null,_mapClickHandle:null,_featureLayersCache:{},constructor:function(c){this._mapClickHandler=
g.hitch(this,this._mapClickHandler)},setMap:function(c){if(this.map)if(c!==this.map)this.unsetMap();else return;this.map=c;this._setupClickHandler()},unsetMap:function(){this.map&&(this.map=null);this._mapClickHandle&&(this._mapClickHandle.remove(),this._mapClickHandle=null)},getMapLayer:function(c){var r;if(c&&(r=c.getLayer())&&(c=r.id,this._featureLayersCache[c])){var v=c.lastIndexOf("_");-1<v&&(c=c.substring(0,v),r=this.map.getLayer(c))}return r},_enabledSetter:function(c){this.enabled=c;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(c){var r=this.map.infoWindow,v=c.graphic;r&&this.map.loaded&&(r.clearFeatures&&r.setFeatures?this._showPopup(c):v&&v.getInfoTemplate()&&this._showInfoWindow(v,c.mapPoint))},_showPopup:function(c){var r=this.map,v=r.infoWindow,z=this,C=[],x=[r.graphics].concat(q.map(r.graphicsLayerIds,
r.getLayer,r));q.forEach(x,function(w){var D=w.getFeatureReduction&&w.getFeatureReduction();w&&w.loaded&&w.infoTemplate&&!w.suspended&&(!D||!z._isReductionEnabled(w)||D.infoTemplate&&!D.disablePopup)&&C.push(w)});var E=[];q.forEach(r.layerIds,function(w){(w=r.getLayer(w))&&w.loaded&&!w.suspended&&(z._isImageServiceLayer(w)&&w.infoTemplate?C.push(w):"esri.layers.WMSLayer"===w.declaredClass&&w.getFeatureInfoURL?C.push(w):"esri.layers.ArcGISDynamicMapServiceLayer"!==w.declaredClass&&"esri.layers.ArcGISTiledMapServiceLayer"!==
w.declaredClass||!w.infoTemplates||E.push(w))});var B=r.getResolutionForPopup();this._getSubLayerFeatureLayers(E,B).then(function(w){C=C.concat(w);w=c.graphic&&c.graphic.getParentGraphic()||c.graphic;var D=null;w&&w.getInfoTemplate()&&!z._isImageServiceLayer(w.getLayer())&&(D=w);if(C.length||D){var t=z._calculateClickTolerance(C),A=c.screenPoint;w=r.toMap(new u(A.x-t,A.y+t));t=r.toMap(new u(A.x+t,A.y-t));var G=new F(w.x,w.y,t.x,t.y,r.spatialReference);if(G=G.intersects(r.extent)){var J=new e,U=!!D,
ja=!0;w=q.map(C,function(Z){J.timeExtent=Z.useMapTime?r.timeExtent:null;var fa=z._isReductionEnabled(Z);Z=fa?Z.getFeatureReductionLayer():Z;var qa=z._featureLayersCache[Z.id];if(z._isImageServiceLayer(Z)){J.geometry=c.mapPoint;ja=!1;var V={rasterAttributeTableFieldPrefix:"Raster.",returnDomainValues:!0};z._isTiledImageServiceLayer(Z)?V=Z.fetchPopupFromTiles(J):(V=Z.queryVisibleRasters(J,V),V.addCallback(function(){var ba=Z.getVisibleRasters();U=U||0<ba.length;return ba}))}else if("esri.layers.WMSLayer"===
Z.declaredClass){V=new f;var ea=Z._getPopupGraphic(r,c.screenPoint);ea?(V.resolve([ea]),U=!0):V.resolve([])}else qa||"function"===typeof Z.queryFeatures&&(0===Z.currentMode||1===Z.currentMode)?(J.geometry=G,V=Z.queryFeatures(J),V.addCallback(function(ba){var ma=[];q.forEach(ba.features,function(va){va.visible&&(ma.push(va),qa&&va.setResolution(B))});U=U||0<ma.length;return ma})):(V=new f,ea=q.filter(Z.graphics,function(ba){return ba&&ba.visible&&G.intersects(ba.geometry)}),fa&&z._isParentLayer(Z,
D)&&(fa=z._findGraphicById(ea,D,"cluster_id"))&&(D=fa),U=U||0<ea.length,V.resolve(ea));return V});D&&(t=new f,t.resolve([D]),w.unshift(t));q.some(w,function(Z){return!Z.isFulfilled()})||U?(v.setFeatures(w),v.show(c.mapPoint,{closestFirst:ja})):(v.hide(),v.clearFeatures())}}})},_getSubLayerFeatureLayers:function(c,r,v){r=r||null;var z=v||new f,C=[];v=c.length;var x=this.map.getScale(),E=!1,B=this,w=0;a:for(;w<v;w++){var D=c[w],t=D.dynamicLayerInfos||D.layerInfos;if(t){var A=null;D._params&&(D._params.layers||
D._params.dynamicLayers)&&(A=D.visibleLayers);A=p._getVisibleLayers(t,A);for(var G=p._getLayersForScale(x,t),J=t.length,U=0;U<J;U++){var ja=t[U],Z=ja.id,fa=D.infoTemplates[Z];if(!ja.subLayerIds&&fa&&fa.infoTemplate&&-1<q.indexOf(A,Z)&&-1<q.indexOf(G,Z)){if(!h){E=!0;break a}var qa=D.id+"_"+Z,V=this._featureLayersCache[qa];V&&V.loadError||(V||((V=fa.layerUrl)||(V=ja.source?this._getLayerUrl(D.url,"/dynamicLayer"):this._getLayerUrl(D.url,Z)),V=new h(V,{parentLayer:D,id:qa,drawMode:!1,mode:h.MODE_SELECTION,
outFields:this._getOutFields(fa.infoTemplate),resourceInfo:fa.resourceInfo,source:ja.source}),this._featureLayersCache[qa]=V),V.setDefinitionExpression(D.layerDefinitions&&D.layerDefinitions[Z]),V.setGDBVersion(D.gdbVersion),V.setInfoTemplate(fa.infoTemplate),V.setMaxAllowableOffset(r),V.setUseMapTime(!!D.useMapTime),D.layerDrawingOptions&&D.layerDrawingOptions[Z]&&D.layerDrawingOptions[Z].renderer&&V.setRenderer(D.layerDrawingOptions[Z].renderer),C.push(V))}}}}if(E){var ea=new f;n(["./layers/FeatureLayer"],
function(ma){h=ma;ea.resolve()});ea.then(function(){B._getSubLayerFeatureLayers(c,r,z)})}else{var ba=[];q.forEach(C,function(ma){if(!ma.loaded){var va=new f;d.once(ma,"load, error",function(){va.resolve()});ba.push(va.promise)}});ba.length?l(ba).then(function(){C=q.filter(C,function(ma){return!ma.loadError&&ma.isVisibleAtScale(x)});z.resolve(C)}):(C=q.filter(C,function(ma){return ma.isVisibleAtScale(x)}),z.resolve(C))}return z.promise},_getLayerUrl:function(c,r){var v=c.indexOf("?");return-1===v?
c+"/"+r:c.substring(0,v)+"/"+r+c.substring(v)},_getOutFields:function(c){var r=c.info&&c.info.fieldInfos;if(r&&r.length&&"esri.dijit.PopupTemplate"===c.declaredClass){var v=[];q.forEach(r,function(z){var C=z.fieldName&&z.fieldName.toLowerCase();C&&"shape"!==C&&0!==C.indexOf("relationships/")&&v.push(z.fieldName)})}else v=["*"];return v},_calculateClickTolerance:function(c){var r=a("esri-touch")?9:6,v,z;q.forEach(c,function(C){if(v=C.renderer)"esri.renderer.SimpleRenderer"===v.declaredClass?((z=v.symbol)&&
z.xoffset&&(r=Math.max(r,Math.abs(z.xoffset))),z&&z.yoffset&&(r=Math.max(r,Math.abs(z.yoffset)))):"esri.renderer.UniqueValueRenderer"!==v.declaredClass&&"esri.renderer.ClassBreaksRenderer"!==v.declaredClass||q.forEach(v.infos,function(x){(z=x.symbol)&&z.xoffset&&(r=Math.max(r,Math.abs(z.xoffset)));z&&z.yoffset&&(r=Math.max(r,Math.abs(z.yoffset)))})});return r},_showInfoWindow:function(c,r){var v=this.map.infoWindow,z=c.geometry;r=z&&"point"===z.type?z:r;z=c.getContent();v.setTitle(c.getTitle());z&&
g.isString(z.id)&&(c=y.byId(z.id))&&c.set&&/_PopupRenderer/.test(c.declaredClass)&&c.set("showTitle",!1);v.setContent(z);v.show(r)},_findGraphicById:function(c,r,v){var z,C=(r=r.attributes)&&r[v];q.some(c,function(x){var E=x.attributes;E&&E[v]===C&&(z=x);return!!z});return z},_isParentLayer:function(c,r){r=r&&r.getLayer();return c&&r===c},_isReductionEnabled:function(c){return c&&c.isFeatureReductionActive&&c.isFeatureReductionActive()},_isImageServiceLayer:function(c){return"esri.layers.ArcGISImageServiceLayer"===
c.declaredClass||"esri.layers.ArcGISImageServiceVectorLayer"===c.declaredClass||"esri.layers.RasterXLayer"===c.declaredClass},_isTiledImageServiceLayer:function(c){return"esri.layers.RasterXLayer"===c.declaredClass}});a("extend-esri")&&(b.PopupManager=m);return m})},"esri/layerUtils":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/json","dojo/has","./kernel"],function(F,u,b,p,e){var y={_serializeLayerDefinitions:function(q,m){var f=[],g=/[:;]/;if(q&&(u.forEach(q,function(d,l){d&&
(f.push([l,d]),!m&&g.test(d)&&(m=!0))}),0<f.length)){if(m){var a={};u.forEach(f,function(d){a[d[0]]=d[1]});a=b.toJson(a)}else a=[],u.forEach(f,function(d){a.push(d[0]+":"+d[1])}),a=a.join(";");return a}return null},_serializeTimeOptions:function(q,m){if(q){var f=[];u.forEach(q,function(g,a){g&&(g=g.toJson(),m&&-1!==u.indexOf(m,a)&&(g.useTime=!1),f.push('"'+a+'":'+b.toJson(g)))});if(f.length)return"{"+f.join(",")+"}"}},_getVisibleLayers:function(q,m){var f=[],g;if(!q)return f;if(m)for(f=m.concat(),
g=0;g<q.length;g++){m=q[g];var a=u.indexOf(q,m.id);m.subLayerIds&&-1<a&&(f.splice(a,1),f=f.concat(m.subLayerIds))}else f=this._getDefaultVisibleLayers(q);return f},_getDefaultVisibleLayers:function(q){var m=[],f;if(!q)return m;for(f=0;f<q.length;f++)0<=q[f].parentLayerId&&-1===u.indexOf(m,q[f].parentLayerId)&&u.some(q,function(g){return g.id===q[f].parentLayerId})||q[f].defaultVisibility&&m.push(q[f].id);return m},_getLayersForScale:function(q,m){var f=[];if(0<q&&m){var g;for(g=0;g<m.length;g++)if(!(0<=
m[g].parentLayerId&&-1===u.indexOf(f,m[g].parentLayerId)&&u.some(m,function(k){return k.id===m[g].parentLayerId}))&&0<=m[g].id){var a=!0,d=m[g].maxScale,l=m[g].minScale;if(0<d||0<l)0<d&&0<l?a=d<=q&&q<=l:0<d?a=d<=q:0<l&&(a=q<=l);a&&f.push(m[g].id)}}return f}};p("extend-esri")&&F.mixin(e,y);return y})},"dojo/promise/all":function(){define(["../_base/array","../_base/lang","../Deferred","../when"],function(F,u,b,p){var e=F.some;return function(y){var q,m;u.isArray(y)?m=y:y&&"object"===typeof y&&(q=y);
var f=[];if(q){m=[];for(var g in q)Object.hasOwnProperty.call(q,g)&&(f.push(g),m.push(q[g]));var a={}}else m&&(a=[]);if(!m||!m.length)return(new b).resolve(a);var d=new b;d.promise.always(function(){a=f=null});var l=m.length;e(m,function(k,n){q||f.push(n);p(k,function(h){d.isFulfilled()||(a[f[n]]=h,0===--l&&d.resolve(a))},d.reject);return d.isFulfilled()});return d.promise}})},"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./domReady","./sniff","./_base/window"],function(F,u,b,p,
e){var y=e.doc.documentElement;e=p("ie");var q=p("trident"),m=p("opera"),f=Math.floor,g=p("ff"),a=F.boxModel.replace(/-/,"");m={dj_quirks:p("quirks"),dj_opera:m,dj_khtml:p("khtml"),dj_webkit:p("webkit"),dj_safari:p("safari"),dj_chrome:p("chrome"),dj_edge:p("edge"),dj_gecko:p("mozilla"),dj_ios:p("ios"),dj_android:p("android")};e&&(m.dj_ie=!0,m["dj_ie"+f(e)]=!0,m.dj_iequirks=p("quirks"));q&&(m.dj_trident=!0,m["dj_trident"+f(q)]=!0);g&&(m["dj_ff"+f(g)]=!0);m["dj_"+a]=!0;var d="",l;for(l in m)m[l]&&(d+=
l+" ");y.className=u.trim(y.className+" "+d);b(function(){if(!F.isBodyLtr()){var k="dj_rtl dijitRtl "+d.replace(/ /g,"-rtl ");y.className=u.trim(y.className+" "+k+"dj_rtl dijitRtl "+d.replace(/ /g,"-rtl "))}});return p})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r,v,z,C,x,E){var B=p.connect,w=p.disconnect,D=k("chrome"),t=k("safari"),A=[q.NUMPAD_PLUS,61,187,q.NUMPAD_MINUS,173,189,q.UP_ARROW,q.NUMPAD_8,q.RIGHT_ARROW,q.NUMPAD_6,q.DOWN_ARROW,q.NUMPAD_2,q.LEFT_ARROW,q.NUMPAD_4,q.PAGE_UP,q.NUMPAD_9,q.PAGE_DOWN,q.NUMPAD_3,q.END,q.NUMPAD_1,q.HOME,q.NUMPAD_7];F=F(null,{declaredClass:"esri.MapNavigationManager",eventModel:"",constructor:function(G,J){this.map=G;u.mixin(this,J);J=G.__container;k("esri-pointer")?(this.pointerEvents=
new d(J,{map:G}),this.eventModel="pointer"):k("esri-touch")?(k("ios")||(this.mouseEvents=new g(J,{map:G})),this.touchEvents=new a(J,{map:G,mouseEvents:this.mouseEvents}),this.eventModel="touch"):(this.mouseEvents=new g(J,{map:G}),this.eventModel="mouse");this._zoomRect=new c(null,new E(l.defaults.map.zoomSymbol));this._keyDx=this._keyDy=0;this._adjustPinch=u.hitch(this,this._adjustPinch);this._adjustPinchEnd=u.hitch(this,this._adjustPinchEnd)},_panInit:function(G){var J=this.mouseEvents;y.isLeft(G)&&
this.map.isPan&&!G.shiftKey&&(this._dragOrigin=new v(0,0),u.mixin(this._dragOrigin,G.screenPoint),w(this._panStartHandle),w(this._panHandle),w(this._panEndHandle),this._panStartHandle=B(J,"onMouseDragStart",this,this._panStart),this._panHandle=B(J,"onMouseDrag",this,this._pan),this._panEndHandle=B(J,"onMouseUp",this,this._panEnd),D||t)&&(G.preventDefault(),m.curNode&&m.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){w(this._panStartHandle);w(this._panHandle);w(this._panEndHandle);this._panStartHandle=this._panHandle=this._panEndHandle=null;var J=this.map;J.__panning&&(J.__panEnd(G.screenPoint.x-this._dragOrigin.x,G.screenPoint.y-this._dragOrigin.y),J.resetMapCursor())},_zoomInit:function(G){var J=this.map,U=this.pointerEvents||this.mouseEvents;(y.isLeft(G)||G.pointerType)&&J.isRubberBandZoom&&G.shiftKey&&(J.setCursor("crosshair"),this._dragOrigin=
u.mixin({},G.screenPoint),this._zoomDir=G.ctrlKey||G.metaKey?-1:1,this.pointerEvents?(this._zoomHandle=B(U,"onSwipeMove",this,this._zoom),this._zoomEndHandle=B(U,"onSwipeEnd",this,this._zoomEnd)):(this._zoomHandle=B(U,"onMouseDrag",this,this._zoom),this._zoomEndHandle=B(U,"onMouseUp",this,this._zoomEnd)),D&&G.preventDefault())},_zoom:function(G){var J=this.map,U=this._normalizeRect(G).offset(J.__visibleRect.x,J.__visibleRect.y);G=J.graphics;var ja=this._zoomRect;ja.geometry||J.setCursor("crosshair");
ja.geometry&&G.remove(ja,!0);var Z=J.toMap(new v(U.x,U.y));U=J.toMap(new v(U.x+U.width,U.y+U.height));U=new C(Z.x,Z.y,U.x-Z.x,Z.y-U.y,J.spatialReference);U._originOnly=!0;ja.setGeometry(U);G.add(ja,!0)},_zoomEnd:function(G){var J=this._zoomRect,U=this.map,ja=U.extent,Z=U.spatialReference;w(this._zoomHandle);w(this._zoomEndHandle);this._zoomHandle=this._zoomEndHandle=null;if(U._canZoom(this._zoomDir)&&J.getDojoShape()){U.graphics.remove(J);J.geometry=null;G=this._normalizeRect(G);G.x+=U.__visibleRect.x;
G.y+=U.__visibleRect.y;if(-1===this._zoomDir){var fa=ja.getWidth();G=(fa*U.width/G.width-fa)/2;Z=new z(ja.xmin-G,ja.ymin-G,ja.xmax+G,ja.ymax+G,Z)}else ja=U.toMap({x:G.x,y:G.y+G.height}),G=U.toMap({x:G.x+G.width,y:G.y}),Z=new z(ja.x,ja.y,G.x,G.y,Z);U._extentUtil(null,null,Z)}J.getDojoShape()&&U.graphics.remove(J,!0);this._zoomDir=0;U.resetMapCursor()},_wheelZoom:function(G,J){var U=this.map;if(!J){if(U.smartNavigation&&!G.shiftKey&&!U._isPanningOrZooming()){U.disableScrollWheelZoom();this._setScrollWheelPan(!0);
this._wheelPan(G);return}J=G.timeStamp;if(!n.isDefined(J)||0>=J)J=(new Date).getTime();if(100>(this._mwts?J-this._mwts:J))return;this._mwts=J}U._canZoom(G.value)&&U._extentUtil({numLevels:G.value,mapAnchor:G.mapPoint,screenAnchor:G.screenPoint})},_wheelPan:function(G){var J=this.map;if(G.shiftKey&&!J._isPanningOrZooming())this._setScrollWheelPan(!1),J.enableScrollWheelZoom(),this._wheelZoom(G);else{var U=0,ja=0;k("ff")?G.axis===G.HORIZONTAL_AXIS?U=-G.detail:ja=-G.detail:(U=G.wheelDeltaX,ja=G.wheelDeltaY);
J.translate(U,ja)}},_setScrollWheelPan:function(G){this.map.isScrollWheelPan=G;this.mouseEvents&&this.mouseEvents.enableMouseWheel(G);w(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 J=G.keyCode,U=this.map;if(-1!==b.indexOf(A,J)){if(J===q.NUMPAD_PLUS||61===J||187===J)U._extentUtil({numLevels:1});else if(J===q.NUMPAD_MINUS||173===J||189===J)U._extentUtil({numLevels:-1});else{U.__panning||U.__panStart(0,0);switch(J){case q.UP_ARROW:case q.NUMPAD_8:this._keyDy+=10;break;
case q.RIGHT_ARROW:case q.NUMPAD_6:this._keyDx-=10;break;case q.DOWN_ARROW:case q.NUMPAD_2:this._keyDy-=10;break;case q.LEFT_ARROW:case q.NUMPAD_4:this._keyDx+=10;break;case q.PAGE_UP:case q.NUMPAD_9:this._keyDx-=10;this._keyDy+=10;break;case q.PAGE_DOWN:case q.NUMPAD_3:this._keyDx-=10;this._keyDy-=10;break;case q.END:case q.NUMPAD_1:this._keyDx+=10;this._keyDy-=10;break;case q.HOME:case q.NUMPAD_7:this._keyDx+=10;this._keyDy+=10;break;default:return}U.__pan(this._keyDx,this._keyDy)}e.stop(G)}},_keyEnd:function(G){var J=
this.map;J.__panning&&G.keyCode!==q.SHIFT&&(J.__panEnd(this._keyDx,this._keyDy),this._keyDx=this._keyDy=0)},_swipeInit:function(G){var J=this.map;J=J._zoomAnim||J._panAnim;if(G.shiftKey)return!1;J&&J._active&&(J.stop(),J._fire("onEnd",[J.node]));this._dragOrigin=new v(0,0);u.mixin(this._dragOrigin,G.screenPoint);w(this._swipeHandle);w(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 J=this.map;J.__panning?(this._panX=G.screenPoint.x,this._panY=G.screenPoint.y,J.__pan(G.screenPoint.x-this._dragOrigin.x,G.screenPoint.y-this._dragOrigin.y)):(J.setCursor("move"),J.__panStart(G.screenPoint.x,G.screenPoint.y))},_swipeEnd:function(G){w(this._swipeHandle);w(this._swipeEndHandle);this._swipeHandle=this._swipeEndHandle=null;var J=this.map;J.__panning&&(J.resetMapCursor(),J.__panEnd(G.screenPoint.x-this._dragOrigin.x,G.screenPoint.y-
this._dragOrigin.y))},_pinchInit:function(G){var J=this.map,U=J._zoomAnim||J._panAnim;U&&U._active?(U.stop(),U._fire("onEnd",[U.node])):J.__panning&&(G.screenPoint=new v(this._panX,this._panY),G.mapPoint=J.toMap(G.screenPoint),this._swipeEnd(G));w(this._pinchHandle);w(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 J=this.map;
if(G.screenPoints){this.currLength=x.getLength(G.screenPoints[0],G.screenPoints[1]);if(J.__zooming){var U=this.currLength/this._length;this._zoomStartExtent=this.__scaleExtent(J.extent,U,this._dragOrigin);J.__zoom(this._zoomStartExtent,U,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,J.__zoomStart(J.extent,this._dragOrigin);this._pinchScale=U;J._fireOnScale(this.currLength/this._length,
this._dragOrigin,!0)}},_pinchEnd:function(G){G=this.map;w(this._pinchHandle);w(this._pinchEndHandle);this._pinchHandle=this._pinchEndHandle=null;this._pinchScale=0;if(G.__zooming&&null===G._zoomAnim){var J=this.currLength/this._length,U=G.extent.getWidth();this._zoomAnimAnchor=G.toMap(this._dragOrigin);this._zoomStartExtent=this.__scaleExtent(G.extent,1/J,this._zoomAnimAnchor);if(G.__tileInfo){var ja=r.getCandidateTileInfo(G,G.__tileInfo,this._zoomStartExtent),Z=G.__getExtentForLevel(ja.lod.level,
this._zoomAnimAnchor),fa=G.getMinZoom(),qa=G.getMaxZoom(),V=Z.extent;Z=Z.lod;var ea=U/V.getWidth(),ba=ja.lod.level;1>J?ea>J&&ba--:ea<J&&ba++;ba<fa?ba=fa:ba>qa&&(ba=qa);ba!==ja.lod.level&&(Z=G.__getExtentForLevel(ba,this._zoomAnimAnchor),V=Z.extent,Z=Z.lod);this._zoomEndExtent=V;this._zoomEndLod=Z;G._zoomAnim=h.animateRange({range:{start:U/this._zoomStartExtent.getWidth(),end:ea},duration:l.defaults.map.zoomDuration,rate:l.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 J=this.__scaleExtent(this.map.extent,G,this._zoomAnimAnchor);this.map.__zoom(J,G,this._dragOrigin)},_adjustPinchEnd:function(){var G=this.map,J=G.extent.getWidth()/this._zoomEndExtent.getWidth(),U=this.__scaleExtent(G.extent,
1/J,this._zoomAnimAnchor),ja=this._dragOrigin,Z=this._zoomEndLod;this._zoomStartExtent=this._zoomEndExtent=this._zoomEndLod=this._dragOrigin=G._zoomAnim=this._zoomAnimAnchor=null;G.__zoomEnd(U,J,ja,Z,!0)},__scaleExtent:function(G,J,U){U=U||G.getCenter();J=G.expand(J);var ja=G.xmin-(J.getWidth()-G.getWidth())*(U.x-G.xmin)/G.getWidth();U=G.ymax-(J.getHeight()-G.getHeight())*(U.y-G.ymax)/G.getHeight();return new z(ja,U-J.getHeight(),ja+J.getWidth(),U,G.spatialReference)},_normalizeRect:function(G){G=
G.screenPoint;var J=this._dragOrigin.x,U=this._dragOrigin.y;G=new C((G.x<J?G.x:J)-this.map.__visibleRect.x,(G.y<U?G.y:U)-this.map.__visibleRect.y,Math.abs(G.x-J),Math.abs(G.y-U));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(){w(this._panInitHandle);this._panInitHandle=null;w(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(){w(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(){w(this._pinchInitHandle);this._pinchInitHandle=null},enableScrollWheelZoom:function(){this.disableScrollWheelZoom();this._wheelHandle=B(this.mouseEvents||this.pointerEvents,"onMouseWheel",this,this._wheelZoom)},disableScrollWheelZoom:function(){w(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(){w(this._dblClickHandle);w(this._zoomOutHandle);this._dblTapHandle&&w(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(){w(this._sDblClickHandle);this._sDblClickHandle=null},enableClickRecenter:function(){this.disableClickRecenter();this._recenterHandle=B(this.pointerEvents||this.mouseEvents,"onClick",this,this._recenter)},disableClickRecenter:function(){w(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(){w(this._keyHandle);w(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,J=[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<J.length;G++)w(J[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}});k("extend-esri")&&(f.MapNavigationManager=F);return F})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c){var r,v,z=new (u([d,q],{curNode:null,activeStack:[],constructor:function(){var x=m.hitch(this,function(E){b.isDescendant(this.curNode,E)&&this.set("curNode",null);b.isDescendant(this.prevNode,E)&&this.set("prevNode",null)});F.before(y,"empty",x);F.before(y,"destroy",x)},registerIframe:function(x){return this.registerWin(x.contentWindow,x)},registerWin:function(x,E){var B=this,w=x.document&&x.document.body;if(w){var D=a("pointer-events")?"pointerdown":a("MSPointer")?
"MSPointerDown":a("touch-events")?"mousedown, touchstart":"mousedown",t=f(x.document,D,function(J){J&&J.target&&null==J.target.parentNode||B._onTouchNode(E||J.target,"mouse")}),A=f(w,"focusin",function(J){if(J.target.tagName){var U=J.target.tagName.toLowerCase();"#document"!=U&&"body"!=U&&(n.isFocusable(J.target)?B._onFocusNode(E||J.target):B._onTouchNode(E||J.target))}}),G=f(w,"focusout",function(J){B._onBlurNode(E||J.target)});return{remove:function(){t.remove();A.remove();G.remove();w=t=A=G=null}}}},
_onBlurNode:function(x){x=(new Date).getTime();x<r+100||(this._clearFocusTimer&&clearTimeout(this._clearFocusTimer),this._clearFocusTimer=setTimeout(m.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null)}),0),this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),x<v+100||(this._clearActiveWidgetsTimer=setTimeout(m.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([])}),0)))},_onTouchNode:function(x,E){v=(new Date).getTime();
this._clearActiveWidgetsTimer&&(clearTimeout(this._clearActiveWidgetsTimer),delete this._clearActiveWidgetsTimer);e.contains(x,"dijitPopup")&&(x=x.firstChild);var B=[];try{for(;x;){var w=p.get(x,"dijitPopupParent");if(w)x=h.byId(w).domNode;else if(x.tagName&&"body"==x.tagName.toLowerCase()){if(x===l.body())break;x=k.get(x.ownerDocument).frameElement}else{var D=x.getAttribute&&x.getAttribute("widgetId"),t=D&&h.byId(D);!t||"mouse"==E&&t.get("disabled")||B.unshift(D);x=x.parentNode}}}catch(A){}this._setStack(B,
E)},_onFocusNode:function(x){x&&9!=x.nodeType&&(r=(new Date).getTime(),this._clearFocusTimer&&(clearTimeout(this._clearFocusTimer),delete this._clearFocusTimer),this._onTouchNode(x),x!=this.curNode&&(this.set("prevNode",this.curNode),this.set("curNode",x)))},_setStack:function(x,E){var B=this.activeStack,w=B.length-1,D=x.length-1;if(x[D]!=B[w]){this.set("activeStack",x);var t;for(t=w;0<=t&&B[t]!=x[t];t--)if(w=h.byId(B[t]))w._hasBeenBlurred=!0,w.set("focused",!1),w._focusManager==this&&w._onBlur(E),
this.emit("widget-blur",w,E);for(t++;t<=D;t++)if(w=h.byId(x[t]))w.set("focused",!0),w._focusManager==this&&w._onFocus(E),this.emit("widget-focus",w,E)}},focus:function(x){if(x)try{x.focus()}catch(E){}}}));g(function(){var x=z.registerWin(k.get(document));a("ie")&&f(window,"unload",function(){x&&(x.remove(),x=null)})});c.focus=function(x){z.focus(x)};for(var C in z)/^_/.test(C)||(c.focus[C]="function"==typeof z[C]?m.hitch(z,C):z[C]);z.watch(function(x,E,B){c.focus[x]=B});return z})},"dijit/a11y":function(){define("dojo/_base/array dojo/dom dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/sniff ./main".split(" "),
function(F,u,b,p,e,y,q){var m={_isElementShown:function(f){var g=p.get(f);return"hidden"!=g.visibility&&"collapsed"!=g.visibility&&"none"!=g.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 g=f.contentDocument;if("designMode"in g&&"on"==g.designMode)return!0;var a=g.body}catch(d){try{a=f.contentWindow.document.body}catch(l){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"):m.hasDefaultTabStop(f)?0:void 0},isTabNavigable:function(f){return 0<=m.effectiveTabIndex(f)},isFocusable:function(f){return-1<=m.effectiveTabIndex(f)},_getTabNavigable:function(f){function g(x){return x&&"input"==x.tagName.toLowerCase()&&x.type&&"radio"==x.type.toLowerCase()&&
x.name&&x.name.toLowerCase()}function a(x){return r[g(x)]||x}var d,l,k,n,h,c,r={},v=m._isElementShown,z=m.effectiveTabIndex,C=function(x){for(x=x.firstChild;x;x=x.nextSibling)if(!(1!=x.nodeType||9>=y("ie")&&"HTML"!==x.scopeName)&&v(x)){var E=z(x);if(0<=E){if(0==E)d||(d=x),l=x;else if(0<E){if(!k||E<n)n=E,k=x;if(!h||E>=c)c=E,h=x}E=g(x);b.get(x,"checked")&&E&&(r[E]=x)}"SELECT"!=x.nodeName.toUpperCase()&&C(x)}};v(f)&&C(f);return{first:a(d),last:a(l),lowest:a(k),highest:a(h)}},getFirstInTabbingOrder:function(f,
g){f=m._getTabNavigable(u.byId(f,g));return f.lowest?f.lowest:f.first},getLastInTabbingOrder:function(f,g){f=m._getTabNavigable(u.byId(f,g));return f.last?f.last:f.highest}};e.mixin(q,m);return m})},"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(F,u,b,p,e,y,q,m,f,g){var a=e.connect,d=e.disconnect;F=F([m],{declaredClass:"esri.MouseEvents",
doubleClickDuration:300,minWheelValue:1,maxWheelValue:1,mozWheelDivisor:-1!==p("mac")?1:3,wheelDivisor:2>p("chrome")?360:120,preventPageScroll:!0,map:null,constructor:function(l,k){this.node=l;b.mixin(this,k);k=function(n){y.stop(n);return!1};p("mozilla")&&u.style(l,"MozUserSelect","none");this._handles=[a(l,"onselectstart",k),a(l,"ondragstart",k),a(l,"onmouseenter",this,this._onMouseEnterHandler),a(l,"onmouseleave",this,this._onMouseLeaveHandler),a(l,"onmousedown",this,this._onMouseDownHandler),
a(l,"onclick",this,this._onClickHandler),a(l,"ondblclick",this,this._onDblClickHandler)];this._onMouseMoveHandler_connect=a(l,"onmousemove",this,this._onMouseMoveHandler);this._onMouseUpHandler_connect=a(l,"onmouseup",this,this._onMouseUpHandler);this._fireClickEvent=b.hitch(this,this._fireClickEvent);this._initialDuration=this.doubleClickDuration;this.preventPageScroll=(l=this.map)?l.isScrollWheelZoom||l.isScrollWheelPan:this.preventPageScroll;this.enableMouseWheel(!1)},_fire:function(l,k){if(!this._preventClick||
"onClick"!==l&&"onDblClick"!==l){if(this[l])this[l](k);if(this.map&&this.map[l])this.map[l](k)}},_processEvent:function(l){l=y.fix(l,l.target);var k=this.map,n=k&&k.position;n&&("DOMMouseScroll"===l.type&&3>p("ff")?l.screenPoint=new g(window.scrollX+l.screenX-n.x,window.scrollY+l.screenY-n.y):l.screenPoint=new g(l.pageX-n.x,l.pageY-n.y),l.mapPoint=k.extent?k.toMap(l.screenPoint):new f);l.numPoints=0;return l},_onMouseEnterHandler:function(l){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(l))},_onMouseLeaveHandler:function(l){d(this._onKeyDown_connect);d(this._onKeyUp_connect);this._onKeyDown_connect=this._onKeyUp_connect=null;this._fire("onMouseOut",this._processEvent(l))},_onMouseMoveHandler:function(l){this._dragEnd?this._dragEnd=!1:this._fire("onMouseMove",this._processEvent(l))},_onMouseDownHandler:function(l){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=l.pageX;this._startY=l.pageY;this._fire("onMouseDown",this._processEvent(l))},_onMouseUpHandler:function(l){var k=this.node;k.releaseCapture&&k.releaseCapture();d(this._onMouseDragHandler_connect);this._onMouseDragHandler_connect=null;d(this._onMouseMoveHandler_connect);this._onMouseMoveHandler_connect=
a(k,"onmousemove",this,this._onMouseMoveHandler);this._fire("onMouseUp",this._processEvent(l))},_onMouseDragHandler:function(l){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(l))},
_onMouseDraggingHandler:function(l){y.stop(l);this._fire("onMouseDrag",this._processEvent(l))},_onDragMouseUpHandler:function(l){var k=this.node;k.releaseCapture&&k.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(k,"onmousemove",this,this._onMouseMoveHandler);this._onMouseUpHandler_connect=a(k,"onmouseup",this,this._onMouseUpHandler);
l=this._processEvent(l);this._fire("onMouseDragEnd",l);this._fire("onMouseUp",l)},_onDocMouseOut:function(l){var k=9>p("ie")?l.toElement:l.relatedTarget,n=k&&k.nodeName.toLowerCase();(!k||(p("chrome")||p("safari"))&&"html"===n)&&this._onDragMouseUpHandler(l)},_onClickHandler:function(l){l=this._processEvent(l);if(l.pageX===this._startX&&l.pageY===this._startY){clearTimeout(this._clickTimer);var k={},n="movementX"in l,h;for(h in l)"mozInputSource"===h||"mozPressure"===h||n&&("webkitMovementX"===h||
"webkitMovementY"===h)||(k[h]=l[h]);this._clickEvent=k;this._clickTimer=setTimeout(this._fireClickEvent,this.doubleClickDuration)}},_fireClickEvent:function(){clearTimeout(this._clickTimer);9>p("ie")&&(this._clickEvent.graphic=q._ieGraphic,delete q._ieGraphic);this._fire("onClick",this._clickEvent)},_onDblClickHandler:function(l){clearTimeout(this._clickTimer);this._fire("onDblClick",this._processEvent(l))},_onMouseWheelHandler:function(l){var k=this.map;(k?k.isScrollWheelZoom||k.isScrollWheelPan:
this.preventPageScroll)&&y.stop(l);k=p("ff")||p("mozilla")?-l.detail/this.mozWheelDivisor:l.wheelDelta/this.wheelDivisor;var n=Math.abs(k);n=n<=this.minWheelValue?this.minWheelValue:this.maxWheelValue;l.value=0>k?-n:n;this._fire("onMouseWheel",this._processEvent(l))},_onKeyDownHandler:function(l){this._fire("onKeyDown",l)},_onKeyUpHandler:function(l){this._fire("onKeyUp",l)},enableMouseWheel:function(l){d(this._scrollHandle);this._scrollHandle=a(this.node,p("ff")||p("mozilla")?l?"MozMousePixelScroll":
"DOMMouseScroll":"onmousewheel",this,this._onMouseWheelHandler)},setImmediateClick:function(l){this.doubleClickDuration=l?0:this._initialDuration},preventClickEvents:function(l){this._preventClick=l},destroy:function(){var l=this._handles.concat([this._onMouseMoveHandler_connect,this._onMouseUpHandler_connect,this._onMouseDragHandler_connect,this._scrollHandle,this._onKeyDown_connect,this._onKeyUp_connect,this._docLeaveConnect]),k;for(k=0;k<l.length;k++)d(l[k]);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}});p("extend-esri")&&(q.MouseEvents=F);return F})},"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(F,u,b,p,e,y,q,m,f){F=F([q],
{declaredClass:"esri.TouchEvents",tapRadius:8,doubleTapRadius:10,tapStartTolerance:50,doubleTapDuration:300,map:null,constructor:function(g,a){this.node=g;b.mixin(this,a);u.setSelectable(g,!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);g.addEventListener("touchstart",this._touchStart,!1);g.addEventListener("touchmove",
this._touchMove,!1);g.addEventListener("touchend",this._touchEnd,!1);g.addEventListener("touchcancel",this._touchCancel,!1);this.map&&p("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),g.addEventListener("mouseover",this._mouseOver,!1),g.addEventListener("mouseout",this._mouseOut,!1),g.addEventListener("mousedown",
this._mouseDown,!1),g.addEventListener("mouseup",this._mouseUp,!1),g.addEventListener("click",this._mouseClick,!1));this._numTouches=0;this._nodeTouches=[];this._touches={};this._touchIds=[];this._taps=[];this._immediate=!1},_touchStart:function(g){var a=this._touches,d,l=g.changedTouches.length,k,n,h=(new Date).getTime();this._touchStartTS=h;if(!(p("android")&&p("safari")&&1===g.targetTouches.length&&g.touches.length===g.targetTouches.length&&g.targetTouches.length===g.changedTouches.length&&0===
g.changedTouches[0].identifier&&a[g.changedTouches[0].identifier])){this._addTouch(g);for(d=0;d<l;d++){var c=g.changedTouches[d];var r=a[c.identifier]={};r.startX=c.pageX;r.startY=c.pageY;r.startTS=h;-1===this._touchIds.indexOf(c.identifier)&&this._touchIds.push(c.identifier)}this._swipeActive&&(k=this._nodeTouches[0]);this._pinchActive&&(n=this._nodeTouches[1]);1===this._numTouches?this._swipeActive?(this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(g,k))):this._pinchActive&&(this._pinchActive=
!1,this._fire("onPinchEnd",this._processTouchEvent(g,[k,n]))):2===this._numTouches?this._swipeActive&&(k&&(r=a[this._touchIds[0]],r.startX=k.pageX,r.startY=k.pageY,r.moved=!1),this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(g,k))):this._swipeActive?(this._swipeActive=!1,this._fire("onSwipeEnd",this._processTouchEvent(g,k))):this._pinchActive&&(this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(g,[k,n])))}},_touchMove:function(g){g.preventDefault();this._updateTouch(g);
var a=this._touches,d,l=g.changedTouches.length,k;if(!(p("android")&&p("safari")&&1===g.targetTouches.length&&g.touches.length===g.targetTouches.length&&g.targetTouches.length===g.changedTouches.length&&0===g.changedTouches[0].identifier&&a[g.changedTouches[0].identifier]&&1<this._touchIds.length)){for(d=0;d<l;d++){var n=g.changedTouches[d];if(k=a[n.identifier]){var h=Math.abs(n.pageX-k.startX);n=Math.abs(n.pageY-k.startY);!k.moved&&(h>=this.tapRadius||n>=this.tapRadius)&&(k.moved=k.absMoved=!0);
var c=c?c:k.moved}}1===this._numTouches?(a=g.changedTouches[0],this._swipeActive?this._fire("onSwipeMove",this._processTouchEvent(g,a)):c&&(this._swipeActive=!0,this._fire("onSwipeStart",this._processTouchEvent(g,a)))):2===this._numTouches&&(d=this._nodeTouches[0],l=this._nodeTouches[1],this._pinchActive?this._fire("onPinchMove",this._processTouchEvent(g,[d,l])):c&&(c=a[d.identifier],k=a[l.identifier],a=Math.abs(c.startX-k.startX),c=Math.abs(c.startY-k.startY),k=Math.abs(d.pageX-l.pageX),h=Math.abs(d.pageY-
l.pageY),Math.abs(Math.sqrt(k*k+h*h)-Math.sqrt(a*a+c*c))>=2*this.tapRadius&&(this._pinchActive=!0,this._fire("onPinchStart",this._processTouchEvent(g,[d,l])))))}},_touchEnd:function(g){this._removeTouch(g);var a=this._touches,d=g.changedTouches,l,k=d.length,n,h,c=(new Date).getTime(),r=this._touchIds;for(l=0;l<k;l++)if(h=a[d[l].identifier])h.absMoved&&(n=!0),h.pageX=d[l].pageX,h.pageY=d[l].pageY,h.endTS=c;if(0===this._numTouches)if(this._touches={},this._touchIds=[],this._swipeActive)this._swipeActive=
!1,this._fire("onSwipeEnd",this._processTouchEvent(g,d[0]));else if(this._pinchActive)this._pinchActive=!1,this._fire("onPinchEnd",this._processTouchEvent(g,d));else{if(!n){k=Infinity;n=-Infinity;c=Infinity;var v=-Infinity,z=this.tapStartTolerance,C=[],x=!0;for(l=0;l<r.length;l++)h=a[r[l]],C.push(h),h.startTS<k&&(k=h.startTS),h.startTS>n&&(n=h.startTS),h.endTS<c&&(c=h.endTS),h.endTS>v&&(v=h.endTS),delete a[r[l]];1===C.length&&d[0]&&(a=Math.abs(d[0].pageY-C[0].startY),Math.abs(d[0].pageX-C[0].startX)>=
this.tapRadius||a>=this.tapRadius)&&(x=!1);x&&Math.abs(n-k)<=z&&Math.abs(v-c)<=z&&this._basicTap(g,C)}}else 1===this._numTouches&&this._pinchActive&&(l=this._nodeTouches[0],h=a[l.identifier],h.startX=l.pageX,h.startY=l.pageY,this._pinchActive=h.moved=!1,this._fire("onPinchEnd",this._processTouchEvent(g,[d[0],l])))},_touchCancel:function(g){this._numTouches&&this._touchEnd(g)},_basicTap:function(g,a){var d=(new Date).getTime(),l=this;g=this._processTouchEvent(g,a);this._taps.push({touchInfos:a,ts:d,
event:g});2<this._taps.length&&this._taps.shift();this._fire("onBasicTap",g);clearTimeout(this._tapTimer);this._immediate?this._analyzeTap(!0):this._tapTimer=setTimeout(function(){var k=l;l=null;clearTimeout(k._tapTimer);k._analyzeTap()},2===this._taps.length?this.doubleTapDuration/2:this.doubleTapDuration)},_analyzeTap:function(g){var a=this._taps,d=a[0],l=a[1],k=d.touchInfos,n=l&&l.touchInfos;a.length&&(g||(this._taps=[]),d&&l?k.length===n.length?l.ts-d.ts<=this.doubleTapDuration?(1===k.length?
(g=Math.abs(k[0].startX-n[0].startX),k=Math.abs(k[0].startY-n[0].startY),k=g<=this.doubleTapRadius&&k<=this.doubleTapRadius):k=!0,k?this._processedDoubleTap(a):this._processedTap(l)):this._processedTap(l):this._processedTap(l):this._processedTap(d||l))},_processedTap:function(g){var a=g.event;this._fire("onProcessedTap",a);1===g.touchInfos.length?this._fire("onTap",this._fixEvent(a)):2===g.touchInfos.length&&this._fire("onTwoFingerTap",a)},_processedDoubleTap:function(g){var a=1===g[1].touchInfos.length;
if(a){var d=[this._fixEvent(g[0].event),this._fixEvent(g[1].event)];d[1].relatedEvents=d}g=[g[0].event,g[1].event];g[1].relatedEvents=g;this._fire("onProcessedDoubleTap",g[1]);a&&(this._fire("onDoubleTap",d[1]),this._fire("onDblClick",d[1]))},_addTouch:function(g){var a=g.changedTouches,d=this._nodeTouches,l;this._numTouches+=a.length;for(g=0;g<a.length;g++){var k=d.length;var n=!1;for(l=0;l<k&&!(n=d[l].identifier===a[g].identifier);l++);n?this._numTouches--:d.push(a[g])}for(g=d.length-1;0<=g;g--)e.isDescendant(d[g].target,
document.body)||(d.splice(g,1),this._numTouches--);0>this._numTouches&&(this._numTouches=0)},_removeTouch:function(g){var a=[],d=[],l=g.changedTouches,k=this._nodeTouches;this._numTouches-=l.length;0>this._numTouches&&(this._numTouches=0);for(g=0;g<l.length;g++)a.push(l[g].identifier);for(g=k.length-1;0<=g;g--)-1!==a.indexOf(k[g].identifier)&&d.push(k.splice(g,1)[0]);return d},_updateTouch:function(g){var a=[],d=g.changedTouches,l=this._nodeTouches;for(g=0;g<d.length;g++)a.push(d[g].identifier);for(g=
0;g<l.length;g++){var k=a.indexOf(l[g].identifier);-1!==k&&l.splice(g,1,d[k])}},_mouseOver:function(g){this._fire("onMouseOver",this._processMouseEvent(g))},_mouseOut:function(g){this._fire("onMouseOut",this._processMouseEvent(g))},_mouseDown:function(g){this._fire("onMouseDown",this._processMouseEvent(g))},_mouseUp:function(g){this._fire("onMouseUp",this._processMouseEvent(g))},_mouseClick:function(g){clearTimeout(this._clickTimer);300<(new Date).getTime()-this._touchStartTS?this._fire("onClick",
this._processMouseEvent(g)):(this._clickEvent=g,this._clickTimer=setTimeout(this._fireClickEvent,this.doubleTapDuration))},_fireClickEvent:function(){clearTimeout(this._clickTimer);this._fire("onClick",this._processMouseEvent(this._clickEvent))},_fire:function(g,a){"onDblClick"===g&&clearTimeout(this._clickTimer);if("onDblClick"===g&&this.mouseEvents){this.mouseEvents.preventClickEvents(!0);var d=this;setTimeout(function(){d.mouseEvents.preventClickEvents(!1)},350)}if(this[g])this[g](a);if(this.map&&
this.map[g])this.map[g](a)},_fixEvent:function(g){var a={},d;for(d in g)a[d]=g[d];this.map&&(a.screenPoint=a.screenPoints[0],a.mapPoint=a.mapPoints[0]);return a},_processTouchEvent:function(g,a){var d=this.map,l=d&&d.position,k=0;if(l&&a)if(b.isArray(a)){var n;g.screenPoints=[];g.mapPoints=[];for(n=0;n<a.length;n++)if(a[n]){var h=new f(a[n].pageX-l.x,a[n].pageY-l.y);g.screenPoints.push(h);g.mapPoints.push(d.extent?d.toMap(h):new m)}else k++}else g.screenPoint=new f(a.pageX-l.x,a.pageY-l.y),g.mapPoint=
d.extent?d.toMap(g.screenPoint):new m;g.numPoints=a?b.isArray(a)?a.length-k:1:0;return g},_processMouseEvent:function(g){var a=this.map,d=a&&a.position;d&&(g.screenPoint=new f(g.pageX-d.x,g.pageY-d.y),g.mapPoint=a.extent?a.toMap(g.screenPoint):new m);return g},setImmediateTap:function(g){this._immediate=g},destroy:function(){var g=this.node;g.removeEventListener("touchstart",this._touchStart,!1);g.removeEventListener("touchmove",this._touchMove,!1);g.removeEventListener("touchend",this._touchEnd,
!1);g.removeEventListener("touchcancel",this._touchCancel,!1);this.map&&(g.removeEventListener("mouseover",this._mouseOver,!1),g.removeEventListener("mouseout",this._mouseOut,!1),g.removeEventListener("mousedown",this._mouseDown,!1),g.removeEventListener("mouseup",this._mouseUp,!1),g.removeEventListener("click",this._mouseClick,!1));u.setSelectable(g,!0);clearTimeout(this._tapTimer);clearTimeout(this._clickTimer);this.node=this.map=this._numTouches=this._nodeTouches=this._touches=this._touchIds=this._taps=
null}});p("extend-esri")&&(y.TouchEvents=F);return F})},"esri/PointerEvents":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ./kernel ./Evented ./geometry/Point ./geometry/ScreenPoint".split(" "),function(F,u,b,p,e,y,q,m){F=F([y],{declaredClass:"esri.PointerEvents",tapRadius:8,clickRadius:2,doubleTapRadius:10,tapStartTolerance:50,doubleTapDuration:300,minWheelValue:1,maxWheelValue:1,mozWheelDivisor:-1!==p("mac")?1:3,wheelDivisor:120,preventPageScroll:!0,_dragging:!1,
constructor:function(f,g){this.node=f;u.mixin(this,g);void 0!==f.style.msTouchAction?f.style.msTouchAction="none":void 0!==f.style.touchAction&&(f.style.touchAction="none");g=navigator.msPointerEnabled;var a=function(d){d.preventDefault()};f.addEventListener("selectstart",a,!1);f.addEventListener("dragstart",a,!1);this._pointerDown=u.hitch(this,this._pointerDown);this._pointerMove=u.hitch(this,this._pointerMove);this._pointerUp=u.hitch(this,this._pointerUp);this._pointerCancel=u.hitch(this,this._pointerCancel);
f.addEventListener(g?"MSPointerDown":"pointerdown",this._pointerDown,!1);f.addEventListener(g?"MSPointerMove":"pointermove",this._pointerMove,!1);f.addEventListener(g?"MSPointerUp":"pointerup",this._pointerUp,!1);f.addEventListener(g?"MSPointerCancel":"pointercancel",this._pointerCancel,!1);this.map&&(this._mouseOver=u.hitch(this,this._mouseOver),this._mouseOut=u.hitch(this,this._mouseOut),this._mouseLeave=u.hitch(this,this._mouseLeave),this._mouseDown=u.hitch(this,this._mouseDown),this._mouseUp=
u.hitch(this,this._mouseUp),this._mouseClick=u.hitch(this,this._mouseClick),this._mouseWheel=u.hitch(this,this._mouseWheel),this._mouseMove=u.hitch(this,this._mouseMove),this._mouseEnter=u.hitch(this,this._mouseEnter),this._onKeyDown=u.hitch(this,this._onKeyDown),this._onKeyUp=u.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 g=this._touches,a=f.target,d=f.pointerId,l=this._touchIds,k=
(new Date).getTime();var n=g[d]={};n.pointerId=d;n.startX=n.pageX=f.pageX;n.startY=n.pageY=f.pageY;n.startTS=k;l.push(d);this._numTouches++;a.setPointerCapture?a.setPointerCapture(d):a.msSetPointerCapture&&a.msSetPointerCapture(d);a=g[l[0]];g=g[l[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,g]))))}},_pointerMove:function(f){var g=this._touches,a=this._touchIds,d;if((d=g[f.pointerId])&&(d.pageX!==f.pageX||d.pageY!==f.pageY)){d.pageX=f.pageX;d.pageY=f.pageY;var l=Math.abs(d.pageX-d.startX);var k=Math.abs(d.pageY-d.startY);!d.moved&&(l>=this.tapRadius||k>=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=g[a[0]],g=g[a[1]],this._pinchActive)this._fire("onPinchMove",this._processTouchEvent(f,[d,g]));else if(d.moved||g.moved){a=Math.abs(d.startX-g.startX);l=Math.abs(d.startY-g.startY);k=Math.abs(d.pageX-g.pageX);var n=Math.abs(d.pageY-g.pageY);Math.abs(Math.sqrt(k*k+n*n)-Math.sqrt(a*a+l*l))>=2*this.tapRadius&&(this._pinchActive=!0,this._fire("onPinchStart",this._processTouchEvent(f,
[d,g])))}}},_pointerUp:function(f){var g=this._touches,a,d=this.node,l=f.target,k=f.pointerId,n=this._touchIds,h=n.slice(0),c=b.map(h,function(C){return g[C]}),r=(new Date).getTime();if(a=g[k])if(a.pageX=f.pageX,a.pageY=f.pageY,a.endTS=r,this._numTouches--,l.releasePointerCapture?l.releasePointerCapture(k):l.msReleasePointerCapture&&l.msReleasePointerCapture(k),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){l=Infinity;k=-Infinity;n=Infinity;r=-Infinity;var v=this.tapStartTolerance,z;for(z=0;z<h.length;z++)a=c[z],a.startTS<l&&(l=a.startTS),a.startTS>k&&(k=a.startTS),a.endTS<n&&(n=a.endTS),a.endTS>r&&(r=a.endTS);Math.abs(k-l)<=v&&Math.abs(r-n)<=v&&this._basicTap(f,c)}}else 1===this._numTouches&&this._pinchActive&&(n.splice(b.indexOf(n,f.pointerId),1),delete g[f.pointerId],a=g[n[0]],
a.startX=a.pageX,a.startY=a.pageY,a.moved=!1,document.msElementsFromPoint&&(h=document.msElementsFromPoint(a.pageX,a.pageY),b.some(h,function(C){return C===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,g){var a=(new Date).getTime(),d=this,l=this._immediate;f=this._processTouchEvent(f,g);this._taps.push({touchInfos:g,
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 k=d;d=null;clearTimeout(k._tapTimer);k._analyzeTap(l)},l?0:f)},_analyzeTap:function(f){var g=this._taps,a=g[0],d=g[1],l=a.touchInfos,k=d&&d.touchInfos;g.length&&(f||(this._taps=[]),a&&d?l.length===k.length?d.ts-a.ts<=this.doubleTapDuration?(1===l.length?(f=Math.abs(l[0].startX-
k[0].startX),l=Math.abs(l[0].startY-k[0].startY),l=f<=this.doubleTapRadius&&l<=this.doubleTapRadius):l=!0,l?this._processedDoubleTap(g):this._processedTap(d)):this._processedTap(d):this._processedTap(d):this._processedTap(a||d))},_processedTap:function(f){var g=f.event;this._fire("onProcessedTap",g);1===f.touchInfos.length?this._fire("onTap",this._fixEvent(g)):2===f.touchInfos.length&&this._fire("onTwoFingerTap",g)},_processedDoubleTap:function(f){var g=1===f[1].touchInfos.length;if(g){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]);g&&(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 g=this.map;(g?g.isScrollWheelZoom||g.isScrollWheelPan:this.preventPageScroll)&&f.preventDefault();g=f.wheelDelta?f.wheelDelta/this.wheelDivisor:-f.detail/this.mozWheelDivisor;var a=Math.abs(g);a=a<=this.minWheelValue?this.minWheelValue:this.maxWheelValue;f.value=0>g?-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,g){if(this[f])this[f](g);if(this.map&&this.map[f])this.map[f](g)},_fixEvent:function(f){var g=
{},a;for(a in f)g[a]=f[a];g.preventDefault=function(){f.preventDefault()};g.stopPropagation=function(){f.stopPropagation()};this.map&&(g.screenPoint=g.screenPoints[0],g.mapPoint=g.mapPoints[0]);return g},_processTouchEvent:function(f,g){var a=this.map,d=a&&a.position,l=0;if(d&&g)if(u.isArray(g)){var k;f.screenPoints=[];f.mapPoints=[];for(k=0;k<g.length;k++)if(g[k]){var n=new m(g[k].pageX-d.x,g[k].pageY-d.y);f.screenPoints.push(n);f.mapPoints.push(a.extent?a.toMap(n):new q)}else l++}else f.screenPoint=
new m(g.pageX-d.x,g.pageY-d.y),f.mapPoint=a.extent?a.toMap(f.screenPoint):new q;f.numPoints=g?u.isArray(g)?g.length-l:1:0;return f},_processMouseEvent:function(f){var g=this.map,a=g&&g.position;a&&(f.screenPoint=new m(f.pageX-a.x,f.pageY-a.y),f.mapPoint=g.extent?g.toMap(f.screenPoint):new q);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}});p("extend-esri")&&(e.PointerEvents=F);return F})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c){return{units:F,SpatialReference:u,Geometry:b,Point:p,ScreenPoint:e,Multipoint:y,Polyline:q,Polygon:m,Extent:f,Rect:g,geodesicUtils:a,jsonUtils:d,mathUtils:l,normalizeUtils:k,scaleUtils:n,screenUtils:h,webMercatorUtils:c}})},"esri/units":function(){define(["dojo/has","./kernel"],function(F,u){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"};F("extend-esri")&&(u.Units=b);return b})},"esri/geometry/geodesicUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/has ../kernel ../SpatialReference ./Point ./Polyline ./Polygon".split(" "),function(F,u,b,p,e,y,q,m){function f(r){return!!(r&&r.wkid&&c[r.wkid])}function g(r){return f(r)?c[r.wkid]:c[4326]}function a(r){var v=r.spatialReference,z=g(v),C=z.a;z=z.eSq;var x=Math.sqrt(z),E=Math.sin(r.y*h);return new y(C*r.x*h,0<z?C*(1-z)*(E/(1-z*E*E)-1/(2*x)*Math.log((1-
x*E)/(1+x*E)))*.5:C*E,v)}function d(r,v,z,C,x){var E=g(x),B=E.a,w=E.b;E=E.f;var D=Math.sin(z);z=Math.cos(z);var t=(1-E)*Math.tan(r);r=1/Math.sqrt(1+t*t);var A=t*r,G=Math.atan2(t,z);t=r*D;var J=t*t,U=1-J;B=U*(B*B-w*w)/(w*w);var ja=1+B/16384*(4096+B*(-768+B*(320-175*B))),Z=B/1024*(256+B*(-128+B*(74-47*B)));B=C/(w*ja);for(var fa=2*Math.PI,qa,V,ea,ba;1E-12<Math.abs(B-fa);)ea=Math.cos(2*G+B),qa=Math.sin(B),V=Math.cos(B),ba=Z*qa*(ea+Z/4*(V*(-1+2*ea*ea)-Z/6*ea*(-3+4*qa*qa)*(-3+4*ea*ea))),fa=B,B=C/(w*ja)+
ba;C=A*qa-r*V*z;w=E/16*U*(4+E*(4-3*U));return new y((v+(Math.atan2(qa*D,r*V-A*qa*z)-(1-w)*E*t*(B+w*qa*(ea+w*V*(-1+2*ea*ea)))))/h,Math.atan2(A*V+r*qa*z,(1-E)*Math.sqrt(J+C*C))/h,x)}function l(r,v,z,C,x){var E=g(x),B=E.a;x=E.b;var w=E.f,D=C-v,t=Math.atan((1-w)*Math.tan(r)),A=Math.atan((1-w)*Math.tan(z)),G=Math.sin(t);t=Math.cos(t);var J=Math.sin(A);A=Math.cos(A);var U=D,ja=1E3;do{var Z=Math.sin(U);var fa=Math.cos(U);var qa=Math.sqrt(A*Z*A*Z+(t*J-G*A*fa)*(t*J-G*A*fa));if(0===qa)return 0;fa=G*J+t*A*fa;
var V=Math.atan2(qa,fa);var ea=t*A*Z/qa;var ba=1-ea*ea;Z=fa-2*G*J/ba;isNaN(Z)&&(Z=0);var ma=w/16*ba*(4+w*(4-3*ba));var va=U;U=D+(1-ma)*w*ea*(V+ma*qa*(Z+ma*fa*(-1+2*Z*Z)))}while(1E-12<Math.abs(U-va)&&0<--ja);if(0===ja)return x=C-v,{azimuth:Math.atan2(Math.sin(x)*Math.cos(z),Math.cos(r)*Math.sin(z)-Math.sin(r)*Math.cos(z)*Math.cos(x)),geodesicDistance:Math.acos(Math.sin(r)*Math.sin(z)+Math.cos(r)*Math.cos(z)*Math.cos(C-v))*E.radius};r=ba*(B*B-x*x)/(x*x);v=r/1024*(256+r*(-128+r*(74-47*r)));return{azimuth:Math.atan2(A*
Math.sin(U),t*J-G*A*Math.cos(U)),geodesicDistance:x*(1+r/16384*(4096+r*(-768+r*(320-175*r))))*(V-v*qa*(Z+v/4*(fa*(-1+2*Z*Z)-v/6*Z*(-3+4*qa*qa)*(-3+4*Z*Z)))),reverseAzimuth:Math.atan2(t*Math.sin(U),t*J*Math.cos(U)-G*A)}}function k(r,v){if(!(r instanceof q||r instanceof m))throw console.error("_geodesicDensify: the input geometry is neither polyline nor polygon"),Error("_geodesicDensify: the input geometry is neither polyline nor polygon");var z=r.spatialReference,C=g(z).radius/1E4;v<C&&(v=C);C=r instanceof
q;var x=[],E;F.forEach(C?r.paths:r.rings,function(B){x.push(E=[]);E.push([B[0][0],B[0][1]]);var w,D;var t=B[0][0]*h;var A=B[0][1]*h;for(w=0;w<B.length-1;w++){var G=B[w+1][0]*h;var J=B[w+1][1]*h;if(t!==G||A!==J){J=l(A,t,J,G,z);G=J.azimuth;J=J.geodesicDistance;var U=J/v;if(1<U){for(D=1;D<=U-1;D++){var ja=d(A,t,G,D*v,z);E.push([ja.x,ja.y])}D=d(A,t,G,(J+Math.floor(U-1)*v)/2,z);E.push([D.x,D.y])}A=d(A,t,G,J,z);E.push([A.x,A.y]);t=A.x*h;A=A.y*h}}});return C?new q({paths:x,spatialReference:z}):new m({rings:x,
spatialReference:z})}var n={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},h=Math.PI/
180,c={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}};e={isSupported:f,getSpheroidInfo:g,geodesicDensify:k,geodesicLengths:function(r,v){var z=[];F.forEach(r,function(C,x){var E=0,B=C.spatialReference;F.forEach(C.paths,function(w,D){D=0;var t;for(t=1;t<w.length;t++){var A=w[t-1][0]*h;var G=w[t][0]*h;var J=w[t-1][1]*h;var U=w[t][1]*h;if(J!==U||A!==G)A=l(J,A,U,G,B),D+=A.geodesicDistance}E+=D});E/=n[v];z.push(E)});return z},geodesicAreas:function(r,v){var z=[],C=[];F.forEach(r,
function(x,E){E=.0015696101447650193*g(x.spatialReference).radius;z.push(k(x,E))});F.forEach(z,function(x,E){var B=0,w=x.spatialReference;F.forEach(x.rings,function(D,t){t=a(new y(D[0][0],D[0][1],w));var A=a(new y(D[D.length-1][0],D[D.length-1][1],w)),G=A.x*t.y-t.x*A.y,J;for(J=0;J<D.length-1;J++)t=a(new y(D[J+1][0],D[J+1][1],w)),A=a(new y(D[J][0],D[J][1],w)),G+=A.x*t.y-t.x*A.y;B+=G});B/=n[v];C.push(B/-2)});return C},_unitsDictionary:n,_toEqualAreaPoint:a,_directGeodeticSolver:d,_inverseGeodeticSolver:l};
b("extend-esri")&&u.mixin(u.getObject("geometry",!0,p),e);return e})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l){return{Symbol:F,MarkerSymbol:u,SimpleMarkerSymbol:b,
PictureMarkerSymbol:p,LineSymbol:e,SimpleLineSymbol:y,CartographicLineSymbol:q,FillSymbol:m,SimpleFillSymbol:f,PictureFillSymbol:g,Font:a,TextSymbol:d,jsonUtils:l}})},"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(F,u,b,p,
e,y,q,m,f,g){return{Renderer:F,SimpleRenderer:u,UniqueValueRenderer:b,ClassBreaksRenderer:p,TemporalRenderer:e,SymbolAger:y,TimeClassBreaksAger:q,TimeRampAger:m,StretchRenderer:f,jsonUtils:g}})},"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(F,u,b,p,e,y,q,m,f,g){var a=Math.PI;F=F(null,{declaredClass:"esri.renderer.Renderer",
constructor:function(d){this._cache={};if(d&&!d.declaredClass){this.rotationInfo=d.rotationInfo;if(!this.rotationInfo){var l=d.rotationType,k=d.rotationExpression;if(l||k)this.rotationInfo={type:l,expression:k}}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=
u.hitch(this,this.getSymbol)},getSymbol:function(d){},_readSizeInfo:function(d){if(d){var l=d.minSize,k=d.maxSize;l&&(d.minSize="number"===typeof l?e.pt2px(l):this._readSizeInfo(l));k&&(d.maxSize="number"===typeof k?e.pt2px(k):this._readSizeInfo(k));d.stops&&b.forEach(d.stops,function(n){n.size&&"number"===typeof n.size&&(n.size=e.pt2px(n.size))})}return d},_readColorInfo:function(d){d&&(b.forEach(d.colors,function(l,k){u.isArray(l)&&(d.colors[k]=q.toDojoColor(l))}),b.forEach(d.stops,function(l,k){l.color&&
u.isArray(l.color)&&(d.stops[k].color=q.toDojoColor(l.color))}));return d},_readOpacityInfo:function(d){if(d){var l=u.mixin({},d);l.transparencyValues&&(l.opacityValues=b.map(l.transparencyValues,function(k){return 1-k/100}),delete l.transparencyValues);l.stops&&(l.stops=b.map(l.stops,function(k){k=u.mixin({},k);k.opacity=1-k.transparency/100;delete k.transparency;return k}))}return l},_readVariables:function(d){d&&(d=b.map(d,function(l){"sizeInfo"===l.type?l=this._readSizeInfo(l):"colorInfo"===l.type?
l=this._readColorInfo(l):"transparencyInfo"===l.type&&(l=this._readOpacityInfo(l),l.type="opacityInfo");return l},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&&!u.isFunction(d.expression)&&!d.field){var l=d.expression.match(this.rotationRE);l&&l[1]&&(d.field=l[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,l){var k=this._getVarInfo(l&&l.rotationInfo,"rotationInfo");l=k.variable;k=this._cache[k.cacheKey];var n="arithmetic"===this._getRotationType(l),h=k&&k.hasExpr,c=null;if(l.field||h)c=this._getDataValue(d,l,null,k),null!=c&&(c=(c+(n?-90:0))*(n?-1:1));return c},_getRotationType:function(d){return d&&("rotationInfo"===d.type?d.rotationType:d.type)},_getDataValue:function(d,
l,k,n,h){n||(n=this._getVarInfo(l,k),l=n.variable,n=this._cache[n.cacheKey],"sizeInfo"===k&&(n=n.root));return d._getDataValue(l,n,f,h)},setVisualVariables:function(d){var l=this._cache;b.forEach(this.visualVariables,function(k,n){l.hasOwnProperty(n)&&(l[n]=null)},this);this.visualVariables=d;b.some(d,function(k){return!!k.target})&&d.sort(function(k,n){return k.target===n.target?0:k.target?1:-1});b.forEach(d,function(k,n){"colorInfo"===k.type?l[n]=this._processColorInfo(k):"opacityInfo"===k.type?
l[n]=this._processOpacityInfo(k):"sizeInfo"===k.type?l[n]=this._processSizeInfo(k):"rotationInfo"===k.type&&(l[n]=this._processRotationInfo(k))},this);return this},getVisualVariableValues:function(d){var l=this.visualVariables,k;l&&(k=b.map(l,function(n){switch(n.type){case "sizeInfo":var h=this.getSize(d,{sizeInfo:n});break;case "colorInfo":h=this.getColor(d,{colorInfo:n});break;case "opacityInfo":h=this.getOpacity(d,{opacityInfo:n});break;case "rotationInfo":h=this.getRotationAngle(d,{rotationInfo:n})}return{variable:n,
value:h}},this));return k},getFieldsUsedInExpressions:function(d){var l=[];b.forEach(this._getCacheObjects(),function(k){k.syntaxTree&&(l=l.concat(f.extractFieldNames(k.syntaxTree,d)))});l.sort();return b.filter(l,function(k,n){return 0===n||l[n-1]!==k})},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(l){l.syntaxTree&&
d.push(l.syntaxTree)});return g.initialize(d)},hasVisualVariables:function(d,l){return d?!!this.getVisualVariablesForType(d,l):!!(this.getVisualVariablesForType("sizeInfo",l)||this.getVisualVariablesForType("colorInfo",l)||this.getVisualVariablesForType("opacityInfo",l)||this.getVisualVariablesForType("rotationInfo",l))},getVisualVariablesForType:function(d,l){var k=this.visualVariables;if(!l&&this[d]){"rotationInfo"===d&&(this[d].rotationType=this[d].type);var n=[this[d]]}else k&&(n=b.filter(k,function(h){return h.type===
d&&("string"===typeof l?h.target===l:!1===l?!h.target:!0)}))&&0===n.length&&(n=void 0);return n},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,l){if(d&&d.type===l){var k=
b.indexOf(this.visualVariables,d);d=this.visualVariables[k]}else k=l,d=this[l];return{variable:d,cacheKey:k}},setProportionalSymbolInfo:function(d){this.setSizeInfo(d);return this},getSize:function(d,l){var k=this._getVarInfo(l&&l.sizeInfo,"sizeInfo"),n=k.variable;k=this._cache[k.cacheKey];var h=null;if(n){var c=n.minSize;h=n.maxSize;c="object"===typeof c&&c?this._getSize(d,c,k&&k.minSize,l):c;h="object"===typeof h&&h?this._getSize(d,h,k&&k.maxSize,l):h;h=this._getSize(d,n,k&&k.root,l,[c,h])}return h},
_getSize:function(d,l,k,n,h){var c=l.stops,r=0,v=k&&k.hasExpr,z=k&&k.ipData,C=k&&k.isScaleDriven,x="object"===typeof d&&!!d,E="number"===typeof d?d:null;if(l.field||C||v){var B=n&&n.scale;v=h?h[0]:l.minSize;h=h?h[1]:l.maxSize;var w=l.minDataValue,D=l.maxDataValue,t=l.valueUnit||"unknown",A=l.valueRepresentation,G=l.scaleBy,J=n&&n.shape;C?E=B:"number"!==typeof E&&x&&(E=this._getDataValue(d,l,null,k));if(!this._isValidNumber(E))return null;if(c)v=this._lookupData(E,z),E=v[0],h=v[1],E===h?r=c[E].size:
(E=c[E].size,c=c[h].size,r=E+(c-E)*v[2]);else if(null!=v&&null!=h&&null!=w&&null!=D)E<=w?r=v:E>=D?r=h:(c=(E-w)/(D-w),"area"===G&&J?(v=(E="circle"===J)?a*Math.pow(v/2,2):v*v,c=v+c*((E?a*Math.pow(h/2,2):h*h)-v),r=E?2*Math.sqrt(c/a):Math.sqrt(c)):r=v+c*(h-v));else if("unknown"===t)null!=v&&null!=w&&(v&&w?(c=E/w,r="circle"===J?2*Math.sqrt(c*Math.pow(v/2,2)):"square"===J||"diamond"===J||"image"===J?Math.sqrt(c*Math.pow(v,2)):c*v):r=E+(v||w),r=r<v?v:r,null!=h&&r>h&&(r=h));else{c=(n&&n.resolution?n.resolution:
1)*this._meterIn[t];if("area"===A)r=Math.sqrt(E/a)/c,r*=2;else if(r=E/c,"radius"===A||"distance"===A)r*=2;null!=v&&r<v&&(r=v);null!=h&&r>h&&(r=h)}}else r=c&&c[0]&&c[0].size,null==r&&(r=l.minSize);return r=isNaN(r)?0:r},getSizeRangeAtScale:function(d,l){d=this._getVarInfo(d,"sizeInfo");var k=this._cache[d.cacheKey],n={scale:l};if((d=d.variable)&&l){var h=d.minSize;l=d.maxSize;var c=d.stops;c&&c.length?(d=c[0].size,k=c[c.length-1].size):(d="object"===typeof h&&h?this._getSize({},h,k&&k.minSize,n):h,
k="object"===typeof l&&l?this._getSize({},l,k&&k.maxSize,n):l);if(null!=d||null!=k){if(d>k){var r=k;k=d;d=r}r={minSize:d,maxSize:k}}}return r},setColorInfo:function(d){this.colorInfo=d;this._cache.colorInfo=this._processColorInfo(d);return this},_createCache:function(d,l){if(l=m.createAttributeCache(d,l))l.ipData=this._interpolateData(d);return l},_getCacheObjects:function(d){var l;d=d||this._cache;var k=[];for(l in d){var n=d[l];d.hasOwnProperty(l)&&n&&"object"===typeof n&&(n.hasOwnProperty("idSource")?
k.push(n):k=k.concat(this._getCacheObjects(n)))}return k},_processColorInfo:function(d){d&&(b.forEach(d.colors,function(l,k){u.isArray(l)&&(d.colors[k]=new q(l))}),b.forEach(d.stops,function(l,k){l.color&&u.isArray(l.color)&&(d.stops[k].color=new q(l.color))}));return this._createCache(d)},getColor:function(d,l){l=this._getVarInfo(l&&l.colorInfo,"colorInfo");return this._getColorComponent(d,l.variable,this._cache[l.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,l){l=this._getVarInfo(l&&l.opacityInfo,"opacityInfo");return this._getColorComponent(d,l.variable,this._cache[l.cacheKey],!0)},_getColorComponent:function(d,l,k,n,h){var c="number"===typeof d?d:null,r=k&&k.hasExpr,v=k&&k.ipData,z;l&&l.field||r?("number"!==typeof c&&"object"===typeof d&&d&&(c=this._getDataValue(d,l,null,k)),this._isValidNumber(c)||(c=null),null!=c&&(z=n?this._getOpacity(c,
l,v):this._getColor(c,l,v))):l&&(d=l.stops,n?(z=d&&d[0]&&d[0].opacity,null==z&&(z=l.opacityValues&&l.opacityValues[0])):z=d&&d[0]&&d[0].color||l.colors&&l.colors[0]);h&&(h.data=c,h.value=z);return h||z},_isValidNumber:function(d){return"number"===typeof d&&!isNaN(d)&&Infinity!==d&&-Infinity!==d},_interpolateData:function(d){if(d)if(d.colors||d.opacityValues){var l=(d.colors||d.opacityValues).length,k=d.minDataValue,n=(d.maxDataValue-k)/(l-1);var h=[];for(d=0;d<l;d++)h[d]=k+d*n}else d.stops&&(h=b.map(d.stops,
function(c){return c.value}));return h},_getOpacity:function(d,l,k){d=this._lookupData(d,k);l=l||this.opacityInfo;if(d){k=d[0];var n=d[1];k===n?n=this._getOpacValue(l,k):(k=this._getOpacValue(l,k),l=this._getOpacValue(l,n),n=k+(l-k)*d[2])}return n},_getOpacValue:function(d,l){return d.opacityValues?d.opacityValues[l]:d.stops[l].opacity},_getColor:function(d,l,k){d=this._lookupData(d,k);l=l||this.colorInfo;if(d){var n=d[0];k=d[1];n=n===k?this._getColorObj(l,n):q.blendColors(this._getColorObj(l,n),
this._getColorObj(l,k),d[2])}return n},_getColorObj:function(d,l){return d.colors?d.colors[l]:d.stops[l].color},_lookupData:function(d,l){if(l){var k=0,n=l.length-1;b.some(l,function(c,r){if(d<c)return n=r,!0;k=r;return!1});var h=[k,n,(d-l[k])/(l[n]-l[k])]}return h},_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=u.mixin({},
d);this._convertExpressionToArcade(d);var l=d.minSize,k=d.maxSize;l&&(d.minSize="number"===typeof l?e.px2pt(l):this._writeSizeInfo(l));k&&(d.maxSize="number"===typeof k?e.px2pt(k):this._writeSizeInfo(k));if(l=d.legendOptions)if(d.legendOptions=u.mixin({},l),l=l.customValues)d.legendOptions.customValues=l.slice(0);d.stops&&(d.stops=b.map(d.stops,function(n){n=u.mixin({},n);n.size&&"number"===typeof n.size&&(n.size=e.px2pt(n.size));return n}))}return d},_writeColorInfo:function(d){d&&(d=u.mixin({},
d),d.colors&&(d.colors=b.map(d.colors,function(l){return q.toJsonColor(l)})),d.stops&&(d.stops=b.map(d.stops,function(l){l=u.mixin({},l);l.color&&(l.color=q.toJsonColor(l.color));return l})),d.legendOptions&&(d.legendOptions=u.mixin({},d.legendOptions)));return d},_writeOpacityInfo:function(d){if(d){var l=u.mixin({},d);l.opacityValues&&(l.transparencyValues=b.map(l.opacityValues,function(k){return 100*(1-k)}),delete l.opacityValues);l.stops&&(l.stops=b.map(l.stops,function(k){k=u.mixin({},k);k.transparency=
100*(1-k.opacity);delete k.opacity;return k}));l.legendOptions&&(l.legendOptions=u.mixin({},l.legendOptions))}return l},toJson:function(d){var l=this.visualVariables,k=u.clone(this.authoringInfo),n=d&&d.useLegacyRotationProperties,h=(d=(d=this.getVisualVariablesForType("rotationInfo",!1))&&d[0])&&d.field,c;d&&(d===this.rotationInfo||n)&&(c=d.expression||h&&(u.isFunction(h)?h:"["+h+"]"));l&&(l=b.map(l,function(r){"sizeInfo"===r.type?r=this._writeSizeInfo(r):"colorInfo"===r.type?r=this._writeColorInfo(r):
"opacityInfo"===r.type?(r=this._writeOpacityInfo(r),r.type="transparencyInfo"):"rotationInfo"===r.type&&(r=n?null:u.mixin({},r));return r},this),l=b.filter(l,function(r){return null!=r}));k&&b.forEach(k.visualVariables,function(r){"opacityInfo"===r.type&&(r.type="transparencyInfo")});return{rotationType:c&&(this._getRotationType(d)||"geographic"),rotationExpression:c,colorInfo:this._writeColorInfo(this.colorInfo),transparencyInfo:this._writeOpacityInfo(this.opacityInfo),sizeInfo:this._writeSizeInfo(this.sizeInfo),
visualVariables:l,authoringInfo:k}}});p("extend-esri")&&u.setObject("renderer.Renderer",F,y);return F})},"esri/layers/support/attributeUtils":function(){define("dojo/_base/lang dojo/has dojox/encoding/digests/_base dojox/encoding/digests/MD5 ../../kernel ../../support/expressionUtils".split(" "),function(F,u,b,p,e,y){var q={viewScaleRE:/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i,getAttributeId:function(m){return"string"===typeof m?p(m,b.outputTypes.Hex):null},getAttributeIdSource:function(m){if(!m)return null;
var f=m.field,g=m.valueExpression,a=null;if(g)a=g;else if(F.isFunction(f))a=f.toString();else if(f){var d=(g=m.normalizationField)?"field":m.normalizationType;m=parseFloat(m.normalizationTotal);d&&(d=d.toLowerCase(),a=f.toLowerCase()+",norm:"+d,g?a+=","+g.toLowerCase():"percent-of-total"===d&&(f=m,"number"===typeof f&&!isNaN(f)&&Infinity!==f&&-Infinity!==f&&0!==m||(m=null),a+=","+m))}return a},createAttributeCache:function(m,f){if(!m)return null;var g=m.valueExpression,a=y.createSyntaxTree(g),d=q.getAttributeIdSource(m);
return{attributeInfo:m,isNumeric:!f,idSource:d,id:q.getAttributeId(d),hasExpr:!!g,compiledFunc:y.createFunction(a),syntaxTree:a,isScaleDriven:!!m.expression||q.viewScaleRE.test(g),dependsOnView:a?y.dependsOnView(a):!1,dependsOnGeometry:a?y.hasGeometryOperations(a):!1,isJSFunc:F.isFunction(m.field)}}};u("extend-esri")&&F.setObject("layers.support.attributeUtils",q,e);return q})},"dojox/encoding/digests/_base":function(){define(["dojo/_base/lang"],function(F){F=F.getObject("dojox.encoding.digests",
!0);F.outputTypes={Base64:0,Hex:1,String:2,Raw:3};F.addWords=function(u,b){var p=(u&65535)+(b&65535);return(u>>16)+(b>>16)+(p>>16)<<16|p&65535};F.stringToWord=function(u){for(var b=[],p=0,e=8*u.length;p<e;p+=8)b[p>>5]|=(u.charCodeAt(p/8)&255)<<p%32;return b};F.wordToString=function(u){for(var b=[],p=0,e=32*u.length;p<e;p+=8)b.push(String.fromCharCode(u[p>>5]>>>p%32&255));return b.join("")};F.wordToHex=function(u){for(var b=[],p=0,e=4*u.length;p<e;p++)b.push("0123456789abcdef".charAt(u[p>>2]>>p%4*
8+4&15)+"0123456789abcdef".charAt(u[p>>2]>>p%4*8&15));return b.join("")};F.wordToBase64=function(u){for(var b=[],p=0,e=4*u.length;p<e;p+=3)for(var y=(u[p>>2]>>p%4*8&255)<<16|(u[p+1>>2]>>(p+1)%4*8&255)<<8|u[p+2>>2]>>(p+2)%4*8&255,q=0;4>q;q++)8*p+6*q>32*u.length?b.push("\x3d"):b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(y>>6*(3-q)&63));return b.join("")};F.stringToUtf8=function(u){for(var b="",p=-1,e,y;++p<u.length;)e=u.charCodeAt(p),y=p+1<u.length?u.charCodeAt(p+
1):0,55296<=e&&56319>=e&&56320<=y&&57343>=y&&(e=65536+((e&1023)<<10)+(y&1023),p++),127>=e?b+=String.fromCharCode(e):2047>=e?b+=String.fromCharCode(192|e>>>6&31,128|e&63):65535>=e?b+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|e&63):2097151>=e&&(b+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|e&63));return b};return F})},"dojox/encoding/digests/MD5":function(){define(["./_base"],function(F){function u(q,m,f,g,a,d){var l=F.addWords;q=F.addWords(F.addWords(m,q),F.addWords(g,
d));return l.call(F,q<<a|q>>>32-a,f)}function b(q,m,f,g,a,d,l){return u(m&f|~m&g,q,m,a,d,l)}function p(q,m,f,g,a,d,l){return u(m&g|f&~g,q,m,a,d,l)}function e(q,m,f,g,a,d,l){return u(f^(m|~g),q,m,a,d,l)}function y(q,m){q[m>>5]|=128<<m%32;q[(m+64>>>9<<4)+14]=m;m=1732584193;for(var f=-271733879,g=-1732584194,a=271733878,d=0;d<q.length;d+=16){var l=m,k=f,n=g,h=a;m=b(m,f,g,a,q[d+0],7,-680876936);a=b(a,m,f,g,q[d+1],12,-389564586);g=b(g,a,m,f,q[d+2],17,606105819);f=b(f,g,a,m,q[d+3],22,-1044525330);m=b(m,
f,g,a,q[d+4],7,-176418897);a=b(a,m,f,g,q[d+5],12,1200080426);g=b(g,a,m,f,q[d+6],17,-1473231341);f=b(f,g,a,m,q[d+7],22,-45705983);m=b(m,f,g,a,q[d+8],7,1770035416);a=b(a,m,f,g,q[d+9],12,-1958414417);g=b(g,a,m,f,q[d+10],17,-42063);f=b(f,g,a,m,q[d+11],22,-1990404162);m=b(m,f,g,a,q[d+12],7,1804603682);a=b(a,m,f,g,q[d+13],12,-40341101);g=b(g,a,m,f,q[d+14],17,-1502002290);f=b(f,g,a,m,q[d+15],22,1236535329);m=p(m,f,g,a,q[d+1],5,-165796510);a=p(a,m,f,g,q[d+6],9,-1069501632);g=p(g,a,m,f,q[d+11],14,643717713);
f=p(f,g,a,m,q[d+0],20,-373897302);m=p(m,f,g,a,q[d+5],5,-701558691);a=p(a,m,f,g,q[d+10],9,38016083);g=p(g,a,m,f,q[d+15],14,-660478335);f=p(f,g,a,m,q[d+4],20,-405537848);m=p(m,f,g,a,q[d+9],5,568446438);a=p(a,m,f,g,q[d+14],9,-1019803690);g=p(g,a,m,f,q[d+3],14,-187363961);f=p(f,g,a,m,q[d+8],20,1163531501);m=p(m,f,g,a,q[d+13],5,-1444681467);a=p(a,m,f,g,q[d+2],9,-51403784);g=p(g,a,m,f,q[d+7],14,1735328473);f=p(f,g,a,m,q[d+12],20,-1926607734);m=u(f^g^a,m,f,q[d+5],4,-378558);a=u(m^f^g,a,m,q[d+8],11,-2022574463);
g=u(a^m^f,g,a,q[d+11],16,1839030562);f=u(g^a^m,f,g,q[d+14],23,-35309556);m=u(f^g^a,m,f,q[d+1],4,-1530992060);a=u(m^f^g,a,m,q[d+4],11,1272893353);g=u(a^m^f,g,a,q[d+7],16,-155497632);f=u(g^a^m,f,g,q[d+10],23,-1094730640);m=u(f^g^a,m,f,q[d+13],4,681279174);a=u(m^f^g,a,m,q[d+0],11,-358537222);g=u(a^m^f,g,a,q[d+3],16,-722521979);f=u(g^a^m,f,g,q[d+6],23,76029189);m=u(f^g^a,m,f,q[d+9],4,-640364487);a=u(m^f^g,a,m,q[d+12],11,-421815835);g=u(a^m^f,g,a,q[d+15],16,530742520);f=u(g^a^m,f,g,q[d+2],23,-995338651);
m=e(m,f,g,a,q[d+0],6,-198630844);a=e(a,m,f,g,q[d+7],10,1126891415);g=e(g,a,m,f,q[d+14],15,-1416354905);f=e(f,g,a,m,q[d+5],21,-57434055);m=e(m,f,g,a,q[d+12],6,1700485571);a=e(a,m,f,g,q[d+3],10,-1894986606);g=e(g,a,m,f,q[d+10],15,-1051523);f=e(f,g,a,m,q[d+1],21,-2054922799);m=e(m,f,g,a,q[d+8],6,1873313359);a=e(a,m,f,g,q[d+15],10,-30611744);g=e(g,a,m,f,q[d+6],15,-1560198380);f=e(f,g,a,m,q[d+13],21,1309151649);m=e(m,f,g,a,q[d+4],6,-145523070);a=e(a,m,f,g,q[d+11],10,-1120210379);g=e(g,a,m,f,q[d+2],15,
718787259);f=e(f,g,a,m,q[d+9],21,-343485551);m=F.addWords(m,l);f=F.addWords(f,k);g=F.addWords(g,n);a=F.addWords(a,h)}return[m,f,g,a]}F.MD5=function(q,m){m=m||F.outputTypes.Base64;q=y(F.stringToWord(q),8*q.length);switch(m){case F.outputTypes.Raw:return q;case F.outputTypes.Hex:return F.wordToHex(q);case F.outputTypes.String:return F.wordToString(q);default:return F.wordToBase64(q)}};F.MD5._hmac=function(q,m,f){f=f||F.outputTypes.Base64;var g=F.stringToWord(m);16<g.length&&(g=y(g,8*m.length));var a=
[];m=[];for(var d=0;16>d;d++)a[d]=g[d]^909522486,m[d]=g[d]^1549556828;q=y(a.concat(F.stringToWord(q)),512+8*q.length);q=y(m.concat(q),640);switch(f){case F.outputTypes.Raw:return q;case F.outputTypes.Hex:return F.wordToHex(q);case F.outputTypes.String:return F.wordToString(q);default:return F.wordToBase64(q)}};return F.MD5})},"esri/support/expressionUtils":function(){define("dojo/_base/lang dojo/_base/array dojo/has dojo/Deferred ../kernel ../arcade/arcade ../arcade/Feature ../arcade/languageUtils".split(" "),
function(F,u,b,p,e,y,q,m){function f(n){var h=new p;n.then(function(c){if(!h.isFulfilled())return m.isDate(c)&&(c=c.toJSDate()),h.resolve(c)},function(c){if(!h.isFulfilled())return h.reject(c)});return h.promise}function g(n){var h=new p;n.then(function(c){if(!h.isFulfilled())return h.resolve(c)},function(c){if(!h.isFulfilled())return h.reject(c)});return h.promise}function a(n){return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$\x26")}var d={vars:{$feature:"any",$view:"any"}},l=/^\$(feature|aggregatedFeatures)\./i,
k={_getSyntaxTree:function(n){return"string"===typeof n?k.createSyntaxTree(n):n},createSyntaxTree:function(n){try{var h=n?y.parseScript(n):null}catch(c){h=null}return h},createFunction:function(n,h){h=h||F.clone(d);n=k._getSyntaxTree(n);try{var c=n?y.compileScript(n,h):null}catch(r){console.log("expressionUtils.createFunction: compilation failed. "+(r.message||"")),c=null}return c},createExecContext:function(n,h){return{vars:{$feature:n?q.createFromGraphic(n):new q,$view:h&&h.view},spatialReference:h&&
h.sr}},evalSyntaxTree:function(n,h){try{var c=y.executeScript(n,h)}catch(r){c=null}return c},executeFunction:function(n,h){try{var c=n?n(h):null}catch(r){c=null}return m.isDate(c)?c.toJSDate():c},executeAsyncFunction:function(n,h){try{var c=n?f(n(h)):(new p).reject(Error("expressionUtils.executeAsyncFunction: Invalid argument. compiledFunc is missing."))}catch(r){c=(new p).reject(r)}return c},extractFieldNames:function(n,h){n=k._getSyntaxTree(n);n=y.extractExpectedFieldLiterals(n);var c=[];u.forEach(n,
function(v){l.test(v)&&(v=v.replace(l,""),c.push(v))});var r=u.filter(c,function(v){return-1!==v.indexOf("*")});c=u.filter(c,function(v){return-1===r.indexOf(v)});h&&u.forEach(r,function(v){var z=new RegExp("^"+v.split(/\*+/).map(a).join(".*")+"$","i");u.forEach(h,function(C){z.test(C)&&c.push(C)})});c.sort();return u.filter(c,function(v,z){return 0===z||c[z-1]!==v})},dependsOnView:function(n){return k.hasVariable(n,"$view")},hasGeometryFunctions:function(n){return(n=k._getSyntaxTree(n))?y.scriptTouchesGeometry(n):
!1},hasGeometryOperations:function(n){return(n=k._getSyntaxTree(n))?y.scriptUsesGeometryEngine(n):!1},enableGeometryOperations:function(){return g(y.enableGeometrySupport())},hasVariable:function(n,h){return(n=k._getSyntaxTree(n))?y.referencesMember(n,h):!1},hasFunction:function(n,h){return(n=k._getSyntaxTree(n))?y.referencesFunction(n,h):!1},createFeatureSetFromLayer:function(n,h){h=h||{};var c=y.featureSetUtils();return c?c.constructFeatureSet(n,h.spatialReference,h.outFields,h.returnGeometry,h.cache):
null},createFeatureSetFromLayerUrl:function(n,h){h=h||{};var c=y.featureSetUtils();return c?c.constructFeatureSetFromUrlRaw(n,h.spatialReference,h.outFields,h.returnGeometry,h.cache):null},createFeatureSetCollectionFromMap:function(n,h){var c=y.featureSetUtils();return c?c.createFeatureSetCollectionFromMap(n,n.spatialReference,h&&h.cache):null},createFeatureSetCollectionFromServiceUrl:function(n,h){h=h||{};var c=y.featureSetUtils();return c?c.createFeatureSetCollectionFromService(n,h.spatialReference,
h.cache):null},hasFeatureSetOperations:function(n){return(n=k._getSyntaxTree(n))?y.scriptUsesFeatureSet(n):!1},enableFeatureSetOperations:function(){return g(y.enableFeatureSetSupport().then(function(){var n=y.featureSetUtils();n&&n.initialiseMetaDataCache()}))},enableAsyncOperations:function(){return g(y.enableAsyncSupport())}};b("extend-esri")&&F.setObject("support.expressionUtils",k,e);return k})},"esri/arcade/arcade":function(){define("require exports ./polyfill/tsSupport/awaiter ./polyfill/tsSupport/generator ./arcadeCompiler ./ArcadeModuleResolver ./arcadeRuntime ./executionError ./parser ./treeAnalysis dojo/has ./polyfill/maybe".split(" "),
function(F,u,b,p,e,y,q,m,f,g,a,d){function l(ba,ma){if(null===ja)throw new m.ArcadeExecutionError(null,m.ExecutionErrorCodes.AsyncNotEnabled,null);if(a("esri-csp-restrictions")||!1===G)return function(va){return ja.executeScript(ba,va)};try{return e.compileScript(ba,ma,!0)}catch(va){if("esri.arcade.arcadeuncompilableerror"===va.declaredRootClass)return function(da){return ja.executeScript(ba,da)};throw va;}}function k(ba,ma){void 0===ma&&(ma=[]);return f.parseScript(ba,ma)}function n(ba,ma){if(!0===
ma.useAsync||!0===ba.isAsync){if(null===ja)throw new m.ArcadeExecutionError(null,m.ExecutionErrorCodes.AsyncNotEnabled,null);return ja.executeScript(ba,ma)}return q.executeScript(ba,ma)}function h(ba,ma){return g.referencesMember(ba,ma)}function c(ba,ma){void 0===ma&&(ma=[]);void 0===ba.usesGeometry&&g.findScriptDependencies(ba,ma);return!0===ba.usesGeometry}function r(){return fa?fa:fa=v()}function v(){return b(this,void 0,void 0,function(){return p(this,function(ba){return[2,new Promise(function(ma,
va){F(["../geometry/geometryEngine","./functions/geomsync"],function(da,ka){U=!0;ka.setGeometryEngine(da);ma(!0)},function(da){va(da)})})]})})}function z(){return null!==qa?qa:qa=C()}function C(){return b(this,void 0,void 0,function(){var ba,ma,va;return p(this,function(da){switch(da.label){case 0:return[4,e.enableAsyncSupport()];case 1:return da.sent(),[4,new Promise(function(ka,I){F(["./arcadeAsyncRuntime"],function(S){ka(S)},I)})];case 2:ja=da.sent();ba=0;for(ma=Z;ba<ma.length;ba++)va=ma[ba],ja.extend(va),
e.extend(va,"async");Z=null;return[2,!0]}})})}function x(){return ja?!0:!1}function E(){return V?V:V=B()}function B(){return b(this,void 0,void 0,function(){var ba;return p(this,function(ma){switch(ma.label){case 0:return[4,z()];case 1:return ma.sent(),[4,new Promise(function(va,da){F(["./featureSetUtils","./functions/featuresetbase","./functions/featuresetgeom","./functions/featuresetstats","./functions/featuresetstring"],function(ka,I,S,X,O){va({featuresetutils:ka,libraries:[I,S,X,O]})},da)})];
case 2:return ba=ma.sent(),ea=ba.featuresetutils,ja.extend(ba.libraries),e.extend(ba.libraries,"async"),J=!0,[2,!0]}})})}function w(ba,ma){void 0===ma&&(ma=[]);void 0===ba.usesFeatureSet&&g.findScriptDependencies(ba,ma);return!0===ba.usesFeatureSet}function D(ba,ma,va,da,ka,I){void 0===da&&(da=[]);void 0===ka&&(ka=!1);void 0===I&&(I=null);return b(this,void 0,void 0,function(){var S,X;return p(this,function(O){switch(O.label){case 0:S="string"===typeof ma?k(ma):ma;X=[];if(S&&(!1===U&&(c(S)||ka)&&
X.push(r()),!1===x()&&(!0===S.isAsync||va)&&X.push(z()),!1===J)){if(!(O=w(S)))a:{O=S;if(da)for(var P=0,aa=da;P<aa.length;P++)if(h(O,aa[P])){O=!0;break a}O=!1}O&&X.push(E())}return X.length?[4,Promise.all(X)]:[3,2];case 1:O.sent(),O.label=2;case 2:return[4,t(ba,S,I,va,ka)];case 3:return O.sent(),[2,!0]}})})}function t(ba,ma,va,da,ka){void 0===va&&(va=null);void 0===da&&(da=!1);void 0===ka&&(ka=!1);return b(this,void 0,void 0,function(){var I,S,X,O,P,aa;return p(this,function(ha){switch(ha.label){case 0:I=
g.findModuleImports(ma),null===va&&0<I.length&&(va=y.ArcadeModuleResolver.getDefault()),ma.loadedModules={},S=0,X=I,ha.label=1;case 1:if(!(S<X.length))return[3,5];O=X[S];d.assertIsSome(va);P=va.normalizeModuleUri(O.source);if(ba.has(P.uri))throw new m.ArcadeExecutionError(null,m.ExecutionErrorCodes.CircularModules,null);ba.add(P.uri);return[4,va.fetchModule(P)];case 2:return aa=ha.sent(),[4,D(ba,aa,da,[],ka,va)];case 3:ha.sent(),ba.delete(P.uri),aa.isAsync&&(ma.isAsync=!0),aa.usesFeatureSet&&(ma.usesFeatureSet=
!0),aa.usesGeometry&&(ma.usesGeometry=!0),ma.loadedModules[O.libname]={uri:P.uri,script:aa},ha.label=4;case 4:return S++,[3,1];case 5:return[2]}})})}Object.defineProperty(u,"__esModule",{value:!0});u.featureSetUtils=u.scriptTouchesGeometry=u.loadDependentModules=u.scriptUsesModules=u._loadScriptDependenciesImpl=u.loadScriptDependencies=u.scriptIsAsync=u.scriptUsesFeatureSet=u.enableFeatureSetSupportImpl=u.enableFeatureSetSupport=u.isGeometryEnabled=u.isAsyncEnabled=u.isFeatureSetSupportEnabled=u.enableAsyncSupportImpl=
u.enableAsyncSupport=u.enableGeometrySupportImpl=u.enableGeometrySupport=u.scriptUsesGeometryEngine=u.extractExpectedFieldLiterals=u.extractFieldLiterals=u.referencesFunction=u.referencesMember=u.executeScript=u.parseAndExecuteScript=u.parseScript=u.extend=u.compileScript=void 0;var A="feature angle bearing centroid envelopeintersects extent geometry isselfintersecting ringisclockwise".split(" "),G=function(){if(a("csp-restrictions"))return!1;try{return(new Function("function* test() {}; return true"))()}catch(ba){return!1}}(),
J=!1,U=!1,ja=null,Z=[];u.compileScript=function(ba,ma){if(!0===ma.useAsync||!0===ba.isAsync)return l(ba,ma);if(a("esri-csp-restrictions"))return function(va){return q.executeScript(ba,va)};try{return e.compileScript(ba,ma)}catch(va){if("esri.arcade.arcadeuncompilableerror"===va.declaredRootClass)return function(da){return q.executeScript(ba,da)};throw va;}};u.extend=function(ba){q.extend(ba);e.extend(ba,"sync");null===ja?Z.push(ba):(e.extend(ba,"async"),ja.extend(ba))};u.parseScript=k;u.parseAndExecuteScript=
function(ba,ma,va){void 0===va&&(va=[]);ba=f.parseScript(ba,va);return n(ba,ma)};u.executeScript=n;u.referencesMember=h;u.referencesFunction=function(ba,ma){return g.referencesFunction(ba,ma)};u.extractFieldLiterals=function(ba,ma){void 0===ma&&(ma=!1);void 0===ma&&(ma=!1);return g.findFieldLiterals(ba)};u.extractExpectedFieldLiterals=function(ba){return g.findExpectedFieldLiterals(ba)};u.scriptUsesGeometryEngine=c;var fa=null;u.enableGeometrySupport=r;u.enableGeometrySupportImpl=v;var qa=null;u.enableAsyncSupport=
z;u.enableAsyncSupportImpl=C;u.isFeatureSetSupportEnabled=function(){return J};u.isAsyncEnabled=x;u.isGeometryEnabled=function(){return U};var V=null;u.enableFeatureSetSupport=E;u.enableFeatureSetSupportImpl=B;u.scriptUsesFeatureSet=w;u.scriptIsAsync=function(ba,ma){void 0===ma&&(ma=[]);void 0===ba.isAsync&&g.findScriptDependencies(ba,ma);return!0===ba.isAsync};u.loadScriptDependencies=function(ba,ma,va,da,ka){void 0===va&&(va=[]);void 0===da&&(da=!1);void 0===ka&&(ka=null);return b(this,void 0,void 0,
function(){return p(this,function(I){return[2,D(new Set,ba,ma,va,da,ka)]})})};u._loadScriptDependenciesImpl=D;u.scriptUsesModules=function(ba,ma){void 0===ma&&(ma=[]);void 0===ba.usesModules&&g.findScriptDependencies(ba,ma);return!0===ba.usesModules};u.loadDependentModules=t;u.scriptTouchesGeometry=function(ba){if(c(ba))return!0;ba=g.findFunctionCalls(ba);for(var ma=!1,va=0;va<ba.length;va++)if(A.includes(ba[va])){ma=!0;break}return ma};var ea=null;u.featureSetUtils=function(){return ea}})},"esri/arcade/arcadeCompiler":function(){define("require exports ./polyfill/tsSupport/awaiter ./polyfill/tsSupport/generator ./polyfill/tsSupport/assign ./polyfill/tsSupport/spreadarray ./polyfill/tsSupport/extends ./Dictionary ./Feature ./languageUtils ./treeAnalysis ./functions/array ./functions/date ./functions/geometry ./functions/geomsync ./functions/maths ./functions/stats ./functions/string ./polyfill/promiseUtils ../geometry/Geometry ../SpatialReference ./ArcadeModuleLoader ./ArcadeModule ./FunctionWrapper ./executionError".split(" "),
function(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r,v,z,C,x,E,B,w){function D(N,Q,ia){try{return ia(N,null,Q.arguments)}catch(pa){throw pa;}}function t(N,Q){try{switch(Q.type){case "EmptyStatement":return"lc.voidOperation";case "VariableDeclarator":return fa(N,Q);case "VariableDeclaration":for(var ia=[],pa=0;pa<Q.declarations.length;pa++)ia.push(t(N,Q.declarations[pa]));return ia.join("\n")+" \n lastStatement\x3d  lc.voidOperation; \n";case "BlockStatement":case "Program":return ja(N,Q);case "FunctionDeclaration":var ra=
Q.id.name.toLowerCase();Z(ra);var M="",ca=!1;void 0!==N.globalScope[ra]?M=ra:void 0!==N.globalScope._SymbolsMap[ra]?M=N.globalScope._SymbolsMap[ra]:N.undeclaredGlobalsInFunctions.has(ra)?(M=N.undeclaredGlobalsInFunctions.get(ra).manglename,N.globalScope._SymbolsMap[ra]=M,N.mangleMap[ra]=M,N.undeclaredGlobalsInFunctions.delete(ra),ca=!0):(M=ea(N),N.globalScope._SymbolsMap[ra]=M,N.mangleMap[ra]=M);ia={isAsync:N.isAsync,console:N.console,exports:N.exports,undeclaredGlobalsInFunctions:N.undeclaredGlobalsInFunctions,
customfunctions:N.customfunctions,moduleFactory:N.moduleFactory,moduleFactoryMap:N.moduleFactoryMap,libraryResolver:N.libraryResolver,lrucache:N.lrucache,interceptor:N.interceptor,services:N.services,symbols:N.symbols,mangleMap:N.mangleMap,localScope:{_SymbolsMap:{}},depthCounter:N.depthCounter,globalScope:N.globalScope};var sa="new lang.UserDefinedCompiledFunction( lang.functionDepthchecker(function() { var lastStatement \x3d lc.voidOperation; \n   var lscope \x3d runtimeCtx.localStack[runtimeCtx.localStack.length-1];\n";
for(ra=0;ra<Q.params.length;ra++){pa=Q.params[ra].name.toLowerCase();Z(pa);var xa=ea(N);ia.localScope._SymbolsMap[pa]=xa;ia.mangleMap[pa]=xa;sa+="lscope['"+xa+"']\x3darguments["+ra.toString()+"];\n"}!0===N.isAsync?(sa=sa+"return lang.__awaiter(this, void 0, void 0, function* () {\n"+(ja(ia,Q.body)+"\n return lastStatement; "),sa=sa+"});  }, runtimeCtx),"+(Q.params.length+")")):sa+=ja(ia,Q.body)+"\n return lastStatement; }, runtimeCtx),"+Q.params.length+")";sa+="\n lastStatement \x3d lc.voidOperation; \n";
return ca?"gscope[lang.setAssig('"+M+"', runtimeCtx)]\x3d"+sa:"gscope['"+M+"']\x3d"+sa;case "ImportDeclaration":var za,Ca,Ha=Q.specifiers[0].local.name.toLowerCase();Z(Ha);var Da=null===(za=N.libraryResolver)||void 0===za?void 0:za.loadLibrary(Ha),La=ea(N);void 0===N.moduleFactory[Da.uri]&&(N.moduleFactory[Da.uri]=S(Da.syntax,{interceptor:N.interceptor,services:N.services,moduleFactory:N.moduleFactory,lrucache:N.lrucache,timeReference:null!==(Ca=N.timeReference)&&void 0!==Ca?Ca:null,libraryResolver:N.libraryResolver,
customfunctions:N.customfunctions,vars:{}},N.isAsync));N.moduleFactoryMap[La]=Da.uri;Q="";Q=N.isAsync?"(yield lang.loadModule('"+La+"', runtimeCtx) ); ":"lang.loadModule('"+La+"', runtimeCtx); ";if(void 0!==N.globalScope[Ha])var Pa="gscope['"+Ha+"']\x3d"+Q;else void 0!==N.globalScope._SymbolsMap[Ha]?Pa="gscope['"+N.globalScope._SymbolsMap[Ha]+"']\x3d"+Q:(ia="",N.undeclaredGlobalsInFunctions.has(Ha)?(ia=N.undeclaredGlobalsInFunctions.get(Ha).manglename,N.undeclaredGlobalsInFunctions.delete(Ha)):ia=
ea(N),N.globalScope._SymbolsMap[Ha]=ia,N.mangleMap[Ha]=ia,Pa="gscope[lang.setAssig('"+ia+"', runtimeCtx)]\x3d"+Q);return Pa;case "ExportNamedDeclaration":var T=t(N,Q.declaration);if("FunctionDeclaration"===Q.declaration.type)N.exports[Q.declaration.id.name.toLowerCase()]="function";else if("VariableDeclaration"===Q.declaration.type){ia=0;for(var Y=Q.declaration.declarations;ia<Y.length;ia++)N.exports[Y[ia].id.name.toLowerCase()]="variable"}return T;case "ReturnStatement":var oa=null===Q.argument?
"return lc.voidOperation":"return "+t(N,Q.argument);return oa;case "IfStatement":return U(N,Q);case "ExpressionStatement":var ua="AssignmentExpression"===Q.expression.type?"lastStatement \x3d lc.voidOperation; "+t(N,Q.expression)+"; \n ":"lastStatement \x3d "+t(N,Q.expression)+"; ";return ua;case "AssignmentExpression":return G(N,Q);case "UpdateExpression":return A(N,Q);case "BreakStatement":return"break";case "ContinueStatement":return"continue";case "TemplateLiteral":try{ia=[];xa=pa=0;for(ca=Q.quasis;xa<
ca.length;xa++)sa=ca[xa],ia.push(sa.value?JSON.stringify(sa.value.cooked):JSON.stringify("")),!1===sa.tail&&(ia.push(Q.expressions[pa]?"lang.castString(lang.aCheck("+t(N,Q.expressions[pa])+", 'TemplateLiteral'))":""),pa++);M="(["+ia.join(",")+"]).join('')"}catch(Ya){throw Ya;}return M;case "TemplateElement":return JSON.stringify(Q.value?Q.value.cooked:"");case "ForStatement":ia="lastStatement \x3d lc.voidOperation; \n";null!==Q.init&&(ia+=t(N,Q.init)+"; ");var ya=ba(N),Ea=ba(N);ia+="var "+ya+" \x3d true; \n do { ";
null!==Q.update&&(ia+=" if ("+ya+"\x3d\x3d\x3dfalse) {\n "+t(N,Q.update)+"  \n}\n "+ya+"\x3dfalse; \n");null!==Q.test&&(ia+="var "+Ea+" \x3d "+t(N,Q.test)+"; ",ia+="if ("+Ea+"\x3d\x3d\x3dfalse) { break; } else if ("+Ea+"!\x3d\x3dtrue) { lang.error('"+w.ExecutionErrorCodes.BooleanConditionRequired+"');   }\n");ia+=t(N,Q.body);null!==Q.update&&(ia+="\n "+t(N,Q.update));return ia+("\n"+ya+" \x3d true; \n} while(true);  lastStatement \x3d lc.voidOperation; ");case "ForInStatement":var Fa=ba(N),Ka=ba(N),
Ja=ba(N),Ga="var "+Fa+" \x3d "+t(N,Q.right)+";\n";"VariableDeclaration"===Q.left.type&&(Ga+=t(N,Q.left));var Na="VariableDeclaration"===Q.left.type?Q.left.declarations[0].id.name:Q.left.name;Na=Na.toLowerCase();Z(Na);ia="";null!==N.localScope&&(void 0!==N.localScope[Na]?ia="lscope['"+Na+"']":void 0!==N.localScope._SymbolsMap[Na]&&(ia="lscope['"+N.localScope._SymbolsMap[Na]+"']"));pa="";if(""===ia)if(void 0!==N.globalScope[Na])ia="gscope['"+Na+"']";else if(void 0!==N.globalScope._SymbolsMap[Na])ia=
"gscope['"+N.globalScope._SymbolsMap[Na]+"']";else if(null!==N.localScope)if(N.undeclaredGlobalsInFunctions.has(Na))ia="gscope['"+N.undeclaredGlobalsInFunctions.get(Na).manglename+"']",pa=N.undeclaredGlobalsInFunctions.get(Na).manglename;else{var Ra={manglename:ea(N),node:Q.left};N.undeclaredGlobalsInFunctions.set(Na,Ra);ia="gscope['"+Ra.manglename+"']";pa=Ra.manglename}pa&&(Ga+="lang.chkAssig('"+pa+"',runtimeCtx); \n");Ga=Ga+("if ("+Fa+"\x3d\x3d\x3dnull) {  lastStatement \x3d lc.voidOperation; }\n else if (lc.isArray(")+
(Fa+") || lc.isString("+Fa+")) {var ")+(Ka+"\x3d"+Fa+".length; \nfor(var ")+(Ja+"\x3d0; "+Ja+"\x3c"+Ka+"; "+Ja+"++) {\n");Ga+=ia+"\x3d"+Ja+";\n";Ga+=t(N,Q.body);Ga+="\n}\n";Ga+=" lastStatement \x3d lc.voidOperation; \n";Ga+=" \n}\n";Ga+="else if (lc.isImmutableArray("+Fa+")) {";Ga=Ga+("var "+Ka+"\x3d"+Fa+".length(); \nfor(var ")+(Ja+"\x3d0; "+Ja+"\x3c"+Ka+"; "+Ja+"++) {\n");Ga+=ia+"\x3d"+Ja+";\n";Ga+=t(N,Q.body);Ga+="\n}\n";Ga+=" lastStatement \x3d lc.voidOperation; \n";Ga+=" \n}\n";Ga+="else if (( "+
Fa+" instanceof lang.Dictionary) || ( "+Fa+" instanceof lang.Feature)) {";Ga=Ga+("var "+Ka+"\x3d"+Fa+".keys(); \nfor(var ")+(Ja+"\x3d0; "+Ja+"\x3c"+Ka+".length; "+Ja+"++) {\n");Ga+=ia+"\x3d"+Ka+"["+Ja+"];\n";Ga+=t(N,Q.body);Ga+="\n}\n";Ga+=" lastStatement \x3d lc.voidOperation; \n";Ga+=" \n}\n";N.isAsync&&(Ga+="else if (lc.isFeatureSet("+Fa+")) {",Ga=Ga+("var "+Ka+"\x3d"+Fa+".iterator(runtimeCtx.abortSignal); \nfor(var ")+(Ja+"\x3dlang. graphicToFeature( yield "+Ka+".next(),"+Fa+", runtimeCtx); "+
Ja+"!\x3dnull; "+Ja+"\x3dlang. graphicToFeature( yield "+Ka+".next(),"+Fa+", runtimeCtx)) {\n")+(ia+"\x3d"+Ja+";\n"),Ga+=t(N,Q.body),Ga+="\n}\n",Ga+=" lastStatement \x3d lc.voidOperation; \n",Ga+=" \n}\n");return Ga+"else { lastStatement \x3d lc.voidOperation; } \n";case "WhileStatement":ia="lastStatement \x3d lc.voidOperation; \n";var Va=ba(N);return ia+="\n  var "+Va+" \x3d true;\n    do {\n      "+Va+" \x3d "+t(N,Q.test)+";\n      if ("+Va+"\x3d\x3dfalse) {\n        break;\n      }\n      if ("+
Va+"!\x3d\x3dtrue) {\n        lang.error('"+w.ExecutionErrorCodes.BooleanConditionRequired+"');\n      }\n      "+t(N,Q.body)+"\n    }\n    while ("+Va+" !\x3d\x3d false);\n    lastStatement \x3d lc.voidOperation;\n  ";case "Identifier":return qa(N,Q);case "MemberExpression":try{ia=void 0;!0===Q.computed?ia=t(N,Q.property):(ia="'"+Q.property.name+"'",Z(Q.property.name));var Sa="lang.member("+t(N,Q.object)+","+ia+")"}catch(Ya){throw Ya;}return Sa;case "Literal":return null===Q.value||void 0===Q.value?
"null":JSON.stringify(Q.value);case "CallExpression":return V(N,Q);case "UnaryExpression":try{var Wa="lang.unary("+t(N,Q.argument)+",'"+Q.operator+"')"}catch(Ya){throw Ya;}return Wa;case "BinaryExpression":try{var jb="lang.binary("+t(N,Q.left)+","+t(N,Q.right)+",'"+Q.operator+"')"}catch(Ya){throw Ya;}return jb;case "LogicalExpression":try{if("AssignmentExpression"===Q.left.type||"UpdateExpression"===Q.left.type)throw new w.ArcadeCompilationError(N,w.ExecutionErrorCodes.LogicalExpressionOnlyBoolean,
Q);if("AssignmentExpression"===Q.right.type||"UpdateExpression"===Q.right.type)throw new w.ArcadeCompilationError(N,w.ExecutionErrorCodes.LogicalExpressionOnlyBoolean,Q);if("\x26\x26"===Q.operator||"||"===Q.operator)var hb="(lang.logicalCheck("+t(N,Q.left)+") "+Q.operator+" lang.logicalCheck("+t(N,Q.right)+"))";else throw new w.ArcadeCompilationError(null,w.ExecutionErrorCodes.LogicExpressionOrAnd,null);}catch(Ya){throw Ya;}return hb;case "ArrayExpression":try{ia=[];for(pa=0;pa<Q.elements.length;pa++)"Literal"===
Q.elements[pa].type?ia.push(t(N,Q.elements[pa])):ia.push("lang.aCheck("+t(N,Q.elements[pa])+",'ArrayExpression')");var fb="["+ia.join(",")+"]"}catch(Ya){throw Ya;}return fb;case "ObjectExpression":ia="lang.dictionary([";for(pa=0;pa<Q.properties.length;pa++){var Oa=Q.properties[pa];Z(Oa.key.name);var Xa="Identifier"===Oa.key.type?"'"+Oa.key.name+"'":t(N,Oa.key),ib=t(N,Oa.value);0<pa&&(ia+=",");ia+="lang.strCheck("+Xa+",'ObjectExpression'),lang.aCheck("+ib+", 'ObjectExpression')"}return ia+"])";case "Property":throw new w.ArcadeCompilationError(N,
w.ExecutionErrorCodes.NeverReach,Q);case "Array":throw new w.ArcadeCompilationError(N,w.ExecutionErrorCodes.NeverReach,Q);default:throw new w.ArcadeCompilationError(N,w.ExecutionErrorCodes.Unrecognised,Q);}}catch(Ya){throw Ya;}}function A(N,Q){var ia=null,pa="";if("MemberExpression"===Q.argument.type)return ia=t(N,Q.argument.object),!0===Q.argument.computed?pa=t(N,Q.argument.property):(pa="'"+Q.argument.property.name+"'",Z(Q.argument.property.name)),"lang.memberupdate("+ia+","+pa+",'"+Q.operator+
"',"+Q.prefix+")";ia=Q.argument.name.toLowerCase();Z(ia);if(null!==N.localScope){if(void 0!==N.localScope[ia])return"lang.update(lscope, '"+ia+"','"+Q.operator+"',"+Q.prefix+")";if(void 0!==N.localScope._SymbolsMap[ia])return"lang.update(lscope, '"+N.localScope._SymbolsMap[ia]+"','"+Q.operator+"',"+Q.prefix+")"}if(void 0!==N.globalScope[ia])return"lang.update(gscope, '"+ia+"','"+Q.operator+"',"+Q.prefix+")";if(void 0!==N.globalScope._SymbolsMap[ia])return"lang.update(gscope, '"+N.globalScope._SymbolsMap[ia]+
"','"+Q.operator+"',"+Q.prefix+")";if(null!==N.localScope){if(N.undeclaredGlobalsInFunctions.has(ia))return"lang.update(gscope,lang.chkAssig( '"+N.undeclaredGlobalsInFunctions.get(ia).manglename+"',runtimeCtx),'"+Q.operator+"',"+Q.prefix+")";pa={manglename:ea(N),node:Q.argument};N.undeclaredGlobalsInFunctions.set(ia,pa);return"lang.update(gscope, lang.chkAssig('"+pa.manglename+"',runtimeCtx),'"+Q.operator+"',"+Q.prefix+")"}throw new w.ArcadeExecutionError(N,w.ExecutionErrorCodes.InvalidIdentifier,
Q);}function G(N,Q){var ia=t(N,Q.right),pa=null,ra="";if("MemberExpression"===Q.left.type)return pa=t(N,Q.left.object),!0===Q.left.computed?ra=t(N,Q.left.property):(ra="'"+Q.left.property.name+"'",Z(Q.left.property.name)),"lang.assignmember("+pa+","+ra+",'"+Q.operator+"',"+ia+")";pa=Q.left.name.toLowerCase();Z(pa);if(null!==N.localScope){if(void 0!==N.localScope[pa])return"lscope['"+pa+"']\x3dlang.assign("+ia+",'"+Q.operator+"', lscope['"+pa+"'])";if(void 0!==N.localScope._SymbolsMap[pa])return"lscope['"+
N.localScope._SymbolsMap[pa]+"']\x3dlang.assign("+ia+",'"+Q.operator+"', lscope['"+N.localScope._SymbolsMap[pa]+"'])"}if(void 0!==N.globalScope[pa])return"gscope['"+pa+"']\x3dlang.assign("+ia+",'"+Q.operator+"', gscope['"+pa+"'])";if(void 0!==N.globalScope._SymbolsMap[pa])return"gscope['"+N.globalScope._SymbolsMap[pa]+"']\x3dlang.assign("+ia+",'"+Q.operator+"', gscope['"+N.globalScope._SymbolsMap[pa]+"'])";if(null!==N.localScope){if(N.undeclaredGlobalsInFunctions.has(pa))return"gscope[lang.chkAssig('"+
N.undeclaredGlobalsInFunctions.get(pa).manglename+"',runtimeCtx)]\x3dlang.assign("+ia+",'"+Q.operator+"', gscope['"+N.undeclaredGlobalsInFunctions.get(pa).manglename+"'])";ra={manglename:ea(N),node:Q.argument};N.undeclaredGlobalsInFunctions.set(pa,ra);return"gscope[lang.chkAssig('"+ra.manglename+"',runtimeCtx)]\x3dlang.assign("+ia+",'"+Q.operator+"', gscope['"+ra.manglename+"'])"}throw new w.ArcadeExecutionError(N,w.ExecutionErrorCodes.InvalidIdentifier,Q);}function J(N,Q){return"BlockStatement"===
Q.type?t(N,Q):"ReturnStatement"===Q.type||"BreakStatement"===Q.type||"ContinueStatement"===Q.type?t(N,Q)+"; ":"UpdateExpression"===Q.type?"lastStatement \x3d "+t(N,Q)+"; ":"ExpressionStatement"===Q.type?t(N,Q):"ObjectExpression"===Q.type?"lastStatement \x3d "+t(N,Q)+"; ":t(N,Q)+"; "}function U(N,Q){if("AssignmentExpression"===Q.test.type||"UpdateExpression"===Q.test.type)throw new w.ArcadeCompilationError(N,w.ExecutionErrorCodes.BooleanConditionRequired,Q);return"if (lang.mustBoolean("+t(N,Q.test)+
", runtimeCtx) \x3d\x3d\x3d true) {\n    "+J(N,Q.consequent)+"\n  } "+(null!==Q.alternate?"IfStatement"===Q.alternate.type?" else "+U(N,Q.alternate):" else {\n      "+J(N,Q.alternate)+"\n    }\n":" else {\n      lastStatement \x3d lc.voidOperation;\n    }\n")}function ja(N,Q){for(var ia="",pa=0;pa<Q.body.length;pa++)"EmptyStatement"!==Q.body[pa].type&&(ia="ReturnStatement"===Q.body[pa].type?ia+(t(N,Q.body[pa])+"; \n"):"BreakStatement"===Q.body[pa].type?ia+(t(N,Q.body[pa])+"; \n"):"ContinueStatement"===
Q.body[pa].type?ia+(t(N,Q.body[pa])+"; \n"):"UpdateExpression"===Q.body[pa].type?ia+("lastStatement \x3d "+t(N,Q.body[pa])+"; \n"):"ObjectExpression"===Q.body[pa].type?ia+("lastStatement \x3d "+t(N,Q.body[pa])+"; \n"):ia+(t(N,Q.body[pa])+" \n"));return ia}function Z(N){if("iif"===N)throw new w.ArcadeUncompilableError;if("decode"===N)throw new w.ArcadeUncompilableError;if("when"===N)throw new w.ArcadeUncompilableError;}function fa(N,Q){var ia=null===Q.init?null:t(N,Q.init);ia===g.voidOperation&&(ia=
null);Q=Q.id.name.toLowerCase();Z(Q);if(null!==N.localScope){if(void 0!==N.localScope[Q])return"lscope['"+Q+"']\x3d"+ia+"; ";if(void 0!==N.localScope._SymbolsMap[Q])return"lscope['"+N.localScope._SymbolsMap[Q]+"']\x3d"+ia+"; ";var pa=ea(N);N.localScope._SymbolsMap[Q]=pa;N.mangleMap[Q]=pa;return"lscope['"+pa+"']\x3d"+ia+"; "}if(void 0!==N.globalScope[Q])return"gscope['"+Q+"']\x3d"+ia+"; ";if(void 0!==N.globalScope._SymbolsMap[Q])return"gscope['"+N.globalScope._SymbolsMap[Q]+"']\x3d"+ia+"; ";if(N.undeclaredGlobalsInFunctions.has(Q))return pa=
N.undeclaredGlobalsInFunctions.get(Q).manglename,N.globalScope._SymbolsMap[Q]=pa,N.mangleMap[Q]=pa,N.undeclaredGlobalsInFunctions.delete(Q),"gscope[lang.setAssig('"+pa+"', runtimeCtx)]\x3d"+ia+"; ";pa=ea(N);N.globalScope._SymbolsMap[Q]=pa;N.mangleMap[Q]=pa;return"gscope['"+pa+"']\x3d"+ia+"; "}function qa(N,Q){try{var ia=Q.name.toLowerCase();Z(ia);if(null!==N.localScope){if(void 0!==N.localScope[ia])return"lscope['"+ia+"']";if(void 0!==N.localScope._SymbolsMap[ia])return"lscope['"+N.localScope._SymbolsMap[ia]+
"']"}if(void 0!==N.globalScope[ia])return"gscope['"+ia+"']";if(void 0!==N.globalScope._SymbolsMap[ia])return"gscope['"+N.globalScope._SymbolsMap[ia]+"']";if(null!==N.localScope){if(N.undeclaredGlobalsInFunctions.has(ia))return"gscope[lang.chkAssig('"+N.undeclaredGlobalsInFunctions.get(ia).manglename+"',runtimeCtx)]";var pa={manglename:ea(N),node:Q.argument};N.undeclaredGlobalsInFunctions.set(ia,pa);return"gscope[lang.chkAssig('"+pa.manglename+"',runtimeCtx)]"}throw new w.ArcadeCompilationError(N,
w.ExecutionErrorCodes.InvalidIdentifier,Q);}catch(ra){throw ra;}}function V(N,Q){try{if("MemberExpression"===Q.callee.type){var ia=void 0;!0===Q.callee.computed?ia=t(N,Q.callee.property):(ia="'"+Q.callee.property.name+"'",Z(Q.callee.property.name));for(var pa="[",ra=0;ra<Q.arguments.length;ra++)0<ra&&(pa+=", "),pa+=t(N,Q.arguments[ra]);pa+="]";return N.isAsync?"(yield lang.callModuleFunction("+t(N,Q.callee.object)+","+pa+","+ia+",runtimeCtx))":"lang.callModuleFunction("+t(N,Q.callee.object)+","+pa+
","+ia+",runtimeCtx)"}if("Identifier"!==Q.callee.type)throw new w.ArcadeCompilationError(N,w.ExecutionErrorCodes.FuncionNotFound,Q);var M=Q.callee.name.toLowerCase();if("iif"===M){try{if(3!==Q.arguments.length)throw new w.ArcadeCompilationError(N,w.ExecutionErrorCodes.WrongNumberOfParameters,Q);var ca=ba(N);var sa=(N.isAsync?"(yield (function() { \n return lang.__awaiter(this, void 0, void 0, function* () {":"function() {")+"\n        var "+ca+" \x3d "+t(N,Q.arguments[0])+";\n       \n        if ("+
ca+" \x3d\x3d\x3d true) {\n          return  "+t(N,Q.arguments[1])+";\n        }\n        else if ("+ca+" \x3d\x3d\x3d false) {\n          return "+t(N,Q.arguments[2])+";\n        }\n        else {\n          lang.error('ExecutionErrorCodes.BooleanConditionRequired');\n        }\n      "+(N.isAsync?"})}()))":"}()")}catch(La){throw La;}return sa}if("when"===M){try{if(3>Q.arguments.length)throw new w.ArcadeCompilationError(N,w.ExecutionErrorCodes.WrongNumberOfParameters,Q);if(0===Q.arguments.length%
2)throw new w.ArcadeCompilationError(N,w.ExecutionErrorCodes.WrongNumberOfParameters,Q);var xa=ba(N);pa="var ";for(ra=0;ra<Q.arguments.length-1;ra+=2)pa+=xa+" \x3d lang.mustBoolean("+t(N,Q.arguments[ra])+", runtimeCtx);\n      if ("+xa+" \x3d\x3d\x3d true ) {\n        return "+t(N,Q.arguments[ra+1])+" \n      }\n";ia=(N.isAsync?"(yield (function() { \n return lang.__awaiter(this, void 0, void 0, function* () {":"function() {")+"\n        "+pa+"\n        return "+t(N,Q.arguments[Q.arguments.length-
1])+"\n        "+(N.isAsync?"})}()))":"}()")}catch(La){throw La;}return ia}if("decode"===M){try{if(2>Q.arguments.length)throw new w.ArcadeCompilationError(N,w.ExecutionErrorCodes.WrongNumberOfParameters,Q);if(2===Q.arguments.length)var za="("+t(N,Q.arguments[1])+")";else{if(0===(Q.arguments.length-1)%2)throw new w.ArcadeCompilationError(N,w.ExecutionErrorCodes.WrongNumberOfParameters,Q);var Ca=ba(N),Ha=ba(N);pa="var ";for(ra=1;ra<Q.arguments.length-1;ra+=2)pa+=Ha+" \x3d "+t(N,Q.arguments[ra])+";\n      if (lang.binary("+
Ha+", "+Ca+', "\x3d\x3d") \x3d\x3d\x3d true ) {\n        return '+t(N,Q.arguments[ra+1])+" \n      }\n";za=(N.isAsync?"(yield (function() { \n return lang.__awaiter(this, void 0, void 0, function* () {":"function() {")+"\n        var "+Ca+" \x3d "+t(N,Q.arguments[0])+";\n        "+pa+"\n        return "+t(N,Q.arguments[Q.arguments.length-1])+"\n        "+(N.isAsync?"})}()))":"}()")}}catch(La){throw La;}return za}ia="";null!==N.localScope&&(void 0!==N.localScope[M]?ia="lscope['"+M+"']":void 0!==N.localScope._SymbolsMap[M]&&
(ia="lscope['"+N.localScope._SymbolsMap[M]+"']"));if(""===ia)if(void 0!==N.globalScope[M])ia="gscope['"+M+"']";else if(void 0!==N.globalScope._SymbolsMap[M])ia="gscope['"+N.globalScope._SymbolsMap[M]+"']";else if(null!==N.localScope)if(N.undeclaredGlobalsInFunctions.has(M))ia="gscope[lang.chkAssig('"+N.undeclaredGlobalsInFunctions.get(M).manglename+"',runtimeCtx)]";else{var Da={manglename:ea(N),node:Q.argument};N.undeclaredGlobalsInFunctions.set(M,Da);ia="gscope[lang.chkAssig('"+Da.manglename+"',runtimeCtx)]"}if(""!==
ia){pa="[";for(ra=0;ra<Q.arguments.length;ra++)0<ra&&(pa+=", "),pa+=t(N,Q.arguments[ra]);pa+="]";return N.isAsync?"(yield lang.callfunc("+ia+","+pa+",runtimeCtx) )":"lang.callfunc("+ia+","+pa+",runtimeCtx)"}throw new w.ArcadeCompilationError(N,w.ExecutionErrorCodes.FuncionNotFound,Q);}catch(La){throw La;}}function ea(N){N.symbols.symbolCounter++;return"_T"+N.symbols.symbolCounter.toString()}function ba(N){N.symbols.symbolCounter++;return"_Tvar"+N.symbols.symbolCounter.toString()}function ma(N,Q,ia){var pa=
{};N||(N={});ia||(ia={});pa._SymbolsMap={};pa.textformatting=1;pa.infinity=1;pa.pi=1;for(var ra in Q)pa[ra]=1;for(ra in ia)pa[ra]=1;for(ra in N)pa[ra]=1;return pa}function va(N,Q,ia,pa){ia=ia?new ha:new aa;N||(N={});Q||(Q={});var ra=new m({newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"});ra.immutable=!1;ia._SymbolsMap={textformatting:1,infinity:1,pi:1};ia.textformatting=ra;ia.infinity=Number.POSITIVE_INFINITY;ia.pi=Math.PI;for(var M in Q)ia[M]=Q[M],ia._SymbolsMap[M]=
1;for(M in N)ia._SymbolsMap[M]=1,ia[M]=N[M]&&"esri.Graphic"===N[M].declaredClass?f.createFromGraphic(N[M],null!==pa&&void 0!==pa?pa:null):N[M];return ia}function da(N,Q){for(var ia={mode:Q,compiled:!0,functions:{},signatures:[],standardFunction:D,standardFunctionAsync:D,evaluateIdentifier:ka},pa=0;pa<N.length;pa++)N[pa].registerFunctions(ia);if("sync"===Q){for(var ra in ia.functions)X[ra]=new B.NativeFunction(ia.functions[ra]),aa.prototype[ra]=X[ra];for(pa=0;pa<ia.signatures.length;pa++)a.addFunctionDeclaration(ia.signatures[pa],
"sync")}else{for(ra in ia.functions)O[ra]=new B.NativeFunction(ia.functions[ra]),ha.prototype[ra]=O[ra];for(pa=0;pa<ia.signatures.length;pa++)a.addFunctionDeclaration(ia.signatures[pa],"async")}}function ka(N,Q){Q=Q.name;if("_SymbolsMap"===Q)throw new w.ArcadeExecutionError(N,w.ExecutionErrorCodes.InvalidIdentifier,null);if(0<N.localStack.length){if("_t"!==Q.substr(0,2).toLowerCase()&&void 0!==N.localStack[N.localStack.length-1][Q])return N.localStack[N.localStack.length-1][Q];var ia=N.mangleMap[Q];
if(void 0!==ia&&void 0!==N.localStack[N.localStack.length-1][ia])return N.localStack[N.localStack.length-1][ia]}if("_t"!==Q.substr(0,2).toLowerCase()&&void 0!==N.globalScope[Q]||1===N.globalScope._SymbolsMap[Q])return N.globalScope[Q];Q=N.mangleMap[Q];if(void 0!==Q)return N.globalScope[Q]}function I(N){console.log(N)}function S(N,Q,ia){var pa;void 0===ia&&(ia=!1);var ra={isAsync:ia,moduleFactory:Q.moduleFactory,moduleFactoryMap:{},libraryResolver:new x.ArcadeModuleLoader(null,N.loadedModules),globalScope:ma(Q.vars,
ia?O:X,Q.customfunctions),customfunctions:Q.customfunctions,localScope:null,mangleMap:{},undeclaredGlobalsInFunctions:new Map,depthCounter:{depth:1},exports:{},console:I,lrucache:Q.lrucache,timeReference:null!==(pa=Q.timeReference)&&void 0!==pa?pa:null,interceptor:Q.interceptor,services:Q.services,symbols:{symbolCounter:0}};N=t(ra,N);""===N&&(N="lc.voidOperation; ");var M=ra.moduleFactory,ca=ra.moduleFactoryMap,sa=ra.exports,xa={},za;for(za in sa)xa[za]=void 0!==ra.mangleMap[za]?ra.mangleMap[za]:
za;ra={lc:g,lang:ta,mangles:ra.mangleMap,prepareModule:function(Ca){return new Ba(Ca)},prepare:function(Ca,Ha){var Da,La=Ca.spatialReference;if(null===La||void 0===La)La=new C({wkid:102100});var Pa=va(Ca.vars,Ca.customfunctions,Ha,Ca.timeReference);return{localStack:[],isAsync:Ha,exports:sa,exportmangle:xa,gdefs:{},moduleFactory:M,moduleFactoryMap:ca,moduleSingletons:Ca.moduleSingletons,mangleMap:this.mangles,spatialReference:La,globalScope:Pa,abortSignal:void 0===Ca.abortSignal||null===Ca.abortSignal?
{aborted:!1}:Ca.abortSignal,localScope:null,services:Ca.services,console:Ca.console?Ca.console:I,lrucache:Ca.lrucache,timeReference:null!==(Da=Ca.timeReference)&&void 0!==Da?Da:null,interceptor:Ca.interceptor,symbols:{symbolCounter:0},depthCounter:Ca.depthCounter}}};return(new Function("context","spatialReference",ia?"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"+
N+"\n return lastStatement; }); } \n yield mainBody(); \n return this.prepareModule(runtimeCtx); }); ":"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 "+N+"\n return lastStatement; } \n mainBody(); \n return this.prepareModule(runtimeCtx); ")).bind(ra)}Object.defineProperty(u,"__esModule",{value:!0});u.enableAsyncSupport=u.compileScript=u.executeScript=
u.extend=u.functionHelper=u.UserDefinedCompiledFunction=void 0;b=function(N){function Q(ia,pa){var ra=N.call(this)||this;ra.paramCount=pa;ra.fn=ia;return ra}q(Q,N);Q.prototype.createFunction=function(ia){var pa=this;return function(){for(var ra=[],M=0;M<arguments.length;M++)ra[M]=arguments[M];if(ra.length!==pa.paramCount)throw new w.ArcadeExecutionError(ia,w.ExecutionErrorCodes.WrongNumberOfParameters,null);return pa.fn.apply(pa,ra)}};Q.prototype.call=function(ia,pa){return this.fn.apply(this,pa.arguments)};
Q.prototype.marshalledCall=function(ia,pa,ra,M){var ca=this;return M(ia,pa,function(sa,xa,za){za=za.map(function(Ca){return!g.isFunctionParameter(Ca)||Ca instanceof B.ScopeMarshalledFunction?Ca:B.wrapModuleScopedResponse(Ca,ia,M)});sa=ca.call(ra,{arguments:za});return v.isPromiseLike(sa)?sa.then(function(Ca){return B.wrapModuleScopedResponse(Ca,ra,M)}):sa})};return Q}(B.ArcadeFunction);u.UserDefinedCompiledFunction=b;var X={};l.registerFunctions(X,D);r.registerFunctions(X,D);h.registerFunctions(X,
D);k.registerFunctions(X,D);c.registerFunctions(X,D);X.iif=function(N,Q){try{return D(N,Q,function(ia,pa,ra){throw new w.ArcadeExecutionError(N,w.ExecutionErrorCodes.Unrecognised,Q);})}catch(ia){throw ia;}};X.decode=function(N,Q){try{return D(N,Q,function(ia,pa,ra){throw new w.ArcadeExecutionError(N,w.ExecutionErrorCodes.Unrecognised,Q);})}catch(ia){throw ia;}};X.when=function(N,Q){try{return D(N,Q,function(ia,pa,ra){throw new w.ArcadeExecutionError(N,w.ExecutionErrorCodes.Unrecognised,Q);})}catch(ia){throw ia;
}};var O={},P;for(P in X)O[P]=new B.NativeFunction(X[P]);n.registerFunctions(X,D);for(P in X)X[P]=new B.NativeFunction(X[P]);var aa=function(){};aa.prototype=X;var ha=function(){};ha.prototype=O;u.functionHelper={fixSpatialReference:g.fixSpatialReference,parseArguments:function(N,Q){for(var ia=[],pa=0;pa<Q.arguments.length;pa++)ia.push(t(N,Q.arguments[pa]));return ia},standardFunction:D};u.extend=da;da([d],"sync");da([d],"async");u.executeScript=function(N,Q){return N(Q)};var la=0,ta={error:function(N){throw new w.ArcadeExecutionError(null,
N,null);},__awaiter:function(N,Q,ia,pa){return new Promise(function(ra,M){function ca(za){try{xa(pa.next(za))}catch(Ca){M(Ca)}}function sa(za){try{xa(pa["throw"](za))}catch(Ca){M(Ca)}}function xa(za){za.done?ra(za.value):za.value&&za.value.then?za.value.then(ca,sa):(la++,0===la%100?setTimeout(function(){la=0;ca(za.value)},0):ca(za.value))}xa((pa=pa.apply(N,Q||[])).next())})},functionDepthchecker:function(N,Q){return function(){Q.depthCounter.depth++;Q.localStack.push([]);if(64<Q.depthCounter.depth)throw new w.ArcadeExecutionError(null,
w.ExecutionErrorCodes.MaximumCallDepth,null);var ia=N.apply(this,arguments);if(v.isPromiseLike(ia))return ia.then(function(pa){Q.depthCounter.depth--;--Q.localStack.length;return pa});Q.depthCounter.depth--;--Q.localStack.length;return ia}},chkAssig:function(N,Q){if(void 0===Q.gdefs[N])throw new w.ArcadeExecutionError(Q,w.ExecutionErrorCodes.InvalidIdentifier,null);return N},mustBoolean:function(N,Q){if(!0===N||!1===N)return N;throw new w.ArcadeExecutionError(Q,w.ExecutionErrorCodes.BooleanConditionRequired,
null);},setAssig:function(N,Q){Q.gdefs[N]=1;return N},castString:function(N){return g.toString(N)},aCheck:function(N,Q){if(g.isFunctionParameter(N)){if("ArrayExpression"===Q)throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.NoFunctionInArray,null);if("ObjectExpression"===Q)throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.NoFunctionInDictionary,null);throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.NoFunctionInTemplateLiteral,null);}return N===g.voidOperation?null:N},
Dictionary:m,Feature:f,UserDefinedCompiledFunction:b,dictionary:function(N){for(var Q={},ia=new Map,pa=0;pa<N.length;pa+=2){if(g.isFunctionParameter(N[pa+1]))throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.NoFunctionInDictionary,null);if(!1===g.isString(N[pa]))throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.KeyMustBeString,null);var ra=N[pa].toString(),M=ra.toLowerCase();ia.has(M)?ra=ia.get(M):ia.set(M,ra);Q[ra]=N[pa+1]===g.voidOperation?null:N[pa+1]}N=new m(Q);N.immutable=
!1;return N},strCheck:function(N){if(!1===g.isString(N))throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.KeyMustBeString,null);return N},unary:function(N,Q){if(g.isBoolean(N)){if("!"===Q)return!N;if("-"===Q)return-1*g.toNumber(N);if("+"===Q)return 1*g.toNumber(N);if("~"===Q)return~g.toNumber(N);throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.UnsupportedUnaryOperator,null);}if("-"===Q)return-1*g.toNumber(N);if("+"===Q)return 1*g.toNumber(N);if("~"===Q)return~g.toNumber(N);throw new w.ArcadeExecutionError(null,
w.ExecutionErrorCodes.UnsupportedUnaryOperator,null);},logicalCheck:function(N){if(!1===g.isBoolean(N))throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.LogicExpressionOrAnd,null);return N},logical:function(N,Q,ia){if(g.isBoolean(N)&&g.isBoolean(Q))switch(ia){case "||":return N||Q;case "\x26\x26":return N&&Q}throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.LogicExpressionOrAnd,null);},binary:function(N,Q,ia){switch(ia){case "|":case "\x3c\x3c":case "\x3e\x3e":case "\x3e\x3e\x3e":case "^":case "\x26":return g.binaryOperator(g.toNumber(N),
g.toNumber(Q),ia);case "\x3d\x3d":return g.equalityTest(N,Q);case "\x3d":return g.equalityTest(N,Q);case "!\x3d":return!g.equalityTest(N,Q);case "\x3c":return g.greaterThanLessThan(N,Q,ia);case "\x3e":return g.greaterThanLessThan(N,Q,ia);case "\x3c\x3d":return g.greaterThanLessThan(N,Q,ia);case "\x3e\x3d":return g.greaterThanLessThan(N,Q,ia);case "+":return g.isString(N)||g.isString(Q)?g.toString(N)+g.toString(Q):g.toNumber(N)+g.toNumber(Q);case "-":return g.toNumber(N)-g.toNumber(Q);case "*":return g.toNumber(N)*
g.toNumber(Q);case "/":return g.toNumber(N)/g.toNumber(Q);case "%":return g.toNumber(N)%g.toNumber(Q);default:throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.UnsupportedOperator,null);}},assign:function(N,Q,ia){switch(Q){case "\x3d":return N===g.voidOperation?null:N;case "/\x3d":return g.toNumber(ia)/g.toNumber(N);case "*\x3d":return g.toNumber(ia)*g.toNumber(N);case "-\x3d":return g.toNumber(ia)-g.toNumber(N);case "+\x3d":return g.isString(ia)||g.isString(N)?g.toString(ia)+g.toString(N):
g.toNumber(ia)+g.toNumber(N);case "%\x3d":return g.toNumber(ia)%g.toNumber(N);default:throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.UnsupportedOperator,null);}},update:function(N,Q,ia,pa){var ra=g.toNumber(N[Q]);N[Q]="++"===ia?ra+1:ra-1;return!1===pa?ra:"++"===ia?ra+1:ra-1},graphicToFeature:function(N,Q,ia){return null===N?null:f.createFromGraphicLikeObject(N.geometry,N.attributes,Q,ia.timeReference)},memberupdate:function(N,Q,ia,pa){if(g.isArray(N))if(g.isNumber(Q)){0>Q&&(Q=N.length+
Q);if(0>Q||Q>=N.length)throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.OutOfBounds,null);var ra=g.toNumber(N[Q]);N[Q]="++"===ia?ra+1:ra-1}else throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.ArrayAccessorMustBeNumber,null);else if(N instanceof m){if(!1===g.isString(Q))throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.KeyAccessorMustBeString,null);if(!0===N.hasField(Q))ra=g.toNumber(N.field(Q)),N.setField(Q,"++"===ia?ra+1:ra-1);else throw new w.ArcadeExecutionError(null,
w.ExecutionErrorCodes.FieldNotFound,null,{key:Q});}else if(g.isFeature(N)){if(!1===g.isString(Q))throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.KeyAccessorMustBeString,null);if(!0===N.hasField(Q))ra=g.toNumber(N.field(Q)),N.setField(Q,"++"===ia?ra+1:ra-1);else throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.FieldNotFound,null);}else{if(g.isImmutableArray(N))throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.Immutable,null);if(N instanceof Ba){if(!1===g.isString(Q))throw new w.ArcadeExecutionError(null,
w.ExecutionErrorCodes.ModuleAccessorMustBeString,null);if(!0===N.hasGlobal(Q))ra=g.toNumber(N.global(Q)),N.setGlobal(Q,"++"===ia?ra+1:ra-1);else throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.ModuleExportNotFound,null);}else throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.InvalidIdentifier,null);}return!1===pa?ra:"++"===ia?ra+1:ra-1},assignmember:function(N,Q,ia,pa){if(g.isArray(N))if(g.isNumber(Q)){0>Q&&(Q=N.length+Q);if(0>Q||Q>N.length)throw new w.ArcadeExecutionError(null,
w.ExecutionErrorCodes.OutOfBounds,null);if(Q===N.length&&"\x3d"!==ia)throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.OutOfBounds,null);N[Q]=this.assign(pa,ia,N[Q])}else throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.ArrayAccessorMustBeNumber,null);else if(N instanceof m){if(!1===g.isString(Q))throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.KeyAccessorMustBeString,null);if(!0===N.hasField(Q))N.setField(Q,this.assign(pa,ia,N.field(Q)));else{if("\x3d"!==ia)throw new w.ArcadeExecutionError(null,
w.ExecutionErrorCodes.FieldNotFound,null);N.setField(Q,this.assign(pa,ia,null))}}else if(g.isFeature(N)){if(!1===g.isString(Q))throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.KeyAccessorMustBeString,null);if(!0===N.hasField(Q))N.setField(Q,this.assign(pa,ia,N.field(Q)));else{if("\x3d"!==ia)throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.FieldNotFound,null);N.setField(Q,this.assign(pa,ia,null))}}else{if(g.isImmutableArray(N))throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.Immutable,
null);if(N instanceof Ba){if(!1===g.isString(Q))throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.ModuleAccessorMustBeString,null);if(N.hasGlobal(Q))N.setGlobal(Q,this.assign(pa,ia,N.global(Q)));else throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.ModuleExportNotFound,null);}else throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.InvalidIdentifier,null);}},member:function(N,Q){if(null===N)throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.MemberOfNull,null);
if(N instanceof m||g.isFeature(N)){if(g.isString(Q))return N.field(Q);throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.InvalidMemberAccessKey,null);}if(N instanceof z){if(g.isString(Q))return k.geometryMember(N,Q,null,null);throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.InvalidMemberAccessKey,null);}if(g.isArray(N)){if(g.isNumber(Q)&&isFinite(Q)&&Math.floor(Q)===Q){0>Q&&(Q=N.length+Q);if(Q>=N.length||0>Q)throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.OutOfBounds,
null);return N[Q]}throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.InvalidMemberAccessKey,null);}if(g.isString(N)){if(g.isNumber(Q)&&isFinite(Q)&&Math.floor(Q)===Q){0>Q&&(Q=N.length+Q);if(Q>=N.length||0>Q)throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.OutOfBounds,null);return N[Q]}throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.InvalidMemberAccessKey,null);}if(g.isImmutableArray(N)){if(g.isNumber(Q)&&isFinite(Q)&&Math.floor(Q)===Q){0>Q&&(Q=N.length()+Q);if(Q>=N.length()||
0>Q)throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.OutOfBounds,null);return N.get(Q)}throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.InvalidMemberAccessKey,null);}if(N instanceof Ba&&g.isString(Q))return N.global(Q);throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.InvalidMemberAccessKey,null);},callfunc:function(N,Q,ia){return N.call(ia,{arguments:Q,preparsed:!0})},loadModule:function(N,Q){N=Q.moduleFactoryMap[N];if(Q.moduleSingletons[N])return Q.moduleSingletons[N];
var ia=Q.moduleFactory[N]({vars:{},moduleSingletons:Q.moduleSingletons,depthCounter:Q.depthCounter,console:Q.console,abortSignal:Q.abortSignal,isAsync:Q.isAsync,services:Q.services,lrucache:Q.lrucache,timeReference:Q.timeReference?Q.timeReference:null,interceptor:Q.interceptor},Q.spatialReference);return Q.moduleSingletons[N]=ia},callModuleFunction:function(N,Q,ia,pa){if(!(N instanceof Ba))throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.FuncionNotFound,null);N=N.global(ia);if(!1===g.isFunctionParameter(N))throw new w.ArcadeExecutionError(null,
w.ExecutionErrorCodes.CallNonFunction,null);return N.call(pa,{preparsed:!0,arguments:Q})}};u.compileScript=function(N,Q,ia){var pa;void 0===ia&&(ia=!1);null===Q&&(Q={vars:{},customfunctions:{}});var ra=null;N.usesModules&&(ra=new x.ArcadeModuleLoader(null,N.loadedModules));ra={isAsync:ia,globalScope:ma(Q.vars,ia?O:X,Q.customfunctions),moduleFactory:{},moduleFactoryMap:{},undeclaredGlobalsInFunctions:new Map,customfunctions:Q.customfunctions,libraryResolver:ra,localScope:null,mangleMap:{},depthCounter:{depth:1},
exports:{},console:I,lrucache:Q.lrucache,timeReference:null!==(pa=Q.timeReference)&&void 0!==pa?pa:null,interceptor:Q.interceptor,services:Q.services,symbols:{symbolCounter:0}};N=t(ra,N);""===N&&(N="lc.voidOperation; ");0<ra.undeclaredGlobalsInFunctions.size&&ra.undeclaredGlobalsInFunctions.forEach(function(Ca){throw new w.ArcadeCompilationError(Q,w.ExecutionErrorCodes.InvalidIdentifier,Ca.node);});var M=ra.moduleFactory,ca=ra.moduleFactoryMap,sa=ra.exports,xa={};for(za in sa)xa[za]=void 0!==ra.mangleMap[za]?
ra.mangleMap[za]:za;var za={lc:g,lang:ta,mangles:ra.mangleMap,postProcess:function(Ca){Ca instanceof g.ReturnResult&&(Ca=Ca.value);Ca instanceof g.ImplicitResult&&(Ca=Ca.value);Ca===g.voidOperation&&(Ca=null);if(Ca===g.breakResult)throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.IllegalResult,null);if(Ca===g.continueResult)throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.IllegalResult,null);if(g.isFunctionParameter(Ca))throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.IllegalResult,
null);return Ca},prepare:function(Ca,Ha){var Da,La=Ca.spatialReference;if(null===La||void 0===La)La=new C({wkid:102100});var Pa=va(Ca.vars,Ca.customfunctions,Ha,Ca.timeReference);return{localStack:[],isAsync:Ha,moduleFactory:M,moduleFactoryMap:ca,mangleMap:this.mangles,moduleSingletons:{},exports:sa,gdefs:{},exportmangle:xa,spatialReference:La,globalScope:Pa,abortSignal:void 0===Ca.abortSignal||null===Ca.abortSignal?{aborted:!1}:Ca.abortSignal,localScope:null,services:Ca.services,console:Ca.console?
Ca.console:I,lrucache:Ca.lrucache,timeReference:null!==(Da=Ca.timeReference)&&void 0!==Da?Da:null,interceptor:Ca.interceptor,symbols:{symbolCounter:0},depthCounter:{depth:1}}}};return(new Function("context","spatialReference",ia?"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"+
N+"\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 "+N+"\n return lastStatement; } \n return this.postProcess(mainBody()); ")).bind(za)};u.enableAsyncSupport=function(){return new Promise(function(N,Q){F(["./functions/geomasync"],function(ia){da([ia],"async");N(!0)},
function(ia){Q(ia)})})};var Ba=function(N){function Q(ia){var pa=N.call(this,null)||this;pa.moduleContext=ia;return pa}q(Q,N);Q.prototype.hasGlobal=function(ia){void 0===this.moduleContext.exports[ia]&&(ia=ia.toLowerCase());return void 0!==this.moduleContext.exports[ia]?!0:!1};Q.prototype.setGlobal=function(ia,pa){var ra=this.moduleContext.globalScope;ia=ia.toLowerCase();if(g.isFunctionParameter(pa))throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.AssignModuleFunction,null);ra[this.moduleContext.exportmangle[ia]]=
pa};Q.prototype.global=function(ia){var pa=this.moduleContext.globalScope;ia=ia.toLowerCase();var ra=pa[this.moduleContext.exportmangle[ia]];if(void 0===ra)throw new w.ArcadeExecutionError(null,w.ExecutionErrorCodes.InvalidIdentifier,null);if(g.isFunctionParameter(ra)&&!(ra instanceof B.ScopeMarshalledFunction)){var M=new B.ScopeMarshalledFunction;M.fn=ra;M.parameterEvaluator=D;M.context=this.moduleContext;return pa[this.moduleContext.exportmangle[ia]]=M}return ra};return Q}(E.ArcadeModule)})},"esri/arcade/Feature":function(){define("require exports ./polyfill/tsSupport/awaiter ./polyfill/tsSupport/generator ./polyfill/tsSupport/assign ./polyfill/tsSupport/spreadarray ./Dictionary ./ImmutableArray ./languageUtils ../geometry/Geometry ../geometry/Point ../geometry/jsonUtils ./polyfill/maybe ./ArcadeDate ./executionError".split(" "),
function(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n){return function(){function h(){this.arcadeDeclaredClass="esri.arcade.Feature";this._layer=this.attributes=this._geometry=null;this._datesfixed=!0;this.contextTimeReference=this.dateTimeReferenceFieldIndex=null;this.immutable=!0;this._datefields=null;this.immutable=!0}h.createFromGraphic=function(c,r){var v=new h;v.contextTimeReference=null!==r&&void 0!==r?r:null;v._geometry=l.isSome(c.geometry)?c.geometry:null;v.attributes=void 0===c.attributes?{}:null===c.attributes?
{}:c.attributes;c._sourceLayer?(v._layer=c._sourceLayer,v._datesfixed=!1):c._layer?(v._layer=c._layer,v._datesfixed=!1):c.layer&&"fields"in c.layer?(v._layer=c.layer,v._datesfixed=!1):c.sourceLayer&&"fields"in c.sourceLayer&&(v._layer=c.sourceLayer,v._datesfixed=!1);return v};h.createFromArcadeFeature=function(c){var r=new h;r._datesfixed=c._datesfixed;r.attributes=c.attributes;r._geometry=c._geometry;c._layer&&(r._layer=c._layer);r.dateTimeReferenceFieldIndex=c.dateTimeReferenceFieldIndex;r.contextTimeReference=
c.contextTimeReference;return r};h.createFromArcadeDictionary=function(c){var r=new h;r.attributes=c.field("attributes");null!==r.attributes?r.attributes instanceof q?(r.attributes=r.attributes.attributes,null===r.attributes&&(r.attributes={})):r.attributes={}:r.attributes={};r._geometry=c.field("geometry");null!==r._geometry&&(r._geometry instanceof q?r._geometry=h.parseGeometryFromDictionary(r._geometry):r._geometry instanceof g||(r._geometry=null));return r};h.createFromGraphicLikeObject=function(c,
r,v,z){void 0===v&&(v=null);var C=new h;C.contextTimeReference=null!==z&&void 0!==z?z:null;null===r&&(r={});C.attributes=r;C._geometry=c?c:null;C._layer=v;C._layer&&(C._datesfixed=!1);return C};h.prototype.repurposeFromGraphicLikeObject=function(c,r,v){void 0===v&&(v=null);null===r&&(r={});this.attributes=r;this._geometry=c?c:null;this._datesfixed=(this._layer=v)?!1:!0};Object.defineProperty(h.prototype,"layerPreferredTimeZone",{get:function(){var c,r;return null!==(r=null===(c=this.dateTimeReferenceFieldIndex)||
void 0===c?void 0:c.layerPreferredTimeZone)&&void 0!==r?r:""},enumerable:!1,configurable:!0});h.prototype.fieldSourceTimeZone=function(c){var r,v;return null!==(v=null===(r=this.dateTimeReferenceFieldIndex)||void 0===r?void 0:r.fieldTimeZone(c))&&void 0!==v?v:""};h.prototype.castToText=function(c){void 0===c&&(c=!1);var r="";!1===this._datesfixed&&this._fixDates();for(var v in this.attributes){""!==r&&(r+=",");var z=this.attributes[v];null==z?r+=JSON.stringify(v)+":null":f.isBoolean(z)||f.isNumber(z)||
f.isString(z)?r+=JSON.stringify(v)+":"+JSON.stringify(z):z instanceof g?r+=JSON.stringify(v)+":"+f.toStringExplicit(z):z instanceof m?r+=JSON.stringify(v)+":"+f.toStringExplicit(z,null,c):z instanceof Array?r+=JSON.stringify(v)+":"+f.toStringExplicit(z,null,c):z instanceof k.ArcadeDate?r=c?r+(JSON.stringify(v)+":"+JSON.stringify(z.getTime())):r+(JSON.stringify(v)+":"+z.stringify()):null!==z&&"object"===typeof z&&void 0!==z.castToText&&(r+=JSON.stringify(v)+":"+z.castToText(c))}return'{"geometry":'+
(null===this.geometry()?"null":f.toStringExplicit(this.geometry()))+',"attributes":{'+r+"}}"};h.prototype._fixDates=function(){if(null!==this._datefields)0<this._datefields.length&&this._fixDateFields(this._datefields);else{for(var c=[],r=this._layer.fields,v=0;v<r.length;v++){var z=r[v],C=z.type;"date"!==C&&"esriFieldTypeDate"!==C||c.push(z.name)}this._datefields=c;0<c.length&&this._fixDateFields(c)}this._datesfixed=!0};h.prototype.isUnknownDateTimeField=function(c){var r;return"unknown"===(null===
(r=this.dateTimeReferenceFieldIndex)||void 0===r?void 0:r.fieldTimeZone(c))};h.prototype._fixDateFields=function(c){var r,v;this.attributes=e({},this.attributes);var z=null!==(v=null===(r=this.contextTimeReference)||void 0===r?void 0:r.timeZone)&&void 0!==v?v:"system";for(r=0;r<c.length;r++)if(v=this.attributes[c[r]],null!==v)if(void 0===v)for(var C in this.attributes){if(C.toLowerCase()===c[r].toLowerCase()){v=this.attributes[C];if(null!==v){var x=this.isUnknownDateTimeField(C);f.isDate(v)?this.attributes[C]=
v:this.attributes[C]=v instanceof Date?x?k.ArcadeDate.unknownDateJSToArcadeDate(v):k.ArcadeDate.dateJSAndZoneToArcadeDate(v,z):x?k.ArcadeDate.unknownEpochToArcadeDate(v):k.ArcadeDate.epochToArcadeDate(v,z)}break}}else x=this.isUnknownDateTimeField(c[r]),f.isDate(v)?this.attributes[c[r]]=v:this.attributes[c[r]]=v instanceof Date?x?k.ArcadeDate.unknownDateJSToArcadeDate(v):k.ArcadeDate.dateJSAndZoneToArcadeDate(v,z):x?k.ArcadeDate.unknownEpochToArcadeDate(v):k.ArcadeDate.epochToArcadeDate(v,z)};h.prototype.geometry=
function(){if(null===this._geometry)return this._geometry;this._geometry instanceof g||(this._geometry=d.fromJson(this._geometry));return this._geometry};h.prototype.field=function(c){!1===this._datesfixed&&this._fixDates();var r=this.attributes[c];if(void 0!==r)return r;r=c.toLowerCase();for(var v in this.attributes)if(v.toLowerCase()===r)return this.attributes[v];if(this._hasFieldDefinition(r))return null;throw new n.ArcadeExecutionError(null,n.ExecutionErrorCodes.FieldNotFound,null,{key:c});};
h.prototype._hasFieldDefinition=function(c){if(null===this._layer)return!1;for(var r=0;r<this._layer.fields.length;r++)if(this._layer.fields[r].name.toLowerCase()===c)return!0;return!1};h.prototype.setField=function(c,r){if(this.immutable)throw new n.ArcadeExecutionError(null,n.ExecutionErrorCodes.Immutable,null);r instanceof Date&&(r=this.isUnknownDateTimeField(c)?k.ArcadeDate.unknownDateJSToArcadeDate(r):k.ArcadeDate.dateJSToArcadeDate(r));if(!1===f.isSimpleType(r))throw new n.ArcadeExecutionError(null,
n.ExecutionErrorCodes.TypeNotAllowedInFeature,null);var v=c.toLowerCase();if(void 0===this.attributes[c])for(var z in this.attributes)if(z.toLowerCase()===v){this.attributes[z]=r;return}this.attributes[c]=r};h.prototype.hasField=function(c){var r=c.toLowerCase();if(void 0!==this.attributes[c])return!0;for(var v in this.attributes)if(v.toLowerCase()===r)return!0;return this._hasFieldDefinition(r)?!0:!1};h.prototype.keys=function(){var c=[],r={},v;for(v in this.attributes)c.push(v),r[v.toLowerCase()]=
1;if(null!==this._layer)for(v=0;v<this._layer.fields.length;v++){var z=this._layer.fields[v];1!==r[z.name.toLowerCase()]&&c.push(z.name)}return c=c.sort()};h.parseGeometryFromDictionary=function(c){c=h._convertDictionaryToJson(c,!0);void 0!==c.hasm&&(c.hasM=c.hasm,delete c.hasm);void 0!==c.hasz&&(c.hasZ=c.hasz,delete c.hasz);void 0!==c.spatialreference&&(c.spatialReference=c.spatialreference,delete c.spatialreference);void 0!==c.rings&&(c.rings=this._fixPathArrays(c.rings,!0===c.hasZ,!0===c.hasZ));
void 0!==c.paths&&(c.paths=this._fixPathArrays(c.paths,!0===c.hasZ,!0===c.hasM));void 0!==c.points&&(c.points=this._fixPointArrays(c.points,!0===c.hasZ,!0===c.hasM));return d.fromJson(c)};h._fixPathArrays=function(c,r,v){var z=[];if(c instanceof Array)for(var C=0;C<c.length;C++)z.push(this._fixPointArrays(c[C],r,v));else if(c instanceof m)for(C=0;C<c.length();C++)z.push(this._fixPointArrays(c.get(C),r,v));return z};h._fixPointArrays=function(c,r,v){var z=[];if(c instanceof Array)for(var C=0;C<c.length;C++){var x=
c[C];x instanceof a?r&&v?z.push([x.x,x.y,x.z,x.m]):r?z.push([x.x,x.y,x.z]):v?z.push([x.x,x.y,x.m]):z.push([x.x,x.y]):x instanceof m?z.push(x.toArray()):z.push(x)}else if(c instanceof m)for(C=0;C<c.length();C++)x=c.get(C),x instanceof a?r&&v?z.push([x.x,x.y,x.z,x.m]):r?z.push([x.x,x.y,x.z]):v?z.push([x.x,x.y,x.m]):z.push([x.x,x.y]):x instanceof m?z.push(x.toArray()):z.push(x);return z};h._convertDictionaryToJson=function(c,r){void 0===r&&(r=!1);var v={},z;for(z in c.attributes){var C=c.attributes[z];
C instanceof q&&(C=h._convertDictionaryToJson(C));r?v[z.toLowerCase()]=C:v[z]=C}return v};h.parseAttributesFromDictionary=function(c){var r={},v;for(v in c.attributes){var z=c.attributes[v];if(f.isSimpleType(z))r[v]=z;else throw new n.ArcadeExecutionError(null,n.ExecutionErrorCodes.InvalidParameter,null);}return r};h.fromJson=function(c,r){var v=null;null!==c.geometry&&void 0!==c.geometry&&(v=d.fromJson(c.geometry));var z={};if(null!==c.attributes&&void 0!==c.attributes)for(var C in c.attributes){var x=
c.attributes[C];if(null===x)z[C]=x;else if(f.isString(x)||f.isNumber(x)||f.isBoolean(x)||f.isDate(x))z[C]=x;else throw new n.ArcadeExecutionError(null,n.ExecutionErrorCodes.InvalidParameter,null);}return h.createFromGraphicLikeObject(v,z,null,null!==r&&void 0!==r?r:null)};h.prototype.fullSchema=function(){return this._layer};h.prototype.gdbVersion=function(){if(null===this._layer)return"";var c=this._layer.gdbVersion;return void 0===c?"":""===c&&this._layer.capabilities&&this._layer.capabilities.isVersioned?
"SDE.DEFAULT":c};h.prototype.castAsJson=function(c){var r,v,z={attributes:{},geometry:!0===(null===c||void 0===c?void 0:c.keepGeometryType)?this.geometry():null!==(v=null===(r=this.geometry())||void 0===r?void 0:r.toJson())&&void 0!==v?v:null},C;for(C in this.attributes)r=this.attributes[C],void 0!==r&&(z.attributes[C]=f.castAsJson(r,c));return z};h.prototype.castAsJsonAsync=function(c,r){void 0===c&&(c=null);return b(this,void 0,void 0,function(){return p(this,function(v){return[2,this.castAsJson(r)]})})};
return h}()})},"esri/arcade/polyfill/maybe":function(){define(["require","exports"],function(F,u){function b(p,e){if(null==p)throw Error(null!==e&&void 0!==e?e:"value is None");}Object.defineProperty(u,"__esModule",{value:!0});u.unwrapOrThrow=u.assertIsSome=u.isNone=u.isSome=u.none=void 0;u.none=null;u.isSome=function(p){return null!=p};u.isNone=function(p){return null==p};u.assertIsSome=b;u.unwrapOrThrow=function(p,e){b(p,e);return p}})},"esri/arcade/treeAnalysis":function(){define(["require","exports",
"./polyfill/tsSupport/awaiter","./polyfill/tsSupport/generator"],function(F,u,b,p){function e(n){return"string"===typeof n||n instanceof String}function y(n,h){if(n)for(var c=0;c<n.length;c++)q(n[c],h)}function q(n,h){if(n&&!1!==h(n))switch(n.type){case "ImportDeclaration":y(n.specifiers,h);q(n.source,h);break;case "ExportNamedDeclaration":q(n.declaration,h);break;case "ArrayExpression":y(n.elements,h);break;case "AssignmentExpression":case "BinaryExpression":q(n.left,h);q(n.right,h);break;case "BlockStatement":y(n.body,
h);break;case "Program":y(n.body,h);break;case "CallExpression":q(n.callee,h);y(n.arguments,h);break;case "ExpressionStatement":q(n.expression,h);break;case "ForInStatement":q(n.left,h);q(n.right,h);q(n.body,h);break;case "ForStatement":q(n.init,h);q(n.test,h);q(n.update,h);q(n.body,h);break;case "WhileStatement":q(n.test,h);q(n.body,h);break;case "FunctionDeclaration":q(n.id,h);y(n.params,h);q(n.body,h);break;case "IfStatement":q(n.test,h);q(n.consequent,h);q(n.alternate,h);break;case "LogicalExpression":q(n.left,
h);q(n.right,h);break;case "MemberExpression":q(n.object,h);q(n.property,h);break;case "ObjectExpression":y(n.properties,h);break;case "Property":q(n.key,h);q(n.value,h);break;case "ReturnStatement":q(n.argument,h);break;case "UnaryExpression":q(n.argument,h);break;case "UpdateExpression":q(n.argument,h);break;case "VariableDeclaration":y(n.declarations,h);break;case "VariableDeclarator":q(n.id,h);q(n.init,h);break;case "TemplateLiteral":y(n.expressions,h),y(n.quasis,h)}}function m(n,h){var c=!1,
r=h.toLowerCase();q(n,function(v){if(c)return!1;"Identifier"===v.type&&v.name&&v.name.toLowerCase()===r&&(c=!0);return!0});return c}function f(n){var h=[];q(n,function(c){"ImportDeclaration"===c.type&&c.source&&c.source.value&&h.push({libname:c.specifiers[0].local.name.toLowerCase(),source:c.source.value});return!0});return h}function g(n){var h=[];q(n,function(c){"CallExpression"===c.type&&"Identifier"===c.callee.type&&h.push(c.callee.name.toLowerCase());return!0});return h}Object.defineProperty(u,
"__esModule",{value:!0});u.scriptUsesFeatureSet=u.findScriptDependencies=u.findFunctionCalls=u.extractFunctionDeclaration=u.findExpectedFieldLiterals=u.findFieldLiterals=u.referencesFunction=u.findModuleImports=u.referencesMember=u.walk=u.addFunctionDeclaration=u.fullArcadeApiAsync=u.fullArcadeApiSync=void 0;F={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:-1},fromcharcode:{min:1,max:-1},tocodepoint:{min:1,
max:2},tocharcode:{min:1,max:2},concatenate:{min:0,max:-1},expects:{min:1,max:-1},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},timezone:{min:1,max:1},timezoneoffset:{min:1,max:1},changetimezone:{min:2,max:2},isoweek:{min:1,max:1},isoweekday:{min:1,max:1},hasvalue:{min:2,max:2},isomonth:{min:1,max:1},isoyear:{min:1,max:1},resize:{min:2,max:3},slice:{min:0,max:-1},splice:{min:0,max:-1},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},standardizeguid:{min:2,max:2},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:8},datediff:{min:2,max:4},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:-1},when:{min:2,max:-1},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:-1},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:-1},constrain:{min:3,max:3},console:{min:0,max:-1},max:{min:0,max:-1},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:-1},average:{min:0,max:-1},mean:{min:0,max:-1},sum:{min:0,max:-1},variance:{min:0,max:-1},distinct:{min:0,max:-1},first:{min:1,max:1},top:{min:2,max:2},boolean:{min:1,max:1},dictionary:{min:0,max:-1},typeof:{min:1,max:1},reverse:{min:1,max:1},replace:{min:3,max:4},sort:{min:1,max:2},feature:{min:1,max:-1},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},convexhull:{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:0,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},sqltimestamp:{min:1,max:3},schema:{min:1,max:1}};u.fullArcadeApiSync={functionDefinitions:new Map,
constantDefinitions:new Map};u.fullArcadeApiAsync={functionDefinitions:new Map,constantDefinitions:new Map};b=0;for(p=["pi","infinity"];b<p.length;b++){var a=p[b];u.fullArcadeApiAsync.constantDefinitions.set(a,{type:"constant"});u.fullArcadeApiSync.constantDefinitions.set(a,{type:"constant"})}u.fullArcadeApiAsync.constantDefinitions.set("textformatting",{type:"namespace",key:"textformatting",members:[{key:"backwardslash",type:"constant"},{key:"doublequote",type:"constant"},{key:"forwardslash",type:"constant"},
{key:"tab",type:"constant"},{key:"singlequote",type:"constant"},{key:"newline",type:"constant"}]});u.fullArcadeApiSync.constantDefinitions.set("textformatting",{type:"namespace",key:"textformatting",members:[{key:"backwardslash",type:"constant"},{key:"tab",type:"constant"},{key:"singlequote",type:"constant"},{key:"doublequote",type:"constant"},{key:"forwardslash",type:"constant"},{key:"newline",type:"constant"}]});for(var d in F)b=F[d],u.fullArcadeApiAsync.functionDefinitions.set(d,{overloads:[{type:"function",
parametersInfo:{min:b.min,max:b.max}}]}),u.fullArcadeApiSync.functionDefinitions.set(d,{overloads:[{type:"function",parametersInfo:{min:b.min,max:b.max}}]});var l="featureset featuresetbyid featuresetbyname featuresetbyassociation featuresetbyrelationshipname featuresetbyurl getfeatureset getuser attachments featuresetbyportalitem".split(" "),k="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 convexhull simplify multiparttosinglepart".split(" ");
u.addFunctionDeclaration=function(n,h){var c;h="sync"===h?u.fullArcadeApiSync:u.fullArcadeApiAsync;h.functionDefinitions.has(n.name.toLowerCase())?null===(c=h.functionDefinitions.get(n.name.toLowerCase()))||void 0===c?void 0:c.overloads.push({type:"function",parametersInfo:{min:n.min,max:n.max}}):h.functionDefinitions.set(n.name.toLowerCase(),{overloads:[{type:"function",parametersInfo:{min:n.min,max:n.max}}]})};u.walk=q;u.referencesMember=m;u.findModuleImports=f;u.referencesFunction=function(n,h){var c=
!1,r=h.toLowerCase();q(n,function(v){return c?!1:"CallExpression"===v.type&&"Identifier"===v.callee.type&&v.callee.name&&v.callee.name.toLowerCase()===r?(c=!0,!1):!0});return c};u.findFieldLiterals=function(n){var h=[];q(n,function(c){var r;if("MemberExpression"!==c.type||"Identifier"!==c.object.type)return!0;!1===c.computed&&c.object&&c.object.name&&c.property&&"Identifier"===c.property.type&&c.property.name?h.push(c.object.name.toLowerCase()+"."+c.property.name.toLowerCase()):c.object&&c.object.name&&
c.property&&"Literal"===c.property.type&&"string"===typeof c.property.value&&h.push(c.object.name.toLowerCase()+"."+(null===(r=c.property.value)||void 0===r?void 0:r.toString().toLowerCase()));return!1});return h};u.findExpectedFieldLiterals=function(n){var h=[];q(n,function(c){if("CallExpression"===c.type){if("Identifier"===c.callee.type&&"expects"===c.callee.name.toLowerCase()){var r="";for(var v=0;v<(c.arguments||[]).length;v++)0===v?"Identifier"===c.arguments[v].type&&(r=c.arguments[v].name.toLowerCase()):
r&&"Literal"===c.arguments[v].type&&e(c.arguments[v].value)&&h.push(r+"."+c.arguments[v].value.toLowerCase());return!1}if("Identifier"===c.callee.type&&["domainname","domaincode","domain","haskey"].includes(c.callee.name.toLowerCase())&&2<=c.arguments.length)return r="","Identifier"===c.arguments[0].type&&(r=c.arguments[0].name.toLowerCase()),r&&"Literal"===c.arguments[1].type&&e(c.arguments[1].value)&&h.push(r+"."+c.arguments[1].value.toLowerCase()),!1}if("MemberExpression"!==c.type||"Identifier"!==
c.object.type)return!0;!1===c.computed&&c.object&&c.object.name&&c.property&&"Identifier"===c.property.type&&c.property.name?h.push(c.object.name.toLowerCase()+"."+c.property.name.toLowerCase()):c.object&&c.object.name&&c.property&&"Literal"===c.property.type&&"string"===typeof c.property.value&&h.push(c.object.name.toLowerCase()+"."+(null===(r=c.property.value)||void 0===r?void 0:r.toString().toLowerCase()));return!1});return h};u.extractFunctionDeclaration=function(n,h){var c=[];if(void 0!==h.params&&
null!==h.params)for(var r=0;r<h.params.length;r++)c.push("any");return{name:n,return:"any",params:c}};u.findFunctionCalls=g;u.findScriptDependencies=function(n,h){void 0===h&&(h=[]);var c=null;if(void 0===n.usesFeatureSet){null===c&&(c=g(n));n.usesFeatureSet=!1;for(var r=0;r<c.length;r++)l.includes(c[r])&&(n.usesFeatureSet=!0,n.isAsync=!0);if(!1===n.usesFeatureSet&&h&&0<h.length)for(r=0;r<h.length;r++)if(m(n,h[r])){n.usesFeatureSet=!0;n.isAsync=!0;break}}void 0===n.usesModules&&(n.usesModules=!1,
0<f(n).length&&(n.usesModules=!0));if(void 0===n.usesGeometry)for(n.usesGeometry=!1,null===c&&(c=g(n)),r=0;r<c.length;r++)k.includes(c[r])&&(n.usesGeometry=!0)};u.scriptUsesFeatureSet=function(n){n=g(n);for(var h=0;h<n.length;h++)if(l.includes(n[h]))return!0;return!1}})},"esri/arcade/functions/array":function(){define("require exports ../polyfill/tsSupport/awaiter ../polyfill/tsSupport/generator ../polyfill/tsSupport/assign ../polyfill/tsSupport/spreadarray ../executionError ../ImmutableArray ../languageUtils ../polyfill/promiseUtils".split(" "),
function(F,u,b,p,e,y,q,m,f,g){Object.defineProperty(u,"__esModule",{value:!0});u.registerFunctions=void 0;u.registerFunctions=function(a){function d(c,r,v){if(c instanceof m)return c.toArray();if(f.isArray(c))return c;throw new q.ArcadeExecutionError(r,q.ExecutionErrorCodes.InvalidParameter,v);}function l(c,r){var v=c.length,z=Math.floor(v/2);if(0===v)return[];if(1===v)return[c[0]];var C=l(c.slice(0,z),r);c=l(c.slice(z,v),r);for(v=[];0<C.length||0<c.length;)0<C.length&&0<c.length?(z=r(C[0],c[0]),
isNaN(z)&&(z=0),0>=z?(v.push(C[0]),C=C.slice(1)):(v.push(c[0]),c=c.slice(1))):0<C.length?(v.push(C[0]),C=C.slice(1)):0<c.length&&(v.push(c[0]),c=c.slice(1));return v}function k(c,r){return b(this,void 0,void 0,function(){var v,z,C,x;return p(this,function(E){switch(E.label){case 0:return v=c.length,z=Math.floor(v/2),0===v?[2,[]]:1===v?[2,[c[0]]]:[4,k(c.slice(0,z),r)];case 1:return x=[E.sent()],[4,k(c.slice(z,v),r)];case 2:return C=x.concat([E.sent()]),[2,n(C[0],C[1],r,[])]}})})}function n(c,r,v,z){return b(this,
void 0,void 0,function(){var C,x;return p(this,function(E){switch(E.label){case 0:return C=z,0<c.length||0<r.length?0<c.length&&0<r.length?[4,v(c[0],r[0])]:[3,2]:[3,4];case 1:return x=E.sent(),isNaN(x)&&(x=1),0>=x?(C.push(c[0]),c=c.slice(1)):(C.push(r[0]),r=r.slice(1)),[2,n(c,r,v,z)];case 2:if(0<c.length)return C.push(c[0]),c=c.slice(1),[2,n(c,r,v,z)];if(0<r.length)return C.push(r[0]),r=r.slice(1),[2,n(c,r,v,z)];E.label=3;case 3:return[3,5];case 4:return[2,z];case 5:return[2]}})})}function h(c,r,
v,z){f.pcCheck(v,1,2,c,r);var C=v[0];f.isImmutableArray(C)&&(C=C.toArray());if(!1===f.isArray(C))throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);if(1<v.length){if(!1===f.isFunctionParameter(v[1]))throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);var x=C,E=v[1].createFunction(c);return z?k(x,E):x=l(x,function(B,w){return E(B,w)})}c=C;if(0===c.length)return[];v={};for(z=0;z<c.length;z++)r=f.getType(c[z]),""!==r&&(v[r]=!0);if(!0===v.Array||!0===
v.Dictionary||!0===v.Feature||!0===v.Point||!0===v.Polygon||!0===v.Polyline||!0===v.Multipoint||!0===v.Extent||!0===v.Function)return c.slice(0);z=0;r="";for(x in v)z++,r=x;return c=1<z||"String"===r?l(c,function(B,w){if(null===B||void 0===B||B===f.voidOperation)return null===w||void 0===w||w===f.voidOperation?0:1;if(null===w||void 0===w||w===f.voidOperation)return-1;B=f.toString(B);w=f.toString(w);return B<w?-1:B===w?0:1}):"Number"===r?l(c,function(B,w){return B-w}):"Boolean"===r?l(c,function(B,
w){return B===w?0:w?-1:1}):"Date"===r?l(c,function(B,w){return w-B}):c.slice(0)}a.functions.array=function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,1,2,c,r);v=f.toNumber(C[0]);if(isNaN(v)||!1===f.isInteger(v))throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);C=f.defaultUndefined(C[1],null);v=Array(v);v.fill(C);return v})};a.functions.front=function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,1,1,c,r);if(f.isImmutableArray(C[0])){if(0>=
C[0].length())throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.OutOfBounds,r);return C[0].get(0)}if(f.isArray(C[0])){if(0>=C[0].length)throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.OutOfBounds,r);return C[0][0]}throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);})};a.functions.back=function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,1,1,c,r);if(f.isImmutableArray(C[0])){if(0>=C[0].length())throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.OutOfBounds,
r);return C[0].get(C[0].length()-1)}if(f.isArray(C[0])){if(0>=C[0].length)throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.OutOfBounds,r);return C[0][C[0].length-1]}throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);})};a.functions.push=function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,1,2,c,r);if(f.isArray(C[0]))return C[0][C[0].length]=C[1],C[0].length;throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);})};a.functions.pop=
function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,1,1,c,r);if(f.isArray(C[0])){if(0>=C[0].length)throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.OutOfBounds,r);v=C[0][C[0].length-1];--C[0].length;return v}throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);})};a.functions.erase=function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,2,2,c,r);if(f.isArray(C[0])){v=f.toNumber(C[1]);if(isNaN(v)||!1===f.isInteger(v))throw new q.ArcadeExecutionError(c,
q.ExecutionErrorCodes.InvalidParameter,r);C=C[0];if(0>=C.length)throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.OutOfBounds,r);0>v&&(v=C.length+v);if(0>v)throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.OutOfBounds,r);if(v>=C.length)throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.OutOfBounds,r);C.splice(v,1);return f.voidOperation}throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);})};a.functions.insert=function(c,r){return a.standardFunction(c,
r,function(v,z,C){f.pcCheck(C,3,3,c,r);if(f.isArray(C[0])){v=f.toNumber(C[1]);if(isNaN(v)||!1===f.isInteger(v))throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);z=C[2];C=C[0];if(v>C.length)throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.OutOfBounds,r);if(0>v&&v<-1*C.length)throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.OutOfBounds,r);if(v===C.length)return C[v]=z,f.voidOperation;C.splice(v,0,z);return f.voidOperation}throw new q.ArcadeExecutionError(c,
q.ExecutionErrorCodes.InvalidParameter,r);})};a.functions.resize=function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,2,3,c,r);if(f.isArray(C[0])){z=f.toNumber(C[1]);if(isNaN(z)||!1===f.isInteger(z))throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);if(0>z)throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);v=f.defaultUndefined(C[2],null);C=C[0];if(C.length>=z)return C.length=z,f.voidOperation;var x=C.length;C.length=z;for(z=x;z<
C.length;z++)C[z]=v;return f.voidOperation}throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);})};a.functions.includes=function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,2,2,c,r);if(f.isArray(C[0])){var x=C[1];v=C[0];return-1<v.findIndex(function(B){return f.equalityTest(B,x)})?!0:!1}if(f.isImmutableArray(C[0])){var E=C[1];v=C[0].toArray();return-1<v.findIndex(function(B){return f.equalityTest(B,E)})?!0:!1}throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,
r);})};a.functions.slice=function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,1,3,c,r);if(f.isArray(C[0])){v=f.toNumber(f.defaultUndefined(C[1],0));z=f.toNumber(f.defaultUndefined(C[2],C[0].length));if(isNaN(v)||!1===f.isInteger(v))throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);if(isNaN(z)||!1===f.isInteger(z))throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);var x=C[0];return x.slice(v,z)}if(f.isImmutableArray(C[0])){x=C[0];
v=f.toNumber(f.defaultUndefined(C[1],0));z=f.toNumber(f.defaultUndefined(C[2],x.length()));if(isNaN(v)||!1===f.isInteger(v))throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);if(isNaN(z)||!1===f.isInteger(z))throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);return x.toArray().slice(v,z)}throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,r);})};a.functions.splice=function(c,r){return a.standardFunction(c,r,function(v,z,C){v=
[];for(z=0;z<C.length;z++)f.isArray(C[z])?v.push.apply(v,C[z]):f.isImmutableArray(C[z])?v.push.apply(v,C[z].toArray()):v.push(C[z]);return v})};a.functions.top=function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,2,2,c,r);if(f.isArray(C[0]))return f.toNumber(C[1])>=C[0].length?C[0].slice(0):C[0].slice(0,f.toNumber(C[1]));if(f.isImmutableArray(C[0]))return f.toNumber(C[1])>=C[0].length()?C[0].slice(0):C[0].slice(0,f.toNumber(C[1]));throw new q.ArcadeExecutionError(c,q.ExecutionErrorCodes.InvalidParameter,
r);})};a.functions.first=function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,1,1,c,r);return f.isArray(C[0])?0===C[0].length?null:C[0][0]:f.isImmutableArray(C[0])?0===C[0].length()?null:C[0].get(0):null})};"sync"===a.mode&&(a.functions.sort=function(c,r){return a.standardFunction(c,r,function(v,z,C){return h(c,r,C,!1)})},a.functions.any=function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,2,2,c,r);v=C[1].createFunction(c);z=0;for(C=d(C[0],c,r);z<C.length;z++){var x=
v(C[z]);if(f.isBoolean(x)&&!0===x)return!0}return!1})},a.functions.all=function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,2,2,c,r);v=C[1].createFunction(c);z=0;for(C=d(C[0],c,r);z<C.length;z++)if(!0!==v(C[z]))return!1;return!0})},a.functions.none=function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,2,2,c,r);v=C[1].createFunction(c);z=0;for(C=d(C[0],c,r);z<C.length;z++)if(!0===v(C[z]))return!1;return!0})},a.functions.reduce=function(c,r){return a.standardFunction(c,
r,function(v,z,C){f.pcCheck(C,2,3,c,r);var x=C[1].createFunction(c);v=d(C[0],c,r);return 2===C.length?0===v.length?null:v.reduce(function(E,B){E=x(E,B);return E=void 0!==E&&E!==f.voidOperation?E:null}):v.reduce(function(E,B){E=x(E,B);return E=void 0!==E&&E!==f.voidOperation?E:null},C[2])})},a.functions.map=function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,2,2,c,r);v=C[1].createFunction(c);z=[];var x=0;for(C=d(C[0],c,r);x<C.length;x++){var E=v(C[x]);void 0!==E&&E!==f.voidOperation?
z.push(E):z.push(null)}return z})},a.functions.filter=function(c,r){return a.standardFunction(c,r,function(v,z,C){f.pcCheck(C,2,2,c,r);v=C[1].createFunction(c);z=[];var x=0;for(C=d(C[0],c,r);x<C.length;x++){var E=C[x];!0===v(E)&&z.push(E)}return z})});"async"===a.mode&&(a.functions.sort=function(c,r){return a.standardFunctionAsync(c,r,function(v,z,C){return h(c,r,C,!0)})},a.functions.any=function(c,r){var v=this;return a.standardFunctionAsync(c,r,function(z,C,x){return b(v,void 0,void 0,function(){var E,
B,w,D,t,A,G;return p(this,function(J){switch(J.label){case 0:f.pcCheck(x,2,2,c,r),E=x[1].createFunction(c),B=d(x[0],c,r),w=0,D=B,J.label=1;case 1:if(!(w<D.length))return[3,7];t=D[w];return[4,E(t)];case 2:return A=J.sent(),G=null,g.isPromiseLike(G)?[4,A]:[3,4];case 3:return G=J.sent(),[3,5];case 4:G=A,J.label=5;case 5:if(f.isBoolean(G)&&!0===G)return[2,!0];J.label=6;case 6:return w++,[3,1];case 7:return[2,!1]}})})})},a.functions.all=function(c,r){var v=this;return a.standardFunctionAsync(c,r,function(z,
C,x){return b(v,void 0,void 0,function(){var E,B,w,D,t,A,G;return p(this,function(J){switch(J.label){case 0:f.pcCheck(x,2,2,c,r),E=x[1].createFunction(c),B=d(x[0],c,r),w=0,D=B,J.label=1;case 1:if(!(w<D.length))return[3,7];t=D[w];return[4,E(t)];case 2:return A=J.sent(),G=null,g.isPromiseLike(G)?[4,A]:[3,4];case 3:return G=J.sent(),[3,5];case 4:G=A,J.label=5;case 5:if(!0!==G)return[2,!1];J.label=6;case 6:return w++,[3,1];case 7:return[2,!0]}})})})},a.functions.none=function(c,r){var v=this;return a.standardFunctionAsync(c,
r,function(z,C,x){return b(v,void 0,void 0,function(){var E,B,w,D,t,A,G;return p(this,function(J){switch(J.label){case 0:f.pcCheck(x,2,2,c,r),E=x[1].createFunction(c),B=d(x[0],c,r),w=0,D=B,J.label=1;case 1:if(!(w<D.length))return[3,7];t=D[w];return[4,E(t)];case 2:return A=J.sent(),G=null,g.isPromiseLike(G)?[4,A]:[3,4];case 3:return G=J.sent(),[3,5];case 4:G=A,J.label=5;case 5:if(!0===G)return[2,!1];J.label=6;case 6:return w++,[3,1];case 7:return[2,!0]}})})})},a.functions.filter=function(c,r){var v=
this;return a.standardFunctionAsync(c,r,function(z,C,x){return b(v,void 0,void 0,function(){var E,B,w,D,t,A,G,J;return p(this,function(U){switch(U.label){case 0:f.pcCheck(x,2,2,c,r),E=x[1].createFunction(c),B=d(x[0],c,r),w=[],D=0,t=B,U.label=1;case 1:if(!(D<t.length))return[3,7];A=t[D];return[4,E(A)];case 2:return G=U.sent(),J=null,g.isPromiseLike(J)?[4,G]:[3,4];case 3:return J=U.sent(),[3,5];case 4:J=G,U.label=5;case 5:!0===J&&w.push(A),U.label=6;case 6:return D++,[3,1];case 7:return[2,w]}})})})},
a.functions.reduce=function(c,r){var v=this;return a.standardFunctionAsync(c,r,function(z,C,x){f.pcCheck(x,2,3,c,r);var E=x[1].createFunction(c);z=d(x[0],c,r);C=null;if(2<x.length)x=f.defaultUndefined(x[2],null),C=z.reduce(function(B,w){return b(v,void 0,void 0,function(){var D;return p(this,function(t){switch(t.label){case 0:return[4,B];case 1:D=t.sent();if(void 0===D||D===f.voidOperation)D=null;return[2,E(D,w)]}})})},Promise.resolve(x));else{if(0===z.length)return null;C=z.reduce(function(B,w,D){return b(v,
void 0,void 0,function(){var t;return p(this,function(A){switch(A.label){case 0:return 1>=D?[2,E(B,w)]:[4,B];case 1:t=A.sent();if(void 0===t||t===f.voidOperation)t=null;return[2,E(t,w)]}})})})}return C.then(function(B){return void 0!==B&&B!==f.voidOperation?B:null})})},a.functions.map=function(c,r){var v=this;return a.standardFunctionAsync(c,r,function(z,C,x){return b(v,void 0,void 0,function(){var E,B,w,D,t,A,G,J;return p(this,function(U){switch(U.label){case 0:f.pcCheck(x,2,2,c,r),E=x[1].createFunction(c),
B=d(x[0],c,r),w=[],D=0,t=B,U.label=1;case 1:if(!(D<t.length))return[3,7];A=t[D];return[4,E(A)];case 2:return G=U.sent(),J=null,g.isPromiseLike(J)?[4,G]:[3,4];case 3:return J=U.sent(),[3,5];case 4:J=G,U.label=5;case 5:void 0!==J&&J!==f.voidOperation?w.push(J):w.push(null),U.label=6;case 6:return D++,[3,1];case 7:return[2,w]}})})})})}})},"esri/arcade/functions/date":function(){define("require exports ../ArcadeDate ../languageUtils ../executionError ../../libs/luxon/luxon dojo/_base/kernel".split(" "),
function(F,u,b,p,e,y,q){function m(d){return null===d?d:!1===d.isValid?null:d}function f(d,l){return""===d||"default"===d.toLowerCase().trim()?p.defaultTimeZone(l):d}Object.defineProperty(u,"__esModule",{value:!0});u.registerFunctions=void 0;var g=[0,31,59,90,120,151,181,212,243,273,304,334],a=[0,31,60,91,121,152,182,213,244,274,305,335];u.registerFunctions=function(d,l){d.today=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,0,0,k,n);h=new Date;h.setHours(0,0,0,0);return b.ArcadeDate.dateJSAndZoneToArcadeDate(h,
p.defaultTimeZone(k))})};d.changetimezone=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,2,2,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));if(null===h)return null;r=b.ArcadeDate.arcadeDateAndZoneToArcadeDate(h,f(p.toString(r[1]),k));return!1===r.isValid?null:r})};d.timezone=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,2,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));if(null===h)return null;h=h.timeZone;return"system"===h?b.ArcadeDate.systemTimeZoneCanonicalName:h})};d.timezoneoffset=
function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,1,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));return null===h?null:h.timeZoneOffset})};d.now=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,0,0,k,n);h=b.ArcadeDate.nowToArcadeDate(p.defaultTimeZone(k));return!1===h.isValid?null:h})};d.timestamp=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,0,0,k,n);h=b.ArcadeDate.nowUTCToArcadeDate();return!1===h.isValid?null:h})};d.toutc=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,
1,1,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));return null===h?null:h.toUTC()})};d.tolocal=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,1,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));return null===h?null:h.toLocal()})};d.day=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,1,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));return null===h?NaN:h.day})};d.month=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,1,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));return null===h?NaN:h.monthJS})};
d.year=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,1,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));return null===h?NaN:h.year})};d.hour=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,1,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));return null===h?NaN:h.hour})};d.second=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,1,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));return null===h?NaN:h.second})};d.millisecond=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,1,k,n);h=
p.toDate(r[0],p.defaultTimeZone(k));return null===h?NaN:h.millisecond})};d.minute=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,1,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));return null===h?NaN:h.minute})};d.week=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,2,k,n);c=p.toDate(r[0],p.defaultTimeZone(k));if(null===c)return NaN;r=p.toNumber(p.defaultUndefined(r[1],0));if(0>r||6<r)throw new e.ArcadeExecutionError(k,e.ExecutionErrorCodes.InvalidParameter,n);h=c.dayOfWeekJS;var v=c.year;
c=c.day+(0!==v%4||0===v%100&&0!==v%400?g:a)[c.monthJS]-1;v=Math.floor(c/7);return h-r+(0>h-r?7:0)<c-7*v?v+1:v})};d.weekday=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,1,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));return null===h?NaN:h.dayOfWeekJS})};d.isoweekday=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,1,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));return null===h?NaN:h.dayOfWeekISO})};d.isomonth=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,1,k,n);h=p.toDate(r[0],
p.defaultTimeZone(k));return null===h?NaN:h.monthISO})};d.isoweek=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,1,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));return null===h?NaN:h.weekISO})};d.isoyear=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,1,1,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));return null===h?NaN:h.yearISO})};d.date=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,0,8,k,n);if(3===r.length)return m(b.ArcadeDate.fromParts(p.toNumber(r[0]),p.toNumber(r[1])+1,
p.toNumber(r[2]),0,0,0,0,p.defaultTimeZone(k)));if(4===r.length)return m(b.ArcadeDate.fromParts(p.toNumber(r[0]),p.toNumber(r[1])+1,p.toNumber(r[2]),p.toNumber(r[3]),0,0,0,p.defaultTimeZone(k)));if(5===r.length)return m(b.ArcadeDate.fromParts(p.toNumber(r[0]),p.toNumber(r[1])+1,p.toNumber(r[2]),p.toNumber(r[3]),p.toNumber(r[4]),0,0,p.defaultTimeZone(k)));if(6===r.length)return m(b.ArcadeDate.fromParts(p.toNumber(r[0]),p.toNumber(r[1])+1,p.toNumber(r[2]),p.toNumber(r[3]),p.toNumber(r[4]),p.toNumber(r[5]),
0,p.defaultTimeZone(k)));if(7===r.length)return m(b.ArcadeDate.fromParts(p.toNumber(r[0]),p.toNumber(r[1])+1,p.toNumber(r[2]),p.toNumber(r[3]),p.toNumber(r[4]),p.toNumber(r[5]),p.toNumber(r[6]),p.defaultTimeZone(k)));if(8===r.length)return m(b.ArcadeDate.fromParts(p.toNumber(r[0]),p.toNumber(r[1])+1,p.toNumber(r[2]),p.toNumber(r[3]),p.toNumber(r[4]),p.toNumber(r[5]),p.toNumber(r[6]),f(p.toString(r[7]),k)));if(2===r.length){h=p.toString(r[1]);if(""===h)return null;h=p.standardiseDateFormat(h);c=void 0;
c="X"===h?y.DateTime.fromSeconds(p.toNumber(r[0])):"x"===h?y.DateTime.fromMillis(p.toNumber(r[0])):y.DateTime.fromFormat(p.toString(r[0]),h,{locale:q.locale,numberingSystem:"latn"});return c.isValid?b.ArcadeDate.dateTimeToArcadeDate(c):null}if(1===r.length){if(p.isString(r[0])){if(""===r[0].replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))return null;if(!0===/^[0-9][0-9][0-9][0-9]$/.test(r[0]))return p.toDate(r[0]+"-01-01",p.defaultTimeZone(k))}h=p.toNumber(r[0]);return!1===isNaN(h)?(c=y.DateTime.fromMillis(h),
c.isValid?b.ArcadeDate.dateTimeAndZoneToArcadeDate(c,p.defaultTimeZone(k)):null):p.toDate(r[0],p.defaultTimeZone(k))}return 0===r.length?b.ArcadeDate.nowToArcadeDate(p.defaultTimeZone(k)):null})};d.datediff=function(k,n){return l(k,n,function(h,c,r){p.pcCheck(r,2,4,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));c=p.toDate(r[1],p.defaultTimeZone(k));if(null===h||null===c)return NaN;var v=p.defaultUndefined(r[3],"");""!==v&&null!==v?(v=p.toString(v),h=b.ArcadeDate.arcadeDateAndZoneToArcadeDate(h,v),c=b.ArcadeDate.arcadeDateAndZoneToArcadeDate(c,
v)):h.timeZone!==c.timeZone&&(h.isUnknownTimeZone?h=b.ArcadeDate.arcadeDateAndZoneToArcadeDate(h,c.timeZone):c=b.ArcadeDate.arcadeDateAndZoneToArcadeDate(c,h.timeZone));switch(p.toString(r[2]).toLowerCase()){case "days":case "day":case "d":return h.diff(c,"days");case "months":case "month":return h.diff(c,"months");case "minutes":case "minute":case "m":return"M"===r[2]?h.diff(c,"months"):h.diff(c,"minutes");case "seconds":case "second":case "s":return h.diff(c,"seconds");case "milliseconds":case "millisecond":case "ms":return h.diff(c);
case "hours":case "hour":case "h":return h.diff(c,"hours");case "years":case "year":case "y":return h.diff(c,"years");default:return h.diff(c)}})};d.dateadd=function(k,n){return l(k,n,function(h,c,r){var v;p.pcCheck(r,2,3,k,n);h=p.toDate(r[0],p.defaultTimeZone(k));if(null===h)return null;c=p.toNumber(r[1]);if(isNaN(c))return h;var z="milliseconds";switch(p.toString(r[2]).toLowerCase()){case "days":case "day":case "d":z="days";c=p.absRound(c);break;case "months":case "month":z="months";c=p.absRound(c);
break;case "minutes":case "minute":case "m":z="M"===r[2]?"months":"minutes";break;case "seconds":case "second":case "s":z="seconds";break;case "milliseconds":case "millisecond":case "ms":z="milliseconds";break;case "hours":case "hour":case "h":z="hours";break;case "years":case "year":case "y":z="years"}return h.plus((v={},v[z]=c,v))})}}})},"esri/arcade/functions/geometry":function(){define("require exports ../polyfill/tsSupport/assign ../polyfill/tsSupport/spreadarray ../Dictionary ../Feature ../ImmutablePointArray ../languageUtils ../../geometry/Extent ../../geometry/Geometry ../../geometry/Multipoint ../../geometry/Point ../../geometry/Polygon ../../geometry/Polyline ./centroid ../../geometry/jsonUtils ../executionError ../ImmutablePathArray".split(" "),
function(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r){function v(x){return x&&"esri.arcade.Feature"===x.arcadeDeclaredClass}function z(x,E,B,w,D){void 0===D&&(D=1);E=E.toLowerCase();switch(E){case "hasz":return x=x.hasZ,void 0===x?!1:x;case "hasm":return x=x.hasM,void 0===x?!1:x;case "spatialreference":return E=x.spatialReference._arcadeCacheId,void 0===E&&(B=!0,Object.freeze&&Object.isFrozen(x.spatialReference)&&(B=!1),B&&(C++,E=x.spatialReference._arcadeCacheId=C)),x=new e({wkt:x.spatialReference.wkt,wkid:x.spatialReference.wkid}),
void 0!==E&&(x._arcadeCacheId="SPREF"+E.toString()),x}switch(x.type){case "extent":switch(E){case "xmin":case "xmax":case "ymin":case "ymax":case "zmin":case "zmax":case "mmin":case "mmax":return x=x[E],void 0!==x?x:null;case "type":return"Extent"}break;case "polygon":switch(E){case "rings":return E=x.getCacheValue("_arcadeCacheId"),void 0===E&&(C++,E=C,x.setCacheValue("_arcadeCacheId",E)),x=new r(x.rings,x.spatialReference,!0===x.hasZ,!0===x.hasM,E);case "type":return"Polygon"}break;case "point":switch(E){case "x":case "y":case "z":case "m":return void 0!==
x[E]?x[E]:null;case "type":return"Point"}break;case "polyline":switch(E){case "paths":return E=x.getCacheValue("_arcadeCacheId"),void 0===E&&(C++,E=C,x.setCacheValue("_arcadeCacheId",E)),x=new r(x.paths,x.spatialReference,!0===x.hasZ,!0===x.hasM,E);case "type":return"Polyline"}break;case "multipoint":switch(E){case "points":return E=x.getCacheValue("_arcadeCacheId"),void 0===E&&(C++,E=C,x.setCacheValue("_arcadeCacheId",E)),x=new q(x.points,x.spatialReference,!0===x.hasZ,!0===x.hasM,E,1);case "type":return"Multipoint"}}if(1===
D)throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidIdentifier,w);return 2===D?{keystate:"notfound"}:null}Object.defineProperty(u,"__esModule",{value:!0});u.geometryMember=u.registerFunctions=void 0;u.registerFunctions=function(x,E){x.ringisclockwise=function(B,w){return E(B,w,function(D,t,A){m.pcCheck(A,1,1,B,w);D=[];if(null===A[0])return!1;if(m.isArray(A[0])){var G=0;for(A=A[0];G<A.length;G++)if(t=A[G],t instanceof d)D.push([t.x,t.y]);else throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,
w);}else if(A[0]instanceof q)D=A[0]._elements;else if(m.isImmutableArray(A[0])){G=0;for(var J=A[0].toArray();G<J.length;G++)if(t=J[G],t instanceof d)D.push([t.x,t.y]);else throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);0<D.length&&(A[0].get(0),A[0].get(0))}else throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);return 3>D.length?!1:(new l({rings:[],spatialReference:{wkid:4326}})).isClockwise(D)})};x.polygon=function(B,w){return E(B,w,function(D,
t,A){m.pcCheck(A,1,1,B,w);D=null;if(A[0]instanceof e){if(D=m.fixSpatialReference(y.parseGeometryFromDictionary(A[0]),B.spatialReference),!1===D instanceof l)throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);}else D=A[0]instanceof l?h.fromJson(A[0].toJson()):m.fixSpatialReference(new l(JSON.parse(A[0])),B.spatialReference);if(null!==D&&!1===D.spatialReference.equals(B.spatialReference))throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.WrongSpatialReference,w);return m.fixNullGeometry(D)})};
x.polyline=function(B,w){return E(B,w,function(D,t,A){m.pcCheck(A,1,1,B,w);D=null;if(A[0]instanceof e){if(D=m.fixSpatialReference(y.parseGeometryFromDictionary(A[0]),B.spatialReference),!1===D instanceof k)throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);}else D=A[0]instanceof k?h.fromJson(A[0].toJson()):m.fixSpatialReference(new k(JSON.parse(A[0])),B.spatialReference);if(null!==D&&!1===D.spatialReference.equals(B.spatialReference))throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.WrongSpatialReference,
w);return m.fixNullGeometry(D)})};x.point=function(B,w){return E(B,w,function(D,t,A){m.pcCheck(A,1,1,B,w);D=null;if(A[0]instanceof e){if(D=m.fixSpatialReference(y.parseGeometryFromDictionary(A[0]),B.spatialReference),!1===D instanceof d)throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);}else D=A[0]instanceof d?h.fromJson(A[0].toJson()):m.fixSpatialReference(new d(JSON.parse(A[0])),B.spatialReference);if(null!==D&&!1===D.spatialReference.equals(B.spatialReference))throw new c.ArcadeExecutionError(B,
c.ExecutionErrorCodes.WrongSpatialReference,w);return m.fixNullGeometry(D)})};x.multipoint=function(B,w){return E(B,w,function(D,t,A){m.pcCheck(A,1,1,B,w);D=null;if(A[0]instanceof e){if(D=m.fixSpatialReference(y.parseGeometryFromDictionary(A[0]),B.spatialReference),!1===D instanceof a)throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);}else D=A[0]instanceof a?h.fromJson(A[0].toJson()):m.fixSpatialReference(new a(JSON.parse(A[0])),B.spatialReference);if(null!==D&&!1===D.spatialReference.equals(B.spatialReference))throw new c.ArcadeExecutionError(B,
c.ExecutionErrorCodes.WrongSpatialReference,w);return m.fixNullGeometry(D)})};x.extent=function(B,w){return E(B,w,function(D,t,A){A=m.autoCastFeatureToGeometry(A);m.pcCheck(A,1,1,B,w);D=null;A[0]instanceof e?D=m.fixSpatialReference(y.parseGeometryFromDictionary(A[0]),B.spatialReference):A[0]instanceof d?(D={xmin:A[0].x,ymin:A[0].y,xmax:A[0].x,ymax:A[0].y,spatialReference:A[0].spatialReference.toJson()},A=A[0],A.hasZ?(D.zmin=A.z,D.zmax=A.z):A.hasM&&(D.mmin=A.m,D.mmax=A.m),D=h.fromJson(D)):D=A[0]instanceof
l?h.fromJson(A[0].getExtent().toJson()):A[0]instanceof k?h.fromJson(A[0].getExtent().toJson()):A[0]instanceof a?h.fromJson(A[0].getExtent().toJson()):A[0]instanceof f?h.fromJson(A[0].toJson()):m.fixSpatialReference(new f(JSON.parse(A[0])),B.spatialReference);if(null!==D&&!1===D.spatialReference.equals(B.spatialReference))throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.WrongSpatialReference,w);return m.fixNullGeometry(D)})};x.geometry=function(B,w){return E(B,w,function(D,t,A){m.pcCheck(A,
1,1,B,w);D=null;if(null===A[0])return null;D=v(A[0])?m.fixSpatialReference(A[0].geometry(),B.spatialReference):A[0]instanceof e?m.fixSpatialReference(y.parseGeometryFromDictionary(A[0]),B.spatialReference):m.fixSpatialReference(h.fromJson(JSON.parse(A[0])),B.spatialReference);if(null!==D&&!1===D.spatialReference.equals(B.spatialReference))throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.WrongSpatialReference,w);return m.fixNullGeometry(D)})};x.setgeometry=function(B,w){return E(B,w,function(D,
t,A){m.pcCheck(A,2,2,B,w);if(v(A[0])){if(!0===A[0].immutable)throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.Immutable,w);if(A[1]instanceof g||null===A[1])A[0]._geometry=A[1];else throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);}else throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);return m.voidOperation})};x.feature=function(B,w){return E(B,w,function(D,t,A){if(0===A.length)throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.WrongNumberOfParameters,
w);D=null;if(1===A.length)if(m.isString(A[0]))D=y.fromJson(JSON.parse(A[0]),B.timeReference);else if(v(A[0]))D=y.createFromArcadeFeature(A[0]);else if(A[0]instanceof g)D=y.createFromGraphicLikeObject(A[0],null,null,B.timeReference);else if(A[0]instanceof e)D=A[0].hasField("geometry")?A[0].field("geometry"):null,t=A[0].hasField("attributes")?A[0].field("attributes"):null,null!==D&&D instanceof e&&(D=y.parseGeometryFromDictionary(D)),null!==t&&(t=y.parseAttributesFromDictionary(t)),D=y.createFromGraphicLikeObject(D,
t,null,B.timeReference);else throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);else{if(2===A.length){t=D=null;if(null!==A[0])if(A[0]instanceof g)D=A[0];else if(D instanceof e)D=y.parseGeometryFromDictionary(A[0]);else throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);if(null!==A[1])if(A[1]instanceof e)t=y.parseAttributesFromDictionary(A[1]);else throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);}else{D=null;t={};if(null!==
A[0])if(A[0]instanceof g)D=A[0];else if(D instanceof e)D=y.parseGeometryFromDictionary(A[0]);else throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);for(var G=1;G<A.length;G+=2){var J=m.toString(A[G]),U=A[G+1];if(null===U||void 0===U||m.isString(U)||isNaN(U)||m.isDate(U)||m.isNumber(U)||m.isBoolean(U)){if(m.isFunctionParameter(U)||!1===m.isSimpleType(U))throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);t[J]=U===m.voidOperation?null:U}else throw new c.ArcadeExecutionError(B,
c.ExecutionErrorCodes.InvalidParameter,w);}}D=y.createFromGraphicLikeObject(D,t,null,B.timeReference)}D._geometry=m.fixSpatialReference(D.geometry(),B.spatialReference);D.immutable=!1;return D})};x.dictionary=function(B,w){return E(B,w,function(D,t,A){if(0===A.length)return A=new e,A.immutable=!1,A;if(1===A.length&&m.isString(A[0]))try{var G=JSON.parse(A[0]),J=e.convertObjectToArcadeDictionary(G,m.defaultTimeZone(B),!1);J.immutable=!1;return J}catch(U){throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,
w);}if(0!==A.length%2)throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.WrongNumberOfParameters,w);D={};for(t=0;t<A.length;t+=2)if(G=m.toString(A[t]),J=A[t+1],null===J||void 0===J||m.isString(J)||isNaN(J)||m.isDate(J)||m.isNumber(J)||m.isBoolean(J)||m.isArray(J)||m.isImmutableArray(J)){if(m.isFunctionParameter(J))throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);D[G]=J===m.voidOperation?null:J}else throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,
w);A=new e(D);A.immutable=!1;return A})};x.haskey=function(B,w){return E(B,w,function(D,t,A){m.pcCheck(A,2,2,B,w);D=m.toString(A[1]);if(v(A[0])||A[0]instanceof e)return A[0].hasField(D);if(A[0]instanceof g)return(A=z(A[0],D,null,null,2))&&"notfound"===A.keystate?!1:!0;throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);})};x.hasvalue=function(B,w){return E(B,w,function(D,t,A){m.pcCheck(A,2,2,B,w);if(null===A[0]||null===A[1])return!1;D=m.toString(A[1]);return m.isFeature(A[0])||
A[0]instanceof e?A[0].hasField(D)&&null!==A[0].field(D)?!0:!1:A[0]instanceof g?null===z(A[0],D,null,null,0)?!1:!0:!1})};x.indexof=function(B,w){return E(B,w,function(D,t,A){m.pcCheck(A,2,2,B,w);D=A[1];if(m.isArray(A[0])){for(t=0;t<A[0].length;t++)if(m.equalityTest(D,A[0][t]))return t;return-1}if(m.isImmutableArray(A[0])){var G=A[0].length();for(t=0;t<G;t++)if(m.equalityTest(D,A[0].get(t)))return t;return-1}throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);})};x.angle=function(B,
w){return E(B,w,function(D,t,A){A=m.autoCastFeatureToGeometry(A);m.pcCheck(A,2,3,B,w);if(!(A[0]instanceof d))throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);if(!(A[1]instanceof d))throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);if(2<A.length&&!(A[2]instanceof d))throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);return 2===A.length?n.angle2D(A[0],A[1]):n.angleBetween2D(A[0],A[1],A[2])})};x.bearing=function(B,w){return E(B,
w,function(D,t,A){A=m.autoCastFeatureToGeometry(A);m.pcCheck(A,2,3,B,w);if(!(A[0]instanceof d))throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);if(!(A[1]instanceof d))throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);if(2<A.length&&!(A[2]instanceof d))throw new c.ArcadeExecutionError(B,c.ExecutionErrorCodes.InvalidParameter,w);return 2===A.length?n.bearing2D(A[0],A[1]):n.bearingBetween2D(A[0],A[1],A[2])})};x.isselfintersecting=function(B,w){return E(B,
w,function(D,t,A){A=m.autoCastFeatureToGeometry(A);m.pcCheck(A,1,1,B,w);D=A[0];if(D instanceof l)return D.isSelfIntersecting(D);if(D instanceof k)return D=D.paths,n.pathsSelfIntersecting(D);if(D instanceof a)for(t=D.points,A=0;A<t.length;A++)for(var G=0;G<t.length;G++)if(G!==A){for(var J=!0,U=0;U<t[A].length;U++)if(t[A][U]!==t[G][U]){J=!1;break}if(!0===J)return!0}return m.isArray(D)||m.isImmutableArray(D)?(D=m.autoCastArrayOfPointsToPolyline(D,B.spatialReference),null!==D&&(D=D.paths),n.pathsSelfIntersecting(D)):
!1})}};var C=0;u.geometryMember=z})},"esri/arcade/functions/centroid":function(){define(["require","exports","../../geometry/Point"],function(F,u,b){function p(a,d,l){var k={x:0,y:0};d&&(k.z=0);l&&(k.m=0);for(var n=0,h=a[0],c=0;c<a.length;c++){var r=a[c];a:if(r.length!==h.length)var v=!1;else{for(v=0;v<r.length;v++)if(r[v]!==h[v]){v=!1;break a}v=!0}if(!1===v){v=e(h,r,d);var z=r,C=d,x=l,E={x:(h[0]+z[0])/2,y:(h[1]+z[1])/2};C&&(E.z=(h[2]+z[2])/2);C&&x?E.m=(h[3]+z[3])/2:x&&(E.m=(h[2]+z[2])/2);h=E;h.x*=
v;h.y*=v;k.x+=h.x;k.y+=h.y;d&&(h.z*=v,k.z+=h.z);l&&(h.m*=v,k.m+=h.m);n+=v;h=r}}0<n?(k.x/=n,k.y/=n,d&&(k.z/=n),l&&(k.m/=n)):(k.x=a[0][0],k.y=a[0][1],d&&(k.z=a[0][2]),l&&d?k.m=a[0][3]:l&&(k.m=a[0][2]));return k}function e(a,d,l){var k=d[0]-a[0];a=d[1]-a[1];return l?(d=d[2]-d[2],Math.sqrt(k*k+a*a+d*d)):Math.sqrt(k*k+a*a)}function y(a,d,l){for(void 0===l&&(l=0);a<l;)a+=d;for(l+=d;a>=l;)a-=d;return a}function q(a,d){return Math.atan2(d.y-a.y,d.x-a.x)}function m(a,d,l){var k=a.x-d.x;a=a.y-d.y;var n=l.x-
d.x;d=l.y-d.y;return Math.atan2(k*d-n*a,k*n+a*d)}function f(a,d,l,k,n){var h=a[0];a=a[1];var c=d[0];d=d[1];var r=l[0],v=l[1];l=k[0]-r;r=h-r;var z=c-h;k=k[1]-v;v=a-v;var C=d-a,x=k*z-l*C;if(0===x)return!1;l=(l*v-k*r)/x;r=(z*v-C*r)/x;return 0<=l&&1>=l&&0<=r&&1>=r?(n&&(n[0]=h+l*(c-h),n[1]=a+l*(d-a)),!0):!1}Object.defineProperty(u,"__esModule",{value:!0});u.pathsSelfIntersecting=u.bearingBetween2D=u.angleBetween2D=u.angleBetweenRad=u.bearing2D=u.angle2D=u.angleRad=u.centroidMultiPoint=u.centroidPolyline=
void 0;u.centroidPolyline=function(a){for(var d={x:0,y:0,spatialReference:a.spatialReference.toJson()},l={x:0,y:0,spatialReference:a.spatialReference.toJson()},k=0,n=0,h=0;h<a.paths.length;h++)if(0!==a.paths[h].length){var c=a.paths[h];var r=!0===a.hasZ;if(1>=c.length)c=0;else{for(var v=0,z=1;z<c.length;z++)v+=e(c[z-1],c[z],r);c=v}0===c?(r=p(a.paths[h],!0===a.hasZ,!0===a.hasM),d.x+=r.x,d.y+=r.y,!0===a.hasZ&&(d.z+=r.z),!0===a.hasM&&(d.m+=r.m),++k):(r=p(a.paths[h],!0===a.hasZ,!0===a.hasM),l.x+=r.x*
c,l.y+=r.y*c,!0===a.hasZ&&(l.z+=r.z*c),!0===a.hasM&&(l.m+=r.m*c),n+=c)}return 0<n?(l.x/=n,l.y/=n,!0===a.hasZ&&(l.z/=n),!0===a.hasM&&(l.m/=n),new b(l)):0<k?(d.x/=k,d.y/=k,!0===a.hasZ&&(l.z/=k),!0===a.hasM&&(d.m/=k),new b(d)):null};u.centroidMultiPoint=function(a){if(0===a.points.length)return null;for(var d=0,l=0,k=0,n=0,h=0;h<a.points.length;h++){var c=a.getPoint(h);!0===c.hasZ&&(k+=c.z);!0===c.hasM&&(n+=c.m);d+=c.x;l+=c.y;n+=c.m}d={x:d/a.points.length,y:l/a.points.length,spatialReference:null};d.spatialReference=
a.spatialReference.toJson();!0===a.hasZ&&(d.z=k/a.points.length);!0===a.hasM&&(d.m=n/a.points.length);return new b(d)};u.angleRad=q;u.angle2D=function(a,d){return y(q(a,d),2*Math.PI)*(180/Math.PI)};u.bearing2D=function(a,d){return y(Math.PI/2-q(a,d),2*Math.PI)*(180/Math.PI)};u.angleBetweenRad=m;u.angleBetween2D=function(a,d,l){return y(m(a,d,l),2*Math.PI)*(180/Math.PI)};u.bearingBetween2D=function(a,d,l){return y(-1*m(a,d,l),2*Math.PI)*(180/Math.PI)};var g=[0,0];u.pathsSelfIntersecting=function(a){for(var d=
0;d<a.length;d++){for(var l=a[d],k=0;k<l.length-1;k++)for(var n=l[k],h=l[k+1],c=d+1;c<a.length;c++)for(var r=0;r<a[c].length-1;r++){var v=a[c][r],z=a[c][r+1],C=f(n,h,v,z,g);if(C&&!(g[0]===n[0]&&g[1]===n[1]||g[0]===v[0]&&g[1]===v[1]||g[0]===h[0]&&g[1]===h[1]||g[0]===z[0]&&g[1]===z[1]))return!0}r=l.length;if(!(3>r))for(k=0;k<=r-2;k++)for(n=l[k],h=l[k+1],c=k+2;c<=r-2;c++)if(v=l[c],z=l[c+1],(C=f(n,h,v,z,g))&&!(g[0]===n[0]&&g[1]===n[1]||g[0]===v[0]&&g[1]===v[1]||g[0]===h[0]&&g[1]===h[1]||g[0]===z[0]&&
g[1]===z[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 ../executionError".split(" "),function(F,u,b,p,e,y,q,m,f,g,a,d,l,k){function n(c){return 0===b.version.indexOf("4.")?a.fromExtent(c):new a({spatialReference:c.spatialReference,rings:[[[c.xmin,
c.ymin],[c.xmin,c.ymax],[c.xmax,c.ymax],[c.xmax,c.ymin],[c.xmin,c.ymin]]]})}Object.defineProperty(u,"__esModule",{value:!0});u.registerFunctions=u.setGeometryEngine=void 0;var h=null;u.setGeometryEngine=function(c){h=c};u.registerFunctions=function(c,r){function v(z,C,x){e.pcCheck(x,2,2,z,C);if(!(x[0]instanceof m&&x[1]instanceof m||x[0]instanceof m&&null===x[1]||x[1]instanceof m&&null===x[0]||null===x[0]&&null===x[1]))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);}c.disjoint=
function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);v(z,C,B);return null===B[0]||null===B[1]?!0:h.disjoint(B[0],B[1])})};c.intersects=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);v(z,C,B);return null===B[0]||null===B[1]?!1:h.intersects(B[0],B[1])})};c.touches=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);v(z,C,B);return null===B[0]||null===B[1]?!1:h.touches(B[0],B[1])})};c.crosses=function(z,C){return r(z,C,function(x,
E,B){B=e.autoCastFeatureToGeometry(B);v(z,C,B);return null===B[0]||null===B[1]?!1:h.crosses(B[0],B[1])})};c.within=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);v(z,C,B);return null===B[0]||null===B[1]?!1:h.within(B[0],B[1])})};c.contains=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);v(z,C,B);return null===B[0]||null===B[1]?!1:h.contains(B[0],B[1])})};c.overlaps=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);
v(z,C,B);return null===B[0]||null===B[1]?!1:h.overlaps(B[0],B[1])})};c.equals=function(z,C){return r(z,C,function(x,E,B){e.pcCheck(B,2,2,z,C);return B[0]===B[1]?!0:B[0]instanceof m&&B[1]instanceof m?h.equals(B[0],B[1]):e.isDate(B[0])&&e.isDate(B[1])?B[0].equals(B[1]):!1})};c.relate=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,3,3,z,C);if(B[0]instanceof m&&B[1]instanceof m)return h.relate(B[0],B[1],e.toString(B[2]));if(B[0]instanceof m&&null===B[1]||B[1]instanceof
m&&null===B[0]||null===B[0]&&null===B[1])return!1;throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);})};c.intersection=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);v(z,C,B);return null===B[0]||null===B[1]?null:h.intersect(B[0],B[1])})};c.union=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);x=[];if(0===B.length)throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.WrongNumberOfParameters,C);if(1===B.length)if(e.isArray(B[0]))for(B=
e.autoCastFeatureToGeometry(B[0]),E=0;E<B.length;E++){if(null!==B[E]){if(!(B[E]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);x.push(B[E])}}else if(e.isImmutableArray(B[0]))for(B=e.autoCastFeatureToGeometry(B[0].toArray()),E=0;E<B.length;E++){if(null!==B[E]){if(!(B[E]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);x.push(B[E])}}else{if(B[0]instanceof m)return e.fixSpatialReference(p.cloneGeometry(B[0]),z.spatialReference);
if(null===B[0])return null;throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);}else for(E=0;E<B.length;E++)if(null!==B[E]){if(!(B[E]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);x.push(B[E])}return 0===x.length?null:h.union(x)})};c.difference=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);v(z,C,B);return null!==B[0]&&null===B[1]?p.cloneGeometry(B[0]):null===B[0]?null:h.difference(B[0],B[1])})};c.symmetricdifference=
function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);v(z,C,B);return null===B[0]&&null===B[1]?null:null===B[0]?p.cloneGeometry(B[1]):null===B[1]?p.cloneGeometry(B[0]):h.symmetricDifference(B[0],B[1])})};c.clip=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,2,2,z,C);if(!(B[1]instanceof q)&&null!==B[1])throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);if(null===B[0])return null;if(!(B[0]instanceof m))throw new k.ArcadeExecutionError(z,
k.ExecutionErrorCodes.InvalidParameter,C);return null===B[1]?null:h.clip(B[0],B[1])})};c.cut=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,2,2,z,C);if(!(B[1]instanceof d)&&null!==B[1])throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);if(null===B[0])return[];if(!(B[0]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);return null===B[1]?[p.cloneGeometry(B[0])]:h.cut(B[0],B[1])})};c.area=function(z,
C){return r(z,C,function(x,E,B){e.pcCheck(B,1,2,z,C);B=e.autoCastFeatureToGeometry(B);if(null===B[0])return 0;if(e.isArray(B[0])||e.isImmutableArray(B[0]))return x=e.autoCastArrayOfPointsToPolygon(B[0],z.spatialReference),null===x?0:h.planarArea(x,p.convertSquareUnitsToCode(e.defaultUndefined(B[1],-1)));if(!(B[0]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);return h.planarArea(B[0],p.convertSquareUnitsToCode(e.defaultUndefined(B[1],-1)))})};c.areageodetic=
function(z,C){return r(z,C,function(x,E,B){e.pcCheck(B,1,2,z,C);B=e.autoCastFeatureToGeometry(B);if(null===B[0])return 0;if(e.isArray(B[0])||e.isImmutableArray(B[0]))return x=e.autoCastArrayOfPointsToPolygon(B[0],z.spatialReference),null===x?0:h.geodesicArea(x,p.convertSquareUnitsToCode(e.defaultUndefined(B[1],-1)));if(!(B[0]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);return h.geodesicArea(B[0],p.convertSquareUnitsToCode(e.defaultUndefined(B[1],-1)))})};
c.length=function(z,C){return r(z,C,function(x,E,B){e.pcCheck(B,1,2,z,C);B=e.autoCastFeatureToGeometry(B);if(null===B[0])return 0;if(e.isArray(B[0])||e.isImmutableArray(B[0]))return x=e.autoCastArrayOfPointsToPolyline(B[0],z.spatialReference),null===x?0:h.planarLength(x,p.convertLinearUnitsToCode(e.defaultUndefined(B[1],-1)));if(!(B[0]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);return h.planarLength(B[0],p.convertLinearUnitsToCode(e.defaultUndefined(B[1],
-1)))})};c.length3d=function(z,C){return r(z,C,function(x,E,B){e.pcCheck(B,1,2,z,C);B=e.autoCastFeatureToGeometry(B);if(null===B[0])return 0;if(e.isArray(B[0])||e.isImmutableArray(B[0]))return x=e.autoCastArrayOfPointsToPolyline(B[0],z.spatialReference),null===x?0:h.planarLength(x,p.convertLinearUnitsToCode(e.defaultUndefined(B[1],-1)));if(!(B[0]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);return h.planarLength(B[0],p.convertLinearUnitsToCode(e.defaultUndefined(B[1],
-1)))})};c.lengthgeodetic=function(z,C){return r(z,C,function(x,E,B){e.pcCheck(B,1,2,z,C);B=e.autoCastFeatureToGeometry(B);if(null===B[0])return 0;if(e.isArray(B[0])||e.isImmutableArray(B[0]))return x=e.autoCastArrayOfPointsToPolyline(B[0],z.spatialReference),null===x?0:h.geodesicLength(x,p.convertLinearUnitsToCode(e.defaultUndefined(B[1],-1)));if(!(B[0]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);return h.geodesicLength(B[0],p.convertLinearUnitsToCode(e.defaultUndefined(B[1],
-1)))})};c.distance=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,2,3,z,C);x=B[0];if(e.isArray(B[0])||e.isImmutableArray(B[0]))x=e.autoCastArrayOfPointsToMultiPoint(B[0],z.spatialReference);E=B[1];if(e.isArray(B[1])||e.isImmutableArray(B[1]))E=e.autoCastArrayOfPointsToMultiPoint(B[1],z.spatialReference);if(!(x instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);if(!(E instanceof m))throw new k.ArcadeExecutionError(z,
k.ExecutionErrorCodes.InvalidParameter,C);return h.distance(x,E,p.convertLinearUnitsToCode(e.defaultUndefined(B[2],-1)))})};c.distancegeodetic=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,2,3,z,C);x=B[0];E=B[1];if(!(x instanceof g))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);if(!(E instanceof g))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);var w=new d({paths:[],spatialReference:x.spatialReference});
w.addPath([x,E]);return h.geodesicLength(w,p.convertLinearUnitsToCode(e.defaultUndefined(B[2],-1)))})};c.densify=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,2,3,z,C);if(null===B[0])return null;if(!(B[0]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);x=e.toNumber(B[1]);if(isNaN(x))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);if(0>=x)throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,
C);return B[0]instanceof a||B[0]instanceof d?h.densify(B[0],x,p.convertLinearUnitsToCode(e.defaultUndefined(B[2],-1))):B[0]instanceof q?h.densify(n(B[0]),x,p.convertLinearUnitsToCode(e.defaultUndefined(B[2],-1))):B[0]})};c.densifygeodetic=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,2,3,z,C);if(null===B[0])return null;if(!(B[0]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);x=e.toNumber(B[1]);if(isNaN(x))throw new k.ArcadeExecutionError(z,
k.ExecutionErrorCodes.InvalidParameter,C);if(0>=x)throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);return B[0]instanceof a||B[0]instanceof d?h.geodesicDensify(B[0],x,p.convertLinearUnitsToCode(e.defaultUndefined(B[2],-1))):B[0]instanceof q?h.geodesicDensify(n(B[0]),x,p.convertLinearUnitsToCode(e.defaultUndefined(B[2],-1))):B[0]})};c.generalize=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,2,4,z,C);if(null===B[0])return null;if(!(B[0]instanceof
m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);x=e.toNumber(B[1]);if(isNaN(x))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);return h.generalize(B[0],x,e.toBoolean(e.defaultUndefined(B[2],!0)),p.convertLinearUnitsToCode(e.defaultUndefined(B[3],-1)))})};c.buffer=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,2,3,z,C);if(null===B[0])return null;if(!(B[0]instanceof m))throw new k.ArcadeExecutionError(z,
k.ExecutionErrorCodes.InvalidParameter,C);x=e.toNumber(B[1]);if(isNaN(x))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);return 0===x?p.cloneGeometry(B[0]):h.buffer(B[0],x,p.convertLinearUnitsToCode(e.defaultUndefined(B[2],-1)))})};c.buffergeodetic=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,2,3,z,C);if(null===B[0])return null;if(!(B[0]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);
x=e.toNumber(B[1]);if(isNaN(x))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);return 0===x?p.cloneGeometry(B[0]):h.geodesicBuffer(B[0],x,p.convertLinearUnitsToCode(e.defaultUndefined(B[2],-1)))})};c.offset=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,2,6,z,C);if(null===B[0])return null;if(!(B[0]instanceof a||B[0]instanceof d))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);x=e.toNumber(B[1]);if(isNaN(x))throw new k.ArcadeExecutionError(z,
k.ExecutionErrorCodes.InvalidParameter,C);E=e.toNumber(e.defaultUndefined(B[4],10));if(isNaN(E))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);var w=e.toNumber(e.defaultUndefined(B[5],0));if(isNaN(w))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);return h.offset(B[0],x,p.convertLinearUnitsToCode(e.defaultUndefined(B[2],-1)),e.toString(e.defaultUndefined(B[3],"round")).toLowerCase(),E,w)})};c.rotate=function(z,C){return r(z,C,function(x,E,
B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,2,3,z,C);x=B[0];if(null===x)return null;if(!(x instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);x instanceof q&&(x=a.fromExtent(x));E=e.toNumber(B[1]);if(isNaN(E))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);B=e.defaultUndefined(B[2],null);if(null===B)return h.rotate(x,E);if(B instanceof g)return h.rotate(x,E,B);throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,
C);})};c.centroid=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,1,1,z,C);if(null===B[0])return null;x=B[0];if(e.isArray(B[0])||e.isImmutableArray(B[0]))x=e.autoCastArrayOfPointsToMultiPoint(B[0],z.spatialReference);if(null===x)return null;if(!(x instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);return x instanceof g?e.fixSpatialReference(p.cloneGeometry(B[0]),z.spatialReference):x instanceof a?x.getCentroid():x instanceof
d?y.centroidPolyline(x):x instanceof f?y.centroidMultiPoint(x):x instanceof q?x.getCenter():null})};c.multiparttosinglepart=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,1,1,z,C);E=[];if(null===B[0])return null;if(!(B[0]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);if(B[0]instanceof g||B[0]instanceof q)return[e.fixSpatialReference(p.cloneGeometry(B[0]),z.spatialReference)];x=h.simplify(B[0]);if(x instanceof a){E=
[];var w=[];for(B=0;B<x.rings.length;B++)if(x.isClockwise(x.rings[B])){var D=l.fromJson({rings:[x.rings[B]],hasZ:!0===x.hasZ,hasM:!0===x.hasM,spatialReference:x.spatialReference.toJson()});E.push(D)}else w.push({ring:x.rings[B],pt:x.getPoint(B,0)});for(x=0;x<w.length;x++)for(B=0;B<E.length;B++)if(E[B].contains(w[x].pt)){E[B].addRing(w[x].ring);break}return E}if(x instanceof d){E=[];for(B=0;B<x.paths.length;B++)w=l.fromJson({paths:[x.paths[B]],hasZ:!0===x.hasZ,hasM:!0===x.hasM,spatialReference:x.spatialReference.toJson()}),
E.push(w);return E}if(B[0]instanceof f){x=e.fixSpatialReference(p.cloneGeometry(B[0]),z.spatialReference);for(B=0;B<x.points.length;B++)E.push(x.getPoint(B));return E}return null})};c.issimple=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,1,1,z,C);if(null===B[0])return!0;if(!(B[0]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);return h.isSimple(B[0])})};c.simplify=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);
e.pcCheck(B,1,1,z,C);if(null===B[0])return null;if(!(B[0]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);return h.simplify(B[0])})};c.convexhull=function(z,C){return r(z,C,function(x,E,B){B=e.autoCastFeatureToGeometry(B);e.pcCheck(B,1,1,z,C);if(null===B[0])return null;if(!(B[0]instanceof m))throw new k.ArcadeExecutionError(z,k.ExecutionErrorCodes.InvalidParameter,C);return h.convexHull(B[0])})}}})},"esri/arcade/kernel":function(){define(["require","exports",
"../geometry/Extent","../geometry/jsonUtils"],function(F,u,b,p){Object.defineProperty(u,"__esModule",{value:!0});u.cloneGeometry=u.sameGeomType=u.convertLinearUnitsToCode=u.shapeExtent=u.convertSquareUnitsToCode=void 0;u.convertSquareUnitsToCode=function(e){if(null==e)return null;if("number"===typeof e)return e;e=e.toLowerCase();e=e.replace(/\s/g,"");e=e.replace(/-/g,"");switch(e){case "meters":case "meter":case "m":case "squaremeters":case "squaremeter":return 109404;case "miles":case "mile":case "squaremile":case "squaremiles":return 109439;
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 "nmi":case "nauticalmile":case "nauticalmiles":case "squarenauticalmile":case "squarenauticalmiles":return 109409}return null};
u.shapeExtent=function(e){if(null==e)return null;switch(e.type){case "polygon":case "multipoint":case "polyline":return e.extent;case "point":return new b({xmin:e.x,ymin:e.y,xmax:e.x,ymax:e.y,spatialReference:e.spatialReference});case "extent":return e}return null};u.convertLinearUnitsToCode=function(e){if(null==e)return null;if("number"===typeof e)return e;e=e.toLowerCase();e=e.replace(/\s/g,"");e=e.replace(/-/g,"");switch(e){case "meters":case "meter":case "m":case "squaremeters":case "squaremeter":return 9001;
case "miles":case "mile":case "squaremile":case "squaremiles":return 9093;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 "nmi":case "nauticalmile":case "nauticalmiles":case "squarenauticalmile":case "squarenauticalmiles":return 9030}return null};u.sameGeomType=function(e,y){return e===
y||"point"===e&&"esriGeometryPoint"===y||"polyline"===e&&"esriGeometryPolyline"===y||"polygon"===e&&"esriGeometryPolygon"===y||"extent"===e&&"esriGeometryEnvelope"===y||"multipoint"===e&&"esriGeometryMultipoint"===y||"point"===y&&"esriGeometryPoint"===e||"polyline"===y&&"esriGeometryPolyline"===e||"polygon"===y&&"esriGeometryPolygon"===e||"extent"===y&&"esriGeometryEnvelope"===e||"multipoint"===y&&"esriGeometryMultipoint"===e?!0:!1};u.cloneGeometry=function(e){if(null==e)return null;var y=p.fromJson(e.toJson());
e.getCacheValue("_geVersion")&&y.setCacheValue("_geVersion",e.getCacheValue("_geVersion"));return y}})},"esri/arcade/functions/maths":function(){define("require exports ../polyfill/tsSupport/assign ../polyfill/tsSupport/spreadarray ../languageUtils dojo/number".split(" "),function(F,u,b,p,e,y){function q(m,f,g){if("undefined"===typeof g||0===+g)return Math[m](f);f=+f;g=+g;if(isNaN(f)||"number"!==typeof g||0!==g%1)return NaN;f=f.toString().split("e");f=Math[m](+(f[0]+"e"+(f[1]?+f[1]-g:-g)));f=f.toString().split("e");
return+(f[0]+"e"+(f[1]?+f[1]+g:g))}Object.defineProperty(u,"__esModule",{value:!0});u.registerFunctions=void 0;u.registerFunctions=function(m,f){function g(a,d,l){a=e.toNumber(a);return isNaN(a)?a:isNaN(d)||isNaN(l)||d>l?NaN:a<d?d:a>l?l:a}m.number=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,2,a,d);l=n[0];return e.isNumber(l)?l:null===l?0:e.isDate(l)?l.toNumber():e.isBoolean(l)?Number(l):e.isArray(l)?NaN:""===l||void 0===l?Number(l):e.isString(l)?void 0!==n[1]?(n=e.multiReplace(n[1],"\u2030",
""),n=e.multiReplace(n,"\u00a4",""),y.parse(l,{pattern:n})):Number(l.trim()):Number(l)})};m.abs=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,1,a,d);return Math.abs(e.toNumber(n[0]))})};m.acos=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,1,a,d);return Math.acos(e.toNumber(n[0]))})};m.asin=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,1,a,d);return Math.asin(e.toNumber(n[0]))})};m.atan=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,1,a,d);return Math.atan(e.toNumber(n[0]))})};
m.atan2=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,2,2,a,d);return Math.atan2(e.toNumber(n[0]),e.toNumber(n[1]))})};m.ceil=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,2,a,d);return 2===n.length?(l=e.toNumber(n[1]),isNaN(l)&&(l=0),q("ceil",e.toNumber(n[0]),-1*l)):Math.ceil(e.toNumber(n[0]))})};m.round=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,2,a,d);return 2===n.length?(l=e.toNumber(n[1]),isNaN(l)&&(l=0),q("round",e.toNumber(n[0]),-1*l)):Math.round(e.toNumber(n[0]))})};
m.floor=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,2,a,d);return 2===n.length?(l=e.toNumber(n[1]),isNaN(l)&&(l=0),q("floor",e.toNumber(n[0]),-1*l)):Math.floor(e.toNumber(n[0]))})};m.cos=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,1,a,d);return Math.cos(e.toNumber(n[0]))})};m.isnan=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,1,a,d);return"number"===typeof n[0]&&isNaN(n[0])})};m.exp=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,1,a,d);return Math.exp(e.toNumber(n[0]))})};
m.log=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,1,a,d);return Math.log(e.toNumber(n[0]))})};m.pow=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,2,2,a,d);return Math.pow(e.toNumber(n[0]),e.toNumber(n[1]))})};m.random=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,0,0,a,d);return Math.random()})};m.sin=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,1,a,d);return Math.sin(e.toNumber(n[0]))})};m.sqrt=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,1,
a,d);return Math.sqrt(e.toNumber(n[0]))})};m.tan=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,1,a,d);return Math.tan(e.toNumber(n[0]))})};m.defaultvalue=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,2,2,a,d);return null===n[0]||""===n[0]||void 0===n[0]?n[1]:n[0]})};m.isempty=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,1,a,d);return null===n[0]||""===n[0]||void 0===n[0]?!0:!1})};m["boolean"]=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,1,1,a,d);return e.toBoolean(n[0])})};
m.constrain=function(a,d){return f(a,d,function(l,k,n){e.pcCheck(n,3,3,a,d);l=e.toNumber(n[1]);k=e.toNumber(n[2]);if(e.isArray(n[0])){var h=[],c=0;for(n=n[0];c<n.length;c++)h.push(g(n[c],l,k));return h}if(e.isImmutableArray(n[0])){h=[];for(c=0;c<n[0].length();c++)h.push(g(n[0].get(c),l,k));return h}return g(n[0],l,k)})}}})},"esri/arcade/functions/stats":function(){define(["require","exports","../executionError","../languageUtils","./fieldStats"],function(F,u,b,p,e){function y(q,m,f,g){if(1===g.length){if(p.isArray(g[0]))return e.calculateStat(q,
g[0],-1);if(p.isImmutableArray(g[0]))return e.calculateStat(q,g[0].toArray(),-1)}return e.calculateStat(q,g,-1)}Object.defineProperty(u,"__esModule",{value:!0});u.registerFunctions=void 0;u.registerFunctions=function(q,m){q.stdev=function(f,g){return m(f,g,function(a,d,l){return y("stdev",a,d,l)})};q.variance=function(f,g){return m(f,g,function(a,d,l){return y("variance",a,d,l)})};q.average=function(f,g){return m(f,g,function(a,d,l){return y("mean",a,d,l)})};q.mean=function(f,g){return m(f,g,function(a,
d,l){return y("mean",a,d,l)})};q.sum=function(f,g){return m(f,g,function(a,d,l){return y("sum",a,d,l)})};q.min=function(f,g){return m(f,g,function(a,d,l){return y("min",a,d,l)})};q.max=function(f,g){return m(f,g,function(a,d,l){return y("max",a,d,l)})};q.distinct=function(f,g){return m(f,g,function(a,d,l){return y("distinct",a,d,l)})};q.count=function(f,g){return m(f,g,function(a,d,l){p.pcCheck(l,1,1,f,g);if(p.isArray(l[0])||p.isString(l[0]))return l[0].length;if(p.isImmutableArray(l[0]))return l[0].length();
throw new b.ArcadeExecutionError(f,b.ExecutionErrorCodes.InvalidParameter,g);})}}})},"esri/arcade/functions/fieldStats":function(){define(["require","exports","../languageUtils"],function(F,u,b){function p(y){for(var q=0,m=0;m<y.length;m++)q+=y[m];return q/y.length}function e(y){for(var q=p(y),m=0,f=0;f<y.length;f++)m+=Math.pow(q-y[f],2);return m/y.length}Object.defineProperty(u,"__esModule",{value:!0});u.calculateStat=u.decodeStatType=void 0;u.decodeStatType=function(y){switch(y.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""};u.calculateStat=function(y,q,m){void 0===m&&(m=1E3);switch(y.toLowerCase()){case "distinct":a:{y=m;m=[];for(var f={},g=[],a=0;a<q.length;a++){if(void 0!==q[a]&&null!==q[a]&&q[a]!==b.voidOperation){var d=q[a];if(b.isNumber(d)||b.isString(d))void 0===f[d]&&(m.push(d),f[d]=1);else{for(var l=
!1,k=0;k<g.length;k++)!0===b.equalityTest(g[k],d)&&(l=!0);!1===l&&(g.push(d),m.push(d))}}if(m.length>=y&&-1!==y){q=m;break a}}q=m}return q;case "avg":case "mean":return p(b.toNumberArray(q));case "min":return Math.min.apply(Math,b.toNumberArray(q));case "sum":q=b.toNumberArray(q);for(m=y=0;m<q.length;m++)y+=q[m];return y;case "max":return Math.max.apply(Math,b.toNumberArray(q));case "stdev":case "stddev":return Math.sqrt(e(b.toNumberArray(q)));case "var":case "variance":return e(b.toNumberArray(q));
case "count":return q.length}return 0}})},"esri/arcade/functions/string":function(){define("require exports ../polyfill/tsSupport/assign ../polyfill/tsSupport/spreadarray ../ArcadePortal ../Attachment ../Dictionary ../executionError ../languageUtils ../featureset/support/shared ./convertdirection ./hash ../../geometry/Extent ../../geometry/Multipoint ../../geometry/Point ../../geometry/Polygon ../../geometry/Polyline ../../SpatialReference ../../arcgis/Portal".split(" "),function(F,u,b,p,e,y,q,m,
f,g,a,d,l,k,n,h,c,r,v){function z(x,E){return x&&E?x.x===E.x&&x.y===E.y?!0:!1:x===E}function C(x,E,B){if(null===x)E.updateUint8Array([0,139]);else if(f.isArray(x)){E.updateUint8Array([61]);if(B.map.has(x))x=B.map.get(x),E.updateIntArray([x^61237541]);else{B.map.set(x,B.currentLength++);for(var w=0;w<x.length;w++){var D=x[w];C(D,E,B)}B.map.delete(x);B.currentLength--}E.updateUint8Array([199])}else if(f.isImmutableArray(x)){E.updateUint8Array([61]);if(B.map.has(x))x=B.map.get(x),E.updateIntArray([x^
61237541]);else{B.map.set(x,B.currentLength++);w=0;for(var t=x.toArray();w<t.length;w++)D=t[w],C(D,E,B);B.map.delete(x);B.currentLength--}E.updateUint8Array([199])}else if(f.isDate(x))E.updateIntArray([x.toNumber()]),E.updateUint8Array([241]);else if(f.isString(x))E.updateIntArray([x.length]),E.updateWithString(x),E.updateUint8Array([41]);else if(f.isBoolean(x))E.updateUint8Array([!0===x?1:0,113]);else if(f.isNumber(x))E.updateFloatArray([x]),E.updateUint8Array([173]);else{if(x instanceof y)throw new m.ArcadeExecutionError(B.context,
m.ExecutionErrorCodes.UnsupportedHashType,B.node);if(x instanceof e)throw new m.ArcadeExecutionError(B.context,m.ExecutionErrorCodes.UnsupportedHashType,B.node);if(x instanceof q){E.updateUint8Array([223]);if(B.map.has(x))x=B.map.get(x),E.updateIntArray([x^61237541]);else{B.map.set(x,B.currentLength++);w=0;for(t=x.keys();w<t.length;w++)D=t[w],E.updateIntArray([D.length]),E.updateWithString(D),E.updateUint8Array([251]),D=x.field(D),C(D,E,B),E.updateUint8Array([239]);B.map.delete(x);B.currentLength--}E.updateUint8Array([73])}else{if(f.isFeature(x))throw new m.ArcadeExecutionError(B.context,
m.ExecutionErrorCodes.UnsupportedHashType,B.node);if(x instanceof n)E.updateIntArray([3833836621]),E.updateIntArray([0]),E.updateFloatArray([x.x]),E.updateIntArray([1]),E.updateFloatArray([x.y]),E.updateIntArray([3765347959]),C(x.spatialReference.wkid,E,B);else if(x instanceof h){E.updateIntArray([1266616829]);for(w=0;w<x.rings.length;w++){t=x.rings[w];var A=[],G=null,J=null;for(D=0;D<t.length;D++){var U=x.getPoint(w,D);if(0===D)G=U;else if(z(J,U))continue;J=U;D===t.length-1&&z(G,U)||A.push(U)}E.updateIntArray([1397116793,
A.length]);for(D=0;D<A.length;D++)U=A[D],E.updateIntArray([3962308117,D]),C(U,E,B),E.updateIntArray([2716288009]);E.updateIntArray([2278822459])}E.updateIntArray([3878477243]);C(x.spatialReference.wkid,E,B)}else if(x instanceof c){E.updateIntArray([4106883559]);for(w=0;w<x.paths.length;w++){t=x.paths[w];E.updateIntArray([1397116793,t.length]);for(D=0;D<t.length;D++)E.updateIntArray([3962308117,D]),C(x.getPoint(w,D),E,B),E.updateIntArray([2716288009]);E.updateIntArray([2278822459])}E.updateIntArray([2568784753]);
C(x.spatialReference.wkid,E,B)}else if(x instanceof k){E.updateIntArray([588535921,x.points.length]);for(D=0;D<x.points.length;D++)w=x.getPoint(D),E.updateIntArray([D]),C(w,E,B);E.updateIntArray([1700171621]);C(x.spatialReference.wkid,E,B)}else if(x instanceof l)E.updateIntArray([3483648373]),E.updateIntArray([0]),E.updateFloatArray([x.xmax]),E.updateIntArray([1]),E.updateFloatArray([x.xmin]),E.updateIntArray([2]),E.updateFloatArray([x.ymax]),E.updateIntArray([3]),E.updateFloatArray([x.ymin]),E.updateIntArray([3622027469]),
C(x.spatialReference.wkid,E,B);else if(x instanceof r)E.updateIntArray([14]),void 0!==x.wkid&&null!==x.wkid&&E.updateIntArray([x.wkid]),x.wkt&&E.updateWithString(x.wkt);else{if(f.isFunctionParameter(x))throw new m.ArcadeExecutionError(B.context,m.ExecutionErrorCodes.UnsupportedHashType,B.node);if(f.isFeatureSet(x))throw new m.ArcadeExecutionError(B.context,m.ExecutionErrorCodes.UnsupportedHashType,B.node);f.isFeatureSetCollection(x);throw new m.ArcadeExecutionError(B.context,m.ExecutionErrorCodes.UnsupportedHashType,
B.node);}}}}Object.defineProperty(u,"__esModule",{value:!0});u.registerFunctions=void 0;u.registerFunctions=function(x,E){x.portal=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,1,B,w);return new e(f.toString(A[0]))})};x.typeof=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,1,B,w);D=f.getType(A[0]);if("Unrecognised Type"===D)throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.UnrecognisedType,w);return D})};x.trim=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,1,
B,w);return f.toString(A[0]).trim()})};x.tohex=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,1,B,w);D=f.toNumber(A[0]);return isNaN(D)?D:D.toString(16)})};x.upper=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,1,B,w);return f.toString(A[0]).toUpperCase()})};x.proper=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,2,B,w);D=1;2===A.length&&"firstword"===f.toString(A[1]).toLowerCase()&&(D=2);t=/\s/;A=f.toString(A[0]);for(var G="",J=!0,U=0;U<A.length;U++){var ja=A[U];t.test(ja)?
1===D&&(J=!0):ja.toUpperCase()!==ja.toLowerCase()&&(J?(ja=ja.toUpperCase(),J=!1):ja=ja.toLowerCase());G+=ja}return G})};x.lower=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,1,B,w);return f.toString(A[0]).toLowerCase()})};x.guid=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,0,1,B,w);if(0<A.length)switch(f.toString(A[0]).toLowerCase()){case "digits":return f.generateUUID().replace("-","").replace("-","").replace("-","").replace("-","");case "digits-hyphen":return f.generateUUID();
case "digits-hyphen-parentheses":return"("+f.generateUUID()+")"}return"{"+f.generateUUID()+"}"})};x.standardizeguid=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,2,2,B,w);D=f.toString(A[0]);if(""===D||null===D)return"";D=/^(\{|\()?([0-9a-z]{8})(\-?)([0-9a-z]{4})(\-?)([0-9a-z]{4})(\-?)([0-9a-z]{4})(\-?)([0-9a-z]{12})(\}|\))?$/gim.exec(D);if(!D)return"";t=[];for(var G=1;G<D.length;G++){var J=D[G];void 0!==J&&""!==J&&null!==J&&0>["-","}","{","(",")"].indexOf(J)&&t.push(J)}if(5!==t.length)return"";
D=t[0]+"-"+t[1]+"-"+t[2]+"-"+t[3]+"-"+t[4];switch(f.toString(A[1]).toLowerCase()){case "digits":return D.replace("-","").replace("-","").replace("-","").replace("-","");case "digits-hyphen":return D;case "digits-hyphen-parentheses":return"("+D+")"}return"{"+D+"}"})};x.console=function(B,w){return E(B,w,function(D,t,A){0!==A.length&&(1===A.length?B.console(f.toString(A[0])):B.console(f.toString(A)));return f.voidOperation})};x.mid=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,2,3,B,w);D=f.toNumber(A[1]);
if(isNaN(D))return"";0>D&&(D=0);if(2===A.length)return f.toString(A[0]).substr(D);t=f.toNumber(A[2]);if(isNaN(t))return"";0>t&&(t=0);return f.toString(A[0]).substr(D,t)})};x.find=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,2,3,B,w);D=0;if(2<A.length){D=f.toNumber(f.defaultUndefined(A[2],0));if(isNaN(D))return-1;0>D&&(D=0)}return f.toString(A[1]).indexOf(f.toString(A[0]),D)})};x.left=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,2,2,B,w);D=f.toNumber(A[1]);if(isNaN(D))return"";
0>D&&(D=0);return f.toString(A[0]).substr(0,D)})};x.right=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,2,2,B,w);D=f.toNumber(A[1]);if(isNaN(D))return"";0>D&&(D=0);return f.toString(A[0]).substr(-1*D,D)})};x.split=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,2,4,B,w);D=f.toNumber(f.defaultUndefined(A[2],-1));t=f.toBoolean(f.defaultUndefined(A[3],!1));-1===D||null===D||!0===t?A=f.toString(A[0]).split(f.toString(A[1])):(isNaN(D)&&(D=-1),-1>D&&(D=-1),A=f.toString(A[0]).split(f.toString(A[1]),
D));if(!1===t)return A;t=[];for(var G=0;G<A.length&&!(-1!==D&&t.length>=D);G++)""!==A[G]&&void 0!==A[G]&&t.push(A[G]);return t})};x.text=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,2,B,w);return f.toStringExplicit(A[0],A[1])})};x.concatenate=function(B,w){return E(B,w,function(D,t,A){D=[];if(1>A.length)return"";if(f.isArray(A[0])){t=f.defaultUndefined(A[2],"");for(var G=0;G<A[0].length;G++)D[G]=f.toStringExplicit(A[0][G],t);return 1<A.length?D.join(A[1]):D.join("")}if(f.isImmutableArray(A[0])){t=
f.defaultUndefined(A[2],"");for(G=0;G<A[0].length();G++)D[G]=f.toStringExplicit(A[0].get(G),t);return 1<A.length?D.join(A[1]):D.join("")}for(G=0;G<A.length;G++)D[G]=f.toStringExplicit(A[G]);return D.join("")})};x.reverse=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,1,B,w);if(f.isArray(A[0]))return D=A[0].slice(0),D.reverse(),D;if(f.isImmutableArray(A[0]))return D=A[0].toArray().slice(0),D.reverse(),D;throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.InvalidParameter,w);})};x.replace=
function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,3,4,B,w);D=f.toString(A[0]);t=f.toString(A[1]);var G=f.toString(A[2]);return(4===A.length?f.toBoolean(A[3]):1)?f.multiReplace(D,t,G):D.replace(t,G)})};x.schema=function(B,w){return E(B,w,function(D,t,A){if(f.isFeature(A[0]))return(D=f.featureSchema(A[0]))?q.convertObjectToArcadeDictionary(D,f.defaultTimeZone(B)):null;throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.InvalidParameter,w);})};x.subtypes=function(B,w){return E(B,w,function(D,
t,A){f.pcCheck(A,1,1,B,w);if(f.isFeature(A[0]))return(D=f.featureSubtypes(A[0]))?q.convertObjectToArcadeDictionary(D,f.defaultTimeZone(B)):null;throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.InvalidParameter,w);})};x.subtypecode=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,1,B,w);if(f.isFeature(A[0])){t=f.featureSubtypes(A[0]);if(!t)return null;if(t.subtypeField&&A[0].hasField(t.subtypeField))for(A=A[0].field(t.subtypeField),D=0,t=t.subtypes;D<t.length;D++){var G=t[D];if(G.code===
A)return G.code}return null}throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.InvalidParameter,w);})};x.subtypename=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,1,B,w);if(f.isFeature(A[0])){t=f.featureSubtypes(A[0]);if(!t)return"";if(t.subtypeField&&A[0].hasField(t.subtypeField))for(A=A[0].field(t.subtypeField),D=0,t=t.subtypes;D<t.length;D++){var G=t[D];if(G.code===A)return G.name}return""}throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.InvalidParameter,w);})};x.gdbversion=
function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,1,B,w);if(f.isFeature(A[0]))return A[0].gdbVersion();throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.InvalidParameter,w);})};x.domain=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,2,3,B,w);if(f.isFeature(A[0]))return(D=f.featureFullDomain(A[0],f.toString(A[1]),void 0===A[2]?void 0:f.toNumber(A[2])))&&D.domain?"coded-value"===D.domain.type||"codedValue"===D.domain.type?q.convertObjectToArcadeDictionary({type:"codedValue",name:D.domain.name,
dataType:g.layerFieldEsriConstants[D.field.type],codedValues:D.domain.codedValues.map(function(G){return{name:G.name,code:G.code}})},f.defaultTimeZone(B)):q.convertObjectToArcadeDictionary({type:"range",name:D.domain.name,dataType:g.layerFieldEsriConstants[D.field.type],min:D.domain.min,max:D.domain.max},f.defaultTimeZone(B)):null;throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.InvalidParameter,w);})};x.domainname=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,2,4,B,w);if(f.isFeature(A[0]))return f.featureDomainValueLookup(A[0],
f.toString(A[1]),A[2],void 0===A[3]?void 0:f.toNumber(A[3]));throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.InvalidParameter,w);})};x.domaincode=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,2,4,B,w);if(f.isFeature(A[0]))return f.featureDomainCodeLookup(A[0],f.toString(A[1]),A[2],void 0===A[3]?void 0:f.toNumber(A[3]));throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.InvalidParameter,w);})};x.urlencode=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,1,B,w);if(null===
A[0])return"";if(A[0]instanceof q){D="";t=0;for(var G=A[0].keys();t<G.length;t++){var J=G[t],U=A[0].field(J);""!==D&&(D+="\x26");D=null===U?D+(encodeURIComponent(J)+"\x3d"):D+(encodeURIComponent(J)+"\x3d"+encodeURIComponent(U))}return D}return encodeURIComponent(f.toString(A[0]))})};x.hash=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,1,B,w);D=new d.XXH(0);C(A[0],D,{context:B,node:w,map:new Map,currentLength:0});return D.digest()})};x.convertdirection=function(B,w){return E(B,w,function(D,
t,A){f.pcCheck(A,3,3,B,w);return a.convertDirection(A[0],A[1],A[2])})};x.fromjson=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,1,B,w);if(!1===f.isString(A[0]))throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.InvalidParameter,w);return q.convertJsonToArcade(JSON.parse(f.toString(A[0])),f.defaultTimeZone(B))})};x.expects=function(B,w){return E(B,w,function(D,t,A){if(1>A.length)throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.WrongNumberOfParameters,w);return f.voidOperation})};
x.tocharcode=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,2,B,w);D=f.toNumber(f.defaultUndefined(A[1],0));t=f.toString(A[0]);if(0===t.length&&1===A.length)return null;if(t.length<=D||0>D)throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.OutOfBounds,w);return t.charCodeAt(D)})};x.tocodepoint=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,1,2,B,w);D=f.toNumber(f.defaultUndefined(A[1],0));t=f.toString(A[0]);if(0===t.length&&1===A.length)return null;if(t.length<=D||0>D)throw new m.ArcadeExecutionError(B,
m.ExecutionErrorCodes.OutOfBounds,w);return t.codePointAt(D)})};x.fromcharcode=function(B,w){return E(B,w,function(D,t,A){if(1>A.length)throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.WrongNumberOfParameters,w);D=A.map(function(G){return Math.trunc(f.toNumber(G))}).filter(function(G){return 0<=G&&65535>=G});return 0===D.length?null:String.fromCharCode.apply(null,D)})};x.fromcodepoint=function(B,w){return E(B,w,function(D,t,A){if(1>A.length)throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.WrongNumberOfParameters,
w);try{var G=A.map(function(J){return Math.trunc(f.toNumber(J))}).filter(function(J){return 1114111>=J&&J>>>0===J})}catch(J){return null}return 0===G.length?null:String.fromCodePoint.apply(null,G)})};x.getuser=function(B,w){return E(B,w,function(D,t,A){f.pcCheck(A,0,2,B,w);D=f.defaultUndefined(A[1],"");D=!0===D||!1===D?"":f.toString(D);if(null!==D&&""!==D)return null;if(0===A.length||A[0]instanceof e){t=null;B.services&&B.services.portal&&(t=B.services.portal);if(0<A.length){A=A[0].field("url");var G=
t;A=A?(new v.Portal(A)).portalUrl===((null===G||void 0===G?void 0:G.portalUrl)||""):!1;if(!A)return null}if(!t)return null;if(""===D){a:{D=t;if(D.getPortalUser()&&(D=D.getPortalUser())){t={};A=0;for(G="username id fullName availableCredits assignedCredits firstName lastName preferredView description email idpUsername favGroupId lastLogin mfaEnabled access storageUsage storageQuota orgId role privileges".split(" ");A<G.length;A++){var J=G[A];void 0!==D[J]&&(t[J]=D[J])}D=t;break a}D=null}if(D){D=JSON.parse(JSON.stringify(D));
t=0;for(A=["lastLogin","created","modified"];t<A.length;t++)G=A[t],void 0!==D[G]&&null!==D[G]&&(D[G]=new Date(D[G]));return q.convertObjectToArcadeDictionary(D,f.defaultTimeZone(B))}}return null}throw new m.ArcadeExecutionError(B,m.ExecutionErrorCodes.InvalidParameter,w);})}}})},"esri/arcade/ArcadePortal":function(){define(["require","exports","./polyfill/tsSupport/extends","./Dictionary"],function(F,u,b,p){return function(e){function y(q){var m=e.call(this)||this;m.declaredClass="esri.arcade.Portal";
m.immutable=!1;m.setField("url",q);m.immutable=!0;return m}b(y,e);return y}(p)})},"esri/arcade/Attachment":function(){define(["require","exports","./polyfill/tsSupport/extends","./Dictionary"],function(F,u,b,p){return function(e){function y(q,m,f,g,a,d){var l=e.call(this)||this;l.attachmentUrl=a;l.declaredClass="esri.arcade.Attachment";l.immutable=!1;l.setField("id",q);l.setField("name",m);l.setField("contenttype",f);l.setField("size",g);l.setField("exifinfo",d);l.immutable=!0;return l}b(y,e);return y}(p)})},
"esri/arcade/functions/convertdirection":function(){define("require exports ../Dictionary ../executionError ../languageUtils ../polyfill/maybe".split(" "),function(F,u,b,p,e,y){function q(da){if(!1===e.isString(da))throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.InvalidParameter,null);return da}function m(da,ka){ka=Math.pow(10,ka);return Math.round(da*ka)/ka}function f(da){var ka=parseFloat,I=da.toString(),S=I.replace;var X=+da;X=isFinite(X)?X-X%1||(0>X?-0:0===X?X:0):X;ka=ka(S.call(I,
X.toString(),"0"))*((0<da)-(0>da)||+da);return 0>da?{fraction:ka,integer:Math.ceil(da)}:{fraction:ka,integer:Math.floor(da)}}function g(da,ka){switch(da){case 0:return"SHORT"===ka?"N":"North";case 1:return"SHORT"===ka?"E":"East";case 2:return"SHORT"===ka?"S":"South";case 3:return"SHORT"===ka?"W":"West"}}function a(da,ka,I){for(;da.length<I;)da=ka+da;return da}function d(da,ka){return da-Math.floor(da/ka)*ka}function l(da){switch(da){case 6:case 1:return 360;case 4:return G;case 5:return 400;case 2:return 1296E3;
case 7:return 60;case 8:return 60;default:throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"unsupported evaluations"});}}function k(da){switch(da.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 new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"unsupported directionType"});}function n(da){switch(da.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 new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"unsupported units"});}function h(da,ka,I){var S=null;switch(ka){case 1:S=u.preciseMultiply(da,3600);break;case 2:S=da;break;case 5:S=u.preciseMultiply(da,3240);break;case 4:S=
u.preciseMultiply(da,J);break;default:throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"unexpected evaluation"});}switch(I){case 1:return u.preciseDivide(S,3600);case 2:return S;case 5:return u.preciseDivide(S,3240);case 4:return S/J;default:throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"unexpected evaluation"});}}function c(da){y.assertIsSome(da);switch(da){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 r(da){switch(e.toNumber(da)){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 v(da){switch(da.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 z(da){da=parseFloat(da);if(e.isNumber(da)){if(isNaN(da))throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,
null,{reason:"invalid conversion"});return da}throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"invalid conversion"});}function C(da,ka,I){var S=3===I,X=null,O=null,P=0,aa=0;aa=0;if(S){if(2>da.length)throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"conversion error"});aa=1;(O=r(e.toString(da[da.length-1])))?(X=O.first,O=O.second):(P=1,X=v(e.toString(da[0])),O=v(e.toString(da[da.length-1])));if(null===X||null===O)throw new p.ArcadeExecutionError(null,
p.ExecutionErrorCodes.LogicError,null,{reason:"invalid conversion"});}switch(ka){case 1:case 4:case 5:if(0===da.length)break;return S?ba.createFromAngleMeridianAndDirection(ma.createFromAngleAndUnits(z(da[P]),c(ka)),X,O):ba.createFromAngleAndDirection(ma.createFromAngleAndUnits(z(da[P]),c(ka)),I);case 3:aa=da.length-aa-P;if(3===aa)return da=ma.createFromDegreesMinutesSeconds(z(da[P]),z(da[P+1]),z(da[P+2])),S?ba.createFromAngleMeridianAndDirection(da,X,O):ba.createFromAngleAndDirection(da,I);if(1===
aa)return da=z(da[P]),da=V.numberToDms(da),da=ma.createFromDegreesMinutesSeconds(da.m_degrees,da.m_minutes,da.m_seconds),S?ba.createFromAngleMeridianAndDirection(da,X,O):ba.createFromAngleAndDirection(da,I)}throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"invalid conversion"});}function x(da){for(var ka=[" ","-","/","'",'"',"\\","^","\u00b0",U,"\t","\r","\n","*"],I="",S=0;S<da.length;S++){var X=da.charAt(S);I=ka.includes(X)?I+"RRSPLITRRSPLITRR":I+X}return I.split("RRSPLITRRSPLITRR").filter(function(O){return""!==
O})}function E(da,ka,I){for(var S={padding:0,rounding:0,newpos:ka},X=!1;ka<da.length;){var O=da[ka];if(O===I)X?S.rounding++:S.padding++,ka++;else if("."===O)X=!0,ka++;else break}S.newpos=ka-1;return S}Object.defineProperty(u,"__esModule",{value:!0});u.convertDirection=u.preciseDivide=u.preciseMultiply=u.preciseMinus=u.preciseAdd=void 0;var B=function(da){return function(ka,I,S){S=S||14;return+da(ka,I).toFixed(S)}},w=function(da,ka){return da+ka},D=function(da,ka){return da-ka},t=function(da,ka){return da*
ka},A=function(da,ka){return da/ka};u.preciseAdd=function(da,ka,I){return B(w)(da,ka,I)};u.preciseMinus=function(da,ka,I){return B(D)(da,ka,I)};u.preciseMultiply=function(da,ka,I){return B(t)(da,ka,I)};u.preciseDivide=function(da,ka,I){return B(A)(da,ka,I)};var G=2*Math.PI,J=648E3/Math.PI,U=String.fromCharCode(7501),ja;(function(da){da[da.north=0]="north";da[da.east=1]="east";da[da.south=2]="south";da[da.west=3]="west"})(ja||(ja={}));var Z;(function(da){da[da.decimal_degrees=1]="decimal_degrees";
da[da.seconds=2]="seconds";da[da.degrees_minutes_seconds=3]="degrees_minutes_seconds";da[da.radians=4]="radians";da[da.gradians=5]="gradians";da[da.truncated_degrees=6]="truncated_degrees";da[da.fractional_degree_minutes=7]="fractional_degree_minutes";da[da.fractional_minute_seconds=8]="fractional_minute_seconds"})(Z||(Z={}));var fa;(function(da){da[da.north_azimuth=1]="north_azimuth";da[da.polar=2]="polar";da[da.quadrant=3]="quadrant";da[da.south_azimuth=4]="south_azimuth"})(fa||(fa={}));var qa;
(function(da){da[da.meridian=0]="meridian";da[da.direction=1]="direction"})(qa||(qa={}));var V=function(){function da(ka,I,S){this.m_degrees=ka;this.m_minutes=I;this.m_seconds=S}da.prototype.getField=function(ka){switch(ka){case 1:case 6:return this.m_degrees;case 7:return this.m_minutes;case 2:case 8:return this.m_seconds;default:throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"unexpected evaluation"});}};da.secondsToDMS=function(ka){var I=f(ka).fraction;ka=f(ka).integer;
var S=Math.floor(ka/3600);ka-=3600*S;var X=Math.floor(ka/60);return new da(S,X,ka-60*X+I)};da.numberToDms=function(ka){var I=f(ka).fraction;ka=f(ka).integer;var S=u.preciseMultiply(f(100*I).fraction,100);I=f(100*I).integer;return new da(ka,I,S)};da.prototype.format=function(ka,I){I=m(this.m_seconds,I);var S=this.m_minutes,X=this.m_degrees;if(2===ka||8===ka)60<=I&&(I-=60,++S),60<=S&&(S=0,++X),360<=X&&(X=0);else if(7===ka)I=0,S=30<=this.m_seconds?this.m_minutes+1:this.m_minutes,X=this.m_degrees,60<=
S&&(S=0,++X),360<=X&&(X=0);else if(1===ka||6===ka)ka=u.preciseDivide(this.m_seconds,3600),I=u.preciseDivide(this.m_minutes,60),X=Math.round(this.m_degrees+I+ka),I=S=0;return new da(X,S,I)};da.dmsToSeconds=function(ka,I,S){return 3600*ka+60*I+S};return da}(),ea=function(){function da(ka,I,S){this.meridian=ka;this.angle=I;this.direction=S}da.prototype.fetchAzimuth=function(ka){return ka===qa.meridian?this.meridian:this.direction};return da}(),ba=function(){function da(ka){this._angle=ka}da.createFromAngleAndDirection=
function(ka,I){return new da(new ma(da._convertDirectionFormat(ka.extractAngularUnits(2),I,1)))};da.prototype.getAngle=function(ka){var I=this._angle.extractAngularUnits(2);switch(ka){case 1:case 4:case 2:return ka=new ma(da._convertDirectionFormat(I,1,ka));case 3:return ka=da.secondsNorthAzimuthToQuadrant(I),ka=new ma(ka.angle)}};da.prototype.getMeridian=function(ka){var I=this._angle.extractAngularUnits(2);switch(ka){case 1:return 0;case 4:return 2;case 2:return 1;case 3:return da.secondsNorthAzimuthToQuadrant(I).meridian}};
da.prototype.getDirection=function(ka){var I=this._angle.extractAngularUnits(2);switch(ka){case 1:return 1;case 4:return 3;case 2:return 0;case 3:return da.secondsNorthAzimuthToQuadrant(I).direction}};da.secondsNorthAzimuthToQuadrant=function(ka){var I=324E3>=ka||972E3<=ka?0:2;return new ea(I,0===I?Math.min(1296E3-ka,ka):Math.abs(ka-648E3),648E3<ka?3:1)};da.createFromAngleMeridianAndDirection=function(ka,I,S){return new da(new ma(da.secondsQuadrantToNorthAzimuth(ka.extractAngularUnits(2),I,S)))};
da.secondsQuadrantToNorthAzimuth=function(ka,I,S){return 0===I?1===S?ka:1296E3-ka:1===S?648E3-ka:648E3+ka};da._convertDirectionFormat=function(ka,I,S){var X=0;switch(I){case 1:X=ka;break;case 2:X=324E3-ka;break;case 3:throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"unexpected evaluation"});case 4:X=ka+648E3}ka=0;switch(S){case 1:ka=X;break;case 2:ka=324E3-X;break;case 3:throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"unexpected evaluation"});
case 4:ka=X-648E3}ka%=1296E3;return 0>ka?1296E3+ka:ka};return da}(),ma=function(){function da(ka){this._seconds=ka}da.createFromAngleAndUnits=function(ka,I){return new da(h(ka,I,2))};da.prototype.extractAngularUnits=function(ka){return h(this._seconds,2,c(ka))};da.createFromDegreesMinutesSeconds=function(ka,I,S){return new da(u.preciseAdd(u.preciseAdd(u.preciseMultiply(ka,3600),u.preciseMultiply(I,60)),S))};return da}(),va=function(){function da(ka,I,S,X){this.view=ka;this.angle=I;this.merdian=S;
this.direction=X;this._formattedDms=this._dms=null}da.createFromStringAndBearing=function(ka,I,S){return new da(ka,I.getAngle(S),I.getMeridian(S),I.getDirection(S))};da.prototype.fetchAngle=function(){return this.angle};da.prototype.fetchMeridian=function(){return this.merdian};da.prototype.fetchDirection=function(){return this.direction};da.prototype.fetchView=function(){return this.view};da.prototype.fetchDms=function(){null===this._dms&&this._calculateDms();return this._dms};da.prototype.fetchFormattedDms=
function(){null===this._formattedDms&&this._calculateDms();return this._formattedDms};da.prototype._calculateDms=function(){var ka=null,I=6,S=0;for(ka=0;ka<this.view.length;ka++){var X=this.view[ka];switch(X){case "m":ka=E(this.view,ka,X);I=6===I?7:I;ka=ka.newpos;continue;case "s":ka=E(this.view,ka,X),I=8,S=S<ka.rounding?ka.rounding:S,ka=ka.newpos}}this._dms=V.secondsToDMS(this.angle.extractAngularUnits(2));this._formattedDms=V.secondsToDMS(this.angle.extractAngularUnits(2)).format(I,S)};return da}();
u.convertDirection=function(da,ka,I){if(!(ka instanceof b))throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.InvalidParameter,null);if(!1===ka.hasField("directionType"))throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"missing directionType"});if(!1===ka.hasField("angleType"))throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"missing angleType"});var S=k(q(ka.field("directiontype")));ka=n(q(ka.field("angletype")));if(e.isNumber(da)){da=
e.toNumber(da);if(3===S)throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"conversion error"});3===ka?(da=V.numberToDms(da),ka=ba.createFromAngleAndDirection(ma.createFromDegreesMinutesSeconds(da.m_degrees,da.m_minutes,da.m_seconds),S)):ka=ba.createFromAngleAndDirection(ma.createFromAngleAndUnits(da,c(ka)),S)}else if(e.isString(da))ka=C(x(da),ka,S);else if(e.isArray(da))ka=C(da,ka,S);else if(e.isImmutableArray(da))ka=C(da.toArray(),ka,S);else throw new p.ArcadeExecutionError(null,
p.ExecutionErrorCodes.LogicError,null,{reason:"conversion error"});if(!(I instanceof b))throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.InvalidParameter,null);if(!1===I.hasField("directionType"))throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"missing directionType"});if(!1===I.hasField("outputType"))throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"missing angleType"});S=k(q(I.field("directiontype")));da=I.hasField("angleType")?
n(q(I.field("angletype"))):null;var X=q(I.field("outputType")).toUpperCase().trim();if(!S||!X)throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"conversion error"});if(!(da||"TEXT"===X&&I.hasField("format")))throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"invalid unit"});switch(X){case "VALUE":if(3===S||3===da)return I=ka,ka=I.getAngle(S),3===S&&3===da?(da=V.secondsToDMS(ka.extractAngularUnits(2)),S=[g(I.getMeridian(S),"SHORT"),
da.m_degrees,da.m_minutes,da.m_seconds,g(I.getDirection(S),"SHORT")]):3===da?(da=V.secondsToDMS(ka.extractAngularUnits(2)),S=[da.m_degrees,da.m_minutes,da.m_seconds]):S=3===S?[g(I.getMeridian(S),"SHORT"),ka.extractAngularUnits(da),g(I.getDirection(S),"SHORT")]:[ka.extractAngularUnits(da)],S;I=ka;if((ka=c(da))&&3!==da)S=I.getAngle(S).extractAngularUnits(ka);else throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"conversion error"});return S;case "TEXT":X="";I.hasField("format")&&
(X=e.toString(I.field("format")));if(null===X||""===X){I="";switch(da){case 1:I=3===S?"DD.DD\u00b0":"DDD.DD\u00b0";break;case 3:I=3===S?"dd\u00b0 mm' ss\"":"ddd\u00b0 mm' ss.ss\"";break;case 4:I="R.RR";break;case 5:I="GGG.GG"+U;break;default:throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"conversion error"});}3===S&&(I="p "+I+" b");X=I}I=ka;da=X;var O="",P=null,aa=null;ka=va.createFromStringAndBearing(da,I,S);X={D:1,d:6,m:7,s:8,R:4,G:5};for(aa=0;aa<da.length;aa++){var ha=
da[aa];switch(ha){case "[":P=da;ha={escaped:"",newpos:aa};for(aa++;aa<P.length;){var la=P[aa];aa++;if("]"===la)break;ha.escaped+=la}ha.newpos=aa-1;P=ha;O+=P.escaped;aa=P.newpos;continue;case "D":case "d":case "m":case "s":case "R":case "G":P=E(da,aa,ha);aa=I.getAngle(S);a:{ha=X[ha];la=P.padding;var ta=P.rounding,Ba=ka,N=null;switch(ha){case 1:case 4:case 5:N=d(m(aa.extractAngularUnits(ha),ta),l(ha));aa=a(N.toFixed(ta),"0",la+ta+(0<ta?1:0));break a;case 6:case 7:N=d(Ba.fetchFormattedDms().getField(ha),
l(ha));aa=a(N.toFixed(ta),"0",la+ta+(0<ta?1:0));break a;case 8:N=d(m(Ba.fetchDms().getField(ha),ta),l(ha));aa=a(N.toFixed(ta),"0",la+ta+(0<ta?1:0));break a;default:throw new p.ArcadeExecutionError(null,p.ExecutionErrorCodes.LogicError,null,{reason:"unexpected evaluation"});}}O+=aa;aa=P.newpos;continue;case "P":case "p":O+=g(ka.fetchMeridian(),"p"===ha?"SHORT":"LONG");continue;case "B":case "b":O+=g(ka.fetchDirection(),"b"===ha?"SHORT":"LONG");continue;default:O+=ha}}return O;default:throw new p.ArcadeExecutionError(null,
p.ExecutionErrorCodes.InvalidParameter,null);}}})},"esri/arcade/functions/hash":function(){define(["require","exports"],function(F,u){function b(p){for(var e=[],y=0,q=p.length;y<q;y++){var m=p.charCodeAt(y);128>m?e.push(m):2048>m?e.push(192|m>>6,128|m&63):55296>m||57344<=m?e.push(224|m>>12,128|m>>6&63,128|m&63):(y++,m=65536+((m&1023)<<10|p.charCodeAt(y)&1023),e.push(240|m>>18,128|m>>12&63,128|m>>6&63,128|m&63))}return new Uint8Array(e)}Object.defineProperty(u,"__esModule",{value:!0});u.XXH=void 0;
F=function(){function p(e){this._seed=e;this._totallen=0;this._bufs=[];this.init()}p.prototype.init=function(){this._bufs=[];this._totallen=0;return this};p.prototype.updateFloatArray=function(e){for(var y=[],q=0;q<e.length;q++){var m=e[q];isNaN(m)?y.push("NaN"):Infinity===m?y.push("Infinity"):-Infinity===m?y.push("-Infinity"):0===m?y.push("0"):y.push(m.toString(16))}this.update(b(y.join("")))};p.prototype.updateIntArray=function(e){e=Int32Array.from(e);this.update(new Uint8Array(e.buffer))};p.prototype.updateUint8Array=
function(e){this.update(Uint8Array.from(e))};p.prototype.updateWithString=function(e){return this.update(b(e))};p.prototype.update=function(e){this._bufs.push(e);this._totallen+=e.length;return this};p.prototype.digest=function(){for(var e=new Uint8Array(this._totallen),y=0,q=0,m=this._bufs;q<m.length;q++){var f=m[q];e.set(f,y);y+=f.length}this.init();return this._xxHash32(e,this._seed)};p.prototype._xxHash32=function(e,y){void 0===y&&(y=0);var q=y+374761393&4294967295,m=0;if(16<=e.length){q=[y+2654435761+
2246822519&4294967295,y+2246822519&4294967295,y+0&4294967295,y-2654435761&4294967295];var f=e.length-16;for(m=y=0;(m&4294967280)<=f;m+=4){var g=m,a=e[g+0]+(e[g+1]<<8);g=e[g+2]+(e[g+3]<<8);a=q[y]+(2246822519*a+(2246822519*g<<16))&4294967295;a=a<<13|a>>>19;q[y]=2654435761*(a&65535)+(2654435761*(a>>>16)<<16)&4294967295;y=y+1&3}q=(q[0]<<1|q[0]>>>31)+(q[1]<<7|q[1]>>>25)+(q[2]<<12|q[2]>>>20)+(q[3]<<18|q[3]>>>14)&4294967295}q=q+e.length&4294967295;for(y=e.length-4;m<=y;m+=4)g=m,a=e[g+0]+(e[g+1]<<8),g=e[g+
2]+(e[g+3]<<8),q=q+(3266489917*a+(3266489917*g<<16))&4294967295,q=q<<17|q>>>15,q=668265263*(q&65535)+(668265263*(q>>>16)<<16)&4294967295;for(;m<e.length;++m)y=e[m],q+=374761393*y,q=q<<11|q>>>21,q=2654435761*(q&65535)+(2654435761*(q>>>16)<<16)&4294967295;q^=q>>>15;q=(2246822519*(q&65535)&4294967295)+(2246822519*(q>>>16)<<16);q^=q>>>13;q=(3266489917*(q&65535)&4294967295)+(3266489917*(q>>>16)<<16);q^=q>>>16;return 0>q?q+4294967296:q};return p}();u.XXH=F})},"esri/arcgis/Portal":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/kernel dojo/_base/Deferred dojo/_base/array dojo/_base/sniff require ../config ../kernel ../lang ../request ../urlUtils ../Evented ../IdentityManager".split(" "),
function(F,u,b,p,e,y,q,m,f,g,a,d,l){var k={options:{disableIdentityLookup:!0},requestParams:{f:"json"}},n=function(w){function D(t){w[t]||(w[t]=function(){var A=arguments;return p.when(w,function(G){Array.prototype.unshift.call(A,G.results||G);return n(e[t].apply(e,A))})})}if(!w)return w;w.then&&(w=u.delegate(w));w.total||(w.total=p.when(w,function(t){return g.isDefined(t.total)?t.total:t.length||0}));D("forEach");D("filter");D("map");D("some");D("every");return w},h={useSSL:function(w,D){var t=k&&
k.self||{};if(t&&!t.isPortal)return-1!==w.indexOf("https:")||t.allSSL?D.replace("http:","https:"):D;var A=h.getLocation(D);return-1<t.portalHostname.toLowerCase().indexOf(A.hostname.toLowerCase())&&A.port&&"80"!==A.port&&"443"!==A.port?(D=A.pathname,D=0===D.indexOf("/")?D:"/"+D,t.allSSL||-1<w.indexOf("https:")?"https://"+A.hostname+(t.httpsPort&&"443"!==t.httpsPort?":"+t.httpsPort:"")+D+A.search:"http://"+A.hostname+(t.httpPort&&"80"!==t.httpPort?":"+t.httpPort:"")+D+A.search):-1!==w.indexOf("https:")||
t.allSSL?D.replace("http:","https:"):D},formatUrl:function(w){var D=k.currentToken;return-1!==w.indexOf("null")?null:h.useSSL(window.location.protocol,D?w+(-1!==w.indexOf("?")?"\x26":"?")+("token\x3d"+D):w)},getLocation:function(w){var D=document.createElement("a");D.href=w;return{protocol:D.protocol,hostname:D.hostname,port:D.port,pathname:D.pathname,search:D.search,hash:D.hash,host:D.host}},resultsToTypedArray:function(w,D,t){t=t?t.listings||t.notifications||t.userInvitations||t.tags||t.items||
t.groups||t.comments||t.provisions||t.results||t:[];return e.map(t,function(A){A=u.mixin(A,D||{});return w?new w(A):A})},clearFieldsFromObject:function(w,D){var t,A=w.length;if(u.isArray(w))for(t=0;t<A;t++)delete D[w[t]];else for(t in w)delete D[t];return D},requestToTypedArray:function(w,D,t,A,G){return n(h.request(w,D,t).then(u.partial(h.resultsToTypedArray,A,G)))},request:function(w,D,t){if(D){D.portal&&delete D.portal;if(D.form){var A=D.form;delete D.form}if(D.hasOwnProperty("withCredentials")){var G=
D.withCredentials;delete D.withCredentials}}D=u.mixin(u.mixin({},D||{}),k.requestParams);w={url:h.useSSL(window.location.protocol,w.url||w),content:D,callbackParamName:"callback",timeout:J&&J.timeout||0,form:A};null!=G&&(w.withCredentials=G);var J=u.mixin(t||{},k.options);return a(w,J)},formatQueryParams:function(w,D,t){w=u.mixin(u.mixin({},w),u.isString(D)?{q:D}:D||{});w.q=!t&&k.extraQuery?"("+w.q+")"+k.extraQuery:w.q;return w}},c=F([],{declaredClass:"esri.arcgis.PortalComment",constructor:function(w){u.mixin(this,
w);this.url=this.item.itemUrl+"/comments/"+this.id;this.created=this.created?new Date(this.created):null}}),r=F([],{declaredClass:"esri.arcgis.PortalRating",constructor:function(w){u.mixin(this,w);this.url=this.item.itemUrl+"/rating";this.created=this.created?new Date(this.created):null}}),v=F([],{declaredClass:"esri.arcgis.PortalItem",constructor:function(w){u.mixin(this,w);this.folderId=this.ownerFolder||this.folderId;this.itemUrl=(this.portal&&this.portal.portalUrl)+"content/items/"+this.id;this.userItemUrl=
this.hasOwnProperty("ownerFolder")?this.itemUrl.replace("/content/","/content/users/"+this.owner+(this.folderId?"/"+this.folderId:"")+"/"):null;this.itemDataUrl=h.formatUrl(this.itemUrl+"/data");this.thumbnailUrl=h.formatUrl(this.itemUrl+"/info/"+this.thumbnail);this.displayName=this._getDisplayName();this.iconUrl=this._getIconUrl();this.isPremiumContent=this._getIsPremiumContent();this.created=this.created?new Date(this.created):null;this.uploaded=this.uploaded?new Date(this.uploaded):null;this.modified=
this.modified?new Date(this.modified):null},getTypeInfo:function(){var w=this.type;return{source:-1<e.indexOf(this.typeKeywords||[],"ArcGIS Server")||"Feature Collection"===w?w:null,displayName:this.displayName,iconUrl:this.iconUrl,isPremiumContent:this.isPremiumContent,premiumIconUrl:this._getPremiumIconUrl()}},addComment:function(w){var D=u.isString(w)?{comment:w}:w;return h.request(this.itemUrl+"/addComment",D,{usePost:!0}).then(u.hitch(this,function(t){return new c(u.mixin(D,{id:t.commentId,item:this}))}))},
updateComment:function(w){if(w&&w.url&&w.comment)return h.request(w.url+"/update",{comment:w.comment},{usePost:!0}).then(function(D){w.id=D.commentId;return w});throw Error();},getComments:function(){return h.requestToTypedArray(this.itemUrl+"/comments",null,null,c,{item:this})},deleteComment:function(w){if(w&&w.url)return h.request(w.url+"/delete",null,{usePost:!0});throw Error();},addRating:function(w){var D=u.isObject(w)?w:{rating:parseFloat(w)};return h.request(this.itemUrl+"/addRating",D,{usePost:!0}).then(u.hitch(this,
function(t){return new r(u.mixin(D,{id:t.ratingId,item:this}))}))},getRating:function(){return h.request(this.itemUrl+"/rating").then(u.hitch(this,function(w){return new r(u.mixin(w,{item:this}))}))},deleteRating:function(){return h.request(this.itemUrl+"/deleteRating",null,{usePost:!0})},_getDisplayName:function(){var w=this.type,D=this.typeKeywords||[],t=w;"Feature Service"===w||"Feature Collection"===w?t=-1<e.indexOf(D,"Table")?"Table":-1<e.indexOf(D,"Route Layer")?"Route Layer":-1<e.indexOf(D,
"Markup")?"Markup":"Feature Layer":"Image Service"===w?t=-1<e.indexOf(D,"Elevation 3D Layer")?"Elevation Layer":-1<e.indexOf(D,"Tiled Imagery")?"Tiled Imagery Layer":"Imagery Layer":"Scene Service"===w?t="Scene Layer":"Video Service"===w?t="Video Layer":"Scene Package"===w?t="Scene Layer Package":"Stream Service"===w?t="Feature Layer":"Geoprocessing Service"===w?t=-1<e.indexOf(D,"Web Tool")?"Tool":"Geoprocessing Service":"Geoenrichment Service"===w?t="GeoEnrichment Service":"Geocoding Service"===
w?t="Locator":"Microsoft Powerpoint"===w?t="Microsoft PowerPoint":"GeoJson"===w?this.type=t="GeoJSON":"Globe Service"===w?t="Globe Layer":"Vector Tile Service"===w?t="Tile Layer":"netCDF"===w?t="NetCDF":"Map Service"===w?t=-1===e.indexOf(D,"Spatiotemporal")&&(-1<e.indexOf(D,"Hosted Service")||-1<e.indexOf(D,"Tiled"))&&-1===e.indexOf(D,"Relational")?"Tile Layer":"Map Image Layer":w&&-1<w.toLowerCase().indexOf("add in")?t=w.replace(/(add in)/ig,"Add-In"):"datastore catalog service"===w?t="Big Data File Share":
"Compact Tile Package"===w?t="Tile Package (tpkx)":"Raster function template"===w?t="Raster Function Template":"OGCFeatureServer"===w?t="OGC Feature Layer":"web mapping application"===w&&-1<e.indexOf(D,"configurableApp")?t="Instant App":"Insights Page"===w?t="Insights Report":"Excalibur Imagery Project"===w&&(t="Excalibur Project");return t},_getIconUrl:function(){var w=this.type&&this.type.toLowerCase()||"",D=this.typeKeywords||[],t=!1,A=!1,G=!1,J=!1,U=!1,ja=!1;t=A=!1;0<w.indexOf("service")||"feature collection"===
w||"kml"===w||"wms"===w||"wmts"===w||"wfs"===w?(t=-1<e.indexOf(D,"Hosted Service"),"feature service"===w||"feature collection"===w||"kml"===w||"wfs"===w?(J=-1<e.indexOf(D,"Table"),A=-1<e.indexOf(D,"Route Layer"),G=-1<e.indexOf(D,"Markup"),U=-1!==e.indexOf(D,"Spatiotemporal"),ja=-1!==e.indexOf(D,"UtilityNetwork"),w=U&&J?"spatiotemporaltable":J?"table":A?"routelayer":G?"markup":U?"spatiotemporal":ja?"utilitynetwork":t?"featureshosted":"features"):"map service"===w||"wms"===w||"wmts"===w?(U=-1!==e.indexOf(D,
"Spatiotemporal"),A=-1!==e.indexOf(D,"Relational"),w=U||A?"mapimages":t||-1<e.indexOf(D,"Tiled")||"wmts"===w?"maptiles":"mapimages"):w="scene service"===w?-1<e.indexOf(D,"Line")?"sceneweblayerline":-1<e.indexOf(D,"3DObject")?"sceneweblayermultipatch":-1<e.indexOf(D,"Point")?"sceneweblayerpoint":-1<e.indexOf(D,"IntegratedMesh")?"sceneweblayermesh":-1<e.indexOf(D,"PointCloud")?"sceneweblayerpointcloud":-1<e.indexOf(D,"Polygon")?"sceneweblayerpolygon":-1<e.indexOf(D,"Building")?"sceneweblayerbuilding":
-1<e.indexOf(D,"Voxel")?"sceneweblayervoxel":"sceneweblayer":"image service"===w?-1<e.indexOf(D,"Elevation 3D Layer")?"elevationlayer":-1<e.indexOf(D,"Tiled Imagery")?"tiledimagerylayer":"imagery":"stream service"===w?"streamlayer":"vector tile service"===w?"vectortile":"datastore catalog service"===w?"datastorecollection":"geocoding service"===w?"geocodeservice":"video service"===w?-1<e.indexOf(D,"Live Stream")?"livestreamvideolayer":"videolayer":"geoprocessing service"===w?-1<e.indexOf(D,"Web Tool")?
"tool":"layers":"geodata service"===w?"geodataservice":"3dtiles service"===w?"3dtileslayer":"layers"):w="web map"===w||"cityengine web scene"===w?"maps":"web scene"===w?-1<e.indexOf(D,"ViewingMode-Local")?"webscenelocal":"websceneglobal":"web mapping application"===w&&-1<e.indexOf(D,"configurableApp")?"instantapps":"web mapping application"===w||"mobile application"===w||"application"===w||"operation view"===w||"desktop application"===w?"apps":"map document"===w||"map package"===w||"published map"===
w||"scene document"===w||"globe document"===w||"basemap package"===w||"mobile basemap package"===w||"mobile map package"===w||"project package"===w||"project template"===w||"pro map"===w||"layout"===w||"layer"===w&&-1<e.indexOf(D,"ArcGIS Pro")||"explorer map"===w&&e.indexOf(D,"Explorer Document")?"mapsgray":"service definition"===w||"csv"===w||"shapefile"===w||"cad drawing"===w||"geojson"===w||"netcdf"===w||"administrative report"===w?"datafiles":"360 vr experience"===w?"360vr":"explorer add in"===
w||"desktop add in"===w||"windows viewer add in"===w||"windows viewer configuration"===w?"appsgray":"arcgis pro add in"===w||"arcgis pro configuration"===w?"addindesktop":"rule package"===w||"file geodatabase"===w||"sqlite geodatabase"===w||"csv collection"===w||"kml collection"===w||"windows mobile package"===w||"map template"===w||"desktop application template"===w||"gml"===w||"arcpad package"===w||"code sample"===w||"document link"===w||"earth configuration"===w||"operations dashboard add in"===
w||"rules package"===w||"image"===w||"workflow manager package"===w||"explorer map"===w&&-1<e.indexOf(D,"Explorer Mapping Application")||-1<e.indexOf(D,"Document")?"datafilesgray":"network analysis service"===w||"geoprocessing service"===w||"geodata service"===w||"geometry service"===w||"geoprocessing package"===w||"locator package"===w||"geoprocessing sample"===w||"workflow manager service"===w?"toolsgray":"layer"===w||"layer package"===w||"explorer layer"===w?"layersgray":"scene package"===w?"scenepackage":
"3dtiles package"===w?"3dtileslayerpackage":"3dtiles service"===w?"3dtileslayer":"mobile scene package"===w?"mobilescenepackage":"tile package"===w||"compact tile package"===w?"tilepackage":"task file"===w?"taskfile":"report template"===w?"report-template":"statistical data collection"===w?"statisticaldatacollection":"insights workbook"===w?"workbook":"insights model"===w?"insightsmodel":"insights page"===w?"insightspage":"insights theme"===w?"insightstheme":"hub initiative"===w?"hubinitiative":"hub page"===
w?"hubpage":"hub site application"===w?"hubsite":"hub event"===w?"hubevent":"hub project"===w?"hubproject":"relational database connection"===w?"relationaldatabaseconnection":"big data file share"===w?"datastorecollection":"image collection"===w?"imagecollection":"desktop style"===w?"desktopstyle":"style"===w?"style":"dashboard"===w?"dashboard":"raster function template"===w?"rasterprocessingtemplate":"vector tile package"===w?"vectortilepackage":"ortho mapping project"===w?"orthomappingproject":
"ortho mapping template"===w?"orthomappingtemplate":"solution"===w?"solutions":"geopackage"===w?"geopackage":"deep learning package"===w?"deeplearningpackage":"real time analytic"===w?"realtimeanalytics":"big data analytic"===w?"bigdataanalytics":"feed"===w?"feed":"excalibur imagery project"===w?"excaliburimageryproject":"notebook"===w?"notebook":"storymap"===w?"storymap":"survey123 add in"===w?"survey123addin":"mission"===w?"mission":"mission report"===w?"missionreport":"mission template"===w?"missiontemplate":
"quickcapture project"===w?"quickcaptureproject":"pro report"===w?"proreport":"pro report template"===w?"proreporttemplate":"urban model"===w?"urbanmodel":"web experience"===w?"experiencebuilder":"web experience template"===w?"webexperiencetemplate":"experience builder widget"===w?"experiencebuilderwidget":"experience builder widget package"===w?"experiencebuilderwidgetpackage":"workflow"===w?"workflow":"kernel gateway connection"===w?"kernelgatewayconnection":"insights script"===w?"insightsscript":
"hub initiative template"===w?"hubinitiativetemplate":"storymap theme"===w?"storymaptheme":"knowledge graph"===w?"knowledgegraph":"knowledge studio project"===w?"knowledgestudio":"native application"===w?"nativeapp":"native application installer"===w?"nativeappinstaller":"link chart"===w?"linkchart":"investigation"===w?"investigation":"ogcfeatureserver"===w?"features":"pro project"===w?"proproject":"insights workbook package"===w?"insightsworkbookpackage":"apache parquet"===w?"apacheparquet":"notebook code snippets"===
w||"notebook code snippet library"===w?"notebookcodesnippets":"suitability model"===w?"suitabilitymodel":"esri classifier definition"===w?"classifierdefinition":"esri classification schema"===w?"classificationschema":"insights data engineering workbook"===w?"dataengineeringworkbook":"insights data engineering model"===w?"dataengineeringmodel":"deep learning studio project"===w?"deeplearningproject":"discussion"===w?"discussion":"allsource project"===w?"allsourceproject":"api key"===w?"apikey":"data pipeline"===
w?"datapipelines":"group layer"===w?(t=-1<e.indexOf(D,"Map"))?"layergroup2d":"layergroup":"media layer"===w?"onlinemedialayer":"form"===w?-1<e.indexOf(D,"Survey123")?"survey":"datafilesgray":"maps";return w?q.toUrl("../css/images/item_type_icons/"+w+"16.png"):null},_getIsPremiumContent:function(){var w=this.typeKeywords,D=!1;if(-1<e.indexOf(w,"Requires Subscription")||-1<e.indexOf(w,"Requires Credits"))D=!0;return D},_getPremiumIconUrl:function(){var w=this.typeKeywords,D;this.isPremiumContent&&(D=
-1<e.indexOf(w,"Requires Credits")?"premiumcredits":"premiumitem");return D?q.toUrl("../css/images/item_type_icons/"+D+"16.png"):null},getThumbnailUrl:function(w){var D=this.thumbnailUrl;D&&w&&(D+=(-1===D.indexOf("?")?"?":"\x26")+"w\x3d"+w);return D}}),z=F([],{declaredClass:"esri.arcgis.PortalListing",constructor:function(w){u.mixin(this,w);this.id=this.itemId;this.url=(this.portal&&this.portal.portalUrl)+"content/"+(this.userItemUrl?"items/":"listings/")+this.itemId;this.commentsUrl=this.url+"/comments";
this.created=this.created?new Date(this.created):null;this.banner=this.banner?h.formatUrl(this.url+"/info/"+this.banner):"";this.thumbnail=this.thumbnail?h.formatUrl(this.url+"/info/"+this.thumbnail):"";this.largeThumbnail=this.largeThumbnail?h.formatUrl(this.url+"/info/"+this.largeThumbnail):"";this.avgRating=this.avgRating||0;this.numRatings=this.numRatings||0;this.numComments=this.numComments||0;this.listingProperties=this.listingProperties||{priceDesc:"",creditsPerTransaction:0,licenseType:"free",
trialSupported:!1,trialDuration:0,listingAccess:"private"};for(var D in this.listingProperties)this[D]&&(this.listingProperties[D]=this[D]);this.properties=this.properties||{systemRequirements:"",termsAndConditions:"",version:"1.0"};this.screenshots=e.map(this.screenshots,u.hitch(this,function(t){return h.formatUrl(this.url+"/info/"+t)}));this.vendorName=this.vendor.name;this.vendor.thumbnail=this.vendor.thumbnail?this.userItemUrl?h.formatUrl(this.portal.portalUrl+"/portals/self/resources/"+this.vendor.thumbnail):
h.formatUrl(this.url+"/vendorinfo/"+this.vendor.thumbnail):""},getComments:function(){return h.requestToTypedArray(this.commentsUrl,null,null,c,{item:this})},getVendor:function(){return this.vendor}}),C=F([],{declaredClass:"esri.arcgis.PortalProvision",constructor:function(w){u.mixin(this,w);this.created=this.created?new Date(this.created):null;this.startDate=this.startDate?new Date(this.startDate):null;this.endDate=this.endDate&&-1!==this.endDate?new Date(this.endDate):null;this.listing=w.listing?
new z(u.mixin(w.listing,{portal:this.portal})):null}}),x=F([],{declaredClass:"esri.arcgis.PortalGroup",constructor:function(w){u.mixin(this,w);this.url=(this.portal&&this.portal.portalUrl)+"community/groups/"+this.id;this.thumbnailUrl=h.formatUrl(this.url+"/info/"+this.thumbnail);this.modified=this.modified?new Date(this.modified):null;this.created=this.created?new Date(this.created):null},getMembers:function(){return h.request(this.url+"/users")},queryItems:function(w,D){w=h.formatQueryParams({},
w,D);w.q="group:"+this.id+(w.q?" "+w.q:"");return this.portal.queryItems(w)},getThumbnailUrl:function(w){var D=this.thumbnailUrl;D&&w&&(D+=(-1===D.indexOf("?")?"?":"\x26")+"w\x3d"+w);return D}}),E=F([],{declaredClass:"esri.arcgis.PortalFolder",constructor:function(w){u.mixin(this,w);this.url=(this.portal&&this.portal.portalUrl)+"content/users/"+this.username+"/"+this.id;this.created=this.created?new Date(this.created):null},getItems:function(){return h.requestToTypedArray(this.url,null,null,v,{portal:this.portal,
folderId:this.id})}}),B=F([],{declaredClass:"esri.arcgis.PortalUser",constructor:function(w){u.mixin(this,w);this.url=(this.portal&&this.portal.portalUrl)+"community/users/"+this.username;this.userContentUrl=(this.portal&&this.portal.portalUrl)+"content/users/"+this.username;this.thumbnailUrl=this.thumbnail?h.formatUrl(this.url+"/info/"+this.thumbnail):null;this.modified=this.modified?new Date(this.modified):null;this.created=this.created?new Date(this.created):null},getGroups:function(){return n(h.request(this.url).then(u.hitch(this,
function(w){return h.resultsToTypedArray(x,{portal:this.portal},w.groups)})))},getNotifications:function(){return h.requestToTypedArray(this.url+"/notifications",null,null,null,{portal:this.portal})},getGroupInvitations:function(){return h.requestToTypedArray(this.url+"/invitations",null,null,null,{portal:this.portal})},getTags:function(){return h.requestToTypedArray(this.url+"/tags",null,null,null,{portal:this.portal})},getFolders:function(){return n(this.getContent(null,{num:1}).then(function(w){return w.folders}))},
getItems:function(w){return n(this.getContent(w).then(function(D){return D.items}))},getItem:function(w){return h.request(this.portal.portalUrl+"content/items/"+w).then(u.hitch(this,function(D){return new v(u.mixin(D,{portal:this.portal}))}))},getContent:function(w,D){var t=this.url.replace("/community/","/content/")+(w?"/"+w:"");return h.request(t,D).then(u.hitch(this,function(A){A.folders=h.resultsToTypedArray(E,{portal:this.portal},A.folders);A.items=h.resultsToTypedArray(v,{portal:this.portal,
folderId:w},A.items);return A}))},getThumbnailUrl:function(w){var D=this.thumbnailUrl;D&&w&&(D+=(-1===D.indexOf("?")?"?":"\x26")+"w\x3d"+w);return D}});F={Portal:F([l],{declaredClass:"esri.arcgis.Portal",onLoad:function(){},onError:function(){},constructor:function(w){w=u.isObject(w)?w:{url:w};this.registerConnectEvents();k={options:{disableIdentityLookup:!0},requestParams:{f:"json"}};w.self?(k.self=w.self,u.mixin(this,{url:w.url||d.getProtocolForWebResource()+"//"+(w.self.urlKey?w.self.urlKey+"."+
w.self.customBaseUrl:w.self.portalHostname)}),this.portalUrl=-1!==this.url.indexOf("/sharing")?this.url+"/":this.url+"/sharing/rest/",w=w.self.user?this.signIn():this.init(this.url)):(w.url&&u.mixin(this,{url:w.url}),w=this.init(this.url));w.then(u.hitch(this,function(){this.emit("ready",this);this.onLoad(this)}))},init:function(w,D){w=(w||this.portalUrl).replace(/\/+$/,"");this.portalUrl=-1!==w.indexOf("/sharing")?w+"/":w+"/sharing/rest/";d.canUseXhr(this.portalUrl)||m.defaults.io.corsEnabledServers.push(this.portalUrl.replace(/^https?:\/\//i,
""));return this._getSelf(this.portalUrl).then(u.hitch(this,function(t){k.self=u.mixin({},t);(t=t.user)&&D&&(k.currentToken=D&&D.token,k.loggedInUser=new B(u.mixin(t,{portal:this,credential:D})));k.self.id&&!1===k.self.canSearchPublic&&(k.extraQuery=" AND orgid:"+k.self.id);u.mixin(this,k.self);this.thumbnailUrl=h.formatUrl(this.portalUrl+"portals/self/resources/"+this.thumbnail);this.isOrganization=this.access&&this.access.length?!0:!1;this.created=this.created?new Date(this.created):null;this.modified=
this.modified?new Date(this.modified):null;return this}),u.hitch(this,function(t){this.onError(t);throw t;}))},signIn:function(){var w=new p,D=u.hitch(this,function(){this._onSignIn().then(u.hitch(this,function(){w.resolve(k.loggedInUser)}),u.hitch(this,function(t){w.reject(t)}))});if(k&&k.self)k&&k.loggedInUser?setTimeout(function(){w.resolve(k.loggedInUser)},0):D();else this.on("load",u.hitch(this,function(){D()}));return w},signOut:function(){k.loggedInUser.credential&&k.loggedInUser.credential.destroy();
k.loggedInUser=null;k.options.disableIdentityLookup=!0;h.clearFieldsFromObject(k.self,this);k.self=null;return this.init(this.url)},getPortalUser:function(){return k.loggedInUser},addResource:function(w,D){return h.request(this.portalUrl+"portals/self/addResource",{key:w,text:D},{usePost:!0})},update:function(w){return h.request(this.portalUrl+"portals/self/update",w,{usePost:!0})},queryGroups:function(w,D){return this._queryPortal(this.portalUrl+"community/groups",h.formatQueryParams({},w,D),x)},
queryItems:function(w,D){return this._queryPortal(this.portalUrl+"search",h.formatQueryParams({},w,D),v)},queryListings:function(w){w=h.formatQueryParams({},w,!0);var D="";w.q&&-1<w.q.toLowerCase().indexOf("mylistings:true")?(w.q=w.q.toLowerCase().replace("mylistings:true",""),D="?mylistings\x3dtrue"):w.q||(w.q='""');return this._queryPortal(this.portalUrl+"content/listings"+D,w,z)},queryCustomerList:function(w,D){w=h.formatQueryParams({},w,!0);return this._queryPortal(this.portalUrl+"portals/self/customersList",
w)},getProvisions:function(){return this.getCustomers().then(u.hitch(this,function(w){return w.purchases}))},getInterests:function(){return this.getCustomers().then(u.hitch(this,function(w){return w.interests}))},getTrials:function(){return this.getCustomers().then(u.hitch(this,function(w){return w.trials}))},getCustomers:function(w){return h.request(this.portalUrl+"portals/self/customers",{status:w||"all"})},getMyPurchases:function(){return this.getPurchases().then(function(w){return w.purchases})},
getMyInterests:function(){return this.getPurchases().then(function(w){return w.interests})},getPurchases:function(){return h.request(this.portalUrl+"portals/self/purchases").then(u.hitch(this,function(w){w.interests=e.map(w.interests,function(D){return u.mixin(D.provision,{listing:D.listing})});w.purchases=e.map(w.purchases,function(D){return u.mixin(D.provision,{listing:D.listing})});w.trials=e.map(w.trials,function(D){return u.mixin(D.provision,{listing:D.listing})});w.interests=h.resultsToTypedArray(C,
{portal:this},w.interests);w.trials=h.resultsToTypedArray(C,{portal:this},w.trials);w.purchases=h.resultsToTypedArray(C,{portal:this},w.purchases);return w}))},queryUsers:function(w,D){return this._queryPortal(this.portalUrl+"community/users",h.formatQueryParams({sortField:"username"},w,D),B)},_onSignIn:function(){k.options.disableIdentityLookup=!1;k.self=null;return f.id.getCredential(this.portalUrl).then(u.hitch(this,"init",this.url)).then(function(){return k.loggedInUser},u.hitch(this,function(w){k.options.disableIdentityLookup=
!0;this.onError(w);throw w;}))},_getSelf:function(w){w+="portals/self";if(k.self){var D=new p;setTimeout(function(){D.resolve(k.self)},0)}else D=h.request(w,{culture:b.locale,withCredentials:!0});return D},_queryPortal:function(w,D,t){var A=u.mixin({num:10,start:0,sortField:"title",sortOrder:"asc"},D),G=["start","query","num","nextStart"];w=h.request(w,A).then(u.hitch(this,function(J){J.results=h.resultsToTypedArray(t,{portal:this},J);J.queryParams=u.mixin({},A);J.nextQueryParams=u.mixin(A,{start:J.nextStart});
return h.clearFieldsFromObject(G,J)}));w=u.delegate(w);w.queryParams=u.mixin({},A);w.nextQueryParams=p.when(w,function(J){return J.nextQueryParams});return n(w)}}),PortalFolder:E,PortalGroup:x,PortalItem:v,PortalUser:B,PortalComment:c,PortalRating:r,PortalUtil:h,PortalResult:n,PortalListing:z};y("extend-esri")&&u.mixin(u.getObject("arcgis",!0,f),F);return F})},"esri/IdentityManager":function(){define(["./IdentityManagerDialog","./kernel","./OAuthSignInHandler","dojo/_base/declare"],function(F,u,b,
p){F=new F;u.id=p.safeMixin(F,b);return u.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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h){u=u([n],{declaredClass:"esri.IdentityManager",
_eventMap:{"dialog-cancel":["info"]},constructor:function(c){e.mixin(this,c);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(c,r,v){this._nls||(this._nls=h.identity);this._loginDialog||(this._loginDialog=this.dialog=this._createLoginDialog(),this.onDialogCreate());var z=this._loginDialog,C=v&&v.error,x=v&&v.token,E=new p(function(){z.onCancel()});if(z.open)return c=Error("BUSY"),c.name="identity-manager:busy",c.code="IdentityManager.1",c.log=!!b.isDebug,E.errback(c),E;l.hide(z.errMsg_);C&&403==C.code&&x&&(q.set(z.errMsg_,"innerHTML",this._nls.forbidden),
l.show(z.errMsg_));z.dfd_=E;z.serverInfo_=r;z.resUrl_=c;z.admin_=v&&v.isAdmin;q.set(z.resLink_,{title:c,innerHTML:"("+(this.getResourceName(c)||this._nls.lblItem)+")"});q.set(z.serverLink_,{title:r.server,innerHTML:(-1!==r.server.toLowerCase().indexOf("arcgis.com")?"ArcGIS Online":r.server)+" "});z.txtPwd_.set("value","");z.show();return E},_createLoginDialog:function(){var c=this._nls,r=d.substitute(c,this._dialogContent);r=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"},r);var v=new g({title:c.title,content:r,"class":"esriSignInDialog",style:"width: 18em;",esriIdMgr_:this,keypressed_:function(z){z.charOrCode===m.ENTER&&this.execute_()},execute_:function(){var z=this.txtUser_.get("value"),C=this.txtPwd_.get("value"),x=this.dfd_,E=this;if(this.form_.validate()&&z&&C){this.btnSubmit_.set("label",c.lblSigning);var B=a.id.findCredential(E.resUrl_,z),w=function(D){E.btnSubmit_.set("label",
c.lblOk);E.btnSubmit_.set("disabled",!1);l.hide(E.errMsg_);E.hide();g._DialogLevelManager.hide(E);var t=E.serverInfo_;E.dfd_=E.serverInfo_=E.generateDfd_=E.resUrl_=null;var A=B;if(D){var G=D.token;var J=d.isDefined(D.expires)?Number(D.expires):null;var U=!!D.ssl;A?(A.userId=z,A.token=G,A.expires=J,A.validity=D.validity,A.ssl=U,A.creationTime=(new Date).getTime()):A=new k({userId:z,server:t.server,token:G,expires:J,ssl:U,isAdmin:E.admin_,validity:D.validity})}x.callback(A)};B&&!B._enqueued?w():(E.btnSubmit_.set("disabled",
!0),E.generateDfd_=a.id.generateToken(this.serverInfo_,{username:z,password:C},{isAdmin:this.admin_}).addCallback(w).addErrback(function(D){E.btnSubmit_.set("disabled",!1);E.generateDfd_=null;E.btnSubmit_.set("label",c.lblOk);q.set(E.errMsg_,"innerHTML",D&&D.code?c.invalidUser:c.noAuthService);l.show(E.errMsg_)}))}},cancel_:function(){v.generateDfd_&&v.generateDfd_.cancel();var z=v.dfd_,C=v.resUrl_,x=v.serverInfo_;v.btnSubmit_.set("disabled",!1);v.dfd_=v.serverInfo_=v.generateDfd_=v.resUrl_=null;
l.hide(v.errMsg_);g._DialogLevelManager.hide(v);v.esriIdMgr_.onDialogCancel({resourceUrl:C,serverInfo:x});C=Error("ABORTED");C.name="identity-manager:user-aborted";C.code="IdentityManager.2";C.log=!!b.isDebug;z.errback(C)}});r=v.domNode;v.form_=f.byNode(F.query(".esriIdForm",r)[0]);v.txtUser_=f.byNode(F.query(".esriIdUser",r)[0]);v.txtPwd_=f.byNode(F.query(".esriIdPwd",r)[0]);v.btnSubmit_=f.byNode(F.query(".esriIdSubmit",r)[0]);v.btnCancel_=f.byNode(F.query(".esriIdCancel",r)[0]);v.resLink_=F.query(".resLink",
r)[0];v.serverLink_=F.query(".serverLink",r)[0];v.errMsg_=F.query(".esriErrorMsg",r)[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}});y("extend-esri")&&(a.IdentityManagerDialog=a.IdentityManager=u);return u})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r,v,z,C,x,E,B,w,D,t,A,G,J,U){function ja(){}var Z=new e;Z.resolve(!0);x=p("dijit._DialogBase"+(h("dojo-bidi")?"_NoBidi":""),[B,D,t,w],{templateString:U,baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},_setTitleAttr:{node:"titleNode",type:"innerHTML"},open:!1,duration:x.defaultDuration,refocus:!0,autofocus:!0,_firstFocusItem:null,_lastFocusItem:null,draggable:!0,_setDraggableAttr:function(ea){this._set("draggable",ea)},maxRatio:.9,
closable:!0,_setClosableAttr:function(ea){this.closeButtonNode.style.display=ea?"":"none";this._set("closable",ea)},postMixInProperties:function(){var ea=a.getLocalization("dijit","common");l.mixin(this,ea);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",l.hitch(this,"hide"),!0);b.after(this,"onCancel",l.hitch(this,"hide"),!0);k(this.closeButtonNode,
c.press,function(ea){ea.stopPropagation()});this._modalconnects=[]},onLoad:function(){this.resize();this._position();this.autofocus&&qa.isTop(this)&&(this._getFocusItems(),C.focus(this._firstFocusItem));this.inherited(arguments)},focus:function(){this._getFocusItems();C.focus(this._firstFocusItem)},_endDrag:function(){var ea=m.position(this.domNode),ba=r.getBox(this.ownerDocument);ea.y=Math.min(Math.max(ea.y,0),ba.h-ea.h);ea.x=Math.min(Math.max(ea.x,0),ba.w-ea.w);this._relativePosition=ea;this._position()},
_setup:function(){var ea=this.domNode;this.titleBar&&this.draggable?(this._moveable=new (6==h("ie")?z:v)(ea,{handle:this.titleBar}),b.after(this._moveable,"onMoveStop",l.hitch(this,"_endDrag"),!0)):q.add(ea,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":u.map(this["class"].split(/\s/),function(ba){return ba+"_underlay"}).join(" "),_onKeyDown:l.hitch(this,"_onKey"),ownerDocument:this.ownerDocument}},_size:function(){this.resize()},_position:function(){if(!q.contains(this.ownerDocumentBody,
"dojoMove")){var ea=this.domNode,ba=r.getBox(this.ownerDocument),ma=this._relativePosition,va=m.position(ea);f.set(ea,{left:Math.floor(ba.l+(ma?Math.min(ma.x,ba.w-va.w):(ba.w-va.w)/2))+"px",top:Math.floor(ba.t+(ma?Math.min(ma.y,ba.h-va.h):(ba.h-va.h)/2))+"px"})}},_onKey:function(ea){if(ea.keyCode==d.TAB){this._getFocusItems();var ba=ea.target;this._firstFocusItem==this._lastFocusItem?(ea.stopPropagation(),ea.preventDefault()):ba==this._firstFocusItem&&ea.shiftKey?(C.focus(this._lastFocusItem),ea.stopPropagation(),
ea.preventDefault()):ba!=this._lastFocusItem||ea.shiftKey||(C.focus(this._firstFocusItem),ea.stopPropagation(),ea.preventDefault())}else this.closable&&ea.keyCode==d.ESCAPE&&(this.onCancel(),ea.stopPropagation(),ea.preventDefault())},show:function(){if(this.open)return Z.promise;this._started||this.startup();this._alreadyInitialized||(this._setup(),this._alreadyInitialized=!0);this._fadeOutDeferred&&(this._fadeOutDeferred.cancel(),qa.hide(this));var ea=r.get(this.ownerDocument);this._modalconnects.push(k(ea,
"scroll",l.hitch(this,"resize",null)));this._modalconnects.push(k(this.domNode,"keydown",l.hitch(this,"_onKey")));f.set(this.domNode,{opacity:0,display:""});this._set("open",!0);this._onShow();this.resize();this._position();this._fadeInDeferred=new e(l.hitch(this,function(){ba.stop();delete this._fadeInDeferred}));this._fadeInDeferred.then(void 0,ja);ea=this._fadeInDeferred.promise;var ba=g.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:l.hitch(this,function(){qa.show(this,this.underlayAttrs)}),
onEnd:l.hitch(this,function(){this.autofocus&&qa.isTop(this)&&(this._getFocusItems(),C.focus(this._firstFocusItem));this._fadeInDeferred.resolve(!0);delete this._fadeInDeferred})}).play();return ea},hide:function(){if(!this._alreadyInitialized||!this.open)return Z.promise;this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred=new e(l.hitch(this,function(){ba.stop();delete this._fadeOutDeferred}));this._fadeOutDeferred.then(void 0,ja);this._fadeOutDeferred.then(l.hitch(this,"onHide"));
var ea=this._fadeOutDeferred.promise;var ba=g.fadeOut({node:this.domNode,duration:this.duration,onEnd:l.hitch(this,function(){this.domNode.style.display="none";qa.hide(this);this._fadeOutDeferred.resolve(!0);delete this._fadeOutDeferred})}).play();this._scrollConnected&&(this._scrollConnected=!1);for(var ma;ma=this._modalconnects.pop();)ma.remove();this._relativePosition&&delete this._relativePosition;this._set("open",!1);return ea},resize:function(ea){if("none"!=this.domNode.style.display){this._checkIfSingleChild();
if(!ea){this._shrunk&&(this._singleChild&&"undefined"!=typeof this._singleChildOriginalStyle&&(this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle,delete this._singleChildOriginalStyle),u.forEach([this.domNode,this.containerNode,this.titleBar,this.actionBarNode],function(da){da&&f.set(da,{position:"static",width:"auto",height:"auto"})}),this.domNode.style.position="absolute");var ba=r.getBox(this.ownerDocument);ba.w*=this.maxRatio;ba.h*=this.maxRatio;var ma=m.position(this.domNode);
this._shrunk=!1;ma.w>=ba.w&&(ea={w:ba.w},m.setMarginBox(this.domNode,ea),ma=m.position(this.domNode),this._shrunk=!0);ma.h>=ba.h&&(ea||(ea={w:ma.w}),ea.h=ba.h,this._shrunk=!0);ea&&(ea.w||(ea.w=ma.w),ea.h||(ea.h=ma.h))}if(ea){m.setMarginBox(this.domNode,ea);ba=[];this.titleBar&&ba.push({domNode:this.titleBar,region:"top"});this.actionBarNode&&ba.push({domNode:this.actionBarNode,region:"bottom"});ma={domNode:this.containerNode,region:"center"};ba.push(ma);var va=J.marginBox2contentBox(this.domNode,
ea);J.layoutChildren(this.domNode,va,ba);this._singleChild?(ba=J.marginBox2contentBox(this.containerNode,ma),this._singleChild.resize({w:ba.w,h:ba.h})):(this.containerNode.style.overflow="auto",this._layoutChildren())}else this._layoutChildren();h("touch")||ea||this._position()}},_layoutChildren:function(){u.forEach(this.getChildren(),function(ea){ea.resize&&ea.resize()})},destroy:function(){this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred&&this._fadeOutDeferred.cancel();
this._moveable&&this._moveable.destroy();for(var ea;ea=this._modalconnects.pop();)ea.remove();qa.hide(this);this.inherited(arguments)}});h("dojo-bidi")&&(x=p("dijit._DialogBase",x,{_setTitleAttr:function(ea){this._set("title",ea);this.titleNode.innerHTML=ea;this.applyTextDir(this.titleNode)},_setTextDirAttr:function(ea){this._created&&this.textDir!=ea&&(this._set("textDir",ea),this.set("title",this.title))}}));var fa=p("dijit.Dialog",[G,x],{});fa._DialogBase=x;var qa=fa._DialogLevelManager={_beginZIndex:950,
show:function(ea,ba){V[V.length-1].focus=C.curNode;var ma=V[V.length-1].dialog?V[V.length-1].zIndex+2:fa._DialogLevelManager._beginZIndex;f.set(ea.domNode,"zIndex",ma);A.show(ba,ma-1);V.push({dialog:ea,underlayAttrs:ba,zIndex:ma})},hide:function(ea){if(V[V.length-1].dialog==ea){V.pop();var ba=V[V.length-1];1==V.length?A.hide():A.show(ba.underlayAttrs,ba.zIndex-1);if(ea.refocus&&(ea=ba.focus,!ba.dialog||ea&&y.isDescendant(ea,ba.dialog.domNode)||(ba.dialog._getFocusItems(),ea=ba.dialog._firstFocusItem),
ea))try{ea.focus()}catch(ma){}}else ba=u.indexOf(u.map(V,function(ma){return ma.dialog}),ea),-1!=ba&&V.splice(ba,1)},isTop:function(ea){return V[V.length-1].dialog==ea}},V=fa._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];C.watch("curNode",function(ea,ba,ma){ea=V[V.length-1].dialog;if(ma&&ea&&!ea._fadeOutDeferred&&ma.ownerDocument==ea.ownerDocument){do if(ma==ea.domNode||q.contains(ma,"dijitPopup"))return;while(ma=ma.parentNode);ea.focus()}});h("dijit-legacy-requires")&&n(0,function(){F(["dijit/TooltipDialog"])});
return fa})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l){function k(c,r){"touchAction"in document.body.style?n="touchAction":"msTouchAction"in document.body.style&&(n="msTouchAction");h=function(v,z){v.style[n]=z};h(c,r)}var n,h=function(){};q("touch-action")&&(h=k);return u("dojo.dnd.Moveable",[y],{handle:"",delay:0,
skip:!1,constructor:function(c,r){this.node=p.byId(c);h(this.node,"none");r||(r={});this.handle=r.handle?p.byId(r.handle):null;this.handle||(this.handle=this.node);this.delay=0<r.delay?r.delay:0;this.skip=r.skip;this.mover=r.mover?r.mover:d;this.events=[m(this.handle,g.press,b.hitch(this,"onMouseDown")),m(this.handle,"dragstart",b.hitch(this,"onSelectStart")),m(this.handle,"selectstart",b.hitch(this,"onSelectStart"))]},markupFactory:function(c,r,v){return new v(r,c)},destroy:function(){F.forEach(this.events,
function(c){c.remove()});h(this.node,"");this.events=this.node=this.handle=null},onMouseDown:function(c){if(!this.skip||!a.isFormElement(c)){if(this.delay)this.events.push(m(this.handle,g.move,b.hitch(this,"onMouseMove")),m(this.handle.ownerDocument,g.release,b.hitch(this,"onMouseUp"))),this._lastX=c.pageX,this._lastY=c.pageY;else this.onDragDetected(c);c.stopPropagation();c.preventDefault()}},onMouseMove:function(c){if(Math.abs(c.pageX-this._lastX)>this.delay||Math.abs(c.pageY-this._lastY)>this.delay)this.onMouseUp(c),
this.onDragDetected(c);c.stopPropagation();c.preventDefault()},onMouseUp:function(c){for(var r=0;2>r;++r)this.events.pop().remove();c.stopPropagation();c.preventDefault()},onSelectStart:function(c){this.skip&&a.isFormElement(c)||(c.stopPropagation(),c.preventDefault())},onDragDetected:function(c){new this.mover(this.node,c,this)},onMoveStart:function(c){f.publish("/dnd/move/start",c);e.add(l.body(),"dojoMove");e.add(this.node,"dojoMoveItem")},onMoveStop:function(c){f.publish("/dnd/move/stop",c);e.remove(l.body(),
"dojoMove");e.remove(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(c,r){this.onMoving(c,r);var v=c.node.style;v.left=r.l+"px";v.top=r.t+"px";this.onMoved(c,r)},onMoving:function(){},onMoved:function(){}})})},"dojo/dnd/common":function(){define(["../sniff","../_base/kernel","../_base/lang","../dom"],function(F,u,b,p){var e=b.getObject("dojo.dnd",!0);e.getCopyKeyState=function(y){return y[F("mac")?"metaKey":"ctrlKey"]};e._uniqueId=0;e.getUniqueId=function(){do var y=u._scopeName+
"Unique"+ ++e._uniqueId;while(p.byId(y));return y};e._empty={};e.isFormElement=function(y){y=y.target;3==y.nodeType&&(y=y.parentNode);return 0<=" a button textarea input select option ".indexOf(" "+y.tagName.toLowerCase()+" ")};return e})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l){return u("dojo.dnd.Mover",
[f],{constructor:function(k,n,h){function c(r){r.preventDefault();r.stopPropagation()}this.node=y.byId(k);this.marginBox={l:n.pageX,t:n.pageY};this.mouseButton=n.button;n=this.host=h;k=k.ownerDocument;this.events=[g(k,a.move,b.hitch(this,"onFirstMove")),g(k,a.move,b.hitch(this,"onMouseMove")),g(k,a.release,b.hitch(this,"onMouseUp")),g(k,"dragstart",c),g(k.body,"selectstart",c)];l.autoScrollStart(k);if(n&&n.onMoveStart)n.onMoveStart(this)},onMouseMove:function(k){l.autoScroll(k);var n=this.marginBox;
this.host.onMove(this,{l:n.l+k.pageX,t:n.t+k.pageY},k);k.preventDefault();k.stopPropagation()},onMouseUp:function(k){(p("webkit")&&p("mac")&&2==this.mouseButton?0==k.button:this.mouseButton==k.button)&&this.destroy();k.preventDefault();k.stopPropagation()},onFirstMove:function(k){var n=this.node.style,h=this.host;switch(n.position){case "relative":case "absolute":var c=Math.round(parseFloat(n.left))||0;n=Math.round(parseFloat(n.top))||0;break;default:n.position="absolute";n=q.getMarginBox(this.node);
c=e.doc.body;var r=m.getComputedStyle(c),v=q.getMarginBox(c,r);r=q.getContentBox(c,r);c=n.l-(r.l-v.l);n=n.t-(r.t-v.t)}this.marginBox.l=c-this.marginBox.l;this.marginBox.t=n-this.marginBox.t;if(h&&h.onFirstMove)h.onFirstMove(this,k);this.events.shift().remove()},destroy:function(){F.forEach(this.events,function(n){n.remove()});var k=this.host;if(k&&k.onMoveStop)k.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(F,u,b,p,e,y){var q={};F.setObject("dojo.dnd.autoscroll",q);q.getViewport=y.getBox;q.V_TRIGGER_AUTOSCROLL=32;q.H_TRIGGER_AUTOSCROLL=32;q.V_AUTOSCROLL_VALUE=16;q.H_AUTOSCROLL_VALUE=16;var m,f=b.doc,g=Infinity,a=Infinity;q.autoScrollStart=function(d){f=d;m=y.getBox(f);d=b.body(f).parentNode;g=Math.max(d.scrollHeight-m.h,0);a=Math.max(d.scrollWidth-m.w,0)};q.autoScroll=function(d){var l=m||y.getBox(f),k=b.body(f).parentNode,n=0,h=0;d.clientX<q.H_TRIGGER_AUTOSCROLL?n=-q.H_AUTOSCROLL_VALUE:d.clientX>
l.w-q.H_TRIGGER_AUTOSCROLL&&(n=Math.min(q.H_AUTOSCROLL_VALUE,a-k.scrollLeft));d.clientY<q.V_TRIGGER_AUTOSCROLL?h=-q.V_AUTOSCROLL_VALUE:d.clientY>l.h-q.V_TRIGGER_AUTOSCROLL&&(h=Math.min(q.V_AUTOSCROLL_VALUE,g-k.scrollTop));window.scrollBy(n,h)};q._validNodes={div:1,p:1,td:1};q._validOverflow={auto:1,scroll:1};q.autoScrollNodes=function(d){for(var l,k,n,h,c,r=0,v=0,z=d.target;z;){if(1==z.nodeType&&z.tagName.toLowerCase()in q._validNodes){n=e.getComputedStyle(z);c=n.overflowX.toLowerCase()in q._validOverflow;
h=n.overflowY.toLowerCase()in q._validOverflow;if(c||h)l=p.getContentBox(z,n),k=p.position(z,!0);if(c){n=Math.min(q.H_TRIGGER_AUTOSCROLL,l.w/2);c=d.pageX-k.x;if(u("webkit")||u("opera"))c+=b.body().scrollLeft;r=0;0<c&&c<l.w&&(c<n?r=-n:c>l.w-n&&(r=n),z.scrollLeft+=r)}if(h){h=Math.min(q.V_TRIGGER_AUTOSCROLL,l.h/2);n=d.pageY-k.y;if(u("webkit")||u("opera"))n+=b.body().scrollTop;v=0;0<n&&n<l.h&&(n<h?v=-h:n>l.h-h&&(v=h),z.scrollTop+=v)}if(r||v)return}try{z=z.parentNode}catch(C){z=null}}q.autoScroll(d)};
return q})},"dojo/dnd/TimedMoveable":function(){define(["../_base/declare","./Moveable"],function(F,u){var b=u.prototype.onMove;return F("dojo.dnd.TimedMoveable",u,{timeout:40,constructor:function(p,e){e||(e={});e.timeout&&"number"==typeof e.timeout&&0<=e.timeout&&(this.timeout=e.timeout)},onMoveStop:function(p){p._timer&&(clearTimeout(p._timer),b.call(this,p,p._leftTop));u.prototype.onMoveStop.apply(this,arguments)},onMove:function(p,e){p._leftTop=e;if(!p._timer){var y=this;p._timer=setTimeout(function(){p._timer=
null;b.call(y,p,p._leftTop)},this.timeout)}}})})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l){function k(){}function n(h){return function(c,r,v,z){return c&&"string"==typeof r&&c[r]==k?c.on(r.substring(2).toLowerCase(),q.hitch(v,z)):h.apply(b,arguments)}}
F.around(b,"connect",n);y.connect&&F.around(y,"connect",n);F=p("dijit._Widget",[a,d,l],{onClick:k,onDblClick:k,onKeyDown:k,onKeyPress:k,onKeyUp:k,onMouseDown:k,onMouseMove:k,onMouseOut:k,onMouseOver:k,onMouseLeave:k,onMouseEnter:k,onMouseUp:k,constructor:function(h){this._toConnect={};for(var c in h)this[c]===k&&(this._toConnect[c.replace(/^on/,"").toLowerCase()]=h[c],delete h[c])},postCreate:function(){this.inherited(arguments);for(var h in this._toConnect)this.on(h,this._toConnect[h]);delete this._toConnect},
on:function(h,c){return this[this._onMap(h)]===k?b.connect(this.domNode,h.toLowerCase(),this,c):this.inherited(arguments)},_setFocusedAttr:function(h){this._focused=h;this._set("focused",h)},setAttribute:function(h,c){y.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(h,c)},attr:function(h,c){return 2<=arguments.length||"object"===typeof h?this.set.apply(this,arguments):this.get(h)},getDescendants:function(){y.deprecated(this.declaredClass+
"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?m("[widgetId]",this.containerNode).map(g.byNode):[]},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}});e("dijit-legacy-requires")&&f(0,function(){require(["dijit/_base"])});return F})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r,v,z,C,x,E){function B(D){return function(t){m[t?"set":"remove"](this.domNode,D,t);this._set(D,t)}}l.add("dijit-legacy-requires",!k.isAsync);l.add("dojo-bidi",!1);l("dijit-legacy-requires")&&c(0,function(){F(["dijit/_base/manager"])});var w={};p=y("dijit._WidgetBase",[r,C],{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(D){this._set("ownerDocument",D)},attributeMap:{},_blankGif:p.blankGif||F.toUrl("dojo/resources/blank.gif"),textDir:"",_introspect:function(){var D=this.constructor;if(!D._setterAttrs){var t=D.prototype,A=D._setterAttrs=[];D=D._onMap={};for(var G in t.attributeMap)A.push(G);for(G in t)/^on/.test(G)&&(D[G.substring(2).toLowerCase()]=G),/^_set[A-Z](.*)Attr$/.test(G)&&(G=G.charAt(4).toLowerCase()+
G.substr(5,G.length-9),t.attributeMap&&G in t.attributeMap||A.push(G))}},postscript:function(D,t){this.create(D,t)},create:function(D,t){this._introspect();this.srcNodeRef=q.byId(t);this._connects=[];this._supportingWidgets=[];this.srcNodeRef&&this.srcNodeRef.id&&"string"==typeof this.srcNodeRef.id&&(this.id=this.srcNodeRef.id);D&&(this.params=D,n.mixin(this,D));this.postMixInProperties();this.id||(this.id=E.getUniqueId(this.declaredClass.replace(/\./g,"_")),this.params&&delete this.params.id);this.ownerDocument=
this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:document);this.ownerDocumentBody=z.body(this.ownerDocument);E.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();if((D=this.srcNodeRef)&&D.parentNode&&this.domNode!==D){D.parentNode.replaceChild(this.domNode,D);var A=!0}this.domNode.setAttribute("widgetId",this.id)}this.postCreate();A&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var D={},t;for(t in this.params||{})D[t]=this._get(t);u.forEach(this.constructor._setterAttrs,
function(A){if(!(A in D)){var G=this._get(A);G&&this.set(A,G)}},this);for(t in D)this.set(t,D[t])},postMixInProperties:function(){},buildRendering:function(){this.domNode||(this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div"));if(this.baseClass){var D=this.baseClass.split(" ");this.isLeftToRight()||(D=D.concat(u.map(D,function(t){return t+"Rtl"})));f.add(this.domNode,D)}},postCreate:function(){},startup:function(){this._started||(this._started=!0,u.forEach(this.getChildren(),function(D){D._started||
D._destroyed||!n.isFunction(D.startup)||(D.startup(),D._started=!0)}))},destroyRecursive:function(D){this._beingDestroyed=!0;this.destroyDescendants(D);this.destroy(D)},destroy:function(D){function t(A){A.destroyRecursive?A.destroyRecursive(D):A.destroy&&A.destroy(D)}this._beingDestroyed=!0;this.uninitialize();u.forEach(this._connects,n.hitch(this,"disconnect"));u.forEach(this._supportingWidgets,t);this.domNode&&u.forEach(E.findWidgets(this.domNode,this.containerNode),t);this.destroyRendering(D);
E.remove(this.id);this._destroyed=!0},destroyRendering:function(D){this.bgIframe&&(this.bgIframe.destroy(D),delete this.bgIframe);this.domNode&&(D?m.remove(this.domNode,"widgetId"):g.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(D||g.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(D){u.forEach(this.getChildren(),function(t){t.destroyRecursive&&t.destroyRecursive(D)})},uninitialize:function(){return!1},_setStyleAttr:function(D){var t=this.domNode;n.isObject(D)?
d.set(t,D):t.style.cssText=t.style.cssText?t.style.cssText+("; "+D):D;this._set("style",D)},_attrToDom:function(D,t,A){A=3<=arguments.length?A:this.attributeMap[D];u.forEach(n.isArray(A)?A:[A],function(G){var J=this[G.node||G||"domNode"];switch(G.type||"attribute"){case "attribute":n.isFunction(t)&&(t=n.hitch(this,t));G=G.attribute?G.attribute:/^on[A-Z][a-zA-Z]*$/.test(D)?D.toLowerCase():D;J.tagName?m.set(J,G,t):J.set(G,t);break;case "innerText":J.innerHTML="";J.appendChild(this.ownerDocument.createTextNode(t));
break;case "textContent":J.textContent=t;break;case "innerHTML":J.innerHTML=t;break;case "class":f.replace(J,t,this[D]);break;case "toggleClass":f.toggle(J,G.className||D,t)}},this)},get:function(D){var t=this._getAttrNames(D);return this[t.g]?this[t.g]():this._get(D)},set:function(D,t){if("object"===typeof D){for(var A in D)this.set(A,D[A]);return this}A=this._getAttrNames(D);var G=this[A.s];if(n.isFunction(G))var J=G.apply(this,Array.prototype.slice.call(arguments,1));else{G=this.focusNode&&!n.isFunction(this.focusNode)?
"focusNode":"domNode";var U=this[G]&&this[G].tagName,ja;if((ja=U)&&!(ja=w[U])){ja=this[G];var Z={};for(fa in ja)Z[fa.toLowerCase()]=!0;ja=w[U]=Z}var fa=ja;A=D in this.attributeMap?this.attributeMap[D]:A.s in this?this[A.s]:fa&&A.l in fa&&"function"!=typeof t||/^aria-|^data-|^role$/.test(D)?G:null;null!=A&&this._attrToDom(D,t,A);this._set(D,t)}return J||this},_attrPairNames:{},_getAttrNames:function(D){var t=this._attrPairNames;if(t[D])return t[D];var A=D.replace(/^[a-z]|-[a-zA-Z]/g,function(G){return G.charAt(G.length-
1).toUpperCase()});return t[D]={n:D+"Node",s:"_set"+A+"Attr",g:"_get"+A+"Attr",l:A.toLowerCase()}},_set:function(D,t){var A=this[D];this[D]=t;!this._created||A===t||A!==A&&t!==t||(this._watchCallbacks&&this._watchCallbacks(D,A,t),this.emit("attrmodified-"+D,{detail:{prevValue:A,newValue:t}}))},_get:function(D){return this[D]},emit:function(D,t,A){t=t||{};void 0===t.bubbles&&(t.bubbles=!0);void 0===t.cancelable&&(t.cancelable=!0);t.detail||(t.detail={});t.detail.widget=this;var G,J=this["on"+D];J&&
(G=J.apply(this,A?A:[t]));this._started&&!this._beingDestroyed&&h.emit(this.domNode,D.toLowerCase(),t);return G},on:function(D,t){var A=this._onMap(D);return A?b.after(this,A,t,!0):this.own(h(this.domNode,D,t))[0]},_onMap:function(D){var t=this.constructor,A=t._onMap;if(!A){A=t._onMap={};for(var G in t.prototype)/^on/.test(G)&&(A[G.replace(/^on/,"").toLowerCase()]=G)}return A["string"==typeof D&&D.toLowerCase()]},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},
getChildren:function(){return this.containerNode?E.findWidgets(this.containerNode):[]},getParent:function(){return E.getEnclosingWidget(this.domNode.parentNode)},connect:function(D,t,A){return this.own(e.connect(D,t,this,A))[0]},disconnect:function(D){D.remove()},subscribe:function(D,t){return this.own(v.subscribe(D,n.hitch(this,t)))[0]},unsubscribe:function(D){D.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(D,t){var A=!D.tagName&&E.byId(D);!A||!A.addChild||t&&"number"!==typeof t?(D=A&&"domNode"in A?A.containerNode&&!/after|before|replace/.test(t||"")?A.containerNode:A.domNode:q.byId(D,this.ownerDocument),g.place(this.domNode,D,t),!this._started&&(this.getParent()||{})._started&&this.startup()):A.addChild(this,t);return this},defer:function(D,t){var A=setTimeout(n.hitch(this,function(){A&&(A=null,this._destroyed||n.hitch(this,D)())}),t||0);return{remove:function(){A&&
(clearTimeout(A),A=null);return null}}}});l("dojo-bidi")&&p.extend(x);return p})},"dijit/Destroyable":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(F,u,b){return b("dijit.Destroyable",null,{destroy:function(p){this._destroyed=!0},own:function(){var p=["destroyRecursive","destroy","remove"];F.forEach(arguments,function(e){function y(){q.remove();F.forEach(m,function(g){g.remove()})}var q=u.before(this,"destroy",function(g){e[f](g)}),m=[];if(e.then){var f="cancel";
e.then(y,y)}else F.forEach(p,function(g){"function"===typeof e[g]&&(f||(f=g),m.push(u.after(e,g,y,!0)))})},this);return arguments}})})},"dijit/_OnDijitClickMixin":function(){define("dojo/on dojo/_base/array dojo/keys dojo/_base/declare dojo/has ./a11yclick".split(" "),function(F,u,b,p,e,y){F=p("dijit._OnDijitClickMixin",null,{connect:function(q,m,f){return this.inherited(arguments,[q,"ondijitclick"==m?y:m,f])}});F.a11yclick=y;return F})},"dijit/_FocusMixin":function(){define(["./focus","./_WidgetBase",
"dojo/_base/declare","dojo/_base/lang"],function(F,u,b,p){p.extend(u,{focused:!1,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()}});return b("dijit._FocusMixin",null,{_focusManager:F})})},"dijit/hccss":function(){define(["dojo/dom-class","dojo/hccss","dojo/domReady","dojo/_base/window"],function(F,u,b,p){b(function(){u("highcontrast")&&F.add(p.body(),"dijit_a11y")});return u})},"dojo/hccss":function(){define("require ./_base/config ./dom-class ./dom-style ./has ./domReady ./_base/window".split(" "),
function(F,u,b,p,e,y,q){e.add("highcontrast",function(){var m=q.doc.createElement("div");try{m.style.cssText='border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;background-image: url("'+(u.blankGif||F.toUrl("./resources/blank.gif"))+'");';q.body().appendChild(m);var f=p.getComputedStyle(m),g=f.backgroundImage;return f.borderTopColor==f.borderRightColor||g&&("none"==g||"url(invalid-url:)"==g)}catch(a){return console.warn("hccss: exception detecting high-contrast mode, document is likely hidden: "+
a.toString()),!1}finally{8>=e("ie")?m.outerHTML="":q.body().removeChild(m)}});y(function(){e("highcontrast")&&b.add(q.body(),"dj_a11y")});return e})},"dijit/_TemplatedMixin":function(){define("dojo/cache dojo/_base/declare dojo/dom-construct dojo/_base/lang dojo/on dojo/sniff dojo/string ./_AttachMixin".split(" "),function(F,u,b,p,e,y,q,m){var f=u("dijit._TemplatedMixin",m,{templateString:null,templatePath:null,_skipNodeCache:!1,searchContainerNode:!0,_stringRepl:function(g){var a=this.declaredClass,
d=this;return q.substitute(g,this,function(l,k){"!"==k.charAt(0)&&(l=p.getObject(k.substr(1),!1,d));if("undefined"==typeof l)throw Error(a+" template:"+k);return null==l?"":"!"==k.charAt(0)?l:this._escapeValue(""+l)},this)},_escapeValue:function(g){return g.replace(/["'<>&]/g,function(a){return{"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;"}[a]})},buildRendering:function(){if(!this._rendered){this.templateString||(this.templateString=F(this.templatePath,{sanitize:!0}));
var g=f.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument);if(p.isString(g)){var a=b.toDom(this._stringRepl(g),this.ownerDocument);if(1!=a.nodeType)throw Error("Invalid template: "+g);}else a=g.cloneNode(!0);this.domNode=a}this.inherited(arguments);this._rendered||this._fillContent(this.srcNodeRef);this._rendered=!0},_fillContent:function(g){var a=this.containerNode;if(g&&a)for(;g.hasChildNodes();)a.appendChild(g.firstChild)}});f._templateCache={};f.getCachedTemplate=function(g,
a,d){var l=f._templateCache,k=g,n=l[k];if(n){try{if(!n.ownerDocument||n.ownerDocument==(d||document))return n}catch(h){}b.destroy(n)}g=q.trim(g);if(a||g.match(/\$\{([^\}]+)\}/g))return l[k]=g;a=b.toDom(g,d);if(1!=a.nodeType)throw Error("Invalid template: "+g);return l[k]=a};y("ie")&&e(window,"unload",function(){var g=f._templateCache,a;for(a in g){var d=g[a];"object"==typeof d&&b.destroy(d);delete g[a]}});return f})},"dojo/cache":function(){define(["./_base/kernel","./text"],function(F){return F.cache})},
"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(F,u,b,p,e,y,q,m,f){var g=e.delegate(m,{mouseenter:y.enter,mouseleave:y.leave,keypress:b._keypress}),a;b=p("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 l=d;;)if(1==l.nodeType&&(this._processTemplateNode(l,function(k,n){return k.getAttribute(n)},this._attach)||this.searchContainerNode)&&l.firstChild)l=l.firstChild;else{if(l==d)break;for(;!l.nextSibling;)if(l=l.parentNode,l==d)return;l=l.nextSibling}},_processTemplateNode:function(d,l,k){var n=!0,h=this.attachScope||this,c=l(d,"dojoAttachPoint")||l(d,"data-dojo-attach-point");if(c)for(var r=c.split(/\s*,\s*/);c=r.shift();)e.isArray(h[c])?
h[c].push(d):h[c]=d,n="containerNode"!=c,this._attachPoints.push(c);if(l=l(d,"dojoAttachEvent")||l(d,"data-dojo-attach-event"))for(c=l.split(/\s*,\s*/),r=e.trim;l=c.shift();)if(l){var v=null;-1!=l.indexOf(":")?(v=l.split(":"),l=r(v[0]),v=r(v[1])):l=r(l);v||(v=l);this._attachEvents.push(k(d,l,e.hitch(h,v)))}return n},_attach:function(d,l,k){l=l.replace(/^on/,"").toLowerCase();l="dijitclick"==l?a||(a=F("./a11yclick")):g[l]||l;return q(d,l,k)},_detachTemplateNodes:function(){var d=this.attachScope||
this;u.forEach(this._attachPoints,function(l){delete d[l]});this._attachPoints=[];u.forEach(this._attachEvents,function(l){l.remove()});this._attachEvents=[]},destroyRendering:function(){this._detachTemplateNodes();this.inherited(arguments)}});e.extend(f,{dojoAttachEvent:"",dojoAttachPoint:""});return b})},"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(F,u,b,p,e,y,q,m,f,g,a,d){u=u("dijit._CssStateMixin",[],{hovering:!1,active:!1,_applyAttributes:function(){this.inherited(arguments);F.forEach("disabled readOnly checked selected focused state hovering active _opened".split(" "),function(k){this.watch(k,y.hitch(this,"_setStateClass"))},this);for(var l in this.cssStateNodes||{})this._trackMouseState(this[l],this.cssStateNodes[l]);this._trackMouseState(this.domNode,this.baseClass);this._setStateClass()},_cssMouseEvent:function(l){if(!this.disabled)switch(l.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 l(v){k=k.concat(F.map(k,function(z){return z+v}),"dijit"+v)}var k=this.baseClass.split(" ");
this.isLeftToRight()||l("Rtl");var n="mixed"==this.checked?"Mixed":this.checked?"Checked":"";this.checked&&l(n);this.state&&l(this.state);this.selected&&l("Selected");this._opened&&l("Opened");this.disabled?l("Disabled"):this.readOnly?l("ReadOnly"):this.active?l("Active"):this.hovering&&l("Hover");this.focused&&l("Focused");n=this.stateNode||this.domNode;var h={};F.forEach(n.className.split(" "),function(v){h[v]=!0});"_stateClasses"in this&&F.forEach(this._stateClasses,function(v){delete h[v]});F.forEach(k,
function(v){h[v]=!0});var c=[],r;for(r in h)c.push(r);n.className=c.join(" ");this._stateClasses=k},_subnodeCssMouseEvent:function(l,k,n){function h(c){p.toggle(l,k+"Active",c)}if(!this.disabled&&!this.readOnly)switch(n.type){case "mouseover":case "MSPointerOver":case "pointerover":p.toggle(l,k+"Hover",!0);break;case "mouseout":case "MSPointerOut":case "pointerout":p.toggle(l,k+"Hover",!1);h(!1);break;case "mousedown":case "touchstart":case "MSPointerDown":case "pointerdown":case "keydown":h(!0);
break;case "mouseup":case "MSPointerUp":case "pointerup":case "dojotouchend":case "keyup":h(!1);break;case "focus":case "focusin":p.toggle(l,k+"Focused",!0);break;case "blur":case "focusout":p.toggle(l,k+"Focused",!1)}},_trackMouseState:function(l,k){l._cssState=k}});m(function(){function l(h,c,r){if(!r||!b.isDescendant(r,c))for(;c&&c!=r;c=c.parentNode)if(c._cssState){var v=d.getEnclosingWidget(c);v&&(c==v.domNode?v._cssMouseEvent(h):v._subnodeCssMouseEvent(c,c._cssState,h))}}var k=g.body(),n;q(k,
f.over,function(h){l(h,h.target,h.relatedTarget)});q(k,f.out,function(h){l(h,h.target,h.relatedTarget)});q(k,a.press,function(h){n=h.target;l(h,n)});q(k,a.release,function(h){l(h,n);n=null});q(k,"focusin, focusout",function(h){var c=h.target;if(c._cssState&&!c.getAttribute("widgetId")){var r=d.getEnclosingWidget(c);r&&r._subnodeCssMouseEvent(c,c._cssState,h)}})});return u})},"dijit/form/_FormMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/on dojo/window".split(" "),
function(F,u,b,p,e,y){return u("dijit.form._FormMixin",null,{state:"",_getDescendantFormWidgets:function(q){var m=[];F.forEach(q||this.getChildren(),function(f){"value"in f?m.push(f):m=m.concat(this._getDescendantFormWidgets(f.getChildren()))},this);return m},reset:function(){F.forEach(this._getDescendantFormWidgets(),function(q){q.reset&&q.reset()})},validate:function(){var q=!1;return F.every(F.map(this._getDescendantFormWidgets(),function(m){m._hasBeenBlurred=!0;var f=m.disabled||!m.validate||
m.validate();f||q||(y.scrollIntoView(m.containerNode||m.domNode),m.focus(),q=!0);return f}),function(m){return m})},setValues:function(q){b.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",q)},_setValueAttr:function(q){var m={};F.forEach(this._getDescendantFormWidgets(),function(d){d.name&&(m[d.name]||(m[d.name]=[])).push(d)});for(var f in m)if(m.hasOwnProperty(f)){var g=m[f],a=p.getObject(f,!1,q);void 0!==a&&(a=[].concat(a),
"boolean"==typeof g[0].checked?F.forEach(g,function(d){d.set("value",-1!=F.indexOf(a,d._get("value")))}):g[0].multiple?g[0].set("value",a):F.forEach(g,function(d,l){d.set("value",a[l])}))}},getValues:function(){b.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var q={};F.forEach(this._getDescendantFormWidgets(),function(m){var f=m.name;if(f&&!m.disabled){var g=m.get("value");"boolean"==typeof m.checked?
/Radio/.test(m.declaredClass)?!1!==g?p.setObject(f,g,q):(g=p.getObject(f,!1,q),void 0===g&&p.setObject(f,null,q)):(m=p.getObject(f,!1,q),m||(m=[],p.setObject(f,m,q)),!1!==g&&m.push(g)):(m=p.getObject(f,!1,q),"undefined"!=typeof m?p.isArray(m)?m.push(g):p.setObject(f,[m,g],q):p.setObject(f,g,q))}});return q},isValid:function(){return""==this.state},onValidStateChange:function(){},_getState:function(){var q=F.map(this._descendants,function(m){return m.get("state")||""});return 0<=F.indexOf(q,"Error")?
"Error":0<=F.indexOf(q,"Incomplete")?"Incomplete":""},disconnectChildren:function(){},connectChildren:function(q){this._descendants=this._getDescendantFormWidgets();F.forEach(this._descendants,function(m){m._started||m.startup()});q||this._onChildChange()},_onChildChange:function(q){q&&"state"!=q&&"disabled"!=q||this._set("state",this._getState());q&&"value"!=q&&"disabled"!=q&&"checked"!=q||(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 q=this;this.own(e(this.containerNode,"attrmodified-state, attrmodified-disabled, attrmodified-value, attrmodified-checked",function(m){m.target!=q.domNode&&q._onChildChange(m.type.replace("attrmodified-",""))}));this.watch("state",function(m,f,g){this.onValidStateChange(""==g)})},destroy:function(){this.inherited(arguments)}})})},
"dijit/_DialogMixin":function(){define(["dojo/_base/declare","./a11y"],function(F,u){return F("dijit._DialogMixin",null,{actionBarTemplate:"",execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var b=u._getTabNavigable(this.domNode);this._firstFocusItem=b.lowest||b.first||this.closeButtonNode||this.domNode;this._lastFocusItem=b.last||b.highest||this._firstFocusItem}})})},"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(F,u,b,p,e,y,q,m,f,g,a,d){var l=F("dijit.DialogUnderlay",[m,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(k){p.set(this.node,"id",k+"_underlay");this._set("dialogId",k)},_setClassAttr:function(k){this.node.className="dijitDialogUnderlay "+k;this._set("class",k)},postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);
this.own(y(this.domNode,"keydown",u.hitch(this,"_onKeyDown")));this.inherited(arguments)},layout:function(){var k=this.node.style,n=this.domNode.style;n.display="none";var h=q.getBox(this.ownerDocument);n.top=h.t+"px";n.left=h.l+"px";k.width=h.w+"px";k.height=h.h+"px";n.display="block"},show:function(){this.domNode.style.display="block";this.open=!0;this.layout();this.bgIframe=new g(this.domNode);var k=q.get(this.ownerDocument);this._modalConnects=[a.on("resize",u.hitch(this,"layout")),y(k,"scroll",
u.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(){}});l.show=function(k,n){var h=l._singleton;!h||h._destroyed?h=d._underlay=l._singleton=new l(k):k&&h.set(k);e.set(h.domNode,"zIndex",n);h.open||h.show()};l.hide=function(){var k=
l._singleton;k&&!k._destroyed&&k.hide()};return l})},"dijit/BackgroundIframe":function(){define("require ./main dojo/_base/config dojo/dom-construct dojo/dom-style dojo/_base/lang dojo/on dojo/sniff".split(" "),function(F,u,b,p,e,y,q,m){m.add("config-bgIframe",(m("ie")||m("trident"))&&!/IEMobile\/10\.0/.test(navigator.userAgent));var f=new function(){var g=[];this.pop=function(){if(g.length){var a=g.pop();a.style.display=""}else 9>m("ie")?(a=b.dojoBlankHtmlUrl||F.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=p.create("iframe"),a.src='javascript:""',a.className="dijitBackgroundIframe",a.setAttribute("role","presentation"),e.set(a,"opacity",.1)),a.tabIndex=-1;return a};this.push=function(a){a.style.display="none";g.push(a)}};u.BackgroundIframe=function(g){if(!g.id)throw Error("no id");if(m("config-bgIframe")){var a=
this.iframe=f.pop();g.appendChild(a);7>m("ie")||m("quirks")?(this.resize(g),this._conn=q(g,"resize",y.hitch(this,"resize",g))):e.set(a,{width:"100%",height:"100%"})}};y.extend(u.BackgroundIframe,{resize:function(g){this.iframe&&e.set(this.iframe,{width:g.offsetWidth+"px",height:g.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 u.BackgroundIframe})},
"dijit/Viewport":function(){define(["dojo/Evented","dojo/on","dojo/domReady","dojo/sniff","dojo/window"],function(F,u,b,p,e){var y=new F,q;b(function(){var m=e.getBox();y._rlh=u(window,"resize",function(){var g=e.getBox();if(m.h!=g.h||m.w!=g.w)m=g,y.emit("resize")});if(8==p("ie")){var f=screen.deviceXDPI;setInterval(function(){screen.deviceXDPI!=f&&(f=screen.deviceXDPI,y.emit("resize"))},500)}p("ios")&&(u(document,"focusin",function(g){q=g.target}),u(document,"focusout",function(g){q=null}))});y.getEffectiveBox=
function(m){m=e.getBox(m);var f=q&&q.tagName&&q.tagName.toLowerCase();p("ios")&&q&&!q.readOnly&&("textarea"==f||"input"==f&&/^(color|email|number|password|search|tel|text|url)$/.test(q.type))&&(m.h*=0==orientation||180==orientation?.66:.4,f=q.getBoundingClientRect(),m.h=Math.max(m.h,f.top+f.height));return m};return y})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h){return f("dijit.layout.ContentPane",[b,p,e],{href:"",content:"",extractContent:!1,parseOnLoad:!0,parserScope:F._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(c,r,v){var z=new v(c,r);return!z.href&&z._contentSetter&&z._contentSetter.parseDeferred&&!z._contentSetter.parseDeferred.isFulfilled()?z._contentSetter.parseDeferred.then(function(){return z}):z},create:function(c,r){if(!(c&&c.template||!r||"href"in c||"content"in c)){r=a.byId(r);for(var v=r.ownerDocument.createDocumentFragment();r.firstChild;)v.appendChild(r.firstChild);
c=u.delegate(c,{content:v})}this.inherited(arguments,[c,r])},postMixInProperties:function(){this.inherited(arguments);var c=n.getLocalization("dijit","loading",this.lang);this.loadingMessage=y.substitute(this.loadingMessage,c);this.errorMessage=y.substitute(this.errorMessage,c)},buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode);this.domNode.removeAttribute("title")},startup:function(){this.inherited(arguments);this._contentSetter&&m.forEach(this._contentSetter.parseResults,
function(c){c._started||c._destroyed||!u.isFunction(c.startup)||(c.startup(),c._started=!0)},this)},_startChildren:function(){m.forEach(this.getChildren(),function(c){c._started||c._destroyed||!u.isFunction(c.startup)||(c.startup(),c._started=!0)});this._contentSetter&&m.forEach(this._contentSetter.parseResults,function(c){c._started||c._destroyed||!u.isFunction(c.startup)||(c.startup(),c._started=!0)},this)},setHref:function(c){F.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.",
"","2.0");return this.set("href",c)},_setHrefAttr:function(c){this.cancel();this.onLoadDeferred=new g(u.hitch(this,"cancel"));this.onLoadDeferred.then(u.hitch(this,"onLoad"));this._set("href",c);this.preload||this._created&&this._isShown()?this._load():this._hrefChanged=!0;return this.onLoadDeferred},setContent:function(c){F.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");this.set("content",c)},_setContentAttr:function(c){this._set("href",
"");this.cancel();this.onLoadDeferred=new g(u.hitch(this,"cancel"));this._created&&this.onLoadDeferred.then(u.hitch(this,"onLoad"));this._setContent(c||"");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(c){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 g(u.hitch(this,"cancel"));this.onLoadDeferred.then(u.hitch(this,"onLoad"));this._load();return this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),!0);var c=this,r={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};
u.isObject(this.ioArgs)&&u.mixin(r,this.ioArgs);var v=this._xhrDfd=(this.ioMethod||k.get)(r),z;v.then(function(C){z=C;try{return c._isDownloaded=!0,c._setContent(C,!1)}catch(x){c._onError("Content",x)}},function(C){v.canceled||c._onError("Download",C);delete c._xhrDfd;return C}).then(function(){c.onDownloadEnd();delete c._xhrDfd;return z});delete this._hrefChanged},_onLoadHandler:function(c){this._set("isLoaded",!0);try{this.onLoadDeferred.resolve(c)}catch(r){console.error("Error "+(this.widgetId||
this.id)+" running custom onLoad code: "+r.message)}},_onUnloadHandler:function(){this._set("isLoaded",!1);try{this.onUnload()}catch(c){console.error("Error "+this.widgetId+" running custom onUnload code: "+c.message)}},destroyDescendants:function(c){this.isLoaded&&this._onUnloadHandler();var r=this._contentSetter;m.forEach(this.getChildren(),function(v){v.destroyRecursive?v.destroyRecursive(c):v.destroy&&v.destroy(c);v._destroyed=!0});r&&(m.forEach(r.parseResults,function(v){v._destroyed||(v.destroyRecursive?
v.destroyRecursive(c):v.destroy&&v.destroy(c),v._destroyed=!0)}),delete r.parseResults);c||l.empty(this.containerNode);delete this._singleChild},_setContent:function(c,r){c=this.preprocessContent(c);this.destroyDescendants();var v=this._contentSetter;v&&v instanceof q._ContentSetter||(v=this._contentSetter=new q._ContentSetter({node:this.containerNode,_onError:u.hitch(this,this._onError),onContentError:u.hitch(this,function(x){x=this.onContentError(x);try{this.containerNode.innerHTML=x}catch(E){console.error("Fatal "+
this.id+" could not change content due to "+E.message,E)}})}));var z=u.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:!c.domNode&&this.parseOnLoad,parserScope:this.parserScope,startup:!1,dir:this.dir,lang:this.lang,textDir:this.textDir},this._contentSetterParams||{});z=v.set(u.isObject(c)&&c.domNode?c.domNode:c,z);var C=this;return h(z&&z.then?z:v.parseDeferred,function(){delete C._contentSetterParams;r||(C._started&&(C._startChildren(),C._scheduleLayout()),
C._onLoadHandler(c))})},preprocessContent:function(c){return c},_onError:function(c,r,v){this.onLoadDeferred.reject(r);c=this["on"+c+"Error"].call(this,r);v?console.error(v,r):c&&this._setContent(c,!0)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}})})},"dijit/_Container":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-construct",
"dojo/_base/kernel"],function(F,u,b,p){return u("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode)},addChild:function(e,y){var q=this.containerNode;if(0<y){for(q=q.firstChild;0<y;)1==q.nodeType&&y--,q=q.nextSibling;q?y="before":(q=this.containerNode,y="last")}b.place(e.domNode,q,y);this._started&&!e._started&&e.startup()},removeChild:function(e){"number"==typeof e&&(e=this.getChildren()[e]);e&&(e=e.domNode)&&e.parentNode&&
e.parentNode.removeChild(e)},hasChildren:function(){return 0<this.getChildren().length},_getSiblingOfChild:function(e,y){var q=this.getChildren();e=F.indexOf(q,e);return q[e+y]},getIndexOfChild:function(e){return F.indexOf(this.getChildren(),e)}})})},"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(F,u,b,p,e,y,q,m,f,g){return u("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",y.hitch(this,"resize")))}},_checkIfSingleChild:function(){if(this.doLayout){var a=[],d=!1;q("\x3e *",this.containerNode).some(function(l){var k=m.byNode(l);k&&k.resize?a.push(k):!/script|link|style/i.test(l.nodeName)&&
l.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&&p.setMarginBox(this.domNode,a);var l=this.containerNode;l===this.domNode?
(d=d||{},y.mixin(d,a||{}),"h"in d&&"w"in d||(d=y.mixin(p.getMarginBox(l),d)),this._contentBox=g.marginBox2contentBox(l,d)):this._contentBox=p.getContentBox(l);this._layoutChildren()},_layoutChildren:function(){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||p.getContentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else{a=this.getChildren();for(var d,l=0;d=a[l++];)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(F,u,b,p,e){function y(m,f){var g=m.resize?m.resize(f):b.setMarginBox(m.domNode,f);g?e.mixin(m,g):(e.mixin(m,b.getMarginBox(m.domNode)),e.mixin(m,f))}var q={marginBox2contentBox:function(m,f){var g=p.getComputedStyle(m),a=b.getMarginExtents(m,g),d=b.getPadBorderExtents(m,g);return{l:p.toPixelValue(m,g.paddingLeft),t:p.toPixelValue(m,g.paddingTop),w:f.w-(a.w+d.w),h:f.h-(a.h+d.h)}},layoutChildren:function(m,f,g,a,d){f=e.mixin({},f);u.add(m,"dijitLayoutContainer");g=F.filter(g,function(l){return"center"!=
l.region&&"client"!=l.layoutAlign}).concat(F.filter(g,function(l){return"center"==l.region||"client"==l.layoutAlign}));F.forEach(g,function(l){var k=l.domNode,n=l.region||l.layoutAlign;if(!n)throw Error("No region setting for "+l.id);var h=k.style;h.left=f.l+"px";h.top=f.t+"px";h.position="absolute";var c=u.add;var r=n;r=r.substring(0,1).toUpperCase()+r.substring(1);c.call(u,k,"dijitAlign"+r);k={};a&&a==l.id&&(k["top"==l.region||"bottom"==l.region?"h":"w"]=d);"leading"==n&&(n=l.isLeftToRight()?"left":
"right");"trailing"==n&&(n=l.isLeftToRight()?"right":"left");"top"==n||"bottom"==n?(k.w=f.w,y(l,k),f.h-=l.h,"top"==n?f.t+=l.h:h.top=f.t+f.h+"px"):"left"==n||"right"==n?(k.h=f.h,y(l,k),f.w-=l.w,"left"==n?f.l+=l.w:h.left=f.l+f.w+"px"):"client"!=n&&"center"!=n||y(l,f)})}};e.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(F,u,b,p,e,y,q){var m=0,f={_secureForInnerHtml:function(g){return g.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,
"")},_emptyNode:y.empty,_setNodeContent:function(g,a){y.empty(g);if(a)if("number"==typeof a&&(a=a.toString()),"string"==typeof a&&(a=y.toDom(a,g.ownerDocument)),!a.nodeType&&u.isArrayLike(a))for(var d=a.length,l=0;l<a.length;l=d==a.length?l+1:0)y.place(a[l],g,"last");else y.place(a,g,"last");return g},_ContentSetter:p("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:!1,extractContent:!1,parseContent:!1,parserScope:F._scopeName,startup:!0,constructor:function(g,a){u.mixin(this,
g||{});a=this.node=e.byId(this.node||a);this.id||(this.id=["Setter",a?a.id||a.tagName:"",m++].join("_"))},set:function(g,a){void 0!==g&&(this.content=g);"number"==typeof g&&(g=g.toString());a&&this._mixin(a);this.onBegin();this.setContent();return(g=this.onEnd())&&g.then?g:this.node},setContent:function(){var g=this.node;if(!g)throw Error(this.declaredClass+": setContent given no node");try{g=f._setNodeContent(g,this.content)}catch(d){var a=this.onContentError(d);try{g.innerHTML=a}catch(l){console.error("Fatal "+
this.declaredClass+".setContent could not change content due to "+l.message,l)}}this.node=g},empty:function(){this.parseDeferred&&(this.parseDeferred.isResolved()||this.parseDeferred.cancel(),delete this.parseDeferred);this.parseResults&&this.parseResults.length&&(b.forEach(this.parseResults,function(g){g.destroy&&g.destroy()}),delete this.parseResults);y.empty(this.node)},onBegin:function(){var g=this.content;if(u.isString(g)&&(this.cleanContent&&(g=f._secureForInnerHtml(g)),this.extractContent)){var a=
g.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);a&&(g=a[1])}this.empty();this.content=g;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(g){return"Error occurred setting content: "+g},onExecError:function(g){return"Error occurred executing scripts: "+g},_mixin:function(g){var a={},d;for(d in g)d in a||(this[d]=g[d])},_parse:function(){var g=
this.node;try{var a={};b.forEach(["dir","lang","textDir"],function(l){this[l]&&(a[l]=this[l])},this);var d=this;this.parseDeferred=q.parse({rootNode:g,noStart:!this.startup,inherited:a,scope:this.parserScope}).then(function(l){return d.parseResults=l},function(l){d._onError("Content",l,"Error parsing in _ContentSetter#"+d.id)})}catch(l){this._onError("Content",l,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(g,a,d){g=this["on"+g+"Error"].call(this,a);d?console.error(d,a):g&&f._setNodeContent(this.node,
g,!0)}}),set:function(g,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(u.mixin(d,{content:a,node:g}))).set():f._setNodeContent(g,a,!0)}};u.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 ./json5 ./query ./on ./ready".split(" "),
function(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c){function r(x){var E=x._nameCaseMap,B=x.prototype;if(!E||E._extendCnt<C){E=x._nameCaseMap={};for(var w in B)"_"!==w.charAt(0)&&(E[w.toLowerCase()]=w);E._extendCnt=C}return E}function v(x,E){E||(E=F);var B=E._dojoParserCtorMap||(E._dojoParserCtorMap={}),w=x.join();if(!B[w]){for(var D=[],t=0,A=x.length;t<A;t++){var G=x[t];D[D.length]=B[G]=B[G]||b.getObject(G)||~G.indexOf("/")&&E(G)}x=D.shift();B[w]=D.length?x.createSubclass?x.createSubclass(D):x.extend.apply(x,
D):x}return B[w]}new Date("X");var z=l("csp-restrictions")?k.parse:function(x){return eval("("+x+")")};var C=0;f.after(b,"extend",function(){C++},!0);k={_clearCache:function(){C++;_ctorMap={}},_functionFromScript:function(x,E){var B="",w="",D=x.getAttribute(E+"args")||x.getAttribute("args");E=x.getAttribute("with");D=(D||"").split(/\s*,\s*/);E&&E.length&&p.forEach(E.split(/\s*,\s*/),function(t){B+="with("+t+"){";w+="}"});return new Function(D,B+x.innerHTML+w)},instantiate:function(x,E,B){E=E||{};
B=B||{};var w=(B.scope||u._scopeName)+"Type",D="data-"+(B.scope||u._scopeName)+"-",t=D+"type",A=D+"mixins",G=[];p.forEach(x,function(J){var U=w in E?E[w]:J.getAttribute(t)||J.getAttribute(w);if(U){var ja=J.getAttribute(A);U=ja?[U].concat(ja.split(/\s*,\s*/)):[U];G.push({node:J,types:U})}});return this._instantiate(G,E,B)},_instantiate:function(x,E,B,w){function D(t){E._started||B.noStart||p.forEach(t,function(A){"function"!==typeof A.startup||A._started||A.startup()});return t}x=p.map(x,function(t){var A=
t.ctor||v(t.types,B.contextRequire);if(!A)throw Error("Unable to resolve constructor for: '"+t.types.join()+"'");return this.construct(A,t.node,E,B,t.scripts,t.inherited)},this);return w?g(x).then(D):D(x)},construct:function(x,E,B,w,D,t){function A(S){V&&b.setObject(V,S);for(fa=0;fa<va.length;fa++)f[va[fa].advice||"after"](S,va[fa].method,b.hitch(S,va[fa].func),!0);for(fa=0;fa<da.length;fa++)da[fa].call(S);for(fa=0;fa<ka.length;fa++)S.watch(ka[fa].prop,ka[fa].func);for(fa=0;fa<I.length;fa++)h(S,I[fa].event,
I[fa].func);return S}var G=x&&x.prototype;w=w||{};var J={};w.defaults&&b.mixin(J,w.defaults);t&&b.mixin(J,t);if(l("dom-attributes-explicit"))var U=E.attributes;else l("dom-attributes-specified-flag")?U=p.filter(E.attributes,function(S){return S.specified}):(t=(/^input$|^img$/i.test(E.nodeName)?E:E.cloneNode(!1)).outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,""),U=p.map(t.split(/\s+/),function(S){var X=S.toLowerCase();return{name:S,value:"LI"==
E.nodeName&&"value"==S||"enctype"==X?E.getAttribute(X):E.getAttributeNode(X).value}}));var ja=w.scope||u._scopeName;t="data-"+ja+"-";var Z={};"dojo"!==ja&&(Z[t+"props"]="data-dojo-props",Z[t+"type"]="data-dojo-type",Z[t+"mixins"]="data-dojo-mixins",Z[ja+"type"]="dojotype",Z[t+"id"]="data-dojo-id");var fa=0,qa;ja=[];for(var V,ea;qa=U[fa++];){var ba=qa.name,ma=ba.toLowerCase();qa=qa.value;switch(Z[ma]||ma){case "data-dojo-type":case "dojotype":case "data-dojo-mixins":break;case "data-dojo-props":ea=
qa;break;case "data-dojo-id":case "jsid":V=qa;break;case "data-dojo-attach-point":case "dojoattachpoint":J.dojoAttachPoint=qa;break;case "data-dojo-attach-event":case "dojoattachevent":J.dojoAttachEvent=qa;break;case "class":J["class"]=E.className;break;case "style":J.style=E.style&&E.style.cssText;break;default:if(ba in G||(ba=r(x)[ma]||ba),ba in G)switch(typeof G[ba]){case "string":J[ba]=qa;break;case "number":J[ba]=qa.length?Number(qa):NaN;break;case "boolean":J[ba]="false"!=qa.toLowerCase();break;
case "function":""===qa||-1!=qa.search(/[^\w\.]+/i)?J[ba]=new Function(qa):J[ba]=b.getObject(qa,!1)||new Function(qa);ja.push(ba);break;default:ma=G[ba];try{J[ba]=ma&&"length"in ma?qa?qa.split(/\s*,\s*/):[]:ma instanceof Date?""==qa?new Date(""):"now"==qa?new Date:a.fromISOString(qa):ma instanceof m?u.baseUrl+qa:z(qa)}catch(S){console.error(S)}}else J[ba]=qa}}for(U=0;U<ja.length;U++)Z=ja[U].toLowerCase(),E.removeAttribute(Z),E[Z]=null;if(ea)try{ea=z.call(w.propsThis,"{"+ea+"}"),b.mixin(J,ea)}catch(S){throw Error(S.toString()+
" in data-dojo-props\x3d'"+ea+"'");}b.mixin(J,B);D||(D=x&&(x._noScript||G._noScript)?[]:n("\x3e script[type^\x3d'dojo/']",E));var va=[],da=[],ka=[],I=[];if(D)for(fa=0;fa<D.length;fa++)Z=D[fa],E.removeChild(Z),B=Z.getAttribute(t+"event")||Z.getAttribute("event"),w=Z.getAttribute(t+"prop"),ea=Z.getAttribute(t+"method"),ja=Z.getAttribute(t+"advice"),U=Z.getAttribute("type"),Z=this._functionFromScript(Z,t),B?"dojo/connect"==U?va.push({method:B,func:Z}):"dojo/on"==U?I.push({event:B,func:Z}):J[B]=Z:"dojo/aspect"==
U?va.push({method:ea,advice:ja,func:Z}):"dojo/watch"==U?ka.push({prop:w,func:Z}):da.push(Z);x=(D=x.markupFactory||G.markupFactory)?D(J,E,x):new x(J,E);return x.then?x.then(A):A(x)},scan:function(x,E){function B(ma){if(!ma.inherited){ma.inherited={};var va=ma.node,da=B(ma.parent);va={dir:va.getAttribute("dir")||da.dir,lang:va.getAttribute("lang")||da.lang,textDir:va.getAttribute(U)||da.textDir};for(var ka in va)va[ka]&&(ma.inherited[ka]=va[ka])}return ma.inherited}var w=[],D=[],t={},A=(E.scope||u._scopeName)+
"Type",G="data-"+(E.scope||u._scopeName)+"-",J=G+"type",U=G+"textdir";G+="mixins";var ja=x.firstChild,Z=E.inherited;if(!Z){Z=function ka(va,da){return va.getAttribute&&va.getAttribute(da)||va.parentNode&&ka(va.parentNode,da)};Z={dir:Z(x,"dir"),lang:Z(x,"lang"),textDir:Z(x,U)};for(var fa in Z)Z[fa]||delete Z[fa]}fa={inherited:Z};for(var qa,V;;)if(ja)if(1!=ja.nodeType)ja=ja.nextSibling;else if(qa&&"script"==ja.nodeName.toLowerCase())(Z=ja.getAttribute("type"))&&/^dojo\/\w/i.test(Z)&&qa.push(ja),ja=
ja.nextSibling;else if(V)ja=ja.nextSibling;else if(Z=ja.getAttribute(J)||ja.getAttribute(A),x=ja.firstChild,Z||x&&(3!=x.nodeType||x.nextSibling)){V=null;if(Z){var ea=ja.getAttribute(G);qa=ea?[Z].concat(ea.split(/\s*,\s*/)):[Z];try{V=v(qa,E.contextRequire)}catch(ma){}V||p.forEach(qa,function(ma){~ma.indexOf("/")&&!t[ma]&&(t[ma]=!0,D[D.length]=ma)});ea=V&&!V.prototype._noScript?[]:null;fa={types:qa,ctor:V,parent:fa,node:ja,scripts:ea};fa.inherited=B(fa);w.push(fa)}else fa={node:ja,scripts:qa,parent:fa};
qa=ea;V=ja.stopParser||V&&V.prototype.stopParser&&!E.template;ja=x}else ja=ja.nextSibling;else{if(!fa||!fa.node)break;ja=fa.node.nextSibling;V=!1;fa=fa.parent;qa=fa.scripts}var ba=new d;D.length?(l("dojo-debug-messages")&&console.warn("WARNING: Modules being Auto-Required: "+D.join(", ")),(E.contextRequire||F)(D,function(){ba.resolve(p.filter(w,function(ma){if(!ma.ctor)try{ma.ctor=v(ma.types,E.contextRequire)}catch(ka){}for(var va=ma.parent;va&&!va.types;)va=va.parent;var da=ma.ctor&&ma.ctor.prototype;
ma.instantiateChildren=!(da&&da.stopParser&&!E.template);ma.instantiate=!va||va.instantiate&&va.instantiateChildren;return ma.instantiate}))})):ba.resolve(w);return ba.promise},_require:function(x,E){x=z("{"+x.innerHTML+"}");var B=[],w=[],D=new d;E=E&&E.contextRequire||F;for(var t in x)B.push(t),w.push(x[t]);E(w,function(){for(var A=0;A<B.length;A++)b.setObject(B[A],arguments[A]);D.resolve(arguments)});return D.promise},_scanAmd:function(x,E){var B=new d,w=B.promise;B.resolve(!0);var D=this;n("script[type\x3d'dojo/require']",
x).forEach(function(t){w=w.then(function(){return D._require(t,E)});t.parentNode.removeChild(t)});return w},parse:function(x,E){!x||"string"==typeof x||"nodeType"in x||(E=x,x=E.rootNode);var B=x?y.byId(x):q.body();E=E||{};var w=E.template?{template:!0}:{},D=[],t=this;x=this._scanAmd(B,E).then(function(){return t.scan(B,E)}).then(function(A){return t._instantiate(A,w,E,!0)}).then(function(A){return D=D.concat(A)}).otherwise(function(A){console.error("dojo/parser::parse() error",A);throw A;});b.mixin(D,
x);return D}};u.parser=k;e.parseOnLoad&&c(100,k,"parse");return k})},"dojo/date/stamp":function(){define(["../_base/lang","../_base/array"],function(F,u){var b={};F.setObject("dojo.date.stamp",b);b.fromISOString=function(p,e){b._isoRegExp||(b._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/);var y=b._isoRegExp.exec(p);p=null;if(y){y.shift();y[1]&&y[1]--;y[6]&&(y[6]*=1E3);e&&(e=new Date(e),u.forEach(u.map("FullYear Month Date Hours Minutes Seconds Milliseconds".split(" "),
function(f){return e["get"+f]()}),function(f,g){y[g]=y[g]||f}));p=new Date(y[0]||1970,y[1]||0,y[2]||1,y[3]||0,y[4]||0,y[5]||0,y[6]||0);100>y[0]&&p.setFullYear(y[0]||1970);var q=0,m=y[7]&&y[7].charAt(0);"Z"!=m&&(q=60*(y[8]||0)+(Number(y[9])||0),"-"!=m&&(q*=-1));m&&(q-=p.getTimezoneOffset());q&&p.setTime(p.getTime()+6E4*q)}return p};b.toISOString=function(p,e){var y=function(g){return 10>g?"0"+g:g};e=e||{};var q=[],m=e.zulu?"getUTC":"get",f="";"time"!=e.selector&&(f=p[m+"FullYear"](),f=["0000".substr((f+
"").length)+f,y(p[m+"Month"]()+1),y(p[m+"Date"]())].join("-"));q.push(f);"date"!=e.selector&&(f=[y(p[m+"Hours"]()),y(p[m+"Minutes"]()),y(p[m+"Seconds"]())].join(":"),m=p[m+"Milliseconds"](),e.milliseconds&&(f+="."+(100>m?"0":"")+y(m)),e.zulu?f+="Z":"time"!=e.selector&&(p=p.getTimezoneOffset(),e=Math.abs(p),f+=(0<p?"-":"+")+y(Math.floor(e/60))+":"+y(e%60)),q.push(f));return q.join("T")};return b})},"dojo/json5":function(){define(["./json5/parse"],function(F){return{parse:F}})},"dojo/json5/parse":function(){define(["../string",
"./util"],function(F,u){function b(Z,fa,qa){var V=Z[fa];if(null!=V&&"object"===typeof V)for(var ea in V){var ba=b(V,ea,qa);void 0===ba?delete V[ea]:V[ea]=ba}return qa.call(Z,fa,V)}function p(){if(c[z])return F.fromCodePoint(F.codePointAt(c,z))}function e(){var Z=p();"\n"===Z?(C++,x=0):Z?x+=Z.length:x++;Z&&(z+=Z.length);return Z}function y(Z,fa){return{type:Z,value:fa,line:C,column:x}}function q(Z){for(var fa=0;fa<Z.length;fa++){var qa=Z[fa];if(p()!==qa)throw d(e());e()}}function m(){switch(p()){case "b":return e(),
"\b";case "f":return e(),"\f";case "n":return e(),"\n";case "r":return e(),"\r";case "t":return e(),"\t";case "v":return e(),"\v";case "0":e();if(u.isDigit(p()))throw d(e());return"\x00";case "x":e();var Z="",fa=p();if(!u.isHexDigit(fa))throw d(e());Z+=e();fa=p();if(!u.isHexDigit(fa))throw d(e());Z+=e();return F.fromCodePoint(parseInt(Z,16));case "u":return e(),f();case "\n":case "\u2028":case "\u2029":return e(),"";case "\r":return e(),"\n"===p()&&e(),"";case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":throw d(e());
case void 0:throw d(e());}return e()}function f(){for(var Z="",fa=4;0<fa--;){var qa=p();if(!u.isHexDigit(qa))throw d(e());Z+=e()}return F.fromCodePoint(parseInt(Z,16))}function g(){switch(E.type){case "punctuator":switch(E.value){case "{":var Z={};break;case "[":Z=[]}break;case "null":case "boolean":case "numeric":case "string":Z=E.value}if(void 0===w)w=Z;else{var fa=v[v.length-1];Array.isArray(fa)?fa.push(Z):fa[B]=Z}null!==Z&&"object"===typeof Z?(v.push(Z),r=Array.isArray(Z)?"beforeArrayValue":"beforePropertyName"):
(Z=v[v.length-1],r=null==Z?"end":Array.isArray(Z)?"afterArrayValue":"afterPropertyValue")}function a(){v.pop();var Z=v[v.length-1];r=null==Z?"end":Array.isArray(Z)?"afterArrayValue":"afterPropertyValue"}function d(Z){return void 0===Z?h("JSON5: invalid end of input at "+C+":"+x):h("JSON5: invalid character '"+n(Z)+"' at "+C+":"+x)}function l(){return h("JSON5: invalid end of input at "+C+":"+x)}function k(){x-=5;return h("JSON5: invalid identifier character at "+C+":"+x)}function n(Z){var fa={"'":"\\'",
'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\x00":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};return fa[Z]?fa[Z]:" ">Z?(Z=Z.charCodeAt(0).toString(16),"\\x"+("00"+Z).substring(Z.length)):Z}function h(Z){Z=new SyntaxError(Z);Z.lineNumber=C;Z.columnNumber=x;return Z}var c,r,v,z,C,x,E,B,w,D,t,A,G,J,U={"default":function(){switch(J){case "\t":case "\v":case "\f":case " ":case "\u00a0":case "\ufeff":case "\n":case "\r":case "\u2028":case "\u2029":e();return;
case "/":e();D="comment";return;case void 0:return e(),y("eof")}if(u.isSpaceSeparator(J))e();else return U[r]()},comment:function(){switch(J){case "*":e();D="multiLineComment";return;case "/":e();D="singleLineComment";return}throw d(e());},multiLineComment:function(){switch(J){case "*":e();D="multiLineCommentAsterisk";return;case void 0:throw d(e());}e()},multiLineCommentAsterisk:function(){switch(J){case "*":e();return;case "/":e();D="default";return;case void 0:throw d(e());}e();D="multiLineComment"},
singleLineComment:function(){switch(J){case "\n":case "\r":case "\u2028":case "\u2029":e();D="default";return;case void 0:return e(),y("eof")}e()},value:function(){switch(J){case "{":case "[":return y("punctuator",e());case "n":return e(),q("ull"),y("null",null);case "t":return e(),q("rue"),y("boolean",!0);case "f":return e(),q("alse"),y("boolean",!1);case "-":case "+":"-"===e()&&(G=-1);D="sign";return;case ".":t=e();D="decimalPointLeading";return;case "0":t=e();D="zero";return;case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":t=
e();D="decimalInteger";return;case "I":return e(),q("nfinity"),y("numeric",Infinity);case "N":return e(),q("aN"),y("numeric",NaN);case '"':case "'":A='"'===e();t="";D="string";return}throw d(e());},identifierNameStartEscape:function(){if("u"!==J)throw d(e());e();var Z=f();switch(Z){case "$":case "_":break;default:if(!u.isIdStartChar(Z))throw k();}t+=Z;D="identifierName"},identifierName:function(){switch(J){case "$":case "_":case "\u200c":case "\u200d":t+=e();return;case "\\":e();D="identifierNameEscape";
return}if(u.isIdContinueChar(J))t+=e();else return y("identifier",t)},identifierNameEscape:function(){if("u"!==J)throw d(e());e();var Z=f();switch(Z){case "$":case "_":case "\u200c":case "\u200d":break;default:if(!u.isIdContinueChar(Z))throw k();}t+=Z;D="identifierName"},sign:function(){switch(J){case ".":t=e();D="decimalPointLeading";return;case "0":t=e();D="zero";return;case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":t=e();D="decimalInteger";return;case "I":return e(),
q("nfinity"),y("numeric",Infinity*G);case "N":return e(),q("aN"),y("numeric",NaN)}throw d(e());},zero:function(){switch(J){case ".":t+=e();D="decimalPoint";return;case "e":case "E":t+=e();D="decimalExponent";return;case "x":case "X":t+=e();D="hexadecimal";return}return y("numeric",0*G)},decimalInteger:function(){switch(J){case ".":t+=e();D="decimalPoint";return;case "e":case "E":t+=e();D="decimalExponent";return}if(u.isDigit(J))t+=e();else return y("numeric",G*Number(t))},decimalPointLeading:function(){if(u.isDigit(J))t+=
e(),D="decimalFraction";else throw d(e());},decimalPoint:function(){switch(J){case "e":case "E":t+=e();D="decimalExponent";return}if(u.isDigit(J))t+=e(),D="decimalFraction";else return y("numeric",G*Number(t))},decimalFraction:function(){switch(J){case "e":case "E":t+=e();D="decimalExponent";return}if(u.isDigit(J))t+=e();else return y("numeric",G*Number(t))},decimalExponent:function(){switch(J){case "+":case "-":t+=e();D="decimalExponentSign";return}if(u.isDigit(J))t+=e(),D="decimalExponentInteger";
else throw d(e());},decimalExponentSign:function(){if(u.isDigit(J))t+=e(),D="decimalExponentInteger";else throw d(e());},decimalExponentInteger:function(){if(u.isDigit(J))t+=e();else return y("numeric",G*Number(t))},hexadecimal:function(){if(u.isHexDigit(J))t+=e(),D="hexadecimalInteger";else throw d(e());},hexadecimalInteger:function(){if(u.isHexDigit(J))t+=e();else return y("numeric",G*Number(t))},string:function(){switch(J){case "\\":e();t+=m();return;case '"':if(A)return e(),y("string",t);t+=e();
return;case "'":if(!A)return e(),y("string",t);t+=e();return;case "\n":case "\r":throw d(e());case "\u2028":case "\u2029":console.warn("JSON5: '"+n(J)+"' in strings is not valid ECMAScript; consider escaping");break;case void 0:throw d(e());}t+=e()},start:function(){switch(J){case "{":case "[":return y("punctuator",e())}D="value"},beforePropertyName:function(){switch(J){case "$":case "_":t=e();D="identifierName";return;case "\\":e();D="identifierNameStartEscape";return;case "}":return y("punctuator",
e());case '"':case "'":A='"'===e();D="string";return}if(u.isIdStartChar(J))t+=e(),D="identifierName";else throw d(e());},afterPropertyName:function(){if(":"===J)return y("punctuator",e());throw d(e());},beforePropertyValue:function(){D="value"},afterPropertyValue:function(){switch(J){case ",":case "}":return y("punctuator",e())}throw d(e());},beforeArrayValue:function(){if("]"===J)return y("punctuator",e());D="value"},afterArrayValue:function(){switch(J){case ",":case "]":return y("punctuator",e())}throw d(e());
},end:function(){throw d(e());}},ja={start:function(){if("eof"===E.type)throw l();g()},beforePropertyName:function(){switch(E.type){case "identifier":case "string":B=E.value;r="afterPropertyName";break;case "punctuator":a();break;case "eof":throw l();}},afterPropertyName:function(){if("eof"===E.type)throw l();r="beforePropertyValue"},beforePropertyValue:function(){if("eof"===E.type)throw l();g()},beforeArrayValue:function(){if("eof"===E.type)throw l();"punctuator"===E.type&&"]"===E.value?a():g()},
afterPropertyValue:function(){if("eof"===E.type)throw l();switch(E.value){case ",":r="beforePropertyName";break;case "}":a()}},afterArrayValue:function(){if("eof"===E.type)throw l();switch(E.value){case ",":r="beforeArrayValue";break;case "]":a()}},end:function(){}};return function(Z,fa){c=String(Z);r="start";v=[];z=0;C=1;x=0;w=B=E=void 0;do{a:for(D="default",t="",A=!1,G=1;;)if(J=p(),Z=U[D]()){E=Z;break a}ja[r]()}while("eof"!==E.type);return"function"===typeof fa?b({"":w},"",fa):w}})},"dojo/json5/util":function(){define(["./unicode"],
function(F){return{isSpaceSeparator:function(u){return"string"===typeof u&&F.Space_Separator.test(u)},isIdStartChar:function(u){return"string"===typeof u&&("a"<=u&&"z">=u||"A"<=u&&"Z">=u||"$"===u||"_"===u||F.ID_Start.test(u))},isIdContinueChar:function(u){return"string"===typeof u&&("a"<=u&&"z">=u||"A"<=u&&"Z">=u||"0"<=u&&"9">=u||"$"===u||"_"===u||"\u200c"===u||"\u200d"===u||F.ID_Continue.test(u))},isDigit:function(u){return"string"===typeof u&&/[0-9]/.test(u)},isHexDigit:function(u){return"string"===
typeof u&&/[0-9A-Fa-f]/.test(u)}}})},"dojo/json5/unicode":function(){define({Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u1877\u1880-\u1884\u1887-\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\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\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\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\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[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\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]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\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]/,
ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\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\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-\u0C03\u0C05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\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\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-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\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\u1CD0-\u1CD2\u1CD4-\u1CF9\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\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\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-\uAB65\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-\uDE33\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]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\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\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\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]|\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[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\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]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\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]/})},
"esri/Credential":function(){define(["dojo/_base/declare","dojo/has","./kernel","./IdentityManagerBase"],function(F,u,b,p){F=F(p.Credential,{});u("extend-esri")&&(b.Credential=F);return F})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r,v){var z={},C=function(t){var A=(new y(t.owningSystemUrl)).host;t=(new y(t.server)).host;var G=/.+\.arcgis\.com$/i;return G.test(A)&&G.test(t)},x=function(t,A){return!!(C(t)&&A&&p.some(A,function(G){return G.test(t.server)}))},E=null,B=null;try{E=window.localStorage,B=window.sessionStorage}catch(t){}var w=F(c,{declaredClass:"esri.IdentityManagerBase",constructor:function(){this._portalConfig=b.getObject("esriGeowConfig");this.serverInfos=[];this.oAuthInfos=
[];this.credentials=[];this._soReqs=[];this._xoReqs=[];this._portals=[];this._getOAuthLocationParams();f(window,"pageshow",b.hitch(this,this._pageShowHandler))},defaultOAuthInfo:null,defaultTokenValidity:60,tokenValidity:null,normalizeWebTierAuth:!1,_appUrlObj:k.urlToObject(window.location.href),_postMessageAuthHandle:null,_busy:null,_rejectOnPersistedPageShow:!1,_oAuthLocationParams: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|KnowledgeGraphServer|MapServer|MissionServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer|VideoServer)).*/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(t){var A=this.serverInfos;A?(t=p.filter(t,function(G){return!this.findServerInfo(G.server)},this),this.serverInfos=A.concat(t)):
this.serverInfos=t;p.forEach(t,function(G){G.owningSystemUrl&&this._portals.push(G.owningSystemUrl);if(G.hasPortal){this._portals.push(G.server);var J=a.defaults.io.corsEnabledServers,U=this._getOrigin(G.tokenServiceUrl);k.canUseXhr(G.server)||J.push(G.server.replace(/^https?:\/\//i,""));k.canUseXhr(U)||J.push(U.replace(/^https?:\/\//i,""))}},this)},registerOAuthInfos:function(t){var A=this.oAuthInfos;A?(p.forEach(t,function(G){(G=this.findOAuthInfo(G.portalUrl))&&A.splice(A.indexOf(G),1)},this),
this.oAuthInfos=A.concat(t)):this.oAuthInfos=t},registerToken:function(t){t=d.mixin({},t);var A=this._sanitizeUrl(t.server),G=this.findServerInfo(A),J=!0,U;G||(G=new l,G.server=this._getServerInstanceRoot(A),G.tokenServiceUrl=this._getTokenSvcUrl(A),G.hasPortal=!0,this.registerServers([G]));(U=this.findCredential(A,t.userId))?(delete t.server,b.mixin(U,t),J=!1):(U=new D({userId:t.userId,server:G.server,token:t.token,expires:t.expires,ssl:t.ssl,scope:this._isServerRsrc(A)?"server":"portal"}),U.resources=
[A],this.credentials.push(U));U.onTokenChange(!1);J||U.refreshServerTokens()},toJson:function(){return d.fixJson({serverInfos:p.map(this.serverInfos,function(t){return t.toJson()}),oAuthInfos:p.map(this.oAuthInfos,function(t){return t.toJson()}),credentials:p.map(this.credentials,function(t){return t.toJson()})})},initialize:function(t){if(t){b.isString(t)&&(t=JSON.parse(t));var A=t.serverInfos,G=t.oAuthInfos;t=t.credentials;if(A){var J=[];p.forEach(A,function(ja){ja.server&&ja.tokenServiceUrl&&J.push(ja.declaredClass?
ja:new l(ja))});J.length&&this.registerServers(J)}if(G){var U=[];p.forEach(G,function(ja){ja.appId&&U.push(ja.declaredClass?ja:new v(ja))});U.length&&this.registerOAuthInfos(U)}t&&p.forEach(t,function(ja){ja.userId&&ja.server&&ja.token&&ja.expires&&ja.expires>(new Date).getTime()&&(ja=ja.declaredClass?ja:new D(ja),ja.onTokenChange(),this.credentials.push(ja))},this)}},findServerInfo:function(t){var A;t=this._sanitizeUrl(t);p.some(this.serverInfos,function(G){this._hasSameServerInstance(G.server,t)&&
(A=G);return!!A},this);return A},findOAuthInfo:function(t){var A;t=this._sanitizeUrl(t);p.some(this.oAuthInfos,function(G){this._hasSameServerInstance(G.portalUrl,t)&&(A=G);return!!A},this);return A},findCredential:function(t,A){var G;t=this._sanitizeUrl(t);var J=this._isServerRsrc(t)?"server":"portal";A?p.some(this.credentials,function(U){this._hasSameServerInstance(U.server,t)&&A===U.userId&&U.scope===J&&(G=U);return!!G},this):p.some(this.credentials,function(U){this._hasSameServerInstance(U.server,
t)&&-1!==this._getIdenticalSvcIdx(t,U)&&U.scope===J&&(G=U);return!!G},this);return G},getCredential:function(t,A){var G=!0;if(d.isDefined(A))if(b.isObject(A)){var J=!!A.token;var U=A.error;G=!1!==A.prompt}else J=A;t=this._sanitizeUrl(t);var ja=new e(n._dfdCanceller),Z=this._isAdminResource(t);if((J=J?this.findCredential(t):null)&&U&&498===U.code)J.destroy();else if(J)return t=Error("You are currently signed in as: '"+J.userId+"'. You do not have access to this resource: "+t),t.name="identity-manager:not-authorized",
t.code="IdentityManagerBase.1",t.httpCode=U&&U.httpCode,t.messageCode=U?U.messageCode:null,t.subcode=U?U.subcode:null,t.details=U?U.details:null,t.log=!!u.isDebug,ja.errback(t),ja;if(U=this._findCredential(t,A))return ja.callback(U),ja;var fa=this.findServerInfo(t);if(fa)!fa.hasPortal&&fa.server&&fa.owningSystemUrl&&this._hasSameServerInstance(fa.server,fa.owningSystemUrl)&&(fa.hasPortal=!0),!fa.hasServer&&this._isServerRsrc(t)&&(fa._restInfoDfd=this._getTokenSvcUrl(t,!0),fa.hasServer=!0);else{U=
this._getTokenSvcUrl(t);if(!U)return t=Error("Unknown resource - could not find token service endpoint."),t.name="identity-manager:unknown-resource",t.code="IdentityManagerBase.2",t.log=!!u.isDebug,ja.errback(t),ja;fa=new l;fa.server=this._getServerInstanceRoot(t);b.isString(U)?(fa.tokenServiceUrl=U,fa.hasPortal=!0):(fa._restInfoDfd=U,fa.hasServer=!0);this.registerServers([fa])}fa.hasPortal&&void 0===fa._selfReq&&(G||k.hasSameOrigin(fa.tokenServiceUrl,window.location.origin)||this._gwDomains.some(function(qa){return qa.tokenServiceUrl===
fa.tokenServiceUrl}))&&(fa._selfReq={owningTenant:A&&A.owningTenant,selfDfd:this._getPortalSelf(fa.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),t)});return this._enqueue(t,fa,A,ja,Z)},getResourceName:function(t){return this._isRESTService(t)?t.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(t)&&t.replace(this._gwUser,"$1")||this._gwItem.test(t)&&t.replace(this._gwItem,"$1")||this._gwGroup.test(t)&&t.replace(this._gwGroup,"$1")||
""},generateToken:function(t,A,G){var J=this._rePortalTokenSvc.test(t.tokenServiceUrl),U=new y(window.location.href.toLowerCase()),ja=!A;var Z=t.shortLivedTokenValidity;if(A){var fa=g.id.tokenValidity||Z||g.id.defaultTokenValidity;fa>Z&&(fa=Z)}if(G){var qa=G.isAdmin;var V=G.serverUrl;var ea=G.token;var ba=G.ssl;t.customParameters=G.customParameters}if(qa)Z=t.adminTokenServiceUrl;else{Z=t.tokenServiceUrl;var ma=new y(Z.toLowerCase());t.webTierAuth&&G&&G.serverUrl&&!ba&&"http"===U.scheme&&(k.hasSameOrigin(U.uri,
Z,!0)||"https"===ma.scheme&&U.host===ma.host&&"7080"===U.port&&"7443"===ma.port)&&(Z=Z.replace(/^https:/i,"http:").replace(/:7443/i,":7080"));ja&&J&&(Z=Z.replace(/\/rest/i,""))}qa=b.mixin({url:Z,content:b.mixin({request:"getToken",username:A&&A.username,password:A&&A.password,serverUrl:V,token:ea,expiration:fa,referer:qa||J?window.location.host:null,client:qa?"referer":null,f:"json"},t.customParameters),handleAs:"json",callbackParamName:ja?"callback":void 0},G&&G.ioArgs);G={usePost:!ja,disableIdentityLookup:!0,
useProxy:this._useProxy(t,G)};J||(qa.withCredentials=!1);J=h(qa,G);J.addCallback(function(va){if(!va||!va.token)return va=Error("Unable to generate token"),va.name="identity-manager:authentication-failed",va.code="IdentityManagerBase.3",va.log=!!u.isDebug,va;var da=t.server;z[da]||(z[da]={});A&&(z[da][A.username]=A.password);va.validity=fa;return va});J.addErrback(function(va){});return J},isBusy:function(){return!!this._busy},checkSignInStatus:function(t){var A=new e;this.checkAppAccess(t,"").then(function(G){A.resolve(G.credential)}).catch(function(G){A.reject(G)});
return A},checkAppAccess:function(t,A,G){var J=this,U=!1;return this.getCredential(t,{prompt:!1}).then(function(ja){var Z={f:"json"};if("portal"===ja.scope)if(A&&(J._doPortalSignIn(t)||G&&G.force)){var fa=ja.server+"/sharing/rest/oauth2/validateAppAccess";Z.client_id=A}else if(ja.token)fa=ja.server+"/sharing/rest";else return{credential:ja};else if(ja.token)fa=ja.server+"/rest/services";else return{credential:ja};ja.token&&(Z.token=ja.token);return h({url:fa,content:Z,callbackParamName:"callback"},
{disableIdentityLookup:!0}).then(function(qa){if(!1===qa.valid){var V=Error("You are currently signed in as: '"+ja.userId+"'.  You do not have access to this app: '"+A+"'.");V.name="identity-manager:not-authorized";V.code="IdentityManagerBase.1";V.log=!!u.isDebug;V.details=qa;throw V;}U=!!qa.viewOnlyUserTypeApp;return{credential:ja}}).catch(function(qa){if("IdentityManagerBase.1"===qa.code||400===qa.code)throw 400===qa.code&&(qa.name="identity-manager:invalid-request"),qa;if(498===qa.code)throw ja.destroy(),
qa=Error("User is not signed in."),qa.name="identity-manager:not-authenticated",qa.code="IdentityManagerBase.6",qa.log=!!u.isDebug,qa;return{credential:ja}})}).then(function(ja){return{credential:ja.credential,viewOnly:U}})},setProtocolErrorHandler:function(t){this._protocolFunc=t},signIn:function(){},oAuthSignIn:function(){},onCredentialCreate:function(){},onCredentialsDestroy:function(){},destroyCredentials:function(){if(this.credentials){var t=this.credentials.slice();p.forEach(t,function(A){A.destroy()})}this.onCredentialsDestroy()},
enablePostMessageAuth:function(t){t||(t="https://www.arcgis.com/sharing/rest");this._postMessageAuthHandle&&this._postMessageAuthHandle.remove();this._postMessageAuthHandle=f(window,"message",function(A){(A.origin===window.location.origin||d.endsWith(A.origin,".arcgis.com"))&&A.data&&"arcgis:auth:requestCredential"===A.data.type&&this.getCredential(t).then(function(G){A.source.postMessage({type:"arcgis:auth:credential",credential:{expires:G.expires,server:G.server,ssl:G.ssl,token:G.token,userId:G.userId}},
A.origin)}).catch(function(G){A.source.postMessage({type:"arcgis:auth:error",error:{name:G.name,message:G.message}},A.origin)})}.bind(this))},disablePostMessageAuth:function(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)},_getOAuthLocationParams:function(){var t=window.location.hash;if(t){"#"===t.charAt(0)&&(t=t.substring(1));t=m.queryToObject(t);var A=!1;if(t.access_token&&t.expires_in&&t.state&&t.hasOwnProperty("username"))try{t.state=JSON.parse(t.state),
t.state.portalUrl&&(this._oAuthLocationParams=t,A=!0)}catch(J){}else if(t.error&&t.error_description&&(console.log("IdentityManager OAuth Error: ",t.error," - ",t.error_description),"access_denied"===t.error&&(A=!0,t.state)))try{t.state=JSON.parse(t.state)}catch(J){}A&&(window.location.hash=t.state&&t.state.hash||"")}if(t=window.location.search){"?"===t.charAt(0)&&(t=t.substring(1));t=m.queryToObject(t);A=!1;if(t.code&&t.state)try{t.state=JSON.parse(t.state),t.state.portalUrl&&t.state.uid&&(this._oAuthLocationParams=
t,A=!0)}catch(J){}else if(t.error&&t.error_description&&(console.log("IdentityManager OAuth Error: ",t.error," - ",t.error_description),"access_denied"===t.error&&(A=!0,t.state)))try{t.state=JSON.parse(t.state)}catch(J){}if(A){var G=d.mixin({},t);"code error error_description message_code persist state".split(" ").forEach(function(J){delete G[J]});A=m.objectToQuery(G);window.history.replaceState(window.history.state,"",window.location.pathname+(A?"?"+A:"")+(t.state&&t.state.hash||""))}}},_getOAuthToken:function(t,
A,G,J,U){t=t.replace(/^http:/i,"https:");return h({url:t+"/sharing/rest/oauth2/token",content:J&&U?{grant_type:"authorization_code",code:A,redirect_uri:J,client_id:G,code_verifier:U}:{grant_type:"refresh_token",refresh_token:A,client_id:G}},{disableIdentityLookup:!0,usePost:!0})},_pageShowHandler:function(t){t.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow&&(t=Error("ABORTED"),t.name="identity-manager:user-aborted",t.code="IdentityManager.2",t.log=!!u.isDebug,this._errbackFunc(t))},_findCredential:function(t,
A){var G=-1,J,U,ja=A&&A.token;A=A&&A.resource;var Z=this._isServerRsrc(t)?"server":"portal",fa=p.filter(this.credentials,function(ba){return this._hasSameServerInstance(ba.server,t)&&ba.scope===Z},this);t=A||t;if(fa.length)if(1===fa.length){A=fa[0];var qa=(J=(U=this.findServerInfo(A.server))&&U.owningSystemUrl)&&this.findCredential(J,A.userId);G=this._getIdenticalSvcIdx(t,A);if(ja)-1!==G&&(A.resources.splice(G,1),this._removeResource(t,qa));else return-1===G&&A.resources.push(t),this._addResource(t,
qa),A}else{var V,ea;p.some(fa,function(ba){ea=this._getIdenticalSvcIdx(t,ba);return-1!==ea?(V=ba,qa=(J=(U=this.findServerInfo(V.server))&&U.owningSystemUrl)&&this.findCredential(J,V.userId),G=ea,!0):!1},this);if(ja)V&&(V.resources.splice(G,1),this._removeResource(t,qa));else if(V)return this._addResource(t,qa),V}},_findOAuthInfo:function(t){var A=this.findOAuthInfo(t);A||p.some(this.oAuthInfos,function(G){this._isIdProvider(G.portalUrl,t)&&(A=G);return!!A},this);return A},_addResource:function(t,
A){A&&-1===this._getIdenticalSvcIdx(t,A)&&A.resources.push(t)},_removeResource:function(t,A){var G=-1;A&&(G=this._getIdenticalSvcIdx(t,A),-1<G&&A.resources.splice(G,1))},_useProxy:function(t,A){return A&&A.isAdmin&&!k.hasSameOrigin(t.adminTokenServiceUrl,window.location.href)||!this._isPortalDomain(t.tokenServiceUrl)&&10.1==t.currentVersion&&!k.hasSameOrigin(t.tokenServiceUrl,window.location.href)},_getOrigin:function(t){t=new y(t);return t.scheme+"://"+t.host+(d.isDefined(t.port)?":"+t.port:"")},
_getServerInstanceRoot:function(t){var A=t.toLowerCase(),G=A.indexOf(this._agsRest);-1===G&&this._isAdminResource(t)&&(G=this._agsAdmin.test(t)?t.replace(this._agsAdmin,"$1").length:t.search(this._adminSvcs));-1!==G||k.isSecureProxyService(A)||(G=A.indexOf("/sharing"));-1===G&&"/"===A.substr(-1)&&(G=A.length-1);return-1<G?t.substring(0,G):t},_hasSameServerInstance:function(t,A){"/"===t.substr(-1)&&(t=t.slice(0,-1));t=t.toLowerCase();A=this._getServerInstanceRoot(A).toLowerCase();t=this._normalizeAGOLorgDomain(t);
A=this._normalizeAGOLorgDomain(A);t=t.substr(t.indexOf(":"));A=A.substr(A.indexOf(":"));return t===A},_normalizeAGOLorgDomain:function(t){var A=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,G=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,J=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;A.test(t)?t=t.replace(A,"https://www.arcgis.com"):G.test(t)?t=t.replace(G,"https://devext.arcgis.com"):J.test(t)&&(t=t.replace(J,"https://qaext.arcgis.com"));return t},_sanitizeUrl:function(t){var A=
(a.defaults.io.proxyUrl||"").toLowerCase(),G=A?t.toLowerCase().indexOf(A+"?"):-1;-1!==G&&(t=t.substring(G+A.length+1));t=k.normalize(t);return k.urlToObject(t).path},_isRESTService:function(t){return-1<t.indexOf(this._agsRest)},_isAdminResource:function(t){return this._agsAdmin.test(t)||this._adminSvcs.test(t)},_isServerRsrc:function(t){return this._isRESTService(t)||this._isAdminResource(t)},_isIdenticalService:function(t,A){if(this._isRESTService(t)&&this._isRESTService(A)){t=this._getSuffix(t).toLowerCase();
A=this._getSuffix(A).toLowerCase();var G=t===A;G||(G=/(.*)\/(MapServer|FeatureServer).*/ig,G=t.replace(G,"$1")===A.replace(G,"$1"))}else this._isAdminResource(t)&&this._isAdminResource(A)?G=!0:this._isServerRsrc(t)||this._isServerRsrc(A)||!this._isPortalDomain(t)||(G=!0);return G},_isPortalDomain:function(t){var A=new y(t.toLowerCase()),G=this._portalConfig;t=p.some(this._gwDomains,function(J){return J.regex.test(A.uri)});!t&&G&&(t=this._hasSameServerInstance(this._getServerInstanceRoot(G.restBaseUrl),
A.uri));t||(!this._arcgisUrl&&(G=b.getObject("esri.arcgis.utils.arcgisUrl"))&&(this._arcgisUrl=(new y(G)).authority),this._arcgisUrl&&(t=this._arcgisUrl.toLowerCase()===A.authority));t||(t=p.some(this._portals,function(J){return this._hasSameServerInstance(J,A.uri)},this));return t=t||this._agsPortal.test(A.path)},_isIdProvider:function(t,A){var G=-1,J=-1;p.forEach(this._gwDomains,function(fa,qa){-1===G&&fa.regex.test(t)&&(G=qa);-1===J&&fa.regex.test(A)&&(J=qa)});var U=!1;if(-1<G&&-1<J)if(0===G||
4===G){if(0===J||4===J)U=!0}else if(1===G){if(1===J||2===J)U=!0}else 2===G?2===J&&(U=!0):3===G&&3===J&&(U=!0);if(!U){var ja=this.findServerInfo(A),Z=ja&&ja.owningSystemUrl;Z&&C(ja)&&this._isPortalDomain(Z)&&this._isIdProvider(t,Z)&&(U=!0)}return U},_isPublic:function(t){t=this._sanitizeUrl(t);return p.some(this._publicUrls,function(A){return A.test(t)})},_getIdenticalSvcIdx:function(t,A){var G=-1;p.some(A.resources,function(J,U){return this._isIdenticalService(t,J)?(G=U,!0):!1},this);return G},_getSuffix:function(t){return t.replace(this._regexSDirUrl,
"").replace(this._regexServerType,"$1")},_getTokenSvcUrl:function(t){if(this._isRESTService(t)||this._isAdminResource(t)){var A=this._getServerInstanceRoot(t);var G=A+"/admin/generateToken";t=A+"/rest/info";A=h({url:t,content:{f:"json"},handleAs:"json",callbackParamName:"callback"});A.adminUrl_=G;return A}if(this._isPortalDomain(t)){var J="";p.some(this._gwDomains,function(U){U.regex.test(t)&&(J=U.tokenServiceUrl);return!!J});J||p.some(this._portals,function(U){this._hasSameServerInstance(U,t)&&(J=
U+this._gwTokenUrl);return!!J},this);J||(G=t.toLowerCase().indexOf("/sharing"),-1!==G&&(J=t.substring(0,G)+this._gwTokenUrl));J||(J=this._getOrigin(t)+this._gwTokenUrl);J&&(G=(new y(t)).port,/^http:\/\//i.test(t)&&"7080"===G&&(J=J.replace(/:7080/i,":7443")),J=J.replace(/http:/i,"https:"));return J}if(-1!==t.toLowerCase().indexOf("premium.arcgisonline.com"))return"https://premium.arcgisonline.com/server/tokens"},_exchangeToken:function(t,A,G){return h({url:t+"/sharing/rest/oauth2/exchangeToken",content:{f:"json",
client_id:A,token:G}},{disableIdentityLookup:!0,usePost:!0}).then(function(J){return J.token})},_getPlatformSelf:function(t,A){t=t.replace(/^http:/i,"https:");return h({url:t+"/sharing/rest/oauth2/platformSelf",content:{f:"json",expiration:30},headers:{"X-Esri-Auth-Client-Id":A,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},withCredentials:!0},{disableIdentityLookup:!0,usePost:!0})},_getPortalSelf:function(t,A){var G="";p.some(this._gwDomains,function(J){J.regex.test(t)&&(G=J.customBaseUrl);
return!!G});if(G)return A=new e,A.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:G,portalMode:"multitenant",supportsOAuth:!0}),A;"https:"===window.location.protocol?t=t.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(A)&&(t=t.replace(/^https:/i,"http:").replace(/:7443/i,":7080"));return h({url:t,content:{f:"json"},callbackParamName:"callback",withCredentials:!0},{disableIdentityLookup:!0})},_doPortalSignIn:function(t){var A=this._portalConfig,G=window.location.href,J=this.findServerInfo(t);
return(A||this._isPortalDomain(G))&&(J?J.hasPortal||J.owningSystemUrl&&this._isPortalDomain(J.owningSystemUrl):this._isPortalDomain(t))&&(this._isIdProvider(G,t)||A&&(this._hasSameServerInstance(this._getServerInstanceRoot(A.restBaseUrl),t)||this._isIdProvider(A.restBaseUrl,t))||k.hasSameOrigin(G,t,!0))?!0:!1},_checkProtocol:function(t,A,G,J){var U=!0;J=J?A.adminTokenServiceUrl:A.tokenServiceUrl;0!==b.trim(J).toLowerCase().indexOf("https:")||0===window.location.href.toLowerCase().indexOf("https:")||
a.defaults.io.useCors&&(k.canUseXhr(J)||k.canUseXhr(k.getProxyUrl(!0).path))||(U=this._protocolFunc?!!this._protocolFunc({resourceUrl:t,serverInfo:A}):!1,U||(t=Error("Aborted the Sign-In process to avoid sending password over insecure connection."),t.name="identity-manager:aborted",t.code="IdentityManagerBase.4",t.log=!!u.isDebug,console.log(t.message),G(t)));return U},_enqueue:function(t,A,G,J,U,ja){J||(J=new e(n._dfdCanceller));J.resUrl_=t;J.sinfo_=A;J.options_=G;J.admin_=U;J.refresh_=ja;this._busy?
this._hasSameServerInstance(this._getServerInstanceRoot(t),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(J)):this._xoReqs.push(J):this._doSignIn(J);return J},_doSignIn:function(t){this._busy=t;this._rejectOnPersistedPageShow=!1;var A=this,G=function(V){var ea=t.options_&&t.options_.resource,ba=t.resUrl_,ma=t.refresh_,va=!1;-1===p.indexOf(A.credentials,V)&&(ma&&-1!==p.indexOf(A.credentials,ma)?(ma.userId=V.userId,ma.token=V.token,
ma.expires=V.expires,ma.validity=V.validity,ma.ssl=V.ssl,ma.creationTime=V.creationTime,va=!0,V=ma):A.credentials.push(V));V.resources||(V.resources=[]);-1===V.resources.indexOf(ea||ba)&&V.resources.push(ea||ba);V.scope=A._isServerRsrc(ba)?"server":"portal";V.onTokenChange();ea=A._soReqs;var da={};A._soReqs=[];p.forEach(ea,function(ka){if(!this._isIdenticalService(ba,ka.resUrl_)){var I=this._getSuffix(ka.resUrl_);da[I]||(da[I]=!0,V.resources.push(ka.resUrl_))}},A);t.callback(V);p.forEach(ea,function(ka){this._hasSameServerInstance(this._getServerInstanceRoot(ba),
ka.resUrl_)?ka.callback(V):this._soReqs.push(ka)},A);A._busy=t.resUrl_=t.sinfo_=t.refresh_=null;if(!va)A.onCredentialCreate({credential:V});A._soReqs.length?A._doSignIn(A._soReqs.shift()):A._xoReqs.length&&A._doSignIn(A._xoReqs.shift())},J=function(V){t.errback(V);A._busy=t.resUrl_=t.sinfo_=t.refresh_=null;A._soReqs.length?A._doSignIn(A._soReqs.shift()):A._xoReqs.length&&A._doSignIn(A._xoReqs.shift())},U=function(V,ea,ba,ma){var va=t.sinfo_,da=!t.options_||!1!==t.options_.prompt,ka=va.hasPortal&&
A._findOAuthInfo(t.resUrl_);if(V)G(new D({userId:V,server:va.server,token:ba||null,expires:d.isDefined(ma)?Number(ma):null,ssl:!!ea}));else if(window!==window.parent&&A._appUrlObj.query&&A._appUrlObj.query["arcgis-auth-origin"]&&A._appUrlObj.query["arcgis-auth-portal"]&&A._hasSameServerInstance(A._getServerInstanceRoot(A._appUrlObj.query["arcgis-auth-portal"]),t.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},A._appUrlObj.query["arcgis-auth-origin"]);var I=f(window,"message",
function(ha){if(ha.source===window.parent&&ha.data)if("arcgis:auth:credential"===ha.data.type&&ha.data.credential.expires<Date.now()&&(ha.data.type="arcgis:auth:error",ha.data.error={name:"tokenExpiredError"}),"arcgis:auth:credential"===ha.data.type)I.remove(),G(new D(ha.data.credential));else if("arcgis:auth:error"===ha.data.type){I.remove();ha=ha.data.error;switch(ha.name){case "identity-manager:busy":case "identity-manager:not-authorized":var la="IdentityManager.1";break;case "identity-manager:server-identification-failed":case "identity-manager:unknown-resource":case "identity-manager:user-aborted":la=
"IdentityManager.2";break;case "identity-manager:authentication-failed":case "identity-manager:credential-request-failed":case "tokenExpiredError":la="IdentityManager.3";"tokenExpiredError"===ha.name&&(ha.name="identity-manager:credential-request-failed",ha.message="Parent application's token has expired.");break;case "identity-manager:aborted":la="IdentityManager.4";break;case "identity-manager:not-authenticated":la="IdentityManager.6";break;case "identity-manager:invalid-request":la=400}var ta=
Error(ha.message);ta.name=ha.name;ta.code=la;ta.log=!!u.isDebug;J(ta)}})}else if(ka){var S=ka._oAuthCred;S||(V=new r(ka,E),ea=new r(ka,B),V.isValid()&&ea.isValid()?V.expires>ea.expires?(S=V,ea.destroy()):(S=ea,V.destroy()):S=V.isValid()?V:ea,ka._oAuthCred=S);if(S.isValid()){var X=new D({userId:S.userId,server:va.server,token:S.token,expires:S.expires,ssl:S.ssl,_oAuthCred:S});var O=ka.appId!==S.appId&&A._doPortalSignIn(t.resUrl_);O||S.refreshToken?(S.refreshToken?t._pendingDfd=A._getOAuthToken(va.server,
S.refreshToken,S.appId).then(function(ha){X.expires=Date.now()+1E3*ha.expires_in;X.token=ha.access_token;return X}):(V=new e,V.resolve(X),t._pendingDfd=V),t._pendingDfd.then(function(ha){return O?A._exchangeToken(ha.server,ka.appId,ha.token).then(function(la){ha.token=la;return ha}).catch(function(){return ha}):ha}).then(function(ha){G(ha)}).catch(function(){S.destroy();U()})):G(X)}else if(A._oAuthLocationParams&&A._hasSameServerInstance(ka.portalUrl,A._oAuthLocationParams.state.portalUrl)&&(A._oAuthLocationParams.access_token||
A._oAuthLocationParams.code&&A._oAuthLocationParams.state.uid===S.stateUID&&S.codeVerifier))V=A._oAuthLocationParams,A._oAuthLocationParams=null,t._pendingDfd=A._processOAuthResponseParams(V,ka,va).then(function(ha){G(ha)}).catch(J);else{var P=function(){da?t._pendingDfd=A.oAuthSignIn(t.resUrl_,va,ka,t.options_).addCallbacks(G,J):(aa=Error("User is not signed in."),aa.name="identity-manager:not-authenticated",aa.code="IdentityManagerBase.6",aa.log=!!u.isDebug,J(aa))};A._doPortalSignIn(t.resUrl_)?
t._pendingDfd=A._getPlatformSelf(va.server,ka.appId).then(function(ha){var la=ha.portalUrl;!la||k.hasSameOrigin(la,window.location.origin,!0)?(X=new D({userId:ha.username,server:va.server,expires:Date.now()+1E3*ha.expires_in,token:ha.token}),G(X)):P()}).catch(P):P()}}else if(da)A._checkProtocol(t.resUrl_,va,J,t.admin_)&&(V=t.options_,t.admin_&&(V=V||{},V.isAdmin=!0),t._pendingDfd=A.signIn(t.resUrl_,va,V).addCallbacks(G,J));else{var aa=Error("User is not signed in.");aa.name="identity-manager:not-authenticated";
aa.code="IdentityManagerBase.6";aa.log=!!u.isDebug;J(aa)}},ja=function(){var V=t.sinfo_,ea=V.owningSystemUrl,ba=t.options_,ma;if(ba){var va=ba.token;var da=ba.error;var ka=ba.prompt}(ma=A._findCredential(ea,{token:va,resource:t.resUrl_}))||p.some(A.credentials,function(I){this._isIdProvider(ea,I.server)&&(ma=I);return!!ma},A);ma?(ba=A.findCredential(t.resUrl_,ma.userId))?G(ba):x(V,A._legacyFed)?(ba=ma.toJson(),ba.server=V.server,ba.resources=null,G(new D(ba))):(t._pendingDfd=A.generateToken(A.findServerInfo(ma.server),
null,{serverUrl:t.resUrl_,token:ma.token,ssl:ma.ssl})).addCallbacks(function(I){G(new D({userId:ma.userId,server:V.server,token:I.token,expires:d.isDefined(I.expires)?Number(I.expires):null,ssl:!!I.ssl,isAdmin:t.admin_,validity:I.validity}))},J):(A._busy=null,va&&(t.options_.token=null),(t._pendingDfd=A.getCredential(ea.replace(/\/?$/,"/sharing"),{resource:t.resUrl_,owningTenant:V.owningTenant,token:va,error:da,prompt:ka})).addCallbacks(function(I){A._enqueue(t.resUrl_,t.sinfo_,t.options_,t,t.admin_)},
function(I){J(I)}))};this._errbackFunc=J;var Z=t.sinfo_.owningSystemUrl,fa=this._isServerRsrc(t.resUrl_),qa=t.sinfo_._restInfoDfd;qa?qa.addCallbacks(function(V){var ea=t.sinfo_;ea._restInfoDfd&&(ea.adminTokenServiceUrl=ea._restInfoDfd.adminUrl_,ea._restInfoDfd=null,ea.tokenServiceUrl=b.getObject("authInfo.tokenServicesUrl",!1,V)||b.getObject("authInfo.tokenServiceUrl",!1,V)||b.getObject("tokenServiceUrl",!1,V),ea.shortLivedTokenValidity=b.getObject("authInfo.shortLivedTokenValidity",!1,V),ea.currentVersion=
V.currentVersion,ea.owningTenant=V.owningTenant,(V=ea.owningSystemUrl=V.owningSystemUrl)&&A._portals.push(V));fa&&ea.owningSystemUrl?ja():U()},function(){t.sinfo_._restInfoDfd=null;var V=Error("Unknown resource - could not find token service endpoint.");V.name="identity-manager:server-identification-failed";V.code="IdentityManagerBase.2";V.log=!!u.isDebug;J(V)}):fa&&Z?ja():t.sinfo_._selfReq?t.sinfo_._selfReq.selfDfd.then(function(V){var ea={};if(V){var ba=V.user&&V.user.username;ea.username=ba;ea.allSSL=
V.allSSL;var ma=V.supportsOAuth;var va=parseFloat(V.currentVersion);if("multitenant"===V.portalMode)var da=V.customBaseUrl;t.sinfo_.currentVersion=va}t.sinfo_.webTierAuth=!!ba;return ba&&A.normalizeWebTierAuth?A.generateToken(t.sinfo_,null,{ssl:ea.allSSL}).addBoth(function(ka){ea.portalToken=ka&&ka.token;ea.tokenExpiration=ka&&ka.expires;return ea}):!ba&&ma&&4.4<=va&&!A._findOAuthInfo(t.resUrl_)?A._generateOAuthInfo({portalUrl:t.sinfo_.server,customBaseUrl:da,owningTenant:t.sinfo_._selfReq.owningTenant}).always(function(){return ea}):
ea}).always(function(V){t.sinfo_._selfReq=null;V?U(V.username,V.allSSL,V.portalToken,V.tokenExpiration):U()}):U()},_generateOAuthInfo:function(t){var A=this,G=t.portalUrl,J=t.customBaseUrl,U=t.owningTenant;if(t=!this.defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal){var ja=window.location.href;var Z=ja.indexOf("?");-1<Z&&(ja=ja.slice(0,Z));Z=ja.search(/\/(apps|home)\//);ja=-1<Z?ja.slice(0,Z):null}t&&ja?(this._hasTestedIfAppIsOnPortal=!0,t=h({url:ja+"/sharing/rest",content:{f:"json"},
handleAs:"json"}).then(function(){A.defaultOAuthInfo=new v({appId:"arcgisonline",popupCallbackUrl:ja+"/home/oauth-callback.html"})})):(t=new e,t.resolve(),t=t.promise);return t.then(function(){if(A.defaultOAuthInfo)return G=G.replace(/^http:/i,"https:"),h({url:G+"/sharing/rest/oauth2/validateRedirectUri",content:{accountId:U,client_id:A.defaultOAuthInfo.appId,redirect_uri:k.getAbsoluteUrl(A.defaultOAuthInfo.popupCallbackUrl),f:"json"},handleAs:"json",callbackParamName:"callback"}).then(function(fa){if(fa.valid){var qa=
A.defaultOAuthInfo.clone();qa.portalUrl=fa.urlKey&&J?"https://"+fa.urlKey.toLowerCase()+"."+J:G;qa.popup=window!==window.top||!(k.hasSameOrigin(G,window.location.origin)||A._gwDomains.some(function(V){return V.regex.test(G)&&V.regex.test(window.location.origin)}));A.oAuthInfos.push(qa)}})})}});var D=F(c,{declaredClass:"esri.Credential",tokenRefreshBuffer:2,constructor:function(t){b.mixin(this,t);this.resources=this.resources||[];d.isDefined(this.creationTime)||(this.creationTime=(new Date).getTime())},
_oAuthCred:null,refreshToken:function(){var t=this,A=this.resources&&this.resources[0],G=g.id.findServerInfo(this.server),J=G&&G.owningSystemUrl,U=!!J&&"server"===this.scope,ja=U&&x(G,g.id._legacyFed),Z=U&&g.id.findServerInfo(J),fa,qa=(fa=G.webTierAuth)&&g.id.normalizeWebTierAuth,V=z[this.server];V=V&&V[this.userId];var ea={username:this.userId,password:V};if(!fa||qa)if(U&&!Z&&p.some(g.id.serverInfos,function(va){g.id._isIdProvider(J,va.server)&&(Z=va);return!!Z}),fa=Z&&g.id.findCredential(Z.server,
this.userId),!U||fa)if(ja)fa.refreshToken();else{if(U)var ba={serverUrl:A,token:fa&&fa.token,ssl:fa&&fa.ssl};else if(qa)ea=null,ba={ssl:this.ssl};else if(V)this.isAdmin&&(ba={isAdmin:!0});else{if(A){A=g.id._sanitizeUrl(A);this._enqueued=1;var ma=g.id._enqueue(A,G,null,null,this.isAdmin,this);ma.addCallback(function(){t._enqueued=0;t.refreshServerTokens()}).addErrback(function(){t._enqueued=0})}return ma}return g.id.generateToken(U?Z:G,U?null:ea,ba).addCallback(function(va){t.token=va.token;t.expires=
d.isDefined(va.expires)?Number(va.expires):null;t.creationTime=(new Date).getTime();t.validity=va.validity;t.onTokenChange();t.refreshServerTokens()}).addErrback(function(){})}},refreshServerTokens:function(){"portal"===this.scope&&p.forEach(g.id.credentials,function(t){var A=g.id.findServerInfo(t.server),G=A&&A.owningSystemUrl;t!==this&&t.userId===this.userId&&G&&"server"===t.scope&&(g.id._hasSameServerInstance(this.server,G)||g.id._isIdProvider(G,this.server))&&(x(A,g.id._legacyFed)?(t.token=this.token,
t.expires=this.expires,t.creationTime=this.creationTime,t.validity=this.validity,t.onTokenChange()):t.refreshToken())},this)},onTokenChange:function(t){clearTimeout(this._refreshTimer);var A=this.server&&g.id.findServerInfo(this.server),G=(A=A&&A.owningSystemUrl)&&g.id.findServerInfo(A);!1!==t&&(!A||"portal"===this.scope||G&&G.webTierAuth&&!g.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 t=p.indexOf(g.id.credentials,this);-1<t&&g.id.credentials.splice(t,1);this.onTokenChange();this.onDestroy()},toJson:function(){return this._toJson()},_toJson:function(){var t=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}),A=this.resources;A&&0<A.length&&(t.resources=A.slice());return t},_startRefreshTimer:function(){clearTimeout(this._refreshTimer);var t=6E4*this.tokenRefreshBuffer,A=Math.pow(2,31)-1,G=(this.validity?this.creationTime+6E4*this.validity:this.expires)-(new Date).getTime();0>G?G=0:G>A&&(G=A);this._refreshTimer=setTimeout(b.hitch(this,this.refreshToken),G>t?G-t:G)}});w.Credential=D;q("extend-esri")&&(g.IdentityManagerBase=w);return w})},"esri/ServerInfo":function(){define(["dojo/_base/declare",
"dojo/_base/lang","dojo/has","./kernel","./lang"],function(F,u,b,p,e){F=F(null,{declaredClass:"esri.ServerInfo",constructor:function(y){u.mixin(this,y)},toJson:function(){return e.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")&&(p.ServerInfo=F);return F})},"esri/OAuthCredential":function(){define(["./kernel","dojo/_base/declare","dojo/has"],function(F,u,b){u=u(null,{declaredClass:"esri.OAuthCredential",oAuthInfo:null,storage:null,appId:null,codeVerifier:null,expires:null,refreshToken:null,ssl:null,stateUID:null,token:null,userId:null,constructor:function(p,e){this.oAuthInfo=p;this.storage=e;this._init()},isValid:function(){var p=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token))if(null==
this.expires&&this.refreshToken)p=!0;else{var e=Date.now();this.expires>e&&(this.expires-e)/1E3>60*this.oAuthInfo.minTimeUntilExpiration&&(p=!0)}return p},save:function(){if(!this.storage)return!1;var p=this._load(),e=this.oAuthInfo;if(e&&e.authNamespace&&e.portalUrl){var y=p[e.authNamespace];y||(y=p[e.authNamespace]={});this.appId||(this.appId=e.appId);y[e.portalUrl]={appId:this.appId,codeVerifier:this.codeVerifier,expires:this.expires,refreshToken:this.refreshToken,ssl:this.ssl,stateUID:this.stateUID,
token:this.token,userId:this.userId};try{this.storage.setItem("esriJSAPIOAuth",JSON.stringify(p))}catch(q){return console.warn(q),!1}return!0}return!1},destroy:function(){var p=this._load(),e=this.oAuthInfo;if(e&&e.appId&&e.portalUrl&&(null==this.expires||this.expires>Date.now())&&(this.refreshToken||this.token)){var y=e.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",q=new FormData;q.append("f","json");q.append("auth_token",this.refreshToken||this.token);q.append("client_id",
e.appId);q.append("token_type_hint",this.refreshToken?"refresh_token":"access_token");if("function"===typeof navigator.sendBeacon)navigator.sendBeacon(y,q);else{var m=new XMLHttpRequest;m.open("POST",y);m.send(q)}}if(e&&e.authNamespace&&e.portalUrl&&this.storage&&(y=p[e.authNamespace])){delete y[e.portalUrl];try{this.storage.setItem("esriJSAPIOAuth",JSON.stringify(p))}catch(f){console.log(f)}}e&&(this.oAuthInfo=e._oAuthCred=null)},_init:function(){var p=this._load(),e=this.oAuthInfo;e&&e.authNamespace&&
e.portalUrl&&(p=p[e.authNamespace])&&(p=p[e.portalUrl])&&(this.appId=p.appId,this.codeVerifier=p.codeVerifier,this.expires=p.expires,this.refreshToken=p.refreshToken,this.ssl=p.ssl,this.stateUID=p.stateUID,this.token=p.token,this.userId=p.userId)},_load:function(){var p={};if(this.storage){var e=this.storage.getItem("esriJSAPIOAuth");if(e)try{p=JSON.parse(e)}catch(y){console.warn(y)}}return p}});b("extend-esri")&&(F.OAuthCredential=u);return u})},"esri/arcgis/OAuthInfo":function(){define(["../kernel",
"../lang","dojo/_base/declare","dojo/_base/lang","dojo/has"],function(F,u,b,p,e){var y=b(null,{declaredClass:"esri.arcgis.OAuthInfo",constructor:function(q){p.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,flowType:"auto"},q)},_oAuthCred:null,toJson:function(){return u.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,flowType:this.flowType})},clone:function(){return new y(this.toJson())}});e("extend-esri")&&p.setObject("arcgis.OAuthInfo",y,F);return y})},"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(F,u,b,p,e,y,q,m,f,g){p("dijit-legacy-requires")&&q(0,function(){F(["dijit/form/DropDownButton","dijit/form/ComboButton","dijit/form/ToggleButton"])});q=u("dijit.form.Button"+(p("dojo-bidi")?"_NoBidi":""),[m,f],{showLabel:!0,iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitButton",templateString:g,_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=y.trim(this.containerNode.innerHTML),this.onLabelSet())},_setShowLabelAttr:function(a){this.containerNode&&b.toggle(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",a)},setLabel:function(a){e.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=y.trim(this.containerNode.innerText||this.containerNode.textContent||""))}});p("dojo-bidi")&&(q=u("dijit.form.Button",q,{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 q})},"dijit/form/_FormWidget":function(){define("dojo/_base/declare dojo/sniff dojo/_base/kernel dojo/ready ../_Widget ../_CssStateMixin ../_TemplatedMixin ./_FormWidgetMixin".split(" "),
function(F,u,b,p,e,y,q,m){u("dijit-legacy-requires")&&p(0,function(){require(["dijit/form/_FormValueWidget"])});return F("dijit.form._FormWidget",[e,q,y,m],{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&&!u("msapp")?'name\x3d"'+this.name.replace(/"/g,"\x26quot;")+'"':"";this.inherited(arguments)}})})},"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(F,u,b,p,e,y,q,m,f,g){return u("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),m("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",F.forEach(e.isArray(a)?a:[a],function(d){d=this[d];m("webkit")||g.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(q(this.focusNode,
"focus",function(){k.remove();d.remove()}))[0],l=m("pointer-events")?"pointerup":m("MSPointer")?"MSPointerUp":m("touch-events")?"touchend, mouseup":"mouseup",k=this.own(q(this.ownerDocumentBody,l,e.hitch(this,function(n){k.remove();d.remove();this.focused&&("touchend"==n.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"!=p.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(F,u,b,p){var e=F("dijit.form._ButtonMixin"+(b("dojo-bidi")?"_NoBidi":""),null,{label:"",type:"button",__onClick:function(y){y.stopPropagation();y.preventDefault();this.disabled||this.valueNode.click(y);return!1},_onClick:function(y){if(this.disabled)return y.stopPropagation(),y.preventDefault(),!1;!1===this.onClick(y)&&y.preventDefault();var q=y.defaultPrevented;if(!q&&"submit"==this.type&&
!(this.valueNode||this.focusNode).form)for(var m=this.domNode;m.parentNode;m=m.parentNode){var f=p.byNode(m);if(f&&"function"==typeof f._onSubmit){f._onSubmit(y);y.preventDefault();q=!0;break}}return!q},postCreate:function(){this.inherited(arguments);u.setSelectable(this.focusNode,!1)},onClick:function(){return!0},_setLabelAttr:function(y){this._set("label",y);(this.containerNode||this.focusNode).innerHTML=y;this.onLabelSet()},onLabelSet:function(){}});b("dojo-bidi")&&(e=F("dijit.form._ButtonMixin",
e,{onLabelSet:function(){this.inherited(arguments);this.applyTextDir(this.containerNode||this.focusNode)}}));return e})},"dijit/form/Form":function(){define("dojo/_base/declare dojo/dom-attr dojo/_base/kernel dojo/sniff ../_Widget ../_TemplatedMixin ./_FormMixin ../layout/_ContentPaneResizeMixin".split(" "),function(F,u,b,p,e,y,q,m){return F("dijit.form.Form",[e,y,q,m],{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){u.set(this.domNode,"encType",f);p("ie")&&(this.domNode.encoding=f);this._set("encType",f)},reset:function(f){var g={returnValue:!0,preventDefault:function(){this.returnValue=!1},stopPropagation:function(){},currentTarget:f?f.target:this.domNode,target:f?f.target:this.domNode};!1!==this.onReset(g)&&g.returnValue&&
this.inherited(arguments,[])},onReset:function(){return!0},_onReset:function(f){this.reset(f);f.stopPropagation();f.preventDefault();return!1},_onSubmit:function(f){var g=this.constructor.prototype;if(this.execute!=g.execute||this.onExecute!=g.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(F,u,b,p,e,y,q){var m=F("dijit.form.ValidationTextBox",e,{templateString:q,required:!1,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},pattern:".*",regExp:"",
regExpGen:function(){},state:"",tooltipPosition:[],_deprecateRegExp:function(f,g){g!=m.prototype[f]&&(u.deprecated("ValidationTextBox id\x3d"+this.id+", set('"+f+"', ...) is deprecated.  Use set('pattern', ...) instead.","","2.0"),this.set("pattern",g))},_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,g){return(new RegExp("^(?:"+this._computeRegexp(g)+")"+(this.required?"":"?")+"$")).test(f)&&(!this.required||!this._isEmpty(f))&&(this._isEmpty(f)||void 0!==this.parse(f,g))},_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,g="$_unset_$"==this.missingMessage?this.messages.missingMessage:this.missingMessage?this.missingMessage:f;return this.required&&this._isEmpty(this.textbox.value)?g:f},getPromptMessage:function(){return this.promptMessage},_maskValidSubsetError:!0,validate:function(f){var g="",a=this.disabled||this.isValid(f);a&&(this._maskValidSubsetError=!0);var d=this._isEmpty(this.textbox.value),l=!a&&f&&this._isValidSubset();this._set("state",a?"":((!this._hasBeenBlurred||
f)&&d||l)&&(this._maskValidSubsetError||l&&!this._hasBeenBlurred&&f)?"Incomplete":"Error");this.focusNode.setAttribute("aria-invalid","Error"==this.state?"true":"false");"Error"==this.state?(this._maskValidSubsetError=f&&l,g=this.getErrorMessage(f)):"Incomplete"==this.state?(g=this.getPromptMessage(f),this._maskValidSubsetError=!this._hasBeenBlurred||f):d&&(g=this.getPromptMessage(f));this.set("message",g);return a},displayMessage:function(f){f&&this.focused?y.show(f,this.domNode,this.tooltipPosition,
!this.isLeftToRight()):y.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 g=this.pattern;"function"==typeof g&&(g=g.call(this,f));if(g!=this._lastRegExp){var a="";this._lastRegExp=g;".*"!=g&&g.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 g},postMixInProperties:function(){this.inherited(arguments);this.messages=p.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(){y.hide(this.domNode);this.inherited(arguments)}});return m})},"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(F,u,b,p,e,y,q,m,f,g,a){m=F("dijit.form.TextBox"+(q("dojo-bidi")?"_NoBidi":""),
[m,f],{templateString:g,_singleNodeTemplate:'\x3cinput class\x3d"dijit dijitReset dijitLeft dijitInputField" data-dojo-attach-point\x3d"textbox,focusNode" autocomplete\x3d"off" type\x3d"${type}" ${!nameAttrSetting} /\x3e',_buttonInputDisabled:q("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>q("ie")&&this.defer(function(){try{var d=b.getComputedStyle(this.domNode);if(d){var l=d.fontFamily;if(l){var k=this.domNode.getElementsByTagName("INPUT");if(k)for(d=0;d<k.length;d++)k[d].style.fontFamily=l}}}catch(n){}})},_setPlaceHolderAttr:function(d){this._set("placeHolder",d);this._phspan||(this._attachPoints.push("_phspan"),this._phspan=u.create("span",{className:"dijitPlaceHolder dijitInputField"},
this.textbox,"after"),this.own(y(this._phspan,"mousedown",function(l){l.preventDefault()}),y(this._phspan,"touchend, pointerup, MSPointerUp",e.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,l,k){this.inherited(arguments);this._updatePlaceHolder()},getDisplayedValue:function(){p.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use get('displayedValue') instead.","","2.0");return this.get("displayedValue")},setDisplayedValue:function(d){p.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(),q("mozilla")&&this.selectOnClick&&(this.textbox.selectionStart=this.textbox.selectionEnd=void 0))},_onFocus:function(d){this.disabled||this.readOnly||(this.inherited(arguments),this._updatePlaceHolder())}});9>q("ie")&&(m.prototype._isTextSelected=function(){var d=this.ownerDocument.selection.createRange();return d.parentElement()==this.textbox&&0<d.text.length},a._setSelectionRange=f._setSelectionRange=function(d,l,k){d.createTextRange&&(d=d.createTextRange(),d.collapse(!0),
d.moveStart("character",-99999),d.moveStart("character",l),d.moveEnd("character",k-l),d.select())});q("dojo-bidi")&&(m=F("dijit.form.TextBox",m,{_setPlaceHolderAttr:function(d){this.inherited(arguments);this.applyTextDir(this._phspan)}}));return m})},"dijit/form/_FormValueWidget":function(){define(["dojo/_base/declare","dojo/sniff","./_FormWidget","./_FormValueMixin"],function(F,u,b,p){return F("dijit.form._FormValueWidget",[b,p],{_layoutHackIE7:function(){if(7==u("ie"))for(var e=this.domNode,y=e.parentNode,
q=e.firstChild||e,m=q.style.filter,f=this;y&&0==y.clientHeight;)(function(){var g=f.connect(y,"onscroll",function(){f.disconnect(g);q.style.filter=(new Date).getMilliseconds();f.defer(function(){q.style.filter=m})})})(),y=y.parentNode}})})},"dijit/form/_FormValueMixin":function(){define("dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on dojo/sniff ./_FormWidgetMixin".split(" "),function(F,u,b,p,e,y,q){return F("dijit.form._FormValueMixin",q,{readOnly:!1,_setReadOnlyAttr:function(m){y("trident")&&
"disabled"in this?u.set(this.focusNode,"readOnly",m||this.disabled):u.set(this.focusNode,"readOnly",m);this._set("readOnly",m)},postCreate:function(){this.inherited(arguments);void 0===this._resetValue&&(this._lastValueReported=this._resetValue=this.value)},_setValueAttr:function(m,f){this._handleOnChange(m,f)},_handleOnChange:function(m,f){this._set("value",m);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(F,u,b,p,e,y,q,m){var f=u("dijit.form._TextBoxMixin"+(p("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(g,a,d){if(void 0!==g){var l=this.filter(g);
"string"!=typeof d&&(d=null===l||"number"==typeof l&&isNaN(l)?"":this.filter(this.format(l,this.constraints)),0!=this.compare(l,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,[l,a])},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},_setDisplayedValueAttr:function(g){null==g?g="":"string"!=
typeof g&&(g=String(g));this.textbox.value=g;this._setValueAttr(this.get("value"),void 0);this._set("displayedValue",this.get("displayedValue"))},format:function(g){return null==g?"":g.toString?g.toString():g},parse:function(g){return g},_refreshState:function(){},onInput:function(){},_onInput:function(g){this._lastInputEventValue=this.textbox.value;this._processInput(this._lastInputProducingEvent||g);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(q(this.textbox,"keydown, keypress, paste, cut, compositionend",y.hitch(this,function(g){if("keydown"==g.type&&229!=g.keyCode){var a=g.keyCode;switch(a){case e.SHIFT:case e.ALT:case e.CTRL:case e.META:case e.CAPS_LOCK:case e.NUM_LOCK:case e.SCROLL_LOCK:return}if(!g.ctrlKey&&!g.metaKey&&
!g.altKey){switch(a){case e.NUMPAD_0:case e.NUMPAD_1:case e.NUMPAD_2:case e.NUMPAD_3:case e.NUMPAD_4:case e.NUMPAD_5:case e.NUMPAD_6:case e.NUMPAD_7:case e.NUMPAD_8:case e.NUMPAD_9:case e.NUMPAD_MULTIPLY:case e.NUMPAD_PLUS:case e.NUMPAD_ENTER:case e.NUMPAD_MINUS:case e.NUMPAD_PERIOD:case e.NUMPAD_DIVIDE:return}if(65<=a&&90>=a||48<=a&&57>=a||a==e.SPACE)return;a=!1;for(var d in e)if(e[d]===g.keyCode){a=!0;break}if(!a)return}}(a=32<=g.charCode?String.fromCharCode(g.charCode):g.charCode)||(a=65<=g.keyCode&&
90>=g.keyCode||48<=g.keyCode&&57>=g.keyCode||g.keyCode==e.SPACE?String.fromCharCode(g.keyCode):g.keyCode);a||(a=229);if("keypress"==g.type){if("string"!=typeof a)return;if("a"<=a&&"z">=a||"A"<=a&&"Z">=a||"0"<=a&&"9">=a||" "===a)if(g.ctrlKey||g.metaKey||g.altKey)return}var l={faux:!0},k;for(k in g)/^(layer[XY]|returnValue|keyLocation)$/.test(k)||(d=g[k],"function"!=typeof d&&"undefined"!=typeof d&&(l[k]=d));y.mixin(l,{charOrCode:a,_wasConsumed:!1,preventDefault:function(){l._wasConsumed=!0;g.preventDefault()},
stopPropagation:function(){g.stopPropagation()}});this._lastInputProducingEvent=l;!1===this.onInput(l)&&(l.preventDefault(),l.stopPropagation());if(!l._wasConsumed&&9>=p("ie"))switch(g.keyCode){case e.TAB:case e.ESCAPE:case e.DOWN_ARROW:case e.UP_ARROW:case e.LEFT_ARROW:case e.RIGHT_ARROW:break;default:g.keyCode==e.ENTER&&"textarea"!=this.textbox.tagName.toLowerCase()||this.defer(function(){this.textbox.value!==this._lastInputEventValue&&q.emit(this.textbox,"input",{bubbles:!0})})}})),q(this.textbox,
"input",y.hitch(this,"_onInput")),q(this.domNode,"keypress",function(g){g.stopPropagation()}))},_blankValue:"",filter:function(g){if(null===g)return this._blankValue;if("string"!=typeof g)return g;this.trim&&(g=y.trim(g));this.uppercase&&(g=g.toUpperCase());this.lowercase&&(g=g.toLowerCase());this.propercase&&(g=g.replace(/[^\s]+/g,function(a){return a.substring(0,1).toUpperCase()+a.substring(1)}));return g},_setBlurValue:function(){this._setValueAttr(this.get("value"),!0)},_onBlur:function(g){this.disabled||
(this._setBlurValue(),this.inherited(arguments))},_isTextSelected:function(){return this.textbox.selectionStart!=this.textbox.selectionEnd},_onFocus:function(g){this.disabled||this.readOnly||(this.selectOnClick&&"mouse"==g&&(this._selectOnClickHandle=q.once(this.domNode,"mouseup, touchend",y.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)}});p("dojo-bidi")&&(f=u("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=m._setSelectionRange=function(g,a,
d){g.setSelectionRange&&g.setSelectionRange(a,d)};f.selectInputText=m.selectInputText=function(g,a,d){g=b.byId(g);isNaN(a)&&(a=0);isNaN(d)&&(d=g.value?g.value.length:0);try{g.focus(),f._setSelectionRange(g,a,d)}catch(l){}};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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r){function v(){}var z=u("dijit._MasterTooltip",[k,n],{duration:d.defaultDuration,templateString:c,postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);this.bgIframe=new h(this.domNode);this.fadeIn=b.fadeIn({node:this.domNode,duration:this.duration,onEnd:m.hitch(this,"_onShow")});this.fadeOut=b.fadeOut({node:this.domNode,duration:this.duration,onEnd:m.hitch(this,"_onHide")})},show:function(x,E,B,w,D,t,A){if(!this.aroundNode||this.aroundNode!==
E||this.containerNode.innerHTML!=x)if("playing"==this.fadeOut.status())this._onDeck=arguments;else{this.containerNode.innerHTML=x;D&&this.set("textDir",D);this.containerNode.align=w?"right":"left";var G=l.around(this.domNode,E,B&&B.length?B:C.defaultPosition,!w,m.hitch(this,"orient")),J=G.aroundNodePos;"M"==G.corner.charAt(0)&&"M"==G.aroundCorner.charAt(0)?(this.connectorNode.style.top=J.y+(J.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=J.x+(J.w-this.connectorNode.offsetWidth>>1)-G.x+"px":(this.connectorNode.style.left="",this.connectorNode.style.top="");q.set(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=!0;this.aroundNode=E;this.onMouseEnter=t||v;this.onMouseLeave=A||v}},orient:function(x,E,B,w,D){this.connectorNode.style.top="";var t=w.h;w=w.w;x.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"}[E+"-"+B];this.domNode.style.width="auto";var A=y.position(this.domNode);if(a("ie")||a("trident"))A.w+=2;y.setMarginBox(this.domNode,{w:Math.min(Math.max(w,1),A.w)});"B"==B.charAt(0)&&"B"==E.charAt(0)?(x=y.position(x),E=this.connectorNode.offsetHeight,
x.h>t?(this.connectorNode.style.top=t-(D.h+E>>1)+"px",this.connectorNode.style.bottom=""):(this.connectorNode.style.bottom=Math.min(Math.max(D.h/2-E/2,0),x.h-E)+"px",this.connectorNode.style.top="")):(this.connectorNode.style.top="",this.connectorNode.style.bottom="");return Math.max(0,A.w-w)},_onShow:function(){a("ie")&&(this.domNode.style.filter="")},hide:function(x){this._onDeck&&this._onDeck[1]==x?this._onDeck=null:this.aroundNode===x&&(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")&&z.extend({_setAutoTextDir:function(x){this.applyTextDir(x);F.forEach(x.children,function(E){this._setAutoTextDir(E)},this)},_setTextDirAttr:function(x){this._set("textDir",x);"auto"==x?this._setAutoTextDir(this.containerNode):this.containerNode.dir=this.textDir}});r.showTooltip=
function(x,E,B,w,D,t,A){B&&(B=F.map(B,function(G){return{after:"after-centered",before:"before-centered"}[G]||G}));C._masterTT||(r._masterTT=C._masterTT=new z);return C._masterTT.show(x,E,B,w,D,t,A)};r.hideTooltip=function(x){return C._masterTT&&C._masterTT.hide(x)};var C=u("dijit.Tooltip",k,{label:"",showDelay:400,hideDelay:400,connectId:[],position:[],selector:"",_setConnectIdAttr:function(x){F.forEach(this._connections||[],function(E){F.forEach(E,function(B){B.remove()})},this);this._connectIds=
F.filter(m.isArrayLike(x)?x:x?[x]:[],function(E){return p.byId(E,this.ownerDocument)},this);this._connections=F.map(this._connectIds,function(E){E=p.byId(E,this.ownerDocument);var B=this.selector,w=B?function(t){return g.selector(B,t)}:function(t){return t},D=this;return[g(E,w(f.enter),function(){D._onHover(this)}),g(E,w("focusin"),function(){D._onHover(this)}),g(E,w(f.leave),m.hitch(D,"_onUnHover")),g(E,w("focusout"),m.hitch(D,"set","state","DORMANT"))]},this);this._set("connectId",x)},addTarget:function(x){x=
x.id||x;-1==F.indexOf(this._connectIds,x)&&this.set("connectId",this._connectIds.concat(x))},removeTarget:function(x){x=F.indexOf(this._connectIds,x.id||x);0<=x&&(this._connectIds.splice(x,1),this.set("connectId",this._connectIds))},buildRendering:function(){this.inherited(arguments);e.add(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var x=this.connectId;F.forEach(m.isArrayLike(x)?x:[x],this.addTarget,this)},getContent:function(x){return this.label||this.domNode.innerHTML},
state:"DORMANT",_setStateAttr:function(x){if(!(this.state==x||"SHOW TIMER"==x&&"SHOWING"==this.state||"HIDE TIMER"==x&&"DORMANT"==this.state)){this._hideTimer&&(this._hideTimer.remove(),delete this._hideTimer);this._showTimer&&(this._showTimer.remove(),delete this._showTimer);switch(x){case "DORMANT":this._connectNode&&(C.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 E=this.getContent(this._connectNode);if(!E){this.set("state","DORMANT");return}C.show(E,this._connectNode,this.position,!this.isLeftToRight(),this.textDir,m.hitch(this,"set","state","SHOWING"),m.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",x)}},_onHover:function(x){this._connectNode&&x!=this._connectNode&&
this.set("state","DORMANT");this._connectNode=x;this.set("state","SHOW TIMER")},_onUnHover:function(x){this.set("state","HIDE TIMER")},open:function(x){this.set("state","DORMANT");this._connectNode=x;this.set("state","SHOWING")},close:function(){this.set("state","DORMANT")},onShow:function(){},onHide:function(){},destroy:function(){this.set("state","DORMANT");F.forEach(this._connections||[],function(x){F.forEach(x,function(E){E.remove()})},this);this.inherited(arguments)}});C._MasterTooltip=z;C.show=
r.showTooltip;C.hide=r.hideTooltip;C.defaultPosition=["after-centered","before-centered"];return C})},"dijit/place":function(){define("dojo/_base/array dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/_base/window ./Viewport ./main".split(" "),function(F,u,b,p,e,y,q){function m(g,a,d,l){var k=y.getEffectiveBox(g.ownerDocument);g.parentNode&&"body"==String(g.parentNode.tagName).toLowerCase()||e.body(g.ownerDocument).appendChild(g);var n=null;F.some(a,function(r){var v=r.corner,z=r.pos,C=0,x=
{w:{L:k.l+k.w-z.x,R:z.x-k.l,M:k.w}[v.charAt(1)],h:{T:k.t+k.h-z.y,B:z.y-k.t,M:k.h}[v.charAt(0)]},E=g.style;E.left=E.right="auto";d&&(C=d(g,r.aroundCorner,v,x,l),C="undefined"==typeof C?0:C);var B=g.style,w=B.display,D=B.visibility;"none"==B.display&&(B.visibility="hidden",B.display="");E=u.position(g);B.display=w;B.visibility=D;w={L:z.x,R:z.x-E.w,M:Math.max(k.l,Math.min(k.l+k.w,z.x+(E.w>>1))-E.w)}[v.charAt(1)];D={T:z.y,B:z.y-E.h,M:Math.max(k.t,Math.min(k.t+k.h,z.y+(E.h>>1))-E.h)}[v.charAt(0)];z=Math.max(k.l,
w);B=Math.max(k.t,D);w=Math.min(k.l+k.w,w+E.w)-z;D=Math.min(k.t+k.h,D+E.h)-B;C+=E.w-w+(E.h-D);if(null==n||C<n.overflow)n={corner:v,aroundCorner:r.aroundCorner,x:z,y:B,w:w,h:D,overflow:C,spaceAvailable:x};return!C});n.overflow&&d&&d(g,n.aroundCorner,n.corner,n.spaceAvailable,l);a=n.y;var h=n.x,c=e.body(g.ownerDocument);/relative|absolute/.test(b.get(c,"position"))&&(a-=b.get(c,"marginTop"),h-=b.get(c,"marginLeft"));c=g.style;c.top=a+"px";c.left=h+"px";c.right="auto";return n}var f={TL:"BR",TR:"BL",
BL:"TR",BR:"TL"};return q.place={at:function(g,a,d,l,k){d=F.map(d,function(n){var h={corner:n,aroundCorner:f[n],pos:{x:a.x,y:a.y}};l&&(h.pos.x+="L"==n.charAt(1)?l.x:-l.x,h.pos.y+="T"==n.charAt(0)?l.y:-l.y);return h});return m(g,d,k)},around:function(g,a,d,l,k){function n(t,A){D.push({aroundCorner:t,corner:A,pos:{x:{L:x,R:x+B,M:x+(B>>1)}[t.charAt(1)],y:{T:E,B:E+w,M:E+(w>>1)}[t.charAt(0)]}})}if("string"==typeof a||"offsetWidth"in a||"ownerSVGElement"in a){var h=u.position(a,!0);if(/^(above|below)/.test(d[0])){var c=
u.getBorderExtents(a),r=a.firstChild?u.getBorderExtents(a.firstChild):{t:0,l:0,b:0,r:0},v=u.getBorderExtents(g),z=g.firstChild?u.getBorderExtents(g.firstChild):{t:0,l:0,b:0,r:0};h.y+=Math.min(c.t+r.t,v.t+z.t);h.h-=Math.min(c.t+r.t,v.t+z.t)+Math.min(c.b+r.b,v.b+z.b)}}else h=a;if(a.parentNode)for(c="absolute"==b.getComputedStyle(a).position,a=a.parentNode;a&&1==a.nodeType&&"BODY"!=a.nodeName;){r=u.position(a,!0);v=b.getComputedStyle(a);/relative|absolute/.test(v.position)&&(c=!1);if(!c&&/hidden|auto|scroll/.test(v.overflow)){z=
Math.min(h.y+h.h,r.y+r.h);var C=Math.min(h.x+h.w,r.x+r.w);h.x=Math.max(h.x,r.x);h.y=Math.max(h.y,r.y);h.h=z-h.y;h.w=C-h.x}"absolute"==v.position&&(c=!0);a=a.parentNode}var x=h.x,E=h.y,B="w"in h?h.w:h.w=h.width,w="h"in h?h.h:(p.deprecated("place.around: dijit/place.__Rectangle: { x:"+x+", y:"+E+", height:"+h.height+", width:"+B+" } has been deprecated.  Please use { x:"+x+", y:"+E+", h:"+h.height+", w:"+B+" }","","2.0"),h.h=h.height),D=[];F.forEach(d,function(t){var A=l;switch(t){case "above-centered":n("TM",
"BM");break;case "below-centered":n("BM","TM");break;case "after-centered":A=!A;case "before-centered":n(A?"ML":"MR",A?"MR":"ML");break;case "after":A=!A;case "before":n(A?"TL":"TR",A?"TR":"TL");n(A?"BL":"BR",A?"BR":"BL");break;case "below-alt":A=!A;case "below":n(A?"BL":"BR",A?"TL":"TR");n(A?"BR":"BL",A?"TR":"TL");break;case "above-alt":A=!A;case "above":n(A?"TL":"TR",A?"BL":"BR");n(A?"TR":"TL",A?"BR":"BL");break;default:n(t.aroundCorner,t.corner)}});g=m(g,D,k,{w:B,h:w});g.aroundNodePos=h;return g}}})},
"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 ./core/events dijit/form/Button dojo/query".split(" "),function(F,u,b,p,e,y,q,m,f,g,a,d,l){var k=null,n=null;try{k=window.localStorage,n=window.sessionStorage}catch(c){}var h=window.crypto||window.msCrypto;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(c){this._oAuthRedirectFunc=c},oAuthSignIn:function(c,r,v,z){var C=this._oAuthDfd=new m;C.resUrl_=c;C.sinfo_=r;C.oinfo_=v;var x=v._oAuthCred;if(x.storage&&("authorization-code"===v.flowType||"auto"===v.flowType&&8.4<=r.currentVersion)){var E=h.getRandomValues(new Uint8Array(32));var B=p.base64UrlEncode(E);x.codeVerifier=B;E=h.getRandomValues(new Uint8Array(32));x.stateUID=p.base64UrlEncode(E);x.save()||(x.codeVerifier=B=null)}else x.codeVerifier=null;var w=this;
this._getCodeChallenge(B).then(function(D){var t=!z||!1!==z.oAuthPopupConfirmation;if(!v.popup||!t)return w._doOAuthSignIn(c,r,v,D),C;C.codeChallenge_=D;w._nls||(w._nls=a.identity);w.oAuthDialog||(w.oAuthDialog=w._createOAuthDialog());D=w.oAuthDialog;t=z&&z.error;var A=z&&z.token;u.hide(D.errMsg_);t&&403==t.code&&A&&(g.set(D.errMsg_,"innerHTML",w._nls.forbidden),u.show(D.errMsg_));g.set(D.serverLink_,{title:r.server,innerHTML:-1!==r.server.toLowerCase().indexOf("arcgis.com")?"ArcGIS Online":r.server});
D.show()});return C},setOAuthResponseHash:function(c){c&&("#"===c.charAt(0)&&(c=c.substring(1)),this._processOAuthPopupParams(d.queryToObject(c)))},_createOAuthDialog:function(){var c=this._nls,r=b.substitute(c,this._oAuthDialogContent);r=b.substitute({server:"\x3cspan class\x3d'serverLink' style\x3d'word-wrap: break-word;'\x3e\x3c/span\x3e"},r);var v=new e({title:c.title,content:r,"class":"esriOAuthSignInDialog",style:"min-width: 18em;",esriIdMgr_:this,execute_:function(){var z=v.esriIdMgr_._oAuthDfd;
v.hide_();v.esriIdMgr_._doOAuthSignIn(z.resUrl_,z.sinfo_,z.oinfo_,z.codeChallenge_)},cancel_:function(){var z=v.esriIdMgr_._oAuthDfd;v.esriIdMgr_._oAuthDfd=null;v.hide_();var C=Error("ABORTED");C.code="IdentityManager.2";C.log=!!q.isDebug;z.errback(C)},hide_:function(){u.hide(v.errMsg_);v.hide();e._DialogLevelManager.hide(v)}});c=v.domNode;v.btnSubmit_=y.byNode(f.query(".esriIdSubmit",c)[0]);v.btnCancel_=y.byNode(f.query(".esriIdCancel",c)[0]);v.serverLink_=f.query(".serverLink",c)[0];v.errMsg_=f.query(".esriErrorMsg",
c)[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(c,r,v,z){var C=this,x=v._oAuthCred,E={portalUrl:v.portalUrl};!v.popup&&v.preserveUrlHash&&window.location.hash&&(E.hash=window.location.hash);x.stateUID&&(E.uid=x.stateUID);E={client_id:v.appId,response_type:x.codeVerifier?"code":"token",state:JSON.stringify(E),expiration:v.expiration,locale:v.locale,redirect_uri:this._getRedirectURI(v,
!!x.codeVerifier)};v.forceLogin&&(E.force_login=!0);v.forceUserId&&v.userId&&(E.prepopulatedusername=v.userId);!v.popup&&this._doPortalSignIn(c)&&(E.redirectToUserOrgUrl=!0);x.codeVerifier&&(E.code_challenge=z||x.codeVerifier,E.code_challenge_method=z?"S256":"plain");z=v.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize";x=z+"?"+d.objectToQuery(E);if(v.popup){var B=window.open(x,"esriJSAPIOAuth",v.popupWindowFeatures);B?(B.focus(),this._oAuthDfd.oAuthWin_=B,this._oAuthIntervalId=setInterval(function(){if(B.closed){clearInterval(C._oAuthIntervalId);
C._oAuthOnPopupHandle.remove();var w=C._oAuthDfd;if(w){var D=Error("ABORTED");D.code="IdentityManager.2";D.log=!!q.isDebug;w.errback(D)}}},500),C._oAuthOnPopupHandle=l.on(window,["arcgis:auth:hash","arcgis:auth:location:search"],function(w){"arcgis:auth:hash"===w.type?C.setOAuthResponseHash(w.detail):C._setOAuthResponseQueryString(w.detail)})):(c=Error("ABORTED"),c.name="identity-manager:user-aborted",c.code="IdentityManager.2",c.log=!!q.isDebug,this._oAuthDfd.errback(c))}else this._rejectOnPersistedPageShow=
!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:E,authorizeUrl:z,resourceUrl:c,serverInfo:r,oAuthInfo:v}):window.location.href=x},_getCodeChallenge:function(c){if(c&&window.isSecureContext)return c=(new TextEncoder).encode(c),h.subtle.digest("SHA-256",c).then(function(r){return p.base64UrlEncode(new Uint8Array(r))});c=new m;c.resolve(null);return c},_getRedirectURI:function(c,r){var v=window.location.href.replace(/#.*$/,"");if(c.popup)return p.getAbsoluteUrl(c.popupCallbackUrl);
if(r){var z=p.urlToObject(v);if(z.query)return"code error error_description message_code persist state".split(" ").forEach(function(C){delete z.query[C]}),(c=d.objectToQuery(z.query))?z.path+"?"+c:z.path}return v},_processOAuthPopupParams:function(c){var r=this._oAuthDfd;this._oAuthDfd=null;if(r)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle&&this._oAuthOnPopupHandle.remove(),c.error){var v="access_denied"===c.error;c=Error(v?"ABORTED":"OAuth: "+c.error+" - "+c.error_description);
c.name=v?"identity-manager:user-aborted":"identity-manager:authentication-failed";c.code="IdentityManagerBase."+(v?2:3);c.log=!!q.isDebug;r.errback(c)}else this._processOAuthResponseParams(c,r.oinfo_,r.sinfo_).then(function(z){r.resolve(z)}).catch(function(z){r.reject(z)})},_processOAuthResponseParams:function(c,r,v){var z=r._oAuthCred;if(c.code){var C=z.codeVerifier;z.codeVerifier=null;z.stateUID=null;z.save();return this._getOAuthToken(v.server,c.code,r.appId,this._getRedirectURI(r,!0),C).then(function(E){var B=
new F({userId:E.username,server:v.server,token:E.access_token,expires:Date.now()+1E3*E.expires_in,ssl:E.ssl,oAuthState:c.state,_oAuthCred:z});r.userId=B.userId;z.storage=E.persist?k:n;z.refreshToken=E.refresh_token;z.token=null;z.expires=E.refresh_token_expires_in?Date.now()+1E3*E.refresh_token_expires_in:null;z.userId=B.userId;z.ssl=B.ssl;z.save();return B})}C=new F({userId:c.username,server:v.server,token:c.access_token,expires:Date.now()+1E3*Number(c.expires_in),ssl:"true"===c.ssl,oAuthState:c.state,
_oAuthCred:z});r.userId=C.userId;z.storage=c.persist?k:n;z.refreshToken=null;z.token=C.token;z.expires=C.expires;z.userId=C.userId;z.ssl=C.ssl;z.save();var x=new m;x.resolve(C);return x},_setOAuthResponseQueryString:function(c){c&&("?"===c.charAt(0)&&(c=c.substring(1)),this._processOAuthPopupParams(d.queryToObject(c)))}}})},"esri/core/events":function(){define([],function(){return{on:function(F,u,b){if(!F||"function"!==typeof F.on&&"function"!==typeof F.addEventListener)throw new TypeError("target is not a Evented or EventTarget object");
if("on"in F)return F.on(u,b);if(Array.isArray(u)){for(var p=u.slice(),e=0;e<p.length;e++)F.addEventListener(p[e],b);return{remove:function(){for(var y=0;y<p.length;y++)F.removeEventListener(p[y],b)}}}F.addEventListener(u,b);return{remove:function(){F.removeEventListener(u,b)}}}}})},"esri/arcade/ArcadeModuleLoader":function(){define(["require","exports"],function(F,u){Object.defineProperty(u,"__esModule",{value:!0});u.ArcadeModuleLoader=void 0;F=function(){function b(p,e){this._moduleSingletons=p;
this._syntaxModules=e}b.prototype.loadLibrary=function(p){return null==this._syntaxModules?null:(p=this._syntaxModules[p.toLowerCase()])?{syntax:p.script,uri:p.uri}:null};return b}();u.ArcadeModuleLoader=F})},"esri/arcade/ArcadeModuleResolver":function(){define("require exports ./polyfill/tsSupport/awaiter ./polyfill/tsSupport/generator ./polyfill/tsSupport/assign ./polyfill/tsSupport/spreadarray ../request ./parser ./featureset/support/RecentlyUsedCache ./executionError".split(" "),function(F,u,
b,p,e,y,q,m,f,g){Object.defineProperty(u,"__esModule",{value:!0});u.ArcadeModuleResolver=void 0;F=function(){function a(d){this.portalUri=d}a.prototype.extractRegexGroups=function(d,l){for(var k=[],n=0;n<l.length;n++)k[l[n]]="";n=0;for(var h=1;h<d.length;h++){var c=d[h];if(null!==c&&void 0!==c&&(k[l[n]]=c,n++,n>=l.length))break}return k};a.prototype.normalizeModuleUri=function(d){var l=/^[a-z0-9A-Z]+(@[0-9]+\.[0-9]+\.[0-9]+)?([\?|\/].*)?$/gi,k=/(.+)\/home\/item\.html\?id=(.+)$/gi,n=/(.+)\/sharing\/rest\/content\/users\/[a-zA-Z0-9]+\/items\/(.+)$/gi,
h=/(.+)\/sharing\/rest\/content\/items\/(.+)$/gi,c=/(.*)@([0-9]+\.[0-9]+\.[0-9]+)([\?|\/].*)?$/gi;if(d.startsWith("portal+")){var r=d.substring(7),v="",z=r,C=!1,x=0;for(k=[k,h,n];x<k.length;x++)if(n=k[x].exec(r),null!==n){C=this.extractRegexGroups(n,["portalurl","itemid"]);z=C.itemid;v=C.portalurl;C=!0;break}if(!1===C)if(l.test(r))z=r,v=this.portalUri;else throw new g.ModuleError(g.ModuleErrorCodes.UnsupportedUriProtocol,{uri:d});z.includes("/")&&(z=z.split("/")[0]);z.includes("?")&&(z=z.split("?")[0]);
d="current";c=c.exec(z);null!==c&&(C=this.extractRegexGroups(c,["itemid","versionstring"]),z=C.itemid,d=C.versionstring);v=(r||v).replace(/\/+$/,"");r=(-1!==v.indexOf("/sharing")?v+"/":v+"/sharing/rest/")+"content/items/"+z+"/resources/"+d+".arc";return{url:r,scheme:"portal",uri:"PO:"+r}}if(d.startsWith("mock")){if("mock"===d)return{url:"",scheme:"mock",data:'\n      export var hello \x3d 1;\n      export function helloWorld() {\n          return "Hello World " + hello;\n      }\n  ',uri:"mock"};
r=d.replace("mock:","");if(void 0!==a.mocks[r])return{url:"",scheme:"mock",data:a.mocks[r],uri:d}}throw new g.ModuleError(g.ModuleErrorCodes.UnrecognisedUri,{uri:d});};a.prototype.fetchModule=function(d){return b(this,void 0,void 0,function(){var l,k,n,h;return p(this,function(c){switch(c.label){case 0:if(l=a.cachedModules.getFromCache(d.uri))return[2,l];k=this.fetchSource(d);a.cachedModules.addToCache(d.uri,k);n=null;c.label=1;case 1:return c.trys.push([1,3,,4]),[4,k];case 2:return n=c.sent(),[3,
4];case 3:throw h=c.sent(),a.cachedModules.removeFromCache(d.uri),h;case 4:return[2,n]}})})};a.prototype.fetchSource=function(d){var l;return b(this,void 0,void 0,function(){var k;return p(this,function(n){switch(n.label){case 0:return"portal"!==d.scheme?[3,2]:[4,q({url:d.url,handleAs:"text",content:{},callbackParamName:"callback"})];case 1:if(k=n.sent())return[2,m.parseScript(k,[])];n.label=2;case 2:if("mock"===d.scheme)return[2,m.parseScript(null!==(l=d.data)&&void 0!==l?l:"",[])];throw new g.ModuleError(g.ModuleErrorCodes.UnsupportedUriProtocol);
}})})};a.create=function(d){return new a(d)};a.getDefault=function(){var d;return null!==(d=this._default)&&void 0!==d?d:a._default=a._moduleResolverFactory()};Object.defineProperty(a,"moduleResolverClass",{set:function(d){this._moduleResolverFactory=d;this._default=null},enumerable:!1,configurable:!0});a.mocks={};a.cachedModules=new f(30);a._default=null;a._moduleResolverFactory=function(){return new a("https://www.arcgis.com")};return a}();u.ArcadeModuleResolver=F})},"esri/arcade/parser":function(){define(["require",
"exports","./treeAnalysis","./lib/arcade-parser","./lib/arcade-parser"],function(F,u,b,p,e){Object.defineProperty(u,"__esModule",{value:!0});u.parseScript=void 0;u.parseScript=function(y,q){void 0===q&&(q=[]);y=p.parse(y);if(null===y.body||void 0===y.body)throw new e.ParsingError({index:0,line:0,column:0,data:null,description:"",code:e.ParsingErrorCodes.InvalidExpression});if(0===y.body.length)throw new e.ParsingError({index:0,line:0,column:0,data:null,description:"",code:e.ParsingErrorCodes.InvalidExpression});
if(0===y.body.length)throw new e.ParsingError({index:0,line:0,column:0,data:null,description:"",code:e.ParsingErrorCodes.InvalidExpression});y.loadedModules={};b.findScriptDependencies(y,q);return y}})},"esri/arcade/lib/arcade-parser":function(){define("require exports ../polyfill/tsSupport/exportstar ./parser ./tokenizer ./types".split(" "),function(F,u,b,p,e,y){Object.defineProperty(u,"__esModule",{value:!0});u.tokenize=u.parse=void 0;b(y,u);u.parse=function(q,m,f){return(new p.Parser(q,m,f)).parseScript()};
u.tokenize=function(q,m,f){q=new e.Tokenizer(q,m);m=[];var g=void 0;try{for(var a=void 0;a=q.getNextToken();)f&&(a=f(a)),m.push(a)}catch(d){q.errorHandler.tolerate(d)}q.errorHandler.tolerant&&(g=q.errors());return{tokens:m,errors:g}}})},"esri/arcade/polyfill/tsSupport/exportstar":function(){define([],function(){return function(){var F=this&&this.__createBinding||(Object.create?function(u,b,p,e){void 0===e&&(e=p);Object.defineProperty(u,e,{enumerable:!0,get:function(){return b[p]}})}:function(u,b,
p,e){void 0===e&&(e=p);u[e]=b[p]});return function(u,b){for(var p in u)"default"===p||Object.prototype.hasOwnProperty.call(b,p)||F(b,u,p)}}()})},"esri/arcade/lib/parser":function(){define("require exports ../polyfill/tsSupport/assign ../polyfill/tsSupport/spreadarray ../polyfill/tsSupport/extends ./comment-handler ./error-handler ./scanner ./types".split(" "),function(F,u,b,p,e,y,q,m,f){function g(n,h){void 0===h&&(h=0);var c=n.start-n.lineStart,r=n.lineNumber;0>c&&(c+=h,r--);return{index:n.start,
line:r,column:c}}function a(n){return[b({index:n.range[0]},n.loc.start),b({index:n.range[1]},n.loc.end)]}function d(n){var h;return null!==(h=f.OperatorPrecedence[n])&&void 0!==h?h:0}Object.defineProperty(u,"__esModule",{value:!0});u.Parser=u.binaryOperatorPrecedence=void 0;var l;(function(n){n[n.None=0]="None";n[n.Function=1]="Function";n[n.IfClause=2]="IfClause";n[n.ForLoop=4]="ForLoop";n[n.WhileLoop=8]="WhileLoop"})(l||(l={}));var k;(function(n){n[n.AsObject=0]="AsObject";n[n.Automatic=1]="Automatic"})(k||
(k={}));u.binaryOperatorPrecedence=d;F=function(){function n(h,c,r){void 0===c&&(c={});this.delegate=r;this.hasLineTerminator=!1;this.options={tokens:"boolean"===typeof c.tokens&&c.tokens,comments:"boolean"===typeof c.comments&&c.comments,tolerant:"boolean"===typeof c.tolerant&&c.tolerant};this.options.comments&&(this.commentHandler=new y.CommentHandler);this.errorHandler=new q.ErrorHandler(this.options.tolerant);this.scanner=new m.Scanner(h,this.errorHandler);this.context={isAssignmentTarget:!1,
blockContext:l.None,curlyParsingType:k.AsObject};this.rawToken={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0};this.tokens=[];this.startMarker={index:0,line:this.scanner.lineNumber,column:0};this.endMarker={index:0,line:this.scanner.lineNumber,column:0};this.readNextRawToken();this.endMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}n.prototype.throwIfInvalidType=function(h,c,r){var v=r.validTypes;r=r.invalidTypes;
(null===v||void 0===v?0:v.some(function(z){return h.type===z}))||null!==r&&void 0!==r&&r.some(function(z){return h.type===z})&&this.throwError(f.ParsingErrorCodes.InvalidExpression,c)};n.prototype.throwError=function(h,c,r){void 0===r&&(r=this.endMarker);var v=c.index;this.errorHandler.throwError({code:h,index:v,line:c.line,column:c.column+1,len:r.index-v-1})};n.prototype.tolerateError=function(h,c){throw Error("######################################### !!!");};n.prototype.unexpectedTokenError=function(h){void 0===
h&&(h={});var c=h.rawToken,r=h.code;h=h.data;if(c){if(!r)switch(c.type){case 2:r=f.ParsingErrorCodes.UnexpectedEndOfScript;break;case 3:r=f.ParsingErrorCodes.UnexpectedIdentifier;break;case 6:r=f.ParsingErrorCodes.UnexpectedNumber;break;case 8:r=f.ParsingErrorCodes.UnexpectedString;break;case 10:r=f.ParsingErrorCodes.UnexpectedTemplate}var v=c.value.toString()}else v="ILLEGAL";r=null!==r&&void 0!==r?r:f.ParsingErrorCodes.UnexpectedToken;h||(h={value:v});v=q.formatErrorDescription(r,h);if(c)return new f.ParsingError({code:r,
index:c.start,line:c.lineNumber,column:c.start-c.lineStart+1,len:c.end-c.start-1,data:h,description:v});c=this.endMarker;return new f.ParsingError({code:r,index:c.index,line:c.line,column:this.endMarker.column+1,data:h,description:v})};n.prototype.throwUnexpectedToken=function(h){var c;void 0===h&&(h={});h.rawToken=null!==(c=h.rawToken)&&void 0!==c?c:this.rawToken;throw this.unexpectedTokenError(h);};n.prototype.collectComments=function(h){var c=this,r=this.commentHandler;r&&h.length&&h.forEach(function(v){v=
{type:v.multiLine?"BlockComment":"LineComment",value:c.getSourceValue(v),range:v.range,loc:v.loc};r.collectComment(v)})};n.prototype.peekAhead=function(h){var c=this,r=this.scanner.saveState();h=h.call(this,function(){c.scanner.scanComments();return c.scanner.lex()});this.scanner.restoreState(r);return h};n.prototype.getSourceValue=function(h){return this.scanner.source.slice(h.start,h.end)};n.prototype.convertToToken=function(h){return{type:f.TokenNames[h.type],value:this.getSourceValue(h),range:[h.start,
h.end],loc:{start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}}};n.prototype.readNextRawToken=function(){this.endMarker.index=this.scanner.index;this.endMarker.line=this.scanner.lineNumber;this.endMarker.column=this.scanner.index-this.scanner.lineStart;var h=this.rawToken;this.collectComments(this.scanner.scanComments());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);this.rawToken=this.scanner.lex();this.hasLineTerminator=h.lineNumber!==this.rawToken.lineNumber;this.options.tokens&&2!==this.rawToken.type&&this.tokens.push(this.convertToToken(this.rawToken))};n.prototype.captureStartMarker=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}};n.prototype.getItemLocation=function(h){return{range:[h.index,
this.endMarker.index],loc:{start:{line:h.line,column:h.column},end:{line:this.endMarker.line,column:this.endMarker.column}}}};n.prototype.finalize=function(h){var c,r;if(this.delegate||this.commentHandler)null===(c=this.commentHandler)||void 0===c?void 0:c.attachComments(h),null===(r=this.delegate)||void 0===r?void 0:r.call(this,h);return h};n.prototype.expectPunctuator=function(h){var c=this.rawToken;this.matchPunctuator(h)?this.readNextRawToken():this.throwUnexpectedToken({rawToken:c,code:f.ParsingErrorCodes.PunctuatorExpected,
data:{value:h}})};n.prototype.expectKeyword=function(h){4===this.rawToken.type&&this.rawToken.value.toLowerCase()===h?this.readNextRawToken():this.throwUnexpectedToken({rawToken:this.rawToken})};n.prototype.expectContextualKeyword=function(h){3===this.rawToken.type&&this.rawToken.value.toLowerCase()===h?this.readNextRawToken():this.throwUnexpectedToken({rawToken:this.rawToken})};n.prototype.matchKeyword=function(h){return 4===this.rawToken.type&&this.rawToken.value.toLowerCase()===h};n.prototype.matchContextualKeyword=
function(h){return 3===this.rawToken.type&&this.rawToken.value===h};n.prototype.matchPunctuator=function(h){return 7===this.rawToken.type&&this.rawToken.value===h};n.prototype.getMatchingPunctuator=function(h){"string"===typeof h&&(h=h.split(""));if(7===this.rawToken.type&&null!==h&&void 0!==h&&h.length)return h.find(this.matchPunctuator,this)};n.prototype.isolateCoverGrammar=function(h){var c=this.context.isAssignmentTarget;this.context.isAssignmentTarget=!0;h=h.call(this);this.context.isAssignmentTarget=
c;return h};n.prototype.inheritCoverGrammar=function(h){var c=this.context.isAssignmentTarget;this.context.isAssignmentTarget=!0;h=h.call(this);this.context.isAssignmentTarget=this.context.isAssignmentTarget&&c;return h};n.prototype.withBlockContext=function(h,c){var r=this.context.blockContext;this.context.blockContext|=h;h=this.context.curlyParsingType;this.context.curlyParsingType=k.Automatic;c=c.call(this);this.context.blockContext=r;this.context.curlyParsingType=h;return c};n.prototype.consumeSemicolon=
function(){this.matchPunctuator(";")?this.readNextRawToken():this.hasLineTerminator||(2===this.rawToken.type||this.matchPunctuator("}")?(this.endMarker.index=this.startMarker.index,this.endMarker.line=this.startMarker.line,this.endMarker.column=this.startMarker.column):this.throwUnexpectedToken({rawToken:this.rawToken}))};n.prototype.parsePrimaryExpression=function(){var h=this.captureStartMarker(),c=this.rawToken;switch(c.type){case 3:return this.readNextRawToken(),this.finalize(b({type:"Identifier",
name:c.value},this.getItemLocation(h)));case 6:case 8:return this.context.isAssignmentTarget=!1,this.readNextRawToken(),this.finalize(b({type:"Literal",value:c.value,raw:this.getSourceValue(c),isString:"string"===typeof c.value},this.getItemLocation(h)));case 1:return this.context.isAssignmentTarget=!1,this.readNextRawToken(),this.finalize(b({type:"Literal",value:c.value.toLowerCase()===f.Keywords.True,raw:this.getSourceValue(c),isString:!1},this.getItemLocation(h)));case 5:return this.context.isAssignmentTarget=
!1,this.readNextRawToken(),this.finalize(b({type:"Literal",value:null,raw:this.getSourceValue(c),isString:!1},this.getItemLocation(h)));case 10:return this.parseTemplateLiteral();case 7:switch(c.value){case "(":return this.inheritCoverGrammar(this.parseGroupExpression);case "[":return this.inheritCoverGrammar(this.parseArrayInitializer);case "{":return this.inheritCoverGrammar(this.parseObjectExpression);default:return this.throwUnexpectedToken({rawToken:this.rawToken})}case 4:return this.context.isAssignmentTarget=
!1,this.throwUnexpectedToken({rawToken:this.rawToken});default:return this.throwUnexpectedToken({rawToken:this.rawToken})}};n.prototype.parseArrayInitializer=function(){var h=this.captureStartMarker();this.expectPunctuator("[");for(var c=[];!this.matchPunctuator("]");){var r=this.captureStartMarker();this.matchPunctuator(",")?(this.readNextRawToken(),this.throwError(f.ParsingErrorCodes.InvalidExpression,r)):(c.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.matchPunctuator("]")||
this.expectPunctuator(","))}this.expectPunctuator("]");return this.finalize(b({type:"ArrayExpression",elements:c},this.getItemLocation(h)))};n.prototype.parseObjectPropertyKey=function(){var h=this.captureStartMarker(),c=this.rawToken;switch(c.type){case 8:return this.readNextRawToken(),this.finalize(b({type:"Literal",value:c.value,raw:this.getSourceValue(c),isString:!0},this.getItemLocation(h)));case 3:case 1:case 5:case 4:return this.readNextRawToken(),this.finalize(b({type:"Identifier",name:c.value},
this.getItemLocation(h)));default:this.throwError(f.ParsingErrorCodes.KeyMustBeString,h)}};n.prototype.parseObjectProperty=function(){var h=this.rawToken,c=this.captureStartMarker(),r=this.parseObjectPropertyKey(),v=!1,z=null;this.matchPunctuator(":")?(this.readNextRawToken(),z=this.inheritCoverGrammar(this.parseAssignmentExpression)):3===h.type?(v=!0,z=this.finalize(b({type:"Identifier",name:h.value},this.getItemLocation(c)))):this.throwUnexpectedToken({rawToken:this.rawToken});return this.finalize(b({type:"Property",
kind:"init",key:r,value:z,shorthand:v},this.getItemLocation(c)))};n.prototype.parseObjectExpression=function(){var h=this.captureStartMarker();this.expectPunctuator("{");for(var c=[];!this.matchPunctuator("}");)c.push(this.parseObjectProperty()),this.matchPunctuator("}")||this.expectPunctuator(",");this.expectPunctuator("}");return this.finalize(b({type:"ObjectExpression",properties:c},this.getItemLocation(h)))};n.prototype.parseTemplateElement=function(h){void 0===h&&(h=!1);var c=this.rawToken;10!==
c.type&&this.throwUnexpectedToken({rawToken:c});h&&!c.head&&this.throwUnexpectedToken({code:f.ParsingErrorCodes.InvalidTemplateHead,rawToken:c});var r=this.captureStartMarker();this.readNextRawToken();h=c.tail;c=this.finalize(b({type:"TemplateElement",value:{raw:c.value,cooked:c.cooked},tail:h},this.getItemLocation(r)));c.loc.start.column++;c.loc.end.column-=h?1:2;return c};n.prototype.parseTemplateLiteral=function(){var h=this.captureStartMarker(),c=[],r=[],v=this.parseTemplateElement(!0);for(r.push(v);!v.tail;)c.push(this.parseExpression()),
v=this.parseTemplateElement(),r.push(v);return this.finalize(b({type:"TemplateLiteral",quasis:r,expressions:c},this.getItemLocation(h)))};n.prototype.parseGroupExpression=function(){this.expectPunctuator("(");var h=this.inheritCoverGrammar(this.parseAssignmentExpression);this.expectPunctuator(")");return h};n.prototype.parseArguments=function(){this.expectPunctuator("(");var h=[];if(!this.matchPunctuator(")"))for(;;){var c=this.isolateCoverGrammar(this.parseAssignmentExpression);h.push(c);if(this.matchPunctuator(")"))break;
this.expectPunctuator(",");if(this.matchPunctuator(")"))break}this.expectPunctuator(")");return h};n.prototype.parseMemberName=function(){var h=this.rawToken,c=this.captureStartMarker();this.readNextRawToken();5!==h.type&&3!==h.type&&4!==h.type&&1!==h.type&&this.throwUnexpectedToken({rawToken:h});return this.finalize(b({type:"Identifier",name:h.value},this.getItemLocation(c)))};n.prototype.parseLeftHandSideExpression=function(){for(var h=this.captureStartMarker(),c=this.inheritCoverGrammar(this.parsePrimaryExpression),
r=this.captureStartMarker(),v;v=this.getMatchingPunctuator("([.");)switch(v){case "(":this.context.isAssignmentTarget=!1;"Identifier"!==c.type&&"MemberExpression"!==c.type&&this.throwError(f.ParsingErrorCodes.IdentiferExpected,h,r);v=this.parseArguments();c=this.finalize(b({type:"CallExpression",callee:c,arguments:v},this.getItemLocation(h)));continue;case "[":this.context.isAssignmentTarget=!0;this.expectPunctuator("[");v=this.isolateCoverGrammar(this.parseExpression);this.expectPunctuator("]");
c=this.finalize(b({type:"MemberExpression",computed:!0,object:c,property:v},this.getItemLocation(h)));continue;case ".":this.context.isAssignmentTarget=!0,this.expectPunctuator("."),v=this.parseMemberName(),c=this.finalize(b({type:"MemberExpression",computed:!1,object:c,property:v},this.getItemLocation(h)))}return c};n.prototype.parseUpdateExpression=function(){var h=this.captureStartMarker(),c=this.getMatchingPunctuator(f.UpdateOperators);if(c){this.readNextRawToken();var r=this.captureStartMarker(),
v=this.inheritCoverGrammar(this.parseUnaryExpression);"Identifier"!==v.type&&"MemberExpression"!==v.type&&"CallExpression"!==v.type&&this.throwError(f.ParsingErrorCodes.InvalidExpression,r);this.context.isAssignmentTarget||this.tolerateError(f.ParsingErrorCodes.InvalidLeftHandSideInAssignment,h);this.context.isAssignmentTarget=!1;return this.finalize(b({type:"UpdateExpression",operator:c,argument:v,prefix:!0},this.getItemLocation(h)))}r=this.captureStartMarker();v=this.inheritCoverGrammar(this.parseLeftHandSideExpression);
var z=this.captureStartMarker();if(this.hasLineTerminator)return v;c=this.getMatchingPunctuator(f.UpdateOperators);if(!c)return v;"Identifier"!==v.type&&"MemberExpression"!==v.type&&this.throwError(f.ParsingErrorCodes.InvalidExpression,r,z);this.context.isAssignmentTarget||this.tolerateError(f.ParsingErrorCodes.InvalidLeftHandSideInAssignment,h);this.readNextRawToken();this.context.isAssignmentTarget=!1;return this.finalize(b({type:"UpdateExpression",operator:c,argument:v,prefix:!1},this.getItemLocation(h)))};
n.prototype.parseUnaryExpression=function(){var h=this.getMatchingPunctuator(f.UnaryOperators);if(h){var c=this.captureStartMarker();this.readNextRawToken();var r=this.inheritCoverGrammar(this.parseUnaryExpression);this.context.isAssignmentTarget=!1;return this.finalize(b({type:"UnaryExpression",operator:h,argument:r,prefix:!0},this.getItemLocation(c)))}return this.parseUpdateExpression()};n.prototype.parseBinaryExpression=function(){var h=this.rawToken,c=this.inheritCoverGrammar(this.parseUnaryExpression);
if(7!==this.rawToken.type)return c;var r=this.rawToken.value,v=d(r);if(0===v)return c;this.readNextRawToken();this.context.isAssignmentTarget=!1;h=[h,this.rawToken];var z=this.inheritCoverGrammar(this.parseUnaryExpression);r=[c,r,z];for(var C=[v];7===this.rawToken.type&&0<(v=d(this.rawToken.value));){for(;2<r.length&&v<=C[C.length-1];){z=r.pop();var x=r.pop();C.pop();c=r.pop();h.pop();var E=h[h.length-1];E=g(E,E.lineStart);r.push(this.finalize(this.createBinaryOrLogicalExpression(E,x,c,z)))}r.push(this.rawToken.value);
C.push(v);h.push(this.rawToken);this.readNextRawToken();r.push(this.inheritCoverGrammar(this.parseUnaryExpression))}v=r.length-1;c=r[v];for(E=h.pop();1<v;){z=h.pop();if(!z)break;E=g(z,null===E||void 0===E?void 0:E.lineStart);c=this.finalize(this.createBinaryOrLogicalExpression(E,r[v-1],r[v-2],c));v-=2;E=z}return c};n.prototype.createBinaryOrLogicalExpression=function(h,c,r,v){var z=f.LogicalOperators.includes(c)?"LogicalExpression":"BinaryExpression";if("BinaryExpression"===z)return b({type:z,operator:c,
left:r,right:v},this.getItemLocation(h));"AssignmentExpression"!==r.type&&"UpdateExpression"!==r.type||this.throwError.apply(this,p([f.ParsingErrorCodes.InvalidExpression],a(r)));"AssignmentExpression"!==v.type&&"UpdateExpression"!==v.type||this.throwError.apply(this,p([f.ParsingErrorCodes.InvalidExpression],a(r)));return b({type:z,operator:c,left:r,right:v},this.getItemLocation(h))};n.prototype.parseAssignmentExpression=function(){var h=this.captureStartMarker(),c=this.inheritCoverGrammar(this.parseBinaryExpression),
r=this.captureStartMarker(),v=this.getMatchingPunctuator(f.AssignmentOperators);if(!v)return c;"Identifier"!==c.type&&"MemberExpression"!==c.type&&this.throwError(f.ParsingErrorCodes.InvalidExpression,h,r);this.context.isAssignmentTarget||this.tolerateError(f.ParsingErrorCodes.InvalidLeftHandSideInAssignment,h);this.matchPunctuator("\x3d")||(this.context.isAssignmentTarget=!1);this.readNextRawToken();r=this.isolateCoverGrammar(this.parseAssignmentExpression);return this.finalize(b({type:"AssignmentExpression",
left:c,operator:v,right:r},this.getItemLocation(h)))};n.prototype.parseExpression=function(){return this.isolateCoverGrammar(this.parseAssignmentExpression)};n.prototype.parseStatements=function(h){for(var c=[];2!==this.rawToken.type&&!this.matchPunctuator(h);){var r=this.parseStatementListItem();f.isEmptyStatement(r)||c.push(r)}return c};n.prototype.parseStatementListItem=function(){this.context.isAssignmentTarget=!0;return this.matchKeyword(f.Keywords.Function)?this.parseFunctionDeclaration():this.matchKeyword(f.Keywords.Export)?
this.parseExportDeclaration():this.matchKeyword(f.Keywords.Import)?this.parseImportDeclaration():this.parseStatement()};n.prototype.parseBlock=function(){var h=this.captureStartMarker();this.expectPunctuator("{");var c=this.parseStatements("}");this.expectPunctuator("}");return this.finalize(b({type:"BlockStatement",body:c},this.getItemLocation(h)))};n.prototype.parseObjectStatement=function(){var h=this.captureStartMarker(),c=this.parseObjectExpression();return this.finalize(b({type:"ExpressionStatement",
expression:c},this.getItemLocation(h)))};n.prototype.parseBlockOrObjectStatement=function(){return this.context.curlyParsingType===k.AsObject||this.peekAhead(function(h){var c=h();if(3!==c.type&&8!==c.type)return!1;c=h();return 7!==c.type||":"!==c.value?!1:!0})?this.parseObjectStatement():this.parseBlock()};n.prototype.parseIdentifier=function(){var h=this.rawToken;if(3!==h.type)return null;var c=this.captureStartMarker();this.readNextRawToken();return this.finalize(b({type:"Identifier",name:h.value},
this.getItemLocation(c)))};n.prototype.parseVariableDeclarator=function(){var h=this.captureStartMarker(),c=this.parseIdentifier();c||this.throwUnexpectedToken({code:f.ParsingErrorCodes.IdentiferExpected});var r=null;if(this.matchPunctuator("\x3d")){this.readNextRawToken();var v=this.rawToken;try{r=this.isolateCoverGrammar(this.parseAssignmentExpression)}catch(z){this.throwUnexpectedToken({rawToken:v,code:f.ParsingErrorCodes.InvalidVariableAssignment})}}return this.finalize(b({type:"VariableDeclarator",
id:c,init:r},this.getItemLocation(h)))};n.prototype.parseVariableDeclarationList=function(){for(var h=[this.parseVariableDeclarator()];this.matchPunctuator(",");)this.readNextRawToken(),h.push(this.parseVariableDeclarator());return h};n.prototype.parseVariableDeclaration=function(){var h=this.captureStartMarker();this.expectKeyword(f.Keywords.Var);var c=this.parseVariableDeclarationList();this.consumeSemicolon();return this.finalize(b({type:"VariableDeclaration",declarations:c,kind:"var"},this.getItemLocation(h)))};
n.prototype.parseEmptyStatement=function(){var h=this.captureStartMarker();this.expectPunctuator(";");return this.finalize(b({type:"EmptyStatement"},this.getItemLocation(h)))};n.prototype.parseExpressionStatement=function(){var h=this.captureStartMarker(),c=this.parseExpression();this.consumeSemicolon();return this.finalize(b({type:"ExpressionStatement",expression:c},this.getItemLocation(h)))};n.prototype.parseIfClause=function(){return this.withBlockContext(l.IfClause,this.parseStatement)};n.prototype.parseIfStatement=
function(){var h=this.captureStartMarker();this.expectKeyword(f.Keywords.If);this.expectPunctuator("(");var c=this.captureStartMarker(),r=this.parseExpression(),v=this.captureStartMarker();this.expectPunctuator(")");"AssignmentExpression"!==r.type&&"UpdateExpression"!==r.type||this.throwError(f.ParsingErrorCodes.InvalidExpression,c,v);c=this.parseIfClause();v=null;this.matchKeyword(f.Keywords.Else)&&(this.readNextRawToken(),v=this.parseIfClause());return this.finalize(b({type:"IfStatement",test:r,
consequent:c,alternate:v},this.getItemLocation(h)))};n.prototype.parseWhileStatement=function(){var h=this.captureStartMarker();this.expectKeyword(f.Keywords.While);this.expectPunctuator("(");var c=this.captureStartMarker(),r=this.parseExpression(),v=this.captureStartMarker();this.expectPunctuator(")");"AssignmentExpression"!==r.type&&"UpdateExpression"!==r.type||this.throwError(f.ParsingErrorCodes.InvalidExpression,c,v);c=this.withBlockContext(l.WhileLoop,this.parseStatement);return this.finalize(b({type:"WhileStatement",
test:r,body:c},this.getItemLocation(h)))};n.prototype.parseForStatement=function(){var h=this,c=null,r=null,v=null,z=null,C=null,x=this.captureStartMarker();this.expectKeyword(f.Keywords.For);this.expectPunctuator("(");if(this.matchPunctuator(";"))this.readNextRawToken();else if(this.matchKeyword(f.Keywords.Var)){var E=this.captureStartMarker();this.readNextRawToken();var B=this.parseVariableDeclarationList();1===B.length&&this.matchKeyword(f.Keywords.In)?(B[0].init&&this.throwError(f.ParsingErrorCodes.ForInOfLoopInitializer,
E),z=this.finalize(b({type:"VariableDeclaration",declarations:B,kind:"var"},this.getItemLocation(E))),this.readNextRawToken(),C=this.parseExpression()):(this.matchKeyword(f.Keywords.In)&&this.throwError(f.ParsingErrorCodes.InvalidLeftHandSideInForIn,E),c=this.finalize(b({type:"VariableDeclaration",declarations:B,kind:"var"},this.getItemLocation(E))),this.expectPunctuator(";"))}else B=this.context.isAssignmentTarget,E=this.captureStartMarker(),c=this.inheritCoverGrammar(this.parseAssignmentExpression),
this.matchKeyword(f.Keywords.In)?(this.context.isAssignmentTarget||this.tolerateError(f.ParsingErrorCodes.InvalidLeftHandSideInForIn,E),"Identifier"!==c.type&&this.throwError(f.ParsingErrorCodes.InvalidLeftHandSideInForIn,E),this.readNextRawToken(),z=c,C=this.parseExpression(),c=null):(this.context.isAssignmentTarget=B,this.expectPunctuator(";"));z||(this.matchPunctuator(";")||(r=this.isolateCoverGrammar(this.parseExpression)),this.expectPunctuator(";"),this.matchPunctuator(")")||(v=this.isolateCoverGrammar(this.parseExpression)));
this.expectPunctuator(")");E=this.withBlockContext(l.ForLoop,function(){return h.isolateCoverGrammar(h.parseStatement)});return z&&C?this.finalize(b({type:"ForInStatement",left:z,right:C,body:E},this.getItemLocation(x))):this.finalize(b({type:"ForStatement",init:c,test:r,update:v,body:E},this.getItemLocation(x)))};n.prototype.parseContinueStatement=function(){var h=this.captureStartMarker();this.expectKeyword(f.Keywords.Continue);this.consumeSemicolon();return this.finalize(b({type:"ContinueStatement"},
this.getItemLocation(h)))};n.prototype.parseBreakStatement=function(){var h=this.captureStartMarker();this.expectKeyword(f.Keywords.Break);this.consumeSemicolon();return this.finalize(b({type:"BreakStatement"},this.getItemLocation(h)))};n.prototype.parseReturnStatement=function(){var h=this.captureStartMarker();this.expectKeyword(f.Keywords.Return);var c=(this.matchPunctuator(";")||this.matchPunctuator("}")||this.hasLineTerminator||2===this.rawToken.type)&&8!==this.rawToken.type&&10!==this.rawToken.type?
null:this.parseExpression();this.consumeSemicolon();return this.finalize(b({type:"ReturnStatement",argument:c},this.getItemLocation(h)))};n.prototype.parseStatement=function(){switch(this.rawToken.type){case 1:case 5:case 6:case 8:case 10:case 3:return this.parseExpressionStatement();case 7:return"{"===this.rawToken.value?this.parseBlockOrObjectStatement():"("===this.rawToken.value?this.parseExpressionStatement():";"===this.rawToken.value?this.parseEmptyStatement():this.parseExpressionStatement();
case 4:switch(this.rawToken.value.toLowerCase()){case f.Keywords.Break:return this.parseBreakStatement();case f.Keywords.Continue:return this.parseContinueStatement();case f.Keywords.For:return this.parseForStatement();case f.Keywords.Function:return this.parseFunctionDeclaration();case f.Keywords.If:return this.parseIfStatement();case f.Keywords.Return:return this.parseReturnStatement();case f.Keywords.Var:return this.parseVariableDeclaration();case f.Keywords.While:return this.parseWhileStatement();
default:return this.parseExpressionStatement()}default:return this.throwUnexpectedToken({rawToken:this.rawToken})}};n.prototype.parseFormalParameters=function(){var h=[];this.expectPunctuator("(");if(!this.matchPunctuator(")"))for(;2!==this.rawToken.type;){var c=this.parseIdentifier();c||this.throwUnexpectedToken({rawToken:this.rawToken,code:f.ParsingErrorCodes.IdentiferExpected});h.push(c);if(this.matchPunctuator(")"))break;this.expectPunctuator(",");if(this.matchPunctuator(")"))break}this.expectPunctuator(")");
return h};n.prototype.parseFunctionDeclaration=function(){(this.context.blockContext&l.Function)===l.Function&&this.throwUnexpectedToken({code:f.ParsingErrorCodes.NoFunctionInsideFunction});(this.context.blockContext&l.WhileLoop)!==l.WhileLoop&&(this.context.blockContext&l.IfClause)!==l.IfClause||this.throwUnexpectedToken({code:f.ParsingErrorCodes.NoFunctionInsideBlock});var h=this.captureStartMarker();this.expectKeyword(f.Keywords.Function);var c=this.parseIdentifier();c||this.throwUnexpectedToken({code:f.ParsingErrorCodes.InvalidFunctionIdentifier});
var r=this.parseFormalParameters(),v=this.context.blockContext;this.context.blockContext|=l.Function;var z=this.parseBlock();this.context.blockContext=v;return this.finalize(b({type:"FunctionDeclaration",id:c,params:r,body:z},this.getItemLocation(h)))};n.prototype.parseScript=function(){var h=this.captureStartMarker(),c=this.parseStatements();h=this.finalize(b({type:"Program",body:c},this.getItemLocation(h)));this.options.tokens&&(h.tokens=this.tokens);this.options.tolerant&&(h.errors=this.errorHandler.errors);
return h};n.prototype.parseExportDeclaration=function(){this.context.blockContext!==l.None&&this.throwUnexpectedToken({code:f.ParsingErrorCodes.ModuleExportRootOnly});var h=null,c=this.captureStartMarker();this.expectKeyword(f.Keywords.Export);this.matchKeyword(f.Keywords.Var)?h=this.parseVariableDeclaration():this.matchKeyword("function")?h=this.parseFunctionDeclaration():this.throwUnexpectedToken({code:f.ParsingErrorCodes.InvalidExpression});return this.finalize(b({type:"ExportNamedDeclaration",
declaration:h,specifiers:[],source:null},this.getItemLocation(c)))};n.prototype.parseModuleSpecifier=function(){var h=this.captureStartMarker(),c=this.rawToken;if(8===c.type)return this.readNextRawToken(),this.finalize(b({type:"Literal",value:c.value,raw:this.getSourceValue(c),isString:!0},this.getItemLocation(h)));this.throwError(f.ParsingErrorCodes.InvalidModuleUri,h)};n.prototype.parseDefaultSpecifier=function(){var h=this.captureStartMarker(),c=this.parseIdentifier();c||this.throwUnexpectedToken({code:f.ParsingErrorCodes.IdentiferExpected});
return this.finalize(b({type:"ImportDefaultSpecifier",local:c},this.getItemLocation(h)))};n.prototype.parseImportDeclaration=function(){this.context.blockContext!==l.None&&this.throwUnexpectedToken({code:f.ParsingErrorCodes.ModuleImportRootOnly});var h=this.captureStartMarker();this.expectKeyword(f.Keywords.Import);var c=this.parseDefaultSpecifier();this.expectContextualKeyword(f.Keywords.From);var r=this.parseModuleSpecifier();return this.finalize(b({type:"ImportDeclaration",specifiers:[c],source:r},
this.getItemLocation(h)))};return n}();u.Parser=F})},"esri/arcade/lib/comment-handler":function(){define(["require","exports","../polyfill/tsSupport/assign","../polyfill/tsSupport/spreadarray","./types"],function(F,u,b,p,e){function y(q,m){return m?m.loc.end.line===q.loc.start.line&&m.loc.end.column<=q.loc.start.column:!1}Object.defineProperty(u,"__esModule",{value:!0});u.CommentHandler=void 0;F=function(){function q(){this.comments=[];this._nodeStack=[];this._newComments=[]}q.prototype.insertInnerComments=
function(m){if(e.isBlockStatement(m)&&0===m.body.length){for(var f=[],g=this._newComments.length-1;0<=g;--g){var a=this._newComments[g];m.range[1]>=a.range[0]&&(f.unshift(a),this._newComments.splice(g,1))}f.length&&(m.innerComments=f)}};q.prototype.attachTrailingComments=function(m){var f,g;if(m){var a=this._nodeStack[this._nodeStack.length-1];if(e.isBlockStatement(m)&&a.range[0]>=m.range[0]&&a.range[1]<=m.range[1])for(var d=this._newComments.length-1;0<=d;--d){var l=this._newComments[d];l.range[0]>=
m.range[0]&&l.range[1]<=m.range[1]&&(a.trailingComments=p(p([],null!==(f=a.trailingComments)&&void 0!==f?f:[]),[l]),this._newComments.splice(d,1))}f=[];if(0<this._newComments.length)for(d=this._newComments.length-1;0<=d;--d)l=this._newComments[d],y(l,a)?(a.trailingComments=p(p([],null!==(g=a.trailingComments)&&void 0!==g?g:[]),[l]),this._newComments.splice(d,1)):y(l,m)&&(f.unshift(l),this._newComments.splice(d,1));(null===a||void 0===a?0:a.trailingComments)&&y(a.trailingComments[0],m)&&(f=p(p([],
f),a.trailingComments),delete a.trailingComments);0<f.length&&(m.trailingComments=f)}};q.prototype.attachLeadingComments=function(m){var f,g,a,d;if(m){for(var l;0<this._nodeStack.length;){var k=this._nodeStack[this._nodeStack.length-1];if(m.range[0]<=k.range[0])l=k,this._nodeStack.pop();else break}k=[];var n=[];if(l){for(var h=(null!==(g=null===(f=l.leadingComments)||void 0===f?void 0:f.length)&&void 0!==g?g:0)-1;0<=h;--h)f=l.leadingComments[h],m.range[0]>=f.range[1]?(k.unshift(f),l.leadingComments.splice(h,
1)):e.isVariableDeclarator(m)&&!e.isBlockComment(f)&&(n.unshift(f),l.leadingComments.splice(h,1));0===(null===(a=l.leadingComments)||void 0===a?void 0:a.length)&&delete l.leadingComments;k.length&&(m.leadingComments=k);n.length&&(m.trailingComments=p(p([],n),null!==(d=m.trailingComments)&&void 0!==d?d:[]))}else{for(h=this._newComments.length-1;0<=h;--h)f=this._newComments[h],m.range[0]>=f.range[0]&&(k.unshift(f),this._newComments.splice(h,1));k.length&&(m.leadingComments=k)}}};q.prototype.attachComments=
function(m){var f;if(e.isProgram(m)&&0<m.body.length){var g=this._nodeStack[this._nodeStack.length-1];g?(g.trailingComments=p(p([],null!==(f=g.trailingComments)&&void 0!==f?f:[]),this._newComments),this._newComments.length=0,this._nodeStack.pop()):(m.trailingComments=p([],this._newComments),this._newComments.length=0)}else this.attachTrailingComments(m),this.attachLeadingComments(m),this.insertInnerComments(m),this._nodeStack.push(m)};q.prototype.collectComment=function(m){this.comments.push(m);this._newComments.push(m)};
return q}();u.CommentHandler=F})},"esri/arcade/lib/types":function(){define(["require","exports","../polyfill/tsSupport/extends"],function(F,u,b){var p;Object.defineProperty(u,"__esModule",{value:!0});u.isTemplateElement=u.isProperty=u.isVariableDeclarator=u.isUpdateExpression=u.isUnaryExpression=u.isMemberExpression=u.isTemplateLiteral=u.isObjectExpression=u.isLogicalExpression=u.isLiteral=u.isIdentifier=u.isCallExpression=u.isBinaryExpression=u.isAssignmentExpression=u.isArrayExpression=u.isExpression=
u.isVariableDeclaration=u.isReturnStatement=u.isIfStatement=u.isFunctionDeclaration=u.isForStatement=u.isForInStatement=u.isExpressionStatement=u.isEmptyStatement=u.isContinueStatement=u.isBreakStatement=u.isBlockComment=u.isBlockStatement=u.isStatement=u.isProgram=u.ParsingError=u.ParsingErrorMessages=u.ParsingErrorCodes=u.TokenNames=u.TokenType=u.OperatorPrecedence=u.BinaryOperators=u.LogicalOperators=u.AssignmentOperators=u.UnaryOperators=u.UpdateOperators=u.Syntax=u.Keywords=void 0;(function(e){e.Break=
"break";e.Continue="continue";e.Else="else";e.False="false";e.For="for";e.From="from";e.Function="function";e.If="if";e.Import="import";e.Export="export";e.In="in";e.Null="null";e.Return="return";e.True="true";e.Var="var";e.While="while"})(u.Keywords||(u.Keywords={}));(function(e){e.AssignmentExpression="AssignmentExpression";e.ArrayExpression="ArrayExpression";e.BlockComment="BlockComment";e.BlockStatement="BlockStatement";e.BinaryExpression="BinaryExpression";e.BreakStatement="BreakStatement";e.CallExpression=
"CallExpression";e.ContinueStatement="ContinueStatement";e.EmptyStatement="EmptyStatement";e.ExpressionStatement="ExpressionStatement";e.ExportNamedDeclaration="ExportNamedDeclaration";e.ExportSpecifier="ExportSpecifier";e.ForStatement="ForStatement";e.ForInStatement="ForInStatement";e.FunctionDeclaration="FunctionDeclaration";e.Identifier="Identifier";e.IfStatement="IfStatement";e.ImportDeclaration="ImportDeclaration";e.ImportDefaultSpecifier="ImportDefaultSpecifier";e.LineComment="LineComment";
e.Literal="Literal";e.LogicalExpression="LogicalExpression";e.MemberExpression="MemberExpression";e.ObjectExpression="ObjectExpression";e.Program="Program";e.Property="Property";e.ReturnStatement="ReturnStatement";e.TemplateElement="TemplateElement";e.TemplateLiteral="TemplateLiteral";e.UnaryExpression="UnaryExpression";e.UpdateExpression="UpdateExpression";e.VariableDeclaration="VariableDeclaration";e.VariableDeclarator="VariableDeclarator";e.WhileStatement="WhileStatement"})(u.Syntax||(u.Syntax=
{}));u.UpdateOperators=["++","--"];u.UnaryOperators=["-","+","!","~"];u.AssignmentOperators="\x3d /\x3d *\x3d %\x3d +\x3d -\x3d".split(" ");u.LogicalOperators=["||","\x26\x26"];u.BinaryOperators="| \x26 \x3e\x3e \x3c\x3c \x3e\x3e\x3e ^ \x3d\x3d !\x3d \x3c \x3c\x3d \x3e \x3e\x3d + - * / %".split(" ");u.OperatorPrecedence={"||":1,"\x26\x26":2,"|":3,"^":4,"\x26":5,"\x3d\x3d":6,"!\x3d":6,"\x3c":7,"\x3e":7,"\x3c\x3d":7,"\x3e\x3d":7,"\x3c\x3c":8,"\x3e\x3e":8,"\x3e\x3e\x3e":8,"+":9,"-":9,"*":10,"/":10,"%":10};
(function(e){e[e.Unknown=0]="Unknown";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.Template=10]="Template"})(u.TokenType||(u.TokenType={}));u.TokenNames="Unknown Boolean \x3cend\x3e Identifier Keyword Null Numeric Punctuator String RegularExpression Template".split(" ");(function(e){e.InvalidModuleUri=
"InvalidModuleUri";e.ForInOfLoopInitializer="ForInOfLoopInitializer";e.IdentiferExpected="IdentiferExpected";e.InvalidEscapedReservedWord="InvalidEscapedReservedWord";e.InvalidExpression="InvalidExpression";e.InvalidFunctionIdentifier="InvalidFunctionIdentifier";e.InvalidHexEscapeSequence="InvalidHexEscapeSequence";e.InvalidLeftHandSideInAssignment="InvalidLeftHandSideInAssignment";e.InvalidLeftHandSideInForIn="InvalidLeftHandSideInForIn";e.InvalidTemplateHead="InvalidTemplateHead";e.InvalidVariableAssignment=
"InvalidVariableAssignment";e.KeyMustBeString="KeyMustBeString";e.NoFunctionInsideBlock="NoFunctionInsideBlock";e.NoFunctionInsideFunction="NoFunctionInsideFunction";e.ModuleExportRootOnly="ModuleExportRootOnly";e.ModuleImportRootOnly="ModuleImportRootOnly";e.PunctuatorExpected="PunctuatorExpected";e.TemplateOctalLiteral="TemplateOctalLiteral";e.UnexpectedBoolean="UnexpectedBoolean";e.UnexpectedEndOfScript="UnexpectedEndOfScript";e.UnexpectedIdentifier="UnexpectedIdentifier";e.UnexpectedKeyword="UnexpectedKeyword";
e.UnexpectedNull="UnexpectedNull";e.UnexpectedNumber="UnexpectedNumber";e.UnexpectedPunctuator="UnexpectedPunctuator";e.UnexpectedString="UnexpectedString";e.UnexpectedTemplate="UnexpectedTemplate";e.UnexpectedToken="UnexpectedToken"})(F=u.ParsingErrorCodes||(u.ParsingErrorCodes={}));u.ParsingErrorMessages=(p={},p[F.InvalidModuleUri]="Module uri must be a text literal.",p[F.ForInOfLoopInitializer]="for-in loop variable declaration may not have an initializer.",p[F.IdentiferExpected]="'${value}' is an invalid identifier.",
p[F.InvalidEscapedReservedWord]="Keyword cannot contain escaped characters.",p[F.InvalidExpression]="Invalid expression.",p[F.InvalidFunctionIdentifier]="'${value}' is an invalid function identifier.",p[F.InvalidHexEscapeSequence]="Invalid hexadecimal escape sequence.",p[F.InvalidLeftHandSideInAssignment]="Invalid left-hand side in assignment.",p[F.InvalidLeftHandSideInForIn]="Invalid left-hand side in for-in.",p[F.InvalidTemplateHead]="Invalid template structure.",p[F.InvalidVariableAssignment]=
"Invalid variable assignment.",p[F.KeyMustBeString]="Object property keys must be a word starting with a letter.",p[F.NoFunctionInsideBlock]="Functions cannot be declared inside of code blocks.",p[F.NoFunctionInsideFunction]="Functions cannot be declared inside another function.",p[F.ModuleExportRootOnly]="Module exports cannot be declared inside of code blocks.",p[F.ModuleImportRootOnly]="Module import cannot be declared inside of code blocks.",p[F.PunctuatorExpected]="'${value}' expected.",p[F.TemplateOctalLiteral]=
"Octal literals are not allowed in template literals.",p[F.UnexpectedBoolean]="Unexpected boolean literal.",p[F.UnexpectedEndOfScript]="Unexpected end of Arcade expression.",p[F.UnexpectedIdentifier]="Unexpected identifier.",p[F.UnexpectedKeyword]="Unexpected keyword.",p[F.UnexpectedNull]="Unexpected null literal.",p[F.UnexpectedNumber]="Unexpected number.",p[F.UnexpectedPunctuator]="Unexpected ponctuator.",p[F.UnexpectedString]="Unexpected text literal.",p[F.UnexpectedTemplate]="Unexpected quasi '${value}'.",
p[F.UnexpectedToken]="Unexpected token '${value}'.",p);p=function(e){function y(q){var m=q.code,f=q.index,g=q.line,a=q.column,d=q.len;d=void 0===d?0:d;var l=q.description;q=q.data;var k,n,h=e.call(this,""+(null!==l&&void 0!==l?l:m))||this;h.declaredRootClass="esri.arcade.lib.parsingerror";h.name="ParsingError";h.code=m;h.index=f;h.line=g;h.column=a;h.len=d;h.data=q;h.description=l;h.range={start:{line:g,column:a-1},end:{line:g,column:a+d}};null===(n=(k=Error).captureStackTrace)||void 0===n?void 0:
n.call(k,h,y);return h}b(y,e);return y}(Error);u.ParsingError=p;u.isProgram=function(e){return"Program"===(null===e||void 0===e?void 0:e.type)};u.isStatement=function(e){switch(null===e||void 0===e?void 0:e.type){case "BlockStatement":case "BreakStatement":case "ContinueStatement":case "EmptyStatement":case "ExpressionStatement":case "ForInStatement":case "ForStatement":case "FunctionDeclaration":case "IfStatement":case "ReturnStatement":case "VariableDeclaration":return!0;default:return!1}};u.isBlockStatement=
function(e){return"BlockStatement"===(null===e||void 0===e?void 0:e.type)};u.isBlockComment=function(e){return"BlockComment"===(null===e||void 0===e?void 0:e.type)};u.isBreakStatement=function(e){return"BreakStatement"===(null===e||void 0===e?void 0:e.type)};u.isContinueStatement=function(e){return"ContinueStatement"===(null===e||void 0===e?void 0:e.type)};u.isEmptyStatement=function(e){return"EmptyStatement"===(null===e||void 0===e?void 0:e.type)};u.isExpressionStatement=function(e){return"ExpressionStatement"===
(null===e||void 0===e?void 0:e.type)};u.isForInStatement=function(e){return"ForInStatement"===(null===e||void 0===e?void 0:e.type)};u.isForStatement=function(e){return"ForStatement"===(null===e||void 0===e?void 0:e.type)};u.isFunctionDeclaration=function(e){return"FunctionDeclaration"===(null===e||void 0===e?void 0:e.type)};u.isIfStatement=function(e){return"IfStatement"===(null===e||void 0===e?void 0:e.type)};u.isReturnStatement=function(e){return"ReturnStatement"===(null===e||void 0===e?void 0:
e.type)};u.isVariableDeclaration=function(e){return"VariableDeclaration"===(null===e||void 0===e?void 0:e.type)};u.isExpression=function(e){switch(null===e||void 0===e?void 0:e.type){case "ArrayExpression":case "AssignmentExpression":case "BinaryExpression":case "CallExpression":case "Identifier":case "Literal":case "LogicalExpression":case "MemberExpression":case "ObjectExpression":case "TemplateLiteral":case "UpdateExpression":case "UnaryExpression":return!0;default:return!1}};u.isArrayExpression=
function(e){return"ArrayExpression"===(null===e||void 0===e?void 0:e.type)};u.isAssignmentExpression=function(e){return"AssignmentExpression"===(null===e||void 0===e?void 0:e.type)};u.isBinaryExpression=function(e){return"BinaryExpression"===(null===e||void 0===e?void 0:e.type)};u.isCallExpression=function(e){return"CallExpression"===(null===e||void 0===e?void 0:e.type)};u.isIdentifier=function(e){return"Identifier"===(null===e||void 0===e?void 0:e.type)};u.isLiteral=function(e){return"Literal"===
(null===e||void 0===e?void 0:e.type)};u.isLogicalExpression=function(e){return"LogicalExpression"===(null===e||void 0===e?void 0:e.type)};u.isObjectExpression=function(e){return"ObjectExpression"===(null===e||void 0===e?void 0:e.type)};u.isTemplateLiteral=function(e){return"TemplateLiteral"===(null===e||void 0===e?void 0:e.type)};u.isMemberExpression=function(e){return"MemberExpression"===(null===e||void 0===e?void 0:e.type)};u.isUnaryExpression=function(e){return"UnaryExpression"===(null===e||void 0===
e?void 0:e.type)};u.isUpdateExpression=function(e){return"UpdateExpression"===(null===e||void 0===e?void 0:e.type)};u.isVariableDeclarator=function(e){return"VariableDeclarator"===(null===e||void 0===e?void 0:e.type)};u.isProperty=function(e){return"Property"===(null===e||void 0===e?void 0:e.type)};u.isTemplateElement=function(e){return"TemplateElement"===(null===e||void 0===e?void 0:e.type)}})},"esri/arcade/lib/error-handler":function(){define(["require","exports","./types"],function(F,u,b){function p(e,
y){e=b.ParsingErrorMessages[e];return y?e.replace(/\${(.*?)}/g,function(q,m){var f,g;return null!==(g=null===(f=y[m])||void 0===f?void 0:f.toString())&&void 0!==g?g:""}):e}Object.defineProperty(u,"__esModule",{value:!0});u.ErrorHandler=u.formatErrorDescription=void 0;u.formatErrorDescription=p;F=function(){function e(y){void 0===y&&(y=!1);this.tolerant=y;this.errors=[]}e.prototype.recordError=function(y){this.errors.push(y)};e.prototype.tolerate=function(y){if(this.tolerant)this.recordError(y);else throw y;
};e.prototype.throwError=function(y){var q;y.description=null!==(q=y.description)&&void 0!==q?q:p(y.code,y.data);throw new b.ParsingError(y);};e.prototype.tolerateError=function(y){var q;y.description=null!==(q=y.description)&&void 0!==q?q:p(y.code,y.data);y=new b.ParsingError(y);if(this.tolerant)this.recordError(y);else throw y;};return e}();u.ErrorHandler=F})},"esri/arcade/lib/scanner":function(){define("require exports ../polyfill/tsSupport/assign ../polyfill/tsSupport/spreadarray ../polyfill/tsSupport/extends ./assert ./character ./types".split(" "),
function(F,u,b,p,e,y,q,m){Object.defineProperty(u,"__esModule",{value:!0});u.Scanner=void 0;var f=[[],[],[]];m.UpdateOperators.forEach(function(g){return f[g.length-1].push(g)});m.UnaryOperators.forEach(function(g){return f[g.length-1].push(g)});m.LogicalOperators.forEach(function(g){return f[g.length-1].push(g)});m.AssignmentOperators.forEach(function(g){return f[g.length-1].push(g)});m.BinaryOperators.forEach(function(g){return f[g.length-1].push(g)});F=function(){function g(a,d){this.source=a;
this.errorHandler=d;this._length=a.length;this.index=0;this.lineNumber=1;this.lineStart=0;this.curlyStack=[]}g.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart,curlyStack:this.curlyStack.slice()}};g.prototype.restoreState=function(a){this.index=a.index;this.lineNumber=a.lineNumber;this.lineStart=a.lineStart;this.curlyStack=a.curlyStack};g.prototype.eof=function(){return this.index>=this._length};g.prototype.throwUnexpectedToken=function(a){void 0===
a&&(a=m.ParsingErrorCodes.UnexpectedToken);this.errorHandler.throwError({code:a,index:this.index,line:this.lineNumber,column:this.index-this.lineStart+1})};g.prototype.tolerateUnexpectedToken=function(a){void 0===a&&(a=m.ParsingErrorCodes.UnexpectedToken);this.errorHandler.tolerateError({code:a,index:this.index,line:this.lineNumber,column:this.index-this.lineStart+1})};g.prototype.skipSingleLineComment=function(a){for(var d=[],l=this.index-a,k={start:{line:this.lineNumber,column:this.index-this.lineStart-
a},end:{line:0,column:0}};!this.eof();){var n=this.source.charCodeAt(this.index);++this.index;if(q.Character.isLineTerminator(n))return k&&(k.end={line:this.lineNumber,column:this.index-this.lineStart-1},a={multiLine:!1,start:l+a,end:this.index-1,range:[l,this.index-1],loc:k},d.push(a)),13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,d}k&&(k.end={line:this.lineNumber,column:this.index-this.lineStart},a={multiLine:!1,start:l+a,end:this.index,
range:[l,this.index],loc:k},d.push(a));return d};g.prototype.skipMultiLineComment=function(){for(var a=[],d=this.index-2,l={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{line:0,column:0}};!this.eof();){var k=this.source.charCodeAt(this.index);if(q.Character.isLineTerminator(k))13===k&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else{if(42===k&&47===this.source.charCodeAt(this.index+1))return this.index+=2,
l&&(l.end={line:this.lineNumber,column:this.index-this.lineStart},d={multiLine:!0,start:d+2,end:this.index-2,range:[d,this.index],loc:l},a.push(d)),a;++this.index}}l&&(l.end={line:this.lineNumber,column:this.index-this.lineStart},d={multiLine:!0,start:d+2,end:this.index,range:[d,this.index],loc:l},a.push(d));this.tolerateUnexpectedToken();return a};g.prototype.scanComments=function(){for(var a=[];!this.eof();){var d=this.source.charCodeAt(this.index);if(q.Character.isWhiteSpace(d))++this.index;else if(q.Character.isLineTerminator(d))++this.index,
13===d&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index;else if(47===d)if(d=this.source.charCodeAt(this.index+1),47===d)this.index+=2,d=this.skipSingleLineComment(2),a=p(p([],a),d);else if(42===d)this.index+=2,d=this.skipMultiLineComment(),a=p(p([],a),d);else break;else break}return a};g.prototype.isKeyword=function(a){a=a.toLowerCase();switch(a.length){case 2:return a===m.Keywords.If||a===m.Keywords.In;case 3:return a===m.Keywords.Var||a===m.Keywords.For;
case 4:return a===m.Keywords.Else;case 5:return a===m.Keywords.Break||a===m.Keywords.While;case 6:return a===m.Keywords.Return||a===m.Keywords.Import||a===m.Keywords.Export;case 8:return a===m.Keywords.Function||a===m.Keywords.Continue;default:return!1}};g.prototype.codePointAt=function(a){var d=this.source.charCodeAt(a);55296<=d&&56319>=d&&(a=this.source.charCodeAt(a+1),56320<=a&&57343>=a&&(d=1024*(d-55296)+a-56320+65536));return d};g.prototype.scanHexEscape=function(a){a="u"===a?4:2;for(var d=0,
l=0;l<a;++l)if(!this.eof()&&q.Character.isHexDigit(this.source.charCodeAt(this.index)))d=16*d+"0123456789abcdef".indexOf(this.source[this.index++].toLowerCase());else return null;return String.fromCharCode(d)};g.prototype.scanUnicodeCodePointEscape=function(){var a=this.source[this.index],d=0;for("}"===a&&this.throwUnexpectedToken();!this.eof();){a=this.source[this.index++];if(!q.Character.isHexDigit(a.charCodeAt(0)))break;d=16*d+"0123456789abcdef".indexOf(a.toLowerCase())}(1114111<d||"}"!==a)&&this.throwUnexpectedToken();
return q.Character.fromCodePoint(d)};g.prototype.getIdentifier=function(){for(var a=this.index++;!this.eof();){var d=this.source.charCodeAt(this.index);if(92===d||55296<=d&&57343>d)return this.index=a,this.getComplexIdentifier();if(q.Character.isIdentifierPart(d))++this.index;else break}return this.source.slice(a,this.index)};g.prototype.getComplexIdentifier=function(){var a=this.codePointAt(this.index),d=q.Character.fromCodePoint(a);this.index+=d.length;if(92===a){117!==this.source.charCodeAt(this.index)&&
this.throwUnexpectedToken();++this.index;if("{"===this.source[this.index]){++this.index;var l=this.scanUnicodeCodePointEscape()}else l=this.scanHexEscape("u"),null!==l&&"\\"!==l&&q.Character.isIdentifierStart(l.charCodeAt(0))||this.throwUnexpectedToken();d=l}for(;!this.eof();){a=this.codePointAt(this.index);if(!q.Character.isIdentifierPart(a))break;l=q.Character.fromCodePoint(a);d+=l;this.index+=l.length;92===a&&(d=d.substring(0,d.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),
++this.index,"{"===this.source[this.index]?(++this.index,l=this.scanUnicodeCodePointEscape()):(l=this.scanHexEscape("u"),null!==l&&"\\"!==l&&q.Character.isIdentifierPart(l.charCodeAt(0))||this.throwUnexpectedToken()),d+=l)}return d};g.prototype.octalToDecimal=function(a){var d="0"!==a,l="01234567".indexOf(a);!this.eof()&&q.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(d=!0,l=8*l+"01234567".indexOf(this.source[this.index++]),"0123".includes(a)&&!this.eof()&&q.Character.isOctalDigit(this.source.charCodeAt(this.index))&&
(l=8*l+"01234567".indexOf(this.source[this.index++])));return{code:l,octal:d}};g.prototype.scanIdentifier=function(){var a=this.index,d=92===this.source.charCodeAt(a)?this.getComplexIdentifier():this.getIdentifier();var l=1===d.length?3:this.isKeyword(d)?4:d.toLowerCase()===m.Keywords.Null?5:d.toLowerCase()===m.Keywords.True||d.toLowerCase()===m.Keywords.False?1:3;if(3!==l&&a+d.length!==this.index){var k=this.index;this.index=a;this.tolerateUnexpectedToken(m.ParsingErrorCodes.InvalidEscapedReservedWord);
this.index=k}return{type:l,value:d,lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}};g.prototype.scanPunctuator=function(){var a=this.index,d=this.source[this.index];switch(d){case "(":case "{":"{"===d&&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:for(var l=f.length;0<l;l--)if(d=this.source.substring(this.index,
this.index+l),f[l-1].includes(d)){this.index+=l;break}}this.index===a&&this.throwUnexpectedToken();return{type:7,value:d,lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}};g.prototype.scanHexLiteral=function(a){for(var d="";!this.eof()&&q.Character.isHexDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];0===d.length&&this.throwUnexpectedToken();q.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken();return{type:6,
value:parseInt("0x"+d,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}};g.prototype.scanBinaryLiteral=function(a){for(var d="";!this.eof();){var l=this.source[this.index];if("0"!==l&&"1"!==l)break;d+=this.source[this.index++]}0===d.length&&this.throwUnexpectedToken();this.eof()||(l=this.source.charCodeAt(this.index),(q.Character.isIdentifierStart(l)||q.Character.isDecimalDigit(l))&&this.throwUnexpectedToken());return{type:6,value:parseInt(d,2),lineNumber:this.lineNumber,
lineStart:this.lineStart,start:a,end:this.index}};g.prototype.scanOctalLiteral=function(a,d){var l="",k=!1;q.Character.isOctalDigit(a.charCodeAt(0))?(k=!0,l="0"+this.source[this.index++]):++this.index;for(;!this.eof()&&q.Character.isOctalDigit(this.source.charCodeAt(this.index));)l+=this.source[this.index++];k||0!==l.length||this.throwUnexpectedToken();(q.Character.isIdentifierStart(this.source.charCodeAt(this.index))||q.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken();
return{type:6,value:parseInt(l,8),lineNumber:this.lineNumber,lineStart:this.lineStart,start:d,end:this.index}};g.prototype.scanNumericLiteral=function(){var a=this.index,d=this.source[a];y.assert(q.Character.isDecimalDigit(d.charCodeAt(0))||"."===d,"Numeric literal must start with a decimal digit or a decimal point");var l="";if("."!==d){l=this.source[this.index++];d=this.source[this.index];if("0"===l){if("x"===d||"X"===d)return++this.index,this.scanHexLiteral(a);if("b"===d||"B"===d)return++this.index,
this.scanBinaryLiteral(a);if("o"===d||"O"===d)return this.scanOctalLiteral(d,a)}for(;q.Character.isDecimalDigit(this.source.charCodeAt(this.index));)l+=this.source[this.index++];d=this.source[this.index]}if("."===d){for(l+=this.source[this.index++];q.Character.isDecimalDigit(this.source.charCodeAt(this.index));)l+=this.source[this.index++];d=this.source[this.index]}if("e"===d||"E"===d){l+=this.source[this.index++];d=this.source[this.index];if("+"===d||"-"===d)l+=this.source[this.index++];if(q.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;q.Character.isDecimalDigit(this.source.charCodeAt(this.index));)l+=
this.source[this.index++];else this.throwUnexpectedToken()}q.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken();return{type:6,value:parseFloat(l),lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}};g.prototype.scanStringLiteral=function(){var a=this.index,d=this.source[a];y.assert("'"===d||'"'===d,"String literal must starts with a quote");++this.index;for(var l="";!this.eof();){var k=this.source[this.index++];if(k===d){d="";break}if("\\"===
k)if((k=this.source[this.index++])&&q.Character.isLineTerminator(k.charCodeAt(0)))++this.lineNumber,"\r"===k&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(k){case "u":"{"===this.source[this.index]?(++this.index,l+=this.scanUnicodeCodePointEscape()):(k=this.scanHexEscape(k),null===k&&this.throwUnexpectedToken(),l+=k);break;case "x":k=this.scanHexEscape(k);null===k&&this.throwUnexpectedToken(m.ParsingErrorCodes.InvalidHexEscapeSequence);l+=k;break;case "n":l+="\n";
break;case "r":l+="\r";break;case "t":l+="\t";break;case "b":l+="\b";break;case "f":l+="\f";break;case "v":l+="\v";break;case "8":case "9":l+=k;this.tolerateUnexpectedToken();break;default:k&&q.Character.isOctalDigit(k.charCodeAt(0))?(k=this.octalToDecimal(k),l+=String.fromCharCode(k.code)):l+=k}else if(q.Character.isLineTerminator(k.charCodeAt(0)))break;else l+=k}""!==d&&(this.index=a,this.throwUnexpectedToken());return{type:8,value:l,lineNumber:this.lineNumber,lineStart:this.lineStart,start:a,end:this.index}};
g.prototype.scanTemplate=function(){var a="",d=!1,l=this.index,k="`"===this.source[l],n=!1,h=2;for(++this.index;!this.eof();){var c=this.source[this.index++];if("`"===c){h=1;d=n=!0;break}if("$"===c){if("{"===this.source[this.index]){this.curlyStack.push("${");++this.index;d=!0;break}a+=c}else if("\\"===c)if(c=this.source[this.index++],q.Character.isLineTerminator(c.charCodeAt(0)))++this.lineNumber,"\r"===c&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(c){case "n":a+=
"\n";break;case "r":a+="\r";break;case "t":a+="\t";break;case "u":if("{"===this.source[this.index])++this.index,a+=this.scanUnicodeCodePointEscape();else{var r=this.index,v=this.scanHexEscape(c);null!==v?a+=v:(this.index=r,a+=c)}break;case "x":c=this.scanHexEscape(c);null===c&&this.throwUnexpectedToken(m.ParsingErrorCodes.InvalidHexEscapeSequence);a+=c;break;case "b":a+="\b";break;case "f":a+="\f";break;case "v":a+="\v";break;default:"0"===c?(q.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&
this.throwUnexpectedToken(m.ParsingErrorCodes.TemplateOctalLiteral),a+="\x00"):q.Character.isOctalDigit(c.charCodeAt(0))?this.throwUnexpectedToken(m.ParsingErrorCodes.TemplateOctalLiteral):a+=c}else q.Character.isLineTerminator(c.charCodeAt(0))?(++this.lineNumber,"\r"===c&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index,a+="\n"):a+=c}d||this.throwUnexpectedToken();k||this.curlyStack.pop();return{type:10,value:this.source.slice(l+1,this.index-h),cooked:a,head:k,tail:n,lineNumber:this.lineNumber,
lineStart:this.lineStart,start:l,end:this.index}};g.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var a=this.source.charCodeAt(this.index);return q.Character.isIdentifierStart(a)?this.scanIdentifier():40===a||41===a||59===a?this.scanPunctuator():39===a||34===a?this.scanStringLiteral():46===a?q.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():
q.Character.isDecimalDigit(a)?this.scanNumericLiteral():96===a||125===a&&"${"===this.curlyStack[this.curlyStack.length-1]?this.scanTemplate():55296<=a&&57343>a&&q.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()};return g}();u.Scanner=F})},"esri/arcade/lib/assert":function(){define(["require","exports"],function(F,u){Object.defineProperty(u,"__esModule",{value:!0});u.assert=void 0;u.assert=function(b,p){if(!b)throw Error("ASSERT: "+p);}})},"esri/arcade/lib/character":function(){define(["require",
"exports"],function(F,u){Object.defineProperty(u,"__esModule",{value:!0});u.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]/,
p=/[\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]/;
u.Character={fromCodePoint:function(e){return 65536>e?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||5760<=e&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(e)},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||65<=e&&90>=e||97<=e&&122>=e||92===e||
128<=e&&b.test(u.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||65<=e&&90>=e||97<=e&&122>=e||48<=e&&57>=e||92===e||128<=e&&p.test(u.Character.fromCodePoint(e))},isDecimalDigit:function(e){return 48<=e&&57>=e},isHexDigit:function(e){return 48<=e&&57>=e||65<=e&&70>=e||97<=e&&102>=e},isOctalDigit:function(e){return 48<=e&&55>=e}}})},"esri/arcade/lib/tokenizer":function(){define(["require","exports","./error-handler","./scanner","./types"],function(F,u,b,p,e){Object.defineProperty(u,
"__esModule",{value:!0});u.Tokenizer=void 0;F=function(){function y(q,m){this.errorHandler=new b.ErrorHandler;this.errorHandler.tolerant=m?"boolean"===typeof m.tolerant&&m.tolerant:!1;this.scanner=new p.Scanner(q,this.errorHandler);this.trackComments=m?"boolean"===typeof m.comment&&m.comment:!1;this.buffer=[]}y.prototype.errors=function(){return this.errorHandler.errors};y.prototype.getNextToken=function(){var q=this;if(0===this.buffer.length){var m=this.scanner.scanComments();this.trackComments&&
m&&m.forEach(function(a){var d=q.scanner.source.slice(a.start,a.end);q.buffer.push({type:a.multiLine?"BlockComment":"LineComment",value:d,range:a.range,loc:a.loc})});if(!this.scanner.eof()){m={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart};var f=this.scanner.lex(),g={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart};m={type:e.TokenNames[f.type],value:this.scanner.source.slice(f.start,f.end),range:[f.start,f.end],loc:{start:m,end:g}};this.buffer.push(m)}}return this.buffer.shift()};
return y}();u.Tokenizer=F})},"esri/arcade/featureset/support/RecentlyUsedCache":function(){define(["require","exports"],function(F,u){var b=function(){function e(y){var q=this;q._keys=[];q._values=[];q.length=0;y&&y.forEach(function(m){q.set(m[0],m[1])})}e.prototype.entries=function(){var y=this;return[].slice.call(this.keys().map(function(q,m){return[q,y._values[m]]}))};e.prototype.keys=function(){return[].slice.call(this._keys)};e.prototype.values=function(){return[].slice.call(this._values)};e.prototype.has=
function(y){return this._keys.includes(y)};e.prototype.get=function(y){y=this._keys.indexOf(y);return-1<y?this._values[y]:null};e.prototype.deepGet=function(y){if(!y||!y.length)return null;var q=function(m,f){return null==m?null:f.length?q(m instanceof e?m.get(f[0]):m[f[0]],f.slice(1)):m};return q(this.get(y[0]),y.slice(1))};e.prototype.set=function(y,q){var m=this._keys.indexOf(y);-1<m?this._values[m]=q:(this._keys.push(y),this._values.push(q),this.length=this._values.length);return this};e.prototype.sortedSet=
function(y,q,m,f){var g=this._keys.length;m=m||0;f=void 0!==f?f:g-1;if(0===g)return this._keys.push(y),this._values.push(q),this;if(y===this._keys[m])return this._values.splice(m,0,q),this;if(y===this._keys[f])return this._values.splice(f,0,q),this;if(y>this._keys[f])return this._keys.splice(f+1,0,y),this._values.splice(f+1,0,q),this;if(y<this._keys[m])return this._values.splice(m,0,q),this._keys.splice(m,0,y),this;if(m>=f)return this;g=m+Math.floor((f-m)/2);return y<this._keys[g]?this.sortedSet(y,
q,m,g-1):y>this._keys[g]?this.sortedSet(y,q,g+1,f):this};e.prototype.size=function(){return this.length};e.prototype.clear=function(){this._keys.length=this.length=this._values.length=0;return this};e.prototype.delete=function(y){y=this._keys.indexOf(y);return-1<y?(this._keys.splice(y,1),this._values.splice(y,1),this.length=this._keys.length,!0):!1};e.prototype.forEach=function(y){var q=this;this._keys.forEach(function(m,f){y(q._values[f],m,f)})};e.prototype.map=function(y){var q=this;return this.keys().map(function(m,
f){return y(q._values[f],m,f)})};e.prototype.filter=function(y){var q=this;q._keys.forEach(function(m,f){!1===y(q._values[f],m,f)&&q.delete(m)});return this};e.prototype.clone=function(){return new e(this.entries())};return e}(),p=function(){function e(y){void 0===y&&(y=20);this._maxEntries=y;this._values=new b}e.prototype.delete=function(y){this._values.has(y)&&this._values.delete(y)};e.prototype.get=function(y){var q=null;this._values.has(y)&&(q=this._values.get(y),this._values.delete(y),this._values.set(y,
q));return q};e.prototype.put=function(y,q){if(this._values.size()>=this._maxEntries){var m=this._values.keys()[0];this._values.delete(m)}this._values.set(y,q)};return e}();return function(){function e(y){void 0===y&&(y=20);this._maxEntries=y;this._cache=new p(this._maxEntries)}e.prototype.clear=function(){this._cache=new p(this._maxEntries)};e.prototype.addToCache=function(y,q){this._cache.put(y,q)};e.prototype.removeFromCache=function(y){this._cache.delete(y)};e.prototype.getFromCache=function(y){return this._cache.get(y)};
return e}()})},"esri/arcade/arcadeRuntime":function(){define("require exports ./polyfill/tsSupport/awaiter ./polyfill/tsSupport/generator ./polyfill/tsSupport/assign ./polyfill/tsSupport/spreadarray ./polyfill/tsSupport/extends ./ArcadeModule ./ArcadeModuleLoader ./Dictionary ./executionError ./Feature ./FunctionWrapper ./languageUtils ./treeAnalysis ./functions/array ./functions/date ./functions/geometry ./functions/geomsync ./functions/maths ./functions/stats ./functions/string ../geometry/Geometry ../SpatialReference".split(" "),
function(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r,v,z,C,x,E,B){function w(O,P){for(var aa=[],ha=0;ha<P.arguments.length;ha++)aa.push(t(O,P.arguments[ha]));return aa}function D(O,P,aa){try{return!0===P.preparsed?aa(O,null,P.arguments):aa(O,P,w(O,P))}catch(ha){throw ha;}}function t(O,P){try{switch(null===P||void 0===P?void 0:P.type){case "EmptyStatement":return k.voidOperation;case "VariableDeclarator":var aa=null===P.init?null:t(O,P.init);aa===k.voidOperation&&(aa=null);if("Identifier"!==P.id.type)throw new a.ArcadeExecutionError(O,
a.ExecutionErrorCodes.InvalidIdentifier,P);var ha=P.id.name.toLowerCase();null!=O.localScope?O.localScope[ha]={value:aa,valueset:!0,node:P.init}:O.globalScope[ha]={value:aa,valueset:!0,node:P.init};return k.voidOperation;case "VariableDeclaration":for(var la=0;la<P.declarations.length;la++)t(O,P.declarations[la]);return k.voidOperation;case "ImportDeclaration":var ta,Ba,N=P.specifiers[0].local.name.toLowerCase(),Q=O.libraryResolver.loadLibrary(N);la=null;(null===(ta=O.libraryResolver._moduleSingletons)||
void 0===ta?0:ta.has(Q.uri))?la=O.libraryResolver._moduleSingletons.get(Q.uri):(la=new ka(Q),la.loadModule(O),null===(Ba=O.libraryResolver._moduleSingletons)||void 0===Ba?void 0:Ba.set(Q.uri,la));O.globalScope[N]={value:la,valueset:!0,node:P};return k.voidOperation;case "ExportNamedDeclaration":t(O,P.declaration);if("FunctionDeclaration"===P.declaration.type)O.exports[P.declaration.id.name.toLowerCase()]="function";else if("VariableDeclaration"===P.declaration.type){la=0;for(var ia=P.declaration.declarations;la<
ia.length;la++)O.exports[ia[la].id.name.toLowerCase()]="variable"}return k.voidOperation;case "BlockStatement":case "Program":a:{var pa=k.voidOperation;for(la=0;la<P.body.length;la++)if(pa=t(O,P.body[la]),pa instanceof k.ReturnResult||pa===k.breakResult||pa===k.continueResult){var ra=pa;break a}ra=pa}return ra;case "FunctionDeclaration":var M=P.id.name.toLowerCase();O.globalScope[M]={valueset:!0,node:null,value:new da(P,O)};return k.voidOperation;case "ReturnStatement":if(null===P.argument)var ca=
new k.ReturnResult(k.voidOperation);else{var sa=t(O,P.argument);ca=new k.ReturnResult(sa)}return ca;case "IfStatement":var xa=t(O,P.test);if(!0===xa)var za=t(O,P.consequent);else if(!1===xa)za=null!==P.alternate?t(O,P.alternate):k.voidOperation;else throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.BooleanConditionRequired,P);return za;case "ExpressionStatement":if("AssignmentExpression"===P.expression.type||"UpdateExpression"===P.expression.type)var Ca=t(O,P.expression);else{var Ha=t(O,P.expression);
Ca=Ha===k.voidOperation?k.voidOperation:new k.ImplicitResult(Ha)}return Ca;case "AssignmentExpression":la=null;var Da="";if("MemberExpression"===P.left.type){la=t(O,P.left.object);if(!0===P.left.computed)Da=t(O,P.left.property);else if("Identifier"===P.left.property.type)Da=P.left.property.name;else throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidIdentifier,P);var La=t(O,P.right);if(k.isArray(la))if(k.isNumber(Da)){0>Da&&(Da=la.length+Da);if(0>Da||Da>la.length)throw new a.ArcadeExecutionError(O,
a.ExecutionErrorCodes.OutOfBounds,P);if(Da===la.length&&"\x3d"!==P.operator)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.OutOfBounds,P);la[Da]=G(La,P.operator,la[Da],P,O)}else throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.ArrayAccessorMustBeNumber,P);else if(la instanceof g){if(!1===k.isString(Da))throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.KeyAccessorMustBeString,P);if(!0===la.hasField(Da))la.setField(Da,G(La,P.operator,la.field(Da),P,O));else{if("\x3d"!==P.operator)throw new a.ArcadeExecutionError(O,
a.ExecutionErrorCodes.FieldNotFound,P,{key:Da});la.setField(Da,G(La,P.operator,null,P,O))}}else if(k.isFeature(la)){if(!1===k.isString(Da))throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.KeyAccessorMustBeString,P);if(!0===la.hasField(Da))la.setField(Da,G(La,P.operator,la.field(Da),P,O));else{if("\x3d"!==P.operator)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.FieldNotFound,P,{key:Da});la.setField(Da,G(La,P.operator,null,P,O))}}else{if(k.isImmutableArray(la))throw new a.ArcadeExecutionError(O,
a.ExecutionErrorCodes.Immutable,P);if(la instanceof ka){if(!1===k.isString(Da))throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.ModuleAccessorMustBeString,P);if(!0===la.hasGlobal(Da))la.setGlobal(Da,G(La,P.operator,la.global(Da),P,O));else throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.ModuleExportNotFound,P);}else throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidIdentifier,P);}var Pa=k.voidOperation}else{la=P.left.name.toLowerCase();var T=t(O,P.right);if(null!=O.localScope&&
void 0!==O.localScope[la])O.localScope[la]={value:G(T,P.operator,O.localScope[la].value,P,O),valueset:!0,node:P.right},Pa=k.voidOperation;else if(void 0!==O.globalScope[la])O.globalScope[la]={value:G(T,P.operator,O.globalScope[la].value,P,O),valueset:!0,node:P.right},Pa=k.voidOperation;else throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidIdentifier,P);}return Pa;case "UpdateExpression":la=null;Da="";if("MemberExpression"===P.argument.type){la=t(O,P.argument.object);!0===P.argument.computed?
Da=t(O,P.argument.property):"Identifier"===P.argument.property.type&&(Da=P.argument.property.name);if(k.isArray(la))if(k.isNumber(Da)){0>Da&&(Da=la.length+Da);if(0>Da||Da>=la.length)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.OutOfBounds,P);var Y=k.toNumber(la[Da]);la[Da]="++"===P.operator?Y+1:Y-1}else throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.ArrayAccessorMustBeNumber,P);else if(la instanceof g){if(!1===k.isString(Da))throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.KeyAccessorMustBeString,
P);if(!0===la.hasField(Da))Y=k.toNumber(la.field(Da)),la.setField(Da,"++"===P.operator?Y+1:Y-1);else throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.FieldNotFound,P);}else if(k.isFeature(la)){if(!1===k.isString(Da))throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.KeyAccessorMustBeString,P);if(!0===la.hasField(Da))Y=k.toNumber(la.field(Da)),la.setField(Da,"++"===P.operator?Y+1:Y-1);else throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.FieldNotFound,P);}else{if(k.isImmutableArray(la))throw new a.ArcadeExecutionError(O,
a.ExecutionErrorCodes.Immutable,P);if(la instanceof ka){if(!1===k.isString(Da))throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.ModuleAccessorMustBeString,P);if(!0===la.hasGlobal(Da))Y=k.toNumber(la.global(Da)),la.setGlobal(Da,"++"===P.operator?Y+1:Y-1);else throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.ModuleExportNotFound,P);}else throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidParameter,P);}var oa=!1===P.prefix?Y:"++"===P.operator?Y+1:Y-1}else{la="Identifier"===
P.argument.type?P.argument.name.toLowerCase():"";if(!la)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidIdentifier,P);if(null!=O.localScope&&void 0!==O.localScope[la])Y=k.toNumber(O.localScope[la].value),O.localScope[la]={value:"++"===P.operator?Y+1:Y-1,valueset:!0,node:P},oa=!1===P.prefix?Y:"++"===P.operator?Y+1:Y-1;else if(void 0!==O.globalScope[la])Y=k.toNumber(O.globalScope[la].value),O.globalScope[la]={value:"++"===P.operator?Y+1:Y-1,valueset:!0,node:P},oa=!1===P.prefix?Y:"++"===
P.operator?Y+1:Y-1;else throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidIdentifier,P);}return oa;case "BreakStatement":return k.breakResult;case "ContinueStatement":return k.continueResult;case "TemplateElement":return P.value?P.value.cooked:"";case "TemplateLiteral":var ua="",ya=0;Pa=0;for(la=P.quasis;Pa<la.length;Pa++)if(Da=la[Pa],ua+=Da.value?Da.value.cooked:"",!1===Da.tail){if(P.expressions[ya]){La=k;var Ea=La.toString,Fa=t(O,P.expressions[ya]);T=O;oa=P;if(k.isFunctionParameter(Fa))throw new a.ArcadeExecutionError(T,
a.ExecutionErrorCodes.NoFunctionInTemplateLiteral,oa);var Ka=Ea.call(La,Fa)}else Ka="";ua+=Ka;ya++}return ua;case "ForStatement":null!==P.init&&t(O,P.init);ya={testResult:!0,lastAction:k.voidOperation};do b:{la=O;Da=P;Ka=ya;if(null!==Da.test){Ka.testResult=t(la,Da.test);if(!1===Ka.testResult)break b;if(!0!==Ka.testResult)throw new a.ArcadeExecutionError(la,a.ExecutionErrorCodes.BooleanConditionRequired,Da);}Ka.lastAction=t(la,Da.body);Ka.lastAction===k.breakResult?Ka.testResult=!1:Ka.lastAction instanceof
k.ReturnResult?Ka.testResult=!1:null!==Da.update&&t(la,Da.update)}while(!0===ya.testResult);ua=ya.lastAction instanceof k.ReturnResult?ya.lastAction:k.voidOperation;return ua;case "ForInStatement":return A(O,P);case "WhileStatement":la=!0;var Ja=k.voidOperation;la=t(O,P.test);if(!1===la)var Ga=k.voidOperation;else{if(!0!==la)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.BooleanConditionRequired,P);for(;!0===la;){Ja=t(O,P.body);if(Ja===k.breakResult)break;if(Ja instanceof k.ReturnResult)break;
la=t(O,P.test);if(!0!==la&&!1!==la)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.BooleanConditionRequired,P);}Ga=Ja instanceof k.ReturnResult?Ja:k.voidOperation}return Ga;case "Identifier":return fa(O,P);case "MemberExpression":return J(O,P);case "Literal":return P.value;case "CallExpression":a:try{if("MemberExpression"===P.callee.type){var Na=t(O,P.callee.object);if(!(Na instanceof ka))throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.FuncionNotFound,P);var Ra=!1===P.callee.computed?
P.callee.property.name:t(O,P.callee.property);if(!Na.hasGlobal(Ra))throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.FuncionNotFound,P);var Va=Na.global(Ra);if(!k.isFunctionParameter(Va))throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.CallNonFunction,P);var Sa=Va.call(O,P)}else{if("Identifier"!==P.callee.type)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.FuncionNotFound,P);if(null!=O.localScope&&void 0!==O.localScope[P.callee.name.toLowerCase()]){var Wa=O.localScope[P.callee.name.toLowerCase()];
if(k.isFunctionParameter(Wa.value)){Sa=Wa.value.call(O,P);break a}throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.CallNonFunction,P);}if(void 0!==O.globalScope[P.callee.name.toLowerCase()]){Wa=O.globalScope[P.callee.name.toLowerCase()];if(k.isFunctionParameter(Wa.value)){Sa=Wa.value.call(O,P);break a}throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.CallNonFunction,P);}throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.FuncionNotFound,P);}}catch(Za){throw Za;}return Sa;case "UnaryExpression":return U(O,
P);case "BinaryExpression":return ja(O,P);case "LogicalExpression":return Z(O,P);case "ArrayExpression":try{la=[];for(Da=0;Da<P.elements.length;Da++){var jb=t(O,P.elements[Da]);if(k.isFunctionParameter(jb))throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.NoFunctionInArray,P);jb===k.voidOperation?la.push(null):la.push(jb)}var hb=la}catch(Za){throw Za;}return hb;case "ObjectExpression":la={};var fb=new Map;for(Da=0;Da<P.properties.length;Da++){var Oa=t(O,P.properties[Da]);if(k.isFunctionParameter(Oa.value))throw new a.ArcadeExecutionError(O,
a.ExecutionErrorCodes.NoFunctionInDictionary,P);if(!1===k.isString(Oa.key))throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.KeyMustBeString,P);var Xa=Oa.key.toString(),ib=Xa.toLowerCase();fb.has(ib)?Xa=fb.get(ib):fb.set(ib,Xa);la[Xa]=Oa.value===k.voidOperation?null:Oa.value}var Ya=new g(la);Ya.immutable=!1;return Ya;case "Property":return{key:"Identifier"===P.key.type?P.key.name:t(O,P.key),value:t(O,P.value)};default:throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.Unrecognised,P);
}}catch(Za){throw a.ensureArcadeExecutionError(O,P,Za);}}function A(O,P){var aa=t(O,P.right);"VariableDeclaration"===P.left.type&&t(O,P.left);var ha=null,la="";if("VariableDeclaration"===P.left.type){var ta=P.left.declarations[0].id;"Identifier"===ta.type&&(la=ta.name)}else"Identifier"===P.left.type&&(la=P.left.name);if(!la)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidIdentifier,P);la=la.toLowerCase();null!=O.localScope&&void 0!==O.localScope[la]&&(ha=O.localScope[la]);null===ha&&
void 0!==O.globalScope[la]&&(ha=O.globalScope[la]);if(null===ha)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidIdentifier,P);if(k.isArray(aa)||k.isString(aa)){aa=aa.length;for(ta=0;ta<aa;ta++){ha.value=ta;la=t(O,P.body);if(la===k.breakResult)break;if(la instanceof k.ReturnResult)return la}return k.voidOperation}if(k.isImmutableArray(aa)){for(ta=0;ta<aa.length();ta++){ha.value=ta;la=t(O,P.body);if(la===k.breakResult)break;if(la instanceof k.ReturnResult)return la}return k.voidOperation}if(aa instanceof
g||k.isFeature(aa))for(aa=aa.keys(),ta=0;ta<aa.length;ta++){ha.value=aa[ta];la=t(O,P.body);if(la===k.breakResult)break;if(la instanceof k.ReturnResult)return la}else return k.voidOperation}function G(O,P,aa,ha,la){switch(P){case "\x3d":return O===k.voidOperation?null:O;case "/\x3d":return k.toNumber(aa)/k.toNumber(O);case "*\x3d":return k.toNumber(aa)*k.toNumber(O);case "-\x3d":return k.toNumber(aa)-k.toNumber(O);case "+\x3d":return k.isString(aa)||k.isString(O)?k.toString(aa)+k.toString(O):k.toNumber(aa)+
k.toNumber(O);case "%\x3d":return k.toNumber(aa)%k.toNumber(O);default:throw new a.ArcadeExecutionError(la,a.ExecutionErrorCodes.UnsupportedOperator,ha);}}function J(O,P){try{var aa=t(O,P.object);if(null===aa)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.MemberOfNull,P);if(!1===P.computed){if("Identifier"===P.property.type){if(aa instanceof g||k.isFeature(aa))return aa.field(P.property.name);if(aa instanceof E)return r.geometryMember(aa,P.property.name,P,O);if(aa instanceof ka){if(!aa.hasGlobal(P.property.name))throw new a.ArcadeExecutionError(O,
a.ExecutionErrorCodes.InvalidIdentifier,P);return aa.global(P.property.name)}}throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidMemberAccessKey,P);}var ha=t(O,P.property);if(aa instanceof g||k.isFeature(aa)){if(k.isString(ha))return aa.field(ha);throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidMemberAccessKey,P);}if(aa instanceof ka){if(k.isString(ha))return aa.global(ha);throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidMemberAccessKey,P);}if(aa instanceof
E){if(k.isString(ha))return r.geometryMember(aa,ha,P,O);throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidMemberAccessKey,P);}if(k.isArray(aa)){if(k.isNumber(ha)&&isFinite(ha)&&Math.floor(ha)===ha){0>ha&&(ha=aa.length+ha);if(ha>=aa.length||0>ha)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.OutOfBounds,P);return aa[ha]}throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidMemberAccessKey,P);}if(k.isString(aa)){if(k.isNumber(ha)&&isFinite(ha)&&Math.floor(ha)===ha){0>
ha&&(ha=aa.length+ha);if(ha>=aa.length||0>ha)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.OutOfBounds,P);return aa[ha]}throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidMemberAccessKey,P);}if(k.isImmutableArray(aa)&&k.isNumber(ha)&&isFinite(ha)&&Math.floor(ha)===ha){0>ha&&(ha=aa.length()+ha);if(ha>=aa.length()||0>ha)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.OutOfBounds,P);return aa.get(ha)}throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidMemberAccessKey,
P);}catch(la){throw la;}}function U(O,P){try{var aa=t(O,P.argument);if(k.isBoolean(aa)){if("!"===P.operator)return!aa;if("-"===P.operator)return-1*k.toNumber(aa);if("+"===P.operator)return 1*k.toNumber(aa);if("~"===P.operator)return~k.toNumber(aa);throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.UnsupportedUnaryOperator,P);}if("~"===P.operator)return~k.toNumber(aa);if("-"===P.operator)return-1*k.toNumber(aa);if("+"===P.operator)return 1*k.toNumber(aa);throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.UnsupportedUnaryOperator,
P);}catch(ha){throw ha;}}function ja(O,P){try{var aa=[t(O,P.left),t(O,P.right)],ha=aa[0],la=aa[1];switch(P.operator){case "|":case "\x3c\x3c":case "\x3e\x3e":case "\x3e\x3e\x3e":case "^":case "\x26":return k.binaryOperator(k.toNumber(ha),k.toNumber(la),P.operator);case "\x3d\x3d":return k.equalityTest(ha,la);case "!\x3d":return!k.equalityTest(ha,la);case "\x3c":return k.greaterThanLessThan(ha,la,P.operator);case "\x3e":return k.greaterThanLessThan(ha,la,P.operator);case "\x3c\x3d":return k.greaterThanLessThan(ha,
la,P.operator);case "\x3e\x3d":return k.greaterThanLessThan(ha,la,P.operator);case "+":return k.isString(ha)||k.isString(la)?k.toString(ha)+k.toString(la):k.toNumber(ha)+k.toNumber(la);case "-":return k.toNumber(ha)-k.toNumber(la);case "*":return k.toNumber(ha)*k.toNumber(la);case "/":return k.toNumber(ha)/k.toNumber(la);case "%":return k.toNumber(ha)%k.toNumber(la);default:throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.UnsupportedOperator,P);}}catch(ta){throw ta;}}function Z(O,P){try{var aa=
t(O,P.left);if(k.isBoolean(aa))switch(P.operator){case "||":if(!0===aa)return aa;var ha=t(O,P.right);if(k.isBoolean(ha))return ha;throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.LogicExpressionOrAnd,P);case "\x26\x26":if(!1===aa)return aa;ha=t(O,P.right);if(k.isBoolean(ha))return ha;throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.LogicExpressionOrAnd,P);default:throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.LogicExpressionOrAnd,P);}throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.LogicalExpressionOnlyBoolean,
P);}catch(la){throw la;}}function fa(O,P){try{var aa=P.name.toLowerCase();if(null!=O.localScope&&void 0!==O.localScope[aa]){var ha=O.localScope[aa];if(!0===ha.valueset)return ha.value;ha.value=t(O,ha.node);ha.valueset=!0;return ha.value}if(void 0!==O.globalScope[aa]){ha=O.globalScope[aa];if(!0===ha.valueset)return ha.value;ha.value=t(O,ha.node);ha.valueset=!0;return ha.value}throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.InvalidIdentifier,P);}catch(la){throw la;}}function qa(O,P,aa,ha){try{var la=
t(O,P.arguments[aa]);if(k.equalityTest(la,ha))return t(O,P.arguments[aa+1]);var ta=P.arguments.length-aa;return 1===ta?t(O,P.arguments[aa]):2===ta?null:3===ta?t(O,P.arguments[aa+2]):qa(O,P,aa+2,ha)}catch(Ba){throw Ba;}}function V(O,P,aa,ha){try{if(!0===ha)return t(O,P.arguments[aa+1]);if(3===P.arguments.length-aa)return t(O,P.arguments[aa+2]);var la=t(O,P.arguments[aa+2]);if(!1===k.isBoolean(la))throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.BooleanConditionRequired,P.arguments[aa+2]);return V(O,
P,aa+2,la)}catch(ta){throw ta;}}function ea(O,P,aa,ha){try{var la=O.body;if(aa.length!==O.params.length)throw new a.ArcadeExecutionError(P,a.ExecutionErrorCodes.WrongNumberOfParameters,ha);if(null!=P.localScope)for(var ta=0;ta<aa.length;ta++)P.localScope[O.params[ta].name.toLowerCase()]={value:aa[ta],valueset:!0,node:null};var Ba=t(P,la);if(Ba instanceof k.ReturnResult)return Ba.value;if(Ba===k.breakResult)throw new a.ArcadeExecutionError(P,a.ExecutionErrorCodes.UnexpectedToken,ha);if(Ba===k.continueResult)throw new a.ArcadeExecutionError(P,
a.ExecutionErrorCodes.UnexpectedToken,ha);return Ba instanceof k.ImplicitResult?Ba.value:Ba}catch(N){throw N;}}function ba(O,P,aa){var ha=new X;O||(O={});P||(P={});var la=new g({newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"});la.immutable=!1;ha.textformatting={value:la,valueset:!0,node:null};for(var ta in P)ha[ta]={value:new l.NativeFunction(P[ta]),native:!0,valueset:!0,node:null};for(ta in O)ha[ta]=O[ta]&&"esri.Graphic"===O[ta].declaredClass?{value:d.createFromGraphic(O[ta],
aa),valueset:!0,node:null}:{value:O[ta],valueset:!0,node:null};return ha}function ma(O){console.log(O)}function va(O){for(var P={mode:"sync",compiled:!1,functions:{},signatures:[],standardFunction:D,evaluateIdentifier:fa},aa=0;aa<O.length;aa++)O[aa].registerFunctions(P);for(var ha in P.functions)I[ha]={value:new l.NativeFunction(P.functions[ha]),valueset:!0,node:null},X.prototype[ha]=I[ha];for(aa=0;aa<P.signatures.length;aa++)n.addFunctionDeclaration(P.signatures[aa],"sync")}Object.defineProperty(u,
"__esModule",{value:!0});u.executeScript=u.extend=u.functionHelper=void 0;var da=function(O){function P(aa,ha){var la=O.call(this)||this;la.definition=null;la.context=null;la.definition=aa;la.context=ha;return la}q(P,O);P.prototype.createFunction=function(aa){var ha=this;return function(){for(var la=[],ta=0;ta<arguments.length;ta++)la[ta]=arguments[ta];ta={spatialReference:ha.context.spatialReference,console:ha.context.console,timeReference:ha.context.timeReference?ha.context.timeReference:null,lrucache:ha.context.lrucache,
exports:ha.context.exports,libraryResolver:ha.context.libraryResolver,interceptor:ha.context.interceptor,localScope:{},depthCounter:{depth:aa.depthCounter.depth+1},globalScope:ha.context.globalScope};if(64<ta.depthCounter.depth)throw new a.ArcadeExecutionError(aa,a.ExecutionErrorCodes.MaximumCallDepth,null);return ea(ha.definition,ta,la,null)}};P.prototype.call=function(aa,ha){var la=this;return D(aa,ha,function(ta,Ba,N){var Q;ta={spatialReference:aa.spatialReference,globalScope:aa.globalScope,depthCounter:{depth:aa.depthCounter.depth+
1},libraryResolver:aa.libraryResolver,exports:aa.exports,timeReference:null!==(Q=aa.timeReference)&&void 0!==Q?Q:null,console:aa.console,lrucache:aa.lrucache,interceptor:aa.interceptor,localScope:{}};if(64<ta.depthCounter.depth)throw new a.ArcadeExecutionError(aa,a.ExecutionErrorCodes.MaximumCallDepth,ha);return ea(la.definition,ta,N,ha)})};P.prototype.marshalledCall=function(aa,ha,la,ta){var Ba=this;return ta(aa,ha,function(N,Q,ia){var pa;N={spatialReference:aa.spatialReference,globalScope:la.globalScope,
depthCounter:{depth:aa.depthCounter.depth+1},libraryResolver:aa.libraryResolver,exports:aa.exports,console:aa.console,timeReference:null!==(pa=aa.timeReference)&&void 0!==pa?pa:null,lrucache:aa.lrucache,interceptor:aa.interceptor,localScope:{}};ia=ia.map(function(ra){return!k.isFunctionParameter(ra)||ra instanceof l.ScopeMarshalledFunction?ra:l.wrapModuleScopedResponse(ra,aa,ta)});return l.wrapModuleScopedResponse(ea(Ba.definition,N,ia,ha),la,ta)})};return P}(l.ArcadeFunction),ka=function(O){function P(aa){return O.call(this,
aa)||this}q(P,O);P.prototype.global=function(aa){aa=this.executingContext.globalScope[aa.toLowerCase()];aa.valueset||(aa.value=t(this.executingContext,aa.node),aa.valueset=!0);if(k.isFunctionParameter(aa.value)&&!(aa.value instanceof l.ScopeMarshalledFunction)){var ha=new l.ScopeMarshalledFunction;ha.fn=aa.value;ha.parameterEvaluator=D;ha.context=this.executingContext;aa.value=ha}return aa.value};P.prototype.setGlobal=function(aa,ha){if(k.isFunctionParameter(ha))throw new a.ArcadeExecutionError(null,
a.ExecutionErrorCodes.AssignModuleFunction,null);this.executingContext.globalScope[aa.toLowerCase()]={value:ha,valueset:!0,node:null}};P.prototype.hasGlobal=function(aa){void 0===this.executingContext.exports[aa]&&(aa=aa.toLowerCase());return void 0!==this.executingContext.exports[aa]?!0:!1};P.prototype.loadModule=function(aa){var ha,la=aa.spatialReference;if(null===la||void 0===la)la=new B({wkid:102100});this.moduleScope=ba({},aa.customfunctions,aa.timeReference);this.executingContext={spatialReference:la,
globalScope:this.moduleScope,localScope:null,libraryResolver:new f.ArcadeModuleLoader(aa.libraryResolver._moduleSingletons,this.source.syntax.loadedModules),exports:{},console:aa.console?aa.console:ma,timeReference:null!==(ha=aa.timeReference)&&void 0!==ha?ha:null,lrucache:aa.lrucache,interceptor:aa.interceptor,depthCounter:{depth:1}};t(this.executingContext,this.source.syntax)};return P}(m.ArcadeModule),I={};c.registerFunctions(I,D);x.registerFunctions(I,D);z.registerFunctions(I,D);r.registerFunctions(I,
D);C.registerFunctions(I,D);v.registerFunctions(I,D);I.iif=function(O,P){try{k.pcCheck(null===P.arguments?[]:P.arguments,3,3,O,P);var aa=t(O,P.arguments[0]);if(!1===k.isBoolean(aa))throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.BooleanConditionRequired,P);return!0===aa?t(O,P.arguments[1]):t(O,P.arguments[2])}catch(ha){throw ha;}};I.decode=function(O,P){try{if(2>P.arguments.length)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.WrongNumberOfParameters,P);if(2===P.arguments.length)return t(O,
P.arguments[1]);if(0===(P.arguments.length-1)%2)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.WrongNumberOfParameters,P);var aa=t(O,P.arguments[0]);return qa(O,P,1,aa)}catch(ha){throw ha;}};I.when=function(O,P){try{if(3>P.arguments.length)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.WrongNumberOfParameters,P);if(0===P.arguments.length%2)throw new a.ArcadeExecutionError(O,a.ExecutionErrorCodes.WrongNumberOfParameters,P);var aa=t(O,P.arguments[0]);if(!1===k.isBoolean(aa))throw new a.ArcadeExecutionError(O,
a.ExecutionErrorCodes.BooleanConditionRequired,P.arguments[0]);return V(O,P,0,aa)}catch(ha){throw ha;}};for(var S in I)I[S]={value:new l.NativeFunction(I[S]),valueset:!0,node:null};var X=function(){};X.prototype=I;X.prototype.infinity={value:Number.POSITIVE_INFINITY,valueset:!0,node:null};X.prototype.pi={value:Math.PI,valueset:!0,node:null};u.functionHelper={fixSpatialReference:k.fixSpatialReference,parseArguments:w,standardFunction:D};u.extend=va;va([h]);u.executeScript=function(O,P){var aa,ha=P.spatialReference;
if(null===ha||void 0===ha)ha=new B({wkid:102100});var la=null;O.usesModules&&(la=new f.ArcadeModuleLoader(new Map,O.loadedModules));var ta=ba(P.vars,P.customfunctions,P.timeReference);ha={spatialReference:ha,globalScope:ta,localScope:null,exports:{},libraryResolver:la,console:P.console?P.console:ma,timeReference:null!==(aa=P.timeReference)&&void 0!==aa?aa:null,lrucache:P.lrucache,interceptor:P.interceptor,depthCounter:{depth:1}};O=t(ha,O);O instanceof k.ReturnResult&&(O=O.value);O instanceof k.ImplicitResult&&
(O=O.value);O===k.voidOperation&&(O=null);if(O===k.breakResult)throw new a.ArcadeExecutionError(ha,a.ExecutionErrorCodes.IllegalResult,null);if(O===k.continueResult)throw new a.ArcadeExecutionError(ha,a.ExecutionErrorCodes.IllegalResult,null);if(k.isFunctionParameter(O))throw new a.ArcadeExecutionError(ha,a.ExecutionErrorCodes.IllegalResult,null);return O}})},"esri/arcadeProfiles/visualizationProfile":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../promiseList ../support/expressionUtils ./utils".split(" "),
function(F,u,b,p,e,y,q){F=new (F(null,{declaredClass:"esri.arcadeProfiles.VisualizationProfile",initialize:function(m){var f=[];q.hasGeometryOperations(m)&&f.push(y.enableGeometryOperations());return e(f)}}));b("extend-esri")&&u.setObject("arcadeProfiles.visualizationProfile",F,p);return F})},"esri/arcadeProfiles/utils":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/has","../kernel","../support/expressionUtils"],function(F,u,b,p,e){var y=/(\/(MapServer|FeatureServer)).*/ig,q={hasGeometryOperations:function(m){return u.some(m,
function(f){return f.hasGeometryOperations?f.hasGeometryOperations():e.hasGeometryOperations(f)})},hasFeatureSetOperations:function(m){return u.some(m,function(f){return f.hasFeatureSetOperations?f.hasFeatureSetOperations():e.hasFeatureSetOperations(f)})},hasVariables:function(m,f){return u.some(m,function(g){return u.some(f,function(a){return g.hasVariable?g.hasVariable(a):e.hasVariable(g,a)})})},isAsync:function(m){return u.some(m,function(f){return f.async})},getServiceUrl:function(m){return y.test(m)?
m.replace(y,"$1"):null}};b("extend-esri")&&F.setObject("arcadeProfiles.utils",q,p);return q})},"esri/renderers/SimpleRenderer":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../symbols/jsonUtils ./Renderer".split(" "),function(F,u,b,p,e,y,q){F=F(q,{declaredClass:"esri.renderer.SimpleRenderer",constructor:function(m,f){if(m&&!m.declaredClass){var g=m;this.symbol=(m=g.symbol)&&(m.declaredClass?m:y.fromJson(m,f));this.label=g.label;this.description=g.description}else this.symbol=
m},getSymbol:function(m){return this.symbol},toJson:function(){var m=u.mixin(this.inherited(arguments),{type:"simple",label:this.label,description:this.description,symbol:this.symbol&&this.symbol.toJson()});return e.fixJson(m)}});b("extend-esri")&&u.setObject("renderer.SimpleRenderer",F,p);return F})},"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(F,u,b,p,e,y,q,m,f){F=F(m,{declaredClass:"esri.renderer.UniqueValueRenderer",constructor:function(g,a,d,l,k,n){this.values=[];this._symbols={};this.infos=[];g&&!g.declaredClass?(a=g,d=n&&n.geometryType,this.defaultSymbol=(g=a.defaultSymbol)&&(g.declaredClass?g:q.fromJson(g,n)),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=q.fromJson(a.backgroundFillSymbol,d?{geometryType:"esriGeometryPolygon"}:null)),"esriGeometryPolygon"===d&&this.hasVisualVariables("sizeInfo",!1)&&(n={geometryType:"esriGeometryPoint"}),u.forEach(a.uniqueValueInfos,function(h){this._addValueInfo(h,n)},this)):(this.defaultSymbol=g,this.attributeField=a,this.attributeField2=d,this.attributeField3=l,this.fieldDelimiter=k);this._multiple=!!this.attributeField2},
addValue:function(g,a){g=b.isObject(g)?g:{value:g,symbol:a};this._addValueInfo(g)},removeValue:function(g){var a=u.indexOf(this.values,g);-1!==a&&(this.values.splice(a,1),this._hasNullKeyword=this._evalNullKeyword(this.values),delete this._symbols[g],this.infos.splice(a,1))},getUniqueValueInfo:function(g){var a=this.attributeField,d=g.attributes;if(this.valueExpression)a=this._getDataValue(g,this._uvInfo,null,this._cache.uvInfo),a=this._normalizeNullValue(a);else if(this._multiple){g=this.attributeField2;
var l=this.attributeField3,k=[];a&&k.push(this._normalizeNullValue(d[a]));g&&k.push(this._normalizeNullValue(d[g]));l&&k.push(this._normalizeNullValue(d[l]));a=k.join(this.fieldDelimiter||"")}else a=b.isFunction(a)?a(g):d[a],a=this._normalizeNullValue(a);return this._symbols[a]},setValueExpression:function(g){this.valueExpression=g;this._uvInfo={valueExpression:g};this._cache.uvInfo=this._createCache(this._uvInfo,!0)},getFieldsUsedInExpressions:function(g){var a=this.inherited(arguments);this.valueExpression&&
(a=a.concat(f.extractFieldNames(this.valueExpression,g)));a.sort();return u.filter(a,function(d,l){return 0===l||a[l-1]!==d})},getSymbol:function(g){return(g=this.getUniqueValueInfo(g))&&g.symbol||this.defaultSymbol},_addValueInfo:function(g,a){var d=g.value;this.values.push(d);this._hasNullKeyword=this._evalNullKeyword(this.values);this.infos.push(g);var l=g.symbol;l&&!l.declaredClass&&(g.symbol=q.fromJson(l,a));this._symbols[d]=g},_nullCode:"\x3cNull\x3e",_normalizeNullValue:function(g){return this._hasNullKeyword&&
null==g?this._nullCode:g},_evalNullKeyword:function(g){var a=this.fieldDelimiter||"",d=new RegExp("(^|"+a+")("+this._nullCode+")("+a+"|$)");return u.some(g,function(l){return d.test(l)})},toJson:function(){var g=y.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:u.map(this.infos||[],function(d){d=b.mixin({},d);d.symbol=d.symbol&&d.symbol.toJson();d.value+="";return g(d)})};this.backgroundFillSymbol&&(a.backgroundFillSymbol=this.backgroundFillSymbol.toJson());a=b.mixin(this.inherited(arguments),a);return g(a)}});p("extend-esri")&&b.setObject("renderer.UniqueValueRenderer",F,e);return F})},"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(F,u,b,p,e,y,q,m,f){F=F(m,{declaredClass:"esri.renderer.ClassBreaksRenderer",constructor:function(g,a,d){this.breaks=[];this._symbols={};this.infos=[];this.isMaxInclusive=!0;if(g&&!g.declaredClass){var l=g;a=d&&d.geometryType;this.attributeField=l.field;this.setValueExpression(l.valueExpression);this.valueExpressionTitle=l.valueExpressionTitle;this.legendOptions=l.legendOptions;this.defaultSymbol=(g=l.defaultSymbol)&&(g.declaredClass?g:q.fromJson(g,d));this.backgroundFillSymbol=(g=l.backgroundFillSymbol)&&
(g.declaredClass?g:q.fromJson(g,a?{geometryType:"esriGeometryPolygon"}:null));this._copy(["defaultLabel","classificationMethod:rest","normalizationType:rest","normalizationField","normalizationTotal"],l,this);var k=l.minValue;(g=l.classBreakInfos)&&g[0]&&y.isDefined(g[0].classMaxValue)&&u.forEach(g,function(n){var h=n.classMaxValue;n.minValue=k;k=n.maxValue=h},this);"esriGeometryPolygon"===a&&(this.hasVisualVariables("sizeInfo",!1)||q.isPointSymbol(q.getFirstSupportedSymbol(u.map(g,function(n){return n.symbol}))))&&
(d={geometryType:"esriGeometryPoint"});u.forEach(g,function(n){this._addBreakInfo(n,d)},this)}else this.defaultSymbol=g,this.attributeField=a},addBreak:function(g,a,d){g=b.isObject(g)?g:{minValue:g,maxValue:a,symbol:d};this._addBreakInfo(g)},removeBreak:function(g,a){var d=this.breaks,l,k=d.length,n=this._symbols;for(l=0;l<k;l++){var h=d[l];if(h[0]==g&&h[1]==a){d.splice(l,1);delete n[g+"-"+a];this.infos.splice(l,1);break}}},clearBreaks:function(){this.breaks=[];this._symbols={};this.infos=[]},getBreakIndex:function(g){var a=
this.attributeField,d=g.attributes,l=this.breaks,k=l.length,n=this.isMaxInclusive;if(this.valueExpression)g=this._getDataValue(g,this._cbInfo,null,this._cache.cbInfo);else if(b.isFunction(a))g=a(g);else if(g=parseFloat(d[a]),a=this.normalizationType,a){var h=parseFloat(this.normalizationTotal);d=parseFloat(d[this.normalizationField]);if("log"===a)g=Math.log(g)*Math.LOG10E;else if("percent-of-total"===a&&!isNaN(h))g=g/h*100;else if("field"===a){if(isNaN(g)||isNaN(d))return-1;g/=d}}if(null!=g&&!isNaN(g)&&
"number"===typeof g)for(d=0;d<k;d++)if(a=l[d],a[0]<=g&&(n?g<=a[1]:g<a[1]))return d;return-1},getBreakInfo:function(g){g=this.getBreakIndex(g);return-1!==g?this.infos[g]:null},getSymbol:function(g){return(g=this.breaks[this.getBreakIndex(g)])?this._symbols[g[0]+"-"+g[1]]:this.defaultSymbol},setMaxInclusive:function(g){this.isMaxInclusive=g},setValueExpression:function(g){this.valueExpression=g;this._cbInfo={valueExpression:g};this._cache.cbInfo=this._createCache(this._cbInfo)},getFieldsUsedInExpressions:function(g){var a=
this.inherited(arguments);this.valueExpression&&(a=a.concat(f.extractFieldNames(this.valueExpression,g)));a.sort();return u.filter(a,function(d,l){return 0===l||a[l-1]!==d})},isContinuousRenderer:function(){var g=!1;if(this.infos&&1===this.infos.length){var a=this.attributeField,d=this.normalizationField,l=this.valueExpression;g=this.getVisualVariablesForType("colorInfo",!1)||[];var k=this.getVisualVariablesForType("sizeInfo",!1)||[],n=this.getVisualVariablesForType("opacityInfo",!1)||[];g=g.concat(k).concat(n);
g=u.some(g,function(h){return(h.field===a||h.valueExpression===l)&&h.normalizationField==d})}return g},_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(g,a,d){u.forEach(g,function(l){var k=l.split(":");if(1<k.length){l=k[0];var n=this["_"+l+"Enums"];if("rest"===k[1]){var h="1";var c="0"}else"sdk"===k[1]&&(h="0",c="1")}k=a[l];if(void 0!==k&&(d[l]=k,n&&h)){var r,v=n.length;for(r=0;r<v;r++)if(n[r][h]===k){d[l]=n[r][c];break}}},this)},_addBreakInfo:function(g,a){var d=g.minValue,l=g.maxValue;this.breaks.push([d,l]);this.infos.push(g);var k=g.symbol;
k&&!k.declaredClass&&(g.symbol=q.fromJson(k,a));this._symbols[d+"-"+l]=g.symbol},toJson:function(){var g=this.infos||[],a=y.fixJson,d=g[0]&&g[0].minValue,l=this.backgroundFillSymbol;g=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:l&&l.toJson(),minValue:-Infinity===
d?-Number.MAX_VALUE:d,classBreakInfos:u.map(g,function(k){k=b.mixin({},k);k.symbol=k.symbol&&k.symbol.toJson();k.classMaxValue=Infinity===k.maxValue?Number.MAX_VALUE:k.maxValue;delete k.minValue;delete k.maxValue;return a(k)})});this._copy(["defaultLabel","classificationMethod:sdk","normalizationType:sdk","normalizationField","normalizationTotal"],this,g);g.hasOwnProperty("normalizationType")&&!g.normalizationType&&delete g.normalizationType;g.hasOwnProperty("classificationMethod")&&!g.classificationMethod&&
delete g.classificationMethod;return a(g)}});p("extend-esri")&&b.setObject("renderer.ClassBreaksRenderer",F,e);return F})},"esri/renderers/TemporalRenderer":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","./Renderer"],function(F,u,b,p,e){F=F(e,{declaredClass:"esri.renderer.TemporalRenderer",constructor:function(y,q,m,f){this.observationRenderer=y;this.latestObservationRenderer=q;this.trackRenderer=m;this.observationAger=f},getSymbol:function(y){var q=y.getLayer(),
m=this.getObservationRenderer(y),f=m&&m.getSymbol(y),g=this.observationAger;q.timeInfo&&q._map.timeExtent&&m===this.observationRenderer&&g&&f&&(f=g.getAgedSymbol(f,y));return f},getObservationRenderer:function(y){return 0===y.getLayer()._getKind(y)?this.observationRenderer:this.latestObservationRenderer||this.observationRenderer},toJson:function(){var y={type:"temporal"};y.observationRenderer=this.observationRenderer.toJson();this.latestObservationRenderer&&(y.latestObservationRenderer=this.latestObservationRenderer.toJson());
this.trackRenderer&&(y.trackRenderer=this.trackRenderer.toJson());this.observationAger&&(y.observationAger=this.observationAger.toJson());return y}});b("extend-esri")&&u.setObject("renderer.TemporalRenderer",F,p);return F})},"esri/renderers/SymbolAger":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(F,u,b,p){F=F(null,{declaredClass:"esri.renderer.SymbolAger",getAgedSymbol:function(e,y){},_setSymbolSize:function(e,y){switch(e.type){case "simplemarkersymbol":e.setSize(y);
break;case "picturemarkersymbol":e.setWidth(y);e.setHeight(y);break;case "simplelinesymbol":case "cartographiclinesymbol":e.setWidth(y);break;case "simplefillsymbol":case "picturefillsymbol":e.outline&&e.outline.setWidth(y)}}});b("extend-esri")&&u.setObject("renderer.SymbolAger",F,p);return F})},"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(F,
u,b,p,e,y,q,m,f,g){var a=F(g,{declaredClass:"esri.renderer.TimeClassBreaksAger",constructor:function(d,l){this.infos=d;this.timeUnits=l||"day";d.sort(function(k,n){return k.minAge<n.minAge?-1:k.minAge>n.minAge?1:0})},getAgedSymbol:function(d,l){var k=l.getLayer();l=l.attributes;var n=q.isDefined;d=m.fromJson(d.toJson());var h=k._map.timeExtent.endTime;if(!h)return d;var c=e.difference(new Date(l[k._startTimeField]),h,this.timeUnits);u.some(this.infos,function(r){if(c>=r.minAge&&c<=r.maxAge){var v=
r.color,z=r.size;r=r.alpha;v&&d.setColor(v);n(z)&&this._setSymbolSize(d,z);n(r)&&d.color&&(d.color.a=r);return!0}},this);return d},toJson:function(){var d={agerClassBreakInfos:[]},l;d.timeUnits=this._getRestUnits(this.timeUnits);for(l=0;l<this.infos.length;l+=1){var k=this.infos[l];var n={};n.oldestAge=Infinity===k.maxAge?null:k.maxAge;n.size=k.size;k.color&&(n.color=f.toJsonColor(k.color));k.alpha&&(n.alpha=Math.round(255*k.alpha));d.agerClassBreakInfos[l]=n}return d},_getRestUnits:function(d){var l=
"esriTimeUnitsDays";switch(d){case a.UNIT_SECONDS:l="esriTimeUnitsSeconds";break;case a.UNIT_MILLISECONDS:l="esriTimeUnitsMilliseconds";break;case a.UNIT_HOURS:l="esriTimeUnitsHours";break;case a.UNIT_MINUTES:l="esriTimeUnitsMinutes";break;case a.UNIT_MONTHS:l="esriTimeUnitsMonths";break;case a.UNIT_WEEKS:l="esriTimeUnitsWeeks";break;case a.UNIT_YEARS:l="esriTimeUnitsYears"}return l}});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"});p("extend-esri")&&b.setObject("renderer.TimeClassBreaksAger",a,y);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(F,u,b,p,e,y,q,m){F=F(m,{declaredClass:"esri.renderer.TimeRampAger",constructor:function(f,g,a){this.colorRange=f;this.sizeRange=g;this.alphaRange=a},getAgedSymbol:function(f,g){var a=
g.getLayer(),d=g.attributes;f=y.fromJson(f.toJson());var l=a._map.timeExtent;g=l.startTime;l=l.endTime;if(!g||!l)return f;g=g.getTime();l=l.getTime();a=new Date(d[a._startTimeField]);a=a.getTime();a<g&&(a=g);a=l===g?1:(a-g)/(l-g);if(g=this.sizeRange)d=g[0],l=g[1],g=Math.abs(l-d)*a,this._setSymbolSize(f,d<l?d+g:d-g);if(g=this.colorRange){l=g[0];var k=g[1],n=Math.round;d=new b;var h=l.r,c=k.r;g=Math.abs(c-h)*a;d.r=n(h<c?h+g:h-g);h=l.g;c=k.g;g=Math.abs(c-h)*a;d.g=n(h<c?h+g:h-g);h=l.b;c=k.b;g=Math.abs(c-
h)*a;d.b=n(h<c?h+g:h-g);l=l.a;k=k.a;g=Math.abs(k-l)*a;d.a=l<k?l+g:l-g;f.setColor(d)}d=f.color;(g=this.alphaRange)&&d&&(l=g[0],k=g[1],g=Math.abs(k-l)*a,d.a=l<k?l+g:l-g);return f},toJson:function(){var f={};this.sizeRange&&(f.sizeRange=this.sizeRange);this.colorRange&&(f.colorRange=[q.toJsonColor(this.colorRange[0]),q.toJsonColor(this.colorRange[1])]);this.alphaRange&&(f.alphaRange=[Math.round(255*this.alphaRange[0]),Math.round(255*this.alphaRange[1])]);return f}});p("extend-esri")&&u.setObject("renderer.TimeRampAger",
F,e);return F})},"esri/renderers/StretchRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../layers/RasterFunction ./colorRampUtils".split(" "),function(F,u,b,p,e,y,q,m){var f={TYPE_NONE:"none",TYPE_STANDARDDEVIATION:"standardDeviation",TYPE_HISTOGRAMEQUALIZATION:"histogramEqualization",TYPE_MINMAX:"minMax",TYPE_PERCENTCLIP:"percentClip",TYPE_SIGMOID:"sigmoid"};F=F(null,{declaredClass:"esri.renderer.StretchRenderer",constructor:function(g){g=
g||{};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,g);this.colorRamp=m.fromJson(g.colorRamp)},toJson:function(){var g={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 y.fixJson(g)},toRenderingRule:function(g){g=g||{};var a=new q;a.functionName="Stretch";var d=this._convertStretchTypeEnumToIndex(this.stretchType),l={StretchType:d,Statistics:this.statistics,DRA:this.dra,UseGamma:this.useGamma,Gamma:this.gamma,ComputeGamma:this.computeGamma};y.isDefined(this.min)&&
(l.Min=this.min);y.isDefined(this.min)&&(l.Max=this.max);3===d?(l.NumberOfStandardDeviations=this.numberOfStandardDeviations,a.outputPixelType="U8"):6===d?(l.MinPercent=parseFloat(this.minPercent),l.MaxPercent=parseFloat(this.maxPercent),a.outputPixelType="U8"):5===d?a.outputPixelType="U8":9===d&&(l.SigmoidStrengthLevel=this.sigmoidStrengthLevel);a.functionArguments=l;a.variableName="Raster";return this.colorRamp?(d=new q,d.functionArguments=g.convertToColormap?{Colormap:m.convertColorRampToColormap(this.colorRamp,
256)}:{colorRamp:this.colorRamp.toJson()},d.variableName="Raster",d.functionName="Colormap",d.functionArguments.Raster=a,d):a},_convertStretchTypeEnumToIndex:function(g){var a=0;g===f.TYPE_STANDARDDEVIATION?a=3:g===f.TYPE_HISTOGRAMEQUALIZATION?a=4:g===f.TYPE_MINMAX?a=5:g===f.TYPE_PERCENTCLIP?a=6:g===f.TYPE_SIGMOID&&(a=9);return a},_convertStretchTypeIndexToEnum:function(g){var a=f.TYPE_NONE;3===g?a=f.TYPE_STANDARDDEVIATION:4===g?a=f.TYPE_HISTOGRAMEQUALIZATION:5===g?a=f.TYPE_MINMAX:6===g?a=f.TYPE_PERCENTCLIP:
9===g&&(a=f.TYPE_SIGMOID);return a}});b.mixin(F,f);p("extend-esri")&&b.setObject("renderer.StretchRenderer",F,e);return F})},"esri/layers/RasterFunction":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","../lang"],function(F,u,b,p,e){var y=F(null,{declaredClass:"esri.layers.RasterFunction",functionName:null,arguments:null,functionArguments:null,variableName:null,outputPixelType:null,_isTemplate:null,_templateJson:null,constructor:function(q){if(u.isObject(q)){this._isRFTJson(q)&&
(this._isTemplate=!0,this._templateJson=q);var m=0;this.functionName=q.rasterFunction||q.name;this.functionArguments=u.clone(q.rasterFunctionArguments||q.arguments);u.mixin(this,q);if(q=this.functionArguments)if(q.Raster=this._toRasterFunction(q.Raster),q.Raster2=this._toRasterFunction(q.Raster2),q.DEM=this._toRasterFunction(q.DEM),q.FillRaster=this._toRasterFunction(q.FillRaster),q.Rasters&&q.Rasters.length)for(m=0;m<q.Rasters.length;m++)q.Rasters[m]=this._toRasterFunction(q.Rasters[m])}},_isRFTJson:function(q){return q.name&&
q.arguments&&q.function&&q.hasOwnProperty("functionType")},_toRasterFunction:function(q){return q&&(q.rasterFunction||q.functionName)?new y(q):q},_rfToJson:function(q){q&&"esri.layers.RasterFunction"===q.declaredClass&&(q=q.toJson());return q},toJson:function(){if(this._isTemplate)return this._templateJson;var q=u.clone(this.functionArguments||this.arguments);if(q&&(q.Raster=this._rfToJson(q.Raster),q.Raster2=this._rfToJson(q.Raster2),q.DEM=this._rfToJson(q.DEM),q.FillRaster=this._rfToJson(q.FillRaster),
q.Rasters&&q.Rasters.length)){var m,f=[];for(m=0;m<q.Rasters.length;m++)f.push(this._rfToJson(q.Rasters[m]));q.Rasters=f}return e.filter({rasterFunction:this.functionName,rasterFunctionArguments:q,variableName:this.variableName,outputPixelType:this.outputPixelType?this.outputPixelType:null},function(g){if(null!==g&&void 0!==g)return!0})}});b("extend-esri")&&u.setObject("layers.RasterFunction",y,p);return y})},"esri/renderers/colorRampUtils":function(){define("dojo/_base/lang dojo/_base/array dojo/store/Memory ../tasks/AlgorithmicColorRamp ../tasks/MultipartColorRamp ../Color ./colorUtils".split(" "),
function(F,u,b,p,e,y,q){function m(v){if(null==v||"algorithmic"!==v.type&&!v.fromColor)return v;var z=v.declaredClass?new p:F.clone(v);z.fromColor=v.toColor;z.toColor=v.fromColor;z.algorithm=v.algorithm;return z}function f(v){if(null==v)return null;if("multipart"===v.type||v.colorRamps&&0<v.colorRamps.length){var z=v.declaredClass?new e:F.clone(v);z.colorRamps=u.map(v.colorRamps.slice().reverse(),function(C){return m(C)});return z}return m(v)}function g(v,z,C){if(!v)return{id:null,isInverted:!1};
var x=v.name;x&&(v.fromColor||v.colorRamps)&&(v.name=void 0);var E=a(v,z,C);if(E)return x&&(v.name=x),{id:E,isInverted:!1};E=a(v,z,C,!0);x&&(v.name=x);return E?{id:E,isInverted:!0}:x&&(E=a(v,z,C))?{id:E,isInverted:!1}:{id:null,isInverted:!1}}function a(v,z,C,x){if(v){x&&(v=f(v));z=z||h;C=C||c;var E=null;x=v.declaredClass;var B,w;if((B="string"===typeof v?v:v.name)&&u.some(C,function(D){if(D.name===B)return E=D.id,!0})&&E)return E;"esri.tasks.AlgorithmicColorRamp"===x?u.some(z,function(D){if(l(v.fromColor.toRgb(),
D.fromColor)&&l(v.toColor.toRgb(),D.toColor))return E=D.id,!0},this):"esri.tasks.MultipartColorRamp"===x&&u.some(z,function(D){if(v.colorRamps&&D.colorRamps&&v.colorRamps.length===D.colorRamps.length&&(w=v.colorRamps,!u.some(D.colorRamps,function(t,A){if(!l(w[A].fromColor.toRgb(),t.fromColor)||!l(w[A].toColor.toRgb(),t.toColor))return!0},this))){if(E)return!0;E=D.id}},this);return E}}function d(v){var z=new p,C=v.algorithm;z.fromColor=y.toDojoColor(v.fromColor);z.toColor=y.toDojoColor(v.toColor);
C?"esriCIELabAlgorithm"===C?z.algorithm="cie-lab":"esriHSVAlgorithm"===C?z.algorithm="hsv":"esriLabLChAlgorithm"===C&&(z.algorithm="lab-lch"):z.algorithm="hsv";return z}function l(v,z){if(!v||!z)return!1;v=v.slice(0,3);z=z.slice(0,3);return!u.some(v,function(C,x){if(C>z[x]+2||C<z[x]-2)return!0})}function k(v,z,C){v=q.toLAB(v);z=q.toLAB(z);return q.toRGB({l:v.l*(1-C)+C*z.l,a:v.a*(1-C)+C*z.a,b:v.b*(1-C)+C*z.b})}var n={},h=[{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]}],c=[{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"}],r=new b({data:c});F.mixin(n,{predefinedColorRamps:h,predefinedColorRampNameMap:c,getColorRampName:function(v){v=g(v);return v.id?(v=r.query({id:v.id}),v[0]?v[0].name:null):null},fromJson:function(v){var z=null;
if(!v)return z;"multipart"===v.type?(z=new e,z.colorRamps=u.map(v.colorRamps,function(C){return d(C)},this)):"algorithmic"===v.type&&(z=d(v));return z},colorsEqual:l,getColorRampId:g,invertColorRamp:f,convertColorRampToColormap:function(v,z){if(v&&z){var C=v.colorRamps?v.colorRamps.length:1,x=[],E=[],B,w,D,t,A=0,G=0;for(A=0;A<C;A++)x[A]={},x[A].start=G,x[A].end=G+1/C,G=x[A].end;for(A=0;A<z;A++){var J=(A+.5)/z;u.forEach(x,function(U,ja){J>=U.start&&J<U.end&&(t=(J-U.start)/(U.end-U.start),1<x.length?
(B=q.getDojoColor(v.colorRamps[ja].fromColor),w=q.getDojoColor(v.colorRamps[ja].toColor)):(B=q.getDojoColor(v.fromColor),w=q.getDojoColor(v.toColor)),D=k(B,w,t),E.push([A,D.r,D.g,D.b]))},this)}return E}},interpolateLabColor:k});return n})},"dojo/store/Memory":function(){define(["../_base/declare","./util/QueryResults","./util/SimpleQueryEngine"],function(F,u,b){return F("dojo.store.Memory",null,{constructor:function(p){for(var e in p)this[e]=p[e];this.setData(this.data||[])},data:null,idProperty:"id",
index:null,queryEngine:b,get:function(p){return this.data[this.index[p]]},getIdentity:function(p){return p[this.idProperty]},put:function(p,e){var y=this.data,q=this.index,m=this.idProperty;m=p[m]=e&&"id"in e?e.id:m in p?p[m]:Math.random();var f=y.length,g,a=m in q?"update":"add";if("update"===a){if(e&&!1===e.overwrite)throw Error("Object already exists");f=g=q[m]}e&&"before"in e?null==e.before?(e=y.length,"update"===a&&--e):(e=q[this.getIdentity(e.before)],g<e&&--e):e=f;e===g?y[e]=p:(void 0!==g&&
y.splice(g,1),y.splice(e,0,p),this._rebuildIndex(void 0===g?e:Math.min(g,e)));return m},add:function(p,e){(e=e||{}).overwrite=!1;return this.put(p,e)},remove:function(p){var e=this.index,y=this.data;if(p in e)return y.splice(e[p],1),this.index={},this._rebuildIndex(),!0},query:function(p,e){return u(this.queryEngine(p,e)(this.data))},setData:function(p){p.items?(this.idProperty=p.identifier||this.idProperty,p=this.data=p.items):this.data=p;this.index={};this._rebuildIndex()},_rebuildIndex:function(p){var e=
this.data,y=e.length;for(p=p||0;p<y;p++)this.index[e[p][this.idProperty]]=p}})})},"dojo/store/util/QueryResults":function(){define(["../../_base/array","../../_base/lang","../../when"],function(F,u,b){var p=function(e){function y(m){e[m]=function(){var f=arguments,g=b(e,function(a){Array.prototype.unshift.call(f,a);return p(F[m].apply(F,f))});if("forEach"!==m||q)return g}}if(!e)return e;var q=!!e.then;q&&(e=u.delegate(e));y("forEach");y("filter");y("map");null==e.total&&(e.total=b(e,function(m){return m.length}));
return e};u.setObject("dojo.store.util.QueryResults",p);return p})},"dojo/store/util/SimpleQueryEngine":function(){define(["../../_base/array"],function(F){return function(u,b){function p(y){y=F.filter(y,u);var q=b&&b.sort;q&&y.sort("function"==typeof q?q:function(f,g){for(var a,d=0;a=q[d];d++){var l=f[a.attribute],k=g[a.attribute];l=null!=l?l.valueOf():l;k=null!=k?k.valueOf():k;if(l!=k)return!!a.descending==(null==l||l>k)?-1:1}return 0});if(b&&(b.start||b.count)){var m=y.length;y=y.slice(b.start||
0,(b.start||0)+(b.count||Infinity));y.total=m}return y}switch(typeof u){default:throw Error("Can not query with a "+typeof u);case "object":case "undefined":var e=u;u=function(y){for(var q in e){var m=e[q];if(m&&m.test){if(!m.test(y[q],y))return!1}else if(m!=y[q])return!1}return!0};break;case "string":if(!this[u])throw Error("No filter function "+u+" was found in store");u=this[u];case "function":}p.matches=u;return p}})},"esri/tasks/AlgorithmicColorRamp":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../Color ./ColorRamp".split(" "),
function(F,u,b,p,e,y){F=F(y,{declaredClass:"esri.tasks.AlgorithmicColorRamp",type:"algorithmic",fromColor:null,toColor:null,algorithm:null,toJson:function(){switch(this.algorithm&&this.algorithm.toLowerCase()){case "cie-lab":var q="esriCIELabAlgorithm";break;case "hsv":q="esriHSVAlgorithm";break;case "lab-lch":q="esriLabLChAlgorithm"}q={type:"algorithmic",algorithm:q};q.fromColor=e.toJsonColor(this.fromColor);q.toColor=e.toJsonColor(this.toColor);return q}});b("extend-esri")&&u.setObject("tasks.AlgorithmicColorRamp",
F,p);return F})},"esri/tasks/ColorRamp":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(F,u,b,p){F=F(null,{declaredClass:"esri.tasks.ColorRamp",type:null});b("extend-esri")&&u.setObject("tasks.ColorRamp",F,p);return F})},"esri/tasks/MultipartColorRamp":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../symbols/Symbol ./ColorRamp".split(" "),function(F,u,b,p,e,y){F=F(y,{declaredClass:"esri.tasks.MultipartColorRamp",
type:"multipart",constructor:function(){this.colorRamps=[]},addColorRamp:function(q){this.colorRamps.push(q)},toJson:function(){return{type:"multipart",colorRamps:b.map(this.colorRamps,function(q){return q.toJson()})}}});p("extend-esri")&&u.setObject("tasks.MultipartColorRamp",F,e);return F})},"esri/renderers/colorUtils":function(){define(["dojo/_base/Color","dojo/_base/array"],function(F,u){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(e,y){var q=[],m,f;if(e[0].length!==y.length)throw"dimensions do not match";var g=e.length,a=e[0].length,d=0;for(m=0;m<g;m++){for(f=d=0;f<a;f++)d+=e[m][f]*y[f];q.push(d)}return q},rgb2xyz:function(e){e=[e.r/255,e.g/255,e.b/255].map(function(y){return.04045>=y?y/12.92:Math.pow((y+.055)/1.055,2.4)});e=this.matrixProduct(this.COEF_RGB2XYZ,e);return{x:100*e[0],y:100*e[1],z:100*e[2]}},xyz2rgb:function(e){e=this.matrixProduct(this.COEF_XYZ2RGB,
[e.x/100,e.y/100,e.z/100]).map(function(y){return Math.min(1,Math.max(.0031308>=y?12.92*y:1.055*Math.pow(y,1/2.4)-.055,0))});return{r:Math.round(255*e[0]),g:Math.round(255*e[1]),b:Math.round(255*e[2])}},xyz2lab:function(e){e=[e.x/95.047,e.y/100,e.z/108.883].map(function(y){return y>Math.pow(6/29,3)?Math.pow(y,1/3):1/3*Math.pow(29/6,2)*y+4/29});return{l:116*e[1]-16,a:500*(e[0]-e[1]),b:200*(e[1]-e[2])}},lab2xyz:function(e){var y=e.l;e=[(y+16)/116+e.a/500,(y+16)/116,(y+16)/116-e.b/200].map(function(q){return q>
6/29?Math.pow(q,3):3*Math.pow(6/29,2)*(q-4/29)});return{x:95.047*e[0],y:100*e[1],z:108.883*e[2]}},lab2lch:function(e){var y=e.l,q=e.a,m=e.b;e=Math.sqrt(q*q+m*m);q=Math.atan2(m,q);q=0<q?q:q+2*Math.PI;return{l:y,c:e,h:q}},lch2lab:function(e){var y=e.c,q=e.h;return{l:e.l,a:y*Math.cos(q),b:y*Math.sin(q)}},rgb2lab:function(e){return this.xyz2lab(this.rgb2xyz(e))},lab2rgb:function(e){return this.xyz2rgb(this.lab2xyz(e))},rgb2lch:function(e){return this.lab2lch(this.xyz2lab(this.rgb2xyz(e)))},lch2rgb:function(e){return this.xyz2rgb(this.lab2xyz(this.lch2lab(e)))}},
p={rgb2hsv:function(e){var y=e.r,q=e.g;e=e.b;var m=Math.max(y,q,e),f=m-Math.min(y,q,e),g;0===f?g=0:m===y?g=(q-e)/f%6:m===q?g=(e-y)/f+2:m===e&&(g=(y-q)/f+4);0>g&&(g+=6);return{h:60*g,s:100*(0===f?0:f/m),v:100/255*m}},hsv2rgb:function(e){var y=(e.h+360)%360/60,q=e.v/100*255;e=e.s/100*q;var m=e*(1-Math.abs(y%2-1));switch(Math.floor(y)){case 0:y={r:e,g:m,b:0};break;case 1:y={r:m,g:e,b:0};break;case 2:y={r:0,g:e,b:m};break;case 3:y={r:0,g:m,b:e};break;case 4:y={r:m,g:0,b:e};break;case 5:case 6:y={r:e,
g:0,b:m};break;default:y={r:0,g:0,b:0}}y.r=Math.round(y.r+q-e);y.g=Math.round(y.g+q-e);y.b=Math.round(y.b+q-e);return y}};return{toRGB:function(e){var y;void 0!==e.r&&void 0!==e.g&&void 0!==e.b?y=e:void 0!==e.l&&void 0!==e.c&&void 0!==e.h?y=b.lch2rgb(e):void 0!==e.l&&void 0!==e.a&&void 0!==e.b?y=b.lab2rgb(e):void 0!==e.x&&void 0!==e.y&&void 0!==e.z?y=b.xyz2rgb(e):void 0!==e.h&&void 0!==e.s&&void 0!==e.v&&(y=p.hsv2rgb(e));return y},toHSV:function(e){if(void 0!==e.h&&void 0!==e.s&&void 0!==e.v)return e;
e=this.toRGB(e);return p.rgb2hsv(e)},toLAB:function(e){return void 0!==e.l&&void 0!==e.a&&void 0!==e.b?e:b.rgb2lab(this.toRGB(e))},toLCH:function(e){return void 0!==e.l&&void 0!==e.c&&void 0!==e.h?e:b.rgb2lch(this.toRGB(e))},toXYZ:function(e){return void 0!==e.x&&void 0!==e.y&&void 0!==e.z?e:b.rgb2xyz(this.toRGB(e))},getDojoColor:function(e){if(e){if(Array.isArray(e))return F.fromArray(e);if(void 0!==e.r&&void 0!==e.g&&void 0!==e.b)return e}},correctRGBLimits:function(e){var y=[e.r,e.g,e.b];u.forEach(y,
function(q,m){0>y[m]?y[m]=0:255<y[m]&&(y[m]=255);y[m]=Math.floor(y[m])});return{r:y[0],g:y[1],b:y[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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r,v,z){var C={createDefaultRenderer:function(x){x=q.createDefaultSymbol(x);return new m(x)},fromJson:function(x,E){switch(x.type||""){case "simple":x=new m(x,E);break;case "uniqueValue":x=new f(x,null,null,null,null,E);break;case "classBreaks":x=new g(x,null,E);break;case "vectorField":x=new a(x);break;case "scaleDependent":x=this._scaleDependentFromJson(x);break;case "dotDensity":x=x.attributes?C.createDefaultRenderer("esriGeometryPolygon"):this._dotDensityFromJson(x);
break;case "temporal":x=this._temporalFromJson(x,E);break;case "heatmap":x=this._heatmapFromJson(x);break;case "rasterStretch":x=new r(x);break;case "rasterShadedRelief":x=new v(x);break;case "rasterColormap":x=new z(x);break;default:x=(x=E&&E.geometryType)?C.createDefaultRenderer(x):null}return x},_scaleDependentFromJson:function(x){var E={},B=x.minScale;E.rendererInfos=F.map(x.rendererInfos,function(w){var D=w.maxScale;w={minScale:B,maxScale:D,renderer:w.renderer&&this.fromJson(w.renderer)};B=D;
return w},this);return new l(E)},_dotDensityFromJson:function(x){x.backgroundColor&&u.isArray(x.backgroundColor)&&(x.backgroundColor=y.toDojoColor(x.backgroundColor));0<x.dotSize&&(x.dotSize=p.pt2px(x.dotSize));x.fields&&F.forEach(x.fields,function(E){E&&u.isArray(E.color)&&(E.color=y.toDojoColor(E.color))});x.legendOptions&&(x.legendOptions.backgroundColor&&u.isArray(x.legendOptions.backgroundColor)&&(x.legendOptions.backgroundColor=y.toDojoColor(x.legendOptions.backgroundColor)),x.legendOptions.outline&&
(x.legendOptions.outline=q.fromJson(x.legendOptions.outline)));x.outline&&(x.outline=q.fromJson(x.outline));return new d(x)},_temporalFromJson:function(x,E){var B=E&&E.geometryType;x=x||{};var w=this.fromJson(x.observationRenderer,E);E=x.latestObservationRenderer?this.fromJson(x.latestObservationRenderer,E):null;B=x.trackRenderer?this.fromJson(x.trackRenderer,B?{geometryType:"esriGeometryPolyline"}:null):null;x=this._agerFromJson(x.observationAger);return new h(w,E,B,x)},_agerFromJson:function(x){var E;
x=x||{};x.colorRange||x.sizeRange||x.alphaRange?E=this._timeRampFromJson(x):x.agerClassBreakInfos&&(E=this._timeClassBreaksFromJson(x));return E},_timeRampFromJson:function(x){var E,B,w;x.colorRange&&1<x.colorRange.length&&(E=[y.toDojoColor(x.colorRange[0]),y.toDojoColor(x.colorRange[1])]);x.sizeRange&&1<x.sizeRange.length&&(B=[x.sizeRange[0],x.sizeRange[1]]);x.alphaRange&&1<x.alphaRange.length&&(w=[x.alphaRange[0]/255,x.alphaRange[1]/255]);return new n(E,B,w)},_timeClassBreaksFromJson:function(x){var E=
x.agerClassBreakInfos,B=[],w;var D=k.UNIT_DAYS;switch(x.timeUnits){case "esriTimeUnitsSeconds":D=k.UNIT_SECONDS;break;case "esriTimeUnitsMilliseconds":D=k.UNIT_MILLISECONDS;break;case "esriTimeUnitsHours":D=k.UNIT_HOURS;break;case "esriTimeUnitsMinutes":D=k.UNIT_MINUTES;break;case "esriTimeUnitsMonths":D=k.UNIT_MONTHS;break;case "esriTimeUnitsWeeks":D=k.UNIT_WEEKS;break;case "esriTimeUnitsYears":D=k.UNIT_YEARS}for(w=0;w<E.length;w+=1){x=E[w];var t={minAge:0,maxAge:x.oldestAge||Infinity};x.color&&
(t.color=y.toDojoColor(x.color));x.alpha&&(t.alpha=x.alpha/255);t.size=x.size;B[w]=t}return new k(B,D)},_heatmapFromJson:function(x){var E=x.colorStops;E&&E instanceof Array&&F.forEach(E,function(B){B.color=y.toDojoColor(B.color)});return new c(x)}};b("extend-esri")&&u.mixin(u.getObject("renderer",!0,e),C);return C})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l,k){var n={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"},h=F(m,{declaredClass:"esri.renderer.VectorFieldRenderer",iconFolderPath:"../images/symbol/sfs/",
constructor:function(c){y.isDefined(c)||(c={});c.attributeField=c.attributeField||"Magnitude";c.rotationInfo=c.rotationInfo||this._getRotationInfo(c);F.safeMixin(this,c);this.setRotationInfo(this.rotationInfo);this.style=this.style||h.STYLE_SINGLE_ARROW;this.singleArrowSymbol&&(this.singleArrowSymbol=this.singleArrowSymbol.declaredClass?this.singleArrowSymbol:l.fromJson(this.singleArrowSymbol));this.renderer=new f(this._getDefaultSymbol(),c.attributeField);this._updateRenderer(this.style);this.flowRepresentation=
this.flowRepresentation||this.FLOW_FROM},getSymbol:function(c){return this.renderer&&this.renderer.getSymbol(c)},setVisualVariables:function(c){c=p.filter(c,function(r){if("sizeInfo"===r.type)return y.isDefined(this._updateSizeInfo(r))},this);this.inherited(arguments);return this},setSizeInfo:function(c){this._updateSizeInfo(c);this.inherited(arguments);return this},setProportionalSymbolInfo:function(c){this.setSizeInfo(c);return this},setColorInfo:function(c){return this},_updateRenderer:function(c){return y.isDefined(this.renderer)?
c===h.STYLE_SINGLE_ARROW?this._createSingleArrowRenderer():c===h.STYLE_BEAUFORT_KN?this._createBeaufortKnotsRenderer():c===h.STYLE_BEAUFORT_METER?this._createBeaufortMeterRenderer():c===h.STYLE_BEAUFORT_FEET?this._createBeaufortFeetRenderer():c===h.STYLE_BEAUFORT_MILE?this._createBeaufortMilesRenderer():c===h.STYLE_BEAUFORT_KM?this._createBeaufortKilometersRenderer():c===h.STYLE_OCEAN_CURRENT_M?this._createCurrentMeterRenderer():c===h.STYLE_OCEAN_CURRENT_KN?this._createCurrentKnotsRenderer():c===
h.STYLE_SCALAR?this._createSimpleScalarRenderer():c===h.STYLE_WIND_BARBS?this._createWindBarbsRenderer():this._createClassifiedArrowRenderer():Error("Invalid Renderer!")},_updateSizeInfo:function(c){return c&&y.isDefined(c.minSize)&&y.isDefined(c.maxSize)&&y.isDefined(c.minDataValue)&&y.isDefined(c.maxDataValue)?(this.style===h.STYLE_WIND_BARBS&&(c.minSize=c.maxSize),c.field=c.field||"Magnitude",c.type="sizeInfo",this.minDataValue=c.minDataValue,this.maxDataValue=c.maxDataValue,c):null},_createClassifiedArrowRenderer:function(){this.renderer.defaultSymbol=
this._getDefaultSymbol(new q([56,168,0]));var c=[0,1E-6,3.5,7,10.5,14];if(y.isDefined(this.minDataValue)&&y.isDefined(this.maxDataValue)){var r=(this.maxDataValue-this.minDataValue)/5;c=[];var v;var z=this.minDataValue;for(v=0;6>v;v++)c[v]=z,z+=r}this._addBreaks(c,[[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 q([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 q([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 c=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];p.forEach(c,function(r,v){c[v]*=3.28084});this.renderer.defaultSymbol=this._getDefaultSymbol(new q([214,47,39]));this._addBreaks(c,[[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 c=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];p.forEach(c,function(r,v){c[v]*=2.23694});this.renderer.defaultSymbol=this._getDefaultSymbol(new q([214,47,39]));this._addBreaks(c,[[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 c=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,
28.6,32.7];p.forEach(c,function(r,v){c[v]*=3.6});this.renderer.defaultSymbol=this._getDefaultSymbol(new q([214,47,39]));this._addBreaks(c,[[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 q([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 q([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:k.toUrl(this.iconFolderPath+"scalar.png"),height:20,width:20,type:"esriPMS",angle:0})},_createWindBarbsRenderer:function(){var c=[],r;for(r=0;150>=r;r+=5)c.push(r);
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 z=new a({url:k.toUrl(this.iconFolderPath+"windbarb.png"),height:20,width:20,type:"esriPMS",angle:0});this.renderer.defaultSymbol=z;for(r=0;r<c.length-1;r++)0===r?this.renderer.addBreak({minValue:c[r],maxValue:c[r+1],symbol:z}):this.renderer.addBreak({minValue:c[r],maxValue:c[r+1],symbol:(new g).setPath(v[r]).setOutline((new d).setWidth(1.5)).setSize(20).setColor(new q([0,0,0,255]))})},_getDefaultSymbol:function(c){return(new g).setPath("M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z").setOutline((new d).setWidth(0)).setSize(20).setColor(c||
new q([0,92,230]))},_getRotationInfo:function(c){var r=c&&c.rotationField||"Direction",v=(c&&c.flowRepresentation||h.FLOW_FROM)===h.FLOW_FROM;!c.style||c.style!==n.STYLE_OCEAN_CURRENT_KN&&c.style!==n.STYLE_OCEAN_CURRENT_M||(v=!v);return{field:function(z){z=z.attributes[r];return v?z:z+180},type:"geographic"}},_addBreaks:function(c,r){if(!y.isDefined(this.renderer))return Error("Invalid Renderer!");if(!(c&&r&&c.length&&r.length&&c.length>=r.length))return Error("AddBreaks: Input arguments break values and colors not valid");
var v;for(v=0;v<r.length;v++)this.renderer.addBreak({minValue:c[v],maxValue:c[v+1],symbol:this._getDefaultSymbol(new q(r[v]))})},toJson:function(){var c=u.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===h.STYLE_SINGLE_ARROW&&(c.singleArrowSymbol=this.renderer.defaultSymbol.toJson());
return y.fixJson(c)}});u.mixin(h,n,{FLOW_FROM:"flow_from",FLOW_TO:"flow_to"});b("extend-esri")&&u.setObject("renderer.VectorFieldRenderer",h,e);return h})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l){F=F(g,{declaredClass:"esri.renderer.DotDensityRenderer",
constructor:function(k){this.dotSize=k.dotSize||3;this.dotValue=k.dotValue;this.fields=k.fields;this.outline=k.outline;this.backgroundColor=k.backgroundColor;this.exactCount=k.exactCount||!0;this.dotShape=k.dotShape||"square";this.legendOptions=k.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(k){this._currentGraphic=k;if(!this._supportsCanvas)return null;this._map||(this._map=k.getLayer()._map,this._objectIdField=k.getLayer().objectIdField,this._currentMapScale=this._map.getScale(),this._currentResolution=this._map.extent.getWidth()/this._map.width,this._map.on("zoom-end",u.hitch(this,function(c){this._currentMapScale=this._map.getScale();this._currentResolution=
c.extent.getWidth()/this._map.width;this._symbolMap[this._currentMapScale]={}})));if(this._symbolMap[this._currentMapScale]&&this._symbolMap[this._currentMapScale][k.attributes[this._objectIdField]]){var n=this._symbolMap[this._currentMapScale][k.attributes[this._objectIdField]];var h=this._getShapeProperties(k);n.setOffset(h.dx,h.dy);return n}n=this._generateFieldsCount(this.fields,k.attributes,this.dotValue);h=this._getShapeProperties(k);if(!h.width||!h.height)return null;n=new a(this._generateImageSrc(h.width,
h.height,n,h.minXY,h.maxXY),this.outline,h.width,h.height);n.setOffset(h.dx,h.dy);this._symbolMap[this._currentMapScale]||(this._symbolMap[this._currentMapScale]={});return this._symbolMap[this._currentMapScale][k.attributes[this._objectIdField]]=n},_generateFieldsCount:function(k,n,h){var c;for(c=k.length-1;0<=c;c--){var r=n[k[c].name]/h;k[c].numPoints=Math.round(r)}return k},_getShapeProperties:function(k){var n=k.geometry.getExtent();n.contains(this._map.extent)&&(n=this._map.extent);var h=Math.ceil(n.getWidth()/
this._currentResolution);var c=Math.ceil(n.getHeight()/this._currentResolution);var r=this._map.toScreen(new l(n.xmin,n.ymin,n.spatialReference));n=this._map.toScreen(new l(n.xmax,n.ymax,n.spatialReference));k=k.getLayer().getNavigationTransform();return{minXY:r,maxXY:n,dx:(r.x-k.dx)%h,dy:(n.y-k.dy)%c,width:h,height:c}},_generateImageSrc:function(k,n,h,c,r,v){var z=this.dotSize,C;this._canvas?(this._canvas.width=k,this._canvas.height=n):this._canvas=this._initCanvas(k,n);var x=this._canvas.getContext("2d");
if(v=v||this.backgroundColor)x.fillStyle=v.toCss(!0),x.fillRect(0,0,k,n),x.fill();for(v=h.length-1;0<=v;v--)for(x.fillStyle=h[v].color.toCss(!0),C=h[v].numPoints-1;0<=C;C--){var E=this._getRandomPoint(k,n,c,r);"square"===this.dotShape?x.fillRect(E.x,E.y,z,z):"circle"===this.dotShape&&(x.beginPath(),x.arc(E.x,E.y,z/2,0,2*Math.PI,!0));x.fill()}return this._canvas.toDataURL()},_initCanvas:function(k,n){k=p.create("canvas",{id:"canvas",width:k+"px",height:n+"px",style:"position: absolute; left: -10000px; top: 0px;"},
null);document.body.appendChild(k);return k},_getRandomInt:function(k,n){return Math.floor(Math.random()*(n-k+1)+k)},_getRandomPoint:function(k,n,h,c){var r={},v=this.outline&&this.outline.width?this.outline.width:0;if(!0===this.exactCount&&k*n>this._exactCountMinArea){k=!1;do r.x=this._getRandomInt(h.x,c.x),r.y=this._getRandomInt(c.y,h.y),k=new d(r.x,r.y),k=this._checkPointShapeBounds(k,this.dotSize+v,this._currentGraphic.geometry),!0===k&&(r.x-=h.x,r.y-=c.y);while(!1===k)}else r.x=this._getRandomInt(0,
k),r.y=this._getRandomInt(0,n);return r},_checkPointShapeBounds:function(k,n,h){var c=null;c=!1;var r=!0,v=0;do{switch(v){case 1:k.x+=n;break;case 2:k.y+=n;break;case 3:k.x-=n}c=this._map.toMap(k);c=h.contains(c);!1===c&&(r=!1);v+=1}while(3>=v&&!0===r);return c},setDotSize:function(k){0<k&&(this.dotSize=k)},setDotValue:function(k){0<k&&(this.dotValue=k)},setOutline:function(k){this.outline=k},setBackgroundColor:function(k){this.backgroundColor=k},toJson:function(){var k=u.mixin(this.inherited(arguments),
{type:"dotDensity",backgroundColor:f.toJsonColor(this.backgroundColor),dotShape:this.dotShape,dotSize:0<this.dotSize?y.px2pt(this.dotSize):0,dotValue:this.dotValue,fields:b.map(this.fields,function(n){return m.fixJson({color:f.toJsonColor(n.color),name:n.name})}),legendOptions:this.legendOptions&&m.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 m.fixJson(k)}});e("extend-esri")&&u.setObject("renderer.DotDensityRenderer",F,q);return F})},"esri/renderers/ScaleDependentRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ./Renderer".split(" "),function(F,u,b,p,e,y,q){F=F(q,{declaredClass:"esri.renderer.ScaleDependentRenderer",constructor:function(m){this.setRendererInfos(m&&m.rendererInfos||[])},setRendererInfos:function(m){this.rendererInfos=
m;this._setRangeType();return this},getSymbol:function(m){var f=this.getRendererInfo(m);return f&&f.renderer&&f.renderer.getSymbol(m)},getRendererInfo:function(m){m=m.getLayer().getMap();return"zoom"===this.rangeType?this.getRendererInfoByZoom(m.getZoom()):this.getRendererInfoByScale(m.getScale())},getRendererInfoByZoom:function(m){var f=this.rendererInfos,g,a=0;do{var d=f[a];m>=d.minZoom&&m<=d.maxZoom&&(g=d);a++}while(!g&&a<f.length);return g},getRendererInfoByScale:function(m){var f=this.rendererInfos,
g,a=0;do{var d=f[a];var l=d.minScale;var k=d.maxScale;var n=!l;var h=!k;!n&&m<=l&&(n=!0);!h&&m>=k&&(h=!0);n&&h&&(g=d);a++}while(!g&&a<f.length);return g},addRendererInfo:function(m){var f=0,g=this.rendererInfos,a=m.hasOwnProperty("minZoom")?"minZoom":"minScale",d=g.length;do{var l=g[f];if(d===f||m[a]<l[a]){g.splice(f,0,m);this._setRangeType();var k=!0}f++}while(!k&&f<d);return this},_setRangeType:function(){var m=this.rendererInfos;if(m=m&&m[0])this.rangeType=m.hasOwnProperty("minZoom")?"zoom":m.hasOwnProperty("minScale")?
"scale":""},toJson:function(){if("zoom"===this.rangeType)return null;var m=this.rendererInfos||[],f=m[0]&&m[0].minScale;m=b.mixin(this.inherited(arguments),{type:"scaleDependent",minScale:0<f?f:0,rendererInfos:u.map(m,function(g){return y.fixJson({maxScale:0<g.maxScale?g.maxScale:0,renderer:g.renderer&&g.renderer.toJson()})})});return y.fixJson(m)}});p("extend-esri")&&b.setObject("renderer.ScaleDependentRenderer",F,e);return F})},"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(F,u,b,p,e,y,q,m,f,g){F=F([g],{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)),u.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 l=this._getContext(a[0],a[1]),k=l.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&&k.data instanceof window.CanvasPixelArray)for(var n=k.data,h=n.length;h--;)n[h]=d[h];else k.data.set(d);l.putImageData(k,0,0);return new m(l.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=u.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 q.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 l=p.create("canvas",{id:"hm_canvas-"+Math.floor(1E3*Math.random()),style:"position: absolute; left: 0px; top: -10000px;"},null);l.width=a;l.height=d;document.body.appendChild(l);return l},_generateGradient:function(a,d){d||(d=512);a=this._colorsToStops(a);for(var l=this._getContext(1,d||512),k=l.createLinearGradient(0,0,0,d),n=0,h;n<a.length;n++)h=a[n],k.addColorStop(h.ratio,h.color.toCss(!0));l.fillStyle=k;l.fillRect(0,0,1,d);return l.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(r){return{ratio:r.ratio,color:this._toColor(r.color)}},this);else if(null!=a[0].value){var l=Infinity;d=-Infinity;var k=0,n;for(n=0;n<a.length;n++){var h=a[n].value;h<l&&(l=h);h>d&&(d=h)}k=d-l;this.maxPixelIntensity=d;this.minPixelIntensity=l;d=b.map(a,function(r){var v=r.value;r=this._toColor(r.color);return{value:v,ratio:(v-l)/k,color:r}},this)}else{var c=a.length-1;d=b.map(a,function(r,v){return{color:this._toColor(r),ratio:v/c}},this)}return d},
_toColor:function(a){a.toRgba||a.declaredClass||(a=new f(a));return a}});e("extend-esri")&&u.setObject("renderer.HeatmapRenderer",F,y);return F})},"esri/renderers/ShadedReliefRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../layers/RasterFunction ./colorRampUtils".split(" "),function(F,u,b,p,e,y,q,m){F=F(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=m.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 y.fixJson(f)},toRenderingRule:function(f){}});p("extend-esri")&&b.setObject("renderer.ShadedReliefRenderer",F,e);return F})},"esri/renderers/ColormapRenderer":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ../kernel ../lang ../symbols/jsonUtils ./Renderer ./arcadeUtils".split(" "),function(F,u,b,p,e,y,q,m,f){F=
F(m,{declaredClass:"esri.renderer.ColormapRenderer",constructor:function(g){this.colormapInfos=g&&g.colormapInfos},toJson:function(){var g=y.fixJson;var a={type:"rasterColormap",colormapInfos:u.map(this.colormapInfos||[],function(d,l){var k={};d.color&&null!==d.color&&3<=d.color.length&&(k.color=d.color,k.value=d.value||l,k.label=(d.label||l)+"");return g(k)})};a=b.mixin(this.inherited(arguments),a);return g(a)}});p("extend-esri")&&b.setObject("renderer.ColormapRenderer",F,e);return F})},"esri/renderers/arcadeUtils":function(){define(["dojo/_base/lang",
"dojo/has","../kernel","../support/expressionUtils"],function(F,u,b,p){u("extend-esri")&&F.setObject("renderer.arcadeUtils",p,b);return p})},"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(F,u,b,p,e){var y={graphicsExtent:function(q){if(!q||
!q.length)return null;var m=null,f,g=q.length;for(f=0;f<g;f++){var a=q[f].geometry;if(a){var d=a.getExtent();d||"point"!==a.type||null==a.x||null==a.y||(d=new e(a.x,a.y,a.x,a.y,a.spatialReference));d&&(m=m?m.union(d):d)}}return 0>m.getWidth()&&0>m.getHeight()?null:m},getGeometries:function(q){return u.map(q,function(m){return m.geometry})},_encodeGraphics:function(q,m){return u.map(q,function(f,g){f=f.toJson();var a={};f.geometry&&(g=m&&m[g],a.geometry=g&&g.toJson()||f.geometry);f.attributes&&(a.attributes=
f.attributes);return a})}};b("extend-esri")&&F.mixin(p,y);return y})},"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(F,u,b,p,e){F=F([e],{declaredClass:"esri.layers.InheritedDomain"});b("extend-esri")&&u.setObject("layers.InheritedDomain",F,p);return F})},"esri/layers/LayerSource":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(F,u,b,p){F=F(null,{declaredClass:"esri.layers.LayerSource",type:null,constructor:function(e){e&&
u.mixin(this,e)},toJson:function(){}});b("extend-esri")&&u.setObject("layers.LayerSource",F,p);return F})},"esri/layers/LayerMapSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./LayerSource".split(" "),function(F,u,b,p,e,y){F=F(y,{declaredClass:"esri.layers.LayerMapSource",type:"mapLayer",toJson:function(){return e.fixJson({type:"mapLayer",mapLayerId:this.mapLayerId,gdbVersion:this.gdbVersion})}});b("extend-esri")&&u.setObject("layers.LayerMapSource",F,p);
return F})},"esri/layers/LayerDataSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./LayerSource ./TableDataSource ./QueryDataSource ./JoinDataSource ./RasterDataSource".split(" "),function(F,u,b,p,e,y,q,m,f,g){F=F(y,{declaredClass:"esri.layers.LayerDataSource",type:"dataLayer",constructor:function(a){if(a&&a.dataSource){switch(a.dataSource.type){case "table":a=new q(a.dataSource);break;case "queryTable":a=new m(a.dataSource);break;case "joinTable":a=new f(a.dataSource);
break;case "raster":a=new g(a.dataSource);break;default:a=a.dataSource}this.dataSource=a}},toJson:function(){var a={type:"dataLayer",dataSource:this.dataSource&&this.dataSource.toJson()};return e.fixJson(a)}});b("extend-esri")&&u.setObject("layers.LayerDataSource",F,p);return F})},"esri/layers/TableDataSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./DataSource".split(" "),function(F,u,b,p,e,y){F=F(y,{declaredClass:"esri.layers.TableDataSource",toJson:function(){return e.fixJson({type:"table",
workspaceId:this.workspaceId,dataSourceName:this.dataSourceName,gdbVersion:this.gdbVersion})}});b("extend-esri")&&u.setObject("layers.TableDataSource",F,p);return F})},"esri/layers/DataSource":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel"],function(F,u,b,p){F=F(null,{declaredClass:"esri.layers.DataSource",constructor:function(e){e&&u.mixin(this,e)},toJson:function(){}});b("extend-esri")&&u.setObject("layers.DataSource",F,p);return F})},"esri/layers/QueryDataSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./DataSource ../SpatialReference".split(" "),
function(F,u,b,p,e,y,q){F=F(y,{declaredClass:"esri.layers.QueryDataSource",constructor:function(m){m&&(m.oidFields&&u.isString(m.oidFields)&&(this.oidFields=m.oidFields.split(",")),m.spatialReference&&(this.spatialReference=new q(m.spatialReference)))},toJson:function(){var m={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;m.geometryType=f}return e.fixJson(m)}});b("extend-esri")&&u.setObject("layers.QueryDataSource",F,p);return F})},"esri/layers/JoinDataSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./DataSource ./LayerMapSource ./TableDataSource ./QueryDataSource ./RasterDataSource".split(" "),
function(F,u,b,p,e,y,q,m,f,g){var a=F(y,{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 l=new q(d);else{l={type:"dataLayer"};switch(d.dataSource.type){case "table":var k=new m(d.dataSource);break;case "queryTable":k=new f(d.dataSource);break;case "joinTable":k=
new a(d.dataSource);break;case "raster":k=new g(d.dataSource);break;default:k=d.dataSource}l.dataSource=k;l.toJson=function(){var n={type:"dataLayer",dataSource:k.toJson()};return e.fixJson(n)}}return l},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 l="left-outer-join"===this.joinType.toLowerCase()?
"esriLeftOuterJoin":"left-inner-join"===this.joinType.toLowerCase()?"esriLeftInnerJoin":this.joinType;d.joinType=l;return e.fixJson(d)}});b("extend-esri")&&u.setObject("layers.JoinDataSource",a,p);return a})},"esri/layers/RasterDataSource":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./DataSource".split(" "),function(F,u,b,p,e,y){F=F(y,{declaredClass:"esri.layers.RasterDataSource",toJson:function(){return e.fixJson({type:"raster",workspaceId:this.workspaceId,dataSourceName:this.dataSourceName})}});
b("extend-esri")&&u.setObject("layers.RasterDataSource",F,p);return F})},"esri/layers/DynamicLayerInfo":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ./LayerInfo ./LayerMapSource ./LayerDataSource".split(" "),function(F,u,b,p,e,y,q,m){F=F(y,{declaredClass:"esri.layers.DynamicLayerInfo",defaultVisibility:!0,parentLayerId:-1,maxScale:0,minScale:0,constructor:function(f){f&&(f.source?f="mapLayer"===f.source.type?new q(f.source):new m(f.source):(f=new q,f.mapLayerId=
this.id),this.source=f)},toJson:function(){var f=this.inherited(arguments);f.source=this.source&&this.source.toJson();return e.fixJson(f)}});b("extend-esri")&&u.setObject("layers.DynamicLayerInfo",F,p);return F})},"esri/layers/LayerDrawingOptions":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/has ../kernel ../lang ../renderers/jsonUtils ./LabelClass".split(" "),function(F,u,b,p,e,y,q,m){F=F(null,{declaredClass:"esri.layers.LayerDrawingOptions",constructor:function(f){if(f&&
(u.mixin(this,f),f.renderer&&(this.renderer=q.fromJson(f.renderer)),f.labelingInfo&&0<f.labelingInfo.length)){this.labelingInfo=[];var g;b.forEach(f.labelingInfo,function(a){g=new m(a);this.labelingInfo.push(g)},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(g){f.labelingInfo.push(g.toJson())}));
return y.fixJson(f)}});p("extend-esri")&&u.setObject("layers.LayerDrawingOptions",F,e);return F})},"esri/layers/LabelClass":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ../lang ../symbols/TextSymbol ../symbols/ShieldLabelSymbol".split(" "),function(F,u,b,p,e,y,q,m){var f=RegExp("__begin__","ig"),g=RegExp("__end__","ig"),a=RegExp("^__begin__","i"),d=RegExp("__end__$","i");F=F(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(l){l&&(u.mixin(this,l),this._labelPlacementLookup.hasOwnProperty(this.labelPlacement)||
(this.labelPlacement=y.valueOf(this._labelPlacementLookup,l.labelPlacement)),l.format&&(this.format=l.format),l.fieldInfos&&(this.fieldInfos=l.fieldInfos),l.symbol&&(this.symbol="esriSHD"===l.symbol.type?new m(l.symbol):new q(l.symbol)),l=this.sizeInfo)&&(l.minSize&&(l.minSize=p.pt2px(l.minSize)),l.maxSize&&(l.maxSize=p.pt2px(l.maxSize)))},getSymbol:function(){return this.symbol},toJson:function(){var l=this.sizeInfo;l&&(l=u.mixin({},l),l.minSize&&(l.minSize=p.px2pt(l.minSize)),l.maxSize&&(l.maxSize=
p.px2pt(l.maxSize)));var k=y.fixJson(this.labelExpressionInfo&&u.clone(this.labelExpressionInfo));this._processLabelExpressionInfo(k);l={name:this.name,labelExpression:this.labelExpression,labelExpressionInfo:k,format:this.format||void 0,fieldInfos:this.fieldInfos||void 0,useCodedValues:this.useCodedValues,maxScale:this.maxScale,minScale:this.minScale,where:this.where,sizeInfo:l||void 0,labelPlacement:this._labelPlacementLookup.hasOwnProperty(this.labelPlacement)?this._labelPlacementLookup[this.labelPlacement]:
this.labelPlacement,symbol:this.symbol&&this.symbol.toJson()};return y.fixJson(l)},_processLabelExpressionInfo:function(l){l&&l.value&&(l.expression=this._convertTemplatedStringToArcade(l.value))},_convertTemplatedStringToArcade:function(l){if(l){var k=u.replace(l,function(n,h){return'__begin__$feature["'+h+'"]__end__'});k=a.test(k)?k.replace(a,""):'"'+k;k=d.test(k)?k.replace(d,""):k+'"';k=k.replace(f,'" + ').replace(g,' + "')}return k}});b("extend-esri")&&u.setObject("layers.LabelClass",F,e);return F})},
"esri/symbols/ShieldLabelSymbol":function(){define("dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang ../urlUtils ./MarkerSymbol ./Font".split(" "),function(F,u,b,p,e,y,q,m,f){var g={url:"",width:12,height:12,angle:0,xoffset:0,yoffset:0};F=F(m,{declaredClass:"esri.symbol.ShieldLabelSymbol",type:"shieldlabelsymbol",color:[255,255,255,1],width:32,height:32,font:p.defaultFont,constructor:function(a,d,l,k,n){a?u.isString(a)?(this.url=a,d&&(this.color=d),l&&(this.width=l),
k&&(this.height=k),void 0!==n&&(this.font=n)):(this.width=p.pt2px(a.width),this.height=p.pt2px(a.height),d=a.imageData,9>b("ie")||!d||(l=this.url,this.url="data:"+(a.contentType||"image")+";base64,"+d,this.imageData=l)):u.mixin(this,g)},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 l=a;a=d;d=l.indexOf(";base64,")+8;d=l.substr(d)}a=
q.getAbsoluteUrl(a);l=p.px2pt(this.width);l=isNaN(l)?void 0:l;var k=p.px2pt(this.height);k=isNaN(k)?void 0:k;a=y.fixJson(u.mixin(this.inherited("toJson",arguments),{type:"esriSHD",url:a,imageData:d,contentType:this.contentType,width:l,height:k}));this.font?(d=new f(this.font),a.font=d.toJson()):a.font=null;delete a.size;a.imageData||delete a.imageData;return a}});F.defaultProps=g;b("extend-esri")&&(u.setObject("symbol.ShieldLabelSymbol",F,e),e.symbol.defaultShieldLabelSymbol=g);return F})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l,k,n,h,c,r,
v,z){F=F([k,n],{declaredClass:"esri.layers.ArcGISDynamicMapServiceLayer",_eventMap:{"visible-layers-change":["visibleLayers"]},constructor:function(C,x,E){C=x&&x.imageParameters;var B=u.hitch;if(C){var w=C.layerDefinitions;w&&this.setLayerDefinitions(w);C.layerOption===r.LAYER_OPTION_SHOW&&(this.visibleLayers=[].concat(C.layerIds),this.onVisibleLayersChange(this.visibleLayers))}this._setIsPNG32=B(this,this._setIsPNG32);this.dpi=C&&C.dpi||96;this.imageFormat=C&&C.format||"png8";this.imageTransparency=
C&&!1===C.transparent?!1:!0;this._setIsPNG32();this.gdbVersion=x&&x.gdbVersion;this._params.gdbVersion=this.gdbVersion;w=C&&C.layerDefinitions;u.mixin(this._params,this._url.query,{dpi:this.dpi,transparent:this.imageTransparency,format:this.imageFormat},C?C.toJson():{});w&&(this._params.layerDefs=w);this.getImageUrl=B(this,this.getImageUrl);this._initLayer=B(this,this._initLayer);this._load=B(this,this._load);this.useMapImage=x?x.useMapImage:!1;this._loadCallback=x&&x.loadCallback;(x=x&&x.resourceInfo)?
this._initLayer(x):(void 0===E||!1===E)&&this._load();this.registerConnectEvents()},disableClientCaching:!1,layerDefinitions:null,_initLayer:function(C,x){this.inherited(arguments);C.timeInfo&&(this.timeInfo=new h(C.timeInfo));this.loaded=!0;this.onLoad(this);var E=this._loadCallback;E&&(delete this._loadCallback,E(this))},getImageUrl:function(C,x,E,B){var w=this._url.path+"/export",D=this._params,t=D.token=this._getToken(),A=C.spatialReference.wkid||p.toJson(C.spatialReference.toJson()),G=this._errorHandler;
delete D._ts;u.mixin(D,{bbox:C.xmin+","+C.ymin+","+C.xmax+","+C.ymax,bboxSR:A,imageSR:A,size:x+","+E},this.disableClientCaching?{_ts:(new Date).getTime()}:{});D.layerDefs&&(C=d._serializeLayerDefinitions(D.layerDefs,10.5<=this.version),D=u.mixin({},D),delete D.layerDefs,D.layerDefs=C);C=a.addProxy(a.normalize(w)+"?"+y.objectToQuery(u.mixin({},D,{f:"image"})));C.length>m.defaults.io.postLength||this.useMapImage?this._jsonRequest=g({url:w,content:u.mixin(D,{f:"json"}),callbackParamName:"callback",load:function(J){J.imageData?
J="data:"+(J.contentType||"image")+";base64,"+J.imageData:(J=J.href,t&&(J+=-1===J.indexOf("?")?"?token\x3d"+t:"\x26token\x3d"+t),J=a.addProxy(J));B(J)},error:G}):B(C)},_setIsPNG32:function(){var C=this.imageFormat.toLowerCase(),x=e("ie");this.isPNG32=x&&6===x&&("png32"===C||"png24"===C)&&this.imageTransparency},_setTime:function(C){var x=this.timeInfo;C=this._params.time=C?C.toJson().join(","):null;if(10.02>this.version&&x)if(C)this._params.layerTimeOptions=d._serializeTimeOptions(this.layerTimeOptions);
else{var E=this.layerInfos;if(E){var B=this.layerTimeOptions,w=B?B.slice(0):[],D=[];b.forEach(E,function(t){t.subLayerIds||D.push(t.id)});D.length&&(b.forEach(D,function(t){if(!w[t]){var A=new c;A.useTime=!1;w[t]=A}}),this._params.layerTimeOptions=d._serializeTimeOptions(w,D))}}10.02<=this.version&&x&&!C&&!x.hasLiveData&&(this._params.time="null,null")},setDPI:function(C,x){this.dpi=this._params.dpi=C;x||this.refresh(!0)},setImageFormat:function(C,x){this.imageFormat=this._params.format=C;this._setIsPNG32();
x||this.refresh(!0)},setImageTransparency:function(C,x){this.imageTransparency=this._params.transparent=C;this._setIsPNG32();x||this.refresh(!0)},setVisibleLayers:function(C,x){this.visibleLayers=C;this._params.layers=r.LAYER_OPTION_SHOW+":"+(C.length?C.join():"-1");this._updateDynamicLayers();x||this.refresh(!0);this.onVisibleLayersChange(this.visibleLayers)},onVisibleLayersChange:function(){},setDefaultVisibleLayers:function(C){this.visibleLayers=this._defaultVisibleLayers;this._params.layers=null;
this._updateDynamicLayers();C||this.refresh(!0);this.onVisibleLayersChange(this.visibleLayers)},setLayerDefinitions:function(C,x){this.layerDefinitions=C;this._params.layerDefs=C;this._updateDynamicLayers();x||this.refresh(!0)},setDefaultLayerDefinitions:function(C){this.layerDefinitions=this._params.layerDefs=null;this._updateDynamicLayers();C||this.refresh(!0)},setDisableClientCaching:function(C){this.disableClientCaching=C},setLayerTimeOptions:function(C,x){this.layerTimeOptions=C;this._params.layerTimeOptions=
d._serializeTimeOptions(C);this._updateDynamicLayers();x||this.refresh(!0)},refresh:function(C){if(!0===C)this.inherited(arguments);else{var x=this.disableClientCaching;this.disableClientCaching=!0;this.inherited(arguments);this.disableClientCaching=x}},setLayerDrawingOptions:function(C,x){this.layerDrawingOptions=C;this._updateDynamicLayers();x||this.refresh(!0)},setDynamicLayerInfos:function(C,x){C&&0<C.length?(this.dynamicLayerInfos=C,this.visibleLayers=d._getDefaultVisibleLayers(C),this.onVisibleLayersChange(this.visibleLayers)):
this.dynamicLayerInfos=this.layerDrawingOptions=null;this._updateDynamicLayers();x||this.refresh(!0)},createDynamicLayerInfosFromLayerInfos:function(){var C=[],x;b.forEach(this.layerInfos,function(E){x=new v(E.toJson());x.source=new z({mapLayerId:E.id});C.push(x)});return C},_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 C=this._map&&l.getScale(this._map);C=this._getDynLayerObjs(C);C=p.toJson(C);this._params.dynamicLayers&&this._params.dynamicLayers.length===C.length&&this._params.dynamicLayers===C||(this._params.dynamicLayers=C,this._onDynamicLayersChange(this._params.dynamicLayers))}else this._params.dynamicLayers?(this._params.dynamicLayers=null,this._onDynamicLayersChange(null)):this._params.dynamicLayers=null},_getDynLayerObjs:function(C){var x=
this.dynamicLayerInfos,E=[],B=this.visibleLayers,w=C?d._getLayersForScale(C,x):B;b.forEach(x,function(D){if(!D.subLayerIds){var t=D.id;if(-1!==b.indexOf(B,t)&&-1!==b.indexOf(w,t)){var A={id:t,name:D.name};A.source=D.source&&D.source.toJson();var G;this.layerDefinitions&&this.layerDefinitions[t]&&(G=this.layerDefinitions[t]);G&&(A.definitionExpression=G);var J;this.layerDrawingOptions&&this.layerDrawingOptions[t]&&(J=this.layerDrawingOptions[t]);J&&(G=J.toJson(),this._fixMarkerColor(G.renderer),A.drawingInfo=
G);var U;this.layerTimeOptions&&this.layerTimeOptions[t]&&(U=this.layerTimeOptions[t]);U&&(A.layerTimeOptions=U.toJson());A.minScale=D.minScale||0;A.maxScale=D.maxScale||0;E.push(A)}}},this);return E},_fixMarkerColor:function(C){b.forEach(this._getAllSimpleMarkerSymbols(C),function(x){if(!x.color){var E=[0,0,0,0],B=x.outline&&x.outline.color;"esriSMSX"!==x.style&&"esriSMSCross"!==x.style||!B||(E=B.slice(0));x.color=E}})},_getAllSimpleMarkerSymbols:function(C){return b.filter(this._getAllSymbols(C),
function(x){return"esriSMS"===x.type})},_getAllSymbols:function(C){var x=[];C&&(x.push(C.symbol),x.push(C.defaultSymbol),b.forEach(C.uniqueValueInfos||C.classBreakInfos,function(E){x.push(E.symbol)}),x=b.filter(x,f.isDefined));return x},_onExtentChangeHandler:function(C,x,E){E&&this._updateDynamicLayers();this.inherited(arguments)},_setMap:function(C,x,E){this._map=C;this._updateDynamicLayers();return this.inherited(arguments)},onGDBVersionChange:function(){},setGDBVersion:function(C,x){this.gdbVersion=
C;this._params.gdbVersion=C;this.onGDBVersionChange();x||this.refresh(!0)},exportMapImage:function(C,x){var E=u.hitch(this,function(){var B=m.defaults.map,w=C&&C.layerDefinitions;C=C?C.toJson(this.normalization):{};w&&(C.layerDefs=w);C=u.mixin({size:B.width+","+B.height},this._params,C,{f:"json"});delete C._ts;C.layerDefs&&(B=d._serializeLayerDefinitions(C.layerDefs,10.5<=this.version),delete C.layerDefs,C.layerDefs=B);this._exportMapImage(this._url.path+"/export",C,x)});if(this.loaded)E();else this.on("load",
E)}});e("extend-esri")&&u.setObject("layers.ArcGISDynamicMapServiceLayer",F,q);return F})},"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(F,u,b,p,e,y,q,m,f,g,a,d,l){var k=m.defaults.map.zoomDuration;F=F(d,{declaredClass:"esri.layers.DynamicMapServiceLayer",_eventMap:{"map-image-export":["mapImage"]},
constructor:function(n,h){this.useMapTime=h&&h.hasOwnProperty("useMapTime")?!!h.useMapTime:!0;this.extentProcessor=h&&h.extentProcessor;n=b.hitch;this._exportMapImageHandler=n(this,this._exportMapImageHandler);this._imgSrcFunc=n(this,this._imgSrcFunc);this._divAlphaImageFunc=n(this,this._divAlphaImageFunc);this._tileLoadHandler=n(this,this._tileLoadHandler);this._tileErrorHandler=n(this,this._tileErrorHandler);this.registerConnectEvents()},opacity:1,isPNG32:!1,_setMap:function(n,h,c){this.inherited(arguments);
this._map=n;var r=this._div=p.create("div",null,h),v=q._css.names,z={position:"absolute",width:n.width+"px",height:n.height+"px",overflow:"visible",opacity:this.opacity},C=f("ie"),x=u.connect,E=n.__visibleDelta;8===C&&delete z.opacity;"css-transforms"===n.navigationMode?(this._isChildLayer||(z[v.transform]=q._css.translate(E.x,E.y),e.set(r,z)),this._left=E.x,this._top=E.y):(z.left="0px",z.top="0px",e.set(r,z),this._left=this._top=0);e.set(r,z);this._onResizeHandler_connect=x(n,"onResize",this,"_onResizeHandler");
this._opacityChangeHandler_connect=x(this,"onOpacityChange",this,"_opacityChangeHandler");this._img_loading=null;this._dragOrigin={x:0,y:0};this.evaluateSuspension();if(this.suspended&&!n.loaded)var B=u.connect(n,"onLoad",this,function(){u.disconnect(B);B=null;this.evaluateSuspension()});this.extentProcessor&&(this._panEndEvalHandle=u.connect(n,"onPanEnd",this,this.evaluateSuspension),this._zoomEndEvalHandle=u.connect(n,"onZoomEnd",this,this.evaluateSuspension));return r},_unsetMap:function(n,h){this._img&&
this._clearEventListeners(this._img);this._img_loading&&this._clearEventListeners(this._img_loading);p.destroy(this._div);this._map=this._div=this._img=this._img_loading=null;var c=u.disconnect;c(this._onResizeHandler_connect);c(this._opacityChangeHandler_connect);c(this._panEndEvalHandle);c(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(n,h,c){e.set(this._div,{width:h+"px",height:c+"px"});this._onExtentChangeHandler(n)},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 n=this._map;this._toggleTime();"css-transforms"===n.navigationMode&&(n=n.__visibleDelta,
this._left=n.x,this._top=n.y,this._isChildLayer||e.set(this._div,q._css.names.transform,q._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 n=this.inherited(arguments);if(n){var h=this._map.extent;this.extentProcessor&&h&&(n=!!this.extentProcessor({layer:this,extent:h,width:this._map.width}).extent)}return n},_enableDrawConnectors:function(){var n=
u.connect,h=this._map;h&&(this._onPanHandler_connect=n(h,"onPan",this,"_onPanHandler"),this._onExtentChangeHandler_connect=n(h,"onExtentChange",this,"_onExtentChangeHandler"),"css-transforms"===h.navigationMode?this._onScaleHandler_connect=n(h,"onScale",this,this._onScaleHandler):this._onZoomHandler_connect=n(h,"onZoom",this,"_onZoomHandler"))},_disableDrawConnectors:function(){var n=u.disconnect;n(this._onPanHandler_connect);n(this._onExtentChangeHandler_connect);n(this._onZoomHandler_connect);n(this._onScaleHandler_connect);
this._onPanHandler_connect=this._onExtentChangeHandler_connect=this._onZoomHandler_connect=this._onScaleHandler_connect=null},_toggleTime:function(){var n=this._map;this.timeInfo&&this.useMapTime&&n&&!this.suspended?(this._timeConnect||(this._timeConnect=u.connect(n,"onTimeExtentChange",this,this._onTimeExtentChangeHandler)),this._setTime(n.timeExtent)):(u.disconnect(this._timeConnect),this._timeConnect=null,this._setTime(null))},_setTime:function(n){this._params&&(this._params.time=n?n.toJson().join(","):
null)},_onPanHandler:function(n,h){this._panDx=h.x;this._panDy=h.y;n=this._dragOrigin;var c=this._map.__visibleDelta,r=this._img;r&&("css-transforms"===this._map.navigationMode?(this._left=c.x+h.x,this._top=c.y+h.y,this._isChildLayer||e.set(this._div,q._css.names.transform,q._css.translate(this._left,this._top))):e.set(r,{left:n.x+h.x+"px",top:n.y+h.y+"px"}))},_onExtentChangeHandler:function(n,h,c){if(!this.suspended){clearTimeout(this._wakeTimer);this._wakeTimer=null;var r=this._map,v=this._img,
z=v&&v.style,C=this._dragOrigin;!h||c||!v||h.x===this._panDx&&h.y===this._panDy||("css-transforms"===r.navigationMode?(h=r.__visibleDelta,this._left=h.x,this._top=h.y,this._isChildLayer||e.set(this._div,q._css.names.transform,q._css.translate(this._left,this._top))):e.set(v,{left:C.x+h.x+"px",top:C.y+h.y+"px"}));v?(C.x=parseInt(z.left,10),C.y=parseInt(z.top,10)):C.x=C.y=0;"css-transforms"===r.navigationMode&&c&&v&&(e.set(v,q._css.names.transition,"none"),v._multiply=v._multiply?y.multiply(v._matrix,
v._multiply):v._matrix);this._fireUpdateStart();if(c=this._img_loading)if(this._clearEventListeners(c),p.destroy(c),this._img_loading=null,c=this._jsonRequest){try{c.cancel()}catch(A){}this._jsonRequest=null}var x=r.width;c=r.height;h=x;var E=0;10<=this.version&&r.wrapAround180&&(n=n._normalize(!0));this.extentProcessor&&(E=this.extentProcessor({layer:this,extent:n,width:h}),n=E.extent,h=E.width,E=E.marginLeft||0);if(this.isPNG32)v=this._img_loading=p.create("div"),v.id=r.id+"_"+this.id+"_"+(new Date).getTime(),
e.set(v,{position:"absolute",left:"0px",top:"0px",width:h+"px",height:c+"px"}),r=v.appendChild(p.create("div")),e.set(r,{opacity:0,width:h+"px",height:c+"px"}),this.getImageUrl(n,h,c,this._divAlphaImageFunc),v=null;else{var B=this._img_loading=p.create("img"),w=q._css.names,D=f("ie"),t={position:"absolute",width:h+"px",height:c+"px"};B.setAttribute("decoding","sync");8===D&&(t.opacity=this.opacity);null!=E&&0!==E&&(t.marginLeft=E+"px");"css-transforms"===r.navigationMode?(t[w.transform]=q._css.translate(-this._left,
-this._top),B._tdx=-this._left,B._tdy=-this._top,t[w.transition]=w.transformName+" "+k+"ms ease",this.extentProcessor&&(t[w.origin]=x/2-E+"px "+c/2+"px")):(t.left="0px",t.top="0px");B.id=r.id+"_"+this.id+"_"+(new Date).getTime();e.set(B,t);B._onload_connect=u.connect(B,"onload",this,"_onLoadHandler");B._onerror_connect=u.connect(B,"onerror",this,"_onErrorHandler");B._onabort_connect=u.connect(B,"onabort",this,"_onErrorHandler");this._startRect={left:C.x,top:C.y,width:v?parseInt(z.width,10):h,height:v?
parseInt(z.height,10):c,marginLeft:v?parseInt(z.marginLeft||"0",10):E,zoom:z&&z.zoom?parseFloat(z.zoom):1};this.getImageUrl(n,h,c,this._imgSrcFunc);B=null}}},_onTimeExtentChangeHandler:function(n){this.suspended||(this._setTime(n),this.refresh(!0))},getImageUrl:function(n,h,c,r){},_imgSrcFunc:function(n){this._img_loading.src=n},_divAlphaImageFunc:function(n){e.set(this._img_loading,"filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d'"+n+"', sizingMethod\x3d'scale')");this._onLoadHandler({currentTarget:this._img_loading})},
_onLoadHandler:function(n){n=n.currentTarget;var h=this._map;this._clearEventListeners(n);!h||h.__panning||h.__zooming?p.destroy(n):(this._img&&this._div.removeChild(this._img),this._img=n,h=n.style,this._startRect={left:0,top:0,width:parseInt(h.width,10),height:parseInt(h.height,10),marginLeft:parseInt(h.marginLeft||"0",10),zoom:1},this._div.appendChild(n),this.suspended||a.show(this._div),this._img_loading=null,n=this._dragOrigin,n.x=n.y=0,this.onUpdate());this._fireUpdateEnd()},_onErrorHandler:function(n){n=
n.currentTarget;e.set(n,"visibility","hidden");this._clearEventListeners(n);n=Error("Unable to load image: "+n.src);this.onError(n);this._fireUpdateEnd(n)},_clearEventListeners:function(n){u.disconnect(n._onload_connect);u.disconnect(n._onerror_connect);u.disconnect(n._onabort_connect);n._onload_connect=n._onerror_connect=n._onabort_connect=null},setUseMapTime:function(n,h){this.useMapTime=n;this._toggleTime();h||this.refresh(!0)},refresh:function(){this._map&&this._onExtentChangeHandler(this._map.extent)},
_onScaleHandler:function(n,h){var c={},r=q._css.names,v=this._img;if(v){e.set(v,r.transition,h?"none":r.transformName+" "+k+"ms ease");v._matrix=n;n=v._multiply?y.multiply(n,v._multiply):n;if(v._tdx||v._tdy)n=y.multiply(n,{xx:1,xy:0,yx:0,yy:1,dx:v._tdx,dy:v._tdy});c[r.transform]=q._css.matrix(n);e.set(v,c)}},_onZoomHandler:function(n,h,c){n=this._startRect;var r=n.width*h,v=n.height*h,z=n.marginLeft*h,C=this._img,x=f("ie");C&&(x&&8>x?e.set(C,{left:n.left-(r-n.width)*(c.x-n.left)/n.width+"px",top:n.top-
(v-n.height)*(c.y-n.top)/n.height+"px",zoom:h*n.zoom}):e.set(C,{left:n.left-(r-n.width)*(c.x-n.left)/n.width+"px",top:n.top-(v-n.height)*(c.y-n.top)/n.height+"px",width:r+"px",height:v+"px"}),null!=z&&0!==z&&e.set(C,{marginLeft:z+"px"}))},_exportMapImage:function(n,h,c){var r=this._exportMapImageHandler;h.token=this._getToken();g({url:n,content:h,callbackParamName:"callback",load:function(v,z){r(v,z,c)},error:m.defaults.io.errorHandler})},_exportMapImageHandler:function(n,h,c){n=new l(n);this.onMapImageExport(n);
c&&c(n)},onMapImageExport:function(){},setOpacity:function(n){if(this.opacity!=n)this.onOpacityChange(this.opacity=n)},onOpacityChange:function(){},_opacityChangeHandler:function(n){var h=8===f("ie")?this._img:this._div;e.set(h,"opacity",n)}});f("extend-esri")&&b.setObject("layers.DynamicMapServiceLayer",F,q);return F})},"esri/layers/MapImage":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-style dojo/has ../kernel ../domUtils ../geometry/Extent".split(" "),function(F,u,b,p,e,y,q){F=
F(null,{declaredClass:"esri.layers.MapImage",constructor:function(m){u.mixin(this,m);this.extent=new q(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 m=this._node,f=this._layer,g;if(m){if(g=f&&f._div)f.suspended||f._setPos(m,g._left,g._top),(f._active||g).appendChild(m);y.show(m)}}},hide:function(){if(this.visible){this.visible=!1;var m=this._node;m&&(y.hide(m),m.parentNode&&m.parentNode.removeChild(m))}},
setOpacity:function(m){var f=this._node;this.opacity=m;f&&b.set(f,"opacity",m)}});p("extend-esri")&&u.setObject("layers.MapImage",F,e);return F})},"esri/layers/ImageParameters":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/json dojo/has ../kernel ../lang ../layerUtils".split(" "),function(F,u,b,p,e,y,q,m){u=u(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&&F.deprecated(this.declaredClass+" : Property 'bbox' deprecated. Use property 'extent'.");var g=this.bbox||this.extent;g=g&&f&&g._normalize(!0);f=this.layerOption;var a=g?g.spatialReference.wkid||p.toJson(g.spatialReference.toJson()):null,d=this.imageSpatialReference;g={dpi:this.dpi,format:this.format,transparent:this.transparent,size:null!==this.width&&
null!==this.height?this.width+","+this.height:null,bbox:g?g.xmin+","+g.ymin+","+g.xmax+","+g.ymax:null,bboxSR:a,layers:f?f+":"+this.layerIds.join(","):null,imageSR:d?d.wkid||p.toJson(d.toJson()):a};g.layerDefs=m._serializeLayerDefinitions(this.layerDefinitions);f=this.timeExtent;g.time=f?f.toJson().join(","):null;g.layerTimeOptions=m._serializeTimeOptions(this.layerTimeOptions);return q.filter(g,function(l){if(null!==l)return!0})}});b.mixin(u,{LAYER_OPTION_SHOW:"show",LAYER_OPTION_HIDE:"hide",LAYER_OPTION_INCLUDE:"include",
LAYER_OPTION_EXCLUDE:"exclude"});e("extend-esri")&&b.setObject("layers.ImageParameters",u,y);return u})},"esri/_time":function(){define(["./TimeExtent"],function(){return{}})},"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      if (window.origin !\x3d\x3d "null") {\r\n        return; // page is not in an iframe sandbox\r\n      }\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/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/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(F){F(['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/manager ./main ./map ./geometry ./symbol ./renderer ./utils ./layers/graphics ./layers/agstiled ./layers/agsdynamic".split(" "),function(){return{}});