// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.7/esri/copyright.txt for details. //>>built define("require exports dojo/number dojo/_base/array ../kernel ../moment ./FunctionWrapper ./ImmutableArray ./ImmutablePathArray ./ImmutablePointArray ../geometry/Extent ../geometry/Geometry ../geometry/Multipoint ../geometry/Point ../geometry/Polygon ../geometry/Polyline".split(" "),function(A,d,B,C,L,m,M,n,N,O,D,v,P,w,Q,R){function p(a,b,c){if(""===b||null===b||void 0===b||b===c||b===c)return a;do a=a.replace(b,c);while(-1!==a.indexOf(b));return a}function x(a){return a instanceof E||a instanceof M||a instanceof F}function g(a){return"string"===typeof a||a instanceof String}function k(a){return"boolean"===typeof a}function l(a){return"number"===typeof a}function q(a){return a instanceof Array}function h(a){return a instanceof Date}function y(a,b){if(!1===isNaN(a)){if(void 0===b||null===b||""===b)return a.toString();b=p(b,"\u2030","");b=p(b,"\u00a4","");return B.format(a,{pattern:b})}return a.toString()}function t(a,b){a=m(a);return void 0===b||null===b||""===b?a.format():a.format(G(b))}function G(a){return a.replace(/(LTS)|L|l/g, function(a){return"["+a+"]"})}function e(a,b,c){switch(c){case "\x3e":return a>b;case "\x3c":return a=b;case "\x3c\x3d":return a<=b}return!1}function H(a,b){if(a===b||null===a&&b===d.voidOperation||null===b&&a===d.voidOperation)return!0;if(h(a)&&h(b))return a.getTime()===b.getTime();if(a instanceof N||a instanceof O)return a.equalityTest(b);if(a instanceof w&&b instanceof w){var c=void 0,e=void 0;d.isVersion4?(c=a.cache._arcadeCacheId,e=b.cache._arcadeCacheId):(c=a.getCacheValue("_arcadeCacheId"), e=b.getCacheValue("_arcadeCacheId"));if(void 0!==c&&null!==c)return c===e}return void 0!==a&&void 0!==b&&null!==a&&null!==b&&"object"===typeof a&&"object"===typeof b&&(a._arcadeCacheId===b._arcadeCacheId&&void 0!==a._arcadeCacheId&&null!==a._arcadeCacheId||a._underlyingGraphic===b._underlyingGraphic&&void 0!==a._underlyingGraphic&&null!==a._underlyingGraphic)?!0:!1}function r(a,b){if(g(a))return a;if(null===a)return"";if(l(a))return y(a,b);if(k(a))return a.toString();if(h(a))return t(a,b);if(a instanceof v)return JSON.stringify(a.toJSON());if(q(a)){b=[];for(var c=0;cb.key?1:0});if(q(a)){b=[];for(var c=0;cc)throw Error("Function called with wrong number of Parameters");};d.generateUUID=function(){var a=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(b){var c=(a+16*Math.random())%16|0;a=Math.floor(a/16);return("x"===b?c:c&3|8).toString(16)})};d.formatNumber=y;d.formatDate=t;d.standardiseDateFormat=G;d.greaterThanLessThan=function(a,b,c){if(null===a){if(null===b||b===d.voidOperation)return e(null,null,c);if(l(b))return e(0, b,c);if(g(b)||k(b))return e(0,f(b),c);if(h(b))return e(0,b.getTime(),c)}if(a===d.voidOperation){if(null===b||b===d.voidOperation)return e(null,null,c);if(l(b))return e(0,b,c);if(g(b)||k(b))return e(0,f(b),c);if(h(b))return e(0,b.getTime(),c)}else if(l(a)){if(l(b))return e(a,b,c);if(k(b))return e(a,f(b),c);if(null===b||b===d.voidOperation)return e(a,0,c);if(g(b))return e(a,f(b),c);if(h(b))return e(a,b.getTime(),c)}else if(g(a)){if(g(b))return e(r(a),r(b),c);if(h(b))return e(f(a),b.getTime(),c);if(l(b))return e(f(a), b,c);if(null===b||b===d.voidOperation)return e(f(a),0,c);if(k(b))return e(f(a),f(b),c)}else if(h(a)){if(h(b))return e(a,b,c);if(null===b||b===d.voidOperation)return e(a.getTime(),0,c);if(l(b))return e(a.getTime(),b,c);if(k(b)||g(b))return e(a.getTime(),f(b),c)}else if(k(a)){if(k(b))return e(a,b,c);if(l(b))return e(f(a),f(b),c);if(h(b))return e(f(a),b.getTime(),c);if(null===b||b===d.voidOperation)return e(f(a),0,c);if(g(b))return e(f(a),f(b),c)}return!H(a,b)||"\x3c\x3d"!==c&&"\x3e\x3d"!==c?!1:!0}; d.equalityTest=H;d.toString=r;d.toNumberArray=function(a){var b=[];if(!1===q(a))return null;if(a instanceof n){for(var c=0;c