{"version":3,"sources":["node_modules/@arcgis/core/core/workers/staticWorkerMessages.js","node_modules/@arcgis/core/core/workers/loaderConfig.js","node_modules/@arcgis/core/core/workers/WorkerFallback.js","node_modules/@arcgis/core/core/workers/workerFactory.js","node_modules/@arcgis/core/core/workers/WorkerOwner.js","node_modules/@arcgis/core/core/workers/workers.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport e from \"../../request.js\";\nimport { getInterceptor as t } from \"../urlUtils.js\";\nconst a = {\n async request(a, s) {\n const r = a.options,\n n = r.responseType;\n r.signal = s?.signal, r.responseType = \"native\" === n || \"native-request-init\" === n ? \"native-request-init\" : n && [\"blob\", \"json\", \"text\"].includes(n) && t(a.url)?.after ? n : \"array-buffer\";\n const i = await e(a.url, r),\n o = {\n data: i.data,\n httpStatus: i.httpStatus,\n ssl: i.ssl\n };\n switch (i.requestOptions?.responseType) {\n case \"native-request-init\":\n return delete o.data.signal, o;\n case \"blob\":\n o.data = await o.data.arrayBuffer();\n break;\n case \"json\":\n o.data = new TextEncoder().encode(JSON.stringify(o.data)).buffer;\n break;\n case \"text\":\n o.data = new TextEncoder().encode(o.data).buffer;\n }\n return {\n result: o,\n transferList: [o.data]\n };\n }\n};\nexport { a as staticWorkerMessages };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport \"../../config.js\";\nimport \"../../request.js\";\nimport \"../Error.js\";\nimport \"../Logger.js\";\nimport \"../urlUtils.js\";\nimport \"../has.js\";\nlet s = null;\nconst a = {};\nfunction r(s) {\n const r = {\n async: s.async,\n isDebug: s.isDebug,\n locale: s.locale,\n baseUrl: s.baseUrl,\n has: {\n ...s.has\n },\n map: {\n ...s.map\n },\n packages: s.packages?.slice() || [],\n paths: {\n ...a.paths,\n ...s.paths\n }\n };\n return s.hasOwnProperty(\"async\") || (r.async = !0), s.hasOwnProperty(\"isDebug\") || (r.isDebug = !1), s.baseUrl || (r.baseUrl = a.baseUrl), r;\n}\nexport { s as defaultLoaderUrl, r as loaderConfig };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { nextTick as e } from \"../nextTick.js\";\nimport s from \"./RemoteClient.js\";\nimport { MessageType as r, receiveMessage as t } from \"./utils.js\";\nclass n {\n constructor() {\n const e = document.createDocumentFragment();\n [\"addEventListener\", \"dispatchEvent\", \"removeEventListener\"].forEach(s => {\n this[s] = (...r) => e[s](...r);\n });\n }\n}\nclass a {\n constructor() {\n this._dispatcher = new n(), this._workerPostMessage({\n type: r.HANDSHAKE\n });\n }\n terminate() {}\n get onmessage() {\n return this._onmessageHandler;\n }\n set onmessage(e) {\n this._onmessageHandler && this.removeEventListener(\"message\", this._onmessageHandler), this._onmessageHandler = e, e && this.addEventListener(\"message\", e);\n }\n get onmessageerror() {\n return this._onmessageerrorHandler;\n }\n set onmessageerror(e) {\n this._onmessageerrorHandler && this.removeEventListener(\"messageerror\", this._onmessageerrorHandler), this._onmessageerrorHandler = e, e && this.addEventListener(\"messageerror\", e);\n }\n get onerror() {\n return this._onerrorHandler;\n }\n set onerror(e) {\n this._onerrorHandler && this.removeEventListener(\"error\", this._onerrorHandler), this._onerrorHandler = e, e && this.addEventListener(\"error\", e);\n }\n postMessage(s) {\n e(() => {\n this._workerMessageHandler(new MessageEvent(\"message\", {\n data: s\n }));\n });\n }\n dispatchEvent(e) {\n return this._dispatcher.dispatchEvent(e);\n }\n addEventListener(e, s, r) {\n this._dispatcher.addEventListener(e, s, r);\n }\n removeEventListener(e, s, r) {\n this._dispatcher.removeEventListener(e, s, r);\n }\n _workerPostMessage(s) {\n e(() => {\n this.dispatchEvent(new MessageEvent(\"message\", {\n data: s\n }));\n });\n }\n async _workerMessageHandler(e) {\n const n = t(e);\n if (n && n.type === r.OPEN) {\n const {\n modulePath: e,\n jobId: t\n } = n;\n let a = await s.loadWorker(e);\n a || (a = await import( /* @vite-ignore */ /* webpackIgnore: true */e));\n const o = s.connect(a);\n this._workerPostMessage({\n type: r.OPENED,\n jobId: t,\n data: o\n });\n }\n }\n}\nexport { a as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { getAssetUrl as e } from \"../../assets.js\";\nimport r from \"../../config.js\";\nimport \"../../intl.js\";\nimport { fullVersion as t } from \"../../kernel.js\";\nimport has from \"../has.js\";\nimport o from \"../Logger.js\";\nimport { makeAbsolute as s } from \"../urlUtils.js\";\nimport { loaderConfig as n } from \"./loaderConfig.js\";\nimport { receiveMessage as a, MessageType as i } from \"./utils.js\";\nimport l from \"./WorkerFallback.js\";\nimport { getLocale as f } from \"../../intl/locale.js\";\nimport { buildDate as u, commitHash as c } from \"../../support/revision.js\";\nconst d = () => o.getLogger(\"esri.core.workers.workerFactory\"),\n {\n HANDSHAKE: m\n } = i,\n p = 'let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error(\"Aborted\");return e.name=\"AbortError\",e}function receiveMessage(e){return e&&e.data?\"string\"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;let s=null;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener(\"abort\",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})})).finally((()=>{t&&t.removeEventListener(\"abort\",s)}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\\nModules version: ${r}\\nAssets version: ${n??s}\\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}\"function\"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):\"System\"in self&&\"function\"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),\"function\"==typeof require&&\"function\"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener(\"message\",messageHandler),self.postMessage({type:0});';\nlet g, h;\nconst k = \"Failed to create Worker. Fallback to execute module in main thread\";\nasync function y() {\n if (!has(\"esri-workers\")) return w(new l());\n if (!g && !h) try {\n const e = p.split(\"{CONFIGURATION}\").join(b());\n g = URL.createObjectURL(new Blob([e], {\n type: \"text/javascript\"\n }));\n } catch (r) {\n h = r || {};\n }\n let e;\n if (g) try {\n e = new Worker(g, {\n name: \"esri-worker-\" + v++\n });\n } catch (r) {\n d().warn(k, h), e = new l();\n } else d().warn(k, h), e = new l();\n return w(e);\n}\nasync function w(e) {\n return new Promise(r => {\n function t(s) {\n const n = a(s);\n n && n.type === m && (e.removeEventListener(\"message\", t), e.removeEventListener(\"error\", o), r(e));\n }\n function o(r) {\n r.preventDefault(), e.removeEventListener(\"message\", t), e.removeEventListener(\"error\", o), d().warn(\"Failed to create Worker. Fallback to execute module in main thread\", r), (e = new l()).addEventListener(\"message\", t), e.addEventListener(\"error\", o);\n }\n e.addEventListener(\"message\", t), e.addEventListener(\"error\", o);\n });\n}\nfunction b() {\n let o;\n if (null != r.default) {\n const e = {\n ...r\n };\n delete e.default, o = JSON.parse(JSON.stringify(e));\n } else o = JSON.parse(JSON.stringify(r));\n o.assetsPath = s(o.assetsPath), o.defaultAssetsPath = o.defaultAssetsPath ? s(o.defaultAssetsPath) : void 0, o.request.interceptors = [], o.log.interceptors = [], o.locale = f(), o.has = {\n \"esri-csp-restrictions\": has(\"esri-csp-restrictions\"),\n \"esri-2d-debug\": !1,\n \"esri-2d-update-debug\": has(\"esri-2d-update-debug\"),\n \"esri-2d-log-updating\": has(\"esri-2d-log-updating\"),\n \"featurelayer-pbf\": has(\"featurelayer-pbf\"),\n \"featurelayer-fast-triangulation-enabled\": has(\"featurelayer-fast-triangulation-enabled\"),\n \"featurelayer-simplify-thresholds\": has(\"featurelayer-simplify-thresholds\"),\n \"featurelayer-simplify-payload-size-factors\": has(\"featurelayer-simplify-payload-size-factors\"),\n \"featurelayer-simplify-mobile-factor\": has(\"featurelayer-simplify-mobile-factor\"),\n \"featurelayer-query-max-depth\": has(\"featurelayer-query-max-depth\"),\n \"featurelayer-query-pausing-enabled\": has(\"featurelayer-query-pausing-enabled\"),\n \"featurelayer-snapshot-enabled\": has(\"featurelayer-snapshot-enabled\"),\n \"esri-atomics\": has(\"esri-atomics\"),\n \"esri-shared-array-buffer\": has(\"esri-shared-array-buffer\"),\n \"esri-tiles-debug\": has(\"esri-tiles-debug\"),\n \"esri-workers-arraybuffer-transfer\": has(\"esri-workers-arraybuffer-transfer\"),\n \"feature-polyline-generalization-factor\": has(\"feature-polyline-generalization-factor\"),\n \"host-webworker\": 1\n }, o.workers.loaderUrl && (o.workers.loaderUrl = s(o.workers.loaderUrl)), o.workers.workerPath ? o.workers.workerPath = s(o.workers.workerPath) : o.workers.workerPath = s(e(\"esri/core/workers/RemoteClient.js\")), o.workers.useDynamicImport = !1;\n const a = r.workers.loaderConfig,\n i = n({\n baseUrl: a?.baseUrl,\n locale: f(),\n has: {\n \"csp-restrictions\": 1,\n \"dojo-test-sniff\": 0,\n \"host-webworker\": 1,\n ...a?.has\n },\n map: {\n ...a?.map\n },\n paths: {\n ...a?.paths\n },\n packages: a?.packages || []\n }),\n l = {\n buildDate: u,\n fullVersion: t,\n revision: c\n };\n return JSON.stringify({\n esriConfig: o,\n loaderConfig: i,\n kernelInfo: l\n });\n}\nlet v = 0;\nexport { y as createWorker };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport e from \"../Error.js\";\nimport t from \"../Logger.js\";\nimport { removeMaybe as o } from \"../maybe.js\";\nimport { onAbortOrThrow as s, isPromiseLike as r, isAbortError as n } from \"../promiseUtils.js\";\nimport { staticWorkerMessages as a } from \"./staticWorkerMessages.js\";\nimport { newJobId as i, receiveMessage as l, toInvokeError as d, postMessage as c, MessageType as h } from \"./utils.js\";\nimport { createWorker as p } from \"./workerFactory.js\";\nconst {\n ABORT: b,\n INVOKE: m,\n OPEN: _,\n OPENED: g,\n RESPONSE: u\n} = h;\nclass j {\n static async create(e) {\n const t = await p();\n return new j(t, e);\n }\n constructor(e, o) {\n this._outJobs = new Map(), this._inJobs = new Map(), this.worker = e, this.id = o, e.addEventListener(\"message\", this._onMessage.bind(this)), e.addEventListener(\"error\", e => {\n e.preventDefault(), t.getLogger(\"esri.core.workers.WorkerOwner\").error(e);\n });\n }\n terminate() {\n this.worker.terminate();\n }\n async open(e, t = {}) {\n const {\n signal: o\n } = t,\n r = i();\n return new Promise((t, n) => {\n const a = {\n resolve: t,\n reject: n,\n abortHandle: s(o, () => {\n this._outJobs.delete(r), this._post({\n type: b,\n jobId: r\n });\n })\n };\n this._outJobs.set(r, a), this._post({\n type: _,\n jobId: r,\n modulePath: e\n });\n });\n }\n _onMessage(e) {\n const t = l(e);\n if (t) switch (t.type) {\n case g:\n this._onOpenedMessage(t);\n break;\n case u:\n this._onResponseMessage(t);\n break;\n case b:\n this._onAbortMessage(t);\n break;\n case m:\n this._onInvokeMessage(t);\n }\n }\n _onAbortMessage(e) {\n const t = this._inJobs,\n o = e.jobId,\n s = t.get(o);\n s && (s.controller && s.controller.abort(), t.delete(o));\n }\n _onInvokeMessage(e) {\n const {\n methodName: t,\n jobId: o,\n data: s,\n abortable: i\n } = e,\n l = i ? new AbortController() : null,\n c = this._inJobs,\n h = a[t];\n let p;\n try {\n if (\"function\" != typeof h) throw new TypeError(`${t} is not a function`);\n p = h.call(null, s, {\n signal: l ? l.signal : null\n });\n } catch (b) {\n return void this._post({\n type: u,\n jobId: o,\n error: d(b)\n });\n }\n r(p) ? (c.set(o, {\n controller: l,\n promise: p\n }), p.then(e => {\n c.has(o) && (c.delete(o), this._post({\n type: u,\n jobId: o\n }, e));\n }, e => {\n c.has(o) && (c.delete(o), e || (e = {\n message: \"Error encountered at method\" + t\n }), n(e) || this._post({\n type: u,\n jobId: o,\n error: d(e || {\n message: `Error encountered at method ${t}`\n })\n }));\n })) : this._post({\n type: u,\n jobId: o\n }, p);\n }\n _onOpenedMessage(e) {\n const {\n jobId: t,\n data: s\n } = e,\n r = this._outJobs.get(t);\n r && (this._outJobs.delete(t), o(r.abortHandle), r.resolve(s));\n }\n _onResponseMessage(t) {\n const {\n jobId: s,\n error: r,\n data: n\n } = t,\n a = this._outJobs.get(s);\n a && (this._outJobs.delete(s), o(a.abortHandle), r ? a.reject(e.fromJSON(JSON.parse(r))) : a.resolve(n));\n }\n _post(e, t, o) {\n return c(this.worker, e, t, o);\n }\n}\nexport { j as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport r from \"../Error.js\";\nimport has from \"../has.js\";\nimport { throwIfAborted as t } from \"../promiseUtils.js\";\nimport e from \"./Connection.js\";\nimport { register as o } from \"./connectionRegistry.js\";\nimport n from \"./RemoteClient.js\";\nimport i from \"./WorkerOwner.js\";\nconst s = has(\"host-browser\") ? Math.min(navigator.hardwareConcurrency - 1, has(\"workers-pool-size\") ?? 8) : 0;\nlet a = has(\"esri-mobile\") ? Math.min(s, 3) : s;\na || (a = has(\"safari\") && has(\"mac\") ? 7 : 2);\nlet c = 0;\nconst l = [];\nfunction m() {\n g();\n}\nfunction u(r, t) {\n return f(r, {\n client: t\n });\n}\nasync function f(r, t) {\n const n = new e(),\n {\n registryTarget: i,\n ...s\n } = t;\n return await n.open(r, s), i && o(i, n), n;\n}\nasync function p(e, o = {}) {\n if (\"string\" != typeof e) throw new r(\"workers:undefined-module\", \"modulePath is missing\");\n let i = o.strategy || \"distributed\";\n if (has(\"host-webworker\") && !has(\"esri-workers\") && (i = \"local\"), \"local\" === i) {\n let r = await n.loadWorker(e);\n r || (r = await import( /* @vite-ignore */ /* webpackIgnore: true */e)), t(o.signal);\n const i = o.client || r;\n return f([n.connect(r, o.schedule)], {\n ...o,\n client: i\n });\n }\n if (await g(), t(o.signal), \"dedicated\" === i) {\n const r = c++ % a;\n return f([await l[r].open(e, o)], o);\n }\n if (o.maxNumWorkers && o.maxNumWorkers > 0) {\n const r = Math.min(o.maxNumWorkers, a);\n if (r < a) {\n const t = new Array(r);\n for (let n = 0; n < r; ++n) {\n const r = c++ % a;\n t[n] = l[r].open(e, o);\n }\n return f(t, o);\n }\n }\n return f(l.map(r => r.open(e, o)), o);\n}\nfunction w() {\n d && (h.abort(), d = null);\n for (let r = 0; r < l.length; r++) l[r] && l[r].terminate();\n l.length = 0;\n}\nlet h,\n d = null;\nasync function g() {\n if (d) return d;\n h = new AbortController();\n const r = [];\n for (let t = 0; t < a; t++) {\n const e = i.create(t).then(r => (l[t] = r, r));\n r.push(e);\n }\n return d = Promise.all(r), d;\n}\nexport { e as Connection, n as RemoteClient, m as initialize, p as open, u as openWithPorts, w as terminate };"],"mappings":"wjBAMA,IAAMA,EAAI,CACF,QAAQA,EAAGC,EAAG,QAAAC,EAAA,sBAClB,IAAMC,EAAIH,EAAE,QACVI,EAAID,EAAE,aACRA,EAAE,OAASF,GAAG,OAAQE,EAAE,aAA4BC,IAAb,UAA4CA,IAA1B,sBAA8B,sBAAwBA,GAAK,CAAC,OAAQ,OAAQ,MAAM,EAAE,SAASA,CAAC,GAAKC,EAAEL,EAAE,GAAG,GAAG,MAAQI,EAAI,eAClL,IAAME,EAAI,MAAMC,EAAEP,EAAE,IAAKG,CAAC,EACxBK,EAAI,CACF,KAAMF,EAAE,KACR,WAAYA,EAAE,WACd,IAAKA,EAAE,GACT,EACF,OAAQA,EAAE,gBAAgB,aAAc,CACtC,IAAK,sBACH,OAAO,OAAOE,EAAE,KAAK,OAAQA,EAC/B,IAAK,OACHA,EAAE,KAAO,MAAMA,EAAE,KAAK,YAAY,EAClC,MACF,IAAK,OACHA,EAAE,KAAO,IAAI,YAAY,EAAE,OAAO,KAAK,UAAUA,EAAE,IAAI,CAAC,EAAE,OAC1D,MACF,IAAK,OACHA,EAAE,KAAO,IAAI,YAAY,EAAE,OAAOA,EAAE,IAAI,EAAE,MAC9C,CACA,MAAO,CACL,OAAQA,EACR,aAAc,CAACA,EAAE,IAAI,CACvB,CACF,GACF,ECvBA,IAAMC,EAAI,CAAC,EACX,SAASC,GAAEC,EAAG,CACZ,IAAMD,EAAI,CACR,MAAOC,EAAE,MACT,QAASA,EAAE,QACX,OAAQA,EAAE,OACV,QAASA,EAAE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QAASI,EAAI,EAAGA,EAAIC,EAAGD,IAAK,CAC1B,IAAME,EAAIC,EAAE,OAAOH,CAAC,EAAE,KAAKI,IAAMC,EAAEL,CAAC,EAAII,EAAGA,EAAE,EAC7C,EAAE,KAAKF,CAAC,CACV,CACA,OAAOL,EAAI,QAAQ,IAAI,CAAC,EAAGA,CAC7B","names":["a","s","__async","r","n","D","i","U","o","a","r","s","__spreadValues","n","s","r","a","e","t","__async","f","E","o","d","n","m","e","p","g","h","k","y","__async","has","w","a","b","r","v","s","f","o","__spreadValues","_","c","i","t","b","m","_","g","u","e","j","_j","__async","y","o","n","_0","r","s","t","a","w","f","i","l","c","h","p","S","s","has","a","c","l","m","g","f","t","__async","n","c","_a","i","s","__objRest","e","p","_0","o","has","r","E","__spreadProps","__spreadValues","g","a","l","h","d","g","__async","t","a","e","j","r","l"],"x_google_ignoreList":[0,1,2,3,4,5]}