steveoh / grunt-esri-slurp

download the esri js api
MIT License
19 stars 7 forks source link

Errors in dojo build with esri 3.14 api #39

Closed GeoFredMan closed 9 years ago

GeoFredMan commented 9 years ago

I'm having trouble creating a dojo build with the slurped esri 3.14 api. It looks like the same as issue #18. Something with handling unwinding layer files. What am I missing? I "solved" the problem with the dgauges dojox submodules by deleting the gauges modules in the esri tree.

stdavis commented 9 years ago

Actually, I'm guessing that it's closer to #38. This is a known problem and we plan to fix it. We just haven't started a project on 3.14 yet.

You might try @odoe's solution of remapping dgauges.

Closing because this is a duplicate of #38.

GeoFredMan commented 9 years ago

Ok, remap of dgauges works fine now.

But still getting: error(307) Failed to evaluate module tagged as pure AMD (fell back to processing with regular expressions). module: esri/geometry; error: SyntaxError: Unexpected token : error(307) Failed to evaluate module tagged as pure AMD (fell back to processing with regular expressions). module: esri/renderer; error: SyntaxError: Unexpected token : error(307) Failed to evaluate module tagged as pure AMD (fell back to processing with regular expressions). module: esri/symbol; error: SyntaxError: Unexpected token :

To me this looks like #18... The geometry.js is about 162k in size and looks like a layer file that hasn't been stripped by the unwinder.

stdavis commented 9 years ago

Can you post the contents of your geometry.js file?

GeoFredMan commented 9 years ago

This is the content of my geometry.js:

