1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- // node_modules/@arcgis/core/core/maybe.js
- var n = null;
- function r(n2) {
- return null != n2;
- }
- function t(n2) {
- return null == n2;
- }
- function o(t2, u) {
- return r(t2) ? u(t2) : n;
- }
- function e(n2) {
- return n2;
- }
- function f(n2, r2) {
- return c(n2, r2), n2;
- }
- function c(n2, r2) {
- if (t(n2))
- throw new Error(r2 != null ? r2 : "value is None");
- }
- function i(n2, t2) {
- return r(n2) ? n2 : "function" == typeof t2 ? t2() : t2;
- }
- function l(n2, t2) {
- return r(n2) ? n2 : t2;
- }
- function s(n2) {
- return r(n2) && n2.destroy(), null;
- }
- function a(n2) {
- return r(n2) && n2.dispose(), null;
- }
- function h(n2) {
- return r(n2) && n2.remove(), null;
- }
- function p(n2) {
- return r(n2) && n2.abort(), null;
- }
- function w(n2) {
- return r(n2) && n2.release(), null;
- }
- function y(n2, t2, u) {
- return r(n2) && r(t2) ? r(u) ? u(n2, t2) : n2.equals(t2) : n2 === t2;
- }
- function d(n2) {
- return null;
- }
- function A(n2, r2) {
- const t2 = new Array();
- for (const u of n2)
- t2.push(b(u, null, r2));
- return t2;
- }
- function E(n2, r2) {
- for (const t2 of n2)
- o(t2, r2);
- }
- function b(n2, t2, u) {
- return r(n2) ? u(n2) : t2;
- }
- function m(n2) {
- return n2.filter((n3) => r(n3));
- }
- function q(n2, ...r2) {
- let t2 = n2;
- for (let u = 0; u < r2.length && t2; ++u)
- t2 = t2[r2[u]];
- return t2;
- }
- function x(n2) {
- return n2;
- }
- export {
- r,
- t,
- o,
- e,
- f,
- c,
- i,
- l,
- s,
- a,
- h,
- p,
- w,
- y,
- d,
- A,
- E,
- b,
- m,
- q,
- x
- };
- //# sourceMappingURL=chunk-YXWMMD76.js.map
|