123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- import {
- t
- } from "./chunk-YXWMMD76.js";
- // node_modules/@arcgis/core/core/RandomLCG.js
- var t2 = class {
- constructor(t4 = 1) {
- this._seed = t4;
- }
- set seed(e2) {
- this._seed = e2 != null ? e2 : Math.random() * t2._m;
- }
- getInt() {
- return this._seed = (t2._a * this._seed + t2._c) % t2._m, this._seed;
- }
- getFloat() {
- return this.getInt() / (t2._m - 1);
- }
- getIntRange(t4, e2) {
- return Math.round(this.getFloatRange(t4, e2));
- }
- getFloatRange(e2, s3) {
- const n2 = s3 - e2;
- return e2 + this.getInt() / t2._m * n2;
- }
- };
- t2._m = 2147483647, t2._a = 48271, t2._c = 0;
- // node_modules/@arcgis/core/core/arrayUtils.js
- function u(t4, n2) {
- return n2 ? t4.filter((t5, e2, r) => r.findIndex(n2.bind(null, t5)) === e2) : t4.filter((t5, n3, e2) => e2.indexOf(t5) === n3);
- }
- function i(n2, e2, r) {
- if (t(n2) && t(e2))
- return true;
- if (t(n2) || t(e2) || n2.length !== e2.length)
- return false;
- if (r) {
- for (let t4 = 0; t4 < n2.length; t4++)
- if (!r(n2[t4], e2[t4]))
- return false;
- } else
- for (let t4 = 0; t4 < n2.length; t4++)
- if (n2[t4] !== e2[t4])
- return false;
- return true;
- }
- function c(t4, n2) {
- let e2 = t4.length !== n2.length;
- e2 && (t4.length = n2.length);
- for (let r = 0; r < n2.length; ++r)
- t4[r] !== n2[r] && (t4[r] = n2[r], e2 = true);
- return e2;
- }
- function s(t4, n2, e2) {
- let r, o2;
- return e2 ? (r = n2.filter((n3) => !t4.some((t5) => e2(t5, n3))), o2 = t4.filter((t5) => !n2.some((n3) => e2(n3, t5)))) : (r = n2.filter((n3) => !t4.includes(n3)), o2 = t4.filter((t5) => !n2.includes(t5))), { added: r, removed: o2 };
- }
- function a(t4) {
- return t4 && "number" == typeof t4.length;
- }
- var d = !!Array.prototype.fill;
- function m(t4, n2) {
- if (d)
- return new Array(t4).fill(n2);
- const e2 = new Array(t4);
- for (let r = 0; r < t4; r++)
- e2[r] = n2;
- return e2;
- }
- function p(t4, n2) {
- void 0 === n2 && (n2 = t4, t4 = 0);
- const e2 = new Array(n2 - t4);
- for (let r = t4; r < n2; r++)
- e2[r - t4] = r;
- return e2;
- }
- var x = class {
- constructor() {
- this.last = 0;
- }
- };
- var y = new x();
- function b(t4, n2, e2, r) {
- r = r || y;
- const o2 = Math.max(0, r.last - 10);
- for (let l = o2; l < e2; ++l)
- if (t4[l] === n2)
- return r.last = l, l;
- const f2 = Math.min(o2, e2);
- for (let l = 0; l < f2; ++l)
- if (t4[l] === n2)
- return r.last = l, l;
- return -1;
- }
- function v(t4, n2, e2, r) {
- const o2 = e2 != null ? e2 : t4.length, f2 = b(t4, n2, o2, r);
- if (-1 !== f2)
- return t4[f2] = t4[o2 - 1], null == e2 && t4.pop(), n2;
- }
- var A = /* @__PURE__ */ new Set();
- function j(t4, n2, e2 = t4.length, r = n2.length, o2, f2) {
- if (0 === r || 0 === e2)
- return e2;
- A.clear();
- for (let u3 = 0; u3 < r; ++u3)
- A.add(n2[u3]);
- o2 = o2 || y;
- const l = Math.max(0, o2.last - 10);
- for (let u3 = l; u3 < e2; ++u3)
- if (A.has(t4[u3]) && (f2 && f2.push(t4[u3]), A.delete(t4[u3]), t4[u3] = t4[e2 - 1], --e2, --u3, 0 === A.size || 0 === e2))
- return A.clear(), e2;
- for (let u3 = 0; u3 < l; ++u3)
- if (A.has(t4[u3]) && (f2 && f2.push(t4[u3]), A.delete(t4[u3]), t4[u3] = t4[e2 - 1], --e2, --u3, 0 === A.size || 0 === e2))
- return A.clear(), e2;
- return A.clear(), e2;
- }
- var S = new t2();
- function C(t4, n2) {
- const e2 = t4.indexOf(n2);
- return -1 !== e2 ? (t4.splice(e2, 1), n2) : null;
- }
- // node_modules/@arcgis/core/core/typedArrayUtil.js
- function n(r, n2) {
- if (r.forEach)
- r.forEach(n2);
- else
- for (let t4 = 0; t4 < r.length; t4++)
- n2(r[t4], t4, r);
- }
- function t3(r, n2, t4) {
- if (r.slice)
- return r.slice(n2, t4);
- void 0 === n2 ? n2 = 0 : (n2 < 0 && (n2 += r.length), n2 = Math.min(r.length, Math.max(0, n2))), void 0 === t4 ? t4 = r.length : (t4 < 0 && (t4 += r.length), t4 = Math.min(r.length, Math.max(0, t4)));
- const o2 = Math.max(0, t4 - n2), c3 = new (0, r.constructor)(o2);
- for (let e2 = 0; e2 < o2; e2++)
- c3[e2] = r[n2 + e2];
- return c3;
- }
- function o(r) {
- return r instanceof ArrayBuffer || r && r.constructor && "ArrayBuffer" === r.constructor.name;
- }
- function c2(r) {
- return r instanceof Int8Array || r && r.constructor && "Int8Array" === r.constructor.name;
- }
- function e(r) {
- return r instanceof Uint8Array || r && r.constructor && "Uint8Array" === r.constructor.name;
- }
- function a2(r) {
- return r instanceof Uint8ClampedArray || r && r.constructor && "Uint8ClampedArray" === r.constructor.name;
- }
- function u2(r) {
- return r instanceof Int16Array || r && r.constructor && "Int16Array" === r.constructor.name;
- }
- function i2(r) {
- return r instanceof Uint16Array || r && r.constructor && "Uint16Array" === r.constructor.name;
- }
- function f(r) {
- return r instanceof Int32Array || r && r.constructor && "Int32Array" === r.constructor.name;
- }
- function s2(r) {
- return r instanceof Uint32Array || r && r.constructor && "Uint32Array" === r.constructor.name;
- }
- function y2(r) {
- return r instanceof Float32Array || r && r.constructor && "Float32Array" === r.constructor.name;
- }
- function A2(r) {
- return r instanceof Float64Array || r && r.constructor && "Float64Array" === r.constructor.name;
- }
- export {
- t2 as t,
- u,
- i,
- c,
- s,
- a,
- m,
- p,
- x,
- b,
- v,
- j,
- C,
- n,
- t3 as t2,
- o,
- c2,
- e,
- a2,
- u2,
- i2,
- f,
- s2,
- y2 as y,
- A2 as A
- };
- //# sourceMappingURL=chunk-2TIUKVZN.js.map
|