//>>built define(["./kernel","../Deferred","../promise/Promise","../errors/CancelError","../has","./lang","../when"],function(c,l,a,b,p,q,r){var k=function(){},n=Object.freeze||function(){},d=c.Deferred=function(t){function e(a){if(g)throw Error("This deferred has already been resolved");m=a;g=!0;f()}function f(){for(var a;!a&& v;){var h=v;v=v.next;if(a=h.progress==k)g=!1;var b=u?h.error:h.resolved;p("config-useDeferredInstrumentation")&&u&&l.instrumentRejected&&l.instrumentRejected(m,!!b);if(b)try{var f=b(m);f&&"function"===typeof f.then?f.then(q.hitch(h.deferred,"resolve"),q.hitch(h.deferred,"reject"),q.hitch(h.deferred,"progress")):(b=a&&void 0===f,a&&!b&&(u=f instanceof Error),h.deferredb&&u?"reject":"resolve")}catch(s){h.deferred.reject(s)}else u?h.deferred.reject(m):h.deferred.resolve(m)}}var m,g,h,s,u,c, v,r=this.promise=new a;this.isResolved=r.isResolved=function(){return 0==s};this.isRejected=r.isRejected=function(){return 1==s};this.isFulfilled=r.isFulfilled=function(){return 0<=s};this.isCanceled=r.isCanceled=function(){return h};this.resolve=this.callback=function(a){this.fired=s=0;this.results=[a,null];e(a)};this.reject=this.errback=function(a){u=!0;this.fired=s=1;p("config-useDeferredInstrumentation")&&l.instrumentRejected&&l.instrumentRejected(a,!!v);e(a);this.results=[null,a]};this.progress= function(a){for(var h=v;h;){var g=h.progress;g&&g(a);h=h.next}};this.addCallbacks=function(a,h){this.then(a,h,k);return this};r.then=this.then=function(a,h,b){var s=b==k?this:new d(r.cancel);a={resolved:a,error:h,progress:b,deferred:s};v?c=c.next=a:v=c=a;g&&f();return s.promise};var y=this;r.cancel=this.cancel=function(){if(!g){var a=t&&t(y);g||(a instanceof Error||(a=new b(a)),a.log=!1,y.reject(a))}h=!0};n(r)};q.extend(d,{addCallback:function(a){return this.addCallbacks(q.hitch.apply(c,arguments))}, addErrback:function(a){return this.addCallbacks(null,q.hitch.apply(c,arguments))},addBoth:function(a){var b=q.hitch.apply(c,arguments);return this.addCallbacks(b,b)},fired:-1});d.when=c.when=r;return d})},"esri/geometry/mathUtils":function(){define(["dojo/base/lang","dojo/has","../kernel","./Point"],function(c,l,a,b){function p(a,n,d){return a instanceof b?new b(a.x+d(n.x-a.x),a.y+d(n.y-a.y)):[a[0]+d(n[0]-a[0]),a[1]+d_(n[1]-a[1])]}function q(a,b){return 1E-8>Math.abs(a-b)}function r(a,b,d,c){var e, f=q(a[0],b[0])?1E10:(a[1]-b[1])/(a[0]-b[0]),m=q(d[0],c[0])?1E10:(d[1]-c[1])/(d[0]-c[0]),g=a[1]-f_a[0],h=d[1]-m_d[0];if(q(f,m)){if(q(g,h)){if(q(a[0],b[0]))if(Math.min(a[1],b[1])<Math.max(d[1],c[1])||Math.max(a[1],b[1])>Math.min(d[1],c[1]))a=(a[1]+b[1]+d[1]+c[1]-Math.min(a[1],b[1],d[1],c[1])-Math.max(a[1],b[1],d[1],c[1]))/2,e=(a-g)/f;else return null;else if(Math.min(a[0],b[0])<Math.max(d[0],c[0])||Math.max(a[0],b[0])>Math.min(d[0],c[0]))e=(a[0]+b[0]+d[0]+c[0]-Math.min(a[0],b[0],d[0],c[0])-Math.max(a[0], b[0],d[0],c[0]))/2,a=f_e+g;else return null;return[e,a]}return null}q(f,1E10)?(e=a[0],a=m_e+h):q(m,1E10)?(e=d[0],a=f_e+g):(e=-(g-h)/(f-m),a=a[1]===b[1]?a[1]:d[1]===c[1]?d[1]:f_e+g);return[e,a]}return{getLength:function(a,b){var d=b.x-a.x,c=b.y-a.y;return Math.sqrt(d_d+c_c)},_getLength:function(a,b){var d=b[0]-a[0],c=b[1]-a[1];return Math.sqrt(d_d+c_c)},getPointOnLine:p,getMidpoint:function(a,b){return p(a,b,0.5)},_equals:q,_getLineIntersection:r,getLineIntersection:function(a,c,d,q,e){(a=r([a.x,a.y], [c.x,c.y],[d.x,d.y],[q.x,q.y]))&&(a=new b(a[0],a[1],e));return a},_getLineIntersection2:function(a,b){var d=a[0],c=a[1],e=b[0],f=b[1],m=d[0],d=d[1],g=c[0],c=c[1],h=e[0],s=e[1],e=f[0]-h,h=m-h,u=g-m,f=f[1]-s,s=d-s,q=c-d,v=f_u-e_q;if(0===v)return!1;e=(e_s-f_h)/v;h=(u_s-qh)/v;return 0<=e&&1>=e&&0<=h&&1>=h?[m+e(g-m),d+e_(c-d)]:!1},_pointLineDistance:function(a,b){var d=b[0],c=b[1],e=d[0],f=d[1],d=a[0],m=a[1],g=c[0]-e,h=c[1]-f,s=d-e,u=m-f,c=Math.sqrt,q=Math.pow,v=c(q(g,2)+q(h,2)),s=(s_g+u_h)/(v_v),f= f+s_h;return c(q(d-(e+s_g),2)+q(m-f,2))}}})},"dojo/request/watch":function(){define("./util ../errors/RequestTimeoutError ../errors/CancelError ../_base/array ../_base/window ../has!host-browser?dom-addeventlistener?:../on:".split(" "),function(c,l,a,b,p,q){function r(){for(var a=+new Date,b=0,f;b<d.length&&(f=d[b]);b++){var m=f.response,g=m.options;if(f.isCanceled&&f.isCanceled()||f.isValid&&!f.isValid(m))d.splice(b--,1),k._onAction&&k._onAction();else if(f.isReady&&f.isReady(m))d.splice(b--,1), f.handleResponse(m),k._onAction&&k._onAction();else if(f.startTime&&f.startTime+(g.timeout||0)<a)d.splice(b--,1),f.cancel(new l("Timeout exceeded",m)),k._onAction&&k._onAction()}k._onInFlight&&k._onInFlight(f);d.length||(clearInterval(n),n=null)}function k(a){a.response.options.timeout&&(a.startTime=+new Date);a.isFulfilled()||(d.push(a),n||(n=setInterval(r,50)),a.response.options.sync&&r())}var n=null,d=[];k.cancelAll=function(){try{b.forEach(d,function(b){try{b.cancel(new a("All requests canceled."))}catch(f){}})}catch(k){}}; p&&(q&&p.doc.attachEvent)&&q(p.global,"unload",function(){k.cancelAll()});return k})},"dojo/dom":function(){define(["./sniff","./base/window"],function(c,l){if(7>=c("ie"))try{document.execCommand("BackgroundImageCache",!1,!0)}catch(a){}var b={};c("ie")?b.byId=function(a,b){if("string"!=typeof a)return a;var k=b||l.doc,c=a&&k.getElementById(a);if(c&&(c.attributes.id.value==a||c.id==a))return c;k=k.all[a];if(!k||k.nodeName)k=[k];for(var d=0;c=k[d++];)if(c.attributes&&c.attributes.id&&c.attributes.id.value== a||c.id==a)return c}:b.byId=function(a,b){return("string"==typeof a?(b||l.doc).getElementById(a):a)||null};b.isDescendant=function(a,c){try{a=b.byId(a);for(c=b.byId(c);a;){if(a==c)return!0;a=a.parentNode}}catch(k){}return!1};c.add("css-user-select",function(a,b,c){if(!c)return!1;a=c.style;b=["Khtml","O","Moz","Webkit"];c=b.length;var n="userSelect";do if("undefined"!==typeof a[n])return n;while(c--&&(n=b[c]+"UserSelect"));return!1});var p=c("css-user-select");b.setSelectable=p?function(a,c){b.byId(a).style[p]= c?"":"none"}:function(a,c){a=b.byId(a);var k=a.getElementsByTagName(""),n=k.length;if(c)for(a.removeAttribute("unselectable");n--;)k[n].removeAttribute("unselectable");else for(a.setAttribute("unselectable","on");n--;)k[n].setAttribute("unselectable","on")};return b})},"esri/geometry/ScreenPoint":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/has","../kernel","./Point"],function(c,l,a,b,p){return c(p,{declaredClass:"esri.geometry.ScreenPoint",verifySR:function(){}})})},"esri/sniff":function(){define(["dojo/base/sniff", "./kernel"],function(c,l){var a=c("ff"),b=c("ie"),p=void 0===b&&7<=c("trident"),q=c("webkit"),r=c("opera"),k=c("chrome"),n=c("safari"),d=navigator.userAgent,t;(t=d.match(/(iPhone|iPad|CPU)\s+OS\s+(\d+_\d+)/i))&&c.add("esri-iphone",parseFloat(t[2].replace("",".")));(t=d.match(/Android\s+(\d+.\d+)/i))&&c.add("esri-android",parseFloat(t[1]));(t=d.match(/Fennec\/(\d+.\d+)/i))&&c.add("esri-fennec",parseFloat(t[1]));0<=d.indexOf("BlackBerry")&&0<=d.indexOf("WebKit")&&c.add("esri-blackberry",1);c.add("esri-touch", c("esri-iphone")||c("esri-android")||c("esri-blackberry")||6<=c("esri-fennec")||(a||q)&&document.createTouch?!0:!1);(t=d.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i))&&c.add("esri-mobile",t);c.add("esri-pointer",navigator.pointerEnabled||navigator.msPointerEnabled);l._getDOMAccessor=function(e){var f="";a?f="Moz":q?f="Webkit":b?f="ms":r&&(f="O");return f+e.charAt(0).toUpperCase()+e.substr(1)};c.add("esri-phonegap",!!window.cordova);c.add("esri-cors",c("esri-phonegap")|| "XMLHttpRequest"in window&&"withCredentials"in new XMLHttpRequest);c.add("esri-file-upload",window.FormData&&window.FileList?!0:!1);c.add("esri-workers",window.Worker?!0:!1);c.add("esri-transforms",p||9<=b||3.5<=a||4<=k||3.1<=n||10.5<=r||3.2<=c("esri-iphone")||2.1<=c("esri-android"));c.add("esri-transitions",p||10<=b||4<=a||4<=k||3.1<=n||10.5<=r||3.2<=c("esri-iphone")||2.1<=c("esri-android"));c.add("esri-transforms3d",p||10<=a||12<=k||4<=n||3.2<=c("esri-iphone")||3<=c("esri-android"));c.add("esri-url-encodes-apostrophe", function(){var a=window.document.createElement("a");a.href="?'";return-1<a.href.indexOf("?%27")});3>c("esri-android")&&(c.add("esri-transforms",!1,!1,!0),c.add("esri-transitions",!1,!1,!0),c.add("esri-transforms3d",!1,!1,!0));l._css=function(d){var f=c("esri-transforms3d");if(void 0!==d&&null!==d)f=d;else if(f&&(k||n&&!c("esri-iphone")))f=!1;var m=f?"translate3d(":"translate(",g=f?k?",-1px)":",0px)":")",h=f?"scale3d(":"scale(",s=f?",1)":")",u=f?"rotate3d(0,0,1,":"rotate(",F=f?"matrix3d(":"matrix(", v=f?",0,0,":",",t=f?",0,0,0,0,1,0,":",",p=f?",0,1)":")";return{names:{transition:q&&"-webkit-transition"||a&&"MozTransition"||r&&"OTransition"||b&&"msTransition"||"transition",transform:q&&"-webkit-transform"||a&&"MozTransform"||r&&"OTransform"||b&&"msTransform"||"transform",transformName:q&&"-webkit-transform"||a&&"-moz-transform"||r&&"-o-transform"||b&&"-ms-transform"||"transform",origin:q&&"-webkit-transform-origin"||a&&"MozTransformOrigin"||r&&"OTransformOrigin"||b&&"msTransformOrigin"||"transformOrigin", endEvent:q&&"webkitTransitionEnd"||a&&"transitionend"||r&&"oTransitionEnd"||b&&"MSTransitionEnd"||"transitionend"},translate:function(a,h){return m+a+"px,"+h+"px"+g},scale:function(a){return h+a+","+a+s},rotate:function(a){return u+a+"deg)"},matrix:function(h){return F+h.xx+","+h.xy+v+h.yx+","+h.yy+t+h.dx.toFixed(10)+(a?"px,":",")+h.dy.toFixed(10)+(a?"px":"")+p},getScaleFromMatrix:function(a){if(!a)return 1;a=a.toLowerCase();var h=-1<a.indexOf("matrix3d")?"matrix3d(":"matrix(";return Number(a.substring(h.length, a.indexOf(",")))}}};return c})},"dojo/dom-style":function(){define(["./sniff","./dom"],function(c,l){function a(a,b,g){b=b.toLowerCase();if(c("ie")||c("trident")){if("auto"==g){if("height"==b)return a.offsetHeight;if("width"==b)return a.offsetWidth}if("fontweight"==b)switch(g){case 700:return"bold";default:return"normal"}}b in d||(d[b]=t.test(b));return d[b]?q(a,g):g}var b,p={};b=c("webkit")?function(a){var b;if(1==a.nodeType){var g=a.ownerDocument.defaultView;b=g.getComputedStyle(a,null);!b&&a.style&& (a.style.display="",b=g.getComputedStyle(a,null))}return b||{}}:c("ie")&&(9>c("ie")||c("quirks"))?function(a){return 1==a.nodeType&&a.currentStyle?a.currentStyle:{}}:function(a){return 1==a.nodeType?a.ownerDocument.defaultView.getComputedStyle(a,null):{}};p.getComputedStyle=b;var q;q=c("ie")?function(a,b){if(!b)return 0;if("medium"==b)return 4;if(b.slice&&"px"==b.slice(-2))return parseFloat(b);var g=a.style,h=a.runtimeStyle,s=g.left,d=h.left;h.left=a.currentStyle.left;try{g.left=b,b=g.pixelLeft}catch(e){b= 0}g.left=s;h.left=d;return b}:function(a,b){return parseFloat(b)||0};p.toPixelValue=q;var r=function(a,b){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(g){return b?{}:null}},k=9>c("ie")||10>c("ie")&&c("quirks")?function(a){try{return r(a).Opacity/100}catch(b){return 1}}:function(a){return b(a).opacity},n=9>c("ie")||10>c("ie")&&c("quirks")?function(a,b){""===b&&(b=1);var g=100_b;1===b?(a.style.zoom="",r(a)&&(a.style.filter=a.style.filter.replace(/\s_progid:DXImageTransform.Microsoft.Alpha([^)]+?)/i, ""))):(a.style.zoom=1,r(a)?r(a,1).Opacity=g:a.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+g+")",r(a,1).Enabled=!0);if("tr"==a.tagName.toLowerCase())for(g=a.firstChild;g;g=g.nextSibling)"td"==g.tagName.toLowerCase()&&n(g,b);return b}:function(a,b){return a.style.opacity=b},d={left:!0,top:!0},t=/margin|padding|width|height|max|min|offset/,e={cssFloat:1,styleFloat:1,"float":1};p.get=function(b,d){var g=l.byId(b),h=arguments.length;if(2==h&&"opacity"==d)return k(g);d=e[d]?"cssFloat"in g.style?"cssFloat":"styleFloat":d;var s=p.getComputedStyle(g);return 1==h?s:a(g,d,s[d]||g.style[d])};p.set=function(a,b,g){var h=l.byId(a),s=arguments.length,d="opacity"==b;b=e[b]?"cssFloat"in h.style?"cssFloat":"styleFloat":b;if(3==s)return d?n(h,g):h.style[b]=g;for(var c in b)p.set(a,c,b[c]);return p.getComputedStyle(h)};return p})},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query","./json"],function(c,l,a,b){var p={fieldToObject:function(a){var b=null;if(a=l.byId(a)){var c= a.name,n=(a.type||"").toLowerCase();if(c&&n&&!a.disabled)if("radio"==n||"checkbox"==n)a.checked&&(b=a.value);else if(a.multiple){b=[];for(a=[a.firstChild];a.length;)for(c=a.pop();c;c=c.nextSibling)if(1==c.nodeType&&"option"==c.tagName.toLowerCase())c.selected&&b.push(c.value);else{c.nextSibling&&a.push(c.nextSibling);c.firstChild&&a.push(c.firstChild);break}}else b=a.value}return b},toObject:function(a){var b={};a=l.byId(a).elements;for(var k=0,n=a.length;k<n;++k){var d=a[k],t=d.name,e=(d.type||"").toLowerCase(); if(t&&e&&0>"file|submit|image|reset|button".indexOf(e)&&!d.disabled){var f=b,m=t,d=p.fieldToObject(d);if(null!==d){var g=f[m];"string"==typeof g?f[m]=[g,d]:c.isArray(g)?g.push(d):f[m]=d}"image"==e&&(b[t+".x"]=b[t+".y"]=b[t].x=b[t].y=0)}}return b},toQuery:function(b){return a.objectToQuery(p.toObject(b))},toJson:function(a,c){return b.stringify(p.toObject(a),null,c?4:0)}};return p})},"esri/kernel":function(){define(["dojo/_base/kernel","dojo/_base/config","dojo/has"],function(c,l,a){c=window.location; a=c.pathname;a={version:"3.14",_appBaseUrl:c.protocol+"//"+c.host+a.substring(0,a.lastIndexOf(a.split("/")[a.split("/").length-1]))};l.noGlobals||(window.esri=a);(a.dijit=a.dijit||{})._arcgisUrl=("file:"===c.protocol?"http:":c.protocol)+"//www.arcgis.com/sharing/rest";return a})},"dojo/promise/Promise":function(){define(["../_base/lang"],function(c){function l(){throw new TypeError("abstract");}return c.extend(function(){},{then:function(a,b,c){l()},cancel:function(a,b){l()},isResolved:function(){l()}, isRejected:function(){l()},isFulfilled:function(){l()},isCanceled:function(){l()},always:function(a){return this.then(a,a)},otherwise:function(a){return this.then(null,a)},trace:function(){return this},traceRejected:function(){return this},toString:function(){return"[object Promise]"}})})},"esri/geometry/normalizeUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/_base/Deferred dojo/has ../kernel ../config ../deferredUtils ./Polyline ./Polygon ./webMercatorUtils ./jsonUtils".split(" "), function(c,l,a,b,p,q,r,k,n,d,t){function e(a,b){return Math.ceil((a-b)/(2_b))}function f(a,b){var h=a.paths||a.rings,g,s,d=h.length,f;for(g=0;g<d;g++){f=h[g].length;for(s=0;s<f;s++){var e=a.getPoint(g,s);a.setPoint(g,s,e.offset(b,0))}}return a}function m(a,b){if(!(a instanceof k||a instanceof n))throw console.error("_straightLineDensify: the input geometry is neither polyline nor polygon"),Error("straightLineDensify: the input geometry is neither polyline nor polygon");var h=a instanceof k,g=[], s;c.forEach(h?a.paths:a.rings,function(a){g.push(s=[]);s.push([a[0][0],a[0][1]]);var h,d,f,e,u,c,k,m,v,n,t,F;for(u=0;u<a.length-1;u++){h=a[u][0];d=a[u][1];f=a[u+1][0];e=a[u+1][1];k=Math.sqrt((f-h)(f-h)+(e-d)_(e-d));m=(e-d)/k;v=(f-h)/k;n=k/b;if(1<n){for(c=1;c<=n-1;c++)F=c_b,t=v_F+h,F=m_F+d,s.push([t,F]);c=(k+Math.floor(n-1)_b)/2;t=v_c+h;F=mc+d;s.push([t,F])}s.push([f,e])}});return h?new k({paths:g,spatialReference:a.spatialReference}):new n({rings:g,spatialReference:a.spatialReference})}function g(a, b,h){b&&(a=m(a,1E6),a=d.webMercatorToGeographic(a,!0));h&&(a=f(a,h));return a}function h(a,b,h){var g=a.x||a[0],s;g>b?(s=e(g,b),a.x?a=a.offset(s-2b,0):a[0]=g+s-2b):g<h&&(s=e(g,h),a.x?a=a.offset(s-2h,0):a[0]=g+s-2_h);return a}function s(a,b){var h=-1;c.forEach(b.cutIndexes,function(g,s){var d=b.geometries[s];c.forEach(d.rings||d.paths,function(a,b){c.some(a,function(h){if(!(180>h[0])){h=0;var g,s=a.length,f;for(g=0;g<s;g++)f=a[g][0],h=f>h?f:h;h=Number(h.toFixed(9));h=-360_e(h,180);s=a.length; for(g=0;g<s;g++)f=d.getPoint(b,g),d.setPoint(b,g,f.offset(h,0))}return!0})});g===h?d.rings?c.forEach(d.rings,function(h){a[g]=a[g].addRing(h)}):c.forEach(d.paths,function(h){a[g]=a[g].addPath(h)}):(h=g,a[g]=d)});return a}function u(b,u,m,v){var F=new a;F.addCallbacks(m,v);u=u||q.defaults.geometryService;var p=[],r=[],z,l,x,D,H,I,M,Q,R=0;c.forEach(b,function(a){if(a)if(z||(z=a.spatialReference,l=z._getInfo(),D=(x=z._isWebMercator())?2.0037508342788905E7:180,H=x?-2.0037508342788905E7:-180,I=x?102100: 4326,M=new k({paths:[[[D,H],[D,D]]],spatialReference:{wkid:I}}),Q=new k({paths:[[[H,H],[H,D]]],spatialReference:{wkid:I}})),l){var b=t.fromJson(a.toJson()),s=a.getExtent();"point"===a.type?p.push(h(b,D,H)):"multipoint"===a.type?(b.points=c.map(b.points,function(a){return h(a,D,H)}),p.push(b)):"extent"===a.type?(b=s._normalize(null,null,l),p.push(b.rings?new n(b):b)):s?(a=e(s.xmin,H)2D,b=0===a?b:f(b,a),s=s.offset(a,0),s.intersects(M)&&s.xmax!==D?(R=s.xmax>R?s.xmax:R,b=g(b,x),r.push(b),p.push("cut")): s.intersects(Q)&&s.xmin!==H?(R=s.xmax_2_D>R?s.xmax_2D:R,b=g(b,x,360),r.push(b),p.push("cut")):p.push(b)):p.push(b)}else p.push(a);else p.push(a)});m=new k;v=e(R,D);for(var S=-90,T=v;0<v;){var P=-180+360v;m.addPath([[P,S],[P,-1S]]);S*=-1;v--}0<r.length&&0<T?u?u.cut(r,m,function(a){r=s(r,a);var h=[];c.forEach(p,function(a,g){if("cut"===a){var s=r.shift();b[g].rings&&1<b[g].rings.length&&s.rings.length>=b[g].rings.length?(p[g]="simplify",h.push(s)):p[g]=!0===x?d.geographicToWebMercator(s):s}});0< h.length?u.simplify(h,function(a){c.forEach(p,function(b,h){"simplify"===b&&(p[h]=!0===x?d.geographicToWebMercator(a.shift()):a.shift())});F.callback(p)},function(a){F.errback(a)}):F.callback(p)},function(a){F.errback(a)}):F.errback(Error("esri.geometry.normalizeCentralMeridian: 'geometryService' argument is missing.")):(c.forEach(p,function(a,b){if("cut"===a){var h=r.shift();p[b]=!0===x?d.geographicToWebMercator(h):h}}),F.callback(p));return F}function F(a,b,h,g){var s=!1,d;l.isObject(a)&&a&&(l.isArray(a)? a.length&&((d=a[0]&&a[0].declaredClass)&&-1!==d.indexOf("Graphic")?(a=c.map(a,function(a){return a.geometry}),s=a.length?!0:!1):d&&-1!==d.indexOf("esri.geometry.")&&(s=!0)):(d=a.declaredClass)&&-1!==d.indexOf("FeatureSet")?(a=c.map(a.features||[],function(a){return a.geometry}),s=a.length?!0:!1):d&&-1!==d.indexOf("esri.geometry.")&&(s=!0));s&&b.push({index:h,property:g,value:a})}function v(a,b){var h=[];c.forEach(b,function(b){var g=b.i,s=a[g];b=b.p;var d;if(l.isObject(s)&&s)if(b)if(""===b[0])for(d in s)s.hasOwnProperty(d)&& F(s[d],h,g,d);else c.forEach(b,function(a){F(l.getObject(a,!1,s),h,g,a)});else F(s,h,g)});return h}function z(a,b){var h=0,g={};c.forEach(b,function(b){var s=b.index,d=b.property,f=b.value,e=f.length||1,u=a.slice(h,h+e);l.isArray(f)||(u=u[0]);h+=e;delete b.value;d?(g[s]=g[s]||{},g[s][d]=u):g[s]=u});return g}return{normalizeCentralMeridian:u,_foldCutResults:s,_prepareGeometryForCut:g,_offsetMagnitude:e,_pointNormalization:h,_updatePolyGeometry:f,_straightLineDensify:m,_createWrappers:function(b){var h= l.isObject(b)?b.prototype:l.getObject(b+".prototype");c.forEach(h.msigns,function(b){var g=h[b.n];h[b.n]=function(){var h=this,s=[],d,f=new a(r._dfdCanceller);b.f&&r._fixDfd(f);for(d=0;d<b.c;d++)s[d]=arguments[d];var e={dfd:f};s.push(e);var k,m=[],n;h.normalization&&!h._isTable&&(k=v(s,b.a),c.forEach(k,function(a){m=m.concat(a.value)}),m.length&&(n=u(m)));n?(f._pendingDfd=n,n.addCallbacks(function(a){f.canceled||(e.assembly=z(a,k),f._pendingDfd=g.apply(h,s))},function(a){var g=h.declaredClass;g&& -1!==g.indexOf("FeatureLayer")?h._resolve([a],null,s[b.e],f,!0):h._errorHandler(a,s[b.e],f)})):f._pendingDfd=g.apply(h,s);return f}})},_disassemble:v,_addToBucket:F,_reassemble:z}})},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has","../selector/_loader"],function(c,l,a,b){function p(a){var b=d[a.options.handleAs];a.data=b?b(a):a.data||a.text;return a}b.add("activex","undefined"!==typeof ActiveXObject);b.add("dom-parser",function(a){return"DOMParser"in a});var q;if(b("activex")){var r=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"],k;q=function(d){function e(a){try{var b=new ActiveXObject(a);b.async=!1;b.loadXML(c);f=b;k=a}catch(s){return!1}return!0}var f=d.data,c=d.text;f&&(b("dom-qsa2.1")&&!f.querySelectorAll&&b("dom-parser"))&&(f=(new DOMParser).parseFromString(c,"application/xml"));if(!f||!f.documentElement)(!k||!e(k))&&a.some(r,e);return f}}var n=function(a){return!b("native-xhr2-blob")&&"blob"=== a.options.handleAs&&"undefined"!==typeof Blob?new Blob([a.xhr.response],{type:a.xhr.getResponseHeader("Content-Type")}):a.xhr.response},d={javascript:function(a){return l.eval(a.text||"")},json:function(a){return c.parse(a.text||null)},xml:q,blob:n,arraybuffer:n,document:n};p.register=function(a,b){d[a]=b};return p})},"dojo/aspect":function(){define([],function(){function c(a,c,d,p){var e=a[c],f="around"==c,m;if(f){var g=d(function(){return e.advice(this,arguments)});m={remove:function(){g&&(g=a= d=null)},advice:function(a,b){return g?g.apply(a,b):e.advice(a,b)}}}else m={remove:function(){if(m.advice){var b=m.previous,g=m.next;!g&&!b?delete a[c]:(b?b.next=g:a[c]=g,g&&(g.previous=b));a=d=m.advice=null}},id:b++,advice:d,receiveArguments:p};if(e&&!f)if("after"==c){for(;e.next&&(e=e.next););e.next=m;m.previous=e}else"before"==c&&(a[c]=m,m.next=e,e.previous=m);else a[c]=m;return m}function l(k){return function(n,d,p,e){var f=n[d],m;if(!f||f.target!=n)n[d]=m=function(){for(var g=b,h=arguments,s= m.before;s;)h=s.advice.apply(this,h)||h,s=s.next;if(m.around)var d=m.around.advice(this,h);for(s=m.after;s&&s.id<g;){if(s.receiveArguments)var f=s.advice.apply(this,h),d=f===a?d:f;else d=s.advice.call(this,d,h);s=s.next}return d},f&&(m.around={advice:function(a,b){return f.apply(a,b)}}),m.target=n;n=c(m||f,k,p,e);p=null;return n}}var a,b=0,p=l("after"),q=l("before"),r=l("around");return{before:q,around:r,after:p}})},"dojo/cldr/supplemental":function(){define(["../_base/lang","../i18n"],function(c, l){var a={};c.setObject("dojo.cldr.supplemental",a);a.getFirstDayOfWeek=function(b){b={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}[a._region(b)];return void 0=== b?1:b};a._region=function(a){a=l.normalizeLocale(a);a=a.split("-");var c=a[1];c?4==c.length&&(c=a[2]):c={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"}[a[0]];return c};a.getWeekend=function(b){var c=a._region(b);b={"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}[c];c={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}[c];void 0===b&&(b=6);void 0===c&&(c=0);return{start:b,end:c}}; return a})},"esri/geometry/scaleUtils":function(){define("dojo/_base/lang dojo/has ../kernel ../config ../lang ../WKIDUnitConversion".split(" "),function(c,l,a,b,p,q){var r=6370997_Math.PI/180,k=b.defaults,n={getUnitValueForSR:function(a){return this.getUnitValue(a)||r},getUnitValue:function(a){var b,e,f;a&&("object"===typeof a?(b=a.wkid,e=a.wkt):"number"===typeof a?b=a:"string"===typeof a&&(e=a));b?f=q.values[q[b]]:e&&-1!==e.search(/^PROJCS/i)&&(a=/UNIT[([^]]+)]]$/i.exec(e))&&a[1]&&(f=parseFloat(a[1].split(",")[1])); return f},getScale:function(a,b,e){var f,c,g;1<arguments.length&&p.isDefined(b)&&!b.declaredClass?(f=a,c=b,b=null,g=n.getUnitValue(e)):(f=b||a.extent,c=a.width,g=n.getUnitValue(f&&f.spatialReference));return f&&c?39.37(f.getWidth()/c(g||r))k.screenDPI:0},getExtentForScale:function(a,b,e){e=e||a.extent;var f;f=n.getUnitValue(a.spatialReference);return e.expand(ba.width/(39.37(f||r)k.screenDPI)/e.getWidth())}};return n})},"dojo/errors/CancelError":function(){define(["./create"],function(c){return c("CancelError", null,null,{dojoType:"cancel"})})},"dojo/topic":function(){define(["./Evented"],function(c){var l=new c;return{publish:function(a,b){return l.emit.apply(l,arguments)},subscribe:function(a,b){return l.on.apply(l,arguments)}}})},"esri/deferredUtils":function(){define(["dojo/_base/lang","dojo/has","./kernel"],function(c,l,a){return{_dfdCanceller:function(a){a.canceled=!0;var c=a._pendingDfd;-1===a.fired&&(c&&-1===c.fired)&&c.cancel();a._pendingDfd=null},_fixDfd:function(a){var c=a.then;a.then=function(a, b,k){if(a){var n=a;a=function(a){return a&&a._argsArray?n.apply(null,a):n(a)}}return c.call(this,a,b,k)};return a},_resDfd:function(a,c,q){var r=c.length;1===r?q?a.errback(c[0]):a.callback(c[0]):1<r?(c._argsArray=!0,a.callback(c)):a.callback()}}})},"esri/geometry/jsonUtils":function(){define("dojo/_base/lang dojo/has ../kernel ./Point ./Polyline ./Polygon ./Multipoint ./Extent".split(" "),function(c,l,a,b,p,q,r,k){return{fromJson:function(a){if(void 0!==a.x&&void 0!==a.y)return new b(a);if(void 0!== a.paths)return new p(a);if(void 0!==a.rings)return new q(a);if(void 0!==a.points)return new r(a);if(void 0!==a.xmin&&void 0!==a.ymin&&void 0!==a.xmax&&void 0!==a.ymax)return new k(a)},getJsonType:function(a){return a instanceof b?"esriGeometryPoint":a instanceof p?"esriGeometryPolyline":a instanceof q?"esriGeometryPolygon":a instanceof k?"esriGeometryEnvelope":a instanceof r?"esriGeometryMultipoint":null},getGeometryType:function(a){return"esriGeometryPoint"===a?b:"esriGeometryPolyline"===a?p:"esriGeometryPolygon"=== a?q:"esriGeometryEnvelope"===a?k:"esriGeometryMultipoint"===a?r:null}}})},"esri/srUtils":function(){define(["./SpatialReference","./ImageSpatialReference","./kernel","./sniff","dojo/_base/lang"],function(c,l,a,b,p){function q(a){var b=!1;if(a&&(a.ics||a.icsid))b=!0;return b}return{isICS:q,createSpatialReference:function(a){var b=null;a&&(b=q(a)?new l(a):new c(a));return b}}})},"dojo/_base/connect":function(){define("./kernel ../on ../topic ../aspect ./event ../mouse ./sniff ./lang ../keys".split(" "), function(c,l,a,b,p,q,r,k){function n(a,g,f,d,e){d=k.hitch(f,d);if(!a||!a.addEventListener&&!a.attachEvent)return b.after(a||c.global,g,d,!0);"string"==typeof g&&"on"==g.substring(0,2)&&(g=g.substring(2));a||(a=c.global);if(!e)switch(g){case "keypress":g=m;break;case "mouseenter":g=q.enter;break;case "mouseleave":g=q.leave}return l(a,g,d,e)}function d(a){a.keyChar=a.charCode?String.fromCharCode(a.charCode):"";a.charOrCode=a.keyChar||a.keyCode}r.add("events-keypress-typed",function(){var a={charCode:0}; try{a=document.createEvent("KeyboardEvent"),(a.initKeyboardEvent||a.initKeyEvent).call(a,"keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(b){}return 0==a.charCode&&!r("opera")});var t={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},e=r("mac")?"metaKey":"ctrlKey",f=function(a,b){var g=k.mixin({},a,b);d(g);g.preventDefault=function(){a.preventDefault()};g.stopPropagation=function(){a.stopPropagation()};return g},m;m=r("events-keypress-typed")?function(a, b){var g=l(a,"keydown",function(a){var g=a.keyCode,h=13!=g&&32!=g&&(27!=g||!r("ie"))&&(48>g||90<g)&&(96>g||111<g)&&(186>g||192<g)&&(219>g||222<g)&&229!=g;if(h||a.ctrlKey){h=h?0:g;if(a.ctrlKey){if(3==g||13==g)return b.call(a.currentTarget,a);h=95<h&&106>h?h-48:!a.shiftKey&&65<=h&&90>=h?h+32:t[h]||h}g=f(a,{type:"keypress",faux:!0,charCode:h});b.call(a.currentTarget,g);if(r("ie"))try{a.keyCode=g.keyCode}catch(d){}}}),d=l(a,"keypress",function(a){var g=a.charCode;a=f(a,{charCode:32<=g?g:0,faux:!0});return b.call(this, a)});return{remove:function(){g.remove();d.remove()}}}:r("opera")?function(a,b){return l(a,"keypress",function(a){var g=a.which;3==g&&(g=99);g=32>g&&!a.shiftKey?0:g;a.ctrlKey&&(!a.shiftKey&&65<=g&&90>=g)&&(g+=32);return b.call(this,f(a,{charCode:g}))})}:function(a,b){return l(a,"keypress",function(a){d(a);return b.call(this,a)})};var g={_keypress:m,connect:function(a,b,g,d,f){var e=arguments,c=[],k=0;c.push("string"==typeof e[0]?null:e[k++],e[k++]);var m=e[k+1];c.push("string"==typeof m||"function"== typeof m?e[k++]:null,e[k++]);for(m=e.length;k<m;k++)c.push(e[k]);return n.apply(this,c)},disconnect:function(a){a&&a.remove()},subscribe:function(b,g,d){return a.subscribe(b,k.hitch(g,d))},publish:function(b,g){return a.publish.apply(a,[b].concat(g))},connectPublisher:function(a,b,d){var f=function(){g.publish(a,arguments)};return d?g.connect(b,d,f):g.connect(b,f)},isCopyKey:function(a){return a[e]}};g.unsubscribe=g.disconnect;k.mixin(c,g);return g})},"dojo/_base/config":function(){define(["../has", "require"],function(c,l){var a={},b=l.rawConfig,p;for(p in b)a[p]=b[p];if(!a.locale&&"undefined"!=typeof navigator&&(b=navigator.language||navigator.userLanguage))a.locale=b.toLowerCase();return a})},"dojo/selector/_loader":function(){define(["../has","require"],function(c,l){var a=document.createElement("div");c.add("dom-qsa2.1",!!a.querySelectorAll);c.add("dom-qsa3",function(){try{return a.innerHTML="\x3cp class\x3d'TEST'\x3e\x3c/p\x3e",1==a.querySelectorAll(".TEST:empty").length}catch(b){}});var b; return{load:function(a,q,r,k){k=l;a="default"==a?c("config-selectorEngine")||"css3":a;a="css2"==a||"lite"==a?"./lite":"css2.1"==a?c("dom-qsa2.1")?"./lite":"./acme":"css3"==a?c("dom-qsa3")?"./lite":"./acme":"acme"==a?"./acme":(k=q)&&a;if("?"==a.charAt(a.length-1)){a=a.substring(0,a.length-1);var n=!0}if(n&&(c("dom-compliant-qsa")||b))return r(b);k([a],function(d){"./lite"!=a&&(b=d);r(d)})}}})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(c,l,a){function b(a,b){throw Error("declare"+ (b?" "+b:"")+": "+a);}function p(a,g,h){var s,d,f,e,c,u,k,m=this._inherited=this._inherited||{};"string"==typeof a&&(s=a,a=g,g=h);h=0;e=a.callee;(s=s||e.nom)||b("can't deduce a name to call inherited()",this.declaredClass);c=this.constructor._meta;f=c.bases;k=m.p;if(s!=B){if(m.c!==e&&(k=0,u=f[0],c=u._meta,c.hidden[s]!==e)){(d=c.chains)&&"string"==typeof d[s]&&b("calling chained method with inherited: "+s,this.declaredClass);do if(c=u._meta,d=u.prototype,c&&(d[s]===e&&d.hasOwnProperty(s)||c.hidden[s]=== e))break;while(u=f[++k]);k=u?k:-1}if(u=f[++k])if(d=u.prototype,u._meta&&d.hasOwnProperty(s))h=d[s];else{e=v[s];do if(d=u.prototype,(h=d[s])&&(u._meta?d.hasOwnProperty(s):h!==e))break;while(u=f[++k])}h=u&&h||v[s]}else{if(m.c!==e&&(k=0,(c=f[0]._meta)&&c.ctor!==e)){d=c.chains;for((!d||"manual"!==d.constructor)&&b("calling chained constructor with inherited",this.declaredClass);(u=f[++k])&&!((c=u._meta)&&c.ctor===e););k=u?k:-1}for(;(u=f[++k])&&!(h=(c=u._meta)?c.ctor:u););h=u&&h}m.c=h;m.p=k;if(h)return!0=== g?h:h.apply(this,g||a)}function q(a,b){return"string"==typeof a?this.inherited(a,b,!0):this.inherited(a,!0)}function r(a,b,g){var h=this.getInherited(a,b);if(h)return h.apply(this,g||b||a)}function k(a){for(var b=this.constructor._meta.bases,g=0,h=b.length;g<h;++g)if(b[g]===a)return!0;return this instanceof a}function n(b,g){for(var h in g)h!=B&&g.hasOwnProperty(h)&&(b[h]=g[h]);if(l("bug-for-in-skips-shadowed"))for(var s=a._extraNames,d=s.length;d;)h=s[--d],h!=B&&g.hasOwnProperty(h)&&(b[h]=g[h])} function d(a){u.safeMixin(this.prototype,a);return this}function t(a,b){a instanceof Array||"function"==typeof a||(b=a,a=void 0);b=b||{};a=a||[];return u([this].concat(a),b)}function e(a,b){return function(){var g=arguments,h=g,d=g[0],f,e;e=a.length;var c;if(!(this instanceof g.callee))return s(g);if(b&&(d&&d.preamble||this.preamble)){c=Array(a.length);c[0]=g;for(f=0;;){if(d=g[0])(d=d.preamble)&&(g=d.apply(this,g)||g);d=a[f].prototype;(d=d.hasOwnProperty("preamble")&&d.preamble)&&(g=d.apply(this, g)||g);if(++f==e)break;c[f]=g}}for(f=e-1;0<=f;--f)d=a[f],(d=(e=d._meta)?e.ctor:d)&&d.apply(this,c?c[f]:g);(d=this.postscript)&&d.apply(this,h)}}function f(a,b){return function(){var g=arguments,h=g,d=g[0];if(!(this instanceof g.callee))return s(g);b&&(d&&(d=d.preamble)&&(h=d.apply(this,h)||h),(d=this.preamble)&&d.apply(this,h));a&&a.apply(this,g);(d=this.postscript)&&d.apply(this,g)}}function m(a){return function(){var b=arguments,g=0,h,d;if(!(this instanceof b.callee))return s(b);for(;h=a[g];++g)if(h= (d=h._meta)?d.ctor:h){h.apply(this,b);break}(h=this.postscript)&&h.apply(this,b)}}function g(a,b,g){return function(){var h,d,s=0,f=1;g&&(s=b.length-1,f=-1);for(;h=b[s];s+=f)d=h._meta,(h=(d?d.hidden:h.prototype)[a])&&h.apply(this,arguments)}}function h(a){y.prototype=a.prototype;a=new y;y.prototype=null;return a}function s(a){var b=a.callee,g=h(b);b.apply(g,a);return g}function u(s,c,r){"string"!=typeof s&&(r=c,c=s,s="");r=r||{};var l,y,x,D,H,I,M,Q=1,R=c;if("[object Array]"==z.call(c)){Q=s;x=[];D= [{cls:0,refs:[]}];I={};for(var S=1,T=c.length,P=0,N,U,L,O;P<T;++P){(N=c[P])?"[object Function]"!=z.call(N)&&b("mixin #"+P+" is not a callable constructor.",Q):b("mixin #"+P+" is unknown. Did you use dojo.require to pull it in?",Q);U=N._meta?N.meta.bases:[N];L=0;for(N=U.length-1;0<=N;--N)O=U[N].prototype,O.hasOwnProperty("declaredClass")||(O.declaredClass="uniqName"+J++),O=O.declaredClass,I.hasOwnProperty(O)||(I[O]={count:0,refs:[],cls:U[N]},++S),O=I[O],L&&L!==O&&(O.refs.push(L),++L.count),L=O;++L.count; D[0].refs.push(L)}for(;D.length;){L=D.pop();x.push(L.cls);for(--S;y=L.refs,1==y.length;){L=y[0];if(!L||--L.count){L=0;break}x.push(L.cls);--S}if(L){P=0;for(T=y.length;P<T;++P)L=y[P],--L.count||D.push(L)}}S&&b("can't build consistent linearization",Q);N=c[0];x[0]=N?N._meta&&N===x[x.length-N._meta.bases.length]?N._meta.bases.length:1:0;I=x;x=I[0];Q=I.length-x;c=I[Q]}else I=[0],c?"[object Function]"==z.call(c)?(x=c._meta,I=I.concat(x?x.bases:c)):b("base class is not a callable constructor.",s):null!== c&&b("unknown base class. Did you use dojo.require to pull it in?",s);if(c)for(y=Q-1;;--y){l=h(c);if(!y)break;x=I[y];(x._meta?n:F)(l,x.prototype);D=new Function;D.superclass=c;D.prototype=l;c=l.constructor=D}else l={};u.safeMixin(l,r);x=r.constructor;x!==v.constructor&&(x.nom=B,l.constructor=x);for(y=Q-1;y;--y)(x=I[y]._meta)&&x.chains&&(M=F(M||{},x.chains));l["-chains-"]&&(M=F(M||{},l["-chains-"]));x=!M||!M.hasOwnProperty(B);I[0]=D=M&&"manual"===M.constructor?m(I):1==I.length?f(r.constructor,x):e(I, x);D._meta={bases:I,hidden:r,chains:M,parents:R,ctor:r.constructor};D.superclass=c&&c.prototype;D.extend=d;D.createSubclass=t;D.prototype=l;l.constructor=D;l.getInherited=q;l.isInstanceOf=k;l.inherited=C;l.inherited=p;s&&(l.declaredClass=s,a.setObject(s,D));if(M)for(H in M)l[H]&&("string"==typeof M[H]&&H!=B)&&(x=l[H]=g(H,I,"after"===M[H]),x.nom=H);return D}var F=a.mixin,v=Object.prototype,z=v.toString,y=new Function,J=0,B="constructor",C=c.config.isDebug?r:p;c.safeMixin=u.safeMixin=function(b,g){var h, d;for(h in g)if(d=g[h],(d!==v[h]||!(h in v))&&h!=B)"[object Function]"==z.call(d)&&(d.nom=h),b[h]=d;if(l("bug-for-in-skips-shadowed"))for(var s=a._extraNames,f=s.length;f;)if(h=s[--f],d=g[h],(d!==v[h]||!(h in v))&&h!=B)"[object Function]"==z.call(d)&&(d.nom=h),b[h]=d;return b};return c.declare=u})},"dojo/date/locale":function(){define("../_base/lang ../_base/array ../date ../cldr/supplemental ../i18n ../regexp ../string ../i18n!../cldr/nls/gregorian module".split(" "),function(c,l,a,b,p,q,r,k,n){function d(a, h,d,c){return c.replace(/([a-z])\1/ig,function(e){var k,m,n=e.charAt(0);e=e.length;var q=["abbr","wide","narrow"];switch(n){case "G":k=h[4>e?"eraAbbr":"eraNames"][0>a.getFullYear()?0:1];break;case "y":k=a.getFullYear();switch(e){case 1:break;case 2:if(!d.fullYear){k=String(k);k=k.substr(k.length-2);break}default:m=!0}break;case "Q":case "q":k=Math.ceil((a.getMonth()+1)/3);m=!0;break;case "M":case "L":k=a.getMonth();3>e?(k+=1,m=!0):(n=["months","L"==n?"standAlone":"format",q[e-3]].join("-"),k=h[n][k]); break;case "w":k=f._getWeekOfYear(a,0);m=!0;break;case "d":k=a.getDate();m=!0;break;case "D":k=f._getDayOfYear(a);m=!0;break;case "e":case "c":if(k=a.getDay(),2>e){k=(k-b.getFirstDayOfWeek(d.locale)+8)%7;break}case "E":k=a.getDay();3>e?(k+=1,m=!0):(n=["days","c"==n?"standAlone":"format",q[e-3]].join("-"),k=h[n][k]);break;case "a":n=12>a.getHours()?"am":"pm";k=d[n]||h["dayPeriods-format-wide-"+n];break;case "h":case "H":case "K":case "k":m=a.getHours();switch(n){case "h":k=m%12||12;break;case "H":k= m;break;case "K":k=m%12;break;case "k":k=m||24}m=!0;break;case "m":k=a.getMinutes();m=!0;break;case "s":k=a.getSeconds();m=!0;break;case "S":k=Math.round(a.getMilliseconds()_Math.pow(10,e-3));m=!0;break;case "v":case "z":if(k=f._getZone(a,!0,d))break;e=4;case "Z":n=f.getZone(a,!1,d);n=[0>=n?"+":"-",r.pad(Math.floor(Math.abs(n)/60),2),r.pad(Math.abs(n)%60,2)];4==e&&(n.splice(0,0,"GMT"),n.splice(3,0,":"));k=n.join("");break;default:throw Error("dojo.date.locale.format: invalid pattern char: "+c);}m&& (k=r.pad(k,e));return k})}function t(a,b,d,f){var e=function(a){return a};b=b||e;d=d||e;f=f||e;var c=a.match(/(''|[^'])+/g),k="'"==a.charAt(0);l.forEach(c,function(a,g){a?(c[g]=(k?d:b)(a.replace(/''/g,"'")),k=!k):c[g]=""});return f(c.join(""))}function e(a,b,d,f){f=q.escapeString(f);d.strict||(f=f.replace(" a"," ?a"));return f.replace(/([a-z])\1/ig,function(f){var e;e=f.charAt(0);var c=f.length,u="",k="";d.strict?(1<c&&(u="0{"+(c-1)+"}"),2<c&&(k="0{"+(c-2)+"}")):(u="0?",k="0{0,2}");switch(e){case "y":e= "\d{2,4}";break;case "M":case "L":e=2<c?"\S+?":"1[0-2]|"+u+"[1-9]";break;case "D":e="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+u+"[1-9][0-9]|"+k+"[1-9]";break;case "d":e="3[01]|[12]\d|"+u+"[1-9]";break;case "w":e="[1-4][0-9]|5[0-3]|"+u+"[1-9]";break;case "E":case "e":case "c":e=".+?";break;case "h":e="1[0-2]|"+u+"[1-9]";break;case "k":e="1[01]|"+u+"\d";break;case "H":e="1\d|2[0-3]|"+u+"\d";break;case "K":e="1\d|2[0-4]|"+u+"[1-9]";break;case "m":case "s":e="[0-5]\d";break;case "S":e="\d{"+c+"}"; break;case "a":c=d.am||b["dayPeriods-format-wide-am"];u=d.pm||b["dayPeriods-format-wide-pm"];e=c+"|"+u;d.strict||(c!=c.toLowerCase()&&(e+="|"+c.toLowerCase()),u!=u.toLowerCase()&&(e+="|"+u.toLowerCase()),-1!=e.indexOf(".")&&(e+="|"+e.replace(/./g,"")));e=e.replace(/./g,"\.");break;default:e="."}a&&a.push(f);return"("+e+")"}).replace(/[\xa0 ]/g,"[\s\xa0]")}var f={};c.setObject(n.id.replace(/\//g,"."),f);f._getZone=function(b,h,d){return h?a.getTimezoneName(b):b.getTimezoneOffset()};f.format= function(a,b){b=b||{};var e=p.normalizeLocale(b.locale),u=b.formatLength||"short",e=f._getGregorianBundle(e),k=[],m=c.hitch(this,d,a,e,b);if("year"==b.selector)return t(e["dateFormatItem-yyyy"]||"yyyy",m);var n;"date"!=b.selector&&(n=b.timePattern||e["timeFormat-"+u])&&k.push(t(n,m));"time"!=b.selector&&(n=b.datePattern||e["dateFormat-"+u])&&k.push(t(n,m));return 1==k.length?k[0]:e["dateTimeFormat-"+u].replace(/\'/g,"").replace(/{(\d+)}/g,function(a,b){return k[b]})};f.regexp=function(a){return f._parseInfo(a).regexp}; f._parseInfo=function(a){a=a||{};var b=p.normalizeLocale(a.locale),b=f._getGregorianBundle(b),d=a.formatLength||"short",u=a.datePattern||b["dateFormat-"+d],k=a.timePattern||b["timeFormat-"+d],d="date"==a.selector?u:"time"==a.selector?k:b["dateTimeFormat-"+d].replace(/{(\d+)}/g,function(a,b){return[k,u][b]}),m=[];return{regexp:t(d,c.hitch(this,e,m,b,a)),tokens:m,bundle:b}};f.parse=function(b,h){var d=/[\u200E\u200F\u202A\u202E]/g,e=f._parseInfo(h),c=e.tokens,k=e.bundle,d=RegExp("^"+e.regexp.replace(d, "")+"$",e.strict?"":"i").exec(b&&b.replace(d,""));if(!d)return null;var m=["abbr","wide","narrow"],n=[1970,0,1,0,0,0,0],r="",d=l.every(d,function(a,b){if(!b)return!0;var g=c[b-1],d=g.length,g=g.charAt(0);switch(g){case "y":if(2!=d&&h.strict)n[0]=a;else if(100>a)a=Number(a),g=""+(new Date).getFullYear(),d=100_g.substring(0,2),g=Math.min(Number(g.substring(2,4))+20,99),n[0]=a<g?d+a:d-100+a;else{if(h.strict)return!1;n[0]=a}break;case "M":case "L":if(2<d){if(d=k["months-"+("L"==g?"standAlone":"format")+ "-"+m[d-3]].concat(),h.strict||(a=a.replace(".","").toLowerCase(),d=l.map(d,function(a){return a.replace(".","").toLowerCase()})),a=l.indexOf(d,a),-1==a)return!1}else a--;n[1]=a;break;case "E":case "e":case "c":d=k["days-"+("c"==g?"standAlone":"format")+"-"+m[d-3]].concat();h.strict||(a=a.toLowerCase(),d=l.map(d,function(a){return a.toLowerCase()}));a=l.indexOf(d,a);if(-1==a)return!1;break;case "D":n[1]=0;case "d":n[2]=a;break;case "a":d=h.am||k["dayPeriods-format-wide-am"];g=h.pm||k["dayPeriods-format-wide-pm"]; if(!h.strict){var e=/./g;a=a.replace(e,"").toLowerCase();d=d.replace(e,"").toLowerCase();g=g.replace(e,"").toLowerCase()}if(h.strict&&a!=d&&a!=g)return!1;r=a==g?"p":a==d?"a":"";break;case "K":24==a&&(a=0);case "h":case "H":case "k":if(23<a)return!1;n[3]=a;break;case "m":n[4]=a;break;case "s":n[5]=a;break;case "S":n[6]=a}return!0}),e=+n[3];"p"===r&&12>e?n[3]=e+12:"a"===r&&12==e&&(n[3]=0);e=new Date(n[0],n[1],n[2],n[3],n[4],n[5],n[6]);h.strict&&e.setFullYear(n[0]);var q=c.join(""),t=-1!=q.indexOf("d"), q=-1!=q.indexOf("M");if(!d||q&&e.getMonth()>n[1]||t&&e.getDate()>n[2])return null;if(q&&e.getMonth()<n[1]||t&&e.getDate()<n[2])e=a.add(e,"hour",1);return e};var m=[];f.addCustomFormats=function(a,b){m.push({pkg:a,name:b})};f._getGregorianBundle=function(a){var b={};l.forEach(m,function(d){d=p.getLocalization(d.pkg,d.name,a);b=c.mixin(b,d)},this);return b};f.addCustomFormats(n.id.replace(/\/date\/locale$/,".cldr"),"gregorian");f.getNames=function(a,b,d,e){var c;e=f._getGregorianBundle(e);a=[a,d,b]; "standAlone"==d&&(d=a.join("-"),c=e[d],1==c[0]&&(c=void 0));a[1]="format";return(c||e[a.join("-")]).concat()};f.isWeekend=function(a,h){var d=b.getWeekend(h),e=(a||new Date).getDay();d.end<d.start&&(d.end+=7,e<d.start&&(e+=7));return e>=d.start&&e<=d.end};f._getDayOfYear=function(b){return a.difference(new Date(b.getFullYear(),0,1,b.getHours()),b)+1};f._getWeekOfYear=function(a,b){1==arguments.length&&(b=0);var d=(new Date(a.getFullYear(),0,1)).getDay(),e=Math.floor((f._getDayOfYear(a)+(d-b+7)%7- 1)/7);d==b&&e++;return e};return f})},"esri/geometry/webMercatorUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/has ../kernel ../SpatialReference ./Point".split(" "),function(c,l,a,b,p,q){function r(a,b,k,e){if("point"===a.type){var f=b(a.x,a.y,e);return new a.constructor(f[0],f[1],new p(k))}if("extent"===a.type){var f=b(a.xmin,a.ymin,e),m=b(a.xmax,a.ymax,e);return new a.constructor(f[0],f[1],m[0],m[1],new p(k))}if("polyline"===a.type||"polygon"===a.type){var f="polyline"===a.type, g=[],h;c.forEach(f?a.paths:a.rings,function(a){g.push(h=[]);c.forEach(a,function(a){h.push(b(a[0],a[1],e))})});return f?new a.constructor({paths:g,spatialReference:new p(k)}):new a.constructor({rings:g,spatialReference:new p(k)})}if("multipoint"===a.type){var s=[];c.forEach(a.points,function(a){s.push(b(a[0],a[1],e))});return new a.constructor({points:s,spatialReference:new p(k)})}}function k(a,b){var c=a&&(null!=a.wkid?a:a.spatialReference),e=b&&(null!=b.wkid?b:b.spatialReference);return!c||!e?!1: e.equals(c)?!0:e.canProject(c)}return{canProject:k,project:function(a,b){var c=a&&a.spatialReference,e=b&&(null!=b.wkid?b:b.spatialReference);c&&e?c.equals(e)?a=new a.constructor(a.toJson()):k(c,e)?e.isWebMercator()?a=r(a,q.lngLatToXY,{wkid:102100}):4326===e.wkid&&(a=r(a,q.xyToLngLat,{wkid:4326})):a=null:a=null;return a},lngLatToXY:q.lngLatToXY,xyToLngLat:q.xyToLngLat,geographicToWebMercator:function(a){return r(a,q.lngLatToXY,{wkid:102100})},webMercatorToGeographic:function(a,b){return r(a,q.xyToLngLat, {wkid:4326},b)}}})},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],function(c,l){return c("RequestTimeoutError",null,l,{dojoType:"timeout"})})},"dojo/json":function(){define(["./has"],function(c){var l="undefined"!=typeof JSON;c.add("json-parse",l);c.add("json-stringify",l&&'{"a":1}'==JSON.stringify({a:0},function(a,c){return c||1}));if(c("json-stringify"))return JSON;var a=function(a){return('"'+a.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:c("json-parse")?JSON.parse:function(a,c){if(c&&!/^([\s[{](?:"(?:.|[^"])"|-?\d[\d.](?:[Ee][+-]?\d+)?|null|true|false|)[\s]}](?:,|:|$))+$/.test(a))throw new SyntaxError("Invalid characters in JSON");return eval("("+a+")")},stringify:function(b,c,q){function r(b,d,t){c&&(b=c(t,b));var e;e=typeof b;if("number"==e)return isFinite(b)?b+"":"null";if("boolean"==e)return b+"";if(null===b)return"null";if("string"== typeof b)return a(b);if("function"==e||"undefined"==e)return k;if("function"==typeof b.toJSON)return r(b.toJSON(t),d,t);if(b instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/{(\w+)(+)?}/g,function(a,g,h){a=b["getUTC"+g]()+(h?1:0);return 10>a?"0"+a:a});if(b.valueOf()!==b)return r(b.valueOf(),d,t);var f=q?d+q:"",m=q?" ":"",g=q?"\n":"";if(b instanceof Array){var m=b.length,h=[];for(t=0;t<m;t++)e=r(b[t],f,t),"string"!=typeof e&&(e="null"),h.push(g+f+e);return"["+ h.join(",")+g+d+"]"}h=[];for(t in b){var s;if(b.hasOwnProperty(t)){if("number"==typeof t)s='"'+t+'"';else if("string"==typeof t)s=a(t);else continue;e=r(b[t],f,t);"string"==typeof e&&h.push(g+f+s+":"+m+e)}}return"{"+h.join(",")+g+d+"}"}var k;"string"==typeof c&&(q=c,c=null);return r(b,"","")}}})},"dojo/_base/json":function(){define(["./kernel","../json"],function(c,l){c.fromJson=function(a){return eval("("+a+")")};c._escapeString=l.stringify;c.toJsonIndentStr="\t";c.toJson=function(a,b){return l.stringify(a, function(a,b){if(b){var c=b.json||b.json;if("function"==typeof c)return c.call(b)}return b},b&&c.toJsonIndentStr)};return c})},"esri/ImageSpatialReference":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ./kernel ./lang ./SpatialReference".split(" "),function(c,l,a,b,p,q){return c(q,{declaredClass:"esri.ImageSpatialReference",constructor:function(a){a&&(l.isObject(a)&&l.mixin(this,a),this.url||console.error("ImageSpatialReference: must provide image service URL."))},icsid:null, ics:null,_isWebMercator:function(){return!1},_isWrappable:function(){return!1},equals:function(a){var b=!1;a&&(this.icsid&&a.icsid?b=this.icsid===a.icsid:this.ics&&a.ics&&(b=this.ics===a.ics));return b},toJson:function(a){var b=null,c=p.isDefined;a=c(a)?a:!0;c(this.icsid)?b={icsid:this.icsid}:c(this.ics)&&(b={ics:this.ics});c(this.url)&&(c(b)&&a)&&(b.url=this.url);return b}})})},"dojo/i18n":function(){define("./_base/kernel require ./has ./_base/array ./_base/config ./_base/lang ./base/xhr ./json module".split(" "), function(c,l,a,b,p,q,r,k,n){a.add("dojo-preload-i18n-Api",1);r=c.i18n={};var d=/(^.(^|\/)nls)(\/|$)([^\/])\/?([^\/])/,t=function(a,b,g,h){var d=[g+h];b=b.split("-");for(var e="",c=0;c<b.length;c++)if(e+=(e?"-":"")+b[c],!a||a[e])d.push(g+e+"/"+h),d.specificity=e;return d},e={},f=function(a,b,g){g=g?g.toLowerCase():c.locale;a=a.replace(/./g,"/");b=b.replace(/./g,"/");return/root/i.test(g)?a+"/nls/"+b:a+"/nls/"+g+"/"+b},m=c.getL10nName=function(a,b,g){return n.id+"!"+f(a,b,g)},g=function(a,b,g, h,d,c){a([b],function(f){var s=q.clone(f.root||f.ROOT),k=t(!f.v1x&&f,d,g,h);a(k,function(){for(var a=1;a<k.length;a++)s=q.mixin(q.clone(s),arguments[a]);e[b+"/"+d]=s;s.$locale=k.specificity;c()})})},h=function(a){var b=p.extraLocale||[],b=q.isArray(b)?b:[b];b.push(a);return b},s=function(f,s,u){if(a("dojo-preload-i18n-Api")){var m=f.split(""),n="preload"==m[1];n&&(e[f]||(e[f]=1,y(m[2],k.parse(m[3]),1,s)),u(1));if(!(m=n))v&&z.push([f,s,u]),m=v;if(m)return}f=d.exec(f);var r=f[1]+"/",t=f[5]||f[4], p=r+t,m=(f=f[5]&&f[4])||c.locale||"",F=p+"/"+m;f=f?[m]:h(m);var B=f.length,l=function(){--B||u(q.delegate(e[F]))};b.forEach(f,function(b){var h=p+"/"+b;a("dojo-preload-i18n-Api")&&J(h);e[h]?l():g(s,p,r,t,b,l)})};if(a("dojo-unit-tests"))var u=r.unitTests=[];a("dojo-preload-i18n-Api");var F=r.normalizeLocale=function(a){a=a?a.toLowerCase():c.locale;return"root"==a?"ROOT":a},v=0,z=[],y=r.preloadLocalizations=function(a,g,h,d){function f(a,b){d([a],b)}function k(a,b){for(var g=a.split("-");g.length;){if(b(g.join("-")))return; g.pop()}b("ROOT")}function u(){for(--v;!v&&z.length;)s.apply(null,z.shift())}function m(h){h=F(h);k(h,function(c){if(0<=b.indexOf(g,c)){var s=a.replace(/./g,"/")+""+c;v++;f(s,function(a){for(var b in a){var g=a[b],f=b.match(/(.+)\/([^\/]+)$/),s;if(f){s=f[2];f=f[1]+"/";g._localized=g._localized||{};var m;if("ROOT"===c){var n=m=g._localized;delete g._localized;n.root=g;e[l.toAbsMid(b)]=n}else m=g.localized,e[l.toAbsMid(f+s+"/"+c)]=g;c!==h&&function(a,b,g,f){var c=[],s=[];k(h,function(g){f[g]&&(c.push(l.toAbsMid(a+ g+"/"+b)),s.push(l.toAbsMid(a+b+"/"+g)))});c.length?(v++,d(c,function(){for(var d=0;d<c.length;d++)g=q.mixin(q.clone(g),arguments[d]),e[s[d]]=g;e[l.toAbsMid(a+b+"/"+h)]=q.clone(g);u()})):e[l.toAbsMid(a+b+"/"+h)]=g}(f,s,g,m)}}u()});return!0}return!1})}d=d||l;m();b.forEach(c.config.extraLocale,m)},J=function(){},B={},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;}"), J=function(a){for(var b,g=a.split("/"),h=c.global[g[0]],d=1;h&&d<g.length-1;h=h[g[d++]]);h&&((b=h[g[d]])||(b=h[g[d].replace(/-/g,"")]),b&&(e[a]=b));return b};r.getLocalization=function(a,b,g){var h;a=f(a,b,g);s(a,l,function(a){h=a});return h};a("dojo-unit-tests")&&u.push(function(a){a.register("tests.i18n.unit",function(a){var b;b=C("{prop:1}",J,"nonsense",B);a.is({prop:1},b);a.is(void 0,b[1]);b=C("({prop:1})",J,"nonsense",B);a.is({prop:1},b);a.is(void 0,b[1]);b=C("{'prop-x':1}",J,"nonsense",B); a.is({"prop-x":1},b);a.is(void 0,b[1]);b=C("({'prop-x':1})",J,"nonsense",B);a.is({"prop-x":1},b);a.is(void 0,b[1]);b=C("define({'prop-x':1})",J,"nonsense",B);a.is(B,b);a.is({"prop-x":1},B.result);b=C("define('some/module', {'prop-x':1})",J,"nonsense",B);a.is(B,b);a.is({"prop-x":1},B.result);b=C("this is total nonsense and should throw an error",J,"nonsense",B);a.is(b instanceof Error,!0)})});return q.mixin(r,{dynamic:!0,normalize:function(a,b){return/^./.test(a)?b(a):a},load:s,cache:e,getL10nName:m})})}, "dojo/dom-construct":function(){define("exports ./_base/kernel ./sniff ./_base/window ./dom ./dom-attr".split(" "),function(c,l,a,b,p,q){function r(a,b){var g=b.parentNode;g&&g.insertBefore(a,b)}function k(a){if("innerHTML"in a)try{a.innerHTML="";return}catch(b){}for(var g;g=a.lastChild;)a.removeChild(g)}var n={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"]},d=/<\s([\w:]+)/,t={},e=0,f="__"+l._scopeName+"ToDomId",m;for(m in n)n.hasOwnProperty(m)&&(l=n[m],l.pre="option"==m?'\x3cselect multiple\x3d"multiple"\x3e':"\x3c"+l.join("\x3e\x3c")+"\x3e",l.post="\x3c/"+l.reverse().join("\x3e\x3c/")+"\x3e");var g;8>=a("ie")&&(g=function(a){a.dojo_html5_tested="yes";var b=h("div",{innerHTML:"\x3cnav\x3ea\x3c/nav\x3e",style:{visibility:"hidden"}},a.body);1!==b.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(b){a.createElement(b)});s(b)});c.toDom=function(h,c){c=c||b.doc;var s=c[f];s||(c[f]=s=++e+"",t[s]=c.createElement("div"));8>=a("ie")&&!c.dojo_html5tested&&c.body&&g(c);h+="";var k=h.match(d),m=k?k[1].toLowerCase():"",s=t[s];if(k&&n[m]){k=n[m];s.innerHTML=k.pre+h+k.post;for(k=k.length;k;--k)s=s.firstChild}else s.innerHTML=h;if(1==s.childNodes.length)return s.removeChild(s.firstChild);for(m=c.createDocumentFragment();k=s.firstChild;)m.appendChild(k);return m};c.place=function(a,b,g){b=p.byId(b); "string"==typeof a&&(a=/^\s*</.test(a)?c.toDom(a,b.ownerDocument):p.byId(a));if("number"==typeof g){var h=b.childNodes;!h.length||h.length<=g?b.appendChild(a):r(a,h[0>g?0:g])}else switch(g){case "before":r(a,b);break;case "after":g=a;(h=b.parentNode)&&(h.lastChild==b?h.appendChild(g):h.insertBefore(g,b.nextSibling));break;case "replace":b.parentNode.replaceChild(a,b);break;case "only":c.empty(b);b.appendChild(a);break;case "first":if(b.firstChild){r(a,b.firstChild);break}default:b.appendChild(a)}return a}; var h=c.create=function(a,g,h,d){var e=b.doc;h&&(h=p.byId(h),e=h.ownerDocument);"string"==typeof a&&(a=e.createElement(a));g&&q.set(a,g);h&&c.place(a,h,d);return a};c.empty=function(a){k(p.byId(a))};var s=c.destroy=function(b){if(b=p.byId(b)){var g=b;b=b.parentNode;g.firstChild&&k(g);b&&(a("ie")&&b.canHaveChildren&&"removeNode"in g?g.removeNode(!1):b.removeChild(g))}}})},"dojo/sniff":function(){define(["./has"],function(c){var l=navigator,a=l.userAgent,l=l.appVersion,b=parseFloat(l);c.add("air",0<= a.indexOf("AdobeAIR"));c.add("msapp",parseFloat(a.split("MSAppHost/")[1])||void 0);c.add("khtml",0<=l.indexOf("Konqueror")?b:void 0);c.add("webkit",parseFloat(a.split("WebKit/")[1])||void 0);c.add("chrome",parseFloat(a.split("Chrome/")[1])||void 0);c.add("safari",0<=l.indexOf("Safari")&&!c("chrome")?parseFloat(l.split("Version/")[1]):void 0);c.add("mac",0<=l.indexOf("Macintosh"));c.add("quirks","BackCompat"==document.compatMode);if(a.match(/(iPhone|iPod|iPad)/)){var p=RegExp.$1.replace(/P/,"p"),q= a.match(/OS ([\d]+)/)?RegExp.$1:"1",q=parseFloat(q.replace(//,".").replace(//g,""));c.add(p,q);c.add("ios",q)}c.add("android",parseFloat(a.split("Android ")[1])||void 0);c.add("bb",(0<=a.indexOf("BlackBerry")||0<=a.indexOf("BB10"))&&parseFloat(a.split("Version/")[1])||void 0);c.add("trident",parseFloat(l.split("Trident/")[1])||void 0);c.add("svg","undefined"!==typeof SVGAngle);c("webkit")||(0<=a.indexOf("Opera")&&c.add("opera",9.8<=b?parseFloat(a.split("Version/")[1])||b:b),0<=a.indexOf("Gecko")&& (!c("khtml")&&!c("webkit")&&!c("trident"))&&c.add("mozilla",b),c("mozilla")&&c.add("ff",parseFloat(a.split("Firefox/")[1]||a.split("Minefield/")[1])||void 0),document.all&&!c("opera")&&(a=parseFloat(l.split("MSIE ")[1])||void 0,(l=document.documentMode)&&(5!=l&&Math.floor(a)!=l)&&(a=l),c.add("ie",a)),c.add("wii","undefined"!=typeof opera&&opera.wiiremote));return c})},"dojo/_base/event":function(){define(["./kernel","../on","../has","../dom-geometry"],function(c,l,a,b){if(l._fixEvent){var p=l._fixEvent; l._fixEvent=function(a,c){(a=p(a,c))&&b.normalizeEvent(a);return a}}var q={fix:function(a,b){return l._fixEvent?l._fixEvent(a,b):a},stop:function(b){a("dom-addeventlistener")||b&&b.preventDefault?(b.preventDefault(),b.stopPropagation()):(b=b||window.event,b.cancelBubble=!0,l._preventDefault.call(b))}};c.fixEvent=q.fix;c.stopEvent=q.stop;return q})},"dojo/Deferred":function(){define(["./has","./_base/lang","./errors/CancelError","./promise/Promise","./promise/instrumentation"],function(c,l,a,b,p){var q= Object.freeze||function(){},r=function(a,b,d,g,h){2===b&&(t.instrumentRejected&&0===a.length)&&t.instrumentRejected(d,!1,g,h);for(h=0;h<a.length;h++)k(a[h],b,d,g)},k=function(a,b,c,g){var h=a[b],s=a.deferred;if(h)try{var k=h(c);if(0===b)"undefined"!==typeof k&&d(s,b,k);else{if(k&&"function"===typeof k.then){a.cancel=k.cancel;k.then(n(s,1),n(s,2),n(s,0));return}d(s,1,k)}}catch(q){d(s,2,q)}else d(s,b,c);2===b&&t.instrumentRejected&&t.instrumentRejected(c,!!h,g,s.promise)},n=function(a,b){return function(c){d(a, b,c)}},d=function(a,b,d){if(!a.isCanceled())switch(b){case 0:a.progress(d);break;case 1:a.resolve(d);break;case 2:a.reject(d)}},t=function(d){var c=this.promise=new b,m=this,g,h,s,u=!1,n=[];Error.captureStackTrace&&(Error.captureStackTrace(m,t),Error.captureStackTrace(c,t));this.isResolved=c.isResolved=function(){return 1===g};this.isRejected=c.isRejected=function(){return 2===g};this.isFulfilled=c.isFulfilled=function(){return!!g};this.isCanceled=c.isCanceled=function(){return u};this.progress=function(a, b){if(g){if(!0===b)throw Error("This deferred has already been fulfilled.");return c}r(n,0,a,null,m);return c};this.resolve=function(a,b){if(g){if(!0===b)throw Error("This deferred has already been fulfilled.");return c}r(n,g=1,h=a,null,m);n=null;return c};var p=this.reject=function(a,b){if(g){if(!0===b)throw Error("This deferred has already been fulfilled.");return c}Error.captureStackTrace&&Error.captureStackTrace(s={},p);r(n,g=2,h=a,s,m);n=null;return c};this.then=c.then=function(a,b,d){var e= [d,a,b];e.cancel=c.cancel;e.deferred=new t(function(a){return e.cancel&&e.cancel(a)});g&&!n?k(e,g,h,s):n.push(e);return e.deferred.promise};this.cancel=c.cancel=function(b,c){if(g){if(!0===c)throw Error("This deferred has already been fulfilled.");}else{if(d){var f=d(b);b="undefined"===typeof f?b:f}u=!0;if(g){if(2===g&&h===b)return b}else return"undefined"===typeof b&&(b=new a),p(b),b}};q(c)};t.prototype.toString=function(){return"[object Deferred]"};p&&p(t);return t})},"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(c,l,a,b,p,q,r,k,n){function d(a){return void 0!==a&&null!==a}function t(a,h,e){var m=e.match(/([^(]+)(([^)]+))?/i),n=b.trim(m[1]);e=h[a];var m=l.fromJson((m[2]?b.trim(m[2]):"()").replace(/^(/,"({").replace(/)$/,"})")),q=m.utcOffset;if(-1===c.indexOf(f,n))n=b.getObject(n),b.isFunction(n)&&(e=n(e,a,h,m));else if("number"===typeof e||"string"===typeof e&&e&&!isNaN(Number(e)))switch(e=Number(e),n){case "NumberFormat":return r.format(e,m);case "DateString":a=new Date(e);if(m.local||m.systemLocale)return m.systemLocale? a.toLocaleDateString()+(m.hideTime?"":" "+a.toLocaleTimeString()):a.toDateString()+(m.hideTime?"":" "+a.toTimeString());a=a.toUTCString();m.hideTime&&(a=a.replace(/\s+\d\d\:\d\d\:\d\d\s+(utc|gmt)/i,""));return a;case "DateFormat":return a=new Date(e),d(q)&&(a=p.add(a,"minute",a.getTimezoneOffset()-q)),k.format(a,m)}return d(e)?e:""}function e(a,b){var d;if(b)for(d in a)a.hasOwnProperty(d)&&(void 0===a[d]?delete a[d]:a[d]instanceof Object&&e(a[d],!0));else for(d in a)a.hasOwnProperty(d)&&void 0=== a[d]&&delete a[d];return a}var f=["NumberFormat","DateString","DateFormat"],m=/<\/?[^>]+>/g;return{valueOf:function(a,b){for(var d in a)if(a[d]==b)return d;return null},stripTags:function(a){if(a){var b=typeof a;if("string"===b)a=a.replace(m,"");else if("object"===b)for(var d in a)(b=a[d])&&"string"===typeof b&&(b=b.replace(m,"")),a[d]=b}return a},substitute:function(a,h,e){var f,k,m;d(e)&&(b.isObject(e)?(f=e.first,k=e.dateFormat,m=e.numberFormat):f=e);if(!h||"${}"===h){h=[];for(var n in a){e=a[n]; if(k&&-1!==c.indexOf(k.properties||"",n))e=t(n,a,k.formatter||"DateString");else if(m&&-1!==c.indexOf(m.properties||"",n))e=t(n,a,m.formatter||"NumberFormat");h.push(n+" \x3d "+(d(e)?e:"")+"\x3cbr/\x3e");if(f)break}return h.join("")}return b.replace(h,b.hitch({obj:a},function(a,b){var g=b.split(":");return 1<g.length?(b=g[0],g.shift(),t(b,this.obj,g.join(":"))):k&&-1!==c.indexOf(k.properties||"",b)?t(b,this.obj,k.formatter||"DateString"):m&&-1!==c.indexOf(m.properties||"",b)?t(b,this.obj,m.formatter|| "NumberFormat"):d(this.obj[b])?this.obj[b]:""}),/\${([^}]+)}/g)},filter:function(g,h,d){h=[b.isString(g)?g.split(""):g,d||a.global,b.isString(h)?new Function("item","index","array",h):h];d={};var e;g=h[0];for(e in g)h[2].call(h[e],g[e],e,g)&&(d[e]=g[e]);return d},isDefined:d,fixJson:e}})},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(c,l){var a=/[&<>'"\/]/g,b={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;","/":"\x26#x2F;"},p={}; l.setObject("dojo.string",p);p.escape=function(c){return!c?"":c.replace(a,function(a){return b[a]})};p.rep=function(a,b){if(0>=b||!a)return"";for(var c=[];;){b&1&&c.push(a);if(!(b>>=1))break;a+=a}return c.join("")};p.pad=function(a,b,c,n){c||(c="0");a=String(a);b=p.rep(c,Math.ceil((b-a.length)/c.length));return n?a+b:b+a};p.substitute=function(a,b,k,n){n=n||c.global;k=k?l.hitch(n,k):function(a){return a};return a.replace(/\${([^\s:}]+)(?::([^\s:}]+))?}/g,function(a,c,e){a=l.getObject(c,!1, b);e&&(a=l.getObject(e,!1,n).call(n,a,c));return k(a,c).toString()})};p.trim=String.prototype.trim?l.trim:function(a){a=a.replace(/^\s+/,"");for(var b=a.length-1;0<=b;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a};return p})},"dojo/dom-prop":function(){define("exports ./_base/kernel ./sniff ./_base/lang ./dom ./dom-style ./dom-construct ./_base/connect".split(" "),function(c,l,a,b,p,q,r,k){function n(a){var b="";a=a.childNodes;for(var g=0,h;h=a[g];g++)8!=h.nodeType&&(b=1==h.nodeType? b+n(h):b+h.nodeValue);return b}var d={},t=0,e=l._scopeName+"attrid";a.add("dom-textContent",function(a,b,g){return"textContent"in g});c.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",textcontent:"textContent",valuetype:"valueType"};c.get=function(b,d){b=p.byId(b);var g=d.toLowerCase(),g=c.names[g]||d;return"textContent"==g&&!a("dom-textContent")?n(b):b[g]};c.set=function(f,m,g){f=p.byId(f);if(2==arguments.length&& "string"!=typeof m){for(var h in m)c.set(f,h,m[h]);return f}h=m.toLowerCase();h=c.names[h]||m;if("style"==h&&"string"!=typeof g)return q.set(f,g),f;if("innerHTML"==h)return a("ie")&&f.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(r.empty(f),f.appendChild(r.toDom(g,f.ownerDocument))):f[h]=g,f;if("textContent"==h&&!a("dom-textContent"))return r.empty(f),f.appendChild(f.ownerDocument.createTextNode(g)),f;if(b.isFunction(g)){var s=f[e];s||(s=t++,f[e]=s);d[s]|| (d[s]={});var u=d[s][h];if(u)k.disconnect(u);else try{delete f[h]}catch(n){}g?d[s][h]=k.connect(f,h,g):f[h]=null;return f}f[h]=g;return f}})},"dojo/keys":function(){define(["./_base/kernel","./sniff"],function(c,l){return c.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:l("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:l("mac")&&!l("air")?l("safari")?91:224:17}})},"dojo/_base/lang":function(){define(["./kernel", "../has","../sniff"],function(c,l){l.add("bug-for-in-skips-shadowed",function(){for(var a in{toString:1})return 0;return 1});var a=l("bug-for-in-skips-shadowed")?"hasOwnProperty valueOf isPrototypeOf propertyIsEnumerable toLocaleString toString constructor".split(" "):[],b=a.length,p=function(a,b,e){e||(e=a[0]&&c.scopeMap[a[0]]?c.scopeMap[a.shift()][1]:c.global);try{for(var f=0;f<a.length;f++){var k=a[f];if(!(k in e))if(b)e[k]={};else return;e=e[k]}return e}catch(g){}},q=Object.prototype.toString, r=function(a,b,e){return(e||[]).concat(Array.prototype.slice.call(a,b||0))},k=/{([^}]+)}/g,n={_extraNames:a,_mixin:function(d,c,e){var f,k,g,h={};for(f in c)if(k=c[f],!(f in d)||d[f]!==k&&(!(f in h)||h[f]!==k))d[f]=e?e(k):k;if(l("bug-for-in-skips-shadowed")&&c)for(g=0;g<b;++g)if(f=a[g],k=c[f],!(f in d)||d[f]!==k&&(!(f in h)||h[f]!==k))d[f]=e?e(k):k;return d},mixin:function(a,b){a||(a={});for(var c=1,f=arguments.length;c<f;c++)n.mixin(a,arguments[c]);return a},setObject:function(a,b,c){var f=a.split("."); a=f.pop();return(c=p(f,!0,c))&&a?c[a]=b:void 0},getObject:function(a,b,c){return p(a?a.split("."):[],b,c)},exists:function(a,b){return void 0!==n.getObject(a,!1,b)},isString:function(a){return"string"==typeof a||a instanceof String},isArray:function(a){return a&&(a instanceof Array||"array"==typeof a)},isFunction:function(a){return"[object Function]"===q.call(a)},isObject:function(a){return void 0!==a&&(null===a||"object"==typeof a||n.isArray(a)||n.isFunction(a))},isArrayLike:function(a){return a&& void 0!==a&&!n.isString(a)&&!n.isFunction(a)&&!(a.tagName&&"form"==a.tagName.toLowerCase())&&(n.isArray(a)||isFinite(a.length))},isAlien:function(a){return a&&!n.isFunction(a)&&/{\s[native code]\s_}/.test(String(a))},extend:function(a,b){for(var c=1,f=arguments.length;c<f;c++)n._mixin(a.prototype,arguments[c]);return a},_hitchArgs:function(a,b){var e=n._toArray(arguments,2),f=n.isString(b);return function(){var k=n._toArray(arguments),g=f?(a||c.global)[b]:b;return g&&g.apply(a||this,e.concat(k))}}, hitch:function(a,b){if(2<arguments.length)return n._hitchArgs.apply(c,arguments);b||(b=a,a=null);if(n.isString(b)){a=a||c.global;if(!a[b])throw['lang.hitch: scope["',b,'"] is null (scope\x3d"',a,'")'].join("");return function(){return a[b].apply(a,arguments||[])}}return!a?b:function(){return b.apply(a,arguments||[])}},delegate:function(){function a(){}return function(b,c){a.prototype=b;var f=new a;a.prototype=null;c&&n._mixin(f,c);return f}}(),_toArray:l("ie")?function(){function a(b,c,d){d=d||[]; for(c=c||0;c<b.length;c++)d.push(b[c]);return d}return function(b){return(b.item?a:r).apply(this,arguments)}}():r,partial:function(a){return n.hitch.apply(c,[null].concat(n._toArray(arguments)))},clone:function(a){if(!a||"object"!=typeof a||n.isFunction(a))return a;if(a.nodeType&&"cloneNode"in a)return a.cloneNode(!0);if(a instanceof Date)return new Date(a.getTime());if(a instanceof RegExp)return RegExp(a);var b,c,f;if(n.isArray(a)){b=[];c=0;for(f=a.length;c<f;++c)c in a&&b.push(n.clone(a[c]))}else b= a.constructor?new a.constructor:{};return n.mixin(b,a,n.clone)},trim:String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s/,"").replace(/\s\s_$/,"")},replace:function(a,b,c){return a.replace(c||k,n.isFunction(b)?b:function(a,c){return n.getObject(c,!1,b)})}};n.mixin(c,n);return n})},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(c,l,a,b){var p=c.Color=function(a){a&&this.setColor(a)};p.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:b.transparentColor||[0,0,0,0]};l.extend(p,{r:255,g:255,b:255,a:1,_set:function(a,b,c,n){this.r=a;this.g=b;this.b=c;this.a=n},setColor:function(a){l.isString(a)?p.fromString(a,this):l.isArray(a)?p.fromArray(a,this):(this._set(a.r,a.g,a.b,a.a),a instanceof p||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"#"+a.map(["r","g","b"],function(a){a=this[a].toString(16);return 2>a.length?"0"+a:a},this).join("")},toCss:function(a){var b=this.r+", "+this.g+", "+this.b;return(a?"rgba("+b+", "+this.a:"rgb("+b)+")"},toString:function(){return this.toCss(!0)}});p.blendColors=c.blendColors=function(b,c,k,n){var d=n||new p;a.forEach(["r", "g","b","a"],function(a){d[a]=b[a]+(c[a]-b[a])k;"a"!=a&&(d[a]=Math.round(d[a]))});return d.sanitize()};p.fromRgb=c.colorFromRgb=function(a,b){var c=a.toLowerCase().match(/^rgba?(([\s.,0-9]+))/);return c&&p.fromArray(c[1].split(/\s,\s_/),b)};p.fromHex=c.colorFromHex=function(b,c){var k=c||new p,n=4==b.length?4:8,d=(1<<n)-1;b=Number("0x"+b.substr(1));if(isNaN(b))return null;a.forEach(["b","g","r"],function(a){var c=b&d;b>>=n;k[a]=4==n?17_c:c});k.a=1;return k};p.fromArray=c.colorFromArray=function(a, b){var c=b||new p;c._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));isNaN(c.a)&&(c.a=1);return c.sanitize()};p.fromString=c.colorFromString=function(a,b){var c=p.named[a];return c&&p.fromArray(c,b)||p.fromRgb(a,b)||p.fromHex(a,b)};return p})},"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(c,l,a,b,p,q,r,k,n,d,t,e){var f= {type:"extent",xmin:0,ymin:0,xmax:0,ymax:0},m=c(k,{declaredClass:"esri.geometry.Extent",constructor:function(b,h,c,d,k){a.mixin(this,f);a.isObject(b)?(a.mixin(this,b),this.spatialReference&&(this.spatialReference=e.createSpatialReference(this.spatialReference))):this.update(b,h,c,d,k);this.verifySR()},getWidth:function(){return Math.abs(this.xmax-this.xmin)},getHeight:function(){return Math.abs(this.ymax-this.ymin)},getCenter:function(){return new n((this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2, this.spatialReference)},centerAt:function(a){var b=this.getCenter(),c=a.x-b.x;a=a.y-b.y;return new m(this.xmin+c,this.ymin+a,this.xmax+c,this.ymax+a,this.spatialReference)},update:function(a,b,c,d,e){this.xmin=a;this.ymin=b;this.xmax=c;this.ymax=d;this.spatialReference=e;this.clearCache();return this},offset:function(a,b){return new m(this.xmin+a,this.ymin+b,this.xmax+a,this.ymax+b,this.spatialReference)},expand:function(a){var b=(1-a)/2;a=this.getWidth()b;b=this.getHeight();return new m(this.xmin+ a,this.ymin+b,this.xmax-a,this.ymax-b,this.spatialReference)},intersects:function(a){if(!a)return!1;var b=a.type,c=this.spatialReference,e=a.spatialReference;c&&(e&&!c.equals(e)&&c._canProject(e))&&(a=c.isWebMercator()?d.geographicToWebMercator(a):d.webMercatorToGeographic(a,!0));switch(b){case "point":return this.contains(a);case "multipoint":return this._intersectsMultipoint(a);case "extent":return this._intersectsExtent(a);case "polygon":return this._intersectsPolygon(a);case "polyline":return this._intersectsPolyline(a)}}, normalize:function(){var b=this._normalize(!1,!0);a.isArray(b)||(b=[b]);return b},shiftCentralMeridian:function(){return this._normalize(!0)},_intersectsMultipoint:function(a){var b=a.points.length,c;for(c=0;c<b;c++)if(this.contains(a.getPoint(c)))return!0;return!1},_intersectsExtent:function(a){var b,c,d,e,f=!1;this.xmin<=a.xmin?(b=a.xmin,this.xmax<b?f=!0:d=Math.min(this.xmax,a.xmax)-b):(b=this.xmin,a.xmax<b?f=!0:d=Math.min(this.xmax,a.xmax)-b);this.ymin<=a.ymin?(c=a.ymin,this.ymax<c?f=!0:e=Math.min(this.ymax, a.ymax)-c):(c=this.ymin,a.ymax<c?f=!0:e=Math.min(this.ymax,a.ymax)-c);return f?null:new m(b,c,b+d,c+e,this.spatialReference)},_intersectsPolygon:function(a){var b=[this.xmin,this.ymax],c=[this.xmax,this.ymax],d=[this.xmin,this.ymin],e=[this.xmax,this.ymin],f=[b,c,d,e],b=[[d,b],[b,c],[c,e],[e,d]],d=a.rings,e=d.length,k,m=new n(0,0,this.spatialReference);k=f.length;for(c=0;c<k;c++)if(m.update(f[c][0],f[c][1]),a.contains(m))return!0;m.setSpatialReference(a.spatialReference);for(var p,r,c=0;c<e;c++)if(f= d[c],k=f.length){p=f[0];m.update(p[0],p[1]);if(this.contains(m))return!0;for(a=1;a<k;a++){r=f[a];m.update(r[0],r[1]);if(this.contains(m)||this._intersectsLine([p,r],b))return!0;p=r}}return!1},_intersectsPolyline:function(a){var b=[[[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]]],c,d=a.paths,e=d.length,f,k,m,p,r=new n(0,0,a.spatialReference);for(a=0;a<e;a++)if(f=d[a], k=f.length){m=f[0];r.update(m[0],m[1]);if(this.contains(r))return!0;for(c=1;c<k;c++){p=f[c];r.update(p[0],p[1]);if(this.contains(r)||this._intersectsLine([m,p],b))return!0;m=p}}return!1},_intersectsLine:function(a,b){var c=t._getLineIntersection2,d,e=b.length;for(d=0;d<e;d++)if(c(a,b[d]))return!0;return!1},contains:function(a){if(!a)return!1;var b=a.type;if("point"===b){var c=this.spatialReference,d=a.spatialReference,b=a.x;a=a.y;c&&(d&&!c.equals(d)&&c._canProject(d))&&(a=c.isWebMercator()?n.lngLatToXY(b, a):n.xyToLngLat(b,a,!0),b=a[0],a=a[1]);return b>=this.xmin&&b<=this.xmax&&a>=this.ymin&&a<=this.ymax}return"extent"===b?this._containsExtent(a):!1},_containsExtent:function(a){var b=a.xmin,c=a.ymin,d=a.xmax,e=a.ymax,f=a.spatialReference;a=new n(b,c,f);b=new n(b,e,f);e=new n(d,e,f);c=new n(d,c,f);return this.contains(a)&&this.contains(b)&&this.contains(e)&&this.contains(c)?!0:!1},union:function(a){return new m(Math.min(this.xmin,a.xmin),Math.min(this.ymin,a.ymin),Math.max(this.xmax,a.xmax),Math.max(this.ymax, a.ymax),this.spatialReference)},getExtent:function(){var a=this.spatialReference;return new m(this.xmin,this.ymin,this.xmax,this.ymax,a&&new r(a.toJson()))},_shiftCM:function(a){var b=this.getCacheValue("_shifted");if(!b){var b=new m(this.toJson()),c=b.spatialReference;if(a=a||c._getInfo()){var e=this._getCM(a);if(e){var f=c._isWebMercator()?d.webMercatorToGeographic(e):e;b.xmin-=e.x;b.xmax-=e.x;c._isWebMercator()||(f.x=this._normalizeX(f.x,a).x);b.setSpatialReference(new r(q.substitute({Central_Meridian:f.x}, 4326===c.wkid?a.altTemplate:a.wkTemplate)))}}this.setCacheValue("_shifted",b)}return b},_getCM:function(a){var b,c=a.valid[0];a=a.valid[1];var d=this.xmin,e=this.xmax;if(!(d>=c&&d<=a)||!(e>=c&&e<=a))b=this.getCenter();return b},_normalize:function(a,b,c){var d=new m(this.toJson()),e=d.spatialReference;if(e&&(c=c||e._getInfo())){var f=l.map(this._getParts(c),function(a){return a.extent});return 2<f.length?a?this._shiftCM(c):d.update(c.valid[0],d.ymin,c.valid[1],d.ymax,e):2===f.length?a?this._shiftCM(c): b?f:{rings:l.map(f,function(a){return[[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin]]}),spatialReference:e}:f[0]||d}return d},_getParts:function(a){var b=this.getCacheValue("_parts");if(!b){var b=[],c=this.xmin,d=this.xmax,e=this.ymin,f=this.ymax,k=this.spatialReference,n=this.getWidth(),p=c,r=d,q=0,l=0,t,w;a=a||k._getInfo();t=a.valid[0];w=a.valid[1];l=this._normalizeX(c,a);c=l.x;q=l.frameId;l=this._normalizeX(d,a);d=l.x;l=l.frameId;a=c===d&&0<n;if(n>2_w){n=new m(p< r?c:d,e,w,f,k);c=new m(t,e,p<r?d:c,f,k);w=new m(0,e,w,f,k);e=new m(t,e,0,f,k);k=[];t=[];n.contains(w)&&k.push(q);n.contains(e)&&t.push(q);c.contains(w)&&k.push(l);c.contains(e)&&t.push(l);for(f=q+1;f<l;f++)k.push(f),t.push(f);b.push({extent:n,frameIds:[q]},{extent:c,frameIds:[l]},{extent:w,frameIds:k},{extent:e,frameIds:t})}else c>d||a?b.push({extent:new m(c,e,w,f,k),frameIds:[q]},{extent:new m(t,e,d,f,k),frameIds:[l]}):b.push({extent:new m(c,e,d,f,k),frameIds:[q]});this.setCacheValue("_parts",b)}return b}, _normalizeX:function(a,b){var c=0,d=b.valid[0],e=b.valid[1],f=2_e;a>e?(c=Math.ceil(Math.abs(a-e)/f),a-=c_f):a<d&&(c=Math.ceil(Math.abs(a-d)/f),a+=c*f,c=-c);return{x:a,frameId:c}},toJson:function(){var a={xmin:this.xmin,ymin:this.ymin,xmax:this.xmax,ymax:this.ymax},b=this.spatialReference;b&&(a.spatialReference=b.toJson());return a}});m.defaultProps=f;return m})},"dojo/mouse":function(){define(["./_base/kernel","./on","./has","./dom","./_base/window"],function(c,l,a,b,p){function q(a,c){var n=function(d, n){return l(d,a,function(a){if(c)return c(a,n);if(!b.isDescendant(a.relatedTarget,d))return n.call(this,a)})};n.bubble=function(b){return q(a,function(a,c){var f=b(a.target),k=a.relatedTarget;if(f&&f!=(k&&1==k.nodeType&&b(k)))return c.call(f,a)})};return n}a.add("dom-quirks",p.doc&&"BackCompat"==p.doc.compatMode);a.add("events-mouseenter",p.doc&&"onmouseenter"in p.doc.createElement("div"));a.add("events-mousewheel",p.doc&&"onmousewheel"in p.doc);p=a("dom-quirks")&&a("ie")||!a("dom-addeventlistener")? {LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(a,b){return a.button&b},isLeft:function(a){return a.button&1},isMiddle:function(a){return a.button&4},isRight:function(a){return a.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(a,b){return a.button==b},isLeft:function(a){return 0==a.button},isMiddle:function(a){return 1==a.button},isRight:function(a){return 2==a.button}};c.mouseButtons=p;c=a("events-mousewheel")?"mousewheel":function(a,b){return l(a,"DOMMouseScroll",function(a){a.wheelDelta=-a.detail; b.call(this,a)})};return{_eventHandler:q,enter:q("mouseover"),leave:q("mouseout"),wheel:c,isLeft:p.isLeft,isMiddle:p.isMiddle,isRight:p.isRight}})},"dojo/promise/instrumentation":function(){define(["./tracer","../has","../_base/lang","../_base/array"],function(c,l,a,b){function p(a,b,c){var g="";a&&a.stack&&(g+=a.stack);b&&b.stack&&(g+="\n ----------------------------------------\n rejected"+b.stack.split("\n").slice(1).join("\n").replace(/^\s+/," "));c&&c.stack&&(g+="\n ----------------------------------------\n"+ c.stack);console.error(a,g)}function q(a,b,c,g){b||p(a,c,g)}function r(a,c,m,g){b.some(n,function(b){if(b.error===a)return c&&(b.handled=!0),!0})||n.push({error:a,rejection:m,handled:c,deferred:g,timestamp:(new Date).getTime()});d||(d=setTimeout(k,t))}function k(){var a=(new Date).getTime(),c=a-t;n=b.filter(n,function(a){return a.timestamp<c?(a.handled||p(a.error,a.rejection,a.deferred),!1):!0});d=n.length?setTimeout(k,n[0].timestamp+t-a):!1}l.add("config-useDeferredInstrumentation","report-unhandled-rejections"); var n=[],d=!1,t=1E3;return function(b){var d=l("config-useDeferredInstrumentation");if(d){c.on("resolved",a.hitch(console,"log","resolved"));c.on("rejected",a.hitch(console,"log","rejected"));c.on("progress",a.hitch(console,"log","progress"));var k=[];"string"===typeof d&&(k=d.split(","),d=k.shift());if("report-rejections"===d)b.instrumentRejected=q;else if("report-unhandled-rejections"===d||!0===d||1===d)b.instrumentRejected=r,t=parseInt(k[0],10)||t;else throw Error("Unsupported instrumentation usage \x3c"+ d+"\x3e");}}})},"dojo/request/xhr":function(){define(["../errors/RequestError","./watch","./handlers","./util","../has"],function(c,l,a,b,p){function q(h,g){var d=h.xhr;h.status=h.xhr.status;try{h.text=d.responseText}catch(e){}"xml"===h.options.handleAs&&(h.data=d.responseXML);if(!g)try{a(h)}catch(f){g=f}g?this.reject(g):b.checkStatus(d.status)?this.resolve(h):(g=new c("Unable to load "+h.url+" status: "+d.status,h),this.reject(g))}function r(a){return this.xhr.getResponseHeader(a)}function k(a,h, s){var z=p("native-formdata")&&h&&h.data&&h.data instanceof FormData,y=b.parseArgs(a,b.deepCreate(g,h),z);a=y.url;h=y.options;var J,B=b.deferred(y,f,d,t,q,function(){J&&J()}),C=y.xhr=k._create();if(!C)return B.cancel(new c("XHR was not created")),s?B:B.promise;y.getHeader=r;e&&(J=e(C,B,y));var G=h.data,K=!h.sync,w=h.method;try{C.open(w,a,K,h.user||m,h.password||m);h.withCredentials&&(C.withCredentials=h.withCredentials);p("native-response-type")&&h.handleAs in n&&(C.responseType=n[h.handleAs]);var A= h.headers;a=z?!1:"application/x-www-form-urlencoded";if(A)for(var E in A)"content-type"===E.toLowerCase()?a=A[E]:A[E]&&C.setRequestHeader(E,A[E]);a&&!1!==a&&C.setRequestHeader("Content-Type",a);(!A||!("X-Requested-With"in A))&&C.setRequestHeader("X-Requested-With","XMLHttpRequest");b.notify&&b.notify.emit("send",y,B.promise.cancel);C.send(G)}catch(x){B.reject(x)}l(B);C=null;return s?B:B.promise}p.add("native-xhr",function(){return"undefined"!==typeof XMLHttpRequest});p.add("dojo-force-activex-xhr", function(){return p("activex")&&!document.addEventListener&&"file:"===window.location.protocol});p.add("native-xhr2",function(){if(p("native-xhr")){var a=new XMLHttpRequest;return"undefined"!==typeof a.addEventListener&&("undefined"===typeof opera||"undefined"!==typeof a.upload)}});p.add("native-formdata",function(){return"undefined"!==typeof FormData});p.add("native-response-type",function(){return p("native-xhr")&&"undefined"!==typeof(new XMLHttpRequest).responseType});p.add("native-xhr2-blob", function(){if(p("native-response-type")){var a=new XMLHttpRequest;a.open("GET","/",!0);a.responseType="blob";var b=a.responseType;a.abort();return"blob"===b}});var n={blob:p("native-xhr2-blob")?"blob":"arraybuffer",document:"document",arraybuffer:"arraybuffer"},d,t,e,f;p("native-xhr2")?(d=function(a){return!this.isFulfilled()},f=function(a,b){b.xhr.abort()},e=function(a,b,h){function g(a){b.handleResponse(h)}function d(a){a=new c("Unable to load "+h.url+" status: "+a.target.status,h);b.handleResponse(h, a)}function e(a){a.lengthComputable?(h.loaded=a.loaded,h.total=a.total,b.progress(h)):3===h.xhr.readyState&&(h.loaded=a.position,b.progress(h))}a.addEventListener("load",g,!1);a.addEventListener("error",d,!1);a.addEventListener("progress",e,!1);return function(){a.removeEventListener("load",g,!1);a.removeEventListener("error",d,!1);a.removeEventListener("progress",e,!1);a=null}}):(d=function(a){return a.xhr.readyState},t=function(a){return 4===a.xhr.readyState},f=function(a,b){var c=b.xhr,h=typeof c.abort; ("function"===h||"object"===h||"unknown"===h)&&c.abort()});var m,g={data:null,query:null,sync:!1,method:"GET"};k._create=function(){throw Error("XMLHTTP not available");};if(p("native-xhr")&&!p("dojo-force-activex-xhr"))k._create=function(){return new XMLHttpRequest};else if(p("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),k._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(h){try{new ActiveXObject("Microsoft.XMLHTTP"),k._create=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(s){}}b.addCommonMethods(k); return k})},"esri/geometry/Rect":function(){define("dojo/_base/declare dojo/_base/lang dojo/has dojox/gfx/_base ../kernel ../SpatialReference ./Geometry ./Point ./Extent ../srUtils".split(" "),function(c,l,a,b,p,q,r,k,n,d){var t=c(r,{declaredClass:"esri.geometry.Rect",constructor:function(a,c,k,g,h){l.mixin(this,b.defaultRect);l.isObject(a)&&"extent"===a.type&&(c=a.ymax,k=a.getWidth(),g=a.getHeight(),h=a.spatialReference,a=a.xmin);l.isObject(a)?(l.mixin(this,a),this.spatialReference&&(this.spatialReference= d.createSpatialReference(this.spatialReference))):(this.x=a,this.y=c,this.width=k,this.height=g,this.spatialReference=h);this.verifySR()},getCenter:function(){return new k(this.x+this.width/2,this.y+this.height/2,this.spatialReference)},offset:function(a,b){return new t(this.x+a,this.y+b,this.width,this.height,this.spatialReference)},intersects:function(a){return a.x+a.width<=this.x||a.y+a.height<=this.y||a.y>=this.y+this.height||a.x>=this.x+this.width?!1:!0},getExtent:function(){return new n(parseFloat(this.x), parseFloat(this.y)-parseFloat(this.height),parseFloat(this.x)+parseFloat(this.width),parseFloat(this.y),this.spatialReference)},update:function(a,b,c,g,h){this.x=a;this.y=b;this.width=c;this.height=g;this.spatialReference=h;this.clearCache();return this}});return t})},"dojo/regexp":function(){define(["./_base/kernel","./base/lang"],function(c,l){var a={};l.setObject("dojo.regexp",a);a.escapeString=function(a,c){return a.replace(/([.$?|{}()[]\/+-^])/g,function(a){return c&&-1!=c.indexOf(a)? a:"\"+a})};a.buildGroupRE=function(b,c,q){if(!(b instanceof Array))return c(b);for(var l=[],k=0;k<b.length;k++)l.push(c(b[k]));return a.group(l.join("|"),q)};a.group=function(a,c){return"("+(c?"?:":"")+a+")"};return a})},"dojo/_base/kernel":function(){define(["../has","./config","require","module"],function(c,l,a,b){var p;c=function(){return this}();var q={},r={},k={config:l,global:c,dijit:q,dojox:r},q={dojo:["dojo",k],dijit:["dijit",q],dojox:["dojox",r]};b=a.map&&a.map[b.id.match(/[^\/]+/)[0]]; for(p in b)q[p]?q[p][0]=b[p]:q[p]=[b[p],{}];for(p in q)b=q[p],b[1]._scopeName=b[0],l.noGlobals||(c[b[0]]=b[1]);k.scopeMap=q;k.baseUrl=k.config.baseUrl=a.baseUrl;k.isAsync=a.async;k.locale=l.locale;l="$Rev: f4fef70 $".match(/[0-9a-f]{7,}/);k.version={major:1,minor:10,patch:4,flag:"",revision:l?l[0]:NaN,toString:function(){var a=k.version;return a.major+"."+a.minor+"."+a.patch+a.flag+" ("+a.revision+")"}};Function("d","d.eval \x3d function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(k); k.exit=function(){};"undefined"!=typeof console||(console={});a="assert count debug dir dirxml error group groupEnd info profile profileEnd time timeEnd trace warn log".split(" ");var n;for(l=0;n=a[l++];)console[n]||function(){var a=n+"";console[a]="log"in console?function(){var b=Array.prototype.slice.call(arguments);b.unshift(a+":");console.log(b.join(" "))}:function(){};console[a]._fake=!0}();k.deprecated=k.experimental=function(){};k._hasResource={};return k})},"dojo/date":function(){define(["./has", "./_base/lang"],function(c,l){var a={getDaysInMonth:function(b){var c=b.getMonth();return 1==c&&a.isLeapYear(b)?29:[31,28,31,30,31,30,31,31,30,31,30,31][c]},isLeapYear:function(a){a=a.getFullYear();return!(a%400)||!(a%4)&&!!(a%100)},getTimezoneName:function(a){var c=a.toString(),l="",r=c.indexOf("(");if(-1<r)l=c.substring(++r,c.indexOf(")"));else if(r=/([A-Z\/]+) \d{4}$/,c=c.match(r))l=c[1];else if(c=a.toLocaleString(),r=/ ([A-Z\/]+)$/,c=c.match(r))l=c[1];return"AM"==l||"PM"==l?"":l},compare:function(a, c,l){a=new Date(+a);c=new Date(+(c||new Date));"date"==l?(a.setHours(0,0,0,0),c.setHours(0,0,0,0)):"time"==l&&(a.setFullYear(0,0,0),c.setFullYear(0,0,0));return a>c?1:a<c?-1:0},add:function(a,c,l){var r=new Date(+a),k=!1,n="Date";switch(c){case "day":break;case "weekday":var d;(c=l%5)?d=parseInt(l/5):(c=0<l?5:-5,d=0<l?(l-5)/5:(l+5)/5);var t=a.getDay(),e=0;6==t&&0<l?e=1:0==t&&0>l&&(e=-1);t+=c;if(0==t||6==t)e=0<l?2:-2;l=7d+c+e;break;case "year":n="FullYear";k=!0;break;case "week":l=7;break;case "quarter":l_= 3;case "month":k=!0;n="Month";break;default:n="UTC"+c.charAt(0).toUpperCase()+c.substring(1)+"s"}if(n)r"set"+n;k&&r.getDate()<a.getDate()&&r.setDate(0);return r},difference:function(b,c,l){c=c||new Date;l=l||"day";var r=c.getFullYear()-b.getFullYear(),k=1;switch(l){case "quarter":b=b.getMonth();c=c.getMonth();b=Math.floor(b/3)+1;c=Math.floor(c/3)+1;k=c+4r-b;break;case "weekday":r=Math.round(a.difference(b,c,"day"));l=parseInt(a.difference(b,c,"week"));k=r%7;if(0==k)r=5l;else{var n= 0,d=b.getDay();c=c.getDay();l=parseInt(r/7);k=r%7;b=new Date(b);b.setDate(b.getDate()+7l);b=b.getDay();if(0<r)switch(!0){case 6==d:n=-1;break;case 0==d:n=0;break;case 6==c:n=-1;break;case 0==c:n=-2;break;case 5<b+k:n=-2}else if(0>r)switch(!0){case 6==d:n=0;break;case 0==d:n=1;break;case 6==c:n=2;break;case 0==c:n=1;break;case 0>b+k:n=2}r=r+n-2_l}k=r;break;case "year":k=r;break;case "month":k=c.getMonth()-b.getMonth()+12r;break;case "week":k=parseInt(a.difference(b,c,"day")/7);break;case "day":k/= 24;case "hour":k/=60;case "minute":k/=60;case "second":k/=1E3;case "millisecond":k=c.getTime()-b.getTime()}return Math.round(k)}};l.mixin(l.getObject("dojo.date",!0),a);return a})},"dojo/errors/create":function(){define(["../_base/lang"],function(c){return function(l,a,b,p){b=b||Error;var q=function(c){if(b===Error){Error.captureStackTrace&&Error.captureStackTrace(this,q);var k=Error.call(this,c),n;for(n in k)k.hasOwnProperty(n)&&(this[n]=k[n]);this.message=c;this.stack=k.stack}else b.apply(this, arguments);a&&a.apply(this,arguments)};q.prototype=c.delegate(b.prototype,p);q.prototype.name=l;return q.prototype.constructor=q}})},"esri/SpatialReference":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/has ./kernel ./lang".split(" "),function(c,l,a,b,p,q){b=[-2.0037508342788905E7,2.0037508342788905E7];p=[-2.0037508342787E7,2.0037508342787E7];return c(null,{declaredClass:"esri.SpatialReference",constructor:function(b){b&&(a.isObject(b)?a.mixin(this,b):a.isString(b)?this.wkt= b:this.wkid=b)},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:b,origin:p, 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:b,origin:p,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:b,origin:p,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:b,origin:p, 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!==l.indexOf([102113,102100,3857,3785],this.wkid)},_isWrappable:function(){return-1!==l.indexOf([102113,102100,3857,3785,4326],this.wkid)},_getInfo:function(){return this.wkid?this._info[this.wkid]:null},_canProject:function(a){var b=!1;a&&(b=this.isWebMercator()&&4326===a.wkid||a.isWebMercator()&&4326===this.wkid);return b},isWebMercator:function(){return this._isWebMercator()},equals:function(a){var b=!1;a&&(this===a&& (b=!0),this.wkid||a.wkid?b=this.wkid===a.wkid||this.isWebMercator()&&a.isWebMercator()||this.wkid===a.latestWkid||a.wkid===this.latestWkid:this.wkt&&a.wkt&&(b=this.wkt.toUpperCase()===a.wkt.toUpperCase()));return b},toJson:function(){var a=null,b=q.isDefined;b(this.wkid)?a={wkid:this.wkid}:b(this.wkt)&&(a={wkt:this.wkt});a&&b(this.latestWkid)&&(a.latestWkid=this.latestWkid);return a}})})},"dojo/on":function(){define(["./has!dom-addeventlistener?:./aspect","./base/kernel","./sniff"],function(c,l, a){function b(b,c,h,g,d){if(g=c.match(/(.):(.)/))return c=g[2],g=g[1],k.selector(g,c).call(d,b,h);a("touch")&&(n.test(c)&&(h=J(h)),!a("event-orientationchange")&&"orientationchange"==c&&(c="resize",b=window,h=J(h)));m&&(h=m(h));if(b.addEventListener){var f=c in e,s=f?e[c]:c;b.addEventListener(s,h,f);return{remove:function(){b.removeEventListener(s,h,f)}}}if(u&&b.attachEvent)return u(b,"on"+c,h);throw Error("Target must be an event emitter");}function p(){this.cancelable=!1;this.defaultPrevented= !0}function q(){this.bubbles=!1}var r=window.ScriptEngineMajorVersion;a.add("jscript",r&&r()+ScriptEngineMinorVersion()/10);a.add("event-orientationchange",a("touch")&&!a("android"));a.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);a.add("event-focusin",function(a,b,c){return"onfocusin"in c});a("touch")&&a.add("touch-can-modify-event-delegate",function(){var a=function(){};a.prototype=document.createEvent("MouseEvents"); try{var b=new a;b.target=null;return null===b.target}catch(c){return!1}});var k=function(a,c,h,g){return"function"==typeof a.on&&"function"!=typeof c&&!a.nodeType?a.on(c,h):k.parse(a,c,h,b,g,this)};k.pausable=function(a,b,c,h){var g;a=k(a,b,function(){if(!g)return c.apply(this,arguments)},h);a.pause=function(){g=!0};a.resume=function(){g=!1};return a};k.once=function(a,b,c,h){var g=k(a,b,function(){g.remove();return c.apply(this,arguments)});return g};k.parse=function(a,b,c,h,g,d){if(b.call)return b.call(d, a,c);if(b instanceof Array)e=b;else if(-1<b.indexOf(","))var e=b.split(/\s,\s/);if(e){var f=[];b=0;for(var s;s=e[b++];)f.push(k.parse(a,s,c,h,g,d));f.remove=function(){for(var a=0;a<f.length;a++)f[a].remove()};return f}return h(a,b,c,g,d)};var n=/^touch/;k.matches=function(a,b,c,h,g){g=g&&g.matches?g:l.query;h=!1!==h;1!=a.nodeType&&(a=a.parentNode);for(;!g.matches(a,b,c);)if(a==c||!1===h||!(a=a.parentNode)||1!=a.nodeType)return!1;return a};k.selector=function(a,b,c){return function(h,g){function d(b){return k.matches(b, a,h,c,e)}var e="function"==typeof a?{matches:a}:this,f=b.bubble;return f?k(h,f(d),g):k(h,b,function(a){var b=d(a.target);if(b)return g.call(b,a)})}};var d=[].slice,t=k.emit=function(a,b,c){var h=d.call(arguments,2),g="on"+b;if("parentNode"in a){var e=h[0]={},f;for(f in c)e[f]=c[f];e.preventDefault=p;e.stopPropagation=q;e.target=a;e.type=b;c=e}do a[g]&&a[g].apply(a,h);while(c&&c.bubbles&&(a=a.parentNode));return c&&c.cancelable&&c},e=a("event-focusin")?{}:{focusin:"focus",focusout:"blur"};if(!a("event-stopimmediatepropagation"))var f= function(){this.modified=this.immediatelyStopped=!0},m=function(a){return function(b){if(!b.immediatelyStopped)return b.stopImmediatePropagation=f,a.apply(this,arguments)}};if(a("dom-addeventlistener"))k.emit=function(a,b,c){if(a.dispatchEvent&&document.createEvent){var h=(a.ownerDocument||document).createEvent("HTMLEvents");h.initEvent(b,!!c.bubbles,!!c.cancelable);for(var g in c)g in h||(h[g]=c[g]);return a.dispatchEvent(h)&&h}return t.apply(k,arguments)};else{k._fixEvent=function(a,b){a||(a=(b&& (b.ownerDocument||b.document||b).parentWindow||window).event);if(!a)return a;try{g&&(a.type==g.type&&a.srcElement==g.target)&&(a=g)}catch(c){}if(!a.target)switch(a.target=a.srcElement,a.currentTarget=b||a.srcElement,"mouseover"==a.type&&(a.relatedTarget=a.fromElement),"mouseout"==a.type&&(a.relatedTarget=a.toElement),a.stopPropagation||(a.stopPropagation=F,a.preventDefault=v),a.type){case "keypress":var h="charCode"in a?a.charCode:a.keyCode;10==h?(h=0,a.keyCode=13):13==h||27==h?h=0:3==h&&(h=99);a.charCode= h;h=a;h.keyChar=h.charCode?String.fromCharCode(h.charCode):"";h.charOrCode=h.keyChar||h.keyCode}return a};var g,h=function(a){this.handle=a};h.prototype.remove=function(){delete dojoIEListeners[this.handle]};var s=function(a){return function(b){b=k._fixEvent(b,this);var c=a.call(this,b);b.modified&&(g||setTimeout(function(){g=null}),g=b);return c}},u=function(b,g,d){d=s(d);if(((b.ownerDocument?b.ownerDocument.parentWindow:b.parentWindow||b.window||window)!=top||5.8>a("jscript"))&&!a("config-_allow_leaks")){"undefined"== typeof dojoIEListeners&&(dojoIEListeners=[]);var e=b[g];if(!e||!e.listeners){var f=e,e=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);}}");e.listeners=[];b[g]=e;e.global=this;f&&e.listeners.push(dojoIEListeners.push(f)-1)}e.listeners.push(b=e.global.dojoIEListeners.push(d)-1);return new h(b)}return c.after(b,g,d,!0)},F=function(){this.cancelBubble= !0},v=k._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(a("touch"))var z=function(){},y=window.orientation,J=function(b){return function(c){var h=c.corrected;if(!h){var g=c.type;try{delete c.type}catch(d){}if(c.type){if(a("touch-can-modify-event-delegate"))z.prototype=c,h=new z;else{var h={},e;for(e in c)h[e]=c[e]}h.preventDefault=function(){c.preventDefault()};h.stopPropagation= function(){c.stopPropagation()}}else h=c,h.type=g;c.corrected=h;if("resize"==g){if(y==window.orientation)return null;y=window.orientation;h.type="orientationchange";return b.call(this,h)}"rotation"in h||(h.rotation=0,h.scale=1);var g=h.changedTouches[0],f;for(f in g)delete h[f],h[f]=g[f]}return b.call(this,h)}};return k})},"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(c,l,a,b,p,q,r,k,n){var d=l.getObject("dojox.gfx",!0),t=d._base={};d._hasClass=function(a,b){var c=a.getAttribute("className");return c&&0<=(" "+c+" ").indexOf(" "+b+" ")};d._addClass=function(a,b){var c=a.getAttribute("className")||"";if(!c||0>(" "+c+" ").indexOf(" "+b+" "))a.setAttribute("className",c+(c?" ":"")+b)};d._removeClass=function(a,b){var c=a.getAttribute("className");c&&a.setAttribute("className",c.replace(RegExp("(^|\s+)"+b+"(\s+|$)"),"$1$2"))};t._getFontMeasurements=function(){var a= {"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},c,g;b("ie")&&(g=p.doc.documentElement.style.fontSize||"",g||(p.doc.documentElement.style.fontSize="100%"));var d=k.create("div",{style:{position:"absolute",left:"0",top:"-100px",width:"30px",height:"1000em",borderWidth:"0",margin:"0",padding:"0",outline:"none",lineHeight:"1",overflow:"hidden"}},p.body());for(c in a)d.style.fontSize=c,a[c]=16_Math.round(12_d.offsetHeight/16)/12/1E3; b("ie")&&(p.doc.documentElement.style.fontSize=g);p.body().removeChild(d);return a};var e=null;t._getCachedFontMeasurements=function(a){if(a||!e)e=t._getFontMeasurements();return e};var f=null,m={};t._getTextBox=function(a,b,c){var g,d,e=arguments.length,l;f||(f=k.create("div",{style:{position:"absolute",top:"-10000px",left:"0",visibility:"hidden"}},p.body()));g=f;g.className="";d=g.style;d.borderWidth="0";d.margin="0";d.padding="0";d.outline="0";if(1<e&&b)for(l in b)l in m||(d[l]=b[l]);2<e&&c&&(g.className= c);g.innerHTML=a;g.getBoundingClientRect?(d=g.getBoundingClientRect(),d={l:d.left,t:d.top,w:d.width||d.right-d.left,h:d.height||d.bottom-d.top}):d=n.getMarginBox(g);g.innerHTML="";return d};t._computeTextLocation=function(a,b,c,g){var d={};switch(a.align){case "end":d.x=a.x-b;break;case "middle":d.x=a.x-b/2;break;default:d.x=a.x}d.y=a.y-c(g?0.75:1);return d};t._computeTextBoundingBox=function(a){if(!d._base._isRendered(a))return{x:0,y:0,width:0,height:0};var b;b=a.getShape();var c=a.getFont()||d.defaultFont; a=a.getTextWidth();c=d.normalizedLength(c.size);b=t._computeTextLocation(b,a,c,!0);return{x:b.x,y:b.y,width:a,height:c}};t._isRendered=function(a){for(a=a.parent;a&&a.getParent;)a=a.parent;return null!==a};var g=0;t._getUniqueId=function(){var a;do a=c._scopeName+"xUnique"+ ++g;while(r.byId(a));return a};t._fixMsTouchAction=function(a){a=a.rawNode;"undefined"!=typeof a.style.msTouchAction&&(a.style.msTouchAction="none")};l.mixin(d,{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 a={};return function(b){var c= a[b];if(c)return new c;c=a[b]=new Function;c.prototype=d["default"+b];return new c}}(),normalizeColor:function(b){return b instanceof a?b:new a(b)},normalizeParameters:function(a,b){var c;if(b){var g={};for(c in a)c in b&&!(c in g)&&(a[c]=b[c])}return a},makeParameters:function(a,b){var c=null;if(!b)return l.delegate(a);var g={};for(c in a)c in g||(g[c]=l.clone(c in b?b[c]:a[c]));return g},formatNumber:function(a,b){var c=a.toString();if(0<=c.indexOf("e"))c=a.toFixed(4);else{var g=c.indexOf("."); 0<=g&&5<c.length-g&&(c=a.toFixed(4))}return 0>a?c:b?" "+c:c},makeFontString:function(a){return a.style+" "+a.variant+" "+a.weight+" "+a.size+" "+a.family},splitFontString:function(a){var b=d.getDefault("Font");a=a.split(/\s+/);if(!(5>a.length)){b.style=a[0];b.variant=a[1];b.weight=a[2];var c=a[3].indexOf("/");b.size=0>c?a[3]:a[3].substring(0,c);var g=4;0>c&&("/"==a[4]?g=6:"/"==a[4].charAt(0)&&(g=5));g<a.length&&(b.family=a.slice(g).join(" "))}return b},cm_in_pt:72/2.54,mm_in_pt:7.2/2.54,px_in_pt:function(){return d._base._getCachedFontMeasurements()["12pt"]/ 12},pt2px:function(a){return ad.px_in_pt()},px2pt:function(a){return a/d.px_in_pt()},normalizedLength:function(a){if(0===a.length)return 0;if(2<a.length){var b=d.px_in_pt(),c=parseFloat(a);switch(a.slice(-2)){case "px":return c;case "pt":return cb;case "in":return 72cb;case "pc":return 12cb;case "mm":return cd.mm_in_ptb;case "cm":return cd.cm_in_ptb}}return parseFloat(a)},pathVmlRegExp:/([A-Za-z]+)|(\d+(.\d+)?)|(.\d+)|(-\d+(.\d+)?)|(-.\d+)/g,pathSvgRegExp:/([A-DF-Za-df-z])|([-+]?\d[.]?\d+(?:[eE][-+]?\d+)?)/g, equalSources:function(a,b){return a&&b&&a===b},switchTo:function(a){var b="string"==typeof a?d[a]:a;b&&(q.forEach("Group Rect Ellipse Circle Line Polyline Image Text Path TextPath EsriPath Surface createSurface fixTarget".split(" "),function(a){d[a]=b[a]}),"string"==typeof a?d.renderer=a:q.some(["svg","vml","canvas","canvasWithEvents","silverlight"],function(a){return d.renderer=d[a]&&d[a].Surface===d.Surface?a:null}))}});return d})},"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(c,l,a,b,p,q,r,k,n,d,t,e){var f={type:"polygon",rings:null},m=c(k,{declaredClass:"esri.geometry.Polygon",constructor:function(b){a.mixin(this,f);this.rings=[];this._ring=0;b&&(a.isArray(b)?this.rings=a.isArray(b[0][0])?b:[b]:b.rings?a.mixin(this,b):this.spatialReference=b,this.spatialReference&&(this.spatialReference=e.createSpatialReference(this.spatialReference)));this.verifySR()},addRing:function(b){this.clearCache();this._ring=this.rings.length;this.rings[this._ring]=[];a.isArray(b[0])? l.forEach(b,this._addPointArr,this):l.forEach(b,this._addPoint,this);return this},_addPointArr:function(a){this.rings[this._ring].push(a)},_addPoint:function(a){this.rings[this._ring].push([a.x,a.y])},_insertPoints:function(a,b){this.clearCache();this._ring=b;this.rings[this._ring]||(this.rings[this._ring]=[]);l.forEach(a,this._addPoint,this)},_validateInputs:function(a,b){return null!==a&&void 0!==a&&(0>a||a>=this.rings.length)||null!==b&&void 0!==a&&(0>b||b>=this.rings[a].length)?!1:!0},getPoint:function(a, b){if(this._validateInputs(a,b))return new n(this.rings[a][b],this.spatialReference)},setPoint:function(a,b,c){if(this._validateInputs(a,b))return this.clearCache(),this.rings[a][b]=[c.x,c.y],this},insertPoint:function(a,b,c){if(this._validateInputs(a)&&q.isDefined(b)&&0<=b&&b<=this.rings[a].length)return this.clearCache(),this.rings[a].splice(b,0,[c.x,c.y]),this},removeRing:function(a){if(this._validateInputs(a,null)){this.clearCache();a=this.rings.splice(a,1)[0];var b,c=a.length,d=this.spatialReference; for(b=0;b<c;b++)a[b]=new n(a[b],d);return a}},removePoint:function(a,b){if(this._validateInputs(a,b))return this.clearCache(),new n(this.rings[a].splice(b,1)[0],this.spatialReference)},getExtent:function(){var a;a=this.getCacheValue("_extent");var b=this.getCacheValue("_partwise");if(a)return a=new d(a),a._partwise=b,a;a=this.rings;var c=a.length;if(c&&a[0].length){var e,f,k,m,n,l,p,t,q=m=a[0][0][0],r=n=a[0][0][1],w=Math.min,A=Math.max,E=this.spatialReference,b=[],x,D,H,I;for(l=0;l<c;l++){e=a[l]; x=D=e[0]&&e[0][0];H=I=e[0]&&e[0][1];t=e.length;for(p=0;p<t;p++)f=e[p],k=f[0],f=f[1],q=w(q,k),r=w(r,f),m=A(m,k),n=A(n,f),x=w(x,k),H=w(H,f),D=A(D,k),I=A(I,f);b.push(new d({xmin:x,ymin:H,xmax:D,ymax:I,spatialReference:E?E.toJson():null}))}a={xmin:q,ymin:r,xmax:m,ymax:n,spatialReference:E?E.toJson():null};b=1<b.length?b:null;this.setCacheValue("_extent",a);this.setCacheValue("_partwise",b);a=new d(a);a._partwise=b;return a}},contains:function(a){var b=this.rings,c,d=!1,e,f,k,m,l,p,t=b.length;c=this.spatialReference; e=a.spatialReference;var q=a.x;a=a.y;c&&(e&&!c.equals(e)&&c.canProject(e))&&(a=c.isWebMercator()?n.lngLatToXY(q,a):n.xyToLngLat(q,a,!0),q=a[0],a=a[1]);for(p=0;p<t;p++){c=b[p];k=c.length;for(l=m=0;l<k;l++)if(m++,m===k&&(m=0),e=c[l],f=c[m],(e[1]<a&&f[1]>=a||f[1]<a&&e[1]>=a)&&e[0]+(a-e[1])/(f[1]-e[1])(f[0]-e[0])<q)d=!d}return d},getCentroid:function(){var a=this.getCacheValue("_centroid");if(void 0!==a)return a;var a=this.rings,b,c,d,e=[],f,k;l.forEach(a,function(a){b=c=d=0;l.forEach(a,function(g, e){e<a.length-1&&(f=a[e+1],k=g[0]_f[1]-f[0]_g[1],b+=(g[0]+f[0])_k,c+=(g[1]+f[1])k,d+=k)});0<d&&(d=-1);d&&e.push([b,c,d/2])});e.sort(function(a,b){return a[2]-b[2]});b=c=void 0;if(e[0])a=6_e[0][2],b=e[0][0]/a,c=e[0][1]/a;else if(a=a[0]&&a[0].length?this._getLineCentroid(a[0]):null)b=a.x,c=a.y;a=isNaN(b)||isNaN(c)?null:new n(b,c,this.spatialReference);this.setCacheValue("_centroid",a);return a},_getLineCentroid:function(a){var b,c=0,d=0,e=0,f,k,m={x:0,y:0},n={x:0,y:0},l,p=a.length,q;for(l=0;l<p-1;l++)f= a[l],k=a[l+1],f&&k&&(m.x=f[0],m.y=f[1],n.x=k[0],n.y=k[1],b=t.getLength(m,n),0<b&&(c+=b,f=t.getMidpoint(f,k),d+=b_f[0],e+=b_f[1]));0<c?q={x:d/c,y:e/c}:a[0]&&(q={x:a[0][0],y:a[0][1]});return q},isClockwise:function(b){var c=0,d,e=b.length,f=a.isArray(b[0])?function(a,b){return a[0]_b[1]-b[0]_a[1]}:function(a,b){return a.x_b.y-b.x_a.y};for(d=0;d<e;d++)c+=f(b[d],b[(d+1)%e]);return 0>=c/2},isSelfIntersecting:function(a){a=a||this;var b,c,d,e,f,k,m,n=a.rings.length,l;for(d=0;d<n;d++){for(b=0;b<a.rings[d].length- 1;b++){f=[[a.rings[d][b][0],a.rings[d][b][1]],[a.rings[d][b+1][0],a.rings[d][b+1][1]]];for(c=d+1;c<n;c++)for(e=0;e<a.rings[c].length-1;e++)if(k=[[a.rings[c][e][0],a.rings[c][e][1]],[a.rings[c][e+1][0],a.rings[c][e+1][1]]],(m=t._getLineIntersection2(f,k))&&!(m[0]===f[0][0]&&m[1]===f[0][1]||m[0]===k[0][0]&&m[1]===k[0][1]||m[0]===f[1][0]&&m[1]===f[1][1]||m[0]===k[1][0]&&m[1]===k[1][1]))return!0}e=a.rings[d].length;if(!(4>=e))for(b=0;b<e-3;b++){l=e-1;0===b&&(l=e-2);f=[[a.rings[d][b][0],a.rings[d][b][1]], [a.rings[d][b+1][0],a.rings[d][b+1][1]]];for(c=b+2;c<l;c++)if(k=[[a.rings[d][c][0],a.rings[d][c][1]],[a.rings[d][c+1][0],a.rings[d][c+1][1]]],(m=t._getLineIntersection2(f,k))&&!(m[0]===f[0][0]&&m[1]===f[0][1]||m[0]===k[0][0]&&m[1]===k[0][1]||m[0]===f[1][0]&&m[1]===f[1][1]||m[0]===k[1][0]&&m[1]===k[1][1]))return!0}}return!1},toJson:function(){var b={rings:a.clone(this.rings)},c=this.spatialReference;c&&(b.spatialReference=c.toJson());return b}});m.defaultProps=f;m.createEllipse=function(a){var b=a.center.x, c=a.center.y,d=a.longAxis,e=a.shortAxis,f=a.numberOfPoints,k=a.map,n,l,p;a=[];var t=2_Math.PI/f;for(l=0;l<f;l++)n=Math.cos(lt),p=Math.sin(lt),n=k.toMap({x:dn+b,y:ep+c}),a.push(n);a.push(a[0]);b=new m(k.spatialReference);b.addRing(a);return b};m.createCircle=function(a){return m.createEllipse({center:a.center,longAxis:a.r,shortAxis:a.r,numberOfPoints:a.numberOfPoints,map:a.map})};m.fromExtent=function(a){var b=a.normalize();a=a.spatialReference;return new m({rings:l.map(b,function(a){return[[a.xmin, a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin]]}),spatialReference:a?a.toJson():null})};return m})},"esri/config":function(){define(["dojo/_base/config","dojo/topic","dojo/has","./kernel"],function(c,l,a,b){a={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,panDuration:350,panRate:25,logoLink:"http://www.esri.com"},autoSpatialIndexing:window.Worker&&!1,io:{errorHandler:function(a,b){l.publish("esri.Error",[a])},proxyUrl:null,alwaysUseProxy:!1,useCors:"with-credentials",corsEnabledServers:"server.arcgisonline.com services.arcgisonline.com www.arcgis.com tiles.arcgis.com tiles1.arcgis.com tiles2.arcgis.com tiles3.arcgis.com tiles4.arcgis.com elevation3d.arcgis.com services.arcgis.com services1.arcgis.com services2.arcgis.com services3.arcgis.com services4.arcgis.com services5.arcgis.com static.arcgis.com utility.arcgisonline.com geocode.arcgis.com geoenrich.arcgis.com qaext.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 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".split(" "), corsDetection:window.cordova?!1:!0,corsStatus:{},webTierAuthServers:[],proxyRules:[],postLength:2E3,timeout:6E4,useWorkers:"on-request",maxRequestWorkers:5}}};c.noGlobals||(window.esriConfig=a);return a})},"dojo/dom-attr":function(){define("exports ./sniff ./_base/lang ./dom ./dom-style ./dom-prop".split(" "),function(c,l,a,b,p,q){function r(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return!!c&&c.specified}var k={innerHTML:1,textContent:1,className:1,htmlFor:l("ie"),value:1},n={classname:"class", htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};c.has=function(a,c){var e=c.toLowerCase();return k[q.names[e]||c]||r(b.byId(a),n[e]||c)};c.get=function(c,l){c=b.byId(c);var e=l.toLowerCase(),f=q.names[e]||l,m=c[f];if(k[f]&&"undefined"!=typeof m)return m;if("textContent"==f)return q.get(c,f);if("href"!=f&&("boolean"==typeof m||a.isFunction(m)))return m;e=n[e]||l;return r(c,e)?c.getAttribute(e):null};c.set=function(d,l,e){d=b.byId(d);if(2==arguments.length){for(var f in l)c.set(d,f,l[f]);return d}f= l.toLowerCase();var m=q.names[f]||l,g=k[m];if("style"==m&&"string"!=typeof e)return p.set(d,e),d;if(g||"boolean"==typeof e||a.isFunction(e))return q.set(d,l,e);d.setAttribute(n[f]||l,e);return d};c.remove=function(a,c){b.byId(a).removeAttribute(n[c.toLowerCase()]||c)};c.getNodeProp=function(a,c){a=b.byId(a);var e=c.toLowerCase(),f=q.names[e]||c;if(f in a&&"href"!=f)return a[f];e=n[e]||c;return r(a,e)?a.getAttribute(e):null}})},"esri/geometry/Geometry":function(){define(["dojo/_base/declare","dojo/_base/lang", "dojo/has","../kernel","../SpatialReference"],function(c,l,a,b,p){return c(null,{declaredClass:"esri.geometry.Geometry",spatialReference:null,type:null,cache:void 0,setSpatialReference:function(a){this.spatialReference=a;return this},verifySR:function(){this.spatialReference||this.setSpatialReference(new p(4326))},getExtent:function(){return null},clearCache:function(){this.cache=void 0},getCacheValue:function(a){return this.cache&&this.cache[a]},setCacheValue:function(a,b){this.cache||(this.cache= {});this.cache[a]=b}})})},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(c,l,a){function b(a){setTimeout(function(){q.apply(p,a)},0)}var p=new a,q=p.emit;p.emit=null;l.prototype.trace=function(){var a=c._toArray(arguments);this.then(function(c){b(["resolved",c].concat(a))},function(c){b(["rejected",c].concat(a))},function(c){b(["progress",c].concat(a))});return this};l.prototype.traceRejected=function(){var a=c._toArray(arguments);this.otherwise(function(c){b(["rejected", c].concat(a))});return this};return p})},"esri/units":function(){define(["dojo/has","./kernel"],function(c,l){return{CENTIMETERS:"esriCentimeters",DECIMAL_DEGREES:"esriDecimalDegrees",DEGREE_MINUTE_SECONDS:"esriDegreeMinuteSeconds",DECIMETERS:"esriDecimeters",FEET:"esriFeet",INCHES:"esriInches",KILOMETERS:"esriKilometers",METERS:"esriMeters",MILES:"esriMiles",MILLIMETERS:"esriMillimeters",NAUTICAL_MILES:"esriNauticalMiles",POINTS:"esriPoints",UNKNOWN:"esriUnknownUnits",YARDS:"esriYards",ACRES:"esriAcres", ARES:"esriAres",SQUARE_KILOMETERS:"esriSquareKilometers",SQUARE_MILES:"esriSquareMiles",SQUARE_FEET:"esriSquareFeet",SQUARE_METERS:"esriSquareMeters",HECTARES:"esriHectares",SQUARE_YARDS:"esriSquareYards",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"}})},"dojo/number":function(){define(["./_base/lang","./i18n","./i18n!./cldr/nls/number","./string","./regexp"],function(c,l,a,b,p){var q={};c.setObject("dojo.number",q);q.format=function(a,b){b=c.mixin({},b||{});var d=l.normalizeLocale(b.locale),d=l.getLocalization("dojo.cldr","number",d);b.customs=d;d=b.pattern||d[(b.type||"decimal")+"Format"];return isNaN(a)||Infinity==Math.abs(a)?null:q._applyPattern(a,d,b)};q._numberPatternRE= /[#0,][#0](?:.0#)?/;q.applyPattern=function(a,b,c){c=c||{};var l=c.customs.group,e=c.customs.decimal;b=b.split(";");var f=b[0];b=b[0>a?1:0]||"-"+f;if(-1!=b.indexOf("%"))a=100;else if(-1!=b.indexOf("\u2030"))a_=1E3;else if(-1!=b.indexOf("\u00a4"))l=c.customs.currencyGroup||l,e=c.customs.currencyDecimal||e,b=b.replace(/\u00a4{1,3}/,function(a){return c[["symbol","currency","displayName"][a.length-1]]||c.currency||""});else if(-1!=b.indexOf("E"))throw Error("exponential notation not supported"); var m=q._numberPatternRE,f=f.match(m);if(!f)throw Error("unable to find a number expression in pattern: "+b);!1===c.fractional&&(c.places=0);return b.replace(m,q.formatAbsolute(a,f[0],{decimal:e,group:l,places:c.places,round:c.round}))};q.round=function(a,b,c){c=10/(c||10);return(c+a).toFixed(b)/c};if(0==(0.9).toFixed()){var r=q.round;q.round=function(a,b,c){var l=Math.pow(10,-b||0),e=Math.abs(a);if(!a||e>=l)l=0;else if(e/=l,0.5>e||0.95<=e)l=0;return r(a,b,c)+(0<a?l:-l)}}q._formatAbsolute=function(a, c,d){d=d||{};!0===d.places&&(d.places=0);Infinity===d.places&&(d.places=6);c=c.split(".");var l="string"==typeof d.places&&d.places.indexOf(","),e=d.places;l?e=d.places.substring(l+1):0<=e||(e=(c[1]||[]).length);0>d.round||(a=q.round(a,e,d.round));a=String(Math.abs(a)).split(".");var f=a[1]||"";c[1]||d.places?(l&&(d.places=d.places.substring(0,l)),l=void 0!==d.places?d.places:c[1]&&c[1].lastIndexOf("0")+1,l>f.length&&(a[1]=b.pad(f,l,"0",!0)),e<f.length&&(a[1]=f.substr(0,e))):a[1]&&a.pop();e=c[0].replace(",", "");l=e.indexOf("0");-1!=l&&(l=e.length-l,l>a[0].length&&(a[0]=b.pad(a[0],l)),-1==e.indexOf("#")&&(a[0]=a[0].substr(a[0].length-l)));var e=c[0].lastIndexOf(","),m,g;-1!=e&&(m=c[0].length-e-1,c=c[0].substr(0,e),e=c.lastIndexOf(","),-1!=e&&(g=c.length-e-1));c=[];for(e=a[0];e;)l=e.length-m,c.push(0<l?e.substr(l):e),e=0<l?e.slice(0,l):"",g&&(m=g,delete g);a[0]=c.reverse().join(d.group||",");return a.join(d.decimal||".")};q.regexp=function(a){return q._parseInfo(a).regexp};q._parseInfo=function(a){a=a|| {};var b=l.normalizeLocale(a.locale),b=l.getLocalization("dojo.cldr","number",b),c=a.pattern||b[(a.type||"decimal")+"Format"],r=b.group,e=b.decimal,f=1;if(-1!=c.indexOf("%"))f/=100;else if(-1!=c.indexOf("\u2030"))f/=1E3;else{var m=-1!=c.indexOf("\u00a4");m&&(r=b.currencyGroup||r,e=b.currencyDecimal||e)}b=c.split(";");1==b.length&&b.push("-"+b[0]);b=p.buildGroupRE(b,function(b){b="(?:"+p.escapeString(b,".")+")";return b.replace(q._numberPatternRE,function(b){var c={signed:!1,separator:a.strict?r:[r, ""],fractional:a.fractional,decimal:e,exponent:!1};b=b.split(".");var d=a.places;1==b.length&&1!=f&&(b[1]="###");1==b.length||0===d?c.fractional=!1:(void 0===d&&(d=a.pattern?b[1].lastIndexOf("0")+1:Infinity),d&&void 0==a.fractional&&(c.fractional=!0),!a.places&&d<b[1].length&&(d+=","+b[1].length),c.places=d);b=b[0].split(",");1<b.length&&(c.groupSize=b.pop().length,1<b.length&&(c.groupSize2=b.pop().length));return"("+q.realNumberRegexp(c)+")"})},!0);m&&(b=b.replace(/([\s\xa0])(\u00a4{1,3})([\s\xa0])/g, function(b,c,d,e){b=p.escapeString(a[["symbol","currency","displayName"][d.length-1]]||a.currency||"");c=c?"[\s\xa0]":"";e=e?"[\s\xa0]":"";return!a.strict?(c&&(c+=""),e&&(e+="_"),"(?:"+c+b+e+")?"):c+b+e}));return{regexp:b.replace(/[\xa0 ]/g,"[\s\xa0]"),group:r,decimal:e,factor:f}};q.parse=function(a,b){var c=q.parseInfo(b),l=RegExp("^"+c.regexp+"$").exec(a);if(!l)return NaN;var e=l[1];if(!l[1]){if(!l[2])return NaN;e=l[2];c.factor=-1}e=e.replace(RegExp("["+c.group+"\s\xa0]","g"),"").replace(c.decimal, ".");return e_c.factor};q._realNumberRegexp=function(a){a=a||{};"places"in a||(a.places=Infinity);"string"!=typeof a.decimal&&(a.decimal=".");if(!("fractional"in a)||/^0/.test(a.places))a.fractional=[!0,!1];"exponent"in a||(a.exponent=[!0,!1]);"eSigned"in a||(a.eSigned=[!0,!1]);var b=q._integerRegexp(a),c=p.buildGroupRE(a.fractional,function(b){var c="";b&&0!==a.places&&(c="\"+a.decimal,c=Infinity==a.places?"(?:"+c+"\d+)?":c+("\d{"+a.places+"}"));return c},!0),l=p.buildGroupRE(a.exponent,function(b){return b? "([eE]"+q._integerRegexp({signed:a.eSigned})+")":""}),b=b+c;c&&(b="(?:(?:"+b+")|(?:"+c+"))");return b+l};q.integerRegexp=function(a){a=a||{};"signed"in a||(a.signed=[!0,!1]);"separator"in a?"groupSize"in a||(a.groupSize=3):a.separator="";var b=p.buildGroupRE(a.signed,function(a){return a?"[-+]":""},!0),c=p.buildGroupRE(a.separator,function(b){if(!b)return"(?:\d+)";b=p.escapeString(b);" "==b?b="\s":"\u00a0"==b&&(b="\s\xa0");var c=a.groupSize,d=a.groupSize2;return d?(b="(?:0|[1-9]\d{0,"+(d-1)+ "}(?:["+b+"]\d{"+d+"})["+b+"]\d{"+c+"})",0<c-d?"(?:"+b+"|(?:0|[1-9]\d{0,"+(c-1)+"}))":b):"(?:0|[1-9]\d{0,"+(c-1)+"}(?:["+b+"]\d{"+c+"}))"},!0);return b+c};return q})},"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(c,l,a,b,p,q,r,k,n,d,t){var e={type:"polyline",paths:null};c=c(k,{declaredClass:"esri.geometry.Polyline",constructor:function(b){a.mixin(this, e);this.paths=[];this._path=0;b&&(a.isArray(b)?this.paths=a.isArray(b[0][0])?b:[b]:b.paths?a.mixin(this,b):this.spatialReference=b,this.spatialReference&&(this.spatialReference=t.createSpatialReference(this.spatialReference)));this.verifySR()},addPath:function(b){this.clearCache();this._path=this.paths.length;this.paths[this._path]=[];a.isArray(b[0])?l.forEach(b,this._addPointArr,this):l.forEach(b,this._addPoint,this);return this},_addPointArr:function(a){this.paths[this._path].push(a)},_addPoint:function(a){this.paths[this._path].push([a.x, a.y])},_insertPoints:function(a,b){this.clearCache();this._path=b;this.paths[this._path]||(this.paths[this._path]=[]);l.forEach(a,this._addPoint,this)},_validateInputs:function(a,b){return null!==a&&void 0!==a&&(0>a||a>=this.paths.length)||null!==b&&void 0!==a&&(0>b||b>=this.paths[a].length)?!1:!0},getPoint:function(a,b){if(this._validateInputs(a,b))return new n(this.paths[a][b],this.spatialReference)},setPoint:function(a,b,c){if(this._validateInputs(a,b))return this.clearCache(),this.paths[a][b]= [c.x,c.y],this},insertPoint:function(a,b,c){if(this._validateInputs(a)&&q.isDefined(b)&&0<=b&&b<=this.paths[a].length)return this.clearCache(),this.paths[a].splice(b,0,[c.x,c.y]),this},removePath:function(a){if(this._validateInputs(a,null)){this.clearCache();a=this.paths.splice(a,1)[0];var b,c=a.length,d=this.spatialReference;for(b=0;b<c;b++)a[b]=new n(a[b],d);return a}},removePoint:function(a,b){if(this._validateInputs(a,b))return this.clearCache(),new n(this.paths[a].splice(b,1)[0],this.spatialReference)}, getExtent:function(){var a;a=this.getCacheValue("_extent");var b=this.getCacheValue("_partwise");if(a)return a=new d(a),a._partwise=b,a;a=this.paths;var c=a.length;if(c&&a[0].length){var e,k,l,n,p,q,r,t,B=n=a[0][0][0],C=p=a[0][0][1],G=Math.min,K=Math.max,w=this.spatialReference,b=[],A,E,x,D;for(q=0;q<c;q++){e=a[q];A=E=e[0]&&e[0][0];x=D=e[0]&&e[0][1];t=e.length;for(r=0;r<t;r++)k=e[r],l=k[0],k=k[1],B=G(B,l),C=G(C,k),n=K(n,l),p=K(p,k),A=G(A,l),x=G(x,k),E=K(E,l),D=K(D,k);b.push(new d({xmin:A,ymin:x,xmax:E, ymax:D,spatialReference:w?w.toJson():null}))}a={xmin:B,ymin:C,xmax:n,ymax:p,spatialReference:w?w.toJson():null};b=1<b.length?b:null;this.setCacheValue("_extent",a);this.setCacheValue("_partwise",b);a=new d(a);a._partwise=b;return a}},toJson:function(){var b={paths:a.clone(this.paths)},c=this.spatialReference;c&&(b.spatialReference=c.toJson());return b}});c.defaultProps=e;return c})},"dojo/request/util":function(){define("exports ../errors/RequestError ../errors/CancelError ../Deferred ../io-query ../_base/array ../_base/lang ../promise/Promise".split(" "), function(c,l,a,b,p,q,r,k){function n(a){return t(a)}function d(a){return a.data||a.text}c.deepCopy=function(a,b){for(var d in b){var g=a[d],h=b[d];g!==h&&(g&&"object"===typeof g&&h&&"object"===typeof h?c.deepCopy(g,h):a[d]=h)}return a};c.deepCreate=function(a,b){b=b||{};var d=r.delegate(a),g,h;for(g in a)(h=a[g])&&"object"===typeof h&&(d[g]=c.deepCreate(h,b[g]));return c.deepCopy(d,b)};var t=Object.freeze||function(a){return a};c.deferred=function(e,f,m,g,h,s){var p=new b(function(b){f&&f(p,e);return!b|| !(b instanceof l)&&!(b instanceof a)?new a("Request canceled",e):b});p.response=e;p.isValid=m;p.isReady=g;p.handleResponse=h;m=p.then(n).otherwise(function(a){a.response=e;throw a;});c.notify&&m.then(r.hitch(c.notify,"emit","load"),r.hitch(c.notify,"emit","error"));g=m.then(d);h=new k;for(var q in g)g.hasOwnProperty(q)&&(h[q]=g[q]);h.response=m;t(h);s&&p.then(function(a){s.call(p,a)},function(a){s.call(p,e,a)});p.promise=h;p.then=h.then;return p};c.addCommonMethods=function(a,b){q.forEach(b||["GET", "POST","PUT","DELETE"],function(b){a[("DELETE"===b?"DEL":b).toLowerCase()]=function(c,d){d=r.delegate(d||{});d.method=b;return a(c,d)}})};c.parseArgs=function(a,b,c){var d=b.data,h=b.query;d&&!c&&"object"===typeof d&&(b.data=p.objectToQuery(d));h?("object"===typeof h&&(h=p.objectToQuery(h)),b.preventCache&&(h+=(h?"\x26":"")+"request.preventCache\x3d"+ +new Date)):b.preventCache&&(h="request.preventCache\x3d"+ +new Date);a&&h&&(a+=(~a.indexOf("?")?"\x26":"?")+h);return{url:a,options:b,getHeader:function(a){return null}}}; c.checkStatus=function(a){a=a||0;return 200<=a&&300>a||304===a||1223===a||!a}})},"dojo/io-query":function(){define(["./_base/lang"],function(c){var l={};return{objectToQuery:function(a){var b=encodeURIComponent,p=[],q;for(q in a){var r=a[q];if(r!=l[q]){var k=b(q)+"\x3d";if(c.isArray(r))for(var n=0,d=r.length;n<d;++n)p.push(k+b(r[n]));else p.push(k+b(r))}}return p.join("\x26")},queryToObject:function(a){var b=decodeURIComponent;a=a.split("\x26");for(var l={},q,r,k=0,n=a.length;k<n;++k)if(r=a[k],r.length){var d= r.indexOf("\x3d");0>d?(q=b(r),r=""):(q=b(r.slice(0,d)),r=b(r.slice(d+1)));"string"==typeof l[q]&&(l[q]=[l[q]]);c.isArray(l[q])?l[q].push(r):l[q]=r}return l}}})},"esri/geometry/Point":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../lang ../SpatialReference ./Geometry ../srUtils".split(" "),function(c,l,a,b,p,q,r,k){function n(a,b){89.99999<b?b=89.99999:-89.99999>b&&(b=-89.99999);var c=b_m;return[a_m_t,t/2_Math.log((1+Math.sin(c))/(1-Math.sin(c)))]}function d(a,b,c){a=a/ t_f;if(c)return b=e/2-2_Math.atan(Math.exp(-1_b/t)),[a,b_f];c=a-360_Math.floor((a+180)/360);b=e/2-2_Math.atan(Math.exp(-1_b/t));return[c,b_f]}var t=6378137,e=3.141592653589793,f=57.29577951308232,m=0.017453292519943,g={type:"point",x:0,y:0};c=c(r,{declaredClass:"esri.geometry.Point",constructor:function(a,b,c){l.mixin(this,g);l.isArray(a)?(this.x=a[0],this.y=a[1],this.spatialReference=b):l.isObject(a)?(l.mixin(this,a),p.isDefined(this.latitude)&&(this.y=this.latitude),p.isDefined(this.longitude)&& (this.x=this.longitude),this.spatialReference&&(this.spatialReference=k.createSpatialReference(this.spatialReference))):(this.x=a,this.y=b,this.spatialReference=c);this.verifySR()},offset:function(a,b){return new this.constructor(this.x+a,this.y+b,this.spatialReference)},setX:function(a){this.x=a;this.clearCache();return this},setY:function(a){this.y=a;this.clearCache();return this},setLongitude:function(a){var b=this.spatialReference;b&&(b._isWebMercator()?this.setX(n(a,this.y)[0]):4326===b.wkid&& this.setX(a));return this},setLatitude:function(a){var b=this.spatialReference;b&&(b._isWebMercator()?this.setY(n(this.x,a)[1]):4326===b.wkid&&this.setY(a));return this},getLongitude:function(){var a=this.spatialReference,b;a&&(a._isWebMercator()?b=d(this.x,this.y)[0]:4326===a.wkid&&(b=this.x));return b},getLatitude:function(){var a=this.spatialReference,b;a&&(a._isWebMercator()?b=d(this.x,this.y)[1]:4326===a.wkid&&(b=this.y));return b},update:function(a,b){this.x=a;this.y=b;this.clearCache();return this}, normalize:function(){var a=this.x,b=this.spatialReference;if(b){var c=b._getInfo();if(c){var d=c.valid[0],e=c.valid[1],c=2_e;a>e?(d=Math.ceil(Math.abs(a-e)/c),a-=d_c):a<d&&(d=Math.ceil(Math.abs(a-d)/c),a+=dc)}}return new this.constructor(a,this.y,b)},toJson:function(){var a={x:this.x,y:this.y},b=this.spatialReference;b&&(a.spatialReference=b.toJson());return a}});c.lngLatToXY=n;c.xyToLngLat=d;c.defaultProps=g;return c})},"esri/geometry/screenUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/sniff ../kernel ./Point ./ScreenPoint ./Polyline ./Polygon ./Multipoint ./Extent".split(" "), function(c,l,a,b,p,q,r,k,n,d){var t=function(){return 9>a("ie")?function(a,b,c,d,h,k,l,n,p){var q=[],r=Math.round,t,B=l.length,C,G,K,w,A,E;for(t=0;t<B;t++)if(C=l[t],w=n?n(C[0][0],C[0][1],p):C[0],1<(K=C.length)){A=r((w[0]-a)c+h);E=r((b-w[1])d+k);w=n?n(C[1][0],C[1][1],p):C[1];G=r((w[0]-a)c+h);w=r((b-w[1])d+k);q.push("M",A+","+E,"L",G+","+w);for(G=2;G<K;G++)w=n?n(C[G][0],C[G][1],p):C[G],A=r((w[0]-a)c+h),E=r((b-w[1])d+k),q.push(A+","+E)}else A=r((w[0]-a)c+h),E=r((b-w[1])d+k),q.push("M",A+","+ E);return q}:function(a,b,c,d,h,k,l,n,p){var q=[],r,t,B,C,G,K,w=Math.round;r=0;for(B=l?l.length:0;r<B;r++){G=l[r];q.push("M");t=0;for(C=G?G.length:0;t<C;t++)K=n?n(G[t][0],G[t][1],p):G[t],q.push(w((K[0]-a)c+h)+","+w((b-K[1])d+k))}return q}}();return{toScreenPoint:function(a,b,c,d,h){var k=a.spatialReference,l=d.spatialReference,n=d.x;d=d.y;k&&(l&&!k.equals(l)&&k._canProject(l))&&(k=k.isWebMercator()?p.lngLatToXY(n,d):p.xyToLngLat(n,d,!0),n=k[0],d=k[1]);n=(n-a.xmin)(b/a.getWidth());d=(a.ymax-d) (c/a.getHeight());h||(n=Math.round(n),d=Math.round(d));return new q(n,d)},toScreenGeometry:function(a,b,l,g){var h=a.xmin,s=a.ymax,q=b/a.getWidth(),t=l/a.getHeight(),v=c.forEach,z=Math.round;if(g instanceof p)return new p(z((g.x-h)q),z((s-g.y)t));if(g instanceof n){a=new n;var y=a.points;v(g.points,function(a,b){y[b]=0q),z((s-a[1])t)]});return a}if(g instanceof d)return new d(z((g.xmin-h)q),z((s-g.ymin)t),z((g.xmax-h)q),z((s-g.ymax)q));if(g instanceof r){a=new r;var J=a.paths,B; v(g.paths,function(a,b){B=J[b]=[];v(a,function(a,b){B[b]=0q),z((s-a[1])t)]})});return a}if(g instanceof k){a=new k;var C=a.rings,G;v(g.rings,function(a,b){G=C[b]=[];v(a,function(a,b){G[b]=0q),z((s-a[1])t)]})});return a}},_toScreenPath:function(a,b,c,d,h,k){var l=d instanceof r,n=a.spatialReference,q=d.spatialReference,z,y;n&&(q&&!n.equals(q)&&n._canProject(q))&&(n.isWebMercator()?z=p.lngLatToXY:(z=p.xyToLngLat,y=!0));return t(a.xmin,a.ymax,b/a.getWidth(),c/a.getHeight(),h, k,l?d.paths:d.rings,z,y)},toMapPoint:function(a,b,c,d){return new p(a.xmin+d.x/(b/a.getWidth()),a.ymax-d.y/(c/a.getHeight()),a.spatialReference)},toMapGeometry:function(a,b,l,g){var h=a.xmin,q=a.ymax,t=a.spatialReference,F=b/a.getWidth(),v=l/a.getHeight(),z=c.forEach;if(g instanceof p)return new p(h+g.x/F,q-g.y/v,t);if(g instanceof n){a=new n(t);var y=a.points;z(g.points,function(a,b){y[b]=[h+a[0]/F,q-a[1]/v]});return a}if(g instanceof d)return new d(h+g.xmin/F,q-g.ymin/v,h+g.xmax/F,q-g.ymax/v,t); if(g instanceof r){a=new r(t);var J=a.paths,B;z(g.paths,function(a,b){B=J[b]=[];z(a,function(a,b){B[b]=[h+a[0]/F,q-a[1]/v]})});return a}if(g instanceof k){a=new k(t);var C=a.rings,G;z(g.rings,function(a,b){G=C[b]=[];z(a,function(a,b){G[b]=[h+a[0]/F,q-a[1]/v]})});return a}}}})},"dojo/Evented":function(){define(["./aspect","./on"],function(c,l){function a(){}var b=c.after;a.prototype={on:function(a,c){return l.parse(this,a,c,function(a,k){return b(a,"on"+k,c,!0)})},emit:function(a,b){var c=[this];c.push.apply(c, arguments);return l.emit.apply(l,c)}};return a})},"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(c,l,a,b,p,q,r,k,n,d,t,e,f,m,g,h){c._xhrObj=g._create;var s=c.config;c.objectToQuery=b.objectToQuery;c.queryToObject=b.queryToObject;c.fieldToObject=q.fieldToObject;c.formToObject=q.toObject;c.formToQuery=q.toQuery;c.formToJson=q.toJson; c._blockAsync=!1;l.add("native-xhr2-blob",function(){if(l("native-xhr2")){var a=new XMLHttpRequest;a.open("GET","/",!0);a.responseType="blob";var b=a.responseType;a.abort();return"blob"===b}});var u=c._contentHandlers=c.contentHandlers={text:function(a){return a.responseText},json:function(a){return n.fromJson(a.responseText||null)},"json-comment-filtered":function(a){k.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."); a=a.responseText;var b=a.indexOf("/"),c=a.lastIndexOf("/");if(-1==b||-1==c)throw Error("JSON was not comment filtered");return n.fromJson(a.substring(b+2,c))},javascript:function(a){return c.eval(a.responseText)},xml:function(a){var b=a.responseXML;b&&(l("dom-qsa2.1")&&!b.querySelectorAll&&l("dom-parser"))&&(b=(new DOMParser).parseFromString(a.responseText,"application/xml"));if(l("ie")&&(!b||!b.documentElement)){var c=function(a){return"MSXML"+a+".DOMDocument"},c=["Microsoft.XMLDOM",c(6),c(4), c(3),c(2)];t.some(c,function(c){try{var d=new ActiveXObject(c);d.async=!1;d.loadXML(a.responseText);b=d}catch(e){return!1}return!0})}return b},"json-comment-optional":function(a){return a.responseText&&/^[^{[]\/*/.test(a.responseText)?u"json-comment-filtered":u.json(a)}};l("native-xhr2")&&(u.arraybuffer=u.blob=u.document=function(a,b){return"blob"===b.args.handleAs&&!l("native-xhr2-blob")?new Blob([a.response],{type:a.getResponseHeader("Content-Type")}):a.response});c._ioSetArgs=function(a, e,g,h){var f={args:a,url:a.url},k=null;if(a.form){var k=p.byId(a.form),l=k.getAttributeNode("action");f.url=f.url||(l?l.value:null);k=q.toObject(k)}l=[{}];k&&l.push(k);a.content&&l.push(a.content);a.preventCache&&l.push({"dojo.preventCache":(new Date).valueOf()});f.query=b.objectToQuery(d.mixin.apply(null,l));f.handleAs=a.handleAs||"text";var m=new r(function(a){a.canceled=!0;e&&e(a);var b=a.ioArgs.error;b||(b=Error("request cancelled"),b.dojoType="cancel",a.ioArgs.error=b);return b});m.addCallback(g); var n=a.load;n&&d.isFunction(n)&&m.addCallback(function(b){return n.call(a,b,f)});var t=a.error;t&&d.isFunction(t)&&m.addErrback(function(b){return t.call(a,b,f)});var u=a.handle;u&&d.isFunction(u)&&m.addBoth(function(b){return u.call(a,b,f)});m.addErrback(function(a){return h(a,m)});s.ioPublish&&(c.publish&&!1!==f.args.ioPublish)&&(m.addCallbacks(function(a){c.publish("/dojo/io/load",[m,a]);return a},function(a){c.publish("/dojo/io/error",[m,a]);return a}),m.addBoth(function(a){c.publish("/dojo/io/done", [m,a]);return a}));m.ioArgs=f;return m};var F=function(a){a=ua.ioArgs.handleAs;return void 0===a?null:a},v=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},z=function(a){0>=y&&(y=0,s.ioPublish&&(c.publish&&(!a||a&&!1!==a.ioArgs.args.ioPublish))&&c.publish("/dojo/io/stop"))},y=0;f.after(m,"_onAction",function(){y-=1});f.after(m,"_onInFlight",z);c._ioCancelAll=m.cancelAll;c._ioNotifyStart=function(a){s.ioPublish&&(c.publish&&!1!==a.ioArgs.args.ioPublish)&&(y|| c.publish("/dojo/io/start"),y+=1,c.publish("/dojo/io/send",[a]))};c._ioWatch=function(a,b,c,e){a.ioArgs.options=a.ioArgs.args;d.mixin(a,{response:a.ioArgs,isValid:function(c){return b(a)},isReady:function(b){return c(a)},handleResponse:function(b){return e(a)}});m(a);z(a)};c._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(-1==a.url.indexOf("?")?"?":"\x26")+a.query,a.query=null)};c.xhr=function(a,b,d){var e,h=c._ioSetArgs(b,function(a){e&&e.cancel()},F,v),f=h.ioArgs;"postData"in b?f.query=b.postData: "putData"in b?f.query=b.putData:"rawBody"in b?f.query=b.rawBody:(2<arguments.length&&!d||-1==="POST|PUT".indexOf(a.toUpperCase()))&&c._ioAddQueryToUrl(f);var k;l("native-xhr2")&&(k={arraybuffer:1,blob:1,document:1});k=l("native-xhr2")&&k[b.handleAs]?b.handleAs:"text";"blob"===k&&!l("native-xhr2-blob")&&(k="arraybuffer");k={method:a,handleAs:k,responseType:b.responseType,timeout:b.timeout,withCredentials:b.withCredentials,ioArgs:f};"undefined"!==typeof b.headers&&(k.headers=b.headers);"undefined"!== typeof b.contentType&&(k.headers||(k.headers={}),k.headers["Content-Type"]=b.contentType);"undefined"!==typeof f.query&&(k.data=f.query);"undefined"!==typeof b.sync&&(k.sync=b.sync);c._ioNotifyStart(h);try{e=g(f.url,k,!0)}catch(m){return h.cancel(),h}h.ioArgs.xhr=e.response.xhr;e.then(function(){h.resolve(h)}).otherwise(function(a){f.error=a;a.response&&(a.status=a.response.status,a.responseText=a.response.text,a.xhr=a.response.xhr);h.reject(a)});return h};c.xhrGet=function(a){return c.xhr("GET", a)};c.rawXhrPost=c.xhrPost=function(a){return c.xhr("POST",a,!0)};c.rawXhrPut=c.xhrPut=function(a){return c.xhr("PUT",a,!0)};c.xhrDelete=function(a){return c.xhr("DELETE",a)};c._isDocumentOk=function(a){return h.checkStatus(a.status)};c._getText=function(a){var b;c.xhrGet({url:a,sync:!0,load:function(a){b=a}});return b};d.mixin(c.xhr,{_xhrObj:c._xhrObj,fieldToObject:q.fieldToObject,formToObject:q.toObject,objectToQuery:b.objectToQuery,formToQuery:q.toQuery,formToJson:q.toJson,queryToObject:b.queryToObject, contentHandlers:u,_ioSetArgs:c._ioSetArgs,_ioCancelAll:c._ioCancelAll,_ioNotifyStart:c._ioNotifyStart,_ioWatch:c._ioWatch,_ioAddQueryToUrl:c._ioAddQueryToUrl,_isDocumentOk:c._isDocumentOk,_getText:c._getText,get:c.xhrGet,post:c.xhrPost,put:c.xhrPut,del:c.xhrDelete});return c.xhr})},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(c,l,a){c._name="browser";l.mixin(c,{isBrowser:!0,isFF:a("ff"),isIE:a("ie"),isKhtml:a("khtml"),isWebKit:a("webkit"),isMozilla:a("mozilla"),isMoz:a("mozilla"), isOpera:a("opera"),isSafari:a("safari"),isChrome:a("chrome"),isMac:a("mac"),isIos:a("ios"),isAndroid:a("android"),isWii:a("wii"),isQuirks:a("quirks"),isAir:a("air")});return a})},"dojo/_base/window":function(){define(["./kernel","./lang","../sniff"],function(c,l,a){var b={global:c.global,doc:c.global.document||null,body:function(a){a=a||c.doc;return a.body||a.getElementsByTagName("body")[0]},setContext:function(a,l){c.global=b.global=a;c.doc=b.doc=l},withGlobal:function(a,l,r,k){var n=c.global;try{return c.global= b.global=a,b.withDoc.call(null,a.document,l,r,k)}finally{c.global=b.global=n}},withDoc:function(l,q,r,k){var n=b.doc,d=a("quirks"),t=a("ie"),e,f,m;try{c.doc=b.doc=l;c.isQuirks=a.add("quirks","BackCompat"==c.doc.compatMode,!0,!0);if(a("ie")&&(m=l.parentWindow)&&m.navigator)e=parseFloat(m.navigator.appVersion.split("MSIE ")[1])||void 0,(f=l.documentMode)&&(5!=f&&Math.floor(e)!=f)&&(e=f),c.isIE=a.add("ie",e,!0,!0);r&&"string"==typeof q&&(q=r[q]);return q.apply(r,k||[])}finally{c.doc=b.doc=n,c.isQuirks= a.add("quirks",d,!0,!0),c.isIE=a.add("ie",t,!0,!0)}}};l.mixin(c,b);return b})},"dojo/when":function(){define(["./Deferred","./promise/Promise"],function(c,l){return function(a,b,p,q){var r=a&&"function"===typeof a.then,k=r&&a instanceof l;if(r)k||(r=new c(a.cancel),a.then(r.resolve,r.reject,r.progress),a=r.promise);else return 1<arguments.length?b?b(a):a:(new c).resolve(a);return b||p||q?a.then(b,p,q):a}})},"esri/geometry/geodesicUtils":function(){define("dojo/_base/array dojo/_base/lang dojo/has ../kernel ../SpatialReference ./Point ./Polyline ./Polygon".split(" "), function(c,l,a,b,p,q,r,k){function n(a){var b=Math.PI/180,c=Math.sin(a.yb),c=0.9933056200098026(c/(1-0.006694379990197414cc)-6.111035746609262Math.log((1-0.0818191908429643c)/(1+0.0818191908429643c)));return new q(6378137a.xb,3189068.5c)}function d(a,b,c,d){var e=1/298.257223563,f=Math.sin(c);c=Math.cos(c);a=(1-e)Math.tan(a);var k=1/Math.sqrt(1+aa),l=ak,n=Math.atan2(a,c);a=kfkf;for(var r=1-a,t=2.7233160610754688E11r/4.040829998466145E13,C=1+t/16384(4096+t(-768+t(320-175t))),G= t/1024(256+t(-128+t(74-47t))),t=d/(6356752.31424518C),K=2Math.PI,w,A,E,x;1E-12<Math.abs(t-K);)E=Math.cos(2n+t),w=Math.sin(t),A=Math.cos(t),x=Gw(E+G/4(A(-1+2EE)-G/6E(-3+4ww)(-3+4EE))),K=t,t=d/(6356752.31424518C)+x;d=lw-kAc;d=Math.atan2(lA+kwc,(1-e)Math.sqrt(a+dd));f=Math.atan2(wf,kA-lwc);c=e/16r(4+e(4-3r));e=f-(1-c)eMath.sqrt(a)(t+cw(E+cA(-1+2EE)));return new q((b+e)/(Math.PI/180),d/(Math.PI/180),new p({wkid:4326}))}function t(a,b,c,d){var e=1/298.257223563, f=d-b,k=Math.atan((1-e)Math.tan(a)),l=Math.atan((1-e)Math.tan(c)),n=Math.sin(k),k=Math.cos(k),p=Math.sin(l),l=Math.cos(l),q=f,r,t=1E3,K,w,A,E,x,D,H;do{A=Math.sin(q);E=Math.cos(q);w=Math.sqrt(lAlA+(kp-nlE)(kp-nlE));if(0===w)return 0;E=np+klE;x=Math.atan2(w,E);D=klA/w;K=1-DD;A=E-2np/K;isNaN(A)&&(A=0);H=e/16K(4+e(4-3K));r=q;q=f+(1-H)eD(x+Hw(A+HE(-1+2AA)))}while(1E-12<Math.abs(q-r)&&0<--t);if(0===t)return n=6371009Math.acos(Math.sin(a)Math.sin(c)+Math.cos(a)Math.cos(c) Math.cos(d-b)),p=d-b,k=Math.sin(p)Math.cos(c),a=Math.cos(a)Math.sin(c)-Math.sin(a)Math.cos(c)Math.cos(p),{azimuth:Math.atan2(k,a),geodesicDistance:n};a=2.7233160610754688E11K/4.040829998466145E13;c=a/1024(256+a(-128+a(74-47a)));a=6356752.31424518(1+a/16384(4096+a(-768+a(320-175a))))(x-cw(A+c/4(E(-1+2AA)-c/6A(-3+4ww)(-3+4AA))));c=Math.atan2(lMath.sin(q),kp-nlMath.cos(q));n=Math.atan2(kMath.sin(q),kpMath.cos(q)-nl);return{azimuth:c,geodesicDistance:a,reverseAzimuth:n}} function e(a,b){var e=Math.PI/180;637.100877151506>b&&(b=637.100877151506);if(!(a instanceof r||a instanceof k))throw console.error("_geodesicDensify: the input geometry is neither polyline nor polygon"),Error("_geodesicDensify: the input geometry is neither polyline nor polygon");var f=a instanceof r,l=[],n;c.forEach(f?a.paths:a.rings,function(a){l.push(n=[]);n.push([a[0][0],a[0][1]]);var c,f,k,m,p,q;c=a[0][0]_e;f=a[0][1]_e;for(p=0;p<a.length-1;p++)if(k=a[p+1][0]e,m=a[p+1][1]e,!(c===k&&f===m)){m= t(f,c,m,k);k=m.azimuth;m=m.geodesicDistance;var r=m/b;if(1<r){for(q=1;q<=r-1;q++){var s=d(f,c,k,qb);n.push([s.x,s.y])}q=d(f,c,k,(m+Math.floor(r-1)b)/2);n.push([q.x,q.y])}f=d(f,c,k,m);n.push([f.x,f.y]);c=f.xe;f=f.ye}});return f?new r({paths:l,spatialReference:a.spatialReference}):new k({rings:l,spatialReference:a.spatialReference})}var f={esriMiles:1,esriKilometers:1.609344,esriFeet:5280,esriMeters:1609.34,esriYards:1760,esriNauticalMiles:0.869,esriCentimeters:160934,esriDecimeters:16093.4,esriInches:63360, esriMillimeters:1609340,esriAcres:1,esriAres:40.4685642,esriSquareKilometers:0.00404685642,esriSquareMiles:0.0015625,esriSquareFeet:43560,esriSquareMeters:4046.85642,esriHectares:0.404685642,esriSquareYards:4840,esriSquareInches:6272640,esriSquareMillimeters:4046856420,esriSquareCentimeters:4.04685642E7,esriSquareDecimeters:404685.642};return{geodesicDensify:e,geodesicLengths:function(a,b){var d=Math.PI/180,e=[];c.forEach(a,function(a,k){var l=0;c.forEach(a.paths,function(a,b){var c=0,e,f,g,k,m;for(e= 1;e<a.length;e++)f=a[e-1][0]d,g=a[e][0]d,k=a[e-1][1]d,m=a[e][1]d,k===m&&f===g||(f=t(k,f,m,g),c+=f.geodesicDistance/1609.344);l+=c});l=f[b];e.push(l)});return e},geodesicAreas:function(a,b){var d=[];c.forEach(a,function(a,b){var c=e(a,1E4);d.push(c)});var k=[],l,p;c.forEach(d,function(a,d){var e=0;c.forEach(a.rings,function(a,b){l=n(new q(a[0][0],a[0][1]));p=n(new q(a[a.length-1][0],a[a.length-1][1]));var c=p.xl.y-l.xp.y,d;for(d=0;d<a.length-1;d++)l=n(new q(a[d+1][0],a[d+1][1])),p=n(new q(a[d][0], a[d][1])),c+=p.xl.y-l.xp.y;e+=c/4046.87});e=f[b];k.push(e/-2)});return k},_unitsDictionary:f,_toEqualAreaPoint:n,_directGeodeticSolver:d,_inverseGeodeticSolver:t}})},"dojo/errors/RequestError":function(){define(["./create"],function(c){return c("RequestError",function(c,a){this.response=a})})},"esri/WKIDUnitConversion":function(){define(["dojo/has","./kernel"],function(c,l){var a,b={values:[1,0.3048,0.3048006096012192,0.3047972654,0.9143917962,0.201166195164,0.9143984146160287,0.3047994715386762, 20.11676512155263,20.11678249437587,0.9143985307444408,0.91439523,0.3047997101815088,20.116756,5E4,15E4],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:13,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0, 3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2, 3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2, 3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5048:0,5167:0, 5168:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6210:0,6211:0,6316:0,6391: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,22332:0,22391:0,22392:0,22700:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25E3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,27700:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0, 29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,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,53034:0,53048:0,53049:0,54034:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:14,102069:15,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2, 102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,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,103695:2};for(a=2E3;2046>a;a++)b[a]=0;for(a=2056;2066>a;a++)b[a]= 0;for(a=2067;2136>a;a++)b[a]=0;for(a=2137;2155>a;a++)b[a]=0;for(a=2161;2171>a;a++)b[a]=0;for(a=2172;2194>a;a++)b[a]=0;for(a=2195;2199>a;a++)b[a]=0;for(a=2200;2204>a;a++)b[a]=0;for(a=2205;2218>a;a++)b[a]=0;for(a=2222;2225>a;a++)b[a]=1;for(a=2225;2251>a;a++)b[a]=2;for(a=2251;2254>a;a++)b[a]=1;for(a=2257;2265>a;a++)b[a]=2;for(a=2274;2280>a;a++)b[a]=2;for(a=2280;2283>a;a++)b[a]=1;for(a=2283;2290>a;a++)b[a]=2;for(a=2290;2293>a;a++)b[a]=0;for(a=2308;2314>a;a++)b[a]=0;for(a=2315;2463>a;a++)b[a]=0;for(a= 2523;2867>a;a++)b[a]=0;for(a=2867;2870>a;a++)b[a]=1;for(a=2870;2889>a;a++)b[a]=2;for(a=2891;2896>a;a++)b[a]=2;for(a=2896;2899>a;a++)b[a]=1;for(a=2902;2909>a;a++)b[a]=2;for(a=2915;2921>a;a++)b[a]=2;for(a=2921;2924>a;a++)b[a]=1;for(a=2924;2931>a;a++)b[a]=2;for(a=2931;2963>a;a++)b[a]=0;for(a=2964;2969>a;a++)b[a]=2;for(a=2969;2974>a;a++)b[a]=0;for(a=2975;2992>a;a++)b[a]=0;for(a=2995;3052>a;a++)b[a]=0;for(a=3054;3080>a;a++)b[a]=0;for(a=3081;3089>a;a++)b[a]=0;for(a=3092;3102>a;a++)b[a]=0;for(a=3106;3139> a;a++)b[a]=0;for(a=3146;3152>a;a++)b[a]=0;for(a=3153;3167>a;a++)b[a]=0;for(a=3168;3173>a;a++)b[a]=0;for(a=3174;3204>a;a++)b[a]=0;for(a=3294;3359>a;a++)b[a]=0;for(a=3367;3404>a;a++)b[a]=0;for(a=3408;3417>a;a++)b[a]=0;for(a=3417;3439>a;a++)b[a]=2;for(a=3441;3447>a;a++)b[a]=2;for(a=3447;3451>a;a++)b[a]=0;for(a=3451;3460>a;a++)b[a]=2;for(a=3460;3479>a;a++)b[a]=0;for(a=3554;3560>a;a++)b[a]=0;for(a=3560;3571>a;a++)b[a]=2;for(a=3571;3582>a;a++)b[a]=0;for(a=3594;3598>a;a++)b[a]=0;for(a=3601;3605>a;a++)b[a]= 0;for(a=3637;3640>a;a++)b[a]=0;for(a=3665;3668>a;a++)b[a]=0;for(a=3693;3696>a;a++)b[a]=0;for(a=3701;3728>a;a++)b[a]=0;for(a=3728;3740>a;a++)b[a]=2;for(a=3740;3752>a;a++)b[a]=0;for(a=3753;3761>a;a++)b[a]=2;for(a=3761;3774>a;a++)b[a]=0;for(a=3775;3778>a;a++)b[a]=0;for(a=3779;3782>a;a++)b[a]=0;for(a=3783;3786>a;a++)b[a]=0;for(a=3788;3792>a;a++)b[a]=0;for(a=3797;3803>a;a++)b[a]=0;for(a=3814;3817>a;a++)b[a]=0;for(a=3825;3830>a;a++)b[a]=0;for(a=3832;3842>a;a++)b[a]=0;for(a=3844;3853>a;a++)b[a]=0;for(a= 3873;3886>a;a++)b[a]=0;for(a=3890;3894>a;a++)b[a]=0;for(a=3907;3913>a;a++)b[a]=0;for(a=3942;3951>a;a++)b[a]=0;for(a=3968;3971>a;a++)b[a]=0;for(a=3973;3977>a;a++)b[a]=0;for(a=3986;3990>a;a++)b[a]=0;for(a=3994;3998>a;a++)b[a]=0;for(a=4048;4052>a;a++)b[a]=0;for(a=4056;4064>a;a++)b[a]=0;for(a=4093;4097>a;a++)b[a]=0;for(a=4399;4414>a;a++)b[a]=2;for(a=4418;4434>a;a++)b[a]=2;for(a=4455;4458>a;a++)b[a]=2;for(a=4484;4490>a;a++)b[a]=0;for(a=4491;4555>a;a++)b[a]=0;for(a=4568;4590>a;a++)b[a]=0;for(a=4652;4657> a;a++)b[a]=0;for(a=4766;4801>a;a++)b[a]=0;for(a=5014;5017>a;a++)b[a]=0;for(a=5069;5073>a;a++)b[a]=0;for(a=5105;5131>a;a++)b[a]=0;for(a=5173;5189>a;a++)b[a]=0;for(a=5253;5260>a;a++)b[a]=0;for(a=5269;5276>a;a++)b[a]=0;for(a=5292;5312>a;a++)b[a]=0;for(a=5329;5332>a;a++)b[a]=0;for(a=5343;5350>a;a++)b[a]=0;for(a=5355;5358>a;a++)b[a]=0;for(a=5387;5390>a;a++)b[a]=0;for(a=5459;5464>a;a++)b[a]=0;for(a=5479;5483>a;a++)b[a]=0;for(a=5518;5521>a;a++)b[a]=0;for(a=5530;5540>a;a++)b[a]=0;for(a=5550;5553>a;a++)b[a]= 0;for(a=5562;5584>a;a++)b[a]=0;for(a=5623;5626>a;a++)b[a]=2;for(a=5631;5640>a;a++)b[a]=0;for(a=5649;5654>a;a++)b[a]=0;for(a=5663;5681>a;a++)b[a]=0;for(a=5682;5686>a;a++)b[a]=0;for(a=5875;5878>a;a++)b[a]=0;for(a=5921;5941>a;a++)b[a]=0;for(a=6050;6126>a;a++)b[a]=0;for(a=6244;6276>a;a++)b[a]=0;for(a=6328;6349>a;a++)b[a]=0;for(a=6350;6355>a;a++)b[a]=0;for(a=20002;20033>a;a++)b[a]=0;for(a=20062;20093>a;a++)b[a]=0;for(a=20135;20139>a;a++)b[a]=0;for(a=20248;20259>a;a++)b[a]=0;for(a=20348;20359>a;a++)b[a]= 0;for(a=20436;20441>a;a++)b[a]=0;for(a=20822;20825>a;a++)b[a]=0;for(a=20934;20937>a;a++)b[a]=0;for(a=21035;21038>a;a++)b[a]=0;for(a=21095;21098>a;a++)b[a]=0;for(a=21148;21151>a;a++)b[a]=0;for(a=21413;21424>a;a++)b[a]=0;for(a=21473;21484>a;a++)b[a]=0;for(a=21780;21783>a;a++)b[a]=0;for(a=21891;21895>a;a++)b[a]=0;for(a=21896;21900>a;a++)b[a]=0;for(a=22171;22178>a;a++)b[a]=0;for(a=22181;22188>a;a++)b[a]=0;for(a=22191;22198>a;a++)b[a]=0;for(a=22234;22237>a;a++)b[a]=0;for(a=22521;22526>a;a++)b[a]=0;for(a= 22991;22995>a;a++)b[a]=0;for(a=23028;23039>a;a++)b[a]=0;for(a=23830;23854>a;a++)b[a]=0;for(a=23866;23873>a;a++)b[a]=0;for(a=23877;23885>a;a++)b[a]=0;for(a=23886;23895>a;a++)b[a]=0;for(a=23946;23949>a;a++)b[a]=0;for(a=24311;24314>a;a++)b[a]=0;for(a=24342;24348>a;a++)b[a]=0;for(a=24370;24375>a;a++)b[a]=10;for(a=24375;24382>a;a++)b[a]=0;for(a=24718;24722>a;a++)b[a]=0;for(a=24817;24822>a;a++)b[a]=0;for(a=24877;24883>a;a++)b[a]=0;for(a=24891;24894>a;a++)b[a]=0;for(a=25391;25396>a;a++)b[a]=0;for(a=25828;25839> a;a++)b[a]=0;for(a=26191;26196>a;a++)b[a]=0;for(a=26391;26394>a;a++)b[a]=0;for(a=26701;26723>a;a++)b[a]=0;for(a=26729;26800>a;a++)b[a]=2;for(a=26801;26804>a;a++)b[a]=2;for(a=26811;26814>a;a++)b[a]=2;for(a=26847;26871>a;a++)b[a]=2;for(a=26891;26900>a;a++)b[a]=0;for(a=26901;26924>a;a++)b[a]=0;for(a=26929;26947>a;a++)b[a]=0;for(a=26948;26999>a;a++)b[a]=0;for(a=27037;27041>a;a++)b[a]=0;for(a=27205;27233>a;a++)b[a]=0;for(a=27258;27261>a;a++)b[a]=0;for(a=27391;27399>a;a++)b[a]=0;for(a=27561;27565>a;a++)b[a]= 0;for(a=27571;27575>a;a++)b[a]=0;for(a=27581;27585>a;a++)b[a]=0;for(a=27591;27595>a;a++)b[a]=0;for(a=28191;28194>a;a++)b[a]=0;for(a=28348;28359>a;a++)b[a]=0;for(a=28402;28433>a;a++)b[a]=0;for(a=28462;28493>a;a++)b[a]=0;for(a=29118;29123>a;a++)b[a]=0;for(a=29168;29173>a;a++)b[a]=0;for(a=29177;29186>a;a++)b[a]=0;for(a=29187;29196>a;a++)b[a]=0;for(a=29900;29904>a;a++)b[a]=0;for(a=30161;30180>a;a++)b[a]=0;for(a=30491;30495>a;a++)b[a]=0;for(a=30729;30733>a;a++)b[a]=0;for(a=31251;31260>a;a++)b[a]=0;for(a= 31265;31269>a;a++)b[a]=0;for(a=31275;31280>a;a++)b[a]=0;for(a=31281;31298>a;a++)b[a]=0;for(a=31461;31470>a;a++)b[a]=0;for(a=31491;31496>a;a++)b[a]=0;for(a=31917;31923>a;a++)b[a]=0;for(a=31965;32001>a;a++)b[a]=0;for(a=32001;32004>a;a++)b[a]=2;for(a=32005;32032>a;a++)b[a]=2;for(a=32033;32061>a;a++)b[a]=2;for(a=32064;32068>a;a++)b[a]=2;for(a=32074;32078>a;a++)b[a]=2;for(a=32081;32087>a;a++)b[a]=0;for(a=32107;32131>a;a++)b[a]=0;for(a=32133;32159>a;a++)b[a]=0;for(a=32164;32168>a;a++)b[a]=2;for(a=32180;32200> a;a++)b[a]=0;for(a=32201;32261>a;a++)b[a]=0;for(a=32301;32361>a;a++)b[a]=0;for(a=32601;32663>a;a++)b[a]=0;for(a=32664;32668>a;a++)b[a]=2;for(a=32701;32762>a;a++)b[a]=0;for(a=53001;53005>a;a++)b[a]=0;for(a=53008;53020>a;a++)b[a]=0;for(a=53021;53033>a;a++)b[a]=0;for(a=53042;53047>a;a++)b[a]=0;for(a=54001;54005>a;a++)b[a]=0;for(a=54008;54020>a;a++)b[a]=0;for(a=54021;54033>a;a++)b[a]=0;for(a=54042;54047>a;a++)b[a]=0;for(a=54048;54054>a;a++)b[a]=0;for(a=102001;102041>a;a++)b[a]=0;for(a=102042;102064>a;a++)b[a]= 0;for(a=102065;102068>a;a++)b[a]=0;for(a=102070;102118>a;a++)b[a]=0;for(a=102122;102217>a;a++)b[a]=0;for(a=102221;102378>a;a++)b[a]=0;for(a=102382;102389>a;a++)b[a]=0;for(a=102389;102399>a;a++)b[a]=2;for(a=102401;102445>a;a++)b[a]=0;for(a=102445;102448>a;a++)b[a]=2;for(a=102450;102453>a;a++)b[a]=0;for(a=102461;102469>a;a++)b[a]=2;for(a=102469;102497>a;a++)b[a]=0;for(a=102500;102520>a;a++)b[a]=1;for(a=102520;102525>a;a++)b[a]=0;for(a=102525;102530>a;a++)b[a]=2;for(a=102530;102550>a;a++)b[a]=0;for(a= 102570;102589>a;a++)b[a]=0;for(a=102590;102599>a;a++)b[a]=0;for(a=102601;102604>a;a++)b[a]=0;for(a=102605;102629>a;a++)b[a]=0;for(a=102629;102647>a;a++)b[a]=2;for(a=102648;102701>a;a++)b[a]=2;for(a=102701;102704>a;a++)b[a]=0;for(a=102707;102731>a;a++)b[a]=2;for(a=102733;102759>a;a++)b[a]=2;for(a=102767;102799>a;a++)b[a]=0;for(a=102962;102970>a;a++)b[a]=0;for(a=102971;102974>a;a++)b[a]=0;for(a=102975;102990>a;a++)b[a]=0;for(a=102990;102993>a;a++)b[a]=1;for(a=102997;103003>a;a++)b[a]=0;for(a=103003;103009> a;a++)b[a]=2;for(a=103009;103012>a;a++)b[a]=0;for(a=103012;103015>a;a++)b[a]=2;for(a=103019;103022>a;a++)b[a]=0;for(a=103022;103025>a;a++)b[a]=2;for(a=103029;103032>a;a++)b[a]=0;for(a=103032;103035>a;a++)b[a]=2;for(a=103065;103069>a;a++)b[a]=0;for(a=103074;103077>a;a++)b[a]=0;for(a=103077;103080>a;a++)b[a]=1;for(a=103080;103083>a;a++)b[a]=0;for(a=103083;103086>a;a++)b[a]=2;for(a=103090;103094>a;a++)b[a]=0;for(a=103097;103100>a;a++)b[a]=0;for(a=103100;103103>a;a++)b[a]=2;for(a=103107;103110>a;a++)b[a]= 0;for(a=103110;103113>a;a++)b[a]=2;for(a=103113;103117>a;a++)b[a]=0;for(a=103117;103121>a;a++)b[a]=2;for(a=103153;103158>a;a++)b[a]=0;for(a=103158;103163>a;a++)b[a]=2;for(a=103163;103166>a;a++)b[a]=0;for(a=103166;103169>a;a++)b[a]=1;for(a=103169;103172>a;a++)b[a]=2;for(a=103186;103189>a;a++)b[a]=0;for(a=103189;103192>a;a++)b[a]=2;for(a=103192;103196>a;a++)b[a]=0;for(a=103196;103200>a;a++)b[a]=2;for(a=103200;103225>a;a++)b[a]=0;for(a=103225;103228>a;a++)b[a]=1;for(a=103232;103238>a;a++)b[a]=0;for(a= 103238;103244>a;a++)b[a]=2;for(a=103244;103247>a;a++)b[a]=0;for(a=103247;103250>a;a++)b[a]=2;for(a=103254;103257>a;a++)b[a]=0;for(a=103257;103260>a;a++)b[a]=2;for(a=103264;103267>a;a++)b[a]=0;for(a=103267;103270>a;a++)b[a]=2;for(a=103300;103376>a;a++)b[a]=0;for(a=103381;103384>a;a++)b[a]=0;for(a=103384;103387>a;a++)b[a]=1;for(a=103387;103390>a;a++)b[a]=0;for(a=103390;103393>a;a++)b[a]=2;for(a=103397;103400>a;a++)b[a]=0;for(a=103400;103472>a;a++)b[a]=2;for(a=103476;103479>a;a++)b[a]=0;for(a=103479;103482> a;a++)b[a]=2;for(a=103486;103489>a;a++)b[a]=0;for(a=103489;103492>a;a++)b[a]=2;for(a=103492;103496>a;a++)b[a]=0;for(a=103496;103500>a;a++)b[a]=2;for(a=103528;103544>a;a++)b[a]=0;for(a=103544;103549>a;a++)b[a]=2;for(a=103549;103552>a;a++)b[a]=0;for(a=103552;103555>a;a++)b[a]=1;for(a=103555;103558>a;a++)b[a]=2;for(a=103558;103561>a;a++)b[a]=0;for(a=103571;103574>a;a++)b[a]=0;for(a=103574;103577>a;a++)b[a]=2;for(a=103577;103581>a;a++)b[a]=0;for(a=103581;103584>a;a++)b[a]=2;for(a=103600;103695>a;a++)b[a]= 0;for(a=103700;103794>a;a++)b[a]=2;for(a=103794;103872>a;a++)b[a]=0;for(a=103900;103972>a;a++)b[a]=2;return b})},"esri/geometry/Multipoint":function(){define("dojo/_base/declare dojo/_base/lang dojo/has ../kernel ../SpatialReference ./Geometry ./Point ./Extent ../srUtils".split(" "),function(c,l,a,b,p,q,r,k,n){var d={type:"multipoint",points:null};c=c(q,{declaredClass:"esri.geometry.Multipoint",constructor:function(a){l.mixin(this,d);this.points=[];a&&(a.points?l.mixin(this,a):this.spatialReference= a,this.spatialReference&&(this.spatialReference=n.createSpatialReference(this.spatialReference)));this.verifySR()},addPoint:function(a){this.clearCache();l.isArray(a)?this.points.push(a):this.points.push([a.x,a.y]);return this},removePoint:function(a){if(this._validateInputs(a))return this.clearCache(),new r(this.points.splice(a,1)[0],this.spatialReference)},getExtent:function(){var a=this.getCacheValue("_extent");if(a)return new k(a);var a=this.points,b=a.length;if(b){var c=a[0],d,g,h=d=c[0],l=g= c[1],n=Math.min,p=Math.max,q=this.spatialReference,r,y;for(y=0;y<b;y++)c=a[y],r=c[0],c=c[1],h=n(h,r),l=n(l,c),d=p(d,r),g=p(g,c);a={xmin:h,ymin:l,xmax:d,ymax:g,spatialReference:q?q.toJson():null};this.setCacheValue("_extent",a);return new k(a)}},_validateInputs:function(a){return null===a||0>a||a>=this.points.length?!1:!0},getPoint:function(a){if(this._validateInputs(a))return a=this.points[a],new r(a[0],a[1],this.spatialReference)},setPoint:function(a,b){if(this._validateInputs(a))return this.clearCache(), this.points[a]=[b.x,b.y],this},toJson:function(){var a={points:l.clone(this.points)},b=this.spatialReference;b&&(a.spatialReference=b.toJson());return a}});c.defaultProps=d;return c})},"_now":function(c){c(['dojo/i18n!_preloadesri/nls/geometry["ar","ca","cs","da","de","el","en-gb","en-us","es-es","fi-fi","fr-fr","he-il","hu","it-it","ja-jp","ko-kr","nl-nl","nb","pl","pt-br","pt-pt","ru","sk","sl","sv","th","tr","zh-tw","zh-cn","ROOT"]'])}}}); 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(c,l,a,b,p,q,r,k,n,d,t,e,f,m,g,h,s){return{units:c,SpatialReference:l,Geometry:a,Point:b,ScreenPoint:p,Multipoint:q,Polyline:r, Polygon:k,Extent:n,Rect:d,geodesicUtils:t,jsonUtils:e,mathUtils:f,normalizeUtils:m,scaleUtils:g,screenUtils:h,webMercatorUtils:s}});

