col-browser 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/bibtex.js +8 -0
- package/es/bibtex.js.map +1 -0
- package/es/chunks/AntdIcon-B1nMlqyh.js +984 -0
- package/es/chunks/AntdIcon-B1nMlqyh.js.map +1 -0
- package/es/chunks/BibTex-BqzD3qLB.js +13 -0
- package/es/chunks/BibTex-BqzD3qLB.js.map +1 -0
- package/es/chunks/DatasetCitation-bkPmDDYB.js +119 -0
- package/es/chunks/DatasetCitation-bkPmDDYB.js.map +1 -0
- package/es/chunks/DatasetlogoWithFallback-CbP7vRs_.js +823 -0
- package/es/chunks/DatasetlogoWithFallback-CbP7vRs_.js.map +1 -0
- package/es/chunks/Distributions-DDYEbGhW.js +1110 -0
- package/es/chunks/Distributions-DDYEbGhW.js.map +1 -0
- package/es/chunks/ErrorMsg-K8k5PPTp.js +26 -0
- package/es/chunks/ErrorMsg-K8k5PPTp.js.map +1 -0
- package/es/chunks/LinkOutlined-2IkQWTV7.js +22 -0
- package/es/chunks/LinkOutlined-2IkQWTV7.js.map +1 -0
- package/es/chunks/MergedDataBadge-DsTsn5Xu.js +134 -0
- package/es/chunks/MergedDataBadge-DsTsn5Xu.js.map +1 -0
- package/es/chunks/MetricsPresentation-U_CO8JoH.js +66 -0
- package/es/chunks/MetricsPresentation-U_CO8JoH.js.map +1 -0
- package/es/chunks/TaxonBreakdown-BshFaQql.js +205 -0
- package/es/chunks/TaxonBreakdown-BshFaQql.js.map +1 -0
- package/es/chunks/config-BPRXv9x8.js +31 -0
- package/es/chunks/config-BPRXv9x8.js.map +1 -0
- package/es/chunks/dataset-DvQG4NjA.js +30 -0
- package/es/chunks/dataset-DvQG4NjA.js.map +1 -0
- package/es/chunks/enumeration-yDQXSZsf.js +12 -0
- package/es/chunks/enumeration-yDQXSZsf.js.map +1 -0
- package/es/chunks/index-CNK3JADR.js +95 -0
- package/es/chunks/index-CNK3JADR.js.map +1 -0
- package/es/chunks/jsx-runtime-BzflLqGi.js +283 -0
- package/es/chunks/jsx-runtime-BzflLqGi.js.map +1 -0
- package/es/chunks/router-CssZk5qZ.js +109 -0
- package/es/chunks/router-CssZk5qZ.js.map +1 -0
- package/es/chunks/sector-BnVzMnMO.js +9 -0
- package/es/chunks/sector-BnVzMnMO.js.map +1 -0
- package/es/chunks/withDatasetKey-BgMY05XE.js +48 -0
- package/es/chunks/withDatasetKey-BgMY05XE.js.map +1 -0
- package/es/col-browser.css +1 -1
- package/es/index.js +18 -7964
- package/es/index.js.map +1 -1
- package/es/routing.js +5 -0
- package/es/routing.js.map +1 -0
- package/es/search.js +803 -0
- package/es/search.js.map +1 -0
- package/es/sourceDataset.js +453 -0
- package/es/sourceDataset.js.map +1 -0
- package/es/sourceDatasetList.js +366 -0
- package/es/sourceDatasetList.js.map +1 -0
- package/es/taxon.js +1643 -0
- package/es/taxon.js.map +1 -0
- package/es/taxonBreakdown.js +42 -0
- package/es/taxonBreakdown.js.map +1 -0
- package/es/taxonDistribution.js +48 -0
- package/es/taxonDistribution.js.map +1 -0
- package/es/tree.js +821 -0
- package/es/tree.js.map +1 -0
- package/package.json +48 -7
- package/types/bibtex.d.ts +1 -0
- package/types/index.d.ts +158 -0
- package/types/routing.d.ts +1 -0
- package/types/search.d.ts +1 -0
- package/types/sourceDataset.d.ts +1 -0
- package/types/sourceDatasetList.d.ts +1 -0
- package/types/taxon.d.ts +1 -0
- package/types/taxonBreakdown.d.ts +1 -0
- package/types/taxonDistribution.d.ts +1 -0
- package/types/tree.d.ts +1 -0
- package/umd/col-browser.js +20478 -27048
- package/umd/col-browser.js.map +1 -1
- package/umd/col-browser.min.js +5 -13
- package/umd/col-browser.min.js.map +1 -1
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import K from "react";
|
|
2
|
+
var v = { exports: {} }, m = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var I;
|
|
13
|
+
function ee() {
|
|
14
|
+
if (I) return m;
|
|
15
|
+
I = 1;
|
|
16
|
+
var l = Symbol.for("react.transitional.element"), E = Symbol.for("react.fragment");
|
|
17
|
+
function c(i, o, s) {
|
|
18
|
+
var f = null;
|
|
19
|
+
if (s !== void 0 && (f = "" + s), o.key !== void 0 && (f = "" + o.key), "key" in o) {
|
|
20
|
+
s = {};
|
|
21
|
+
for (var d in o)
|
|
22
|
+
d !== "key" && (s[d] = o[d]);
|
|
23
|
+
} else s = o;
|
|
24
|
+
return o = s.ref, {
|
|
25
|
+
$$typeof: l,
|
|
26
|
+
type: i,
|
|
27
|
+
key: f,
|
|
28
|
+
ref: o !== void 0 ? o : null,
|
|
29
|
+
props: s
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return m.Fragment = E, m.jsx = c, m.jsxs = c, m;
|
|
33
|
+
}
|
|
34
|
+
var _ = {};
|
|
35
|
+
/**
|
|
36
|
+
* @license React
|
|
37
|
+
* react-jsx-runtime.development.js
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/
|
|
44
|
+
var $;
|
|
45
|
+
function re() {
|
|
46
|
+
return $ || ($ = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
47
|
+
function l(e) {
|
|
48
|
+
if (e == null) return null;
|
|
49
|
+
if (typeof e == "function")
|
|
50
|
+
return e.$$typeof === H ? null : e.displayName || e.name || null;
|
|
51
|
+
if (typeof e == "string") return e;
|
|
52
|
+
switch (e) {
|
|
53
|
+
case p:
|
|
54
|
+
return "Fragment";
|
|
55
|
+
case U:
|
|
56
|
+
return "Profiler";
|
|
57
|
+
case W:
|
|
58
|
+
return "StrictMode";
|
|
59
|
+
case z:
|
|
60
|
+
return "Suspense";
|
|
61
|
+
case G:
|
|
62
|
+
return "SuspenseList";
|
|
63
|
+
case B:
|
|
64
|
+
return "Activity";
|
|
65
|
+
}
|
|
66
|
+
if (typeof e == "object")
|
|
67
|
+
switch (typeof e.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), e.$$typeof) {
|
|
70
|
+
case M:
|
|
71
|
+
return "Portal";
|
|
72
|
+
case V:
|
|
73
|
+
return e.displayName || "Context";
|
|
74
|
+
case J:
|
|
75
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
76
|
+
case q:
|
|
77
|
+
var r = e.render;
|
|
78
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
79
|
+
case X:
|
|
80
|
+
return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
|
|
81
|
+
case T:
|
|
82
|
+
r = e._payload, e = e._init;
|
|
83
|
+
try {
|
|
84
|
+
return l(e(r));
|
|
85
|
+
} catch {
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
function E(e) {
|
|
91
|
+
return "" + e;
|
|
92
|
+
}
|
|
93
|
+
function c(e) {
|
|
94
|
+
try {
|
|
95
|
+
E(e);
|
|
96
|
+
var r = !1;
|
|
97
|
+
} catch {
|
|
98
|
+
r = !0;
|
|
99
|
+
}
|
|
100
|
+
if (r) {
|
|
101
|
+
r = console;
|
|
102
|
+
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
103
|
+
return t.call(
|
|
104
|
+
r,
|
|
105
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
|
+
n
|
|
107
|
+
), E(e);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function i(e) {
|
|
111
|
+
if (e === p) return "<>";
|
|
112
|
+
if (typeof e == "object" && e !== null && e.$$typeof === T)
|
|
113
|
+
return "<...>";
|
|
114
|
+
try {
|
|
115
|
+
var r = l(e);
|
|
116
|
+
return r ? "<" + r + ">" : "<...>";
|
|
117
|
+
} catch {
|
|
118
|
+
return "<...>";
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function o() {
|
|
122
|
+
var e = k.A;
|
|
123
|
+
return e === null ? null : e.getOwner();
|
|
124
|
+
}
|
|
125
|
+
function s() {
|
|
126
|
+
return Error("react-stack-top-frame");
|
|
127
|
+
}
|
|
128
|
+
function f(e) {
|
|
129
|
+
if (x.call(e, "key")) {
|
|
130
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
131
|
+
if (r && r.isReactWarning) return !1;
|
|
132
|
+
}
|
|
133
|
+
return e.key !== void 0;
|
|
134
|
+
}
|
|
135
|
+
function d(e, r) {
|
|
136
|
+
function t() {
|
|
137
|
+
g || (g = !0, console.error(
|
|
138
|
+
"%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://react.dev/link/special-props)",
|
|
139
|
+
r
|
|
140
|
+
));
|
|
141
|
+
}
|
|
142
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
143
|
+
get: t,
|
|
144
|
+
configurable: !0
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function D() {
|
|
148
|
+
var e = l(this.type);
|
|
149
|
+
return h[e] || (h[e] = !0, console.error(
|
|
150
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
152
|
+
}
|
|
153
|
+
function L(e, r, t, n, b, A) {
|
|
154
|
+
var a = t.ref;
|
|
155
|
+
return e = {
|
|
156
|
+
$$typeof: j,
|
|
157
|
+
type: e,
|
|
158
|
+
key: r,
|
|
159
|
+
props: t,
|
|
160
|
+
_owner: n
|
|
161
|
+
}, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
|
|
162
|
+
enumerable: !1,
|
|
163
|
+
get: D
|
|
164
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
165
|
+
configurable: !1,
|
|
166
|
+
enumerable: !1,
|
|
167
|
+
writable: !0,
|
|
168
|
+
value: 0
|
|
169
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
170
|
+
configurable: !1,
|
|
171
|
+
enumerable: !1,
|
|
172
|
+
writable: !0,
|
|
173
|
+
value: null
|
|
174
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
175
|
+
configurable: !1,
|
|
176
|
+
enumerable: !1,
|
|
177
|
+
writable: !0,
|
|
178
|
+
value: b
|
|
179
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
180
|
+
configurable: !1,
|
|
181
|
+
enumerable: !1,
|
|
182
|
+
writable: !0,
|
|
183
|
+
value: A
|
|
184
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
185
|
+
}
|
|
186
|
+
function P(e, r, t, n, b, A) {
|
|
187
|
+
var a = r.children;
|
|
188
|
+
if (a !== void 0)
|
|
189
|
+
if (n)
|
|
190
|
+
if (Z(a)) {
|
|
191
|
+
for (n = 0; n < a.length; n++)
|
|
192
|
+
w(a[n]);
|
|
193
|
+
Object.freeze && Object.freeze(a);
|
|
194
|
+
} else
|
|
195
|
+
console.error(
|
|
196
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
|
+
);
|
|
198
|
+
else w(a);
|
|
199
|
+
if (x.call(r, "key")) {
|
|
200
|
+
a = l(e);
|
|
201
|
+
var u = Object.keys(r).filter(function(Q) {
|
|
202
|
+
return Q !== "key";
|
|
203
|
+
});
|
|
204
|
+
n = 0 < u.length ? "{key: someKey, " + u.join(": ..., ") + ": ...}" : "{key: someKey}", Y[a + n] || (u = 0 < u.length ? "{" + u.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
206
|
+
let props = %s;
|
|
207
|
+
<%s {...props} />
|
|
208
|
+
React keys must be passed directly to JSX without using spread:
|
|
209
|
+
let props = %s;
|
|
210
|
+
<%s key={someKey} {...props} />`,
|
|
211
|
+
n,
|
|
212
|
+
a,
|
|
213
|
+
u,
|
|
214
|
+
a
|
|
215
|
+
), Y[a + n] = !0);
|
|
216
|
+
}
|
|
217
|
+
if (a = null, t !== void 0 && (c(t), a = "" + t), f(r) && (c(r.key), a = "" + r.key), "key" in r) {
|
|
218
|
+
t = {};
|
|
219
|
+
for (var S in r)
|
|
220
|
+
S !== "key" && (t[S] = r[S]);
|
|
221
|
+
} else t = r;
|
|
222
|
+
return a && d(
|
|
223
|
+
t,
|
|
224
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
225
|
+
), L(
|
|
226
|
+
e,
|
|
227
|
+
a,
|
|
228
|
+
t,
|
|
229
|
+
o(),
|
|
230
|
+
b,
|
|
231
|
+
A
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
function w(e) {
|
|
235
|
+
y(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === T && (e._payload.status === "fulfilled" ? y(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
236
|
+
}
|
|
237
|
+
function y(e) {
|
|
238
|
+
return typeof e == "object" && e !== null && e.$$typeof === j;
|
|
239
|
+
}
|
|
240
|
+
var R = K, j = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), U = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), V = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), X = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), k = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, x = Object.prototype.hasOwnProperty, Z = Array.isArray, O = console.createTask ? console.createTask : function() {
|
|
241
|
+
return null;
|
|
242
|
+
};
|
|
243
|
+
R = {
|
|
244
|
+
react_stack_bottom_frame: function(e) {
|
|
245
|
+
return e();
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
var g, h = {}, N = R.react_stack_bottom_frame.bind(
|
|
249
|
+
R,
|
|
250
|
+
s
|
|
251
|
+
)(), C = O(i(s)), Y = {};
|
|
252
|
+
_.Fragment = p, _.jsx = function(e, r, t) {
|
|
253
|
+
var n = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
254
|
+
return P(
|
|
255
|
+
e,
|
|
256
|
+
r,
|
|
257
|
+
t,
|
|
258
|
+
!1,
|
|
259
|
+
n ? Error("react-stack-top-frame") : N,
|
|
260
|
+
n ? O(i(e)) : C
|
|
261
|
+
);
|
|
262
|
+
}, _.jsxs = function(e, r, t) {
|
|
263
|
+
var n = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
264
|
+
return P(
|
|
265
|
+
e,
|
|
266
|
+
r,
|
|
267
|
+
t,
|
|
268
|
+
!0,
|
|
269
|
+
n ? Error("react-stack-top-frame") : N,
|
|
270
|
+
n ? O(i(e)) : C
|
|
271
|
+
);
|
|
272
|
+
};
|
|
273
|
+
})()), _;
|
|
274
|
+
}
|
|
275
|
+
var F;
|
|
276
|
+
function te() {
|
|
277
|
+
return F || (F = 1, process.env.NODE_ENV === "production" ? v.exports = ee() : v.exports = re()), v.exports;
|
|
278
|
+
}
|
|
279
|
+
var ae = te();
|
|
280
|
+
export {
|
|
281
|
+
ae as j
|
|
282
|
+
};
|
|
283
|
+
//# sourceMappingURL=jsx-runtime-BzflLqGi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime-BzflLqGi.js","sources":["../../node_modules/react/cjs/react-jsx-runtime.production.js","../../node_modules/react/cjs/react-jsx-runtime.development.js","../../node_modules/react/jsx-runtime.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%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://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","owner","debugStack","debugTask","refProp","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","isValidElement","object","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1"],"mappings":";;;;;;;;;;;;;;;AAWA,MAAIA,IAAqB,OAAO,IAAI,4BAA4B,GAC9DC,IAAsB,OAAO,IAAI,gBAAgB;AACnD,WAASC,EAAQC,GAAMC,GAAQC,GAAU;AACvC,QAAIC,IAAM;AAGV,QAFWD,MAAX,WAAwBC,IAAM,KAAKD,IACxBD,EAAO,QAAlB,WAA0BE,IAAM,KAAKF,EAAO,MACxC,SAASA,GAAQ;AACnB,MAAAC,IAAW,CAAA;AACX,eAASE,KAAYH;AACnB,QAAUG,MAAV,UAAuBF,EAASE,CAAQ,IAAIH,EAAOG,CAAQ;AAAA,IACjE,MAAS,CAAAF,IAAWD;AAClB,WAAAA,IAASC,EAAS,KACX;AAAA,MACL,UAAUL;AAAA,MACV,MAAMG;AAAA,MACN,KAAKG;AAAA,MACL,KAAgBF,MAAX,SAAoBA,IAAS;AAAA,MAClC,OAAOC;AAAA;EAEX;AACA,SAAAG,EAAA,WAAmBP,GACnBO,EAAA,MAAcN,GACdM,EAAA,OAAeN;;;;;;;;;;;;;;sBCtBE,QAAQ,IAAI,aAA7B,iBACG,WAAY;AACX,aAASO,EAAyBN,GAAM;AACtC,UAAYA,KAAR,KAAc,QAAO;AACzB,UAAmB,OAAOA,KAAtB;AACF,eAAOA,EAAK,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BqB,IAAyBJ,EAAM,yBAAyB;AAAA,MAC1DA;AAAA,MACA5B;AAAA,IACN,EAAK,GACGiC,IAAwBH,EAAWnC,EAAYK,CAAY,CAAC,GAC5DwB,IAAwB,CAAA;AAC5B,IAAAU,EAAA,WAAmBnE,GACnBmE,EAAA,MAAc,SAAUjE,GAAMC,GAAQC,GAAU;AAC9C,UAAIgE,IACF,MAAMpC,EAAqB;AAC7B,aAAOkB;AAAA,QACLhD;AAAA,QACAC;AAAA,QACAC;AAAA,QACA;AAAA,QACAgE,IACI,MAAM,uBAAuB,IAC7BH;AAAA,QACJG,IAAmBL,EAAWnC,EAAY1B,CAAI,CAAC,IAAIgE;AAAA;IAE3D,GACIC,EAAA,OAAe,SAAUjE,GAAMC,GAAQC,GAAU;AAC/C,UAAIgE,IACF,MAAMpC,EAAqB;AAC7B,aAAOkB;AAAA,QACLhD;AAAA,QACAC;AAAA,QACAC;AAAA,QACA;AAAA,QACAgE,IACI,MAAM,uBAAuB,IAC7BH;AAAA,QACJG,IAAmBL,EAAWnC,EAAY1B,CAAI,CAAC,IAAIgE;AAAA;IAE3D;AAAA,EACA,GAAG;;;;sBC7VC,QAAQ,IAAI,aAAa,eAC3BG,EAAA,UAAiBP,GAAA,IAEjBO,EAAA,UAAiBC,GAAA;;;","x_google_ignoreList":[0,1,2]}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { j as g } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import { createContext as y, useContext as x } from "react";
|
|
3
|
+
let v = null;
|
|
4
|
+
function R(t) {
|
|
5
|
+
v = t ? `Basic ${btoa(t)}` : null;
|
|
6
|
+
}
|
|
7
|
+
const C = (t, r) => {
|
|
8
|
+
if (!r) return t;
|
|
9
|
+
const e = new URLSearchParams();
|
|
10
|
+
Object.entries(r).forEach(([n, s]) => {
|
|
11
|
+
s != null && (Array.isArray(s) ? s.forEach((f) => e.append(n, f)) : e.append(n, s));
|
|
12
|
+
});
|
|
13
|
+
const o = e.toString();
|
|
14
|
+
return o ? t + (t.includes("?") ? "&" : "?") + o : t;
|
|
15
|
+
}, F = async (t) => {
|
|
16
|
+
if (t.status === 204) return null;
|
|
17
|
+
const r = t.headers && t.headers.get && t.headers.get("content-type") || "", e = await t.text();
|
|
18
|
+
if (e === "") return null;
|
|
19
|
+
if (/\bjson\b/i.test(r))
|
|
20
|
+
try {
|
|
21
|
+
return JSON.parse(e);
|
|
22
|
+
} catch {
|
|
23
|
+
return e;
|
|
24
|
+
}
|
|
25
|
+
return e;
|
|
26
|
+
}, h = async (t, { method: r = "GET", params: e, headers: o, data: n, withAuth: s } = {}) => {
|
|
27
|
+
const f = C(t, e), i = { ...o || {} };
|
|
28
|
+
s && v && (i.Authorization = v);
|
|
29
|
+
let c;
|
|
30
|
+
n !== void 0 && (c = JSON.stringify(n), Object.keys(i).some(
|
|
31
|
+
(a) => a.toLowerCase() === "content-type"
|
|
32
|
+
) || (i["Content-Type"] = "application/json"));
|
|
33
|
+
let l;
|
|
34
|
+
try {
|
|
35
|
+
l = await fetch(f, { method: r, headers: i, body: c });
|
|
36
|
+
} catch (u) {
|
|
37
|
+
const a = new Error((u == null ? void 0 : u.message) || "Network Error");
|
|
38
|
+
throw a.request = u, a.config = { method: r.toLowerCase(), url: f }, a;
|
|
39
|
+
}
|
|
40
|
+
const d = await F(l);
|
|
41
|
+
if (!l.ok) {
|
|
42
|
+
const u = new Error(`Request failed with status code ${l.status}`);
|
|
43
|
+
throw u.response = {
|
|
44
|
+
status: l.status,
|
|
45
|
+
data: d,
|
|
46
|
+
request: { responseURL: l.url }
|
|
47
|
+
}, u.config = { method: r.toLowerCase(), url: f, data: c }, u;
|
|
48
|
+
}
|
|
49
|
+
return { data: d, status: l.status };
|
|
50
|
+
}, N = (t) => {
|
|
51
|
+
const r = (e, o = {}) => h(e, { ...o, withAuth: t });
|
|
52
|
+
return r.get = (e, o = {}) => h(e, { ...o, method: "GET", withAuth: t }), r.delete = (e, o = {}) => h(e, { ...o, method: "DELETE", withAuth: t }), r.post = (e, o, n = {}) => h(e, { ...n, method: "POST", data: o, withAuth: t }), r.put = (e, o, n = {}) => h(e, { ...n, method: "PUT", data: o, withAuth: t }), r.patch = (e, o, n = {}) => h(e, { ...n, method: "PATCH", data: o, withAuth: t }), r;
|
|
53
|
+
}, S = N(!0), w = N(!1), m = () => {
|
|
54
|
+
}, p = {
|
|
55
|
+
taxon: { onNavigate: null, hrefFor: null },
|
|
56
|
+
tree: { onNavigate: null, hrefFor: null },
|
|
57
|
+
search: { onNavigate: null, hrefFor: null },
|
|
58
|
+
source: { onNavigate: null, hrefFor: null }
|
|
59
|
+
}, b = y(p), T = () => x(b), L = (t) => ({
|
|
60
|
+
taxon: {
|
|
61
|
+
onNavigate: t.onNavigateToTaxon || null,
|
|
62
|
+
hrefFor: t.hrefForTaxon || null
|
|
63
|
+
},
|
|
64
|
+
tree: {
|
|
65
|
+
onNavigate: t.onNavigateToTree || null,
|
|
66
|
+
hrefFor: t.hrefForTree || null
|
|
67
|
+
},
|
|
68
|
+
search: {
|
|
69
|
+
onNavigate: t.onNavigateToSearch || null,
|
|
70
|
+
hrefFor: t.hrefForSearch || null
|
|
71
|
+
},
|
|
72
|
+
source: {
|
|
73
|
+
onNavigate: t.onNavigateToSource || null,
|
|
74
|
+
hrefFor: t.hrefForSource || null
|
|
75
|
+
}
|
|
76
|
+
}), k = ({ to: t, args: r, children: e, className: o, style: n, title: s }) => {
|
|
77
|
+
const i = T()[t];
|
|
78
|
+
if (!i) return /* @__PURE__ */ g.jsx("span", { style: n, className: o, title: s, children: e });
|
|
79
|
+
const { onNavigate: c, hrefFor: l } = i, d = l ? l(r) : c ? "#" : null;
|
|
80
|
+
if (!c && !d)
|
|
81
|
+
return /* @__PURE__ */ g.jsx("span", { style: n, className: o, title: s, children: e });
|
|
82
|
+
const u = c ? (a) => {
|
|
83
|
+
a.defaultPrevented || a.button === 0 && (a.metaKey || a.ctrlKey || a.shiftKey || a.altKey || (a.preventDefault(), c(r)));
|
|
84
|
+
} : void 0;
|
|
85
|
+
return /* @__PURE__ */ g.jsx(
|
|
86
|
+
"a",
|
|
87
|
+
{
|
|
88
|
+
href: d || void 0,
|
|
89
|
+
onClick: u,
|
|
90
|
+
className: o,
|
|
91
|
+
style: n,
|
|
92
|
+
title: s,
|
|
93
|
+
children: e
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
}, q = (t) => {
|
|
97
|
+
const e = T()[t];
|
|
98
|
+
return !e || !e.onNavigate ? m : e.onNavigate;
|
|
99
|
+
};
|
|
100
|
+
export {
|
|
101
|
+
k as L,
|
|
102
|
+
b as R,
|
|
103
|
+
L as b,
|
|
104
|
+
S as c,
|
|
105
|
+
w as p,
|
|
106
|
+
R as s,
|
|
107
|
+
q as u
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=router-CssZk5qZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router-CssZk5qZ.js","sources":["../../src/api/client.js","../../src/router.js"],"sourcesContent":["// A tiny fetch wrapper that mirrors the small slice of the axios API this\n// library uses, so we can drop the axios dependency entirely (and, in the UMD\n// build, the Buffer polyfill that only existed for axios).\n//\n// client(url, config?) -> GET, with CoL Basic-Auth when set\n// client.get/post/put/delete/... -> same, per method\n// publicClient.* -> identical surface but never sends auth\n// (third-party GBIF + the public feedback POST)\n//\n// Responses resolve to { data, status } (data = parsed JSON). A non-2xx\n// response rejects with an axios-shaped error: err.response = { status, data },\n// plus err.message and err.config — so existing `err.response.status === 404`\n// handling and ErrorMsg keep working unchanged. Network errors reject with\n// err.response left undefined, matching axios.\n\nlet authHeader = null;\n\n// Set (or clear) HTTP Basic auth for the authed client. `auth` is a\n// \"user:password\" string; pass a falsy value to clear it.\nexport function setAuth(auth) {\n authHeader = auth ? `Basic ${btoa(auth)}` : null;\n}\n\nconst buildUrl = (url, params) => {\n if (!params) return url;\n const qs = new URLSearchParams();\n Object.entries(params).forEach(([k, v]) => {\n if (v === null || v === undefined) return;\n if (Array.isArray(v)) v.forEach((item) => qs.append(k, item));\n else qs.append(k, v);\n });\n const q = qs.toString();\n if (!q) return url;\n return url + (url.includes(\"?\") ? \"&\" : \"?\") + q;\n};\n\nconst parseBody = async (res) => {\n if (res.status === 204) return null;\n const ct =\n (res.headers && res.headers.get && res.headers.get(\"content-type\")) || \"\";\n const text = await res.text();\n if (text === \"\") return null;\n // Parse application/json AND structured-suffix JSON types such as\n // application/geo+json (the distribution-map area shapes use that). Fall back\n // to raw text otherwise, or if parsing fails — mirroring axios's default\n // lenient JSON handling, which parsed any body regardless of content-type.\n if (/\\bjson\\b/i.test(ct)) {\n try {\n return JSON.parse(text);\n } catch {\n return text;\n }\n }\n return text;\n};\n\nconst request = async (\n url,\n { method = \"GET\", params, headers, data, withAuth } = {}\n) => {\n const finalUrl = buildUrl(url, params);\n const finalHeaders = { ...(headers || {}) };\n if (withAuth && authHeader) finalHeaders.Authorization = authHeader;\n\n let body;\n if (data !== undefined) {\n body = JSON.stringify(data);\n const hasCt = Object.keys(finalHeaders).some(\n (h) => h.toLowerCase() === \"content-type\"\n );\n if (!hasCt) finalHeaders[\"Content-Type\"] = \"application/json\";\n }\n\n let res;\n try {\n res = await fetch(finalUrl, { method, headers: finalHeaders, body });\n } catch (cause) {\n const err = new Error(cause?.message || \"Network Error\");\n err.request = cause;\n err.config = { method: method.toLowerCase(), url: finalUrl };\n throw err;\n }\n\n const payload = await parseBody(res);\n if (!res.ok) {\n const err = new Error(`Request failed with status code ${res.status}`);\n err.response = {\n status: res.status,\n data: payload,\n request: { responseURL: res.url },\n };\n err.config = { method: method.toLowerCase(), url: finalUrl, data: body };\n throw err;\n }\n return { data: payload, status: res.status };\n};\n\nconst makeClient = (withAuth) => {\n const call = (url, config = {}) => request(url, { ...config, withAuth });\n call.get = (url, config = {}) => request(url, { ...config, method: \"GET\", withAuth });\n call.delete = (url, config = {}) =>\n request(url, { ...config, method: \"DELETE\", withAuth });\n call.post = (url, data, config = {}) =>\n request(url, { ...config, method: \"POST\", data, withAuth });\n call.put = (url, data, config = {}) =>\n request(url, { ...config, method: \"PUT\", data, withAuth });\n call.patch = (url, data, config = {}) =>\n request(url, { ...config, method: \"PATCH\", data, withAuth });\n return call;\n};\n\nconst client = makeClient(true);\nexport const publicClient = makeClient(false);\nexport default client;\n","import React, { createContext, useContext } from \"react\";\n\n// One context provides the four navigation primitives every component\n// might want. Each top-level component (Taxon, Tree, Search,\n// SourceDataset, ...) builds this from its `onNavigateToX` / `hrefForX`\n// props and wraps its subtree in a Provider. Sub-components don't get\n// pathToX props anymore — they consume the context directly via <LinkTo>.\n\nconst noop = () => undefined;\n\nconst defaultRouter = {\n taxon: { onNavigate: null, hrefFor: null },\n tree: { onNavigate: null, hrefFor: null },\n search: { onNavigate: null, hrefFor: null },\n source: { onNavigate: null, hrefFor: null },\n};\n\nexport const RouterContext = createContext(defaultRouter);\n\nexport const useRouter = () => useContext(RouterContext);\n\n// Builds a context value from the top-level component's props.\n// Pass through whichever of the four navigation pairs are wired up.\nexport const buildRouter = (props) => ({\n taxon: {\n onNavigate: props.onNavigateToTaxon || null,\n hrefFor: props.hrefForTaxon || null,\n },\n tree: {\n onNavigate: props.onNavigateToTree || null,\n hrefFor: props.hrefForTree || null,\n },\n search: {\n onNavigate: props.onNavigateToSearch || null,\n hrefFor: props.hrefForSearch || null,\n },\n source: {\n onNavigate: props.onNavigateToSource || null,\n hrefFor: props.hrefForSource || null,\n },\n});\n\n// <LinkTo to=\"taxon\" args={id}>{children}</LinkTo>\n//\n// - Renders <a href={hrefFor(args)} onClick={...}> when both are wired.\n// - Renders <a href=\"#\" onClick={...}> when only onNavigate is wired.\n// - Renders <a href={hrefFor(args)}> when only hrefFor is wired.\n// - Renders plain <span> when neither is wired.\n//\n// `args` is whatever the host's onNavigate/hrefFor expects (usually an\n// id string, but tree+search may pass an object).\nexport const LinkTo = ({ to, args, children, className, style, title }) => {\n const router = useRouter();\n const slot = router[to];\n if (!slot) return <span style={style} className={className} title={title}>{children}</span>;\n const { onNavigate, hrefFor } = slot;\n const href = hrefFor ? hrefFor(args) : (onNavigate ? \"#\" : null);\n\n if (!onNavigate && !href) {\n return <span style={style} className={className} title={title}>{children}</span>;\n }\n const handleClick = onNavigate\n ? (e) => {\n // Let middle-click / cmd-click open in a new tab when an href is set.\n if (e.defaultPrevented) return;\n if (e.button !== 0) return;\n if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;\n e.preventDefault();\n onNavigate(args);\n }\n : undefined;\n return (\n <a\n href={href || undefined}\n onClick={handleClick}\n className={className}\n style={style}\n title={title}\n >\n {children}\n </a>\n );\n};\n\n// Imperative variant for code paths that don't render a link but want\n// to trigger navigation (e.g. tree-node click handlers that already\n// have their own onClick wiring).\nexport const useNavigateTo = (to) => {\n const router = useRouter();\n const slot = router[to];\n if (!slot || !slot.onNavigate) return noop;\n return slot.onNavigate;\n};\n"],"names":["authHeader","setAuth","auth","buildUrl","url","params","qs","k","v","item","q","parseBody","res","ct","text","request","method","headers","data","withAuth","finalUrl","finalHeaders","body","h","cause","err","payload","makeClient","call","config","client","publicClient","noop","defaultRouter","RouterContext","createContext","useRouter","useContext","buildRouter","props","LinkTo","to","args","children","className","style","title","slot","jsx","onNavigate","hrefFor","href","handleClick","e","useNavigateTo"],"mappings":";;AAeA,IAAIA,IAAa;AAIV,SAASC,EAAQC,GAAM;AAC5B,EAAAF,IAAaE,IAAO,SAAS,KAAKA,CAAI,CAAC,KAAK;AAC9C;AAEA,MAAMC,IAAW,CAACC,GAAKC,MAAW;AAChC,MAAI,CAACA,EAAQ,QAAOD;AACpB,QAAME,IAAK,IAAI,gBAAA;AACf,SAAO,QAAQD,CAAM,EAAE,QAAQ,CAAC,CAACE,GAAGC,CAAC,MAAM;AACzC,IAAIA,KAAM,SACN,MAAM,QAAQA,CAAC,IAAGA,EAAE,QAAQ,CAACC,MAASH,EAAG,OAAOC,GAAGE,CAAI,CAAC,IACvDH,EAAG,OAAOC,GAAGC,CAAC;AAAA,EACrB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I,MAAM;AAEL,IAAIA,EAAE,oBACFA,EAAE,WAAW,MACbA,EAAE,WAAWA,EAAE,WAAWA,EAAE,YAAYA,EAAE,WAC9CA,EAAE,eAAA,GACFJ,EAAWP,CAAI;AAAA,EACjB,IACA;AACJ,SACEM,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAMG,KAAQ;AAAA,MACd,SAASC;AAAA,MACT,WAAAR;AAAA,MACA,OAAAC;AAAA,MACA,OAAAC;AAAA,MAEC,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGP,GAKaW,IAAgB,CAACb,MAAO;AAEnC,QAAMM,IADSX,EAAA,EACKK,CAAE;AACtB,SAAI,CAACM,KAAQ,CAACA,EAAK,aAAmBf,IAC/Be,EAAK;AACd;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { c as o } from "./router-CssZk5qZ.js";
|
|
2
|
+
import { c as r } from "./config-BPRXv9x8.js";
|
|
3
|
+
const c = (a) => a.then((t) => t.data, (t) => null), i = (a, t) => Promise.all(
|
|
4
|
+
a.map((e) => c(o(`${r.dataApi}dataset/${t}/sector/${e}`)))
|
|
5
|
+
);
|
|
6
|
+
export {
|
|
7
|
+
i as g
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=sector-BnVzMnMO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sector-BnVzMnMO.js","sources":["../../src/api/sector.js"],"sourcesContent":["import client from \"./client\";\nimport config from \"../config\";\n\nconst reflect = p => p.then(v => v.data, e => null);\n\nexport const getSectorsBatch = (ids, datasetKey) => {\n return Promise.all(\n ids.map(i => reflect(client(`${config.dataApi}dataset/${datasetKey}/sector/${i}`)))\n );\n};\n"],"names":["reflect","p","v","getSectorsBatch","ids","datasetKey","i","client","config"],"mappings":";;AAGA,MAAMA,IAAU,OAAKC,EAAE,KAAK,OAAKC,EAAE,MAAM,OAAK,IAAI,GAErCC,IAAkB,CAACC,GAAKC,MAC5B,QAAQ;AAAA,EACbD,EAAI,IAAI,CAAAE,MAAKN,EAAQO,EAAO,GAAGC,EAAO,OAAO,WAAWH,CAAU,WAAWC,CAAC,EAAE,CAAC,CAAC;AAAA;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { j as n } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import "react";
|
|
3
|
+
const y = /* @__PURE__ */ new Set();
|
|
4
|
+
function d(e, t) {
|
|
5
|
+
const a = `${e}:${t}`;
|
|
6
|
+
y.has(a) || (y.add(a), typeof console < "u" && console.warn && console.warn(`[col-browser] <${e}> ${t}`));
|
|
7
|
+
}
|
|
8
|
+
function l(e) {
|
|
9
|
+
const t = e.displayName || e.name || "Component", a = (c) => {
|
|
10
|
+
const { catalogueKey: o, datasetKey: s, ...r } = c;
|
|
11
|
+
o !== void 0 && s === void 0 && d(
|
|
12
|
+
t,
|
|
13
|
+
"the `catalogueKey` prop is deprecated; rename it to `datasetKey`."
|
|
14
|
+
);
|
|
15
|
+
const i = s !== void 0 ? s : o;
|
|
16
|
+
return /* @__PURE__ */ n.jsx(e, { ...r, datasetKey: i });
|
|
17
|
+
};
|
|
18
|
+
return a.displayName = `withDatasetKey(${t})`, a;
|
|
19
|
+
}
|
|
20
|
+
function h(e) {
|
|
21
|
+
const t = e.displayName || e.name || "BibTex", a = (c) => {
|
|
22
|
+
const { catalogueKey: o, datasetKey: s, sourceDatasetKey: r, ...i } = c;
|
|
23
|
+
return o !== void 0 ? (d(
|
|
24
|
+
t,
|
|
25
|
+
"the `catalogueKey` prop is deprecated; pass the catalogue as `datasetKey` and the source as `sourceDatasetKey`."
|
|
26
|
+
), /* @__PURE__ */ n.jsx(
|
|
27
|
+
e,
|
|
28
|
+
{
|
|
29
|
+
...i,
|
|
30
|
+
datasetKey: o,
|
|
31
|
+
sourceDatasetKey: r !== void 0 ? r : s
|
|
32
|
+
}
|
|
33
|
+
)) : /* @__PURE__ */ n.jsx(
|
|
34
|
+
e,
|
|
35
|
+
{
|
|
36
|
+
...i,
|
|
37
|
+
datasetKey: s,
|
|
38
|
+
sourceDatasetKey: r
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
return a.displayName = `withBibTexLegacyShim(${t})`, a;
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
l as a,
|
|
46
|
+
h as w
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=withDatasetKey-BgMY05XE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withDatasetKey-BgMY05XE.js","sources":["../../src/withDatasetKey.js"],"sourcesContent":["import React from \"react\";\n\nconst warned = new Set();\n\nfunction warnDeprecation(componentName, message) {\n const key = `${componentName}:${message}`;\n if (warned.has(key)) return;\n warned.add(key);\n if (typeof console !== \"undefined\" && console.warn) {\n console.warn(`[col-browser] <${componentName}> ${message}`);\n }\n}\n\n// Standard shim: `catalogueKey` was renamed to `datasetKey`.\n// Accepts both, prefers `datasetKey`, warns once when only the\n// deprecated name is supplied.\nexport default function withDatasetKey(WrappedComponent) {\n const name =\n WrappedComponent.displayName || WrappedComponent.name || \"Component\";\n\n const Wrapper = (props) => {\n const { catalogueKey, datasetKey, ...rest } = props;\n if (catalogueKey !== undefined && datasetKey === undefined) {\n warnDeprecation(\n name,\n \"the `catalogueKey` prop is deprecated; rename it to `datasetKey`.\"\n );\n }\n const resolvedDatasetKey =\n datasetKey !== undefined ? datasetKey : catalogueKey;\n return <WrappedComponent {...rest} datasetKey={resolvedDatasetKey} />;\n };\n Wrapper.displayName = `withDatasetKey(${name})`;\n return Wrapper;\n}\n\n// BibTex-specific shim: the old prop pair\n// <BibTex datasetKey={source} catalogueKey={catalogue} />\n// has been replaced by\n// <BibTex datasetKey={catalogue} sourceDatasetKey={source} />\n// so when the legacy `catalogueKey` is present the two values must swap.\nexport function withBibTexLegacyShim(WrappedComponent) {\n const name =\n WrappedComponent.displayName || WrappedComponent.name || \"BibTex\";\n\n const Wrapper = (props) => {\n const { catalogueKey, datasetKey, sourceDatasetKey, ...rest } = props;\n if (catalogueKey !== undefined) {\n warnDeprecation(\n name,\n \"the `catalogueKey` prop is deprecated; pass the catalogue as `datasetKey` and the source as `sourceDatasetKey`.\"\n );\n return (\n <WrappedComponent\n {...rest}\n datasetKey={catalogueKey}\n sourceDatasetKey={\n sourceDatasetKey !== undefined ? sourceDatasetKey : datasetKey\n }\n />\n );\n }\n return (\n <WrappedComponent\n {...rest}\n datasetKey={datasetKey}\n sourceDatasetKey={sourceDatasetKey}\n />\n );\n };\n Wrapper.displayName = `withBibTexLegacyShim(${name})`;\n return Wrapper;\n}\n"],"names":["warned","warnDeprecation","componentName","message","key","withDatasetKey","WrappedComponent","name","Wrapper","props","catalogueKey","datasetKey","rest","resolvedDatasetKey","jsx","withBibTexLegacyShim","sourceDatasetKey"],"mappings":";;AAEA,MAAMA,wBAAa,IAAA;AAEnB,SAASC,EAAgBC,GAAeC,GAAS;AAC/C,QAAMC,IAAM,GAAGF,CAAa,IAAIC,CAAO;AACvC,EAAIH,EAAO,IAAII,CAAG,MAClBJ,EAAO,IAAII,CAAG,GACV,OAAO,UAAY,OAAe,QAAQ,QAC5C,QAAQ,KAAK,kBAAkBF,CAAa,KAAKC,CAAO,EAAE;AAE9D;AAKA,SAAwBE,EAAeC,GAAkB;AACvD,QAAMC,IACJD,EAAiB,eAAeA,EAAiB,QAAQ,aAErDE,IAAU,CAACC,MAAU;AACzB,UAAM,EAAE,cAAAC,GAAc,YAAAC,GAAY,GAAGC,MAASH;AAC9C,IAAIC,MAAiB,UAAaC,MAAe,UAC/CV;AAAA,MACEM;AAAA,MACA;AAAA,IAAA;AAGJ,UAAMM,IACJF,MAAe,SAAYA,IAAaD;AAC1C,WAAOI,gBAAAA,EAAAA,IAACR,GAAA,EAAkB,GAAGM,GAAM,YAAYC,GAAoB;AAAA,EACrE;AACA,SAAAL,EAAQ,cAAc,kBAAkBD,CAAI,KACrCC;AACT;AAOO,SAASO,EAAqBT,GAAkB;AACrD,QAAMC,IACJD,EAAiB,eAAeA,EAAiB,QAAQ,UAErDE,IAAU,CAACC,MAAU;AACzB,UAAM,EAAE,cAAAC,GAAc,YAAAC,GAAY,kBAAAK,GAAkB,GAAGJ,MAASH;AAChE,WAAIC,MAAiB,UACnBT;AAAA,MACEM;AAAA,MACA;AAAA,IAAA,GAGAO,gBAAAA,EAAAA;AAAAA,MAACR;AAAA,MAAA;AAAA,QACE,GAAGM;AAAA,QACJ,YAAYF;AAAA,QACZ,kBACEM,MAAqB,SAAYA,IAAmBL;AAAA,MAAA;AAAA,IAAA,KAM1DG,gBAAAA,EAAAA;AAAAA,MAACR;AAAA,MAAA;AAAA,QACE,GAAGM;AAAA,QACJ,YAAAD;AAAA,QACA,kBAAAK;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACA,SAAAR,EAAQ,cAAc,wBAAwBD,CAAI,KAC3CC;AACT;"}
|
package/es/col-browser.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.catalogue-of-life{color:#000000a6;font-size:14px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-variant:tabular-nums;line-height:1.5;background-color:#fff;-webkit-font-feature-settings:"tnum";font-feature-settings:"tnum"}.catalogue-of-life .ant-table-small>.ant-table-content>.ant-table-body{margin:0!important}.catalogue-of-life table tr.even,.catalogue-of-life table tr.alt,.catalogue-of-life table tr:nth-of-type(2n){background:inherit}.catalogue-of-life .colplus-taxon-page-list tbody tr:last-child>td{border-bottom:none!important}.catalogue-of-life .catalogue-of-life-404{min-height:calc(100vh - 80px)}.catalogue-of-life .colplus-taxon-page-list th,.catalogue-of-life .colplus-taxon-page-list td{padding:5px 3px!important;font-size:12px;border-bottom:none!important;background-color:inherit}.catalogue-of-life .colplus-taxon-page-list table{border:none}.catalogue-of-life .ant-tree-node-content-wrapper{margin-left:6px}.catalogue-of-life .ant-input-search>input{height:24px!important}.catalogue-of-life .ant-tree-treenode.filter-node,.catalogue-of-life .ant-tree-treenode.filter-node span.tree-node-rank{color:red}.catalogue-of-life .tree-node-rank{color:#00000073}.catalogue-of-life .ant-rate-star-full .ant-rate-star-second,.catalogue-of-life .ant-rate-star-half .ant-rate-star-first{color:inherit}.catalogue-of-life button.ant-pagination-item-link{padding:0}.catalogue-of-life .ant-tree,.catalogue-of-life .ant-table,.catalogue-of-life .ant-tree-list,.catalogue-of-life .ant-tree-treenode,.catalogue-of-life .tree-node-rank,.catalogue-of-life .catalogue-of-life a,.catalogue-of-life .catalogue-of-life .ant-input-affix-wrapper,.catalogue-of-life .catalogue-of-life .ant-input,.catalogue-of-life .rc-virtual-list,.catalogue-of-life .ant-select-item-option-content{background-color:inherit;background:inherit}.catalogue-of-life :target{display:block;margin-top:-80px;height:80px;width:1px}.catalogue-of-life .col-reference-link-container :target{display:block;margin-top:0!important;height:100%!important;width:100%!important}.catalogue-of-life .col-reference-link{vertical-align:super;font-size:9px;font-weight:400}.catalogue-of-life a.col-tree-data-source{color:orange;font-size:11px}.catalogue-of-life .col-dataset-citation{margin-top:8px;margin-bottom:8px}.catalogue-of-life .col-dataset-citation-source{font-size:9px}.taxon-autocomplete .ant-select-clear{opacity:1}td.ant-table-cell{color:#000}
|
|
1
|
+
@media(max-width:575px){.col-distributions-map{margin-left:-34px;margin-right:-34px}}.catalogue-of-life{color:#000000a6;font-size:14px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-variant:tabular-nums;line-height:1.5;background-color:#fff;-webkit-font-feature-settings:"tnum";font-feature-settings:"tnum"}.catalogue-of-life .ant-table-small>.ant-table-content>.ant-table-body{margin:0!important}.catalogue-of-life table tr.even,.catalogue-of-life table tr.alt,.catalogue-of-life table tr:nth-of-type(2n){background:inherit}.catalogue-of-life .colplus-taxon-page-list tbody tr:last-child>td{border-bottom:none!important}.catalogue-of-life .catalogue-of-life-404{min-height:calc(100vh - 80px)}.catalogue-of-life .colplus-taxon-page-list th,.catalogue-of-life .colplus-taxon-page-list td{padding:5px 3px!important;font-size:12px;border-bottom:none!important;background-color:inherit}.catalogue-of-life .colplus-taxon-page-list table{border:none}.catalogue-of-life .ant-tree-node-content-wrapper{margin-left:6px}.catalogue-of-life .ant-input-search>input{height:24px!important}.catalogue-of-life .ant-tree-treenode.filter-node,.catalogue-of-life .ant-tree-treenode.filter-node span.tree-node-rank{color:red}.catalogue-of-life .tree-node-rank{color:#00000073}.catalogue-of-life .ant-rate-star-full .ant-rate-star-second,.catalogue-of-life .ant-rate-star-half .ant-rate-star-first{color:inherit}.catalogue-of-life button.ant-pagination-item-link{padding:0}.catalogue-of-life .ant-tree,.catalogue-of-life .ant-table,.catalogue-of-life .ant-tree-list,.catalogue-of-life .ant-tree-treenode,.catalogue-of-life .tree-node-rank,.catalogue-of-life .catalogue-of-life a,.catalogue-of-life .catalogue-of-life .ant-input-affix-wrapper,.catalogue-of-life .catalogue-of-life .ant-input,.catalogue-of-life .rc-virtual-list,.catalogue-of-life .ant-select-item-option-content{background-color:inherit;background:inherit}.catalogue-of-life :target{display:block;margin-top:-80px;height:80px;width:1px}.catalogue-of-life .col-reference-link-container :target{display:block;margin-top:0!important;height:100%!important;width:100%!important}.catalogue-of-life .col-reference-link{vertical-align:super;font-size:9px;font-weight:400}.catalogue-of-life a.col-tree-data-source{color:orange;font-size:11px}.catalogue-of-life .col-dataset-citation{margin-top:8px;margin-bottom:8px}.catalogue-of-life .col-dataset-citation-source{font-size:9px}.taxon-autocomplete .ant-select-clear{opacity:1}td.ant-table-cell{color:#000}
|