@adhese/sdk-react 0.6.3 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4423 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const react = require("react");
3
5
  const sdk = require("@adhese/sdk");
4
6
  const useDeepCompareEffect = require("use-deep-compare-effect");
5
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
6
- function getDefaultExportFromCjs(x) {
7
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
8
- }
9
- var jsxRuntime = { exports: {} };
10
- var reactJsxRuntime_production_min = {};
11
- var react = { exports: {} };
12
- var react_production_min = {};
13
- /**
14
- * @license React
15
- * react.production.min.js
16
- *
17
- * Copyright (c) Facebook, Inc. and its affiliates.
18
- *
19
- * This source code is licensed under the MIT license found in the
20
- * LICENSE file in the root directory of this source tree.
21
- */
22
- var hasRequiredReact_production_min;
23
- function requireReact_production_min() {
24
- if (hasRequiredReact_production_min)
25
- return react_production_min;
26
- hasRequiredReact_production_min = 1;
27
- var l = Symbol.for("react.element"), n = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), u = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), z = Symbol.iterator;
28
- function A(a) {
29
- if (null === a || "object" !== typeof a)
30
- return null;
31
- a = z && a[z] || a["@@iterator"];
32
- return "function" === typeof a ? a : null;
33
- }
34
- var B = { isMounted: function() {
35
- return false;
36
- }, enqueueForceUpdate: function() {
37
- }, enqueueReplaceState: function() {
38
- }, enqueueSetState: function() {
39
- } }, C = Object.assign, D = {};
40
- function E(a, b, e) {
41
- this.props = a;
42
- this.context = b;
43
- this.refs = D;
44
- this.updater = e || B;
45
- }
46
- E.prototype.isReactComponent = {};
47
- E.prototype.setState = function(a, b) {
48
- if ("object" !== typeof a && "function" !== typeof a && null != a)
49
- throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
50
- this.updater.enqueueSetState(this, a, b, "setState");
51
- };
52
- E.prototype.forceUpdate = function(a) {
53
- this.updater.enqueueForceUpdate(this, a, "forceUpdate");
54
- };
55
- function F() {
56
- }
57
- F.prototype = E.prototype;
58
- function G(a, b, e) {
59
- this.props = a;
60
- this.context = b;
61
- this.refs = D;
62
- this.updater = e || B;
63
- }
64
- var H = G.prototype = new F();
65
- H.constructor = G;
66
- C(H, E.prototype);
67
- H.isPureReactComponent = true;
68
- var I = Array.isArray, J = Object.prototype.hasOwnProperty, K = { current: null }, L = { key: true, ref: true, __self: true, __source: true };
69
- function M(a, b, e) {
70
- var d, c = {}, k = null, h = null;
71
- if (null != b)
72
- for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b)
73
- J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
74
- var g = arguments.length - 2;
75
- if (1 === g)
76
- c.children = e;
77
- else if (1 < g) {
78
- for (var f = Array(g), m = 0; m < g; m++)
79
- f[m] = arguments[m + 2];
80
- c.children = f;
81
- }
82
- if (a && a.defaultProps)
83
- for (d in g = a.defaultProps, g)
84
- void 0 === c[d] && (c[d] = g[d]);
85
- return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
86
- }
87
- function N(a, b) {
88
- return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
89
- }
90
- function O(a) {
91
- return "object" === typeof a && null !== a && a.$$typeof === l;
92
- }
93
- function escape(a) {
94
- var b = { "=": "=0", ":": "=2" };
95
- return "$" + a.replace(/[=:]/g, function(a2) {
96
- return b[a2];
97
- });
98
- }
99
- var P = /\/+/g;
100
- function Q(a, b) {
101
- return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
102
- }
103
- function R(a, b, e, d, c) {
104
- var k = typeof a;
105
- if ("undefined" === k || "boolean" === k)
106
- a = null;
107
- var h = false;
108
- if (null === a)
109
- h = true;
110
- else
111
- switch (k) {
112
- case "string":
113
- case "number":
114
- h = true;
115
- break;
116
- case "object":
117
- switch (a.$$typeof) {
118
- case l:
119
- case n:
120
- h = true;
121
- }
122
- }
123
- if (h)
124
- return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) {
125
- return a2;
126
- })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
127
- h = 0;
128
- d = "" === d ? "." : d + ":";
129
- if (I(a))
130
- for (var g = 0; g < a.length; g++) {
131
- k = a[g];
132
- var f = d + Q(k, g);
133
- h += R(k, b, e, f, c);
134
- }
135
- else if (f = A(a), "function" === typeof f)
136
- for (a = f.call(a), g = 0; !(k = a.next()).done; )
137
- k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
138
- else if ("object" === k)
139
- throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
140
- return h;
141
- }
142
- function S(a, b, e) {
143
- if (null == a)
144
- return a;
145
- var d = [], c = 0;
146
- R(a, d, "", "", function(a2) {
147
- return b.call(e, a2, c++);
148
- });
149
- return d;
150
- }
151
- function T(a) {
152
- if (-1 === a._status) {
153
- var b = a._result;
154
- b = b();
155
- b.then(function(b2) {
156
- if (0 === a._status || -1 === a._status)
157
- a._status = 1, a._result = b2;
158
- }, function(b2) {
159
- if (0 === a._status || -1 === a._status)
160
- a._status = 2, a._result = b2;
161
- });
162
- -1 === a._status && (a._status = 0, a._result = b);
163
- }
164
- if (1 === a._status)
165
- return a._result.default;
166
- throw a._result;
167
- }
168
- var U = { current: null }, V = { transition: null }, W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
169
- react_production_min.Children = { map: S, forEach: function(a, b, e) {
170
- S(a, function() {
171
- b.apply(this, arguments);
172
- }, e);
173
- }, count: function(a) {
174
- var b = 0;
175
- S(a, function() {
176
- b++;
177
- });
178
- return b;
179
- }, toArray: function(a) {
180
- return S(a, function(a2) {
181
- return a2;
182
- }) || [];
183
- }, only: function(a) {
184
- if (!O(a))
185
- throw Error("React.Children.only expected to receive a single React element child.");
186
- return a;
187
- } };
188
- react_production_min.Component = E;
189
- react_production_min.Fragment = p;
190
- react_production_min.Profiler = r;
191
- react_production_min.PureComponent = G;
192
- react_production_min.StrictMode = q;
193
- react_production_min.Suspense = w;
194
- react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
195
- react_production_min.cloneElement = function(a, b, e) {
196
- if (null === a || void 0 === a)
197
- throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
198
- var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
199
- if (null != b) {
200
- void 0 !== b.ref && (k = b.ref, h = K.current);
201
- void 0 !== b.key && (c = "" + b.key);
202
- if (a.type && a.type.defaultProps)
203
- var g = a.type.defaultProps;
204
- for (f in b)
205
- J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
206
- }
207
- var f = arguments.length - 2;
208
- if (1 === f)
209
- d.children = e;
210
- else if (1 < f) {
211
- g = Array(f);
212
- for (var m = 0; m < f; m++)
213
- g[m] = arguments[m + 2];
214
- d.children = g;
215
- }
216
- return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
217
- };
218
- react_production_min.createContext = function(a) {
219
- a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
220
- a.Provider = { $$typeof: t, _context: a };
221
- return a.Consumer = a;
222
- };
223
- react_production_min.createElement = M;
224
- react_production_min.createFactory = function(a) {
225
- var b = M.bind(null, a);
226
- b.type = a;
227
- return b;
228
- };
229
- react_production_min.createRef = function() {
230
- return { current: null };
231
- };
232
- react_production_min.forwardRef = function(a) {
233
- return { $$typeof: v, render: a };
234
- };
235
- react_production_min.isValidElement = O;
236
- react_production_min.lazy = function(a) {
237
- return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
238
- };
239
- react_production_min.memo = function(a, b) {
240
- return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
241
- };
242
- react_production_min.startTransition = function(a) {
243
- var b = V.transition;
244
- V.transition = {};
245
- try {
246
- a();
247
- } finally {
248
- V.transition = b;
249
- }
250
- };
251
- react_production_min.unstable_act = function() {
252
- throw Error("act(...) is not supported in production builds of React.");
253
- };
254
- react_production_min.useCallback = function(a, b) {
255
- return U.current.useCallback(a, b);
256
- };
257
- react_production_min.useContext = function(a) {
258
- return U.current.useContext(a);
259
- };
260
- react_production_min.useDebugValue = function() {
261
- };
262
- react_production_min.useDeferredValue = function(a) {
263
- return U.current.useDeferredValue(a);
264
- };
265
- react_production_min.useEffect = function(a, b) {
266
- return U.current.useEffect(a, b);
267
- };
268
- react_production_min.useId = function() {
269
- return U.current.useId();
270
- };
271
- react_production_min.useImperativeHandle = function(a, b, e) {
272
- return U.current.useImperativeHandle(a, b, e);
273
- };
274
- react_production_min.useInsertionEffect = function(a, b) {
275
- return U.current.useInsertionEffect(a, b);
276
- };
277
- react_production_min.useLayoutEffect = function(a, b) {
278
- return U.current.useLayoutEffect(a, b);
279
- };
280
- react_production_min.useMemo = function(a, b) {
281
- return U.current.useMemo(a, b);
282
- };
283
- react_production_min.useReducer = function(a, b, e) {
284
- return U.current.useReducer(a, b, e);
285
- };
286
- react_production_min.useRef = function(a) {
287
- return U.current.useRef(a);
288
- };
289
- react_production_min.useState = function(a) {
290
- return U.current.useState(a);
291
- };
292
- react_production_min.useSyncExternalStore = function(a, b, e) {
293
- return U.current.useSyncExternalStore(a, b, e);
294
- };
295
- react_production_min.useTransition = function() {
296
- return U.current.useTransition();
297
- };
298
- react_production_min.version = "18.2.0";
299
- return react_production_min;
300
- }
301
- var react_development = { exports: {} };
302
- /**
303
- * @license React
304
- * react.development.js
305
- *
306
- * Copyright (c) Facebook, Inc. and its affiliates.
307
- *
308
- * This source code is licensed under the MIT license found in the
309
- * LICENSE file in the root directory of this source tree.
310
- */
311
- react_development.exports;
312
- var hasRequiredReact_development;
313
- function requireReact_development() {
314
- if (hasRequiredReact_development)
315
- return react_development.exports;
316
- hasRequiredReact_development = 1;
317
- (function(module2, exports2) {
318
- if (process.env.NODE_ENV !== "production") {
319
- (function() {
320
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
321
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
322
- }
323
- var ReactVersion = "18.2.0";
324
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
325
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
326
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
327
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
328
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
329
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
330
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
331
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
332
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
333
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
334
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
335
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
336
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
337
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
338
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
339
- function getIteratorFn(maybeIterable) {
340
- if (maybeIterable === null || typeof maybeIterable !== "object") {
341
- return null;
342
- }
343
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
344
- if (typeof maybeIterator === "function") {
345
- return maybeIterator;
346
- }
347
- return null;
348
- }
349
- var ReactCurrentDispatcher = {
350
- /**
351
- * @internal
352
- * @type {ReactComponent}
353
- */
354
- current: null
355
- };
356
- var ReactCurrentBatchConfig = {
357
- transition: null
358
- };
359
- var ReactCurrentActQueue = {
360
- current: null,
361
- // Used to reproduce behavior of `batchedUpdates` in legacy mode.
362
- isBatchingLegacy: false,
363
- didScheduleLegacyUpdate: false
364
- };
365
- var ReactCurrentOwner = {
366
- /**
367
- * @internal
368
- * @type {ReactComponent}
369
- */
370
- current: null
371
- };
372
- var ReactDebugCurrentFrame = {};
373
- var currentExtraStackFrame = null;
374
- function setExtraStackFrame(stack) {
375
- {
376
- currentExtraStackFrame = stack;
377
- }
378
- }
379
- {
380
- ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
381
- {
382
- currentExtraStackFrame = stack;
383
- }
384
- };
385
- ReactDebugCurrentFrame.getCurrentStack = null;
386
- ReactDebugCurrentFrame.getStackAddendum = function() {
387
- var stack = "";
388
- if (currentExtraStackFrame) {
389
- stack += currentExtraStackFrame;
390
- }
391
- var impl = ReactDebugCurrentFrame.getCurrentStack;
392
- if (impl) {
393
- stack += impl() || "";
394
- }
395
- return stack;
396
- };
397
- }
398
- var enableScopeAPI = false;
399
- var enableCacheElement = false;
400
- var enableTransitionTracing = false;
401
- var enableLegacyHidden = false;
402
- var enableDebugTracing = false;
403
- var ReactSharedInternals = {
404
- ReactCurrentDispatcher,
405
- ReactCurrentBatchConfig,
406
- ReactCurrentOwner
407
- };
408
- {
409
- ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
410
- ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
411
- }
412
- function warn(format) {
413
- {
414
- {
415
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
416
- args[_key - 1] = arguments[_key];
417
- }
418
- printWarning("warn", format, args);
419
- }
420
- }
421
- }
422
- function error(format) {
423
- {
424
- {
425
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
426
- args[_key2 - 1] = arguments[_key2];
427
- }
428
- printWarning("error", format, args);
429
- }
430
- }
431
- }
432
- function printWarning(level, format, args) {
433
- {
434
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
435
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
436
- if (stack !== "") {
437
- format += "%s";
438
- args = args.concat([stack]);
439
- }
440
- var argsWithFormat = args.map(function(item) {
441
- return String(item);
442
- });
443
- argsWithFormat.unshift("Warning: " + format);
444
- Function.prototype.apply.call(console[level], console, argsWithFormat);
445
- }
446
- }
447
- var didWarnStateUpdateForUnmountedComponent = {};
448
- function warnNoop(publicInstance, callerName) {
449
- {
450
- var _constructor = publicInstance.constructor;
451
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
452
- var warningKey = componentName + "." + callerName;
453
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
454
- return;
455
- }
456
- error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName);
457
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
458
- }
459
- }
460
- var ReactNoopUpdateQueue = {
461
- /**
462
- * Checks whether or not this composite component is mounted.
463
- * @param {ReactClass} publicInstance The instance we want to test.
464
- * @return {boolean} True if mounted, false otherwise.
465
- * @protected
466
- * @final
467
- */
468
- isMounted: function(publicInstance) {
469
- return false;
470
- },
471
- /**
472
- * Forces an update. This should only be invoked when it is known with
473
- * certainty that we are **not** in a DOM transaction.
474
- *
475
- * You may want to call this when you know that some deeper aspect of the
476
- * component's state has changed but `setState` was not called.
477
- *
478
- * This will not invoke `shouldComponentUpdate`, but it will invoke
479
- * `componentWillUpdate` and `componentDidUpdate`.
480
- *
481
- * @param {ReactClass} publicInstance The instance that should rerender.
482
- * @param {?function} callback Called after component is updated.
483
- * @param {?string} callerName name of the calling function in the public API.
484
- * @internal
485
- */
486
- enqueueForceUpdate: function(publicInstance, callback, callerName) {
487
- warnNoop(publicInstance, "forceUpdate");
488
- },
489
- /**
490
- * Replaces all of the state. Always use this or `setState` to mutate state.
491
- * You should treat `this.state` as immutable.
492
- *
493
- * There is no guarantee that `this.state` will be immediately updated, so
494
- * accessing `this.state` after calling this method may return the old value.
495
- *
496
- * @param {ReactClass} publicInstance The instance that should rerender.
497
- * @param {object} completeState Next state.
498
- * @param {?function} callback Called after component is updated.
499
- * @param {?string} callerName name of the calling function in the public API.
500
- * @internal
501
- */
502
- enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
503
- warnNoop(publicInstance, "replaceState");
504
- },
505
- /**
506
- * Sets a subset of the state. This only exists because _pendingState is
507
- * internal. This provides a merging strategy that is not available to deep
508
- * properties which is confusing. TODO: Expose pendingState or don't use it
509
- * during the merge.
510
- *
511
- * @param {ReactClass} publicInstance The instance that should rerender.
512
- * @param {object} partialState Next partial state to be merged with state.
513
- * @param {?function} callback Called after component is updated.
514
- * @param {?string} Name of the calling function in the public API.
515
- * @internal
516
- */
517
- enqueueSetState: function(publicInstance, partialState, callback, callerName) {
518
- warnNoop(publicInstance, "setState");
519
- }
520
- };
521
- var assign = Object.assign;
522
- var emptyObject = {};
523
- {
524
- Object.freeze(emptyObject);
525
- }
526
- function Component(props, context, updater) {
527
- this.props = props;
528
- this.context = context;
529
- this.refs = emptyObject;
530
- this.updater = updater || ReactNoopUpdateQueue;
531
- }
532
- Component.prototype.isReactComponent = {};
533
- Component.prototype.setState = function(partialState, callback) {
534
- if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
535
- throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
536
- }
537
- this.updater.enqueueSetState(this, partialState, callback, "setState");
538
- };
539
- Component.prototype.forceUpdate = function(callback) {
540
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
541
- };
542
- {
543
- var deprecatedAPIs = {
544
- isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
545
- replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
546
- };
547
- var defineDeprecationWarning = function(methodName, info) {
548
- Object.defineProperty(Component.prototype, methodName, {
549
- get: function() {
550
- warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
551
- return void 0;
552
- }
553
- });
554
- };
555
- for (var fnName in deprecatedAPIs) {
556
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
557
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
558
- }
559
- }
560
- }
561
- function ComponentDummy() {
562
- }
563
- ComponentDummy.prototype = Component.prototype;
564
- function PureComponent(props, context, updater) {
565
- this.props = props;
566
- this.context = context;
567
- this.refs = emptyObject;
568
- this.updater = updater || ReactNoopUpdateQueue;
569
- }
570
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
571
- pureComponentPrototype.constructor = PureComponent;
572
- assign(pureComponentPrototype, Component.prototype);
573
- pureComponentPrototype.isPureReactComponent = true;
574
- function createRef() {
575
- var refObject = {
576
- current: null
577
- };
578
- {
579
- Object.seal(refObject);
580
- }
581
- return refObject;
582
- }
583
- var isArrayImpl = Array.isArray;
584
- function isArray2(a) {
585
- return isArrayImpl(a);
586
- }
587
- function typeName(value) {
588
- {
589
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
590
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
591
- return type;
592
- }
593
- }
594
- function willCoercionThrow(value) {
595
- {
596
- try {
597
- testStringCoercion(value);
598
- return false;
599
- } catch (e) {
600
- return true;
601
- }
602
- }
603
- }
604
- function testStringCoercion(value) {
605
- return "" + value;
606
- }
607
- function checkKeyStringCoercion(value) {
608
- {
609
- if (willCoercionThrow(value)) {
610
- error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
611
- return testStringCoercion(value);
612
- }
613
- }
614
- }
615
- function getWrappedName(outerType, innerType, wrapperName) {
616
- var displayName = outerType.displayName;
617
- if (displayName) {
618
- return displayName;
619
- }
620
- var functionName = innerType.displayName || innerType.name || "";
621
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
622
- }
623
- function getContextName(type) {
624
- return type.displayName || "Context";
625
- }
626
- function getComponentNameFromType(type) {
627
- if (type == null) {
628
- return null;
629
- }
630
- {
631
- if (typeof type.tag === "number") {
632
- error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
633
- }
634
- }
635
- if (typeof type === "function") {
636
- return type.displayName || type.name || null;
637
- }
638
- if (typeof type === "string") {
639
- return type;
640
- }
641
- switch (type) {
642
- case REACT_FRAGMENT_TYPE:
643
- return "Fragment";
644
- case REACT_PORTAL_TYPE:
645
- return "Portal";
646
- case REACT_PROFILER_TYPE:
647
- return "Profiler";
648
- case REACT_STRICT_MODE_TYPE:
649
- return "StrictMode";
650
- case REACT_SUSPENSE_TYPE:
651
- return "Suspense";
652
- case REACT_SUSPENSE_LIST_TYPE:
653
- return "SuspenseList";
654
- }
655
- if (typeof type === "object") {
656
- switch (type.$$typeof) {
657
- case REACT_CONTEXT_TYPE:
658
- var context = type;
659
- return getContextName(context) + ".Consumer";
660
- case REACT_PROVIDER_TYPE:
661
- var provider = type;
662
- return getContextName(provider._context) + ".Provider";
663
- case REACT_FORWARD_REF_TYPE:
664
- return getWrappedName(type, type.render, "ForwardRef");
665
- case REACT_MEMO_TYPE:
666
- var outerName = type.displayName || null;
667
- if (outerName !== null) {
668
- return outerName;
669
- }
670
- return getComponentNameFromType(type.type) || "Memo";
671
- case REACT_LAZY_TYPE: {
672
- var lazyComponent = type;
673
- var payload = lazyComponent._payload;
674
- var init = lazyComponent._init;
675
- try {
676
- return getComponentNameFromType(init(payload));
677
- } catch (x) {
678
- return null;
679
- }
680
- }
681
- }
682
- }
683
- return null;
684
- }
685
- var hasOwnProperty2 = Object.prototype.hasOwnProperty;
686
- var RESERVED_PROPS = {
687
- key: true,
688
- ref: true,
689
- __self: true,
690
- __source: true
691
- };
692
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
693
- {
694
- didWarnAboutStringRefs = {};
695
- }
696
- function hasValidRef(config) {
697
- {
698
- if (hasOwnProperty2.call(config, "ref")) {
699
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
700
- if (getter && getter.isReactWarning) {
701
- return false;
702
- }
703
- }
704
- }
705
- return config.ref !== void 0;
706
- }
707
- function hasValidKey(config) {
708
- {
709
- if (hasOwnProperty2.call(config, "key")) {
710
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
711
- if (getter && getter.isReactWarning) {
712
- return false;
713
- }
714
- }
715
- }
716
- return config.key !== void 0;
717
- }
718
- function defineKeyPropWarningGetter(props, displayName) {
719
- var warnAboutAccessingKey = function() {
720
- {
721
- if (!specialPropKeyWarningShown) {
722
- specialPropKeyWarningShown = true;
723
- error("%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)", displayName);
724
- }
725
- }
726
- };
727
- warnAboutAccessingKey.isReactWarning = true;
728
- Object.defineProperty(props, "key", {
729
- get: warnAboutAccessingKey,
730
- configurable: true
731
- });
732
- }
733
- function defineRefPropWarningGetter(props, displayName) {
734
- var warnAboutAccessingRef = function() {
735
- {
736
- if (!specialPropRefWarningShown) {
737
- specialPropRefWarningShown = true;
738
- error("%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)", displayName);
739
- }
740
- }
741
- };
742
- warnAboutAccessingRef.isReactWarning = true;
743
- Object.defineProperty(props, "ref", {
744
- get: warnAboutAccessingRef,
745
- configurable: true
746
- });
747
- }
748
- function warnIfStringRefCannotBeAutoConverted(config) {
749
- {
750
- if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
751
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
752
- if (!didWarnAboutStringRefs[componentName]) {
753
- error('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', componentName, config.ref);
754
- didWarnAboutStringRefs[componentName] = true;
755
- }
756
- }
757
- }
758
- }
759
- var ReactElement = function(type, key, ref, self2, source, owner, props) {
760
- var element = {
761
- // This tag allows us to uniquely identify this as a React Element
762
- $$typeof: REACT_ELEMENT_TYPE,
763
- // Built-in properties that belong on the element
764
- type,
765
- key,
766
- ref,
767
- props,
768
- // Record the component responsible for creating this element.
769
- _owner: owner
770
- };
771
- {
772
- element._store = {};
773
- Object.defineProperty(element._store, "validated", {
774
- configurable: false,
775
- enumerable: false,
776
- writable: true,
777
- value: false
778
- });
779
- Object.defineProperty(element, "_self", {
780
- configurable: false,
781
- enumerable: false,
782
- writable: false,
783
- value: self2
784
- });
785
- Object.defineProperty(element, "_source", {
786
- configurable: false,
787
- enumerable: false,
788
- writable: false,
789
- value: source
790
- });
791
- if (Object.freeze) {
792
- Object.freeze(element.props);
793
- Object.freeze(element);
794
- }
795
- }
796
- return element;
797
- };
798
- function createElement(type, config, children) {
799
- var propName;
800
- var props = {};
801
- var key = null;
802
- var ref = null;
803
- var self2 = null;
804
- var source = null;
805
- if (config != null) {
806
- if (hasValidRef(config)) {
807
- ref = config.ref;
808
- {
809
- warnIfStringRefCannotBeAutoConverted(config);
810
- }
811
- }
812
- if (hasValidKey(config)) {
813
- {
814
- checkKeyStringCoercion(config.key);
815
- }
816
- key = "" + config.key;
817
- }
818
- self2 = config.__self === void 0 ? null : config.__self;
819
- source = config.__source === void 0 ? null : config.__source;
820
- for (propName in config) {
821
- if (hasOwnProperty2.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
822
- props[propName] = config[propName];
823
- }
824
- }
825
- }
826
- var childrenLength = arguments.length - 2;
827
- if (childrenLength === 1) {
828
- props.children = children;
829
- } else if (childrenLength > 1) {
830
- var childArray = Array(childrenLength);
831
- for (var i = 0; i < childrenLength; i++) {
832
- childArray[i] = arguments[i + 2];
833
- }
834
- {
835
- if (Object.freeze) {
836
- Object.freeze(childArray);
837
- }
838
- }
839
- props.children = childArray;
840
- }
841
- if (type && type.defaultProps) {
842
- var defaultProps = type.defaultProps;
843
- for (propName in defaultProps) {
844
- if (props[propName] === void 0) {
845
- props[propName] = defaultProps[propName];
846
- }
847
- }
848
- }
849
- {
850
- if (key || ref) {
851
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
852
- if (key) {
853
- defineKeyPropWarningGetter(props, displayName);
854
- }
855
- if (ref) {
856
- defineRefPropWarningGetter(props, displayName);
857
- }
858
- }
859
- }
860
- return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
861
- }
862
- function cloneAndReplaceKey(oldElement, newKey) {
863
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
864
- return newElement;
865
- }
866
- function cloneElement(element, config, children) {
867
- if (element === null || element === void 0) {
868
- throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
869
- }
870
- var propName;
871
- var props = assign({}, element.props);
872
- var key = element.key;
873
- var ref = element.ref;
874
- var self2 = element._self;
875
- var source = element._source;
876
- var owner = element._owner;
877
- if (config != null) {
878
- if (hasValidRef(config)) {
879
- ref = config.ref;
880
- owner = ReactCurrentOwner.current;
881
- }
882
- if (hasValidKey(config)) {
883
- {
884
- checkKeyStringCoercion(config.key);
885
- }
886
- key = "" + config.key;
887
- }
888
- var defaultProps;
889
- if (element.type && element.type.defaultProps) {
890
- defaultProps = element.type.defaultProps;
891
- }
892
- for (propName in config) {
893
- if (hasOwnProperty2.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
894
- if (config[propName] === void 0 && defaultProps !== void 0) {
895
- props[propName] = defaultProps[propName];
896
- } else {
897
- props[propName] = config[propName];
898
- }
899
- }
900
- }
901
- }
902
- var childrenLength = arguments.length - 2;
903
- if (childrenLength === 1) {
904
- props.children = children;
905
- } else if (childrenLength > 1) {
906
- var childArray = Array(childrenLength);
907
- for (var i = 0; i < childrenLength; i++) {
908
- childArray[i] = arguments[i + 2];
909
- }
910
- props.children = childArray;
911
- }
912
- return ReactElement(element.type, key, ref, self2, source, owner, props);
913
- }
914
- function isValidElement(object) {
915
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
916
- }
917
- var SEPARATOR = ".";
918
- var SUBSEPARATOR = ":";
919
- function escape(key) {
920
- var escapeRegex = /[=:]/g;
921
- var escaperLookup = {
922
- "=": "=0",
923
- ":": "=2"
924
- };
925
- var escapedString = key.replace(escapeRegex, function(match) {
926
- return escaperLookup[match];
927
- });
928
- return "$" + escapedString;
929
- }
930
- var didWarnAboutMaps = false;
931
- var userProvidedKeyEscapeRegex = /\/+/g;
932
- function escapeUserProvidedKey(text) {
933
- return text.replace(userProvidedKeyEscapeRegex, "$&/");
934
- }
935
- function getElementKey(element, index) {
936
- if (typeof element === "object" && element !== null && element.key != null) {
937
- {
938
- checkKeyStringCoercion(element.key);
939
- }
940
- return escape("" + element.key);
941
- }
942
- return index.toString(36);
943
- }
944
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
945
- var type = typeof children;
946
- if (type === "undefined" || type === "boolean") {
947
- children = null;
948
- }
949
- var invokeCallback = false;
950
- if (children === null) {
951
- invokeCallback = true;
952
- } else {
953
- switch (type) {
954
- case "string":
955
- case "number":
956
- invokeCallback = true;
957
- break;
958
- case "object":
959
- switch (children.$$typeof) {
960
- case REACT_ELEMENT_TYPE:
961
- case REACT_PORTAL_TYPE:
962
- invokeCallback = true;
963
- }
964
- }
965
- }
966
- if (invokeCallback) {
967
- var _child = children;
968
- var mappedChild = callback(_child);
969
- var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
970
- if (isArray2(mappedChild)) {
971
- var escapedChildKey = "";
972
- if (childKey != null) {
973
- escapedChildKey = escapeUserProvidedKey(childKey) + "/";
974
- }
975
- mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
976
- return c;
977
- });
978
- } else if (mappedChild != null) {
979
- if (isValidElement(mappedChild)) {
980
- {
981
- if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
982
- checkKeyStringCoercion(mappedChild.key);
983
- }
984
- }
985
- mappedChild = cloneAndReplaceKey(
986
- mappedChild,
987
- // Keep both the (mapped) and old keys if they differ, just as
988
- // traverseAllChildren used to do for objects as children
989
- escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
990
- (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
991
- // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
992
- // eslint-disable-next-line react-internal/safe-string-coercion
993
- escapeUserProvidedKey("" + mappedChild.key) + "/"
994
- ) : "") + childKey
995
- );
996
- }
997
- array.push(mappedChild);
998
- }
999
- return 1;
1000
- }
1001
- var child;
1002
- var nextName;
1003
- var subtreeCount = 0;
1004
- var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
1005
- if (isArray2(children)) {
1006
- for (var i = 0; i < children.length; i++) {
1007
- child = children[i];
1008
- nextName = nextNamePrefix + getElementKey(child, i);
1009
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1010
- }
1011
- } else {
1012
- var iteratorFn = getIteratorFn(children);
1013
- if (typeof iteratorFn === "function") {
1014
- var iterableChildren = children;
1015
- {
1016
- if (iteratorFn === iterableChildren.entries) {
1017
- if (!didWarnAboutMaps) {
1018
- warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
1019
- }
1020
- didWarnAboutMaps = true;
1021
- }
1022
- }
1023
- var iterator = iteratorFn.call(iterableChildren);
1024
- var step;
1025
- var ii = 0;
1026
- while (!(step = iterator.next()).done) {
1027
- child = step.value;
1028
- nextName = nextNamePrefix + getElementKey(child, ii++);
1029
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1030
- }
1031
- } else if (type === "object") {
1032
- var childrenString = String(children);
1033
- throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
1034
- }
1035
- }
1036
- return subtreeCount;
1037
- }
1038
- function mapChildren(children, func, context) {
1039
- if (children == null) {
1040
- return children;
1041
- }
1042
- var result = [];
1043
- var count = 0;
1044
- mapIntoArray(children, result, "", "", function(child) {
1045
- return func.call(context, child, count++);
1046
- });
1047
- return result;
1048
- }
1049
- function countChildren(children) {
1050
- var n = 0;
1051
- mapChildren(children, function() {
1052
- n++;
1053
- });
1054
- return n;
1055
- }
1056
- function forEachChildren(children, forEachFunc, forEachContext) {
1057
- mapChildren(children, function() {
1058
- forEachFunc.apply(this, arguments);
1059
- }, forEachContext);
1060
- }
1061
- function toArray(children) {
1062
- return mapChildren(children, function(child) {
1063
- return child;
1064
- }) || [];
1065
- }
1066
- function onlyChild(children) {
1067
- if (!isValidElement(children)) {
1068
- throw new Error("React.Children.only expected to receive a single React element child.");
1069
- }
1070
- return children;
1071
- }
1072
- function createContext(defaultValue) {
1073
- var context = {
1074
- $$typeof: REACT_CONTEXT_TYPE,
1075
- // As a workaround to support multiple concurrent renderers, we categorize
1076
- // some renderers as primary and others as secondary. We only expect
1077
- // there to be two concurrent renderers at most: React Native (primary) and
1078
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
1079
- // Secondary renderers store their context values on separate fields.
1080
- _currentValue: defaultValue,
1081
- _currentValue2: defaultValue,
1082
- // Used to track how many concurrent renderers this context currently
1083
- // supports within in a single renderer. Such as parallel server rendering.
1084
- _threadCount: 0,
1085
- // These are circular
1086
- Provider: null,
1087
- Consumer: null,
1088
- // Add these to use same hidden class in VM as ServerContext
1089
- _defaultValue: null,
1090
- _globalName: null
1091
- };
1092
- context.Provider = {
1093
- $$typeof: REACT_PROVIDER_TYPE,
1094
- _context: context
1095
- };
1096
- var hasWarnedAboutUsingNestedContextConsumers = false;
1097
- var hasWarnedAboutUsingConsumerProvider = false;
1098
- var hasWarnedAboutDisplayNameOnConsumer = false;
1099
- {
1100
- var Consumer = {
1101
- $$typeof: REACT_CONTEXT_TYPE,
1102
- _context: context
1103
- };
1104
- Object.defineProperties(Consumer, {
1105
- Provider: {
1106
- get: function() {
1107
- if (!hasWarnedAboutUsingConsumerProvider) {
1108
- hasWarnedAboutUsingConsumerProvider = true;
1109
- error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
1110
- }
1111
- return context.Provider;
1112
- },
1113
- set: function(_Provider) {
1114
- context.Provider = _Provider;
1115
- }
1116
- },
1117
- _currentValue: {
1118
- get: function() {
1119
- return context._currentValue;
1120
- },
1121
- set: function(_currentValue) {
1122
- context._currentValue = _currentValue;
1123
- }
1124
- },
1125
- _currentValue2: {
1126
- get: function() {
1127
- return context._currentValue2;
1128
- },
1129
- set: function(_currentValue2) {
1130
- context._currentValue2 = _currentValue2;
1131
- }
1132
- },
1133
- _threadCount: {
1134
- get: function() {
1135
- return context._threadCount;
1136
- },
1137
- set: function(_threadCount) {
1138
- context._threadCount = _threadCount;
1139
- }
1140
- },
1141
- Consumer: {
1142
- get: function() {
1143
- if (!hasWarnedAboutUsingNestedContextConsumers) {
1144
- hasWarnedAboutUsingNestedContextConsumers = true;
1145
- error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
1146
- }
1147
- return context.Consumer;
1148
- }
1149
- },
1150
- displayName: {
1151
- get: function() {
1152
- return context.displayName;
1153
- },
1154
- set: function(displayName) {
1155
- if (!hasWarnedAboutDisplayNameOnConsumer) {
1156
- warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
1157
- hasWarnedAboutDisplayNameOnConsumer = true;
1158
- }
1159
- }
1160
- }
1161
- });
1162
- context.Consumer = Consumer;
1163
- }
1164
- {
1165
- context._currentRenderer = null;
1166
- context._currentRenderer2 = null;
1167
- }
1168
- return context;
1169
- }
1170
- var Uninitialized = -1;
1171
- var Pending = 0;
1172
- var Resolved = 1;
1173
- var Rejected = 2;
1174
- function lazyInitializer(payload) {
1175
- if (payload._status === Uninitialized) {
1176
- var ctor = payload._result;
1177
- var thenable = ctor();
1178
- thenable.then(function(moduleObject2) {
1179
- if (payload._status === Pending || payload._status === Uninitialized) {
1180
- var resolved = payload;
1181
- resolved._status = Resolved;
1182
- resolved._result = moduleObject2;
1183
- }
1184
- }, function(error2) {
1185
- if (payload._status === Pending || payload._status === Uninitialized) {
1186
- var rejected = payload;
1187
- rejected._status = Rejected;
1188
- rejected._result = error2;
1189
- }
1190
- });
1191
- if (payload._status === Uninitialized) {
1192
- var pending = payload;
1193
- pending._status = Pending;
1194
- pending._result = thenable;
1195
- }
1196
- }
1197
- if (payload._status === Resolved) {
1198
- var moduleObject = payload._result;
1199
- {
1200
- if (moduleObject === void 0) {
1201
- error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject);
1202
- }
1203
- }
1204
- {
1205
- if (!("default" in moduleObject)) {
1206
- error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
1207
- }
1208
- }
1209
- return moduleObject.default;
1210
- } else {
1211
- throw payload._result;
1212
- }
1213
- }
1214
- function lazy(ctor) {
1215
- var payload = {
1216
- // We use these fields to store the result.
1217
- _status: Uninitialized,
1218
- _result: ctor
1219
- };
1220
- var lazyType = {
1221
- $$typeof: REACT_LAZY_TYPE,
1222
- _payload: payload,
1223
- _init: lazyInitializer
1224
- };
1225
- {
1226
- var defaultProps;
1227
- var propTypes;
1228
- Object.defineProperties(lazyType, {
1229
- defaultProps: {
1230
- configurable: true,
1231
- get: function() {
1232
- return defaultProps;
1233
- },
1234
- set: function(newDefaultProps) {
1235
- error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
1236
- defaultProps = newDefaultProps;
1237
- Object.defineProperty(lazyType, "defaultProps", {
1238
- enumerable: true
1239
- });
1240
- }
1241
- },
1242
- propTypes: {
1243
- configurable: true,
1244
- get: function() {
1245
- return propTypes;
1246
- },
1247
- set: function(newPropTypes) {
1248
- error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
1249
- propTypes = newPropTypes;
1250
- Object.defineProperty(lazyType, "propTypes", {
1251
- enumerable: true
1252
- });
1253
- }
1254
- }
1255
- });
1256
- }
1257
- return lazyType;
1258
- }
1259
- function forwardRef(render) {
1260
- {
1261
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1262
- error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
1263
- } else if (typeof render !== "function") {
1264
- error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
1265
- } else {
1266
- if (render.length !== 0 && render.length !== 2) {
1267
- error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
1268
- }
1269
- }
1270
- if (render != null) {
1271
- if (render.defaultProps != null || render.propTypes != null) {
1272
- error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
1273
- }
1274
- }
1275
- }
1276
- var elementType = {
1277
- $$typeof: REACT_FORWARD_REF_TYPE,
1278
- render
1279
- };
1280
- {
1281
- var ownName;
1282
- Object.defineProperty(elementType, "displayName", {
1283
- enumerable: false,
1284
- configurable: true,
1285
- get: function() {
1286
- return ownName;
1287
- },
1288
- set: function(name) {
1289
- ownName = name;
1290
- if (!render.name && !render.displayName) {
1291
- render.displayName = name;
1292
- }
1293
- }
1294
- });
1295
- }
1296
- return elementType;
1297
- }
1298
- var REACT_MODULE_REFERENCE;
1299
- {
1300
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
1301
- }
1302
- function isValidElementType(type) {
1303
- if (typeof type === "string" || typeof type === "function") {
1304
- return true;
1305
- }
1306
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
1307
- return true;
1308
- }
1309
- if (typeof type === "object" && type !== null) {
1310
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
1311
- // types supported by any Flight configuration anywhere since
1312
- // we don't know which Flight build this will end up being used
1313
- // with.
1314
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
1315
- return true;
1316
- }
1317
- }
1318
- return false;
1319
- }
1320
- function memo(type, compare) {
1321
- {
1322
- if (!isValidElementType(type)) {
1323
- error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
1324
- }
1325
- }
1326
- var elementType = {
1327
- $$typeof: REACT_MEMO_TYPE,
1328
- type,
1329
- compare: compare === void 0 ? null : compare
1330
- };
1331
- {
1332
- var ownName;
1333
- Object.defineProperty(elementType, "displayName", {
1334
- enumerable: false,
1335
- configurable: true,
1336
- get: function() {
1337
- return ownName;
1338
- },
1339
- set: function(name) {
1340
- ownName = name;
1341
- if (!type.name && !type.displayName) {
1342
- type.displayName = name;
1343
- }
1344
- }
1345
- });
1346
- }
1347
- return elementType;
1348
- }
1349
- function resolveDispatcher() {
1350
- var dispatcher = ReactCurrentDispatcher.current;
1351
- {
1352
- if (dispatcher === null) {
1353
- error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
1354
- }
1355
- }
1356
- return dispatcher;
1357
- }
1358
- function useContext(Context) {
1359
- var dispatcher = resolveDispatcher();
1360
- {
1361
- if (Context._context !== void 0) {
1362
- var realContext = Context._context;
1363
- if (realContext.Consumer === Context) {
1364
- error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");
1365
- } else if (realContext.Provider === Context) {
1366
- error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1367
- }
1368
- }
1369
- }
1370
- return dispatcher.useContext(Context);
1371
- }
1372
- function useState(initialState) {
1373
- var dispatcher = resolveDispatcher();
1374
- return dispatcher.useState(initialState);
1375
- }
1376
- function useReducer(reducer, initialArg, init) {
1377
- var dispatcher = resolveDispatcher();
1378
- return dispatcher.useReducer(reducer, initialArg, init);
1379
- }
1380
- function useRef(initialValue) {
1381
- var dispatcher = resolveDispatcher();
1382
- return dispatcher.useRef(initialValue);
1383
- }
1384
- function useEffect(create, deps) {
1385
- var dispatcher = resolveDispatcher();
1386
- return dispatcher.useEffect(create, deps);
1387
- }
1388
- function useInsertionEffect(create, deps) {
1389
- var dispatcher = resolveDispatcher();
1390
- return dispatcher.useInsertionEffect(create, deps);
1391
- }
1392
- function useLayoutEffect(create, deps) {
1393
- var dispatcher = resolveDispatcher();
1394
- return dispatcher.useLayoutEffect(create, deps);
1395
- }
1396
- function useCallback(callback, deps) {
1397
- var dispatcher = resolveDispatcher();
1398
- return dispatcher.useCallback(callback, deps);
1399
- }
1400
- function useMemo(create, deps) {
1401
- var dispatcher = resolveDispatcher();
1402
- return dispatcher.useMemo(create, deps);
1403
- }
1404
- function useImperativeHandle(ref, create, deps) {
1405
- var dispatcher = resolveDispatcher();
1406
- return dispatcher.useImperativeHandle(ref, create, deps);
1407
- }
1408
- function useDebugValue(value, formatterFn) {
1409
- {
1410
- var dispatcher = resolveDispatcher();
1411
- return dispatcher.useDebugValue(value, formatterFn);
1412
- }
1413
- }
1414
- function useTransition() {
1415
- var dispatcher = resolveDispatcher();
1416
- return dispatcher.useTransition();
1417
- }
1418
- function useDeferredValue(value) {
1419
- var dispatcher = resolveDispatcher();
1420
- return dispatcher.useDeferredValue(value);
1421
- }
1422
- function useId() {
1423
- var dispatcher = resolveDispatcher();
1424
- return dispatcher.useId();
1425
- }
1426
- function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
1427
- var dispatcher = resolveDispatcher();
1428
- return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1429
- }
1430
- var disabledDepth = 0;
1431
- var prevLog;
1432
- var prevInfo;
1433
- var prevWarn;
1434
- var prevError;
1435
- var prevGroup;
1436
- var prevGroupCollapsed;
1437
- var prevGroupEnd;
1438
- function disabledLog() {
1439
- }
1440
- disabledLog.__reactDisabledLog = true;
1441
- function disableLogs() {
1442
- {
1443
- if (disabledDepth === 0) {
1444
- prevLog = console.log;
1445
- prevInfo = console.info;
1446
- prevWarn = console.warn;
1447
- prevError = console.error;
1448
- prevGroup = console.group;
1449
- prevGroupCollapsed = console.groupCollapsed;
1450
- prevGroupEnd = console.groupEnd;
1451
- var props = {
1452
- configurable: true,
1453
- enumerable: true,
1454
- value: disabledLog,
1455
- writable: true
1456
- };
1457
- Object.defineProperties(console, {
1458
- info: props,
1459
- log: props,
1460
- warn: props,
1461
- error: props,
1462
- group: props,
1463
- groupCollapsed: props,
1464
- groupEnd: props
1465
- });
1466
- }
1467
- disabledDepth++;
1468
- }
1469
- }
1470
- function reenableLogs() {
1471
- {
1472
- disabledDepth--;
1473
- if (disabledDepth === 0) {
1474
- var props = {
1475
- configurable: true,
1476
- enumerable: true,
1477
- writable: true
1478
- };
1479
- Object.defineProperties(console, {
1480
- log: assign({}, props, {
1481
- value: prevLog
1482
- }),
1483
- info: assign({}, props, {
1484
- value: prevInfo
1485
- }),
1486
- warn: assign({}, props, {
1487
- value: prevWarn
1488
- }),
1489
- error: assign({}, props, {
1490
- value: prevError
1491
- }),
1492
- group: assign({}, props, {
1493
- value: prevGroup
1494
- }),
1495
- groupCollapsed: assign({}, props, {
1496
- value: prevGroupCollapsed
1497
- }),
1498
- groupEnd: assign({}, props, {
1499
- value: prevGroupEnd
1500
- })
1501
- });
1502
- }
1503
- if (disabledDepth < 0) {
1504
- error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1505
- }
1506
- }
1507
- }
1508
- var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1509
- var prefix;
1510
- function describeBuiltInComponentFrame(name, source, ownerFn) {
1511
- {
1512
- if (prefix === void 0) {
1513
- try {
1514
- throw Error();
1515
- } catch (x) {
1516
- var match = x.stack.trim().match(/\n( *(at )?)/);
1517
- prefix = match && match[1] || "";
1518
- }
1519
- }
1520
- return "\n" + prefix + name;
1521
- }
1522
- }
1523
- var reentry = false;
1524
- var componentFrameCache;
1525
- {
1526
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
1527
- componentFrameCache = new PossiblyWeakMap();
1528
- }
1529
- function describeNativeComponentFrame(fn, construct) {
1530
- if (!fn || reentry) {
1531
- return "";
1532
- }
1533
- {
1534
- var frame = componentFrameCache.get(fn);
1535
- if (frame !== void 0) {
1536
- return frame;
1537
- }
1538
- }
1539
- var control;
1540
- reentry = true;
1541
- var previousPrepareStackTrace = Error.prepareStackTrace;
1542
- Error.prepareStackTrace = void 0;
1543
- var previousDispatcher;
1544
- {
1545
- previousDispatcher = ReactCurrentDispatcher$1.current;
1546
- ReactCurrentDispatcher$1.current = null;
1547
- disableLogs();
1548
- }
1549
- try {
1550
- if (construct) {
1551
- var Fake = function() {
1552
- throw Error();
1553
- };
1554
- Object.defineProperty(Fake.prototype, "props", {
1555
- set: function() {
1556
- throw Error();
1557
- }
1558
- });
1559
- if (typeof Reflect === "object" && Reflect.construct) {
1560
- try {
1561
- Reflect.construct(Fake, []);
1562
- } catch (x) {
1563
- control = x;
1564
- }
1565
- Reflect.construct(fn, [], Fake);
1566
- } else {
1567
- try {
1568
- Fake.call();
1569
- } catch (x) {
1570
- control = x;
1571
- }
1572
- fn.call(Fake.prototype);
1573
- }
1574
- } else {
1575
- try {
1576
- throw Error();
1577
- } catch (x) {
1578
- control = x;
1579
- }
1580
- fn();
1581
- }
1582
- } catch (sample) {
1583
- if (sample && control && typeof sample.stack === "string") {
1584
- var sampleLines = sample.stack.split("\n");
1585
- var controlLines = control.stack.split("\n");
1586
- var s = sampleLines.length - 1;
1587
- var c = controlLines.length - 1;
1588
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1589
- c--;
1590
- }
1591
- for (; s >= 1 && c >= 0; s--, c--) {
1592
- if (sampleLines[s] !== controlLines[c]) {
1593
- if (s !== 1 || c !== 1) {
1594
- do {
1595
- s--;
1596
- c--;
1597
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
1598
- var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
1599
- if (fn.displayName && _frame.includes("<anonymous>")) {
1600
- _frame = _frame.replace("<anonymous>", fn.displayName);
1601
- }
1602
- {
1603
- if (typeof fn === "function") {
1604
- componentFrameCache.set(fn, _frame);
1605
- }
1606
- }
1607
- return _frame;
1608
- }
1609
- } while (s >= 1 && c >= 0);
1610
- }
1611
- break;
1612
- }
1613
- }
1614
- }
1615
- } finally {
1616
- reentry = false;
1617
- {
1618
- ReactCurrentDispatcher$1.current = previousDispatcher;
1619
- reenableLogs();
1620
- }
1621
- Error.prepareStackTrace = previousPrepareStackTrace;
1622
- }
1623
- var name = fn ? fn.displayName || fn.name : "";
1624
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
1625
- {
1626
- if (typeof fn === "function") {
1627
- componentFrameCache.set(fn, syntheticFrame);
1628
- }
1629
- }
1630
- return syntheticFrame;
1631
- }
1632
- function describeFunctionComponentFrame(fn, source, ownerFn) {
1633
- {
1634
- return describeNativeComponentFrame(fn, false);
1635
- }
1636
- }
1637
- function shouldConstruct(Component2) {
1638
- var prototype = Component2.prototype;
1639
- return !!(prototype && prototype.isReactComponent);
1640
- }
1641
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1642
- if (type == null) {
1643
- return "";
1644
- }
1645
- if (typeof type === "function") {
1646
- {
1647
- return describeNativeComponentFrame(type, shouldConstruct(type));
1648
- }
1649
- }
1650
- if (typeof type === "string") {
1651
- return describeBuiltInComponentFrame(type);
1652
- }
1653
- switch (type) {
1654
- case REACT_SUSPENSE_TYPE:
1655
- return describeBuiltInComponentFrame("Suspense");
1656
- case REACT_SUSPENSE_LIST_TYPE:
1657
- return describeBuiltInComponentFrame("SuspenseList");
1658
- }
1659
- if (typeof type === "object") {
1660
- switch (type.$$typeof) {
1661
- case REACT_FORWARD_REF_TYPE:
1662
- return describeFunctionComponentFrame(type.render);
1663
- case REACT_MEMO_TYPE:
1664
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1665
- case REACT_LAZY_TYPE: {
1666
- var lazyComponent = type;
1667
- var payload = lazyComponent._payload;
1668
- var init = lazyComponent._init;
1669
- try {
1670
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
1671
- } catch (x) {
1672
- }
1673
- }
1674
- }
1675
- }
1676
- return "";
1677
- }
1678
- var loggedTypeFailures = {};
1679
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1680
- function setCurrentlyValidatingElement(element) {
1681
- {
1682
- if (element) {
1683
- var owner = element._owner;
1684
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1685
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1686
- } else {
1687
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1688
- }
1689
- }
1690
- }
1691
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
1692
- {
1693
- var has = Function.call.bind(hasOwnProperty2);
1694
- for (var typeSpecName in typeSpecs) {
1695
- if (has(typeSpecs, typeSpecName)) {
1696
- var error$1 = void 0;
1697
- try {
1698
- if (typeof typeSpecs[typeSpecName] !== "function") {
1699
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1700
- err.name = "Invariant Violation";
1701
- throw err;
1702
- }
1703
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1704
- } catch (ex) {
1705
- error$1 = ex;
1706
- }
1707
- if (error$1 && !(error$1 instanceof Error)) {
1708
- setCurrentlyValidatingElement(element);
1709
- error("%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).", componentName || "React class", location, typeSpecName, typeof error$1);
1710
- setCurrentlyValidatingElement(null);
1711
- }
1712
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
1713
- loggedTypeFailures[error$1.message] = true;
1714
- setCurrentlyValidatingElement(element);
1715
- error("Failed %s type: %s", location, error$1.message);
1716
- setCurrentlyValidatingElement(null);
1717
- }
1718
- }
1719
- }
1720
- }
1721
- }
1722
- function setCurrentlyValidatingElement$1(element) {
1723
- {
1724
- if (element) {
1725
- var owner = element._owner;
1726
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1727
- setExtraStackFrame(stack);
1728
- } else {
1729
- setExtraStackFrame(null);
1730
- }
1731
- }
1732
- }
1733
- var propTypesMisspellWarningShown;
1734
- {
1735
- propTypesMisspellWarningShown = false;
1736
- }
1737
- function getDeclarationErrorAddendum() {
1738
- if (ReactCurrentOwner.current) {
1739
- var name = getComponentNameFromType(ReactCurrentOwner.current.type);
1740
- if (name) {
1741
- return "\n\nCheck the render method of `" + name + "`.";
1742
- }
1743
- }
1744
- return "";
1745
- }
1746
- function getSourceInfoErrorAddendum(source) {
1747
- if (source !== void 0) {
1748
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1749
- var lineNumber = source.lineNumber;
1750
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1751
- }
1752
- return "";
1753
- }
1754
- function getSourceInfoErrorAddendumForProps(elementProps) {
1755
- if (elementProps !== null && elementProps !== void 0) {
1756
- return getSourceInfoErrorAddendum(elementProps.__source);
1757
- }
1758
- return "";
1759
- }
1760
- var ownerHasKeyUseWarning = {};
1761
- function getCurrentComponentErrorInfo(parentType) {
1762
- var info = getDeclarationErrorAddendum();
1763
- if (!info) {
1764
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
1765
- if (parentName) {
1766
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1767
- }
1768
- }
1769
- return info;
1770
- }
1771
- function validateExplicitKey(element, parentType) {
1772
- if (!element._store || element._store.validated || element.key != null) {
1773
- return;
1774
- }
1775
- element._store.validated = true;
1776
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1777
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1778
- return;
1779
- }
1780
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1781
- var childOwner = "";
1782
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1783
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1784
- }
1785
- {
1786
- setCurrentlyValidatingElement$1(element);
1787
- error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
1788
- setCurrentlyValidatingElement$1(null);
1789
- }
1790
- }
1791
- function validateChildKeys(node, parentType) {
1792
- if (typeof node !== "object") {
1793
- return;
1794
- }
1795
- if (isArray2(node)) {
1796
- for (var i = 0; i < node.length; i++) {
1797
- var child = node[i];
1798
- if (isValidElement(child)) {
1799
- validateExplicitKey(child, parentType);
1800
- }
1801
- }
1802
- } else if (isValidElement(node)) {
1803
- if (node._store) {
1804
- node._store.validated = true;
1805
- }
1806
- } else if (node) {
1807
- var iteratorFn = getIteratorFn(node);
1808
- if (typeof iteratorFn === "function") {
1809
- if (iteratorFn !== node.entries) {
1810
- var iterator = iteratorFn.call(node);
1811
- var step;
1812
- while (!(step = iterator.next()).done) {
1813
- if (isValidElement(step.value)) {
1814
- validateExplicitKey(step.value, parentType);
1815
- }
1816
- }
1817
- }
1818
- }
1819
- }
1820
- }
1821
- function validatePropTypes(element) {
1822
- {
1823
- var type = element.type;
1824
- if (type === null || type === void 0 || typeof type === "string") {
1825
- return;
1826
- }
1827
- var propTypes;
1828
- if (typeof type === "function") {
1829
- propTypes = type.propTypes;
1830
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1831
- // Inner props are checked in the reconciler.
1832
- type.$$typeof === REACT_MEMO_TYPE)) {
1833
- propTypes = type.propTypes;
1834
- } else {
1835
- return;
1836
- }
1837
- if (propTypes) {
1838
- var name = getComponentNameFromType(type);
1839
- checkPropTypes(propTypes, element.props, "prop", name, element);
1840
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
1841
- propTypesMisspellWarningShown = true;
1842
- var _name = getComponentNameFromType(type);
1843
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
1844
- }
1845
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
1846
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1847
- }
1848
- }
1849
- }
1850
- function validateFragmentProps(fragment) {
1851
- {
1852
- var keys2 = Object.keys(fragment.props);
1853
- for (var i = 0; i < keys2.length; i++) {
1854
- var key = keys2[i];
1855
- if (key !== "children" && key !== "key") {
1856
- setCurrentlyValidatingElement$1(fragment);
1857
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1858
- setCurrentlyValidatingElement$1(null);
1859
- break;
1860
- }
1861
- }
1862
- if (fragment.ref !== null) {
1863
- setCurrentlyValidatingElement$1(fragment);
1864
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
1865
- setCurrentlyValidatingElement$1(null);
1866
- }
1867
- }
1868
- }
1869
- function createElementWithValidation(type, props, children) {
1870
- var validType = isValidElementType(type);
1871
- if (!validType) {
1872
- var info = "";
1873
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
1874
- info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
1875
- }
1876
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
1877
- if (sourceInfo) {
1878
- info += sourceInfo;
1879
- } else {
1880
- info += getDeclarationErrorAddendum();
1881
- }
1882
- var typeString;
1883
- if (type === null) {
1884
- typeString = "null";
1885
- } else if (isArray2(type)) {
1886
- typeString = "array";
1887
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
1888
- typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
1889
- info = " Did you accidentally export a JSX literal instead of a component?";
1890
- } else {
1891
- typeString = typeof type;
1892
- }
1893
- {
1894
- error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
1895
- }
1896
- }
1897
- var element = createElement.apply(this, arguments);
1898
- if (element == null) {
1899
- return element;
1900
- }
1901
- if (validType) {
1902
- for (var i = 2; i < arguments.length; i++) {
1903
- validateChildKeys(arguments[i], type);
1904
- }
1905
- }
1906
- if (type === REACT_FRAGMENT_TYPE) {
1907
- validateFragmentProps(element);
1908
- } else {
1909
- validatePropTypes(element);
1910
- }
1911
- return element;
1912
- }
1913
- var didWarnAboutDeprecatedCreateFactory = false;
1914
- function createFactoryWithValidation(type) {
1915
- var validatedFactory = createElementWithValidation.bind(null, type);
1916
- validatedFactory.type = type;
1917
- {
1918
- if (!didWarnAboutDeprecatedCreateFactory) {
1919
- didWarnAboutDeprecatedCreateFactory = true;
1920
- warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
1921
- }
1922
- Object.defineProperty(validatedFactory, "type", {
1923
- enumerable: false,
1924
- get: function() {
1925
- warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
1926
- Object.defineProperty(this, "type", {
1927
- value: type
1928
- });
1929
- return type;
1930
- }
1931
- });
1932
- }
1933
- return validatedFactory;
1934
- }
1935
- function cloneElementWithValidation(element, props, children) {
1936
- var newElement = cloneElement.apply(this, arguments);
1937
- for (var i = 2; i < arguments.length; i++) {
1938
- validateChildKeys(arguments[i], newElement.type);
1939
- }
1940
- validatePropTypes(newElement);
1941
- return newElement;
1942
- }
1943
- function startTransition(scope, options) {
1944
- var prevTransition = ReactCurrentBatchConfig.transition;
1945
- ReactCurrentBatchConfig.transition = {};
1946
- var currentTransition = ReactCurrentBatchConfig.transition;
1947
- {
1948
- ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
1949
- }
1950
- try {
1951
- scope();
1952
- } finally {
1953
- ReactCurrentBatchConfig.transition = prevTransition;
1954
- {
1955
- if (prevTransition === null && currentTransition._updatedFibers) {
1956
- var updatedFibersCount = currentTransition._updatedFibers.size;
1957
- if (updatedFibersCount > 10) {
1958
- warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
1959
- }
1960
- currentTransition._updatedFibers.clear();
1961
- }
1962
- }
1963
- }
1964
- }
1965
- var didWarnAboutMessageChannel = false;
1966
- var enqueueTaskImpl = null;
1967
- function enqueueTask(task) {
1968
- if (enqueueTaskImpl === null) {
1969
- try {
1970
- var requireString = ("require" + Math.random()).slice(0, 7);
1971
- var nodeRequire = module2 && module2[requireString];
1972
- enqueueTaskImpl = nodeRequire.call(module2, "timers").setImmediate;
1973
- } catch (_err) {
1974
- enqueueTaskImpl = function(callback) {
1975
- {
1976
- if (didWarnAboutMessageChannel === false) {
1977
- didWarnAboutMessageChannel = true;
1978
- if (typeof MessageChannel === "undefined") {
1979
- error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.");
1980
- }
1981
- }
1982
- }
1983
- var channel = new MessageChannel();
1984
- channel.port1.onmessage = callback;
1985
- channel.port2.postMessage(void 0);
1986
- };
1987
- }
1988
- }
1989
- return enqueueTaskImpl(task);
1990
- }
1991
- var actScopeDepth = 0;
1992
- var didWarnNoAwaitAct = false;
1993
- function act(callback) {
1994
- {
1995
- var prevActScopeDepth = actScopeDepth;
1996
- actScopeDepth++;
1997
- if (ReactCurrentActQueue.current === null) {
1998
- ReactCurrentActQueue.current = [];
1999
- }
2000
- var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
2001
- var result;
2002
- try {
2003
- ReactCurrentActQueue.isBatchingLegacy = true;
2004
- result = callback();
2005
- if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
2006
- var queue = ReactCurrentActQueue.current;
2007
- if (queue !== null) {
2008
- ReactCurrentActQueue.didScheduleLegacyUpdate = false;
2009
- flushActQueue(queue);
2010
- }
2011
- }
2012
- } catch (error2) {
2013
- popActScope(prevActScopeDepth);
2014
- throw error2;
2015
- } finally {
2016
- ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
2017
- }
2018
- if (result !== null && typeof result === "object" && typeof result.then === "function") {
2019
- var thenableResult = result;
2020
- var wasAwaited = false;
2021
- var thenable = {
2022
- then: function(resolve, reject) {
2023
- wasAwaited = true;
2024
- thenableResult.then(function(returnValue2) {
2025
- popActScope(prevActScopeDepth);
2026
- if (actScopeDepth === 0) {
2027
- recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
2028
- } else {
2029
- resolve(returnValue2);
2030
- }
2031
- }, function(error2) {
2032
- popActScope(prevActScopeDepth);
2033
- reject(error2);
2034
- });
2035
- }
2036
- };
2037
- {
2038
- if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
2039
- Promise.resolve().then(function() {
2040
- }).then(function() {
2041
- if (!wasAwaited) {
2042
- didWarnNoAwaitAct = true;
2043
- error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);");
2044
- }
2045
- });
2046
- }
2047
- }
2048
- return thenable;
2049
- } else {
2050
- var returnValue = result;
2051
- popActScope(prevActScopeDepth);
2052
- if (actScopeDepth === 0) {
2053
- var _queue = ReactCurrentActQueue.current;
2054
- if (_queue !== null) {
2055
- flushActQueue(_queue);
2056
- ReactCurrentActQueue.current = null;
2057
- }
2058
- var _thenable = {
2059
- then: function(resolve, reject) {
2060
- if (ReactCurrentActQueue.current === null) {
2061
- ReactCurrentActQueue.current = [];
2062
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2063
- } else {
2064
- resolve(returnValue);
2065
- }
2066
- }
2067
- };
2068
- return _thenable;
2069
- } else {
2070
- var _thenable2 = {
2071
- then: function(resolve, reject) {
2072
- resolve(returnValue);
2073
- }
2074
- };
2075
- return _thenable2;
2076
- }
2077
- }
2078
- }
2079
- }
2080
- function popActScope(prevActScopeDepth) {
2081
- {
2082
- if (prevActScopeDepth !== actScopeDepth - 1) {
2083
- error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
2084
- }
2085
- actScopeDepth = prevActScopeDepth;
2086
- }
2087
- }
2088
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
2089
- {
2090
- var queue = ReactCurrentActQueue.current;
2091
- if (queue !== null) {
2092
- try {
2093
- flushActQueue(queue);
2094
- enqueueTask(function() {
2095
- if (queue.length === 0) {
2096
- ReactCurrentActQueue.current = null;
2097
- resolve(returnValue);
2098
- } else {
2099
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2100
- }
2101
- });
2102
- } catch (error2) {
2103
- reject(error2);
2104
- }
2105
- } else {
2106
- resolve(returnValue);
2107
- }
2108
- }
2109
- }
2110
- var isFlushing = false;
2111
- function flushActQueue(queue) {
2112
- {
2113
- if (!isFlushing) {
2114
- isFlushing = true;
2115
- var i = 0;
2116
- try {
2117
- for (; i < queue.length; i++) {
2118
- var callback = queue[i];
2119
- do {
2120
- callback = callback(true);
2121
- } while (callback !== null);
2122
- }
2123
- queue.length = 0;
2124
- } catch (error2) {
2125
- queue = queue.slice(i + 1);
2126
- throw error2;
2127
- } finally {
2128
- isFlushing = false;
2129
- }
2130
- }
2131
- }
2132
- }
2133
- var createElement$1 = createElementWithValidation;
2134
- var cloneElement$1 = cloneElementWithValidation;
2135
- var createFactory = createFactoryWithValidation;
2136
- var Children = {
2137
- map: mapChildren,
2138
- forEach: forEachChildren,
2139
- count: countChildren,
2140
- toArray,
2141
- only: onlyChild
2142
- };
2143
- exports2.Children = Children;
2144
- exports2.Component = Component;
2145
- exports2.Fragment = REACT_FRAGMENT_TYPE;
2146
- exports2.Profiler = REACT_PROFILER_TYPE;
2147
- exports2.PureComponent = PureComponent;
2148
- exports2.StrictMode = REACT_STRICT_MODE_TYPE;
2149
- exports2.Suspense = REACT_SUSPENSE_TYPE;
2150
- exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2151
- exports2.cloneElement = cloneElement$1;
2152
- exports2.createContext = createContext;
2153
- exports2.createElement = createElement$1;
2154
- exports2.createFactory = createFactory;
2155
- exports2.createRef = createRef;
2156
- exports2.forwardRef = forwardRef;
2157
- exports2.isValidElement = isValidElement;
2158
- exports2.lazy = lazy;
2159
- exports2.memo = memo;
2160
- exports2.startTransition = startTransition;
2161
- exports2.unstable_act = act;
2162
- exports2.useCallback = useCallback;
2163
- exports2.useContext = useContext;
2164
- exports2.useDebugValue = useDebugValue;
2165
- exports2.useDeferredValue = useDeferredValue;
2166
- exports2.useEffect = useEffect;
2167
- exports2.useId = useId;
2168
- exports2.useImperativeHandle = useImperativeHandle;
2169
- exports2.useInsertionEffect = useInsertionEffect;
2170
- exports2.useLayoutEffect = useLayoutEffect;
2171
- exports2.useMemo = useMemo;
2172
- exports2.useReducer = useReducer;
2173
- exports2.useRef = useRef;
2174
- exports2.useState = useState;
2175
- exports2.useSyncExternalStore = useSyncExternalStore;
2176
- exports2.useTransition = useTransition;
2177
- exports2.version = ReactVersion;
2178
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
2179
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2180
- }
2181
- })();
2182
- }
2183
- })(react_development, react_development.exports);
2184
- return react_development.exports;
2185
- }
2186
- if (process.env.NODE_ENV === "production") {
2187
- react.exports = requireReact_production_min();
2188
- } else {
2189
- react.exports = requireReact_development();
2190
- }
2191
- var reactExports = react.exports;
2192
- /**
2193
- * @license React
2194
- * react-jsx-runtime.production.min.js
2195
- *
2196
- * Copyright (c) Facebook, Inc. and its affiliates.
2197
- *
2198
- * This source code is licensed under the MIT license found in the
2199
- * LICENSE file in the root directory of this source tree.
2200
- */
2201
- var hasRequiredReactJsxRuntime_production_min;
2202
- function requireReactJsxRuntime_production_min() {
2203
- if (hasRequiredReactJsxRuntime_production_min)
2204
- return reactJsxRuntime_production_min;
2205
- hasRequiredReactJsxRuntime_production_min = 1;
2206
- var f = reactExports, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: true, ref: true, __self: true, __source: true };
2207
- function q(c, a, g) {
2208
- var b, d = {}, e = null, h = null;
2209
- void 0 !== g && (e = "" + g);
2210
- void 0 !== a.key && (e = "" + a.key);
2211
- void 0 !== a.ref && (h = a.ref);
2212
- for (b in a)
2213
- m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
2214
- if (c && c.defaultProps)
2215
- for (b in a = c.defaultProps, a)
2216
- void 0 === d[b] && (d[b] = a[b]);
2217
- return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
2218
- }
2219
- reactJsxRuntime_production_min.Fragment = l;
2220
- reactJsxRuntime_production_min.jsx = q;
2221
- reactJsxRuntime_production_min.jsxs = q;
2222
- return reactJsxRuntime_production_min;
2223
- }
2224
- var reactJsxRuntime_development = {};
2225
- /**
2226
- * @license React
2227
- * react-jsx-runtime.development.js
2228
- *
2229
- * Copyright (c) Facebook, Inc. and its affiliates.
2230
- *
2231
- * This source code is licensed under the MIT license found in the
2232
- * LICENSE file in the root directory of this source tree.
2233
- */
2234
- var hasRequiredReactJsxRuntime_development;
2235
- function requireReactJsxRuntime_development() {
2236
- if (hasRequiredReactJsxRuntime_development)
2237
- return reactJsxRuntime_development;
2238
- hasRequiredReactJsxRuntime_development = 1;
2239
- if (process.env.NODE_ENV !== "production") {
2240
- (function() {
2241
- var React = reactExports;
2242
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
2243
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
2244
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
2245
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
2246
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
2247
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
2248
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
2249
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
2250
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
2251
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
2252
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
2253
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
2254
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
2255
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
2256
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
2257
- function getIteratorFn(maybeIterable) {
2258
- if (maybeIterable === null || typeof maybeIterable !== "object") {
2259
- return null;
2260
- }
2261
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
2262
- if (typeof maybeIterator === "function") {
2263
- return maybeIterator;
2264
- }
2265
- return null;
2266
- }
2267
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2268
- function error(format) {
2269
- {
2270
- {
2271
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2272
- args[_key2 - 1] = arguments[_key2];
2273
- }
2274
- printWarning("error", format, args);
2275
- }
2276
- }
2277
- }
2278
- function printWarning(level, format, args) {
2279
- {
2280
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
2281
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
2282
- if (stack !== "") {
2283
- format += "%s";
2284
- args = args.concat([stack]);
2285
- }
2286
- var argsWithFormat = args.map(function(item) {
2287
- return String(item);
2288
- });
2289
- argsWithFormat.unshift("Warning: " + format);
2290
- Function.prototype.apply.call(console[level], console, argsWithFormat);
2291
- }
2292
- }
2293
- var enableScopeAPI = false;
2294
- var enableCacheElement = false;
2295
- var enableTransitionTracing = false;
2296
- var enableLegacyHidden = false;
2297
- var enableDebugTracing = false;
2298
- var REACT_MODULE_REFERENCE;
2299
- {
2300
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
2301
- }
2302
- function isValidElementType(type) {
2303
- if (typeof type === "string" || typeof type === "function") {
2304
- return true;
2305
- }
2306
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
2307
- return true;
2308
- }
2309
- if (typeof type === "object" && type !== null) {
2310
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
2311
- // types supported by any Flight configuration anywhere since
2312
- // we don't know which Flight build this will end up being used
2313
- // with.
2314
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
2315
- return true;
2316
- }
2317
- }
2318
- return false;
2319
- }
2320
- function getWrappedName(outerType, innerType, wrapperName) {
2321
- var displayName = outerType.displayName;
2322
- if (displayName) {
2323
- return displayName;
2324
- }
2325
- var functionName = innerType.displayName || innerType.name || "";
2326
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
2327
- }
2328
- function getContextName(type) {
2329
- return type.displayName || "Context";
2330
- }
2331
- function getComponentNameFromType(type) {
2332
- if (type == null) {
2333
- return null;
2334
- }
2335
- {
2336
- if (typeof type.tag === "number") {
2337
- error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
2338
- }
2339
- }
2340
- if (typeof type === "function") {
2341
- return type.displayName || type.name || null;
2342
- }
2343
- if (typeof type === "string") {
2344
- return type;
2345
- }
2346
- switch (type) {
2347
- case REACT_FRAGMENT_TYPE:
2348
- return "Fragment";
2349
- case REACT_PORTAL_TYPE:
2350
- return "Portal";
2351
- case REACT_PROFILER_TYPE:
2352
- return "Profiler";
2353
- case REACT_STRICT_MODE_TYPE:
2354
- return "StrictMode";
2355
- case REACT_SUSPENSE_TYPE:
2356
- return "Suspense";
2357
- case REACT_SUSPENSE_LIST_TYPE:
2358
- return "SuspenseList";
2359
- }
2360
- if (typeof type === "object") {
2361
- switch (type.$$typeof) {
2362
- case REACT_CONTEXT_TYPE:
2363
- var context = type;
2364
- return getContextName(context) + ".Consumer";
2365
- case REACT_PROVIDER_TYPE:
2366
- var provider = type;
2367
- return getContextName(provider._context) + ".Provider";
2368
- case REACT_FORWARD_REF_TYPE:
2369
- return getWrappedName(type, type.render, "ForwardRef");
2370
- case REACT_MEMO_TYPE:
2371
- var outerName = type.displayName || null;
2372
- if (outerName !== null) {
2373
- return outerName;
2374
- }
2375
- return getComponentNameFromType(type.type) || "Memo";
2376
- case REACT_LAZY_TYPE: {
2377
- var lazyComponent = type;
2378
- var payload = lazyComponent._payload;
2379
- var init = lazyComponent._init;
2380
- try {
2381
- return getComponentNameFromType(init(payload));
2382
- } catch (x) {
2383
- return null;
2384
- }
2385
- }
2386
- }
2387
- }
2388
- return null;
2389
- }
2390
- var assign = Object.assign;
2391
- var disabledDepth = 0;
2392
- var prevLog;
2393
- var prevInfo;
2394
- var prevWarn;
2395
- var prevError;
2396
- var prevGroup;
2397
- var prevGroupCollapsed;
2398
- var prevGroupEnd;
2399
- function disabledLog() {
2400
- }
2401
- disabledLog.__reactDisabledLog = true;
2402
- function disableLogs() {
2403
- {
2404
- if (disabledDepth === 0) {
2405
- prevLog = console.log;
2406
- prevInfo = console.info;
2407
- prevWarn = console.warn;
2408
- prevError = console.error;
2409
- prevGroup = console.group;
2410
- prevGroupCollapsed = console.groupCollapsed;
2411
- prevGroupEnd = console.groupEnd;
2412
- var props = {
2413
- configurable: true,
2414
- enumerable: true,
2415
- value: disabledLog,
2416
- writable: true
2417
- };
2418
- Object.defineProperties(console, {
2419
- info: props,
2420
- log: props,
2421
- warn: props,
2422
- error: props,
2423
- group: props,
2424
- groupCollapsed: props,
2425
- groupEnd: props
2426
- });
2427
- }
2428
- disabledDepth++;
2429
- }
2430
- }
2431
- function reenableLogs() {
2432
- {
2433
- disabledDepth--;
2434
- if (disabledDepth === 0) {
2435
- var props = {
2436
- configurable: true,
2437
- enumerable: true,
2438
- writable: true
2439
- };
2440
- Object.defineProperties(console, {
2441
- log: assign({}, props, {
2442
- value: prevLog
2443
- }),
2444
- info: assign({}, props, {
2445
- value: prevInfo
2446
- }),
2447
- warn: assign({}, props, {
2448
- value: prevWarn
2449
- }),
2450
- error: assign({}, props, {
2451
- value: prevError
2452
- }),
2453
- group: assign({}, props, {
2454
- value: prevGroup
2455
- }),
2456
- groupCollapsed: assign({}, props, {
2457
- value: prevGroupCollapsed
2458
- }),
2459
- groupEnd: assign({}, props, {
2460
- value: prevGroupEnd
2461
- })
2462
- });
2463
- }
2464
- if (disabledDepth < 0) {
2465
- error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
2466
- }
2467
- }
2468
- }
2469
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
2470
- var prefix;
2471
- function describeBuiltInComponentFrame(name, source, ownerFn) {
2472
- {
2473
- if (prefix === void 0) {
2474
- try {
2475
- throw Error();
2476
- } catch (x) {
2477
- var match = x.stack.trim().match(/\n( *(at )?)/);
2478
- prefix = match && match[1] || "";
2479
- }
2480
- }
2481
- return "\n" + prefix + name;
2482
- }
2483
- }
2484
- var reentry = false;
2485
- var componentFrameCache;
2486
- {
2487
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
2488
- componentFrameCache = new PossiblyWeakMap();
2489
- }
2490
- function describeNativeComponentFrame(fn, construct) {
2491
- if (!fn || reentry) {
2492
- return "";
2493
- }
2494
- {
2495
- var frame = componentFrameCache.get(fn);
2496
- if (frame !== void 0) {
2497
- return frame;
2498
- }
2499
- }
2500
- var control;
2501
- reentry = true;
2502
- var previousPrepareStackTrace = Error.prepareStackTrace;
2503
- Error.prepareStackTrace = void 0;
2504
- var previousDispatcher;
2505
- {
2506
- previousDispatcher = ReactCurrentDispatcher.current;
2507
- ReactCurrentDispatcher.current = null;
2508
- disableLogs();
2509
- }
2510
- try {
2511
- if (construct) {
2512
- var Fake = function() {
2513
- throw Error();
2514
- };
2515
- Object.defineProperty(Fake.prototype, "props", {
2516
- set: function() {
2517
- throw Error();
2518
- }
2519
- });
2520
- if (typeof Reflect === "object" && Reflect.construct) {
2521
- try {
2522
- Reflect.construct(Fake, []);
2523
- } catch (x) {
2524
- control = x;
2525
- }
2526
- Reflect.construct(fn, [], Fake);
2527
- } else {
2528
- try {
2529
- Fake.call();
2530
- } catch (x) {
2531
- control = x;
2532
- }
2533
- fn.call(Fake.prototype);
2534
- }
2535
- } else {
2536
- try {
2537
- throw Error();
2538
- } catch (x) {
2539
- control = x;
2540
- }
2541
- fn();
2542
- }
2543
- } catch (sample) {
2544
- if (sample && control && typeof sample.stack === "string") {
2545
- var sampleLines = sample.stack.split("\n");
2546
- var controlLines = control.stack.split("\n");
2547
- var s = sampleLines.length - 1;
2548
- var c = controlLines.length - 1;
2549
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
2550
- c--;
2551
- }
2552
- for (; s >= 1 && c >= 0; s--, c--) {
2553
- if (sampleLines[s] !== controlLines[c]) {
2554
- if (s !== 1 || c !== 1) {
2555
- do {
2556
- s--;
2557
- c--;
2558
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
2559
- var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
2560
- if (fn.displayName && _frame.includes("<anonymous>")) {
2561
- _frame = _frame.replace("<anonymous>", fn.displayName);
2562
- }
2563
- {
2564
- if (typeof fn === "function") {
2565
- componentFrameCache.set(fn, _frame);
2566
- }
2567
- }
2568
- return _frame;
2569
- }
2570
- } while (s >= 1 && c >= 0);
2571
- }
2572
- break;
2573
- }
2574
- }
2575
- }
2576
- } finally {
2577
- reentry = false;
2578
- {
2579
- ReactCurrentDispatcher.current = previousDispatcher;
2580
- reenableLogs();
2581
- }
2582
- Error.prepareStackTrace = previousPrepareStackTrace;
2583
- }
2584
- var name = fn ? fn.displayName || fn.name : "";
2585
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
2586
- {
2587
- if (typeof fn === "function") {
2588
- componentFrameCache.set(fn, syntheticFrame);
2589
- }
2590
- }
2591
- return syntheticFrame;
2592
- }
2593
- function describeFunctionComponentFrame(fn, source, ownerFn) {
2594
- {
2595
- return describeNativeComponentFrame(fn, false);
2596
- }
2597
- }
2598
- function shouldConstruct(Component) {
2599
- var prototype = Component.prototype;
2600
- return !!(prototype && prototype.isReactComponent);
2601
- }
2602
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2603
- if (type == null) {
2604
- return "";
2605
- }
2606
- if (typeof type === "function") {
2607
- {
2608
- return describeNativeComponentFrame(type, shouldConstruct(type));
2609
- }
2610
- }
2611
- if (typeof type === "string") {
2612
- return describeBuiltInComponentFrame(type);
2613
- }
2614
- switch (type) {
2615
- case REACT_SUSPENSE_TYPE:
2616
- return describeBuiltInComponentFrame("Suspense");
2617
- case REACT_SUSPENSE_LIST_TYPE:
2618
- return describeBuiltInComponentFrame("SuspenseList");
2619
- }
2620
- if (typeof type === "object") {
2621
- switch (type.$$typeof) {
2622
- case REACT_FORWARD_REF_TYPE:
2623
- return describeFunctionComponentFrame(type.render);
2624
- case REACT_MEMO_TYPE:
2625
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2626
- case REACT_LAZY_TYPE: {
2627
- var lazyComponent = type;
2628
- var payload = lazyComponent._payload;
2629
- var init = lazyComponent._init;
2630
- try {
2631
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2632
- } catch (x) {
2633
- }
2634
- }
2635
- }
2636
- }
2637
- return "";
2638
- }
2639
- var hasOwnProperty2 = Object.prototype.hasOwnProperty;
2640
- var loggedTypeFailures = {};
2641
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2642
- function setCurrentlyValidatingElement(element) {
2643
- {
2644
- if (element) {
2645
- var owner = element._owner;
2646
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2647
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
2648
- } else {
2649
- ReactDebugCurrentFrame.setExtraStackFrame(null);
2650
- }
2651
- }
2652
- }
2653
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
2654
- {
2655
- var has = Function.call.bind(hasOwnProperty2);
2656
- for (var typeSpecName in typeSpecs) {
2657
- if (has(typeSpecs, typeSpecName)) {
2658
- var error$1 = void 0;
2659
- try {
2660
- if (typeof typeSpecs[typeSpecName] !== "function") {
2661
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
2662
- err.name = "Invariant Violation";
2663
- throw err;
2664
- }
2665
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2666
- } catch (ex) {
2667
- error$1 = ex;
2668
- }
2669
- if (error$1 && !(error$1 instanceof Error)) {
2670
- setCurrentlyValidatingElement(element);
2671
- error("%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).", componentName || "React class", location, typeSpecName, typeof error$1);
2672
- setCurrentlyValidatingElement(null);
2673
- }
2674
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2675
- loggedTypeFailures[error$1.message] = true;
2676
- setCurrentlyValidatingElement(element);
2677
- error("Failed %s type: %s", location, error$1.message);
2678
- setCurrentlyValidatingElement(null);
2679
- }
2680
- }
2681
- }
2682
- }
2683
- }
2684
- var isArrayImpl = Array.isArray;
2685
- function isArray2(a) {
2686
- return isArrayImpl(a);
2687
- }
2688
- function typeName(value) {
2689
- {
2690
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
2691
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
2692
- return type;
2693
- }
2694
- }
2695
- function willCoercionThrow(value) {
2696
- {
2697
- try {
2698
- testStringCoercion(value);
2699
- return false;
2700
- } catch (e) {
2701
- return true;
2702
- }
2703
- }
2704
- }
2705
- function testStringCoercion(value) {
2706
- return "" + value;
2707
- }
2708
- function checkKeyStringCoercion(value) {
2709
- {
2710
- if (willCoercionThrow(value)) {
2711
- error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
2712
- return testStringCoercion(value);
2713
- }
2714
- }
2715
- }
2716
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
2717
- var RESERVED_PROPS = {
2718
- key: true,
2719
- ref: true,
2720
- __self: true,
2721
- __source: true
2722
- };
2723
- var specialPropKeyWarningShown;
2724
- var specialPropRefWarningShown;
2725
- var didWarnAboutStringRefs;
2726
- {
2727
- didWarnAboutStringRefs = {};
2728
- }
2729
- function hasValidRef(config) {
2730
- {
2731
- if (hasOwnProperty2.call(config, "ref")) {
2732
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
2733
- if (getter && getter.isReactWarning) {
2734
- return false;
2735
- }
2736
- }
2737
- }
2738
- return config.ref !== void 0;
2739
- }
2740
- function hasValidKey(config) {
2741
- {
2742
- if (hasOwnProperty2.call(config, "key")) {
2743
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
2744
- if (getter && getter.isReactWarning) {
2745
- return false;
2746
- }
2747
- }
2748
- }
2749
- return config.key !== void 0;
2750
- }
2751
- function warnIfStringRefCannotBeAutoConverted(config, self2) {
2752
- {
2753
- if (typeof config.ref === "string" && ReactCurrentOwner.current && self2 && ReactCurrentOwner.current.stateNode !== self2) {
2754
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
2755
- if (!didWarnAboutStringRefs[componentName]) {
2756
- error('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', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
2757
- didWarnAboutStringRefs[componentName] = true;
2758
- }
2759
- }
2760
- }
2761
- }
2762
- function defineKeyPropWarningGetter(props, displayName) {
2763
- {
2764
- var warnAboutAccessingKey = function() {
2765
- if (!specialPropKeyWarningShown) {
2766
- specialPropKeyWarningShown = true;
2767
- error("%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)", displayName);
2768
- }
2769
- };
2770
- warnAboutAccessingKey.isReactWarning = true;
2771
- Object.defineProperty(props, "key", {
2772
- get: warnAboutAccessingKey,
2773
- configurable: true
2774
- });
2775
- }
2776
- }
2777
- function defineRefPropWarningGetter(props, displayName) {
2778
- {
2779
- var warnAboutAccessingRef = function() {
2780
- if (!specialPropRefWarningShown) {
2781
- specialPropRefWarningShown = true;
2782
- error("%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)", displayName);
2783
- }
2784
- };
2785
- warnAboutAccessingRef.isReactWarning = true;
2786
- Object.defineProperty(props, "ref", {
2787
- get: warnAboutAccessingRef,
2788
- configurable: true
2789
- });
2790
- }
2791
- }
2792
- var ReactElement = function(type, key, ref, self2, source, owner, props) {
2793
- var element = {
2794
- // This tag allows us to uniquely identify this as a React Element
2795
- $$typeof: REACT_ELEMENT_TYPE,
2796
- // Built-in properties that belong on the element
2797
- type,
2798
- key,
2799
- ref,
2800
- props,
2801
- // Record the component responsible for creating this element.
2802
- _owner: owner
2803
- };
2804
- {
2805
- element._store = {};
2806
- Object.defineProperty(element._store, "validated", {
2807
- configurable: false,
2808
- enumerable: false,
2809
- writable: true,
2810
- value: false
2811
- });
2812
- Object.defineProperty(element, "_self", {
2813
- configurable: false,
2814
- enumerable: false,
2815
- writable: false,
2816
- value: self2
2817
- });
2818
- Object.defineProperty(element, "_source", {
2819
- configurable: false,
2820
- enumerable: false,
2821
- writable: false,
2822
- value: source
2823
- });
2824
- if (Object.freeze) {
2825
- Object.freeze(element.props);
2826
- Object.freeze(element);
2827
- }
2828
- }
2829
- return element;
2830
- };
2831
- function jsxDEV(type, config, maybeKey, source, self2) {
2832
- {
2833
- var propName;
2834
- var props = {};
2835
- var key = null;
2836
- var ref = null;
2837
- if (maybeKey !== void 0) {
2838
- {
2839
- checkKeyStringCoercion(maybeKey);
2840
- }
2841
- key = "" + maybeKey;
2842
- }
2843
- if (hasValidKey(config)) {
2844
- {
2845
- checkKeyStringCoercion(config.key);
2846
- }
2847
- key = "" + config.key;
2848
- }
2849
- if (hasValidRef(config)) {
2850
- ref = config.ref;
2851
- warnIfStringRefCannotBeAutoConverted(config, self2);
2852
- }
2853
- for (propName in config) {
2854
- if (hasOwnProperty2.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2855
- props[propName] = config[propName];
2856
- }
2857
- }
2858
- if (type && type.defaultProps) {
2859
- var defaultProps = type.defaultProps;
2860
- for (propName in defaultProps) {
2861
- if (props[propName] === void 0) {
2862
- props[propName] = defaultProps[propName];
2863
- }
2864
- }
2865
- }
2866
- if (key || ref) {
2867
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
2868
- if (key) {
2869
- defineKeyPropWarningGetter(props, displayName);
2870
- }
2871
- if (ref) {
2872
- defineRefPropWarningGetter(props, displayName);
2873
- }
2874
- }
2875
- return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
2876
- }
2877
- }
2878
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
2879
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2880
- function setCurrentlyValidatingElement$1(element) {
2881
- {
2882
- if (element) {
2883
- var owner = element._owner;
2884
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2885
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2886
- } else {
2887
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2888
- }
2889
- }
2890
- }
2891
- var propTypesMisspellWarningShown;
2892
- {
2893
- propTypesMisspellWarningShown = false;
2894
- }
2895
- function isValidElement(object) {
2896
- {
2897
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2898
- }
2899
- }
2900
- function getDeclarationErrorAddendum() {
2901
- {
2902
- if (ReactCurrentOwner$1.current) {
2903
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
2904
- if (name) {
2905
- return "\n\nCheck the render method of `" + name + "`.";
2906
- }
2907
- }
2908
- return "";
2909
- }
2910
- }
2911
- function getSourceInfoErrorAddendum(source) {
2912
- {
2913
- if (source !== void 0) {
2914
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
2915
- var lineNumber = source.lineNumber;
2916
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
2917
- }
2918
- return "";
2919
- }
2920
- }
2921
- var ownerHasKeyUseWarning = {};
2922
- function getCurrentComponentErrorInfo(parentType) {
2923
- {
2924
- var info = getDeclarationErrorAddendum();
2925
- if (!info) {
2926
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
2927
- if (parentName) {
2928
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2929
- }
2930
- }
2931
- return info;
2932
- }
2933
- }
2934
- function validateExplicitKey(element, parentType) {
2935
- {
2936
- if (!element._store || element._store.validated || element.key != null) {
2937
- return;
2938
- }
2939
- element._store.validated = true;
2940
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2941
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2942
- return;
2943
- }
2944
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
2945
- var childOwner = "";
2946
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
2947
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
2948
- }
2949
- setCurrentlyValidatingElement$1(element);
2950
- error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
2951
- setCurrentlyValidatingElement$1(null);
2952
- }
2953
- }
2954
- function validateChildKeys(node, parentType) {
2955
- {
2956
- if (typeof node !== "object") {
2957
- return;
2958
- }
2959
- if (isArray2(node)) {
2960
- for (var i = 0; i < node.length; i++) {
2961
- var child = node[i];
2962
- if (isValidElement(child)) {
2963
- validateExplicitKey(child, parentType);
2964
- }
2965
- }
2966
- } else if (isValidElement(node)) {
2967
- if (node._store) {
2968
- node._store.validated = true;
2969
- }
2970
- } else if (node) {
2971
- var iteratorFn = getIteratorFn(node);
2972
- if (typeof iteratorFn === "function") {
2973
- if (iteratorFn !== node.entries) {
2974
- var iterator = iteratorFn.call(node);
2975
- var step;
2976
- while (!(step = iterator.next()).done) {
2977
- if (isValidElement(step.value)) {
2978
- validateExplicitKey(step.value, parentType);
2979
- }
2980
- }
2981
- }
2982
- }
2983
- }
2984
- }
2985
- }
2986
- function validatePropTypes(element) {
2987
- {
2988
- var type = element.type;
2989
- if (type === null || type === void 0 || typeof type === "string") {
2990
- return;
2991
- }
2992
- var propTypes;
2993
- if (typeof type === "function") {
2994
- propTypes = type.propTypes;
2995
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
2996
- // Inner props are checked in the reconciler.
2997
- type.$$typeof === REACT_MEMO_TYPE)) {
2998
- propTypes = type.propTypes;
2999
- } else {
3000
- return;
3001
- }
3002
- if (propTypes) {
3003
- var name = getComponentNameFromType(type);
3004
- checkPropTypes(propTypes, element.props, "prop", name, element);
3005
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
3006
- propTypesMisspellWarningShown = true;
3007
- var _name = getComponentNameFromType(type);
3008
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
3009
- }
3010
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
3011
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
3012
- }
3013
- }
3014
- }
3015
- function validateFragmentProps(fragment) {
3016
- {
3017
- var keys2 = Object.keys(fragment.props);
3018
- for (var i = 0; i < keys2.length; i++) {
3019
- var key = keys2[i];
3020
- if (key !== "children" && key !== "key") {
3021
- setCurrentlyValidatingElement$1(fragment);
3022
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
3023
- setCurrentlyValidatingElement$1(null);
3024
- break;
3025
- }
3026
- }
3027
- if (fragment.ref !== null) {
3028
- setCurrentlyValidatingElement$1(fragment);
3029
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
3030
- setCurrentlyValidatingElement$1(null);
3031
- }
3032
- }
3033
- }
3034
- function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
3035
- {
3036
- var validType = isValidElementType(type);
3037
- if (!validType) {
3038
- var info = "";
3039
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
3040
- info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
3041
- }
3042
- var sourceInfo = getSourceInfoErrorAddendum(source);
3043
- if (sourceInfo) {
3044
- info += sourceInfo;
3045
- } else {
3046
- info += getDeclarationErrorAddendum();
3047
- }
3048
- var typeString;
3049
- if (type === null) {
3050
- typeString = "null";
3051
- } else if (isArray2(type)) {
3052
- typeString = "array";
3053
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
3054
- typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
3055
- info = " Did you accidentally export a JSX literal instead of a component?";
3056
- } else {
3057
- typeString = typeof type;
3058
- }
3059
- error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
3060
- }
3061
- var element = jsxDEV(type, props, key, source, self2);
3062
- if (element == null) {
3063
- return element;
3064
- }
3065
- if (validType) {
3066
- var children = props.children;
3067
- if (children !== void 0) {
3068
- if (isStaticChildren) {
3069
- if (isArray2(children)) {
3070
- for (var i = 0; i < children.length; i++) {
3071
- validateChildKeys(children[i], type);
3072
- }
3073
- if (Object.freeze) {
3074
- Object.freeze(children);
3075
- }
3076
- } else {
3077
- error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
3078
- }
3079
- } else {
3080
- validateChildKeys(children, type);
3081
- }
3082
- }
3083
- }
3084
- if (type === REACT_FRAGMENT_TYPE) {
3085
- validateFragmentProps(element);
3086
- } else {
3087
- validatePropTypes(element);
3088
- }
3089
- return element;
3090
- }
3091
- }
3092
- function jsxWithValidationStatic(type, props, key) {
3093
- {
3094
- return jsxWithValidation(type, props, key, true);
3095
- }
3096
- }
3097
- function jsxWithValidationDynamic(type, props, key) {
3098
- {
3099
- return jsxWithValidation(type, props, key, false);
3100
- }
3101
- }
3102
- var jsx = jsxWithValidationDynamic;
3103
- var jsxs = jsxWithValidationStatic;
3104
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
3105
- reactJsxRuntime_development.jsx = jsx;
3106
- reactJsxRuntime_development.jsxs = jsxs;
3107
- })();
3108
- }
3109
- return reactJsxRuntime_development;
3110
- }
3111
- if (process.env.NODE_ENV === "production") {
3112
- jsxRuntime.exports = requireReactJsxRuntime_production_min();
3113
- } else {
3114
- jsxRuntime.exports = requireReactJsxRuntime_development();
3115
- }
3116
- var jsxRuntimeExports = jsxRuntime.exports;
3117
- const adheseContext = reactExports.createContext(void 0);
7
+ const remeda = require("remeda");
8
+ const adheseContext = react.createContext(void 0);
3118
9
  function AdheseProvider({ children, options }) {
3119
- const [adhese, setAdhese] = reactExports.useState(void 0);
3120
- reactExports.useEffect(() => {
10
+ const [adhese, setAdhese] = react.useState(void 0);
11
+ react.useEffect(() => {
3121
12
  const instance = sdk.createAdhese(options);
3122
13
  setAdhese(instance);
3123
14
  return () => {
3124
15
  instance.dispose();
3125
16
  };
3126
17
  }, [options]);
3127
- return /* @__PURE__ */ jsxRuntimeExports.jsx(adheseContext.Provider, { value: adhese, children });
18
+ return /* @__PURE__ */ jsxRuntime.jsx(adheseContext.Provider, { value: adhese, children });
3128
19
  }
3129
20
  function useAdhese() {
3130
- return reactExports.useContext(adheseContext);
3131
- }
3132
- function arrayMap$2(array, iteratee) {
3133
- var index = -1, length = array == null ? 0 : array.length, result = Array(length);
3134
- while (++index < length) {
3135
- result[index] = iteratee(array[index], index, array);
3136
- }
3137
- return result;
3138
- }
3139
- var _arrayMap = arrayMap$2;
3140
- function listCacheClear$1() {
3141
- this.__data__ = [];
3142
- this.size = 0;
3143
- }
3144
- var _listCacheClear = listCacheClear$1;
3145
- function eq$2(value, other) {
3146
- return value === other || value !== value && other !== other;
3147
- }
3148
- var eq_1 = eq$2;
3149
- var eq$1 = eq_1;
3150
- function assocIndexOf$4(array, key) {
3151
- var length = array.length;
3152
- while (length--) {
3153
- if (eq$1(array[length][0], key)) {
3154
- return length;
3155
- }
3156
- }
3157
- return -1;
3158
- }
3159
- var _assocIndexOf = assocIndexOf$4;
3160
- var assocIndexOf$3 = _assocIndexOf;
3161
- var arrayProto = Array.prototype;
3162
- var splice = arrayProto.splice;
3163
- function listCacheDelete$1(key) {
3164
- var data = this.__data__, index = assocIndexOf$3(data, key);
3165
- if (index < 0) {
3166
- return false;
3167
- }
3168
- var lastIndex = data.length - 1;
3169
- if (index == lastIndex) {
3170
- data.pop();
3171
- } else {
3172
- splice.call(data, index, 1);
3173
- }
3174
- --this.size;
3175
- return true;
3176
- }
3177
- var _listCacheDelete = listCacheDelete$1;
3178
- var assocIndexOf$2 = _assocIndexOf;
3179
- function listCacheGet$1(key) {
3180
- var data = this.__data__, index = assocIndexOf$2(data, key);
3181
- return index < 0 ? void 0 : data[index][1];
3182
- }
3183
- var _listCacheGet = listCacheGet$1;
3184
- var assocIndexOf$1 = _assocIndexOf;
3185
- function listCacheHas$1(key) {
3186
- return assocIndexOf$1(this.__data__, key) > -1;
3187
- }
3188
- var _listCacheHas = listCacheHas$1;
3189
- var assocIndexOf = _assocIndexOf;
3190
- function listCacheSet$1(key, value) {
3191
- var data = this.__data__, index = assocIndexOf(data, key);
3192
- if (index < 0) {
3193
- ++this.size;
3194
- data.push([key, value]);
3195
- } else {
3196
- data[index][1] = value;
3197
- }
3198
- return this;
3199
- }
3200
- var _listCacheSet = listCacheSet$1;
3201
- var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
3202
- function ListCache$4(entries) {
3203
- var index = -1, length = entries == null ? 0 : entries.length;
3204
- this.clear();
3205
- while (++index < length) {
3206
- var entry = entries[index];
3207
- this.set(entry[0], entry[1]);
3208
- }
3209
- }
3210
- ListCache$4.prototype.clear = listCacheClear;
3211
- ListCache$4.prototype["delete"] = listCacheDelete;
3212
- ListCache$4.prototype.get = listCacheGet;
3213
- ListCache$4.prototype.has = listCacheHas;
3214
- ListCache$4.prototype.set = listCacheSet;
3215
- var _ListCache = ListCache$4;
3216
- var ListCache$3 = _ListCache;
3217
- function stackClear$1() {
3218
- this.__data__ = new ListCache$3();
3219
- this.size = 0;
3220
- }
3221
- var _stackClear = stackClear$1;
3222
- function stackDelete$1(key) {
3223
- var data = this.__data__, result = data["delete"](key);
3224
- this.size = data.size;
3225
- return result;
3226
- }
3227
- var _stackDelete = stackDelete$1;
3228
- function stackGet$1(key) {
3229
- return this.__data__.get(key);
3230
- }
3231
- var _stackGet = stackGet$1;
3232
- function stackHas$1(key) {
3233
- return this.__data__.has(key);
3234
- }
3235
- var _stackHas = stackHas$1;
3236
- var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
3237
- var _freeGlobal = freeGlobal$1;
3238
- var freeGlobal = _freeGlobal;
3239
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
3240
- var root$8 = freeGlobal || freeSelf || Function("return this")();
3241
- var _root = root$8;
3242
- var root$7 = _root;
3243
- var Symbol$6 = root$7.Symbol;
3244
- var _Symbol = Symbol$6;
3245
- var Symbol$5 = _Symbol;
3246
- var objectProto$d = Object.prototype;
3247
- var hasOwnProperty$a = objectProto$d.hasOwnProperty;
3248
- var nativeObjectToString$1 = objectProto$d.toString;
3249
- var symToStringTag$1 = Symbol$5 ? Symbol$5.toStringTag : void 0;
3250
- function getRawTag$1(value) {
3251
- var isOwn = hasOwnProperty$a.call(value, symToStringTag$1), tag = value[symToStringTag$1];
3252
- try {
3253
- value[symToStringTag$1] = void 0;
3254
- var unmasked = true;
3255
- } catch (e) {
3256
- }
3257
- var result = nativeObjectToString$1.call(value);
3258
- if (unmasked) {
3259
- if (isOwn) {
3260
- value[symToStringTag$1] = tag;
3261
- } else {
3262
- delete value[symToStringTag$1];
3263
- }
3264
- }
3265
- return result;
3266
- }
3267
- var _getRawTag = getRawTag$1;
3268
- var objectProto$c = Object.prototype;
3269
- var nativeObjectToString = objectProto$c.toString;
3270
- function objectToString$1(value) {
3271
- return nativeObjectToString.call(value);
3272
- }
3273
- var _objectToString = objectToString$1;
3274
- var Symbol$4 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
3275
- var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
3276
- var symToStringTag = Symbol$4 ? Symbol$4.toStringTag : void 0;
3277
- function baseGetTag$6(value) {
3278
- if (value == null) {
3279
- return value === void 0 ? undefinedTag : nullTag;
3280
- }
3281
- return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
3282
- }
3283
- var _baseGetTag = baseGetTag$6;
3284
- function isObject$5(value) {
3285
- var type = typeof value;
3286
- return value != null && (type == "object" || type == "function");
3287
- }
3288
- var isObject_1 = isObject$5;
3289
- var baseGetTag$5 = _baseGetTag, isObject$4 = isObject_1;
3290
- var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
3291
- function isFunction$2(value) {
3292
- if (!isObject$4(value)) {
3293
- return false;
3294
- }
3295
- var tag = baseGetTag$5(value);
3296
- return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
3297
- }
3298
- var isFunction_1 = isFunction$2;
3299
- var root$6 = _root;
3300
- var coreJsData$1 = root$6["__core-js_shared__"];
3301
- var _coreJsData = coreJsData$1;
3302
- var coreJsData = _coreJsData;
3303
- var maskSrcKey = function() {
3304
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
3305
- return uid ? "Symbol(src)_1." + uid : "";
3306
- }();
3307
- function isMasked$1(func) {
3308
- return !!maskSrcKey && maskSrcKey in func;
3309
- }
3310
- var _isMasked = isMasked$1;
3311
- var funcProto$2 = Function.prototype;
3312
- var funcToString$2 = funcProto$2.toString;
3313
- function toSource$2(func) {
3314
- if (func != null) {
3315
- try {
3316
- return funcToString$2.call(func);
3317
- } catch (e) {
3318
- }
3319
- try {
3320
- return func + "";
3321
- } catch (e) {
3322
- }
3323
- }
3324
- return "";
3325
- }
3326
- var _toSource = toSource$2;
3327
- var isFunction$1 = isFunction_1, isMasked = _isMasked, isObject$3 = isObject_1, toSource$1 = _toSource;
3328
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
3329
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
3330
- var funcProto$1 = Function.prototype, objectProto$b = Object.prototype;
3331
- var funcToString$1 = funcProto$1.toString;
3332
- var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
3333
- var reIsNative = RegExp(
3334
- "^" + funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
3335
- );
3336
- function baseIsNative$1(value) {
3337
- if (!isObject$3(value) || isMasked(value)) {
3338
- return false;
3339
- }
3340
- var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
3341
- return pattern.test(toSource$1(value));
3342
- }
3343
- var _baseIsNative = baseIsNative$1;
3344
- function getValue$1(object, key) {
3345
- return object == null ? void 0 : object[key];
3346
- }
3347
- var _getValue = getValue$1;
3348
- var baseIsNative = _baseIsNative, getValue = _getValue;
3349
- function getNative$7(object, key) {
3350
- var value = getValue(object, key);
3351
- return baseIsNative(value) ? value : void 0;
3352
- }
3353
- var _getNative = getNative$7;
3354
- var getNative$6 = _getNative, root$5 = _root;
3355
- var Map$4 = getNative$6(root$5, "Map");
3356
- var _Map = Map$4;
3357
- var getNative$5 = _getNative;
3358
- var nativeCreate$4 = getNative$5(Object, "create");
3359
- var _nativeCreate = nativeCreate$4;
3360
- var nativeCreate$3 = _nativeCreate;
3361
- function hashClear$1() {
3362
- this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
3363
- this.size = 0;
3364
- }
3365
- var _hashClear = hashClear$1;
3366
- function hashDelete$1(key) {
3367
- var result = this.has(key) && delete this.__data__[key];
3368
- this.size -= result ? 1 : 0;
3369
- return result;
3370
- }
3371
- var _hashDelete = hashDelete$1;
3372
- var nativeCreate$2 = _nativeCreate;
3373
- var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
3374
- var objectProto$a = Object.prototype;
3375
- var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
3376
- function hashGet$1(key) {
3377
- var data = this.__data__;
3378
- if (nativeCreate$2) {
3379
- var result = data[key];
3380
- return result === HASH_UNDEFINED$1 ? void 0 : result;
3381
- }
3382
- return hasOwnProperty$8.call(data, key) ? data[key] : void 0;
3383
- }
3384
- var _hashGet = hashGet$1;
3385
- var nativeCreate$1 = _nativeCreate;
3386
- var objectProto$9 = Object.prototype;
3387
- var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
3388
- function hashHas$1(key) {
3389
- var data = this.__data__;
3390
- return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$7.call(data, key);
3391
- }
3392
- var _hashHas = hashHas$1;
3393
- var nativeCreate = _nativeCreate;
3394
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
3395
- function hashSet$1(key, value) {
3396
- var data = this.__data__;
3397
- this.size += this.has(key) ? 0 : 1;
3398
- data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
3399
- return this;
3400
- }
3401
- var _hashSet = hashSet$1;
3402
- var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
3403
- function Hash$1(entries) {
3404
- var index = -1, length = entries == null ? 0 : entries.length;
3405
- this.clear();
3406
- while (++index < length) {
3407
- var entry = entries[index];
3408
- this.set(entry[0], entry[1]);
3409
- }
3410
- }
3411
- Hash$1.prototype.clear = hashClear;
3412
- Hash$1.prototype["delete"] = hashDelete;
3413
- Hash$1.prototype.get = hashGet;
3414
- Hash$1.prototype.has = hashHas;
3415
- Hash$1.prototype.set = hashSet;
3416
- var _Hash = Hash$1;
3417
- var Hash = _Hash, ListCache$2 = _ListCache, Map$3 = _Map;
3418
- function mapCacheClear$1() {
3419
- this.size = 0;
3420
- this.__data__ = {
3421
- "hash": new Hash(),
3422
- "map": new (Map$3 || ListCache$2)(),
3423
- "string": new Hash()
3424
- };
3425
- }
3426
- var _mapCacheClear = mapCacheClear$1;
3427
- function isKeyable$1(value) {
3428
- var type = typeof value;
3429
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
3430
- }
3431
- var _isKeyable = isKeyable$1;
3432
- var isKeyable = _isKeyable;
3433
- function getMapData$4(map, key) {
3434
- var data = map.__data__;
3435
- return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
3436
- }
3437
- var _getMapData = getMapData$4;
3438
- var getMapData$3 = _getMapData;
3439
- function mapCacheDelete$1(key) {
3440
- var result = getMapData$3(this, key)["delete"](key);
3441
- this.size -= result ? 1 : 0;
3442
- return result;
3443
- }
3444
- var _mapCacheDelete = mapCacheDelete$1;
3445
- var getMapData$2 = _getMapData;
3446
- function mapCacheGet$1(key) {
3447
- return getMapData$2(this, key).get(key);
3448
- }
3449
- var _mapCacheGet = mapCacheGet$1;
3450
- var getMapData$1 = _getMapData;
3451
- function mapCacheHas$1(key) {
3452
- return getMapData$1(this, key).has(key);
3453
- }
3454
- var _mapCacheHas = mapCacheHas$1;
3455
- var getMapData = _getMapData;
3456
- function mapCacheSet$1(key, value) {
3457
- var data = getMapData(this, key), size = data.size;
3458
- data.set(key, value);
3459
- this.size += data.size == size ? 0 : 1;
3460
- return this;
3461
- }
3462
- var _mapCacheSet = mapCacheSet$1;
3463
- var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
3464
- function MapCache$2(entries) {
3465
- var index = -1, length = entries == null ? 0 : entries.length;
3466
- this.clear();
3467
- while (++index < length) {
3468
- var entry = entries[index];
3469
- this.set(entry[0], entry[1]);
3470
- }
3471
- }
3472
- MapCache$2.prototype.clear = mapCacheClear;
3473
- MapCache$2.prototype["delete"] = mapCacheDelete;
3474
- MapCache$2.prototype.get = mapCacheGet;
3475
- MapCache$2.prototype.has = mapCacheHas;
3476
- MapCache$2.prototype.set = mapCacheSet;
3477
- var _MapCache = MapCache$2;
3478
- var ListCache$1 = _ListCache, Map$2 = _Map, MapCache$1 = _MapCache;
3479
- var LARGE_ARRAY_SIZE = 200;
3480
- function stackSet$1(key, value) {
3481
- var data = this.__data__;
3482
- if (data instanceof ListCache$1) {
3483
- var pairs = data.__data__;
3484
- if (!Map$2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
3485
- pairs.push([key, value]);
3486
- this.size = ++data.size;
3487
- return this;
3488
- }
3489
- data = this.__data__ = new MapCache$1(pairs);
3490
- }
3491
- data.set(key, value);
3492
- this.size = data.size;
3493
- return this;
3494
- }
3495
- var _stackSet = stackSet$1;
3496
- var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
3497
- function Stack$1(entries) {
3498
- var data = this.__data__ = new ListCache(entries);
3499
- this.size = data.size;
3500
- }
3501
- Stack$1.prototype.clear = stackClear;
3502
- Stack$1.prototype["delete"] = stackDelete;
3503
- Stack$1.prototype.get = stackGet;
3504
- Stack$1.prototype.has = stackHas;
3505
- Stack$1.prototype.set = stackSet;
3506
- var _Stack = Stack$1;
3507
- function arrayEach$1(array, iteratee) {
3508
- var index = -1, length = array == null ? 0 : array.length;
3509
- while (++index < length) {
3510
- if (iteratee(array[index], index, array) === false) {
3511
- break;
3512
- }
3513
- }
3514
- return array;
3515
- }
3516
- var _arrayEach = arrayEach$1;
3517
- var getNative$4 = _getNative;
3518
- var defineProperty$2 = function() {
3519
- try {
3520
- var func = getNative$4(Object, "defineProperty");
3521
- func({}, "", {});
3522
- return func;
3523
- } catch (e) {
3524
- }
3525
- }();
3526
- var _defineProperty = defineProperty$2;
3527
- var defineProperty$1 = _defineProperty;
3528
- function baseAssignValue$2(object, key, value) {
3529
- if (key == "__proto__" && defineProperty$1) {
3530
- defineProperty$1(object, key, {
3531
- "configurable": true,
3532
- "enumerable": true,
3533
- "value": value,
3534
- "writable": true
3535
- });
3536
- } else {
3537
- object[key] = value;
3538
- }
3539
- }
3540
- var _baseAssignValue = baseAssignValue$2;
3541
- var baseAssignValue$1 = _baseAssignValue, eq = eq_1;
3542
- var objectProto$8 = Object.prototype;
3543
- var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
3544
- function assignValue$2(object, key, value) {
3545
- var objValue = object[key];
3546
- if (!(hasOwnProperty$6.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
3547
- baseAssignValue$1(object, key, value);
3548
- }
3549
- }
3550
- var _assignValue = assignValue$2;
3551
- var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
3552
- function copyObject$5(source, props, object, customizer) {
3553
- var isNew = !object;
3554
- object || (object = {});
3555
- var index = -1, length = props.length;
3556
- while (++index < length) {
3557
- var key = props[index];
3558
- var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
3559
- if (newValue === void 0) {
3560
- newValue = source[key];
3561
- }
3562
- if (isNew) {
3563
- baseAssignValue(object, key, newValue);
3564
- } else {
3565
- assignValue$1(object, key, newValue);
3566
- }
3567
- }
3568
- return object;
3569
- }
3570
- var _copyObject = copyObject$5;
3571
- function baseTimes$1(n, iteratee) {
3572
- var index = -1, result = Array(n);
3573
- while (++index < n) {
3574
- result[index] = iteratee(index);
3575
- }
3576
- return result;
3577
- }
3578
- var _baseTimes = baseTimes$1;
3579
- function isObjectLike$7(value) {
3580
- return value != null && typeof value == "object";
3581
- }
3582
- var isObjectLike_1 = isObjectLike$7;
3583
- var baseGetTag$4 = _baseGetTag, isObjectLike$6 = isObjectLike_1;
3584
- var argsTag$2 = "[object Arguments]";
3585
- function baseIsArguments$1(value) {
3586
- return isObjectLike$6(value) && baseGetTag$4(value) == argsTag$2;
3587
- }
3588
- var _baseIsArguments = baseIsArguments$1;
3589
- var baseIsArguments = _baseIsArguments, isObjectLike$5 = isObjectLike_1;
3590
- var objectProto$7 = Object.prototype;
3591
- var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
3592
- var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
3593
- var isArguments$2 = baseIsArguments(/* @__PURE__ */ function() {
3594
- return arguments;
3595
- }()) ? baseIsArguments : function(value) {
3596
- return isObjectLike$5(value) && hasOwnProperty$5.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
3597
- };
3598
- var isArguments_1 = isArguments$2;
3599
- var isArray$7 = Array.isArray;
3600
- var isArray_1 = isArray$7;
3601
- var isBuffer$2 = { exports: {} };
3602
- function stubFalse() {
3603
- return false;
3604
- }
3605
- var stubFalse_1 = stubFalse;
3606
- isBuffer$2.exports;
3607
- (function(module2, exports2) {
3608
- var root2 = _root, stubFalse2 = stubFalse_1;
3609
- var freeExports = exports2 && !exports2.nodeType && exports2;
3610
- var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
3611
- var moduleExports = freeModule && freeModule.exports === freeExports;
3612
- var Buffer = moduleExports ? root2.Buffer : void 0;
3613
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
3614
- var isBuffer2 = nativeIsBuffer || stubFalse2;
3615
- module2.exports = isBuffer2;
3616
- })(isBuffer$2, isBuffer$2.exports);
3617
- var isBufferExports = isBuffer$2.exports;
3618
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
3619
- var reIsUint = /^(?:0|[1-9]\d*)$/;
3620
- function isIndex$1(value, length) {
3621
- var type = typeof value;
3622
- length = length == null ? MAX_SAFE_INTEGER$1 : length;
3623
- return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
3624
- }
3625
- var _isIndex = isIndex$1;
3626
- var MAX_SAFE_INTEGER = 9007199254740991;
3627
- function isLength$2(value) {
3628
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
3629
- }
3630
- var isLength_1 = isLength$2;
3631
- var baseGetTag$3 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$4 = isObjectLike_1;
3632
- var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
3633
- var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
3634
- var typedArrayTags = {};
3635
- typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
3636
- typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
3637
- function baseIsTypedArray$1(value) {
3638
- return isObjectLike$4(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag$3(value)];
3639
- }
3640
- var _baseIsTypedArray = baseIsTypedArray$1;
3641
- function baseUnary$3(func) {
3642
- return function(value) {
3643
- return func(value);
3644
- };
3645
- }
3646
- var _baseUnary = baseUnary$3;
3647
- var _nodeUtil = { exports: {} };
3648
- _nodeUtil.exports;
3649
- (function(module2, exports2) {
3650
- var freeGlobal2 = _freeGlobal;
3651
- var freeExports = exports2 && !exports2.nodeType && exports2;
3652
- var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
3653
- var moduleExports = freeModule && freeModule.exports === freeExports;
3654
- var freeProcess = moduleExports && freeGlobal2.process;
3655
- var nodeUtil2 = function() {
3656
- try {
3657
- var types = freeModule && freeModule.require && freeModule.require("util").types;
3658
- if (types) {
3659
- return types;
3660
- }
3661
- return freeProcess && freeProcess.binding && freeProcess.binding("util");
3662
- } catch (e) {
3663
- }
3664
- }();
3665
- module2.exports = nodeUtil2;
3666
- })(_nodeUtil, _nodeUtil.exports);
3667
- var _nodeUtilExports = _nodeUtil.exports;
3668
- var baseIsTypedArray = _baseIsTypedArray, baseUnary$2 = _baseUnary, nodeUtil$2 = _nodeUtilExports;
3669
- var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
3670
- var isTypedArray$1 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
3671
- var isTypedArray_1 = isTypedArray$1;
3672
- var baseTimes = _baseTimes, isArguments$1 = isArguments_1, isArray$6 = isArray_1, isBuffer$1 = isBufferExports, isIndex = _isIndex, isTypedArray = isTypedArray_1;
3673
- var objectProto$6 = Object.prototype;
3674
- var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
3675
- function arrayLikeKeys$2(value, inherited) {
3676
- var isArr = isArray$6(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
3677
- for (var key in value) {
3678
- if ((inherited || hasOwnProperty$4.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
3679
- (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
3680
- isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
3681
- isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
3682
- isIndex(key, length)))) {
3683
- result.push(key);
3684
- }
3685
- }
3686
- return result;
3687
- }
3688
- var _arrayLikeKeys = arrayLikeKeys$2;
3689
- var objectProto$5 = Object.prototype;
3690
- function isPrototype$3(value) {
3691
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$5;
3692
- return value === proto;
3693
- }
3694
- var _isPrototype = isPrototype$3;
3695
- function overArg$2(func, transform) {
3696
- return function(arg) {
3697
- return func(transform(arg));
3698
- };
3699
- }
3700
- var _overArg = overArg$2;
3701
- var overArg$1 = _overArg;
3702
- var nativeKeys$1 = overArg$1(Object.keys, Object);
3703
- var _nativeKeys = nativeKeys$1;
3704
- var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
3705
- var objectProto$4 = Object.prototype;
3706
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
3707
- function baseKeys$1(object) {
3708
- if (!isPrototype$2(object)) {
3709
- return nativeKeys(object);
3710
- }
3711
- var result = [];
3712
- for (var key in Object(object)) {
3713
- if (hasOwnProperty$3.call(object, key) && key != "constructor") {
3714
- result.push(key);
3715
- }
3716
- }
3717
- return result;
3718
- }
3719
- var _baseKeys = baseKeys$1;
3720
- var isFunction = isFunction_1, isLength = isLength_1;
3721
- function isArrayLike$2(value) {
3722
- return value != null && isLength(value.length) && !isFunction(value);
3723
- }
3724
- var isArrayLike_1 = isArrayLike$2;
3725
- var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$1 = isArrayLike_1;
3726
- function keys$3(object) {
3727
- return isArrayLike$1(object) ? arrayLikeKeys$1(object) : baseKeys(object);
3728
- }
3729
- var keys_1 = keys$3;
3730
- var copyObject$4 = _copyObject, keys$2 = keys_1;
3731
- function baseAssign$1(object, source) {
3732
- return object && copyObject$4(source, keys$2(source), object);
3733
- }
3734
- var _baseAssign = baseAssign$1;
3735
- function nativeKeysIn$1(object) {
3736
- var result = [];
3737
- if (object != null) {
3738
- for (var key in Object(object)) {
3739
- result.push(key);
3740
- }
3741
- }
3742
- return result;
3743
- }
3744
- var _nativeKeysIn = nativeKeysIn$1;
3745
- var isObject$2 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
3746
- var objectProto$3 = Object.prototype;
3747
- var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
3748
- function baseKeysIn$1(object) {
3749
- if (!isObject$2(object)) {
3750
- return nativeKeysIn(object);
3751
- }
3752
- var isProto = isPrototype$1(object), result = [];
3753
- for (var key in object) {
3754
- if (!(key == "constructor" && (isProto || !hasOwnProperty$2.call(object, key)))) {
3755
- result.push(key);
3756
- }
3757
- }
3758
- return result;
3759
- }
3760
- var _baseKeysIn = baseKeysIn$1;
3761
- var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike = isArrayLike_1;
3762
- function keysIn$3(object) {
3763
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
3764
- }
3765
- var keysIn_1 = keysIn$3;
3766
- var copyObject$3 = _copyObject, keysIn$2 = keysIn_1;
3767
- function baseAssignIn$1(object, source) {
3768
- return object && copyObject$3(source, keysIn$2(source), object);
3769
- }
3770
- var _baseAssignIn = baseAssignIn$1;
3771
- var _cloneBuffer = { exports: {} };
3772
- _cloneBuffer.exports;
3773
- (function(module2, exports2) {
3774
- var root2 = _root;
3775
- var freeExports = exports2 && !exports2.nodeType && exports2;
3776
- var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
3777
- var moduleExports = freeModule && freeModule.exports === freeExports;
3778
- var Buffer = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
3779
- function cloneBuffer2(buffer, isDeep) {
3780
- if (isDeep) {
3781
- return buffer.slice();
3782
- }
3783
- var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
3784
- buffer.copy(result);
3785
- return result;
3786
- }
3787
- module2.exports = cloneBuffer2;
3788
- })(_cloneBuffer, _cloneBuffer.exports);
3789
- var _cloneBufferExports = _cloneBuffer.exports;
3790
- function copyArray$1(source, array) {
3791
- var index = -1, length = source.length;
3792
- array || (array = Array(length));
3793
- while (++index < length) {
3794
- array[index] = source[index];
3795
- }
3796
- return array;
3797
- }
3798
- var _copyArray = copyArray$1;
3799
- function arrayFilter$1(array, predicate) {
3800
- var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
3801
- while (++index < length) {
3802
- var value = array[index];
3803
- if (predicate(value, index, array)) {
3804
- result[resIndex++] = value;
3805
- }
3806
- }
3807
- return result;
3808
- }
3809
- var _arrayFilter = arrayFilter$1;
3810
- function stubArray$2() {
3811
- return [];
3812
- }
3813
- var stubArray_1 = stubArray$2;
3814
- var arrayFilter = _arrayFilter, stubArray$1 = stubArray_1;
3815
- var objectProto$2 = Object.prototype;
3816
- var propertyIsEnumerable = objectProto$2.propertyIsEnumerable;
3817
- var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
3818
- var getSymbols$3 = !nativeGetSymbols$1 ? stubArray$1 : function(object) {
3819
- if (object == null) {
3820
- return [];
3821
- }
3822
- object = Object(object);
3823
- return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
3824
- return propertyIsEnumerable.call(object, symbol);
3825
- });
3826
- };
3827
- var _getSymbols = getSymbols$3;
3828
- var copyObject$2 = _copyObject, getSymbols$2 = _getSymbols;
3829
- function copySymbols$1(source, object) {
3830
- return copyObject$2(source, getSymbols$2(source), object);
3831
- }
3832
- var _copySymbols = copySymbols$1;
3833
- function arrayPush$3(array, values) {
3834
- var index = -1, length = values.length, offset = array.length;
3835
- while (++index < length) {
3836
- array[offset + index] = values[index];
3837
- }
3838
- return array;
3839
- }
3840
- var _arrayPush = arrayPush$3;
3841
- var overArg = _overArg;
3842
- var getPrototype$3 = overArg(Object.getPrototypeOf, Object);
3843
- var _getPrototype = getPrototype$3;
3844
- var arrayPush$2 = _arrayPush, getPrototype$2 = _getPrototype, getSymbols$1 = _getSymbols, stubArray = stubArray_1;
3845
- var nativeGetSymbols = Object.getOwnPropertySymbols;
3846
- var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
3847
- var result = [];
3848
- while (object) {
3849
- arrayPush$2(result, getSymbols$1(object));
3850
- object = getPrototype$2(object);
3851
- }
3852
- return result;
3853
- };
3854
- var _getSymbolsIn = getSymbolsIn$2;
3855
- var copyObject$1 = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
3856
- function copySymbolsIn$1(source, object) {
3857
- return copyObject$1(source, getSymbolsIn$1(source), object);
3858
- }
3859
- var _copySymbolsIn = copySymbolsIn$1;
3860
- var arrayPush$1 = _arrayPush, isArray$5 = isArray_1;
3861
- function baseGetAllKeys$2(object, keysFunc, symbolsFunc) {
3862
- var result = keysFunc(object);
3863
- return isArray$5(object) ? result : arrayPush$1(result, symbolsFunc(object));
3864
- }
3865
- var _baseGetAllKeys = baseGetAllKeys$2;
3866
- var baseGetAllKeys$1 = _baseGetAllKeys, getSymbols = _getSymbols, keys$1 = keys_1;
3867
- function getAllKeys$1(object) {
3868
- return baseGetAllKeys$1(object, keys$1, getSymbols);
3869
- }
3870
- var _getAllKeys = getAllKeys$1;
3871
- var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$1 = keysIn_1;
3872
- function getAllKeysIn$2(object) {
3873
- return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
3874
- }
3875
- var _getAllKeysIn = getAllKeysIn$2;
3876
- var getNative$3 = _getNative, root$4 = _root;
3877
- var DataView$1 = getNative$3(root$4, "DataView");
3878
- var _DataView = DataView$1;
3879
- var getNative$2 = _getNative, root$3 = _root;
3880
- var Promise$2 = getNative$2(root$3, "Promise");
3881
- var _Promise = Promise$2;
3882
- var getNative$1 = _getNative, root$2 = _root;
3883
- var Set$2 = getNative$1(root$2, "Set");
3884
- var _Set = Set$2;
3885
- var getNative = _getNative, root$1 = _root;
3886
- var WeakMap$2 = getNative(root$1, "WeakMap");
3887
- var _WeakMap = WeakMap$2;
3888
- var DataView = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$1 = _WeakMap, baseGetTag$2 = _baseGetTag, toSource = _toSource;
3889
- var mapTag$3 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
3890
- var dataViewTag$2 = "[object DataView]";
3891
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1);
3892
- var getTag$3 = baseGetTag$2;
3893
- if (DataView && getTag$3(new DataView(new ArrayBuffer(1))) != dataViewTag$2 || Map$1 && getTag$3(new Map$1()) != mapTag$3 || Promise$1 && getTag$3(Promise$1.resolve()) != promiseTag || Set$1 && getTag$3(new Set$1()) != setTag$3 || WeakMap$1 && getTag$3(new WeakMap$1()) != weakMapTag$1) {
3894
- getTag$3 = function(value) {
3895
- var result = baseGetTag$2(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
3896
- if (ctorString) {
3897
- switch (ctorString) {
3898
- case dataViewCtorString:
3899
- return dataViewTag$2;
3900
- case mapCtorString:
3901
- return mapTag$3;
3902
- case promiseCtorString:
3903
- return promiseTag;
3904
- case setCtorString:
3905
- return setTag$3;
3906
- case weakMapCtorString:
3907
- return weakMapTag$1;
3908
- }
3909
- }
3910
- return result;
3911
- };
3912
- }
3913
- var _getTag = getTag$3;
3914
- var objectProto$1 = Object.prototype;
3915
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
3916
- function initCloneArray$1(array) {
3917
- var length = array.length, result = new array.constructor(length);
3918
- if (length && typeof array[0] == "string" && hasOwnProperty$1.call(array, "index")) {
3919
- result.index = array.index;
3920
- result.input = array.input;
3921
- }
3922
- return result;
3923
- }
3924
- var _initCloneArray = initCloneArray$1;
3925
- var root = _root;
3926
- var Uint8Array$1 = root.Uint8Array;
3927
- var _Uint8Array = Uint8Array$1;
3928
- var Uint8Array = _Uint8Array;
3929
- function cloneArrayBuffer$3(arrayBuffer) {
3930
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
3931
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
3932
- return result;
3933
- }
3934
- var _cloneArrayBuffer = cloneArrayBuffer$3;
3935
- var cloneArrayBuffer$2 = _cloneArrayBuffer;
3936
- function cloneDataView$1(dataView, isDeep) {
3937
- var buffer = isDeep ? cloneArrayBuffer$2(dataView.buffer) : dataView.buffer;
3938
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
3939
- }
3940
- var _cloneDataView = cloneDataView$1;
3941
- var reFlags = /\w*$/;
3942
- function cloneRegExp$1(regexp) {
3943
- var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
3944
- result.lastIndex = regexp.lastIndex;
3945
- return result;
3946
- }
3947
- var _cloneRegExp = cloneRegExp$1;
3948
- var Symbol$3 = _Symbol;
3949
- var symbolProto$1 = Symbol$3 ? Symbol$3.prototype : void 0, symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : void 0;
3950
- function cloneSymbol$1(symbol) {
3951
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
3952
- }
3953
- var _cloneSymbol = cloneSymbol$1;
3954
- var cloneArrayBuffer$1 = _cloneArrayBuffer;
3955
- function cloneTypedArray$1(typedArray, isDeep) {
3956
- var buffer = isDeep ? cloneArrayBuffer$1(typedArray.buffer) : typedArray.buffer;
3957
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
3958
- }
3959
- var _cloneTypedArray = cloneTypedArray$1;
3960
- var cloneArrayBuffer = _cloneArrayBuffer, cloneDataView = _cloneDataView, cloneRegExp = _cloneRegExp, cloneSymbol = _cloneSymbol, cloneTypedArray = _cloneTypedArray;
3961
- var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$2 = "[object Symbol]";
3962
- var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
3963
- function initCloneByTag$1(object, tag, isDeep) {
3964
- var Ctor = object.constructor;
3965
- switch (tag) {
3966
- case arrayBufferTag$1:
3967
- return cloneArrayBuffer(object);
3968
- case boolTag$1:
3969
- case dateTag$1:
3970
- return new Ctor(+object);
3971
- case dataViewTag$1:
3972
- return cloneDataView(object, isDeep);
3973
- case float32Tag$1:
3974
- case float64Tag$1:
3975
- case int8Tag$1:
3976
- case int16Tag$1:
3977
- case int32Tag$1:
3978
- case uint8Tag$1:
3979
- case uint8ClampedTag$1:
3980
- case uint16Tag$1:
3981
- case uint32Tag$1:
3982
- return cloneTypedArray(object, isDeep);
3983
- case mapTag$2:
3984
- return new Ctor();
3985
- case numberTag$1:
3986
- case stringTag$1:
3987
- return new Ctor(object);
3988
- case regexpTag$1:
3989
- return cloneRegExp(object);
3990
- case setTag$2:
3991
- return new Ctor();
3992
- case symbolTag$2:
3993
- return cloneSymbol(object);
3994
- }
3995
- }
3996
- var _initCloneByTag = initCloneByTag$1;
3997
- var isObject$1 = isObject_1;
3998
- var objectCreate = Object.create;
3999
- var baseCreate$1 = /* @__PURE__ */ function() {
4000
- function object() {
4001
- }
4002
- return function(proto) {
4003
- if (!isObject$1(proto)) {
4004
- return {};
4005
- }
4006
- if (objectCreate) {
4007
- return objectCreate(proto);
4008
- }
4009
- object.prototype = proto;
4010
- var result = new object();
4011
- object.prototype = void 0;
4012
- return result;
4013
- };
4014
- }();
4015
- var _baseCreate = baseCreate$1;
4016
- var baseCreate = _baseCreate, getPrototype$1 = _getPrototype, isPrototype = _isPrototype;
4017
- function initCloneObject$1(object) {
4018
- return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype$1(object)) : {};
4019
- }
4020
- var _initCloneObject = initCloneObject$1;
4021
- var getTag$2 = _getTag, isObjectLike$3 = isObjectLike_1;
4022
- var mapTag$1 = "[object Map]";
4023
- function baseIsMap$1(value) {
4024
- return isObjectLike$3(value) && getTag$2(value) == mapTag$1;
4025
- }
4026
- var _baseIsMap = baseIsMap$1;
4027
- var baseIsMap = _baseIsMap, baseUnary$1 = _baseUnary, nodeUtil$1 = _nodeUtilExports;
4028
- var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
4029
- var isMap$1 = nodeIsMap ? baseUnary$1(nodeIsMap) : baseIsMap;
4030
- var isMap_1 = isMap$1;
4031
- var getTag$1 = _getTag, isObjectLike$2 = isObjectLike_1;
4032
- var setTag$1 = "[object Set]";
4033
- function baseIsSet$1(value) {
4034
- return isObjectLike$2(value) && getTag$1(value) == setTag$1;
4035
- }
4036
- var _baseIsSet = baseIsSet$1;
4037
- var baseIsSet = _baseIsSet, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;
4038
- var nodeIsSet = nodeUtil && nodeUtil.isSet;
4039
- var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
4040
- var isSet_1 = isSet$1;
4041
- var Stack = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBufferExports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn$1 = _getAllKeysIn, getTag = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray$4 = isArray_1, isBuffer = isBufferExports, isMap = isMap_1, isObject = isObject_1, isSet = isSet_1, keys = keys_1, keysIn = keysIn_1;
4042
- var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG$1 = 2, CLONE_SYMBOLS_FLAG$1 = 4;
4043
- var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag$1 = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag$1 = "[object Symbol]", weakMapTag = "[object WeakMap]";
4044
- var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
4045
- var cloneableTags = {};
4046
- cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag$1] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag$1] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
4047
- cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
4048
- function baseClone$1(value, bitmask, customizer, key, object, stack) {
4049
- var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG$1, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
4050
- if (customizer) {
4051
- result = object ? customizer(value, key, object, stack) : customizer(value);
4052
- }
4053
- if (result !== void 0) {
4054
- return result;
4055
- }
4056
- if (!isObject(value)) {
4057
- return value;
4058
- }
4059
- var isArr = isArray$4(value);
4060
- if (isArr) {
4061
- result = initCloneArray(value);
4062
- if (!isDeep) {
4063
- return copyArray(value, result);
4064
- }
4065
- } else {
4066
- var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;
4067
- if (isBuffer(value)) {
4068
- return cloneBuffer(value, isDeep);
4069
- }
4070
- if (tag == objectTag$1 || tag == argsTag || isFunc && !object) {
4071
- result = isFlat || isFunc ? {} : initCloneObject(value);
4072
- if (!isDeep) {
4073
- return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
4074
- }
4075
- } else {
4076
- if (!cloneableTags[tag]) {
4077
- return object ? value : {};
4078
- }
4079
- result = initCloneByTag(value, tag, isDeep);
4080
- }
4081
- }
4082
- stack || (stack = new Stack());
4083
- var stacked = stack.get(value);
4084
- if (stacked) {
4085
- return stacked;
4086
- }
4087
- stack.set(value, result);
4088
- if (isSet(value)) {
4089
- value.forEach(function(subValue) {
4090
- result.add(baseClone$1(subValue, bitmask, customizer, subValue, value, stack));
4091
- });
4092
- } else if (isMap(value)) {
4093
- value.forEach(function(subValue, key2) {
4094
- result.set(key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
4095
- });
4096
- }
4097
- var keysFunc = isFull ? isFlat ? getAllKeysIn$1 : getAllKeys : isFlat ? keysIn : keys;
4098
- var props = isArr ? void 0 : keysFunc(value);
4099
- arrayEach(props || value, function(subValue, key2) {
4100
- if (props) {
4101
- key2 = subValue;
4102
- subValue = value[key2];
4103
- }
4104
- assignValue(result, key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
4105
- });
4106
- return result;
4107
- }
4108
- var _baseClone = baseClone$1;
4109
- var baseGetTag$1 = _baseGetTag, isObjectLike$1 = isObjectLike_1;
4110
- var symbolTag = "[object Symbol]";
4111
- function isSymbol$3(value) {
4112
- return typeof value == "symbol" || isObjectLike$1(value) && baseGetTag$1(value) == symbolTag;
4113
- }
4114
- var isSymbol_1 = isSymbol$3;
4115
- var isArray$3 = isArray_1, isSymbol$2 = isSymbol_1;
4116
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
4117
- function isKey$1(value, object) {
4118
- if (isArray$3(value)) {
4119
- return false;
4120
- }
4121
- var type = typeof value;
4122
- if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol$2(value)) {
4123
- return true;
4124
- }
4125
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
4126
- }
4127
- var _isKey = isKey$1;
4128
- var MapCache = _MapCache;
4129
- var FUNC_ERROR_TEXT = "Expected a function";
4130
- function memoize$1(func, resolver) {
4131
- if (typeof func != "function" || resolver != null && typeof resolver != "function") {
4132
- throw new TypeError(FUNC_ERROR_TEXT);
4133
- }
4134
- var memoized = function() {
4135
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
4136
- if (cache.has(key)) {
4137
- return cache.get(key);
4138
- }
4139
- var result = func.apply(this, args);
4140
- memoized.cache = cache.set(key, result) || cache;
4141
- return result;
4142
- };
4143
- memoized.cache = new (memoize$1.Cache || MapCache)();
4144
- return memoized;
4145
- }
4146
- memoize$1.Cache = MapCache;
4147
- var memoize_1 = memoize$1;
4148
- var memoize = memoize_1;
4149
- var MAX_MEMOIZE_SIZE = 500;
4150
- function memoizeCapped$1(func) {
4151
- var result = memoize(func, function(key) {
4152
- if (cache.size === MAX_MEMOIZE_SIZE) {
4153
- cache.clear();
4154
- }
4155
- return key;
4156
- });
4157
- var cache = result.cache;
4158
- return result;
4159
- }
4160
- var _memoizeCapped = memoizeCapped$1;
4161
- var memoizeCapped = _memoizeCapped;
4162
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
4163
- var reEscapeChar = /\\(\\)?/g;
4164
- var stringToPath$1 = memoizeCapped(function(string) {
4165
- var result = [];
4166
- if (string.charCodeAt(0) === 46) {
4167
- result.push("");
4168
- }
4169
- string.replace(rePropName, function(match, number, quote, subString) {
4170
- result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
4171
- });
4172
- return result;
4173
- });
4174
- var _stringToPath = stringToPath$1;
4175
- var Symbol$2 = _Symbol, arrayMap$1 = _arrayMap, isArray$2 = isArray_1, isSymbol$1 = isSymbol_1;
4176
- var INFINITY$1 = 1 / 0;
4177
- var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
4178
- function baseToString$1(value) {
4179
- if (typeof value == "string") {
4180
- return value;
4181
- }
4182
- if (isArray$2(value)) {
4183
- return arrayMap$1(value, baseToString$1) + "";
4184
- }
4185
- if (isSymbol$1(value)) {
4186
- return symbolToString ? symbolToString.call(value) : "";
4187
- }
4188
- var result = value + "";
4189
- return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
4190
- }
4191
- var _baseToString = baseToString$1;
4192
- var baseToString = _baseToString;
4193
- function toString$1(value) {
4194
- return value == null ? "" : baseToString(value);
4195
- }
4196
- var toString_1 = toString$1;
4197
- var isArray$1 = isArray_1, isKey = _isKey, stringToPath = _stringToPath, toString = toString_1;
4198
- function castPath$3(value, object) {
4199
- if (isArray$1(value)) {
4200
- return value;
4201
- }
4202
- return isKey(value, object) ? [value] : stringToPath(toString(value));
4203
- }
4204
- var _castPath = castPath$3;
4205
- function last$1(array) {
4206
- var length = array == null ? 0 : array.length;
4207
- return length ? array[length - 1] : void 0;
4208
- }
4209
- var last_1 = last$1;
4210
- var isSymbol = isSymbol_1;
4211
- var INFINITY = 1 / 0;
4212
- function toKey$2(value) {
4213
- if (typeof value == "string" || isSymbol(value)) {
4214
- return value;
4215
- }
4216
- var result = value + "";
4217
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
4218
- }
4219
- var _toKey = toKey$2;
4220
- var castPath$2 = _castPath, toKey$1 = _toKey;
4221
- function baseGet$1(object, path) {
4222
- path = castPath$2(path, object);
4223
- var index = 0, length = path.length;
4224
- while (object != null && index < length) {
4225
- object = object[toKey$1(path[index++])];
4226
- }
4227
- return index && index == length ? object : void 0;
4228
- }
4229
- var _baseGet = baseGet$1;
4230
- function baseSlice$1(array, start, end) {
4231
- var index = -1, length = array.length;
4232
- if (start < 0) {
4233
- start = -start > length ? 0 : length + start;
4234
- }
4235
- end = end > length ? length : end;
4236
- if (end < 0) {
4237
- end += length;
4238
- }
4239
- length = start > end ? 0 : end - start >>> 0;
4240
- start >>>= 0;
4241
- var result = Array(length);
4242
- while (++index < length) {
4243
- result[index] = array[index + start];
4244
- }
4245
- return result;
4246
- }
4247
- var _baseSlice = baseSlice$1;
4248
- var baseGet = _baseGet, baseSlice = _baseSlice;
4249
- function parent$1(object, path) {
4250
- return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
4251
- }
4252
- var _parent = parent$1;
4253
- var castPath$1 = _castPath, last = last_1, parent = _parent, toKey = _toKey;
4254
- function baseUnset$1(object, path) {
4255
- path = castPath$1(path, object);
4256
- object = parent(object, path);
4257
- return object == null || delete object[toKey(last(path))];
4258
- }
4259
- var _baseUnset = baseUnset$1;
4260
- var baseGetTag = _baseGetTag, getPrototype = _getPrototype, isObjectLike = isObjectLike_1;
4261
- var objectTag = "[object Object]";
4262
- var funcProto = Function.prototype, objectProto = Object.prototype;
4263
- var funcToString = funcProto.toString;
4264
- var hasOwnProperty = objectProto.hasOwnProperty;
4265
- var objectCtorString = funcToString.call(Object);
4266
- function isPlainObject$1(value) {
4267
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
4268
- return false;
4269
- }
4270
- var proto = getPrototype(value);
4271
- if (proto === null) {
4272
- return true;
4273
- }
4274
- var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
4275
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
4276
- }
4277
- var isPlainObject_1 = isPlainObject$1;
4278
- var isPlainObject = isPlainObject_1;
4279
- function customOmitClone$1(value) {
4280
- return isPlainObject(value) ? void 0 : value;
4281
- }
4282
- var _customOmitClone = customOmitClone$1;
4283
- var Symbol$1 = _Symbol, isArguments = isArguments_1, isArray = isArray_1;
4284
- var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
4285
- function isFlattenable$1(value) {
4286
- return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
4287
- }
4288
- var _isFlattenable = isFlattenable$1;
4289
- var arrayPush = _arrayPush, isFlattenable = _isFlattenable;
4290
- function baseFlatten$1(array, depth, predicate, isStrict, result) {
4291
- var index = -1, length = array.length;
4292
- predicate || (predicate = isFlattenable);
4293
- result || (result = []);
4294
- while (++index < length) {
4295
- var value = array[index];
4296
- if (depth > 0 && predicate(value)) {
4297
- if (depth > 1) {
4298
- baseFlatten$1(value, depth - 1, predicate, isStrict, result);
4299
- } else {
4300
- arrayPush(result, value);
4301
- }
4302
- } else if (!isStrict) {
4303
- result[result.length] = value;
4304
- }
4305
- }
4306
- return result;
4307
- }
4308
- var _baseFlatten = baseFlatten$1;
4309
- var baseFlatten = _baseFlatten;
4310
- function flatten$1(array) {
4311
- var length = array == null ? 0 : array.length;
4312
- return length ? baseFlatten(array, 1) : [];
4313
- }
4314
- var flatten_1 = flatten$1;
4315
- function apply$1(func, thisArg, args) {
4316
- switch (args.length) {
4317
- case 0:
4318
- return func.call(thisArg);
4319
- case 1:
4320
- return func.call(thisArg, args[0]);
4321
- case 2:
4322
- return func.call(thisArg, args[0], args[1]);
4323
- case 3:
4324
- return func.call(thisArg, args[0], args[1], args[2]);
4325
- }
4326
- return func.apply(thisArg, args);
4327
- }
4328
- var _apply = apply$1;
4329
- var apply = _apply;
4330
- var nativeMax = Math.max;
4331
- function overRest$1(func, start, transform) {
4332
- start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
4333
- return function() {
4334
- var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
4335
- while (++index < length) {
4336
- array[index] = args[start + index];
4337
- }
4338
- index = -1;
4339
- var otherArgs = Array(start + 1);
4340
- while (++index < start) {
4341
- otherArgs[index] = args[index];
4342
- }
4343
- otherArgs[start] = transform(array);
4344
- return apply(func, this, otherArgs);
4345
- };
4346
- }
4347
- var _overRest = overRest$1;
4348
- function constant$1(value) {
4349
- return function() {
4350
- return value;
4351
- };
4352
- }
4353
- var constant_1 = constant$1;
4354
- function identity$1(value) {
4355
- return value;
4356
- }
4357
- var identity_1 = identity$1;
4358
- var constant = constant_1, defineProperty = _defineProperty, identity = identity_1;
4359
- var baseSetToString$1 = !defineProperty ? identity : function(func, string) {
4360
- return defineProperty(func, "toString", {
4361
- "configurable": true,
4362
- "enumerable": false,
4363
- "value": constant(string),
4364
- "writable": true
4365
- });
4366
- };
4367
- var _baseSetToString = baseSetToString$1;
4368
- var HOT_COUNT = 800, HOT_SPAN = 16;
4369
- var nativeNow = Date.now;
4370
- function shortOut$1(func) {
4371
- var count = 0, lastCalled = 0;
4372
- return function() {
4373
- var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
4374
- lastCalled = stamp;
4375
- if (remaining > 0) {
4376
- if (++count >= HOT_COUNT) {
4377
- return arguments[0];
4378
- }
4379
- } else {
4380
- count = 0;
4381
- }
4382
- return func.apply(void 0, arguments);
4383
- };
4384
- }
4385
- var _shortOut = shortOut$1;
4386
- var baseSetToString = _baseSetToString, shortOut = _shortOut;
4387
- var setToString$1 = shortOut(baseSetToString);
4388
- var _setToString = setToString$1;
4389
- var flatten = flatten_1, overRest = _overRest, setToString = _setToString;
4390
- function flatRest$1(func) {
4391
- return setToString(overRest(func, void 0, flatten), func + "");
21
+ return react.useContext(adheseContext);
4392
22
  }
