agvmap-react
Version:
A tool designed to visualize geospatial data on a map, integrating custom layers fetched from a REST API, and displaying relevant time-series data. This project is built using React, with `react-map-gl` for map integration.
1,370 lines (1,368 loc) • 3.13 MB
JavaScript
var s9 = Object.defineProperty;
var o9 = (e, t, r) => t in e ? s9(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
var PA = (e, t, r) => o9(e, typeof t != "symbol" ? t + "" : t, r);
import * as Ee from "react";
import ze, { useState as kt, useEffect as rr, createContext as bi, useContext as br, useRef as On, useMemo as Pn, useLayoutEffect as wS, useImperativeHandle as U0, memo as $u, forwardRef as hs, cloneElement as yi, createElement as sm, useCallback as vr, Component as SS, Fragment as q_, useReducer as l9, isValidElement as Na, Children as Cu, PureComponent as wl } from "react";
import * as SR from "react-dom";
import X0, { createPortal as CS } from "react-dom";
function c9(e, t) {
for (var r = 0; r < t.length; r++) {
const n = t[r];
if (typeof n != "string" && !Array.isArray(n)) {
for (const i in n)
if (i !== "default" && !(i in e)) {
const s = Object.getOwnPropertyDescriptor(n, i);
s && Object.defineProperty(e, i, s.get ? s : {
enumerable: !0,
get: () => n[i]
});
}
}
}
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
}
var xu = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function sn(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var J_ = { exports: {} }, yp = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var OA;
function u9() {
if (OA) return yp;
OA = 1;
var e = ze, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
function c(a, d, p) {
var y, g = {}, v = null, w = null;
p !== void 0 && (v = "" + p), d.key !== void 0 && (v = "" + d.key), d.ref !== void 0 && (w = d.ref);
for (y in d) n.call(d, y) && !s.hasOwnProperty(y) && (g[y] = d[y]);
if (a && a.defaultProps) for (y in d = a.defaultProps, d) g[y] === void 0 && (g[y] = d[y]);
return { $$typeof: t, type: a, key: v, ref: w, props: g, _owner: i.current };
}
return yp.Fragment = r, yp.jsx = c, yp.jsxs = c, yp;
}
var vp = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var kA;
function h9() {
return kA || (kA = 1, process.env.NODE_ENV !== "production" && function() {
var e = ze, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), a = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), S = Symbol.iterator, C = "@@iterator";
function M(Xe) {
if (Xe === null || typeof Xe != "object")
return null;
var Mt = S && Xe[S] || Xe[C];
return typeof Mt == "function" ? Mt : null;
}
var I = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function A(Xe) {
{
for (var Mt = arguments.length, Ot = new Array(Mt > 1 ? Mt - 1 : 0), Wt = 1; Wt < Mt; Wt++)
Ot[Wt - 1] = arguments[Wt];
O("error", Xe, Ot);
}
}
function O(Xe, Mt, Ot) {
{
var Wt = I.ReactDebugCurrentFrame, er = Wt.getStackAddendum();
er !== "" && (Mt += "%s", Ot = Ot.concat([er]));
var wr = Ot.map(function(gr) {
return String(gr);
});
wr.unshift("Warning: " + Mt), Function.prototype.apply.call(console[Xe], console, wr);
}
}
var L = !1, D = !1, R = !1, N = !1, Z = !1, ne;
ne = Symbol.for("react.module.reference");
function te(Xe) {
return !!(typeof Xe == "string" || typeof Xe == "function" || Xe === n || Xe === s || Z || Xe === i || Xe === p || Xe === y || N || Xe === w || L || D || R || typeof Xe == "object" && Xe !== null && (Xe.$$typeof === v || Xe.$$typeof === g || Xe.$$typeof === c || Xe.$$typeof === a || Xe.$$typeof === d || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
Xe.$$typeof === ne || Xe.getModuleId !== void 0));
}
function W(Xe, Mt, Ot) {
var Wt = Xe.displayName;
if (Wt)
return Wt;
var er = Mt.displayName || Mt.name || "";
return er !== "" ? Ot + "(" + er + ")" : Ot;
}
function X(Xe) {
return Xe.displayName || "Context";
}
function H(Xe) {
if (Xe == null)
return null;
if (typeof Xe.tag == "number" && A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof Xe == "function")
return Xe.displayName || Xe.name || null;
if (typeof Xe == "string")
return Xe;
switch (Xe) {
case n:
return "Fragment";
case r:
return "Portal";
case s:
return "Profiler";
case i:
return "StrictMode";
case p:
return "Suspense";
case y:
return "SuspenseList";
}
if (typeof Xe == "object")
switch (Xe.$$typeof) {
case a:
var Mt = Xe;
return X(Mt) + ".Consumer";
case c:
var Ot = Xe;
return X(Ot._context) + ".Provider";
case d:
return W(Xe, Xe.render, "ForwardRef");
case g:
var Wt = Xe.displayName || null;
return Wt !== null ? Wt : H(Xe.type) || "Memo";
case v: {
var er = Xe, wr = er._payload, gr = er._init;
try {
return H(gr(wr));
} catch {
return null;
}
}
}
return null;
}
var B = Object.assign, F = 0, Y, J, K, ie, q, fe, be;
function ae() {
}
ae.__reactDisabledLog = !0;
function me() {
{
if (F === 0) {
Y = console.log, J = console.info, K = console.warn, ie = console.error, q = console.group, fe = console.groupCollapsed, be = console.groupEnd;
var Xe = {
configurable: !0,
enumerable: !0,
value: ae,
writable: !0
};
Object.defineProperties(console, {
info: Xe,
log: Xe,
warn: Xe,
error: Xe,
group: Xe,
groupCollapsed: Xe,
groupEnd: Xe
});
}
F++;
}
}
function we() {
{
if (F--, F === 0) {
var Xe = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: B({}, Xe, {
value: Y
}),
info: B({}, Xe, {
value: J
}),
warn: B({}, Xe, {
value: K
}),
error: B({}, Xe, {
value: ie
}),
group: B({}, Xe, {
value: q
}),
groupCollapsed: B({}, Xe, {
value: fe
}),
groupEnd: B({}, Xe, {
value: be
})
});
}
F < 0 && A("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var Me = I.ReactCurrentDispatcher, $e;
function oe(Xe, Mt, Ot) {
{
if ($e === void 0)
try {
throw Error();
} catch (er) {
var Wt = er.stack.trim().match(/\n( *(at )?)/);
$e = Wt && Wt[1] || "";
}
return `
` + $e + Xe;
}
}
var re = !1, de;
{
var Ce = typeof WeakMap == "function" ? WeakMap : Map;
de = new Ce();
}
function U(Xe, Mt) {
if (!Xe || re)
return "";
{
var Ot = de.get(Xe);
if (Ot !== void 0)
return Ot;
}
var Wt;
re = !0;
var er = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var wr;
wr = Me.current, Me.current = null, me();
try {
if (Mt) {
var gr = function() {
throw Error();
};
if (Object.defineProperty(gr.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(gr, []);
} catch (Rr) {
Wt = Rr;
}
Reflect.construct(Xe, [], gr);
} else {
try {
gr.call();
} catch (Rr) {
Wt = Rr;
}
Xe.call(gr.prototype);
}
} else {
try {
throw Error();
} catch (Rr) {
Wt = Rr;
}
Xe();
}
} catch (Rr) {
if (Rr && Wt && typeof Rr.stack == "string") {
for (var Ht = Rr.stack.split(`
`), Er = Wt.stack.split(`
`), Ar = Ht.length - 1, Lr = Er.length - 1; Ar >= 1 && Lr >= 0 && Ht[Ar] !== Er[Lr]; )
Lr--;
for (; Ar >= 1 && Lr >= 0; Ar--, Lr--)
if (Ht[Ar] !== Er[Lr]) {
if (Ar !== 1 || Lr !== 1)
do
if (Ar--, Lr--, Lr < 0 || Ht[Ar] !== Er[Lr]) {
var on = `
` + Ht[Ar].replace(" at new ", " at ");
return Xe.displayName && on.includes("<anonymous>") && (on = on.replace("<anonymous>", Xe.displayName)), typeof Xe == "function" && de.set(Xe, on), on;
}
while (Ar >= 1 && Lr >= 0);
break;
}
}
} finally {
re = !1, Me.current = wr, we(), Error.prepareStackTrace = er;
}
var Zn = Xe ? Xe.displayName || Xe.name : "", Xi = Zn ? oe(Zn) : "";
return typeof Xe == "function" && de.set(Xe, Xi), Xi;
}
function he(Xe, Mt, Ot) {
return U(Xe, !1);
}
function se(Xe) {
var Mt = Xe.prototype;
return !!(Mt && Mt.isReactComponent);
}
function xe(Xe, Mt, Ot) {
if (Xe == null)
return "";
if (typeof Xe == "function")
return U(Xe, se(Xe));
if (typeof Xe == "string")
return oe(Xe);
switch (Xe) {
case p:
return oe("Suspense");
case y:
return oe("SuspenseList");
}
if (typeof Xe == "object")
switch (Xe.$$typeof) {
case d:
return he(Xe.render);
case g:
return xe(Xe.type, Mt, Ot);
case v: {
var Wt = Xe, er = Wt._payload, wr = Wt._init;
try {
return xe(wr(er), Mt, Ot);
} catch {
}
}
}
return "";
}
var le = Object.prototype.hasOwnProperty, Oe = {}, Be = I.ReactDebugCurrentFrame;
function Le(Xe) {
if (Xe) {
var Mt = Xe._owner, Ot = xe(Xe.type, Xe._source, Mt ? Mt.type : null);
Be.setExtraStackFrame(Ot);
} else
Be.setExtraStackFrame(null);
}
function Ue(Xe, Mt, Ot, Wt, er) {
{
var wr = Function.call.bind(le);
for (var gr in Xe)
if (wr(Xe, gr)) {
var Ht = void 0;
try {
if (typeof Xe[gr] != "function") {
var Er = Error((Wt || "React class") + ": " + Ot + " type `" + gr + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof Xe[gr] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw Er.name = "Invariant Violation", Er;
}
Ht = Xe[gr](Mt, gr, Wt, Ot, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (Ar) {
Ht = Ar;
}
Ht && !(Ht instanceof Error) && (Le(er), A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Wt || "React class", Ot, gr, typeof Ht), Le(null)), Ht instanceof Error && !(Ht.message in Oe) && (Oe[Ht.message] = !0, Le(er), A("Failed %s type: %s", Ot, Ht.message), Le(null));
}
}
}
var ct = Array.isArray;
function at(Xe) {
return ct(Xe);
}
function ke(Xe) {
{
var Mt = typeof Symbol == "function" && Symbol.toStringTag, Ot = Mt && Xe[Symbol.toStringTag] || Xe.constructor.name || "Object";
return Ot;
}
}
function Te(Xe) {
try {
return Re(Xe), !1;
} catch {
return !0;
}
}
function Re(Xe) {
return "" + Xe;
}
function Fe(Xe) {
if (Te(Xe))
return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ke(Xe)), Re(Xe);
}
var Qe = I.ReactCurrentOwner, Ge = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, it, ot;
function ft(Xe) {
if (le.call(Xe, "ref")) {
var Mt = Object.getOwnPropertyDescriptor(Xe, "ref").get;
if (Mt && Mt.isReactWarning)
return !1;
}
return Xe.ref !== void 0;
}
function pt(Xe) {
if (le.call(Xe, "key")) {
var Mt = Object.getOwnPropertyDescriptor(Xe, "key").get;
if (Mt && Mt.isReactWarning)
return !1;
}
return Xe.key !== void 0;
}
function Ke(Xe, Mt) {
typeof Xe.ref == "string" && Qe.current;
}
function mt(Xe, Mt) {
{
var Ot = function() {
it || (it = !0, A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Mt));
};
Ot.isReactWarning = !0, Object.defineProperty(Xe, "key", {
get: Ot,
configurable: !0
});
}
}
function wt(Xe, Mt) {
{
var Ot = function() {
ot || (ot = !0, A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Mt));
};
Ot.isReactWarning = !0, Object.defineProperty(Xe, "ref", {
get: Ot,
configurable: !0
});
}
}
var Pt = function(Xe, Mt, Ot, Wt, er, wr, gr) {
var Ht = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: t,
// Built-in properties that belong on the element
type: Xe,
key: Mt,
ref: Ot,
props: gr,
// Record the component responsible for creating this element.
_owner: wr
};
return Ht._store = {}, Object.defineProperty(Ht._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(Ht, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: Wt
}), Object.defineProperty(Ht, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: er
}), Object.freeze && (Object.freeze(Ht.props), Object.freeze(Ht)), Ht;
};
function Dt(Xe, Mt, Ot, Wt, er) {
{
var wr, gr = {}, Ht = null, Er = null;
Ot !== void 0 && (Fe(Ot), Ht = "" + Ot), pt(Mt) && (Fe(Mt.key), Ht = "" + Mt.key), ft(Mt) && (Er = Mt.ref, Ke(Mt, er));
for (wr in Mt)
le.call(Mt, wr) && !Ge.hasOwnProperty(wr) && (gr[wr] = Mt[wr]);
if (Xe && Xe.defaultProps) {
var Ar = Xe.defaultProps;
for (wr in Ar)
gr[wr] === void 0 && (gr[wr] = Ar[wr]);
}
if (Ht || Er) {
var Lr = typeof Xe == "function" ? Xe.displayName || Xe.name || "Unknown" : Xe;
Ht && mt(gr, Lr), Er && wt(gr, Lr);
}
return Pt(Xe, Ht, Er, er, Wt, Qe.current, gr);
}
}
var bt = I.ReactCurrentOwner, qt = I.ReactDebugCurrentFrame;
function Rt(Xe) {
if (Xe) {
var Mt = Xe._owner, Ot = xe(Xe.type, Xe._source, Mt ? Mt.type : null);
qt.setExtraStackFrame(Ot);
} else
qt.setExtraStackFrame(null);
}
var mr;
mr = !1;
function Pr(Xe) {
return typeof Xe == "object" && Xe !== null && Xe.$$typeof === t;
}
function He() {
{
if (bt.current) {
var Xe = H(bt.current.type);
if (Xe)
return `
Check the render method of \`` + Xe + "`.";
}
return "";
}
}
function Se(Xe) {
return "";
}
var ve = {};
function Pe(Xe) {
{
var Mt = He();
if (!Mt) {
var Ot = typeof Xe == "string" ? Xe : Xe.displayName || Xe.name;
Ot && (Mt = `
Check the top-level render call using <` + Ot + ">.");
}
return Mt;
}
}
function Ve(Xe, Mt) {
{
if (!Xe._store || Xe._store.validated || Xe.key != null)
return;
Xe._store.validated = !0;
var Ot = Pe(Mt);
if (ve[Ot])
return;
ve[Ot] = !0;
var Wt = "";
Xe && Xe._owner && Xe._owner !== bt.current && (Wt = " It was passed a child from " + H(Xe._owner.type) + "."), Rt(Xe), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Ot, Wt), Rt(null);
}
}
function rt(Xe, Mt) {
{
if (typeof Xe != "object")
return;
if (at(Xe))
for (var Ot = 0; Ot < Xe.length; Ot++) {
var Wt = Xe[Ot];
Pr(Wt) && Ve(Wt, Mt);
}
else if (Pr(Xe))
Xe._store && (Xe._store.validated = !0);
else if (Xe) {
var er = M(Xe);
if (typeof er == "function" && er !== Xe.entries)
for (var wr = er.call(Xe), gr; !(gr = wr.next()).done; )
Pr(gr.value) && Ve(gr.value, Mt);
}
}
}
function lt(Xe) {
{
var Mt = Xe.type;
if (Mt == null || typeof Mt == "string")
return;
var Ot;
if (typeof Mt == "function")
Ot = Mt.propTypes;
else if (typeof Mt == "object" && (Mt.$$typeof === d || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
Mt.$$typeof === g))
Ot = Mt.propTypes;
else
return;
if (Ot) {
var Wt = H(Mt);
Ue(Ot, Xe.props, "prop", Wt, Xe);
} else if (Mt.PropTypes !== void 0 && !mr) {
mr = !0;
var er = H(Mt);
A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", er || "Unknown");
}
typeof Mt.getDefaultProps == "function" && !Mt.getDefaultProps.isReactClassApproved && A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function ht(Xe) {
{
for (var Mt = Object.keys(Xe.props), Ot = 0; Ot < Mt.length; Ot++) {
var Wt = Mt[Ot];
if (Wt !== "children" && Wt !== "key") {
Rt(Xe), A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Wt), Rt(null);
break;
}
}
Xe.ref !== null && (Rt(Xe), A("Invalid attribute `ref` supplied to `React.Fragment`."), Rt(null));
}
}
var Je = {};
function _t(Xe, Mt, Ot, Wt, er, wr) {
{
var gr = te(Xe);
if (!gr) {
var Ht = "";
(Xe === void 0 || typeof Xe == "object" && Xe !== null && Object.keys(Xe).length === 0) && (Ht += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var Er = Se();
Er ? Ht += Er : Ht += He();
var Ar;
Xe === null ? Ar = "null" : at(Xe) ? Ar = "array" : Xe !== void 0 && Xe.$$typeof === t ? (Ar = "<" + (H(Xe.type) || "Unknown") + " />", Ht = " Did you accidentally export a JSX literal instead of a component?") : Ar = typeof Xe, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ar, Ht);
}
var Lr = Dt(Xe, Mt, Ot, er, wr);
if (Lr == null)
return Lr;
if (gr) {
var on = Mt.children;
if (on !== void 0)
if (Wt)
if (at(on)) {
for (var Zn = 0; Zn < on.length; Zn++)
rt(on[Zn], Xe);
Object.freeze && Object.freeze(on);
} else
A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
rt(on, Xe);
}
if (le.call(Mt, "key")) {
var Xi = H(Xe), Rr = Object.keys(Mt).filter(function(Ri) {
return Ri !== "key";
}), Bo = Rr.length > 0 ? "{key: someKey, " + Rr.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!Je[Xi + Bo]) {
var Pc = Rr.length > 0 ? "{" + Rr.join(": ..., ") + ": ...}" : "{}";
A(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`, Bo, Xi, Pc, Xi), Je[Xi + Bo] = !0;
}
}
return Xe === n ? ht(Lr) : lt(Lr), Lr;
}
}
function Et(Xe, Mt, Ot) {
return _t(Xe, Mt, Ot, !0);
}
function St(Xe, Mt, Ot) {
return _t(Xe, Mt, Ot, !1);
}
var jt = St, sr = Et;
vp.Fragment = n, vp.jsx = jt, vp.jsxs = sr;
}()), vp;
}
process.env.NODE_ENV === "production" ? J_.exports = u9() : J_.exports = h9();
var G = J_.exports;
const DA = (e) => {
let t;
const r = /* @__PURE__ */ new Set(), n = (y, g) => {
const v = typeof y == "function" ? y(t) : y;
if (!Object.is(v, t)) {
const w = t;
t = g ?? (typeof v != "object" || v === null) ? v : Object.assign({}, t, v), r.forEach((S) => S(t, w));
}
}, i = () => t, d = { setState: n, getState: i, getInitialState: () => p, subscribe: (y) => (r.add(y), () => r.delete(y)), destroy: () => {
r.clear();
} }, p = t = e(n, i, d);
return d;
}, d9 = (e) => e ? DA(e) : DA;
var K_ = { exports: {} }, I1 = {}, Dy = { exports: {} }, P1 = {};
/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var RA;
function f9() {
if (RA) return P1;
RA = 1;
var e = ze;
function t(g, v) {
return g === v && (g !== 0 || 1 / g === 1 / v) || g !== g && v !== v;
}
var r = typeof Object.is == "function" ? Object.is : t, n = e.useState, i = e.useEffect, s = e.useLayoutEffect, c = e.useDebugValue;
function a(g, v) {
var w = v(), S = n({ inst: { value: w, getSnapshot: v } }), C = S[0].inst, M = S[1];
return s(function() {
C.value = w, C.getSnapshot = v, d(C) && M({ inst: C });
}, [g, w, v]), i(function() {
return d(C) && M({ inst: C }), g(function() {
d(C) && M({ inst: C });
});
}, [g]), c(w), w;
}
function d(g) {
var v = g.getSnapshot;
g = g.value;
try {
var w = v();
return !r(g, w);
} catch {
return !0;
}
}
function p(g, v) {
return v();
}
var y = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? p : a;
return P1.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : y, P1;
}
var O1 = {};
/**
* @license React
* use-sync-external-store-shim.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var LA;
function p9() {
return LA || (LA = 1, process.env.NODE_ENV !== "production" && function() {
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
var e = ze, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function r(O) {
{
for (var L = arguments.length, D = new Array(L > 1 ? L - 1 : 0), R = 1; R < L; R++)
D[R - 1] = arguments[R];
n("error", O, D);
}
}
function n(O, L, D) {
{
var R = t.ReactDebugCurrentFrame, N = R.getStackAddendum();
N !== "" && (L += "%s", D = D.concat([N]));
var Z = D.map(function(ne) {
return String(ne);
});
Z.unshift("Warning: " + L), Function.prototype.apply.call(console[O], console, Z);
}
}
function i(O, L) {
return O === L && (O !== 0 || 1 / O === 1 / L) || O !== O && L !== L;
}
var s = typeof Object.is == "function" ? Object.is : i, c = e.useState, a = e.useEffect, d = e.useLayoutEffect, p = e.useDebugValue, y = !1, g = !1;
function v(O, L, D) {
y || e.startTransition !== void 0 && (y = !0, r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
var R = L();
if (!g) {
var N = L();
s(R, N) || (r("The result of getSnapshot should be cached to avoid an infinite loop"), g = !0);
}
var Z = c({
inst: {
value: R,
getSnapshot: L
}
}), ne = Z[0].inst, te = Z[1];
return d(function() {
ne.value = R, ne.getSnapshot = L, w(ne) && te({
inst: ne
});
}, [O, R, L]), a(function() {
w(ne) && te({
inst: ne
});
var W = function() {
w(ne) && te({
inst: ne
});
};
return O(W);
}, [O]), p(R), R;
}
function w(O) {
var L = O.getSnapshot, D = O.value;
try {
var R = L();
return !s(D, R);
} catch {
return !0;
}
}
function S(O, L, D) {
return L();
}
var C = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", M = !C, I = M ? S : v, A = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : I;
O1.useSyncExternalStore = A, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
}()), O1;
}
var NA;
function CR() {
return NA || (NA = 1, process.env.NODE_ENV === "production" ? Dy.exports = f9() : Dy.exports = p9()), Dy.exports;
}
/**
* @license React
* use-sync-external-store-shim/with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var BA;
function m9() {
if (BA) return I1;
BA = 1;
var e = ze, t = CR();
function r(p, y) {
return p === y && (p !== 0 || 1 / p === 1 / y) || p !== p && y !== y;
}
var n = typeof Object.is == "function" ? Object.is : r, i = t.useSyncExternalStore, s = e.useRef, c = e.useEffect, a = e.useMemo, d = e.useDebugValue;
return I1.useSyncExternalStoreWithSelector = function(p, y, g, v, w) {
var S = s(null);
if (S.current === null) {
var C = { hasValue: !1, value: null };
S.current = C;
} else C = S.current;
S = a(function() {
function I(R) {
if (!A) {
if (A = !0, O = R, R = v(R), w !== void 0 && C.hasValue) {
var N = C.value;
if (w(N, R)) return L = N;
}
return L = R;
}
if (N = L, n(O, R)) return N;
var Z = v(R);
return w !== void 0 && w(N, Z) ? N : (O = R, L = Z);
}
var A = !1, O, L, D = g === void 0 ? null : g;
return [function() {
return I(y());
}, D === null ? void 0 : function() {
return I(D());
}];
}, [y, g, v, w]);
var M = i(p, S[0], S[1]);
return c(function() {
C.hasValue = !0, C.value = M;
}, [M]), d(M), M;
}, I1;
}
var k1 = {};
/**
* @license React
* use-sync-external-store-shim/with-selector.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var jA;
function g9() {
return jA || (jA = 1, process.env.NODE_ENV !== "production" && function() {
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
var e = ze, t = CR();
function r(y, g) {
return y === g && (y !== 0 || 1 / y === 1 / g) || y !== y && g !== g;
}
var n = typeof Object.is == "function" ? Object.is : r, i = t.useSyncExternalStore, s = e.useRef, c = e.useEffect, a = e.useMemo, d = e.useDebugValue;
function p(y, g, v, w, S) {
var C = s(null), M;
C.current === null ? (M = {
hasValue: !1,
value: null
}, C.current = M) : M = C.current;
var I = a(function() {
var D = !1, R, N, Z = function(X) {
if (!D) {
D = !0, R = X;
var H = w(X);
if (S !== void 0 && M.hasValue) {
var B = M.value;
if (S(B, H))
return N = B, B;
}
return N = H, H;
}
var F = R, Y = N;
if (n(F, X))
return Y;
var J = w(X);
return S !== void 0 && S(Y, J) ? Y : (R = X, N = J, J);
}, ne = v === void 0 ? null : v, te = function() {
return Z(g());
}, W = ne === null ? void 0 : function() {
return Z(ne());
};
return [te, W];
}, [g, v, w, S]), A = I[0], O = I[1], L = i(y, A, O);
return c(function() {
M.hasValue = !0, M.value = L;
}, [L]), d(L), L;
}
k1.useSyncExternalStoreWithSelector = p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
}()), k1;
}
process.env.NODE_ENV === "production" ? K_.exports = m9() : K_.exports = g9();
var y9 = K_.exports;
const v9 = /* @__PURE__ */ sn(y9), { useDebugValue: b9 } = ze, { useSyncExternalStoreWithSelector: x9 } = v9, _9 = (e) => e;
function w9(e, t = _9, r) {
const n = x9(
e.subscribe,
e.getState,
e.getServerState || e.getInitialState,
t,
r
);
return b9(n), n;
}
const S9 = (e) => {
const t = typeof e == "function" ? d9(e) : e, r = (n, i) => w9(t, n, i);
return Object.assign(r, t), r;
}, C9 = (e) => S9(e), Kr = {
PICKER: "PICKER",
NORMAL: "NORMAL",
DRAW: "DRAW",
EDIT_PLOT: "EDIT_PLOT",
ADD_PLOT: "ADD_PLOT",
ADD_MARKER: "ADD_MARKER",
EDIT_MARKER: "EDIT_MARKER",
ADD_NEW_FARM: "ADD_NEW_FARM"
}, ns = {
NORMAL: "NORMAL",
COMPARISION_VIEW: "COMPARISION_VIEW"
}, FA = {
// all posible cursors on react-map-gl (maplibre)
DEFAULT: "",
POINTER: "pointer",
CROSSHAIR: "crosshair",
MOVE: "move",
GRAB: "grab",
GRABBING: "grabbing",
TEXT: "text",
WAIT: "wait",
HELP: "help"
}, Vt = C9((e) => ({
configs: {},
setConfigs: (t) => e({ configs: t }),
requestHeaders: void 0,
setRequestHeaders: (t) => e({ requestHeaders: t }),
setAccessToken: (t) => e({ accessToken: t }),
sidebarExpanded: !0,
setSidebarExpanded: (t) => e({ sidebarExpanded: t }),
hoveredValue: null,
setHoveredValue: (t) => e({ hoveredValue: t }),
cursor: FA.DEFAULT,
previousCursor: FA.DEFAULT,
setCursor: (t) => e((r) => ({
previousCursor: "grab",
cursor: t
})),
resetCursor: () => e((t) => ({ cursor: t.previousCursor })),
viewMode: Kr.NORMAL,
pickerData: null,
setPickerData: (t) => e({ pickerData: t }),
loadingNDVIImages: [],
addLoadingNDVIImage: (t) => e((r) => ({
loadingNDVIImages: [...r.loadingNDVIImages, t]
})),
removeLoadingNDVIImage: (t) => e((r) => ({
loadingNDVIImages: r.loadingNDVIImages.filter((n) => n !== t)
})),
isNDVIImageLoading: (t) => Vt.getState().loadingNDVIImages.includes(t),
setViewMode: (t) => e({ viewMode: t }),
toPickerMode: () => e({ viewMode: Kr.PICKER }),
toNormalMode: () => e({ viewMode: Kr.NORMAL }),
toDrawMode: () => e({ viewMode: Kr.DRAW }),
toggleNormalPickerMode: () => e((t) => ({
viewMode: t.viewMode === Kr.NORMAL ? Kr.PICKER : Kr.NORMAL
})),
cursorCords: [0, 0],
setCursorCords: (t) => e({ cursorCords: t }),
rasterLayer: { value: "3_NDVI", label: "NDVI" },
setRasterLayer: (t) => e({ rasterLayer: t }),
rasterOpacity: 100,
setRasterOpacity: (t) => e({ rasterOpacity: t }),
clickedMarker: null,
setClickedMarker: (t) => e({ clickedMarker: t }),
setShowCroppedImages: (t) => e({ showCroppedImages: t }),
showCroppedImages: !1,
datesLoading: !1,
setDatesLoading: (t) => e({ datesLoading: t }),
mapMode: ns.NORMAL,
setMapMode: (t) => e({ mapMode: t }),
dateRange: {
start: new Date(Date.now() - 30 * 24 * 60 * 60 * 1e3),
end: /* @__PURE__ */ new Date()
},
dateRange2: {
start: new Date(Date.now() - 30 * 24 * 60 * 60 * 1e3),
end: /* @__PURE__ */ new Date()
},
setDateRange: (t) => e({ dateRange: t }),
setDateRange2: (t) => e({ dateRange2: t }),
passDates: [],
setPassDates: (t) => e({ passDates: t })
}));
console.log("configs are ", Vt.getState().configs);
const zA = [
{
id: "satellite",
name: "Satellite",
url: "https://api.maptiler.com/maps/satellite/style.json"
},
{
id: "basic",
name: "Basic",
url: "https://api.maptiler.com/maps/basic-v2/style.json"
}
], Is = "https://agviewer.com/api/dashboard/", MS = "https://agviewer.com/api", Pv = "https://d27s6pvwcjpmsu.cloudfront.net/geoserver/", Ov = [
{ value: "3_NDVI", label: "NDVI" },
// { value: 'NDVI_RAW', label: 'NDVI_RAW' },
// { value: 'AGRICULTURE', label: 'AGRICULTURE' },
{ value: "2_FALSE_COLOR", label: "False color (vegetation) " },
{ value: "5-MOISTURE-INDEX1", label: "Moisture Index" },
{
value: "ET",
label: "Evapotranspiration",
url: `${Pv}ne/wms?service=WMS&version=1.1.0&request=GetMap&layers=ne%3Aet_data&bbox={bbox-epsg-3857}&width=512&height=512&srs=EPSG%3A3857&styles=&format=image%2Fpng&transparent=TRUE`,
getValueUrl: `${Pv}ne/wfs?service=WFS&version=1.1.0&request=GetFeature&typeName=ne%3Aet_data&propertyName=*&srsName=EPSG:4326&filter=<Filter><Point><coordinates>{lon},{lat}</coordinates></Point></Filter>&outputFormat=application/json`,
passDates: [
"2024-06-01",
"2024-11-14",
"2024-11-23",
"2024-12-07",
"2024-12-19"
],
// getAvailableDates: async function getAvailableDates(bbox) {
// const wmsUrl = 'https://d27s6pvwcjpmsu.cloudfront.net/geoserver/ne/wms';
// const layerName = 'et_data';
// // Construct the GetCapabilities request URL
// const capabilitiesUrl = `${wmsUrl}?service=WMS&version=1.1.0&request=GetCapabilities`;
// try {
// // Fetch the GetCapabilities XML
// const response = await fetch(capabilitiesUrl);
// const xmlText = await response.text();
// // Parse the XML response
// const parser = new DOMParser();
// const xmlDoc = parser.parseFromString(xmlText, 'text/xml');
// // Find the et_data layer (nested inside another Layer node)
// const layerNodes = xmlDoc.querySelectorAll('Layer');
// let layerNode = null;
// for (const node of layerNodes) {
// const nameNode = node.querySelector('Name');
// if (nameNode && nameNode.textContent === layerName) {
// layerNode = node;
// break;
// }
// }
// if (!layerNode) {
// throw new Error(`Layer ${layerName} not found in capabilities.`);
// }
// // Extract the time dimension values for the layer
// const dimensionNode = layerNode.querySelector("Dimension[name='time']");
// if (!dimensionNode) {
// throw new Error('Time dimension not found for the layer.');
// }
// const extentNode = layerNode.querySelector("Extent[name='time']");
// if (!extentNode) {
// throw new Error('Time extent not found for the layer.');
// }
// const timeValues = extentNode.textContent.trim().split(',');
// // Filter time values based on the bbox
// const filteredDates = [];
// for (const date of timeValues) {
// const hasData = await checkDateForBbox(wmsUrl, layerName, bbox, date);
// if (hasData) {
// filteredDates.push(date);
// }
// }
// return filteredDates;
// } catch (error) {
// console.error('Error fetching available dates:', error);
// return [];
// }
// },
getAvailableDates: async function(t) {
const r = "https://d27s6pvwcjpmsu.cloudfront.net/geoserver/ne/wfs", [n, i, s, c] = t;
console.log("wfs bbox", t), console.log("getting wfs dates");
const a = `${r}?service=WFS&version=2.0.0&request=GetFeature&typeNames=ne:et_data_vector&bbox=${n},${i},${s},${c},EPSG:4326&PropertyName=ingestion&outputFormat=application/json`;
try {
const d = await fetch(a);
if (!d.ok)
throw new Error(`WFS request failed with status ${d.status}`);
const p = await d.json();
console.log("wfs data", p);
const y = /* @__PURE__ */ new Set();
return p.features.forEach((v) => {
v.properties && v.properties.ingestion && y.add(v.properties.ingestion);
}), Array.from(y).sort().map((v) => new Date(v));
} catch (d) {
return console.error("Error fetching available dates:", d), [];
}
}
}
];
var Q_ = { exports: {} }, Ry = { exports: {} }, yn = {};
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var $A;
function M9() {
if ($A) return yn;
$A = 1;
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, S = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
function O(D) {
if (typeof D == "object" && D !== null) {
var R = D.$$typeof;
switch (R) {
case t:
switch (D = D.type, D) {
case d:
case p:
case n:
case s:
case i:
case g:
return D;
default:
switch (D = D && D.$$typeof, D) {
case a:
case y:
case S:
case w:
case c:
return D;
default:
return R;
}
}
case r:
return R;
}
}
}
function L(D) {
return O(D) === p;
}
return yn.AsyncMode = d, yn.ConcurrentMode = p, yn.ContextConsumer = a, yn.ContextProvider = c, yn.Element = t, yn.ForwardRef = y, yn.Fragment = n, yn.Lazy = S, yn.Memo = w, yn.Portal = r, yn.Profiler = s, yn.StrictMode = i, yn.Suspense = g, yn.isAsyncMode = function(D) {
return L(D) || O(D) === d;
}, yn.isConcurrentMode = L, yn.isContextConsumer = function(D) {
return O(D) === a;
}, yn.isContextProvider = function(D) {
return O(D) === c;
}, yn.isElement = function(D) {
return typeof D == "object" && D !== null && D.$$typeof === t;
}, yn.isForwardRef = function(D) {
return O(D) === y;
}, yn.isFragment = function(D) {
return O(D) === n;
}, yn.isLazy = function(D) {
return O(D) === S;
}, yn.isMemo = function(D) {
return O(D) === w;
}, yn.isPortal = function(D) {
return O(D) === r;
}, yn.isProfiler = function(D) {
return O(D) === s;
}, yn.isStrictMode = function(D) {
return O(D) === i;
}, yn.isSuspense = function(D) {
return O(D) === g;
}, yn.isValidElementType = function(D) {
return typeof D == "string" || typeof D == "function" || D === n || D === p || D === s || D === i || D === g || D === v || typeof D == "object" && D !== null && (D.$$typeof === S || D.$$typeof === w || D.$$typeof === c || D.$$typeof === a || D.$$typeof === y || D.$$typeof === M || D.$$typeof === I || D.$$typeof === A || D.$$typeof === C);
}, yn.typeOf = O, yn;
}
var vn = {};
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var GA;
function E9() {
return GA || (GA = 1, process.env.NODE_ENV !== "production" && function() {
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, S = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
function O(U) {
return typeof U == "string" || typeof U == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
U === n || U === p || U === s || U === i || U === g || U === v || typeof U == "object" && U !== null && (U.$$typeof === S || U.$$typeof === w || U.$$typeof === c || U.$$typeof === a || U.$$typeof === y || U.$$typeof === M || U.$$typeof === I || U.$$typeof === A || U.$$typeof === C);
}
function L(U) {
if (typeof U == "object" && U !== null) {
var he = U.$$typeof;
switch (he) {
case t:
var se = U.type;
switch (se) {
case d:
case p:
case n:
case s:
case i:
case g:
return se;
default:
var xe = se && se.$$typeof;
switch (xe) {
case a:
case y:
case S:
case w:
case c:
return xe;
default:
return he;
}
}
case r:
return he;
}
}
}
var D = d, R = p, N = a, Z = c, ne = t, te = y, W = n, X = S, H = w, B = r, F = s, Y = i, J = g, K = !1;
function ie(U) {
return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), q(U) || L(U) === d;
}
function q(U) {
return L(U) === p;
}
function fe(U) {
return L(U) === a;
}
function be(U) {
return L(U) === c;
}
function ae(U) {
return typeof U == "object" && U !== null && U.$$typeof === t;
}
function me(U) {
return L(U) === y;
}
function we(U) {
return L(U) === n;
}
function Me(U) {
return L(U) === S;
}
function $e(U) {
return L(U) === w;
}
function oe(U) {
return L(U) === r;
}
function re(U) {
return L(U) === s;
}
function de(U) {
return L(U) === i;
}
function Ce(U) {
return L(U) === g;
}
vn.AsyncMode = D, vn.ConcurrentMode = R, vn.ContextConsumer = N, vn.ContextProvider = Z, vn.Element = ne, vn.ForwardRef = te, vn.Fragment = W, vn.Lazy = X, vn.Memo = H, vn.Portal = B, vn.Profiler = F, vn.StrictMode = Y, vn.Suspense = J, vn.isAsyncMode = ie, vn.isConcurrentMode = q, vn.isContextConsumer = fe, vn.isContextProvider = be, vn.isElement = ae, vn.isForwardRef = me, vn.isFragment = we, vn.isLazy = Me, vn.isMemo = $e, vn.isPortal = oe, vn.isProfiler = re, vn.isStrictMode = de, vn.isSuspense = Ce, vn.isValidElementType = O, vn.typeOf = L;
}()), vn;
}
var VA;
function ES() {
return VA || (VA = 1, process.env.NODE_ENV === "production" ? Ry.exports = M9() : Ry.exports = E9()), Ry.exports;
}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var D1, WA;
function A9() {
if (WA) return D1;
WA = 1;
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
function n(s) {
if (s == null)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(s);
}
function i() {
try {
if (!Object.assign)
return !1;
var s = new String("abc");
if (s[5] = "de", Object.getOwnPropertyNames(s)[0] === "5")
return !1;
for (var c = {}, a = 0; a < 10; a++)
c["_" + String.fromCharCode(a)] = a;
var d = Object.getOwnPropertyNames(c).map(function(y) {
return c[y];
});
if (d.join("") !== "0123456789")
return !1;
var p = {};
return "abcdefghijklmnopqrst".split("").forEach(function(y) {
p[y] = y;
}), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
}
return D1 = i() ? Object.assign : function(s, c) {
for (var a, d = n(s), p, y = 1; y < arguments.length; y++) {
a = Object(arguments[y]);
for (var g in a)
t.call(a, g) && (d[g] = a[g]);
if (e) {
p = e(a);
for (var v = 0; v < p.length; v++)
r.call(a, p[v]) && (d[p[v]] = a[p[v]]);
}
}
return d;
}, D1;
}
var R1, HA;
function AS() {
if (HA) return R1;
HA = 1;
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
return R1 = e, R1;
}
var L1, UA;
function MR() {
return UA || (UA = 1, L1 = Function.call.bind(Object.prototype.hasOwnProperty)), L1;
}
var N1, XA;
function T9() {
if (XA) return N1;
XA = 1;
var e = function() {
};
if (process.env.NODE_ENV !== "production") {
var t = AS(), r = {}, n = MR();
e = function(s) {
var c = "Warning: " + s;
typeof console < "u" && console.error(c);
try {
throw new Error(c);
} catch {
}
};
}
function i(s, c, a, d, p) {
if (process.env.NODE_ENV !== "production") {
for (var y in s)
if (n(s, y)) {
var g;
try {
if (typeof s[y] != "function") {
var v = Error(
(d || "React class") + ": " + a + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
);
throw v.name = "Invariant Violation", v;
}
g = s[y](c, y, d, a, null, t);
} catch (S) {
g = S;
}
if (g && !(g instanceof Error) && e(
(d || "React class") + ": type specification of " + a + " `" + y + "` is invalid; the