@arcgis/core 5.2.8 → 5.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r(44208);var n=r(93637);const a={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&((0,n.$N)(a,globalThis.esriConfig,!0),delete a.has),!a.assetsPath&&(a.assetsPath="https://js.arcgis.com/5.2.8/@arcgis/core/assets",a.defaultAssetsPath=a.assetsPath),r.d(t,["A",0,a])},49186(e,t,r){r.d(t,{A:()=>i});var n=r(4718),a=r(53966),o=r(799);class i{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch{return"[object]"}}))}}catch(e){throw a.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>s});var n=r(92602),a=r(51447),o=(r(44208),r(799));const i={info:0,warn:1,error:2,none:3};class s{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,s._loggers.set(this.module,this);let t=this.module.lastIndexOf(".");-1!==t&&(this._parent=s.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"==typeof e?e:e.declaredClass,s._loggers.get(e)||new s({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!s._throttlingDisabled){let n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=s._tickCounter)return;this._loggedMessages[e].set(n,s._tickCounter),s._scheduleTickCounterIncrement()}for(let t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){let t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",c)}_matchLevel(e){let t=n.A.log.level||"warn";return i[this._parentWithMember("level",t)]<=i[e]}static _scheduleTickCounterIncrement(){s._tickCounterScheduled||(s._tickCounterScheduled=!0,Promise.resolve().then(()=>{s._tickCounter++,s._tickCounterScheduled=!1}))}}function c(e,t,...r){console[e](`[${(0,a.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){let r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>o,HX:()=>u,Ho:()=>d,MJ:()=>i,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>c,Xj:()=>f,Xy:()=>m,aI:()=>s,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);function o(e,t){if(t){let r=[];for(let n of e)r.some(e=>t(e,n))||r.push(n);return r}return Array.from(new Set(e))}function i(e,t,r,n,a,o,i){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);let s=r-t;if(null==e||null==n||s!==o-a)return!1;if(i){for(let r=0;r<s;r++)if(!i(e[t+r],n[a+r]))return!1}else for(let r=0;r<s;r++)if(e[t+r]!==n[a+r])return!1;return!0}function s(e,t,r){return i(e,0,e?.length??0,t,0,t?.length??0,r)}function c(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;if(r)n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)));else{let r=new Set(e),o=new Set(t);n=t.filter(e=>!r.has(e)),a=e.filter(e=>!o.has(e))}return{added:n,removed:a}}function f(e){return e&&"number"==typeof e.length}function d(e,t){let r=e.length;if(0===r)return[];let n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}function u(e,t,r,n){e.length>r&&(e.length=r);let a=e.length,o=0,i=a;if(a===r){let r=n(e[a-1],t);if(r<=0||Number.isNaN(r))return}for(;o<i;){let r=o+i>>>1,a=n(e[r],t);a<=0||Number.isNaN(a)?o=r+1:i=r}a===r&&e.pop(),e.splice(o,0,t)}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n||=h;let a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;let o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){let o=r??e.length,i=p(e,(0,n.z)(t),o,a);if(-1!==i)return e[i]=e[o-1],r??e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a||=h;let i=Math.max(0,a.last-10);for(let t=i;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<i;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new a.A;function _(e,t){if(!e)return e;let r=w(t);for(let t=e.length-1;t>0;t--){let n=Math.floor(r()*(t+1)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){let r=e.indexOf(t);return-1===r?null:(e.splice(r,1),t)}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>c,ck:()=>l,eF:()=>f,eO:()=>s,io:()=>d,u3:()=>u,uW:()=>i});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){let n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function i(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Module: ${u(t)}`,r)}function s(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Function: "+(n?u(n)+"::":"")+t+"()",r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Property: "+(n?u(n)+"::":"")+t,r)}}function l(e,t,r,a={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=a;d(e,`'${(n?u(n)+"::":"")+t}' value: ${r}`,a)}}function f(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Multiple argument constructor: ${t=u(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function d(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{replacement:n,version:a,see:i,warnOnce:s}=r,c=t;if(n&&(c+=`\n\t🛠️ Replacement: ${n}`),a&&(c+=`\n\t⚙️ Version: ${a}`),i)if(Array.isArray(i)){c+="\n\t🔗 See for more details:";for(let e of i)c+=`\n\t\t${e}`}else c+=`\n\t🔗 See ${i} for more details.`;o(e,c,s)}}function u(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>s,on:()=>i,wb:()=>a});var n=r(36563);function a(e){return function(e){return"object"==typeof e&&!!e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return"object"==typeof e&&!!e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function i(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){let o=t.slice();for(let t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(let t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function s(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=i(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{Bf:()=>s,hA:()=>a,rE:()=>i,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&=void e()}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function i(e){return a(()=>e?.abort())}function s(e){return{[Symbol.dispose](){e.remove()}}}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){let e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){let e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(t.includes("Gecko")&&!o("wp")&&!o("khtml")&&!o("edge")&&o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(n.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in n),o.add("esri-temporal","Temporal"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),o.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([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]))),o.add("esri-atomics","Atomics"in n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("min-workers-pool-size",2),o.add("max-workers-pool-size",o("esri-mobile")?3:8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-hybrid-tile-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-pixel-buffering-enabled",!0),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",5e5),o.add("parquetlayer-persistence-enabled",!0),o.add("parquetlayer-cache-enabled",!0),o.add("parquetlayer-legacy-field-overrides-enabled",!1),o.add("sketch-layer-enabled",!1),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-global",64),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",16),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{Function()}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>c,TU:()=>s,aI:()=>b,gh:()=>h,o8:()=>i,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;let t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(f(e))throw Error("Trying to clone an unclonable Accessor instance");let r={};for(let t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function s(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let r=u(e);if(null!=r)return r;if(l(e)){let r=!0,n=e.map(e=>{let n=s(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(f(e))return null;let n=new(0,Object.getPrototypeOf(e).constructor);for(let t of Object.getOwnPropertyNames(e)){let r=e[t],a=s(r);if(null!=r&&null==a)return null;n[t]=a}return n}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(i(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;let r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw Error(t??"value is None")}function a(e){return e&&!e.destroyed&&e.destroy(),null}function o(e){return e?.dispose(),null}function i(e){return e?.remove(),null}function s(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null==r?e.equals(t):r(e,t):e===t}function f(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>l,DC:()=>s,Gz:()=>c,Lw:()=>n,Pb:()=>f,WD:()=>o,pR:()=>a,xt:()=>i})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>f,i8:()=>s,sM:()=>i,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return l(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function i(e,t,r){let n=e.split("."),a=n.pop(),o=c(n,!0,r);o&&a&&(o[a]=t)}function s(e,t){if(null==e&&null==t)return!1;if(null==e||null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){let r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(s(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(let r in e)if(s(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(let r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function l(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],i=t[a];return o===i?e:void 0===o?(e[a]=(0,n.o8)(i),e):(Array.isArray(i)||Array.isArray(e)?(o=e[a]=o?Array.isArray(o)?o.slice():[o]:[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=i.slice())):i&&"object"==typeof i?e[a]=l(o,i,r):(!e.hasOwnProperty(a)||t.hasOwnProperty(a))&&(e[a]=i),e)},e||{}):e}function f(e,t){for(let r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},17676(e,t,r){r.d(t,{$X:()=>k,G4:()=>l,Lx:()=>g,Mq:()=>c,NK:()=>i,NO:()=>S,NY:()=>b,Ol:()=>w,Pl:()=>v,QP:()=>f,QZ:()=>m,Te:()=>s,YL:()=>_,hn:()=>P,jH:()=>d,nA:()=>y,qr:()=>h,sg:()=>A,u7:()=>u,z7:()=>O,zf:()=>p});var n=r(49186),a=r(37955),o=(r(44208),r(53966),r(97768));function i(e="Aborted"){return new n.A("AbortError",e)}function s(e,t="Aborted"){if(l(e))throw i(t)}function c(e){return e instanceof AbortSignal?e:e?.signal??void 0}function l(e){let t=c(e);return null!=t&&t.aborted}function f(e){if(p(e))throw e}function d(e){if(!p(e))throw e}function u(e,t){let r=c(e);if(null!=r)return r.aborted?void t():(0,a.Oo)(r,"abort",()=>t())}function b(e,t){let r=c(e);if(null!=r)return s(r),(0,a.Oo)(r,"abort",()=>t(i()))}function h(e,t){return null==c(t)?e:new Promise((r,n)=>{let a=u(t,()=>n(i())),s=()=>{a=(0,o.xt)(a)};e.then(s,s),e.then(r,n)})}function p(e){return"object"==typeof e&&!!e&&"name"in e&&"AbortError"===e.name}async function m(e){try{return await e}catch(e){if(!p(e))throw e;return}}async function g(e){if(!e)return;if("function"!=typeof e.forEach){let t=Object.keys(e),r=await g(t.map(t=>e[t])),n={};return t.map((e,t)=>n[e]=r[t]),n}let t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{let n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function y(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function w(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function v(e,t=void 0,r){let n=new AbortController;return u(r,()=>n.abort()),new Promise((r,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);u(n,()=>{o&&(clearTimeout(o),a(i()))})})}function _(e,t){let r=new AbortController,n=setTimeout(()=>r.abort(),t);return u(e,()=>{r.abort(),clearTimeout(n)}),{...e,signal:r.signal}}function k(e){return e&&"function"==typeof e.then}function O(e){return k(e)?e:Promise.resolve(e)}function A(e,t=-1){let r,n,a,o,s=null,c=(...l)=>{if(r){n=l,o&&o.reject(i()),o=Promise.withResolvers();let e=o.promise;if(s){let e=s;s=null,e.abort()}return e}if(a=o||Promise.withResolvers(),o=null,t>0){let n=new AbortController;r=O(e(...l,n.signal));let a=r;v(t).then(()=>{r===a&&(o?n.abort():s=n)})}else r=1,r=O(e(...l));let f=()=>{let e=n;n=a=r=s=null,null!=e&&c(...e)},d=r,u=a;return d.then(f,f),d.then(u.resolve,u.reject),u.promise};return c}function P(e,t){t.then(e.resolve,e.reject)}async function S(e){await Promise.resolve(),s(e)}},799(e,t,r){r.d(t,{Cj:()=>c,HC:()=>i,V2:()=>s,Wm:()=>l,_e:()=>u,xq:()=>f});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function i(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function s(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function c(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function l(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function f(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t,a=0;a<e.length;a++)t=e.charCodeAt(a),r=Math.imul(r^t,2654435761),n=Math.imul(n^t,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)}let d;function u(e){return d??=new DOMParser,d.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function i(e){return"Uint8ClampedArray"===e?.constructor?.name}function s(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}function p(e){return b(e)||u(e)||l(e)||s(e)||a(e)}function m(e){return b(e)||u(e)}function g(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:f(e)?4294967295:c(e)?65535:o(e)||i(e)?255:l(e)?2147483647:s(e)?y:a(e)?127:256}r.d(t,{IY:()=>s,JI:()=>p,LW:()=>d,UR:()=>i,XJ:()=>f,_G:()=>l,a3:()=>g,aI:()=>b,dk:()=>m,dz:()=>a,iu:()=>h,jq:()=>c,mg:()=>o,mw:()=>n,vZ:()=>u});const y=32767;r.d(t,["h2",0,-2147483648])},84952(e,t,r){r.d(t,{$1:()=>K,$z:()=>H,An:()=>A,BQ:()=>re,DB:()=>V,FL:()=>L,FX:()=>R,Hg:()=>Z,Il:()=>fe,Ln:()=>he,N9:()=>te,S8:()=>z,T1:()=>ue,UC:()=>de,V1:()=>F,Zo:()=>we,_0:()=>_e,a6:()=>ye,b8:()=>I,e7:()=>le,fj:()=>B,hf:()=>be,lJ:()=>Q,lM:()=>oe,m3:()=>ae,nM:()=>ce,oP:()=>D,oy:()=>W,r$:()=>Y,rs:()=>ge,s0:()=>v,s2:()=>J,sC:()=>q,s_:()=>x,tk:()=>ee,ut:()=>E,w8:()=>G,x0:()=>S,xw:()=>ve,yM:()=>M,zf:()=>P,zi:()=>me,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),i=r(53966),s=r(12195),c=r(39131),l=r(26306);const f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){let e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null==k.port?"":`:${k.port}`}${t}`}();function A(e){if(!e)return null;let t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function P(e){let t=e.split("&"),r={};for(let e of t){if(!e)continue;let t,n,a=e.indexOf("=");a<0?(t=decodeURIComponent(e),n=""):(t=decodeURIComponent(e.slice(0,a)),n=decodeURIComponent(e.slice(a+1)));let o=r[t];"string"==typeof o&&(o=r[t]=[o]),Array.isArray(o)?o.push(n):r[t]=n}return r}function S(e,t){return e?t&&"function"==typeof t?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(null==n)return"";let a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,s.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,s.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function x(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ae(e);let n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw i.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ie()&&(r=oe(r)),A(r)}function M(e,t=!1){let r,n,a=N(e);if(a){let e=C(a.proxyUrl);r=e.path,n=e.query?P(e.query):null}else if(t){let t=x(e);r=t.path,n=t.query}if(r){let t=A(e);e=r+"?"+t.path;let a=S({...n,...t.query});a&&(e=`${e}?${a}`)}return e}const j={path:"",query:""};function C(e){let t=e.indexOf("?");return-1===t?(j.path=e,j.query=null):(j.path=e.slice(0,t),j.query=e.slice(t+1)),j}function $(e){return(e=se(e=fe(e=C(e).path),!0)).toLowerCase()}function W(e){let t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix,a=r.length;for(let e=0;e<r.length;e++){let t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){let t=f.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function I(e,t){if(!e||!t)return!1;e=T(e),t=T(t);let r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&R(e,t,!0)}function E(e,t){return e=T(e),t=T(t),se(e)===se(t)}function T(e){let t=(e=z(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function q(e,t=f.interceptors){let r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(let e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function R(e,t,r=!1){if(!e||!t)return!1;let n=pe(e),a=pe(t);return!(!r&&n.scheme!==a.scheme||null==n.host||null==a.host)&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function L(e){if("string"==typeof e){if(!D(e))return!0;e=pe(e)}if(R(e,k))return!0;let t=f.trustedServers||[];for(let r=0;r<t.length;r++){let n=U(t[r]);for(let t=0;t<n.length;t++)if(R(e,n[t]))return!0}return!1}function U(e){return _[e]||(ne(e)||re(e)?_[e]=[new v(J(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function J(e,t=O,r){return re(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:B(e.startsWith("/")?function(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=O,r){if(null==e||!D(e))return e;let n=z(e),a=n.toLowerCase(),o=z(t).toLowerCase().replace(/\/+$/,""),i=r?z(r).toLowerCase().replace(/\/+$/,""):null;if(i&&!o.startsWith(i))return e;let s=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r,c=s(a,"/",a.indexOf("//")+2),l=-1;for(;a.slice(0,c+1)===o.slice(0,c)+"/"&&(l=c+1,c!==a.length);)c=s(a,"/",c+1);if(-1===l||i&&l<i.length)return e;e=n.slice(l);let f=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function z(e){return function(e){let t=f.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&re(e)}(e))return e;let r,n=e.indexOf("/",7);if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),m.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&r===k.authority&&!g.test(e)||(ie()&&r===k.authority||t&&t.some(e=>r===e||r.endsWith(`.${e}`))||ie()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){let t=C(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function B(...e){let t=e.filter(a.Ru);if(!t?.length)return;let r=[];if(D(t[0])){let e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");let n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){let t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function H(e,t=!1){if(null==e||G(e)||V(e))return null;let r=e.indexOf("://");if(-1===r&&re(e))r=2;else{if(-1===r)return null;r+=3}let n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=se(e,!0)),e}function D(e){return re(e)||ne(e)}function G(e){return null!=e&&e.startsWith("blob:")}function V(e){return null!=e&&e.startsWith("data:")}function Q(e){let t=Y(e);return t?.isBase64?(0,l.M)(t.data):null}function K(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const X=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){let t=e.match(X);if(!t)return null;let[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function Z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ee(e){return(await fetch(e)).blob()}function te(e){let t=Q(e);if(!t)return null;let r=Y(e);return new Blob([t],{type:r.mediaType})}function re(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function ae(e){return null!=e&&h.test(e)||"https"===k.scheme&&re(e)}function oe(e){return re(e)?`https:${e}`:e.replace(b,"https:")}function ie(){return"https"===k.scheme}function se(e,t=!1){return re(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ce(e){let t=0;if(D(e)){let r=e.indexOf("//");-1!==r&&(t=r+2)}let r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function le(e,t){if(!e)return"";let r=A(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;let a=RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function fe(e){return e.endsWith("/")?e:`${e}/`}function de(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&D(e)))return e;let n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),i=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,i).toLowerCase()===t.toLowerCase()?`${e.slice(0,n+2)}${r}${e.slice(i)}`:e}function be(e,t){let r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function he(e){return new URL(e).host}function pe(e){return"string"==typeof e?new v(J(e)):(e.scheme||=k.scheme,e)}function me(e,t){let r=A(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function ge(e,t,r){let n=A(e),a=n.query||{};return a[t]=String(r),`${n.path}?${S(a)}`}function ye(e,t){if(!t)return e;let r=A(e),n=r.query||{};for(let[e,r]of Object.entries(t))null!=r&&(n[e]=r);let a=S(n);return a?`${r.path}?${a}`:r.path}function we(e){if(null==e)return null;let t=e.match(ke);return t?t[2]:null}function ve(e){if(null==e)return null;let t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?Y(e)??{data:e}:new Promise((t,r)=>{let n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(Y(n.result)),n.onerror=e=>r(e)})}const ke=/([^.]*)\.([^/]*)$/;r.d(t,["Xq",0,()=>k,"gd",0,()=>O])},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o,i=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(i)&&(a=i.signal,o=i.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},50343(e,t,r){r.r(t),r.d(t,{default:()=>w});var n=r(70333),a=r(49186),o=r(37955),i=r(36563),s=r(97768),c=r(17676),l=r(52268),f=r(17333),d=r(8341);const{CLOSE:u,ABORT:b,INVOKE:h,RESPONSE:p,OPEN_PORT:m,ON:g}=d.Go;class y{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===b?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(let e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class w{static{this.kernelInfo={fullVersion:n.ol}}static{this.clients=new Map}static connect(e,t){let r,n=new MessageChannel;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;let a=new w(n.port1,{channel:n,client:r,schedule:t});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=a),w.clients.set(a,r),n.port2}static loadWorker(e){let t=f.u[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new y(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){let n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));let i=(0,d.Jc)();return new Promise((r,a)=>{if((0,c.G4)(n))return this._processWork(),void a((0,c.NK)());let l={resolve:r,reject:a,abortHandle:(0,c.u7)(n,()=>{let e=this._outJobs.get(i);e&&(this._outJobs.delete(i),this._processWork(),(0,s.xt)(e.abortHandle),this._post({type:b,jobId:i}),a((0,c.NK)()))}),debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){let r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:g,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,i.hA)(()=>{r.port1.postMessage({type:u}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){let e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;let e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;let{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&=void 0,this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,s.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null==this._schedule?this._processMessage(e,!1):this._schedule(()=>this._processMessage(e,!0))}_processMessage(e,t){let r=(0,d.VI)(e);if(r)switch(r.type){case p:this._onResponseMessage(r);break;case h:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case b:this._onAbortMessage(r);break;case u:this._onCloseMessage();break;case m:this._onOpenPortMessage(r);break;case g:this._onOnMessage(r)}}_onAbortMessage(e){let t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){let e=this._client;this._close(),e&&"destroy"in e&&w.clients.get(this)===e&&e.destroy(),w.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){let t,{methodName:r,jobId:n,data:a=[],abortable:o}=e,i=o?new AbortController:null,s=this._inJobs,l=this._client,f=l[r];try{if(!f&&r&&r.includes(".")){let e=r.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],f=l[e[t+1]]}if("function"!=typeof f)throw TypeError(`${r} is not a function`);a.push({client:this,signal:i?i.signal:null}),t=f.apply(l,a)}catch(e){return void this._post({type:p,jobId:n,error:(0,d.mF)(e)})}(0,c.$X)(t)?(s.set(n,{controller:i,promise:t}),t.then(e=>{s.has(n)&&(s.delete(n),this._post({type:p,jobId:n},e))},e=>{s.has(n)&&(s.delete(n),(0,c.zf)(e)||this._post({type:p,jobId:n,error:(0,d.mF)(e||{message:`Error encountered at method ${r}`})}))})):this._post({type:p,jobId:n},t)}_onOpenPortMessage(e){new w(e.port,{client:this._client})}_onOnMessage(e){let{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,o.on)(e.port,"message",e=>{(0,d.VI)(e)?.type===u&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){let{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;let i=o.get(t);o.delete(t),this._processWork(),(0,s.xt)(i.abortHandle),r?i.reject(a.A.fromJSON(JSON.parse(r))):i.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},17333(e,t,r){const n={CSVSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(1333)]).then(()=>r(25209)),EdgeProcessingWorker:()=>Promise.all([r.e(1843),r.e(161),r.e(433)]).then(()=>r(71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(2258),r.e(9038)]).then(()=>r(38419)),FeaturePipelineWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(5128),r.e(1722),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(893),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(5248),r.e(5228),r.e(7304),r.e(3027),r.e(1969),r.e(4485)]).then(()=>r(55459)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(893),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(1869)]).then(()=>r(20401)),FlowWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(7235)]).then(()=>r(49616)),GaussianSplatSortWorker:()=>r.e(5856).then(()=>r(35856)),GeospatialPDFLayerWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(599)]).then(()=>r(37728)),GeometryWorker:()=>Promise.all([r.e(9917),r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9367)]).then(()=>r(71246)),GeoJSONSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(3642)]).then(()=>r(71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(359),r.e(9575),r.e(2170)]).then(()=>r(14289)),GlyphWorker:()=>Promise.all([r.e(2741),r.e(6892)]).then(()=>r(16892)),IntegratedMesh3DTilesLayerWorker:()=>Promise.all([r.e(1843),r.e(9554)]).then(()=>r(95938)),LercWorker:()=>r.e(7087).then(()=>r(57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(()=>r(72772)),MemorySourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(9616)]).then(()=>r(29432)),PBFDecoderWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9078)]).then(()=>r(39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9358),r.e(4314)]).then(()=>r(96982)),ParquetSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(3819),r.e(5248),r.e(3027),r.e(1484)]).then(()=>r(6557)),PointCloudWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(7005),r.e(7984),r.e(5992)]).then(()=>r(64798)),RasterWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9075),r.e(9235),r.e(3518)]).then(()=>r(63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(1843),r.e(161),r.e(491)]).then(()=>r(70491)),SceneLayerWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(6707)]).then(()=>r(94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(()=>r(95902)),WFSSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(9315)]).then(()=>r(33771)),WorkerTileHandler:()=>Promise.all([r.e(7736),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(5228),r.e(7499),r.e(1969),r.e(4157)]).then(()=>r(36984)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(4862)]).then(()=>r(1123)),statsWorker:()=>Promise.all([r.e(7736),r.e(7865),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9575),r.e(3281),r.e(1737)]).then(()=>r(26412)),ImageMeasurementWorker:()=>r.e(1360).then(()=>r(41360))};r.d(t,["u",0,n])},8341(e,t,r){r.d(t,{Jc:()=>c,VI:()=>d,mF:()=>l,oV:()=>b,u1:()=>f});var n=r(44208),a=r(17676);const o="worker:port-closed",i={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let s=0;function c(){return s++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function f(e,t,r,n){if(t.type===i.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==i.INVOKE&&t.type!==i.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;let t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;let t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){let t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}r.d(t,["Go",0,i,"T",0,o])},70333(e,t,r){r.d(t,{Aq:()=>i,Y3:()=>s,id:()=>a,ol:()=>o}),r(44208);var n=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");let a,o="5.2";function i(e){a=e}function s(e){let t=a?.findCredential(e);return t?.token?(0,n.rs)(e,"token",t.token):e}o="5.2.8",globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}})},39131(e,t,r){r.d(t,{$E:()=>i,py:()=>o,qG:()=>s});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){let t=e?.match(n);if(!t)return null;let[,r,o,i]=t;if(!r)return null;let s=null,c=null,l=null,{devext:f,qaext:d,www:u}=a;if(o)if(s=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qa":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}else({customBaseUrl:c,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qaext":({customBaseUrl:c,portalHostname:l}=d);break;case"www":({customBaseUrl:c,portalHostname:l}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:s}}function i(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function s(e){let t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(e){let t=new Uint8Array(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>a})}};const t={};function r(n){const a=t[n];if(void 0!==a)return a.exports;const o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var a=t[n++],o=t[n++],i=0===o?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:o};r.o(e,a)||Object.defineProperty(e,a,i)}else for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.f={},r.e=e=>{const t=[];return r.f.i(e,t),Promise.all(t)},r.u=e=>"chunks/"+{7:"4cf72dcccf2be353a701",31:"67efdd296007a809586c",77:"e04fb83ab2634bc15cc7",86:"a846c94d49df8d4cd5be",100:"ebbf425af348e6ede814",118:"0f7455dbe8c2ee464194",146:"54b18559280a7d2a8d93",152:"9c33e67bb6f93f6529bb",154:"f497968055af459c5da4",161:"44f90e75c1dc3d726a95",167:"3321cb0d4cb68b2ec8bf",309:"e7aaf7579592b79d6dd7",349:"514cc15acb77dc85035c",353:"751a21288cf161b94a54",359:"3880d2c7fb14955d7f93",369:"66539ab0d88b47326ce9",382:"8483c50ed8f280fd74bb",390:"2ad69cc496235702bbf2",433:"5736feefa261589b6273",468:"bfb8fc6b940bd5510e29",491:"4db829a0238024736fe6",506:"ac69c0fd5867b493f1d2",521:"25c3be410d1c03f8f39d",547:"aa5b42e44d2959fdacd3",563:"08fe248e412bb170210d",566:"bd812dd75d2a3d7d0441",569:"2b4dd42920d37b1ff0a9",599:"20ee2f36f0fd0ae01e15",692:"2671035cc08027185737",700:"d7cf32a8c6060a208f06",737:"d5916500514a41a4758f",756:"49e4fe8ea5a4366a9b45",787:"bc38def1983089514e4b",788:"6a294b6ed6f67c8a01c6",812:"80c234ee5276ea1645db",820:"35f8896b52adaf952657",837:"9cbde13e536676767900",892:"dfbe0efe453587ec5eb2",893:"0fa29352f2ecf0c515e8",895:"369780276b2755361f7d",919:"4e3f651ac76fcd53df2b",926:"ccb55245fe49d844ec50",944:"3537fe95b83a13b156cc",980:"8102f0bf5707c3be3310",1017:"a17673e691ced46a90d3",1088:"864194927d05ebc4cc31",1132:"eaddffcc7004101fc230",1137:"d05665ddc8d31403aed3",1150:"edd36a1fc80b1d29907e",1204:"608be1172a908e92b9f1",1214:"eab53cc313ef38ec7c48",1273:"449a2dee17b54946f245",1277:"fcb4707c2e95099b9f30",1285:"116293b1ee788a89ce1e",1327:"47f0c717acc2c33ea670",1333:"9e0b0262dec496451762",1360:"28a821de9dbf10324033",1384:"28ed020d9995b6577be5",1484:"596891426621c403bdef",1491:"06101f3da5e2fc708402",1504:"eaab787a5f2445be5e5a",1550:"7446d0dfebf93e86c098",1560:"4f4bc4f809b8936cd010",1577:"cca8bd07bcd1d267a2e8",1588:"b5eff28cf482d920b9ea",1630:"5f49233d5b67a9ad71d7",1666:"950d4578dc450467404c",1698:"0fda0d8b0eaeed2ab39d",1722:"606ea251075fe81a1206",1735:"d344c3fd9f6b113bbcd7",1737:"b71029a2ab7dbb3706f9",1763:"17c6d66b47aa690df0d4",1773:"72e6d594b7262430ae55",1797:"f8bc474434fd365ab174",1837:"3a8320a40916c755c031",1843:"aba42885c5d6b2b5fe7f",1869:"c93343a91161c4e40c28",1894:"12a08d0ad0f5fea32642",1904:"251f706d226b1d47ba99",1938:"1a614bac5db42c6263f8",1948:"a51576d84edca88e41dd",1951:"d4bc6d65dff5d0cc93ba",1969:"bab1d010970d98c25470",2024:"67f15538c51838201fc7",2158:"4ba856605f711b615e4c",2170:"66867e523cc82f8fe35b",2174:"164e74d586297946a717",2186:"f79494829a5b65b5b4c9",2223:"8ac4a043a4f185db271f",2257:"510c2eb78f5e12f77bbc",2258:"0b4481b57a611b15f65c",2266:"0d99bfb75dcb9fa29080",2343:"05b34302da58e8244da3",2346:"590fe0f56bc4c33a50e7",2372:"6202ba9d79567cbe2c48",2390:"9d0ee6a816bb72068ab1",2409:"30e20461958951a31a5c",2423:"2479162ebc3a0b8d2b5e",2486:"cb4c5544382eb8c4a87f",2491:"46d91cd99558304da0c7",2558:"2b06e8507d71c4d9b5b5",2599:"85b63811ae7bcb6f74b6",2733:"5ec5a6cef9ee9a8cc400",2741:"648d5cdfc3e92be3db55",2769:"c4c55d8a98ba3f51f63c",2772:"e81173724e8de8c1e65b",2802:"ca204c110438f7315790",2889:"fe1287eca47c84211346",2958:"de3f140058aa0b907b65",2980:"897e44f97b933d70feee",2990:"2095f220dc2b8f8f62db",2994:"747461bb6a1bc2f0a64d",2997:"80df9ad016b46619c7b9",3027:"7697bbbaf3724f8c4445",3030:"f95a1f878c9c1146180e",3080:"7862abd24fb5c3b12e6b",3103:"604433b02a165d187953",3116:"b7c4bb0f3f9662bac726",3193:"070684943698fa43c2b4",3242:"5bf7de2e2faa55e53629",3275:"c25ae83fd790f181bb42",3276:"eb2652ec48faa78de3c5",3281:"72f716a841463e0ba23f",3283:"10ad7b35b6800d40444e",3299:"700b1d5bc67b7e1b3ff3",3309:"e630f3c56c077cb2bd8e",3318:"bec375ff37c25a49e080",3359:"1fcc998421c7c16de2ca",3375:"5fbd7d8d8896a224fff3",3390:"ee6679ef9efa1504e7eb",3391:"fc0dbb588a4062615cb6",3394:"898359be6996fd9763b8",3456:"df7603ef7d2a7cbeaaa2",3518:"b1d5d236d5268fcbc74b",3527:"3636c2ac9b77950776d6",3543:"e000123703b86494c738",3561:"aa4f3751f0d830113bed",3642:"294276ed397023dcda44",3650:"fccfe3aa45a2fb286012",3666:"363142b7fb50227fcdca",3693:"1380cec385426673f294",3708:"47f0c717acc2c33ea670",3755:"3ec3589f6e74d7cb87cf",3813:"c8d178a0c82fffd7fed5",3819:"4e4f747de424941a0bfa",3902:"84495695313b01832369",3910:"9432feca48ca3e5849bd",4038:"5b720d254ba61758b61a",4059:"5982c6a8459c1237b298",4061:"a17fb26d6ac4895e51a3",4064:"6ccf9535013fe672c93b",4085:"69627b2634da64dd885f",4123:"692f0093c444fcc752b5",4144:"365825c51fad1bb7f51f",4157:"15e1117a706a98b17ad5",4314:"8e5903f1ed31e1185fc9",4426:"c0b38f8c808d434af5f6",4485:"651dd3a2d1eebdf39f28",4506:"fd172c96d2b36032a1d9",4548:"f9dc38761b314d33890f",4575:"62941dd81acfdb524cfe",4581:"18e7fa4d3e0b1a084cc6",4642:"ac24b4370dc7194a3107",4674:"561c48cb4d49b150765b",4682:"2529f12fc16e98c014ca",4690:"711cfb84659cb4437679",4729:"df375d1b0dab5ecbd1be",4790:"9cd3fcb5fca6f9dbbcd8",4791:"406f24ec13eb30d43405",4834:"40d7e54529d13fdd2bf1",4844:"36f31416132de434ec00",4862:"f63686735e4e52f5b54e",4934:"6694e2b27fd6ddf44e21",4943:"435ad7e6ed326da2b969",4945:"d51bb11baadc741c46bc",4988:"6268aadb24e0b7c8d207",5077:"0284f608d25c654fcc11",5087:"89cc1a5539b82fb46216",5128:"a7325ebb7edf3273bb34",5141:"56a24061589f4a968818",5165:"8293600f94553afc8c38",5181:"3de07326da4c47cd2aab",5223:"c9e7d4c277fbc82c4438",5227:"ca2adcbcf44454484fd5",5228:"fdbf6208df5c58746d9d",5248:"367b2f25cfe37847a48d",5313:"900c8569596609183f19",5356:"70268d790c2f1cb83d43",5360:"a02c3c23bd87e0470b8b",5367:"14ded73842154d91ef4e",5404:"3704b4e7efc3abc1a7b1",5443:"6e910342ada398c98e30",5566:"f8a83d447b7aef051876",5606:"b54ba2bd6b1b90dcc0cc",5613:"bde8f3b3ce5b1d3ee774",5740:"9bbc8e5d42921a8050bb",5752:"46f0510846a309a390ca",5756:"5fbd7d8d8896a224fff3",5804:"85ec73dcba4b922f1948",5841:"4e17665dd9048c300d87",5856:"bca6b469940b7b954123",5879:"eeb068c265bd3a22a8c1",5902:"18d47ab571b613fbe719",5954:"3e29ab5ec136e669b633",5977:"057f245d70e57a1bcb46",5992:"8f008eedb11685ee2048",6023:"46071e59290bf06bb614",6027:"e2576c37cf13dc421f69",6033:"a025ee38d402504193df",6052:"47e250d471d0e55fa6be",6070:"178083d8ed7707b45ca2",6122:"0b6941781e35ce0f7274",6129:"6b646971cc15e33a9f33",6154:"d747c7a5252e3b1f466a",6185:"c046c4fc934bc6f54c69",6187:"dbaa88e46487efaad732",6247:"6afe860f491905c72298",6440:"5982c6a8459c1237b298",6451:"66c2a28a851130b87c04",6475:"ec8b7476eac4718eb0ac",6491:"067de1910190da228291",6553:"b6d71a4ab788a09714f3",6554:"fc44227c1756f65b95df",6556:"076e8d2e08ff2a013736",6558:"876f7633c15f1e31078d",6569:"6b04285726b803b82564",6650:"3415531224f8494d79ca",6671:"0320cbd825f9a4222042",6684:"084222c00d263a534952",6707:"f2cfee8a761ae91f7a3e",6742:"1eaaa896eea3f2ffe6a6",6744:"144bad0c2415c345736a",6810:"1f9d6180a96d557838e9",6830:"fa7b189e9b2cc8d4a77f",6870:"20f75cc777af13fa249b",6874:"a79cae328e866272754a",6875:"0590857215c547e63b51",6880:"2b804b5d7ce10f0f0cf0",6892:"f0676c2963718bee2486",6930:"d89fe41c71c9621c41ae",6936:"1188d0a136fffc009643",6956:"02d4f91652a79d2b637e",7005:"2d3e0e4442dbc6ec6def",7029:"aa8ab28e0c1ae3b55ac0",7085:"0979a48905742486f222",7087:"bb9a1162384f59e9bc5e",7217:"4c389472b8cdb0c55154",7235:"216a239142dfe1306c6c",7269:"6eb5cc8ddf772c0062e6",7290:"8f74d92ac69714b9fd4e",7301:"67f54efc817b241f8746",7304:"bedaa5e64ed81803829a",7366:"d3412518a7b518860fbb",7380:"983b85727e09c54bede0",7420:"61d36730564c5ac5edab",7444:"59295b99bdff4045a0e7",7499:"505227797bcf2a1d908d",7546:"17f99b130384c1ff2e01",7548:"86524ae8926228898d95",7552:"a6f969851d4278865cc5",7561:"2a8168e109caa87d596f",7715:"8d01dd92f5c897193ab5",7736:"a83815c028c9c80aa4c9",7745:"f9259dc1d78d762c6ac0",7826:"5396b6e99a0546a25d19",7865:"2fcd7db1e192858a650e",7883:"aa1054834738aef48bda",7885:"c1cf3edce15f09648eb4",7956:"c2cbe0f5e8958cf18e58",7982:"5b2d1c8763a1716677c0",7984:"8cc8d7ffe43f5947b04f",7992:"b01804aa6c47a220a603",8018:"ac10c7d2c4829a150037",8125:"ac69c0fd5867b493f1d2",8169:"21e1d423ee33f916547e",8197:"f9c80e9fc349db4873e8",8218:"a6f74bd1a9c87b9836ca",8241:"71a51795f715332fb4fe",8278:"266c90d8d56a2da42fcf",8298:"7aa9b61ca9b66f30449f",8305:"1132e28aaa5825b10b6e",8307:"f8d2225f333524ce1d88",8344:"b976122bcd4e2170afaf",8377:"92b03de8a7686b164f60",8589:"95c9c5677bbe7fd0420a",8595:"63c3a573dfe703056f8f",8611:"43aef67452fa6ff8d8f9",8613:"784d6c6949284ed6e10b",8628:"42330ad374904de4f78f",8673:"c5bf19da62a3d31009fe",8679:"8e310e9cb9d84ac3ca2f",8692:"c7699edd14497d174445",8714:"765ecf6dff9a547d8e19",8740:"efc53007cd2e4991d7d4",8747:"934e1f2153e6fad6ed23",8798:"7711ae5612f685078fc8",8826:"7b45ac83e279fe9516a5",8846:"a2196a49f89d57a0a1c7",8879:"1819c45655c836b9a8d7",8885:"72399062767abdfb0bee",9013:"3dd49f910834a2fb2142",9038:"c249a91dd23104723fab",9074:"cb6fb04fe5c8d90d4196",9075:"d24dea0bdb17db07e2b3",9078:"4996869b9cbd8c8ddcfa",9110:"673c61c964524150d9bc",9117:"7851aef196eea5d6c94e",9126:"40748b846cf6923478c9",9134:"2a3fcc034cfbf540c5cc",9159:"4d7063c4152953afb859",9177:"849f446c718e892f39ce",9187:"1cc744ab5eee5ee3bed8",9192:"cc817c9d3f8e8f8c56e4",9235:"e3f8f1dba7b3a473ed00",9239:"f67b37253d6d05d1e339",9275:"26261b21d1edf476ea49",9279:"dba5f44c4e4a3f075df2",9301:"546f5f57c9249627bb89",9315:"caaf6306cc73f618d27d",9321:"ffde86162265b33e97e0",9358:"ace2e0a9d9013edd8624",9367:"7f5b887a753bb67c8486",9407:"1ab59a97ffa49e9e1659",9447:"474015def9652ddf0640",9459:"e7b168ba31142c00f765",9480:"5f1cb79aec9c4a9b7ddc",9512:"debe45e792212682b304",9521:"787c1a8bda7d745633f2",9554:"8ca2bb3c0551bb1898b6",9567:"3b0808ee3c4facfaca3d",9575:"ccd19c490ca24db6ffb1",9588:"58032aab28a20a327f6c",9616:"b0a612d8ffa5c46d7db4",9657:"afc3b2af20e9d1dfd260",9672:"3b552afffaa78bf4fe18",9692:"4bb1bb3ffb1b71bc43c8",9695:"5aeb5e18514644fe2cf9",9696:"f3fdf75843ade0ca591e",9716:"d4eb24c82087a74ae670",9722:"cd9aa950cb74b09008fe",9789:"6de64abd9e2b51fa2872",9800:"712559f121f76c4e71ab",9820:"4024becaf4012c1f15a7",9821:"1c378d489c5402888f76",9838:"792d2b62356a1d953c88",9855:"4419732baf3459a80e6d",9894:"7572c2bc5062e66f6330",9917:"dd08dff19a2ffd36f284",9933:"257910cca66dc5df465e",9953:"3286cf2afeb7f48564d9",9958:"deb408bee61ca192b2ce"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{var e={76:1},t=t=>{let[n,o,i]=t;for(var s in o)r.o(o,s)&&(r.m[s]=o[s]);for(i&&i(r);n.length;)e[n.pop()]=1;a(t)};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var n=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],a=n.push.bind(n);n.forEach(t),n.push=t})(),r(66358);let n=r(50343);RemoteClient=n})();
|
|
1
|
+
var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r(44208);var n=r(93637);const a={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&((0,n.$N)(a,globalThis.esriConfig,!0),delete a.has),!a.assetsPath&&(a.assetsPath="https://js.arcgis.com/5.2.9/@arcgis/core/assets",a.defaultAssetsPath=a.assetsPath),r.d(t,["A",0,a])},49186(e,t,r){r.d(t,{A:()=>i});var n=r(4718),a=r(53966),o=r(799);class i{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch{return"[object]"}}))}}catch(e){throw a.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>s});var n=r(92602),a=r(51447),o=(r(44208),r(799));const i={info:0,warn:1,error:2,none:3};class s{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,s._loggers.set(this.module,this);let t=this.module.lastIndexOf(".");-1!==t&&(this._parent=s.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"==typeof e?e:e.declaredClass,s._loggers.get(e)||new s({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!s._throttlingDisabled){let n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=s._tickCounter)return;this._loggedMessages[e].set(n,s._tickCounter),s._scheduleTickCounterIncrement()}for(let t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){let t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",c)}_matchLevel(e){let t=n.A.log.level||"warn";return i[this._parentWithMember("level",t)]<=i[e]}static _scheduleTickCounterIncrement(){s._tickCounterScheduled||(s._tickCounterScheduled=!0,Promise.resolve().then(()=>{s._tickCounter++,s._tickCounterScheduled=!1}))}}function c(e,t,...r){console[e](`[${(0,a.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){let r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>o,HX:()=>u,Ho:()=>d,MJ:()=>i,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>c,Xj:()=>f,Xy:()=>m,aI:()=>s,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);function o(e,t){if(t){let r=[];for(let n of e)r.some(e=>t(e,n))||r.push(n);return r}return Array.from(new Set(e))}function i(e,t,r,n,a,o,i){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);let s=r-t;if(null==e||null==n||s!==o-a)return!1;if(i){for(let r=0;r<s;r++)if(!i(e[t+r],n[a+r]))return!1}else for(let r=0;r<s;r++)if(e[t+r]!==n[a+r])return!1;return!0}function s(e,t,r){return i(e,0,e?.length??0,t,0,t?.length??0,r)}function c(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;if(r)n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)));else{let r=new Set(e),o=new Set(t);n=t.filter(e=>!r.has(e)),a=e.filter(e=>!o.has(e))}return{added:n,removed:a}}function f(e){return e&&"number"==typeof e.length}function d(e,t){let r=e.length;if(0===r)return[];let n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}function u(e,t,r,n){e.length>r&&(e.length=r);let a=e.length,o=0,i=a;if(a===r){let r=n(e[a-1],t);if(r<=0||Number.isNaN(r))return}for(;o<i;){let r=o+i>>>1,a=n(e[r],t);a<=0||Number.isNaN(a)?o=r+1:i=r}a===r&&e.pop(),e.splice(o,0,t)}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n||=h;let a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;let o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){let o=r??e.length,i=p(e,(0,n.z)(t),o,a);if(-1!==i)return e[i]=e[o-1],r??e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a||=h;let i=Math.max(0,a.last-10);for(let t=i;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<i;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new a.A;function _(e,t){if(!e)return e;let r=w(t);for(let t=e.length-1;t>0;t--){let n=Math.floor(r()*(t+1)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){let r=e.indexOf(t);return-1===r?null:(e.splice(r,1),t)}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>c,ck:()=>l,eF:()=>f,eO:()=>s,io:()=>d,u3:()=>u,uW:()=>i});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){let n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function i(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Module: ${u(t)}`,r)}function s(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Function: "+(n?u(n)+"::":"")+t+"()",r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Property: "+(n?u(n)+"::":"")+t,r)}}function l(e,t,r,a={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=a;d(e,`'${(n?u(n)+"::":"")+t}' value: ${r}`,a)}}function f(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Multiple argument constructor: ${t=u(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function d(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{replacement:n,version:a,see:i,warnOnce:s}=r,c=t;if(n&&(c+=`\n\t🛠️ Replacement: ${n}`),a&&(c+=`\n\t⚙️ Version: ${a}`),i)if(Array.isArray(i)){c+="\n\t🔗 See for more details:";for(let e of i)c+=`\n\t\t${e}`}else c+=`\n\t🔗 See ${i} for more details.`;o(e,c,s)}}function u(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>s,on:()=>i,wb:()=>a});var n=r(36563);function a(e){return function(e){return"object"==typeof e&&!!e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return"object"==typeof e&&!!e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function i(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){let o=t.slice();for(let t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(let t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function s(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=i(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{Bf:()=>s,hA:()=>a,rE:()=>i,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&=void e()}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function i(e){return a(()=>e?.abort())}function s(e){return{[Symbol.dispose](){e.remove()}}}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){let e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){let e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(t.includes("Gecko")&&!o("wp")&&!o("khtml")&&!o("edge")&&o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(n.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in n),o.add("esri-temporal","Temporal"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),o.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([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]))),o.add("esri-atomics","Atomics"in n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("min-workers-pool-size",2),o.add("max-workers-pool-size",o("esri-mobile")?3:8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-hybrid-tile-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-pixel-buffering-enabled",!0),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",5e5),o.add("parquetlayer-persistence-enabled",!0),o.add("parquetlayer-cache-enabled",!0),o.add("parquetlayer-legacy-field-overrides-enabled",!1),o.add("sketch-layer-enabled",!1),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-global",64),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",16),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{Function()}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>c,TU:()=>s,aI:()=>b,gh:()=>h,o8:()=>i,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;let t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(f(e))throw Error("Trying to clone an unclonable Accessor instance");let r={};for(let t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function s(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let r=u(e);if(null!=r)return r;if(l(e)){let r=!0,n=e.map(e=>{let n=s(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(f(e))return null;let n=new(0,Object.getPrototypeOf(e).constructor);for(let t of Object.getOwnPropertyNames(e)){let r=e[t],a=s(r);if(null!=r&&null==a)return null;n[t]=a}return n}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(i(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;let r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw Error(t??"value is None")}function a(e){return e&&!e.destroyed&&e.destroy(),null}function o(e){return e?.dispose(),null}function i(e){return e?.remove(),null}function s(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null==r?e.equals(t):r(e,t):e===t}function f(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>l,DC:()=>s,Gz:()=>c,Lw:()=>n,Pb:()=>f,WD:()=>o,pR:()=>a,xt:()=>i})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>f,i8:()=>s,sM:()=>i,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return l(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function i(e,t,r){let n=e.split("."),a=n.pop(),o=c(n,!0,r);o&&a&&(o[a]=t)}function s(e,t){if(null==e&&null==t)return!1;if(null==e||null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){let r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(s(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(let r in e)if(s(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(let r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function l(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],i=t[a];return o===i?e:void 0===o?(e[a]=(0,n.o8)(i),e):(Array.isArray(i)||Array.isArray(e)?(o=e[a]=o?Array.isArray(o)?o.slice():[o]:[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=i.slice())):i&&"object"==typeof i?e[a]=l(o,i,r):(!e.hasOwnProperty(a)||t.hasOwnProperty(a))&&(e[a]=i),e)},e||{}):e}function f(e,t){for(let r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},17676(e,t,r){r.d(t,{$X:()=>k,G4:()=>l,Lx:()=>g,Mq:()=>c,NK:()=>i,NO:()=>S,NY:()=>b,Ol:()=>w,Pl:()=>v,QP:()=>f,QZ:()=>m,Te:()=>s,YL:()=>_,hn:()=>P,jH:()=>d,nA:()=>y,qr:()=>h,sg:()=>A,u7:()=>u,z7:()=>O,zf:()=>p});var n=r(49186),a=r(37955),o=(r(44208),r(53966),r(97768));function i(e="Aborted"){return new n.A("AbortError",e)}function s(e,t="Aborted"){if(l(e))throw i(t)}function c(e){return e instanceof AbortSignal?e:e?.signal??void 0}function l(e){let t=c(e);return null!=t&&t.aborted}function f(e){if(p(e))throw e}function d(e){if(!p(e))throw e}function u(e,t){let r=c(e);if(null!=r)return r.aborted?void t():(0,a.Oo)(r,"abort",()=>t())}function b(e,t){let r=c(e);if(null!=r)return s(r),(0,a.Oo)(r,"abort",()=>t(i()))}function h(e,t){return null==c(t)?e:new Promise((r,n)=>{let a=u(t,()=>n(i())),s=()=>{a=(0,o.xt)(a)};e.then(s,s),e.then(r,n)})}function p(e){return"object"==typeof e&&!!e&&"name"in e&&"AbortError"===e.name}async function m(e){try{return await e}catch(e){if(!p(e))throw e;return}}async function g(e){if(!e)return;if("function"!=typeof e.forEach){let t=Object.keys(e),r=await g(t.map(t=>e[t])),n={};return t.map((e,t)=>n[e]=r[t]),n}let t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{let n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function y(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function w(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function v(e,t=void 0,r){let n=new AbortController;return u(r,()=>n.abort()),new Promise((r,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);u(n,()=>{o&&(clearTimeout(o),a(i()))})})}function _(e,t){let r=new AbortController,n=setTimeout(()=>r.abort(),t);return u(e,()=>{r.abort(),clearTimeout(n)}),{...e,signal:r.signal}}function k(e){return e&&"function"==typeof e.then}function O(e){return k(e)?e:Promise.resolve(e)}function A(e,t=-1){let r,n,a,o,s=null,c=(...l)=>{if(r){n=l,o&&o.reject(i()),o=Promise.withResolvers();let e=o.promise;if(s){let e=s;s=null,e.abort()}return e}if(a=o||Promise.withResolvers(),o=null,t>0){let n=new AbortController;r=O(e(...l,n.signal));let a=r;v(t).then(()=>{r===a&&(o?n.abort():s=n)})}else r=1,r=O(e(...l));let f=()=>{let e=n;n=a=r=s=null,null!=e&&c(...e)},d=r,u=a;return d.then(f,f),d.then(u.resolve,u.reject),u.promise};return c}function P(e,t){t.then(e.resolve,e.reject)}async function S(e){await Promise.resolve(),s(e)}},799(e,t,r){r.d(t,{Cj:()=>c,HC:()=>i,V2:()=>s,Wm:()=>l,_e:()=>u,xq:()=>f});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function i(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function s(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function c(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function l(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function f(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t,a=0;a<e.length;a++)t=e.charCodeAt(a),r=Math.imul(r^t,2654435761),n=Math.imul(n^t,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)}let d;function u(e){return d??=new DOMParser,d.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function i(e){return"Uint8ClampedArray"===e?.constructor?.name}function s(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}function p(e){return b(e)||u(e)||l(e)||s(e)||a(e)}function m(e){return b(e)||u(e)}function g(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:f(e)?4294967295:c(e)?65535:o(e)||i(e)?255:l(e)?2147483647:s(e)?y:a(e)?127:256}r.d(t,{IY:()=>s,JI:()=>p,LW:()=>d,UR:()=>i,XJ:()=>f,_G:()=>l,a3:()=>g,aI:()=>b,dk:()=>m,dz:()=>a,iu:()=>h,jq:()=>c,mg:()=>o,mw:()=>n,vZ:()=>u});const y=32767;r.d(t,["h2",0,-2147483648])},84952(e,t,r){r.d(t,{$1:()=>K,$z:()=>H,An:()=>A,BQ:()=>re,DB:()=>V,FL:()=>L,FX:()=>R,Hg:()=>Z,Il:()=>fe,Ln:()=>he,N9:()=>te,S8:()=>z,T1:()=>ue,UC:()=>de,V1:()=>F,Zo:()=>we,_0:()=>_e,a6:()=>ye,b8:()=>I,e7:()=>le,fj:()=>B,hf:()=>be,lJ:()=>Q,lM:()=>oe,m3:()=>ae,nM:()=>ce,oP:()=>D,oy:()=>W,r$:()=>Y,rs:()=>ge,s0:()=>v,s2:()=>J,sC:()=>q,s_:()=>x,tk:()=>ee,ut:()=>E,w8:()=>G,x0:()=>S,xw:()=>ve,yM:()=>M,zf:()=>P,zi:()=>me,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),i=r(53966),s=r(12195),c=r(39131),l=r(26306);const f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){let e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null==k.port?"":`:${k.port}`}${t}`}();function A(e){if(!e)return null;let t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function P(e){let t=e.split("&"),r={};for(let e of t){if(!e)continue;let t,n,a=e.indexOf("=");a<0?(t=decodeURIComponent(e),n=""):(t=decodeURIComponent(e.slice(0,a)),n=decodeURIComponent(e.slice(a+1)));let o=r[t];"string"==typeof o&&(o=r[t]=[o]),Array.isArray(o)?o.push(n):r[t]=n}return r}function S(e,t){return e?t&&"function"==typeof t?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(null==n)return"";let a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,s.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,s.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function x(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ae(e);let n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw i.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ie()&&(r=oe(r)),A(r)}function M(e,t=!1){let r,n,a=N(e);if(a){let e=C(a.proxyUrl);r=e.path,n=e.query?P(e.query):null}else if(t){let t=x(e);r=t.path,n=t.query}if(r){let t=A(e);e=r+"?"+t.path;let a=S({...n,...t.query});a&&(e=`${e}?${a}`)}return e}const j={path:"",query:""};function C(e){let t=e.indexOf("?");return-1===t?(j.path=e,j.query=null):(j.path=e.slice(0,t),j.query=e.slice(t+1)),j}function $(e){return(e=se(e=fe(e=C(e).path),!0)).toLowerCase()}function W(e){let t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix,a=r.length;for(let e=0;e<r.length;e++){let t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){let t=f.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function I(e,t){if(!e||!t)return!1;e=T(e),t=T(t);let r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&R(e,t,!0)}function E(e,t){return e=T(e),t=T(t),se(e)===se(t)}function T(e){let t=(e=z(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function q(e,t=f.interceptors){let r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(let e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function R(e,t,r=!1){if(!e||!t)return!1;let n=pe(e),a=pe(t);return!(!r&&n.scheme!==a.scheme||null==n.host||null==a.host)&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function L(e){if("string"==typeof e){if(!D(e))return!0;e=pe(e)}if(R(e,k))return!0;let t=f.trustedServers||[];for(let r=0;r<t.length;r++){let n=U(t[r]);for(let t=0;t<n.length;t++)if(R(e,n[t]))return!0}return!1}function U(e){return _[e]||(ne(e)||re(e)?_[e]=[new v(J(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function J(e,t=O,r){return re(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:B(e.startsWith("/")?function(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=O,r){if(null==e||!D(e))return e;let n=z(e),a=n.toLowerCase(),o=z(t).toLowerCase().replace(/\/+$/,""),i=r?z(r).toLowerCase().replace(/\/+$/,""):null;if(i&&!o.startsWith(i))return e;let s=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r,c=s(a,"/",a.indexOf("//")+2),l=-1;for(;a.slice(0,c+1)===o.slice(0,c)+"/"&&(l=c+1,c!==a.length);)c=s(a,"/",c+1);if(-1===l||i&&l<i.length)return e;e=n.slice(l);let f=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function z(e){return function(e){let t=f.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&re(e)}(e))return e;let r,n=e.indexOf("/",7);if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),m.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&r===k.authority&&!g.test(e)||(ie()&&r===k.authority||t&&t.some(e=>r===e||r.endsWith(`.${e}`))||ie()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){let t=C(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function B(...e){let t=e.filter(a.Ru);if(!t?.length)return;let r=[];if(D(t[0])){let e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");let n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){let t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function H(e,t=!1){if(null==e||G(e)||V(e))return null;let r=e.indexOf("://");if(-1===r&&re(e))r=2;else{if(-1===r)return null;r+=3}let n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=se(e,!0)),e}function D(e){return re(e)||ne(e)}function G(e){return null!=e&&e.startsWith("blob:")}function V(e){return null!=e&&e.startsWith("data:")}function Q(e){let t=Y(e);return t?.isBase64?(0,l.M)(t.data):null}function K(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const X=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){let t=e.match(X);if(!t)return null;let[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function Z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ee(e){return(await fetch(e)).blob()}function te(e){let t=Q(e);if(!t)return null;let r=Y(e);return new Blob([t],{type:r.mediaType})}function re(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function ae(e){return null!=e&&h.test(e)||"https"===k.scheme&&re(e)}function oe(e){return re(e)?`https:${e}`:e.replace(b,"https:")}function ie(){return"https"===k.scheme}function se(e,t=!1){return re(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ce(e){let t=0;if(D(e)){let r=e.indexOf("//");-1!==r&&(t=r+2)}let r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function le(e,t){if(!e)return"";let r=A(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;let a=RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function fe(e){return e.endsWith("/")?e:`${e}/`}function de(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&D(e)))return e;let n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),i=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,i).toLowerCase()===t.toLowerCase()?`${e.slice(0,n+2)}${r}${e.slice(i)}`:e}function be(e,t){let r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function he(e){return new URL(e).host}function pe(e){return"string"==typeof e?new v(J(e)):(e.scheme||=k.scheme,e)}function me(e,t){let r=A(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function ge(e,t,r){let n=A(e),a=n.query||{};return a[t]=String(r),`${n.path}?${S(a)}`}function ye(e,t){if(!t)return e;let r=A(e),n=r.query||{};for(let[e,r]of Object.entries(t))null!=r&&(n[e]=r);let a=S(n);return a?`${r.path}?${a}`:r.path}function we(e){if(null==e)return null;let t=e.match(ke);return t?t[2]:null}function ve(e){if(null==e)return null;let t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?Y(e)??{data:e}:new Promise((t,r)=>{let n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(Y(n.result)),n.onerror=e=>r(e)})}const ke=/([^.]*)\.([^/]*)$/;r.d(t,["Xq",0,()=>k,"gd",0,()=>O])},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o,i=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(i)&&(a=i.signal,o=i.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},50343(e,t,r){r.r(t),r.d(t,{default:()=>w});var n=r(70333),a=r(49186),o=r(37955),i=r(36563),s=r(97768),c=r(17676),l=r(52268),f=r(17333),d=r(8341);const{CLOSE:u,ABORT:b,INVOKE:h,RESPONSE:p,OPEN_PORT:m,ON:g}=d.Go;class y{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===b?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(let e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class w{static{this.kernelInfo={fullVersion:n.ol}}static{this.clients=new Map}static connect(e,t){let r,n=new MessageChannel;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;let a=new w(n.port1,{channel:n,client:r,schedule:t});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=a),w.clients.set(a,r),n.port2}static loadWorker(e){let t=f.u[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new y(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){let n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));let i=(0,d.Jc)();return new Promise((r,a)=>{if((0,c.G4)(n))return this._processWork(),void a((0,c.NK)());let l={resolve:r,reject:a,abortHandle:(0,c.u7)(n,()=>{let e=this._outJobs.get(i);e&&(this._outJobs.delete(i),this._processWork(),(0,s.xt)(e.abortHandle),this._post({type:b,jobId:i}),a((0,c.NK)()))}),debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){let r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:g,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,i.hA)(()=>{r.port1.postMessage({type:u}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){let e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;let e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;let{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&=void 0,this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,s.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null==this._schedule?this._processMessage(e,!1):this._schedule(()=>this._processMessage(e,!0))}_processMessage(e,t){let r=(0,d.VI)(e);if(r)switch(r.type){case p:this._onResponseMessage(r);break;case h:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case b:this._onAbortMessage(r);break;case u:this._onCloseMessage();break;case m:this._onOpenPortMessage(r);break;case g:this._onOnMessage(r)}}_onAbortMessage(e){let t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){let e=this._client;this._close(),e&&"destroy"in e&&w.clients.get(this)===e&&e.destroy(),w.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){let t,{methodName:r,jobId:n,data:a=[],abortable:o}=e,i=o?new AbortController:null,s=this._inJobs,l=this._client,f=l[r];try{if(!f&&r&&r.includes(".")){let e=r.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],f=l[e[t+1]]}if("function"!=typeof f)throw TypeError(`${r} is not a function`);a.push({client:this,signal:i?i.signal:null}),t=f.apply(l,a)}catch(e){return void this._post({type:p,jobId:n,error:(0,d.mF)(e)})}(0,c.$X)(t)?(s.set(n,{controller:i,promise:t}),t.then(e=>{s.has(n)&&(s.delete(n),this._post({type:p,jobId:n},e))},e=>{s.has(n)&&(s.delete(n),(0,c.zf)(e)||this._post({type:p,jobId:n,error:(0,d.mF)(e||{message:`Error encountered at method ${r}`})}))})):this._post({type:p,jobId:n},t)}_onOpenPortMessage(e){new w(e.port,{client:this._client})}_onOnMessage(e){let{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,o.on)(e.port,"message",e=>{(0,d.VI)(e)?.type===u&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){let{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;let i=o.get(t);o.delete(t),this._processWork(),(0,s.xt)(i.abortHandle),r?i.reject(a.A.fromJSON(JSON.parse(r))):i.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},17333(e,t,r){const n={CSVSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(1333)]).then(()=>r(25209)),EdgeProcessingWorker:()=>Promise.all([r.e(1843),r.e(161),r.e(433)]).then(()=>r(71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(2258),r.e(9038)]).then(()=>r(38419)),FeaturePipelineWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(5128),r.e(1722),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(893),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(5248),r.e(5228),r.e(7304),r.e(3027),r.e(1969),r.e(4485)]).then(()=>r(55459)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(893),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(1869)]).then(()=>r(20401)),FlowWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(7235)]).then(()=>r(49616)),GaussianSplatSortWorker:()=>r.e(5856).then(()=>r(35856)),GeospatialPDFLayerWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(599)]).then(()=>r(37728)),GeometryWorker:()=>Promise.all([r.e(9917),r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9367)]).then(()=>r(71246)),GeoJSONSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(3642)]).then(()=>r(71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(359),r.e(9575),r.e(2170)]).then(()=>r(14289)),GlyphWorker:()=>Promise.all([r.e(2741),r.e(6892)]).then(()=>r(16892)),IntegratedMesh3DTilesLayerWorker:()=>Promise.all([r.e(1843),r.e(9554)]).then(()=>r(95938)),LercWorker:()=>r.e(7087).then(()=>r(57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(()=>r(72772)),MemorySourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(9616)]).then(()=>r(29432)),PBFDecoderWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9078)]).then(()=>r(39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9358),r.e(4314)]).then(()=>r(96982)),ParquetSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(3819),r.e(5248),r.e(3027),r.e(1484)]).then(()=>r(6557)),PointCloudWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(7005),r.e(7984),r.e(5992)]).then(()=>r(64798)),RasterWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9075),r.e(9235),r.e(3518)]).then(()=>r(63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(1843),r.e(161),r.e(491)]).then(()=>r(70491)),SceneLayerWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(6707)]).then(()=>r(94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(()=>r(95902)),WFSSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(359),r.e(5752),r.e(9575),r.e(9315)]).then(()=>r(33771)),WorkerTileHandler:()=>Promise.all([r.e(7736),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(5228),r.e(7499),r.e(1969),r.e(4157)]).then(()=>r(36984)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(4862)]).then(()=>r(1123)),statsWorker:()=>Promise.all([r.e(7736),r.e(7865),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9575),r.e(3281),r.e(1737)]).then(()=>r(26412)),ImageMeasurementWorker:()=>r.e(1360).then(()=>r(41360))};r.d(t,["u",0,n])},8341(e,t,r){r.d(t,{Jc:()=>c,VI:()=>d,mF:()=>l,oV:()=>b,u1:()=>f});var n=r(44208),a=r(17676);const o="worker:port-closed",i={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let s=0;function c(){return s++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function f(e,t,r,n){if(t.type===i.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==i.INVOKE&&t.type!==i.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;let t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;let t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){let t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}r.d(t,["Go",0,i,"T",0,o])},70333(e,t,r){r.d(t,{Aq:()=>i,Y3:()=>s,id:()=>a,ol:()=>o}),r(44208);var n=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");let a,o="5.2";function i(e){a=e}function s(e){let t=a?.findCredential(e);return t?.token?(0,n.rs)(e,"token",t.token):e}o="5.2.9",globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}})},39131(e,t,r){r.d(t,{$E:()=>i,py:()=>o,qG:()=>s});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){let t=e?.match(n);if(!t)return null;let[,r,o,i]=t;if(!r)return null;let s=null,c=null,l=null,{devext:f,qaext:d,www:u}=a;if(o)if(s=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qa":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}else({customBaseUrl:c,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qaext":({customBaseUrl:c,portalHostname:l}=d);break;case"www":({customBaseUrl:c,portalHostname:l}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:s}}function i(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function s(e){let t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(e){let t=new Uint8Array(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>a})}};const t={};function r(n){const a=t[n];if(void 0!==a)return a.exports;const o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var a=t[n++],o=t[n++],i=0===o?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:o};r.o(e,a)||Object.defineProperty(e,a,i)}else for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.f={},r.e=e=>{const t=[];return r.f.i(e,t),Promise.all(t)},r.u=e=>"chunks/"+{7:"4cf72dcccf2be353a701",31:"67efdd296007a809586c",77:"e04fb83ab2634bc15cc7",86:"a846c94d49df8d4cd5be",100:"ebbf425af348e6ede814",118:"0f7455dbe8c2ee464194",146:"54b18559280a7d2a8d93",152:"9c33e67bb6f93f6529bb",154:"f497968055af459c5da4",161:"44f90e75c1dc3d726a95",167:"3321cb0d4cb68b2ec8bf",309:"e7aaf7579592b79d6dd7",349:"514cc15acb77dc85035c",353:"751a21288cf161b94a54",359:"3880d2c7fb14955d7f93",369:"66539ab0d88b47326ce9",382:"8483c50ed8f280fd74bb",390:"2ad69cc496235702bbf2",433:"5736feefa261589b6273",468:"bfb8fc6b940bd5510e29",491:"4db829a0238024736fe6",506:"ac69c0fd5867b493f1d2",521:"25c3be410d1c03f8f39d",547:"aa5b42e44d2959fdacd3",563:"08fe248e412bb170210d",566:"bd812dd75d2a3d7d0441",569:"2b4dd42920d37b1ff0a9",599:"20ee2f36f0fd0ae01e15",692:"2671035cc08027185737",700:"d7cf32a8c6060a208f06",737:"d5916500514a41a4758f",756:"49e4fe8ea5a4366a9b45",787:"bc38def1983089514e4b",788:"6a294b6ed6f67c8a01c6",812:"80c234ee5276ea1645db",820:"35f8896b52adaf952657",837:"9cbde13e536676767900",892:"dfbe0efe453587ec5eb2",893:"0fa29352f2ecf0c515e8",895:"369780276b2755361f7d",919:"4e3f651ac76fcd53df2b",926:"ccb55245fe49d844ec50",944:"3537fe95b83a13b156cc",980:"8102f0bf5707c3be3310",1017:"a17673e691ced46a90d3",1088:"864194927d05ebc4cc31",1132:"eaddffcc7004101fc230",1137:"d05665ddc8d31403aed3",1150:"edd36a1fc80b1d29907e",1204:"608be1172a908e92b9f1",1214:"eab53cc313ef38ec7c48",1273:"449a2dee17b54946f245",1277:"fcb4707c2e95099b9f30",1285:"116293b1ee788a89ce1e",1327:"47f0c717acc2c33ea670",1333:"9e0b0262dec496451762",1360:"28a821de9dbf10324033",1384:"28ed020d9995b6577be5",1484:"596891426621c403bdef",1491:"06101f3da5e2fc708402",1504:"eaab787a5f2445be5e5a",1550:"7446d0dfebf93e86c098",1560:"4f4bc4f809b8936cd010",1577:"cca8bd07bcd1d267a2e8",1588:"b5eff28cf482d920b9ea",1630:"5f49233d5b67a9ad71d7",1666:"950d4578dc450467404c",1698:"0fda0d8b0eaeed2ab39d",1722:"606ea251075fe81a1206",1735:"d344c3fd9f6b113bbcd7",1737:"b71029a2ab7dbb3706f9",1763:"17c6d66b47aa690df0d4",1773:"72e6d594b7262430ae55",1797:"f8bc474434fd365ab174",1837:"3a8320a40916c755c031",1843:"aba42885c5d6b2b5fe7f",1869:"c93343a91161c4e40c28",1894:"12a08d0ad0f5fea32642",1904:"251f706d226b1d47ba99",1938:"1a614bac5db42c6263f8",1948:"a51576d84edca88e41dd",1951:"d4bc6d65dff5d0cc93ba",1969:"bab1d010970d98c25470",2024:"67f15538c51838201fc7",2158:"4ba856605f711b615e4c",2170:"66867e523cc82f8fe35b",2174:"164e74d586297946a717",2186:"f79494829a5b65b5b4c9",2223:"8ac4a043a4f185db271f",2257:"510c2eb78f5e12f77bbc",2258:"0b4481b57a611b15f65c",2266:"0d99bfb75dcb9fa29080",2343:"05b34302da58e8244da3",2346:"590fe0f56bc4c33a50e7",2372:"6202ba9d79567cbe2c48",2390:"9d0ee6a816bb72068ab1",2409:"30e20461958951a31a5c",2423:"2479162ebc3a0b8d2b5e",2486:"cb4c5544382eb8c4a87f",2491:"46d91cd99558304da0c7",2558:"2b06e8507d71c4d9b5b5",2599:"85b63811ae7bcb6f74b6",2733:"5ec5a6cef9ee9a8cc400",2741:"648d5cdfc3e92be3db55",2769:"c4c55d8a98ba3f51f63c",2772:"e81173724e8de8c1e65b",2802:"ca204c110438f7315790",2889:"fe1287eca47c84211346",2958:"de3f140058aa0b907b65",2980:"897e44f97b933d70feee",2990:"2095f220dc2b8f8f62db",2994:"747461bb6a1bc2f0a64d",2997:"80df9ad016b46619c7b9",3027:"7697bbbaf3724f8c4445",3030:"f95a1f878c9c1146180e",3080:"7862abd24fb5c3b12e6b",3103:"604433b02a165d187953",3116:"b7c4bb0f3f9662bac726",3193:"070684943698fa43c2b4",3242:"5bf7de2e2faa55e53629",3275:"c25ae83fd790f181bb42",3276:"eb2652ec48faa78de3c5",3281:"72f716a841463e0ba23f",3283:"10ad7b35b6800d40444e",3299:"700b1d5bc67b7e1b3ff3",3309:"e630f3c56c077cb2bd8e",3318:"bec375ff37c25a49e080",3359:"1fcc998421c7c16de2ca",3375:"5fbd7d8d8896a224fff3",3390:"ee6679ef9efa1504e7eb",3391:"fc0dbb588a4062615cb6",3394:"898359be6996fd9763b8",3456:"df7603ef7d2a7cbeaaa2",3518:"b1d5d236d5268fcbc74b",3527:"3636c2ac9b77950776d6",3543:"e000123703b86494c738",3561:"aa4f3751f0d830113bed",3642:"294276ed397023dcda44",3650:"fccfe3aa45a2fb286012",3666:"363142b7fb50227fcdca",3693:"1380cec385426673f294",3708:"47f0c717acc2c33ea670",3755:"3ec3589f6e74d7cb87cf",3813:"c8d178a0c82fffd7fed5",3819:"4e4f747de424941a0bfa",3902:"84495695313b01832369",3910:"9432feca48ca3e5849bd",4038:"5b720d254ba61758b61a",4059:"5982c6a8459c1237b298",4061:"a17fb26d6ac4895e51a3",4064:"6ccf9535013fe672c93b",4085:"69627b2634da64dd885f",4123:"692f0093c444fcc752b5",4144:"365825c51fad1bb7f51f",4157:"15e1117a706a98b17ad5",4314:"8e5903f1ed31e1185fc9",4426:"c0b38f8c808d434af5f6",4485:"651dd3a2d1eebdf39f28",4506:"fd172c96d2b36032a1d9",4548:"f9dc38761b314d33890f",4575:"62941dd81acfdb524cfe",4581:"18e7fa4d3e0b1a084cc6",4642:"ac24b4370dc7194a3107",4674:"561c48cb4d49b150765b",4682:"2529f12fc16e98c014ca",4690:"711cfb84659cb4437679",4729:"df375d1b0dab5ecbd1be",4790:"9cd3fcb5fca6f9dbbcd8",4791:"406f24ec13eb30d43405",4834:"40d7e54529d13fdd2bf1",4844:"36f31416132de434ec00",4862:"f63686735e4e52f5b54e",4934:"6694e2b27fd6ddf44e21",4943:"435ad7e6ed326da2b969",4945:"d51bb11baadc741c46bc",4988:"6268aadb24e0b7c8d207",5077:"0284f608d25c654fcc11",5087:"89cc1a5539b82fb46216",5128:"a7325ebb7edf3273bb34",5141:"56a24061589f4a968818",5165:"8293600f94553afc8c38",5181:"3de07326da4c47cd2aab",5223:"c9e7d4c277fbc82c4438",5227:"ca2adcbcf44454484fd5",5228:"fdbf6208df5c58746d9d",5248:"367b2f25cfe37847a48d",5313:"900c8569596609183f19",5356:"70268d790c2f1cb83d43",5360:"a02c3c23bd87e0470b8b",5367:"14ded73842154d91ef4e",5404:"3704b4e7efc3abc1a7b1",5443:"6e910342ada398c98e30",5566:"f8a83d447b7aef051876",5606:"b54ba2bd6b1b90dcc0cc",5613:"bde8f3b3ce5b1d3ee774",5740:"9bbc8e5d42921a8050bb",5752:"46f0510846a309a390ca",5756:"5fbd7d8d8896a224fff3",5804:"85ec73dcba4b922f1948",5841:"4e17665dd9048c300d87",5856:"bca6b469940b7b954123",5879:"eeb068c265bd3a22a8c1",5902:"18d47ab571b613fbe719",5954:"3e29ab5ec136e669b633",5977:"057f245d70e57a1bcb46",5992:"8f008eedb11685ee2048",6023:"46071e59290bf06bb614",6027:"e2576c37cf13dc421f69",6033:"a025ee38d402504193df",6052:"47e250d471d0e55fa6be",6070:"178083d8ed7707b45ca2",6122:"0b6941781e35ce0f7274",6129:"6b646971cc15e33a9f33",6154:"d747c7a5252e3b1f466a",6185:"c046c4fc934bc6f54c69",6187:"dbaa88e46487efaad732",6247:"6afe860f491905c72298",6440:"5982c6a8459c1237b298",6451:"66c2a28a851130b87c04",6475:"ec8b7476eac4718eb0ac",6491:"067de1910190da228291",6553:"b6d71a4ab788a09714f3",6554:"fc44227c1756f65b95df",6556:"076e8d2e08ff2a013736",6558:"876f7633c15f1e31078d",6569:"6b04285726b803b82564",6650:"3415531224f8494d79ca",6671:"0320cbd825f9a4222042",6684:"084222c00d263a534952",6707:"f2cfee8a761ae91f7a3e",6742:"1eaaa896eea3f2ffe6a6",6744:"144bad0c2415c345736a",6810:"1f9d6180a96d557838e9",6830:"fa7b189e9b2cc8d4a77f",6870:"20f75cc777af13fa249b",6874:"a79cae328e866272754a",6875:"0590857215c547e63b51",6880:"2b804b5d7ce10f0f0cf0",6892:"f0676c2963718bee2486",6930:"d89fe41c71c9621c41ae",6936:"1188d0a136fffc009643",6956:"02d4f91652a79d2b637e",7005:"2d3e0e4442dbc6ec6def",7029:"aa8ab28e0c1ae3b55ac0",7085:"0979a48905742486f222",7087:"bb9a1162384f59e9bc5e",7217:"4c389472b8cdb0c55154",7235:"216a239142dfe1306c6c",7269:"6eb5cc8ddf772c0062e6",7290:"8f74d92ac69714b9fd4e",7301:"67f54efc817b241f8746",7304:"304a2ae3a1a08c2313be",7366:"d3412518a7b518860fbb",7380:"983b85727e09c54bede0",7420:"61d36730564c5ac5edab",7444:"59295b99bdff4045a0e7",7499:"505227797bcf2a1d908d",7546:"17f99b130384c1ff2e01",7548:"86524ae8926228898d95",7552:"a6f969851d4278865cc5",7561:"2a8168e109caa87d596f",7715:"8d01dd92f5c897193ab5",7736:"a83815c028c9c80aa4c9",7745:"f9259dc1d78d762c6ac0",7826:"5396b6e99a0546a25d19",7865:"2fcd7db1e192858a650e",7883:"aa1054834738aef48bda",7885:"c1cf3edce15f09648eb4",7956:"c2cbe0f5e8958cf18e58",7982:"5b2d1c8763a1716677c0",7984:"8cc8d7ffe43f5947b04f",7992:"b01804aa6c47a220a603",8018:"ac10c7d2c4829a150037",8125:"ac69c0fd5867b493f1d2",8169:"21e1d423ee33f916547e",8197:"f9c80e9fc349db4873e8",8218:"a6f74bd1a9c87b9836ca",8241:"71a51795f715332fb4fe",8278:"266c90d8d56a2da42fcf",8298:"7aa9b61ca9b66f30449f",8305:"1132e28aaa5825b10b6e",8307:"f8d2225f333524ce1d88",8344:"b976122bcd4e2170afaf",8377:"92b03de8a7686b164f60",8589:"95c9c5677bbe7fd0420a",8595:"63c3a573dfe703056f8f",8611:"43aef67452fa6ff8d8f9",8613:"784d6c6949284ed6e10b",8628:"42330ad374904de4f78f",8673:"c5bf19da62a3d31009fe",8679:"8e310e9cb9d84ac3ca2f",8692:"c7699edd14497d174445",8714:"765ecf6dff9a547d8e19",8740:"efc53007cd2e4991d7d4",8747:"934e1f2153e6fad6ed23",8798:"7711ae5612f685078fc8",8826:"7b45ac83e279fe9516a5",8846:"a2196a49f89d57a0a1c7",8879:"1819c45655c836b9a8d7",8885:"72399062767abdfb0bee",9013:"3dd49f910834a2fb2142",9038:"c249a91dd23104723fab",9074:"cb6fb04fe5c8d90d4196",9075:"d24dea0bdb17db07e2b3",9078:"4996869b9cbd8c8ddcfa",9110:"673c61c964524150d9bc",9117:"7851aef196eea5d6c94e",9126:"40748b846cf6923478c9",9134:"2a3fcc034cfbf540c5cc",9159:"4d7063c4152953afb859",9177:"849f446c718e892f39ce",9187:"1cc744ab5eee5ee3bed8",9192:"cc817c9d3f8e8f8c56e4",9235:"e3f8f1dba7b3a473ed00",9239:"f67b37253d6d05d1e339",9275:"26261b21d1edf476ea49",9279:"dba5f44c4e4a3f075df2",9301:"546f5f57c9249627bb89",9315:"caaf6306cc73f618d27d",9321:"ffde86162265b33e97e0",9358:"ace2e0a9d9013edd8624",9367:"7f5b887a753bb67c8486",9407:"1ab59a97ffa49e9e1659",9447:"474015def9652ddf0640",9459:"e7b168ba31142c00f765",9480:"5f1cb79aec9c4a9b7ddc",9512:"debe45e792212682b304",9521:"787c1a8bda7d745633f2",9554:"8ca2bb3c0551bb1898b6",9567:"3b0808ee3c4facfaca3d",9575:"ccd19c490ca24db6ffb1",9588:"58032aab28a20a327f6c",9616:"b0a612d8ffa5c46d7db4",9657:"afc3b2af20e9d1dfd260",9672:"3b552afffaa78bf4fe18",9692:"4bb1bb3ffb1b71bc43c8",9695:"5aeb5e18514644fe2cf9",9696:"f3fdf75843ade0ca591e",9716:"d4eb24c82087a74ae670",9722:"cd9aa950cb74b09008fe",9789:"6de64abd9e2b51fa2872",9800:"712559f121f76c4e71ab",9820:"4024becaf4012c1f15a7",9821:"1c378d489c5402888f76",9838:"792d2b62356a1d953c88",9855:"4419732baf3459a80e6d",9894:"7572c2bc5062e66f6330",9917:"dd08dff19a2ffd36f284",9933:"257910cca66dc5df465e",9953:"3286cf2afeb7f48564d9",9958:"deb408bee61ca192b2ce"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{var e={76:1},t=t=>{let[n,o,i]=t;for(var s in o)r.o(o,s)&&(r.m[s]=o[s]);for(i&&i(r);n.length;)e[n.pop()]=1;a(t)};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var n=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],a=n.push.bind(n);n.forEach(t),n.push=t})(),r(66358);let n=r(50343);RemoteClient=n})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7304],{57582(t,e,i){i.d(e,{af:()=>n,rK:()=>r}),i(92602);const s="arial-unicode-ms";function n(t){if(!t)return s;let e=t.toLowerCase().split(" ").join("-");switch(e){case"serif":return"noto-serif";case"sans-serif":return"arial-unicode-ms";case"monospace":return"ubuntu-mono";case"fantasy":return"cabin-sketch";case"cursive":return"redressed";default:return e}}function r(t){let e=function(t){if(!t.weight)return"";switch(t.weight.toLowerCase()){case"bold":case"bolder":return"-bold"}return""}(t)+function(t){if(!t.style)return"";switch(t.style.toLowerCase()){case"italic":case"oblique":return"-italic"}return""}(t);return n(t.family)+(e.length>0?e:"-regular")}new Map,new Set,i.d(e,["Vb",0,s])},85560(t,e,i){function s(){let t=new Float32Array(6);return t[0]=1,t[3]=1,t}function n(t,e,i,s){let n=e[s],r=e[s+1];t[s]=i[0]*n+i[2]*r+i[4],t[s+1]=i[1]*n+i[3]*r+i[5]}i.d(e,{vt:()=>s}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){let e=new Float32Array(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},create:s,fromValues:function(t,e,i,s,n,r){let h=new Float32Array(6);return h[0]=t,h[1]=e,h[2]=i,h[3]=s,h[4]=n,h[5]=r,h},transform:n,transformMany:function(t,e,i,s=0,r=0,h=2){let a=r||e.length/h;for(let r=s;r<a;r++)n(t,e,i,r*h)}},Symbol.toStringTag,{value:"Module"}))},88340(t,e,i){function s(){return new Float32Array(2)}function n(t,e){let i=new Float32Array(2);return i[0]=t,i[1]=e,i}function r(){return s()}function h(){return n(1,1)}function a(){return n(1,0)}function l(){return n(0,1)}i.d(e,{fA:()=>n,vt:()=>s});const o=r(),u=h(),c=a(),_=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:_,ZEROS:o,clone:function(t){let e=new Float32Array(2);return e[0]=t[0],e[1]=t[1],e},create:s,fromValues:n,ones:h,unitX:a,unitY:l,zeros:r},Symbol.toStringTag,{value:"Module"})),i.d(e,["Un",0,u,"uY",0,o])},16905(t,e,i){i.d(e,{$0:()=>o,B8:()=>r,D_:()=>n,Tl:()=>l,e$:()=>a,lw:()=>h});var s=i(34304);function n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function r(t,e){let i=e[0],s=e[1],n=e[2],r=e[3],h=e[4],a=e[5],l=i*r-s*n;return l?(l=1/l,t[0]=r*l,t[1]=-s*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*a-r*h)*l,t[5]=(s*h-i*a)*l,t):null}function h(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=i[0],u=i[1],c=i[2],_=i[3],p=i[4],f=i[5];return t[0]=s*o+r*u,t[1]=n*o+h*u,t[2]=s*c+r*_,t[3]=n*c+h*_,t[4]=s*p+r*f+a,t[5]=n*p+h*f+l,t}function a(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=Math.sin(i),u=Math.cos(i);return t[0]=s*u+r*o,t[1]=n*u+h*o,t[2]=s*-o+r*u,t[3]=n*-o+h*u,t[4]=a,t[5]=l,t}function l(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=i[0],u=i[1];return t[0]=s,t[1]=n,t[2]=r,t[3]=h,t[4]=s*o+r*u+a,t[5]=n*o+h*u+l,t}function o(t,e){let i=Math.sin(e),s=Math.cos(e);return t[0]=s,t[1]=i,t[2]=-i,t[3]=s,t[4]=0,t[5]=0,t}function u(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t[4]=e[4]-i[4],t[5]=e[5]-i[5],t}const c=h,_=u;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t[4]=e[4]+i[4],t[5]=e[5]+i[5],t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},determinant:function(t){return t[0]*t[3]-t[1]*t[2]},equals:function(t,e){let i=t[0],n=t[1],r=t[2],h=t[3],a=t[4],l=t[5],o=e[0],u=e[1],c=e[2],_=e[3],p=e[4],f=e[5],m=(0,s.FD)();return Math.abs(i-o)<=m*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-u)<=m*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-c)<=m*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(h-_)<=m*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(a-p)<=m*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(l-f)<=m*Math.max(1,Math.abs(l),Math.abs(f))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+1)},fromRotation:o,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},identity:n,invert:r,mul:c,multiply:h,multiplyScalar:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*i,t[5]=e[5]*i,t},multiplyScalarAndAdd:function(t,e,i,s){return t[0]=e[0]+i[0]*s,t[1]=e[1]+i[1]*s,t[2]=e[2]+i[2]*s,t[3]=e[3]+i[3]*s,t[4]=e[4]+i[4]*s,t[5]=e[5]+i[5]*s,t},rotate:a,scale:function(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=i[0],u=i[1];return t[0]=s*o,t[1]=n*o,t[2]=r*u,t[3]=h*u,t[4]=a,t[5]=l,t},set:function(t,e,i,s,n,r,h){return t[0]=e,t[1]=i,t[2]=s,t[3]=n,t[4]=r,t[5]=h,t},str:function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},sub:_,subtract:u,translate:l},Symbol.toStringTag,{value:"Module"}))},36745(t,e,i){i.d(e,{z:()=>a});var s=i(4718),n=i(51118),r=i(60408),h=i(92722);class a{static fromOptimized(t,e,i=1){return(new l).initialize(t,e,i)}static fromJSON(t){let[e,i]=u(t),s=(0,r.Pv)(t),n=(0,r.W0)(t);return(new c).initialize(e,i,s,n,1)}static fromOptimizedCIM(t,e,i=1){return(new _).initialize(t,e,i)}static fromJSONCIM(t,e=1){let[i,s]=u(t),n=(0,r.Pv)(t),h=(0,r.W0)(t);return(new p).initialize(i,s,n,h,e)}static fromFeatureSetReader(t){let e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimized(e,i):null}static fromFeatureSetReaderCIM(t){let e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimizedCIM(e,i):null}static createEmptyOptimized(t,e=!1,i=!1,s=1){return(new _).initialize(new h.A([],[],e,i),t,s)}static createEmptyJSON(t,e=!1,i=!1){return(new c).initialize([],t,e,i,1)}static createEmptyOptimizedCIM(t,e=!1,i=!1,s=1){return(new _).initialize(new h.A([],[],e,i),t,s)}static createEmptyJSONCIM(t,e=!1,i=!1,s=1){return(new p).initialize([],t,e,i,s)}asJSON(){let t=(0,n.x)(this),{hasZ:e,hasM:i}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:i}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:i?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:i}:{paths:t,hasZ:e,hasM:i}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,i=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;let s=t,n=e;for(;this.nextPoint();)i+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return i+=(t-s)*(e+n),-.5*i}invertY(){this.yFactor*=-1}}class l extends a{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,i){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=i,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){let e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){let t=this._end,e=this._geometry.coords,i=this._pathOffset;return(new l).initialize(new h.A([this.pathSize],e.slice(i,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){let t=this._end,e=this._stride,i=this._geometry.coords,s=0;for(let n=this._pathOffset+e;n<t;n+=e){let t=i[n-e],r=i[n-e+1],h=i[n]-t,a=i[n+1]-r;s+=Math.sqrt(h*h+a*a)}return s}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(let e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){let e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){let t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){let t=this._geometry.coords,e=this._pathOffset,i=this._end-this._stride;for(let s=0;s<this._stride;s++)if(t[e+s]!==t[i+s])return!1;return!0}clone(){return(new l).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){let{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){let t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function o(t){let e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function u(t){return(0,r.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,r.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,r.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,r.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,r.fT)(t)?[[[o(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class c extends a{initialize(t,e,i,s,n){return this._paths=t,this.geometryType=e,this.hasZ=i,this.hasM=s,this._pathIndex=this._pointIndex=-1,this.yFactor=n,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){let t=this._currentPath.length,e=this._currentPath,i=0;for(let s=1;s<t;s++){let t=e[s-1],n=e[s],r=t[0],h=t[1],a=n[0]-r,l=n[1]-h;i+=Math.sqrt(a*a+l*l)}return i}startPath(){this._paths.push([])}getCurrentPath(){return(new c).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){let e=(0,n.x)(t);for(let t of e)this.pushPath(t)}asOptimized(){let{hasZ:t,hasM:e}=this,i=new h.A([],[],t,e),{coords:s,lengths:n}=i;if("esriGeometryPoint"===this.geometryType)s.push(...this._paths[0][0]),n.length=0;else for(let i of this._paths){for(let n of i)s.push(n[0]),s.push(n[1]*this.yFactor),t&&s.push(n[2]),e&&s.push(n[this._mIndex]);n.push(i.length)}return i}isClosed(){let t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}clone(){return(new c).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class _ extends l{initialize(t,e,i){return super.initialize(t,e,i),this._controlPoints||=this._controlPoints=Array(this.totalSize).fill(void 0).map(t=>new Set),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){let t=(new _).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class p extends c{initialize(t,e,i,s,n){return super.initialize(t,e,i,s,n)}clone(){return(new p).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},78957(t,e,i){i.d(e,{d:()=>u,R:()=>M});class s{constructor(t=n){this._data=[],this._compare=t}get size(){return this._data.length}enqueue(t){if(null==t)return;let{_data:e,_compare:i}=this;e.push(t);let s=e.length-1>>>0,n=e[s];for(;s>0;){let t=s-1>>1,r=e[t];if(!(i(r,n)<=0))break;e[t]=n,e[s]=r,s=t}}dequeue(){let{_data:t,_compare:e}=this,i=t[0],s=t.pop();if(0===t.length)return i;t[0]=s;let n,r,h=0,a=t.length,l=t[0],o=null;for(;;){let i=2*h+1,s=2*h+2;if(o=null,i<a&&(n=t[i],e(n,l)>0&&(o=i)),s<a&&(r=t[s],(null===o&&e(r,l)<=0||null!==o&&e(r,n)<=0)&&(o=s)),null===o)break;t[h]=t[o],t[o]=l,h=o}return i}}const n=(t,e)=>t<e?-1:+(t>e);var r=i(19419),h=i(537),a=i(12359),l=i(95108),o=i(12176);function u(t){if(0===t.totalSize)return null;let e=(0,h.z8)(t);if(!e)return null;let i=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19,s=0,n=0;t.reset();for(let e=0;t.nextPath();e++){let i=t.getCurrentRingArea();i>n&&(n=i,s=e)}if(t.seekPath(s),0===t.pathSize)return null;t.seekPathStart();let l=(0,h.B$)(t);if(Math.abs(n)<=2*i*i)return[(l[0]+l[2])/2,(l[1]+l[3])/2];t.seekPathStart();let o=(0,a.w2)(t,(0,r.vt)());if(null===o)return null;if(t.totalPoints<4)return o;let u=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],f=[NaN,NaN,NaN,NaN],m=[NaN,NaN,NaN,NaN],d=!1,P=_(o,t,!0);0===P.distance&&(d=!0,u[0][0]=o[0],u[0][1]=o[1],P=_(o,t,!1)),f[0]=P.distance,m[0]=0;let M=[NaN,NaN],b=!1,C=.25,v=-1,w=NaN;do{if(w=NaN,u[1]=p(t,g(l[0],l[2],C),0,e),!isNaN(u[1][0])&&!isNaN(u[1][1])&&(P=_(u[1],t,!1),w=P.distance),!isNaN(w)&&w>i&&c(u[1],t))b=!0,f[1]=w,m[1]=x(u[1],o);else if(!isNaN(w)&&w>v&&(v=w,M[0]=u[1][0],M[1]=u[1][1]),C-=.01,C<.1){if(!(v>=0))break;b=!0,f[1]=v,u[1][0]=M[0],u[1][1]=M[1],m[1]=x(u[1],o)}}while(!b);b=!1,C=.5,v=-1;let S=.01,I=1;do{if(w=NaN,u[2]=p(t,g(l[0],l[2],C),0,e),!isNaN(u[2][0])&&!isNaN(u[2][1])&&(P=_(u[2],t,!1),w=P.distance),!isNaN(w)&&w>i&&c(u[2],t))b=!0,f[2]=w,m[2]=x(u[2],o);else if(!isNaN(w)&&w>v)v=w,M[0]=u[2][0],M[1]=u[2][1];else if(w>v&&(v=w,M[0]=u[2][0],M[1]=u[2][1]),C=.5+S*I,S+=.01,I*=-1,C<.3||C>.7){if(!(v>=0))break;b=!0,f[2]=v,u[2][0]=M[0],u[2][1]=M[1],m[2]=x(u[2],o)}}while(!b);b=!1,C=.75,v=-1;do{if(w=NaN,u[3]=p(t,g(l[0],l[2],C),0,e),!isNaN(u[3][0])&&!isNaN(u[3][1])&&(P=_(u[3],t,!1),w=P.distance),!isNaN(w)&&w>i&&c(u[3],t))b=!0,f[3]=w,m[3]=x(u[3],o);else if(w>v&&(v=w,M[0]=u[3][0],M[1]=u[3][1]),C+=.01,C>.9){if(!(v>=0))break;b=!0,f[3]=v,u[3][0]=M[0],u[3][1]=M[1],m[3]=x(u[3],o)}}while(!b);let z,k=[0,1,2,3],A=+!d;for(let t=A;t<4;t++)for(let t=A;t<3;t++){let e=m[t],i=m[t+1];y(e,i)>0&&(z=k[t],k[t]=k[t+1],k[t+1]=z,m[t]=i,m[t+1]=e)}let T=A,E=0,O=0;for(let t=A;t<4;t++){switch(t){case 0:O=2*f[k[t]];break;case 1:O=1.66666666*f[k[t]];break;case 2:O=1.33333333*f[k[t]];break;case 3:O=f[k[t]]}O>E&&(E=O,T=k[t])}return u[T]}function c(t,e){let i,s,n,r,h=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(i=e.x,s=e.y;e.nextPoint();i=n,s=r)n=e.x,r=e.y,s>t[1]!=r>t[1]&&((n-i)*(t[1]-s)-(r-s)*(t[0]-i)>0?h++:h--);return 0!==h}function _(t,e,i){if(i&&c(t,e))return{coord:t,distance:0};let s=1/0,n=0,r=0,h=[0,0],a=[0,0],o=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(h[0]=e.x,h[1]=e.y;e.nextPoint();h=a){a=[e.x,e.y],(0,l.gR)(o,t,h,a);let i=x(t,o);i<s&&(s=i,n=o[0],r=o[1])}return{coord:[n,r],distance:Math.sqrt(s)}}function p(t,e,i,s){let n=[e,0],h=1/0,a=1/0,l=!1,u=!1,c=[[e,s[1]-1],[e,s[3]+1]],_=[0,0],p=[0,0],d=[0,0],g=[[0,0],[0,0]],x=(0,r.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(g[0][0]=t.x,g[0][1]=t.y;t.nextPoint();g[0][0]=g[1][0],g[0][1]=g[1][1]){if(g[1][0]=t.x,g[1][1]=t.y,null===f(x,g)||(p[0]=c[0][0],p[1]=c[0][1],d[0]=c[1][0],d[1]=c[1][1],0===m(x,p,d))||!(0,o.Ql)(c[0],c[1],g[0],g[1],_))continue;let e=_[1];h>a?e<h&&(h=e,l=!0):e<a&&(a=e,u=!0)}return l&&u?n[1]=(h+a)/2:n[0]=n[1]=NaN,n}function f(t,e){if(e.length<2)return null;t||=(0,r.vt)();let[i,s]=e[0],[n,h]=e[1];return t[0]=Math.min(i,n),t[1]=Math.min(s,h),t[2]=Math.max(i,n),t[3]=Math.max(s,h),t}function m(t,e,i){let s=d(e,t),n=d(i,t),r=t[0],h=t[1],a=t[2],l=t[3];if(s&n)return 0;if(!(s|n))return 4;let o=!!s|(n?2:0);do{let o=i[0]-e[0],u=i[1]-e[1];if(o>u)3&s?(1&s?(e[1]+=u*(r-e[0])/o,e[0]=r):(e[1]+=u*(a-e[0])/o,e[0]=a),s=d(e,t)):3&n?(1&n?(i[1]+=u*(r-i[0])/o,i[0]=r):(i[1]+=u*(a-i[0])/o,i[0]=a),n=d(i,t)):s?(4&s?(e[0]+=o*(h-e[1])/u,e[1]=h):(e[0]+=o*(l-e[1])/u,e[1]=l),s=d(e,t)):(4&n?(i[0]+=o*(h-i[1])/u,i[1]=h):(i[0]+=o*(l-i[1])/u,i[1]=l),n=d(i,t));else if(12&s?(4&s?(e[0]+=o*(h-e[1])/u,e[1]=h):(e[0]+=o*(l-e[1])/u,e[1]=l),s=d(e,t)):12&n?(4&n?(i[0]+=o*(h-i[1])/u,i[1]=h):(i[0]+=o*(l-i[1])/u,i[1]=l),n=d(i,t)):s?(1&s?(e[1]+=u*(r-e[0])/o,e[0]=r):(e[1]+=u*(a-e[0])/o,e[0]=a),s=d(e,t)):(1&n?(i[1]+=u*(r-i[0])/o,i[0]=r):(i[1]+=u*(a-i[0])/o,i[0]=a),n=d(i,t)),s&n)return 0}while(s|n);return o}function d(t,e){return+(t[0]<e[0])|(t[0]>e[2])<<1|(t[1]<e[1])<<2|(t[1]>e[3])<<3}function g(t,e,i){return t+(e-t)*i}function x(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function y(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;let i=isNaN(t),s=isNaN(e);return i<s?-1:+(i>s)}class P{constructor(t,e,i,s){this.x=t,this.y=e,this.cellSize=i,this.distancefromCellCenter=(0,l.Xf)(t,e,s),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}function M(t){if(!t.nextPath()||!t.pathSize)return null;let e=(0,h.B$)(t),i=e[2]-e[0],n=e[3]-e[1];if(0===i||0===n)return[e[0]+i/2,e[1]+n/2];let r=Math.max(Math.min(i,n)/100,1),l=new s((t,e)=>e.maxDistanceToPolygon-t.maxDistanceToPolygon),o=Math.min(i,n),u=o/2,c=0,_=0;for(c=e[0];c<e[2];c+=o)for(_=e[1];_<e[3];_+=o)l.enqueue(new P(c+u,_+u,u,t));t.reset(),t.nextPath();let p=(0,a.IK)(t);if(null===p)return null;let f,m=new P(p[0],p[1],0,t);for(;l.size>0;)f=l.dequeue(),f.distancefromCellCenter>m.distancefromCellCenter&&(m=f),!(f.maxDistanceToPolygon-m.distancefromCellCenter<=r)&&(u=f.cellSize/2,l.enqueue(new P(f.x-u,f.y-u,u,t)),l.enqueue(new P(f.x+u,f.y-u,u,t)),l.enqueue(new P(f.x-u,f.y+u,u,t)),l.enqueue(new P(f.x+u,f.y+u,u,t)));return[m.x,m.y]}},41437(t,e,i){i.d(e,{Aq:()=>n,pC:()=>h,rx:()=>a,zq:()=>r});var s=i(98939);function n(t,e){t[4]=e}function r(t){if(!(Math.abs(t)>.5*Math.PI))return null;let e=t+Math.PI,i=Math.atan2(Math.sin(e),Math.cos(e));return Number.isNaN(i)?null:i}class h{constructor(t,e=!0,i=!0,n=0){this._angleToLine=!0,this._keepUpright=!1,this.isClosed=!1,this.geometryCursor=null,this.geometryCursor=!e&&"esriGeometryPolygon"===t.geometryType||!i&&"esriGeometryPolyline"===t.geometryType?null:t,this.geomUnitsPerPoint=n,this.iterateMultiPath=!1,this.iteratePath=!1,this.internalPlacement=new s.W}next(){if(!this.geometryCursor)return null;let t=this.processMultiPath(this.geometryCursor);if((!this.iterateMultiPath||!t)&&(this.geometryCursor=null),!t)return null;let e=t.getAngle(),i=this._angleToLine&&this._keepUpright?r(e):null;return null!=i&&t.setRotate(i),t}processMultiPath(t){for(;this.iteratePath||t.pathIndex<t.totalSize-1;){this.iteratePath||t.nextPath(),this.iterateMultiPath=!0;let e=this.processPath(t);if(e)return e}return this.iterateMultiPath=!1,null}}class a{constructor(t,e,i,s=0){this.isClosed=!1,this.inputGeometries=t,this.acceptPolygon=e,this.acceptPolyline=i,this.geomUnitsPerPoint=s,this.iteratePath=!1,this.multiPathCursor=null}next(){for(;;){if(!this.multiPathCursor){let t=this.inputGeometries.next();for(;t&&(this.isClosed=this.acceptPolygon&&"esriGeometryPolygon"===t.geometryType||"esriGeometryEnvelope"===t.geometryType,this.multiPathCursor=t,!this.multiPathCursor);)t=this.inputGeometries.next();if(!this.multiPathCursor)return null}for(;this.iteratePath||this.multiPathCursor.nextPath();){this.multiPathCursor.seekPathStart();let t=this.processPath(this.multiPathCursor);if(t)return t}this.multiPathCursor=null}}}},35833(t,e,i){i.d(e,{ai:()=>d,g1:()=>g,kT:()=>x,qc:()=>y});var s=i(18370),n=i(36745),r=i(6774);const h=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(1797)]).then(()=>i(46160))),a=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6491)]).then(()=>i(55666))),l=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(8679)]).then(()=>i(51190))),o=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(837)]).then(()=>i(97528))),u=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(3030)]).then(()=>i(50795))),c=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(6936)]).then(()=>i(15605))),_=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(3456)]).then(()=>i(3637))),p=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(4790)]).then(()=>i(67520))),f=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1948)]).then(()=>i(83299)));let m;function d(t){switch(t.type){case"CIMGeometricEffectDonut":case"CIMGeometricEffectBuffer":return h.getImportPromise();case"CIMGeometricEffectEnclosingPolygon":return a.getImportPromise();case"CIMGeometricEffectOffset":return Promise.all([p.getImportPromise(),c.getImportPromise(),u.getImportPromise()]);case"CIMGeometricEffectControlMeasureLine":return c.getImportPromise();case"CIMGeometricEffectTaperedPolygon":return Promise.all([_.getImportPromise(),l.getImportPromise(),o.getImportPromise()]);default:return Promise.resolve()}}function g(t){return"CIMMarkerPlacementAtMeasuredUnits"===t.type?f.getImportPromise():Promise.resolve()}class x{constructor(t){this._geometry=t}next(){let t=this._geometry;return this._geometry=null,t}}function y(t,e,i){if(!t)return null;m||=new r.O3(0,0,0,1);let s,h,a=i?-1:1,l="esriGeometryPolygon"===t.geometryType,o=l?3:2,u=l?3:2;for(m.reset(o),m.setPixelMargin(e+1),m.setExtent(512);t.nextPath();)if(!(t.pathSize<u)){for(t.nextPoint(),s=t.x,h=a*t.y,m.moveTo(s,h);t.nextPoint();)s=t.x,h=a*t.y,m.lineTo(s,h);l&&m.close()}let c=m.result(!1);if(c){let e=n.z.createEmptyOptimizedCIM(t.geometryType);for(let t of c){e.startPath();for(let i of t)e.pushXY(i.x,a*i.y)}return e.reset(),e}return null}i.d(e,["$Z",0,h,"NS",0,o,"Xs",0,l,"hd",0,u,"lX",0,a,"mO",0,c,"vZ",0,f,"xR",0,p,"yM",0,_])},54258(t,e,i){i.d(e,{A:()=>ee,c:()=>ie});var s=i(34653);class n{constructor(){this.type="CIMBackgroundCallout"}static{this.instance=null}static local(){return null===n.instance&&(n.instance=new n),n.instance}execute(t,e,i){if("CIMBackgroundCallout"!==e?.type)throw Error("Invalid effect type for BackgroundCalloutEffect");return new r(t,e,i)}}class r{constructor(t,e,i){let{geomUnitsPerPoint:n}=i;if(!n)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for BackgroundCalloutEffect");let r=n*(i.scaleFactor??1);this._inputGeometries=t,this._part=e.part,this._leaderTolerance=(e.leaderTolerance??0)*r,this._leaderOffset=(e.leaderOffset??0)*r,this._gap=(e.gap??0)*r,this._geomUnitsPerPoint=r,this._hasAccentBar=!0===e.hasAccentBar,this._lineStyle=e.lineStyle,this._margins=(0,s.QB)(e.margin,r),this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;let i=(0,s.XD)(e.bounds,this._margins);switch(this._part){case"accent-bar":return(0,s.W)(i,e.anchor,this._gap,t.yFactor,this._lineStyle,e.bounds);case"background":return(0,s._T)(i,t.yFactor);default:{if((0,s.gR)(i,e.anchor))return null;let n=(0,s.sz)(i,e.anchor,this._lineStyle,this._gap,this._hasAccentBar,e.bounds);return(0,s.Io)(n,e.anchor)<this._leaderTolerance?null:(0,s.n_)(i,e.anchor,this._lineStyle,this._leaderOffset,this._gap,t.yFactor,this._geomUnitsPerPoint,this._hasAccentBar,e.bounds)}}}return null}}class h{constructor(){this.type="CIMBalloonCallout"}static{this.instance=null}static local(){return null===h.instance&&(h.instance=new h),h.instance}execute(t,e,i){if("CIMBalloonCallout"!==e?.type)throw Error("Invalid effect type for BalloonCalloutEffect");return new a(t,e,i)}}class a{constructor(t,e,i){let{geomUnitsPerPoint:n}=i;if(!n)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for BalloonCalloutEffect");let r=n*(i.scaleFactor??1);this._inputGeometries=t,this._balloonStyle=e.balloonStyle,this._dartWidth=null==e.dartWidth?null:e.dartWidth*r,this._part=e.part,this._separateDart=!0===e.separateDart,this._leaderTolerance=(e.leaderTolerance??0)*r,this._margins=(0,s.QB)(e.margin,r),this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;let i=(0,s.XD)(e.bounds,this._margins);if("dart"===this._part){let n=(0,s.ZO)(i,e.anchor,this._balloonStyle,this._leaderTolerance,t.yFactor,this._dartWidth,e.layoutAnchor);if(n)return n;continue}return(0,s.IF)(i,e.anchor,this._balloonStyle,this._leaderTolerance,t.yFactor,this._dartWidth,e.layoutAnchor,!this._separateDart)}return null}}class l{constructor(){this.type="CIMPointSymbolCallout"}static{this.instance=null}static local(){return null===l.instance&&(l.instance=new l),l.instance}execute(t,e,i){if("CIMPointSymbolCallout"!==e?.type)throw Error("Invalid effect type for PointSymbolCalloutEffect");return new o(t,e,i)}}class o{constructor(t,e,i){let{geomUnitsPerPoint:s}=i;if(!s)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for PointSymbolCalloutEffect");let n=s*(i.scaleFactor??1);this._inputGeometries=t,this._part=e.part,this._leaderTolerance=(e.leaderTolerance??0)*n,this._leaderOffset=(e.leaderOffset??0)*n,this._gap=(e.gap??0)*n,this._geomUnitsPerPoint=n,this._lineStyle=e.lineStyle,this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;if("marker"===this._part)return(0,s.DJ)((0,s.gX)(e.bounds),t.yFactor);if((0,s.gR)(e.bounds,e.anchor))return null;let i=(0,s.sz)(e.bounds,e.anchor,this._lineStyle,this._gap);return(0,s.Io)(i,e.anchor)<this._leaderTolerance?null:(0,s.n_)(e.bounds,e.anchor,this._lineStyle,this._leaderOffset,this._gap,t.yFactor,this._geomUnitsPerPoint)}return null}}var u=i(36745);class c{constructor(){this.type="CIMSimpleLineCallout"}static{this.instance=null}static local(){return null===c.instance&&(c.instance=new c),c.instance}execute(t,e,i){if("CIMSimpleLineCallout"!==e?.type)throw Error("Invalid effect type for SimpleLineCalloutEffect");return new _(t,e,i)}}class _{constructor(t,e,i){this._inputGeometries=t,this._autoSnap=e.autoSnap??!0;let s=i.geomUnitsPerPoint*(i.scaleFactor??1);this._leaderTolerance=(e.leaderTolerance??0)*s,this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=this._createLeaderGeometry(t);if(e)return e}return null}_createLeaderGeometry(t){let e=(0,s.EE)(t,this._calloutContext);if(e){let i=this._autoSnap?(0,s.E0)(e.bounds,e.layoutAnchor):function(t){return{x:t.xmin,y:t.ymin}}(e.bounds);return function(t,e){return e.x>=t.xmin&&e.x<=t.xmax&&e.y>=t.ymin&&e.y<=t.ymax}(e.bounds,e.layoutAnchor)||!this._passesLeaderTolerance(i,e.layoutAnchor)?null:function(t,e,i){let s=u.z.createEmptyOptimizedCIM("esriGeometryPolyline",!1,!1,i);return s.startPath(),s.pushXY(t.x,i*t.y),s.pushXY(e.x,i*e.y),s.reset(),s}(i,e.anchor,t.yFactor)}return"esriGeometryPolyline"===t.geometryType&&this._passesPolylineTolerance(t)?t.clone():null}_passesLeaderTolerance(t,e){return this._leaderTolerance<=0||function(t,e){return Math.hypot(e.x-t.x,e.y-t.y)}(t,e)>=this._leaderTolerance}_passesPolylineTolerance(t){if(this._leaderTolerance<=0)return!0;let e=t.clone(),i=0;for(;e.nextPath();)i+=e.pathLength();return i>=this._leaderTolerance}}class p{static{this.instance=null}static local(){return null===p.instance&&(p.instance=new p),p.instance}execute(t,e,i){return new f(t,e)}}class f{constructor(t,e){this._inputGeometries=t,this._angleTolerance=void 0===e.angleTolerance?120:e.angleTolerance,this._maxCosAngle=Math.cos((1-Math.abs(this._angleTolerance)/180)*Math.PI)}next(){let t=this._inputGeometries.next();if(!t)return null;for(;t;){if("esriGeometryPolygon"===t.geometryType)this._isClosed=!0;else if("esriGeometryPolyline"===t.geometryType)this._isClosed=!1;else{if("esriGeometryEnvelope"!==t.geometryType){t=this._inputGeometries.next();continue}if(this._maxCosAngle)return t;this._isClosed=!0}for(;t.nextPath();)this._processPath(t);return t.reset(),t}return null}_processPath(t){if(t.nextPoint()){let e=t.x,i=t.y,s=e,n=i,r=t.pathSize,h=0,a=0,l=0,o=0,u=0,c=0;this._isClosed&&++r;for(let _=1;t.nextPoint()||_<r;++_){let p,f;this._isClosed&&_===r-1?(p=e,f=i):(p=t.x,f=t.y);let m=p-s,d=f-n,g=Math.sqrt(m*m+d*d);_>1&&g>0&&l>0&&(h*m+a*d)/g/l<=this._maxCosAngle&&t.setControlPointAt(_-1),1===_&&(o=m,u=d,c=g),g>0&&(s=p,n=f,h=m,a=d,l=g)}this._isClosed&&l>0&&c>0&&(h*o+a*u)/c/l<=this._maxCosAngle&&t.setControlPointAt(0)}}}var m=i(51118),d=i(41437);class g{constructor(t=0,e=!1){}isEmpty(t){if(!t.nextPoint())return!0;let e,i,s,n;for(e=t.x,i=t.y;t.nextPoint();e=i,i=n)if(s=t.x,n=t.y,s!==e||n!==i)return t.seekPathStart(),!1;return t.seekPathStart(),!0}normalize(t){let e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);0!==e&&(t[0]/=e,t[1]/=e)}getLength(t,e,i,s){let n=i-t,r=s-e;return Math.sqrt(n*n+r*r)}getSegLength(t){let[[e,i],[s,n]]=t;return this.getLength(e,i,s,n)}getCoord2D(t,e,i,s,n){return[t+(i-t)*n,e+(s-e)*n]}getSegCoord2D(t,e){let[[i,s],[n,r]]=t;return this.getCoord2D(i,s,n,r,e)}getAngle(t,e,i,s,n){let r=i-t,h=s-e;return Math.atan2(h,r)}getAngleCS(t,e,i,s,n,r){t??=[0,0];let h=s-e,a=n-i,l=Math.sqrt(h*h+a*a);return 0===l?(t[0]=1,t[1]=0,t):(t[0]=h/l,t[1]=a/l,t)}getSegAngleCS(t,e,i){let[[s,n],[r,h]]=e;return this.getAngleCS(t,s,n,r,h,i)}cut(t,e,i,s,n,r){return[n<=0?[t,e]:this.getCoord2D(t,e,i,s,n),r>=1?[i,s]:this.getCoord2D(t,e,i,s,r)]}getSubCurve(t,e,i){let s=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return this.appendSubCurve(s,t,e,i)?s:null}appendSubCurve(t,e,i,s){t.startPath(),e.seekPathStart();let n=0,r=!0;if(!e.nextPoint())return!1;let h=e.x,a=e.y;for(;e.nextPoint();){let l=this.getLength(h,a,e.x,e.y);if(0!==l){if(r){if(n+l>i){let o=(i-n)/l,u=1,c=!1;n+l>=s&&(u=(s-n)/l,c=!0);let _=this.cut(h,a,e.x,e.y,o,u);if(_&&t.pushPoints(_),c)break;r=!1}}else{if(n+l>s){let i=this.cut(h,a,e.x,e.y,0,(s-n)/l);i&&t.pushPoint(i[1]);break}t.pushXY(e.x,e.y)}n+=l,h=e.x,a=e.y}else h=e.x,a=e.y}return!0}getCIMPointAlong(t,e){if(!t.nextPoint())return null;let i,s,n,r,h=0;for(i=t.x,s=t.y;t.nextPoint();i=n,s=r){n=t.x,r=t.y;let a=this.getLength(i,s,n,r);if(0!==a){if(h+a>e){let t=(e-h)/a;return this.getCoord2D(i,s,n,r,t)}h+=a}}return null}offset(t,e,i,s,n){if(!t||t.length<2)return null;let r=0,h=t[r++],a=r;for(;r<t.length;){let e=t[r];(e[0]!==h[0]||e[1]!==h[1])&&(r!==a&&(t[a]=t[r]),h=t[a++]),r++}let l=t[0][0]===t[a-1][0]&&t[0][1]===t[a-1][1];if(l&&--a,a<(l?3:2))return null;let o=[];h=l?t[a-1]:null;let u=t[0];for(let n=0;n<a;n++){let r=n===a-1?l?t[0]:null:t[n+1];if(h)if(r){let t=[r[0]-u[0],r[1]-u[1]];this.normalize(t);let n=[u[0]-h[0],u[1]-h[1]];this.normalize(n);let a=n[0]*t[1]-n[1]*t[0],l=n[0]*t[0]+n[1]*t[1];if(0===a&&1===l){u=r;continue}if(a>=0==e<=0){if(l<1){let i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);let r=Math.sqrt((1+l)/2);if(r>1/s){let t=-Math.abs(e)/r;o.push([u[0]-i[0]*t,u[1]-i[1]*t])}}}else switch(i){case"Mitered":{let i=Math.sqrt((1+l)/2);if(i>0&&1/i<s){let s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);let r=Math.abs(e)/i;o.push([u[0]-s[0]*r,u[1]-s[1]*r]);break}}case"Bevelled":o.push([u[0]+n[1]*e,u[1]-n[0]*e]),o.push([u[0]+t[1]*e,u[1]-t[0]*e]);break;case"Rounded":if(l<1){o.push([u[0]+n[1]*e,u[1]-n[0]*e]);let i=Math.floor(2.5*(1-l));if(i>0){let s=1/i,r=s;for(let h=1;h<i;h++,r+=s){let i=[n[1]*(1-r)+t[1]*r,-n[0]*(1-r)-t[0]*r];this.normalize(i),o.push([u[0]+i[0]*e,u[1]+i[1]*e])}}o.push([u[0]+t[1]*e,u[1]-t[0]*e])}break;default:if(a<0)o.push([u[0]+(n[1]+n[0])*e,u[1]+(n[1]-n[0])*e]),o.push([u[0]+(t[1]-t[0])*e,u[1]-(t[0]+t[1])*e]);else{let i=Math.sqrt((1+Math.abs(l))/2),s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);let r=e/i;o.push([u[0]-s[0]*r,u[1]-s[1]*r])}}}else{let t=[u[0]-h[0],u[1]-h[1]];this.normalize(t),o.push([u[0]+t[1]*e,u[1]-t[0]*e])}else{let t=[r[0]-u[0],r[1]-u[1]];this.normalize(t),o.push([u[0]+t[1]*e,u[1]-t[0]*e])}h=u,u=r}return o.length<(l?3:2)?null:(l&&o.push([o[0][0],o[0][1]]),o)}}class x{static{this.instance=null}static local(){return null===x.instance&&(x.instance=new x),x.instance}execute(t,e,i){return new y(t,e,i)}}class y extends d.rx{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new g;let s=i.geomUnitsPerPoint;this._width=(void 0===e.width?5:e.width)*s,this._arrowType=void 0===e.geometricEffectArrowType?void 0===e.arrowType?"OpenEnded":e.arrowType:e.geometricEffectArrowType,this._offsetFlattenError=.03*s}processPath(t){let e=u.z.createEmptyOptimizedCIM(t.geometryType);switch(this._arrowType){case"OpenEnded":default:this._constructSimpleArrow(e,t,!0);break;case"Block":this._constructSimpleArrow(e,t,!1);break;case"Crossed":this._constructCrossedArrow(e,t)}return e}_constructSimpleArrow(t,e,i){let s=e.pathLength(),n=this._width;s<2*n&&(n=s/2);let r=this._curveHelper.getSubCurve(e,0,s-n);if(!r||!r.nextPath())return;r.seekPathStart();let h=n/2;if(this._curveHelper.isEmpty(r))return;let a=(0,m.A)(r),l=this._constructOffset(a,-h);if(!l)return;let o=this._constructOffset(a,h);if(!o)return;let u=this._constructArrowBasePoint(l,-h/2);if(!u)return;let c=this._constructArrowBasePoint(o,h/2);if(!c)return;e.seekInPath(e.pathSize-1);let _=[e.x,e.y];t.pushPath(o),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(c),t.nextPoint(),t.setControlPoint(),t.pushPoint(_),t.nextPoint(),t.setControlPoint(),t.pushPoint(u),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.setControlPoint(),i||(t.setControlPointAt(0),t.setControlPointAt(t.pathSize-1),t.pushPoint(o[0])),t.reset()}_constructCrossedArrow(t,e){let i=e.pathLength(),s=this._width;i<3.732050807568877*s&&(s=i/3.732050807568877),e.seekPathStart();let n=this._curveHelper.getSubCurve(e,0,i-2.732050807568877*s);if(!n)return;n.nextPath();let r=s/2;if(this._curveHelper.isEmpty(n))return;let h=(0,m.A)(n),a=this._constructOffset(h,r);if(!a)return;let l=this._constructOffset(h,-r);if(!l)return;let o=this._curveHelper.getSubCurve(e,0,i-s);if(!o||(o.nextPath(),this._curveHelper.isEmpty(o)))return;let u=(0,m.A)(o),c=this._constructOffset(u,r);if(!c)return;let _=this._constructOffset(u,-r);if(!_)return;let p=c[c.length-1],f=this._constructArrowBasePoint(c,r/2);if(!f)return;let d=_[_.length-1],g=this._constructArrowBasePoint(_,-r/2);if(!g)return;e.seekInPath(e.pathSize-1);let x=[e.x,e.y];t.pushPath(a),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(d),t.nextPoint(),t.setControlPoint(),t.pushPoint(g),t.nextPoint(),t.setControlPoint(),t.pushPoint(x),t.nextPoint(),t.setControlPoint(),t.pushPoint(f),t.nextPoint(),t.setControlPoint(),t.pushPoint(p),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.nextPoint(),t.setControlPoint(),t.reset()}_constructOffset(t,e){return this._curveHelper.offset(t,e,"Rounded",4,this._offsetFlattenError)}_constructArrowBasePoint(t,e){if(!t||t.length<2)return null;let i=t[t.length-2],s=t[t.length-1],n=[s[0]-i[0],s[1]-i[1]];return this._curveHelper.normalize(n),[s[0]+n[1]*e,s[1]-n[0]*e]}}var P=i(16930),M=i(35833);class b{static{this.instance=null}static local(){return null===b.instance&&(b.instance=new b),b.instance}execute(t,e,i){return new C(t,e,i)}}class C{constructor(t,e,i){let s=i.geomUnitsPerPoint,n=i.tileKey,r=i.maxInflateSize;this._preventClipping=i.preventClipping,this._inputGeometries=t,this._tileKey=n,this._curveHelper=new g,this._size=(void 0===e.size?1:e.size)*s,this._maxInflateSize=r*s,this._offsetFlattenError=.03*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._size)return t;if("esriGeometryEnvelope"===t.geometryType)if(this._size>0){let e=u.z.createEmptyOptimizedCIM(t.geometryType),i=(0,m.x)(t)[0],s=this._curveHelper.offset(i,this._size,"Rounded",4,this._offsetFlattenError);if(s)return e.pushPath(s),e}else if(this._size<0){let e=t.asJSON();if(Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._size>0)return u.z.fromJSONCIM({xmin:e.xmin-this._size,xmax:e.xmax+this._size,ymin:e.ymin-this._size,ymax:e.ymax+this._size})}let e=!this._preventClipping&&this._tileKey?(0,M.qc)(t,this._maxInflateSize,!0):t;if(!e)continue;let{bufferExecute:i}=M.$Z.module,s=i({...e.asJSON(),spatialReference:{wkid:P.A.WebMercator.wkid}},this._size);return s?u.z.fromJSONCIM(s):null}return null}}var v=i(34727),w=i(28076);const S=Math.PI/180,I=2*Math.PI;class z{static{this.instance=null}static local(){return null===z.instance&&(z.instance=new z),z.instance}execute(t,e,i){return new k(t,e,i)}}class k{constructor(t,e,i){let s=i.geomUnitsPerPoint;this._inputGeometries=t,this._geomUnitsPerPoint=s,this._radius=(e.radius??w.D.CIMGeometricEffectCircularSector.radius)*s,this._startAngle=(e.startAngle??w.D.CIMGeometricEffectCircularSector.startangle)*S,this._endAngle=(e.endAngle??w.D.CIMGeometricEffectCircularSector.endangle)*S}next(){if(this._radius<=0)return null;let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",t.hasZ,!1),i=!1;for(;t.nextPath();)for(;t.nextPoint();)e.pushPath(this._buildRing(t.x,t.y,t.hasZ?t.z:void 0)),i=!0;if(i)return e}t=this._inputGeometries.next()}return null}_buildRing(t,e,i){let s=[this._makePoint(t,e,i)],n=A(this._startAngle),r=A(this._endAngle);for(;r<n;)r+=I;let h=r-n;if(0===h)return s.push(this._makePoint(t+this._radius*Math.cos(r),e+this._radius*Math.sin(r),i)),s.push(this._makePoint(t,e,i)),s;let a=.25*this._geomUnitsPerPoint,l=this._radius<=.5*a?I:2*Math.acos((0,v.qE)(1-a/this._radius,-1,1)),o=Math.max(1,Math.ceil(h/l)),u=h/o,c=r;for(let n=0;n<=o;n++,c-=u)s.push(this._makePoint(t+this._radius*Math.cos(c),e+this._radius*Math.sin(c),i));return s.push(this._makePoint(t,e,i)),s}_makePoint(t,e,i){return null==i?[t,e]:[t,e,i]}}function A(t){return(t%=I)<0?t+I:t}i(86211);var T=i(95108);class E{static{this.instance=null}static local(){return null===E.instance&&(E.instance=new E),E.instance}execute(t,e,i){return new O(t,e,i)}}class O{constructor(t,e,i){this._defaultPointSize=20,this._inputGeometries=t,this._geomUnitsPerPoint=i.geomUnitsPerPoint??1,this._scale=i?.scale,this._rule=e.rule??"FullGeometry",this._spatialReference=i?.spatialReference??P.A.WebMercator,this._width=this._computeWidth(e.width??25),this._defaultSize=this._defaultPointSize*this._geomUnitsPerPoint}next(){let t;for(;t=this._inputGeometries.next();){let e=this._processGeom((0,m.x)(t));if(e?.length)return u.z.fromJSONCIM({paths:e})}return null}_computeWidth(t){if(!function(t){return"ParallelOffsetByValue"===t}(this._rule)||null==this._scale||!this._spatialReference.metersPerUnit)return t*this._geomUnitsPerPoint;let e=this._scale/(96*39.37*this._spatialReference.metersPerUnit);return t/(this._spatialReference.metersPerUnit*e)}_clone(t){return[t[0],t[1]]}_mid(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}_mix(t,e,i,s){return[t[0]*e+i[0]*s,t[1]*e+i[1]*s]}_add(t,e){return[t[0]+e[0],t[1]+e[1]]}_add2(t,e,i){return[t[0]+e,t[1]+i]}_sub(t,e){return[t[0]-e[0],t[1]-e[1]]}_dist(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}_norm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}_normalize(t,e=1){let i=e/this._norm(t);t[0]*=i,t[1]*=i}_leftPerpendicular(t){let e=-t[1],i=t[0];t[0]=e,t[1]=i}_leftPerp(t){return[-t[1],t[0]]}_rightPerpendicular(t){let e=t[1],i=-t[0];t[0]=e,t[1]=i}_rightPerp(t){return[t[1],-t[0]]}_dotProduct(t,e){return t[0]*e[0]+t[1]*e[1]}_crossProduct(t,e){return t[0]*e[1]-t[1]*e[0]}_rotateDirect(t,e,i){let s=t[0]*e-t[1]*i,n=t[0]*i+t[1]*e;t[0]=s,t[1]=n}_makeCtrlPt(t){let e=[t[0],t[1]];return(0,d.Aq)(e,1),e}_addAngledTicks(t,e,i,s){let n=this._sub(i,e);this._normalize(n);let r,h=this._crossProduct(n,this._sub(s,e));r=h>0?this._rightPerp(n):this._leftPerp(n);let a=Math.abs(h)/2,l=[];l.push([e[0]+(r[0]-n[0])*a,e[1]+(r[1]-n[1])*a]),l.push(e),l.push(i),l.push([i[0]+(r[0]+n[0])*a,i[1]+(r[1]+n[1])*a]),t.push(l)}_addBezier2(t,e,i,s,n){if(0===n--)return void t.push(s);let r=this._mid(e,i),h=this._mid(i,s),a=this._mid(r,h);this._addBezier2(t,e,r,a,n),this._addBezier2(t,a,h,s,n)}_addBezier3(t,e,i,s,n,r){if(0===r--)return void t.push(n);let h=this._mid(e,i),a=this._mid(i,s),l=this._mid(s,n),o=this._mid(h,a),u=this._mid(a,l),c=this._mid(o,u);this._addBezier3(t,e,h,o,c,r),this._addBezier3(t,c,u,l,n,r)}_add90DegArc(t,e,i,s,n){let r=n??this._crossProduct(this._sub(i,e),this._sub(s,e))>0,h=this._mid(e,i),a=this._sub(h,e);r?this._leftPerpendicular(a):this._rightPerpendicular(a),h[0]+=a[0],h[1]+=a[1],this._addBezier3(t,e,this._mix(e,.33333,h,.66667),this._mix(i,.33333,h,.66667),i,4)}_addArrow(t,e,i){let s=e[0],n=e[1],r=e[e.length-1],h=this._sub(s,n),a=this._norm(h);this._normalize(h);let l=Math.abs(this._crossProduct(h,this._sub(r,n))),o=this._dotProduct(h,this._sub(r,n));o<.05*a?o=.05*a:o>.95*a&&(o=.95*a);let u=.5*l,c=this._leftPerp(h),_=[n[0]+h[0]*o,n[1]+h[1]*o],p=e.length-1,f=[];f.push(i?[-c[0],-c[1]]:c);let m=[-h[0],-h[1]];for(let t=1;t<p-1;t++){let i=this._sub(e[t+1],e[t]);this._normalize(i);let s=this._dotProduct(i,m),n=this._crossProduct(i,m),r=Math.sqrt((1+s)/2),h=this._sub(i,m);this._normalize(h),h[0]/=r,h[1]/=r,f.push(n<0?[-h[0],-h[1]]:h),m=i}f.push(this._rightPerp(m));for(let i=f.length-1;i>0;i--)t.push([e[i][0]+f[i][0]*u,e[i][1]+f[i][1]*u]);t.push([_[0]+f[0][0]*u,_[1]+f[0][1]*u]),t.push([_[0]+f[0][0]*l,_[1]+f[0][1]*l]),t.push(s),t.push([_[0]-f[0][0]*l,_[1]-f[0][1]*l]),t.push([_[0]-f[0][0]*u,_[1]-f[0][1]*u]);for(let i=1;i<f.length;i++)t.push([e[i][0]-f[i][0]*u,e[i][1]-f[i][1]*u])}_addDash(t,e,i){let s=this._norm(i)/7;this._normalize(i);let n=[];for(let r=0;r<=7;r++)n.push([e[0]+i[0]*r*s,e[1]+i[1]*r*s]),1&r&&(t.push(n),n=[])}_cp2(t,e,i){return t.length>=2?t[1]:this._add2(t[0],e*this._defaultSize,i*this._defaultSize)}_cp3(t,e,i,s){if(t.length>=3)return t[2];let n=this._mix(t[0],1-i,e,i),r=this._sub(e,t[0]);return this._normalize(r),this._rightPerpendicular(r),[n[0]+r[0]*s*this._defaultSize,n[1]+r[1]*s*this._defaultSize]}_arrowPath(t){if(t.length>2)return t;let e=t[0],i=this._cp2(t,-4,0),s=this._sub(e,i);this._normalize(s);let n=this._rightPerp(s);return[e,i,[e[0]+(n[0]-s[0])*this._defaultSize,e[1]+(n[1]-s[1])*this._defaultSize]]}_arrowLastSeg(t){let e,i=t[0],s=this._cp2(t,-4,0);if(t.length>=3)e=t[t.length-1];else{let t=this._sub(i,s);this._normalize(t);let n=this._rightPerp(t);e=[i[0]+(n[0]-t[0])*this._defaultSize,i[1]+(n[1]-t[1])*this._defaultSize]}return[s,e]}_offsetPath(t,e){let{offsetExecute:i}=M.mO.module,s=i({paths:[t],spatialReference:this._spatialReference.toJSON()},e,{joins:"miter",miterLimit:4}),[n]=(0,m.x)(u.z.fromJSONCIM(s));return n?.length?n:null}_processGeom(t){if(!t)return null;let e=[];for(let i of t){let t=i.length>1&&(0,T.Yl)(i)<this._defaultSize;if(!i||0===i.length||t)continue;let s=i.length,n=i[0];switch(this._rule){case"PerpendicularFromFirstSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,4),r=[];r.push(s),r.push(this._mid(n,t)),e.push(r);break}case"ReversedFirstSegment":{let t=this._cp2(i,0,-1);e.push([t,n]);break}case"PerpendicularToSecondSegment":{if(i.length<3)return[];let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=[];r.push(this._mid(t,s)),r.push(n),e.push(r);break}case"SecondSegmentWithTicks":{if(i.length<3)return[];let t,s=this._cp2(i,-4,1),r=this._cp3(i,s,.882353,-1.94),h=this._sub(r,s);t=this._crossProduct(h,this._sub(n,s))>0?this._rightPerp(h):this._leftPerp(h);let a=[];a.push([s[0]+(t[0]-h[0])/3,s[1]+(t[1]-h[1])/3]),a.push(s),a.push(r),a.push([r[0]+(t[0]+h[0])/3,r[1]+(t[1]+h[1])/3]),e.push(a);break}case"DoublePerpendicular":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let l=[];l.push(n),l.push([s[0]+h[0]*a,s[1]+h[1]*a]),e.push(l);let o=[];o.push([s[0]-h[0]*a,s[1]-h[1]*a]),o.push(t),e.push(o);break}case"OppositeToFirstSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let l=[];l.push([s[0]+h[0]*a,s[1]+h[1]*a]),l.push([s[0]-h[0]*a,s[1]-h[1]*a]),e.push(l);break}case"TriplePerpendicular":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,4),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let l=[];l.push([s[0]+h[0]*a*.8,s[1]+h[1]*a*.8]),l.push([r[0]+.8*(n[0]-r[0]),r[1]+.8*(n[1]-r[1])]),e.push(l),e.push([s,r]);let o=[];o.push([s[0]-h[0]*a*.8,s[1]-h[1]*a*.8]),o.push([r[0]+.8*(t[0]-r[0]),r[1]+.8*(t[1]-r[1])]),e.push(o);break}case"HalfCircleFirstSegment":{let t,s=this._cp2(i,0,-1),r=this._cp3(i,s,.5,4),h=this._mid(n,s),a=this._sub(s,n),l=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18),u=Math.sqrt((1+l)/2),c=Math.sqrt((1-l)/2),_=[];this._crossProduct(a,this._sub(r,n))>0?(_.push(n),a=this._sub(n,h),t=s):(_.push(s),a=this._sub(s,h),t=n),this._rotateDirect(a,u,c),a[0]/=u,a[1]/=u;for(let t=1;t<=18;t++)_.push(this._add(h,a)),this._rotateDirect(a,l,o);_.push(t),e.push(_);break}case"HalfCircleSecondSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,1,-1),r=this._sub(n,t);this._normalize(r);let h=this._crossProduct(r,this._sub(s,t))/2;this._leftPerpendicular(r);let a=[t[0]+r[0]*h,t[1]+r[1]*h];r=this._sub(t,a);let l=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18);h>0&&(o=-o);let u=[t];for(let t=1;t<=18;t++)this._rotateDirect(r,l,o),u.push(this._add(a,r));e.push(u);break}case"HalfCircleExtended":{let t,r=this._cp2(i,0,-2),h=this._cp3(i,r,1,-1);if(s>=4)t=i[3];else{let e=this._sub(n,r);t=this._add(h,e)}let a=this._dist(r,h)/2/.75,l=this._sub(r,n);this._normalize(l,a);let o=this._sub(h,t);this._normalize(o,a);let u=[t,h];e.push(u);let c=[this._clone(h)];this._addBezier3(c,h,this._add(h,o),this._add(r,l),r,4),c.push(n),e.push(c);break}case"OpenCircle":{let t=this._cp2(i,-2,0),s=this._sub(t,n),r=Math.cos(Math.PI/18),h=-Math.sin(Math.PI/18),a=[t];for(let t=1;t<=33;t++)this._rotateDirect(s,r,h),a.push(this._add(n,s));e.push(a);break}case"CoverageEdgesWithTicks":{let t,r,h=this._cp2(i,0,-1);if(s>=3)t=i[2];else{let e=this._sub(h,n),i=this._leftPerp(e);t=[n[0]+i[0]-.25*e[0],n[1]+i[1]-.25*e[1]]}if(s>=4)r=i[3];else{let e=this._mid(n,h),i=this._sub(n,h);this._normalize(i),this._leftPerpendicular(i);let s=this._crossProduct(i,this._sub(t,e));this._rightPerpendicular(i),r=[t[0]+i[0]*s*2,t[1]+i[1]*s*2]}let a,l,o=this._sub(h,n);a=this._crossProduct(o,this._sub(t,n))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push(t),l.push(n),l.push([n[0]+(a[0]-o[0])/3,n[1]+(a[1]-o[1])/3]),e.push(l),a=this._crossProduct(o,this._sub(r,h))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push([h[0]+(a[0]+o[0])/3,h[1]+(a[1]+o[1])/3]),l.push(h),l.push(r),e.push(l);break}case"GapExtentWithDoubleTicks":{let t,r=this._cp2(i,0,2),h=this._cp3(i,r,0,1);if(s>=4)t=i[3];else{let e=this._sub(r,n);t=this._add(h,e)}this._addAngledTicks(e,n,r,this._mid(h,t)),this._addAngledTicks(e,h,t,this._mid(n,r));break}case"GapExtentMidline":{let t,r=this._cp2(i,2,0),h=this._cp3(i,r,0,1);if(s>=4)t=i[3];else{let e=this._sub(r,n);t=this._add(h,e)}let a=[];a.push(this._mid(n,h)),a.push(this._mid(r,t)),e.push(a);break}case"Chevron":{let t,r=this._cp2(i,-1,-1);if(s>=3)t=i[2];else{let e=this._sub(r,n);this._leftPerpendicular(e),t=this._add(n,e)}e.push([r,this._makeCtrlPt(n),t]);break}case"PerpendicularWithArc":{let t=this._cp2(i,0,-2),r=this._cp3(i,t,.5,-1),h=this._sub(t,n),a=this._norm(h);h[0]/=a,h[1]/=a;let l=this._crossProduct(h,this._sub(r,n)),o=this._dotProduct(h,this._sub(r,n));o<.05*a?o=.05*a:o>.95*a&&(o=.95*a);let u=[n[0]+h[0]*o,n[1]+h[1]*o],c=this._leftPerp(h),_=[];if(_.push([u[0]-c[0]*l,u[1]-c[1]*l]),_.push([u[0]+c[0]*l,u[1]+c[1]*l]),e.push(_),s>=4){let t=i[3],s=this._dotProduct(h,this._sub(t,n));s<.1*a?s=.1*a:s>.9*a&&(s=.9*a);let r=[n[0]+h[0]*s,n[1]+h[1]*s],l=this._crossProduct(h,this._sub(t,n)),o=[];o.push([r[0]-c[0]*l,r[1]-c[1]*l]),o.push([r[0]+c[0]*l,r[1]+c[1]*l]),e.push(o)}let p=[t[0]+c[0]*l,t[1]+c[1]*l];c=this._sub(t,p);let f=Math.cos(Math.PI/18),m=Math.sin(Math.PI/18);l<0&&(m=-m),_=[n,t];for(let t=1;t<=9;t++)this._rotateDirect(c,f,m),_.push(this._add(p,c));e.push(_);break}case"ClosedHalfCircle":{let t=this._cp2(i,2,0),s=this._mid(n,t),r=this._sub(t,s),h=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),l=[n,t];for(let t=1;t<=18;t++)this._rotateDirect(r,h,a),l.push(this._add(s,r));e.push(l);break}case"TripleParallelExtended":{let t=this._cp2(i,0,-2),s=this._cp3(i,t,1,-2),r=this._mid(n,t),h=this._sub(s,t);this._normalize(h);let a=Math.abs(this._crossProduct(h,this._sub(r,t)))/2,l=this._dist(t,s),o=[t,n];o.push([n[0]+h[0]*l*.5,n[1]+h[1]*l*.5]),e.push(o);let u=[];u.push([r[0]-h[0]*a,r[1]-h[1]*a]),u.push([r[0]+h[0]*l*.375,r[1]+h[1]*l*.375]),(0,d.Aq)(u[u.length-1],1),u.push([r[0]+h[0]*l*.75,r[1]+h[1]*l*.75]),e.push(u);let c=[t,s];e.push(c);break}case"ParallelWithTicks":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n)),a=this._leftPerp(r);this._addAngledTicks(e,n,t,s),this._addAngledTicks(e,this._add2(n,a[0]*h,a[1]*h),this._add2(t,a[0]*h,a[1]*h),this._mid(n,t));break}case"Parallel":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._leftPerp(r),a=this._crossProduct(r,this._sub(s,n)),l=[n,t];e.push(l),l=[],l.push([n[0]+h[0]*a,n[1]+h[1]*a]),l.push([t[0]+h[0]*a,t[1]+h[1]*a]),e.push(l);break}case"PerpendicularToFirstSegment":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._mid(n,t),h=this._sub(t,n);this._normalize(h);let a=this._crossProduct(h,this._sub(s,n));this._leftPerpendicular(h);let l=[];l.push([r[0]-h[0]*a*.25,r[1]-h[1]*a*.25]),l.push([r[0]+h[0]*a*1.25,r[1]+h[1]*a*1.25]),e.push(l);break}case"ParallelOffset":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]-r[0]*h,n[1]-r[1]*h]),a.push([t[0]-r[0]*h,t[1]-r[1]*h]),e.push(a);let l=[];l.push([n[0]+r[0]*h,n[1]+r[1]*h]),l.push([t[0]+r[0]*h,t[1]+r[1]*h]),e.push(l);break}case"OffsetOpposite":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]-r[0]*h,n[1]-r[1]*h]),a.push([t[0]-r[0]*h,t[1]-r[1]*h]),e.push(a);break}case"OffsetSame":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]+r[0]*h,n[1]+r[1]*h]),a.push([t[0]+r[0]*h,t[1]+r[1]*h]),e.push(a);break}case"CircleWithArc":{let t,r,h=this._cp2(i,3,0),a=this._cp3(i,h,.5,-1);if(s>=4)t=i[3],r=this._crossProduct(this._sub(t,h),this._sub(a,h))>0;else{t=h,r=this._crossProduct(this._sub(t,n),this._sub(a,n))>0;let e=24*this._geomUnitsPerPoint,i=this._sub(t,n);this._normalize(i,e);let s=Math.sqrt(2)/2;this._rotateDirect(i,s,r?s:-s),h=this._add(n,i)}let l=this._sub(h,n),o=Math.cos(Math.PI/18),u=Math.sin(Math.PI/18),c=[h];for(let t=1;t<=36;t++)this._rotateDirect(l,o,u),c.push(this._add(n,l));this._add90DegArc(c,h,t,a,r),(0,d.Aq)(c[c.length-8],1),e.push(c);break}case"DoubleJog":{let t,r=this._cp2(i,-3,1),h=this._cp3(i,r,-1,-.5);if(s>=4)t=i[3];else{let e=n;n=r,t=h;let i=this._dist(n,e),s=this._dist(t,e),a=30*this._geomUnitsPerPoint;.5*i<a&&(a=.5*i),.5*s<a&&(a=.5*s),r=this._mix(n,a/i,e,(i-a)/i),h=this._mix(t,a/s,e,(s-a)/s)}let a=this._mid(n,r),l=this._mid(t,h),o=this._dist(n,r),u=this._dist(h,t),c=Math.min(o,u)/8;c=Math.min(c,24*this._geomUnitsPerPoint);let _=Math.cos(Math.PI/4),p=this._sub(n,r);this._normalize(p,c),this._crossProduct(p,this._sub(t,r))>0?this._rotateDirect(p,_,-_):this._rotateDirect(p,_,_);let f=[];f.push(r),f.push(this._add(a,p)),f.push(this._sub(a,p)),f.push(n),e.push(f),p=this._sub(t,h),this._normalize(p,c),this._crossProduct(p,this._sub(n,h))<0?this._rotateDirect(p,_,_):this._rotateDirect(p,_,-_),f=[],f.push(h),f.push(this._add(l,p)),f.push(this._sub(l,p)),f.push(t),e.push(f);break}case"PerpendicularOffset":{let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=this._sub(s,t);this._crossProduct(r,this._sub(n,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);let h=[r[0]/8,r[1]/8],a=this._sub(this._mid(t,s),h);e.push([a,n]);break}case"LineExcludingLastSegment":{let t=this._arrowPath(i),s=[],n=t.length-2;for(;n--;)s.push(t[n]);e.push(s);break}case"MultivertexArrow":{let t=this._arrowPath(i),s=[];this._addArrow(s,t,!1),e.push(s);break}case"CrossedArrow":{let t=this._arrowPath(i),s=[];this._addArrow(s,t,!0),e.push(s);break}case"ChevronArrow":{let[t,s]=this._arrowLastSeg(i),r=10*this._geomUnitsPerPoint,h=this._sub(n,t),a=this._norm(h);this._normalize(h);let l=this._crossProduct(h,this._sub(s,t)),o=this._dotProduct(h,this._sub(s,t));o<.05*a?o=.05*a:o>.95*a-r&&(o=.95*a-r);let u=[t[0]+h[0]*o,t[1]+h[1]*o],c=this._leftPerp(h),_=[];_.push([u[0]+c[0]*l+h[0]*r,u[1]+c[1]*l+h[1]*r]),_.push(n),_.push([u[0]-c[0]*l+h[0]*r,u[1]-c[1]*l+h[1]*r]),e.push(_);break}case"ChevronArrowOffset":{let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=this._crossProduct(r,this._sub(s,t)),l=this._dotProduct(r,this._sub(s,t));l<.05*h?l=.05*h:l>.95*h&&(l=.95*h);let o=[t[0]+r[0]*l,t[1]+r[1]*l];this._leftPerpendicular(r);let u=[];u.push([o[0]+r[0]*a*.5,o[1]+r[1]*a*.5]),u.push(this._mid(o,n)),u.push([o[0]-r[0]*a*.5,o[1]-r[1]*a*.5]),e.push(u);break}case"PartialFirstSegment":{let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=this._dotProduct(r,this._sub(s,t));a<.05*h?a=.05*h:a>.95*h&&(a=.95*h);let l=[t[0]+r[0]*a,t[1]+r[1]*a];e.push([t,l]);break}case"Arch":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,1),r=this._sub(n,t),h=this._mix(s,1,r,.55),a=this._mix(s,1,r,-.55),l=[n];this._addBezier2(l,n,h,s,4),this._addBezier2(l,s,a,t,4),e.push(l);break}case"CurvedParallelTicks":{let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=this._sub(s,t);this._crossProduct(r,this._sub(n,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);let h=[r[0]/8,r[1]/8],a=this._sub(this._mid(t,s),h),l=this._sub(this._mix(t,.75,s,.25),h),o=this._sub(this._mix(t,.25,s,.75),h),u=[t];this._addBezier2(u,t,l,a,3),this._addBezier2(u,a,o,s,3),e.push(u);for(let t=0;t<8;t++){let i=u[2*t+1],s=[this._clone(i)];s.push(this._add(i,[r[0]/4,r[1]/4])),e.push(s)}break}case"Arc90Degrees":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,1),r=[t];this._add90DegArc(r,t,n,s),e.push(r);break}case"TipWithPerpendicularAndTicks":{let[t,s]=this._arrowLastSeg(i),r=10*this._geomUnitsPerPoint,h=this._sub(n,t),a=this._norm(h);this._normalize(h);let l=this._crossProduct(h,this._sub(s,t)),o=this._dotProduct(h,this._sub(s,t));o<.05*a?o=.05*a:o>.95*a-r&&(o=.95*a-r);let u=this._leftPerp(h),c=[n[0]-h[0]*r,n[1]-h[1]*r],_=.5*Math.max(a-o-r,r);l=Math.abs(l);let p=[];p.push([c[0]+u[0]*(l+_)-h[0]*_,c[1]+u[1]*(l+_)-h[1]*_]),p.push([c[0]+u[0]*l,c[1]+u[1]*l]),p.push([c[0]-u[0]*l,c[1]-u[1]*l]),p.push([c[0]-u[0]*(l+_)-h[0]*_,c[1]-u[1]*(l+_)-h[1]*_]),e.push(p),e.push([c,n]);break}case"ConcentricCircles":{let t=this._cp2(i,1,0),r=this._cp3(i,t,2,0),h=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),l=this._dist(t,n),o=[l,0],u=[];for(let t=0;t<=36;t++)u.push(this._add(n,o)),this._rotateDirect(o,h,a);if(e.push(u),s>=4){u=[];let t=i[3];l=this._dist(t,n),o=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,o)),0===t&&(u.push(this._add(n,o)),(0,d.Aq)(u[1],1)),this._rotateDirect(o,h,a);e.push(u)}u=[],l=this._dist(r,n),o=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,o)),this._rotateDirect(o,h,a);e.push(u);break}case"DoubleJogArrow":{n=this._arrowPath(i)[0];let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=Math.abs(this._crossProduct(r,this._sub(s,n))),l=Math.abs(this._dotProduct(r,this._sub(s,n)));l<.05*h?l=.05*h:l>.95*h&&(l=.95*h);let o=Math.max(a,l),u=this._leftPerp(r),c=[],_=[n[0]-r[0]*l*.5+u[0]*a*.5,n[1]-r[1]*l*.5+u[1]*a*.5];c.push([_[0],_[1]]),_[0]+=r[0]*o*.5+u[0]*o*.4,_[1]+=r[1]*o*.5+u[1]*o*.4,c.push([_[0],_[1]]),_[0]-=u[0]*o*.25,_[1]-=u[1]*o*.25,c.push([_[0],_[1]]),_[0]+=r[0]*o*.5+u[0]*o*.4,_[1]+=r[1]*o*.5+u[1]*o*.4,c.push([_[0],_[1]]),e.push(c),c=[],_[0]=n[0]-r[0]*l*.5-u[0]*a*.5,_[1]=n[1]-r[1]*l*.5-u[1]*a*.5,c.push([_[0],_[1]]),_[0]+=r[0]*o*.5-u[0]*o*.4,_[1]+=r[1]*o*.5-u[1]*o*.4,c.push([_[0],_[1]]),_[0]+=u[0]*o*.25,_[1]+=u[1]*o*.25,c.push([_[0],_[1]]),_[0]+=r[0]*o*.5-u[0]*o*.4,_[1]+=r[1]*o*.5-u[1]*o*.4,c.push([_[0],_[1]]),e.push(c);break}case"LinkedChevrons":{let t=this._cp2(i,-5,0),s=this._cp3(i,t,-.2,1),r=this._sub(n,t);this._normalize(r);let h=this._leftPerp(r),a=Math.abs(this._crossProduct(r,this._sub(s,t)));e.push([t,n]);let l=[];l.push([n[0]-r[0]*a+h[0]*a,n[1]-r[1]*a+h[1]*a]),l.push(n),l.push([n[0]-r[0]*a-h[0]*a,n[1]-r[1]*a-h[1]*a]),e.push(l),this._addDash(e,t,[-r[0]*a+h[0]*a,-r[1]*a+h[1]*a]),this._addDash(e,t,[-r[0]*a-h[0]*a,-r[1]*a-h[1]*a]);break}case"SegmentThenHalfCircle":{let t,r=this._cp2(i,2,0),h=this._cp3(i,r,1.5,0);t=s>=4?i[3]:this._cp3(i,r,1.25,-.5);let a=this._sub(r,n);this._normalize(a);let l=.5*this._dist(r,h),o=this._crossProduct(a,this._sub(t,n))>0,u=Math.cos(Math.PI/18),c=Math.sin(Math.PI/18);o&&(c=-c);let _=[n,r];a[0]*=l,a[1]*=l;let p=this._add(r,a);a[0]=-a[0],a[1]=-a[1];for(let t=1;t<=18;t++)this._rotateDirect(a,u,c),_.push(this._add(p,a));e.push(_);break}case"LineWithStraightTicks":{let t=this._cp2(i,-2,1),s=this._cp3(i,t,-1,-.5),r=this._sub(s,t);this._normalize(r);let h=this._dotProduct(r,this._sub(t,n)),a=this._dotProduct(r,this._sub(s,n)),l=[n];l.push([n[0]+r[0]*h,n[1]+r[1]*h]),l.push(t),e.push(l),l=[n],l.push([n[0]+r[0]*a,n[1]+r[1]*a]),l.push(s),e.push(l);break}case"DoubleCurve":{let t=this._cp2(i,-5,-1),s=this._cp3(i,t,2,0),r=Math.atan2(1,5),h=Math.cos(r),a=Math.sin(r),l=this._sub(t,n),o=this._dist(n,t);this._normalize(l),this._rotateDirect(l,h,-a);let u=[n];u.push([n[0]+l[0]*o*.5,n[1]+l[1]*o*.5]),(0,d.Aq)(u[1],1),u.push([n[0]+l[0]*o*.8,n[1]+l[1]*o*.8]),this._addBezier2(u,u[2],[n[0]+l[0]*o,n[1]+l[1]*o],t,3);let c=this._sub(s,t),_=this._dist(t,s);this._normalize(c),this._rotateDirect(c,h,-a),this._addBezier2(u,t,[s[0]-c[0]*_,s[1]-c[1]*_],[s[0]-c[0]*_*.8,s[1]-c[1]*_*.8],3),u.push(s),e.push(u);break}case"ParallelWithTicksByWidth":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r),h>0?(this._addAngledTicks(e,n,[n[0]+r[0]*h,n[1]+r[1]*h],t),this._addAngledTicks(e,t,[t[0]+r[0]*h,t[1]+r[1]*h],n)):(this._addAngledTicks(e,[n[0]+r[0]*h,n[1]+r[1]*h],n,t),this._addAngledTicks(e,[t[0]+r[0]*h,t[1]+r[1]*h],n,t));break}case"EnclosingRoundedRectangle":{let t=this._cp2(i,3,-2),e=[Math.min(n[0],t[0]),Math.max(n[1],t[1])],s=[Math.max(n[0],t[0]),Math.min(n[1],t[1])],r=s[0]-e[0],h=e[1]-s[1],a=Math.min(r,h)/10,l=[];l.push([e[0]+a+.75*(r-2*a),e[1]]),l.push([s[0]-a,e[1]]),this._add90DegArc(l,[s[0]-a,e[1]],[s[0],e[1]-a],[s[0],e[1]]),l.push([s[0],s[1]+a]),this._add90DegArc(l,[s[0],s[1]+a],[s[0]-a,s[1]],s),l.push([e[0]+a,s[1]]),this._add90DegArc(l,[e[0]+a,s[1]],[e[0],s[1]+a],[e[0],s[1]]),l.push([e[0],e[1]-a]),this._add90DegArc(l,[e[0],e[1]-a],[e[0]+a,e[1]],e),l.push([e[0]+a+.75*(r-2*a),e[1]]);break}case"ParallelOffsetByValue":{if(i.length<2||0===this._width)break;let t=this._offsetPath(i,.5*this._width);t&&e.push(t);let s=this._offsetPath(i,.5*-this._width);s&&e.push(s);break}default:e.push(i)}}return e}}class L{static{this.instance=null}static local(){return null===L.instance&&(L.instance=new L),L.instance}execute(t,e,i){return new G(t,e,i)}}class G extends d.rx{constructor(t,e,i){super(t,!0,!0),this._curveHelper=new g;let s=i?.geomUnitsPerPoint;this._beginCut=(void 0===e.beginCut?1:e.beginCut)*s,this._endCut=(void 0===e.endCut?1:e.endCut)*s,this._middleCut=(void 0===e.middleCut?0:e.middleCut)*s,this._invert=void 0!==e.invert&&e.invert,this._beginCut<0&&(this._beginCut=0),this._endCut<0&&(this._endCut=0),this._middleCut<0&&(this._middleCut=0)}processPath(t){let{_beginCut:e,_endCut:i,_middleCut:s}=this,n=t.pathLength(),r=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._invert){if(0!==e||0!==i||0!==s)if(e+i+s>=n)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else this._curveHelper.appendSubCurve(r,t,0,e),this._curveHelper.appendSubCurve(r,t,.5*(n-s),.5*(n+s)),this._curveHelper.appendSubCurve(r,t,n-i,i)}else if(0===e&&0===i&&0===s)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else e+i+s<n&&(0===s?this._curveHelper.appendSubCurve(r,t,e,n-i):(this._curveHelper.appendSubCurve(r,t,e,.5*(n-s)),this._curveHelper.appendSubCurve(r,t,.5*(n+s),n-i)));return 0===r.totalSize?null:r}}var N=i(45733);class R{constructor(){this._values=[],this.extPtGap=0,this.ctrlPtGap=0,this._length=0,this._currentValue=0}isEmpty(){return 0===this._values.length}size(){return this._values.length}init(t,e=!0){if(this._setEmpty(),!t||0===t.length)return!1;for(let i=0;i<t.length;i++){let s=Math.abs(t[i]);e&&s<1e-7&&(s=1e-7),this._values.push(s),this._length+=s}return 0!==this._length&&(this.ctrlPtGap=this.extPtGap=0,this._currentValue=-1,!0)}scale(t){let e=this._values?this._values.length:0;for(let i=0;i<e;++i)this._values[i]*=t;this._length*=t,this.extPtGap*=t,this.ctrlPtGap*=t}addValue(t){this._length+=t,this._values.push(t)}firstValue(){return this._values[0]}lastValue(){return this._values[this._values.length-1]}nextValue(){return this._currentValue++,this._currentValue===this._values.length&&(this._currentValue=0),this._values[this._currentValue]}reset(){this._currentValue=-1}length(){return this._length}_setEmpty(){this.extPtGap=this.ctrlPtGap=this._length=0,this._currentValue=-1,this._values.length=0}}class F{constructor(){this.pt=null,this.ca=0,this.sa=0}}class X{constructor(){this.reset()}reset(){this.segment=null,this.segmentLength=0,this.abscissa=0,this.isPathEnd=!1,this.isPartEnd=!1}isValid(){return null!==this.segment}copyTo(t){t.segment=this.segment,t.segmentLength=this.segmentLength,t.abscissa=this.abscissa,t.isPathEnd=this.isPathEnd,t.isPartEnd=this.isPartEnd}}class Y extends g{constructor(t=0,e=!1){super(t,e),this._tempPos=new X,this._tempPt=[0,0],this._tolerance=.03,this._currentPosition=new X}updateTolerance(t){this._tolerance=.03*t}init(t,e,i=!0){return i?(this._patternLength=e.length(),this._partExtPtGap=e.extPtGap,this._partCtrlPtGap=e.ctrlPtGap):(this._patternLength=0,this._partExtPtGap=0,this._partCtrlPtGap=0),this._currentPosition.reset(),this._partSegCount=0,this._pathCursor=t,this._seg=-1,this._setPosAtNextPart()}curPositionIsValid(){return this._currentPosition.isValid()}nextPosition(t,e=0){let i=new X;return!!this._nextPosition(t,i,null,e)&&(i.copyTo(this._currentPosition),!0)}curPointAndAngle(t){t.pt=this._getPoint(this._currentPosition);let[e,i]=this._getAngleCS(this._tempPt,this._currentPosition);t.ca=e,t.sa=i}nextPointAndAngle(t,e,i=0){let s=this._tempPos;if(!this._nextPosition(t,s,null,i))return!1;s.copyTo(this._currentPosition),e.pt=this._getPoint(s);let[n,r]=this._getAngleCS(this._tempPt,s);return e.ca=n,e.sa=r,!0}nextCurve(t){if(0===t)return null;let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");e.startPath(),e.nextPath();let i=new X;return this._nextPosition(t,i,e,1)?(i.copyTo(this._currentPosition),e):null}isPathEnd(){return this._currentPosition.isPathEnd}getPathEnd(){return this._currentPosition.segment[1]}getPt(t){return this._pathCursor.seekInPath(t),[this._pathCursor.x,this._pathCursor.y]}getSeg(t){return[this.getPt(t),this.getPt(t+1)]}_nextPosition(t,e,i,s){if(this._currentPosition.isPathEnd)return!1;let n=this._currentPosition.abscissa;for(this._currentPosition.segmentLength>0&&(n/=this._currentPosition.segmentLength),this._currentPosition.copyTo(e);e.abscissa+t*this._partLengthRatio>e.segmentLength+this._tolerance;){if(i){if(0===i.pathSize)if(0===n){let t=e.segment[0];i.pushXY(t[0],t[1])}else i.pushPoint(this.getSegCoord2D(e.segment,n));let t=e.segment[1];i.pushXY(t[0],t[1])}if(n=0,t-=(e.segmentLength-e.abscissa)/this._partLengthRatio,this._partSegCount)e.segment=this._nextSegment(),e.segmentLength=this.getSegLength(e.segment),e.abscissa=0,this._partSegCount--;else{if(!this._setPosAtNextPart())return 0!==s&&(e.segmentLength=this.getSegLength(e.segment),e.isPartEnd=!0,1===s?(e.abscissa=e.segmentLength,e.isPathEnd=!0):e.abscissa=e.segmentLength+t,!0);this._currentPosition.copyTo(e)}}if(e.abscissa+=t*this._partLengthRatio,i){0===i.pathSize&&(0===n?i.pushPoint(e.segment[0]):i.pushPoint(this.getSegCoord2D(e.segment,n)));let t=e.abscissa/e.segmentLength;1===t?i.pushPoint(e.segment[1]):i.pushPoint(this.getSegCoord2D(e.segment,t))}return this._partSegCount||Math.abs(e.abscissa-e.segmentLength)<this._tolerance&&(e.isPathEnd=this._partIsLast,e.isPartEnd=!0),!0}_getPoint(t){let e=t.segmentLength<=0?0:t.abscissa/t.segmentLength;return this.getSegCoord2D(this._currentPosition.segment,e)}_getAngleCS(t,e){let i=e.segmentLength<=0?0:e.abscissa/e.segmentLength;return this.getSegAngleCS(t,this._currentPosition.segment,i)}_setPosAtNextPart(){for(;this._partSegCount;)this._hasNextSegment()&&this._nextSegment(),this._partSegCount--;if(!this._hasNextSegment())return!1;for(this._partLength=0,this._partIsLast=!0,this._partSegCount=0;this._hasNextSegment();)if(this._partLength+=this.getSegLength(this._nextSegment()),this._partSegCount++,this._pathCursor.getControlPointAt(this._getEndPointIndex())){this._partIsLast=!this._hasNextSegment();break}let t=this._partSegCount;for(;t;)this._previousSegment(),--t;this._currentPosition.segment=this._nextSegment(),this._currentPosition.segmentLength=this.getSegLength(this._currentPosition.segment),this._currentPosition.abscissa=0,this._currentPosition.isPathEnd=this._currentPosition.isPartEnd=!1,--this._partSegCount;let e=this._getStartPointIndex();this._ctrlPtBegin=this._pathCursor.getControlPointAt(e);let i=e+this._partSegCount+1;if(i>=this._pathCursor.pathSize&&(i=0),this._ctrlPtEnd=this._pathCursor.getControlPointAt(i),this._patternLength>0){let t=this._ctrlPtBegin?this._partCtrlPtGap:this._partExtPtGap,e=this._ctrlPtEnd?this._partCtrlPtGap:this._partExtPtGap,i=Math.round((this._partLength-(t+e))/this._patternLength);i<=0&&(i=t+e>0?0:1),this._partLengthRatio=this._partLength/(t+e+i*this._patternLength),this._partLengthRatio<.01&&(this._partLengthRatio=1)}else this._partLengthRatio=1;return!0}_hasNextSegment(){return this._seg<this._pathCursor.pathSize-2}_previousSegment(){return this.getSeg(--this._seg)}_nextSegment(){return this.getSeg(++this._seg)}_getStartPointIndex(){return this._seg}_getEndPointIndex(){return this._seg+1}}class D{static{this.instance=null}static local(){return null===D.instance&&(D.instance=new D),D.instance}execute(t,e,i){return new W(t,e,i)}}class W extends d.rx{constructor(t,e,i){super(t,!0,!0),this._firstCurve=null;let s=i.geomUnitsPerPoint;this._walker=new Y,this._walker.updateTolerance(s),this._endings=e.lineDashEnding??"NoConstraint",this._customDashPos=-(e.offsetAlongLine??0)*s,this._offsetAtEnd=(e.customEndingOffset??0)*s;let n=(0,N.FH)(e).dashTemplate;n??=[];let r=(0,N.OI)(n);n=r.hidesLine?[-1]:r.dashTemplate,this._pattern=new R,this._pattern.init(n,!1),this._pattern.scale(s)}processPath(t){if(this._pattern.size()%2==1)return null;if(0===this._pattern.length()){this.iteratePath=!1;let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}if(!this.iteratePath){let e=!0;switch(this._endings){case"HalfPattern":case"HalfGap":default:this._pattern.extPtGap=0;break;case"FullPattern":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.firstValue());break;case"FullGap":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.lastValue());break;case"NoConstraint":this.isClosed||(e=!1);break;case"Custom":this.isClosed||(this._pattern.extPtGap=.5*this._offsetAtEnd)}let i=t.pathLength();if(this._pattern.isEmpty()||i<.1*this._pattern.length()){let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}if(!this._walker.init(t,this._pattern,e)){let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}}let e;if(this.iteratePath)e=this._pattern.nextValue();else{let t;switch(this._endings){case"HalfPattern":default:t=.5*this._pattern.firstValue();break;case"HalfGap":t=.5*-this._pattern.lastValue();break;case"FullGap":t=-this._pattern.lastValue();break;case"FullPattern":t=0;break;case"NoConstraint":case"Custom":t=-this._customDashPos}let i=t/this._pattern.length();i-=Math.floor(i),t=i*this._pattern.length(),this._pattern.reset(),e=this._pattern.nextValue();let s=!1;for(;t>=e;)t-=e,e=this._pattern.nextValue(),s=!s;e-=t,s?(this._walker.nextPosition(e),e=this._pattern.nextValue()):this.isClosed&&(this._firstCurve=this._walker.nextCurve(e),e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue())}0===e&&(e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue());let i=this._walker.nextCurve(e);if(i)if(this._walker.isPathEnd()){if(this.iteratePath=!1,this._firstCurve){for(this._firstCurve.nextPath();this._firstCurve.nextPoint();)i.pushXY(this._firstCurve.x,this._firstCurve.y);this._firstCurve=null}}else e=this._pattern.nextValue(),!this._walker.nextPosition(e)||this._walker.isPathEnd()?(this.iteratePath=!1,this._firstCurve&&=(i.pushCursor(this._firstCurve),null)):this.iteratePath=!0;else this.iteratePath=!1,i=this._firstCurve,this._firstCurve=null;return i?.reset(),i}}class B{static{this.instance=null}static local(){return null===B.instance&&(B.instance=new B),B.instance}execute(t,e,i){return new U(t,e,i)}}class U{constructor(t,e,i){this._inputGeometries=t,this._tileKey=i.tileKey,this._maxInflateSize=i.maxInflateSize*i.geomUnitsPerPoint,this._preventClipping=i.preventClipping,this._width=(void 0===e.width?2:e.width)*i.geomUnitsPerPoint,e.method,this._option=e.option??"Accurate"}next(){let t;for(;t=this._inputGeometries.next();){if("esriGeometryEnvelope"===t.geometryType&&this._width>0){let e=t.asJSON();return Math.min(e.xmax-e.xmin,e.ymax-e.ymin)-2*this._width<0?t:u.z.fromJSONCIM({paths:[[[e.xmin+this._width,e.ymin+this._width],[e.xmax-this._width,e.ymin+this._width],[e.xmax-this._width,e.ymax-this._width],[e.xmin+this._width,e.ymax-this._width],[e.xmin+this._width,e.ymin+this._width]],[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}if("esriGeometryPolygon"===t.geometryType){if(0===this._width)return t.clone();let{bufferExecute:e}=M.$Z.module,i=!this._preventClipping&&this._tileKey?(0,M.qc)(t,this._maxInflateSize,!0):t.clone();if(!i)continue;let s=e({...i.asJSON(),spatialReference:{wkid:P.A.WebMercator.wkid}},-this._width);if(s)for(let t of s.rings)if(t){i.startPath();for(let e of t.reverse())i.pushXY(e[0],i.yFactor*e[1])}return i}}return null}}var H=i(537);class V{static{this.instance=null}static local(){return null===V.instance&&(V.instance=new V),V.instance}execute(t,e,i){return new q(t,e,i)}}class q{constructor(t,e,i){this._inputGeometries=t,this._medhod=e.method}next(){let t=this._inputGeometries.next(),e=this._medhod;for(;null!=t;){if(t.totalSize>0)switch(e){case"RectangularBox":return J(t);case"ConvexHull":return this._constructConvexHull(t);default:return Z(t)}t=this._inputGeometries.next()}return null}_constructConvexHull(t){switch(t.geometryType){case"esriGeometryPolyline":case"esriGeometryPolygon":{let{convexHullExecute:e}=M.lX.module,i=e({...t.asJSON(),spatialReference:{wkid:P.A.WebMercator.wkid}});return i?u.z.fromJSONCIM(i):null}case"esriGeometryEnvelope":return t;default:return null}}}function J(t){let e=(0,H.z8)(t),i={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]};return u.z.fromJSONCIM(i)}function Z(t){switch(t.geometryType){case"esriGeometryPolyline":{let e=[];for(;t.nextPath();)$(t,e);return u.z.fromJSONCIM({rings:e})}case"esriGeometryPolygon":case"esriGeometryEnvelope":return t;default:return null}}function $(t,e){if(t.seekPathStart(),!t.nextPoint())return;let i=t.x,s=t.y,n=[[i,s]];for(e.push(n);t.nextPoint();)n.push([t.x,t.y]);n.push([i,s])}class j{static{this.instance=null}static local(){return null===j.instance&&(j.instance=new j),j.instance}execute(t,e,i){return new K(t,e,i)}}class K extends d.rx{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new g;let s=i.geomUnitsPerPoint;this._length=(void 0===e.length?20:e.length)*s,this._angle=void 0===e.angle?225:e.angle,this._position=void 0===e.position?50:e.position,this._length<0&&(this._length=-this._length),this._position<20&&(this._position=20),this._position>80&&(this._position=80),this._mirror=!1}processPath(t){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._curveHelper.isEmpty(t))return null;t.seekInPath(0);let i=t.x,s=t.y;t.seekInPath(t.pathSize-1);let n=t.x,r=t.y,h=[n-i,r-s];this._curveHelper.normalize(h);let a=i+(n-i)*this._position/100,l=s+(r-s)*this._position/100,o=Math.cos((90-this._angle)/180*Math.PI),c=Math.sin((90-this._angle)/180*Math.PI);this._mirror&&(c=-c),this._mirror=!this._mirror;let _=[a-this._length/2*o,l-this._length/2*c],p=[a+this._length/2*o,l+this._length/2*c];return e.pushPath([[i,s],_,p,[n,r]]),e}}class Q{static{this.instance=null}static local(){return null===Q.instance&&(Q.instance=new Q),Q.instance}execute(t,e,i){return new tt(t,e,i)}}class tt{constructor(t,e,i){this._inputGeometries=t;let s=i.geomUnitsPerPoint;this._offsetX=void 0===e.offsetX?0:e.offsetX*s,this._offsetY=void 0===e.offsetY?0:e.offsetY*s}next(){let t=this._inputGeometries.next();for(;t;){if(t.totalSize>0)return this._move(t.clone(),this._offsetX,this._offsetY);t=this._inputGeometries.next()}return null}_move(t,e,i){for(;t.nextPath();)for(;t.nextPoint();)t.x+=e,t.y+=i;return t.reset(),t}}var et=i(60408);class it{static{this.instance=null}static local(){return null===it.instance&&(it.instance=new it),it.instance}execute(t,e,i){return new st(t,e,i)}}class st{constructor(t,e,i){let s=i.geomUnitsPerPoint,n=i.maxInflateSize;this._preventClipping=i.preventClipping,this._inputGeometries=t,this._tileKey=i.tileKey,this._curveHelper=new g,this._offset=(e.offset??1)*s,this._method=e.method??"Square",this._maxInflateSize=Math.max(Math.abs(n*s),10),this._offsetFlattenError=.03*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._offset)return t.clone();if("esriGeometryEnvelope"===t.geometryType){if("Rounded"===this._method&&this._offset>0){let e=(0,m.A)(t),i=this._curveHelper.offset(e,-this._offset,this._method,4,this._offsetFlattenError);if(i){let e=u.z.createEmptyOptimizedCIM(t.geometryType);return e.pushPath(i),e}return null}let e=t.asJSON();if((0,et.ZC)(e)&&Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._offset>0)return u.z.fromJSONCIM({xmin:e.xmin-this._offset,xmax:e.xmax+this._offset,ymin:e.ymin-this._offset,ymax:e.ymax+this._offset})}let e=!this._preventClipping&&this._tileKey?(0,M.qc)(t,this._maxInflateSize,!0):t.clone();if(!e)continue;let{simplifyOGCExecute:i}=M.xR.module,{offsetExecute:s}=M.mO.module,{graphicBufferExecuteMany:n}=M.hd.module,r=i({...e.asJSON(),spatialReference:{wkid:P.A.WebMercator.wkid}});if(!r)continue;let h,a=nt(this._method);return"esriGeometryPolygon"===t.geometryType?("square"===a&&(a="bevel"),h=n([r],[this._offset],a,"round")[0]):h=s(r,-this._offset,{joins:a,flattenError:this._offsetFlattenError,miterLimit:4}),h?u.z.fromJSONCIM(h):null}return null}}function nt(t){switch(t){case"Rounded":return"round";case"Bevelled":return"bevel";case"Mitered":return"miter";case"Square":return"square"}}var rt=i(12359);class ht{static{this.instance=null}static local(){return null===ht.instance&&(ht.instance=new ht),ht.instance}execute(t,e,i){return new at(t,e,i)}}class at{constructor(t,e,i){let s=i.geomUnitsPerPoint;this._inputGeometries=t,this._executionContext=i,this._length=(void 0===e.length?w.D.CIMGeometricEffectRadial.length:e.length)*s,this._angle=void 0===e.angle?w.D.CIMGeometricEffectRadial.angle:e.angle*Math.PI/180,this._lx=Math.cos(this._angle)*this._length,this._ly=Math.sin(this._angle)*this._length}next(){let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return t.nextPath()&&t.nextPoint()&&(this._executionContext.effectOrigin=[t.x,t.y],e.pushPath([[t.x,t.y],[t.x+this._lx,t.y+this._ly]])),e}if("esriGeometryPolygon"===t.geometryType){let e=(0,rt.IK)(t);if(!e)return null;let i=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return this._executionContext.effectOrigin=[e[0],e[1]],i.pushPath([[e[0],e[1]],[e[0]+this._lx,e[1]+this._ly]]),i}t=this._inputGeometries.next()}return null}}class lt{static{this.instance=null}static local(){return null===lt.instance&&(lt.instance=new lt),lt.instance}execute(t,e,i){return new ot(t,e,i)}}class ot{constructor(t,e,i){this._inputGeometries=t,this._reverse=void 0===e.reverse||e.reverse}next(){let t=this._inputGeometries.next();for(;t;){if(!this._reverse)return t;if("esriGeometryPolyline"===t.geometryType)return ut(t.clone());t=this._inputGeometries.next()}return null}}function ut(t){for(;t.nextPath();)for(let e=0;e<t.pathSize/2;e++){t.seekInPath(e);let i=t.x,s=t.y;t.seekInPath(t.pathSize-e-1);let n=t.x,r=t.y;t.x=i,t.y=s,t.seekInPath(e),t.x=n,t.y=r}return t.reset(),t}class ct{static{this.instance=null}static local(){return null===ct.instance&&(ct.instance=new ct),ct.instance}execute(t,e,i){return new _t(t,e,i)}}class _t{constructor(t,e,i){this._inputGeometries=t,this._rotateAngle=void 0===e.angle?0:e.angle*Math.PI/180}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._rotateAngle||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){let e=(0,H.z8)(t),i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;return t.reset(),this._rotate(t.clone(),i,s)}t=this._inputGeometries.next()}return null}_rotate(t,e,i){let s=Math.cos(this._rotateAngle),n=Math.sin(this._rotateAngle);for(;t.nextPath();)for(;t.nextPoint();){let r=t.x-e,h=t.y-i;t.x=e+r*s-h*n,t.y=i+r*n+h*s}return t.reset(),t}}class pt{static{this.instance=null}static local(){return null===pt.instance&&(pt.instance=new pt),pt.instance}execute(t,e,i){return new ft(t,e,i)}}class ft{constructor(t,e,i){this._inputGeometries=t,this._xFactor=void 0===e.xScaleFactor?1.15:e.xScaleFactor,this._yFactor=void 0===e.yScaleFactor?1.15:e.yScaleFactor}next(){let t=this._inputGeometries.next();if(t){if(1===this._xFactor&&1===this._yFactor||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){let e=(0,H.z8)(t),i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;return t.reset(),this._scaleCursor(t.clone(),i,s)}}return null}_scaleCursor(t,e,i){for(;t.nextPath();)for(;t.nextPoint();)t.x=e+(t.x-e)*this._xFactor,t.y=i+(t.y-i)*this._yFactor;return t.reset(),t}}class mt{constructor(){this._polyline=[]}beginPath(t){this._polyline.push([t])}lineTo(t){if(0===this._polyline.length)throw Error("No path started. Call beginPath first.");this._polyline[this._polyline.length-1].push(t)}getPointCount(){return this._polyline.reduce((t,e)=>t+e.length,0)}addSegment(t,e,i){i&&this.beginPath(t),this.lineTo(e)}getXY(t){let e=0;for(let i of this._polyline){if(t<e+i.length)return i[t-e];e+=i.length}return null}getGeometry(){return this._polyline}}class dt{static{this.instance=null}static local(){return null===dt.instance&&(dt.instance=new dt),dt.instance}execute(t,e,i){return new gt(t,e,i)}}class gt extends d.rx{constructor(t,e,i){super(t,!1,!0),this._suppress=void 0!==e.suppress&&e.suppress,this._invert=void 0!==e.invert&&e.invert}processPath(t){if(t.totalSize<=0)return null;if(!this._suppress){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.nextPoint();)e.pushXY(t.x,t.y);return e}let e=[],i=Array(t.pathSize),s=0;for(t.seekPathStart();t.nextPoint();)i[s++]=t.getControlPoint(),e.push([t.x,t.y]);let n=!0,r=!0,h=!1,a=!this._invert;s=0;let l=new mt,o=e[0];for(;s<e.length-1;){let t=e[s+1],u=i[s],c=i[s+1];s++,r&&=(a=u||c?this._invert:!this._invert,!1),a?(l.addSegment(o,t,n),n=!1):h=!0,o=t,c&&(a?(a=!1,n=!0):a=!0)}let c=l.getGeometry();if(0===c.length)return null;if(!h&&e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){let t=c[c.length-1];return(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1])&&t.push([t[0][0],t[0][1]]),u.z.fromJSONCIM({paths:c})}let _=c[c.length-1];return l.getPointCount()>1&&"esriGeometryPolygon"===t.geometryType&&_[0][0]===_[_.length-1][0]&&_[0][1]===_[_.length-1][1]&&c.length>1&&(c[c.length-1].push(...c[0]),c.splice(0,1)),u.z.fromJSONCIM({paths:c})}}var xt=i(49186),yt=i(53966),Pt=i(6774);const Mt=()=>yt.A.getLogger("esri.symbols.cim.effects.EffectTaperedPolygon");class bt{static{this.instance=null}static local(){return null===bt.instance&&(bt.instance=new bt),bt.instance}execute(t,e,i){return new Ct(t,e,i)}}class Ct extends d.rx{constructor(t,e,i){super(t,!1,!0),this._slopeS=0,this._slopeC=1,this._lastTangent1=new Pt.bR(NaN,NaN),this._lastWidth=0;let s=i.geomUnitsPerPoint;this._geomUnitsPerPoint=s,this._halfFromWidth=Math.abs(void 0===e.fromWidth?0:e.fromWidth)*s*.5,this._halfToWidth=Math.abs(void 0===e.toWidth?1:e.toWidth)*s*.5,this._originalLength=(void 0===e.length?0:e.length)*s,this._length=0}processPath(t){if(t.totalSize<=0)return null;if(this._halfFromWidth<=0&&this._halfToWidth<=0){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.prevPoint();)e.pushXY(t.x,t.y);for(t.seekPathStart();t.nextPoint();)e.pushXY(t.x,t.y);return e}let e=t.getCurrentPath().asJSON(),{generalizeExecute:i}=M.NS.module,s=i(e,.25*this._geomUnitsPerPoint,{removeDegenerateParts:!0}),n=null==s?null:(0,et.Bi)(s)?s.rings:(0,et.Rg)(s)?s.paths:null;if(!n)return Mt().error(new xt.A("mapview-bad-resource","Unable to process geometry")),null;let{lengthExecute:r}=M.Xs.module,h=r(s);if((0===this._originalLength||this._originalLength>h)&&h>0){this._length=h;let t=(this._halfToWidth-this._halfFromWidth)/this._length;if(Math.abs(t)<1){let e=t*t;this._slopeC=Math.sqrt(1/(1+e)),this._slopeS=Math.sqrt(e/(1+e)),t<0&&(this._slopeS=-this._slopeS)}else this._slopeC=this._slopeS=.7071}else this._length=this._originalLength,this._slopeC=1,this._slopeS=0;let a=[];for(let t of n){let e=new mt,i=new mt,s=0;this._setFromOffset(t.slice(0,2),e,i);for(let n=0,r=3;r<=t.length;++n,++r)s=this._setOffset(t.slice(n,r),s,e,i);this._setToOffset(t.slice(-2),s,e,i);let[n]=e.getGeometry(),[r]=i.getGeometry();a.push([...n,...r.reverse()])}let l={rings:a,spatialReference:{wkid:P.A.WebMercator.wkid}},{simplifyExecute:o}=M.yM.module,c=o(l);return u.z.fromJSONCIM(c)}_setFromOffset([[t,e],[i,s]],n,r){let h=this._halfFromWidth,a=new Pt.bR(i-t,s-e).normalize().scale(h);n.beginPath([t-a.y,e+a.x]),r.beginPath([t+a.y,e-a.x])}_setToOffset([[t,e],[i,s]],n,r,h){let a;a=(n+=Math.sqrt((i-t)**2+(s-e)**2))>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*n/this._length;let l=new Pt.bR(i-t,s-e).normalize().scale(a);r.lineTo([i-l.y,s+l.x]),h.lineTo([i+l.y,s-l.x])}_setOffset([[t,e],[i,s],[n,r]],h,a,l){let o,u=Math.sqrt((i-t)**2+(s-e)**2);o=h+u>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*(h+u)/this._length,h+=u;let c=new Pt.bR(i,s),_=new Pt.bR(i-t,s-e).normalize(),p=new Pt.bR(n-i,r-s).normalize(),f=Pt.bR.sub(p,_),m=a.getPointCount(),d=l.getPointCount();_.leftPerpendicular(),p.leftPerpendicular();let g=_.x*p.x+_.y*p.y;if(g>.99){let t=Pt.bR.add(_,p).scale(o/2),e=t.clone().rotate(this._slopeC,this._slopeS);a.lineTo([c.x+e.x,c.y+e.y]);let i=t.rotateReverse(this._slopeC,this._slopeS);l.lineTo([c.x-i.x,c.y-i.y])}else{let i=_.x*p.y-_.y*p.x;if(f.scale(1/i),i<0){f.scale(-o).rotateReverse(this._slopeC,this._slopeS);let t=l.getXY(d-1);t||Mt().error(new xt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let e=Pt.bR.add(c,f).sub(Pt.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){let t=_.clone().scale(-o).rotateReverse(this._slopeC,this._slopeS),e=p.clone().scale(-o).rotateReverse(this._slopeC,this._slopeS);l.lineTo([c.x+t.x,c.y+t.y]),l.lineTo([c.x,c.y]),l.lineTo([c.x+e.x,c.y+e.y])}else l.lineTo([c.x+f.x,c.y+f.y])}else{f.scale(o).rotate(this._slopeC,this._slopeS);let t=a.getXY(m-1);t||Mt().error(new xt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let e=Pt.bR.add(c,f).sub(Pt.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){let t=_.clone().scale(o).rotate(this._slopeC,this._slopeS),e=p.clone().scale(o).rotate(this._slopeC,this._slopeS);a.lineTo([c.x+t.x,c.y+t.y]),a.lineTo([c.x,c.y]),a.lineTo([c.x+e.x,c.y+e.y])}else a.lineTo([c.x+f.x,c.y+f.y])}let s=Math.acos(g),n=1;if(o>.25){let t=2*Math.acos(1-.25/o);t<s&&(n=Math.round(s/t))}let r=Math.cos(s/n),h=Math.sin(s/n),u=_.clone();if(i<0){u.rotate(this._slopeC,this._slopeS);let i=a.getXY(m-1);i||Mt().error(new xt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let s=Pt.bR.add(c,u.clone().scale(this._lastWidth)),n=Pt.bR.sub(s,Pt.bR.fromArray(i)),r=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&r>0){let i=new Pt.bR(t,e),s=this._lastTangent1.clone().scale(this._lastWidth);s.rotate(this._slopeC,this._slopeS);let n=_.clone().scale(this._lastWidth);n.rotate(this._slopeC,this._slopeS),a.lineTo([i.x+s.x,i.y+s.y]),a.lineTo([i.x,i.y]),a.lineTo([i.x+n.x,i.y+n.y])}}else{u.scale(-1).rotateReverse(this._slopeC,this._slopeS);let i=l.getXY(d-1);i||Mt().error(new xt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let s=Pt.bR.add(c,u.clone().scale(this._lastWidth)),n=Pt.bR.sub(s,Pt.bR.fromArray(i)),r=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&r>0){let i=new Pt.bR(t,e),s=this._lastTangent1.clone().scale(-this._lastWidth);s.rotateReverse(this._slopeC,this._slopeS);let n=_.clone().scale(-this._lastWidth);n.rotateReverse(this._slopeC,this._slopeS),l.lineTo([i.x+s.x,i.y+s.y]),l.lineTo([i.x,i.y]),l.lineTo([i.x+n.x,i.y+n.y])}}u.scale(o);for(let t=0;t<=n;t++)i<0?(a.lineTo([c.x+u.x,c.y+u.y]),u.rotateReverse(r,h)):(l.lineTo([c.x+u.x,c.y+u.y]),u.rotate(r,h))}return this._lastTangent1.setCoords(_.x,_.y),this._lastWidth=o,h}}class vt{static{this.instance=null}static local(){return null===vt.instance&&(vt.instance=new vt),vt.instance}execute(t,e,i){return new wt(t,e,i)}}class wt{constructor(t,e,i){this._inputGeometries=t;let s=i.geomUnitsPerPoint;this._height=(void 0===e.amplitude?2:e.amplitude)*s,this._period=(void 0===e.period?3:e.period)*s,this._style=e.waveform??"Sinus",this._height<=0&&(this._height=Math.abs(this._height)),this._period<=0&&(this._period=Math.abs(this._period)),this._pattern=new R,this._pattern.addValue(this._period),this._pattern.addValue(this._period),this._walker=new Y,this._walker.updateTolerance(s)}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._height||0===this._period)return t;let e=this._processGeom(t);if(e)return e;t=this._inputGeometries.next()}return null}_processGeom(t){let e=u.z.createEmptyOptimizedCIM(t.geometryType);for(;t.nextPath();){e.startPath();let i=t.pathLength();if(this._walker.init(t,this._pattern))switch(this._style){case"Sinus":default:this._constructCurve(e,i,!1);break;case"Square":this._constructSquare(e,i);break;case"Triangle":this._constructTriangle(e,i);break;case"Random":this._constructCurve(e,i,!0)}else for(;t.nextPoint();)e.pushXY(t.x,t.y)}return e}_constructCurve(t,e,i){let s=Math.round(e/this._period);0===s&&(s=1);let n=16*s+1,r=e/s,h=this._period/16,a=1/n,l=2*Math.PI*e/r,o=2*Math.PI*Math.random(),u=2*Math.PI*Math.random(),c=2*Math.PI*Math.random(),_=.75-Math.random()/2,p=.75-Math.random()/2,f=new F;this._walker.curPointAndAngle(f),t.pushPoint(f.pt);let m=0;for(;;){if(!this._walker.nextPointAndAngle(h,f)){t.pushPoint(this._walker.getPathEnd());break}{let e,s=m;if(m+=a,i){let t=this._height/2*(1+.3*Math.sin(_*l*s+o));e=t*Math.sin(l*s+u),e+=t*Math.sin(p*l*s+c),e/=2}else e=.5*this._height*Math.sin(.5*l*s);t.pushXY(f.pt[0]-e*f.sa,f.pt[1]+e*f.ca)}}}_constructSquare(t,e){Math.round(e/this._period);let i=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){let s=new F;this._walker.curPointAndAngle(s);let n=new F;if(this._walker.nextPointAndAngle(this._period,n)){let r=new F;this._walker.nextPointAndAngle(this._period,r)&&(i?(t.pushPoint(s.pt),i=!1):t.pushPoint(s.pt),t.pushXY(s.pt[0]-this._height/2*s.sa,s.pt[1]+this._height/2*s.ca),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(n.pt[0]+this._height/2*n.sa,n.pt[1]-this._height/2*n.ca),t.pushXY(r.pt[0]+this._height/2*r.sa,r.pt[1]-this._height/2*r.ca),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}_constructTriangle(t,e){Math.round(e/this._period);let i=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){let s=new F;this._walker.curPointAndAngle(s);let n=new F;if(this._walker.nextPointAndAngle(this._period/2,n)){let r=new F;this._walker.nextPointAndAngle(this._period,r)&&(this._walker.nextPosition(this._period/2)&&(i?(t.pushPoint(s.pt),i=!1):t.pushPoint(s.pt),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(r.pt[0]+this._height/2*r.sa,r.pt[1]-this._height/2*r.ca)),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}}class St{static{this.instance=null}static local(){return null===St.instance&&(St.instance=new St),St.instance}execute(t,e,i){return new It(t,e,i)}}class It extends d.pC{constructor(t,e,i){super(t),this._geometryWalker=new Y,this._geometryWalker.updateTolerance(i),this._angleToLine=e.angleToLine??!0,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset?e.offset:0)*i,this._originalEndings=e.endings??"WithHalfGap",this._offsetAtEnd=(e.customEndingOffset?e.customEndingOffset:0)*i,this._position=-(e.offsetAlongLine?e.offsetAlongLine:0)*i,this._pattern=new R,this._pattern.init(e.placementTemplate),this._pattern.scale(i),this._endings=this._originalEndings}processPath(t){if(this._pattern.isEmpty())return null;let e;if(this.iteratePath)e=this._pattern.nextValue();else{this._endings="WithFullGap"===this._originalEndings&&this.isClosed?"WithMarkers":this._originalEndings,this._pattern.extPtGap=0;let i,s=!0;switch(this._endings){case"NoConstraint":i=-this._position,i=this._adjustPosition(i),s=!1;break;case"WithHalfGap":default:i=-this._pattern.lastValue()/2;break;case"WithFullGap":i=-this._pattern.lastValue(),this._pattern.extPtGap=this._pattern.lastValue();break;case"WithMarkers":i=0;break;case"Custom":i=-this._position,i=this._adjustPosition(i),this._pattern.extPtGap=.5*this._offsetAtEnd}if(!this._geometryWalker.init(t,this._pattern,s))return null;this._pattern.reset();let n=0;for(;i>n;)i-=n,n=this._pattern.nextValue();n-=i,e=n,this.iteratePath=!0}let i=new F;return!this._geometryWalker.nextPointAndAngle(e,i)||"WithFullGap"===this._endings&&this._geometryWalker.isPathEnd()?(this.iteratePath=!1,null):"WithMarkers"===this._endings&&this._geometryWalker.isPathEnd()&&(this.iteratePath=!1,this.isClosed)?null:(this.internalPlacement.setTranslate(i.pt[0]-this._offset*i.sa,i.pt[1]+this._offset*i.ca),this._angleToLine&&this.internalPlacement.setRotateCS(i.ca,i.sa),this.internalPlacement)}_adjustPosition(t){let e=t/this._pattern.length();return e-=Math.floor(e),e*this._pattern.length()}}class zt{static{this.instance=null}static local(){return null===zt.instance&&(zt.instance=new zt),zt.instance}execute(t,e,i){return new kt(t,e,i)}}class kt extends d.pC{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new g,this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._type=e.extremityPlacement??"Both",this._position=void 0===e.offsetAlongLine?0:e.offsetAlongLine*i,this._beginProcessed=!1}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){let e;switch(this._type){case"Both":default:this._beginProcessed?(e=this._atExtremities(t,this._position,!1),this._beginProcessed=!1,this.iterateMultiPath=!1,this.iteratePath=!1):(e=this._atExtremities(t,this._position,!0),this._beginProcessed=!0,this.iterateMultiPath=!0,this.iteratePath=!0);break;case"JustBegin":e=this._atExtremities(t,this._position,!0);break;case"JustEnd":e=this._atExtremities(t,this._position,!1);case"None":}return e}_atExtremities(t,e,i){if(this._placePerPart||(i?t.seekPath(0):t.seekPath(t.totalSize-1)),i||t.seekPathEnd(),i?t.nextPoint():t.prevPoint()){let s=0,[n,r]=[0,0],[h,a]=[t.x,t.y],l=[0,0];for(;i?t.nextPoint():t.prevPoint();){n=h,r=a,h=t.x,a=t.y;let i=this._curveHelper.getLength(n,r,h,a);if(s+i>e){let t=(e-s)/i,[o,u]=this._curveHelper.getAngleCS(l,n,r,h,a,t),c=this._curveHelper.getCoord2D(n,r,h,a,t);return this.internalPlacement.setTranslate(c[0]-this._offset*u,c[1]+this._offset*o),this._angleToLine&&this.internalPlacement.setRotateCS(-o,-u),this.internalPlacement}s+=i}}return null}}const At=.001;class Tt{static{this.instance=null}static local(){return null===Tt.instance&&(Tt.instance=new Tt),Tt.instance}execute(t,e,i){return new Et(t,e,i)}}class Et extends d.pC{constructor(t,e,i){super(t),this._segmentIterator=null,this._segCount=0,this._firstSeg=!0,this._seg=null,this._ms=[],this._from=0,this._to=0,this._pt=null,this._walker=new Y,this._walker.updateTolerance(i),this._placePerPart=e.placePerPart??!1,this._angleToLine=e.angleToLine??!1,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset??0)*i,this._interval=e.interval??0,this._interval<=0&&(this._interval=.01),this._skipRate=e.skipMarkerRate??0,this._skipRate<=1&&(this._skipRate=0),this._placeAtExtremities=e.placeAtExtremities??!1}processPath(t){if(!this.iteratePath){let{fromGeometry:e}=M.vZ.module,i=e(t.getCurrentPath().asJSON()).getGeometry(),s=i.getPathStart(0);this._segmentIterator=i.querySegmentIteratorAtVertex(s),this._segCount=i.getSegmentCountPath(0),this._firstSeg=!0,this.iteratePath=!0,this._pt=i.getXY(0).clone()}for(;0===this._ms.length&&this._segmentIterator?.hasNextSegment();){--this._segCount,this._seg=this._segmentIterator.nextSegment(),this._from=this._seg.getStartAttributeAsDbl(2,0),this._to=this._seg.getEndAttributeAsDbl(2,0);let e=!isNaN(this._from),i=!isNaN(this._to);e&&(this._from=Math.round(this._from/At)*At,Math.abs(this._from)<At&&(this._from=0)),i&&(this._to=Math.round(this._to/At)*At,Math.abs(this._to)<At&&(this._to=0));let s=e?Math.floor(this._from/this._interval):0,n=i?Math.floor(this._to/this._interval):0;if(e&&(this._placeAtExtremities||!this._firstSeg||!this._placePerPart&&t.pathIndex>0)&&Math.abs(s*this._interval-this._from)<At&&(!this._skipRate||s%this._skipRate)&&this._ms.push(this._from),this._firstSeg=!1,e&&i&&!(Math.abs(this._from-this._to)<At))if(this._from<=this._to){s*this._interval<this._from+At&&++s,n*this._interval>this._to-At&&--n;for(let t=s;t<=n;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}else{s*this._interval>this._from-At&&--s,n*this._interval<this._to+At&&++n;for(let t=n;t<=s;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}}let e=0;if(0===this._ms.length){if(this.iteratePath=!1,!this._segCount&&this._placeAtExtremities&&!isNaN(this._to)&&(this._placePerPart||t.pathIndex===t.totalSize-1)){let t=Math.floor(this._to/this._interval);Math.abs(t*this._interval-this._to)<At&&(!this._skipRate||t%this._skipRate)&&(this._ms.push(this._to),e=1)}if(0===this._ms.length)return null}let i=this._ms.pop(),s=isNaN(this._from)||isNaN(this._to)||Math.abs(this._from-this._to)<At?e:(i-this._from)/(this._to-this._from);this._seg.queryCoord2D(s,this._pt);let{x:n,y:r}=this._seg.getTangent(s).normalize();return this.internalPlacement.setTranslate(this._pt.x-this._offset*r,this._pt.y+this._offset*n),this._angleToLine&&(this._keepUpright&&n<0&&(n=-n,r=-r),this.internalPlacement.setRotateCS(n,r)),this.internalPlacement.setMeasure(i),this.internalPlacement}}class Ot{static{this.instance=null}static local(){return null===Ot.instance&&(Ot.instance=new Ot),Ot.instance}execute(t,e,i){return new Lt(t,e,i)}}class Lt extends d.pC{constructor(t,e,i){super(t),this._walker=new Y,this._walker.updateTolerance(i),this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._beginGap=void 0===e.beginPosition?0:e.beginPosition*i,this._endGap=void 0===e.endPosition?0:e.endPosition*i,this._flipFirst=void 0===e.flipFirst||e.flipFirst,this._pattern=new R,this._pattern.init(e.positionArray,!1),this._subPathLen=0,this._totalPathLen=0,this._posCount=this._pattern.size(),this._pathIndexes=[],this._pathLengths=[],this._pathStarts=[],this._posIndex=0,this._positions=[],this._isFirst=!0,this._prevPos=0}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){return this._pattern.isEmpty()?null:this._placePerPart?this._processPathPerPart(t):this._processMultiPart(t)}_processPathPerPart(t){let e;if(this.iteratePath){let t=this._pattern.nextValue()*this._subPathLen,i=this._beginGap+t;e=i-this._prevPos,this._prevPos=i}else{if(this._posCount=this._pattern.size(),this._isFirst=!0,this._prevPos=0,this._subPathLen=t.pathLength()-this._beginGap-this._endGap,this._subPathLen<0)return this.iteratePath=!1,null;if(!this._walker.init(t,this._pattern,!1))return null;this._pattern.reset();let i=this._pattern.nextValue()*this._subPathLen,s=this._beginGap+i;e=s-this._prevPos,this._prevPos=s,this.iteratePath=!0}let i=new F;return this._walker.nextPointAndAngle(e,i,1)?(this._posCount--,0===this._posCount&&(this.iteratePath=!1),this._setPlacement(i)):(this.iteratePath=!1,null)}_processMultiPart(t){if(!this.iteratePath){if(!this._initializeMultiPart(t))return null;this.iteratePath=!0}if(this._posIndex>=this._positions.length)return this.iteratePath=!1,null;let e=this._getPositionAtDistance(t,this._positions[this._posIndex]);if(null==e)return this.iterateMultiPath=!1,this.iteratePath=!1,null;this._posIndex++;let i=this._posIndex<this._positions.length;return this.iterateMultiPath=i,this.iteratePath=i,this._setPlacement(e)}_initializeMultiPart(t){this._pathIndexes.length=0,this._pathLengths.length=0,this._pathStarts.length=0,this._positions.length=0,this._totalPathLen=0,this._posIndex=0,this._isFirst=!0;for(let e=0;e<t.totalSize;e++){if(!t.seekPath(e))continue;let i=t.pathLength();i<=0||(this._pathIndexes.push(e),this._pathStarts.push(this._totalPathLen),this._pathLengths.push(i),this._totalPathLen+=i)}if(this._subPathLen=this._totalPathLen-this._beginGap-this._endGap,this._subPathLen<0||!this._pathIndexes.length)return!1;this._pattern.reset();for(let t=0;t<this._pattern.size();t++)this._positions.push(this._beginGap+this._pattern.nextValue()*this._subPathLen);return this._positions.length>0}_getPositionAtDistance(t,e){let i=Math.max(0,Math.min(e,this._totalPathLen)),s=this._pathIndexes.length-1;for(let t=0;t<this._pathIndexes.length-1;t++)if(i<=this._pathStarts[t]+this._pathLengths[t]){s=t;break}if(!t.seekPath(this._pathIndexes[s])||!this._walker.init(t,this._pattern,!1))return null;let n=new F,r=Math.max(0,Math.min(i-this._pathStarts[s],this._pathLengths[s]));return this._walker.nextPointAndAngle(r,n,1)?n:null}_setPlacement(t){this.internalPlacement.setTranslate(t.pt[0]-this._offset*t.sa,t.pt[1]+this._offset*t.ca);let e,i,s=this._isFirst&&this._flipFirst;return this._angleToLine?(e=t.ca,i=t.sa):(e=1,i=0),s&&(e=-e,i=-i),this.internalPlacement.setRotateCS(e,i),this._isFirst=!1,this.internalPlacement}}var Gt=i(87811),Nt=i(98939);const Rt=1e-6;class Ft{static{this.instance=null}static local(){return null===Ft.instance&&(Ft.instance=new Ft),Ft.instance}execute(t,e,i,s){return new Xt(t,e,i,s)}}class Xt{constructor(t,e,i,s){if(this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,this._currentX=0,this._currentY=0,this._accelerationMap=null,this._testInsidePolygon=!1,this._verticalSubdivision=!0,this._stepX=Math.abs(e.stepX??16)*i,this._stepY=Math.abs(e.stepY??16)*i,this._stepX=Math.round(128*this._stepX)/128,this._stepY=Math.round(128*this._stepY)/128,0!==this._stepX&&0!==this._stepY){if(this._gridType=e.gridType??"Fixed","Random"===this._gridType){let t=e.seed??13;this._randomLCG=new Gt.A(1*t),this._randomness=(e.randomness??100)/100,this._gridAngle=0,this._shiftOddRows=!1,this._cosAngle=1,this._sinAngle=0,this._offsetX=0,this._offsetY=0,this._buildRandomValues()}else{if(this._randomness=0,this._gridAngle=e.gridAngle??0,this._shiftOddRows=e.shiftOddRows??!1,this._offsetX=(e.offsetX??0)*i,this._offsetY=(e.offsetY??0)*i,this._cosAngle=Math.cos(this._gridAngle/180*Math.PI),this._sinAngle=-Math.sin(this._gridAngle/180*Math.PI),this._stepX)if(this._offsetX<0)for(;this._offsetX<-.5*this._stepX;)this._offsetX+=this._stepX;else for(;this._offsetX>=.5*this._stepX;)this._offsetX-=this._stepX;if(this._stepY)if(this._offsetY<0)for(;this._offsetY<-.5*this._stepY;)this._offsetY+=this._stepY;else for(;this._offsetY>=.5*this._stepY;)this._offsetY-=this._stepY}if(this._graphicOriginX=0,this._graphicOriginY=0,null!=s){let[t,e,i,n]=s.split("/"),r=parseFloat(t),h=parseFloat(e),a=parseFloat(i),l=parseFloat(n);this._graphicOriginX=512*-(l*2**r+a),this._graphicOriginY=512*h,this._testInsidePolygon=!0}this._internalPlacement=new Nt.W,this._calculateMinMax(t),this._geometryCursor=t}}next(){return this._geometryCursor?this._nextInside():null}_buildRandomValues(){if(!Xt._randValues){Xt._randValues=[];for(let t=0;t<24;t++)for(let t=0;t<24;t++)Xt._randValues.push(this._randomLCG.getFloat()),Xt._randValues.push(this._randomLCG.getFloat())}}_calculateMinMax(t){let e,i,s,n,r,h,a,l,o,u,c,_,p,f;this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,a=l=p=c=Number.MAX_VALUE,o=u=f=_=-Number.MAX_VALUE;let m=1!==this._cosAngle;for(t.reset();t.nextPath();)for(;t.nextPoint();)h=t.x,r=t.y,e=h-this._graphicOriginX-this._offsetX,i=r-this._graphicOriginY-this._offsetY,m?(s=this._cosAngle*e-this._sinAngle*i,n=this._sinAngle*e+this._cosAngle*i):(s=e,n=i),a=Math.min(a,s),o=Math.max(o,s),l=Math.min(l,n),u=Math.max(u,n),c=Math.min(c,r),_=Math.max(_,r),p=Math.min(p,h),f=Math.max(f,h);c=c===Number.MAX_VALUE?-512-this._stepY:c,_=_===-Number.MAX_VALUE?this._stepY:_,p=p===Number.MAX_VALUE?-this._stepX:p,f=f===-Number.MAX_VALUE?512+this._stepX:f;let d=_-c,g=f-p;if(this._verticalSubdivision=d>=g,this._polygonMin=this._verticalSubdivision?c:p,this._testInsidePolygon){let t=0-this._graphicOriginX-this._offsetX-this._stepX,e=512-this._graphicOriginX-this._offsetX+this._stepX,i=-512-this._graphicOriginY-this._offsetY-this._stepY,s=0-this._graphicOriginY-this._offsetY+this._stepY;if(m){let n=[[t,i],[t,s],[e,i],[e,s]];t=i=Number.MAX_VALUE,e=s=-Number.MAX_VALUE;for(let r of n){let n=this._cosAngle*r[0]-this._sinAngle*r[1],h=this._sinAngle*r[0]+this._cosAngle*r[1];t=Math.min(t,n),e=Math.max(e,n),i=Math.min(i,h),s=Math.max(s,h)}}a=a===Number.MAX_VALUE?t:Math.max(a,t),l=l===Number.MAX_VALUE?i:Math.max(l,i),o=o===-Number.MAX_VALUE?e:Math.min(o,e),u=u===-Number.MAX_VALUE?s:Math.min(u,s)}this._xMin=Math.round(a/this._stepX),this._xMax=Math.round(o/this._stepX),this._yMin=Math.round(l/this._stepY),this._yMax=Math.round(u/this._stepY),this._currentX=this._xMax+1,this._currentY=this._yMin-1,this._buildAccelerationMap(t,p,f,c,_)}_buildAccelerationMap(t,e,i,s,n){t.reset();let r=new Map,h=this._verticalSubdivision,a=h?n-s:i-e,l=Math.ceil(a/10);if(l<=1)return;let o,u,c,_,p,f,m,d,g,x,y,P=Math.floor(a/l);for(l++,this._delta=P,h?(g=-512-2*this._stepY,x=2*this._stepY,y=s):(g=-2*this._stepX,x=512+2*this._stepX,y=e);t.nextPath();)if(!(t.pathSize<2)&&t.nextPoint())for(o=t.x,u=t.y;t.nextPoint();o=c,u=_){if(c=t.x,_=t.y,h){if(u===_||u<g&&_<g||u>x&&_>x)continue;p=Math.min(u,_),f=Math.max(u,_)}else{if(o===c||o<g&&c<g||o>x&&c>x)continue;p=Math.min(o,c),f=Math.max(o,c)}for(;p<f;)m=Math.floor((p-y)/P),Yt(m,o,u,c,_,r),p+=P;d=Math.floor((f-y)/P),d>m&&Yt(d,o,u,c,_,r)}this._accelerationMap=r}_nextInside(){for(;;){if(this._currentX>this._xMax){if(this._currentY++,this._currentY>this._yMax)return null;this._currentX=this._xMin,this._shiftOddRows&&this._currentY%2&&this._currentX--}let t=this._currentX*this._stepX+this._offsetX;this._shiftOddRows&&this._currentY%2&&(t+=.5*this._stepX);let e,i,s=this._currentY*this._stepY+this._offsetY;if(this._currentX++,"Random"===this._gridType){let n=(this._currentX%24+24)%24,r=(this._currentY%24+24)%24;e=this._graphicOriginX+t+this._stepX*this._randomness*(.5-Xt._randValues[24*r+n])*2/3,i=this._graphicOriginY+s+this._stepY*this._randomness*(.5-Xt._randValues[24*r+n+1])*2/3}else e=this._graphicOriginX+this._cosAngle*t+this._sinAngle*s,i=this._graphicOriginY-this._sinAngle*t+this._cosAngle*s;if(!this._testInsidePolygon||this._isInsidePolygon(e,i,this._geometryCursor))return this._internalPlacement.setTranslate(e,i),this._internalPlacement}}_isInsidePolygon(t,e,i){if(null==this._accelerationMap)return function(t,e,i){let s,n,r,h,a=0;for(t+=Rt,e+=Rt,i.reset();i.nextPath();)if(i.nextPoint())for(s=i.x,n=i.y;i.nextPoint();s=r,n=h)r=i.x,h=i.y,n>e!=h>e&&((r-s)*(e-n)-(h-n)*(t-s)>0?a++:a--);return 0!==a}(t,e,i);t+=Rt,e+=Rt;let s=this._verticalSubdivision,n=Math.floor(((s?e:t)-this._polygonMin)/this._delta),r=this._accelerationMap.get(n);if(!r)return!1;let h,a,l,o=0;for(let i of r){if(h=i[0],a=i[1],s){if(h[1]>e==a[1]>e)continue;l=(a[0]-h[0])*(e-h[1])-(a[1]-h[1])*(t-h[0])}else{if(h[0]>t==a[0]>t)continue;l=(a[1]-h[1])*(t-h[0])-(a[0]-h[0])*(e-h[1])}l>0?o++:o--}return 0!==o}}function Yt(t,e,i,s,n,r){let h=r.get(t);h||(h=[],r.set(t,h)),h.push([[e,i],[s,n]])}class Dt{static{this.instance=null}static local(){return null===Dt.instance&&(Dt.instance=new Dt),Dt.instance}execute(t,e,i){return new Wt(t,e,i)}}class Wt extends d.pC{constructor(t,e,i){super(t),this._curveHelper=new g,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._relativeTo=e.relativeTo??"LineMiddle",this._position=void 0===e.startPointOffset?0:e.startPointOffset*i,this._epsilon=.001*i}processPath(t){let e=this._position;if("SegmentMidpoint"===this._relativeTo){if(this.iteratePath||=!0,t.nextPoint()){let[e,i]=[t.x,t.y],[s,n]=[0,0],r=[0,0];for(;t.nextPoint();){s=t.x,n=t.y;let h=this._curveHelper.getLength(e,i,s,n);if(h<this._epsilon){e=s,i=n;continue}let a=.5+this._position/h,[l,o]=this._curveHelper.getAngleCS(r,e,i,s,n,a),u=this._curveHelper.getCoord2D(e,i,s,n,a);return this.internalPlacement.setTranslate(u[0]-this._offset*o,u[1]+this._offset*l),this._angleToLine&&this.internalPlacement.setRotateCS(l,o),this.internalPlacement}}return this.iteratePath=!1,null}let i="LineEnd"===this._relativeTo;return this.onLine(t,e,i)}onLine(t,e,i){let s,n=!1;switch(this._relativeTo){case"LineMiddle":default:t.seekPathStart(),s=t.pathLength()/2+e;break;case"LineBeginning":s=e;break;case"LineEnd":s=e,n=!0}i?t.seekPathEnd():t.seekPathStart();let r=0;if(i?t.prevPoint():t.nextPoint()){let[e,h]=[t.x,t.y],[a,l]=[0,0],o=[0,0];for(;i?t.prevPoint():t.nextPoint();){a=t.x,l=t.y;let i=this._curveHelper.getLength(e,h,a,l);if(r+i>s){let t=(s-r)/i,[u,c]=this._curveHelper.getAngleCS(o,e,h,a,l,t),_=this._curveHelper.getCoord2D(e,h,a,l,t),p=n?-this._offset:this._offset;return this.internalPlacement.setTranslate(_[0]-p*c,_[1]+p*u),this._angleToLine&&(n?this.internalPlacement.setRotateCS(-u,-c):this.internalPlacement.setRotateCS(u,c)),this.internalPlacement}e=a,h=l,r+=i}}return null}}class Bt{static{this.instance=null}static local(){return null===Bt.instance&&(Bt.instance=new Bt),Bt.instance}execute(t,e,i){return new Ut(t,e,i)}}class Ut extends d.pC{constructor(t,e,i){super(t),this._curveHelper=new g,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._endPoints=void 0===e.placeOnEndPoints||e.placeOnEndPoints,this._controlPoints=void 0===e.placeOnControlPoints||e.placeOnControlPoints,this._regularVertices=void 0===e.placeOnRegularVertices||e.placeOnRegularVertices,this._tags=[],this._tagIterator=0}processPath(t){if(this.iteratePath||=(this._preparePath(t),!0),this._tagIterator>=this._tags.length)return this._tags.length=0,this._tagIterator=0,this.iteratePath=!1,null;let e=this._tags[this._tagIterator];this._angleToLine&&this.internalPlacement.setRotate(e[2]);let i=e[0],s=e[1];if(0!==this._offset){let t=Math.cos(e[2]),n=Math.sin(e[2]);i-=this._offset*n,s+=this._offset*t}return this.internalPlacement.setTranslate(i,s),this._tagIterator++,this.internalPlacement}_preparePath(t){this._tags.length=0,this._tagIterator=0,t.seekPathStart();let e=t.isClosed(),i=0,s=!1,n=0,r=0;if(t.seekPathStart(),t.nextPoint()){let h=t.x,a=t.y,l=t.getControlPoint(),o=!0,u=t.nextPoint();for(;u;){let c=t.x,_=t.y,p=t.getControlPoint();(this._angleToLine||0!==this._offset)&&(n=this._curveHelper.getAngle(h,a,c,_,0)),o?(o=!1,e?(i=n,s=l):(this._endPoints||this._controlPoints&&l)&&this._tags.push([h,a,n])):l?this._controlPoints&&this._tags.push([h,a,Ht(r,n)]):this._regularVertices&&this._tags.push([h,a,Ht(r,n)]),(this._angleToLine||0!==this._offset)&&(r=this._curveHelper.getAngle(h,a,c,_,1)),u=t.nextPoint(),u||(e?p||s?this._controlPoints&&this._tags.push([c,_,Ht(r,i)]):this._regularVertices&&this._tags.push([c,_,Ht(r,i)]):(this._endPoints||this._controlPoints&&p)&&this._tags.push([c,_,r])),h=c,a=_,l=p}}this._tagIterator=0}}function Ht(t,e){let i=Math.PI;for(;Math.abs(e-t)>i+2e-15;)e-t>i?e-=2*i:e+=2*i;return(t+e)/2}var Vt=i(78957);class qt{static{this.instance=null}static local(){return null===qt.instance&&(qt.instance=new qt),qt.instance}execute(t,e,i){return new Jt(t,e,i)}}class Jt{constructor(t,e,i){this._geometryCursor=t,this._offsetX=void 0===e.offsetX?0:e.offsetX*i,this._offsetY=void 0===e.offsetY?0:e.offsetY*i,this._method=void 0===e.method?"OnPolygon":e.method,this._placementPerPart=void 0!==e.placePerPart&&e.placePerPart,this._internalPlacement=new Nt.W}next(){let t=this._geometryCursor;if(!t)return null;if(!this._placementPerPart)return this._geometryCursor=null,this._polygonCenter(t);for(;t.nextPath();)if(!(t.getCurrentRingArea()<0))return this._polygonCenter(t.getCurrentPath());return this._geometryCursor=null,null}_polygonCenter(t){let e=!1;switch(this._method){case"CenterOfMass":{let i=(0,rt.TP)(t);i&&(this._internalPlacement.setTranslate(i[0]+this._offsetX,i[1]+this._offsetY),e=!0)}break;case"BoundingBoxCenter":{let i=(0,H.z8)(t);i&&(this._internalPlacement.setTranslate((i[2]+i[0])/2+this._offsetX,(i[3]+i[1])/2+this._offsetY),e=!0)}break;default:{let i=(0,Vt.d)(t);null!==i&&(this._internalPlacement.setTranslate(i[0]+this._offsetX,i[1]+this._offsetY),e=!0)}}return e?this._internalPlacement:null}}var Zt=i(86235),$t=i(14057);class jt{static{this.instance=null}static local(){return null===jt.instance&&(jt.instance=new jt),jt.instance}execute(t,e,i){return new Kt(t,i)}}class Kt{constructor(t,e){this._cursor=t,this._context=e}next(){let t=this._cursor.next();if(!t||0===t.totalSize)return null;if(this._context.callout?.preserveInputGeometry)return t;let{matcher:e,target:i,tileKey:s}=this._context,n=e&&i&&null!=s?e.getMatcherGeometryOverride((0,$t.$)(s,i.getObjectId())):null;if(!n)return t;let r=u.z.fromOptimizedCIM(n.geometry.clone(),n.geometryType);return r.invertY(),r}}class Qt{static{this.instance=null}static local(){return null===Qt.instance&&(Qt.instance=new Qt),Qt.instance}execute(t){return new te(t)}}class te extends d.pC{constructor(t){super(t),this._curveHelper=new g}processPath(t){if(this.iteratePath=!0,t.nextPoint()){let[e,i]=[t.x,t.y];if(t.nextPoint()){let[s,n]=[t.x,t.y],r=(e+s)/2,h=(i+n)/2;this.internalPlacement.setTranslate(r,h);let a=this._curveHelper.getAngle(e,i,s,n,0);return this.internalPlacement.setRotate(a),this.internalPlacement}}return this.iteratePath=!1,null}}function ee(t){if(!t)return null;switch(t.type){case"CIMGeometricEffectAddControlPoints":return p.local();case"CIMGeometricEffectArrow":return x.local();case"CIMGeometricEffectBuffer":return b.local();case"CIMGeometricEffectCircularSector":return z.local();case"CIMGeometricEffectControlMeasureLine":return E.local();case"CIMGeometricEffectCut":return L.local();case"CIMGeometricEffectDashes":return D.local();case"CIMGeometricEffectDonut":return B.local();case"CIMGeometricEffectJog":return j.local();case"CIMGeometricEffectMove":return Q.local();case"CIMGeometricEffectOffset":return it.local();case"CIMGeometricEffectRadial":return ht.local();case"CIMGeometricEffectReverse":return lt.local();case"CIMGeometricEffectRotate":return ct.local();case"CIMGeometricEffectScale":return pt.local();case"CIMGeometricEffectSuppress":return dt.local();case"CIMGeometricEffectTaperedPolygon":return bt.local();case"CIMGeometricEffectWave":return vt.local();case"CIMGeometricEffectEnclosingPolygon":return V.local();case"CIMSimpleLineCallout":return c.local();case"CIMBackgroundCallout":return n.local();case"CIMBalloonCallout":return h.local();case"CIMPointSymbolCallout":return l.local();case"PrivateDimensionEffect":return Zt.HZ.local();case"PrivateMatcherGeometryOverrideEffect":return jt.local()}return null}function ie(t){if(!t)return null;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":return St.local();case"CIMMarkerPlacementAtExtremities":return zt.local();case"CIMMarkerPlacementAtMeasuredUnits":return Tt.local();case"CIMMarkerPlacementAtRatioPositions":return Ot.local();case"CIMMarkerPlacementInsidePolygon":return Ft.local();case"CIMMarkerPlacementOnLine":return Dt.local();case"PrivatePlacementMultipoint":return Qt.local();case"CIMMarkerPlacementOnVertices":return Bt.local();case"CIMMarkerPlacementPolygonCenter":return qt.local()}return null}},98939(t,e,i){i.d(e,{W:()=>s});class s{constructor(){this.setIdentity()}getAngle(){return this.rz}setIdentity(){this.tx=0,this.ty=0,this.tz=0,this.s=1,this.rx=0,this.ry=0,this.rz=0,this.rzCos=1,this.rzSin=0}setTranslate(t,e){this.tx=t,this.ty=e}setTranslateZ(t){this.tz=t}setRotateCS(t,e){this.rz=Math.atan2(e,t),this.rzCos=t,this.rzSin=e}setRotate(t){this.rz=t,this.rzCos=Math.cos(t),this.rzSin=Math.sin(t)}setRotateY(t){this.ry=t}setScale(t){this.s=t}setMeasure(t){this.m=t}}},23650(t,e,i){i.d(e,{OverrideHelper:()=>_});var s=i(68197),n=i(85334),r=i(4718),h=i(95466),a=i(55674),l=i(45733),o=i(93397),u=i(37615);const c=t=>{if(!t)return[0,0,0,0];let{r:e,g:i,b:s,a:n}=t;return[e,i,s,255*n]};class _{static findApplicableOverrides(t,e,i){if(t&&e){if(t.primitiveName){let s=!1;for(let e of i)if(e.primitiveName===t.primitiveName){s=!0;break}if(!s)for(let s of e)s.primitiveName===t.primitiveName&&i.push(s)}switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(t.effects)for(let s of t.effects)_.findApplicableOverrides(s,e,i);if(t.symbolLayers)for(let s of t.symbolLayers)_.findApplicableOverrides(s,e,i);break;case"CIMTextSymbol":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":case"CIMVectorMarker":case"CIMCharacterMarker":case"CIMPictureMarker":if(t.effects)for(let s of t.effects)_.findApplicableOverrides(s,e,i);if(t.markerPlacement&&_.findApplicableOverrides(t.markerPlacement,e,i),"CIMVectorMarker"===t.type){if(t.markerGraphics)for(let s of t.markerGraphics)_.findApplicableOverrides(s,e,i),_.findApplicableOverrides(s.symbol,e,i)}else"CIMCharacterMarker"===t.type?_.findApplicableOverrides(t.symbol,e,i):"CIMHatchFill"===t.type?_.findApplicableOverrides(t.lineSymbol,e,i):"CIMPictureMarker"===t.type&&_.findApplicableOverrides(t.animatedSymbolProperties,e,i)}}}static findEffectOverrides(t,e){if(!t)return null;if("CIMGeometricEffectDashes"===t.type&&(0,l.FH)(t),!e||!t.primitiveName)return{type:"cim-effect-param",effect:t,overrides:[]};let i=(0,o.rB)(t),s=t.primitiveName,n=[];for(let t of e)t.primitiveName===s&&n.push((0,o.rB)(t));return{type:"cim-effect-param",effect:i,overrides:(0,o.pk)(n)}}static async resolveSymbolOverrides(t,e,i,s,n,a,l){if(!t?.symbol)return null;let{symbol:u,primitiveOverrides:c}=t,p=!!c;if(!p&&!s)return u;u=(0,r.o8)(u),c=(0,r.o8)(c);let f=!0;if(e||(e={attributes:{}},f=!1),p){if(f||(c=c.filter(t=>!t.valueExpressionInfo?.expression.includes("$feature"))),l||(c=c.filter(t=>!t.valueExpressionInfo?.expression.includes("$view"))),c.length>0){let t=(0,o.O2)(e.attributes),s={spatialReference:i,fields:t,geometryType:n};await _.createRenderExpressions(c,s),_.evaluateOverrides(c,e,n??"esriGeometryPoint",a,l,new h.A(t))}_.applyOverrides(u,c)}return s&&_.applyDictionaryTextOverrides(u,e,s,null),u}static{this._expressionToRenderExpression=new Map}static async createRenderExpressions(t,e){let i=[];for(let s of t){let t=s.valueExpressionInfo;if(!t||_._expressionToRenderExpression.has(t.expression))continue;let n=(0,a.Ad)(t.expression,e.spatialReference);i.push(n),n.then(e=>_._expressionToRenderExpression.set(t.expression,e))}i.length>0&&await Promise.all(i)}static evaluateOverrides(t,e,i,s,r,h){let a={$view:{scale:r?.scale}};for(let r of t){r.value&&"object"==typeof r.value&&(0,n.IB)(r.value)&&("Color"===r.propertyName||"StrokeColor"===r.propertyName)&&(r.value=c(r.value));let t=r.valueExpressionInfo;if(!t)continue;let l=_._expressionToRenderExpression.get(t.expression);l&&(r.value=(0,u.A)(l,e,a,i,h,s),r.value=this.toValue(r.propertyName,r.value))}}static applyDictionaryTextOverrides(t,e,i,s,n="Normal"){if(t?.type)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":case"CIMTextSymbol":{let r=t.symbolLayers;if(!r)return;for(let h of r)h&&"CIMVectorMarker"===h.type&&_.applyDictionaryTextOverrides(h,e,i,s,"CIMTextSymbol"===t.type?t.textCase:n)}break;case"CIMVectorMarker":{let n=t.markerGraphics;if(!n)return;for(let t of n)t&&_.applyDictionaryTextOverrides(t,e,i,s)}break;case"CIMMarkerGraphic":{let r=t.textString;if(r&&r.includes("[")){let h=(0,o.gQ)(r,i);t.textString=(0,o.FM)(e,h,s,n)}}}}static applyOverrides(t,e,i,s){if(t.primitiveName)for(let n of e)if(n.primitiveName===t.primitiveName){let e=(0,o.YF)(n.propertyName);if(s&&s.push({cim:t,nocapPropertyName:e,value:t[e]}),i){let e=!1;for(let s of i)s.primitiveName===t.primitiveName&&(e=!0);e||i.push(n)}null!=n.value&&(t[e]=n.value)}switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(t.effects)for(let n of t.effects)_.applyOverrides(n,e,i,s);if(t.symbolLayers)for(let n of t.symbolLayers)_.applyOverrides(n,e,i,s);break;case"CIMTextSymbol":_.applyOverrides(t.symbol,e,i,s);break;case"CIMSolidStroke":case"CIMSolidFill":case"CIMVectorMarker":if(t.effects)for(let n of t.effects)_.applyOverrides(n,e,i,s);if("CIMVectorMarker"===t.type&&t.markerGraphics)for(let n of t.markerGraphics)_.applyOverrides(n,e,i,s),_.applyOverrides(n.symbol,e,i,s)}}static restoreOverrides(t){for(let e of t)e.cim[e.nocapPropertyName]=e.value}static buildOverrideKey(t){let e="";for(let i of t)void 0!==i.value&&(e+=`${i.primitiveName}${i.propertyName}${JSON.stringify(i.value)}`);return e}static toValue(t,e){if(null==e)return null;if("DashTemplate"===t)return e.split(" ").map(t=>Number(t));if("Color"===t||"StrokeColor"===t){let t=new s.A(e).toRgba();return t[3]*=255,t}return e}}},34653(t,e,i){i.d(e,{E0:()=>c,gX:()=>u,gR:()=>o,W:()=>d,ZO:()=>y,IF:()=>x,n_:()=>_,DJ:()=>g,_T:()=>m,Io:()=>b,EE:()=>h,pT:()=>P,Je:()=>M,sz:()=>p,XD:()=>l,QB:()=>a});var s=i(36745);function n(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin),r=.5*(t.ymax-t.ymin),h=1/Math.sqrt(e.x*e.x/(n*n)+e.y*e.y/(r*r));return{x:i+e.x*h,y:s+e.y*h}}function r(t,e,i){let s=.5*(t.xmin+t.xmax),n=.5*(t.ymin+t.ymax),r=.5*(t.xmax-t.xmin),h=.5*(t.ymax-t.ymin),a=e.x-s,l=e.y-n,o=i.x-e.x,u=i.y-e.y,c=o*o/(r*r)+u*u/(h*h),_=2*(a*o/(r*r)+l*u/(h*h)),p=a*a/(r*r)+l*l/(h*h)-1,f=Math.max(_*_-4*c*p,0),m=(-_-Math.sqrt(f))/(2*c),d=(-_+Math.sqrt(f))/(2*c),g=m>=0&&m<=1?m:d;return{x:e.x+o*g,y:e.y+u*g}}function h(t,e){let{relativeAnchor:i,relativeLayoutAnchor:s,absoluteAnchor:n,bodyBounds:r}=e??{},h=t.clone();if("esriGeometryPoint"===h.geometryType||"esriGeometryMultipoint"===h.geometryType){if(!h.nextPath()||(h.seekPathStart(),!h.nextPoint()))return null;let t=n??(i?{x:h.x+i.x,y:h.y+i.y}:{x:h.x,y:h.y});return{anchor:t,layoutAnchor:n??(s?{x:h.x+s.x,y:h.y+s.y}:t),bounds:r?a(r,h.x,h.y):{xmin:h.x,ymin:h.y,xmax:h.x,ymax:h.y}}}if(r&&1===h.totalSize&&1===h.totalPoints){if(!h.seekPath(0)||(h.seekPathStart(),!h.nextPoint()))return null;let t=n??(i?{x:h.x+i.x,y:h.y+i.y}:{x:h.x,y:h.y});return{anchor:t,layoutAnchor:n??(s?{x:h.x+s.x,y:h.y+s.y}:t),bounds:a(r,h.x,h.y)}}if(h.totalSize<2)return null;function a(t,e,i){return{xmin:t.xmin+e,ymin:t.ymin+i,xmax:t.xmax+e,ymax:t.ymax+i}}let l=h.totalSize-1,o={xmin:1/0,ymin:1/0,xmax:-1/0,ymax:-1/0};for(let t=0;t<l;t++){if(!h.seekPath(t))return null;for(h.seekPathStart();h.nextPoint();)C(o,h.x,h.y)}return function(t){return Number.isFinite(t.xmin)&&Number.isFinite(t.ymin)&&Number.isFinite(t.xmax)&&Number.isFinite(t.ymax)}(o)&&h.seekPath(l)&&(h.seekPathStart(),h.nextPoint())?{anchor:n??{x:h.x,y:h.y},layoutAnchor:n??{x:h.x,y:h.y},bounds:o}:null}function a(t,e){return{left:(t?.left??0)*e,right:(t?.right??0)*e,top:(t?.top??0)*e,bottom:(t?.bottom??0)*e}}function l(t,e){return{xmin:t.xmin-e.left,ymin:t.ymin-e.bottom,xmax:t.xmax+e.right,ymax:t.ymax+e.top}}function o(t,e){return e.x>=t.xmin&&e.x<=t.xmax&&e.y>=t.ymin&&e.y<=t.ymax}function u(t){return{x:.5*(t.xmin+t.xmax),y:.5*(t.ymin+t.ymax)}}function c(t,e,i=0){let s,n,r=t.xmin-i,h=t.ymin-i,a=t.xmax+i,l=t.ymax+i,o=.5*(r+a),u=.5*(h+l);return s=e.x<r?r:e.x>a?a:e.x<o?Math.abs(e.x-r)<Math.abs(e.x-o)?r:o:Math.abs(e.x-a)<Math.abs(e.x-o)?a:o,n=e.y<h?h:e.y>l?l:e.y<u?Math.abs(e.y-h)<Math.abs(e.y-u)?h:u:Math.abs(e.y-l)<Math.abs(e.y-u)?l:u,{x:s,y:n}}function _(t,e,i,s,n,r,h=1,a=!1,l=t){let o=G(t,e,i??0,n,9*h,a,l);return v(function(t){return t.filter((e,i)=>0===i||e.x!==t[i-1].x||e.y!==t[i-1].y)}(s>0?function(t,e){return function(t,e){let i=e;for(let e=1;e<t.length;e++){let s=t[e-1],n=t[e],r=b(s,n);if(i<r){let h=i/r;return[{x:s.x+h*(n.x-s.x),y:s.y+h*(n.y-s.y)},...t.slice(e)]}i-=r}return[t[t.length-1]]}(t.slice().reverse(),e).reverse()}(o,s):o),r)}function p(t,e,i,s,n=!1,r=t){let h=i??0;return 0!==h||n?f(N(t,e,h,s,r),e,h):c(t,e,s)}function f(t,e,i){let s=R(t.start,t.end);switch(i){case 1:case 2:case 3:return s;case 4:return e.y>s.y?t.end:t.start;case 5:case 6:return b(t.start,e)>b(t.end,e)?t.end:t.start;default:return b(t.start,e)<b(t.end,e)?t.start:t.end}}function m(t,e){return w([{x:t.xmin,y:t.ymin},{x:t.xmin,y:t.ymax},{x:t.xmax,y:t.ymax},{x:t.xmax,y:t.ymin},{x:t.xmin,y:t.ymin}],e)}function d(t,e,i,s,n=null,r=t){let{start:h,end:a}=N(t,e,n??0,i,r);return v([h,a],s)}function g(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPoint",!1,!1,e);return i.startPath(),i.pushXY(t.x,e*t.y),i.reset(),i}function x(t,e,i,s,n,r=null,h=e,a=!0){let l=P(t,i),u=!a||o(l,h)?null:A(l,t,h,e,i,s,r);switch(i){case 1:return function(t,e,i){let s=function(t){let e=M(t,1),i=[{x:t.xmin+e,y:t.ymin}];return E(i,t.xmin+e,t.ymin+e,e,-Math.PI/2,-Math.PI),i.push({x:t.xmin,y:t.ymax-e}),E(i,t.xmin+e,t.ymax-e,e,Math.PI,Math.PI/2),i.push({x:t.xmax-e,y:t.ymax}),E(i,t.xmax-e,t.ymax-e,e,Math.PI/2,0),i.push({x:t.xmax,y:t.ymin+e}),E(i,t.xmax-e,t.ymin+e,e,0,-Math.PI/2),i.push(i[0]),i}(t);return e&&O(s,e),w(s,i)}(l,u,n);case 2:return function(t,e,i){if(!e)return function(t,e){return w(function(t){let e=[];for(let i=0;i<32;i++)e.push(z(t,2*Math.PI*i/32));return e}(t),e)}(t,i);let s=I(t,e.points[0]),n=I(t,e.points[e.points.length-1]),r=k(n-s),h=Math.min(r,2*Math.PI-r),a=r<=Math.PI?e.points.slice():[e.points[e.points.length-1],e.points[1],e.points[0]],l=r<=Math.PI?n:s,o=2*Math.PI-h,u=Math.max(1,Math.ceil(S*o/(2*Math.PI)));for(let e=1;e<u;e++)a.push(z(t,l+o*e/u));return w(a,i)}(l,u,n);default:return function(t,e,i){let s=[{x:t.xmin,y:t.ymin},{x:t.xmin,y:t.ymax},{x:t.xmax,y:t.ymax},{x:t.xmax,y:t.ymin},{x:t.xmin,y:t.ymin}];return e&&O(s,e),w(s,i)}(l,u,n)}}function y(t,e,i,s,n,r=null,h=e){let a=P(t,i),l=o(a,h)?null:A(a,t,h,e,i,s,r);return l?w(l.points,n):null}function P(t,e){if(2!==e)return t;let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.ymax-t.ymin),r=Math.max(.5*(t.xmax-t.xmin)*Math.SQRT2,1.25*n);return{xmin:i-r,ymin:s-n,xmax:i+r,ymax:s+n}}function M(t,e){return 1===e?Math.min(t.xmax-t.xmin,t.ymax-t.ymin)/8:0}function b(t,e){return Math.hypot(e.x-t.x,e.y-t.y)}function C(t,e,i){t.xmin=Math.min(t.xmin,e),t.ymin=Math.min(t.ymin,i),t.xmax=Math.max(t.xmax,e),t.ymax=Math.max(t.ymax,i)}function v(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPolyline",!1,!1,e);i.startPath();for(let s of t)i.pushXY(s.x,e*s.y);return i.reset(),i}function w(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,e);i.startPath();for(let s of function(t){if(!t.length)return t;let e=t[0],i=t[t.length-1];return e.x===i.x&&e.y===i.y?t:[...t,e]}(t))i.pushXY(s.x,e*s.y);return i.reset(),i}const S=32;function I(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin),r=.5*(t.ymax-t.ymin);return k(Math.atan2((e.y-s)/r,(e.x-i)/n))}function z(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin),r=.5*(t.ymax-t.ymin);return{x:i+n*Math.cos(e),y:s+r*Math.sin(e)}}function k(t){let e=t%(2*Math.PI);return e<0?e+2*Math.PI:e}function A(t,e,i,s,n,r,h){if(2===n)return T(t,e,i,s,r,h);let a=t.xmax-t.xmin,l=t.ymax-t.ymin,o=t.xmin+a/2,u=t.ymin+l/2,c=-1;if(i.x>=t.xmin&&i.x<=t.xmax?i.y<=t.ymin?c=i.x<=o?7:6:i.y>=t.ymax&&(c=i.x<=o?2:3):c=i.x<t.xmin?i.y<=u?0:1:i.y<=u?5:4,c<0)return null;let _=function(t){let e=t.xmax-t.xmin,i=t.ymax-t.ymin;return[{x:t.xmin,y:t.ymin+i/4},{x:t.xmin,y:t.ymax-i/4},{x:t.xmin+e/4,y:t.ymax},{x:t.xmax-e/4,y:t.ymax},{x:t.xmax,y:t.ymax-i/4},{x:t.xmax,y:t.ymin+i/4},{x:t.xmax-e/4,y:t.ymin},{x:t.xmin+e/4,y:t.ymin}]}(t)[c];if(b(_,i)<r)return null;let p,f,m=M(t,n),d=1===n?a/4-m:a/2,g=1===n?l/4-m:l/2,x=null==h?a/8:Math.min(h/2,Math.max(d,0)),y=null==h?l/8:Math.min(h/2,Math.max(g,0));switch(c){case 0:case 1:p={x:_.x,y:_.y-y},f={x:_.x,y:_.y+y};break;case 2:case 3:p={x:_.x-x,y:_.y},f={x:_.x+x,y:_.y};break;case 4:case 5:p={x:_.x,y:_.y+y},f={x:_.x,y:_.y-y};break;default:p={x:_.x+x,y:_.y},f={x:_.x-x,y:_.y}}return{index:c,points:[p,s,f]}}function T(t,e,i,s,h,a){let l={x:.5*(t.xmin+t.xmax),y:.5*(t.ymin+t.ymax)},o=i.x-l.x,u=i.y-l.y,c=Math.hypot(o,u);if(0===c)return null;let _={x:o/c,y:u/c};if(b(n(t,_),i)<h)return null;let p={x:-_.y,y:_.x},f=b(l,n(t,p)),m=Math.min(e.xmax-e.xmin,e.ymax-e.ymin)/8,d=Math.min(null==a?m:a/2,f),g={x:l.x-p.x*d,y:l.y-p.y*d};return{index:-1,points:[r(t,i,{x:l.x+p.x*d,y:l.y+p.y*d}),s,r(t,i,g)]}}function E(t,e,i,s,n,r){for(let h=1;h<=4;h++){let a=n+(r-n)*h/4;t.push({x:e+s*Math.cos(a),y:i+s*Math.sin(a)})}}function O(t,e){let[i,,s]=e.points;for(let n=0;n<t.length-1;n++)if(L(i,t[n],t[n+1])&&L(s,t[n],t[n+1]))return void t.splice(n+1,0,...e.points)}function L(t,e,i){let s=1e-9,n=(t.x-e.x)*(i.y-e.y)-(t.y-e.y)*(i.x-e.x);return!(Math.abs(n)>s)&&t.x>=Math.min(e.x,i.x)-s&&t.x<=Math.max(e.x,i.x)+s&&t.y>=Math.min(e.y,i.y)-s&&t.y<=Math.max(e.y,i.y)+s}function G(t,e,i,s,n,r,h){if(0===i&&!r)return[c(t,e,s),e];let a=N(t,e,i,s,h),l=f(a,e,i);switch(i){case 1:default:return[l,e];case 2:return[l,F(l,a.onLeft,n),e];case 3:{let t=F(l,a.onLeft,n),i=b(a.start,e)<b(a.end,e)?a.start:a.end;return[l,t,{x:t.x,y:i.y},e]}case 4:return[{x:a.onLeft?t.xmax:t.xmin,y:l.y},l,e];case 5:case 6:return function(t,e,i){let s=b(t,e);if(0===s)return[t];let n=.75*s,r=R(t,e),h=Math.sqrt(n*n-.25*s*s),a=-(e.y-t.y)/s,l=(e.x-t.x)/s,o=i?-1:1,u=r.x+o*h*a,c=r.y+o*h*l,_=Math.atan2(t.y-c,t.x-u),p=Math.atan2(e.y-c,e.x-u)-_;i&&p>0?p-=2*Math.PI:!i&&p<0&&(p+=2*Math.PI);let f=[t];for(let t=1;t<=12;t++){let e=_+p*t/12;f.push({x:u+n*Math.cos(e),y:c+n*Math.sin(e)})}return f[12]=e,f}(l,e,5===i)}}function N(t,e,i,s,n){let r=e.x<=.5*(n.xmin+n.xmax);3===i&&(r=!r);let h=r?t.xmin-s:t.xmax+s;return{start:{x:h,y:t.ymin},end:{x:h,y:t.ymax},onLeft:r}}function R(t,e){return{x:.5*(t.x+e.x),y:.5*(t.y+e.y)}}function F(t,e,i){return{x:t.x+(e?-i:i),y:t.y}}},35521(t,e,i){var s=i(28076);s.D.CIMSolidStroke.capstyle,s.D.CIMSolidStroke.joinstyle,s.D.CIMSolidStroke.miterlimit},75585(t,e,i){function s(t){let e="normal",i="normal";if(t){let s=t.toLowerCase();s.includes("italic")?e="italic":s.includes("oblique")&&(e="oblique"),s.includes("bold")?i="bold":s.includes("light")&&(i="lighter")}return{style:e,weight:i}}i.d(e,{_:()=>s})},69754(t,e,i){i.d(e,{Z:()=>o,q:()=>l});var s=i(68197),n=i(75585);const r=/([A-Za-z_][\w-]*)\s*=\s*(['"])(.*?)\2/g,h=/&(amp|lt|gt|quot|apos);/g,a=/<\s*\/?\s*(?:CLR|BOL|_BOL|ITA|_ITA|UND|_UND|FNT|CHR)\b/i;function l(t){return a.test(t)}function o(t){if(!t.supportsRichText||!t.textString.includes("<"))return null;let e=function(t){return{font:{...t.font},fontSize:t.symbol?.height&&!isNaN(t.symbol.height)?t.symbol.height:10,characterSpacing:0}}(t),i=[],s=[],n=u(e),r="",h=!1,a=t.textString,l=()=>{if(!r)return;let t=c(r);if(!t)return void(r="");let e=s[s.length-1];e&&function(t,e){return t.fontSize===e.fontSize&&t.characterSpacing===e.characterSpacing&&t.font.family===e.font.family&&t.font.style===e.font.style&&t.font.weight===e.font.weight&&t.font.decoration===e.font.decoration&&function(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}(t.color,e.color)}(e,n)?e.text+=t:s.push({text:t,font:{...n.font},fontSize:n.fontSize,characterSpacing:n.characterSpacing,color:n.color}),r=""},o=0;for(;o<a.length;){let t=a[o];if("<"!==t){r+=t,o++;continue}let e=a.indexOf(">",o+1);if(-1===e)return null;let s=_(a.slice(o+1,e));if(!s)return null;if(h=!0,l(),s.isEnd){let t=i.pop();if(!t||t.name!==s.name)return null;n=t.previous}else{let t=u(n);n=p(n,s),i.push({name:s.name,previous:t})}o=e+1}return i.length?null:(l(),h?s.filter(t=>t.text.length>0):null)}function u(t){return{font:{...t.font},fontSize:t.fontSize,characterSpacing:t.characterSpacing,color:t.color}}function c(t){return t.replaceAll(h,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';case"apos":return"'";default:return t}})}function _(t){let e=t.trim();if(!e)return null;let i=e.startsWith("/"),s=i?e.slice(1).trim():e,n=/^([A-Za-z_][\w-]*)/.exec(s);if(!n)return null;let h,a=n[1],l=s.slice(a.length),o={};for(r.lastIndex=0;h=r.exec(l);)o[h[1]]=h[3];return{isEnd:i,name:a,attributes:o}}function p(t,e){let i=u(t);switch(e.name.toUpperCase()){case"BOL":i.font.weight="bold";break;case"_BOL":i.font.weight="normal";break;case"ITA":i.font.style="italic";break;case"_ITA":i.font.style="normal";break;case"UND":i.font.decoration="underline";break;case"_UND":i.font.decoration="none";break;case"FNT":!function(t,e){let{name:i,style:s,size:r,scale:h,wght:a,ital:l}=e;if(i&&(t.font.family=i),s){let e=(0,n._)(s);t.font.style=e.style,t.font.weight=e.weight}if(a){let e=Number(a);t.font.weight=e>=600?"bold":"normal"}if(l){let e=Number(l);isNaN(e)||(t.font.style=0===e?"normal":"italic")}if(r){let e=Number(r);!isNaN(e)&&e>0&&(t.fontSize=e)}if(h){let e=Number(h);!isNaN(e)&&e>0&&(t.fontSize*=e/100)}}(i,e.attributes);break;case"CLR":i.color=function(t){if(t.hex){let e=s.A.fromHex(t.hex)?.toArray();if(e){let i="alpha"in t?d(t.alpha):e[3];return[e[0],e[1],e[2],i]}}if("red"in t||"green"in t||"blue"in t)return[f(t.red),f(t.green),f(t.blue),d(t.alpha)];let e=m(t.cyan),i=m(t.magenta),n=m(t.yellow),r=m(t.black),h=d(t.alpha),a=m(t.tint,100)/100,l=1-r;return[Math.round(255*(1-e)*l*a),Math.round(255*(1-i)*l*a),Math.round(255*(1-n)*l*a),h]}(e.attributes);break;case"CHR":!function(t,e){let i=Number(e.spacing);!isNaN(i)&&i>=0&&(t.characterSpacing=i/100)}(i,e.attributes)}return i}function f(t){let e=Number(t);return function(t){return Math.max(0,Math.min(255,Math.round(t)))}(isNaN(e)?0:e)}function m(t,e=0){let i=Number(t);return function(t){return Math.max(0,Math.min(1,t))}((isNaN(i)?e:i)/100)}function d(t){return Math.round(255*m(t,100))}},37615(t,e,i){i.d(e,{A:()=>h});var s=i(49186),n=i(53966),r=i(62577);function h(t,e,i,s,r,h){if(null==t)return null;let a=t.references("geometry")&&h?l(e,s,h):e,o=t.repurposeFeature(a,r);try{return t.evaluate(o,i)}catch(t){return n.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",t),null}}const a=new Map;function l(t,e,i){let{transform:h,hasZ:l,hasM:o}=i;a.has(e)||a.set(e,function(t){let e={};switch(t){case"esriGeometryPoint":return(t,i,s,n)=>(0,r.Tr)(i,e,t,s,n);case"esriGeometryPolygon":return(t,i,s,n)=>(0,r.$X)(i,e,t,s,n);case"esriGeometryPolyline":return(t,i,s,n)=>(0,r.P5)(i,e,t,s,n);case"esriGeometryMultipoint":return(t,i,s,n)=>(0,r.SW)(i,e,t,s,n);default:return n.A.getLogger("esri.views.2d.support.arcadeOnDemand").error(new s.A("mapview-arcade",`Unable to handle geometryType: ${t}`)),t=>t}}(e));let u=a.get(e)(t.geometry,h,l,o);return{...t,geometry:u}}},18989(t,e,i){i.d(e,{A:()=>s});class s{constructor(t=0,e=0,i=0,s=0){this.x=t,this.y=e,this.width=i,this.height=s}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}},63933(t,e,i){function s(t){if(!t)return 0;switch(t){case"Left":case"left":return-1;case"Right":case"right":return 1;case"justify":case"Justify":return 2;case"Center":case"center":return 0}}function n(t){if(!t)return 0;switch(t){case"Top":case"top":return 1;case"Center":case"middle":return 0;case"Baseline":case"baseline":return 2;case"Bottom":case"bottom":return-1}}function r(t){switch(t){case 1:case"right":return-1;case 2:case"justify":return 1;case 0:case"center":return 0;case-1:case"left":return 1;default:return console.debug(`Found invalid horizontal alignment ${t}`),0}}function h(t){switch(t){case 1:case"top":return 1;case 0:case"middle":return 0;case-1:case 2:case"baseline":case"bottom":return-1;default:return console.debug(`Found invalid vertical alignment ${t}`),0}}i.d(e,{Dy:()=>h,UD:()=>n,iT:()=>r,xy:()=>s})},15660(t,e,i){i.d(e,{A:()=>n});var s=i(88340);class n{constructor(t,e,i,n){this.transformedX=0,this.transformedY=0,this.center=(0,s.fA)(t,e),this.centerT=(0,s.vt)(),this.halfWidth=i/2,this.halfHeight=n/2,this.width=i,this.height=n}get x(){return this.center[0]}get y(){return this.center[1]}get blX(){return this.center[0]+this.halfWidth}get blY(){return this.center[1]+this.halfHeight}get trX(){return this.center[0]-this.halfWidth}get trY(){return this.center[1]-this.halfHeight}get xmin(){return this.x-this.halfWidth}get xmax(){return this.x+this.halfWidth}get ymin(){return this.y-this.halfHeight}get ymax(){return this.y+this.halfHeight}set x(t){this.center[0]=t}set y(t){this.center[1]=t}clone(){return new n(this.x,this.y,this.width,this.height)}serialize(t){return t.writeF32(this.center[0]),t.writeF32(this.center[1]),t.push(this.width),t.push(this.height),t}findCollisionDelta(t,e=4){let i=Math.abs(t.centerT[0]-this.centerT[0]),s=Math.abs(t.centerT[1]-this.centerT[1]),n=(t.halfWidth+this.halfWidth+e)/i,r=(t.halfHeight+this.halfHeight+e)/s;return Math.log2(Math.min(n,r))}extend(t){let e=Math.min(this.xmin,t.xmin),i=Math.min(this.ymin,t.ymin),s=Math.max(this.xmax,t.xmax)-e,n=Math.max(this.ymax,t.ymax)-i,r=e+s/2,h=i+n/2;this.width=s,this.height=n,this.halfWidth=s/2,this.halfHeight=n/2,this.x=r,this.y=h}static deserialize(t){let e=t.readF32(),i=t.readF32(),s=t.readInt32(),r=t.readInt32();return new n(e,i,s,r)}}},75434(t,e,i){i.d(e,{HB:()=>v,tA:()=>C});var s=i(90629),n=i(16905),r=i(85560),h=i(37585),a=i(88340),l=i(63933),o=i(18989),u=i(15660);const c=Math.PI/180;class _{static fromGlyph(t,e,i,s,n){let{mosaicItem:r,rect:h,shaping:a,code:l}=i,o=r.rect;return new _({width:0===l?h.width:o.width*s,height:0===l?h.height:o.height*s,x:s*(t+a.xOffset+h.left),y:s*(e+a.yOffset-h.top),textureBinding:r.textureBinding,texcoords:{topLeft:[o.x,o.y],topRight:[o.x+o.width,o.y],bottomLeft:[o.x,o.y+o.height],bottomRight:[o.x+o.width,o.y+o.height]},fontSize:n?.fontSize,color:n?.color})}constructor(t){this._rotationT=(0,r.vt)(),this._transform=(0,r.vt)(),this._angle=0,this._bounds=null,this.width=t.width,this.height=t.height,this.x=t.x,this.y=t.y,this.textureBinding=t.textureBinding,this.texcoords=t.texcoords,this.fontSize=t.fontSize,this.color=t.color}set angle(t){this._angle=t,(0,n.$0)(this._rotationT,-t),this._offsets=this._bounds=null}get angle(){return this._angle}get offsets(){if(!this._offsets){let{x:t,y:e,width:i,height:s}=this,a=(0,n.$0)((0,r.vt)(),-this.angle),l=(0,n.lw)((0,r.vt)(),a,this._transform);this._offsets={topLeft:(0,h.l0)([0,0],[t,e],l),topRight:(0,h.l0)([0,0],[t+i,e],l),bottomLeft:(0,h.l0)([0,0],[t,e+s],l),bottomRight:(0,h.l0)([0,0],[t+i,e+s],l)}}return this._offsets}get bounds(){if(this.width<=0)return null;if(!this._bounds){let t=this.offsets,e=1/0,i=1/0,s=-1/0,n=-1/0;for(let[r,h]of[t.topLeft,t.topRight,t.bottomLeft,t.bottomRight])e=Math.min(e,r),i=Math.min(i,h),s=Math.max(s,r),n=Math.max(n,h);let r=s-e,h=n-i,a=e+r/2,l=i+h/2;this._bounds=new u.A(a,l,r,h)}return this._bounds}setTransform(t){this._transform=t,this._offsets=null}}const p=(t,e)=>({code:0,mosaicItem:{rect:new o.A(0,0,11,8),sdf:!0,page:0,textureBinding:e},rect:{height:4,width:t,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0}});function f(t){return"underline"===t?(0,s.Lz)(2):0}function m(t,e,i,s,n){switch(t){case"underline":return(i??n?.baseline??22)+4+f(t)/e;case"line-through":return s??n?.midline??16;default:return 0}}function d(t,e){return t.forEach(t=>(0,h.l0)(t,t,e)),{topLeft:t[0],topRight:t[1],bottomLeft:t[2],bottomRight:t[3]}}class g{constructor(t,e,i,s){this._rotation=0,this._decorate(t,e,i,s),this.glyphs=t,this.bounds=this._createBounds(t),this.isMultiline=e.length>1,this._hasRotation=0!==i.angle,this._transform=this._createGlyphTransform(this.bounds,i),this._borderLineSizePx=i.borderLineSizePx,(i.borderLineSizePx||i.hasBackground)&&([this.bounds,this.textBox]=this.shapeBackground(this._transform));for(let e of t)e.setTransform(this._transform)}setRotation(t){if(0===t&&0===this._rotation)return;this._rotation=t;let e=this._transform,i=(0,n.$0)((0,r.vt)(),t);(0,n.lw)(e,i,e);for(let t of this.glyphs)t.setTransform(this._transform)}_decorate(t,e,i,s){if(!i.decoration||"none"===i.decoration||!t.length)return;let n=i.scale,r=t[0].textureBinding;for(let h of e){let e=h.scale??n,a=m(i.decoration,e,h.baseline,h.midline,s),l=h.startX*e,o=h.startY*e,u=(h.width+h.glyphWidthEnd)*e;t.push(_.fromGlyph(l,o+a*e,p(u,r),1))}}shapeBackground(t){let e=(1.5+(this._borderLineSizePx||0))/2,i=this._borderLineSizePx?e:0,{xmin:s,ymin:n,xmax:r,ymax:h,x:a,y:l,width:o,height:c}=this.bounds,_=[s-8,n-8],p=[r+8,n-8],f=[s-8,h+8],m=[r+8,h+8],g=d([[_[0]-e,_[1]-e],[p[0]+e,p[1]-e],[_[0]+i,_[1]+i],[p[0]-i,p[1]+i]],t),x=d([[f[0]+i,f[1]-i],[m[0]-i,m[1]-i],[f[0]-e,f[1]+e],[m[0]+e,m[1]+e]],t),y=d([[_[0]-e,_[1]-e],[_[0]+i,_[1]+i],[f[0]-e,f[1]+e],[f[0]+i,f[1]-i]],t),P=d([[p[0]-i,p[1]+i],[p[0]+e,p[1]-e],[m[0]-i,m[1]-i],[m[0]+e,m[1]+e]],t),M={main:d([_,p,f,m],t),top:g,bot:x,left:y,right:P};return[new u.A(a,l,o+2*e,c+2*e),M]}get boundsT(){let t=this.bounds,e=(0,h.hZ)((0,a.vt)(),t.x,t.y);if((0,h.l0)(e,e,this._transform),this._hasRotation){let i=Math.max(t.width,t.height);return new u.A(e[0],e[1],i,i)}return new u.A(e[0],e[1],t.width,t.height)}_createBounds(t){let e=1/0,i=1/0,s=0,n=0;for(let r of t)e=Math.min(e,r.offsets.topLeft[0]),i=Math.min(i,r.offsets.topLeft[1]),s=Math.max(s,r.offsets.bottomRight[0]),n=Math.max(n,r.offsets.bottomRight[1]);let r=s-e,h=n-i,a=e+r/2,l=i+h/2;return new u.A(a,l,r,h)}_createGlyphTransform(t,e){let i=c*e.angle,s=(0,r.vt)(),l=(0,a.vt)();return(0,n.Tl)(s,s,(0,h.hZ)(l,e.xOffset,-e.yOffset)),e.useCIMAngleBehavior?(0,n.e$)(s,s,i):((0,n.Tl)(s,s,(0,h.hZ)(l,t.x,t.y)),(0,n.e$)(s,s,i),(0,n.Tl)(s,s,(0,h.hZ)(l,-t.x,-t.y))),s}}class x{constructor(t,e,i,s,n,r){this.glyphWidthEnd=0,this.startX=0,this.startY=0,this.start=Math.max(0,Math.min(e,i)),this.end=Math.max(0,Math.max(e,i)),this.end<t.length&&(this.glyphWidthEnd=t[this.end].rect.width),this.width=s,this.yMin=n,this.yMax=r}}const y=t=>10===t,P=t=>32===t;function M(t,e,i){let s=[],n=1/i.scale,r=i.maxLineWidth*n,h=t.length,a=0,l=0,o=0,u=a,c=u,_=0,p=1/0,f=0;for(;a!==h;){let{code:e,rect:i,shaping:n}=t[a],h=Math.abs(i.top);if(!y(e)&&!P(e)&&(p=Math.min(p,h),f=Math.max(f,h+i.height)),y(e))0!==a&&(s.push(new x(t,u,a-1,l,p===1/0?0:p,f)),p=1/0,f=0),l=0,u=a+1,c=a+1,o=0;else if(P(e))c=a+1,o=0,_=n.xAdvance,l+=n.xAdvance;else if(l>r){if(c!==u){let e=c-2;l-=_,s.push(new x(t,u,e,l-o,p,f)),p=1/0,f=0,u=c,l=o}else s.push(new x(t,u,a-1,l,p,f)),p=1/0,f=0,u=a,c=a,l=0;l+=n.xAdvance,o+=n.xAdvance}else l+=n.xAdvance,o+=n.xAdvance;a+=1}let m=new x(t,u,a-1,l,p,f);return m.start>=0&&m.end<t.length&&s.push(m),s}function b(t,e,i){let s=0;for(let n=e;n<i;n++)P(t[n].code)&&!y(t[n+1].code)&&s++;return s}function C(t,e){return"glyphs"===t.type?function(t,e){let i=e.scale,s=[],n=t.sdfPadding,{faceInfo:r,glyphs:h,isRightToLeft:a}=t,o="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,u=M(h,0,e),c=u.length?function(t,e){let i=0;for(let e=0;e<t.length;e++){let{width:s}=t[e];i=Math.max(s,i)}let s="underline"===e.decoration?4:0,n=t[0].yMin;return{x:0,y:n,height:t[t.length-1].yMax+e.lineHeight*(t.length-1)+s-n,width:i}}(u,e):{y:0,height:0,width:0},p=o?a?1:-1:(0,l.xy)(e.horizontalAlignment),f=(0,l.UD)(e.verticalAlignment),m=+(2===f),d=m?0:f-1,x=r?.baseline??22,C=u.length>1,v=m?C?-c.y-c.height:-x:-c.y+d*(c.height/2);for(let r=0;r<u.length;r++){let{start:a,end:l,width:f}=u[r],m=o&&r<u.length-1?b(h,a,l):0,d=m>0?(c.width-f)/m:0,g=-1*(p+1)*((d>0?c.width:f)/2)-n,x=(t.isRightToLeft?u.length-1-r:r)*e.lineHeight+v-n;u[r].startX=g,u[r].startY=x;for(let t=a;t<=l;t++){let e=h[t];if(y(e.code))continue;let n=_.fromGlyph(g,x,e,i);g+=e.shaping.xAdvance,d>0&&P(e.code)&&(g+=d),s.push(n)}}return new g(s,u,e,r)}(t,e):function(t,e){let i=w(t,e),s=function(t,e){let i=[],s=e.maxLineWidth,n=0,r=0,h=0,a=0,l=0,o=0;for(;n<t.length;){let e=t[n],{glyph:u}=e;if(y(u.code))0!==n&&i.push({width:r,start:a,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),r=0,a=n+1,l=a,h=0,o=0;else if(P(u.code))l=n+1,h=0,o=e.xAdvance,r+=e.xAdvance;else if(r>s){if(l!==a){let e=l-2;r-=o,i.push({width:r-h,start:a,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),a=l,r=h}else i.push({width:r,start:a,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),a=n,l=n,r=0;r+=e.xAdvance,h+=e.xAdvance}else r+=e.xAdvance,h+=e.xAdvance;n++}if(a<t.length){let e=t.length-1;i.push({width:r,start:a,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1})}return function(t,e){for(let i=0;i<e.length;i++){let s=e[i],n=0,r=1/0,h=0,a=0;for(let e=s.start;e<=s.end;e++){let i=t[e];"underline"===i.decoration&&(a=Math.max(a,i.underlineOffset)),!y(i.glyph.code)&&!P(i.glyph.code)&&(n=Math.max(n,i.baseline),h=Math.max(h,i.lineHeight))}let l=1/0,o=-1/0;for(let e=s.start;e<=s.end;e++){let i=t[e];y(i.glyph.code)||P(i.glyph.code)||(l=Math.min(l,n-i.baseline+i.top),o=Math.max(o,n-i.baseline+i.bottom),r=Math.min(r,n-i.baseline+i.midline))}a>0&&(o=Math.max(o,n+a)),s.baseline=n,s.midline=r===1/0?n:r,s.lineHeight=Math.max(h,o),s.yMin=l===1/0?0:l,s.yMax=o===-1/0?0:o,s.startY=i>0?e[i-1].startY+e[i-1].lineHeight:0}return e}(t,i)}(i,e),n=s.length?function(t){let e=0;for(let i of t)e=Math.max(i.width+i.glyphWidthEnd,e);let i=t[0].yMin;return{x:0,y:i,height:S(t[t.length-1])-i,width:e}}(s):{width:0},r=[],h="underline"===e.decoration?"none":e.decoration,a="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,o=a?-1:(0,l.xy)(e.horizontalAlignment),u=(0,l.UD)(e.verticalAlignment),c=2===u,p=s.length?s[0].yMin:0,f=s.length?S(s[s.length-1]):0,m=f-p,d=c?s.length>1?-f:-(s[0]?.baseline??0):1===u?-p:-1===u?-f:-(p+m/2);for(let t=0;t<s.length;t++){let e=s[t],h=a&&t<s.length-1?I(i,e.start,e.end):0,l=h>0?(n.width-e.width)/h:0,u=-1*(o+1)*((l>0?n.width:e.width)/2),c=e.startY+d,p=null;e.startX=u,e.startY=c;for(let t=e.start;t<=e.end;t++){let s=i[t],{glyph:n,scale:h,fontSize:a}=s,o=u;if(y(n.code)){p=z(r,p,c,e.baseline);continue}"underline"===s.decoration?(p&&p.underlineOffset!==s.underlineOffset||p&&!k(p.color,s.color))&&(p=z(r,p,c,e.baseline)):p=z(r,p,c,e.baseline);let f=c+e.baseline-s.baseline;r.push(_.fromGlyph(u/h,f/h,n,h,{fontSize:a,color:s.color})),u+=s.xAdvance,"underline"===s.decoration&&(p??={startX:o,endX:u,glyphWidthEnd:n.rect.width*h,textureBinding:n.mosaicItem.textureBinding,underlineOffset:s.underlineOffset,color:s.color},p.endX=u,p.glyphWidthEnd=n.rect.width*h,p.textureBinding=p.textureBinding??n.mosaicItem.textureBinding),l>0&&P(n.code)&&(u+=l,p&&(p.endX=u))}z(r,p,c,e.baseline)}return new g(r,s,{...e,decoration:h})}(t,e)}function v(t,e){return"glyphs"===t.type?function(t,e){let i=e.scale,{faceInfo:s,glyphs:n}=t,r=n.reduce((t,e)=>Math.max(t,e.rect.height),0),h=n.filter(t=>!y(t.code)&&t.mosaicItem.textureBinding).map(t=>_.fromGlyph(-t.rect.width/2,-r,t,i));return new g(h,[],e,s)}(t,e):function(t,e){let i=w(t,e),s=i.reduce((t,e)=>Math.max(t,e.glyph.rect.height*e.scale),0),n=i.filter(t=>!y(t.glyph.code)&&t.glyph.mosaicItem.textureBinding).map(t=>_.fromGlyph(-t.glyph.rect.width/2,-s/t.scale,t.glyph,t.scale,{fontSize:t.fontSize,color:t.color}));return new g(n,[],e)}(t,e)}function w(t,e){let i=e.lineHeightRatio??1,n=[];for(let e of t.runs){let t=(0,s.Lz)(e.fontSize),r=t/e.glyphs.sdfSize,h=29/24*t*i,a=(e.glyphs.faceInfo?.baseline??22)*r,l=(e.glyphs.faceInfo?.midline??16)*r,o=4*r+f(e.decoration),u=1+(e.characterSpacing??0);for(let i of e.glyphs.glyphs){let s=i.shaping.xAdvance*r,c=Math.abs(i.rect.top)*r,_=c+i.rect.height*r;n.push({glyph:i,scale:r,fontSize:t,decoration:e.decoration,underlineOffset:o,color:e.color,xAdvance:y(i.code)||P(i.code)?s:s*u,top:c,bottom:_,lineHeight:h,baseline:a,midline:l})}}return n}function S(t){return t.startY+t.lineHeight}function I(t,e,i){let s=0;for(let n=e;n<i;n++)P(t[n].glyph.code)&&!y(t[n+1].glyph.code)&&s++;return s}function z(t,e,i,s){return e&&t.push(_.fromGlyph(e.startX,i+s+e.underlineOffset,p(e.endX-e.startX+e.glyphWidthEnd,e.textureBinding),1,{color:e.color})),null}function k(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}},69221(t,e,i){i.d(e,{Lu:()=>r,hV:()=>n});var s=i(90629);function n(t){return(0,s.PN)(Math.round((0,s.Lz)(t)))}function r(t){let e=(0,s.PN)(32),i=(0,s.PN)(5e3);return Math.max(e,Math.min(t||i,i))}i(39829)},86235(t,e,i){i.d(e,{HZ:()=>r});var s=i(36745),n=i(14057);class r{static{this.instance=null}static local(){return null===r.instance&&(r.instance=new r),r.instance}execute(t,e,i){return new h(t,e,i)}}class h{constructor(t,e,i){this._cursor=t,this._effect=e,this._context=i}next(){let t=this._cursor.next();if(t&&t.totalSize>0){let e=t.asJSON(),i=l[this._effect.part](e,{...this._effect,target:this._context.target,scaleFactor:this._context.scaleFactor,matcher:this._context.matcher,tileKey:this._context.tileKey,geomUnitsPerPoint:this._context.geomUnitsPerPoint});return i?s.z.fromJSONCIM(i):null}return null}}function a(t,e){let i=e.matcher,s=e.target.getObjectId(),r=(0,n.$)(e.tileKey,s),h=i.getAnalyzedGraphic(r);return h?(h.evaluateWithGeometry(t,e.geomUnitsPerPoint*e.scaleFactor),h):null}const l={textPoint:function(t,e){let i=a(t,e);return i&&i.textPoint?{x:i.textPoint[0],y:i.textPoint[1],spatialReference:t.spatialReference}:t},beginDimensionLine:function(t,e){let i=a(t,e);if(!i||!i.dimensionLine)return t;let s=i.dimensionLine[0],n=s[1][0],r=s[1][1],h=s[0][0],l=s[0][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}},endDimensionLine:function(t,e){let i=a(t,e);if(!i||!i.dimensionLine)return t;let s=i.dimensionLine[1],n=s[1][0],r=s[1][1],h=s[0][0],l=s[0][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}},beginExtensionLine:function(t,e){let i=a(t,e);if(!i||!i.extensionLines)return t;let s=i.extensionLines[0],n=s[0][0],r=s[0][1],h=s[1][0],l=s[1][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}},endExtensionLine:function(t,e){let i=a(t,e);if(!i||!i.extensionLines)return t;let s=i.extensionLines[1],n=s[0][0],r=s[0][1],h=s[1][0],l=s[1][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}}};i.d(e,["Bd",0,"beginMarker","Cr",0,"beginExtensionLine","FF",0,"endMarker","Fn",0,"beginDimensionLine","NR",0,"textPoint","tz",0,"endDimensionLine","w0",0,"endExtensionLine"])},14057(t,e,i){function s(t,e){return`${t}_${e}`}i.d(e,{$:()=>s})}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7304],{57582(t,e,i){i.d(e,{af:()=>n,rK:()=>r}),i(92602);const s="arial-unicode-ms";function n(t){if(!t)return s;let e=t.toLowerCase().split(" ").join("-");switch(e){case"serif":return"noto-serif";case"sans-serif":return"arial-unicode-ms";case"monospace":return"ubuntu-mono";case"fantasy":return"cabin-sketch";case"cursive":return"redressed";default:return e}}function r(t){let e=function(t){if(!t.weight)return"";switch(t.weight.toLowerCase()){case"bold":case"bolder":return"-bold"}return""}(t)+function(t){if(!t.style)return"";switch(t.style.toLowerCase()){case"italic":case"oblique":return"-italic"}return""}(t);return n(t.family)+(e.length>0?e:"-regular")}new Map,new Set,i.d(e,["Vb",0,s])},85560(t,e,i){function s(){let t=new Float32Array(6);return t[0]=1,t[3]=1,t}function n(t,e,i,s){let n=e[s],r=e[s+1];t[s]=i[0]*n+i[2]*r+i[4],t[s+1]=i[1]*n+i[3]*r+i[5]}i.d(e,{vt:()=>s}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){let e=new Float32Array(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},create:s,fromValues:function(t,e,i,s,n,r){let h=new Float32Array(6);return h[0]=t,h[1]=e,h[2]=i,h[3]=s,h[4]=n,h[5]=r,h},transform:n,transformMany:function(t,e,i,s=0,r=0,h=2){let a=r||e.length/h;for(let r=s;r<a;r++)n(t,e,i,r*h)}},Symbol.toStringTag,{value:"Module"}))},88340(t,e,i){function s(){return new Float32Array(2)}function n(t,e){let i=new Float32Array(2);return i[0]=t,i[1]=e,i}function r(){return s()}function h(){return n(1,1)}function a(){return n(1,0)}function l(){return n(0,1)}i.d(e,{fA:()=>n,vt:()=>s});const o=r(),u=h(),c=a(),_=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:_,ZEROS:o,clone:function(t){let e=new Float32Array(2);return e[0]=t[0],e[1]=t[1],e},create:s,fromValues:n,ones:h,unitX:a,unitY:l,zeros:r},Symbol.toStringTag,{value:"Module"})),i.d(e,["Un",0,u,"uY",0,o])},16905(t,e,i){i.d(e,{$0:()=>o,B8:()=>r,D_:()=>n,Tl:()=>l,e$:()=>a,lw:()=>h});var s=i(34304);function n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function r(t,e){let i=e[0],s=e[1],n=e[2],r=e[3],h=e[4],a=e[5],l=i*r-s*n;return l?(l=1/l,t[0]=r*l,t[1]=-s*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*a-r*h)*l,t[5]=(s*h-i*a)*l,t):null}function h(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=i[0],u=i[1],c=i[2],_=i[3],p=i[4],f=i[5];return t[0]=s*o+r*u,t[1]=n*o+h*u,t[2]=s*c+r*_,t[3]=n*c+h*_,t[4]=s*p+r*f+a,t[5]=n*p+h*f+l,t}function a(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=Math.sin(i),u=Math.cos(i);return t[0]=s*u+r*o,t[1]=n*u+h*o,t[2]=s*-o+r*u,t[3]=n*-o+h*u,t[4]=a,t[5]=l,t}function l(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=i[0],u=i[1];return t[0]=s,t[1]=n,t[2]=r,t[3]=h,t[4]=s*o+r*u+a,t[5]=n*o+h*u+l,t}function o(t,e){let i=Math.sin(e),s=Math.cos(e);return t[0]=s,t[1]=i,t[2]=-i,t[3]=s,t[4]=0,t[5]=0,t}function u(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t[4]=e[4]-i[4],t[5]=e[5]-i[5],t}const c=h,_=u;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t[4]=e[4]+i[4],t[5]=e[5]+i[5],t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},determinant:function(t){return t[0]*t[3]-t[1]*t[2]},equals:function(t,e){let i=t[0],n=t[1],r=t[2],h=t[3],a=t[4],l=t[5],o=e[0],u=e[1],c=e[2],_=e[3],p=e[4],f=e[5],m=(0,s.FD)();return Math.abs(i-o)<=m*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-u)<=m*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-c)<=m*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(h-_)<=m*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(a-p)<=m*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(l-f)<=m*Math.max(1,Math.abs(l),Math.abs(f))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+1)},fromRotation:o,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},identity:n,invert:r,mul:c,multiply:h,multiplyScalar:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*i,t[5]=e[5]*i,t},multiplyScalarAndAdd:function(t,e,i,s){return t[0]=e[0]+i[0]*s,t[1]=e[1]+i[1]*s,t[2]=e[2]+i[2]*s,t[3]=e[3]+i[3]*s,t[4]=e[4]+i[4]*s,t[5]=e[5]+i[5]*s,t},rotate:a,scale:function(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],l=e[5],o=i[0],u=i[1];return t[0]=s*o,t[1]=n*o,t[2]=r*u,t[3]=h*u,t[4]=a,t[5]=l,t},set:function(t,e,i,s,n,r,h){return t[0]=e,t[1]=i,t[2]=s,t[3]=n,t[4]=r,t[5]=h,t},str:function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},sub:_,subtract:u,translate:l},Symbol.toStringTag,{value:"Module"}))},36745(t,e,i){i.d(e,{z:()=>a});var s=i(4718),n=i(51118),r=i(60408),h=i(92722);class a{static fromOptimized(t,e,i=1){return(new l).initialize(t,e,i)}static fromJSON(t){let[e,i]=u(t),s=(0,r.Pv)(t),n=(0,r.W0)(t);return(new c).initialize(e,i,s,n,1)}static fromOptimizedCIM(t,e,i=1){return(new _).initialize(t,e,i)}static fromJSONCIM(t,e=1){let[i,s]=u(t),n=(0,r.Pv)(t),h=(0,r.W0)(t);return(new p).initialize(i,s,n,h,e)}static fromFeatureSetReader(t){let e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimized(e,i):null}static fromFeatureSetReaderCIM(t){let e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimizedCIM(e,i):null}static createEmptyOptimized(t,e=!1,i=!1,s=1){return(new _).initialize(new h.A([],[],e,i),t,s)}static createEmptyJSON(t,e=!1,i=!1){return(new c).initialize([],t,e,i,1)}static createEmptyOptimizedCIM(t,e=!1,i=!1,s=1){return(new _).initialize(new h.A([],[],e,i),t,s)}static createEmptyJSONCIM(t,e=!1,i=!1,s=1){return(new p).initialize([],t,e,i,s)}asJSON(){let t=(0,n.x)(this),{hasZ:e,hasM:i}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:i}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:i?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:i}:{paths:t,hasZ:e,hasM:i}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,i=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;let s=t,n=e;for(;this.nextPoint();)i+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return i+=(t-s)*(e+n),-.5*i}invertY(){this.yFactor*=-1}}class l extends a{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,i){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=i,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){let e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){let t=this._end,e=this._geometry.coords,i=this._pathOffset;return(new l).initialize(new h.A([this.pathSize],e.slice(i,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){let t=this._end,e=this._stride,i=this._geometry.coords,s=0;for(let n=this._pathOffset+e;n<t;n+=e){let t=i[n-e],r=i[n-e+1],h=i[n]-t,a=i[n+1]-r;s+=Math.sqrt(h*h+a*a)}return s}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(let e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){let e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){let t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){let t=this._geometry.coords,e=this._pathOffset,i=this._end-this._stride;for(let s=0;s<this._stride;s++)if(t[e+s]!==t[i+s])return!1;return!0}clone(){return(new l).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){let{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){let t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function o(t){let e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function u(t){return(0,r.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,r.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,r.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,r.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,r.fT)(t)?[[[o(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class c extends a{initialize(t,e,i,s,n){return this._paths=t,this.geometryType=e,this.hasZ=i,this.hasM=s,this._pathIndex=this._pointIndex=-1,this.yFactor=n,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){let t=this._currentPath.length,e=this._currentPath,i=0;for(let s=1;s<t;s++){let t=e[s-1],n=e[s],r=t[0],h=t[1],a=n[0]-r,l=n[1]-h;i+=Math.sqrt(a*a+l*l)}return i}startPath(){this._paths.push([])}getCurrentPath(){return(new c).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){let e=(0,n.x)(t);for(let t of e)this.pushPath(t)}asOptimized(){let{hasZ:t,hasM:e}=this,i=new h.A([],[],t,e),{coords:s,lengths:n}=i;if("esriGeometryPoint"===this.geometryType)s.push(...this._paths[0][0]),n.length=0;else for(let i of this._paths){for(let n of i)s.push(n[0]),s.push(n[1]*this.yFactor),t&&s.push(n[2]),e&&s.push(n[this._mIndex]);n.push(i.length)}return i}isClosed(){let t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}clone(){return(new c).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class _ extends l{initialize(t,e,i){return super.initialize(t,e,i),this._controlPoints||=this._controlPoints=Array(this.totalSize).fill(void 0).map(t=>new Set),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){let t=(new _).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class p extends c{initialize(t,e,i,s,n){return super.initialize(t,e,i,s,n)}clone(){return(new p).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},78957(t,e,i){i.d(e,{d:()=>u,R:()=>M});class s{constructor(t=n){this._data=[],this._compare=t}get size(){return this._data.length}enqueue(t){if(null==t)return;let{_data:e,_compare:i}=this;e.push(t);let s=e.length-1>>>0,n=e[s];for(;s>0;){let t=s-1>>1,r=e[t];if(!(i(r,n)<=0))break;e[t]=n,e[s]=r,s=t}}dequeue(){let{_data:t,_compare:e}=this,i=t[0],s=t.pop();if(0===t.length)return i;t[0]=s;let n,r,h=0,a=t.length,l=t[0],o=null;for(;;){let i=2*h+1,s=2*h+2;if(o=null,i<a&&(n=t[i],e(n,l)>0&&(o=i)),s<a&&(r=t[s],(null===o&&e(r,l)<=0||null!==o&&e(r,n)<=0)&&(o=s)),null===o)break;t[h]=t[o],t[o]=l,h=o}return i}}const n=(t,e)=>t<e?-1:+(t>e);var r=i(19419),h=i(537),a=i(12359),l=i(95108),o=i(12176);function u(t){if(0===t.totalSize)return null;let e=(0,h.z8)(t);if(!e)return null;let i=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19,s=0,n=0;t.reset();for(let e=0;t.nextPath();e++){let i=t.getCurrentRingArea();i>n&&(n=i,s=e)}if(t.seekPath(s),0===t.pathSize)return null;t.seekPathStart();let l=(0,h.B$)(t);if(Math.abs(n)<=2*i*i)return[(l[0]+l[2])/2,(l[1]+l[3])/2];t.seekPathStart();let o=(0,a.w2)(t,(0,r.vt)());if(null===o)return null;if(t.totalPoints<4)return o;let u=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],f=[NaN,NaN,NaN,NaN],m=[NaN,NaN,NaN,NaN],d=!1,P=_(o,t,!0);0===P.distance&&(d=!0,u[0][0]=o[0],u[0][1]=o[1],P=_(o,t,!1)),f[0]=P.distance,m[0]=0;let M=[NaN,NaN],b=!1,C=.25,v=-1,w=NaN;do{if(w=NaN,u[1]=p(t,g(l[0],l[2],C),0,e),!isNaN(u[1][0])&&!isNaN(u[1][1])&&(P=_(u[1],t,!1),w=P.distance),!isNaN(w)&&w>i&&c(u[1],t))b=!0,f[1]=w,m[1]=x(u[1],o);else if(!isNaN(w)&&w>v&&(v=w,M[0]=u[1][0],M[1]=u[1][1]),C-=.01,C<.1){if(!(v>=0))break;b=!0,f[1]=v,u[1][0]=M[0],u[1][1]=M[1],m[1]=x(u[1],o)}}while(!b);b=!1,C=.5,v=-1;let S=.01,I=1;do{if(w=NaN,u[2]=p(t,g(l[0],l[2],C),0,e),!isNaN(u[2][0])&&!isNaN(u[2][1])&&(P=_(u[2],t,!1),w=P.distance),!isNaN(w)&&w>i&&c(u[2],t))b=!0,f[2]=w,m[2]=x(u[2],o);else if(!isNaN(w)&&w>v)v=w,M[0]=u[2][0],M[1]=u[2][1];else if(w>v&&(v=w,M[0]=u[2][0],M[1]=u[2][1]),C=.5+S*I,S+=.01,I*=-1,C<.3||C>.7){if(!(v>=0))break;b=!0,f[2]=v,u[2][0]=M[0],u[2][1]=M[1],m[2]=x(u[2],o)}}while(!b);b=!1,C=.75,v=-1;do{if(w=NaN,u[3]=p(t,g(l[0],l[2],C),0,e),!isNaN(u[3][0])&&!isNaN(u[3][1])&&(P=_(u[3],t,!1),w=P.distance),!isNaN(w)&&w>i&&c(u[3],t))b=!0,f[3]=w,m[3]=x(u[3],o);else if(w>v&&(v=w,M[0]=u[3][0],M[1]=u[3][1]),C+=.01,C>.9){if(!(v>=0))break;b=!0,f[3]=v,u[3][0]=M[0],u[3][1]=M[1],m[3]=x(u[3],o)}}while(!b);let z,k=[0,1,2,3],A=+!d;for(let t=A;t<4;t++)for(let t=A;t<3;t++){let e=m[t],i=m[t+1];y(e,i)>0&&(z=k[t],k[t]=k[t+1],k[t+1]=z,m[t]=i,m[t+1]=e)}let T=A,E=0,O=0;for(let t=A;t<4;t++){switch(t){case 0:O=2*f[k[t]];break;case 1:O=1.66666666*f[k[t]];break;case 2:O=1.33333333*f[k[t]];break;case 3:O=f[k[t]]}O>E&&(E=O,T=k[t])}return u[T]}function c(t,e){let i,s,n,r,h=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(i=e.x,s=e.y;e.nextPoint();i=n,s=r)n=e.x,r=e.y,s>t[1]!=r>t[1]&&((n-i)*(t[1]-s)-(r-s)*(t[0]-i)>0?h++:h--);return 0!==h}function _(t,e,i){if(i&&c(t,e))return{coord:t,distance:0};let s=1/0,n=0,r=0,h=[0,0],a=[0,0],o=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(h[0]=e.x,h[1]=e.y;e.nextPoint();h=a){a=[e.x,e.y],(0,l.gR)(o,t,h,a);let i=x(t,o);i<s&&(s=i,n=o[0],r=o[1])}return{coord:[n,r],distance:Math.sqrt(s)}}function p(t,e,i,s){let n=[e,0],h=1/0,a=1/0,l=!1,u=!1,c=[[e,s[1]-1],[e,s[3]+1]],_=[0,0],p=[0,0],d=[0,0],g=[[0,0],[0,0]],x=(0,r.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(g[0][0]=t.x,g[0][1]=t.y;t.nextPoint();g[0][0]=g[1][0],g[0][1]=g[1][1]){if(g[1][0]=t.x,g[1][1]=t.y,null===f(x,g)||(p[0]=c[0][0],p[1]=c[0][1],d[0]=c[1][0],d[1]=c[1][1],0===m(x,p,d))||!(0,o.Ql)(c[0],c[1],g[0],g[1],_))continue;let e=_[1];h>a?e<h&&(h=e,l=!0):e<a&&(a=e,u=!0)}return l&&u?n[1]=(h+a)/2:n[0]=n[1]=NaN,n}function f(t,e){if(e.length<2)return null;t||=(0,r.vt)();let[i,s]=e[0],[n,h]=e[1];return t[0]=Math.min(i,n),t[1]=Math.min(s,h),t[2]=Math.max(i,n),t[3]=Math.max(s,h),t}function m(t,e,i){let s=d(e,t),n=d(i,t),r=t[0],h=t[1],a=t[2],l=t[3];if(s&n)return 0;if(!(s|n))return 4;let o=!!s|(n?2:0);do{let o=i[0]-e[0],u=i[1]-e[1];if(o>u)3&s?(1&s?(e[1]+=u*(r-e[0])/o,e[0]=r):(e[1]+=u*(a-e[0])/o,e[0]=a),s=d(e,t)):3&n?(1&n?(i[1]+=u*(r-i[0])/o,i[0]=r):(i[1]+=u*(a-i[0])/o,i[0]=a),n=d(i,t)):s?(4&s?(e[0]+=o*(h-e[1])/u,e[1]=h):(e[0]+=o*(l-e[1])/u,e[1]=l),s=d(e,t)):(4&n?(i[0]+=o*(h-i[1])/u,i[1]=h):(i[0]+=o*(l-i[1])/u,i[1]=l),n=d(i,t));else if(12&s?(4&s?(e[0]+=o*(h-e[1])/u,e[1]=h):(e[0]+=o*(l-e[1])/u,e[1]=l),s=d(e,t)):12&n?(4&n?(i[0]+=o*(h-i[1])/u,i[1]=h):(i[0]+=o*(l-i[1])/u,i[1]=l),n=d(i,t)):s?(1&s?(e[1]+=u*(r-e[0])/o,e[0]=r):(e[1]+=u*(a-e[0])/o,e[0]=a),s=d(e,t)):(1&n?(i[1]+=u*(r-i[0])/o,i[0]=r):(i[1]+=u*(a-i[0])/o,i[0]=a),n=d(i,t)),s&n)return 0}while(s|n);return o}function d(t,e){return+(t[0]<e[0])|(t[0]>e[2])<<1|(t[1]<e[1])<<2|(t[1]>e[3])<<3}function g(t,e,i){return t+(e-t)*i}function x(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function y(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;let i=isNaN(t),s=isNaN(e);return i<s?-1:+(i>s)}class P{constructor(t,e,i,s){this.x=t,this.y=e,this.cellSize=i,this.distancefromCellCenter=(0,l.Xf)(t,e,s),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}function M(t){if(!t.nextPath()||!t.pathSize)return null;let e=(0,h.B$)(t),i=e[2]-e[0],n=e[3]-e[1];if(0===i||0===n)return[e[0]+i/2,e[1]+n/2];let r=Math.max(Math.min(i,n)/100,1),l=new s((t,e)=>e.maxDistanceToPolygon-t.maxDistanceToPolygon),o=Math.min(i,n),u=o/2,c=0,_=0;for(c=e[0];c<e[2];c+=o)for(_=e[1];_<e[3];_+=o)l.enqueue(new P(c+u,_+u,u,t));t.reset(),t.nextPath();let p=(0,a.IK)(t);if(null===p)return null;let f,m=new P(p[0],p[1],0,t);for(;l.size>0;)f=l.dequeue(),f.distancefromCellCenter>m.distancefromCellCenter&&(m=f),!(f.maxDistanceToPolygon-m.distancefromCellCenter<=r)&&(u=f.cellSize/2,l.enqueue(new P(f.x-u,f.y-u,u,t)),l.enqueue(new P(f.x+u,f.y-u,u,t)),l.enqueue(new P(f.x-u,f.y+u,u,t)),l.enqueue(new P(f.x+u,f.y+u,u,t)));return[m.x,m.y]}},41437(t,e,i){i.d(e,{Aq:()=>n,pC:()=>h,rx:()=>a,zq:()=>r});var s=i(98939);function n(t,e){t[4]=e}function r(t){if(!(Math.abs(t)>.5*Math.PI))return null;let e=t+Math.PI,i=Math.atan2(Math.sin(e),Math.cos(e));return Number.isNaN(i)?null:i}class h{constructor(t,e=!0,i=!0,n=0){this._angleToLine=!0,this._keepUpright=!1,this.isClosed=!1,this.geometryCursor=null,this.geometryCursor=!e&&"esriGeometryPolygon"===t.geometryType||!i&&"esriGeometryPolyline"===t.geometryType?null:t,this.geomUnitsPerPoint=n,this.iterateMultiPath=!1,this.iteratePath=!1,this.internalPlacement=new s.W}next(){if(!this.geometryCursor)return null;let t=this.processMultiPath(this.geometryCursor);if((!this.iterateMultiPath||!t)&&(this.geometryCursor=null),!t)return null;let e=t.getAngle(),i=this._angleToLine&&this._keepUpright?r(e):null;return null!=i&&t.setRotate(i),t}processMultiPath(t){for(;this.iteratePath||t.pathIndex<t.totalSize-1;){this.iteratePath||t.nextPath(),this.iterateMultiPath=!0;let e=this.processPath(t);if(e)return e}return this.iterateMultiPath=!1,null}}class a{constructor(t,e,i,s=0){this.isClosed=!1,this.inputGeometries=t,this.acceptPolygon=e,this.acceptPolyline=i,this.geomUnitsPerPoint=s,this.iteratePath=!1,this.multiPathCursor=null}next(){for(;;){if(!this.multiPathCursor){let t=this.inputGeometries.next();for(;t&&(this.isClosed=this.acceptPolygon&&"esriGeometryPolygon"===t.geometryType||"esriGeometryEnvelope"===t.geometryType,this.multiPathCursor=t,!this.multiPathCursor);)t=this.inputGeometries.next();if(!this.multiPathCursor)return null}for(;this.iteratePath||this.multiPathCursor.nextPath();){this.multiPathCursor.seekPathStart();let t=this.processPath(this.multiPathCursor);if(t)return t}this.multiPathCursor=null}}}},35833(t,e,i){i.d(e,{ai:()=>d,g1:()=>g,kT:()=>x,qc:()=>y});var s=i(18370),n=i(36745),r=i(6774);const h=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(1797)]).then(()=>i(46160))),a=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6491)]).then(()=>i(55666))),l=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(8679)]).then(()=>i(51190))),o=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(837)]).then(()=>i(97528))),u=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(3030)]).then(()=>i(50795))),c=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(6936)]).then(()=>i(15605))),_=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(3456)]).then(()=>i(3637))),p=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(4790)]).then(()=>i(67520))),f=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1948)]).then(()=>i(83299)));let m;function d(t){switch(t.type){case"CIMGeometricEffectDonut":case"CIMGeometricEffectBuffer":return h.getImportPromise();case"CIMGeometricEffectEnclosingPolygon":return a.getImportPromise();case"CIMGeometricEffectOffset":return Promise.all([p.getImportPromise(),c.getImportPromise(),u.getImportPromise()]);case"CIMGeometricEffectControlMeasureLine":return c.getImportPromise();case"CIMGeometricEffectTaperedPolygon":return Promise.all([_.getImportPromise(),l.getImportPromise(),o.getImportPromise()]);default:return Promise.resolve()}}function g(t){return"CIMMarkerPlacementAtMeasuredUnits"===t.type?f.getImportPromise():Promise.resolve()}class x{constructor(t){this._geometry=t}next(){let t=this._geometry;return this._geometry=null,t}}function y(t,e,i){if(!t)return null;m||=new r.O3(0,0,0,1);let s,h,a=i?-1:1,l="esriGeometryPolygon"===t.geometryType,o=l?3:2,u=l?3:2;for(m.reset(o),m.setPixelMargin(e+1),m.setExtent(512);t.nextPath();)if(!(t.pathSize<u)){for(t.nextPoint(),s=t.x,h=a*t.y,m.moveTo(s,h);t.nextPoint();)s=t.x,h=a*t.y,m.lineTo(s,h);l&&m.close()}let c=m.result(!1);if(c){let e=n.z.createEmptyOptimizedCIM(t.geometryType);for(let t of c){e.startPath();for(let i of t)e.pushXY(i.x,a*i.y)}return e.reset(),e}return null}i.d(e,["$Z",0,h,"NS",0,o,"Xs",0,l,"hd",0,u,"lX",0,a,"mO",0,c,"vZ",0,f,"xR",0,p,"yM",0,_])},54258(t,e,i){i.d(e,{A:()=>ee,c:()=>ie});var s=i(34653);class n{constructor(){this.type="CIMBackgroundCallout"}static{this.instance=null}static local(){return null===n.instance&&(n.instance=new n),n.instance}execute(t,e,i){if("CIMBackgroundCallout"!==e?.type)throw Error("Invalid effect type for BackgroundCalloutEffect");return new r(t,e,i)}}class r{constructor(t,e,i){let{geomUnitsPerPoint:n}=i;if(!n)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for BackgroundCalloutEffect");let r=n*(i.scaleFactor??1);this._inputGeometries=t,this._part=e.part,this._leaderTolerance=(e.leaderTolerance??0)*r,this._leaderOffset=(e.leaderOffset??0)*r,this._gap=(e.gap??0)*r,this._geomUnitsPerPoint=r,this._hasAccentBar=!0===e.hasAccentBar,this._lineStyle=e.lineStyle,this._margins=(0,s.QB)(e.margin,r),this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;let i=(0,s.XD)(e.bounds,this._margins);switch(this._part){case"accent-bar":return(0,s.W)(i,e.anchor,this._gap,t.yFactor,this._lineStyle,e.bounds);case"background":return(0,s._T)(i,t.yFactor);default:{if((0,s.gR)(i,e.anchor))return null;let n=(0,s.sz)(i,e.anchor,this._lineStyle,this._gap,this._hasAccentBar,e.bounds);return(0,s.Io)(n,e.anchor)<this._leaderTolerance?null:(0,s.n_)(i,e.anchor,this._lineStyle,this._leaderOffset,this._gap,t.yFactor,this._geomUnitsPerPoint,this._hasAccentBar,e.bounds)}}}return null}}class h{constructor(){this.type="CIMBalloonCallout"}static{this.instance=null}static local(){return null===h.instance&&(h.instance=new h),h.instance}execute(t,e,i){if("CIMBalloonCallout"!==e?.type)throw Error("Invalid effect type for BalloonCalloutEffect");return new a(t,e,i)}}class a{constructor(t,e,i){let{geomUnitsPerPoint:n}=i;if(!n)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for BalloonCalloutEffect");let r=n*(i.scaleFactor??1);this._inputGeometries=t,this._balloonStyle=e.balloonStyle,this._dartWidth=null==e.dartWidth?null:e.dartWidth*r,this._part=e.part,this._separateDart=!0===e.separateDart,this._leaderTolerance=(e.leaderTolerance??0)*r,this._margins=(0,s.QB)(e.margin,r),this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;let i=(0,s.XD)(e.bounds,this._margins);if("dart"===this._part){let n=(0,s.ZO)(i,e.anchor,this._balloonStyle,this._leaderTolerance,t.yFactor,this._dartWidth,e.layoutAnchor);if(n)return n;continue}return(0,s.IF)(i,e.anchor,this._balloonStyle,this._leaderTolerance,t.yFactor,this._dartWidth,e.layoutAnchor,!this._separateDart)}return null}}class l{constructor(){this.type="CIMPointSymbolCallout"}static{this.instance=null}static local(){return null===l.instance&&(l.instance=new l),l.instance}execute(t,e,i){if("CIMPointSymbolCallout"!==e?.type)throw Error("Invalid effect type for PointSymbolCalloutEffect");return new o(t,e,i)}}class o{constructor(t,e,i){let{geomUnitsPerPoint:s}=i;if(!s)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for PointSymbolCalloutEffect");let n=s*(i.scaleFactor??1);this._inputGeometries=t,this._part=e.part,this._leaderTolerance=(e.leaderTolerance??0)*n,this._leaderOffset=(e.leaderOffset??0)*n,this._gap=(e.gap??0)*n,this._geomUnitsPerPoint=n,this._lineStyle=e.lineStyle,this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;if("marker"===this._part)return(0,s.DJ)((0,s.gX)(e.bounds),t.yFactor);if((0,s.gR)(e.bounds,e.anchor))return null;let i=(0,s.sz)(e.bounds,e.anchor,this._lineStyle,this._gap);return(0,s.Io)(i,e.anchor)<this._leaderTolerance?null:(0,s.n_)(e.bounds,e.anchor,this._lineStyle,this._leaderOffset,this._gap,t.yFactor,this._geomUnitsPerPoint)}return null}}var u=i(36745);class c{constructor(){this.type="CIMSimpleLineCallout"}static{this.instance=null}static local(){return null===c.instance&&(c.instance=new c),c.instance}execute(t,e,i){if("CIMSimpleLineCallout"!==e?.type)throw Error("Invalid effect type for SimpleLineCalloutEffect");return new _(t,e,i)}}class _{constructor(t,e,i){this._inputGeometries=t,this._autoSnap=e.autoSnap??!0;let s=i.geomUnitsPerPoint*(i.scaleFactor??1);this._leaderTolerance=(e.leaderTolerance??0)*s,this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=this._createLeaderGeometry(t);if(e)return e}return null}_createLeaderGeometry(t){let e=(0,s.EE)(t,this._calloutContext);if(e){let i=this._autoSnap?(0,s.E0)(e.bounds,e.layoutAnchor):function(t){return{x:t.xmin,y:t.ymin}}(e.bounds);return function(t,e){return e.x>=t.xmin&&e.x<=t.xmax&&e.y>=t.ymin&&e.y<=t.ymax}(e.bounds,e.layoutAnchor)||!this._passesLeaderTolerance(i,e.layoutAnchor)?null:function(t,e,i){let s=u.z.createEmptyOptimizedCIM("esriGeometryPolyline",!1,!1,i);return s.startPath(),s.pushXY(t.x,i*t.y),s.pushXY(e.x,i*e.y),s.reset(),s}(i,e.anchor,t.yFactor)}return"esriGeometryPolyline"===t.geometryType&&this._passesPolylineTolerance(t)?t.clone():null}_passesLeaderTolerance(t,e){return this._leaderTolerance<=0||function(t,e){return Math.hypot(e.x-t.x,e.y-t.y)}(t,e)>=this._leaderTolerance}_passesPolylineTolerance(t){if(this._leaderTolerance<=0)return!0;let e=t.clone(),i=0;for(;e.nextPath();)i+=e.pathLength();return i>=this._leaderTolerance}}class p{static{this.instance=null}static local(){return null===p.instance&&(p.instance=new p),p.instance}execute(t,e,i){return new f(t,e)}}class f{constructor(t,e){this._inputGeometries=t,this._angleTolerance=void 0===e.angleTolerance?120:e.angleTolerance,this._maxCosAngle=Math.cos((1-Math.abs(this._angleTolerance)/180)*Math.PI)}next(){let t=this._inputGeometries.next();if(!t)return null;for(;t;){if("esriGeometryPolygon"===t.geometryType)this._isClosed=!0;else if("esriGeometryPolyline"===t.geometryType)this._isClosed=!1;else{if("esriGeometryEnvelope"!==t.geometryType){t=this._inputGeometries.next();continue}if(this._maxCosAngle)return t;this._isClosed=!0}for(;t.nextPath();)this._processPath(t);return t.reset(),t}return null}_processPath(t){if(t.nextPoint()){let e=t.x,i=t.y,s=e,n=i,r=t.pathSize,h=0,a=0,l=0,o=0,u=0,c=0;this._isClosed&&++r;for(let _=1;t.nextPoint()||_<r;++_){let p,f;this._isClosed&&_===r-1?(p=e,f=i):(p=t.x,f=t.y);let m=p-s,d=f-n,g=Math.sqrt(m*m+d*d);_>1&&g>0&&l>0&&(h*m+a*d)/g/l<=this._maxCosAngle&&t.setControlPointAt(_-1),1===_&&(o=m,u=d,c=g),g>0&&(s=p,n=f,h=m,a=d,l=g)}this._isClosed&&l>0&&c>0&&(h*o+a*u)/c/l<=this._maxCosAngle&&t.setControlPointAt(0)}}}var m=i(51118),d=i(41437);class g{constructor(t=0,e=!1){}isEmpty(t){if(!t.nextPoint())return!0;let e,i,s,n;for(e=t.x,i=t.y;t.nextPoint();e=i,i=n)if(s=t.x,n=t.y,s!==e||n!==i)return t.seekPathStart(),!1;return t.seekPathStart(),!0}normalize(t){let e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);0!==e&&(t[0]/=e,t[1]/=e)}getLength(t,e,i,s){let n=i-t,r=s-e;return Math.sqrt(n*n+r*r)}getSegLength(t){let[[e,i],[s,n]]=t;return this.getLength(e,i,s,n)}getCoord2D(t,e,i,s,n){return[t+(i-t)*n,e+(s-e)*n]}getSegCoord2D(t,e){let[[i,s],[n,r]]=t;return this.getCoord2D(i,s,n,r,e)}getAngle(t,e,i,s,n){let r=i-t,h=s-e;return Math.atan2(h,r)}getAngleCS(t,e,i,s,n,r){t??=[0,0];let h=s-e,a=n-i,l=Math.sqrt(h*h+a*a);return 0===l?(t[0]=1,t[1]=0,t):(t[0]=h/l,t[1]=a/l,t)}getSegAngleCS(t,e,i){let[[s,n],[r,h]]=e;return this.getAngleCS(t,s,n,r,h,i)}cut(t,e,i,s,n,r){return[n<=0?[t,e]:this.getCoord2D(t,e,i,s,n),r>=1?[i,s]:this.getCoord2D(t,e,i,s,r)]}getSubCurve(t,e,i){let s=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return this.appendSubCurve(s,t,e,i)?s:null}appendSubCurve(t,e,i,s){t.startPath(),e.seekPathStart();let n=0,r=!0;if(!e.nextPoint())return!1;let h=e.x,a=e.y;for(;e.nextPoint();){let l=this.getLength(h,a,e.x,e.y);if(0!==l){if(r){if(n+l>i){let o=(i-n)/l,u=1,c=!1;n+l>=s&&(u=(s-n)/l,c=!0);let _=this.cut(h,a,e.x,e.y,o,u);if(_&&t.pushPoints(_),c)break;r=!1}}else{if(n+l>s){let i=this.cut(h,a,e.x,e.y,0,(s-n)/l);i&&t.pushPoint(i[1]);break}t.pushXY(e.x,e.y)}n+=l,h=e.x,a=e.y}else h=e.x,a=e.y}return!0}getCIMPointAlong(t,e){if(!t.nextPoint())return null;let i,s,n,r,h=0;for(i=t.x,s=t.y;t.nextPoint();i=n,s=r){n=t.x,r=t.y;let a=this.getLength(i,s,n,r);if(0!==a){if(h+a>e){let t=(e-h)/a;return this.getCoord2D(i,s,n,r,t)}h+=a}}return null}offset(t,e,i,s,n){if(!t||t.length<2)return null;let r=0,h=t[r++],a=r;for(;r<t.length;){let e=t[r];(e[0]!==h[0]||e[1]!==h[1])&&(r!==a&&(t[a]=t[r]),h=t[a++]),r++}let l=t[0][0]===t[a-1][0]&&t[0][1]===t[a-1][1];if(l&&--a,a<(l?3:2))return null;let o=[];h=l?t[a-1]:null;let u=t[0];for(let n=0;n<a;n++){let r=n===a-1?l?t[0]:null:t[n+1];if(h)if(r){let t=[r[0]-u[0],r[1]-u[1]];this.normalize(t);let n=[u[0]-h[0],u[1]-h[1]];this.normalize(n);let a=n[0]*t[1]-n[1]*t[0],l=n[0]*t[0]+n[1]*t[1];if(0===a&&1===l){u=r;continue}if(a>=0==e<=0){if(l<1){let i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);let r=Math.sqrt((1+l)/2);if(r>1/s){let t=-Math.abs(e)/r;o.push([u[0]-i[0]*t,u[1]-i[1]*t])}}}else switch(i){case"Mitered":{let i=Math.sqrt((1+l)/2);if(i>0&&1/i<s){let s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);let r=Math.abs(e)/i;o.push([u[0]-s[0]*r,u[1]-s[1]*r]);break}}case"Bevelled":o.push([u[0]+n[1]*e,u[1]-n[0]*e]),o.push([u[0]+t[1]*e,u[1]-t[0]*e]);break;case"Rounded":if(l<1){o.push([u[0]+n[1]*e,u[1]-n[0]*e]);let i=Math.floor(2.5*(1-l));if(i>0){let s=1/i,r=s;for(let h=1;h<i;h++,r+=s){let i=[n[1]*(1-r)+t[1]*r,-n[0]*(1-r)-t[0]*r];this.normalize(i),o.push([u[0]+i[0]*e,u[1]+i[1]*e])}}o.push([u[0]+t[1]*e,u[1]-t[0]*e])}break;default:if(a<0)o.push([u[0]+(n[1]+n[0])*e,u[1]+(n[1]-n[0])*e]),o.push([u[0]+(t[1]-t[0])*e,u[1]-(t[0]+t[1])*e]);else{let i=Math.sqrt((1+Math.abs(l))/2),s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);let r=e/i;o.push([u[0]-s[0]*r,u[1]-s[1]*r])}}}else{let t=[u[0]-h[0],u[1]-h[1]];this.normalize(t),o.push([u[0]+t[1]*e,u[1]-t[0]*e])}else{let t=[r[0]-u[0],r[1]-u[1]];this.normalize(t),o.push([u[0]+t[1]*e,u[1]-t[0]*e])}h=u,u=r}return o.length<(l?3:2)?null:(l&&o.push([o[0][0],o[0][1]]),o)}}class x{static{this.instance=null}static local(){return null===x.instance&&(x.instance=new x),x.instance}execute(t,e,i){return new y(t,e,i)}}class y extends d.rx{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new g;let s=i.geomUnitsPerPoint;this._width=(void 0===e.width?5:e.width)*s,this._arrowType=void 0===e.geometricEffectArrowType?void 0===e.arrowType?"OpenEnded":e.arrowType:e.geometricEffectArrowType,this._offsetFlattenError=.03*s}processPath(t){let e=u.z.createEmptyOptimizedCIM(t.geometryType);switch(this._arrowType){case"OpenEnded":default:this._constructSimpleArrow(e,t,!0);break;case"Block":this._constructSimpleArrow(e,t,!1);break;case"Crossed":this._constructCrossedArrow(e,t)}return e}_constructSimpleArrow(t,e,i){let s=e.pathLength(),n=this._width;s<2*n&&(n=s/2);let r=this._curveHelper.getSubCurve(e,0,s-n);if(!r||!r.nextPath())return;r.seekPathStart();let h=n/2;if(this._curveHelper.isEmpty(r))return;let a=(0,m.A)(r),l=this._constructOffset(a,-h);if(!l)return;let o=this._constructOffset(a,h);if(!o)return;let u=this._constructArrowBasePoint(l,-h/2);if(!u)return;let c=this._constructArrowBasePoint(o,h/2);if(!c)return;e.seekInPath(e.pathSize-1);let _=[e.x,e.y];t.pushPath(o),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(c),t.nextPoint(),t.setControlPoint(),t.pushPoint(_),t.nextPoint(),t.setControlPoint(),t.pushPoint(u),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.setControlPoint(),i||(t.setControlPointAt(0),t.setControlPointAt(t.pathSize-1),t.pushPoint(o[0])),t.reset()}_constructCrossedArrow(t,e){let i=e.pathLength(),s=this._width;i<3.732050807568877*s&&(s=i/3.732050807568877),e.seekPathStart();let n=this._curveHelper.getSubCurve(e,0,i-2.732050807568877*s);if(!n)return;n.nextPath();let r=s/2;if(this._curveHelper.isEmpty(n))return;let h=(0,m.A)(n),a=this._constructOffset(h,r);if(!a)return;let l=this._constructOffset(h,-r);if(!l)return;let o=this._curveHelper.getSubCurve(e,0,i-s);if(!o||(o.nextPath(),this._curveHelper.isEmpty(o)))return;let u=(0,m.A)(o),c=this._constructOffset(u,r);if(!c)return;let _=this._constructOffset(u,-r);if(!_)return;let p=c[c.length-1],f=this._constructArrowBasePoint(c,r/2);if(!f)return;let d=_[_.length-1],g=this._constructArrowBasePoint(_,-r/2);if(!g)return;e.seekInPath(e.pathSize-1);let x=[e.x,e.y];t.pushPath(a),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(d),t.nextPoint(),t.setControlPoint(),t.pushPoint(g),t.nextPoint(),t.setControlPoint(),t.pushPoint(x),t.nextPoint(),t.setControlPoint(),t.pushPoint(f),t.nextPoint(),t.setControlPoint(),t.pushPoint(p),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.nextPoint(),t.setControlPoint(),t.reset()}_constructOffset(t,e){return this._curveHelper.offset(t,e,"Rounded",4,this._offsetFlattenError)}_constructArrowBasePoint(t,e){if(!t||t.length<2)return null;let i=t[t.length-2],s=t[t.length-1],n=[s[0]-i[0],s[1]-i[1]];return this._curveHelper.normalize(n),[s[0]+n[1]*e,s[1]-n[0]*e]}}var P=i(16930),M=i(35833);class b{static{this.instance=null}static local(){return null===b.instance&&(b.instance=new b),b.instance}execute(t,e,i){return new C(t,e,i)}}class C{constructor(t,e,i){let s=i.geomUnitsPerPoint,n=i.tileKey,r=i.maxInflateSize;this._preventClipping=i.preventClipping,this._inputGeometries=t,this._tileKey=n,this._curveHelper=new g,this._size=(void 0===e.size?1:e.size)*s,this._maxInflateSize=r*s,this._offsetFlattenError=.03*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._size)return t;if("esriGeometryEnvelope"===t.geometryType)if(this._size>0){let e=u.z.createEmptyOptimizedCIM(t.geometryType),i=(0,m.x)(t)[0],s=this._curveHelper.offset(i,this._size,"Rounded",4,this._offsetFlattenError);if(s)return e.pushPath(s),e}else if(this._size<0){let e=t.asJSON();if(Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._size>0)return u.z.fromJSONCIM({xmin:e.xmin-this._size,xmax:e.xmax+this._size,ymin:e.ymin-this._size,ymax:e.ymax+this._size})}let e=!this._preventClipping&&this._tileKey?(0,M.qc)(t,this._maxInflateSize,!0):t;if(!e)continue;let{bufferExecute:i}=M.$Z.module,s=i({...e.asJSON(),spatialReference:{wkid:P.A.WebMercator.wkid}},this._size);return s?u.z.fromJSONCIM(s):null}return null}}var v=i(34727),w=i(28076);const S=Math.PI/180,I=2*Math.PI;class z{static{this.instance=null}static local(){return null===z.instance&&(z.instance=new z),z.instance}execute(t,e,i){return new k(t,e,i)}}class k{constructor(t,e,i){let s=i.geomUnitsPerPoint;this._inputGeometries=t,this._geomUnitsPerPoint=s,this._radius=(e.radius??w.D.CIMGeometricEffectCircularSector.radius)*s,this._startAngle=(e.startAngle??w.D.CIMGeometricEffectCircularSector.startangle)*S,this._endAngle=(e.endAngle??w.D.CIMGeometricEffectCircularSector.endangle)*S}next(){if(this._radius<=0)return null;let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",t.hasZ,!1),i=!1;for(;t.nextPath();)for(;t.nextPoint();)e.pushPath(this._buildRing(t.x,t.y,t.hasZ?t.z:void 0)),i=!0;if(i)return e}t=this._inputGeometries.next()}return null}_buildRing(t,e,i){let s=[this._makePoint(t,e,i)],n=A(this._startAngle),r=A(this._endAngle);for(;r<n;)r+=I;let h=r-n;if(0===h)return s.push(this._makePoint(t+this._radius*Math.cos(r),e+this._radius*Math.sin(r),i)),s.push(this._makePoint(t,e,i)),s;let a=.25*this._geomUnitsPerPoint,l=this._radius<=.5*a?I:2*Math.acos((0,v.qE)(1-a/this._radius,-1,1)),o=Math.max(1,Math.ceil(h/l)),u=h/o,c=r;for(let n=0;n<=o;n++,c-=u)s.push(this._makePoint(t+this._radius*Math.cos(c),e+this._radius*Math.sin(c),i));return s.push(this._makePoint(t,e,i)),s}_makePoint(t,e,i){return null==i?[t,e]:[t,e,i]}}function A(t){return(t%=I)<0?t+I:t}i(86211);var T=i(95108);class E{static{this.instance=null}static local(){return null===E.instance&&(E.instance=new E),E.instance}execute(t,e,i){return new O(t,e,i)}}class O{constructor(t,e,i){this._defaultPointSize=20,this._inputGeometries=t,this._geomUnitsPerPoint=i.geomUnitsPerPoint??1,this._scale=i?.scale,this._rule=e.rule??"FullGeometry",this._spatialReference=i?.spatialReference??P.A.WebMercator,this._width=this._computeWidth(e.width??25),this._defaultSize=this._defaultPointSize*this._geomUnitsPerPoint}next(){let t;for(;t=this._inputGeometries.next();){let e=this._processGeom((0,m.x)(t));if(e?.length)return u.z.fromJSONCIM({paths:e})}return null}_computeWidth(t){if(!function(t){return"ParallelOffsetByValue"===t}(this._rule)||null==this._scale||!this._spatialReference.metersPerUnit)return t*this._geomUnitsPerPoint;let e=this._scale/(96*39.37*this._spatialReference.metersPerUnit);return t/(this._spatialReference.metersPerUnit*e)}_clone(t){return[t[0],t[1]]}_mid(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}_mix(t,e,i,s){return[t[0]*e+i[0]*s,t[1]*e+i[1]*s]}_add(t,e){return[t[0]+e[0],t[1]+e[1]]}_add2(t,e,i){return[t[0]+e,t[1]+i]}_sub(t,e){return[t[0]-e[0],t[1]-e[1]]}_dist(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}_norm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}_normalize(t,e=1){let i=e/this._norm(t);t[0]*=i,t[1]*=i}_leftPerpendicular(t){let e=-t[1],i=t[0];t[0]=e,t[1]=i}_leftPerp(t){return[-t[1],t[0]]}_rightPerpendicular(t){let e=t[1],i=-t[0];t[0]=e,t[1]=i}_rightPerp(t){return[t[1],-t[0]]}_dotProduct(t,e){return t[0]*e[0]+t[1]*e[1]}_crossProduct(t,e){return t[0]*e[1]-t[1]*e[0]}_rotateDirect(t,e,i){let s=t[0]*e-t[1]*i,n=t[0]*i+t[1]*e;t[0]=s,t[1]=n}_makeCtrlPt(t){let e=[t[0],t[1]];return(0,d.Aq)(e,1),e}_addAngledTicks(t,e,i,s){let n=this._sub(i,e);this._normalize(n);let r,h=this._crossProduct(n,this._sub(s,e));r=h>0?this._rightPerp(n):this._leftPerp(n);let a=Math.abs(h)/2,l=[];l.push([e[0]+(r[0]-n[0])*a,e[1]+(r[1]-n[1])*a]),l.push(e),l.push(i),l.push([i[0]+(r[0]+n[0])*a,i[1]+(r[1]+n[1])*a]),t.push(l)}_addBezier2(t,e,i,s,n){if(0===n--)return void t.push(s);let r=this._mid(e,i),h=this._mid(i,s),a=this._mid(r,h);this._addBezier2(t,e,r,a,n),this._addBezier2(t,a,h,s,n)}_addBezier3(t,e,i,s,n,r){if(0===r--)return void t.push(n);let h=this._mid(e,i),a=this._mid(i,s),l=this._mid(s,n),o=this._mid(h,a),u=this._mid(a,l),c=this._mid(o,u);this._addBezier3(t,e,h,o,c,r),this._addBezier3(t,c,u,l,n,r)}_add90DegArc(t,e,i,s,n){let r=n??this._crossProduct(this._sub(i,e),this._sub(s,e))>0,h=this._mid(e,i),a=this._sub(h,e);r?this._leftPerpendicular(a):this._rightPerpendicular(a),h[0]+=a[0],h[1]+=a[1],this._addBezier3(t,e,this._mix(e,.33333,h,.66667),this._mix(i,.33333,h,.66667),i,4)}_addArrow(t,e,i){let s=e[0],n=e[1],r=e[e.length-1],h=this._sub(s,n),a=this._norm(h);this._normalize(h);let l=Math.abs(this._crossProduct(h,this._sub(r,n))),o=this._dotProduct(h,this._sub(r,n));o<.05*a?o=.05*a:o>.95*a&&(o=.95*a);let u=.5*l,c=this._leftPerp(h),_=[n[0]+h[0]*o,n[1]+h[1]*o],p=e.length-1,f=[];f.push(i?[-c[0],-c[1]]:c);let m=[-h[0],-h[1]];for(let t=1;t<p-1;t++){let i=this._sub(e[t+1],e[t]);this._normalize(i);let s=this._dotProduct(i,m),n=this._crossProduct(i,m),r=Math.sqrt((1+s)/2),h=this._sub(i,m);this._normalize(h),h[0]/=r,h[1]/=r,f.push(n<0?[-h[0],-h[1]]:h),m=i}f.push(this._rightPerp(m));for(let i=f.length-1;i>0;i--)t.push([e[i][0]+f[i][0]*u,e[i][1]+f[i][1]*u]);t.push([_[0]+f[0][0]*u,_[1]+f[0][1]*u]),t.push([_[0]+f[0][0]*l,_[1]+f[0][1]*l]),t.push(s),t.push([_[0]-f[0][0]*l,_[1]-f[0][1]*l]),t.push([_[0]-f[0][0]*u,_[1]-f[0][1]*u]);for(let i=1;i<f.length;i++)t.push([e[i][0]-f[i][0]*u,e[i][1]-f[i][1]*u])}_addDash(t,e,i){let s=this._norm(i)/7;this._normalize(i);let n=[];for(let r=0;r<=7;r++)n.push([e[0]+i[0]*r*s,e[1]+i[1]*r*s]),1&r&&(t.push(n),n=[])}_cp2(t,e,i){return t.length>=2?t[1]:this._add2(t[0],e*this._defaultSize,i*this._defaultSize)}_cp3(t,e,i,s){if(t.length>=3)return t[2];let n=this._mix(t[0],1-i,e,i),r=this._sub(e,t[0]);return this._normalize(r),this._rightPerpendicular(r),[n[0]+r[0]*s*this._defaultSize,n[1]+r[1]*s*this._defaultSize]}_arrowPath(t){if(t.length>2)return t;let e=t[0],i=this._cp2(t,-4,0),s=this._sub(e,i);this._normalize(s);let n=this._rightPerp(s);return[e,i,[e[0]+(n[0]-s[0])*this._defaultSize,e[1]+(n[1]-s[1])*this._defaultSize]]}_arrowLastSeg(t){let e,i=t[0],s=this._cp2(t,-4,0);if(t.length>=3)e=t[t.length-1];else{let t=this._sub(i,s);this._normalize(t);let n=this._rightPerp(t);e=[i[0]+(n[0]-t[0])*this._defaultSize,i[1]+(n[1]-t[1])*this._defaultSize]}return[s,e]}_offsetPath(t,e){let{offsetExecute:i}=M.mO.module,s=i({paths:[t],spatialReference:this._spatialReference.toJSON()},e,{joins:"miter",miterLimit:4}),[n]=(0,m.x)(u.z.fromJSONCIM(s));return n?.length?n:null}_processGeom(t){if(!t)return null;let e=[];for(let i of t){let t=i.length>1&&(0,T.Yl)(i)<this._defaultSize;if(!i||0===i.length||t)continue;let s=i.length,n=i[0];switch(this._rule){case"PerpendicularFromFirstSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,4),r=[];r.push(s),r.push(this._mid(n,t)),e.push(r);break}case"ReversedFirstSegment":{let t=this._cp2(i,0,-1);e.push([t,n]);break}case"PerpendicularToSecondSegment":{if(i.length<3)return[];let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=[];r.push(this._mid(t,s)),r.push(n),e.push(r);break}case"SecondSegmentWithTicks":{if(i.length<3)return[];let t,s=this._cp2(i,-4,1),r=this._cp3(i,s,.882353,-1.94),h=this._sub(r,s);t=this._crossProduct(h,this._sub(n,s))>0?this._rightPerp(h):this._leftPerp(h);let a=[];a.push([s[0]+(t[0]-h[0])/3,s[1]+(t[1]-h[1])/3]),a.push(s),a.push(r),a.push([r[0]+(t[0]+h[0])/3,r[1]+(t[1]+h[1])/3]),e.push(a);break}case"DoublePerpendicular":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let l=[];l.push(n),l.push([s[0]+h[0]*a,s[1]+h[1]*a]),e.push(l);let o=[];o.push([s[0]-h[0]*a,s[1]-h[1]*a]),o.push(t),e.push(o);break}case"OppositeToFirstSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let l=[];l.push([s[0]+h[0]*a,s[1]+h[1]*a]),l.push([s[0]-h[0]*a,s[1]-h[1]*a]),e.push(l);break}case"TriplePerpendicular":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,4),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let l=[];l.push([s[0]+h[0]*a*.8,s[1]+h[1]*a*.8]),l.push([r[0]+.8*(n[0]-r[0]),r[1]+.8*(n[1]-r[1])]),e.push(l),e.push([s,r]);let o=[];o.push([s[0]-h[0]*a*.8,s[1]-h[1]*a*.8]),o.push([r[0]+.8*(t[0]-r[0]),r[1]+.8*(t[1]-r[1])]),e.push(o);break}case"HalfCircleFirstSegment":{let t,s=this._cp2(i,0,-1),r=this._cp3(i,s,.5,4),h=this._mid(n,s),a=this._sub(s,n),l=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18),u=Math.sqrt((1+l)/2),c=Math.sqrt((1-l)/2),_=[];this._crossProduct(a,this._sub(r,n))>0?(_.push(n),a=this._sub(n,h),t=s):(_.push(s),a=this._sub(s,h),t=n),this._rotateDirect(a,u,c),a[0]/=u,a[1]/=u;for(let t=1;t<=18;t++)_.push(this._add(h,a)),this._rotateDirect(a,l,o);_.push(t),e.push(_);break}case"HalfCircleSecondSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,1,-1),r=this._sub(n,t);this._normalize(r);let h=this._crossProduct(r,this._sub(s,t))/2;this._leftPerpendicular(r);let a=[t[0]+r[0]*h,t[1]+r[1]*h];r=this._sub(t,a);let l=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18);h>0&&(o=-o);let u=[t];for(let t=1;t<=18;t++)this._rotateDirect(r,l,o),u.push(this._add(a,r));e.push(u);break}case"HalfCircleExtended":{let t,r=this._cp2(i,0,-2),h=this._cp3(i,r,1,-1);if(s>=4)t=i[3];else{let e=this._sub(n,r);t=this._add(h,e)}let a=this._dist(r,h)/2/.75,l=this._sub(r,n);this._normalize(l,a);let o=this._sub(h,t);this._normalize(o,a);let u=[t,h];e.push(u);let c=[this._clone(h)];this._addBezier3(c,h,this._add(h,o),this._add(r,l),r,4),c.push(n),e.push(c);break}case"OpenCircle":{let t=this._cp2(i,-2,0),s=this._sub(t,n),r=Math.cos(Math.PI/18),h=-Math.sin(Math.PI/18),a=[t];for(let t=1;t<=33;t++)this._rotateDirect(s,r,h),a.push(this._add(n,s));e.push(a);break}case"CoverageEdgesWithTicks":{let t,r,h=this._cp2(i,0,-1);if(s>=3)t=i[2];else{let e=this._sub(h,n),i=this._leftPerp(e);t=[n[0]+i[0]-.25*e[0],n[1]+i[1]-.25*e[1]]}if(s>=4)r=i[3];else{let e=this._mid(n,h),i=this._sub(n,h);this._normalize(i),this._leftPerpendicular(i);let s=this._crossProduct(i,this._sub(t,e));this._rightPerpendicular(i),r=[t[0]+i[0]*s*2,t[1]+i[1]*s*2]}let a,l,o=this._sub(h,n);a=this._crossProduct(o,this._sub(t,n))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push(t),l.push(n),l.push([n[0]+(a[0]-o[0])/3,n[1]+(a[1]-o[1])/3]),e.push(l),a=this._crossProduct(o,this._sub(r,h))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push([h[0]+(a[0]+o[0])/3,h[1]+(a[1]+o[1])/3]),l.push(h),l.push(r),e.push(l);break}case"GapExtentWithDoubleTicks":{let t,r=this._cp2(i,0,2),h=this._cp3(i,r,0,1);if(s>=4)t=i[3];else{let e=this._sub(r,n);t=this._add(h,e)}this._addAngledTicks(e,n,r,this._mid(h,t)),this._addAngledTicks(e,h,t,this._mid(n,r));break}case"GapExtentMidline":{let t,r=this._cp2(i,2,0),h=this._cp3(i,r,0,1);if(s>=4)t=i[3];else{let e=this._sub(r,n);t=this._add(h,e)}let a=[];a.push(this._mid(n,h)),a.push(this._mid(r,t)),e.push(a);break}case"Chevron":{let t,r=this._cp2(i,-1,-1);if(s>=3)t=i[2];else{let e=this._sub(r,n);this._leftPerpendicular(e),t=this._add(n,e)}e.push([r,this._makeCtrlPt(n),t]);break}case"PerpendicularWithArc":{let t=this._cp2(i,0,-2),r=this._cp3(i,t,.5,-1),h=this._sub(t,n),a=this._norm(h);h[0]/=a,h[1]/=a;let l=this._crossProduct(h,this._sub(r,n)),o=this._dotProduct(h,this._sub(r,n));o<.05*a?o=.05*a:o>.95*a&&(o=.95*a);let u=[n[0]+h[0]*o,n[1]+h[1]*o],c=this._leftPerp(h),_=[];if(_.push([u[0]-c[0]*l,u[1]-c[1]*l]),_.push([u[0]+c[0]*l,u[1]+c[1]*l]),e.push(_),s>=4){let t=i[3],s=this._dotProduct(h,this._sub(t,n));s<.1*a?s=.1*a:s>.9*a&&(s=.9*a);let r=[n[0]+h[0]*s,n[1]+h[1]*s],l=this._crossProduct(h,this._sub(t,n)),o=[];o.push([r[0]-c[0]*l,r[1]-c[1]*l]),o.push([r[0]+c[0]*l,r[1]+c[1]*l]),e.push(o)}let p=[t[0]+c[0]*l,t[1]+c[1]*l];c=this._sub(t,p);let f=Math.cos(Math.PI/18),m=Math.sin(Math.PI/18);l<0&&(m=-m),_=[n,t];for(let t=1;t<=9;t++)this._rotateDirect(c,f,m),_.push(this._add(p,c));e.push(_);break}case"ClosedHalfCircle":{let t=this._cp2(i,2,0),s=this._mid(n,t),r=this._sub(t,s),h=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),l=[n,t];for(let t=1;t<=18;t++)this._rotateDirect(r,h,a),l.push(this._add(s,r));e.push(l);break}case"TripleParallelExtended":{let t=this._cp2(i,0,-2),s=this._cp3(i,t,1,-2),r=this._mid(n,t),h=this._sub(s,t);this._normalize(h);let a=Math.abs(this._crossProduct(h,this._sub(r,t)))/2,l=this._dist(t,s),o=[t,n];o.push([n[0]+h[0]*l*.5,n[1]+h[1]*l*.5]),e.push(o);let u=[];u.push([r[0]-h[0]*a,r[1]-h[1]*a]),u.push([r[0]+h[0]*l*.375,r[1]+h[1]*l*.375]),(0,d.Aq)(u[u.length-1],1),u.push([r[0]+h[0]*l*.75,r[1]+h[1]*l*.75]),e.push(u);let c=[t,s];e.push(c);break}case"ParallelWithTicks":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n)),a=this._leftPerp(r);this._addAngledTicks(e,n,t,s),this._addAngledTicks(e,this._add2(n,a[0]*h,a[1]*h),this._add2(t,a[0]*h,a[1]*h),this._mid(n,t));break}case"Parallel":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._leftPerp(r),a=this._crossProduct(r,this._sub(s,n)),l=[n,t];e.push(l),l=[],l.push([n[0]+h[0]*a,n[1]+h[1]*a]),l.push([t[0]+h[0]*a,t[1]+h[1]*a]),e.push(l);break}case"PerpendicularToFirstSegment":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._mid(n,t),h=this._sub(t,n);this._normalize(h);let a=this._crossProduct(h,this._sub(s,n));this._leftPerpendicular(h);let l=[];l.push([r[0]-h[0]*a*.25,r[1]-h[1]*a*.25]),l.push([r[0]+h[0]*a*1.25,r[1]+h[1]*a*1.25]),e.push(l);break}case"ParallelOffset":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]-r[0]*h,n[1]-r[1]*h]),a.push([t[0]-r[0]*h,t[1]-r[1]*h]),e.push(a);let l=[];l.push([n[0]+r[0]*h,n[1]+r[1]*h]),l.push([t[0]+r[0]*h,t[1]+r[1]*h]),e.push(l);break}case"OffsetOpposite":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]-r[0]*h,n[1]-r[1]*h]),a.push([t[0]-r[0]*h,t[1]-r[1]*h]),e.push(a);break}case"OffsetSame":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]+r[0]*h,n[1]+r[1]*h]),a.push([t[0]+r[0]*h,t[1]+r[1]*h]),e.push(a);break}case"CircleWithArc":{let t,r,h=this._cp2(i,3,0),a=this._cp3(i,h,.5,-1);if(s>=4)t=i[3],r=this._crossProduct(this._sub(t,h),this._sub(a,h))>0;else{t=h,r=this._crossProduct(this._sub(t,n),this._sub(a,n))>0;let e=24*this._geomUnitsPerPoint,i=this._sub(t,n);this._normalize(i,e);let s=Math.sqrt(2)/2;this._rotateDirect(i,s,r?s:-s),h=this._add(n,i)}let l=this._sub(h,n),o=Math.cos(Math.PI/18),u=Math.sin(Math.PI/18),c=[h];for(let t=1;t<=36;t++)this._rotateDirect(l,o,u),c.push(this._add(n,l));this._add90DegArc(c,h,t,a,r),(0,d.Aq)(c[c.length-8],1),e.push(c);break}case"DoubleJog":{let t,r=this._cp2(i,-3,1),h=this._cp3(i,r,-1,-.5);if(s>=4)t=i[3];else{let e=n;n=r,t=h;let i=this._dist(n,e),s=this._dist(t,e),a=30*this._geomUnitsPerPoint;.5*i<a&&(a=.5*i),.5*s<a&&(a=.5*s),r=this._mix(n,a/i,e,(i-a)/i),h=this._mix(t,a/s,e,(s-a)/s)}let a=this._mid(n,r),l=this._mid(t,h),o=this._dist(n,r),u=this._dist(h,t),c=Math.min(o,u)/8;c=Math.min(c,24*this._geomUnitsPerPoint);let _=Math.cos(Math.PI/4),p=this._sub(n,r);this._normalize(p,c),this._crossProduct(p,this._sub(t,r))>0?this._rotateDirect(p,_,-_):this._rotateDirect(p,_,_);let f=[];f.push(r),f.push(this._add(a,p)),f.push(this._sub(a,p)),f.push(n),e.push(f),p=this._sub(t,h),this._normalize(p,c),this._crossProduct(p,this._sub(n,h))<0?this._rotateDirect(p,_,_):this._rotateDirect(p,_,-_),f=[],f.push(h),f.push(this._add(l,p)),f.push(this._sub(l,p)),f.push(t),e.push(f);break}case"PerpendicularOffset":{let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=this._sub(s,t);this._crossProduct(r,this._sub(n,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);let h=[r[0]/8,r[1]/8],a=this._sub(this._mid(t,s),h);e.push([a,n]);break}case"LineExcludingLastSegment":{let t=this._arrowPath(i),s=[],n=t.length-2;for(;n--;)s.push(t[n]);e.push(s);break}case"MultivertexArrow":{let t=this._arrowPath(i),s=[];this._addArrow(s,t,!1),e.push(s);break}case"CrossedArrow":{let t=this._arrowPath(i),s=[];this._addArrow(s,t,!0),e.push(s);break}case"ChevronArrow":{let[t,s]=this._arrowLastSeg(i),r=10*this._geomUnitsPerPoint,h=this._sub(n,t),a=this._norm(h);this._normalize(h);let l=this._crossProduct(h,this._sub(s,t)),o=this._dotProduct(h,this._sub(s,t));o<.05*a?o=.05*a:o>.95*a-r&&(o=.95*a-r);let u=[t[0]+h[0]*o,t[1]+h[1]*o],c=this._leftPerp(h),_=[];_.push([u[0]+c[0]*l+h[0]*r,u[1]+c[1]*l+h[1]*r]),_.push(n),_.push([u[0]-c[0]*l+h[0]*r,u[1]-c[1]*l+h[1]*r]),e.push(_);break}case"ChevronArrowOffset":{let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=this._crossProduct(r,this._sub(s,t)),l=this._dotProduct(r,this._sub(s,t));l<.05*h?l=.05*h:l>.95*h&&(l=.95*h);let o=[t[0]+r[0]*l,t[1]+r[1]*l];this._leftPerpendicular(r);let u=[];u.push([o[0]+r[0]*a*.5,o[1]+r[1]*a*.5]),u.push(this._mid(o,n)),u.push([o[0]-r[0]*a*.5,o[1]-r[1]*a*.5]),e.push(u);break}case"PartialFirstSegment":{let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=this._dotProduct(r,this._sub(s,t));a<.05*h?a=.05*h:a>.95*h&&(a=.95*h);let l=[t[0]+r[0]*a,t[1]+r[1]*a];e.push([t,l]);break}case"Arch":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,1),r=this._sub(n,t),h=this._mix(s,1,r,.55),a=this._mix(s,1,r,-.55),l=[n];this._addBezier2(l,n,h,s,4),this._addBezier2(l,s,a,t,4),e.push(l);break}case"CurvedParallelTicks":{let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=this._sub(s,t);this._crossProduct(r,this._sub(n,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);let h=[r[0]/8,r[1]/8],a=this._sub(this._mid(t,s),h),l=this._sub(this._mix(t,.75,s,.25),h),o=this._sub(this._mix(t,.25,s,.75),h),u=[t];this._addBezier2(u,t,l,a,3),this._addBezier2(u,a,o,s,3),e.push(u);for(let t=0;t<8;t++){let i=u[2*t+1],s=[this._clone(i)];s.push(this._add(i,[r[0]/4,r[1]/4])),e.push(s)}break}case"Arc90Degrees":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,1),r=[t];this._add90DegArc(r,t,n,s),e.push(r);break}case"TipWithPerpendicularAndTicks":{let[t,s]=this._arrowLastSeg(i),r=10*this._geomUnitsPerPoint,h=this._sub(n,t),a=this._norm(h);this._normalize(h);let l=this._crossProduct(h,this._sub(s,t)),o=this._dotProduct(h,this._sub(s,t));o<.05*a?o=.05*a:o>.95*a-r&&(o=.95*a-r);let u=this._leftPerp(h),c=[n[0]-h[0]*r,n[1]-h[1]*r],_=.5*Math.max(a-o-r,r);l=Math.abs(l);let p=[];p.push([c[0]+u[0]*(l+_)-h[0]*_,c[1]+u[1]*(l+_)-h[1]*_]),p.push([c[0]+u[0]*l,c[1]+u[1]*l]),p.push([c[0]-u[0]*l,c[1]-u[1]*l]),p.push([c[0]-u[0]*(l+_)-h[0]*_,c[1]-u[1]*(l+_)-h[1]*_]),e.push(p),e.push([c,n]);break}case"ConcentricCircles":{let t=this._cp2(i,1,0),r=this._cp3(i,t,2,0),h=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),l=this._dist(t,n),o=[l,0],u=[];for(let t=0;t<=36;t++)u.push(this._add(n,o)),this._rotateDirect(o,h,a);if(e.push(u),s>=4){u=[];let t=i[3];l=this._dist(t,n),o=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,o)),0===t&&(u.push(this._add(n,o)),(0,d.Aq)(u[1],1)),this._rotateDirect(o,h,a);e.push(u)}u=[],l=this._dist(r,n),o=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,o)),this._rotateDirect(o,h,a);e.push(u);break}case"DoubleJogArrow":{n=this._arrowPath(i)[0];let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=Math.abs(this._crossProduct(r,this._sub(s,n))),l=Math.abs(this._dotProduct(r,this._sub(s,n)));l<.05*h?l=.05*h:l>.95*h&&(l=.95*h);let o=Math.max(a,l),u=this._leftPerp(r),c=[],_=[n[0]-r[0]*l*.5+u[0]*a*.5,n[1]-r[1]*l*.5+u[1]*a*.5];c.push([_[0],_[1]]),_[0]+=r[0]*o*.5+u[0]*o*.4,_[1]+=r[1]*o*.5+u[1]*o*.4,c.push([_[0],_[1]]),_[0]-=u[0]*o*.25,_[1]-=u[1]*o*.25,c.push([_[0],_[1]]),_[0]+=r[0]*o*.5+u[0]*o*.4,_[1]+=r[1]*o*.5+u[1]*o*.4,c.push([_[0],_[1]]),e.push(c),c=[],_[0]=n[0]-r[0]*l*.5-u[0]*a*.5,_[1]=n[1]-r[1]*l*.5-u[1]*a*.5,c.push([_[0],_[1]]),_[0]+=r[0]*o*.5-u[0]*o*.4,_[1]+=r[1]*o*.5-u[1]*o*.4,c.push([_[0],_[1]]),_[0]+=u[0]*o*.25,_[1]+=u[1]*o*.25,c.push([_[0],_[1]]),_[0]+=r[0]*o*.5-u[0]*o*.4,_[1]+=r[1]*o*.5-u[1]*o*.4,c.push([_[0],_[1]]),e.push(c);break}case"LinkedChevrons":{let t=this._cp2(i,-5,0),s=this._cp3(i,t,-.2,1),r=this._sub(n,t);this._normalize(r);let h=this._leftPerp(r),a=Math.abs(this._crossProduct(r,this._sub(s,t)));e.push([t,n]);let l=[];l.push([n[0]-r[0]*a+h[0]*a,n[1]-r[1]*a+h[1]*a]),l.push(n),l.push([n[0]-r[0]*a-h[0]*a,n[1]-r[1]*a-h[1]*a]),e.push(l),this._addDash(e,t,[-r[0]*a+h[0]*a,-r[1]*a+h[1]*a]),this._addDash(e,t,[-r[0]*a-h[0]*a,-r[1]*a-h[1]*a]);break}case"SegmentThenHalfCircle":{let t,r=this._cp2(i,2,0),h=this._cp3(i,r,1.5,0);t=s>=4?i[3]:this._cp3(i,r,1.25,-.5);let a=this._sub(r,n);this._normalize(a);let l=.5*this._dist(r,h),o=this._crossProduct(a,this._sub(t,n))>0,u=Math.cos(Math.PI/18),c=Math.sin(Math.PI/18);o&&(c=-c);let _=[n,r];a[0]*=l,a[1]*=l;let p=this._add(r,a);a[0]=-a[0],a[1]=-a[1];for(let t=1;t<=18;t++)this._rotateDirect(a,u,c),_.push(this._add(p,a));e.push(_);break}case"LineWithStraightTicks":{let t=this._cp2(i,-2,1),s=this._cp3(i,t,-1,-.5),r=this._sub(s,t);this._normalize(r);let h=this._dotProduct(r,this._sub(t,n)),a=this._dotProduct(r,this._sub(s,n)),l=[n];l.push([n[0]+r[0]*h,n[1]+r[1]*h]),l.push(t),e.push(l),l=[n],l.push([n[0]+r[0]*a,n[1]+r[1]*a]),l.push(s),e.push(l);break}case"DoubleCurve":{let t=this._cp2(i,-5,-1),s=this._cp3(i,t,2,0),r=Math.atan2(1,5),h=Math.cos(r),a=Math.sin(r),l=this._sub(t,n),o=this._dist(n,t);this._normalize(l),this._rotateDirect(l,h,-a);let u=[n];u.push([n[0]+l[0]*o*.5,n[1]+l[1]*o*.5]),(0,d.Aq)(u[1],1),u.push([n[0]+l[0]*o*.8,n[1]+l[1]*o*.8]),this._addBezier2(u,u[2],[n[0]+l[0]*o,n[1]+l[1]*o],t,3);let c=this._sub(s,t),_=this._dist(t,s);this._normalize(c),this._rotateDirect(c,h,-a),this._addBezier2(u,t,[s[0]-c[0]*_,s[1]-c[1]*_],[s[0]-c[0]*_*.8,s[1]-c[1]*_*.8],3),u.push(s),e.push(u);break}case"ParallelWithTicksByWidth":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r),h>0?(this._addAngledTicks(e,n,[n[0]+r[0]*h,n[1]+r[1]*h],t),this._addAngledTicks(e,t,[t[0]+r[0]*h,t[1]+r[1]*h],n)):(this._addAngledTicks(e,[n[0]+r[0]*h,n[1]+r[1]*h],n,t),this._addAngledTicks(e,[t[0]+r[0]*h,t[1]+r[1]*h],n,t));break}case"EnclosingRoundedRectangle":{let t=this._cp2(i,3,-2),e=[Math.min(n[0],t[0]),Math.max(n[1],t[1])],s=[Math.max(n[0],t[0]),Math.min(n[1],t[1])],r=s[0]-e[0],h=e[1]-s[1],a=Math.min(r,h)/10,l=[];l.push([e[0]+a+.75*(r-2*a),e[1]]),l.push([s[0]-a,e[1]]),this._add90DegArc(l,[s[0]-a,e[1]],[s[0],e[1]-a],[s[0],e[1]]),l.push([s[0],s[1]+a]),this._add90DegArc(l,[s[0],s[1]+a],[s[0]-a,s[1]],s),l.push([e[0]+a,s[1]]),this._add90DegArc(l,[e[0]+a,s[1]],[e[0],s[1]+a],[e[0],s[1]]),l.push([e[0],e[1]-a]),this._add90DegArc(l,[e[0],e[1]-a],[e[0]+a,e[1]],e),l.push([e[0]+a+.75*(r-2*a),e[1]]);break}case"ParallelOffsetByValue":{if(i.length<2||0===this._width)break;let t=this._offsetPath(i,.5*this._width);t&&e.push(t);let s=this._offsetPath(i,.5*-this._width);s&&e.push(s);break}default:e.push(i)}}return e}}class L{static{this.instance=null}static local(){return null===L.instance&&(L.instance=new L),L.instance}execute(t,e,i){return new G(t,e,i)}}class G extends d.rx{constructor(t,e,i){super(t,!0,!0),this._curveHelper=new g;let s=i?.geomUnitsPerPoint;this._beginCut=(void 0===e.beginCut?1:e.beginCut)*s,this._endCut=(void 0===e.endCut?1:e.endCut)*s,this._middleCut=(void 0===e.middleCut?0:e.middleCut)*s,this._invert=void 0!==e.invert&&e.invert,this._beginCut<0&&(this._beginCut=0),this._endCut<0&&(this._endCut=0),this._middleCut<0&&(this._middleCut=0)}processPath(t){let{_beginCut:e,_endCut:i,_middleCut:s}=this,n=t.pathLength(),r=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._invert){if(0!==e||0!==i||0!==s)if(e+i+s>=n)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else this._curveHelper.appendSubCurve(r,t,0,e),this._curveHelper.appendSubCurve(r,t,.5*(n-s),.5*(n+s)),this._curveHelper.appendSubCurve(r,t,n-i,i)}else if(0===e&&0===i&&0===s)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else e+i+s<n&&(0===s?this._curveHelper.appendSubCurve(r,t,e,n-i):(this._curveHelper.appendSubCurve(r,t,e,.5*(n-s)),this._curveHelper.appendSubCurve(r,t,.5*(n+s),n-i)));return 0===r.totalSize?null:r}}var N=i(45733);class R{constructor(){this._values=[],this.extPtGap=0,this.ctrlPtGap=0,this._length=0,this._currentValue=0}isEmpty(){return 0===this._values.length}size(){return this._values.length}init(t,e=!0){if(this._setEmpty(),!t||0===t.length)return!1;for(let i=0;i<t.length;i++){let s=Math.abs(t[i]);e&&s<1e-7&&(s=1e-7),this._values.push(s),this._length+=s}return 0!==this._length&&(this.ctrlPtGap=this.extPtGap=0,this._currentValue=-1,!0)}scale(t){let e=this._values?this._values.length:0;for(let i=0;i<e;++i)this._values[i]*=t;this._length*=t,this.extPtGap*=t,this.ctrlPtGap*=t}addValue(t){this._length+=t,this._values.push(t)}firstValue(){return this._values[0]}lastValue(){return this._values[this._values.length-1]}nextValue(){return this._currentValue++,this._currentValue===this._values.length&&(this._currentValue=0),this._values[this._currentValue]}reset(){this._currentValue=-1}length(){return this._length}_setEmpty(){this.extPtGap=this.ctrlPtGap=this._length=0,this._currentValue=-1,this._values.length=0}}class F{constructor(){this.pt=null,this.ca=0,this.sa=0}}class X{constructor(){this.reset()}reset(){this.segment=null,this.segmentLength=0,this.abscissa=0,this.isPathEnd=!1,this.isPartEnd=!1}isValid(){return null!==this.segment}copyTo(t){t.segment=this.segment,t.segmentLength=this.segmentLength,t.abscissa=this.abscissa,t.isPathEnd=this.isPathEnd,t.isPartEnd=this.isPartEnd}}class Y extends g{constructor(t=0,e=!1){super(t,e),this._tempPos=new X,this._tempPt=[0,0],this._tolerance=.03,this._currentPosition=new X}updateTolerance(t){this._tolerance=.03*t}init(t,e,i=!0){return i?(this._patternLength=e.length(),this._partExtPtGap=e.extPtGap,this._partCtrlPtGap=e.ctrlPtGap):(this._patternLength=0,this._partExtPtGap=0,this._partCtrlPtGap=0),this._currentPosition.reset(),this._partSegCount=0,this._pathCursor=t,this._seg=-1,this._setPosAtNextPart()}curPositionIsValid(){return this._currentPosition.isValid()}nextPosition(t,e=0){let i=new X;return!!this._nextPosition(t,i,null,e)&&(i.copyTo(this._currentPosition),!0)}curPointAndAngle(t){t.pt=this._getPoint(this._currentPosition);let[e,i]=this._getAngleCS(this._tempPt,this._currentPosition);t.ca=e,t.sa=i}nextPointAndAngle(t,e,i=0){let s=this._tempPos;if(!this._nextPosition(t,s,null,i))return!1;s.copyTo(this._currentPosition),e.pt=this._getPoint(s);let[n,r]=this._getAngleCS(this._tempPt,s);return e.ca=n,e.sa=r,!0}nextCurve(t){if(0===t)return null;let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");e.startPath(),e.nextPath();let i=new X;return this._nextPosition(t,i,e,1)?(i.copyTo(this._currentPosition),e):null}isPathEnd(){return this._currentPosition.isPathEnd}getPathEnd(){return this._currentPosition.segment[1]}getPt(t){return this._pathCursor.seekInPath(t),[this._pathCursor.x,this._pathCursor.y]}getSeg(t){return[this.getPt(t),this.getPt(t+1)]}_nextPosition(t,e,i,s){if(this._currentPosition.isPathEnd)return!1;let n=this._currentPosition.abscissa;for(this._currentPosition.segmentLength>0&&(n/=this._currentPosition.segmentLength),this._currentPosition.copyTo(e);e.abscissa+t*this._partLengthRatio>e.segmentLength+this._tolerance;){if(i){if(0===i.pathSize)if(0===n){let t=e.segment[0];i.pushXY(t[0],t[1])}else i.pushPoint(this.getSegCoord2D(e.segment,n));let t=e.segment[1];i.pushXY(t[0],t[1])}if(n=0,t-=(e.segmentLength-e.abscissa)/this._partLengthRatio,this._partSegCount)e.segment=this._nextSegment(),e.segmentLength=this.getSegLength(e.segment),e.abscissa=0,this._partSegCount--;else{if(!this._setPosAtNextPart())return 0!==s&&(e.segmentLength=this.getSegLength(e.segment),e.isPartEnd=!0,1===s?(e.abscissa=e.segmentLength,e.isPathEnd=!0):e.abscissa=e.segmentLength+t,!0);this._currentPosition.copyTo(e)}}if(e.abscissa+=t*this._partLengthRatio,i){0===i.pathSize&&(0===n?i.pushPoint(e.segment[0]):i.pushPoint(this.getSegCoord2D(e.segment,n)));let t=e.abscissa/e.segmentLength;1===t?i.pushPoint(e.segment[1]):i.pushPoint(this.getSegCoord2D(e.segment,t))}return this._partSegCount||Math.abs(e.abscissa-e.segmentLength)<this._tolerance&&(e.isPathEnd=this._partIsLast,e.isPartEnd=!0),!0}_getPoint(t){let e=t.segmentLength<=0?0:t.abscissa/t.segmentLength;return this.getSegCoord2D(this._currentPosition.segment,e)}_getAngleCS(t,e){let i=e.segmentLength<=0?0:e.abscissa/e.segmentLength;return this.getSegAngleCS(t,this._currentPosition.segment,i)}_setPosAtNextPart(){for(;this._partSegCount;)this._hasNextSegment()&&this._nextSegment(),this._partSegCount--;if(!this._hasNextSegment())return!1;for(this._partLength=0,this._partIsLast=!0,this._partSegCount=0;this._hasNextSegment();)if(this._partLength+=this.getSegLength(this._nextSegment()),this._partSegCount++,this._pathCursor.getControlPointAt(this._getEndPointIndex())){this._partIsLast=!this._hasNextSegment();break}let t=this._partSegCount;for(;t;)this._previousSegment(),--t;this._currentPosition.segment=this._nextSegment(),this._currentPosition.segmentLength=this.getSegLength(this._currentPosition.segment),this._currentPosition.abscissa=0,this._currentPosition.isPathEnd=this._currentPosition.isPartEnd=!1,--this._partSegCount;let e=this._getStartPointIndex();this._ctrlPtBegin=this._pathCursor.getControlPointAt(e);let i=e+this._partSegCount+1;if(i>=this._pathCursor.pathSize&&(i=0),this._ctrlPtEnd=this._pathCursor.getControlPointAt(i),this._patternLength>0){let t=this._ctrlPtBegin?this._partCtrlPtGap:this._partExtPtGap,e=this._ctrlPtEnd?this._partCtrlPtGap:this._partExtPtGap,i=Math.round((this._partLength-(t+e))/this._patternLength);i<=0&&(i=t+e>0?0:1),this._partLengthRatio=this._partLength/(t+e+i*this._patternLength),this._partLengthRatio<.01&&(this._partLengthRatio=1)}else this._partLengthRatio=1;return!0}_hasNextSegment(){return this._seg<this._pathCursor.pathSize-2}_previousSegment(){return this.getSeg(--this._seg)}_nextSegment(){return this.getSeg(++this._seg)}_getStartPointIndex(){return this._seg}_getEndPointIndex(){return this._seg+1}}class D{static{this.instance=null}static local(){return null===D.instance&&(D.instance=new D),D.instance}execute(t,e,i){return new W(t,e,i)}}class W extends d.rx{constructor(t,e,i){super(t,!0,!0),this._firstCurve=null;let s=i.geomUnitsPerPoint;this._walker=new Y,this._walker.updateTolerance(s),this._endings=e.lineDashEnding??"NoConstraint",this._customDashPos=-(e.offsetAlongLine??0)*s,this._offsetAtEnd=(e.customEndingOffset??0)*s;let n=(0,N.FH)(e).dashTemplate;n??=[];let r=(0,N.OI)(n);n=r.hidesLine?[-1]:r.dashTemplate,this._pattern=new R,this._pattern.init(n,!1),this._pattern.scale(s)}processPath(t){if(this._pattern.size()%2==1)return null;if(0===this._pattern.length()){this.iteratePath=!1;let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}if(!this.iteratePath){let e=!0;switch(this._endings){case"HalfPattern":case"HalfGap":default:this._pattern.extPtGap=0;break;case"FullPattern":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.firstValue());break;case"FullGap":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.lastValue());break;case"NoConstraint":this.isClosed||(e=!1);break;case"Custom":this.isClosed||(this._pattern.extPtGap=.5*this._offsetAtEnd)}let i=t.pathLength();if(this._pattern.isEmpty()||i<.1*this._pattern.length()){let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}if(!this._walker.init(t,this._pattern,e)){let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}}let e;if(this.iteratePath)e=this._pattern.nextValue();else{let t;switch(this._endings){case"HalfPattern":default:t=.5*this._pattern.firstValue();break;case"HalfGap":t=.5*-this._pattern.lastValue();break;case"FullGap":t=-this._pattern.lastValue();break;case"FullPattern":t=0;break;case"NoConstraint":case"Custom":t=-this._customDashPos}let i=t/this._pattern.length();i-=Math.floor(i),t=i*this._pattern.length(),this._pattern.reset(),e=this._pattern.nextValue();let s=!1;for(;t>=e;)t-=e,e=this._pattern.nextValue(),s=!s;e-=t,s?(this._walker.nextPosition(e),e=this._pattern.nextValue()):this.isClosed&&(this._firstCurve=this._walker.nextCurve(e),e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue())}0===e&&(e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue());let i=this._walker.nextCurve(e);if(i)if(this._walker.isPathEnd()){if(this.iteratePath=!1,this._firstCurve){for(this._firstCurve.nextPath();this._firstCurve.nextPoint();)i.pushXY(this._firstCurve.x,this._firstCurve.y);this._firstCurve=null}}else e=this._pattern.nextValue(),!this._walker.nextPosition(e)||this._walker.isPathEnd()?(this.iteratePath=!1,this._firstCurve&&=(i.pushCursor(this._firstCurve),null)):this.iteratePath=!0;else this.iteratePath=!1,i=this._firstCurve,this._firstCurve=null;return i?.reset(),i}}class B{static{this.instance=null}static local(){return null===B.instance&&(B.instance=new B),B.instance}execute(t,e,i){return new U(t,e,i)}}class U{constructor(t,e,i){this._inputGeometries=t,this._tileKey=i.tileKey,this._maxInflateSize=i.maxInflateSize*i.geomUnitsPerPoint,this._preventClipping=i.preventClipping,this._width=(void 0===e.width?2:e.width)*i.geomUnitsPerPoint,e.method,this._option=e.option??"Accurate"}next(){let t;for(;t=this._inputGeometries.next();){if("esriGeometryEnvelope"===t.geometryType&&this._width>0){let e=t.asJSON();return Math.min(e.xmax-e.xmin,e.ymax-e.ymin)-2*this._width<0?t:u.z.fromJSONCIM({paths:[[[e.xmin+this._width,e.ymin+this._width],[e.xmax-this._width,e.ymin+this._width],[e.xmax-this._width,e.ymax-this._width],[e.xmin+this._width,e.ymax-this._width],[e.xmin+this._width,e.ymin+this._width]],[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}if("esriGeometryPolygon"===t.geometryType){if(0===this._width)return t.clone();let{bufferExecute:e}=M.$Z.module,i=!this._preventClipping&&this._tileKey?(0,M.qc)(t,this._maxInflateSize,!0):t.clone();if(!i)continue;let s=e({...i.asJSON(),spatialReference:{wkid:P.A.WebMercator.wkid}},-this._width);if(s)for(let t of s.rings)if(t){i.startPath();for(let e of t.reverse())i.pushXY(e[0],i.yFactor*e[1])}return i}}return null}}var H=i(537);class V{static{this.instance=null}static local(){return null===V.instance&&(V.instance=new V),V.instance}execute(t,e,i){return new q(t,e,i)}}class q{constructor(t,e,i){this._inputGeometries=t,this._medhod=e.method}next(){let t=this._inputGeometries.next(),e=this._medhod;for(;null!=t;){if(t.totalSize>0)switch(e){case"RectangularBox":return J(t);case"ConvexHull":return this._constructConvexHull(t);default:return Z(t)}t=this._inputGeometries.next()}return null}_constructConvexHull(t){switch(t.geometryType){case"esriGeometryPolyline":case"esriGeometryPolygon":{let{convexHullExecute:e}=M.lX.module,i=e({...t.asJSON(),spatialReference:{wkid:P.A.WebMercator.wkid}});return i?u.z.fromJSONCIM(i):null}case"esriGeometryEnvelope":return t;default:return null}}}function J(t){let e=(0,H.z8)(t),i={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]};return u.z.fromJSONCIM(i)}function Z(t){switch(t.geometryType){case"esriGeometryPolyline":{let e=[];for(;t.nextPath();)$(t,e);return u.z.fromJSONCIM({rings:e})}case"esriGeometryPolygon":case"esriGeometryEnvelope":return t;default:return null}}function $(t,e){if(t.seekPathStart(),!t.nextPoint())return;let i=t.x,s=t.y,n=[[i,s]];for(e.push(n);t.nextPoint();)n.push([t.x,t.y]);n.push([i,s])}class j{static{this.instance=null}static local(){return null===j.instance&&(j.instance=new j),j.instance}execute(t,e,i){return new K(t,e,i)}}class K extends d.rx{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new g;let s=i.geomUnitsPerPoint;this._length=(void 0===e.length?20:e.length)*s,this._angle=void 0===e.angle?225:e.angle,this._position=void 0===e.position?50:e.position,this._length<0&&(this._length=-this._length),this._position<20&&(this._position=20),this._position>80&&(this._position=80),this._mirror=!1}processPath(t){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._curveHelper.isEmpty(t))return null;t.seekInPath(0);let i=t.x,s=t.y;t.seekInPath(t.pathSize-1);let n=t.x,r=t.y,h=[n-i,r-s];this._curveHelper.normalize(h);let a=i+(n-i)*this._position/100,l=s+(r-s)*this._position/100,o=Math.cos((90-this._angle)/180*Math.PI),c=Math.sin((90-this._angle)/180*Math.PI);this._mirror&&(c=-c),this._mirror=!this._mirror;let _=[a-this._length/2*o,l-this._length/2*c],p=[a+this._length/2*o,l+this._length/2*c];return e.pushPath([[i,s],_,p,[n,r]]),e}}class Q{static{this.instance=null}static local(){return null===Q.instance&&(Q.instance=new Q),Q.instance}execute(t,e,i){return new tt(t,e,i)}}class tt{constructor(t,e,i){this._inputGeometries=t;let s=i.geomUnitsPerPoint;this._offsetX=void 0===e.offsetX?0:e.offsetX*s,this._offsetY=void 0===e.offsetY?0:e.offsetY*s}next(){let t=this._inputGeometries.next();for(;t;){if(t.totalSize>0)return this._move(t.clone(),this._offsetX,this._offsetY);t=this._inputGeometries.next()}return null}_move(t,e,i){for(;t.nextPath();)for(;t.nextPoint();)t.x+=e,t.y+=i;return t.reset(),t}}var et=i(60408);class it{static{this.instance=null}static local(){return null===it.instance&&(it.instance=new it),it.instance}execute(t,e,i){return new st(t,e,i)}}class st{constructor(t,e,i){let s=i.geomUnitsPerPoint,n=i.maxInflateSize;this._preventClipping=i.preventClipping,this._inputGeometries=t,this._tileKey=i.tileKey,this._curveHelper=new g,this._offset=(e.offset??1)*s,this._method=e.method??"Square",this._maxInflateSize=Math.max(Math.abs(n*s),10),this._offsetFlattenError=.03*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._offset)return t.clone();if("esriGeometryEnvelope"===t.geometryType){if("Rounded"===this._method&&this._offset>0){let e=(0,m.A)(t),i=this._curveHelper.offset(e,-this._offset,this._method,4,this._offsetFlattenError);if(i){let e=u.z.createEmptyOptimizedCIM(t.geometryType);return e.pushPath(i),e}return null}let e=t.asJSON();if((0,et.ZC)(e)&&Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._offset>0)return u.z.fromJSONCIM({xmin:e.xmin-this._offset,xmax:e.xmax+this._offset,ymin:e.ymin-this._offset,ymax:e.ymax+this._offset})}let e=!this._preventClipping&&this._tileKey?(0,M.qc)(t,this._maxInflateSize,!0):t.clone();if(!e)continue;let{simplifyOGCExecute:i}=M.xR.module,{offsetExecute:s}=M.mO.module,{graphicBufferExecuteMany:n}=M.hd.module,r=i({...e.asJSON(),spatialReference:{wkid:P.A.WebMercator.wkid}});if(!r)continue;let h,a=nt(this._method);return"esriGeometryPolygon"===t.geometryType?("square"===a&&(a="bevel"),h=n([r],[this._offset],a,"round")[0]):h=s(r,-this._offset,{joins:a,flattenError:this._offsetFlattenError,miterLimit:4}),h?u.z.fromJSONCIM(h):null}return null}}function nt(t){switch(t){case"Rounded":return"round";case"Bevelled":return"bevel";case"Mitered":return"miter";case"Square":return"square"}}var rt=i(12359);class ht{static{this.instance=null}static local(){return null===ht.instance&&(ht.instance=new ht),ht.instance}execute(t,e,i){return new at(t,e,i)}}class at{constructor(t,e,i){let s=i.geomUnitsPerPoint;this._inputGeometries=t,this._executionContext=i,this._length=(void 0===e.length?w.D.CIMGeometricEffectRadial.length:e.length)*s,this._angle=void 0===e.angle?w.D.CIMGeometricEffectRadial.angle:e.angle*Math.PI/180,this._lx=Math.cos(this._angle)*this._length,this._ly=Math.sin(this._angle)*this._length}next(){let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return t.nextPath()&&t.nextPoint()&&(this._executionContext.effectOrigin=[t.x,t.y],e.pushPath([[t.x,t.y],[t.x+this._lx,t.y+this._ly]])),e}if("esriGeometryPolygon"===t.geometryType){let e=(0,rt.IK)(t);if(!e)return null;let i=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return this._executionContext.effectOrigin=[e[0],e[1]],i.pushPath([[e[0],e[1]],[e[0]+this._lx,e[1]+this._ly]]),i}t=this._inputGeometries.next()}return null}}class lt{static{this.instance=null}static local(){return null===lt.instance&&(lt.instance=new lt),lt.instance}execute(t,e,i){return new ot(t,e,i)}}class ot{constructor(t,e,i){this._inputGeometries=t,this._reverse=void 0===e.reverse||e.reverse}next(){let t=this._inputGeometries.next();for(;t;){if(!this._reverse)return t;if("esriGeometryPolyline"===t.geometryType)return ut(t.clone());t=this._inputGeometries.next()}return null}}function ut(t){for(;t.nextPath();)for(let e=0;e<t.pathSize/2;e++){t.seekInPath(e);let i=t.x,s=t.y;t.seekInPath(t.pathSize-e-1);let n=t.x,r=t.y;t.x=i,t.y=s,t.seekInPath(e),t.x=n,t.y=r}return t.reset(),t}class ct{static{this.instance=null}static local(){return null===ct.instance&&(ct.instance=new ct),ct.instance}execute(t,e,i){return new _t(t,e,i)}}class _t{constructor(t,e,i){this._inputGeometries=t,this._rotateAngle=void 0===e.angle?0:e.angle*Math.PI/180}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._rotateAngle||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){let e=(0,H.z8)(t),i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;return t.reset(),this._rotate(t.clone(),i,s)}t=this._inputGeometries.next()}return null}_rotate(t,e,i){let s=Math.cos(this._rotateAngle),n=Math.sin(this._rotateAngle);for(;t.nextPath();)for(;t.nextPoint();){let r=t.x-e,h=t.y-i;t.x=e+r*s-h*n,t.y=i+r*n+h*s}return t.reset(),t}}class pt{static{this.instance=null}static local(){return null===pt.instance&&(pt.instance=new pt),pt.instance}execute(t,e,i){return new ft(t,e,i)}}class ft{constructor(t,e,i){this._inputGeometries=t,this._xFactor=void 0===e.xScaleFactor?1.15:e.xScaleFactor,this._yFactor=void 0===e.yScaleFactor?1.15:e.yScaleFactor}next(){let t=this._inputGeometries.next();if(t){if(1===this._xFactor&&1===this._yFactor||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){let e=(0,H.z8)(t),i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;return t.reset(),this._scaleCursor(t.clone(),i,s)}}return null}_scaleCursor(t,e,i){for(;t.nextPath();)for(;t.nextPoint();)t.x=e+(t.x-e)*this._xFactor,t.y=i+(t.y-i)*this._yFactor;return t.reset(),t}}class mt{constructor(){this._polyline=[]}beginPath(t){this._polyline.push([t])}lineTo(t){if(0===this._polyline.length)throw Error("No path started. Call beginPath first.");this._polyline[this._polyline.length-1].push(t)}getPointCount(){return this._polyline.reduce((t,e)=>t+e.length,0)}addSegment(t,e,i){i&&this.beginPath(t),this.lineTo(e)}getXY(t){let e=0;for(let i of this._polyline){if(t<e+i.length)return i[t-e];e+=i.length}return null}getGeometry(){return this._polyline}}class dt{static{this.instance=null}static local(){return null===dt.instance&&(dt.instance=new dt),dt.instance}execute(t,e,i){return new gt(t,e,i)}}class gt extends d.rx{constructor(t,e,i){super(t,!1,!0),this._suppress=void 0!==e.suppress&&e.suppress,this._invert=void 0!==e.invert&&e.invert}processPath(t){if(t.totalSize<=0)return null;if(!this._suppress){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.nextPoint();)e.pushXY(t.x,t.y);return e}let e=[],i=Array(t.pathSize),s=0;for(t.seekPathStart();t.nextPoint();)i[s++]=t.getControlPoint(),e.push([t.x,t.y]);let n=!0,r=!0,h=!1,a=!this._invert;s=0;let l=new mt,o=e[0];for(;s<e.length-1;){let t=e[s+1],u=i[s],c=i[s+1];s++,r&&=(a=u||c?this._invert:!this._invert,!1),a?(l.addSegment(o,t,n),n=!1):h=!0,o=t,c&&(a?(a=!1,n=!0):a=!0)}let c=l.getGeometry();if(0===c.length)return null;if(!h&&e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){let t=c[c.length-1];return(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1])&&t.push([t[0][0],t[0][1]]),u.z.fromJSONCIM({paths:c})}let _=c[c.length-1];return l.getPointCount()>1&&"esriGeometryPolygon"===t.geometryType&&_[0][0]===_[_.length-1][0]&&_[0][1]===_[_.length-1][1]&&c.length>1&&(c[c.length-1].push(...c[0]),c.splice(0,1)),u.z.fromJSONCIM({paths:c})}}var xt=i(49186),yt=i(53966),Pt=i(6774);const Mt=()=>yt.A.getLogger("esri.symbols.cim.effects.EffectTaperedPolygon");class bt{static{this.instance=null}static local(){return null===bt.instance&&(bt.instance=new bt),bt.instance}execute(t,e,i){return new Ct(t,e,i)}}class Ct extends d.rx{constructor(t,e,i){super(t,!1,!0),this._slopeS=0,this._slopeC=1,this._lastTangent1=new Pt.bR(NaN,NaN),this._lastWidth=0;let s=i.geomUnitsPerPoint;this._geomUnitsPerPoint=s,this._halfFromWidth=Math.abs(void 0===e.fromWidth?0:e.fromWidth)*s*.5,this._halfToWidth=Math.abs(void 0===e.toWidth?1:e.toWidth)*s*.5,this._originalLength=(void 0===e.length?0:e.length)*s,this._length=0}processPath(t){if(t.totalSize<=0)return null;if(this._halfFromWidth<=0&&this._halfToWidth<=0){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.prevPoint();)e.pushXY(t.x,t.y);for(t.seekPathStart();t.nextPoint();)e.pushXY(t.x,t.y);return e}let e=t.getCurrentPath().asJSON(),{generalizeExecute:i}=M.NS.module,s=i(e,.25*this._geomUnitsPerPoint,{removeDegenerateParts:!0}),n=null==s?null:(0,et.Bi)(s)?s.rings:(0,et.Rg)(s)?s.paths:null;if(!n)return Mt().error(new xt.A("mapview-bad-resource","Unable to process geometry")),null;let{lengthExecute:r}=M.Xs.module,h=r(s);if((0===this._originalLength||this._originalLength>h)&&h>0){this._length=h;let t=(this._halfToWidth-this._halfFromWidth)/this._length;if(Math.abs(t)<1){let e=t*t;this._slopeC=Math.sqrt(1/(1+e)),this._slopeS=Math.sqrt(e/(1+e)),t<0&&(this._slopeS=-this._slopeS)}else this._slopeC=this._slopeS=.7071}else this._length=this._originalLength,this._slopeC=1,this._slopeS=0;let a=[];for(let t of n){let e=new mt,i=new mt,s=0;this._setFromOffset(t.slice(0,2),e,i);for(let n=0,r=3;r<=t.length;++n,++r)s=this._setOffset(t.slice(n,r),s,e,i);this._setToOffset(t.slice(-2),s,e,i);let[n]=e.getGeometry(),[r]=i.getGeometry();a.push([...n,...r.reverse()])}let l={rings:a,spatialReference:{wkid:P.A.WebMercator.wkid}},{simplifyExecute:o}=M.yM.module,c=o(l);return u.z.fromJSONCIM(c)}_setFromOffset([[t,e],[i,s]],n,r){let h=this._halfFromWidth,a=new Pt.bR(i-t,s-e).normalize().scale(h);n.beginPath([t-a.y,e+a.x]),r.beginPath([t+a.y,e-a.x])}_setToOffset([[t,e],[i,s]],n,r,h){let a;a=(n+=Math.sqrt((i-t)**2+(s-e)**2))>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*n/this._length;let l=new Pt.bR(i-t,s-e).normalize().scale(a);r.lineTo([i-l.y,s+l.x]),h.lineTo([i+l.y,s-l.x])}_setOffset([[t,e],[i,s],[n,r]],h,a,l){let o,u=Math.sqrt((i-t)**2+(s-e)**2);o=h+u>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*(h+u)/this._length,h+=u;let c=new Pt.bR(i,s),_=new Pt.bR(i-t,s-e).normalize(),p=new Pt.bR(n-i,r-s).normalize(),f=Pt.bR.sub(p,_),m=a.getPointCount(),d=l.getPointCount();_.leftPerpendicular(),p.leftPerpendicular();let g=_.x*p.x+_.y*p.y;if(g>.99){let t=Pt.bR.add(_,p).scale(o/2),e=t.clone().rotate(this._slopeC,this._slopeS);a.lineTo([c.x+e.x,c.y+e.y]);let i=t.rotateReverse(this._slopeC,this._slopeS);l.lineTo([c.x-i.x,c.y-i.y])}else{let i=_.x*p.y-_.y*p.x;if(f.scale(1/i),i<0){f.scale(-o).rotateReverse(this._slopeC,this._slopeS);let t=l.getXY(d-1);t||Mt().error(new xt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let e=Pt.bR.add(c,f).sub(Pt.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){let t=_.clone().scale(-o).rotateReverse(this._slopeC,this._slopeS),e=p.clone().scale(-o).rotateReverse(this._slopeC,this._slopeS);l.lineTo([c.x+t.x,c.y+t.y]),l.lineTo([c.x,c.y]),l.lineTo([c.x+e.x,c.y+e.y])}else l.lineTo([c.x+f.x,c.y+f.y])}else{f.scale(o).rotate(this._slopeC,this._slopeS);let t=a.getXY(m-1);t||Mt().error(new xt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let e=Pt.bR.add(c,f).sub(Pt.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){let t=_.clone().scale(o).rotate(this._slopeC,this._slopeS),e=p.clone().scale(o).rotate(this._slopeC,this._slopeS);a.lineTo([c.x+t.x,c.y+t.y]),a.lineTo([c.x,c.y]),a.lineTo([c.x+e.x,c.y+e.y])}else a.lineTo([c.x+f.x,c.y+f.y])}let s=Math.acos(g),n=1;if(o>.25){let t=2*Math.acos(1-.25/o);t<s&&(n=Math.round(s/t))}let r=Math.cos(s/n),h=Math.sin(s/n),u=_.clone();if(i<0){u.rotate(this._slopeC,this._slopeS);let i=a.getXY(m-1);i||Mt().error(new xt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let s=Pt.bR.add(c,u.clone().scale(this._lastWidth)),n=Pt.bR.sub(s,Pt.bR.fromArray(i)),r=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&r>0){let i=new Pt.bR(t,e),s=this._lastTangent1.clone().scale(this._lastWidth);s.rotate(this._slopeC,this._slopeS);let n=_.clone().scale(this._lastWidth);n.rotate(this._slopeC,this._slopeS),a.lineTo([i.x+s.x,i.y+s.y]),a.lineTo([i.x,i.y]),a.lineTo([i.x+n.x,i.y+n.y])}}else{u.scale(-1).rotateReverse(this._slopeC,this._slopeS);let i=l.getXY(d-1);i||Mt().error(new xt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let s=Pt.bR.add(c,u.clone().scale(this._lastWidth)),n=Pt.bR.sub(s,Pt.bR.fromArray(i)),r=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&r>0){let i=new Pt.bR(t,e),s=this._lastTangent1.clone().scale(-this._lastWidth);s.rotateReverse(this._slopeC,this._slopeS);let n=_.clone().scale(-this._lastWidth);n.rotateReverse(this._slopeC,this._slopeS),l.lineTo([i.x+s.x,i.y+s.y]),l.lineTo([i.x,i.y]),l.lineTo([i.x+n.x,i.y+n.y])}}u.scale(o);for(let t=0;t<=n;t++)i<0?(a.lineTo([c.x+u.x,c.y+u.y]),u.rotateReverse(r,h)):(l.lineTo([c.x+u.x,c.y+u.y]),u.rotate(r,h))}return this._lastTangent1.setCoords(_.x,_.y),this._lastWidth=o,h}}class vt{static{this.instance=null}static local(){return null===vt.instance&&(vt.instance=new vt),vt.instance}execute(t,e,i){return new wt(t,e,i)}}class wt{constructor(t,e,i){this._inputGeometries=t;let s=i.geomUnitsPerPoint;this._height=(void 0===e.amplitude?2:e.amplitude)*s,this._period=(void 0===e.period?3:e.period)*s,this._style=e.waveform??"Sinus",this._height<=0&&(this._height=Math.abs(this._height)),this._period<=0&&(this._period=Math.abs(this._period)),this._pattern=new R,this._pattern.addValue(this._period),this._pattern.addValue(this._period),this._walker=new Y,this._walker.updateTolerance(s)}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._height||0===this._period)return t;let e=this._processGeom(t);if(e)return e;t=this._inputGeometries.next()}return null}_processGeom(t){let e=u.z.createEmptyOptimizedCIM(t.geometryType);for(;t.nextPath();){e.startPath();let i=t.pathLength();if(this._walker.init(t,this._pattern))switch(this._style){case"Sinus":default:this._constructCurve(e,i,!1);break;case"Square":this._constructSquare(e,i);break;case"Triangle":this._constructTriangle(e,i);break;case"Random":this._constructCurve(e,i,!0)}else for(;t.nextPoint();)e.pushXY(t.x,t.y)}return e}_constructCurve(t,e,i){let s=Math.round(e/this._period);0===s&&(s=1);let n=16*s+1,r=e/s,h=this._period/16,a=1/n,l=2*Math.PI*e/r,o=2*Math.PI*Math.random(),u=2*Math.PI*Math.random(),c=2*Math.PI*Math.random(),_=.75-Math.random()/2,p=.75-Math.random()/2,f=new F;this._walker.curPointAndAngle(f),t.pushPoint(f.pt);let m=0;for(;;){if(!this._walker.nextPointAndAngle(h,f)){t.pushPoint(this._walker.getPathEnd());break}{let e,s=m;if(m+=a,i){let t=this._height/2*(1+.3*Math.sin(_*l*s+o));e=t*Math.sin(l*s+u),e+=t*Math.sin(p*l*s+c),e/=2}else e=.5*this._height*Math.sin(.5*l*s);t.pushXY(f.pt[0]-e*f.sa,f.pt[1]+e*f.ca)}}}_constructSquare(t,e){Math.round(e/this._period);let i=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){let s=new F;this._walker.curPointAndAngle(s);let n=new F;if(this._walker.nextPointAndAngle(this._period,n)){let r=new F;this._walker.nextPointAndAngle(this._period,r)&&(i?(t.pushPoint(s.pt),i=!1):t.pushPoint(s.pt),t.pushXY(s.pt[0]-this._height/2*s.sa,s.pt[1]+this._height/2*s.ca),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(n.pt[0]+this._height/2*n.sa,n.pt[1]-this._height/2*n.ca),t.pushXY(r.pt[0]+this._height/2*r.sa,r.pt[1]-this._height/2*r.ca),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}_constructTriangle(t,e){Math.round(e/this._period);let i=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){let s=new F;this._walker.curPointAndAngle(s);let n=new F;if(this._walker.nextPointAndAngle(this._period/2,n)){let r=new F;this._walker.nextPointAndAngle(this._period,r)&&(this._walker.nextPosition(this._period/2)&&(i?(t.pushPoint(s.pt),i=!1):t.pushPoint(s.pt),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(r.pt[0]+this._height/2*r.sa,r.pt[1]-this._height/2*r.ca)),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}}class St{static{this.instance=null}static local(){return null===St.instance&&(St.instance=new St),St.instance}execute(t,e,i){return new It(t,e,i)}}class It extends d.pC{constructor(t,e,i){super(t),this._geometryWalker=new Y,this._geometryWalker.updateTolerance(i),this._angleToLine=e.angleToLine??!0,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset?e.offset:0)*i,this._originalEndings=e.endings??"WithHalfGap",this._offsetAtEnd=(e.customEndingOffset?e.customEndingOffset:0)*i,this._position=-(e.offsetAlongLine?e.offsetAlongLine:0)*i,this._pattern=new R,this._pattern.init(e.placementTemplate),this._pattern.scale(i),this._endings=this._originalEndings}processPath(t){if(this._pattern.isEmpty())return null;let e;if(this.iteratePath)e=this._pattern.nextValue();else{this._endings="WithFullGap"===this._originalEndings&&this.isClosed?"WithMarkers":this._originalEndings,this._pattern.extPtGap=0;let i,s=!0;switch(this._endings){case"NoConstraint":i=-this._position,i=this._adjustPosition(i),s=!1;break;case"WithHalfGap":default:i=-this._pattern.lastValue()/2;break;case"WithFullGap":i=-this._pattern.lastValue(),this._pattern.extPtGap=this._pattern.lastValue();break;case"WithMarkers":i=0;break;case"Custom":i=-this._position,i=this._adjustPosition(i),this._pattern.extPtGap=.5*this._offsetAtEnd}if(!this._geometryWalker.init(t,this._pattern,s))return null;this._pattern.reset();let n=0;for(;i>n;)i-=n,n=this._pattern.nextValue();n-=i,e=n,this.iteratePath=!0}let i=new F;return!this._geometryWalker.nextPointAndAngle(e,i)||"WithFullGap"===this._endings&&this._geometryWalker.isPathEnd()?(this.iteratePath=!1,null):"WithMarkers"===this._endings&&this._geometryWalker.isPathEnd()&&(this.iteratePath=!1,this.isClosed)?null:(this.internalPlacement.setTranslate(i.pt[0]-this._offset*i.sa,i.pt[1]+this._offset*i.ca),this._angleToLine&&this.internalPlacement.setRotateCS(i.ca,i.sa),this.internalPlacement)}_adjustPosition(t){let e=t/this._pattern.length();return e-=Math.floor(e),e*this._pattern.length()}}class zt{static{this.instance=null}static local(){return null===zt.instance&&(zt.instance=new zt),zt.instance}execute(t,e,i){return new kt(t,e,i)}}class kt extends d.pC{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new g,this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._type=e.extremityPlacement??"Both",this._position=void 0===e.offsetAlongLine?0:e.offsetAlongLine*i,this._beginProcessed=!1}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){let e;switch(this._type){case"Both":default:this._beginProcessed?(e=this._atExtremities(t,this._position,!1),this._beginProcessed=!1,this.iterateMultiPath=!1,this.iteratePath=!1):(e=this._atExtremities(t,this._position,!0),this._beginProcessed=!0,this.iterateMultiPath=!0,this.iteratePath=!0);break;case"JustBegin":e=this._atExtremities(t,this._position,!0);break;case"JustEnd":e=this._atExtremities(t,this._position,!1);case"None":}return e}_atExtremities(t,e,i){if(this._placePerPart||(i?t.seekPath(0):t.seekPath(t.totalSize-1)),i||t.seekPathEnd(),i?t.nextPoint():t.prevPoint()){let s=0,[n,r]=[0,0],[h,a]=[t.x,t.y],l=[0,0];for(;i?t.nextPoint():t.prevPoint();){n=h,r=a,h=t.x,a=t.y;let i=this._curveHelper.getLength(n,r,h,a);if(s+i>e){let t=(e-s)/i,[o,u]=this._curveHelper.getAngleCS(l,n,r,h,a,t),c=this._curveHelper.getCoord2D(n,r,h,a,t);return this.internalPlacement.setTranslate(c[0]-this._offset*u,c[1]+this._offset*o),this._angleToLine&&this.internalPlacement.setRotateCS(-o,-u),this.internalPlacement}s+=i}}return null}}const At=.001;class Tt{static{this.instance=null}static local(){return null===Tt.instance&&(Tt.instance=new Tt),Tt.instance}execute(t,e,i){return new Et(t,e,i)}}class Et extends d.pC{constructor(t,e,i){super(t),this._segmentIterator=null,this._segCount=0,this._firstSeg=!0,this._seg=null,this._ms=[],this._from=0,this._to=0,this._pt=null,this._walker=new Y,this._walker.updateTolerance(i),this._placePerPart=e.placePerPart??!1,this._angleToLine=e.angleToLine??!1,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset??0)*i,this._interval=e.interval??0,this._interval<=0&&(this._interval=.01),this._skipRate=e.skipMarkerRate??0,this._skipRate<=1&&(this._skipRate=0),this._placeAtExtremities=e.placeAtExtremities??!1}processPath(t){if(!this.iteratePath){let{fromGeometry:e}=M.vZ.module,i=e(t.getCurrentPath().asJSON()).getGeometry(),s=i.getPathStart(0);this._segmentIterator=i.querySegmentIteratorAtVertex(s),this._segCount=i.getSegmentCountPath(0),this._firstSeg=!0,this.iteratePath=!0,this._pt=i.getXY(0).clone()}for(;0===this._ms.length&&this._segmentIterator?.hasNextSegment();){--this._segCount,this._seg=this._segmentIterator.nextSegment(),this._from=this._seg.getStartAttributeAsDbl(2,0),this._to=this._seg.getEndAttributeAsDbl(2,0);let e=!isNaN(this._from),i=!isNaN(this._to);e&&(this._from=Math.round(this._from/At)*At,Math.abs(this._from)<At&&(this._from=0)),i&&(this._to=Math.round(this._to/At)*At,Math.abs(this._to)<At&&(this._to=0));let s=e?Math.floor(this._from/this._interval):0,n=i?Math.floor(this._to/this._interval):0;if(e&&(this._placeAtExtremities||!this._firstSeg||!this._placePerPart&&t.pathIndex>0)&&Math.abs(s*this._interval-this._from)<At&&(!this._skipRate||s%this._skipRate)&&this._ms.push(this._from),this._firstSeg=!1,e&&i&&!(Math.abs(this._from-this._to)<At))if(this._from<=this._to){s*this._interval<this._from+At&&++s,n*this._interval>this._to-At&&--n;for(let t=s;t<=n;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}else{s*this._interval>this._from-At&&--s,n*this._interval<this._to+At&&++n;for(let t=n;t<=s;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}}let e=0;if(0===this._ms.length){if(this.iteratePath=!1,!this._segCount&&this._placeAtExtremities&&!isNaN(this._to)&&(this._placePerPart||t.pathIndex===t.totalSize-1)){let t=Math.floor(this._to/this._interval);Math.abs(t*this._interval-this._to)<At&&(!this._skipRate||t%this._skipRate)&&(this._ms.push(this._to),e=1)}if(0===this._ms.length)return null}let i=this._ms.pop(),s=isNaN(this._from)||isNaN(this._to)||Math.abs(this._from-this._to)<At?e:(i-this._from)/(this._to-this._from);this._seg.queryCoord2D(s,this._pt);let{x:n,y:r}=this._seg.getTangent(s).normalize();return this.internalPlacement.setTranslate(this._pt.x-this._offset*r,this._pt.y+this._offset*n),this._angleToLine&&(this._keepUpright&&n<0&&(n=-n,r=-r),this.internalPlacement.setRotateCS(n,r)),this.internalPlacement.setMeasure(i),this.internalPlacement}}class Ot{static{this.instance=null}static local(){return null===Ot.instance&&(Ot.instance=new Ot),Ot.instance}execute(t,e,i){return new Lt(t,e,i)}}class Lt extends d.pC{constructor(t,e,i){super(t),this._walker=new Y,this._walker.updateTolerance(i),this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._beginGap=void 0===e.beginPosition?0:e.beginPosition*i,this._endGap=void 0===e.endPosition?0:e.endPosition*i,this._flipFirst=void 0===e.flipFirst||e.flipFirst,this._pattern=new R,this._pattern.init(e.positionArray,!1),this._subPathLen=0,this._totalPathLen=0,this._posCount=this._pattern.size(),this._pathIndexes=[],this._pathLengths=[],this._pathStarts=[],this._posIndex=0,this._positions=[],this._isFirst=!0,this._prevPos=0}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){return this._pattern.isEmpty()?null:this._placePerPart?this._processPathPerPart(t):this._processMultiPart(t)}_processPathPerPart(t){let e;if(this.iteratePath){let t=this._pattern.nextValue()*this._subPathLen,i=this._beginGap+t;e=i-this._prevPos,this._prevPos=i}else{if(this._posCount=this._pattern.size(),this._isFirst=!0,this._prevPos=0,this._subPathLen=t.pathLength()-this._beginGap-this._endGap,this._subPathLen<0)return this.iteratePath=!1,null;if(!this._walker.init(t,this._pattern,!1))return null;this._pattern.reset();let i=this._pattern.nextValue()*this._subPathLen,s=this._beginGap+i;e=s-this._prevPos,this._prevPos=s,this.iteratePath=!0}let i=new F;return this._walker.nextPointAndAngle(e,i,1)?(this._posCount--,0===this._posCount&&(this.iteratePath=!1),this._setPlacement(i)):(this.iteratePath=!1,null)}_processMultiPart(t){if(!this.iteratePath){if(!this._initializeMultiPart(t))return null;this.iteratePath=!0}if(this._posIndex>=this._positions.length)return this.iteratePath=!1,null;let e=this._getPositionAtDistance(t,this._positions[this._posIndex]);if(null==e)return this.iterateMultiPath=!1,this.iteratePath=!1,null;this._posIndex++;let i=this._posIndex<this._positions.length;return this.iterateMultiPath=i,this.iteratePath=i,this._setPlacement(e)}_initializeMultiPart(t){this._pathIndexes.length=0,this._pathLengths.length=0,this._pathStarts.length=0,this._positions.length=0,this._totalPathLen=0,this._posIndex=0,this._isFirst=!0;for(let e=0;e<t.totalSize;e++){if(!t.seekPath(e))continue;let i=t.pathLength();i<=0||(this._pathIndexes.push(e),this._pathStarts.push(this._totalPathLen),this._pathLengths.push(i),this._totalPathLen+=i)}if(this._subPathLen=this._totalPathLen-this._beginGap-this._endGap,this._subPathLen<0||!this._pathIndexes.length)return!1;this._pattern.reset();for(let t=0;t<this._pattern.size();t++)this._positions.push(this._beginGap+this._pattern.nextValue()*this._subPathLen);return this._positions.length>0}_getPositionAtDistance(t,e){let i=Math.max(0,Math.min(e,this._totalPathLen)),s=this._pathIndexes.length-1;for(let t=0;t<this._pathIndexes.length-1;t++)if(i<=this._pathStarts[t]+this._pathLengths[t]){s=t;break}if(!t.seekPath(this._pathIndexes[s])||!this._walker.init(t,this._pattern,!1))return null;let n=new F,r=Math.max(0,Math.min(i-this._pathStarts[s],this._pathLengths[s]));return this._walker.nextPointAndAngle(r,n,1)?n:null}_setPlacement(t){this.internalPlacement.setTranslate(t.pt[0]-this._offset*t.sa,t.pt[1]+this._offset*t.ca);let e,i,s=this._isFirst&&this._flipFirst;return this._angleToLine?(e=t.ca,i=t.sa):(e=1,i=0),s&&(e=-e,i=-i),this.internalPlacement.setRotateCS(e,i),this._isFirst=!1,this.internalPlacement}}var Gt=i(87811),Nt=i(98939);const Rt=1e-6;class Ft{static{this.instance=null}static local(){return null===Ft.instance&&(Ft.instance=new Ft),Ft.instance}execute(t,e,i,s){return new Xt(t,e,i,s)}}class Xt{constructor(t,e,i,s){if(this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,this._currentX=0,this._currentY=0,this._accelerationMap=null,this._testInsidePolygon=!1,this._verticalSubdivision=!0,this._stepX=Math.abs(e.stepX??16)*i,this._stepY=Math.abs(e.stepY??16)*i,this._stepX=Math.round(128*this._stepX)/128,this._stepY=Math.round(128*this._stepY)/128,0!==this._stepX&&0!==this._stepY){if(this._gridType=e.gridType??"Fixed","Random"===this._gridType){let t=e.seed??13;this._randomLCG=new Gt.A(1*t),this._randomness=(e.randomness??100)/100,this._gridAngle=0,this._shiftOddRows=!1,this._cosAngle=1,this._sinAngle=0,this._offsetX=0,this._offsetY=0,this._buildRandomValues()}else{if(this._randomness=0,this._gridAngle=e.gridAngle??0,this._shiftOddRows=e.shiftOddRows??!1,this._offsetX=(e.offsetX??0)*i,this._offsetY=(e.offsetY??0)*i,this._cosAngle=Math.cos(this._gridAngle/180*Math.PI),this._sinAngle=-Math.sin(this._gridAngle/180*Math.PI),this._stepX)if(this._offsetX<0)for(;this._offsetX<-.5*this._stepX;)this._offsetX+=this._stepX;else for(;this._offsetX>=.5*this._stepX;)this._offsetX-=this._stepX;if(this._stepY)if(this._offsetY<0)for(;this._offsetY<-.5*this._stepY;)this._offsetY+=this._stepY;else for(;this._offsetY>=.5*this._stepY;)this._offsetY-=this._stepY}if(this._graphicOriginX=0,this._graphicOriginY=0,null!=s){let[t,e,i,n]=s.split("/"),r=parseFloat(t),h=parseFloat(e),a=parseFloat(i),l=parseFloat(n);this._graphicOriginX=512*-(l*2**r+a),this._graphicOriginY=512*h,this._testInsidePolygon=!0}this._internalPlacement=new Nt.W,this._calculateMinMax(t),this._geometryCursor=t}}next(){return this._geometryCursor?this._nextInside():null}_buildRandomValues(){if(!Xt._randValues){Xt._randValues=[];for(let t=0;t<24;t++)for(let t=0;t<24;t++)Xt._randValues.push(this._randomLCG.getFloat()),Xt._randValues.push(this._randomLCG.getFloat())}}_calculateMinMax(t){let e,i,s,n,r,h,a,l,o,u,c,_,p,f;this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,a=l=p=c=Number.MAX_VALUE,o=u=f=_=-Number.MAX_VALUE;let m=1!==this._cosAngle;for(t.reset();t.nextPath();)for(;t.nextPoint();)h=t.x,r=t.y,e=h-this._graphicOriginX-this._offsetX,i=r-this._graphicOriginY-this._offsetY,m?(s=this._cosAngle*e-this._sinAngle*i,n=this._sinAngle*e+this._cosAngle*i):(s=e,n=i),a=Math.min(a,s),o=Math.max(o,s),l=Math.min(l,n),u=Math.max(u,n),c=Math.min(c,r),_=Math.max(_,r),p=Math.min(p,h),f=Math.max(f,h);c=c===Number.MAX_VALUE?-512-this._stepY:c,_=_===-Number.MAX_VALUE?this._stepY:_,p=p===Number.MAX_VALUE?-this._stepX:p,f=f===-Number.MAX_VALUE?512+this._stepX:f;let d=_-c,g=f-p;if(this._verticalSubdivision=d>=g,this._polygonMin=this._verticalSubdivision?c:p,this._testInsidePolygon){let t=0-this._graphicOriginX-this._offsetX-this._stepX,e=512-this._graphicOriginX-this._offsetX+this._stepX,i=-512-this._graphicOriginY-this._offsetY-this._stepY,s=0-this._graphicOriginY-this._offsetY+this._stepY;if(m){let n=[[t,i],[t,s],[e,i],[e,s]];t=i=Number.MAX_VALUE,e=s=-Number.MAX_VALUE;for(let r of n){let n=this._cosAngle*r[0]-this._sinAngle*r[1],h=this._sinAngle*r[0]+this._cosAngle*r[1];t=Math.min(t,n),e=Math.max(e,n),i=Math.min(i,h),s=Math.max(s,h)}}a=a===Number.MAX_VALUE?t:Math.max(a,t),l=l===Number.MAX_VALUE?i:Math.max(l,i),o=o===-Number.MAX_VALUE?e:Math.min(o,e),u=u===-Number.MAX_VALUE?s:Math.min(u,s)}this._xMin=Math.round(a/this._stepX),this._xMax=Math.round(o/this._stepX),this._yMin=Math.round(l/this._stepY),this._yMax=Math.round(u/this._stepY),this._currentX=this._xMax+1,this._currentY=this._yMin-1,this._buildAccelerationMap(t,p,f,c,_)}_buildAccelerationMap(t,e,i,s,n){t.reset();let r=new Map,h=this._verticalSubdivision,a=h?n-s:i-e,l=Math.ceil(a/10);if(l<=1)return;let o,u,c,_,p,f,m,d,g,x,y,P=Math.floor(a/l);for(l++,this._delta=P,h?(g=-512-2*this._stepY,x=2*this._stepY,y=s):(g=-2*this._stepX,x=512+2*this._stepX,y=e);t.nextPath();)if(!(t.pathSize<2)&&t.nextPoint())for(o=t.x,u=t.y;t.nextPoint();o=c,u=_){if(c=t.x,_=t.y,h){if(u===_||u<g&&_<g||u>x&&_>x)continue;p=Math.min(u,_),f=Math.max(u,_)}else{if(o===c||o<g&&c<g||o>x&&c>x)continue;p=Math.min(o,c),f=Math.max(o,c)}for(;p<f;)m=Math.floor((p-y)/P),Yt(m,o,u,c,_,r),p+=P;d=Math.floor((f-y)/P),d>m&&Yt(d,o,u,c,_,r)}this._accelerationMap=r}_nextInside(){for(;;){if(this._currentX>this._xMax){if(this._currentY++,this._currentY>this._yMax)return null;this._currentX=this._xMin,this._shiftOddRows&&this._currentY%2&&this._currentX--}let t=this._currentX*this._stepX+this._offsetX;this._shiftOddRows&&this._currentY%2&&(t+=.5*this._stepX);let e,i,s=this._currentY*this._stepY+this._offsetY;if(this._currentX++,"Random"===this._gridType){let n=(this._currentX%24+24)%24,r=(this._currentY%24+24)%24;e=this._graphicOriginX+t+this._stepX*this._randomness*(.5-Xt._randValues[24*r+n])*2/3,i=this._graphicOriginY+s+this._stepY*this._randomness*(.5-Xt._randValues[24*r+n+1])*2/3}else e=this._graphicOriginX+this._cosAngle*t+this._sinAngle*s,i=this._graphicOriginY-this._sinAngle*t+this._cosAngle*s;if(!this._testInsidePolygon||this._isInsidePolygon(e,i,this._geometryCursor))return this._internalPlacement.setTranslate(e,i),this._internalPlacement}}_isInsidePolygon(t,e,i){if(null==this._accelerationMap)return function(t,e,i){let s,n,r,h,a=0;for(t+=Rt,e+=Rt,i.reset();i.nextPath();)if(i.nextPoint())for(s=i.x,n=i.y;i.nextPoint();s=r,n=h)r=i.x,h=i.y,n>e!=h>e&&((r-s)*(e-n)-(h-n)*(t-s)>0?a++:a--);return 0!==a}(t,e,i);t+=Rt,e+=Rt;let s=this._verticalSubdivision,n=Math.floor(((s?e:t)-this._polygonMin)/this._delta),r=this._accelerationMap.get(n);if(!r)return!1;let h,a,l,o=0;for(let i of r){if(h=i[0],a=i[1],s){if(h[1]>e==a[1]>e)continue;l=(a[0]-h[0])*(e-h[1])-(a[1]-h[1])*(t-h[0])}else{if(h[0]>t==a[0]>t)continue;l=(a[1]-h[1])*(t-h[0])-(a[0]-h[0])*(e-h[1])}l>0?o++:o--}return 0!==o}}function Yt(t,e,i,s,n,r){let h=r.get(t);h||(h=[],r.set(t,h)),h.push([[e,i],[s,n]])}class Dt{static{this.instance=null}static local(){return null===Dt.instance&&(Dt.instance=new Dt),Dt.instance}execute(t,e,i){return new Wt(t,e,i)}}class Wt extends d.pC{constructor(t,e,i){super(t),this._curveHelper=new g,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._relativeTo=e.relativeTo??"LineMiddle",this._position=void 0===e.startPointOffset?0:e.startPointOffset*i,this._epsilon=.001*i}processPath(t){let e=this._position;if("SegmentMidpoint"===this._relativeTo){if(this.iteratePath||=!0,t.nextPoint()){let[e,i]=[t.x,t.y],[s,n]=[0,0],r=[0,0];for(;t.nextPoint();){s=t.x,n=t.y;let h=this._curveHelper.getLength(e,i,s,n);if(h<this._epsilon){e=s,i=n;continue}let a=.5+this._position/h,[l,o]=this._curveHelper.getAngleCS(r,e,i,s,n,a),u=this._curveHelper.getCoord2D(e,i,s,n,a);return this.internalPlacement.setTranslate(u[0]-this._offset*o,u[1]+this._offset*l),this._angleToLine&&this.internalPlacement.setRotateCS(l,o),this.internalPlacement}}return this.iteratePath=!1,null}let i="LineEnd"===this._relativeTo;return this.onLine(t,e,i)}onLine(t,e,i){let s,n=!1;switch(this._relativeTo){case"LineMiddle":default:t.seekPathStart(),s=t.pathLength()/2+e;break;case"LineBeginning":s=e;break;case"LineEnd":s=e,n=!0}i?t.seekPathEnd():t.seekPathStart();let r=0;if(i?t.prevPoint():t.nextPoint()){let[e,h]=[t.x,t.y],[a,l]=[0,0],o=[0,0];for(;i?t.prevPoint():t.nextPoint();){a=t.x,l=t.y;let i=this._curveHelper.getLength(e,h,a,l);if(r+i>s){let t=(s-r)/i,[u,c]=this._curveHelper.getAngleCS(o,e,h,a,l,t),_=this._curveHelper.getCoord2D(e,h,a,l,t),p=n?-this._offset:this._offset;return this.internalPlacement.setTranslate(_[0]-p*c,_[1]+p*u),this._angleToLine&&(n?this.internalPlacement.setRotateCS(-u,-c):this.internalPlacement.setRotateCS(u,c)),this.internalPlacement}e=a,h=l,r+=i}}return null}}class Bt{static{this.instance=null}static local(){return null===Bt.instance&&(Bt.instance=new Bt),Bt.instance}execute(t,e,i){return new Ut(t,e,i)}}class Ut extends d.pC{constructor(t,e,i){super(t),this._curveHelper=new g,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._endPoints=void 0===e.placeOnEndPoints||e.placeOnEndPoints,this._controlPoints=void 0===e.placeOnControlPoints||e.placeOnControlPoints,this._regularVertices=void 0===e.placeOnRegularVertices||e.placeOnRegularVertices,this._tags=[],this._tagIterator=0}processPath(t){if(this.iteratePath||=(this._preparePath(t),!0),this._tagIterator>=this._tags.length)return this._tags.length=0,this._tagIterator=0,this.iteratePath=!1,null;let e=this._tags[this._tagIterator];this._angleToLine&&this.internalPlacement.setRotate(e[2]);let i=e[0],s=e[1];if(0!==this._offset){let t=Math.cos(e[2]),n=Math.sin(e[2]);i-=this._offset*n,s+=this._offset*t}return this.internalPlacement.setTranslate(i,s),this._tagIterator++,this.internalPlacement}_preparePath(t){this._tags.length=0,this._tagIterator=0,t.seekPathStart();let e=t.isClosed(),i=0,s=!1,n=0,r=0;if(t.seekPathStart(),t.nextPoint()){let h=t.x,a=t.y,l=t.getControlPoint(),o=!0,u=t.nextPoint();for(;u;){let c=t.x,_=t.y,p=t.getControlPoint();(this._angleToLine||0!==this._offset)&&(n=this._curveHelper.getAngle(h,a,c,_,0)),o?(o=!1,e?(i=n,s=l):(this._endPoints||this._controlPoints&&l)&&this._tags.push([h,a,n])):l?this._controlPoints&&this._tags.push([h,a,Ht(r,n)]):this._regularVertices&&this._tags.push([h,a,Ht(r,n)]),(this._angleToLine||0!==this._offset)&&(r=this._curveHelper.getAngle(h,a,c,_,1)),u=t.nextPoint(),u||(e?p||s?this._controlPoints&&this._tags.push([c,_,Ht(r,i)]):this._regularVertices&&this._tags.push([c,_,Ht(r,i)]):(this._endPoints||this._controlPoints&&p)&&this._tags.push([c,_,r])),h=c,a=_,l=p}}this._tagIterator=0}}function Ht(t,e){let i=Math.PI;for(;Math.abs(e-t)>i+2e-15;)e-t>i?e-=2*i:e+=2*i;return(t+e)/2}var Vt=i(78957);class qt{static{this.instance=null}static local(){return null===qt.instance&&(qt.instance=new qt),qt.instance}execute(t,e,i){return new Jt(t,e,i)}}class Jt{constructor(t,e,i){this._geometryCursor=t,this._offsetX=void 0===e.offsetX?0:e.offsetX*i,this._offsetY=void 0===e.offsetY?0:e.offsetY*i,this._method=void 0===e.method?"OnPolygon":e.method,this._placementPerPart=void 0!==e.placePerPart&&e.placePerPart,this._internalPlacement=new Nt.W}next(){let t=this._geometryCursor;if(!t)return null;if(!this._placementPerPart)return this._geometryCursor=null,this._polygonCenter(t);for(;t.nextPath();)if(!(t.getCurrentRingArea()<0))return this._polygonCenter(t.getCurrentPath());return this._geometryCursor=null,null}_polygonCenter(t){let e=!1;switch(this._method){case"CenterOfMass":{let i=(0,rt.TP)(t);i&&(this._internalPlacement.setTranslate(i[0]+this._offsetX,i[1]+this._offsetY),e=!0)}break;case"BoundingBoxCenter":{let i=(0,H.z8)(t);i&&(this._internalPlacement.setTranslate((i[2]+i[0])/2+this._offsetX,(i[3]+i[1])/2+this._offsetY),e=!0)}break;default:{let i=(0,Vt.d)(t);null!==i&&(this._internalPlacement.setTranslate(i[0]+this._offsetX,i[1]+this._offsetY),e=!0)}}return e?this._internalPlacement:null}}var Zt=i(86235),$t=i(14057);class jt{static{this.instance=null}static local(){return null===jt.instance&&(jt.instance=new jt),jt.instance}execute(t,e,i){return new Kt(t,i)}}class Kt{constructor(t,e){this._cursor=t,this._context=e}next(){let t=this._cursor.next();if(!t||0===t.totalSize)return null;if(this._context.callout?.preserveInputGeometry)return t;let{matcher:e,target:i,tileKey:s}=this._context,n=e&&i&&null!=s?e.getMatcherGeometryOverride((0,$t.$)(s,i.getObjectId())):null;if(!n)return t;let r=u.z.fromOptimizedCIM(n.geometry.clone(),n.geometryType);return r.invertY(),r}}class Qt{static{this.instance=null}static local(){return null===Qt.instance&&(Qt.instance=new Qt),Qt.instance}execute(t){return new te(t)}}class te extends d.pC{constructor(t){super(t),this._curveHelper=new g}processPath(t){if(this.iteratePath=!0,t.nextPoint()){let[e,i]=[t.x,t.y];if(t.nextPoint()){let[s,n]=[t.x,t.y],r=(e+s)/2,h=(i+n)/2;this.internalPlacement.setTranslate(r,h);let a=this._curveHelper.getAngle(e,i,s,n,0);return this.internalPlacement.setRotate(a),this.internalPlacement}}return this.iteratePath=!1,null}}function ee(t){if(!t)return null;switch(t.type){case"CIMGeometricEffectAddControlPoints":return p.local();case"CIMGeometricEffectArrow":return x.local();case"CIMGeometricEffectBuffer":return b.local();case"CIMGeometricEffectCircularSector":return z.local();case"CIMGeometricEffectControlMeasureLine":return E.local();case"CIMGeometricEffectCut":return L.local();case"CIMGeometricEffectDashes":return D.local();case"CIMGeometricEffectDonut":return B.local();case"CIMGeometricEffectJog":return j.local();case"CIMGeometricEffectMove":return Q.local();case"CIMGeometricEffectOffset":return it.local();case"CIMGeometricEffectRadial":return ht.local();case"CIMGeometricEffectReverse":return lt.local();case"CIMGeometricEffectRotate":return ct.local();case"CIMGeometricEffectScale":return pt.local();case"CIMGeometricEffectSuppress":return dt.local();case"CIMGeometricEffectTaperedPolygon":return bt.local();case"CIMGeometricEffectWave":return vt.local();case"CIMGeometricEffectEnclosingPolygon":return V.local();case"CIMSimpleLineCallout":return c.local();case"CIMBackgroundCallout":return n.local();case"CIMBalloonCallout":return h.local();case"CIMPointSymbolCallout":return l.local();case"PrivateDimensionEffect":return Zt.HZ.local();case"PrivateMatcherGeometryOverrideEffect":return jt.local()}return null}function ie(t){if(!t)return null;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":return St.local();case"CIMMarkerPlacementAtExtremities":return zt.local();case"CIMMarkerPlacementAtMeasuredUnits":return Tt.local();case"CIMMarkerPlacementAtRatioPositions":return Ot.local();case"CIMMarkerPlacementInsidePolygon":return Ft.local();case"CIMMarkerPlacementOnLine":return Dt.local();case"PrivatePlacementMultipoint":return Qt.local();case"CIMMarkerPlacementOnVertices":return Bt.local();case"CIMMarkerPlacementPolygonCenter":return qt.local()}return null}},98939(t,e,i){i.d(e,{W:()=>s});class s{constructor(){this.setIdentity()}getAngle(){return this.rz}setIdentity(){this.tx=0,this.ty=0,this.tz=0,this.s=1,this.rx=0,this.ry=0,this.rz=0,this.rzCos=1,this.rzSin=0}setTranslate(t,e){this.tx=t,this.ty=e}setTranslateZ(t){this.tz=t}setRotateCS(t,e){this.rz=Math.atan2(e,t),this.rzCos=t,this.rzSin=e}setRotate(t){this.rz=t,this.rzCos=Math.cos(t),this.rzSin=Math.sin(t)}setRotateY(t){this.ry=t}setScale(t){this.s=t}setMeasure(t){this.m=t}}},23650(t,e,i){i.d(e,{OverrideHelper:()=>_});var s=i(68197),n=i(85334),r=i(4718),h=i(95466),a=i(55674),l=i(45733),o=i(93397),u=i(37615);const c=t=>{if(!t)return[0,0,0,0];let{r:e,g:i,b:s,a:n}=t;return[e,i,s,255*n]};class _{static findApplicableOverrides(t,e,i){if(t&&e){if(t.primitiveName){let s=!1;for(let e of i)if(e.primitiveName===t.primitiveName){s=!0;break}if(!s)for(let s of e)s.primitiveName===t.primitiveName&&i.push(s)}switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(t.effects)for(let s of t.effects)_.findApplicableOverrides(s,e,i);if(t.symbolLayers)for(let s of t.symbolLayers)_.findApplicableOverrides(s,e,i);break;case"CIMTextSymbol":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":case"CIMVectorMarker":case"CIMCharacterMarker":case"CIMPictureMarker":if(t.effects)for(let s of t.effects)_.findApplicableOverrides(s,e,i);if(t.markerPlacement&&_.findApplicableOverrides(t.markerPlacement,e,i),"CIMVectorMarker"===t.type){if(t.markerGraphics)for(let s of t.markerGraphics)_.findApplicableOverrides(s,e,i),_.findApplicableOverrides(s.symbol,e,i)}else"CIMCharacterMarker"===t.type?_.findApplicableOverrides(t.symbol,e,i):"CIMHatchFill"===t.type?_.findApplicableOverrides(t.lineSymbol,e,i):"CIMPictureMarker"===t.type&&_.findApplicableOverrides(t.animatedSymbolProperties,e,i)}}}static findEffectOverrides(t,e){if(!t)return null;if("CIMGeometricEffectDashes"===t.type&&(0,l.FH)(t),!e||!t.primitiveName)return{type:"cim-effect-param",effect:t,overrides:[]};let i=(0,o.rB)(t),s=t.primitiveName,n=[];for(let t of e)t.primitiveName===s&&n.push((0,o.rB)(t));return{type:"cim-effect-param",effect:i,overrides:(0,o.pk)(n)}}static async resolveSymbolOverrides(t,e,i,s,n,a,l){if(!t?.symbol)return null;let{symbol:u,primitiveOverrides:c}=t,p=!!c;if(!p&&!s)return u;u=(0,r.o8)(u),c=(0,r.o8)(c);let f=!0;if(e||(e={attributes:{}},f=!1),p){if(f||(c=c.filter(t=>!t.valueExpressionInfo?.expression.includes("$feature"))),l||(c=c.filter(t=>!t.valueExpressionInfo?.expression.includes("$view"))),c.length>0){let t=(0,o.O2)(e.attributes),s={spatialReference:i,fields:t,geometryType:n};await _.createRenderExpressions(c,s),_.evaluateOverrides(c,e,n??"esriGeometryPoint",a,l,new h.A(t))}_.applyOverrides(u,c)}return s&&_.applyDictionaryTextOverrides(u,e,s,null),u}static{this._expressionToRenderExpression=new Map}static async createRenderExpressions(t,e){let i=[];for(let s of t){let t=s.valueExpressionInfo;if(!t||_._expressionToRenderExpression.has(t.expression))continue;let n=(0,a.Ad)(t.expression,e.spatialReference);i.push(n),n.then(e=>_._expressionToRenderExpression.set(t.expression,e))}i.length>0&&await Promise.all(i)}static evaluateOverrides(t,e,i,s,r,h){let a={$view:{scale:r?.scale}};for(let r of t){r.value&&"object"==typeof r.value&&(0,n.IB)(r.value)&&("Color"===r.propertyName||"StrokeColor"===r.propertyName)&&(r.value=c(r.value));let t=r.valueExpressionInfo;if(!t)continue;let l=_._expressionToRenderExpression.get(t.expression);l&&(r.value=(0,u.A)(l,e,a,i,h,s),r.value=this.toValue(r.propertyName,r.value))}}static applyDictionaryTextOverrides(t,e,i,s,n="Normal"){if(t?.type)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":case"CIMTextSymbol":{let r=t.symbolLayers;if(!r)return;for(let h of r)h&&"CIMVectorMarker"===h.type&&_.applyDictionaryTextOverrides(h,e,i,s,"CIMTextSymbol"===t.type?t.textCase:n)}break;case"CIMVectorMarker":{let n=t.markerGraphics;if(!n)return;for(let t of n)t&&_.applyDictionaryTextOverrides(t,e,i,s)}break;case"CIMMarkerGraphic":{let r=t.textString;if(r&&r.includes("[")){let h=(0,o.gQ)(r,i);t.textString=(0,o.FM)(e,h,s,n)}}}}static applyOverrides(t,e,i,s){if(t.primitiveName)for(let n of e)if(n.primitiveName===t.primitiveName){let e=(0,o.YF)(n.propertyName);if(s&&s.push({cim:t,nocapPropertyName:e,value:t[e]}),i){let e=!1;for(let s of i)s.primitiveName===t.primitiveName&&(e=!0);e||i.push(n)}null!=n.value&&(t[e]=n.value)}switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(t.effects)for(let n of t.effects)_.applyOverrides(n,e,i,s);if(t.symbolLayers)for(let n of t.symbolLayers)_.applyOverrides(n,e,i,s);break;case"CIMTextSymbol":_.applyOverrides(t.symbol,e,i,s);break;case"CIMSolidStroke":case"CIMSolidFill":case"CIMVectorMarker":if(t.effects)for(let n of t.effects)_.applyOverrides(n,e,i,s);if("CIMVectorMarker"===t.type&&t.markerGraphics)for(let n of t.markerGraphics)_.applyOverrides(n,e,i,s),_.applyOverrides(n.symbol,e,i,s)}}static restoreOverrides(t){for(let e of t)e.cim[e.nocapPropertyName]=e.value}static buildOverrideKey(t){let e="";for(let i of t)void 0!==i.value&&(e+=`${i.primitiveName}${i.propertyName}${JSON.stringify(i.value)}`);return e}static toValue(t,e){if(null==e)return null;if("DashTemplate"===t)return e.split(" ").map(t=>Number(t));if("Color"===t||"StrokeColor"===t){let t=new s.A(e).toRgba();return t[3]*=255,t}return e}}},34653(t,e,i){i.d(e,{E0:()=>c,gX:()=>u,gR:()=>o,W:()=>d,ZO:()=>y,IF:()=>x,n_:()=>_,DJ:()=>g,_T:()=>m,Io:()=>b,EE:()=>h,pT:()=>P,Je:()=>M,sz:()=>p,XD:()=>l,QB:()=>a});var s=i(36745);function n(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin),r=.5*(t.ymax-t.ymin),h=1/Math.sqrt(e.x*e.x/(n*n)+e.y*e.y/(r*r));return{x:i+e.x*h,y:s+e.y*h}}function r(t,e,i){let s=.5*(t.xmin+t.xmax),n=.5*(t.ymin+t.ymax),r=.5*(t.xmax-t.xmin),h=.5*(t.ymax-t.ymin),a=e.x-s,l=e.y-n,o=i.x-e.x,u=i.y-e.y,c=o*o/(r*r)+u*u/(h*h),_=2*(a*o/(r*r)+l*u/(h*h)),p=a*a/(r*r)+l*l/(h*h)-1,f=Math.max(_*_-4*c*p,0),m=(-_-Math.sqrt(f))/(2*c),d=(-_+Math.sqrt(f))/(2*c),g=m>=0&&m<=1?m:d;return{x:e.x+o*g,y:e.y+u*g}}function h(t,e){let{relativeAnchor:i,relativeLayoutAnchor:s,absoluteAnchor:n,bodyBounds:r}=e??{},h=t.clone();if("esriGeometryPoint"===h.geometryType||"esriGeometryMultipoint"===h.geometryType){if(!h.nextPath()||(h.seekPathStart(),!h.nextPoint()))return null;let t=n??(i?{x:h.x+i.x,y:h.y+i.y}:{x:h.x,y:h.y});return{anchor:t,layoutAnchor:n??(s?{x:h.x+s.x,y:h.y+s.y}:t),bounds:r?a(r,h.x,h.y):{xmin:h.x,ymin:h.y,xmax:h.x,ymax:h.y}}}if(r&&1===h.totalSize&&1===h.totalPoints){if(!h.seekPath(0)||(h.seekPathStart(),!h.nextPoint()))return null;let t=n??(i?{x:h.x+i.x,y:h.y+i.y}:{x:h.x,y:h.y});return{anchor:t,layoutAnchor:n??(s?{x:h.x+s.x,y:h.y+s.y}:t),bounds:a(r,h.x,h.y)}}if(h.totalSize<2)return null;function a(t,e,i){return{xmin:t.xmin+e,ymin:t.ymin+i,xmax:t.xmax+e,ymax:t.ymax+i}}let l=h.totalSize-1,o={xmin:1/0,ymin:1/0,xmax:-1/0,ymax:-1/0};for(let t=0;t<l;t++){if(!h.seekPath(t))return null;for(h.seekPathStart();h.nextPoint();)C(o,h.x,h.y)}return function(t){return Number.isFinite(t.xmin)&&Number.isFinite(t.ymin)&&Number.isFinite(t.xmax)&&Number.isFinite(t.ymax)}(o)&&h.seekPath(l)&&(h.seekPathStart(),h.nextPoint())?{anchor:n??{x:h.x,y:h.y},layoutAnchor:n??{x:h.x,y:h.y},bounds:o}:null}function a(t,e){return{left:(t?.left??0)*e,right:(t?.right??0)*e,top:(t?.top??0)*e,bottom:(t?.bottom??0)*e}}function l(t,e){return{xmin:t.xmin-e.left,ymin:t.ymin-e.bottom,xmax:t.xmax+e.right,ymax:t.ymax+e.top}}function o(t,e){return e.x>=t.xmin&&e.x<=t.xmax&&e.y>=t.ymin&&e.y<=t.ymax}function u(t){return{x:.5*(t.xmin+t.xmax),y:.5*(t.ymin+t.ymax)}}function c(t,e,i=0){let s,n,r=t.xmin-i,h=t.ymin-i,a=t.xmax+i,l=t.ymax+i,o=.5*(r+a),u=.5*(h+l);return s=e.x<r?r:e.x>a?a:e.x<o?Math.abs(e.x-r)<Math.abs(e.x-o)?r:o:Math.abs(e.x-a)<Math.abs(e.x-o)?a:o,n=e.y<h?h:e.y>l?l:e.y<u?Math.abs(e.y-h)<Math.abs(e.y-u)?h:u:Math.abs(e.y-l)<Math.abs(e.y-u)?l:u,{x:s,y:n}}function _(t,e,i,s,n,r,h=1,a=!1,l=t){let o=G(t,e,i??0,n,9*h,a,l);return v(function(t){return t.filter((e,i)=>0===i||e.x!==t[i-1].x||e.y!==t[i-1].y)}(s>0?function(t,e){return function(t,e){let i=e;for(let e=1;e<t.length;e++){let s=t[e-1],n=t[e],r=b(s,n);if(i<r){let h=i/r;return[{x:s.x+h*(n.x-s.x),y:s.y+h*(n.y-s.y)},...t.slice(e)]}i-=r}return[t[t.length-1]]}(t.slice().reverse(),e).reverse()}(o,s):o),r)}function p(t,e,i,s,n=!1,r=t){let h=i??0;return 0!==h||n?f(N(t,e,h,s,r),e,h):c(t,e,s)}function f(t,e,i){let s=R(t.start,t.end);switch(i){case 1:case 2:case 3:return s;case 4:return e.y>s.y?t.end:t.start;case 5:case 6:return b(t.start,e)>b(t.end,e)?t.end:t.start;default:return b(t.start,e)<b(t.end,e)?t.start:t.end}}function m(t,e){return w([{x:t.xmin,y:t.ymin},{x:t.xmin,y:t.ymax},{x:t.xmax,y:t.ymax},{x:t.xmax,y:t.ymin},{x:t.xmin,y:t.ymin}],e)}function d(t,e,i,s,n=null,r=t){let{start:h,end:a}=N(t,e,n??0,i,r);return v([h,a],s)}function g(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPoint",!1,!1,e);return i.startPath(),i.pushXY(t.x,e*t.y),i.reset(),i}function x(t,e,i,s,n,r=null,h=e,a=!0){let l=P(t,i),u=!a||o(l,h)?null:A(l,t,h,e,i,s,r);switch(i){case 1:return function(t,e,i){let s=function(t){let e=M(t,1),i=[{x:t.xmin+e,y:t.ymin}];return E(i,t.xmin+e,t.ymin+e,e,-Math.PI/2,-Math.PI),i.push({x:t.xmin,y:t.ymax-e}),E(i,t.xmin+e,t.ymax-e,e,Math.PI,Math.PI/2),i.push({x:t.xmax-e,y:t.ymax}),E(i,t.xmax-e,t.ymax-e,e,Math.PI/2,0),i.push({x:t.xmax,y:t.ymin+e}),E(i,t.xmax-e,t.ymin+e,e,0,-Math.PI/2),i.push(i[0]),i}(t);return e&&O(s,e),w(s,i)}(l,u,n);case 2:return function(t,e,i){if(!e)return function(t,e){return w(function(t){let e=[];for(let i=0;i<32;i++)e.push(z(t,2*Math.PI*i/32));return e}(t),e)}(t,i);let s=I(t,e.points[0]),n=I(t,e.points[e.points.length-1]),r=k(n-s),h=Math.min(r,2*Math.PI-r),a=r<=Math.PI?e.points.slice():[e.points[e.points.length-1],e.points[1],e.points[0]],l=r<=Math.PI?n:s,o=2*Math.PI-h,u=Math.max(1,Math.ceil(S*o/(2*Math.PI)));for(let e=1;e<u;e++)a.push(z(t,l+o*e/u));return w(a,i)}(l,u,n);default:return function(t,e,i){let s=[{x:t.xmin,y:t.ymin},{x:t.xmin,y:t.ymax},{x:t.xmax,y:t.ymax},{x:t.xmax,y:t.ymin},{x:t.xmin,y:t.ymin}];return e&&O(s,e),w(s,i)}(l,u,n)}}function y(t,e,i,s,n,r=null,h=e){let a=P(t,i),l=o(a,h)?null:A(a,t,h,e,i,s,r);return l?w(l.points,n):null}function P(t,e){if(2!==e)return t;let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.ymax-t.ymin),r=Math.max(.5*(t.xmax-t.xmin)*Math.SQRT2,1.25*n);return{xmin:i-r,ymin:s-n,xmax:i+r,ymax:s+n}}function M(t,e){return 1===e?Math.min(t.xmax-t.xmin,t.ymax-t.ymin)/8:0}function b(t,e){return Math.hypot(e.x-t.x,e.y-t.y)}function C(t,e,i){t.xmin=Math.min(t.xmin,e),t.ymin=Math.min(t.ymin,i),t.xmax=Math.max(t.xmax,e),t.ymax=Math.max(t.ymax,i)}function v(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPolyline",!1,!1,e);i.startPath();for(let s of t)i.pushXY(s.x,e*s.y);return i.reset(),i}function w(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,e);i.startPath();for(let s of function(t){if(!t.length)return t;let e=t[0],i=t[t.length-1];return e.x===i.x&&e.y===i.y?t:[...t,e]}(t))i.pushXY(s.x,e*s.y);return i.reset(),i}const S=32;function I(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin),r=.5*(t.ymax-t.ymin);return k(Math.atan2((e.y-s)/r,(e.x-i)/n))}function z(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin),r=.5*(t.ymax-t.ymin);return{x:i+n*Math.cos(e),y:s+r*Math.sin(e)}}function k(t){let e=t%(2*Math.PI);return e<0?e+2*Math.PI:e}function A(t,e,i,s,n,r,h){if(2===n)return T(t,e,i,s,r,h);let a=t.xmax-t.xmin,l=t.ymax-t.ymin,o=t.xmin+a/2,u=t.ymin+l/2,c=-1;if(i.x>=t.xmin&&i.x<=t.xmax?i.y<=t.ymin?c=i.x<=o?7:6:i.y>=t.ymax&&(c=i.x<=o?2:3):c=i.x<t.xmin?i.y<=u?0:1:i.y<=u?5:4,c<0)return null;let _=function(t){let e=t.xmax-t.xmin,i=t.ymax-t.ymin;return[{x:t.xmin,y:t.ymin+i/4},{x:t.xmin,y:t.ymax-i/4},{x:t.xmin+e/4,y:t.ymax},{x:t.xmax-e/4,y:t.ymax},{x:t.xmax,y:t.ymax-i/4},{x:t.xmax,y:t.ymin+i/4},{x:t.xmax-e/4,y:t.ymin},{x:t.xmin+e/4,y:t.ymin}]}(t)[c];if(b(_,i)<r)return null;let p,f,m=M(t,n),d=1===n?a/4-m:a/2,g=1===n?l/4-m:l/2,x=null==h?a/8:Math.min(h/2,Math.max(d,0)),y=null==h?l/8:Math.min(h/2,Math.max(g,0));switch(c){case 0:case 1:p={x:_.x,y:_.y-y},f={x:_.x,y:_.y+y};break;case 2:case 3:p={x:_.x-x,y:_.y},f={x:_.x+x,y:_.y};break;case 4:case 5:p={x:_.x,y:_.y+y},f={x:_.x,y:_.y-y};break;default:p={x:_.x+x,y:_.y},f={x:_.x-x,y:_.y}}return{index:c,points:[p,s,f]}}function T(t,e,i,s,h,a){let l={x:.5*(t.xmin+t.xmax),y:.5*(t.ymin+t.ymax)},o=i.x-l.x,u=i.y-l.y,c=Math.hypot(o,u);if(0===c)return null;let _={x:o/c,y:u/c};if(b(n(t,_),i)<h)return null;let p={x:-_.y,y:_.x},f=b(l,n(t,p)),m=Math.min(e.xmax-e.xmin,e.ymax-e.ymin)/8,d=Math.min(null==a?m:a/2,f),g={x:l.x-p.x*d,y:l.y-p.y*d};return{index:-1,points:[r(t,i,{x:l.x+p.x*d,y:l.y+p.y*d}),s,r(t,i,g)]}}function E(t,e,i,s,n,r){for(let h=1;h<=4;h++){let a=n+(r-n)*h/4;t.push({x:e+s*Math.cos(a),y:i+s*Math.sin(a)})}}function O(t,e){let[i,,s]=e.points;for(let n=0;n<t.length-1;n++)if(L(i,t[n],t[n+1])&&L(s,t[n],t[n+1]))return void t.splice(n+1,0,...e.points)}function L(t,e,i){let s=1e-9,n=(t.x-e.x)*(i.y-e.y)-(t.y-e.y)*(i.x-e.x);return!(Math.abs(n)>s)&&t.x>=Math.min(e.x,i.x)-s&&t.x<=Math.max(e.x,i.x)+s&&t.y>=Math.min(e.y,i.y)-s&&t.y<=Math.max(e.y,i.y)+s}function G(t,e,i,s,n,r,h){if(0===i&&!r)return[c(t,e,s),e];let a=N(t,e,i,s,h),l=f(a,e,i);switch(i){case 1:default:return[l,e];case 2:return[l,F(l,a.onLeft,n),e];case 3:{let t=F(l,a.onLeft,n),i=b(a.start,e)<b(a.end,e)?a.start:a.end;return[l,t,{x:t.x,y:i.y},e]}case 4:return[{x:a.onLeft?t.xmax:t.xmin,y:l.y},l,e];case 5:case 6:return function(t,e,i){let s=b(t,e);if(0===s)return[t];let n=.75*s,r=R(t,e),h=Math.sqrt(n*n-.25*s*s),a=-(e.y-t.y)/s,l=(e.x-t.x)/s,o=i?-1:1,u=r.x+o*h*a,c=r.y+o*h*l,_=Math.atan2(t.y-c,t.x-u),p=Math.atan2(e.y-c,e.x-u)-_;i&&p>0?p-=2*Math.PI:!i&&p<0&&(p+=2*Math.PI);let f=[t];for(let t=1;t<=12;t++){let e=_+p*t/12;f.push({x:u+n*Math.cos(e),y:c+n*Math.sin(e)})}return f[12]=e,f}(l,e,5===i)}}function N(t,e,i,s,n){let r=e.x<=.5*(n.xmin+n.xmax);3===i&&(r=!r);let h=r?t.xmin-s:t.xmax+s;return{start:{x:h,y:t.ymin},end:{x:h,y:t.ymax},onLeft:r}}function R(t,e){return{x:.5*(t.x+e.x),y:.5*(t.y+e.y)}}function F(t,e,i){return{x:t.x+(e?-i:i),y:t.y}}},35521(t,e,i){var s=i(28076);s.D.CIMSolidStroke.capstyle,s.D.CIMSolidStroke.joinstyle,s.D.CIMSolidStroke.miterlimit},75585(t,e,i){function s(t){let e="normal",i="normal";if(t){let s=t.toLowerCase();s.includes("italic")?e="italic":s.includes("oblique")&&(e="oblique"),s.includes("bold")?i="bold":s.includes("light")&&(i="lighter")}return{style:e,weight:i}}i.d(e,{_:()=>s})},69754(t,e,i){i.d(e,{Z:()=>o,q:()=>l});var s=i(68197),n=i(75585);const r=/([A-Za-z_][\w-]*)\s*=\s*(['"])(.*?)\2/g,h=/&(amp|lt|gt|quot|apos);/g,a=/<\s*\/?\s*(?:CLR|BOL|_BOL|ITA|_ITA|UND|_UND|FNT|CHR)\b/i;function l(t){return a.test(t)}function o(t){if(!t.supportsRichText||!t.textString.includes("<"))return null;let e=function(t){return{font:{...t.font},fontSize:t.symbol?.height&&!isNaN(t.symbol.height)?t.symbol.height:10,characterSpacing:0}}(t),i=[],s=[],n=u(e),r="",h=!1,a=t.textString,l=()=>{if(!r)return;let t=c(r);if(!t)return void(r="");let e=s[s.length-1];e&&function(t,e){return t.fontSize===e.fontSize&&t.characterSpacing===e.characterSpacing&&t.font.family===e.font.family&&t.font.style===e.font.style&&t.font.weight===e.font.weight&&t.font.decoration===e.font.decoration&&function(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}(t.color,e.color)}(e,n)?e.text+=t:s.push({text:t,font:{...n.font},fontSize:n.fontSize,characterSpacing:n.characterSpacing,color:n.color}),r=""},o=0;for(;o<a.length;){let t=a[o];if("<"!==t){r+=t,o++;continue}let e=a.indexOf(">",o+1);if(-1===e)return null;let s=_(a.slice(o+1,e));if(!s)return null;if(h=!0,l(),s.isEnd){let t=i.pop();if(!t||t.name!==s.name)return null;n=t.previous}else{let t=u(n);n=p(n,s),i.push({name:s.name,previous:t})}o=e+1}return i.length?null:(l(),h?s.filter(t=>t.text.length>0):null)}function u(t){return{font:{...t.font},fontSize:t.fontSize,characterSpacing:t.characterSpacing,color:t.color}}function c(t){return t.replaceAll(h,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';case"apos":return"'";default:return t}})}function _(t){let e=t.trim();if(!e)return null;let i=e.startsWith("/"),s=i?e.slice(1).trim():e,n=/^([A-Za-z_][\w-]*)/.exec(s);if(!n)return null;let h,a=n[1],l=s.slice(a.length),o={};for(r.lastIndex=0;h=r.exec(l);)o[h[1]]=h[3];return{isEnd:i,name:a,attributes:o}}function p(t,e){let i=u(t);switch(e.name.toUpperCase()){case"BOL":i.font.weight="bold";break;case"_BOL":i.font.weight="normal";break;case"ITA":i.font.style="italic";break;case"_ITA":i.font.style="normal";break;case"UND":i.font.decoration="underline";break;case"_UND":i.font.decoration="none";break;case"FNT":!function(t,e){let{name:i,style:s,size:r,scale:h,wght:a,ital:l}=e;if(i&&(t.font.family=i),s){let e=(0,n._)(s);t.font.style=e.style,t.font.weight=e.weight}if(a){let e=Number(a);t.font.weight=e>=600?"bold":"normal"}if(l){let e=Number(l);isNaN(e)||(t.font.style=0===e?"normal":"italic")}if(r){let e=Number(r);!isNaN(e)&&e>0&&(t.fontSize=e)}if(h){let e=Number(h);!isNaN(e)&&e>0&&(t.fontSize*=e/100)}}(i,e.attributes);break;case"CLR":i.color=function(t){if(t.hex){let e=s.A.fromHex(t.hex)?.toArray();if(e){let i="alpha"in t?d(t.alpha):e[3];return[e[0],e[1],e[2],i]}}if("red"in t||"green"in t||"blue"in t)return[f(t.red),f(t.green),f(t.blue),d(t.alpha)];let e=m(t.cyan),i=m(t.magenta),n=m(t.yellow),r=m(t.black),h=d(t.alpha),a=m(t.tint,100)/100,l=1-r;return[Math.round(255*(1-e)*l*a),Math.round(255*(1-i)*l*a),Math.round(255*(1-n)*l*a),h]}(e.attributes);break;case"CHR":!function(t,e){let i=Number(e.spacing);!isNaN(i)&&i>=0&&(t.characterSpacing=i/100)}(i,e.attributes)}return i}function f(t){let e=Number(t);return function(t){return Math.max(0,Math.min(255,Math.round(t)))}(isNaN(e)?0:e)}function m(t,e=0){let i=Number(t);return function(t){return Math.max(0,Math.min(1,t))}((isNaN(i)?e:i)/100)}function d(t){return Math.round(255*m(t,100))}},37615(t,e,i){i.d(e,{A:()=>h});var s=i(49186),n=i(53966),r=i(62577);function h(t,e,i,s,r,h){if(null==t)return null;let a=t.references("geometry")&&h?l(e,s,h):e,o=t.repurposeFeature(a,r);try{return t.evaluate(o,i)}catch(t){return n.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",t),null}}const a=new Map;function l(t,e,i){let{transform:h,hasZ:l,hasM:o}=i;a.has(e)||a.set(e,function(t){let e={};switch(t){case"esriGeometryPoint":return(t,i,s,n)=>(0,r.Tr)(i,e,t,s,n);case"esriGeometryPolygon":return(t,i,s,n)=>(0,r.$X)(i,e,t,s,n);case"esriGeometryPolyline":return(t,i,s,n)=>(0,r.P5)(i,e,t,s,n);case"esriGeometryMultipoint":return(t,i,s,n)=>(0,r.SW)(i,e,t,s,n);default:return n.A.getLogger("esri.views.2d.support.arcadeOnDemand").error(new s.A("mapview-arcade",`Unable to handle geometryType: ${t}`)),t=>t}}(e));let u=a.get(e)(t.geometry,h,l,o);return{...t,geometry:u}}},18989(t,e,i){i.d(e,{A:()=>s});class s{constructor(t=0,e=0,i=0,s=0){this.x=t,this.y=e,this.width=i,this.height=s}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}},63933(t,e,i){function s(t){if(!t)return 0;switch(t){case"Left":case"left":return-1;case"Right":case"right":return 1;case"justify":case"Justify":return 2;case"Center":case"center":return 0}}function n(t){if(!t)return 0;switch(t){case"Top":case"top":return 1;case"Center":case"middle":return 0;case"Baseline":case"baseline":return 2;case"Bottom":case"bottom":return-1}}function r(t){switch(t){case 1:case"right":return-1;case 2:case"justify":return 1;case 0:case"center":return 0;case-1:case"left":return 1;default:return console.debug(`Found invalid horizontal alignment ${t}`),0}}function h(t){switch(t){case 1:case"top":return 1;case 0:case"middle":return 0;case-1:case 2:case"baseline":case"bottom":return-1;default:return console.debug(`Found invalid vertical alignment ${t}`),0}}i.d(e,{Dy:()=>h,UD:()=>n,iT:()=>r,xy:()=>s})},15660(t,e,i){i.d(e,{A:()=>n});var s=i(88340);class n{constructor(t,e,i,n){this.transformedX=0,this.transformedY=0,this.center=(0,s.fA)(t,e),this.centerT=(0,s.vt)(),this.halfWidth=i/2,this.halfHeight=n/2,this.width=i,this.height=n}get x(){return this.center[0]}get y(){return this.center[1]}get blX(){return this.center[0]+this.halfWidth}get blY(){return this.center[1]+this.halfHeight}get trX(){return this.center[0]-this.halfWidth}get trY(){return this.center[1]-this.halfHeight}get xmin(){return this.x-this.halfWidth}get xmax(){return this.x+this.halfWidth}get ymin(){return this.y-this.halfHeight}get ymax(){return this.y+this.halfHeight}set x(t){this.center[0]=t}set y(t){this.center[1]=t}clone(){return new n(this.x,this.y,this.width,this.height)}serialize(t){return t.writeF32(this.center[0]),t.writeF32(this.center[1]),t.push(this.width),t.push(this.height),t}findCollisionDelta(t,e=4){let i=Math.abs(t.centerT[0]-this.centerT[0]),s=Math.abs(t.centerT[1]-this.centerT[1]),n=(t.halfWidth+this.halfWidth+e)/i,r=(t.halfHeight+this.halfHeight+e)/s;return Math.log2(Math.min(n,r))}extend(t){let e=Math.min(this.xmin,t.xmin),i=Math.min(this.ymin,t.ymin),s=Math.max(this.xmax,t.xmax)-e,n=Math.max(this.ymax,t.ymax)-i,r=e+s/2,h=i+n/2;this.width=s,this.height=n,this.halfWidth=s/2,this.halfHeight=n/2,this.x=r,this.y=h}static deserialize(t){let e=t.readF32(),i=t.readF32(),s=t.readInt32(),r=t.readInt32();return new n(e,i,s,r)}}},75434(t,e,i){i.d(e,{HB:()=>v,tA:()=>C});var s=i(90629),n=i(16905),r=i(85560),h=i(37585),a=i(88340),l=i(63933),o=i(18989),u=i(15660);const c=Math.PI/180;class _{static fromGlyph(t,e,i,s,n){let{mosaicItem:r,rect:h,shaping:a,code:l}=i,o=r.rect;return new _({width:0===l?h.width:o.width*s,height:0===l?h.height:o.height*s,x:s*(t+a.xOffset+h.left),y:s*(e+a.yOffset-h.top),textureBinding:r.textureBinding,texcoords:{topLeft:[o.x,o.y],topRight:[o.x+o.width,o.y],bottomLeft:[o.x,o.y+o.height],bottomRight:[o.x+o.width,o.y+o.height]},fontSize:n?.fontSize,color:n?.color})}constructor(t){this._rotationT=(0,r.vt)(),this._transform=(0,r.vt)(),this._angle=0,this._bounds=null,this.width=t.width,this.height=t.height,this.x=t.x,this.y=t.y,this.textureBinding=t.textureBinding,this.texcoords=t.texcoords,this.fontSize=t.fontSize,this.color=t.color}set angle(t){this._angle=t,(0,n.$0)(this._rotationT,-t),this._offsets=this._bounds=null}get angle(){return this._angle}get offsets(){if(!this._offsets){let{x:t,y:e,width:i,height:s}=this,a=(0,n.$0)((0,r.vt)(),-this.angle),l=(0,n.lw)((0,r.vt)(),a,this._transform);this._offsets={topLeft:(0,h.l0)([0,0],[t,e],l),topRight:(0,h.l0)([0,0],[t+i,e],l),bottomLeft:(0,h.l0)([0,0],[t,e+s],l),bottomRight:(0,h.l0)([0,0],[t+i,e+s],l)}}return this._offsets}get bounds(){if(this.width<=0)return null;if(!this._bounds){let t=this.offsets,e=1/0,i=1/0,s=-1/0,n=-1/0;for(let[r,h]of[t.topLeft,t.topRight,t.bottomLeft,t.bottomRight])e=Math.min(e,r),i=Math.min(i,h),s=Math.max(s,r),n=Math.max(n,h);let r=s-e,h=n-i,a=e+r/2,l=i+h/2;this._bounds=new u.A(a,l,r,h)}return this._bounds}setTransform(t){this._transform=t,this._offsets=null}}const p=(t,e)=>({code:0,mosaicItem:{rect:new o.A(0,0,11,8),sdf:!0,page:0,textureBinding:e},rect:{height:4,width:t,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0}});function f(t){return"underline"===t?(0,s.Lz)(2):0}function m(t,e,i,s,n){switch(t){case"underline":return(i??n?.baseline??22)+4+f(t)/e;case"line-through":return s??n?.midline??16;default:return 0}}function d(t,e){return t.forEach(t=>(0,h.l0)(t,t,e)),{topLeft:t[0],topRight:t[1],bottomLeft:t[2],bottomRight:t[3]}}class g{constructor(t,e,i,s){this._rotation=0,this._decorate(t,e,i,s),this.glyphs=t,this.bounds=this._createBounds(t),this.isMultiline=e.length>1,this._hasRotation=0!==i.angle,this._transform=this._createGlyphTransform(this.bounds,i),this._borderLineSizePx=i.borderLineSizePx,(i.borderLineSizePx||i.hasBackground)&&([this.bounds,this.textBox]=this.shapeBackground(this._transform));for(let e of t)e.setTransform(this._transform)}setRotation(t){if(0===t&&0===this._rotation)return;this._rotation=t;let e=this._transform,i=(0,n.$0)((0,r.vt)(),t);(0,n.lw)(e,i,e);for(let t of this.glyphs)t.setTransform(this._transform)}_decorate(t,e,i,s){if(!i.decoration||"none"===i.decoration||!t.length)return;let n=i.scale,r=t[0].textureBinding;for(let h of e){let e=h.scale??n,a=m(i.decoration,e,h.baseline,h.midline,s),l=h.startX*e,o=h.startY*e,u=(h.width+h.glyphWidthEnd)*e;t.push(_.fromGlyph(l,o+a*e,p(u,r),1))}}shapeBackground(t){let e=(1.5+(this._borderLineSizePx||0))/2,i=this._borderLineSizePx?e:0,{xmin:s,ymin:n,xmax:r,ymax:h,x:a,y:l,width:o,height:c}=this.bounds,_=[s-8,n-8],p=[r+8,n-8],f=[s-8,h+8],m=[r+8,h+8],g=d([[_[0]-e,_[1]-e],[p[0]+e,p[1]-e],[_[0]+i,_[1]+i],[p[0]-i,p[1]+i]],t),x=d([[f[0]+i,f[1]-i],[m[0]-i,m[1]-i],[f[0]-e,f[1]+e],[m[0]+e,m[1]+e]],t),y=d([[_[0]-e,_[1]-e],[_[0]+i,_[1]+i],[f[0]-e,f[1]+e],[f[0]+i,f[1]-i]],t),P=d([[p[0]-i,p[1]+i],[p[0]+e,p[1]-e],[m[0]-i,m[1]-i],[m[0]+e,m[1]+e]],t),M={main:d([_,p,f,m],t),top:g,bot:x,left:y,right:P};return[new u.A(a,l,o+2*e,c+2*e),M]}get boundsT(){let t=this.bounds,e=(0,h.hZ)((0,a.vt)(),t.x,t.y);if((0,h.l0)(e,e,this._transform),this._hasRotation){let i=Math.max(t.width,t.height);return new u.A(e[0],e[1],i,i)}return new u.A(e[0],e[1],t.width,t.height)}_createBounds(t){let e=1/0,i=1/0,s=0,n=0;for(let r of t)e=Math.min(e,r.offsets.topLeft[0]),i=Math.min(i,r.offsets.topLeft[1]),s=Math.max(s,r.offsets.bottomRight[0]),n=Math.max(n,r.offsets.bottomRight[1]);let r=s-e,h=n-i,a=e+r/2,l=i+h/2;return new u.A(a,l,r,h)}_createGlyphTransform(t,e){let i=c*e.angle,s=(0,r.vt)(),l=(0,a.vt)();return(0,n.Tl)(s,s,(0,h.hZ)(l,e.xOffset,-e.yOffset)),e.useCIMAngleBehavior?(0,n.e$)(s,s,i):((0,n.Tl)(s,s,(0,h.hZ)(l,t.x,t.y)),(0,n.e$)(s,s,i),(0,n.Tl)(s,s,(0,h.hZ)(l,-t.x,-t.y))),s}}class x{constructor(t,e,i,s,n,r){this.glyphWidthEnd=0,this.startX=0,this.startY=0,this.endsParagraph=!1,this.start=Math.max(0,Math.min(e,i)),this.end=Math.max(0,Math.max(e,i)),this.end<t.length&&(this.glyphWidthEnd=t[this.end].rect.width),this.width=s,this.yMin=n,this.yMax=r}}const y=t=>10===t,P=t=>32===t;function M(t,e,i){let s=[],n=1/i.scale,r=i.maxLineWidth*n,h=t.length,a=0,l=0,o=0,u=a,c=u,_=0,p=1/0,f=0;for(;a!==h;){let{code:e,rect:i,shaping:n}=t[a],h=Math.abs(i.top);if(!y(e)&&!P(e)&&(p=Math.min(p,h),f=Math.max(f,h+i.height)),y(e)){if(0!==a){let e=new x(t,u,a-1,l,p===1/0?0:p,f);e.endsParagraph=!0,s.push(e),p=1/0,f=0}l=0,u=a+1,c=a+1,o=0}else if(P(e))c=a+1,o=0,_=n.xAdvance,l+=n.xAdvance;else if(l>r){if(c!==u){let e=c-2;l-=_,s.push(new x(t,u,e,l-o,p,f)),p=1/0,f=0,u=c,l=o}else s.push(new x(t,u,a-1,l,p,f)),p=1/0,f=0,u=a,c=a,l=0;l+=n.xAdvance,o+=n.xAdvance}else l+=n.xAdvance,o+=n.xAdvance;a+=1}let m=new x(t,u,a-1,l,p,f);return m.start>=0&&m.end<t.length&&s.push(m),s}function b(t,e,i){let s=0;for(let n=e;n<i;n++)P(t[n].code)&&!y(t[n+1].code)&&s++;return s}function C(t,e){return"glyphs"===t.type?function(t,e){let i=e.scale,s=[],n=t.sdfPadding,{faceInfo:r,glyphs:h,isRightToLeft:a}=t,o="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,u=M(h,0,e),c=u.length?function(t,e){let i=0;for(let e=0;e<t.length;e++){let{width:s}=t[e];i=Math.max(s,i)}let s="underline"===e.decoration?4:0,n=t[0].yMin;return{x:0,y:n,height:t[t.length-1].yMax+e.lineHeight*(t.length-1)+s-n,width:i}}(u,e):{y:0,height:0,width:0},p=o?a?1:-1:(0,l.xy)(e.horizontalAlignment),f=(0,l.UD)(e.verticalAlignment),m=+(2===f),d=m?0:f-1,x=r?.baseline??22,C=u.length>1,v=m?C?-c.y-c.height:-x:-c.y+d*(c.height/2),w=0,S=0;for(let t=0;t<u.length;t++){if(a&&t===S)for(w=t,S=t+1;S<u.length&&!u[S-1].endsParagraph;)S++;let{start:r,end:l,width:f}=u[t],m=o&&t<u.length-1?b(h,r,l):0,d=m>0?(c.width-f)/m:0,g=-1*(p+1)*((d>0?c.width:f)/2)-n,x=(a?w+S-1-t:t)*e.lineHeight+v-n;u[t].startX=g,u[t].startY=x;for(let t=r;t<=l;t++){let e=h[t];if(y(e.code))continue;let n=_.fromGlyph(g,x,e,i);g+=e.shaping.xAdvance,d>0&&P(e.code)&&(g+=d),s.push(n)}}return new g(s,u,e,r)}(t,e):function(t,e){let i=w(t,e),s=function(t,e){let i=[],s=e.maxLineWidth,n=0,r=0,h=0,a=0,l=0,o=0;for(;n<t.length;){let e=t[n],{glyph:u}=e;if(y(u.code))0!==n&&i.push({width:r,start:a,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),r=0,a=n+1,l=a,h=0,o=0;else if(P(u.code))l=n+1,h=0,o=e.xAdvance,r+=e.xAdvance;else if(r>s){if(l!==a){let e=l-2;r-=o,i.push({width:r-h,start:a,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),a=l,r=h}else i.push({width:r,start:a,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),a=n,l=n,r=0;r+=e.xAdvance,h+=e.xAdvance}else r+=e.xAdvance,h+=e.xAdvance;n++}if(a<t.length){let e=t.length-1;i.push({width:r,start:a,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1})}return function(t,e){for(let i=0;i<e.length;i++){let s=e[i],n=0,r=1/0,h=0,a=0;for(let e=s.start;e<=s.end;e++){let i=t[e];"underline"===i.decoration&&(a=Math.max(a,i.underlineOffset)),!y(i.glyph.code)&&!P(i.glyph.code)&&(n=Math.max(n,i.baseline),h=Math.max(h,i.lineHeight))}let l=1/0,o=-1/0;for(let e=s.start;e<=s.end;e++){let i=t[e];y(i.glyph.code)||P(i.glyph.code)||(l=Math.min(l,n-i.baseline+i.top),o=Math.max(o,n-i.baseline+i.bottom),r=Math.min(r,n-i.baseline+i.midline))}a>0&&(o=Math.max(o,n+a)),s.baseline=n,s.midline=r===1/0?n:r,s.lineHeight=Math.max(h,o),s.yMin=l===1/0?0:l,s.yMax=o===-1/0?0:o,s.startY=i>0?e[i-1].startY+e[i-1].lineHeight:0}return e}(t,i)}(i,e),n=s.length?function(t){let e=0;for(let i of t)e=Math.max(i.width+i.glyphWidthEnd,e);let i=t[0].yMin;return{x:0,y:i,height:S(t[t.length-1])-i,width:e}}(s):{width:0},r=[],h="underline"===e.decoration?"none":e.decoration,a="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,o=a?-1:(0,l.xy)(e.horizontalAlignment),u=(0,l.UD)(e.verticalAlignment),c=2===u,p=s.length?s[0].yMin:0,f=s.length?S(s[s.length-1]):0,m=f-p,d=c?s.length>1?-f:-(s[0]?.baseline??0):1===u?-p:-1===u?-f:-(p+m/2);for(let t=0;t<s.length;t++){let e=s[t],h=a&&t<s.length-1?I(i,e.start,e.end):0,l=h>0?(n.width-e.width)/h:0,u=-1*(o+1)*((l>0?n.width:e.width)/2),c=e.startY+d,p=null;e.startX=u,e.startY=c;for(let t=e.start;t<=e.end;t++){let s=i[t],{glyph:n,scale:h,fontSize:a}=s,o=u;if(y(n.code)){p=z(r,p,c,e.baseline);continue}"underline"===s.decoration?(p&&p.underlineOffset!==s.underlineOffset||p&&!k(p.color,s.color))&&(p=z(r,p,c,e.baseline)):p=z(r,p,c,e.baseline);let f=c+e.baseline-s.baseline;r.push(_.fromGlyph(u/h,f/h,n,h,{fontSize:a,color:s.color})),u+=s.xAdvance,"underline"===s.decoration&&(p??={startX:o,endX:u,glyphWidthEnd:n.rect.width*h,textureBinding:n.mosaicItem.textureBinding,underlineOffset:s.underlineOffset,color:s.color},p.endX=u,p.glyphWidthEnd=n.rect.width*h,p.textureBinding=p.textureBinding??n.mosaicItem.textureBinding),l>0&&P(n.code)&&(u+=l,p&&(p.endX=u))}z(r,p,c,e.baseline)}return new g(r,s,{...e,decoration:h})}(t,e)}function v(t,e){return"glyphs"===t.type?function(t,e){let i=e.scale,{faceInfo:s,glyphs:n}=t,r=n.reduce((t,e)=>Math.max(t,e.rect.height),0),h=n.filter(t=>!y(t.code)&&t.mosaicItem.textureBinding).map(t=>_.fromGlyph(-t.rect.width/2,-r,t,i));return new g(h,[],e,s)}(t,e):function(t,e){let i=w(t,e),s=i.reduce((t,e)=>Math.max(t,e.glyph.rect.height*e.scale),0),n=i.filter(t=>!y(t.glyph.code)&&t.glyph.mosaicItem.textureBinding).map(t=>_.fromGlyph(-t.glyph.rect.width/2,-s/t.scale,t.glyph,t.scale,{fontSize:t.fontSize,color:t.color}));return new g(n,[],e)}(t,e)}function w(t,e){let i=e.lineHeightRatio??1,n=[];for(let e of t.runs){let t=(0,s.Lz)(e.fontSize),r=t/e.glyphs.sdfSize,h=29/24*t*i,a=(e.glyphs.faceInfo?.baseline??22)*r,l=(e.glyphs.faceInfo?.midline??16)*r,o=4*r+f(e.decoration),u=1+(e.characterSpacing??0);for(let i of e.glyphs.glyphs){let s=i.shaping.xAdvance*r,c=Math.abs(i.rect.top)*r,_=c+i.rect.height*r;n.push({glyph:i,scale:r,fontSize:t,decoration:e.decoration,underlineOffset:o,color:e.color,xAdvance:y(i.code)||P(i.code)?s:s*u,top:c,bottom:_,lineHeight:h,baseline:a,midline:l})}}return n}function S(t){return t.startY+t.lineHeight}function I(t,e,i){let s=0;for(let n=e;n<i;n++)P(t[n].glyph.code)&&!y(t[n+1].glyph.code)&&s++;return s}function z(t,e,i,s){return e&&t.push(_.fromGlyph(e.startX,i+s+e.underlineOffset,p(e.endX-e.startX+e.glyphWidthEnd,e.textureBinding),1,{color:e.color})),null}function k(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}},69221(t,e,i){i.d(e,{Lu:()=>r,hV:()=>n});var s=i(90629);function n(t){return(0,s.PN)(Math.round((0,s.Lz)(t)))}function r(t){let e=(0,s.PN)(32),i=(0,s.PN)(5e3);return Math.max(e,Math.min(t||i,i))}i(39829)},86235(t,e,i){i.d(e,{HZ:()=>r});var s=i(36745),n=i(14057);class r{static{this.instance=null}static local(){return null===r.instance&&(r.instance=new r),r.instance}execute(t,e,i){return new h(t,e,i)}}class h{constructor(t,e,i){this._cursor=t,this._effect=e,this._context=i}next(){let t=this._cursor.next();if(t&&t.totalSize>0){let e=t.asJSON(),i=l[this._effect.part](e,{...this._effect,target:this._context.target,scaleFactor:this._context.scaleFactor,matcher:this._context.matcher,tileKey:this._context.tileKey,geomUnitsPerPoint:this._context.geomUnitsPerPoint});return i?s.z.fromJSONCIM(i):null}return null}}function a(t,e){let i=e.matcher,s=e.target.getObjectId(),r=(0,n.$)(e.tileKey,s),h=i.getAnalyzedGraphic(r);return h?(h.evaluateWithGeometry(t,e.geomUnitsPerPoint*e.scaleFactor),h):null}const l={textPoint:function(t,e){let i=a(t,e);return i&&i.textPoint?{x:i.textPoint[0],y:i.textPoint[1],spatialReference:t.spatialReference}:t},beginDimensionLine:function(t,e){let i=a(t,e);if(!i||!i.dimensionLine)return t;let s=i.dimensionLine[0],n=s[1][0],r=s[1][1],h=s[0][0],l=s[0][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}},endDimensionLine:function(t,e){let i=a(t,e);if(!i||!i.dimensionLine)return t;let s=i.dimensionLine[1],n=s[1][0],r=s[1][1],h=s[0][0],l=s[0][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}},beginExtensionLine:function(t,e){let i=a(t,e);if(!i||!i.extensionLines)return t;let s=i.extensionLines[0],n=s[0][0],r=s[0][1],h=s[1][0],l=s[1][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}},endExtensionLine:function(t,e){let i=a(t,e);if(!i||!i.extensionLines)return t;let s=i.extensionLines[1],n=s[0][0],r=s[0][1],h=s[1][0],l=s[1][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,l]]]}}};i.d(e,["Bd",0,"beginMarker","Cr",0,"beginExtensionLine","FF",0,"endMarker","Fn",0,"beginDimensionLine","NR",0,"textPoint","tz",0,"endDimensionLine","w0",0,"endExtensionLine"])},14057(t,e,i){function s(t,e){return`${t}_${e}`}i.d(e,{$:()=>s})}}]);
|
package/config.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const t={apiKey:void 0,apiKeys:{scopes:[]},applicationName:``,applicationUrl:globalThis.location?.href,assetsPath:``,fontsUrl:`https://static.arcgis.com/fonts`,geometryServiceUrl:`https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer`,geoRSSServiceUrl:`https://utility.arcgis.com/sharing/rss`,kmlServiceUrl:`https://utility.arcgis.com/sharing/kml`,userPrivilegesApplied:!0,portalUrl:`https://www.arcgis.com`,respectPrefersReducedMotion:!0,routeServiceUrl:`https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World`,workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:[`arcgis.com`,`arcgisonline.com`,`esrikr.com`,`premiumservices.blackbridge.com`,`esripremium.accuweather.com`,`gbm.digitalglobe.com`,`firstlook.digitalglobe.com`,`msi.digitalglobe.com`],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:`high`,proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&(e(t,globalThis.esriConfig,!0),delete t.has),!t.assetsPath&&(t.assetsPath=`https://js.arcgis.com/5.2.
|
|
2
|
+
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const t={apiKey:void 0,apiKeys:{scopes:[]},applicationName:``,applicationUrl:globalThis.location?.href,assetsPath:``,fontsUrl:`https://static.arcgis.com/fonts`,geometryServiceUrl:`https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer`,geoRSSServiceUrl:`https://utility.arcgis.com/sharing/rss`,kmlServiceUrl:`https://utility.arcgis.com/sharing/kml`,userPrivilegesApplied:!0,portalUrl:`https://www.arcgis.com`,respectPrefersReducedMotion:!0,routeServiceUrl:`https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World`,workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:[`arcgis.com`,`arcgisonline.com`,`esrikr.com`,`premiumservices.blackbridge.com`,`esripremium.accuweather.com`,`gbm.digitalglobe.com`,`firstlook.digitalglobe.com`,`msi.digitalglobe.com`],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:`high`,proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&(e(t,globalThis.esriConfig,!0),delete t.has),!t.assetsPath&&(t.assetsPath=`https://js.arcgis.com/5.2.9/@arcgis/core/assets`,t.defaultAssetsPath=t.assetsPath);export{t as default};
|
package/kernel.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import"./core/has.js";import{addQueryParameter as e}from"./core/urlUtils.js";Symbol.dispose??=Symbol(`Symbol.dispose`),Symbol.asyncDispose??=Symbol(`Symbol.asyncDispose`);const t=`5.2`;let n=`5.2`;n=`5.2.
|
|
2
|
+
import"./core/has.js";import{addQueryParameter as e}from"./core/urlUtils.js";Symbol.dispose??=Symbol(`Symbol.dispose`),Symbol.asyncDispose??=Symbol(`Symbol.asyncDispose`);const t=`5.2`;let n=`5.2`;n=`5.2.9`;let r;function i(e){r=e}function a(t){let n=r?.findCredential(t);return n?.token?e(t,`token`,n.token):t}globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}});export{a as addTokenParameter,n as fullVersion,r as id,i as setId,t as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/core",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.9",
|
|
4
4
|
"description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@amcharts/amcharts5": "~5.20.8",
|
|
23
|
-
"@arcgis/toolkit": "5.2.
|
|
23
|
+
"@arcgis/toolkit": "5.2.9",
|
|
24
24
|
"@esri/arcgis-html-sanitizer": "~4.2.0",
|
|
25
25
|
"@esri/calcite-components": "^5.2.1",
|
|
26
26
|
"@vaadin/grid": "~25.3.2",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{pt2px as e}from"../../../../../../core/screenUtils.js";import{fromRotation as t,multiply as n,translate as r,rotate as i}from"../../../../../../core/libs/gl-matrix-2/math/mat2d.js";import{create as a}from"../../../../../../core/libs/gl-matrix-2/factories/mat2df32.js";import{transformMat2d as o,set as s}from"../../../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as c}from"../../../../../../core/libs/gl-matrix-2/factories/vec2f32.js";import{getXAnchorDirection as l,getYAnchorDirection as u}from"../../alignmentUtils.js";import{magicLabelLineHeight as d}from"../../definitions.js";import f from"../../Rect.js";import p from"../../collisions/BoundingBox.js";const m=Math.PI/180;class h{static fromGlyph(e,t,n,r,i){let{mosaicItem:a,rect:o,shaping:s,code:c}=n,l=a.rect;return new h({width:c===0?o.width:l.width*r,height:c===0?o.height:l.height*r,x:r*(e+s.xOffset+o.left),y:r*(t+s.yOffset-o.top),textureBinding:a.textureBinding,texcoords:{topLeft:[l.x,l.y],topRight:[l.x+l.width,l.y],bottomLeft:[l.x,l.y+l.height],bottomRight:[l.x+l.width,l.y+l.height]},fontSize:i?.fontSize,color:i?.color})}constructor(e){this._rotationT=a(),this._transform=a(),this._angle=0,this._bounds=null,this.width=e.width,this.height=e.height,this.x=e.x,this.y=e.y,this.textureBinding=e.textureBinding,this.texcoords=e.texcoords,this.fontSize=e.fontSize,this.color=e.color}set angle(e){this._angle=e,t(this._rotationT,-e),this._offsets=this._bounds=null}get angle(){return this._angle}get offsets(){if(!this._offsets){let{x:e,y:r,width:i,height:s}=this,c=t(a(),-this.angle),l=n(a(),c,this._transform);this._offsets={topLeft:o([0,0],[e,r],l),topRight:o([0,0],[e+i,r],l),bottomLeft:o([0,0],[e,r+s],l),bottomRight:o([0,0],[e+i,r+s],l)}}return this._offsets}get bounds(){if(this.width<=0)return null;if(!this._bounds){let e=this.offsets,t=1/0,n=1/0,r=-1/0,i=-1/0;for(let[a,o]of[e.topLeft,e.topRight,e.bottomLeft,e.bottomRight])t=Math.min(t,a),n=Math.min(n,o),r=Math.max(r,a),i=Math.max(i,o);let a=r-t,o=i-n,s=t+a/2,c=n+o/2;this._bounds=new p(s,c,a,o)}return this._bounds}setTransform(e){this._transform=e,this._offsets=null}}const g=(e,t)=>({code:0,mosaicItem:{rect:new f(0,0,11,8),sdf:!0,page:0,textureBinding:t},rect:{height:4,width:e,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0}});function _(t){return t===`underline`?e(2):0}function v(e,t,n,r,i){switch(e){case`underline`:return(n??i?.baseline??22)+4+_(e)/t;case`line-through`:return r??i?.midline??16;default:return 0}}function y(e,t){return e.forEach(e=>o(e,e,t)),{topLeft:e[0],topRight:e[1],bottomLeft:e[2],bottomRight:e[3]}}class b{constructor(e,t,n,r){this._rotation=0,this._decorate(e,t,n,r),this.glyphs=e,this.bounds=this._createBounds(e),this.isMultiline=t.length>1,this._hasRotation=n.angle!==0,this._transform=this._createGlyphTransform(this.bounds,n),this._borderLineSizePx=n.borderLineSizePx,(n.borderLineSizePx||n.hasBackground)&&([this.bounds,this.textBox]=this.shapeBackground(this._transform));for(let t of e)t.setTransform(this._transform)}setRotation(e){if(e===0&&this._rotation===0)return;this._rotation=e;let r=this._transform,i=t(a(),e);n(r,i,r);for(let e of this.glyphs)e.setTransform(this._transform)}_decorate(e,t,n,r){if(!n.decoration||n.decoration===`none`||!e.length)return;let i=n.scale,a=e[0].textureBinding;for(let o of t){let t=o.scale??i,s=v(n.decoration,t,o.baseline,o.midline,r),c=o.startX*t,l=o.startY*t,u=(o.width+o.glyphWidthEnd)*t;e.push(h.fromGlyph(c,l+s*t,g(u,a),1))}}shapeBackground(e){let t=(1.5+(this._borderLineSizePx||0))/2,n=this._borderLineSizePx?t:0,{xmin:r,ymin:i,xmax:a,ymax:o,x:s,y:c,width:l,height:u}=this.bounds,d=[r-8,i-8],f=[a+8,i-8],m=[r-8,o+8],h=[a+8,o+8],g=y([[d[0]-t,d[1]-t],[f[0]+t,f[1]-t],[d[0]+n,d[1]+n],[f[0]-n,f[1]+n]],e),_=y([[m[0]+n,m[1]-n],[h[0]-n,h[1]-n],[m[0]-t,m[1]+t],[h[0]+t,h[1]+t]],e),v=y([[d[0]-t,d[1]-t],[d[0]+n,d[1]+n],[m[0]-t,m[1]+t],[m[0]+n,m[1]-n]],e),b=y([[f[0]-n,f[1]+n],[f[0]+t,f[1]-t],[h[0]-n,h[1]-n],[h[0]+t,h[1]+t]],e),x={main:y([d,f,m,h],e),top:g,bot:_,left:v,right:b};return[new p(s,c,l+t*2,u+t*2),x]}get boundsT(){let e=this.bounds,t=s(c(),e.x,e.y);if(o(t,t,this._transform),this._hasRotation){let n=Math.max(e.width,e.height);return new p(t[0],t[1],n,n)}return new p(t[0],t[1],e.width,e.height)}_createBounds(e){let t=1/0,n=1/0,r=0,i=0;for(let a of e)t=Math.min(t,a.offsets.topLeft[0]),n=Math.min(n,a.offsets.topLeft[1]),r=Math.max(r,a.offsets.bottomRight[0]),i=Math.max(i,a.offsets.bottomRight[1]);let a=r-t,o=i-n,s=t+a/2,c=n+o/2;return new p(s,c,a,o)}_createGlyphTransform(e,t){let n=m*t.angle,o=a(),l=c();return r(o,o,s(l,t.xOffset,-t.yOffset)),t.useCIMAngleBehavior?i(o,o,n):(r(o,o,s(l,e.x,e.y)),i(o,o,n),r(o,o,s(l,-e.x,-e.y))),o}}class x{constructor(e,t,n,r,i,a){this.glyphWidthEnd=0,this.startX=0,this.startY=0,this.start=Math.max(0,Math.min(t,n)),this.end=Math.max(0,Math.max(t,n)),this.end<e.length&&(this.glyphWidthEnd=e[this.end].rect.width),this.width=r,this.yMin=i,this.yMax=a}}const S=e=>e===10,C=e=>e===32;function w(e,t,n){let r=[],i=1/n.scale,a=n.maxLineWidth*i,o=e.length,s=0,c=0,l=0,u=s,d=u,f=0,p=1/0,m=0;for(;s!==o;){let{code:t,rect:n,shaping:i}=e[s],o=Math.abs(n.top);if(!S(t)&&!C(t)&&(p=Math.min(p,o),m=Math.max(m,o+n.height)),S(t))s!==0&&(r.push(new x(e,u,s-1,c,p===1/0?0:p,m)),p=1/0,m=0),c=0,u=s+1,d=s+1,l=0;else if(C(t))d=s+1,l=0,f=i.xAdvance,c+=i.xAdvance;else if(c>a){if(d!==u){let t=d-2;c-=f,r.push(new x(e,u,t,c-l,p,m)),p=1/0,m=0,u=d,c=l}else r.push(new x(e,u,s-1,c,p,m)),p=1/0,m=0,u=s,d=s,c=0;c+=i.xAdvance,l+=i.xAdvance}else c+=i.xAdvance,l+=i.xAdvance;s+=1}let h=new x(e,u,s-1,c,p,m);return h.start>=0&&h.end<e.length&&r.push(h),r}function T(e,t){let n=0;for(let t=0;t<e.length;t++){let{width:r}=e[t];n=Math.max(r,n)}let r=t.decoration===`underline`?4:0,i=e[0].yMin;return{x:0,y:i,height:e[e.length-1].yMax+t.lineHeight*(e.length-1)+r-i,width:n}}function E(e,t,n){let r=0;for(let i=t;i<n;i++)C(e[i].code)&&!S(e[i+1].code)&&r++;return r}function D(e,t){let n=t.scale,r=[],i=e.sdfPadding,{faceInfo:a,glyphs:o,isRightToLeft:s}=e,c=t.horizontalAlignment===`justify`||t.horizontalAlignment===`Justify`,d=w(o,!1,t),f=d.length?T(d,t):{y:0,height:0,width:0},p=c?s?1:-1:l(t.horizontalAlignment),m=u(t.verticalAlignment),g=+(m===2),_=g?0:m-1,v=a?.baseline??22,y=d.length>1,x=g?y?-f.y-f.height:-v:-f.y+_*(f.height/2);for(let a=0;a<d.length;a++){let{start:s,end:l,width:u}=d[a],m=c&&a<d.length-1?E(o,s,l):0,g=m>0?(f.width-u)/m:0,_=g>0?f.width:u,v=(p+1)*-1*(_/2)-i,y=(e.isRightToLeft?d.length-1-a:a)*t.lineHeight+x-i;d[a].startX=v,d[a].startY=y;for(let e=s;e<=l;e++){let t=o[e];if(S(t.code))continue;let i=h.fromGlyph(v,y,t,n);v+=t.shaping.xAdvance,g>0&&C(t.code)&&(v+=g),r.push(i)}}return new b(r,d,t,a)}function O(e,t){let n=t.scale,{faceInfo:r,glyphs:i}=e,a=i.reduce((e,t)=>Math.max(e,t.rect.height),0),o=i.filter(e=>!S(e.code)&&e.mosaicItem.textureBinding).map(e=>h.fromGlyph(-e.rect.width/2,-a,e,n));return new b(o,[],t,r)}function k(e,t){return e.type===`glyphs`?D(e,t):j(e,t)}function A(e,t){return e.type===`glyphs`?O(e,t):M(e,t)}function j(e,t){let n=N(e,t),r=P(n,t),i=r.length?I(r):{width:0},a=[],o=t.decoration===`underline`?`none`:t.decoration,s=t.horizontalAlignment===`justify`||t.horizontalAlignment===`Justify`,c=s?-1:l(t.horizontalAlignment),d=u(t.verticalAlignment),f=d===2,p=r.length?r[0].yMin:0,m=r.length?L(r[r.length-1]):0,g=m-p,_=f?r.length>1?-m:-(r[0]?.baseline??0):d===1?-p:d===-1?-m:-(p+g/2);for(let e=0;e<r.length;e++){let t=r[e],o=s&&e<r.length-1?R(n,t.start,t.end):0,l=o>0?(i.width-t.width)/o:0,u=l>0?i.width:t.width,d=(c+1)*-1*(u/2),f=t.startY+_,p=null;t.startX=d,t.startY=f;for(let e=t.start;e<=t.end;e++){let r=n[e],{glyph:i,scale:o,fontSize:s}=r,c=d;if(S(i.code)){p=z(a,p,f,t.baseline);continue}r.decoration===`underline`?(p&&p.underlineOffset!==r.underlineOffset||p&&!B(p.color,r.color))&&(p=z(a,p,f,t.baseline)):p=z(a,p,f,t.baseline);let u=f+t.baseline-r.baseline;a.push(h.fromGlyph(d/o,u/o,i,o,{fontSize:s,color:r.color})),d+=r.xAdvance,r.decoration===`underline`&&(p??={startX:c,endX:d,glyphWidthEnd:i.rect.width*o,textureBinding:i.mosaicItem.textureBinding,underlineOffset:r.underlineOffset,color:r.color},p.endX=d,p.glyphWidthEnd=i.rect.width*o,p.textureBinding=p.textureBinding??i.mosaicItem.textureBinding),l>0&&C(i.code)&&(d+=l,p&&(p.endX=d))}z(a,p,f,t.baseline)}return new b(a,r,{...t,decoration:o})}function M(e,t){let n=N(e,t),r=n.reduce((e,t)=>Math.max(e,t.glyph.rect.height*t.scale),0),i=n.filter(e=>!S(e.glyph.code)&&e.glyph.mosaicItem.textureBinding).map(e=>h.fromGlyph(-e.glyph.rect.width/2,-r/e.scale,e.glyph,e.scale,{fontSize:e.fontSize,color:e.color}));return new b(i,[],t)}function N(t,n){let r=n.lineHeightRatio??1,i=[];for(let n of t.runs){let t=e(n.fontSize),a=t/n.glyphs.sdfSize,o=d/24*t*r,s=(n.glyphs.faceInfo?.baseline??22)*a,c=(n.glyphs.faceInfo?.midline??16)*a,l=4*a+_(n.decoration),u=1+(n.characterSpacing??0);for(let e of n.glyphs.glyphs){let r=e.shaping.xAdvance*a,d=Math.abs(e.rect.top)*a,f=d+e.rect.height*a;i.push({glyph:e,scale:a,fontSize:t,decoration:n.decoration,underlineOffset:l,color:n.color,xAdvance:!S(e.code)&&!C(e.code)?r*u:r,top:d,bottom:f,lineHeight:o,baseline:s,midline:c})}}return i}function P(e,t){let n=[],r=t.maxLineWidth,i=0,a=0,o=0,s=0,c=0,l=0;for(;i<e.length;){let t=e[i],{glyph:u}=t;if(S(u.code))i!==0&&n.push({width:a,start:s,end:i-1,glyphWidthEnd:e[i-1]?.glyph.rect.width*e[i-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),a=0,s=i+1,c=s,o=0,l=0;else if(C(u.code))c=i+1,o=0,l=t.xAdvance,a+=t.xAdvance;else if(a>r){if(c!==s){let t=c-2;a-=l,n.push({width:a-o,start:s,end:t,glyphWidthEnd:e[t]?.glyph.rect.width*e[t]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),s=c,a=o}else n.push({width:a,start:s,end:i-1,glyphWidthEnd:e[i-1]?.glyph.rect.width*e[i-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),s=i,c=i,a=0;a+=t.xAdvance,o+=t.xAdvance}else a+=t.xAdvance,o+=t.xAdvance;i++}if(s<e.length){let t=e.length-1;n.push({width:a,start:s,end:t,glyphWidthEnd:e[t]?.glyph.rect.width*e[t]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1})}return F(e,n)}function F(e,t){for(let n=0;n<t.length;n++){let r=t[n],i=0,a=1/0,o=0,s=0;for(let t=r.start;t<=r.end;t++){let n=e[t];n.decoration===`underline`&&(s=Math.max(s,n.underlineOffset)),!(S(n.glyph.code)||C(n.glyph.code))&&(i=Math.max(i,n.baseline),o=Math.max(o,n.lineHeight))}let c=1/0,l=-1/0;for(let t=r.start;t<=r.end;t++){let n=e[t];S(n.glyph.code)||C(n.glyph.code)||(c=Math.min(c,i-n.baseline+n.top),l=Math.max(l,i-n.baseline+n.bottom),a=Math.min(a,i-n.baseline+n.midline))}s>0&&(l=Math.max(l,i+s)),r.baseline=i,r.midline=a===1/0?i:a,r.lineHeight=Math.max(o,l),r.yMin=c===1/0?0:c,r.yMax=l===-1/0?0:l,r.startY=n>0?t[n-1].startY+t[n-1].lineHeight:0}return t}function I(e){let t=0;for(let n of e)t=Math.max(n.width+n.glyphWidthEnd,t);let n=e[0].yMin,r=e[e.length-1];return{x:0,y:n,height:L(r)-n,width:t}}function L(e){return e.startY+e.lineHeight}function R(e,t,n){let r=0;for(let i=t;i<n;i++)C(e[i].glyph.code)&&!S(e[i+1].glyph.code)&&r++;return r}function z(e,t,n,r){return t&&e.push(h.fromGlyph(t.startX,n+r+t.underlineOffset,g(t.endX-t.startX+t.glyphWidthEnd,t.textureBinding),1,{color:t.color})),null}function B(e,t){return e===t||!!e&&!!t&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}export{h as ShapedGlyph,b as ShapingInfo,D as shapeGlyphs,O as shapeGlyphsForMultipoint,j as shapeRichText,M as shapeRichTextForMultipoint,k as shapeTextResource,A as shapeTextResourceForMultipoint};
|
|
2
|
+
import{pt2px as e}from"../../../../../../core/screenUtils.js";import{fromRotation as t,multiply as n,translate as r,rotate as i}from"../../../../../../core/libs/gl-matrix-2/math/mat2d.js";import{create as a}from"../../../../../../core/libs/gl-matrix-2/factories/mat2df32.js";import{transformMat2d as o,set as s}from"../../../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as c}from"../../../../../../core/libs/gl-matrix-2/factories/vec2f32.js";import{getXAnchorDirection as l,getYAnchorDirection as u}from"../../alignmentUtils.js";import{magicLabelLineHeight as d}from"../../definitions.js";import f from"../../Rect.js";import p from"../../collisions/BoundingBox.js";const m=Math.PI/180;class h{static fromGlyph(e,t,n,r,i){let{mosaicItem:a,rect:o,shaping:s,code:c}=n,l=a.rect;return new h({width:c===0?o.width:l.width*r,height:c===0?o.height:l.height*r,x:r*(e+s.xOffset+o.left),y:r*(t+s.yOffset-o.top),textureBinding:a.textureBinding,texcoords:{topLeft:[l.x,l.y],topRight:[l.x+l.width,l.y],bottomLeft:[l.x,l.y+l.height],bottomRight:[l.x+l.width,l.y+l.height]},fontSize:i?.fontSize,color:i?.color})}constructor(e){this._rotationT=a(),this._transform=a(),this._angle=0,this._bounds=null,this.width=e.width,this.height=e.height,this.x=e.x,this.y=e.y,this.textureBinding=e.textureBinding,this.texcoords=e.texcoords,this.fontSize=e.fontSize,this.color=e.color}set angle(e){this._angle=e,t(this._rotationT,-e),this._offsets=this._bounds=null}get angle(){return this._angle}get offsets(){if(!this._offsets){let{x:e,y:r,width:i,height:s}=this,c=t(a(),-this.angle),l=n(a(),c,this._transform);this._offsets={topLeft:o([0,0],[e,r],l),topRight:o([0,0],[e+i,r],l),bottomLeft:o([0,0],[e,r+s],l),bottomRight:o([0,0],[e+i,r+s],l)}}return this._offsets}get bounds(){if(this.width<=0)return null;if(!this._bounds){let e=this.offsets,t=1/0,n=1/0,r=-1/0,i=-1/0;for(let[a,o]of[e.topLeft,e.topRight,e.bottomLeft,e.bottomRight])t=Math.min(t,a),n=Math.min(n,o),r=Math.max(r,a),i=Math.max(i,o);let a=r-t,o=i-n,s=t+a/2,c=n+o/2;this._bounds=new p(s,c,a,o)}return this._bounds}setTransform(e){this._transform=e,this._offsets=null}}const g=(e,t)=>({code:0,mosaicItem:{rect:new f(0,0,11,8),sdf:!0,page:0,textureBinding:t},rect:{height:4,width:e,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0}});function _(t){return t===`underline`?e(2):0}function v(e,t,n,r,i){switch(e){case`underline`:return(n??i?.baseline??22)+4+_(e)/t;case`line-through`:return r??i?.midline??16;default:return 0}}function y(e,t){return e.forEach(e=>o(e,e,t)),{topLeft:e[0],topRight:e[1],bottomLeft:e[2],bottomRight:e[3]}}class b{constructor(e,t,n,r){this._rotation=0,this._decorate(e,t,n,r),this.glyphs=e,this.bounds=this._createBounds(e),this.isMultiline=t.length>1,this._hasRotation=n.angle!==0,this._transform=this._createGlyphTransform(this.bounds,n),this._borderLineSizePx=n.borderLineSizePx,(n.borderLineSizePx||n.hasBackground)&&([this.bounds,this.textBox]=this.shapeBackground(this._transform));for(let t of e)t.setTransform(this._transform)}setRotation(e){if(e===0&&this._rotation===0)return;this._rotation=e;let r=this._transform,i=t(a(),e);n(r,i,r);for(let e of this.glyphs)e.setTransform(this._transform)}_decorate(e,t,n,r){if(!n.decoration||n.decoration===`none`||!e.length)return;let i=n.scale,a=e[0].textureBinding;for(let o of t){let t=o.scale??i,s=v(n.decoration,t,o.baseline,o.midline,r),c=o.startX*t,l=o.startY*t,u=(o.width+o.glyphWidthEnd)*t;e.push(h.fromGlyph(c,l+s*t,g(u,a),1))}}shapeBackground(e){let t=(1.5+(this._borderLineSizePx||0))/2,n=this._borderLineSizePx?t:0,{xmin:r,ymin:i,xmax:a,ymax:o,x:s,y:c,width:l,height:u}=this.bounds,d=[r-8,i-8],f=[a+8,i-8],m=[r-8,o+8],h=[a+8,o+8],g=y([[d[0]-t,d[1]-t],[f[0]+t,f[1]-t],[d[0]+n,d[1]+n],[f[0]-n,f[1]+n]],e),_=y([[m[0]+n,m[1]-n],[h[0]-n,h[1]-n],[m[0]-t,m[1]+t],[h[0]+t,h[1]+t]],e),v=y([[d[0]-t,d[1]-t],[d[0]+n,d[1]+n],[m[0]-t,m[1]+t],[m[0]+n,m[1]-n]],e),b=y([[f[0]-n,f[1]+n],[f[0]+t,f[1]-t],[h[0]-n,h[1]-n],[h[0]+t,h[1]+t]],e),x={main:y([d,f,m,h],e),top:g,bot:_,left:v,right:b};return[new p(s,c,l+t*2,u+t*2),x]}get boundsT(){let e=this.bounds,t=s(c(),e.x,e.y);if(o(t,t,this._transform),this._hasRotation){let n=Math.max(e.width,e.height);return new p(t[0],t[1],n,n)}return new p(t[0],t[1],e.width,e.height)}_createBounds(e){let t=1/0,n=1/0,r=0,i=0;for(let a of e)t=Math.min(t,a.offsets.topLeft[0]),n=Math.min(n,a.offsets.topLeft[1]),r=Math.max(r,a.offsets.bottomRight[0]),i=Math.max(i,a.offsets.bottomRight[1]);let a=r-t,o=i-n,s=t+a/2,c=n+o/2;return new p(s,c,a,o)}_createGlyphTransform(e,t){let n=m*t.angle,o=a(),l=c();return r(o,o,s(l,t.xOffset,-t.yOffset)),t.useCIMAngleBehavior?i(o,o,n):(r(o,o,s(l,e.x,e.y)),i(o,o,n),r(o,o,s(l,-e.x,-e.y))),o}}class x{constructor(e,t,n,r,i,a){this.glyphWidthEnd=0,this.startX=0,this.startY=0,this.endsParagraph=!1,this.start=Math.max(0,Math.min(t,n)),this.end=Math.max(0,Math.max(t,n)),this.end<e.length&&(this.glyphWidthEnd=e[this.end].rect.width),this.width=r,this.yMin=i,this.yMax=a}}const S=e=>e===10,C=e=>e===32;function w(e,t,n){let r=[],i=1/n.scale,a=n.maxLineWidth*i,o=e.length,s=0,c=0,l=0,u=s,d=u,f=0,p=1/0,m=0;for(;s!==o;){let{code:t,rect:n,shaping:i}=e[s],o=Math.abs(n.top);if(!S(t)&&!C(t)&&(p=Math.min(p,o),m=Math.max(m,o+n.height)),S(t)){if(s!==0){let t=new x(e,u,s-1,c,p===1/0?0:p,m);t.endsParagraph=!0,r.push(t),p=1/0,m=0}c=0,u=s+1,d=s+1,l=0}else if(C(t))d=s+1,l=0,f=i.xAdvance,c+=i.xAdvance;else if(c>a){if(d!==u){let t=d-2;c-=f,r.push(new x(e,u,t,c-l,p,m)),p=1/0,m=0,u=d,c=l}else r.push(new x(e,u,s-1,c,p,m)),p=1/0,m=0,u=s,d=s,c=0;c+=i.xAdvance,l+=i.xAdvance}else c+=i.xAdvance,l+=i.xAdvance;s+=1}let h=new x(e,u,s-1,c,p,m);return h.start>=0&&h.end<e.length&&r.push(h),r}function T(e,t){let n=0;for(let t=0;t<e.length;t++){let{width:r}=e[t];n=Math.max(r,n)}let r=t.decoration===`underline`?4:0,i=e[0].yMin;return{x:0,y:i,height:e[e.length-1].yMax+t.lineHeight*(e.length-1)+r-i,width:n}}function E(e,t,n){let r=0;for(let i=t;i<n;i++)C(e[i].code)&&!S(e[i+1].code)&&r++;return r}function D(e,t){let n=t.scale,r=[],i=e.sdfPadding,{faceInfo:a,glyphs:o,isRightToLeft:s}=e,c=t.horizontalAlignment===`justify`||t.horizontalAlignment===`Justify`,d=w(o,!1,t),f=d.length?T(d,t):{y:0,height:0,width:0},p=c?s?1:-1:l(t.horizontalAlignment),m=u(t.verticalAlignment),g=+(m===2),_=g?0:m-1,v=a?.baseline??22,y=d.length>1,x=g?y?-f.y-f.height:-v:-f.y+_*(f.height/2),D=0,O=0;for(let e=0;e<d.length;e++){if(s&&e===O)for(D=e,O=e+1;O<d.length&&!d[O-1].endsParagraph;)O++;let{start:a,end:l,width:u}=d[e],m=c&&e<d.length-1?E(o,a,l):0,g=m>0?(f.width-u)/m:0,_=g>0?f.width:u,v=(p+1)*-1*(_/2)-i,y=(s?D+O-1-e:e)*t.lineHeight+x-i;d[e].startX=v,d[e].startY=y;for(let e=a;e<=l;e++){let t=o[e];if(S(t.code))continue;let i=h.fromGlyph(v,y,t,n);v+=t.shaping.xAdvance,g>0&&C(t.code)&&(v+=g),r.push(i)}}return new b(r,d,t,a)}function O(e,t){let n=t.scale,{faceInfo:r,glyphs:i}=e,a=i.reduce((e,t)=>Math.max(e,t.rect.height),0),o=i.filter(e=>!S(e.code)&&e.mosaicItem.textureBinding).map(e=>h.fromGlyph(-e.rect.width/2,-a,e,n));return new b(o,[],t,r)}function k(e,t){return e.type===`glyphs`?D(e,t):j(e,t)}function A(e,t){return e.type===`glyphs`?O(e,t):M(e,t)}function j(e,t){let n=N(e,t),r=P(n,t),i=r.length?I(r):{width:0},a=[],o=t.decoration===`underline`?`none`:t.decoration,s=t.horizontalAlignment===`justify`||t.horizontalAlignment===`Justify`,c=s?-1:l(t.horizontalAlignment),d=u(t.verticalAlignment),f=d===2,p=r.length?r[0].yMin:0,m=r.length?L(r[r.length-1]):0,g=m-p,_=f?r.length>1?-m:-(r[0]?.baseline??0):d===1?-p:d===-1?-m:-(p+g/2);for(let e=0;e<r.length;e++){let t=r[e],o=s&&e<r.length-1?R(n,t.start,t.end):0,l=o>0?(i.width-t.width)/o:0,u=l>0?i.width:t.width,d=(c+1)*-1*(u/2),f=t.startY+_,p=null;t.startX=d,t.startY=f;for(let e=t.start;e<=t.end;e++){let r=n[e],{glyph:i,scale:o,fontSize:s}=r,c=d;if(S(i.code)){p=z(a,p,f,t.baseline);continue}r.decoration===`underline`?(p&&p.underlineOffset!==r.underlineOffset||p&&!B(p.color,r.color))&&(p=z(a,p,f,t.baseline)):p=z(a,p,f,t.baseline);let u=f+t.baseline-r.baseline;a.push(h.fromGlyph(d/o,u/o,i,o,{fontSize:s,color:r.color})),d+=r.xAdvance,r.decoration===`underline`&&(p??={startX:c,endX:d,glyphWidthEnd:i.rect.width*o,textureBinding:i.mosaicItem.textureBinding,underlineOffset:r.underlineOffset,color:r.color},p.endX=d,p.glyphWidthEnd=i.rect.width*o,p.textureBinding=p.textureBinding??i.mosaicItem.textureBinding),l>0&&C(i.code)&&(d+=l,p&&(p.endX=d))}z(a,p,f,t.baseline)}return new b(a,r,{...t,decoration:o})}function M(e,t){let n=N(e,t),r=n.reduce((e,t)=>Math.max(e,t.glyph.rect.height*t.scale),0),i=n.filter(e=>!S(e.glyph.code)&&e.glyph.mosaicItem.textureBinding).map(e=>h.fromGlyph(-e.glyph.rect.width/2,-r/e.scale,e.glyph,e.scale,{fontSize:e.fontSize,color:e.color}));return new b(i,[],t)}function N(t,n){let r=n.lineHeightRatio??1,i=[];for(let n of t.runs){let t=e(n.fontSize),a=t/n.glyphs.sdfSize,o=d/24*t*r,s=(n.glyphs.faceInfo?.baseline??22)*a,c=(n.glyphs.faceInfo?.midline??16)*a,l=4*a+_(n.decoration),u=1+(n.characterSpacing??0);for(let e of n.glyphs.glyphs){let r=e.shaping.xAdvance*a,d=Math.abs(e.rect.top)*a,f=d+e.rect.height*a;i.push({glyph:e,scale:a,fontSize:t,decoration:n.decoration,underlineOffset:l,color:n.color,xAdvance:!S(e.code)&&!C(e.code)?r*u:r,top:d,bottom:f,lineHeight:o,baseline:s,midline:c})}}return i}function P(e,t){let n=[],r=t.maxLineWidth,i=0,a=0,o=0,s=0,c=0,l=0;for(;i<e.length;){let t=e[i],{glyph:u}=t;if(S(u.code))i!==0&&n.push({width:a,start:s,end:i-1,glyphWidthEnd:e[i-1]?.glyph.rect.width*e[i-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),a=0,s=i+1,c=s,o=0,l=0;else if(C(u.code))c=i+1,o=0,l=t.xAdvance,a+=t.xAdvance;else if(a>r){if(c!==s){let t=c-2;a-=l,n.push({width:a-o,start:s,end:t,glyphWidthEnd:e[t]?.glyph.rect.width*e[t]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),s=c,a=o}else n.push({width:a,start:s,end:i-1,glyphWidthEnd:e[i-1]?.glyph.rect.width*e[i-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),s=i,c=i,a=0;a+=t.xAdvance,o+=t.xAdvance}else a+=t.xAdvance,o+=t.xAdvance;i++}if(s<e.length){let t=e.length-1;n.push({width:a,start:s,end:t,glyphWidthEnd:e[t]?.glyph.rect.width*e[t]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1})}return F(e,n)}function F(e,t){for(let n=0;n<t.length;n++){let r=t[n],i=0,a=1/0,o=0,s=0;for(let t=r.start;t<=r.end;t++){let n=e[t];n.decoration===`underline`&&(s=Math.max(s,n.underlineOffset)),!(S(n.glyph.code)||C(n.glyph.code))&&(i=Math.max(i,n.baseline),o=Math.max(o,n.lineHeight))}let c=1/0,l=-1/0;for(let t=r.start;t<=r.end;t++){let n=e[t];S(n.glyph.code)||C(n.glyph.code)||(c=Math.min(c,i-n.baseline+n.top),l=Math.max(l,i-n.baseline+n.bottom),a=Math.min(a,i-n.baseline+n.midline))}s>0&&(l=Math.max(l,i+s)),r.baseline=i,r.midline=a===1/0?i:a,r.lineHeight=Math.max(o,l),r.yMin=c===1/0?0:c,r.yMax=l===-1/0?0:l,r.startY=n>0?t[n-1].startY+t[n-1].lineHeight:0}return t}function I(e){let t=0;for(let n of e)t=Math.max(n.width+n.glyphWidthEnd,t);let n=e[0].yMin,r=e[e.length-1];return{x:0,y:n,height:L(r)-n,width:t}}function L(e){return e.startY+e.lineHeight}function R(e,t,n){let r=0;for(let i=t;i<n;i++)C(e[i].glyph.code)&&!S(e[i+1].glyph.code)&&r++;return r}function z(e,t,n,r){return t&&e.push(h.fromGlyph(t.startX,n+r+t.underlineOffset,g(t.endX-t.startX+t.glyphWidthEnd,t.textureBinding),1,{color:t.color})),null}function B(e,t){return e===t||!!e&&!!t&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}export{h as ShapedGlyph,b as ShapingInfo,D as shapeGlyphs,O as shapeGlyphsForMultipoint,j as shapeRichText,M as shapeRichTextForMultipoint,k as shapeTextResource,A as shapeTextResourceForMultipoint};
|