diff --git a/.changeset/proud-starfishes-stare.md b/.changeset/proud-starfishes-stare.md
new file mode 100644
index 000000000..a440c1c6e
--- /dev/null
+++ b/.changeset/proud-starfishes-stare.md
@@ -0,0 +1,5 @@
+---
+"modular-scripts": minor
+---
+
+Add `esm-view` modular type
diff --git a/.gitignore b/.gitignore
index 29f0c1940..095089c2f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,7 @@ node_modules
packages/sample-app
packages/sample-esbuild-app
packages/sample-view
+packages/sample-esm-view
packages/sample-package
packages/nested
packages/sample-library-package
diff --git a/babel.config.js b/babel.config.js
index 76acc42c3..78a9d5831 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -17,8 +17,13 @@ module.exports = (api) => {
},
},
],
- '@babel/preset-typescript',
+ '@babel/preset-react',
+ ],
+ overrides: [
+ {
+ test: /\.tsx?$/,
+ presets: ['@babel/preset-typescript'],
+ },
],
- plugins: ['@babel/plugin-proposal-class-properties'],
};
};
diff --git a/packages/modular-scripts/react-scripts/config/webpack.config.js b/packages/modular-scripts/react-scripts/config/webpack.config.js
index 36163ca98..2d4479a34 100644
--- a/packages/modular-scripts/react-scripts/config/webpack.config.js
+++ b/packages/modular-scripts/react-scripts/config/webpack.config.js
@@ -27,9 +27,20 @@ const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const postcssNormalize = require('postcss-normalize');
const isCI = require('is-ci');
-const esbuildTargetFactory = process.env.ESBUILD_TARGET_FACTORY
- ? JSON.parse(process.env.ESBUILD_TARGET_FACTORY)
- : 'es2015';
+const isApp = process.env.MODULAR_IS_APP === 'true';
+const isEsmView = !isApp;
+
+// If it's an app, set it at ESBUILD_TARGET_FACTORY or default to es2015
+// If it's not an app it's an ESM view, then we need es2020
+const esbuildTargetFactory = isApp
+ ? process.env.ESBUILD_TARGET_FACTORY
+ ? JSON.parse(process.env.ESBUILD_TARGET_FACTORY)
+ : 'es2015'
+ : 'es2020';
+
+const { externalDependencies } = process.env.MODULAR_PACKAGE_DEPS
+ ? JSON.parse(process.env.MODULAR_PACKAGE_DEPS)
+ : {};
// Source maps are resource heavy and can cause out of memory issue for large source files.
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
@@ -60,6 +71,17 @@ const sassModuleRegex = /\.module\.(scss|sass)$/;
module.exports = function (webpackEnv) {
const isEnvDevelopment = webpackEnv === 'development';
const isEnvProduction = webpackEnv === 'production';
+ const isEsmViewDevelopment = isEsmView & isEnvDevelopment;
+
+ // This is needed if we're serving a ESM view in development node, since it won't be defined in the view dependencies.
+ if (externalDependencies.react && isEsmViewDevelopment) {
+ externalDependencies['react-dom'] = externalDependencies.react;
+ }
+
+ // Create a map of external dependencies if we're building a ESM view
+ const dependencyMap = isEsmView
+ ? createExternalDependenciesMap(externalDependencies)
+ : {};
// Variable used for enabling profiling in Production
// passed into alias object. Uses a flag if passed into the build command
@@ -135,6 +157,35 @@ module.exports = function (webpackEnv) {
};
const webpackConfig = {
+ externals: isApp
+ ? undefined
+ : function ({ request }, callback) {
+ const parsedModule = parsePackageName(request);
+
+ // If the module is absolute and it is in the import map, we want to externalise it
+ if (
+ parsedModule &&
+ parsedModule.dependencyName &&
+ dependencyMap[parsedModule.dependencyName]
+ ) {
+ const { dependencyName, submodule } = parsedModule;
+
+ const toRewrite = `${dependencyMap[dependencyName]}${
+ submodule ? `/${submodule}` : ''
+ }`;
+
+ return callback(null, toRewrite);
+ }
+ // Otherwise we just want to bundle it
+ return callback();
+ },
+
+ externalsType: isApp ? undefined : 'module',
+ experiments: {
+ outputModule: isApp ? undefined : true,
+ },
+ // Workaround for this bug: https://stackoverflow.com/questions/53905253/cant-set-up-the-hmr-stuck-with-waiting-for-update-signal-from-wds-in-cons
+ target: 'web',
mode: isEnvProduction ? 'production' : isEnvDevelopment && 'development',
// Stop compilation early in production
bail: isEnvProduction,
@@ -145,8 +196,15 @@ module.exports = function (webpackEnv) {
: isEnvDevelopment && 'cheap-module-source-map',
// These are the "entry points" to our application.
// This means they will be the "root" imports that are included in JS bundle.
- entry: paths.appIndexJs,
+ // We bundle a virtual file to trampoline the ESM view as an entry point if we're starting it (ESM views have no ReactDOM.render)
+ entry: isEsmViewDevelopment ? getVirtualTrampoline() : paths.appIndexJs,
output: {
+ module: isApp ? undefined : true,
+ library: isApp
+ ? undefined
+ : {
+ type: 'module',
+ },
// The build folder.
path: isEnvProduction ? paths.appBuild : undefined,
// Add /* filename */ comments to generated require()s in the output.
@@ -223,15 +281,19 @@ module.exports = function (webpackEnv) {
// Automatically split vendor and commons
// https://twitter.com/wSokra/status/969633336732905474
// https://medium.com/webpack/webpack-4-code-splitting-chunk-graph-and-the-splitchunks-optimization-be739a861366
- splitChunks: {
- chunks: 'all',
- },
+ splitChunks: isApp
+ ? {
+ chunks: 'all',
+ }
+ : undefined,
// Keep the runtime chunk separated to enable long term caching
// https://twitter.com/wSokra/status/969679223278505985
// https://github.com/facebook/create-react-app/issues/5358
- runtimeChunk: {
- name: (entrypoint) => `runtime-${entrypoint.name}`,
- },
+ runtimeChunk: isApp
+ ? {
+ name: (entrypoint) => `runtime-${entrypoint.name}`,
+ }
+ : undefined,
},
resolve: {
// This allows you to set a fallback for where webpack should look for modules.
@@ -249,7 +311,7 @@ module.exports = function (webpackEnv) {
// for React Native Web.
extensions: paths.moduleFileExtensions
.map((ext) => `.${ext}`)
- .filter((ext) => useTypeScript || !ext.includes('ts')),
+ .filter((ext) => useTypeScript || !isApp || !ext.includes('ts')),
alias: {
// Support React Native Web
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
@@ -458,35 +520,56 @@ module.exports = function (webpackEnv) {
},
plugins: [
// Generates an `index.html` file with the
-
-
+
+
@@ -8658,32 +8658,49 @@ exports[`When working with a nested app can generate a manifest 1`] = `
"
`;
+exports[`when working with a NODE_ENV app can generate a hashed js chunk in the js directory 1`] = `
+"\\"use strict\\";
+(self.webpackChunknode_env_app = self.webpackChunknode_env_app || []).push([
+ [179],
+ {
+ 908: () => {
+ console.log(\\"production\\");
+ },
+ },
+ (e) => {
+ var n;
+ (n = 908), e((e.s = n));
+ },
+]);
+//# sourceMappingURL=main.a482480b.js.map
+"
+`;
+
exports[`when working with an app can generate a asset-manifest 1`] = `
"{
\\"files\\": {
\\"main.css\\": \\"/static/css/main.1a7488ce.css\\",
- \\"main.js\\": \\"/static/js/main.97cda94b.js\\",
- \\"runtime-main.js\\": \\"/static/js/runtime-main.de9fd74d.js\\",
- \\"static/js/316.7a4d5eb7.js\\": \\"/static/js/316.7a4d5eb7.js\\",
+ \\"main.js\\": \\"/static/js/main.a7fe4bac.js\\",
+ \\"runtime-main.js\\": \\"/static/js/runtime-main.7150bca8.js\\",
+ \\"static/js/316.394ef80b.js\\": \\"/static/js/316.394ef80b.js\\",
\\"index.html\\": \\"/index.html\\",
\\"main.1a7488ce.css.map\\": \\"/static/css/main.1a7488ce.css.map\\",
- \\"main.97cda94b.js.map\\": \\"/static/js/main.97cda94b.js.map\\",
- \\"runtime-main.de9fd74d.js.map\\": \\"/static/js/runtime-main.de9fd74d.js.map\\",
- \\"316.7a4d5eb7.js.map\\": \\"/static/js/316.7a4d5eb7.js.map\\"
+ \\"main.a7fe4bac.js.map\\": \\"/static/js/main.a7fe4bac.js.map\\",
+ \\"runtime-main.7150bca8.js.map\\": \\"/static/js/runtime-main.7150bca8.js.map\\",
+ \\"316.394ef80b.js.map\\": \\"/static/js/316.394ef80b.js.map\\"
},
\\"entrypoints\\": [
- \\"static/js/runtime-main.de9fd74d.js\\",
- \\"static/js/316.7a4d5eb7.js\\",
+ \\"static/js/runtime-main.7150bca8.js\\",
+ \\"static/js/316.394ef80b.js\\",
\\"static/css/main.1a7488ce.css\\",
- \\"static/js/main.97cda94b.js\\"
+ \\"static/js/main.a7fe4bac.js\\"
]
}"
`;
exports[`when working with an app can generate a hashed main js chunk in the js directory 1`] = `
"\\"use strict\\";
-(globalThis.webpackChunksample_app =
- globalThis.webpackChunksample_app || []).push([
+(self.webpackChunksample_app = self.webpackChunksample_app || []).push([
[179],
{
540: (M, L, j) => {
@@ -8740,7 +8757,7 @@ exports[`when working with an app can generate a hashed main js chunk in the js
M.O();
},
]);
-//# sourceMappingURL=main.97cda94b.js.map
+//# sourceMappingURL=main.a7fe4bac.js.map
"
`;
@@ -8762,14 +8779,14 @@ exports[`when working with an app can generate a hashed runtime chunk in the js
if (!o) {
var p = 1 / 0;
for (v = 0; v < r.length; v++) {
- for (var [o, t, n] = r[v], l = !0, i = 0; i < o.length; i++)
- (!1 & n || p >= n) && Object.keys(a.O).every((r) => a.O[r](o[i]))
- ? o.splice(i--, 1)
- : ((l = !1), n < p && (p = n));
- if (l) {
+ for (var [o, t, n] = r[v], s = !0, l = 0; l < o.length; l++)
+ (!1 & n || p >= n) && Object.keys(a.O).every((r) => a.O[r](o[l]))
+ ? o.splice(l--, 1)
+ : ((s = !1), n < p && (p = n));
+ if (s) {
r.splice(v--, 1);
- var s = t();
- void 0 !== s && (e = s);
+ var i = t();
+ void 0 !== i && (e = i);
}
}
return e;
@@ -8786,30 +8803,28 @@ exports[`when working with an app can generate a hashed runtime chunk in the js
var e = (e, o) => {
var t,
n,
- [p, l, i] = o,
- s = 0;
+ [p, s, l] = o,
+ i = 0;
if (p.some((e) => 0 !== r[e])) {
- for (t in l) a.o(l, t) && (a.m[t] = l[t]);
- if (i) var v = i(a);
+ for (t in s) a.o(s, t) && (a.m[t] = s[t]);
+ if (l) var v = l(a);
}
- for (e && e(o); s < p.length; s++)
- (n = p[s]), a.o(r, n) && r[n] && r[n][0](), (r[n] = 0);
+ for (e && e(o); i < p.length; i++)
+ (n = p[i]), a.o(r, n) && r[n] && r[n][0](), (r[n] = 0);
return a.O(v);
},
- o = (globalThis.webpackChunksample_app =
- globalThis.webpackChunksample_app || []);
+ o = (self.webpackChunksample_app = self.webpackChunksample_app || []);
o.forEach(e.bind(null, 0)), (o.push = e.bind(null, o.push.bind(o)));
})();
})();
-//# sourceMappingURL=runtime-main.de9fd74d.js.map
+//# sourceMappingURL=runtime-main.7150bca8.js.map
"
`;
exports[`when working with an app can generate a hashed vendor chunk in the js directory 1`] = `
-"/*! For license information please see 316.7a4d5eb7.js.LICENSE.txt */
+"/*! For license information please see 316.394ef80b.js.LICENSE.txt */
\\"use strict\\";
-(globalThis.webpackChunksample_app =
- globalThis.webpackChunksample_app || []).push([
+(self.webpackChunksample_app = self.webpackChunksample_app || []).push([
[316],
{
320: (e) => {
@@ -9076,8 +9091,8 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
_ = 60114,
P = 60109,
N = 60110,
- T = 60112,
- z = 60113,
+ z = 60112,
+ T = 60113,
L = 60120,
O = 60115,
M = 60116,
@@ -9095,8 +9110,8 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
(_ = j(\\"react.profiler\\")),
(P = j(\\"react.provider\\")),
(N = j(\\"react.context\\")),
- (T = j(\\"react.forward_ref\\")),
- (z = j(\\"react.suspense\\")),
+ (z = j(\\"react.forward_ref\\")),
+ (T = j(\\"react.suspense\\")),
(L = j(\\"react.suspense_list\\")),
(O = j(\\"react.memo\\")),
(M = j(\\"react.lazy\\")),
@@ -9230,7 +9245,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
return \\"Profiler\\";
case C:
return \\"StrictMode\\";
- case z:
+ case T:
return \\"Suspense\\";
case L:
return \\"SuspenseList\\";
@@ -9241,7 +9256,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
return (e.displayName || \\"Context\\") + \\".Consumer\\";
case P:
return (e._context.displayName || \\"Context\\") + \\".Provider\\";
- case T:
+ case z:
var t = e.render;
return (
(t = t.displayName || t.name || \\"\\"),
@@ -9670,8 +9685,8 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
}
var Pe = null,
Ne = null,
- Te = null;
- function ze(e) {
+ ze = null;
+ function Te(e) {
if ((e = rl(e))) {
if (\\"function\\" !== typeof Pe) throw Error(o(280));
var t = e.stateNode;
@@ -9679,14 +9694,14 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
}
}
function Le(e) {
- Ne ? (Te ? Te.push(e) : (Te = [e])) : (Ne = e);
+ Ne ? (ze ? ze.push(e) : (ze = [e])) : (Ne = e);
}
function Oe() {
if (Ne) {
var e = Ne,
- t = Te;
- if (((Te = Ne = null), ze(e), t))
- for (e = 0; e < t.length; e++) ze(t[e]);
+ t = ze;
+ if (((ze = Ne = null), Te(e), t))
+ for (e = 0; e < t.length; e++) Te(t[e]);
}
}
function Me(e, t) {
@@ -9700,7 +9715,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
Ie = !1,
Ue = !1;
function je() {
- (null === Ne && null === Te) || (Fe(), Oe());
+ (null === Ne && null === ze) || (Fe(), Oe());
}
function Ae(e, t) {
var n = e.stateNode;
@@ -10060,8 +10075,8 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
delete xt.animationstart.animation),
\\"TransitionEvent\\" in window || delete xt.transitionend.transition);
var Nt = Pt(\\"animationend\\"),
- Tt = Pt(\\"animationiteration\\"),
- zt = Pt(\\"animationstart\\"),
+ zt = Pt(\\"animationiteration\\"),
+ Tt = Pt(\\"animationstart\\"),
Lt = Pt(\\"transitionend\\"),
Ot = new Map(),
Mt = new Map(),
@@ -10070,9 +10085,9 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
\\"abort\\",
Nt,
\\"animationEnd\\",
- Tt,
- \\"animationIteration\\",
zt,
+ \\"animationIteration\\",
+ Tt,
\\"animationStart\\",
\\"canplay\\",
\\"canPlay\\",
@@ -10534,7 +10549,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
function Nn() {
return Pn;
}
- var Tn = l({}, hn, {
+ var zn = l({}, hn, {
key: function (e) {
if (e.key) {
var t = xn[e.key] || e.key;
@@ -10571,7 +10586,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
: 0;
},
}),
- zn = un(Tn),
+ Tn = un(zn),
Ln = un(
l({}, vn, {
pointerId: 0,
@@ -10680,7 +10695,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
var Yn = null,
Xn = null;
function Gn(e) {
- Tr(e, 0);
+ zr(e, 0);
}
function Zn(e) {
if (G(ll(e))) return e;
@@ -10934,7 +10949,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
})(r, t, void 0, e),
(e.currentTarget = null);
}
- function Tr(e, t) {
+ function zr(e, t) {
t = 0 !== (4 & t);
for (var n = 0; n < e.length; n++) {
var r = e[n],
@@ -10966,7 +10981,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
}
if (Qe) throw ((e = qe), (Qe = !1), (qe = null), e);
}
- function zr(e, t) {
+ function Tr(e, t) {
var n = ol(t),
r = e + \\"__bubble\\";
n.has(r) || (Rr(t, e, 2, !1), n.add(r));
@@ -11072,7 +11087,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
if (0 === ln(n)) break e;
case \\"keydown\\":
case \\"keyup\\":
- i = zn;
+ i = Tn;
break;
case \\"focusin\\":
(s = \\"focus\\"), (i = bn);
@@ -11113,8 +11128,8 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
i = On;
break;
case Nt:
- case Tt:
case zt:
+ case Tt:
i = wn;
break;
case Lt:
@@ -11351,7 +11366,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
o.push({ event: l, listeners: r }),
(l.data = y));
}
- Tr(o, t);
+ zr(o, t);
});
}
function Dr(e, t, n) {
@@ -11570,8 +11585,8 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
_l = a.unstable_scheduleCallback,
Pl = a.unstable_cancelCallback,
Nl = a.unstable_shouldYield,
- Tl = a.unstable_requestPaint,
- zl = a.unstable_now,
+ zl = a.unstable_requestPaint,
+ Tl = a.unstable_now,
Ll = a.unstable_getCurrentPriorityLevel,
Ol = a.unstable_ImmediatePriority,
Ml = a.unstable_UserBlockingPriority,
@@ -11579,16 +11594,16 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
Fl = a.unstable_LowPriority,
Dl = a.unstable_IdlePriority,
Il = {},
- Ul = void 0 !== Tl ? Tl : function () {},
+ Ul = void 0 !== zl ? zl : function () {},
jl = null,
Al = null,
Vl = !1,
- Bl = zl(),
+ Bl = Tl(),
$l =
1e4 > Bl
- ? zl
+ ? Tl
: function () {
- return zl() - Bl;
+ return Tl() - Bl;
};
function Wl() {
switch (Ll()) {
@@ -12363,15 +12378,15 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
var _a = Ca(!0),
Pa = Ca(!1),
Na = {},
- Ta = sl(Na),
za = sl(Na),
+ Ta = sl(Na),
La = sl(Na);
function Oa(e) {
if (e === Na) throw Error(o(174));
return e;
}
function Ma(e, t) {
- switch ((fl(La, t), fl(za, e), fl(Ta, Na), (e = t.nodeType))) {
+ switch ((fl(La, t), fl(Ta, e), fl(za, Na), (e = t.nodeType))) {
case 9:
case 11:
t = (t = t.documentElement) ? t.namespaceURI : he(null, \\"\\");
@@ -12382,19 +12397,19 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
(e = e.tagName)
);
}
- cl(Ta), fl(Ta, t);
+ cl(za), fl(za, t);
}
function Ra() {
- cl(Ta), cl(za), cl(La);
+ cl(za), cl(Ta), cl(La);
}
function Fa(e) {
Oa(La.current);
- var t = Oa(Ta.current),
+ var t = Oa(za.current),
n = he(t, e.type);
- t !== n && (fl(za, e), fl(Ta, n));
+ t !== n && (fl(Ta, e), fl(za, n));
}
function Da(e) {
- za.current === e && (cl(Ta), cl(za));
+ Ta.current === e && (cl(za), cl(Ta));
}
var Ia = sl(0);
function Ua(e) {
@@ -12866,7 +12881,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
? r[0]
: ((n.memoizedState = [e, t]), e);
}
- function To(e, t) {
+ function zo(e, t) {
var n = io();
t = void 0 === t ? null : t;
var r = n.memoizedState;
@@ -12874,7 +12889,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
? r[0]
: ((e = e()), (n.memoizedState = [e, t]), e);
}
- function zo(e, t) {
+ function To(e, t) {
var n = Wl();
Ql(98 > n ? 98 : n, function () {
e(!0);
@@ -13006,7 +13021,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
useTransition: function () {
var e = vo(!1),
t = e[0];
- return yo((e = zo.bind(null, e[1]))), [e, t];
+ return yo((e = To.bind(null, e[1]))), [e, t];
},
useMutableSource: function (e, t, n) {
var r = uo();
@@ -13056,7 +13071,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
useEffect: Eo,
useImperativeHandle: _o,
useLayoutEffect: xo,
- useMemo: To,
+ useMemo: zo,
useReducer: co,
useRef: bo,
useState: function () {
@@ -13100,7 +13115,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
useEffect: Eo,
useImperativeHandle: _o,
useLayoutEffect: xo,
- useMemo: To,
+ useMemo: zo,
useReducer: fo,
useRef: bo,
useState: function () {
@@ -13644,42 +13659,42 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
if (null === t.stateNode) throw Error(o(166));
return null;
}
- if (((e = Oa(Ta.current)), Qa(t))) {
+ if (((e = Oa(za.current)), Qa(t))) {
(r = t.stateNode), (n = t.type);
var u = t.memoizedProps;
switch (((r[Zr] = t), (r[Jr] = u), n)) {
case \\"dialog\\":
- zr(\\"cancel\\", r), zr(\\"close\\", r);
+ Tr(\\"cancel\\", r), Tr(\\"close\\", r);
break;
case \\"iframe\\":
case \\"object\\":
case \\"embed\\":
- zr(\\"load\\", r);
+ Tr(\\"load\\", r);
break;
case \\"video\\":
case \\"audio\\":
- for (e = 0; e < _r.length; e++) zr(_r[e], r);
+ for (e = 0; e < _r.length; e++) Tr(_r[e], r);
break;
case \\"source\\":
- zr(\\"error\\", r);
+ Tr(\\"error\\", r);
break;
case \\"img\\":
case \\"image\\":
case \\"link\\":
- zr(\\"error\\", r), zr(\\"load\\", r);
+ Tr(\\"error\\", r), Tr(\\"load\\", r);
break;
case \\"details\\":
- zr(\\"toggle\\", r);
+ Tr(\\"toggle\\", r);
break;
case \\"input\\":
- ee(r, u), zr(\\"invalid\\", r);
+ ee(r, u), Tr(\\"invalid\\", r);
break;
case \\"select\\":
(r._wrapperState = { wasMultiple: !!u.multiple }),
- zr(\\"invalid\\", r);
+ Tr(\\"invalid\\", r);
break;
case \\"textarea\\":
- ie(r, u), zr(\\"invalid\\", r);
+ ie(r, u), Tr(\\"invalid\\", r);
}
for (var s in (xe(n, u), (e = null), u))
u.hasOwnProperty(s) &&
@@ -13693,7 +13708,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
: i.hasOwnProperty(s) &&
null != a &&
\\"onScroll\\" === s &&
- zr(\\"scroll\\", r));
+ Tr(\\"scroll\\", r));
switch (n) {
case \\"input\\":
X(r), re(r, u, !0);
@@ -13734,31 +13749,31 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
n)
) {
case \\"dialog\\":
- zr(\\"cancel\\", e), zr(\\"close\\", e), (a = r);
+ Tr(\\"cancel\\", e), Tr(\\"close\\", e), (a = r);
break;
case \\"iframe\\":
case \\"object\\":
case \\"embed\\":
- zr(\\"load\\", e), (a = r);
+ Tr(\\"load\\", e), (a = r);
break;
case \\"video\\":
case \\"audio\\":
- for (a = 0; a < _r.length; a++) zr(_r[a], e);
+ for (a = 0; a < _r.length; a++) Tr(_r[a], e);
a = r;
break;
case \\"source\\":
- zr(\\"error\\", e), (a = r);
+ Tr(\\"error\\", e), (a = r);
break;
case \\"img\\":
case \\"image\\":
case \\"link\\":
- zr(\\"error\\", e), zr(\\"load\\", e), (a = r);
+ Tr(\\"error\\", e), Tr(\\"load\\", e), (a = r);
break;
case \\"details\\":
- zr(\\"toggle\\", e), (a = r);
+ Tr(\\"toggle\\", e), (a = r);
break;
case \\"input\\":
- ee(e, r), (a = J(e, r)), zr(\\"invalid\\", e);
+ ee(e, r), (a = J(e, r)), Tr(\\"invalid\\", e);
break;
case \\"option\\":
a = ae(e, r);
@@ -13766,10 +13781,10 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
case \\"select\\":
(e._wrapperState = { wasMultiple: !!r.multiple }),
(a = l({}, r, { value: void 0 })),
- zr(\\"invalid\\", e);
+ Tr(\\"invalid\\", e);
break;
case \\"textarea\\":
- ie(e, r), (a = ue(e, r)), zr(\\"invalid\\", e);
+ ie(e, r), (a = ue(e, r)), Tr(\\"invalid\\", e);
break;
default:
a = r;
@@ -13791,7 +13806,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
\\"suppressHydrationWarning\\" !== u &&
\\"autoFocus\\" !== u &&
(i.hasOwnProperty(u)
- ? null != f && \\"onScroll\\" === u && zr(\\"scroll\\", e)
+ ? null != f && \\"onScroll\\" === u && Tr(\\"scroll\\", e)
: null != f && w(e, u, f, s));
}
switch (n) {
@@ -13825,7 +13840,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
if (\\"string\\" !== typeof r && null === t.stateNode)
throw Error(o(166));
(n = Oa(La.current)),
- Oa(Ta.current),
+ Oa(za.current),
Qa(t)
? ((r = t.stateNode),
(n = t.memoizedProps),
@@ -14049,7 +14064,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
(Yo = function (e, t, n, r) {
var a = e.memoizedProps;
if (a !== r) {
- (e = t.stateNode), Oa(Ta.current);
+ (e = t.stateNode), Oa(za.current);
var o,
u = null;
switch (n) {
@@ -14115,7 +14130,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
: \\"suppressContentEditableWarning\\" !== f &&
\\"suppressHydrationWarning\\" !== f &&
(i.hasOwnProperty(f)
- ? (null != c && \\"onScroll\\" === f && zr(\\"scroll\\", e),
+ ? (null != c && \\"onScroll\\" === f && Tr(\\"scroll\\", e),
u || s === c || (u = []))
: \\"object\\" === typeof c &&
null !== c &&
@@ -14640,8 +14655,8 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
null === t.dehydrated
);
}
- var Tu = Math.ceil,
- zu = k.ReactCurrentDispatcher,
+ var zu = Math.ceil,
+ Tu = k.ReactCurrentDispatcher,
Lu = k.ReactCurrentOwner,
Ou = 0,
Mu = null,
@@ -14827,14 +14842,14 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
var a = _i();
for ((Mu === e && Fu === r) || (qu(), xi(e, r)); ; )
try {
- Ti();
+ zi();
break;
} catch (i) {
Ci(e, i);
}
if (
(na(),
- (zu.current = a),
+ (Tu.current = a),
(Ou = l),
null !== Ru ? (r = 0) : ((Mu = null), (Fu = 0), (r = Uu)),
0 !== (Au & Bu))
@@ -14895,7 +14910,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
? 3e3
: 4320 > n
? 4320
- : 1960 * Tu(n / 1960)) - n))
+ : 1960 * zu(n / 1960)) - n))
) {
e.timeoutHandle = Hr(Oi.bind(null, e), n);
break;
@@ -15153,8 +15168,8 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
}
}
function _i() {
- var e = zu.current;
- return (zu.current = Oo), null === e ? Oo : e;
+ var e = Tu.current;
+ return (Tu.current = Oo), null === e ? Oo : e;
}
function Pi(e, t) {
var n = Ou;
@@ -15167,17 +15182,17 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
} catch (l) {
Ci(e, l);
}
- if ((na(), (Ou = n), (zu.current = r), null !== Ru))
+ if ((na(), (Ou = n), (Tu.current = r), null !== Ru))
throw Error(o(261));
return (Mu = null), (Fu = 0), Uu;
}
function Ni() {
- for (; null !== Ru; ) zi(Ru);
+ for (; null !== Ru; ) Ti(Ru);
}
- function Ti() {
- for (; null !== Ru && !Nl(); ) zi(Ru);
+ function zi() {
+ for (; null !== Ru && !Nl(); ) Ti(Ru);
}
- function zi(e) {
+ function Ti(e) {
var t = Ku(e.alternate, e, Du);
(e.memoizedProps = e.pendingProps),
null === t ? Li(e) : (Ru = t),
@@ -15688,10 +15703,10 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
(e.lanes = a),
e
);
- case z:
+ case T:
return (
- ((e = Wi(13, n, t, l)).type = z),
- (e.elementType = z),
+ ((e = Wi(13, n, t, l)).type = T),
+ (e.elementType = T),
(e.lanes = a),
e
);
@@ -15710,7 +15725,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
case N:
u = 9;
break e;
- case T:
+ case z:
u = 11;
break e;
case O:
@@ -16035,7 +16050,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
(function (e) {
if (\\"function\\" === typeof e) return Hi(e) ? 1 : 0;
if (void 0 !== e && null !== e) {
- if ((e = e.$$typeof) === T) return 11;
+ if ((e = e.$$typeof) === z) return 11;
if (e === O) return 14;
}
return 2;
@@ -16597,7 +16612,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
r
);
}
- function T(e) {
+ function z(e) {
if (-1 === e._status) {
var t = e._result;
(t = t()),
@@ -16616,14 +16631,14 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
if (1 === e._status) return e._result;
throw e._result;
}
- var z = { current: null };
+ var T = { current: null };
function L() {
- var e = z.current;
+ var e = T.current;
if (null === e) throw Error(p(321));
return e;
}
var O = {
- ReactCurrentDispatcher: z,
+ ReactCurrentDispatcher: T,
ReactCurrentBatchConfig: { transition: 0 },
ReactCurrentOwner: w,
IsSomeRendererActing: { current: !1 },
@@ -16729,7 +16744,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
return {
$$typeof: c,
_payload: { _status: -1, _result: e },
- _init: T,
+ _init: z,
};
}),
(t.memo = function (e, t) {
@@ -16913,8 +16928,8 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
var _ = [],
P = [],
N = 1,
- T = null,
- z = 3,
+ z = null,
+ T = 3,
L = !1,
O = !1,
M = !1;
@@ -16938,32 +16953,32 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
}
function D(e, n) {
(O = !1), M && ((M = !1), l()), (L = !0);
- var a = z;
+ var a = T;
try {
for (
- R(n), T = E(_);
- null !== T &&
- (!(T.expirationTime > n) || (e && !t.unstable_shouldYield()));
+ R(n), z = E(_);
+ null !== z &&
+ (!(z.expirationTime > n) || (e && !t.unstable_shouldYield()));
) {
- var o = T.callback;
+ var o = z.callback;
if (\\"function\\" === typeof o) {
- (T.callback = null), (z = T.priorityLevel);
- var u = o(T.expirationTime <= n);
+ (z.callback = null), (T = z.priorityLevel);
+ var u = o(z.expirationTime <= n);
(n = t.unstable_now()),
- \\"function\\" === typeof u ? (T.callback = u) : T === E(_) && x(_),
+ \\"function\\" === typeof u ? (z.callback = u) : z === E(_) && x(_),
R(n);
} else x(_);
- T = E(_);
+ z = E(_);
}
- if (null !== T) var i = !0;
+ if (null !== z) var i = !0;
else {
var s = E(P);
null !== s && r(F, s.startTime - n), (i = !1);
}
return i;
} finally {
- (T = null), (z = a), (L = !1);
+ (z = null), (T = a), (L = !1);
}
}
var I = a;
@@ -16980,27 +16995,27 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
O || L || ((O = !0), n(D));
}),
(t.unstable_getCurrentPriorityLevel = function () {
- return z;
+ return T;
}),
(t.unstable_getFirstCallbackNode = function () {
return E(_);
}),
(t.unstable_next = function (e) {
- switch (z) {
+ switch (T) {
case 1:
case 2:
case 3:
var t = 3;
break;
default:
- t = z;
+ t = T;
}
- var n = z;
- z = t;
+ var n = T;
+ T = t;
try {
return e();
} finally {
- z = n;
+ T = n;
}
}),
(t.unstable_pauseExecution = function () {}),
@@ -17016,12 +17031,12 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
default:
e = 3;
}
- var n = z;
- z = e;
+ var n = T;
+ T = e;
try {
return t();
} finally {
- z = n;
+ T = n;
}
}),
(t.unstable_scheduleCallback = function (e, a, o) {
@@ -17067,14 +17082,14 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
);
}),
(t.unstable_wrapCallback = function (e) {
- var t = z;
+ var t = T;
return function () {
- var n = z;
- z = t;
+ var n = T;
+ T = t;
try {
return e.apply(this, arguments);
} finally {
- z = n;
+ T = n;
}
};
});
@@ -17084,7 +17099,7 @@ exports[`when working with an app can generate a hashed vendor chunk in the js d
},
},
]);
-//# sourceMappingURL=316.7a4d5eb7.js.map
+//# sourceMappingURL=316.394ef80b.js.map
"
`;
@@ -17121,15 +17136,15 @@ exports[`when working with an app can generate a index.html 1`] = `
if (!o) {
var p = 1 / 0;
for (v = 0; v < r.length; v++) {
- for (var [o, t, n] = r[v], l = !0, i = 0; i < o.length; i++)
+ for (var [o, t, n] = r[v], s = !0, l = 0; l < o.length; l++)
(!1 & n || p >= n) &&
- Object.keys(a.O).every((r) => a.O[r](o[i]))
- ? o.splice(i--, 1)
- : ((l = !1), n < p && (p = n));
- if (l) {
+ Object.keys(a.O).every((r) => a.O[r](o[l]))
+ ? o.splice(l--, 1)
+ : ((s = !1), n < p && (p = n));
+ if (s) {
r.splice(v--, 1);
- var s = t();
- void 0 !== s && (e = s);
+ var i = t();
+ void 0 !== i && (e = i);
}
}
return e;
@@ -17147,24 +17162,24 @@ exports[`when working with an app can generate a index.html 1`] = `
var e = (e, o) => {
var t,
n,
- [p, l, i] = o,
- s = 0;
+ [p, s, l] = o,
+ i = 0;
if (p.some((e) => 0 !== r[e])) {
- for (t in l) a.o(l, t) && (a.m[t] = l[t]);
- if (i) var v = i(a);
+ for (t in s) a.o(s, t) && (a.m[t] = s[t]);
+ if (l) var v = l(a);
}
- for (e && e(o); s < p.length; s++)
- (n = p[s]), a.o(r, n) && r[n] && r[n][0](), (r[n] = 0);
+ for (e && e(o); i < p.length; i++)
+ (n = p[i]), a.o(r, n) && r[n] && r[n][0](), (r[n] = 0);
return a.O(v);
},
- o = (globalThis.webpackChunksample_app =
- globalThis.webpackChunksample_app || []);
+ o = (self.webpackChunksample_app =
+ self.webpackChunksample_app || []);
o.forEach(e.bind(null, 0)), (o.push = e.bind(null, o.push.bind(o)));
})();
})();
-
-
+
+
diff --git a/packages/modular-scripts/src/__tests__/__snapshots__/esmView.test.ts.snap b/packages/modular-scripts/src/__tests__/__snapshots__/esmView.test.ts.snap
new file mode 100644
index 000000000..2c31d3949
--- /dev/null
+++ b/packages/modular-scripts/src/__tests__/__snapshots__/esmView.test.ts.snap
@@ -0,0 +1,12894 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`modular-scripts WHEN building a esm-view specifying a dependency to not being rewritten THEN rewrites only the dependencies that are not specified in the blocklist 1`] = `
+"var Pv = Object.create;
+var io = Object.defineProperty;
+var Mv = Object.getOwnPropertyDescriptor;
+var Fv = Object.getOwnPropertyNames;
+var Dv = Object.getPrototypeOf,
+ qv = Object.prototype.hasOwnProperty;
+var Wv = (r, o) => () => (r && (o = r((r = 0))), o);
+var S = (r, o) => () => (o || r((o = { exports: {} }).exports, o), o.exports);
+var Uv = (r, o, l, w) => {
+ if ((o && typeof o == \\"object\\") || typeof o == \\"function\\")
+ for (let m of Fv(o))
+ !qv.call(r, m) &&
+ m !== l &&
+ io(r, m, {
+ get: () => o[m],
+ enumerable: !(w = Mv(o, m)) || w.enumerable,
+ });
+ return r;
+};
+var au = (r, o, l) => (
+ (l = r != null ? Pv(Dv(r)) : {}),
+ Uv(
+ o || !r || !r.__esModule
+ ? io(l, \\"default\\", { value: r, enumerable: !0 })
+ : l,
+ r
+ )
+);
+var x = Wv(() => {});
+var Or = S((AA, uo) => {
+ x();
+ var Bv = Array.isArray;
+ uo.exports = Bv;
+});
+var ao = S((bA, fo) => {
+ x();
+ var Nv =
+ typeof window == \\"object\\" && window && window.Object === Object && window;
+ fo.exports = Nv;
+});
+var Ir = S((mA, oo) => {
+ x();
+ var Gv = ao(),
+ Hv = typeof self == \\"object\\" && self && self.Object === Object && self,
+ zv = Gv || Hv || Function(\\"return this\\")();
+ oo.exports = zv;
+});
+var Er = S((TA, so) => {
+ x();
+ var $v = Ir(),
+ Kv = $v.Symbol;
+ so.exports = Kv;
+});
+var po = S((SA, ho) => {
+ x();
+ var lo = Er(),
+ co = Object.prototype,
+ Zv = co.hasOwnProperty,
+ Yv = co.toString,
+ Te = lo ? lo.toStringTag : void 0;
+ function Xv(r) {
+ var o = Zv.call(r, Te),
+ l = r[Te];
+ try {
+ r[Te] = void 0;
+ var w = !0;
+ } catch {}
+ var m = Yv.call(r);
+ return w && (o ? (r[Te] = l) : delete r[Te]), m;
+ }
+ ho.exports = Xv;
+});
+var _o = S((CA, go) => {
+ x();
+ var Jv = Object.prototype,
+ Qv = Jv.toString;
+ function Vv(r) {
+ return Qv.call(r);
+ }
+ go.exports = Vv;
+});
+var ou = S((OA, wo) => {
+ x();
+ var vo = Er(),
+ jv = po(),
+ kv = _o(),
+ n1 = \\"[object Null]\\",
+ t1 = \\"[object Undefined]\\",
+ xo = vo ? vo.toStringTag : void 0;
+ function e1(r) {
+ return r == null
+ ? r === void 0
+ ? t1
+ : n1
+ : xo && xo in Object(r)
+ ? jv(r)
+ : kv(r);
+ }
+ wo.exports = e1;
+});
+var Ao = S((IA, yo) => {
+ x();
+ function r1(r) {
+ return r != null && typeof r == \\"object\\";
+ }
+ yo.exports = r1;
+});
+var Rr = S((EA, bo) => {
+ x();
+ var i1 = ou(),
+ u1 = Ao(),
+ f1 = \\"[object Symbol]\\";
+ function a1(r) {
+ return typeof r == \\"symbol\\" || (u1(r) && i1(r) == f1);
+ }
+ bo.exports = a1;
+});
+var To = S((RA, mo) => {
+ x();
+ var o1 = Or(),
+ s1 = Rr(),
+ l1 = /\\\\.|\\\\[(?:[^[\\\\]]*|([\\"'])(?:(?!\\\\1)[^\\\\\\\\]|\\\\\\\\.)*?\\\\1)\\\\]/,
+ c1 = /^\\\\w*$/;
+ function h1(r, o) {
+ if (o1(r)) return !1;
+ var l = typeof r;
+ return l == \\"number\\" ||
+ l == \\"symbol\\" ||
+ l == \\"boolean\\" ||
+ r == null ||
+ s1(r)
+ ? !0
+ : c1.test(r) || !l1.test(r) || (o != null && r in Object(o));
+ }
+ mo.exports = h1;
+});
+var su = S((LA, So) => {
+ x();
+ function p1(r) {
+ var o = typeof r;
+ return r != null && (o == \\"object\\" || o == \\"function\\");
+ }
+ So.exports = p1;
+});
+var Oo = S((PA, Co) => {
+ x();
+ var g1 = ou(),
+ _1 = su(),
+ d1 = \\"[object AsyncFunction]\\",
+ v1 = \\"[object Function]\\",
+ x1 = \\"[object GeneratorFunction]\\",
+ w1 = \\"[object Proxy]\\";
+ function y1(r) {
+ if (!_1(r)) return !1;
+ var o = g1(r);
+ return o == v1 || o == x1 || o == d1 || o == w1;
+ }
+ Co.exports = y1;
+});
+var Eo = S((MA, Io) => {
+ x();
+ var A1 = Ir(),
+ b1 = A1[\\"__core-js_shared__\\"];
+ Io.exports = b1;
+});
+var Po = S((FA, Lo) => {
+ x();
+ var lu = Eo(),
+ Ro = (function () {
+ var r = /[^.]+$/.exec((lu && lu.keys && lu.keys.IE_PROTO) || \\"\\");
+ return r ? \\"Symbol(src)_1.\\" + r : \\"\\";
+ })();
+ function m1(r) {
+ return !!Ro && Ro in r;
+ }
+ Lo.exports = m1;
+});
+var Fo = S((DA, Mo) => {
+ x();
+ var T1 = Function.prototype,
+ S1 = T1.toString;
+ function C1(r) {
+ if (r != null) {
+ try {
+ return S1.call(r);
+ } catch {}
+ try {
+ return r + \\"\\";
+ } catch {}
+ }
+ return \\"\\";
+ }
+ Mo.exports = C1;
+});
+var qo = S((qA, Do) => {
+ x();
+ var O1 = Oo(),
+ I1 = Po(),
+ E1 = su(),
+ R1 = Fo(),
+ L1 = /[\\\\\\\\^$.*+?()[\\\\]{}|]/g,
+ P1 = /^\\\\[object .+?Constructor\\\\]$/,
+ M1 = Function.prototype,
+ F1 = Object.prototype,
+ D1 = M1.toString,
+ q1 = F1.hasOwnProperty,
+ W1 = RegExp(
+ \\"^\\" +
+ D1.call(q1)
+ .replace(L1, \\"\\\\\\\\$&\\")
+ .replace(
+ /hasOwnProperty|(function).*?(?=\\\\\\\\\\\\()| for .+?(?=\\\\\\\\\\\\])/g,
+ \\"$1.*?\\"
+ ) +
+ \\"$\\"
+ );
+ function U1(r) {
+ if (!E1(r) || I1(r)) return !1;
+ var o = O1(r) ? W1 : P1;
+ return o.test(R1(r));
+ }
+ Do.exports = U1;
+});
+var Uo = S((WA, Wo) => {
+ x();
+ function B1(r, o) {
+ return r?.[o];
+ }
+ Wo.exports = B1;
+});
+var cu = S((UA, Bo) => {
+ x();
+ var N1 = qo(),
+ G1 = Uo();
+ function H1(r, o) {
+ var l = G1(r, o);
+ return N1(l) ? l : void 0;
+ }
+ Bo.exports = H1;
+});
+var Se = S((BA, No) => {
+ x();
+ var z1 = cu(),
+ $1 = z1(Object, \\"create\\");
+ No.exports = $1;
+});
+var zo = S((NA, Ho) => {
+ x();
+ var Go = Se();
+ function K1() {
+ (this.__data__ = Go ? Go(null) : {}), (this.size = 0);
+ }
+ Ho.exports = K1;
+});
+var Ko = S((GA, $o) => {
+ x();
+ function Z1(r) {
+ var o = this.has(r) && delete this.__data__[r];
+ return (this.size -= o ? 1 : 0), o;
+ }
+ $o.exports = Z1;
+});
+var Yo = S((HA, Zo) => {
+ x();
+ var Y1 = Se(),
+ X1 = \\"__lodash_hash_undefined__\\",
+ J1 = Object.prototype,
+ Q1 = J1.hasOwnProperty;
+ function V1(r) {
+ var o = this.__data__;
+ if (Y1) {
+ var l = o[r];
+ return l === X1 ? void 0 : l;
+ }
+ return Q1.call(o, r) ? o[r] : void 0;
+ }
+ Zo.exports = V1;
+});
+var Jo = S((zA, Xo) => {
+ x();
+ var j1 = Se(),
+ k1 = Object.prototype,
+ nx = k1.hasOwnProperty;
+ function tx(r) {
+ var o = this.__data__;
+ return j1 ? o[r] !== void 0 : nx.call(o, r);
+ }
+ Xo.exports = tx;
+});
+var Vo = S(($A, Qo) => {
+ x();
+ var ex = Se(),
+ rx = \\"__lodash_hash_undefined__\\";
+ function ix(r, o) {
+ var l = this.__data__;
+ return (
+ (this.size += this.has(r) ? 0 : 1),
+ (l[r] = ex && o === void 0 ? rx : o),
+ this
+ );
+ }
+ Qo.exports = ix;
+});
+var ko = S((KA, jo) => {
+ x();
+ var ux = zo(),
+ fx = Ko(),
+ ax = Yo(),
+ ox = Jo(),
+ sx = Vo();
+ function Xt(r) {
+ var o = -1,
+ l = r == null ? 0 : r.length;
+ for (this.clear(); ++o < l; ) {
+ var w = r[o];
+ this.set(w[0], w[1]);
+ }
+ }
+ Xt.prototype.clear = ux;
+ Xt.prototype.delete = fx;
+ Xt.prototype.get = ax;
+ Xt.prototype.has = ox;
+ Xt.prototype.set = sx;
+ jo.exports = Xt;
+});
+var ts = S((ZA, ns) => {
+ x();
+ function lx() {
+ (this.__data__ = []), (this.size = 0);
+ }
+ ns.exports = lx;
+});
+var rs = S((YA, es) => {
+ x();
+ function cx(r, o) {
+ return r === o || (r !== r && o !== o);
+ }
+ es.exports = cx;
+});
+var Ce = S((XA, is) => {
+ x();
+ var hx = rs();
+ function px(r, o) {
+ for (var l = r.length; l--; ) if (hx(r[l][0], o)) return l;
+ return -1;
+ }
+ is.exports = px;
+});
+var fs = S((JA, us) => {
+ x();
+ var gx = Ce(),
+ _x = Array.prototype,
+ dx = _x.splice;
+ function vx(r) {
+ var o = this.__data__,
+ l = gx(o, r);
+ if (l < 0) return !1;
+ var w = o.length - 1;
+ return l == w ? o.pop() : dx.call(o, l, 1), --this.size, !0;
+ }
+ us.exports = vx;
+});
+var os = S((QA, as) => {
+ x();
+ var xx = Ce();
+ function wx(r) {
+ var o = this.__data__,
+ l = xx(o, r);
+ return l < 0 ? void 0 : o[l][1];
+ }
+ as.exports = wx;
+});
+var ls = S((VA, ss) => {
+ x();
+ var yx = Ce();
+ function Ax(r) {
+ return yx(this.__data__, r) > -1;
+ }
+ ss.exports = Ax;
+});
+var hs = S((jA, cs) => {
+ x();
+ var bx = Ce();
+ function mx(r, o) {
+ var l = this.__data__,
+ w = bx(l, r);
+ return w < 0 ? (++this.size, l.push([r, o])) : (l[w][1] = o), this;
+ }
+ cs.exports = mx;
+});
+var gs = S((kA, ps) => {
+ x();
+ var Tx = ts(),
+ Sx = fs(),
+ Cx = os(),
+ Ox = ls(),
+ Ix = hs();
+ function Jt(r) {
+ var o = -1,
+ l = r == null ? 0 : r.length;
+ for (this.clear(); ++o < l; ) {
+ var w = r[o];
+ this.set(w[0], w[1]);
+ }
+ }
+ Jt.prototype.clear = Tx;
+ Jt.prototype.delete = Sx;
+ Jt.prototype.get = Cx;
+ Jt.prototype.has = Ox;
+ Jt.prototype.set = Ix;
+ ps.exports = Jt;
+});
+var ds = S((nb, _s) => {
+ x();
+ var Ex = cu(),
+ Rx = Ir(),
+ Lx = Ex(Rx, \\"Map\\");
+ _s.exports = Lx;
+});
+var ws = S((tb, xs) => {
+ x();
+ var vs = ko(),
+ Px = gs(),
+ Mx = ds();
+ function Fx() {
+ (this.size = 0),
+ (this.__data__ = {
+ hash: new vs(),
+ map: new (Mx || Px)(),
+ string: new vs(),
+ });
+ }
+ xs.exports = Fx;
+});
+var As = S((eb, ys) => {
+ x();
+ function Dx(r) {
+ var o = typeof r;
+ return o == \\"string\\" || o == \\"number\\" || o == \\"symbol\\" || o == \\"boolean\\"
+ ? r !== \\"__proto__\\"
+ : r === null;
+ }
+ ys.exports = Dx;
+});
+var Oe = S((rb, bs) => {
+ x();
+ var qx = As();
+ function Wx(r, o) {
+ var l = r.__data__;
+ return qx(o) ? l[typeof o == \\"string\\" ? \\"string\\" : \\"hash\\"] : l.map;
+ }
+ bs.exports = Wx;
+});
+var Ts = S((ib, ms) => {
+ x();
+ var Ux = Oe();
+ function Bx(r) {
+ var o = Ux(this, r).delete(r);
+ return (this.size -= o ? 1 : 0), o;
+ }
+ ms.exports = Bx;
+});
+var Cs = S((ub, Ss) => {
+ x();
+ var Nx = Oe();
+ function Gx(r) {
+ return Nx(this, r).get(r);
+ }
+ Ss.exports = Gx;
+});
+var Is = S((fb, Os) => {
+ x();
+ var Hx = Oe();
+ function zx(r) {
+ return Hx(this, r).has(r);
+ }
+ Os.exports = zx;
+});
+var Rs = S((ab, Es) => {
+ x();
+ var $x = Oe();
+ function Kx(r, o) {
+ var l = $x(this, r),
+ w = l.size;
+ return l.set(r, o), (this.size += l.size == w ? 0 : 1), this;
+ }
+ Es.exports = Kx;
+});
+var Ps = S((ob, Ls) => {
+ x();
+ var Zx = ws(),
+ Yx = Ts(),
+ Xx = Cs(),
+ Jx = Is(),
+ Qx = Rs();
+ function Qt(r) {
+ var o = -1,
+ l = r == null ? 0 : r.length;
+ for (this.clear(); ++o < l; ) {
+ var w = r[o];
+ this.set(w[0], w[1]);
+ }
+ }
+ Qt.prototype.clear = Zx;
+ Qt.prototype.delete = Yx;
+ Qt.prototype.get = Xx;
+ Qt.prototype.has = Jx;
+ Qt.prototype.set = Qx;
+ Ls.exports = Qt;
+});
+var Ds = S((sb, Fs) => {
+ x();
+ var Ms = Ps(),
+ Vx = \\"Expected a function\\";
+ function hu(r, o) {
+ if (typeof r != \\"function\\" || (o != null && typeof o != \\"function\\"))
+ throw new TypeError(Vx);
+ var l = function () {
+ var w = arguments,
+ m = o ? o.apply(this, w) : w[0],
+ D = l.cache;
+ if (D.has(m)) return D.get(m);
+ var N = r.apply(this, w);
+ return (l.cache = D.set(m, N) || D), N;
+ };
+ return (l.cache = new (hu.Cache || Ms)()), l;
+ }
+ hu.Cache = Ms;
+ Fs.exports = hu;
+});
+var Ws = S((lb, qs) => {
+ x();
+ var jx = Ds(),
+ kx = 500;
+ function nw(r) {
+ var o = jx(r, function (w) {
+ return l.size === kx && l.clear(), w;
+ }),
+ l = o.cache;
+ return o;
+ }
+ qs.exports = nw;
+});
+var Bs = S((cb, Us) => {
+ x();
+ var tw = Ws(),
+ ew =
+ /[^.[\\\\]]+|\\\\[(?:(-?\\\\d+(?:\\\\.\\\\d+)?)|([\\"'])((?:(?!\\\\2)[^\\\\\\\\]|\\\\\\\\.)*?)\\\\2)\\\\]|(?=(?:\\\\.|\\\\[\\\\])(?:\\\\.|\\\\[\\\\]|$))/g,
+ rw = /\\\\\\\\(\\\\\\\\)?/g,
+ iw = tw(function (r) {
+ var o = [];
+ return (
+ r.charCodeAt(0) === 46 && o.push(\\"\\"),
+ r.replace(ew, function (l, w, m, D) {
+ o.push(m ? D.replace(rw, \\"$1\\") : w || l);
+ }),
+ o
+ );
+ });
+ Us.exports = iw;
+});
+var Gs = S((hb, Ns) => {
+ x();
+ function uw(r, o) {
+ for (var l = -1, w = r == null ? 0 : r.length, m = Array(w); ++l < w; )
+ m[l] = o(r[l], l, r);
+ return m;
+ }
+ Ns.exports = uw;
+});
+var Ys = S((pb, Zs) => {
+ x();
+ var Hs = Er(),
+ fw = Gs(),
+ aw = Or(),
+ ow = Rr(),
+ sw = 1 / 0,
+ zs = Hs ? Hs.prototype : void 0,
+ $s = zs ? zs.toString : void 0;
+ function Ks(r) {
+ if (typeof r == \\"string\\") return r;
+ if (aw(r)) return fw(r, Ks) + \\"\\";
+ if (ow(r)) return $s ? $s.call(r) : \\"\\";
+ var o = r + \\"\\";
+ return o == \\"0\\" && 1 / r == -sw ? \\"-0\\" : o;
+ }
+ Zs.exports = Ks;
+});
+var Js = S((gb, Xs) => {
+ x();
+ var lw = Ys();
+ function cw(r) {
+ return r == null ? \\"\\" : lw(r);
+ }
+ Xs.exports = cw;
+});
+var Vs = S((_b, Qs) => {
+ x();
+ var hw = Or(),
+ pw = To(),
+ gw = Bs(),
+ _w = Js();
+ function dw(r, o) {
+ return hw(r) ? r : pw(r, o) ? [r] : gw(_w(r));
+ }
+ Qs.exports = dw;
+});
+var ks = S((db, js) => {
+ x();
+ var vw = Rr(),
+ xw = 1 / 0;
+ function ww(r) {
+ if (typeof r == \\"string\\" || vw(r)) return r;
+ var o = r + \\"\\";
+ return o == \\"0\\" && 1 / r == -xw ? \\"-0\\" : o;
+ }
+ js.exports = ww;
+});
+var tl = S((vb, nl) => {
+ x();
+ var yw = Vs(),
+ Aw = ks();
+ function bw(r, o) {
+ o = yw(o, r);
+ for (var l = 0, w = o.length; r != null && l < w; ) r = r[Aw(o[l++])];
+ return l && l == w ? r : void 0;
+ }
+ nl.exports = bw;
+});
+var rl = S((xb, el) => {
+ x();
+ var mw = tl();
+ function Tw(r, o, l) {
+ var w = r == null ? void 0 : mw(r, o);
+ return w === void 0 ? l : w;
+ }
+ el.exports = Tw;
+});
+var Pl = S((Ie, Vt) => {
+ x();
+ var Sw = 200,
+ pl = \\"__lodash_hash_undefined__\\",
+ Cw = 800,
+ Ow = 16,
+ gl = 9007199254740991,
+ _l = \\"[object Arguments]\\",
+ Iw = \\"[object Array]\\",
+ Ew = \\"[object AsyncFunction]\\",
+ Rw = \\"[object Boolean]\\",
+ Lw = \\"[object Date]\\",
+ Pw = \\"[object Error]\\",
+ dl = \\"[object Function]\\",
+ Mw = \\"[object GeneratorFunction]\\",
+ Fw = \\"[object Map]\\",
+ Dw = \\"[object Number]\\",
+ qw = \\"[object Null]\\",
+ vl = \\"[object Object]\\",
+ Ww = \\"[object Proxy]\\",
+ Uw = \\"[object RegExp]\\",
+ Bw = \\"[object Set]\\",
+ Nw = \\"[object String]\\",
+ Gw = \\"[object Undefined]\\",
+ Hw = \\"[object WeakMap]\\",
+ zw = \\"[object ArrayBuffer]\\",
+ $w = \\"[object DataView]\\",
+ Kw = \\"[object Float32Array]\\",
+ Zw = \\"[object Float64Array]\\",
+ Yw = \\"[object Int8Array]\\",
+ Xw = \\"[object Int16Array]\\",
+ Jw = \\"[object Int32Array]\\",
+ Qw = \\"[object Uint8Array]\\",
+ Vw = \\"[object Uint8ClampedArray]\\",
+ jw = \\"[object Uint16Array]\\",
+ kw = \\"[object Uint32Array]\\",
+ ny = /[\\\\\\\\^$.*+?()[\\\\]{}|]/g,
+ ty = /^\\\\[object .+?Constructor\\\\]$/,
+ ey = /^(?:0|[1-9]\\\\d*)$/,
+ X = {};
+ X[Kw] = X[Zw] = X[Yw] = X[Xw] = X[Jw] = X[Qw] = X[Vw] = X[jw] = X[kw] = !0;
+ X[_l] =
+ X[Iw] =
+ X[zw] =
+ X[Rw] =
+ X[$w] =
+ X[Lw] =
+ X[Pw] =
+ X[dl] =
+ X[Fw] =
+ X[Dw] =
+ X[vl] =
+ X[Uw] =
+ X[Bw] =
+ X[Nw] =
+ X[Hw] =
+ !1;
+ var xl =
+ typeof window == \\"object\\" && window && window.Object === Object && window,
+ ry = typeof self == \\"object\\" && self && self.Object === Object && self,
+ Le = xl || ry || Function(\\"return this\\")(),
+ wl = typeof Ie == \\"object\\" && Ie && !Ie.nodeType && Ie,
+ Ee = wl && typeof Vt == \\"object\\" && Vt && !Vt.nodeType && Vt,
+ yl = Ee && Ee.exports === wl,
+ pu = yl && xl.process,
+ il = (function () {
+ try {
+ var r = Ee && Ee.require && Ee.require(\\"util\\").types;
+ return r || (pu && pu.binding && pu.binding(\\"util\\"));
+ } catch {}
+ })(),
+ ul = il && il.isTypedArray;
+ function iy(r, o, l) {
+ switch (l.length) {
+ case 0:
+ return r.call(o);
+ case 1:
+ return r.call(o, l[0]);
+ case 2:
+ return r.call(o, l[0], l[1]);
+ case 3:
+ return r.call(o, l[0], l[1], l[2]);
+ }
+ return r.apply(o, l);
+ }
+ function uy(r, o) {
+ for (var l = -1, w = Array(r); ++l < r; ) w[l] = o(l);
+ return w;
+ }
+ function fy(r) {
+ return function (o) {
+ return r(o);
+ };
+ }
+ function ay(r, o) {
+ return r?.[o];
+ }
+ function oy(r, o) {
+ return function (l) {
+ return r(o(l));
+ };
+ }
+ var sy = Array.prototype,
+ ly = Function.prototype,
+ Mr = Object.prototype,
+ gu = Le[\\"__core-js_shared__\\"],
+ Fr = ly.toString,
+ rt = Mr.hasOwnProperty,
+ fl = (function () {
+ var r = /[^.]+$/.exec((gu && gu.keys && gu.keys.IE_PROTO) || \\"\\");
+ return r ? \\"Symbol(src)_1.\\" + r : \\"\\";
+ })(),
+ Al = Mr.toString,
+ cy = Fr.call(Object),
+ hy = RegExp(
+ \\"^\\" +
+ Fr.call(rt)
+ .replace(ny, \\"\\\\\\\\$&\\")
+ .replace(
+ /hasOwnProperty|(function).*?(?=\\\\\\\\\\\\()| for .+?(?=\\\\\\\\\\\\])/g,
+ \\"$1.*?\\"
+ ) +
+ \\"$\\"
+ ),
+ Lr = yl ? Le.Buffer : void 0,
+ al = Le.Symbol,
+ ol = Le.Uint8Array,
+ sl = Lr ? Lr.allocUnsafe : void 0,
+ bl = oy(Object.getPrototypeOf, Object),
+ ll = Object.create,
+ py = Mr.propertyIsEnumerable,
+ gy = sy.splice,
+ It = al ? al.toStringTag : void 0,
+ Pr = (function () {
+ try {
+ var r = yu(Object, \\"defineProperty\\");
+ return r({}, \\"\\", {}), r;
+ } catch {}
+ })(),
+ _y = Lr ? Lr.isBuffer : void 0,
+ cl = Math.max,
+ dy = Date.now,
+ ml = yu(Le, \\"Map\\"),
+ Re = yu(Object, \\"create\\"),
+ vy = (function () {
+ function r() {}
+ return function (o) {
+ if (!Rt(o)) return {};
+ if (ll) return ll(o);
+ r.prototype = o;
+ var l = new r();
+ return (r.prototype = void 0), l;
+ };
+ })();
+ function Et(r) {
+ var o = -1,
+ l = r == null ? 0 : r.length;
+ for (this.clear(); ++o < l; ) {
+ var w = r[o];
+ this.set(w[0], w[1]);
+ }
+ }
+ function xy() {
+ (this.__data__ = Re ? Re(null) : {}), (this.size = 0);
+ }
+ function wy(r) {
+ var o = this.has(r) && delete this.__data__[r];
+ return (this.size -= o ? 1 : 0), o;
+ }
+ function yy(r) {
+ var o = this.__data__;
+ if (Re) {
+ var l = o[r];
+ return l === pl ? void 0 : l;
+ }
+ return rt.call(o, r) ? o[r] : void 0;
+ }
+ function Ay(r) {
+ var o = this.__data__;
+ return Re ? o[r] !== void 0 : rt.call(o, r);
+ }
+ function by(r, o) {
+ var l = this.__data__;
+ return (
+ (this.size += this.has(r) ? 0 : 1),
+ (l[r] = Re && o === void 0 ? pl : o),
+ this
+ );
+ }
+ Et.prototype.clear = xy;
+ Et.prototype.delete = wy;
+ Et.prototype.get = yy;
+ Et.prototype.has = Ay;
+ Et.prototype.set = by;
+ function it(r) {
+ var o = -1,
+ l = r == null ? 0 : r.length;
+ for (this.clear(); ++o < l; ) {
+ var w = r[o];
+ this.set(w[0], w[1]);
+ }
+ }
+ function my() {
+ (this.__data__ = []), (this.size = 0);
+ }
+ function Ty(r) {
+ var o = this.__data__,
+ l = Dr(o, r);
+ if (l < 0) return !1;
+ var w = o.length - 1;
+ return l == w ? o.pop() : gy.call(o, l, 1), --this.size, !0;
+ }
+ function Sy(r) {
+ var o = this.__data__,
+ l = Dr(o, r);
+ return l < 0 ? void 0 : o[l][1];
+ }
+ function Cy(r) {
+ return Dr(this.__data__, r) > -1;
+ }
+ function Oy(r, o) {
+ var l = this.__data__,
+ w = Dr(l, r);
+ return w < 0 ? (++this.size, l.push([r, o])) : (l[w][1] = o), this;
+ }
+ it.prototype.clear = my;
+ it.prototype.delete = Ty;
+ it.prototype.get = Sy;
+ it.prototype.has = Cy;
+ it.prototype.set = Oy;
+ function jt(r) {
+ var o = -1,
+ l = r == null ? 0 : r.length;
+ for (this.clear(); ++o < l; ) {
+ var w = r[o];
+ this.set(w[0], w[1]);
+ }
+ }
+ function Iy() {
+ (this.size = 0),
+ (this.__data__ = {
+ hash: new Et(),
+ map: new (ml || it)(),
+ string: new Et(),
+ });
+ }
+ function Ey(r) {
+ var o = Wr(this, r).delete(r);
+ return (this.size -= o ? 1 : 0), o;
+ }
+ function Ry(r) {
+ return Wr(this, r).get(r);
+ }
+ function Ly(r) {
+ return Wr(this, r).has(r);
+ }
+ function Py(r, o) {
+ var l = Wr(this, r),
+ w = l.size;
+ return l.set(r, o), (this.size += l.size == w ? 0 : 1), this;
+ }
+ jt.prototype.clear = Iy;
+ jt.prototype.delete = Ey;
+ jt.prototype.get = Ry;
+ jt.prototype.has = Ly;
+ jt.prototype.set = Py;
+ function kt(r) {
+ var o = (this.__data__ = new it(r));
+ this.size = o.size;
+ }
+ function My() {
+ (this.__data__ = new it()), (this.size = 0);
+ }
+ function Fy(r) {
+ var o = this.__data__,
+ l = o.delete(r);
+ return (this.size = o.size), l;
+ }
+ function Dy(r) {
+ return this.__data__.get(r);
+ }
+ function qy(r) {
+ return this.__data__.has(r);
+ }
+ function Wy(r, o) {
+ var l = this.__data__;
+ if (l instanceof it) {
+ var w = l.__data__;
+ if (!ml || w.length < Sw - 1)
+ return w.push([r, o]), (this.size = ++l.size), this;
+ l = this.__data__ = new jt(w);
+ }
+ return l.set(r, o), (this.size = l.size), this;
+ }
+ kt.prototype.clear = My;
+ kt.prototype.delete = Fy;
+ kt.prototype.get = Dy;
+ kt.prototype.has = qy;
+ kt.prototype.set = Wy;
+ function Uy(r, o) {
+ var l = xu(r),
+ w = !l && vu(r),
+ m = !l && !w && Ol(r),
+ D = !l && !w && !m && El(r),
+ N = l || w || m || D,
+ q = N ? uy(r.length, String) : [],
+ z = q.length;
+ for (var j in r)
+ (o || rt.call(r, j)) &&
+ !(
+ N &&
+ (j == \\"length\\" ||
+ (m && (j == \\"offset\\" || j == \\"parent\\")) ||
+ (D && (j == \\"buffer\\" || j == \\"byteLength\\" || j == \\"byteOffset\\")) ||
+ Sl(j, z))
+ ) &&
+ q.push(j);
+ return q;
+ }
+ function _u(r, o, l) {
+ ((l !== void 0 && !Ur(r[o], l)) || (l === void 0 && !(o in r))) &&
+ wu(r, o, l);
+ }
+ function By(r, o, l) {
+ var w = r[o];
+ (!(rt.call(r, o) && Ur(w, l)) || (l === void 0 && !(o in r))) &&
+ wu(r, o, l);
+ }
+ function Dr(r, o) {
+ for (var l = r.length; l--; ) if (Ur(r[l][0], o)) return l;
+ return -1;
+ }
+ function wu(r, o, l) {
+ o == \\"__proto__\\" && Pr
+ ? Pr(r, o, { configurable: !0, enumerable: !0, value: l, writable: !0 })
+ : (r[o] = l);
+ }
+ var Ny = ky();
+ function qr(r) {
+ return r == null
+ ? r === void 0
+ ? Gw
+ : qw
+ : It && It in Object(r)
+ ? nA(r)
+ : fA(r);
+ }
+ function hl(r) {
+ return Pe(r) && qr(r) == _l;
+ }
+ function Gy(r) {
+ if (!Rt(r) || iA(r)) return !1;
+ var o = bu(r) ? hy : ty;
+ return o.test(lA(r));
+ }
+ function Hy(r) {
+ return Pe(r) && Il(r.length) && !!X[qr(r)];
+ }
+ function zy(r) {
+ if (!Rt(r)) return uA(r);
+ var o = Cl(r),
+ l = [];
+ for (var w in r) (w == \\"constructor\\" && (o || !rt.call(r, w))) || l.push(w);
+ return l;
+ }
+ function Tl(r, o, l, w, m) {
+ r !== o &&
+ Ny(
+ o,
+ function (D, N) {
+ if ((m || (m = new kt()), Rt(D))) $y(r, o, N, l, Tl, w, m);
+ else {
+ var q = w ? w(du(r, N), D, N + \\"\\", r, o, m) : void 0;
+ q === void 0 && (q = D), _u(r, N, q);
+ }
+ },
+ Rl
+ );
+ }
+ function $y(r, o, l, w, m, D, N) {
+ var q = du(r, l),
+ z = du(o, l),
+ j = N.get(z);
+ if (j) {
+ _u(r, l, j);
+ return;
+ }
+ var an = D ? D(q, z, l + \\"\\", r, o, N) : void 0,
+ Tn = an === void 0;
+ if (Tn) {
+ var Bn = xu(z),
+ ut = !Bn && Ol(z),
+ ln = !Bn && !ut && El(z);
+ (an = z),
+ Bn || ut || ln
+ ? xu(q)
+ ? (an = q)
+ : cA(q)
+ ? (an = Qy(q))
+ : ut
+ ? ((Tn = !1), (an = Yy(z, !0)))
+ : ln
+ ? ((Tn = !1), (an = Jy(z, !0)))
+ : (an = [])
+ : hA(z) || vu(z)
+ ? ((an = q), vu(q) ? (an = pA(q)) : (!Rt(q) || bu(q)) && (an = tA(z)))
+ : (Tn = !1);
+ }
+ Tn && (N.set(z, an), m(an, z, w, D, N), N.delete(z)), _u(r, l, an);
+ }
+ function Ky(r, o) {
+ return oA(aA(r, o, Ll), r + \\"\\");
+ }
+ var Zy = Pr
+ ? function (r, o) {
+ return Pr(r, \\"toString\\", {
+ configurable: !0,
+ enumerable: !1,
+ value: _A(o),
+ writable: !0,
+ });
+ }
+ : Ll;
+ function Yy(r, o) {
+ if (o) return r.slice();
+ var l = r.length,
+ w = sl ? sl(l) : new r.constructor(l);
+ return r.copy(w), w;
+ }
+ function Xy(r) {
+ var o = new r.constructor(r.byteLength);
+ return new ol(o).set(new ol(r)), o;
+ }
+ function Jy(r, o) {
+ var l = o ? Xy(r.buffer) : r.buffer;
+ return new r.constructor(l, r.byteOffset, r.length);
+ }
+ function Qy(r, o) {
+ var l = -1,
+ w = r.length;
+ for (o || (o = Array(w)); ++l < w; ) o[l] = r[l];
+ return o;
+ }
+ function Vy(r, o, l, w) {
+ var m = !l;
+ l || (l = {});
+ for (var D = -1, N = o.length; ++D < N; ) {
+ var q = o[D],
+ z = w ? w(l[q], r[q], q, l, r) : void 0;
+ z === void 0 && (z = r[q]), m ? wu(l, q, z) : By(l, q, z);
+ }
+ return l;
+ }
+ function jy(r) {
+ return Ky(function (o, l) {
+ var w = -1,
+ m = l.length,
+ D = m > 1 ? l[m - 1] : void 0,
+ N = m > 2 ? l[2] : void 0;
+ for (
+ D = r.length > 3 && typeof D == \\"function\\" ? (m--, D) : void 0,
+ N && eA(l[0], l[1], N) && ((D = m < 3 ? void 0 : D), (m = 1)),
+ o = Object(o);
+ ++w < m;
+
+ ) {
+ var q = l[w];
+ q && r(o, q, w, D);
+ }
+ return o;
+ });
+ }
+ function ky(r) {
+ return function (o, l, w) {
+ for (var m = -1, D = Object(o), N = w(o), q = N.length; q--; ) {
+ var z = N[r ? q : ++m];
+ if (l(D[z], z, D) === !1) break;
+ }
+ return o;
+ };
+ }
+ function Wr(r, o) {
+ var l = r.__data__;
+ return rA(o) ? l[typeof o == \\"string\\" ? \\"string\\" : \\"hash\\"] : l.map;
+ }
+ function yu(r, o) {
+ var l = ay(r, o);
+ return Gy(l) ? l : void 0;
+ }
+ function nA(r) {
+ var o = rt.call(r, It),
+ l = r[It];
+ try {
+ r[It] = void 0;
+ var w = !0;
+ } catch {}
+ var m = Al.call(r);
+ return w && (o ? (r[It] = l) : delete r[It]), m;
+ }
+ function tA(r) {
+ return typeof r.constructor == \\"function\\" && !Cl(r) ? vy(bl(r)) : {};
+ }
+ function Sl(r, o) {
+ var l = typeof r;
+ return (
+ (o = o ?? gl),
+ !!o &&
+ (l == \\"number\\" || (l != \\"symbol\\" && ey.test(r))) &&
+ r > -1 &&
+ r % 1 == 0 &&
+ r < o
+ );
+ }
+ function eA(r, o, l) {
+ if (!Rt(l)) return !1;
+ var w = typeof o;
+ return (w == \\"number\\" ? Au(l) && Sl(o, l.length) : w == \\"string\\" && o in l)
+ ? Ur(l[o], r)
+ : !1;
+ }
+ function rA(r) {
+ var o = typeof r;
+ return o == \\"string\\" || o == \\"number\\" || o == \\"symbol\\" || o == \\"boolean\\"
+ ? r !== \\"__proto__\\"
+ : r === null;
+ }
+ function iA(r) {
+ return !!fl && fl in r;
+ }
+ function Cl(r) {
+ var o = r && r.constructor,
+ l = (typeof o == \\"function\\" && o.prototype) || Mr;
+ return r === l;
+ }
+ function uA(r) {
+ var o = [];
+ if (r != null) for (var l in Object(r)) o.push(l);
+ return o;
+ }
+ function fA(r) {
+ return Al.call(r);
+ }
+ function aA(r, o, l) {
+ return (
+ (o = cl(o === void 0 ? r.length - 1 : o, 0)),
+ function () {
+ for (
+ var w = arguments, m = -1, D = cl(w.length - o, 0), N = Array(D);
+ ++m < D;
+
+ )
+ N[m] = w[o + m];
+ m = -1;
+ for (var q = Array(o + 1); ++m < o; ) q[m] = w[m];
+ return (q[o] = l(N)), iy(r, this, q);
+ }
+ );
+ }
+ function du(r, o) {
+ if (!(o === \\"constructor\\" && typeof r[o] == \\"function\\") && o != \\"__proto__\\")
+ return r[o];
+ }
+ var oA = sA(Zy);
+ function sA(r) {
+ var o = 0,
+ l = 0;
+ return function () {
+ var w = dy(),
+ m = Ow - (w - l);
+ if (((l = w), m > 0)) {
+ if (++o >= Cw) return arguments[0];
+ } else o = 0;
+ return r.apply(void 0, arguments);
+ };
+ }
+ function lA(r) {
+ if (r != null) {
+ try {
+ return Fr.call(r);
+ } catch {}
+ try {
+ return r + \\"\\";
+ } catch {}
+ }
+ return \\"\\";
+ }
+ function Ur(r, o) {
+ return r === o || (r !== r && o !== o);
+ }
+ var vu = hl(
+ (function () {
+ return arguments;
+ })()
+ )
+ ? hl
+ : function (r) {
+ return Pe(r) && rt.call(r, \\"callee\\") && !py.call(r, \\"callee\\");
+ },
+ xu = Array.isArray;
+ function Au(r) {
+ return r != null && Il(r.length) && !bu(r);
+ }
+ function cA(r) {
+ return Pe(r) && Au(r);
+ }
+ var Ol = _y || dA;
+ function bu(r) {
+ if (!Rt(r)) return !1;
+ var o = qr(r);
+ return o == dl || o == Mw || o == Ew || o == Ww;
+ }
+ function Il(r) {
+ return typeof r == \\"number\\" && r > -1 && r % 1 == 0 && r <= gl;
+ }
+ function Rt(r) {
+ var o = typeof r;
+ return r != null && (o == \\"object\\" || o == \\"function\\");
+ }
+ function Pe(r) {
+ return r != null && typeof r == \\"object\\";
+ }
+ function hA(r) {
+ if (!Pe(r) || qr(r) != vl) return !1;
+ var o = bl(r);
+ if (o === null) return !0;
+ var l = rt.call(o, \\"constructor\\") && o.constructor;
+ return typeof l == \\"function\\" && l instanceof l && Fr.call(l) == cy;
+ }
+ var El = ul ? fy(ul) : Hy;
+ function pA(r) {
+ return Vy(r, Rl(r));
+ }
+ function Rl(r) {
+ return Au(r) ? Uy(r, !0) : zy(r);
+ }
+ var gA = jy(function (r, o, l) {
+ Tl(r, o, l);
+ });
+ function _A(r) {
+ return function () {
+ return r;
+ };
+ }
+ function Ll(r) {
+ return r;
+ }
+ function dA() {
+ return !1;
+ }
+ Vt.exports = gA;
+});
+var Ml = S((ne, Me) => {
+ x();
+ (function () {
+ var r,
+ o = \\"4.17.21\\",
+ l = 200,
+ w = \\"Unsupported core-js use. Try https://npms.io/search?q=ponyfill.\\",
+ m = \\"Expected a function\\",
+ D = \\"Invalid \`variable\` option passed into \`_.template\`\\",
+ N = \\"__lodash_hash_undefined__\\",
+ q = 500,
+ z = \\"__lodash_placeholder__\\",
+ j = 1,
+ an = 2,
+ Tn = 4,
+ Bn = 1,
+ ut = 2,
+ ln = 1,
+ vt = 2,
+ Tu = 4,
+ Nn = 8,
+ Lt = 16,
+ Gn = 32,
+ Pt = 64,
+ Zn = 128,
+ te = 256,
+ Br = 512,
+ Wl = 30,
+ Ul = \\"...\\",
+ Bl = 800,
+ Nl = 16,
+ Su = 1,
+ Gl = 2,
+ Hl = 3,
+ xt = 1 / 0,
+ ft = 9007199254740991,
+ zl = 17976931348623157e292,
+ Fe = 0 / 0,
+ Hn = 4294967295,
+ $l = Hn - 1,
+ Kl = Hn >>> 1,
+ Zl = [
+ [\\"ary\\", Zn],
+ [\\"bind\\", ln],
+ [\\"bindKey\\", vt],
+ [\\"curry\\", Nn],
+ [\\"curryRight\\", Lt],
+ [\\"flip\\", Br],
+ [\\"partial\\", Gn],
+ [\\"partialRight\\", Pt],
+ [\\"rearg\\", te],
+ ],
+ Mt = \\"[object Arguments]\\",
+ De = \\"[object Array]\\",
+ Yl = \\"[object AsyncFunction]\\",
+ ee = \\"[object Boolean]\\",
+ re = \\"[object Date]\\",
+ Xl = \\"[object DOMException]\\",
+ qe = \\"[object Error]\\",
+ We = \\"[object Function]\\",
+ Cu = \\"[object GeneratorFunction]\\",
+ Mn = \\"[object Map]\\",
+ ie = \\"[object Number]\\",
+ Jl = \\"[object Null]\\",
+ Yn = \\"[object Object]\\",
+ Ou = \\"[object Promise]\\",
+ Ql = \\"[object Proxy]\\",
+ ue = \\"[object RegExp]\\",
+ Fn = \\"[object Set]\\",
+ fe = \\"[object String]\\",
+ Ue = \\"[object Symbol]\\",
+ Vl = \\"[object Undefined]\\",
+ ae = \\"[object WeakMap]\\",
+ jl = \\"[object WeakSet]\\",
+ oe = \\"[object ArrayBuffer]\\",
+ Ft = \\"[object DataView]\\",
+ Nr = \\"[object Float32Array]\\",
+ Gr = \\"[object Float64Array]\\",
+ Hr = \\"[object Int8Array]\\",
+ zr = \\"[object Int16Array]\\",
+ $r = \\"[object Int32Array]\\",
+ Kr = \\"[object Uint8Array]\\",
+ Zr = \\"[object Uint8ClampedArray]\\",
+ Yr = \\"[object Uint16Array]\\",
+ Xr = \\"[object Uint32Array]\\",
+ kl = /\\\\b__p \\\\+= '';/g,
+ nc = /\\\\b(__p \\\\+=) '' \\\\+/g,
+ tc = /(__e\\\\(.*?\\\\)|\\\\b__t\\\\)) \\\\+\\\\n'';/g,
+ Iu = /&(?:amp|lt|gt|quot|#39);/g,
+ Eu = /[&<>\\"']/g,
+ ec = RegExp(Iu.source),
+ rc = RegExp(Eu.source),
+ ic = /<%-([\\\\s\\\\S]+?)%>/g,
+ uc = /<%([\\\\s\\\\S]+?)%>/g,
+ Ru = /<%=([\\\\s\\\\S]+?)%>/g,
+ fc = /\\\\.|\\\\[(?:[^[\\\\]]*|([\\"'])(?:(?!\\\\1)[^\\\\\\\\]|\\\\\\\\.)*?\\\\1)\\\\]/,
+ ac = /^\\\\w*$/,
+ oc =
+ /[^.[\\\\]]+|\\\\[(?:(-?\\\\d+(?:\\\\.\\\\d+)?)|([\\"'])((?:(?!\\\\2)[^\\\\\\\\]|\\\\\\\\.)*?)\\\\2)\\\\]|(?=(?:\\\\.|\\\\[\\\\])(?:\\\\.|\\\\[\\\\]|$))/g,
+ Jr = /[\\\\\\\\^$.*+?()[\\\\]{}|]/g,
+ sc = RegExp(Jr.source),
+ Qr = /^\\\\s+/,
+ lc = /\\\\s/,
+ cc = /\\\\{(?:\\\\n\\\\/\\\\* \\\\[wrapped with .+\\\\] \\\\*\\\\/)?\\\\n?/,
+ hc = /\\\\{\\\\n\\\\/\\\\* \\\\[wrapped with (.+)\\\\] \\\\*/,
+ pc = /,? & /,
+ gc = /[^\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\x7f]+/g,
+ _c = /[()=,{}\\\\[\\\\]\\\\/\\\\s]/,
+ dc = /\\\\\\\\(\\\\\\\\)?/g,
+ vc = /\\\\$\\\\{([^\\\\\\\\}]*(?:\\\\\\\\.[^\\\\\\\\}]*)*)\\\\}/g,
+ Lu = /\\\\w*$/,
+ xc = /^[-+]0x[0-9a-f]+$/i,
+ wc = /^0b[01]+$/i,
+ yc = /^\\\\[object .+?Constructor\\\\]$/,
+ Ac = /^0o[0-7]+$/i,
+ bc = /^(?:0|[1-9]\\\\d*)$/,
+ mc = /[\\\\xc0-\\\\xd6\\\\xd8-\\\\xf6\\\\xf8-\\\\xff\\\\u0100-\\\\u017f]/g,
+ Be = /($^)/,
+ Tc = /['\\\\n\\\\r\\\\u2028\\\\u2029\\\\\\\\]/g,
+ Ne = \\"\\\\\\\\ud800-\\\\\\\\udfff\\",
+ Sc = \\"\\\\\\\\u0300-\\\\\\\\u036f\\",
+ Cc = \\"\\\\\\\\ufe20-\\\\\\\\ufe2f\\",
+ Oc = \\"\\\\\\\\u20d0-\\\\\\\\u20ff\\",
+ Pu = Sc + Cc + Oc,
+ Mu = \\"\\\\\\\\u2700-\\\\\\\\u27bf\\",
+ Fu = \\"a-z\\\\\\\\xdf-\\\\\\\\xf6\\\\\\\\xf8-\\\\\\\\xff\\",
+ Ic = \\"\\\\\\\\xac\\\\\\\\xb1\\\\\\\\xd7\\\\\\\\xf7\\",
+ Ec = \\"\\\\\\\\x00-\\\\\\\\x2f\\\\\\\\x3a-\\\\\\\\x40\\\\\\\\x5b-\\\\\\\\x60\\\\\\\\x7b-\\\\\\\\xbf\\",
+ Rc = \\"\\\\\\\\u2000-\\\\\\\\u206f\\",
+ Lc =
+ \\" \\\\\\\\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\\",
+ Du = \\"A-Z\\\\\\\\xc0-\\\\\\\\xd6\\\\\\\\xd8-\\\\\\\\xde\\",
+ qu = \\"\\\\\\\\ufe0e\\\\\\\\ufe0f\\",
+ Wu = Ic + Ec + Rc + Lc,
+ Vr = \\"['\\\\u2019]\\",
+ Pc = \\"[\\" + Ne + \\"]\\",
+ Uu = \\"[\\" + Wu + \\"]\\",
+ Ge = \\"[\\" + Pu + \\"]\\",
+ Bu = \\"\\\\\\\\d+\\",
+ Mc = \\"[\\" + Mu + \\"]\\",
+ Nu = \\"[\\" + Fu + \\"]\\",
+ Gu = \\"[^\\" + Ne + Wu + Bu + Mu + Fu + Du + \\"]\\",
+ jr = \\"\\\\\\\\ud83c[\\\\\\\\udffb-\\\\\\\\udfff]\\",
+ Fc = \\"(?:\\" + Ge + \\"|\\" + jr + \\")\\",
+ Hu = \\"[^\\" + Ne + \\"]\\",
+ kr = \\"(?:\\\\\\\\ud83c[\\\\\\\\udde6-\\\\\\\\uddff]){2}\\",
+ ni = \\"[\\\\\\\\ud800-\\\\\\\\udbff][\\\\\\\\udc00-\\\\\\\\udfff]\\",
+ Dt = \\"[\\" + Du + \\"]\\",
+ zu = \\"\\\\\\\\u200d\\",
+ $u = \\"(?:\\" + Nu + \\"|\\" + Gu + \\")\\",
+ Dc = \\"(?:\\" + Dt + \\"|\\" + Gu + \\")\\",
+ Ku = \\"(?:\\" + Vr + \\"(?:d|ll|m|re|s|t|ve))?\\",
+ Zu = \\"(?:\\" + Vr + \\"(?:D|LL|M|RE|S|T|VE))?\\",
+ Yu = Fc + \\"?\\",
+ Xu = \\"[\\" + qu + \\"]?\\",
+ qc = \\"(?:\\" + zu + \\"(?:\\" + [Hu, kr, ni].join(\\"|\\") + \\")\\" + Xu + Yu + \\")*\\",
+ Wc = \\"\\\\\\\\d*(?:1st|2nd|3rd|(?![123])\\\\\\\\dth)(?=\\\\\\\\b|[A-Z_])\\",
+ Uc = \\"\\\\\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\\\\\dTH)(?=\\\\\\\\b|[a-z_])\\",
+ Ju = Xu + Yu + qc,
+ Bc = \\"(?:\\" + [Mc, kr, ni].join(\\"|\\") + \\")\\" + Ju,
+ Nc = \\"(?:\\" + [Hu + Ge + \\"?\\", Ge, kr, ni, Pc].join(\\"|\\") + \\")\\",
+ Gc = RegExp(Vr, \\"g\\"),
+ Hc = RegExp(Ge, \\"g\\"),
+ ti = RegExp(jr + \\"(?=\\" + jr + \\")|\\" + Nc + Ju, \\"g\\"),
+ zc = RegExp(
+ [
+ Dt + \\"?\\" + Nu + \\"+\\" + Ku + \\"(?=\\" + [Uu, Dt, \\"$\\"].join(\\"|\\") + \\")\\",
+ Dc + \\"+\\" + Zu + \\"(?=\\" + [Uu, Dt + $u, \\"$\\"].join(\\"|\\") + \\")\\",
+ Dt + \\"?\\" + $u + \\"+\\" + Ku,
+ Dt + \\"+\\" + Zu,
+ Uc,
+ Wc,
+ Bu,
+ Bc,
+ ].join(\\"|\\"),
+ \\"g\\"
+ ),
+ $c = RegExp(\\"[\\" + zu + Ne + Pu + qu + \\"]\\"),
+ Kc = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,
+ Zc = [
+ \\"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\\",
+ ],
+ Yc = -1,
+ Y = {};
+ (Y[Nr] =
+ Y[Gr] =
+ Y[Hr] =
+ Y[zr] =
+ Y[$r] =
+ Y[Kr] =
+ Y[Zr] =
+ Y[Yr] =
+ Y[Xr] =
+ !0),
+ (Y[Mt] =
+ Y[De] =
+ Y[oe] =
+ Y[ee] =
+ Y[Ft] =
+ Y[re] =
+ Y[qe] =
+ Y[We] =
+ Y[Mn] =
+ Y[ie] =
+ Y[Yn] =
+ Y[ue] =
+ Y[Fn] =
+ Y[fe] =
+ Y[ae] =
+ !1);
+ var Z = {};
+ (Z[Mt] =
+ Z[De] =
+ Z[oe] =
+ Z[Ft] =
+ Z[ee] =
+ Z[re] =
+ Z[Nr] =
+ Z[Gr] =
+ Z[Hr] =
+ Z[zr] =
+ Z[$r] =
+ Z[Mn] =
+ Z[ie] =
+ Z[Yn] =
+ Z[ue] =
+ Z[Fn] =
+ Z[fe] =
+ Z[Ue] =
+ Z[Kr] =
+ Z[Zr] =
+ Z[Yr] =
+ Z[Xr] =
+ !0),
+ (Z[qe] = Z[We] = Z[ae] = !1);
+ var Xc = {
+ À: \\"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\\",
+ Ā: \\"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\\",
+ },
+ Jc = {
+ \\"&\\": \\"&\\",
+ \\"<\\": \\"<\\",
+ \\">\\": \\">\\",
+ '\\"': \\""\\",
+ \\"'\\": \\"'\\",
+ },
+ Qc = {
+ \\"&\\": \\"&\\",
+ \\"<\\": \\"<\\",
+ \\">\\": \\">\\",
+ \\""\\": '\\"',
+ \\"'\\": \\"'\\",
+ },
+ Vc = {
+ \\"\\\\\\\\\\": \\"\\\\\\\\\\",
+ \\"'\\": \\"'\\",
+ \\"\\\\n\\": \\"n\\",
+ \\"\\\\r\\": \\"r\\",
+ \\"\\\\u2028\\": \\"u2028\\",
+ \\"\\\\u2029\\": \\"u2029\\",
+ },
+ jc = parseFloat,
+ kc = parseInt,
+ Qu =
+ typeof window == \\"object\\" &&
+ window &&
+ window.Object === Object &&
+ window,
+ nh = typeof self == \\"object\\" && self && self.Object === Object && self,
+ rn = Qu || nh || Function(\\"return this\\")(),
+ ei = typeof ne == \\"object\\" && ne && !ne.nodeType && ne,
+ wt = ei && typeof Me == \\"object\\" && Me && !Me.nodeType && Me,
+ Vu = wt && wt.exports === ei,
+ ri = Vu && Qu.process,
+ Sn = (function () {
+ try {
+ var h = wt && wt.require && wt.require(\\"util\\").types;
+ return h || (ri && ri.binding && ri.binding(\\"util\\"));
+ } catch {}
+ })(),
+ ju = Sn && Sn.isArrayBuffer,
+ ku = Sn && Sn.isDate,
+ nf = Sn && Sn.isMap,
+ tf = Sn && Sn.isRegExp,
+ ef = Sn && Sn.isSet,
+ rf = Sn && Sn.isTypedArray;
+ function xn(h, _, g) {
+ switch (g.length) {
+ case 0:
+ return h.call(_);
+ case 1:
+ return h.call(_, g[0]);
+ case 2:
+ return h.call(_, g[0], g[1]);
+ case 3:
+ return h.call(_, g[0], g[1], g[2]);
+ }
+ return h.apply(_, g);
+ }
+ function th(h, _, g, b) {
+ for (var R = -1, G = h == null ? 0 : h.length; ++R < G; ) {
+ var tn = h[R];
+ _(b, tn, g(tn), h);
+ }
+ return b;
+ }
+ function Cn(h, _) {
+ for (
+ var g = -1, b = h == null ? 0 : h.length;
+ ++g < b && _(h[g], g, h) !== !1;
+
+ );
+ return h;
+ }
+ function eh(h, _) {
+ for (var g = h == null ? 0 : h.length; g-- && _(h[g], g, h) !== !1; );
+ return h;
+ }
+ function uf(h, _) {
+ for (var g = -1, b = h == null ? 0 : h.length; ++g < b; )
+ if (!_(h[g], g, h)) return !1;
+ return !0;
+ }
+ function at(h, _) {
+ for (var g = -1, b = h == null ? 0 : h.length, R = 0, G = []; ++g < b; ) {
+ var tn = h[g];
+ _(tn, g, h) && (G[R++] = tn);
+ }
+ return G;
+ }
+ function He(h, _) {
+ var g = h == null ? 0 : h.length;
+ return !!g && qt(h, _, 0) > -1;
+ }
+ function ii(h, _, g) {
+ for (var b = -1, R = h == null ? 0 : h.length; ++b < R; )
+ if (g(_, h[b])) return !0;
+ return !1;
+ }
+ function J(h, _) {
+ for (var g = -1, b = h == null ? 0 : h.length, R = Array(b); ++g < b; )
+ R[g] = _(h[g], g, h);
+ return R;
+ }
+ function ot(h, _) {
+ for (var g = -1, b = _.length, R = h.length; ++g < b; ) h[R + g] = _[g];
+ return h;
+ }
+ function ui(h, _, g, b) {
+ var R = -1,
+ G = h == null ? 0 : h.length;
+ for (b && G && (g = h[++R]); ++R < G; ) g = _(g, h[R], R, h);
+ return g;
+ }
+ function rh(h, _, g, b) {
+ var R = h == null ? 0 : h.length;
+ for (b && R && (g = h[--R]); R--; ) g = _(g, h[R], R, h);
+ return g;
+ }
+ function fi(h, _) {
+ for (var g = -1, b = h == null ? 0 : h.length; ++g < b; )
+ if (_(h[g], g, h)) return !0;
+ return !1;
+ }
+ var ih = ai(\\"length\\");
+ function uh(h) {
+ return h.split(\\"\\");
+ }
+ function fh(h) {
+ return h.match(gc) || [];
+ }
+ function ff(h, _, g) {
+ var b;
+ return (
+ g(h, function (R, G, tn) {
+ if (_(R, G, tn)) return (b = G), !1;
+ }),
+ b
+ );
+ }
+ function ze(h, _, g, b) {
+ for (var R = h.length, G = g + (b ? 1 : -1); b ? G-- : ++G < R; )
+ if (_(h[G], G, h)) return G;
+ return -1;
+ }
+ function qt(h, _, g) {
+ return _ === _ ? xh(h, _, g) : ze(h, af, g);
+ }
+ function ah(h, _, g, b) {
+ for (var R = g - 1, G = h.length; ++R < G; ) if (b(h[R], _)) return R;
+ return -1;
+ }
+ function af(h) {
+ return h !== h;
+ }
+ function of(h, _) {
+ var g = h == null ? 0 : h.length;
+ return g ? si(h, _) / g : Fe;
+ }
+ function ai(h) {
+ return function (_) {
+ return _ == null ? r : _[h];
+ };
+ }
+ function oi(h) {
+ return function (_) {
+ return h == null ? r : h[_];
+ };
+ }
+ function sf(h, _, g, b, R) {
+ return (
+ R(h, function (G, tn, K) {
+ g = b ? ((b = !1), G) : _(g, G, tn, K);
+ }),
+ g
+ );
+ }
+ function oh(h, _) {
+ var g = h.length;
+ for (h.sort(_); g--; ) h[g] = h[g].value;
+ return h;
+ }
+ function si(h, _) {
+ for (var g, b = -1, R = h.length; ++b < R; ) {
+ var G = _(h[b]);
+ G !== r && (g = g === r ? G : g + G);
+ }
+ return g;
+ }
+ function li(h, _) {
+ for (var g = -1, b = Array(h); ++g < h; ) b[g] = _(g);
+ return b;
+ }
+ function sh(h, _) {
+ return J(_, function (g) {
+ return [g, h[g]];
+ });
+ }
+ function lf(h) {
+ return h && h.slice(0, gf(h) + 1).replace(Qr, \\"\\");
+ }
+ function wn(h) {
+ return function (_) {
+ return h(_);
+ };
+ }
+ function ci(h, _) {
+ return J(_, function (g) {
+ return h[g];
+ });
+ }
+ function se(h, _) {
+ return h.has(_);
+ }
+ function cf(h, _) {
+ for (var g = -1, b = h.length; ++g < b && qt(_, h[g], 0) > -1; );
+ return g;
+ }
+ function hf(h, _) {
+ for (var g = h.length; g-- && qt(_, h[g], 0) > -1; );
+ return g;
+ }
+ function lh(h, _) {
+ for (var g = h.length, b = 0; g--; ) h[g] === _ && ++b;
+ return b;
+ }
+ var ch = oi(Xc),
+ hh = oi(Jc);
+ function ph(h) {
+ return \\"\\\\\\\\\\" + Vc[h];
+ }
+ function gh(h, _) {
+ return h == null ? r : h[_];
+ }
+ function Wt(h) {
+ return $c.test(h);
+ }
+ function _h(h) {
+ return Kc.test(h);
+ }
+ function dh(h) {
+ for (var _, g = []; !(_ = h.next()).done; ) g.push(_.value);
+ return g;
+ }
+ function hi(h) {
+ var _ = -1,
+ g = Array(h.size);
+ return (
+ h.forEach(function (b, R) {
+ g[++_] = [R, b];
+ }),
+ g
+ );
+ }
+ function pf(h, _) {
+ return function (g) {
+ return h(_(g));
+ };
+ }
+ function st(h, _) {
+ for (var g = -1, b = h.length, R = 0, G = []; ++g < b; ) {
+ var tn = h[g];
+ (tn === _ || tn === z) && ((h[g] = z), (G[R++] = g));
+ }
+ return G;
+ }
+ function $e(h) {
+ var _ = -1,
+ g = Array(h.size);
+ return (
+ h.forEach(function (b) {
+ g[++_] = b;
+ }),
+ g
+ );
+ }
+ function vh(h) {
+ var _ = -1,
+ g = Array(h.size);
+ return (
+ h.forEach(function (b) {
+ g[++_] = [b, b];
+ }),
+ g
+ );
+ }
+ function xh(h, _, g) {
+ for (var b = g - 1, R = h.length; ++b < R; ) if (h[b] === _) return b;
+ return -1;
+ }
+ function wh(h, _, g) {
+ for (var b = g + 1; b--; ) if (h[b] === _) return b;
+ return b;
+ }
+ function Ut(h) {
+ return Wt(h) ? Ah(h) : ih(h);
+ }
+ function Dn(h) {
+ return Wt(h) ? bh(h) : uh(h);
+ }
+ function gf(h) {
+ for (var _ = h.length; _-- && lc.test(h.charAt(_)); );
+ return _;
+ }
+ var yh = oi(Qc);
+ function Ah(h) {
+ for (var _ = (ti.lastIndex = 0); ti.test(h); ) ++_;
+ return _;
+ }
+ function bh(h) {
+ return h.match(ti) || [];
+ }
+ function mh(h) {
+ return h.match(zc) || [];
+ }
+ var Th = function h(_) {
+ _ = _ == null ? rn : lt.defaults(rn.Object(), _, lt.pick(rn, Zc));
+ var g = _.Array,
+ b = _.Date,
+ R = _.Error,
+ G = _.Function,
+ tn = _.Math,
+ K = _.Object,
+ pi = _.RegExp,
+ Sh = _.String,
+ On = _.TypeError,
+ Ke = g.prototype,
+ Ch = G.prototype,
+ Bt = K.prototype,
+ Ze = _[\\"__core-js_shared__\\"],
+ Ye = Ch.toString,
+ $ = Bt.hasOwnProperty,
+ Oh = 0,
+ _f = (function () {
+ var n = /[^.]+$/.exec((Ze && Ze.keys && Ze.keys.IE_PROTO) || \\"\\");
+ return n ? \\"Symbol(src)_1.\\" + n : \\"\\";
+ })(),
+ Xe = Bt.toString,
+ Ih = Ye.call(K),
+ Eh = rn._,
+ Rh = pi(
+ \\"^\\" +
+ Ye.call($)
+ .replace(Jr, \\"\\\\\\\\$&\\")
+ .replace(
+ /hasOwnProperty|(function).*?(?=\\\\\\\\\\\\()| for .+?(?=\\\\\\\\\\\\])/g,
+ \\"$1.*?\\"
+ ) +
+ \\"$\\"
+ ),
+ Je = Vu ? _.Buffer : r,
+ ct = _.Symbol,
+ Qe = _.Uint8Array,
+ df = Je ? Je.allocUnsafe : r,
+ Ve = pf(K.getPrototypeOf, K),
+ vf = K.create,
+ xf = Bt.propertyIsEnumerable,
+ je = Ke.splice,
+ wf = ct ? ct.isConcatSpreadable : r,
+ le = ct ? ct.iterator : r,
+ yt = ct ? ct.toStringTag : r,
+ ke = (function () {
+ try {
+ var n = St(K, \\"defineProperty\\");
+ return n({}, \\"\\", {}), n;
+ } catch {}
+ })(),
+ Lh = _.clearTimeout !== rn.clearTimeout && _.clearTimeout,
+ Ph = b && b.now !== rn.Date.now && b.now,
+ Mh = _.setTimeout !== rn.setTimeout && _.setTimeout,
+ nr = tn.ceil,
+ tr = tn.floor,
+ gi = K.getOwnPropertySymbols,
+ Fh = Je ? Je.isBuffer : r,
+ yf = _.isFinite,
+ Dh = Ke.join,
+ qh = pf(K.keys, K),
+ en = tn.max,
+ on = tn.min,
+ Wh = b.now,
+ Uh = _.parseInt,
+ Af = tn.random,
+ Bh = Ke.reverse,
+ _i = St(_, \\"DataView\\"),
+ ce = St(_, \\"Map\\"),
+ di = St(_, \\"Promise\\"),
+ Nt = St(_, \\"Set\\"),
+ he = St(_, \\"WeakMap\\"),
+ pe = St(K, \\"create\\"),
+ er = he && new he(),
+ Gt = {},
+ Nh = Ct(_i),
+ Gh = Ct(ce),
+ Hh = Ct(di),
+ zh = Ct(Nt),
+ $h = Ct(he),
+ rr = ct ? ct.prototype : r,
+ ge = rr ? rr.valueOf : r,
+ bf = rr ? rr.toString : r;
+ function f(n) {
+ if (V(n) && !L(n) && !(n instanceof U)) {
+ if (n instanceof In) return n;
+ if ($.call(n, \\"__wrapped__\\")) return ma(n);
+ }
+ return new In(n);
+ }
+ var Ht = (function () {
+ function n() {}
+ return function (t) {
+ if (!Q(t)) return {};
+ if (vf) return vf(t);
+ n.prototype = t;
+ var e = new n();
+ return (n.prototype = r), e;
+ };
+ })();
+ function ir() {}
+ function In(n, t) {
+ (this.__wrapped__ = n),
+ (this.__actions__ = []),
+ (this.__chain__ = !!t),
+ (this.__index__ = 0),
+ (this.__values__ = r);
+ }
+ (f.templateSettings = {
+ escape: ic,
+ evaluate: uc,
+ interpolate: Ru,
+ variable: \\"\\",
+ imports: { _: f },
+ }),
+ (f.prototype = ir.prototype),
+ (f.prototype.constructor = f),
+ (In.prototype = Ht(ir.prototype)),
+ (In.prototype.constructor = In);
+ function U(n) {
+ (this.__wrapped__ = n),
+ (this.__actions__ = []),
+ (this.__dir__ = 1),
+ (this.__filtered__ = !1),
+ (this.__iteratees__ = []),
+ (this.__takeCount__ = Hn),
+ (this.__views__ = []);
+ }
+ function Kh() {
+ var n = new U(this.__wrapped__);
+ return (
+ (n.__actions__ = gn(this.__actions__)),
+ (n.__dir__ = this.__dir__),
+ (n.__filtered__ = this.__filtered__),
+ (n.__iteratees__ = gn(this.__iteratees__)),
+ (n.__takeCount__ = this.__takeCount__),
+ (n.__views__ = gn(this.__views__)),
+ n
+ );
+ }
+ function Zh() {
+ if (this.__filtered__) {
+ var n = new U(this);
+ (n.__dir__ = -1), (n.__filtered__ = !0);
+ } else (n = this.clone()), (n.__dir__ *= -1);
+ return n;
+ }
+ function Yh() {
+ var n = this.__wrapped__.value(),
+ t = this.__dir__,
+ e = L(n),
+ i = t < 0,
+ u = e ? n.length : 0,
+ a = ug(0, u, this.__views__),
+ s = a.start,
+ c = a.end,
+ p = c - s,
+ d = i ? c : s - 1,
+ v = this.__iteratees__,
+ y = v.length,
+ A = 0,
+ T = on(p, this.__takeCount__);
+ if (!e || (!i && u == p && T == p)) return Zf(n, this.__actions__);
+ var I = [];
+ n: for (; p-- && A < T; ) {
+ d += t;
+ for (var M = -1, E = n[d]; ++M < y; ) {
+ var W = v[M],
+ B = W.iteratee,
+ bn = W.type,
+ pn = B(E);
+ if (bn == Gl) E = pn;
+ else if (!pn) {
+ if (bn == Su) continue n;
+ break n;
+ }
+ }
+ I[A++] = E;
+ }
+ return I;
+ }
+ (U.prototype = Ht(ir.prototype)), (U.prototype.constructor = U);
+ function At(n) {
+ var t = -1,
+ e = n == null ? 0 : n.length;
+ for (this.clear(); ++t < e; ) {
+ var i = n[t];
+ this.set(i[0], i[1]);
+ }
+ }
+ function Xh() {
+ (this.__data__ = pe ? pe(null) : {}), (this.size = 0);
+ }
+ function Jh(n) {
+ var t = this.has(n) && delete this.__data__[n];
+ return (this.size -= t ? 1 : 0), t;
+ }
+ function Qh(n) {
+ var t = this.__data__;
+ if (pe) {
+ var e = t[n];
+ return e === N ? r : e;
+ }
+ return $.call(t, n) ? t[n] : r;
+ }
+ function Vh(n) {
+ var t = this.__data__;
+ return pe ? t[n] !== r : $.call(t, n);
+ }
+ function jh(n, t) {
+ var e = this.__data__;
+ return (
+ (this.size += this.has(n) ? 0 : 1),
+ (e[n] = pe && t === r ? N : t),
+ this
+ );
+ }
+ (At.prototype.clear = Xh),
+ (At.prototype.delete = Jh),
+ (At.prototype.get = Qh),
+ (At.prototype.has = Vh),
+ (At.prototype.set = jh);
+ function Xn(n) {
+ var t = -1,
+ e = n == null ? 0 : n.length;
+ for (this.clear(); ++t < e; ) {
+ var i = n[t];
+ this.set(i[0], i[1]);
+ }
+ }
+ function kh() {
+ (this.__data__ = []), (this.size = 0);
+ }
+ function np(n) {
+ var t = this.__data__,
+ e = ur(t, n);
+ if (e < 0) return !1;
+ var i = t.length - 1;
+ return e == i ? t.pop() : je.call(t, e, 1), --this.size, !0;
+ }
+ function tp(n) {
+ var t = this.__data__,
+ e = ur(t, n);
+ return e < 0 ? r : t[e][1];
+ }
+ function ep(n) {
+ return ur(this.__data__, n) > -1;
+ }
+ function rp(n, t) {
+ var e = this.__data__,
+ i = ur(e, n);
+ return i < 0 ? (++this.size, e.push([n, t])) : (e[i][1] = t), this;
+ }
+ (Xn.prototype.clear = kh),
+ (Xn.prototype.delete = np),
+ (Xn.prototype.get = tp),
+ (Xn.prototype.has = ep),
+ (Xn.prototype.set = rp);
+ function Jn(n) {
+ var t = -1,
+ e = n == null ? 0 : n.length;
+ for (this.clear(); ++t < e; ) {
+ var i = n[t];
+ this.set(i[0], i[1]);
+ }
+ }
+ function ip() {
+ (this.size = 0),
+ (this.__data__ = {
+ hash: new At(),
+ map: new (ce || Xn)(),
+ string: new At(),
+ });
+ }
+ function up(n) {
+ var t = vr(this, n).delete(n);
+ return (this.size -= t ? 1 : 0), t;
+ }
+ function fp(n) {
+ return vr(this, n).get(n);
+ }
+ function ap(n) {
+ return vr(this, n).has(n);
+ }
+ function op(n, t) {
+ var e = vr(this, n),
+ i = e.size;
+ return e.set(n, t), (this.size += e.size == i ? 0 : 1), this;
+ }
+ (Jn.prototype.clear = ip),
+ (Jn.prototype.delete = up),
+ (Jn.prototype.get = fp),
+ (Jn.prototype.has = ap),
+ (Jn.prototype.set = op);
+ function bt(n) {
+ var t = -1,
+ e = n == null ? 0 : n.length;
+ for (this.__data__ = new Jn(); ++t < e; ) this.add(n[t]);
+ }
+ function sp(n) {
+ return this.__data__.set(n, N), this;
+ }
+ function lp(n) {
+ return this.__data__.has(n);
+ }
+ (bt.prototype.add = bt.prototype.push = sp), (bt.prototype.has = lp);
+ function qn(n) {
+ var t = (this.__data__ = new Xn(n));
+ this.size = t.size;
+ }
+ function cp() {
+ (this.__data__ = new Xn()), (this.size = 0);
+ }
+ function hp(n) {
+ var t = this.__data__,
+ e = t.delete(n);
+ return (this.size = t.size), e;
+ }
+ function pp(n) {
+ return this.__data__.get(n);
+ }
+ function gp(n) {
+ return this.__data__.has(n);
+ }
+ function _p(n, t) {
+ var e = this.__data__;
+ if (e instanceof Xn) {
+ var i = e.__data__;
+ if (!ce || i.length < l - 1)
+ return i.push([n, t]), (this.size = ++e.size), this;
+ e = this.__data__ = new Jn(i);
+ }
+ return e.set(n, t), (this.size = e.size), this;
+ }
+ (qn.prototype.clear = cp),
+ (qn.prototype.delete = hp),
+ (qn.prototype.get = pp),
+ (qn.prototype.has = gp),
+ (qn.prototype.set = _p);
+ function mf(n, t) {
+ var e = L(n),
+ i = !e && Ot(n),
+ u = !e && !i && dt(n),
+ a = !e && !i && !u && Zt(n),
+ s = e || i || u || a,
+ c = s ? li(n.length, Sh) : [],
+ p = c.length;
+ for (var d in n)
+ (t || $.call(n, d)) &&
+ !(
+ s &&
+ (d == \\"length\\" ||
+ (u && (d == \\"offset\\" || d == \\"parent\\")) ||
+ (a &&
+ (d == \\"buffer\\" ||
+ d == \\"byteLength\\" ||
+ d == \\"byteOffset\\")) ||
+ kn(d, p))
+ ) &&
+ c.push(d);
+ return c;
+ }
+ function Tf(n) {
+ var t = n.length;
+ return t ? n[Oi(0, t - 1)] : r;
+ }
+ function dp(n, t) {
+ return xr(gn(n), mt(t, 0, n.length));
+ }
+ function vp(n) {
+ return xr(gn(n));
+ }
+ function vi(n, t, e) {
+ ((e !== r && !Wn(n[t], e)) || (e === r && !(t in n))) && Qn(n, t, e);
+ }
+ function _e(n, t, e) {
+ var i = n[t];
+ (!($.call(n, t) && Wn(i, e)) || (e === r && !(t in n))) &&
+ Qn(n, t, e);
+ }
+ function ur(n, t) {
+ for (var e = n.length; e--; ) if (Wn(n[e][0], t)) return e;
+ return -1;
+ }
+ function xp(n, t, e, i) {
+ return (
+ ht(n, function (u, a, s) {
+ t(i, u, e(u), s);
+ }),
+ i
+ );
+ }
+ function Sf(n, t) {
+ return n && $n(t, un(t), n);
+ }
+ function wp(n, t) {
+ return n && $n(t, dn(t), n);
+ }
+ function Qn(n, t, e) {
+ t == \\"__proto__\\" && ke
+ ? ke(n, t, {
+ configurable: !0,
+ enumerable: !0,
+ value: e,
+ writable: !0,
+ })
+ : (n[t] = e);
+ }
+ function xi(n, t) {
+ for (var e = -1, i = t.length, u = g(i), a = n == null; ++e < i; )
+ u[e] = a ? r : ji(n, t[e]);
+ return u;
+ }
+ function mt(n, t, e) {
+ return (
+ n === n &&
+ (e !== r && (n = n <= e ? n : e),
+ t !== r && (n = n >= t ? n : t)),
+ n
+ );
+ }
+ function En(n, t, e, i, u, a) {
+ var s,
+ c = t & j,
+ p = t & an,
+ d = t & Tn;
+ if ((e && (s = u ? e(n, i, u, a) : e(n)), s !== r)) return s;
+ if (!Q(n)) return n;
+ var v = L(n);
+ if (v) {
+ if (((s = ag(n)), !c)) return gn(n, s);
+ } else {
+ var y = sn(n),
+ A = y == We || y == Cu;
+ if (dt(n)) return Jf(n, c);
+ if (y == Yn || y == Mt || (A && !u)) {
+ if (((s = p || A ? {} : ga(n)), !c))
+ return p ? Qp(n, wp(s, n)) : Jp(n, Sf(s, n));
+ } else {
+ if (!Z[y]) return u ? n : {};
+ s = og(n, y, c);
+ }
+ }
+ a || (a = new qn());
+ var T = a.get(n);
+ if (T) return T;
+ a.set(n, s),
+ za(n)
+ ? n.forEach(function (E) {
+ s.add(En(E, t, e, E, n, a));
+ })
+ : Ga(n) &&
+ n.forEach(function (E, W) {
+ s.set(W, En(E, t, e, W, n, a));
+ });
+ var I = d ? (p ? Ui : Wi) : p ? dn : un,
+ M = v ? r : I(n);
+ return (
+ Cn(M || n, function (E, W) {
+ M && ((W = E), (E = n[W])), _e(s, W, En(E, t, e, W, n, a));
+ }),
+ s
+ );
+ }
+ function yp(n) {
+ var t = un(n);
+ return function (e) {
+ return Cf(e, n, t);
+ };
+ }
+ function Cf(n, t, e) {
+ var i = e.length;
+ if (n == null) return !i;
+ for (n = K(n); i--; ) {
+ var u = e[i],
+ a = t[u],
+ s = n[u];
+ if ((s === r && !(u in n)) || !a(s)) return !1;
+ }
+ return !0;
+ }
+ function Of(n, t, e) {
+ if (typeof n != \\"function\\") throw new On(m);
+ return be(function () {
+ n.apply(r, e);
+ }, t);
+ }
+ function de(n, t, e, i) {
+ var u = -1,
+ a = He,
+ s = !0,
+ c = n.length,
+ p = [],
+ d = t.length;
+ if (!c) return p;
+ e && (t = J(t, wn(e))),
+ i
+ ? ((a = ii), (s = !1))
+ : t.length >= l && ((a = se), (s = !1), (t = new bt(t)));
+ n: for (; ++u < c; ) {
+ var v = n[u],
+ y = e == null ? v : e(v);
+ if (((v = i || v !== 0 ? v : 0), s && y === y)) {
+ for (var A = d; A--; ) if (t[A] === y) continue n;
+ p.push(v);
+ } else a(t, y, i) || p.push(v);
+ }
+ return p;
+ }
+ var ht = na(zn),
+ If = na(yi, !0);
+ function Ap(n, t) {
+ var e = !0;
+ return (
+ ht(n, function (i, u, a) {
+ return (e = !!t(i, u, a)), e;
+ }),
+ e
+ );
+ }
+ function fr(n, t, e) {
+ for (var i = -1, u = n.length; ++i < u; ) {
+ var a = n[i],
+ s = t(a);
+ if (s != null && (c === r ? s === s && !An(s) : e(s, c)))
+ var c = s,
+ p = a;
+ }
+ return p;
+ }
+ function bp(n, t, e, i) {
+ var u = n.length;
+ for (
+ e = P(e),
+ e < 0 && (e = -e > u ? 0 : u + e),
+ i = i === r || i > u ? u : P(i),
+ i < 0 && (i += u),
+ i = e > i ? 0 : Ka(i);
+ e < i;
+
+ )
+ n[e++] = t;
+ return n;
+ }
+ function Ef(n, t) {
+ var e = [];
+ return (
+ ht(n, function (i, u, a) {
+ t(i, u, a) && e.push(i);
+ }),
+ e
+ );
+ }
+ function fn(n, t, e, i, u) {
+ var a = -1,
+ s = n.length;
+ for (e || (e = lg), u || (u = []); ++a < s; ) {
+ var c = n[a];
+ t > 0 && e(c)
+ ? t > 1
+ ? fn(c, t - 1, e, i, u)
+ : ot(u, c)
+ : i || (u[u.length] = c);
+ }
+ return u;
+ }
+ var wi = ta(),
+ Rf = ta(!0);
+ function zn(n, t) {
+ return n && wi(n, t, un);
+ }
+ function yi(n, t) {
+ return n && Rf(n, t, un);
+ }
+ function ar(n, t) {
+ return at(t, function (e) {
+ return nt(n[e]);
+ });
+ }
+ function Tt(n, t) {
+ t = gt(t, n);
+ for (var e = 0, i = t.length; n != null && e < i; ) n = n[Kn(t[e++])];
+ return e && e == i ? n : r;
+ }
+ function Lf(n, t, e) {
+ var i = t(n);
+ return L(n) ? i : ot(i, e(n));
+ }
+ function cn(n) {
+ return n == null
+ ? n === r
+ ? Vl
+ : Jl
+ : yt && yt in K(n)
+ ? ig(n)
+ : vg(n);
+ }
+ function Ai(n, t) {
+ return n > t;
+ }
+ function mp(n, t) {
+ return n != null && $.call(n, t);
+ }
+ function Tp(n, t) {
+ return n != null && t in K(n);
+ }
+ function Sp(n, t, e) {
+ return n >= on(t, e) && n < en(t, e);
+ }
+ function bi(n, t, e) {
+ for (
+ var i = e ? ii : He,
+ u = n[0].length,
+ a = n.length,
+ s = a,
+ c = g(a),
+ p = 1 / 0,
+ d = [];
+ s--;
+
+ ) {
+ var v = n[s];
+ s && t && (v = J(v, wn(t))),
+ (p = on(v.length, p)),
+ (c[s] =
+ !e && (t || (u >= 120 && v.length >= 120))
+ ? new bt(s && v)
+ : r);
+ }
+ v = n[0];
+ var y = -1,
+ A = c[0];
+ n: for (; ++y < u && d.length < p; ) {
+ var T = v[y],
+ I = t ? t(T) : T;
+ if (((T = e || T !== 0 ? T : 0), !(A ? se(A, I) : i(d, I, e)))) {
+ for (s = a; --s; ) {
+ var M = c[s];
+ if (!(M ? se(M, I) : i(n[s], I, e))) continue n;
+ }
+ A && A.push(I), d.push(T);
+ }
+ }
+ return d;
+ }
+ function Cp(n, t, e, i) {
+ return (
+ zn(n, function (u, a, s) {
+ t(i, e(u), a, s);
+ }),
+ i
+ );
+ }
+ function ve(n, t, e) {
+ (t = gt(t, n)), (n = xa(n, t));
+ var i = n == null ? n : n[Kn(Ln(t))];
+ return i == null ? r : xn(i, n, e);
+ }
+ function Pf(n) {
+ return V(n) && cn(n) == Mt;
+ }
+ function Op(n) {
+ return V(n) && cn(n) == oe;
+ }
+ function Ip(n) {
+ return V(n) && cn(n) == re;
+ }
+ function xe(n, t, e, i, u) {
+ return n === t
+ ? !0
+ : n == null || t == null || (!V(n) && !V(t))
+ ? n !== n && t !== t
+ : Ep(n, t, e, i, xe, u);
+ }
+ function Ep(n, t, e, i, u, a) {
+ var s = L(n),
+ c = L(t),
+ p = s ? De : sn(n),
+ d = c ? De : sn(t);
+ (p = p == Mt ? Yn : p), (d = d == Mt ? Yn : d);
+ var v = p == Yn,
+ y = d == Yn,
+ A = p == d;
+ if (A && dt(n)) {
+ if (!dt(t)) return !1;
+ (s = !0), (v = !1);
+ }
+ if (A && !v)
+ return (
+ a || (a = new qn()),
+ s || Zt(n) ? ca(n, t, e, i, u, a) : eg(n, t, p, e, i, u, a)
+ );
+ if (!(e & Bn)) {
+ var T = v && $.call(n, \\"__wrapped__\\"),
+ I = y && $.call(t, \\"__wrapped__\\");
+ if (T || I) {
+ var M = T ? n.value() : n,
+ E = I ? t.value() : t;
+ return a || (a = new qn()), u(M, E, e, i, a);
+ }
+ }
+ return A ? (a || (a = new qn()), rg(n, t, e, i, u, a)) : !1;
+ }
+ function Rp(n) {
+ return V(n) && sn(n) == Mn;
+ }
+ function mi(n, t, e, i) {
+ var u = e.length,
+ a = u,
+ s = !i;
+ if (n == null) return !a;
+ for (n = K(n); u--; ) {
+ var c = e[u];
+ if (s && c[2] ? c[1] !== n[c[0]] : !(c[0] in n)) return !1;
+ }
+ for (; ++u < a; ) {
+ c = e[u];
+ var p = c[0],
+ d = n[p],
+ v = c[1];
+ if (s && c[2]) {
+ if (d === r && !(p in n)) return !1;
+ } else {
+ var y = new qn();
+ if (i) var A = i(d, v, p, n, t, y);
+ if (!(A === r ? xe(v, d, Bn | ut, i, y) : A)) return !1;
+ }
+ }
+ return !0;
+ }
+ function Mf(n) {
+ if (!Q(n) || hg(n)) return !1;
+ var t = nt(n) ? Rh : yc;
+ return t.test(Ct(n));
+ }
+ function Lp(n) {
+ return V(n) && cn(n) == ue;
+ }
+ function Pp(n) {
+ return V(n) && sn(n) == Fn;
+ }
+ function Mp(n) {
+ return V(n) && Tr(n.length) && !!Y[cn(n)];
+ }
+ function Ff(n) {
+ return typeof n == \\"function\\"
+ ? n
+ : n == null
+ ? vn
+ : typeof n == \\"object\\"
+ ? L(n)
+ ? Wf(n[0], n[1])
+ : qf(n)
+ : eo(n);
+ }
+ function Ti(n) {
+ if (!Ae(n)) return qh(n);
+ var t = [];
+ for (var e in K(n)) $.call(n, e) && e != \\"constructor\\" && t.push(e);
+ return t;
+ }
+ function Fp(n) {
+ if (!Q(n)) return dg(n);
+ var t = Ae(n),
+ e = [];
+ for (var i in n)
+ (i == \\"constructor\\" && (t || !$.call(n, i))) || e.push(i);
+ return e;
+ }
+ function Si(n, t) {
+ return n < t;
+ }
+ function Df(n, t) {
+ var e = -1,
+ i = _n(n) ? g(n.length) : [];
+ return (
+ ht(n, function (u, a, s) {
+ i[++e] = t(u, a, s);
+ }),
+ i
+ );
+ }
+ function qf(n) {
+ var t = Ni(n);
+ return t.length == 1 && t[0][2]
+ ? da(t[0][0], t[0][1])
+ : function (e) {
+ return e === n || mi(e, n, t);
+ };
+ }
+ function Wf(n, t) {
+ return Hi(n) && _a(t)
+ ? da(Kn(n), t)
+ : function (e) {
+ var i = ji(e, n);
+ return i === r && i === t ? ki(e, n) : xe(t, i, Bn | ut);
+ };
+ }
+ function or(n, t, e, i, u) {
+ n !== t &&
+ wi(
+ t,
+ function (a, s) {
+ if ((u || (u = new qn()), Q(a))) Dp(n, t, s, e, or, i, u);
+ else {
+ var c = i ? i($i(n, s), a, s + \\"\\", n, t, u) : r;
+ c === r && (c = a), vi(n, s, c);
+ }
+ },
+ dn
+ );
+ }
+ function Dp(n, t, e, i, u, a, s) {
+ var c = $i(n, e),
+ p = $i(t, e),
+ d = s.get(p);
+ if (d) {
+ vi(n, e, d);
+ return;
+ }
+ var v = a ? a(c, p, e + \\"\\", n, t, s) : r,
+ y = v === r;
+ if (y) {
+ var A = L(p),
+ T = !A && dt(p),
+ I = !A && !T && Zt(p);
+ (v = p),
+ A || T || I
+ ? L(c)
+ ? (v = c)
+ : k(c)
+ ? (v = gn(c))
+ : T
+ ? ((y = !1), (v = Jf(p, !0)))
+ : I
+ ? ((y = !1), (v = Qf(p, !0)))
+ : (v = [])
+ : me(p) || Ot(p)
+ ? ((v = c),
+ Ot(c) ? (v = Za(c)) : (!Q(c) || nt(c)) && (v = ga(p)))
+ : (y = !1);
+ }
+ y && (s.set(p, v), u(v, p, i, a, s), s.delete(p)), vi(n, e, v);
+ }
+ function Uf(n, t) {
+ var e = n.length;
+ if (!!e) return (t += t < 0 ? e : 0), kn(t, e) ? n[t] : r;
+ }
+ function Bf(n, t, e) {
+ t.length
+ ? (t = J(t, function (a) {
+ return L(a)
+ ? function (s) {
+ return Tt(s, a.length === 1 ? a[0] : a);
+ }
+ : a;
+ }))
+ : (t = [vn]);
+ var i = -1;
+ t = J(t, wn(O()));
+ var u = Df(n, function (a, s, c) {
+ var p = J(t, function (d) {
+ return d(a);
+ });
+ return { criteria: p, index: ++i, value: a };
+ });
+ return oh(u, function (a, s) {
+ return Xp(a, s, e);
+ });
+ }
+ function qp(n, t) {
+ return Nf(n, t, function (e, i) {
+ return ki(n, i);
+ });
+ }
+ function Nf(n, t, e) {
+ for (var i = -1, u = t.length, a = {}; ++i < u; ) {
+ var s = t[i],
+ c = Tt(n, s);
+ e(c, s) && we(a, gt(s, n), c);
+ }
+ return a;
+ }
+ function Wp(n) {
+ return function (t) {
+ return Tt(t, n);
+ };
+ }
+ function Ci(n, t, e, i) {
+ var u = i ? ah : qt,
+ a = -1,
+ s = t.length,
+ c = n;
+ for (n === t && (t = gn(t)), e && (c = J(n, wn(e))); ++a < s; )
+ for (
+ var p = 0, d = t[a], v = e ? e(d) : d;
+ (p = u(c, v, p, i)) > -1;
+
+ )
+ c !== n && je.call(c, p, 1), je.call(n, p, 1);
+ return n;
+ }
+ function Gf(n, t) {
+ for (var e = n ? t.length : 0, i = e - 1; e--; ) {
+ var u = t[e];
+ if (e == i || u !== a) {
+ var a = u;
+ kn(u) ? je.call(n, u, 1) : Ri(n, u);
+ }
+ }
+ return n;
+ }
+ function Oi(n, t) {
+ return n + tr(Af() * (t - n + 1));
+ }
+ function Up(n, t, e, i) {
+ for (var u = -1, a = en(nr((t - n) / (e || 1)), 0), s = g(a); a--; )
+ (s[i ? a : ++u] = n), (n += e);
+ return s;
+ }
+ function Ii(n, t) {
+ var e = \\"\\";
+ if (!n || t < 1 || t > ft) return e;
+ do t % 2 && (e += n), (t = tr(t / 2)), t && (n += n);
+ while (t);
+ return e;
+ }
+ function F(n, t) {
+ return Ki(va(n, t, vn), n + \\"\\");
+ }
+ function Bp(n) {
+ return Tf(Yt(n));
+ }
+ function Np(n, t) {
+ var e = Yt(n);
+ return xr(e, mt(t, 0, e.length));
+ }
+ function we(n, t, e, i) {
+ if (!Q(n)) return n;
+ t = gt(t, n);
+ for (
+ var u = -1, a = t.length, s = a - 1, c = n;
+ c != null && ++u < a;
+
+ ) {
+ var p = Kn(t[u]),
+ d = e;
+ if (p === \\"__proto__\\" || p === \\"constructor\\" || p === \\"prototype\\")
+ return n;
+ if (u != s) {
+ var v = c[p];
+ (d = i ? i(v, p, c) : r),
+ d === r && (d = Q(v) ? v : kn(t[u + 1]) ? [] : {});
+ }
+ _e(c, p, d), (c = c[p]);
+ }
+ return n;
+ }
+ var Hf = er
+ ? function (n, t) {
+ return er.set(n, t), n;
+ }
+ : vn,
+ Gp = ke
+ ? function (n, t) {
+ return ke(n, \\"toString\\", {
+ configurable: !0,
+ enumerable: !1,
+ value: tu(t),
+ writable: !0,
+ });
+ }
+ : vn;
+ function Hp(n) {
+ return xr(Yt(n));
+ }
+ function Rn(n, t, e) {
+ var i = -1,
+ u = n.length;
+ t < 0 && (t = -t > u ? 0 : u + t),
+ (e = e > u ? u : e),
+ e < 0 && (e += u),
+ (u = t > e ? 0 : (e - t) >>> 0),
+ (t >>>= 0);
+ for (var a = g(u); ++i < u; ) a[i] = n[i + t];
+ return a;
+ }
+ function zp(n, t) {
+ var e;
+ return (
+ ht(n, function (i, u, a) {
+ return (e = t(i, u, a)), !e;
+ }),
+ !!e
+ );
+ }
+ function sr(n, t, e) {
+ var i = 0,
+ u = n == null ? i : n.length;
+ if (typeof t == \\"number\\" && t === t && u <= Kl) {
+ for (; i < u; ) {
+ var a = (i + u) >>> 1,
+ s = n[a];
+ s !== null && !An(s) && (e ? s <= t : s < t)
+ ? (i = a + 1)
+ : (u = a);
+ }
+ return u;
+ }
+ return Ei(n, t, vn, e);
+ }
+ function Ei(n, t, e, i) {
+ var u = 0,
+ a = n == null ? 0 : n.length;
+ if (a === 0) return 0;
+ t = e(t);
+ for (
+ var s = t !== t, c = t === null, p = An(t), d = t === r;
+ u < a;
+
+ ) {
+ var v = tr((u + a) / 2),
+ y = e(n[v]),
+ A = y !== r,
+ T = y === null,
+ I = y === y,
+ M = An(y);
+ if (s) var E = i || I;
+ else
+ d
+ ? (E = I && (i || A))
+ : c
+ ? (E = I && A && (i || !T))
+ : p
+ ? (E = I && A && !T && (i || !M))
+ : T || M
+ ? (E = !1)
+ : (E = i ? y <= t : y < t);
+ E ? (u = v + 1) : (a = v);
+ }
+ return on(a, $l);
+ }
+ function zf(n, t) {
+ for (var e = -1, i = n.length, u = 0, a = []; ++e < i; ) {
+ var s = n[e],
+ c = t ? t(s) : s;
+ if (!e || !Wn(c, p)) {
+ var p = c;
+ a[u++] = s === 0 ? 0 : s;
+ }
+ }
+ return a;
+ }
+ function $f(n) {
+ return typeof n == \\"number\\" ? n : An(n) ? Fe : +n;
+ }
+ function yn(n) {
+ if (typeof n == \\"string\\") return n;
+ if (L(n)) return J(n, yn) + \\"\\";
+ if (An(n)) return bf ? bf.call(n) : \\"\\";
+ var t = n + \\"\\";
+ return t == \\"0\\" && 1 / n == -xt ? \\"-0\\" : t;
+ }
+ function pt(n, t, e) {
+ var i = -1,
+ u = He,
+ a = n.length,
+ s = !0,
+ c = [],
+ p = c;
+ if (e) (s = !1), (u = ii);
+ else if (a >= l) {
+ var d = t ? null : ng(n);
+ if (d) return $e(d);
+ (s = !1), (u = se), (p = new bt());
+ } else p = t ? [] : c;
+ n: for (; ++i < a; ) {
+ var v = n[i],
+ y = t ? t(v) : v;
+ if (((v = e || v !== 0 ? v : 0), s && y === y)) {
+ for (var A = p.length; A--; ) if (p[A] === y) continue n;
+ t && p.push(y), c.push(v);
+ } else u(p, y, e) || (p !== c && p.push(y), c.push(v));
+ }
+ return c;
+ }
+ function Ri(n, t) {
+ return (
+ (t = gt(t, n)), (n = xa(n, t)), n == null || delete n[Kn(Ln(t))]
+ );
+ }
+ function Kf(n, t, e, i) {
+ return we(n, t, e(Tt(n, t)), i);
+ }
+ function lr(n, t, e, i) {
+ for (
+ var u = n.length, a = i ? u : -1;
+ (i ? a-- : ++a < u) && t(n[a], a, n);
+
+ );
+ return e
+ ? Rn(n, i ? 0 : a, i ? a + 1 : u)
+ : Rn(n, i ? a + 1 : 0, i ? u : a);
+ }
+ function Zf(n, t) {
+ var e = n;
+ return (
+ e instanceof U && (e = e.value()),
+ ui(
+ t,
+ function (i, u) {
+ return u.func.apply(u.thisArg, ot([i], u.args));
+ },
+ e
+ )
+ );
+ }
+ function Li(n, t, e) {
+ var i = n.length;
+ if (i < 2) return i ? pt(n[0]) : [];
+ for (var u = -1, a = g(i); ++u < i; )
+ for (var s = n[u], c = -1; ++c < i; )
+ c != u && (a[u] = de(a[u] || s, n[c], t, e));
+ return pt(fn(a, 1), t, e);
+ }
+ function Yf(n, t, e) {
+ for (var i = -1, u = n.length, a = t.length, s = {}; ++i < u; ) {
+ var c = i < a ? t[i] : r;
+ e(s, n[i], c);
+ }
+ return s;
+ }
+ function Pi(n) {
+ return k(n) ? n : [];
+ }
+ function Mi(n) {
+ return typeof n == \\"function\\" ? n : vn;
+ }
+ function gt(n, t) {
+ return L(n) ? n : Hi(n, t) ? [n] : ba(H(n));
+ }
+ var $p = F;
+ function _t(n, t, e) {
+ var i = n.length;
+ return (e = e === r ? i : e), !t && e >= i ? n : Rn(n, t, e);
+ }
+ var Xf =
+ Lh ||
+ function (n) {
+ return rn.clearTimeout(n);
+ };
+ function Jf(n, t) {
+ if (t) return n.slice();
+ var e = n.length,
+ i = df ? df(e) : new n.constructor(e);
+ return n.copy(i), i;
+ }
+ function Fi(n) {
+ var t = new n.constructor(n.byteLength);
+ return new Qe(t).set(new Qe(n)), t;
+ }
+ function Kp(n, t) {
+ var e = t ? Fi(n.buffer) : n.buffer;
+ return new n.constructor(e, n.byteOffset, n.byteLength);
+ }
+ function Zp(n) {
+ var t = new n.constructor(n.source, Lu.exec(n));
+ return (t.lastIndex = n.lastIndex), t;
+ }
+ function Yp(n) {
+ return ge ? K(ge.call(n)) : {};
+ }
+ function Qf(n, t) {
+ var e = t ? Fi(n.buffer) : n.buffer;
+ return new n.constructor(e, n.byteOffset, n.length);
+ }
+ function Vf(n, t) {
+ if (n !== t) {
+ var e = n !== r,
+ i = n === null,
+ u = n === n,
+ a = An(n),
+ s = t !== r,
+ c = t === null,
+ p = t === t,
+ d = An(t);
+ if (
+ (!c && !d && !a && n > t) ||
+ (a && s && p && !c && !d) ||
+ (i && s && p) ||
+ (!e && p) ||
+ !u
+ )
+ return 1;
+ if (
+ (!i && !a && !d && n < t) ||
+ (d && e && u && !i && !a) ||
+ (c && e && u) ||
+ (!s && u) ||
+ !p
+ )
+ return -1;
+ }
+ return 0;
+ }
+ function Xp(n, t, e) {
+ for (
+ var i = -1,
+ u = n.criteria,
+ a = t.criteria,
+ s = u.length,
+ c = e.length;
+ ++i < s;
+
+ ) {
+ var p = Vf(u[i], a[i]);
+ if (p) {
+ if (i >= c) return p;
+ var d = e[i];
+ return p * (d == \\"desc\\" ? -1 : 1);
+ }
+ }
+ return n.index - t.index;
+ }
+ function jf(n, t, e, i) {
+ for (
+ var u = -1,
+ a = n.length,
+ s = e.length,
+ c = -1,
+ p = t.length,
+ d = en(a - s, 0),
+ v = g(p + d),
+ y = !i;
+ ++c < p;
+
+ )
+ v[c] = t[c];
+ for (; ++u < s; ) (y || u < a) && (v[e[u]] = n[u]);
+ for (; d--; ) v[c++] = n[u++];
+ return v;
+ }
+ function kf(n, t, e, i) {
+ for (
+ var u = -1,
+ a = n.length,
+ s = -1,
+ c = e.length,
+ p = -1,
+ d = t.length,
+ v = en(a - c, 0),
+ y = g(v + d),
+ A = !i;
+ ++u < v;
+
+ )
+ y[u] = n[u];
+ for (var T = u; ++p < d; ) y[T + p] = t[p];
+ for (; ++s < c; ) (A || u < a) && (y[T + e[s]] = n[u++]);
+ return y;
+ }
+ function gn(n, t) {
+ var e = -1,
+ i = n.length;
+ for (t || (t = g(i)); ++e < i; ) t[e] = n[e];
+ return t;
+ }
+ function $n(n, t, e, i) {
+ var u = !e;
+ e || (e = {});
+ for (var a = -1, s = t.length; ++a < s; ) {
+ var c = t[a],
+ p = i ? i(e[c], n[c], c, e, n) : r;
+ p === r && (p = n[c]), u ? Qn(e, c, p) : _e(e, c, p);
+ }
+ return e;
+ }
+ function Jp(n, t) {
+ return $n(n, Gi(n), t);
+ }
+ function Qp(n, t) {
+ return $n(n, ha(n), t);
+ }
+ function cr(n, t) {
+ return function (e, i) {
+ var u = L(e) ? th : xp,
+ a = t ? t() : {};
+ return u(e, n, O(i, 2), a);
+ };
+ }
+ function zt(n) {
+ return F(function (t, e) {
+ var i = -1,
+ u = e.length,
+ a = u > 1 ? e[u - 1] : r,
+ s = u > 2 ? e[2] : r;
+ for (
+ a = n.length > 3 && typeof a == \\"function\\" ? (u--, a) : r,
+ s && hn(e[0], e[1], s) && ((a = u < 3 ? r : a), (u = 1)),
+ t = K(t);
+ ++i < u;
+
+ ) {
+ var c = e[i];
+ c && n(t, c, i, a);
+ }
+ return t;
+ });
+ }
+ function na(n, t) {
+ return function (e, i) {
+ if (e == null) return e;
+ if (!_n(e)) return n(e, i);
+ for (
+ var u = e.length, a = t ? u : -1, s = K(e);
+ (t ? a-- : ++a < u) && i(s[a], a, s) !== !1;
+
+ );
+ return e;
+ };
+ }
+ function ta(n) {
+ return function (t, e, i) {
+ for (var u = -1, a = K(t), s = i(t), c = s.length; c--; ) {
+ var p = s[n ? c : ++u];
+ if (e(a[p], p, a) === !1) break;
+ }
+ return t;
+ };
+ }
+ function Vp(n, t, e) {
+ var i = t & ln,
+ u = ye(n);
+ function a() {
+ var s = this && this !== rn && this instanceof a ? u : n;
+ return s.apply(i ? e : this, arguments);
+ }
+ return a;
+ }
+ function ea(n) {
+ return function (t) {
+ t = H(t);
+ var e = Wt(t) ? Dn(t) : r,
+ i = e ? e[0] : t.charAt(0),
+ u = e ? _t(e, 1).join(\\"\\") : t.slice(1);
+ return i[n]() + u;
+ };
+ }
+ function $t(n) {
+ return function (t) {
+ return ui(no(ka(t).replace(Gc, \\"\\")), n, \\"\\");
+ };
+ }
+ function ye(n) {
+ return function () {
+ var t = arguments;
+ switch (t.length) {
+ case 0:
+ return new n();
+ case 1:
+ return new n(t[0]);
+ case 2:
+ return new n(t[0], t[1]);
+ case 3:
+ return new n(t[0], t[1], t[2]);
+ case 4:
+ return new n(t[0], t[1], t[2], t[3]);
+ case 5:
+ return new n(t[0], t[1], t[2], t[3], t[4]);
+ case 6:
+ return new n(t[0], t[1], t[2], t[3], t[4], t[5]);
+ case 7:
+ return new n(t[0], t[1], t[2], t[3], t[4], t[5], t[6]);
+ }
+ var e = Ht(n.prototype),
+ i = n.apply(e, t);
+ return Q(i) ? i : e;
+ };
+ }
+ function jp(n, t, e) {
+ var i = ye(n);
+ function u() {
+ for (var a = arguments.length, s = g(a), c = a, p = Kt(u); c--; )
+ s[c] = arguments[c];
+ var d = a < 3 && s[0] !== p && s[a - 1] !== p ? [] : st(s, p);
+ if (((a -= d.length), a < e))
+ return aa(n, t, hr, u.placeholder, r, s, d, r, r, e - a);
+ var v = this && this !== rn && this instanceof u ? i : n;
+ return xn(v, this, s);
+ }
+ return u;
+ }
+ function ra(n) {
+ return function (t, e, i) {
+ var u = K(t);
+ if (!_n(t)) {
+ var a = O(e, 3);
+ (t = un(t)),
+ (e = function (c) {
+ return a(u[c], c, u);
+ });
+ }
+ var s = n(t, e, i);
+ return s > -1 ? u[a ? t[s] : s] : r;
+ };
+ }
+ function ia(n) {
+ return jn(function (t) {
+ var e = t.length,
+ i = e,
+ u = In.prototype.thru;
+ for (n && t.reverse(); i--; ) {
+ var a = t[i];
+ if (typeof a != \\"function\\") throw new On(m);
+ if (u && !s && dr(a) == \\"wrapper\\") var s = new In([], !0);
+ }
+ for (i = s ? i : e; ++i < e; ) {
+ a = t[i];
+ var c = dr(a),
+ p = c == \\"wrapper\\" ? Bi(a) : r;
+ p &&
+ zi(p[0]) &&
+ p[1] == (Zn | Nn | Gn | te) &&
+ !p[4].length &&
+ p[9] == 1
+ ? (s = s[dr(p[0])].apply(s, p[3]))
+ : (s = a.length == 1 && zi(a) ? s[c]() : s.thru(a));
+ }
+ return function () {
+ var d = arguments,
+ v = d[0];
+ if (s && d.length == 1 && L(v)) return s.plant(v).value();
+ for (var y = 0, A = e ? t[y].apply(this, d) : v; ++y < e; )
+ A = t[y].call(this, A);
+ return A;
+ };
+ });
+ }
+ function hr(n, t, e, i, u, a, s, c, p, d) {
+ var v = t & Zn,
+ y = t & ln,
+ A = t & vt,
+ T = t & (Nn | Lt),
+ I = t & Br,
+ M = A ? r : ye(n);
+ function E() {
+ for (var W = arguments.length, B = g(W), bn = W; bn--; )
+ B[bn] = arguments[bn];
+ if (T)
+ var pn = Kt(E),
+ mn = lh(B, pn);
+ if (
+ (i && (B = jf(B, i, u, T)),
+ a && (B = kf(B, a, s, T)),
+ (W -= mn),
+ T && W < d)
+ ) {
+ var nn = st(B, pn);
+ return aa(n, t, hr, E.placeholder, e, B, nn, c, p, d - W);
+ }
+ var Un = y ? e : this,
+ et = A ? Un[n] : n;
+ return (
+ (W = B.length),
+ c ? (B = xg(B, c)) : I && W > 1 && B.reverse(),
+ v && p < W && (B.length = p),
+ this && this !== rn && this instanceof E && (et = M || ye(et)),
+ et.apply(Un, B)
+ );
+ }
+ return E;
+ }
+ function ua(n, t) {
+ return function (e, i) {
+ return Cp(e, n, t(i), {});
+ };
+ }
+ function pr(n, t) {
+ return function (e, i) {
+ var u;
+ if (e === r && i === r) return t;
+ if ((e !== r && (u = e), i !== r)) {
+ if (u === r) return i;
+ typeof e == \\"string\\" || typeof i == \\"string\\"
+ ? ((e = yn(e)), (i = yn(i)))
+ : ((e = $f(e)), (i = $f(i))),
+ (u = n(e, i));
+ }
+ return u;
+ };
+ }
+ function Di(n) {
+ return jn(function (t) {
+ return (
+ (t = J(t, wn(O()))),
+ F(function (e) {
+ var i = this;
+ return n(t, function (u) {
+ return xn(u, i, e);
+ });
+ })
+ );
+ });
+ }
+ function gr(n, t) {
+ t = t === r ? \\" \\" : yn(t);
+ var e = t.length;
+ if (e < 2) return e ? Ii(t, n) : t;
+ var i = Ii(t, nr(n / Ut(t)));
+ return Wt(t) ? _t(Dn(i), 0, n).join(\\"\\") : i.slice(0, n);
+ }
+ function kp(n, t, e, i) {
+ var u = t & ln,
+ a = ye(n);
+ function s() {
+ for (
+ var c = -1,
+ p = arguments.length,
+ d = -1,
+ v = i.length,
+ y = g(v + p),
+ A = this && this !== rn && this instanceof s ? a : n;
+ ++d < v;
+
+ )
+ y[d] = i[d];
+ for (; p--; ) y[d++] = arguments[++c];
+ return xn(A, u ? e : this, y);
+ }
+ return s;
+ }
+ function fa(n) {
+ return function (t, e, i) {
+ return (
+ i && typeof i != \\"number\\" && hn(t, e, i) && (e = i = r),
+ (t = tt(t)),
+ e === r ? ((e = t), (t = 0)) : (e = tt(e)),
+ (i = i === r ? (t < e ? 1 : -1) : tt(i)),
+ Up(t, e, i, n)
+ );
+ };
+ }
+ function _r(n) {
+ return function (t, e) {
+ return (
+ (typeof t == \\"string\\" && typeof e == \\"string\\") ||
+ ((t = Pn(t)), (e = Pn(e))),
+ n(t, e)
+ );
+ };
+ }
+ function aa(n, t, e, i, u, a, s, c, p, d) {
+ var v = t & Nn,
+ y = v ? s : r,
+ A = v ? r : s,
+ T = v ? a : r,
+ I = v ? r : a;
+ (t |= v ? Gn : Pt),
+ (t &= ~(v ? Pt : Gn)),
+ t & Tu || (t &= ~(ln | vt));
+ var M = [n, t, u, T, y, I, A, c, p, d],
+ E = e.apply(r, M);
+ return zi(n) && wa(E, M), (E.placeholder = i), ya(E, n, t);
+ }
+ function qi(n) {
+ var t = tn[n];
+ return function (e, i) {
+ if (
+ ((e = Pn(e)), (i = i == null ? 0 : on(P(i), 292)), i && yf(e))
+ ) {
+ var u = (H(e) + \\"e\\").split(\\"e\\"),
+ a = t(u[0] + \\"e\\" + (+u[1] + i));
+ return (u = (H(a) + \\"e\\").split(\\"e\\")), +(u[0] + \\"e\\" + (+u[1] - i));
+ }
+ return t(e);
+ };
+ }
+ var ng =
+ Nt && 1 / $e(new Nt([, -0]))[1] == xt
+ ? function (n) {
+ return new Nt(n);
+ }
+ : iu;
+ function oa(n) {
+ return function (t) {
+ var e = sn(t);
+ return e == Mn ? hi(t) : e == Fn ? vh(t) : sh(t, n(t));
+ };
+ }
+ function Vn(n, t, e, i, u, a, s, c) {
+ var p = t & vt;
+ if (!p && typeof n != \\"function\\") throw new On(m);
+ var d = i ? i.length : 0;
+ if (
+ (d || ((t &= ~(Gn | Pt)), (i = u = r)),
+ (s = s === r ? s : en(P(s), 0)),
+ (c = c === r ? c : P(c)),
+ (d -= u ? u.length : 0),
+ t & Pt)
+ ) {
+ var v = i,
+ y = u;
+ i = u = r;
+ }
+ var A = p ? r : Bi(n),
+ T = [n, t, e, i, u, v, y, a, s, c];
+ if (
+ (A && _g(T, A),
+ (n = T[0]),
+ (t = T[1]),
+ (e = T[2]),
+ (i = T[3]),
+ (u = T[4]),
+ (c = T[9] = T[9] === r ? (p ? 0 : n.length) : en(T[9] - d, 0)),
+ !c && t & (Nn | Lt) && (t &= ~(Nn | Lt)),
+ !t || t == ln)
+ )
+ var I = Vp(n, t, e);
+ else
+ t == Nn || t == Lt
+ ? (I = jp(n, t, c))
+ : (t == Gn || t == (ln | Gn)) && !u.length
+ ? (I = kp(n, t, e, i))
+ : (I = hr.apply(r, T));
+ var M = A ? Hf : wa;
+ return ya(M(I, T), n, t);
+ }
+ function sa(n, t, e, i) {
+ return n === r || (Wn(n, Bt[e]) && !$.call(i, e)) ? t : n;
+ }
+ function la(n, t, e, i, u, a) {
+ return (
+ Q(n) && Q(t) && (a.set(t, n), or(n, t, r, la, a), a.delete(t)), n
+ );
+ }
+ function tg(n) {
+ return me(n) ? r : n;
+ }
+ function ca(n, t, e, i, u, a) {
+ var s = e & Bn,
+ c = n.length,
+ p = t.length;
+ if (c != p && !(s && p > c)) return !1;
+ var d = a.get(n),
+ v = a.get(t);
+ if (d && v) return d == t && v == n;
+ var y = -1,
+ A = !0,
+ T = e & ut ? new bt() : r;
+ for (a.set(n, t), a.set(t, n); ++y < c; ) {
+ var I = n[y],
+ M = t[y];
+ if (i) var E = s ? i(M, I, y, t, n, a) : i(I, M, y, n, t, a);
+ if (E !== r) {
+ if (E) continue;
+ A = !1;
+ break;
+ }
+ if (T) {
+ if (
+ !fi(t, function (W, B) {
+ if (!se(T, B) && (I === W || u(I, W, e, i, a)))
+ return T.push(B);
+ })
+ ) {
+ A = !1;
+ break;
+ }
+ } else if (!(I === M || u(I, M, e, i, a))) {
+ A = !1;
+ break;
+ }
+ }
+ return a.delete(n), a.delete(t), A;
+ }
+ function eg(n, t, e, i, u, a, s) {
+ switch (e) {
+ case Ft:
+ if (n.byteLength != t.byteLength || n.byteOffset != t.byteOffset)
+ return !1;
+ (n = n.buffer), (t = t.buffer);
+ case oe:
+ return !(
+ n.byteLength != t.byteLength || !a(new Qe(n), new Qe(t))
+ );
+ case ee:
+ case re:
+ case ie:
+ return Wn(+n, +t);
+ case qe:
+ return n.name == t.name && n.message == t.message;
+ case ue:
+ case fe:
+ return n == t + \\"\\";
+ case Mn:
+ var c = hi;
+ case Fn:
+ var p = i & Bn;
+ if ((c || (c = $e), n.size != t.size && !p)) return !1;
+ var d = s.get(n);
+ if (d) return d == t;
+ (i |= ut), s.set(n, t);
+ var v = ca(c(n), c(t), i, u, a, s);
+ return s.delete(n), v;
+ case Ue:
+ if (ge) return ge.call(n) == ge.call(t);
+ }
+ return !1;
+ }
+ function rg(n, t, e, i, u, a) {
+ var s = e & Bn,
+ c = Wi(n),
+ p = c.length,
+ d = Wi(t),
+ v = d.length;
+ if (p != v && !s) return !1;
+ for (var y = p; y--; ) {
+ var A = c[y];
+ if (!(s ? A in t : $.call(t, A))) return !1;
+ }
+ var T = a.get(n),
+ I = a.get(t);
+ if (T && I) return T == t && I == n;
+ var M = !0;
+ a.set(n, t), a.set(t, n);
+ for (var E = s; ++y < p; ) {
+ A = c[y];
+ var W = n[A],
+ B = t[A];
+ if (i) var bn = s ? i(B, W, A, t, n, a) : i(W, B, A, n, t, a);
+ if (!(bn === r ? W === B || u(W, B, e, i, a) : bn)) {
+ M = !1;
+ break;
+ }
+ E || (E = A == \\"constructor\\");
+ }
+ if (M && !E) {
+ var pn = n.constructor,
+ mn = t.constructor;
+ pn != mn &&
+ \\"constructor\\" in n &&
+ \\"constructor\\" in t &&
+ !(
+ typeof pn == \\"function\\" &&
+ pn instanceof pn &&
+ typeof mn == \\"function\\" &&
+ mn instanceof mn
+ ) &&
+ (M = !1);
+ }
+ return a.delete(n), a.delete(t), M;
+ }
+ function jn(n) {
+ return Ki(va(n, r, Ca), n + \\"\\");
+ }
+ function Wi(n) {
+ return Lf(n, un, Gi);
+ }
+ function Ui(n) {
+ return Lf(n, dn, ha);
+ }
+ var Bi = er
+ ? function (n) {
+ return er.get(n);
+ }
+ : iu;
+ function dr(n) {
+ for (
+ var t = n.name + \\"\\", e = Gt[t], i = $.call(Gt, t) ? e.length : 0;
+ i--;
+
+ ) {
+ var u = e[i],
+ a = u.func;
+ if (a == null || a == n) return u.name;
+ }
+ return t;
+ }
+ function Kt(n) {
+ var t = $.call(f, \\"placeholder\\") ? f : n;
+ return t.placeholder;
+ }
+ function O() {
+ var n = f.iteratee || eu;
+ return (
+ (n = n === eu ? Ff : n),
+ arguments.length ? n(arguments[0], arguments[1]) : n
+ );
+ }
+ function vr(n, t) {
+ var e = n.__data__;
+ return cg(t) ? e[typeof t == \\"string\\" ? \\"string\\" : \\"hash\\"] : e.map;
+ }
+ function Ni(n) {
+ for (var t = un(n), e = t.length; e--; ) {
+ var i = t[e],
+ u = n[i];
+ t[e] = [i, u, _a(u)];
+ }
+ return t;
+ }
+ function St(n, t) {
+ var e = gh(n, t);
+ return Mf(e) ? e : r;
+ }
+ function ig(n) {
+ var t = $.call(n, yt),
+ e = n[yt];
+ try {
+ n[yt] = r;
+ var i = !0;
+ } catch {}
+ var u = Xe.call(n);
+ return i && (t ? (n[yt] = e) : delete n[yt]), u;
+ }
+ var Gi = gi
+ ? function (n) {
+ return n == null
+ ? []
+ : ((n = K(n)),
+ at(gi(n), function (t) {
+ return xf.call(n, t);
+ }));
+ }
+ : uu,
+ ha = gi
+ ? function (n) {
+ for (var t = []; n; ) ot(t, Gi(n)), (n = Ve(n));
+ return t;
+ }
+ : uu,
+ sn = cn;
+ ((_i && sn(new _i(new ArrayBuffer(1))) != Ft) ||
+ (ce && sn(new ce()) != Mn) ||
+ (di && sn(di.resolve()) != Ou) ||
+ (Nt && sn(new Nt()) != Fn) ||
+ (he && sn(new he()) != ae)) &&
+ (sn = function (n) {
+ var t = cn(n),
+ e = t == Yn ? n.constructor : r,
+ i = e ? Ct(e) : \\"\\";
+ if (i)
+ switch (i) {
+ case Nh:
+ return Ft;
+ case Gh:
+ return Mn;
+ case Hh:
+ return Ou;
+ case zh:
+ return Fn;
+ case $h:
+ return ae;
+ }
+ return t;
+ });
+ function ug(n, t, e) {
+ for (var i = -1, u = e.length; ++i < u; ) {
+ var a = e[i],
+ s = a.size;
+ switch (a.type) {
+ case \\"drop\\":
+ n += s;
+ break;
+ case \\"dropRight\\":
+ t -= s;
+ break;
+ case \\"take\\":
+ t = on(t, n + s);
+ break;
+ case \\"takeRight\\":
+ n = en(n, t - s);
+ break;
+ }
+ }
+ return { start: n, end: t };
+ }
+ function fg(n) {
+ var t = n.match(hc);
+ return t ? t[1].split(pc) : [];
+ }
+ function pa(n, t, e) {
+ t = gt(t, n);
+ for (var i = -1, u = t.length, a = !1; ++i < u; ) {
+ var s = Kn(t[i]);
+ if (!(a = n != null && e(n, s))) break;
+ n = n[s];
+ }
+ return a || ++i != u
+ ? a
+ : ((u = n == null ? 0 : n.length),
+ !!u && Tr(u) && kn(s, u) && (L(n) || Ot(n)));
+ }
+ function ag(n) {
+ var t = n.length,
+ e = new n.constructor(t);
+ return (
+ t &&
+ typeof n[0] == \\"string\\" &&
+ $.call(n, \\"index\\") &&
+ ((e.index = n.index), (e.input = n.input)),
+ e
+ );
+ }
+ function ga(n) {
+ return typeof n.constructor == \\"function\\" && !Ae(n) ? Ht(Ve(n)) : {};
+ }
+ function og(n, t, e) {
+ var i = n.constructor;
+ switch (t) {
+ case oe:
+ return Fi(n);
+ case ee:
+ case re:
+ return new i(+n);
+ case Ft:
+ return Kp(n, e);
+ case Nr:
+ case Gr:
+ case Hr:
+ case zr:
+ case $r:
+ case Kr:
+ case Zr:
+ case Yr:
+ case Xr:
+ return Qf(n, e);
+ case Mn:
+ return new i();
+ case ie:
+ case fe:
+ return new i(n);
+ case ue:
+ return Zp(n);
+ case Fn:
+ return new i();
+ case Ue:
+ return Yp(n);
+ }
+ }
+ function sg(n, t) {
+ var e = t.length;
+ if (!e) return n;
+ var i = e - 1;
+ return (
+ (t[i] = (e > 1 ? \\"& \\" : \\"\\") + t[i]),
+ (t = t.join(e > 2 ? \\", \\" : \\" \\")),
+ n.replace(
+ cc,
+ \`{
+/* [wrapped with \` +
+ t +
+ \`] */
+\`
+ )
+ );
+ }
+ function lg(n) {
+ return L(n) || Ot(n) || !!(wf && n && n[wf]);
+ }
+ function kn(n, t) {
+ var e = typeof n;
+ return (
+ (t = t ?? ft),
+ !!t &&
+ (e == \\"number\\" || (e != \\"symbol\\" && bc.test(n))) &&
+ n > -1 &&
+ n % 1 == 0 &&
+ n < t
+ );
+ }
+ function hn(n, t, e) {
+ if (!Q(e)) return !1;
+ var i = typeof t;
+ return (
+ i == \\"number\\" ? _n(e) && kn(t, e.length) : i == \\"string\\" && t in e
+ )
+ ? Wn(e[t], n)
+ : !1;
+ }
+ function Hi(n, t) {
+ if (L(n)) return !1;
+ var e = typeof n;
+ return e == \\"number\\" ||
+ e == \\"symbol\\" ||
+ e == \\"boolean\\" ||
+ n == null ||
+ An(n)
+ ? !0
+ : ac.test(n) || !fc.test(n) || (t != null && n in K(t));
+ }
+ function cg(n) {
+ var t = typeof n;
+ return t == \\"string\\" ||
+ t == \\"number\\" ||
+ t == \\"symbol\\" ||
+ t == \\"boolean\\"
+ ? n !== \\"__proto__\\"
+ : n === null;
+ }
+ function zi(n) {
+ var t = dr(n),
+ e = f[t];
+ if (typeof e != \\"function\\" || !(t in U.prototype)) return !1;
+ if (n === e) return !0;
+ var i = Bi(e);
+ return !!i && n === i[0];
+ }
+ function hg(n) {
+ return !!_f && _f in n;
+ }
+ var pg = Ze ? nt : fu;
+ function Ae(n) {
+ var t = n && n.constructor,
+ e = (typeof t == \\"function\\" && t.prototype) || Bt;
+ return n === e;
+ }
+ function _a(n) {
+ return n === n && !Q(n);
+ }
+ function da(n, t) {
+ return function (e) {
+ return e == null ? !1 : e[n] === t && (t !== r || n in K(e));
+ };
+ }
+ function gg(n) {
+ var t = br(n, function (i) {
+ return e.size === q && e.clear(), i;
+ }),
+ e = t.cache;
+ return t;
+ }
+ function _g(n, t) {
+ var e = n[1],
+ i = t[1],
+ u = e | i,
+ a = u < (ln | vt | Zn),
+ s =
+ (i == Zn && e == Nn) ||
+ (i == Zn && e == te && n[7].length <= t[8]) ||
+ (i == (Zn | te) && t[7].length <= t[8] && e == Nn);
+ if (!(a || s)) return n;
+ i & ln && ((n[2] = t[2]), (u |= e & ln ? 0 : Tu));
+ var c = t[3];
+ if (c) {
+ var p = n[3];
+ (n[3] = p ? jf(p, c, t[4]) : c), (n[4] = p ? st(n[3], z) : t[4]);
+ }
+ return (
+ (c = t[5]),
+ c &&
+ ((p = n[5]),
+ (n[5] = p ? kf(p, c, t[6]) : c),
+ (n[6] = p ? st(n[5], z) : t[6])),
+ (c = t[7]),
+ c && (n[7] = c),
+ i & Zn && (n[8] = n[8] == null ? t[8] : on(n[8], t[8])),
+ n[9] == null && (n[9] = t[9]),
+ (n[0] = t[0]),
+ (n[1] = u),
+ n
+ );
+ }
+ function dg(n) {
+ var t = [];
+ if (n != null) for (var e in K(n)) t.push(e);
+ return t;
+ }
+ function vg(n) {
+ return Xe.call(n);
+ }
+ function va(n, t, e) {
+ return (
+ (t = en(t === r ? n.length - 1 : t, 0)),
+ function () {
+ for (
+ var i = arguments, u = -1, a = en(i.length - t, 0), s = g(a);
+ ++u < a;
+
+ )
+ s[u] = i[t + u];
+ u = -1;
+ for (var c = g(t + 1); ++u < t; ) c[u] = i[u];
+ return (c[t] = e(s)), xn(n, this, c);
+ }
+ );
+ }
+ function xa(n, t) {
+ return t.length < 2 ? n : Tt(n, Rn(t, 0, -1));
+ }
+ function xg(n, t) {
+ for (var e = n.length, i = on(t.length, e), u = gn(n); i--; ) {
+ var a = t[i];
+ n[i] = kn(a, e) ? u[a] : r;
+ }
+ return n;
+ }
+ function $i(n, t) {
+ if (
+ !(t === \\"constructor\\" && typeof n[t] == \\"function\\") &&
+ t != \\"__proto__\\"
+ )
+ return n[t];
+ }
+ var wa = Aa(Hf),
+ be =
+ Mh ||
+ function (n, t) {
+ return rn.setTimeout(n, t);
+ },
+ Ki = Aa(Gp);
+ function ya(n, t, e) {
+ var i = t + \\"\\";
+ return Ki(n, sg(i, wg(fg(i), e)));
+ }
+ function Aa(n) {
+ var t = 0,
+ e = 0;
+ return function () {
+ var i = Wh(),
+ u = Nl - (i - e);
+ if (((e = i), u > 0)) {
+ if (++t >= Bl) return arguments[0];
+ } else t = 0;
+ return n.apply(r, arguments);
+ };
+ }
+ function xr(n, t) {
+ var e = -1,
+ i = n.length,
+ u = i - 1;
+ for (t = t === r ? i : t; ++e < t; ) {
+ var a = Oi(e, u),
+ s = n[a];
+ (n[a] = n[e]), (n[e] = s);
+ }
+ return (n.length = t), n;
+ }
+ var ba = gg(function (n) {
+ var t = [];
+ return (
+ n.charCodeAt(0) === 46 && t.push(\\"\\"),
+ n.replace(oc, function (e, i, u, a) {
+ t.push(u ? a.replace(dc, \\"$1\\") : i || e);
+ }),
+ t
+ );
+ });
+ function Kn(n) {
+ if (typeof n == \\"string\\" || An(n)) return n;
+ var t = n + \\"\\";
+ return t == \\"0\\" && 1 / n == -xt ? \\"-0\\" : t;
+ }
+ function Ct(n) {
+ if (n != null) {
+ try {
+ return Ye.call(n);
+ } catch {}
+ try {
+ return n + \\"\\";
+ } catch {}
+ }
+ return \\"\\";
+ }
+ function wg(n, t) {
+ return (
+ Cn(Zl, function (e) {
+ var i = \\"_.\\" + e[0];
+ t & e[1] && !He(n, i) && n.push(i);
+ }),
+ n.sort()
+ );
+ }
+ function ma(n) {
+ if (n instanceof U) return n.clone();
+ var t = new In(n.__wrapped__, n.__chain__);
+ return (
+ (t.__actions__ = gn(n.__actions__)),
+ (t.__index__ = n.__index__),
+ (t.__values__ = n.__values__),
+ t
+ );
+ }
+ function yg(n, t, e) {
+ (e ? hn(n, t, e) : t === r) ? (t = 1) : (t = en(P(t), 0));
+ var i = n == null ? 0 : n.length;
+ if (!i || t < 1) return [];
+ for (var u = 0, a = 0, s = g(nr(i / t)); u < i; )
+ s[a++] = Rn(n, u, (u += t));
+ return s;
+ }
+ function Ag(n) {
+ for (
+ var t = -1, e = n == null ? 0 : n.length, i = 0, u = [];
+ ++t < e;
+
+ ) {
+ var a = n[t];
+ a && (u[i++] = a);
+ }
+ return u;
+ }
+ function bg() {
+ var n = arguments.length;
+ if (!n) return [];
+ for (var t = g(n - 1), e = arguments[0], i = n; i--; )
+ t[i - 1] = arguments[i];
+ return ot(L(e) ? gn(e) : [e], fn(t, 1));
+ }
+ var mg = F(function (n, t) {
+ return k(n) ? de(n, fn(t, 1, k, !0)) : [];
+ }),
+ Tg = F(function (n, t) {
+ var e = Ln(t);
+ return k(e) && (e = r), k(n) ? de(n, fn(t, 1, k, !0), O(e, 2)) : [];
+ }),
+ Sg = F(function (n, t) {
+ var e = Ln(t);
+ return k(e) && (e = r), k(n) ? de(n, fn(t, 1, k, !0), r, e) : [];
+ });
+ function Cg(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ return i
+ ? ((t = e || t === r ? 1 : P(t)), Rn(n, t < 0 ? 0 : t, i))
+ : [];
+ }
+ function Og(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ return i
+ ? ((t = e || t === r ? 1 : P(t)),
+ (t = i - t),
+ Rn(n, 0, t < 0 ? 0 : t))
+ : [];
+ }
+ function Ig(n, t) {
+ return n && n.length ? lr(n, O(t, 3), !0, !0) : [];
+ }
+ function Eg(n, t) {
+ return n && n.length ? lr(n, O(t, 3), !0) : [];
+ }
+ function Rg(n, t, e, i) {
+ var u = n == null ? 0 : n.length;
+ return u
+ ? (e && typeof e != \\"number\\" && hn(n, t, e) && ((e = 0), (i = u)),
+ bp(n, t, e, i))
+ : [];
+ }
+ function Ta(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ if (!i) return -1;
+ var u = e == null ? 0 : P(e);
+ return u < 0 && (u = en(i + u, 0)), ze(n, O(t, 3), u);
+ }
+ function Sa(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ if (!i) return -1;
+ var u = i - 1;
+ return (
+ e !== r && ((u = P(e)), (u = e < 0 ? en(i + u, 0) : on(u, i - 1))),
+ ze(n, O(t, 3), u, !0)
+ );
+ }
+ function Ca(n) {
+ var t = n == null ? 0 : n.length;
+ return t ? fn(n, 1) : [];
+ }
+ function Lg(n) {
+ var t = n == null ? 0 : n.length;
+ return t ? fn(n, xt) : [];
+ }
+ function Pg(n, t) {
+ var e = n == null ? 0 : n.length;
+ return e ? ((t = t === r ? 1 : P(t)), fn(n, t)) : [];
+ }
+ function Mg(n) {
+ for (var t = -1, e = n == null ? 0 : n.length, i = {}; ++t < e; ) {
+ var u = n[t];
+ i[u[0]] = u[1];
+ }
+ return i;
+ }
+ function Oa(n) {
+ return n && n.length ? n[0] : r;
+ }
+ function Fg(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ if (!i) return -1;
+ var u = e == null ? 0 : P(e);
+ return u < 0 && (u = en(i + u, 0)), qt(n, t, u);
+ }
+ function Dg(n) {
+ var t = n == null ? 0 : n.length;
+ return t ? Rn(n, 0, -1) : [];
+ }
+ var qg = F(function (n) {
+ var t = J(n, Pi);
+ return t.length && t[0] === n[0] ? bi(t) : [];
+ }),
+ Wg = F(function (n) {
+ var t = Ln(n),
+ e = J(n, Pi);
+ return (
+ t === Ln(e) ? (t = r) : e.pop(),
+ e.length && e[0] === n[0] ? bi(e, O(t, 2)) : []
+ );
+ }),
+ Ug = F(function (n) {
+ var t = Ln(n),
+ e = J(n, Pi);
+ return (
+ (t = typeof t == \\"function\\" ? t : r),
+ t && e.pop(),
+ e.length && e[0] === n[0] ? bi(e, r, t) : []
+ );
+ });
+ function Bg(n, t) {
+ return n == null ? \\"\\" : Dh.call(n, t);
+ }
+ function Ln(n) {
+ var t = n == null ? 0 : n.length;
+ return t ? n[t - 1] : r;
+ }
+ function Ng(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ if (!i) return -1;
+ var u = i;
+ return (
+ e !== r && ((u = P(e)), (u = u < 0 ? en(i + u, 0) : on(u, i - 1))),
+ t === t ? wh(n, t, u) : ze(n, af, u, !0)
+ );
+ }
+ function Gg(n, t) {
+ return n && n.length ? Uf(n, P(t)) : r;
+ }
+ var Hg = F(Ia);
+ function Ia(n, t) {
+ return n && n.length && t && t.length ? Ci(n, t) : n;
+ }
+ function zg(n, t, e) {
+ return n && n.length && t && t.length ? Ci(n, t, O(e, 2)) : n;
+ }
+ function $g(n, t, e) {
+ return n && n.length && t && t.length ? Ci(n, t, r, e) : n;
+ }
+ var Kg = jn(function (n, t) {
+ var e = n == null ? 0 : n.length,
+ i = xi(n, t);
+ return (
+ Gf(
+ n,
+ J(t, function (u) {
+ return kn(u, e) ? +u : u;
+ }).sort(Vf)
+ ),
+ i
+ );
+ });
+ function Zg(n, t) {
+ var e = [];
+ if (!(n && n.length)) return e;
+ var i = -1,
+ u = [],
+ a = n.length;
+ for (t = O(t, 3); ++i < a; ) {
+ var s = n[i];
+ t(s, i, n) && (e.push(s), u.push(i));
+ }
+ return Gf(n, u), e;
+ }
+ function Zi(n) {
+ return n == null ? n : Bh.call(n);
+ }
+ function Yg(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ return i
+ ? (e && typeof e != \\"number\\" && hn(n, t, e)
+ ? ((t = 0), (e = i))
+ : ((t = t == null ? 0 : P(t)), (e = e === r ? i : P(e))),
+ Rn(n, t, e))
+ : [];
+ }
+ function Xg(n, t) {
+ return sr(n, t);
+ }
+ function Jg(n, t, e) {
+ return Ei(n, t, O(e, 2));
+ }
+ function Qg(n, t) {
+ var e = n == null ? 0 : n.length;
+ if (e) {
+ var i = sr(n, t);
+ if (i < e && Wn(n[i], t)) return i;
+ }
+ return -1;
+ }
+ function Vg(n, t) {
+ return sr(n, t, !0);
+ }
+ function jg(n, t, e) {
+ return Ei(n, t, O(e, 2), !0);
+ }
+ function kg(n, t) {
+ var e = n == null ? 0 : n.length;
+ if (e) {
+ var i = sr(n, t, !0) - 1;
+ if (Wn(n[i], t)) return i;
+ }
+ return -1;
+ }
+ function n_(n) {
+ return n && n.length ? zf(n) : [];
+ }
+ function t_(n, t) {
+ return n && n.length ? zf(n, O(t, 2)) : [];
+ }
+ function e_(n) {
+ var t = n == null ? 0 : n.length;
+ return t ? Rn(n, 1, t) : [];
+ }
+ function r_(n, t, e) {
+ return n && n.length
+ ? ((t = e || t === r ? 1 : P(t)), Rn(n, 0, t < 0 ? 0 : t))
+ : [];
+ }
+ function i_(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ return i
+ ? ((t = e || t === r ? 1 : P(t)),
+ (t = i - t),
+ Rn(n, t < 0 ? 0 : t, i))
+ : [];
+ }
+ function u_(n, t) {
+ return n && n.length ? lr(n, O(t, 3), !1, !0) : [];
+ }
+ function f_(n, t) {
+ return n && n.length ? lr(n, O(t, 3)) : [];
+ }
+ var a_ = F(function (n) {
+ return pt(fn(n, 1, k, !0));
+ }),
+ o_ = F(function (n) {
+ var t = Ln(n);
+ return k(t) && (t = r), pt(fn(n, 1, k, !0), O(t, 2));
+ }),
+ s_ = F(function (n) {
+ var t = Ln(n);
+ return (
+ (t = typeof t == \\"function\\" ? t : r), pt(fn(n, 1, k, !0), r, t)
+ );
+ });
+ function l_(n) {
+ return n && n.length ? pt(n) : [];
+ }
+ function c_(n, t) {
+ return n && n.length ? pt(n, O(t, 2)) : [];
+ }
+ function h_(n, t) {
+ return (
+ (t = typeof t == \\"function\\" ? t : r),
+ n && n.length ? pt(n, r, t) : []
+ );
+ }
+ function Yi(n) {
+ if (!(n && n.length)) return [];
+ var t = 0;
+ return (
+ (n = at(n, function (e) {
+ if (k(e)) return (t = en(e.length, t)), !0;
+ })),
+ li(t, function (e) {
+ return J(n, ai(e));
+ })
+ );
+ }
+ function Ea(n, t) {
+ if (!(n && n.length)) return [];
+ var e = Yi(n);
+ return t == null
+ ? e
+ : J(e, function (i) {
+ return xn(t, r, i);
+ });
+ }
+ var p_ = F(function (n, t) {
+ return k(n) ? de(n, t) : [];
+ }),
+ g_ = F(function (n) {
+ return Li(at(n, k));
+ }),
+ __ = F(function (n) {
+ var t = Ln(n);
+ return k(t) && (t = r), Li(at(n, k), O(t, 2));
+ }),
+ d_ = F(function (n) {
+ var t = Ln(n);
+ return (t = typeof t == \\"function\\" ? t : r), Li(at(n, k), r, t);
+ }),
+ v_ = F(Yi);
+ function x_(n, t) {
+ return Yf(n || [], t || [], _e);
+ }
+ function w_(n, t) {
+ return Yf(n || [], t || [], we);
+ }
+ var y_ = F(function (n) {
+ var t = n.length,
+ e = t > 1 ? n[t - 1] : r;
+ return (e = typeof e == \\"function\\" ? (n.pop(), e) : r), Ea(n, e);
+ });
+ function Ra(n) {
+ var t = f(n);
+ return (t.__chain__ = !0), t;
+ }
+ function A_(n, t) {
+ return t(n), n;
+ }
+ function wr(n, t) {
+ return t(n);
+ }
+ var b_ = jn(function (n) {
+ var t = n.length,
+ e = t ? n[0] : 0,
+ i = this.__wrapped__,
+ u = function (a) {
+ return xi(a, n);
+ };
+ return t > 1 || this.__actions__.length || !(i instanceof U) || !kn(e)
+ ? this.thru(u)
+ : ((i = i.slice(e, +e + (t ? 1 : 0))),
+ i.__actions__.push({ func: wr, args: [u], thisArg: r }),
+ new In(i, this.__chain__).thru(function (a) {
+ return t && !a.length && a.push(r), a;
+ }));
+ });
+ function m_() {
+ return Ra(this);
+ }
+ function T_() {
+ return new In(this.value(), this.__chain__);
+ }
+ function S_() {
+ this.__values__ === r && (this.__values__ = $a(this.value()));
+ var n = this.__index__ >= this.__values__.length,
+ t = n ? r : this.__values__[this.__index__++];
+ return { done: n, value: t };
+ }
+ function C_() {
+ return this;
+ }
+ function O_(n) {
+ for (var t, e = this; e instanceof ir; ) {
+ var i = ma(e);
+ (i.__index__ = 0),
+ (i.__values__ = r),
+ t ? (u.__wrapped__ = i) : (t = i);
+ var u = i;
+ e = e.__wrapped__;
+ }
+ return (u.__wrapped__ = n), t;
+ }
+ function I_() {
+ var n = this.__wrapped__;
+ if (n instanceof U) {
+ var t = n;
+ return (
+ this.__actions__.length && (t = new U(this)),
+ (t = t.reverse()),
+ t.__actions__.push({ func: wr, args: [Zi], thisArg: r }),
+ new In(t, this.__chain__)
+ );
+ }
+ return this.thru(Zi);
+ }
+ function E_() {
+ return Zf(this.__wrapped__, this.__actions__);
+ }
+ var R_ = cr(function (n, t, e) {
+ $.call(n, e) ? ++n[e] : Qn(n, e, 1);
+ });
+ function L_(n, t, e) {
+ var i = L(n) ? uf : Ap;
+ return e && hn(n, t, e) && (t = r), i(n, O(t, 3));
+ }
+ function P_(n, t) {
+ var e = L(n) ? at : Ef;
+ return e(n, O(t, 3));
+ }
+ var M_ = ra(Ta),
+ F_ = ra(Sa);
+ function D_(n, t) {
+ return fn(yr(n, t), 1);
+ }
+ function q_(n, t) {
+ return fn(yr(n, t), xt);
+ }
+ function W_(n, t, e) {
+ return (e = e === r ? 1 : P(e)), fn(yr(n, t), e);
+ }
+ function La(n, t) {
+ var e = L(n) ? Cn : ht;
+ return e(n, O(t, 3));
+ }
+ function Pa(n, t) {
+ var e = L(n) ? eh : If;
+ return e(n, O(t, 3));
+ }
+ var U_ = cr(function (n, t, e) {
+ $.call(n, e) ? n[e].push(t) : Qn(n, e, [t]);
+ });
+ function B_(n, t, e, i) {
+ (n = _n(n) ? n : Yt(n)), (e = e && !i ? P(e) : 0);
+ var u = n.length;
+ return (
+ e < 0 && (e = en(u + e, 0)),
+ Sr(n) ? e <= u && n.indexOf(t, e) > -1 : !!u && qt(n, t, e) > -1
+ );
+ }
+ var N_ = F(function (n, t, e) {
+ var i = -1,
+ u = typeof t == \\"function\\",
+ a = _n(n) ? g(n.length) : [];
+ return (
+ ht(n, function (s) {
+ a[++i] = u ? xn(t, s, e) : ve(s, t, e);
+ }),
+ a
+ );
+ }),
+ G_ = cr(function (n, t, e) {
+ Qn(n, e, t);
+ });
+ function yr(n, t) {
+ var e = L(n) ? J : Df;
+ return e(n, O(t, 3));
+ }
+ function H_(n, t, e, i) {
+ return n == null
+ ? []
+ : (L(t) || (t = t == null ? [] : [t]),
+ (e = i ? r : e),
+ L(e) || (e = e == null ? [] : [e]),
+ Bf(n, t, e));
+ }
+ var z_ = cr(
+ function (n, t, e) {
+ n[e ? 0 : 1].push(t);
+ },
+ function () {
+ return [[], []];
+ }
+ );
+ function $_(n, t, e) {
+ var i = L(n) ? ui : sf,
+ u = arguments.length < 3;
+ return i(n, O(t, 4), e, u, ht);
+ }
+ function K_(n, t, e) {
+ var i = L(n) ? rh : sf,
+ u = arguments.length < 3;
+ return i(n, O(t, 4), e, u, If);
+ }
+ function Z_(n, t) {
+ var e = L(n) ? at : Ef;
+ return e(n, mr(O(t, 3)));
+ }
+ function Y_(n) {
+ var t = L(n) ? Tf : Bp;
+ return t(n);
+ }
+ function X_(n, t, e) {
+ (e ? hn(n, t, e) : t === r) ? (t = 1) : (t = P(t));
+ var i = L(n) ? dp : Np;
+ return i(n, t);
+ }
+ function J_(n) {
+ var t = L(n) ? vp : Hp;
+ return t(n);
+ }
+ function Q_(n) {
+ if (n == null) return 0;
+ if (_n(n)) return Sr(n) ? Ut(n) : n.length;
+ var t = sn(n);
+ return t == Mn || t == Fn ? n.size : Ti(n).length;
+ }
+ function V_(n, t, e) {
+ var i = L(n) ? fi : zp;
+ return e && hn(n, t, e) && (t = r), i(n, O(t, 3));
+ }
+ var j_ = F(function (n, t) {
+ if (n == null) return [];
+ var e = t.length;
+ return (
+ e > 1 && hn(n, t[0], t[1])
+ ? (t = [])
+ : e > 2 && hn(t[0], t[1], t[2]) && (t = [t[0]]),
+ Bf(n, fn(t, 1), [])
+ );
+ }),
+ Ar =
+ Ph ||
+ function () {
+ return rn.Date.now();
+ };
+ function k_(n, t) {
+ if (typeof t != \\"function\\") throw new On(m);
+ return (
+ (n = P(n)),
+ function () {
+ if (--n < 1) return t.apply(this, arguments);
+ }
+ );
+ }
+ function Ma(n, t, e) {
+ return (
+ (t = e ? r : t),
+ (t = n && t == null ? n.length : t),
+ Vn(n, Zn, r, r, r, r, t)
+ );
+ }
+ function Fa(n, t) {
+ var e;
+ if (typeof t != \\"function\\") throw new On(m);
+ return (
+ (n = P(n)),
+ function () {
+ return (
+ --n > 0 && (e = t.apply(this, arguments)), n <= 1 && (t = r), e
+ );
+ }
+ );
+ }
+ var Xi = F(function (n, t, e) {
+ var i = ln;
+ if (e.length) {
+ var u = st(e, Kt(Xi));
+ i |= Gn;
+ }
+ return Vn(n, i, t, e, u);
+ }),
+ Da = F(function (n, t, e) {
+ var i = ln | vt;
+ if (e.length) {
+ var u = st(e, Kt(Da));
+ i |= Gn;
+ }
+ return Vn(t, i, n, e, u);
+ });
+ function qa(n, t, e) {
+ t = e ? r : t;
+ var i = Vn(n, Nn, r, r, r, r, r, t);
+ return (i.placeholder = qa.placeholder), i;
+ }
+ function Wa(n, t, e) {
+ t = e ? r : t;
+ var i = Vn(n, Lt, r, r, r, r, r, t);
+ return (i.placeholder = Wa.placeholder), i;
+ }
+ function Ua(n, t, e) {
+ var i,
+ u,
+ a,
+ s,
+ c,
+ p,
+ d = 0,
+ v = !1,
+ y = !1,
+ A = !0;
+ if (typeof n != \\"function\\") throw new On(m);
+ (t = Pn(t) || 0),
+ Q(e) &&
+ ((v = !!e.leading),
+ (y = \\"maxWait\\" in e),
+ (a = y ? en(Pn(e.maxWait) || 0, t) : a),
+ (A = \\"trailing\\" in e ? !!e.trailing : A));
+ function T(nn) {
+ var Un = i,
+ et = u;
+ return (i = u = r), (d = nn), (s = n.apply(et, Un)), s;
+ }
+ function I(nn) {
+ return (d = nn), (c = be(W, t)), v ? T(nn) : s;
+ }
+ function M(nn) {
+ var Un = nn - p,
+ et = nn - d,
+ ro = t - Un;
+ return y ? on(ro, a - et) : ro;
+ }
+ function E(nn) {
+ var Un = nn - p,
+ et = nn - d;
+ return p === r || Un >= t || Un < 0 || (y && et >= a);
+ }
+ function W() {
+ var nn = Ar();
+ if (E(nn)) return B(nn);
+ c = be(W, M(nn));
+ }
+ function B(nn) {
+ return (c = r), A && i ? T(nn) : ((i = u = r), s);
+ }
+ function bn() {
+ c !== r && Xf(c), (d = 0), (i = p = u = c = r);
+ }
+ function pn() {
+ return c === r ? s : B(Ar());
+ }
+ function mn() {
+ var nn = Ar(),
+ Un = E(nn);
+ if (((i = arguments), (u = this), (p = nn), Un)) {
+ if (c === r) return I(p);
+ if (y) return Xf(c), (c = be(W, t)), T(p);
+ }
+ return c === r && (c = be(W, t)), s;
+ }
+ return (mn.cancel = bn), (mn.flush = pn), mn;
+ }
+ var nd = F(function (n, t) {
+ return Of(n, 1, t);
+ }),
+ td = F(function (n, t, e) {
+ return Of(n, Pn(t) || 0, e);
+ });
+ function ed(n) {
+ return Vn(n, Br);
+ }
+ function br(n, t) {
+ if (typeof n != \\"function\\" || (t != null && typeof t != \\"function\\"))
+ throw new On(m);
+ var e = function () {
+ var i = arguments,
+ u = t ? t.apply(this, i) : i[0],
+ a = e.cache;
+ if (a.has(u)) return a.get(u);
+ var s = n.apply(this, i);
+ return (e.cache = a.set(u, s) || a), s;
+ };
+ return (e.cache = new (br.Cache || Jn)()), e;
+ }
+ br.Cache = Jn;
+ function mr(n) {
+ if (typeof n != \\"function\\") throw new On(m);
+ return function () {
+ var t = arguments;
+ switch (t.length) {
+ case 0:
+ return !n.call(this);
+ case 1:
+ return !n.call(this, t[0]);
+ case 2:
+ return !n.call(this, t[0], t[1]);
+ case 3:
+ return !n.call(this, t[0], t[1], t[2]);
+ }
+ return !n.apply(this, t);
+ };
+ }
+ function rd(n) {
+ return Fa(2, n);
+ }
+ var id = $p(function (n, t) {
+ t =
+ t.length == 1 && L(t[0])
+ ? J(t[0], wn(O()))
+ : J(fn(t, 1), wn(O()));
+ var e = t.length;
+ return F(function (i) {
+ for (var u = -1, a = on(i.length, e); ++u < a; )
+ i[u] = t[u].call(this, i[u]);
+ return xn(n, this, i);
+ });
+ }),
+ Ji = F(function (n, t) {
+ var e = st(t, Kt(Ji));
+ return Vn(n, Gn, r, t, e);
+ }),
+ Ba = F(function (n, t) {
+ var e = st(t, Kt(Ba));
+ return Vn(n, Pt, r, t, e);
+ }),
+ ud = jn(function (n, t) {
+ return Vn(n, te, r, r, r, t);
+ });
+ function fd(n, t) {
+ if (typeof n != \\"function\\") throw new On(m);
+ return (t = t === r ? t : P(t)), F(n, t);
+ }
+ function ad(n, t) {
+ if (typeof n != \\"function\\") throw new On(m);
+ return (
+ (t = t == null ? 0 : en(P(t), 0)),
+ F(function (e) {
+ var i = e[t],
+ u = _t(e, 0, t);
+ return i && ot(u, i), xn(n, this, u);
+ })
+ );
+ }
+ function od(n, t, e) {
+ var i = !0,
+ u = !0;
+ if (typeof n != \\"function\\") throw new On(m);
+ return (
+ Q(e) &&
+ ((i = \\"leading\\" in e ? !!e.leading : i),
+ (u = \\"trailing\\" in e ? !!e.trailing : u)),
+ Ua(n, t, { leading: i, maxWait: t, trailing: u })
+ );
+ }
+ function sd(n) {
+ return Ma(n, 1);
+ }
+ function ld(n, t) {
+ return Ji(Mi(t), n);
+ }
+ function cd() {
+ if (!arguments.length) return [];
+ var n = arguments[0];
+ return L(n) ? n : [n];
+ }
+ function hd(n) {
+ return En(n, Tn);
+ }
+ function pd(n, t) {
+ return (t = typeof t == \\"function\\" ? t : r), En(n, Tn, t);
+ }
+ function gd(n) {
+ return En(n, j | Tn);
+ }
+ function _d(n, t) {
+ return (t = typeof t == \\"function\\" ? t : r), En(n, j | Tn, t);
+ }
+ function dd(n, t) {
+ return t == null || Cf(n, t, un(t));
+ }
+ function Wn(n, t) {
+ return n === t || (n !== n && t !== t);
+ }
+ var vd = _r(Ai),
+ xd = _r(function (n, t) {
+ return n >= t;
+ }),
+ Ot = Pf(
+ (function () {
+ return arguments;
+ })()
+ )
+ ? Pf
+ : function (n) {
+ return V(n) && $.call(n, \\"callee\\") && !xf.call(n, \\"callee\\");
+ },
+ L = g.isArray,
+ wd = ju ? wn(ju) : Op;
+ function _n(n) {
+ return n != null && Tr(n.length) && !nt(n);
+ }
+ function k(n) {
+ return V(n) && _n(n);
+ }
+ function yd(n) {
+ return n === !0 || n === !1 || (V(n) && cn(n) == ee);
+ }
+ var dt = Fh || fu,
+ Ad = ku ? wn(ku) : Ip;
+ function bd(n) {
+ return V(n) && n.nodeType === 1 && !me(n);
+ }
+ function md(n) {
+ if (n == null) return !0;
+ if (
+ _n(n) &&
+ (L(n) ||
+ typeof n == \\"string\\" ||
+ typeof n.splice == \\"function\\" ||
+ dt(n) ||
+ Zt(n) ||
+ Ot(n))
+ )
+ return !n.length;
+ var t = sn(n);
+ if (t == Mn || t == Fn) return !n.size;
+ if (Ae(n)) return !Ti(n).length;
+ for (var e in n) if ($.call(n, e)) return !1;
+ return !0;
+ }
+ function Td(n, t) {
+ return xe(n, t);
+ }
+ function Sd(n, t, e) {
+ e = typeof e == \\"function\\" ? e : r;
+ var i = e ? e(n, t) : r;
+ return i === r ? xe(n, t, r, e) : !!i;
+ }
+ function Qi(n) {
+ if (!V(n)) return !1;
+ var t = cn(n);
+ return (
+ t == qe ||
+ t == Xl ||
+ (typeof n.message == \\"string\\" &&
+ typeof n.name == \\"string\\" &&
+ !me(n))
+ );
+ }
+ function Cd(n) {
+ return typeof n == \\"number\\" && yf(n);
+ }
+ function nt(n) {
+ if (!Q(n)) return !1;
+ var t = cn(n);
+ return t == We || t == Cu || t == Yl || t == Ql;
+ }
+ function Na(n) {
+ return typeof n == \\"number\\" && n == P(n);
+ }
+ function Tr(n) {
+ return typeof n == \\"number\\" && n > -1 && n % 1 == 0 && n <= ft;
+ }
+ function Q(n) {
+ var t = typeof n;
+ return n != null && (t == \\"object\\" || t == \\"function\\");
+ }
+ function V(n) {
+ return n != null && typeof n == \\"object\\";
+ }
+ var Ga = nf ? wn(nf) : Rp;
+ function Od(n, t) {
+ return n === t || mi(n, t, Ni(t));
+ }
+ function Id(n, t, e) {
+ return (e = typeof e == \\"function\\" ? e : r), mi(n, t, Ni(t), e);
+ }
+ function Ed(n) {
+ return Ha(n) && n != +n;
+ }
+ function Rd(n) {
+ if (pg(n)) throw new R(w);
+ return Mf(n);
+ }
+ function Ld(n) {
+ return n === null;
+ }
+ function Pd(n) {
+ return n == null;
+ }
+ function Ha(n) {
+ return typeof n == \\"number\\" || (V(n) && cn(n) == ie);
+ }
+ function me(n) {
+ if (!V(n) || cn(n) != Yn) return !1;
+ var t = Ve(n);
+ if (t === null) return !0;
+ var e = $.call(t, \\"constructor\\") && t.constructor;
+ return typeof e == \\"function\\" && e instanceof e && Ye.call(e) == Ih;
+ }
+ var Vi = tf ? wn(tf) : Lp;
+ function Md(n) {
+ return Na(n) && n >= -ft && n <= ft;
+ }
+ var za = ef ? wn(ef) : Pp;
+ function Sr(n) {
+ return typeof n == \\"string\\" || (!L(n) && V(n) && cn(n) == fe);
+ }
+ function An(n) {
+ return typeof n == \\"symbol\\" || (V(n) && cn(n) == Ue);
+ }
+ var Zt = rf ? wn(rf) : Mp;
+ function Fd(n) {
+ return n === r;
+ }
+ function Dd(n) {
+ return V(n) && sn(n) == ae;
+ }
+ function qd(n) {
+ return V(n) && cn(n) == jl;
+ }
+ var Wd = _r(Si),
+ Ud = _r(function (n, t) {
+ return n <= t;
+ });
+ function $a(n) {
+ if (!n) return [];
+ if (_n(n)) return Sr(n) ? Dn(n) : gn(n);
+ if (le && n[le]) return dh(n[le]());
+ var t = sn(n),
+ e = t == Mn ? hi : t == Fn ? $e : Yt;
+ return e(n);
+ }
+ function tt(n) {
+ if (!n) return n === 0 ? n : 0;
+ if (((n = Pn(n)), n === xt || n === -xt)) {
+ var t = n < 0 ? -1 : 1;
+ return t * zl;
+ }
+ return n === n ? n : 0;
+ }
+ function P(n) {
+ var t = tt(n),
+ e = t % 1;
+ return t === t ? (e ? t - e : t) : 0;
+ }
+ function Ka(n) {
+ return n ? mt(P(n), 0, Hn) : 0;
+ }
+ function Pn(n) {
+ if (typeof n == \\"number\\") return n;
+ if (An(n)) return Fe;
+ if (Q(n)) {
+ var t = typeof n.valueOf == \\"function\\" ? n.valueOf() : n;
+ n = Q(t) ? t + \\"\\" : t;
+ }
+ if (typeof n != \\"string\\") return n === 0 ? n : +n;
+ n = lf(n);
+ var e = wc.test(n);
+ return e || Ac.test(n)
+ ? kc(n.slice(2), e ? 2 : 8)
+ : xc.test(n)
+ ? Fe
+ : +n;
+ }
+ function Za(n) {
+ return $n(n, dn(n));
+ }
+ function Bd(n) {
+ return n ? mt(P(n), -ft, ft) : n === 0 ? n : 0;
+ }
+ function H(n) {
+ return n == null ? \\"\\" : yn(n);
+ }
+ var Nd = zt(function (n, t) {
+ if (Ae(t) || _n(t)) {
+ $n(t, un(t), n);
+ return;
+ }
+ for (var e in t) $.call(t, e) && _e(n, e, t[e]);
+ }),
+ Ya = zt(function (n, t) {
+ $n(t, dn(t), n);
+ }),
+ Cr = zt(function (n, t, e, i) {
+ $n(t, dn(t), n, i);
+ }),
+ Gd = zt(function (n, t, e, i) {
+ $n(t, un(t), n, i);
+ }),
+ Hd = jn(xi);
+ function zd(n, t) {
+ var e = Ht(n);
+ return t == null ? e : Sf(e, t);
+ }
+ var $d = F(function (n, t) {
+ n = K(n);
+ var e = -1,
+ i = t.length,
+ u = i > 2 ? t[2] : r;
+ for (u && hn(t[0], t[1], u) && (i = 1); ++e < i; )
+ for (var a = t[e], s = dn(a), c = -1, p = s.length; ++c < p; ) {
+ var d = s[c],
+ v = n[d];
+ (v === r || (Wn(v, Bt[d]) && !$.call(n, d))) && (n[d] = a[d]);
+ }
+ return n;
+ }),
+ Kd = F(function (n) {
+ return n.push(r, la), xn(Xa, r, n);
+ });
+ function Zd(n, t) {
+ return ff(n, O(t, 3), zn);
+ }
+ function Yd(n, t) {
+ return ff(n, O(t, 3), yi);
+ }
+ function Xd(n, t) {
+ return n == null ? n : wi(n, O(t, 3), dn);
+ }
+ function Jd(n, t) {
+ return n == null ? n : Rf(n, O(t, 3), dn);
+ }
+ function Qd(n, t) {
+ return n && zn(n, O(t, 3));
+ }
+ function Vd(n, t) {
+ return n && yi(n, O(t, 3));
+ }
+ function jd(n) {
+ return n == null ? [] : ar(n, un(n));
+ }
+ function kd(n) {
+ return n == null ? [] : ar(n, dn(n));
+ }
+ function ji(n, t, e) {
+ var i = n == null ? r : Tt(n, t);
+ return i === r ? e : i;
+ }
+ function n0(n, t) {
+ return n != null && pa(n, t, mp);
+ }
+ function ki(n, t) {
+ return n != null && pa(n, t, Tp);
+ }
+ var t0 = ua(function (n, t, e) {
+ t != null && typeof t.toString != \\"function\\" && (t = Xe.call(t)),
+ (n[t] = e);
+ }, tu(vn)),
+ e0 = ua(function (n, t, e) {
+ t != null && typeof t.toString != \\"function\\" && (t = Xe.call(t)),
+ $.call(n, t) ? n[t].push(e) : (n[t] = [e]);
+ }, O),
+ r0 = F(ve);
+ function un(n) {
+ return _n(n) ? mf(n) : Ti(n);
+ }
+ function dn(n) {
+ return _n(n) ? mf(n, !0) : Fp(n);
+ }
+ function i0(n, t) {
+ var e = {};
+ return (
+ (t = O(t, 3)),
+ zn(n, function (i, u, a) {
+ Qn(e, t(i, u, a), i);
+ }),
+ e
+ );
+ }
+ function u0(n, t) {
+ var e = {};
+ return (
+ (t = O(t, 3)),
+ zn(n, function (i, u, a) {
+ Qn(e, u, t(i, u, a));
+ }),
+ e
+ );
+ }
+ var f0 = zt(function (n, t, e) {
+ or(n, t, e);
+ }),
+ Xa = zt(function (n, t, e, i) {
+ or(n, t, e, i);
+ }),
+ a0 = jn(function (n, t) {
+ var e = {};
+ if (n == null) return e;
+ var i = !1;
+ (t = J(t, function (a) {
+ return (a = gt(a, n)), i || (i = a.length > 1), a;
+ })),
+ $n(n, Ui(n), e),
+ i && (e = En(e, j | an | Tn, tg));
+ for (var u = t.length; u--; ) Ri(e, t[u]);
+ return e;
+ });
+ function o0(n, t) {
+ return Ja(n, mr(O(t)));
+ }
+ var s0 = jn(function (n, t) {
+ return n == null ? {} : qp(n, t);
+ });
+ function Ja(n, t) {
+ if (n == null) return {};
+ var e = J(Ui(n), function (i) {
+ return [i];
+ });
+ return (
+ (t = O(t)),
+ Nf(n, e, function (i, u) {
+ return t(i, u[0]);
+ })
+ );
+ }
+ function l0(n, t, e) {
+ t = gt(t, n);
+ var i = -1,
+ u = t.length;
+ for (u || ((u = 1), (n = r)); ++i < u; ) {
+ var a = n == null ? r : n[Kn(t[i])];
+ a === r && ((i = u), (a = e)), (n = nt(a) ? a.call(n) : a);
+ }
+ return n;
+ }
+ function c0(n, t, e) {
+ return n == null ? n : we(n, t, e);
+ }
+ function h0(n, t, e, i) {
+ return (
+ (i = typeof i == \\"function\\" ? i : r), n == null ? n : we(n, t, e, i)
+ );
+ }
+ var Qa = oa(un),
+ Va = oa(dn);
+ function p0(n, t, e) {
+ var i = L(n),
+ u = i || dt(n) || Zt(n);
+ if (((t = O(t, 4)), e == null)) {
+ var a = n && n.constructor;
+ u
+ ? (e = i ? new a() : [])
+ : Q(n)
+ ? (e = nt(a) ? Ht(Ve(n)) : {})
+ : (e = {});
+ }
+ return (
+ (u ? Cn : zn)(n, function (s, c, p) {
+ return t(e, s, c, p);
+ }),
+ e
+ );
+ }
+ function g0(n, t) {
+ return n == null ? !0 : Ri(n, t);
+ }
+ function _0(n, t, e) {
+ return n == null ? n : Kf(n, t, Mi(e));
+ }
+ function d0(n, t, e, i) {
+ return (
+ (i = typeof i == \\"function\\" ? i : r),
+ n == null ? n : Kf(n, t, Mi(e), i)
+ );
+ }
+ function Yt(n) {
+ return n == null ? [] : ci(n, un(n));
+ }
+ function v0(n) {
+ return n == null ? [] : ci(n, dn(n));
+ }
+ function x0(n, t, e) {
+ return (
+ e === r && ((e = t), (t = r)),
+ e !== r && ((e = Pn(e)), (e = e === e ? e : 0)),
+ t !== r && ((t = Pn(t)), (t = t === t ? t : 0)),
+ mt(Pn(n), t, e)
+ );
+ }
+ function w0(n, t, e) {
+ return (
+ (t = tt(t)),
+ e === r ? ((e = t), (t = 0)) : (e = tt(e)),
+ (n = Pn(n)),
+ Sp(n, t, e)
+ );
+ }
+ function y0(n, t, e) {
+ if (
+ (e && typeof e != \\"boolean\\" && hn(n, t, e) && (t = e = r),
+ e === r &&
+ (typeof t == \\"boolean\\"
+ ? ((e = t), (t = r))
+ : typeof n == \\"boolean\\" && ((e = n), (n = r))),
+ n === r && t === r
+ ? ((n = 0), (t = 1))
+ : ((n = tt(n)), t === r ? ((t = n), (n = 0)) : (t = tt(t))),
+ n > t)
+ ) {
+ var i = n;
+ (n = t), (t = i);
+ }
+ if (e || n % 1 || t % 1) {
+ var u = Af();
+ return on(n + u * (t - n + jc(\\"1e-\\" + ((u + \\"\\").length - 1))), t);
+ }
+ return Oi(n, t);
+ }
+ var A0 = $t(function (n, t, e) {
+ return (t = t.toLowerCase()), n + (e ? ja(t) : t);
+ });
+ function ja(n) {
+ return nu(H(n).toLowerCase());
+ }
+ function ka(n) {
+ return (n = H(n)), n && n.replace(mc, ch).replace(Hc, \\"\\");
+ }
+ function b0(n, t, e) {
+ (n = H(n)), (t = yn(t));
+ var i = n.length;
+ e = e === r ? i : mt(P(e), 0, i);
+ var u = e;
+ return (e -= t.length), e >= 0 && n.slice(e, u) == t;
+ }
+ function m0(n) {
+ return (n = H(n)), n && rc.test(n) ? n.replace(Eu, hh) : n;
+ }
+ function T0(n) {
+ return (n = H(n)), n && sc.test(n) ? n.replace(Jr, \\"\\\\\\\\$&\\") : n;
+ }
+ var S0 = $t(function (n, t, e) {
+ return n + (e ? \\"-\\" : \\"\\") + t.toLowerCase();
+ }),
+ C0 = $t(function (n, t, e) {
+ return n + (e ? \\" \\" : \\"\\") + t.toLowerCase();
+ }),
+ O0 = ea(\\"toLowerCase\\");
+ function I0(n, t, e) {
+ (n = H(n)), (t = P(t));
+ var i = t ? Ut(n) : 0;
+ if (!t || i >= t) return n;
+ var u = (t - i) / 2;
+ return gr(tr(u), e) + n + gr(nr(u), e);
+ }
+ function E0(n, t, e) {
+ (n = H(n)), (t = P(t));
+ var i = t ? Ut(n) : 0;
+ return t && i < t ? n + gr(t - i, e) : n;
+ }
+ function R0(n, t, e) {
+ (n = H(n)), (t = P(t));
+ var i = t ? Ut(n) : 0;
+ return t && i < t ? gr(t - i, e) + n : n;
+ }
+ function L0(n, t, e) {
+ return (
+ e || t == null ? (t = 0) : t && (t = +t),
+ Uh(H(n).replace(Qr, \\"\\"), t || 0)
+ );
+ }
+ function P0(n, t, e) {
+ return (
+ (e ? hn(n, t, e) : t === r) ? (t = 1) : (t = P(t)), Ii(H(n), t)
+ );
+ }
+ function M0() {
+ var n = arguments,
+ t = H(n[0]);
+ return n.length < 3 ? t : t.replace(n[1], n[2]);
+ }
+ var F0 = $t(function (n, t, e) {
+ return n + (e ? \\"_\\" : \\"\\") + t.toLowerCase();
+ });
+ function D0(n, t, e) {
+ return (
+ e && typeof e != \\"number\\" && hn(n, t, e) && (t = e = r),
+ (e = e === r ? Hn : e >>> 0),
+ e
+ ? ((n = H(n)),
+ n &&
+ (typeof t == \\"string\\" || (t != null && !Vi(t))) &&
+ ((t = yn(t)), !t && Wt(n))
+ ? _t(Dn(n), 0, e)
+ : n.split(t, e))
+ : []
+ );
+ }
+ var q0 = $t(function (n, t, e) {
+ return n + (e ? \\" \\" : \\"\\") + nu(t);
+ });
+ function W0(n, t, e) {
+ return (
+ (n = H(n)),
+ (e = e == null ? 0 : mt(P(e), 0, n.length)),
+ (t = yn(t)),
+ n.slice(e, e + t.length) == t
+ );
+ }
+ function U0(n, t, e) {
+ var i = f.templateSettings;
+ e && hn(n, t, e) && (t = r), (n = H(n)), (t = Cr({}, t, i, sa));
+ var u = Cr({}, t.imports, i.imports, sa),
+ a = un(u),
+ s = ci(u, a),
+ c,
+ p,
+ d = 0,
+ v = t.interpolate || Be,
+ y = \\"__p += '\\",
+ A = pi(
+ (t.escape || Be).source +
+ \\"|\\" +
+ v.source +
+ \\"|\\" +
+ (v === Ru ? vc : Be).source +
+ \\"|\\" +
+ (t.evaluate || Be).source +
+ \\"|$\\",
+ \\"g\\"
+ ),
+ T =
+ \\"//# sourceURL=\\" +
+ ($.call(t, \\"sourceURL\\")
+ ? (t.sourceURL + \\"\\").replace(/\\\\s/g, \\" \\")
+ : \\"lodash.templateSources[\\" + ++Yc + \\"]\\") +
+ \`
+\`;
+ n.replace(A, function (E, W, B, bn, pn, mn) {
+ return (
+ B || (B = bn),
+ (y += n.slice(d, mn).replace(Tc, ph)),
+ W &&
+ ((c = !0),
+ (y +=
+ \`' +
+__e(\` +
+ W +
+ \`) +
+'\`)),
+ pn &&
+ ((p = !0),
+ (y +=
+ \`';
+\` +
+ pn +
+ \`;
+__p += '\`)),
+ B &&
+ (y +=
+ \`' +
+((__t = (\` +
+ B +
+ \`)) == null ? '' : __t) +
+'\`),
+ (d = mn + E.length),
+ E
+ );
+ }),
+ (y += \`';
+\`);
+ var I = $.call(t, \\"variable\\") && t.variable;
+ if (!I)
+ y =
+ \`with (obj) {
+\` +
+ y +
+ \`
+}
+\`;
+ else if (_c.test(I)) throw new R(D);
+ (y = (p ? y.replace(kl, \\"\\") : y)
+ .replace(nc, \\"$1\\")
+ .replace(tc, \\"$1;\\")),
+ (y =
+ \\"function(\\" +
+ (I || \\"obj\\") +
+ \`) {
+\` +
+ (I
+ ? \\"\\"
+ : \`obj || (obj = {});
+\`) +
+ \\"var __t, __p = ''\\" +
+ (c ? \\", __e = _.escape\\" : \\"\\") +
+ (p
+ ? \`, __j = Array.prototype.join;
+function print() { __p += __j.call(arguments, '') }
+\`
+ : \`;
+\`) +
+ y +
+ \`return __p
+}\`);
+ var M = to(function () {
+ return G(a, T + \\"return \\" + y).apply(r, s);
+ });
+ if (((M.source = y), Qi(M))) throw M;
+ return M;
+ }
+ function B0(n) {
+ return H(n).toLowerCase();
+ }
+ function N0(n) {
+ return H(n).toUpperCase();
+ }
+ function G0(n, t, e) {
+ if (((n = H(n)), n && (e || t === r))) return lf(n);
+ if (!n || !(t = yn(t))) return n;
+ var i = Dn(n),
+ u = Dn(t),
+ a = cf(i, u),
+ s = hf(i, u) + 1;
+ return _t(i, a, s).join(\\"\\");
+ }
+ function H0(n, t, e) {
+ if (((n = H(n)), n && (e || t === r))) return n.slice(0, gf(n) + 1);
+ if (!n || !(t = yn(t))) return n;
+ var i = Dn(n),
+ u = hf(i, Dn(t)) + 1;
+ return _t(i, 0, u).join(\\"\\");
+ }
+ function z0(n, t, e) {
+ if (((n = H(n)), n && (e || t === r))) return n.replace(Qr, \\"\\");
+ if (!n || !(t = yn(t))) return n;
+ var i = Dn(n),
+ u = cf(i, Dn(t));
+ return _t(i, u).join(\\"\\");
+ }
+ function $0(n, t) {
+ var e = Wl,
+ i = Ul;
+ if (Q(t)) {
+ var u = \\"separator\\" in t ? t.separator : u;
+ (e = \\"length\\" in t ? P(t.length) : e),
+ (i = \\"omission\\" in t ? yn(t.omission) : i);
+ }
+ n = H(n);
+ var a = n.length;
+ if (Wt(n)) {
+ var s = Dn(n);
+ a = s.length;
+ }
+ if (e >= a) return n;
+ var c = e - Ut(i);
+ if (c < 1) return i;
+ var p = s ? _t(s, 0, c).join(\\"\\") : n.slice(0, c);
+ if (u === r) return p + i;
+ if ((s && (c += p.length - c), Vi(u))) {
+ if (n.slice(c).search(u)) {
+ var d,
+ v = p;
+ for (
+ u.global || (u = pi(u.source, H(Lu.exec(u)) + \\"g\\")),
+ u.lastIndex = 0;
+ (d = u.exec(v));
+
+ )
+ var y = d.index;
+ p = p.slice(0, y === r ? c : y);
+ }
+ } else if (n.indexOf(yn(u), c) != c) {
+ var A = p.lastIndexOf(u);
+ A > -1 && (p = p.slice(0, A));
+ }
+ return p + i;
+ }
+ function K0(n) {
+ return (n = H(n)), n && ec.test(n) ? n.replace(Iu, yh) : n;
+ }
+ var Z0 = $t(function (n, t, e) {
+ return n + (e ? \\" \\" : \\"\\") + t.toUpperCase();
+ }),
+ nu = ea(\\"toUpperCase\\");
+ function no(n, t, e) {
+ return (
+ (n = H(n)),
+ (t = e ? r : t),
+ t === r ? (_h(n) ? mh(n) : fh(n)) : n.match(t) || []
+ );
+ }
+ var to = F(function (n, t) {
+ try {
+ return xn(n, r, t);
+ } catch (e) {
+ return Qi(e) ? e : new R(e);
+ }
+ }),
+ Y0 = jn(function (n, t) {
+ return (
+ Cn(t, function (e) {
+ (e = Kn(e)), Qn(n, e, Xi(n[e], n));
+ }),
+ n
+ );
+ });
+ function X0(n) {
+ var t = n == null ? 0 : n.length,
+ e = O();
+ return (
+ (n = t
+ ? J(n, function (i) {
+ if (typeof i[1] != \\"function\\") throw new On(m);
+ return [e(i[0]), i[1]];
+ })
+ : []),
+ F(function (i) {
+ for (var u = -1; ++u < t; ) {
+ var a = n[u];
+ if (xn(a[0], this, i)) return xn(a[1], this, i);
+ }
+ })
+ );
+ }
+ function J0(n) {
+ return yp(En(n, j));
+ }
+ function tu(n) {
+ return function () {
+ return n;
+ };
+ }
+ function Q0(n, t) {
+ return n == null || n !== n ? t : n;
+ }
+ var V0 = ia(),
+ j0 = ia(!0);
+ function vn(n) {
+ return n;
+ }
+ function eu(n) {
+ return Ff(typeof n == \\"function\\" ? n : En(n, j));
+ }
+ function k0(n) {
+ return qf(En(n, j));
+ }
+ function nv(n, t) {
+ return Wf(n, En(t, j));
+ }
+ var tv = F(function (n, t) {
+ return function (e) {
+ return ve(e, n, t);
+ };
+ }),
+ ev = F(function (n, t) {
+ return function (e) {
+ return ve(n, e, t);
+ };
+ });
+ function ru(n, t, e) {
+ var i = un(t),
+ u = ar(t, i);
+ e == null &&
+ !(Q(t) && (u.length || !i.length)) &&
+ ((e = t), (t = n), (n = this), (u = ar(t, un(t))));
+ var a = !(Q(e) && \\"chain\\" in e) || !!e.chain,
+ s = nt(n);
+ return (
+ Cn(u, function (c) {
+ var p = t[c];
+ (n[c] = p),
+ s &&
+ (n.prototype[c] = function () {
+ var d = this.__chain__;
+ if (a || d) {
+ var v = n(this.__wrapped__),
+ y = (v.__actions__ = gn(this.__actions__));
+ return (
+ y.push({ func: p, args: arguments, thisArg: n }),
+ (v.__chain__ = d),
+ v
+ );
+ }
+ return p.apply(n, ot([this.value()], arguments));
+ });
+ }),
+ n
+ );
+ }
+ function rv() {
+ return rn._ === this && (rn._ = Eh), this;
+ }
+ function iu() {}
+ function iv(n) {
+ return (
+ (n = P(n)),
+ F(function (t) {
+ return Uf(t, n);
+ })
+ );
+ }
+ var uv = Di(J),
+ fv = Di(uf),
+ av = Di(fi);
+ function eo(n) {
+ return Hi(n) ? ai(Kn(n)) : Wp(n);
+ }
+ function ov(n) {
+ return function (t) {
+ return n == null ? r : Tt(n, t);
+ };
+ }
+ var sv = fa(),
+ lv = fa(!0);
+ function uu() {
+ return [];
+ }
+ function fu() {
+ return !1;
+ }
+ function cv() {
+ return {};
+ }
+ function hv() {
+ return \\"\\";
+ }
+ function pv() {
+ return !0;
+ }
+ function gv(n, t) {
+ if (((n = P(n)), n < 1 || n > ft)) return [];
+ var e = Hn,
+ i = on(n, Hn);
+ (t = O(t)), (n -= Hn);
+ for (var u = li(i, t); ++e < n; ) t(e);
+ return u;
+ }
+ function _v(n) {
+ return L(n) ? J(n, Kn) : An(n) ? [n] : gn(ba(H(n)));
+ }
+ function dv(n) {
+ var t = ++Oh;
+ return H(n) + t;
+ }
+ var vv = pr(function (n, t) {
+ return n + t;
+ }, 0),
+ xv = qi(\\"ceil\\"),
+ wv = pr(function (n, t) {
+ return n / t;
+ }, 1),
+ yv = qi(\\"floor\\");
+ function Av(n) {
+ return n && n.length ? fr(n, vn, Ai) : r;
+ }
+ function bv(n, t) {
+ return n && n.length ? fr(n, O(t, 2), Ai) : r;
+ }
+ function mv(n) {
+ return of(n, vn);
+ }
+ function Tv(n, t) {
+ return of(n, O(t, 2));
+ }
+ function Sv(n) {
+ return n && n.length ? fr(n, vn, Si) : r;
+ }
+ function Cv(n, t) {
+ return n && n.length ? fr(n, O(t, 2), Si) : r;
+ }
+ var Ov = pr(function (n, t) {
+ return n * t;
+ }, 1),
+ Iv = qi(\\"round\\"),
+ Ev = pr(function (n, t) {
+ return n - t;
+ }, 0);
+ function Rv(n) {
+ return n && n.length ? si(n, vn) : 0;
+ }
+ function Lv(n, t) {
+ return n && n.length ? si(n, O(t, 2)) : 0;
+ }
+ return (
+ (f.after = k_),
+ (f.ary = Ma),
+ (f.assign = Nd),
+ (f.assignIn = Ya),
+ (f.assignInWith = Cr),
+ (f.assignWith = Gd),
+ (f.at = Hd),
+ (f.before = Fa),
+ (f.bind = Xi),
+ (f.bindAll = Y0),
+ (f.bindKey = Da),
+ (f.castArray = cd),
+ (f.chain = Ra),
+ (f.chunk = yg),
+ (f.compact = Ag),
+ (f.concat = bg),
+ (f.cond = X0),
+ (f.conforms = J0),
+ (f.constant = tu),
+ (f.countBy = R_),
+ (f.create = zd),
+ (f.curry = qa),
+ (f.curryRight = Wa),
+ (f.debounce = Ua),
+ (f.defaults = $d),
+ (f.defaultsDeep = Kd),
+ (f.defer = nd),
+ (f.delay = td),
+ (f.difference = mg),
+ (f.differenceBy = Tg),
+ (f.differenceWith = Sg),
+ (f.drop = Cg),
+ (f.dropRight = Og),
+ (f.dropRightWhile = Ig),
+ (f.dropWhile = Eg),
+ (f.fill = Rg),
+ (f.filter = P_),
+ (f.flatMap = D_),
+ (f.flatMapDeep = q_),
+ (f.flatMapDepth = W_),
+ (f.flatten = Ca),
+ (f.flattenDeep = Lg),
+ (f.flattenDepth = Pg),
+ (f.flip = ed),
+ (f.flow = V0),
+ (f.flowRight = j0),
+ (f.fromPairs = Mg),
+ (f.functions = jd),
+ (f.functionsIn = kd),
+ (f.groupBy = U_),
+ (f.initial = Dg),
+ (f.intersection = qg),
+ (f.intersectionBy = Wg),
+ (f.intersectionWith = Ug),
+ (f.invert = t0),
+ (f.invertBy = e0),
+ (f.invokeMap = N_),
+ (f.iteratee = eu),
+ (f.keyBy = G_),
+ (f.keys = un),
+ (f.keysIn = dn),
+ (f.map = yr),
+ (f.mapKeys = i0),
+ (f.mapValues = u0),
+ (f.matches = k0),
+ (f.matchesProperty = nv),
+ (f.memoize = br),
+ (f.merge = f0),
+ (f.mergeWith = Xa),
+ (f.method = tv),
+ (f.methodOf = ev),
+ (f.mixin = ru),
+ (f.negate = mr),
+ (f.nthArg = iv),
+ (f.omit = a0),
+ (f.omitBy = o0),
+ (f.once = rd),
+ (f.orderBy = H_),
+ (f.over = uv),
+ (f.overArgs = id),
+ (f.overEvery = fv),
+ (f.overSome = av),
+ (f.partial = Ji),
+ (f.partialRight = Ba),
+ (f.partition = z_),
+ (f.pick = s0),
+ (f.pickBy = Ja),
+ (f.property = eo),
+ (f.propertyOf = ov),
+ (f.pull = Hg),
+ (f.pullAll = Ia),
+ (f.pullAllBy = zg),
+ (f.pullAllWith = $g),
+ (f.pullAt = Kg),
+ (f.range = sv),
+ (f.rangeRight = lv),
+ (f.rearg = ud),
+ (f.reject = Z_),
+ (f.remove = Zg),
+ (f.rest = fd),
+ (f.reverse = Zi),
+ (f.sampleSize = X_),
+ (f.set = c0),
+ (f.setWith = h0),
+ (f.shuffle = J_),
+ (f.slice = Yg),
+ (f.sortBy = j_),
+ (f.sortedUniq = n_),
+ (f.sortedUniqBy = t_),
+ (f.split = D0),
+ (f.spread = ad),
+ (f.tail = e_),
+ (f.take = r_),
+ (f.takeRight = i_),
+ (f.takeRightWhile = u_),
+ (f.takeWhile = f_),
+ (f.tap = A_),
+ (f.throttle = od),
+ (f.thru = wr),
+ (f.toArray = $a),
+ (f.toPairs = Qa),
+ (f.toPairsIn = Va),
+ (f.toPath = _v),
+ (f.toPlainObject = Za),
+ (f.transform = p0),
+ (f.unary = sd),
+ (f.union = a_),
+ (f.unionBy = o_),
+ (f.unionWith = s_),
+ (f.uniq = l_),
+ (f.uniqBy = c_),
+ (f.uniqWith = h_),
+ (f.unset = g0),
+ (f.unzip = Yi),
+ (f.unzipWith = Ea),
+ (f.update = _0),
+ (f.updateWith = d0),
+ (f.values = Yt),
+ (f.valuesIn = v0),
+ (f.without = p_),
+ (f.words = no),
+ (f.wrap = ld),
+ (f.xor = g_),
+ (f.xorBy = __),
+ (f.xorWith = d_),
+ (f.zip = v_),
+ (f.zipObject = x_),
+ (f.zipObjectDeep = w_),
+ (f.zipWith = y_),
+ (f.entries = Qa),
+ (f.entriesIn = Va),
+ (f.extend = Ya),
+ (f.extendWith = Cr),
+ ru(f, f),
+ (f.add = vv),
+ (f.attempt = to),
+ (f.camelCase = A0),
+ (f.capitalize = ja),
+ (f.ceil = xv),
+ (f.clamp = x0),
+ (f.clone = hd),
+ (f.cloneDeep = gd),
+ (f.cloneDeepWith = _d),
+ (f.cloneWith = pd),
+ (f.conformsTo = dd),
+ (f.deburr = ka),
+ (f.defaultTo = Q0),
+ (f.divide = wv),
+ (f.endsWith = b0),
+ (f.eq = Wn),
+ (f.escape = m0),
+ (f.escapeRegExp = T0),
+ (f.every = L_),
+ (f.find = M_),
+ (f.findIndex = Ta),
+ (f.findKey = Zd),
+ (f.findLast = F_),
+ (f.findLastIndex = Sa),
+ (f.findLastKey = Yd),
+ (f.floor = yv),
+ (f.forEach = La),
+ (f.forEachRight = Pa),
+ (f.forIn = Xd),
+ (f.forInRight = Jd),
+ (f.forOwn = Qd),
+ (f.forOwnRight = Vd),
+ (f.get = ji),
+ (f.gt = vd),
+ (f.gte = xd),
+ (f.has = n0),
+ (f.hasIn = ki),
+ (f.head = Oa),
+ (f.identity = vn),
+ (f.includes = B_),
+ (f.indexOf = Fg),
+ (f.inRange = w0),
+ (f.invoke = r0),
+ (f.isArguments = Ot),
+ (f.isArray = L),
+ (f.isArrayBuffer = wd),
+ (f.isArrayLike = _n),
+ (f.isArrayLikeObject = k),
+ (f.isBoolean = yd),
+ (f.isBuffer = dt),
+ (f.isDate = Ad),
+ (f.isElement = bd),
+ (f.isEmpty = md),
+ (f.isEqual = Td),
+ (f.isEqualWith = Sd),
+ (f.isError = Qi),
+ (f.isFinite = Cd),
+ (f.isFunction = nt),
+ (f.isInteger = Na),
+ (f.isLength = Tr),
+ (f.isMap = Ga),
+ (f.isMatch = Od),
+ (f.isMatchWith = Id),
+ (f.isNaN = Ed),
+ (f.isNative = Rd),
+ (f.isNil = Pd),
+ (f.isNull = Ld),
+ (f.isNumber = Ha),
+ (f.isObject = Q),
+ (f.isObjectLike = V),
+ (f.isPlainObject = me),
+ (f.isRegExp = Vi),
+ (f.isSafeInteger = Md),
+ (f.isSet = za),
+ (f.isString = Sr),
+ (f.isSymbol = An),
+ (f.isTypedArray = Zt),
+ (f.isUndefined = Fd),
+ (f.isWeakMap = Dd),
+ (f.isWeakSet = qd),
+ (f.join = Bg),
+ (f.kebabCase = S0),
+ (f.last = Ln),
+ (f.lastIndexOf = Ng),
+ (f.lowerCase = C0),
+ (f.lowerFirst = O0),
+ (f.lt = Wd),
+ (f.lte = Ud),
+ (f.max = Av),
+ (f.maxBy = bv),
+ (f.mean = mv),
+ (f.meanBy = Tv),
+ (f.min = Sv),
+ (f.minBy = Cv),
+ (f.stubArray = uu),
+ (f.stubFalse = fu),
+ (f.stubObject = cv),
+ (f.stubString = hv),
+ (f.stubTrue = pv),
+ (f.multiply = Ov),
+ (f.nth = Gg),
+ (f.noConflict = rv),
+ (f.noop = iu),
+ (f.now = Ar),
+ (f.pad = I0),
+ (f.padEnd = E0),
+ (f.padStart = R0),
+ (f.parseInt = L0),
+ (f.random = y0),
+ (f.reduce = $_),
+ (f.reduceRight = K_),
+ (f.repeat = P0),
+ (f.replace = M0),
+ (f.result = l0),
+ (f.round = Iv),
+ (f.runInContext = h),
+ (f.sample = Y_),
+ (f.size = Q_),
+ (f.snakeCase = F0),
+ (f.some = V_),
+ (f.sortedIndex = Xg),
+ (f.sortedIndexBy = Jg),
+ (f.sortedIndexOf = Qg),
+ (f.sortedLastIndex = Vg),
+ (f.sortedLastIndexBy = jg),
+ (f.sortedLastIndexOf = kg),
+ (f.startCase = q0),
+ (f.startsWith = W0),
+ (f.subtract = Ev),
+ (f.sum = Rv),
+ (f.sumBy = Lv),
+ (f.template = U0),
+ (f.times = gv),
+ (f.toFinite = tt),
+ (f.toInteger = P),
+ (f.toLength = Ka),
+ (f.toLower = B0),
+ (f.toNumber = Pn),
+ (f.toSafeInteger = Bd),
+ (f.toString = H),
+ (f.toUpper = N0),
+ (f.trim = G0),
+ (f.trimEnd = H0),
+ (f.trimStart = z0),
+ (f.truncate = $0),
+ (f.unescape = K0),
+ (f.uniqueId = dv),
+ (f.upperCase = Z0),
+ (f.upperFirst = nu),
+ (f.each = La),
+ (f.eachRight = Pa),
+ (f.first = Oa),
+ ru(
+ f,
+ (function () {
+ var n = {};
+ return (
+ zn(f, function (t, e) {
+ $.call(f.prototype, e) || (n[e] = t);
+ }),
+ n
+ );
+ })(),
+ { chain: !1 }
+ ),
+ (f.VERSION = o),
+ Cn(
+ [
+ \\"bind\\",
+ \\"bindKey\\",
+ \\"curry\\",
+ \\"curryRight\\",
+ \\"partial\\",
+ \\"partialRight\\",
+ ],
+ function (n) {
+ f[n].placeholder = f;
+ }
+ ),
+ Cn([\\"drop\\", \\"take\\"], function (n, t) {
+ (U.prototype[n] = function (e) {
+ e = e === r ? 1 : en(P(e), 0);
+ var i = this.__filtered__ && !t ? new U(this) : this.clone();
+ return (
+ i.__filtered__
+ ? (i.__takeCount__ = on(e, i.__takeCount__))
+ : i.__views__.push({
+ size: on(e, Hn),
+ type: n + (i.__dir__ < 0 ? \\"Right\\" : \\"\\"),
+ }),
+ i
+ );
+ }),
+ (U.prototype[n + \\"Right\\"] = function (e) {
+ return this.reverse()[n](e).reverse();
+ });
+ }),
+ Cn([\\"filter\\", \\"map\\", \\"takeWhile\\"], function (n, t) {
+ var e = t + 1,
+ i = e == Su || e == Hl;
+ U.prototype[n] = function (u) {
+ var a = this.clone();
+ return (
+ a.__iteratees__.push({ iteratee: O(u, 3), type: e }),
+ (a.__filtered__ = a.__filtered__ || i),
+ a
+ );
+ };
+ }),
+ Cn([\\"head\\", \\"last\\"], function (n, t) {
+ var e = \\"take\\" + (t ? \\"Right\\" : \\"\\");
+ U.prototype[n] = function () {
+ return this[e](1).value()[0];
+ };
+ }),
+ Cn([\\"initial\\", \\"tail\\"], function (n, t) {
+ var e = \\"drop\\" + (t ? \\"\\" : \\"Right\\");
+ U.prototype[n] = function () {
+ return this.__filtered__ ? new U(this) : this[e](1);
+ };
+ }),
+ (U.prototype.compact = function () {
+ return this.filter(vn);
+ }),
+ (U.prototype.find = function (n) {
+ return this.filter(n).head();
+ }),
+ (U.prototype.findLast = function (n) {
+ return this.reverse().find(n);
+ }),
+ (U.prototype.invokeMap = F(function (n, t) {
+ return typeof n == \\"function\\"
+ ? new U(this)
+ : this.map(function (e) {
+ return ve(e, n, t);
+ });
+ })),
+ (U.prototype.reject = function (n) {
+ return this.filter(mr(O(n)));
+ }),
+ (U.prototype.slice = function (n, t) {
+ n = P(n);
+ var e = this;
+ return e.__filtered__ && (n > 0 || t < 0)
+ ? new U(e)
+ : (n < 0 ? (e = e.takeRight(-n)) : n && (e = e.drop(n)),
+ t !== r &&
+ ((t = P(t)), (e = t < 0 ? e.dropRight(-t) : e.take(t - n))),
+ e);
+ }),
+ (U.prototype.takeRightWhile = function (n) {
+ return this.reverse().takeWhile(n).reverse();
+ }),
+ (U.prototype.toArray = function () {
+ return this.take(Hn);
+ }),
+ zn(U.prototype, function (n, t) {
+ var e = /^(?:filter|find|map|reject)|While$/.test(t),
+ i = /^(?:head|last)$/.test(t),
+ u = f[i ? \\"take\\" + (t == \\"last\\" ? \\"Right\\" : \\"\\") : t],
+ a = i || /^find/.test(t);
+ !u ||
+ (f.prototype[t] = function () {
+ var s = this.__wrapped__,
+ c = i ? [1] : arguments,
+ p = s instanceof U,
+ d = c[0],
+ v = p || L(s),
+ y = function (W) {
+ var B = u.apply(f, ot([W], c));
+ return i && A ? B[0] : B;
+ };
+ v &&
+ e &&
+ typeof d == \\"function\\" &&
+ d.length != 1 &&
+ (p = v = !1);
+ var A = this.__chain__,
+ T = !!this.__actions__.length,
+ I = a && !A,
+ M = p && !T;
+ if (!a && v) {
+ s = M ? s : new U(this);
+ var E = n.apply(s, c);
+ return (
+ E.__actions__.push({ func: wr, args: [y], thisArg: r }),
+ new In(E, A)
+ );
+ }
+ return I && M
+ ? n.apply(this, c)
+ : ((E = this.thru(y)),
+ I ? (i ? E.value()[0] : E.value()) : E);
+ });
+ }),
+ Cn(
+ [\\"pop\\", \\"push\\", \\"shift\\", \\"sort\\", \\"splice\\", \\"unshift\\"],
+ function (n) {
+ var t = Ke[n],
+ e = /^(?:push|sort|unshift)$/.test(n) ? \\"tap\\" : \\"thru\\",
+ i = /^(?:pop|shift)$/.test(n);
+ f.prototype[n] = function () {
+ var u = arguments;
+ if (i && !this.__chain__) {
+ var a = this.value();
+ return t.apply(L(a) ? a : [], u);
+ }
+ return this[e](function (s) {
+ return t.apply(L(s) ? s : [], u);
+ });
+ };
+ }
+ ),
+ zn(U.prototype, function (n, t) {
+ var e = f[t];
+ if (e) {
+ var i = e.name + \\"\\";
+ $.call(Gt, i) || (Gt[i] = []), Gt[i].push({ name: t, func: e });
+ }
+ }),
+ (Gt[hr(r, vt).name] = [{ name: \\"wrapper\\", func: r }]),
+ (U.prototype.clone = Kh),
+ (U.prototype.reverse = Zh),
+ (U.prototype.value = Yh),
+ (f.prototype.at = b_),
+ (f.prototype.chain = m_),
+ (f.prototype.commit = T_),
+ (f.prototype.next = S_),
+ (f.prototype.plant = O_),
+ (f.prototype.reverse = I_),
+ (f.prototype.toJSON = f.prototype.valueOf = f.prototype.value = E_),
+ (f.prototype.first = f.prototype.head),
+ le && (f.prototype[le] = C_),
+ f
+ );
+ },
+ lt = Th();
+ typeof define == \\"function\\" && typeof define.amd == \\"object\\" && define.amd
+ ? ((rn._ = lt),
+ define(function () {
+ return lt;
+ }))
+ : wt
+ ? (((wt.exports = lt)._ = lt), (ei._ = lt))
+ : (rn._ = lt);
+ }.call(ne));
+});
+x();
+var Fl = au(rl()),
+ Dl = au(Pl()),
+ ql = au(Ml());
+import * as mu from \\"https://mycustomcdn.net/react?version=17.0.2\\";
+function vA() {
+ return mu.createElement(
+ \\"div\\",
+ null,
+ mu.createElement(
+ \\"pre\\",
+ null,
+ JSON.stringify({
+ get: Fl.default,
+ merge: Dl.default,
+ difference: ql.difference,
+ })
+ )
+ );
+}
+export { vA as default };
+/**
+ * @license
+ * Lodash
+ * Copyright OpenJS Foundation and other contributors
+ * Released under MIT license
+ * Based on Underscore.js 1.8.3
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ */
+//# sourceMappingURL=/static/js/index-66YWVUWP.js.map
+"
+`;
+
+exports[`modular-scripts WHEN building a esm-view specifying a dependency to not being rewritten using wildcards THEN rewrites only the dependencies that are not specified in the blocklist 1`] = `
+"var Pv = Object.create;
+var io = Object.defineProperty;
+var Mv = Object.getOwnPropertyDescriptor;
+var Fv = Object.getOwnPropertyNames;
+var Dv = Object.getPrototypeOf,
+ qv = Object.prototype.hasOwnProperty;
+var Wv = (r, o) => () => (r && (o = r((r = 0))), o);
+var S = (r, o) => () => (o || r((o = { exports: {} }).exports, o), o.exports);
+var Uv = (r, o, l, w) => {
+ if ((o && typeof o == \\"object\\") || typeof o == \\"function\\")
+ for (let m of Fv(o))
+ !qv.call(r, m) &&
+ m !== l &&
+ io(r, m, {
+ get: () => o[m],
+ enumerable: !(w = Mv(o, m)) || w.enumerable,
+ });
+ return r;
+};
+var au = (r, o, l) => (
+ (l = r != null ? Pv(Dv(r)) : {}),
+ Uv(
+ o || !r || !r.__esModule
+ ? io(l, \\"default\\", { value: r, enumerable: !0 })
+ : l,
+ r
+ )
+);
+var x = Wv(() => {});
+var Or = S((AA, uo) => {
+ x();
+ var Bv = Array.isArray;
+ uo.exports = Bv;
+});
+var ao = S((bA, fo) => {
+ x();
+ var Nv =
+ typeof window == \\"object\\" && window && window.Object === Object && window;
+ fo.exports = Nv;
+});
+var Ir = S((mA, oo) => {
+ x();
+ var Gv = ao(),
+ Hv = typeof self == \\"object\\" && self && self.Object === Object && self,
+ zv = Gv || Hv || Function(\\"return this\\")();
+ oo.exports = zv;
+});
+var Er = S((TA, so) => {
+ x();
+ var $v = Ir(),
+ Kv = $v.Symbol;
+ so.exports = Kv;
+});
+var po = S((SA, ho) => {
+ x();
+ var lo = Er(),
+ co = Object.prototype,
+ Zv = co.hasOwnProperty,
+ Yv = co.toString,
+ Te = lo ? lo.toStringTag : void 0;
+ function Xv(r) {
+ var o = Zv.call(r, Te),
+ l = r[Te];
+ try {
+ r[Te] = void 0;
+ var w = !0;
+ } catch {}
+ var m = Yv.call(r);
+ return w && (o ? (r[Te] = l) : delete r[Te]), m;
+ }
+ ho.exports = Xv;
+});
+var _o = S((CA, go) => {
+ x();
+ var Jv = Object.prototype,
+ Qv = Jv.toString;
+ function Vv(r) {
+ return Qv.call(r);
+ }
+ go.exports = Vv;
+});
+var ou = S((OA, wo) => {
+ x();
+ var vo = Er(),
+ jv = po(),
+ kv = _o(),
+ n1 = \\"[object Null]\\",
+ t1 = \\"[object Undefined]\\",
+ xo = vo ? vo.toStringTag : void 0;
+ function e1(r) {
+ return r == null
+ ? r === void 0
+ ? t1
+ : n1
+ : xo && xo in Object(r)
+ ? jv(r)
+ : kv(r);
+ }
+ wo.exports = e1;
+});
+var Ao = S((IA, yo) => {
+ x();
+ function r1(r) {
+ return r != null && typeof r == \\"object\\";
+ }
+ yo.exports = r1;
+});
+var Rr = S((EA, bo) => {
+ x();
+ var i1 = ou(),
+ u1 = Ao(),
+ f1 = \\"[object Symbol]\\";
+ function a1(r) {
+ return typeof r == \\"symbol\\" || (u1(r) && i1(r) == f1);
+ }
+ bo.exports = a1;
+});
+var To = S((RA, mo) => {
+ x();
+ var o1 = Or(),
+ s1 = Rr(),
+ l1 = /\\\\.|\\\\[(?:[^[\\\\]]*|([\\"'])(?:(?!\\\\1)[^\\\\\\\\]|\\\\\\\\.)*?\\\\1)\\\\]/,
+ c1 = /^\\\\w*$/;
+ function h1(r, o) {
+ if (o1(r)) return !1;
+ var l = typeof r;
+ return l == \\"number\\" ||
+ l == \\"symbol\\" ||
+ l == \\"boolean\\" ||
+ r == null ||
+ s1(r)
+ ? !0
+ : c1.test(r) || !l1.test(r) || (o != null && r in Object(o));
+ }
+ mo.exports = h1;
+});
+var su = S((LA, So) => {
+ x();
+ function p1(r) {
+ var o = typeof r;
+ return r != null && (o == \\"object\\" || o == \\"function\\");
+ }
+ So.exports = p1;
+});
+var Oo = S((PA, Co) => {
+ x();
+ var g1 = ou(),
+ _1 = su(),
+ d1 = \\"[object AsyncFunction]\\",
+ v1 = \\"[object Function]\\",
+ x1 = \\"[object GeneratorFunction]\\",
+ w1 = \\"[object Proxy]\\";
+ function y1(r) {
+ if (!_1(r)) return !1;
+ var o = g1(r);
+ return o == v1 || o == x1 || o == d1 || o == w1;
+ }
+ Co.exports = y1;
+});
+var Eo = S((MA, Io) => {
+ x();
+ var A1 = Ir(),
+ b1 = A1[\\"__core-js_shared__\\"];
+ Io.exports = b1;
+});
+var Po = S((FA, Lo) => {
+ x();
+ var lu = Eo(),
+ Ro = (function () {
+ var r = /[^.]+$/.exec((lu && lu.keys && lu.keys.IE_PROTO) || \\"\\");
+ return r ? \\"Symbol(src)_1.\\" + r : \\"\\";
+ })();
+ function m1(r) {
+ return !!Ro && Ro in r;
+ }
+ Lo.exports = m1;
+});
+var Fo = S((DA, Mo) => {
+ x();
+ var T1 = Function.prototype,
+ S1 = T1.toString;
+ function C1(r) {
+ if (r != null) {
+ try {
+ return S1.call(r);
+ } catch {}
+ try {
+ return r + \\"\\";
+ } catch {}
+ }
+ return \\"\\";
+ }
+ Mo.exports = C1;
+});
+var qo = S((qA, Do) => {
+ x();
+ var O1 = Oo(),
+ I1 = Po(),
+ E1 = su(),
+ R1 = Fo(),
+ L1 = /[\\\\\\\\^$.*+?()[\\\\]{}|]/g,
+ P1 = /^\\\\[object .+?Constructor\\\\]$/,
+ M1 = Function.prototype,
+ F1 = Object.prototype,
+ D1 = M1.toString,
+ q1 = F1.hasOwnProperty,
+ W1 = RegExp(
+ \\"^\\" +
+ D1.call(q1)
+ .replace(L1, \\"\\\\\\\\$&\\")
+ .replace(
+ /hasOwnProperty|(function).*?(?=\\\\\\\\\\\\()| for .+?(?=\\\\\\\\\\\\])/g,
+ \\"$1.*?\\"
+ ) +
+ \\"$\\"
+ );
+ function U1(r) {
+ if (!E1(r) || I1(r)) return !1;
+ var o = O1(r) ? W1 : P1;
+ return o.test(R1(r));
+ }
+ Do.exports = U1;
+});
+var Uo = S((WA, Wo) => {
+ x();
+ function B1(r, o) {
+ return r?.[o];
+ }
+ Wo.exports = B1;
+});
+var cu = S((UA, Bo) => {
+ x();
+ var N1 = qo(),
+ G1 = Uo();
+ function H1(r, o) {
+ var l = G1(r, o);
+ return N1(l) ? l : void 0;
+ }
+ Bo.exports = H1;
+});
+var Se = S((BA, No) => {
+ x();
+ var z1 = cu(),
+ $1 = z1(Object, \\"create\\");
+ No.exports = $1;
+});
+var zo = S((NA, Ho) => {
+ x();
+ var Go = Se();
+ function K1() {
+ (this.__data__ = Go ? Go(null) : {}), (this.size = 0);
+ }
+ Ho.exports = K1;
+});
+var Ko = S((GA, $o) => {
+ x();
+ function Z1(r) {
+ var o = this.has(r) && delete this.__data__[r];
+ return (this.size -= o ? 1 : 0), o;
+ }
+ $o.exports = Z1;
+});
+var Yo = S((HA, Zo) => {
+ x();
+ var Y1 = Se(),
+ X1 = \\"__lodash_hash_undefined__\\",
+ J1 = Object.prototype,
+ Q1 = J1.hasOwnProperty;
+ function V1(r) {
+ var o = this.__data__;
+ if (Y1) {
+ var l = o[r];
+ return l === X1 ? void 0 : l;
+ }
+ return Q1.call(o, r) ? o[r] : void 0;
+ }
+ Zo.exports = V1;
+});
+var Jo = S((zA, Xo) => {
+ x();
+ var j1 = Se(),
+ k1 = Object.prototype,
+ nx = k1.hasOwnProperty;
+ function tx(r) {
+ var o = this.__data__;
+ return j1 ? o[r] !== void 0 : nx.call(o, r);
+ }
+ Xo.exports = tx;
+});
+var Vo = S(($A, Qo) => {
+ x();
+ var ex = Se(),
+ rx = \\"__lodash_hash_undefined__\\";
+ function ix(r, o) {
+ var l = this.__data__;
+ return (
+ (this.size += this.has(r) ? 0 : 1),
+ (l[r] = ex && o === void 0 ? rx : o),
+ this
+ );
+ }
+ Qo.exports = ix;
+});
+var ko = S((KA, jo) => {
+ x();
+ var ux = zo(),
+ fx = Ko(),
+ ax = Yo(),
+ ox = Jo(),
+ sx = Vo();
+ function Xt(r) {
+ var o = -1,
+ l = r == null ? 0 : r.length;
+ for (this.clear(); ++o < l; ) {
+ var w = r[o];
+ this.set(w[0], w[1]);
+ }
+ }
+ Xt.prototype.clear = ux;
+ Xt.prototype.delete = fx;
+ Xt.prototype.get = ax;
+ Xt.prototype.has = ox;
+ Xt.prototype.set = sx;
+ jo.exports = Xt;
+});
+var ts = S((ZA, ns) => {
+ x();
+ function lx() {
+ (this.__data__ = []), (this.size = 0);
+ }
+ ns.exports = lx;
+});
+var rs = S((YA, es) => {
+ x();
+ function cx(r, o) {
+ return r === o || (r !== r && o !== o);
+ }
+ es.exports = cx;
+});
+var Ce = S((XA, is) => {
+ x();
+ var hx = rs();
+ function px(r, o) {
+ for (var l = r.length; l--; ) if (hx(r[l][0], o)) return l;
+ return -1;
+ }
+ is.exports = px;
+});
+var fs = S((JA, us) => {
+ x();
+ var gx = Ce(),
+ _x = Array.prototype,
+ dx = _x.splice;
+ function vx(r) {
+ var o = this.__data__,
+ l = gx(o, r);
+ if (l < 0) return !1;
+ var w = o.length - 1;
+ return l == w ? o.pop() : dx.call(o, l, 1), --this.size, !0;
+ }
+ us.exports = vx;
+});
+var os = S((QA, as) => {
+ x();
+ var xx = Ce();
+ function wx(r) {
+ var o = this.__data__,
+ l = xx(o, r);
+ return l < 0 ? void 0 : o[l][1];
+ }
+ as.exports = wx;
+});
+var ls = S((VA, ss) => {
+ x();
+ var yx = Ce();
+ function Ax(r) {
+ return yx(this.__data__, r) > -1;
+ }
+ ss.exports = Ax;
+});
+var hs = S((jA, cs) => {
+ x();
+ var bx = Ce();
+ function mx(r, o) {
+ var l = this.__data__,
+ w = bx(l, r);
+ return w < 0 ? (++this.size, l.push([r, o])) : (l[w][1] = o), this;
+ }
+ cs.exports = mx;
+});
+var gs = S((kA, ps) => {
+ x();
+ var Tx = ts(),
+ Sx = fs(),
+ Cx = os(),
+ Ox = ls(),
+ Ix = hs();
+ function Jt(r) {
+ var o = -1,
+ l = r == null ? 0 : r.length;
+ for (this.clear(); ++o < l; ) {
+ var w = r[o];
+ this.set(w[0], w[1]);
+ }
+ }
+ Jt.prototype.clear = Tx;
+ Jt.prototype.delete = Sx;
+ Jt.prototype.get = Cx;
+ Jt.prototype.has = Ox;
+ Jt.prototype.set = Ix;
+ ps.exports = Jt;
+});
+var ds = S((nb, _s) => {
+ x();
+ var Ex = cu(),
+ Rx = Ir(),
+ Lx = Ex(Rx, \\"Map\\");
+ _s.exports = Lx;
+});
+var ws = S((tb, xs) => {
+ x();
+ var vs = ko(),
+ Px = gs(),
+ Mx = ds();
+ function Fx() {
+ (this.size = 0),
+ (this.__data__ = {
+ hash: new vs(),
+ map: new (Mx || Px)(),
+ string: new vs(),
+ });
+ }
+ xs.exports = Fx;
+});
+var As = S((eb, ys) => {
+ x();
+ function Dx(r) {
+ var o = typeof r;
+ return o == \\"string\\" || o == \\"number\\" || o == \\"symbol\\" || o == \\"boolean\\"
+ ? r !== \\"__proto__\\"
+ : r === null;
+ }
+ ys.exports = Dx;
+});
+var Oe = S((rb, bs) => {
+ x();
+ var qx = As();
+ function Wx(r, o) {
+ var l = r.__data__;
+ return qx(o) ? l[typeof o == \\"string\\" ? \\"string\\" : \\"hash\\"] : l.map;
+ }
+ bs.exports = Wx;
+});
+var Ts = S((ib, ms) => {
+ x();
+ var Ux = Oe();
+ function Bx(r) {
+ var o = Ux(this, r).delete(r);
+ return (this.size -= o ? 1 : 0), o;
+ }
+ ms.exports = Bx;
+});
+var Cs = S((ub, Ss) => {
+ x();
+ var Nx = Oe();
+ function Gx(r) {
+ return Nx(this, r).get(r);
+ }
+ Ss.exports = Gx;
+});
+var Is = S((fb, Os) => {
+ x();
+ var Hx = Oe();
+ function zx(r) {
+ return Hx(this, r).has(r);
+ }
+ Os.exports = zx;
+});
+var Rs = S((ab, Es) => {
+ x();
+ var $x = Oe();
+ function Kx(r, o) {
+ var l = $x(this, r),
+ w = l.size;
+ return l.set(r, o), (this.size += l.size == w ? 0 : 1), this;
+ }
+ Es.exports = Kx;
+});
+var Ps = S((ob, Ls) => {
+ x();
+ var Zx = ws(),
+ Yx = Ts(),
+ Xx = Cs(),
+ Jx = Is(),
+ Qx = Rs();
+ function Qt(r) {
+ var o = -1,
+ l = r == null ? 0 : r.length;
+ for (this.clear(); ++o < l; ) {
+ var w = r[o];
+ this.set(w[0], w[1]);
+ }
+ }
+ Qt.prototype.clear = Zx;
+ Qt.prototype.delete = Yx;
+ Qt.prototype.get = Xx;
+ Qt.prototype.has = Jx;
+ Qt.prototype.set = Qx;
+ Ls.exports = Qt;
+});
+var Ds = S((sb, Fs) => {
+ x();
+ var Ms = Ps(),
+ Vx = \\"Expected a function\\";
+ function hu(r, o) {
+ if (typeof r != \\"function\\" || (o != null && typeof o != \\"function\\"))
+ throw new TypeError(Vx);
+ var l = function () {
+ var w = arguments,
+ m = o ? o.apply(this, w) : w[0],
+ D = l.cache;
+ if (D.has(m)) return D.get(m);
+ var N = r.apply(this, w);
+ return (l.cache = D.set(m, N) || D), N;
+ };
+ return (l.cache = new (hu.Cache || Ms)()), l;
+ }
+ hu.Cache = Ms;
+ Fs.exports = hu;
+});
+var Ws = S((lb, qs) => {
+ x();
+ var jx = Ds(),
+ kx = 500;
+ function nw(r) {
+ var o = jx(r, function (w) {
+ return l.size === kx && l.clear(), w;
+ }),
+ l = o.cache;
+ return o;
+ }
+ qs.exports = nw;
+});
+var Bs = S((cb, Us) => {
+ x();
+ var tw = Ws(),
+ ew =
+ /[^.[\\\\]]+|\\\\[(?:(-?\\\\d+(?:\\\\.\\\\d+)?)|([\\"'])((?:(?!\\\\2)[^\\\\\\\\]|\\\\\\\\.)*?)\\\\2)\\\\]|(?=(?:\\\\.|\\\\[\\\\])(?:\\\\.|\\\\[\\\\]|$))/g,
+ rw = /\\\\\\\\(\\\\\\\\)?/g,
+ iw = tw(function (r) {
+ var o = [];
+ return (
+ r.charCodeAt(0) === 46 && o.push(\\"\\"),
+ r.replace(ew, function (l, w, m, D) {
+ o.push(m ? D.replace(rw, \\"$1\\") : w || l);
+ }),
+ o
+ );
+ });
+ Us.exports = iw;
+});
+var Gs = S((hb, Ns) => {
+ x();
+ function uw(r, o) {
+ for (var l = -1, w = r == null ? 0 : r.length, m = Array(w); ++l < w; )
+ m[l] = o(r[l], l, r);
+ return m;
+ }
+ Ns.exports = uw;
+});
+var Ys = S((pb, Zs) => {
+ x();
+ var Hs = Er(),
+ fw = Gs(),
+ aw = Or(),
+ ow = Rr(),
+ sw = 1 / 0,
+ zs = Hs ? Hs.prototype : void 0,
+ $s = zs ? zs.toString : void 0;
+ function Ks(r) {
+ if (typeof r == \\"string\\") return r;
+ if (aw(r)) return fw(r, Ks) + \\"\\";
+ if (ow(r)) return $s ? $s.call(r) : \\"\\";
+ var o = r + \\"\\";
+ return o == \\"0\\" && 1 / r == -sw ? \\"-0\\" : o;
+ }
+ Zs.exports = Ks;
+});
+var Js = S((gb, Xs) => {
+ x();
+ var lw = Ys();
+ function cw(r) {
+ return r == null ? \\"\\" : lw(r);
+ }
+ Xs.exports = cw;
+});
+var Vs = S((_b, Qs) => {
+ x();
+ var hw = Or(),
+ pw = To(),
+ gw = Bs(),
+ _w = Js();
+ function dw(r, o) {
+ return hw(r) ? r : pw(r, o) ? [r] : gw(_w(r));
+ }
+ Qs.exports = dw;
+});
+var ks = S((db, js) => {
+ x();
+ var vw = Rr(),
+ xw = 1 / 0;
+ function ww(r) {
+ if (typeof r == \\"string\\" || vw(r)) return r;
+ var o = r + \\"\\";
+ return o == \\"0\\" && 1 / r == -xw ? \\"-0\\" : o;
+ }
+ js.exports = ww;
+});
+var tl = S((vb, nl) => {
+ x();
+ var yw = Vs(),
+ Aw = ks();
+ function bw(r, o) {
+ o = yw(o, r);
+ for (var l = 0, w = o.length; r != null && l < w; ) r = r[Aw(o[l++])];
+ return l && l == w ? r : void 0;
+ }
+ nl.exports = bw;
+});
+var rl = S((xb, el) => {
+ x();
+ var mw = tl();
+ function Tw(r, o, l) {
+ var w = r == null ? void 0 : mw(r, o);
+ return w === void 0 ? l : w;
+ }
+ el.exports = Tw;
+});
+var Pl = S((Ie, Vt) => {
+ x();
+ var Sw = 200,
+ pl = \\"__lodash_hash_undefined__\\",
+ Cw = 800,
+ Ow = 16,
+ gl = 9007199254740991,
+ _l = \\"[object Arguments]\\",
+ Iw = \\"[object Array]\\",
+ Ew = \\"[object AsyncFunction]\\",
+ Rw = \\"[object Boolean]\\",
+ Lw = \\"[object Date]\\",
+ Pw = \\"[object Error]\\",
+ dl = \\"[object Function]\\",
+ Mw = \\"[object GeneratorFunction]\\",
+ Fw = \\"[object Map]\\",
+ Dw = \\"[object Number]\\",
+ qw = \\"[object Null]\\",
+ vl = \\"[object Object]\\",
+ Ww = \\"[object Proxy]\\",
+ Uw = \\"[object RegExp]\\",
+ Bw = \\"[object Set]\\",
+ Nw = \\"[object String]\\",
+ Gw = \\"[object Undefined]\\",
+ Hw = \\"[object WeakMap]\\",
+ zw = \\"[object ArrayBuffer]\\",
+ $w = \\"[object DataView]\\",
+ Kw = \\"[object Float32Array]\\",
+ Zw = \\"[object Float64Array]\\",
+ Yw = \\"[object Int8Array]\\",
+ Xw = \\"[object Int16Array]\\",
+ Jw = \\"[object Int32Array]\\",
+ Qw = \\"[object Uint8Array]\\",
+ Vw = \\"[object Uint8ClampedArray]\\",
+ jw = \\"[object Uint16Array]\\",
+ kw = \\"[object Uint32Array]\\",
+ ny = /[\\\\\\\\^$.*+?()[\\\\]{}|]/g,
+ ty = /^\\\\[object .+?Constructor\\\\]$/,
+ ey = /^(?:0|[1-9]\\\\d*)$/,
+ X = {};
+ X[Kw] = X[Zw] = X[Yw] = X[Xw] = X[Jw] = X[Qw] = X[Vw] = X[jw] = X[kw] = !0;
+ X[_l] =
+ X[Iw] =
+ X[zw] =
+ X[Rw] =
+ X[$w] =
+ X[Lw] =
+ X[Pw] =
+ X[dl] =
+ X[Fw] =
+ X[Dw] =
+ X[vl] =
+ X[Uw] =
+ X[Bw] =
+ X[Nw] =
+ X[Hw] =
+ !1;
+ var xl =
+ typeof window == \\"object\\" && window && window.Object === Object && window,
+ ry = typeof self == \\"object\\" && self && self.Object === Object && self,
+ Le = xl || ry || Function(\\"return this\\")(),
+ wl = typeof Ie == \\"object\\" && Ie && !Ie.nodeType && Ie,
+ Ee = wl && typeof Vt == \\"object\\" && Vt && !Vt.nodeType && Vt,
+ yl = Ee && Ee.exports === wl,
+ pu = yl && xl.process,
+ il = (function () {
+ try {
+ var r = Ee && Ee.require && Ee.require(\\"util\\").types;
+ return r || (pu && pu.binding && pu.binding(\\"util\\"));
+ } catch {}
+ })(),
+ ul = il && il.isTypedArray;
+ function iy(r, o, l) {
+ switch (l.length) {
+ case 0:
+ return r.call(o);
+ case 1:
+ return r.call(o, l[0]);
+ case 2:
+ return r.call(o, l[0], l[1]);
+ case 3:
+ return r.call(o, l[0], l[1], l[2]);
+ }
+ return r.apply(o, l);
+ }
+ function uy(r, o) {
+ for (var l = -1, w = Array(r); ++l < r; ) w[l] = o(l);
+ return w;
+ }
+ function fy(r) {
+ return function (o) {
+ return r(o);
+ };
+ }
+ function ay(r, o) {
+ return r?.[o];
+ }
+ function oy(r, o) {
+ return function (l) {
+ return r(o(l));
+ };
+ }
+ var sy = Array.prototype,
+ ly = Function.prototype,
+ Mr = Object.prototype,
+ gu = Le[\\"__core-js_shared__\\"],
+ Fr = ly.toString,
+ rt = Mr.hasOwnProperty,
+ fl = (function () {
+ var r = /[^.]+$/.exec((gu && gu.keys && gu.keys.IE_PROTO) || \\"\\");
+ return r ? \\"Symbol(src)_1.\\" + r : \\"\\";
+ })(),
+ Al = Mr.toString,
+ cy = Fr.call(Object),
+ hy = RegExp(
+ \\"^\\" +
+ Fr.call(rt)
+ .replace(ny, \\"\\\\\\\\$&\\")
+ .replace(
+ /hasOwnProperty|(function).*?(?=\\\\\\\\\\\\()| for .+?(?=\\\\\\\\\\\\])/g,
+ \\"$1.*?\\"
+ ) +
+ \\"$\\"
+ ),
+ Lr = yl ? Le.Buffer : void 0,
+ al = Le.Symbol,
+ ol = Le.Uint8Array,
+ sl = Lr ? Lr.allocUnsafe : void 0,
+ bl = oy(Object.getPrototypeOf, Object),
+ ll = Object.create,
+ py = Mr.propertyIsEnumerable,
+ gy = sy.splice,
+ It = al ? al.toStringTag : void 0,
+ Pr = (function () {
+ try {
+ var r = yu(Object, \\"defineProperty\\");
+ return r({}, \\"\\", {}), r;
+ } catch {}
+ })(),
+ _y = Lr ? Lr.isBuffer : void 0,
+ cl = Math.max,
+ dy = Date.now,
+ ml = yu(Le, \\"Map\\"),
+ Re = yu(Object, \\"create\\"),
+ vy = (function () {
+ function r() {}
+ return function (o) {
+ if (!Rt(o)) return {};
+ if (ll) return ll(o);
+ r.prototype = o;
+ var l = new r();
+ return (r.prototype = void 0), l;
+ };
+ })();
+ function Et(r) {
+ var o = -1,
+ l = r == null ? 0 : r.length;
+ for (this.clear(); ++o < l; ) {
+ var w = r[o];
+ this.set(w[0], w[1]);
+ }
+ }
+ function xy() {
+ (this.__data__ = Re ? Re(null) : {}), (this.size = 0);
+ }
+ function wy(r) {
+ var o = this.has(r) && delete this.__data__[r];
+ return (this.size -= o ? 1 : 0), o;
+ }
+ function yy(r) {
+ var o = this.__data__;
+ if (Re) {
+ var l = o[r];
+ return l === pl ? void 0 : l;
+ }
+ return rt.call(o, r) ? o[r] : void 0;
+ }
+ function Ay(r) {
+ var o = this.__data__;
+ return Re ? o[r] !== void 0 : rt.call(o, r);
+ }
+ function by(r, o) {
+ var l = this.__data__;
+ return (
+ (this.size += this.has(r) ? 0 : 1),
+ (l[r] = Re && o === void 0 ? pl : o),
+ this
+ );
+ }
+ Et.prototype.clear = xy;
+ Et.prototype.delete = wy;
+ Et.prototype.get = yy;
+ Et.prototype.has = Ay;
+ Et.prototype.set = by;
+ function it(r) {
+ var o = -1,
+ l = r == null ? 0 : r.length;
+ for (this.clear(); ++o < l; ) {
+ var w = r[o];
+ this.set(w[0], w[1]);
+ }
+ }
+ function my() {
+ (this.__data__ = []), (this.size = 0);
+ }
+ function Ty(r) {
+ var o = this.__data__,
+ l = Dr(o, r);
+ if (l < 0) return !1;
+ var w = o.length - 1;
+ return l == w ? o.pop() : gy.call(o, l, 1), --this.size, !0;
+ }
+ function Sy(r) {
+ var o = this.__data__,
+ l = Dr(o, r);
+ return l < 0 ? void 0 : o[l][1];
+ }
+ function Cy(r) {
+ return Dr(this.__data__, r) > -1;
+ }
+ function Oy(r, o) {
+ var l = this.__data__,
+ w = Dr(l, r);
+ return w < 0 ? (++this.size, l.push([r, o])) : (l[w][1] = o), this;
+ }
+ it.prototype.clear = my;
+ it.prototype.delete = Ty;
+ it.prototype.get = Sy;
+ it.prototype.has = Cy;
+ it.prototype.set = Oy;
+ function jt(r) {
+ var o = -1,
+ l = r == null ? 0 : r.length;
+ for (this.clear(); ++o < l; ) {
+ var w = r[o];
+ this.set(w[0], w[1]);
+ }
+ }
+ function Iy() {
+ (this.size = 0),
+ (this.__data__ = {
+ hash: new Et(),
+ map: new (ml || it)(),
+ string: new Et(),
+ });
+ }
+ function Ey(r) {
+ var o = Wr(this, r).delete(r);
+ return (this.size -= o ? 1 : 0), o;
+ }
+ function Ry(r) {
+ return Wr(this, r).get(r);
+ }
+ function Ly(r) {
+ return Wr(this, r).has(r);
+ }
+ function Py(r, o) {
+ var l = Wr(this, r),
+ w = l.size;
+ return l.set(r, o), (this.size += l.size == w ? 0 : 1), this;
+ }
+ jt.prototype.clear = Iy;
+ jt.prototype.delete = Ey;
+ jt.prototype.get = Ry;
+ jt.prototype.has = Ly;
+ jt.prototype.set = Py;
+ function kt(r) {
+ var o = (this.__data__ = new it(r));
+ this.size = o.size;
+ }
+ function My() {
+ (this.__data__ = new it()), (this.size = 0);
+ }
+ function Fy(r) {
+ var o = this.__data__,
+ l = o.delete(r);
+ return (this.size = o.size), l;
+ }
+ function Dy(r) {
+ return this.__data__.get(r);
+ }
+ function qy(r) {
+ return this.__data__.has(r);
+ }
+ function Wy(r, o) {
+ var l = this.__data__;
+ if (l instanceof it) {
+ var w = l.__data__;
+ if (!ml || w.length < Sw - 1)
+ return w.push([r, o]), (this.size = ++l.size), this;
+ l = this.__data__ = new jt(w);
+ }
+ return l.set(r, o), (this.size = l.size), this;
+ }
+ kt.prototype.clear = My;
+ kt.prototype.delete = Fy;
+ kt.prototype.get = Dy;
+ kt.prototype.has = qy;
+ kt.prototype.set = Wy;
+ function Uy(r, o) {
+ var l = xu(r),
+ w = !l && vu(r),
+ m = !l && !w && Ol(r),
+ D = !l && !w && !m && El(r),
+ N = l || w || m || D,
+ q = N ? uy(r.length, String) : [],
+ z = q.length;
+ for (var j in r)
+ (o || rt.call(r, j)) &&
+ !(
+ N &&
+ (j == \\"length\\" ||
+ (m && (j == \\"offset\\" || j == \\"parent\\")) ||
+ (D && (j == \\"buffer\\" || j == \\"byteLength\\" || j == \\"byteOffset\\")) ||
+ Sl(j, z))
+ ) &&
+ q.push(j);
+ return q;
+ }
+ function _u(r, o, l) {
+ ((l !== void 0 && !Ur(r[o], l)) || (l === void 0 && !(o in r))) &&
+ wu(r, o, l);
+ }
+ function By(r, o, l) {
+ var w = r[o];
+ (!(rt.call(r, o) && Ur(w, l)) || (l === void 0 && !(o in r))) &&
+ wu(r, o, l);
+ }
+ function Dr(r, o) {
+ for (var l = r.length; l--; ) if (Ur(r[l][0], o)) return l;
+ return -1;
+ }
+ function wu(r, o, l) {
+ o == \\"__proto__\\" && Pr
+ ? Pr(r, o, { configurable: !0, enumerable: !0, value: l, writable: !0 })
+ : (r[o] = l);
+ }
+ var Ny = ky();
+ function qr(r) {
+ return r == null
+ ? r === void 0
+ ? Gw
+ : qw
+ : It && It in Object(r)
+ ? nA(r)
+ : fA(r);
+ }
+ function hl(r) {
+ return Pe(r) && qr(r) == _l;
+ }
+ function Gy(r) {
+ if (!Rt(r) || iA(r)) return !1;
+ var o = bu(r) ? hy : ty;
+ return o.test(lA(r));
+ }
+ function Hy(r) {
+ return Pe(r) && Il(r.length) && !!X[qr(r)];
+ }
+ function zy(r) {
+ if (!Rt(r)) return uA(r);
+ var o = Cl(r),
+ l = [];
+ for (var w in r) (w == \\"constructor\\" && (o || !rt.call(r, w))) || l.push(w);
+ return l;
+ }
+ function Tl(r, o, l, w, m) {
+ r !== o &&
+ Ny(
+ o,
+ function (D, N) {
+ if ((m || (m = new kt()), Rt(D))) $y(r, o, N, l, Tl, w, m);
+ else {
+ var q = w ? w(du(r, N), D, N + \\"\\", r, o, m) : void 0;
+ q === void 0 && (q = D), _u(r, N, q);
+ }
+ },
+ Rl
+ );
+ }
+ function $y(r, o, l, w, m, D, N) {
+ var q = du(r, l),
+ z = du(o, l),
+ j = N.get(z);
+ if (j) {
+ _u(r, l, j);
+ return;
+ }
+ var an = D ? D(q, z, l + \\"\\", r, o, N) : void 0,
+ Tn = an === void 0;
+ if (Tn) {
+ var Bn = xu(z),
+ ut = !Bn && Ol(z),
+ ln = !Bn && !ut && El(z);
+ (an = z),
+ Bn || ut || ln
+ ? xu(q)
+ ? (an = q)
+ : cA(q)
+ ? (an = Qy(q))
+ : ut
+ ? ((Tn = !1), (an = Yy(z, !0)))
+ : ln
+ ? ((Tn = !1), (an = Jy(z, !0)))
+ : (an = [])
+ : hA(z) || vu(z)
+ ? ((an = q), vu(q) ? (an = pA(q)) : (!Rt(q) || bu(q)) && (an = tA(z)))
+ : (Tn = !1);
+ }
+ Tn && (N.set(z, an), m(an, z, w, D, N), N.delete(z)), _u(r, l, an);
+ }
+ function Ky(r, o) {
+ return oA(aA(r, o, Ll), r + \\"\\");
+ }
+ var Zy = Pr
+ ? function (r, o) {
+ return Pr(r, \\"toString\\", {
+ configurable: !0,
+ enumerable: !1,
+ value: _A(o),
+ writable: !0,
+ });
+ }
+ : Ll;
+ function Yy(r, o) {
+ if (o) return r.slice();
+ var l = r.length,
+ w = sl ? sl(l) : new r.constructor(l);
+ return r.copy(w), w;
+ }
+ function Xy(r) {
+ var o = new r.constructor(r.byteLength);
+ return new ol(o).set(new ol(r)), o;
+ }
+ function Jy(r, o) {
+ var l = o ? Xy(r.buffer) : r.buffer;
+ return new r.constructor(l, r.byteOffset, r.length);
+ }
+ function Qy(r, o) {
+ var l = -1,
+ w = r.length;
+ for (o || (o = Array(w)); ++l < w; ) o[l] = r[l];
+ return o;
+ }
+ function Vy(r, o, l, w) {
+ var m = !l;
+ l || (l = {});
+ for (var D = -1, N = o.length; ++D < N; ) {
+ var q = o[D],
+ z = w ? w(l[q], r[q], q, l, r) : void 0;
+ z === void 0 && (z = r[q]), m ? wu(l, q, z) : By(l, q, z);
+ }
+ return l;
+ }
+ function jy(r) {
+ return Ky(function (o, l) {
+ var w = -1,
+ m = l.length,
+ D = m > 1 ? l[m - 1] : void 0,
+ N = m > 2 ? l[2] : void 0;
+ for (
+ D = r.length > 3 && typeof D == \\"function\\" ? (m--, D) : void 0,
+ N && eA(l[0], l[1], N) && ((D = m < 3 ? void 0 : D), (m = 1)),
+ o = Object(o);
+ ++w < m;
+
+ ) {
+ var q = l[w];
+ q && r(o, q, w, D);
+ }
+ return o;
+ });
+ }
+ function ky(r) {
+ return function (o, l, w) {
+ for (var m = -1, D = Object(o), N = w(o), q = N.length; q--; ) {
+ var z = N[r ? q : ++m];
+ if (l(D[z], z, D) === !1) break;
+ }
+ return o;
+ };
+ }
+ function Wr(r, o) {
+ var l = r.__data__;
+ return rA(o) ? l[typeof o == \\"string\\" ? \\"string\\" : \\"hash\\"] : l.map;
+ }
+ function yu(r, o) {
+ var l = ay(r, o);
+ return Gy(l) ? l : void 0;
+ }
+ function nA(r) {
+ var o = rt.call(r, It),
+ l = r[It];
+ try {
+ r[It] = void 0;
+ var w = !0;
+ } catch {}
+ var m = Al.call(r);
+ return w && (o ? (r[It] = l) : delete r[It]), m;
+ }
+ function tA(r) {
+ return typeof r.constructor == \\"function\\" && !Cl(r) ? vy(bl(r)) : {};
+ }
+ function Sl(r, o) {
+ var l = typeof r;
+ return (
+ (o = o ?? gl),
+ !!o &&
+ (l == \\"number\\" || (l != \\"symbol\\" && ey.test(r))) &&
+ r > -1 &&
+ r % 1 == 0 &&
+ r < o
+ );
+ }
+ function eA(r, o, l) {
+ if (!Rt(l)) return !1;
+ var w = typeof o;
+ return (w == \\"number\\" ? Au(l) && Sl(o, l.length) : w == \\"string\\" && o in l)
+ ? Ur(l[o], r)
+ : !1;
+ }
+ function rA(r) {
+ var o = typeof r;
+ return o == \\"string\\" || o == \\"number\\" || o == \\"symbol\\" || o == \\"boolean\\"
+ ? r !== \\"__proto__\\"
+ : r === null;
+ }
+ function iA(r) {
+ return !!fl && fl in r;
+ }
+ function Cl(r) {
+ var o = r && r.constructor,
+ l = (typeof o == \\"function\\" && o.prototype) || Mr;
+ return r === l;
+ }
+ function uA(r) {
+ var o = [];
+ if (r != null) for (var l in Object(r)) o.push(l);
+ return o;
+ }
+ function fA(r) {
+ return Al.call(r);
+ }
+ function aA(r, o, l) {
+ return (
+ (o = cl(o === void 0 ? r.length - 1 : o, 0)),
+ function () {
+ for (
+ var w = arguments, m = -1, D = cl(w.length - o, 0), N = Array(D);
+ ++m < D;
+
+ )
+ N[m] = w[o + m];
+ m = -1;
+ for (var q = Array(o + 1); ++m < o; ) q[m] = w[m];
+ return (q[o] = l(N)), iy(r, this, q);
+ }
+ );
+ }
+ function du(r, o) {
+ if (!(o === \\"constructor\\" && typeof r[o] == \\"function\\") && o != \\"__proto__\\")
+ return r[o];
+ }
+ var oA = sA(Zy);
+ function sA(r) {
+ var o = 0,
+ l = 0;
+ return function () {
+ var w = dy(),
+ m = Ow - (w - l);
+ if (((l = w), m > 0)) {
+ if (++o >= Cw) return arguments[0];
+ } else o = 0;
+ return r.apply(void 0, arguments);
+ };
+ }
+ function lA(r) {
+ if (r != null) {
+ try {
+ return Fr.call(r);
+ } catch {}
+ try {
+ return r + \\"\\";
+ } catch {}
+ }
+ return \\"\\";
+ }
+ function Ur(r, o) {
+ return r === o || (r !== r && o !== o);
+ }
+ var vu = hl(
+ (function () {
+ return arguments;
+ })()
+ )
+ ? hl
+ : function (r) {
+ return Pe(r) && rt.call(r, \\"callee\\") && !py.call(r, \\"callee\\");
+ },
+ xu = Array.isArray;
+ function Au(r) {
+ return r != null && Il(r.length) && !bu(r);
+ }
+ function cA(r) {
+ return Pe(r) && Au(r);
+ }
+ var Ol = _y || dA;
+ function bu(r) {
+ if (!Rt(r)) return !1;
+ var o = qr(r);
+ return o == dl || o == Mw || o == Ew || o == Ww;
+ }
+ function Il(r) {
+ return typeof r == \\"number\\" && r > -1 && r % 1 == 0 && r <= gl;
+ }
+ function Rt(r) {
+ var o = typeof r;
+ return r != null && (o == \\"object\\" || o == \\"function\\");
+ }
+ function Pe(r) {
+ return r != null && typeof r == \\"object\\";
+ }
+ function hA(r) {
+ if (!Pe(r) || qr(r) != vl) return !1;
+ var o = bl(r);
+ if (o === null) return !0;
+ var l = rt.call(o, \\"constructor\\") && o.constructor;
+ return typeof l == \\"function\\" && l instanceof l && Fr.call(l) == cy;
+ }
+ var El = ul ? fy(ul) : Hy;
+ function pA(r) {
+ return Vy(r, Rl(r));
+ }
+ function Rl(r) {
+ return Au(r) ? Uy(r, !0) : zy(r);
+ }
+ var gA = jy(function (r, o, l) {
+ Tl(r, o, l);
+ });
+ function _A(r) {
+ return function () {
+ return r;
+ };
+ }
+ function Ll(r) {
+ return r;
+ }
+ function dA() {
+ return !1;
+ }
+ Vt.exports = gA;
+});
+var Ml = S((ne, Me) => {
+ x();
+ (function () {
+ var r,
+ o = \\"4.17.21\\",
+ l = 200,
+ w = \\"Unsupported core-js use. Try https://npms.io/search?q=ponyfill.\\",
+ m = \\"Expected a function\\",
+ D = \\"Invalid \`variable\` option passed into \`_.template\`\\",
+ N = \\"__lodash_hash_undefined__\\",
+ q = 500,
+ z = \\"__lodash_placeholder__\\",
+ j = 1,
+ an = 2,
+ Tn = 4,
+ Bn = 1,
+ ut = 2,
+ ln = 1,
+ vt = 2,
+ Tu = 4,
+ Nn = 8,
+ Lt = 16,
+ Gn = 32,
+ Pt = 64,
+ Zn = 128,
+ te = 256,
+ Br = 512,
+ Wl = 30,
+ Ul = \\"...\\",
+ Bl = 800,
+ Nl = 16,
+ Su = 1,
+ Gl = 2,
+ Hl = 3,
+ xt = 1 / 0,
+ ft = 9007199254740991,
+ zl = 17976931348623157e292,
+ Fe = 0 / 0,
+ Hn = 4294967295,
+ $l = Hn - 1,
+ Kl = Hn >>> 1,
+ Zl = [
+ [\\"ary\\", Zn],
+ [\\"bind\\", ln],
+ [\\"bindKey\\", vt],
+ [\\"curry\\", Nn],
+ [\\"curryRight\\", Lt],
+ [\\"flip\\", Br],
+ [\\"partial\\", Gn],
+ [\\"partialRight\\", Pt],
+ [\\"rearg\\", te],
+ ],
+ Mt = \\"[object Arguments]\\",
+ De = \\"[object Array]\\",
+ Yl = \\"[object AsyncFunction]\\",
+ ee = \\"[object Boolean]\\",
+ re = \\"[object Date]\\",
+ Xl = \\"[object DOMException]\\",
+ qe = \\"[object Error]\\",
+ We = \\"[object Function]\\",
+ Cu = \\"[object GeneratorFunction]\\",
+ Mn = \\"[object Map]\\",
+ ie = \\"[object Number]\\",
+ Jl = \\"[object Null]\\",
+ Yn = \\"[object Object]\\",
+ Ou = \\"[object Promise]\\",
+ Ql = \\"[object Proxy]\\",
+ ue = \\"[object RegExp]\\",
+ Fn = \\"[object Set]\\",
+ fe = \\"[object String]\\",
+ Ue = \\"[object Symbol]\\",
+ Vl = \\"[object Undefined]\\",
+ ae = \\"[object WeakMap]\\",
+ jl = \\"[object WeakSet]\\",
+ oe = \\"[object ArrayBuffer]\\",
+ Ft = \\"[object DataView]\\",
+ Nr = \\"[object Float32Array]\\",
+ Gr = \\"[object Float64Array]\\",
+ Hr = \\"[object Int8Array]\\",
+ zr = \\"[object Int16Array]\\",
+ $r = \\"[object Int32Array]\\",
+ Kr = \\"[object Uint8Array]\\",
+ Zr = \\"[object Uint8ClampedArray]\\",
+ Yr = \\"[object Uint16Array]\\",
+ Xr = \\"[object Uint32Array]\\",
+ kl = /\\\\b__p \\\\+= '';/g,
+ nc = /\\\\b(__p \\\\+=) '' \\\\+/g,
+ tc = /(__e\\\\(.*?\\\\)|\\\\b__t\\\\)) \\\\+\\\\n'';/g,
+ Iu = /&(?:amp|lt|gt|quot|#39);/g,
+ Eu = /[&<>\\"']/g,
+ ec = RegExp(Iu.source),
+ rc = RegExp(Eu.source),
+ ic = /<%-([\\\\s\\\\S]+?)%>/g,
+ uc = /<%([\\\\s\\\\S]+?)%>/g,
+ Ru = /<%=([\\\\s\\\\S]+?)%>/g,
+ fc = /\\\\.|\\\\[(?:[^[\\\\]]*|([\\"'])(?:(?!\\\\1)[^\\\\\\\\]|\\\\\\\\.)*?\\\\1)\\\\]/,
+ ac = /^\\\\w*$/,
+ oc =
+ /[^.[\\\\]]+|\\\\[(?:(-?\\\\d+(?:\\\\.\\\\d+)?)|([\\"'])((?:(?!\\\\2)[^\\\\\\\\]|\\\\\\\\.)*?)\\\\2)\\\\]|(?=(?:\\\\.|\\\\[\\\\])(?:\\\\.|\\\\[\\\\]|$))/g,
+ Jr = /[\\\\\\\\^$.*+?()[\\\\]{}|]/g,
+ sc = RegExp(Jr.source),
+ Qr = /^\\\\s+/,
+ lc = /\\\\s/,
+ cc = /\\\\{(?:\\\\n\\\\/\\\\* \\\\[wrapped with .+\\\\] \\\\*\\\\/)?\\\\n?/,
+ hc = /\\\\{\\\\n\\\\/\\\\* \\\\[wrapped with (.+)\\\\] \\\\*/,
+ pc = /,? & /,
+ gc = /[^\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\x7f]+/g,
+ _c = /[()=,{}\\\\[\\\\]\\\\/\\\\s]/,
+ dc = /\\\\\\\\(\\\\\\\\)?/g,
+ vc = /\\\\$\\\\{([^\\\\\\\\}]*(?:\\\\\\\\.[^\\\\\\\\}]*)*)\\\\}/g,
+ Lu = /\\\\w*$/,
+ xc = /^[-+]0x[0-9a-f]+$/i,
+ wc = /^0b[01]+$/i,
+ yc = /^\\\\[object .+?Constructor\\\\]$/,
+ Ac = /^0o[0-7]+$/i,
+ bc = /^(?:0|[1-9]\\\\d*)$/,
+ mc = /[\\\\xc0-\\\\xd6\\\\xd8-\\\\xf6\\\\xf8-\\\\xff\\\\u0100-\\\\u017f]/g,
+ Be = /($^)/,
+ Tc = /['\\\\n\\\\r\\\\u2028\\\\u2029\\\\\\\\]/g,
+ Ne = \\"\\\\\\\\ud800-\\\\\\\\udfff\\",
+ Sc = \\"\\\\\\\\u0300-\\\\\\\\u036f\\",
+ Cc = \\"\\\\\\\\ufe20-\\\\\\\\ufe2f\\",
+ Oc = \\"\\\\\\\\u20d0-\\\\\\\\u20ff\\",
+ Pu = Sc + Cc + Oc,
+ Mu = \\"\\\\\\\\u2700-\\\\\\\\u27bf\\",
+ Fu = \\"a-z\\\\\\\\xdf-\\\\\\\\xf6\\\\\\\\xf8-\\\\\\\\xff\\",
+ Ic = \\"\\\\\\\\xac\\\\\\\\xb1\\\\\\\\xd7\\\\\\\\xf7\\",
+ Ec = \\"\\\\\\\\x00-\\\\\\\\x2f\\\\\\\\x3a-\\\\\\\\x40\\\\\\\\x5b-\\\\\\\\x60\\\\\\\\x7b-\\\\\\\\xbf\\",
+ Rc = \\"\\\\\\\\u2000-\\\\\\\\u206f\\",
+ Lc =
+ \\" \\\\\\\\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\\",
+ Du = \\"A-Z\\\\\\\\xc0-\\\\\\\\xd6\\\\\\\\xd8-\\\\\\\\xde\\",
+ qu = \\"\\\\\\\\ufe0e\\\\\\\\ufe0f\\",
+ Wu = Ic + Ec + Rc + Lc,
+ Vr = \\"['\\\\u2019]\\",
+ Pc = \\"[\\" + Ne + \\"]\\",
+ Uu = \\"[\\" + Wu + \\"]\\",
+ Ge = \\"[\\" + Pu + \\"]\\",
+ Bu = \\"\\\\\\\\d+\\",
+ Mc = \\"[\\" + Mu + \\"]\\",
+ Nu = \\"[\\" + Fu + \\"]\\",
+ Gu = \\"[^\\" + Ne + Wu + Bu + Mu + Fu + Du + \\"]\\",
+ jr = \\"\\\\\\\\ud83c[\\\\\\\\udffb-\\\\\\\\udfff]\\",
+ Fc = \\"(?:\\" + Ge + \\"|\\" + jr + \\")\\",
+ Hu = \\"[^\\" + Ne + \\"]\\",
+ kr = \\"(?:\\\\\\\\ud83c[\\\\\\\\udde6-\\\\\\\\uddff]){2}\\",
+ ni = \\"[\\\\\\\\ud800-\\\\\\\\udbff][\\\\\\\\udc00-\\\\\\\\udfff]\\",
+ Dt = \\"[\\" + Du + \\"]\\",
+ zu = \\"\\\\\\\\u200d\\",
+ $u = \\"(?:\\" + Nu + \\"|\\" + Gu + \\")\\",
+ Dc = \\"(?:\\" + Dt + \\"|\\" + Gu + \\")\\",
+ Ku = \\"(?:\\" + Vr + \\"(?:d|ll|m|re|s|t|ve))?\\",
+ Zu = \\"(?:\\" + Vr + \\"(?:D|LL|M|RE|S|T|VE))?\\",
+ Yu = Fc + \\"?\\",
+ Xu = \\"[\\" + qu + \\"]?\\",
+ qc = \\"(?:\\" + zu + \\"(?:\\" + [Hu, kr, ni].join(\\"|\\") + \\")\\" + Xu + Yu + \\")*\\",
+ Wc = \\"\\\\\\\\d*(?:1st|2nd|3rd|(?![123])\\\\\\\\dth)(?=\\\\\\\\b|[A-Z_])\\",
+ Uc = \\"\\\\\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\\\\\dTH)(?=\\\\\\\\b|[a-z_])\\",
+ Ju = Xu + Yu + qc,
+ Bc = \\"(?:\\" + [Mc, kr, ni].join(\\"|\\") + \\")\\" + Ju,
+ Nc = \\"(?:\\" + [Hu + Ge + \\"?\\", Ge, kr, ni, Pc].join(\\"|\\") + \\")\\",
+ Gc = RegExp(Vr, \\"g\\"),
+ Hc = RegExp(Ge, \\"g\\"),
+ ti = RegExp(jr + \\"(?=\\" + jr + \\")|\\" + Nc + Ju, \\"g\\"),
+ zc = RegExp(
+ [
+ Dt + \\"?\\" + Nu + \\"+\\" + Ku + \\"(?=\\" + [Uu, Dt, \\"$\\"].join(\\"|\\") + \\")\\",
+ Dc + \\"+\\" + Zu + \\"(?=\\" + [Uu, Dt + $u, \\"$\\"].join(\\"|\\") + \\")\\",
+ Dt + \\"?\\" + $u + \\"+\\" + Ku,
+ Dt + \\"+\\" + Zu,
+ Uc,
+ Wc,
+ Bu,
+ Bc,
+ ].join(\\"|\\"),
+ \\"g\\"
+ ),
+ $c = RegExp(\\"[\\" + zu + Ne + Pu + qu + \\"]\\"),
+ Kc = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,
+ Zc = [
+ \\"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\\",
+ ],
+ Yc = -1,
+ Y = {};
+ (Y[Nr] =
+ Y[Gr] =
+ Y[Hr] =
+ Y[zr] =
+ Y[$r] =
+ Y[Kr] =
+ Y[Zr] =
+ Y[Yr] =
+ Y[Xr] =
+ !0),
+ (Y[Mt] =
+ Y[De] =
+ Y[oe] =
+ Y[ee] =
+ Y[Ft] =
+ Y[re] =
+ Y[qe] =
+ Y[We] =
+ Y[Mn] =
+ Y[ie] =
+ Y[Yn] =
+ Y[ue] =
+ Y[Fn] =
+ Y[fe] =
+ Y[ae] =
+ !1);
+ var Z = {};
+ (Z[Mt] =
+ Z[De] =
+ Z[oe] =
+ Z[Ft] =
+ Z[ee] =
+ Z[re] =
+ Z[Nr] =
+ Z[Gr] =
+ Z[Hr] =
+ Z[zr] =
+ Z[$r] =
+ Z[Mn] =
+ Z[ie] =
+ Z[Yn] =
+ Z[ue] =
+ Z[Fn] =
+ Z[fe] =
+ Z[Ue] =
+ Z[Kr] =
+ Z[Zr] =
+ Z[Yr] =
+ Z[Xr] =
+ !0),
+ (Z[qe] = Z[We] = Z[ae] = !1);
+ var Xc = {
+ À: \\"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\\",
+ Ā: \\"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\\",
+ },
+ Jc = {
+ \\"&\\": \\"&\\",
+ \\"<\\": \\"<\\",
+ \\">\\": \\">\\",
+ '\\"': \\""\\",
+ \\"'\\": \\"'\\",
+ },
+ Qc = {
+ \\"&\\": \\"&\\",
+ \\"<\\": \\"<\\",
+ \\">\\": \\">\\",
+ \\""\\": '\\"',
+ \\"'\\": \\"'\\",
+ },
+ Vc = {
+ \\"\\\\\\\\\\": \\"\\\\\\\\\\",
+ \\"'\\": \\"'\\",
+ \\"\\\\n\\": \\"n\\",
+ \\"\\\\r\\": \\"r\\",
+ \\"\\\\u2028\\": \\"u2028\\",
+ \\"\\\\u2029\\": \\"u2029\\",
+ },
+ jc = parseFloat,
+ kc = parseInt,
+ Qu =
+ typeof window == \\"object\\" &&
+ window &&
+ window.Object === Object &&
+ window,
+ nh = typeof self == \\"object\\" && self && self.Object === Object && self,
+ rn = Qu || nh || Function(\\"return this\\")(),
+ ei = typeof ne == \\"object\\" && ne && !ne.nodeType && ne,
+ wt = ei && typeof Me == \\"object\\" && Me && !Me.nodeType && Me,
+ Vu = wt && wt.exports === ei,
+ ri = Vu && Qu.process,
+ Sn = (function () {
+ try {
+ var h = wt && wt.require && wt.require(\\"util\\").types;
+ return h || (ri && ri.binding && ri.binding(\\"util\\"));
+ } catch {}
+ })(),
+ ju = Sn && Sn.isArrayBuffer,
+ ku = Sn && Sn.isDate,
+ nf = Sn && Sn.isMap,
+ tf = Sn && Sn.isRegExp,
+ ef = Sn && Sn.isSet,
+ rf = Sn && Sn.isTypedArray;
+ function xn(h, _, g) {
+ switch (g.length) {
+ case 0:
+ return h.call(_);
+ case 1:
+ return h.call(_, g[0]);
+ case 2:
+ return h.call(_, g[0], g[1]);
+ case 3:
+ return h.call(_, g[0], g[1], g[2]);
+ }
+ return h.apply(_, g);
+ }
+ function th(h, _, g, b) {
+ for (var R = -1, G = h == null ? 0 : h.length; ++R < G; ) {
+ var tn = h[R];
+ _(b, tn, g(tn), h);
+ }
+ return b;
+ }
+ function Cn(h, _) {
+ for (
+ var g = -1, b = h == null ? 0 : h.length;
+ ++g < b && _(h[g], g, h) !== !1;
+
+ );
+ return h;
+ }
+ function eh(h, _) {
+ for (var g = h == null ? 0 : h.length; g-- && _(h[g], g, h) !== !1; );
+ return h;
+ }
+ function uf(h, _) {
+ for (var g = -1, b = h == null ? 0 : h.length; ++g < b; )
+ if (!_(h[g], g, h)) return !1;
+ return !0;
+ }
+ function at(h, _) {
+ for (var g = -1, b = h == null ? 0 : h.length, R = 0, G = []; ++g < b; ) {
+ var tn = h[g];
+ _(tn, g, h) && (G[R++] = tn);
+ }
+ return G;
+ }
+ function He(h, _) {
+ var g = h == null ? 0 : h.length;
+ return !!g && qt(h, _, 0) > -1;
+ }
+ function ii(h, _, g) {
+ for (var b = -1, R = h == null ? 0 : h.length; ++b < R; )
+ if (g(_, h[b])) return !0;
+ return !1;
+ }
+ function J(h, _) {
+ for (var g = -1, b = h == null ? 0 : h.length, R = Array(b); ++g < b; )
+ R[g] = _(h[g], g, h);
+ return R;
+ }
+ function ot(h, _) {
+ for (var g = -1, b = _.length, R = h.length; ++g < b; ) h[R + g] = _[g];
+ return h;
+ }
+ function ui(h, _, g, b) {
+ var R = -1,
+ G = h == null ? 0 : h.length;
+ for (b && G && (g = h[++R]); ++R < G; ) g = _(g, h[R], R, h);
+ return g;
+ }
+ function rh(h, _, g, b) {
+ var R = h == null ? 0 : h.length;
+ for (b && R && (g = h[--R]); R--; ) g = _(g, h[R], R, h);
+ return g;
+ }
+ function fi(h, _) {
+ for (var g = -1, b = h == null ? 0 : h.length; ++g < b; )
+ if (_(h[g], g, h)) return !0;
+ return !1;
+ }
+ var ih = ai(\\"length\\");
+ function uh(h) {
+ return h.split(\\"\\");
+ }
+ function fh(h) {
+ return h.match(gc) || [];
+ }
+ function ff(h, _, g) {
+ var b;
+ return (
+ g(h, function (R, G, tn) {
+ if (_(R, G, tn)) return (b = G), !1;
+ }),
+ b
+ );
+ }
+ function ze(h, _, g, b) {
+ for (var R = h.length, G = g + (b ? 1 : -1); b ? G-- : ++G < R; )
+ if (_(h[G], G, h)) return G;
+ return -1;
+ }
+ function qt(h, _, g) {
+ return _ === _ ? xh(h, _, g) : ze(h, af, g);
+ }
+ function ah(h, _, g, b) {
+ for (var R = g - 1, G = h.length; ++R < G; ) if (b(h[R], _)) return R;
+ return -1;
+ }
+ function af(h) {
+ return h !== h;
+ }
+ function of(h, _) {
+ var g = h == null ? 0 : h.length;
+ return g ? si(h, _) / g : Fe;
+ }
+ function ai(h) {
+ return function (_) {
+ return _ == null ? r : _[h];
+ };
+ }
+ function oi(h) {
+ return function (_) {
+ return h == null ? r : h[_];
+ };
+ }
+ function sf(h, _, g, b, R) {
+ return (
+ R(h, function (G, tn, K) {
+ g = b ? ((b = !1), G) : _(g, G, tn, K);
+ }),
+ g
+ );
+ }
+ function oh(h, _) {
+ var g = h.length;
+ for (h.sort(_); g--; ) h[g] = h[g].value;
+ return h;
+ }
+ function si(h, _) {
+ for (var g, b = -1, R = h.length; ++b < R; ) {
+ var G = _(h[b]);
+ G !== r && (g = g === r ? G : g + G);
+ }
+ return g;
+ }
+ function li(h, _) {
+ for (var g = -1, b = Array(h); ++g < h; ) b[g] = _(g);
+ return b;
+ }
+ function sh(h, _) {
+ return J(_, function (g) {
+ return [g, h[g]];
+ });
+ }
+ function lf(h) {
+ return h && h.slice(0, gf(h) + 1).replace(Qr, \\"\\");
+ }
+ function wn(h) {
+ return function (_) {
+ return h(_);
+ };
+ }
+ function ci(h, _) {
+ return J(_, function (g) {
+ return h[g];
+ });
+ }
+ function se(h, _) {
+ return h.has(_);
+ }
+ function cf(h, _) {
+ for (var g = -1, b = h.length; ++g < b && qt(_, h[g], 0) > -1; );
+ return g;
+ }
+ function hf(h, _) {
+ for (var g = h.length; g-- && qt(_, h[g], 0) > -1; );
+ return g;
+ }
+ function lh(h, _) {
+ for (var g = h.length, b = 0; g--; ) h[g] === _ && ++b;
+ return b;
+ }
+ var ch = oi(Xc),
+ hh = oi(Jc);
+ function ph(h) {
+ return \\"\\\\\\\\\\" + Vc[h];
+ }
+ function gh(h, _) {
+ return h == null ? r : h[_];
+ }
+ function Wt(h) {
+ return $c.test(h);
+ }
+ function _h(h) {
+ return Kc.test(h);
+ }
+ function dh(h) {
+ for (var _, g = []; !(_ = h.next()).done; ) g.push(_.value);
+ return g;
+ }
+ function hi(h) {
+ var _ = -1,
+ g = Array(h.size);
+ return (
+ h.forEach(function (b, R) {
+ g[++_] = [R, b];
+ }),
+ g
+ );
+ }
+ function pf(h, _) {
+ return function (g) {
+ return h(_(g));
+ };
+ }
+ function st(h, _) {
+ for (var g = -1, b = h.length, R = 0, G = []; ++g < b; ) {
+ var tn = h[g];
+ (tn === _ || tn === z) && ((h[g] = z), (G[R++] = g));
+ }
+ return G;
+ }
+ function $e(h) {
+ var _ = -1,
+ g = Array(h.size);
+ return (
+ h.forEach(function (b) {
+ g[++_] = b;
+ }),
+ g
+ );
+ }
+ function vh(h) {
+ var _ = -1,
+ g = Array(h.size);
+ return (
+ h.forEach(function (b) {
+ g[++_] = [b, b];
+ }),
+ g
+ );
+ }
+ function xh(h, _, g) {
+ for (var b = g - 1, R = h.length; ++b < R; ) if (h[b] === _) return b;
+ return -1;
+ }
+ function wh(h, _, g) {
+ for (var b = g + 1; b--; ) if (h[b] === _) return b;
+ return b;
+ }
+ function Ut(h) {
+ return Wt(h) ? Ah(h) : ih(h);
+ }
+ function Dn(h) {
+ return Wt(h) ? bh(h) : uh(h);
+ }
+ function gf(h) {
+ for (var _ = h.length; _-- && lc.test(h.charAt(_)); );
+ return _;
+ }
+ var yh = oi(Qc);
+ function Ah(h) {
+ for (var _ = (ti.lastIndex = 0); ti.test(h); ) ++_;
+ return _;
+ }
+ function bh(h) {
+ return h.match(ti) || [];
+ }
+ function mh(h) {
+ return h.match(zc) || [];
+ }
+ var Th = function h(_) {
+ _ = _ == null ? rn : lt.defaults(rn.Object(), _, lt.pick(rn, Zc));
+ var g = _.Array,
+ b = _.Date,
+ R = _.Error,
+ G = _.Function,
+ tn = _.Math,
+ K = _.Object,
+ pi = _.RegExp,
+ Sh = _.String,
+ On = _.TypeError,
+ Ke = g.prototype,
+ Ch = G.prototype,
+ Bt = K.prototype,
+ Ze = _[\\"__core-js_shared__\\"],
+ Ye = Ch.toString,
+ $ = Bt.hasOwnProperty,
+ Oh = 0,
+ _f = (function () {
+ var n = /[^.]+$/.exec((Ze && Ze.keys && Ze.keys.IE_PROTO) || \\"\\");
+ return n ? \\"Symbol(src)_1.\\" + n : \\"\\";
+ })(),
+ Xe = Bt.toString,
+ Ih = Ye.call(K),
+ Eh = rn._,
+ Rh = pi(
+ \\"^\\" +
+ Ye.call($)
+ .replace(Jr, \\"\\\\\\\\$&\\")
+ .replace(
+ /hasOwnProperty|(function).*?(?=\\\\\\\\\\\\()| for .+?(?=\\\\\\\\\\\\])/g,
+ \\"$1.*?\\"
+ ) +
+ \\"$\\"
+ ),
+ Je = Vu ? _.Buffer : r,
+ ct = _.Symbol,
+ Qe = _.Uint8Array,
+ df = Je ? Je.allocUnsafe : r,
+ Ve = pf(K.getPrototypeOf, K),
+ vf = K.create,
+ xf = Bt.propertyIsEnumerable,
+ je = Ke.splice,
+ wf = ct ? ct.isConcatSpreadable : r,
+ le = ct ? ct.iterator : r,
+ yt = ct ? ct.toStringTag : r,
+ ke = (function () {
+ try {
+ var n = St(K, \\"defineProperty\\");
+ return n({}, \\"\\", {}), n;
+ } catch {}
+ })(),
+ Lh = _.clearTimeout !== rn.clearTimeout && _.clearTimeout,
+ Ph = b && b.now !== rn.Date.now && b.now,
+ Mh = _.setTimeout !== rn.setTimeout && _.setTimeout,
+ nr = tn.ceil,
+ tr = tn.floor,
+ gi = K.getOwnPropertySymbols,
+ Fh = Je ? Je.isBuffer : r,
+ yf = _.isFinite,
+ Dh = Ke.join,
+ qh = pf(K.keys, K),
+ en = tn.max,
+ on = tn.min,
+ Wh = b.now,
+ Uh = _.parseInt,
+ Af = tn.random,
+ Bh = Ke.reverse,
+ _i = St(_, \\"DataView\\"),
+ ce = St(_, \\"Map\\"),
+ di = St(_, \\"Promise\\"),
+ Nt = St(_, \\"Set\\"),
+ he = St(_, \\"WeakMap\\"),
+ pe = St(K, \\"create\\"),
+ er = he && new he(),
+ Gt = {},
+ Nh = Ct(_i),
+ Gh = Ct(ce),
+ Hh = Ct(di),
+ zh = Ct(Nt),
+ $h = Ct(he),
+ rr = ct ? ct.prototype : r,
+ ge = rr ? rr.valueOf : r,
+ bf = rr ? rr.toString : r;
+ function f(n) {
+ if (V(n) && !L(n) && !(n instanceof U)) {
+ if (n instanceof In) return n;
+ if ($.call(n, \\"__wrapped__\\")) return ma(n);
+ }
+ return new In(n);
+ }
+ var Ht = (function () {
+ function n() {}
+ return function (t) {
+ if (!Q(t)) return {};
+ if (vf) return vf(t);
+ n.prototype = t;
+ var e = new n();
+ return (n.prototype = r), e;
+ };
+ })();
+ function ir() {}
+ function In(n, t) {
+ (this.__wrapped__ = n),
+ (this.__actions__ = []),
+ (this.__chain__ = !!t),
+ (this.__index__ = 0),
+ (this.__values__ = r);
+ }
+ (f.templateSettings = {
+ escape: ic,
+ evaluate: uc,
+ interpolate: Ru,
+ variable: \\"\\",
+ imports: { _: f },
+ }),
+ (f.prototype = ir.prototype),
+ (f.prototype.constructor = f),
+ (In.prototype = Ht(ir.prototype)),
+ (In.prototype.constructor = In);
+ function U(n) {
+ (this.__wrapped__ = n),
+ (this.__actions__ = []),
+ (this.__dir__ = 1),
+ (this.__filtered__ = !1),
+ (this.__iteratees__ = []),
+ (this.__takeCount__ = Hn),
+ (this.__views__ = []);
+ }
+ function Kh() {
+ var n = new U(this.__wrapped__);
+ return (
+ (n.__actions__ = gn(this.__actions__)),
+ (n.__dir__ = this.__dir__),
+ (n.__filtered__ = this.__filtered__),
+ (n.__iteratees__ = gn(this.__iteratees__)),
+ (n.__takeCount__ = this.__takeCount__),
+ (n.__views__ = gn(this.__views__)),
+ n
+ );
+ }
+ function Zh() {
+ if (this.__filtered__) {
+ var n = new U(this);
+ (n.__dir__ = -1), (n.__filtered__ = !0);
+ } else (n = this.clone()), (n.__dir__ *= -1);
+ return n;
+ }
+ function Yh() {
+ var n = this.__wrapped__.value(),
+ t = this.__dir__,
+ e = L(n),
+ i = t < 0,
+ u = e ? n.length : 0,
+ a = ug(0, u, this.__views__),
+ s = a.start,
+ c = a.end,
+ p = c - s,
+ d = i ? c : s - 1,
+ v = this.__iteratees__,
+ y = v.length,
+ A = 0,
+ T = on(p, this.__takeCount__);
+ if (!e || (!i && u == p && T == p)) return Zf(n, this.__actions__);
+ var I = [];
+ n: for (; p-- && A < T; ) {
+ d += t;
+ for (var M = -1, E = n[d]; ++M < y; ) {
+ var W = v[M],
+ B = W.iteratee,
+ bn = W.type,
+ pn = B(E);
+ if (bn == Gl) E = pn;
+ else if (!pn) {
+ if (bn == Su) continue n;
+ break n;
+ }
+ }
+ I[A++] = E;
+ }
+ return I;
+ }
+ (U.prototype = Ht(ir.prototype)), (U.prototype.constructor = U);
+ function At(n) {
+ var t = -1,
+ e = n == null ? 0 : n.length;
+ for (this.clear(); ++t < e; ) {
+ var i = n[t];
+ this.set(i[0], i[1]);
+ }
+ }
+ function Xh() {
+ (this.__data__ = pe ? pe(null) : {}), (this.size = 0);
+ }
+ function Jh(n) {
+ var t = this.has(n) && delete this.__data__[n];
+ return (this.size -= t ? 1 : 0), t;
+ }
+ function Qh(n) {
+ var t = this.__data__;
+ if (pe) {
+ var e = t[n];
+ return e === N ? r : e;
+ }
+ return $.call(t, n) ? t[n] : r;
+ }
+ function Vh(n) {
+ var t = this.__data__;
+ return pe ? t[n] !== r : $.call(t, n);
+ }
+ function jh(n, t) {
+ var e = this.__data__;
+ return (
+ (this.size += this.has(n) ? 0 : 1),
+ (e[n] = pe && t === r ? N : t),
+ this
+ );
+ }
+ (At.prototype.clear = Xh),
+ (At.prototype.delete = Jh),
+ (At.prototype.get = Qh),
+ (At.prototype.has = Vh),
+ (At.prototype.set = jh);
+ function Xn(n) {
+ var t = -1,
+ e = n == null ? 0 : n.length;
+ for (this.clear(); ++t < e; ) {
+ var i = n[t];
+ this.set(i[0], i[1]);
+ }
+ }
+ function kh() {
+ (this.__data__ = []), (this.size = 0);
+ }
+ function np(n) {
+ var t = this.__data__,
+ e = ur(t, n);
+ if (e < 0) return !1;
+ var i = t.length - 1;
+ return e == i ? t.pop() : je.call(t, e, 1), --this.size, !0;
+ }
+ function tp(n) {
+ var t = this.__data__,
+ e = ur(t, n);
+ return e < 0 ? r : t[e][1];
+ }
+ function ep(n) {
+ return ur(this.__data__, n) > -1;
+ }
+ function rp(n, t) {
+ var e = this.__data__,
+ i = ur(e, n);
+ return i < 0 ? (++this.size, e.push([n, t])) : (e[i][1] = t), this;
+ }
+ (Xn.prototype.clear = kh),
+ (Xn.prototype.delete = np),
+ (Xn.prototype.get = tp),
+ (Xn.prototype.has = ep),
+ (Xn.prototype.set = rp);
+ function Jn(n) {
+ var t = -1,
+ e = n == null ? 0 : n.length;
+ for (this.clear(); ++t < e; ) {
+ var i = n[t];
+ this.set(i[0], i[1]);
+ }
+ }
+ function ip() {
+ (this.size = 0),
+ (this.__data__ = {
+ hash: new At(),
+ map: new (ce || Xn)(),
+ string: new At(),
+ });
+ }
+ function up(n) {
+ var t = vr(this, n).delete(n);
+ return (this.size -= t ? 1 : 0), t;
+ }
+ function fp(n) {
+ return vr(this, n).get(n);
+ }
+ function ap(n) {
+ return vr(this, n).has(n);
+ }
+ function op(n, t) {
+ var e = vr(this, n),
+ i = e.size;
+ return e.set(n, t), (this.size += e.size == i ? 0 : 1), this;
+ }
+ (Jn.prototype.clear = ip),
+ (Jn.prototype.delete = up),
+ (Jn.prototype.get = fp),
+ (Jn.prototype.has = ap),
+ (Jn.prototype.set = op);
+ function bt(n) {
+ var t = -1,
+ e = n == null ? 0 : n.length;
+ for (this.__data__ = new Jn(); ++t < e; ) this.add(n[t]);
+ }
+ function sp(n) {
+ return this.__data__.set(n, N), this;
+ }
+ function lp(n) {
+ return this.__data__.has(n);
+ }
+ (bt.prototype.add = bt.prototype.push = sp), (bt.prototype.has = lp);
+ function qn(n) {
+ var t = (this.__data__ = new Xn(n));
+ this.size = t.size;
+ }
+ function cp() {
+ (this.__data__ = new Xn()), (this.size = 0);
+ }
+ function hp(n) {
+ var t = this.__data__,
+ e = t.delete(n);
+ return (this.size = t.size), e;
+ }
+ function pp(n) {
+ return this.__data__.get(n);
+ }
+ function gp(n) {
+ return this.__data__.has(n);
+ }
+ function _p(n, t) {
+ var e = this.__data__;
+ if (e instanceof Xn) {
+ var i = e.__data__;
+ if (!ce || i.length < l - 1)
+ return i.push([n, t]), (this.size = ++e.size), this;
+ e = this.__data__ = new Jn(i);
+ }
+ return e.set(n, t), (this.size = e.size), this;
+ }
+ (qn.prototype.clear = cp),
+ (qn.prototype.delete = hp),
+ (qn.prototype.get = pp),
+ (qn.prototype.has = gp),
+ (qn.prototype.set = _p);
+ function mf(n, t) {
+ var e = L(n),
+ i = !e && Ot(n),
+ u = !e && !i && dt(n),
+ a = !e && !i && !u && Zt(n),
+ s = e || i || u || a,
+ c = s ? li(n.length, Sh) : [],
+ p = c.length;
+ for (var d in n)
+ (t || $.call(n, d)) &&
+ !(
+ s &&
+ (d == \\"length\\" ||
+ (u && (d == \\"offset\\" || d == \\"parent\\")) ||
+ (a &&
+ (d == \\"buffer\\" ||
+ d == \\"byteLength\\" ||
+ d == \\"byteOffset\\")) ||
+ kn(d, p))
+ ) &&
+ c.push(d);
+ return c;
+ }
+ function Tf(n) {
+ var t = n.length;
+ return t ? n[Oi(0, t - 1)] : r;
+ }
+ function dp(n, t) {
+ return xr(gn(n), mt(t, 0, n.length));
+ }
+ function vp(n) {
+ return xr(gn(n));
+ }
+ function vi(n, t, e) {
+ ((e !== r && !Wn(n[t], e)) || (e === r && !(t in n))) && Qn(n, t, e);
+ }
+ function _e(n, t, e) {
+ var i = n[t];
+ (!($.call(n, t) && Wn(i, e)) || (e === r && !(t in n))) &&
+ Qn(n, t, e);
+ }
+ function ur(n, t) {
+ for (var e = n.length; e--; ) if (Wn(n[e][0], t)) return e;
+ return -1;
+ }
+ function xp(n, t, e, i) {
+ return (
+ ht(n, function (u, a, s) {
+ t(i, u, e(u), s);
+ }),
+ i
+ );
+ }
+ function Sf(n, t) {
+ return n && $n(t, un(t), n);
+ }
+ function wp(n, t) {
+ return n && $n(t, dn(t), n);
+ }
+ function Qn(n, t, e) {
+ t == \\"__proto__\\" && ke
+ ? ke(n, t, {
+ configurable: !0,
+ enumerable: !0,
+ value: e,
+ writable: !0,
+ })
+ : (n[t] = e);
+ }
+ function xi(n, t) {
+ for (var e = -1, i = t.length, u = g(i), a = n == null; ++e < i; )
+ u[e] = a ? r : ji(n, t[e]);
+ return u;
+ }
+ function mt(n, t, e) {
+ return (
+ n === n &&
+ (e !== r && (n = n <= e ? n : e),
+ t !== r && (n = n >= t ? n : t)),
+ n
+ );
+ }
+ function En(n, t, e, i, u, a) {
+ var s,
+ c = t & j,
+ p = t & an,
+ d = t & Tn;
+ if ((e && (s = u ? e(n, i, u, a) : e(n)), s !== r)) return s;
+ if (!Q(n)) return n;
+ var v = L(n);
+ if (v) {
+ if (((s = ag(n)), !c)) return gn(n, s);
+ } else {
+ var y = sn(n),
+ A = y == We || y == Cu;
+ if (dt(n)) return Jf(n, c);
+ if (y == Yn || y == Mt || (A && !u)) {
+ if (((s = p || A ? {} : ga(n)), !c))
+ return p ? Qp(n, wp(s, n)) : Jp(n, Sf(s, n));
+ } else {
+ if (!Z[y]) return u ? n : {};
+ s = og(n, y, c);
+ }
+ }
+ a || (a = new qn());
+ var T = a.get(n);
+ if (T) return T;
+ a.set(n, s),
+ za(n)
+ ? n.forEach(function (E) {
+ s.add(En(E, t, e, E, n, a));
+ })
+ : Ga(n) &&
+ n.forEach(function (E, W) {
+ s.set(W, En(E, t, e, W, n, a));
+ });
+ var I = d ? (p ? Ui : Wi) : p ? dn : un,
+ M = v ? r : I(n);
+ return (
+ Cn(M || n, function (E, W) {
+ M && ((W = E), (E = n[W])), _e(s, W, En(E, t, e, W, n, a));
+ }),
+ s
+ );
+ }
+ function yp(n) {
+ var t = un(n);
+ return function (e) {
+ return Cf(e, n, t);
+ };
+ }
+ function Cf(n, t, e) {
+ var i = e.length;
+ if (n == null) return !i;
+ for (n = K(n); i--; ) {
+ var u = e[i],
+ a = t[u],
+ s = n[u];
+ if ((s === r && !(u in n)) || !a(s)) return !1;
+ }
+ return !0;
+ }
+ function Of(n, t, e) {
+ if (typeof n != \\"function\\") throw new On(m);
+ return be(function () {
+ n.apply(r, e);
+ }, t);
+ }
+ function de(n, t, e, i) {
+ var u = -1,
+ a = He,
+ s = !0,
+ c = n.length,
+ p = [],
+ d = t.length;
+ if (!c) return p;
+ e && (t = J(t, wn(e))),
+ i
+ ? ((a = ii), (s = !1))
+ : t.length >= l && ((a = se), (s = !1), (t = new bt(t)));
+ n: for (; ++u < c; ) {
+ var v = n[u],
+ y = e == null ? v : e(v);
+ if (((v = i || v !== 0 ? v : 0), s && y === y)) {
+ for (var A = d; A--; ) if (t[A] === y) continue n;
+ p.push(v);
+ } else a(t, y, i) || p.push(v);
+ }
+ return p;
+ }
+ var ht = na(zn),
+ If = na(yi, !0);
+ function Ap(n, t) {
+ var e = !0;
+ return (
+ ht(n, function (i, u, a) {
+ return (e = !!t(i, u, a)), e;
+ }),
+ e
+ );
+ }
+ function fr(n, t, e) {
+ for (var i = -1, u = n.length; ++i < u; ) {
+ var a = n[i],
+ s = t(a);
+ if (s != null && (c === r ? s === s && !An(s) : e(s, c)))
+ var c = s,
+ p = a;
+ }
+ return p;
+ }
+ function bp(n, t, e, i) {
+ var u = n.length;
+ for (
+ e = P(e),
+ e < 0 && (e = -e > u ? 0 : u + e),
+ i = i === r || i > u ? u : P(i),
+ i < 0 && (i += u),
+ i = e > i ? 0 : Ka(i);
+ e < i;
+
+ )
+ n[e++] = t;
+ return n;
+ }
+ function Ef(n, t) {
+ var e = [];
+ return (
+ ht(n, function (i, u, a) {
+ t(i, u, a) && e.push(i);
+ }),
+ e
+ );
+ }
+ function fn(n, t, e, i, u) {
+ var a = -1,
+ s = n.length;
+ for (e || (e = lg), u || (u = []); ++a < s; ) {
+ var c = n[a];
+ t > 0 && e(c)
+ ? t > 1
+ ? fn(c, t - 1, e, i, u)
+ : ot(u, c)
+ : i || (u[u.length] = c);
+ }
+ return u;
+ }
+ var wi = ta(),
+ Rf = ta(!0);
+ function zn(n, t) {
+ return n && wi(n, t, un);
+ }
+ function yi(n, t) {
+ return n && Rf(n, t, un);
+ }
+ function ar(n, t) {
+ return at(t, function (e) {
+ return nt(n[e]);
+ });
+ }
+ function Tt(n, t) {
+ t = gt(t, n);
+ for (var e = 0, i = t.length; n != null && e < i; ) n = n[Kn(t[e++])];
+ return e && e == i ? n : r;
+ }
+ function Lf(n, t, e) {
+ var i = t(n);
+ return L(n) ? i : ot(i, e(n));
+ }
+ function cn(n) {
+ return n == null
+ ? n === r
+ ? Vl
+ : Jl
+ : yt && yt in K(n)
+ ? ig(n)
+ : vg(n);
+ }
+ function Ai(n, t) {
+ return n > t;
+ }
+ function mp(n, t) {
+ return n != null && $.call(n, t);
+ }
+ function Tp(n, t) {
+ return n != null && t in K(n);
+ }
+ function Sp(n, t, e) {
+ return n >= on(t, e) && n < en(t, e);
+ }
+ function bi(n, t, e) {
+ for (
+ var i = e ? ii : He,
+ u = n[0].length,
+ a = n.length,
+ s = a,
+ c = g(a),
+ p = 1 / 0,
+ d = [];
+ s--;
+
+ ) {
+ var v = n[s];
+ s && t && (v = J(v, wn(t))),
+ (p = on(v.length, p)),
+ (c[s] =
+ !e && (t || (u >= 120 && v.length >= 120))
+ ? new bt(s && v)
+ : r);
+ }
+ v = n[0];
+ var y = -1,
+ A = c[0];
+ n: for (; ++y < u && d.length < p; ) {
+ var T = v[y],
+ I = t ? t(T) : T;
+ if (((T = e || T !== 0 ? T : 0), !(A ? se(A, I) : i(d, I, e)))) {
+ for (s = a; --s; ) {
+ var M = c[s];
+ if (!(M ? se(M, I) : i(n[s], I, e))) continue n;
+ }
+ A && A.push(I), d.push(T);
+ }
+ }
+ return d;
+ }
+ function Cp(n, t, e, i) {
+ return (
+ zn(n, function (u, a, s) {
+ t(i, e(u), a, s);
+ }),
+ i
+ );
+ }
+ function ve(n, t, e) {
+ (t = gt(t, n)), (n = xa(n, t));
+ var i = n == null ? n : n[Kn(Ln(t))];
+ return i == null ? r : xn(i, n, e);
+ }
+ function Pf(n) {
+ return V(n) && cn(n) == Mt;
+ }
+ function Op(n) {
+ return V(n) && cn(n) == oe;
+ }
+ function Ip(n) {
+ return V(n) && cn(n) == re;
+ }
+ function xe(n, t, e, i, u) {
+ return n === t
+ ? !0
+ : n == null || t == null || (!V(n) && !V(t))
+ ? n !== n && t !== t
+ : Ep(n, t, e, i, xe, u);
+ }
+ function Ep(n, t, e, i, u, a) {
+ var s = L(n),
+ c = L(t),
+ p = s ? De : sn(n),
+ d = c ? De : sn(t);
+ (p = p == Mt ? Yn : p), (d = d == Mt ? Yn : d);
+ var v = p == Yn,
+ y = d == Yn,
+ A = p == d;
+ if (A && dt(n)) {
+ if (!dt(t)) return !1;
+ (s = !0), (v = !1);
+ }
+ if (A && !v)
+ return (
+ a || (a = new qn()),
+ s || Zt(n) ? ca(n, t, e, i, u, a) : eg(n, t, p, e, i, u, a)
+ );
+ if (!(e & Bn)) {
+ var T = v && $.call(n, \\"__wrapped__\\"),
+ I = y && $.call(t, \\"__wrapped__\\");
+ if (T || I) {
+ var M = T ? n.value() : n,
+ E = I ? t.value() : t;
+ return a || (a = new qn()), u(M, E, e, i, a);
+ }
+ }
+ return A ? (a || (a = new qn()), rg(n, t, e, i, u, a)) : !1;
+ }
+ function Rp(n) {
+ return V(n) && sn(n) == Mn;
+ }
+ function mi(n, t, e, i) {
+ var u = e.length,
+ a = u,
+ s = !i;
+ if (n == null) return !a;
+ for (n = K(n); u--; ) {
+ var c = e[u];
+ if (s && c[2] ? c[1] !== n[c[0]] : !(c[0] in n)) return !1;
+ }
+ for (; ++u < a; ) {
+ c = e[u];
+ var p = c[0],
+ d = n[p],
+ v = c[1];
+ if (s && c[2]) {
+ if (d === r && !(p in n)) return !1;
+ } else {
+ var y = new qn();
+ if (i) var A = i(d, v, p, n, t, y);
+ if (!(A === r ? xe(v, d, Bn | ut, i, y) : A)) return !1;
+ }
+ }
+ return !0;
+ }
+ function Mf(n) {
+ if (!Q(n) || hg(n)) return !1;
+ var t = nt(n) ? Rh : yc;
+ return t.test(Ct(n));
+ }
+ function Lp(n) {
+ return V(n) && cn(n) == ue;
+ }
+ function Pp(n) {
+ return V(n) && sn(n) == Fn;
+ }
+ function Mp(n) {
+ return V(n) && Tr(n.length) && !!Y[cn(n)];
+ }
+ function Ff(n) {
+ return typeof n == \\"function\\"
+ ? n
+ : n == null
+ ? vn
+ : typeof n == \\"object\\"
+ ? L(n)
+ ? Wf(n[0], n[1])
+ : qf(n)
+ : eo(n);
+ }
+ function Ti(n) {
+ if (!Ae(n)) return qh(n);
+ var t = [];
+ for (var e in K(n)) $.call(n, e) && e != \\"constructor\\" && t.push(e);
+ return t;
+ }
+ function Fp(n) {
+ if (!Q(n)) return dg(n);
+ var t = Ae(n),
+ e = [];
+ for (var i in n)
+ (i == \\"constructor\\" && (t || !$.call(n, i))) || e.push(i);
+ return e;
+ }
+ function Si(n, t) {
+ return n < t;
+ }
+ function Df(n, t) {
+ var e = -1,
+ i = _n(n) ? g(n.length) : [];
+ return (
+ ht(n, function (u, a, s) {
+ i[++e] = t(u, a, s);
+ }),
+ i
+ );
+ }
+ function qf(n) {
+ var t = Ni(n);
+ return t.length == 1 && t[0][2]
+ ? da(t[0][0], t[0][1])
+ : function (e) {
+ return e === n || mi(e, n, t);
+ };
+ }
+ function Wf(n, t) {
+ return Hi(n) && _a(t)
+ ? da(Kn(n), t)
+ : function (e) {
+ var i = ji(e, n);
+ return i === r && i === t ? ki(e, n) : xe(t, i, Bn | ut);
+ };
+ }
+ function or(n, t, e, i, u) {
+ n !== t &&
+ wi(
+ t,
+ function (a, s) {
+ if ((u || (u = new qn()), Q(a))) Dp(n, t, s, e, or, i, u);
+ else {
+ var c = i ? i($i(n, s), a, s + \\"\\", n, t, u) : r;
+ c === r && (c = a), vi(n, s, c);
+ }
+ },
+ dn
+ );
+ }
+ function Dp(n, t, e, i, u, a, s) {
+ var c = $i(n, e),
+ p = $i(t, e),
+ d = s.get(p);
+ if (d) {
+ vi(n, e, d);
+ return;
+ }
+ var v = a ? a(c, p, e + \\"\\", n, t, s) : r,
+ y = v === r;
+ if (y) {
+ var A = L(p),
+ T = !A && dt(p),
+ I = !A && !T && Zt(p);
+ (v = p),
+ A || T || I
+ ? L(c)
+ ? (v = c)
+ : k(c)
+ ? (v = gn(c))
+ : T
+ ? ((y = !1), (v = Jf(p, !0)))
+ : I
+ ? ((y = !1), (v = Qf(p, !0)))
+ : (v = [])
+ : me(p) || Ot(p)
+ ? ((v = c),
+ Ot(c) ? (v = Za(c)) : (!Q(c) || nt(c)) && (v = ga(p)))
+ : (y = !1);
+ }
+ y && (s.set(p, v), u(v, p, i, a, s), s.delete(p)), vi(n, e, v);
+ }
+ function Uf(n, t) {
+ var e = n.length;
+ if (!!e) return (t += t < 0 ? e : 0), kn(t, e) ? n[t] : r;
+ }
+ function Bf(n, t, e) {
+ t.length
+ ? (t = J(t, function (a) {
+ return L(a)
+ ? function (s) {
+ return Tt(s, a.length === 1 ? a[0] : a);
+ }
+ : a;
+ }))
+ : (t = [vn]);
+ var i = -1;
+ t = J(t, wn(O()));
+ var u = Df(n, function (a, s, c) {
+ var p = J(t, function (d) {
+ return d(a);
+ });
+ return { criteria: p, index: ++i, value: a };
+ });
+ return oh(u, function (a, s) {
+ return Xp(a, s, e);
+ });
+ }
+ function qp(n, t) {
+ return Nf(n, t, function (e, i) {
+ return ki(n, i);
+ });
+ }
+ function Nf(n, t, e) {
+ for (var i = -1, u = t.length, a = {}; ++i < u; ) {
+ var s = t[i],
+ c = Tt(n, s);
+ e(c, s) && we(a, gt(s, n), c);
+ }
+ return a;
+ }
+ function Wp(n) {
+ return function (t) {
+ return Tt(t, n);
+ };
+ }
+ function Ci(n, t, e, i) {
+ var u = i ? ah : qt,
+ a = -1,
+ s = t.length,
+ c = n;
+ for (n === t && (t = gn(t)), e && (c = J(n, wn(e))); ++a < s; )
+ for (
+ var p = 0, d = t[a], v = e ? e(d) : d;
+ (p = u(c, v, p, i)) > -1;
+
+ )
+ c !== n && je.call(c, p, 1), je.call(n, p, 1);
+ return n;
+ }
+ function Gf(n, t) {
+ for (var e = n ? t.length : 0, i = e - 1; e--; ) {
+ var u = t[e];
+ if (e == i || u !== a) {
+ var a = u;
+ kn(u) ? je.call(n, u, 1) : Ri(n, u);
+ }
+ }
+ return n;
+ }
+ function Oi(n, t) {
+ return n + tr(Af() * (t - n + 1));
+ }
+ function Up(n, t, e, i) {
+ for (var u = -1, a = en(nr((t - n) / (e || 1)), 0), s = g(a); a--; )
+ (s[i ? a : ++u] = n), (n += e);
+ return s;
+ }
+ function Ii(n, t) {
+ var e = \\"\\";
+ if (!n || t < 1 || t > ft) return e;
+ do t % 2 && (e += n), (t = tr(t / 2)), t && (n += n);
+ while (t);
+ return e;
+ }
+ function F(n, t) {
+ return Ki(va(n, t, vn), n + \\"\\");
+ }
+ function Bp(n) {
+ return Tf(Yt(n));
+ }
+ function Np(n, t) {
+ var e = Yt(n);
+ return xr(e, mt(t, 0, e.length));
+ }
+ function we(n, t, e, i) {
+ if (!Q(n)) return n;
+ t = gt(t, n);
+ for (
+ var u = -1, a = t.length, s = a - 1, c = n;
+ c != null && ++u < a;
+
+ ) {
+ var p = Kn(t[u]),
+ d = e;
+ if (p === \\"__proto__\\" || p === \\"constructor\\" || p === \\"prototype\\")
+ return n;
+ if (u != s) {
+ var v = c[p];
+ (d = i ? i(v, p, c) : r),
+ d === r && (d = Q(v) ? v : kn(t[u + 1]) ? [] : {});
+ }
+ _e(c, p, d), (c = c[p]);
+ }
+ return n;
+ }
+ var Hf = er
+ ? function (n, t) {
+ return er.set(n, t), n;
+ }
+ : vn,
+ Gp = ke
+ ? function (n, t) {
+ return ke(n, \\"toString\\", {
+ configurable: !0,
+ enumerable: !1,
+ value: tu(t),
+ writable: !0,
+ });
+ }
+ : vn;
+ function Hp(n) {
+ return xr(Yt(n));
+ }
+ function Rn(n, t, e) {
+ var i = -1,
+ u = n.length;
+ t < 0 && (t = -t > u ? 0 : u + t),
+ (e = e > u ? u : e),
+ e < 0 && (e += u),
+ (u = t > e ? 0 : (e - t) >>> 0),
+ (t >>>= 0);
+ for (var a = g(u); ++i < u; ) a[i] = n[i + t];
+ return a;
+ }
+ function zp(n, t) {
+ var e;
+ return (
+ ht(n, function (i, u, a) {
+ return (e = t(i, u, a)), !e;
+ }),
+ !!e
+ );
+ }
+ function sr(n, t, e) {
+ var i = 0,
+ u = n == null ? i : n.length;
+ if (typeof t == \\"number\\" && t === t && u <= Kl) {
+ for (; i < u; ) {
+ var a = (i + u) >>> 1,
+ s = n[a];
+ s !== null && !An(s) && (e ? s <= t : s < t)
+ ? (i = a + 1)
+ : (u = a);
+ }
+ return u;
+ }
+ return Ei(n, t, vn, e);
+ }
+ function Ei(n, t, e, i) {
+ var u = 0,
+ a = n == null ? 0 : n.length;
+ if (a === 0) return 0;
+ t = e(t);
+ for (
+ var s = t !== t, c = t === null, p = An(t), d = t === r;
+ u < a;
+
+ ) {
+ var v = tr((u + a) / 2),
+ y = e(n[v]),
+ A = y !== r,
+ T = y === null,
+ I = y === y,
+ M = An(y);
+ if (s) var E = i || I;
+ else
+ d
+ ? (E = I && (i || A))
+ : c
+ ? (E = I && A && (i || !T))
+ : p
+ ? (E = I && A && !T && (i || !M))
+ : T || M
+ ? (E = !1)
+ : (E = i ? y <= t : y < t);
+ E ? (u = v + 1) : (a = v);
+ }
+ return on(a, $l);
+ }
+ function zf(n, t) {
+ for (var e = -1, i = n.length, u = 0, a = []; ++e < i; ) {
+ var s = n[e],
+ c = t ? t(s) : s;
+ if (!e || !Wn(c, p)) {
+ var p = c;
+ a[u++] = s === 0 ? 0 : s;
+ }
+ }
+ return a;
+ }
+ function $f(n) {
+ return typeof n == \\"number\\" ? n : An(n) ? Fe : +n;
+ }
+ function yn(n) {
+ if (typeof n == \\"string\\") return n;
+ if (L(n)) return J(n, yn) + \\"\\";
+ if (An(n)) return bf ? bf.call(n) : \\"\\";
+ var t = n + \\"\\";
+ return t == \\"0\\" && 1 / n == -xt ? \\"-0\\" : t;
+ }
+ function pt(n, t, e) {
+ var i = -1,
+ u = He,
+ a = n.length,
+ s = !0,
+ c = [],
+ p = c;
+ if (e) (s = !1), (u = ii);
+ else if (a >= l) {
+ var d = t ? null : ng(n);
+ if (d) return $e(d);
+ (s = !1), (u = se), (p = new bt());
+ } else p = t ? [] : c;
+ n: for (; ++i < a; ) {
+ var v = n[i],
+ y = t ? t(v) : v;
+ if (((v = e || v !== 0 ? v : 0), s && y === y)) {
+ for (var A = p.length; A--; ) if (p[A] === y) continue n;
+ t && p.push(y), c.push(v);
+ } else u(p, y, e) || (p !== c && p.push(y), c.push(v));
+ }
+ return c;
+ }
+ function Ri(n, t) {
+ return (
+ (t = gt(t, n)), (n = xa(n, t)), n == null || delete n[Kn(Ln(t))]
+ );
+ }
+ function Kf(n, t, e, i) {
+ return we(n, t, e(Tt(n, t)), i);
+ }
+ function lr(n, t, e, i) {
+ for (
+ var u = n.length, a = i ? u : -1;
+ (i ? a-- : ++a < u) && t(n[a], a, n);
+
+ );
+ return e
+ ? Rn(n, i ? 0 : a, i ? a + 1 : u)
+ : Rn(n, i ? a + 1 : 0, i ? u : a);
+ }
+ function Zf(n, t) {
+ var e = n;
+ return (
+ e instanceof U && (e = e.value()),
+ ui(
+ t,
+ function (i, u) {
+ return u.func.apply(u.thisArg, ot([i], u.args));
+ },
+ e
+ )
+ );
+ }
+ function Li(n, t, e) {
+ var i = n.length;
+ if (i < 2) return i ? pt(n[0]) : [];
+ for (var u = -1, a = g(i); ++u < i; )
+ for (var s = n[u], c = -1; ++c < i; )
+ c != u && (a[u] = de(a[u] || s, n[c], t, e));
+ return pt(fn(a, 1), t, e);
+ }
+ function Yf(n, t, e) {
+ for (var i = -1, u = n.length, a = t.length, s = {}; ++i < u; ) {
+ var c = i < a ? t[i] : r;
+ e(s, n[i], c);
+ }
+ return s;
+ }
+ function Pi(n) {
+ return k(n) ? n : [];
+ }
+ function Mi(n) {
+ return typeof n == \\"function\\" ? n : vn;
+ }
+ function gt(n, t) {
+ return L(n) ? n : Hi(n, t) ? [n] : ba(H(n));
+ }
+ var $p = F;
+ function _t(n, t, e) {
+ var i = n.length;
+ return (e = e === r ? i : e), !t && e >= i ? n : Rn(n, t, e);
+ }
+ var Xf =
+ Lh ||
+ function (n) {
+ return rn.clearTimeout(n);
+ };
+ function Jf(n, t) {
+ if (t) return n.slice();
+ var e = n.length,
+ i = df ? df(e) : new n.constructor(e);
+ return n.copy(i), i;
+ }
+ function Fi(n) {
+ var t = new n.constructor(n.byteLength);
+ return new Qe(t).set(new Qe(n)), t;
+ }
+ function Kp(n, t) {
+ var e = t ? Fi(n.buffer) : n.buffer;
+ return new n.constructor(e, n.byteOffset, n.byteLength);
+ }
+ function Zp(n) {
+ var t = new n.constructor(n.source, Lu.exec(n));
+ return (t.lastIndex = n.lastIndex), t;
+ }
+ function Yp(n) {
+ return ge ? K(ge.call(n)) : {};
+ }
+ function Qf(n, t) {
+ var e = t ? Fi(n.buffer) : n.buffer;
+ return new n.constructor(e, n.byteOffset, n.length);
+ }
+ function Vf(n, t) {
+ if (n !== t) {
+ var e = n !== r,
+ i = n === null,
+ u = n === n,
+ a = An(n),
+ s = t !== r,
+ c = t === null,
+ p = t === t,
+ d = An(t);
+ if (
+ (!c && !d && !a && n > t) ||
+ (a && s && p && !c && !d) ||
+ (i && s && p) ||
+ (!e && p) ||
+ !u
+ )
+ return 1;
+ if (
+ (!i && !a && !d && n < t) ||
+ (d && e && u && !i && !a) ||
+ (c && e && u) ||
+ (!s && u) ||
+ !p
+ )
+ return -1;
+ }
+ return 0;
+ }
+ function Xp(n, t, e) {
+ for (
+ var i = -1,
+ u = n.criteria,
+ a = t.criteria,
+ s = u.length,
+ c = e.length;
+ ++i < s;
+
+ ) {
+ var p = Vf(u[i], a[i]);
+ if (p) {
+ if (i >= c) return p;
+ var d = e[i];
+ return p * (d == \\"desc\\" ? -1 : 1);
+ }
+ }
+ return n.index - t.index;
+ }
+ function jf(n, t, e, i) {
+ for (
+ var u = -1,
+ a = n.length,
+ s = e.length,
+ c = -1,
+ p = t.length,
+ d = en(a - s, 0),
+ v = g(p + d),
+ y = !i;
+ ++c < p;
+
+ )
+ v[c] = t[c];
+ for (; ++u < s; ) (y || u < a) && (v[e[u]] = n[u]);
+ for (; d--; ) v[c++] = n[u++];
+ return v;
+ }
+ function kf(n, t, e, i) {
+ for (
+ var u = -1,
+ a = n.length,
+ s = -1,
+ c = e.length,
+ p = -1,
+ d = t.length,
+ v = en(a - c, 0),
+ y = g(v + d),
+ A = !i;
+ ++u < v;
+
+ )
+ y[u] = n[u];
+ for (var T = u; ++p < d; ) y[T + p] = t[p];
+ for (; ++s < c; ) (A || u < a) && (y[T + e[s]] = n[u++]);
+ return y;
+ }
+ function gn(n, t) {
+ var e = -1,
+ i = n.length;
+ for (t || (t = g(i)); ++e < i; ) t[e] = n[e];
+ return t;
+ }
+ function $n(n, t, e, i) {
+ var u = !e;
+ e || (e = {});
+ for (var a = -1, s = t.length; ++a < s; ) {
+ var c = t[a],
+ p = i ? i(e[c], n[c], c, e, n) : r;
+ p === r && (p = n[c]), u ? Qn(e, c, p) : _e(e, c, p);
+ }
+ return e;
+ }
+ function Jp(n, t) {
+ return $n(n, Gi(n), t);
+ }
+ function Qp(n, t) {
+ return $n(n, ha(n), t);
+ }
+ function cr(n, t) {
+ return function (e, i) {
+ var u = L(e) ? th : xp,
+ a = t ? t() : {};
+ return u(e, n, O(i, 2), a);
+ };
+ }
+ function zt(n) {
+ return F(function (t, e) {
+ var i = -1,
+ u = e.length,
+ a = u > 1 ? e[u - 1] : r,
+ s = u > 2 ? e[2] : r;
+ for (
+ a = n.length > 3 && typeof a == \\"function\\" ? (u--, a) : r,
+ s && hn(e[0], e[1], s) && ((a = u < 3 ? r : a), (u = 1)),
+ t = K(t);
+ ++i < u;
+
+ ) {
+ var c = e[i];
+ c && n(t, c, i, a);
+ }
+ return t;
+ });
+ }
+ function na(n, t) {
+ return function (e, i) {
+ if (e == null) return e;
+ if (!_n(e)) return n(e, i);
+ for (
+ var u = e.length, a = t ? u : -1, s = K(e);
+ (t ? a-- : ++a < u) && i(s[a], a, s) !== !1;
+
+ );
+ return e;
+ };
+ }
+ function ta(n) {
+ return function (t, e, i) {
+ for (var u = -1, a = K(t), s = i(t), c = s.length; c--; ) {
+ var p = s[n ? c : ++u];
+ if (e(a[p], p, a) === !1) break;
+ }
+ return t;
+ };
+ }
+ function Vp(n, t, e) {
+ var i = t & ln,
+ u = ye(n);
+ function a() {
+ var s = this && this !== rn && this instanceof a ? u : n;
+ return s.apply(i ? e : this, arguments);
+ }
+ return a;
+ }
+ function ea(n) {
+ return function (t) {
+ t = H(t);
+ var e = Wt(t) ? Dn(t) : r,
+ i = e ? e[0] : t.charAt(0),
+ u = e ? _t(e, 1).join(\\"\\") : t.slice(1);
+ return i[n]() + u;
+ };
+ }
+ function $t(n) {
+ return function (t) {
+ return ui(no(ka(t).replace(Gc, \\"\\")), n, \\"\\");
+ };
+ }
+ function ye(n) {
+ return function () {
+ var t = arguments;
+ switch (t.length) {
+ case 0:
+ return new n();
+ case 1:
+ return new n(t[0]);
+ case 2:
+ return new n(t[0], t[1]);
+ case 3:
+ return new n(t[0], t[1], t[2]);
+ case 4:
+ return new n(t[0], t[1], t[2], t[3]);
+ case 5:
+ return new n(t[0], t[1], t[2], t[3], t[4]);
+ case 6:
+ return new n(t[0], t[1], t[2], t[3], t[4], t[5]);
+ case 7:
+ return new n(t[0], t[1], t[2], t[3], t[4], t[5], t[6]);
+ }
+ var e = Ht(n.prototype),
+ i = n.apply(e, t);
+ return Q(i) ? i : e;
+ };
+ }
+ function jp(n, t, e) {
+ var i = ye(n);
+ function u() {
+ for (var a = arguments.length, s = g(a), c = a, p = Kt(u); c--; )
+ s[c] = arguments[c];
+ var d = a < 3 && s[0] !== p && s[a - 1] !== p ? [] : st(s, p);
+ if (((a -= d.length), a < e))
+ return aa(n, t, hr, u.placeholder, r, s, d, r, r, e - a);
+ var v = this && this !== rn && this instanceof u ? i : n;
+ return xn(v, this, s);
+ }
+ return u;
+ }
+ function ra(n) {
+ return function (t, e, i) {
+ var u = K(t);
+ if (!_n(t)) {
+ var a = O(e, 3);
+ (t = un(t)),
+ (e = function (c) {
+ return a(u[c], c, u);
+ });
+ }
+ var s = n(t, e, i);
+ return s > -1 ? u[a ? t[s] : s] : r;
+ };
+ }
+ function ia(n) {
+ return jn(function (t) {
+ var e = t.length,
+ i = e,
+ u = In.prototype.thru;
+ for (n && t.reverse(); i--; ) {
+ var a = t[i];
+ if (typeof a != \\"function\\") throw new On(m);
+ if (u && !s && dr(a) == \\"wrapper\\") var s = new In([], !0);
+ }
+ for (i = s ? i : e; ++i < e; ) {
+ a = t[i];
+ var c = dr(a),
+ p = c == \\"wrapper\\" ? Bi(a) : r;
+ p &&
+ zi(p[0]) &&
+ p[1] == (Zn | Nn | Gn | te) &&
+ !p[4].length &&
+ p[9] == 1
+ ? (s = s[dr(p[0])].apply(s, p[3]))
+ : (s = a.length == 1 && zi(a) ? s[c]() : s.thru(a));
+ }
+ return function () {
+ var d = arguments,
+ v = d[0];
+ if (s && d.length == 1 && L(v)) return s.plant(v).value();
+ for (var y = 0, A = e ? t[y].apply(this, d) : v; ++y < e; )
+ A = t[y].call(this, A);
+ return A;
+ };
+ });
+ }
+ function hr(n, t, e, i, u, a, s, c, p, d) {
+ var v = t & Zn,
+ y = t & ln,
+ A = t & vt,
+ T = t & (Nn | Lt),
+ I = t & Br,
+ M = A ? r : ye(n);
+ function E() {
+ for (var W = arguments.length, B = g(W), bn = W; bn--; )
+ B[bn] = arguments[bn];
+ if (T)
+ var pn = Kt(E),
+ mn = lh(B, pn);
+ if (
+ (i && (B = jf(B, i, u, T)),
+ a && (B = kf(B, a, s, T)),
+ (W -= mn),
+ T && W < d)
+ ) {
+ var nn = st(B, pn);
+ return aa(n, t, hr, E.placeholder, e, B, nn, c, p, d - W);
+ }
+ var Un = y ? e : this,
+ et = A ? Un[n] : n;
+ return (
+ (W = B.length),
+ c ? (B = xg(B, c)) : I && W > 1 && B.reverse(),
+ v && p < W && (B.length = p),
+ this && this !== rn && this instanceof E && (et = M || ye(et)),
+ et.apply(Un, B)
+ );
+ }
+ return E;
+ }
+ function ua(n, t) {
+ return function (e, i) {
+ return Cp(e, n, t(i), {});
+ };
+ }
+ function pr(n, t) {
+ return function (e, i) {
+ var u;
+ if (e === r && i === r) return t;
+ if ((e !== r && (u = e), i !== r)) {
+ if (u === r) return i;
+ typeof e == \\"string\\" || typeof i == \\"string\\"
+ ? ((e = yn(e)), (i = yn(i)))
+ : ((e = $f(e)), (i = $f(i))),
+ (u = n(e, i));
+ }
+ return u;
+ };
+ }
+ function Di(n) {
+ return jn(function (t) {
+ return (
+ (t = J(t, wn(O()))),
+ F(function (e) {
+ var i = this;
+ return n(t, function (u) {
+ return xn(u, i, e);
+ });
+ })
+ );
+ });
+ }
+ function gr(n, t) {
+ t = t === r ? \\" \\" : yn(t);
+ var e = t.length;
+ if (e < 2) return e ? Ii(t, n) : t;
+ var i = Ii(t, nr(n / Ut(t)));
+ return Wt(t) ? _t(Dn(i), 0, n).join(\\"\\") : i.slice(0, n);
+ }
+ function kp(n, t, e, i) {
+ var u = t & ln,
+ a = ye(n);
+ function s() {
+ for (
+ var c = -1,
+ p = arguments.length,
+ d = -1,
+ v = i.length,
+ y = g(v + p),
+ A = this && this !== rn && this instanceof s ? a : n;
+ ++d < v;
+
+ )
+ y[d] = i[d];
+ for (; p--; ) y[d++] = arguments[++c];
+ return xn(A, u ? e : this, y);
+ }
+ return s;
+ }
+ function fa(n) {
+ return function (t, e, i) {
+ return (
+ i && typeof i != \\"number\\" && hn(t, e, i) && (e = i = r),
+ (t = tt(t)),
+ e === r ? ((e = t), (t = 0)) : (e = tt(e)),
+ (i = i === r ? (t < e ? 1 : -1) : tt(i)),
+ Up(t, e, i, n)
+ );
+ };
+ }
+ function _r(n) {
+ return function (t, e) {
+ return (
+ (typeof t == \\"string\\" && typeof e == \\"string\\") ||
+ ((t = Pn(t)), (e = Pn(e))),
+ n(t, e)
+ );
+ };
+ }
+ function aa(n, t, e, i, u, a, s, c, p, d) {
+ var v = t & Nn,
+ y = v ? s : r,
+ A = v ? r : s,
+ T = v ? a : r,
+ I = v ? r : a;
+ (t |= v ? Gn : Pt),
+ (t &= ~(v ? Pt : Gn)),
+ t & Tu || (t &= ~(ln | vt));
+ var M = [n, t, u, T, y, I, A, c, p, d],
+ E = e.apply(r, M);
+ return zi(n) && wa(E, M), (E.placeholder = i), ya(E, n, t);
+ }
+ function qi(n) {
+ var t = tn[n];
+ return function (e, i) {
+ if (
+ ((e = Pn(e)), (i = i == null ? 0 : on(P(i), 292)), i && yf(e))
+ ) {
+ var u = (H(e) + \\"e\\").split(\\"e\\"),
+ a = t(u[0] + \\"e\\" + (+u[1] + i));
+ return (u = (H(a) + \\"e\\").split(\\"e\\")), +(u[0] + \\"e\\" + (+u[1] - i));
+ }
+ return t(e);
+ };
+ }
+ var ng =
+ Nt && 1 / $e(new Nt([, -0]))[1] == xt
+ ? function (n) {
+ return new Nt(n);
+ }
+ : iu;
+ function oa(n) {
+ return function (t) {
+ var e = sn(t);
+ return e == Mn ? hi(t) : e == Fn ? vh(t) : sh(t, n(t));
+ };
+ }
+ function Vn(n, t, e, i, u, a, s, c) {
+ var p = t & vt;
+ if (!p && typeof n != \\"function\\") throw new On(m);
+ var d = i ? i.length : 0;
+ if (
+ (d || ((t &= ~(Gn | Pt)), (i = u = r)),
+ (s = s === r ? s : en(P(s), 0)),
+ (c = c === r ? c : P(c)),
+ (d -= u ? u.length : 0),
+ t & Pt)
+ ) {
+ var v = i,
+ y = u;
+ i = u = r;
+ }
+ var A = p ? r : Bi(n),
+ T = [n, t, e, i, u, v, y, a, s, c];
+ if (
+ (A && _g(T, A),
+ (n = T[0]),
+ (t = T[1]),
+ (e = T[2]),
+ (i = T[3]),
+ (u = T[4]),
+ (c = T[9] = T[9] === r ? (p ? 0 : n.length) : en(T[9] - d, 0)),
+ !c && t & (Nn | Lt) && (t &= ~(Nn | Lt)),
+ !t || t == ln)
+ )
+ var I = Vp(n, t, e);
+ else
+ t == Nn || t == Lt
+ ? (I = jp(n, t, c))
+ : (t == Gn || t == (ln | Gn)) && !u.length
+ ? (I = kp(n, t, e, i))
+ : (I = hr.apply(r, T));
+ var M = A ? Hf : wa;
+ return ya(M(I, T), n, t);
+ }
+ function sa(n, t, e, i) {
+ return n === r || (Wn(n, Bt[e]) && !$.call(i, e)) ? t : n;
+ }
+ function la(n, t, e, i, u, a) {
+ return (
+ Q(n) && Q(t) && (a.set(t, n), or(n, t, r, la, a), a.delete(t)), n
+ );
+ }
+ function tg(n) {
+ return me(n) ? r : n;
+ }
+ function ca(n, t, e, i, u, a) {
+ var s = e & Bn,
+ c = n.length,
+ p = t.length;
+ if (c != p && !(s && p > c)) return !1;
+ var d = a.get(n),
+ v = a.get(t);
+ if (d && v) return d == t && v == n;
+ var y = -1,
+ A = !0,
+ T = e & ut ? new bt() : r;
+ for (a.set(n, t), a.set(t, n); ++y < c; ) {
+ var I = n[y],
+ M = t[y];
+ if (i) var E = s ? i(M, I, y, t, n, a) : i(I, M, y, n, t, a);
+ if (E !== r) {
+ if (E) continue;
+ A = !1;
+ break;
+ }
+ if (T) {
+ if (
+ !fi(t, function (W, B) {
+ if (!se(T, B) && (I === W || u(I, W, e, i, a)))
+ return T.push(B);
+ })
+ ) {
+ A = !1;
+ break;
+ }
+ } else if (!(I === M || u(I, M, e, i, a))) {
+ A = !1;
+ break;
+ }
+ }
+ return a.delete(n), a.delete(t), A;
+ }
+ function eg(n, t, e, i, u, a, s) {
+ switch (e) {
+ case Ft:
+ if (n.byteLength != t.byteLength || n.byteOffset != t.byteOffset)
+ return !1;
+ (n = n.buffer), (t = t.buffer);
+ case oe:
+ return !(
+ n.byteLength != t.byteLength || !a(new Qe(n), new Qe(t))
+ );
+ case ee:
+ case re:
+ case ie:
+ return Wn(+n, +t);
+ case qe:
+ return n.name == t.name && n.message == t.message;
+ case ue:
+ case fe:
+ return n == t + \\"\\";
+ case Mn:
+ var c = hi;
+ case Fn:
+ var p = i & Bn;
+ if ((c || (c = $e), n.size != t.size && !p)) return !1;
+ var d = s.get(n);
+ if (d) return d == t;
+ (i |= ut), s.set(n, t);
+ var v = ca(c(n), c(t), i, u, a, s);
+ return s.delete(n), v;
+ case Ue:
+ if (ge) return ge.call(n) == ge.call(t);
+ }
+ return !1;
+ }
+ function rg(n, t, e, i, u, a) {
+ var s = e & Bn,
+ c = Wi(n),
+ p = c.length,
+ d = Wi(t),
+ v = d.length;
+ if (p != v && !s) return !1;
+ for (var y = p; y--; ) {
+ var A = c[y];
+ if (!(s ? A in t : $.call(t, A))) return !1;
+ }
+ var T = a.get(n),
+ I = a.get(t);
+ if (T && I) return T == t && I == n;
+ var M = !0;
+ a.set(n, t), a.set(t, n);
+ for (var E = s; ++y < p; ) {
+ A = c[y];
+ var W = n[A],
+ B = t[A];
+ if (i) var bn = s ? i(B, W, A, t, n, a) : i(W, B, A, n, t, a);
+ if (!(bn === r ? W === B || u(W, B, e, i, a) : bn)) {
+ M = !1;
+ break;
+ }
+ E || (E = A == \\"constructor\\");
+ }
+ if (M && !E) {
+ var pn = n.constructor,
+ mn = t.constructor;
+ pn != mn &&
+ \\"constructor\\" in n &&
+ \\"constructor\\" in t &&
+ !(
+ typeof pn == \\"function\\" &&
+ pn instanceof pn &&
+ typeof mn == \\"function\\" &&
+ mn instanceof mn
+ ) &&
+ (M = !1);
+ }
+ return a.delete(n), a.delete(t), M;
+ }
+ function jn(n) {
+ return Ki(va(n, r, Ca), n + \\"\\");
+ }
+ function Wi(n) {
+ return Lf(n, un, Gi);
+ }
+ function Ui(n) {
+ return Lf(n, dn, ha);
+ }
+ var Bi = er
+ ? function (n) {
+ return er.get(n);
+ }
+ : iu;
+ function dr(n) {
+ for (
+ var t = n.name + \\"\\", e = Gt[t], i = $.call(Gt, t) ? e.length : 0;
+ i--;
+
+ ) {
+ var u = e[i],
+ a = u.func;
+ if (a == null || a == n) return u.name;
+ }
+ return t;
+ }
+ function Kt(n) {
+ var t = $.call(f, \\"placeholder\\") ? f : n;
+ return t.placeholder;
+ }
+ function O() {
+ var n = f.iteratee || eu;
+ return (
+ (n = n === eu ? Ff : n),
+ arguments.length ? n(arguments[0], arguments[1]) : n
+ );
+ }
+ function vr(n, t) {
+ var e = n.__data__;
+ return cg(t) ? e[typeof t == \\"string\\" ? \\"string\\" : \\"hash\\"] : e.map;
+ }
+ function Ni(n) {
+ for (var t = un(n), e = t.length; e--; ) {
+ var i = t[e],
+ u = n[i];
+ t[e] = [i, u, _a(u)];
+ }
+ return t;
+ }
+ function St(n, t) {
+ var e = gh(n, t);
+ return Mf(e) ? e : r;
+ }
+ function ig(n) {
+ var t = $.call(n, yt),
+ e = n[yt];
+ try {
+ n[yt] = r;
+ var i = !0;
+ } catch {}
+ var u = Xe.call(n);
+ return i && (t ? (n[yt] = e) : delete n[yt]), u;
+ }
+ var Gi = gi
+ ? function (n) {
+ return n == null
+ ? []
+ : ((n = K(n)),
+ at(gi(n), function (t) {
+ return xf.call(n, t);
+ }));
+ }
+ : uu,
+ ha = gi
+ ? function (n) {
+ for (var t = []; n; ) ot(t, Gi(n)), (n = Ve(n));
+ return t;
+ }
+ : uu,
+ sn = cn;
+ ((_i && sn(new _i(new ArrayBuffer(1))) != Ft) ||
+ (ce && sn(new ce()) != Mn) ||
+ (di && sn(di.resolve()) != Ou) ||
+ (Nt && sn(new Nt()) != Fn) ||
+ (he && sn(new he()) != ae)) &&
+ (sn = function (n) {
+ var t = cn(n),
+ e = t == Yn ? n.constructor : r,
+ i = e ? Ct(e) : \\"\\";
+ if (i)
+ switch (i) {
+ case Nh:
+ return Ft;
+ case Gh:
+ return Mn;
+ case Hh:
+ return Ou;
+ case zh:
+ return Fn;
+ case $h:
+ return ae;
+ }
+ return t;
+ });
+ function ug(n, t, e) {
+ for (var i = -1, u = e.length; ++i < u; ) {
+ var a = e[i],
+ s = a.size;
+ switch (a.type) {
+ case \\"drop\\":
+ n += s;
+ break;
+ case \\"dropRight\\":
+ t -= s;
+ break;
+ case \\"take\\":
+ t = on(t, n + s);
+ break;
+ case \\"takeRight\\":
+ n = en(n, t - s);
+ break;
+ }
+ }
+ return { start: n, end: t };
+ }
+ function fg(n) {
+ var t = n.match(hc);
+ return t ? t[1].split(pc) : [];
+ }
+ function pa(n, t, e) {
+ t = gt(t, n);
+ for (var i = -1, u = t.length, a = !1; ++i < u; ) {
+ var s = Kn(t[i]);
+ if (!(a = n != null && e(n, s))) break;
+ n = n[s];
+ }
+ return a || ++i != u
+ ? a
+ : ((u = n == null ? 0 : n.length),
+ !!u && Tr(u) && kn(s, u) && (L(n) || Ot(n)));
+ }
+ function ag(n) {
+ var t = n.length,
+ e = new n.constructor(t);
+ return (
+ t &&
+ typeof n[0] == \\"string\\" &&
+ $.call(n, \\"index\\") &&
+ ((e.index = n.index), (e.input = n.input)),
+ e
+ );
+ }
+ function ga(n) {
+ return typeof n.constructor == \\"function\\" && !Ae(n) ? Ht(Ve(n)) : {};
+ }
+ function og(n, t, e) {
+ var i = n.constructor;
+ switch (t) {
+ case oe:
+ return Fi(n);
+ case ee:
+ case re:
+ return new i(+n);
+ case Ft:
+ return Kp(n, e);
+ case Nr:
+ case Gr:
+ case Hr:
+ case zr:
+ case $r:
+ case Kr:
+ case Zr:
+ case Yr:
+ case Xr:
+ return Qf(n, e);
+ case Mn:
+ return new i();
+ case ie:
+ case fe:
+ return new i(n);
+ case ue:
+ return Zp(n);
+ case Fn:
+ return new i();
+ case Ue:
+ return Yp(n);
+ }
+ }
+ function sg(n, t) {
+ var e = t.length;
+ if (!e) return n;
+ var i = e - 1;
+ return (
+ (t[i] = (e > 1 ? \\"& \\" : \\"\\") + t[i]),
+ (t = t.join(e > 2 ? \\", \\" : \\" \\")),
+ n.replace(
+ cc,
+ \`{
+/* [wrapped with \` +
+ t +
+ \`] */
+\`
+ )
+ );
+ }
+ function lg(n) {
+ return L(n) || Ot(n) || !!(wf && n && n[wf]);
+ }
+ function kn(n, t) {
+ var e = typeof n;
+ return (
+ (t = t ?? ft),
+ !!t &&
+ (e == \\"number\\" || (e != \\"symbol\\" && bc.test(n))) &&
+ n > -1 &&
+ n % 1 == 0 &&
+ n < t
+ );
+ }
+ function hn(n, t, e) {
+ if (!Q(e)) return !1;
+ var i = typeof t;
+ return (
+ i == \\"number\\" ? _n(e) && kn(t, e.length) : i == \\"string\\" && t in e
+ )
+ ? Wn(e[t], n)
+ : !1;
+ }
+ function Hi(n, t) {
+ if (L(n)) return !1;
+ var e = typeof n;
+ return e == \\"number\\" ||
+ e == \\"symbol\\" ||
+ e == \\"boolean\\" ||
+ n == null ||
+ An(n)
+ ? !0
+ : ac.test(n) || !fc.test(n) || (t != null && n in K(t));
+ }
+ function cg(n) {
+ var t = typeof n;
+ return t == \\"string\\" ||
+ t == \\"number\\" ||
+ t == \\"symbol\\" ||
+ t == \\"boolean\\"
+ ? n !== \\"__proto__\\"
+ : n === null;
+ }
+ function zi(n) {
+ var t = dr(n),
+ e = f[t];
+ if (typeof e != \\"function\\" || !(t in U.prototype)) return !1;
+ if (n === e) return !0;
+ var i = Bi(e);
+ return !!i && n === i[0];
+ }
+ function hg(n) {
+ return !!_f && _f in n;
+ }
+ var pg = Ze ? nt : fu;
+ function Ae(n) {
+ var t = n && n.constructor,
+ e = (typeof t == \\"function\\" && t.prototype) || Bt;
+ return n === e;
+ }
+ function _a(n) {
+ return n === n && !Q(n);
+ }
+ function da(n, t) {
+ return function (e) {
+ return e == null ? !1 : e[n] === t && (t !== r || n in K(e));
+ };
+ }
+ function gg(n) {
+ var t = br(n, function (i) {
+ return e.size === q && e.clear(), i;
+ }),
+ e = t.cache;
+ return t;
+ }
+ function _g(n, t) {
+ var e = n[1],
+ i = t[1],
+ u = e | i,
+ a = u < (ln | vt | Zn),
+ s =
+ (i == Zn && e == Nn) ||
+ (i == Zn && e == te && n[7].length <= t[8]) ||
+ (i == (Zn | te) && t[7].length <= t[8] && e == Nn);
+ if (!(a || s)) return n;
+ i & ln && ((n[2] = t[2]), (u |= e & ln ? 0 : Tu));
+ var c = t[3];
+ if (c) {
+ var p = n[3];
+ (n[3] = p ? jf(p, c, t[4]) : c), (n[4] = p ? st(n[3], z) : t[4]);
+ }
+ return (
+ (c = t[5]),
+ c &&
+ ((p = n[5]),
+ (n[5] = p ? kf(p, c, t[6]) : c),
+ (n[6] = p ? st(n[5], z) : t[6])),
+ (c = t[7]),
+ c && (n[7] = c),
+ i & Zn && (n[8] = n[8] == null ? t[8] : on(n[8], t[8])),
+ n[9] == null && (n[9] = t[9]),
+ (n[0] = t[0]),
+ (n[1] = u),
+ n
+ );
+ }
+ function dg(n) {
+ var t = [];
+ if (n != null) for (var e in K(n)) t.push(e);
+ return t;
+ }
+ function vg(n) {
+ return Xe.call(n);
+ }
+ function va(n, t, e) {
+ return (
+ (t = en(t === r ? n.length - 1 : t, 0)),
+ function () {
+ for (
+ var i = arguments, u = -1, a = en(i.length - t, 0), s = g(a);
+ ++u < a;
+
+ )
+ s[u] = i[t + u];
+ u = -1;
+ for (var c = g(t + 1); ++u < t; ) c[u] = i[u];
+ return (c[t] = e(s)), xn(n, this, c);
+ }
+ );
+ }
+ function xa(n, t) {
+ return t.length < 2 ? n : Tt(n, Rn(t, 0, -1));
+ }
+ function xg(n, t) {
+ for (var e = n.length, i = on(t.length, e), u = gn(n); i--; ) {
+ var a = t[i];
+ n[i] = kn(a, e) ? u[a] : r;
+ }
+ return n;
+ }
+ function $i(n, t) {
+ if (
+ !(t === \\"constructor\\" && typeof n[t] == \\"function\\") &&
+ t != \\"__proto__\\"
+ )
+ return n[t];
+ }
+ var wa = Aa(Hf),
+ be =
+ Mh ||
+ function (n, t) {
+ return rn.setTimeout(n, t);
+ },
+ Ki = Aa(Gp);
+ function ya(n, t, e) {
+ var i = t + \\"\\";
+ return Ki(n, sg(i, wg(fg(i), e)));
+ }
+ function Aa(n) {
+ var t = 0,
+ e = 0;
+ return function () {
+ var i = Wh(),
+ u = Nl - (i - e);
+ if (((e = i), u > 0)) {
+ if (++t >= Bl) return arguments[0];
+ } else t = 0;
+ return n.apply(r, arguments);
+ };
+ }
+ function xr(n, t) {
+ var e = -1,
+ i = n.length,
+ u = i - 1;
+ for (t = t === r ? i : t; ++e < t; ) {
+ var a = Oi(e, u),
+ s = n[a];
+ (n[a] = n[e]), (n[e] = s);
+ }
+ return (n.length = t), n;
+ }
+ var ba = gg(function (n) {
+ var t = [];
+ return (
+ n.charCodeAt(0) === 46 && t.push(\\"\\"),
+ n.replace(oc, function (e, i, u, a) {
+ t.push(u ? a.replace(dc, \\"$1\\") : i || e);
+ }),
+ t
+ );
+ });
+ function Kn(n) {
+ if (typeof n == \\"string\\" || An(n)) return n;
+ var t = n + \\"\\";
+ return t == \\"0\\" && 1 / n == -xt ? \\"-0\\" : t;
+ }
+ function Ct(n) {
+ if (n != null) {
+ try {
+ return Ye.call(n);
+ } catch {}
+ try {
+ return n + \\"\\";
+ } catch {}
+ }
+ return \\"\\";
+ }
+ function wg(n, t) {
+ return (
+ Cn(Zl, function (e) {
+ var i = \\"_.\\" + e[0];
+ t & e[1] && !He(n, i) && n.push(i);
+ }),
+ n.sort()
+ );
+ }
+ function ma(n) {
+ if (n instanceof U) return n.clone();
+ var t = new In(n.__wrapped__, n.__chain__);
+ return (
+ (t.__actions__ = gn(n.__actions__)),
+ (t.__index__ = n.__index__),
+ (t.__values__ = n.__values__),
+ t
+ );
+ }
+ function yg(n, t, e) {
+ (e ? hn(n, t, e) : t === r) ? (t = 1) : (t = en(P(t), 0));
+ var i = n == null ? 0 : n.length;
+ if (!i || t < 1) return [];
+ for (var u = 0, a = 0, s = g(nr(i / t)); u < i; )
+ s[a++] = Rn(n, u, (u += t));
+ return s;
+ }
+ function Ag(n) {
+ for (
+ var t = -1, e = n == null ? 0 : n.length, i = 0, u = [];
+ ++t < e;
+
+ ) {
+ var a = n[t];
+ a && (u[i++] = a);
+ }
+ return u;
+ }
+ function bg() {
+ var n = arguments.length;
+ if (!n) return [];
+ for (var t = g(n - 1), e = arguments[0], i = n; i--; )
+ t[i - 1] = arguments[i];
+ return ot(L(e) ? gn(e) : [e], fn(t, 1));
+ }
+ var mg = F(function (n, t) {
+ return k(n) ? de(n, fn(t, 1, k, !0)) : [];
+ }),
+ Tg = F(function (n, t) {
+ var e = Ln(t);
+ return k(e) && (e = r), k(n) ? de(n, fn(t, 1, k, !0), O(e, 2)) : [];
+ }),
+ Sg = F(function (n, t) {
+ var e = Ln(t);
+ return k(e) && (e = r), k(n) ? de(n, fn(t, 1, k, !0), r, e) : [];
+ });
+ function Cg(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ return i
+ ? ((t = e || t === r ? 1 : P(t)), Rn(n, t < 0 ? 0 : t, i))
+ : [];
+ }
+ function Og(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ return i
+ ? ((t = e || t === r ? 1 : P(t)),
+ (t = i - t),
+ Rn(n, 0, t < 0 ? 0 : t))
+ : [];
+ }
+ function Ig(n, t) {
+ return n && n.length ? lr(n, O(t, 3), !0, !0) : [];
+ }
+ function Eg(n, t) {
+ return n && n.length ? lr(n, O(t, 3), !0) : [];
+ }
+ function Rg(n, t, e, i) {
+ var u = n == null ? 0 : n.length;
+ return u
+ ? (e && typeof e != \\"number\\" && hn(n, t, e) && ((e = 0), (i = u)),
+ bp(n, t, e, i))
+ : [];
+ }
+ function Ta(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ if (!i) return -1;
+ var u = e == null ? 0 : P(e);
+ return u < 0 && (u = en(i + u, 0)), ze(n, O(t, 3), u);
+ }
+ function Sa(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ if (!i) return -1;
+ var u = i - 1;
+ return (
+ e !== r && ((u = P(e)), (u = e < 0 ? en(i + u, 0) : on(u, i - 1))),
+ ze(n, O(t, 3), u, !0)
+ );
+ }
+ function Ca(n) {
+ var t = n == null ? 0 : n.length;
+ return t ? fn(n, 1) : [];
+ }
+ function Lg(n) {
+ var t = n == null ? 0 : n.length;
+ return t ? fn(n, xt) : [];
+ }
+ function Pg(n, t) {
+ var e = n == null ? 0 : n.length;
+ return e ? ((t = t === r ? 1 : P(t)), fn(n, t)) : [];
+ }
+ function Mg(n) {
+ for (var t = -1, e = n == null ? 0 : n.length, i = {}; ++t < e; ) {
+ var u = n[t];
+ i[u[0]] = u[1];
+ }
+ return i;
+ }
+ function Oa(n) {
+ return n && n.length ? n[0] : r;
+ }
+ function Fg(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ if (!i) return -1;
+ var u = e == null ? 0 : P(e);
+ return u < 0 && (u = en(i + u, 0)), qt(n, t, u);
+ }
+ function Dg(n) {
+ var t = n == null ? 0 : n.length;
+ return t ? Rn(n, 0, -1) : [];
+ }
+ var qg = F(function (n) {
+ var t = J(n, Pi);
+ return t.length && t[0] === n[0] ? bi(t) : [];
+ }),
+ Wg = F(function (n) {
+ var t = Ln(n),
+ e = J(n, Pi);
+ return (
+ t === Ln(e) ? (t = r) : e.pop(),
+ e.length && e[0] === n[0] ? bi(e, O(t, 2)) : []
+ );
+ }),
+ Ug = F(function (n) {
+ var t = Ln(n),
+ e = J(n, Pi);
+ return (
+ (t = typeof t == \\"function\\" ? t : r),
+ t && e.pop(),
+ e.length && e[0] === n[0] ? bi(e, r, t) : []
+ );
+ });
+ function Bg(n, t) {
+ return n == null ? \\"\\" : Dh.call(n, t);
+ }
+ function Ln(n) {
+ var t = n == null ? 0 : n.length;
+ return t ? n[t - 1] : r;
+ }
+ function Ng(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ if (!i) return -1;
+ var u = i;
+ return (
+ e !== r && ((u = P(e)), (u = u < 0 ? en(i + u, 0) : on(u, i - 1))),
+ t === t ? wh(n, t, u) : ze(n, af, u, !0)
+ );
+ }
+ function Gg(n, t) {
+ return n && n.length ? Uf(n, P(t)) : r;
+ }
+ var Hg = F(Ia);
+ function Ia(n, t) {
+ return n && n.length && t && t.length ? Ci(n, t) : n;
+ }
+ function zg(n, t, e) {
+ return n && n.length && t && t.length ? Ci(n, t, O(e, 2)) : n;
+ }
+ function $g(n, t, e) {
+ return n && n.length && t && t.length ? Ci(n, t, r, e) : n;
+ }
+ var Kg = jn(function (n, t) {
+ var e = n == null ? 0 : n.length,
+ i = xi(n, t);
+ return (
+ Gf(
+ n,
+ J(t, function (u) {
+ return kn(u, e) ? +u : u;
+ }).sort(Vf)
+ ),
+ i
+ );
+ });
+ function Zg(n, t) {
+ var e = [];
+ if (!(n && n.length)) return e;
+ var i = -1,
+ u = [],
+ a = n.length;
+ for (t = O(t, 3); ++i < a; ) {
+ var s = n[i];
+ t(s, i, n) && (e.push(s), u.push(i));
+ }
+ return Gf(n, u), e;
+ }
+ function Zi(n) {
+ return n == null ? n : Bh.call(n);
+ }
+ function Yg(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ return i
+ ? (e && typeof e != \\"number\\" && hn(n, t, e)
+ ? ((t = 0), (e = i))
+ : ((t = t == null ? 0 : P(t)), (e = e === r ? i : P(e))),
+ Rn(n, t, e))
+ : [];
+ }
+ function Xg(n, t) {
+ return sr(n, t);
+ }
+ function Jg(n, t, e) {
+ return Ei(n, t, O(e, 2));
+ }
+ function Qg(n, t) {
+ var e = n == null ? 0 : n.length;
+ if (e) {
+ var i = sr(n, t);
+ if (i < e && Wn(n[i], t)) return i;
+ }
+ return -1;
+ }
+ function Vg(n, t) {
+ return sr(n, t, !0);
+ }
+ function jg(n, t, e) {
+ return Ei(n, t, O(e, 2), !0);
+ }
+ function kg(n, t) {
+ var e = n == null ? 0 : n.length;
+ if (e) {
+ var i = sr(n, t, !0) - 1;
+ if (Wn(n[i], t)) return i;
+ }
+ return -1;
+ }
+ function n_(n) {
+ return n && n.length ? zf(n) : [];
+ }
+ function t_(n, t) {
+ return n && n.length ? zf(n, O(t, 2)) : [];
+ }
+ function e_(n) {
+ var t = n == null ? 0 : n.length;
+ return t ? Rn(n, 1, t) : [];
+ }
+ function r_(n, t, e) {
+ return n && n.length
+ ? ((t = e || t === r ? 1 : P(t)), Rn(n, 0, t < 0 ? 0 : t))
+ : [];
+ }
+ function i_(n, t, e) {
+ var i = n == null ? 0 : n.length;
+ return i
+ ? ((t = e || t === r ? 1 : P(t)),
+ (t = i - t),
+ Rn(n, t < 0 ? 0 : t, i))
+ : [];
+ }
+ function u_(n, t) {
+ return n && n.length ? lr(n, O(t, 3), !1, !0) : [];
+ }
+ function f_(n, t) {
+ return n && n.length ? lr(n, O(t, 3)) : [];
+ }
+ var a_ = F(function (n) {
+ return pt(fn(n, 1, k, !0));
+ }),
+ o_ = F(function (n) {
+ var t = Ln(n);
+ return k(t) && (t = r), pt(fn(n, 1, k, !0), O(t, 2));
+ }),
+ s_ = F(function (n) {
+ var t = Ln(n);
+ return (
+ (t = typeof t == \\"function\\" ? t : r), pt(fn(n, 1, k, !0), r, t)
+ );
+ });
+ function l_(n) {
+ return n && n.length ? pt(n) : [];
+ }
+ function c_(n, t) {
+ return n && n.length ? pt(n, O(t, 2)) : [];
+ }
+ function h_(n, t) {
+ return (
+ (t = typeof t == \\"function\\" ? t : r),
+ n && n.length ? pt(n, r, t) : []
+ );
+ }
+ function Yi(n) {
+ if (!(n && n.length)) return [];
+ var t = 0;
+ return (
+ (n = at(n, function (e) {
+ if (k(e)) return (t = en(e.length, t)), !0;
+ })),
+ li(t, function (e) {
+ return J(n, ai(e));
+ })
+ );
+ }
+ function Ea(n, t) {
+ if (!(n && n.length)) return [];
+ var e = Yi(n);
+ return t == null
+ ? e
+ : J(e, function (i) {
+ return xn(t, r, i);
+ });
+ }
+ var p_ = F(function (n, t) {
+ return k(n) ? de(n, t) : [];
+ }),
+ g_ = F(function (n) {
+ return Li(at(n, k));
+ }),
+ __ = F(function (n) {
+ var t = Ln(n);
+ return k(t) && (t = r), Li(at(n, k), O(t, 2));
+ }),
+ d_ = F(function (n) {
+ var t = Ln(n);
+ return (t = typeof t == \\"function\\" ? t : r), Li(at(n, k), r, t);
+ }),
+ v_ = F(Yi);
+ function x_(n, t) {
+ return Yf(n || [], t || [], _e);
+ }
+ function w_(n, t) {
+ return Yf(n || [], t || [], we);
+ }
+ var y_ = F(function (n) {
+ var t = n.length,
+ e = t > 1 ? n[t - 1] : r;
+ return (e = typeof e == \\"function\\" ? (n.pop(), e) : r), Ea(n, e);
+ });
+ function Ra(n) {
+ var t = f(n);
+ return (t.__chain__ = !0), t;
+ }
+ function A_(n, t) {
+ return t(n), n;
+ }
+ function wr(n, t) {
+ return t(n);
+ }
+ var b_ = jn(function (n) {
+ var t = n.length,
+ e = t ? n[0] : 0,
+ i = this.__wrapped__,
+ u = function (a) {
+ return xi(a, n);
+ };
+ return t > 1 || this.__actions__.length || !(i instanceof U) || !kn(e)
+ ? this.thru(u)
+ : ((i = i.slice(e, +e + (t ? 1 : 0))),
+ i.__actions__.push({ func: wr, args: [u], thisArg: r }),
+ new In(i, this.__chain__).thru(function (a) {
+ return t && !a.length && a.push(r), a;
+ }));
+ });
+ function m_() {
+ return Ra(this);
+ }
+ function T_() {
+ return new In(this.value(), this.__chain__);
+ }
+ function S_() {
+ this.__values__ === r && (this.__values__ = $a(this.value()));
+ var n = this.__index__ >= this.__values__.length,
+ t = n ? r : this.__values__[this.__index__++];
+ return { done: n, value: t };
+ }
+ function C_() {
+ return this;
+ }
+ function O_(n) {
+ for (var t, e = this; e instanceof ir; ) {
+ var i = ma(e);
+ (i.__index__ = 0),
+ (i.__values__ = r),
+ t ? (u.__wrapped__ = i) : (t = i);
+ var u = i;
+ e = e.__wrapped__;
+ }
+ return (u.__wrapped__ = n), t;
+ }
+ function I_() {
+ var n = this.__wrapped__;
+ if (n instanceof U) {
+ var t = n;
+ return (
+ this.__actions__.length && (t = new U(this)),
+ (t = t.reverse()),
+ t.__actions__.push({ func: wr, args: [Zi], thisArg: r }),
+ new In(t, this.__chain__)
+ );
+ }
+ return this.thru(Zi);
+ }
+ function E_() {
+ return Zf(this.__wrapped__, this.__actions__);
+ }
+ var R_ = cr(function (n, t, e) {
+ $.call(n, e) ? ++n[e] : Qn(n, e, 1);
+ });
+ function L_(n, t, e) {
+ var i = L(n) ? uf : Ap;
+ return e && hn(n, t, e) && (t = r), i(n, O(t, 3));
+ }
+ function P_(n, t) {
+ var e = L(n) ? at : Ef;
+ return e(n, O(t, 3));
+ }
+ var M_ = ra(Ta),
+ F_ = ra(Sa);
+ function D_(n, t) {
+ return fn(yr(n, t), 1);
+ }
+ function q_(n, t) {
+ return fn(yr(n, t), xt);
+ }
+ function W_(n, t, e) {
+ return (e = e === r ? 1 : P(e)), fn(yr(n, t), e);
+ }
+ function La(n, t) {
+ var e = L(n) ? Cn : ht;
+ return e(n, O(t, 3));
+ }
+ function Pa(n, t) {
+ var e = L(n) ? eh : If;
+ return e(n, O(t, 3));
+ }
+ var U_ = cr(function (n, t, e) {
+ $.call(n, e) ? n[e].push(t) : Qn(n, e, [t]);
+ });
+ function B_(n, t, e, i) {
+ (n = _n(n) ? n : Yt(n)), (e = e && !i ? P(e) : 0);
+ var u = n.length;
+ return (
+ e < 0 && (e = en(u + e, 0)),
+ Sr(n) ? e <= u && n.indexOf(t, e) > -1 : !!u && qt(n, t, e) > -1
+ );
+ }
+ var N_ = F(function (n, t, e) {
+ var i = -1,
+ u = typeof t == \\"function\\",
+ a = _n(n) ? g(n.length) : [];
+ return (
+ ht(n, function (s) {
+ a[++i] = u ? xn(t, s, e) : ve(s, t, e);
+ }),
+ a
+ );
+ }),
+ G_ = cr(function (n, t, e) {
+ Qn(n, e, t);
+ });
+ function yr(n, t) {
+ var e = L(n) ? J : Df;
+ return e(n, O(t, 3));
+ }
+ function H_(n, t, e, i) {
+ return n == null
+ ? []
+ : (L(t) || (t = t == null ? [] : [t]),
+ (e = i ? r : e),
+ L(e) || (e = e == null ? [] : [e]),
+ Bf(n, t, e));
+ }
+ var z_ = cr(
+ function (n, t, e) {
+ n[e ? 0 : 1].push(t);
+ },
+ function () {
+ return [[], []];
+ }
+ );
+ function $_(n, t, e) {
+ var i = L(n) ? ui : sf,
+ u = arguments.length < 3;
+ return i(n, O(t, 4), e, u, ht);
+ }
+ function K_(n, t, e) {
+ var i = L(n) ? rh : sf,
+ u = arguments.length < 3;
+ return i(n, O(t, 4), e, u, If);
+ }
+ function Z_(n, t) {
+ var e = L(n) ? at : Ef;
+ return e(n, mr(O(t, 3)));
+ }
+ function Y_(n) {
+ var t = L(n) ? Tf : Bp;
+ return t(n);
+ }
+ function X_(n, t, e) {
+ (e ? hn(n, t, e) : t === r) ? (t = 1) : (t = P(t));
+ var i = L(n) ? dp : Np;
+ return i(n, t);
+ }
+ function J_(n) {
+ var t = L(n) ? vp : Hp;
+ return t(n);
+ }
+ function Q_(n) {
+ if (n == null) return 0;
+ if (_n(n)) return Sr(n) ? Ut(n) : n.length;
+ var t = sn(n);
+ return t == Mn || t == Fn ? n.size : Ti(n).length;
+ }
+ function V_(n, t, e) {
+ var i = L(n) ? fi : zp;
+ return e && hn(n, t, e) && (t = r), i(n, O(t, 3));
+ }
+ var j_ = F(function (n, t) {
+ if (n == null) return [];
+ var e = t.length;
+ return (
+ e > 1 && hn(n, t[0], t[1])
+ ? (t = [])
+ : e > 2 && hn(t[0], t[1], t[2]) && (t = [t[0]]),
+ Bf(n, fn(t, 1), [])
+ );
+ }),
+ Ar =
+ Ph ||
+ function () {
+ return rn.Date.now();
+ };
+ function k_(n, t) {
+ if (typeof t != \\"function\\") throw new On(m);
+ return (
+ (n = P(n)),
+ function () {
+ if (--n < 1) return t.apply(this, arguments);
+ }
+ );
+ }
+ function Ma(n, t, e) {
+ return (
+ (t = e ? r : t),
+ (t = n && t == null ? n.length : t),
+ Vn(n, Zn, r, r, r, r, t)
+ );
+ }
+ function Fa(n, t) {
+ var e;
+ if (typeof t != \\"function\\") throw new On(m);
+ return (
+ (n = P(n)),
+ function () {
+ return (
+ --n > 0 && (e = t.apply(this, arguments)), n <= 1 && (t = r), e
+ );
+ }
+ );
+ }
+ var Xi = F(function (n, t, e) {
+ var i = ln;
+ if (e.length) {
+ var u = st(e, Kt(Xi));
+ i |= Gn;
+ }
+ return Vn(n, i, t, e, u);
+ }),
+ Da = F(function (n, t, e) {
+ var i = ln | vt;
+ if (e.length) {
+ var u = st(e, Kt(Da));
+ i |= Gn;
+ }
+ return Vn(t, i, n, e, u);
+ });
+ function qa(n, t, e) {
+ t = e ? r : t;
+ var i = Vn(n, Nn, r, r, r, r, r, t);
+ return (i.placeholder = qa.placeholder), i;
+ }
+ function Wa(n, t, e) {
+ t = e ? r : t;
+ var i = Vn(n, Lt, r, r, r, r, r, t);
+ return (i.placeholder = Wa.placeholder), i;
+ }
+ function Ua(n, t, e) {
+ var i,
+ u,
+ a,
+ s,
+ c,
+ p,
+ d = 0,
+ v = !1,
+ y = !1,
+ A = !0;
+ if (typeof n != \\"function\\") throw new On(m);
+ (t = Pn(t) || 0),
+ Q(e) &&
+ ((v = !!e.leading),
+ (y = \\"maxWait\\" in e),
+ (a = y ? en(Pn(e.maxWait) || 0, t) : a),
+ (A = \\"trailing\\" in e ? !!e.trailing : A));
+ function T(nn) {
+ var Un = i,
+ et = u;
+ return (i = u = r), (d = nn), (s = n.apply(et, Un)), s;
+ }
+ function I(nn) {
+ return (d = nn), (c = be(W, t)), v ? T(nn) : s;
+ }
+ function M(nn) {
+ var Un = nn - p,
+ et = nn - d,
+ ro = t - Un;
+ return y ? on(ro, a - et) : ro;
+ }
+ function E(nn) {
+ var Un = nn - p,
+ et = nn - d;
+ return p === r || Un >= t || Un < 0 || (y && et >= a);
+ }
+ function W() {
+ var nn = Ar();
+ if (E(nn)) return B(nn);
+ c = be(W, M(nn));
+ }
+ function B(nn) {
+ return (c = r), A && i ? T(nn) : ((i = u = r), s);
+ }
+ function bn() {
+ c !== r && Xf(c), (d = 0), (i = p = u = c = r);
+ }
+ function pn() {
+ return c === r ? s : B(Ar());
+ }
+ function mn() {
+ var nn = Ar(),
+ Un = E(nn);
+ if (((i = arguments), (u = this), (p = nn), Un)) {
+ if (c === r) return I(p);
+ if (y) return Xf(c), (c = be(W, t)), T(p);
+ }
+ return c === r && (c = be(W, t)), s;
+ }
+ return (mn.cancel = bn), (mn.flush = pn), mn;
+ }
+ var nd = F(function (n, t) {
+ return Of(n, 1, t);
+ }),
+ td = F(function (n, t, e) {
+ return Of(n, Pn(t) || 0, e);
+ });
+ function ed(n) {
+ return Vn(n, Br);
+ }
+ function br(n, t) {
+ if (typeof n != \\"function\\" || (t != null && typeof t != \\"function\\"))
+ throw new On(m);
+ var e = function () {
+ var i = arguments,
+ u = t ? t.apply(this, i) : i[0],
+ a = e.cache;
+ if (a.has(u)) return a.get(u);
+ var s = n.apply(this, i);
+ return (e.cache = a.set(u, s) || a), s;
+ };
+ return (e.cache = new (br.Cache || Jn)()), e;
+ }
+ br.Cache = Jn;
+ function mr(n) {
+ if (typeof n != \\"function\\") throw new On(m);
+ return function () {
+ var t = arguments;
+ switch (t.length) {
+ case 0:
+ return !n.call(this);
+ case 1:
+ return !n.call(this, t[0]);
+ case 2:
+ return !n.call(this, t[0], t[1]);
+ case 3:
+ return !n.call(this, t[0], t[1], t[2]);
+ }
+ return !n.apply(this, t);
+ };
+ }
+ function rd(n) {
+ return Fa(2, n);
+ }
+ var id = $p(function (n, t) {
+ t =
+ t.length == 1 && L(t[0])
+ ? J(t[0], wn(O()))
+ : J(fn(t, 1), wn(O()));
+ var e = t.length;
+ return F(function (i) {
+ for (var u = -1, a = on(i.length, e); ++u < a; )
+ i[u] = t[u].call(this, i[u]);
+ return xn(n, this, i);
+ });
+ }),
+ Ji = F(function (n, t) {
+ var e = st(t, Kt(Ji));
+ return Vn(n, Gn, r, t, e);
+ }),
+ Ba = F(function (n, t) {
+ var e = st(t, Kt(Ba));
+ return Vn(n, Pt, r, t, e);
+ }),
+ ud = jn(function (n, t) {
+ return Vn(n, te, r, r, r, t);
+ });
+ function fd(n, t) {
+ if (typeof n != \\"function\\") throw new On(m);
+ return (t = t === r ? t : P(t)), F(n, t);
+ }
+ function ad(n, t) {
+ if (typeof n != \\"function\\") throw new On(m);
+ return (
+ (t = t == null ? 0 : en(P(t), 0)),
+ F(function (e) {
+ var i = e[t],
+ u = _t(e, 0, t);
+ return i && ot(u, i), xn(n, this, u);
+ })
+ );
+ }
+ function od(n, t, e) {
+ var i = !0,
+ u = !0;
+ if (typeof n != \\"function\\") throw new On(m);
+ return (
+ Q(e) &&
+ ((i = \\"leading\\" in e ? !!e.leading : i),
+ (u = \\"trailing\\" in e ? !!e.trailing : u)),
+ Ua(n, t, { leading: i, maxWait: t, trailing: u })
+ );
+ }
+ function sd(n) {
+ return Ma(n, 1);
+ }
+ function ld(n, t) {
+ return Ji(Mi(t), n);
+ }
+ function cd() {
+ if (!arguments.length) return [];
+ var n = arguments[0];
+ return L(n) ? n : [n];
+ }
+ function hd(n) {
+ return En(n, Tn);
+ }
+ function pd(n, t) {
+ return (t = typeof t == \\"function\\" ? t : r), En(n, Tn, t);
+ }
+ function gd(n) {
+ return En(n, j | Tn);
+ }
+ function _d(n, t) {
+ return (t = typeof t == \\"function\\" ? t : r), En(n, j | Tn, t);
+ }
+ function dd(n, t) {
+ return t == null || Cf(n, t, un(t));
+ }
+ function Wn(n, t) {
+ return n === t || (n !== n && t !== t);
+ }
+ var vd = _r(Ai),
+ xd = _r(function (n, t) {
+ return n >= t;
+ }),
+ Ot = Pf(
+ (function () {
+ return arguments;
+ })()
+ )
+ ? Pf
+ : function (n) {
+ return V(n) && $.call(n, \\"callee\\") && !xf.call(n, \\"callee\\");
+ },
+ L = g.isArray,
+ wd = ju ? wn(ju) : Op;
+ function _n(n) {
+ return n != null && Tr(n.length) && !nt(n);
+ }
+ function k(n) {
+ return V(n) && _n(n);
+ }
+ function yd(n) {
+ return n === !0 || n === !1 || (V(n) && cn(n) == ee);
+ }
+ var dt = Fh || fu,
+ Ad = ku ? wn(ku) : Ip;
+ function bd(n) {
+ return V(n) && n.nodeType === 1 && !me(n);
+ }
+ function md(n) {
+ if (n == null) return !0;
+ if (
+ _n(n) &&
+ (L(n) ||
+ typeof n == \\"string\\" ||
+ typeof n.splice == \\"function\\" ||
+ dt(n) ||
+ Zt(n) ||
+ Ot(n))
+ )
+ return !n.length;
+ var t = sn(n);
+ if (t == Mn || t == Fn) return !n.size;
+ if (Ae(n)) return !Ti(n).length;
+ for (var e in n) if ($.call(n, e)) return !1;
+ return !0;
+ }
+ function Td(n, t) {
+ return xe(n, t);
+ }
+ function Sd(n, t, e) {
+ e = typeof e == \\"function\\" ? e : r;
+ var i = e ? e(n, t) : r;
+ return i === r ? xe(n, t, r, e) : !!i;
+ }
+ function Qi(n) {
+ if (!V(n)) return !1;
+ var t = cn(n);
+ return (
+ t == qe ||
+ t == Xl ||
+ (typeof n.message == \\"string\\" &&
+ typeof n.name == \\"string\\" &&
+ !me(n))
+ );
+ }
+ function Cd(n) {
+ return typeof n == \\"number\\" && yf(n);
+ }
+ function nt(n) {
+ if (!Q(n)) return !1;
+ var t = cn(n);
+ return t == We || t == Cu || t == Yl || t == Ql;
+ }
+ function Na(n) {
+ return typeof n == \\"number\\" && n == P(n);
+ }
+ function Tr(n) {
+ return typeof n == \\"number\\" && n > -1 && n % 1 == 0 && n <= ft;
+ }
+ function Q(n) {
+ var t = typeof n;
+ return n != null && (t == \\"object\\" || t == \\"function\\");
+ }
+ function V(n) {
+ return n != null && typeof n == \\"object\\";
+ }
+ var Ga = nf ? wn(nf) : Rp;
+ function Od(n, t) {
+ return n === t || mi(n, t, Ni(t));
+ }
+ function Id(n, t, e) {
+ return (e = typeof e == \\"function\\" ? e : r), mi(n, t, Ni(t), e);
+ }
+ function Ed(n) {
+ return Ha(n) && n != +n;
+ }
+ function Rd(n) {
+ if (pg(n)) throw new R(w);
+ return Mf(n);
+ }
+ function Ld(n) {
+ return n === null;
+ }
+ function Pd(n) {
+ return n == null;
+ }
+ function Ha(n) {
+ return typeof n == \\"number\\" || (V(n) && cn(n) == ie);
+ }
+ function me(n) {
+ if (!V(n) || cn(n) != Yn) return !1;
+ var t = Ve(n);
+ if (t === null) return !0;
+ var e = $.call(t, \\"constructor\\") && t.constructor;
+ return typeof e == \\"function\\" && e instanceof e && Ye.call(e) == Ih;
+ }
+ var Vi = tf ? wn(tf) : Lp;
+ function Md(n) {
+ return Na(n) && n >= -ft && n <= ft;
+ }
+ var za = ef ? wn(ef) : Pp;
+ function Sr(n) {
+ return typeof n == \\"string\\" || (!L(n) && V(n) && cn(n) == fe);
+ }
+ function An(n) {
+ return typeof n == \\"symbol\\" || (V(n) && cn(n) == Ue);
+ }
+ var Zt = rf ? wn(rf) : Mp;
+ function Fd(n) {
+ return n === r;
+ }
+ function Dd(n) {
+ return V(n) && sn(n) == ae;
+ }
+ function qd(n) {
+ return V(n) && cn(n) == jl;
+ }
+ var Wd = _r(Si),
+ Ud = _r(function (n, t) {
+ return n <= t;
+ });
+ function $a(n) {
+ if (!n) return [];
+ if (_n(n)) return Sr(n) ? Dn(n) : gn(n);
+ if (le && n[le]) return dh(n[le]());
+ var t = sn(n),
+ e = t == Mn ? hi : t == Fn ? $e : Yt;
+ return e(n);
+ }
+ function tt(n) {
+ if (!n) return n === 0 ? n : 0;
+ if (((n = Pn(n)), n === xt || n === -xt)) {
+ var t = n < 0 ? -1 : 1;
+ return t * zl;
+ }
+ return n === n ? n : 0;
+ }
+ function P(n) {
+ var t = tt(n),
+ e = t % 1;
+ return t === t ? (e ? t - e : t) : 0;
+ }
+ function Ka(n) {
+ return n ? mt(P(n), 0, Hn) : 0;
+ }
+ function Pn(n) {
+ if (typeof n == \\"number\\") return n;
+ if (An(n)) return Fe;
+ if (Q(n)) {
+ var t = typeof n.valueOf == \\"function\\" ? n.valueOf() : n;
+ n = Q(t) ? t + \\"\\" : t;
+ }
+ if (typeof n != \\"string\\") return n === 0 ? n : +n;
+ n = lf(n);
+ var e = wc.test(n);
+ return e || Ac.test(n)
+ ? kc(n.slice(2), e ? 2 : 8)
+ : xc.test(n)
+ ? Fe
+ : +n;
+ }
+ function Za(n) {
+ return $n(n, dn(n));
+ }
+ function Bd(n) {
+ return n ? mt(P(n), -ft, ft) : n === 0 ? n : 0;
+ }
+ function H(n) {
+ return n == null ? \\"\\" : yn(n);
+ }
+ var Nd = zt(function (n, t) {
+ if (Ae(t) || _n(t)) {
+ $n(t, un(t), n);
+ return;
+ }
+ for (var e in t) $.call(t, e) && _e(n, e, t[e]);
+ }),
+ Ya = zt(function (n, t) {
+ $n(t, dn(t), n);
+ }),
+ Cr = zt(function (n, t, e, i) {
+ $n(t, dn(t), n, i);
+ }),
+ Gd = zt(function (n, t, e, i) {
+ $n(t, un(t), n, i);
+ }),
+ Hd = jn(xi);
+ function zd(n, t) {
+ var e = Ht(n);
+ return t == null ? e : Sf(e, t);
+ }
+ var $d = F(function (n, t) {
+ n = K(n);
+ var e = -1,
+ i = t.length,
+ u = i > 2 ? t[2] : r;
+ for (u && hn(t[0], t[1], u) && (i = 1); ++e < i; )
+ for (var a = t[e], s = dn(a), c = -1, p = s.length; ++c < p; ) {
+ var d = s[c],
+ v = n[d];
+ (v === r || (Wn(v, Bt[d]) && !$.call(n, d))) && (n[d] = a[d]);
+ }
+ return n;
+ }),
+ Kd = F(function (n) {
+ return n.push(r, la), xn(Xa, r, n);
+ });
+ function Zd(n, t) {
+ return ff(n, O(t, 3), zn);
+ }
+ function Yd(n, t) {
+ return ff(n, O(t, 3), yi);
+ }
+ function Xd(n, t) {
+ return n == null ? n : wi(n, O(t, 3), dn);
+ }
+ function Jd(n, t) {
+ return n == null ? n : Rf(n, O(t, 3), dn);
+ }
+ function Qd(n, t) {
+ return n && zn(n, O(t, 3));
+ }
+ function Vd(n, t) {
+ return n && yi(n, O(t, 3));
+ }
+ function jd(n) {
+ return n == null ? [] : ar(n, un(n));
+ }
+ function kd(n) {
+ return n == null ? [] : ar(n, dn(n));
+ }
+ function ji(n, t, e) {
+ var i = n == null ? r : Tt(n, t);
+ return i === r ? e : i;
+ }
+ function n0(n, t) {
+ return n != null && pa(n, t, mp);
+ }
+ function ki(n, t) {
+ return n != null && pa(n, t, Tp);
+ }
+ var t0 = ua(function (n, t, e) {
+ t != null && typeof t.toString != \\"function\\" && (t = Xe.call(t)),
+ (n[t] = e);
+ }, tu(vn)),
+ e0 = ua(function (n, t, e) {
+ t != null && typeof t.toString != \\"function\\" && (t = Xe.call(t)),
+ $.call(n, t) ? n[t].push(e) : (n[t] = [e]);
+ }, O),
+ r0 = F(ve);
+ function un(n) {
+ return _n(n) ? mf(n) : Ti(n);
+ }
+ function dn(n) {
+ return _n(n) ? mf(n, !0) : Fp(n);
+ }
+ function i0(n, t) {
+ var e = {};
+ return (
+ (t = O(t, 3)),
+ zn(n, function (i, u, a) {
+ Qn(e, t(i, u, a), i);
+ }),
+ e
+ );
+ }
+ function u0(n, t) {
+ var e = {};
+ return (
+ (t = O(t, 3)),
+ zn(n, function (i, u, a) {
+ Qn(e, u, t(i, u, a));
+ }),
+ e
+ );
+ }
+ var f0 = zt(function (n, t, e) {
+ or(n, t, e);
+ }),
+ Xa = zt(function (n, t, e, i) {
+ or(n, t, e, i);
+ }),
+ a0 = jn(function (n, t) {
+ var e = {};
+ if (n == null) return e;
+ var i = !1;
+ (t = J(t, function (a) {
+ return (a = gt(a, n)), i || (i = a.length > 1), a;
+ })),
+ $n(n, Ui(n), e),
+ i && (e = En(e, j | an | Tn, tg));
+ for (var u = t.length; u--; ) Ri(e, t[u]);
+ return e;
+ });
+ function o0(n, t) {
+ return Ja(n, mr(O(t)));
+ }
+ var s0 = jn(function (n, t) {
+ return n == null ? {} : qp(n, t);
+ });
+ function Ja(n, t) {
+ if (n == null) return {};
+ var e = J(Ui(n), function (i) {
+ return [i];
+ });
+ return (
+ (t = O(t)),
+ Nf(n, e, function (i, u) {
+ return t(i, u[0]);
+ })
+ );
+ }
+ function l0(n, t, e) {
+ t = gt(t, n);
+ var i = -1,
+ u = t.length;
+ for (u || ((u = 1), (n = r)); ++i < u; ) {
+ var a = n == null ? r : n[Kn(t[i])];
+ a === r && ((i = u), (a = e)), (n = nt(a) ? a.call(n) : a);
+ }
+ return n;
+ }
+ function c0(n, t, e) {
+ return n == null ? n : we(n, t, e);
+ }
+ function h0(n, t, e, i) {
+ return (
+ (i = typeof i == \\"function\\" ? i : r), n == null ? n : we(n, t, e, i)
+ );
+ }
+ var Qa = oa(un),
+ Va = oa(dn);
+ function p0(n, t, e) {
+ var i = L(n),
+ u = i || dt(n) || Zt(n);
+ if (((t = O(t, 4)), e == null)) {
+ var a = n && n.constructor;
+ u
+ ? (e = i ? new a() : [])
+ : Q(n)
+ ? (e = nt(a) ? Ht(Ve(n)) : {})
+ : (e = {});
+ }
+ return (
+ (u ? Cn : zn)(n, function (s, c, p) {
+ return t(e, s, c, p);
+ }),
+ e
+ );
+ }
+ function g0(n, t) {
+ return n == null ? !0 : Ri(n, t);
+ }
+ function _0(n, t, e) {
+ return n == null ? n : Kf(n, t, Mi(e));
+ }
+ function d0(n, t, e, i) {
+ return (
+ (i = typeof i == \\"function\\" ? i : r),
+ n == null ? n : Kf(n, t, Mi(e), i)
+ );
+ }
+ function Yt(n) {
+ return n == null ? [] : ci(n, un(n));
+ }
+ function v0(n) {
+ return n == null ? [] : ci(n, dn(n));
+ }
+ function x0(n, t, e) {
+ return (
+ e === r && ((e = t), (t = r)),
+ e !== r && ((e = Pn(e)), (e = e === e ? e : 0)),
+ t !== r && ((t = Pn(t)), (t = t === t ? t : 0)),
+ mt(Pn(n), t, e)
+ );
+ }
+ function w0(n, t, e) {
+ return (
+ (t = tt(t)),
+ e === r ? ((e = t), (t = 0)) : (e = tt(e)),
+ (n = Pn(n)),
+ Sp(n, t, e)
+ );
+ }
+ function y0(n, t, e) {
+ if (
+ (e && typeof e != \\"boolean\\" && hn(n, t, e) && (t = e = r),
+ e === r &&
+ (typeof t == \\"boolean\\"
+ ? ((e = t), (t = r))
+ : typeof n == \\"boolean\\" && ((e = n), (n = r))),
+ n === r && t === r
+ ? ((n = 0), (t = 1))
+ : ((n = tt(n)), t === r ? ((t = n), (n = 0)) : (t = tt(t))),
+ n > t)
+ ) {
+ var i = n;
+ (n = t), (t = i);
+ }
+ if (e || n % 1 || t % 1) {
+ var u = Af();
+ return on(n + u * (t - n + jc(\\"1e-\\" + ((u + \\"\\").length - 1))), t);
+ }
+ return Oi(n, t);
+ }
+ var A0 = $t(function (n, t, e) {
+ return (t = t.toLowerCase()), n + (e ? ja(t) : t);
+ });
+ function ja(n) {
+ return nu(H(n).toLowerCase());
+ }
+ function ka(n) {
+ return (n = H(n)), n && n.replace(mc, ch).replace(Hc, \\"\\");
+ }
+ function b0(n, t, e) {
+ (n = H(n)), (t = yn(t));
+ var i = n.length;
+ e = e === r ? i : mt(P(e), 0, i);
+ var u = e;
+ return (e -= t.length), e >= 0 && n.slice(e, u) == t;
+ }
+ function m0(n) {
+ return (n = H(n)), n && rc.test(n) ? n.replace(Eu, hh) : n;
+ }
+ function T0(n) {
+ return (n = H(n)), n && sc.test(n) ? n.replace(Jr, \\"\\\\\\\\$&\\") : n;
+ }
+ var S0 = $t(function (n, t, e) {
+ return n + (e ? \\"-\\" : \\"\\") + t.toLowerCase();
+ }),
+ C0 = $t(function (n, t, e) {
+ return n + (e ? \\" \\" : \\"\\") + t.toLowerCase();
+ }),
+ O0 = ea(\\"toLowerCase\\");
+ function I0(n, t, e) {
+ (n = H(n)), (t = P(t));
+ var i = t ? Ut(n) : 0;
+ if (!t || i >= t) return n;
+ var u = (t - i) / 2;
+ return gr(tr(u), e) + n + gr(nr(u), e);
+ }
+ function E0(n, t, e) {
+ (n = H(n)), (t = P(t));
+ var i = t ? Ut(n) : 0;
+ return t && i < t ? n + gr(t - i, e) : n;
+ }
+ function R0(n, t, e) {
+ (n = H(n)), (t = P(t));
+ var i = t ? Ut(n) : 0;
+ return t && i < t ? gr(t - i, e) + n : n;
+ }
+ function L0(n, t, e) {
+ return (
+ e || t == null ? (t = 0) : t && (t = +t),
+ Uh(H(n).replace(Qr, \\"\\"), t || 0)
+ );
+ }
+ function P0(n, t, e) {
+ return (
+ (e ? hn(n, t, e) : t === r) ? (t = 1) : (t = P(t)), Ii(H(n), t)
+ );
+ }
+ function M0() {
+ var n = arguments,
+ t = H(n[0]);
+ return n.length < 3 ? t : t.replace(n[1], n[2]);
+ }
+ var F0 = $t(function (n, t, e) {
+ return n + (e ? \\"_\\" : \\"\\") + t.toLowerCase();
+ });
+ function D0(n, t, e) {
+ return (
+ e && typeof e != \\"number\\" && hn(n, t, e) && (t = e = r),
+ (e = e === r ? Hn : e >>> 0),
+ e
+ ? ((n = H(n)),
+ n &&
+ (typeof t == \\"string\\" || (t != null && !Vi(t))) &&
+ ((t = yn(t)), !t && Wt(n))
+ ? _t(Dn(n), 0, e)
+ : n.split(t, e))
+ : []
+ );
+ }
+ var q0 = $t(function (n, t, e) {
+ return n + (e ? \\" \\" : \\"\\") + nu(t);
+ });
+ function W0(n, t, e) {
+ return (
+ (n = H(n)),
+ (e = e == null ? 0 : mt(P(e), 0, n.length)),
+ (t = yn(t)),
+ n.slice(e, e + t.length) == t
+ );
+ }
+ function U0(n, t, e) {
+ var i = f.templateSettings;
+ e && hn(n, t, e) && (t = r), (n = H(n)), (t = Cr({}, t, i, sa));
+ var u = Cr({}, t.imports, i.imports, sa),
+ a = un(u),
+ s = ci(u, a),
+ c,
+ p,
+ d = 0,
+ v = t.interpolate || Be,
+ y = \\"__p += '\\",
+ A = pi(
+ (t.escape || Be).source +
+ \\"|\\" +
+ v.source +
+ \\"|\\" +
+ (v === Ru ? vc : Be).source +
+ \\"|\\" +
+ (t.evaluate || Be).source +
+ \\"|$\\",
+ \\"g\\"
+ ),
+ T =
+ \\"//# sourceURL=\\" +
+ ($.call(t, \\"sourceURL\\")
+ ? (t.sourceURL + \\"\\").replace(/\\\\s/g, \\" \\")
+ : \\"lodash.templateSources[\\" + ++Yc + \\"]\\") +
+ \`
+\`;
+ n.replace(A, function (E, W, B, bn, pn, mn) {
+ return (
+ B || (B = bn),
+ (y += n.slice(d, mn).replace(Tc, ph)),
+ W &&
+ ((c = !0),
+ (y +=
+ \`' +
+__e(\` +
+ W +
+ \`) +
+'\`)),
+ pn &&
+ ((p = !0),
+ (y +=
+ \`';
+\` +
+ pn +
+ \`;
+__p += '\`)),
+ B &&
+ (y +=
+ \`' +
+((__t = (\` +
+ B +
+ \`)) == null ? '' : __t) +
+'\`),
+ (d = mn + E.length),
+ E
+ );
+ }),
+ (y += \`';
+\`);
+ var I = $.call(t, \\"variable\\") && t.variable;
+ if (!I)
+ y =
+ \`with (obj) {
+\` +
+ y +
+ \`
+}
+\`;
+ else if (_c.test(I)) throw new R(D);
+ (y = (p ? y.replace(kl, \\"\\") : y)
+ .replace(nc, \\"$1\\")
+ .replace(tc, \\"$1;\\")),
+ (y =
+ \\"function(\\" +
+ (I || \\"obj\\") +
+ \`) {
+\` +
+ (I
+ ? \\"\\"
+ : \`obj || (obj = {});
+\`) +
+ \\"var __t, __p = ''\\" +
+ (c ? \\", __e = _.escape\\" : \\"\\") +
+ (p
+ ? \`, __j = Array.prototype.join;
+function print() { __p += __j.call(arguments, '') }
+\`
+ : \`;
+\`) +
+ y +
+ \`return __p
+}\`);
+ var M = to(function () {
+ return G(a, T + \\"return \\" + y).apply(r, s);
+ });
+ if (((M.source = y), Qi(M))) throw M;
+ return M;
+ }
+ function B0(n) {
+ return H(n).toLowerCase();
+ }
+ function N0(n) {
+ return H(n).toUpperCase();
+ }
+ function G0(n, t, e) {
+ if (((n = H(n)), n && (e || t === r))) return lf(n);
+ if (!n || !(t = yn(t))) return n;
+ var i = Dn(n),
+ u = Dn(t),
+ a = cf(i, u),
+ s = hf(i, u) + 1;
+ return _t(i, a, s).join(\\"\\");
+ }
+ function H0(n, t, e) {
+ if (((n = H(n)), n && (e || t === r))) return n.slice(0, gf(n) + 1);
+ if (!n || !(t = yn(t))) return n;
+ var i = Dn(n),
+ u = hf(i, Dn(t)) + 1;
+ return _t(i, 0, u).join(\\"\\");
+ }
+ function z0(n, t, e) {
+ if (((n = H(n)), n && (e || t === r))) return n.replace(Qr, \\"\\");
+ if (!n || !(t = yn(t))) return n;
+ var i = Dn(n),
+ u = cf(i, Dn(t));
+ return _t(i, u).join(\\"\\");
+ }
+ function $0(n, t) {
+ var e = Wl,
+ i = Ul;
+ if (Q(t)) {
+ var u = \\"separator\\" in t ? t.separator : u;
+ (e = \\"length\\" in t ? P(t.length) : e),
+ (i = \\"omission\\" in t ? yn(t.omission) : i);
+ }
+ n = H(n);
+ var a = n.length;
+ if (Wt(n)) {
+ var s = Dn(n);
+ a = s.length;
+ }
+ if (e >= a) return n;
+ var c = e - Ut(i);
+ if (c < 1) return i;
+ var p = s ? _t(s, 0, c).join(\\"\\") : n.slice(0, c);
+ if (u === r) return p + i;
+ if ((s && (c += p.length - c), Vi(u))) {
+ if (n.slice(c).search(u)) {
+ var d,
+ v = p;
+ for (
+ u.global || (u = pi(u.source, H(Lu.exec(u)) + \\"g\\")),
+ u.lastIndex = 0;
+ (d = u.exec(v));
+
+ )
+ var y = d.index;
+ p = p.slice(0, y === r ? c : y);
+ }
+ } else if (n.indexOf(yn(u), c) != c) {
+ var A = p.lastIndexOf(u);
+ A > -1 && (p = p.slice(0, A));
+ }
+ return p + i;
+ }
+ function K0(n) {
+ return (n = H(n)), n && ec.test(n) ? n.replace(Iu, yh) : n;
+ }
+ var Z0 = $t(function (n, t, e) {
+ return n + (e ? \\" \\" : \\"\\") + t.toUpperCase();
+ }),
+ nu = ea(\\"toUpperCase\\");
+ function no(n, t, e) {
+ return (
+ (n = H(n)),
+ (t = e ? r : t),
+ t === r ? (_h(n) ? mh(n) : fh(n)) : n.match(t) || []
+ );
+ }
+ var to = F(function (n, t) {
+ try {
+ return xn(n, r, t);
+ } catch (e) {
+ return Qi(e) ? e : new R(e);
+ }
+ }),
+ Y0 = jn(function (n, t) {
+ return (
+ Cn(t, function (e) {
+ (e = Kn(e)), Qn(n, e, Xi(n[e], n));
+ }),
+ n
+ );
+ });
+ function X0(n) {
+ var t = n == null ? 0 : n.length,
+ e = O();
+ return (
+ (n = t
+ ? J(n, function (i) {
+ if (typeof i[1] != \\"function\\") throw new On(m);
+ return [e(i[0]), i[1]];
+ })
+ : []),
+ F(function (i) {
+ for (var u = -1; ++u < t; ) {
+ var a = n[u];
+ if (xn(a[0], this, i)) return xn(a[1], this, i);
+ }
+ })
+ );
+ }
+ function J0(n) {
+ return yp(En(n, j));
+ }
+ function tu(n) {
+ return function () {
+ return n;
+ };
+ }
+ function Q0(n, t) {
+ return n == null || n !== n ? t : n;
+ }
+ var V0 = ia(),
+ j0 = ia(!0);
+ function vn(n) {
+ return n;
+ }
+ function eu(n) {
+ return Ff(typeof n == \\"function\\" ? n : En(n, j));
+ }
+ function k0(n) {
+ return qf(En(n, j));
+ }
+ function nv(n, t) {
+ return Wf(n, En(t, j));
+ }
+ var tv = F(function (n, t) {
+ return function (e) {
+ return ve(e, n, t);
+ };
+ }),
+ ev = F(function (n, t) {
+ return function (e) {
+ return ve(n, e, t);
+ };
+ });
+ function ru(n, t, e) {
+ var i = un(t),
+ u = ar(t, i);
+ e == null &&
+ !(Q(t) && (u.length || !i.length)) &&
+ ((e = t), (t = n), (n = this), (u = ar(t, un(t))));
+ var a = !(Q(e) && \\"chain\\" in e) || !!e.chain,
+ s = nt(n);
+ return (
+ Cn(u, function (c) {
+ var p = t[c];
+ (n[c] = p),
+ s &&
+ (n.prototype[c] = function () {
+ var d = this.__chain__;
+ if (a || d) {
+ var v = n(this.__wrapped__),
+ y = (v.__actions__ = gn(this.__actions__));
+ return (
+ y.push({ func: p, args: arguments, thisArg: n }),
+ (v.__chain__ = d),
+ v
+ );
+ }
+ return p.apply(n, ot([this.value()], arguments));
+ });
+ }),
+ n
+ );
+ }
+ function rv() {
+ return rn._ === this && (rn._ = Eh), this;
+ }
+ function iu() {}
+ function iv(n) {
+ return (
+ (n = P(n)),
+ F(function (t) {
+ return Uf(t, n);
+ })
+ );
+ }
+ var uv = Di(J),
+ fv = Di(uf),
+ av = Di(fi);
+ function eo(n) {
+ return Hi(n) ? ai(Kn(n)) : Wp(n);
+ }
+ function ov(n) {
+ return function (t) {
+ return n == null ? r : Tt(n, t);
+ };
+ }
+ var sv = fa(),
+ lv = fa(!0);
+ function uu() {
+ return [];
+ }
+ function fu() {
+ return !1;
+ }
+ function cv() {
+ return {};
+ }
+ function hv() {
+ return \\"\\";
+ }
+ function pv() {
+ return !0;
+ }
+ function gv(n, t) {
+ if (((n = P(n)), n < 1 || n > ft)) return [];
+ var e = Hn,
+ i = on(n, Hn);
+ (t = O(t)), (n -= Hn);
+ for (var u = li(i, t); ++e < n; ) t(e);
+ return u;
+ }
+ function _v(n) {
+ return L(n) ? J(n, Kn) : An(n) ? [n] : gn(ba(H(n)));
+ }
+ function dv(n) {
+ var t = ++Oh;
+ return H(n) + t;
+ }
+ var vv = pr(function (n, t) {
+ return n + t;
+ }, 0),
+ xv = qi(\\"ceil\\"),
+ wv = pr(function (n, t) {
+ return n / t;
+ }, 1),
+ yv = qi(\\"floor\\");
+ function Av(n) {
+ return n && n.length ? fr(n, vn, Ai) : r;
+ }
+ function bv(n, t) {
+ return n && n.length ? fr(n, O(t, 2), Ai) : r;
+ }
+ function mv(n) {
+ return of(n, vn);
+ }
+ function Tv(n, t) {
+ return of(n, O(t, 2));
+ }
+ function Sv(n) {
+ return n && n.length ? fr(n, vn, Si) : r;
+ }
+ function Cv(n, t) {
+ return n && n.length ? fr(n, O(t, 2), Si) : r;
+ }
+ var Ov = pr(function (n, t) {
+ return n * t;
+ }, 1),
+ Iv = qi(\\"round\\"),
+ Ev = pr(function (n, t) {
+ return n - t;
+ }, 0);
+ function Rv(n) {
+ return n && n.length ? si(n, vn) : 0;
+ }
+ function Lv(n, t) {
+ return n && n.length ? si(n, O(t, 2)) : 0;
+ }
+ return (
+ (f.after = k_),
+ (f.ary = Ma),
+ (f.assign = Nd),
+ (f.assignIn = Ya),
+ (f.assignInWith = Cr),
+ (f.assignWith = Gd),
+ (f.at = Hd),
+ (f.before = Fa),
+ (f.bind = Xi),
+ (f.bindAll = Y0),
+ (f.bindKey = Da),
+ (f.castArray = cd),
+ (f.chain = Ra),
+ (f.chunk = yg),
+ (f.compact = Ag),
+ (f.concat = bg),
+ (f.cond = X0),
+ (f.conforms = J0),
+ (f.constant = tu),
+ (f.countBy = R_),
+ (f.create = zd),
+ (f.curry = qa),
+ (f.curryRight = Wa),
+ (f.debounce = Ua),
+ (f.defaults = $d),
+ (f.defaultsDeep = Kd),
+ (f.defer = nd),
+ (f.delay = td),
+ (f.difference = mg),
+ (f.differenceBy = Tg),
+ (f.differenceWith = Sg),
+ (f.drop = Cg),
+ (f.dropRight = Og),
+ (f.dropRightWhile = Ig),
+ (f.dropWhile = Eg),
+ (f.fill = Rg),
+ (f.filter = P_),
+ (f.flatMap = D_),
+ (f.flatMapDeep = q_),
+ (f.flatMapDepth = W_),
+ (f.flatten = Ca),
+ (f.flattenDeep = Lg),
+ (f.flattenDepth = Pg),
+ (f.flip = ed),
+ (f.flow = V0),
+ (f.flowRight = j0),
+ (f.fromPairs = Mg),
+ (f.functions = jd),
+ (f.functionsIn = kd),
+ (f.groupBy = U_),
+ (f.initial = Dg),
+ (f.intersection = qg),
+ (f.intersectionBy = Wg),
+ (f.intersectionWith = Ug),
+ (f.invert = t0),
+ (f.invertBy = e0),
+ (f.invokeMap = N_),
+ (f.iteratee = eu),
+ (f.keyBy = G_),
+ (f.keys = un),
+ (f.keysIn = dn),
+ (f.map = yr),
+ (f.mapKeys = i0),
+ (f.mapValues = u0),
+ (f.matches = k0),
+ (f.matchesProperty = nv),
+ (f.memoize = br),
+ (f.merge = f0),
+ (f.mergeWith = Xa),
+ (f.method = tv),
+ (f.methodOf = ev),
+ (f.mixin = ru),
+ (f.negate = mr),
+ (f.nthArg = iv),
+ (f.omit = a0),
+ (f.omitBy = o0),
+ (f.once = rd),
+ (f.orderBy = H_),
+ (f.over = uv),
+ (f.overArgs = id),
+ (f.overEvery = fv),
+ (f.overSome = av),
+ (f.partial = Ji),
+ (f.partialRight = Ba),
+ (f.partition = z_),
+ (f.pick = s0),
+ (f.pickBy = Ja),
+ (f.property = eo),
+ (f.propertyOf = ov),
+ (f.pull = Hg),
+ (f.pullAll = Ia),
+ (f.pullAllBy = zg),
+ (f.pullAllWith = $g),
+ (f.pullAt = Kg),
+ (f.range = sv),
+ (f.rangeRight = lv),
+ (f.rearg = ud),
+ (f.reject = Z_),
+ (f.remove = Zg),
+ (f.rest = fd),
+ (f.reverse = Zi),
+ (f.sampleSize = X_),
+ (f.set = c0),
+ (f.setWith = h0),
+ (f.shuffle = J_),
+ (f.slice = Yg),
+ (f.sortBy = j_),
+ (f.sortedUniq = n_),
+ (f.sortedUniqBy = t_),
+ (f.split = D0),
+ (f.spread = ad),
+ (f.tail = e_),
+ (f.take = r_),
+ (f.takeRight = i_),
+ (f.takeRightWhile = u_),
+ (f.takeWhile = f_),
+ (f.tap = A_),
+ (f.throttle = od),
+ (f.thru = wr),
+ (f.toArray = $a),
+ (f.toPairs = Qa),
+ (f.toPairsIn = Va),
+ (f.toPath = _v),
+ (f.toPlainObject = Za),
+ (f.transform = p0),
+ (f.unary = sd),
+ (f.union = a_),
+ (f.unionBy = o_),
+ (f.unionWith = s_),
+ (f.uniq = l_),
+ (f.uniqBy = c_),
+ (f.uniqWith = h_),
+ (f.unset = g0),
+ (f.unzip = Yi),
+ (f.unzipWith = Ea),
+ (f.update = _0),
+ (f.updateWith = d0),
+ (f.values = Yt),
+ (f.valuesIn = v0),
+ (f.without = p_),
+ (f.words = no),
+ (f.wrap = ld),
+ (f.xor = g_),
+ (f.xorBy = __),
+ (f.xorWith = d_),
+ (f.zip = v_),
+ (f.zipObject = x_),
+ (f.zipObjectDeep = w_),
+ (f.zipWith = y_),
+ (f.entries = Qa),
+ (f.entriesIn = Va),
+ (f.extend = Ya),
+ (f.extendWith = Cr),
+ ru(f, f),
+ (f.add = vv),
+ (f.attempt = to),
+ (f.camelCase = A0),
+ (f.capitalize = ja),
+ (f.ceil = xv),
+ (f.clamp = x0),
+ (f.clone = hd),
+ (f.cloneDeep = gd),
+ (f.cloneDeepWith = _d),
+ (f.cloneWith = pd),
+ (f.conformsTo = dd),
+ (f.deburr = ka),
+ (f.defaultTo = Q0),
+ (f.divide = wv),
+ (f.endsWith = b0),
+ (f.eq = Wn),
+ (f.escape = m0),
+ (f.escapeRegExp = T0),
+ (f.every = L_),
+ (f.find = M_),
+ (f.findIndex = Ta),
+ (f.findKey = Zd),
+ (f.findLast = F_),
+ (f.findLastIndex = Sa),
+ (f.findLastKey = Yd),
+ (f.floor = yv),
+ (f.forEach = La),
+ (f.forEachRight = Pa),
+ (f.forIn = Xd),
+ (f.forInRight = Jd),
+ (f.forOwn = Qd),
+ (f.forOwnRight = Vd),
+ (f.get = ji),
+ (f.gt = vd),
+ (f.gte = xd),
+ (f.has = n0),
+ (f.hasIn = ki),
+ (f.head = Oa),
+ (f.identity = vn),
+ (f.includes = B_),
+ (f.indexOf = Fg),
+ (f.inRange = w0),
+ (f.invoke = r0),
+ (f.isArguments = Ot),
+ (f.isArray = L),
+ (f.isArrayBuffer = wd),
+ (f.isArrayLike = _n),
+ (f.isArrayLikeObject = k),
+ (f.isBoolean = yd),
+ (f.isBuffer = dt),
+ (f.isDate = Ad),
+ (f.isElement = bd),
+ (f.isEmpty = md),
+ (f.isEqual = Td),
+ (f.isEqualWith = Sd),
+ (f.isError = Qi),
+ (f.isFinite = Cd),
+ (f.isFunction = nt),
+ (f.isInteger = Na),
+ (f.isLength = Tr),
+ (f.isMap = Ga),
+ (f.isMatch = Od),
+ (f.isMatchWith = Id),
+ (f.isNaN = Ed),
+ (f.isNative = Rd),
+ (f.isNil = Pd),
+ (f.isNull = Ld),
+ (f.isNumber = Ha),
+ (f.isObject = Q),
+ (f.isObjectLike = V),
+ (f.isPlainObject = me),
+ (f.isRegExp = Vi),
+ (f.isSafeInteger = Md),
+ (f.isSet = za),
+ (f.isString = Sr),
+ (f.isSymbol = An),
+ (f.isTypedArray = Zt),
+ (f.isUndefined = Fd),
+ (f.isWeakMap = Dd),
+ (f.isWeakSet = qd),
+ (f.join = Bg),
+ (f.kebabCase = S0),
+ (f.last = Ln),
+ (f.lastIndexOf = Ng),
+ (f.lowerCase = C0),
+ (f.lowerFirst = O0),
+ (f.lt = Wd),
+ (f.lte = Ud),
+ (f.max = Av),
+ (f.maxBy = bv),
+ (f.mean = mv),
+ (f.meanBy = Tv),
+ (f.min = Sv),
+ (f.minBy = Cv),
+ (f.stubArray = uu),
+ (f.stubFalse = fu),
+ (f.stubObject = cv),
+ (f.stubString = hv),
+ (f.stubTrue = pv),
+ (f.multiply = Ov),
+ (f.nth = Gg),
+ (f.noConflict = rv),
+ (f.noop = iu),
+ (f.now = Ar),
+ (f.pad = I0),
+ (f.padEnd = E0),
+ (f.padStart = R0),
+ (f.parseInt = L0),
+ (f.random = y0),
+ (f.reduce = $_),
+ (f.reduceRight = K_),
+ (f.repeat = P0),
+ (f.replace = M0),
+ (f.result = l0),
+ (f.round = Iv),
+ (f.runInContext = h),
+ (f.sample = Y_),
+ (f.size = Q_),
+ (f.snakeCase = F0),
+ (f.some = V_),
+ (f.sortedIndex = Xg),
+ (f.sortedIndexBy = Jg),
+ (f.sortedIndexOf = Qg),
+ (f.sortedLastIndex = Vg),
+ (f.sortedLastIndexBy = jg),
+ (f.sortedLastIndexOf = kg),
+ (f.startCase = q0),
+ (f.startsWith = W0),
+ (f.subtract = Ev),
+ (f.sum = Rv),
+ (f.sumBy = Lv),
+ (f.template = U0),
+ (f.times = gv),
+ (f.toFinite = tt),
+ (f.toInteger = P),
+ (f.toLength = Ka),
+ (f.toLower = B0),
+ (f.toNumber = Pn),
+ (f.toSafeInteger = Bd),
+ (f.toString = H),
+ (f.toUpper = N0),
+ (f.trim = G0),
+ (f.trimEnd = H0),
+ (f.trimStart = z0),
+ (f.truncate = $0),
+ (f.unescape = K0),
+ (f.uniqueId = dv),
+ (f.upperCase = Z0),
+ (f.upperFirst = nu),
+ (f.each = La),
+ (f.eachRight = Pa),
+ (f.first = Oa),
+ ru(
+ f,
+ (function () {
+ var n = {};
+ return (
+ zn(f, function (t, e) {
+ $.call(f.prototype, e) || (n[e] = t);
+ }),
+ n
+ );
+ })(),
+ { chain: !1 }
+ ),
+ (f.VERSION = o),
+ Cn(
+ [
+ \\"bind\\",
+ \\"bindKey\\",
+ \\"curry\\",
+ \\"curryRight\\",
+ \\"partial\\",
+ \\"partialRight\\",
+ ],
+ function (n) {
+ f[n].placeholder = f;
+ }
+ ),
+ Cn([\\"drop\\", \\"take\\"], function (n, t) {
+ (U.prototype[n] = function (e) {
+ e = e === r ? 1 : en(P(e), 0);
+ var i = this.__filtered__ && !t ? new U(this) : this.clone();
+ return (
+ i.__filtered__
+ ? (i.__takeCount__ = on(e, i.__takeCount__))
+ : i.__views__.push({
+ size: on(e, Hn),
+ type: n + (i.__dir__ < 0 ? \\"Right\\" : \\"\\"),
+ }),
+ i
+ );
+ }),
+ (U.prototype[n + \\"Right\\"] = function (e) {
+ return this.reverse()[n](e).reverse();
+ });
+ }),
+ Cn([\\"filter\\", \\"map\\", \\"takeWhile\\"], function (n, t) {
+ var e = t + 1,
+ i = e == Su || e == Hl;
+ U.prototype[n] = function (u) {
+ var a = this.clone();
+ return (
+ a.__iteratees__.push({ iteratee: O(u, 3), type: e }),
+ (a.__filtered__ = a.__filtered__ || i),
+ a
+ );
+ };
+ }),
+ Cn([\\"head\\", \\"last\\"], function (n, t) {
+ var e = \\"take\\" + (t ? \\"Right\\" : \\"\\");
+ U.prototype[n] = function () {
+ return this[e](1).value()[0];
+ };
+ }),
+ Cn([\\"initial\\", \\"tail\\"], function (n, t) {
+ var e = \\"drop\\" + (t ? \\"\\" : \\"Right\\");
+ U.prototype[n] = function () {
+ return this.__filtered__ ? new U(this) : this[e](1);
+ };
+ }),
+ (U.prototype.compact = function () {
+ return this.filter(vn);
+ }),
+ (U.prototype.find = function (n) {
+ return this.filter(n).head();
+ }),
+ (U.prototype.findLast = function (n) {
+ return this.reverse().find(n);
+ }),
+ (U.prototype.invokeMap = F(function (n, t) {
+ return typeof n == \\"function\\"
+ ? new U(this)
+ : this.map(function (e) {
+ return ve(e, n, t);
+ });
+ })),
+ (U.prototype.reject = function (n) {
+ return this.filter(mr(O(n)));
+ }),
+ (U.prototype.slice = function (n, t) {
+ n = P(n);
+ var e = this;
+ return e.__filtered__ && (n > 0 || t < 0)
+ ? new U(e)
+ : (n < 0 ? (e = e.takeRight(-n)) : n && (e = e.drop(n)),
+ t !== r &&
+ ((t = P(t)), (e = t < 0 ? e.dropRight(-t) : e.take(t - n))),
+ e);
+ }),
+ (U.prototype.takeRightWhile = function (n) {
+ return this.reverse().takeWhile(n).reverse();
+ }),
+ (U.prototype.toArray = function () {
+ return this.take(Hn);
+ }),
+ zn(U.prototype, function (n, t) {
+ var e = /^(?:filter|find|map|reject)|While$/.test(t),
+ i = /^(?:head|last)$/.test(t),
+ u = f[i ? \\"take\\" + (t == \\"last\\" ? \\"Right\\" : \\"\\") : t],
+ a = i || /^find/.test(t);
+ !u ||
+ (f.prototype[t] = function () {
+ var s = this.__wrapped__,
+ c = i ? [1] : arguments,
+ p = s instanceof U,
+ d = c[0],
+ v = p || L(s),
+ y = function (W) {
+ var B = u.apply(f, ot([W], c));
+ return i && A ? B[0] : B;
+ };
+ v &&
+ e &&
+ typeof d == \\"function\\" &&
+ d.length != 1 &&
+ (p = v = !1);
+ var A = this.__chain__,
+ T = !!this.__actions__.length,
+ I = a && !A,
+ M = p && !T;
+ if (!a && v) {
+ s = M ? s : new U(this);
+ var E = n.apply(s, c);
+ return (
+ E.__actions__.push({ func: wr, args: [y], thisArg: r }),
+ new In(E, A)
+ );
+ }
+ return I && M
+ ? n.apply(this, c)
+ : ((E = this.thru(y)),
+ I ? (i ? E.value()[0] : E.value()) : E);
+ });
+ }),
+ Cn(
+ [\\"pop\\", \\"push\\", \\"shift\\", \\"sort\\", \\"splice\\", \\"unshift\\"],
+ function (n) {
+ var t = Ke[n],
+ e = /^(?:push|sort|unshift)$/.test(n) ? \\"tap\\" : \\"thru\\",
+ i = /^(?:pop|shift)$/.test(n);
+ f.prototype[n] = function () {
+ var u = arguments;
+ if (i && !this.__chain__) {
+ var a = this.value();
+ return t.apply(L(a) ? a : [], u);
+ }
+ return this[e](function (s) {
+ return t.apply(L(s) ? s : [], u);
+ });
+ };
+ }
+ ),
+ zn(U.prototype, function (n, t) {
+ var e = f[t];
+ if (e) {
+ var i = e.name + \\"\\";
+ $.call(Gt, i) || (Gt[i] = []), Gt[i].push({ name: t, func: e });
+ }
+ }),
+ (Gt[hr(r, vt).name] = [{ name: \\"wrapper\\", func: r }]),
+ (U.prototype.clone = Kh),
+ (U.prototype.reverse = Zh),
+ (U.prototype.value = Yh),
+ (f.prototype.at = b_),
+ (f.prototype.chain = m_),
+ (f.prototype.commit = T_),
+ (f.prototype.next = S_),
+ (f.prototype.plant = O_),
+ (f.prototype.reverse = I_),
+ (f.prototype.toJSON = f.prototype.valueOf = f.prototype.value = E_),
+ (f.prototype.first = f.prototype.head),
+ le && (f.prototype[le] = C_),
+ f
+ );
+ },
+ lt = Th();
+ typeof define == \\"function\\" && typeof define.amd == \\"object\\" && define.amd
+ ? ((rn._ = lt),
+ define(function () {
+ return lt;
+ }))
+ : wt
+ ? (((wt.exports = lt)._ = lt), (ei._ = lt))
+ : (rn._ = lt);
+ }.call(ne));
+});
+x();
+var Fl = au(rl()),
+ Dl = au(Pl()),
+ ql = au(Ml());
+import * as mu from \\"https://mycustomcdn.net/react?version=17.0.2\\";
+function vA() {
+ return mu.createElement(
+ \\"div\\",
+ null,
+ mu.createElement(
+ \\"pre\\",
+ null,
+ JSON.stringify({
+ get: Fl.default,
+ merge: Dl.default,
+ difference: ql.difference,
+ })
+ )
+ );
+}
+export { vA as default };
+/**
+ * @license
+ * Lodash
+ * Copyright OpenJS Foundation and other contributors
+ * Released under MIT license
+ * Based on Underscore.js 1.8.3
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ */
+//# sourceMappingURL=/static/js/index-66YWVUWP.js.map
+"
+`;
+
+exports[`modular-scripts WHEN building a esm-view with a custom ESM CDN THEN rewrites the dependencies according to the template string 1`] = `
+"import * as t from \\"https://mycustomcdn.net/react?version=17.0.2\\";
+function e() {
+ return t.createElement(
+ \\"div\\",
+ { \\"data-testid\\": \\"test-this\\" },
+ \\"this is a modular esm-view\\"
+ );
+}
+export { e as default };
+//# sourceMappingURL=/static/js/index-CWSY44GF.js.map
+"
+`;
+
+exports[`modular-scripts WHEN building a esm-view with various kinds of package dependencies THEN rewrites the dependencies 1`] = `
+"import * as e from \\"https://mycustomcdn.net/react?version=17.0.2\\";
+import r from \\"https://mycustomcdn.net/lodash?version=^4.17.21/get\\";
+import t from \\"https://mycustomcdn.net/lodash.merge?version=^4.6.2\\";
+import { difference as i } from \\"https://mycustomcdn.net/lodash?version=^4.17.21\\";
+function m() {
+ return e.createElement(
+ \\"div\\",
+ null,
+ e.createElement(
+ \\"pre\\",
+ null,
+ JSON.stringify({ get: r, merge: t, difference: i })
+ )
+ );
+}
+export { m as default };
+//# sourceMappingURL=/static/js/index-5PFA727O.js.map
+"
+`;
diff --git a/packages/modular-scripts/src/__tests__/app.node-env.test.ts b/packages/modular-scripts/src/__tests__/app.node-env.test.ts
index e15fb03e4..1b7847aec 100644
--- a/packages/modular-scripts/src/__tests__/app.node-env.test.ts
+++ b/packages/modular-scripts/src/__tests__/app.node-env.test.ts
@@ -62,9 +62,9 @@ describe('when working with a NODE_ENV app', () => {
expect(tree(path.join(modularRoot, 'dist', 'node-env-app')))
.toMatchInlineSnapshot(`
"node-env-app
- ├─ asset-manifest.json #1qjm6tq
+ ├─ asset-manifest.json #5npfrr
├─ favicon.ico #6pu3rg
- ├─ index.html #z3zac4
+ ├─ index.html #9j6678
├─ logo192.png #1nez7vk
├─ logo512.png #1hwqvcc
├─ manifest.json #19gah8o
@@ -72,14 +72,14 @@ describe('when working with a NODE_ENV app', () => {
├─ robots.txt #1sjb8b3
└─ static
└─ js
- ├─ main.1c6de6d0.js #1xkcjze
- ├─ main.1c6de6d0.js.map #ayfbwn
- ├─ runtime-main.182069c4.js #r0hm4v
- └─ runtime-main.182069c4.js.map #ul1xez"
+ ├─ main.a482480b.js #1xwb1v
+ ├─ main.a482480b.js.map #re9pek
+ ├─ runtime-main.97707f9d.js #15lezt9
+ └─ runtime-main.97707f9d.js.map #12i5ddp"
`);
});
- it('can generate a js/main.1c6de6d0.js', async () => {
+ it('can generate a js/main.a482480b.js', async () => {
expect(
prettier.format(
String(
@@ -90,12 +90,12 @@ describe('when working with a NODE_ENV app', () => {
'node-env-app',
'static',
'js',
- 'main.1c6de6d0.js',
+ 'main.a482480b.js',
),
),
),
{
- filepath: 'main.1c6de6d0.js',
+ filepath: 'main.a482480b.js',
},
),
).toMatchSnapshot();
diff --git a/packages/modular-scripts/src/__tests__/app.test.ts b/packages/modular-scripts/src/__tests__/app.test.ts
index 07119cde6..0bf3b8ad6 100644
--- a/packages/modular-scripts/src/__tests__/app.test.ts
+++ b/packages/modular-scripts/src/__tests__/app.test.ts
@@ -50,6 +50,71 @@ function cleanup() {
beforeAll(cleanup);
afterAll(cleanup);
+describe('when working with a NODE_ENV app', () => {
+ beforeAll(async () => {
+ await modular(
+ 'add node-env-app --unstable-type app --unstable-name node-env-app',
+ { stdio: 'inherit' },
+ );
+
+ await fs.writeFile(
+ path.join(modularRoot, 'packages', 'node-env-app', 'src', 'index.ts'),
+ `
+ console.log(process.env.NODE_ENV);
+
+ export {};
+ `,
+ );
+
+ await modular('build node-env-app', {
+ stdio: 'inherit',
+ });
+ });
+
+ it('can build a app', () => {
+ expect(tree(path.join(modularRoot, 'dist', 'node-env-app')))
+ .toMatchInlineSnapshot(`
+ "node-env-app
+ ├─ asset-manifest.json #5npfrr
+ ├─ favicon.ico #6pu3rg
+ ├─ index.html #9j6678
+ ├─ logo192.png #1nez7vk
+ ├─ logo512.png #1hwqvcc
+ ├─ manifest.json #19gah8o
+ ├─ package.json
+ ├─ robots.txt #1sjb8b3
+ └─ static
+ └─ js
+ ├─ main.a482480b.js #1xwb1v
+ ├─ main.a482480b.js.map #1vulei2
+ ├─ runtime-main.97707f9d.js #15lezt9
+ └─ runtime-main.97707f9d.js.map #12i5ddp"
+ `);
+ });
+
+ it('can generate a hashed js chunk in the js directory', async () => {
+ expect(
+ prettier.format(
+ String(
+ await fs.readFile(
+ path.join(
+ modularRoot,
+ 'dist',
+ 'node-env-app',
+ 'static',
+ 'js',
+ 'main.a482480b.js',
+ ),
+ ),
+ ),
+ {
+ filepath: 'main.a482480b.js',
+ },
+ ),
+ ).toMatchSnapshot();
+ });
+});
+
describe('When working with a nested app', () => {
beforeAll(async () => {
await modular(
@@ -66,9 +131,9 @@ describe('When working with a nested app', () => {
expect(tree(path.join(modularRoot, 'dist', 'scoped-sample-app')))
.toMatchInlineSnapshot(`
"scoped-sample-app
- ├─ asset-manifest.json #9gtyy0
+ ├─ asset-manifest.json #1wkfjg2
├─ favicon.ico #6pu3rg
- ├─ index.html #1sg09j9
+ ├─ index.html #sphr07
├─ logo192.png #1nez7vk
├─ logo512.png #1hwqvcc
├─ manifest.json #19gah8o
@@ -79,13 +144,13 @@ describe('When working with a nested app', () => {
│ ├─ main.1a7488ce.css #x701i6
│ └─ main.1a7488ce.css.map #z36y5v
└─ js
- ├─ 788.78cfb599.js #1bgvsgc
- ├─ 788.78cfb599.js.LICENSE.txt #eplx8h
- ├─ 788.78cfb599.js.map #jf9876
- ├─ main.3563e93f.js #32b8p3
- ├─ main.3563e93f.js.map #1rftojn
- ├─ runtime-main.83e93d07.js #1mo3tl5
- └─ runtime-main.83e93d07.js.map #3ycdm3"
+ ├─ 788.bbd34b33.js #33pg04
+ ├─ 788.bbd34b33.js.LICENSE.txt #eplx8h
+ ├─ 788.bbd34b33.js.map #1xdy7n0
+ ├─ main.c2bf6fcb.js #3w772b
+ ├─ main.c2bf6fcb.js.map #1sdsrcm
+ ├─ runtime-main.b18f5039.js #qy2lhb
+ └─ runtime-main.b18f5039.js.map #1o0el5f"
`);
});
@@ -181,12 +246,12 @@ describe('When working with a nested app', () => {
'scoped-sample-app',
'static',
'js',
- 'main.3563e93f.js',
+ 'main.c2bf6fcb.js',
),
),
),
{
- filepath: 'main.3563e93f.js',
+ filepath: 'main.c2bf6fcb.js',
},
),
).toMatchSnapshot();
@@ -203,18 +268,18 @@ describe('When working with a nested app', () => {
'scoped-sample-app',
'static',
'js',
- 'runtime-main.83e93d07.js',
+ 'runtime-main.b18f5039.js',
),
),
),
{
- filepath: 'runtime-main.83e93d07.js',
+ filepath: 'runtime-main.b18f5039.js',
},
),
).toMatchSnapshot();
});
- it('can generate a hashed js chunk in the js directory', async () => {
+ it('can generate a hashed vendor chunk in the js directory', async () => {
expect(
prettier.format(
String(
@@ -225,12 +290,12 @@ describe('When working with a nested app', () => {
'scoped-sample-app',
'static',
'js',
- '788.78cfb599.js',
+ '788.bbd34b33.js',
),
),
),
{
- filepath: '788.78cfb599.js',
+ filepath: '788.bbd34b33.js',
},
),
).toMatchSnapshot();
@@ -284,9 +349,9 @@ describe('when working with an app', () => {
expect(tree(path.join(modularRoot, 'dist', 'sample-app')))
.toMatchInlineSnapshot(`
"sample-app
- ├─ asset-manifest.json #qh7m9p
+ ├─ asset-manifest.json #4fw8y3
├─ favicon.ico #6pu3rg
- ├─ index.html #1vs1sdm
+ ├─ index.html #q5x53d
├─ logo192.png #1nez7vk
├─ logo512.png #1hwqvcc
├─ manifest.json #19gah8o
@@ -297,13 +362,13 @@ describe('when working with an app', () => {
│ ├─ main.1a7488ce.css #x701i6
│ └─ main.1a7488ce.css.map #z36y5v
└─ js
- ├─ 316.7a4d5eb7.js #1yh1m0p
- ├─ 316.7a4d5eb7.js.LICENSE.txt #eplx8h
- ├─ 316.7a4d5eb7.js.map #1ib48x2
- ├─ main.97cda94b.js #19zv1xf
- ├─ main.97cda94b.js.map #omkf7l
- ├─ runtime-main.de9fd74d.js #1slkp3g
- └─ runtime-main.de9fd74d.js.map #d7r4im"
+ ├─ 316.394ef80b.js #1mv4xg9
+ ├─ 316.394ef80b.js.LICENSE.txt #eplx8h
+ ├─ 316.394ef80b.js.map #b33pzn
+ ├─ main.a7fe4bac.js #1ovpx07
+ ├─ main.a7fe4bac.js.map #beaj83
+ ├─ runtime-main.7150bca8.js #hhaxbg
+ └─ runtime-main.7150bca8.js.map #1pmss5r"
`);
});
@@ -369,12 +434,12 @@ describe('when working with an app', () => {
'sample-app',
'static',
'js',
- 'main.97cda94b.js',
+ 'main.a7fe4bac.js',
),
),
),
{
- filepath: 'main.97cda94b.js',
+ filepath: 'main.a7fe4bac.js',
},
),
).toMatchSnapshot();
@@ -391,12 +456,12 @@ describe('when working with an app', () => {
'sample-app',
'static',
'js',
- 'runtime-main.de9fd74d.js',
+ 'runtime-main.7150bca8.js',
),
),
),
{
- filepath: 'runtime-main.de9fd74d.js',
+ filepath: 'runtime-main.7150bca8.js',
},
),
).toMatchSnapshot();
@@ -413,12 +478,12 @@ describe('when working with an app', () => {
'sample-app',
'static',
'js',
- '316.7a4d5eb7.js',
+ '316.394ef80b.js',
),
),
),
{
- filepath: '316.7a4d5eb7.js',
+ filepath: '316.394ef80b.js',
},
),
).toMatchSnapshot();
diff --git a/packages/modular-scripts/src/__tests__/esmView.test.ts b/packages/modular-scripts/src/__tests__/esmView.test.ts
new file mode 100644
index 000000000..f2ea5939e
--- /dev/null
+++ b/packages/modular-scripts/src/__tests__/esmView.test.ts
@@ -0,0 +1,516 @@
+import execa from 'execa';
+import { exec } from 'child_process';
+import { promisify } from 'util';
+import _rimraf from 'rimraf';
+import tree from 'tree-view-for-tests';
+import path from 'path';
+import fs from 'fs-extra';
+import {
+ getDocument,
+ getQueriesForElement,
+ queries,
+} from 'pptr-testing-library';
+import prettier from 'prettier';
+import puppeteer from 'puppeteer';
+
+import getModularRoot from '../utils/getModularRoot';
+import { startApp, DevServer } from './start-app';
+import type { CoreProperties } from '@schemastore/package';
+
+const rimraf = promisify(_rimraf);
+
+const modularRoot = getModularRoot();
+
+// eslint-disable-next-line @typescript-eslint/unbound-method
+const { getNodeText } = queries;
+
+// These tests must be executed sequentially with `--runInBand`.
+
+const packagesPath = path.join(getModularRoot(), 'packages');
+
+function modular(str: string, opts: Record = {}) {
+ return execa('yarnpkg', ['modular', ...str.split(' ')], {
+ cwd: modularRoot,
+ cleanup: true,
+ ...opts,
+ });
+}
+
+async function cleanup() {
+ await rimraf(path.join(packagesPath, 'sample-esm-view'));
+ await rimraf(path.join(modularRoot, 'dist/sample-esm-view'));
+ // run yarn so yarn.lock gets reset
+ await execa('yarnpkg', ['--silent'], {
+ cwd: modularRoot,
+ });
+}
+
+const targetedView = 'sample-esm-view';
+
+describe('modular-scripts', () => {
+ beforeAll(async () => {
+ await cleanup();
+ await modular(
+ 'add sample-esm-view --unstable-type esm-view --unstable-name sample-esm-view',
+ { stdio: 'inherit' },
+ );
+
+ await fs.copyFile(
+ path.join(__dirname, 'TestEsmView.test-tsx'),
+ path.join(packagesPath, targetedView, 'src', 'index.tsx'),
+ );
+ });
+
+ afterAll(async () => {
+ await cleanup();
+ });
+
+ describe('Adds packages correctly', () => {
+ it('can add a esm-view', () => {
+ expect(tree(path.join(packagesPath, 'sample-esm-view')))
+ .toMatchInlineSnapshot(`
+ "sample-esm-view
+ ├─ package.json
+ └─ src
+ ├─ EsmView.css #x6onxt
+ ├─ __tests__
+ │ └─ EsmView.test.tsx #113p9x8
+ ├─ index.tsx #plsqyc
+ ├─ logo.svg #1okqmlj
+ └─ react-app-env.d.ts #t4ygcy"
+ `);
+ });
+ });
+
+ describe('WHEN starting a esm-view', () => {
+ let browser: puppeteer.Browser;
+ let devServer: DevServer;
+ let port: string;
+
+ beforeAll(async () => {
+ const launchArgs: puppeteer.LaunchOptions &
+ puppeteer.BrowserLaunchArgumentOptions = {
+ // always run in headless - if you want to debug this locally use the env var to
+ headless: !Boolean(process.env.NO_HEADLESS_TESTS),
+ args: ['--no-sandbox', '--disable-setuid-sandbox'],
+ };
+
+ browser = await puppeteer.launch(launchArgs);
+ port = '4000';
+ devServer = await startApp(targetedView, {
+ env: { PORT: port, USE_MODULAR_ESBUILD: 'true' },
+ });
+ });
+
+ afterAll(async () => {
+ if (browser) {
+ await browser.close();
+ }
+ if (devServer) {
+ // this is the problematic bit, it leaves hanging node processes
+ // despite closing the parent process. Only happens in tests!
+ devServer.kill();
+ }
+ if (port) {
+ // kill all processes listening to the dev server port
+ exec(
+ `lsof -n -i4TCP:${port} | grep LISTEN | awk '{ print $2 }' | xargs kill -9`,
+ (err) => {
+ if (err) {
+ console.log('err: ', err);
+ }
+ console.log(`Cleaned up processes on port ${port}`);
+ },
+ );
+ }
+ });
+
+ it('THEN can start a esm-view', async () => {
+ const page = await browser.newPage();
+ await page.goto(`http://localhost:${port}`, {});
+
+ // eslint-disable-next-line @typescript-eslint/unbound-method
+ const { getByTestId, findByTestId } = getQueriesForElement(
+ await getDocument(page),
+ );
+
+ await findByTestId('test-this');
+
+ // eslint-disable-next-line testing-library/no-await-sync-query
+ expect(await getNodeText(await getByTestId('test-this'))).toBe(
+ 'this is a modular esm-view',
+ );
+ });
+ });
+
+ describe('WHEN building a esm-view', () => {
+ beforeAll(async () => {
+ await modular('build sample-esm-view', {
+ stdio: 'inherit',
+ env: {
+ USE_MODULAR_ESBUILD: 'true',
+ },
+ });
+ });
+
+ it('THEN outputs the correct package.json in the dist directory', async () => {
+ expect(
+ await fs.readJson(
+ path.join(modularRoot, 'dist', 'sample-esm-view', 'package.json'),
+ ),
+ ).toMatchInlineSnapshot(`
+ Object {
+ "bundledDependencies": Array [],
+ "dependencies": Object {
+ "react": "17.0.2",
+ },
+ "modular": Object {
+ "type": "esm-view",
+ },
+ "module": "static/js/index-7JXQF5H3.js",
+ "name": "sample-esm-view",
+ "version": "1.0.0",
+ }
+ `);
+ });
+
+ it('THEN outputs the correct directory structure', () => {
+ expect(tree(path.join(modularRoot, 'dist', 'sample-esm-view')))
+ .toMatchInlineSnapshot(`
+ "sample-esm-view
+ ├─ index.html #17sfbiz
+ ├─ package.json
+ └─ static
+ └─ js
+ ├─ _trampoline.js #14ismmk
+ ├─ index-7JXQF5H3.js #1yztbh1
+ └─ index-7JXQF5H3.js.map #qbs4qx"
+ `);
+ });
+ });
+
+ describe('WHEN building a esm-view with a custom ESM CDN', () => {
+ beforeAll(async () => {
+ await modular('build sample-esm-view', {
+ stdio: 'inherit',
+ env: {
+ USE_MODULAR_ESBUILD: 'true',
+ EXTERNAL_CDN_TEMPLATE:
+ 'https://mycustomcdn.net/[name]?version=[version]',
+ },
+ });
+ });
+
+ it('THEN outputs the correct directory structure', () => {
+ expect(tree(path.join(modularRoot, 'dist', 'sample-esm-view')))
+ .toMatchInlineSnapshot(`
+ "sample-esm-view
+ ├─ index.html #17sfbiz
+ ├─ package.json
+ └─ static
+ └─ js
+ ├─ _trampoline.js #p8m8p8
+ ├─ index-CWSY44GF.js #d3ivus
+ └─ index-CWSY44GF.js.map #u4q009"
+ `);
+ });
+
+ it('THEN rewrites the dependencies according to the template string', async () => {
+ const baseDir = path.join(
+ modularRoot,
+ 'dist',
+ 'sample-esm-view',
+ 'static',
+ 'js',
+ );
+ const trampolineFile = (
+ await fs.readFile(path.join(baseDir, '_trampoline.js'))
+ ).toString();
+
+ const indexFile = (
+ await fs.readFile(path.join(baseDir, 'index-CWSY44GF.js'))
+ ).toString();
+ expect(
+ prettier.format(indexFile, {
+ filepath: 'index-F6YQ237K.js',
+ }),
+ ).toMatchSnapshot();
+ expect(trampolineFile).toContain(
+ `https://mycustomcdn.net/react?version=`,
+ );
+ expect(trampolineFile).toContain(
+ `https://mycustomcdn.net/react-dom?version=`,
+ );
+ expect(indexFile).toContain(`https://mycustomcdn.net/react?version=`);
+ });
+ });
+
+ describe('WHEN building a esm-view with various kinds of package dependencies', () => {
+ beforeAll(async () => {
+ await fs.copyFile(
+ path.join(__dirname, 'TestViewPackages.test-tsx'),
+ path.join(packagesPath, targetedView, 'src', 'index.tsx'),
+ );
+
+ const packageJsonPath = path.join(
+ packagesPath,
+ targetedView,
+ 'package.json',
+ );
+ const packageJson = (await fs.readJSON(
+ packageJsonPath,
+ )) as CoreProperties;
+
+ await fs.writeJSON(
+ packageJsonPath,
+ Object.assign(packageJson, {
+ dependencies: {
+ lodash: '^4.17.21',
+ 'lodash.merge': '^4.6.2',
+ },
+ }),
+ );
+
+ await execa('yarnpkg', [], {
+ cwd: modularRoot,
+ cleanup: true,
+ });
+
+ await modular('build sample-esm-view', {
+ stdio: 'inherit',
+ env: {
+ USE_MODULAR_ESBUILD: 'true',
+ EXTERNAL_CDN_TEMPLATE:
+ 'https://mycustomcdn.net/[name]?version=[version]',
+ },
+ });
+ });
+
+ it('THEN outputs the correct directory structure', () => {
+ expect(tree(path.join(modularRoot, 'dist', 'sample-esm-view')))
+ .toMatchInlineSnapshot(`
+ "sample-esm-view
+ ├─ index.html #17sfbiz
+ ├─ package.json
+ └─ static
+ └─ js
+ ├─ _trampoline.js #gf8drx
+ ├─ index-5PFA727O.js #ciz6lx
+ └─ index-5PFA727O.js.map #np8r25"
+ `);
+ });
+
+ it('THEN rewrites the dependencies', async () => {
+ const baseDir = path.join(
+ modularRoot,
+ 'dist',
+ 'sample-esm-view',
+ 'static',
+ 'js',
+ );
+
+ const indexFile = (
+ await fs.readFile(path.join(baseDir, 'index-5PFA727O.js'))
+ ).toString();
+ expect(
+ prettier.format(indexFile, {
+ filepath: 'index-F6YQ237K.js',
+ }),
+ ).toMatchSnapshot();
+ expect(indexFile).toContain(`https://mycustomcdn.net/react?version=`);
+ expect(indexFile).toContain(
+ `https://mycustomcdn.net/lodash?version=^4.17.21`,
+ );
+ expect(indexFile).toContain(
+ `https://mycustomcdn.net/lodash.merge?version=^4.6.2`,
+ );
+ });
+ });
+
+ describe('WHEN building a esm-view specifying a dependency to not being rewritten', () => {
+ beforeAll(async () => {
+ await modular('build sample-esm-view', {
+ stdio: 'inherit',
+ env: {
+ USE_MODULAR_ESBUILD: 'true',
+ EXTERNAL_CDN_TEMPLATE:
+ 'https://mycustomcdn.net/[name]?version=[version]',
+ EXTERNAL_BLOCK_LIST: 'lodash,lodash.merge',
+ },
+ });
+ });
+
+ it('THEN outputs the correct directory structure', () => {
+ expect(tree(path.join(modularRoot, 'dist', 'sample-esm-view')))
+ .toMatchInlineSnapshot(`
+ "sample-esm-view
+ ├─ index.html #17sfbiz
+ ├─ package.json
+ └─ static
+ └─ js
+ ├─ _trampoline.js #15e3mk0
+ ├─ index-66YWVUWP.js #b5zj9
+ └─ index-66YWVUWP.js.map #1opvigk"
+ `);
+ });
+
+ it('THEN rewrites only the dependencies that are not specified in the blocklist', async () => {
+ const baseDir = path.join(
+ modularRoot,
+ 'dist',
+ 'sample-esm-view',
+ 'static',
+ 'js',
+ );
+
+ const indexFile = (
+ await fs.readFile(path.join(baseDir, 'index-66YWVUWP.js'))
+ ).toString();
+ expect(
+ prettier.format(indexFile, {
+ filepath: 'index-F6YQ237K.js',
+ }),
+ ).toMatchSnapshot();
+ expect(indexFile).toContain(`https://mycustomcdn.net/react?version=`);
+ expect(indexFile).not.toContain(
+ `https://mycustomcdn.net/lodash?version=`,
+ );
+ expect(indexFile).not.toContain(
+ `https://mycustomcdn.net/lodash.merge?version=`,
+ );
+ });
+
+ it('THEN expects the correct bundledDependencies in package.json', async () => {
+ expect(
+ (
+ (await fs.readJson(
+ path.join(modularRoot, 'dist', 'sample-esm-view', 'package.json'),
+ )) as CoreProperties
+ ).bundledDependencies,
+ ).toEqual(['lodash', 'lodash.merge']);
+ });
+ });
+
+ describe('WHEN building a esm-view specifying a dependency to not being rewritten using wildcards', () => {
+ beforeAll(async () => {
+ await modular('build sample-esm-view', {
+ stdio: 'inherit',
+ env: {
+ USE_MODULAR_ESBUILD: 'true',
+ EXTERNAL_CDN_TEMPLATE:
+ 'https://mycustomcdn.net/[name]?version=[version]',
+ EXTERNAL_BLOCK_LIST: 'lodash*',
+ },
+ });
+ });
+
+ it('THEN outputs the correct directory structure', () => {
+ expect(tree(path.join(modularRoot, 'dist', 'sample-esm-view')))
+ .toMatchInlineSnapshot(`
+ "sample-esm-view
+ ├─ index.html #17sfbiz
+ ├─ package.json
+ └─ static
+ └─ js
+ ├─ _trampoline.js #15e3mk0
+ ├─ index-66YWVUWP.js #b5zj9
+ └─ index-66YWVUWP.js.map #1opvigk"
+ `);
+ });
+
+ it('THEN rewrites only the dependencies that are not specified in the blocklist', async () => {
+ const baseDir = path.join(
+ modularRoot,
+ 'dist',
+ 'sample-esm-view',
+ 'static',
+ 'js',
+ );
+
+ const indexFile = (
+ await fs.readFile(path.join(baseDir, 'index-66YWVUWP.js'))
+ ).toString();
+ expect(
+ prettier.format(indexFile, {
+ filepath: 'index-F6YQ237K.js',
+ }),
+ ).toMatchSnapshot();
+ expect(indexFile).toContain(`https://mycustomcdn.net/react?version=`);
+ expect(indexFile).not.toContain(
+ `https://mycustomcdn.net/lodash?version=`,
+ );
+ expect(indexFile).not.toContain(
+ `https://mycustomcdn.net/lodash.merge?version=`,
+ );
+ });
+
+ it('THEN expects the correct bundledDependencies in package.json', async () => {
+ expect(
+ (
+ (await fs.readJson(
+ path.join(modularRoot, 'dist', 'sample-esm-view', 'package.json'),
+ )) as CoreProperties
+ ).bundledDependencies,
+ ).toEqual(['lodash', 'lodash.merge']);
+ });
+ });
+
+ describe('WHEN building a esm-view specifying a dependency to not being rewritten using allow list and wildcards', () => {
+ beforeAll(async () => {
+ await modular('build sample-esm-view', {
+ stdio: 'inherit',
+ env: {
+ USE_MODULAR_ESBUILD: 'true',
+ EXTERNAL_CDN_TEMPLATE:
+ 'https://mycustomcdn.net/[name]?version=[version]',
+ EXTERNAL_ALLOW_LIST: 'react*',
+ },
+ });
+ });
+
+ it('THEN outputs the correct directory structure', () => {
+ expect(tree(path.join(modularRoot, 'dist', 'sample-esm-view')))
+ .toMatchInlineSnapshot(`
+ "sample-esm-view
+ ├─ index.html #17sfbiz
+ ├─ package.json
+ └─ static
+ └─ js
+ ├─ _trampoline.js #15e3mk0
+ ├─ index-66YWVUWP.js #b5zj9
+ └─ index-66YWVUWP.js.map #1opvigk"
+ `);
+ });
+
+ it('THEN rewrites only the dependencies that are not specified in the blocklist', async () => {
+ const baseDir = path.join(
+ modularRoot,
+ 'dist',
+ 'sample-esm-view',
+ 'static',
+ 'js',
+ );
+
+ const indexFile = (
+ await fs.readFile(path.join(baseDir, 'index-66YWVUWP.js'))
+ ).toString();
+ expect(indexFile).toContain(`https://mycustomcdn.net/react?version=`);
+ expect(indexFile).not.toContain(
+ `https://mycustomcdn.net/lodash?version=`,
+ );
+ expect(indexFile).not.toContain(
+ `https://mycustomcdn.net/lodash.merge?version=`,
+ );
+ });
+
+ it('THEN expects the correct bundledDependencies in package.json', async () => {
+ expect(
+ (
+ (await fs.readJson(
+ path.join(modularRoot, 'dist', 'sample-esm-view', 'package.json'),
+ )) as CoreProperties
+ ).bundledDependencies,
+ ).toEqual(['lodash', 'lodash.merge']);
+ });
+ });
+});
diff --git a/packages/modular-scripts/src/addPackage.ts b/packages/modular-scripts/src/addPackage.ts
index 1211c8e7f..e1879bcb9 100644
--- a/packages/modular-scripts/src/addPackage.ts
+++ b/packages/modular-scripts/src/addPackage.ts
@@ -48,9 +48,18 @@ async function addPackage({
type: 'select',
message: `What kind of package is this?`,
choices: [
- { title: 'A plain package', value: 'package' },
- { title: 'A view within an application', value: 'view' },
- { title: 'A standalone application', value: 'app' },
+ { title: 'A plain package (package)', value: 'package' },
+ {
+ title:
+ 'A micro-frontend React view compiled to a bundle file (view)',
+ value: 'view',
+ },
+ {
+ title:
+ 'A micro-frontend React view compiled to ES Modules (esm-view)',
+ value: 'esm-view',
+ },
+ { title: 'A micro-frontend React container (app)', value: 'app' },
{ title: 'Choose my own template', value: '__CHOOSE_MY_OWN__' },
],
initial: 0,
@@ -129,7 +138,7 @@ async function addPackage({
const modularTemplateType = modularTemplatePackageJson?.modular
?.templateType as string;
- if (!['app', 'view', 'package'].includes(modularTemplateType)) {
+ if (!['app', 'esm-view', 'view', 'package'].includes(modularTemplateType)) {
throw new Error(
`${templateName} has modular type: ${modularTemplateType}, which does not exist, please use update this template`,
);
diff --git a/packages/modular-scripts/src/build/index.ts b/packages/modular-scripts/src/build/index.ts
index 6bace5f5c..2ef3f29b0 100644
--- a/packages/modular-scripts/src/build/index.ts
+++ b/packages/modular-scripts/src/build/index.ts
@@ -2,11 +2,13 @@ import { paramCase as toParamCase } from 'change-case';
import chalk from 'chalk';
import * as fs from 'fs-extra';
import * as path from 'path';
-
import * as logger from '../utils/logger';
+import * as minimize from 'html-minifier-terser';
import getModularRoot from '../utils/getModularRoot';
import actionPreflightCheck from '../utils/actionPreflightCheck';
-import isModularType from '../utils/isModularType';
+import { getModularType } from '../utils/isModularType';
+import { filterDependencies } from '../utils/filterDependencies';
+import type { ModularType } from '../utils/isModularType';
import execAsync from '../utils/execAsync';
import getLocation from '../utils/getLocation';
import { setupEnvForDirectory } from '../utils/setupEnv';
@@ -17,6 +19,12 @@ import type { StatsCompilation } from 'webpack';
import { checkBrowsers } from '../utils/checkBrowsers';
import checkRequiredFiles from '../utils/checkRequiredFiles';
import createEsbuildBrowserslistTarget from '../utils/createEsbuildBrowserslistTarget';
+import getClientEnvironment from '../esbuild-scripts/config/getClientEnvironment';
+import {
+ createSyntheticIndex,
+ getEntryPoint,
+ createViewTrampoline,
+} from '../esbuild-scripts/api';
import {
webpackMeasureFileSizesBeforeBuild,
createWebpackAssets,
@@ -28,7 +36,10 @@ import {
import { getPackageDependencies } from '../utils/getPackageDependencies';
import type { CoreProperties } from '@schemastore/package';
-async function buildApp(target: string) {
+async function buildStandalone(
+ target: string,
+ type: Extract,
+) {
// True if there's no preference set - or the preference is for webpack.
const useWebpack =
!process.env.USE_MODULAR_WEBPACK ||
@@ -49,6 +60,7 @@ async function buildApp(target: string) {
const targetName = toParamCase(target);
const paths = await createPaths(target);
+ const isApp = type === 'app';
await checkBrowsers(targetDirectory);
@@ -64,25 +76,46 @@ async function buildApp(target: string) {
}
// Warn and crash if required files are missing
- await checkRequiredFiles([paths.appHtml, paths.appIndexJs]);
+ isApp
+ ? await checkRequiredFiles([paths.appHtml, paths.appIndexJs])
+ : await checkRequiredFiles([paths.appIndexJs]);
logger.log('Creating an optimized production build...');
await fs.emptyDir(paths.appBuild);
- await fs.copy(paths.appPublic, paths.appBuild, {
- dereference: true,
- filter: (file) => file !== paths.appHtml,
- overwrite: true,
- });
+ if (isApp) {
+ await fs.copy(paths.appPublic, paths.appBuild, {
+ dereference: true,
+ filter: (file) => file !== paths.appHtml,
+ overwrite: true,
+ });
+ }
let assets: Asset[];
+ // Retrieve dependencies for target to inform the build process
+ const packageDependencies = await getPackageDependencies(target);
+ // Split dependencies between external and bundled
+ const { external: externalDependencies, bundled: bundledDependencies } =
+ filterDependencies(packageDependencies, isApp);
+
+ const browserTarget = createEsbuildBrowserslistTarget(targetDirectory);
+
+ let jsEntryPoint: string | undefined;
+ let cssEntryPoint: string | undefined;
if (isEsbuild) {
const { default: buildEsbuildApp } = await import(
'../esbuild-scripts/build'
);
- const result = await buildEsbuildApp(target, paths);
+ const result = await buildEsbuildApp(
+ target,
+ paths,
+ externalDependencies,
+ type,
+ );
+ jsEntryPoint = getEntryPoint(paths, result, '.js');
+ cssEntryPoint = getEntryPoint(paths, result, '.css');
assets = createEsbuildAssets(paths, result);
} else {
// create-react-app doesn't support plain module outputs yet,
@@ -92,8 +125,6 @@ async function buildApp(target: string) {
'modular-scripts/react-scripts/scripts/build.js',
);
- const browserTarget = createEsbuildBrowserslistTarget(targetDirectory);
-
// TODO: this shouldn't be sync
await execAsync('node', [buildScript], {
cwd: targetDirectory,
@@ -104,6 +135,11 @@ async function buildApp(target: string) {
MODULAR_ROOT: modularRoot,
MODULAR_PACKAGE: target,
MODULAR_PACKAGE_NAME: targetName,
+ MODULAR_IS_APP: JSON.stringify(isApp),
+ MODULAR_PACKAGE_DEPS: JSON.stringify({
+ externalDependencies,
+ bundledDependencies,
+ }),
},
});
@@ -112,6 +148,14 @@ async function buildApp(target: string) {
try {
const stats: StatsCompilation = await fs.readJson(statsFilePath);
+ const mainEntrypoint = stats?.assetsByChunkName?.main;
+ jsEntryPoint = mainEntrypoint?.find((entryPoint) =>
+ entryPoint.endsWith('.js'),
+ );
+ cssEntryPoint = mainEntrypoint?.find((entryPoint) =>
+ entryPoint.endsWith('.css'),
+ );
+
if (stats?.warnings?.length) {
logger.log(chalk.yellow('Compiled with warnings.\n'));
logger.log(stats.warnings.join('\n\n'));
@@ -130,13 +174,52 @@ async function buildApp(target: string) {
}
}
+ // If view, write the synthetic index.html and create a trampoline file pointing to the main entrypoint
+ // This is for both esbuild and webpack so it lives here. If app, instead, the public/index.html file is generated specifical in different ways.
+ if (!isApp) {
+ if (!jsEntryPoint) {
+ throw new Error("Can't find main entrypoint after building");
+ }
+ // Create synthetic index
+ const env = getClientEnvironment(paths.publicUrlOrPath.slice(0, -1));
+ const html = createSyntheticIndex({ cssEntryPoint, replacements: env.raw });
+ await fs.writeFile(
+ path.join(paths.appBuild, 'index.html'),
+ await minimize.minify(html, {
+ html5: true,
+ collapseBooleanAttributes: true,
+ collapseWhitespace: true,
+ collapseInlineTagWhitespace: true,
+ decodeEntities: true,
+ minifyCSS: true,
+ minifyJS: true,
+ removeAttributeQuotes: false,
+ removeComments: true,
+ removeTagWhitespace: true,
+ }),
+ );
+
+ // Create and write trampoline file
+ const trampolineBuildResult = await createViewTrampoline(
+ path.basename(jsEntryPoint),
+ paths.appSrc,
+ externalDependencies,
+ browserTarget,
+ );
+ const trampolinePath = `${paths.appBuild}/static/js/_trampoline.js`;
+ await fs.writeFile(
+ trampolinePath,
+ trampolineBuildResult.outputFiles[0].contents,
+ );
+ }
+
// Add dependencies from source and bundled dependencies to target package.json
- const packageDependencies = await getPackageDependencies(target);
const targetPackageJson = (await fs.readJSON(
path.join(targetDirectory, 'package.json'),
)) as CoreProperties;
targetPackageJson.dependencies = packageDependencies;
- targetPackageJson.bundledDependencies = Object.keys(packageDependencies);
+ targetPackageJson.bundledDependencies = Object.keys(bundledDependencies);
+
// Copy selected fields of package.json over
await fs.writeJSON(
path.join(paths.appBuild, 'package.json'),
@@ -146,6 +229,9 @@ async function buildApp(target: string) {
license: targetPackageJson.license,
modular: targetPackageJson.modular,
dependencies: targetPackageJson.dependencies,
+ bundledDependencies: targetPackageJson.bundledDependencies,
+ module: jsEntryPoint,
+ style: cssEntryPoint,
},
{ spaces: 2 },
);
@@ -169,8 +255,9 @@ async function build(
await setupEnvForDirectory(targetDirectory);
- if (isModularType(targetDirectory, 'app')) {
- await buildApp(target);
+ const targetType = getModularType(targetDirectory);
+ if (targetType === 'app' || targetType === 'esm-view') {
+ await buildStandalone(target, targetType);
} else {
const { buildPackage } = await import('./buildPackage');
// ^ we do a dynamic import here to defer the module's initial side effects
diff --git a/packages/modular-scripts/src/esbuild-scripts/api.ts b/packages/modular-scripts/src/esbuild-scripts/api.ts
index d21dfbdd6..0e5e74e76 100644
--- a/packages/modular-scripts/src/esbuild-scripts/api.ts
+++ b/packages/modular-scripts/src/esbuild-scripts/api.ts
@@ -1,15 +1,70 @@
-import type * as esbuild from 'esbuild';
+import * as esbuild from 'esbuild';
import * as fs from 'fs-extra';
import * as parse5 from 'parse5';
import escapeStringRegexp from 'escape-string-regexp';
+import { createRewriteDependenciesPlugin } from './plugins/rewriteDependenciesPlugin';
import type { Paths } from '../utils/createPaths';
import getModularRoot from '../utils/getModularRoot';
import * as path from 'path';
+import type { Dependency } from '@schemastore/package';
type FileType = '.css' | '.js';
-function getEntryPoint(
+export async function createViewTrampoline(
+ fileName: string,
+ srcPath: string,
+ dependencies: Dependency,
+ browserTarget: string[],
+): Promise {
+ const fileRelativePath = `./${fileName}`;
+
+ const trampolineTemplate = `
+import ReactDOM from 'react-dom'
+import React from 'react'
+import Component from '${fileRelativePath}'
+const DOMRoot = document.getElementById('root');
+ReactDOM.render(, DOMRoot);`;
+
+ const fileRegexp = new RegExp(String.raw`^${escapeRegex(fileRelativePath)}$`);
+
+ // Build the trampoline on the fly, from stdin
+ const buildResult = await esbuild.build({
+ stdin: {
+ contents: trampolineTemplate,
+ resolveDir: srcPath,
+ sourcefile: '_trampoline.tsx',
+ loader: 'tsx',
+ },
+ format: 'esm',
+ bundle: true,
+ write: false,
+ target: browserTarget,
+ plugins: [
+ // See https://github.com/evanw/esbuild/issues/456
+ {
+ name: 'import-path',
+ setup(build) {
+ build.onResolve({ filter: fileRegexp }, (args) => {
+ return { path: args.path, external: true };
+ });
+ },
+ },
+ createRewriteDependenciesPlugin({
+ ...dependencies,
+ 'react-dom': dependencies.react,
+ }),
+ ],
+ });
+
+ return buildResult;
+}
+
+function escapeRegex(s: string) {
+ return s.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&');
+}
+
+export function getEntryPoint(
paths: Paths,
metafile: esbuild.Metafile,
type: FileType,
@@ -30,23 +85,89 @@ function getEntryPoint(
}
}
-export async function createIndex(
- paths: Paths,
- metafile: esbuild.Metafile,
- replacements: Record,
- includeRuntime: boolean,
-): Promise {
- const index = await fs.readFile(paths.appHtml, { encoding: 'utf-8' });
- const page = parse5.parse(index);
+export const indexFile = `
+
+
+
+
+
+
+`;
+
+export async function createIndex({
+ paths,
+ metafile,
+ replacements,
+ includeRuntime,
+ indexContent,
+ includeTrampoline,
+}: {
+ paths: Paths;
+ metafile: esbuild.Metafile | undefined;
+ replacements: Record;
+ includeRuntime: boolean;
+ indexContent?: string;
+ includeTrampoline?: boolean;
+}): Promise {
+ const index =
+ indexContent ?? (await fs.readFile(paths.appHtml, { encoding: 'utf-8' }));
+ const cssEntryPoint = metafile
+ ? getEntryPoint(paths, metafile, '.css')
+ : undefined;
+ const jsEntryPoint = metafile
+ ? getEntryPoint(paths, metafile, '.js')
+ : undefined;
+
+ return compileIndex({
+ indexContent: index,
+ cssEntryPoint,
+ jsEntryPoint,
+ replacements,
+ includeRuntime,
+ includeTrampoline,
+ });
+}
+
+export function createSyntheticIndex({
+ cssEntryPoint,
+ replacements,
+}: {
+ cssEntryPoint: string | undefined;
+ replacements: Record;
+}): string {
+ return compileIndex({
+ indexContent: indexFile,
+ cssEntryPoint,
+ replacements,
+ includeTrampoline: true,
+ });
+}
+
+function compileIndex({
+ indexContent,
+ cssEntryPoint,
+ jsEntryPoint,
+ replacements,
+ includeRuntime,
+ includeTrampoline,
+}: {
+ indexContent: string;
+ cssEntryPoint?: string;
+ jsEntryPoint?: string;
+ replacements: Record;
+ includeRuntime?: boolean;
+ includeTrampoline?: boolean;
+}) {
+ const page = parse5.parse(indexContent);
const html = page.childNodes.find(
(node) => node.nodeName === 'html',
) as parse5.Element;
const head = html.childNodes.find(
(node) => node.nodeName === 'head',
) as parse5.Element;
-
- const cssEntryPoint = getEntryPoint(paths, metafile, '.css');
- const jsEntryPoint = getEntryPoint(paths, metafile, '.js');
+ const body = html.childNodes.find(
+ (node) => node.nodeName === 'body',
+ ) as parse5.Element;
if (cssEntryPoint) {
head.childNodes.push(
@@ -55,9 +176,6 @@ export async function createIndex(
).childNodes,
);
}
- const body = html.childNodes.find(
- (node) => node.nodeName === 'body',
- ) as parse5.Element;
if (jsEntryPoint) {
body.childNodes.push(
@@ -67,6 +185,14 @@ export async function createIndex(
);
}
+ if (includeTrampoline) {
+ body.childNodes.push(
+ ...parse5.parseFragment(
+ ``,
+ ).childNodes,
+ );
+ }
+
if (includeRuntime) {
body.childNodes.push(
...parse5.parseFragment(
diff --git a/packages/modular-scripts/src/esbuild-scripts/build/index.ts b/packages/modular-scripts/src/esbuild-scripts/build/index.ts
index cc43564d0..5447076c6 100644
--- a/packages/modular-scripts/src/esbuild-scripts/build/index.ts
+++ b/packages/modular-scripts/src/esbuild-scripts/build/index.ts
@@ -13,19 +13,40 @@ import { createIndex } from '../api';
import createEsbuildConfig from '../config/createEsbuildConfig';
import getModularRoot from '../../utils/getModularRoot';
import sanitizeMetafile from '../utils/sanitizeMetafile';
+import { createRewriteDependenciesPlugin } from '../plugins/rewriteDependenciesPlugin';
+import type { Dependency } from '@schemastore/package';
+import createEsbuildBrowserslistTarget from '../../utils/createEsbuildBrowserslistTarget';
-export default async function build(target: string, paths: Paths) {
+export default async function build(
+ target: string,
+ paths: Paths,
+ externalDependencies: Dependency,
+ type: 'app' | 'esm-view',
+) {
const modularRoot = getModularRoot();
+ const isApp = type === 'app';
const env = getClientEnvironment(paths.publicUrlOrPath.slice(0, -1));
let result: esbuild.Metafile;
+
+ const browserTarget = createEsbuildBrowserslistTarget(paths.appPath);
+
try {
const buildResult = await esbuild.build(
createEsbuildConfig(paths, {
entryNames: 'static/js/[name]-[hash]',
chunkNames: 'static/js/[name]-[hash]',
assetNames: 'static/media/[name]-[hash]',
+ target: browserTarget,
+ plugins: isApp
+ ? undefined
+ : [
+ createRewriteDependenciesPlugin(
+ externalDependencies,
+ browserTarget,
+ ),
+ ],
}),
);
@@ -54,22 +75,29 @@ export default async function build(target: string, paths: Paths) {
}
}
- const html = await createIndex(paths, result, env.raw, false);
+ if (isApp) {
+ const html = await createIndex({
+ paths,
+ metafile: result,
+ replacements: env.raw,
+ includeRuntime: false,
+ });
- const minifiedCode = await minimize.minify(html, {
- html5: true,
- collapseBooleanAttributes: true,
- collapseWhitespace: true,
- collapseInlineTagWhitespace: true,
- decodeEntities: true,
- minifyCSS: true,
- minifyJS: true,
- removeAttributeQuotes: false,
- removeComments: true,
- removeTagWhitespace: true,
- });
+ const minifiedCode = await minimize.minify(html, {
+ html5: true,
+ collapseBooleanAttributes: true,
+ collapseWhitespace: true,
+ collapseInlineTagWhitespace: true,
+ decodeEntities: true,
+ minifyCSS: true,
+ minifyJS: true,
+ removeAttributeQuotes: false,
+ removeComments: true,
+ removeTagWhitespace: true,
+ });
- await fs.writeFile(path.join(paths.appBuild, 'index.html'), minifiedCode);
+ await fs.writeFile(path.join(paths.appBuild, 'index.html'), minifiedCode);
+ }
return result;
}
diff --git a/packages/modular-scripts/src/esbuild-scripts/config/createEsbuildConfig.ts b/packages/modular-scripts/src/esbuild-scripts/config/createEsbuildConfig.ts
index 193fbfd20..97fbdffa5 100644
--- a/packages/modular-scripts/src/esbuild-scripts/config/createEsbuildConfig.ts
+++ b/packages/modular-scripts/src/esbuild-scripts/config/createEsbuildConfig.ts
@@ -4,7 +4,6 @@ import * as esbuild from 'esbuild';
import builtinModules from 'builtin-modules';
import type { Paths } from '../../utils/createPaths';
import getClientEnvironment from './getClientEnvironment';
-import createEsbuildBrowserslistTarget from '../../utils/createEsbuildBrowserslistTarget';
import * as logger from '../../utils/logger';
import moduleScopePlugin from '../plugins/moduleScopePlugin';
@@ -31,9 +30,9 @@ export default function createEsbuildConfig(
},
);
- const target = createEsbuildBrowserslistTarget(paths.appPath);
-
- logger.debug(`Using target: ${target.join(', ')}`);
+ logger.debug(
+ `Using target: ${(partialConfig.target as string[]).join(', ')}`,
+ );
// merge and de-duplicate node builtins with external in the parameters
const external = [
@@ -66,7 +65,7 @@ export default function createEsbuildConfig(
'.js': 'jsx',
},
logLevel: 'silent',
- target,
+ target: partialConfig.target,
format: 'esm',
color: !isCi,
define,
diff --git a/packages/modular-scripts/src/esbuild-scripts/plugins/rewriteDependenciesPlugin.ts b/packages/modular-scripts/src/esbuild-scripts/plugins/rewriteDependenciesPlugin.ts
new file mode 100644
index 000000000..df8693c90
--- /dev/null
+++ b/packages/modular-scripts/src/esbuild-scripts/plugins/rewriteDependenciesPlugin.ts
@@ -0,0 +1,134 @@
+import * as esbuild from 'esbuild';
+import type { Dependency } from '@schemastore/package';
+
+export function createRewriteDependenciesPlugin(
+ externalDependencies: Dependency,
+ target?: string[],
+): esbuild.Plugin {
+ const externalCdnTemplate =
+ process.env.EXTERNAL_CDN_TEMPLATE ??
+ 'https://cdn.skypack.dev/[name]@[version]';
+
+ const importMap: Map = new Map(
+ Object.entries(externalDependencies).map(([name, version]) => [
+ name,
+ externalCdnTemplate.replace('[name]', name).replace('[version]', version),
+ ]),
+ );
+
+ const dependencyRewritePlugin: esbuild.Plugin = {
+ name: 'dependency-rewrite',
+ setup(build) {
+ // Don't want to load global css more than once
+ const globalCSSMap: Map = new Map();
+ // Filter on external dependencies
+ build.onResolve(
+ { filter: /^[a-z0-9-~]|@/, namespace: 'file' },
+ (args) => {
+ // Get name and eventual submodule to construct the url
+ const { dependencyName, submodule } = parsePackageName(args.path);
+ // Find dependency name (no submodule) in the pre-built import map
+ const dependencyUrl = importMap.get(dependencyName) as string;
+ if (dependencyUrl) {
+ // Rewrite the path taking the submodule into account
+ const path = `${dependencyUrl}${submodule ? `/${submodule}` : ''}`;
+ if (submodule.endsWith('.css')) {
+ // This is a global CSS import from the CDN.
+ if (target && target.every((target) => target === 'esnext')) {
+ // If target is esnext we can use CSS module scripts - https://web.dev/css-module-scripts/
+ // esbuild supports them only on an `esnext` target, otherwise the assertion is removed - https://github.com/evanw/esbuild/issues/1871
+ // We must create a variable name to not clash with anything else though
+ const variableName =
+ `__sheet_${dependencyName}_${submodule}`.replace(
+ /[\W_]+/g,
+ '_',
+ );
+ return {
+ path,
+ namespace: 'rewritable-css-import-css-module-scripts',
+ pluginData: { variableName },
+ };
+ }
+ // Fall back to link injection if we don't support CSS module scripts
+ // We want to ignore this import if it's been already imported before (no need to inject it twice into the HEAD)
+ const namespace = globalCSSMap.get(path)
+ ? 'rewritable-css-import-ignore'
+ : 'rewritable-css-import';
+ // Set it in the "allready done" map
+ globalCSSMap.set(path, true);
+ return {
+ path,
+ namespace,
+ };
+ }
+ // Just rewrite and mark as external. It will be ignored the next resolve cycle
+ return {
+ path,
+ external: true,
+ } as esbuild.OnResolveResult;
+ } else {
+ // Dependency has been filtered out: ignore and bundle
+ return {};
+ }
+ },
+ );
+ build.onLoad(
+ { filter: /^[a-z0-9-~]|@/, namespace: 'rewritable-css-import' },
+ (args) => {
+ return {
+ contents: `
+ const link = document.createElement('link');
+ link.rel = 'stylesheet';
+ link.type = 'text/css';
+ link.href = '${args.path}';
+ document.getElementsByTagName('HEAD')[0].appendChild(link);
+ `,
+ };
+ },
+ );
+ build.onLoad(
+ { filter: /^[a-z0-9-~]|@/, namespace: 'rewritable-css-import-ignore' },
+ (args) => {
+ return {
+ contents: `
+ /* Ignored CSS import at path ${args.path} */
+ `,
+ };
+ },
+ );
+ build.onLoad(
+ {
+ filter: /^[a-z0-9-~]|@/,
+ namespace: 'rewritable-css-import-css-module-scripts',
+ },
+ (args) => {
+ const { variableName } = args.pluginData as { variableName: string };
+ return {
+ contents: `
+ import ${variableName} from '${args.path}' assert { type: 'css' };
+ document.adoptedStyleSheets = [...document.adoptedStyleSheets, ${variableName}];
+ `,
+ };
+ },
+ );
+ build.onStart(() => {
+ // Clear the map on start, for incremental mode
+ globalCSSMap.clear();
+ });
+ },
+ };
+ return dependencyRewritePlugin;
+}
+
+const packageRegex =
+ /^(@[a-z0-9-~][a-z0-9-._~]*)?\/?([a-z0-9-~][a-z0-9-._~]*)\/?(.*)/;
+function parsePackageName(name: string) {
+ const parsedName = packageRegex.exec(name);
+ if (!parsedName) {
+ throw new Error(`Can't parse package name: ${name}`);
+ }
+ /* eslint-disable @typescript-eslint/no-unused-vars */
+ const [_, scope, module, submodule] = parsedName;
+ const dependencyName = (scope ? `${scope}/` : '') + module;
+ return { dependencyName, scope, module, submodule };
+}
diff --git a/packages/modular-scripts/src/esbuild-scripts/start/index.ts b/packages/modular-scripts/src/esbuild-scripts/start/index.ts
index c1de9ef20..02598c989 100644
--- a/packages/modular-scripts/src/esbuild-scripts/start/index.ts
+++ b/packages/modular-scripts/src/esbuild-scripts/start/index.ts
@@ -1,6 +1,7 @@
import * as esbuild from 'esbuild';
import chalk from 'chalk';
import * as express from 'express';
+import type { RequestHandler } from 'express';
import ws from 'express-ws';
import * as fs from 'fs-extra';
import * as http from 'http';
@@ -24,13 +25,16 @@ import firstCompilePlugin from './plugins/firstCompile';
import openBrowser from '../utils/openBrowser';
import * as logger from '../../utils/logger';
import prepareUrls, { InstructionURLS } from '../config/urls';
-import { createIndex } from '../api';
+import { createIndex, indexFile, createViewTrampoline } from '../api';
import createEsbuildConfig from '../config/createEsbuildConfig';
import createLaunchEditorMiddleware from '../../../react-dev-utils/errorOverlayMiddleware.js';
import getHost from './utils/getHost';
import getPort from './utils/getPort';
import sanitizeMetafile, { sanitizeFileName } from '../utils/sanitizeMetafile';
import getModularRoot from '../../utils/getModularRoot';
+import { createRewriteDependenciesPlugin } from '../plugins/rewriteDependenciesPlugin';
+import createEsbuildBrowserslistTarget from '../../utils/createEsbuildBrowserslistTarget';
+import type { Dependency } from '@schemastore/package';
const RUNTIME_DIR = path.join(__dirname, 'runtime');
class DevServer {
@@ -58,11 +62,23 @@ class DevServer {
private urls: InstructionURLS;
private port: number;
- constructor(paths: Paths, urls: InstructionURLS, host: string, port: number) {
+ private isApp: boolean; // TODO maybe it's better to pass the type here
+ private dependencies: Dependency;
+
+ constructor(
+ paths: Paths,
+ urls: InstructionURLS,
+ host: string,
+ port: number,
+ isApp: boolean,
+ dependencies: Dependency,
+ ) {
this.paths = paths;
this.urls = urls;
this.host = host;
this.port = port;
+ this.isApp = isApp;
+ this.dependencies = dependencies;
this.firstCompilePromise = new Promise((resolve) => {
this.firstCompilePromiseResolve = resolve;
@@ -74,6 +90,8 @@ class DevServer {
this.ws = ws(this.express);
this.express.use(this.handleStaticAsset);
+ this.isApp ||
+ this.express.get('/static/js/_trampoline.js', this.handleTrampoline);
this.express.use('/static/js', this.handleStaticAsset);
this.express.use(this.handleRuntimeAsset);
@@ -170,12 +188,17 @@ class DevServer {
});
baseEsbuildConfig = memoize(() => {
+ const browserTarget = createEsbuildBrowserslistTarget(this.paths.appPath);
return createEsbuildConfig(this.paths, {
write: false,
minify: false,
entryNames: 'static/js/[name]',
chunkNames: 'static/js/[name]',
assetNames: 'static/media/[name]',
+ target: browserTarget,
+ plugins: this.isApp
+ ? undefined
+ : [createRewriteDependenciesPlugin(this.dependencies, browserTarget)],
});
});
@@ -235,7 +258,43 @@ class DevServer {
await this.firstCompilePromise;
res.writeHead(200);
- res.end(await createIndex(this.paths, this.metafile, this.env.raw, true));
+ if (this.isApp) {
+ res.end(
+ await createIndex({
+ paths: this.paths,
+ metafile: this.metafile,
+ replacements: this.env.raw,
+ includeRuntime: true,
+ }),
+ );
+ } else {
+ res.end(
+ await createIndex({
+ paths: this.paths,
+ metafile: this.metafile,
+ replacements: this.env.raw,
+ includeRuntime: true,
+ indexContent: indexFile,
+ includeTrampoline: true,
+ }),
+ );
+ }
+ };
+
+ handleTrampoline: RequestHandler = async (
+ _: http.IncomingMessage,
+ res: http.ServerResponse,
+ ) => {
+ res.setHeader('content-type', 'application/javascript');
+ res.writeHead(200);
+ const baseConfig = this.baseEsbuildConfig();
+ const trampolineBuildResult = await createViewTrampoline(
+ 'index.js',
+ this.paths.appSrc,
+ this.dependencies,
+ baseConfig.target as string[],
+ );
+ res.end(trampolineBuildResult.outputFiles[0].text);
};
private serveEsbuild = (
@@ -296,7 +355,11 @@ class DevServer {
};
}
-export default async function start(target: string): Promise {
+export default async function start(
+ target: string,
+ isApp: boolean,
+ packageDependencies: Dependency,
+): Promise {
const paths = await createPaths(target);
const host = getHost();
const port = await getPort(host);
@@ -306,7 +369,14 @@ export default async function start(target: string): Promise {
port,
paths.publicUrlOrPath.slice(0, -1),
);
- const devServer = new DevServer(paths, urls, host, port);
+ const devServer = new DevServer(
+ paths,
+ urls,
+ host,
+ port,
+ isApp,
+ packageDependencies,
+ );
const server = await devServer.start();
diff --git a/packages/modular-scripts/src/esbuild-scripts/utils/openBrowser.ts b/packages/modular-scripts/src/esbuild-scripts/utils/openBrowser.ts
index 0018a8cf6..7a4dd3f2e 100644
--- a/packages/modular-scripts/src/esbuild-scripts/utils/openBrowser.ts
+++ b/packages/modular-scripts/src/esbuild-scripts/utils/openBrowser.ts
@@ -14,7 +14,7 @@ enum Actions {
SCRIPT = 'Script',
}
-const DEFAULT_BROWSER = process.env.BROWSER || OSX_CHROME;
+const DEFAULT_BROWSER = process.env.BROWSER;
const DEFAULT_BROWSER_ARGS = process.env.BROWSER_ARGS
? process.env.BROWSER_ARGS.split(' ')
: [];
@@ -143,7 +143,8 @@ export default async function openBrowser(url: string): Promise {
// Special case: BROWSER="none" will prevent opening completely.
return false;
case Actions.SCRIPT:
- return executeNodeScript(value, url);
+ // Value will always be string if action is SCRIPT.
+ return executeNodeScript(value as string, url);
case Actions.BROWSER:
return startBrowserProcess(value, url, args);
default:
diff --git a/packages/modular-scripts/src/serve.ts b/packages/modular-scripts/src/serve.ts
index eff748376..8219cf1f8 100644
--- a/packages/modular-scripts/src/serve.ts
+++ b/packages/modular-scripts/src/serve.ts
@@ -10,7 +10,10 @@ import isModularType from './utils/isModularType';
async function serve(target: string, port = 3000): Promise {
const targetLocation = await getLocation(target);
- if (isModularType(targetLocation, 'app')) {
+ if (
+ isModularType(targetLocation, 'app') ||
+ isModularType(targetLocation, 'esm-view')
+ ) {
const paths = await createPaths(target);
if (fs.existsSync(paths.appBuild)) {
@@ -25,7 +28,7 @@ async function serve(target: string, port = 3000): Promise {
);
}
} else {
- throw new Error(`Modular can only serve an app.`);
+ throw new Error(`Modular can only serve an app or an esm-view.`);
}
}
diff --git a/packages/modular-scripts/src/start.ts b/packages/modular-scripts/src/start.ts
index 0f0ccce33..7fdfbf609 100644
--- a/packages/modular-scripts/src/start.ts
+++ b/packages/modular-scripts/src/start.ts
@@ -14,6 +14,8 @@ import createPaths from './utils/createPaths';
import * as logger from './utils/logger';
import createEsbuildBrowserslistTarget from './utils/createEsbuildBrowserslistTarget';
import prompts from 'prompts';
+import { getPackageDependencies } from './utils/getPackageDependencies';
+import { filterDependencies } from './utils/filterDependencies';
async function start(packageName: string): Promise {
let target = packageName;
@@ -33,7 +35,7 @@ async function start(packageName: string): Promise {
target = chosenTarget.value as string;
}
- const targetPath = await getLocation(target);
+ let targetPath = await getLocation(target);
await setupEnvForDirectory(targetPath);
@@ -43,41 +45,42 @@ async function start(packageName: string): Promise {
);
}
- /**
- * If we're trying to start a view then we first need to stage out the
- * view into an 'app' directory which can be built.
- */
- let startPath: string;
- if (isModularType(targetPath, 'view')) {
- startPath = stageView(target);
+ const isEsmView = isModularType(targetPath, 'esm-view');
+ const isView = isModularType(targetPath, 'view');
+ if (isView) {
+ targetPath = stageView(target);
} else {
- startPath = targetPath;
-
// in the case we're an app then we need to make sure that users have no incorrectly
// setup their app folder.
const paths = await createPaths(target);
- await checkRequiredFiles([paths.appHtml, paths.appIndexJs]);
+ isEsmView
+ ? await checkRequiredFiles([paths.appIndexJs])
+ : await checkRequiredFiles([paths.appHtml, paths.appIndexJs]);
}
- await checkBrowsers(startPath);
+ await checkBrowsers(targetPath);
// True if there's no preference set - or the preference is for webpack.
const useWebpack =
!process.env.USE_MODULAR_WEBPACK ||
process.env.USE_MODULAR_WEBPACK === 'true';
- // True if the preferene IS set and the preference is esbuid.
+ // True if the preference IS set and the preference is esbuild.
const useEsbuild =
process.env.USE_MODULAR_ESBUILD &&
process.env.USE_MODULAR_ESBUILD === 'true';
+ const packageDependencies = await getPackageDependencies(target);
+ const { external: externalDependencies, bundled: bundledDependencies } =
+ filterDependencies(packageDependencies, !isEsmView);
+
// If you want to use webpack then we'll always use webpack. But if you've indicated
// you want esbuild - then we'll switch you to the new fancy world.
if (!useWebpack || useEsbuild) {
const { default: startEsbuildApp } = await import(
'./esbuild-scripts/start'
);
- await startEsbuildApp(target);
+ await startEsbuildApp(target, !isEsmView, externalDependencies);
} else {
const startScript = require.resolve(
'modular-scripts/react-scripts/scripts/start.js',
@@ -90,7 +93,7 @@ async function start(packageName: string): Promise {
logger.debug(`Using target: ${browserTarget.join(', ')}`);
await execAsync('node', [startScript], {
- cwd: startPath,
+ cwd: targetPath,
log: false,
// @ts-ignore
env: {
@@ -98,6 +101,11 @@ async function start(packageName: string): Promise {
MODULAR_ROOT: modularRoot,
MODULAR_PACKAGE: target,
MODULAR_PACKAGE_NAME: targetName,
+ MODULAR_IS_APP: JSON.stringify(!isEsmView),
+ MODULAR_PACKAGE_DEPS: JSON.stringify({
+ externalDependencies,
+ bundledDependencies,
+ }),
},
});
}
diff --git a/packages/modular-scripts/src/utils/filterDependencies.ts b/packages/modular-scripts/src/utils/filterDependencies.ts
new file mode 100644
index 000000000..5afda5af5
--- /dev/null
+++ b/packages/modular-scripts/src/utils/filterDependencies.ts
@@ -0,0 +1,51 @@
+import micromatch from 'micromatch';
+import type { Dependency } from '@schemastore/package';
+
+interface FilteredDependencies {
+ external: Dependency;
+ bundled: Dependency;
+}
+
+// Filter out dependencies that are in blocklist
+export function filterDependencies(
+ packageDependencies: Dependency,
+ isApp: boolean,
+): FilteredDependencies {
+ if (isApp) {
+ return {
+ bundled: packageDependencies,
+ external: {},
+ };
+ }
+
+ // By default, nothing is in blocklist
+ const externalBlockList =
+ process.env.EXTERNAL_BLOCK_LIST && !isApp
+ ? process.env.EXTERNAL_BLOCK_LIST.split(',')
+ : [];
+
+ // By default, everything in allow list
+ const externalAllowList =
+ process.env.EXTERNAL_ALLOW_LIST && !isApp
+ ? process.env.EXTERNAL_ALLOW_LIST.split(',')
+ : ['*'];
+
+ return Object.entries(packageDependencies).reduce(
+ (acc, [name, version]) => {
+ const isBlocked = micromatch.isMatch(name, externalBlockList);
+ const isAllowed = micromatch.isMatch(name, externalAllowList);
+
+ // It's not enough to be in allow list, the dependency should also not be in block list to be rewritten
+ if (isAllowed && !isBlocked) {
+ acc.external[name] = version;
+ } else {
+ acc.bundled[name] = version;
+ }
+ return acc;
+ },
+ {
+ external: {},
+ bundled: {},
+ },
+ );
+}
diff --git a/packages/modular-scripts/src/utils/isModularType.ts b/packages/modular-scripts/src/utils/isModularType.ts
index 0b6bda3b5..c23c25d20 100644
--- a/packages/modular-scripts/src/utils/isModularType.ts
+++ b/packages/modular-scripts/src/utils/isModularType.ts
@@ -4,6 +4,7 @@ import * as fs from 'fs-extra';
export const packageTypes: PackageType[] = [
'app',
+ 'esm-view',
'view',
'package',
'template',
@@ -13,7 +14,7 @@ export const ModularTypes: ModularType[] = (
packageTypes as ModularType[]
).concat(['root']);
-export type ModularTemplateType = 'app' | 'view' | 'package';
+export type ModularTemplateType = 'app' | 'esm-view' | 'view' | 'package';
export type PackageType = ModularTemplateType | 'template';
export type ModularType = PackageType | 'root';
diff --git a/packages/modular-scripts/types/esm-view/packagejson b/packages/modular-scripts/types/esm-view/packagejson
new file mode 100644
index 000000000..3780fc55d
--- /dev/null
+++ b/packages/modular-scripts/types/esm-view/packagejson
@@ -0,0 +1,9 @@
+{
+ "name": "PackageName__",
+ "version": "1.0.0",
+ "main": "src/index.tsx",
+ "license": "UNLICENSED",
+ "modular": {
+ "type": "esm-view"
+ }
+}
diff --git a/yarn.lock b/yarn.lock
index ec2130cdc..349dfab72 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -10104,7 +10104,7 @@ postcss-value-parser@^4.1.0, postcss-value-parser@^4.2.0:
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
-postcss@8.4.12, postcss@^8.1.0, postcss@^8.2.14, postcss@^8.3.5, postcss@^8.4.7:
+postcss@8.4.12, postcss@^8.1.0, postcss@^8.2.14, postcss@^8.4.7:
version "8.4.12"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.12.tgz#1e7de78733b28970fa4743f7da6f3763648b1905"
integrity sha512-lg6eITwYe9v6Hr5CncVbK70SoioNQIq81nsaG86ev5hAidQvmOeETBqs7jm43K2F5/Ley3ytDtriImV6TpNiSg==
@@ -10121,6 +10121,15 @@ postcss@^7, postcss@^7.0.17, postcss@^7.0.26:
picocolors "^0.2.1"
source-map "^0.6.1"
+postcss@^8.3.5:
+ version "8.4.8"
+ resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.8.tgz#dad963a76e82c081a0657d3a2f3602ce10c2e032"
+ integrity sha512-2tXEqGxrjvAO6U+CJzDL2Fk2kPHTv1jQsYkSoMeOis2SsYaXRO2COxTdQp99cYvif9JTXaAk9lYGc3VhJt7JPQ==
+ dependencies:
+ nanoid "^3.3.1"
+ picocolors "^1.0.0"
+ source-map-js "^1.0.2"
+
pptr-testing-library@0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/pptr-testing-library/-/pptr-testing-library-0.7.0.tgz#5676a4394df3958cc2ee5722a3c4fa72520369a8"