4393
- var _flatRest = flatRest$1;
4394
- var arrayMap = _arrayMap, baseClone = _baseClone, baseUnset = _baseUnset, castPath = _castPath, copyObject = _copyObject, customOmitClone = _customOmitClone, flatRest = _flatRest, getAllKeysIn = _getAllKeysIn;
4395
- var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4;
4396
- var omit = flatRest(function(object, paths) {
4397
- var result = {};
4398
- if (object == null) {
4399
- return result;
4400
- }
4401
- var isDeep = false;
4402
- paths = arrayMap(paths, function(path) {
4403
- path = castPath(path, object);
4404
- isDeep || (isDeep = path.length > 1);
4405
- return path;
4406
- });
4407
- copyObject(object, getAllKeysIn(object), result);
4408
- if (isDeep) {
4409
- result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
4410
- }
4411
- var length = paths.length;
4412
- while (length--) {
4413
- baseUnset(result, paths[length]);
4414
- }
4415
- return result;
4416
- });
4417
- var omit_1 = omit;
4418
- const omit$1 = /* @__PURE__ */ getDefaultExportFromCjs(omit_1);
4419
23
  function useAdheseSlot(elementRef, options) {
4420
- const [slot, setSlot] = reactExports.useState(null);
24
+ const [slot, setSlot] = react.useState(null);
4421
25
  const adhese = useAdhese();
4422
26
  useDeepCompareEffect(() => {
4423
27
  let intermediate;
@@ -4433,7 +37,7 @@ function useAdheseSlot(elementRef, options) {
4433
37
  return () => {
4434
38
  intermediate == null ? void 0 : intermediate.dispose();
4435
39
  };
4436
- }, [adhese, omit$1(options, Object.entries(options).filter(([, value]) => typeof value === "function").map(([key]) => key)), elementRef.current]);
40
+ }, [adhese, remeda.omit(options, Object.entries(options).filter(([, value]) => typeof value === "function").map(([key]) => key)), elementRef.current]);
4437
41
  return slot;
4438
42
  }
4439
43
  exports.AdheseProvider = AdheseProvider;