mc-react-library 0.2.0 → 0.3.1

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.
@@ -1,3688 +0,0 @@
1
- import "./main.css";
2
- import * as Ee from "react";
3
- import _e, { useRef as ce, useEffect as ye, useMemo as pt, useState as We, useCallback as oe, useContext as er, createContext as Vn, useLayoutEffect as zn, cloneElement as tr } from "react";
4
- import He from "react-dom";
5
- function rr(e) {
6
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
- }
8
- var Yt = { exports: {} }, at = {};
9
- /**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */
18
- var wr;
19
- function Hn() {
20
- if (wr)
21
- return at;
22
- wr = 1;
23
- var e = _e, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
24
- function s(c, u, l) {
25
- var f, d = {}, b = null, y = null;
26
- l !== void 0 && (b = "" + l), u.key !== void 0 && (b = "" + u.key), u.ref !== void 0 && (y = u.ref);
27
- for (f in u)
28
- n.call(u, f) && !i.hasOwnProperty(f) && (d[f] = u[f]);
29
- if (c && c.defaultProps)
30
- for (f in u = c.defaultProps, u)
31
- d[f] === void 0 && (d[f] = u[f]);
32
- return { $$typeof: t, type: c, key: b, ref: y, props: d, _owner: o.current };
33
- }
34
- return at.Fragment = r, at.jsx = s, at.jsxs = s, at;
35
- }
36
- var st = {};
37
- /**
38
- * @license React
39
- * react-jsx-runtime.development.js
40
- *
41
- * Copyright (c) Facebook, Inc. and its affiliates.
42
- *
43
- * This source code is licensed under the MIT license found in the
44
- * LICENSE file in the root directory of this source tree.
45
- */
46
- var xr;
47
- function Gn() {
48
- return xr || (xr = 1, process.env.NODE_ENV !== "production" && function() {
49
- var e = _e, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = Symbol.iterator, E = "@@iterator";
50
- function h(a) {
51
- if (a === null || typeof a != "object")
52
- return null;
53
- var v = g && a[g] || a[E];
54
- return typeof v == "function" ? v : null;
55
- }
56
- var _ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
57
- function w(a) {
58
- {
59
- for (var v = arguments.length, O = new Array(v > 1 ? v - 1 : 0), j = 1; j < v; j++)
60
- O[j - 1] = arguments[j];
61
- k("error", a, O);
62
- }
63
- }
64
- function k(a, v, O) {
65
- {
66
- var j = _.ReactDebugCurrentFrame, V = j.getStackAddendum();
67
- V !== "" && (v += "%s", O = O.concat([V]));
68
- var te = O.map(function(Y) {
69
- return String(Y);
70
- });
71
- te.unshift("Warning: " + v), Function.prototype.apply.call(console[a], console, te);
72
- }
73
- }
74
- var T = !1, p = !1, S = !1, I = !1, z = !1, K;
75
- K = Symbol.for("react.module.reference");
76
- function q(a) {
77
- return !!(typeof a == "string" || typeof a == "function" || a === n || a === i || z || a === o || a === l || a === f || I || a === y || T || p || S || typeof a == "object" && a !== null && (a.$$typeof === b || a.$$typeof === d || a.$$typeof === s || a.$$typeof === c || a.$$typeof === u || // This needs to include all possible module reference object
78
- // types supported by any Flight configuration anywhere since
79
- // we don't know which Flight build this will end up being used
80
- // with.
81
- a.$$typeof === K || a.getModuleId !== void 0));
82
- }
83
- function Q(a, v, O) {
84
- var j = a.displayName;
85
- if (j)
86
- return j;
87
- var V = v.displayName || v.name || "";
88
- return V !== "" ? O + "(" + V + ")" : O;
89
- }
90
- function ie(a) {
91
- return a.displayName || "Context";
92
- }
93
- function U(a) {
94
- if (a == null)
95
- return null;
96
- if (typeof a.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
97
- return a.displayName || a.name || null;
98
- if (typeof a == "string")
99
- return a;
100
- switch (a) {
101
- case n:
102
- return "Fragment";
103
- case r:
104
- return "Portal";
105
- case i:
106
- return "Profiler";
107
- case o:
108
- return "StrictMode";
109
- case l:
110
- return "Suspense";
111
- case f:
112
- return "SuspenseList";
113
- }
114
- if (typeof a == "object")
115
- switch (a.$$typeof) {
116
- case c:
117
- var v = a;
118
- return ie(v) + ".Consumer";
119
- case s:
120
- var O = a;
121
- return ie(O._context) + ".Provider";
122
- case u:
123
- return Q(a, a.render, "ForwardRef");
124
- case d:
125
- var j = a.displayName || null;
126
- return j !== null ? j : U(a.type) || "Memo";
127
- case b: {
128
- var V = a, te = V._payload, Y = V._init;
129
- try {
130
- return U(Y(te));
131
- } catch {
132
- return null;
133
- }
134
- }
135
- }
136
- return null;
137
- }
138
- var H = Object.assign, J = 0, ee, re, me, le, m, R, M;
139
- function $() {
140
- }
141
- $.__reactDisabledLog = !0;
142
- function C() {
143
- {
144
- if (J === 0) {
145
- ee = console.log, re = console.info, me = console.warn, le = console.error, m = console.group, R = console.groupCollapsed, M = console.groupEnd;
146
- var a = {
147
- configurable: !0,
148
- enumerable: !0,
149
- value: $,
150
- writable: !0
151
- };
152
- Object.defineProperties(console, {
153
- info: a,
154
- log: a,
155
- warn: a,
156
- error: a,
157
- group: a,
158
- groupCollapsed: a,
159
- groupEnd: a
160
- });
161
- }
162
- J++;
163
- }
164
- }
165
- function L() {
166
- {
167
- if (J--, J === 0) {
168
- var a = {
169
- configurable: !0,
170
- enumerable: !0,
171
- writable: !0
172
- };
173
- Object.defineProperties(console, {
174
- log: H({}, a, {
175
- value: ee
176
- }),
177
- info: H({}, a, {
178
- value: re
179
- }),
180
- warn: H({}, a, {
181
- value: me
182
- }),
183
- error: H({}, a, {
184
- value: le
185
- }),
186
- group: H({}, a, {
187
- value: m
188
- }),
189
- groupCollapsed: H({}, a, {
190
- value: R
191
- }),
192
- groupEnd: H({}, a, {
193
- value: M
194
- })
195
- });
196
- }
197
- J < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
198
- }
199
- }
200
- var P = _.ReactCurrentDispatcher, A;
201
- function D(a, v, O) {
202
- {
203
- if (A === void 0)
204
- try {
205
- throw Error();
206
- } catch (V) {
207
- var j = V.stack.trim().match(/\n( *(at )?)/);
208
- A = j && j[1] || "";
209
- }
210
- return `
211
- ` + A + a;
212
- }
213
- }
214
- var W = !1, N;
215
- {
216
- var ae = typeof WeakMap == "function" ? WeakMap : Map;
217
- N = new ae();
218
- }
219
- function x(a, v) {
220
- if (!a || W)
221
- return "";
222
- {
223
- var O = N.get(a);
224
- if (O !== void 0)
225
- return O;
226
- }
227
- var j;
228
- W = !0;
229
- var V = Error.prepareStackTrace;
230
- Error.prepareStackTrace = void 0;
231
- var te;
232
- te = P.current, P.current = null, C();
233
- try {
234
- if (v) {
235
- var Y = function() {
236
- throw Error();
237
- };
238
- if (Object.defineProperty(Y.prototype, "props", {
239
- set: function() {
240
- throw Error();
241
- }
242
- }), typeof Reflect == "object" && Reflect.construct) {
243
- try {
244
- Reflect.construct(Y, []);
245
- } catch (Te) {
246
- j = Te;
247
- }
248
- Reflect.construct(a, [], Y);
249
- } else {
250
- try {
251
- Y.call();
252
- } catch (Te) {
253
- j = Te;
254
- }
255
- a.call(Y.prototype);
256
- }
257
- } else {
258
- try {
259
- throw Error();
260
- } catch (Te) {
261
- j = Te;
262
- }
263
- a();
264
- }
265
- } catch (Te) {
266
- if (Te && j && typeof Te.stack == "string") {
267
- for (var B = Te.stack.split(`
268
- `), fe = j.stack.split(`
269
- `), ne = B.length - 1, se = fe.length - 1; ne >= 1 && se >= 0 && B[ne] !== fe[se]; )
270
- se--;
271
- for (; ne >= 1 && se >= 0; ne--, se--)
272
- if (B[ne] !== fe[se]) {
273
- if (ne !== 1 || se !== 1)
274
- do
275
- if (ne--, se--, se < 0 || B[ne] !== fe[se]) {
276
- var he = `
277
- ` + B[ne].replace(" at new ", " at ");
278
- return a.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", a.displayName)), typeof a == "function" && N.set(a, he), he;
279
- }
280
- while (ne >= 1 && se >= 0);
281
- break;
282
- }
283
- }
284
- } finally {
285
- W = !1, P.current = te, L(), Error.prepareStackTrace = V;
286
- }
287
- var Ve = a ? a.displayName || a.name : "", Er = Ve ? D(Ve) : "";
288
- return typeof a == "function" && N.set(a, Er), Er;
289
- }
290
- function ue(a, v, O) {
291
- return x(a, !1);
292
- }
293
- function Ce(a) {
294
- var v = a.prototype;
295
- return !!(v && v.isReactComponent);
296
- }
297
- function Oe(a, v, O) {
298
- if (a == null)
299
- return "";
300
- if (typeof a == "function")
301
- return x(a, Ce(a));
302
- if (typeof a == "string")
303
- return D(a);
304
- switch (a) {
305
- case l:
306
- return D("Suspense");
307
- case f:
308
- return D("SuspenseList");
309
- }
310
- if (typeof a == "object")
311
- switch (a.$$typeof) {
312
- case u:
313
- return ue(a.render);
314
- case d:
315
- return Oe(a.type, v, O);
316
- case b: {
317
- var j = a, V = j._payload, te = j._init;
318
- try {
319
- return Oe(te(V), v, O);
320
- } catch {
321
- }
322
- }
323
- }
324
- return "";
325
- }
326
- var Me = Object.prototype.hasOwnProperty, rt = {}, gt = _.ReactDebugCurrentFrame;
327
- function Be(a) {
328
- if (a) {
329
- var v = a._owner, O = Oe(a.type, a._source, v ? v.type : null);
330
- gt.setExtraStackFrame(O);
331
- } else
332
- gt.setExtraStackFrame(null);
333
- }
334
- function Re(a, v, O, j, V) {
335
- {
336
- var te = Function.call.bind(Me);
337
- for (var Y in a)
338
- if (te(a, Y)) {
339
- var B = void 0;
340
- try {
341
- if (typeof a[Y] != "function") {
342
- var fe = Error((j || "React class") + ": " + O + " type `" + Y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[Y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
343
- throw fe.name = "Invariant Violation", fe;
344
- }
345
- B = a[Y](v, Y, j, O, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
346
- } catch (ne) {
347
- B = ne;
348
- }
349
- B && !(B instanceof Error) && (Be(V), w("%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).", j || "React class", O, Y, typeof B), Be(null)), B instanceof Error && !(B.message in rt) && (rt[B.message] = !0, Be(V), w("Failed %s type: %s", O, B.message), Be(null));
350
- }
351
- }
352
- }
353
- var Ue = Array.isArray;
354
- function Ye(a) {
355
- return Ue(a);
356
- }
357
- function bt(a) {
358
- {
359
- var v = typeof Symbol == "function" && Symbol.toStringTag, O = v && a[Symbol.toStringTag] || a.constructor.name || "Object";
360
- return O;
361
- }
362
- }
363
- function nt(a) {
364
- try {
365
- return ot(a), !1;
366
- } catch {
367
- return !0;
368
- }
369
- }
370
- function ot(a) {
371
- return "" + a;
372
- }
373
- function it(a) {
374
- if (nt(a))
375
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", bt(a)), ot(a);
376
- }
377
- var Pe = _.ReactCurrentOwner, Et = {
378
- key: !0,
379
- ref: !0,
380
- __self: !0,
381
- __source: !0
382
- }, dr, pr, jt;
383
- jt = {};
384
- function Pn(a) {
385
- if (Me.call(a, "ref")) {
386
- var v = Object.getOwnPropertyDescriptor(a, "ref").get;
387
- if (v && v.isReactWarning)
388
- return !1;
389
- }
390
- return a.ref !== void 0;
391
- }
392
- function jn(a) {
393
- if (Me.call(a, "key")) {
394
- var v = Object.getOwnPropertyDescriptor(a, "key").get;
395
- if (v && v.isReactWarning)
396
- return !1;
397
- }
398
- return a.key !== void 0;
399
- }
400
- function An(a, v) {
401
- if (typeof a.ref == "string" && Pe.current && v && Pe.current.stateNode !== v) {
402
- var O = U(Pe.current.type);
403
- jt[O] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', U(Pe.current.type), a.ref), jt[O] = !0);
404
- }
405
- }
406
- function Dn(a, v) {
407
- {
408
- var O = function() {
409
- dr || (dr = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
410
- };
411
- O.isReactWarning = !0, Object.defineProperty(a, "key", {
412
- get: O,
413
- configurable: !0
414
- });
415
- }
416
- }
417
- function Mn(a, v) {
418
- {
419
- var O = function() {
420
- pr || (pr = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
421
- };
422
- O.isReactWarning = !0, Object.defineProperty(a, "ref", {
423
- get: O,
424
- configurable: !0
425
- });
426
- }
427
- }
428
- var $n = function(a, v, O, j, V, te, Y) {
429
- var B = {
430
- // This tag allows us to uniquely identify this as a React Element
431
- $$typeof: t,
432
- // Built-in properties that belong on the element
433
- type: a,
434
- key: v,
435
- ref: O,
436
- props: Y,
437
- // Record the component responsible for creating this element.
438
- _owner: te
439
- };
440
- return B._store = {}, Object.defineProperty(B._store, "validated", {
441
- configurable: !1,
442
- enumerable: !1,
443
- writable: !0,
444
- value: !1
445
- }), Object.defineProperty(B, "_self", {
446
- configurable: !1,
447
- enumerable: !1,
448
- writable: !1,
449
- value: j
450
- }), Object.defineProperty(B, "_source", {
451
- configurable: !1,
452
- enumerable: !1,
453
- writable: !1,
454
- value: V
455
- }), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
456
- };
457
- function In(a, v, O, j, V) {
458
- {
459
- var te, Y = {}, B = null, fe = null;
460
- O !== void 0 && (it(O), B = "" + O), jn(v) && (it(v.key), B = "" + v.key), Pn(v) && (fe = v.ref, An(v, V));
461
- for (te in v)
462
- Me.call(v, te) && !Et.hasOwnProperty(te) && (Y[te] = v[te]);
463
- if (a && a.defaultProps) {
464
- var ne = a.defaultProps;
465
- for (te in ne)
466
- Y[te] === void 0 && (Y[te] = ne[te]);
467
- }
468
- if (B || fe) {
469
- var se = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
470
- B && Dn(Y, se), fe && Mn(Y, se);
471
- }
472
- return $n(a, B, fe, V, j, Pe.current, Y);
473
- }
474
- }
475
- var At = _.ReactCurrentOwner, vr = _.ReactDebugCurrentFrame;
476
- function qe(a) {
477
- if (a) {
478
- var v = a._owner, O = Oe(a.type, a._source, v ? v.type : null);
479
- vr.setExtraStackFrame(O);
480
- } else
481
- vr.setExtraStackFrame(null);
482
- }
483
- var Dt;
484
- Dt = !1;
485
- function Mt(a) {
486
- return typeof a == "object" && a !== null && a.$$typeof === t;
487
- }
488
- function mr() {
489
- {
490
- if (At.current) {
491
- var a = U(At.current.type);
492
- if (a)
493
- return `
494
-
495
- Check the render method of \`` + a + "`.";
496
- }
497
- return "";
498
- }
499
- }
500
- function Ln(a) {
501
- {
502
- if (a !== void 0) {
503
- var v = a.fileName.replace(/^.*[\\\/]/, ""), O = a.lineNumber;
504
- return `
505
-
506
- Check your code at ` + v + ":" + O + ".";
507
- }
508
- return "";
509
- }
510
- }
511
- var hr = {};
512
- function Nn(a) {
513
- {
514
- var v = mr();
515
- if (!v) {
516
- var O = typeof a == "string" ? a : a.displayName || a.name;
517
- O && (v = `
518
-
519
- Check the top-level render call using <` + O + ">.");
520
- }
521
- return v;
522
- }
523
- }
524
- function yr(a, v) {
525
- {
526
- if (!a._store || a._store.validated || a.key != null)
527
- return;
528
- a._store.validated = !0;
529
- var O = Nn(v);
530
- if (hr[O])
531
- return;
532
- hr[O] = !0;
533
- var j = "";
534
- a && a._owner && a._owner !== At.current && (j = " It was passed a child from " + U(a._owner.type) + "."), qe(a), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', O, j), qe(null);
535
- }
536
- }
537
- function gr(a, v) {
538
- {
539
- if (typeof a != "object")
540
- return;
541
- if (Ye(a))
542
- for (var O = 0; O < a.length; O++) {
543
- var j = a[O];
544
- Mt(j) && yr(j, v);
545
- }
546
- else if (Mt(a))
547
- a._store && (a._store.validated = !0);
548
- else if (a) {
549
- var V = h(a);
550
- if (typeof V == "function" && V !== a.entries)
551
- for (var te = V.call(a), Y; !(Y = te.next()).done; )
552
- Mt(Y.value) && yr(Y.value, v);
553
- }
554
- }
555
- }
556
- function Fn(a) {
557
- {
558
- var v = a.type;
559
- if (v == null || typeof v == "string")
560
- return;
561
- var O;
562
- if (typeof v == "function")
563
- O = v.propTypes;
564
- else if (typeof v == "object" && (v.$$typeof === u || // Note: Memo only checks outer props here.
565
- // Inner props are checked in the reconciler.
566
- v.$$typeof === d))
567
- O = v.propTypes;
568
- else
569
- return;
570
- if (O) {
571
- var j = U(v);
572
- Re(O, a.props, "prop", j, a);
573
- } else if (v.PropTypes !== void 0 && !Dt) {
574
- Dt = !0;
575
- var V = U(v);
576
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", V || "Unknown");
577
- }
578
- typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
579
- }
580
- }
581
- function Wn(a) {
582
- {
583
- for (var v = Object.keys(a.props), O = 0; O < v.length; O++) {
584
- var j = v[O];
585
- if (j !== "children" && j !== "key") {
586
- qe(a), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", j), qe(null);
587
- break;
588
- }
589
- }
590
- a.ref !== null && (qe(a), w("Invalid attribute `ref` supplied to `React.Fragment`."), qe(null));
591
- }
592
- }
593
- function br(a, v, O, j, V, te) {
594
- {
595
- var Y = q(a);
596
- if (!Y) {
597
- var B = "";
598
- (a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (B += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
599
- var fe = Ln(V);
600
- fe ? B += fe : B += mr();
601
- var ne;
602
- a === null ? ne = "null" : Ye(a) ? ne = "array" : a !== void 0 && a.$$typeof === t ? (ne = "<" + (U(a.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof a, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, B);
603
- }
604
- var se = In(a, v, O, V, te);
605
- if (se == null)
606
- return se;
607
- if (Y) {
608
- var he = v.children;
609
- if (he !== void 0)
610
- if (j)
611
- if (Ye(he)) {
612
- for (var Ve = 0; Ve < he.length; Ve++)
613
- gr(he[Ve], a);
614
- Object.freeze && Object.freeze(he);
615
- } else
616
- w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
617
- else
618
- gr(he, a);
619
- }
620
- return a === n ? Wn(se) : Fn(se), se;
621
- }
622
- }
623
- function Bn(a, v, O) {
624
- return br(a, v, O, !0);
625
- }
626
- function Un(a, v, O) {
627
- return br(a, v, O, !1);
628
- }
629
- var Yn = Un, qn = Bn;
630
- st.Fragment = n, st.jsx = Yn, st.jsxs = qn;
631
- }()), st;
632
- }
633
- process.env.NODE_ENV === "production" ? Yt.exports = Hn() : Yt.exports = Gn();
634
- var Z = Yt.exports;
635
- const Xn = "_button_qg5kh_1", Kn = {
636
- button: Xn
637
- };
638
- function Ma(e) {
639
- return /* @__PURE__ */ Z.jsx("button", { className: Kn.button, children: "TEST" });
640
- }
641
- const Jn = "_archive_doicitation_5woyi_1", Zn = "_doi_badge_5woyi_8", Qn = "_doi_left_5woyi_12", eo = "_doi_right_5woyi_28", wt = {
642
- archive_doicitation: Jn,
643
- doi_badge: Zn,
644
- doi_left: Qn,
645
- doi_right: eo
646
- };
647
- function $a(e) {
648
- return /* @__PURE__ */ Z.jsx("div", { className: wt.archive_doicitation, children: /* @__PURE__ */ Z.jsxs("span", { className: wt.doi_badge, children: [
649
- /* @__PURE__ */ Z.jsx("span", { className: wt.doi_left, children: "DOI" }),
650
- /* @__PURE__ */ Z.jsx(
651
- "a",
652
- {
653
- href: `https://doi.org/10.24435/materialscloud:${e.doi_id}`,
654
- className: wt.doi_right,
655
- target: "_blank",
656
- children: `10.24435/materialscloud:${e.doi_id}`
657
- }
658
- )
659
- ] }) });
660
- }
661
- function qt(e, t) {
662
- if (e.contains)
663
- return e.contains(t);
664
- if (e.compareDocumentPosition)
665
- return e === t || !!(e.compareDocumentPosition(t) & 16);
666
- }
667
- var Vt = { exports: {} }, xt = { exports: {} }, G = {};
668
- /** @license React v16.13.1
669
- * react-is.production.min.js
670
- *
671
- * Copyright (c) Facebook, Inc. and its affiliates.
672
- *
673
- * This source code is licensed under the MIT license found in the
674
- * LICENSE file in the root directory of this source tree.
675
- */
676
- var Or;
677
- function to() {
678
- if (Or)
679
- return G;
680
- Or = 1;
681
- 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, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
682
- function k(p) {
683
- if (typeof p == "object" && p !== null) {
684
- var S = p.$$typeof;
685
- switch (S) {
686
- case t:
687
- switch (p = p.type, p) {
688
- case u:
689
- case l:
690
- case n:
691
- case i:
692
- case o:
693
- case d:
694
- return p;
695
- default:
696
- switch (p = p && p.$$typeof, p) {
697
- case c:
698
- case f:
699
- case g:
700
- case y:
701
- case s:
702
- return p;
703
- default:
704
- return S;
705
- }
706
- }
707
- case r:
708
- return S;
709
- }
710
- }
711
- }
712
- function T(p) {
713
- return k(p) === l;
714
- }
715
- return G.AsyncMode = u, G.ConcurrentMode = l, G.ContextConsumer = c, G.ContextProvider = s, G.Element = t, G.ForwardRef = f, G.Fragment = n, G.Lazy = g, G.Memo = y, G.Portal = r, G.Profiler = i, G.StrictMode = o, G.Suspense = d, G.isAsyncMode = function(p) {
716
- return T(p) || k(p) === u;
717
- }, G.isConcurrentMode = T, G.isContextConsumer = function(p) {
718
- return k(p) === c;
719
- }, G.isContextProvider = function(p) {
720
- return k(p) === s;
721
- }, G.isElement = function(p) {
722
- return typeof p == "object" && p !== null && p.$$typeof === t;
723
- }, G.isForwardRef = function(p) {
724
- return k(p) === f;
725
- }, G.isFragment = function(p) {
726
- return k(p) === n;
727
- }, G.isLazy = function(p) {
728
- return k(p) === g;
729
- }, G.isMemo = function(p) {
730
- return k(p) === y;
731
- }, G.isPortal = function(p) {
732
- return k(p) === r;
733
- }, G.isProfiler = function(p) {
734
- return k(p) === i;
735
- }, G.isStrictMode = function(p) {
736
- return k(p) === o;
737
- }, G.isSuspense = function(p) {
738
- return k(p) === d;
739
- }, G.isValidElementType = function(p) {
740
- return typeof p == "string" || typeof p == "function" || p === n || p === l || p === i || p === o || p === d || p === b || typeof p == "object" && p !== null && (p.$$typeof === g || p.$$typeof === y || p.$$typeof === s || p.$$typeof === c || p.$$typeof === f || p.$$typeof === h || p.$$typeof === _ || p.$$typeof === w || p.$$typeof === E);
741
- }, G.typeOf = k, G;
742
- }
743
- var X = {};
744
- /** @license React v16.13.1
745
- * react-is.development.js
746
- *
747
- * Copyright (c) Facebook, Inc. and its affiliates.
748
- *
749
- * This source code is licensed under the MIT license found in the
750
- * LICENSE file in the root directory of this source tree.
751
- */
752
- var Rr;
753
- function ro() {
754
- return Rr || (Rr = 1, process.env.NODE_ENV !== "production" && function() {
755
- 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, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
756
- function k(x) {
757
- return typeof x == "string" || typeof x == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
758
- x === n || x === l || x === i || x === o || x === d || x === b || typeof x == "object" && x !== null && (x.$$typeof === g || x.$$typeof === y || x.$$typeof === s || x.$$typeof === c || x.$$typeof === f || x.$$typeof === h || x.$$typeof === _ || x.$$typeof === w || x.$$typeof === E);
759
- }
760
- function T(x) {
761
- if (typeof x == "object" && x !== null) {
762
- var ue = x.$$typeof;
763
- switch (ue) {
764
- case t:
765
- var Ce = x.type;
766
- switch (Ce) {
767
- case u:
768
- case l:
769
- case n:
770
- case i:
771
- case o:
772
- case d:
773
- return Ce;
774
- default:
775
- var Oe = Ce && Ce.$$typeof;
776
- switch (Oe) {
777
- case c:
778
- case f:
779
- case g:
780
- case y:
781
- case s:
782
- return Oe;
783
- default:
784
- return ue;
785
- }
786
- }
787
- case r:
788
- return ue;
789
- }
790
- }
791
- }
792
- var p = u, S = l, I = c, z = s, K = t, q = f, Q = n, ie = g, U = y, H = r, J = i, ee = o, re = d, me = !1;
793
- function le(x) {
794
- return me || (me = !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.")), m(x) || T(x) === u;
795
- }
796
- function m(x) {
797
- return T(x) === l;
798
- }
799
- function R(x) {
800
- return T(x) === c;
801
- }
802
- function M(x) {
803
- return T(x) === s;
804
- }
805
- function $(x) {
806
- return typeof x == "object" && x !== null && x.$$typeof === t;
807
- }
808
- function C(x) {
809
- return T(x) === f;
810
- }
811
- function L(x) {
812
- return T(x) === n;
813
- }
814
- function P(x) {
815
- return T(x) === g;
816
- }
817
- function A(x) {
818
- return T(x) === y;
819
- }
820
- function D(x) {
821
- return T(x) === r;
822
- }
823
- function W(x) {
824
- return T(x) === i;
825
- }
826
- function N(x) {
827
- return T(x) === o;
828
- }
829
- function ae(x) {
830
- return T(x) === d;
831
- }
832
- X.AsyncMode = p, X.ConcurrentMode = S, X.ContextConsumer = I, X.ContextProvider = z, X.Element = K, X.ForwardRef = q, X.Fragment = Q, X.Lazy = ie, X.Memo = U, X.Portal = H, X.Profiler = J, X.StrictMode = ee, X.Suspense = re, X.isAsyncMode = le, X.isConcurrentMode = m, X.isContextConsumer = R, X.isContextProvider = M, X.isElement = $, X.isForwardRef = C, X.isFragment = L, X.isLazy = P, X.isMemo = A, X.isPortal = D, X.isProfiler = W, X.isStrictMode = N, X.isSuspense = ae, X.isValidElementType = k, X.typeOf = T;
833
- }()), X;
834
- }
835
- var Tr;
836
- function Qr() {
837
- return Tr || (Tr = 1, process.env.NODE_ENV === "production" ? xt.exports = to() : xt.exports = ro()), xt.exports;
838
- }
839
- /*
840
- object-assign
841
- (c) Sindre Sorhus
842
- @license MIT
843
- */
844
- var $t, _r;
845
- function no() {
846
- if (_r)
847
- return $t;
848
- _r = 1;
849
- var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
850
- function n(i) {
851
- if (i == null)
852
- throw new TypeError("Object.assign cannot be called with null or undefined");
853
- return Object(i);
854
- }
855
- function o() {
856
- try {
857
- if (!Object.assign)
858
- return !1;
859
- var i = new String("abc");
860
- if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
861
- return !1;
862
- for (var s = {}, c = 0; c < 10; c++)
863
- s["_" + String.fromCharCode(c)] = c;
864
- var u = Object.getOwnPropertyNames(s).map(function(f) {
865
- return s[f];
866
- });
867
- if (u.join("") !== "0123456789")
868
- return !1;
869
- var l = {};
870
- return "abcdefghijklmnopqrst".split("").forEach(function(f) {
871
- l[f] = f;
872
- }), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
873
- } catch {
874
- return !1;
875
- }
876
- }
877
- return $t = o() ? Object.assign : function(i, s) {
878
- for (var c, u = n(i), l, f = 1; f < arguments.length; f++) {
879
- c = Object(arguments[f]);
880
- for (var d in c)
881
- t.call(c, d) && (u[d] = c[d]);
882
- if (e) {
883
- l = e(c);
884
- for (var b = 0; b < l.length; b++)
885
- r.call(c, l[b]) && (u[l[b]] = c[l[b]]);
886
- }
887
- }
888
- return u;
889
- }, $t;
890
- }
891
- var It, kr;
892
- function nr() {
893
- if (kr)
894
- return It;
895
- kr = 1;
896
- var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
897
- return It = e, It;
898
- }
899
- var Lt, Sr;
900
- function en() {
901
- return Sr || (Sr = 1, Lt = Function.call.bind(Object.prototype.hasOwnProperty)), Lt;
902
- }
903
- var Nt, Cr;
904
- function oo() {
905
- if (Cr)
906
- return Nt;
907
- Cr = 1;
908
- var e = function() {
909
- };
910
- if (process.env.NODE_ENV !== "production") {
911
- var t = nr(), r = {}, n = en();
912
- e = function(i) {
913
- var s = "Warning: " + i;
914
- typeof console < "u" && console.error(s);
915
- try {
916
- throw new Error(s);
917
- } catch {
918
- }
919
- };
920
- }
921
- function o(i, s, c, u, l) {
922
- if (process.env.NODE_ENV !== "production") {
923
- for (var f in i)
924
- if (n(i, f)) {
925
- var d;
926
- try {
927
- if (typeof i[f] != "function") {
928
- var b = Error(
929
- (u || "React class") + ": " + c + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
930
- );
931
- throw b.name = "Invariant Violation", b;
932
- }
933
- d = i[f](s, f, u, c, null, t);
934
- } catch (g) {
935
- d = g;
936
- }
937
- if (d && !(d instanceof Error) && e(
938
- (u || "React class") + ": type specification of " + c + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
939
- ), d instanceof Error && !(d.message in r)) {
940
- r[d.message] = !0;
941
- var y = l ? l() : "";
942
- e(
943
- "Failed " + c + " type: " + d.message + (y ?? "")
944
- );
945
- }
946
- }
947
- }
948
- }
949
- return o.resetWarningCache = function() {
950
- process.env.NODE_ENV !== "production" && (r = {});
951
- }, Nt = o, Nt;
952
- }
953
- var Ft, Pr;
954
- function io() {
955
- if (Pr)
956
- return Ft;
957
- Pr = 1;
958
- var e = Qr(), t = no(), r = nr(), n = en(), o = oo(), i = function() {
959
- };
960
- process.env.NODE_ENV !== "production" && (i = function(c) {
961
- var u = "Warning: " + c;
962
- typeof console < "u" && console.error(u);
963
- try {
964
- throw new Error(u);
965
- } catch {
966
- }
967
- });
968
- function s() {
969
- return null;
970
- }
971
- return Ft = function(c, u) {
972
- var l = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
973
- function d(m) {
974
- var R = m && (l && m[l] || m[f]);
975
- if (typeof R == "function")
976
- return R;
977
- }
978
- var b = "<<anonymous>>", y = {
979
- array: _("array"),
980
- bigint: _("bigint"),
981
- bool: _("boolean"),
982
- func: _("function"),
983
- number: _("number"),
984
- object: _("object"),
985
- string: _("string"),
986
- symbol: _("symbol"),
987
- any: w(),
988
- arrayOf: k,
989
- element: T(),
990
- elementType: p(),
991
- instanceOf: S,
992
- node: q(),
993
- objectOf: z,
994
- oneOf: I,
995
- oneOfType: K,
996
- shape: ie,
997
- exact: U
998
- };
999
- function g(m, R) {
1000
- return m === R ? m !== 0 || 1 / m === 1 / R : m !== m && R !== R;
1001
- }
1002
- function E(m, R) {
1003
- this.message = m, this.data = R && typeof R == "object" ? R : {}, this.stack = "";
1004
- }
1005
- E.prototype = Error.prototype;
1006
- function h(m) {
1007
- if (process.env.NODE_ENV !== "production")
1008
- var R = {}, M = 0;
1009
- function $(L, P, A, D, W, N, ae) {
1010
- if (D = D || b, N = N || A, ae !== r) {
1011
- if (u) {
1012
- var x = new Error(
1013
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
1014
- );
1015
- throw x.name = "Invariant Violation", x;
1016
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1017
- var ue = D + ":" + A;
1018
- !R[ue] && // Avoid spamming the console because they are often not actionable except for lib authors
1019
- M < 3 && (i(
1020
- "You are manually calling a React.PropTypes validation function for the `" + N + "` prop on `" + D + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1021
- ), R[ue] = !0, M++);
1022
- }
1023
- }
1024
- return P[A] == null ? L ? P[A] === null ? new E("The " + W + " `" + N + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new E("The " + W + " `" + N + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : m(P, A, D, W, N);
1025
- }
1026
- var C = $.bind(null, !1);
1027
- return C.isRequired = $.bind(null, !0), C;
1028
- }
1029
- function _(m) {
1030
- function R(M, $, C, L, P, A) {
1031
- var D = M[$], W = ee(D);
1032
- if (W !== m) {
1033
- var N = re(D);
1034
- return new E(
1035
- "Invalid " + L + " `" + P + "` of type " + ("`" + N + "` supplied to `" + C + "`, expected ") + ("`" + m + "`."),
1036
- { expectedType: m }
1037
- );
1038
- }
1039
- return null;
1040
- }
1041
- return h(R);
1042
- }
1043
- function w() {
1044
- return h(s);
1045
- }
1046
- function k(m) {
1047
- function R(M, $, C, L, P) {
1048
- if (typeof m != "function")
1049
- return new E("Property `" + P + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
1050
- var A = M[$];
1051
- if (!Array.isArray(A)) {
1052
- var D = ee(A);
1053
- return new E("Invalid " + L + " `" + P + "` of type " + ("`" + D + "` supplied to `" + C + "`, expected an array."));
1054
- }
1055
- for (var W = 0; W < A.length; W++) {
1056
- var N = m(A, W, C, L, P + "[" + W + "]", r);
1057
- if (N instanceof Error)
1058
- return N;
1059
- }
1060
- return null;
1061
- }
1062
- return h(R);
1063
- }
1064
- function T() {
1065
- function m(R, M, $, C, L) {
1066
- var P = R[M];
1067
- if (!c(P)) {
1068
- var A = ee(P);
1069
- return new E("Invalid " + C + " `" + L + "` of type " + ("`" + A + "` supplied to `" + $ + "`, expected a single ReactElement."));
1070
- }
1071
- return null;
1072
- }
1073
- return h(m);
1074
- }
1075
- function p() {
1076
- function m(R, M, $, C, L) {
1077
- var P = R[M];
1078
- if (!e.isValidElementType(P)) {
1079
- var A = ee(P);
1080
- return new E("Invalid " + C + " `" + L + "` of type " + ("`" + A + "` supplied to `" + $ + "`, expected a single ReactElement type."));
1081
- }
1082
- return null;
1083
- }
1084
- return h(m);
1085
- }
1086
- function S(m) {
1087
- function R(M, $, C, L, P) {
1088
- if (!(M[$] instanceof m)) {
1089
- var A = m.name || b, D = le(M[$]);
1090
- return new E("Invalid " + L + " `" + P + "` of type " + ("`" + D + "` supplied to `" + C + "`, expected ") + ("instance of `" + A + "`."));
1091
- }
1092
- return null;
1093
- }
1094
- return h(R);
1095
- }
1096
- function I(m) {
1097
- if (!Array.isArray(m))
1098
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
1099
- "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1100
- ) : i("Invalid argument supplied to oneOf, expected an array.")), s;
1101
- function R(M, $, C, L, P) {
1102
- for (var A = M[$], D = 0; D < m.length; D++)
1103
- if (g(A, m[D]))
1104
- return null;
1105
- var W = JSON.stringify(m, function(ae, x) {
1106
- var ue = re(x);
1107
- return ue === "symbol" ? String(x) : x;
1108
- });
1109
- return new E("Invalid " + L + " `" + P + "` of value `" + String(A) + "` " + ("supplied to `" + C + "`, expected one of " + W + "."));
1110
- }
1111
- return h(R);
1112
- }
1113
- function z(m) {
1114
- function R(M, $, C, L, P) {
1115
- if (typeof m != "function")
1116
- return new E("Property `" + P + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
1117
- var A = M[$], D = ee(A);
1118
- if (D !== "object")
1119
- return new E("Invalid " + L + " `" + P + "` of type " + ("`" + D + "` supplied to `" + C + "`, expected an object."));
1120
- for (var W in A)
1121
- if (n(A, W)) {
1122
- var N = m(A, W, C, L, P + "." + W, r);
1123
- if (N instanceof Error)
1124
- return N;
1125
- }
1126
- return null;
1127
- }
1128
- return h(R);
1129
- }
1130
- function K(m) {
1131
- if (!Array.isArray(m))
1132
- return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
1133
- for (var R = 0; R < m.length; R++) {
1134
- var M = m[R];
1135
- if (typeof M != "function")
1136
- return i(
1137
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + me(M) + " at index " + R + "."
1138
- ), s;
1139
- }
1140
- function $(C, L, P, A, D) {
1141
- for (var W = [], N = 0; N < m.length; N++) {
1142
- var ae = m[N], x = ae(C, L, P, A, D, r);
1143
- if (x == null)
1144
- return null;
1145
- x.data && n(x.data, "expectedType") && W.push(x.data.expectedType);
1146
- }
1147
- var ue = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
1148
- return new E("Invalid " + A + " `" + D + "` supplied to " + ("`" + P + "`" + ue + "."));
1149
- }
1150
- return h($);
1151
- }
1152
- function q() {
1153
- function m(R, M, $, C, L) {
1154
- return H(R[M]) ? null : new E("Invalid " + C + " `" + L + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
1155
- }
1156
- return h(m);
1157
- }
1158
- function Q(m, R, M, $, C) {
1159
- return new E(
1160
- (m || "React class") + ": " + R + " type `" + M + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + C + "`."
1161
- );
1162
- }
1163
- function ie(m) {
1164
- function R(M, $, C, L, P) {
1165
- var A = M[$], D = ee(A);
1166
- if (D !== "object")
1167
- return new E("Invalid " + L + " `" + P + "` of type `" + D + "` " + ("supplied to `" + C + "`, expected `object`."));
1168
- for (var W in m) {
1169
- var N = m[W];
1170
- if (typeof N != "function")
1171
- return Q(C, L, P, W, re(N));
1172
- var ae = N(A, W, C, L, P + "." + W, r);
1173
- if (ae)
1174
- return ae;
1175
- }
1176
- return null;
1177
- }
1178
- return h(R);
1179
- }
1180
- function U(m) {
1181
- function R(M, $, C, L, P) {
1182
- var A = M[$], D = ee(A);
1183
- if (D !== "object")
1184
- return new E("Invalid " + L + " `" + P + "` of type `" + D + "` " + ("supplied to `" + C + "`, expected `object`."));
1185
- var W = t({}, M[$], m);
1186
- for (var N in W) {
1187
- var ae = m[N];
1188
- if (n(m, N) && typeof ae != "function")
1189
- return Q(C, L, P, N, re(ae));
1190
- if (!ae)
1191
- return new E(
1192
- "Invalid " + L + " `" + P + "` key `" + N + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(M[$], null, " ") + `
1193
- Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
1194
- );
1195
- var x = ae(A, N, C, L, P + "." + N, r);
1196
- if (x)
1197
- return x;
1198
- }
1199
- return null;
1200
- }
1201
- return h(R);
1202
- }
1203
- function H(m) {
1204
- switch (typeof m) {
1205
- case "number":
1206
- case "string":
1207
- case "undefined":
1208
- return !0;
1209
- case "boolean":
1210
- return !m;
1211
- case "object":
1212
- if (Array.isArray(m))
1213
- return m.every(H);
1214
- if (m === null || c(m))
1215
- return !0;
1216
- var R = d(m);
1217
- if (R) {
1218
- var M = R.call(m), $;
1219
- if (R !== m.entries) {
1220
- for (; !($ = M.next()).done; )
1221
- if (!H($.value))
1222
- return !1;
1223
- } else
1224
- for (; !($ = M.next()).done; ) {
1225
- var C = $.value;
1226
- if (C && !H(C[1]))
1227
- return !1;
1228
- }
1229
- } else
1230
- return !1;
1231
- return !0;
1232
- default:
1233
- return !1;
1234
- }
1235
- }
1236
- function J(m, R) {
1237
- return m === "symbol" ? !0 : R ? R["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && R instanceof Symbol : !1;
1238
- }
1239
- function ee(m) {
1240
- var R = typeof m;
1241
- return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : J(R, m) ? "symbol" : R;
1242
- }
1243
- function re(m) {
1244
- if (typeof m > "u" || m === null)
1245
- return "" + m;
1246
- var R = ee(m);
1247
- if (R === "object") {
1248
- if (m instanceof Date)
1249
- return "date";
1250
- if (m instanceof RegExp)
1251
- return "regexp";
1252
- }
1253
- return R;
1254
- }
1255
- function me(m) {
1256
- var R = re(m);
1257
- switch (R) {
1258
- case "array":
1259
- case "object":
1260
- return "an " + R;
1261
- case "boolean":
1262
- case "date":
1263
- case "regexp":
1264
- return "a " + R;
1265
- default:
1266
- return R;
1267
- }
1268
- }
1269
- function le(m) {
1270
- return !m.constructor || !m.constructor.name ? b : m.constructor.name;
1271
- }
1272
- return y.checkPropTypes = o, y.resetWarningCache = o.resetWarningCache, y.PropTypes = y, y;
1273
- }, Ft;
1274
- }
1275
- var Wt, jr;
1276
- function ao() {
1277
- if (jr)
1278
- return Wt;
1279
- jr = 1;
1280
- var e = nr();
1281
- function t() {
1282
- }
1283
- function r() {
1284
- }
1285
- return r.resetWarningCache = t, Wt = function() {
1286
- function n(s, c, u, l, f, d) {
1287
- if (d !== e) {
1288
- var b = new Error(
1289
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1290
- );
1291
- throw b.name = "Invariant Violation", b;
1292
- }
1293
- }
1294
- n.isRequired = n;
1295
- function o() {
1296
- return n;
1297
- }
1298
- var i = {
1299
- array: n,
1300
- bigint: n,
1301
- bool: n,
1302
- func: n,
1303
- number: n,
1304
- object: n,
1305
- string: n,
1306
- symbol: n,
1307
- any: n,
1308
- arrayOf: o,
1309
- element: n,
1310
- elementType: n,
1311
- instanceOf: o,
1312
- node: n,
1313
- objectOf: o,
1314
- oneOf: o,
1315
- oneOfType: o,
1316
- shape: o,
1317
- exact: o,
1318
- checkPropTypes: r,
1319
- resetWarningCache: t
1320
- };
1321
- return i.PropTypes = i, i;
1322
- }, Wt;
1323
- }
1324
- if (process.env.NODE_ENV !== "production") {
1325
- var so = Qr(), co = !0;
1326
- Vt.exports = io()(so.isElement, co);
1327
- } else
1328
- Vt.exports = ao()();
1329
- var uo = Vt.exports;
1330
- const F = /* @__PURE__ */ rr(uo);
1331
- function tn() {
1332
- const e = ce(!0), t = ce(() => e.current);
1333
- return ye(() => (e.current = !0, () => {
1334
- e.current = !1;
1335
- }), []), t.current;
1336
- }
1337
- function fo(e) {
1338
- const t = ce(e);
1339
- return t.current = e, t;
1340
- }
1341
- function lo(e) {
1342
- const t = fo(e);
1343
- ye(() => () => t.current(), []);
1344
- }
1345
- const zt = 2 ** 31 - 1;
1346
- function rn(e, t, r) {
1347
- const n = r - Date.now();
1348
- e.current = n <= zt ? setTimeout(t, n) : setTimeout(() => rn(e, t, r), zt);
1349
- }
1350
- function po() {
1351
- const e = tn(), t = ce();
1352
- return lo(() => clearTimeout(t.current)), pt(() => {
1353
- const r = () => clearTimeout(t.current);
1354
- function n(o, i = 0) {
1355
- e() && (r(), i <= zt ? t.current = setTimeout(o, i) : rn(t, o, Date.now() + i));
1356
- }
1357
- return {
1358
- set: n,
1359
- clear: r,
1360
- handleRef: t
1361
- };
1362
- }, []);
1363
- }
1364
- var vo = process.env.NODE_ENV !== "production", nn = function() {
1365
- };
1366
- if (vo) {
1367
- var mo = function(t, r) {
1368
- var n = arguments.length;
1369
- r = new Array(n > 1 ? n - 1 : 0);
1370
- for (var o = 1; o < n; o++)
1371
- r[o - 1] = arguments[o];
1372
- var i = 0, s = "Warning: " + t.replace(/%s/g, function() {
1373
- return r[i++];
1374
- });
1375
- typeof console < "u" && console.error(s);
1376
- try {
1377
- throw new Error(s);
1378
- } catch {
1379
- }
1380
- };
1381
- nn = function(e, t, r) {
1382
- var n = arguments.length;
1383
- r = new Array(n > 2 ? n - 2 : 0);
1384
- for (var o = 2; o < n; o++)
1385
- r[o - 2] = arguments[o];
1386
- if (t === void 0)
1387
- throw new Error(
1388
- "`warning(condition, format, ...args)` requires a warning message argument"
1389
- );
1390
- e || mo.apply(null, [t].concat(r));
1391
- };
1392
- }
1393
- var ho = nn;
1394
- const on = /* @__PURE__ */ rr(ho);
1395
- function yo(e, t) {
1396
- if (e == null)
1397
- return {};
1398
- var r = {}, n = Object.keys(e), o, i;
1399
- for (i = 0; i < n.length; i++)
1400
- o = n[i], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
1401
- return r;
1402
- }
1403
- function go(e, t, r) {
1404
- var n = ce(e !== void 0), o = We(t), i = o[0], s = o[1], c = e !== void 0, u = n.current;
1405
- return n.current = c, !c && u && i !== t && s(t), [c ? e : i, oe(function(l) {
1406
- for (var f = arguments.length, d = new Array(f > 1 ? f - 1 : 0), b = 1; b < f; b++)
1407
- d[b - 1] = arguments[b];
1408
- r && r.apply(void 0, [l].concat(d)), s(l);
1409
- }, [r])];
1410
- }
1411
- function Ht(e, t) {
1412
- return Ht = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
1413
- return n.__proto__ = o, n;
1414
- }, Ht(e, t);
1415
- }
1416
- function bo(e, t) {
1417
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Ht(e, t);
1418
- }
1419
- const Ar = (e) => !e || typeof e == "function" ? e : (t) => {
1420
- e.current = t;
1421
- };
1422
- function Eo(e, t) {
1423
- const r = Ar(e), n = Ar(t);
1424
- return (o) => {
1425
- r && r(o), n && n(o);
1426
- };
1427
- }
1428
- function et(e, t) {
1429
- return pt(() => Eo(e, t), [e, t]);
1430
- }
1431
- var an = { exports: {} };
1432
- /*!
1433
- Copyright (c) 2018 Jed Watson.
1434
- Licensed under the MIT License (MIT), see
1435
- http://jedwatson.github.io/classnames
1436
- */
1437
- (function(e) {
1438
- (function() {
1439
- var t = {}.hasOwnProperty;
1440
- function r() {
1441
- for (var i = "", s = 0; s < arguments.length; s++) {
1442
- var c = arguments[s];
1443
- c && (i = o(i, n(c)));
1444
- }
1445
- return i;
1446
- }
1447
- function n(i) {
1448
- if (typeof i == "string" || typeof i == "number")
1449
- return i;
1450
- if (typeof i != "object")
1451
- return "";
1452
- if (Array.isArray(i))
1453
- return r.apply(null, i);
1454
- if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
1455
- return i.toString();
1456
- var s = "";
1457
- for (var c in i)
1458
- t.call(i, c) && i[c] && (s = o(s, c));
1459
- return s;
1460
- }
1461
- function o(i, s) {
1462
- return s ? i ? i + " " + s : i + s : i;
1463
- }
1464
- e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1465
- })();
1466
- })(an);
1467
- var wo = an.exports;
1468
- const tt = /* @__PURE__ */ rr(wo);
1469
- function Dr() {
1470
- return We(null);
1471
- }
1472
- var Mr = Object.prototype.hasOwnProperty;
1473
- function $r(e, t, r) {
1474
- for (r of e.keys())
1475
- if (ft(r, t))
1476
- return r;
1477
- }
1478
- function ft(e, t) {
1479
- var r, n, o;
1480
- if (e === t)
1481
- return !0;
1482
- if (e && t && (r = e.constructor) === t.constructor) {
1483
- if (r === Date)
1484
- return e.getTime() === t.getTime();
1485
- if (r === RegExp)
1486
- return e.toString() === t.toString();
1487
- if (r === Array) {
1488
- if ((n = e.length) === t.length)
1489
- for (; n-- && ft(e[n], t[n]); )
1490
- ;
1491
- return n === -1;
1492
- }
1493
- if (r === Set) {
1494
- if (e.size !== t.size)
1495
- return !1;
1496
- for (n of e)
1497
- if (o = n, o && typeof o == "object" && (o = $r(t, o), !o) || !t.has(o))
1498
- return !1;
1499
- return !0;
1500
- }
1501
- if (r === Map) {
1502
- if (e.size !== t.size)
1503
- return !1;
1504
- for (n of e)
1505
- if (o = n[0], o && typeof o == "object" && (o = $r(t, o), !o) || !ft(n[1], t.get(o)))
1506
- return !1;
1507
- return !0;
1508
- }
1509
- if (r === ArrayBuffer)
1510
- e = new Uint8Array(e), t = new Uint8Array(t);
1511
- else if (r === DataView) {
1512
- if ((n = e.byteLength) === t.byteLength)
1513
- for (; n-- && e.getInt8(n) === t.getInt8(n); )
1514
- ;
1515
- return n === -1;
1516
- }
1517
- if (ArrayBuffer.isView(e)) {
1518
- if ((n = e.byteLength) === t.byteLength)
1519
- for (; n-- && e[n] === t[n]; )
1520
- ;
1521
- return n === -1;
1522
- }
1523
- if (!r || typeof e == "object") {
1524
- n = 0;
1525
- for (r in e)
1526
- if (Mr.call(e, r) && ++n && !Mr.call(t, r) || !(r in t) || !ft(e[r], t[r]))
1527
- return !1;
1528
- return Object.keys(t).length === n;
1529
- }
1530
- }
1531
- return e !== e && t !== t;
1532
- }
1533
- function xo(e) {
1534
- const t = tn();
1535
- return [e[0], oe((r) => {
1536
- if (t())
1537
- return e[1](r);
1538
- }, [t, e[1]])];
1539
- }
1540
- var de = "top", ge = "bottom", be = "right", pe = "left", or = "auto", ht = [de, ge, be, pe], Ge = "start", vt = "end", Oo = "clippingParents", sn = "viewport", ct = "popper", Ro = "reference", Ir = /* @__PURE__ */ ht.reduce(function(e, t) {
1541
- return e.concat([t + "-" + Ge, t + "-" + vt]);
1542
- }, []), cn = /* @__PURE__ */ [].concat(ht, [or]).reduce(function(e, t) {
1543
- return e.concat([t, t + "-" + Ge, t + "-" + vt]);
1544
- }, []), To = "beforeRead", _o = "read", ko = "afterRead", So = "beforeMain", Co = "main", Po = "afterMain", jo = "beforeWrite", Ao = "write", Do = "afterWrite", Mo = [To, _o, ko, So, Co, Po, jo, Ao, Do];
1545
- function we(e) {
1546
- return e.split("-")[0];
1547
- }
1548
- function ve(e) {
1549
- if (e == null)
1550
- return window;
1551
- if (e.toString() !== "[object Window]") {
1552
- var t = e.ownerDocument;
1553
- return t && t.defaultView || window;
1554
- }
1555
- return e;
1556
- }
1557
- function Fe(e) {
1558
- var t = ve(e).Element;
1559
- return e instanceof t || e instanceof Element;
1560
- }
1561
- function xe(e) {
1562
- var t = ve(e).HTMLElement;
1563
- return e instanceof t || e instanceof HTMLElement;
1564
- }
1565
- function ir(e) {
1566
- if (typeof ShadowRoot > "u")
1567
- return !1;
1568
- var t = ve(e).ShadowRoot;
1569
- return e instanceof t || e instanceof ShadowRoot;
1570
- }
1571
- var Ne = Math.max, kt = Math.min, Xe = Math.round;
1572
- function Gt() {
1573
- var e = navigator.userAgentData;
1574
- return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
1575
- return t.brand + "/" + t.version;
1576
- }).join(" ") : navigator.userAgent;
1577
- }
1578
- function un() {
1579
- return !/^((?!chrome|android).)*safari/i.test(Gt());
1580
- }
1581
- function Ke(e, t, r) {
1582
- t === void 0 && (t = !1), r === void 0 && (r = !1);
1583
- var n = e.getBoundingClientRect(), o = 1, i = 1;
1584
- t && xe(e) && (o = e.offsetWidth > 0 && Xe(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && Xe(n.height) / e.offsetHeight || 1);
1585
- var s = Fe(e) ? ve(e) : window, c = s.visualViewport, u = !un() && r, l = (n.left + (u && c ? c.offsetLeft : 0)) / o, f = (n.top + (u && c ? c.offsetTop : 0)) / i, d = n.width / o, b = n.height / i;
1586
- return {
1587
- width: d,
1588
- height: b,
1589
- top: f,
1590
- right: l + d,
1591
- bottom: f + b,
1592
- left: l,
1593
- x: l,
1594
- y: f
1595
- };
1596
- }
1597
- function ar(e) {
1598
- var t = Ke(e), r = e.offsetWidth, n = e.offsetHeight;
1599
- return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
1600
- x: e.offsetLeft,
1601
- y: e.offsetTop,
1602
- width: r,
1603
- height: n
1604
- };
1605
- }
1606
- function fn(e, t) {
1607
- var r = t.getRootNode && t.getRootNode();
1608
- if (e.contains(t))
1609
- return !0;
1610
- if (r && ir(r)) {
1611
- var n = t;
1612
- do {
1613
- if (n && e.isSameNode(n))
1614
- return !0;
1615
- n = n.parentNode || n.host;
1616
- } while (n);
1617
- }
1618
- return !1;
1619
- }
1620
- function Ae(e) {
1621
- return e ? (e.nodeName || "").toLowerCase() : null;
1622
- }
1623
- function ke(e) {
1624
- return ve(e).getComputedStyle(e);
1625
- }
1626
- function $o(e) {
1627
- return ["table", "td", "th"].indexOf(Ae(e)) >= 0;
1628
- }
1629
- function De(e) {
1630
- return ((Fe(e) ? e.ownerDocument : (
1631
- // $FlowFixMe[prop-missing]
1632
- e.document
1633
- )) || window.document).documentElement;
1634
- }
1635
- function Ct(e) {
1636
- return Ae(e) === "html" ? e : (
1637
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
1638
- // $FlowFixMe[incompatible-return]
1639
- // $FlowFixMe[prop-missing]
1640
- e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
1641
- e.parentNode || // DOM Element detected
1642
- (ir(e) ? e.host : null) || // ShadowRoot detected
1643
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
1644
- De(e)
1645
- );
1646
- }
1647
- function Lr(e) {
1648
- return !xe(e) || // https://github.com/popperjs/popper-core/issues/837
1649
- ke(e).position === "fixed" ? null : e.offsetParent;
1650
- }
1651
- function Io(e) {
1652
- var t = /firefox/i.test(Gt()), r = /Trident/i.test(Gt());
1653
- if (r && xe(e)) {
1654
- var n = ke(e);
1655
- if (n.position === "fixed")
1656
- return null;
1657
- }
1658
- var o = Ct(e);
1659
- for (ir(o) && (o = o.host); xe(o) && ["html", "body"].indexOf(Ae(o)) < 0; ) {
1660
- var i = ke(o);
1661
- if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
1662
- return o;
1663
- o = o.parentNode;
1664
- }
1665
- return null;
1666
- }
1667
- function yt(e) {
1668
- for (var t = ve(e), r = Lr(e); r && $o(r) && ke(r).position === "static"; )
1669
- r = Lr(r);
1670
- return r && (Ae(r) === "html" || Ae(r) === "body" && ke(r).position === "static") ? t : r || Io(e) || t;
1671
- }
1672
- function sr(e) {
1673
- return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
1674
- }
1675
- function lt(e, t, r) {
1676
- return Ne(e, kt(t, r));
1677
- }
1678
- function Lo(e, t, r) {
1679
- var n = lt(e, t, r);
1680
- return n > r ? r : n;
1681
- }
1682
- function ln() {
1683
- return {
1684
- top: 0,
1685
- right: 0,
1686
- bottom: 0,
1687
- left: 0
1688
- };
1689
- }
1690
- function dn(e) {
1691
- return Object.assign({}, ln(), e);
1692
- }
1693
- function pn(e, t) {
1694
- return t.reduce(function(r, n) {
1695
- return r[n] = e, r;
1696
- }, {});
1697
- }
1698
- var No = function(t, r) {
1699
- return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
1700
- placement: r.placement
1701
- })) : t, dn(typeof t != "number" ? t : pn(t, ht));
1702
- };
1703
- function Fo(e) {
1704
- var t, r = e.state, n = e.name, o = e.options, i = r.elements.arrow, s = r.modifiersData.popperOffsets, c = we(r.placement), u = sr(c), l = [pe, be].indexOf(c) >= 0, f = l ? "height" : "width";
1705
- if (!(!i || !s)) {
1706
- var d = No(o.padding, r), b = ar(i), y = u === "y" ? de : pe, g = u === "y" ? ge : be, E = r.rects.reference[f] + r.rects.reference[u] - s[u] - r.rects.popper[f], h = s[u] - r.rects.reference[u], _ = yt(i), w = _ ? u === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, k = E / 2 - h / 2, T = d[y], p = w - b[f] - d[g], S = w / 2 - b[f] / 2 + k, I = lt(T, S, p), z = u;
1707
- r.modifiersData[n] = (t = {}, t[z] = I, t.centerOffset = I - S, t);
1708
- }
1709
- }
1710
- function Wo(e) {
1711
- var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
1712
- o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || fn(t.elements.popper, o) && (t.elements.arrow = o));
1713
- }
1714
- const Bo = {
1715
- name: "arrow",
1716
- enabled: !0,
1717
- phase: "main",
1718
- fn: Fo,
1719
- effect: Wo,
1720
- requires: ["popperOffsets"],
1721
- requiresIfExists: ["preventOverflow"]
1722
- };
1723
- function Je(e) {
1724
- return e.split("-")[1];
1725
- }
1726
- var Uo = {
1727
- top: "auto",
1728
- right: "auto",
1729
- bottom: "auto",
1730
- left: "auto"
1731
- };
1732
- function Yo(e, t) {
1733
- var r = e.x, n = e.y, o = t.devicePixelRatio || 1;
1734
- return {
1735
- x: Xe(r * o) / o || 0,
1736
- y: Xe(n * o) / o || 0
1737
- };
1738
- }
1739
- function Nr(e) {
1740
- var t, r = e.popper, n = e.popperRect, o = e.placement, i = e.variation, s = e.offsets, c = e.position, u = e.gpuAcceleration, l = e.adaptive, f = e.roundOffsets, d = e.isFixed, b = s.x, y = b === void 0 ? 0 : b, g = s.y, E = g === void 0 ? 0 : g, h = typeof f == "function" ? f({
1741
- x: y,
1742
- y: E
1743
- }) : {
1744
- x: y,
1745
- y: E
1746
- };
1747
- y = h.x, E = h.y;
1748
- var _ = s.hasOwnProperty("x"), w = s.hasOwnProperty("y"), k = pe, T = de, p = window;
1749
- if (l) {
1750
- var S = yt(r), I = "clientHeight", z = "clientWidth";
1751
- if (S === ve(r) && (S = De(r), ke(S).position !== "static" && c === "absolute" && (I = "scrollHeight", z = "scrollWidth")), S = S, o === de || (o === pe || o === be) && i === vt) {
1752
- T = ge;
1753
- var K = d && S === p && p.visualViewport ? p.visualViewport.height : (
1754
- // $FlowFixMe[prop-missing]
1755
- S[I]
1756
- );
1757
- E -= K - n.height, E *= u ? 1 : -1;
1758
- }
1759
- if (o === pe || (o === de || o === ge) && i === vt) {
1760
- k = be;
1761
- var q = d && S === p && p.visualViewport ? p.visualViewport.width : (
1762
- // $FlowFixMe[prop-missing]
1763
- S[z]
1764
- );
1765
- y -= q - n.width, y *= u ? 1 : -1;
1766
- }
1767
- }
1768
- var Q = Object.assign({
1769
- position: c
1770
- }, l && Uo), ie = f === !0 ? Yo({
1771
- x: y,
1772
- y: E
1773
- }, ve(r)) : {
1774
- x: y,
1775
- y: E
1776
- };
1777
- if (y = ie.x, E = ie.y, u) {
1778
- var U;
1779
- return Object.assign({}, Q, (U = {}, U[T] = w ? "0" : "", U[k] = _ ? "0" : "", U.transform = (p.devicePixelRatio || 1) <= 1 ? "translate(" + y + "px, " + E + "px)" : "translate3d(" + y + "px, " + E + "px, 0)", U));
1780
- }
1781
- return Object.assign({}, Q, (t = {}, t[T] = w ? E + "px" : "", t[k] = _ ? y + "px" : "", t.transform = "", t));
1782
- }
1783
- function qo(e) {
1784
- var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, i = r.adaptive, s = i === void 0 ? !0 : i, c = r.roundOffsets, u = c === void 0 ? !0 : c, l = {
1785
- placement: we(t.placement),
1786
- variation: Je(t.placement),
1787
- popper: t.elements.popper,
1788
- popperRect: t.rects.popper,
1789
- gpuAcceleration: o,
1790
- isFixed: t.options.strategy === "fixed"
1791
- };
1792
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Nr(Object.assign({}, l, {
1793
- offsets: t.modifiersData.popperOffsets,
1794
- position: t.options.strategy,
1795
- adaptive: s,
1796
- roundOffsets: u
1797
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Nr(Object.assign({}, l, {
1798
- offsets: t.modifiersData.arrow,
1799
- position: "absolute",
1800
- adaptive: !1,
1801
- roundOffsets: u
1802
- })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
1803
- "data-popper-placement": t.placement
1804
- });
1805
- }
1806
- const Vo = {
1807
- name: "computeStyles",
1808
- enabled: !0,
1809
- phase: "beforeWrite",
1810
- fn: qo,
1811
- data: {}
1812
- };
1813
- var Ot = {
1814
- passive: !0
1815
- };
1816
- function zo(e) {
1817
- var t = e.state, r = e.instance, n = e.options, o = n.scroll, i = o === void 0 ? !0 : o, s = n.resize, c = s === void 0 ? !0 : s, u = ve(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
1818
- return i && l.forEach(function(f) {
1819
- f.addEventListener("scroll", r.update, Ot);
1820
- }), c && u.addEventListener("resize", r.update, Ot), function() {
1821
- i && l.forEach(function(f) {
1822
- f.removeEventListener("scroll", r.update, Ot);
1823
- }), c && u.removeEventListener("resize", r.update, Ot);
1824
- };
1825
- }
1826
- const Ho = {
1827
- name: "eventListeners",
1828
- enabled: !0,
1829
- phase: "write",
1830
- fn: function() {
1831
- },
1832
- effect: zo,
1833
- data: {}
1834
- };
1835
- var Go = {
1836
- left: "right",
1837
- right: "left",
1838
- bottom: "top",
1839
- top: "bottom"
1840
- };
1841
- function Tt(e) {
1842
- return e.replace(/left|right|bottom|top/g, function(t) {
1843
- return Go[t];
1844
- });
1845
- }
1846
- var Xo = {
1847
- start: "end",
1848
- end: "start"
1849
- };
1850
- function Fr(e) {
1851
- return e.replace(/start|end/g, function(t) {
1852
- return Xo[t];
1853
- });
1854
- }
1855
- function cr(e) {
1856
- var t = ve(e), r = t.pageXOffset, n = t.pageYOffset;
1857
- return {
1858
- scrollLeft: r,
1859
- scrollTop: n
1860
- };
1861
- }
1862
- function ur(e) {
1863
- return Ke(De(e)).left + cr(e).scrollLeft;
1864
- }
1865
- function Ko(e, t) {
1866
- var r = ve(e), n = De(e), o = r.visualViewport, i = n.clientWidth, s = n.clientHeight, c = 0, u = 0;
1867
- if (o) {
1868
- i = o.width, s = o.height;
1869
- var l = un();
1870
- (l || !l && t === "fixed") && (c = o.offsetLeft, u = o.offsetTop);
1871
- }
1872
- return {
1873
- width: i,
1874
- height: s,
1875
- x: c + ur(e),
1876
- y: u
1877
- };
1878
- }
1879
- function Jo(e) {
1880
- var t, r = De(e), n = cr(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, i = Ne(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = Ne(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), c = -n.scrollLeft + ur(e), u = -n.scrollTop;
1881
- return ke(o || r).direction === "rtl" && (c += Ne(r.clientWidth, o ? o.clientWidth : 0) - i), {
1882
- width: i,
1883
- height: s,
1884
- x: c,
1885
- y: u
1886
- };
1887
- }
1888
- function fr(e) {
1889
- var t = ke(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
1890
- return /auto|scroll|overlay|hidden/.test(r + o + n);
1891
- }
1892
- function vn(e) {
1893
- return ["html", "body", "#document"].indexOf(Ae(e)) >= 0 ? e.ownerDocument.body : xe(e) && fr(e) ? e : vn(Ct(e));
1894
- }
1895
- function dt(e, t) {
1896
- var r;
1897
- t === void 0 && (t = []);
1898
- var n = vn(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = ve(n), s = o ? [i].concat(i.visualViewport || [], fr(n) ? n : []) : n, c = t.concat(s);
1899
- return o ? c : (
1900
- // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
1901
- c.concat(dt(Ct(s)))
1902
- );
1903
- }
1904
- function Xt(e) {
1905
- return Object.assign({}, e, {
1906
- left: e.x,
1907
- top: e.y,
1908
- right: e.x + e.width,
1909
- bottom: e.y + e.height
1910
- });
1911
- }
1912
- function Zo(e, t) {
1913
- var r = Ke(e, !1, t === "fixed");
1914
- return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
1915
- }
1916
- function Wr(e, t, r) {
1917
- return t === sn ? Xt(Ko(e, r)) : Fe(t) ? Zo(t, r) : Xt(Jo(De(e)));
1918
- }
1919
- function Qo(e) {
1920
- var t = dt(Ct(e)), r = ["absolute", "fixed"].indexOf(ke(e).position) >= 0, n = r && xe(e) ? yt(e) : e;
1921
- return Fe(n) ? t.filter(function(o) {
1922
- return Fe(o) && fn(o, n) && Ae(o) !== "body";
1923
- }) : [];
1924
- }
1925
- function ei(e, t, r, n) {
1926
- var o = t === "clippingParents" ? Qo(e) : [].concat(t), i = [].concat(o, [r]), s = i[0], c = i.reduce(function(u, l) {
1927
- var f = Wr(e, l, n);
1928
- return u.top = Ne(f.top, u.top), u.right = kt(f.right, u.right), u.bottom = kt(f.bottom, u.bottom), u.left = Ne(f.left, u.left), u;
1929
- }, Wr(e, s, n));
1930
- return c.width = c.right - c.left, c.height = c.bottom - c.top, c.x = c.left, c.y = c.top, c;
1931
- }
1932
- function mn(e) {
1933
- var t = e.reference, r = e.element, n = e.placement, o = n ? we(n) : null, i = n ? Je(n) : null, s = t.x + t.width / 2 - r.width / 2, c = t.y + t.height / 2 - r.height / 2, u;
1934
- switch (o) {
1935
- case de:
1936
- u = {
1937
- x: s,
1938
- y: t.y - r.height
1939
- };
1940
- break;
1941
- case ge:
1942
- u = {
1943
- x: s,
1944
- y: t.y + t.height
1945
- };
1946
- break;
1947
- case be:
1948
- u = {
1949
- x: t.x + t.width,
1950
- y: c
1951
- };
1952
- break;
1953
- case pe:
1954
- u = {
1955
- x: t.x - r.width,
1956
- y: c
1957
- };
1958
- break;
1959
- default:
1960
- u = {
1961
- x: t.x,
1962
- y: t.y
1963
- };
1964
- }
1965
- var l = o ? sr(o) : null;
1966
- if (l != null) {
1967
- var f = l === "y" ? "height" : "width";
1968
- switch (i) {
1969
- case Ge:
1970
- u[l] = u[l] - (t[f] / 2 - r[f] / 2);
1971
- break;
1972
- case vt:
1973
- u[l] = u[l] + (t[f] / 2 - r[f] / 2);
1974
- break;
1975
- }
1976
- }
1977
- return u;
1978
- }
1979
- function mt(e, t) {
1980
- t === void 0 && (t = {});
1981
- var r = t, n = r.placement, o = n === void 0 ? e.placement : n, i = r.strategy, s = i === void 0 ? e.strategy : i, c = r.boundary, u = c === void 0 ? Oo : c, l = r.rootBoundary, f = l === void 0 ? sn : l, d = r.elementContext, b = d === void 0 ? ct : d, y = r.altBoundary, g = y === void 0 ? !1 : y, E = r.padding, h = E === void 0 ? 0 : E, _ = dn(typeof h != "number" ? h : pn(h, ht)), w = b === ct ? Ro : ct, k = e.rects.popper, T = e.elements[g ? w : b], p = ei(Fe(T) ? T : T.contextElement || De(e.elements.popper), u, f, s), S = Ke(e.elements.reference), I = mn({
1982
- reference: S,
1983
- element: k,
1984
- strategy: "absolute",
1985
- placement: o
1986
- }), z = Xt(Object.assign({}, k, I)), K = b === ct ? z : S, q = {
1987
- top: p.top - K.top + _.top,
1988
- bottom: K.bottom - p.bottom + _.bottom,
1989
- left: p.left - K.left + _.left,
1990
- right: K.right - p.right + _.right
1991
- }, Q = e.modifiersData.offset;
1992
- if (b === ct && Q) {
1993
- var ie = Q[o];
1994
- Object.keys(q).forEach(function(U) {
1995
- var H = [be, ge].indexOf(U) >= 0 ? 1 : -1, J = [de, ge].indexOf(U) >= 0 ? "y" : "x";
1996
- q[U] += ie[J] * H;
1997
- });
1998
- }
1999
- return q;
2000
- }
2001
- function ti(e, t) {
2002
- t === void 0 && (t = {});
2003
- var r = t, n = r.placement, o = r.boundary, i = r.rootBoundary, s = r.padding, c = r.flipVariations, u = r.allowedAutoPlacements, l = u === void 0 ? cn : u, f = Je(n), d = f ? c ? Ir : Ir.filter(function(g) {
2004
- return Je(g) === f;
2005
- }) : ht, b = d.filter(function(g) {
2006
- return l.indexOf(g) >= 0;
2007
- });
2008
- b.length === 0 && (b = d);
2009
- var y = b.reduce(function(g, E) {
2010
- return g[E] = mt(e, {
2011
- placement: E,
2012
- boundary: o,
2013
- rootBoundary: i,
2014
- padding: s
2015
- })[we(E)], g;
2016
- }, {});
2017
- return Object.keys(y).sort(function(g, E) {
2018
- return y[g] - y[E];
2019
- });
2020
- }
2021
- function ri(e) {
2022
- if (we(e) === or)
2023
- return [];
2024
- var t = Tt(e);
2025
- return [Fr(e), t, Fr(t)];
2026
- }
2027
- function ni(e) {
2028
- var t = e.state, r = e.options, n = e.name;
2029
- if (!t.modifiersData[n]._skip) {
2030
- for (var o = r.mainAxis, i = o === void 0 ? !0 : o, s = r.altAxis, c = s === void 0 ? !0 : s, u = r.fallbackPlacements, l = r.padding, f = r.boundary, d = r.rootBoundary, b = r.altBoundary, y = r.flipVariations, g = y === void 0 ? !0 : y, E = r.allowedAutoPlacements, h = t.options.placement, _ = we(h), w = _ === h, k = u || (w || !g ? [Tt(h)] : ri(h)), T = [h].concat(k).reduce(function(C, L) {
2031
- return C.concat(we(L) === or ? ti(t, {
2032
- placement: L,
2033
- boundary: f,
2034
- rootBoundary: d,
2035
- padding: l,
2036
- flipVariations: g,
2037
- allowedAutoPlacements: E
2038
- }) : L);
2039
- }, []), p = t.rects.reference, S = t.rects.popper, I = /* @__PURE__ */ new Map(), z = !0, K = T[0], q = 0; q < T.length; q++) {
2040
- var Q = T[q], ie = we(Q), U = Je(Q) === Ge, H = [de, ge].indexOf(ie) >= 0, J = H ? "width" : "height", ee = mt(t, {
2041
- placement: Q,
2042
- boundary: f,
2043
- rootBoundary: d,
2044
- altBoundary: b,
2045
- padding: l
2046
- }), re = H ? U ? be : pe : U ? ge : de;
2047
- p[J] > S[J] && (re = Tt(re));
2048
- var me = Tt(re), le = [];
2049
- if (i && le.push(ee[ie] <= 0), c && le.push(ee[re] <= 0, ee[me] <= 0), le.every(function(C) {
2050
- return C;
2051
- })) {
2052
- K = Q, z = !1;
2053
- break;
2054
- }
2055
- I.set(Q, le);
2056
- }
2057
- if (z)
2058
- for (var m = g ? 3 : 1, R = function(L) {
2059
- var P = T.find(function(A) {
2060
- var D = I.get(A);
2061
- if (D)
2062
- return D.slice(0, L).every(function(W) {
2063
- return W;
2064
- });
2065
- });
2066
- if (P)
2067
- return K = P, "break";
2068
- }, M = m; M > 0; M--) {
2069
- var $ = R(M);
2070
- if ($ === "break")
2071
- break;
2072
- }
2073
- t.placement !== K && (t.modifiersData[n]._skip = !0, t.placement = K, t.reset = !0);
2074
- }
2075
- }
2076
- const oi = {
2077
- name: "flip",
2078
- enabled: !0,
2079
- phase: "main",
2080
- fn: ni,
2081
- requiresIfExists: ["offset"],
2082
- data: {
2083
- _skip: !1
2084
- }
2085
- };
2086
- function Br(e, t, r) {
2087
- return r === void 0 && (r = {
2088
- x: 0,
2089
- y: 0
2090
- }), {
2091
- top: e.top - t.height - r.y,
2092
- right: e.right - t.width + r.x,
2093
- bottom: e.bottom - t.height + r.y,
2094
- left: e.left - t.width - r.x
2095
- };
2096
- }
2097
- function Ur(e) {
2098
- return [de, be, ge, pe].some(function(t) {
2099
- return e[t] >= 0;
2100
- });
2101
- }
2102
- function ii(e) {
2103
- var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, s = mt(t, {
2104
- elementContext: "reference"
2105
- }), c = mt(t, {
2106
- altBoundary: !0
2107
- }), u = Br(s, n), l = Br(c, o, i), f = Ur(u), d = Ur(l);
2108
- t.modifiersData[r] = {
2109
- referenceClippingOffsets: u,
2110
- popperEscapeOffsets: l,
2111
- isReferenceHidden: f,
2112
- hasPopperEscaped: d
2113
- }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
2114
- "data-popper-reference-hidden": f,
2115
- "data-popper-escaped": d
2116
- });
2117
- }
2118
- const ai = {
2119
- name: "hide",
2120
- enabled: !0,
2121
- phase: "main",
2122
- requiresIfExists: ["preventOverflow"],
2123
- fn: ii
2124
- };
2125
- function si(e, t, r) {
2126
- var n = we(e), o = [pe, de].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
2127
- placement: e
2128
- })) : r, s = i[0], c = i[1];
2129
- return s = s || 0, c = (c || 0) * o, [pe, be].indexOf(n) >= 0 ? {
2130
- x: c,
2131
- y: s
2132
- } : {
2133
- x: s,
2134
- y: c
2135
- };
2136
- }
2137
- function ci(e) {
2138
- var t = e.state, r = e.options, n = e.name, o = r.offset, i = o === void 0 ? [0, 0] : o, s = cn.reduce(function(f, d) {
2139
- return f[d] = si(d, t.rects, i), f;
2140
- }, {}), c = s[t.placement], u = c.x, l = c.y;
2141
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += u, t.modifiersData.popperOffsets.y += l), t.modifiersData[n] = s;
2142
- }
2143
- const ui = {
2144
- name: "offset",
2145
- enabled: !0,
2146
- phase: "main",
2147
- requires: ["popperOffsets"],
2148
- fn: ci
2149
- };
2150
- function fi(e) {
2151
- var t = e.state, r = e.name;
2152
- t.modifiersData[r] = mn({
2153
- reference: t.rects.reference,
2154
- element: t.rects.popper,
2155
- strategy: "absolute",
2156
- placement: t.placement
2157
- });
2158
- }
2159
- const li = {
2160
- name: "popperOffsets",
2161
- enabled: !0,
2162
- phase: "read",
2163
- fn: fi,
2164
- data: {}
2165
- };
2166
- function di(e) {
2167
- return e === "x" ? "y" : "x";
2168
- }
2169
- function pi(e) {
2170
- var t = e.state, r = e.options, n = e.name, o = r.mainAxis, i = o === void 0 ? !0 : o, s = r.altAxis, c = s === void 0 ? !1 : s, u = r.boundary, l = r.rootBoundary, f = r.altBoundary, d = r.padding, b = r.tether, y = b === void 0 ? !0 : b, g = r.tetherOffset, E = g === void 0 ? 0 : g, h = mt(t, {
2171
- boundary: u,
2172
- rootBoundary: l,
2173
- padding: d,
2174
- altBoundary: f
2175
- }), _ = we(t.placement), w = Je(t.placement), k = !w, T = sr(_), p = di(T), S = t.modifiersData.popperOffsets, I = t.rects.reference, z = t.rects.popper, K = typeof E == "function" ? E(Object.assign({}, t.rects, {
2176
- placement: t.placement
2177
- })) : E, q = typeof K == "number" ? {
2178
- mainAxis: K,
2179
- altAxis: K
2180
- } : Object.assign({
2181
- mainAxis: 0,
2182
- altAxis: 0
2183
- }, K), Q = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, ie = {
2184
- x: 0,
2185
- y: 0
2186
- };
2187
- if (S) {
2188
- if (i) {
2189
- var U, H = T === "y" ? de : pe, J = T === "y" ? ge : be, ee = T === "y" ? "height" : "width", re = S[T], me = re + h[H], le = re - h[J], m = y ? -z[ee] / 2 : 0, R = w === Ge ? I[ee] : z[ee], M = w === Ge ? -z[ee] : -I[ee], $ = t.elements.arrow, C = y && $ ? ar($) : {
2190
- width: 0,
2191
- height: 0
2192
- }, L = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ln(), P = L[H], A = L[J], D = lt(0, I[ee], C[ee]), W = k ? I[ee] / 2 - m - D - P - q.mainAxis : R - D - P - q.mainAxis, N = k ? -I[ee] / 2 + m + D + A + q.mainAxis : M + D + A + q.mainAxis, ae = t.elements.arrow && yt(t.elements.arrow), x = ae ? T === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, ue = (U = Q == null ? void 0 : Q[T]) != null ? U : 0, Ce = re + W - ue - x, Oe = re + N - ue, Me = lt(y ? kt(me, Ce) : me, re, y ? Ne(le, Oe) : le);
2193
- S[T] = Me, ie[T] = Me - re;
2194
- }
2195
- if (c) {
2196
- var rt, gt = T === "x" ? de : pe, Be = T === "x" ? ge : be, Re = S[p], Ue = p === "y" ? "height" : "width", Ye = Re + h[gt], bt = Re - h[Be], nt = [de, pe].indexOf(_) !== -1, ot = (rt = Q == null ? void 0 : Q[p]) != null ? rt : 0, it = nt ? Ye : Re - I[Ue] - z[Ue] - ot + q.altAxis, Pe = nt ? Re + I[Ue] + z[Ue] - ot - q.altAxis : bt, Et = y && nt ? Lo(it, Re, Pe) : lt(y ? it : Ye, Re, y ? Pe : bt);
2197
- S[p] = Et, ie[p] = Et - Re;
2198
- }
2199
- t.modifiersData[n] = ie;
2200
- }
2201
- }
2202
- const vi = {
2203
- name: "preventOverflow",
2204
- enabled: !0,
2205
- phase: "main",
2206
- fn: pi,
2207
- requiresIfExists: ["offset"]
2208
- };
2209
- function mi(e) {
2210
- return {
2211
- scrollLeft: e.scrollLeft,
2212
- scrollTop: e.scrollTop
2213
- };
2214
- }
2215
- function hi(e) {
2216
- return e === ve(e) || !xe(e) ? cr(e) : mi(e);
2217
- }
2218
- function yi(e) {
2219
- var t = e.getBoundingClientRect(), r = Xe(t.width) / e.offsetWidth || 1, n = Xe(t.height) / e.offsetHeight || 1;
2220
- return r !== 1 || n !== 1;
2221
- }
2222
- function gi(e, t, r) {
2223
- r === void 0 && (r = !1);
2224
- var n = xe(t), o = xe(t) && yi(t), i = De(t), s = Ke(e, o, r), c = {
2225
- scrollLeft: 0,
2226
- scrollTop: 0
2227
- }, u = {
2228
- x: 0,
2229
- y: 0
2230
- };
2231
- return (n || !n && !r) && ((Ae(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
2232
- fr(i)) && (c = hi(t)), xe(t) ? (u = Ke(t, !0), u.x += t.clientLeft, u.y += t.clientTop) : i && (u.x = ur(i))), {
2233
- x: s.left + c.scrollLeft - u.x,
2234
- y: s.top + c.scrollTop - u.y,
2235
- width: s.width,
2236
- height: s.height
2237
- };
2238
- }
2239
- function bi(e) {
2240
- var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
2241
- e.forEach(function(i) {
2242
- t.set(i.name, i);
2243
- });
2244
- function o(i) {
2245
- r.add(i.name);
2246
- var s = [].concat(i.requires || [], i.requiresIfExists || []);
2247
- s.forEach(function(c) {
2248
- if (!r.has(c)) {
2249
- var u = t.get(c);
2250
- u && o(u);
2251
- }
2252
- }), n.push(i);
2253
- }
2254
- return e.forEach(function(i) {
2255
- r.has(i.name) || o(i);
2256
- }), n;
2257
- }
2258
- function Ei(e) {
2259
- var t = bi(e);
2260
- return Mo.reduce(function(r, n) {
2261
- return r.concat(t.filter(function(o) {
2262
- return o.phase === n;
2263
- }));
2264
- }, []);
2265
- }
2266
- function wi(e) {
2267
- var t;
2268
- return function() {
2269
- return t || (t = new Promise(function(r) {
2270
- Promise.resolve().then(function() {
2271
- t = void 0, r(e());
2272
- });
2273
- })), t;
2274
- };
2275
- }
2276
- function xi(e) {
2277
- var t = e.reduce(function(r, n) {
2278
- var o = r[n.name];
2279
- return r[n.name] = o ? Object.assign({}, o, n, {
2280
- options: Object.assign({}, o.options, n.options),
2281
- data: Object.assign({}, o.data, n.data)
2282
- }) : n, r;
2283
- }, {});
2284
- return Object.keys(t).map(function(r) {
2285
- return t[r];
2286
- });
2287
- }
2288
- var Yr = {
2289
- placement: "bottom",
2290
- modifiers: [],
2291
- strategy: "absolute"
2292
- };
2293
- function qr() {
2294
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
2295
- t[r] = arguments[r];
2296
- return !t.some(function(n) {
2297
- return !(n && typeof n.getBoundingClientRect == "function");
2298
- });
2299
- }
2300
- function Oi(e) {
2301
- e === void 0 && (e = {});
2302
- var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, i = o === void 0 ? Yr : o;
2303
- return function(c, u, l) {
2304
- l === void 0 && (l = i);
2305
- var f = {
2306
- placement: "bottom",
2307
- orderedModifiers: [],
2308
- options: Object.assign({}, Yr, i),
2309
- modifiersData: {},
2310
- elements: {
2311
- reference: c,
2312
- popper: u
2313
- },
2314
- attributes: {},
2315
- styles: {}
2316
- }, d = [], b = !1, y = {
2317
- state: f,
2318
- setOptions: function(_) {
2319
- var w = typeof _ == "function" ? _(f.options) : _;
2320
- E(), f.options = Object.assign({}, i, f.options, w), f.scrollParents = {
2321
- reference: Fe(c) ? dt(c) : c.contextElement ? dt(c.contextElement) : [],
2322
- popper: dt(u)
2323
- };
2324
- var k = Ei(xi([].concat(n, f.options.modifiers)));
2325
- return f.orderedModifiers = k.filter(function(T) {
2326
- return T.enabled;
2327
- }), g(), y.update();
2328
- },
2329
- // Sync update – it will always be executed, even if not necessary. This
2330
- // is useful for low frequency updates where sync behavior simplifies the
2331
- // logic.
2332
- // For high frequency updates (e.g. `resize` and `scroll` events), always
2333
- // prefer the async Popper#update method
2334
- forceUpdate: function() {
2335
- if (!b) {
2336
- var _ = f.elements, w = _.reference, k = _.popper;
2337
- if (qr(w, k)) {
2338
- f.rects = {
2339
- reference: gi(w, yt(k), f.options.strategy === "fixed"),
2340
- popper: ar(k)
2341
- }, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(q) {
2342
- return f.modifiersData[q.name] = Object.assign({}, q.data);
2343
- });
2344
- for (var T = 0; T < f.orderedModifiers.length; T++) {
2345
- if (f.reset === !0) {
2346
- f.reset = !1, T = -1;
2347
- continue;
2348
- }
2349
- var p = f.orderedModifiers[T], S = p.fn, I = p.options, z = I === void 0 ? {} : I, K = p.name;
2350
- typeof S == "function" && (f = S({
2351
- state: f,
2352
- options: z,
2353
- name: K,
2354
- instance: y
2355
- }) || f);
2356
- }
2357
- }
2358
- }
2359
- },
2360
- // Async and optimistically optimized update – it will not be executed if
2361
- // not necessary (debounced to run at most once-per-tick)
2362
- update: wi(function() {
2363
- return new Promise(function(h) {
2364
- y.forceUpdate(), h(f);
2365
- });
2366
- }),
2367
- destroy: function() {
2368
- E(), b = !0;
2369
- }
2370
- };
2371
- if (!qr(c, u))
2372
- return y;
2373
- y.setOptions(l).then(function(h) {
2374
- !b && l.onFirstUpdate && l.onFirstUpdate(h);
2375
- });
2376
- function g() {
2377
- f.orderedModifiers.forEach(function(h) {
2378
- var _ = h.name, w = h.options, k = w === void 0 ? {} : w, T = h.effect;
2379
- if (typeof T == "function") {
2380
- var p = T({
2381
- state: f,
2382
- name: _,
2383
- instance: y,
2384
- options: k
2385
- }), S = function() {
2386
- };
2387
- d.push(p || S);
2388
- }
2389
- });
2390
- }
2391
- function E() {
2392
- d.forEach(function(h) {
2393
- return h();
2394
- }), d = [];
2395
- }
2396
- return y;
2397
- };
2398
- }
2399
- const Ri = Oi({
2400
- defaultModifiers: [ai, li, Vo, Ho, ui, oi, vi, Bo]
2401
- }), Ti = ["enabled", "placement", "strategy", "modifiers"];
2402
- function _i(e, t) {
2403
- if (e == null)
2404
- return {};
2405
- var r = {}, n = Object.keys(e), o, i;
2406
- for (i = 0; i < n.length; i++)
2407
- o = n[i], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
2408
- return r;
2409
- }
2410
- const ki = {
2411
- name: "applyStyles",
2412
- enabled: !1,
2413
- phase: "afterWrite",
2414
- fn: () => {
2415
- }
2416
- }, Si = {
2417
- name: "ariaDescribedBy",
2418
- enabled: !0,
2419
- phase: "afterWrite",
2420
- effect: ({
2421
- state: e
2422
- }) => () => {
2423
- const {
2424
- reference: t,
2425
- popper: r
2426
- } = e.elements;
2427
- if ("removeAttribute" in t) {
2428
- const n = (t.getAttribute("aria-describedby") || "").split(",").filter((o) => o.trim() !== r.id);
2429
- n.length ? t.setAttribute("aria-describedby", n.join(",")) : t.removeAttribute("aria-describedby");
2430
- }
2431
- },
2432
- fn: ({
2433
- state: e
2434
- }) => {
2435
- var t;
2436
- const {
2437
- popper: r,
2438
- reference: n
2439
- } = e.elements, o = (t = r.getAttribute("role")) == null ? void 0 : t.toLowerCase();
2440
- if (r.id && o === "tooltip" && "setAttribute" in n) {
2441
- const i = n.getAttribute("aria-describedby");
2442
- if (i && i.split(",").indexOf(r.id) !== -1)
2443
- return;
2444
- n.setAttribute("aria-describedby", i ? `${i},${r.id}` : r.id);
2445
- }
2446
- }
2447
- }, Ci = [];
2448
- function Pi(e, t, r = {}) {
2449
- let {
2450
- enabled: n = !0,
2451
- placement: o = "bottom",
2452
- strategy: i = "absolute",
2453
- modifiers: s = Ci
2454
- } = r, c = _i(r, Ti);
2455
- const u = ce(s), l = ce(), f = oe(() => {
2456
- var h;
2457
- (h = l.current) == null || h.update();
2458
- }, []), d = oe(() => {
2459
- var h;
2460
- (h = l.current) == null || h.forceUpdate();
2461
- }, []), [b, y] = xo(We({
2462
- placement: o,
2463
- update: f,
2464
- forceUpdate: d,
2465
- attributes: {},
2466
- styles: {
2467
- popper: {},
2468
- arrow: {}
2469
- }
2470
- })), g = pt(() => ({
2471
- name: "updateStateModifier",
2472
- enabled: !0,
2473
- phase: "write",
2474
- requires: ["computeStyles"],
2475
- fn: ({
2476
- state: h
2477
- }) => {
2478
- const _ = {}, w = {};
2479
- Object.keys(h.elements).forEach((k) => {
2480
- _[k] = h.styles[k], w[k] = h.attributes[k];
2481
- }), y({
2482
- state: h,
2483
- styles: _,
2484
- attributes: w,
2485
- update: f,
2486
- forceUpdate: d,
2487
- placement: h.placement
2488
- });
2489
- }
2490
- }), [f, d, y]), E = pt(() => (ft(u.current, s) || (u.current = s), u.current), [s]);
2491
- return ye(() => {
2492
- !l.current || !n || l.current.setOptions({
2493
- placement: o,
2494
- strategy: i,
2495
- modifiers: [...E, g, ki]
2496
- });
2497
- }, [i, o, g, n, E]), ye(() => {
2498
- if (!(!n || e == null || t == null))
2499
- return l.current = Ri(e, t, Object.assign({}, c, {
2500
- placement: o,
2501
- strategy: i,
2502
- modifiers: [...E, Si, g]
2503
- })), () => {
2504
- l.current != null && (l.current.destroy(), l.current = void 0, y((h) => Object.assign({}, h, {
2505
- attributes: {},
2506
- styles: {
2507
- popper: {}
2508
- }
2509
- })));
2510
- };
2511
- }, [n, e, t]), b;
2512
- }
2513
- const lr = !!(typeof window < "u" && window.document && window.document.createElement);
2514
- var Kt = !1, Jt = !1;
2515
- try {
2516
- var Bt = {
2517
- get passive() {
2518
- return Kt = !0;
2519
- },
2520
- get once() {
2521
- return Jt = Kt = !0;
2522
- }
2523
- };
2524
- lr && (window.addEventListener("test", Bt, Bt), window.removeEventListener("test", Bt, !0));
2525
- } catch {
2526
- }
2527
- function ji(e, t, r, n) {
2528
- if (n && typeof n != "boolean" && !Jt) {
2529
- var o = n.once, i = n.capture, s = r;
2530
- !Jt && o && (s = r.__once || function c(u) {
2531
- this.removeEventListener(t, c, i), r.call(this, u);
2532
- }, r.__once = s), e.addEventListener(t, s, Kt ? n : i);
2533
- }
2534
- e.addEventListener(t, r, n);
2535
- }
2536
- function Ai(e, t, r, n) {
2537
- var o = n && typeof n != "boolean" ? n.capture : n;
2538
- e.removeEventListener(t, r, o), r.__once && e.removeEventListener(t, r.__once, o);
2539
- }
2540
- function Le(e, t, r, n) {
2541
- return ji(e, t, r, n), function() {
2542
- Ai(e, t, r, n);
2543
- };
2544
- }
2545
- function Pt(e) {
2546
- return e && e.ownerDocument || document;
2547
- }
2548
- function Di(e) {
2549
- const t = ce(e);
2550
- return ye(() => {
2551
- t.current = e;
2552
- }, [e]), t;
2553
- }
2554
- function Ze(e) {
2555
- const t = Di(e);
2556
- return oe(function(...r) {
2557
- return t.current && t.current(...r);
2558
- }, [t]);
2559
- }
2560
- const Vr = () => {
2561
- };
2562
- function Mi(e) {
2563
- return e.button === 0;
2564
- }
2565
- function $i(e) {
2566
- return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
2567
- }
2568
- const _t = (e) => e && ("current" in e ? e.current : e), zr = {
2569
- click: "mousedown",
2570
- mouseup: "mousedown",
2571
- pointerup: "pointerdown"
2572
- };
2573
- function Ii(e, t = Vr, {
2574
- disabled: r,
2575
- clickTrigger: n = "click"
2576
- } = {}) {
2577
- const o = ce(!1), i = ce(!1), s = oe((l) => {
2578
- const f = _t(e);
2579
- on(!!f, "ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"), o.current = !f || $i(l) || !Mi(l) || !!qt(f, l.target) || i.current, i.current = !1;
2580
- }, [e]), c = Ze((l) => {
2581
- const f = _t(e);
2582
- f && qt(f, l.target) && (i.current = !0);
2583
- }), u = Ze((l) => {
2584
- o.current || t(l);
2585
- });
2586
- ye(() => {
2587
- var l, f;
2588
- if (r || e == null)
2589
- return;
2590
- const d = Pt(_t(e)), b = d.defaultView || window;
2591
- let y = (l = b.event) != null ? l : (f = b.parent) == null ? void 0 : f.event, g = null;
2592
- zr[n] && (g = Le(d, zr[n], c, !0));
2593
- const E = Le(d, n, s, !0), h = Le(d, n, (w) => {
2594
- if (w === y) {
2595
- y = void 0;
2596
- return;
2597
- }
2598
- u(w);
2599
- });
2600
- let _ = [];
2601
- return "ontouchstart" in d.documentElement && (_ = [].slice.call(d.body.children).map((w) => Le(w, "mousemove", Vr))), () => {
2602
- g == null || g(), E(), h(), _.forEach((w) => w());
2603
- };
2604
- }, [e, r, n, s, c, u]);
2605
- }
2606
- function Li(e) {
2607
- return e.code === "Escape" || e.keyCode === 27;
2608
- }
2609
- const Ni = () => {
2610
- };
2611
- function Fi(e, t, {
2612
- disabled: r,
2613
- clickTrigger: n
2614
- } = {}) {
2615
- const o = t || Ni;
2616
- Ii(e, o, {
2617
- disabled: r,
2618
- clickTrigger: n
2619
- });
2620
- const i = Ze((s) => {
2621
- Li(s) && o(s);
2622
- });
2623
- ye(() => {
2624
- if (r || e == null)
2625
- return;
2626
- const s = Pt(_t(e));
2627
- let c = (s.defaultView || window).event;
2628
- const u = Le(s, "keyup", (l) => {
2629
- if (l === c) {
2630
- c = void 0;
2631
- return;
2632
- }
2633
- i(l);
2634
- });
2635
- return () => {
2636
- u();
2637
- };
2638
- }, [e, r, i]);
2639
- }
2640
- const hn = /* @__PURE__ */ Vn(lr ? window : void 0);
2641
- hn.Provider;
2642
- function Wi() {
2643
- return er(hn);
2644
- }
2645
- const Ut = (e, t) => lr ? e == null ? (t || Pt()).body : (typeof e == "function" && (e = e()), e && "current" in e && (e = e.current), e && ("nodeType" in e || e.getBoundingClientRect) ? e : null) : null;
2646
- function Hr(e, t) {
2647
- const r = Wi(), [n, o] = We(() => Ut(e, r == null ? void 0 : r.document));
2648
- if (!n) {
2649
- const i = Ut(e);
2650
- i && o(i);
2651
- }
2652
- return ye(() => {
2653
- t && n && t(n);
2654
- }, [t, n]), ye(() => {
2655
- const i = Ut(e);
2656
- i !== n && o(i);
2657
- }, [e, n]), n;
2658
- }
2659
- function Bi(e) {
2660
- const t = {};
2661
- return Array.isArray(e) ? (e == null || e.forEach((r) => {
2662
- t[r.name] = r;
2663
- }), t) : e || t;
2664
- }
2665
- function Ui(e = {}) {
2666
- return Array.isArray(e) ? e : Object.keys(e).map((t) => (e[t].name = t, e[t]));
2667
- }
2668
- function Yi({
2669
- enabled: e,
2670
- enableEvents: t,
2671
- placement: r,
2672
- flip: n,
2673
- offset: o,
2674
- fixed: i,
2675
- containerPadding: s,
2676
- arrowElement: c,
2677
- popperConfig: u = {}
2678
- }) {
2679
- var l, f, d, b, y;
2680
- const g = Bi(u.modifiers);
2681
- return Object.assign({}, u, {
2682
- placement: r,
2683
- enabled: e,
2684
- strategy: i ? "fixed" : u.strategy,
2685
- modifiers: Ui(Object.assign({}, g, {
2686
- eventListeners: {
2687
- enabled: t,
2688
- options: (l = g.eventListeners) == null ? void 0 : l.options
2689
- },
2690
- preventOverflow: Object.assign({}, g.preventOverflow, {
2691
- options: s ? Object.assign({
2692
- padding: s
2693
- }, (f = g.preventOverflow) == null ? void 0 : f.options) : (d = g.preventOverflow) == null ? void 0 : d.options
2694
- }),
2695
- offset: {
2696
- options: Object.assign({
2697
- offset: o
2698
- }, (b = g.offset) == null ? void 0 : b.options)
2699
- },
2700
- arrow: Object.assign({}, g.arrow, {
2701
- enabled: !!c,
2702
- options: Object.assign({}, (y = g.arrow) == null ? void 0 : y.options, {
2703
- element: c
2704
- })
2705
- }),
2706
- flip: Object.assign({
2707
- enabled: !!n
2708
- }, g.flip)
2709
- }))
2710
- });
2711
- }
2712
- const qi = typeof global < "u" && // @ts-ignore
2713
- global.navigator && // @ts-ignore
2714
- global.navigator.product === "ReactNative", Vi = typeof document < "u", Zt = Vi || qi ? zn : ye;
2715
- function zi({
2716
- children: e,
2717
- in: t,
2718
- onExited: r,
2719
- mountOnEnter: n,
2720
- unmountOnExit: o
2721
- }) {
2722
- const i = ce(null), s = ce(t), c = Ze(r);
2723
- ye(() => {
2724
- t ? s.current = !0 : c(i.current);
2725
- }, [t, c]);
2726
- const u = et(i, e.ref), l = /* @__PURE__ */ tr(e, {
2727
- ref: u
2728
- });
2729
- return t ? l : o || !s.current && n ? null : l;
2730
- }
2731
- function Hi({
2732
- in: e,
2733
- onTransition: t
2734
- }) {
2735
- const r = ce(null), n = ce(!0), o = Ze(t);
2736
- return Zt(() => {
2737
- if (!r.current)
2738
- return;
2739
- let i = !1;
2740
- return o({
2741
- in: e,
2742
- element: r.current,
2743
- initial: n.current,
2744
- isStale: () => i
2745
- }), () => {
2746
- i = !0;
2747
- };
2748
- }, [e, o]), Zt(() => (n.current = !1, () => {
2749
- n.current = !0;
2750
- }), []), r;
2751
- }
2752
- function Gi({
2753
- children: e,
2754
- in: t,
2755
- onExited: r,
2756
- onEntered: n,
2757
- transition: o
2758
- }) {
2759
- const [i, s] = We(!t);
2760
- t && i && s(!1);
2761
- const c = Hi({
2762
- in: !!t,
2763
- onTransition: (l) => {
2764
- const f = () => {
2765
- l.isStale() || (l.in ? n == null || n(l.element, l.initial) : (s(!0), r == null || r(l.element)));
2766
- };
2767
- Promise.resolve(o(l)).then(f, (d) => {
2768
- throw l.in || s(!0), d;
2769
- });
2770
- }
2771
- }), u = et(c, e.ref);
2772
- return i && !t ? null : /* @__PURE__ */ tr(e, {
2773
- ref: u
2774
- });
2775
- }
2776
- function Xi(e, t, r) {
2777
- return e ? /* @__PURE__ */ Z.jsx(e, Object.assign({}, r)) : t ? /* @__PURE__ */ Z.jsx(Gi, Object.assign({}, r, {
2778
- transition: t
2779
- })) : /* @__PURE__ */ Z.jsx(zi, Object.assign({}, r));
2780
- }
2781
- const yn = /* @__PURE__ */ Ee.forwardRef((e, t) => {
2782
- const {
2783
- flip: r,
2784
- offset: n,
2785
- placement: o,
2786
- containerPadding: i,
2787
- popperConfig: s = {},
2788
- transition: c,
2789
- runTransition: u
2790
- } = e, [l, f] = Dr(), [d, b] = Dr(), y = et(f, t), g = Hr(e.container), E = Hr(e.target), [h, _] = We(!e.show), w = Pi(E, l, Yi({
2791
- placement: o,
2792
- enableEvents: !!e.show,
2793
- containerPadding: i || 5,
2794
- flip: r,
2795
- offset: n,
2796
- arrowElement: d,
2797
- popperConfig: s
2798
- }));
2799
- e.show && h && _(!1);
2800
- const k = (...Q) => {
2801
- _(!0), e.onExited && e.onExited(...Q);
2802
- }, T = e.show || !h;
2803
- if (Fi(l, e.onHide, {
2804
- disabled: !e.rootClose || e.rootCloseDisabled,
2805
- clickTrigger: e.rootCloseEvent
2806
- }), !T)
2807
- return null;
2808
- const {
2809
- onExit: p,
2810
- onExiting: S,
2811
- onEnter: I,
2812
- onEntering: z,
2813
- onEntered: K
2814
- } = e;
2815
- let q = e.children(Object.assign({}, w.attributes.popper, {
2816
- style: w.styles.popper,
2817
- ref: y
2818
- }), {
2819
- popper: w,
2820
- placement: o,
2821
- show: !!e.show,
2822
- arrowProps: Object.assign({}, w.attributes.arrow, {
2823
- style: w.styles.arrow,
2824
- ref: b
2825
- })
2826
- });
2827
- return q = Xi(c, u, {
2828
- in: !!e.show,
2829
- appear: !0,
2830
- mountOnEnter: !0,
2831
- unmountOnExit: !0,
2832
- children: q,
2833
- onExit: p,
2834
- onExiting: S,
2835
- onExited: k,
2836
- onEnter: I,
2837
- onEntering: z,
2838
- onEntered: K
2839
- }), g ? /* @__PURE__ */ He.createPortal(q, g) : null;
2840
- });
2841
- yn.displayName = "Overlay";
2842
- const Ki = yn;
2843
- function Gr(e, t) {
2844
- return e.classList ? !!t && e.classList.contains(t) : (" " + (e.className.baseVal || e.className) + " ").indexOf(" " + t + " ") !== -1;
2845
- }
2846
- const Ji = ["xxl", "xl", "lg", "md", "sm", "xs"], Zi = "xs", gn = /* @__PURE__ */ Ee.createContext({
2847
- prefixes: {},
2848
- breakpoints: Ji,
2849
- minBreakpoint: Zi
2850
- });
2851
- function Qe(e, t) {
2852
- const {
2853
- prefixes: r
2854
- } = er(gn);
2855
- return e || r[t] || t;
2856
- }
2857
- function bn() {
2858
- const {
2859
- dir: e
2860
- } = er(gn);
2861
- return e === "rtl";
2862
- }
2863
- const En = /* @__PURE__ */ Ee.forwardRef(({
2864
- className: e,
2865
- bsPrefix: t,
2866
- as: r = "div",
2867
- ...n
2868
- }, o) => (t = Qe(t, "popover-header"), /* @__PURE__ */ Z.jsx(r, {
2869
- ref: o,
2870
- className: tt(e, t),
2871
- ...n
2872
- })));
2873
- En.displayName = "PopoverHeader";
2874
- const Qi = En, wn = /* @__PURE__ */ Ee.forwardRef(({
2875
- className: e,
2876
- bsPrefix: t,
2877
- as: r = "div",
2878
- ...n
2879
- }, o) => (t = Qe(t, "popover-body"), /* @__PURE__ */ Z.jsx(r, {
2880
- ref: o,
2881
- className: tt(e, t),
2882
- ...n
2883
- })));
2884
- wn.displayName = "PopoverBody";
2885
- const xn = wn;
2886
- function On(e, t) {
2887
- let r = e;
2888
- return e === "left" ? r = t ? "end" : "start" : e === "right" && (r = t ? "start" : "end"), r;
2889
- }
2890
- function Rn(e = "absolute") {
2891
- return {
2892
- position: e,
2893
- top: "0",
2894
- left: "0",
2895
- opacity: "0",
2896
- pointerEvents: "none"
2897
- };
2898
- }
2899
- const ea = /* @__PURE__ */ Ee.forwardRef(({
2900
- bsPrefix: e,
2901
- placement: t = "right",
2902
- className: r,
2903
- style: n,
2904
- children: o,
2905
- body: i,
2906
- arrowProps: s,
2907
- hasDoneInitialMeasure: c,
2908
- popper: u,
2909
- show: l,
2910
- ...f
2911
- }, d) => {
2912
- const b = Qe(e, "popover"), y = bn(), [g] = (t == null ? void 0 : t.split("-")) || [], E = On(g, y);
2913
- let h = n;
2914
- return l && !c && (h = {
2915
- ...n,
2916
- ...Rn(u == null ? void 0 : u.strategy)
2917
- }), /* @__PURE__ */ Z.jsxs("div", {
2918
- ref: d,
2919
- role: "tooltip",
2920
- style: h,
2921
- "x-placement": g,
2922
- className: tt(r, b, g && `bs-popover-${E}`),
2923
- ...f,
2924
- children: [/* @__PURE__ */ Z.jsx("div", {
2925
- className: "popover-arrow",
2926
- ...s
2927
- }), i ? /* @__PURE__ */ Z.jsx(xn, {
2928
- children: o
2929
- }) : o]
2930
- });
2931
- }), ta = Object.assign(ea, {
2932
- Header: Qi,
2933
- Body: xn,
2934
- // Default popover offset.
2935
- // https://github.com/twbs/bootstrap/blob/5c32767e0e0dbac2d934bcdee03719a65d3f1187/js/src/popover.js#L28
2936
- POPPER_OFFSET: [0, 8]
2937
- }), Tn = /* @__PURE__ */ Ee.forwardRef(({
2938
- bsPrefix: e,
2939
- placement: t = "right",
2940
- className: r,
2941
- style: n,
2942
- children: o,
2943
- arrowProps: i,
2944
- hasDoneInitialMeasure: s,
2945
- popper: c,
2946
- show: u,
2947
- ...l
2948
- }, f) => {
2949
- e = Qe(e, "tooltip");
2950
- const d = bn(), [b] = (t == null ? void 0 : t.split("-")) || [], y = On(b, d);
2951
- let g = n;
2952
- return u && !s && (g = {
2953
- ...n,
2954
- ...Rn(c == null ? void 0 : c.strategy)
2955
- }), /* @__PURE__ */ Z.jsxs("div", {
2956
- ref: f,
2957
- style: g,
2958
- role: "tooltip",
2959
- "x-placement": b,
2960
- className: tt(r, e, `bs-tooltip-${y}`),
2961
- ...l,
2962
- children: [/* @__PURE__ */ Z.jsx("div", {
2963
- className: "tooltip-arrow",
2964
- ...i
2965
- }), /* @__PURE__ */ Z.jsx("div", {
2966
- className: `${e}-inner`,
2967
- children: o
2968
- })]
2969
- });
2970
- });
2971
- Tn.displayName = "Tooltip";
2972
- const ra = Object.assign(Tn, {
2973
- // Default tooltip offset.
2974
- // https://github.com/twbs/bootstrap/blob/beca2a6c7f6bc88b6449339fc76edcda832c59e5/js/src/tooltip.js#L65
2975
- TOOLTIP_OFFSET: [0, 6]
2976
- });
2977
- function na(e) {
2978
- const t = ce(null), r = Qe(void 0, "popover"), n = Qe(void 0, "tooltip"), o = pt(() => ({
2979
- name: "offset",
2980
- options: {
2981
- offset: () => {
2982
- if (e)
2983
- return e;
2984
- if (t.current) {
2985
- if (Gr(t.current, r))
2986
- return ta.POPPER_OFFSET;
2987
- if (Gr(t.current, n))
2988
- return ra.TOOLTIP_OFFSET;
2989
- }
2990
- return [0, 0];
2991
- }
2992
- }
2993
- }), [e, r, n]);
2994
- return [t, [o]];
2995
- }
2996
- const Xr = {
2997
- disabled: !1
2998
- };
2999
- var oa = process.env.NODE_ENV !== "production" ? F.oneOfType([F.number, F.shape({
3000
- enter: F.number,
3001
- exit: F.number,
3002
- appear: F.number
3003
- }).isRequired]) : null;
3004
- process.env.NODE_ENV !== "production" && F.oneOfType([F.string, F.shape({
3005
- enter: F.string,
3006
- exit: F.string,
3007
- active: F.string
3008
- }), F.shape({
3009
- enter: F.string,
3010
- enterDone: F.string,
3011
- enterActive: F.string,
3012
- exit: F.string,
3013
- exitDone: F.string,
3014
- exitActive: F.string
3015
- })]);
3016
- const _n = _e.createContext(null);
3017
- var ia = function(t) {
3018
- return t.scrollTop;
3019
- }, ut = "unmounted", $e = "exited", je = "entering", Ie = "entered", Qt = "exiting", Se = /* @__PURE__ */ function(e) {
3020
- bo(t, e);
3021
- function t(n, o) {
3022
- var i;
3023
- i = e.call(this, n, o) || this;
3024
- var s = o, c = s && !s.isMounting ? n.enter : n.appear, u;
3025
- return i.appearStatus = null, n.in ? c ? (u = $e, i.appearStatus = je) : u = Ie : n.unmountOnExit || n.mountOnEnter ? u = ut : u = $e, i.state = {
3026
- status: u
3027
- }, i.nextCallback = null, i;
3028
- }
3029
- t.getDerivedStateFromProps = function(o, i) {
3030
- var s = o.in;
3031
- return s && i.status === ut ? {
3032
- status: $e
3033
- } : null;
3034
- };
3035
- var r = t.prototype;
3036
- return r.componentDidMount = function() {
3037
- this.updateStatus(!0, this.appearStatus);
3038
- }, r.componentDidUpdate = function(o) {
3039
- var i = null;
3040
- if (o !== this.props) {
3041
- var s = this.state.status;
3042
- this.props.in ? s !== je && s !== Ie && (i = je) : (s === je || s === Ie) && (i = Qt);
3043
- }
3044
- this.updateStatus(!1, i);
3045
- }, r.componentWillUnmount = function() {
3046
- this.cancelNextCallback();
3047
- }, r.getTimeouts = function() {
3048
- var o = this.props.timeout, i, s, c;
3049
- return i = s = c = o, o != null && typeof o != "number" && (i = o.exit, s = o.enter, c = o.appear !== void 0 ? o.appear : s), {
3050
- exit: i,
3051
- enter: s,
3052
- appear: c
3053
- };
3054
- }, r.updateStatus = function(o, i) {
3055
- if (o === void 0 && (o = !1), i !== null)
3056
- if (this.cancelNextCallback(), i === je) {
3057
- if (this.props.unmountOnExit || this.props.mountOnEnter) {
3058
- var s = this.props.nodeRef ? this.props.nodeRef.current : He.findDOMNode(this);
3059
- s && ia(s);
3060
- }
3061
- this.performEnter(o);
3062
- } else
3063
- this.performExit();
3064
- else
3065
- this.props.unmountOnExit && this.state.status === $e && this.setState({
3066
- status: ut
3067
- });
3068
- }, r.performEnter = function(o) {
3069
- var i = this, s = this.props.enter, c = this.context ? this.context.isMounting : o, u = this.props.nodeRef ? [c] : [He.findDOMNode(this), c], l = u[0], f = u[1], d = this.getTimeouts(), b = c ? d.appear : d.enter;
3070
- if (!o && !s || Xr.disabled) {
3071
- this.safeSetState({
3072
- status: Ie
3073
- }, function() {
3074
- i.props.onEntered(l);
3075
- });
3076
- return;
3077
- }
3078
- this.props.onEnter(l, f), this.safeSetState({
3079
- status: je
3080
- }, function() {
3081
- i.props.onEntering(l, f), i.onTransitionEnd(b, function() {
3082
- i.safeSetState({
3083
- status: Ie
3084
- }, function() {
3085
- i.props.onEntered(l, f);
3086
- });
3087
- });
3088
- });
3089
- }, r.performExit = function() {
3090
- var o = this, i = this.props.exit, s = this.getTimeouts(), c = this.props.nodeRef ? void 0 : He.findDOMNode(this);
3091
- if (!i || Xr.disabled) {
3092
- this.safeSetState({
3093
- status: $e
3094
- }, function() {
3095
- o.props.onExited(c);
3096
- });
3097
- return;
3098
- }
3099
- this.props.onExit(c), this.safeSetState({
3100
- status: Qt
3101
- }, function() {
3102
- o.props.onExiting(c), o.onTransitionEnd(s.exit, function() {
3103
- o.safeSetState({
3104
- status: $e
3105
- }, function() {
3106
- o.props.onExited(c);
3107
- });
3108
- });
3109
- });
3110
- }, r.cancelNextCallback = function() {
3111
- this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
3112
- }, r.safeSetState = function(o, i) {
3113
- i = this.setNextCallback(i), this.setState(o, i);
3114
- }, r.setNextCallback = function(o) {
3115
- var i = this, s = !0;
3116
- return this.nextCallback = function(c) {
3117
- s && (s = !1, i.nextCallback = null, o(c));
3118
- }, this.nextCallback.cancel = function() {
3119
- s = !1;
3120
- }, this.nextCallback;
3121
- }, r.onTransitionEnd = function(o, i) {
3122
- this.setNextCallback(i);
3123
- var s = this.props.nodeRef ? this.props.nodeRef.current : He.findDOMNode(this), c = o == null && !this.props.addEndListener;
3124
- if (!s || c) {
3125
- setTimeout(this.nextCallback, 0);
3126
- return;
3127
- }
3128
- if (this.props.addEndListener) {
3129
- var u = this.props.nodeRef ? [this.nextCallback] : [s, this.nextCallback], l = u[0], f = u[1];
3130
- this.props.addEndListener(l, f);
3131
- }
3132
- o != null && setTimeout(this.nextCallback, o);
3133
- }, r.render = function() {
3134
- var o = this.state.status;
3135
- if (o === ut)
3136
- return null;
3137
- var i = this.props, s = i.children;
3138
- i.in, i.mountOnEnter, i.unmountOnExit, i.appear, i.enter, i.exit, i.timeout, i.addEndListener, i.onEnter, i.onEntering, i.onEntered, i.onExit, i.onExiting, i.onExited, i.nodeRef;
3139
- var c = yo(i, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
3140
- return (
3141
- // allows for nested Transitions
3142
- /* @__PURE__ */ _e.createElement(_n.Provider, {
3143
- value: null
3144
- }, typeof s == "function" ? s(o, c) : _e.cloneElement(_e.Children.only(s), c))
3145
- );
3146
- }, t;
3147
- }(_e.Component);
3148
- Se.contextType = _n;
3149
- Se.propTypes = process.env.NODE_ENV !== "production" ? {
3150
- /**
3151
- * A React reference to DOM element that need to transition:
3152
- * https://stackoverflow.com/a/51127130/4671932
3153
- *
3154
- * - When `nodeRef` prop is used, `node` is not passed to callback functions
3155
- * (e.g. `onEnter`) because user already has direct access to the node.
3156
- * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
3157
- * `nodeRef` need to be provided to `Transition` with changed `key` prop
3158
- * (see
3159
- * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
3160
- */
3161
- nodeRef: F.shape({
3162
- current: typeof Element > "u" ? F.any : function(e, t, r, n, o, i) {
3163
- var s = e[t];
3164
- return F.instanceOf(s && "ownerDocument" in s ? s.ownerDocument.defaultView.Element : Element)(e, t, r, n, o, i);
3165
- }
3166
- }),
3167
- /**
3168
- * A `function` child can be used instead of a React element. This function is
3169
- * called with the current transition status (`'entering'`, `'entered'`,
3170
- * `'exiting'`, `'exited'`), which can be used to apply context
3171
- * specific props to a component.
3172
- *
3173
- * ```jsx
3174
- * <Transition in={this.state.in} timeout={150}>
3175
- * {state => (
3176
- * <MyComponent className={`fade fade-${state}`} />
3177
- * )}
3178
- * </Transition>
3179
- * ```
3180
- */
3181
- children: F.oneOfType([F.func.isRequired, F.element.isRequired]).isRequired,
3182
- /**
3183
- * Show the component; triggers the enter or exit states
3184
- */
3185
- in: F.bool,
3186
- /**
3187
- * By default the child component is mounted immediately along with
3188
- * the parent `Transition` component. If you want to "lazy mount" the component on the
3189
- * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
3190
- * mounted, even on "exited", unless you also specify `unmountOnExit`.
3191
- */
3192
- mountOnEnter: F.bool,
3193
- /**
3194
- * By default the child component stays mounted after it reaches the `'exited'` state.
3195
- * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
3196
- */
3197
- unmountOnExit: F.bool,
3198
- /**
3199
- * By default the child component does not perform the enter transition when
3200
- * it first mounts, regardless of the value of `in`. If you want this
3201
- * behavior, set both `appear` and `in` to `true`.
3202
- *
3203
- * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
3204
- * > only adds an additional enter transition. However, in the
3205
- * > `<CSSTransition>` component that first enter transition does result in
3206
- * > additional `.appear-*` classes, that way you can choose to style it
3207
- * > differently.
3208
- */
3209
- appear: F.bool,
3210
- /**
3211
- * Enable or disable enter transitions.
3212
- */
3213
- enter: F.bool,
3214
- /**
3215
- * Enable or disable exit transitions.
3216
- */
3217
- exit: F.bool,
3218
- /**
3219
- * The duration of the transition, in milliseconds.
3220
- * Required unless `addEndListener` is provided.
3221
- *
3222
- * You may specify a single timeout for all transitions:
3223
- *
3224
- * ```jsx
3225
- * timeout={500}
3226
- * ```
3227
- *
3228
- * or individually:
3229
- *
3230
- * ```jsx
3231
- * timeout={{
3232
- * appear: 500,
3233
- * enter: 300,
3234
- * exit: 500,
3235
- * }}
3236
- * ```
3237
- *
3238
- * - `appear` defaults to the value of `enter`
3239
- * - `enter` defaults to `0`
3240
- * - `exit` defaults to `0`
3241
- *
3242
- * @type {number | { enter?: number, exit?: number, appear?: number }}
3243
- */
3244
- timeout: function(t) {
3245
- var r = oa;
3246
- t.addEndListener || (r = r.isRequired);
3247
- for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
3248
- o[i - 1] = arguments[i];
3249
- return r.apply(void 0, [t].concat(o));
3250
- },
3251
- /**
3252
- * Add a custom transition end trigger. Called with the transitioning
3253
- * DOM node and a `done` callback. Allows for more fine grained transition end
3254
- * logic. Timeouts are still used as a fallback if provided.
3255
- *
3256
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3257
- *
3258
- * ```jsx
3259
- * addEndListener={(node, done) => {
3260
- * // use the css transitionend event to mark the finish of a transition
3261
- * node.addEventListener('transitionend', done, false);
3262
- * }}
3263
- * ```
3264
- */
3265
- addEndListener: F.func,
3266
- /**
3267
- * Callback fired before the "entering" status is applied. An extra parameter
3268
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
3269
- *
3270
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3271
- *
3272
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
3273
- */
3274
- onEnter: F.func,
3275
- /**
3276
- * Callback fired after the "entering" status is applied. An extra parameter
3277
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
3278
- *
3279
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3280
- *
3281
- * @type Function(node: HtmlElement, isAppearing: bool)
3282
- */
3283
- onEntering: F.func,
3284
- /**
3285
- * Callback fired after the "entered" status is applied. An extra parameter
3286
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
3287
- *
3288
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3289
- *
3290
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
3291
- */
3292
- onEntered: F.func,
3293
- /**
3294
- * Callback fired before the "exiting" status is applied.
3295
- *
3296
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3297
- *
3298
- * @type Function(node: HtmlElement) -> void
3299
- */
3300
- onExit: F.func,
3301
- /**
3302
- * Callback fired after the "exiting" status is applied.
3303
- *
3304
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3305
- *
3306
- * @type Function(node: HtmlElement) -> void
3307
- */
3308
- onExiting: F.func,
3309
- /**
3310
- * Callback fired after the "exited" status is applied.
3311
- *
3312
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
3313
- *
3314
- * @type Function(node: HtmlElement) -> void
3315
- */
3316
- onExited: F.func
3317
- } : {};
3318
- function ze() {
3319
- }
3320
- Se.defaultProps = {
3321
- in: !1,
3322
- mountOnEnter: !1,
3323
- unmountOnExit: !1,
3324
- appear: !1,
3325
- enter: !0,
3326
- exit: !0,
3327
- onEnter: ze,
3328
- onEntering: ze,
3329
- onEntered: ze,
3330
- onExit: ze,
3331
- onExiting: ze,
3332
- onExited: ze
3333
- };
3334
- Se.UNMOUNTED = ut;
3335
- Se.EXITED = $e;
3336
- Se.ENTERING = je;
3337
- Se.ENTERED = Ie;
3338
- Se.EXITING = Qt;
3339
- const aa = Se;
3340
- function sa(e) {
3341
- var t = Pt(e);
3342
- return t && t.defaultView || window;
3343
- }
3344
- function ca(e, t) {
3345
- return sa(e).getComputedStyle(e, t);
3346
- }
3347
- var ua = /([A-Z])/g;
3348
- function fa(e) {
3349
- return e.replace(ua, "-$1").toLowerCase();
3350
- }
3351
- var la = /^ms-/;
3352
- function Rt(e) {
3353
- return fa(e).replace(la, "-ms-");
3354
- }
3355
- var da = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
3356
- function pa(e) {
3357
- return !!(e && da.test(e));
3358
- }
3359
- function kn(e, t) {
3360
- var r = "", n = "";
3361
- if (typeof t == "string")
3362
- return e.style.getPropertyValue(Rt(t)) || ca(e).getPropertyValue(Rt(t));
3363
- Object.keys(t).forEach(function(o) {
3364
- var i = t[o];
3365
- !i && i !== 0 ? e.style.removeProperty(Rt(o)) : pa(o) ? n += o + "(" + i + ") " : r += Rt(o) + ": " + i + ";";
3366
- }), n && (r += "transform: " + n + ";"), e.style.cssText += ";" + r;
3367
- }
3368
- function va(e, t, r, n) {
3369
- if (r === void 0 && (r = !1), n === void 0 && (n = !0), e) {
3370
- var o = document.createEvent("HTMLEvents");
3371
- o.initEvent(t, r, n), e.dispatchEvent(o);
3372
- }
3373
- }
3374
- function ma(e) {
3375
- var t = kn(e, "transitionDuration") || "", r = t.indexOf("ms") === -1 ? 1e3 : 1;
3376
- return parseFloat(t) * r;
3377
- }
3378
- function ha(e, t, r) {
3379
- r === void 0 && (r = 5);
3380
- var n = !1, o = setTimeout(function() {
3381
- n || va(e, "transitionend", !0);
3382
- }, t + r), i = Le(e, "transitionend", function() {
3383
- n = !0;
3384
- }, {
3385
- once: !0
3386
- });
3387
- return function() {
3388
- clearTimeout(o), i();
3389
- };
3390
- }
3391
- function ya(e, t, r, n) {
3392
- r == null && (r = ma(e) || 0);
3393
- var o = ha(e, r, n), i = Le(e, "transitionend", t);
3394
- return function() {
3395
- o(), i();
3396
- };
3397
- }
3398
- function Kr(e, t) {
3399
- const r = kn(e, t) || "", n = r.indexOf("ms") === -1 ? 1e3 : 1;
3400
- return parseFloat(r) * n;
3401
- }
3402
- function ga(e, t) {
3403
- const r = Kr(e, "transitionDuration"), n = Kr(e, "transitionDelay"), o = ya(e, (i) => {
3404
- i.target === e && (o(), t(i));
3405
- }, r + n);
3406
- }
3407
- function ba(e) {
3408
- e.offsetHeight;
3409
- }
3410
- function St(e) {
3411
- return e && "setState" in e ? He.findDOMNode(e) : e ?? null;
3412
- }
3413
- const Ea = /* @__PURE__ */ _e.forwardRef(({
3414
- onEnter: e,
3415
- onEntering: t,
3416
- onEntered: r,
3417
- onExit: n,
3418
- onExiting: o,
3419
- onExited: i,
3420
- addEndListener: s,
3421
- children: c,
3422
- childRef: u,
3423
- ...l
3424
- }, f) => {
3425
- const d = ce(null), b = et(d, u), y = (S) => {
3426
- b(St(S));
3427
- }, g = (S) => (I) => {
3428
- S && d.current && S(d.current, I);
3429
- }, E = oe(g(e), [e]), h = oe(g(t), [t]), _ = oe(g(r), [r]), w = oe(g(n), [n]), k = oe(g(o), [o]), T = oe(g(i), [i]), p = oe(g(s), [s]);
3430
- return /* @__PURE__ */ Z.jsx(aa, {
3431
- ref: f,
3432
- ...l,
3433
- onEnter: E,
3434
- onEntered: _,
3435
- onEntering: h,
3436
- onExit: w,
3437
- onExited: T,
3438
- onExiting: k,
3439
- addEndListener: p,
3440
- nodeRef: d,
3441
- children: typeof c == "function" ? (S, I) => (
3442
- // TODO: Types for RTG missing innerProps, so need to cast.
3443
- c(S, {
3444
- ...I,
3445
- ref: y
3446
- })
3447
- ) : /* @__PURE__ */ _e.cloneElement(c, {
3448
- ref: y
3449
- })
3450
- });
3451
- }), wa = Ea, xa = {
3452
- [je]: "show",
3453
- [Ie]: "show"
3454
- }, Sn = /* @__PURE__ */ Ee.forwardRef(({
3455
- className: e,
3456
- children: t,
3457
- transitionClasses: r = {},
3458
- onEnter: n,
3459
- ...o
3460
- }, i) => {
3461
- const s = {
3462
- in: !1,
3463
- timeout: 300,
3464
- mountOnEnter: !1,
3465
- unmountOnExit: !1,
3466
- appear: !1,
3467
- ...o
3468
- }, c = oe((u, l) => {
3469
- ba(u), n == null || n(u, l);
3470
- }, [n]);
3471
- return /* @__PURE__ */ Z.jsx(wa, {
3472
- ref: i,
3473
- addEndListener: ga,
3474
- ...s,
3475
- onEnter: c,
3476
- childRef: t.ref,
3477
- children: (u, l) => /* @__PURE__ */ Ee.cloneElement(t, {
3478
- ...l,
3479
- className: tt("fade", e, t.props.className, xa[u], r[u])
3480
- })
3481
- });
3482
- });
3483
- Sn.displayName = "Fade";
3484
- const Jr = Sn;
3485
- function Oa(e, t) {
3486
- const {
3487
- ref: r
3488
- } = e, {
3489
- ref: n
3490
- } = t;
3491
- e.ref = r.__wrapped || (r.__wrapped = (o) => r(St(o))), t.ref = n.__wrapped || (n.__wrapped = (o) => n(St(o)));
3492
- }
3493
- const Cn = /* @__PURE__ */ Ee.forwardRef(({
3494
- children: e,
3495
- transition: t = Jr,
3496
- popperConfig: r = {},
3497
- rootClose: n = !1,
3498
- placement: o = "top",
3499
- show: i = !1,
3500
- ...s
3501
- }, c) => {
3502
- const u = ce({}), [l, f] = We(null), [d, b] = na(s.offset), y = et(c, d), g = t === !0 ? Jr : t || void 0, E = Ze((h) => {
3503
- f(h), r == null || r.onFirstUpdate == null || r.onFirstUpdate(h);
3504
- });
3505
- return Zt(() => {
3506
- l && s.target && (u.current.scheduleUpdate == null || u.current.scheduleUpdate());
3507
- }, [l, s.target]), ye(() => {
3508
- i || f(null);
3509
- }, [i]), /* @__PURE__ */ Z.jsx(Ki, {
3510
- ...s,
3511
- ref: y,
3512
- popperConfig: {
3513
- ...r,
3514
- modifiers: b.concat(r.modifiers || []),
3515
- onFirstUpdate: E
3516
- },
3517
- transition: g,
3518
- rootClose: n,
3519
- placement: o,
3520
- show: i,
3521
- children: (h, {
3522
- arrowProps: _,
3523
- popper: w,
3524
- show: k
3525
- }) => {
3526
- var T, p;
3527
- Oa(h, _);
3528
- const S = w == null ? void 0 : w.placement, I = Object.assign(u.current, {
3529
- state: w == null ? void 0 : w.state,
3530
- scheduleUpdate: w == null ? void 0 : w.update,
3531
- placement: S,
3532
- outOfBoundaries: (w == null || (T = w.state) == null || (p = T.modifiersData.hide) == null ? void 0 : p.isReferenceHidden) || !1,
3533
- strategy: r.strategy
3534
- }), z = !!l;
3535
- return typeof e == "function" ? e({
3536
- ...h,
3537
- placement: S,
3538
- show: k,
3539
- ...!t && k && {
3540
- className: "show"
3541
- },
3542
- popper: I,
3543
- arrowProps: _,
3544
- hasDoneInitialMeasure: z
3545
- }) : /* @__PURE__ */ Ee.cloneElement(e, {
3546
- ...h,
3547
- placement: S,
3548
- arrowProps: _,
3549
- popper: I,
3550
- hasDoneInitialMeasure: z,
3551
- className: tt(e.props.className, !t && k && "show"),
3552
- style: {
3553
- ...e.props.style,
3554
- ...h.style
3555
- }
3556
- });
3557
- }
3558
- });
3559
- });
3560
- Cn.displayName = "Overlay";
3561
- const Ra = Cn;
3562
- function Ta(e) {
3563
- return e && typeof e == "object" ? e : {
3564
- show: e,
3565
- hide: e
3566
- };
3567
- }
3568
- function Zr(e, t, r) {
3569
- const [n] = t, o = n.currentTarget, i = n.relatedTarget || n.nativeEvent[r];
3570
- (!i || i !== o) && !qt(o, i) && e(...t);
3571
- }
3572
- F.oneOf(["click", "hover", "focus"]);
3573
- const _a = ({
3574
- trigger: e = ["hover", "focus"],
3575
- overlay: t,
3576
- children: r,
3577
- popperConfig: n = {},
3578
- show: o,
3579
- defaultShow: i = !1,
3580
- onToggle: s,
3581
- delay: c,
3582
- placement: u,
3583
- flip: l = u && u.indexOf("auto") !== -1,
3584
- ...f
3585
- }) => {
3586
- const d = ce(null), b = et(d, r.ref), y = po(), g = ce(""), [E, h] = go(o, i, s), _ = Ta(c), {
3587
- onFocus: w,
3588
- onBlur: k,
3589
- onClick: T
3590
- } = typeof r != "function" ? Ee.Children.only(r).props : {}, p = (J) => {
3591
- b(St(J));
3592
- }, S = oe(() => {
3593
- if (y.clear(), g.current = "show", !_.show) {
3594
- h(!0);
3595
- return;
3596
- }
3597
- y.set(() => {
3598
- g.current === "show" && h(!0);
3599
- }, _.show);
3600
- }, [_.show, h, y]), I = oe(() => {
3601
- if (y.clear(), g.current = "hide", !_.hide) {
3602
- h(!1);
3603
- return;
3604
- }
3605
- y.set(() => {
3606
- g.current === "hide" && h(!1);
3607
- }, _.hide);
3608
- }, [_.hide, h, y]), z = oe((...J) => {
3609
- S(), w == null || w(...J);
3610
- }, [S, w]), K = oe((...J) => {
3611
- I(), k == null || k(...J);
3612
- }, [I, k]), q = oe((...J) => {
3613
- h(!E), T == null || T(...J);
3614
- }, [T, h, E]), Q = oe((...J) => {
3615
- Zr(S, J, "fromElement");
3616
- }, [S]), ie = oe((...J) => {
3617
- Zr(I, J, "toElement");
3618
- }, [I]), U = e == null ? [] : [].concat(e), H = {
3619
- ref: p
3620
- };
3621
- return U.indexOf("click") !== -1 && (H.onClick = q), U.indexOf("focus") !== -1 && (H.onFocus = z, H.onBlur = K), U.indexOf("hover") !== -1 && (process.env.NODE_ENV !== "production" && on(U.length > 1, '[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'), H.onMouseOver = Q, H.onMouseOut = ie), /* @__PURE__ */ Z.jsxs(Z.Fragment, {
3622
- children: [typeof r == "function" ? r(H) : /* @__PURE__ */ tr(r, H), /* @__PURE__ */ Z.jsx(Ra, {
3623
- ...f,
3624
- show: E,
3625
- onHide: I,
3626
- flip: l,
3627
- placement: u,
3628
- popperConfig: n,
3629
- target: d.current,
3630
- children: t
3631
- })]
3632
- });
3633
- }, ka = _a, Sa = "_help_button_1s4g5_1", Ca = {
3634
- help_button: Sa
3635
- };
3636
- function Ia(e) {
3637
- return /* @__PURE__ */ Z.jsx(
3638
- ka,
3639
- {
3640
- trigger: "click",
3641
- rootClose: !0,
3642
- placement: e.placement,
3643
- overlay: e.popover,
3644
- children: /* @__PURE__ */ Z.jsx("div", { className: Ca.help_button, children: "?" })
3645
- }
3646
- );
3647
- }
3648
- const Pa = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20width='36.012337'%20height='31.802971'%20viewBox='0%200%2036.012336%2031.802972'%20id='svg9098'%20version='1.1'%20inkscape:version='0.91%20r13725'%20sodipodi:docname='mclogo-split-rotate-v9.svg'%3e%3cdefs%20id='defs9100'%20/%3e%3csodipodi:namedview%20id='base'%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1.0'%20inkscape:pageopacity='0.0'%20inkscape:pageshadow='2'%20inkscape:zoom='11.2'%20inkscape:cx='14.890099'%20inkscape:cy='23.051314'%20inkscape:document-units='px'%20inkscape:current-layer='g9'%20showgrid='false'%20units='px'%20inkscape:window-width='1680'%20inkscape:window-height='940'%20inkscape:window-x='0'%20inkscape:window-y='1'%20inkscape:window-maximized='1'%20fit-margin-top='3'%20fit-margin-left='3'%20fit-margin-right='3'%20fit-margin-bottom='5'%20/%3e%3cmetadata%20id='metadata9103'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cg%20inkscape:label='Layer%201'%20inkscape:groupmode='layer'%20id='layer1'%20transform='translate(3.0066849,-1015.2422)'%3e%3cg%20id='mctriangle'%20transform='matrix(1.1533275,0,0,1.1556928,-379.094,391.20844)'%3e%3cg%20transform='translate(2975.41,266.50511)'%20style='display:inline;stroke:%23d21f15;stroke-width:0.86616874;stroke-opacity:1'%20id='layer6'%20/%3e%3cg%20id='g9'%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.22655%20C%20334.49344,546.23874%20337.72144,543.00587%20341.70205,543.00587%20345.68227,543.00587%20348.90912,546.23874%20348.90912,550.22655'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88989985;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9220'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.41953%20C%20331.53412,550.41953%20329.1333,552.88285%20329.1333,555.92274%20329.1333,558.96264%20331.53412,561.42596%20334.49344,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9224'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20348.90912,550.41953%20C%20351.86844,550.41953%20354.26926,552.88285%20354.26926,555.92274%20354.26926,558.96264%20351.86844,561.42596%20348.90912,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9228'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.45731,561.42596%20348.92565,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9232'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.22655%20C%20334.49344,546.23874%20337.72144,543.00587%20341.70205,543.00587%20345.68227,543.00587%20348.90912,546.23874%20348.90912,550.22655'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88989985;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9236'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.41953%20C%20331.53412,550.41953%20329.1333,552.88285%20329.1333,555.92274%20329.1333,558.96264%20331.53412,561.42596%20334.49344,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9240'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20348.90912,550.41953%20C%20351.86844,550.41953%20354.26926,552.88285%20354.26926,555.92274%20354.26926,558.96264%20351.86844,561.42596%20348.90912,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9244'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.45731,561.42596%20348.92565,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9248'%20/%3e%3cellipse%20ry='0.25958455'%20rx='0.26011693'%20cy='553.91522'%20cx='341.70126'%20id='ref'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.4000001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20/%3e%3cpath%20id='mctriangleonly'%20d='M%20335.13723,550.18801%20338.41923,555.66439%20341.70129,561.14077%20344.98332,555.66439%20348.26535,550.18801%20341.70129,550.18801%20Z'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.91575587;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20inkscape:connector-curvature='0'%20/%3e%3ccircle%20cy='550.02032'%20cx='348.39252'%20id='circle7840-5'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20r='1.4070433'%20/%3e%3ccircle%20cy='550.02032'%20cx='335.01007'%20id='circle7842-0'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20r='1.4070433'%20/%3e%3ccircle%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20id='circle7844-5'%20cx='341.70132'%20cy='561.30841'%20r='1.4070433'%20/%3e%3ccircle%20r='1.4070433'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;filter-blend-mode:normal;filter-gaussianBlur-deviation:0'%20id='movingcircle'%20cx='335.01007'%20cy='550.02032'%3e%3canimateTransform%20id='anim1'%20repeatCount='indefinite'%20begin='0s'%20dur='1s'%20values='0.0%200.0;13.38245%200.0;6.69125%2011.28809;0.0%200.0'%20type='translate'%20attributeName='transform'%20/%3e%3c/circle%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
3649
- function La() {
3650
- return /* @__PURE__ */ Z.jsx(
3651
- "div",
3652
- {
3653
- style: {
3654
- background: "transparent",
3655
- border: "none",
3656
- textAlign: "center"
3657
- },
3658
- children: /* @__PURE__ */ Z.jsx(
3659
- "img",
3660
- {
3661
- src: Pa,
3662
- alt: "Materials Cloud spinner",
3663
- style: {
3664
- width: "100%",
3665
- minWidth: "20px",
3666
- maxWidth: "200px",
3667
- height: "auto"
3668
- }
3669
- }
3670
- )
3671
- }
3672
- );
3673
- }
3674
- function Na(e) {
3675
- return e.split(/(\d+)/).map((r, n) => r.match(/\d+/) ? /* @__PURE__ */ Z.jsx("sub", { children: r }, n) : r);
3676
- }
3677
- function Fa(e) {
3678
- let t = !1;
3679
- return /* @__PURE__ */ Z.jsx("span", { children: e.split("").map((r, n) => r == "_" ? (t = !0, null) : t ? (t = !1, /* @__PURE__ */ Z.jsx("sub", { children: r }, n)) : r) });
3680
- }
3681
- export {
3682
- $a as DoiBadge,
3683
- Ia as HelpButton,
3684
- La as McloudSpinner,
3685
- Ma as TestButton,
3686
- Na as formatChemicalFormula,
3687
- Fa as formatSpaceGroupSymbol
3688
- };