react-capture-events
Version:
A React library to capture and display events
2,599 lines • 161 kB
JavaScript
import Ct from "react";
function St(Ie, pt) {
for (var Je = 0; Je < pt.length; Je++) {
const o = pt[Je];
if (typeof o != "string" && !Array.isArray(o)) {
for (const n in o)
if (n !== "default" && !(n in Ie)) {
const e = Object.getOwnPropertyDescriptor(o, n);
e && Object.defineProperty(Ie, n, e.get ? e : {
enumerable: !0,
get: () => o[n]
});
}
}
}
return Object.freeze(Object.defineProperty(Ie, Symbol.toStringTag, { value: "Module" }));
}
var wt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function At(Ie) {
return Ie && Ie.__esModule && Object.prototype.hasOwnProperty.call(Ie, "default") ? Ie.default : Ie;
}
var gt = { exports: {} };
(function(Ie, pt) {
(function(Je, o) {
Ie.exports = o(Ct);
})(wt, function(Je) {
return function(o) {
var n = {};
function e(s) {
if (n[s]) return n[s].exports;
var u = n[s] = { i: s, l: !1, exports: {} };
return o[s].call(u.exports, u, u.exports, e), u.l = !0, u.exports;
}
return e.m = o, e.c = n, e.d = function(s, u, p) {
e.o(s, u) || Object.defineProperty(s, u, { enumerable: !0, get: p });
}, e.r = function(s) {
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(s, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(s, "__esModule", { value: !0 });
}, e.t = function(s, u) {
if (1 & u && (s = e(s)), 8 & u || 4 & u && typeof s == "object" && s && s.__esModule) return s;
var p = /* @__PURE__ */ Object.create(null);
if (e.r(p), Object.defineProperty(p, "default", { enumerable: !0, value: s }), 2 & u && typeof s != "string") for (var f in s) e.d(p, f, (function(d) {
return s[d];
}).bind(null, f));
return p;
}, e.n = function(s) {
var u = s && s.__esModule ? function() {
return s.default;
} : function() {
return s;
};
return e.d(u, "a", u), u;
}, e.o = function(s, u) {
return Object.prototype.hasOwnProperty.call(s, u);
}, e.p = "", e(e.s = 48);
}([function(o, n) {
o.exports = Je;
}, function(o, n) {
var e = o.exports = { version: "2.6.12" };
typeof __e == "number" && (__e = e);
}, function(o, n, e) {
var s = e(26)("wks"), u = e(17), p = e(3).Symbol, f = typeof p == "function";
(o.exports = function(d) {
return s[d] || (s[d] = f && p[d] || (f ? p : u)("Symbol." + d));
}).store = s;
}, function(o, n) {
var e = o.exports = typeof window < "u" && window.Math == Math ? window : typeof self < "u" && self.Math == Math ? self : Function("return this")();
typeof __g == "number" && (__g = e);
}, function(o, n, e) {
o.exports = !e(8)(function() {
return Object.defineProperty({}, "a", { get: function() {
return 7;
} }).a != 7;
});
}, function(o, n) {
var e = {}.hasOwnProperty;
o.exports = function(s, u) {
return e.call(s, u);
};
}, function(o, n, e) {
var s = e(7), u = e(16);
o.exports = e(4) ? function(p, f, d) {
return s.f(p, f, u(1, d));
} : function(p, f, d) {
return p[f] = d, p;
};
}, function(o, n, e) {
var s = e(10), u = e(35), p = e(23), f = Object.defineProperty;
n.f = e(4) ? Object.defineProperty : function(d, b, E) {
if (s(d), b = p(b, !0), s(E), u) try {
return f(d, b, E);
} catch {
}
if ("get" in E || "set" in E) throw TypeError("Accessors not supported!");
return "value" in E && (d[b] = E.value), d;
};
}, function(o, n) {
o.exports = function(e) {
try {
return !!e();
} catch {
return !0;
}
};
}, function(o, n, e) {
var s = e(40), u = e(22);
o.exports = function(p) {
return s(u(p));
};
}, function(o, n, e) {
var s = e(11);
o.exports = function(u) {
if (!s(u)) throw TypeError(u + " is not an object!");
return u;
};
}, function(o, n) {
o.exports = function(e) {
return typeof e == "object" ? e !== null : typeof e == "function";
};
}, function(o, n) {
o.exports = {};
}, function(o, n, e) {
var s = e(39), u = e(27);
o.exports = Object.keys || function(p) {
return s(p, u);
};
}, function(o, n) {
o.exports = !0;
}, function(o, n, e) {
var s = e(3), u = e(1), p = e(53), f = e(6), d = e(5), b = function(E, _, P) {
var D, V, Q, L = E & b.F, Z = E & b.G, t = E & b.S, F = E & b.P, R = E & b.B, B = E & b.W, N = Z ? u : u[_] || (u[_] = {}), j = N.prototype, C = Z ? s : t ? s[_] : (s[_] || {}).prototype;
for (D in Z && (P = _), P) (V = !L && C && C[D] !== void 0) && d(N, D) || (Q = V ? C[D] : P[D], N[D] = Z && typeof C[D] != "function" ? P[D] : R && V ? p(Q, s) : B && C[D] == Q ? function(M) {
var z = function(g, G, K) {
if (this instanceof M) {
switch (arguments.length) {
case 0:
return new M();
case 1:
return new M(g);
case 2:
return new M(g, G);
}
return new M(g, G, K);
}
return M.apply(this, arguments);
};
return z.prototype = M.prototype, z;
}(Q) : F && typeof Q == "function" ? p(Function.call, Q) : Q, F && ((N.virtual || (N.virtual = {}))[D] = Q, E & b.R && j && !j[D] && f(j, D, Q)));
};
b.F = 1, b.G = 2, b.S = 4, b.P = 8, b.B = 16, b.W = 32, b.U = 64, b.R = 128, o.exports = b;
}, function(o, n) {
o.exports = function(e, s) {
return { enumerable: !(1 & e), configurable: !(2 & e), writable: !(4 & e), value: s };
};
}, function(o, n) {
var e = 0, s = Math.random();
o.exports = function(u) {
return "Symbol(".concat(u === void 0 ? "" : u, ")_", (++e + s).toString(36));
};
}, function(o, n, e) {
var s = e(22);
o.exports = function(u) {
return Object(s(u));
};
}, function(o, n) {
n.f = {}.propertyIsEnumerable;
}, function(o, n, e) {
var s = e(52)(!0);
e(34)(String, "String", function(u) {
this._t = String(u), this._i = 0;
}, function() {
var u, p = this._t, f = this._i;
return f >= p.length ? { value: void 0, done: !0 } : (u = s(p, f), this._i += u.length, { value: u, done: !1 });
});
}, function(o, n) {
var e = Math.ceil, s = Math.floor;
o.exports = function(u) {
return isNaN(u = +u) ? 0 : (u > 0 ? s : e)(u);
};
}, function(o, n) {
o.exports = function(e) {
if (e == null) throw TypeError("Can't call method on " + e);
return e;
};
}, function(o, n, e) {
var s = e(11);
o.exports = function(u, p) {
if (!s(u)) return u;
var f, d;
if (p && typeof (f = u.toString) == "function" && !s(d = f.call(u)) || typeof (f = u.valueOf) == "function" && !s(d = f.call(u)) || !p && typeof (f = u.toString) == "function" && !s(d = f.call(u))) return d;
throw TypeError("Can't convert object to primitive value");
};
}, function(o, n) {
var e = {}.toString;
o.exports = function(s) {
return e.call(s).slice(8, -1);
};
}, function(o, n, e) {
var s = e(26)("keys"), u = e(17);
o.exports = function(p) {
return s[p] || (s[p] = u(p));
};
}, function(o, n, e) {
var s = e(1), u = e(3), p = u["__core-js_shared__"] || (u["__core-js_shared__"] = {});
(o.exports = function(f, d) {
return p[f] || (p[f] = d !== void 0 ? d : {});
})("versions", []).push({ version: s.version, mode: e(14) ? "pure" : "global", copyright: "© 2020 Denis Pushkarev (zloirock.ru)" });
}, function(o, n) {
o.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
}, function(o, n, e) {
var s = e(7).f, u = e(5), p = e(2)("toStringTag");
o.exports = function(f, d, b) {
f && !u(f = b ? f : f.prototype, p) && s(f, p, { configurable: !0, value: d });
};
}, function(o, n, e) {
e(62);
for (var s = e(3), u = e(6), p = e(12), f = e(2)("toStringTag"), d = "CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","), b = 0; b < d.length; b++) {
var E = d[b], _ = s[E], P = _ && _.prototype;
P && !P[f] && u(P, f, E), p[E] = p.Array;
}
}, function(o, n, e) {
n.f = e(2);
}, function(o, n, e) {
var s = e(3), u = e(1), p = e(14), f = e(30), d = e(7).f;
o.exports = function(b) {
var E = u.Symbol || (u.Symbol = p ? {} : s.Symbol || {});
b.charAt(0) == "_" || b in E || d(E, b, { value: f.f(b) });
};
}, function(o, n) {
n.f = Object.getOwnPropertySymbols;
}, function(o, n) {
o.exports = function(e, s, u) {
return Math.min(Math.max(e, s), u);
};
}, function(o, n, e) {
var s = e(14), u = e(15), p = e(37), f = e(6), d = e(12), b = e(55), E = e(28), _ = e(61), P = e(2)("iterator"), D = !([].keys && "next" in [].keys()), V = function() {
return this;
};
o.exports = function(Q, L, Z, t, F, R, B) {
b(Z, L, t);
var N, j, C, M = function(W) {
if (!D && W in K) return K[W];
switch (W) {
case "keys":
case "values":
return function() {
return new Z(this, W);
};
}
return function() {
return new Z(this, W);
};
}, z = L + " Iterator", g = F == "values", G = !1, K = Q.prototype, O = K[P] || K["@@iterator"] || F && K[F], U = O || M(F), le = F ? g ? M("entries") : U : void 0, re = L == "Array" && K.entries || O;
if (re && (C = _(re.call(new Q()))) !== Object.prototype && C.next && (E(C, z, !0), s || typeof C[P] == "function" || f(C, P, V)), g && O && O.name !== "values" && (G = !0, U = function() {
return O.call(this);
}), s && !B || !D && !G && K[P] || f(K, P, U), d[L] = U, d[z] = V, F) if (N = { values: g ? U : M("values"), keys: R ? U : M("keys"), entries: le }, B) for (j in N) j in K || p(K, j, N[j]);
else u(u.P + u.F * (D || G), L, N);
return N;
};
}, function(o, n, e) {
o.exports = !e(4) && !e(8)(function() {
return Object.defineProperty(e(36)("div"), "a", { get: function() {
return 7;
} }).a != 7;
});
}, function(o, n, e) {
var s = e(11), u = e(3).document, p = s(u) && s(u.createElement);
o.exports = function(f) {
return p ? u.createElement(f) : {};
};
}, function(o, n, e) {
o.exports = e(6);
}, function(o, n, e) {
var s = e(10), u = e(56), p = e(27), f = e(25)("IE_PROTO"), d = function() {
}, b = function() {
var E, _ = e(36)("iframe"), P = p.length;
for (_.style.display = "none", e(60).appendChild(_), _.src = "javascript:", (E = _.contentWindow.document).open(), E.write("<script>document.F=Object<\/script>"), E.close(), b = E.F; P--; ) delete b.prototype[p[P]];
return b();
};
o.exports = Object.create || function(E, _) {
var P;
return E !== null ? (d.prototype = s(E), P = new d(), d.prototype = null, P[f] = E) : P = b(), _ === void 0 ? P : u(P, _);
};
}, function(o, n, e) {
var s = e(5), u = e(9), p = e(57)(!1), f = e(25)("IE_PROTO");
o.exports = function(d, b) {
var E, _ = u(d), P = 0, D = [];
for (E in _) E != f && s(_, E) && D.push(E);
for (; b.length > P; ) s(_, E = b[P++]) && (~p(D, E) || D.push(E));
return D;
};
}, function(o, n, e) {
var s = e(24);
o.exports = Object("z").propertyIsEnumerable(0) ? Object : function(u) {
return s(u) == "String" ? u.split("") : Object(u);
};
}, function(o, n, e) {
var s = e(39), u = e(27).concat("length", "prototype");
n.f = Object.getOwnPropertyNames || function(p) {
return s(p, u);
};
}, function(o, n, e) {
var s = e(24), u = e(2)("toStringTag"), p = s(/* @__PURE__ */ function() {
return arguments;
}()) == "Arguments";
o.exports = function(f) {
var d, b, E;
return f === void 0 ? "Undefined" : f === null ? "Null" : typeof (b = function(_, P) {
try {
return _[P];
} catch {
}
}(d = Object(f), u)) == "string" ? b : p ? s(d) : (E = s(d)) == "Object" && typeof d.callee == "function" ? "Arguments" : E;
};
}, function(o, n) {
var e;
e = /* @__PURE__ */ function() {
return this;
}();
try {
e = e || new Function("return this")();
} catch {
typeof window == "object" && (e = window);
}
o.exports = e;
}, function(o, n) {
var e = /-?\d+(\.\d+)?%?/g;
o.exports = function(s) {
return s.match(e);
};
}, function(o, n, e) {
Object.defineProperty(n, "__esModule", { value: !0 }), n.getBase16Theme = n.createStyling = n.invertTheme = void 0;
var s = V(e(49)), u = V(e(76)), p = V(e(81)), f = V(e(89)), d = V(e(93)), b = function(j) {
if (j && j.__esModule) return j;
var C = {};
if (j != null) for (var M in j) Object.prototype.hasOwnProperty.call(j, M) && (C[M] = j[M]);
return C.default = j, C;
}(e(94)), E = V(e(132)), _ = V(e(133)), P = V(e(138)), D = e(139);
function V(j) {
return j && j.__esModule ? j : { default: j };
}
var Q = b.default, L = (0, f.default)(Q), Z = (0, P.default)(_.default, D.rgb2yuv, function(j) {
var C, M = (0, p.default)(j, 3), z = M[0], g = M[1], G = M[2];
return [(C = z, C < 0.25 ? 1 : C < 0.5 ? 0.9 - C : 1.1 - C), g, G];
}, D.yuv2rgb, E.default), t = function(j) {
return function(C) {
return { className: [C.className, j.className].filter(Boolean).join(" "), style: (0, u.default)({}, C.style || {}, j.style || {}) };
};
}, F = function(j, C) {
var M = (0, f.default)(C);
for (var z in j) M.indexOf(z) === -1 && M.push(z);
return M.reduce(function(g, G) {
return g[G] = function(K, O) {
if (K === void 0) return O;
if (O === void 0) return K;
var U = K === void 0 ? "undefined" : (0, s.default)(K), le = O === void 0 ? "undefined" : (0, s.default)(O);
switch (U) {
case "string":
switch (le) {
case "string":
return [O, K].filter(Boolean).join(" ");
case "object":
return t({ className: K, style: O });
case "function":
return function(re) {
for (var W = arguments.length, ne = Array(W > 1 ? W - 1 : 0), $ = 1; $ < W; $++) ne[$ - 1] = arguments[$];
return t({ className: K })(O.apply(void 0, [re].concat(ne)));
};
}
case "object":
switch (le) {
case "string":
return t({ className: O, style: K });
case "object":
return (0, u.default)({}, O, K);
case "function":
return function(re) {
for (var W = arguments.length, ne = Array(W > 1 ? W - 1 : 0), $ = 1; $ < W; $++) ne[$ - 1] = arguments[$];
return t({ style: K })(O.apply(void 0, [re].concat(ne)));
};
}
case "function":
switch (le) {
case "string":
return function(re) {
for (var W = arguments.length, ne = Array(W > 1 ? W - 1 : 0), $ = 1; $ < W; $++) ne[$ - 1] = arguments[$];
return K.apply(void 0, [t(re)({ className: O })].concat(ne));
};
case "object":
return function(re) {
for (var W = arguments.length, ne = Array(W > 1 ? W - 1 : 0), $ = 1; $ < W; $++) ne[$ - 1] = arguments[$];
return K.apply(void 0, [t(re)({ style: O })].concat(ne));
};
case "function":
return function(re) {
for (var W = arguments.length, ne = Array(W > 1 ? W - 1 : 0), $ = 1; $ < W; $++) ne[$ - 1] = arguments[$];
return K.apply(void 0, [O.apply(void 0, [re].concat(ne))].concat(ne));
};
}
}
}(j[G], C[G]), g;
}, {});
}, R = function(j, C) {
for (var M = arguments.length, z = Array(M > 2 ? M - 2 : 0), g = 2; g < M; g++) z[g - 2] = arguments[g];
if (C === null) return j;
Array.isArray(C) || (C = [C]);
var G = C.map(function(O) {
return j[O];
}).filter(Boolean), K = G.reduce(function(O, U) {
return typeof U == "string" ? O.className = [O.className, U].filter(Boolean).join(" ") : (U === void 0 ? "undefined" : (0, s.default)(U)) === "object" ? O.style = (0, u.default)({}, O.style, U) : typeof U == "function" && (O = (0, u.default)({}, O, U.apply(void 0, [O].concat(z)))), O;
}, { className: "", style: {} });
return K.className || delete K.className, (0, f.default)(K.style).length === 0 && delete K.style, K;
}, B = n.invertTheme = function(j) {
return (0, f.default)(j).reduce(function(C, M) {
return C[M] = /^base/.test(M) ? Z(j[M]) : M === "scheme" ? j[M] + ":inverted" : j[M], C;
}, {});
}, N = (n.createStyling = (0, d.default)(function(j) {
for (var C = arguments.length, M = Array(C > 3 ? C - 3 : 0), z = 3; z < C; z++) M[z - 3] = arguments[z];
var g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, K = g.defaultBase16, O = K === void 0 ? Q : K, U = g.base16Themes, le = U === void 0 ? null : U, re = N(G, le);
re && (G = (0, u.default)({}, re, G));
var W = L.reduce(function(pe, Oe) {
return pe[Oe] = G[Oe] || O[Oe], pe;
}, {}), ne = (0, f.default)(G).reduce(function(pe, Oe) {
return L.indexOf(Oe) === -1 && (pe[Oe] = G[Oe]), pe;
}, {}), $ = j(W), ue = F(ne, $);
return (0, d.default)(R, 2).apply(void 0, [ue].concat(M));
}, 3), n.getBase16Theme = function(j, C) {
if (j && j.extend && (j = j.extend), typeof j == "string") {
var M = j.split(":"), z = (0, p.default)(M, 2), g = z[0], G = z[1];
j = (C || {})[g] || b[g], G === "inverted" && (j = B(j));
}
return j && j.hasOwnProperty("base00") ? j : void 0;
});
}, function(o, n, e) {
var s, u = typeof Reflect == "object" ? Reflect : null, p = u && typeof u.apply == "function" ? u.apply : function(t, F, R) {
return Function.prototype.apply.call(t, F, R);
};
s = u && typeof u.ownKeys == "function" ? u.ownKeys : Object.getOwnPropertySymbols ? function(t) {
return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t));
} : function(t) {
return Object.getOwnPropertyNames(t);
};
var f = Number.isNaN || function(t) {
return t != t;
};
function d() {
d.init.call(this);
}
o.exports = d, o.exports.once = function(t, F) {
return new Promise(function(R, B) {
function N() {
j !== void 0 && t.removeListener("error", j), R([].slice.call(arguments));
}
var j;
F !== "error" && (j = function(C) {
t.removeListener(F, N), B(C);
}, t.once("error", j)), t.once(F, N);
});
}, d.EventEmitter = d, d.prototype._events = void 0, d.prototype._eventsCount = 0, d.prototype._maxListeners = void 0;
var b = 10;
function E(t) {
if (typeof t != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
}
function _(t) {
return t._maxListeners === void 0 ? d.defaultMaxListeners : t._maxListeners;
}
function P(t, F, R, B) {
var N, j, C, M;
if (E(R), (j = t._events) === void 0 ? (j = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (j.newListener !== void 0 && (t.emit("newListener", F, R.listener ? R.listener : R), j = t._events), C = j[F]), C === void 0) C = j[F] = R, ++t._eventsCount;
else if (typeof C == "function" ? C = j[F] = B ? [R, C] : [C, R] : B ? C.unshift(R) : C.push(R), (N = _(t)) > 0 && C.length > N && !C.warned) {
C.warned = !0;
var z = new Error("Possible EventEmitter memory leak detected. " + C.length + " " + String(F) + " listeners added. Use emitter.setMaxListeners() to increase limit");
z.name = "MaxListenersExceededWarning", z.emitter = t, z.type = F, z.count = C.length, M = z, console && console.warn && console.warn(M);
}
return t;
}
function D() {
if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
}
function V(t, F, R) {
var B = { fired: !1, wrapFn: void 0, target: t, type: F, listener: R }, N = D.bind(B);
return N.listener = R, B.wrapFn = N, N;
}
function Q(t, F, R) {
var B = t._events;
if (B === void 0) return [];
var N = B[F];
return N === void 0 ? [] : typeof N == "function" ? R ? [N.listener || N] : [N] : R ? function(j) {
for (var C = new Array(j.length), M = 0; M < C.length; ++M) C[M] = j[M].listener || j[M];
return C;
}(N) : Z(N, N.length);
}
function L(t) {
var F = this._events;
if (F !== void 0) {
var R = F[t];
if (typeof R == "function") return 1;
if (R !== void 0) return R.length;
}
return 0;
}
function Z(t, F) {
for (var R = new Array(F), B = 0; B < F; ++B) R[B] = t[B];
return R;
}
Object.defineProperty(d, "defaultMaxListeners", { enumerable: !0, get: function() {
return b;
}, set: function(t) {
if (typeof t != "number" || t < 0 || f(t)) throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
b = t;
} }), d.init = function() {
this._events !== void 0 && this._events !== Object.getPrototypeOf(this)._events || (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
}, d.prototype.setMaxListeners = function(t) {
if (typeof t != "number" || t < 0 || f(t)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + t + ".");
return this._maxListeners = t, this;
}, d.prototype.getMaxListeners = function() {
return _(this);
}, d.prototype.emit = function(t) {
for (var F = [], R = 1; R < arguments.length; R++) F.push(arguments[R]);
var B = t === "error", N = this._events;
if (N !== void 0) B = B && N.error === void 0;
else if (!B) return !1;
if (B) {
var j;
if (F.length > 0 && (j = F[0]), j instanceof Error) throw j;
var C = new Error("Unhandled error." + (j ? " (" + j.message + ")" : ""));
throw C.context = j, C;
}
var M = N[t];
if (M === void 0) return !1;
if (typeof M == "function") p(M, this, F);
else {
var z = M.length, g = Z(M, z);
for (R = 0; R < z; ++R) p(g[R], this, F);
}
return !0;
}, d.prototype.addListener = function(t, F) {
return P(this, t, F, !1);
}, d.prototype.on = d.prototype.addListener, d.prototype.prependListener = function(t, F) {
return P(this, t, F, !0);
}, d.prototype.once = function(t, F) {
return E(F), this.on(t, V(this, t, F)), this;
}, d.prototype.prependOnceListener = function(t, F) {
return E(F), this.prependListener(t, V(this, t, F)), this;
}, d.prototype.removeListener = function(t, F) {
var R, B, N, j, C;
if (E(F), (B = this._events) === void 0) return this;
if ((R = B[t]) === void 0) return this;
if (R === F || R.listener === F) --this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete B[t], B.removeListener && this.emit("removeListener", t, R.listener || F));
else if (typeof R != "function") {
for (N = -1, j = R.length - 1; j >= 0; j--) if (R[j] === F || R[j].listener === F) {
C = R[j].listener, N = j;
break;
}
if (N < 0) return this;
N === 0 ? R.shift() : function(M, z) {
for (; z + 1 < M.length; z++) M[z] = M[z + 1];
M.pop();
}(R, N), R.length === 1 && (B[t] = R[0]), B.removeListener !== void 0 && this.emit("removeListener", t, C || F);
}
return this;
}, d.prototype.off = d.prototype.removeListener, d.prototype.removeAllListeners = function(t) {
var F, R, B;
if ((R = this._events) === void 0) return this;
if (R.removeListener === void 0) return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : R[t] !== void 0 && (--this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete R[t]), this;
if (arguments.length === 0) {
var N, j = Object.keys(R);
for (B = 0; B < j.length; ++B) (N = j[B]) !== "removeListener" && this.removeAllListeners(N);
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
}
if (typeof (F = R[t]) == "function") this.removeListener(t, F);
else if (F !== void 0) for (B = F.length - 1; B >= 0; B--) this.removeListener(t, F[B]);
return this;
}, d.prototype.listeners = function(t) {
return Q(this, t, !0);
}, d.prototype.rawListeners = function(t) {
return Q(this, t, !1);
}, d.listenerCount = function(t, F) {
return typeof t.listenerCount == "function" ? t.listenerCount(F) : L.call(t, F);
}, d.prototype.listenerCount = L, d.prototype.eventNames = function() {
return this._eventsCount > 0 ? s(this._events) : [];
};
}, function(o, n, e) {
o.exports.Dispatcher = e(140);
}, function(o, n, e) {
o.exports = e(142);
}, function(o, n, e) {
n.__esModule = !0;
var s = f(e(50)), u = f(e(65)), p = typeof u.default == "function" && typeof s.default == "symbol" ? function(d) {
return typeof d;
} : function(d) {
return d && typeof u.default == "function" && d.constructor === u.default && d !== u.default.prototype ? "symbol" : typeof d;
};
function f(d) {
return d && d.__esModule ? d : { default: d };
}
n.default = typeof u.default == "function" && p(s.default) === "symbol" ? function(d) {
return d === void 0 ? "undefined" : p(d);
} : function(d) {
return d && typeof u.default == "function" && d.constructor === u.default && d !== u.default.prototype ? "symbol" : d === void 0 ? "undefined" : p(d);
};
}, function(o, n, e) {
o.exports = { default: e(51), __esModule: !0 };
}, function(o, n, e) {
e(20), e(29), o.exports = e(30).f("iterator");
}, function(o, n, e) {
var s = e(21), u = e(22);
o.exports = function(p) {
return function(f, d) {
var b, E, _ = String(u(f)), P = s(d), D = _.length;
return P < 0 || P >= D ? p ? "" : void 0 : (b = _.charCodeAt(P)) < 55296 || b > 56319 || P + 1 === D || (E = _.charCodeAt(P + 1)) < 56320 || E > 57343 ? p ? _.charAt(P) : b : p ? _.slice(P, P + 2) : E - 56320 + (b - 55296 << 10) + 65536;
};
};
}, function(o, n, e) {
var s = e(54);
o.exports = function(u, p, f) {
if (s(u), p === void 0) return u;
switch (f) {
case 1:
return function(d) {
return u.call(p, d);
};
case 2:
return function(d, b) {
return u.call(p, d, b);
};
case 3:
return function(d, b, E) {
return u.call(p, d, b, E);
};
}
return function() {
return u.apply(p, arguments);
};
};
}, function(o, n) {
o.exports = function(e) {
if (typeof e != "function") throw TypeError(e + " is not a function!");
return e;
};
}, function(o, n, e) {
var s = e(38), u = e(16), p = e(28), f = {};
e(6)(f, e(2)("iterator"), function() {
return this;
}), o.exports = function(d, b, E) {
d.prototype = s(f, { next: u(1, E) }), p(d, b + " Iterator");
};
}, function(o, n, e) {
var s = e(7), u = e(10), p = e(13);
o.exports = e(4) ? Object.defineProperties : function(f, d) {
u(f);
for (var b, E = p(d), _ = E.length, P = 0; _ > P; ) s.f(f, b = E[P++], d[b]);
return f;
};
}, function(o, n, e) {
var s = e(9), u = e(58), p = e(59);
o.exports = function(f) {
return function(d, b, E) {
var _, P = s(d), D = u(P.length), V = p(E, D);
if (f && b != b) {
for (; D > V; ) if ((_ = P[V++]) != _) return !0;
} else for (; D > V; V++) if ((f || V in P) && P[V] === b) return f || V || 0;
return !f && -1;
};
};
}, function(o, n, e) {
var s = e(21), u = Math.min;
o.exports = function(p) {
return p > 0 ? u(s(p), 9007199254740991) : 0;
};
}, function(o, n, e) {
var s = e(21), u = Math.max, p = Math.min;
o.exports = function(f, d) {
return (f = s(f)) < 0 ? u(f + d, 0) : p(f, d);
};
}, function(o, n, e) {
var s = e(3).document;
o.exports = s && s.documentElement;
}, function(o, n, e) {
var s = e(5), u = e(18), p = e(25)("IE_PROTO"), f = Object.prototype;
o.exports = Object.getPrototypeOf || function(d) {
return d = u(d), s(d, p) ? d[p] : typeof d.constructor == "function" && d instanceof d.constructor ? d.constructor.prototype : d instanceof Object ? f : null;
};
}, function(o, n, e) {
var s = e(63), u = e(64), p = e(12), f = e(9);
o.exports = e(34)(Array, "Array", function(d, b) {
this._t = f(d), this._i = 0, this._k = b;
}, function() {
var d = this._t, b = this._k, E = this._i++;
return !d || E >= d.length ? (this._t = void 0, u(1)) : u(0, b == "keys" ? E : b == "values" ? d[E] : [E, d[E]]);
}, "values"), p.Arguments = p.Array, s("keys"), s("values"), s("entries");
}, function(o, n) {
o.exports = function() {
};
}, function(o, n) {
o.exports = function(e, s) {
return { value: s, done: !!e };
};
}, function(o, n, e) {
o.exports = { default: e(66), __esModule: !0 };
}, function(o, n, e) {
e(67), e(73), e(74), e(75), o.exports = e(1).Symbol;
}, function(o, n, e) {
var s = e(3), u = e(5), p = e(4), f = e(15), d = e(37), b = e(68).KEY, E = e(8), _ = e(26), P = e(28), D = e(17), V = e(2), Q = e(30), L = e(31), Z = e(69), t = e(70), F = e(10), R = e(11), B = e(18), N = e(9), j = e(23), C = e(16), M = e(38), z = e(71), g = e(72), G = e(32), K = e(7), O = e(13), U = g.f, le = K.f, re = z.f, W = s.Symbol, ne = s.JSON, $ = ne && ne.stringify, ue = V("_hidden"), pe = V("toPrimitive"), Oe = {}.propertyIsEnumerable, me = _("symbol-registry"), Ee = _("symbols"), ce = _("op-symbols"), de = Object.prototype, we = typeof W == "function" && !!G.f, ze = s.QObject, We = !ze || !ze.prototype || !ze.prototype.findChild, He = p && E(function() {
return M(le({}, "a", { get: function() {
return le(this, "a", { value: 7 }).a;
} })).a != 7;
}) ? function(y, w, I) {
var T = U(de, w);
T && delete de[w], le(y, w, I), T && y !== de && le(de, w, T);
} : le, Ue = function(y) {
var w = Ee[y] = M(W.prototype);
return w._k = y, w;
}, $e = we && typeof W.iterator == "symbol" ? function(y) {
return typeof y == "symbol";
} : function(y) {
return y instanceof W;
}, Te = function(y, w, I) {
return y === de && Te(ce, w, I), F(y), w = j(w, !0), F(I), u(Ee, w) ? (I.enumerable ? (u(y, ue) && y[ue][w] && (y[ue][w] = !1), I = M(I, { enumerable: C(0, !1) })) : (u(y, ue) || le(y, ue, C(1, {})), y[ue][w] = !0), He(y, w, I)) : le(y, w, I);
}, Qe = function(y, w) {
F(y);
for (var I, T = Z(w = N(w)), X = 0, Y = T.length; Y > X; ) Te(y, I = T[X++], w[I]);
return y;
}, Ze = function(y) {
var w = Oe.call(this, y = j(y, !0));
return !(this === de && u(Ee, y) && !u(ce, y)) && (!(w || !u(this, y) || !u(Ee, y) || u(this, ue) && this[ue][y]) || w);
}, Ge = function(y, w) {
if (y = N(y), w = j(w, !0), y !== de || !u(Ee, w) || u(ce, w)) {
var I = U(y, w);
return !I || !u(Ee, w) || u(y, ue) && y[ue][w] || (I.enumerable = !0), I;
}
}, Xe = function(y) {
for (var w, I = re(N(y)), T = [], X = 0; I.length > X; ) u(Ee, w = I[X++]) || w == ue || w == b || T.push(w);
return T;
}, qe = function(y) {
for (var w, I = y === de, T = re(I ? ce : N(y)), X = [], Y = 0; T.length > Y; ) !u(Ee, w = T[Y++]) || I && !u(de, w) || X.push(Ee[w]);
return X;
};
we || (d((W = function() {
if (this instanceof W) throw TypeError("Symbol is not a constructor!");
var y = D(arguments.length > 0 ? arguments[0] : void 0), w = function(I) {
this === de && w.call(ce, I), u(this, ue) && u(this[ue], y) && (this[ue][y] = !1), He(this, y, C(1, I));
};
return p && We && He(de, y, { configurable: !0, set: w }), Ue(y);
}).prototype, "toString", function() {
return this._k;
}), g.f = Ge, K.f = Te, e(41).f = z.f = Xe, e(19).f = Ze, G.f = qe, p && !e(14) && d(de, "propertyIsEnumerable", Ze, !0), Q.f = function(y) {
return Ue(V(y));
}), f(f.G + f.W + f.F * !we, { Symbol: W });
for (var Fe = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), je = 0; Fe.length > je; ) V(Fe[je++]);
for (var Ye = O(V.store), S = 0; Ye.length > S; ) L(Ye[S++]);
f(f.S + f.F * !we, "Symbol", { for: function(y) {
return u(me, y += "") ? me[y] : me[y] = W(y);
}, keyFor: function(y) {
if (!$e(y)) throw TypeError(y + " is not a symbol!");
for (var w in me) if (me[w] === y) return w;
}, useSetter: function() {
We = !0;
}, useSimple: function() {
We = !1;
} }), f(f.S + f.F * !we, "Object", { create: function(y, w) {
return w === void 0 ? M(y) : Qe(M(y), w);
}, defineProperty: Te, defineProperties: Qe, getOwnPropertyDescriptor: Ge, getOwnPropertyNames: Xe, getOwnPropertySymbols: qe });
var m = E(function() {
G.f(1);
});
f(f.S + f.F * m, "Object", { getOwnPropertySymbols: function(y) {
return G.f(B(y));
} }), ne && f(f.S + f.F * (!we || E(function() {
var y = W();
return $([y]) != "[null]" || $({ a: y }) != "{}" || $(Object(y)) != "{}";
})), "JSON", { stringify: function(y) {
for (var w, I, T = [y], X = 1; arguments.length > X; ) T.push(arguments[X++]);
if (I = w = T[1], (R(w) || y !== void 0) && !$e(y)) return t(w) || (w = function(Y, oe) {
if (typeof I == "function" && (oe = I.call(this, Y, oe)), !$e(oe)) return oe;
}), T[1] = w, $.apply(ne, T);
} }), W.prototype[pe] || e(6)(W.prototype, pe, W.prototype.valueOf), P(W, "Symbol"), P(Math, "Math", !0), P(s.JSON, "JSON", !0);
}, function(o, n, e) {
var s = e(17)("meta"), u = e(11), p = e(5), f = e(7).f, d = 0, b = Object.isExtensible || function() {
return !0;
}, E = !e(8)(function() {
return b(Object.preventExtensions({}));
}), _ = function(D) {
f(D, s, { value: { i: "O" + ++d, w: {} } });
}, P = o.exports = { KEY: s, NEED: !1, fastKey: function(D, V) {
if (!u(D)) return typeof D == "symbol" ? D : (typeof D == "string" ? "S" : "P") + D;
if (!p(D, s)) {
if (!b(D)) return "F";
if (!V) return "E";
_(D);
}
return D[s].i;
}, getWeak: function(D, V) {
if (!p(D, s)) {
if (!b(D)) return !0;
if (!V) return !1;
_(D);
}
return D[s].w;
}, onFreeze: function(D) {
return E && P.NEED && b(D) && !p(D, s) && _(D), D;
} };
}, function(o, n, e) {
var s = e(13), u = e(32), p = e(19);
o.exports = function(f) {
var d = s(f), b = u.f;
if (b) for (var E, _ = b(f), P = p.f, D = 0; _.length > D; ) P.call(f, E = _[D++]) && d.push(E);
return d;
};
}, function(o, n, e) {
var s = e(24);
o.exports = Array.isArray || function(u) {
return s(u) == "Array";
};
}, function(o, n, e) {
var s = e(9), u = e(41).f, p = {}.toString, f = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
o.exports.f = function(d) {
return f && p.call(d) == "[object Window]" ? function(b) {
try {
return u(b);
} catch {
return f.slice();
}
}(d) : u(s(d));
};
}, function(o, n, e) {
var s = e(19), u = e(16), p = e(9), f = e(23), d = e(5), b = e(35), E = Object.getOwnPropertyDescriptor;
n.f = e(4) ? E : function(_, P) {
if (_ = p(_), P = f(P, !0), b) try {
return E(_, P);
} catch {
}
if (d(_, P)) return u(!s.f.call(_, P), _[P]);
};
}, function(o, n) {
}, function(o, n, e) {
e(31)("asyncIterator");
}, function(o, n, e) {
e(31)("observable");
}, function(o, n, e) {
n.__esModule = !0;
var s, u = e(77), p = (s = u) && s.__esModule ? s : { default: s };
n.default = p.default || function(f) {
for (var d = 1; d < arguments.length; d++) {
var b = arguments[d];
for (var E in b) Object.prototype.hasOwnProperty.call(b, E) && (f[E] = b[E]);
}
return f;
};
}, function(o, n, e) {
o.exports = { default: e(78), __esModule: !0 };
}, function(o, n, e) {
e(79), o.exports = e(1).Object.assign;
}, function(o, n, e) {
var s = e(15);
s(s.S + s.F, "Object", { assign: e(80) });
}, function(o, n, e) {
var s = e(4), u = e(13), p = e(32), f = e(19), d = e(18), b = e(40), E = Object.assign;
o.exports = !E || e(8)(function() {
var _ = {}, P = {}, D = Symbol(), V = "abcdefghijklmnopqrst";
return _[D] = 7, V.split("").forEach(function(Q) {
P[Q] = Q;
}), E({}, _)[D] != 7 || Object.keys(E({}, P)).join("") != V;
}) ? function(_, P) {
for (var D = d(_), V = arguments.length, Q = 1, L = p.f, Z = f.f; V > Q; ) for (var t, F = b(arguments[Q++]), R = L ? u(F).concat(L(F)) : u(F), B = R.length, N = 0; B > N; ) t = R[N++], s && !Z.call(F, t) || (D[t] = F[t]);
return D;
} : E;
}, function(o, n, e) {
n.__esModule = !0;
var s = p(e(82)), u = p(e(85));
function p(f) {
return f && f.__esModule ? f : { default: f };
}
n.default = function(f, d) {
if (Array.isArray(f)) return f;
if ((0, s.default)(Object(f))) return function(b, E) {
var _ = [], P = !0, D = !1, V = void 0;
try {
for (var Q, L = (0, u.default)(b); !(P = (Q = L.next()).done) && (_.push(Q.value), !E || _.length !== E); P = !0) ;
} catch (Z) {
D = !0, V = Z;
} finally {
try {
!P && L.return && L.return();
} finally {
if (D) throw V;
}
}
return _;
}(f, d);
throw new TypeError("Invalid attempt to destructure non-iterable instance");
};
}, function(o, n, e) {
o.exports = { default: e(83), __esModule: !0 };
}, function(o, n, e) {
e(29), e(20), o.exports = e(84);
}, function(o, n, e) {
var s = e(42), u = e(2)("iterator"), p = e(12);
o.exports = e(1).isIterable = function(f) {
var d = Object(f);
return d[u] !== void 0 || "@@iterator" in d || p.hasOwnProperty(s(d));
};
}, function(o, n, e) {
o.exports = { default: e(86), __esModule: !0 };
}, function(o, n, e) {
e(29), e(20), o.exports = e(87);
}, function(o, n, e) {
var s = e(10), u = e(88);
o.exports = e(1).getIterator = function(p) {
var f = u(p);
if (typeof f != "function") throw TypeError(p + " is not iterable!");
return s(f.call(p));
};
}, function(o, n, e) {
var s = e(42), u = e(2)("iterator"), p = e(12);
o.exports = e(1).getIteratorMethod = function(f) {
if (f != null) return f[u] || f["@@iterator"] || p[s(f)];
};
}, function(o, n, e) {
o.exports = { default: e(90), __esModule: !0 };
}, function(o, n, e) {
e(91), o.exports = e(1).Object.keys;
}, function(o, n, e) {
var s = e(18), u = e(13);
e(92)("keys", function() {
return function(p) {
return u(s(p));
};
});
}, function(o, n, e) {
var s = e(15), u = e(1), p = e(8);
o.exports = function(f, d) {
var b = (u.Object || {})[f] || Object[f], E = {};
E[f] = d(b), s(s.S + s.F * p(function() {
b(1);
}), "Object", E);
};
}, function(o, n, e) {
(function(s) {
var u = [["ary", 128], ["bind", 1], ["bindKey", 2], ["curry", 8], ["curryRight", 16], ["flip", 512], ["partial", 32], ["partialRight", 64], ["rearg", 256]], p = /^\s+|\s+$/g, f = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, d = /\{\n\/\* \[wrapped with (.+)\] \*/, b = /,? & /, E = /^[-+]0x[0-9a-f]+$/i, _ = /^0b[01]+$/i, P = /^\[object .+?Constructor\]$/, D = /^0o[0-7]+$/i, V = /^(?:0|[1-9]\d*)$/, Q = parseInt, L = typeof s == "object" && s && s.Object === Object && s, Z = typeof self == "object" && self && self.Object === Object && self, t = L || Z || Function("return this")();
function F(S, m, y) {
switch (y.length) {
case 0:
return S.call(m);
case 1:
return S.call(m, y[0]);
case 2:
return S.call(m, y[0], y[1]);
case 3:
return S.call(m, y[0], y[1], y[2]);
}
return S.apply(m, y);
}
function R(S, m) {
return !!(S && S.length) && function(y, w, I) {
if (w != w) return function(Y, oe, be, he) {
for (var xe = Y.length, fe = be + -1; ++fe < xe; ) if (oe(Y[fe], fe, Y)) return fe;
return -1;
}(y, B, I);
for (var T = I - 1, X = y.length; ++T < X; ) if (y[T] === w) return T;
return -1;
}(S, m, 0) > -1;
}
function B(S) {
return S != S;
}
function N(S, m) {
for (var y = S.length, w = 0; y--; ) S[y] === m && w++;
return w;
}
function j(S, m) {
for (var y = -1, w = S.length, I = 0, T = []; ++y < w; ) {
var X = S[y];
X !== m && X !== "__lodash_placeholder__" || (S[y] = "__lodash_placeholder__", T[I++] = y);
}
return T;
}
var C, M, z, g = Function.prototype, G = Object.prototype, K = t["__core-js_shared__"], O = (C = /[^.]+$/.exec(K && K.keys && K.keys.IE_PROTO || "")) ? "Symbol(src)_1." + C : "", U = g.toString, le = G.hasOwnProperty, re = G.toString, W = RegExp("^" + U.call(le).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), ne = Object.create, $ = Math.max, ue = Math.min, pe = (M = Ue(Object, "defineProperty"), (z = Ue.name) && z.length > 2 ? M : void 0);
function Oe(S) {
return Fe(S) ? ne(S) : {};
}
function me(S) {
return !(!Fe(S) || function(m) {
return !!O && O in m;
}(S)) && (function(m) {
var y = Fe(m) ? re.call(m) : "";
return y == "[object Function]" || y == "[object GeneratorFunction]";
}(S) || function(m) {
var y = !1;
if (m != null && typeof m.toString != "function") try {
y = !!(m + "");
} catch {
}
return y;
}(S) ? W : P).test(function(m) {
if (m != null) {
try {
return U.call(m);
} catch {
}
try {
return m + "";
} catch {
}
}
return "";
}(S));
}
function Ee(S, m, y, w) {
for (var I = -1, T = S.length, X = y.length, Y = -1, oe = m.length, be = $(T - X, 0), he = Array(oe + be), xe = !w; ++Y < oe; ) he[Y] = m[Y];
for (; ++I < X; ) (xe || I < T) && (he[y[I]] = S[I]);
for (; be--; ) he[Y++] = S[I++];
return he;
}
function ce(S, m, y, w) {
for (var I = -1, T = S.length, X = -1, Y = y.length, oe = -1, be = m.length, he = $(T - Y, 0), xe = Array(he + be), fe = !w; ++I < he; ) xe[I] = S[I];
for (var Se = I; ++oe < be; ) xe[Se + oe] = m[oe];
for (; ++X < Y; ) (fe || I < T) && (xe[Se + y[X]] = S[I++]);
return xe;
}
function de(S) {
return function() {
var m = arguments;
switch (m.length) {
case 0:
return new S();
case 1:
return new S(m[0]);
case 2:
return new S(m[0], m[1]);
case 3:
return new S(m[0], m[1], m[2]);
case 4:
return new S(m[0], m[1], m[2], m[3]);
case 5:
return new S(m[0], m[1], m[2], m[3], m[4]);
case 6:
return new S(m[0], m[1], m[2], m[3], m[4], m[5]);
case 7:
return new S(m[0], m[1], m[2], m[3], m[4], m[5], m[6]);
}
var y = Oe(S.prototype), w = S.apply(y, m);
return Fe(w) ? w : y;
};
}
function we(S, m, y, w, I, T, X, Y, oe, be) {
var he = 128 & m, xe = 1 & m, fe = 2 & m, Se = 24 & m, Ae = 512 & m, Be = fe ? void 0 : de(S);
return function De() {
for (var ye = arguments.length, te = Array(ye), _e = ye; _e--; ) te[_e] = arguments[_e];
if (Se) var Ce = He(De), Ne = N(te, Ce);
if (w && (te = Ee(te, w, I, Se)), T && (te = ce(te, T, X, Se)), ye -= Ne, Se && ye < be) {
var Re = j(te, Ce);
return ze(S, m, we, De.placeholder, y, te, Re, Y, oe, be - ye);
}
var Me = xe ? y : this, Le = fe ? Me[S] : S;
return ye = te.length, Y ? te = Ze(te, Y) : Ae && ye > 1 && te.reverse(), he && oe < ye && (te.length = oe), this && this !== t && this instanceof De && (Le = Be || de(Le)), Le.apply(Me, te);
};
}
function ze(S, m, y, w, I, T, X, Y, oe, be) {
var he = 8 & m;
m |= he ? 32 : 64, 4 & (m &= ~(he ? 64 : 32)) || (m &= -4);
var xe = y(S, m, I, he ? T : void 0, he ? X : void 0, he ? void 0 : T, he ? void 0 : X, Y, oe, be);
return xe.placeholder = w, Ge(xe, S, m);
}
function We(S, m, y, w, I, T, X, Y) {
var oe = 2 & m;
if (!oe && typeof S != "function") throw new TypeError("Expected a function");
var be = w ? w.length : 0;
if (be || (m &= -97, w = I = void 0), X = X === void 0 ? X : $(Ye(X), 0), Y = Y === void 0 ? Y : Ye(Y), be -= I ? I.length : 0, 64 & m) {
var he = w, xe = I;
w = I = void 0;
}
var fe = [S, m, y, w, I, he, xe, T, X, Y];
if (S = fe[0], m = fe[1], y = fe[2], w = fe[3], I = fe[4], !(Y = fe[9] = fe[9] == null ? oe ? 0 : S.length : $(fe[9] - be, 0)) && 24 & m && (m &= -25), m && m != 1) Se = m == 8 || m == 16 ? function(Ae, Be, De) {
var ye = de(Ae);
return function te() {
for (var _e = arguments.length, Ce = Array(_e), Ne = _e, Re = He(te); Ne--; ) Ce[Ne] = arguments[Ne];
var Me = _e < 3 && Ce[0] !== Re && Ce[_e - 1] !== Re ? [] : j(Ce, Re);
if ((_e -= Me.length) < De) return ze(Ae, Be, we, te.placeholder, void 0, Ce, Me, void 0, void 0, De - _e);
var Le = this && this !== t && this instanceof te ? ye : Ae;
return F(Le, this, Ce);
};
}(S, m, Y) : m != 32 && m != 33 || I.length ? we.apply(void 0, fe) : function(Ae, Be, De, ye) {
var te = 1 & Be, _e = de(Ae);
return function Ce() {
for (var Ne = -1, Re = arguments.length, Me = -1, Le = ye.length, et = Array(Le + Re), ot = this && this !== t && this instanceof Ce ? _e : Ae; ++Me < Le; ) et[Me] = ye[Me];
for (; Re--; ) et[Me++] = arguments[++Ne];
return F(ot, te ? De : this, et);
};
}(S, m, y, w);
else var Se = function(Ae, Be, De) {
var ye = 1 & Be, te = de(Ae);
return function _e() {
var Ce = this && this !== t && this instanceof _e ? te : Ae;
return Ce.apply(ye ? De : this, arguments);
};
}(S, m, y);
return Ge(Se, S, m);
}
function He(S) {
return S.placeholder;
}
function Ue(S, m) {
var y = function(w, I) {
return w == null ? void 0 : w[I];
}(S, m);
return me(y) ? y : void 0;
}
function $e(S) {
var m = S.match(d);
return m ? m[1].split(b) : [];
}
function Te(S, m) {
var y = m.length, w = y - 1;
return m[w] = (y > 1 ? "& " : "") + m[w], m = m.join(y > 2 ? ", " : " "), S.replace(f, `{
/* [wrapped with ` + m + `] */
`);
}
function Qe(S, m) {
return !!(m = m ?? 9007199254740991) && (typeof S == "number" || V.test(S)) && S > -1 && S % 1 == 0 && S < m;
}
function Ze(S, m) {
for (var y = S.length, w = ue(m.length, y), I = function(X, Y) {
var oe = -1, be = X.length;
for (Y || (Y = Array(be)); ++oe < be; ) Y[oe] = X[oe];
return Y;
}(S); w--; ) {
var T = m[w];
S[w] = Qe(T, y) ? I[T] : void 0;
}
return S;
}
var Ge = pe ? function(S, m, y) {
var w, I = m + "";
return pe(S, "toString", { configurable: !0, enumerable: !1, value: (w = Te(I, Xe($e(I), y)), function() {
return w;
}) });
} : function(S) {
return S;
};
function Xe(S, m) {
return function(y, w) {
for (var I = -1, T = y ? y.length : 0; ++I < T && w(y[I], I, y) !== !1; ) ;
}(u, function(y) {
var w = "_." + y[0];
m & y[1] && !R(S, w) && S.push(w);
}), S.sort();
}
function qe(S, m, y) {
var w = We(S, 8, void 0, void 0, void 0, void 0, void 0, m = y ? void 0 : m);
return w.placeholder = qe.placeholder, w;
}
function Fe(S) {
var m = typeof S;
return !!S && (m == "object" || m == "function");
}
function je(S) {
return S ? (S = function(m) {
if (typeof m == "number") return m;
if (function(I) {
return typeof I == "symbol" || /* @__PURE__ */ function(T) {
return !!T && typeof T == "object";
}(I) && re.call(I) == "[object Symbol]";
}(m)) return NaN;
if (Fe(m)) {
var y = typeof m.valueOf == "function" ? m.valueOf() : m;
m = Fe(y) ? y + "" : y;
}
if (typeof m != "string") return m === 0 ? m : +m;
m = m.replace(p, "");
var w = _.test(m);
return w || D.test(m) ? Q(m.slice(2), w ? 2 : 8) : E.test(m) ? NaN : +m;
}(S)) === 1 / 0 || S === -1 / 0 ? 17976931348623157e292 * (S < 0 ? -1 : 1) : S == S ? S : 0 : S === 0 ? S : 0;
}
function Ye(S) {
var m = je(S), y = m % 1;
return m == m ? y ? m - y : m : 0;
}
qe.placeholder = {}, o.exports = qe;
}).call(this, e(43));
}, function(o, n, e) {
function s(ce) {
return ce && ce.__esModule ? ce.default : ce;
}
n.__esModule = !0;
var u = e(95);
n.threezerotwofour = s(u);
var p = e(96);
n.apathy = s(p);
var f = e(97);
n.ashes = s(f);
var d = e(98);
n.atelierDune = s(d);
var b = e(99);
n.atelierForest = s(b);
var E = e(100);
n.atelierHeath = s(E);
var _ = e(101);
n.atelierLakeside = s(_);
var P = e(102);
n.atelierSeaside = s(P);
var D = e(103);
n.bespin = s(D);
var V = e(104);
n.brewer = s(V);
var Q = e(105);
n.bright = s(Q);
var L = e(106);
n.chalk = s(L);
var Z = e(107);
n.codeschool = s(Z);
var t = e(108);
n.colors = s(t);
var F = e(109);
n.default = s(F);
var R = e(110);
n.eighties = s(R);
var B = e(111);
n.embers = s(B);
var N = e(112);
n.flat = s(N);
var j = e(113);
n.google = s(j);
var C = e(114);
n.grayscale = s(C);
var M = e(115);
n.greenscreen = s(M);
var z = e(116);
n.harmonic = s(z);
var g = e(117);
n.hopscotch = s(g);
var G = e(118);
n.isotope = s(G);
var K = e(119);
n.marrakesh = s(K);
var O = e(120);
n.mocha = s(O);
var U = e(121);
n.monokai = s(U);
var le = e(122);
n.ocean = s(le);
var re = e(123);
n.paraiso = s(re);
var W = e(124);
n.pop = s(W);
var ne = e(125);
n.railscasts = s(ne);
var $ = e(126);
n.shapeshifter = s($);
var ue = e(127);
n.solarized = s(ue);
var pe = e(128);
n.summerfruit = s(pe);
var Oe = e(129);
n.tomorrow = s(Oe);
var me = e(130);
n.tube = s(me);
var Ee = e(131);
n.twilight = s(Ee);
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "threezerotwofour", author: "jan t. sott (http://github.com/idleberg)", base00: "#090300", base01: "#3a3432", base02: "#4a4543", base03: "#5c5855", base04: "#807d7c", base05: "#a5a2a2", base06: "#d6d5d4", base07: "#f7f7f7", base08: "#db2d20", base09: "#e8bbd0", base0A: "#fded02", base0B: "#01a252", base0C: "#b5e4f4", base0D: "#01a0e4", base0E: "#a16a94", base0F: "#cdab53" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "apathy", author: "jannik siebert (https://github.com/janniks)", base00: "#031A16", base01: "#0B342D", base02: "#184E45", base03: "#2B685E", base04: "#5F9C92", base05: "#81B5AC", base06: "#A7CEC8", base07: "#D2E7E4", base08: "#3E9688", base09: "#3E7996", base0A: "#3E4C96", base0B: "#883E96", base0C: "#963E4C", base0D: "#96883E", base0E: "#4C963E", base0F: "#3E965B" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "ashes", author: "jannik siebert (https://github.com/janniks)", base00: "#1C2023", base01: "#393F45", base02: "#565E65", base03: "#747C84", base04: "#ADB3BA", base05: "#C7CCD1", base06: "#DFE2E5", base07: "#F3F4F5", base08: "#C7AE95", base09: "#C7C795", base0A: "#AEC795", base0B: "#95C7AE", base0C: "#95AEC7", base0D: "#AE95C7", base0E: "#C795AE", base0F: "#C79595" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "atelier dune", author: "bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)", base00: "#20201d", base01: "#292824", base02: "#6e6b5e", base03: "#7d7a68", base04: "#999580", base05: "#a6a28c", base06: "#e8e4cf", base07: "#fefbec", base08: "#d73737", base09: "#b65611", base0A: "#cfb017", base0B: "#60ac39", base0C: "#1fad83", base0D: "#6684e1", base0E: "#b854d4", base0F: "#d43552" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "atelier forest", author: "bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)", base00: "#1b1918", base01: "#2c2421", base02: "#68615e", base03: "#766e6b", base04: "#9c9491", base05: "#a8a19f", base06: "#e6e2e0", base07: "#f1efee", base08: "#f22c40", base09: "#df5320", base0A: "#d5911a", base0B: "#5ab738", base0C: "#00ad9c", base0D: "#407ee7", base0E: "#6666ea", base0F: "#c33ff3" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "atelier heath", author: "bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)", base00: "#1b181b", base01: "#292329", base02: "#695d69", base03: "#776977", base04: "#9e8f9e", base05: "#ab9bab", base06: "#d8cad8", base07: "#f7f3f7", base08: "#ca402b", base09: "#a65926", base0A: "#bb8a35", base0B: "#379a37", base0C: "#159393", base0D: "#516aec", base0E: "#7b59c0", base0F: "#cc33cc" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "atelier lakeside", author: "bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)", base00: "#161b1d", base01: "#1f292e", base02: "#516d7b", base03: "#5a7b8c", base04: "#7195a8", base05: "#7ea2b4", base06: "#c1e4f6", base07: "#ebf8ff", base08: "#d22d72", base09: "#935c25", base0A: "#8a8a0f", base0B: "#568c3b", base0C: "#2d8f6f", base0D: "#257fad", base0E: "#5d5db1", base0F: "#b72dd2" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "atelier seaside", author: "bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)", base00: "#131513", base01: "#242924", base02: "#5e6e5e", base03: "#687d68", base04: "#809980", base05: "#8ca68c", base06: "#cfe8cf", base07: "#f0fff0", base08: "#e6193c", base09: "#87711d", base0A: "#c3c322", base0B: "#29a329", base0C: "#1999b3", base0D: "#3d62f5", base0E: "#ad2bee", base0F: "#e619c3" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "bespin", author: "jan t. sott", base00: "#28211c", base01: "#36312e", base02: "#5e5d5c", base03: "#666666", base04: "#797977", base05: "#8a8986", base06: "#9d9b97", base07: "#baae9e", base08: "#cf6a4c", base09: "#cf7d34", base0A: "#f9ee98", base0B: "#54be0d", base0C: "#afc4db", base0D: "#5ea6ea", base0E: "#9b859d", base0F: "#937121" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "brewer", author: "timothée poisot (http://github.com/tpoisot)", base00: "#0c0d0e", base01: "#2e2f30", base02: "#515253", base03: "#737475", base04: "#959697", base05: "#b7b8b9", base06: "#dadbdc", base07: "#fcfdfe", base08: "#e31a1c", base09: "#e6550d", base0A: "#dca060", base0B: "#31a354", base0C: "#80b1d3", base0D: "#3182bd", base0E: "#756bb1", base0F: "#b15928" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "bright", author: "chris kempson (http://chriskempson.com)", base00: "#000000", base01: "#303030", base02: "#505050", base03: "#b0b0b0", base04: "#d0d0d0", base05: "#e0e0e0", base06: "#f5f5f5", base07: "#ffffff", base08: "#fb0120", base09: "#fc6d24", base0A: "#fda331", base0B: "#a1c659", base0C: "#76c7b7", base0D: "#6fb3d2", base0E: "#d381c3", base0F: "#be643c" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "chalk", author: "chris kempson (http://chriskempson.com)", base00: "#151515", base01: "#202020", base02: "#303030", base03: "#505050", base04: "#b0b0b0", base05: "#d0d0d0", base06: "#e0e0e0", base07: "#f5f5f5", base08: "#fb9fb1", base09: "#eda987", base0A: "#ddb26f", base0B: "#acc267", base0C: "#12cfc0", base0D: "#6fc2ef", base0E: "#e1a3ee", base0F: "#deaf8f" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "codeschool", author: "brettof86", base00: "#232c31", base01: "#1c3657", base02: "#2a343a", base03: "#3f4944", base04: "#84898c", base05: "#9ea7a6", base06: "#a7cfa3", base07: "#b5d8f6", base08: "#2a5491", base09: "#43820d", base0A: "#a03b1e", base0B: "#237986", base0C: "#b02f30", base0D: "#484d79", base0E: "#c59820", base0F: "#c98344" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "colors", author: "mrmrs (http://clrs.cc)", base00: "#111111", base01: "#333333", base02: "#555555", base03: "#777777", base04: "#999999", base05: "#bbbbbb", base06: "#dddddd", base07: "#ffffff", base08: "#ff4136", base09: "#ff851b", base0A: "#ffdc00", base0B: "#2ecc40", base0C: "#7fdbff", base0D: "#0074d9", base0E: "#b10dc9", base0F: "#85144b" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "default", author: "chris kempson (http://chriskempson.com)", base00: "#181818", base01: "#282828", base02: "#383838", base03: "#585858", base04: "#b8b8b8", base05: "#d8d8d8", base06: "#e8e8e8", base07: "#f8f8f8", base08: "#ab4642", base09: "#dc9656", base0A: "#f7ca88", base0B: "#a1b56c", base0C: "#86c1b9", base0D: "#7cafc2", base0E: "#ba8baf", base0F: "#a16946" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "eighties", author: "chris kempson (http://chriskempson.com)", base00: "#2d2d2d", base01: "#393939", base02: "#515151", base03: "#747369", base04: "#a09f93", base05: "#d3d0c8", base06: "#e8e6df", base07: "#f2f0ec", base08: "#f2777a", base09: "#f99157", base0A: "#ffcc66", base0B: "#99cc99", base0C: "#66cccc", base0D: "#6699cc", base0E: "#cc99cc", base0F: "#d27b53" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "embers", author: "jannik siebert (https://github.com/janniks)", base00: "#16130F", base01: "#2C2620", base02: "#433B32", base03: "#5A5047", base04: "#8A8075", base05: "#A39A90", base06: "#BEB6AE", base07: "#DBD6D1", base08: "#826D57", base09: "#828257", base0A: "#6D8257", base0B: "#57826D", base0C: "#576D82", base0D: "#6D5782", base0E: "#82576D", base0F: "#825757" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "flat", author: "chris kempson (http://chriskempson.com)", base00: "#2C3E50", base01: "#34495E", base02: "#7F8C8D", base03: "#95A5A6", base04: "#BDC3C7", base05: "#e0e0e0", base06: "#f5f5f5", base07: "#ECF0F1", base08: "#E74C3C", base09: "#E67E22", base0A: "#F1C40F", base0B: "#2ECC71", base0C: "#1ABC9C", base0D: "#3498DB", base0E: "#9B59B6", base0F: "#be643c" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "google", author: "seth wright (http://sethawright.com)", base00: "#1d1f21", base01: "#282a2e", base02: "#373b41", base03: "#969896", base04: "#b4b7b4", base05: "#c5c8c6", base06: "#e0e0e0", base07: "#ffffff", base08: "#CC342B", base09: "#F96A38", base0A: "#FBA922", base0B: "#198844", base0C: "#3971ED", base0D: "#3971ED", base0E: "#A36AC7", base0F: "#3971ED" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "grayscale", author: "alexandre gavioli (https://github.com/alexx2/)", base00: "#101010", base01: "#252525", base02: "#464646", base03: "#525252", base04: "#ababab", base05: "#b9b9b9", base06: "#e3e3e3", base07: "#f7f7f7", base08: "#7c7c7c", base09: "#999999", base0A: "#a0a0a0", base0B: "#8e8e8e", base0C: "#868686", base0D: "#686868", base0E: "#747474", base0F: "#5e5e5e" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "green screen", author: "chris kempson (http://chriskempson.com)", base00: "#001100", base01: "#003300", base02: "#005500", base03: "#007700", base04: "#009900", base05: "#00bb00", base06: "#00dd00", base07: "#00ff00", base08: "#007700", base09: "#009900", base0A: "#007700", base0B: "#00bb00", base0C: "#005500", base0D: "#009900", base0E: "#00bb00", base0F: "#005500" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "harmonic16", author: "jannik siebert (https://github.com/janniks)", base00: "#0b1c2c", base01: "#223b54", base02: "#405c79", base03: "#627e99", base04: "#aabcce", base05: "#cbd6e2", base06: "#e5ebf1", base07: "#f7f9fb", base08: "#bf8b56", base09: "#bfbf56", base0A: "#8bbf56", base0B: "#56bf8b", base0C: "#568bbf", base0D: "#8b56bf", base0E: "#bf568b", base0F: "#bf5656" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "hopscotch", author: "jan t. sott", base00: "#322931", base01: "#433b42", base02: "#5c545b", base03: "#797379", base04: "#989498", base05: "#b9b5b8", base06: "#d5d3d5", base07: "#ffffff", base08: "#dd464c", base09: "#fd8b19", base0A: "#fdcc59", base0B: "#8fc13e", base0C: "#149b93", base0D: "#1290bf", base0E: "#c85e7c", base0F: "#b33508" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "isotope", author: "jan t. sott", base00: "#000000", base01: "#404040", base02: "#606060", base03: "#808080", base04: "#c0c0c0", base05: "#d0d0d0", base06: "#e0e0e0", base07: "#ffffff", base08: "#ff0000", base09: "#ff9900", base0A: "#ff0099", base0B: "#33ff00", base0C: "#00ffff", base0D: "#0066ff", base0E: "#cc00ff", base0F: "#3300ff" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "marrakesh", author: "alexandre gavioli (http://github.com/alexx2/)", base00: "#201602", base01: "#302e00", base02: "#5f5b17", base03: "#6c6823", base04: "#86813b", base05: "#948e48", base06: "#ccc37a", base07: "#faf0a5", base08: "#c35359", base09: "#b36144", base0A: "#a88339", base0B: "#18974e", base0C: "#75a738", base0D: "#477ca1", base0E: "#8868b3", base0F: "#b3588e" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "mocha", author: "chris kempson (http://chriskempson.com)", base00: "#3B3228", base01: "#534636", base02: "#645240", base03: "#7e705a", base04: "#b8afad", base05: "#d0c8c6", base06: "#e9e1dd", base07: "#f5eeeb", base08: "#cb6077", base09: "#d28b71", base0A: "#f4bc87", base0B: "#beb55b", base0C: "#7bbda4", base0D: "#8ab3b5", base0E: "#a89bb9", base0F: "#bb9584" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "monokai", author: "wimer hazenberg (http://www.monokai.nl)", base00: "#272822", base01: "#383830", base02: "#49483e", base03: "#75715e", base04: "#a59f85", base05: "#f8f8f2", base06: "#f5f4f1", base07: "#f9f8f5", base08: "#f92672", base09: "#fd971f", base0A: "#f4bf75", base0B: "#a6e22e", base0C: "#a1efe4", base0D: "#66d9ef", base0E: "#ae81ff", base0F: "#cc6633" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "ocean", author: "chris kempson (http://chriskempson.com)", base00: "#2b303b", base01: "#343d46", base02: "#4f5b66", base03: "#65737e", base04: "#a7adba", base05: "#c0c5ce", base06: "#dfe1e8", base07: "#eff1f5", base08: "#bf616a", base09: "#d08770", base0A: "#ebcb8b", base0B: "#a3be8c", base0C: "#96b5b4", base0D: "#8fa1b3", base0E: "#b48ead", base0F: "#ab7967" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "paraiso", author: "jan t. sott", base00: "#2f1e2e", base01: "#41323f", base02: "#4f424c", base03: "#776e71", base04: "#8d8687", base05: "#a39e9b", base06: "#b9b6b0", base07: "#e7e9db", base08: "#ef6155", base09: "#f99b15", base0A: "#fec418", base0B: "#48b685", base0C: "#5bc4bf", base0D: "#06b6ef", base0E: "#815ba4", base0F: "#e96ba8" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "pop", author: "chris kempson (http://chriskempson.com)", base00: "#000000", base01: "#202020", base02: "#303030", base03: "#505050", base04: "#b0b0b0", base05: "#d0d0d0", base06: "#e0e0e0", base07: "#ffffff", base08: "#eb008a", base09: "#f29333", base0A: "#f8ca12", base0B: "#37b349", base0C: "#00aabb", base0D: "#0e5a94", base0E: "#b31e8d", base0F: "#7a2d00" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "railscasts", author: "ryan bates (http://railscasts.com)", base00: "#2b2b2b", base01: "#272935", base02: "#3a4055", base03: "#5a647e", base04: "#d4cfc9", base05: "#e6e1dc", base06: "#f4f1ed", base07: "#f9f7f3", base08: "#da4939", base09: "#cc7833", base0A: "#ffc66d", base0B: "#a5c261", base0C: "#519f50", base0D: "#6d9cbe", base0E: "#b6b3eb", base0F: "#bc9458" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "shapeshifter", author: "tyler benziger (http://tybenz.com)", base00: "#000000", base01: "#040404", base02: "#102015", base03: "#343434", base04: "#555555", base05: "#ababab", base06: "#e0e0e0", base07: "#f9f9f9", base08: "#e92f2f", base09: "#e09448", base0A: "#dddd13", base0B: "#0ed839", base0C: "#23edda", base0D: "#3b48e3", base0E: "#f996e2", base0F: "#69542d" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "solarized", author: "ethan schoonover (http://ethanschoonover.com/solarized)", base00: "#002b36", base01: "#073642", base02: "#586e75", base03: "#657b83", base04: "#839496", base05: "#93a1a1", base06: "#eee8d5", base07: "#fdf6e3", base08: "#dc322f", base09: "#cb4b16", base0A: "#b58900", base0B: "#859900", base0C: "#2aa198", base0D: "#268bd2", base0E: "#6c71c4", base0F: "#d33682" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "summerfruit", author: "christopher corley (http://cscorley.github.io/)", base00: "#151515", base01: "#202020", base02: "#303030", base03: "#505050", base04: "#B0B0B0", base05: "#D0D0D0", base06: "#E0E0E0", base07: "#FFFFFF", base08: "#FF0086", base09: "#FD8900", base0A: "#ABA800", base0B: "#00C918", base0C: "#1faaaa", base0D: "#3777E6", base0E: "#AD00A1", base0F: "#cc6633" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "tomorrow", author: "chris kempson (http://chriskempson.com)", base00: "#1d1f21", base01: "#282a2e", base02: "#373b41", base03: "#969896", base04: "#b4b7b4", base05: "#c5c8c6", base06: "#e0e0e0", base07: "#ffffff", base08: "#cc6666", base09: "#de935f", base0A: "#f0c674", base0B: "#b5bd68", base0C: "#8abeb7", base0D: "#81a2be", base0E: "#b294bb", base0F: "#a3685a" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "london tube", author: "jan t. sott", base00: "#231f20", base01: "#1c3f95", base02: "#5a5758", base03: "#737171", base04: "#959ca1", base05: "#d9d8d8", base06: "#e7e7e8", base07: "#ffffff", base08: "#ee2e24", base09: "#f386a1", base0A: "#ffd204", base0B: "#00853e", base0C: "#85cebc", base0D: "#009ddc", base0E: "#98005d", base0F: "#b06110" }, o.exports = n.default;
}, function(o, n, e) {
n.__esModule = !0, n.default = { scheme: "twilight", author: "david hart (http://hart-dev.com)", base00: "#1e1e1e", base01: "#323537", base02: "#464b50", base03: "#5f5a60", base04: "#838184", base05: "#a7a7a7", base06: "#c3c3c3", base07: "#ffffff", base08: "#cf6a4c", base09: "#cda869", base0A: "#f9ee98", base0B: "#8f9d6a", base0C: "#afc4db", base0D: "#7587a6", base0E: "#9b859d", base0F: "#9b703f" }, o.exports = n.default;
}, function(o, n, e) {
var s = e(33);
function u(p) {
var f = Math.round(s(p, 0, 255)).toString(16);
return f.length == 1 ? "0" + f : f;
}
o.exports = function(p) {
var f = p.length === 4 ? u(255 * p[3]) : "";
return "#" + u(p[0]) + u(p[1]) + u(p[2]) + f;
};
}, function(o, n, e) {
var s = e(134), u = e(135), p = e(136), f = e(137), d = { "#": u, hsl: function(E) {
var _ = s(E), P = f(_);
return _.length === 4 && P.push(_[3]), P;
}, rgb: p };
function b(E) {
for (var _ in d) if (E.indexOf(_) === 0) return d[_](E);
}
b.rgb = p, b.hsl = s, b.hex = u, o.exports = b;
}, function(o, n, e) {
var s = e(44), u = e(33);
function p(f, d) {
switch (f = parseFloat(f), d) {
case 0:
return u(f, 0, 360);
case 1:
case 2:
return u(f, 0, 100);
case 3:
return u(f, 0, 1);
}
}
o.exports = function(f) {
return s(f).map(p);
};
}, function(o, n) {
o.exports = function(e) {
e.length !== 4 && e.length !== 5 || (e = function(p) {
for (var f = "#", d = 1; d < p.length; d++) {
var b = p.charAt(d);
f += b + b;
}
return f;
}(e));
var s = [parseInt(e.substring(1, 3), 16), parseInt(e.substring(3, 5), 16), parseInt(e.substring(5, 7), 16)];
if (e.length === 9) {
var u = parseFloat((parseInt(e.substring(7, 9), 16) / 255).toFixed(2));
s.push(u);
}
return s;
};
}, function(o, n, e) {
var s = e(44), u = e(33);
function p(f, d) {
return d < 3 ? f.indexOf("%") != -1 ? Math.round(255 * u(parseInt(f, 10), 0, 100) / 100) : u(parseInt(f, 10), 0, 255) : u(parseFloat(f), 0, 1);
}
o.exports = function(f) {
return s(f).map(p);
};
}, function(o, n) {
o.exports = function(e) {
var s, u, p, f, d, b = e[0] / 360, E = e[1] / 100, _ = e[2] / 100;
if (E == 0) return [d = 255 * _, d, d];
s = 2 * _ - (u = _ < 0.5 ? _ * (1 + E) : _ + E - _ * E), f = [0, 0, 0];
for (var P = 0; P < 3; P++) (p = b + 1 / 3 * -(P - 1)) < 0 && p++, p > 1 && p--, d = 6 * p < 1 ? s + 6 * (u - s) * p : 2 * p < 1 ? u : 3 * p < 2 ? s + (u - s) * (2 / 3 - p) * 6 : s, f[P] = 255 * d;
return f;
};
}, function(o, n, e) {
(function(s) {
var u = typeof s == "object" && s && s.Object === Object && s, p = typeof self == "object" && self && self.Object === Object && self, f = u || p || Function("return this")();
function d(j, C, M) {
switch (M.length) {
case 0:
return j.call(C);
case 1:
return j.call(C, M[0]);
case 2:
return j.call(C, M[0], M[1]);
case 3:
return j.call(C, M[0], M[1], M[2]);
}
return j.apply(C, M);
}
function b(j, C) {
for (var M = -1, z = C.length, g = j.length; ++M < z; ) j[g + M] = C[M];
return j;
}
var E = Object.prototype, _ = E.hasOwnProperty, P = E.toString, D = f.Symbol, V = E.propertyIsEnumerable, Q = D ? D.isConcatSpreadable : void 0, L = Math.max;
function Z(j) {
return t(j) || function(C) {
return function(M) {
return /* @__PURE__ */ function(z) {
return !!z && typeof z == "object";
}(M) && function(z) {
return z != null && function(g) {
return typeof g == "number" && g > -1 && g % 1 == 0 && g <= 9007199254740991;
}(z.length) && !function(g) {
var G = function(K) {
var O = typeof K;
return !!K && (O == "object" || O == "function");
}(g) ? P.call(g) : "";
return G == "[object Function]" || G == "[object GeneratorFunction]";
}(z);
}(M);
}(C) && _.call(C, "callee") && (!V.call(C, "callee") || P.call(C) == "[object Arguments]");
}(j) || !!(Q && j && j[Q]);
}
var t = Array.isArray, F, R, B, N = (R = function(j) {
var C = (j = function(g, G, K, O, U) {
var le = -1, re = g.length;
for (K || (K = Z), U || (U = []); ++le < re; ) {
var W = g[le];
K(W) ? b(U, W) : U[U.length] = W;
}
return U;
}(j)).length, M = C;
for (F; M--; ) if (typeof j[M] != "function") throw new TypeError("Expected a function");
return function() {
for (var z = 0, g = C ? j[z].apply(this, arguments) : arguments[0]; ++z < C; ) g = j[z].call(this, g);
return g;
};
}, B = L(B === void 0 ? R.length - 1 : B, 0), function() {
for (var j = arguments, C = -1, M = L(j.length - B, 0), z = Array(M); ++C < M; ) z[C] = j[B + C];
C = -1;
for (var g = Array(B + 1); ++C < B; ) g[C] = j[C];
return g[B] = z, d(R, this, g);
});
o.exports = N;
}).call(this, e(43));
}, function(o, n, e) {
Object.defineProperty(n, "__esModule", { value: !0 }), n.yuv2rgb = function(s) {
var u, p, f, d = s[0], b = s[1], E = s[2];
return u = 1 * d + 0 * b + 1.13983 * E, p = 1 * d + -0.39465 * b + -0.5806 * E, f = 1 * d + 2.02311 * b + 0 * E, u = Math.min(Math.max(0, u), 1), p = Math.min(Math.max(0, p), 1), f = Math.min(Math.max(0, f), 1), [255 * u, 255 * p, 255 * f];
}, n.rgb2yuv = function(s) {
var u = s[0] / 255, p = s[1] / 255, f = s[2] / 255;
return [0.299 * u + 0.587 * p + 0.114 * f, -0.14713 * u + -0.28886 * p + 0.436 * f, 0.615 * u + -0.51499 * p + -0.10001 * f];
};
}, function(o, n, e) {
function s(f, d, b) {
return d in f ? Object.defineProperty(f, d, { value: b, enumerable: !0, configurable: !0, writable: !0 }) : f[d] = b, f;
}
var u = e(141), p = function() {
function f() {
s(this, "_callbacks", void 0), s(this, "_isDispatching", void 0), s(this, "_isHandled", void 0), s(this, "_isPending", void 0), s(this, "_lastID", void 0), s(this, "_pendingPayload", void 0), this._callbacks = {}, this._isDispatching = !1, this._isHandled = {}, this._isPending = {}, this._lastID = 1;
}
var d = f.prototype;
return d.register = function(b) {
var E = "ID_" + this._lastID++;
return this._callbacks[E] = b, E;
}, d.unregister = function(b) {
this._callbacks[b] || u(!1), delete this._callbacks[b];
}, d.waitFor = function(b) {
this._isDispatching || u(!1);
for (var E = 0; E < b.length; E++) {
var _ = b[E];
this._isPending[_] ? this._isHandled[_] || u(!1) : (this._callbacks[_] || u(!1), this._invokeCallback(_));
}
}, d.dispatch = function(b) {
this._isDispatching && u(!1), this._startDispatching(b);
try {
for (var E in this._callbacks) this._isPending[E] || this._invokeCallback(E);
} finally {
this._stopDispatching();
}
}, d.isDispatching = function() {
return this._isDispatching;
}, d._invokeCallback = function(b) {
this._isPending[b] = !0, this._callbacks[b](this._pendingPayload), this._isHandled[b] = !0;
}, d._startDispatching = function(b) {
for (var E in this._callbacks) this._isPending[E] = !1, this._isHandled[E] = !1;
this._pendingPayload = b, this._isDispatching = !0;
}, d._stopDispatching = function() {
delete this._pendingPayload, this._isDispatching = !1;
}, f;
}();
o.exports = p;
}, function(o, n, e) {
o.exports = function(s, u) {
for (var p = arguments.length, f = new Array(p > 2 ? p - 2 : 0), d = 2; d < p; d++) f[d - 2] = arguments[d];
if (!s) {
var b;
if (u === void 0) b = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
else {
var E = 0;
(b = new Error(u.replace(/%s/g, function() {
return String(f[E++]);
}))).name = "Invariant Violation";
}
throw b.framesToPop = 1, b;
}
};
}, function(o, n, e) {
function s(c, l, a) {
return l in c ? Object.defineProperty(c, l, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : c[l] = a, c;
}
function u(c, l) {
var a = Object.keys(c);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(c);
l && (r = r.filter(function(i) {
return Object.getOwnPropertyDescriptor(c, i).enumerable;
})), a.push.apply(a, r);
}
return a;
}
function p(c) {
for (var l = 1; l < arguments.length; l++) {
var a = arguments[l] != null ? arguments[l] : {};
l % 2 ? u(Object(a), !0).forEach(function(r) {
s(c, r, a[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(a)) : u(Object(a)).forEach(function(r) {
Object.defineProperty(c, r, Object.getOwnPropertyDescriptor(a, r));
});
}
return c;
}
function f(c, l) {
if (!(c instanceof l)) throw new TypeError("Cannot call a class as a function");
}
function d(c, l) {
for (var a = 0; a < l.length; a++) {
var r = l[a];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(c, r.key, r);
}
}
function b(c, l, a) {
return l && d(c.prototype, l), a && d(c, a), c;
}
function E(c, l) {
return (E = Object.setPrototypeOf || function(a, r) {
return a.__proto__ = r, a;
})(c, l);
}
function _(c, l) {
if (typeof l != "function" && l !== null) throw new TypeError("Super expression must either be null or a function");
c.prototype = Object.create(l && l.prototype, { constructor: { value: c, writable: !0, configurable: !0 } }), l && E(c, l);
}
function P(c) {
return (P = Object.setPrototypeOf ? Object.getPrototypeOf : function(l) {
return l.__proto__ || Object.getPrototypeOf(l);
})(c);
}
function D(c) {
return (D = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(l) {
return typeof l;
} : function(l) {
return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l;
})(c);
}
function V(c) {
if (c === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return c;
}
function Q(c, l) {
return !l || D(l) !== "object" && typeof l != "function" ? V(c) : l;
}
function L(c) {
var l = function() {
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
if (typeof Proxy == "function") return !0;
try {
return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
})), !0;
} catch {
return !1;
}
}();
return function() {
var a, r = P(c);
if (l) {
var i = P(this).constructor;
a = Reflect.construct(r, arguments, i);
} else a = r.apply(this, arguments);
return Q(this, a);
};
}
e.r(n);
var Z = e(0), t = e.n(Z);
function F() {
var c = this.constructor.getDerivedStateFromProps(this.props, this.state);
c != null && this.setState(c);
}
function R(c) {
this.setState((function(l) {
var a = this.constructor.getDerivedStateFromProps(c, l);
return a ?? null;
}).bind(this));
}
function B(c, l) {
try {
var a = this.props, r = this.state;
this.props = c, this.state = l, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(a, r);
} finally {
this.props = a, this.state = r;
}
}
function N(c) {
var l = c.prototype;
if (!l || !l.isReactComponent) throw new Error("Can only polyfill class components");
if (typeof c.getDerivedStateFromProps != "function" && typeof l.getSnapshotBeforeUpdate != "function") return c;
var a = null, r = null, i = null;
if (typeof l.componentWillMount == "function" ? a = "componentWillMount" : typeof l.UNSAFE_componentWillMount == "function" && (a = "UNSAFE_componentWillMount"), typeof l.componentWillReceiveProps == "function" ? r = "componentWillReceiveProps" : typeof l.UNSAFE_componentWillReceiveProps == "function" && (r = "UNSAFE_componentWillReceiveProps"), typeof l.componentWillUpdate == "function" ? i = "componentWillUpdate" : typeof l.UNSAFE_componentWillUpdate == "function" && (i = "UNSAFE_componentWillUpdate"), a !== null || r !== null || i !== null) {
var v = c.displayName || c.name, k = typeof c.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
` + v + " uses " + k + " but also contains the following legacy lifecycles:" + (a !== null ? `
` + a : "") + (r !== null ? `
` + r : "") + (i !== null ? `
` + i : "") + `
The above lifecycles should be removed. Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks`);
}
if (typeof c.getDerivedStateFromProps == "function" && (l.componentWillMount = F, l.componentWillReceiveProps = R), typeof l.getSnapshotBeforeUpdate == "function") {
if (typeof l.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");
l.componentWillUpdate = B;
var x = l.componentDidUpdate;
l.componentDidUpdate = function(h, A, q) {
var ee = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : q;
x.call(this, h, A, ee);
};
}
return c;
}
function j(c, l) {
if (c == null) return {};
var a, r, i = function(k, x) {
if (k == null) return {};
var h, A, q = {}, ee = Object.keys(k);
for (A = 0; A < ee.length; A++) h = ee[A], x.indexOf(h) >= 0 || (q[h] = k[h]);
return q;
}(c, l);
if (Object.getOwnPropertySymbols) {
var v = Object.getOwnPropertySymbols(c);
for (r = 0; r < v.length; r++) a = v[r], l.indexOf(a) >= 0 || Object.prototype.propertyIsEnumerable.call(c, a) && (i[a] = c[a]);
}
return i;
}
function C(c) {
var l = function(a) {
return {}.toString.call(a).match(/\s([a-zA-Z]+)/)[1].toLowerCase();
}(c);
return l === "number" && (l = isNaN(c) ? "nan" : (0 | c) != c ? "float" : "integer"), l;
}
F.__suppressDeprecationWarning = !0, R.__suppressDeprecationWarning = !0, B.__suppressDeprecationWarning = !0;
var M = { scheme: "rjv-default", author: "mac gainor", base00: "rgba(0, 0, 0, 0)", base01: "rgb(245, 245, 245)", base02: "rgb(235, 235, 235)", base03: "#93a1a1", base04: "rgba(0, 0, 0, 0.3)", base05: "#586e75", base06: "#073642", base07: "#002b36", base08: "#d33682", base09: "#cb4b16", base0A: "#dc322f", base0B: "#859900", base0C: "#6c71c4", base0D: "#586e75", base0E: "#2aa198", base0F: "#268bd2" }, z = { scheme: "rjv-grey", author: "mac gainor", base00: "rgba(1, 1, 1, 0)", base01: "rgba(1, 1, 1, 0.1)", base02: "rgba(0, 0, 0, 0.2)", base03: "rgba(1, 1, 1, 0.3)", base04: "rgba(0, 0, 0, 0.4)", base05: "rgba(1, 1, 1, 0.5)", base06: "rgba(1, 1, 1, 0.6)", base07: "rgba(1, 1, 1, 0.7)", base08: "rgba(1, 1, 1, 0.8)", base09: "rgba(1, 1, 1, 0.8)", base0A: "rgba(1, 1, 1, 0.8)", base0B: "rgba(1, 1, 1, 0.8)", base0C: "rgba(1, 1, 1, 0.8)", base0D: "rgba(1, 1, 1, 0.8)", base0E: "rgba(1, 1, 1, 0.8)", base0F: "rgba(1, 1, 1, 0.8)" }, g = { white: "#fff", black: "#000", transparent: "rgba(1, 1, 1, 0)", globalFontFamily: "monospace", globalCursor: "default", indentBlockWidth: "5px", braceFontWeight: "bold", braceCursor: "pointer", ellipsisFontSize: "18px", ellipsisLineHeight: "10px", ellipsisCursor: "pointer", keyMargin: "0px 5px", keyLetterSpacing: "0.5px", keyFontStyle: "none", keyBorderRadius: "3px", keyColonWeight: "bold", keyVerticalAlign: "top", keyOpacity: "0.85", keyOpacityHover: "1", keyValPaddingTop: "3px", keyValPaddingBottom: "3px", keyValPaddingRight: "5px", keyValBorderLeft: "1px solid", keyValBorderHover: "2px solid", keyValPaddingHover: "3px 5px 3px 4px", pushedContentMarginLeft: "6px", variableValuePaddingRight: "6px", nullFontSize: "11px", nullFontWeight: "bold", nullPadding: "1px 2px", nullBorderRadius: "3px", nanFontSize: "11px", nanFontWeight: "bold", nanPadding: "1px 2px", nanBorderRadius: "3px", undefinedFontSize: "11px", undefinedFontWeight: "bold", undefinedPadding: "1px 2px", undefinedBorderRadius: "3px", dataTypeFontSize: "11px", dataTypeMarginRight: "4px", datatypeOpacity: "0.8", objectSizeBorderRadius: "3px", objectSizeFontStyle: "italic", objectSizeMargin: "0px 6px 0px 0px", clipboardCursor: "pointer", clipboardCheckMarginLeft: "-12px", metaDataPadding: "0px 0px 0px 10px", arrayGroupMetaPadding: "0px 0px 0px 4px", iconContainerWidth: "17px", tooltipPadding: "4px", editInputMinWidth: "130px", editInputBorderRadius: "2px", editInputPadding: "5px", editInputMarginRight: "4px", editInputFontFamily: "monospace", iconCursor: "pointer", iconFontSize: "15px", iconPaddingRight: "1px", dateValueMarginLeft: "2px", iconMarginRight: "3px", detectedRowPaddingTop: "3px", addKeyCoverBackground: "rgba(255, 255, 255, 0.3)", addKeyCoverPosition: "absolute", addKeyCoverPositionPx: "0px", addKeyModalWidth: "200px", addKeyModalMargin: "auto", addKeyModalPadding: "10px", addKeyModalRadius: "3px" }, G = e(45), K = function(c) {
var l = function(a) {
return { backgroundColor: a.base00, ellipsisColor: a.base09, braceColor: a.base07, expandedIcon: a.base0D, collapsedIcon: a.base0E, keyColor: a.base07, arrayKeyColor: a.base0C, objectSize: a.base04, copyToClipboard: a.base0F, copyToClipboardCheck: a.base0D, objectBorder: a.base02, dataTypes: { boolean: a.base0E, date: a.base0D, float: a.base0B, function: a.base0D, integer: a.base0F, string: a.base09, nan: a.base08, null: a.base0A, undefined: a.base05, regexp: a.base0A, background: a.base02 }, editVariable: { editIcon: a.base0E, cancelIcon: a.base09, removeIcon: a.base09, addIcon: a.base0E, checkIcon: a.base0E, background: a.base01, color: a.base0A, border: a.base07 }, addKeyModal: { background: a.base05, border: a.base04, color: a.base0A, labelColor: a.base01 }, validationFailure: { background: a.base09, iconColor: a.base01, fontColor: a.base01 } };
}(c);
return { "app-container": { fontFamily: g.globalFontFamily, cursor: g.globalCursor, backgroundColor: l.backgroundColor, position: "relative" }, ellipsis: { display: "inline-block", color: l.ellipsisColor, fontSize: g.ellipsisFontSize, lineHeight: g.ellipsisLineHeight, cursor: g.ellipsisCursor }, "brace-row": { display: "inline-block", cursor: "pointer" }, brace: { display: "inline-block", cursor: g.braceCursor, fontWeight: g.braceFontWeight, color: l.braceColor }, "expanded-icon": { color: l.expandedIcon }, "collapsed-icon": { color: l.collapsedIcon }, colon: { display: "inline-block", margin: g.keyMargin, color: l.keyColor, verticalAlign: "top" }, objectKeyVal: function(a, r) {
return { style: p({ paddingTop: g.keyValPaddingTop, paddingRight: g.keyValPaddingRight, paddingBottom: g.keyValPaddingBottom, borderLeft: g.keyValBorderLeft + " " + l.objectBorder, ":hover": { paddingLeft: r.paddingLeft - 1 + "px", borderLeft: g.keyValBorderHover + " " + l.objectBorder } }, r) };
}, "object-key-val-no-border": { padding: g.keyValPadding }, "pushed-content": { marginLeft: g.pushedContentMarginLeft }, variableValue: function(a, r) {
return { style: p({ display: "inline-block", paddingRight: g.variableValuePaddingRight, position: "relative" }, r) };
}, "object-name": { display: "inline-block", color: l.keyColor, letterSpacing: g.keyLetterSpacing, fontStyle: g.keyFontStyle, verticalAlign: g.keyVerticalAlign, opacity: g.keyOpacity, ":hover": { opacity: g.keyOpacityHover } }, "array-key": { display: "inline-block", color: l.arrayKeyColor, letterSpacing: g.keyLetterSpacing, fontStyle: g.keyFontStyle, verticalAlign: g.keyVerticalAlign, opacity: g.keyOpacity, ":hover": { opacity: g.keyOpacityHover } }, "object-size": { color: l.objectSize, borderRadius: g.objectSizeBorderRadius, fontStyle: g.objectSizeFontStyle, margin: g.objectSizeMargin, cursor: "default" }, "data-type-label": { fontSize: g.dataTypeFontSize, marginRight: g.dataTypeMarginRight, opacity: g.datatypeOpacity }, boolean: { display: "inline-block", color: l.dataTypes.boolean }, date: { display: "inline-block", color: l.dataTypes.date }, "date-value": { marginLeft: g.dateValueMarginLeft }, float: { display: "inline-block", color: l.dataTypes.float }, function: { display: "inline-block", color: l.dataTypes.function, cursor: "pointer", whiteSpace: "pre-line" }, "function-value": { fontStyle: "italic" }, integer: { display: "inline-block", color: l.dataTypes.integer }, string: { display: "inline-block", color: l.dataTypes.string }, nan: { display: "inline-block", color: l.dataTypes.nan, fontSize: g.nanFontSize, fontWeight: g.nanFontWeight, backgroundColor: l.dataTypes.background, padding: g.nanPadding, borderRadius: g.nanBorderRadius }, null: { display: "inline-block", color: l.dataTypes.null, fontSize: g.nullFontSize, fontWeight: g.nullFontWeight, backgroundColor: l.dataTypes.background, padding: g.nullPadding, borderRadius: g.nullBorderRadius }, undefined: { display: "inline-block", color: l.dataTypes.undefined, fontSize: g.undefinedFontSize, padding: g.undefinedPadding, borderRadius: g.undefinedBorderRadius, backgroundColor: l.dataTypes.background }, regexp: { display: "inline-block", color: l.dataTypes.regexp }, "copy-to-clipboard": { cursor: g.clipboardCursor }, "copy-icon": { color: l.copyToClipboard, fontSize: g.iconFontSize, marginRight: g.iconMarginRight, verticalAlign: "top" }, "copy-icon-copied": { color: l.copyToClipboardCheck, marginLeft: g.clipboardCheckMarginLeft }, "array-group-meta-data": { display: "inline-block", padding: g.arrayGroupMetaPadding }, "object-meta-data": { display: "inline-block", padding: g.metaDataPadding }, "icon-container": { display: "inline-block", width: g.iconContainerWidth }, tooltip: { padding: g.tooltipPadding }, removeVarIcon: { verticalAlign: "top", display: "inline-block", color: l.editVariable.removeIcon, cursor: g.iconCursor, fontSize: g.iconFontSize, marginRight: g.iconMarginRight }, addVarIcon: { verticalAlign: "top", display: "inline-block", color: l.editVariable.addIcon, cursor: g.iconCursor, fontSize: g.iconFontSize, marginRight: g.iconMarginRight }, editVarIcon: { verticalAlign: "top", display: "inline-block", color: l.editVariable.editIcon, cursor: g.iconCursor, fontSize: g.iconFontSize, marginRight: g.iconMarginRight }, "edit-icon-container": { display: "inline-block", verticalAlign: "top" }, "check-icon": { display: "inline-block", cursor: g.iconCursor, color: l.editVariable.checkIcon, fontSize: g.iconFontSize, paddingRight: g.iconPaddingRight }, "cancel-icon": { display: "inline-block", cursor: g.iconCursor, color: l.editVariable.cancelIcon, fontSize: g.iconFontSize, paddingRight: g.iconPaddingRight }, "edit-input": { display: "inline-block", minWidth: g.editInputMinWidth, borderRadius: g.editInputBorderRadius, backgroundColor: l.editVariable.background, color: l.editVariable.color, padding: g.editInputPadding, marginRight: g.editInputMarginRight, fontFamily: g.editInputFontFamily }, "detected-row": { paddingTop: g.detectedRowPaddingTop }, "key-modal-request": { position: g.addKeyCoverPosition, top: g.addKeyCoverPositionPx, left: g.addKeyCoverPositionPx, right: g.addKeyCoverPositionPx, bottom: g.addKeyCoverPositionPx, backgroundColor: g.addKeyCoverBackground }, "key-modal": { width: g.addKeyModalWidth, backgroundColor: l.addKeyModal.background, marginLeft: g.addKeyModalMargin, marginRight: g.addKeyModalMargin, padding: g.addKeyModalPadding, borderRadius: g.addKeyModalRadius, marginTop: "15px", position: "relative" }, "key-modal-label": { color: l.addKeyModal.labelColor, marginLeft: "2px", marginBottom: "5px", fontSize: "11px" }, "key-modal-input-container": { overflow: "hidden" }, "key-modal-input": { width: "100%", padding: "3px 6px", fontFamily: "monospace", color: l.addKeyModal.color, border: "none", boxSizing: "border-box", borderRadius: "2px" }, "key-modal-cancel": { backgroundColor: l.editVariable.removeIcon, position: "absolute", top: "0px", right: "0px", borderRadius: "0px 3px 0px 3px", cursor: "pointer" }, "key-modal-cancel-icon": { color: l.addKeyModal.labelColor, fontSize: g.iconFontSize, transform: "rotate(45deg)" }, "key-modal-submit": { color: l.editVariable.addIcon, fontSize: g.iconFontSize, position: "absolute", right: "2px", top: "3px", cursor: "pointer" }, "function-ellipsis": { display: "inline-block", color: l.ellipsisColor, fontSize: g.ellipsisFontSize, lineHeight: g.ellipsisLineHeight, cursor: g.ellipsisCursor }, "validation-failure": { float: "right", padding: "3px 6px", borderRadius: "2px", cursor: "pointer", color: l.validationFailure.fontColor, backgroundColor: l.validationFailure.background }, "validation-failure-label": { marginRight: "6px" }, "validation-failure-clear": { position: "relative", verticalAlign: "top", cursor: "pointer", color: l.validationFailure.iconColor, fontSize: g.iconFontSize, transform: "rotate(45deg)" } };
};
function O(c, l, a) {
return c || console.error("theme has not been set"), function(r) {
var i = M;
return r !== !1 && r !== "none" || (i = z), Object(G.createStyling)(K, { defaultBase16: i })(r);
}(c)(l, a);
}
var U = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = (r.rjvId, r.type_name), v = r.displayDataTypes, k = r.theme;
return v ? t.a.createElement("span", Object.assign({ className: "data-type-label" }, O(k, "data-type-label")), i) : null;
} }]), a;
}(t.a.PureComponent), le = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props;
return t.a.createElement("div", O(r.theme, "boolean"), t.a.createElement(U, Object.assign({ type_name: "bool" }, r)), r.value ? "true" : "false");
} }]), a;
}(t.a.PureComponent), re = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props;
return t.a.createElement("div", O(r.theme, "date"), t.a.createElement(U, Object.assign({ type_name: "date" }, r)), t.a.createElement("span", Object.assign({ className: "date-value" }, O(r.theme, "date-value")), r.value.toLocaleTimeString("en-us", { weekday: "short", year: "numeric", month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" })));
} }]), a;
}(t.a.PureComponent), W = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props;
return t.a.createElement("div", O(r.theme, "float"), t.a.createElement(U, Object.assign({ type_name: "float" }, r)), this.props.value);
} }]), a;
}(t.a.PureComponent);
function ne(c, l) {
(l == null || l > c.length) && (l = c.length);
for (var a = 0, r = new Array(l); a < l; a++) r[a] = c[a];
return r;
}
function $(c, l) {
if (c) {
if (typeof c == "string") return ne(c, l);
var a = Object.prototype.toString.call(c).slice(8, -1);
return a === "Object" && c.constructor && (a = c.constructor.name), a === "Map" || a === "Set" ? Array.from(c) : a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a) ? ne(c, l) : void 0;
}
}
function ue(c, l) {
var a;
if (typeof Symbol > "u" || c[Symbol.iterator] == null) {
if (Array.isArray(c) || (a = $(c)) || l) {
a && (c = a);
var r = 0, i = function() {
};
return { s: i, n: function() {
return r >= c.length ? { done: !0 } : { done: !1, value: c[r++] };
}, e: function(h) {
throw h;
}, f: i };
}
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
var v, k = !0, x = !1;
return { s: function() {
a = c[Symbol.iterator]();
}, n: function() {
var h = a.next();
return k = h.done, h;
}, e: function(h) {
x = !0, v = h;
}, f: function() {
try {
k || a.return == null || a.return();
} finally {
if (x) throw v;
}
} };
}
function pe(c) {
return function(l) {
if (Array.isArray(l)) return ne(l);
}(c) || function(l) {
if (typeof Symbol < "u" && Symbol.iterator in Object(l)) return Array.from(l);
}(c) || $(c) || function() {
throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}();
}
var Oe = e(46), me = new (e(47)).Dispatcher(), Ee = new (function(c) {
_(a, c);
var l = L(a);
function a() {
var r;
f(this, a);
for (var i = arguments.length, v = new Array(i), k = 0; k < i; k++) v[k] = arguments[k];
return (r = l.call.apply(l, [this].concat(v))).objects = {}, r.set = function(x, h, A, q) {
r.objects[x] === void 0 && (r.objects[x] = {}), r.objects[x][h] === void 0 && (r.objects[x][h] = {}), r.objects[x][h][A] = q;
}, r.get = function(x, h, A, q) {
return r.objects[x] === void 0 || r.objects[x][h] === void 0 || r.objects[x][h][A] == null ? q : r.objects[x][h][A];
}, r.handleAction = function(x) {
var h = x.rjvId, A = x.data;
switch (x.name) {
case "RESET":
r.emit("reset-" + h);
break;
case "VARIABLE_UPDATED":
x.data.updated_src = r.updateSrc(h, A), r.set(h, "action", "variable-update", p(p({}, A), {}, { type: "variable-edited" })), r.emit("variable-update-" + h);
break;
case "VARIABLE_REMOVED":
x.data.updated_src = r.updateSrc(h, A), r.set(h, "action", "variable-update", p(p({}, A), {}, { type: "variable-removed" })), r.emit("variable-update-" + h);
break;
case "VARIABLE_ADDED":
x.data.updated_src = r.updateSrc(h, A), r.set(h, "action", "variable-update", p(p({}, A), {}, { type: "variable-added" })), r.emit("variable-update-" + h);
break;
case "ADD_VARIABLE_KEY_REQUEST":
r.set(h, "action", "new-key-request", A), r.emit("add-key-request-" + h);
}
}, r.updateSrc = function(x, h) {
var A = h.name, q = h.namespace, ee = h.new_value, ae = (h.existing_value, h.variable_removed);
q.shift();
var ie, J = r.get(x, "global", "src"), se = r.deepCopy(J, pe(q)), ve = se, H = ue(q);
try {
for (H.s(); !(ie = H.n()).done; )
ve = ve[ie.value];
} catch (ge) {
H.e(ge);
} finally {
H.f();
}
return ae ? C(ve) == "array" ? ve.splice(A, 1) : delete ve[A] : A !== null ? ve[A] = ee : se = ee, r.set(x, "global", "src", se), se;
}, r.deepCopy = function(x, h) {
var A, q = C(x), ee = h.shift();
return q == "array" ? A = pe(x) : q == "object" && (A = p({}, x)), ee !== void 0 && (A[ee] = r.deepCopy(x[ee], h)), A;
}, r;
}
return a;
}(Oe.EventEmitter))();
me.register(Ee.handleAction.bind(Ee));
var ce = Ee, de = function(c) {
_(a, c);
var l = L(a);
function a(r) {
var i;
return f(this, a), (i = l.call(this, r)).toggleCollapsed = function() {
i.setState({ collapsed: !i.state.collapsed }, function() {
ce.set(i.props.rjvId, i.props.namespace, "collapsed", i.state.collapsed);
});
}, i.getFunctionDisplay = function(v) {
var k = V(i).props;
return v ? t.a.createElement("span", null, i.props.value.toString().slice(9, -1).replace(/\{[\s\S]+/, ""), t.a.createElement("span", { className: "function-collapsed", style: { fontWeight: "bold" } }, t.a.createElement("span", null, "{"), t.a.createElement("span", O(k.theme, "ellipsis"), "..."), t.a.createElement("span", null, "}"))) : i.props.value.toString().slice(9, -1);
}, i.state = { collapsed: ce.get(r.rjvId, r.namespace, "collapsed", !0) }, i;
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = this.state.collapsed;
return t.a.createElement("div", O(r.theme, "function"), t.a.createElement(U, Object.assign({ type_name: "function" }, r)), t.a.createElement("span", Object.assign({}, O(r.theme, "function-value"), { className: "rjv-function-container", onClick: this.toggleCollapsed }), this.getFunctionDisplay(i)));
} }]), a;
}(t.a.PureComponent), we = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
return t.a.createElement("div", O(this.props.theme, "nan"), "NaN");
} }]), a;
}(t.a.PureComponent), ze = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
return t.a.createElement("div", O(this.props.theme, "null"), "NULL");
} }]), a;
}(t.a.PureComponent), We = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props;
return t.a.createElement("div", O(r.theme, "integer"), t.a.createElement(U, Object.assign({ type_name: "int" }, r)), this.props.value);
} }]), a;
}(t.a.PureComponent), He = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props;
return t.a.createElement("div", O(r.theme, "regexp"), t.a.createElement(U, Object.assign({ type_name: "regexp" }, r)), this.props.value.toString());
} }]), a;
}(t.a.PureComponent), Ue = function(c) {
_(a, c);
var l = L(a);
function a(r) {
var i;
return f(this, a), (i = l.call(this, r)).toggleCollapsed = function() {
i.setState({ collapsed: !i.state.collapsed }, function() {
ce.set(i.props.rjvId, i.props.namespace, "collapsed", i.state.collapsed);
});
}, i.state = { collapsed: ce.get(r.rjvId, r.namespace, "collapsed", !0) }, i;
}
return b(a, [{ key: "render", value: function() {
this.state.collapsed;
var r = this.props, i = r.collapseStringsAfterLength, v = r.theme, k = r.value, x = { style: { cursor: "default" } };
return C(i) === "integer" && k.length > i && (x.style.cursor = "pointer", this.state.collapsed && (k = t.a.createElement("span", null, k.substring(0, i), t.a.createElement("span", O(v, "ellipsis"), " ...")))), t.a.createElement("div", O(v, "string"), t.a.createElement(U, Object.assign({ type_name: "string" }, r)), t.a.createElement("span", Object.assign({ className: "string-value" }, x, { onClick: this.toggleCollapsed }), '"', k, '"'));
} }]), a;
}(t.a.PureComponent), $e = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
return t.a.createElement("div", O(this.props.theme, "undefined"), "undefined");
} }]), a;
}(t.a.PureComponent);
function Te() {
return (Te = Object.assign || function(c) {
for (var l = 1; l < arguments.length; l++) {
var a = arguments[l];
for (var r in a) Object.prototype.hasOwnProperty.call(a, r) && (c[r] = a[r]);
}
return c;
}).apply(this, arguments);
}
var Qe = Z.useLayoutEffect, Ze = function(c) {
var l = Object(Z.useRef)(c);
return Qe(function() {
l.current = c;
}), l;
}, Ge = function(c, l) {
typeof c != "function" ? c.current = l : c(l);
}, Xe = function(c, l) {
var a = Object(Z.useRef)();
return Object(Z.useCallback)(function(r) {
c.current = r, a.current && Ge(a.current, null), a.current = l, l && Ge(l, r);
}, [l]);
}, qe = { "min-height": "0", "max-height": "none", height: "0", visibility: "hidden", overflow: "hidden", position: "absolute", "z-index": "-1000", top: "0", right: "0" }, Fe = function(c) {
Object.keys(qe).forEach(function(l) {
c.style.setProperty(l, qe[l], "important");
});
}, je = null, Ye = function() {
}, S = ["borderBottomWidth", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "boxSizing", "fontFamily", "fontSize", "fontStyle", "fontWeight", "letterSpacing", "lineHeight", "paddingBottom", "paddingLeft", "paddingRight", "paddingTop", "tabSize", "textIndent", "textRendering", "textTransform", "width"], m = !!document.documentElement.currentStyle, y = function(c, l) {
var a = c.cacheMeasurements, r = c.maxRows, i = c.minRows, v = c.onChange, k = v === void 0 ? Ye : v, x = c.onHeightChange, h = x === void 0 ? Ye : x, A = function(H, ge) {
if (H == null) return {};
var Pe, Ve, lt = {}, Ke = Object.keys(H);
for (Ve = 0; Ve < Ke.length; Ve++) Pe = Ke[Ve], ge.indexOf(Pe) >= 0 || (lt[Pe] = H[Pe]);
return lt;
}(c, ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"]), q, ee = A.value !== void 0, ae = Object(Z.useRef)(null), ie = Xe(ae, l), J = Object(Z.useRef)(0), se = Object(Z.useRef)(), ve = function() {
var H = ae.current, ge = a && se.current ? se.current : function(Ke) {
var ut = window.getComputedStyle(Ke);
if (ut === null) return null;
var tt, ke = (tt = ut, S.reduce(function(it, nt) {
return it[nt] = tt[nt], it;
}, {})), at = ke.boxSizing;
return at === "" ? null : (m && at === "border-box" && (ke.width = parseFloat(ke.width) + parseFloat(ke.borderRightWidth) + parseFloat(ke.borderLeftWidth) + parseFloat(ke.paddingRight) + parseFloat(ke.paddingLeft) + "px"), { sizingStyle: ke, paddingSize: parseFloat(ke.paddingBottom) + parseFloat(ke.paddingTop), borderSize: parseFloat(ke.borderBottomWidth) + parseFloat(ke.borderTopWidth) });
}(H);
if (ge) {
se.current = ge;
var Pe = function(Ke, ut, tt, ke) {
tt === void 0 && (tt = 1), ke === void 0 && (ke = 1 / 0), je || ((je = document.createElement("textarea")).setAttribute("tab-index", "-1"), je.setAttribute("aria-hidden", "true"), Fe(je)), je.parentNode === null && document.body.appendChild(je);
var at = Ke.paddingSize, it = Ke.borderSize, nt = Ke.sizingStyle, mt = nt.boxSizing;
Object.keys(nt).forEach(function(vt) {
var rt = vt;
je.style[rt] = nt[rt];
}), Fe(je), je.value = ut;
var ft = function(vt, rt) {
var yt = vt.scrollHeight;
return rt.sizingStyle.boxSizing === "border-box" ? yt + rt.borderSize : yt - rt.paddingSize;
}(je, Ke);
je.value = "x";
var dt = je.scrollHeight - at, bt = dt * tt;
mt === "border-box" && (bt = bt + at + it), ft = Math.max(bt, ft);
var ht = dt * ke;
return mt === "border-box" && (ht = ht + at + it), [ft = Math.min(ht, ft), dt];
}(ge, H.value || H.placeholder || "x", i, r), Ve = Pe[0], lt = Pe[1];
J.current !== Ve && (J.current = Ve, H.style.setProperty("height", Ve + "px", "important"), h(Ve, { rowHeight: lt }));
}
};
return Object(Z.useLayoutEffect)(ve), q = Ze(ve), Object(Z.useLayoutEffect)(function() {
var H = function(ge) {
q.current(ge);
};
return window.addEventListener("resize", H), function() {
window.removeEventListener("resize", H);
};
}, []), Object(Z.createElement)("textarea", Te({}, A, { onChange: function(H) {
ee || ve(), k(H);
}, ref: ie }));
}, w = Object(Z.forwardRef)(y);
function I(c) {
c = c.trim();
try {
if ((c = JSON.stringify(JSON.parse(c)))[0] === "[") return T("array", JSON.parse(c));
if (c[0] === "{") return T("object", JSON.parse(c));
if (c.match(/\-?\d+\.\d+/) && c.match(/\-?\d+\.\d+/)[0] === c) return T("float", parseFloat(c));
if (c.match(/\-?\d+e-\d+/) && c.match(/\-?\d+e-\d+/)[0] === c) return T("float", Number(c));
if (c.match(/\-?\d+/) && c.match(/\-?\d+/)[0] === c) return T("integer", parseInt(c));
if (c.match(/\-?\d+e\+\d+/) && c.match(/\-?\d+e\+\d+/)[0] === c) return T("integer", Number(c));
} catch {
}
switch (c = c.toLowerCase()) {
case "undefined":
return T("undefined", void 0);
case "nan":
return T("nan", NaN);
case "null":
return T("null", null);
case "true":
return T("boolean", !0);
case "false":
return T("boolean", !1);
default:
if (c = Date.parse(c)) return T("date", new Date(c));
}
return T(!1, null);
}
function T(c, l) {
return { type: c, value: l };
}
var X = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = r.style, v = j(r, ["style"]);
return t.a.createElement("span", v, t.a.createElement("svg", Object.assign({}, te(i), { viewBox: "0 0 24 24", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), t.a.createElement("path", { d: "M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7" })));
} }]), a;
}(t.a.PureComponent), Y = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = r.style, v = j(r, ["style"]);
return t.a.createElement("span", v, t.a.createElement("svg", Object.assign({}, te(i), { viewBox: "0 0 24 24", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), t.a.createElement("path", { d: "M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z" })));
} }]), a;
}(t.a.PureComponent), oe = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = r.style, v = j(r, ["style"]), k = te(i).style;
return t.a.createElement("span", v, t.a.createElement("svg", { fill: k.color, width: k.height, height: k.width, style: k, viewBox: "0 0 1792 1792" }, t.a.createElement("path", { d: "M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z" })));
} }]), a;
}(t.a.PureComponent), be = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = r.style, v = j(r, ["style"]), k = te(i).style;
return t.a.createElement("span", v, t.a.createElement("svg", { fill: k.color, width: k.height, height: k.width, style: k, viewBox: "0 0 1792 1792" }, t.a.createElement("path", { d: "M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z" })));
} }]), a;
}(t.a.PureComponent), he = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = r.style, v = j(r, ["style"]);
return t.a.createElement("span", v, t.a.createElement("svg", { style: p(p({}, te(i).style), {}, { paddingLeft: "2px", verticalAlign: "top" }), viewBox: "0 0 15 15", fill: "currentColor" }, t.a.createElement("path", { d: "M0 14l6-6-6-6z" })));
} }]), a;
}(t.a.PureComponent), xe = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = r.style, v = j(r, ["style"]);
return t.a.createElement("span", v, t.a.createElement("svg", { style: p(p({}, te(i).style), {}, { paddingLeft: "2px", verticalAlign: "top" }), viewBox: "0 0 15 15", fill: "currentColor" }, t.a.createElement("path", { d: "M0 5l6 6 6-6z" })));
} }]), a;
}(t.a.PureComponent), fe = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = r.style, v = j(r, ["style"]);
return t.a.createElement("span", v, t.a.createElement("svg", Object.assign({}, te(i), { viewBox: "0 0 40 40", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), t.a.createElement("g", null, t.a.createElement("path", { d: "m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z" }))));
} }]), a;
}(t.a.PureComponent), Se = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = r.style, v = j(r, ["style"]);
return t.a.createElement("span", v, t.a.createElement("svg", Object.assign({}, te(i), { viewBox: "0 0 40 40", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), t.a.createElement("g", null, t.a.createElement("path", { d: "m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z" }))));
} }]), a;
}(t.a.PureComponent), Ae = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = r.style, v = j(r, ["style"]);
return t.a.createElement("span", v, t.a.createElement("svg", Object.assign({}, te(i), { viewBox: "0 0 40 40", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), t.a.createElement("g", null, t.a.createElement("path", { d: "m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z" }))));
} }]), a;
}(t.a.PureComponent), Be = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = r.style, v = j(r, ["style"]);
return t.a.createElement("span", v, t.a.createElement("svg", Object.assign({}, te(i), { viewBox: "0 0 40 40", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), t.a.createElement("g", null, t.a.createElement("path", { d: "m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z" }))));
} }]), a;
}(t.a.PureComponent), De = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = r.style, v = j(r, ["style"]);
return t.a.createElement("span", v, t.a.createElement("svg", Object.assign({}, te(i), { viewBox: "0 0 40 40", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), t.a.createElement("g", null, t.a.createElement("path", { d: "m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z" }))));
} }]), a;
}(t.a.PureComponent), ye = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = r.style, v = j(r, ["style"]);
return t.a.createElement("span", v, t.a.createElement("svg", Object.assign({}, te(i), { viewBox: "0 0 40 40", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), t.a.createElement("g", null, t.a.createElement("path", { d: "m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z" }))));
} }]), a;
}(t.a.PureComponent);
function te(c) {
return c || (c = {}), { style: p(p({ verticalAlign: "middle" }, c), {}, { color: c.color ? c.color : "#000000", height: "1em", width: "1em" }) };
}
var _e = function(c) {
_(a, c);
var l = L(a);
function a(r) {
var i;
return f(this, a), (i = l.call(this, r)).copiedTimer = null, i.handleCopy = function() {
var v = document.createElement("textarea"), k = i.props, x = k.clickCallback, h = k.src, A = k.namespace;
v.innerHTML = JSON.stringify(i.clipboardValue(h), null, " "), document.body.appendChild(v), v.select(), document.execCommand("copy"), document.body.removeChild(v), i.copiedTimer = setTimeout(function() {
i.setState({ copied: !1 });
}, 5500), i.setState({ copied: !0 }, function() {
typeof x == "function" && x({ src: h, namespace: A, name: A[A.length - 1] });
});
}, i.getClippyIcon = function() {
var v = i.props.theme;
return i.state.copied ? t.a.createElement("span", null, t.a.createElement(fe, Object.assign({ className: "copy-icon" }, O(v, "copy-icon"))), t.a.createElement("span", O(v, "copy-icon-copied"), "✔")) : t.a.createElement(fe, Object.assign({ className: "copy-icon" }, O(v, "copy-icon")));
}, i.clipboardValue = function(v) {
switch (C(v)) {
case "function":
case "regexp":
return v.toString();
default:
return v;
}
}, i.state = { copied: !1 }, i;
}
return b(a, [{ key: "componentWillUnmount", value: function() {
this.copiedTimer && (clearTimeout(this.copiedTimer), this.copiedTimer = null);
} }, { key: "render", value: function() {
var r = this.props, i = (r.src, r.theme), v = r.hidden, k = r.rowHovered, x = O(i, "copy-to-clipboard").style, h = "inline";
return v && (h = "none"), t.a.createElement("span", { className: "copy-to-clipboard-container", title: "Copy to clipboard", style: { verticalAlign: "top", display: k ? "inline-block" : "none" } }, t.a.createElement("span", { style: p(p({}, x), {}, { display: h }), onClick: this.handleCopy }, this.getClippyIcon()));
} }]), a;
}(t.a.PureComponent), Ce = function(c) {
_(a, c);
var l = L(a);
function a(r) {
var i;
return f(this, a), (i = l.call(this, r)).getEditIcon = function() {
var v = i.props, k = v.variable, x = v.theme;
return t.a.createElement("div", { className: "click-to-edit", style: { verticalAlign: "top", display: i.state.hovered ? "inline-block" : "none" } }, t.a.createElement(De, Object.assign({ className: "click-to-edit-icon" }, O(x, "editVarIcon"), { onClick: function() {
i.prepopInput(k);
} })));
}, i.prepopInput = function(v) {
if (i.props.onEdit !== !1) {
var k = function(h) {
var A;
switch (C(h)) {
case "undefined":
A = "undefined";
break;
case "nan":
A = "NaN";
break;
case "string":
A = h;
break;
case "date":
case "function":
case "regexp":
A = h.toString();
break;
default:
try {
A = JSON.stringify(h, null, " ");
} catch {
A = "";
}
}
return A;
}(v.value), x = I(k);
i.setState({ editMode: !0, editValue: k, parsedInput: { type: x.type, value: x.value } });
}
}, i.getRemoveIcon = function() {
var v = i.props, k = v.variable, x = v.namespace, h = v.theme, A = v.rjvId;
return t.a.createElement("div", { className: "click-to-remove", style: { verticalAlign: "top", display: i.state.hovered ? "inline-block" : "none" } }, t.a.createElement(Se, Object.assign({ className: "click-to-remove-icon" }, O(h, "removeVarIcon"), { onClick: function() {
me.dispatch({ name: "VARIABLE_REMOVED", rjvId: A, data: { name: k.name, namespace: x, existing_value: k.value, variable_removed: !0 } });
} })));
}, i.getValue = function(v, k) {
var x = !k && v.type, h = V(i).props;
switch (x) {
case !1:
return i.getEditInput();
case "string":
return t.a.createElement(Ue, Object.assign({ value: v.value }, h));
case "integer":
return t.a.createElement(We, Object.assign({ value: v.value }, h));
case "float":
return t.a.createElement(W, Object.assign({ value: v.value }, h));
case "boolean":
return t.a.createElement(le, Object.assign({ value: v.value }, h));
case "function":
return t.a.createElement(de, Object.assign({ value: v.value }, h));
case "null":
return t.a.createElement(ze, h);
case "nan":
return t.a.createElement(we, h);
case "undefined":
return t.a.createElement($e, h);
case "date":
return t.a.createElement(re, Object.assign({ value: v.value }, h));
case "regexp":
return t.a.createElement(He, Object.assign({ value: v.value }, h));
default:
return t.a.createElement("div", { className: "object-value" }, JSON.stringify(v.value));
}
}, i.getEditInput = function() {
var v = i.props.theme, k = i.state.editValue;
return t.a.createElement("div", null, t.a.createElement(w, Object.assign({ type: "text", inputRef: function(x) {
return x && x.focus();
}, value: k, className: "variable-editor", onChange: function(x) {
var h = x.target.value, A = I(h);
i.setState({ editValue: h, parsedInput: { type: A.type, value: A.value } });
}, onKeyDown: function(x) {
switch (x.key) {
case "Escape":
i.setState({ editMode: !1, editValue: "" });
break;
case "Enter":
(x.ctrlKey || x.metaKey) && i.submitEdit(!0);
}
x.stopPropagation();
}, placeholder: "update this value", minRows: 2 }, O(v, "edit-input"))), t.a.createElement("div", O(v, "edit-icon-container"), t.a.createElement(Se, Object.assign({ className: "edit-cancel" }, O(v, "cancel-icon"), { onClick: function() {
i.setState({ editMode: !1, editValue: "" });
} })), t.a.createElement(ye, Object.assign({ className: "edit-check string-value" }, O(v, "check-icon"), { onClick: function() {
i.submitEdit();
} })), t.a.createElement("div", null, i.showDetected())));
}, i.submitEdit = function(v) {
var k = i.props, x = k.variable, h = k.namespace, A = k.rjvId, q = i.state, ee = q.editValue, ae = q.parsedInput, ie = ee;
v && ae.type && (ie = ae.value), i.setState({ editMode: !1 }), me.dispatch({ name: "VARIABLE_UPDATED", rjvId: A, data: { name: x.name, namespace: h, existing_value: x.value, new_value: ie, variable_removed: !1 } });
}, i.showDetected = function() {
var v = i.props, k = v.theme, x = (v.variable, v.namespace, v.rjvId, i.state.parsedInput), h = (x.type, x.value, i.getDetectedInput());
if (h) return t.a.createElement("div", null, t.a.createElement("div", O(k, "detected-row"), h, t.a.createElement(ye, { className: "edit-check detected", style: p({ verticalAlign: "top", paddingLeft: "3px" }, O(k, "check-icon").style), onClick: function() {
i.submitEdit(!0);
} })));
}, i.getDetectedInput = function() {
var v = i.state.parsedInput, k = v.type, x = v.value, h = V(i).props, A = h.theme;
if (k !== !1) switch (k.toLowerCase()) {
case "object":
return t.a.createElement("span", null, t.a.createElement("span", { style: p(p({}, O(A, "brace").style), {}, { cursor: "default" }) }, "{"), t.a.createElement("span", { style: p(p({}, O(A, "ellipsis").style), {}, { cursor: "default" }) }, "..."), t.a.createElement("span", { style: p(p({}, O(A, "brace").style), {}, { cursor: "default" }) }, "}"));
case "array":
return t.a.createElement("span", null, t.a.createElement("span", { style: p(p({}, O(A, "brace").style), {}, { cursor: "default" }) }, "["), t.a.createElement("span", { style: p(p({}, O(A, "ellipsis").style), {}, { cursor: "default" }) }, "..."), t.a.createElement("span", { style: p(p({}, O(A, "brace").style), {}, { cursor: "default" }) }, "]"));
case "string":
return t.a.createElement(Ue, Object.assign({ value: x }, h));
case "integer":
return t.a.createElement(We, Object.assign({ value: x }, h));
case "float":
return t.a.createElement(W, Object.assign({ value: x }, h));
case "boolean":
return t.a.createElement(le, Object.assign({ value: x }, h));
case "function":
return t.a.createElement(de, Object.assign({ value: x }, h));
case "null":
return t.a.createElement(ze, h);
case "nan":
return t.a.createElement(we, h);
case "undefined":
return t.a.createElement($e, h);
case "date":
return t.a.createElement(re, Object.assign({ value: new Date(x) }, h));
}
}, i.state = { editMode: !1, editValue: "", hovered: !1, renameKey: !1, parsedInput: { type: !1, value: null } }, i;
}
return b(a, [{ key: "render", value: function() {
var r = this, i = this.props, v = i.variable, k = i.singleIndent, x = i.type, h = i.theme, A = i.namespace, q = i.indentWidth, ee = i.enableClipboard, ae = i.onEdit, ie = i.onDelete, J = i.onSelect, se = i.displayArrayKey, ve = i.quotesOnKeys, H = this.state.editMode;
return t.a.createElement("div", Object.assign({}, O(h, "objectKeyVal", { paddingLeft: q * k }), { onMouseEnter: function() {
return r.setState(p(p({}, r.state), {}, { hovered: !0 }));
}, onMouseLeave: function() {
return r.setState(p(p({}, r.state), {}, { hovered: !1 }));
}, className: "variable-row", key: v.name }), x == "array" ? se ? t.a.createElement("span", Object.assign({}, O(h, "array-key"), { key: v.name + "_" + A }), v.name, t.a.createElement("div", O(h, "colon"), ":")) : null : t.a.createElement("span", null, t.a.createElement("span", Object.assign({}, O(h, "object-name"), { className: "object-key", key: v.name + "_" + A }), !!ve && t.a.createElement("span", { style: { verticalAlign: "top" } }, '"'), t.a.createElement("span", { style: { display: "inline-block" } }, v.name), !!ve && t.a.createElement("span", { style: { verticalAlign: "top" } }, '"')), t.a.createElement("span", O(h, "colon"), ":")), t.a.createElement("div", Object.assign({ className: "variable-value", onClick: J === !1 && ae === !1 ? null : function(ge) {
var Pe = pe(A);
(ge.ctrlKey || ge.metaKey) && ae !== !1 ? r.prepopInput(v) : J !== !1 && (Pe.shift(), J(p(p({}, v), {}, { namespace: Pe })));
} }, O(h, "variableValue", { cursor: J === !1 ? "default" : "pointer" })), this.getValue(v, H)), ee ? t.a.createElement(_e, { rowHovered: this.state.hovered, hidden: H, src: v.value, clickCallback: ee, theme: h, namespace: [].concat(pe(A), [v.name]) }) : null, ae !== !1 && H == 0 ? this.getEditIcon() : null, ie !== !1 && H == 0 ? this.getRemoveIcon() : null);
} }]), a;
}(t.a.PureComponent), Ne = function(c) {
_(a, c);
var l = L(a);
function a() {
var r;
f(this, a);
for (var i = arguments.length, v = new Array(i), k = 0; k < i; k++) v[k] = arguments[k];
return (r = l.call.apply(l, [this].concat(v))).getObjectSize = function() {
var x = r.props, h = x.size, A = x.theme;
if (x.displayObjectSize) return t.a.createElement("span", Object.assign({ className: "object-size" }, O(A, "object-size")), h, " item", h === 1 ? "" : "s");
}, r.getAddAttribute = function(x) {
var h = r.props, A = h.theme, q = h.namespace, ee = h.name, ae = h.src, ie = h.rjvId, J = h.depth;
return t.a.createElement("span", { className: "click-to-add", style: { verticalAlign: "top", display: x ? "inline-block" : "none" } }, t.a.createElement(Ae, Object.assign({ className: "click-to-add-icon" }, O(A, "addVarIcon"), { onClick: function() {
var se = { name: J > 0 ? ee : null, namespace: q.splice(0, q.length - 1), existing_value: ae, variable_removed: !1, key_name: null };
C(ae) === "object" ? me.dispatch({ name: "ADD_VARIABLE_KEY_REQUEST", rjvId: ie, data: se }) : me.dispatch({ name: "VARIABLE_ADDED", rjvId: ie, data: p(p({}, se), {}, { new_value: [].concat(pe(ae), [null]) }) });
} })));
}, r.getRemoveObject = function(x) {
var h = r.props, A = h.theme, q = (h.hover, h.namespace), ee = h.name, ae = h.src, ie = h.rjvId;
if (q.length !== 1) return t.a.createElement("span", { className: "click-to-remove", style: { display: x ? "inline-block" : "none" } }, t.a.createElement(Se, Object.assign({ className: "click-to-remove-icon" }, O(A, "removeVarIcon"), { onClick: function() {
me.dispatch({ name: "VARIABLE_REMOVED", rjvId: ie, data: { name: ee, namespace: q.splice(0, q.length - 1), existing_value: ae, variable_removed: !0 } });
} })));
}, r.render = function() {
var x = r.props, h = x.theme, A = x.onDelete, q = x.onAdd, ee = x.enableClipboard, ae = x.src, ie = x.namespace, J = x.rowHovered;
return t.a.createElement("div", Object.assign({}, O(h, "object-meta-data"), { className: "object-meta-data", onClick: function(se) {
se.stopPropagation();
} }), r.getObjectSize(), ee ? t.a.createElement(_e, { rowHovered: J, clickCallback: ee, src: ae, theme: h, namespace: ie }) : null, q !== !1 ? r.getAddAttribute(J) : null, A !== !1 ? r.getRemoveObject(J) : null);
}, r;
}
return a;
}(t.a.PureComponent);
function Re(c) {
var l = c.parent_type, a = c.namespace, r = c.quotesOnKeys, i = c.theme, v = c.jsvRoot, k = c.name, x = c.displayArrayKey, h = c.name ? c.name : "";
return !v || k !== !1 && k !== null ? l == "array" ? x ? t.a.createElement("span", Object.assign({}, O(i, "array-key"), { key: a }), t.a.createElement("span", { className: "array-key" }, h), t.a.createElement("span", O(i, "colon"), ":")) : t.a.createElement("span", null) : t.a.createElement("span", Object.assign({}, O(i, "object-name"), { key: a }), t.a.createElement("span", { className: "object-key" }, r && t.a.createElement("span", { style: { verticalAlign: "top" } }, '"'), t.a.createElement("span", null, h), r && t.a.createElement("span", { style: { verticalAlign: "top" } }, '"')), t.a.createElement("span", O(i, "colon"), ":")) : t.a.createElement("span", null);
}
function Me(c) {
var l = c.theme;
switch (c.iconStyle) {
case "triangle":
return t.a.createElement(xe, Object.assign({}, O(l, "expanded-icon"), { className: "expanded-icon" }));
case "square":
return t.a.createElement(oe, Object.assign({}, O(l, "expanded-icon"), { className: "expanded-icon" }));
default:
return t.a.createElement(X, Object.assign({}, O(l, "expanded-icon"), { className: "expanded-icon" }));
}
}
function Le(c) {
var l = c.theme;
switch (c.iconStyle) {
case "triangle":
return t.a.createElement(he, Object.assign({}, O(l, "collapsed-icon"), { className: "collapsed-icon" }));
case "square":
return t.a.createElement(be, Object.assign({}, O(l, "collapsed-icon"), { className: "collapsed-icon" }));
default:
return t.a.createElement(Y, Object.assign({}, O(l, "collapsed-icon"), { className: "collapsed-icon" }));
}
}
var et = function(c) {
_(a, c);
var l = L(a);
function a(r) {
var i;
return f(this, a), (i = l.call(this, r)).toggleCollapsed = function(v) {
var k = [];
for (var x in i.state.expanded) k.push(i.state.expanded[x]);
k[v] = !k[v], i.setState({ expanded: k });
}, i.state = { expanded: [] }, i;
}
return b(a, [{ key: "getExpandedIcon", value: function(r) {
var i = this.props, v = i.theme, k = i.iconStyle;
return this.state.expanded[r] ? t.a.createElement(Me, { theme: v, iconStyle: k }) : t.a.createElement(Le, { theme: v, iconStyle: k });
} }, { key: "render", value: function() {
var r = this, i = this.props, v = i.src, k = i.groupArraysAfterLength, x = (i.depth, i.name), h = i.theme, A = i.jsvRoot, q = i.namespace, ee = (i.parent_type, j(i, ["src", "groupArraysAfterLength", "depth", "name", "theme", "jsvRoot", "namespace", "parent_type"])), ae = 0, ie = 5 * this.props.indentWidth;
A || (ae = 5 * this.props.indentWidth);
var J = k, se = Math.ceil(v.length / J);
return t.a.createElement("div", Object.assign({ className: "object-key-val" }, O(h, A ? "jsv-root" : "objectKeyVal", { paddingLeft: ae })), t.a.createElement(Re, this.props), t.a.createElement("span", null, t.a.createElement(Ne, Object.assign({ size: v.length }, this.props))), pe(Array(se)).map(function(ve, H) {
return t.a.createElement("div", Object.assign({ key: H, className: "object-key-val array-group" }, O(h, "objectKeyVal", { marginLeft: 6, paddingLeft: ie })), t.a.createElement("span", O(h, "brace-row"), t.a.createElement("div", Object.assign({ className: "icon-container" }, O(h, "icon-container"), { onClick: function(ge) {
r.toggleCollapsed(H);
} }), r.getExpandedIcon(H)), r.state.expanded[H] ? t.a.createElement(st, Object.assign({ key: x + H, depth: 0, name: !1, collapsed: !1, groupArraysAfterLength: J, index_offset: H * J, src: v.slice(H * J, H * J + J), namespace: q, type: "array", parent_type: "array_group", theme: h }, ee)) : t.a.createElement("span", Object.assign({}, O(h, "brace"), { onClick: function(ge) {
r.toggleCollapsed(H);
}, className: "array-group-brace" }), "[", t.a.createElement("div", Object.assign({}, O(h, "array-group-meta-data"), { className: "array-group-meta-data" }), t.a.createElement("span", Object.assign({ className: "object-size" }, O(h, "object-size")), H * J, " - ", H * J + J > v.length ? v.length : H * J + J)), "]")));
}));
} }]), a;
}(t.a.PureComponent), ot = function(c) {
_(a, c);
var l = L(a);
function a(r) {
var i;
f(this, a), (i = l.call(this, r)).toggleCollapsed = function() {
i.setState({ expanded: !i.state.expanded }, function() {
ce.set(i.props.rjvId, i.props.namespace, "expanded", i.state.expanded);
});
}, i.getObjectContent = function(k, x, h) {
return t.a.createElement("div", { className: "pushed-content object-container" }, t.a.createElement("div", Object.assign({ className: "object-content" }, O(i.props.theme, "pushed-content")), i.renderObjectContents(x, h)));
}, i.getEllipsis = function() {
return i.state.size === 0 ? null : t.a.createElement("div", Object.assign({}, O(i.props.theme, "ellipsis"), { className: "node-ellipsis", onClick: i.toggleCollapsed }), "...");
}, i.getObjectMetaData = function(k) {
var x = i.props, h = (x.rjvId, x.theme, i.state), A = h.size, q = h.hovered;
return t.a.createElement(Ne, Object.assign({ rowHovered: q, size: A }, i.props));
}, i.renderObjectContents = function(k, x) {
var h, A = i.props, q = A.depth, ee = A.parent_type, ae = A.index_offset, ie = A.groupArraysAfterLength, J = A.namespace, se = i.state.object_type, ve = [], H = Object.keys(k || {});
return i.props.sortKeys && se !== "array" && (H = H.sort()), H.forEach(function(ge) {
if (h = new jt(ge, k[ge]), ee === "array_group" && ae && (h.name = parseInt(h.name) + ae), k.hasOwnProperty(ge)) if (h.type === "object") ve.push(t.a.createElement(st, Object.assign({ key: h.name, depth: q + 1, name: h.name, src: h.value, namespace: J.concat(h.name), parent_type: se }, x)));
else if (h.type === "array") {
var Pe = st;
ie && h.value.length > ie && (Pe = et), ve.push(t.a.createElement(Pe, Object.assign({ key: h.name, depth: q + 1, name: h.name, src: h.value, namespace: J.concat(h.name), type: "array", parent_type: se }, x)));
} else ve.push(t.a.createElement(Ce, Object.assign({ key: h.name + "_" + J, variable: h, singleIndent: 5, namespace: J, type: i.props.type }, x)));
}), ve;
};
var v = a.getState(r);
return i.state = p(p({}, v), {}, { prevProps: {} }), i;
}
return b(a, [{ key: "getBraceStart", value: function(r, i) {
var v = this, k = this.props, x = k.src, h = k.theme, A = k.iconStyle;
if (k.parent_type === "array_group") return t.a.createElement("span", null, t.a.createElement("span", O(h, "brace"), r === "array" ? "[" : "{"), i ? this.getObjectMetaData(x) : null);
var q = i ? Me : Le;
return t.a.createElement("span", null, t.a.createElement("span", Object.assign({ onClick: function(ee) {
v.toggleCollapsed();
} }, O(h, "brace-row")), t.a.createElement("div", Object.assign({ className: "icon-container" }, O(h, "icon-container")), t.a.createElement(q, { theme: h, iconStyle: A })), t.a.createElement(Re, this.props), t.a.createElement("span", O(h, "brace"), r === "array" ? "[" : "{")), i ? this.getObjectMetaData(x) : null);
} }, { key: "render", value: function() {
var r = this, i = this.props, v = i.depth, k = i.src, x = (i.namespace, i.name, i.type, i.parent_type), h = i.theme, A = i.jsvRoot, q = i.iconStyle, ee = j(i, ["depth", "src", "namespace", "name", "type", "parent_type", "theme", "jsvRoot", "iconStyle"]), ae = this.state, ie = ae.object_type, J = ae.expanded, se = {};
return A || x === "array_group" ? x === "array_group" && (se.borderLeft = 0, se.display = "inline") : se.paddingLeft = 5 * this.props.indentWidth, t.a.createElement("div", Object.assign({ className: "object-key-val", onMouseEnter: function() {
return r.setState(p(p({}, r.state), {}, { hovered: !0 }));
}, onMouseLeave: function() {
return r.setState(p(p({}, r.state), {}, { hovered: !1 }));
} }, O(h, A ? "jsv-root" : "objectKeyVal", se)), this.getBraceStart(ie, J), J ? this.getObjectContent(v, k, p({ theme: h, iconStyle: q }, ee)) : this.getEllipsis(), t.a.createElement("span", { className: "brace-row" }, t.a.createElement("span", { style: p(p({}, O(h, "brace").style), {}, { paddingLeft: J ? "3px" : "0px" }) }, ie === "array" ? "]" : "}"), J ? null : this.getObjectMetaData(k)));
} }], [{ key: "getDerivedStateFromProps", value: function(r, i) {
var v = i.prevProps;
return r.src !== v.src || r.collapsed !== v.collapsed || r.name !== v.name || r.namespace !== v.namespace || r.rjvId !== v.rjvId ? p(p({}, a.getState(r)), {}, { prevProps: r }) : null;
} }]), a;
}(t.a.PureComponent);
ot.getState = function(c) {
var l = Object.keys(c.src).length, a = (c.collapsed === !1 || c.collapsed !== !0 && c.collapsed > c.depth) && (!c.shouldCollapse || c.shouldCollapse({ name: c.name, src: c.src, type: C(c.src), namespace: c.namespace }) === !1) && l !== 0;
return { expanded: ce.get(c.rjvId, c.namespace, "expanded", a), object_type: c.type === "array" ? "array" : "object", parent_type: c.type === "array" ? "array" : "object", size: l, hovered: !1 };
};
var jt = function c(l, a) {
f(this, c), this.name = l, this.value = a, this.type = C(a);
};
N(ot);
var st = ot, xt = function(c) {
_(a, c);
var l = L(a);
function a() {
var r;
f(this, a);
for (var i = arguments.length, v = new Array(i), k = 0; k < i; k++) v[k] = arguments[k];
return (r = l.call.apply(l, [this].concat(v))).render = function() {
var x = V(r).props, h = [x.name], A = st;
return Array.isArray(x.src) && x.groupArraysAfterLength && x.src.length > x.groupArraysAfterLength && (A = et), t.a.createElement("div", { className: "pretty-json-container object-container" }, t.a.createElement("div", { className: "object-content" }, t.a.createElement(A, Object.assign({ namespace: h, depth: 0, jsvRoot: !0 }, x))));
}, r;
}
return a;
}(t.a.PureComponent), _t = function(c) {
_(a, c);
var l = L(a);
function a(r) {
var i;
return f(this, a), (i = l.call(this, r)).closeModal = function() {
me.dispatch({ rjvId: i.props.rjvId, name: "RESET" });
}, i.submit = function() {
i.props.submit(i.state.input);
}, i.state = { input: r.input ? r.input : "" }, i;
}
return b(a, [{ key: "render", value: function() {
var r = this, i = this.props, v = i.theme, k = i.rjvId, x = i.isValid, h = this.state.input, A = x(h);
return t.a.createElement("div", Object.assign({ className: "key-modal-request" }, O(v, "key-modal-request"), { onClick: this.closeModal }), t.a.createElement("div", Object.assign({}, O(v, "key-modal"), { onClick: function(q) {
q.stopPropagation();
} }), t.a.createElement("div", O(v, "key-modal-label"), "Key Name:"), t.a.createElement("div", { style: { position: "relative" } }, t.a.createElement("input", Object.assign({}, O(v, "key-modal-input"), { className: "key-modal-input", ref: function(q) {
return q && q.focus();
}, spellCheck: !1, value: h, placeholder: "...", onChange: function(q) {
r.setState({ input: q.target.value });
}, onKeyPress: function(q) {
A && q.key === "Enter" ? r.submit() : q.key === "Escape" && r.closeModal();
} })), A ? t.a.createElement(ye, Object.assign({}, O(v, "key-modal-submit"), { className: "key-modal-submit", onClick: function(q) {
return r.submit();
} })) : null), t.a.createElement("span", O(v, "key-modal-cancel"), t.a.createElement(Be, Object.assign({}, O(v, "key-modal-cancel-icon"), { className: "key-modal-cancel", onClick: function() {
me.dispatch({ rjvId: k, name: "RESET" });
} })))));
} }]), a;
}(t.a.PureComponent), kt = function(c) {
_(a, c);
var l = L(a);
function a() {
var r;
f(this, a);
for (var i = arguments.length, v = new Array(i), k = 0; k < i; k++) v[k] = arguments[k];
return (r = l.call.apply(l, [this].concat(v))).isValid = function(x) {
var h = r.props.rjvId, A = ce.get(h, "action", "new-key-request");
return x != "" && Object.keys(A.existing_value).indexOf(x) === -1;
}, r.submit = function(x) {
var h = r.props.rjvId, A = ce.get(h, "action", "new-key-request");
A.new_value = p({}, A.existing_value), A.new_value[x] = r.props.defaultValue, me.dispatch({ name: "VARIABLE_ADDED", rjvId: h, data: A });
}, r;
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = r.active, v = r.theme, k = r.rjvId;
return i ? t.a.createElement(_t, { rjvId: k, theme: v, isValid: this.isValid, submit: this.submit }) : null;
} }]), a;
}(t.a.PureComponent), Ot = function(c) {
_(a, c);
var l = L(a);
function a() {
return f(this, a), l.apply(this, arguments);
}
return b(a, [{ key: "render", value: function() {
var r = this.props, i = r.message, v = r.active, k = r.theme, x = r.rjvId;
return v ? t.a.createElement("div", Object.assign({ className: "validation-failure" }, O(k, "validation-failure"), { onClick: function() {
me.dispatch({ rjvId: x, name: "RESET" });
} }), t.a.createElement("span", O(k, "validation-failure-label"), i), t.a.createElement(Be, O(k, "validation-failure-clear"))) : null;
} }]), a;
}(t.a.PureComponent), ct = function(c) {
_(a, c);
var l = L(a);
function a(r) {
var i;
return f(this, a), (i = l.call(this, r)).rjvId = Date.now().toString(), i.getListeners = function() {
return { reset: i.resetState, "variable-update": i.updateSrc, "add-key-request": i.addKeyRequest };
}, i.updateSrc = function() {
var v, k = ce.get(i.rjvId, "action", "variable-update"), x = k.name, h = k.namespace, A = k.new_value, q = k.existing_value, ee = (k.variable_removed, k.updated_src), ae = k.type, ie = i.props, J = ie.onEdit, se = ie.onDelete, ve = ie.onAdd, H = { existing_src: i.state.src, new_value: A, updated_src: ee, name: x, namespace: h, existing_value: q };
switch (ae) {
case "variable-added":
v = ve(H);
break;
case "variable-edited":
v = J(H);
break;
case "variable-removed":
v = se(H);
}
v !== !1 ? (ce.set(i.rjvId, "global", "src", ee), i.setState({ src: ee })) : i.setState({ validationFailure: !0 });
}, i.addKeyRequest = function() {
i.setState({ addKeyRequest: !0 });
}, i.resetState = function() {
i.setState({ validationFailure: !1, addKeyRequest: !1 });
}, i.state = { addKeyRequest: !1, editKeyRequest: !1, validationFailure: !1, src: a.defaultProps.src, name: a.defaultProps.name, theme: a.defaultProps.theme, validationMessage: a.defaultProps.validationMessage, prevSrc: a.defaultProps.src, prevName: a.defaultProps.name, prevTheme: a.defaultProps.theme }, i;
}
return b(a, [{ key: "componentDidMount", value: function() {
ce.set(this.rjvId, "global", "src", this.state.src);
var r = this.getListeners();
for (var i in r) ce.on(i + "-" + this.rjvId, r[i]);
this.setState({ addKeyRequest: !1, editKeyRequest: !1 });
} }, { key: "componentDidUpdate", value: function(r, i) {
i.addKeyRequest !== !1 && this.setState({ addKeyRequest: !1 }), i.editKeyRequest !== !1 && this.setState({ editKeyRequest: !1 }), r.src !== this.state.src && ce.set(this.rjvId, "global", "src", this.state.src);
} }, { key: "componentWillUnmount", value: function() {
var r = this.getListeners();
for (var i in r) ce.removeListener(i + "-" + this.rjvId, r[i]);
} }, { key: "render", value: function() {
var r = this.state, i = r.validationFailure, v = r.validationMessage, k = r.addKeyRequest, x = r.theme, h = r.src, A = r.name, q = this.props, ee = q.style, ae = q.defaultValue;
return t.a.createElement("div", { className: "react-json-view", style: p(p({}, O(x, "app-container").style), ee) }, t.a.createElement(Ot, { message: v, active: i, theme: x, rjvId: this.rjvId }), t.a.createElement(xt, Object.assign({}, this.props, { src: h, name: A, theme: x, type: C(h), rjvId: this.rjvId })), t.a.createElement(kt, { active: k, theme: x, rjvId: this.rjvId, defaultValue: ae }));
} }], [{ key: "getDerivedStateFromProps", value: function(r, i) {
if (r.src !== i.prevSrc || r.name !== i.prevName || r.theme !== i.prevTheme) {
var v = { src: r.src, name: r.name, theme: r.theme, validationMessage: r.validationMessage, prevSrc: r.src, prevName: r.name, prevTheme: r.theme };
return a.validateState(v);
}
return null;
} }]), a;
}(t.a.PureComponent);
ct.defaultProps = { src: {}, name: "root", theme: "rjv-default", collapsed: !1, collapseStringsAfterLength: !1, shouldCollapse: !1, sortKeys: !1, quotesOnKeys: !0, groupArraysAfterLength: 100, indentWidth: 4, enableClipboard: !0, displayObjectSize: !0, displayDataTypes: !0, onEdit: !1, onDelete: !1, onAdd: !1, onSelect: !1, iconStyle: "triangle", style: {}, validationMessage: "Validation Error", defaultValue: null, displayArrayKey: !0 }, ct.validateState = function(c) {
var l = {};
return C(c.theme) !== "object" || function(a) {
var r = ["base00", "base01", "base02", "base03", "base04", "base05", "base06", "base07", "base08", "base09", "base0A", "base0B", "base0C", "base0D", "base0E", "base0F"];
if (C(a) === "object") {
for (var i = 0; i < r.length; i++) if (!(r[i] in a)) return !1;
return !0;
}
return !1;
}(c.theme) || (console.error("react-json-view error:", "theme prop must be a theme name or valid base-16 theme object.", 'defaulting to "rjv-default" theme'), l.theme = "rjv-default"), C(c.src) !== "object" && C(c.src) !== "array" && (console.error("react-json-view error:", "src property must be a valid json object"), l.name = "ERROR", l.src = { message: "src property must be a valid json object" }), p(p({}, c), l);
}, N(ct), n.default = ct;
}]);
});
})(gt);
var Et = gt.exports;
const Mt = /* @__PURE__ */ At(Et), Ft = /* @__PURE__ */ St({
__proto__: null,
default: Mt
}, [Et]);
export {
Ft as m
};