chunk-YXWMMD76.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // node_modules/@arcgis/core/core/maybe.js
  2. var n = null;
  3. function r(n2) {
  4. return null != n2;
  5. }
  6. function t(n2) {
  7. return null == n2;
  8. }
  9. function o(t2, u) {
  10. return r(t2) ? u(t2) : n;
  11. }
  12. function e(n2) {
  13. return n2;
  14. }
  15. function f(n2, r2) {
  16. return c(n2, r2), n2;
  17. }
  18. function c(n2, r2) {
  19. if (t(n2))
  20. throw new Error(r2 != null ? r2 : "value is None");
  21. }
  22. function i(n2, t2) {
  23. return r(n2) ? n2 : "function" == typeof t2 ? t2() : t2;
  24. }
  25. function l(n2, t2) {
  26. return r(n2) ? n2 : t2;
  27. }
  28. function s(n2) {
  29. return r(n2) && n2.destroy(), null;
  30. }
  31. function a(n2) {
  32. return r(n2) && n2.dispose(), null;
  33. }
  34. function h(n2) {
  35. return r(n2) && n2.remove(), null;
  36. }
  37. function p(n2) {
  38. return r(n2) && n2.abort(), null;
  39. }
  40. function w(n2) {
  41. return r(n2) && n2.release(), null;
  42. }
  43. function y(n2, t2, u) {
  44. return r(n2) && r(t2) ? r(u) ? u(n2, t2) : n2.equals(t2) : n2 === t2;
  45. }
  46. function d(n2) {
  47. return null;
  48. }
  49. function A(n2, r2) {
  50. const t2 = new Array();
  51. for (const u of n2)
  52. t2.push(b(u, null, r2));
  53. return t2;
  54. }
  55. function E(n2, r2) {
  56. for (const t2 of n2)
  57. o(t2, r2);
  58. }
  59. function b(n2, t2, u) {
  60. return r(n2) ? u(n2) : t2;
  61. }
  62. function m(n2) {
  63. return n2.filter((n3) => r(n3));
  64. }
  65. function q(n2, ...r2) {
  66. let t2 = n2;
  67. for (let u = 0; u < r2.length && t2; ++u)
  68. t2 = t2[r2[u]];
  69. return t2;
  70. }
  71. function x(n2) {
  72. return n2;
  73. }
  74. export {
  75. r,
  76. t,
  77. o,
  78. e,
  79. f,
  80. c,
  81. i,
  82. l,
  83. s,
  84. a,
  85. h,
  86. p,
  87. w,
  88. y,
  89. d,
  90. A,
  91. E,
  92. b,
  93. m,
  94. q,
  95. x
  96. };
  97. //# sourceMappingURL=chunk-YXWMMD76.js.map