@bace51/cocktailjs-react 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -4,9 +4,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __commonJS = (cb, mod) => function __require() {
8
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
- };
10
7
  var __export = (target, all) => {
11
8
  for (var name in all)
12
9
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -29,2191 +26,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
26
  ));
30
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
28
 
32
- // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js
33
- var require_react_production_min = __commonJS({
34
- "../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js"(exports) {
35
- "use strict";
36
- var l = Symbol.for("react.element");
37
- var n = Symbol.for("react.portal");
38
- var p = Symbol.for("react.fragment");
39
- var q = Symbol.for("react.strict_mode");
40
- var r = Symbol.for("react.profiler");
41
- var t = Symbol.for("react.provider");
42
- var u = Symbol.for("react.context");
43
- var v = Symbol.for("react.forward_ref");
44
- var w = Symbol.for("react.suspense");
45
- var x = Symbol.for("react.memo");
46
- var y = Symbol.for("react.lazy");
47
- var z = Symbol.iterator;
48
- function A(a) {
49
- if (null === a || "object" !== typeof a)
50
- return null;
51
- a = z && a[z] || a["@@iterator"];
52
- return "function" === typeof a ? a : null;
53
- }
54
- var B = { isMounted: function() {
55
- return false;
56
- }, enqueueForceUpdate: function() {
57
- }, enqueueReplaceState: function() {
58
- }, enqueueSetState: function() {
59
- } };
60
- var C = Object.assign;
61
- var D = {};
62
- function E(a, b, e) {
63
- this.props = a;
64
- this.context = b;
65
- this.refs = D;
66
- this.updater = e || B;
67
- }
68
- E.prototype.isReactComponent = {};
69
- E.prototype.setState = function(a, b) {
70
- if ("object" !== typeof a && "function" !== typeof a && null != a)
71
- throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
72
- this.updater.enqueueSetState(this, a, b, "setState");
73
- };
74
- E.prototype.forceUpdate = function(a) {
75
- this.updater.enqueueForceUpdate(this, a, "forceUpdate");
76
- };
77
- function F() {
78
- }
79
- F.prototype = E.prototype;
80
- function G(a, b, e) {
81
- this.props = a;
82
- this.context = b;
83
- this.refs = D;
84
- this.updater = e || B;
85
- }
86
- var H = G.prototype = new F();
87
- H.constructor = G;
88
- C(H, E.prototype);
89
- H.isPureReactComponent = true;
90
- var I = Array.isArray;
91
- var J = Object.prototype.hasOwnProperty;
92
- var K = { current: null };
93
- var L = { key: true, ref: true, __self: true, __source: true };
94
- function M(a, b, e) {
95
- var d, c = {}, k = null, h = null;
96
- if (null != b)
97
- for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b)
98
- J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
99
- var g = arguments.length - 2;
100
- if (1 === g)
101
- c.children = e;
102
- else if (1 < g) {
103
- for (var f = Array(g), m = 0; m < g; m++)
104
- f[m] = arguments[m + 2];
105
- c.children = f;
106
- }
107
- if (a && a.defaultProps)
108
- for (d in g = a.defaultProps, g)
109
- void 0 === c[d] && (c[d] = g[d]);
110
- return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
111
- }
112
- function N(a, b) {
113
- return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
114
- }
115
- function O(a) {
116
- return "object" === typeof a && null !== a && a.$$typeof === l;
117
- }
118
- function escape(a) {
119
- var b = { "=": "=0", ":": "=2" };
120
- return "$" + a.replace(/[=:]/g, function(a2) {
121
- return b[a2];
122
- });
123
- }
124
- var P = /\/+/g;
125
- function Q(a, b) {
126
- return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
127
- }
128
- function R(a, b, e, d, c) {
129
- var k = typeof a;
130
- if ("undefined" === k || "boolean" === k)
131
- a = null;
132
- var h = false;
133
- if (null === a)
134
- h = true;
135
- else
136
- switch (k) {
137
- case "string":
138
- case "number":
139
- h = true;
140
- break;
141
- case "object":
142
- switch (a.$$typeof) {
143
- case l:
144
- case n:
145
- h = true;
146
- }
147
- }
148
- if (h)
149
- 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) {
150
- return a2;
151
- })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
152
- h = 0;
153
- d = "" === d ? "." : d + ":";
154
- if (I(a))
155
- for (var g = 0; g < a.length; g++) {
156
- k = a[g];
157
- var f = d + Q(k, g);
158
- h += R(k, b, e, f, c);
159
- }
160
- else if (f = A(a), "function" === typeof f)
161
- for (a = f.call(a), g = 0; !(k = a.next()).done; )
162
- k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
163
- else if ("object" === k)
164
- 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.");
165
- return h;
166
- }
167
- function S(a, b, e) {
168
- if (null == a)
169
- return a;
170
- var d = [], c = 0;
171
- R(a, d, "", "", function(a2) {
172
- return b.call(e, a2, c++);
173
- });
174
- return d;
175
- }
176
- function T(a) {
177
- if (-1 === a._status) {
178
- var b = a._result;
179
- b = b();
180
- b.then(function(b2) {
181
- if (0 === a._status || -1 === a._status)
182
- a._status = 1, a._result = b2;
183
- }, function(b2) {
184
- if (0 === a._status || -1 === a._status)
185
- a._status = 2, a._result = b2;
186
- });
187
- -1 === a._status && (a._status = 0, a._result = b);
188
- }
189
- if (1 === a._status)
190
- return a._result.default;
191
- throw a._result;
192
- }
193
- var U = { current: null };
194
- var V = { transition: null };
195
- var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
196
- function X() {
197
- throw Error("act(...) is not supported in production builds of React.");
198
- }
199
- exports.Children = { map: S, forEach: function(a, b, e) {
200
- S(a, function() {
201
- b.apply(this, arguments);
202
- }, e);
203
- }, count: function(a) {
204
- var b = 0;
205
- S(a, function() {
206
- b++;
207
- });
208
- return b;
209
- }, toArray: function(a) {
210
- return S(a, function(a2) {
211
- return a2;
212
- }) || [];
213
- }, only: function(a) {
214
- if (!O(a))
215
- throw Error("React.Children.only expected to receive a single React element child.");
216
- return a;
217
- } };
218
- exports.Component = E;
219
- exports.Fragment = p;
220
- exports.Profiler = r;
221
- exports.PureComponent = G;
222
- exports.StrictMode = q;
223
- exports.Suspense = w;
224
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
225
- exports.act = X;
226
- exports.cloneElement = function(a, b, e) {
227
- if (null === a || void 0 === a)
228
- throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
229
- var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
230
- if (null != b) {
231
- void 0 !== b.ref && (k = b.ref, h = K.current);
232
- void 0 !== b.key && (c = "" + b.key);
233
- if (a.type && a.type.defaultProps)
234
- var g = a.type.defaultProps;
235
- for (f in b)
236
- J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
237
- }
238
- var f = arguments.length - 2;
239
- if (1 === f)
240
- d.children = e;
241
- else if (1 < f) {
242
- g = Array(f);
243
- for (var m = 0; m < f; m++)
244
- g[m] = arguments[m + 2];
245
- d.children = g;
246
- }
247
- return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
248
- };
249
- exports.createContext = function(a) {
250
- a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
251
- a.Provider = { $$typeof: t, _context: a };
252
- return a.Consumer = a;
253
- };
254
- exports.createElement = M;
255
- exports.createFactory = function(a) {
256
- var b = M.bind(null, a);
257
- b.type = a;
258
- return b;
259
- };
260
- exports.createRef = function() {
261
- return { current: null };
262
- };
263
- exports.forwardRef = function(a) {
264
- return { $$typeof: v, render: a };
265
- };
266
- exports.isValidElement = O;
267
- exports.lazy = function(a) {
268
- return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
269
- };
270
- exports.memo = function(a, b) {
271
- return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
272
- };
273
- exports.startTransition = function(a) {
274
- var b = V.transition;
275
- V.transition = {};
276
- try {
277
- a();
278
- } finally {
279
- V.transition = b;
280
- }
281
- };
282
- exports.unstable_act = X;
283
- exports.useCallback = function(a, b) {
284
- return U.current.useCallback(a, b);
285
- };
286
- exports.useContext = function(a) {
287
- return U.current.useContext(a);
288
- };
289
- exports.useDebugValue = function() {
290
- };
291
- exports.useDeferredValue = function(a) {
292
- return U.current.useDeferredValue(a);
293
- };
294
- exports.useEffect = function(a, b) {
295
- return U.current.useEffect(a, b);
296
- };
297
- exports.useId = function() {
298
- return U.current.useId();
299
- };
300
- exports.useImperativeHandle = function(a, b, e) {
301
- return U.current.useImperativeHandle(a, b, e);
302
- };
303
- exports.useInsertionEffect = function(a, b) {
304
- return U.current.useInsertionEffect(a, b);
305
- };
306
- exports.useLayoutEffect = function(a, b) {
307
- return U.current.useLayoutEffect(a, b);
308
- };
309
- exports.useMemo = function(a, b) {
310
- return U.current.useMemo(a, b);
311
- };
312
- exports.useReducer = function(a, b, e) {
313
- return U.current.useReducer(a, b, e);
314
- };
315
- exports.useRef = function(a) {
316
- return U.current.useRef(a);
317
- };
318
- exports.useState = function(a) {
319
- return U.current.useState(a);
320
- };
321
- exports.useSyncExternalStore = function(a, b, e) {
322
- return U.current.useSyncExternalStore(a, b, e);
323
- };
324
- exports.useTransition = function() {
325
- return U.current.useTransition();
326
- };
327
- exports.version = "18.3.1";
328
- }
329
- });
330
-
331
- // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js
332
- var require_react_development = __commonJS({
333
- "../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js"(exports, module2) {
334
- "use strict";
335
- if (process.env.NODE_ENV !== "production") {
336
- (function() {
337
- "use strict";
338
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
339
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
340
- }
341
- var ReactVersion = "18.3.1";
342
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
343
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
344
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
345
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
346
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
347
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
348
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
349
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
350
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
351
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
352
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
353
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
354
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
355
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
356
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
357
- function getIteratorFn(maybeIterable) {
358
- if (maybeIterable === null || typeof maybeIterable !== "object") {
359
- return null;
360
- }
361
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
362
- if (typeof maybeIterator === "function") {
363
- return maybeIterator;
364
- }
365
- return null;
366
- }
367
- var ReactCurrentDispatcher = {
368
- /**
369
- * @internal
370
- * @type {ReactComponent}
371
- */
372
- current: null
373
- };
374
- var ReactCurrentBatchConfig = {
375
- transition: null
376
- };
377
- var ReactCurrentActQueue = {
378
- current: null,
379
- // Used to reproduce behavior of `batchedUpdates` in legacy mode.
380
- isBatchingLegacy: false,
381
- didScheduleLegacyUpdate: false
382
- };
383
- var ReactCurrentOwner = {
384
- /**
385
- * @internal
386
- * @type {ReactComponent}
387
- */
388
- current: null
389
- };
390
- var ReactDebugCurrentFrame = {};
391
- var currentExtraStackFrame = null;
392
- function setExtraStackFrame(stack) {
393
- {
394
- currentExtraStackFrame = stack;
395
- }
396
- }
397
- {
398
- ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
399
- {
400
- currentExtraStackFrame = stack;
401
- }
402
- };
403
- ReactDebugCurrentFrame.getCurrentStack = null;
404
- ReactDebugCurrentFrame.getStackAddendum = function() {
405
- var stack = "";
406
- if (currentExtraStackFrame) {
407
- stack += currentExtraStackFrame;
408
- }
409
- var impl = ReactDebugCurrentFrame.getCurrentStack;
410
- if (impl) {
411
- stack += impl() || "";
412
- }
413
- return stack;
414
- };
415
- }
416
- var enableScopeAPI = false;
417
- var enableCacheElement = false;
418
- var enableTransitionTracing = false;
419
- var enableLegacyHidden = false;
420
- var enableDebugTracing = false;
421
- var ReactSharedInternals = {
422
- ReactCurrentDispatcher,
423
- ReactCurrentBatchConfig,
424
- ReactCurrentOwner
425
- };
426
- {
427
- ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
428
- ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
429
- }
430
- function warn(format) {
431
- {
432
- {
433
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
434
- args[_key - 1] = arguments[_key];
435
- }
436
- printWarning("warn", format, args);
437
- }
438
- }
439
- }
440
- function error(format) {
441
- {
442
- {
443
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
444
- args[_key2 - 1] = arguments[_key2];
445
- }
446
- printWarning("error", format, args);
447
- }
448
- }
449
- }
450
- function printWarning(level, format, args) {
451
- {
452
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
453
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
454
- if (stack !== "") {
455
- format += "%s";
456
- args = args.concat([stack]);
457
- }
458
- var argsWithFormat = args.map(function(item) {
459
- return String(item);
460
- });
461
- argsWithFormat.unshift("Warning: " + format);
462
- Function.prototype.apply.call(console[level], console, argsWithFormat);
463
- }
464
- }
465
- var didWarnStateUpdateForUnmountedComponent = {};
466
- function warnNoop(publicInstance, callerName) {
467
- {
468
- var _constructor = publicInstance.constructor;
469
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
470
- var warningKey = componentName + "." + callerName;
471
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
472
- return;
473
- }
474
- 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);
475
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
476
- }
477
- }
478
- var ReactNoopUpdateQueue = {
479
- /**
480
- * Checks whether or not this composite component is mounted.
481
- * @param {ReactClass} publicInstance The instance we want to test.
482
- * @return {boolean} True if mounted, false otherwise.
483
- * @protected
484
- * @final
485
- */
486
- isMounted: function(publicInstance) {
487
- return false;
488
- },
489
- /**
490
- * Forces an update. This should only be invoked when it is known with
491
- * certainty that we are **not** in a DOM transaction.
492
- *
493
- * You may want to call this when you know that some deeper aspect of the
494
- * component's state has changed but `setState` was not called.
495
- *
496
- * This will not invoke `shouldComponentUpdate`, but it will invoke
497
- * `componentWillUpdate` and `componentDidUpdate`.
498
- *
499
- * @param {ReactClass} publicInstance The instance that should rerender.
500
- * @param {?function} callback Called after component is updated.
501
- * @param {?string} callerName name of the calling function in the public API.
502
- * @internal
503
- */
504
- enqueueForceUpdate: function(publicInstance, callback, callerName) {
505
- warnNoop(publicInstance, "forceUpdate");
506
- },
507
- /**
508
- * Replaces all of the state. Always use this or `setState` to mutate state.
509
- * You should treat `this.state` as immutable.
510
- *
511
- * There is no guarantee that `this.state` will be immediately updated, so
512
- * accessing `this.state` after calling this method may return the old value.
513
- *
514
- * @param {ReactClass} publicInstance The instance that should rerender.
515
- * @param {object} completeState Next state.
516
- * @param {?function} callback Called after component is updated.
517
- * @param {?string} callerName name of the calling function in the public API.
518
- * @internal
519
- */
520
- enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
521
- warnNoop(publicInstance, "replaceState");
522
- },
523
- /**
524
- * Sets a subset of the state. This only exists because _pendingState is
525
- * internal. This provides a merging strategy that is not available to deep
526
- * properties which is confusing. TODO: Expose pendingState or don't use it
527
- * during the merge.
528
- *
529
- * @param {ReactClass} publicInstance The instance that should rerender.
530
- * @param {object} partialState Next partial state to be merged with state.
531
- * @param {?function} callback Called after component is updated.
532
- * @param {?string} Name of the calling function in the public API.
533
- * @internal
534
- */
535
- enqueueSetState: function(publicInstance, partialState, callback, callerName) {
536
- warnNoop(publicInstance, "setState");
537
- }
538
- };
539
- var assign = Object.assign;
540
- var emptyObject = {};
541
- {
542
- Object.freeze(emptyObject);
543
- }
544
- function Component(props, context, updater) {
545
- this.props = props;
546
- this.context = context;
547
- this.refs = emptyObject;
548
- this.updater = updater || ReactNoopUpdateQueue;
549
- }
550
- Component.prototype.isReactComponent = {};
551
- Component.prototype.setState = function(partialState, callback) {
552
- if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
553
- throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
554
- }
555
- this.updater.enqueueSetState(this, partialState, callback, "setState");
556
- };
557
- Component.prototype.forceUpdate = function(callback) {
558
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
559
- };
560
- {
561
- var deprecatedAPIs = {
562
- isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
563
- replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
564
- };
565
- var defineDeprecationWarning = function(methodName, info) {
566
- Object.defineProperty(Component.prototype, methodName, {
567
- get: function() {
568
- warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
569
- return void 0;
570
- }
571
- });
572
- };
573
- for (var fnName in deprecatedAPIs) {
574
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
575
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
576
- }
577
- }
578
- }
579
- function ComponentDummy() {
580
- }
581
- ComponentDummy.prototype = Component.prototype;
582
- function PureComponent(props, context, updater) {
583
- this.props = props;
584
- this.context = context;
585
- this.refs = emptyObject;
586
- this.updater = updater || ReactNoopUpdateQueue;
587
- }
588
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
589
- pureComponentPrototype.constructor = PureComponent;
590
- assign(pureComponentPrototype, Component.prototype);
591
- pureComponentPrototype.isPureReactComponent = true;
592
- function createRef() {
593
- var refObject = {
594
- current: null
595
- };
596
- {
597
- Object.seal(refObject);
598
- }
599
- return refObject;
600
- }
601
- var isArrayImpl = Array.isArray;
602
- function isArray(a) {
603
- return isArrayImpl(a);
604
- }
605
- function typeName(value) {
606
- {
607
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
608
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
609
- return type;
610
- }
611
- }
612
- function willCoercionThrow(value) {
613
- {
614
- try {
615
- testStringCoercion(value);
616
- return false;
617
- } catch (e) {
618
- return true;
619
- }
620
- }
621
- }
622
- function testStringCoercion(value) {
623
- return "" + value;
624
- }
625
- function checkKeyStringCoercion(value) {
626
- {
627
- if (willCoercionThrow(value)) {
628
- error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
629
- return testStringCoercion(value);
630
- }
631
- }
632
- }
633
- function getWrappedName(outerType, innerType, wrapperName) {
634
- var displayName = outerType.displayName;
635
- if (displayName) {
636
- return displayName;
637
- }
638
- var functionName = innerType.displayName || innerType.name || "";
639
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
640
- }
641
- function getContextName(type) {
642
- return type.displayName || "Context";
643
- }
644
- function getComponentNameFromType(type) {
645
- if (type == null) {
646
- return null;
647
- }
648
- {
649
- if (typeof type.tag === "number") {
650
- error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
651
- }
652
- }
653
- if (typeof type === "function") {
654
- return type.displayName || type.name || null;
655
- }
656
- if (typeof type === "string") {
657
- return type;
658
- }
659
- switch (type) {
660
- case REACT_FRAGMENT_TYPE:
661
- return "Fragment";
662
- case REACT_PORTAL_TYPE:
663
- return "Portal";
664
- case REACT_PROFILER_TYPE:
665
- return "Profiler";
666
- case REACT_STRICT_MODE_TYPE:
667
- return "StrictMode";
668
- case REACT_SUSPENSE_TYPE:
669
- return "Suspense";
670
- case REACT_SUSPENSE_LIST_TYPE:
671
- return "SuspenseList";
672
- }
673
- if (typeof type === "object") {
674
- switch (type.$$typeof) {
675
- case REACT_CONTEXT_TYPE:
676
- var context = type;
677
- return getContextName(context) + ".Consumer";
678
- case REACT_PROVIDER_TYPE:
679
- var provider = type;
680
- return getContextName(provider._context) + ".Provider";
681
- case REACT_FORWARD_REF_TYPE:
682
- return getWrappedName(type, type.render, "ForwardRef");
683
- case REACT_MEMO_TYPE:
684
- var outerName = type.displayName || null;
685
- if (outerName !== null) {
686
- return outerName;
687
- }
688
- return getComponentNameFromType(type.type) || "Memo";
689
- case REACT_LAZY_TYPE: {
690
- var lazyComponent = type;
691
- var payload = lazyComponent._payload;
692
- var init = lazyComponent._init;
693
- try {
694
- return getComponentNameFromType(init(payload));
695
- } catch (x) {
696
- return null;
697
- }
698
- }
699
- }
700
- }
701
- return null;
702
- }
703
- var hasOwnProperty = Object.prototype.hasOwnProperty;
704
- var RESERVED_PROPS = {
705
- key: true,
706
- ref: true,
707
- __self: true,
708
- __source: true
709
- };
710
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
711
- {
712
- didWarnAboutStringRefs = {};
713
- }
714
- function hasValidRef(config) {
715
- {
716
- if (hasOwnProperty.call(config, "ref")) {
717
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
718
- if (getter && getter.isReactWarning) {
719
- return false;
720
- }
721
- }
722
- }
723
- return config.ref !== void 0;
724
- }
725
- function hasValidKey(config) {
726
- {
727
- if (hasOwnProperty.call(config, "key")) {
728
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
729
- if (getter && getter.isReactWarning) {
730
- return false;
731
- }
732
- }
733
- }
734
- return config.key !== void 0;
735
- }
736
- function defineKeyPropWarningGetter(props, displayName) {
737
- var warnAboutAccessingKey = function() {
738
- {
739
- if (!specialPropKeyWarningShown) {
740
- specialPropKeyWarningShown = true;
741
- 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);
742
- }
743
- }
744
- };
745
- warnAboutAccessingKey.isReactWarning = true;
746
- Object.defineProperty(props, "key", {
747
- get: warnAboutAccessingKey,
748
- configurable: true
749
- });
750
- }
751
- function defineRefPropWarningGetter(props, displayName) {
752
- var warnAboutAccessingRef = function() {
753
- {
754
- if (!specialPropRefWarningShown) {
755
- specialPropRefWarningShown = true;
756
- 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);
757
- }
758
- }
759
- };
760
- warnAboutAccessingRef.isReactWarning = true;
761
- Object.defineProperty(props, "ref", {
762
- get: warnAboutAccessingRef,
763
- configurable: true
764
- });
765
- }
766
- function warnIfStringRefCannotBeAutoConverted(config) {
767
- {
768
- if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
769
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
770
- if (!didWarnAboutStringRefs[componentName]) {
771
- 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);
772
- didWarnAboutStringRefs[componentName] = true;
773
- }
774
- }
775
- }
776
- }
777
- var ReactElement = function(type, key, ref, self, source, owner, props) {
778
- var element = {
779
- // This tag allows us to uniquely identify this as a React Element
780
- $$typeof: REACT_ELEMENT_TYPE,
781
- // Built-in properties that belong on the element
782
- type,
783
- key,
784
- ref,
785
- props,
786
- // Record the component responsible for creating this element.
787
- _owner: owner
788
- };
789
- {
790
- element._store = {};
791
- Object.defineProperty(element._store, "validated", {
792
- configurable: false,
793
- enumerable: false,
794
- writable: true,
795
- value: false
796
- });
797
- Object.defineProperty(element, "_self", {
798
- configurable: false,
799
- enumerable: false,
800
- writable: false,
801
- value: self
802
- });
803
- Object.defineProperty(element, "_source", {
804
- configurable: false,
805
- enumerable: false,
806
- writable: false,
807
- value: source
808
- });
809
- if (Object.freeze) {
810
- Object.freeze(element.props);
811
- Object.freeze(element);
812
- }
813
- }
814
- return element;
815
- };
816
- function createElement(type, config, children) {
817
- var propName;
818
- var props = {};
819
- var key = null;
820
- var ref = null;
821
- var self = null;
822
- var source = null;
823
- if (config != null) {
824
- if (hasValidRef(config)) {
825
- ref = config.ref;
826
- {
827
- warnIfStringRefCannotBeAutoConverted(config);
828
- }
829
- }
830
- if (hasValidKey(config)) {
831
- {
832
- checkKeyStringCoercion(config.key);
833
- }
834
- key = "" + config.key;
835
- }
836
- self = config.__self === void 0 ? null : config.__self;
837
- source = config.__source === void 0 ? null : config.__source;
838
- for (propName in config) {
839
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
840
- props[propName] = config[propName];
841
- }
842
- }
843
- }
844
- var childrenLength = arguments.length - 2;
845
- if (childrenLength === 1) {
846
- props.children = children;
847
- } else if (childrenLength > 1) {
848
- var childArray = Array(childrenLength);
849
- for (var i = 0; i < childrenLength; i++) {
850
- childArray[i] = arguments[i + 2];
851
- }
852
- {
853
- if (Object.freeze) {
854
- Object.freeze(childArray);
855
- }
856
- }
857
- props.children = childArray;
858
- }
859
- if (type && type.defaultProps) {
860
- var defaultProps = type.defaultProps;
861
- for (propName in defaultProps) {
862
- if (props[propName] === void 0) {
863
- props[propName] = defaultProps[propName];
864
- }
865
- }
866
- }
867
- {
868
- if (key || ref) {
869
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
870
- if (key) {
871
- defineKeyPropWarningGetter(props, displayName);
872
- }
873
- if (ref) {
874
- defineRefPropWarningGetter(props, displayName);
875
- }
876
- }
877
- }
878
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
879
- }
880
- function cloneAndReplaceKey(oldElement, newKey) {
881
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
882
- return newElement;
883
- }
884
- function cloneElement(element, config, children) {
885
- if (element === null || element === void 0) {
886
- throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
887
- }
888
- var propName;
889
- var props = assign({}, element.props);
890
- var key = element.key;
891
- var ref = element.ref;
892
- var self = element._self;
893
- var source = element._source;
894
- var owner = element._owner;
895
- if (config != null) {
896
- if (hasValidRef(config)) {
897
- ref = config.ref;
898
- owner = ReactCurrentOwner.current;
899
- }
900
- if (hasValidKey(config)) {
901
- {
902
- checkKeyStringCoercion(config.key);
903
- }
904
- key = "" + config.key;
905
- }
906
- var defaultProps;
907
- if (element.type && element.type.defaultProps) {
908
- defaultProps = element.type.defaultProps;
909
- }
910
- for (propName in config) {
911
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
912
- if (config[propName] === void 0 && defaultProps !== void 0) {
913
- props[propName] = defaultProps[propName];
914
- } else {
915
- props[propName] = config[propName];
916
- }
917
- }
918
- }
919
- }
920
- var childrenLength = arguments.length - 2;
921
- if (childrenLength === 1) {
922
- props.children = children;
923
- } else if (childrenLength > 1) {
924
- var childArray = Array(childrenLength);
925
- for (var i = 0; i < childrenLength; i++) {
926
- childArray[i] = arguments[i + 2];
927
- }
928
- props.children = childArray;
929
- }
930
- return ReactElement(element.type, key, ref, self, source, owner, props);
931
- }
932
- function isValidElement(object) {
933
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
934
- }
935
- var SEPARATOR = ".";
936
- var SUBSEPARATOR = ":";
937
- function escape(key) {
938
- var escapeRegex = /[=:]/g;
939
- var escaperLookup = {
940
- "=": "=0",
941
- ":": "=2"
942
- };
943
- var escapedString = key.replace(escapeRegex, function(match) {
944
- return escaperLookup[match];
945
- });
946
- return "$" + escapedString;
947
- }
948
- var didWarnAboutMaps = false;
949
- var userProvidedKeyEscapeRegex = /\/+/g;
950
- function escapeUserProvidedKey(text) {
951
- return text.replace(userProvidedKeyEscapeRegex, "$&/");
952
- }
953
- function getElementKey(element, index) {
954
- if (typeof element === "object" && element !== null && element.key != null) {
955
- {
956
- checkKeyStringCoercion(element.key);
957
- }
958
- return escape("" + element.key);
959
- }
960
- return index.toString(36);
961
- }
962
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
963
- var type = typeof children;
964
- if (type === "undefined" || type === "boolean") {
965
- children = null;
966
- }
967
- var invokeCallback = false;
968
- if (children === null) {
969
- invokeCallback = true;
970
- } else {
971
- switch (type) {
972
- case "string":
973
- case "number":
974
- invokeCallback = true;
975
- break;
976
- case "object":
977
- switch (children.$$typeof) {
978
- case REACT_ELEMENT_TYPE:
979
- case REACT_PORTAL_TYPE:
980
- invokeCallback = true;
981
- }
982
- }
983
- }
984
- if (invokeCallback) {
985
- var _child = children;
986
- var mappedChild = callback(_child);
987
- var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
988
- if (isArray(mappedChild)) {
989
- var escapedChildKey = "";
990
- if (childKey != null) {
991
- escapedChildKey = escapeUserProvidedKey(childKey) + "/";
992
- }
993
- mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
994
- return c;
995
- });
996
- } else if (mappedChild != null) {
997
- if (isValidElement(mappedChild)) {
998
- {
999
- if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
1000
- checkKeyStringCoercion(mappedChild.key);
1001
- }
1002
- }
1003
- mappedChild = cloneAndReplaceKey(
1004
- mappedChild,
1005
- // Keep both the (mapped) and old keys if they differ, just as
1006
- // traverseAllChildren used to do for objects as children
1007
- escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1008
- (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
1009
- // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
1010
- // eslint-disable-next-line react-internal/safe-string-coercion
1011
- escapeUserProvidedKey("" + mappedChild.key) + "/"
1012
- ) : "") + childKey
1013
- );
1014
- }
1015
- array.push(mappedChild);
1016
- }
1017
- return 1;
1018
- }
1019
- var child;
1020
- var nextName;
1021
- var subtreeCount = 0;
1022
- var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
1023
- if (isArray(children)) {
1024
- for (var i = 0; i < children.length; i++) {
1025
- child = children[i];
1026
- nextName = nextNamePrefix + getElementKey(child, i);
1027
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1028
- }
1029
- } else {
1030
- var iteratorFn = getIteratorFn(children);
1031
- if (typeof iteratorFn === "function") {
1032
- var iterableChildren = children;
1033
- {
1034
- if (iteratorFn === iterableChildren.entries) {
1035
- if (!didWarnAboutMaps) {
1036
- warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
1037
- }
1038
- didWarnAboutMaps = true;
1039
- }
1040
- }
1041
- var iterator = iteratorFn.call(iterableChildren);
1042
- var step;
1043
- var ii = 0;
1044
- while (!(step = iterator.next()).done) {
1045
- child = step.value;
1046
- nextName = nextNamePrefix + getElementKey(child, ii++);
1047
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1048
- }
1049
- } else if (type === "object") {
1050
- var childrenString = String(children);
1051
- 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.");
1052
- }
1053
- }
1054
- return subtreeCount;
1055
- }
1056
- function mapChildren(children, func, context) {
1057
- if (children == null) {
1058
- return children;
1059
- }
1060
- var result = [];
1061
- var count = 0;
1062
- mapIntoArray(children, result, "", "", function(child) {
1063
- return func.call(context, child, count++);
1064
- });
1065
- return result;
1066
- }
1067
- function countChildren(children) {
1068
- var n = 0;
1069
- mapChildren(children, function() {
1070
- n++;
1071
- });
1072
- return n;
1073
- }
1074
- function forEachChildren(children, forEachFunc, forEachContext) {
1075
- mapChildren(children, function() {
1076
- forEachFunc.apply(this, arguments);
1077
- }, forEachContext);
1078
- }
1079
- function toArray(children) {
1080
- return mapChildren(children, function(child) {
1081
- return child;
1082
- }) || [];
1083
- }
1084
- function onlyChild(children) {
1085
- if (!isValidElement(children)) {
1086
- throw new Error("React.Children.only expected to receive a single React element child.");
1087
- }
1088
- return children;
1089
- }
1090
- function createContext(defaultValue) {
1091
- var context = {
1092
- $$typeof: REACT_CONTEXT_TYPE,
1093
- // As a workaround to support multiple concurrent renderers, we categorize
1094
- // some renderers as primary and others as secondary. We only expect
1095
- // there to be two concurrent renderers at most: React Native (primary) and
1096
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
1097
- // Secondary renderers store their context values on separate fields.
1098
- _currentValue: defaultValue,
1099
- _currentValue2: defaultValue,
1100
- // Used to track how many concurrent renderers this context currently
1101
- // supports within in a single renderer. Such as parallel server rendering.
1102
- _threadCount: 0,
1103
- // These are circular
1104
- Provider: null,
1105
- Consumer: null,
1106
- // Add these to use same hidden class in VM as ServerContext
1107
- _defaultValue: null,
1108
- _globalName: null
1109
- };
1110
- context.Provider = {
1111
- $$typeof: REACT_PROVIDER_TYPE,
1112
- _context: context
1113
- };
1114
- var hasWarnedAboutUsingNestedContextConsumers = false;
1115
- var hasWarnedAboutUsingConsumerProvider = false;
1116
- var hasWarnedAboutDisplayNameOnConsumer = false;
1117
- {
1118
- var Consumer = {
1119
- $$typeof: REACT_CONTEXT_TYPE,
1120
- _context: context
1121
- };
1122
- Object.defineProperties(Consumer, {
1123
- Provider: {
1124
- get: function() {
1125
- if (!hasWarnedAboutUsingConsumerProvider) {
1126
- hasWarnedAboutUsingConsumerProvider = true;
1127
- 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?");
1128
- }
1129
- return context.Provider;
1130
- },
1131
- set: function(_Provider) {
1132
- context.Provider = _Provider;
1133
- }
1134
- },
1135
- _currentValue: {
1136
- get: function() {
1137
- return context._currentValue;
1138
- },
1139
- set: function(_currentValue) {
1140
- context._currentValue = _currentValue;
1141
- }
1142
- },
1143
- _currentValue2: {
1144
- get: function() {
1145
- return context._currentValue2;
1146
- },
1147
- set: function(_currentValue2) {
1148
- context._currentValue2 = _currentValue2;
1149
- }
1150
- },
1151
- _threadCount: {
1152
- get: function() {
1153
- return context._threadCount;
1154
- },
1155
- set: function(_threadCount) {
1156
- context._threadCount = _threadCount;
1157
- }
1158
- },
1159
- Consumer: {
1160
- get: function() {
1161
- if (!hasWarnedAboutUsingNestedContextConsumers) {
1162
- hasWarnedAboutUsingNestedContextConsumers = true;
1163
- 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?");
1164
- }
1165
- return context.Consumer;
1166
- }
1167
- },
1168
- displayName: {
1169
- get: function() {
1170
- return context.displayName;
1171
- },
1172
- set: function(displayName) {
1173
- if (!hasWarnedAboutDisplayNameOnConsumer) {
1174
- warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
1175
- hasWarnedAboutDisplayNameOnConsumer = true;
1176
- }
1177
- }
1178
- }
1179
- });
1180
- context.Consumer = Consumer;
1181
- }
1182
- {
1183
- context._currentRenderer = null;
1184
- context._currentRenderer2 = null;
1185
- }
1186
- return context;
1187
- }
1188
- var Uninitialized = -1;
1189
- var Pending = 0;
1190
- var Resolved = 1;
1191
- var Rejected = 2;
1192
- function lazyInitializer(payload) {
1193
- if (payload._status === Uninitialized) {
1194
- var ctor = payload._result;
1195
- var thenable = ctor();
1196
- thenable.then(function(moduleObject2) {
1197
- if (payload._status === Pending || payload._status === Uninitialized) {
1198
- var resolved = payload;
1199
- resolved._status = Resolved;
1200
- resolved._result = moduleObject2;
1201
- }
1202
- }, function(error2) {
1203
- if (payload._status === Pending || payload._status === Uninitialized) {
1204
- var rejected = payload;
1205
- rejected._status = Rejected;
1206
- rejected._result = error2;
1207
- }
1208
- });
1209
- if (payload._status === Uninitialized) {
1210
- var pending = payload;
1211
- pending._status = Pending;
1212
- pending._result = thenable;
1213
- }
1214
- }
1215
- if (payload._status === Resolved) {
1216
- var moduleObject = payload._result;
1217
- {
1218
- if (moduleObject === void 0) {
1219
- 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);
1220
- }
1221
- }
1222
- {
1223
- if (!("default" in moduleObject)) {
1224
- 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);
1225
- }
1226
- }
1227
- return moduleObject.default;
1228
- } else {
1229
- throw payload._result;
1230
- }
1231
- }
1232
- function lazy(ctor) {
1233
- var payload = {
1234
- // We use these fields to store the result.
1235
- _status: Uninitialized,
1236
- _result: ctor
1237
- };
1238
- var lazyType = {
1239
- $$typeof: REACT_LAZY_TYPE,
1240
- _payload: payload,
1241
- _init: lazyInitializer
1242
- };
1243
- {
1244
- var defaultProps;
1245
- var propTypes;
1246
- Object.defineProperties(lazyType, {
1247
- defaultProps: {
1248
- configurable: true,
1249
- get: function() {
1250
- return defaultProps;
1251
- },
1252
- set: function(newDefaultProps) {
1253
- 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.");
1254
- defaultProps = newDefaultProps;
1255
- Object.defineProperty(lazyType, "defaultProps", {
1256
- enumerable: true
1257
- });
1258
- }
1259
- },
1260
- propTypes: {
1261
- configurable: true,
1262
- get: function() {
1263
- return propTypes;
1264
- },
1265
- set: function(newPropTypes) {
1266
- 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.");
1267
- propTypes = newPropTypes;
1268
- Object.defineProperty(lazyType, "propTypes", {
1269
- enumerable: true
1270
- });
1271
- }
1272
- }
1273
- });
1274
- }
1275
- return lazyType;
1276
- }
1277
- function forwardRef(render) {
1278
- {
1279
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1280
- error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
1281
- } else if (typeof render !== "function") {
1282
- error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
1283
- } else {
1284
- if (render.length !== 0 && render.length !== 2) {
1285
- 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.");
1286
- }
1287
- }
1288
- if (render != null) {
1289
- if (render.defaultProps != null || render.propTypes != null) {
1290
- error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
1291
- }
1292
- }
1293
- }
1294
- var elementType = {
1295
- $$typeof: REACT_FORWARD_REF_TYPE,
1296
- render
1297
- };
1298
- {
1299
- var ownName;
1300
- Object.defineProperty(elementType, "displayName", {
1301
- enumerable: false,
1302
- configurable: true,
1303
- get: function() {
1304
- return ownName;
1305
- },
1306
- set: function(name) {
1307
- ownName = name;
1308
- if (!render.name && !render.displayName) {
1309
- render.displayName = name;
1310
- }
1311
- }
1312
- });
1313
- }
1314
- return elementType;
1315
- }
1316
- var REACT_MODULE_REFERENCE;
1317
- {
1318
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
1319
- }
1320
- function isValidElementType(type) {
1321
- if (typeof type === "string" || typeof type === "function") {
1322
- return true;
1323
- }
1324
- 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) {
1325
- return true;
1326
- }
1327
- if (typeof type === "object" && type !== null) {
1328
- 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
1329
- // types supported by any Flight configuration anywhere since
1330
- // we don't know which Flight build this will end up being used
1331
- // with.
1332
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
1333
- return true;
1334
- }
1335
- }
1336
- return false;
1337
- }
1338
- function memo(type, compare) {
1339
- {
1340
- if (!isValidElementType(type)) {
1341
- error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
1342
- }
1343
- }
1344
- var elementType = {
1345
- $$typeof: REACT_MEMO_TYPE,
1346
- type,
1347
- compare: compare === void 0 ? null : compare
1348
- };
1349
- {
1350
- var ownName;
1351
- Object.defineProperty(elementType, "displayName", {
1352
- enumerable: false,
1353
- configurable: true,
1354
- get: function() {
1355
- return ownName;
1356
- },
1357
- set: function(name) {
1358
- ownName = name;
1359
- if (!type.name && !type.displayName) {
1360
- type.displayName = name;
1361
- }
1362
- }
1363
- });
1364
- }
1365
- return elementType;
1366
- }
1367
- function resolveDispatcher() {
1368
- var dispatcher = ReactCurrentDispatcher.current;
1369
- {
1370
- if (dispatcher === null) {
1371
- 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.");
1372
- }
1373
- }
1374
- return dispatcher;
1375
- }
1376
- function useContext(Context) {
1377
- var dispatcher = resolveDispatcher();
1378
- {
1379
- if (Context._context !== void 0) {
1380
- var realContext = Context._context;
1381
- if (realContext.Consumer === Context) {
1382
- 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?");
1383
- } else if (realContext.Provider === Context) {
1384
- error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1385
- }
1386
- }
1387
- }
1388
- return dispatcher.useContext(Context);
1389
- }
1390
- function useState(initialState) {
1391
- var dispatcher = resolveDispatcher();
1392
- return dispatcher.useState(initialState);
1393
- }
1394
- function useReducer(reducer, initialArg, init) {
1395
- var dispatcher = resolveDispatcher();
1396
- return dispatcher.useReducer(reducer, initialArg, init);
1397
- }
1398
- function useRef(initialValue) {
1399
- var dispatcher = resolveDispatcher();
1400
- return dispatcher.useRef(initialValue);
1401
- }
1402
- function useEffect(create, deps) {
1403
- var dispatcher = resolveDispatcher();
1404
- return dispatcher.useEffect(create, deps);
1405
- }
1406
- function useInsertionEffect(create, deps) {
1407
- var dispatcher = resolveDispatcher();
1408
- return dispatcher.useInsertionEffect(create, deps);
1409
- }
1410
- function useLayoutEffect(create, deps) {
1411
- var dispatcher = resolveDispatcher();
1412
- return dispatcher.useLayoutEffect(create, deps);
1413
- }
1414
- function useCallback(callback, deps) {
1415
- var dispatcher = resolveDispatcher();
1416
- return dispatcher.useCallback(callback, deps);
1417
- }
1418
- function useMemo(create, deps) {
1419
- var dispatcher = resolveDispatcher();
1420
- return dispatcher.useMemo(create, deps);
1421
- }
1422
- function useImperativeHandle(ref, create, deps) {
1423
- var dispatcher = resolveDispatcher();
1424
- return dispatcher.useImperativeHandle(ref, create, deps);
1425
- }
1426
- function useDebugValue(value, formatterFn) {
1427
- {
1428
- var dispatcher = resolveDispatcher();
1429
- return dispatcher.useDebugValue(value, formatterFn);
1430
- }
1431
- }
1432
- function useTransition() {
1433
- var dispatcher = resolveDispatcher();
1434
- return dispatcher.useTransition();
1435
- }
1436
- function useDeferredValue(value) {
1437
- var dispatcher = resolveDispatcher();
1438
- return dispatcher.useDeferredValue(value);
1439
- }
1440
- function useId() {
1441
- var dispatcher = resolveDispatcher();
1442
- return dispatcher.useId();
1443
- }
1444
- function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
1445
- var dispatcher = resolveDispatcher();
1446
- return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1447
- }
1448
- var disabledDepth = 0;
1449
- var prevLog;
1450
- var prevInfo;
1451
- var prevWarn;
1452
- var prevError;
1453
- var prevGroup;
1454
- var prevGroupCollapsed;
1455
- var prevGroupEnd;
1456
- function disabledLog() {
1457
- }
1458
- disabledLog.__reactDisabledLog = true;
1459
- function disableLogs() {
1460
- {
1461
- if (disabledDepth === 0) {
1462
- prevLog = console.log;
1463
- prevInfo = console.info;
1464
- prevWarn = console.warn;
1465
- prevError = console.error;
1466
- prevGroup = console.group;
1467
- prevGroupCollapsed = console.groupCollapsed;
1468
- prevGroupEnd = console.groupEnd;
1469
- var props = {
1470
- configurable: true,
1471
- enumerable: true,
1472
- value: disabledLog,
1473
- writable: true
1474
- };
1475
- Object.defineProperties(console, {
1476
- info: props,
1477
- log: props,
1478
- warn: props,
1479
- error: props,
1480
- group: props,
1481
- groupCollapsed: props,
1482
- groupEnd: props
1483
- });
1484
- }
1485
- disabledDepth++;
1486
- }
1487
- }
1488
- function reenableLogs() {
1489
- {
1490
- disabledDepth--;
1491
- if (disabledDepth === 0) {
1492
- var props = {
1493
- configurable: true,
1494
- enumerable: true,
1495
- writable: true
1496
- };
1497
- Object.defineProperties(console, {
1498
- log: assign({}, props, {
1499
- value: prevLog
1500
- }),
1501
- info: assign({}, props, {
1502
- value: prevInfo
1503
- }),
1504
- warn: assign({}, props, {
1505
- value: prevWarn
1506
- }),
1507
- error: assign({}, props, {
1508
- value: prevError
1509
- }),
1510
- group: assign({}, props, {
1511
- value: prevGroup
1512
- }),
1513
- groupCollapsed: assign({}, props, {
1514
- value: prevGroupCollapsed
1515
- }),
1516
- groupEnd: assign({}, props, {
1517
- value: prevGroupEnd
1518
- })
1519
- });
1520
- }
1521
- if (disabledDepth < 0) {
1522
- error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1523
- }
1524
- }
1525
- }
1526
- var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1527
- var prefix;
1528
- function describeBuiltInComponentFrame(name, source, ownerFn) {
1529
- {
1530
- if (prefix === void 0) {
1531
- try {
1532
- throw Error();
1533
- } catch (x) {
1534
- var match = x.stack.trim().match(/\n( *(at )?)/);
1535
- prefix = match && match[1] || "";
1536
- }
1537
- }
1538
- return "\n" + prefix + name;
1539
- }
1540
- }
1541
- var reentry = false;
1542
- var componentFrameCache;
1543
- {
1544
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
1545
- componentFrameCache = new PossiblyWeakMap();
1546
- }
1547
- function describeNativeComponentFrame(fn, construct) {
1548
- if (!fn || reentry) {
1549
- return "";
1550
- }
1551
- {
1552
- var frame = componentFrameCache.get(fn);
1553
- if (frame !== void 0) {
1554
- return frame;
1555
- }
1556
- }
1557
- var control;
1558
- reentry = true;
1559
- var previousPrepareStackTrace = Error.prepareStackTrace;
1560
- Error.prepareStackTrace = void 0;
1561
- var previousDispatcher;
1562
- {
1563
- previousDispatcher = ReactCurrentDispatcher$1.current;
1564
- ReactCurrentDispatcher$1.current = null;
1565
- disableLogs();
1566
- }
1567
- try {
1568
- if (construct) {
1569
- var Fake = function() {
1570
- throw Error();
1571
- };
1572
- Object.defineProperty(Fake.prototype, "props", {
1573
- set: function() {
1574
- throw Error();
1575
- }
1576
- });
1577
- if (typeof Reflect === "object" && Reflect.construct) {
1578
- try {
1579
- Reflect.construct(Fake, []);
1580
- } catch (x) {
1581
- control = x;
1582
- }
1583
- Reflect.construct(fn, [], Fake);
1584
- } else {
1585
- try {
1586
- Fake.call();
1587
- } catch (x) {
1588
- control = x;
1589
- }
1590
- fn.call(Fake.prototype);
1591
- }
1592
- } else {
1593
- try {
1594
- throw Error();
1595
- } catch (x) {
1596
- control = x;
1597
- }
1598
- fn();
1599
- }
1600
- } catch (sample) {
1601
- if (sample && control && typeof sample.stack === "string") {
1602
- var sampleLines = sample.stack.split("\n");
1603
- var controlLines = control.stack.split("\n");
1604
- var s = sampleLines.length - 1;
1605
- var c = controlLines.length - 1;
1606
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1607
- c--;
1608
- }
1609
- for (; s >= 1 && c >= 0; s--, c--) {
1610
- if (sampleLines[s] !== controlLines[c]) {
1611
- if (s !== 1 || c !== 1) {
1612
- do {
1613
- s--;
1614
- c--;
1615
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
1616
- var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
1617
- if (fn.displayName && _frame.includes("<anonymous>")) {
1618
- _frame = _frame.replace("<anonymous>", fn.displayName);
1619
- }
1620
- {
1621
- if (typeof fn === "function") {
1622
- componentFrameCache.set(fn, _frame);
1623
- }
1624
- }
1625
- return _frame;
1626
- }
1627
- } while (s >= 1 && c >= 0);
1628
- }
1629
- break;
1630
- }
1631
- }
1632
- }
1633
- } finally {
1634
- reentry = false;
1635
- {
1636
- ReactCurrentDispatcher$1.current = previousDispatcher;
1637
- reenableLogs();
1638
- }
1639
- Error.prepareStackTrace = previousPrepareStackTrace;
1640
- }
1641
- var name = fn ? fn.displayName || fn.name : "";
1642
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
1643
- {
1644
- if (typeof fn === "function") {
1645
- componentFrameCache.set(fn, syntheticFrame);
1646
- }
1647
- }
1648
- return syntheticFrame;
1649
- }
1650
- function describeFunctionComponentFrame(fn, source, ownerFn) {
1651
- {
1652
- return describeNativeComponentFrame(fn, false);
1653
- }
1654
- }
1655
- function shouldConstruct(Component2) {
1656
- var prototype = Component2.prototype;
1657
- return !!(prototype && prototype.isReactComponent);
1658
- }
1659
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1660
- if (type == null) {
1661
- return "";
1662
- }
1663
- if (typeof type === "function") {
1664
- {
1665
- return describeNativeComponentFrame(type, shouldConstruct(type));
1666
- }
1667
- }
1668
- if (typeof type === "string") {
1669
- return describeBuiltInComponentFrame(type);
1670
- }
1671
- switch (type) {
1672
- case REACT_SUSPENSE_TYPE:
1673
- return describeBuiltInComponentFrame("Suspense");
1674
- case REACT_SUSPENSE_LIST_TYPE:
1675
- return describeBuiltInComponentFrame("SuspenseList");
1676
- }
1677
- if (typeof type === "object") {
1678
- switch (type.$$typeof) {
1679
- case REACT_FORWARD_REF_TYPE:
1680
- return describeFunctionComponentFrame(type.render);
1681
- case REACT_MEMO_TYPE:
1682
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1683
- case REACT_LAZY_TYPE: {
1684
- var lazyComponent = type;
1685
- var payload = lazyComponent._payload;
1686
- var init = lazyComponent._init;
1687
- try {
1688
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
1689
- } catch (x) {
1690
- }
1691
- }
1692
- }
1693
- }
1694
- return "";
1695
- }
1696
- var loggedTypeFailures = {};
1697
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1698
- function setCurrentlyValidatingElement(element) {
1699
- {
1700
- if (element) {
1701
- var owner = element._owner;
1702
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1703
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1704
- } else {
1705
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1706
- }
1707
- }
1708
- }
1709
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
1710
- {
1711
- var has = Function.call.bind(hasOwnProperty);
1712
- for (var typeSpecName in typeSpecs) {
1713
- if (has(typeSpecs, typeSpecName)) {
1714
- var error$1 = void 0;
1715
- try {
1716
- if (typeof typeSpecs[typeSpecName] !== "function") {
1717
- 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`.");
1718
- err.name = "Invariant Violation";
1719
- throw err;
1720
- }
1721
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1722
- } catch (ex) {
1723
- error$1 = ex;
1724
- }
1725
- if (error$1 && !(error$1 instanceof Error)) {
1726
- setCurrentlyValidatingElement(element);
1727
- 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);
1728
- setCurrentlyValidatingElement(null);
1729
- }
1730
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
1731
- loggedTypeFailures[error$1.message] = true;
1732
- setCurrentlyValidatingElement(element);
1733
- error("Failed %s type: %s", location, error$1.message);
1734
- setCurrentlyValidatingElement(null);
1735
- }
1736
- }
1737
- }
1738
- }
1739
- }
1740
- function setCurrentlyValidatingElement$1(element) {
1741
- {
1742
- if (element) {
1743
- var owner = element._owner;
1744
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1745
- setExtraStackFrame(stack);
1746
- } else {
1747
- setExtraStackFrame(null);
1748
- }
1749
- }
1750
- }
1751
- var propTypesMisspellWarningShown;
1752
- {
1753
- propTypesMisspellWarningShown = false;
1754
- }
1755
- function getDeclarationErrorAddendum() {
1756
- if (ReactCurrentOwner.current) {
1757
- var name = getComponentNameFromType(ReactCurrentOwner.current.type);
1758
- if (name) {
1759
- return "\n\nCheck the render method of `" + name + "`.";
1760
- }
1761
- }
1762
- return "";
1763
- }
1764
- function getSourceInfoErrorAddendum(source) {
1765
- if (source !== void 0) {
1766
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1767
- var lineNumber = source.lineNumber;
1768
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1769
- }
1770
- return "";
1771
- }
1772
- function getSourceInfoErrorAddendumForProps(elementProps) {
1773
- if (elementProps !== null && elementProps !== void 0) {
1774
- return getSourceInfoErrorAddendum(elementProps.__source);
1775
- }
1776
- return "";
1777
- }
1778
- var ownerHasKeyUseWarning = {};
1779
- function getCurrentComponentErrorInfo(parentType) {
1780
- var info = getDeclarationErrorAddendum();
1781
- if (!info) {
1782
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
1783
- if (parentName) {
1784
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1785
- }
1786
- }
1787
- return info;
1788
- }
1789
- function validateExplicitKey(element, parentType) {
1790
- if (!element._store || element._store.validated || element.key != null) {
1791
- return;
1792
- }
1793
- element._store.validated = true;
1794
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1795
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1796
- return;
1797
- }
1798
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1799
- var childOwner = "";
1800
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1801
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1802
- }
1803
- {
1804
- setCurrentlyValidatingElement$1(element);
1805
- 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);
1806
- setCurrentlyValidatingElement$1(null);
1807
- }
1808
- }
1809
- function validateChildKeys(node, parentType) {
1810
- if (typeof node !== "object") {
1811
- return;
1812
- }
1813
- if (isArray(node)) {
1814
- for (var i = 0; i < node.length; i++) {
1815
- var child = node[i];
1816
- if (isValidElement(child)) {
1817
- validateExplicitKey(child, parentType);
1818
- }
1819
- }
1820
- } else if (isValidElement(node)) {
1821
- if (node._store) {
1822
- node._store.validated = true;
1823
- }
1824
- } else if (node) {
1825
- var iteratorFn = getIteratorFn(node);
1826
- if (typeof iteratorFn === "function") {
1827
- if (iteratorFn !== node.entries) {
1828
- var iterator = iteratorFn.call(node);
1829
- var step;
1830
- while (!(step = iterator.next()).done) {
1831
- if (isValidElement(step.value)) {
1832
- validateExplicitKey(step.value, parentType);
1833
- }
1834
- }
1835
- }
1836
- }
1837
- }
1838
- }
1839
- function validatePropTypes(element) {
1840
- {
1841
- var type = element.type;
1842
- if (type === null || type === void 0 || typeof type === "string") {
1843
- return;
1844
- }
1845
- var propTypes;
1846
- if (typeof type === "function") {
1847
- propTypes = type.propTypes;
1848
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1849
- // Inner props are checked in the reconciler.
1850
- type.$$typeof === REACT_MEMO_TYPE)) {
1851
- propTypes = type.propTypes;
1852
- } else {
1853
- return;
1854
- }
1855
- if (propTypes) {
1856
- var name = getComponentNameFromType(type);
1857
- checkPropTypes(propTypes, element.props, "prop", name, element);
1858
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
1859
- propTypesMisspellWarningShown = true;
1860
- var _name = getComponentNameFromType(type);
1861
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
1862
- }
1863
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
1864
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1865
- }
1866
- }
1867
- }
1868
- function validateFragmentProps(fragment) {
1869
- {
1870
- var keys = Object.keys(fragment.props);
1871
- for (var i = 0; i < keys.length; i++) {
1872
- var key = keys[i];
1873
- if (key !== "children" && key !== "key") {
1874
- setCurrentlyValidatingElement$1(fragment);
1875
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1876
- setCurrentlyValidatingElement$1(null);
1877
- break;
1878
- }
1879
- }
1880
- if (fragment.ref !== null) {
1881
- setCurrentlyValidatingElement$1(fragment);
1882
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
1883
- setCurrentlyValidatingElement$1(null);
1884
- }
1885
- }
1886
- }
1887
- function createElementWithValidation(type, props, children) {
1888
- var validType = isValidElementType(type);
1889
- if (!validType) {
1890
- var info = "";
1891
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
1892
- 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.";
1893
- }
1894
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
1895
- if (sourceInfo) {
1896
- info += sourceInfo;
1897
- } else {
1898
- info += getDeclarationErrorAddendum();
1899
- }
1900
- var typeString;
1901
- if (type === null) {
1902
- typeString = "null";
1903
- } else if (isArray(type)) {
1904
- typeString = "array";
1905
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
1906
- typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
1907
- info = " Did you accidentally export a JSX literal instead of a component?";
1908
- } else {
1909
- typeString = typeof type;
1910
- }
1911
- {
1912
- 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);
1913
- }
1914
- }
1915
- var element = createElement.apply(this, arguments);
1916
- if (element == null) {
1917
- return element;
1918
- }
1919
- if (validType) {
1920
- for (var i = 2; i < arguments.length; i++) {
1921
- validateChildKeys(arguments[i], type);
1922
- }
1923
- }
1924
- if (type === REACT_FRAGMENT_TYPE) {
1925
- validateFragmentProps(element);
1926
- } else {
1927
- validatePropTypes(element);
1928
- }
1929
- return element;
1930
- }
1931
- var didWarnAboutDeprecatedCreateFactory = false;
1932
- function createFactoryWithValidation(type) {
1933
- var validatedFactory = createElementWithValidation.bind(null, type);
1934
- validatedFactory.type = type;
1935
- {
1936
- if (!didWarnAboutDeprecatedCreateFactory) {
1937
- didWarnAboutDeprecatedCreateFactory = true;
1938
- warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
1939
- }
1940
- Object.defineProperty(validatedFactory, "type", {
1941
- enumerable: false,
1942
- get: function() {
1943
- warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
1944
- Object.defineProperty(this, "type", {
1945
- value: type
1946
- });
1947
- return type;
1948
- }
1949
- });
1950
- }
1951
- return validatedFactory;
1952
- }
1953
- function cloneElementWithValidation(element, props, children) {
1954
- var newElement = cloneElement.apply(this, arguments);
1955
- for (var i = 2; i < arguments.length; i++) {
1956
- validateChildKeys(arguments[i], newElement.type);
1957
- }
1958
- validatePropTypes(newElement);
1959
- return newElement;
1960
- }
1961
- function startTransition(scope, options) {
1962
- var prevTransition = ReactCurrentBatchConfig.transition;
1963
- ReactCurrentBatchConfig.transition = {};
1964
- var currentTransition = ReactCurrentBatchConfig.transition;
1965
- {
1966
- ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
1967
- }
1968
- try {
1969
- scope();
1970
- } finally {
1971
- ReactCurrentBatchConfig.transition = prevTransition;
1972
- {
1973
- if (prevTransition === null && currentTransition._updatedFibers) {
1974
- var updatedFibersCount = currentTransition._updatedFibers.size;
1975
- if (updatedFibersCount > 10) {
1976
- 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.");
1977
- }
1978
- currentTransition._updatedFibers.clear();
1979
- }
1980
- }
1981
- }
1982
- }
1983
- var didWarnAboutMessageChannel = false;
1984
- var enqueueTaskImpl = null;
1985
- function enqueueTask(task) {
1986
- if (enqueueTaskImpl === null) {
1987
- try {
1988
- var requireString = ("require" + Math.random()).slice(0, 7);
1989
- var nodeRequire = module2 && module2[requireString];
1990
- enqueueTaskImpl = nodeRequire.call(module2, "timers").setImmediate;
1991
- } catch (_err) {
1992
- enqueueTaskImpl = function(callback) {
1993
- {
1994
- if (didWarnAboutMessageChannel === false) {
1995
- didWarnAboutMessageChannel = true;
1996
- if (typeof MessageChannel === "undefined") {
1997
- 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.");
1998
- }
1999
- }
2000
- }
2001
- var channel = new MessageChannel();
2002
- channel.port1.onmessage = callback;
2003
- channel.port2.postMessage(void 0);
2004
- };
2005
- }
2006
- }
2007
- return enqueueTaskImpl(task);
2008
- }
2009
- var actScopeDepth = 0;
2010
- var didWarnNoAwaitAct = false;
2011
- function act(callback) {
2012
- {
2013
- var prevActScopeDepth = actScopeDepth;
2014
- actScopeDepth++;
2015
- if (ReactCurrentActQueue.current === null) {
2016
- ReactCurrentActQueue.current = [];
2017
- }
2018
- var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
2019
- var result;
2020
- try {
2021
- ReactCurrentActQueue.isBatchingLegacy = true;
2022
- result = callback();
2023
- if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
2024
- var queue = ReactCurrentActQueue.current;
2025
- if (queue !== null) {
2026
- ReactCurrentActQueue.didScheduleLegacyUpdate = false;
2027
- flushActQueue(queue);
2028
- }
2029
- }
2030
- } catch (error2) {
2031
- popActScope(prevActScopeDepth);
2032
- throw error2;
2033
- } finally {
2034
- ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
2035
- }
2036
- if (result !== null && typeof result === "object" && typeof result.then === "function") {
2037
- var thenableResult = result;
2038
- var wasAwaited = false;
2039
- var thenable = {
2040
- then: function(resolve, reject) {
2041
- wasAwaited = true;
2042
- thenableResult.then(function(returnValue2) {
2043
- popActScope(prevActScopeDepth);
2044
- if (actScopeDepth === 0) {
2045
- recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
2046
- } else {
2047
- resolve(returnValue2);
2048
- }
2049
- }, function(error2) {
2050
- popActScope(prevActScopeDepth);
2051
- reject(error2);
2052
- });
2053
- }
2054
- };
2055
- {
2056
- if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
2057
- Promise.resolve().then(function() {
2058
- }).then(function() {
2059
- if (!wasAwaited) {
2060
- didWarnNoAwaitAct = true;
2061
- 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 () => ...);");
2062
- }
2063
- });
2064
- }
2065
- }
2066
- return thenable;
2067
- } else {
2068
- var returnValue = result;
2069
- popActScope(prevActScopeDepth);
2070
- if (actScopeDepth === 0) {
2071
- var _queue = ReactCurrentActQueue.current;
2072
- if (_queue !== null) {
2073
- flushActQueue(_queue);
2074
- ReactCurrentActQueue.current = null;
2075
- }
2076
- var _thenable = {
2077
- then: function(resolve, reject) {
2078
- if (ReactCurrentActQueue.current === null) {
2079
- ReactCurrentActQueue.current = [];
2080
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2081
- } else {
2082
- resolve(returnValue);
2083
- }
2084
- }
2085
- };
2086
- return _thenable;
2087
- } else {
2088
- var _thenable2 = {
2089
- then: function(resolve, reject) {
2090
- resolve(returnValue);
2091
- }
2092
- };
2093
- return _thenable2;
2094
- }
2095
- }
2096
- }
2097
- }
2098
- function popActScope(prevActScopeDepth) {
2099
- {
2100
- if (prevActScopeDepth !== actScopeDepth - 1) {
2101
- error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
2102
- }
2103
- actScopeDepth = prevActScopeDepth;
2104
- }
2105
- }
2106
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
2107
- {
2108
- var queue = ReactCurrentActQueue.current;
2109
- if (queue !== null) {
2110
- try {
2111
- flushActQueue(queue);
2112
- enqueueTask(function() {
2113
- if (queue.length === 0) {
2114
- ReactCurrentActQueue.current = null;
2115
- resolve(returnValue);
2116
- } else {
2117
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2118
- }
2119
- });
2120
- } catch (error2) {
2121
- reject(error2);
2122
- }
2123
- } else {
2124
- resolve(returnValue);
2125
- }
2126
- }
2127
- }
2128
- var isFlushing = false;
2129
- function flushActQueue(queue) {
2130
- {
2131
- if (!isFlushing) {
2132
- isFlushing = true;
2133
- var i = 0;
2134
- try {
2135
- for (; i < queue.length; i++) {
2136
- var callback = queue[i];
2137
- do {
2138
- callback = callback(true);
2139
- } while (callback !== null);
2140
- }
2141
- queue.length = 0;
2142
- } catch (error2) {
2143
- queue = queue.slice(i + 1);
2144
- throw error2;
2145
- } finally {
2146
- isFlushing = false;
2147
- }
2148
- }
2149
- }
2150
- }
2151
- var createElement$1 = createElementWithValidation;
2152
- var cloneElement$1 = cloneElementWithValidation;
2153
- var createFactory = createFactoryWithValidation;
2154
- var Children = {
2155
- map: mapChildren,
2156
- forEach: forEachChildren,
2157
- count: countChildren,
2158
- toArray,
2159
- only: onlyChild
2160
- };
2161
- exports.Children = Children;
2162
- exports.Component = Component;
2163
- exports.Fragment = REACT_FRAGMENT_TYPE;
2164
- exports.Profiler = REACT_PROFILER_TYPE;
2165
- exports.PureComponent = PureComponent;
2166
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
2167
- exports.Suspense = REACT_SUSPENSE_TYPE;
2168
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2169
- exports.act = act;
2170
- exports.cloneElement = cloneElement$1;
2171
- exports.createContext = createContext;
2172
- exports.createElement = createElement$1;
2173
- exports.createFactory = createFactory;
2174
- exports.createRef = createRef;
2175
- exports.forwardRef = forwardRef;
2176
- exports.isValidElement = isValidElement;
2177
- exports.lazy = lazy;
2178
- exports.memo = memo;
2179
- exports.startTransition = startTransition;
2180
- exports.unstable_act = act;
2181
- exports.useCallback = useCallback;
2182
- exports.useContext = useContext;
2183
- exports.useDebugValue = useDebugValue;
2184
- exports.useDeferredValue = useDeferredValue;
2185
- exports.useEffect = useEffect;
2186
- exports.useId = useId;
2187
- exports.useImperativeHandle = useImperativeHandle;
2188
- exports.useInsertionEffect = useInsertionEffect;
2189
- exports.useLayoutEffect = useLayoutEffect;
2190
- exports.useMemo = useMemo;
2191
- exports.useReducer = useReducer;
2192
- exports.useRef = useRef;
2193
- exports.useState = useState;
2194
- exports.useSyncExternalStore = useSyncExternalStore;
2195
- exports.useTransition = useTransition;
2196
- exports.version = ReactVersion;
2197
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
2198
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2199
- }
2200
- })();
2201
- }
2202
- }
2203
- });
2204
-
2205
- // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js
2206
- var require_react = __commonJS({
2207
- "../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"(exports, module2) {
2208
- "use strict";
2209
- if (process.env.NODE_ENV === "production") {
2210
- module2.exports = require_react_production_min();
2211
- } else {
2212
- module2.exports = require_react_development();
2213
- }
2214
- }
2215
- });
2216
-
2217
29
  // src/index.js
2218
30
  var src_exports = {};
2219
31
  __export(src_exports, {
@@ -2256,7 +68,7 @@ __export(src_exports, {
2256
68
  module.exports = __toCommonJS(src_exports);
2257
69
 
2258
70
  // src/components/Liquid.jsx
2259
- var import_react = __toESM(require_react());
71
+ var import_react = __toESM(require("react"));
2260
72
  function Liquid({
2261
73
  d,
2262
74
  transform,
@@ -2340,7 +152,7 @@ function Liquid({
2340
152
  }
2341
153
 
2342
154
  // src/components/glasses/AbsintheGlass.jsx
2343
- var import_react2 = __toESM(require_react());
155
+ var import_react2 = __toESM(require("react"));
2344
156
  function AbsintheGlass({
2345
157
  liquidFill = ["#A8E6CF", "#DCEDC2", "#FFD3B6"],
2346
158
  size = 80,
@@ -2390,7 +202,7 @@ function AbsintheGlass({
2390
202
  }
2391
203
 
2392
204
  // src/components/glasses/BrandySnifterGlass.jsx
2393
- var import_react3 = __toESM(require_react());
205
+ var import_react3 = __toESM(require("react"));
2394
206
  function BrandySnifterGlass({
2395
207
  liquidFill = ["#F6D29A", "#D98F3A"],
2396
208
  strokeWidth = 1
@@ -2449,7 +261,7 @@ function BrandySnifterGlass({
2449
261
  }
2450
262
 
2451
263
  // src/components/glasses/CollinsGlass.jsx
2452
- var import_react4 = __toESM(require_react());
264
+ var import_react4 = __toESM(require("react"));
2453
265
  function CollinsGlass({
2454
266
  liquidFill = ["#FFF7C0", "#FFD27A"],
2455
267
  strokeWidth = 0.5
@@ -2508,7 +320,7 @@ function CollinsGlass({
2508
320
  }
2509
321
 
2510
322
  // src/components/glasses/CopperMug.jsx
2511
- var import_react5 = __toESM(require_react());
323
+ var import_react5 = __toESM(require("react"));
2512
324
  function CopperMug({
2513
325
  size = 80,
2514
326
  strokeWidth = 0.5,
@@ -2551,7 +363,7 @@ function CopperMug({
2551
363
  }
2552
364
 
2553
365
  // src/components/glasses/CordialGlass.jsx
2554
- var import_react6 = __toESM(require_react());
366
+ var import_react6 = __toESM(require("react"));
2555
367
 
2556
368
  // src/utils/theme.js
2557
369
  var theme = {
@@ -2616,7 +428,7 @@ function CordialGlass({ liquidFill = null, strokeWidth = 0.5 }) {
2616
428
  }
2617
429
 
2618
430
  // src/components/glasses/CoupeGlass.jsx
2619
- var import_react7 = __toESM(require_react());
431
+ var import_react7 = __toESM(require("react"));
2620
432
  function CoupeGlass({
2621
433
  liquidFill = null,
2622
434
  size = 80,
@@ -2653,7 +465,7 @@ function CoupeGlass({
2653
465
  }
2654
466
 
2655
467
  // src/components/glasses/DemitasseGlass.jsx
2656
- var import_react8 = __toESM(require_react());
468
+ var import_react8 = __toESM(require("react"));
2657
469
  function DemitasseGlass({
2658
470
  liquidFill = null,
2659
471
  size = 80,
@@ -2697,7 +509,7 @@ function DemitasseGlass({
2697
509
  }
2698
510
 
2699
511
  // src/components/glasses/DoubleShotGlass.jsx
2700
- var import_react9 = __toESM(require_react());
512
+ var import_react9 = __toESM(require("react"));
2701
513
  function DoubleShotGlass({
2702
514
  liquidFill = ["#FFF7C0", "#FFD27A"],
2703
515
  size = 64,
@@ -2735,7 +547,7 @@ function DoubleShotGlass({
2735
547
  }
2736
548
 
2737
549
  // src/components/glasses/FizzGlass.jsx
2738
- var import_react10 = __toESM(require_react());
550
+ var import_react10 = __toESM(require("react"));
2739
551
  function FizzGlass({
2740
552
  liquidFill = null,
2741
553
  size = 80,
@@ -2783,7 +595,7 @@ function FizzGlass({
2783
595
  }
2784
596
 
2785
597
  // src/components/glasses/FluteGlass.jsx
2786
- var import_react11 = __toESM(require_react());
598
+ var import_react11 = __toESM(require("react"));
2787
599
  function FluteGlass({
2788
600
  liquidFill = null,
2789
601
  size = 80,
@@ -2835,7 +647,7 @@ function FluteGlass({
2835
647
  }
2836
648
 
2837
649
  // src/components/glasses/GobletGlass.jsx
2838
- var import_react12 = __toESM(require_react());
650
+ var import_react12 = __toESM(require("react"));
2839
651
  function GobletGlass({
2840
652
  liquidFill = null,
2841
653
  size = 80,
@@ -2892,7 +704,7 @@ function GobletGlass({
2892
704
  }
2893
705
 
2894
706
  // src/components/glasses/HighballGlass.jsx
2895
- var import_react13 = __toESM(require_react());
707
+ var import_react13 = __toESM(require("react"));
2896
708
  function HighballGlass({
2897
709
  liquidFill = null,
2898
710
  size = 80,
@@ -2933,7 +745,7 @@ function HighballGlass({
2933
745
  }
2934
746
 
2935
747
  // src/components/glasses/HurricaneGlass.jsx
2936
- var import_react14 = __toESM(require_react());
748
+ var import_react14 = __toESM(require("react"));
2937
749
  function HurricaneGlass({
2938
750
  liquidFill = null,
2939
751
  garnish = null,
@@ -2980,7 +792,7 @@ function HurricaneGlass({
2980
792
  }
2981
793
 
2982
794
  // src/components/glasses/IrishCoffeeGlass.jsx
2983
- var import_react15 = __toESM(require_react());
795
+ var import_react15 = __toESM(require("react"));
2984
796
  function IrishCoffeeGlass({
2985
797
  liquidFill = null,
2986
798
  size = 80,
@@ -3041,7 +853,7 @@ function IrishCoffeeGlass({
3041
853
  }
3042
854
 
3043
855
  // src/components/glasses/JulepCup.jsx
3044
- var import_react16 = __toESM(require_react());
856
+ var import_react16 = __toESM(require("react"));
3045
857
  function JulepCup({
3046
858
  fill = "#a1a1a1",
3047
859
  size = 80,
@@ -3139,7 +951,7 @@ function JulepCup({
3139
951
  }
3140
952
 
3141
953
  // src/components/glasses/MargaritaGlass.jsx
3142
- var import_react17 = __toESM(require_react());
954
+ var import_react17 = __toESM(require("react"));
3143
955
  function MargaritaGlass({
3144
956
  liquidFill = ["#A8E063", "#56AB2F"],
3145
957
  // liquidStyle = "gradient",
@@ -3188,7 +1000,7 @@ function MargaritaGlass({
3188
1000
  }
3189
1001
 
3190
1002
  // src/components/glasses/MartiniGlass.jsx
3191
- var import_react18 = __toESM(require_react());
1003
+ var import_react18 = __toESM(require("react"));
3192
1004
  function MartiniGlass({
3193
1005
  liquidFill = null,
3194
1006
  garnish = null,
@@ -3216,7 +1028,7 @@ function MartiniGlass({
3216
1028
  }
3217
1029
 
3218
1030
  // src/components/glasses/NickAndNoraGlass.jsx
3219
- var import_react19 = __toESM(require_react());
1031
+ var import_react19 = __toESM(require("react"));
3220
1032
  function NickAndNoraGlass({
3221
1033
  liquidFill = null,
3222
1034
  garnish = null,
@@ -3263,7 +1075,7 @@ function NickAndNoraGlass({
3263
1075
  }
3264
1076
 
3265
1077
  // src/components/glasses/ParfaitGlass.jsx
3266
- var import_react20 = __toESM(require_react());
1078
+ var import_react20 = __toESM(require("react"));
3267
1079
  function ParfaitGlass({
3268
1080
  liquidFill = null,
3269
1081
  size = 80,
@@ -3303,7 +1115,7 @@ function ParfaitGlass({
3303
1115
  }
3304
1116
 
3305
1117
  // src/components/glasses/PilsnerGlass.jsx
3306
- var import_react21 = __toESM(require_react());
1118
+ var import_react21 = __toESM(require("react"));
3307
1119
  function PilsnerGlass({
3308
1120
  liquidFill = null,
3309
1121
  size = 80,
@@ -3338,7 +1150,7 @@ function PilsnerGlass({
3338
1150
  }
3339
1151
 
3340
1152
  // src/components/glasses/PintGlass.jsx
3341
- var import_react22 = __toESM(require_react());
1153
+ var import_react22 = __toESM(require("react"));
3342
1154
  function PintGlass({
3343
1155
  liquidFill = null,
3344
1156
  garnish = null,
@@ -3377,7 +1189,7 @@ function PintGlass({
3377
1189
  }
3378
1190
 
3379
1191
  // src/components/glasses/PousseCafeGlass.jsx
3380
- var import_react23 = __toESM(require_react());
1192
+ var import_react23 = __toESM(require("react"));
3381
1193
  function PousseCafeGlass({
3382
1194
  liquidFill = null,
3383
1195
  size = 80,
@@ -3449,7 +1261,7 @@ function PousseCafeGlass({
3449
1261
  }
3450
1262
 
3451
1263
  // src/components/glasses/PunchGlass.jsx
3452
- var import_react24 = __toESM(require_react());
1264
+ var import_react24 = __toESM(require("react"));
3453
1265
  function PunchGlass({
3454
1266
  liquidFill = null,
3455
1267
  size = 80,
@@ -3518,7 +1330,7 @@ function PunchGlass({
3518
1330
  }
3519
1331
 
3520
1332
  // src/components/glasses/RocksGlass.jsx
3521
- var import_react25 = __toESM(require_react());
1333
+ var import_react25 = __toESM(require("react"));
3522
1334
  function RocksGlass({
3523
1335
  liquidFill = null,
3524
1336
  size = 80,
@@ -3558,7 +1370,7 @@ function RocksGlass({
3558
1370
  }
3559
1371
 
3560
1372
  // src/components/glasses/SingleShotGlass.jsx
3561
- var import_react26 = __toESM(require_react());
1373
+ var import_react26 = __toESM(require("react"));
3562
1374
  function SingleShotGlass({
3563
1375
  liquidFill = ["#FFFFFF", "#E0E0E0"],
3564
1376
  size = 64,
@@ -3596,7 +1408,7 @@ function SingleShotGlass({
3596
1408
  }
3597
1409
 
3598
1410
  // src/components/glasses/SlingGlass.jsx
3599
- var import_react27 = __toESM(require_react());
1411
+ var import_react27 = __toESM(require("react"));
3600
1412
  function SlingGlass({
3601
1413
  liquidFill = null,
3602
1414
  size = 80,
@@ -3642,7 +1454,7 @@ function SlingGlass({
3642
1454
  }
3643
1455
 
3644
1456
  // src/components/glasses/SnifterGlass.jsx
3645
- var import_react28 = __toESM(require_react());
1457
+ var import_react28 = __toESM(require("react"));
3646
1458
  function SnifterGlass({
3647
1459
  liquidFill = null,
3648
1460
  size = 80,
@@ -3698,7 +1510,7 @@ function SnifterGlass({
3698
1510
  }
3699
1511
 
3700
1512
  // src/components/glasses/SourGlass.jsx
3701
- var import_react29 = __toESM(require_react());
1513
+ var import_react29 = __toESM(require("react"));
3702
1514
  function SourGlass({
3703
1515
  liquidFill = null,
3704
1516
  size = 80,
@@ -3747,7 +1559,7 @@ function SourGlass({
3747
1559
  }
3748
1560
 
3749
1561
  // src/components/glasses/TankardGlass.jsx
3750
- var import_react30 = __toESM(require_react());
1562
+ var import_react30 = __toESM(require("react"));
3751
1563
  function TankardGlass({
3752
1564
  liquidFill = null,
3753
1565
  size = 80,
@@ -3787,7 +1599,7 @@ function TankardGlass({
3787
1599
  }
3788
1600
 
3789
1601
  // src/components/glasses/TikiGlass.jsx
3790
- var import_react31 = __toESM(require_react());
1602
+ var import_react31 = __toESM(require("react"));
3791
1603
  function TikiGlass({
3792
1604
  liquidFill = null,
3793
1605
  size = 80,
@@ -3829,7 +1641,7 @@ function TikiGlass({
3829
1641
  }
3830
1642
 
3831
1643
  // src/components/glasses/ToddyGlass.jsx
3832
- var import_react32 = __toESM(require_react());
1644
+ var import_react32 = __toESM(require("react"));
3833
1645
  function ToddyGlass({
3834
1646
  liquidFill = null,
3835
1647
  size = 80,
@@ -3867,7 +1679,7 @@ function ToddyGlass({
3867
1679
  }
3868
1680
 
3869
1681
  // src/components/glasses/WhiskeyShotGlass.jsx
3870
- var import_react33 = __toESM(require_react());
1682
+ var import_react33 = __toESM(require("react"));
3871
1683
  function WhiskeyShotGlass({
3872
1684
  liquidFill = ["#FFFFFF", "#E0E0E0"],
3873
1685
  size = 80,
@@ -3908,7 +1720,7 @@ function WhiskeyShotGlass({
3908
1720
  }
3909
1721
 
3910
1722
  // src/components/glasses/WineGlass.jsx
3911
- var import_react34 = __toESM(require_react());
1723
+ var import_react34 = __toESM(require("react"));
3912
1724
  function WineGlass({
3913
1725
  liquidFill = null,
3914
1726
  size = 80,
@@ -4009,27 +1821,3 @@ var src_default = {
4009
1821
  WhiskeyShotGlass,
4010
1822
  WineGlass
4011
1823
  });
4012
- /*! Bundled license information:
4013
-
4014
- react/cjs/react.production.min.js:
4015
- (**
4016
- * @license React
4017
- * react.production.min.js
4018
- *
4019
- * Copyright (c) Facebook, Inc. and its affiliates.
4020
- *
4021
- * This source code is licensed under the MIT license found in the
4022
- * LICENSE file in the root directory of this source tree.
4023
- *)
4024
-
4025
- react/cjs/react.development.js:
4026
- (**
4027
- * @license React
4028
- * react.development.js
4029
- *
4030
- * Copyright (c) Facebook, Inc. and its affiliates.
4031
- *
4032
- * This source code is licensed under the MIT license found in the
4033
- * LICENSE file in the root directory of this source tree.
4034
- *)
4035
- */