summaryrefslogtreecommitdiff
path: root/themes/blowfish/assets/lib/mermaid/isPlainObject-bb374f45.js
blob: f28c6ac6475a40235c860e2bef78504dd4f1bc38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import { a as m } from "./array-2ff2c7a6.js";
import { c, p as v } from "./constant-2fe7eae5.js";
import { x as j, h } from "./utils-aa888deb.js";
import { o as O, i as y } from "./mermaidAPI-51c0c26b.js";
function P(n) {
  return n[0];
}
function d(n) {
  return n[1];
}
function z(n, r) {
  var o = c(!0), f = null, l = j, u = null;
  n = typeof n == "function" ? n : n === void 0 ? P : c(n), r = typeof r == "function" ? r : r === void 0 ? d : c(r);
  function e(t) {
    var i, g = (t = m(t)).length, s, a = !1, p;
    for (f == null && (u = l(p = v())), i = 0; i <= g; ++i)
      !(i < g && o(s = t[i], i, t)) === a && ((a = !a) ? u.lineStart() : u.lineEnd()), a && u.point(+n(s, i, t), +r(s, i, t));
    if (p)
      return u = null, p + "" || null;
  }
  return e.x = function(t) {
    return arguments.length ? (n = typeof t == "function" ? t : c(+t), e) : n;
  }, e.y = function(t) {
    return arguments.length ? (r = typeof t == "function" ? t : c(+t), e) : r;
  }, e.defined = function(t) {
    return arguments.length ? (o = typeof t == "function" ? t : c(!!t), e) : o;
  }, e.curve = function(t) {
    return arguments.length ? (l = t, f != null && (u = l(f)), e) : l;
  }, e.context = function(t) {
    return arguments.length ? (t == null ? f = u = null : u = l(f = t), e) : f;
  }, e;
}
var S = O(Object.getPrototypeOf, Object);
const T = S;
var w = "[object Object]", C = Function.prototype, L = Object.prototype, b = C.toString, k = L.hasOwnProperty, A = b.call(Object);
function B(n) {
  if (!y(n) || h(n) != w)
    return !1;
  var r = T(n);
  if (r === null)
    return !0;
  var o = k.call(r, "constructor") && r.constructor;
  return typeof o == "function" && o instanceof o && b.call(o) == A;
}
export {
  T as g,
  B as i,
  z as l
};
//# sourceMappingURL=isPlainObject-bb374f45.js.map