react-spring-carousel 3.0.0-beta078 → 3.0.0-beta080

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.
@@ -0,0 +1,723 @@
1
+ import Oe, { useRef as ir } from "react";
2
+ import { useSpring as ur } from "@react-spring/web";
3
+ var q = {}, lr = {
4
+ get exports() {
5
+ return q;
6
+ },
7
+ set exports(c) {
8
+ q = c;
9
+ }
10
+ }, W = {};
11
+ /**
12
+ * @license React
13
+ * react-jsx-runtime.production.min.js
14
+ *
15
+ * Copyright (c) Facebook, Inc. and its affiliates.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */
20
+ var we;
21
+ function sr() {
22
+ if (we)
23
+ return W;
24
+ we = 1;
25
+ var c = Oe, m = Symbol.for("react.element"), j = Symbol.for("react.fragment"), y = Object.prototype.hasOwnProperty, k = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
26
+ function x(T, f, O) {
27
+ var p, _ = {}, d = null, b = null;
28
+ O !== void 0 && (d = "" + O), f.key !== void 0 && (d = "" + f.key), f.ref !== void 0 && (b = f.ref);
29
+ for (p in f)
30
+ y.call(f, p) && !g.hasOwnProperty(p) && (_[p] = f[p]);
31
+ if (T && T.defaultProps)
32
+ for (p in f = T.defaultProps, f)
33
+ _[p] === void 0 && (_[p] = f[p]);
34
+ return { $$typeof: m, type: T, key: d, ref: b, props: _, _owner: k.current };
35
+ }
36
+ return W.Fragment = j, W.jsx = x, W.jsxs = x, W;
37
+ }
38
+ var $ = {};
39
+ /**
40
+ * @license React
41
+ * react-jsx-runtime.development.js
42
+ *
43
+ * Copyright (c) Facebook, Inc. and its affiliates.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE file in the root directory of this source tree.
47
+ */
48
+ var Ce;
49
+ function fr() {
50
+ return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
51
+ var c = Oe, m = Symbol.for("react.element"), j = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), T = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), E = Symbol.iterator, Y = "@@iterator";
52
+ function N(e) {
53
+ if (e === null || typeof e != "object")
54
+ return null;
55
+ var r = E && e[E] || e[Y];
56
+ return typeof r == "function" ? r : null;
57
+ }
58
+ var P = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
59
+ function v(e) {
60
+ {
61
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
62
+ t[n - 1] = arguments[n];
63
+ Pe("error", e, t);
64
+ }
65
+ }
66
+ function Pe(e, r, t) {
67
+ {
68
+ var n = P.ReactDebugCurrentFrame, i = n.getStackAddendum();
69
+ i !== "" && (r += "%s", t = t.concat([i]));
70
+ var u = t.map(function(o) {
71
+ return String(o);
72
+ });
73
+ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
74
+ }
75
+ }
76
+ var xe = !1, Se = !1, je = !1, ke = !1, De = !1, ee;
77
+ ee = Symbol.for("react.module.reference");
78
+ function Fe(e) {
79
+ return !!(typeof e == "string" || typeof e == "function" || e === y || e === g || De || e === k || e === O || e === p || ke || e === b || xe || Se || je || typeof e == "object" && e !== null && (e.$$typeof === d || e.$$typeof === _ || e.$$typeof === x || e.$$typeof === T || e.$$typeof === f || // This needs to include all possible module reference object
80
+ // types supported by any Flight configuration anywhere since
81
+ // we don't know which Flight build this will end up being used
82
+ // with.
83
+ e.$$typeof === ee || e.getModuleId !== void 0));
84
+ }
85
+ function Ie(e, r, t) {
86
+ var n = e.displayName;
87
+ if (n)
88
+ return n;
89
+ var i = r.displayName || r.name || "";
90
+ return i !== "" ? t + "(" + i + ")" : t;
91
+ }
92
+ function re(e) {
93
+ return e.displayName || "Context";
94
+ }
95
+ function w(e) {
96
+ if (e == null)
97
+ return null;
98
+ if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
99
+ return e.displayName || e.name || null;
100
+ if (typeof e == "string")
101
+ return e;
102
+ switch (e) {
103
+ case y:
104
+ return "Fragment";
105
+ case j:
106
+ return "Portal";
107
+ case g:
108
+ return "Profiler";
109
+ case k:
110
+ return "StrictMode";
111
+ case O:
112
+ return "Suspense";
113
+ case p:
114
+ return "SuspenseList";
115
+ }
116
+ if (typeof e == "object")
117
+ switch (e.$$typeof) {
118
+ case T:
119
+ var r = e;
120
+ return re(r) + ".Consumer";
121
+ case x:
122
+ var t = e;
123
+ return re(t._context) + ".Provider";
124
+ case f:
125
+ return Ie(e, e.render, "ForwardRef");
126
+ case _:
127
+ var n = e.displayName || null;
128
+ return n !== null ? n : w(e.type) || "Memo";
129
+ case d: {
130
+ var i = e, u = i._payload, o = i._init;
131
+ try {
132
+ return w(o(u));
133
+ } catch {
134
+ return null;
135
+ }
136
+ }
137
+ }
138
+ return null;
139
+ }
140
+ var S = Object.assign, I = 0, te, ne, ae, oe, ie, ue, le;
141
+ function se() {
142
+ }
143
+ se.__reactDisabledLog = !0;
144
+ function Ae() {
145
+ {
146
+ if (I === 0) {
147
+ te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, ue = console.groupCollapsed, le = console.groupEnd;
148
+ var e = {
149
+ configurable: !0,
150
+ enumerable: !0,
151
+ value: se,
152
+ writable: !0
153
+ };
154
+ Object.defineProperties(console, {
155
+ info: e,
156
+ log: e,
157
+ warn: e,
158
+ error: e,
159
+ group: e,
160
+ groupCollapsed: e,
161
+ groupEnd: e
162
+ });
163
+ }
164
+ I++;
165
+ }
166
+ }
167
+ function We() {
168
+ {
169
+ if (I--, I === 0) {
170
+ var e = {
171
+ configurable: !0,
172
+ enumerable: !0,
173
+ writable: !0
174
+ };
175
+ Object.defineProperties(console, {
176
+ log: S({}, e, {
177
+ value: te
178
+ }),
179
+ info: S({}, e, {
180
+ value: ne
181
+ }),
182
+ warn: S({}, e, {
183
+ value: ae
184
+ }),
185
+ error: S({}, e, {
186
+ value: oe
187
+ }),
188
+ group: S({}, e, {
189
+ value: ie
190
+ }),
191
+ groupCollapsed: S({}, e, {
192
+ value: ue
193
+ }),
194
+ groupEnd: S({}, e, {
195
+ value: le
196
+ })
197
+ });
198
+ }
199
+ I < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
200
+ }
201
+ }
202
+ var H = P.ReactCurrentDispatcher, J;
203
+ function L(e, r, t) {
204
+ {
205
+ if (J === void 0)
206
+ try {
207
+ throw Error();
208
+ } catch (i) {
209
+ var n = i.stack.trim().match(/\n( *(at )?)/);
210
+ J = n && n[1] || "";
211
+ }
212
+ return `
213
+ ` + J + e;
214
+ }
215
+ }
216
+ var G = !1, M;
217
+ {
218
+ var $e = typeof WeakMap == "function" ? WeakMap : Map;
219
+ M = new $e();
220
+ }
221
+ function fe(e, r) {
222
+ if (!e || G)
223
+ return "";
224
+ {
225
+ var t = M.get(e);
226
+ if (t !== void 0)
227
+ return t;
228
+ }
229
+ var n;
230
+ G = !0;
231
+ var i = Error.prepareStackTrace;
232
+ Error.prepareStackTrace = void 0;
233
+ var u;
234
+ u = H.current, H.current = null, Ae();
235
+ try {
236
+ if (r) {
237
+ var o = function() {
238
+ throw Error();
239
+ };
240
+ if (Object.defineProperty(o.prototype, "props", {
241
+ set: function() {
242
+ throw Error();
243
+ }
244
+ }), typeof Reflect == "object" && Reflect.construct) {
245
+ try {
246
+ Reflect.construct(o, []);
247
+ } catch (C) {
248
+ n = C;
249
+ }
250
+ Reflect.construct(e, [], o);
251
+ } else {
252
+ try {
253
+ o.call();
254
+ } catch (C) {
255
+ n = C;
256
+ }
257
+ e.call(o.prototype);
258
+ }
259
+ } else {
260
+ try {
261
+ throw Error();
262
+ } catch (C) {
263
+ n = C;
264
+ }
265
+ e();
266
+ }
267
+ } catch (C) {
268
+ if (C && n && typeof C.stack == "string") {
269
+ for (var a = C.stack.split(`
270
+ `), h = n.stack.split(`
271
+ `), l = a.length - 1, s = h.length - 1; l >= 1 && s >= 0 && a[l] !== h[s]; )
272
+ s--;
273
+ for (; l >= 1 && s >= 0; l--, s--)
274
+ if (a[l] !== h[s]) {
275
+ if (l !== 1 || s !== 1)
276
+ do
277
+ if (l--, s--, s < 0 || a[l] !== h[s]) {
278
+ var R = `
279
+ ` + a[l].replace(" at new ", " at ");
280
+ return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, R), R;
281
+ }
282
+ while (l >= 1 && s >= 0);
283
+ break;
284
+ }
285
+ }
286
+ } finally {
287
+ G = !1, H.current = u, We(), Error.prepareStackTrace = i;
288
+ }
289
+ var F = e ? e.displayName || e.name : "", Te = F ? L(F) : "";
290
+ return typeof e == "function" && M.set(e, Te), Te;
291
+ }
292
+ function Ye(e, r, t) {
293
+ return fe(e, !1);
294
+ }
295
+ function Ne(e) {
296
+ var r = e.prototype;
297
+ return !!(r && r.isReactComponent);
298
+ }
299
+ function V(e, r, t) {
300
+ if (e == null)
301
+ return "";
302
+ if (typeof e == "function")
303
+ return fe(e, Ne(e));
304
+ if (typeof e == "string")
305
+ return L(e);
306
+ switch (e) {
307
+ case O:
308
+ return L("Suspense");
309
+ case p:
310
+ return L("SuspenseList");
311
+ }
312
+ if (typeof e == "object")
313
+ switch (e.$$typeof) {
314
+ case f:
315
+ return Ye(e.render);
316
+ case _:
317
+ return V(e.type, r, t);
318
+ case d: {
319
+ var n = e, i = n._payload, u = n._init;
320
+ try {
321
+ return V(u(i), r, t);
322
+ } catch {
323
+ }
324
+ }
325
+ }
326
+ return "";
327
+ }
328
+ var U = Object.prototype.hasOwnProperty, ce = {}, de = P.ReactDebugCurrentFrame;
329
+ function B(e) {
330
+ if (e) {
331
+ var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
332
+ de.setExtraStackFrame(t);
333
+ } else
334
+ de.setExtraStackFrame(null);
335
+ }
336
+ function Le(e, r, t, n, i) {
337
+ {
338
+ var u = Function.call.bind(U);
339
+ for (var o in e)
340
+ if (u(e, o)) {
341
+ var a = void 0;
342
+ try {
343
+ if (typeof e[o] != "function") {
344
+ var h = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
345
+ throw h.name = "Invariant Violation", h;
346
+ }
347
+ a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
348
+ } catch (l) {
349
+ a = l;
350
+ }
351
+ a && !(a instanceof Error) && (B(i), v("%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).", n || "React class", t, o, typeof a), B(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, B(i), v("Failed %s type: %s", t, a.message), B(null));
352
+ }
353
+ }
354
+ }
355
+ var Me = Array.isArray;
356
+ function z(e) {
357
+ return Me(e);
358
+ }
359
+ function Ve(e) {
360
+ {
361
+ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
362
+ return t;
363
+ }
364
+ }
365
+ function Ue(e) {
366
+ try {
367
+ return ve(e), !1;
368
+ } catch {
369
+ return !0;
370
+ }
371
+ }
372
+ function ve(e) {
373
+ return "" + e;
374
+ }
375
+ function pe(e) {
376
+ if (Ue(e))
377
+ return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ve(e)), ve(e);
378
+ }
379
+ var A = P.ReactCurrentOwner, Be = {
380
+ key: !0,
381
+ ref: !0,
382
+ __self: !0,
383
+ __source: !0
384
+ }, he, ge, K;
385
+ K = {};
386
+ function qe(e) {
387
+ if (U.call(e, "ref")) {
388
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
389
+ if (r && r.isReactWarning)
390
+ return !1;
391
+ }
392
+ return e.ref !== void 0;
393
+ }
394
+ function He(e) {
395
+ if (U.call(e, "key")) {
396
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
397
+ if (r && r.isReactWarning)
398
+ return !1;
399
+ }
400
+ return e.key !== void 0;
401
+ }
402
+ function Je(e, r) {
403
+ if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
404
+ var t = w(A.current.type);
405
+ K[t] || (v('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', w(A.current.type), e.ref), K[t] = !0);
406
+ }
407
+ }
408
+ function Ge(e, r) {
409
+ {
410
+ var t = function() {
411
+ he || (he = !0, v("%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)", r));
412
+ };
413
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
414
+ get: t,
415
+ configurable: !0
416
+ });
417
+ }
418
+ }
419
+ function ze(e, r) {
420
+ {
421
+ var t = function() {
422
+ ge || (ge = !0, v("%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)", r));
423
+ };
424
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
425
+ get: t,
426
+ configurable: !0
427
+ });
428
+ }
429
+ }
430
+ var Ke = function(e, r, t, n, i, u, o) {
431
+ var a = {
432
+ // This tag allows us to uniquely identify this as a React Element
433
+ $$typeof: m,
434
+ // Built-in properties that belong on the element
435
+ type: e,
436
+ key: r,
437
+ ref: t,
438
+ props: o,
439
+ // Record the component responsible for creating this element.
440
+ _owner: u
441
+ };
442
+ return a._store = {}, Object.defineProperty(a._store, "validated", {
443
+ configurable: !1,
444
+ enumerable: !1,
445
+ writable: !0,
446
+ value: !1
447
+ }), Object.defineProperty(a, "_self", {
448
+ configurable: !1,
449
+ enumerable: !1,
450
+ writable: !1,
451
+ value: n
452
+ }), Object.defineProperty(a, "_source", {
453
+ configurable: !1,
454
+ enumerable: !1,
455
+ writable: !1,
456
+ value: i
457
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
458
+ };
459
+ function Xe(e, r, t, n, i) {
460
+ {
461
+ var u, o = {}, a = null, h = null;
462
+ t !== void 0 && (pe(t), a = "" + t), He(r) && (pe(r.key), a = "" + r.key), qe(r) && (h = r.ref, Je(r, i));
463
+ for (u in r)
464
+ U.call(r, u) && !Be.hasOwnProperty(u) && (o[u] = r[u]);
465
+ if (e && e.defaultProps) {
466
+ var l = e.defaultProps;
467
+ for (u in l)
468
+ o[u] === void 0 && (o[u] = l[u]);
469
+ }
470
+ if (a || h) {
471
+ var s = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
472
+ a && Ge(o, s), h && ze(o, s);
473
+ }
474
+ return Ke(e, a, h, i, n, A.current, o);
475
+ }
476
+ }
477
+ var X = P.ReactCurrentOwner, me = P.ReactDebugCurrentFrame;
478
+ function D(e) {
479
+ if (e) {
480
+ var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
481
+ me.setExtraStackFrame(t);
482
+ } else
483
+ me.setExtraStackFrame(null);
484
+ }
485
+ var Z;
486
+ Z = !1;
487
+ function Q(e) {
488
+ return typeof e == "object" && e !== null && e.$$typeof === m;
489
+ }
490
+ function be() {
491
+ {
492
+ if (X.current) {
493
+ var e = w(X.current.type);
494
+ if (e)
495
+ return `
496
+
497
+ Check the render method of \`` + e + "`.";
498
+ }
499
+ return "";
500
+ }
501
+ }
502
+ function Ze(e) {
503
+ {
504
+ if (e !== void 0) {
505
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
506
+ return `
507
+
508
+ Check your code at ` + r + ":" + t + ".";
509
+ }
510
+ return "";
511
+ }
512
+ }
513
+ var Ee = {};
514
+ function Qe(e) {
515
+ {
516
+ var r = be();
517
+ if (!r) {
518
+ var t = typeof e == "string" ? e : e.displayName || e.name;
519
+ t && (r = `
520
+
521
+ Check the top-level render call using <` + t + ">.");
522
+ }
523
+ return r;
524
+ }
525
+ }
526
+ function Re(e, r) {
527
+ {
528
+ if (!e._store || e._store.validated || e.key != null)
529
+ return;
530
+ e._store.validated = !0;
531
+ var t = Qe(r);
532
+ if (Ee[t])
533
+ return;
534
+ Ee[t] = !0;
535
+ var n = "";
536
+ e && e._owner && e._owner !== X.current && (n = " It was passed a child from " + w(e._owner.type) + "."), D(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), D(null);
537
+ }
538
+ }
539
+ function ye(e, r) {
540
+ {
541
+ if (typeof e != "object")
542
+ return;
543
+ if (z(e))
544
+ for (var t = 0; t < e.length; t++) {
545
+ var n = e[t];
546
+ Q(n) && Re(n, r);
547
+ }
548
+ else if (Q(e))
549
+ e._store && (e._store.validated = !0);
550
+ else if (e) {
551
+ var i = N(e);
552
+ if (typeof i == "function" && i !== e.entries)
553
+ for (var u = i.call(e), o; !(o = u.next()).done; )
554
+ Q(o.value) && Re(o.value, r);
555
+ }
556
+ }
557
+ }
558
+ function er(e) {
559
+ {
560
+ var r = e.type;
561
+ if (r == null || typeof r == "string")
562
+ return;
563
+ var t;
564
+ if (typeof r == "function")
565
+ t = r.propTypes;
566
+ else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
567
+ // Inner props are checked in the reconciler.
568
+ r.$$typeof === _))
569
+ t = r.propTypes;
570
+ else
571
+ return;
572
+ if (t) {
573
+ var n = w(r);
574
+ Le(t, e.props, "prop", n, e);
575
+ } else if (r.PropTypes !== void 0 && !Z) {
576
+ Z = !0;
577
+ var i = w(r);
578
+ v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
579
+ }
580
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
581
+ }
582
+ }
583
+ function rr(e) {
584
+ {
585
+ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
586
+ var n = r[t];
587
+ if (n !== "children" && n !== "key") {
588
+ D(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(null);
589
+ break;
590
+ }
591
+ }
592
+ e.ref !== null && (D(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
593
+ }
594
+ }
595
+ function _e(e, r, t, n, i, u) {
596
+ {
597
+ var o = Fe(e);
598
+ if (!o) {
599
+ var a = "";
600
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
601
+ var h = Ze(i);
602
+ h ? a += h : a += be();
603
+ var l;
604
+ e === null ? l = "null" : z(e) ? l = "array" : e !== void 0 && e.$$typeof === m ? (l = "<" + (w(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
605
+ }
606
+ var s = Xe(e, r, t, i, u);
607
+ if (s == null)
608
+ return s;
609
+ if (o) {
610
+ var R = r.children;
611
+ if (R !== void 0)
612
+ if (n)
613
+ if (z(R)) {
614
+ for (var F = 0; F < R.length; F++)
615
+ ye(R[F], e);
616
+ Object.freeze && Object.freeze(R);
617
+ } else
618
+ v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
619
+ else
620
+ ye(R, e);
621
+ }
622
+ return e === y ? rr(s) : er(s), s;
623
+ }
624
+ }
625
+ function tr(e, r, t) {
626
+ return _e(e, r, t, !0);
627
+ }
628
+ function nr(e, r, t) {
629
+ return _e(e, r, t, !1);
630
+ }
631
+ var ar = nr, or = tr;
632
+ $.Fragment = y, $.jsx = ar, $.jsxs = or;
633
+ }()), $;
634
+ }
635
+ (function(c) {
636
+ process.env.NODE_ENV === "production" ? c.exports = sr() : c.exports = fr();
637
+ })(lr);
638
+ function cr(c) {
639
+ const m = c.getBoundingClientRect();
640
+ return m.top >= 0 && m.left >= 0 && m.bottom <= (window.innerHeight || document.documentElement.clientHeight) && m.right <= (window.innerWidth || document.documentElement.clientWidth);
641
+ }
642
+ function pr({
643
+ thumbsSlideAxis: c = "x",
644
+ withThumbs: m = !1,
645
+ prepareThumbsData: j,
646
+ items: y,
647
+ renderThumbFnProps: k
648
+ }) {
649
+ const g = ir(null), [x, T] = ur(() => ({
650
+ val: 0
651
+ }));
652
+ function f() {
653
+ var d;
654
+ return Math.round(
655
+ Number((d = g.current) == null ? void 0 : d[c === "x" ? "scrollWidth" : "scrollHeight"]) - g.current.getBoundingClientRect()[c === "x" ? "width" : "height"]
656
+ );
657
+ }
658
+ function O(d) {
659
+ var Y;
660
+ function b() {
661
+ return g.current ? g.current.querySelector(
662
+ `#thumb-item-${y[d].id}`
663
+ ) : null;
664
+ }
665
+ const E = b();
666
+ if (E && g.current && !cr(E)) {
667
+ const N = E.offsetLeft, P = N > f() ? f() : N;
668
+ T.start({
669
+ from: {
670
+ val: ((Y = g.current) == null ? void 0 : Y[c === "x" ? "scrollLeft" : "scrollTop"]) ?? 0
671
+ },
672
+ to: {
673
+ val: P
674
+ },
675
+ onChange: ({ value: v }) => {
676
+ g.current && (g.current[c === "x" ? "scrollLeft" : "scrollTop"] = Math.abs(
677
+ v.val
678
+ ));
679
+ }
680
+ });
681
+ }
682
+ }
683
+ function p() {
684
+ function d(b) {
685
+ return b.map((E) => ({
686
+ id: E.id,
687
+ renderThumb: E.renderThumb
688
+ }));
689
+ }
690
+ return j ? j(d(y)) : d(y);
691
+ }
692
+ return {
693
+ thumbsFragment: m ? /* @__PURE__ */ q.jsx(
694
+ "div",
695
+ {
696
+ className: "use-spring-carousel-thumbs-wrapper",
697
+ ref: g,
698
+ onWheel: () => x.val.stop(),
699
+ style: {
700
+ display: "flex",
701
+ flex: "1",
702
+ position: "relative",
703
+ width: "100%",
704
+ height: "100%",
705
+ flexDirection: c === "x" ? "row" : "column",
706
+ ...c === "x" ? { overflowX: "auto" } : {
707
+ overflowY: "auto",
708
+ maxHeight: "100%"
709
+ }
710
+ },
711
+ children: p().map(({ id: d, renderThumb: b }) => {
712
+ const E = `thumb-item-${d}`;
713
+ return /* @__PURE__ */ q.jsx("div", { id: E, className: "thumb-item", children: typeof b == "function" ? b(k) : b }, E);
714
+ })
715
+ }
716
+ ) : null,
717
+ handleScroll: O
718
+ };
719
+ }
720
+ export {
721
+ q as j,
722
+ pr as u
723
+ };