steveoh commented 9 years ago

that looks like a layer file and should probably be removed.

GeoFredMan commented 9 years ago

Removing the geometry.js results in dependency errors. As I mentioned before I think the unwinder doesn't strip this file anymore. I tried the esri-slurp with 3.13 version. That geometry.js looks good en I can make a build with it.

steveoh commented 9 years ago

yes you are right. esrislurp has tests for unwinding layer files. I wonder what is different between the geometry from 3.13 and 3.14.

GeoFredMan commented 9 years ago

Maybe you can change the last regexp in unwinder.js so it deletes everything before the last define in the layer file. It searches now for "//>>built require". In the 3.14 layerfile this is replaced by //>>built define.

I added this in the unwinder.js and that gives me good results:

text = text.substring(text.lastIndexOf('define("'),text.length-1);

steveoh commented 9 years ago

I'm not really interested in putting time into these projects at the moment since esri is going to release a bower package that would make this project moot. Feel free to create a new test in esrislurp and fool with the regex.

GeoFredMan commented 9 years ago

Ok I will wait for that and use my little modification in unwinder.js

steveoh commented 9 years ago

if your modification fixes this problem, submit it as a pr to esrislurp with a test.

GeoFredMan commented 9 years ago

I will try that!

GeoFredMan commented 9 years ago

Thanx!! Op 9 nov. 2015 20:35 schreef "steveoh" notifications@github.com:

Closed #39 https://github.com/steveoh/grunt-esri-slurp/issues/39.

— Reply to this email directly or view it on GitHub https://github.com/steveoh/grunt-esri-slurp/issues/39#event-459242408.