/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define((function(){"use strict";var e,a;let d;var o,r;null!=(e=globalThis.dojoConfig)&&e.has||null!=(a=globalThis.esriConfig)&&a.has?d={...null==(o=globalThis.dojoConfig)?void 0:o.has,...null==(r=globalThis.esriConfig)?void 0:r.has}:d={};function i(e){return"function"==typeof d[e]?d[e]=d[e](globalThis):d[e]}return i.add=(e,a,o,r)=>((r||void 0===d[e])&&(d[e]=a),o&&i(e)),i.cache=d,i.add("esri-deprecation-warnings",!0),(()=>{var e;i.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const a="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(i.add("host-browser",a),i.add("host-node","object"==typeof globalThis.process&&(null==(e=globalThis.process.versions)?void 0:e.node)&&globalThis.process.versions.v8),i.add("dom",a),i("host-browser")){const e=navigator,a=e.userAgent,d=e.appVersion,o=parseFloat(d);if(i.add("wp",parseFloat(a.split("Windows Phone")[1])||void 0),i.add("msapp",parseFloat(a.split("MSAppHost/")[1])||void 0),i.add("khtml",d.includes("Konqueror")?o:void 0),i.add("edge",parseFloat(a.split("Edge/")[1])||void 0),i.add("opr",parseFloat(a.split("OPR/")[1])||void 0),i.add("webkit",!i("wp")&&!i("edge")&&parseFloat(a.split("WebKit/")[1])||void 0),i.add("chrome",!i("edge")&&!i("opr")&&parseFloat(a.split("Chrome/")[1])||void 0),i.add("android",!i("wp")&&parseFloat(a.split("Android ")[1])||void 0),i.add("safari",!d.includes("Safari")||i("wp")||i("chrome")||i("android")||i("edge")||i("opr")?void 0:parseFloat(d.split("Version/")[1])),i.add("mac",d.includes("Macintosh")),!i("wp")&&a.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),d=a.match(/OS ([\d_]+)/)?RegExp.$1:"1",o=parseFloat(d.replace(/_/,".").replace(/_/g,""));i.add(e,o),i.add("ios",o)}i.add("trident",parseFloat(d.split("Trident/")[1])||void 0),i("webkit")||(!a.includes("Gecko")||i("wp")||i("khtml")||i("trident")||i("edge")||i.add("mozilla",o),i("mozilla")&&i.add("ff",parseFloat(a.split("Firefox/")[1]||a.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),d=/iPhone/i.test(e);a&&i.add("esri-mobile",a),d&&i.add("esri-iPhone",d),i.add("esri-geolocation",!!navigator.geolocation)}i.add("esri-canvas-svg-support",!i("trident")),i.add("esri-wasm","WebAssembly"in globalThis),i.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,a=!1===globalThis.crossOriginIsolated;return e&&!a})),i.add("wasm-simd",(()=>{const e=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(e))})),i.add("esri-atomics","Atomics"in globalThis),i.add("esri-workers","Worker"in globalThis),i.add("web-feat:cache","caches"in globalThis),i.add("esri-workers-arraybuffer-transfer",!i("safari")||Number(i("safari"))>=12),i.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),i.add("featurelayer-simplify-payload-size-factors",[1,1,4]),i.add("featurelayer-snapshot-enabled",!0),i.add("featurelayer-snapshot-point-min-threshold",8e4),i.add("featurelayer-snapshot-point-max-threshold",4e5),i.add("featurelayer-snapshot-point-coverage",.1),i.add("featurelayer-advanced-symbols",!1),i.add("featurelayer-pbf",!0),i.add("featurelayer-pbf-statistics",!1),i.add("feature-layers-workers",!0),i.add("feature-polyline-generalization-factor",1),i.add("mapview-transitions-duration",200),i.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),i.add("mapserver-pbf-enabled",!1),i.add("mapimagelayer-popup-identify-max-tolerance",20),i.add("heatmap-allow-raster-fallback",!0),i.add("heatmap-force-raster",!1),i("host-webworker")||i("host-browser")&&(i.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),i.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{i.add("esri-image-decode",!0,!0,!0)})).catch((()=>{i.add("esri-image-decode",!1,!0,!0)}))}return!1})),i.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})(),i}));
