chunk-V7YK62XD.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  1. import {
  2. A,
  3. E as E2,
  4. F,
  5. G as G2,
  6. I as I2,
  7. J as J2,
  8. K,
  9. M as M2,
  10. N,
  11. O,
  12. P,
  13. S,
  14. U,
  15. V,
  16. W,
  17. b,
  18. d as d2,
  19. g,
  20. h,
  21. j as j2,
  22. k,
  23. l as l2,
  24. m as m3,
  25. p as p2,
  26. q,
  27. v as v2,
  28. w,
  29. x,
  30. y
  31. } from "./chunk-UDNYCFF2.js";
  32. import {
  33. e,
  34. l,
  35. s,
  36. u
  37. } from "./chunk-HEFAWVPH.js";
  38. import {
  39. a,
  40. c,
  41. r
  42. } from "./chunk-PJ6KSXOD.js";
  43. import {
  44. E,
  45. G,
  46. I,
  47. J,
  48. L,
  49. Se,
  50. X,
  51. ge,
  52. he,
  53. ne,
  54. oe,
  55. se,
  56. ye,
  57. z
  58. } from "./chunk-25BNEBXZ.js";
  59. import {
  60. z as z2
  61. } from "./chunk-O4FY3ITT.js";
  62. import {
  63. d
  64. } from "./chunk-2Z6LERTI.js";
  65. import {
  66. m,
  67. m2,
  68. v2 as v
  69. } from "./chunk-OWVBLVP3.js";
  70. import {
  71. s as s2
  72. } from "./chunk-R5IG2D6H.js";
  73. import {
  74. M2 as M,
  75. j2 as j,
  76. p
  77. } from "./chunk-ECW2QABR.js";
  78. // node_modules/@arcgis/core/arcade/functions/geomasync.js
  79. function ln(t) {
  80. return s2.indexOf("4.") === 0 ? v.fromExtent(t) : new v({ spatialReference: t.spatialReference, rings: [[[t.xmin, t.ymin], [t.xmin, t.ymax], [t.xmax, t.ymax], [t.xmax, t.ymin], [t.xmin, t.ymin]]] });
  81. }
  82. function un(n) {
  83. if (G(n, 2, 2), n[0] instanceof p && n[1] instanceof p)
  84. ;
  85. else if (n[0] instanceof p && n[1] === null)
  86. ;
  87. else if (n[1] instanceof p && n[0] === null)
  88. ;
  89. else if (n[0] !== null || n[1] !== null)
  90. throw new Error("Illegal Argument");
  91. }
  92. async function an(n, t) {
  93. if (n.type !== "polygon" && n.type !== "polyline" && n.type !== "extent")
  94. return 0;
  95. let r2 = 1;
  96. if (n.spatialReference.vcsWkid || n.spatialReference.latestVcsWkid) {
  97. r2 = s(n.spatialReference) / z2(n.spatialReference);
  98. }
  99. let e2 = 0;
  100. if (n.type === "polyline")
  101. for (const o of n.paths)
  102. for (let n2 = 1; n2 < o.length; n2++)
  103. e2 += e(o[n2], o[n2 - 1], r2);
  104. else if (n.type === "polygon")
  105. for (const o of n.rings) {
  106. for (let n2 = 1; n2 < o.length; n2++)
  107. e2 += e(o[n2], o[n2 - 1], r2);
  108. (o[0][0] !== o[o.length - 1][0] || o[0][1] !== o[o.length - 1][1] || o[0][2] !== void 0 && o[0][2] !== o[o.length - 1][2]) && (e2 += e(o[0], o[o.length - 1], r2));
  109. }
  110. else
  111. n.type === "extent" && (e2 += 2 * e([n.xmin, n.ymin, 0], [n.xmax, n.ymin, 0], r2), e2 += 2 * e([n.xmin, n.ymin, 0], [n.xmin, n.ymax, 0], r2), e2 *= 2, e2 += 4 * Math.abs(I(n.zmax, 0) * r2 - I(n.zmin, 0) * r2));
  112. const i = new m2({ hasZ: false, hasM: false, spatialReference: n.spatialReference, paths: [[0, 0], [0, e2]] });
  113. return F(i, t);
  114. }
  115. function sn(n) {
  116. n.mode === "async" && (n.functions.disjoint = function(t, r2) {
  117. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  118. return un(r3 = ye(r3)), r3[0] === null || r3[1] === null || S(r3[0], r3[1]);
  119. });
  120. }, n.functions.intersects = function(t, r2) {
  121. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  122. return un(r3 = ye(r3)), r3[0] !== null && r3[1] !== null && g(r3[0], r3[1]);
  123. });
  124. }, n.functions.touches = function(t, r2) {
  125. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  126. return un(r3 = ye(r3)), r3[0] !== null && r3[1] !== null && A(r3[0], r3[1]);
  127. });
  128. }, n.functions.crosses = function(t, r2) {
  129. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  130. return un(r3 = ye(r3)), r3[0] !== null && r3[1] !== null && w(r3[0], r3[1]);
  131. });
  132. }, n.functions.within = function(t, r2) {
  133. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  134. return un(r3 = ye(r3)), r3[0] !== null && r3[1] !== null && x(r3[0], r3[1]);
  135. });
  136. }, n.functions.contains = function(t, r2) {
  137. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  138. return un(r3 = ye(r3)), r3[0] !== null && r3[1] !== null && p2(r3[0], r3[1]);
  139. });
  140. }, n.functions.overlaps = function(t, r2) {
  141. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  142. return un(r3 = ye(r3)), r3[0] !== null && r3[1] !== null && O(r3[0], r3[1]);
  143. });
  144. }, n.functions.equals = function(t, r2) {
  145. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  146. return G(r3, 2, 2), r3[0] === r3[1] || (r3[0] instanceof p && r3[1] instanceof p ? d2(r3[0], r3[1]) : !(!z(r3[0]) || !z(r3[1])) && r3[0].getTime() === r3[1].getTime());
  147. });
  148. }, n.functions.relate = function(t, r2) {
  149. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  150. if (r3 = ye(r3), G(r3, 3, 3), r3[0] instanceof p && r3[1] instanceof p)
  151. return h(r3[0], r3[1], X(r3[2]));
  152. if (r3[0] instanceof p && r3[1] === null)
  153. return false;
  154. if (r3[1] instanceof p && r3[0] === null)
  155. return false;
  156. if (r3[0] === null && r3[1] === null)
  157. return false;
  158. throw new Error("Illegal Argument");
  159. });
  160. }, n.functions.intersection = function(t, r2) {
  161. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  162. return un(r3 = ye(r3)), r3[0] === null || r3[1] === null ? null : k(r3[0], r3[1]);
  163. });
  164. }, n.functions.union = function(r2, e2) {
  165. return n.standardFunctionAsync(r2, e2, function(n2, e3, o) {
  166. const l3 = [];
  167. if ((o = ye(o)).length === 0)
  168. throw new Error("Function called with wrong number of Parameters");
  169. if (o.length === 1)
  170. if (L(o[0])) {
  171. const n3 = ye(o[0]);
  172. for (let t = 0; t < n3.length; t++)
  173. if (n3[t] !== null) {
  174. if (!(n3[t] instanceof p))
  175. throw new Error("Illegal Argument");
  176. l3.push(n3[t]);
  177. }
  178. } else {
  179. if (!E(o[0])) {
  180. if (o[0] instanceof p)
  181. return se(c(o[0]), r2.spatialReference);
  182. if (o[0] === null)
  183. return null;
  184. throw new Error("Illegal Argument");
  185. }
  186. {
  187. const n3 = ye(o[0].toArray());
  188. for (let t = 0; t < n3.length; t++)
  189. if (n3[t] !== null) {
  190. if (!(n3[t] instanceof p))
  191. throw new Error("Illegal Argument");
  192. l3.push(n3[t]);
  193. }
  194. }
  195. }
  196. else
  197. for (let t = 0; t < o.length; t++)
  198. if (o[t] !== null) {
  199. if (!(o[t] instanceof p))
  200. throw new Error("Illegal Argument");
  201. l3.push(o[t]);
  202. }
  203. return l3.length === 0 ? null : I2(l3);
  204. });
  205. }, n.functions.difference = function(r2, e2) {
  206. return n.standardFunctionAsync(r2, e2, function(n2, r3, e3) {
  207. return un(e3 = ye(e3)), e3[0] !== null && e3[1] === null ? c(e3[0]) : e3[0] === null ? null : E2(e3[0], e3[1]);
  208. });
  209. }, n.functions.symmetricdifference = function(r2, e2) {
  210. return n.standardFunctionAsync(r2, e2, function(n2, r3, e3) {
  211. return un(e3 = ye(e3)), e3[0] === null && e3[1] === null ? null : e3[0] === null ? c(e3[1]) : e3[1] === null ? c(e3[0]) : j2(e3[0], e3[1]);
  212. });
  213. }, n.functions.clip = function(t, r2) {
  214. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  215. if (r3 = ye(r3), G(r3, 2, 2), !(r3[1] instanceof M) && r3[1] !== null)
  216. throw new Error("Illegal Argument");
  217. if (r3[0] === null)
  218. return null;
  219. if (!(r3[0] instanceof p))
  220. throw new Error("Illegal Argument");
  221. return r3[1] === null ? null : l2(r3[0], r3[1]);
  222. });
  223. }, n.functions.cut = function(r2, e2) {
  224. return n.standardFunctionAsync(r2, e2, function(n2, r3, e3) {
  225. if (e3 = ye(e3), G(e3, 2, 2), !(e3[1] instanceof m2) && e3[1] !== null)
  226. throw new Error("Illegal Argument");
  227. if (e3[0] === null)
  228. return [];
  229. if (!(e3[0] instanceof p))
  230. throw new Error("Illegal Argument");
  231. return e3[1] === null ? [c(e3[0])] : y(e3[0], e3[1]);
  232. });
  233. }, n.functions.area = function(t, e2) {
  234. return n.standardFunctionAsync(t, e2, async function(n2, e3, l3) {
  235. if (G(l3, 1, 2), (l3 = ye(l3))[0] === null)
  236. return 0;
  237. if (J(l3[0])) {
  238. const n3 = await l3[0].sumArea(r(I(l3[1], -1)), false, t.abortSignal);
  239. if (t.abortSignal.aborted)
  240. throw new Error("Operation has been cancelled.");
  241. return n3;
  242. }
  243. if (L(l3[0]) || E(l3[0])) {
  244. const n3 = ge(l3[0], t.spatialReference);
  245. return n3 === null ? 0 : W(n3, r(I(l3[1], -1)));
  246. }
  247. if (!(l3[0] instanceof p))
  248. throw new Error("Illegal Argument");
  249. return W(l3[0], r(I(l3[1], -1)));
  250. });
  251. }, n.functions.areageodetic = function(t, e2) {
  252. return n.standardFunctionAsync(t, e2, async function(n2, e3, l3) {
  253. if (G(l3, 1, 2), (l3 = ye(l3))[0] === null)
  254. return 0;
  255. if (J(l3[0])) {
  256. const n3 = await l3[0].sumArea(r(I(l3[1], -1)), true, t.abortSignal);
  257. if (t.abortSignal.aborted)
  258. throw new Error("Operation has been cancelled.");
  259. return n3;
  260. }
  261. if (L(l3[0]) || E(l3[0])) {
  262. const n3 = ge(l3[0], t.spatialReference);
  263. return n3 === null ? 0 : K(n3, r(I(l3[1], -1)));
  264. }
  265. if (!(l3[0] instanceof p))
  266. throw new Error("Illegal Argument");
  267. return K(l3[0], r(I(l3[1], -1)));
  268. });
  269. }, n.functions.length = function(t, r2) {
  270. return n.standardFunctionAsync(t, r2, async function(n2, r3, l3) {
  271. if (G(l3, 1, 2), (l3 = ye(l3))[0] === null)
  272. return 0;
  273. if (J(l3[0])) {
  274. const n3 = await l3[0].sumLength(a(I(l3[1], -1)), false, t.abortSignal);
  275. if (t.abortSignal.aborted)
  276. throw new Error("Operation has been cancelled.");
  277. return n3;
  278. }
  279. if (L(l3[0]) || E(l3[0])) {
  280. const n3 = he(l3[0], t.spatialReference);
  281. return n3 === null ? 0 : F(n3, a(I(l3[1], -1)));
  282. }
  283. if (!(l3[0] instanceof p))
  284. throw new Error("Illegal Argument");
  285. return F(l3[0], a(I(l3[1], -1)));
  286. });
  287. }, n.functions.length3d = function(t, r2) {
  288. return n.standardFunctionAsync(t, r2, function(n2, r3, l3) {
  289. if (G(l3, 1, 2), (l3 = ye(l3))[0] === null)
  290. return 0;
  291. if (L(l3[0]) || E(l3[0])) {
  292. const n3 = he(l3[0], t.spatialReference);
  293. return n3 === null ? 0 : n3.hasZ === true ? an(n3, a(I(l3[1], -1))) : F(n3, a(I(l3[1], -1)));
  294. }
  295. if (!(l3[0] instanceof p))
  296. throw new Error("Illegal Argument");
  297. return l3[0].hasZ === true ? an(l3[0], a(I(l3[1], -1))) : F(l3[0], a(I(l3[1], -1)));
  298. });
  299. }, n.functions.lengthgeodetic = function(t, r2) {
  300. return n.standardFunctionAsync(t, r2, async function(n2, r3, l3) {
  301. if (G(l3, 1, 2), (l3 = ye(l3))[0] === null)
  302. return 0;
  303. if (J(l3[0])) {
  304. const n3 = await l3[0].sumLength(a(I(l3[1], -1)), true, t.abortSignal);
  305. if (t.abortSignal.aborted)
  306. throw new Error("Operation has been cancelled.");
  307. return n3;
  308. }
  309. if (L(l3[0]) || E(l3[0])) {
  310. const n3 = he(l3[0], t.spatialReference);
  311. return n3 === null ? 0 : M2(n3, a(I(l3[1], -1)));
  312. }
  313. if (!(l3[0] instanceof p))
  314. throw new Error("Illegal Argument");
  315. return M2(l3[0], a(I(l3[1], -1)));
  316. });
  317. }, n.functions.distance = function(t, r2) {
  318. return n.standardFunctionAsync(t, r2, function(n2, r3, l3) {
  319. l3 = ye(l3), G(l3, 2, 3);
  320. let u2 = l3[0];
  321. (L(l3[0]) || E(l3[0])) && (u2 = Se(l3[0], t.spatialReference));
  322. let c2 = l3[1];
  323. if ((L(l3[1]) || E(l3[1])) && (c2 = Se(l3[1], t.spatialReference)), !(u2 instanceof p))
  324. throw new Error("Illegal Argument");
  325. if (!(c2 instanceof p))
  326. throw new Error("Illegal Argument");
  327. return m3(u2, c2, a(I(l3[2], -1)));
  328. });
  329. }, n.functions.distancegeodetic = function(t, r2) {
  330. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  331. r3 = ye(r3), G(r3, 2, 3);
  332. const l3 = r3[0], u2 = r3[1];
  333. if (!(l3 instanceof j))
  334. throw new Error("Illegal Argument");
  335. if (!(u2 instanceof j))
  336. throw new Error("Illegal Argument");
  337. const a2 = new m2({ paths: [], spatialReference: l3.spatialReference });
  338. return a2.addPath([l3, u2]), M2(a2, a(I(r3[2], -1)));
  339. });
  340. }, n.functions.densify = function(t, r2) {
  341. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  342. if (r3 = ye(r3), G(r3, 2, 3), r3[0] === null)
  343. return null;
  344. if (!(r3[0] instanceof p))
  345. throw new Error("Illegal Argument");
  346. const l3 = ne(r3[1]);
  347. if (isNaN(l3))
  348. throw new Error("Illegal Argument");
  349. if (l3 <= 0)
  350. throw new Error("Illegal Argument");
  351. return r3[0] instanceof v || r3[0] instanceof m2 ? P(r3[0], l3, a(I(r3[2], -1))) : r3[0] instanceof M ? P(ln(r3[0]), l3, a(I(r3[2], -1))) : r3[0];
  352. });
  353. }, n.functions.densifygeodetic = function(t, r2) {
  354. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  355. if (r3 = ye(r3), G(r3, 2, 3), r3[0] === null)
  356. return null;
  357. if (!(r3[0] instanceof p))
  358. throw new Error("Illegal Argument");
  359. const l3 = ne(r3[1]);
  360. if (isNaN(l3))
  361. throw new Error("Illegal Argument");
  362. if (l3 <= 0)
  363. throw new Error("Illegal Argument");
  364. return r3[0] instanceof v || r3[0] instanceof m2 ? U(r3[0], l3, a(I(r3[2], -1))) : r3[0] instanceof M ? U(ln(r3[0]), l3, a(I(r3[2], -1))) : r3[0];
  365. });
  366. }, n.functions.generalize = function(t, r2) {
  367. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  368. if (r3 = ye(r3), G(r3, 2, 4), r3[0] === null)
  369. return null;
  370. if (!(r3[0] instanceof p))
  371. throw new Error("Illegal Argument");
  372. const l3 = ne(r3[1]);
  373. if (isNaN(l3))
  374. throw new Error("Illegal Argument");
  375. return G2(r3[0], l3, oe(I(r3[2], true)), a(I(r3[3], -1)));
  376. });
  377. }, n.functions.buffer = function(r2, l3) {
  378. return n.standardFunctionAsync(r2, l3, function(n2, r3, l4) {
  379. if (l4 = ye(l4), G(l4, 2, 3), l4[0] === null)
  380. return null;
  381. if (!(l4[0] instanceof p))
  382. throw new Error("Illegal Argument");
  383. const u2 = ne(l4[1]);
  384. if (isNaN(u2))
  385. throw new Error("Illegal Argument");
  386. return u2 === 0 ? c(l4[0]) : V(l4[0], u2, a(I(l4[2], -1)));
  387. });
  388. }, n.functions.buffergeodetic = function(r2, l3) {
  389. return n.standardFunctionAsync(r2, l3, function(n2, r3, l4) {
  390. if (l4 = ye(l4), G(l4, 2, 3), l4[0] === null)
  391. return null;
  392. if (!(l4[0] instanceof p))
  393. throw new Error("Illegal Argument");
  394. const u2 = ne(l4[1]);
  395. if (isNaN(u2))
  396. throw new Error("Illegal Argument");
  397. return u2 === 0 ? c(l4[0]) : b(l4[0], u2, a(I(l4[2], -1)));
  398. });
  399. }, n.functions.offset = function(t, r2) {
  400. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  401. if (r3 = ye(r3), G(r3, 2, 6), r3[0] === null)
  402. return null;
  403. if (!(r3[0] instanceof v || r3[0] instanceof m2))
  404. throw new Error("Illegal Argument");
  405. const l3 = ne(r3[1]);
  406. if (isNaN(l3))
  407. throw new Error("Illegal Argument");
  408. const a2 = ne(I(r3[4], 10));
  409. if (isNaN(a2))
  410. throw new Error("Illegal Argument");
  411. const s3 = ne(I(r3[5], 0));
  412. if (isNaN(s3))
  413. throw new Error("Illegal Argument");
  414. return v2(r3[0], l3, a(I(r3[2], -1)), X(I(r3[3], "round")).toLowerCase(), a2, s3);
  415. });
  416. }, n.functions.rotate = function(t, r2) {
  417. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  418. r3 = ye(r3), G(r3, 2, 3);
  419. let e2 = r3[0];
  420. if (e2 === null)
  421. return null;
  422. if (!(e2 instanceof p))
  423. throw new Error("Illegal Argument");
  424. e2 instanceof M && (e2 = v.fromExtent(e2));
  425. const l3 = ne(r3[1]);
  426. if (isNaN(l3))
  427. throw new Error("Illegal Argument");
  428. const u2 = I(r3[2], null);
  429. if (u2 === null)
  430. return q(e2, l3);
  431. if (u2 instanceof j)
  432. return q(e2, l3, u2);
  433. throw new Error("Illegal Argument");
  434. });
  435. }, n.functions.centroid = function(r2, e2) {
  436. return n.standardFunctionAsync(r2, e2, function(n2, e3, l3) {
  437. if (l3 = ye(l3), G(l3, 1, 1), l3[0] === null)
  438. return null;
  439. let u2 = l3[0];
  440. if ((L(l3[0]) || E(l3[0])) && (u2 = Se(l3[0], r2.spatialReference)), u2 === null)
  441. return null;
  442. if (!(u2 instanceof p))
  443. throw new Error("Illegal Argument");
  444. return u2 instanceof j ? se(c(l3[0]), r2.spatialReference) : u2 instanceof v ? u2.centroid : u2 instanceof m2 ? l(u2) : u2 instanceof m ? u(u2) : u2 instanceof M ? u2.center : null;
  445. });
  446. }, n.functions.multiparttosinglepart = function(r2, e2) {
  447. return n.standardFunctionAsync(r2, e2, async function(n2, e3, l3) {
  448. l3 = ye(l3), G(l3, 1, 1);
  449. const u2 = [];
  450. if (l3[0] === null)
  451. return null;
  452. if (!(l3[0] instanceof p))
  453. throw new Error("Illegal Argument");
  454. if (l3[0] instanceof j)
  455. return [se(c(l3[0]), r2.spatialReference)];
  456. if (l3[0] instanceof M)
  457. return [se(c(l3[0]), r2.spatialReference)];
  458. const a2 = await N(l3[0]);
  459. if (a2 instanceof v) {
  460. const n3 = [], t = [];
  461. for (let r3 = 0; r3 < a2.rings.length; r3++)
  462. if (a2.isClockwise(a2.rings[r3])) {
  463. const t2 = d({ rings: [a2.rings[r3]], hasZ: a2.hasZ === true, hazM: a2.hasM === true, spatialReference: a2.spatialReference.toJSON() });
  464. n3.push(t2);
  465. } else
  466. t.push({ ring: a2.rings[r3], pt: a2.getPoint(r3, 0) });
  467. for (let r3 = 0; r3 < t.length; r3++)
  468. for (let e4 = 0; e4 < n3.length; e4++)
  469. if (n3[e4].contains(t[r3].pt)) {
  470. n3[e4].addRing(t[r3].ring);
  471. break;
  472. }
  473. return n3;
  474. }
  475. if (a2 instanceof m2) {
  476. const n3 = [];
  477. for (let t = 0; t < a2.paths.length; t++) {
  478. const r3 = d({ paths: [a2.paths[t]], hasZ: a2.hasZ === true, hazM: a2.hasM === true, spatialReference: a2.spatialReference.toJSON() });
  479. n3.push(r3);
  480. }
  481. return n3;
  482. }
  483. if (l3[0] instanceof m) {
  484. const n3 = se(c(l3[0]), r2.spatialReference);
  485. for (let t = 0; t < n3.points.length; t++)
  486. u2.push(n3.getPoint(t));
  487. return u2;
  488. }
  489. return null;
  490. });
  491. }, n.functions.issimple = function(t, r2) {
  492. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  493. if (r3 = ye(r3), G(r3, 1, 1), r3[0] === null)
  494. return true;
  495. if (!(r3[0] instanceof p))
  496. throw new Error("Illegal Argument");
  497. return J2(r3[0]);
  498. });
  499. }, n.functions.simplify = function(t, r2) {
  500. return n.standardFunctionAsync(t, r2, function(n2, t2, r3) {
  501. if (r3 = ye(r3), G(r3, 1, 1), r3[0] === null)
  502. return null;
  503. if (!(r3[0] instanceof p))
  504. throw new Error("Illegal Argument");
  505. return N(r3[0]);
  506. });
  507. });
  508. }
  509. export {
  510. sn
  511. };
  512. //# sourceMappingURL=chunk-V7YK62XD.js.map