@lyove/monaco-editor-react
Version:
🌴 Monaco Code Editor for React, without need of configuration files or plugins
1,500 lines (1,496 loc) • 221 kB
JavaScript
import './editor.css';
var Pp = Object.defineProperty;
var Fp = (q, F, a) => F in q ? Pp(q, F, { enumerable: !0, configurable: !0, writable: !0, value: a }) : q[F] = a;
var _n = (q, F, a) => (Fp(q, typeof F != "symbol" ? F + "" : F, a), a);
import oo from "react";
var Jt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Dp(q) {
return q && q.__esModule && Object.prototype.hasOwnProperty.call(q, "default") ? q.default : q;
}
var Li = { exports: {} }, Et = {};
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var Ci, af;
function hf() {
if (af)
return Ci;
af = 1;
var q = Object.getOwnPropertySymbols, F = Object.prototype.hasOwnProperty, a = Object.prototype.propertyIsEnumerable;
function L(S) {
if (S == null)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(S);
}
function B() {
try {
if (!Object.assign)
return !1;
var S = new String("abc");
if (S[5] = "de", Object.getOwnPropertyNames(S)[0] === "5")
return !1;
for (var T = {}, O = 0; O < 10; O++)
T["_" + String.fromCharCode(O)] = O;
var x = Object.getOwnPropertyNames(T).map(function(D) {
return T[D];
});
if (x.join("") !== "0123456789")
return !1;
var M = {};
return "abcdefghijklmnopqrst".split("").forEach(function(D) {
M[D] = D;
}), Object.keys(Object.assign({}, M)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
}
return Ci = B() ? Object.assign : function(S, T) {
for (var O, x = L(S), M, D = 1; D < arguments.length; D++) {
O = Object(arguments[D]);
for (var G in O)
F.call(O, G) && (x[G] = O[G]);
if (q) {
M = q(O);
for (var j = 0; j < M.length; j++)
a.call(O, M[j]) && (x[M[j]] = O[M[j]]);
}
}
return x;
}, Ci;
}
/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var ff;
function Wp() {
if (ff)
return Et;
ff = 1, hf();
var q = oo, F = 60103;
if (Et.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
var a = Symbol.for;
F = a("react.element"), Et.Fragment = a("react.fragment");
}
var L = q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, B = Object.prototype.hasOwnProperty, S = { key: !0, ref: !0, __self: !0, __source: !0 };
function T(O, x, M) {
var D, G = {}, j = null, gn = null;
M !== void 0 && (j = "" + M), x.key !== void 0 && (j = "" + x.key), x.ref !== void 0 && (gn = x.ref);
for (D in x)
B.call(x, D) && !S.hasOwnProperty(D) && (G[D] = x[D]);
if (O && O.defaultProps)
for (D in x = O.defaultProps, x)
G[D] === void 0 && (G[D] = x[D]);
return { $$typeof: F, type: O, key: j, ref: gn, props: G, _owner: L.current };
}
return Et.jsx = T, Et.jsxs = T, Et;
}
var Oi = {};
/** @license React v17.0.2
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var cf;
function Bp() {
return cf || (cf = 1, function(q) {
process.env.NODE_ENV !== "production" && function() {
var F = oo, a = hf(), L = 60103, B = 60106;
q.Fragment = 60107;
var S = 60108, T = 60114, O = 60109, x = 60110, M = 60112, D = 60113, G = 60120, j = 60115, gn = 60116, Sn = 60121, qn = 60122, En = 60117, fe = 60129, Rt = 60131;
if (typeof Symbol == "function" && Symbol.for) {
var Z = Symbol.for;
L = Z("react.element"), B = Z("react.portal"), q.Fragment = Z("react.fragment"), S = Z("react.strict_mode"), T = Z("react.profiler"), O = Z("react.provider"), x = Z("react.context"), M = Z("react.forward_ref"), D = Z("react.suspense"), G = Z("react.suspense_list"), j = Z("react.memo"), gn = Z("react.lazy"), Sn = Z("react.block"), qn = Z("react.server.block"), En = Z("react.fundamental"), Z("react.scope"), Z("react.opaque.id"), fe = Z("react.debug_trace_mode"), Z("react.offscreen"), Rt = Z("react.legacy_hidden");
}
var me = typeof Symbol == "function" && Symbol.iterator, zn = "@@iterator";
function Oe(c) {
if (c === null || typeof c != "object")
return null;
var v = me && c[me] || c[zn];
return typeof v == "function" ? v : null;
}
var yn = F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function dn(c) {
{
for (var v = arguments.length, _ = new Array(v > 1 ? v - 1 : 0), C = 1; C < v; C++)
_[C - 1] = arguments[C];
At("error", c, _);
}
}
function At(c, v, _) {
{
var C = yn.ReactDebugCurrentFrame, V = C.getStackAddendum();
V !== "" && (v += "%s", _ = _.concat([V]));
var Q = _.map(function(Y) {
return "" + Y;
});
Q.unshift("Warning: " + v), Function.prototype.apply.call(console[c], console, Q);
}
}
var io = !1;
function uo(c) {
return !!(typeof c == "string" || typeof c == "function" || c === q.Fragment || c === T || c === fe || c === S || c === D || c === G || c === Rt || io || typeof c == "object" && c !== null && (c.$$typeof === gn || c.$$typeof === j || c.$$typeof === O || c.$$typeof === x || c.$$typeof === M || c.$$typeof === En || c.$$typeof === Sn || c[0] === qn));
}
function ao(c, v, _) {
var C = v.displayName || v.name || "";
return c.displayName || (C !== "" ? _ + "(" + C + ")" : _);
}
function Qt(c) {
return c.displayName || "Context";
}
function Fn(c) {
if (c == null)
return null;
if (typeof c.tag == "number" && dn("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."), typeof c == "function")
return c.displayName || c.name || null;
if (typeof c == "string")
return c;
switch (c) {
case q.Fragment:
return "Fragment";
case B:
return "Portal";
case T:
return "Profiler";
case S:
return "StrictMode";
case D:
return "Suspense";
case G:
return "SuspenseList";
}
if (typeof c == "object")
switch (c.$$typeof) {
case x:
var v = c;
return Qt(v) + ".Consumer";
case O:
var _ = c;
return Qt(_._context) + ".Provider";
case M:
return ao(c, c.render, "ForwardRef");
case j:
return Fn(c.type);
case Sn:
return Fn(c._render);
case gn: {
var C = c, V = C._payload, Q = C._init;
try {
return Fn(Q(V));
} catch {
return null;
}
}
}
return null;
}
var qe = 0, nr, ce, ee, er, ze, Dn, tr;
function rr() {
}
rr.__reactDisabledLog = !0;
function fo() {
{
if (qe === 0) {
nr = console.log, ce = console.info, ee = console.warn, er = console.error, ze = console.group, Dn = console.groupCollapsed, tr = console.groupEnd;
var c = {
configurable: !0,
enumerable: !0,
value: rr,
writable: !0
};
Object.defineProperties(console, {
info: c,
log: c,
warn: c,
error: c,
group: c,
groupCollapsed: c,
groupEnd: c
});
}
qe++;
}
}
function Te() {
{
if (qe--, qe === 0) {
var c = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: a({}, c, {
value: nr
}),
info: a({}, c, {
value: ce
}),
warn: a({}, c, {
value: ee
}),
error: a({}, c, {
value: er
}),
group: a({}, c, {
value: ze
}),
groupCollapsed: a({}, c, {
value: Dn
}),
groupEnd: a({}, c, {
value: tr
})
});
}
qe < 0 && dn("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var Le = yn.ReactCurrentDispatcher, Ct;
function se(c, v, _) {
{
if (Ct === void 0)
try {
throw Error();
} catch (V) {
var C = V.stack.trim().match(/\n( *(at )?)/);
Ct = C && C[1] || "";
}
return `
` + Ct + c;
}
}
var ke = !1, ft;
{
var ct = typeof WeakMap == "function" ? WeakMap : Map;
ft = new ct();
}
function Ge(c, v) {
if (!c || ke)
return "";
{
var _ = ft.get(c);
if (_ !== void 0)
return _;
}
var C;
ke = !0;
var V = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var Q;
Q = Le.current, Le.current = null, fo();
try {
if (v) {
var Y = function() {
throw Error();
};
if (Object.defineProperty(Y.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(Y, []);
} catch (re) {
C = re;
}
Reflect.construct(c, [], Y);
} else {
try {
Y.call();
} catch (re) {
C = re;
}
c.call(Y.prototype);
}
} else {
try {
throw Error();
} catch (re) {
C = re;
}
c();
}
} catch (re) {
if (re && C && typeof re.stack == "string") {
for (var H = re.stack.split(`
`), kn = C.stack.split(`
`), un = H.length - 1, fn = kn.length - 1; un >= 1 && fn >= 0 && H[un] !== kn[fn]; )
fn--;
for (; un >= 1 && fn >= 0; un--, fn--)
if (H[un] !== kn[fn]) {
if (un !== 1 || fn !== 1)
do
if (un--, fn--, fn < 0 || H[un] !== kn[fn]) {
var Yn = `
` + H[un].replace(" at new ", " at ");
return typeof c == "function" && ft.set(c, Yn), Yn;
}
while (un >= 1 && fn >= 0);
break;
}
}
} finally {
ke = !1, Le.current = Q, Te(), Error.prepareStackTrace = V;
}
var Pe = c ? c.displayName || c.name : "", dr = Pe ? se(Pe) : "";
return typeof c == "function" && ft.set(c, dr), dr;
}
function Ot(c, v, _) {
return Ge(c, !1);
}
function Wn(c) {
var v = c.prototype;
return !!(v && v.isReactComponent);
}
function le(c, v, _) {
if (c == null)
return "";
if (typeof c == "function")
return Ge(c, Wn(c));
if (typeof c == "string")
return se(c);
switch (c) {
case D:
return se("Suspense");
case G:
return se("SuspenseList");
}
if (typeof c == "object")
switch (c.$$typeof) {
case M:
return Ot(c.render);
case j:
return le(c.type, v, _);
case Sn:
return Ot(c._render);
case gn: {
var C = c, V = C._payload, Q = C._init;
try {
return le(Q(V), v, _);
} catch {
}
}
}
return "";
}
var or = {}, Gn = yn.ReactDebugCurrentFrame;
function Ye(c) {
if (c) {
var v = c._owner, _ = le(c.type, c._source, v ? v.type : null);
Gn.setExtraStackFrame(_);
} else
Gn.setExtraStackFrame(null);
}
function co(c, v, _, C, V) {
{
var Q = Function.call.bind(Object.prototype.hasOwnProperty);
for (var Y in c)
if (Q(c, Y)) {
var H = void 0;
try {
if (typeof c[Y] != "function") {
var kn = Error((C || "React class") + ": " + _ + " type `" + Y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[Y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw kn.name = "Invariant Violation", kn;
}
H = c[Y](v, Y, C, _, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (un) {
H = un;
}
H && !(H instanceof Error) && (Ye(V), dn("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", C || "React class", _, Y, typeof H), Ye(null)), H instanceof Error && !(H.message in or) && (or[H.message] = !0, Ye(V), dn("Failed %s type: %s", _, H.message), Ye(null));
}
}
}
var te = yn.ReactCurrentOwner, Rn = Object.prototype.hasOwnProperty, Ke = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, je, ir, ve;
ve = {};
function so(c) {
if (Rn.call(c, "ref")) {
var v = Object.getOwnPropertyDescriptor(c, "ref").get;
if (v && v.isReactWarning)
return !1;
}
return c.ref !== void 0;
}
function Ze(c) {
if (Rn.call(c, "key")) {
var v = Object.getOwnPropertyDescriptor(c, "key").get;
if (v && v.isReactWarning)
return !1;
}
return c.key !== void 0;
}
function Ie(c, v) {
if (typeof c.ref == "string" && te.current && v && te.current.stateNode !== v) {
var _ = Fn(te.current.type);
ve[_] || (dn('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Fn(te.current.type), c.ref), ve[_] = !0);
}
}
function Tt(c, v) {
{
var _ = function() {
je || (je = !0, dn("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
};
_.isReactWarning = !0, Object.defineProperty(c, "key", {
get: _,
configurable: !0
});
}
}
function Lt(c, v) {
{
var _ = function() {
ir || (ir = !0, dn("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
};
_.isReactWarning = !0, Object.defineProperty(c, "ref", {
get: _,
configurable: !0
});
}
}
var It = function(c, v, _, C, V, Q, Y) {
var H = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: L,
// Built-in properties that belong on the element
type: c,
key: v,
ref: _,
props: Y,
// Record the component responsible for creating this element.
_owner: Q
};
return H._store = {}, Object.defineProperty(H._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(H, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: C
}), Object.defineProperty(H, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: V
}), Object.freeze && (Object.freeze(H.props), Object.freeze(H)), H;
};
function Pt(c, v, _, C, V) {
{
var Q, Y = {}, H = null, kn = null;
_ !== void 0 && (H = "" + _), Ze(v) && (H = "" + v.key), so(v) && (kn = v.ref, Ie(v, V));
for (Q in v)
Rn.call(v, Q) && !Ke.hasOwnProperty(Q) && (Y[Q] = v[Q]);
if (c && c.defaultProps) {
var un = c.defaultProps;
for (Q in un)
Y[Q] === void 0 && (Y[Q] = un[Q]);
}
if (H || kn) {
var fn = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
H && Tt(Y, fn), kn && Lt(Y, fn);
}
return It(c, H, kn, V, C, te.current, Y);
}
}
var Je = yn.ReactCurrentOwner, st = yn.ReactDebugCurrentFrame;
function de(c) {
if (c) {
var v = c._owner, _ = le(c.type, c._source, v ? v.type : null);
st.setExtraStackFrame(_);
} else
st.setExtraStackFrame(null);
}
var Xe;
Xe = !1;
function Ve(c) {
return typeof c == "object" && c !== null && c.$$typeof === L;
}
function ur() {
{
if (Je.current) {
var c = Fn(Je.current.type);
if (c)
return `
Check the render method of \`` + c + "`.";
}
return "";
}
}
function lo(c) {
{
if (c !== void 0) {
var v = c.fileName.replace(/^.*[\\\/]/, ""), _ = c.lineNumber;
return `
Check your code at ` + v + ":" + _ + ".";
}
return "";
}
}
var ar = {};
function fr(c) {
{
var v = ur();
if (!v) {
var _ = typeof c == "string" ? c : c.displayName || c.name;
_ && (v = `
Check the top-level render call using <` + _ + ">.");
}
return v;
}
}
function Ft(c, v) {
{
if (!c._store || c._store.validated || c.key != null)
return;
c._store.validated = !0;
var _ = fr(v);
if (ar[_])
return;
ar[_] = !0;
var C = "";
c && c._owner && c._owner !== Je.current && (C = " It was passed a child from " + Fn(c._owner.type) + "."), de(c), dn('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', _, C), de(null);
}
}
function cr(c, v) {
{
if (typeof c != "object")
return;
if (Array.isArray(c))
for (var _ = 0; _ < c.length; _++) {
var C = c[_];
Ve(C) && Ft(C, v);
}
else if (Ve(c))
c._store && (c._store.validated = !0);
else if (c) {
var V = Oe(c);
if (typeof V == "function" && V !== c.entries)
for (var Q = V.call(c), Y; !(Y = Q.next()).done; )
Ve(Y.value) && Ft(Y.value, v);
}
}
}
function go(c) {
{
var v = c.type;
if (v == null || typeof v == "string")
return;
var _;
if (typeof v == "function")
_ = v.propTypes;
else if (typeof v == "object" && (v.$$typeof === M || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
v.$$typeof === j))
_ = v.propTypes;
else
return;
if (_) {
var C = Fn(v);
co(_, c.props, "prop", C, c);
} else if (v.PropTypes !== void 0 && !Xe) {
Xe = !0;
var V = Fn(v);
dn("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", V || "Unknown");
}
typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && dn("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function ho(c) {
{
for (var v = Object.keys(c.props), _ = 0; _ < v.length; _++) {
var C = v[_];
if (C !== "children" && C !== "key") {
de(c), dn("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", C), de(null);
break;
}
}
c.ref !== null && (de(c), dn("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
}
}
function sr(c, v, _, C, V, Q) {
{
var Y = uo(c);
if (!Y) {
var H = "";
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (H += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var kn = lo(V);
kn ? H += kn : H += ur();
var un;
c === null ? un = "null" : Array.isArray(c) ? un = "array" : c !== void 0 && c.$$typeof === L ? (un = "<" + (Fn(c.type) || "Unknown") + " />", H = " Did you accidentally export a JSX literal instead of a component?") : un = typeof c, dn("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", un, H);
}
var fn = Pt(c, v, _, V, Q);
if (fn == null)
return fn;
if (Y) {
var Yn = v.children;
if (Yn !== void 0)
if (C)
if (Array.isArray(Yn)) {
for (var Pe = 0; Pe < Yn.length; Pe++)
cr(Yn[Pe], c);
Object.freeze && Object.freeze(Yn);
} else
dn("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
cr(Yn, c);
}
return c === q.Fragment ? ho(fn) : go(fn), fn;
}
}
function lr(c, v, _) {
return sr(c, v, _, !0);
}
function po(c, v, _) {
return sr(c, v, _, !1);
}
var mo = po, ko = lr;
q.jsx = mo, q.jsxs = ko;
}();
}(Oi)), Oi;
}
process.env.NODE_ENV === "production" ? Li.exports = Wp() : Li.exports = Bp();
var pf = Li.exports;
const Ce = pf.jsx, mf = pf.jsxs;
var kf = { exports: {} };
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
(function(q) {
(function() {
var F = {}.hasOwnProperty;
function a() {
for (var L = [], B = 0; B < arguments.length; B++) {
var S = arguments[B];
if (S) {
var T = typeof S;
if (T === "string" || T === "number")
L.push(S);
else if (Array.isArray(S)) {
if (S.length) {
var O = a.apply(null, S);
O && L.push(O);
}
} else if (T === "object") {
if (S.toString !== Object.prototype.toString && !S.toString.toString().includes("[native code]")) {
L.push(S.toString());
continue;
}
for (var x in S)
F.call(S, x) && S[x] && L.push(x);
}
}
}
return L.join(" ");
}
q.exports ? (a.default = a, q.exports = a) : window.classNames = a;
})();
})(kf);
var Mp = kf.exports;
const Ii = /* @__PURE__ */ Dp(Mp);
var eo = { exports: {} };
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
eo.exports;
(function(q, F) {
(function() {
var a, L = "4.17.21", B = 200, S = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", T = "Expected a function", O = "Invalid `variable` option passed into `_.template`", x = "__lodash_hash_undefined__", M = 500, D = "__lodash_placeholder__", G = 1, j = 2, gn = 4, Sn = 1, qn = 2, En = 1, fe = 2, Rt = 4, Z = 8, me = 16, zn = 32, Oe = 64, yn = 128, dn = 256, At = 512, io = 30, uo = "...", ao = 800, Qt = 16, Fn = 1, qe = 2, nr = 3, ce = 1 / 0, ee = 9007199254740991, er = 17976931348623157e292, ze = 0 / 0, Dn = 4294967295, tr = Dn - 1, rr = Dn >>> 1, fo = [
["ary", yn],
["bind", En],
["bindKey", fe],
["curry", Z],
["curryRight", me],
["flip", At],
["partial", zn],
["partialRight", Oe],
["rearg", dn]
], Te = "[object Arguments]", Le = "[object Array]", Ct = "[object AsyncFunction]", se = "[object Boolean]", ke = "[object Date]", ft = "[object DOMException]", ct = "[object Error]", Ge = "[object Function]", Ot = "[object GeneratorFunction]", Wn = "[object Map]", le = "[object Number]", or = "[object Null]", Gn = "[object Object]", Ye = "[object Promise]", co = "[object Proxy]", te = "[object RegExp]", Rn = "[object Set]", Ke = "[object String]", je = "[object Symbol]", ir = "[object Undefined]", ve = "[object WeakMap]", so = "[object WeakSet]", Ze = "[object ArrayBuffer]", Ie = "[object DataView]", Tt = "[object Float32Array]", Lt = "[object Float64Array]", It = "[object Int8Array]", Pt = "[object Int16Array]", Je = "[object Int32Array]", st = "[object Uint8Array]", de = "[object Uint8ClampedArray]", Xe = "[object Uint16Array]", Ve = "[object Uint32Array]", ur = /\b__p \+= '';/g, lo = /\b(__p \+=) '' \+/g, ar = /(__e\(.*?\)|\b__t\)) \+\n'';/g, fr = /&(?:amp|lt|gt|quot|#39);/g, Ft = /[&<>"']/g, cr = RegExp(fr.source), go = RegExp(Ft.source), ho = /<%-([\s\S]+?)%>/g, sr = /<%([\s\S]+?)%>/g, lr = /<%=([\s\S]+?)%>/g, po = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, mo = /^\w*$/, ko = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, c = /[\\^$.*+?()[\]{}|]/g, v = RegExp(c.source), _ = /^\s+/, C = /\s/, V = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Q = /\{\n\/\* \[wrapped with (.+)\] \*/, Y = /,? & /, H = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, kn = /[()=,{}\[\]\/\s]/, un = /\\(\\)?/g, fn = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Yn = /\w*$/, Pe = /^[-+]0x[0-9a-f]+$/i, dr = /^0b[01]+$/i, re = /^\[object .+?Constructor\]$/, wf = /^0o[0-7]+$/i, xf = /^(?:0|[1-9]\d*)$/, Sf = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, gr = /($^)/, Ef = /['\n\r\u2028\u2029\\]/g, hr = "\\ud800-\\udfff", Rf = "\\u0300-\\u036f", Af = "\\ufe20-\\ufe2f", Cf = "\\u20d0-\\u20ff", Di = Rf + Af + Cf, Wi = "\\u2700-\\u27bf", Bi = "a-z\\xdf-\\xf6\\xf8-\\xff", Of = "\\xac\\xb1\\xd7\\xf7", Tf = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Lf = "\\u2000-\\u206f", If = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Mi = "A-Z\\xc0-\\xd6\\xd8-\\xde", Ui = "\\ufe0e\\ufe0f", Ni = Of + Tf + Lf + If, vo = "['’]", Pf = "[" + hr + "]", Hi = "[" + Ni + "]", pr = "[" + Di + "]", $i = "\\d+", Ff = "[" + Wi + "]", qi = "[" + Bi + "]", zi = "[^" + hr + Ni + $i + Wi + Bi + Mi + "]", bo = "\\ud83c[\\udffb-\\udfff]", Df = "(?:" + pr + "|" + bo + ")", Gi = "[^" + hr + "]", _o = "(?:\\ud83c[\\udde6-\\uddff]){2}", yo = "[\\ud800-\\udbff][\\udc00-\\udfff]", lt = "[" + Mi + "]", Yi = "\\u200d", Ki = "(?:" + qi + "|" + zi + ")", Wf = "(?:" + lt + "|" + zi + ")", ji = "(?:" + vo + "(?:d|ll|m|re|s|t|ve))?", Zi = "(?:" + vo + "(?:D|LL|M|RE|S|T|VE))?", Ji = Df + "?", Xi = "[" + Ui + "]?", Bf = "(?:" + Yi + "(?:" + [Gi, _o, yo].join("|") + ")" + Xi + Ji + ")*", Mf = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Uf = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Vi = Xi + Ji + Bf, Nf = "(?:" + [Ff, _o, yo].join("|") + ")" + Vi, Hf = "(?:" + [Gi + pr + "?", pr, _o, yo, Pf].join("|") + ")", $f = RegExp(vo, "g"), qf = RegExp(pr, "g"), wo = RegExp(bo + "(?=" + bo + ")|" + Hf + Vi, "g"), zf = RegExp([
lt + "?" + qi + "+" + ji + "(?=" + [Hi, lt, "$"].join("|") + ")",
Wf + "+" + Zi + "(?=" + [Hi, lt + Ki, "$"].join("|") + ")",
lt + "?" + Ki + "+" + ji,
lt + "+" + Zi,
Uf,
Mf,
$i,
Nf
].join("|"), "g"), Gf = RegExp("[" + Yi + hr + Di + Ui + "]"), Yf = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Kf = [
"Array",
"Buffer",
"DataView",
"Date",
"Error",
"Float32Array",
"Float64Array",
"Function",
"Int8Array",
"Int16Array",
"Int32Array",
"Map",
"Math",
"Object",
"Promise",
"RegExp",
"Set",
"String",
"Symbol",
"TypeError",
"Uint8Array",
"Uint8ClampedArray",
"Uint16Array",
"Uint32Array",
"WeakMap",
"_",
"clearTimeout",
"isFinite",
"parseInt",
"setTimeout"
], jf = -1, rn = {};
rn[Tt] = rn[Lt] = rn[It] = rn[Pt] = rn[Je] = rn[st] = rn[de] = rn[Xe] = rn[Ve] = !0, rn[Te] = rn[Le] = rn[Ze] = rn[se] = rn[Ie] = rn[ke] = rn[ct] = rn[Ge] = rn[Wn] = rn[le] = rn[Gn] = rn[te] = rn[Rn] = rn[Ke] = rn[ve] = !1;
var tn = {};
tn[Te] = tn[Le] = tn[Ze] = tn[Ie] = tn[se] = tn[ke] = tn[Tt] = tn[Lt] = tn[It] = tn[Pt] = tn[Je] = tn[Wn] = tn[le] = tn[Gn] = tn[te] = tn[Rn] = tn[Ke] = tn[je] = tn[st] = tn[de] = tn[Xe] = tn[Ve] = !0, tn[ct] = tn[Ge] = tn[ve] = !1;
var Zf = {
// Latin-1 Supplement block.
À: "A",
Á: "A",
Â: "A",
Ã: "A",
Ä: "A",
Å: "A",
à: "a",
á: "a",
â: "a",
ã: "a",
ä: "a",
å: "a",
Ç: "C",
ç: "c",
Ð: "D",
ð: "d",
È: "E",
É: "E",
Ê: "E",
Ë: "E",
è: "e",
é: "e",
ê: "e",
ë: "e",
Ì: "I",
Í: "I",
Î: "I",
Ï: "I",
ì: "i",
í: "i",
î: "i",
ï: "i",
Ñ: "N",
ñ: "n",
Ò: "O",
Ó: "O",
Ô: "O",
Õ: "O",
Ö: "O",
Ø: "O",
ò: "o",
ó: "o",
ô: "o",
õ: "o",
ö: "o",
ø: "o",
Ù: "U",
Ú: "U",
Û: "U",
Ü: "U",
ù: "u",
ú: "u",
û: "u",
ü: "u",
Ý: "Y",
ý: "y",
ÿ: "y",
Æ: "Ae",
æ: "ae",
Þ: "Th",
þ: "th",
ß: "ss",
// Latin Extended-A block.
Ā: "A",
Ă: "A",
Ą: "A",
ā: "a",
ă: "a",
ą: "a",
Ć: "C",
Ĉ: "C",
Ċ: "C",
Č: "C",
ć: "c",
ĉ: "c",
ċ: "c",
č: "c",
Ď: "D",
Đ: "D",
ď: "d",
đ: "d",
Ē: "E",
Ĕ: "E",
Ė: "E",
Ę: "E",
Ě: "E",
ē: "e",
ĕ: "e",
ė: "e",
ę: "e",
ě: "e",
Ĝ: "G",
Ğ: "G",
Ġ: "G",
Ģ: "G",
ĝ: "g",
ğ: "g",
ġ: "g",
ģ: "g",
Ĥ: "H",
Ħ: "H",
ĥ: "h",
ħ: "h",
Ĩ: "I",
Ī: "I",
Ĭ: "I",
Į: "I",
İ: "I",
ĩ: "i",
ī: "i",
ĭ: "i",
į: "i",
ı: "i",
Ĵ: "J",
ĵ: "j",
Ķ: "K",
ķ: "k",
ĸ: "k",
Ĺ: "L",
Ļ: "L",
Ľ: "L",
Ŀ: "L",
Ł: "L",
ĺ: "l",
ļ: "l",
ľ: "l",
ŀ: "l",
ł: "l",
Ń: "N",
Ņ: "N",
Ň: "N",
Ŋ: "N",
ń: "n",
ņ: "n",
ň: "n",
ŋ: "n",
Ō: "O",
Ŏ: "O",
Ő: "O",
ō: "o",
ŏ: "o",
ő: "o",
Ŕ: "R",
Ŗ: "R",
Ř: "R",
ŕ: "r",
ŗ: "r",
ř: "r",
Ś: "S",
Ŝ: "S",
Ş: "S",
Š: "S",
ś: "s",
ŝ: "s",
ş: "s",
š: "s",
Ţ: "T",
Ť: "T",
Ŧ: "T",
ţ: "t",
ť: "t",
ŧ: "t",
Ũ: "U",
Ū: "U",
Ŭ: "U",
Ů: "U",
Ű: "U",
Ų: "U",
ũ: "u",
ū: "u",
ŭ: "u",
ů: "u",
ű: "u",
ų: "u",
Ŵ: "W",
ŵ: "w",
Ŷ: "Y",
ŷ: "y",
Ÿ: "Y",
Ź: "Z",
Ż: "Z",
Ž: "Z",
ź: "z",
ż: "z",
ž: "z",
IJ: "IJ",
ij: "ij",
Œ: "Oe",
œ: "oe",
ʼn: "'n",
ſ: "s"
}, Jf = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
}, Xf = {
"&": "&",
"<": "<",
">": ">",
""": '"',
"'": "'"
}, Vf = {
"\\": "\\",
"'": "'",
"\n": "n",
"\r": "r",
"\u2028": "u2028",
"\u2029": "u2029"
}, Qf = parseFloat, nc = parseInt, Qi = typeof Jt == "object" && Jt && Jt.Object === Object && Jt, ec = typeof self == "object" && self && self.Object === Object && self, vn = Qi || ec || Function("return this")(), xo = F && !F.nodeType && F, Qe = xo && !0 && q && !q.nodeType && q, nu = Qe && Qe.exports === xo, So = nu && Qi.process, Kn = function() {
try {
var l = Qe && Qe.require && Qe.require("util").types;
return l || So && So.binding && So.binding("util");
} catch {
}
}(), eu = Kn && Kn.isArrayBuffer, tu = Kn && Kn.isDate, ru = Kn && Kn.isMap, ou = Kn && Kn.isRegExp, iu = Kn && Kn.isSet, uu = Kn && Kn.isTypedArray;
function Bn(l, h, g) {
switch (g.length) {
case 0:
return l.call(h);
case 1:
return l.call(h, g[0]);
case 2:
return l.call(h, g[0], g[1]);
case 3:
return l.call(h, g[0], g[1], g[2]);
}
return l.apply(h, g);
}
function tc(l, h, g, y) {
for (var I = -1, J = l == null ? 0 : l.length; ++I < J; ) {
var hn = l[I];
h(y, hn, g(hn), l);
}
return y;
}
function jn(l, h) {
for (var g = -1, y = l == null ? 0 : l.length; ++g < y && h(l[g], g, l) !== !1; )
;
return l;
}
function rc(l, h) {
for (var g = l == null ? 0 : l.length; g-- && h(l[g], g, l) !== !1; )
;
return l;
}
function au(l, h) {
for (var g = -1, y = l == null ? 0 : l.length; ++g < y; )
if (!h(l[g], g, l))
return !1;
return !0;
}
function Fe(l, h) {
for (var g = -1, y = l == null ? 0 : l.length, I = 0, J = []; ++g < y; ) {
var hn = l[g];
h(hn, g, l) && (J[I++] = hn);
}
return J;
}
function mr(l, h) {
var g = l == null ? 0 : l.length;
return !!g && dt(l, h, 0) > -1;
}
function Eo(l, h, g) {
for (var y = -1, I = l == null ? 0 : l.length; ++y < I; )
if (g(h, l[y]))
return !0;
return !1;
}
function on(l, h) {
for (var g = -1, y = l == null ? 0 : l.length, I = Array(y); ++g < y; )
I[g] = h(l[g], g, l);
return I;
}
function De(l, h) {
for (var g = -1, y = h.length, I = l.length; ++g < y; )
l[I + g] = h[g];
return l;
}
function Ro(l, h, g, y) {
var I = -1, J = l == null ? 0 : l.length;
for (y && J && (g = l[++I]); ++I < J; )
g = h(g, l[I], I, l);
return g;
}
function oc(l, h, g, y) {
var I = l == null ? 0 : l.length;
for (y && I && (g = l[--I]); I--; )
g = h(g, l[I], I, l);
return g;
}
function Ao(l, h) {
for (var g = -1, y = l == null ? 0 : l.length; ++g < y; )
if (h(l[g], g, l))
return !0;
return !1;
}
var ic = Co("length");
function uc(l) {
return l.split("");
}
function ac(l) {
return l.match(H) || [];
}
function fu(l, h, g) {
var y;
return g(l, function(I, J, hn) {
if (h(I, J, hn))
return y = J, !1;
}), y;
}
function kr(l, h, g, y) {
for (var I = l.length, J = g + (y ? 1 : -1); y ? J-- : ++J < I; )
if (h(l[J], J, l))
return J;
return -1;
}
function dt(l, h, g) {
return h === h ? bc(l, h, g) : kr(l, cu, g);
}
function fc(l, h, g, y) {
for (var I = g - 1, J = l.length; ++I < J; )
if (y(l[I], h))
return I;
return -1;
}
function cu(l) {
return l !== l;
}
function su(l, h) {
var g = l == null ? 0 : l.length;
return g ? To(l, h) / g : ze;
}
function Co(l) {
return function(h) {
return h == null ? a : h[l];
};
}
function Oo(l) {
return function(h) {
return l == null ? a : l[h];
};
}
function lu(l, h, g, y, I) {
return I(l, function(J, hn, en) {
g = y ? (y = !1, J) : h(g, J, hn, en);
}), g;
}
function cc(l, h) {
var g = l.length;
for (l.sort(h); g--; )
l[g] = l[g].value;
return l;
}
function To(l, h) {
for (var g, y = -1, I = l.length; ++y < I; ) {
var J = h(l[y]);
J !== a && (g = g === a ? J : g + J);
}
return g;
}
function Lo(l, h) {
for (var g = -1, y = Array(l); ++g < l; )
y[g] = h(g);
return y;
}
function sc(l, h) {
return on(h, function(g) {
return [g, l[g]];
});
}
function du(l) {
return l && l.slice(0, mu(l) + 1).replace(_, "");
}
function Mn(l) {
return function(h) {
return l(h);
};
}
function Io(l, h) {
return on(h, function(g) {
return l[g];
});
}
function Dt(l, h) {
return l.has(h);
}
function gu(l, h) {
for (var g = -1, y = l.length; ++g < y && dt(h, l[g], 0) > -1; )
;
return g;
}
function hu(l, h) {
for (var g = l.length; g-- && dt(h, l[g], 0) > -1; )
;
return g;
}
function lc(l, h) {
for (var g = l.length, y = 0; g--; )
l[g] === h && ++y;
return y;
}
var dc = Oo(Zf), gc = Oo(Jf);
function hc(l) {
return "\\" + Vf[l];
}
function pc(l, h) {
return l == null ? a : l[h];
}
function gt(l) {
return Gf.test(l);
}
function mc(l) {
return Yf.test(l);
}
function kc(l) {
for (var h, g = []; !(h = l.next()).done; )
g.push(h.value);
return g;
}
function Po(l) {
var h = -1, g = Array(l.size);
return l.forEach(function(y, I) {
g[++h] = [I, y];
}), g;
}
function pu(l, h) {
return function(g) {
return l(h(g));
};
}
function We(l, h) {
for (var g = -1, y = l.length, I = 0, J = []; ++g < y; ) {
var hn = l[g];
(hn === h || hn === D) && (l[g] = D, J[I++] = g);
}
return J;
}
function vr(l) {
var h = -1, g = Array(l.size);
return l.forEach(function(y) {
g[++h] = y;
}), g;
}
function vc(l) {
var h = -1, g = Array(l.size);
return l.forEach(function(y) {
g[++h] = [y, y];
}), g;
}
function bc(l, h, g) {
for (var y = g - 1, I = l.length; ++y < I; )
if (l[y] === h)
return y;
return -1;
}
function _c(l, h, g) {
for (var y = g + 1; y--; )
if (l[y] === h)
return y;
return y;
}
function ht(l) {
return gt(l) ? wc(l) : ic(l);
}
function oe(l) {
return gt(l) ? xc(l) : uc(l);
}
function mu(l) {
for (var h = l.length; h-- && C.test(l.charAt(h)); )
;
return h;
}
var yc = Oo(Xf);
function wc(l) {
for (var h = wo.lastIndex = 0; wo.test(l); )
++h;
return h;
}
function xc(l) {
return l.match(wo) || [];
}
function Sc(l) {
return l.match(zf) || [];
}
var Ec = function l(h) {
h = h == null ? vn : pt.defaults(vn.Object(), h, pt.pick(vn, Kf));
var g = h.Array, y = h.Date, I = h.Error, J = h.Function, hn = h.Math, en = h.Object, Fo = h.RegExp, Rc = h.String, Zn = h.TypeError, br = g.prototype, Ac = J.prototype, mt = en.prototype, _r = h["__core-js_shared__"], yr = Ac.toString, nn = mt.hasOwnProperty, Cc = 0, ku = function() {
var n = /[^.]+$/.exec(_r && _r.keys && _r.keys.IE_PROTO || "");
return n ? "Symbol(src)_1." + n : "";
}(), wr = mt.toString, Oc = yr.call(en), Tc = vn._, Lc = Fo(
"^" + yr.call(nn).replace(c, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
), xr = nu ? h.Buffer : a, Be = h.Symbol, Sr = h.Uint8Array, vu = xr ? xr.allocUnsafe : a, Er = pu(en.getPrototypeOf, en), bu = en.create, _u = mt.propertyIsEnumerable, Rr = br.splice, yu = Be ? Be.isConcatSpreadable : a, Wt = Be ? Be.iterator : a, nt = Be ? Be.toStringTag : a, Ar = function() {
try {
var n = it(en, "defineProperty");
return n({}, "", {}), n;
} catch {
}
}(), Ic = h.clearTimeout !== vn.clearTimeout && h.clearTimeout, Pc = y && y.now !== vn.Date.now && y.now, Fc = h.setTimeout !== vn.setTimeout && h.setTimeout, Cr = hn.ceil, Or = hn.floor, Do = en.getOwnPropertySymbols, Dc = xr ? xr.isBuffer : a, wu = h.isFinite, Wc = br.join, Bc = pu(en.keys, en), pn = hn.max, wn = hn.min, Mc = y.now, Uc = h.parseInt, xu = hn.random, Nc = br.reverse, Wo = it(h, "DataView"), Bt = it(h, "Map"), Bo = it(h, "Promise"), kt = it(h, "Set"), Mt = it(h, "WeakMap"), Ut = it(en, "create"), Tr = Mt && new Mt(), vt = {}, Hc = ut(Wo), $c = ut(Bt), qc = ut(Bo), zc = ut(kt), Gc = ut(Mt), Lr = Be ? Be.prototype : a, Nt = Lr ? Lr.valueOf : a, Su = Lr ? Lr.toString : a;
function i(n) {
if (cn(n) && !P(n) && !(n instanceof z)) {
if (n instanceof Jn)
return n;
if (nn.call(n, "__wrapped__"))
return Ea(n);
}
return new Jn(n);
}
var bt = function() {
function n() {
}
return function(e) {
if (!an(e))
return {};
if (bu)
return bu(e);
n.prototype = e;
var t = new n();
return n.prototype = a, t;
};
}();
function Ir() {
}
function Jn(n, e) {
this.__wrapped__ = n, this.__actions__ = [], this.__chain__ = !!e, this.__index__ = 0, this.__values__ = a;
}
i.templateSettings = {
/**
* Used to detect `data` property values to be HTML-escaped.
*
* @memberOf _.templateSettings
* @type {RegExp}
*/
escape: ho,
/**
* Used to detect code to be evaluated.
*
* @memberOf _.templateSettings
* @type {RegExp}
*/
evaluate: sr,
/**
* Used to detect `data` property values to inject.
*
* @memberOf _.templateSettings
* @type {RegExp}
*/
interpolate: lr,
/**
* Used to reference the data object in the template text.
*
* @memberOf _.templateSettings
* @type {string}
*/
variable: "",
/**
* Used to import variables into the compiled template.
*
* @memberOf _.templateSettings
* @type {Object}
*/
imports: {
/**
* A reference to the `lodash` function.
*
* @memberOf _.templateSettings.imports
* @type {Function}
*/
_: i
}
}, i.prototype = Ir.prototype, i.prototype.constructor = i, Jn.prototype = bt(Ir.prototype), Jn.prototype.constructor = Jn;
function z(n) {
this.__wrapped__ = n, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = Dn, this.__views__ = [];
}
function Yc() {
var n = new z(this.__wrapped__);
return n.__actions__ = Tn(this.__actions__), n.__dir__ = this.__dir__, n.__filtered__ = this.__filtered__, n.__iteratees__ = Tn(this.__iteratees__), n.__takeCount__ = this.__takeCount__, n.__views__ = Tn(this.__views__), n;
}
function Kc() {
if (this.__filtered__) {
var n = new z(this);
n.__dir__ = -1, n.__filtered__ = !0;
} else
n = this.clone(), n.__dir__ *= -1;
return n;
}
function jc() {
var n = this.__wrapped__.value(), e = this.__dir__, t = P(n), r = e < 0, o = t ? n.length : 0, u = ul(0, o, this.__views__), f = u.start, s = u.end, d = s - f, p = r ? s : f - 1, m = this.__iteratees__, k = m.length, b = 0, w = wn(d, this.__takeCount__);
if (!t || !r && o == d && w == d)
return ju(n, this.__actions__);
var R = [];
n:
for (; d-- && b < w; ) {
p += e;
for (var U = -1, A = n[p]; ++U < k; ) {
var $ = m[U], K = $.iteratee, Hn = $.type, On = K(A);
if (Hn == qe)
A = On;
else if (!On) {
if (Hn == Fn)
continue n;
break n;
}
}
R[b++] = A;
}
return R;
}
z.prototype = bt(Ir.prototype), z.prototype.constructor = z;
function et(n) {
var e = -1, t = n == null ? 0 : n.length;
for (this.clear(); ++e < t; ) {
var r = n[e];
this.set(r[0], r[1]);
}
}
function Zc() {
this.__data__ = Ut ? Ut(null) : {}, this.size = 0;
}
function Jc(n) {
var e = this.has(n) && delete this.__data__[n];
return this.size -= e ? 1 : 0, e;
}
function Xc(n) {
var e = this.__data__;
if (Ut) {
var t = e[n];
return t === x ? a : t;
}
return nn.call(e, n) ? e[n] : a;
}
function Vc(n) {
var e = this.__data__;
return Ut ? e[n] !== a : nn.call(e, n);
}
function Qc(n, e) {
var t = this.__data__;
return this.size += this.has(n) ? 0 : 1, t[n] = Ut && e === a ? x : e, this;
}
et.prototype.clear = Zc, et.prototype.delete = Jc, et.prototype.get = Xc, et.prototype.has = Vc, et.prototype.set = Qc;
function be(n) {
var e = -1, t = n == null ? 0 : n.length;
for (this.clear(); ++e < t; ) {
var r = n[e];
this.set(r[0], r[1]);
}
}
function ns() {
this.__data__ = [], this.size = 0;
}
function es(n) {
var e = this.__data__, t = Pr(e, n);
if (t < 0)
return !1;
var r = e.length - 1;
return t == r ? e.pop() : Rr.call(e, t, 1), --this.size, !0;
}
function ts(n) {
var e = this.__data__, t = Pr(e, n);
return t < 0 ? a : e[t][1];
}
function rs(n) {
return Pr(this.__data__, n) > -1;
}
function os(n, e) {
var t = this.__data__, r = Pr(t, n);
return r < 0 ? (++this.size, t.push([n, e])) : t[r][1] = e, this;
}
be.prototype.clear = ns, be.prototype.delete = es, be.prototype.get = ts, be.prototype.has = rs, be.prototype.set = os;
function _e(n) {
var e = -1, t = n == null ? 0 : n.length;
for (this.clear(); ++e < t; ) {
var r = n[e];
this.set(r[0], r[1]);
}
}
function is() {
this.size = 0, this.__data__ = {
hash: new et(),
map: new (Bt || be)(),
string: new et()
};
}
function us(n) {
var e = Gr(this, n).delete(n);
return this.size -= e ? 1 : 0, e;
}
function as(n) {
return Gr(this, n).get(n);
}
function fs(n) {
return Gr(this, n).has(n);
}
function cs(n, e) {
var t = Gr(this, n), r = t.size;
return t.set(n, e), this.size += t.size == r ? 0 : 1, this;
}
_e.prototype.clear = is, _e.prototype.delete = us, _e.prototype.get = as, _e.prototype.has = fs, _e.prototype.set = cs;
function tt(n) {
var e = -1, t = n == null ? 0 : n.length;
for (this.__data__ = new _e(); ++e < t; )
this.add(n[e]);
}
function ss(n) {
return this.__data__.set(n, x), this;
}
function ls(n) {
return this.__data__.has(n);
}
tt.prototype.add = tt.prototype.push = ss, tt.prototype.has = ls;
function ie(n) {
var e = this.__data__ = new be(n);
this.size = e.size;
}
function ds() {
this.__data__ = new be(), this.size = 0;
}
function gs(n) {
var e = this.__data__, t = e.delete(n);
return this.size = e.size, t;